@nasa-terra/components 0.0.58 → 0.0.60

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.
Files changed (389) hide show
  1. package/README.md +1 -1
  2. package/cdn/auth/auth.controller.d.ts +15 -0
  3. package/cdn/auth/auth.service.d.ts +29 -0
  4. package/cdn/chunks/{chunk.GY3WMEC5.js → chunk.2EEOIGVN.js} +4 -4
  5. package/cdn/chunks/{chunk.X7ZJUPRG.js → chunk.2GMGCJJK.js} +36 -43
  6. package/cdn/chunks/{chunk.VMWZDPYT.js → chunk.2NMWP5DN.js} +1 -1
  7. package/cdn/chunks/{chunk.UR6UU3IH.js → chunk.2UYVNOEX.js} +4 -4
  8. package/{dist/chunks/chunk.I2DMFHGN.js → cdn/chunks/chunk.3VHYPNST.js} +1 -1
  9. package/cdn/chunks/{chunk.NEWIN3MV.js → chunk.4BMRBQYU.js} +4 -4
  10. package/cdn/chunks/{chunk.2SMZLZLS.js → chunk.4FXB6TO3.js} +5 -5
  11. package/cdn/chunks/{chunk.A37SL47W.js → chunk.4UXVQKZW.js} +33 -41
  12. package/cdn/chunks/{chunk.NP6IAUPW.js → chunk.5EZ7BYHN.js} +1 -1
  13. package/cdn/chunks/{chunk.443GQYQB.js → chunk.5JW7A2AO.js} +1 -1
  14. package/{dist/chunks/chunk.DJMT7PVC.js → cdn/chunks/chunk.5YJRETV3.js} +1 -1
  15. package/cdn/chunks/{chunk.IH64XZC2.js → chunk.6ELCJNTL.js} +172 -10
  16. package/cdn/chunks/{chunk.UBLEE5PI.js → chunk.6SFH5X34.js} +1 -1
  17. package/cdn/chunks/{chunk.5P7TDN4M.js → chunk.74Y2IRDI.js} +0 -7
  18. package/cdn/chunks/{chunk.4PALYYQT.js → chunk.7IG2SBOL.js} +7 -7
  19. package/cdn/chunks/chunk.7TBQFSZ7.js +10 -0
  20. package/cdn/chunks/{chunk.NG63PD7Y.js → chunk.7ZUIA6ZA.js} +18 -20
  21. package/cdn/chunks/{chunk.E2SNT4UK.js → chunk.A6BUQADK.js} +1 -1
  22. package/cdn/chunks/{chunk.4JHRCMYB.js → chunk.ALG7FPS2.js} +1 -1
  23. package/cdn/chunks/{chunk.2LEHORBG.js → chunk.BAKIP5PM.js} +1 -1
  24. package/cdn/chunks/{chunk.IZ4ZW2LI.js → chunk.BDCGULKT.js} +1 -1
  25. package/cdn/chunks/{chunk.ZSVVJFC7.js → chunk.BJIE3PUY.js} +1 -1
  26. package/cdn/chunks/{chunk.EA4E2MY5.js → chunk.BUZ22XCE.js} +1 -1
  27. package/cdn/chunks/{chunk.YDOCZYNG.js → chunk.BWBTQSTN.js} +1 -1
  28. package/cdn/chunks/{chunk.KKRCWOV3.js → chunk.CEZIPRUZ.js} +1 -1
  29. package/{dist/chunks/chunk.AT4C2VVO.js → cdn/chunks/chunk.CNJFQ6NQ.js} +1 -1
  30. package/cdn/chunks/{chunk.6ZRXL5BS.js → chunk.CUL45EP2.js} +1 -1
  31. package/cdn/chunks/chunk.DIXBFQJX.js +77 -0
  32. package/cdn/chunks/{chunk.ETTS3KR7.js → chunk.E77UOXGG.js} +4 -4
  33. package/cdn/chunks/chunk.EKLRAB4A.js +65 -0
  34. package/{dist/chunks/chunk.DEALI7UY.js → cdn/chunks/chunk.EPCDCLIV.js} +1 -1
  35. package/{dist/chunks/chunk.YKDQXPRE.js → cdn/chunks/chunk.EPFPY5X6.js} +1 -1
  36. package/cdn/chunks/{chunk.KF37YBDI.js → chunk.ETVQD7XP.js} +1 -1
  37. package/cdn/chunks/{chunk.FBC4N5F4.js → chunk.EWXWRDS2.js} +1 -1
  38. package/cdn/chunks/{chunk.QIJWSHND.js → chunk.EXXCASW2.js} +1 -1
  39. package/cdn/chunks/{chunk.PVOLGWKN.js → chunk.FLRVTZ6Q.js} +70 -25
  40. package/cdn/chunks/{chunk.3AVJ4SFR.js → chunk.G7FG7ZK3.js} +1 -1
  41. package/cdn/chunks/{chunk.M43DTEXL.js → chunk.GIZVNXLK.js} +1 -1
  42. package/{dist/chunks/chunk.2OWUCWTH.js → cdn/chunks/chunk.GLVCGIR5.js} +1 -1
  43. package/{dist/chunks/chunk.HHT55ZVL.js → cdn/chunks/chunk.GROHXUKG.js} +1 -1
  44. package/cdn/chunks/{chunk.2NO33DSG.js → chunk.HHCOVVBT.js} +1 -1
  45. package/cdn/chunks/{chunk.H6LFWCCO.js → chunk.HRXWS72K.js} +15 -15
  46. package/cdn/chunks/{chunk.YV6IU3OX.js → chunk.IB2NB35Q.js} +2 -2
  47. package/cdn/chunks/{chunk.ALMN7WH4.js → chunk.IT573VGX.js} +30 -21
  48. package/cdn/chunks/{chunk.H3X77KDF.js → chunk.J3UZQNWY.js} +1 -1
  49. package/cdn/chunks/chunk.JUSZPVPU.js +26 -0
  50. package/cdn/chunks/{chunk.MQSKD234.js → chunk.KGVVCHUS.js} +6 -6
  51. package/{dist/chunks/chunk.JHYM6IFA.js → cdn/chunks/chunk.KRO4ARQY.js} +1 -1
  52. package/{dist/chunks/chunk.VEHAPTIJ.js → cdn/chunks/chunk.L6OWRJCA.js} +1 -1
  53. package/cdn/chunks/{chunk.QVJ6PPBP.js → chunk.L7JBTN32.js} +12 -9
  54. package/cdn/chunks/{chunk.FRMENMIW.js → chunk.LGPLDU7J.js} +1 -1
  55. package/{dist/chunks/chunk.7H5BVRKY.js → cdn/chunks/chunk.LJE2IVXS.js} +1 -1
  56. package/cdn/chunks/{chunk.JNV35V4W.js → chunk.LOSHZOGY.js} +1 -1
  57. package/{dist/chunks/chunk.VSLLVV2I.js → cdn/chunks/chunk.LQSKST7H.js} +1 -1
  58. package/cdn/chunks/{chunk.LGGLWXQG.js → chunk.LX7W6IJK.js} +1 -1
  59. package/{dist/chunks/chunk.LA2MNGW7.js → cdn/chunks/chunk.LXEECKS5.js} +1 -1
  60. package/cdn/chunks/{chunk.G6A3T3NT.js → chunk.LZ6ES3TI.js} +1 -1
  61. package/{dist/chunks/chunk.ILRS5QIU.js → cdn/chunks/chunk.M23YOO6N.js} +1 -1
  62. package/cdn/chunks/{chunk.OPHEW56X.js → chunk.M5HLSUC4.js} +5 -5
  63. package/cdn/chunks/{chunk.7SGLLQJZ.js → chunk.MA5S2KRL.js} +1 -1
  64. package/cdn/chunks/{chunk.IQAZA7JC.js → chunk.MLS2KGHX.js} +1 -1
  65. package/cdn/chunks/{chunk.EZMKGB3F.js → chunk.NJTOF6ZK.js} +33 -1
  66. package/cdn/chunks/{chunk.B5KZ7DPT.js → chunk.NWVFWXWL.js} +5 -4
  67. package/{dist/chunks/chunk.DZDAJ23K.js → cdn/chunks/chunk.OT5GATLX.js} +1 -1
  68. package/cdn/chunks/{chunk.FDQKLAJU.js → chunk.OXYQWR4O.js} +1 -1
  69. package/cdn/chunks/{chunk.4UYNOT7W.js → chunk.P5PLRHF4.js} +1 -1
  70. package/cdn/chunks/{chunk.DBLOGMXH.js → chunk.PRDCTJZW.js} +1 -1
  71. package/cdn/chunks/{chunk.SE7II5KQ.js → chunk.QU7QA2AS.js} +1 -1
  72. package/cdn/chunks/{chunk.M6FPOZDG.js → chunk.R3H34254.js} +1 -1
  73. package/cdn/chunks/{chunk.2M3INLAP.js → chunk.RNTD3EXL.js} +11 -5
  74. package/cdn/chunks/{chunk.GGEKGV6U.js → chunk.RR4NDIRI.js} +5 -5
  75. package/cdn/chunks/{chunk.MSV3AOIO.js → chunk.S64CALLW.js} +1 -1
  76. package/cdn/chunks/{chunk.GJIEQWA2.js → chunk.SGS66YD4.js} +155 -55
  77. package/{dist/chunks/chunk.HF4JSIAV.js → cdn/chunks/chunk.SQASUHBA.js} +1 -1
  78. package/cdn/chunks/{chunk.MZAAXYG3.js → chunk.UGOGPJIK.js} +1 -1
  79. package/{dist/chunks/chunk.SMRSGOYL.js → cdn/chunks/chunk.UL5CQLQS.js} +1 -1
  80. package/cdn/chunks/{chunk.D5ZJCCJ4.js → chunk.UMJYDWJ4.js} +9 -5
  81. package/cdn/chunks/{chunk.FCGFGTMF.js → chunk.V6VKJSEK.js} +1 -1
  82. package/cdn/chunks/{chunk.QUHOY7JA.js → chunk.VB7OXQA4.js} +1 -1
  83. package/{dist/chunks/chunk.6OSU6JP5.js → cdn/chunks/chunk.VGYMGE2W.js} +1 -1
  84. package/cdn/chunks/{chunk.YCRGAL67.js → chunk.VZ3MBFKG.js} +1 -1
  85. package/cdn/chunks/{chunk.ENPIIGYG.js → chunk.WDU7EJPA.js} +1 -1
  86. package/cdn/chunks/{chunk.RPKQ62SW.js → chunk.X33FR7YO.js} +60 -34
  87. package/cdn/chunks/{chunk.NM2NAH3X.js → chunk.XMNR4RWY.js} +1 -1
  88. package/cdn/chunks/{chunk.HQNRJHYJ.js → chunk.XVB3T3VG.js} +1 -1
  89. package/cdn/chunks/{chunk.55FSQEQ4.js → chunk.Y4AJWV2R.js} +2 -2
  90. package/{dist/chunks/chunk.RO7HWOVF.js → cdn/chunks/chunk.Z5MRKTNC.js} +1 -1
  91. package/cdn/chunks/{chunk.3HAQFMAD.js → chunk.ZP2W7T3J.js} +1 -1
  92. package/cdn/components/accordion/accordion.component.js +7 -5
  93. package/cdn/components/accordion/accordion.js +8 -6
  94. package/cdn/components/alert/alert.component.js +5 -3
  95. package/cdn/components/alert/alert.js +6 -4
  96. package/cdn/components/browse-variables/browse-variables.component.js +24 -23
  97. package/cdn/components/browse-variables/browse-variables.controller.js +5 -5
  98. package/cdn/components/browse-variables/browse-variables.js +25 -24
  99. package/cdn/components/button/button.component.js +5 -3
  100. package/cdn/components/button/button.js +6 -4
  101. package/cdn/components/chip/chip.component.js +4 -2
  102. package/cdn/components/chip/chip.js +5 -3
  103. package/cdn/components/combobox/combobox.component.js +8 -6
  104. package/cdn/components/combobox/combobox.js +9 -7
  105. package/cdn/components/data-rods/data-rods.component.js +40 -36
  106. package/cdn/components/data-rods/data-rods.js +41 -37
  107. package/cdn/components/data-subsetter/data-subsetter.component.d.ts +1 -1
  108. package/cdn/components/data-subsetter/data-subsetter.component.js +34 -24
  109. package/cdn/components/data-subsetter/data-subsetter.controller.js +5 -5
  110. package/cdn/components/data-subsetter/data-subsetter.js +35 -25
  111. package/cdn/components/data-subsetter-history/data-subsetter-history.component.d.ts +2 -0
  112. package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +37 -27
  113. package/cdn/components/data-subsetter-history/data-subsetter-history.controller.js +3 -3
  114. package/cdn/components/data-subsetter-history/data-subsetter-history.js +38 -28
  115. package/cdn/components/date-picker/date-picker.component.js +6 -4
  116. package/cdn/components/date-picker/date-picker.js +7 -5
  117. package/cdn/components/date-range-slider/date-range-slider.component.js +6 -4
  118. package/cdn/components/date-range-slider/date-range-slider.js +7 -5
  119. package/cdn/components/dialog/dialog.component.js +4 -2
  120. package/cdn/components/dialog/dialog.js +5 -3
  121. package/cdn/components/icon/icon.component.js +5 -3
  122. package/cdn/components/icon/icon.js +6 -4
  123. package/cdn/components/loader/loader.component.js +4 -2
  124. package/cdn/components/loader/loader.js +5 -3
  125. package/cdn/components/login/login.component.d.ts +3 -0
  126. package/cdn/components/login/login.component.js +17 -15
  127. package/cdn/components/login/login.js +18 -16
  128. package/cdn/components/login/login.styles.js +1 -1
  129. package/cdn/components/map/leaflet-utils.d.ts +1 -2
  130. package/cdn/components/map/leaflet-utils.js +3 -3
  131. package/cdn/components/map/map.component.d.ts +1 -0
  132. package/cdn/components/map/map.component.js +10 -9
  133. package/cdn/components/map/map.controller.js +3 -3
  134. package/cdn/components/map/map.js +11 -10
  135. package/cdn/components/map/type.d.ts +17 -12
  136. package/cdn/components/map/type.js +7 -0
  137. package/cdn/components/plot/plot.component.js +4 -2
  138. package/cdn/components/plot/plot.js +5 -3
  139. package/cdn/components/skeleton/skeleton.component.js +8 -6
  140. package/cdn/components/skeleton/skeleton.js +9 -7
  141. package/cdn/components/spatial-picker/spatial-picker.component.d.ts +1 -0
  142. package/cdn/components/spatial-picker/spatial-picker.component.js +12 -10
  143. package/cdn/components/spatial-picker/spatial-picker.js +13 -11
  144. package/cdn/components/time-series/time-series.component.d.ts +5 -1
  145. package/cdn/components/time-series/time-series.component.js +23 -20
  146. package/cdn/components/time-series/time-series.controller.d.ts +1 -2
  147. package/cdn/components/time-series/time-series.controller.js +5 -3
  148. package/cdn/components/time-series/time-series.js +24 -21
  149. package/cdn/components/time-series/time-series.types.d.ts +2 -0
  150. package/cdn/components/variable-combobox/lib.js +3 -3
  151. package/cdn/components/variable-combobox/variable-combobox.component.js +18 -16
  152. package/cdn/components/variable-combobox/variable-combobox.controller.js +5 -5
  153. package/cdn/components/variable-combobox/variable-combobox.js +19 -17
  154. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +18 -17
  155. package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +5 -5
  156. package/cdn/components/variable-keyword-search/variable-keyword-search.js +19 -18
  157. package/cdn/custom-elements.json +626 -644
  158. package/cdn/data-services/harmony-data-service.d.ts +4 -2
  159. package/cdn/data-services/types.d.ts +10 -4
  160. package/cdn/events/terra-login.d.ts +2 -1
  161. package/cdn/internal/terra-element.d.ts +2 -0
  162. package/cdn/lib/graphql-client.d.ts +1 -0
  163. package/cdn/react/accordion/index.js +8 -6
  164. package/cdn/react/alert/index.js +6 -4
  165. package/cdn/react/browse-variables/index.js +25 -24
  166. package/cdn/react/button/index.js +6 -4
  167. package/cdn/react/chip/index.js +5 -3
  168. package/cdn/react/combobox/index.js +9 -7
  169. package/cdn/react/data-rods/index.js +41 -37
  170. package/cdn/react/data-subsetter/index.js +35 -25
  171. package/cdn/react/data-subsetter-history/index.js +38 -28
  172. package/cdn/react/date-picker/index.js +7 -5
  173. package/cdn/react/date-range-slider/index.js +7 -5
  174. package/cdn/react/dialog/index.js +5 -3
  175. package/cdn/react/icon/index.js +6 -4
  176. package/cdn/react/index.d.ts +4 -4
  177. package/cdn/react/index.js +90 -87
  178. package/cdn/react/loader/index.js +5 -3
  179. package/cdn/react/login/index.js +18 -16
  180. package/cdn/react/map/index.js +11 -10
  181. package/cdn/react/plot/index.js +5 -3
  182. package/cdn/react/skeleton/index.js +9 -7
  183. package/cdn/react/spatial-picker/index.js +13 -11
  184. package/cdn/react/time-series/index.js +24 -21
  185. package/cdn/react/variable-combobox/index.js +19 -17
  186. package/cdn/react/variable-keyword-search/index.js +19 -18
  187. package/cdn/terra-ui-components.js +88 -85
  188. package/cdn/types/vue/index.d.ts +107 -99
  189. package/cdn/utilities/animation.js +4 -4
  190. package/cdn/utilities/date.d.ts +5 -0
  191. package/cdn/utilities/date.js +3 -1
  192. package/cdn/utilities/environment.d.ts +5 -0
  193. package/cdn/utilities/environment.js +9 -0
  194. package/cdn/vscode.html-custom-data.json +95 -95
  195. package/cdn/web-types.json +196 -189
  196. package/dist/auth/auth.controller.d.ts +15 -0
  197. package/dist/auth/auth.service.d.ts +29 -0
  198. package/dist/chunks/{chunk.UIYPAVP3.js → chunk.24GW2RSV.js} +0 -7
  199. package/dist/chunks/chunk.2HPFAVOM.js +63 -0
  200. package/dist/chunks/{chunk.IGFITNT7.js → chunk.2ONCBUXN.js} +1 -1
  201. package/dist/chunks/{chunk.U2YCLZU3.js → chunk.33NBG3NS.js} +1 -1
  202. package/dist/chunks/{chunk.A77KPJU3.js → chunk.3LDTADZY.js} +1 -1
  203. package/{cdn/chunks/chunk.DQNGMPZ4.js → dist/chunks/chunk.3WQ2LN2C.js} +1 -1
  204. package/dist/chunks/{chunk.RWGHT2D7.js → chunk.3XSH7MTP.js} +12 -12
  205. package/dist/chunks/{chunk.REPNXJW5.js → chunk.4AE6ZL4V.js} +1 -1
  206. package/dist/chunks/{chunk.FCST3V7L.js → chunk.53HLVNLK.js} +1 -1
  207. package/dist/chunks/{chunk.BBI5QBCK.js → chunk.5TAH6C7E.js} +1 -1
  208. package/dist/chunks/{chunk.IAGRTHCQ.js → chunk.6C6EVLA7.js} +1 -1
  209. package/dist/chunks/{chunk.Y4HH4CTF.js → chunk.6GGCQUNA.js} +1 -1
  210. package/dist/chunks/{chunk.5VCCJKUF.js → chunk.6KVL7SY6.js} +1 -1
  211. package/dist/chunks/{chunk.HF4S75E7.js → chunk.6P5DYVP4.js} +1 -1
  212. package/dist/chunks/{chunk.IAZVYWH4.js → chunk.6R4564BD.js} +1 -1
  213. package/dist/chunks/{chunk.5THDEKK2.js → chunk.73YL47RN.js} +1 -1
  214. package/dist/chunks/{chunk.UT2IJ3AX.js → chunk.7PELJQ4O.js} +1 -1
  215. package/dist/chunks/chunk.7TBQFSZ7.js +10 -0
  216. package/{cdn/chunks/chunk.VR5EZPKE.js → dist/chunks/chunk.A67Q6UBQ.js} +1 -1
  217. package/{cdn/chunks/chunk.CP7RNEMV.js → dist/chunks/chunk.AGNOMHH2.js} +1 -1
  218. package/dist/chunks/{chunk.MEN7IBFJ.js → chunk.B2EAMHKB.js} +1 -1
  219. package/dist/chunks/{chunk.KMN7L6QZ.js → chunk.B5THO3EV.js} +33 -1
  220. package/dist/chunks/{chunk.U5M6FLSF.js → chunk.BDGTWOXZ.js} +4 -4
  221. package/dist/chunks/{chunk.E4S6KMNK.js → chunk.C7PQBKKC.js} +1 -1
  222. package/dist/chunks/{chunk.45R7WRGL.js → chunk.CBH2YLFF.js} +1 -1
  223. package/dist/chunks/{chunk.OFAVHNPN.js → chunk.D63J4RKY.js} +1 -1
  224. package/dist/chunks/{chunk.AUXWHPU2.js → chunk.DI5KLXZI.js} +1 -1
  225. package/dist/chunks/{chunk.ROS4AHFJ.js → chunk.DZKJA55J.js} +1 -1
  226. package/{cdn/chunks/chunk.7FS56NMF.js → dist/chunks/chunk.EKB26QUP.js} +1 -1
  227. package/{cdn/chunks/chunk.EC3TJPMX.js → dist/chunks/chunk.ERBWKL4Y.js} +1 -1
  228. package/dist/chunks/{chunk.5IZ5YDDG.js → chunk.FKXB7XEU.js} +1 -1
  229. package/{cdn/chunks/chunk.Q6UYTNS4.js → dist/chunks/chunk.GICLLJNS.js} +1 -1
  230. package/dist/chunks/{chunk.FPE3AOVT.js → chunk.GOAMZCJ6.js} +60 -34
  231. package/dist/chunks/{chunk.FYELZBFG.js → chunk.GS325B24.js} +174 -10
  232. package/dist/chunks/{chunk.L5LDGM7X.js → chunk.HN6I5KTN.js} +29 -20
  233. package/dist/chunks/{chunk.5BPKW46M.js → chunk.I22H5V53.js} +1 -1
  234. package/dist/chunks/{chunk.PXIEBSPX.js → chunk.IFY6FGEC.js} +30 -37
  235. package/dist/chunks/{chunk.7KAMZVEY.js → chunk.IJCCUYTL.js} +4 -4
  236. package/dist/chunks/{chunk.PVGGDTT3.js → chunk.ILZSIUHL.js} +1 -1
  237. package/dist/chunks/{chunk.WQBQ2ODI.js → chunk.IYRLNGLM.js} +9 -5
  238. package/dist/chunks/{chunk.GAVUA5EO.js → chunk.JJVTBGOK.js} +70 -25
  239. package/dist/chunks/{chunk.UIZVS4IA.js → chunk.JTV3QJGO.js} +4 -4
  240. package/dist/chunks/chunk.JUSZPVPU.js +26 -0
  241. package/{cdn/chunks/chunk.IVUUL63N.js → dist/chunks/chunk.JWQWJXCC.js} +1 -1
  242. package/{cdn/chunks/chunk.CWC4JV6T.js → dist/chunks/chunk.KBLRBVBP.js} +1 -1
  243. package/{cdn/chunks/chunk.2S6ZKHXB.js → dist/chunks/chunk.KLXT6L4L.js} +1 -1
  244. package/{cdn/chunks/chunk.KAYNBYLR.js → dist/chunks/chunk.LOZBU57W.js} +1 -1
  245. package/dist/chunks/{chunk.V3UZZT7O.js → chunk.MBFLLBV5.js} +1 -1
  246. package/dist/chunks/{chunk.YOVC3CZS.js → chunk.MFZOXXZG.js} +5 -4
  247. package/dist/chunks/{chunk.5ZAY33KQ.js → chunk.MGW33V5Q.js} +11 -5
  248. package/{cdn/chunks/chunk.GWYVJJCB.js → dist/chunks/chunk.MJB3C5KB.js} +1 -1
  249. package/dist/chunks/{chunk.MYTZER6B.js → chunk.MWPGY5IJ.js} +33 -41
  250. package/dist/chunks/{chunk.2O3Z7NGJ.js → chunk.N37CEIC7.js} +1 -1
  251. package/dist/chunks/{chunk.A4RC27PC.js → chunk.NAL75PTO.js} +1 -1
  252. package/{cdn/chunks/chunk.O7NIJ7TS.js → dist/chunks/chunk.NLAIKPFK.js} +1 -1
  253. package/dist/chunks/{chunk.VCDZNEP6.js → chunk.OPIEMOCR.js} +1 -1
  254. package/{cdn/chunks/chunk.GUFSFNMA.js → dist/chunks/chunk.OVWYJYRM.js} +1 -1
  255. package/dist/chunks/{chunk.KI6OCYF7.js → chunk.POIZ6HMC.js} +1 -1
  256. package/dist/chunks/{chunk.SYFKFTIT.js → chunk.PP2ELNGF.js} +14 -16
  257. package/dist/chunks/{chunk.E3ZBYYNB.js → chunk.QHQSRPID.js} +1 -1
  258. package/{cdn/chunks/chunk.6BYY247O.js → dist/chunks/chunk.QYNQGA2I.js} +1 -1
  259. package/dist/chunks/{chunk.DHC7IJIJ.js → chunk.RFZFN23E.js} +1 -1
  260. package/dist/chunks/{chunk.HME6HL27.js → chunk.SGRUM4PP.js} +1 -1
  261. package/{cdn/chunks/chunk.NQ6SVY42.js → dist/chunks/chunk.SLAI5FTD.js} +1 -1
  262. package/dist/chunks/{chunk.B4AF4NOH.js → chunk.SQ6OBGUE.js} +1 -1
  263. package/dist/chunks/{chunk.3OYQIGDM.js → chunk.STTT6JDX.js} +4 -4
  264. package/dist/chunks/{chunk.OW36H5FH.js → chunk.T5KI6OSN.js} +3 -3
  265. package/{cdn/chunks/chunk.ER3J5ETD.js → dist/chunks/chunk.T7DGNPEJ.js} +1 -1
  266. package/dist/chunks/{chunk.TIHPXPFP.js → chunk.THGSR7ZK.js} +1 -1
  267. package/dist/chunks/{chunk.EO6AY552.js → chunk.TIGYHXP4.js} +1 -1
  268. package/{cdn/chunks/chunk.732N2HES.js → dist/chunks/chunk.UDMUW7XK.js} +1 -1
  269. package/dist/chunks/{chunk.3VV3IT26.js → chunk.ULQFQZHD.js} +2 -2
  270. package/dist/chunks/{chunk.FOVYD7XH.js → chunk.UOQOJQEV.js} +4 -4
  271. package/dist/chunks/{chunk.KF54OOIY.js → chunk.UZLE6KVI.js} +11 -8
  272. package/dist/chunks/chunk.VSAGY2NW.js +73 -0
  273. package/{cdn/chunks/chunk.4QXYPJHP.js → dist/chunks/chunk.W3LS5JWV.js} +1 -1
  274. package/dist/chunks/{chunk.GETR66KK.js → chunk.WNKTNBGJ.js} +1 -1
  275. package/dist/chunks/{chunk.VLVPOOJ6.js → chunk.XKR223PQ.js} +1 -1
  276. package/dist/chunks/{chunk.U6R27WNU.js → chunk.Y4ZIWIQM.js} +154 -54
  277. package/dist/chunks/{chunk.LEZ5QQOB.js → chunk.YBVWNYOE.js} +1 -1
  278. package/dist/chunks/{chunk.B6VJLPHE.js → chunk.YENFFQDG.js} +4 -4
  279. package/dist/chunks/{chunk.NJZGBTQJ.js → chunk.YH76EU7C.js} +1 -1
  280. package/dist/chunks/{chunk.3TJS4ZJX.js → chunk.ZBDETE57.js} +1 -1
  281. package/dist/components/accordion/accordion.component.js +7 -5
  282. package/dist/components/accordion/accordion.js +8 -6
  283. package/dist/components/alert/alert.component.js +5 -3
  284. package/dist/components/alert/alert.js +6 -4
  285. package/dist/components/browse-variables/browse-variables.component.js +19 -18
  286. package/dist/components/browse-variables/browse-variables.controller.js +4 -4
  287. package/dist/components/browse-variables/browse-variables.js +20 -19
  288. package/dist/components/button/button.component.js +5 -3
  289. package/dist/components/button/button.js +6 -4
  290. package/dist/components/chip/chip.component.js +4 -2
  291. package/dist/components/chip/chip.js +5 -3
  292. package/dist/components/combobox/combobox.component.js +4 -2
  293. package/dist/components/combobox/combobox.js +5 -3
  294. package/dist/components/data-rods/data-rods.component.js +31 -27
  295. package/dist/components/data-rods/data-rods.js +32 -28
  296. package/dist/components/data-subsetter/data-subsetter.component.d.ts +1 -1
  297. package/dist/components/data-subsetter/data-subsetter.component.js +30 -20
  298. package/dist/components/data-subsetter/data-subsetter.controller.js +4 -4
  299. package/dist/components/data-subsetter/data-subsetter.js +31 -21
  300. package/dist/components/data-subsetter-history/data-subsetter-history.component.d.ts +2 -0
  301. package/dist/components/data-subsetter-history/data-subsetter-history.component.js +33 -23
  302. package/dist/components/data-subsetter-history/data-subsetter-history.controller.js +3 -3
  303. package/dist/components/data-subsetter-history/data-subsetter-history.js +34 -24
  304. package/dist/components/date-picker/date-picker.component.js +6 -4
  305. package/dist/components/date-picker/date-picker.js +7 -5
  306. package/dist/components/date-range-slider/date-range-slider.component.js +5 -3
  307. package/dist/components/date-range-slider/date-range-slider.js +6 -4
  308. package/dist/components/dialog/dialog.component.js +4 -2
  309. package/dist/components/dialog/dialog.js +5 -3
  310. package/dist/components/icon/icon.component.js +5 -3
  311. package/dist/components/icon/icon.js +6 -4
  312. package/dist/components/loader/loader.component.js +4 -2
  313. package/dist/components/loader/loader.js +5 -3
  314. package/dist/components/login/login.component.d.ts +3 -0
  315. package/dist/components/login/login.component.js +14 -11
  316. package/dist/components/login/login.js +15 -12
  317. package/dist/components/login/login.styles.js +1 -1
  318. package/dist/components/map/leaflet-utils.d.ts +1 -2
  319. package/dist/components/map/leaflet-utils.js +3 -3
  320. package/dist/components/map/map.component.d.ts +1 -0
  321. package/dist/components/map/map.component.js +8 -7
  322. package/dist/components/map/map.controller.js +3 -3
  323. package/dist/components/map/map.js +9 -8
  324. package/dist/components/map/type.d.ts +17 -12
  325. package/dist/components/map/type.js +7 -0
  326. package/dist/components/plot/plot.component.js +4 -2
  327. package/dist/components/plot/plot.js +5 -3
  328. package/dist/components/skeleton/skeleton.component.js +4 -2
  329. package/dist/components/skeleton/skeleton.js +5 -3
  330. package/dist/components/spatial-picker/spatial-picker.component.d.ts +1 -0
  331. package/dist/components/spatial-picker/spatial-picker.component.js +10 -8
  332. package/dist/components/spatial-picker/spatial-picker.js +11 -9
  333. package/dist/components/time-series/time-series.component.d.ts +5 -1
  334. package/dist/components/time-series/time-series.component.js +18 -15
  335. package/dist/components/time-series/time-series.controller.d.ts +1 -2
  336. package/dist/components/time-series/time-series.controller.js +4 -2
  337. package/dist/components/time-series/time-series.js +19 -16
  338. package/dist/components/time-series/time-series.types.d.ts +2 -0
  339. package/dist/components/variable-combobox/variable-combobox.component.js +10 -8
  340. package/dist/components/variable-combobox/variable-combobox.js +11 -9
  341. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +14 -13
  342. package/dist/components/variable-keyword-search/variable-keyword-search.controller.js +4 -4
  343. package/dist/components/variable-keyword-search/variable-keyword-search.js +15 -14
  344. package/dist/custom-elements.json +626 -644
  345. package/dist/data-services/harmony-data-service.d.ts +4 -2
  346. package/dist/data-services/types.d.ts +10 -4
  347. package/dist/events/terra-login.d.ts +2 -1
  348. package/dist/internal/terra-element.d.ts +2 -0
  349. package/dist/lib/graphql-client.d.ts +1 -0
  350. package/dist/react/accordion/index.js +8 -6
  351. package/dist/react/alert/index.js +6 -4
  352. package/dist/react/browse-variables/index.js +20 -19
  353. package/dist/react/button/index.js +6 -4
  354. package/dist/react/chip/index.js +5 -3
  355. package/dist/react/combobox/index.js +5 -3
  356. package/dist/react/data-rods/index.js +32 -28
  357. package/dist/react/data-subsetter/index.js +31 -21
  358. package/dist/react/data-subsetter-history/index.js +34 -24
  359. package/dist/react/date-picker/index.js +7 -5
  360. package/dist/react/date-range-slider/index.js +6 -4
  361. package/dist/react/dialog/index.js +5 -3
  362. package/dist/react/icon/index.js +6 -4
  363. package/dist/react/index.d.ts +4 -4
  364. package/dist/react/index.js +80 -77
  365. package/dist/react/loader/index.js +5 -3
  366. package/dist/react/login/index.js +15 -12
  367. package/dist/react/map/index.js +9 -8
  368. package/dist/react/plot/index.js +5 -3
  369. package/dist/react/skeleton/index.js +5 -3
  370. package/dist/react/spatial-picker/index.js +11 -9
  371. package/dist/react/time-series/index.js +19 -16
  372. package/dist/react/variable-combobox/index.js +11 -9
  373. package/dist/react/variable-keyword-search/index.js +15 -14
  374. package/dist/terra-ui-components.js +77 -74
  375. package/dist/{terra_ui_components-0.0.58-py3-none-any.whl → terra_ui_components-0.0.60-py3-none-any.whl} +0 -0
  376. package/dist/{terra_ui_components-0.0.58.tar.gz → terra_ui_components-0.0.60.tar.gz} +0 -0
  377. package/dist/types/vue/index.d.ts +107 -99
  378. package/dist/utilities/date.d.ts +5 -0
  379. package/dist/utilities/date.js +3 -1
  380. package/dist/utilities/environment.d.ts +5 -0
  381. package/dist/utilities/environment.js +9 -0
  382. package/dist/vscode.html-custom-data.json +95 -95
  383. package/dist/web-types.json +196 -189
  384. package/package.json +4 -4
  385. package/cdn/chunks/chunk.AZL5M2UE.js +0 -272
  386. package/dist/chunks/chunk.CLMB573J.js +0 -264
  387. package/cdn/chunks/{chunk.2XCNCXGV.js → chunk.262RZKG2.js} +3 -3
  388. package/cdn/chunks/{chunk.PZRCJWJ4.js → chunk.6WMXHA2J.js} +5 -5
  389. package/cdn/chunks/{chunk.QB5SASDL.js → chunk.FKLQEDIX.js} +4 -4
