@nasa-terra/components 0.0.48 → 0.0.49

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 (248) hide show
  1. package/cdn/chunks/{chunk.HIC7TKQS.js → chunk.223YFDUY.js} +1 -1
  2. package/cdn/chunks/{chunk.OP4DVMTM.js → chunk.22FL2HL5.js} +4 -4
  3. package/{dist/chunks/chunk.LOPN2BI6.js → cdn/chunks/chunk.3QZ5R5PK.js} +1 -1
  4. package/cdn/chunks/{chunk.E3VWKOGU.js → chunk.4C3HZA72.js} +1 -1
  5. package/cdn/chunks/{chunk.J5WNLQ66.js → chunk.5BBJLWL3.js} +1 -1
  6. package/{dist/chunks/chunk.LYZENZEX.js → cdn/chunks/chunk.5YJCIKMJ.js} +1 -1
  7. package/cdn/chunks/{chunk.N5BIQN5E.js → chunk.6FUEWFFP.js} +1 -1
  8. package/cdn/chunks/{chunk.QL5WSSZ2.js → chunk.6THI26BE.js} +1 -1
  9. package/cdn/chunks/{chunk.NZF5FNIO.js → chunk.6ZXQNG6K.js} +1 -1
  10. package/cdn/chunks/{chunk.EIA3QLWP.js → chunk.AGLW4DNT.js} +1 -1
  11. package/{dist/chunks/chunk.H55L6B7C.js → cdn/chunks/chunk.AHMRAKSI.js} +1 -1
  12. package/{dist/chunks/chunk.5BVWCF7Y.js → cdn/chunks/chunk.CHMJMBGQ.js} +1 -1
  13. package/{dist/chunks/chunk.2I2PDRD2.js → cdn/chunks/chunk.CUZXFISL.js} +1 -1
  14. package/cdn/chunks/{chunk.YNNBYYDX.js → chunk.E4YNHBZG.js} +7 -7
  15. package/cdn/chunks/{chunk.LIFX3UNG.js → chunk.E7IZSHBP.js} +1 -1
  16. package/cdn/chunks/{chunk.3646VSPK.js → chunk.EO47YYB6.js} +1 -1
  17. package/cdn/chunks/{chunk.WFY3CETZ.js → chunk.GBSGHUOJ.js} +1 -1
  18. package/cdn/chunks/{chunk.QJ7SX5UW.js → chunk.GJRINL4S.js} +8 -8
  19. package/{dist/chunks/chunk.CACRFQMG.js → cdn/chunks/chunk.GOXTXMM5.js} +1 -1
  20. package/cdn/chunks/{chunk.GWXMXI7Z.js → chunk.GQRA3ATK.js} +1 -1
  21. package/{dist/chunks/chunk.23UQH3KK.js → cdn/chunks/chunk.H4TZQCON.js} +1 -1
  22. package/cdn/chunks/{chunk.YBPRDSV5.js → chunk.HHQBLL7T.js} +1 -1
  23. package/cdn/chunks/{chunk.CTNFFO3F.js → chunk.HK6RBG6U.js} +1 -1
  24. package/cdn/chunks/{chunk.D56YHQ7N.js → chunk.HU6V5L7W.js} +2 -2
  25. package/cdn/chunks/{chunk.HBSI7ENM.js → chunk.JVPUXTO4.js} +1 -1
  26. package/cdn/chunks/{chunk.NJK4UDOP.js → chunk.KJH74DL5.js} +1 -1
  27. package/cdn/chunks/{chunk.JOEPBQUP.js → chunk.KUTIAVYB.js} +1 -1
  28. package/cdn/chunks/{chunk.VA474OQV.js → chunk.N7KAFKJ2.js} +1 -1
  29. package/cdn/chunks/{chunk.BXL6PWXP.js → chunk.NI6BYNNP.js} +1 -1
  30. package/cdn/chunks/{chunk.Y2NAJP6A.js → chunk.O2MODHQC.js} +1 -1
  31. package/cdn/chunks/{chunk.B3HVN4RC.js → chunk.OBVIN4CK.js} +1 -1
  32. package/{dist/chunks/chunk.MQXF7XBN.js → cdn/chunks/chunk.OZF43NJB.js} +1 -1
  33. package/cdn/chunks/{chunk.T6NRKVA6.js → chunk.P6YQKL6R.js} +1 -1
  34. package/cdn/chunks/{chunk.IL7RNVV6.js → chunk.PNDWOMP6.js} +17 -4
  35. package/cdn/chunks/{chunk.MQ32ES6B.js → chunk.Q26MQOWA.js} +15 -15
  36. package/cdn/chunks/{chunk.2EADOTJA.js → chunk.QBCIK3R7.js} +6 -6
  37. package/cdn/chunks/{chunk.HVCS747G.js → chunk.QKHC2ATV.js} +1 -1
  38. package/cdn/chunks/{chunk.6V6D7DJ6.js → chunk.TMCE6DLN.js} +55 -45
  39. package/cdn/chunks/{chunk.CN4PVOIW.js → chunk.TPM5PMWU.js} +1 -1
  40. package/cdn/chunks/{chunk.VO22IPMM.js → chunk.TZEOX6CT.js} +1 -1
  41. package/cdn/chunks/{chunk.ORF5COM4.js → chunk.UVH6J744.js} +1 -1
  42. package/cdn/chunks/{chunk.FVCOLX7X.js → chunk.W3F5UXG4.js} +14 -14
  43. package/{dist/chunks/chunk.QX3LYALG.js → cdn/chunks/chunk.WDYTRGKX.js} +1 -1
  44. package/cdn/chunks/{chunk.X257UWVG.js → chunk.WHWEIJBN.js} +7 -7
  45. package/cdn/chunks/{chunk.BY6WU6IJ.js → chunk.WZWPUZ4G.js} +1 -1
  46. package/cdn/chunks/{chunk.SE43NCTB.js → chunk.XLOQG3N3.js} +1 -1
  47. package/cdn/chunks/{chunk.6A3EAKJ2.js → chunk.XPDOJKP6.js} +2 -2
  48. package/{dist/chunks/chunk.XEQHUWU2.js → cdn/chunks/chunk.XTI7A4OU.js} +1 -1
  49. package/cdn/chunks/{chunk.XQLB7F2A.js → chunk.XUFDZYA4.js} +7 -7
  50. package/cdn/chunks/{chunk.RMRSBTZG.js → chunk.Y2RITNO6.js} +8 -8
  51. package/cdn/chunks/{chunk.6WP4WU2G.js → chunk.YK7YNJKX.js} +1 -1
  52. package/cdn/chunks/{chunk.TROIXD2S.js → chunk.YMTPRNE2.js} +1 -1
  53. package/cdn/chunks/{chunk.UTAFPENV.js → chunk.YT4S4EAP.js} +1 -1
  54. package/cdn/chunks/{chunk.E66PQEXW.js → chunk.Z5NH5S3B.js} +1 -1
  55. package/{dist/chunks/chunk.F4XI5WL4.js → cdn/chunks/chunk.ZDTQ44JY.js} +1 -1
  56. package/cdn/chunks/{chunk.BZYBFGMH.js → chunk.ZNJUSAPT.js} +1 -1
  57. package/cdn/components/browse-variables/browse-variables.component.js +19 -19
  58. package/cdn/components/browse-variables/browse-variables.controller.js +1 -1
  59. package/cdn/components/browse-variables/browse-variables.js +20 -20
  60. package/cdn/components/button/button.component.js +4 -4
  61. package/cdn/components/button/button.js +5 -5
  62. package/cdn/components/chip/chip.component.js +2 -2
  63. package/cdn/components/chip/chip.js +3 -3
  64. package/cdn/components/combobox/combobox.component.js +5 -5
  65. package/cdn/components/combobox/combobox.js +6 -6
  66. package/cdn/components/data-rods/data-rods.component.js +25 -25
  67. package/cdn/components/data-rods/data-rods.js +26 -26
  68. package/cdn/components/date-picker/date-picker.component.js +2 -2
  69. package/cdn/components/date-picker/date-picker.js +3 -3
  70. package/cdn/components/date-range-slider/date-range-slider.component.js +3 -3
  71. package/cdn/components/date-range-slider/date-range-slider.js +4 -4
  72. package/cdn/components/dialog/dialog.component.js +2 -2
  73. package/cdn/components/dialog/dialog.js +3 -3
  74. package/cdn/components/icon/icon.component.js +2 -2
  75. package/cdn/components/icon/icon.js +3 -3
  76. package/cdn/components/loader/loader.component.js +2 -2
  77. package/cdn/components/loader/loader.js +3 -3
  78. package/cdn/components/login/login.component.js +11 -11
  79. package/cdn/components/login/login.js +12 -12
  80. package/cdn/components/map/map.component.js +5 -5
  81. package/cdn/components/map/map.js +6 -6
  82. package/cdn/components/plot/plot.component.js +2 -2
  83. package/cdn/components/plot/plot.js +3 -3
  84. package/cdn/components/skeleton/skeleton.component.js +4 -4
  85. package/cdn/components/skeleton/skeleton.js +5 -5
  86. package/cdn/components/spatial-picker/spatial-picker.component.js +6 -6
  87. package/cdn/components/spatial-picker/spatial-picker.js +7 -7
  88. package/cdn/components/time-series/time-series.component.js +13 -13
  89. package/cdn/components/time-series/time-series.controller.d.ts +4 -0
  90. package/cdn/components/time-series/time-series.controller.js +1 -1
  91. package/cdn/components/time-series/time-series.js +14 -14
  92. package/cdn/components/variable-combobox/variable-combobox.component.js +10 -10
  93. package/cdn/components/variable-combobox/variable-combobox.controller.js +1 -1
  94. package/cdn/components/variable-combobox/variable-combobox.js +11 -11
  95. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +13 -13
  96. package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +1 -1
  97. package/cdn/components/variable-keyword-search/variable-keyword-search.js +14 -14
  98. package/cdn/custom-elements.json +522 -522
  99. package/cdn/internal/indexeddb.d.ts +1 -0
  100. package/cdn/react/browse-variables/index.js +20 -20
  101. package/cdn/react/button/index.js +5 -5
  102. package/cdn/react/chip/index.js +3 -3
  103. package/cdn/react/combobox/index.js +6 -6
  104. package/cdn/react/data-rods/index.js +26 -26
  105. package/cdn/react/date-picker/index.js +3 -3
  106. package/cdn/react/date-range-slider/index.js +4 -4
  107. package/cdn/react/dialog/index.js +3 -3
  108. package/cdn/react/icon/index.js +3 -3
  109. package/cdn/react/index.d.ts +3 -3
  110. package/cdn/react/index.js +70 -70
  111. package/cdn/react/loader/index.js +3 -3
  112. package/cdn/react/login/index.js +12 -12
  113. package/cdn/react/map/index.js +6 -6
  114. package/cdn/react/plot/index.js +3 -3
  115. package/cdn/react/skeleton/index.js +5 -5
  116. package/cdn/react/spatial-picker/index.js +7 -7
  117. package/cdn/react/time-series/index.js +14 -14
  118. package/cdn/react/variable-combobox/index.js +11 -11
  119. package/cdn/react/variable-keyword-search/index.js +14 -14
  120. package/cdn/terra-ui-components.js +64 -64
  121. package/cdn/types/vue/index.d.ts +67 -67
  122. package/cdn/utilities/animation.js +2 -2
  123. package/cdn/vscode.html-custom-data.json +79 -79
  124. package/cdn/web-types.json +123 -123
  125. package/dist/chunks/{chunk.X4PR6VKZ.js → chunk.2G2WX7AK.js} +1 -1
  126. package/dist/chunks/{chunk.LXRI7TOI.js → chunk.3JGJNJNR.js} +4 -4
  127. package/dist/chunks/{chunk.4S7DXUHD.js → chunk.3NSQCC3Q.js} +1 -1
  128. package/dist/chunks/{chunk.CUCLM2VE.js → chunk.3OVW2KMN.js} +1 -1
  129. package/dist/chunks/{chunk.YJAMBIQJ.js → chunk.4KO5PICP.js} +1 -1
  130. package/dist/chunks/{chunk.S3GRLTMN.js → chunk.4R2BYB6E.js} +2 -2
  131. package/dist/chunks/{chunk.BOSYESB4.js → chunk.554RPEKS.js} +1 -1
  132. package/dist/chunks/{chunk.47LMRJ2I.js → chunk.5SO2EVCS.js} +1 -1
  133. package/dist/chunks/{chunk.Z4DM3KVM.js → chunk.5ZQ3T7U6.js} +1 -1
  134. package/{cdn/chunks/chunk.3RDQEAVW.js → dist/chunks/chunk.6N2VG3WB.js} +1 -1
  135. package/dist/chunks/{chunk.6OJYLSWD.js → chunk.6YPI5ICE.js} +1 -1
  136. package/{cdn/chunks/chunk.O2TRKSNK.js → dist/chunks/chunk.AOED6YJO.js} +1 -1
  137. package/dist/chunks/{chunk.JO4WJIST.js → chunk.ATDLYF22.js} +1 -1
  138. package/dist/chunks/{chunk.UNJWMV52.js → chunk.BNPTMFX6.js} +3 -3
  139. package/dist/chunks/{chunk.BIRU6JO4.js → chunk.CNWIESDL.js} +51 -41
  140. package/dist/chunks/{chunk.I7OISEX2.js → chunk.CX4D3HKO.js} +12 -12
  141. package/dist/chunks/{chunk.CGBLLERD.js → chunk.EESNZVN2.js} +1 -1
  142. package/dist/chunks/{chunk.ILXKURDQ.js → chunk.FB54C3YH.js} +1 -1
  143. package/dist/chunks/{chunk.EM5PICRX.js → chunk.FJ3U2XKA.js} +1 -1
  144. package/dist/chunks/{chunk.GPSTXUT5.js → chunk.FRUINK4G.js} +1 -1
  145. package/dist/chunks/{chunk.OUOPW3ER.js → chunk.G3VEPRFK.js} +1 -1
  146. package/{cdn/chunks/chunk.X2FBQ3A6.js → dist/chunks/chunk.GJTXKL6E.js} +1 -1
  147. package/dist/chunks/{chunk.I7JBSO72.js → chunk.HCVQ3XUH.js} +1 -1
  148. package/dist/chunks/{chunk.BVRLLPQY.js → chunk.ITUHRIGY.js} +4 -4
  149. package/{cdn/chunks/chunk.334T2GS3.js → dist/chunks/chunk.JQ6NT4KL.js} +1 -1
  150. package/dist/chunks/{chunk.ZUVOW566.js → chunk.JSNOEFVA.js} +10 -10
  151. package/dist/chunks/{chunk.F2FYXSB2.js → chunk.KJBIWLKJ.js} +3 -3
  152. package/{cdn/chunks/chunk.2OSDN2GB.js → dist/chunks/chunk.KWQTGECH.js} +1 -1
  153. package/dist/chunks/{chunk.6QIBPH5F.js → chunk.L6EH27ZH.js} +4 -4
  154. package/dist/chunks/{chunk.7OWQQEAP.js → chunk.LPSLYYX7.js} +17 -4
  155. package/dist/chunks/{chunk.JXGIYCYM.js → chunk.LQF567LB.js} +1 -1
  156. package/{cdn/chunks/chunk.FHH2FUJG.js → dist/chunks/chunk.M3G3FNGA.js} +1 -1
  157. package/dist/chunks/{chunk.HKGWMDCF.js → chunk.Q4IXA7P4.js} +1 -1
  158. package/dist/chunks/{chunk.LP5ZO5K7.js → chunk.QYNFI3JF.js} +1 -1
  159. package/dist/chunks/{chunk.OCU5BRDH.js → chunk.R63JDI4U.js} +1 -1
  160. package/dist/chunks/{chunk.OAU6JPZI.js → chunk.RQVYOWG7.js} +1 -1
  161. package/dist/chunks/{chunk.HCBBHGFQ.js → chunk.RWJIRDW7.js} +1 -1
  162. package/dist/chunks/{chunk.UKHFYWC4.js → chunk.S5KBP7VV.js} +1 -1
  163. package/dist/chunks/{chunk.C277BBR2.js → chunk.T4VICTQD.js} +1 -1
  164. package/dist/chunks/{chunk.PCACPCHQ.js → chunk.TCWD27UO.js} +1 -1
  165. package/{cdn/chunks/chunk.FNTGOCVR.js → dist/chunks/chunk.TXKPVO5K.js} +1 -1
  166. package/dist/chunks/{chunk.MXSBPTC2.js → chunk.VQGYCUYU.js} +1 -1
  167. package/{cdn/chunks/chunk.74FVN3CJ.js → dist/chunks/chunk.VT2TD724.js} +1 -1
  168. package/dist/chunks/{chunk.BVQYPOH3.js → chunk.VX6ZN32N.js} +1 -1
  169. package/dist/chunks/{chunk.JKGZXVLU.js → chunk.WASTEVMF.js} +7 -7
  170. package/dist/chunks/{chunk.J36VAHUT.js → chunk.WBECGXNB.js} +1 -1
  171. package/dist/chunks/{chunk.UZCTDITY.js → chunk.WXUM2OJU.js} +1 -1
  172. package/dist/chunks/{chunk.YHF5WNDA.js → chunk.XDVBMX2H.js} +1 -1
  173. package/{cdn/chunks/chunk.FZE4TOET.js → dist/chunks/chunk.Y3BPE5GW.js} +1 -1
  174. package/dist/chunks/{chunk.YOU6ILBW.js → chunk.Y7T3L2V7.js} +4 -4
  175. package/dist/chunks/{chunk.AR77QUZD.js → chunk.YG7YPTMC.js} +1 -1
  176. package/dist/chunks/{chunk.XWPEFW7C.js → chunk.YK6WGDUJ.js} +1 -1
  177. package/dist/chunks/{chunk.6NUXR3RO.js → chunk.YZFMURTR.js} +1 -1
  178. package/dist/chunks/{chunk.26XSNZWX.js → chunk.ZTRHUFJF.js} +1 -1
  179. package/{cdn/chunks/chunk.2YMFQWZB.js → dist/chunks/chunk.ZUFNMYG7.js} +1 -1
  180. package/{cdn/chunks/chunk.56LRTFFP.js → dist/chunks/chunk.ZUMK4W2U.js} +1 -1
  181. package/dist/components/browse-variables/browse-variables.component.js +12 -12
  182. package/dist/components/browse-variables/browse-variables.js +13 -13
  183. package/dist/components/button/button.component.js +3 -3
  184. package/dist/components/button/button.js +4 -4
  185. package/dist/components/chip/chip.component.js +2 -2
  186. package/dist/components/chip/chip.js +3 -3
  187. package/dist/components/combobox/combobox.component.js +3 -3
  188. package/dist/components/combobox/combobox.js +4 -4
  189. package/dist/components/data-rods/data-rods.component.js +21 -21
  190. package/dist/components/data-rods/data-rods.js +22 -22
  191. package/dist/components/date-picker/date-picker.component.js +2 -2
  192. package/dist/components/date-picker/date-picker.js +3 -3
  193. package/dist/components/date-range-slider/date-range-slider.component.js +3 -3
  194. package/dist/components/date-range-slider/date-range-slider.js +4 -4
  195. package/dist/components/dialog/dialog.component.js +2 -2
  196. package/dist/components/dialog/dialog.js +3 -3
  197. package/dist/components/icon/icon.component.js +2 -2
  198. package/dist/components/icon/icon.js +3 -3
  199. package/dist/components/loader/loader.component.js +2 -2
  200. package/dist/components/loader/loader.js +3 -3
  201. package/dist/components/login/login.component.js +9 -9
  202. package/dist/components/login/login.js +10 -10
  203. package/dist/components/map/map.component.js +5 -5
  204. package/dist/components/map/map.js +6 -6
  205. package/dist/components/plot/plot.component.js +2 -2
  206. package/dist/components/plot/plot.js +3 -3
  207. package/dist/components/skeleton/skeleton.component.js +2 -2
  208. package/dist/components/skeleton/skeleton.js +3 -3
  209. package/dist/components/spatial-picker/spatial-picker.component.js +6 -6
  210. package/dist/components/spatial-picker/spatial-picker.js +7 -7
  211. package/dist/components/time-series/time-series.component.js +10 -10
  212. package/dist/components/time-series/time-series.controller.d.ts +4 -0
  213. package/dist/components/time-series/time-series.controller.js +1 -1
  214. package/dist/components/time-series/time-series.js +11 -11
  215. package/dist/components/variable-combobox/variable-combobox.component.js +7 -7
  216. package/dist/components/variable-combobox/variable-combobox.js +8 -8
  217. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +9 -9
  218. package/dist/components/variable-keyword-search/variable-keyword-search.js +10 -10
  219. package/dist/custom-elements.json +522 -522
  220. package/dist/internal/indexeddb.d.ts +1 -0
  221. package/dist/react/browse-variables/index.js +13 -13
  222. package/dist/react/button/index.js +4 -4
  223. package/dist/react/chip/index.js +3 -3
  224. package/dist/react/combobox/index.js +4 -4
  225. package/dist/react/data-rods/index.js +22 -22
  226. package/dist/react/date-picker/index.js +3 -3
  227. package/dist/react/date-range-slider/index.js +4 -4
  228. package/dist/react/dialog/index.js +3 -3
  229. package/dist/react/icon/index.js +3 -3
  230. package/dist/react/index.d.ts +3 -3
  231. package/dist/react/index.js +62 -62
  232. package/dist/react/loader/index.js +3 -3
  233. package/dist/react/login/index.js +10 -10
  234. package/dist/react/map/index.js +6 -6
  235. package/dist/react/plot/index.js +3 -3
  236. package/dist/react/skeleton/index.js +3 -3
  237. package/dist/react/spatial-picker/index.js +7 -7
  238. package/dist/react/time-series/index.js +11 -11
  239. package/dist/react/variable-combobox/index.js +8 -8
  240. package/dist/react/variable-keyword-search/index.js +10 -10
  241. package/dist/terra-ui-components.js +56 -56
  242. package/dist/{terra_ui_components-0.0.48-py3-none-any.whl → terra_ui_components-0.0.49-py3-none-any.whl} +0 -0
  243. package/dist/{terra_ui_components-0.0.48.tar.gz → terra_ui_components-0.0.49.tar.gz} +0 -0
  244. package/dist/types/vue/index.d.ts +67 -67
  245. package/dist/vscode.html-custom-data.json +79 -79
  246. package/dist/web-types.json +123 -123
  247. package/package.json +1 -1
  248. package/cdn/chunks/{chunk.X2C7E56W.js → chunk.LOCO37M5.js} +3 -3
