@nasa-terra/components 0.0.6 → 0.0.9

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 (366) hide show
  1. package/README.md +10 -3
  2. package/cdn/chunks/{chunk.OGR23FON.js → chunk.2463X3BU.js} +1 -1
  3. package/cdn/chunks/{chunk.QPQHBWAF.js → chunk.2AR3YFY6.js} +21 -28
  4. package/cdn/chunks/{chunk.M5OJ3HWZ.js → chunk.2B3T647S.js} +2 -2
  5. package/cdn/chunks/chunk.3WUZMCON.js +198 -0
  6. package/cdn/chunks/{chunk.7KR5SCX3.js → chunk.4X3H4SXF.js} +1 -1
  7. package/{dist/chunks/chunk.YMQ4KDTV.js → cdn/chunks/chunk.5BNGCWLY.js} +1 -1
  8. package/cdn/chunks/chunk.5FZY6SGS.js +61 -0
  9. package/cdn/chunks/chunk.5IYEJYZC.js +21 -0
  10. package/cdn/chunks/{chunk.CJZBZADJ.js → chunk.5SINCXSM.js} +42 -13
  11. package/cdn/chunks/{chunk.ULMZXS76.js → chunk.5UDVR4WP.js} +1 -1
  12. package/{dist/chunks/chunk.RIPCW4LZ.js → cdn/chunks/chunk.7ADLGY5T.js} +1 -1
  13. package/cdn/chunks/{chunk.5DPGWL3Y.js → chunk.7JHEI2UU.js} +10 -14
  14. package/cdn/chunks/{chunk.5EMGZZCG.js → chunk.7O6PG7SC.js} +1 -1
  15. package/cdn/chunks/chunk.7QABLDUG.js +57 -0
  16. package/cdn/chunks/{chunk.UBUBPE2C.js → chunk.A5ZHUUQE.js} +1 -1
  17. package/cdn/chunks/{chunk.O5NKXUCH.js → chunk.ABHIFWYD.js} +9 -5
  18. package/cdn/chunks/{chunk.SNUKWHYN.js → chunk.B35TWPB3.js} +1 -1
  19. package/cdn/chunks/{chunk.RXU6DWRU.js → chunk.BE55UMQU.js} +5 -4
  20. package/cdn/chunks/chunk.BJDFUSWQ.js +226 -0
  21. package/cdn/chunks/{chunk.EEFNHKM3.js → chunk.BZAX3KPT.js} +24 -46
  22. package/cdn/chunks/chunk.CNP3J6CH.js +128 -0
  23. package/cdn/chunks/chunk.CRDWIXR6.js +25 -0
  24. package/{dist/chunks/chunk.OFSIGYWI.js → cdn/chunks/chunk.CST5GL5A.js} +1 -1
  25. package/cdn/chunks/{chunk.EKFTCQIZ.js → chunk.EH7QANZL.js} +5 -5
  26. package/cdn/chunks/chunk.ETRGUHQA.js +128 -0
  27. package/{dist/chunks/chunk.HOM4WTOH.js → cdn/chunks/chunk.EVWEXJVX.js} +1 -1
  28. package/cdn/chunks/{chunk.PTWY7M47.js → chunk.EZSX4R2K.js} +5 -1
  29. package/cdn/chunks/{chunk.42JFVPPT.js → chunk.GCXPHNE2.js} +3 -3
  30. package/cdn/chunks/{chunk.FWJJZ2ZQ.js → chunk.HPHAKMYE.js} +5 -6
  31. package/cdn/chunks/{chunk.HUJ7CIC7.js → chunk.KOO6JUIP.js} +1 -1
  32. package/{dist/chunks/chunk.H32ZL2W2.js → cdn/chunks/chunk.KURQ25QR.js} +1 -1
  33. package/cdn/chunks/{chunk.IKBILRIY.js → chunk.NYEDLELY.js} +37 -18
  34. package/cdn/chunks/chunk.O7AXAEKY.js +23 -0
  35. package/{dist/chunks/chunk.7NBRSNIF.js → cdn/chunks/chunk.P7Q72NIS.js} +1 -1
  36. package/cdn/chunks/{chunk.M77HV6VG.js → chunk.PB3BAC36.js} +6 -8
  37. package/cdn/chunks/{chunk.OP466O5Y.js → chunk.QPAB2A53.js} +1 -1
  38. package/{dist/chunks/chunk.NZBZKDMB.js → cdn/chunks/chunk.R4AGAL4B.js} +1 -1
  39. package/cdn/chunks/{chunk.MKZRXFCD.js → chunk.SIGRYKYI.js} +16 -17
  40. package/cdn/chunks/{chunk.ZKRXIISK.js → chunk.SWEK2UAG.js} +19 -81
  41. package/cdn/chunks/chunk.TNP7NVU5.js +159 -0
  42. package/cdn/chunks/{chunk.WWGF3RBK.js → chunk.TUT6F7WE.js} +413 -115
  43. package/cdn/chunks/chunk.TZK42POE.js +55 -0
  44. package/{dist/chunks/chunk.GDRDMRMU.js → cdn/chunks/chunk.UEC2PU53.js} +1 -1
  45. package/cdn/chunks/{chunk.IBV3HXI5.js → chunk.USC76EZL.js} +26 -92
  46. package/cdn/chunks/{chunk.VW5NONMW.js → chunk.VMNE6YSR.js} +1 -1
  47. package/cdn/chunks/{chunk.VVTXWY2S.js → chunk.W6FS5GIY.js} +1 -1
  48. package/cdn/chunks/chunk.W7ZPVNG5.js +11 -0
  49. package/cdn/chunks/chunk.WD2DJJFP.js +38 -0
  50. package/{dist/chunks/chunk.B2MTCB5H.js → cdn/chunks/chunk.WOIMKTUH.js} +1 -1
  51. package/cdn/chunks/{chunk.ADGXHFTR.js → chunk.WSUKDH6C.js} +1 -1
  52. package/cdn/chunks/{chunk.4GVU47B6.js → chunk.WTMN7OUL.js} +11 -6
  53. package/cdn/chunks/chunk.XDHNAOF7.js +53 -0
  54. package/cdn/chunks/chunk.XF7RXUXV.js +11 -0
  55. package/cdn/chunks/chunk.XTN2KUNR.js +396 -0
  56. package/cdn/chunks/{chunk.YW2OER7Y.js → chunk.Y4WP4EBM.js} +38 -20
  57. package/{dist/chunks/chunk.NYAG4XKO.js → cdn/chunks/chunk.YOTNXUDL.js} +1 -1
  58. package/{dist/chunks/chunk.X2KBQTBL.js → cdn/chunks/chunk.YSRQIHTV.js} +1 -1
  59. package/cdn/chunks/{chunk.NTB4EIFE.js → chunk.YVG2XG3L.js} +197 -162
  60. package/cdn/chunks/chunk.Z3LHAJIV.js +339 -0
  61. package/cdn/components/browse-variables/browse-variables.component.d.ts +28 -0
  62. package/cdn/components/browse-variables/browse-variables.component.js +15 -0
  63. package/cdn/components/browse-variables/browse-variables.controller.d.ts +11 -0
  64. package/cdn/components/browse-variables/browse-variables.controller.js +10 -0
  65. package/cdn/components/browse-variables/browse-variables.d.ts +8 -0
  66. package/cdn/components/browse-variables/browse-variables.js +16 -0
  67. package/cdn/components/browse-variables/browse-variables.styles.d.ts +2 -0
  68. package/cdn/components/browse-variables/browse-variables.styles.js +9 -0
  69. package/cdn/components/browse-variables/browse-variables.types.d.ts +49 -0
  70. package/cdn/components/browse-variables/browse-variables.types.js +0 -0
  71. package/cdn/components/browse-variables/repositories/giovanni.repository.d.ts +7 -0
  72. package/cdn/components/browse-variables/repositories/giovanni.repository.js +7 -0
  73. package/cdn/components/button/button.component.d.ts +6 -4
  74. package/cdn/components/button/button.component.js +4 -4
  75. package/cdn/components/button/button.js +5 -5
  76. package/cdn/components/button/button.styles.js +1 -1
  77. package/cdn/components/chip/chip.component.js +3 -3
  78. package/cdn/components/chip/chip.js +4 -4
  79. package/cdn/components/chip/chip.styles.js +1 -1
  80. package/cdn/components/combobox/combobox.component.js +7 -7
  81. package/cdn/components/combobox/combobox.js +8 -8
  82. package/cdn/components/combobox/combobox.styles.js +1 -1
  83. package/cdn/components/date-range-slider/date-range-slider.component.js +3 -3
  84. package/cdn/components/date-range-slider/date-range-slider.js +4 -4
  85. package/cdn/components/date-range-slider/date-range-slider.styles.js +1 -1
  86. package/cdn/components/giovanni-search/giovanni-search.component.d.ts +69 -0
  87. package/cdn/components/giovanni-search/giovanni-search.component.js +35 -0
  88. package/cdn/components/giovanni-search/giovanni-search.controller.d.ts +11 -0
  89. package/cdn/components/giovanni-search/giovanni-search.controller.js +9 -0
  90. package/cdn/components/giovanni-search/giovanni-search.d.ts +8 -0
  91. package/cdn/components/giovanni-search/giovanni-search.js +36 -0
  92. package/cdn/components/giovanni-search/giovanni-search.styles.d.ts +2 -0
  93. package/cdn/components/giovanni-search/giovanni-search.styles.js +9 -0
  94. package/cdn/components/giovanni-search/giovanni-search.types.d.ts +4 -0
  95. package/cdn/components/giovanni-search/giovanni-search.types.js +0 -0
  96. package/cdn/components/giovanni-search/lib.d.ts +6 -0
  97. package/cdn/components/giovanni-search/lib.js +15 -0
  98. package/cdn/components/icon/icon.component.js +4 -4
  99. package/cdn/components/icon/icon.js +5 -5
  100. package/cdn/components/icon/library.js +2 -2
  101. package/cdn/components/loader/loader.component.d.ts +5 -10
  102. package/cdn/components/loader/loader.component.js +3 -3
  103. package/cdn/components/loader/loader.js +4 -4
  104. package/cdn/components/loader/loader.styles.js +1 -1
  105. package/cdn/components/map/map.component.js +3 -3
  106. package/cdn/components/map/map.js +4 -4
  107. package/cdn/components/map/map.styles.js +1 -1
  108. package/cdn/components/plot/plot.component.d.ts +3 -12
  109. package/cdn/components/plot/plot.component.js +3 -3
  110. package/cdn/components/plot/plot.js +4 -4
  111. package/cdn/components/plot/plot.styles.js +1 -1
  112. package/cdn/components/plot/plot.types.d.ts +8 -0
  113. package/cdn/components/plot/plot.types.js +0 -0
  114. package/cdn/components/spatial-picker/spatial-picker.component.js +5 -5
  115. package/cdn/components/spatial-picker/spatial-picker.js +6 -6
  116. package/cdn/components/spatial-picker/spatial-picker.styles.js +1 -1
  117. package/cdn/components/time-series/time-series.component.d.ts +24 -1
  118. package/cdn/components/time-series/time-series.component.js +34 -34
  119. package/cdn/components/time-series/time-series.controller.d.ts +1 -1
  120. package/cdn/components/time-series/time-series.controller.js +2 -2
  121. package/cdn/components/time-series/time-series.js +35 -35
  122. package/cdn/components/time-series/time-series.styles.js +1 -1
  123. package/cdn/components/time-series/time-series.types.d.ts +1 -0
  124. package/cdn/components/variable-combobox/lib.d.ts +1 -1
  125. package/cdn/components/variable-combobox/lib.js +1 -1
  126. package/cdn/components/variable-combobox/variable-combobox.component.d.ts +1 -1
  127. package/cdn/components/variable-combobox/variable-combobox.component.js +16 -16
  128. package/cdn/components/variable-combobox/variable-combobox.controller.d.ts +1 -18
  129. package/cdn/components/variable-combobox/variable-combobox.controller.js +3 -3
  130. package/cdn/components/variable-combobox/variable-combobox.js +17 -17
  131. package/cdn/components/variable-combobox/variable-combobox.styles.js +1 -1
  132. package/cdn/components/variable-combobox/variable-combobox.types.d.ts +18 -0
  133. package/cdn/components/variable-combobox/variable-combobox.types.js +0 -0
  134. package/cdn/custom-elements.json +2285 -1712
  135. package/cdn/events/events.d.ts +4 -2
  136. package/cdn/events/terra-combobox-change.d.ts +5 -2
  137. package/cdn/events/terra-giovanni-search-change.d.ts +6 -0
  138. package/cdn/events/terra-search.d.ts +6 -0
  139. package/cdn/react/browse-variables/index.d.ts +11 -0
  140. package/cdn/react/browse-variables/index.js +16 -0
  141. package/cdn/react/button/index.js +5 -5
  142. package/cdn/react/chip/index.js +4 -4
  143. package/cdn/react/combobox/index.js +8 -8
  144. package/cdn/react/date-range-slider/index.js +4 -4
  145. package/cdn/react/giovanni-search/index.d.ts +29 -0
  146. package/cdn/react/giovanni-search/index.js +36 -0
  147. package/cdn/react/icon/index.js +5 -5
  148. package/cdn/react/index.d.ts +5 -3
  149. package/cdn/react/index.js +72 -56
  150. package/cdn/react/loader/index.js +4 -4
  151. package/cdn/react/map/index.js +4 -4
  152. package/cdn/react/plot/index.js +4 -4
  153. package/cdn/react/spatial-picker/index.js +6 -6
  154. package/cdn/react/time-series/index.js +35 -35
  155. package/cdn/react/variable-combobox/index.js +17 -17
  156. package/cdn/terra-ui-components.d.ts +2 -0
  157. package/cdn/terra-ui-components.js +76 -60
  158. package/cdn/themes/horizon-dark.css +33 -0
  159. package/cdn/themes/horizon-dark.styles.d.ts +2 -0
  160. package/cdn/themes/horizon-dark.styles.js +37 -0
  161. package/cdn/themes/horizon.css +114 -333
  162. package/cdn/themes/horizon.styles.js +113 -330
  163. package/cdn/types/vue/index.d.ts +231 -156
  164. package/cdn/utilities/icon-library.js +2 -2
  165. package/cdn/vscode.html-custom-data.json +252 -189
  166. package/cdn/web-types.json +559 -437
  167. package/dist/chunks/chunk.247RXZFH.js +569 -0
  168. package/{cdn/chunks/chunk.OBKUG36C.js → dist/chunks/chunk.3TJ2JKU3.js} +1 -1
  169. package/dist/chunks/{chunk.2T4YTX6C.js → chunk.3UYUL4SF.js} +1 -1
  170. package/dist/chunks/{chunk.M6X67YK2.js → chunk.4QQMSQRA.js} +5 -5
  171. package/dist/chunks/{chunk.665T4BPT.js → chunk.57CUGLEH.js} +2 -2
  172. package/dist/chunks/{chunk.OU4UPMYR.js → chunk.62YHGVQN.js} +11 -6
  173. package/dist/chunks/{chunk.ZNMJES4B.js → chunk.6EMZGACJ.js} +26 -49
  174. package/dist/chunks/chunk.6LKFAV2F.js +55 -0
  175. package/{cdn/chunks/chunk.CPWV245H.js → dist/chunks/chunk.6XPXG2HQ.js} +1 -1
  176. package/{cdn/chunks/chunk.EJHNYX5L.js → dist/chunks/chunk.7BDQ3OGI.js} +1 -1
  177. package/dist/chunks/{chunk.CL62YJ3N.js → chunk.7OKJDEHN.js} +37 -18
  178. package/dist/chunks/{chunk.JFU3ZCDL.js → chunk.7WL3WWGJ.js} +26 -92
  179. package/dist/chunks/{chunk.SHS42OAD.js → chunk.APJOA6RL.js} +197 -162
  180. package/{cdn/chunks/chunk.6RSB2MQN.js → dist/chunks/chunk.BB72QYRU.js} +1 -1
  181. package/dist/chunks/{chunk.QNRAB6NA.js → chunk.C7CKLN54.js} +1 -1
  182. package/dist/chunks/chunk.CL7IMQRK.js +50 -0
  183. package/dist/chunks/{chunk.HBQCLZ37.js → chunk.CRKPWBJQ.js} +1 -1
  184. package/{cdn/chunks/chunk.UFZVPTR4.js → dist/chunks/chunk.CSSXWHIU.js} +1 -1
  185. package/dist/chunks/{chunk.3ZGFXEAJ.js → chunk.EDWXEF4C.js} +1 -1
  186. package/dist/chunks/chunk.EGZMQ7T7.js +35 -0
  187. package/dist/chunks/{chunk.YCC37YOJ.js → chunk.EP3UVTII.js} +7 -3
  188. package/dist/chunks/{chunk.USXQP5U6.js → chunk.F7HR6Y7D.js} +10 -11
  189. package/dist/chunks/chunk.GHDRVO5M.js +125 -0
  190. package/dist/chunks/{chunk.PSVGC3Y5.js → chunk.GJ5PF473.js} +1 -1
  191. package/dist/chunks/{chunk.RYPAZDXE.js → chunk.GKBF7QGR.js} +13 -0
  192. package/dist/chunks/chunk.GR7XHOA3.js +52 -0
  193. package/dist/chunks/{chunk.VYZKQA7M.js → chunk.GZ7EVLUK.js} +42 -13
  194. package/dist/chunks/{chunk.WHSMHOPB.js → chunk.HMNI5WGJ.js} +8 -10
  195. package/dist/chunks/chunk.HWAZFJOD.js +120 -0
  196. package/{cdn/chunks/chunk.M2VXN72F.js → dist/chunks/chunk.I5WKMWQE.js} +1 -1
  197. package/dist/chunks/{chunk.FHIIPJW6.js → chunk.IO22JTMO.js} +1 -1
  198. package/dist/chunks/{chunk.6LKH47P2.js → chunk.JTUSKCXM.js} +1 -1
  199. package/dist/chunks/chunk.JW7QUN3C.js +193 -0
  200. package/dist/chunks/chunk.KXP54RWR.js +390 -0
  201. package/dist/chunks/{chunk.N2DS7NLI.js → chunk.KZ3ISS6V.js} +38 -20
  202. package/dist/chunks/chunk.LYOSHT4H.js +327 -0
  203. package/{cdn/chunks/chunk.BPM4DDT2.js → dist/chunks/chunk.NLVXQ4XY.js} +1 -1
  204. package/dist/chunks/{chunk.UU46CLE7.js → chunk.O2VVO7UI.js} +11 -15
  205. package/dist/chunks/chunk.O7AXAEKY.js +23 -0
  206. package/dist/chunks/{chunk.FEABKBW6.js → chunk.OEP3CFIS.js} +7 -7
  207. package/dist/chunks/chunk.OI5D3LE4.js +11 -0
  208. package/{cdn/chunks/chunk.SEEOXT2D.js → dist/chunks/chunk.QBDPXIJN.js} +1 -1
  209. package/dist/chunks/chunk.QEMJLGM4.js +58 -0
  210. package/dist/chunks/{chunk.T322FDKI.js → chunk.QK5OWFVO.js} +19 -81
  211. package/dist/chunks/chunk.RJAFAHJE.js +21 -0
  212. package/dist/chunks/{chunk.OQE2USZJ.js → chunk.RWULTAWI.js} +1 -1
  213. package/{cdn/chunks/chunk.7FIHTIPY.js → dist/chunks/chunk.ST5FT6V7.js} +1 -1
  214. package/dist/chunks/{chunk.DYMAZVQ6.js → chunk.TBPEGRZ2.js} +20 -27
  215. package/dist/chunks/chunk.TRSW2E4E.js +223 -0
  216. package/dist/chunks/chunk.UPZNWZOP.js +156 -0
  217. package/{cdn/chunks/chunk.4WBHMR2A.js → dist/chunks/chunk.VA2ZXIYQ.js} +1 -1
  218. package/dist/chunks/{chunk.NYBJ252W.js → chunk.VN4FDFT7.js} +1 -1
  219. package/dist/chunks/{chunk.BLNUBLUS.js → chunk.W7JRXR2Y.js} +5 -1
  220. package/dist/chunks/{chunk.DLLADX3X.js → chunk.WBSIQEC5.js} +1 -1
  221. package/dist/chunks/chunk.WJ67GDOF.js +11 -0
  222. package/dist/chunks/chunk.WR5RPQHG.js +25 -0
  223. package/{cdn/chunks/chunk.Y26ZLER4.js → dist/chunks/chunk.X4VUM377.js} +1 -1
  224. package/dist/chunks/{chunk.D7XP7XXA.js → chunk.XIGYW3GW.js} +1 -1
  225. package/dist/chunks/{chunk.ELWOQ6AA.js → chunk.Y2NINNMK.js} +1 -1
  226. package/dist/chunks/{chunk.ZK7QVWBI.js → chunk.Y6OL24QM.js} +1 -1
  227. package/dist/chunks/{chunk.UPRVNZ37.js → chunk.YOP35UJX.js} +6 -7
  228. package/dist/chunks/{chunk.5YH3ZJUT.js → chunk.ZCSTHC33.js} +1 -1
  229. package/dist/chunks/{chunk.PG33VP73.js → chunk.ZMCKUA77.js} +7 -6
  230. package/dist/chunks/{chunk.H4MAKR24.js → chunk.ZWMQIAGV.js} +1 -1
  231. package/dist/components/browse-variables/browse-variables.component.d.ts +28 -0
  232. package/dist/components/browse-variables/browse-variables.component.js +11 -0
  233. package/dist/components/browse-variables/browse-variables.controller.d.ts +11 -0
  234. package/dist/components/browse-variables/browse-variables.controller.js +8 -0
  235. package/dist/components/browse-variables/browse-variables.d.ts +8 -0
  236. package/dist/components/browse-variables/browse-variables.js +12 -0
  237. package/dist/components/browse-variables/browse-variables.styles.d.ts +2 -0
  238. package/dist/components/browse-variables/browse-variables.styles.js +7 -0
  239. package/dist/components/browse-variables/browse-variables.types.d.ts +49 -0
  240. package/dist/components/browse-variables/browse-variables.types.js +0 -0
  241. package/dist/components/browse-variables/repositories/giovanni.repository.d.ts +7 -0
  242. package/dist/components/browse-variables/repositories/giovanni.repository.js +7 -0
  243. package/dist/components/button/button.component.d.ts +6 -4
  244. package/dist/components/button/button.component.js +6 -6
  245. package/dist/components/button/button.js +7 -7
  246. package/dist/components/button/button.styles.js +2 -2
  247. package/dist/components/chip/chip.component.js +4 -4
  248. package/dist/components/chip/chip.js +5 -5
  249. package/dist/components/chip/chip.styles.js +2 -2
  250. package/dist/components/combobox/combobox.component.js +5 -5
  251. package/dist/components/combobox/combobox.js +6 -6
  252. package/dist/components/combobox/combobox.styles.js +2 -2
  253. package/dist/components/combobox/lib.js +1 -1
  254. package/dist/components/combobox/type.js +1 -1
  255. package/dist/components/date-range-slider/date-range-slider.component.js +5 -5
  256. package/dist/components/date-range-slider/date-range-slider.js +6 -6
  257. package/dist/components/date-range-slider/date-range-slider.styles.js +2 -2
  258. package/dist/components/date-range-slider/noui-slider-utilities.js +1 -1
  259. package/dist/components/giovanni-search/giovanni-search.component.d.ts +69 -0
  260. package/dist/components/giovanni-search/giovanni-search.component.js +23 -0
  261. package/dist/components/giovanni-search/giovanni-search.controller.d.ts +11 -0
  262. package/dist/components/giovanni-search/giovanni-search.controller.js +7 -0
  263. package/dist/components/giovanni-search/giovanni-search.d.ts +8 -0
  264. package/dist/components/giovanni-search/giovanni-search.js +24 -0
  265. package/dist/components/giovanni-search/giovanni-search.styles.d.ts +2 -0
  266. package/dist/components/giovanni-search/giovanni-search.styles.js +7 -0
  267. package/dist/components/giovanni-search/giovanni-search.types.d.ts +4 -0
  268. package/dist/components/giovanni-search/giovanni-search.types.js +0 -0
  269. package/dist/components/giovanni-search/lib.d.ts +6 -0
  270. package/dist/components/giovanni-search/lib.js +13 -0
  271. package/dist/components/icon/icon.component.js +6 -6
  272. package/dist/components/icon/icon.js +7 -7
  273. package/dist/components/icon/icon.styles.js +1 -1
  274. package/dist/components/icon/library.default.js +1 -1
  275. package/dist/components/icon/library.heroicons.js +1 -1
  276. package/dist/components/icon/library.js +3 -3
  277. package/dist/components/loader/loader.component.d.ts +5 -10
  278. package/dist/components/loader/loader.component.js +4 -4
  279. package/dist/components/loader/loader.js +5 -5
  280. package/dist/components/loader/loader.styles.js +2 -2
  281. package/dist/components/map/leaflet-draw.styles.js +1 -1
  282. package/dist/components/map/leaflet-utils.js +2 -2
  283. package/dist/components/map/leaflet.styles.js +1 -1
  284. package/dist/components/map/map.component.js +6 -6
  285. package/dist/components/map/map.controller.js +1 -1
  286. package/dist/components/map/map.js +7 -7
  287. package/dist/components/map/map.styles.js +2 -2
  288. package/dist/components/plot/plot.component.d.ts +3 -12
  289. package/dist/components/plot/plot.component.js +5 -5
  290. package/dist/components/plot/plot.js +6 -6
  291. package/dist/components/plot/plot.styles.js +2 -2
  292. package/dist/components/plot/plot.types.d.ts +8 -0
  293. package/dist/components/plot/plot.types.js +0 -0
  294. package/dist/components/spatial-picker/spatial-picker.component.js +8 -8
  295. package/dist/components/spatial-picker/spatial-picker.js +9 -9
  296. package/dist/components/spatial-picker/spatial-picker.styles.js +2 -2
  297. package/dist/components/time-series/time-series.component.d.ts +24 -1
  298. package/dist/components/time-series/time-series.component.js +32 -32
  299. package/dist/components/time-series/time-series.controller.d.ts +1 -1
  300. package/dist/components/time-series/time-series.controller.js +2 -2
  301. package/dist/components/time-series/time-series.js +33 -33
  302. package/dist/components/time-series/time-series.styles.js +2 -2
  303. package/dist/components/time-series/time-series.types.d.ts +1 -0
  304. package/dist/components/variable-combobox/lib.d.ts +1 -1
  305. package/dist/components/variable-combobox/lib.js +2 -2
  306. package/dist/components/variable-combobox/variable-combobox.component.d.ts +1 -1
  307. package/dist/components/variable-combobox/variable-combobox.component.js +15 -15
  308. package/dist/components/variable-combobox/variable-combobox.controller.d.ts +1 -18
  309. package/dist/components/variable-combobox/variable-combobox.controller.js +3 -3
  310. package/dist/components/variable-combobox/variable-combobox.js +16 -16
  311. package/dist/components/variable-combobox/variable-combobox.styles.js +2 -2
  312. package/dist/components/variable-combobox/variable-combobox.types.d.ts +18 -0
  313. package/dist/components/variable-combobox/variable-combobox.types.js +0 -0
  314. package/dist/custom-elements.json +2285 -1712
  315. package/dist/events/events.d.ts +4 -2
  316. package/dist/events/terra-combobox-change.d.ts +5 -2
  317. package/dist/events/terra-giovanni-search-change.d.ts +6 -0
  318. package/dist/events/terra-search.d.ts +6 -0
  319. package/dist/react/browse-variables/index.d.ts +11 -0
  320. package/dist/react/browse-variables/index.js +12 -0
  321. package/dist/react/button/index.js +7 -7
  322. package/dist/react/chip/index.js +5 -5
  323. package/dist/react/combobox/index.js +6 -6
  324. package/dist/react/date-range-slider/index.js +6 -6
  325. package/dist/react/giovanni-search/index.d.ts +29 -0
  326. package/dist/react/giovanni-search/index.js +24 -0
  327. package/dist/react/icon/index.js +7 -7
  328. package/dist/react/index.d.ts +5 -3
  329. package/dist/react/index.js +68 -52
  330. package/dist/react/loader/index.js +5 -5
  331. package/dist/react/map/index.js +7 -7
  332. package/dist/react/plot/index.js +6 -6
  333. package/dist/react/spatial-picker/index.js +9 -9
  334. package/dist/react/time-series/index.js +33 -33
  335. package/dist/react/variable-combobox/index.js +16 -16
  336. package/dist/terra-ui-components-autoloader.js +1 -1
  337. package/dist/terra-ui-components.d.ts +2 -0
  338. package/dist/terra-ui-components.js +73 -57
  339. package/dist/themes/horizon-dark.css +33 -0
  340. package/dist/themes/horizon-dark.styles.d.ts +2 -0
  341. package/dist/themes/horizon-dark.styles.js +37 -0
  342. package/dist/themes/horizon.css +114 -333
  343. package/dist/themes/horizon.styles.js +113 -330
  344. package/dist/types/vue/index.d.ts +231 -156
  345. package/dist/utilities/animation-registry.js +1 -1
  346. package/dist/utilities/animation.js +1 -1
  347. package/dist/utilities/base-path.js +1 -1
  348. package/dist/utilities/date.js +1 -1
  349. package/dist/utilities/form.js +3 -3
  350. package/dist/utilities/icon-library.js +3 -3
  351. package/dist/vscode.html-custom-data.json +252 -189
  352. package/dist/web-types.json +559 -437
  353. package/package.json +4 -3
  354. package/cdn/chunks/chunk.747YKR2J.js +0 -96
  355. package/cdn/chunks/chunk.H2SFUFU3.js +0 -108
  356. package/cdn/chunks/chunk.L7XOR6JZ.js +0 -83
  357. package/cdn/chunks/chunk.SBDX4GGT.js +0 -66
  358. package/cdn/chunks/chunk.UOFDZJYP.js +0 -116
  359. package/dist/chunks/chunk.2HRRJNXL.js +0 -89
  360. package/dist/chunks/chunk.AU3AGC4X.js +0 -102
  361. package/dist/chunks/chunk.GPUFE4ML.js +0 -63
  362. package/dist/chunks/chunk.IBEKZVOY.js +0 -80
  363. package/dist/chunks/chunk.TIWTYZP4.js +0 -274
  364. package/dist/chunks/chunk.ZCNMYQP2.js +0 -113
  365. package/{dist/chunks/chunk.MDRUDBRH.js → cdn/chunks/chunk.7DOMZGX7.js} +3 -3
  366. package/{cdn/chunks/chunk.MDRUDBRH.js → dist/chunks/chunk.7DOMZGX7.js} +3 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nasa-terra/components",