package/README.md CHANGED
@@ -4,7 +4,7 @@ Intro
4
4
 
5
5
  ### Forking the Repo
6
6
 
7
- Start by [forking the repo](https://github.com/gesdisc/components/fork) on GitHub, then clone it locally and install dependencies.
7
+ Start by [forking the repo](https://github.com/nasa/terra-ui-components/fork) on GitHub, then clone it locally and install dependencies.
8
8
 
9
9
  ```bash
10
10
  git clone https://github.com/YOUR_GITHUB_USERNAME/components terra-ui-components
@@ -0,0 +1,15 @@
1
+ import { Task } from '@lit/task';
2
+ import type { StatusRenderer } from '@lit/task';
3
+ import type { ReactiveControllerHost } from 'lit';
4
+ import { type AuthState } from './auth.service.js';
5
+ export declare class AuthController<C> {
6
+ #private;
7
+ task: Task<[], AuthState>;
8
+ private unsubscribe?;
9
+ constructor(host: ReactiveControllerHost & C);
10
+ get state(): AuthState;
11
+ login(): void;
12
+ logout(): void;
13
+ render(renderFunctions: StatusRenderer<AuthState>): unknown;
14
+ disconnectedCallback(): void;
15
+ }
@@ -0,0 +1,29 @@
1
+ export type User = {
2
+ uid: string;
3
+ first_name: string;
4
+ last_name: string;
5
+ };
6
+ export interface AuthState {
7
+ user: User | null;
8
+ token: string | null;
9
+ isLoading: boolean;
10
+ error: string | null;
11
+ }
12
+ declare class AuthService {
13
+ private authState;
14
+ private listeners;
15
+ private currentTask;
16
+ constructor();
17
+ exchangeCodeForToken(code: string): Promise<void>;
18
+ subscribe(listener: (state: AuthState) => void, bearerToken?: string): () => void;
19
+ private notifyListeners;
20
+ private setState;
21
+ authenticate(): Promise<User | null>;
22
+ private getUserInfo;
23
+ private getLoggedOutState;
24
+ login(): void;
25
+ logout(): void;
26
+ getState(): AuthState;
27
+ }
28
+ export declare const authService: AuthService;
29
+ export {};
@@ -1,13 +1,13 @@
1
- import {
2
- TerraIcon
3
- } from "./chunk.3AVJ4SFR.js";
4
1
  import {
5
2
  accordion_styles_default
6
3
  } from "./chunk.CPHER7LT.js";
4
+ import {
5
+ TerraIcon
6
+ } from "./chunk.G7FG7ZK3.js";
7
7
  import {
8
8
  TerraElement,
9
9
  component_styles_default
10
- } from "./chunk.IH64XZC2.js";
10
+ } from "./chunk.6ELCJNTL.js";
11
11
  import {
12
12
  n
13
13
  } from "./chunk.2FFSUM6T.js";
@@ -2,51 +2,54 @@ import {
2
2
  DB_NAME,
3
3
  TimeSeriesController,
4
4
  getDataByKey
5
- } from "./chunk.GJIEQWA2.js";
5
+ } from "./chunk.SGS66YD4.js";
6
6
  import {
7
7
  time_series_styles_default
8
8
  } from "./chunk.Y7I2RXN6.js";
9
9
  import {
10
10
  TerraPlot,
11
11
  require_plotly_min
12
- } from "./chunk.SE7II5KQ.js";
12
+ } from "./chunk.QU7QA2AS.js";
13
13
  import {
14
- h
15
- } from "./chunk.QB5SASDL.js";
16
- import {
17
- TerraLoader
18
- } from "./chunk.KKRCWOV3.js";
14
+ AuthController
15
+ } from "./chunk.EKLRAB4A.js";
19
16
  import {
20
- GiovanniVariableCatalog
21
- } from "./chunk.OPHEW56X.js";
17
+ h
18
+ } from "./chunk.FKLQEDIX.js";
22
19
  import {
23
- h as h2,
24
- s
25
- } from "./chunk.UGTZ22DI.js";
20
+ TerraAlert
21
+ } from "./chunk.2UYVNOEX.js";
26
22
  import {
27
- formatDate
28
- } from "./chunk.EZMKGB3F.js";
23
+ TerraLoader
24
+ } from "./chunk.CEZIPRUZ.js";
29
25
  import {
30
26
  TerraButton
31
- } from "./chunk.ETTS3KR7.js";
27
+ } from "./chunk.E77UOXGG.js";
32
28
  import {
33
29
  TerraIcon
34
- } from "./chunk.3AVJ4SFR.js";
35
- import {
36
- TerraAlert
37
- } from "./chunk.UR6UU3IH.js";
30
+ } from "./chunk.G7FG7ZK3.js";
38
31
  import {
39
32
  watch
40
33
  } from "./chunk.6MMTW476.js";
41
34
  import {
42
35
  TerraElement,
43
36
  component_styles_default
44
- } from "./chunk.IH64XZC2.js";
37
+ } from "./chunk.6ELCJNTL.js";
45
38
  import {
46
39
  e,
47
40
  n,
48
41
  r
49
42
  } from "./chunk.2FFSUM6T.js";
43
+ import {
44
+ GiovanniVariableCatalog
45
+ } from "./chunk.M5HLSUC4.js";
46
+ import {
47
+ h as h2,
48
+ s
49
+ } from "./chunk.UGTZ22DI.js";
50
+ import {
51
+ formatDate
52
+ } from "./chunk.NJTOF6ZK.js";
50
53
  import {
51
54
  x
52
55
  } from "./chunk.PQFHJHNO.js";
@@ -61,7 +64,7 @@ import {
61
64
 
62
65
  // src/components/time-series/time-series.component.ts
63
66
  var import_plotly = __toESM(require_plotly_min(), 1);
64
- var _timeSeriesController, _catalog, _fetchVariableTask, _handleQuotaError, _confirmDataPointWarning, confirmDataPointWarning_fn, _cancelDataPointWarning, cancelDataPointWarning_fn, _abortDataLoad, abortDataLoad_fn, _downloadCSV, downloadCSV_fn, _convertToCSV, convertToCSV_fn, _downloadPNG, downloadPNG_fn, _handleActiveMenuItem, handleActiveMenuItem_fn, _handleComponentLeave, handleComponentLeave_fn, _handleMenuLeave, handleMenuLeave_fn, _getVariableEntryId, getVariableEntryId_fn, _getYAxisLabel, getYAxisLabel_fn, _renderInfoPanel, renderInfoPanel_fn, _renderDownloadPanel, renderDownloadPanel_fn, _renderHelpPanel, renderHelpPanel_fn, _renderJupyterNotebookPanel, renderJupyterNotebookPanel_fn, _handleJupyterNotebookClick, handleJupyterNotebookClick_fn, _handlePlotRelayout, handlePlotRelayout_fn;
67
+ var _timeSeriesController, _catalog, _fetchVariableTask, _handleQuotaError, _confirmDataPointWarning, confirmDataPointWarning_fn, _cancelDataPointWarning, cancelDataPointWarning_fn, _abortDataLoad, abortDataLoad_fn, _downloadCSV, downloadCSV_fn, _convertToCSV, convertToCSV_fn, _downloadPNG, downloadPNG_fn, _handleActiveMenuItem, handleActiveMenuItem_fn, _handleComponentLeave, handleComponentLeave_fn, _handleMenuLeave, handleMenuLeave_fn, _getYAxisLabel, getYAxisLabel_fn, _renderInfoPanel, renderInfoPanel_fn, _renderDownloadPanel, renderDownloadPanel_fn, _renderHelpPanel, renderHelpPanel_fn, _renderJupyterNotebookPanel, renderJupyterNotebookPanel_fn, _handleJupyterNotebookClick, handleJupyterNotebookClick_fn, _handlePlotRelayout, handlePlotRelayout_fn;
65
68
  var TerraTimeSeries = class extends TerraElement {
66
69
  constructor() {
67
70
  super(...arguments);
@@ -77,7 +80,6 @@ var TerraTimeSeries = class extends TerraElement {
77
80
  __privateAdd(this, _handleActiveMenuItem);
78
81
  __privateAdd(this, _handleComponentLeave);
79
82
  __privateAdd(this, _handleMenuLeave);
80
- __privateAdd(this, _getVariableEntryId);
81
83
  __privateAdd(this, _getYAxisLabel);
82
84
  __privateAdd(this, _renderInfoPanel);
83
85
  __privateAdd(this, _renderDownloadPanel);
@@ -91,11 +93,12 @@ var TerraTimeSeries = class extends TerraElement {
91
93
  this.estimatedDataPoints = 0;
92
94
  this.activeMenuItem = null;
93
95
  __privateAdd(this, _catalog, new GiovanniVariableCatalog());
96
+ this._authController = new AuthController(this);
94
97
  // @ts-expect-error
95
98
  __privateAdd(this, _fetchVariableTask, new h2(this, {
96
99
  task: async (_args, { signal }) => {
97
100
  var _a, _b, _c, _d;
98
- const variableEntryId = __privateMethod(this, _getVariableEntryId, getVariableEntryId_fn).call(this);
101
+ const variableEntryId = this.getVariableEntryId();
99
102
  console.debug("fetch variable ", variableEntryId);
100
103
  if (!variableEntryId) {
101
104
  return;
@@ -132,16 +135,7 @@ var TerraTimeSeries = class extends TerraElement {
132
135
  "terra-time-series-error",
133
136
  __privateGet(this, _handleQuotaError)
134
137
  );
135
- __privateSet(this, _timeSeriesController, new TimeSeriesController(this, this.bearerToken));
136
- if (!document.getElementById("terra-jupyterlite-warmup-iframe")) {
137
- const iframe = document.createElement("iframe");
138
- iframe.id = "terra-jupyterlite-warmup-iframe";
139
- iframe.src = "https://gesdisc.github.io/jupyterlite/lab/index.html?path=warmup.ipynb";
140
- iframe.style.cssText = "width:1px; height:1px; opacity:0.01; pointer-events: none; border: 0; position: fixed; top: 0; left: 0;";
141
- iframe.title = "Notebook Warm-Up Frame";
142
- iframe.setAttribute("aria-hidden", "true");
143
- document.body.appendChild(iframe);
144
- }
138
+ __privateSet(this, _timeSeriesController, new TimeSeriesController(this));
145
139
  }
146
140
  disconnectedCallback() {
147
141
  super.disconnectedCallback();
@@ -381,6 +375,13 @@ var TerraTimeSeries = class extends TerraElement {
381
375
  </dialog>
382
376
  `;
383
377
  }
378
+ getVariableEntryId() {
379
+ var _a;
380
+ if (!this.variableEntryId && !(this.collection && this.variable)) {
381
+ return;
382
+ }
383
+ return (_a = this.variableEntryId) != null ? _a : `${this.collection}_${this.variable}`;
384
+ }
384
385
  };
