@esri/calcite-components 3.0.0-next.99 → 3.0.0
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/22RQB3WE.js +4 -0
- package/dist/calcite/{2JRSKQML.js → 24SER2VV.js} +4 -6
- package/dist/calcite/2BGMAPSV.js +4 -0
- package/dist/calcite/2JKKAEPM.js +4 -0
- package/dist/calcite/{JLIVSPKC.js → 2M4WCGKG.js} +4 -6
- package/dist/calcite/2YAXZHP2.js +4 -0
- package/dist/calcite/{AUEN6VFD.js → 345Q4UHX.js} +4 -6
- package/dist/calcite/{O7B4THLC.js → 36DMRAV2.js} +4 -6
- package/dist/calcite/{EBQYJBDQ.js → 3DGJ6ZQI.js} +4 -6
- package/dist/calcite/3GICXOBQ.js +4 -0
- package/dist/calcite/3IV6JSC2.js +4 -0
- package/dist/calcite/{Y5IWWVKB.js → 3TOVZEQB.js} +4 -6
- package/dist/calcite/45GA6INB.js +4 -0
- package/dist/calcite/46U4MKUU.js +4 -0
- package/dist/calcite/4BSCJ722.js +4 -0
- package/dist/calcite/4SEPDFCP.js +5 -0
- package/dist/calcite/{B77QRUX7.js → 4TQLSUKH.js} +4 -6
- package/dist/calcite/4YZ27QWL.js +4 -0
- package/dist/calcite/4Z7JRTON.js +4 -0
- package/dist/calcite/5AVZLE2Q.js +4 -0
- package/dist/calcite/{OMBBOPRI.js → 5EPP4MG3.js} +4 -6
- package/dist/calcite/{KWWKG3YN.js → 66B2H27W.js} +4 -6
- package/dist/calcite/6LW27BEV.js +4 -0
- package/dist/calcite/6OZRZ36X.js +4 -0
- package/dist/calcite/6X2SD2PW.js +4 -0
- package/dist/calcite/{ZWGCNMZF.js → 6XTYGXNG.js} +4 -6
- package/dist/calcite/6ZTWHW63.js +4 -0
- package/dist/calcite/{BZOCG27F.js → 7D3VEEUX.js} +4 -6
- package/dist/calcite/7E342YOK.js +4 -0
- package/dist/calcite/{4OYBMKUB.js → 7KSGVDSR.js} +4 -6
- package/dist/calcite/{DF7SVAJW.js → 7PWETOIU.js} +4 -6
- package/dist/calcite/7QHUEK5R.js +4 -0
- package/dist/calcite/{BGQR3WLU.js → 7SX3RD7P.js} +4 -6
- package/dist/calcite/7U7FF3Y4.js +4 -0
- package/dist/calcite/7WG5I3MP.js +4 -0
- package/dist/calcite/{KHDHQPVO.js → A5GGYTUQ.js} +4 -6
- package/dist/calcite/{3SE2Z2VK.js → AI3R3SU6.js} +5 -7
- package/dist/calcite/ARHYATTG.js +4 -0
- package/dist/calcite/{ELXZUEDC.js → ATHBUWBY.js} +4 -6
- package/dist/calcite/AXXJNFKZ.js +4 -0
- package/dist/calcite/{AASA6526.js → AYZ73RWQ.js} +4 -6
- package/dist/calcite/{S6AE7RHT.js → BAHIPAHM.js} +4 -6
- package/dist/calcite/BRTDMTZ3.js +4 -0
- package/dist/calcite/BRTESQOJ.js +4 -0
- package/dist/calcite/{3LYDW23E.js → BSRMWMHQ.js} +4 -6
- package/dist/calcite/{2UYJUU43.js → BZKF5ZXQ.js} +4 -6
- package/dist/calcite/C46JYVUP.js +4 -0
- package/dist/calcite/C54C5E23.js +4 -0
- package/dist/calcite/CBSMKHOY.js +4 -0
- package/dist/calcite/CFRBQXK4.js +4 -0
- package/dist/calcite/CIV3PH3Z.js +4 -0
- package/dist/calcite/CJYTY62F.js +4 -0
- package/dist/calcite/CK6HQQX6.js +4 -0
- package/dist/calcite/CMO3X257.js +4 -0
- package/dist/calcite/{3Z3RDAUW.js → CNO6NFH5.js} +4 -6
- package/dist/calcite/CWPRBG3T.js +4 -0
- package/dist/calcite/CY6C2FDZ.js +4 -0
- package/dist/calcite/D2HDFE7S.js +22 -0
- package/dist/calcite/D36VWSDW.js +4 -0
- package/dist/calcite/{3QV5TGZD.js → DBVNMM6Q.js} +4 -6
- package/dist/calcite/{4JU7BKXB.js → DDJ75RTI.js} +4 -6
- package/dist/calcite/DH4ISGHV.js +4 -0
- package/dist/calcite/{3PJ42556.js → DNYBIAUI.js} +4 -6
- package/dist/calcite/DT67ZFPX.js +4 -0
- package/dist/calcite/{EWQKTTIO.js → DTL2LM6T.js} +4 -6
- package/dist/calcite/E3R5SMVW.js +4 -0
- package/dist/calcite/{AGLAEQKV.js → E4NMFIKN.js} +4 -6
- package/dist/calcite/{FMI6FJW4.js → EAML4EDI.js} +4 -6
- package/dist/calcite/{XEW3B3B5.js → ECEZ4R6E.js} +4 -6
- package/dist/calcite/EFI2G5WL.js +4 -0
- package/dist/calcite/EHZCT5YZ.js +4 -0
- package/dist/calcite/{SYOTV4D4.js → EOHVH6PN.js} +4 -6
- package/dist/calcite/ESBOJTBS.js +4 -0
- package/dist/calcite/F6EGRKXW.js +4 -0
- package/dist/calcite/FCN5RMLA.js +4 -0
- package/dist/calcite/FDIM6DYL.js +4 -0
- package/dist/calcite/FE3A3YUN.js +4 -0
- package/dist/calcite/FHBFGCTR.js +4 -0
- package/dist/calcite/FNFWOOMR.js +4 -0
- package/dist/calcite/{UPY24BFQ.js → FNM4DZZH.js} +3 -5
- package/dist/calcite/G2KHDAZD.js +4 -0
- package/dist/calcite/{P64WY2HI.js → G3LH75CQ.js} +4 -6
- package/dist/calcite/{UZAQE6XP.js → G3ZJ2KQT.js} +4 -6
- package/dist/calcite/{GIRDDKPZ.js → G7WFYVUC.js} +4 -6
- package/dist/calcite/{3RLXG3NR.js → GAAXSGWK.js} +4 -6
- package/dist/calcite/{QNGBOTGF.js → GE63ETFI.js} +4 -6
- package/dist/calcite/{DO5AYUNU.js → GFC7NS6P.js} +4 -6
- package/dist/calcite/GGO5TMB4.js +4 -0
- package/dist/calcite/GKKCWEZX.js +4 -0
- package/dist/calcite/GN5CPLSJ.js +4 -0
- package/dist/calcite/GNUSLZWJ.js +4 -0
- package/dist/calcite/{L4IJ6KQT.js → GOOHYN3D.js} +4 -6
- package/dist/calcite/GPUFLCIT.js +4 -0
- package/dist/calcite/GSXEMGSW.js +4 -0
- package/dist/calcite/GYQTRH4V.js +4 -0
- package/dist/calcite/HFIRIAQA.js +4 -0
- package/dist/calcite/{6EFD6XES.js → HGTV36FX.js} +4 -6
- package/dist/calcite/HKHPJJ34.js +4 -0
- package/dist/calcite/{CM4U5UKC.js → HMVKZP47.js} +4 -6
- package/dist/calcite/I2OIH73C.js +4 -0
- package/dist/calcite/{W4D5O4P2.js → I32TMNTO.js} +3 -5
- package/dist/calcite/{KBVTFWRR.js → I62DUDHI.js} +4 -6
- package/dist/calcite/IH4RXHJJ.js +4 -0
- package/dist/calcite/{EUXG27WD.js → IJCTXZQB.js} +4 -6
- package/dist/calcite/{5LAQP62T.js → IXRMDUEL.js} +4 -6
- package/dist/calcite/IYDN67SF.js +4 -0
- package/dist/calcite/JCWM5Z43.js +4 -0
- package/dist/calcite/{26ES3CRO.js → JEX42CPR.js} +4 -6
- package/dist/calcite/JFYDLHH7.js +4 -0
- package/dist/calcite/JLZYAYOL.js +4 -0
- package/dist/calcite/{3KND2KKH.js → JUNCR7R2.js} +4 -6
- package/dist/calcite/{K3F2CI4A.js → JVNEJ36Z.js} +4 -6
- package/dist/calcite/K3ZBW4GY.js +4 -0
- package/dist/calcite/{G4Q2QH6B.js → KBDXI6DJ.js} +4 -6
- package/dist/calcite/{XFHDAVBK.js → KBNS3CCT.js} +4 -6
- package/dist/calcite/KI2NOBMU.js +4 -0
- package/dist/calcite/KSNEQFZX.js +4 -0
- package/dist/calcite/KSVYAIHK.js +4 -0
- package/dist/calcite/KULDQOV2.js +4 -0
- package/dist/calcite/KVSCG5E3.js +6 -0
- package/dist/calcite/{JFBHBHJE.js → KW57BHXD.js} +4 -6
- package/dist/calcite/{VP4IW6MN.js → KWOOGTG2.js} +4 -6
- package/dist/calcite/L5FDXQMT.js +4 -0
- package/dist/calcite/{UFV4E5V5.js → LB5ATL5Q.js} +4 -6
- package/dist/calcite/LH7KSBQC.js +4 -0
- package/dist/calcite/{6YQ42X6L.js → LHSAAMYQ.js} +4 -6
- package/dist/calcite/LILDCWFX.js +4 -0
- package/dist/calcite/LLSB73WA.js +4 -0
- package/dist/calcite/{MRVEUN2O.js → LOZEGKG2.js} +4 -6
- package/dist/calcite/{LR6EXHT2.js → MBQZPRQ5.js} +4 -6
- package/dist/calcite/MCSX2S5T.js +4 -0
- package/dist/calcite/{5MEU7SU4.js → MIKGJ3NM.js} +4 -6
- package/dist/calcite/MPAVJ7UH.js +4 -0
- package/dist/calcite/{RWW7CETF.js → MPX2M2VX.js} +4 -6
- package/dist/calcite/{N7NWH5SX.js → MQYH4ONZ.js} +3 -5
- package/dist/calcite/MUWK32IE.js +4 -0
- package/dist/calcite/{6FI3WN2Y.js → MZRO54UT.js} +4 -6
- package/dist/calcite/N2BVYYYP.js +4 -0
- package/dist/calcite/{WIGL5RKK.js → N4MN6VQ7.js} +4 -6
- package/dist/calcite/{ESS6BUTG.js → N55N67N5.js} +4 -6
- package/dist/calcite/NODC2JA6.js +4 -0
- package/dist/calcite/{FSQJ72IH.js → NVBNX55L.js} +4 -6
- package/dist/calcite/{Z2ZTWA3F.js → NWVCPRVB.js} +3 -5
- package/dist/calcite/{W3WKINVO.js → O4O3TSE5.js} +4 -6
- package/dist/calcite/OE2AH2NC.js +4 -0
- package/dist/calcite/OGED6PPP.js +4 -0
- package/dist/calcite/{QBG5T6W3.js → OHOS32IT.js} +4 -6
- package/dist/calcite/{KA53KK35.js → OLMX7G3J.js} +3 -5
- package/dist/calcite/OOSULFCY.js +4 -0
- package/dist/calcite/OPBQNK7J.js +4 -0
- package/dist/calcite/OTHVFLNW.js +4 -0
- package/dist/calcite/{G75XVKLZ.js → OTUG3NVT.js} +4 -6
- package/dist/calcite/PNHR5K2L.js +4 -0
- package/dist/calcite/{2YSVELPG.js → PT2XMADA.js} +3 -5
- package/dist/calcite/PZLVQQMT.js +4 -0
- package/dist/calcite/{I2N2BRJR.js → QAYSDI3M.js} +3 -5
- package/dist/calcite/QCGLMLKW.js +4 -0
- package/dist/calcite/QHASLHZN.js +4 -0
- package/dist/calcite/QK2H5T7J.js +4 -0
- package/dist/calcite/QLKHJI4P.js +4 -0
- package/dist/calcite/QQ67AVDV.js +4 -0
- package/dist/calcite/{CTQ5YHOP.js → QU33PBBI.js} +4 -6
- package/dist/calcite/QYGED6CL.js +4 -0
- package/dist/calcite/R3HMG2D6.js +4 -0
- package/dist/calcite/{OU4N4K2U.js → R4RMVIKH.js} +4 -6
- package/dist/calcite/R6GNPMSV.js +4 -0
- package/dist/calcite/{ARFAFPKS.js → RAFCSOOQ.js} +4 -6
- package/dist/calcite/{GU2SFYM4.js → RAQWKUOJ.js} +4 -6
- package/dist/calcite/RESHLE2Y.js +4 -0
- package/dist/calcite/RJLKHCRB.js +4 -0
- package/dist/calcite/RLSQLIV6.js +4 -0
- package/dist/calcite/{57L4ZYLO.js → RMGYRZXR.js} +4 -6
- package/dist/calcite/RSAEDAEX.js +4 -0
- package/dist/calcite/{SFWNFANJ.js → RUTUU2EH.js} +4 -6
- package/dist/calcite/{XFKIMAJU.js → RVMVJW6K.js} +4 -6
- package/dist/calcite/RVQMJBNS.js +4 -0
- package/dist/calcite/{QLJX2F4K.js → S76CXQTI.js} +4 -6
- package/dist/calcite/SBZ6VJ75.js +4 -0
- package/dist/calcite/SJKTCGW6.js +4 -0
- package/dist/calcite/{G27BUJJG.js → SKDMJE3X.js} +3 -5
- package/dist/calcite/SMUXJLDL.js +4 -0
- package/dist/calcite/SYEQSDHG.js +4 -0
- package/dist/calcite/T3NRBBZP.js +4 -0
- package/dist/calcite/T5UPGHU3.js +4 -0
- package/dist/calcite/{XOA2TSHC.js → T6HODD4B.js} +4 -6
- package/dist/calcite/TNR5VZG2.js +4 -0
- package/dist/calcite/TQIVV2F7.js +4 -0
- package/dist/calcite/{UCGUHOUO.js → TQTAM3XB.js} +4 -6
- package/dist/calcite/{XR2WLB7D.js → TSJJLMPA.js} +3 -5
- package/dist/calcite/{VM4VUQ54.js → TVDZM7WT.js} +4 -6
- package/dist/calcite/U3WK4DZT.js +4 -0
- package/dist/calcite/U725E4ID.js +4 -0
- package/dist/calcite/UELGJSYH.js +4 -0
- package/dist/calcite/UJL3BWDH.js +4 -0
- package/dist/calcite/{AFH6KP7M.js → URM3R65T.js} +4 -6
- package/dist/calcite/US3PQV6O.js +4 -0
- package/dist/calcite/{BNYX7IBO.js → V4JZRN7T.js} +4 -6
- package/dist/calcite/{3JQJ24PZ.js → VCSXFNPO.js} +4 -6
- package/dist/calcite/VG7BJBFG.js +4 -0
- package/dist/calcite/{6LWRLBVD.js → VJD4CRQ3.js} +4 -6
- package/dist/calcite/VMRLYKNI.js +4 -0
- package/dist/calcite/{LQ5ITYNE.js → VNQNKQ2J.js} +4 -6
- package/dist/calcite/VST65PDC.js +4 -0
- package/dist/calcite/WKTGTKRJ.js +4 -0
- package/dist/calcite/WPAMFFBY.js +4 -0
- package/dist/calcite/{3ATQZBKY.js → WSGL37LB.js} +4 -6
- package/dist/calcite/{4TWMM7Z6.js → WWUBU6N5.js} +4 -6
- package/dist/calcite/{QFH3VN2R.js → X2UHFJHG.js} +4 -6
- package/dist/calcite/XBZLGRRI.js +4 -0
- package/dist/calcite/XOVG6UH3.js +4 -0
- package/dist/calcite/{7NVGCG7Q.js → XT32TCZG.js} +3 -5
- package/dist/calcite/XXZIOSXQ.js +4 -0
- package/dist/calcite/{MNBTRJLH.js → Y6VF7HSM.js} +4 -6
- package/dist/calcite/YA5A7PJR.js +4 -0
- package/dist/calcite/{MYJH43DB.js → YMRTHS5X.js} +4 -6
- package/dist/calcite/{ZQSF4K7D.js → YTRT5XZT.js} +4 -6
- package/dist/calcite/{O2KBYT33.js → YXLQFMOA.js} +4 -6
- package/dist/calcite/{J7RY7DXT.js → YYJSHQR3.js} +3 -5
- package/dist/calcite/{SZP7YBVQ.js → Z6GA347Y.js} +4 -6
- package/dist/calcite/{VFBPWVKE.js → Z7VNUC77.js} +4 -6
- package/dist/calcite/ZA76CHET.js +4 -0
- package/dist/calcite/ZGXTLCGJ.js +4 -0
- package/dist/calcite/{KMLCSDZJ.js → ZQO6E4FO.js} +4 -6
- package/dist/calcite/ZV442E6X.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 +49 -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 +17 -21
- 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.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 +67 -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 +1141 -159
- package/dist/docs/docs.json +1093 -126
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +315 -7
- package/dist/docs/vscode.html-custom-data.json +107 -60
- package/dist/docs/web-types.json +659 -119
- package/dist/extras/vscode-data.json +107 -60
- 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/PB4E6L52.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
|
@@ -3,30 +3,26 @@ import { live as H } from "lit-html/directives/live.js";
|
|
|
3
3
|
import { keyed as B } from "lit-html/directives/keyed.js";
|
|
4
4
|
import { html as d, nothing as h } from "lit";
|
|
5
5
|
import { createRef as k, ref as y } from "lit-html/directives/ref.js";
|
|
6
|
-
import { LitElement as
|
|
7
|
-
import { useWatchAttributes as
|
|
8
|
-
import { v as w, i as z, g as
|
|
9
|
-
import { c as
|
|
6
|
+
import { LitElement as F, createEvent as g, stringOrBoolean as I, safeClassMap as a } from "@arcgis/lumina";
|
|
7
|
+
import { useWatchAttributes as O } from "@arcgis/components-controllers";
|
|
8
|
+
import { v as w, i as z, g as D } from "../../chunks/dom.js";
|
|
9
|
+
import { c as C, i as N, d as T, s as P, H as j } from "../../chunks/form.js";
|
|
10
10
|
import { u as L, I as M } from "../../chunks/interactive.js";
|
|
11
11
|
import { n as W } from "../../chunks/key.js";
|
|
12
12
|
import { c as U, d as A, g as K } from "../../chunks/label.js";
|
|
13
|
-
import { c as _
|
|
14
|
-
import { i as p, n as s, B as
|
|
13
|
+
import { c as _ } from "../../chunks/loadable.js";
|
|
14
|
+
import { i as p, n as s, B as R, p as q, s as G, c as Y } from "../../chunks/locale.js";
|
|
15
15
|
import { g as v } from "../../chunks/component.js";
|
|
16
|
-
import { V as
|
|
17
|
-
import { s as
|
|
18
|
-
import { u as
|
|
19
|
-
import { css as
|
|
20
|
-
/*!
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* v3.0.0-next.99
|
|
24
|
-
*/
|
|
16
|
+
import { V as Z } from "../../chunks/Validation.js";
|
|
17
|
+
import { s as J } from "../../chunks/input.js";
|
|
18
|
+
import { u as Q } from "../../chunks/useT9n.js";
|
|
19
|
+
import { css as X } from "@lit/reactive-element/css-tag.js";
|
|
20
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
21
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
22
|
+
v3.0.0 */
|
|
25
23
|
const r = {
|
|
26
24
|
loader: "loader",
|
|
27
25
|
clearButton: "clear-button",
|
|
28
|
-
editingEnabled: "editing-enabled",
|
|
29
|
-
inlineChild: "inline-child",
|
|
30
26
|
inputIcon: "icon",
|
|
31
27
|
prefix: "prefix",
|
|
32
28
|
suffix: "suffix",
|
|
@@ -35,23 +31,22 @@ const r = {
|
|
|
35
31
|
wrapper: "element-wrapper",
|
|
36
32
|
inputWrapper: "wrapper",
|
|
37
33
|
actionWrapper: "action-wrapper",
|
|
38
|
-
resizeIconWrapper: "resize-icon-wrapper",
|
|
39
34
|
numberButtonItem: "number-button-item"
|
|
40
35
|
}, V = {
|
|
41
36
|
validationMessage: "inputNumberValidationMessage"
|
|
42
|
-
},
|
|
37
|
+
}, tt = {
|
|
43
38
|
action: "action"
|
|
44
|
-
}, nt = et`: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:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}input{transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none;position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-radius:0;background-color:var(--calcite-color-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1)}input:placeholder-shown{text-overflow:ellipsis}input{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);color:var(--calcite-color-text-1)}input::placeholder,input:-ms-input-placeholder,input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-3)}input:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-text-1)}input[readonly]{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}input[readonly]:focus{color:var(--calcite-color-text-1)}calcite-icon{color:var(--calcite-color-text-3)}input{outline-color:transparent}input: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))))}:host([status=invalid]) input{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .icon{inset-inline-start:.5rem}:host([scale=m]) .icon{inset-inline-start:.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;z-index:var(--calcite-z-index);display:block;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.clear-button{pointer-events:initial;order:4;margin:0;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-color-foreground-2);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.clear-button:hover calcite-icon{color:var(--calcite-color-text-1);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.clear-button:active{background-color:var(--calcite-color-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-color-text-1)}.clear-button: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))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-color-text-2)}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto)}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto)}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:1;max-block-size:100%;min-block-size:100%;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:.5rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.number-button-item:focus{background-color:var(--calcite-color-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-color-text-1)}.number-button-item:active{background-color:var(--calcite-color-foreground-3)}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
45
|
-
class
|
|
39
|
+
}, et = X`: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:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}input{transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none;position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-radius:0;background-color:var(--calcite-color-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1)}input:placeholder-shown{text-overflow:ellipsis}input{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);color:var(--calcite-color-text-1)}input::placeholder,input:-ms-input-placeholder,input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-3)}input:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-text-1)}input[readonly]{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}input[readonly]:focus{color:var(--calcite-color-text-1)}calcite-icon{color:var(--calcite-color-text-3)}input{outline-color:transparent}input: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))))}:host([status=invalid]) input{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .icon{inset-inline-start:.5rem}:host([scale=m]) .icon{inset-inline-start:.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;z-index:var(--calcite-z-index);display:block;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.clear-button{pointer-events:initial;order:4;margin:0;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-color-foreground-2);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.clear-button:hover calcite-icon{color:var(--calcite-color-text-1);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.clear-button:active{background-color:var(--calcite-color-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-color-text-1)}.clear-button: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))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-color-text-2)}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto)}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto)}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:1;max-block-size:100%;min-block-size:100%;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:.5rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.number-button-item:focus{background-color:var(--calcite-color-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-color-text-1)}.number-button-item:active{background-color:var(--calcite-color-foreground-3)}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
40
|
+
class it extends F {
|
|
46
41
|
// #endregion
|
|
47
42
|
// #region Lifecycle
|
|
48
43
|
constructor() {
|
|
49
|
-
super(), this.actionWrapperEl = k(), this.attributeWatch =
|
|
44
|
+
super(), this.actionWrapperEl = k(), this.attributeWatch = O(["autofocus", "enterkeyhint", "inputmode"], this.handleGlobalAttributesChanged), this.inputWrapperEl = k(), this.onHiddenFormInputInput = (t) => {
|
|
50
45
|
t.target.name === this.name && this.setNumberValue({
|
|
51
46
|
value: t.target.value,
|
|
52
47
|
origin: "direct"
|
|
53
48
|
}), this.setFocus(), t.stopPropagation();
|
|
54
|
-
}, this.previousValueOrigin = "initial", this.userChangedValue = !1, this._value = "", this.slottedActionElDisabledInternally = !1, this.alignment = "start", this.clearable = !1, this.disabled = !1, this.editingEnabled = !1, this.groupSeparator = !1, this.iconFlipRtl = !1, this.integer = !1, this.loading = !1, this.localeFormat = !1, this.messages =
|
|
49
|
+
}, this.previousValueOrigin = "initial", this.userChangedValue = !1, this._value = "", this.slottedActionElDisabledInternally = !1, this.alignment = "start", this.clearable = !1, this.disabled = !1, this.editingEnabled = !1, this.groupSeparator = !1, this.iconFlipRtl = !1, this.integer = !1, this.loading = !1, this.localeFormat = !1, this.messages = Q(), this.numberButtonType = "vertical", this.readOnly = !1, this.required = !1, this.scale = "m", this.status = "idle", this.validity = {
|
|
55
50
|
valid: !1,
|
|
56
51
|
badInput: !1,
|
|
57
52
|
customError: !1,
|
|
@@ -69,7 +64,7 @@ class rt extends C {
|
|
|
69
64
|
this.properties = { displayedValue: 16, slottedActionElDisabledInternally: 16, alignment: 3, autocomplete: 0, clearable: 7, disabled: 7, editingEnabled: 7, form: 3, groupSeparator: 7, icon: [3, { converter: I }], iconFlipRtl: 7, integer: 5, label: 1, loading: 7, localeFormat: 5, max: 11, maxLength: 11, messageOverrides: 0, min: 11, minLength: 11, name: 3, numberButtonType: 3, numberingSystem: 3, placeholder: 1, prefixText: 1, readOnly: 7, required: 7, scale: 3, status: 3, step: 3, suffixText: 1, validationIcon: [3, { converter: I }], validationMessage: 1, validity: 0, value: 1 };
|
|
70
65
|
}
|
|
71
66
|
static {
|
|
72
|
-
this.styles =
|
|
67
|
+
this.styles = et;
|
|
73
68
|
}
|
|
74
69
|
get isClearable() {
|
|
75
70
|
return this.clearable && this.value.length > 0;
|
|
@@ -96,10 +91,10 @@ class rt extends C {
|
|
|
96
91
|
await _(this), this.childNumberEl?.focus();
|
|
97
92
|
}
|
|
98
93
|
connectedCallback() {
|
|
99
|
-
super.connectedCallback(), this.inlineEditableEl = this.el.closest("calcite-inline-editable"), this.inlineEditableEl && (this.editingEnabled = this.inlineEditableEl.editingEnabled || !1), U(this),
|
|
94
|
+
super.connectedCallback(), this.inlineEditableEl = this.el.closest("calcite-inline-editable"), this.inlineEditableEl && (this.editingEnabled = this.inlineEditableEl.editingEnabled || !1), U(this), C(this), this.el.addEventListener(N, this.onHiddenFormInputInput);
|
|
100
95
|
}
|
|
101
96
|
async load() {
|
|
102
|
-
|
|
97
|
+
this.maxString = this.max?.toString(), this.minString = this.min?.toString(), this.requestedIcon = w({}, this.icon, "number"), this.setPreviousEmittedNumberValue(this.value), this.setPreviousNumberValue(this.value), this.warnAboutInvalidNumberValue(this.value), this.value === "Infinity" || this.value === "-Infinity" ? (this.displayedValue = this.value, this.previousEmittedNumberValue = this.value) : this.setNumberValue({
|
|
103
98
|
origin: "connected",
|
|
104
99
|
value: p(this.value) ? this.value : ""
|
|
105
100
|
});
|
|
@@ -115,7 +110,6 @@ class rt extends C {
|
|
|
115
110
|
L(this);
|
|
116
111
|
}
|
|
117
112
|
loaded() {
|
|
118
|
-
q(this);
|
|
119
113
|
}
|
|
120
114
|
disconnectedCallback() {
|
|
121
115
|
super.disconnectedCallback(), A(this), T(this), this.el.removeEventListener(N, this.onHiddenFormInputInput);
|
|
@@ -149,7 +143,7 @@ class rt extends C {
|
|
|
149
143
|
const { value: n } = this;
|
|
150
144
|
if (n === "Infinity" || n === "-Infinity")
|
|
151
145
|
return;
|
|
152
|
-
const l = t === "up" ? 1 : -1, u = this.integer && this.step !== "any" ? Math.round(this.step) : this.step, b = u === "any" ? 1 : Math.abs(u || 1), o = new
|
|
146
|
+
const l = t === "up" ? 1 : -1, u = this.integer && this.step !== "any" ? Math.round(this.step) : this.step, b = u === "any" ? 1 : Math.abs(u || 1), o = new R(n !== "" ? n : "0").add(`${b * l}`), c = () => typeof i == "number" && !isNaN(i) && o.subtract(`${i}`).isNegative, x = () => typeof e == "number" && !isNaN(e) && !o.subtract(`${e}`).isNegative, $ = c() ? `${i}` : x() ? `${e}` : o.toString();
|
|
153
147
|
this.setNumberValue({
|
|
154
148
|
committing: !0,
|
|
155
149
|
nativeEvent: m,
|
|
@@ -193,7 +187,7 @@ class rt extends C {
|
|
|
193
187
|
t.inputType === "insertFromPaste" ? ((!p(i) || this.integer && (i.includes("e") || i.includes("."))) && t.preventDefault(), this.setNumberValue({
|
|
194
188
|
nativeEvent: t,
|
|
195
189
|
origin: "user",
|
|
196
|
-
value:
|
|
190
|
+
value: q(i)
|
|
197
191
|
}), this.childNumberEl.value = this.displayedValue) : this.setNumberValue({
|
|
198
192
|
nativeEvent: t,
|
|
199
193
|
origin: "user",
|
|
@@ -266,7 +260,7 @@ class rt extends C {
|
|
|
266
260
|
this.disabled || this.nudgeNumberValue(e, t);
|
|
267
261
|
}
|
|
268
262
|
syncHiddenFormInput(t) {
|
|
269
|
-
|
|
263
|
+
J("number", this, t);
|
|
270
264
|
}
|
|
271
265
|
setChildNumberElRef(t) {
|
|
272
266
|
this.childNumberEl = t;
|
|
@@ -289,9 +283,9 @@ class rt extends C {
|
|
|
289
283
|
numberingSystem: this.numberingSystem,
|
|
290
284
|
useGrouping: this.groupSeparator
|
|
291
285
|
};
|
|
292
|
-
const l = this.previousValue?.length > n.length || this.value?.length > n.length, u = this.integer ? n.replace(/[e.]/g, "") : n, b = u.charAt(u.length - 1) === ".", f = b && l ? u :
|
|
286
|
+
const l = this.previousValue?.length > n.length || this.value?.length > n.length, u = this.integer ? n.replace(/[e.]/g, "") : n, b = u.charAt(u.length - 1) === ".", f = b && l ? u : G(u), o = n && !f ? p(this.previousValue) ? this.previousValue : "" : f;
|
|
293
287
|
let c = s.localize(o);
|
|
294
|
-
i !== "connected" && !b && (c =
|
|
288
|
+
i !== "connected" && !b && (c = Y(c, o, s)), this.displayedValue = b && l ? `${c}${s.decimal}` : c, this.setPreviousNumberValue(m ?? this.value), this.previousValueOrigin = i, this.userChangedValue = i === "user" && this.value !== o, this.value = ["-", "."].includes(o) ? "" : o, i === "direct" && (this.setInputNumberValue(c), this.setPreviousEmittedNumberValue(c)), e && (this.calciteInputNumberInput.emit().defaultPrevented ? (this.value = this.previousValue, this.displayedValue = s.localize(this.previousValue)) : t && this.emitChangeIfUserModified());
|
|
295
289
|
}
|
|
296
290
|
inputNumberKeyUpHandler() {
|
|
297
291
|
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
@@ -302,17 +296,17 @@ class rt extends C {
|
|
|
302
296
|
// #endregion
|
|
303
297
|
// #region Rendering
|
|
304
298
|
render() {
|
|
305
|
-
const t =
|
|
299
|
+
const t = D(this.el), e = d`<div class=${a(r.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`, i = d`<button .ariaLabel=${this.messages.clear} class=${a(r.clearButton)} .disabled=${this.disabled || this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon icon=x .scale=${v(this.scale)}></calcite-icon></button>`, m = d`<calcite-icon class=${a(r.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${v(this.scale)}></calcite-icon>`, n = this.numberButtonType === "horizontal", l = d`<button aria-hidden=true class=${a({
|
|
306
300
|
[r.numberButtonItem]: !0,
|
|
307
301
|
[r.buttonItemHorizontal]: n
|
|
308
302
|
})} data-adjustment=up .disabled=${this.disabled || this.readOnly} @pointerdown=${this.nudgeButtonPointerDownHandler} @pointerout=${this.nudgeButtonPointerOutHandler} @pointerup=${this.nudgeButtonPointerUpHandler} tabindex=-1 type=button><calcite-icon icon=chevron-up .scale=${v(this.scale)}></calcite-icon></button>`, u = d`<button aria-hidden=true class=${a({
|
|
309
303
|
[r.numberButtonItem]: !0,
|
|
310
304
|
[r.buttonItemHorizontal]: n
|
|
311
305
|
})} data-adjustment=down .disabled=${this.disabled || this.readOnly} @pointerdown=${this.nudgeButtonPointerDownHandler} @pointerout=${this.nudgeButtonPointerOutHandler} @pointerup=${this.nudgeButtonPointerUpHandler} tabindex=-1 type=button><calcite-icon icon=chevron-down .scale=${v(this.scale)}></calcite-icon></button>`, b = d`<div class=${a(r.numberButtonWrapper)}>${l}${u}</div>`, f = d`<div class=${a(r.prefix)}>${this.prefixText}</div>`, o = d`<div class=${a(r.suffix)}>${this.suffixText}</div>`, c = B("localized-input", d`<input aria-errormessage=${V.validationMessage} .ariaInvalid=${this.status === "invalid"} .ariaLabel=${K(this)} autocomplete=${this.autocomplete ?? h} .autofocus=${this.el.autofocus} value=${this.defaultValue ?? h} .disabled=${this.disabled} enterkeyhint=${this.el.enterKeyHint ?? h} inputmode=${this.el.inputMode || "decimal"} maxlength=${this.maxLength ?? h} minlength=${this.minLength ?? h} name=${h} @blur=${this.inputNumberBlurHandler} @focus=${this.inputNumberFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputNumberKeyUpHandler} placeholder=${(this.placeholder || "") ?? h} .readOnly=${this.readOnly} type=text .value=${H(this.displayedValue ?? "")} ${y(this.setChildNumberElRef)}>`);
|
|
312
|
-
return M({ disabled: this.disabled, children: d`<div class=${a({ [r.inputWrapper]: !0, [E.rtl]: t === "rtl" })} ${y(this.inputWrapperEl)}>${this.numberButtonType === "horizontal" && !this.readOnly ? u : null}${this.prefixText ? f : null}<div class=${a(r.wrapper)}>${c}${this.isClearable ? i : null}${this.requestedIcon ? m : null}${this.loading ? e : null}</div><div class=${a(r.actionWrapper)} ${y(this.actionWrapperEl)}><slot name=${
|
|
306
|
+
return M({ disabled: this.disabled, children: d`<div class=${a({ [r.inputWrapper]: !0, [E.rtl]: t === "rtl" })} ${y(this.inputWrapperEl)}>${this.numberButtonType === "horizontal" && !this.readOnly ? u : null}${this.prefixText ? f : null}<div class=${a(r.wrapper)}>${c}${this.isClearable ? i : null}${this.requestedIcon ? m : null}${this.loading ? e : null}</div><div class=${a(r.actionWrapper)} ${y(this.actionWrapperEl)}><slot name=${tt.action}></slot></div>${this.numberButtonType === "vertical" && !this.readOnly ? b : null}${this.suffixText ? o : null}${this.numberButtonType === "horizontal" && !this.readOnly ? l : null}${j({ component: this })}</div>${this.validationMessage && this.status === "invalid" ? Z({ icon: this.validationIcon, id: V.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
|
|
313
307
|
}
|
|
314
308
|
}
|
|
315
|
-
S("calcite-input-number",
|
|
309
|
+
S("calcite-input-number", it);
|
|
316
310
|
export {
|
|
317
|
-
|
|
311
|
+
it as InputNumber
|
|
318
312
|
};
|
|
@@ -48,7 +48,8 @@ export declare class InputText extends LitElement {
|
|
|
48
48
|
/** When `true`, the component is in the loading state and `calcite-progress` is displayed. */
|
|
49
49
|
loading: boolean;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* When the component resides in a form,
|
|
52
|
+
* specifies the maximum length of text for the component's value.
|
|
52
53
|
*
|
|
53
54
|
* @mdn [maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
|
|
54
55
|
*/
|
|
@@ -68,7 +69,8 @@ export declare class InputText extends LitElement {
|
|
|
68
69
|
loading: string;
|
|
69
70
|
}>;
|
|
70
71
|
/**
|
|
71
|
-
*
|
|
72
|
+
* When the component resides in a form,
|
|
73
|
+
* specifies the minimum length of text for the component's value.
|
|
72
74
|
*
|
|
73
75
|
* @mdn [minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
|
|
74
76
|
*/
|
|
@@ -82,7 +84,8 @@ export declare class InputText extends LitElement {
|
|
|
82
84
|
*/
|
|
83
85
|
name: string;
|
|
84
86
|
/**
|
|
85
|
-
*
|
|
87
|
+
* When the component resides in a form,
|
|
88
|
+
* specifies a regular expression (regex) pattern the component's `value` must match for validation.
|
|
86
89
|
* Read the native attribute's documentation on MDN for more info.
|
|
87
90
|
*
|
|
88
91
|
* @mdn [step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern)
|
|
@@ -102,7 +105,10 @@ export declare class InputText extends LitElement {
|
|
|
102
105
|
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
103
106
|
*/
|
|
104
107
|
readOnly: boolean;
|
|
105
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* When `true` and the component resides in a form,
|
|
110
|
+
* the component must have a value in order for the form to submit.
|
|
111
|
+
*/
|
|
106
112
|
required: boolean;
|
|
107
113
|
/** Specifies the size of the component. */
|
|
108
114
|
scale: Scale;
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { C as x, c as k } from "../../chunks/runtime.js";
|
|
2
2
|
import { live as y } from "lit-html/directives/live.js";
|
|
3
|
-
import { html as
|
|
3
|
+
import { html as l, nothing as i } from "lit";
|
|
4
4
|
import { createRef as p, ref as d } from "lit-html/directives/ref.js";
|
|
5
5
|
import { LitElement as I, createEvent as r, stringOrBoolean as h, safeClassMap as a } from "@arcgis/lumina";
|
|
6
6
|
import { useWatchAttributes as w } from "@arcgis/components-controllers";
|
|
7
7
|
import { v as m, g as E } from "../../chunks/dom.js";
|
|
8
|
-
import { c as $, i as f, d as z, s as T, H as
|
|
9
|
-
import { u as
|
|
10
|
-
import { c as F, d as
|
|
11
|
-
import { c as O
|
|
8
|
+
import { c as $, i as f, d as z, s as T, H as V } from "../../chunks/form.js";
|
|
9
|
+
import { u as C, I as H } from "../../chunks/interactive.js";
|
|
10
|
+
import { c as F, d as M, g as L } from "../../chunks/label.js";
|
|
11
|
+
import { c as O } from "../../chunks/loadable.js";
|
|
12
12
|
import { g as b } from "../../chunks/component.js";
|
|
13
|
-
import { V as
|
|
14
|
-
import { s as
|
|
15
|
-
import { u as
|
|
16
|
-
import { css as
|
|
17
|
-
/*!
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* v3.0.0-next.99
|
|
21
|
-
*/
|
|
13
|
+
import { V as W } from "../../chunks/Validation.js";
|
|
14
|
+
import { s as P } from "../../chunks/input.js";
|
|
15
|
+
import { u as q } from "../../chunks/useT9n.js";
|
|
16
|
+
import { css as D } from "@lit/reactive-element/css-tag.js";
|
|
17
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
18
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
19
|
+
v3.0.0 */
|
|
22
20
|
const n = {
|
|
23
21
|
loader: "loader",
|
|
24
22
|
clearButton: "clear-button",
|
|
@@ -29,23 +27,22 @@ const n = {
|
|
|
29
27
|
suffix: "suffix",
|
|
30
28
|
wrapper: "element-wrapper",
|
|
31
29
|
inputWrapper: "wrapper",
|
|
32
|
-
actionWrapper: "action-wrapper"
|
|
33
|
-
resizeIconWrapper: "resize-icon-wrapper"
|
|
30
|
+
actionWrapper: "action-wrapper"
|
|
34
31
|
}, v = {
|
|
35
32
|
validationMessage: "inputTextValidationMessage"
|
|
36
|
-
},
|
|
33
|
+
}, S = {
|
|
37
34
|
action: "action"
|
|
38
|
-
},
|
|
39
|
-
class
|
|
35
|
+
}, B = D`: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:block}:host([scale=s]) input{padding-inline-start:.5rem;padding-inline-end:var(--calcite-internal-input-text-input-padding-inline-end, .5rem)}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .prefix,:host([scale=s]) .suffix{padding-inline:.5rem}:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input{padding-inline-start:.75rem;padding-inline-end:var(--calcite-internal-input-text-input-padding-inline-end, .75rem)}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .prefix,:host([scale=m]) .suffix{padding-inline:.75rem}:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input{padding-inline-start:1rem;padding-inline-end:var(--calcite-internal-input-text-input-padding-inline-end, 1rem)}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .prefix,:host([scale=l]) .suffix{padding-inline:1rem}:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}input{transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none;position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-radius:0;background-color:var(--calcite-color-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1)}input:placeholder-shown{text-overflow:ellipsis}input{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);color:var(--calcite-color-text-1)}input::placeholder,input:-ms-input-placeholder,input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-3)}input:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-text-1)}input[readonly]{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}input[readonly]:focus{color:var(--calcite-color-text-1)}calcite-icon{color:var(--calcite-color-text-3)}input{outline-color:transparent}input: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))))}:host([status=invalid]) input{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .icon{inset-inline-start:.5rem}:host([scale=m]) .icon{inset-inline-start:.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;z-index:var(--calcite-z-index);display:block;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}.clear-button{pointer-events:initial;order:4;margin:0;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-color-foreground-2);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.clear-button:hover calcite-icon{color:var(--calcite-color-text-1);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.clear-button:active{background-color:var(--calcite-color-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-color-text-1)}.clear-button: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))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-color-text-2)}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto)}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto)}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:host(.input--no-bottom-border) input{border-block-end-width:0px}:host(.input--no-top-border) input{border-block-start-width:0px}:host(.input--no-right-border) input{border-inline-end:0}:host(.input--no-left-border) input{border-inline-start:0}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
36
|
+
class R extends I {
|
|
40
37
|
// #endregion
|
|
41
38
|
// #region Lifecycle
|
|
42
39
|
constructor() {
|
|
43
|
-
super(), this.actionWrapperEl = p(), this.attributeWatch = w(["autofocus", "enterkeyhint", "inputmode", "spellcheck"], this.handleGlobalAttributesChanged), this.inputWrapperEl = p(), this.onHiddenFormInputInput = (
|
|
44
|
-
|
|
45
|
-
value:
|
|
40
|
+
super(), this.actionWrapperEl = p(), this.attributeWatch = w(["autofocus", "enterkeyhint", "inputmode", "spellcheck"], this.handleGlobalAttributesChanged), this.inputWrapperEl = p(), this.onHiddenFormInputInput = (t) => {
|
|
41
|
+
t.target.name === this.name && this.setValue({
|
|
42
|
+
value: t.target.value,
|
|
46
43
|
origin: "direct"
|
|
47
|
-
}), this.setFocus(),
|
|
48
|
-
}, this.previousValueOrigin = "initial", this.userChangedValue = !1, this._value = "", this.slottedActionElDisabledInternally = !1, this.alignment = "start", this.clearable = !1, this.disabled = !1, this.editingEnabled = !1, this.iconFlipRtl = !1, this.loading = !1, this.messages =
|
|
44
|
+
}), this.setFocus(), t.stopPropagation();
|
|
45
|
+
}, this.previousValueOrigin = "initial", this.userChangedValue = !1, this._value = "", this.slottedActionElDisabledInternally = !1, this.alignment = "start", this.clearable = !1, this.disabled = !1, this.editingEnabled = !1, this.iconFlipRtl = !1, this.loading = !1, this.messages = q(), this.readOnly = !1, this.required = !1, this.scale = "m", this.status = "idle", this.validity = {
|
|
49
46
|
valid: !1,
|
|
50
47
|
badInput: !1,
|
|
51
48
|
customError: !1,
|
|
@@ -63,7 +60,7 @@ class A extends I {
|
|
|
63
60
|
this.properties = { slottedActionElDisabledInternally: 16, alignment: 3, autocomplete: 0, clearable: 7, disabled: 7, editingEnabled: 7, form: 3, icon: [3, { converter: h }], iconFlipRtl: 7, label: 1, loading: 7, maxLength: 11, messageOverrides: 0, minLength: 11, name: 3, pattern: 1, placeholder: 1, prefixText: 1, readOnly: 7, required: 7, scale: 3, status: 3, suffixText: 1, validationIcon: [3, { converter: h }], validationMessage: 1, validity: 0, value: 1 };
|
|
64
61
|
}
|
|
65
62
|
static {
|
|
66
|
-
this.styles =
|
|
63
|
+
this.styles = B;
|
|
67
64
|
}
|
|
68
65
|
get isClearable() {
|
|
69
66
|
return this.clearable && this.value.length > 0;
|
|
@@ -72,9 +69,9 @@ class A extends I {
|
|
|
72
69
|
get value() {
|
|
73
70
|
return this._value;
|
|
74
71
|
}
|
|
75
|
-
set value(
|
|
76
|
-
const
|
|
77
|
-
|
|
72
|
+
set value(t) {
|
|
73
|
+
const e = this._value;
|
|
74
|
+
t !== e && (this._value = t, this.valueWatcher(t, e));
|
|
78
75
|
}
|
|
79
76
|
// #endregion
|
|
80
77
|
// #region Public Methods
|
|
@@ -90,42 +87,41 @@ class A extends I {
|
|
|
90
87
|
super.connectedCallback(), this.inlineEditableEl = this.el.closest("calcite-inline-editable"), this.inlineEditableEl && (this.editingEnabled = this.inlineEditableEl.editingEnabled || !1), F(this), $(this), this.el.addEventListener(f, this.onHiddenFormInputInput);
|
|
91
88
|
}
|
|
92
89
|
async load() {
|
|
93
|
-
|
|
90
|
+
this.requestedIcon = m({}, this.icon, "text"), this.setPreviousEmittedValue(this.value), this.setPreviousValue(this.value);
|
|
94
91
|
}
|
|
95
|
-
willUpdate(
|
|
96
|
-
|
|
92
|
+
willUpdate(t) {
|
|
93
|
+
t.has("icon") && (this.requestedIcon = m({}, this.icon, "text"));
|
|
97
94
|
}
|
|
98
95
|
updated() {
|
|
99
|
-
|
|
96
|
+
C(this);
|
|
100
97
|
}
|
|
101
98
|
loaded() {
|
|
102
|
-
P(this);
|
|
103
99
|
}
|
|
104
100
|
disconnectedCallback() {
|
|
105
|
-
super.disconnectedCallback(),
|
|
101
|
+
super.disconnectedCallback(), M(this), z(this), this.el.removeEventListener(f, this.onHiddenFormInputInput);
|
|
106
102
|
}
|
|
107
103
|
// #endregion
|
|
108
104
|
// #region Private Methods
|
|
109
105
|
handleGlobalAttributesChanged() {
|
|
110
106
|
this.requestUpdate();
|
|
111
107
|
}
|
|
112
|
-
valueWatcher(
|
|
108
|
+
valueWatcher(t, e) {
|
|
113
109
|
this.userChangedValue || this.setValue({
|
|
114
110
|
origin: "direct",
|
|
115
|
-
previousValue:
|
|
116
|
-
value:
|
|
111
|
+
previousValue: e,
|
|
112
|
+
value: t || ""
|
|
117
113
|
}), this.userChangedValue = !1;
|
|
118
114
|
}
|
|
119
|
-
keyDownHandler(
|
|
120
|
-
this.readOnly || this.disabled ||
|
|
115
|
+
keyDownHandler(t) {
|
|
116
|
+
this.readOnly || this.disabled || t.defaultPrevented || (this.isClearable && t.key === "Escape" && (this.clearInputTextValue(t), t.preventDefault()), t.key === "Enter" && T(this) && t.preventDefault());
|
|
121
117
|
}
|
|
122
118
|
onLabelClick() {
|
|
123
119
|
this.setFocus();
|
|
124
120
|
}
|
|
125
|
-
clearInputTextValue(
|
|
121
|
+
clearInputTextValue(t) {
|
|
126
122
|
this.setValue({
|
|
127
123
|
committing: !0,
|
|
128
|
-
nativeEvent:
|
|
124
|
+
nativeEvent: t,
|
|
129
125
|
origin: "user",
|
|
130
126
|
value: ""
|
|
131
127
|
});
|
|
@@ -139,11 +135,11 @@ class A extends I {
|
|
|
139
135
|
value: this.value
|
|
140
136
|
}), this.emitChangeIfUserModified();
|
|
141
137
|
}
|
|
142
|
-
clickHandler(
|
|
138
|
+
clickHandler(t) {
|
|
143
139
|
if (this.disabled)
|
|
144
140
|
return;
|
|
145
|
-
const
|
|
146
|
-
!
|
|
141
|
+
const e = t.composedPath();
|
|
142
|
+
!e.includes(this.inputWrapperEl.value) || e.includes(this.actionWrapperEl.value) || this.setFocus();
|
|
147
143
|
}
|
|
148
144
|
inputTextFocusHandler() {
|
|
149
145
|
this.calciteInternalInputTextFocus.emit({
|
|
@@ -151,45 +147,45 @@ class A extends I {
|
|
|
151
147
|
value: this.value
|
|
152
148
|
});
|
|
153
149
|
}
|
|
154
|
-
inputTextInputHandler(
|
|
150
|
+
inputTextInputHandler(t) {
|
|
155
151
|
this.disabled || this.readOnly || this.setValue({
|
|
156
|
-
nativeEvent:
|
|
152
|
+
nativeEvent: t,
|
|
157
153
|
origin: "user",
|
|
158
|
-
value:
|
|
154
|
+
value: t.target.value
|
|
159
155
|
});
|
|
160
156
|
}
|
|
161
|
-
inputTextKeyDownHandler(
|
|
162
|
-
this.disabled || this.readOnly ||
|
|
157
|
+
inputTextKeyDownHandler(t) {
|
|
158
|
+
this.disabled || this.readOnly || t.key === "Enter" && this.emitChangeIfUserModified();
|
|
163
159
|
}
|
|
164
|
-
syncHiddenFormInput(
|
|
165
|
-
|
|
160
|
+
syncHiddenFormInput(t) {
|
|
161
|
+
P("text", this, t);
|
|
166
162
|
}
|
|
167
|
-
setChildElRef(
|
|
168
|
-
this.childEl =
|
|
163
|
+
setChildElRef(t) {
|
|
164
|
+
this.childEl = t;
|
|
169
165
|
}
|
|
170
|
-
setInputValue(
|
|
171
|
-
this.childEl && (this.childEl.value =
|
|
166
|
+
setInputValue(t) {
|
|
167
|
+
this.childEl && (this.childEl.value = t);
|
|
172
168
|
}
|
|
173
|
-
setPreviousEmittedValue(
|
|
174
|
-
this.previousEmittedValue =
|
|
169
|
+
setPreviousEmittedValue(t) {
|
|
170
|
+
this.previousEmittedValue = t;
|
|
175
171
|
}
|
|
176
|
-
setPreviousValue(
|
|
177
|
-
this.previousValue =
|
|
172
|
+
setPreviousValue(t) {
|
|
173
|
+
this.previousValue = t;
|
|
178
174
|
}
|
|
179
|
-
setValue({ committing:
|
|
180
|
-
this.setPreviousValue(c ?? this.value), this.previousValueOrigin = o, this.userChangedValue = o === "user" &&
|
|
175
|
+
setValue({ committing: t = !1, nativeEvent: e, origin: o, previousValue: c, value: s }) {
|
|
176
|
+
this.setPreviousValue(c ?? this.value), this.previousValueOrigin = o, this.userChangedValue = o === "user" && s !== this.value, this.value = s, o === "direct" && (this.setInputValue(s), this.setPreviousEmittedValue(s)), e && (this.calciteInputTextInput.emit().defaultPrevented ? this.value = this.previousValue : t && this.emitChangeIfUserModified());
|
|
181
177
|
}
|
|
182
178
|
// #endregion
|
|
183
179
|
// #region Rendering
|
|
184
180
|
render() {
|
|
185
|
-
const
|
|
181
|
+
const t = E(this.el), e = l`<div class=${a(n.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`, o = l`<button .ariaLabel=${this.messages.clear} class=${a(n.clearButton)} .disabled=${this.disabled || this.readOnly} @click=${this.clearInputTextValue} tabindex=-1 type=button><calcite-icon icon=x .scale=${b(this.scale)}></calcite-icon></button>`, c = l`<calcite-icon class=${a(n.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${b(this.scale)}></calcite-icon>`, s = l`<div class=${a(n.prefix)}>${this.prefixText}</div>`, u = l`<div class=${a(n.suffix)}>${this.suffixText}</div>`, g = l`<input aria-errormessage=${v.validationMessage} .ariaInvalid=${this.status === "invalid"} .ariaLabel=${L(this)} autocomplete=${this.autocomplete ?? i} .autofocus=${this.el.autofocus} class=${a({
|
|
186
182
|
[n.editingEnabled]: this.editingEnabled,
|
|
187
183
|
[n.inlineChild]: !!this.inlineEditableEl
|
|
188
184
|
})} value=${this.defaultValue ?? i} .disabled=${this.disabled ? !0 : null} enterkeyhint=${this.el.enterKeyHint ?? i} inputmode=${this.el.inputMode ?? i} maxlength=${this.maxLength ?? i} minlength=${this.minLength ?? i} name=${this.name ?? i} @blur=${this.inputTextBlurHandler} @focus=${this.inputTextFocusHandler} @input=${this.inputTextInputHandler} @keydown=${this.inputTextKeyDownHandler} pattern=${this.pattern ?? i} placeholder=${(this.placeholder || "") ?? i} .readOnly=${this.readOnly} .required=${this.required ? !0 : null} spellcheck=${this.el.spellcheck ?? i} tabindex=${(this.disabled || this.inlineEditableEl && !this.editingEnabled ? -1 : null) ?? i} type=text .value=${y(this.value ?? "")} ${d(this.setChildElRef)}>`;
|
|
189
|
-
return H({ disabled: this.disabled, children:
|
|
185
|
+
return H({ disabled: this.disabled, children: l`<div class=${a({ [n.inputWrapper]: !0, [x.rtl]: t === "rtl" })} ${d(this.inputWrapperEl)}>${this.prefixText ? s : null}<div class=${a(n.wrapper)}>${g}${this.isClearable ? o : null}${this.requestedIcon ? c : null}${this.loading ? e : null}</div><div class=${a(n.actionWrapper)} ${d(this.actionWrapperEl)}><slot name=${S.action}></slot></div>${this.suffixText ? u : null}${V({ component: this })}</div>${this.validationMessage && this.status === "invalid" ? W({ icon: this.validationIcon, id: v.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
|
|
190
186
|
}
|
|
191
187
|
}
|
|
192
|
-
k("calcite-input-text",
|
|
188
|
+
k("calcite-input-text", R);
|
|
193
189
|
export {
|
|
194
|
-
|
|
190
|
+
R as InputText
|
|
195
191
|
};
|
|
@@ -36,7 +36,8 @@ export declare class InputTimePicker extends LitElement {
|
|
|
36
36
|
*/
|
|
37
37
|
hourFormat: HourFormat;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* When the component resides in a form,
|
|
40
|
+
* specifies the maximum value.
|
|
40
41
|
*
|
|
41
42
|
* @mdn [max](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time#max)
|
|
42
43
|
*/
|
|
@@ -54,7 +55,8 @@ export declare class InputTimePicker extends LitElement {
|
|
|
54
55
|
chooseTime: string;
|
|
55
56
|
}>;
|
|
56
57
|
/**
|
|
57
|
-
*
|
|
58
|
+
* When the component resides in a form,
|
|
59
|
+
* specifies the minimum value.
|
|
58
60
|
*
|
|
59
61
|
* @mdn [min](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time#min)
|
|
60
62
|
*/
|
|
@@ -81,7 +83,10 @@ export declare class InputTimePicker extends LitElement {
|
|
|
81
83
|
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
82
84
|
*/
|
|
83
85
|
readOnly: boolean;
|
|
84
|
-
/**
|
|
86
|
+
/**
|
|
87
|
+
* When `true` and the component resides in a form,
|
|
88
|
+
* the component must have a value in order for the form to submit.
|
|
89
|
+
*/
|
|
85
90
|
required: boolean;
|
|
86
91
|
/** Specifies the size of the component. */
|
|
87
92
|
scale: Scale;
|