3
3
  "description": "A collection of NASA Earthdata components",
4
- "version": "0.0.6",
4
+ "version": "0.0.9",
5
5
  "homepage": "https://github.com/gesdisc/components",
6
6
  "author": "NASA GES DISC <https://disc.gsfc.nasa.gov>",
7
7
  "license": "MIT",
@@ -50,7 +50,9 @@
50
50
  "prepublishOnly": "npm run verify",
51
51
  "prettier": "prettier --write --log-level=warn .",
52
52
  "prettier:check": "prettier --check --log-level=warn .",
53
- "create": "plop --plopfile scripts/plop/plopfile.js",
53
+ "create": "plop component --plopfile scripts/plop/plopfile.js",
54
+ "create-widget": "plop create-widget --plopfile scripts/plop/plopfile.js",
55
+ "update-widget": "plop update-widget --plopfile scripts/plop/plopfile.js",
54
56
  "test": "web-test-runner --group default",
55
57
  "test:component": "web-test-runner -- --watch --group",
56
58
  "test:watch": "web-test-runner --watch --group default",
@@ -80,7 +82,6 @@
80
82
  "leaflet-draw": "^1.0.4",
81
83
  "lit": "^3.0.0",
82
84
  "nouislider": "^15.7.1",
83
- "plotly.js": "^2.31.1",
84
85
  "plotly.js-dist-min": "^2.30.1",