@@ -965,237 +965,6 @@
965
965
  }
966
966
  ]
967
967
  },
968
- {
969
- "kind": "javascript-module",
970
- "path": "components/data-rods/data-rods.js",
971
- "declarations": [
972
- {
973
- "kind": "class",
974
- "description": "",
975
- "name": "TerraDataRods",
976
- "members": [
977
- {
978
- "kind": "field",
979
- "name": "dependencies",
980
- "type": {
981
- "text": "object"
982
- },
983
- "static": true,
984
- "default": "{\n 'terra-time-series': TerraTimeSeries,\n 'terra-date-range-slider': TerraDateRangeSlider,\n 'terra-spatial-picker': TerraSpatialPicker,\n 'terra-variable-combobox': TerraVariableCombobox,\n }"
985
- },
986
- {
987
- "kind": "field",
988
- "name": "variableEntryId",
989
- "type": {
990
- "text": "string | undefined"
991
- },
992
- "description": "a variable entry ID (ex: GPM_3IMERGHH_06_precipitationCal)",
993
- "attribute": "variable-entry-id",
994
- "reflects": true
995
- },
996
- {
997
- "kind": "field",
998
- "name": "collection",
999
- "type": {
1000
- "text": "string | undefined"
1001
- },
1002
- "description": "a collection entry id (ex: GPM_3IMERGHH_06)\nonly required if you don't include a variableEntryId",
1003
- "attribute": "collection",
1004
- "reflects": true
1005
- },
1006
- {
1007
- "kind": "field",
1008
- "name": "variable",
1009
- "type": {
1010
- "text": "string | undefined"
1011
- },
1012
- "description": "a variable short name to plot (ex: precipitationCal)\nonly required if you don't include a variableEntryId",
1013
- "attribute": "variable",
1014
- "reflects": true
1015
- },
1016
- {
1017
- "kind": "field",
1018
- "name": "startDate",
1019
- "type": {
1020
- "text": "string | undefined"
1021
- },
1022
- "description": "The start date for the time series plot. (ex: 2021-01-01)",
1023
- "attribute": "start-date",
1024
- "reflects": true
1025
- },
1026
- {
1027
- "kind": "field",
1028
- "name": "endDate",
1029
- "type": {
1030
- "text": "string | undefined"
1031
- },
1032
- "description": "The end date for the time series plot. (ex: 2021-01-01)",
1033
- "attribute": "end-date",
1034
- "reflects": true
1035
- },
1036
- {
1037
- "kind": "field",
1038
- "name": "location",
1039
- "type": {
1040
- "text": "string | undefined"
1041
- },
1042
- "description": "The point location in \"lat,lon\" format.",
1043
- "attribute": "location",
1044
- "reflects": true
1045
- },
1046
- {
1047
- "kind": "field",
1048
- "name": "bearerToken",
1049
- "type": {
1050
- "text": "string"
1051
- },
1052
- "description": "The token to be used for authentication with remote servers.\nThe component provides the header \"Authorization: Bearer\" (the request header and authentication scheme).\nThe property's value will be inserted after \"Bearer\" (the authentication scheme).",
1053
- "attribute": "bearer-token"
1054
- },
1055
- {
1056
- "kind": "field",
1057
- "name": "catalogVariable",
1058
- "type": {
1059
- "text": "Variable"
1060
- }
1061
- },
1062
- {
1063
- "kind": "field",
1064
- "name": "#catalog",
1065
- "privacy": "private",
1066
- "default": "new GiovanniVariableCatalog()"
1067
- },
1068
- {
1069
- "kind": "field",
1070
- "name": "#fetchVariableTask",
1071
- "privacy": "private",
1072
- "default": "new Task(this, {\n task: async (_args, { signal }) => {\n const variableEntryId = this.#getVariableEntryId()\n\n console.debug('fetch variable ', variableEntryId)\n\n if (!variableEntryId) {\n return\n }\n\n const variable = await this.#catalog.getVariable(variableEntryId, {\n signal,\n })\n\n console.debug('found variable ', variable)\n\n if (!variable) {\n return\n }\n\n this.startDate =\n this.startDate ?? variable.exampleInitialStartDate?.toISOString()\n this.endDate =\n this.endDate ?? variable.exampleInitialEndDate?.toISOString()\n this.catalogVariable = variable\n },\n args: () => [this.variableEntryId, this.collection, this.variable],\n })"
1073
- },
1074
- {
1075
- "kind": "method",
1076
- "name": "#getVariableEntryId"
1077
- },
1078
- {
1079
- "kind": "method",
1080
- "name": "#handleDateRangeSliderChangeEvent",
1081
- "parameters": [
1082
- {
1083
- "name": "event",
1084
- "type": {
1085
- "text": "TerraDateRangeChangeEvent"
1086
- }
1087
- }
1088
- ],
1089
- "description": "anytime the date range slider changes, update the start and end date"
1090
- },
1091
- {
1092
- "kind": "method",
1093
- "name": "#handleVariableChange",
1094
- "parameters": [
1095
- {
1096
- "name": "event",
1097
- "type": {
1098
- "text": "TerraComboboxChangeEvent"
1099
- }
1100
- }
1101
- ]
1102
- },
1103
- {
1104
- "kind": "method",
1105
- "name": "#handleMapChange",
1106
- "parameters": [
1107
- {
1108
- "name": "event",
1109
- "type": {
1110
- "text": "CustomEvent"
1111
- }
1112
- }
1113
- ]
1114
- }
1115
- ],
1116
- "attributes": [
1117
- {
1118
- "name": "variable-entry-id",
1119
- "type": {
1120
- "text": "string | undefined"
1121
- },
1122
- "description": "a variable entry ID (ex: GPM_3IMERGHH_06_precipitationCal)",
1123
- "fieldName": "variableEntryId"
1124
- },
1125
- {
1126
- "name": "collection",
1127
- "type": {
1128
- "text": "string | undefined"
1129
- },
1130
- "description": "a collection entry id (ex: GPM_3IMERGHH_06)\nonly required if you don't include a variableEntryId",
1131
- "fieldName": "collection"
1132
- },
1133
- {
1134
- "name": "variable",
1135
- "type": {
1136
- "text": "string | undefined"
1137
- },
1138
- "description": "a variable short name to plot (ex: precipitationCal)\nonly required if you don't include a variableEntryId",
1139
- "fieldName": "variable"
1140
- },
1141
- {
1142
- "name": "start-date",
1143
- "type": {
1144
- "text": "string | undefined"
1145
- },
1146
- "description": "The start date for the time series plot. (ex: 2021-01-01)",
1147
- "fieldName": "startDate"
1148
- },
1149
- {
1150
- "name": "end-date",
1151
- "type": {
1152
- "text": "string | undefined"
1153
- },
1154
- "description": "The end date for the time series plot. (ex: 2021-01-01)",
1155
- "fieldName": "endDate"
1156
- },
1157
- {
1158
- "name": "location",
1159
- "type": {
1160
- "text": "string | undefined"
1161
- },
1162
- "description": "The point location in \"lat,lon\" format.",
1163
- "fieldName": "location"
1164
- },
1165
- {
1166
- "name": "bearer-token",
1167
- "type": {
1168
- "text": "string"
1169
- },
1170
- "description": "The token to be used for authentication with remote servers.\nThe component provides the header \"Authorization: Bearer\" (the request header and authentication scheme).\nThe property's value will be inserted after \"Bearer\" (the authentication scheme).",
1171
- "fieldName": "bearerToken"
1172
- }
1173
- ],
1174
- "superclass": {
1175
- "name": "TerraElement",
1176
- "module": "/src/internal/terra-element.js"
1177
- },
1178
- "summary": "A component for visualizing Hydrology Data Rods time series using the GES DISC Giovanni API",
1179
- "tagNameWithoutPrefix": "data-rods",
1180
- "tagName": "terra-data-rods",
1181
- "customElement": true,
1182
- "jsDoc": "/**\n * @summary A component for visualizing Hydrology Data Rods time series using the GES DISC Giovanni API\n * @documentation https://disc.gsfc.nasa.gov/components/data-rods\n * @status mvp\n * @since 1.0\n */",
1183
- "documentation": "https://disc.gsfc.nasa.gov/components/data-rods",
1184
- "status": "mvp",
1185
- "since": "1.0"
1186
- }
1187
- ],
1188
- "exports": [
1189
- {
1190
- "kind": "js",
1191
- "name": "default",
1192
- "declaration": {
1193
- "name": "TerraDataRods",
1194
- "module": "components/data-rods/data-rods.js"
1195
- }
1196
- }
1197
- ]
1198
- },
1199
968
  {
1200
969
  "kind": "javascript-module",
1201
970
  "path": "components/combobox/combobox.js",
@@ -1554,35 +1323,332 @@
1554
1323
  },
