@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,38 +1,34 @@
|
|
|
1
|
-
import { i as
|
|
1
|
+
import { i as T, c as O } from "../../chunks/runtime.js";
|
|
2
2
|
import { ref as u } from "lit-html/directives/ref.js";
|
|
3
3
|
import { html as p, nothing as m } from "lit";
|
|
4
|
-
import { LitElement as E, createEvent as I, stringOrBoolean as
|
|
5
|
-
import { d as S, a as l, b as D, c, e as
|
|
4
|
+
import { LitElement as E, createEvent as I, stringOrBoolean as z, safeClassMap as o } from "@arcgis/lumina";
|
|
5
|
+
import { d as S, a as l, b as D, c, e as R, f as $, i as B } from "../../chunks/date.js";
|
|
6
6
|
import { h as N } from "../../chunks/dom.js";
|
|
7
|
-
import { b as W, r as H, c as y, a as
|
|
8
|
-
import { c as
|
|
9
|
-
import { u as
|
|
7
|
+
import { b as W, r as H, c as y, a as L, f as M, h as U, F as A } from "../../chunks/floating-ui.js";
|
|
8
|
+
import { c as Y, d as _, s as q, H as G } from "../../chunks/form.js";
|
|
9
|
+
import { u as j, I as K } from "../../chunks/interactive.js";
|
|
10
10
|
import { n as F } from "../../chunks/key.js";
|
|
11
|
-
import { c as
|
|
12
|
-
import { c as
|
|
13
|
-
import { n as b, a as
|
|
14
|
-
import { o as
|
|
15
|
-
import { g as x, a as
|
|
16
|
-
import { d as w, a as
|
|
17
|
-
import { g as
|
|
11
|
+
import { c as Z, d as J } from "../../chunks/label.js";
|
|
12
|
+
import { c as Q } from "../../chunks/loadable.js";
|
|
13
|
+
import { n as b, a as X, d as tt } from "../../chunks/locale.js";
|
|
14
|
+
import { o as et } from "../../chunks/openCloseComponent.js";
|
|
15
|
+
import { g as x, a as at } from "../../chunks/utils2.js";
|
|
16
|
+
import { d as w, a as C, b as it } from "../../chunks/focusTrapComponent.js";
|
|
17
|
+
import { g as k } from "../../chunks/guid.js";
|
|
18
18
|
import { g as V } from "../../chunks/component.js";
|
|
19
|
-
import { V as
|
|
20
|
-
import { s as
|
|
21
|
-
import { u as
|
|
22
|
-
import { css as
|
|
23
|
-
/*!
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
const ht = ct`:host{--calcite-icon-size: 1rem;--calcite-spacing-eighth: .125rem;--calcite-spacing-quarter: .25rem;--calcite-spacing-half: .5rem;--calcite-spacing-three-quarters: .75rem;--calcite-spacing: 1rem;--calcite-spacing-plus-quarter: 1.25rem;--calcite-spacing-plus-half: 1.5rem;--calcite-spacing-double: 2rem;--calcite-menu-min-width: 10rem;--calcite-header-min-height: 3rem;--calcite-footer-min-height: 3rem}: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:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host .menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}:host([scale=s]){--calcite-toggle-spacing: .5rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1rem)}:host([scale=m]){--calcite-toggle-spacing: .75rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1.5rem)}:host([scale=l]){--calcite-toggle-spacing: 1rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 2rem)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.calendar-wrapper{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transform:translateZ(0)}.input-wrapper{position:relative}.input-wrapper .chevron-icon{color:var(--calcite-color-text-3)}.input-wrapper:focus-within .chevron-icon,.input-wrapper:active .chevron-icon,.input-wrapper:hover .chevron-icon{color:var(--calcite-color-text-1)}.input-wrapper:focus-within~.input-wrapper .chevron-icon,.input-wrapper:active~.input-wrapper .chevron-icon,.input-wrapper:hover~.input-wrapper .chevron-icon{color:var(--calcite-color-text-1)}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}:host([range]) .container{display:flex}:host([range]) .input-container{display:flex;flex:1 1 auto}:host([range]) .input-wrapper{flex:1 1 auto}.divider-container{display:flex;align-items:stretch;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1)}:host([layout=horizontal]) .divider-container{inline-size:1px}.divider{display:inline-block;inline-size:1px;margin-block:var(--calcite-spacing-xxs);background-color:var(--calcite-color-border-2)}:host([layout=vertical]) .divider-container{block-size:1px;inline-size:100%;border-block-start-width:0px;border-block-end-width:0px;border-inline-start-width:1px;border-inline-end-width:0px;padding-inline:var(--calcite-spacing-md)}:host([layout=vertical]) .divider-container .divider{margin-block:0px;block-size:1px;inline-size:100%}:host([range][layout=vertical]) .input-wrapper{inline-size:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}.menu-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.input .calcite-input__wrapper{margin-block-start:0px}.vertical-chevron-container{display:flex;align-items:center;border-width:1px;border-inline-start-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);padding-inline:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}.vertical-chevron-container calcite-icon{color:var(--calcite-color-text-3)}.vertical-chevron-container calcite-icon:hover{color:var(--calcite-color-text-1)}:host([range][layout=vertical][scale=s]) .vertical-chevron-container,:host([range][layout=vertical][scale=s]) .divider-container{padding-inline:var(--calcite-spacing-sm)}:host([range][layout=vertical][scale=l]) .vertical-chevron-container,:host([range][layout=vertical][scale=l]) .divider-container{padding-inline:var(--calcite-spacing-lg)}.container:focus-within .vertical-chevron-container calcite-icon,.container:active .vertical-chevron-container calcite-icon,.container:hover .vertical-chevron-container calcite-icon{color:var(--calcite-color-text-1)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}.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}:host([hidden]){display:none}[hidden]{display:none}`, s = {
|
|
19
|
+
import { V as st } from "../../chunks/Validation.js";
|
|
20
|
+
import { s as nt } from "../../chunks/input.js";
|
|
21
|
+
import { u as rt } from "../../chunks/useT9n.js";
|
|
22
|
+
import { css as ot } from "@lit/reactive-element/css-tag.js";
|
|
23
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
24
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
25
|
+
v3.0.1 */
|
|
26
|
+
const lt = ot`:host{--calcite-icon-size: 1rem;--calcite-spacing-eighth: .125rem;--calcite-spacing-quarter: .25rem;--calcite-spacing-half: .5rem;--calcite-spacing-three-quarters: .75rem;--calcite-spacing: 1rem;--calcite-spacing-plus-quarter: 1.25rem;--calcite-spacing-plus-half: 1.5rem;--calcite-spacing-double: 2rem;--calcite-menu-min-width: 10rem;--calcite-header-min-height: 3rem;--calcite-footer-min-height: 3rem}: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:inline-block;width:100%;overflow:visible;vertical-align:top;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host .menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}:host([scale=s]){--calcite-toggle-spacing: .5rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1rem)}:host([scale=m]){--calcite-toggle-spacing: .75rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1.5rem)}:host([scale=l]){--calcite-toggle-spacing: 1rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 2rem)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.calendar-wrapper{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transform:translateZ(0)}.input-wrapper{position:relative}.input-wrapper .chevron-icon{color:var(--calcite-color-text-3)}.input-wrapper:focus-within .chevron-icon,.input-wrapper:active .chevron-icon,.input-wrapper:hover .chevron-icon{color:var(--calcite-color-text-1)}.input-wrapper:focus-within~.input-wrapper .chevron-icon,.input-wrapper:active~.input-wrapper .chevron-icon,.input-wrapper:hover~.input-wrapper .chevron-icon{color:var(--calcite-color-text-1)}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}:host([range]) .container{display:flex}:host([range]) .input-container{display:flex;flex:1 1 auto}:host([range]) .input-wrapper{flex:1 1 auto}.divider-container{display:flex;align-items:stretch;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1)}:host([layout=horizontal]) .divider-container{width:1px}.divider{display:inline-block;width:1px;margin-block:var(--calcite-spacing-xxs);background-color:var(--calcite-color-border-2)}:host([layout=vertical]) .divider-container{height:1px;width:100%;border-top-width:0px;border-bottom-width:0px;border-left-width:1px;border-right-width:0px;padding-inline:var(--calcite-spacing-md)}:host([layout=vertical]) .divider-container .divider{margin-top:0;margin-bottom:0;height:1px;width:100%}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}.menu-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.input .calcite-input__wrapper{margin-top:0}.vertical-chevron-container{display:flex;align-items:center;border-width:1px;border-left-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);padding-inline:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}.vertical-chevron-container calcite-icon{color:var(--calcite-color-text-3)}.vertical-chevron-container calcite-icon:hover{color:var(--calcite-color-text-1)}:host([range][layout=vertical][scale=s]) .vertical-chevron-container,:host([range][layout=vertical][scale=s]) .divider-container{padding-inline:var(--calcite-spacing-sm)}:host([range][layout=vertical][scale=l]) .vertical-chevron-container,:host([range][layout=vertical][scale=l]) .divider-container{padding-inline:var(--calcite-spacing-lg)}.container:focus-within .vertical-chevron-container calcite-icon,.container:active .vertical-chevron-container calcite-icon,.container:hover .vertical-chevron-container calcite-icon{color:var(--calcite-color-text-1)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}.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}:host([hidden]){display:none}[hidden]{display:none}`, n = {
|
|
29
27
|
assistiveText: "assistive-text",
|
|
30
28
|
calendarWrapper: "calendar-wrapper",
|
|
31
29
|
container: "container",
|
|
32
30
|
dividerContainer: "divider-container",
|
|
33
31
|
divider: "divider",
|
|
34
|
-
horizontalArrowContainer: "horizontal-arrow-container",
|
|
35
|
-
inputBorderTopColorOne: "border-top-color-one",
|
|
36
32
|
inputContainer: "input-container",
|
|
37
33
|
inputNoBottomBorder: "input--no-bottom-border",
|
|
38
34
|
inputNoRightBorder: "input--no-right-border",
|
|
@@ -47,23 +43,23 @@ const ht = ct`:host{--calcite-icon-size: 1rem;--calcite-spacing-eighth: .125rem;
|
|
|
47
43
|
}, P = {
|
|
48
44
|
validationMessage: "inputDatePickerValidationMessage"
|
|
49
45
|
};
|
|
50
|
-
function
|
|
46
|
+
function ct(g) {
|
|
51
47
|
if (!g)
|
|
52
48
|
return !1;
|
|
53
49
|
const { year: t } = S(g);
|
|
54
50
|
return Number(t) < 100;
|
|
55
51
|
}
|
|
56
|
-
function
|
|
52
|
+
function ht(g) {
|
|
57
53
|
const t = (/* @__PURE__ */ new Date()).getFullYear();
|
|
58
54
|
return Math.floor(t / 100) * 100 + g;
|
|
59
55
|
}
|
|
60
|
-
class
|
|
56
|
+
class dt extends E {
|
|
61
57
|
// #endregion
|
|
62
58
|
// #region Lifecycle
|
|
63
59
|
constructor() {
|
|
64
|
-
super(), this.commonDateSeparators = [".", "-", "/"], this.dialogId = `date-picker-dialog--${
|
|
60
|
+
super(), this.commonDateSeparators = [".", "-", "/"], this.dialogId = `date-picker-dialog--${k()}`, this.focusOnOpen = !1, this.focusTrapDeactivates = () => {
|
|
65
61
|
this.open = !1;
|
|
66
|
-
}, this.
|
|
62
|
+
}, this.transitionProp = "opacity", this.placeholderTextId = `calcite-input-date-picker-placeholder-${k()}`, this.rangeStartValueChangedByUser = !1, this.userChangedValue = !1, this._value = "", this.valueAsDateChangedExternally = !1, this.focusedInput = "start", this.disabled = !1, this.focusTrapDisabled = !1, this.layout = "horizontal", this.messages = rt({ blocking: !0 }), this.monthStyle = "wide", this.open = !1, this.overlayPositioning = "absolute", this.placement = W, this.proximitySelectionDisabled = !1, this.range = !1, this.readOnly = !1, this.required = !1, this.scale = "m", this.status = "idle", this.validity = {
|
|
67
63
|
valid: !1,
|
|
68
64
|
badInput: !1,
|
|
69
65
|
customError: !1,
|
|
@@ -78,13 +74,13 @@ class pt extends E {
|
|
|
78
74
|
}, this.calciteInputDatePickerBeforeClose = I({ cancelable: !1 }), this.calciteInputDatePickerBeforeOpen = I({ cancelable: !1 }), this.calciteInputDatePickerChange = I({ cancelable: !1 }), this.calciteInputDatePickerClose = I({ cancelable: !1 }), this.calciteInputDatePickerOpen = I({ cancelable: !1 }), this.listen("blur", this.blurHandler), this.listen("keydown", this.keyDownHandler), this.handleDateTimeFormatChange();
|
|
79
75
|
}
|
|
80
76
|
static {
|
|
81
|
-
this.properties = { datePickerActiveDate: 16, focusedInput: 16, localeData: 16, disabled: 7, flipPlacements: 0, focusTrapDisabled: 7, form: 3, headingLevel: 11, layout: 3, max: 3, maxAsDate: 0, messageOverrides: 0, min: 3, minAsDate: 0, monthStyle: 1, name: 3, numberingSystem: 3, open: 7, overlayPositioning: 3, placement: 3, proximitySelectionDisabled: 5, range: 7, readOnly: 7, required: 7, scale: 3, status: 3, validationIcon: [3, { converter:
|
|
77
|
+
this.properties = { datePickerActiveDate: 16, focusedInput: 16, localeData: 16, disabled: 7, flipPlacements: 0, focusTrapDisabled: 7, form: 3, headingLevel: 11, layout: 3, max: 3, maxAsDate: 0, messageOverrides: 0, min: 3, minAsDate: 0, monthStyle: 1, name: 3, numberingSystem: 3, open: 7, overlayPositioning: 3, placement: 3, proximitySelectionDisabled: 5, range: 7, readOnly: 7, required: 7, scale: 3, status: 3, validationIcon: [3, { converter: z }], validationMessage: 1, validity: 0, value: 1, valueAsDate: 0 };
|
|
82
78
|
}
|
|
83
79
|
static {
|
|
84
80
|
this.shadowRootOptions = { mode: "open", delegatesFocus: !0 };
|
|
85
81
|
}
|
|
86
82
|
static {
|
|
87
|
-
this.styles =
|
|
83
|
+
this.styles = lt;
|
|
88
84
|
}
|
|
89
85
|
/** Selected date as a string in ISO format (`"yyyy-mm-dd"`). */
|
|
90
86
|
get value() {
|
|
@@ -103,11 +99,11 @@ class pt extends E {
|
|
|
103
99
|
* @returns void
|
|
104
100
|
*/
|
|
105
101
|
async reposition(t = !1) {
|
|
106
|
-
const { floatingEl: e, referenceEl: a, placement: i, overlayPositioning:
|
|
102
|
+
const { floatingEl: e, referenceEl: a, placement: i, overlayPositioning: s, filteredFlipPlacements: r } = this;
|
|
107
103
|
return H(this, {
|
|
108
104
|
floatingEl: e,
|
|
109
105
|
referenceEl: a,
|
|
110
|
-
overlayPositioning:
|
|
106
|
+
overlayPositioning: s,
|
|
111
107
|
placement: i,
|
|
112
108
|
flipPlacements: r,
|
|
113
109
|
type: "menu"
|
|
@@ -115,7 +111,7 @@ class pt extends E {
|
|
|
115
111
|
}
|
|
116
112
|
/** Sets focus on the component. */
|
|
117
113
|
async setFocus() {
|
|
118
|
-
await
|
|
114
|
+
await Q(this), N(this.el);
|
|
119
115
|
}
|
|
120
116
|
connectedCallback() {
|
|
121
117
|
super.connectedCallback();
|
|
@@ -130,31 +126,31 @@ class pt extends E {
|
|
|
130
126
|
this.warnAboutInvalidValue(this.value), this.value = "";
|
|
131
127
|
}
|
|
132
128
|
else this.valueAsDate && (this.range && Array.isArray(this.valueAsDate) ? this.value = [c(this.valueAsDate[0]), c(this.valueAsDate[1])] : !this.range && !Array.isArray(this.valueAsDate) && (this.value = c(this.valueAsDate)));
|
|
133
|
-
|
|
129
|
+
Z(this), Y(this), this.setFilteredPlacements(), b.numberFormatOptions = {
|
|
134
130
|
numberingSystem: this.numberingSystem,
|
|
135
131
|
locale: this.messages._lang,
|
|
136
132
|
useGrouping: !1
|
|
137
|
-
},
|
|
133
|
+
}, y(this);
|
|
138
134
|
}
|
|
139
135
|
async load() {
|
|
140
|
-
|
|
136
|
+
this.handleDateTimeFormatChange(), await this.loadLocaleData(), this.onMinChanged(this.min), this.onMaxChanged(this.max);
|
|
141
137
|
}
|
|
142
138
|
willUpdate(t) {
|
|
143
139
|
t.has("focusTrapDisabled") && (this.hasUpdated || this.focusTrapDisabled !== !1) && this.handleFocusTrapDisabled(this.focusTrapDisabled), t.has("disabled") && (this.hasUpdated || this.disabled !== !1) && this.handleDisabledAndReadOnlyChange(this.disabled), t.has("readOnly") && (this.hasUpdated || this.readOnly !== !1) && this.handleDisabledAndReadOnlyChange(this.readOnly), t.has("valueAsDate") && this.valueAsDateWatcher(this.valueAsDate), t.has("flipPlacements") && this.flipPlacementsHandler(), t.has("min") && this.onMinChanged(this.min), t.has("max") && this.onMaxChanged(this.max), t.has("open") && (this.hasUpdated || this.open !== !1) && this.openHandler(), t.has("overlayPositioning") && (this.hasUpdated || this.overlayPositioning !== "absolute") && this.reposition(!0), (t.has("numberingSystem") || t.has("messages")) && this.handleDateTimeFormatChange(), t.has("layout") && (this.hasUpdated || this.layout !== "horizontal") && this.setReferenceEl(), t.has("messages") && this.loadLocaleData();
|
|
144
140
|
}
|
|
145
141
|
updated() {
|
|
146
|
-
|
|
142
|
+
j(this);
|
|
147
143
|
}
|
|
148
144
|
loaded() {
|
|
149
|
-
|
|
145
|
+
this.localizeInputValues(), y(this);
|
|
150
146
|
}
|
|
151
147
|
disconnectedCallback() {
|
|
152
|
-
super.disconnectedCallback(), w(this),
|
|
148
|
+
super.disconnectedCallback(), w(this), J(this), _(this), L(this);
|
|
153
149
|
}
|
|
154
150
|
// #endregion
|
|
155
151
|
// #region Private Methods
|
|
156
152
|
handleFocusTrapDisabled(t) {
|
|
157
|
-
this.open && (t ? w(this) :
|
|
153
|
+
this.open && (t ? w(this) : C(this));
|
|
158
154
|
}
|
|
159
155
|
handleDisabledAndReadOnlyChange(t) {
|
|
160
156
|
t || (this.open = !1);
|
|
@@ -180,16 +176,16 @@ class pt extends E {
|
|
|
180
176
|
this.maxAsDate = l(t);
|
|
181
177
|
}
|
|
182
178
|
openHandler() {
|
|
183
|
-
|
|
179
|
+
et(this), !(this.disabled || this.readOnly) && this.reposition(!0);
|
|
184
180
|
}
|
|
185
181
|
calciteInternalInputInputHandler(t) {
|
|
186
|
-
const e = t.target, a = e.value, i = this.parseNumerals(a),
|
|
187
|
-
e.value =
|
|
188
|
-
const { year: r } =
|
|
182
|
+
const e = t.target, a = e.value, i = this.parseNumerals(a), s = this.formatNumerals(i);
|
|
183
|
+
e.value = s;
|
|
184
|
+
const { year: r } = R(a, this.localeData);
|
|
189
185
|
if (r && r.length < 4)
|
|
190
186
|
return;
|
|
191
187
|
const h = $(a, this.localeData);
|
|
192
|
-
|
|
188
|
+
B(h, this.min, this.max) && (this.datePickerActiveDate = h);
|
|
193
189
|
}
|
|
194
190
|
calciteInternalInputBlurHandler() {
|
|
195
191
|
this.commitValue();
|
|
@@ -198,9 +194,9 @@ class pt extends E {
|
|
|
198
194
|
const t = {
|
|
199
195
|
// we explicitly set numberingSystem to prevent the browser-inferred value
|
|
200
196
|
// @see [Arabic numbering system support context](https://github.com/Esri/calcite-design-system/issues/3079#issuecomment-1168964195) for more info.
|
|
201
|
-
numberingSystem:
|
|
197
|
+
numberingSystem: X(this.numberingSystem)
|
|
202
198
|
};
|
|
203
|
-
this.dateTimeFormat = new Intl.DateTimeFormat(
|
|
199
|
+
this.dateTimeFormat = new Intl.DateTimeFormat(tt(this.messages._lang), t);
|
|
204
200
|
}
|
|
205
201
|
setReferenceEl() {
|
|
206
202
|
const { focusedInput: t, layout: e, endWrapper: a, startWrapper: i } = this;
|
|
@@ -210,12 +206,12 @@ class pt extends E {
|
|
|
210
206
|
this.currentOpenInput = this.focusedInput;
|
|
211
207
|
}
|
|
212
208
|
onInputWrapperClick(t) {
|
|
213
|
-
const { range: e, endInput: a, startInput: i, currentOpenInput:
|
|
214
|
-
t.composedPath().find((v) => v.classList?.contains(
|
|
209
|
+
const { range: e, endInput: a, startInput: i, currentOpenInput: s } = this, h = t.currentTarget.getAttribute("data-position");
|
|
210
|
+
t.composedPath().find((v) => v.classList?.contains(n.toggleIcon)) && (h === "start" ? i : a).setFocus(), (!e || !this.open || s === h) && (this.open = !this.open);
|
|
215
211
|
}
|
|
216
212
|
setFilteredPlacements() {
|
|
217
213
|
const { el: t, flipPlacements: e } = this;
|
|
218
|
-
this.filteredFlipPlacements = e ?
|
|
214
|
+
this.filteredFlipPlacements = e ? M(e, t) : null;
|
|
219
215
|
}
|
|
220
216
|
setTransitionEl(t) {
|
|
221
217
|
this.transitionEl = t;
|
|
@@ -227,7 +223,7 @@ class pt extends E {
|
|
|
227
223
|
this.calciteInputDatePickerBeforeOpen.emit();
|
|
228
224
|
}
|
|
229
225
|
onOpen() {
|
|
230
|
-
|
|
226
|
+
C(this, {
|
|
231
227
|
onActivate: () => {
|
|
232
228
|
this.focusOnOpen && (this.datePickerEl?.setFocus(), this.focusOnOpen = !1);
|
|
233
229
|
}
|
|
@@ -237,10 +233,10 @@ class pt extends E {
|
|
|
237
233
|
this.calciteInputDatePickerBeforeClose.emit();
|
|
238
234
|
}
|
|
239
235
|
onClose() {
|
|
240
|
-
this.calciteInputDatePickerClose.emit(),
|
|
236
|
+
this.calciteInputDatePickerClose.emit(), U(this), w(this), this.focusOnOpen = !1, this.datePickerEl?.reset();
|
|
241
237
|
}
|
|
242
238
|
syncHiddenFormInput(t) {
|
|
243
|
-
|
|
239
|
+
nt("date", this, t);
|
|
244
240
|
}
|
|
245
241
|
setStartInput(t) {
|
|
246
242
|
this.startInput = t;
|
|
@@ -252,36 +248,36 @@ class pt extends E {
|
|
|
252
248
|
this.open = !1;
|
|
253
249
|
}
|
|
254
250
|
commitValue() {
|
|
255
|
-
const { focusedInput: t, value: e } = this, a = `${t}Input`, i = this[a].value,
|
|
251
|
+
const { focusedInput: t, value: e } = this, a = `${t}Input`, i = this[a].value, s = $(i, this.localeData), r = c(s), h = Array.isArray(e);
|
|
256
252
|
if (this.range) {
|
|
257
253
|
const d = t === "start" ? 0 : 1;
|
|
258
254
|
if (h) {
|
|
259
255
|
if (r === e[d])
|
|
260
256
|
return;
|
|
261
|
-
|
|
262
|
-
t === "start" ?
|
|
263
|
-
t === "end" ?
|
|
257
|
+
s ? (this.setRangeValue([
|
|
258
|
+
t === "start" ? s : l(e[0]),
|
|
259
|
+
t === "end" ? s : l(e[1])
|
|
264
260
|
]), this.localizeInputValues()) : this.setRangeValue([
|
|
265
261
|
t === "end" && l(e[0]),
|
|
266
262
|
t === "start" && l(e[1])
|
|
267
263
|
]);
|
|
268
264
|
} else
|
|
269
|
-
|
|
270
|
-
t === "start" ?
|
|
271
|
-
t === "end" ?
|
|
265
|
+
s && (this.setRangeValue([
|
|
266
|
+
t === "start" ? s : l(e[0]),
|
|
267
|
+
t === "end" ? s : l(e[1])
|
|
272
268
|
]), this.localizeInputValues());
|
|
273
269
|
} else {
|
|
274
270
|
if (r === e)
|
|
275
271
|
return;
|
|
276
|
-
this.setValue(
|
|
272
|
+
this.setValue(s), this.localizeInputValues();
|
|
277
273
|
}
|
|
278
274
|
}
|
|
279
275
|
keyDownHandler(t) {
|
|
280
276
|
const { defaultPrevented: e, key: a } = t;
|
|
281
277
|
if (e)
|
|
282
278
|
return;
|
|
283
|
-
const i = t.composedPath().some((
|
|
284
|
-
a === "Enter" ? (t.preventDefault(), this.commitValue(), this.shouldFocusRangeEnd() ? this.endInput?.setFocus() : this.shouldFocusRangeStart() && this.startInput?.setFocus(),
|
|
279
|
+
const i = t.composedPath().some((s) => s.tagName === "CALCITE-SELECT");
|
|
280
|
+
a === "Enter" ? (t.preventDefault(), this.commitValue(), this.shouldFocusRangeEnd() ? this.endInput?.setFocus() : this.shouldFocusRangeStart() && this.startInput?.setFocus(), q(this) && this.restoreInputFocus(!0)) : (a === "ArrowDown" || a === "ArrowUp") && !i ? (this.open = !0, this.focusOnOpen = !0, t.preventDefault()) : this.open && a === "Escape" && (this.open = !1, t.preventDefault(), this.restoreInputFocus(!0));
|
|
285
281
|
}
|
|
286
282
|
startInputFocus() {
|
|
287
283
|
this.focusedInput = "start";
|
|
@@ -299,7 +295,7 @@ class pt extends E {
|
|
|
299
295
|
this.endWrapper = t, this.setReferenceEl();
|
|
300
296
|
}
|
|
301
297
|
setDatePickerRef(t) {
|
|
302
|
-
this.datePickerEl = t,
|
|
298
|
+
this.datePickerEl = t, it(this, {
|
|
303
299
|
focusTrapEl: t,
|
|
304
300
|
focusTrapOptions: {
|
|
305
301
|
allowOutsideClick: !0,
|
|
@@ -312,11 +308,11 @@ class pt extends E {
|
|
|
312
308
|
});
|
|
313
309
|
}
|
|
314
310
|
async loadLocaleData() {
|
|
315
|
-
|
|
311
|
+
T() && (b.numberFormatOptions = {
|
|
316
312
|
numberingSystem: this.numberingSystem,
|
|
317
313
|
locale: this.messages._lang,
|
|
318
314
|
useGrouping: !1
|
|
319
|
-
}, this.localeData = await
|
|
315
|
+
}, this.localeData = await at(this.messages._lang), this.localizeInputValues());
|
|
320
316
|
}
|
|
321
317
|
/**
|
|
322
318
|
* Event handler for when the selected date changes
|
|
@@ -363,8 +359,8 @@ class pt extends E {
|
|
|
363
359
|
setRangeValue(t) {
|
|
364
360
|
if (!this.range)
|
|
365
361
|
return;
|
|
366
|
-
const { value: e } = this, a = Array.isArray(e), i = Array.isArray(t),
|
|
367
|
-
let r = i ? c(
|
|
362
|
+
const { value: e } = this, a = Array.isArray(e), i = Array.isArray(t), s = i ? t[0] : null;
|
|
363
|
+
let r = i ? c(s) : "";
|
|
368
364
|
r && (r = this.getNormalizedDate(r));
|
|
369
365
|
const h = i ? t[1] : null;
|
|
370
366
|
let d = i ? c(h) : "";
|
|
@@ -397,10 +393,10 @@ class pt extends E {
|
|
|
397
393
|
getNormalizedDate(t) {
|
|
398
394
|
if (!t)
|
|
399
395
|
return "";
|
|
400
|
-
if (!
|
|
396
|
+
if (!ct(t))
|
|
401
397
|
return t;
|
|
402
398
|
const { day: e, month: a, year: i } = S(t);
|
|
403
|
-
return `${
|
|
399
|
+
return `${ht(Number(i))}-${a}-${e}`;
|
|
404
400
|
}
|
|
405
401
|
focusInput() {
|
|
406
402
|
(this.focusedInput === "start" ? this.startInput : this.endInput).setFocus();
|
|
@@ -408,31 +404,31 @@ class pt extends E {
|
|
|
408
404
|
// #endregion
|
|
409
405
|
// #region Rendering
|
|
410
406
|
render() {
|
|
411
|
-
const { disabled: t, messages: { _lang: e }, messages: a, numberingSystem: i, readOnly:
|
|
407
|
+
const { disabled: t, messages: { _lang: e }, messages: a, numberingSystem: i, readOnly: s } = this;
|
|
412
408
|
return b.numberFormatOptions = {
|
|
413
409
|
numberingSystem: i,
|
|
414
410
|
locale: e,
|
|
415
411
|
useGrouping: !1
|
|
416
|
-
},
|
|
417
|
-
[
|
|
418
|
-
[
|
|
419
|
-
[
|
|
420
|
-
})} .disabled=${t} icon=calendar @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.startInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${
|
|
421
|
-
[
|
|
412
|
+
}, K({ disabled: this.disabled, children: p`${this.localeData && p`<div class=${o(n.container)}><div class=${o(n.inputContainer)}><div class=${o(n.inputWrapper)} data-position=start @click=${this.onInputWrapperClick} @pointerdown=${this.onInputWrapperPointerDown} ${u(this.setStartWrapper)}><calcite-input-text aria-controls=${this.dialogId ?? m} aria-describedby=${this.placeholderTextId ?? m} aria-errormessage=${P.validationMessage} aria-autocomplete=none .ariaExpanded=${this.open} aria-haspopup=dialog .ariaInvalid=${this.status === "invalid"} class=${o({
|
|
413
|
+
[n.input]: !0,
|
|
414
|
+
[n.inputNoBottomBorder]: this.layout === "vertical" && this.range,
|
|
415
|
+
[n.inputNoRightBorder]: this.range
|
|
416
|
+
})} .disabled=${t} icon=calendar @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.startInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${s} role=combobox .scale=${this.scale} .status=${this.status} ${u(this.setStartInput)}></calcite-input-text>${!this.readOnly && !this.range && this.renderToggleIcon(this.open && this.focusedInput === "start") || ""}<span aria-hidden=true class=${o(n.assistiveText)} id=${this.placeholderTextId ?? m}>${a.dateFormat.replace("{format}", this.localeData?.placeholder)}</span></div><div .ariaHidden=${!this.open} .ariaLabel=${a.chooseDate} aria-live=polite aria-modal=true class=${o(n.menu)} id=${this.dialogId ?? m} role=dialog ${u(this.setFloatingEl)}><div class=${o({
|
|
417
|
+
[n.calendarWrapper]: !0,
|
|
422
418
|
[A.animation]: !0,
|
|
423
419
|
[A.animationActive]: this.open
|
|
424
|
-
})} ${u(this.setTransitionEl)}><calcite-date-picker .activeDate=${this.datePickerActiveDate} .activeRange=${this.focusedInput} .headingLevel=${this.headingLevel} .layout=${this.layout} .max=${this.max} .maxAsDate=${this.maxAsDate} .messageOverrides=${this.messageOverrides} .min=${this.min} .minAsDate=${this.minAsDate} .monthStyle=${this.monthStyle} .numberingSystem=${i} @calciteDatePickerChange=${this.handleDateChange} @calciteDatePickerRangeChange=${this.handleDateRangeChange} .proximitySelectionDisabled=${this.proximitySelectionDisabled} .range=${this.range} .scale=${this.scale} tabindex=${(this.open ? void 0 : -1) ?? m} .valueAsDate=${this.valueAsDate} ${u(this.setDatePickerRef)}></calcite-date-picker></div></div>${this.range && p`<div class=${o(
|
|
425
|
-
[
|
|
426
|
-
[
|
|
427
|
-
[
|
|
428
|
-
[
|
|
429
|
-
})} .disabled=${t} icon=calendar @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.endInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${
|
|
420
|
+
})} ${u(this.setTransitionEl)}><calcite-date-picker .activeDate=${this.datePickerActiveDate} .activeRange=${this.focusedInput} .headingLevel=${this.headingLevel} .layout=${this.layout} .max=${this.max} .maxAsDate=${this.maxAsDate} .messageOverrides=${this.messageOverrides} .min=${this.min} .minAsDate=${this.minAsDate} .monthStyle=${this.monthStyle} .numberingSystem=${i} @calciteDatePickerChange=${this.handleDateChange} @calciteDatePickerRangeChange=${this.handleDateRangeChange} .proximitySelectionDisabled=${this.proximitySelectionDisabled} .range=${this.range} .scale=${this.scale} tabindex=${(this.open ? void 0 : -1) ?? m} .valueAsDate=${this.valueAsDate} ${u(this.setDatePickerRef)}></calcite-date-picker></div></div>${this.range && p`<div class=${o(n.dividerContainer)}><div class=${o(n.divider)}></div></div>` || ""}${this.range && p`<div class=${o(n.inputWrapper)} data-position=end @click=${this.onInputWrapperClick} @pointerdown=${this.onInputWrapperPointerDown} ${u(this.setEndWrapper)}><calcite-input-text aria-controls=${this.dialogId ?? m} aria-autocomplete=none .ariaExpanded=${this.open} aria-haspopup=dialog class=${o({
|
|
421
|
+
[n.input]: !0,
|
|
422
|
+
[n.inputNoTopBorder]: this.layout === "vertical" && this.range,
|
|
423
|
+
[n.inputNoLeftBorder]: this.layout === "horizontal" && this.range,
|
|
424
|
+
[n.inputNoRightBorder]: this.layout === "vertical" && this.range
|
|
425
|
+
})} .disabled=${t} icon=calendar @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.endInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${s} role=combobox .scale=${this.scale} .status=${this.status} ${u(this.setEndInput)}></calcite-input-text>${!this.readOnly && this.layout === "horizontal" && this.renderToggleIcon(this.open) || ""}</div>` || ""}</div>${this.range && this.layout === "vertical" && p`<div class=${o(n.verticalChevronContainer)}><calcite-icon .icon=${this.open ? "chevron-up" : "chevron-down"} .scale=${V(this.scale)}></calcite-icon></div>` || ""}</div>` || ""}${G({ component: this })}${this.validationMessage && this.status === "invalid" ? st({ icon: this.validationIcon, id: P.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
|
|
430
426
|
}
|
|
431
427
|
renderToggleIcon(t) {
|
|
432
|
-
return p`<span class=${o(
|
|
428
|
+
return p`<span class=${o(n.toggleIcon)} tabindex=-1><calcite-icon class=${o(n.chevronIcon)} .icon=${t ? "chevron-up" : "chevron-down"} .scale=${V(this.scale)}></calcite-icon></span>`;
|
|
433
429
|
}
|
|
434
430
|
}
|
|
435
|
-
|
|
431
|
+
O("calcite-input-date-picker", dt);
|
|
436
432
|
export {
|
|
437
|
-
|
|
433
|
+
dt as InputDatePicker
|
|
438
434
|
};
|
|
@@ -3,11 +3,9 @@ import { html as i } from "lit";
|
|
|
3
3
|
import { LitElement as o, stringOrBoolean as a, setAttribute as c } from "@arcgis/lumina";
|
|
4
4
|
import { v as e } from "../../chunks/dom.js";
|
|
5
5
|
import { css as l } from "@lit/reactive-element/css-tag.js";
|
|
6
|
-
/*!
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* v3.0.0-next.99
|
|
10
|
-
*/
|
|
6
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
7
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
8
|
+
v3.0.1 */
|
|
11
9
|
const s = {
|
|
12
10
|
valid: "check-circle",
|
|
13
11
|
invalid: "exclamation-mark-triangle",
|
|
@@ -54,13 +54,15 @@ export declare class InputNumber extends LitElement {
|
|
|
54
54
|
/** When `true`, the component is in the loading state and `calcite-progress` is displayed. */
|
|
55
55
|
loading: boolean;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* When the component resides in a form,
|
|
58
|
+
* specifies the maximum value.
|
|
58
59
|
*
|
|
59
60
|
* @mdn [max](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max)
|
|
60
61
|
*/
|
|
61
62
|
max: number;
|
|
62
63
|
/**
|
|
63
|
-
*
|
|
64
|
+
* When the component resides in a form,
|
|
65
|
+
* specifies the maximum length of text for the component's value.
|
|
64
66
|
*
|
|
65
67
|
* @mdn [maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
|
|
66
68
|
* @deprecated This property has no effect on the component.
|
|
@@ -81,13 +83,15 @@ export declare class InputNumber extends LitElement {
|
|
|
81
83
|
loading: string;
|
|
82
84
|
}>;
|
|
83
85
|
/**
|
|
84
|
-
*
|
|
86
|
+
* When the component resides in a form,
|
|
87
|
+
* specifies the minimum value.
|
|
85
88
|
*
|
|
86
89
|
* @mdn [min](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min)
|
|
87
90
|
*/
|
|
88
91
|
min: number;
|
|
89
92
|
/**
|
|
90
|
-
*
|
|
93
|
+
* When the component resides in a form,
|
|
94
|
+
* specifies the minimum length of text for the component's value.
|
|
91
95
|
*
|
|
92
96
|
* @mdn [minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
|
|
93
97
|
* @deprecated This property has no effect on the component.
|
|
@@ -119,7 +123,10 @@ export declare class InputNumber extends LitElement {
|
|
|
119
123
|
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
120
124
|
*/
|
|
121
125
|
readOnly: boolean;
|
|
122
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* When `true` and the component resides in a form,
|
|
128
|
+
* the component must have a value in order for the form to submit.
|
|
129
|
+
*/
|
|
123
130
|
required: boolean;
|
|
124
131
|
/** Specifies the size of the component. */
|
|
125
132
|
scale: Scale;
|