385
386
  _timeSeriesController = new WeakMap();
386
387
  _catalog = new WeakMap();
@@ -467,14 +468,6 @@ handleMenuLeave_fn = function(event) {
467
468
  this.activeMenuItem = null;
468
469
  }
469
470
  };
470
- _getVariableEntryId = new WeakSet();
471
- getVariableEntryId_fn = function() {
472
- var _a;
473
- if (!this.variableEntryId && !(this.collection && this.variable)) {
474
- return;
475
- }
476
- return (_a = this.variableEntryId) != null ? _a : `${this.collection}_${this.variable}`;
477
- };
478
471
  _getYAxisLabel = new WeakSet();
479
472
  getYAxisLabel_fn = function() {
480
473
  if (!this.catalogVariable) {
@@ -640,7 +633,7 @@ handleJupyterNotebookClick_fn = function() {
640
633
  source: `from terra_ui_components import TerraTimeSeries
641
634
  timeseries = TerraTimeSeries()
642
635
 
643
- timeseries.variableEntryId = '${__privateMethod(this, _getVariableEntryId, getVariableEntryId_fn).call(this)}'
636
+ timeseries.variableEntryId = '${this.getVariableEntryId()}'
644
637
  timeseries.startDate = '${this.startDate}'
645
638
  timeseries.endDate = '${this.endDate}'
646
639
  timeseries.location = '${this.location}'
@@ -656,7 +649,7 @@ timeseries`,
656
649
  jupyterWindow.postMessage(
657
650
  {
658
651
  type: "load-notebook",
659
- filename: `${encodeURIComponent((_a = __privateMethod(this, _getVariableEntryId, getVariableEntryId_fn).call(this)) != null ? _a : "plot")}.ipynb`,
652
+ filename: `${encodeURIComponent((_a = this.getVariableEntryId()) != null ? _a : "plot")}.ipynb`,
660
653
  notebook,
661
654
  timeSeriesData,
662
655
  databaseName: DB_NAME,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraVariableKeywordSearch
3
- } from "./chunk.2SMZLZLS.js";
3
+ } from "./chunk.4FXB6TO3.js";
4
4
 
5
5
  // src/components/variable-keyword-search/variable-keyword-search.ts
6
6
  var variable_keyword_search_default = TerraVariableKeywordSearch;
@@ -1,3 +1,6 @@
1
+ import {
2
+ alert_styles_default
3
+ } from "./chunk.3WD5HVRH.js";
1
4
  import {
2
5
  HasSlotController
3
6
  } from "./chunk.6OAPBJRP.js";
@@ -10,15 +13,12 @@ import {
10
13
  import {
11
14
  TerraElement,
12
15
  component_styles_default
13
- } from "./chunk.IH64XZC2.js";
16
+ } from "./chunk.6ELCJNTL.js";
14
17
  import {
15
18
  e as e2,
16
19
  n,
17
20
  r
18
21
  } from "./chunk.2FFSUM6T.js";
19
- import {
20
- alert_styles_default
21
- } from "./chunk.3WD5HVRH.js";
22
22
  import {
23
23
  x
24
24
  } from "./chunk.PQFHJHNO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraMap
3
- } from "./chunk.KF54OOIY.js";
3
+ } from "./chunk.L7JBTN32.js";
4
4
 
5
5
  // src/components/map/map.ts
6
6
  var map_default = TerraMap;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  c
3
- } from "./chunk.PZRCJWJ4.js";
3
+ } from "./chunk.6WMXHA2J.js";
4
4
  import {
5
5
  h
6
- } from "./chunk.QB5SASDL.js";
6
+ } from "./chunk.FKLQEDIX.js";
7
7
  import {
8
8
  combobox_styles_default
9
9
  } from "./chunk.USC76EZL.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk.LMGJJIIS.js";