1555
1324
  {
1556
1325
  "kind": "javascript-module",
1557
- "path": "components/date-picker/date-picker.js",
1326
+ "path": "components/chip/chip.js",
1558
1327
  "declarations": [
1559
1328
  {
1560
1329
  "kind": "class",
1561
1330
  "description": "",
1562
- "name": "TerraDatePicker",
1563
- "cssParts": [
1564
- {
1565
- "description": "The component's base wrapper.",
1566
- "name": "base"
1567
- },
1568
- {
1569
- "description": "The date input element.",
1570
- "name": "input"
1571
- }
1572
- ],
1331
+ "name": "TerraChip",
1573
1332
  "slots": [
1574
1333
  {
1575
- "description": "The default slot.",
1334
+ "description": "The chip's label.",
1576
1335
  "name": ""
1577
1336
  }
1578
1337
  ],
1579
1338
  "members": [
1580
1339
  {
1581
1340
  "kind": "field",
1582
- "name": "selectedDates",
1341
+ "name": "size",
1583
1342
  "type": {
1584
- "text": "{\n startDate: string | null\n endDate: string | null\n }"
1585
- }
1343
+ "text": "'small' | 'medium' | 'large'"
1344
+ },
1345
+ "default": "'medium'",
1346
+ "attribute": "size",
1347
+ "reflects": true
1348
+ },
1349
+ {
1350
+ "kind": "field",
1351
+ "name": "#handleRemoveClick",
1352
+ "privacy": "private"
1353
+ }
1354
+ ],
1355
+ "attributes": [
1356
+ {
1357
+ "name": "size",
1358
+ "type": {
1359
+ "text": "'small' | 'medium' | 'large'"
1360
+ },
1361
+ "default": "'medium'",
1362
+ "fieldName": "size"
1363
+ }
1364
+ ],
1365
+ "superclass": {
1366
+ "name": "TerraElement",
1367
+ "module": "/src/internal/terra-element.js"
1368
+ },
1369
+ "summary": "Used for contacts and tags",
1370
+ "tagNameWithoutPrefix": "chip",
1371
+ "tagName": "terra-chip",
1372
+ "customElement": true,
1373
+ "jsDoc": "/**\n * @summary Used for contacts and tags\n * @documentation https://disc.gsfc.nasa.gov/components/chip\n * @status stable\n * @since 1.0\n *\n * @slot - The chip's label.\n */",
1374
+ "documentation": "https://disc.gsfc.nasa.gov/components/chip",
1375
+ "status": "stable",
1376
+ "since": "1.0"
1377
+ }
1378
+ ],
1379
+ "exports": [
1380
+ {
1381
+ "kind": "js",
1382
+ "name": "default",
1383
+ "declaration": {
1384
+ "name": "TerraChip",
1385
+ "module": "components/chip/chip.js"
1386
+ }
1387
+ }
1388
+ ]
1389
+ },
1390
+ {
1391
+ "kind": "javascript-module",
1392
+ "path": "components/data-rods/data-rods.js",
1393
+ "declarations": [
1394
+ {
1395
+ "kind": "class",
1396
+ "description": "",
1397
+ "name": "TerraDataRods",
1398
+ "members": [
1399
+ {
1400
+ "kind": "field",
1401
+ "name": "dependencies",
1402
+ "type": {
1403
+ "text": "object"
1404
+ },
1405
+ "static": true,
1406
+ "default": "{\n 'terra-time-series': TerraTimeSeries,\n 'terra-date-range-slider': TerraDateRangeSlider,\n 'terra-spatial-picker': TerraSpatialPicker,\n 'terra-variable-combobox': TerraVariableCombobox,\n }"
1407
+ },
1408
+ {
1409
+ "kind": "field",
1410
+ "name": "variableEntryId",
1411
+ "type": {
1412
+ "text": "string | undefined"
1413
+ },
1414
+ "description": "a variable entry ID (ex: GPM_3IMERGHH_06_precipitationCal)",
1415
+ "attribute": "variable-entry-id",
1416
+ "reflects": true
1417
+ },
1418
+ {
1419
+ "kind": "field",
1420
+ "name": "collection",
1421
+ "type": {
1422
+ "text": "string | undefined"
1423
+ },
1424
+ "description": "a collection entry id (ex: GPM_3IMERGHH_06)\nonly required if you don't include a variableEntryId",
1425
+ "attribute": "collection",
1426
+ "reflects": true
1427
+ },
1428
+ {
1429
+ "kind": "field",
1430
+ "name": "variable",
1431
+ "type": {
1432
+ "text": "string | undefined"
1433
+ },
1434
+ "description": "a variable short name to plot (ex: precipitationCal)\nonly required if you don't include a variableEntryId",
1435
+ "attribute": "variable",
1436
+ "reflects": true
1437
+ },
1438
+ {
1439
+ "kind": "field",
1440
+ "name": "startDate",
1441
+ "type": {
1442
+ "text": "string | undefined"
1443
+ },
1444
+ "description": "The start date for the time series plot. (ex: 2021-01-01)",
1445
+ "attribute": "start-date",
1446
+ "reflects": true
1447
+ },
1448
+ {
1449
+ "kind": "field",
1450
+ "name": "endDate",
1451
+ "type": {
1452
+ "text": "string | undefined"
1453
+ },
1454
+ "description": "The end date for the time series plot. (ex: 2021-01-01)",
1455
+ "attribute": "end-date",
1456
+ "reflects": true
1457
+ },
1458
+ {
1459
+ "kind": "field",
1460
+ "name": "location",
1461
+ "type": {
1462
+ "text": "string | undefined"
1463
+ },
1464
+ "description": "The point location in \"lat,lon\" format.",
1465
+ "attribute": "location",
1466
+ "reflects": true
1467
+ },
1468
+ {
1469
+ "kind": "field",
1470
+ "name": "bearerToken",
1471
+ "type": {
1472
+ "text": "string"
1473
+ },
1474
+ "description": "The token to be used for authentication with remote servers.\nThe component provides the header \"Authorization: Bearer\" (the request header and authentication scheme).\nThe property's value will be inserted after \"Bearer\" (the authentication scheme).",
1475
+ "attribute": "bearer-token"
1476
+ },
1477
+ {
1478
+ "kind": "field",
1479
+ "name": "catalogVariable",
1480
+ "type": {
1481
+ "text": "Variable"
1482
+ }
1483
+ },
1484
+ {
1485
+ "kind": "field",
1486
+ "name": "#catalog",
1487
+ "privacy": "private",
1488
+ "default": "new GiovanniVariableCatalog()"
1489
+ },
1490
+ {
1491
+ "kind": "field",
1492
+ "name": "#fetchVariableTask",
1493
+ "privacy": "private",
1494
+ "default": "new Task(this, {\n task: async (_args, { signal }) => {\n const variableEntryId = this.#getVariableEntryId()\n\n console.debug('fetch variable ', variableEntryId)\n\n if (!variableEntryId) {\n return\n }\n\n const variable = await this.#catalog.getVariable(variableEntryId, {\n signal,\n })\n\n console.debug('found variable ', variable)\n\n if (!variable) {\n return\n }\n\n this.startDate =\n this.startDate ?? variable.exampleInitialStartDate?.toISOString()\n this.endDate =\n this.endDate ?? variable.exampleInitialEndDate?.toISOString()\n this.catalogVariable = variable\n },\n args: () => [this.variableEntryId, this.collection, this.variable],\n })"
1495
+ },
1496
+ {
1497
+ "kind": "method",
1498
+ "name": "#getVariableEntryId"
1499
+ },
1500
+ {
1501
+ "kind": "method",
1502
+ "name": "#handleDateRangeSliderChangeEvent",
1503
+ "parameters": [
1504
+ {
1505
+ "name": "event",
1506
+ "type": {
1507
+ "text": "TerraDateRangeChangeEvent"
1508
+ }
1509
+ }
1510
+ ],
1511
+ "description": "anytime the date range slider changes, update the start and end date"
1512
+ },
1513
+ {
1514
+ "kind": "method",
1515
+ "name": "#handleVariableChange",
1516
+ "parameters": [
1517
+ {
1518
+ "name": "event",
1519
+ "type": {
1520
+ "text": "TerraComboboxChangeEvent"
1521
+ }
1522
+ }
1523
+ ]
1524
+ },
1525
+ {
1526
+ "kind": "method",
1527
+ "name": "#handleMapChange",
1528
+ "parameters": [
1529
+ {
1530
+ "name": "event",
1531
+ "type": {
1532
+ "text": "CustomEvent"
1533
+ }
1534
+ }
1535
+ ]
1536
+ }
1537
+ ],
1538
+ "attributes": [
1539
+ {
1540
+ "name": "variable-entry-id",
1541
+ "type": {
1542
+ "text": "string | undefined"
1543
+ },
1544
+ "description": "a variable entry ID (ex: GPM_3IMERGHH_06_precipitationCal)",
1545
+ "fieldName": "variableEntryId"
1546
+ },
1547
+ {
1548
+ "name": "collection",
1549
+ "type": {
1550
+ "text": "string | undefined"
1551
+ },
1552
+ "description": "a collection entry id (ex: GPM_3IMERGHH_06)\nonly required if you don't include a variableEntryId",
1553
+ "fieldName": "collection"
1554
+ },
1555
+ {
1556
+ "name": "variable",
1557
+ "type": {
1558
+ "text": "string | undefined"
1559
+ },
1560
+ "description": "a variable short name to plot (ex: precipitationCal)\nonly required if you don't include a variableEntryId",
1561
+ "fieldName": "variable"
1562
+ },
1563
+ {
1564
+ "name": "start-date",
1565
+ "type": {
1566
+ "text": "string | undefined"
1567
+ },
1568
+ "description": "The start date for the time series plot. (ex: 2021-01-01)",
1569
+ "fieldName": "startDate"
1570
+ },
1571
+ {
1572
+ "name": "end-date",
1573
+ "type": {
1574
+ "text": "string | undefined"
1575
+ },
1576
+ "description": "The end date for the time series plot. (ex: 2021-01-01)",
1577
+ "fieldName": "endDate"
1578
+ },
1579
+ {
1580
+ "name": "location",
1581
+ "type": {
1582
+ "text": "string | undefined"
1583
+ },
1584
+ "description": "The point location in \"lat,lon\" format.",
1585
+ "fieldName": "location"
1586
+ },
1587
+ {
1588
+ "name": "bearer-token",
1589
+ "type": {
1590
+ "text": "string"
1591
+ },
1592
+ "description": "The token to be used for authentication with remote servers.\nThe component provides the header \"Authorization: Bearer\" (the request header and authentication scheme).\nThe property's value will be inserted after \"Bearer\" (the authentication scheme).",
1593
+ "fieldName": "bearerToken"
1594
+ }
1595
+ ],
1596
+ "superclass": {
1597
+ "name": "TerraElement",
1598
+ "module": "/src/internal/terra-element.js"
1599
+ },
1600
+ "summary": "A component for visualizing Hydrology Data Rods time series using the GES DISC Giovanni API",
1601
+ "tagNameWithoutPrefix": "data-rods",
1602
+ "tagName": "terra-data-rods",
1603
+ "customElement": true,
1604
+ "jsDoc": "/**\n * @summary A component for visualizing Hydrology Data Rods time series using the GES DISC Giovanni API\n * @documentation https://disc.gsfc.nasa.gov/components/data-rods\n * @status mvp\n * @since 1.0\n */",
1605
+ "documentation": "https://disc.gsfc.nasa.gov/components/data-rods",
1606
+ "status": "mvp",
1607
+ "since": "1.0"
1608
+ }
1609
+ ],
1610
+ "exports": [
1611
+ {
1612
+ "kind": "js",
1613
+ "name": "default",
1614
+ "declaration": {
1615
+ "name": "TerraDataRods",
1616
+ "module": "components/data-rods/data-rods.js"
1617
+ }
1618
+ }
1619
+ ]
1620
+ },
1621
+ {
1622
+ "kind": "javascript-module",
1623
+ "path": "components/date-picker/date-picker.js",
1624
+ "declarations": [
1625
+ {
1626
+ "kind": "class",
1627
+ "description": "",
1628
+ "name": "TerraDatePicker",
1629
+ "cssParts": [
1630
+ {
1631
+ "description": "The component's base wrapper.",
1632
+ "name": "base"
1633
+ },
1634
+ {
1635
+ "description": "The date input element.",
1636
+ "name": "input"
1637
+ }
1638
+ ],
1639
+ "slots": [
1640
+ {
1641
+ "description": "The default slot.",
1642
+ "name": ""
1643
+ }
1644
+ ],
1645
+ "members": [
1646
+ {
1647
+ "kind": "field",
1648
+ "name": "selectedDates",
1649
+ "type": {
1650
+ "text": "{\n startDate: string | null\n endDate: string | null\n }"
1651
+ }
1586
1652
  },
1587
1653
  {
1588
1654
  "kind": "field",
@@ -1946,72 +2012,6 @@
1946
2012
  }
1947
2013
  ]
1948
2014
  },
1949
- {
1950
- "kind": "javascript-module",
1951
- "path": "components/chip/chip.js",
1952
- "declarations": [
1953
- {
1954
- "kind": "class",
1955
- "description": "",
1956
- "name": "TerraChip",
1957
- "slots": [
1958
- {
1959
- "description": "The chip's label.",
1960
- "name": ""
1961
- }
1962
- ],
1963
- "members": [
1964
- {
1965
- "kind": "field",
1966
- "name": "size",
1967
- "type": {
1968
- "text": "'small' | 'medium' | 'large'"
1969
- },
1970
- "default": "'medium'",
1971
- "attribute": "size",
1972
- "reflects": true
1973
- },
1974
- {
1975
- "kind": "field",
1976
- "name": "#handleRemoveClick",
1977
- "privacy": "private"
1978
- }
1979
- ],
1980
- "attributes": [
1981
- {
1982
- "name": "size",
1983
- "type": {
1984
- "text": "'small' | 'medium' | 'large'"
1985
- },
1986
- "default": "'medium'",
1987
- "fieldName": "size"
1988
- }
1989
- ],
1990
- "superclass": {
1991
- "name": "TerraElement",
1992
- "module": "/src/internal/terra-element.js"
1993
- },
1994
- "summary": "Used for contacts and tags",
1995
- "tagNameWithoutPrefix": "chip",
1996
- "tagName": "terra-chip",
1997
- "customElement": true,
1998
- "jsDoc": "/**\n * @summary Used for contacts and tags\n * @documentation https://disc.gsfc.nasa.gov/components/chip\n * @status stable\n * @since 1.0\n *\n * @slot - The chip's label.\n */",
1999
- "documentation": "https://disc.gsfc.nasa.gov/components/chip",
2000
- "status": "stable",
2001
- "since": "1.0"
2002
- }
2003
- ],
2004
- "exports": [
2005
- {
2006
- "kind": "js",
2007
- "name": "default",
2008
- "declaration": {
2009
- "name": "TerraChip",
2010
- "module": "components/chip/chip.js"
2011
- }
2012
- }
2013
- ]
2014
- },
2015
2015
  {
2016
2016
  "kind": "javascript-module",
2017
2017
  "path": "components/date-range-slider/date-range-slider.js",
@@ -2790,238 +2790,106 @@
2790
2790
  },
2791
2791
  {
2792
2792
  "kind": "field",
2793
- "name": "#loginTask",
2794
- "privacy": "private",
2795
- "default": "new Task(this, {\n task: async ([], { signal }) => {\n const code = await this.#getAccessCode(signal)\n const accessToken = await this.#exchangeCodeForAccessToken(code, signal)\n\n this.emit('terra-login', { detail: accessToken })\n this.#clearForm()\n },\n })"
2796
- },
2797
- {
2798
- "kind": "field",
2799
- "name": "dependencies",
2800
- "type": {
2801
- "text": "object"
2802
- },
2803
- "static": true,
2804
- "default": "{\n 'terra-button': TerraButton,\n 'terra-icon': TerraIcon,\n 'terra-loader': TerraLoader,\n }"
2805
- },
2806
- {
2807
- "kind": "method",
2808
- "name": "#getAccessCode",
2809
- "return": {
2810
- "type": {
2811
- "text": "Promise<string>"
2812
- }
2813
- },
2814
- "parameters": [
2815
- {
2816
- "name": "signal",
2817
- "type": {
2818
- "text": "AbortSignal"
2819
- }
2820
- }
2821
- ],
2822
- "description": "Using a fetch that contains our credentials, get a code from EDL that we can use to exchange for an JWT."
2823
- },
2824
- {
2825
- "kind": "method",
2826
- "name": "#exchangeCodeForAccessToken",
2827
- "parameters": [
2828
- {
2829
- "name": "code",
2830
- "type": {
2831
- "text": "string"
2832
- }
2833
- },
2834
- {
2835
- "name": "signal",
2836
- "type": {
2837
- "text": "AbortSignal"
2838
- }
2839
- }
2840
- ],
2841
- "description": "Check for a code and attempt to exchange it for a JWT, accessing only the access_token."
2842
- },
2843
- {
2844
- "kind": "method",
2845
- "name": "#handleSubmit",
2846
- "parameters": [
2847
- {
2848
- "name": "event",
2849
- "type": {
2850
- "text": "SubmitEvent"
2851
- }
2852
- }
2853
- ],
2854
- "description": "If the user submits our form to log in to EDL, use a fetch request to get an authorization code, then exchange it for an access token."
2855
- },
2856
- {
2857
- "kind": "method",
2858
- "name": "#handleKeypress",
2859
- "parameters": [
2860
- {
2861
- "name": "event",
2862
- "type": {
2863
- "text": "KeyboardEvent"
2864
- }
2865
- }
2866
- ]
2867
- },
2868
- {
2869
- "kind": "method",
2870
- "name": "#clearForm",
2871
- "description": "Clear the given form of all entries."
2872
- }
2873
- ],
2874
- "events": [
2875
- {
2876
- "description": "Emitted when a bearer token has been received from EDL.",
2877
- "name": "terra-login",
2878
- "reactName": "onTerraLogin",
2879
- "eventName": "TerraLoginEvent"
2880
- }
2881
- ],
2882
- "superclass": {
2883
- "name": "TerraElement",
2884
- "module": "/src/internal/terra-element.js"
2885
- },
2886
- "summary": "A form that logs in to Earthdata Login (EDL) and returns a bearer token.",
2887
- "tagNameWithoutPrefix": "login",
2888
- "tagName": "terra-login",
2889
- "customElement": true,
2890
- "jsDoc": "/**\n * @summary A form that logs in to Earthdata Login (EDL) and returns a bearer token.\n * @documentation https://disc.gsfc.nasa.gov/components/login\n * @status stable\n * @since 1.0\n *\n * @event terra-login - Emitted when a bearer token has been received from EDL.\n */",
2891
- "documentation": "https://disc.gsfc.nasa.gov/components/login",
2892
- "status": "stable",
2893
- "since": "1.0"
2894
- }
2895
- ],
2896
- "exports": [
2897
- {
2898
- "kind": "js",
2899
- "name": "default",
2900
- "declaration": {
2901
- "name": "TerraLogin",
2902
- "module": "components/login/login.js"
2903
- }
2904
- }
2905
- ]
2906
- },
2907
- {
2908
- "kind": "javascript-module",
2909
- "path": "components/plot/plot.js",
2910
- "declarations": [
2911
- {
2912
- "kind": "class",
2913
- "description": "",
2914
- "name": "TerraPlot",
2915
- "cssParts": [
2916
- {
2917
- "description": "The component's base wrapper.",
2918
- "name": "base"
2919
- }
2920
- ],
2921
- "members": [
2922
- {
2923
- "kind": "field",
2924
- "name": "#resizeObserver",
2925
- "privacy": "private",
2926
- "type": {
2927
- "text": "ResizeObserver"
2928
- }
2929
- },
2930
- {
2931
- "kind": "field",
2932
- "name": "base",
2933
- "type": {
2934
- "text": "HTMLElement"
2935
- }
2936
- },
2937
- {
2938
- "kind": "field",
2939
- "name": "plotTitle",
2940
- "type": {
2941
- "text": "string | undefined"
2942
- },
2943
- "attribute": "plotTitle"
2944
- },
2945
- {
2946
- "kind": "field",
2947
- "name": "layout",
2948
- "type": {
2949
- "text": "Partial<Layout> | undefined"
2950
- },
2951
- "default": "{}",
2952
- "attribute": "layout"
2793
+ "name": "#loginTask",
2794
+ "privacy": "private",
2795
+ "default": "new Task(this, {\n task: async ([], { signal }) => {\n const code = await this.#getAccessCode(signal)\n const accessToken = await this.#exchangeCodeForAccessToken(code, signal)\n\n this.emit('terra-login', { detail: accessToken })\n this.#clearForm()\n },\n })"
2953
2796
  },
2954
2797
  {
2955
2798
  "kind": "field",
2956
- "name": "config",
2799
+ "name": "dependencies",
2957
2800
  "type": {
2958
- "text": "Partial<Config> | undefined"
2801
+ "text": "object"
2959
2802
  },
2960
- "default": "{}",
2961
- "attribute": "config"
2803
+ "static": true,
2804
+ "default": "{\n 'terra-button': TerraButton,\n 'terra-icon': TerraIcon,\n 'terra-loader': TerraLoader,\n }"
2962
2805
  },
2963
2806
  {
2964
- "kind": "field",
2965
- "name": "data",
2966
- "type": {
2967
- "text": "Array<Partial<Data>>"
2807
+ "kind": "method",
2808
+ "name": "#getAccessCode",
2809
+ "return": {
2810
+ "type": {
2811
+ "text": "Promise<string>"
2812
+ }
2968
2813
  },
2969
- "default": "[]",
2970
- "attribute": "data"
2814
+ "parameters": [
2815
+ {
2816
+ "name": "signal",
2817
+ "type": {
2818
+ "text": "AbortSignal"
2819
+ }
2820
+ }
2821
+ ],
2822
+ "description": "Using a fetch that contains our credentials, get a code from EDL that we can use to exchange for an JWT."
2971
2823
  },
2972
2824
  {
2973
2825
  "kind": "method",
2974
- "name": "handleDataChange"
2826
+ "name": "#exchangeCodeForAccessToken",
2827
+ "parameters": [
2828
+ {
2829
+ "name": "code",
2830
+ "type": {
2831
+ "text": "string"
2832
+ }
2833
+ },
2834
+ {
2835
+ "name": "signal",
2836
+ "type": {
2837
+ "text": "AbortSignal"
2838
+ }
2839
+ }
2840
+ ],
2841
+ "description": "Check for a code and attempt to exchange it for a JWT, accessing only the access_token."
2975
2842
  },
2976
2843
  {
2977
2844
  "kind": "method",
2978
- "name": "updatePlotWithData"
2979
- }
2980
- ],
2981
- "attributes": [
2982
- {
2983
- "name": "plotTitle",
2984
- "type": {
2985
- "text": "string | undefined"
2986
- },
2987
- "fieldName": "plotTitle"
2845
+ "name": "#handleSubmit",
2846
+ "parameters": [
2847
+ {
2848
+ "name": "event",
2849
+ "type": {
2850
+ "text": "SubmitEvent"
2851
+ }
2852
+ }
2853
+ ],
2854
+ "description": "If the user submits our form to log in to EDL, use a fetch request to get an authorization code, then exchange it for an access token."
2988
2855
  },
2989
2856
  {
2990
- "name": "layout",
2991
- "type": {
2992
- "text": "Partial<Layout> | undefined"
2993
- },
2994
- "default": "{}",
2995
- "fieldName": "layout"
2857
+ "kind": "method",
2858
+ "name": "#handleKeypress",
2859
+ "parameters": [
2860
+ {
2861
+ "name": "event",
2862
+ "type": {
2863
+ "text": "KeyboardEvent"
2864
+ }
2865
+ }
2866
+ ]
2996
2867
  },
2997
2868
  {
2998
- "name": "config",
2999
- "type": {
3000
- "text": "Partial<Config> | undefined"
3001
- },
3002
- "default": "{}",
3003
- "fieldName": "config"
3004
- },
2869
+ "kind": "method",
2870
+ "name": "#clearForm",
2871
+ "description": "Clear the given form of all entries."
2872
+ }
2873
+ ],
2874
+ "events": [
3005
2875
  {
3006
- "name": "data",
3007
- "type": {
3008
- "text": "Array<Partial<Data>>"
3009
- },
3010
- "default": "[]",
3011
- "fieldName": "data"
2876
+ "description": "Emitted when a bearer token has been received from EDL.",
2877
+ "name": "terra-login",
2878
+ "reactName": "onTerraLogin",
2879
+ "eventName": "TerraLoginEvent"
3012
2880
  }
3013
2881
  ],
3014
2882
  "superclass": {
3015
2883
  "name": "TerraElement",
3016
2884
  "module": "/src/internal/terra-element.js"
3017
2885
  },
3018
- "summary": "A web component for interactive graphs using Plotly.js.",
3019
- "tagNameWithoutPrefix": "plot",
3020
- "tagName": "terra-plot",
2886
+ "summary": "A form that logs in to Earthdata Login (EDL) and returns a bearer token.",
2887
+ "tagNameWithoutPrefix": "login",
2888
+ "tagName": "terra-login",
3021
2889
  "customElement": true,
3022
- "jsDoc": "/**\n * @summary A web component for interactive graphs using Plotly.js.\n * @documentation https://disc.gsfc.nasa.gov/components/plot\n * @status experimental\n * @since 1.0\n *\n * @csspart base - The component's base wrapper.\n */",
3023
- "documentation": "https://disc.gsfc.nasa.gov/components/plot",
3024
- "status": "experimental",
2890
+ "jsDoc": "/**\n * @summary A form that logs in to Earthdata Login (EDL) and returns a bearer token.\n * @documentation https://disc.gsfc.nasa.gov/components/login\n * @status stable\n * @since 1.0\n *\n * @event terra-login - Emitted when a bearer token has been received from EDL.\n */",
2891
+ "documentation": "https://disc.gsfc.nasa.gov/components/login",
2892
+ "status": "stable",
3025
2893
  "since": "1.0"
3026
2894
  }
3027
2895
  ],
@@ -3030,8 +2898,8 @@
3030
2898
  "kind": "js",
3031
2899
  "name": "default",
3032
2900
  "declaration": {
3033
- "name": "TerraPlot",
3034
- "module": "components/plot/plot.js"
2901
+ "name": "TerraLogin",
2902
+ "module": "components/login/login.js"
3035
2903
  }
3036
2904
  }
