@esri/calcite-components 5.0.0-next.73 → 5.0.0-next.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{LLWIVY2P.js → 2MJWZFKS.js} +1 -1
- package/dist/cdn/2O3SDB62.js +4 -0
- package/dist/cdn/2PISRNR6.js +4 -0
- package/dist/cdn/2VUJLMKE.js +4 -0
- package/dist/cdn/2VX7QCL3.js +4 -0
- package/dist/cdn/3AF5GQM3.js +4 -0
- package/dist/cdn/{ODNDTR7J.js → 3EDDOLK6.js} +1 -1
- package/dist/cdn/3J6XFT5L.js +4 -0
- package/dist/cdn/3JA4QP4A.js +4 -0
- package/dist/cdn/{244N3PBI.js → 44PLMJU5.js} +2 -2
- package/dist/cdn/4F6PESBY.js +4 -0
- package/dist/cdn/{4N2PB4I4.js → 4KL7RA5Q.js} +2 -2
- package/dist/cdn/{NKRXC6HO.js → 4RLS27JG.js} +1 -1
- package/dist/cdn/4TXPMIWM.js +4 -0
- package/dist/cdn/57BTIEQN.js +4 -0
- package/dist/cdn/5C6HBH3B.js +4 -0
- package/dist/cdn/5KEODLY2.js +4 -0
- package/dist/cdn/{35FOGTIY.js → 5UJCWGUP.js} +2 -2
- package/dist/cdn/{73HK4JTP.js → 5USXQ2PA.js} +2 -2
- package/dist/cdn/5WRA2OPE.js +4 -0
- package/dist/cdn/67DBJZ33.js +4 -0
- package/dist/cdn/{GKKMRD2R.js → 67V2X47G.js} +2 -2
- package/dist/cdn/6JCNIOBP.js +4 -0
- package/dist/cdn/6L74GIIL.js +4 -0
- package/dist/cdn/6PU3J3IP.js +4 -0
- package/dist/cdn/6SLP6X2U.js +4 -0
- package/dist/cdn/6XTDC3Q5.js +4 -0
- package/dist/cdn/745HMZQO.js +4 -0
- package/dist/cdn/77XCVFRX.js +4 -0
- package/dist/cdn/{NZ47QELO.js → 7BJUR7MU.js} +2 -2
- package/dist/cdn/{PLHINUVF.js → 7EAIOCQN.js} +1 -1
- package/dist/cdn/{RQDMOJBD.js → ABO7NKZD.js} +2 -2
- package/dist/cdn/ACTASZ5S.js +4 -0
- package/dist/cdn/ADQOUH46.js +4 -0
- package/dist/cdn/{47IA7U5X.js → AH7JKNGR.js} +2 -2
- package/dist/cdn/AHSC4NMW.js +4 -0
- package/dist/cdn/{DZOWQTOA.js → B2GFX3LQ.js} +1 -1
- package/dist/cdn/{UKPGCL4O.js → B77OUDM7.js} +2 -2
- package/dist/cdn/{VZ3NO6C5.js → BHN7LML7.js} +1 -1
- package/dist/cdn/BK3V4SS7.js +6 -0
- package/dist/cdn/BRSPUNC5.js +4 -0
- package/dist/cdn/{TFXNZU62.js → CCNPAPVI.js} +1 -1
- package/dist/cdn/{MW4DB6ZR.js → CULAMWFC.js} +2 -2
- package/dist/cdn/{4F4H6EMI.js → D2BIPE73.js} +2 -2
- package/dist/cdn/{P6HCTFQW.js → D3STGNSC.js} +2 -2
- package/dist/cdn/DANVRJ2R.js +4 -0
- package/dist/cdn/{ODIQ6T3A.js → DBCWISPK.js} +2 -2
- package/dist/cdn/DEVQCMD5.js +4 -0
- package/dist/cdn/{4S74L7UT.js → DQEDQ3EU.js} +2 -2
- package/dist/cdn/DUFB2C2G.js +4 -0
- package/dist/cdn/EA2DG5IN.js +4 -0
- package/dist/cdn/EGA5OPSG.js +4 -0
- package/dist/cdn/EIHYOLRK.js +4 -0
- package/dist/cdn/{OQXRA4A6.js → EPEDXQPN.js} +2 -2
- package/dist/cdn/EW25DXNS.js +4 -0
- package/dist/cdn/{PZARUO5I.js → F327VYUC.js} +2 -2
- package/dist/cdn/FCMA2ETZ.js +4 -0
- package/dist/cdn/{BXRG3QG3.js → FHGHF5HV.js} +2 -2
- package/dist/cdn/FHJUKAHF.js +4 -0
- package/dist/cdn/FJKIVI33.js +4 -0
- package/dist/cdn/{NXZRNXVO.js → FKQL2URB.js} +2 -2
- package/dist/cdn/FKXL2OAB.js +4 -0
- package/dist/cdn/{OYICAOXN.js → FLNRLXGR.js} +2 -2
- package/dist/cdn/FLZWTQY5.js +4 -0
- package/dist/cdn/FRZYTKXJ.js +4 -0
- package/dist/cdn/{O3AECT7T.js → FUUG27PI.js} +2 -2
- package/dist/cdn/FWLS4SCV.js +4 -0
- package/dist/cdn/{WBZMX3LF.js → GCD5SUKH.js} +2 -2
- package/dist/cdn/{P5QORSCN.js → GEAG6SOA.js} +2 -2
- package/dist/cdn/H4OQRSQ4.js +4 -0
- package/dist/cdn/{SO4N4LH5.js → H7JZZZSW.js} +2 -2
- package/dist/cdn/H7RX73ZY.js +4 -0
- package/dist/cdn/{MR6K64GL.js → HASSHFCN.js} +1 -1
- package/dist/cdn/HG5SEK37.js +4 -0
- package/dist/cdn/{HI3342AL.js → HGYYX4AL.js} +1 -1
- package/dist/cdn/HKBRFEBW.js +4 -0
- package/dist/cdn/{GLK7OIKI.js → HPRUTINL.js} +2 -2
- package/dist/cdn/HUKIIMN7.js +4 -0
- package/dist/cdn/{XI6BCQ6Y.js → I35XOEKF.js} +2 -2
- package/dist/cdn/ID4HNCRZ.js +4 -0
- package/dist/cdn/{WZM6JDEL.js → IJ6WKS55.js} +2 -2
- package/dist/cdn/IN4SQY4P.js +4 -0
- package/dist/cdn/IN4WYXAD.js +4 -0
- package/dist/cdn/IXNA5ITW.js +4 -0
- package/dist/cdn/{DUXQNCWQ.js → IZ4LDJ5Z.js} +1 -1
- package/dist/cdn/{62TOKSP7.js → IZLKOZX5.js} +2 -2
- package/dist/cdn/J6EYKJYY.js +4 -0
- package/dist/cdn/{25L4DJT3.js → JDOBRO6Y.js} +2 -2
- package/dist/cdn/{3WWFIUAH.js → JEYEHPYM.js} +2 -2
- package/dist/cdn/{LOFLLUD5.js → JFKXEYKV.js} +2 -2
- package/dist/cdn/{U6DP5U33.js → JSCCSAK3.js} +1 -1
- package/dist/cdn/KDGYTJJE.js +4 -0
- package/dist/cdn/KFGAO5EO.js +4 -0
- package/dist/cdn/{BNNVKIXE.js → KMUF7TXW.js} +1 -1
- package/dist/cdn/KP3GNJSK.js +4 -0
- package/dist/cdn/LCGMLNBT.js +4 -0
- package/dist/cdn/{BCNA5QGW.js → LRIKX4RH.js} +2 -2
- package/dist/cdn/{E4ESSYYH.js → LYQNHLEG.js} +2 -2
- package/dist/cdn/{UVG2Y6I3.js → M5OEIMOT.js} +2 -2
- package/dist/cdn/{2YAG4QEZ.js → MHWOABTO.js} +1 -1
- package/dist/cdn/{IONHIAOK.js → MMI2BZWH.js} +1 -1
- package/dist/cdn/MQQZ2RNO.js +4 -0
- package/dist/cdn/{TNMDZQTU.js → MXO3RAJT.js} +2 -2
- package/dist/cdn/N36UH7CN.js +4 -0
- package/dist/cdn/{BTHTTICE.js → NKETKV3K.js} +2 -2
- package/dist/cdn/{WDPE2ZYY.js → NWVFWVBF.js} +2 -2
- package/dist/cdn/OUF327W3.js +4 -0
- package/dist/cdn/P2STBLPC.js +4 -0
- package/dist/cdn/PGF7B5HZ.js +4 -0
- package/dist/cdn/{HEMAFFKJ.js → PMKIKMKC.js} +2 -2
- package/dist/cdn/POFUJEVN.js +4 -0
- package/dist/cdn/{L5T4SBUE.js → PU55NMAW.js} +2 -2
- package/dist/cdn/{K7JNISRP.js → Q7WLN2Y5.js} +2 -2
- package/dist/cdn/QJFLZJPD.js +4 -0
- package/dist/cdn/R6EA4TBP.js +4 -0
- package/dist/cdn/RIUKAKWN.js +4 -0
- package/dist/cdn/{KP4IRRVS.js → RJ5ALG4X.js} +2 -2
- package/dist/cdn/{XCDZXWY5.js → S4SDLQ3P.js} +2 -2
- package/dist/cdn/{MEDNJ37J.js → SIPV5V4E.js} +2 -2
- package/dist/cdn/SOW2EN53.js +4 -0
- package/dist/cdn/SUGZFDZD.js +4 -0
- package/dist/cdn/T74DCY7Q.js +4 -0
- package/dist/cdn/{67H54DL3.js → T76SBJOM.js} +1 -1
- package/dist/cdn/T7KNXNAD.js +4 -0
- package/dist/cdn/{QYUB4GS6.js → TEMCKTPH.js} +2 -2
- package/dist/cdn/TESEKKJS.js +4 -0
- package/dist/cdn/{PFI4X5H3.js → TF62JD6A.js} +2 -2
- package/dist/cdn/{LTGRBE63.js → TFCIZO6G.js} +2 -2
- package/dist/cdn/{UTC3ZWPM.js → TL7NKF3D.js} +1 -1
- package/dist/cdn/{KWXD7AJG.js → TZFZIOPP.js} +2 -2
- package/dist/cdn/{BO3SFQAC.js → U7MCKK6O.js} +2 -2
- package/dist/cdn/{6MA6WZ3C.js → U7YSBSLN.js} +1 -1
- package/dist/cdn/UCKEAVGX.js +4 -0
- package/dist/cdn/UDDZVGGM.js +4 -0
- package/dist/cdn/UDOIBWXD.js +4 -0
- package/dist/cdn/{GE55TSZO.js → UFIOVVPV.js} +2 -2
- package/dist/cdn/{N4CST3ZJ.js → UTSU6ZXC.js} +2 -2
- package/dist/cdn/{G5DIWPQB.js → UUPPUJNG.js} +1 -1
- package/dist/cdn/UVQDKTAV.js +4 -0
- package/dist/cdn/{KVOJRATR.js → VBPVHKWF.js} +1 -1
- package/dist/cdn/VHWY6WRS.js +4 -0
- package/dist/cdn/VJA2CCZY.js +4 -0
- package/dist/cdn/VJEI6O5N.js +4 -0
- package/dist/cdn/{5TUOSEA2.js → VPBZXOQJ.js} +2 -2
- package/dist/cdn/VQDJM22Q.js +4 -0
- package/dist/cdn/VUSBMUDO.js +4 -0
- package/dist/cdn/WDOQWWNZ.js +4 -0
- package/dist/cdn/WGVUGGVJ.js +4 -0
- package/dist/cdn/WH75P544.js +4 -0
- package/dist/cdn/WOKTDRDO.js +4 -0
- package/dist/cdn/{LKM7KOBV.js → WZHFIAVT.js} +1 -1
- package/dist/cdn/XHVWLAPO.js +4 -0
- package/dist/cdn/{HZ3OY527.js → XM6ZS6NL.js} +2 -2
- package/dist/cdn/{JUU2XNXW.js → XNOLI2GT.js} +2 -2
- package/dist/cdn/{GZ56Z6X5.js → XO3CKERX.js} +2 -2
- package/dist/cdn/XVHKHCQC.js +4 -0
- package/dist/cdn/{54OU63RL.js → XXQ6DFF5.js} +1 -1
- package/dist/cdn/Y6RQUING.js +4 -0
- package/dist/cdn/{NYT6HEMU.js → YPUDWAIO.js} +1 -1
- package/dist/cdn/Z3BFLAGO.js +4 -0
- package/dist/cdn/Z4LFVQJE.js +4 -0
- package/dist/cdn/{D5NGRS5T.js → Z5GIWALZ.js} +2 -2
- package/dist/cdn/Z6NVNNEK.js +4 -0
- package/dist/cdn/{F3F7ILT4.js → ZABXVINN.js} +2 -2
- package/dist/cdn/ZADTJY3C.js +4 -0
- package/dist/cdn/{YP2WT2LS.js → ZCHIYHL2.js} +2 -2
- package/dist/cdn/{MB65J5HZ.js → ZDKBUWTR.js} +2 -2
- package/dist/cdn/{TRMYYWAL.js → ZHPWY7DB.js} +1 -1
- package/dist/cdn/{CZGN7OOG.js → ZJZQFACT.js} +2 -2
- package/dist/cdn/ZKBW2435.js +4 -0
- package/dist/cdn/{63WE2NFB.js → ZMUA6AOW.js} +1 -1
- package/dist/cdn/{NGBJTO5U.js → ZNAS7BFN.js} +2 -2
- package/dist/cdn/{VVQEPIHY.js → ZPB4QVUF.js} +1 -1
- package/dist/cdn/ZQ4D7LJT.js +4 -0
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/ExpandToggle.js +3 -3
- package/dist/chunks/FloatingArrow.js +1 -1
- package/dist/chunks/Heading.js +1 -1
- package/dist/chunks/InternalLabel.js +1 -1
- package/dist/chunks/Validation.js +1 -1
- package/dist/chunks/array.js +1 -1
- package/dist/chunks/component.js +1 -1
- package/dist/chunks/core.js +5 -5
- package/dist/chunks/date.js +12 -12
- package/dist/chunks/dom.js +27 -27
- package/dist/chunks/dynamicClasses.js +1 -1
- package/dist/chunks/filter.js +1 -1
- package/dist/chunks/floating-ui.js +4 -4
- package/dist/chunks/form.js +2 -2
- package/dist/chunks/global.js +1 -1
- package/dist/chunks/guid.js +1 -1
- package/dist/chunks/header.js +1 -1
- package/dist/chunks/input.js +1 -1
- package/dist/chunks/interact.min.js +1 -1
- package/dist/chunks/key.js +1 -1
- package/dist/chunks/label.js +2 -2
- package/dist/chunks/locale.js +3 -3
- package/dist/chunks/logger.js +2 -2
- package/dist/chunks/math.js +1 -1
- package/dist/chunks/observers.js +1 -1
- package/dist/chunks/openCloseComponent.js +2 -2
- package/dist/chunks/resources.js +17 -12
- package/dist/chunks/resources2.js +8 -16
- package/dist/chunks/resources3.js +14 -53
- package/dist/chunks/resources4.js +57 -14
- package/dist/chunks/resources5.js +44 -50
- package/dist/chunks/resources6.js +10 -54
- package/dist/chunks/resources7.js +12 -10
- package/dist/chunks/resources8.js +55 -8
- package/dist/chunks/responsive.js +1 -1
- package/dist/chunks/runtime.js +8 -8
- package/dist/chunks/sortable.js +1 -1
- package/dist/chunks/sortableComponent.js +1 -1
- package/dist/chunks/text.js +1 -1
- package/dist/chunks/useCancelable.js +1 -1
- package/dist/chunks/useFocusTrap.js +3 -3
- package/dist/chunks/useInteractive.js +1 -1
- package/dist/chunks/usePreventDocumentScroll.js +1 -1
- package/dist/chunks/useSetFocus.js +2 -2
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useTime.js +2 -2
- package/dist/chunks/useTopLayer.js +1 -1
- package/dist/chunks/utils.js +18 -18
- package/dist/chunks/utils2.js +47 -42
- package/dist/chunks/utils3.js +2 -2
- package/dist/chunks/utils4.js +42 -47
- package/dist/components/calcite-accordion/customElement.d.ts +48 -42
- package/dist/components/calcite-accordion/customElement.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.d.ts +62 -48
- package/dist/components/calcite-accordion-item/customElement.js +2 -2
- package/dist/components/calcite-accordion-item/index.d.ts +0 -1
- package/dist/components/calcite-action/customElement.d.ts +131 -119
- package/dist/components/calcite-action/customElement.js +1 -1
- package/dist/components/calcite-action/index.d.ts +0 -2
- package/dist/components/calcite-action-bar/customElement.d.ts +100 -90
- package/dist/components/calcite-action-bar/customElement.js +5 -4
- package/dist/components/calcite-action-bar/index.d.ts +0 -2
- package/dist/components/calcite-action-group/customElement.d.ts +93 -82
- package/dist/components/calcite-action-group/customElement.js +7 -6
- package/dist/components/calcite-action-group/index.d.ts +0 -2
- package/dist/components/calcite-action-group/interfaces.d.ts +1 -1
- package/dist/components/calcite-action-menu/customElement.d.ts +81 -69
- package/dist/components/calcite-action-menu/customElement.js +5 -4
- package/dist/components/calcite-action-menu/index.d.ts +0 -2
- package/dist/components/calcite-action-pad/customElement.d.ts +86 -78
- package/dist/components/calcite-action-pad/customElement.js +5 -4
- package/dist/components/calcite-action-pad/index.d.ts +0 -2
- package/dist/components/calcite-alert/customElement.d.ts +106 -102
- package/dist/components/calcite-alert/customElement.js +3 -3
- package/dist/components/calcite-alert/index.d.ts +0 -3
- package/dist/components/calcite-alert/interfaces.d.ts +2 -1
- package/dist/components/calcite-autocomplete/customElement.d.ts +247 -230
- package/dist/components/calcite-autocomplete/customElement.js +4 -4
- package/dist/components/calcite-autocomplete/index.d.ts +0 -2
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +38 -31
- package/dist/components/calcite-autocomplete-item/customElement.js +2 -2
- package/dist/components/calcite-autocomplete-item/index.d.ts +0 -1
- package/dist/components/calcite-autocomplete-item-group/customElement.d.ts +24 -20
- package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
- package/dist/components/calcite-avatar/customElement.d.ts +25 -20
- package/dist/components/calcite-avatar/customElement.js +3 -3
- package/dist/components/calcite-avatar/index.d.ts +0 -1
- package/dist/components/calcite-block/customElement.d.ts +175 -151
- package/dist/components/calcite-block/customElement.js +6 -5
- package/dist/components/calcite-block/index.d.ts +0 -5
- package/dist/components/calcite-block-group/customElement.d.ts +78 -77
- package/dist/components/calcite-block-group/customElement.js +2 -2
- package/dist/components/calcite-block-group/index.d.ts +0 -1
- package/dist/components/calcite-block-group/interfaces.d.ts +8 -13
- package/dist/components/calcite-block-section/customElement.d.ts +81 -75
- package/dist/components/calcite-block-section/customElement.js +2 -2
- package/dist/components/calcite-block-section/index.d.ts +0 -2
- package/dist/components/calcite-block-section/interfaces.d.ts +1 -1
- package/dist/components/calcite-button/customElement.d.ts +121 -123
- package/dist/components/calcite-button/customElement.js +2 -2
- package/dist/components/calcite-button/index.d.ts +0 -2
- package/dist/components/calcite-button/interfaces.d.ts +2 -1
- package/dist/components/calcite-card/customElement.d.ts +66 -56
- package/dist/components/calcite-card/customElement.js +2 -2
- package/dist/components/calcite-card/index.d.ts +0 -4
- package/dist/components/calcite-card-group/customElement.d.ts +42 -37
- package/dist/components/calcite-card-group/customElement.js +2 -2
- package/dist/components/calcite-carousel/customElement.d.ts +87 -91
- package/dist/components/calcite-carousel/customElement.js +2 -2
- package/dist/components/calcite-carousel/index.d.ts +0 -2
- package/dist/components/calcite-carousel/interfaces.d.ts +2 -1
- package/dist/components/calcite-carousel-item/customElement.d.ts +15 -15
- package/dist/components/calcite-carousel-item/customElement.js +1 -1
- package/dist/components/calcite-checkbox/customElement.d.ts +86 -88
- package/dist/components/calcite-checkbox/customElement.js +1 -1
- package/dist/components/calcite-chip/customElement.d.ts +95 -90
- package/dist/components/calcite-chip/customElement.js +2 -2
- package/dist/components/calcite-chip/index.d.ts +0 -2
- package/dist/components/calcite-chip-group/customElement.d.ts +51 -50
- package/dist/components/calcite-chip-group/customElement.js +2 -2
- package/dist/components/calcite-color-picker/customElement.d.ts +139 -141
- package/dist/components/calcite-color-picker/customElement.js +3 -3
- package/dist/components/calcite-color-picker/index.d.ts +0 -9
- package/dist/components/calcite-color-picker/interfaces.d.ts +24 -19
- package/dist/components/calcite-color-picker/utils.d.ts +12 -36
- package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +48 -49
- package/dist/components/calcite-color-picker-hex-input/customElement.js +2 -2
- package/dist/components/calcite-color-picker-hex-input/index.d.ts +0 -2
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +22 -23
- package/dist/components/calcite-color-picker-swatch/customElement.js +3 -3
- package/dist/components/calcite-combobox/customElement.d.ts +227 -233
- package/dist/components/calcite-combobox/customElement.js +6 -6
- package/dist/components/calcite-combobox/index.d.ts +0 -4
- package/dist/components/calcite-combobox/interfaces.d.ts +6 -15
- package/dist/components/calcite-combobox-item/customElement.d.ts +78 -69
- package/dist/components/calcite-combobox-item/customElement.js +4 -4
- package/dist/components/calcite-combobox-item/index.d.ts +0 -1
- package/dist/components/calcite-combobox-item-group/customElement.d.ts +24 -21
- package/dist/components/calcite-combobox-item-group/customElement.js +2 -2
- package/dist/components/calcite-date-picker/customElement.d.ts +117 -95
- package/dist/components/calcite-date-picker/customElement.js +2 -2
- package/dist/components/calcite-date-picker/index.d.ts +0 -1
- package/dist/components/calcite-date-picker-day/customElement.d.ts +75 -76
- package/dist/components/calcite-date-picker-day/customElement.js +3 -3
- package/dist/components/calcite-date-picker-month/customElement.d.ts +38 -41
- package/dist/components/calcite-date-picker-month/customElement.js +2 -2
- package/dist/components/calcite-date-picker-month/index.d.ts +0 -2
- package/dist/components/calcite-date-picker-month-header/customElement.js +3 -3
- package/dist/components/calcite-dialog/customElement.d.ts +218 -193
- package/dist/components/calcite-dialog/customElement.js +5 -5
- package/dist/components/calcite-dialog/index.d.ts +0 -2
- package/dist/components/calcite-dialog/interfaces.d.ts +1 -11
- package/dist/components/calcite-dropdown/customElement.d.ts +126 -120
- package/dist/components/calcite-dropdown/customElement.js +3 -3
- package/dist/components/calcite-dropdown-group/customElement.d.ts +30 -28
- package/dist/components/calcite-dropdown-group/customElement.js +2 -2
- package/dist/components/calcite-dropdown-item/customElement.d.ts +56 -48
- package/dist/components/calcite-dropdown-item/customElement.js +2 -2
- package/dist/components/calcite-dropdown-item/index.d.ts +0 -1
- package/dist/components/calcite-fab/customElement.d.ts +72 -65
- package/dist/components/calcite-fab/customElement.js +1 -1
- package/dist/components/calcite-fab/index.d.ts +0 -1
- package/dist/components/calcite-filter/customElement.d.ts +75 -64
- package/dist/components/calcite-filter/customElement.js +1 -1
- package/dist/components/calcite-filter/index.d.ts +0 -1
- package/dist/components/calcite-flow/customElement.d.ts +23 -22
- package/dist/components/calcite-flow/customElement.js +2 -2
- package/dist/components/calcite-flow/interfaces.d.ts +6 -4
- package/dist/components/calcite-flow/types/index.d.ts +2 -2
- package/dist/components/calcite-flow-item/customElement.d.ts +177 -143
- package/dist/components/calcite-flow-item/customElement.js +5 -4
- package/dist/components/calcite-flow-item/index.d.ts +0 -2
- package/dist/components/calcite-graph/customElement.d.ts +31 -30
- package/dist/components/calcite-graph/customElement.js +1 -1
- package/dist/components/calcite-graph/interfaces.d.ts +10 -19
- package/dist/components/calcite-handle/customElement.d.ts +51 -49
- package/dist/components/calcite-handle/customElement.js +1 -1
- package/dist/components/calcite-handle/index.d.ts +0 -1
- package/dist/components/calcite-handle/interfaces.d.ts +2 -5
- package/dist/components/calcite-icon/customElement.d.ts +39 -36
- package/dist/components/calcite-icon/customElement.js +1 -1
- package/dist/components/calcite-icon/interfaces.d.ts +9 -6
- package/dist/components/calcite-inline-editable/customElement.d.ts +66 -63
- package/dist/components/calcite-inline-editable/customElement.js +2 -2
- package/dist/components/calcite-inline-editable/index.d.ts +0 -1
- package/dist/components/calcite-input/customElement.d.ts +243 -231
- package/dist/components/calcite-input/customElement.js +4 -4
- package/dist/components/calcite-input/index.d.ts +0 -3
- package/dist/components/calcite-input/interfaces.d.ts +1 -4
- package/dist/components/calcite-input-date-picker/customElement.d.ts +233 -209
- package/dist/components/calcite-input-date-picker/customElement.js +5 -5
- package/dist/components/calcite-input-date-picker/index.d.ts +0 -4
- package/dist/components/calcite-input-message/customElement.d.ts +28 -26
- package/dist/components/calcite-input-message/customElement.js +2 -2
- package/dist/components/calcite-input-message/index.d.ts +0 -1
- package/dist/components/calcite-input-number/customElement.d.ts +217 -204
- package/dist/components/calcite-input-number/customElement.js +4 -4
- package/dist/components/calcite-input-number/index.d.ts +0 -3
- package/dist/components/calcite-input-text/customElement.d.ts +180 -167
- package/dist/components/calcite-input-text/customElement.js +3 -3
- package/dist/components/calcite-input-text/index.d.ts +0 -3
- package/dist/components/calcite-input-time-picker/customElement.d.ts +196 -195
- package/dist/components/calcite-input-time-picker/customElement.js +1 -1
- package/dist/components/calcite-input-time-picker/index.d.ts +0 -4
- package/dist/components/calcite-input-time-zone/customElement.d.ts +762 -1363
- package/dist/components/calcite-input-time-zone/customElement.js +5 -4
- package/dist/components/calcite-input-time-zone/index.d.ts +0 -3
- package/dist/components/calcite-input-time-zone/interfaces.d.ts +2 -24
- package/dist/components/calcite-label/customElement.d.ts +29 -26
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-link/customElement.d.ts +39 -39
- package/dist/components/calcite-link/customElement.js +1 -1
- package/dist/components/calcite-link/index.d.ts +0 -1
- package/dist/components/calcite-list/customElement.d.ts +180 -181
- package/dist/components/calcite-list/customElement.js +4 -4
- package/dist/components/calcite-list/index.d.ts +0 -3
- package/dist/components/calcite-list/interfaces.d.ts +9 -15
- package/dist/components/calcite-list/resources.d.ts +1 -16
- package/dist/components/calcite-list-item/customElement.d.ts +141 -125
- package/dist/components/calcite-list-item/customElement.js +7 -6
- package/dist/components/calcite-list-item/index.d.ts +0 -3
- package/dist/components/calcite-list-item/interfaces.d.ts +8 -7
- package/dist/components/calcite-list-item-group/customElement.d.ts +24 -20
- package/dist/components/calcite-list-item-group/customElement.js +2 -2
- package/dist/components/calcite-loader/customElement.d.ts +57 -43
- package/dist/components/calcite-loader/customElement.js +1 -1
- package/dist/components/calcite-menu/customElement.d.ts +25 -32
- package/dist/components/calcite-menu/customElement.js +2 -2
- package/dist/components/calcite-menu-item/customElement.d.ts +76 -72
- package/dist/components/calcite-menu-item/customElement.js +2 -2
- package/dist/components/calcite-menu-item/index.d.ts +0 -3
- package/dist/components/calcite-meter/customElement.d.ts +114 -109
- package/dist/components/calcite-meter/customElement.js +2 -2
- package/dist/components/calcite-meter/interfaces.d.ts +2 -1
- package/dist/components/calcite-navigation/customElement.d.ts +27 -21
- package/dist/components/calcite-navigation/customElement.js +2 -2
- package/dist/components/calcite-navigation/index.d.ts +0 -1
- package/dist/components/calcite-navigation-logo/customElement.d.ts +56 -51
- package/dist/components/calcite-navigation-logo/customElement.js +1 -1
- package/dist/components/calcite-navigation-logo/index.d.ts +0 -1
- package/dist/components/calcite-navigation-user/customElement.d.ts +40 -33
- package/dist/components/calcite-navigation-user/customElement.js +1 -1
- package/dist/components/calcite-navigation-user/index.d.ts +0 -1
- package/dist/components/calcite-notice/customElement.d.ts +84 -73
- package/dist/components/calcite-notice/customElement.js +3 -3
- package/dist/components/calcite-notice/index.d.ts +0 -2
- package/dist/components/calcite-option/customElement.d.ts +19 -20
- package/dist/components/calcite-option/customElement.js +1 -1
- package/dist/components/calcite-option-group/customElement.d.ts +15 -16
- package/dist/components/calcite-option-group/customElement.js +1 -1
- package/dist/components/calcite-pagination/customElement.d.ts +74 -77
- package/dist/components/calcite-pagination/customElement.js +1 -1
- package/dist/components/calcite-pagination/index.d.ts +0 -1
- package/dist/components/calcite-panel/customElement.d.ts +168 -142
- package/dist/components/calcite-panel/customElement.js +9 -8
- package/dist/components/calcite-panel/index.d.ts +0 -4
- package/dist/components/calcite-popover/customElement.d.ts +167 -162
- package/dist/components/calcite-popover/customElement.js +3 -3
- package/dist/components/calcite-popover/index.d.ts +0 -1
- package/dist/components/calcite-progress/customElement.d.ts +32 -27
- package/dist/components/calcite-progress/customElement.js +1 -1
- package/dist/components/calcite-radio-button/customElement.d.ts +68 -68
- package/dist/components/calcite-radio-button/customElement.js +1 -1
- package/dist/components/calcite-radio-button-group/customElement.d.ts +67 -69
- package/dist/components/calcite-radio-button-group/customElement.js +1 -1
- package/dist/components/calcite-radio-button-group/index.d.ts +0 -1
- package/dist/components/calcite-rating/customElement.d.ts +90 -91
- package/dist/components/calcite-rating/customElement.js +1 -1
- package/dist/components/calcite-rating/index.d.ts +0 -3
- package/dist/components/calcite-scrim/customElement.d.ts +15 -18
- package/dist/components/calcite-scrim/customElement.js +2 -2
- package/dist/components/calcite-scrim/index.d.ts +0 -1
- package/dist/components/calcite-segmented-control/customElement.d.ts +89 -98
- package/dist/components/calcite-segmented-control/customElement.js +2 -2
- package/dist/components/calcite-segmented-control/index.d.ts +0 -1
- package/dist/components/calcite-segmented-control-item/customElement.d.ts +29 -24
- package/dist/components/calcite-segmented-control-item/customElement.js +2 -2
- package/dist/components/calcite-segmented-control-item/index.d.ts +0 -1
- package/dist/components/calcite-select/customElement.d.ts +90 -92
- package/dist/components/calcite-select/customElement.js +1 -1
- package/dist/components/calcite-select/index.d.ts +0 -2
- package/dist/components/calcite-sheet/customElement.d.ts +142 -127
- package/dist/components/calcite-sheet/customElement.js +3 -3
- package/dist/components/calcite-sheet/index.d.ts +0 -2
- package/dist/components/calcite-sheet/interfaces.d.ts +1 -9
- package/dist/components/calcite-shell/customElement.d.ts +10 -10
- package/dist/components/calcite-shell/customElement.js +2 -2
- package/dist/components/calcite-shell-panel/customElement.d.ts +91 -81
- package/dist/components/calcite-shell-panel/customElement.js +3 -3
- package/dist/components/calcite-shell-panel/index.d.ts +0 -1
- package/dist/components/calcite-shell-panel/interfaces.d.ts +1 -9
- package/dist/components/calcite-slider/customElement.d.ts +194 -192
- package/dist/components/calcite-slider/customElement.js +2 -2
- package/dist/components/calcite-slider/index.d.ts +0 -2
- package/dist/components/calcite-sort-handle/customElement.d.ts +111 -106
- package/dist/components/calcite-sort-handle/customElement.js +5 -4
- package/dist/components/calcite-sort-handle/index.d.ts +0 -4
- package/dist/components/calcite-sort-handle/interfaces.d.ts +11 -7
- package/dist/components/calcite-sortable-list/customElement.d.ts +46 -44
- package/dist/components/calcite-sortable-list/customElement.js +2 -2
- package/dist/components/calcite-split-button/customElement.d.ts +141 -114
- package/dist/components/calcite-split-button/customElement.js +4 -3
- package/dist/components/calcite-split-button/index.d.ts +0 -2
- package/dist/components/calcite-stack/customElement.d.ts +11 -9
- package/dist/components/calcite-stack/customElement.js +3 -3
- package/dist/components/calcite-stepper/customElement.d.ts +68 -65
- package/dist/components/calcite-stepper/customElement.js +2 -2
- package/dist/components/calcite-stepper/index.d.ts +0 -1
- package/dist/components/calcite-stepper/interfaces.d.ts +1 -10
- package/dist/components/calcite-stepper-item/customElement.d.ts +76 -63
- package/dist/components/calcite-stepper-item/customElement.js +2 -2
- package/dist/components/calcite-stepper-item/index.d.ts +0 -1
- package/dist/components/calcite-swatch/customElement.d.ts +51 -48
- package/dist/components/calcite-swatch/customElement.js +3 -3
- package/dist/components/calcite-swatch-group/customElement.d.ts +54 -50
- package/dist/components/calcite-swatch-group/customElement.js +2 -2
- package/dist/components/calcite-switch/customElement.d.ts +59 -55
- package/dist/components/calcite-switch/customElement.js +1 -1
- package/dist/components/calcite-tab/customElement.d.ts +24 -21
- package/dist/components/calcite-tab/customElement.js +2 -2
- package/dist/components/calcite-tab-nav/customElement.d.ts +35 -33
- package/dist/components/calcite-tab-nav/customElement.js +3 -3
- package/dist/components/calcite-tab-nav/index.d.ts +0 -1
- package/dist/components/calcite-tab-title/customElement.d.ts +79 -66
- package/dist/components/calcite-tab-title/customElement.js +2 -2
- package/dist/components/calcite-tab-title/index.d.ts +0 -2
- package/dist/components/calcite-table/customElement.d.ts +145 -109
- package/dist/components/calcite-table/customElement.js +1 -1
- package/dist/components/calcite-table/index.d.ts +0 -3
- package/dist/components/calcite-table/interfaces.d.ts +3 -9
- package/dist/components/calcite-table-cell/customElement.d.ts +36 -40
- package/dist/components/calcite-table-cell/customElement.js +1 -1
- package/dist/components/calcite-table-header/customElement.d.ts +41 -45
- package/dist/components/calcite-table-header/customElement.js +1 -1
- package/dist/components/calcite-table-header/index.d.ts +0 -1
- package/dist/components/calcite-table-row/customElement.d.ts +32 -24
- package/dist/components/calcite-table-row/customElement.js +2 -2
- package/dist/components/calcite-table-row/index.d.ts +0 -3
- package/dist/components/calcite-tabs/customElement.d.ts +31 -32
- package/dist/components/calcite-tabs/customElement.js +2 -2
- package/dist/components/calcite-tabs/interfaces.d.ts +2 -2
- package/dist/components/calcite-text-area/customElement.d.ts +173 -170
- package/dist/components/calcite-text-area/customElement.js +2 -2
- package/dist/components/calcite-text-area/index.d.ts +0 -2
- package/dist/components/calcite-tile/customElement.d.ts +85 -75
- package/dist/components/calcite-tile/customElement.js +2 -2
- package/dist/components/calcite-tile/index.d.ts +0 -2
- package/dist/components/calcite-tile-group/customElement.d.ts +65 -64
- package/dist/components/calcite-tile-group/customElement.js +2 -2
- package/dist/components/calcite-time-picker/customElement.d.ts +76 -81
- package/dist/components/calcite-time-picker/customElement.js +1 -1
- package/dist/components/calcite-time-picker/index.d.ts +0 -1
- package/dist/components/calcite-tooltip/customElement.d.ts +97 -86
- package/dist/components/calcite-tooltip/customElement.js +3 -3
- package/dist/components/calcite-tree/customElement.d.ts +44 -42
- package/dist/components/calcite-tree/customElement.js +2 -2
- package/dist/components/calcite-tree-item/customElement.d.ts +43 -37
- package/dist/components/calcite-tree-item/customElement.js +2 -2
- package/dist/components/calcite-tree-item/index.d.ts +0 -1
- package/dist/components/functional/Heading.d.ts +1 -11
- package/dist/components/interfaces.d.ts +21 -17
- package/dist/controllers/useFocusTrap.d.ts +14 -88
- package/dist/controllers/useTime.d.ts +132 -158
- package/dist/docs/api.json +1 -56166
- package/dist/docs/docs.json +1 -47371
- package/dist/docs/vscode.css-custom-data.json +1 -2951
- package/dist/docs/vscode.html-custom-data.json +1 -9179
- package/dist/docs/web-types.json +1 -21842
- package/dist/index.d.ts +579 -1339
- package/dist/index.js +1 -1
- package/dist/loader.js +21 -21
- package/dist/types/components.d.ts +1 -0
- package/dist/types/lumina.d.ts +399 -399
- package/dist/types/preact.d.ts +399 -399
- package/dist/types/react.d.ts +399 -399
- package/dist/types/stencil.d.ts +399 -399
- package/dist/utils/config.d.ts +23 -25
- package/dist/utils/date.d.ts +4 -144
- package/dist/utils/dom.d.ts +13 -362
- package/dist/utils/floating-ui.d.ts +30 -176
- package/dist/utils/form.d.ts +3 -176
- package/dist/utils/locale.d.ts +7 -139
- package/dist/utils/logger.d.ts +1 -34
- package/dist/utils/sortableComponent.d.ts +6 -83
- package/dist/utils/time.d.ts +3 -85
- package/package.json +2 -2
- package/dist/cdn/2YIFHJHY.js +0 -4
- package/dist/cdn/32UUCGYB.js +0 -4
- package/dist/cdn/3GUVPQJR.js +0 -4
- package/dist/cdn/3YOKKJPY.js +0 -4
- package/dist/cdn/4CN7H6RM.js +0 -4
- package/dist/cdn/4WKWHRPZ.js +0 -4
- package/dist/cdn/5Q57CQI3.js +0 -4
- package/dist/cdn/6Z76MN3O.js +0 -4
- package/dist/cdn/72K54LJ3.js +0 -4
- package/dist/cdn/7UBY56YB.js +0 -4
- package/dist/cdn/7YRLVLEU.js +0 -4
- package/dist/cdn/AGSZXLFZ.js +0 -4
- package/dist/cdn/ATLOMO4U.js +0 -4
- package/dist/cdn/AVYY537F.js +0 -4
- package/dist/cdn/AYJMHRHA.js +0 -4
- package/dist/cdn/BCQ43LG2.js +0 -4
- package/dist/cdn/BRGAUXEE.js +0 -4
- package/dist/cdn/C5GW3QGU.js +0 -4
- package/dist/cdn/C5MRBVVJ.js +0 -4
- package/dist/cdn/CALTMDSP.js +0 -4
- package/dist/cdn/CEJWPGKG.js +0 -4
- package/dist/cdn/CGIXKXVI.js +0 -4
- package/dist/cdn/CP6TRAY3.js +0 -4
- package/dist/cdn/FAQ7PNPN.js +0 -4
- package/dist/cdn/FITJOEW5.js +0 -4
- package/dist/cdn/FTB7STHD.js +0 -4
- package/dist/cdn/FUKA2TDW.js +0 -4
- package/dist/cdn/FYW3U7RY.js +0 -4
- package/dist/cdn/G26E4Y5F.js +0 -4
- package/dist/cdn/G3GJSEUW.js +0 -4
- package/dist/cdn/GG3RFBYR.js +0 -4
- package/dist/cdn/GSW4MFZA.js +0 -4
- package/dist/cdn/GULEBIC3.js +0 -4
- package/dist/cdn/GUODPHFC.js +0 -4
- package/dist/cdn/I7X4UW64.js +0 -4
- package/dist/cdn/IGN2CLPE.js +0 -4
- package/dist/cdn/IVJAMT6Z.js +0 -4
- package/dist/cdn/KCQCPFUL.js +0 -4
- package/dist/cdn/KGIEHKQM.js +0 -4
- package/dist/cdn/KWEJGNCA.js +0 -4
- package/dist/cdn/LC6ANU6L.js +0 -4
- package/dist/cdn/LCZIHGJW.js +0 -6
- package/dist/cdn/LQ4REGZY.js +0 -4
- package/dist/cdn/LQTEOC43.js +0 -4
- package/dist/cdn/LXUTSB4Q.js +0 -4
- package/dist/cdn/MGB75KTC.js +0 -4
- package/dist/cdn/MI73YDXI.js +0 -4
- package/dist/cdn/N4O6BCQN.js +0 -4
- package/dist/cdn/NAQRKSUT.js +0 -4
- package/dist/cdn/NCBA3WEJ.js +0 -4
- package/dist/cdn/NNNQA5CE.js +0 -4
- package/dist/cdn/O3PUG7UN.js +0 -4
- package/dist/cdn/OAYEKVMX.js +0 -4
- package/dist/cdn/OHO4ZJBF.js +0 -4
- package/dist/cdn/OJIDM65V.js +0 -4
- package/dist/cdn/ONIGI3PC.js +0 -4
- package/dist/cdn/OPZJVDXL.js +0 -4
- package/dist/cdn/ORD3PCIH.js +0 -4
- package/dist/cdn/OTAJMSGN.js +0 -4
- package/dist/cdn/PPVZ46SY.js +0 -4
- package/dist/cdn/QBLVZKXO.js +0 -4
- package/dist/cdn/QYN4DVKB.js +0 -4
- package/dist/cdn/R3WR5YVD.js +0 -4
- package/dist/cdn/RA23P7VX.js +0 -4
- package/dist/cdn/RVG7GGAT.js +0 -4
- package/dist/cdn/SGXRT32J.js +0 -4
- package/dist/cdn/SJZJHII4.js +0 -4
- package/dist/cdn/SQSDWY2G.js +0 -4
- package/dist/cdn/STXK5HL7.js +0 -4
- package/dist/cdn/SYRUJUF5.js +0 -4
- package/dist/cdn/T4MJNTVW.js +0 -4
- package/dist/cdn/U2FT6ETL.js +0 -4
- package/dist/cdn/U6VTRKGF.js +0 -4
- package/dist/cdn/UBIPAQXU.js +0 -4
- package/dist/cdn/UXPM4JEV.js +0 -4
- package/dist/cdn/UYNJ4AXL.js +0 -4
- package/dist/cdn/VCVSUC25.js +0 -4
- package/dist/cdn/VDAHEY6D.js +0 -4
- package/dist/cdn/W2YNGVZA.js +0 -4
- package/dist/cdn/WXIS6FMR.js +0 -4
- package/dist/cdn/XIIJDTVR.js +0 -4
- package/dist/cdn/XPX3JPRJ.js +0 -4
- package/dist/cdn/XX45SDX4.js +0 -4
- package/dist/cdn/Y5M5WVDC.js +0 -4
- package/dist/cdn/YB6POHXI.js +0 -4
- package/dist/cdn/YHZQR6SB.js +0 -4
- package/dist/cdn/YJ52HWWQ.js +0 -4
- package/dist/cdn/ZQNOL767.js +0 -4
- package/dist/cdn/ZSLXO2SR.js +0 -4
- package/dist/components/calcite-accordion/interfaces.d.ts +0 -4
- package/dist/components/calcite-accordion/resources.d.ts +0 -4
- package/dist/components/calcite-accordion-item/interfaces.d.ts +0 -9
- package/dist/components/calcite-accordion-item/resources.d.ts +0 -35
- package/dist/components/calcite-action/resources.d.ts +0 -17
- package/dist/components/calcite-action-bar/resources.d.ts +0 -8
- package/dist/components/calcite-action-bar/utils.d.ts +0 -9
- package/dist/components/calcite-action-group/resources.d.ts +0 -9
- package/dist/components/calcite-action-menu/resources.d.ts +0 -15
- package/dist/components/calcite-action-pad/resources.d.ts +0 -7
- package/dist/components/calcite-alert/AlertManager.d.ts +0 -9
- package/dist/components/calcite-alert/resources.d.ts +0 -33
- package/dist/components/calcite-autocomplete/resources.d.ts +0 -20
- package/dist/components/calcite-autocomplete-item/resources.d.ts +0 -18
- package/dist/components/calcite-autocomplete-item-group/resources.d.ts +0 -9
- package/dist/components/calcite-avatar/resources.d.ts +0 -6
- package/dist/components/calcite-avatar/utils.d.ts +0 -20
- package/dist/components/calcite-block/resources.d.ts +0 -38
- package/dist/components/calcite-block/utils.d.ts +0 -2
- package/dist/components/calcite-block-group/resources.d.ts +0 -8
- package/dist/components/calcite-block-group/utils.d.ts +0 -2
- package/dist/components/calcite-block-section/resources.d.ts +0 -21
- package/dist/components/calcite-button/resources.d.ts +0 -14
- package/dist/components/calcite-card/resources.d.ts +0 -23
- package/dist/components/calcite-card-group/resources.d.ts +0 -4
- package/dist/components/calcite-carousel/resources.d.ts +0 -33
- package/dist/components/calcite-carousel-item/resources.d.ts +0 -7
- package/dist/components/calcite-checkbox/resources.d.ts +0 -4
- package/dist/components/calcite-chip/resources.d.ts +0 -23
- package/dist/components/calcite-color-picker/resources.d.ts +0 -93
- package/dist/components/calcite-color-picker-hex-input/resources.d.ts +0 -5
- package/dist/components/calcite-color-picker-swatch/resources.d.ts +0 -17
- package/dist/components/calcite-combobox/resources.d.ts +0 -48
- package/dist/components/calcite-combobox/utils.d.ts +0 -10
- package/dist/components/calcite-combobox-item/resources.d.ts +0 -22
- package/dist/components/calcite-combobox-item-group/resources.d.ts +0 -10
- package/dist/components/calcite-date-picker/resources.d.ts +0 -5
- package/dist/components/calcite-date-picker/utils.d.ts +0 -57
- package/dist/components/calcite-date-picker-day/resources.d.ts +0 -6
- package/dist/components/calcite-date-picker-month/resources.d.ts +0 -14
- package/dist/components/calcite-date-picker-month-header/customElement.d.ts +0 -27
- package/dist/components/calcite-date-picker-month-header/index.d.ts +0 -4
- package/dist/components/calcite-date-picker-month-header/resources.d.ts +0 -18
- package/dist/components/calcite-dialog/resources.d.ts +0 -29
- package/dist/components/calcite-dropdown/interfaces.d.ts +0 -4
- package/dist/components/calcite-dropdown/resources.d.ts +0 -12
- package/dist/components/calcite-dropdown-group/interfaces.d.ts +0 -6
- package/dist/components/calcite-dropdown-group/resources.d.ts +0 -5
- package/dist/components/calcite-dropdown-item/resources.d.ts +0 -11
- package/dist/components/calcite-fab/resources.d.ts +0 -5
- package/dist/components/calcite-filter/resources.d.ts +0 -7
- package/dist/components/calcite-flow/resources.d.ts +0 -5
- package/dist/components/calcite-flow-item/resources.d.ts +0 -19
- package/dist/components/calcite-graph/resources.d.ts +0 -10
- package/dist/components/calcite-graph/util.d.ts +0 -29
- package/dist/components/calcite-handle/resources.d.ts +0 -12
- package/dist/components/calcite-icon/resources.d.ts +0 -5
- package/dist/components/calcite-icon/utils.d.ts +0 -37
- package/dist/components/calcite-inline-editable/resources.d.ts +0 -12
- package/dist/components/calcite-input/common/input.d.ts +0 -31
- package/dist/components/calcite-input/common/tests.d.ts +0 -4
- package/dist/components/calcite-input/resources.d.ts +0 -37
- package/dist/components/calcite-input-date-picker/resources.d.ts +0 -31
- package/dist/components/calcite-input-date-picker/utils.d.ts +0 -8
- package/dist/components/calcite-input-message/interfaces.d.ts +0 -5
- package/dist/components/calcite-input-message/resources.d.ts +0 -3
- package/dist/components/calcite-input-number/resources.d.ts +0 -31
- package/dist/components/calcite-input-text/resources.d.ts +0 -22
- package/dist/components/calcite-input-time-picker/resources.d.ts +0 -25
- package/dist/components/calcite-input-time-zone/resources.d.ts +0 -6
- package/dist/components/calcite-input-time-zone/utils.d.ts +0 -22
- package/dist/components/calcite-label/resources.d.ts +0 -3
- package/dist/components/calcite-link/resources.d.ts +0 -5
- package/dist/components/calcite-list-item/resources.d.ts +0 -47
- package/dist/components/calcite-list-item/utils.d.ts +0 -13
- package/dist/components/calcite-list-item-group/resources.d.ts +0 -4
- package/dist/components/calcite-loader/interfaces.d.ts +0 -1
- package/dist/components/calcite-loader/resources.d.ts +0 -10
- package/dist/components/calcite-menu-item/interfaces.d.ts +0 -7
- package/dist/components/calcite-menu-item/resources.d.ts +0 -24
- package/dist/components/calcite-meter/resources.d.ts +0 -15
- package/dist/components/calcite-navigation/resources.d.ts +0 -23
- package/dist/components/calcite-navigation-logo/resources.d.ts +0 -10
- package/dist/components/calcite-navigation-user/resources.d.ts +0 -6
- package/dist/components/calcite-notice/resources.d.ts +0 -13
- package/dist/components/calcite-pagination/resources.d.ts +0 -12
- package/dist/components/calcite-panel/resources.d.ts +0 -48
- package/dist/components/calcite-popover/PopoverManager.d.ts +0 -23
- package/dist/components/calcite-popover/resources.d.ts +0 -16
- package/dist/components/calcite-progress/resources.d.ts +0 -5
- package/dist/components/calcite-radio-button/resources.d.ts +0 -4
- package/dist/components/calcite-radio-button-group/resources.d.ts +0 -6
- package/dist/components/calcite-rating/functional/star.d.ts +0 -3
- package/dist/components/calcite-rating/interfaces.d.ts +0 -17
- package/dist/components/calcite-rating/resources.d.ts +0 -17
- package/dist/components/calcite-scrim/resources.d.ts +0 -8
- package/dist/components/calcite-segmented-control/resources.d.ts +0 -6
- package/dist/components/calcite-segmented-control-item/resources.d.ts +0 -13
- package/dist/components/calcite-select/resources.d.ts +0 -9
- package/dist/components/calcite-sheet/resources.d.ts +0 -17
- package/dist/components/calcite-shell/interfaces.d.ts +0 -1
- package/dist/components/calcite-shell/resources.d.ts +0 -23
- package/dist/components/calcite-shell-panel/resources.d.ts +0 -21
- package/dist/components/calcite-slider/interfaces.d.ts +0 -11
- package/dist/components/calcite-slider/resources.d.ts +0 -35
- package/dist/components/calcite-sort-handle/resources.d.ts +0 -23
- package/dist/components/calcite-sortable-list/resources.d.ts +0 -6
- package/dist/components/calcite-split-button/resources.d.ts +0 -13
- package/dist/components/calcite-stack/resources.d.ts +0 -14
- package/dist/components/calcite-stepper/functional/step-bar.d.ts +0 -17
- package/dist/components/calcite-stepper/resources.d.ts +0 -18
- package/dist/components/calcite-stepper-item/resources.d.ts +0 -14
- package/dist/components/calcite-swatch/resources.d.ts +0 -28
- package/dist/components/calcite-swatch-group/resources.d.ts +0 -3
- package/dist/components/calcite-switch/resources.d.ts +0 -5
- package/dist/components/calcite-tab/interfaces.d.ts +0 -9
- package/dist/components/calcite-tab/resources.d.ts +0 -9
- package/dist/components/calcite-tab-nav/resources.d.ts +0 -16
- package/dist/components/calcite-tab-title/resources.d.ts +0 -17
- package/dist/components/calcite-table/resources.d.ts +0 -22
- package/dist/components/calcite-table-cell/resources.d.ts +0 -10
- package/dist/components/calcite-table-header/resources.d.ts +0 -17
- package/dist/components/calcite-table-row/resources.d.ts +0 -5
- package/dist/components/calcite-tabs/resources.d.ts +0 -6
- package/dist/components/calcite-text-area/interfaces.d.ts +0 -4
- package/dist/components/calcite-text-area/resources.d.ts +0 -33
- package/dist/components/calcite-tile/resources.d.ts +0 -22
- package/dist/components/calcite-tile-group/resources.d.ts +0 -3
- package/dist/components/calcite-time-picker/resources.d.ts +0 -38
- package/dist/components/calcite-tooltip/TooltipManager.d.ts +0 -38
- package/dist/components/calcite-tooltip/resources.d.ts +0 -11
- package/dist/components/calcite-tooltip/utils.d.ts +0 -3
- package/dist/components/calcite-tree/utils.d.ts +0 -4
- package/dist/components/calcite-tree-item/interfaces.d.ts +0 -9
- package/dist/components/calcite-tree-item/resources.d.ts +0 -19
- package/dist/components/functional/ExpandToggle.d.ts +0 -22
- package/dist/components/functional/FloatingArrow.d.ts +0 -20
- package/dist/components/functional/InternalLabel.d.ts +0 -26
- package/dist/components/functional/Validation.d.ts +0 -17
- package/dist/components/functional/XButton.d.ts +0 -17
- package/dist/components/resources.d.ts +0 -13
- package/dist/components/types.d.ts +0 -2
- package/dist/controllers/useCancelable.d.ts +0 -30
- package/dist/controllers/useInteractive.d.ts +0 -33
- package/dist/controllers/usePreventDocumentScroll.d.ts +0 -22
- package/dist/controllers/useSetFocus.d.ts +0 -18
- package/dist/controllers/useSizeOverride.d.ts +0 -44
- package/dist/controllers/useT9n.d.ts +0 -1
- package/dist/controllers/useTopLayer.d.ts +0 -34
- package/dist/custom-theme/accordion-item.d.ts +0 -9
- package/dist/custom-theme/accordion.d.ts +0 -8
- package/dist/custom-theme/action.d.ts +0 -27
- package/dist/custom-theme/alert.d.ts +0 -7
- package/dist/custom-theme/autocomplete.d.ts +0 -28
- package/dist/custom-theme/avatar.d.ts +0 -8
- package/dist/custom-theme/block-section.d.ts +0 -9
- package/dist/custom-theme/block.d.ts +0 -13
- package/dist/custom-theme/button.d.ts +0 -5
- package/dist/custom-theme/card.d.ts +0 -11
- package/dist/custom-theme/carousel.d.ts +0 -14
- package/dist/custom-theme/checkbox.d.ts +0 -8
- package/dist/custom-theme/chips.d.ts +0 -11
- package/dist/custom-theme/color-picker.d.ts +0 -22
- package/dist/custom-theme/combobox-item.d.ts +0 -12
- package/dist/custom-theme/combobox.d.ts +0 -20
- package/dist/custom-theme/date-picker.d.ts +0 -29
- package/dist/custom-theme/dialog.d.ts +0 -30
- package/dist/custom-theme/dropdown.d.ts +0 -17
- package/dist/custom-theme/fab.d.ts +0 -10
- package/dist/custom-theme/filter.d.ts +0 -17
- package/dist/custom-theme/flow.d.ts +0 -21
- package/dist/custom-theme/graph.d.ts +0 -4
- package/dist/custom-theme/handle.d.ts +0 -9
- package/dist/custom-theme/icon.d.ts +0 -1
- package/dist/custom-theme/inline-editable.d.ts +0 -10
- package/dist/custom-theme/input-date-picker.d.ts +0 -43
- package/dist/custom-theme/input-message.d.ts +0 -8
- package/dist/custom-theme/input-number.d.ts +0 -29
- package/dist/custom-theme/input-text.d.ts +0 -29
- package/dist/custom-theme/input-time-picker.d.ts +0 -20
- package/dist/custom-theme/input.d.ts +0 -24
- package/dist/custom-theme/label.d.ts +0 -5
- package/dist/custom-theme/link.d.ts +0 -4
- package/dist/custom-theme/list.d.ts +0 -13
- package/dist/custom-theme/loader.d.ts +0 -13
- package/dist/custom-theme/menu-item.d.ts +0 -8
- package/dist/custom-theme/meter.d.ts +0 -10
- package/dist/custom-theme/navigation-logo.d.ts +0 -7
- package/dist/custom-theme/navigation-user.d.ts +0 -9
- package/dist/custom-theme/navigation.d.ts +0 -7
- package/dist/custom-theme/notice.d.ts +0 -16
- package/dist/custom-theme/pagination.d.ts +0 -9
- package/dist/custom-theme/panel.d.ts +0 -19
- package/dist/custom-theme/popover.d.ts +0 -9
- package/dist/custom-theme/progress.d.ts +0 -6
- package/dist/custom-theme/radio-button-group.d.ts +0 -5
- package/dist/custom-theme/radio-button.d.ts +0 -7
- package/dist/custom-theme/rating.d.ts +0 -10
- package/dist/custom-theme/segmented-control.d.ts +0 -8
- package/dist/custom-theme/select.d.ts +0 -11
- package/dist/custom-theme/shell-panel.d.ts +0 -18
- package/dist/custom-theme/slider.d.ts +0 -13
- package/dist/custom-theme/split-button.d.ts +0 -14
- package/dist/custom-theme/stepper-item.d.ts +0 -22
- package/dist/custom-theme/stepper.d.ts +0 -8
- package/dist/custom-theme/swatch-group.d.ts +0 -4
- package/dist/custom-theme/swatch.d.ts +0 -4
- package/dist/custom-theme/switch.d.ts +0 -10
- package/dist/custom-theme/table.d.ts +0 -51
- package/dist/custom-theme/tabs.d.ts +0 -18
- package/dist/custom-theme/text-area.d.ts +0 -14
- package/dist/custom-theme/tile.d.ts +0 -11
- package/dist/custom-theme/time-picker.d.ts +0 -12
- package/dist/custom-theme/tooltip.d.ts +0 -9
- package/dist/custom-theme/tree.d.ts +0 -6
- package/dist/internal-label/autocomplete.d.ts +0 -1
- package/dist/internal-label/checkbox.d.ts +0 -1
- package/dist/internal-label/combobox.d.ts +0 -1
- package/dist/internal-label/input-date-picker.d.ts +0 -1
- package/dist/internal-label/input-number.d.ts +0 -1
- package/dist/internal-label/input-text.d.ts +0 -1
- package/dist/internal-label/input-time-picker.d.ts +0 -1
- package/dist/internal-label/input-time-zone.d.ts +0 -1
- package/dist/internal-label/input.d.ts +0 -1
- package/dist/internal-label/radio-button-group.d.ts +0 -1
- package/dist/internal-label/radio-button.d.ts +0 -1
- package/dist/internal-label/rating.d.ts +0 -1
- package/dist/internal-label/segmented-control.d.ts +0 -1
- package/dist/internal-label/select.d.ts +0 -1
- package/dist/internal-label/slider.d.ts +0 -1
- package/dist/internal-label/switch.d.ts +0 -1
- package/dist/internal-label/text-area.d.ts +0 -1
- package/dist/runtime.d.ts +0 -6
- package/dist/types/preact10.d.ts +0 -938
- package/dist/utils/array.d.ts +0 -1
- package/dist/utils/browser.d.ts +0 -1
- package/dist/utils/component.d.ts +0 -34
- package/dist/utils/dynamicClasses.d.ts +0 -2
- package/dist/utils/filter.d.ts +0 -1
- package/dist/utils/globalScript.d.ts +0 -1
- package/dist/utils/guid.d.ts +0 -1
- package/dist/utils/key.d.ts +0 -3
- package/dist/utils/label.d.ts +0 -45
- package/dist/utils/math.d.ts +0 -22
- package/dist/utils/mode.d.ts +0 -2
- package/dist/utils/number.d.ts +0 -45
- package/dist/utils/observers.d.ts +0 -29
- package/dist/utils/openCloseComponent.d.ts +0 -52
- package/dist/utils/overflow.d.ts +0 -28
- package/dist/utils/resources.d.ts +0 -33
- package/dist/utils/responsive.d.ts +0 -11
- package/dist/utils/selectableComponent.d.ts +0 -17
- package/dist/utils/text.d.ts +0 -22
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{a as ne}from"./XXQ6DFF5.js";import{a as G,b as f,c as Z,d as Y,e as J,j as n}from"./VHWY6WRS.js";import{a as ie}from"./Z5GIWALZ.js";import{a as te}from"./5USXQ2PA.js";import{c as Q,d as X,e as ee}from"./TF62JD6A.js";import{a as A,c as U,e as W,g as S,h as q}from"./XM6ZS6NL.js";import{a as K}from"./JDOBRO6Y.js";import{a as R}from"./B77OUDM7.js";import{b as _}from"./IZ4LDJ5Z.js";import{a as M}from"./D2BIPE73.js";import{a as j}from"./F327VYUC.js";import{a as y}from"./ZMUA6AOW.js";import{c as L}from"./6PU3J3IP.js";import"./AHSC4NMW.js";import{e as P,o as $,w as V}from"./ABO7NKZD.js";import"./UUPPUJNG.js";import{B as C,C as k,D as w,E as D,F as s,J as N,K as O,Q as F,g as T,h as c,l as d,p as x}from"./BK3V4SS7.js";var a={loader:"loader",clearButton:"clear-button",clearable:"clearable",inputIcon:"icon",prefix:"prefix",suffix:"suffix",numberButtonWrapper:"number-button-wrapper",buttonItemHorizontal:"number-button-item--horizontal",wrapper:"element-wrapper",inputWrapper:"wrapper",actionWrapper:"action-wrapper",numberButtonItem:"number-button-item",hasSuffix:"has-suffix",hasPrefix:"has-prefix"},ae={validationMessage:"inputNumberValidationMessage"},se={action:"action"},B={clear:"x",chevronUp:"chevron-up",chevronDown:"chevron-down"},re={up:"up",down:"down"},ce=T`: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{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);block-size:var(--calcite-input-number-height, 1.5rem)}:host([scale=s]) input{padding-inline:var(--calcite-spacing-sm)}:host([scale=s]) .has-prefix input{padding-inline-start:var(--calcite-spacing-xxs)}:host([scale=s]) .prefix{padding-inline:var(--calcite-spacing-sm) var(--calcite-spacing-xxs)}:host([scale=s]) .has-suffix input{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s]) .suffix{padding-inline:var(--calcite-spacing-xxs) var(--calcite-spacing-sm)}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper{block-size:var(--calcite-input-number-height, 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{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);block-size:var(--calcite-input-number-height, 2rem)}:host([scale=m]) input{padding-inline:var(--calcite-spacing-md)}:host([scale=m]) .has-prefix input{padding-inline-start:var(--calcite-spacing-xs)}:host([scale=m]) .prefix{padding-inline:var(--calcite-spacing-md) var(--calcite-spacing-xs)}:host([scale=m]) .has-suffix input{padding-inline-end:var(--calcite-spacing-xs)}:host([scale=m]) .suffix{padding-inline:var(--calcite-spacing-xs) var(--calcite-spacing-md)}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper{block-size:var(--calcite-input-number-height, 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{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);block-size:var(--calcite-input-number-height, 2.75rem)}:host([scale=l]) input{padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .has-prefix input{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=l]) .prefix{padding-inline:var(--calcite-spacing-lg) var(--calcite-spacing-sm)}:host([scale=l]) .has-suffix input{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=l]) .suffix{padding-inline:var(--calcite-spacing-sm) var(--calcite-spacing-lg)}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper{block-size:var(--calcite-input-number-height, 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;font-family:inherit;font-weight:var(--calcite-font-weight-normal);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-number-text-color, var(--calcite-color-text-1));border-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));text-align:var(--calcite-internal-input-number-alignment)}input:placeholder-shown{text-overflow:ellipsis}input{border-width:1px;border-style:solid;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input))}input::placeholder,input:-ms-input-placeholder,input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-number-placeholder-text-color, var(--calcite-color-text-3))}input:focus{border-color:var(--calcite-color-brand);color:var(--calcite-input-number-text-color-focus, var(--calcite-color-text-1))}input[readonly]{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-input-number-background-color, var(--calcite-color-background))}input[readonly]:focus{color:var(--calcite-input-number-text-color-focus, var(--calcite-color-text-1))}input{outline-color:transparent}input:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([status=invalid]) input{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}: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;isolation:isolate}.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;--calcite-icon-color: var( --calcite-input-number-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-text-3)) )}.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;outline-color:transparent;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.clear-button calcite-icon{--calcite-icon-color: var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.clear-button:hover{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;background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.clear-button:hover calcite-icon{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;--calcite-icon-color: var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.clear-button:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.clear-button:active calcite-icon{--calcite-icon-color: var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.clear-button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.has-suffix .clear-button{border-inline-end-width:0}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.loader calcite-progress{--calcite-progress-background-color: var(--calcite-input-loading-background-color);--calcite-progress-fill-color: var(--calcite-input-loading-fill-color)}.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;line-height:1;font-weight:var(--calcite-font-weight-regular);border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input))}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-prefix-text-color, var(--calcite-color-text-2))}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-suffix-text-color, var(--calcite-color-text-2))}:host([alignment=start]){--calcite-internal-input-number-alignment: start}:host([alignment=center]){--calcite-internal-input-number-alignment: center}:host([alignment=end]){--calcite-internal-input-number-alignment: 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-inline-start-width:1px;border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5}: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;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;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1))}.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;--calcite-icon-color: var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.number-button-item:disabled{pointer-events:none}.number-button-item:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.number-button-item:hover calcite-icon{--calcite-icon-color: var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.number-button-item:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.number-button-item:active calcite-icon{--calcite-icon-color: var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.prefix,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=down]{border-start-start-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host([read-only]) .suffix,:host([read-only]) .wrapper:not(.has-suffix) .clear-button,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=up]{border-end-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host(:not([read-only])[number-button-type=horizontal]) .prefix,:host(:not([read-only])[number-button-type=horizontal]) input,.has-prefix input{border-start-start-radius:0;border-end-start-radius:0}:host(:not([status=invalid])) .has-prefix input{border-inline-start-width:0}:host(:not([status=invalid])) .has-suffix input{border-inline-end-width:0}.has-suffix input,:host .clearable input,:host(:not([read-only])) input,:host .suffix,:host .clear-button{border-start-end-radius:0;border-end-end-radius:0}:host .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}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}.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}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}`,H=class extends D{constructor(){super(),this.actionWrapperRef=k(),this.attributeWatch=L(["autofocus","enterkeyhint","inputmode"],this.handleGlobalAttributesChanged),this.childNumberRef=k(),this.inputWrapperRef=k(),this.onHiddenFormInputInput=e=>{e.target.name===this.name&&this.setNumberValue({value:e.target.value,origin:"direct"}),this.setFocus(),e.stopPropagation()},this.previousValueOrigin="initial",this.userChangedValue=!1,this._value="",this.messages=M(),this.focusSetter=j()(this),this.interactiveContainer=K(this),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.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputNumberChange=x({cancelable:!1}),this.calciteInputNumberInput=x(),this.calciteInternalInputNumberBlur=x({cancelable:!1}),this.calciteInternalInputNumberFocus=x({cancelable:!1}),this.listen("click",this.clickHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={displayedValue:[16,{},{state:!0}],slottedActionElDisabledInternally:[16,{},{state:!0}],alignment:[3,{},{reflect:!0}],autocomplete:1,clearable:[7,{},{reflect:!0,type:Boolean}],disabled:[7,{},{reflect:!0,type:Boolean}],editingEnabled:[7,{},{reflect:!0,type:Boolean}],form:[3,{},{reflect:!0}],groupSeparator:[7,{},{reflect:!0,type:Boolean}],icon:[3,{converter:N,type:String},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],integer:[5,{},{type:Boolean}],label:1,labelText:1,loading:[7,{},{reflect:!0,type:Boolean}],localeFormat:[5,{},{type:Boolean}],max:[11,{},{reflect:!0,type:Number}],maxLength:[11,{},{reflect:!0,type:Number}],messageOverrides:[0,{},{attribute:!1}],min:[11,{},{reflect:!0,type:Number}],minLength:[11,{},{reflect:!0,type:Number}],name:[3,{},{reflect:!0}],numberButtonType:[3,{},{reflect:!0}],numberingSystem:[3,{},{reflect:!0}],placeholder:1,prefixText:1,readOnly:[7,{},{reflect:!0,type:Boolean}],required:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],status:[3,{},{reflect:!0}],step:[3,{},{reflect:!0}],suffixText:1,validationIcon:[3,{converter:N,type:String},{reflect:!0}],validationMessage:1,validity:[0,{},{attribute:!1}],value:1}}static{this.styles=ce}get isClearable(){return this.clearable&&this.value.length>0}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.valueWatcher(e,t),e&&this._value===""&&this.setNumberValue({origin:"reset",value:t}))}async selectText(){this.childNumberRef.value?.select()}async setFocus(e){return this.focusSetter(()=>this.childNumberRef.value,e)}connectedCallback(){super.connectedCallback(),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),Q(this),U(this),this.el.addEventListener(S,this.onHiddenFormInputInput)}async load(){this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=$({},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({origin:"connected",value:f(this.value)?this.value:""})}willUpdate(e){e.has("max")&&(this.maxString=this.max?.toString()||null),e.has("min")&&(this.minString=this.min?.toString()||null),e.has("icon")&&(this.requestedIcon=$({},this.icon,"number")),e.has("messages")&&(n.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:!1})}disconnectedCallback(){super.disconnectedCallback(),X(this),W(this),this.el.removeEventListener(S,this.onHiddenFormInputInput)}handleGlobalAttributesChanged(){this.requestUpdate()}valueWatcher(e,t){if(!this.userChangedValue){if(e==="Infinity"||e==="-Infinity"){this.displayedValue=e,this.previousEmittedNumberValue=e;return}this.setNumberValue({origin:"direct",previousValue:t,value:e==null||e==""?"":f(e)?e:this.previousValue||""}),this.warnAboutInvalidNumberValue(e)}this.userChangedValue=!1}keyDownHandler(e){this.readOnly||this.disabled||e.defaultPrevented||(this.isClearable&&e.key==="Escape"&&(this.clearInputValue(e),e.preventDefault()),e.key==="Enter"&&A(this)&&e.preventDefault())}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(e,t,i,p){let{value:r}=this;if(r==="Infinity"||r==="-Infinity")return;let u=e==="up"?1:-1,o=this.integer&&this.step!=="any"?Math.round(this.step):this.step,m=o==="any"?1:Math.abs(o||1),h=new G(r!==""?r:"0").add(`${m*u}`),g=()=>typeof i=="number"&&!isNaN(i)&&h.subtract(`${i}`).isNegative,b=()=>typeof t=="number"&&!isNaN(t)&&!h.subtract(`${t}`).isNegative,l=g()?`${i}`:b()?`${t}`:h.toString();this.setNumberValue({committing:!0,nativeEvent:p,origin:"user",value:l})}clearInputValue(e){this.setNumberValue({committing:!0,nativeEvent:e,origin:"user",value:""})}emitChangeIfUserModified(){this.previousValueOrigin==="user"&&this.value!==this.previousEmittedNumberValue&&(this.calciteInputNumberChange.emit(),this.setPreviousEmittedNumberValue(this.value))}inputNumberBlurHandler(){window.clearInterval(this.nudgeNumberValueIntervalId),this.calciteInternalInputNumberBlur.emit(),this.emitChangeIfUserModified()}clickHandler(e){if(this.disabled)return;let t=e.composedPath();!t.includes(this.inputWrapperRef.value)||t.includes(this.actionWrapperRef.value)||this.setFocus()}inputNumberFocusHandler(){this.calciteInternalInputNumberFocus.emit()}inputNumberInputHandler(e){if(this.disabled||this.readOnly||this.value==="Infinity"||this.value==="-Infinity")return;let t=e.target.value;n.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let i=n.delocalize(t);e.inputType==="insertFromPaste"?((!f(i)||this.integer&&(i.includes("e")||i.includes(".")))&&e.preventDefault(),this.setNumberValue({nativeEvent:e,origin:"user",value:Z(i)}),this.childNumberRef.value.value=this.displayedValue):this.setNumberValue({nativeEvent:e,origin:"user",value:i})}inputNumberKeyDownHandler(e){if(this.disabled||this.readOnly)return;if(this.value==="Infinity"||this.value==="-Infinity"){e.preventDefault(),(e.key==="Backspace"||e.key==="Delete")&&this.clearInputValue(e);return}if(e.key==="ArrowUp"){e.preventDefault(),this.nudgeNumberValue("up",e);return}if(e.key==="ArrowDown"){e.preventDefault(),this.nudgeNumberValue("down",e);return}let t=[..._,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(e.altKey||e.ctrlKey||e.metaKey)return;let i=e.shiftKey&&e.key==="Tab";if(t.includes(e.key)||i){e.key==="Enter"&&this.emitChangeIfUserModified();return}n.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(e.key===n.decimal&&!this.integer&&(!this.value&&!this.childNumberRef.value.value||this.value&&this.childNumberRef.value.value.indexOf(n.decimal)===-1))&&(/[eE]/.test(e.key)&&!this.integer&&(!this.value&&!this.childNumberRef.value.value||this.value&&!/[eE]/.test(this.childNumberRef.value.value))||e.key==="-"&&(!this.value&&!this.childNumberRef.value.value||this.value&&this.childNumberRef.value.value.split("-").length<=2)||e.preventDefault())}nudgeNumberValue(e,t){if(t instanceof KeyboardEvent&&t.repeat)return;let i=this.maxString?parseFloat(this.maxString):null,p=this.minString?parseFloat(this.minString):null,r=150;this.incrementOrDecrementNumberValue(e,i,p,t),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let u=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{if(u){u=!1;return}this.incrementOrDecrementNumberValue(e,i,p,t)},r)}nudgeButtonPointerUpHandler(e){V(e)&&window.clearInterval(this.nudgeNumberValueIntervalId)}nudgeButtonPointerOutHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}nudgeButtonPointerDownHandler(e){if(!V(e))return;e.preventDefault();let t=e.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(t,e)}syncHiddenFormInput(e){ne("number",this,e)}setInputNumberValue(e){this.childNumberRef.value&&(this.childNumberRef.value.value=e)}setPreviousEmittedNumberValue(e){this.previousEmittedNumberValue=this.normalizeValue(e)}normalizeValue(e){return f(e)?e:""}setPreviousNumberValue(e){this.previousValue=this.normalizeValue(e)}setNumberValue({committing:e=!1,nativeEvent:t,origin:i,previousValue:p,value:r}){n.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let u=this.previousValue?.length>r.length||this.value?.length>r.length,o=this.integer?r.replace(/[e.]/g,""):r,m=o.charAt(o.length-1)===".",v=o.charAt(0)==="-",h=o.match(/^-?(0+)\d/),g=m&&u?o:Y(o),b=r&&!g?f(this.previousValue)?this.previousValue:"":g,l=n.localize(b);i!=="connected"&&!m&&(l=J(l,b,n)),m&&u&&(l=`${l}${n.decimal}`),h&&(l=`${v?l.charAt(0):""}${n.localize("0").repeat(h[1].length)}${v?l.slice(1):l}`),this.displayedValue=l,this.setPreviousNumberValue(p??this.value),this.previousValueOrigin=i,this.userChangedValue=i==="user"&&this.value!==b;let E=["-","."].includes(b)?"":b;this.value=E;let oe=new Set(["e","E",n.decimal,n.minusSign,n.group,...n.digits]),I=this.childNumberRef.value?.value;if(I){let z=Array.from(I).filter(le=>oe.has(le)).join("");z!==I&&this.setInputNumberValue(z)}i==="direct"&&(this.setInputNumberValue(l),this.setPreviousEmittedNumberValue(E)),t&&(this.calciteInputNumberInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue=n.localize(this.previousValue)):e&&this.emitChangeIfUserModified())}inputNumberKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(e){e&&!f(e)&&console.warn(`The specified value "${e}" cannot be parsed, or is out of range.`)}render(){let e=P(this.el),t=c`<div class=${s(a.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,i=c`<button .ariaLabel=${this.messages.clear} class=${s(a.clearButton)} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon .icon=${B.clear} .scale=${y(this.scale)}></calcite-icon></button>`,p=c`<calcite-icon class=${s(a.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${y(this.scale)}></calcite-icon>`,r=this.numberButtonType==="horizontal",u=c`<button aria-hidden=true class=${s({[a.numberButtonItem]:!0,[a.buttonItemHorizontal]:r})} data-adjustment=${re.up} .disabled=${this.disabled||this.readOnly} @pointerdown=${this.nudgeButtonPointerDownHandler} @pointerout=${this.nudgeButtonPointerOutHandler} @pointerup=${this.nudgeButtonPointerUpHandler} tabindex=-1 type=button><calcite-icon .icon=${B.chevronUp} .scale=${y(this.scale)}></calcite-icon></button>`,o=c`<button aria-hidden=true class=${s({[a.numberButtonItem]:!0,[a.buttonItemHorizontal]:r})} data-adjustment=${re.down} .disabled=${this.disabled||this.readOnly} @pointerdown=${this.nudgeButtonPointerDownHandler} @pointerout=${this.nudgeButtonPointerOutHandler} @pointerup=${this.nudgeButtonPointerUpHandler} tabindex=-1 type=button><calcite-icon .icon=${B.chevronDown} .scale=${y(this.scale)}></calcite-icon></button>`,m=c`<div class=${s(a.numberButtonWrapper)}>${u}${o}</div>`,v=c`<div class=${s(a.prefix)}>${this.prefixText}</div>`,h=c`<div class=${s(a.suffix)}>${this.suffixText}</div>`,g=R("localized-input",c`<input aria-errormessage=${ae.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${ee(this)} autocomplete=${this.autocomplete??d} .autofocus=${this.el.autofocus} value=${this.defaultValue??d} .disabled=${this.disabled} enterkeyhint=${this.el.enterKeyHint??d} inputmode=${(this.el.inputMode||"decimal")??d} maxlength=${this.maxLength??d} minlength=${this.minLength??d} name=${d} @blur=${this.inputNumberBlurHandler} @focus=${this.inputNumberFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputNumberKeyUpHandler} placeholder=${(this.placeholder||"")??d} .readOnly=${this.readOnly} .required=${this.required} type=text .value=${C(this.displayedValue??"")} ${w(this.childNumberRef)}>`);return this.interactiveContainer({disabled:this.disabled,children:c`${this.labelText&&te({labelText:this.labelText,onClick:this.onLabelClick,required:this.required,tooltipText:this.messages.required})||""}<div class=${s({[a.inputWrapper]:!0,[O.rtl]:e==="rtl",[a.hasSuffix]:this.suffixText,[a.hasPrefix]:this.prefixText,[a.clearable]:this.isClearable})} ${w(this.inputWrapperRef)}>${this.numberButtonType==="horizontal"&&!this.readOnly?o:null}${this.prefixText?v:null}<div class=${s(a.wrapper)}>${g}${this.isClearable?i:null}${this.requestedIcon?p:null}${this.loading?t:null}</div><div class=${s(a.actionWrapper)} ${w(this.actionWrapperRef)}><slot name=${se.action}></slot></div>${this.numberButtonType==="vertical"&&!this.readOnly?m:null}${this.suffixText?h:null}${this.numberButtonType==="horizontal"&&!this.readOnly?u:null}${q({component:this})}</div>${this.validationMessage&&this.status==="invalid"?ie({icon:this.validationIcon,id:ae.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};F("calcite-input-number",H);export{H as InputNumber};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{a as R}from"./Z5GIWALZ.js";import{a as O}from"./5USXQ2PA.js";import{c as q,d as M,e as E}from"./TF62JD6A.js";import{c as I,e as z,h as F}from"./XM6ZS6NL.js";import{a as S}from"./JDOBRO6Y.js";import{a as C}from"./D2BIPE73.js";import{a as L}from"./F327VYUC.js";import"./ZMUA6AOW.js";import"./6PU3J3IP.js";import"./AHSC4NMW.js";import"./ABO7NKZD.js";import{a as V}from"./UUPPUJNG.js";import{B as y,E as $,F as s,G as x,H as o,J as k,Q as w,g as b,h as l,p as f}from"./BK3V4SS7.js";var T=({full:h,scale:e,partial:t})=>l`<calcite-icon class=${s(t?void 0:"icon")} .icon=${h?"star-f":"star"} .scale=${e}></calcite-icon>`,n={fieldSet:"fieldset",star:"star",fraction:"fraction",numberAverage:"number--average",numberCount:"number--count",wrapper:"wrapper",visuallyHidden:"visually-hidden"},D="calcite-ratings",v={validationMessage:"validationMessage",host:h=>`${D}-${h}`},K=b`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([read-only]) *,:host([disabled]) *,:host([read-only]) ::slotted(*),:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;align-items:center;inline-size:fit-content}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){block-size:1.5rem;--calcite-internal-rating-spacing: .25rem}:host([scale=m]){block-size:2rem;--calcite-internal-rating-spacing: .5rem}:host([scale=l]){block-size:2.75rem;--calcite-internal-rating-spacing: .75rem}.fieldset{margin:0;display:flex;border-width:0;padding:0;align-items:center;gap:var(--calcite-rating-spacing, var(--calcite-internal-rating-spacing))}.wrapper{display:inline-block}.star{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;position:relative;display:flex;flex-direction:column;cursor:pointer;color:var(--calcite-rating-color, var(--calcite-color-border-input))}.star:hover{color:var(--calcite-rating-color-hover, var(--calcite-color-brand-hover))}.star:active{color:var(--calcite-rating-color-press, var(--calcite-color-brand-press))}.star:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.average,.fraction{color:var(--calcite-rating-average-color, var(--calcite-color-status-warning))}.hovered,.selected{color:var(--calcite-rating-color, var(--calcite-color-brand))}.fraction{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;position:absolute;pointer-events:none;inset-block-start:0;overflow:hidden;inset-inline-start:0}calcite-chip{pointer-events:none;cursor:default}.number--average{font-weight:700;color:var(--calcite-rating-average-text-color)}.number--count{color:var(--calcite-rating-count-text-color, var(--calcite-color-text-2));font-style:italic}.number--count:not(:first-child){margin-inline-start:var(--calcite-rating-spacing, var(--calcite-internal-rating-spacing))}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}.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}`,m=class extends ${constructor(){super(),this.emit=!1,this.guid=v.host(V()),this.isKeyboardInteraction=!0,this.labelElements=[],this.max=5,this._value=0,this.messages=C({blocking:!0}),this.focusSetter=L()(this),this.interactiveContainer=S(this),this.disabled=!1,this.readOnly=!1,this.required=!1,this.scale="m",this.showChip=!1,this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteRatingChange=f({cancelable:!1}),this.listen("keydown",this.handleHostKeyDown),this.listen("pointerout",this.handleRatingPointerOut),this.listen("pointerover",this.handleRatingPointerOver)}static{this.properties={hoverValue:[16,{},{state:!0}],average:[11,{},{reflect:!0,type:Number}],count:[11,{},{reflect:!0,type:Number}],disabled:[7,{},{reflect:!0,type:Boolean}],form:[3,{},{reflect:!0}],labelText:1,messageOverrides:[0,{},{attribute:!1}],name:[3,{},{reflect:!0}],readOnly:[7,{},{reflect:!0,type:Boolean}],required:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],showChip:[7,{},{reflect:!0,type:Boolean}],status:[3,{},{reflect:!0}],validationIcon:[3,{converter:k,type:String},{reflect:!0}],validationMessage:1,validity:[0,{},{attribute:!1}],value:[11,{},{reflect:!0,type:Number}]}}static{this.styles=K}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.hasUpdated&&this.handleValueUpdate(e))}async setFocus(e){return this.focusSetter(()=>this.el,e)}connectedCallback(){super.connectedCallback(),q(this),I(this)}async load(){this.requestUpdate("value")}willUpdate(){this.starsMap=Array.from({length:this.max},(e,t)=>{let a=t+1,i=!this.hoverValue&&this.average&&!this.value&&a<=this.average,u=a===this.value,r=this.average&&this.average+1-a,c=a<=this.hoverValue,p=`${this.guid}-${a}`,d=!this.hoverValue&&!this.value&&!c&&r>0&&r<1,g=this.value>=a,P=this.getTabIndex(a);return{average:i,checked:u,fraction:r,hovered:c,id:p,partial:d,selected:g,value:a,tabIndex:P}})}loaded(){this.labelElements=Array.from(this.renderRoot.querySelectorAll("label"))}disconnectedCallback(){super.disconnectedCallback(),M(this),z(this)}handleValueUpdate(e){this.hoverValue=e,this.emit&&this.calciteRatingChange.emit(),this.emit=!1}onLabelClick(){this.setFocus()}handleRatingPointerOver(){this.isKeyboardInteraction=!1}handleRatingPointerOut(){this.isKeyboardInteraction=!0,this.hoverValue=null}handleHostKeyDown(){this.isKeyboardInteraction=!0}handleLabelKeyDown(e){let t=this.getValueFromLabelEvent(e),a=e.key,i=a==" "?void 0:Number(a);if(this.emit=!0,isNaN(i))switch(a){case"Enter":case" ":this.value=!this.required&&this.value===t?0:t;break;case"ArrowLeft":this.value=this.getPreviousRatingValue(t),this.updateFocus(),e.preventDefault();break;case"ArrowRight":this.value=this.getNextRatingValue(t),this.updateFocus(),e.preventDefault();break;case"Tab":this.hoverValue=null;break}else!this.required&&i>=0&&i<=this.max?this.value=i:this.required&&i>0&&i<=this.max&&(this.value=i),this.updateFocus()}handleInputChange(e){if(this.isKeyboardInteraction===!0){let t=Number(e.target.value);this.hoverValue=t,this.value=t}}handleLabelPointerOver(e){this.hoverValue=this.getValueFromLabelEvent(e)}handleLabelPointerDown(e){let t=e.currentTarget,a=this.getValueFromLabelEvent(e);this.hoverValue=a,this.emit=!0,this.value=!this.required&&this.value===a?0:a,t.focus()}handleLabelClick(e){e.preventDefault()}handleLabelFocus(e){let t=this.getValueFromLabelEvent(e);this.hoverValue=t}updateFocus(){this.hoverValue=this.value,this.labelElements[this.value-1].focus()}getTabIndex(e){return this.readOnly||this.value!==e&&(this.value||e!==1)?-1:0}getValueFromLabelEvent(e){let t=e.currentTarget;return Number(t.getAttribute("data-value"))}getNextRatingValue(e){return e===5?1:e+1}getPreviousRatingValue(e){return e===1?5:e-1}render(){let e=this.count?.toString();return this.interactiveContainer({disabled:this.disabled,children:l`<span class=${s(n.wrapper)}>${this.labelText&&O({labelText:this.labelText,onClick:this.onLabelClick,required:this.required,tooltipText:this.messages.required})||""}<fieldset class=${s(n.fieldSet)} .disabled=${this.disabled}><legend class=${s(n.visuallyHidden)}>${this.messages.rating}</legend>${this.starsMap.map(({average:t,checked:a,fraction:i,hovered:u,id:r,partial:c,selected:p,value:d,tabIndex:g})=>l`<label class=${s({[n.star]:!0,selected:p,hovered:u,average:t,partial:c})} data-value=${d??o} for=${r??o} @click=${this.handleLabelClick} @focus=${this.handleLabelFocus} @keydown=${this.handleLabelKeyDown} @pointerdown=${this.handleLabelPointerDown} @pointerover=${this.handleLabelPointerOver} tabindex=${g??o}><input aria-errormessage=${v.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${E(this)} .ariaRequired=${this.required} .checked=${a} class=${s(n.visuallyHidden)} .disabled=${this.disabled||this.readOnly} id=${r??o} name=${this.guid??o} @change=${this.handleInputChange} tabindex=-1 type=radio .value=${y(d??"")}>${T({full:p||t||u,scale:this.scale})}${c&&l`<div class=${s(n.fraction)} style=${x({width:`${i*100}%`})}>${T({full:!0,partial:!0,scale:this.scale})}</div>`||""}<span class=${s(n.visuallyHidden)}>${this.messages.stars.replace("{num}",`${d}`)}</span></label>`)}${(this.count||this.average)&&this.showChip?l`<calcite-chip .label=${e} .scale=${this.scale} .value=${e}>${!!this.average&&l`<span class=${s(n.numberAverage)}>${this.average.toString()}</span>`||""}${!!this.count&&l`<span class=${s(n.numberCount)}>(${e})</span>`||""}</calcite-chip>`:null}</fieldset>${F({component:this})}${this.validationMessage&&this.status==="invalid"?R({icon:this.validationIcon,id:v.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}</span>`})}};w("calcite-rating",m);export{m as Rating};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{c as O,e as w}from"./AHSC4NMW.js";import{a as x,b as E,c as h,d as u,e as C,f as P,o as f,q as v}from"./BK3V4SS7.js";var L=e=>(...r)=>{let t=u(),o=new e(...r),s=o.exports;h(t.at(-1));let n=o.component.manager;n.W(o,s),o.watchExports(n.W.bind(n,o)),C(o);let a=[o.component,...t].reverse();return f(a,i=>i===void 0?void 0:D(o,i,s),s)},D=(e,{host:r,key:t,isReactive:o},s)=>{let n=r,a=n[t]!==e.exports,i=n[t]!==s,c=s!==e.exports;if(a&&!i&&c&&(n[t]=e.exports),r===e.component){if(o){let p=e.component.manager;i&&p.W(e,n[t]),e.onUpdate(m=>{if(m.has(t)){let b=n[t];b!==e.exports&&p.W(e,b)}})}e.O=o?void 0:t}let d=e.component.constructor.elementProperties.get(t)?.readOnly;e.watchExports(()=>{n[t]!==e.exports&&(d?P(()=>{n[t]=e.exports}):n[t]=e.exports)})};var M=e=>_(void 0,e),z=e=>r=>_(r,e),g=class extends v{constructor(r,t){super(r);let o=this.exports;try{E(this.component);let s=t(this.component,this),n=this.exports!==o;if(x(s)){n||this.setProvisionalExports(s);let a=s.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await a)}else(!n||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this.P.reject(s)}}catchUpLifecycle(){}},_=L(g),B=(e,r)=>new y(e,r),y=class extends v{#e;#t;#o;constructor(r,t){super(),!!1&&(this.#t=r,this.#o=t,this.#e=new MutationObserver(o=>{o.forEach(s=>{r.includes(s.attributeName)&&t.call(this.component,this.component.el.getAttribute(s.attributeName),s.oldValue,s.attributeName)})}))}hostConnected(){this.#t.forEach(r=>{this.component.el.hasAttribute(r)&&this.#o.call(this.component,null,this.component.el.getAttribute(r),r)}),this.#e.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this.#t})}hostDisconnected(){this.#e.disconnect()}};var J=e=>(...r)=>{let t=u(),o=new e(...r);return h(t.at(-1)),o};var Q=e=>(r={})=>M((t,o)=>{let s=O(t.el),n={_lang:s.lang,_t9nLocale:s.t9nLocale,_loading:!0},a=t;o.onLifecycle(()=>w(t.el,()=>e("./assets"),({t9nLocale:c,t9nStrings:l,lang:d})=>{let p={...l,_lang:d,_t9nLocale:c,_loading:!1};o.exports=p;let m=l.componentLabel;typeof m=="string"&&"label"in t&&t.label==null&&(t.label??=m),i(a.messageOverrides)},r.name));let i=c=>{let l=o.exports,d=l._original??l,p=N(d,c);c&&(p._original=d),o.exports=p};return"messageOverrides"in a&&o.onUpdate(c=>{c.has("messageOverrides")&&i(a.messageOverrides)}),r.blocking?(o.setProvisionalExports(n,!1),o.ready):n}),N=(e,r)=>{if(!r)return e;let t={...e};return Object.entries(r).forEach(([o,s])=>{e[o]!==void 0&&(typeof s=="object"?t[o]=N(e[o],s):t[o]=s??e[o])}),t};export{M as a,z as b,B as c,J as d,Q as e};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{a as i}from"./5USXQ2PA.js";import{c as k,d as f,e as x}from"./TF62JD6A.js";import{c as m,e as p,h as u}from"./XM6ZS6NL.js";import{a as g}from"./JDOBRO6Y.js";import{a as v}from"./IZ4LDJ5Z.js";import{a as b}from"./F327VYUC.js";import"./ZMUA6AOW.js";import"./6PU3J3IP.js";import"./AHSC4NMW.js";import"./ABO7NKZD.js";import"./UUPPUJNG.js";import{C as s,D as o,E as d,F as t,Q as h,g as c,h as l,p as r}from"./BK3V4SS7.js";var a={container:"container",track:"track",handle:"handle"},w=c`: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([scale=s]) .container{block-size:.75rem}:host([scale=s]) .track{block-size:.75rem;inline-size:1.5rem}:host([scale=s]) .handle{block-size:.5rem;inline-size:.5rem}:host([scale=m]) .container{block-size:1rem}:host([scale=m]) .track{block-size:1rem;inline-size:2rem}:host([scale=m]) .handle{block-size:.75rem;inline-size:.75rem}:host([scale=l]) .container{block-size:1.5rem}:host([scale=l]) .track{block-size:1.5rem;inline-size:3rem}:host([scale=l]) .handle{block-size:1.25rem;inline-size:1.25rem}:host{position:relative;display:inline-block;inline-size:auto;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{outline-width:0px;display:flex}.track{pointer-events:none;position:relative;box-sizing:border-box;display:inline-block;vertical-align:top;outline-color:transparent;border-radius:var(--calcite-switch-corner-radius, 9999px);border-color:var(--calcite-switch-border-color);background-color:var(--calcite-switch-background-color, var(--calcite-color-border-input))}.container:focus .track{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container:hover .track{background-color:var(--calcite-switch-background-color-hover, var(--calcite-color-text-3))}.handle{pointer-events:none;position:absolute;display:block;transition-property:all;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);inset-block-start:var(--calcite-spacing-base);inset-inline:var(--calcite-spacing-base) auto;background-color:var(--calcite-switch-handle-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-switch-handle-border-color);border-radius:var(--calcite-switch-corner-radius, 9999px);box-shadow:var(--calcite-switch-handle-shadow)}:host([checked]) .track{background-color:var(--calcite-switch-background-color, var(--calcite-color-brand))}:host([checked]) .handle{inset-inline:auto var(--calcite-spacing-base)}:host([checked]):host(:hover:not([disabled])) .track{background-color:var(--calcite-switch-background-color-hover, var(--calcite-color-brand-hover))}@media(forced-colors:active){:host([checked]) .track{background-color:canvasText}}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}::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}`,n=class extends d{constructor(){super(),this.switchRef=s(),this.focusSetter=b()(this),this.interactiveContainer=g(this),this.checked=!1,this.disabled=!1,this.scale="m",this.calciteSwitchChange=r({cancelable:!1}),this.listen("click",this.clickHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={checked:[7,{},{reflect:!0,type:Boolean}],disabled:[7,{},{reflect:!0,type:Boolean}],form:[3,{},{reflect:!0}],label:1,labelTextEnd:1,labelTextStart:1,name:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}],value:1}}static{this.styles=w}async setFocus(e){return this.focusSetter(()=>this.switchRef.value,e)}connectedCallback(){super.connectedCallback(),k(this),m(this)}disconnectedCallback(){super.disconnectedCallback(),f(this),p(this)}syncHiddenFormInput(e){e.type="checkbox"}keyDownHandler(e){!this.disabled&&v(e.key)&&(this.toggle(),e.preventDefault())}onLabelClick(){this.disabled||(this.toggle(),this.setFocus())}toggle(){this.checked=!this.checked,this.calciteSwitchChange.emit()}clickHandler(){this.disabled||this.toggle()}render(){return this.interactiveContainer({disabled:this.disabled,children:l`<div .ariaChecked=${this.checked} .ariaLabel=${x(this)} class=${t(a.container)} role=switch tabindex=0 ${o(this.switchRef)}>${this.labelTextStart&&i({alignmentCenter:!0,bottomSpacingDisabled:!0,labelText:this.labelTextStart,spacingInlineEnd:!0})||""}<div class=${t(a.track)}><div class=${t(a.handle)}></div></div>${this.labelTextEnd&&i({alignmentCenter:!0,bottomSpacingDisabled:!0,labelText:this.labelTextEnd,spacingInlineStart:!0})||""}${u({component:this})}</div>`})}};h("calcite-switch",n);export{n as Switch};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{a as p}from"./JDOBRO6Y.js";import{a as b}from"./F327VYUC.js";import"./ZMUA6AOW.js";import"./6PU3J3IP.js";import"./AHSC4NMW.js";import"./ABO7NKZD.js";import"./UUPPUJNG.js";import{C as s,D as c,E as r,F as n,H as d,Q as u,g as o,h as i}from"./BK3V4SS7.js";var k={button:"button"},R={plus:"plus"},S=o`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}calcite-button{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-corner-radius: var(--calcite-fab-corner-radius);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}:host([hidden]){display:none}[hidden]{display:none}`,e=class extends r{constructor(){super(...arguments),this.buttonRef=s(),this.focusSetter=b()(this),this.interactiveContainer=p(this),this.appearance="solid",this.disabled=!1,this.icon=R.plus,this.iconFlipRtl=!1,this.kind="brand",this.loading=!1,this.scale="m",this.textEnabled=!1}static{this.properties={appearance:[3,{},{reflect:!0}],disabled:[7,{},{reflect:!0,type:Boolean}],icon:[3,{type:String},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],kind:[3,{},{reflect:!0}],label:1,loading:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],text:1,textEnabled:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=S}async setFocus(t){return this.focusSetter(()=>this.buttonRef.value,t)}render(){let{appearance:t,kind:h,disabled:a,loading:f,scale:x,textEnabled:m,icon:y,label:l,text:v,iconFlipRtl:g}=this,$=m?null:l||v||null;return this.interactiveContainer({disabled:a,children:i`<calcite-button .appearance=${t==="solid"?"solid":"outline-fill"} class=${n(k.button)} .disabled=${a} .iconFlipRtl=${g?"start":null} .iconStart=${y} .kind=${h} .label=${l} .loading=${f} round .scale=${x} title=${$??d} type=button width=auto ${c(this.buttonRef)}>${this.textEnabled?this.text:null}</calcite-button>`})}};u("calcite-fab",e);export{e as Fab};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{a as O}from"./Z5GIWALZ.js";import{a as S}from"./5USXQ2PA.js";import{c as N,d as k,e as T}from"./TF62JD6A.js";import{c as E,e as C,f as y,h as I}from"./XM6ZS6NL.js";import{a as z}from"./JDOBRO6Y.js";import{a as b}from"./YPUDWAIO.js";import{a as x}from"./D2BIPE73.js";import{a as w}from"./F327VYUC.js";import{a as g}from"./ZMUA6AOW.js";import"./6PU3J3IP.js";import"./AHSC4NMW.js";import"./ABO7NKZD.js";import"./UUPPUJNG.js";import{C as p,D as v,E as u,F as l,J as m,Q as f,g as d,h as r,p as h}from"./BK3V4SS7.js";var L=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:flex;flex-direction:column;font-size:var(--calcite-select-font-size);font-weight:var(--calcite-internal-select-font-weight, var(--calcite-font-weight-regular))}.wrapper{position:relative;display:flex;align-items:stretch;inline-size:var(--select-width);block-size:var(--calcite-internal-select-block-size, 32px)}.wrapper:focus-within .icon,.wrapper:active .icon,.wrapper:hover .icon{color:var(--calcite-select-icon-color-hover, var(--calcite-color-text-1))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){--calcite-internal-select-font-size: var(--calcite-font-size-relative-sm);--calcite-select-spacing-inline: .5rem 2rem;--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-sm);--calcite-internal-select-block-size: 24px}:host([scale=m]){--calcite-internal-select-font-size: var(--calcite-font-size-relative-base);--calcite-select-spacing-inline: .75rem 2.5rem;--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-md)}:host([scale=l]){--calcite-internal-select-font-size: var(--calcite-font-size-relative-md);--calcite-select-spacing-inline: 1rem 3rem;--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-lg);--calcite-internal-select-block-size: 44px}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}.select{margin:0;box-sizing:border-box;inline-size:100%;cursor:pointer;appearance:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-style:solid;font-family:inherit;outline-color:transparent;font-weight:inherit;font-size:var(--calcite-select-font-size, var(--calcite-internal-select-font-size));color:var(--calcite-select-text-color, var(--calcite-color-text-2));border-color:var(--calcite-select-border-color, var(--calcite-color-border-input));border-width:var(--calcite-select-internal-border-width, var(--calcite-border-width-sm));padding-inline:var(--calcite-select-spacing-inline);padding-block:var(--calcite-internal-select-spacing-block);border-inline-end-width:0;line-height:var(--calcite-internal-select-line-height, normal);background-color:var(--calcite-select-background-color, var(--calcite-color-foreground-1));border-radius:var(--calcite-select-corner-radius, var(--calcite-corner-radius-none));box-shadow:var(--calcite-select-shadow, var(--calcite-shadow-small))}.select:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}select:disabled{border-color:var(--calcite-color-border-input);--tw-bg-opacity: 1}.icon-container{pointer-events:none;position:absolute;inset-block:0px;display:flex;align-items:center;border-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:transparent;color:var(--calcite-color-text-2);inset-inline-end:0px;border-start-start-radius:var(--calcite-select-corner-radius, var(--calcite-corner-radius-none));border-start-end-radius:var(--calcite-select-corner-radius, var(--calcite-corner-radius-none));border-end-start-radius:var(--calcite-select-corner-radius, var(--calcite-corner-radius-none));border-end-end-radius:var(--calcite-select-corner-radius, var(--calcite-corner-radius-none));border-color:var(--calcite-select-border-color, var(--calcite-color-border-input));border-inline-width:0 var(--calcite-select-internal-icon-border-inline-end-width, var(--calcite-border-width-sm));padding-inline:var(--calcite-internal-select-icon-container-padding-inline)}.icon-container .icon{color:var(--calcite-select-icon-color, var(--calcite-color-text-3))}:host([status=invalid]) select,:host([status=invalid]) .icon-container{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) select:focus,:host([status=invalid]) .icon-container:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.select:focus~.icon-container{border-color:transparent}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}.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}`,c={icon:"icon",iconContainer:"icon-container",select:"select",wrapper:"wrapper"},$={validationMessage:"selectValidationMessage"};function s(n){return n.tagName==="CALCITE-OPTION"}function A(n){return n.tagName==="CALCITE-OPTION-GROUP"}var o=class extends u{constructor(){super(),this.componentToNativeEl=new Map,this.mutationObserver=b("mutation",()=>this.populateInternalSelect()),this.selectRef=p(),this.messages=x(),this.focusSetter=w()(this),this.interactiveContainer=z(this),this.disabled=!1,this.required=!1,this.scale="m",this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.value=null,this.width="auto",this.calciteSelectChange=h({cancelable:!1}),this.listen("calciteInternalOptionChange",this.handleOptionOrGroupChange),this.listen("calciteInternalOptionGroupChange",this.handleOptionOrGroupChange)}static{this.properties={disabled:[7,{},{reflect:!0,type:Boolean}],form:[3,{},{reflect:!0}],label:1,labelText:1,name:[3,{},{reflect:!0}],required:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],selectedOption:[0,{},{attribute:!1}],status:[3,{},{reflect:!0}],validationIcon:[3,{converter:m,type:String},{reflect:!0}],validationMessage:1,validity:[0,{},{attribute:!1}],value:1,width:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}]}}static{this.styles=L}async setFocus(e){return this.focusSetter(()=>this.selectRef.value,e)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{subtree:!0,childList:!0}),N(this),E(this)}willUpdate(e){e.has("value")&&(this.hasUpdated||this.value!==null)&&this.updateItemsFromValue(this.value),e.has("selectedOption")&&(this.value=this.selectedOption?.value)}loaded(){typeof this.value=="string"&&this.updateItemsFromValue(this.value),this.populateInternalSelect();let e=this.selectRef.value?.selectedOptions[0];this.selectFromNativeOption(e),y(this,this.selectedOption?.value??"")}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),k(this),C(this)}handleInternalSelectChange(){let e=this.selectRef.value.selectedOptions[0];this.selectFromNativeOption(e),requestAnimationFrame(()=>this.emitChangeEvent())}handleOptionOrGroupChange(e){e.stopPropagation();let t=e.target,i=this.componentToNativeEl.get(t);i&&(this.updateNativeElement(t,i),s(t)&&t.selected&&(this.deselectAllExcept(t),this.selectedOption=t))}onLabelClick(){this.setFocus()}updateItemsFromValue(e){this.el.querySelectorAll("calcite-option").forEach(t=>t.selected=t.value===e)}updateNativeElement(e,t){if(t.disabled=e.disabled,t.label=e.label,s(e)){let i=t;i.selected=e.selected,i.value=e.value,i.innerText=e.label}}populateInternalSelect(){let e=Array.from(this.el.children).filter(t=>t.tagName==="CALCITE-OPTION"||t.tagName==="CALCITE-OPTION-GROUP");this.clearInternalSelect(),e.forEach(t=>this.selectRef.value?.append(this.toNativeElement(t)))}clearInternalSelect(){this.componentToNativeEl.forEach(e=>e.remove()),this.componentToNativeEl.clear()}selectFromNativeOption(e){if(!e)return;let t;this.componentToNativeEl.forEach((i,a)=>{s(a)&&i===e&&(a.selected=!0,t=a,this.deselectAllExcept(a))}),t&&(this.selectedOption=t)}toNativeElement(e){if(s(e)){let t=document.createElement("option");return this.updateNativeElement(e,t),this.componentToNativeEl.set(e,t),t}if(A(e)){let t=document.createElement("optgroup");return this.updateNativeElement(e,t),Array.from(e.children).forEach(i=>{let a=this.toNativeElement(i);t.append(a),this.componentToNativeEl.set(e,a)}),this.componentToNativeEl.set(e,t),t}throw new Error("unsupported element child provided")}deselectAllExcept(e){this.el.querySelectorAll("calcite-option").forEach(t=>{t!==e&&(t.selected=!1)})}emitChangeEvent(){this.calciteSelectChange.emit()}renderChevron(){return r`<div class=${l(c.iconContainer)}><calcite-icon class=${l(c.icon)} icon=chevron-down .scale=${g(this.scale)}></calcite-icon></div>`}render(){let{disabled:e}=this;return this.interactiveContainer({disabled:e,children:r`${this.labelText&&S({labelText:this.labelText,onClick:this.onLabelClick,required:this.required,tooltipText:this.messages.required})||""}<div class=${l(c.wrapper)}><select aria-errormessage=${$.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${T(this)} class=${l(c.select)} .disabled=${e} @change=${this.handleInternalSelectChange} .required=${this.required} ${v(this.selectRef)}><slot></slot></select>${this.renderChevron()}${I({component:this})}</div>${this.validationMessage&&this.status==="invalid"?O({icon:this.validationIcon,id:$.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};f("calcite-select",o);export{o as Select};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{a as p}from"./YPUDWAIO.js";import{a as g}from"./F327VYUC.js";import"./ZMUA6AOW.js";import"./6PU3J3IP.js";import"./AHSC4NMW.js";import{A as w}from"./ABO7NKZD.js";import"./UUPPUJNG.js";import{C as d,D as m,E as f,F as h,Q as u,g as c,h as l}from"./BK3V4SS7.js";var n={frame:"frame",frameAdvancing:"frame--advancing",frameRetreating:"frame--retreating"},b=c`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;align-items:stretch;overflow:hidden;background-color:transparent}:host .frame{position:relative;margin:0;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;padding:0;animation-name:none;animation-duration:var(--calcite-animation-timing);background-color:var(--calcite-flow-background-color)}:host ::slotted(*){display:none;block-size:100%}:host ::slotted(*[selected]){display:flex}:host .frame--advancing{animation-name:calcite-frame-advance}:host .frame--retreating{animation-name:calcite-frame-retreat}@keyframes calcite-frame-advance{0%{--tw-bg-opacity: .5;transform:translate3d(50px,0,0)}to{--tw-bg-opacity: 1;transform:translateZ(0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity: .5;transform:translate3d(-50px,0,0)}to{--tw-bg-opacity: 1;transform:translateZ(0)}}:host([hidden]){display:none}[hidden]{display:none}`,r=class extends f{constructor(){super(),this.frameRef=d(),this.itemMutationObserver=p("mutation",()=>this.updateItemsAndProps()),this.items=[],this.selectedIndex=-1,this.focusSetter=g()(this),this.flowDirection="standby",this.listen("calciteInternalFlowItemChange",this.handleCalciteInternalFlowItemChange),this.listen("calciteFlowItemBack",this.handleItemBackClick)}static{this.properties={flowDirection:[16,{},{state:!0}],customItemSelectors:1}}static{this.styles=b}async back(){let{items:e,selectedIndex:i}=this,t=e[i],a=e[i-1];if(!t||!a)return;let s=t.beforeBack?t.beforeBack:()=>Promise.resolve();try{await s.call(t)}catch{return}return t.selected=!1,a.selected=!0,a}async setFocus(e){return this.focusSetter(()=>this.items[this.selectedIndex],e)}connectedCallback(){super.connectedCallback(),this.itemMutationObserver?.observe(this.el,{childList:!0,subtree:!0})}willUpdate(e){e.has("flowDirection")&&(this.hasUpdated||this.flowDirection!=="standby")&&this.handleFlowDirectionChange(this.flowDirection)}loaded(){this.updateItemsAndProps()}disconnectedCallback(){super.disconnectedCallback(),this.itemMutationObserver?.disconnect()}async handleFlowDirectionChange(e){e==="standby"||!this.frameRef.value||(await w(this.frameRef.value,e==="retreating"?"calcite-frame-retreat":"calcite-frame-advance"),this.resetFlowDirection())}handleCalciteInternalFlowItemChange(e){e.stopPropagation(),this.updateFlowProps()}async handleItemBackClick(e){if(!e.defaultPrevented)return await this.back(),this.setFocus()}resetFlowDirection(){this.flowDirection="standby"}getFlowDirection(e,i){let t=e>0;return!(e>-1&&i>0)&&!t?"standby":i<e?"retreating":"advancing"}updateItemsAndProps(){let{customItemSelectors:e,el:i}=this,t=Array.from(i.querySelectorAll(`calcite-flow-item${e?`,${e}`:""}`)).filter(a=>a.closest("calcite-flow")===i);this.items=t,this.ensureSelectedFlowItemExists(),this.updateFlowProps()}updateFlowProps(){let{selectedIndex:e,items:i}=this,t=this.findSelectedFlowItemIndex(i);i.forEach((a,s)=>{let o=s===t;o||(a.menuOpen=!1),a.showBackButton=o&&t>0}),t!==-1&&(e!==t&&(this.flowDirection=this.getFlowDirection(e,t)),this.selectedIndex=t)}findSelectedFlowItemIndex(e){let i=e.slice(0).reverse().find(t=>!!t.selected);return e.indexOf(i)}ensureSelectedFlowItemExists(){let{items:e}=this;if(this.findSelectedFlowItemIndex(e)!==-1)return;let t=e[e.length-1];t&&(t.selected=!0)}render(){let{flowDirection:e}=this,i={[n.frame]:!0,[n.frameAdvancing]:e==="advancing",[n.frameRetreating]:e==="retreating"};return l`<div class=${h(i)} ${m(this.frameRef)}><slot></slot></div>`}};u("calcite-flow",r);export{r as Flow};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{a as b,e as g}from"./
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{a as b,e as g}from"./ZJZQFACT.js";import"./BHN7LML7.js";import"./ABO7NKZD.js";import{a as p}from"./UUPPUJNG.js";import{E as r,F as t,G as a,H as c,Q as m,g as s,h as e}from"./BK3V4SS7.js";var i={firstTitle:"first-title",list:"list",label:"label",separator:"separator",title:"title",scale:l=>`scale--${l}`},h=s`.scale--s{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);--calcite-combobox-item-horizontal-spacing-unit: var(--calcite-spacing-sm);--calcite-combobox-item-vertical-spacing-unit: var(--calcite-spacing-xxs)}.scale--s .first-title{padding-block-start:var(--calcite-spacing-sm)}.scale--s .separator{margin-block:var(--calcite-combobox-item-vertical-spacing-unit);margin-inline-start:calc(var(--calcite-combobox-item-horizontal-spacing-unit) + var(--calcite-combobox-item-horizontal-spacing-unit) * var(--calcite-combobox-item-spacing-indent-multiplier));margin-inline-end:var(--calcite-combobox-item-horizontal-spacing-unit)}.scale--m{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);--calcite-combobox-item-horizontal-spacing-unit: var(--calcite-spacing-md);--calcite-combobox-item-vertical-spacing-unit: var(--calcite-spacing-xs)}.scale--m .first-title{padding-block-start:var(--calcite-spacing-md)}.scale--m .separator{margin-block:var(--calcite-combobox-item-vertical-spacing-unit);margin-inline-start:calc(var(--calcite-combobox-item-horizontal-spacing-unit) + var(--calcite-combobox-item-horizontal-spacing-unit) * var(--calcite-combobox-item-spacing-indent-multiplier));margin-inline-end:var(--calcite-combobox-item-horizontal-spacing-unit)}.scale--l{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);--calcite-combobox-item-horizontal-spacing-unit: var(--calcite-spacing-lg);--calcite-combobox-item-vertical-spacing-unit: var(--calcite-spacing-sm-plus)}.scale--l .first-title{padding-block-start:var(--calcite-spacing-xl)}.scale--l .separator{margin-block:var(--calcite-combobox-item-vertical-spacing-unit);margin-inline-start:calc(var(--calcite-combobox-item-horizontal-spacing-unit) + var(--calcite-combobox-item-horizontal-spacing-unit) * var(--calcite-combobox-item-spacing-indent-multiplier));margin-inline-end:var(--calcite-combobox-item-horizontal-spacing-unit)}:host,.list{margin:0;display:flex;flex-direction:column;padding:0}:host(:focus),.list:focus{outline:2px solid transparent;outline-offset:2px}.separator{block-size:var(--calcite-spacing-px);background-color:var(--calcite-combobox-item-group-border-color, var(--calcite-color-border-3))}.label{box-sizing:border-box;display:flex;inline-size:100%;min-inline-size:0px;max-inline-size:100%}.title{--calcite-combobox-item-indent-value: calc( var(--calcite-combobox-item-horizontal-spacing-unit) * var(--calcite-combobox-item-spacing-indent-multiplier) );border:0 solid;display:block;flex:1 1 0%;font-weight:var(--calcite-font-weight-bold);word-wrap:break-word;word-break:break-word;padding-block:var(--calcite-combobox-item-vertical-spacing-unit);padding-inline-start:calc(var(--calcite-combobox-item-indent-value) + var(--calcite-combobox-item-horizontal-spacing-unit));padding-inline-end:var(--calcite-combobox-item-horizontal-spacing-unit);color:var(--calcite-combobox-item-group-text-color, var(--calcite-color-text-1))}:host([hidden]){display:none}[hidden]{display:none}:host([item-hidden]){display:none}`,o=class extends r{constructor(){super(...arguments),this.guid=p(),this.afterEmptyGroup=!1,this.position=0,this.scale="m",this.itemHidden=!1}static{this.properties={afterEmptyGroup:[7,{},{reflect:!0,type:Boolean}],ancestors:[0,{},{attribute:!1}],label:1,position:[9,{},{type:Number}],scale:1,itemHidden:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=h}connectedCallback(){super.connectedCallback(),this.ancestors=b(this.el)}render(){let{el:d,scale:u}=this,n=g(d),v=this.position>0?e`<div class=${t(i.separator)} role=separator style=${a({"--calcite-combobox-item-spacing-indent-multiplier":`${n}`})}></div>`:null;return e`<ul aria-labelledby=${this.guid??c} class=${t({[i.list]:!0,[i.scale(u)]:!0})} role=group>${v}<li class=${t({[i.label]:!0})} id=${this.guid??c} role=presentation style=${a({"--calcite-combobox-item-spacing-indent-multiplier":`${n}`})}><span class=${t({[i.title]:!0,[i.firstTitle]:this.position===0})}>${this.label}</span></li><slot></slot></ul>`}};m("calcite-combobox-item-group",o);export{o as ComboboxItemGroup};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
4
|
var t={container:"container",actionsStart:"actions-start",contentStart:"content-start",content:"content",contentEnd:"content-end",actionsEnd:"actions-end"},n={actionsStart:"actions-start",contentStart:"content-start",contentEnd:"content-end",actionsEnd:"actions-end"};export{t as a,n as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{a as T}from"./
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{a as T}from"./UUPPUJNG.js";import{K as h}from"./BK3V4SS7.js";var P=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],b=P.join(","),I=typeof Element>"u",d=I?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,g=!I&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},v=function e(t,r){var n;r===void 0&&(r=!0);var a=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=a===""||a==="true",i=o||r&&t&&e(t.parentNode);return i},L=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},x=function(t,r,n){if(v(t))return[];var a=Array.prototype.slice.apply(t.querySelectorAll(b));return r&&d.call(t,b)&&a.unshift(t),a=a.filter(n),a},A=function e(t,r,n){for(var a=[],o=Array.from(t);o.length;){var i=o.shift();if(!v(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),l=s.length?s:i.children,u=e(l,!0,n);n.flatten?a.push.apply(a,u):a.push({scopeParent:i,candidates:u})}else{var f=d.call(i,b);f&&n.filter(i)&&(r||!t.includes(i))&&a.push(i);var c=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),B=!v(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&B){var S=e(c===!0?i.children:c.children,!0,n);n.flatten?a.push.apply(a,S):a.push({scopeParent:i,candidates:S})}else o.unshift.apply(o,i.children)}}return a},R=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},F=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||L(t))&&!R(t)?0:t.tabIndex},q=function(t,r){var n=F(t);return n<0&&r&&!R(t)?0:n},W=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},D=function(t){return t.tagName==="INPUT"},$=function(t){return D(t)&&t.type==="hidden"},U=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},G=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},j=function(t){if(!t.name)return!0;var r=t.form||g(t),n=function(s){return r.querySelectorAll('input[type="radio"][name="'+s+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=n(window.CSS.escape(t.name));else try{a=n(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=G(a,t.form);return!o||o===t},z=function(t){return D(t)&&t.type==="radio"},X=function(t){return z(t)&&!j(t)},H=function(t){var r,n=t&&g(t),a=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==t){var i,s,l;for(o=!!((i=a)!==null&&i!==void 0&&(s=i.ownerDocument)!==null&&s!==void 0&&s.contains(a)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&a;){var u,f,c;n=g(a),a=(u=n)===null||u===void 0?void 0:u.host,o=!!((f=a)!==null&&f!==void 0&&(c=f.ownerDocument)!==null&&c!==void 0&&c.contains(a))}}return o},w=function(t){var r=t.getBoundingClientRect(),n=r.width,a=r.height;return n===0&&a===0},V=function(t,r){var n=r.displayCheck,a=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=d.call(t,"details>summary:first-of-type"),i=o?t.parentElement:t;if(d.call(i,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof a=="function"){for(var s=t;t;){var l=t.parentElement,u=g(t);if(l&&!l.shadowRoot&&a(l)===!0)return w(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=s}if(H(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return w(t);return!1},Y=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var a=r.children.item(n);if(a.tagName==="LEGEND")return d.call(r,"fieldset[disabled] *")?!0:!a.contains(t)}return!0}r=r.parentElement}return!1},y=function(t,r){return!(r.disabled||v(r)||$(r)||V(r,t)||U(r)||Y(r))},C=function(t,r){return!(X(r)||F(r)<0||!y(t,r))},Z=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},K=function e(t){var r=[],n=[];return t.forEach(function(a,o){var i=!!a.scopeParent,s=i?a.scopeParent:a,l=q(s,i),u=i?e(a.candidates):s;l===0?i?r.push.apply(r,u):r.push(s):n.push({documentOrder:o,tabIndex:l,item:a,isScope:i,content:u})}),n.sort(W).reduce(function(a,o){return o.isScope?a.push.apply(a,o.content):a.push(o.content),a},[]).concat(r)},J=function(t,r){r=r||{};var n;return r.getShadowRoot?n=A([t],r.includeContainer,{filter:C.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:Z}):n=x(t,r.includeContainer,C.bind(null,r)),K(n)},Q=function(t,r){r=r||{};var n;return r.getShadowRoot?n=A([t],r.includeContainer,{filter:y.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=x(t,r.includeContainer,y.bind(null,r)),n},O={getShadowRoot:!0};function bt(e){return e?e.id=e.id||`${e.tagName.toLowerCase()}-${T()}`:""}function yt(e){return Array.isArray(e)?e:Array.from(e)}function pt(e){let t=m(e,`.${h.darkMode}, .${h.lightMode}, .${h.autoMode}`);return t?.classList.contains("calcite-mode-dark")||t?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function mt(e){let n=m(e,"[dir]");return n?n.getAttribute("dir"):"ltr"}function St(e){return e?parseFloat(getComputedStyle(e).inlineSize):0}function p(e){return e.getRootNode()}function Tt(e){let t=p(e);return"host"in t?t:null}function wt(e,t){if(!e)return 0;let n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width}function M(e){return e.host||null}function _(e,{selector:t,id:r}){if(!e)return null;e.assignedSlot&&(e=e.assignedSlot);let n=p(e);return(r?"getElementById"in n?n.getElementById(r):null:t?n.querySelector(t):null)||_(M(n),{selector:t,id:r})}function m(e,t){return e?e.closest(t)||m(M(p(e)),t):null}function tt(e){return typeof e?.setFocus=="function"}async function et(e,t=!1,r="tabbable",n,a){return e?tt(e)&&n!==e?e.setFocus(a):(r==="tabbable"?nt:it)(e,t,a):void 0}function rt(e,t){if(e)return J(e,{...O,includeContainer:t})[0]??e}function nt(e,t,r){rt(e,t)?.focus(r)}function at(e,t){if(e)return Q(e,{...O,includeContainer:t})[0]??e}function it(e,t,r){at(e,t)?.focus(r)}function Ct(e,t){return Array.from(e.children).filter(r=>r.matches(t))}function ot(e,t){return e.filter(r=>r.matches(t))}function Et(e,t,r){if(typeof t=="string"&&t!=="")return t;if(t===""||t===!0)return e[r]}function Nt(e,t){return!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top)}function It(e){return(!!e).toString()}function xt(e){return ct(e)||st(e)}function ut(e){return lt(e).filter(t=>t.nodeType===Node.TEXT_NODE).map(t=>t.textContent).join("").trim()}function At(e){for(let t of e.childNodes)if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()!==""||t.nodeType===Node.ELEMENT_NODE)return!0;return!1}function st(e){return!!ut(e)}function lt(e){return e.currentTarget.assignedNodes({flatten:!0})}function ct(e){return!!ft(e).length}function ft(e,t){return dt(e.currentTarget,t)}function dt(e,t){let r=e.assignedElements({flatten:!0});return t?ot(r,t):r}function Rt(e){return!!(e.isPrimary&&e.button===0)}function Ft(e){return e.detail===0}var Dt=(e,t,r,n=!0,a=!0,o=!1)=>{let i=e.indexOf(t),s=i===0,l=i===e.length-1;n&&(r=r==="previous"&&s?"last":r==="next"&&l?"first":r);let u;return r==="previous"?u=e[i-1]||e[n?e.length-1:i]:r==="next"?u=e[i+1]||e[n?0:i]:r==="last"?u=e[e.length-1]:u=e[0],et(u,a,"tabbable",o?u:void 0),u};function Ot(e,t){if(e.parentNode!==t.parentNode)return!1;let r=Array.from(e.parentNode.children);return r.indexOf(e)<r.indexOf(t)}async function Mt(e,t){return k(e,t,"animation")}async function kt(e,t){return k(e,t,"transition")}function E(e,t,r){let n=t==="transition"?"transitionProperty":"animationName";return e.getAnimations().find(a=>a[n]===r)}async function k(e,t,r){let n=E(e,r,t);if(n||(await ht(),n=E(e,r,t)),!!n)try{await n.finished}catch{}}async function ht(){await new Promise(e=>requestAnimationFrame(()=>e()))}function Bt(e){return e.endsWith("px")?parseFloat(e):e.endsWith("vw")?N(parseFloat(e),window.innerWidth):e.endsWith("vh")?N(parseFloat(e),window.innerHeight):0}function N(e,t){return e*t/100}export{O as a,bt as b,yt as c,pt as d,mt as e,St as f,p as g,Tt as h,wt as i,_ as j,m as k,et as l,rt as m,Ct as n,Et as o,Nt as p,It as q,xt as r,At as s,ct as t,ft as u,dt as v,Rt as w,Ft as x,Dt as y,Ot as z,Mt as A,kt as B,ht as C,Bt as D};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{g as Q}from"./BHN7LML7.js";import{k as A}from"./VHWY6WRS.js";import{a as x}from"./AH7JKNGR.js";import{c as K,d as J}from"./TF62JD6A.js";import{c as G,e as q,f as H,h as W}from"./XM6ZS6NL.js";import{a as j}from"./JDOBRO6Y.js";import{a as _}from"./B77OUDM7.js";import"./IZ4LDJ5Z.js";import{a as N}from"./D2BIPE73.js";import{a as U}from"./F327VYUC.js";import"./ZMUA6AOW.js";import"./6PU3J3IP.js";import"./AHSC4NMW.js";import"./ABO7NKZD.js";import"./UUPPUJNG.js";import{C as R,D as z,E as M,F as k,J as E,Q as V,g as P,h as T,l as v,p as b}from"./BK3V4SS7.js";var oe={offset:"offset"},se={labelContent:"label-content"},ae=60;function O(t){return t.replace(":15",".25").replace(":30",".5").replace(":45",".75").replace("\u2212","-")}function ie(t,e){let o=L(t,"en-US",e).replace("GMT","");return o===""?0:Number(O(o))*ae}function ne(){return new Date().getTimezoneOffset()*-1}function le(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}async function re(t){if(t==="offset")return o=>o;let{normalize:e}=await import("./SIPV5V4E.js");return e}async function ce(t,e,o,s,a){if(o==="name"){let{groupByName:i}=await import("./GCD5SUKH.js");return(await i()).map(({label:n})=>({label:n,value:n,metadata:{filterValue:n}})).filter(n=>!!n).sort()}let l=a==="user"?t:a==="utc"?"fr":"en-GB",u=s.getTime();if(o==="region"){let[{groupByRegion:i},{getCountry:c,global:n}]=await Promise.all([import("./TFCIZO6G.js"),import("./I35XOEKF.js")]);return(await i()).map(({label:m,tzs:d})=>(d.sort((h,f)=>{let y=I(h,e),$=I(f,e),p="Etc/GMT";if(h.startsWith(p)&&f.startsWith(p)){let g=h.substring(p.length),F=f.substring(p.length),te=g===""?0:parseInt(g);return(F===""?0:parseInt(F))-te}return y.localeCompare($)}),{label:S(e,m),items:d.map(h=>{let f=O(L(h,l,u)),y=I(h,e),$=m===n?`${I(n,e)} Etc`:X(h),p=c(h),g=S(e,p);return{label:y,value:h,metadata:{country:g===y?void 0:g,filterValue:$,offset:f}}})})).sort((m,d)=>m.label===n?-1:d.label===n?1:m.label.localeCompare(d.label))}let[{groupByOffset:C},{DateEngine:Z}]=await Promise.all([import("./UTSU6ZXC.js"),import("./B2GFX3LQ.js")]),B=await C({dateEngine:new Z,groupDateRange:1,startDate:new Date(u).toISOString()}),ee=new Intl.ListFormat(t,{style:"long",type:"conjunction"}),D=["Factory","Etc/UTC"];return B.forEach(i=>{let c=[],n=0;i.tzs.forEach((r,m)=>{D.includes(r)&&n++,c[m]=n}),i.tzs=i.tzs.filter(r=>!D.includes(r)),i.labelTzIdx=i.labelTzIdx.map(r=>r-c[r]).filter(r=>r>=0&&r<i.tzs.length)}),B.map(({labelTzIdx:i,tzs:c})=>{let n=c[0],r=O(L(n,l,u)),m=ie(n,u),d=i.map(f=>I(c[f],e));return{label:fe(e,r,ee.format(d)),value:m,metadata:{filterValue:c.map(f=>X(f))}}}).filter(i=>!!i).sort((i,c)=>i.value-c.value)}function I(t,e){return e[t]||he(t)}function me(t,e,o){return o.timeZoneRegionLabel.replace("{city}",t).replace("{country}",S(o,e))}function S(t,e){return t[e]||e}function he(t){return t.split("/").pop()}function X(t){return t.replace(/_/g," ")}function fe(t,e,o){return t.timeZoneLabel.replace("{offset}",e).replace("{cities}",o)}function L(t,e,o=Date.now()){return t==="Factory"&&(t="Etc/GMT"),A(e,{timeZone:t,timeZoneName:"shortOffset"}).formatToParts(o).find(({type:l})=>l==="timeZoneName").value}function ue(t){return t[0].items!==void 0}function de(t){return ue(t)?t.flatMap(e=>e.items):t}function Y(t,e,o){return o==null?null:de(t).find(s=>s[e]==o)}var pe=P`: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}.offset{white-space:nowrap}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::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}`,w=class extends M{constructor(){super(...arguments),this.comboboxRef=R(),this.messages=N({blocking:!0}),this.focusSetter=U()(this),this.interactiveContainer=j(this),this.clearable=!1,this.disabled=!1,this.maxItems=0,this.mode="offset",this.offsetStyle="user",this.open=!1,this.overlayPositioning="absolute",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.topLayerDisabled=!1,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputTimeZoneBeforeClose=b({cancelable:!1}),this.calciteInputTimeZoneBeforeOpen=b({cancelable:!1}),this.calciteInputTimeZoneChange=b({cancelable:!1}),this.calciteInputTimeZoneClose=b({cancelable:!1}),this.calciteInputTimeZoneOpen=b({cancelable:!1})}static{this.properties={clearable:[7,{},{reflect:!0,type:Boolean}],disabled:[7,{},{reflect:!0,type:Boolean}],form:[3,{},{reflect:!0}],labelText:1,maxItems:[11,{},{reflect:!0,type:Number}],messageOverrides:[0,{},{attribute:!1}],mode:[3,{},{reflect:!0}],name:[3,{},{reflect:!0}],offsetStyle:[3,{},{reflect:!0}],open:[7,{},{reflect:!0,type:Boolean}],overlayPositioning:[3,{},{reflect:!0}],readOnly:[7,{},{reflect:!0,type:Boolean}],referenceDate:1,required:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],status:[3,{},{reflect:!0}],topLayerDisabled:[7,{},{reflect:!0,type:Boolean}],validationIcon:[3,{converter:E,type:String},{reflect:!0}],validationMessage:1,validity:[0,{},{attribute:!1}],value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=pe}get value(){return this._value}set value(e){this._value=e}async setFocus(e){return this.focusSetter(()=>this.comboboxRef.value,e)}connectedCallback(){super.connectedCallback(),G(this),K(this)}async load(){this.normalizer=await re(this.mode),await this.updateTimeZoneItems();let e=this.value,o=this.normalizeValue(e);this.value=o||(e===""?o:void 0),this.updateTimeZoneSelection();let s=this.selectedTimeZoneItem?`${this.selectedTimeZoneItem.value}`:"";H(this,s),this.value=s}willUpdate(e){e.has("value")&&this.hasUpdated&&this.handleValueChange(this.value,e.get("value")),(e.has("messages")||e.has("mode")&&(this.hasUpdated||this.mode!=="offset")||e.has("referenceDate"))&&this.handleTimeZoneItemPropsChange(),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openChanged()}loaded(){this.openChanged()}disconnectedCallback(){super.disconnectedCallback(),q(this),J(this)}async handleTimeZoneItemPropsChange(){!this.timeZoneItems||!this.hasUpdated||(await this.updateTimeZoneItems(),this.updateTimeZoneSelection())}openChanged(){this.comboboxRef.value&&(this.comboboxRef.value.open=this.open)}async handleValueChange(e,o){let s=this.normalizeValue(e);if(!s){if(this.clearable){this._value=s,this.selectedTimeZoneItem=null;return}this._value=o,this.selectedTimeZoneItem=this.findTimeZoneItem(o);return}let a=this.findTimeZoneItem(s);if(!a){this._value=o;return}this._value=s,this.selectedTimeZoneItem=a}onLabelClick(){this.setFocus()}overrideSelectedLabelForRegion(e){this.mode!=="region"||!this.selectedTimeZoneItem||(this.comboboxRef.value.selectedItems[0].heading=this.getItemLabel(this.selectedTimeZoneItem,e))}onComboboxBeforeClose(e){e.stopPropagation(),this.overrideSelectedLabelForRegion(!1),this.calciteInputTimeZoneBeforeClose.emit()}onComboboxBeforeOpen(e){e.stopPropagation(),this.overrideSelectedLabelForRegion(!0),this.calciteInputTimeZoneBeforeOpen.emit()}onComboboxChange(e){e.stopPropagation();let s=e.target.selectedItems[0];if(!s){this._value="",this.selectedTimeZoneItem=null,this.calciteInputTimeZoneChange.emit();return}let a=this.findTimeZoneItemByLabel(s.getAttribute("data-label")),l=`${a.value}`;this.value===l&&a.label===this.selectedTimeZoneItem.label||(this._value=l,this.selectedTimeZoneItem=a,this.calciteInputTimeZoneChange.emit())}onComboboxClose(e){e.stopPropagation(),this.open=!1,this.calciteInputTimeZoneClose.emit()}onComboboxOpen(e){this.open=!0,e.stopPropagation(),this.calciteInputTimeZoneOpen.emit()}findTimeZoneItem(e){return Y(this.timeZoneItems,"value",e)}findTimeZoneItemByLabel(e){return Y(this.timeZoneItems,"label",e)}async updateTimeZoneItems(){this.timeZoneItems=await this.createTimeZoneItems()}updateTimeZoneSelection(){if(this.value===""&&this.clearable){this.selectedTimeZoneItem=null;return}let e=this.mode==="offset"?ne():le(),o=this.value===""||!this.value?e:this.value;this.selectedTimeZoneItem=this.findTimeZoneItem(o)||this.findTimeZoneItem(e)}async createTimeZoneItems(){return!this.messages._lang||!this.messages?[]:ce(this.messages._lang,this.messages,this.mode,this.referenceDate instanceof Date?this.referenceDate:new Date(this.referenceDate??Date.now()),this.offsetStyle)}normalizeValue(e){return e=e===void 0?"":e,e&&this.normalizer(e)}getItemLabel(e,o=this.open){let s=this.selectedTimeZoneItem===e,{label:a,metadata:l}=e;return!l.country||o||!s?a:me(a,l.country,this.messages)}render(){return this.interactiveContainer({disabled:this.disabled,children:T`<calcite-combobox .clearDisabled=${!this.clearable} .disabled=${this.disabled} .label=${this.messages.chooseTimeZone} .labelText=${this.labelText} lang=${this.messages._lang??v} .maxItems=${this.maxItems} @calciteComboboxBeforeClose=${this.onComboboxBeforeClose} @calciteComboboxBeforeOpen=${this.onComboboxBeforeOpen} @calciteComboboxChange=${this.onComboboxChange} @calciteComboboxClose=${this.onComboboxClose} @calciteComboboxOpen=${this.onComboboxOpen} .overlayPositioning=${this.overlayPositioning} .placeholder=${this.mode==="name"?this.messages.namePlaceholder:this.mode==="offset"?this.messages.offsetPlaceholder:this.messages.regionPlaceholder} placeholder-icon=search .readOnly=${this.readOnly} .required=${this.required} .scale=${this.scale} .selectionMode=${this.clearable?"single":"single-persist"} .status=${this.status} .topLayerDisabled=${this.topLayerDisabled} .validationIcon=${this.validationIcon} .validationMessage=${this.validationMessage} ${z(this.comboboxRef)}>${this.renderItems()}<slot name=${se.labelContent} slot=${Q.labelContent}></slot></calcite-combobox>${W({component:this})}`})}renderItems(){return this.mode==="region"?this.renderRegionItems():x(this.timeZoneItems,({label:e})=>e,e=>{let o=this.selectedTimeZoneItem===e,{label:s,metadata:a,value:l}=e;return T`<calcite-combobox-item data-label=${s??v} .heading=${s} .metadata=${a} .selected=${o} .value=${l}></calcite-combobox-item>`})}renderRegionItems(){return this.timeZoneItems.flatMap(({label:e,items:o})=>_(e,T`<calcite-combobox-item-group .label=${e}>${x(o,({label:s})=>s,s=>{let a=this.selectedTimeZoneItem===s,{label:l,metadata:u,value:C}=s,Z=this.getItemLabel(s);return T`<calcite-combobox-item data-label=${l??v} .description=${u.country} .heading=${Z} .metadata=${u} .selected=${a} .value=${C}><span class=${k(oe.offset)} slot=content-end>${u.offset}</span></calcite-combobox-item>`})}</calcite-combobox-item-group>`))}};V("calcite-input-time-zone",w);export{w as InputTimeZone};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{a as v}from"./D2BIPE73.js";import{a as g}from"./F327VYUC.js";import{a as m}from"./ZMUA6AOW.js";import"./6PU3J3IP.js";import"./AHSC4NMW.js";import"./ABO7NKZD.js";import"./UUPPUJNG.js";import{C as h,D as u,E as p,F as c,Q as b,g as d,h as o,l as i}from"./BK3V4SS7.js";var e={contentCell:"content-cell",numberCell:"number-cell",selectionCell:"selection-cell",bodyRow:"body-row",footerRow:"footer-row",heading:"heading",description:"description",multipleSelectionCell:"cell--multiple-selection",assistiveText:"assistive-text",active:"active",selectedCell:"selected-cell",lastCell:"last-cell",staticCell:"static-cell"},a={checked:"check-square-f",indeterminate:"minus-square-f",unchecked:"square"},w=d`:host{display:contents}:host([alignment=center]) th{text-align:center}:host([alignment=end]) th{text-align:end}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}th{white-space:normal;text-align:start;vertical-align:top;font-weight:var(--calcite-font-weight-medium);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-table-header-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)));padding-block:calc(var(--calcite-internal-table-cell-padding) * 1.5);padding-inline:var(--calcite-internal-table-cell-padding);background-color:var(--calcite-table-header-background-color, var(--calcite-table-header-background, var(--calcite-color-foreground-2)));font-size:var(--calcite-internal-table-cell-font-size);border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-table-cell-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)))}th:not(.static-cell){outline-color:transparent}th:not(.static-cell):not(.static-cell):focus-within{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}th:not(.center):not(.end).content-cell{vertical-align:top}th.center{vertical-align:middle}th.end.content-cell{vertical-align:bottom}th.body-row,th.footer-row{padding-block:var(--calcite-internal-table-cell-padding);border-block-end:0}th.footer-row{border-block-start:var(--calcite-border-width-sm) solid var(--calcite-table-header-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)))}th.last-cell{border-inline-end:0}.cell--multiple-selection{cursor:pointer;vertical-align:middle;color:var(--calcite-table-selection-cell-icon-color, var(--calcite-color-text-3));background-color:var(--calcite-table-selection-cell-background-color, var(--calcite-color-foreground-2))}.cell--multiple-selection.selected-cell{background-color:var(--calcite-table-selection-cell-background-color-selected, var(--calcite-color-foreground-2))}.cell--multiple-selection:not(.end){vertical-align:middle}.number-cell{background-color:var(--calcite-table-number-cell-background-color, var(--calcite-table-cell-background-color, var(--calcite-color-foreground-2)))}.number-cell,.selection-cell{inline-size:2rem;min-inline-size:2rem}.selection-cell calcite-icon.active{color:var(--calcite-table-selection-cell-icon-color-selected, var(--calcite-color-brand))}.number-cell calcite-icon,.selection-cell calcite-icon{margin-inline-start:auto;margin-inline-end:auto;vertical-align:middle}.heading{color:var(--calcite-table-header-heading-text-color, var(--calcite-color-text-1))}.description{color:var(--calcite-table-header-description-text-color, var(--calcite-color-text-3));font-size:var(--calcite-internal-table-cell-font-size-secondary)}`,r=class extends p{constructor(){super(...arguments),this.containerRef=h(),this.messages=v({blocking:!0}),this.focusSetter=g()(this),this.focused=!1,this.screenReaderText="",this.alignment="start",this.interactionMode="interactive",this.numberCell=!1,this.parentRowAlignment="start",this.selectionCell=!1}static{this.properties={focused:[16,{},{state:!0}],screenReaderText:[16,{},{state:!0}],alignment:[3,{},{reflect:!0}],bodyRowCount:[9,{},{type:Number}],colSpan:[11,{},{reflect:!0,type:Number}],description:[3,{},{reflect:!0}],heading:[3,{},{reflect:!0}],interactionMode:1,lastCell:[5,{},{type:Boolean}],messageOverrides:[0,{},{attribute:!1}],numberCell:[5,{},{type:Boolean}],parentRowAlignment:1,parentRowIsSelected:[5,{},{type:Boolean}],parentRowType:1,positionInRow:[9,{},{type:Number}],rowSpan:[11,{},{reflect:!0,type:Number}],scale:1,selectedRowCount:[9,{},{type:Number}],selectedRowCountLocalized:1,selectionCell:[5,{},{type:Boolean}],selectionMode:1}}static{this.styles=w}async setFocus(t){return this.focusSetter(()=>this.containerRef.value,t)}async load(){this.updateScreenReaderText()}willUpdate(t){(t.has("selectedRowCount")||t.has("selectedRowCountLocalized"))&&this.updateScreenReaderText()}updateScreenReaderText(){let t="",l=`${this.selectedRowCountLocalized} ${this.messages?.selected}`;this.numberCell?t=this.messages?.rowNumber:this.selectionMode==="single"?t=`${this.messages?.selectionColumn}. ${l}`:this.bodyRowCount===this.selectedRowCount?t=`${this.messages?.selectionColumn}. ${this.messages?.all} ${l} ${this.messages?.keyboardDeselectAll}`:t=`${this.messages?.selectionColumn}. ${l} ${this.messages?.keyboardSelectAll}`,this.screenReaderText=t}onContainerBlur(){this.focused=!1}onContainerFocus(){this.focused=!0}render(){let t=this.rowSpan?"rowgroup":this.colSpan?"colgroup":this.parentRowType==="body"?"row":"col",l=this.selectedRowCount===this.bodyRowCount,n=this.selectedRowCount>0,f=l?a.checked:n?a.indeterminate:a.unchecked,s=this.interactionMode==="static"&&!this.selectionCell;return o`<th .ariaColIndex=${this.parentRowType==="head"?this.positionInRow:void 0} class=${c({[e.bodyRow]:this.parentRowType==="body",[e.footerRow]:this.parentRowType==="foot",[e.contentCell]:!this.numberCell&&!this.selectionCell,[e.numberCell]:this.numberCell,[e.selectionCell]:this.selectionCell,[e.selectedCell]:this.parentRowIsSelected,[e.multipleSelectionCell]:this.selectionMode==="multiple",[e.staticCell]:s,[e.lastCell]:this.lastCell&&(!this.rowSpan||this.colSpan&&!!this.rowSpan),[this.parentRowAlignment]:this.parentRowAlignment==="center"||this.parentRowAlignment==="end"})} colSpan=${this.colSpan??i} @blur=${this.onContainerBlur} @focus=${this.onContainerFocus} .role=${this.parentRowType==="head"?"columnheader":"rowheader"} rowSpan=${this.rowSpan??i} scope=${t??i} .tabIndex=${this.selectionCell?0:s?-1:0} ${u(this.containerRef)}>${this.heading&&o`<div class=${c(e.heading)}>${this.heading}</div>`||""}${this.description&&o`<div class=${c(e.description)}>${this.description}</div>`||""}${this.selectionCell&&this.selectionMode==="multiple"&&o`<calcite-icon class=${c({[e.active]:n||l})} .icon=${f} .scale=${m(this.scale)}></calcite-icon>`||""}${(this.selectionCell||this.numberCell)&&o`<span .ariaLive=${this.focused?"polite":"off"} class=${c(e.assistiveText)}>${this.screenReaderText}</span>`||""}</th>`}};b("calcite-table-header",r);export{r as TableHeader};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{A as y,k as P,t as k,u as w,v as V,w as m,x as h,y as A,z as D}from"./BK3V4SS7.js";var b=(s,f,c)=>{let p=new Map;for(let e=f;e<=c;e++)p.set(s[e],e);return p},I=w(class extends V{constructor(s){if(super(s),s.type!==k.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,f,c){let p;c===void 0?c=f:f!==void 0&&(p=f);let e=[],n=[],o=0;for(let a of s)e[o]=p?p(a,o):o,n[o]=c(a,o),o++;return{values:n,keys:e}}render(s,f,c){return this.dt(s,f,c).values}update(s,[f,c,p]){let e=D(s),{values:n,keys:o}=this.dt(f,c,p);if(!Array.isArray(e))return this.ut=o,n;let a=this.ut??=[],u=[],v,g,t=0,l=e.length-1,r=0,i=n.length-1;for(;t<=l&&r<=i;)if(e[t]===null)t++;else if(e[l]===null)l--;else if(a[t]===o[r])u[r]=h(e[t],n[r]),t++,r++;else if(a[l]===o[i])u[i]=h(e[l],n[i]),l--,i--;else if(a[t]===o[i])u[i]=h(e[t],n[i]),m(s,u[i+1],e[t]),t++,i--;else if(a[l]===o[r])u[r]=h(e[l],n[r]),m(s,e[t],e[l]),l--,r++;else if(v===void 0&&(v=b(o,r,i),g=b(a,t,l)),v.has(a[t]))if(v.has(a[l])){let d=g.get(o[r]),x=d!==void 0?e[d]:null;if(x===null){let C=m(s,e[t]);h(C,n[r]),u[r]=C}else u[r]=h(x,n[r]),m(s,e[t],x),e[d]=null;r++}else y(e[l]),l--;else y(e[t]),t++;for(;r<=i;){let d=m(s,u[i+1]);h(d,n[r]),u[r++]=d}for(;t<=l;){let d=e[t++];d!==null&&y(d)}return this.ut=o,A(s,u),P}});export{I as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{n as l}from"./BK3V4SS7.js";var p=(n,o)=>{let t=n;for(;t;){if(t===o)return!0;if(!t.parentNode)return!1;t.parentNode instanceof ShadowRoot?t=t.parentNode.host:t=t.parentNode}return!1},f=(n,o,t)=>{let s=b(o).subscribe;return s(e=>{e.some(r=>p(n,r.target))&&t()})},u={},b=n=>{let o=n.join(","),t=u[o];if(t!==void 0)return t;let s=new Set,e=new MutationObserver(r=>s.forEach(a=>a(r)));globalThis.document&&e.observe(document.documentElement,{attributes:!0,attributeFilter:n,subtree:!0});let i={subscribe:r=>(s.add(r),()=>{s.delete(r),s.size===0&&(e.disconnect(),u[o]=void 0)})};return u[o]=i,i},E=(n,o)=>{let t=n;for(;t;){let s=t.closest?.(o);if(s)return s;let e=t.getRootNode?.();if(e===globalThis.document)return;t=e.host}};var h=(n,o,t)=>E(n,`[${o}]`)?.getAttribute(o)??t;var v="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),C=new Set(v),c="en",N={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},y=async(n,o,t="")=>{let s=`${o}/${t}`,e=`${s}${n}.json`;return d[e]??(d[e]=g(n,s)),await d[e]},d={},g=async(n,o)=>{let t=`${o}${n}.json`;try{let s=await fetch(t);if(s.ok)return await s.json()}catch(s){return l("error","intl",`An unknown error occurred while fetching localization strings at ${t}`,{detail:{error:s}}),{}}return n===c?{}:await g(c,o)},L=n=>{let o=h(n,"lang",globalThis.navigator?.language||c);return{lang:o,t9nLocale:m(o)}},m=n=>{let[o,t]=n.split("-"),s=o.toLowerCase(),e=s;return t&&(e=`${s}-${t.toUpperCase()}`),e=N[e]??e,C.has(e)?e:t?m(s):c},k=(n,o,t,s)=>{let e,i=()=>w(n,o(),s).then(r=>{(e?.lang!==r.lang||e.t9nLocale!==r.t9nLocale||e.t9nStrings!==r.t9nStrings)&&t(r),e=r}).catch(r=>{l("error","intl","Error updating component locale state",{detail:{error:r}})});return queueMicrotask(i),f(n,["lang"],i)},w=async(n,o,t=n.localName.split("-").slice(1).join("-"))=>{let{lang:s,t9nLocale:e}=L(n),i=`${o}/${t}/t9n`,a=t===null?{}:await y(e,i,"messages.");return{lang:s,t9nLocale:e,t9nStrings:a}};export{C as a,c as b,L as c,m as d,k as e};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
4
|
var a=class{constructor(){this._formatterCache=new Map,this._commonDateTimeFormatterOptions={year:"numeric",month:"2-digit",day:"2-digit",timeZoneName:"shortOffset"}}get name(){return"native"}create(t){return new Date(t)}increase(t){return new Date(t.getTime()+864e5)}formatToIsoDateString(t){let e=t.getFullYear(),n=t.getMonth()+1,r=t.getDate();return`${e}-${n.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}`}isoToTimeZone(t,e){let n=this._toDate(t),o=this._getFormatter(e).formatToParts(n),[i]=o.filter(({type:s})=>s==="timeZoneName").map(({value:s})=>s),m=this._getTimeZoneOffsetInMins(i),c=n.getMinutes()-(n.getTimezoneOffset()-m);return n.setMinutes(c),n}same(t,e){return t.getTime()===e.getTime()}_toDate(t){return new Date(t)}_getFormatter(t){t==="Factory"&&(t="Etc/GMT");let e=this._formatterCache.get(t);return e||(e=new Intl.DateTimeFormat("en-US",{timeZone:t,...this._commonDateTimeFormatterOptions}),this._formatterCache.set(t,e)),e}_getTimeZoneOffsetInMins(t){let[e,...n]=t.slice(3),[r,o]=n.join("").split(":");return(e==="+"?1:-1)*(Number(r)*60+Number(o||0))}};export{a as DateEngine};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{l as r,
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{l as r,u as s,v as i,y as o}from"./BK3V4SS7.js";var u=s(class extends i{constructor(){super(...arguments),this.key=r}render(t,e){return this.key=t,e}update(t,[e,m]){return e!==this.key&&(o(t),this.key=e),m}});export{u as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
4
|
var i="CALCITE-COMBOBOX-ITEM",l="CALCITE-COMBOBOX-ITEM-GROUP",t=`${i}, ${l}`,o={allSelected:"all-selected",chip:"chip",chipInvisible:"chip--invisible",icon:"icon",input:"input",inputHidden:"input--hidden",label:"label",labelIcon:"label--icon",listContainer:"list-container",noMatches:"no-matches",noMatchesPlaceholder:"no-matches-placeholder",placeholderIcon:"placeholder-icon",selectAll:"select-all",selectionDisplayFit:"selection-display--fit",selectionDisplaySingle:"selection-display--single",selectedIcon:"selected-icon",floatingUIContainer:"floating-ui-container",screenReadersOnly:"screen-readers-only",wrapper:"wrapper",wrapperSingle:"wrapper--single",wrapperActive:"wrapper--active",gridInput:"grid-input",inputSingle:"input--single",inputIcon:"input--icon",inputWrap:"input-wrap",inputWrapSingle:"input-wrap--single",iconEnd:"icon-end",iconStart:"icon-start",list:"list",listHide:"list--hide"},n="combobox",c={validationMessage:"comboboxValidationMessage",item:e=>`${n}-item-${e}`,chip:e=>`${n}-chip-${e}`,label:e=>`${n}-label-${e}`,listbox:e=>`${n}-listbox-${e}`,input:e=>`${n}-input-${e}`},a={chevronUp:"chevron-up",chevronDown:"chevron-down"},s={labelContent:"label-content"};export{i as a,l as b,t as c,o as d,c as e,a as f,s as g};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
var J=globalThis,Y=J.ShadowRoot&&(J.ShadyCSS===void 0||J.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),Mt=new WeakMap,k=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==mt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Y&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Mt.set(e,t))}return t}toString(){return this.cssText}},It=s=>new k(typeof s=="string"?s:s+"",void 0,mt),Ce=(s,...t)=>{let e=s.length===1?s[0]:t.reduce(((o,i,r)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+s[r+1]),s[0]);return new k(e,s,mt)},kt=(s,t)=>{if(Y)s.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let o=document.createElement("style"),i=J.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=e.cssText,s.appendChild(o)}},yt=Y?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return It(e)})(s):s;var{is:we,defineProperty:Oe,getOwnPropertyDescriptor:Se,getOwnPropertyNames:Te,getOwnPropertySymbols:Pe,getPrototypeOf:Ne}=Object,X=globalThis,jt=X.trustedTypes,De=jt?jt.emptyScript:"",xe=X.reactiveElementPolyfillSupport,j=(s,t)=>s,Z={toAttribute(s,t){switch(t){case Boolean:s=s?De:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},H=(s,t)=>!we(s,t),Ht={attribute:!0,type:String,converter:Z,reflect:!1,useDefault:!1,hasChanged:H};Symbol.metadata??=Symbol("metadata"),X.litPropertyMetadata??=new WeakMap;var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ht){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(t,o,e);i!==void 0&&Oe(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){let{get:i,set:r}=Se(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:i,set(n){let a=i?.call(this);r?.call(this,n),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ht}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let t=Ne(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){let e=this.properties,o=[...Te(e),...Pe(e)];for(let i of o)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,i]of e)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let i=this._$Eu(e,o);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let i of o)e.unshift(yt(i))}else t!==void 0&&e.push(yt(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return kt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$ET(t,e){let o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(i!==void 0&&o.reflect===!0){let r=(o.converter?.toAttribute!==void 0?o.converter:Z).toAttribute(e,o.type);this._$Em=t,r==null?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){let o=this.constructor,i=o._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let r=o.getPropertyOptions(i),n=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:Z;this._$Em=i;let a=n.fromAttribute(e,r.type);this[i]=a??this._$Ej?.get(i)??a,this._$Em=null}}requestUpdate(t,e,o){if(t!==void 0){let i=this.constructor,r=this[t];if(o??=i.getPropertyOptions(t),!((o.hasChanged??H)(r,e)||o.useDefault&&o.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,o))))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:i,wrapped:r},n){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,r]of this._$Ep)this[i]=r;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,r]of o){let{wrapped:n}=r,a=this[i];n!==!0||this._$AL.has(i)||a===void 0||this.C(i,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(e)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[j("elementProperties")]=new Map,_[j("finalized")]=new Map,xe?.({ReactiveElement:_}),(X.reactiveElementVersions??=[]).push("2.1.1");var vt=globalThis,tt=vt.trustedTypes,Vt=tt?tt.createPolicy("lit-html",{createHTML:s=>s}):void 0,Et="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,$t="?"+A,Le=`<${$t}>`,S=document,z=()=>S.createComment(""),B=s=>s===null||typeof s!="object"&&typeof s!="function",bt=Array.isArray,Gt=s=>bt(s)||typeof s?.[Symbol.iterator]=="function",gt=`[
|
|
5
|
+
\f\r]`,V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zt=/-->/g,Bt=/>/g,w=RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^
|
|
6
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Wt=/'/g,Ft=/"/g,Kt=/^(?:script|style|textarea|title)$/i,_t=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),Es=_t(1),$s=_t(2),bs=_t(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),qt=new WeakMap,O=S.createTreeWalker(S,129);function Qt(s,t){if(!bt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Jt=(s,t)=>{let e=s.length-1,o=[],i,r=t===2?"<svg>":t===3?"<math>":"",n=V;for(let a=0;a<e;a++){let c=s[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===V?u[1]==="!--"?n=zt:u[1]!==void 0?n=Bt:u[2]!==void 0?(Kt.test(u[2])&&(i=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=i??V,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?Ft:Wt):n===Ft||n===Wt?n=w:n===zt||n===Bt?n=V:(n=w,i=void 0);let g=n===w&&s[a+1].startsWith("/>")?" ":"";r+=n===V?c+Le:h>=0?(o.push(l),c.slice(0,h)+Et+c.slice(h)+A+g):c+A+(h===-2?a:g)}return[Qt(s,r+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},W=class s{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0,a=t.length-1,c=this.parts,[l,u]=Jt(t,e);if(this.el=s.createElement(l,o),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=O.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(Et)){let y=u[n++],g=i.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:r,name:C[2],strings:g,ctor:C[1]==="."?st:C[1]==="?"?ot:C[1]==="@"?it:P}),i.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:r}),i.removeAttribute(h));if(Kt.test(i.tagName)){let h=i.textContent.split(A),y=h.length-1;if(y>0){i.textContent=tt?tt.emptyScript:"";for(let g=0;g<y;g++)i.append(h[g],z()),O.nextNode(),c.push({type:2,index:++r});i.append(h[y],z())}}}else if(i.nodeType===8)if(i.data===$t)c.push({type:2,index:r});else{let h=-1;for(;(h=i.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:r}),h+=A.length-1}r++}}static createElement(t,e){let o=S.createElement("template");return o.innerHTML=t,o}};function T(s,t,e=s,o){if(t===f)return t;let i=o!==void 0?e._$Co?.[o]:e._$Cl,r=B(t)?void 0:t._$litDirective$;return i?.constructor!==r&&(i?._$AO?.(!1),r===void 0?i=void 0:(i=new r(s),i._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=i:e._$Cl=i),i!==void 0&&(t=T(s,i._$AS(s,t.values),i,o)),t}var et=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??S).importNode(e,!0);O.currentNode=i;let r=O.nextNode(),n=0,a=0,c=o[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new rt(r,this,t)),this._$AV.push(l),c=o[++a]}n!==c?.index&&(r=O.nextNode(),n++)}return O.currentNode=S,i}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},U=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Gt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,i=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=W.createElement(Qt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{let r=new et(i,this),n=r.u(this.options);r.p(e),this.T(n),this._$AH=r}}_$AC(t){let e=qt.get(t.strings);return e===void 0&&qt.set(t.strings,e=new W(t)),e}k(t){bt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,i=0;for(let r of t)i===e.length?e.push(o=new s(this.O(z()),this.O(z()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=d}_$AI(t,e=this,o,i){let r=this.strings,n=!1;if(r===void 0)t=T(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=T(this,a[o+c],e,c),l===f&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}n&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},st=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},ot=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??d)===f)return;let o=this._$AH,i=t===d&&o!==d||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==d&&(o===d||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},rt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}},Yt={M:Et,P:A,A:$t,C:1,L:Jt,R:et,D:Gt,V:T,I:U,H:P,N:ot,U:it,B:st,F:rt},Ue=vt.litHtmlPolyfillSupport;Ue?.(W,U),(vt.litHtmlVersions??=[]).push("3.3.1");var At=(s,t,e)=>{let o=e?.renderBefore??t,i=o._$litPart$;if(i===void 0){let r=e?.renderBefore??null;o._$litPart$=i=new U(t.insertBefore(z(),r),r,void 0,e??{})}return i._$AI(s),i};var Ct=globalThis,$=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=At(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};$._$litElement$=!0,$.finalized=!0,Ct.litElementHydrateSupport?.({LitElement:$});var Re=Ct.litElementPolyfillSupport;Re?.({LitElement:$});(Ct.litElementVersions??=[]).push("4.2.1");var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},F=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var G=Symbol.for("controller"),Me=s=>typeof s=="object"&&s!==null&&(G in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Rs=s=>typeof s?.then=="function";var q,D=s=>{q!==s&&(q=s,queueMicrotask(()=>q===s?q=void 0:0))},K=s=>q,N=[],Zt=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},Xt=()=>N,R,Ms=s=>{R!==s&&(R=s,queueMicrotask(()=>R===s?R=void 0:0))},Ie=()=>{let s=R;return R=void 0,s},te=async(s,t)=>{let e=at(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(i=>t(i,o))}return e.exports},ee=async s=>{let t=at(s);return await t.ready,t},at=s=>{let e=K().manager.X(s);if(e!==void 0)return e;if(Me(s))return s;let o=Ie();if(o!==void 0)return o},nt=!1,Is=s=>{nt=!0;try{return s()}finally{nt=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},se=(s,t)=>{let e=t>ke?je:t/He,o=0,i=setInterval(()=>{o+=e,o>=t&&(clearInterval(i),s())},e);return i},ke=4e3,je=2e3,He=4;var oe=new Set,ie;var re=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Hs=(s,t,e,o)=>{let i=re(t);if(o?.once){let n=`${s}${i}${e}`;if(oe.has(n))return;oe.add(n)}let r;if(o?.detail){r={};for(let[n,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(r,n,{get(){return c.deref()}})}else r[n]=a;ie?.log.interceptors?.forEach(n=>n(s,i,e,r)),console[s](`[${i}]: ${e}`,r)}else ie?.log.interceptors?.forEach(n=>n(s,i,e)),console[s](`[${i}]: ${e}`)},ne=s=>{let t=`[${re(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}};var Ve=(s,t,e)=>{let o=Object.keys(s),i=o.length;M===void 0&&queueMicrotask(I),M??=new Map;let r=M.get(s);return r===void 0&&(r={callbacks:[],keyCount:i},M.set(s,r)),r.keyCount!==i&&(r.callbacks.forEach(n=>n(o)),r.callbacks=[],r.keyCount=i),r.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[i];c===void 0?a(void 0):s[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),M=void 0},ze=(s,t,e)=>{let o=s.manager;return o.V!==d&&o.V!==e&&o.S(void 0,void 0),o.T.length===0&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=e,o.T.push((i,r)=>p(t,void 0,e===r?i:void 0)),e},Be=(s=[K(),...Xt()],t,e)=>{let o=Array.isArray(s)?s:[s],i=o.length+1,r=n=>{i-=1,n!==void 0&&(i=Math.min(i,0)),i===0&&t(n)};o.forEach(n=>Ve(n,a=>r(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of o)if("manager"in n&&n.manager.component===n){ze(n,a=>r(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},We=(s="",t={},e=K())=>{let o={emit:i=>{s===""&&I();let r=new CustomEvent(s,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return s===""&&Be(void 0,i=>s=i.key,o),o},Fe=We.bind(null,""),le;le=G;var wt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#i=[],this.#r=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[le]=!0,this.#a=[];let e=this,o=t??K(new.target.name);e.#o=o,e.ready=e.P.promise,e.#n=ce(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(Zt(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#i;#r;#c;#l;#p;#h;#d;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(ne(this.#o))}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?ce(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return D(this.#o),te}get useRef(){return D(this.#o),ee}get useRefSync(){return D(this.#o),at}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#i.push(t)}onUpdate(t){this.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#i.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#r.forEach(ae,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(ae,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(i=>{typeof i=="function"?this.#h.push(i):typeof i=="object"&&typeof i.remove=="function"&&this.#h.push(i.remove)})}};function ae(s){p(s,void 0,this)}var he=wt,ce=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,i,r){if(!((i==="exports"||i==="_exports")&&i in o&&o[i]===e)&&(i in o||i in Promise.prototype||typeof i=="symbol"))return typeof o=="function"?o[i]:Reflect.get(o,i,r)}},e=new Proxy(s,t);return e};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=s=>(...t)=>({_$litDirective$:s,values:t}),v=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:qe}=Yt;var ct=s=>s.strings===void 0,de=()=>document.createComment(""),Ys=(s,t,e)=>{let o=s._$AA.parentNode,i=t===void 0?s._$AB:t._$AA;if(e===void 0){let r=o.insertBefore(de(),i),n=o.insertBefore(de(),i);e=new qe(r,n,s,s.options)}else{let r=e._$AB.nextSibling,n=e._$AM,a=n!==s;if(a){let c;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(c=s._$AU)!==n._$AU&&e._$AP(c)}if(r!==i||a){let c=e._$AA;for(;c!==r;){let l=c.nextSibling;o.insertBefore(c,i),c=l}}}return e},Zs=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},pe=(s,t=Ge)=>s._$AH=t,Xs=s=>s._$AH,to=s=>{s._$AR(),s._$AA.remove()};var Ke=E(class extends v{constructor(s){if(super(s),s.type!==m.PROPERTY&&s.type!==m.ATTRIBUTE&&s.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ct(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===d)return t;let e=s.element,o=s.name;if(s.type===m.PROPERTY){if(t===e[o])return f}else if(s.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===m.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return pe(s),t}});var Q=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),Q(o,t);return!0},lt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},ue=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),Ye(t)}};function Qe(s){this._$AN!==void 0?(lt(this),this._$AM=s,ue(this)):this._$AM=s}function Je(s,t=!1,e=0){let o=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(o))for(let r=e;r<o.length;r++)Q(o[r],!1),lt(o[r]);else o!=null&&(Q(o,!1),lt(o));else Q(this,s)}var Ye=s=>{s.type==m.CHILD&&(s._$AP??=Je,s._$AQ??=Qe)},ht=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),ue(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(this,t),lt(this))}setValue(t){if(ct(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var go=()=>new St,St=class{},Ot=new WeakMap,Tt=E(class extends ht{render(s){return d}update(s,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Ot.get(t);e===void 0&&(e=new WeakMap,Ot.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?Ot.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var dt=s=>s.replace(Xe,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Xe=/[A-Z]+(?![a-z])|[A-Z]/gu;var No="randomUUID"in crypto;var Nt=s=>{let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(s),(e.I??e._postLoad).promise}return!1},Dt={};function xt(){}var ts=(s,t)=>function(o,i){if(!globalThis.customElements)return;let n=(i??o??{}).resourcesUrl;n&&s.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(es):void 0,C=g?.map(([L])=>L),x=class extends Pt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=s}constructor(){!x.B&&(x.B=c(),x.F()),super()}};customElements.define(a,x)}},pt=Object.defineProperty,es=s=>{let t=s.split(":");return t.length===1?[t[0],dt(t[0])]:t},ss=globalThis.HTMLElement??xt,Pt=class extends ss{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(o=>{Object.hasOwn(t,o)&&(t.#e[o]=t[o],delete t[o])}),e.A?t.#i({a:e.A}):e.B.then(async o=>{await e.K.p,t.#i(await(o.default?.then(i=>typeof i=="function"?{a:i}:i)??o))}).catch(o=>{t.H.reject(o),setTimeout(()=>{throw o})})}static{this.lumina=!0}static F(){for(let t of this.C??[])pt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])pt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])pt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,o){this.#t?.attributeChangedCallback(t,e,o),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Nt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#i(t){let e=this.constructor,o=e.L,i=this.#e,r=Object.values(t).find(h=>h.L===o),n=`${o}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);is(a),!e.A&&(e.A=r,customElements.define(n,r)),r.N=this;let l=document.createElement(n);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(i).forEach(os,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function os([s,t]){this[s]=t}var is=s=>{let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(i,r){e.setAttribute.call(this.el,i,r)},t.removeAttribute=function(i){e.removeAttribute.call(this.el,i)},pt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var ut=class extends he{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=ft in t&&typeof t.destroy=="function",$.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${ft} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=se(t,rs)}}S(t,e){let o=this.T;this.V=d,this.T=[],o.forEach(i=>i(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},rs=1e3,ft="autoDestroyDisabled";var me=E(class extends v{constructor(s){if(super(s),s.type!==m.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter((t=>s[t])).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((o=>o!==""))));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let i=!!t[o];i===this.st.has(o)||this.nt?.has(o)||(i?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var ye="important",ns=" !"+ye,ge=E(class extends v{constructor(s){if(super(s),s.type!==m.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce(((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let i=t[o];if(i!=null){this.ft.add(o);let r=typeof i=="string"&&i.endsWith(ns);o.includes("-")||r?e.setProperty(o,r?i.slice(0,-11):i,r?ye:""):e[o]=i}}return f}});var ve=class s extends ${constructor(){super(),this.M=[],this.manager=new ut(this);let t=this,e=t.constructor,o=e.N,i=e.K.o,r=s.prototype.shouldUpdate;t.#i=o?.H??new b,t.I=o?.I??new b,t.J=o?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=o??t,t.#s=t.enableUpdating,t.enableUpdating=xt,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),i&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,i()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Dt;return this.K?.commonStyles===void 0||o?e:[this.K.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,i=Array.isArray(e)?e[1]:void 0,r=i?.hasChanged??H,n={attribute:o&1&&typeof t=="string"?dt(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),c:!1,...i,hasChanged(a,c){let l=r(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,o){let i=this.K,r=super.getPropertyDescriptor(t,e,o);return o.d=r,{...r,get(){return i.t?.(this.#t.get(t)),r.get?.call(this)},set(n){let a=this.manager;if(o.readOnly&&!nt&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${n}"`);r.set.call(this,n??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#i;#r;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(o=>{this.#i.reject(o),setTimeout(()=>{throw o})})):t&&this.requestUpdate()}#c(t){try{this.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,r=t??(o===Dt?this.el:this.el.attachShadow(o));if(this.isConnected){let n=r.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#l(){let t=this.el.G??Nt(this.el);t&&await t;let e=[];for(let i of this.M)"triggerLoad"in i?e.push(i.triggerLoad()):e.push(F(i.hostLoad,i));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(i=>i.has(ft)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let o=this.J.filter(i=>!i.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async i=>await i.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let i of this.M)"triggerLoaded"in i?i.triggerLoaded():p(i.hostLoaded,i);this.loaded?.(),this.#i.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#c(t):super.update(t)}listen(t,e,o){let i=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,i,o),()=>this.el.removeEventListener(t,i,o)))}listenOn(t,e,o,i){let r=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,r,i),()=>t.removeEventListener(e,r,i)))}async componentOnReady(){return await this.#i.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var Ee=s=>{let t,e=i=>{t=new URL(i,globalThis.location?.href||void 0).href},o={...s,getAssetPath(i){let r=new URL(i,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(i,r){r.K=o,r.L=i,customElements.get(i)||customElements.define(i,r)}};return e(s.defaultAssetPath),o};var xi=s=>typeof s=="object"&&s!=null?me(s):s,Li=s=>typeof s=="object"&&s!=null?ge(s):s;var Lt=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(i){return e.#t.call(this,i)}}render(t){return typeof t=="function"?(this.#t=t,Tt(this.#e)):Tt(t)}},Ui=E(Lt);var Ri=d;function Mi(s,t,e){e==null?s.removeAttribute(t):s.setAttribute(t,e)}var Ii={toAttribute:s=>s===!0?"":s===!1?null:s};var _e="calcite-mode-auto",Ae="calcite-mode-dark",as="calcite-mode-light",Vi={autoMode:_e,darkMode:Ae,lightMode:as,rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left"},zi={filter:250,nextTick:0,resize:150,reposition:100},Bi=10,Wi=25;function $e(){let{classList:s}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,e=()=>s.contains(Ae)||s.contains(_e)&&t?"dark":"light",o=n=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:n}})),i=n=>{r!==n&&o(n),r=n},r=e();o(r),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",n=>i(n.matches?"dark":"light")),new MutationObserver(()=>i(e())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}var Rt,cs={focusTrapStack:[],logLevel:"info"};function ls(){return{...cs,...globalThis.calciteConfig??{}}}function hs(){return Rt||(Rt=ls()),Rt}var be="5.0.0-next.75",ds="2026-01-22",ps="56445fffd";function us(){let s=hs();s&&s.version||(console.info(`Using Calcite Components ${be} [Date: ${ds}, Revision: ${ps}]`),Object.defineProperty(s,"version",{value:be,writable:!1}),globalThis.calciteConfig=s)}document.readyState==="interactive"?$e():document.addEventListener("DOMContentLoaded",$e,{once:!0});queueMicrotask(us);var fs=Ee({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.0.0-next.75/dist/cdn/",hydratedAttribute:"calcite-hydrated"}),{customElement:Fi,getAssetPath:qi,setAssetPath:Gi}=fs;export{Rs as a,D as b,Zt as c,Xt as d,Ms as e,Is as f,Ce as g,Es as h,$s as i,bs as j,f as k,d as l,At as m,Hs as n,Be as o,Fe as p,wt as q,he as r,ts as s,m as t,E as u,v,Ys as w,Zs as x,pe as y,Xs as z,to as A,Ke as B,go as C,Tt as D,ve as E,xi as F,Li as G,Ri as H,Mi as I,Ii as J,Vi as K,zi as L,Bi as M,Wi as N,hs as O,fs as P,Fi as Q,qi as R};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{a as p}from"./D2BIPE73.js";import{a as c}from"./F327VYUC.js";import"./ZMUA6AOW.js";import{c as f}from"./6PU3J3IP.js";import"./AHSC4NMW.js";import{l as h,u as m,y as l}from"./ABO7NKZD.js";import"./UUPPUJNG.js";import{E as u,Q as r,g as o,h as n}from"./BK3V4SS7.js";var d=o`:host{display:flex}ul{margin:0;display:inline-flex;block-size:100%;align-items:center;padding:0}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends u{constructor(){super(),this.attributeWatch=f(["role"],this.handleGlobalAttributesChanged),this.menuItems=[],this.messages=p(),this.focusSetter=c()(this),this.layout="horizontal",this.listen("calciteInternalMenuItemKeyEvent",this.calciteInternalNavMenuItemKeyEvent)}static{this.properties={label:1,layout:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}]}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=d}async setFocus(e){return this.focusSetter(()=>this.menuItems[0],e)}willUpdate(e){e.has("layout")&&(this.hasUpdated||this.layout!=="horizontal")&&this.setMenuItemLayout(this.menuItems,this.layout)}handleGlobalAttributesChanged(){this.requestUpdate(),this.setMenuItemLayout(this.menuItems,this.layout)}calciteInternalNavMenuItemKeyEvent(e){let t=e.target,s=e.detail.children,i=e.detail.event.key;e.stopPropagation(),i==="ArrowDown"?t.layout==="vertical"?l(this.menuItems,t,"next",!1,!1):e.detail.isSubmenuOpen&&s[0].setFocus():i==="ArrowUp"?this.layout==="vertical"?l(this.menuItems,t,"previous",!1,!1):e.detail.isSubmenuOpen&&s[s.length-1].setFocus():i==="ArrowRight"?this.layout==="horizontal"?l(this.menuItems,t,"next",!1,!1):e.detail.isSubmenuOpen&&s[0].setFocus():i==="ArrowLeft"?this.layout==="horizontal"?l(this.menuItems,t,"previous",!1,!1):e.detail.isSubmenuOpen&&this.focusParentElement(e.target):i==="Escape"&&this.focusParentElement(e.target),e.preventDefault()}handleMenuSlotChange(e){this.menuItems=m(e),this.setMenuItemLayout(this.menuItems,this.layout)}focusParentElement(e){let t=e.parentElement;t&&(h(t),t.open=!1)}setMenuItemLayout(e,t){e.forEach(s=>{s.layout=t,this.getEffectiveRole()==="menubar"&&(s.isTopLevelItem=!0,s.topLevelMenuLayout=this.layout)})}getEffectiveRole(){return this.el.role||"menubar"}render(){return n`<ul .ariaLabel=${this.label} .role=${this.getEffectiveRole()}><slot @slotchange=${this.handleMenuSlotChange}></slot></ul>`}};r("calcite-menu",a);export{a as Menu};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
4
|
var m=(t,e,n)=>Math.max(e,Math.min(t,n)),c=new RegExp(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/),s=t=>{let e=(""+t).match(c);return!e||parseInt(e[1])===0?0:Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0))};function i(t){return s(t)>0&&t>0?parseFloat(`0.${t.toString().split(".")[1]}`):t}function o(t,e,n,a,r){return(t-e)*(r-a)/(n-e)+a}function g(t,e,n){return t<n?-1:t>e-n?1:0}export{m as a,s as b,i as c,o as d,g as e};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{E as s,Q as i,h as l,p as a}from"./BK3V4SS7.js";var e=class extends s{constructor(){super(...arguments),this.disabled=!1,this.calciteInternalOptionGroupChange=a({cancelable:!1})}static{this.properties={disabled:[7,{},{reflect:!0,type:Boolean}],label:1}}willUpdate(t){(t.has("disabled")&&(this.hasUpdated||this.disabled!==!1)||t.has("label"))&&this.calciteInternalOptionGroupChange.emit()}render(){return l`<div>${this.label}</div><slot></slot>`}};i("calcite-option-group",e);export{e as OptionGroup};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{e as t}from"./
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{e as t}from"./6PU3J3IP.js";import{R as o}from"./BK3V4SS7.js";var s=t(o);export{s as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{b as r}from"./
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{b as r}from"./6PU3J3IP.js";var n=0,u="",f=()=>{function t(){n++,n===1&&(u=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden")}function o(){n--,n===0&&(document.documentElement.style.overflow=u)}return r((e,l)=>{l.onConnected(()=>{e.opened&&e.preventDocumentScroll&&t()}),l.onUpdate(d=>{e.hasUpdated&&(d.has("opened")&&e.preventDocumentScroll?e.opened?t():o():d.has("preventDocumentScroll")&&e.opened&&(e.preventDocumentScroll?t():o()))}),l.onDisconnected(()=>{e.opened&&e.preventDocumentScroll&&o()})})};export{f as a};
|