85
86
  "qr-creator": "^1.0.0"
86
87
  },
@@ -1,96 +0,0 @@
1
- import {
2
- loader_styles_default
3
- } from "./chunk.IKBILRIY.js";
4
- import {
5
- e
6
- } from "./chunk.YVSJQ4KD.js";
7
- import {
8
- TerraElement,
9
- component_styles_default
10
- } from "./chunk.H2SFUFU3.js";
11
- import {
12
- n
13
- } from "./chunk.K4EJQG4O.js";
14
- import {
15
- T,
16
- x
17
- } from "./chunk.PQFHJHNO.js";
18
- import {
19
- __decorateClass
20
- } from "./chunk.6QUGTGJO.js";
21
-
22
- // src/components/loader/loader.component.ts
23
- var TerraLoader = class extends TerraElement {
24
- constructor() {
25
- super(...arguments);
26
- this.size = "large";
27
- this.percent = 0;
28
- this.indeterminate = false;
29
- this.label = "Loading request";
30
- this.message = "";
31
- }
32
- formatPercent(percent) {
33
- if (percent > 100) {
34
- percent = 100;
35
- }
36
- return percent > 0 ? percent + "%" : "";
37
- }
38
- render() {
39
- return x`
40
- <div
41
- class=${e({
42
- loader: true,
43
- "loader--small": this.size === "small",
44
- "loader--large": this.size === "large",
45
- "loader--light": this.theme === "light",
46
- "loader--dark": this.theme === "dark"
47
- })}
48
- arial-lable=${this.label}
49
- aria-valuetext="${this.message || T}"
50
- ${this.message != "" ? "aria-valuetext=${this.message}" : ""}
51
- aria-valuenow=${this.formatPercent(this.percent)}
52
- role="progressbar"
53
- tabindex="-1"
54
- >
55
- ${this.size === "large" ? x`
56
- <div class="percent">
57
- ${this.formatPercent(this.percent)}
58
- </div>
59
- ` : ``}
60
-
61
- <svg
62
- viewBox=${this.size == "small" ? "0 0 30 30" : "0 0 52 52"}
63
- aria-hidden="true"
64
- style="--progress: ${this.percent}"
65
- class="circular-progress ${this.indeterminate ? "indeterminate" : ""}"
66
- >
67
- <circle class="bg"></circle>
68
- <circle class="fg"></circle>
69
- </svg>
70
- </div>
71
- `;
72
- }
73
- };
74
- TerraLoader.styles = [component_styles_default, loader_styles_default];
75
- __decorateClass([
76
- n({ reflect: true })
77
- ], TerraLoader.prototype, "size", 2);
78
- __decorateClass([
79
- n({ reflect: true })
80
- ], TerraLoader.prototype, "theme", 2);
81
- __decorateClass([
82
- n({ type: Number })
83
- ], TerraLoader.prototype, "percent", 2);
84
- __decorateClass([
85
- n({ type: Boolean })
86
- ], TerraLoader.prototype, "indeterminate", 2);
87
- __decorateClass([
88
- n({ type: String })
89
- ], TerraLoader.prototype, "label", 2);
90
- __decorateClass([
91
- n({ type: String })
92
- ], TerraLoader.prototype, "message", 2);
93
-
94
- export {
95
- TerraLoader
96
- };
@@ -1,108 +0,0 @@
1
- import {
2
- n
3
- } from "./chunk.K4EJQG4O.js";
4
- import {
5
- s
6
- } from "./chunk.PQFHJHNO.js";
7
- import {
8
- i
9
- } from "./chunk.PH7RLQK2.js";
10
- import {
11
- __decorateClass,
12
- __spreadValues
13
- } from "./chunk.6QUGTGJO.js";
14
-
15
- // src/styles/component.styles.ts
16
- var component_styles_default = i`
17
- :host {
18
- box-sizing: border-box;
19
- }
20
-
21
- :host *,
22
- :host *::before,
23
- :host *::after {
24
- box-sizing: inherit;
25
- }
26
-
27
- [hidden] {
28
- display: none !important;
29
- }
30
-
31
- /* UTILITY CSS */
32
- .sr-only {
33
- block-size: 1px;
34
- border-width: 0;
35
- clip: rect(0, 0, 0, 0);
36
- margin: -1px;
37
- overflow: hidden;
38
- padding: 0;
39
- position: absolute;
40
- white-space: nowrap;
41
- width: 1px;
42
- }
43
- `;
44
-
45
- // src/internal/terra-element.ts
46
- var TerraElement = class extends s {
47
- emit(name, options) {
48
- const event = new CustomEvent(name, __spreadValues({
49
- bubbles: true,
50
- cancelable: false,
51
- composed: true,
52
- detail: {}
53
- }, options));
54
- this.dispatchEvent(event);
55
- return event;
56
- }
57
- /* eslint-enable */
58
- static define(name, elementConstructor = this, options = {}) {
59
- const currentlyRegisteredConstructor = customElements.get(name);
60
- if (!currentlyRegisteredConstructor) {
61
- customElements.define(
62
- name,
63
- class extends elementConstructor {
64
- },
65
- options
66
- );
67
- return;
68
- }
69
- let newVersion = " (unknown version)";
70
- let existingVersion = newVersion;
71
- if ("version" in elementConstructor && elementConstructor.version) {
72
- newVersion = " v" + elementConstructor.version;
73
- }
74
- if ("version" in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {
75
- existingVersion = " v" + currentlyRegisteredConstructor.version;
76
- }
77
- if (newVersion && existingVersion && newVersion === existingVersion) {
78
- return;
79
- }
80
- console.warn(
81
- `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
82
- );
83
- }
84
- constructor() {
85
- super();
86
- Object.entries(
87
- this.constructor.dependencies
88
- ).forEach(([name, component]) => {
89
- ;
90
- this.constructor.define(name, component);
91
- });
92
- }
93
- };
94
- /* eslint-disable */
95
- // @ts-expect-error This is auto-injected at build time.
96
- TerraElement.version = "0.0.6";
97
- TerraElement.dependencies = {};
98
- __decorateClass([
99
- n()
100
- ], TerraElement.prototype, "dir", 2);
101
- __decorateClass([
102
- n()
103
- ], TerraElement.prototype, "lang", 2);
104
-
105
- export {
106
- component_styles_default,
107
- TerraElement
108
- };
@@ -1,83 +0,0 @@
1
- import {
2
- i
3
- } from "./chunk.PH7RLQK2.js";
4
-
5
- // src/components/map/map.styles.ts
6
- var map_styles_default = i`
7
- :host {
8
- --color-blue--400: #007acc;
9
- --color-blue--500: #1c67e3;
10
- --color-blue--600: #0b3d91;
11
-
12
- --color-red--400: #f64137;
13
- --color-red--500: #b60109;
14
-
15
- --color-neutral--000: #ffffff;
16
- --color-neutral--100: #f7f7f7;
17
- --color-neutral--200: #d1d1d1;
18
- --color-neutral--300: #b9b9bb;
19
- --color-neutral--400: #959599;
20
- --color-neutral--500: #767676;
21
- --color-neutral--600: #58585b;
22
- --color-neutral--700: #2e2e32;
23
- --color-neutral--800: #1b1b1b;
24
-
25
- display: block;
26
- padding: 16px;
27
- background: white;
28
- border: solid 1px var(--terra-color-neutral--200, var(--color-neutral--200));
29
- }
30
-
31
- .map {
32
- aspect-ratio: 4 / 3;
33
- }
34
-
35
- .leaflet-mouse-position-container {
36
- color: #464646;
37
- padding: 5px;
38
- background-color: white;
39
- }
40
-
41
- .leaflet-mouse-position-text {
42
- margin: 0;
43
- font-weight: 700;
44
- }
45
-
46
- .form-control {
47
- display: block;
48
- border-radius: 0;
49
- width: 100%;
50
- height: 36px;
51
- padding: 6px 12px;
52
- font-size: 14px;
53
- line-height: 1.42857143;
54
- color: #555555;
55
- background-color: #fff;
56
- background-image: none;
57
- border: 1px solid #ccc;
58
- border-radius: 4px;
59
- outline: 0 none;
60
- -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
61
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
62
- -webkit-transition:
63
- border-color ease-in-out 0.15s,
64
- box-shadow ease-in-out 0.15s;
65
- transition:
66
- border-color ease-in-out 0.15s,
67
- box-shadow ease-in-out 0.15s;
68
- }
69
-
70
- .form-control:focus {
71
- border: 1px solid var(--terra-color-blue--600, var(--color-blue--600));
72
- }
73
-
74
- .map__select {
75
- box-shadow: none;
76
- border-radius: 0 !important;
77
- margin-bottom: 1rem;
78
- }
79
- `;
80
-
81
- export {
82
- map_styles_default
83
- };
@@ -1,66 +0,0 @@
1
- import {
2
- i
3
- } from "./chunk.PH7RLQK2.js";
4
-
5
- // src/components/time-series/time-series.styles.ts
6
- var time_series_styles_default = i`
7
- :host {
8
- display: grid;
9
- gap: 0.25rem 1rem;
10
- grid-template-areas:
11
- 'variable spatial'
12
- 'plot plot'
13
- 'time time';
14
- grid-template-columns: 1fr 1fr;
15
- }
16
-
17
- terra-variable-combobox {
18
- grid-area: variable;
19
- }
20
-
21
- terra-spatial-picker {
22
- grid-area: spatial;
23
- }
24
-
25
- terra-plot {
26
- grid-area: plot;
27
- }
28
-
29
- terra-date-range-slider {
30
- grid-area: time;
31
- }
32
-
33
- /* The current Giovanni API doesn't accept bounding box subsetting. */
34
- terra-spatial-picker::part(leaflet-bbox),
35
- terra-spatial-picker::part(leaflet-edit) {
36
- display: none;
37
- }
38
-
39
- .plot-container {
40
- position: relative;
41
- }
42
-
43
- dialog {
44
- opacity: 0;
45
- transition: all 0.15s ease-out;
46
- transition-delay: 0.4s; /* a short delay, to allow local results to be displayed without a loading icon */
47
- position: absolute;
48
- top: 20%;
49
- left: 0;
50
- z-index: 100;
51
- }
52
-
53
- dialog.open {
54
- opacity: 1;
55
- }
56
-
57
- @starting-style {
58
- dialog.open {
59
- opacity: 0;
60
- }
61
- }
62
- `;
63
-
64
- export {
65
- time_series_styles_default
66
- };
@@ -1,116 +0,0 @@
1
- import {
2
- i
3
- } from "./chunk.PH7RLQK2.js";
4
-
5
- // src/components/spatial-picker/spatial-picker.styles.ts
6
- var spatial_picker_styles_default = i`
7
- :host {
8
- --color-blue--400: #007acc;
9
- --color-blue--500: #1c67e3;
10
- --color-blue--600: #0b3d91;
11
-
12
- --color-red--400: #f64137;
13
- --color-red--500: #b60109;
14
-
15
- --color-neutral--000: #ffffff;
16
- --color-neutral--100: #f7f7f7;
17
- --color-neutral--200: #d1d1d1;
18
- --color-neutral--300: #b9b9bb;
19
- --color-neutral--400: #959599;
20
- --color-neutral--500: #767676;
21
- --color-neutral--600: #58585b;
22
- --color-neutral--700: #2e2e32;
23
- --color-neutral--800: #1b1b1b;
24
-
25
- --font-family--inter: Inter, sans-serif;
26
- --font-family--public-sans: 'Public Sans', sans-serif;
27
- --font-family--dm-mono: 'DM Mono', monospace;
28
-
29
- --label-height: 1.8125rem;
30
- --help-height: 1.8125rem;
31
- --host-height: 5.8125rem;
32
-
33
- display: block;
34
- position: relative;
35
- z-index: 1;
36
- }
37
-
38
- :host .spatial-picker__input_fields {
39
- position: relative;
40
- }
41
-
42
- :host input {
43
- box-shadow: none;
44
- border-radius: 0 !important;
45
- }
46
-
47
- .spatial-picker__input_label {
48
- font-family: var(--terra-font-family--inter, var(--font-family--inter));
49
- font-weight: 600;
50
- line-height: 1.1875rem;
51
- }
52
-
53
- .form-control {
54
- width: 100%;
55
- padding-inline-start: 1rem;
56
- padding-inline-end: 2.5rem;
57
- padding-block: 0.375rem;
58
- font-size: 0.85rem;
59
- line-height: 1.42857143;
60
- color: currentColor;
61
- background-color: var(--terra-color-neutral--100, var(--color-neutral--100));
62
- block-size: var(--terra-block-size, 2.1875rem);
63
- border-block: 2px solid
64
- var(--terra-color-neutral--200, var(--color-neutral--200));
65
- border-inline-end: 0;
66
- border-inline-start: 2px solid
67
- var(--terra-color-neutral--200, var(--color-neutral--200));
68
- border-radius: 4px;
69
- outline: 0;
70
- transition:
71
- background-color 0.2s ease,
72
- border-color 0.2s ease;
73
- }
74
-
75
- .form-control:focus {
76
- border-radius: 4px;
77
- border: 2px solid var(--terra-color-blue--500, var(--color-blue--500));
78
- }
79
-
80
- .form-control:focus + .spatial-picker__input_icon_button {
81
- background-color: var(--terra-color-neutral--800, var(--color-neutral--800));
82
- }
83
-
84
- .spatial-picker__input_icon_button {
85
- block-size: var(--terra-block-size, 2.1875rem);
86
- padding-inline: 0.5rem;
87
- position: absolute;
88
- padding-top: 5px;
89
- top: 0;
90
- right: 0;
91
- z-index: 2;
92
- border: none;
93
- cursor: pointer;
94
- box-shadow: none;
95
- background-color: var(--terra-color-neutral--700, var(--color-neutral--700));
96
- transition:
97
- background-color 0.2s ease,
98
- border-color 0.2s ease;
99
- }
100
-
101
- .spatial-picker__input_icon_button svg {
102
- height: 1.2rem;
103
- width: 1.2rem;
104
- color: white;
105
- }
106
-
107
- terra-map {
108
- position: absolute;
109
- left: 0;
110
- right: 0;
111
- }
112
- `;
113
-
114
- export {
115
- spatial_picker_styles_default
116
- };
@@ -1,89 +0,0 @@
1
- import {
2
- loader_styles_default
3
- } from "./chunk.CL62YJ3N.js";
4
- import {
5
- TerraElement,
6
- component_styles_default
7
- } from "./chunk.AU3AGC4X.js";
8
- import {
9
- __decorateClass
10
- } from "./chunk.RYPAZDXE.js";
11
-
12
- // src/components/loader/loader.component.ts
13
- import { property } from "lit/decorators.js";
14
- import { html, nothing } from "lit";
15
- import { classMap } from "lit/directives/class-map.js";
16
- var TerraLoader = class extends TerraElement {
17
- constructor() {
18
- super(...arguments);
19
- this.size = "large";
20
- this.percent = 0;
21
- this.indeterminate = false;
22
- this.label = "Loading request";
23
- this.message = "";
24
- }
25
- formatPercent(percent) {
26
- if (percent > 100) {
27
- percent = 100;
28
- }
29
- return percent > 0 ? percent + "%" : "";
30
- }
31
- render() {
32
- return html`
33
- <div
34
- class=${classMap({
35
- loader: true,
36
- "loader--small": this.size === "small",
37
- "loader--large": this.size === "large",
38
- "loader--light": this.theme === "light",
39
- "loader--dark": this.theme === "dark"
40
- })}
41
- arial-lable=${this.label}
42
- aria-valuetext="${this.message || nothing}"
43
- ${this.message != "" ? "aria-valuetext=${this.message}" : ""}
44
- aria-valuenow=${this.formatPercent(this.percent)}
45
- role="progressbar"
46
- tabindex="-1"
47
- >
48
- ${this.size === "large" ? html`
49
- <div class="percent">
50
- ${this.formatPercent(this.percent)}
51
- </div>
52
- ` : ``}
53
-
54
- <svg
55
- viewBox=${this.size == "small" ? "0 0 30 30" : "0 0 52 52"}
56
- aria-hidden="true"
57
- style="--progress: ${this.percent}"
58
- class="circular-progress ${this.indeterminate ? "indeterminate" : ""}"
59
- >
60
- <circle class="bg"></circle>
61
- <circle class="fg"></circle>
62
- </svg>
63
- </div>
64
- `;
65
- }
66
- };
67
- TerraLoader.styles = [component_styles_default, loader_styles_default];
68
- __decorateClass([
69
- property({ reflect: true })
70
- ], TerraLoader.prototype, "size", 2);
71
- __decorateClass([
72
- property({ reflect: true })
73
- ], TerraLoader.prototype, "theme", 2);
74
- __decorateClass([
75
- property({ type: Number })
76
- ], TerraLoader.prototype, "percent", 2);
77
- __decorateClass([
78
- property({ type: Boolean })
79
- ], TerraLoader.prototype, "indeterminate", 2);
80
- __decorateClass([
81
- property({ type: String })
82
- ], TerraLoader.prototype, "label", 2);
83
- __decorateClass([
84
- property({ type: String })
85
- ], TerraLoader.prototype, "message", 2);
86
-
87
- export {
88
- TerraLoader
89
- };
@@ -1,102 +0,0 @@
1
- import {
2
- __decorateClass,
3
- __spreadValues
4
- } from "./chunk.RYPAZDXE.js";
5
-
6
- // src/styles/component.styles.ts
7
- import { css } from "lit";
8
- var component_styles_default = css`
9
- :host {
10
- box-sizing: border-box;
11
- }
12
-
13
- :host *,
14
- :host *::before,
15
- :host *::after {
16
- box-sizing: inherit;
17
- }
18
-
19
- [hidden] {
20
- display: none !important;
21
- }
22
-
23
- /* UTILITY CSS */
24
- .sr-only {
25
- block-size: 1px;
26
- border-width: 0;
27
- clip: rect(0, 0, 0, 0);
28
- margin: -1px;
29
- overflow: hidden;
30
- padding: 0;
31
- position: absolute;
32
- white-space: nowrap;
33
- width: 1px;
34
- }
35
- `;
36
-
37
- // src/internal/terra-element.ts
38
- import { LitElement } from "lit";
39
- import { property } from "lit/decorators.js";
40
- var TerraElement = class extends LitElement {
41
- emit(name, options) {
42
- const event = new CustomEvent(name, __spreadValues({
43
- bubbles: true,
44
- cancelable: false,
45
- composed: true,
46
- detail: {}
47
- }, options));
48
- this.dispatchEvent(event);
49
- return event;
50
- }
51
- /* eslint-enable */
52
- static define(name, elementConstructor = this, options = {}) {
53
- const currentlyRegisteredConstructor = customElements.get(name);
54
- if (!currentlyRegisteredConstructor) {
55
- customElements.define(
56
- name,
57
- class extends elementConstructor {
58
- },
59
- options
60
- );
61
- return;
62
- }
63
- let newVersion = " (unknown version)";
64
- let existingVersion = newVersion;
65
- if ("version" in elementConstructor && elementConstructor.version) {
66
- newVersion = " v" + elementConstructor.version;
67
- }
68
- if ("version" in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {
69
- existingVersion = " v" + currentlyRegisteredConstructor.version;
70
- }
71
- if (newVersion && existingVersion && newVersion === existingVersion) {
72
- return;
73
- }
74
- console.warn(
75
- `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
76
- );
77
- }
78
- constructor() {
79
- super();
80
- Object.entries(
81
- this.constructor.dependencies
82
- ).forEach(([name, component]) => {
83
- ;
84
- this.constructor.define(name, component);
85
- });
86
- }
87
- };
88
- /* eslint-disable */
89
- // @ts-expect-error This is auto-injected at build time.
90
- TerraElement.version = "0.0.6";
91
- TerraElement.dependencies = {};
92
- __decorateClass([
93
- property()
94
- ], TerraElement.prototype, "dir", 2);
95
- __decorateClass([
96
- property()
97
- ], TerraElement.prototype, "lang", 2);
98
-
99
- export {
100
- component_styles_default,
101
- TerraElement
102
- };