14
14
  import {
15
15
  n as n2
16
- } from "./chunk.2XCNCXGV.js";
16
+ } from "./chunk.262RZKG2.js";
17
17
  import {
18
18
  o
19
19
  } from "./chunk.QEA4QW6G.js";
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  TerraElement,
28
28
  component_styles_default
29
- } from "./chunk.IH64XZC2.js";
29
+ } from "./chunk.6ELCJNTL.js";
30
30
  import {
31
31
  n,
32
32
  r
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FetchController
3
- } from "./chunk.3HAQFMAD.js";
3
+ } from "./chunk.ZP2W7T3J.js";
4
4
  import {
5
5
  variable_keyword_search_styles_default
6
6
  } from "./chunk.NMJ34B6C.js";
@@ -11,10 +11,10 @@ import {
11
11
  } from "./chunk.SCFJOPPV.js";
12
12
  import {
13
13
  icon_default
14
- } from "./chunk.Q6UYTNS4.js";
14
+ } from "./chunk.LJE2IVXS.js";
15
15
  import {
16
16
  n as n2
17
- } from "./chunk.2XCNCXGV.js";
17
+ } from "./chunk.262RZKG2.js";
18
18
  import {
19
19
  o
20
20
  } from "./chunk.QEA4QW6G.js";
