@nasa-terra/components 0.0.16 → 0.0.19
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/cdn/chunks/{chunk.2TIJ6R6B.js → chunk.255N2VBJ.js} +1 -1
- package/cdn/chunks/{chunk.JIUOSOVY.js → chunk.26M35UMA.js} +1 -1
- package/cdn/chunks/{chunk.7VSR26CA.js → chunk.2MR4S2RG.js} +2 -2
- package/cdn/chunks/{chunk.EHY7VY3A.js → chunk.35UPRHLO.js} +1 -1
- package/cdn/chunks/{chunk.XV5OXFZF.js → chunk.3QDQU6IH.js} +1 -1
- package/cdn/chunks/{chunk.JM34BH4L.js → chunk.3X46EXSH.js} +1 -1
- package/cdn/chunks/{chunk.336JMC6Z.js → chunk.4BM5VFHP.js} +4 -2
- package/cdn/chunks/{chunk.KNJGM7ZC.js → chunk.7NUP2QM3.js} +1 -1
- package/cdn/chunks/{chunk.FKIVBKR4.js → chunk.A7JNBDMV.js} +1 -1
- package/{dist/chunks/chunk.2GTDPFRM.js → cdn/chunks/chunk.CVMKTAN6.js} +1 -1
- package/cdn/chunks/{chunk.RPXN4NU2.js → chunk.D4PVXIX4.js} +1 -1
- package/cdn/chunks/{chunk.VLVUJMLW.js → chunk.D4RFPP4E.js} +14 -14
- package/cdn/chunks/{chunk.IA24KXWX.js → chunk.EFFYILRO.js} +1 -1
- package/{dist/chunks/chunk.CBU7JODA.js → cdn/chunks/chunk.FXBR2CLR.js} +1 -1
- package/cdn/chunks/{chunk.AI62NGNK.js → chunk.GGXVEHRQ.js} +1 -1
- package/cdn/chunks/{chunk.MGN45BTW.js → chunk.GVXNMKZL.js} +1 -1
- package/cdn/chunks/{chunk.LCBLTPNH.js → chunk.H4JY2YI5.js} +1 -1
- package/cdn/chunks/{chunk.3ENNXZ6R.js → chunk.HOJQS4WB.js} +23 -14
- package/cdn/chunks/{chunk.T3R3UWJ7.js → chunk.HYBK26DZ.js} +3 -3
- package/cdn/chunks/{chunk.VXV5USN7.js → chunk.I4SJOUOT.js} +9 -9
- package/cdn/chunks/{chunk.5TCRMMVM.js → chunk.IEKKFDDR.js} +1 -1
- package/cdn/chunks/{chunk.QQ3GAD4X.js → chunk.JF5WE7DB.js} +4 -4
- package/cdn/chunks/{chunk.F6HKKNJR.js → chunk.K3KUUN7M.js} +15 -15
- package/cdn/chunks/{chunk.EIMG4XGS.js → chunk.KGVGJIN6.js} +4 -4
- package/cdn/chunks/{chunk.DY5SMOW7.js → chunk.KRV3QC6E.js} +1 -2
- package/cdn/chunks/{chunk.SDCAKUF2.js → chunk.MU5VF7T7.js} +1 -1
- package/cdn/chunks/{chunk.57LVW27O.js → chunk.N36ACYG7.js} +1 -1
- package/cdn/chunks/{chunk.TG4WI6CA.js → chunk.N6CSKYGG.js} +1 -1
- package/cdn/chunks/{chunk.PETOVVIO.js → chunk.PHMP6QZK.js} +1 -1
- package/cdn/chunks/{chunk.TOG3CR4L.js → chunk.Q7V7IFTI.js} +1 -1
- package/cdn/chunks/{chunk.WVAKAESC.js → chunk.RJCQ5JYU.js} +1 -1
- package/cdn/chunks/{chunk.ODLY7QWO.js → chunk.RPRZYXWX.js} +1 -1
- package/cdn/chunks/{chunk.F3WO26WZ.js → chunk.SAY53MDH.js} +3 -3
- package/{dist/chunks/chunk.KPXFSE3J.js → cdn/chunks/chunk.SBTMIM4P.js} +6 -3
- package/cdn/chunks/{chunk.RYDRC65X.js → chunk.SU7526RC.js} +1 -1
- package/{dist/chunks/chunk.34PQNYPP.js → cdn/chunks/chunk.T6LQIGOC.js} +1 -1
- package/{dist/chunks/chunk.KCYAARKK.js → cdn/chunks/chunk.T6XNILRG.js} +1 -1
- package/cdn/chunks/{chunk.5EGY75T5.js → chunk.UBVSIOSK.js} +4 -4
- package/cdn/chunks/{chunk.77DLQZVO.js → chunk.UQREFLTK.js} +1 -1
- package/cdn/chunks/{chunk.GZ24SYY3.js → chunk.VJ3ZRWAI.js} +2 -6
- package/cdn/chunks/{chunk.TD5OSBG3.js → chunk.VVXXEKVB.js} +1 -1
- package/cdn/chunks/{chunk.PBTOMMNF.js → chunk.VWOCHHDI.js} +7 -7
- package/cdn/chunks/{chunk.G6ADH3AH.js → chunk.WLGNUWUQ.js} +1 -1
- package/cdn/chunks/{chunk.QE6VXD5B.js → chunk.WRRDTOCT.js} +5 -2
- package/cdn/chunks/{chunk.IFWHGZLJ.js → chunk.XPKFSIPV.js} +1 -1
- package/cdn/chunks/{chunk.OB7ATVCO.js → chunk.YGXFM6FJ.js} +1 -1
- package/cdn/chunks/{chunk.CZH6I2IA.js → chunk.ZAYAT2TO.js} +1 -1
- package/cdn/chunks/{chunk.X2ZVRY4H.js → chunk.ZJVBOKXX.js} +1 -1
- package/cdn/chunks/{chunk.NGNH7UG4.js → chunk.ZMHMRAXL.js} +4 -4
- package/cdn/chunks/{chunk.MSS2SPZN.js → chunk.ZSTKVGYN.js} +1 -1
- package/cdn/components/browse-variables/browse-variables.component.js +19 -19
- package/cdn/components/browse-variables/browse-variables.js +20 -20
- package/cdn/components/button/button.component.js +4 -4
- package/cdn/components/button/button.js +5 -5
- package/cdn/components/chip/chip.component.js +2 -2
- package/cdn/components/chip/chip.js +3 -3
- package/cdn/components/combobox/combobox.component.js +4 -4
- package/cdn/components/combobox/combobox.js +5 -5
- package/cdn/components/date-range-slider/date-range-slider.component.js +3 -3
- package/cdn/components/date-range-slider/date-range-slider.js +4 -4
- package/cdn/components/giovanni-search/giovanni-search.component.js +13 -13
- package/cdn/components/giovanni-search/giovanni-search.js +14 -14
- package/cdn/components/icon/icon.component.js +4 -4
- package/cdn/components/icon/icon.js +5 -5
- package/cdn/components/icon/library.js +2 -2
- package/cdn/components/loader/loader.component.js +2 -2
- package/cdn/components/loader/loader.js +3 -3
- package/cdn/components/login/login.component.js +13 -13
- package/cdn/components/login/login.js +14 -14
- package/cdn/components/map/leaflet-utils.d.ts +1 -1
- package/cdn/components/map/leaflet-utils.js +1 -1
- package/cdn/components/map/map.component.js +5 -5
- package/cdn/components/map/map.controller.js +1 -1
- package/cdn/components/map/map.js +6 -6
- package/cdn/components/plot/plot.component.js +2 -2
- package/cdn/components/plot/plot.js +3 -3
- package/cdn/components/skeleton/skeleton.component.js +2 -2
- package/cdn/components/skeleton/skeleton.js +3 -3
- package/cdn/components/spatial-picker/spatial-picker.component.js +6 -6
- package/cdn/components/spatial-picker/spatial-picker.js +7 -7
- package/cdn/components/time-series/time-series.component.d.ts +4 -2
- package/cdn/components/time-series/time-series.component.js +25 -25
- package/cdn/components/time-series/time-series.controller.d.ts +4 -3
- package/cdn/components/time-series/time-series.controller.js +1 -1
- package/cdn/components/time-series/time-series.js +26 -26
- package/cdn/components/variable-combobox/variable-combobox.component.js +12 -12
- package/cdn/components/variable-combobox/variable-combobox.controller.js +2 -2
- package/cdn/components/variable-combobox/variable-combobox.js +13 -13
- package/cdn/custom-elements.json +458 -450
- package/cdn/events/events.d.ts +1 -0
- package/cdn/events/terra-time-series-data-change.d.ts +16 -0
- package/cdn/react/browse-variables/index.js +20 -20
- package/cdn/react/button/index.js +5 -5
- package/cdn/react/chip/index.js +3 -3
- package/cdn/react/combobox/index.js +5 -5
- package/cdn/react/date-range-slider/index.js +4 -4
- package/cdn/react/giovanni-search/index.js +14 -14
- package/cdn/react/icon/index.js +5 -5
- package/cdn/react/index.d.ts +2 -2
- package/cdn/react/index.js +64 -64
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +14 -14
- package/cdn/react/map/index.js +6 -6
- package/cdn/react/plot/index.js +3 -3
- package/cdn/react/skeleton/index.js +3 -3
- package/cdn/react/spatial-picker/index.js +7 -7
- package/cdn/react/time-series/index.d.ts +8 -1
- package/cdn/react/time-series/index.js +26 -26
- package/cdn/react/variable-combobox/index.js +13 -13
- package/cdn/terra-ui-components.js +58 -58
- package/cdn/types/vue/index.d.ts +68 -63
- package/cdn/utilities/icon-library.js +2 -2
- package/cdn/vscode.html-custom-data.json +49 -49
- package/cdn/web-types.json +85 -75
- package/{cdn/chunks/chunk.JBZMCSPD.js → dist/chunks/chunk.267RAJCD.js} +1 -1
- package/dist/chunks/{chunk.DV6U7J5D.js → chunk.2GFNQRFQ.js} +6 -6
- package/dist/chunks/{chunk.2KFIIWTA.js → chunk.2GIVYMVS.js} +1 -1
- package/dist/chunks/{chunk.ECOMXZ5Z.js → chunk.2SW6ZLO3.js} +6 -6
- package/dist/chunks/{chunk.5TCRMMVM.js → chunk.5BLMPQLX.js} +1 -1
- package/{cdn/chunks/chunk.MTNKN7SC.js → dist/chunks/chunk.6BQMITBG.js} +1 -1
- package/dist/chunks/{chunk.BQKL24VU.js → chunk.6W5DHHGH.js} +1 -1
- package/{cdn/chunks/chunk.NZLN7XGH.js → dist/chunks/chunk.6XGCF2AT.js} +1 -1
- package/{cdn/chunks/chunk.WALPLM23.js → dist/chunks/chunk.BLNX7W6U.js} +1 -1
- package/{cdn/chunks/chunk.34PQNYPP.js → dist/chunks/chunk.BQZFEJJM.js} +1 -1
- package/{cdn/chunks/chunk.NXW5W246.js → dist/chunks/chunk.CG2UCM6R.js} +4 -4
- package/{cdn/chunks/chunk.QJJV3URN.js → dist/chunks/chunk.CIHL36QS.js} +1 -1
- package/{cdn/chunks/chunk.NHY4FPXP.js → dist/chunks/chunk.DOHDFFXP.js} +6 -6
- package/{cdn/chunks/chunk.CUBR5ACQ.js → dist/chunks/chunk.DTO6LPWI.js} +1 -1
- package/{cdn/chunks/chunk.TFD7EM3D.js → dist/chunks/chunk.DWTCCF6R.js} +1 -1
- package/dist/chunks/{chunk.DR7BNSRT.js → chunk.E2GNJGZV.js} +1 -1
- package/dist/chunks/{chunk.SL7W466R.js → chunk.EX74UTJ7.js} +1 -1
- package/{cdn/chunks/chunk.UFFAH5CF.js → dist/chunks/chunk.FYQLL4HT.js} +1 -1
- package/{cdn/chunks/chunk.5HSDW7A7.js → dist/chunks/chunk.GAYRUSX6.js} +1 -1
- package/dist/chunks/{chunk.FKSGPKJ4.js → chunk.GGC3H4U4.js} +1 -1
- package/dist/chunks/{chunk.HSXXKVP2.js → chunk.GVOL34BS.js} +1 -1
- package/{cdn/chunks/chunk.TWEJH5NG.js → dist/chunks/chunk.HEWVEHI5.js} +1 -1
- package/dist/chunks/{chunk.FRYGAWGB.js → chunk.I3WITIFZ.js} +1 -1
- package/{cdn/chunks/chunk.WYAUVXJM.js → dist/chunks/chunk.ICVWA4P5.js} +5 -2
- package/{cdn/chunks/chunk.TRSTZLH4.js → dist/chunks/chunk.IKXISAQ2.js} +1 -1
- package/{cdn/chunks/chunk.EUMBRSX6.js → dist/chunks/chunk.ITTYAXUW.js} +1 -1
- package/{cdn/chunks/chunk.AE3PFNQE.js → dist/chunks/chunk.JFDJULBY.js} +1 -1
- package/{cdn/chunks/chunk.Y4T6LEGB.js → dist/chunks/chunk.JQIAVJLL.js} +1 -1
- package/{cdn/chunks/chunk.XSTI34LB.js → dist/chunks/chunk.JRFWKQYN.js} +1 -1
- package/dist/chunks/{chunk.EU6EQVBK.js → chunk.KADMU3E4.js} +3 -3
- package/dist/chunks/{chunk.GPMEZSRZ.js → chunk.KBIE3IOP.js} +1 -1
- package/{cdn/chunks/chunk.SQBTHONX.js → dist/chunks/chunk.LA3ITE3F.js} +3 -3
- package/dist/chunks/{chunk.G3K7U3GY.js → chunk.LHTTKRV2.js} +4 -4
- package/{cdn/chunks/chunk.EAPY6ENL.js → dist/chunks/chunk.LIXRQ4TF.js} +1 -1
- package/{cdn/chunks/chunk.DGKBWVVI.js → dist/chunks/chunk.MVIGRS3J.js} +1 -1
- package/{cdn/chunks/chunk.5LOTY62O.js → dist/chunks/chunk.PHKCL7D5.js} +1 -1
- package/dist/chunks/{chunk.7OAL7XX6.js → chunk.RQNB3PHE.js} +1 -1
- package/dist/chunks/{chunk.6ZBHXUFH.js → chunk.RSVF27RD.js} +1 -1
- package/{cdn/chunks/chunk.KPXFSE3J.js → dist/chunks/chunk.SBTMIM4P.js} +6 -3
- package/dist/chunks/{chunk.U4QKPX6T.js → chunk.SLW4ZVXI.js} +25 -16
- package/dist/chunks/{chunk.I5ZJKFQJ.js → chunk.TFKLXJVS.js} +12 -12
- package/dist/chunks/{chunk.BY7D7WUU.js → chunk.TK54QVRF.js} +4 -4
- package/{cdn/chunks/chunk.2GTDPFRM.js → dist/chunks/chunk.TRICHLNH.js} +1 -1
- package/dist/chunks/{chunk.ZC2AYSV2.js → chunk.UBBSTKSW.js} +4 -2
- package/{cdn/chunks/chunk.UQKHXO3T.js → dist/chunks/chunk.UCFFAP7X.js} +1 -2
- package/dist/chunks/{chunk.RPCYLOW6.js → chunk.UKBQUK7O.js} +1 -1
- package/{cdn/chunks/chunk.NLHKPFJJ.js → dist/chunks/chunk.WFSOHTHG.js} +1 -1
- package/dist/chunks/{chunk.6BHFQXZZ.js → chunk.X232PDAN.js} +1 -1
- package/{cdn/chunks/chunk.EPQIDDJG.js → dist/chunks/chunk.XBXVMXH7.js} +2 -6
- package/dist/chunks/{chunk.45HI7TFT.js → chunk.XVXKFPWS.js} +1 -1
- package/dist/components/browse-variables/browse-variables.component.js +16 -16
- package/dist/components/browse-variables/browse-variables.js +17 -17
- package/dist/components/button/button.component.js +3 -3
- package/dist/components/button/button.js +4 -4
- package/dist/components/chip/chip.component.js +2 -2
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/combobox/combobox.component.js +3 -3
- package/dist/components/combobox/combobox.js +4 -4
- package/dist/components/date-range-slider/date-range-slider.component.js +3 -3
- package/dist/components/date-range-slider/date-range-slider.js +4 -4
- package/dist/components/giovanni-search/giovanni-search.component.js +11 -11
- package/dist/components/giovanni-search/giovanni-search.js +12 -12
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/library.js +2 -2
- package/dist/components/loader/loader.component.js +2 -2
- package/dist/components/loader/loader.js +3 -3
- package/dist/components/login/login.component.js +11 -11
- package/dist/components/login/login.js +12 -12
- package/dist/components/map/leaflet-utils.d.ts +1 -1
- package/dist/components/map/leaflet-utils.js +1 -1
- package/dist/components/map/map.component.js +4 -4
- package/dist/components/map/map.controller.js +1 -1
- package/dist/components/map/map.js +5 -5
- package/dist/components/plot/plot.component.js +2 -2
- package/dist/components/plot/plot.js +3 -3
- package/dist/components/skeleton/skeleton.component.js +2 -2
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/spatial-picker/spatial-picker.component.js +5 -5
- package/dist/components/spatial-picker/spatial-picker.js +6 -6
- package/dist/components/time-series/time-series.component.d.ts +4 -2
- package/dist/components/time-series/time-series.component.js +21 -21
- package/dist/components/time-series/time-series.controller.d.ts +4 -3
- package/dist/components/time-series/time-series.controller.js +1 -1
- package/dist/components/time-series/time-series.js +22 -22
- package/dist/components/variable-combobox/variable-combobox.component.js +10 -10
- package/dist/components/variable-combobox/variable-combobox.controller.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.js +11 -11
- package/dist/custom-elements.json +458 -450
- package/dist/events/events.d.ts +1 -0
- package/dist/events/terra-time-series-data-change.d.ts +16 -0
- package/dist/react/browse-variables/index.js +17 -17
- package/dist/react/button/index.js +4 -4
- package/dist/react/chip/index.js +3 -3
- package/dist/react/combobox/index.js +4 -4
- package/dist/react/date-range-slider/index.js +4 -4
- package/dist/react/giovanni-search/index.js +12 -12
- package/dist/react/icon/index.js +5 -5
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +59 -59
- package/dist/react/loader/index.js +3 -3
- package/dist/react/login/index.js +12 -12
- package/dist/react/map/index.js +5 -5
- package/dist/react/plot/index.js +3 -3
- package/dist/react/skeleton/index.js +3 -3
- package/dist/react/spatial-picker/index.js +6 -6
- package/dist/react/time-series/index.d.ts +8 -1
- package/dist/react/time-series/index.js +22 -22
- package/dist/react/variable-combobox/index.js +11 -11
- package/dist/terra-ui-components.js +53 -53
- package/dist/terra_ui_components-0.0.19-py3-none-any.whl +0 -0
- package/dist/{terra_ui_components-0.0.16.tar.gz → terra_ui_components-0.0.19.tar.gz} +0 -0
- package/dist/types/vue/index.d.ts +68 -63
- package/dist/utilities/icon-library.js +2 -2
- package/dist/vscode.html-custom-data.json +49 -49
- package/dist/web-types.json +85 -75
- package/package.json +3 -4
- package/cdn/chunks/chunk.2DQS7YWJ.js +0 -41
- package/cdn/chunks/chunk.2KFIIWTA.js +0 -53
- package/cdn/chunks/chunk.2TEPJ23V.js +0 -11
- package/cdn/chunks/chunk.2V4XFMTB.js +0 -7
- package/cdn/chunks/chunk.3IXG5IJD.js +0 -21
- package/cdn/chunks/chunk.45HI7TFT.js +0 -11
- package/cdn/chunks/chunk.62YHGVQN.js +0 -335
- package/cdn/chunks/chunk.6PYVTQGY.js +0 -11
- package/cdn/chunks/chunk.7OAL7XX6.js +0 -21
- package/cdn/chunks/chunk.7OKJDEHN.js +0 -139
- package/cdn/chunks/chunk.7VUSSQRI.js +0 -20
- package/cdn/chunks/chunk.7WL3WWGJ.js +0 -293
- package/cdn/chunks/chunk.AAWOHDFX.js +0 -259
- package/cdn/chunks/chunk.ADOXGJHH.js +0 -11
- package/cdn/chunks/chunk.APJOA6RL.js +0 -655
- package/cdn/chunks/chunk.BQKL24VU.js +0 -82
- package/cdn/chunks/chunk.BY7D7WUU.js +0 -180
- package/cdn/chunks/chunk.CBU7JODA.js +0 -11
- package/cdn/chunks/chunk.CNUQQWCR.js +0 -215
- package/cdn/chunks/chunk.DR7BNSRT.js +0 -21
- package/cdn/chunks/chunk.DV6U7J5D.js +0 -264
- package/cdn/chunks/chunk.EGZMQ7T7.js +0 -35
- package/cdn/chunks/chunk.FBOXM56P.js +0 -19
- package/cdn/chunks/chunk.FWXMF6WX.js +0 -327
- package/cdn/chunks/chunk.GHDRVO5M.js +0 -125
- package/cdn/chunks/chunk.GR7XHOA3.js +0 -52
- package/cdn/chunks/chunk.I5ZJKFQJ.js +0 -578
- package/cdn/chunks/chunk.JOOAZ4RH.js +0 -50
- package/cdn/chunks/chunk.KAV5L6Z5.js +0 -318
- package/cdn/chunks/chunk.KZ3ISS6V.js +0 -120
- package/cdn/chunks/chunk.LELNKRPW.js +0 -685
- package/cdn/chunks/chunk.MDRUDBRH.js +0 -43
- package/cdn/chunks/chunk.NX4TE64Y.js +0 -25
- package/cdn/chunks/chunk.OIDMX5LU.js +0 -10
- package/cdn/chunks/chunk.PICX7LPQ.js +0 -194
- package/cdn/chunks/chunk.PL4INVKT.js +0 -24
- package/cdn/chunks/chunk.Q44TP6D4.js +0 -477
- package/cdn/chunks/chunk.QEMJLGM4.js +0 -58
- package/cdn/chunks/chunk.QK5OWFVO.js +0 -238
- package/cdn/chunks/chunk.RPCYLOW6.js +0 -354
- package/cdn/chunks/chunk.RV2KFFXW.js +0 -116
- package/cdn/chunks/chunk.SK7IZCKP.js +0 -37
- package/cdn/chunks/chunk.SR6QXNO3.js +0 -24
- package/cdn/chunks/chunk.TQJATCGZ.js +0 -11
- package/cdn/chunks/chunk.TVFCHGU3.js +0 -76
- package/cdn/chunks/chunk.U4QKPX6T.js +0 -192
- package/cdn/chunks/chunk.UGKIMEZW.js +0 -21
- package/cdn/chunks/chunk.UIYPAVP3.js +0 -104
- package/cdn/chunks/chunk.USCKHG5S.js +0 -25
- package/cdn/chunks/chunk.V7JJFRAE.js +0 -11
- package/cdn/chunks/chunk.W7JRXR2Y.js +0 -293
- package/cdn/chunks/chunk.YL2ETAOO.js +0 -153
- package/cdn/chunks/chunk.Z2ELMSYN.js +0 -63
- package/cdn/chunks/chunk.ZC2AYSV2.js +0 -273
- package/dist/chunks/chunk.2O6HB6W6.js +0 -21
- package/dist/chunks/chunk.3WHG66G3.js +0 -177
- package/dist/chunks/chunk.57LVW27O.js +0 -11
- package/dist/chunks/chunk.5LOTY62O.js +0 -120
- package/dist/chunks/chunk.5O7TTTJD.js +0 -351
- package/dist/chunks/chunk.5UE4SLYC.js +0 -120
- package/dist/chunks/chunk.6CLWIMAP.js +0 -21
- package/dist/chunks/chunk.6GMULXGW.js +0 -21
- package/dist/chunks/chunk.7QKG7IRI.js +0 -379
- package/dist/chunks/chunk.A6JU7GRG.js +0 -25
- package/dist/chunks/chunk.AC6WDIAW.js +0 -11
- package/dist/chunks/chunk.ADOXGJHH.js +0 -11
- package/dist/chunks/chunk.CPXWDTHF.js +0 -214
- package/dist/chunks/chunk.CUBR5ACQ.js +0 -11
- package/dist/chunks/chunk.CZH6I2IA.js +0 -11
- package/dist/chunks/chunk.DIBCM2Y3.js +0 -11
- package/dist/chunks/chunk.EAPY6ENL.js +0 -11
- package/dist/chunks/chunk.EG7EICTO.js +0 -406
- package/dist/chunks/chunk.EHY7VY3A.js +0 -21
- package/dist/chunks/chunk.EPQIDDJG.js +0 -379
- package/dist/chunks/chunk.EZTCV6LQ.js +0 -95
- package/dist/chunks/chunk.FIMCDNWK.js +0 -11
- package/dist/chunks/chunk.FKIVBKR4.js +0 -11
- package/dist/chunks/chunk.FWXMF6WX.js +0 -327
- package/dist/chunks/chunk.FY4LGVGC.js +0 -21
- package/dist/chunks/chunk.G34ZJR6B.js +0 -11
- package/dist/chunks/chunk.GVG7MLLN.js +0 -21
- package/dist/chunks/chunk.I5DIH6L6.js +0 -11
- package/dist/chunks/chunk.IFWHGZLJ.js +0 -21
- package/dist/chunks/chunk.IYEX72BV.js +0 -11
- package/dist/chunks/chunk.J7P5CNNR.js +0 -11
- package/dist/chunks/chunk.JM34BH4L.js +0 -11
- package/dist/chunks/chunk.KQCFGTAH.js +0 -82
- package/dist/chunks/chunk.MDRUDBRH.js +0 -43
- package/dist/chunks/chunk.MHMITM2Q.js +0 -21
- package/dist/chunks/chunk.MTNKN7SC.js +0 -95
- package/dist/chunks/chunk.NHY4FPXP.js +0 -351
- package/dist/chunks/chunk.NQZGHZYS.js +0 -11
- package/dist/chunks/chunk.NXW5W246.js +0 -406
- package/dist/chunks/chunk.NZLN7XGH.js +0 -214
- package/dist/chunks/chunk.OB7ATVCO.js +0 -24
- package/dist/chunks/chunk.ODLY7QWO.js +0 -11
- package/dist/chunks/chunk.PARFAN5E.js +0 -25
- package/dist/chunks/chunk.PCU3BZMH.js +0 -264
- package/dist/chunks/chunk.PETOVVIO.js +0 -21
- package/dist/chunks/chunk.PICX7LPQ.js +0 -194
- package/dist/chunks/chunk.PYDXDZ7R.js +0 -21
- package/dist/chunks/chunk.Q44TP6D4.js +0 -477
- package/dist/chunks/chunk.Q67RNINH.js +0 -180
- package/dist/chunks/chunk.QLUHMJKU.js +0 -53
- package/dist/chunks/chunk.RR45MD47.js +0 -11
- package/dist/chunks/chunk.RYDRC65X.js +0 -11
- package/dist/chunks/chunk.SDCAKUF2.js +0 -11
- package/dist/chunks/chunk.SKHGD7CP.js +0 -578
- package/dist/chunks/chunk.SQBTHONX.js +0 -177
- package/dist/chunks/chunk.SR6QXNO3.js +0 -24
- package/dist/chunks/chunk.SS24NNGJ.js +0 -11
- package/dist/chunks/chunk.TFD7EM3D.js +0 -21
- package/dist/chunks/chunk.TOG3CR4L.js +0 -21
- package/dist/chunks/chunk.U2URIXJW.js +0 -354
- package/dist/chunks/chunk.UJ7TXBCU.js +0 -21
- package/dist/chunks/chunk.UQKHXO3T.js +0 -66
- package/dist/chunks/chunk.V7JJFRAE.js +0 -11
- package/dist/chunks/chunk.VR2UR6LQ.js +0 -11
- package/dist/chunks/chunk.WALPLM23.js +0 -11
- package/dist/chunks/chunk.WVAKAESC.js +0 -21
- package/dist/chunks/chunk.WYAUVXJM.js +0 -21
- package/dist/chunks/chunk.XSTI34LB.js +0 -21
- package/dist/chunks/chunk.XUW42A44.js +0 -21
- package/dist/chunks/chunk.XV5OXFZF.js +0 -21
- package/dist/terra_ui_components-0.0.16-py3-none-any.whl +0 -0
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__spreadValues
|
|
3
|
-
} from "./chunk.TVFCHGU3.js";
|
|
4
|
-
|
|
5
|
-
// src/components/map/leaflet-utils.ts
|
|
6
|
-
import * as L from "leaflet";
|
|
7
|
-
import "leaflet-draw";
|
|
8
|
-
globalThis.type = "";
|
|
9
|
-
function parseBoundingBox(inputString) {
|
|
10
|
-
const coords = inputString.split(",");
|
|
11
|
-
if (coords.length !== 2 && coords.length !== 4) {
|
|
12
|
-
throw new Error(
|
|
13
|
-
'Input string must contain exactly two or four numerical values. e.g "9.51, 21.80" or "52.03, -9.38, 96.33, 32.90"'
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
if (coords.length == 2) {
|
|
17
|
-
return {
|
|
18
|
-
lat: parseFloat(coords[0]),
|
|
19
|
-
lng: parseFloat(coords[1])
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
const bounds = coords.map(function(coord) {
|
|
23
|
-
let num = parseFloat(coord);
|
|
24
|
-
if (isNaN(num)) {
|
|
25
|
-
throw new Error("All parts of the input string must be valid numbers.");
|
|
26
|
-
}
|
|
27
|
-
return num;
|
|
28
|
-
});
|
|
29
|
-
const leafletBounds = [
|
|
30
|
-
[bounds[1], bounds[0]],
|
|
31
|
-
[bounds[3], bounds[2]]
|
|
32
|
-
];
|
|
33
|
-
return leafletBounds;
|
|
34
|
-
}
|
|
35
|
-
function StringifyBoundingBox(input) {
|
|
36
|
-
if ("_southWest" in input && "_northEast" in input) {
|
|
37
|
-
return `${input._southWest.lng.toFixed(2)}, ${input._southWest.lat.toFixed(
|
|
38
|
-
2
|
|
39
|
-
)}, ${input._northEast.lng.toFixed(2)}, ${input._northEast.lat.toFixed(2)}`;
|
|
40
|
-
} else if ("lat" in input && "lng" in input) {
|
|
41
|
-
return `${input.lat.toFixed(2)}, ${input.lng.toFixed(2)}`;
|
|
42
|
-
} else {
|
|
43
|
-
throw new Error("Invalid input type");
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
var Leaflet = class {
|
|
47
|
-
constructor() {
|
|
48
|
-
this.listeners = [];
|
|
49
|
-
this.isMapReady = false;
|
|
50
|
-
this.handleShapeSelect = this.handleShapeSelect.bind(this);
|
|
51
|
-
}
|
|
52
|
-
// map initialization function
|
|
53
|
-
initializeMap(container, options) {
|
|
54
|
-
this.map = new L.Map(container, {
|
|
55
|
-
center: options.latitude && options.longitude ? L.latLng(options.latitude, options.longitude) : L.latLng(40.731253, -73.996139),
|
|
56
|
-
zoom: options.zoom,
|
|
57
|
-
attributionControl: false,
|
|
58
|
-
minZoom: options.minZoom,
|
|
59
|
-
maxZoom: options.maxZoom
|
|
60
|
-
});
|
|
61
|
-
L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
|
62
|
-
maxZoom: options.maxZoom
|
|
63
|
-
}).addTo(this.map);
|
|
64
|
-
if (options.hasCoordTracker) {
|
|
65
|
-
this.addCoordTracker();
|
|
66
|
-
}
|
|
67
|
-
if (options.hasNavigation) {
|
|
68
|
-
this.addDrawControl();
|
|
69
|
-
}
|
|
70
|
-
this.map.whenReady((_e) => {
|
|
71
|
-
var _a;
|
|
72
|
-
this.isMapReady = true;
|
|
73
|
-
if (options.initialValue && "lat" in options.initialValue && "lng" in options.initialValue) {
|
|
74
|
-
L.marker(options.initialValue, {
|
|
75
|
-
icon: L.icon({
|
|
76
|
-
iconUrl: "https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png",
|
|
77
|
-
iconAnchor: [15, 40],
|
|
78
|
-
shadowUrl: "https://unpkg.com/leaflet@1.9.4/dist/images/marker-shadow.png"
|
|
79
|
-
})
|
|
80
|
-
}).addTo(this.editableLayers);
|
|
81
|
-
this.map.setView(options.initialValue, 5);
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
if (((_a = options.initialValue) == null ? void 0 : _a.length) > 0) {
|
|
85
|
-
L.rectangle(options.initialValue, {
|
|
86
|
-
stroke: true,
|
|
87
|
-
color: "#3388ff",
|
|
88
|
-
weight: 4,
|
|
89
|
-
opacity: 0.5,
|
|
90
|
-
fill: true,
|
|
91
|
-
fillOpacity: 0.2
|
|
92
|
-
}).addTo(this.editableLayers);
|
|
93
|
-
this.map.fitBounds(options.initialValue);
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
addCoordTracker() {
|
|
98
|
-
const CoordTracker = L.Control.extend({
|
|
99
|
-
options: {
|
|
100
|
-
position: "bottomright",
|
|
101
|
-
title: "Mouse Position",
|
|
102
|
-
exclude: [],
|
|
103
|
-
include: []
|
|
104
|
-
},
|
|
105
|
-
onAdd: function(map) {
|
|
106
|
-
this.div = L.DomUtil.create(
|
|
107
|
-
"div",
|
|
108
|
-
"leaflet-mouse-position-container leaflet-bar"
|
|
109
|
-
);
|
|
110
|
-
this.p = L.DomUtil.create(
|
|
111
|
-
"p",
|
|
112
|
-
"leaflet-mouse-position-text",
|
|
113
|
-
this.div
|
|
114
|
-
);
|
|
115
|
-
let content = "lat: 0, lng: 0";
|
|
116
|
-
this.p.innerHTML = content;
|
|
117
|
-
L.DomEvent.addListener(map, "mousemove", this._onChange, this);
|
|
118
|
-
return this.div;
|
|
119
|
-
},
|
|
120
|
-
_onChange: function(e) {
|
|
121
|
-
this.p.innerHTML = `lat: ${Math.round(
|
|
122
|
-
e.latlng.lat
|
|
123
|
-
)}, lng: ${Math.round(e.latlng.lng)}`;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
const coordTracker = new CoordTracker();
|
|
127
|
-
coordTracker.addTo(this.map);
|
|
128
|
-
}
|
|
129
|
-
addDrawControl() {
|
|
130
|
-
this.editableLayers = new L.FeatureGroup();
|
|
131
|
-
this.editableLayers.addTo(this.map);
|
|
132
|
-
let drawControl = new L.Control.Draw({
|
|
133
|
-
position: "topright",
|
|
134
|
-
draw: {
|
|
135
|
-
polyline: false,
|
|
136
|
-
polygon: false,
|
|
137
|
-
circle: false,
|
|
138
|
-
// Turns off this drawing tool
|
|
139
|
-
circlemarker: false,
|
|
140
|
-
rectangle: {},
|
|
141
|
-
marker: {
|
|
142
|
-
icon: L.icon({
|
|
143
|
-
iconUrl: "https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png",
|
|
144
|
-
iconAnchor: [15, 40],
|
|
145
|
-
shadowUrl: "https://unpkg.com/leaflet@1.9.4/dist/images/marker-shadow.png"
|
|
146
|
-
})
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
edit: {
|
|
150
|
-
featureGroup: this.editableLayers
|
|
151
|
-
//REQUIRED!!
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
this.map.addControl(drawControl);
|
|
155
|
-
this.map.on("draw:created", (event) => {
|
|
156
|
-
this.editableLayers.clearLayers();
|
|
157
|
-
const { layer, layerType } = event;
|
|
158
|
-
this.editableLayers.addLayer(layer);
|
|
159
|
-
const detail = __spreadValues(__spreadValues({
|
|
160
|
-
geoJson: layer.toGeoJSON()
|
|
161
|
-
}, layerType === "rectangle" && { bounds: layer.getBounds() }), layerType === "marker" && { latLng: layer._latlng });
|
|
162
|
-
this.dispatch("draw", detail);
|
|
163
|
-
});
|
|
164
|
-
this.map.on("draw:edited", (event) => {
|
|
165
|
-
const { layer, layerType } = event;
|
|
166
|
-
const detail = __spreadValues(__spreadValues({
|
|
167
|
-
geoJson: layer.toGeoJSON()
|
|
168
|
-
}, layerType === "rectangle" && { bounds: layer.getBounds() }), layerType === "marker" && { latLng: layer._latlng });
|
|
169
|
-
this.dispatch("draw", detail);
|
|
170
|
-
});
|
|
171
|
-
this.map.on("draw:deleted", (_event) => {
|
|
172
|
-
this.editableLayers.clearLayers();
|
|
173
|
-
this.dispatch("clear");
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
on(eventName, callback) {
|
|
177
|
-
this.listeners.push({
|
|
178
|
-
eventName,
|
|
179
|
-
callback
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
dispatch(eventName, detail = null) {
|
|
183
|
-
const eventTriggered = this.listeners.filter(
|
|
184
|
-
(listener) => listener.eventName === eventName
|
|
185
|
-
);
|
|
186
|
-
eventTriggered.forEach((listener) => {
|
|
187
|
-
listener.callback(detail);
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
transformShapeData(data) {
|
|
191
|
-
const shapes = data.shapes;
|
|
192
|
-
const shapefileID = data.shapefileID;
|
|
193
|
-
const transformedShapes = Object.keys(shapes).map((key) => {
|
|
194
|
-
const shape = shapes[key];
|
|
195
|
-
let name;
|
|
196
|
-
if (shapefileID === "lakes") {
|
|
197
|
-
name = shape.values[2];
|
|
198
|
-
} else if (shapefileID === "gpmLandMask" || shapefileID === "gpmSeaMask") {
|
|
199
|
-
name = shape.values.find(
|
|
200
|
-
(value) => typeof value === "string" && value.includes("deg")
|
|
201
|
-
);
|
|
202
|
-
} else if (shapefileID === "state_dept_countries_2017" || shapefileID === "world_regions" || shapefileID === "major_world_basins") {
|
|
203
|
-
name = shape.values[1];
|
|
204
|
-
} else if (shapefileID === "tl_2014_us_state") {
|
|
205
|
-
name = shape.values[6];
|
|
206
|
-
}
|
|
207
|
-
return {
|
|
208
|
-
name,
|
|
209
|
-
[data.uniqueShapeIDField]: key,
|
|
210
|
-
shapefileID
|
|
211
|
-
};
|
|
212
|
-
});
|
|
213
|
-
return transformedShapes;
|
|
214
|
-
}
|
|
215
|
-
async fetchSelectedShape(query) {
|
|
216
|
-
const url = new URL("http://localhost:9000/getGeoJSON");
|
|
217
|
-
const [key, value] = query.split("=");
|
|
218
|
-
if (key && value) {
|
|
219
|
-
url.searchParams.append(key, encodeURIComponent(value));
|
|
220
|
-
}
|
|
221
|
-
const data = await fetch(url.toString(), {
|
|
222
|
-
method: "GET",
|
|
223
|
-
mode: "cors"
|
|
224
|
-
});
|
|
225
|
-
const shape = await data.json();
|
|
226
|
-
return shape;
|
|
227
|
-
}
|
|
228
|
-
async handleShapeSelect(event) {
|
|
229
|
-
var _a;
|
|
230
|
-
event.preventDefault();
|
|
231
|
-
const selectedShape = event.target.value;
|
|
232
|
-
if (!selectedShape)
|
|
233
|
-
return;
|
|
234
|
-
const shapeGeoJson = await this.fetchSelectedShape(selectedShape);
|
|
235
|
-
if ((_a = this.selectedGeoJson) == null ? void 0 : _a.hasLayer) {
|
|
236
|
-
this.selectedGeoJson.remove();
|
|
237
|
-
}
|
|
238
|
-
this.selectedGeoJson = L.geoJson(shapeGeoJson.features).addTo(
|
|
239
|
-
this.editableLayers
|
|
240
|
-
);
|
|
241
|
-
this.map.fitBounds(this.selectedGeoJson.getBounds());
|
|
242
|
-
this.dispatch("draw", {
|
|
243
|
-
geoJson: this.selectedGeoJson.toGeoJSON(),
|
|
244
|
-
bounds: this.selectedGeoJson.getBounds()
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
drawRectangle(bounds) {
|
|
248
|
-
this.clearLayers();
|
|
249
|
-
L.rectangle(bounds, {
|
|
250
|
-
stroke: true,
|
|
251
|
-
color: "#3388ff",
|
|
252
|
-
weight: 4,
|
|
253
|
-
opacity: 0.5,
|
|
254
|
-
fill: true,
|
|
255
|
-
fillOpacity: 0.2
|
|
256
|
-
}).addTo(this.editableLayers);
|
|
257
|
-
}
|
|
258
|
-
setValue(value) {
|
|
259
|
-
if (this.isMapReady) {
|
|
260
|
-
this.drawRectangle(value);
|
|
261
|
-
this.map.fitBounds(value);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
clearLayers() {
|
|
265
|
-
this.editableLayers.clearLayers();
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
export {
|
|
270
|
-
parseBoundingBox,
|
|
271
|
-
StringifyBoundingBox,
|
|
272
|
-
Leaflet
|
|
273
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TerraLoader
|
|
3
|
-
} from "./chunk.5UE4SLYC.js";
|
|
4
|
-
|
|
5
|
-
// src/react/loader/index.ts
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import { createComponent } from "@lit/react";
|
|
8
|
-
var tagName = "terra-loader";
|
|
9
|
-
TerraLoader.define("terra-loader");
|
|
10
|
-
var reactWrapper = createComponent({
|
|
11
|
-
tagName,
|
|
12
|
-
elementClass: TerraLoader,
|
|
13
|
-
react: React,
|
|
14
|
-
events: {},
|
|
15
|
-
displayName: "TerraLoader"
|
|
16
|
-
});
|
|
17
|
-
var loader_default = reactWrapper;
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
loader_default
|
|
21
|
-
};
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
spatial_picker_styles_default
|
|
3
|
-
} from "./chunk.QEMJLGM4.js";
|
|
4
|
-
import {
|
|
5
|
-
TerraMap
|
|
6
|
-
} from "./chunk.EU6EQVBK.js";
|
|
7
|
-
import {
|
|
8
|
-
StringifyBoundingBox,
|
|
9
|
-
parseBoundingBox
|
|
10
|
-
} from "./chunk.ZC2AYSV2.js";
|
|
11
|
-
import {
|
|
12
|
-
TerraElement,
|
|
13
|
-
component_styles_default
|
|
14
|
-
} from "./chunk.7QKG7IRI.js";
|
|
15
|
-
import {
|
|
16
|
-
__decorateClass
|
|
17
|
-
} from "./chunk.TVFCHGU3.js";
|
|
18
|
-
|
|
19
|
-
// src/components/spatial-picker/spatial-picker.component.ts
|
|
20
|
-
import { html, nothing } from "lit";
|
|
21
|
-
import { property, query, state } from "lit/decorators.js";
|
|
22
|
-
var TerraSpatialPicker = class extends TerraElement {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.minZoom = 0;
|
|
26
|
-
this.maxZoom = 23;
|
|
27
|
-
this.zoom = 1;
|
|
28
|
-
this.hasNavigation = true;
|
|
29
|
-
this.hasCoordTracker = true;
|
|
30
|
-
this.hasShapeSelector = false;
|
|
31
|
-
this.initialValue = "";
|
|
32
|
-
this.hideLabel = false;
|
|
33
|
-
this.label = "Select Region";
|
|
34
|
-
this.isExpanded = false;
|
|
35
|
-
}
|
|
36
|
-
_blur(e) {
|
|
37
|
-
const inputValue = e.target.value;
|
|
38
|
-
this.mapValue = inputValue === "" ? [] : parseBoundingBox(inputValue);
|
|
39
|
-
}
|
|
40
|
-
_click() {
|
|
41
|
-
this.isExpanded = !this.isExpanded;
|
|
42
|
-
}
|
|
43
|
-
open() {
|
|
44
|
-
this.isExpanded = true;
|
|
45
|
-
}
|
|
46
|
-
close() {
|
|
47
|
-
this.isExpanded = false;
|
|
48
|
-
}
|
|
49
|
-
_handleMapChange(event) {
|
|
50
|
-
switch (event.detail.cause) {
|
|
51
|
-
case "clear":
|
|
52
|
-
this.spatialInput.value = "";
|
|
53
|
-
break;
|
|
54
|
-
case "draw":
|
|
55
|
-
if (event.detail.bounds) {
|
|
56
|
-
this.spatialInput.value = StringifyBoundingBox(
|
|
57
|
-
event.detail.bounds
|
|
58
|
-
);
|
|
59
|
-
} else if (event.detail.latLng) {
|
|
60
|
-
this.spatialInput.value = StringifyBoundingBox(
|
|
61
|
-
event.detail.latLng
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
break;
|
|
65
|
-
default:
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
firstUpdated() {
|
|
70
|
-
if (this.initialValue) {
|
|
71
|
-
this.mapValue = this.initialValue === "" ? [] : parseBoundingBox(this.initialValue);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
renderMap() {
|
|
75
|
-
return html`<terra-map
|
|
76
|
-
exportparts="map, leaflet-bbox, leaflet-point, leaflet-edit, leaflet-remove"
|
|
77
|
-
min-zoom=${this.minZoom}
|
|
78
|
-
max-zoom=${this.maxZoom}
|
|
79
|
-
zoom=${this.zoom}
|
|
80
|
-
?has-coord-tracker=${this.hasCoordTracker}
|
|
81
|
-
.value=${this.mapValue}
|
|
82
|
-
?has-navigation=${this.hasNavigation}
|
|
83
|
-
?has-shape-selector=${this.hasShapeSelector}
|
|
84
|
-
@terra-map-change=${this._handleMapChange}
|
|
85
|
-
>
|
|
86
|
-
</terra-map>`;
|
|
87
|
-
}
|
|
88
|
-
render() {
|
|
89
|
-
return html`
|
|
90
|
-
<div class="spatial-picker">
|
|
91
|
-
<label
|
|
92
|
-
for="spatial-picker__input"
|
|
93
|
-
class=${this.hideLabel ? "sr-only" : "spatial-picker__input_label"}
|
|
94
|
-
>${this.label}</label
|
|
95
|
-
>
|
|
96
|
-
<div class="spatial-picker__input_fields">
|
|
97
|
-
<input
|
|
98
|
-
id="spatial-picker__input"
|
|
99
|
-
value=${this.initialValue}
|
|
100
|
-
type="text"
|
|
101
|
-
class="spatial-picker__input form-control"
|
|
102
|
-
placeholder="-180, -90, 180, 90"
|
|
103
|
-
aria-controls="map"
|
|
104
|
-
aria-expanded=${this.isExpanded}
|
|
105
|
-
@blur=${this._blur}
|
|
106
|
-
/>
|
|
107
|
-
<terra-button
|
|
108
|
-
shape="square-left"
|
|
109
|
-
class="spatial-picker__input_icon_button"
|
|
110
|
-
@click=${this._click}
|
|
111
|
-
type="button"
|
|
112
|
-
>
|
|
113
|
-
<svg
|
|
114
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
115
|
-
fill="none"
|
|
116
|
-
viewBox="0 0 24 24"
|
|
117
|
-
stroke-width="1.5"
|
|
118
|
-
stroke="currentColor"
|
|
119
|
-
class="w-6 h-6"
|
|
120
|
-
>
|
|
121
|
-
<path
|
|
122
|
-
stroke-linecap="round"
|
|
123
|
-
stroke-linejoin="round"
|
|
124
|
-
d="M9 6.75V15m6-6v8.25m.503 3.498 4.875-2.437c.381-.19.622-.58.622-1.006V4.82c0-.836-.88-1.38-1.628-1.006l-3.869 1.934c-.317.159-.69.159-1.006 0L9.503 3.252a1.125 1.125 0 0 0-1.006 0L3.622 5.689C3.24 5.88 3 6.27 3 6.695V19.18c0 .836.88 1.38 1.628 1.006l3.869-1.934c.317-.159.69-.159 1.006 0l4.994 2.497c.317.158.69.158 1.006 0Z"
|
|
125
|
-
/>
|
|
126
|
-
</svg>
|
|
127
|
-
</terra-button>
|
|
128
|
-
</div>
|
|
129
|
-
${this.isExpanded ? this.renderMap() : nothing}
|
|
130
|
-
</div>
|
|
131
|
-
`;
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
TerraSpatialPicker.styles = [component_styles_default, spatial_picker_styles_default];
|
|
135
|
-
TerraSpatialPicker.dependencies = {
|
|
136
|
-
"terra-map": TerraMap
|
|
137
|
-
};
|
|
138
|
-
__decorateClass([
|
|
139
|
-
property({ attribute: "min-zoom", type: Number })
|
|
140
|
-
], TerraSpatialPicker.prototype, "minZoom", 2);
|
|
141
|
-
__decorateClass([
|
|
142
|
-
property({ attribute: "max-zoom", type: Number })
|
|
143
|
-
], TerraSpatialPicker.prototype, "maxZoom", 2);
|
|
144
|
-
__decorateClass([
|
|
145
|
-
property({ type: Number })
|
|
146
|
-
], TerraSpatialPicker.prototype, "zoom", 2);
|
|
147
|
-
__decorateClass([
|
|
148
|
-
property({ attribute: "has-navigation", type: Boolean })
|
|
149
|
-
], TerraSpatialPicker.prototype, "hasNavigation", 2);
|
|
150
|
-
__decorateClass([
|
|
151
|
-
property({ attribute: "has-coord-tracker", type: Boolean })
|
|
152
|
-
], TerraSpatialPicker.prototype, "hasCoordTracker", 2);
|
|
153
|
-
__decorateClass([
|
|
154
|
-
property({ attribute: "has-shape-selector", type: Boolean })
|
|
155
|
-
], TerraSpatialPicker.prototype, "hasShapeSelector", 2);
|
|
156
|
-
__decorateClass([
|
|
157
|
-
property({ attribute: "initial-value" })
|
|
158
|
-
], TerraSpatialPicker.prototype, "initialValue", 2);
|
|
159
|
-
__decorateClass([
|
|
160
|
-
property({ attribute: "hide-label", type: Boolean })
|
|
161
|
-
], TerraSpatialPicker.prototype, "hideLabel", 2);
|
|
162
|
-
__decorateClass([
|
|
163
|
-
property()
|
|
164
|
-
], TerraSpatialPicker.prototype, "label", 2);
|
|
165
|
-
__decorateClass([
|
|
166
|
-
state()
|
|
167
|
-
], TerraSpatialPicker.prototype, "isExpanded", 2);
|
|
168
|
-
__decorateClass([
|
|
169
|
-
state()
|
|
170
|
-
], TerraSpatialPicker.prototype, "mapValue", 2);
|
|
171
|
-
__decorateClass([
|
|
172
|
-
query(".spatial-picker__input")
|
|
173
|
-
], TerraSpatialPicker.prototype, "spatialInput", 2);
|
|
174
|
-
|
|
175
|
-
export {
|
|
176
|
-
TerraSpatialPicker
|
|
177
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
loader_styles_default
|
|
3
|
-
} from "./chunk.7OKJDEHN.js";
|
|
4
|
-
import {
|
|
5
|
-
TerraElement,
|
|
6
|
-
component_styles_default
|
|
7
|
-
} from "./chunk.EPQIDDJG.js";
|
|
8
|
-
import {
|
|
9
|
-
__decorateClass
|
|
10
|
-
} from "./chunk.TVFCHGU3.js";
|
|
11
|
-
|
|
12
|
-
// src/components/loader/loader.component.ts
|
|
13
|
-
import { property, state } from "lit/decorators.js";
|
|
14
|
-
import { html, nothing } from "lit";
|
|
15
|
-
import { classMap } from "lit/directives/class-map.js";
|
|
16
|
-
var TerraLoader = class extends TerraElement {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.variant = "large";
|
|
20
|
-
this.percent = "0";
|
|
21
|
-
this.indeterminate = false;
|
|
22
|
-
this._currentPercent = 0;
|
|
23
|
-
}
|
|
24
|
-
formatPercent(percent) {
|
|
25
|
-
if (parseInt(percent) > 100) {
|
|
26
|
-
percent = "100";
|
|
27
|
-
}
|
|
28
|
-
return parseInt(percent) > 0 ? percent + "%" : "";
|
|
29
|
-
}
|
|
30
|
-
render() {
|
|
31
|
-
this._currentPercent = parseInt(this.percent);
|
|
32
|
-
return html`
|
|
33
|
-
<div
|
|
34
|
-
class=${classMap({
|
|
35
|
-
loader: true,
|
|
36
|
-
"loader--small": this.variant === "small",
|
|
37
|
-
"loader--large": this.variant === "large",
|
|
38
|
-
"loader--orbit": this.variant === "orbit"
|
|
39
|
-
})}
|
|
40
|
-
aria-valuenow=${this.formatPercent(this.percent)}
|
|
41
|
-
role="progressbar"
|
|
42
|
-
tabindex="-1"
|
|
43
|
-
>
|
|
44
|
-
${this.variant === "large" || this.variant === "orbit" ? html`
|
|
45
|
-
<div
|
|
46
|
-
class="percent ${this.variant == "orbit" ? "number-14" : "number-11"}"
|
|
47
|
-
>
|
|
48
|
-
${this.formatPercent(this.percent)}
|
|
49
|
-
</div>
|
|
50
|
-
` : nothing}
|
|
51
|
-
${this.variant === "orbit" ? html`
|
|
52
|
-
<svg viewBox="0 0 160 160">
|
|
53
|
-
<circle class="planet" />
|
|
54
|
-
|
|
55
|
-
<!-- total length of orbit ellipse = 298.2393493652344 -->
|
|
56
|
-
<path
|
|
57
|
-
id="orbit"
|
|
58
|
-
d="M 53.528 96.775 C 73.584 124.975 100.654 140.601 115.393 130.137 C 132.613 117.912 119.246 79.55 105.434 60.525 C 90.233 39.587 60.506 18.543 44.962 30.114 C 29.456 41.657 38.219 75.25 53.528 96.775 Z"
|
|
59
|
-
>
|
|
60
|
-
<animate
|
|
61
|
-
attributeName="stroke-dashoffset"
|
|
62
|
-
begin="-0.25s"
|
|
63
|
-
from="300"
|
|
64
|
-
to="0"
|
|
65
|
-
dur="1.5s"
|
|
66
|
-
repeatCount="indefinite"
|
|
67
|
-
/>
|
|
68
|
-
</path>
|
|
69
|
-
|
|
70
|
-
<circle class="moon">
|
|
71
|
-
<animateMotion
|
|
72
|
-
begin="0s"
|
|
73
|
-
dur="1.5s"
|
|
74
|
-
repeatCount="indefinite"
|
|
75
|
-
>
|
|
76
|
-
<mpath href="#orbit"></mpath>
|
|
77
|
-
</animateMotion>
|
|
78
|
-
</circle>
|
|
79
|
-
|
|
80
|
-
<path
|
|
81
|
-
id="mask"
|
|
82
|
-
class="planet"
|
|
83
|
-
d="M 130.176 80.041 C 130.176 41.552 88.321 17.697 55.544 36.652 C 40.081 45.594 30.865 62.428 30.47 80.094 L 130.176 80.041 Z"
|
|
84
|
-
style="transform-box: fill-box; transform-origin: 49.8347% 100.62%;"
|
|
85
|
-
transform="matrix(-0.350367, -0.936613, 0.936613, -0.350367, -0.148117, -0.20884)"
|
|
86
|
-
/>
|
|
87
|
-
</svg>
|
|
88
|
-
` : nothing}
|
|
89
|
-
${this.variant === "small" || this.variant === "large" ? html`
|
|
90
|
-
<svg
|
|
91
|
-
viewBox=${this.variant == "small" ? "0 0 30 30" : "0 0 52 52"}
|
|
92
|
-
aria-hidden="true"
|
|
93
|
-
style="--progress: ${this.percent}"
|
|
94
|
-
class="circular-progress ${this.indeterminate ? "indeterminate" : ""}"
|
|
95
|
-
>
|
|
96
|
-
<circle class="bg"></circle>
|
|
97
|
-
<circle class="fg"></circle>
|
|
98
|
-
</svg>
|
|
99
|
-
` : nothing}
|
|
100
|
-
</div>
|
|
101
|
-
`;
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
TerraLoader.styles = [component_styles_default, loader_styles_default];
|
|
105
|
-
__decorateClass([
|
|
106
|
-
property({ reflect: true })
|
|
107
|
-
], TerraLoader.prototype, "variant", 2);
|
|
108
|
-
__decorateClass([
|
|
109
|
-
property({ type: String })
|
|
110
|
-
], TerraLoader.prototype, "percent", 2);
|
|
111
|
-
__decorateClass([
|
|
112
|
-
property({ type: Boolean })
|
|
113
|
-
], TerraLoader.prototype, "indeterminate", 2);
|
|
114
|
-
__decorateClass([
|
|
115
|
-
state()
|
|
116
|
-
], TerraLoader.prototype, "_currentPercent", 2);
|
|
117
|
-
|
|
118
|
-
export {
|
|
119
|
-
TerraLoader
|
|
120
|
-
};
|