3037
2905
  ]
@@ -3261,6 +3129,138 @@
3261
3129
  }
3262
3130
  ]
3263
3131
  },
3132
+ {
3133
+ "kind": "javascript-module",
3134
+ "path": "components/plot/plot.js",
3135
+ "declarations": [
3136
+ {
3137
+ "kind": "class",
3138
+ "description": "",
3139
+ "name": "TerraPlot",
3140
+ "cssParts": [
3141
+ {
3142
+ "description": "The component's base wrapper.",
3143
+ "name": "base"
3144
+ }
3145
+ ],
3146
+ "members": [
3147
+ {
3148
+ "kind": "field",
3149
+ "name": "#resizeObserver",
3150
+ "privacy": "private",
3151
+ "type": {
3152
+ "text": "ResizeObserver"
3153
+ }
3154
+ },
3155
+ {
3156
+ "kind": "field",
3157
+ "name": "base",
3158
+ "type": {
3159
+ "text": "HTMLElement"
3160
+ }
3161
+ },
3162
+ {
3163
+ "kind": "field",
3164
+ "name": "plotTitle",
3165
+ "type": {
3166
+ "text": "string | undefined"
3167
+ },
3168
+ "attribute": "plotTitle"
3169
+ },
3170
+ {
3171
+ "kind": "field",
3172
+ "name": "layout",
3173
+ "type": {
3174
+ "text": "Partial<Layout> | undefined"
3175
+ },
3176
+ "default": "{}",
3177
+ "attribute": "layout"
3178
+ },
3179
+ {
3180
+ "kind": "field",
3181
+ "name": "config",
3182
+ "type": {
3183
+ "text": "Partial<Config> | undefined"
3184
+ },
3185
+ "default": "{}",
3186
+ "attribute": "config"
3187
+ },
3188
+ {
3189
+ "kind": "field",
3190
+ "name": "data",
3191
+ "type": {
3192
+ "text": "Array<Partial<Data>>"
3193
+ },
3194
+ "default": "[]",
3195
+ "attribute": "data"
3196
+ },
3197
+ {
3198
+ "kind": "method",
3199
+ "name": "handleDataChange"
3200
+ },
3201
+ {
3202
+ "kind": "method",
3203
+ "name": "updatePlotWithData"
3204
+ }
3205
+ ],
3206
+ "attributes": [
3207
+ {
3208
+ "name": "plotTitle",
3209
+ "type": {
3210
+ "text": "string | undefined"
3211
+ },
3212
+ "fieldName": "plotTitle"
3213
+ },
3214
+ {
3215
+ "name": "layout",
3216
+ "type": {
3217
+ "text": "Partial<Layout> | undefined"
3218
+ },
3219
+ "default": "{}",
3220
+ "fieldName": "layout"
3221
+ },
3222
+ {
3223
+ "name": "config",
3224
+ "type": {
3225
+ "text": "Partial<Config> | undefined"
3226
+ },
3227
+ "default": "{}",
3228
+ "fieldName": "config"
3229
+ },
3230
+ {
3231
+ "name": "data",
3232
+ "type": {
3233
+ "text": "Array<Partial<Data>>"
3234
+ },
3235
+ "default": "[]",
3236
+ "fieldName": "data"
3237
+ }
3238
+ ],
3239
+ "superclass": {
3240
+ "name": "TerraElement",
3241
+ "module": "/src/internal/terra-element.js"
3242
+ },
3243
+ "summary": "A web component for interactive graphs using Plotly.js.",
3244
+ "tagNameWithoutPrefix": "plot",
3245
+ "tagName": "terra-plot",
3246
+ "customElement": true,
3247
+ "jsDoc": "/**\n * @summary A web component for interactive graphs using Plotly.js.\n * @documentation https://disc.gsfc.nasa.gov/components/plot\n * @status experimental\n * @since 1.0\n *\n * @csspart base - The component's base wrapper.\n */",
3248
+ "documentation": "https://disc.gsfc.nasa.gov/components/plot",
3249
+ "status": "experimental",
3250
+ "since": "1.0"
3251
+ }
3252
+ ],
3253
+ "exports": [
3254
+ {
3255
+ "kind": "js",
3256
+ "name": "default",
3257
+ "declaration": {
3258
+ "name": "TerraPlot",
3259
+ "module": "components/plot/plot.js"
3260
+ }
3261
+ }
3262
+ ]
3263
+ },
3264
3264
  {
3265
3265
  "kind": "javascript-module",
3266
3266
  "path": "components/skeleton/skeleton.js",
@@ -4847,7 +4847,7 @@
4847
4847
  "package": {
4848
4848
  "name": "@nasa-terra/components",
4849
4849
  "description": "A collection of NASA Earthdata components",
4850
- "version": "0.0.48",
4850
+ "version": "0.0.49",
4851
4851
  "author": "NASA GES DISC <https://disc.gsfc.nasa.gov>",
4852
4852
  "homepage": "https://github.com/gesdisc/components",
4853
4853
  "license": "MIT"