@@ -23,14 +23,14 @@ import {
23
23
  } from "./chunk.QZV6EAIM.js";
24
24
  import {
25
25
  button_default
26
- } from "./chunk.CP7RNEMV.js";
26
+ } from "./chunk.KRO4ARQY.js";
27
27
  import {
28
28
  watch
29
29
  } from "./chunk.6MMTW476.js";
30
30
  import {
31
31
  TerraElement,
32
32
  component_styles_default
33
- } from "./chunk.IH64XZC2.js";
33
+ } from "./chunk.6ELCJNTL.js";
34
34
  import {
35
35
  n,
36
36
  r
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk.POKHGMEN.js";
4
4
  import {
5
5
  TerraMap
6
- } from "./chunk.QVJ6PPBP.js";
6
+ } from "./chunk.L7JBTN32.js";
7
7
  import {
8
8
  StringifyBoundingBox,
9
9
  parseBoundingBox
10
- } from "./chunk.FBC4N5F4.js";
10
+ } from "./chunk.EWXWRDS2.js";
11
11
  import {
12
12
  TerraElement,
13
13
  component_styles_default
14
- } from "./chunk.IH64XZC2.js";
14
+ } from "./chunk.6ELCJNTL.js";
15
15
  import {
16
16
  e,
17
17
  n,
@@ -44,45 +44,11 @@ var TerraSpatialPicker = class extends TerraElement {
44
44
  this.showMapOnFocus = false;
45
45
  }
46
46
  _blur(e2) {
47
- const inputValue = e2.target.value;
48
- if (inputValue === "") {
49
- this.mapValue = [];
50
- } else {
51
- const parsedValue = parseBoundingBox(inputValue);
52
- if (Array.isArray(parsedValue)) {
53
- this.mapValue = parsedValue.map((coordArray) => {
54
- return coordArray.map(
55
- (coord) => parseFloat(coord.toFixed(2))
56
- );
57
- });
58
- } else if (parsedValue && typeof parsedValue === "object" && "lat" in parsedValue && "lng" in parsedValue) {
59
- const { lat, lng } = parsedValue;
60
- this.mapValue = {
61
- lat: parseFloat(lat.toFixed(2)),
62
- lng: parseFloat(lng.toFixed(2))
63
- };
64
- } else {
65
- this.mapValue = [];
66
- }
67
- }
47
+ this._emitMapChange();
68
48
  const relatedTarget = e2.relatedTarget;
69
49
  if (!(relatedTarget == null ? void 0 : relatedTarget.closest("terra-map"))) {
70
50
  this.isExpanded = false;
71
51
  }
72
- this.emit("terra-map-change", {
73
- detail: {
74
- cause: "draw",
75
- latLng: this.mapValue,
76
- geoJson: {
77
- type: "Feature",
78
- geometry: {
79
- type: "Point",
80
- coordinates: [this.mapValue.lng, this.mapValue.lat]
81
- },
82
- properties: {}
83
- }
84
- }
85
- });
86
52
  }
87
53
  _focus() {
88
54
  if (this.showMapOnFocus) {
@@ -92,6 +58,32 @@ var TerraSpatialPicker = class extends TerraElement {
92
58
  _click() {
93
59
  this.isExpanded = !this.isExpanded;
94
60
  }
61
+ _emitMapChange() {
62
+ const layer = this.map.getDrawLayer();
63
+ if ("getLatLng" in layer) {
64
+ this.mapValue = layer.getLatLng();
65
+ this.emit("terra-map-change", {
66
+ detail: {
67
+ type: "point" /* POINT */,
68
+ cause: "draw",
69
+ latLng: this.mapValue,
70
+ geoJson: layer.toGeoJSON()
71
+ }
72
+ });
73
+ } else if ("getBounds" in layer) {
74
+ this.mapValue = layer.getBounds();
75
+ this.emit("terra-map-change", {
76
+ detail: {
77
+ type: "bbox" /* BBOX */,
78
+ cause: "draw",
79
+ bounds: this.mapValue,
80
+ geoJson: layer.toGeoJSON()
81
+ }
82
+ });
83
+ } else {
84
+ this.mapValue = [];
85
+ }
86
+ }
95
87
  open() {
96
88
  this.isExpanded = true;
97
89
  }
@@ -102,18 +94,18 @@ var TerraSpatialPicker = class extends TerraElement {
102
94
  switch (event.detail.cause) {
103
95
  case "clear":
104
96
  this.spatialInput.value = "";
105
- this.spatialConstraints = "-180, -90, 180, 90";
106
97
  break;
107
98
  case "draw":
108
- if (event.detail.bounds) {
99
+ if (event.detail.type === "bbox" /* BBOX */) {
109
100
  this.spatialInput.value = StringifyBoundingBox(
110
101
  event.detail.bounds
111
102
  );
112
- } else if (event.detail.latLng) {
103
+ } else if (event.detail.type === "point" /* POINT */) {
113
104
  this.spatialInput.value = StringifyBoundingBox(
114
105
  event.detail.latLng
115
106
  );
116
107
  }
108
+ this._emitMapChange();
117
109
  break;
118
110
  default:
119
111
  break;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraDataSubsetter
3
- } from "./chunk.RPKQ62SW.js";
3
+ } from "./chunk.X33FR7YO.js";
4
4
 
5
5
  // src/react/data-subsetter/index.ts
6
6
  import * as React from "react";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  TerraElement,
9
9
  component_styles_default
10
- } from "./chunk.IH64XZC2.js";
10
+ } from "./chunk.6ELCJNTL.js";
11
11
  import {
12
12
  n
13
13
  } from "./chunk.2FFSUM6T.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraSpatialPicker
3
- } from "./chunk.MYTZER6B.js";
3
+ } from "./chunk.4UXVQKZW.js";
4
4
 
5
5
  // src/react/spatial-picker/index.ts
6
6
  import * as React from "react";