@nasa-terra/components 0.0.16 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/cdn/chunks/{chunk.2TIJ6R6B.js → chunk.255N2VBJ.js} +1 -1
  2. package/cdn/chunks/{chunk.JIUOSOVY.js → chunk.26M35UMA.js} +1 -1
  3. package/cdn/chunks/{chunk.7VSR26CA.js → chunk.2MR4S2RG.js} +2 -2
  4. package/cdn/chunks/{chunk.EHY7VY3A.js → chunk.35UPRHLO.js} +1 -1
  5. package/cdn/chunks/{chunk.XV5OXFZF.js → chunk.3QDQU6IH.js} +1 -1
  6. package/cdn/chunks/{chunk.JM34BH4L.js → chunk.3X46EXSH.js} +1 -1
  7. package/cdn/chunks/{chunk.336JMC6Z.js → chunk.4BM5VFHP.js} +4 -2
  8. package/cdn/chunks/{chunk.KNJGM7ZC.js → chunk.7NUP2QM3.js} +1 -1
  9. package/cdn/chunks/{chunk.FKIVBKR4.js → chunk.A7JNBDMV.js} +1 -1
  10. package/{dist/chunks/chunk.2GTDPFRM.js → cdn/chunks/chunk.CVMKTAN6.js} +1 -1
  11. package/cdn/chunks/{chunk.RPXN4NU2.js → chunk.D4PVXIX4.js} +1 -1
  12. package/cdn/chunks/{chunk.VLVUJMLW.js → chunk.D4RFPP4E.js} +14 -14
  13. package/cdn/chunks/{chunk.IA24KXWX.js → chunk.EFFYILRO.js} +1 -1
  14. package/{dist/chunks/chunk.CBU7JODA.js → cdn/chunks/chunk.FXBR2CLR.js} +1 -1
  15. package/cdn/chunks/{chunk.AI62NGNK.js → chunk.GGXVEHRQ.js} +1 -1
  16. package/cdn/chunks/{chunk.MGN45BTW.js → chunk.GVXNMKZL.js} +1 -1
  17. package/cdn/chunks/{chunk.LCBLTPNH.js → chunk.H4JY2YI5.js} +1 -1
  18. package/cdn/chunks/{chunk.3ENNXZ6R.js → chunk.HOJQS4WB.js} +23 -14
  19. package/cdn/chunks/{chunk.T3R3UWJ7.js → chunk.HYBK26DZ.js} +3 -3
  20. package/cdn/chunks/{chunk.VXV5USN7.js → chunk.I4SJOUOT.js} +9 -9
  21. package/cdn/chunks/{chunk.5TCRMMVM.js → chunk.IEKKFDDR.js} +1 -1
  22. package/cdn/chunks/{chunk.QQ3GAD4X.js → chunk.JF5WE7DB.js} +4 -4
  23. package/cdn/chunks/{chunk.F6HKKNJR.js → chunk.K3KUUN7M.js} +15 -15
  24. package/cdn/chunks/{chunk.EIMG4XGS.js → chunk.KGVGJIN6.js} +4 -4
  25. package/cdn/chunks/{chunk.DY5SMOW7.js → chunk.KRV3QC6E.js} +1 -2
  26. package/cdn/chunks/{chunk.SDCAKUF2.js → chunk.MU5VF7T7.js} +1 -1
  27. package/cdn/chunks/{chunk.57LVW27O.js → chunk.N36ACYG7.js} +1 -1
  28. package/cdn/chunks/{chunk.TG4WI6CA.js → chunk.N6CSKYGG.js} +1 -1
  29. package/cdn/chunks/{chunk.PETOVVIO.js → chunk.PHMP6QZK.js} +1 -1
  30. package/cdn/chunks/{chunk.TOG3CR4L.js → chunk.Q7V7IFTI.js} +1 -1
  31. package/cdn/chunks/{chunk.WVAKAESC.js → chunk.RJCQ5JYU.js} +1 -1
  32. package/cdn/chunks/{chunk.ODLY7QWO.js → chunk.RPRZYXWX.js} +1 -1
  33. package/cdn/chunks/{chunk.F3WO26WZ.js → chunk.SAY53MDH.js} +3 -3
  34. package/{dist/chunks/chunk.KPXFSE3J.js → cdn/chunks/chunk.SBTMIM4P.js} +6 -3
  35. package/cdn/chunks/{chunk.RYDRC65X.js → chunk.SU7526RC.js} +1 -1
  36. package/{dist/chunks/chunk.34PQNYPP.js → cdn/chunks/chunk.T6LQIGOC.js} +1 -1
  37. package/{dist/chunks/chunk.KCYAARKK.js → cdn/chunks/chunk.T6XNILRG.js} +1 -1
  38. package/cdn/chunks/{chunk.5EGY75T5.js → chunk.UBVSIOSK.js} +4 -4
  39. package/cdn/chunks/{chunk.77DLQZVO.js → chunk.UQREFLTK.js} +1 -1
  40. package/cdn/chunks/{chunk.GZ24SYY3.js → chunk.VJ3ZRWAI.js} +2 -6
  41. package/cdn/chunks/{chunk.TD5OSBG3.js → chunk.VVXXEKVB.js} +1 -1
  42. package/cdn/chunks/{chunk.PBTOMMNF.js → chunk.VWOCHHDI.js} +7 -7
  43. package/cdn/chunks/{chunk.G6ADH3AH.js → chunk.WLGNUWUQ.js} +1 -1
  44. package/cdn/chunks/{chunk.QE6VXD5B.js → chunk.WRRDTOCT.js} +5 -2
  45. package/cdn/chunks/{chunk.IFWHGZLJ.js → chunk.XPKFSIPV.js} +1 -1
  46. package/cdn/chunks/{chunk.OB7ATVCO.js → chunk.YGXFM6FJ.js} +1 -1
  47. package/cdn/chunks/{chunk.CZH6I2IA.js → chunk.ZAYAT2TO.js} +1 -1
  48. package/cdn/chunks/{chunk.X2ZVRY4H.js → chunk.ZJVBOKXX.js} +1 -1
  49. package/cdn/chunks/{chunk.NGNH7UG4.js → chunk.ZMHMRAXL.js} +4 -4
  50. package/cdn/chunks/{chunk.MSS2SPZN.js → chunk.ZSTKVGYN.js} +1 -1
  51. package/cdn/components/browse-variables/browse-variables.component.js +19 -19
  52. package/cdn/components/browse-variables/browse-variables.js +20 -20
  53. package/cdn/components/button/button.component.js +4 -4
  54. package/cdn/components/button/button.js +5 -5
  55. package/cdn/components/chip/chip.component.js +2 -2
  56. package/cdn/components/chip/chip.js +3 -3
  57. package/cdn/components/combobox/combobox.component.js +4 -4
  58. package/cdn/components/combobox/combobox.js +5 -5
  59. package/cdn/components/date-range-slider/date-range-slider.component.js +3 -3
  60. package/cdn/components/date-range-slider/date-range-slider.js +4 -4
  61. package/cdn/components/giovanni-search/giovanni-search.component.js +13 -13
  62. package/cdn/components/giovanni-search/giovanni-search.js +14 -14
  63. package/cdn/components/icon/icon.component.js +4 -4
  64. package/cdn/components/icon/icon.js +5 -5
  65. package/cdn/components/icon/library.js +2 -2
  66. package/cdn/components/loader/loader.component.js +2 -2
  67. package/cdn/components/loader/loader.js +3 -3
  68. package/cdn/components/login/login.component.js +13 -13
  69. package/cdn/components/login/login.js +14 -14
  70. package/cdn/components/map/leaflet-utils.d.ts +1 -1
  71. package/cdn/components/map/leaflet-utils.js +1 -1
  72. package/cdn/components/map/map.component.js +5 -5
  73. package/cdn/components/map/map.controller.js +1 -1
  74. package/cdn/components/map/map.js +6 -6
  75. package/cdn/components/plot/plot.component.js +2 -2
  76. package/cdn/components/plot/plot.js +3 -3
  77. package/cdn/components/skeleton/skeleton.component.js +2 -2
  78. package/cdn/components/skeleton/skeleton.js +3 -3
  79. package/cdn/components/spatial-picker/spatial-picker.component.js +6 -6
  80. package/cdn/components/spatial-picker/spatial-picker.js +7 -7
  81. package/cdn/components/time-series/time-series.component.d.ts +4 -2
  82. package/cdn/components/time-series/time-series.component.js +25 -25
  83. package/cdn/components/time-series/time-series.controller.d.ts +4 -3
  84. package/cdn/components/time-series/time-series.controller.js +1 -1
  85. package/cdn/components/time-series/time-series.js +26 -26
  86. package/cdn/components/variable-combobox/variable-combobox.component.js +12 -12
  87. package/cdn/components/variable-combobox/variable-combobox.controller.js +2 -2
  88. package/cdn/components/variable-combobox/variable-combobox.js +13 -13
  89. package/cdn/custom-elements.json +458 -450
  90. package/cdn/events/events.d.ts +1 -0
  91. package/cdn/events/terra-time-series-data-change.d.ts +16 -0
  92. package/cdn/react/browse-variables/index.js +20 -20
  93. package/cdn/react/button/index.js +5 -5
  94. package/cdn/react/chip/index.js +3 -3
  95. package/cdn/react/combobox/index.js +5 -5
  96. package/cdn/react/date-range-slider/index.js +4 -4
  97. package/cdn/react/giovanni-search/index.js +14 -14
  98. package/cdn/react/icon/index.js +5 -5
  99. package/cdn/react/index.d.ts +2 -2
  100. package/cdn/react/index.js +64 -64
  101. package/cdn/react/loader/index.js +3 -3
  102. package/cdn/react/login/index.js +14 -14
  103. package/cdn/react/map/index.js +6 -6
  104. package/cdn/react/plot/index.js +3 -3
  105. package/cdn/react/skeleton/index.js +3 -3
  106. package/cdn/react/spatial-picker/index.js +7 -7
  107. package/cdn/react/time-series/index.d.ts +8 -1
  108. package/cdn/react/time-series/index.js +26 -26
  109. package/cdn/react/variable-combobox/index.js +13 -13
  110. package/cdn/terra-ui-components.js +58 -58
  111. package/cdn/types/vue/index.d.ts +68 -63
  112. package/cdn/utilities/icon-library.js +2 -2
  113. package/cdn/vscode.html-custom-data.json +49 -49
  114. package/cdn/web-types.json +85 -75
  115. package/{cdn/chunks/chunk.JBZMCSPD.js → dist/chunks/chunk.267RAJCD.js} +1 -1
  116. package/dist/chunks/{chunk.DV6U7J5D.js → chunk.2GFNQRFQ.js} +6 -6
  117. package/dist/chunks/{chunk.2KFIIWTA.js → chunk.2GIVYMVS.js} +1 -1
  118. package/dist/chunks/{chunk.ECOMXZ5Z.js → chunk.2SW6ZLO3.js} +6 -6
  119. package/dist/chunks/{chunk.5TCRMMVM.js → chunk.5BLMPQLX.js} +1 -1
  120. package/{cdn/chunks/chunk.MTNKN7SC.js → dist/chunks/chunk.6BQMITBG.js} +1 -1
  121. package/dist/chunks/{chunk.BQKL24VU.js → chunk.6W5DHHGH.js} +1 -1
  122. package/{cdn/chunks/chunk.NZLN7XGH.js → dist/chunks/chunk.6XGCF2AT.js} +1 -1
  123. package/{cdn/chunks/chunk.WALPLM23.js → dist/chunks/chunk.BLNX7W6U.js} +1 -1
  124. package/{cdn/chunks/chunk.34PQNYPP.js → dist/chunks/chunk.BQZFEJJM.js} +1 -1
  125. package/{cdn/chunks/chunk.NXW5W246.js → dist/chunks/chunk.CG2UCM6R.js} +4 -4
  126. package/{cdn/chunks/chunk.QJJV3URN.js → dist/chunks/chunk.CIHL36QS.js} +1 -1
  127. package/{cdn/chunks/chunk.NHY4FPXP.js → dist/chunks/chunk.DOHDFFXP.js} +6 -6
  128. package/{cdn/chunks/chunk.CUBR5ACQ.js → dist/chunks/chunk.DTO6LPWI.js} +1 -1
  129. package/{cdn/chunks/chunk.TFD7EM3D.js → dist/chunks/chunk.DWTCCF6R.js} +1 -1
  130. package/dist/chunks/{chunk.DR7BNSRT.js → chunk.E2GNJGZV.js} +1 -1
  131. package/dist/chunks/{chunk.SL7W466R.js → chunk.EX74UTJ7.js} +1 -1
  132. package/{cdn/chunks/chunk.UFFAH5CF.js → dist/chunks/chunk.FYQLL4HT.js} +1 -1
  133. package/{cdn/chunks/chunk.5HSDW7A7.js → dist/chunks/chunk.GAYRUSX6.js} +1 -1
  134. package/dist/chunks/{chunk.FKSGPKJ4.js → chunk.GGC3H4U4.js} +1 -1
  135. package/dist/chunks/{chunk.HSXXKVP2.js → chunk.GVOL34BS.js} +1 -1
  136. package/{cdn/chunks/chunk.TWEJH5NG.js → dist/chunks/chunk.HEWVEHI5.js} +1 -1
  137. package/dist/chunks/{chunk.FRYGAWGB.js → chunk.I3WITIFZ.js} +1 -1
  138. package/{cdn/chunks/chunk.WYAUVXJM.js → dist/chunks/chunk.ICVWA4P5.js} +5 -2
  139. package/{cdn/chunks/chunk.TRSTZLH4.js → dist/chunks/chunk.IKXISAQ2.js} +1 -1
  140. package/{cdn/chunks/chunk.EUMBRSX6.js → dist/chunks/chunk.ITTYAXUW.js} +1 -1
  141. package/{cdn/chunks/chunk.AE3PFNQE.js → dist/chunks/chunk.JFDJULBY.js} +1 -1
  142. package/{cdn/chunks/chunk.Y4T6LEGB.js → dist/chunks/chunk.JQIAVJLL.js} +1 -1
  143. package/{cdn/chunks/chunk.XSTI34LB.js → dist/chunks/chunk.JRFWKQYN.js} +1 -1
  144. package/dist/chunks/{chunk.EU6EQVBK.js → chunk.KADMU3E4.js} +3 -3
  145. package/dist/chunks/{chunk.GPMEZSRZ.js → chunk.KBIE3IOP.js} +1 -1
  146. package/{cdn/chunks/chunk.SQBTHONX.js → dist/chunks/chunk.LA3ITE3F.js} +3 -3
  147. package/dist/chunks/{chunk.G3K7U3GY.js → chunk.LHTTKRV2.js} +4 -4
  148. package/{cdn/chunks/chunk.EAPY6ENL.js → dist/chunks/chunk.LIXRQ4TF.js} +1 -1
  149. package/{cdn/chunks/chunk.DGKBWVVI.js → dist/chunks/chunk.MVIGRS3J.js} +1 -1
  150. package/{cdn/chunks/chunk.5LOTY62O.js → dist/chunks/chunk.PHKCL7D5.js} +1 -1
  151. package/dist/chunks/{chunk.7OAL7XX6.js → chunk.RQNB3PHE.js} +1 -1
  152. package/dist/chunks/{chunk.6ZBHXUFH.js → chunk.RSVF27RD.js} +1 -1
  153. package/{cdn/chunks/chunk.KPXFSE3J.js → dist/chunks/chunk.SBTMIM4P.js} +6 -3
  154. package/dist/chunks/{chunk.U4QKPX6T.js → chunk.SLW4ZVXI.js} +25 -16
  155. package/dist/chunks/{chunk.I5ZJKFQJ.js → chunk.TFKLXJVS.js} +12 -12
  156. package/dist/chunks/{chunk.BY7D7WUU.js → chunk.TK54QVRF.js} +4 -4
  157. package/{cdn/chunks/chunk.2GTDPFRM.js → dist/chunks/chunk.TRICHLNH.js} +1 -1
  158. package/dist/chunks/{chunk.ZC2AYSV2.js → chunk.UBBSTKSW.js} +4 -2
  159. package/{cdn/chunks/chunk.UQKHXO3T.js → dist/chunks/chunk.UCFFAP7X.js} +1 -2
  160. package/dist/chunks/{chunk.RPCYLOW6.js → chunk.UKBQUK7O.js} +1 -1
  161. package/{cdn/chunks/chunk.NLHKPFJJ.js → dist/chunks/chunk.WFSOHTHG.js} +1 -1
  162. package/dist/chunks/{chunk.6BHFQXZZ.js → chunk.X232PDAN.js} +1 -1
  163. package/{cdn/chunks/chunk.EPQIDDJG.js → dist/chunks/chunk.XBXVMXH7.js} +2 -6
  164. package/dist/chunks/{chunk.45HI7TFT.js → chunk.XVXKFPWS.js} +1 -1
  165. package/dist/components/browse-variables/browse-variables.component.js +16 -16
  166. package/dist/components/browse-variables/browse-variables.js +17 -17
  167. package/dist/components/button/button.component.js +3 -3
  168. package/dist/components/button/button.js +4 -4
  169. package/dist/components/chip/chip.component.js +2 -2
  170. package/dist/components/chip/chip.js +3 -3
  171. package/dist/components/combobox/combobox.component.js +3 -3
  172. package/dist/components/combobox/combobox.js +4 -4
  173. package/dist/components/date-range-slider/date-range-slider.component.js +3 -3
  174. package/dist/components/date-range-slider/date-range-slider.js +4 -4
  175. package/dist/components/giovanni-search/giovanni-search.component.js +11 -11
  176. package/dist/components/giovanni-search/giovanni-search.js +12 -12
  177. package/dist/components/icon/icon.component.js +4 -4
  178. package/dist/components/icon/icon.js +5 -5
  179. package/dist/components/icon/library.js +2 -2
  180. package/dist/components/loader/loader.component.js +2 -2
  181. package/dist/components/loader/loader.js +3 -3
  182. package/dist/components/login/login.component.js +11 -11
  183. package/dist/components/login/login.js +12 -12
  184. package/dist/components/map/leaflet-utils.d.ts +1 -1
  185. package/dist/components/map/leaflet-utils.js +1 -1
  186. package/dist/components/map/map.component.js +4 -4
  187. package/dist/components/map/map.controller.js +1 -1
  188. package/dist/components/map/map.js +5 -5
  189. package/dist/components/plot/plot.component.js +2 -2
  190. package/dist/components/plot/plot.js +3 -3
  191. package/dist/components/skeleton/skeleton.component.js +2 -2
  192. package/dist/components/skeleton/skeleton.js +3 -3
  193. package/dist/components/spatial-picker/spatial-picker.component.js +5 -5
  194. package/dist/components/spatial-picker/spatial-picker.js +6 -6
  195. package/dist/components/time-series/time-series.component.d.ts +4 -2
  196. package/dist/components/time-series/time-series.component.js +21 -21
  197. package/dist/components/time-series/time-series.controller.d.ts +4 -3
  198. package/dist/components/time-series/time-series.controller.js +1 -1
  199. package/dist/components/time-series/time-series.js +22 -22
  200. package/dist/components/variable-combobox/variable-combobox.component.js +10 -10
  201. package/dist/components/variable-combobox/variable-combobox.controller.js +1 -1
  202. package/dist/components/variable-combobox/variable-combobox.js +11 -11
  203. package/dist/custom-elements.json +458 -450
  204. package/dist/events/events.d.ts +1 -0
  205. package/dist/events/terra-time-series-data-change.d.ts +16 -0
  206. package/dist/react/browse-variables/index.js +17 -17
  207. package/dist/react/button/index.js +4 -4
  208. package/dist/react/chip/index.js +3 -3
  209. package/dist/react/combobox/index.js +4 -4
  210. package/dist/react/date-range-slider/index.js +4 -4
  211. package/dist/react/giovanni-search/index.js +12 -12
  212. package/dist/react/icon/index.js +5 -5
  213. package/dist/react/index.d.ts +2 -2
  214. package/dist/react/index.js +59 -59
  215. package/dist/react/loader/index.js +3 -3
  216. package/dist/react/login/index.js +12 -12
  217. package/dist/react/map/index.js +5 -5
  218. package/dist/react/plot/index.js +3 -3
  219. package/dist/react/skeleton/index.js +3 -3
  220. package/dist/react/spatial-picker/index.js +6 -6
  221. package/dist/react/time-series/index.d.ts +8 -1
  222. package/dist/react/time-series/index.js +22 -22
  223. package/dist/react/variable-combobox/index.js +11 -11
  224. package/dist/terra-ui-components.js +53 -53
  225. package/dist/terra_ui_components-0.0.19-py3-none-any.whl +0 -0
  226. package/dist/{terra_ui_components-0.0.16.tar.gz → terra_ui_components-0.0.19.tar.gz} +0 -0
  227. package/dist/types/vue/index.d.ts +68 -63
  228. package/dist/utilities/icon-library.js +2 -2
  229. package/dist/vscode.html-custom-data.json +49 -49
  230. package/dist/web-types.json +85 -75
  231. package/package.json +3 -4
  232. package/cdn/chunks/chunk.2DQS7YWJ.js +0 -41
  233. package/cdn/chunks/chunk.2KFIIWTA.js +0 -53
  234. package/cdn/chunks/chunk.2TEPJ23V.js +0 -11
  235. package/cdn/chunks/chunk.2V4XFMTB.js +0 -7
  236. package/cdn/chunks/chunk.3IXG5IJD.js +0 -21
  237. package/cdn/chunks/chunk.45HI7TFT.js +0 -11
  238. package/cdn/chunks/chunk.62YHGVQN.js +0 -335
  239. package/cdn/chunks/chunk.6PYVTQGY.js +0 -11
  240. package/cdn/chunks/chunk.7OAL7XX6.js +0 -21
  241. package/cdn/chunks/chunk.7OKJDEHN.js +0 -139
  242. package/cdn/chunks/chunk.7VUSSQRI.js +0 -20
  243. package/cdn/chunks/chunk.7WL3WWGJ.js +0 -293
  244. package/cdn/chunks/chunk.AAWOHDFX.js +0 -259
  245. package/cdn/chunks/chunk.ADOXGJHH.js +0 -11
  246. package/cdn/chunks/chunk.APJOA6RL.js +0 -655
  247. package/cdn/chunks/chunk.BQKL24VU.js +0 -82
  248. package/cdn/chunks/chunk.BY7D7WUU.js +0 -180
  249. package/cdn/chunks/chunk.CBU7JODA.js +0 -11
  250. package/cdn/chunks/chunk.CNUQQWCR.js +0 -215
  251. package/cdn/chunks/chunk.DR7BNSRT.js +0 -21
  252. package/cdn/chunks/chunk.DV6U7J5D.js +0 -264
  253. package/cdn/chunks/chunk.EGZMQ7T7.js +0 -35
  254. package/cdn/chunks/chunk.FBOXM56P.js +0 -19
  255. package/cdn/chunks/chunk.FWXMF6WX.js +0 -327
  256. package/cdn/chunks/chunk.GHDRVO5M.js +0 -125
  257. package/cdn/chunks/chunk.GR7XHOA3.js +0 -52
  258. package/cdn/chunks/chunk.I5ZJKFQJ.js +0 -578
  259. package/cdn/chunks/chunk.JOOAZ4RH.js +0 -50
  260. package/cdn/chunks/chunk.KAV5L6Z5.js +0 -318
  261. package/cdn/chunks/chunk.KZ3ISS6V.js +0 -120
  262. package/cdn/chunks/chunk.LELNKRPW.js +0 -685
  263. package/cdn/chunks/chunk.MDRUDBRH.js +0 -43
  264. package/cdn/chunks/chunk.NX4TE64Y.js +0 -25
  265. package/cdn/chunks/chunk.OIDMX5LU.js +0 -10
  266. package/cdn/chunks/chunk.PICX7LPQ.js +0 -194
  267. package/cdn/chunks/chunk.PL4INVKT.js +0 -24
  268. package/cdn/chunks/chunk.Q44TP6D4.js +0 -477
  269. package/cdn/chunks/chunk.QEMJLGM4.js +0 -58
  270. package/cdn/chunks/chunk.QK5OWFVO.js +0 -238
  271. package/cdn/chunks/chunk.RPCYLOW6.js +0 -354
  272. package/cdn/chunks/chunk.RV2KFFXW.js +0 -116
  273. package/cdn/chunks/chunk.SK7IZCKP.js +0 -37
  274. package/cdn/chunks/chunk.SR6QXNO3.js +0 -24
  275. package/cdn/chunks/chunk.TQJATCGZ.js +0 -11
  276. package/cdn/chunks/chunk.TVFCHGU3.js +0 -76
  277. package/cdn/chunks/chunk.U4QKPX6T.js +0 -192
  278. package/cdn/chunks/chunk.UGKIMEZW.js +0 -21
  279. package/cdn/chunks/chunk.UIYPAVP3.js +0 -104
  280. package/cdn/chunks/chunk.USCKHG5S.js +0 -25
  281. package/cdn/chunks/chunk.V7JJFRAE.js +0 -11
  282. package/cdn/chunks/chunk.W7JRXR2Y.js +0 -293
  283. package/cdn/chunks/chunk.YL2ETAOO.js +0 -153
  284. package/cdn/chunks/chunk.Z2ELMSYN.js +0 -63
  285. package/cdn/chunks/chunk.ZC2AYSV2.js +0 -273
  286. package/dist/chunks/chunk.2O6HB6W6.js +0 -21
  287. package/dist/chunks/chunk.3WHG66G3.js +0 -177
  288. package/dist/chunks/chunk.57LVW27O.js +0 -11
  289. package/dist/chunks/chunk.5LOTY62O.js +0 -120
  290. package/dist/chunks/chunk.5O7TTTJD.js +0 -351
  291. package/dist/chunks/chunk.5UE4SLYC.js +0 -120
  292. package/dist/chunks/chunk.6CLWIMAP.js +0 -21
  293. package/dist/chunks/chunk.6GMULXGW.js +0 -21
  294. package/dist/chunks/chunk.7QKG7IRI.js +0 -379
  295. package/dist/chunks/chunk.A6JU7GRG.js +0 -25
  296. package/dist/chunks/chunk.AC6WDIAW.js +0 -11
  297. package/dist/chunks/chunk.ADOXGJHH.js +0 -11
  298. package/dist/chunks/chunk.CPXWDTHF.js +0 -214
  299. package/dist/chunks/chunk.CUBR5ACQ.js +0 -11
  300. package/dist/chunks/chunk.CZH6I2IA.js +0 -11
  301. package/dist/chunks/chunk.DIBCM2Y3.js +0 -11
  302. package/dist/chunks/chunk.EAPY6ENL.js +0 -11
  303. package/dist/chunks/chunk.EG7EICTO.js +0 -406
  304. package/dist/chunks/chunk.EHY7VY3A.js +0 -21
  305. package/dist/chunks/chunk.EPQIDDJG.js +0 -379
  306. package/dist/chunks/chunk.EZTCV6LQ.js +0 -95
  307. package/dist/chunks/chunk.FIMCDNWK.js +0 -11
  308. package/dist/chunks/chunk.FKIVBKR4.js +0 -11
  309. package/dist/chunks/chunk.FWXMF6WX.js +0 -327
  310. package/dist/chunks/chunk.FY4LGVGC.js +0 -21
  311. package/dist/chunks/chunk.G34ZJR6B.js +0 -11
  312. package/dist/chunks/chunk.GVG7MLLN.js +0 -21
  313. package/dist/chunks/chunk.I5DIH6L6.js +0 -11
  314. package/dist/chunks/chunk.IFWHGZLJ.js +0 -21
  315. package/dist/chunks/chunk.IYEX72BV.js +0 -11
  316. package/dist/chunks/chunk.J7P5CNNR.js +0 -11
  317. package/dist/chunks/chunk.JM34BH4L.js +0 -11
  318. package/dist/chunks/chunk.KQCFGTAH.js +0 -82
  319. package/dist/chunks/chunk.MDRUDBRH.js +0 -43
  320. package/dist/chunks/chunk.MHMITM2Q.js +0 -21
  321. package/dist/chunks/chunk.MTNKN7SC.js +0 -95
  322. package/dist/chunks/chunk.NHY4FPXP.js +0 -351
  323. package/dist/chunks/chunk.NQZGHZYS.js +0 -11
  324. package/dist/chunks/chunk.NXW5W246.js +0 -406
  325. package/dist/chunks/chunk.NZLN7XGH.js +0 -214
  326. package/dist/chunks/chunk.OB7ATVCO.js +0 -24
  327. package/dist/chunks/chunk.ODLY7QWO.js +0 -11
  328. package/dist/chunks/chunk.PARFAN5E.js +0 -25
  329. package/dist/chunks/chunk.PCU3BZMH.js +0 -264
  330. package/dist/chunks/chunk.PETOVVIO.js +0 -21
  331. package/dist/chunks/chunk.PICX7LPQ.js +0 -194
  332. package/dist/chunks/chunk.PYDXDZ7R.js +0 -21
  333. package/dist/chunks/chunk.Q44TP6D4.js +0 -477
  334. package/dist/chunks/chunk.Q67RNINH.js +0 -180
  335. package/dist/chunks/chunk.QLUHMJKU.js +0 -53
  336. package/dist/chunks/chunk.RR45MD47.js +0 -11
  337. package/dist/chunks/chunk.RYDRC65X.js +0 -11
  338. package/dist/chunks/chunk.SDCAKUF2.js +0 -11
  339. package/dist/chunks/chunk.SKHGD7CP.js +0 -578
  340. package/dist/chunks/chunk.SQBTHONX.js +0 -177
  341. package/dist/chunks/chunk.SR6QXNO3.js +0 -24
  342. package/dist/chunks/chunk.SS24NNGJ.js +0 -11
  343. package/dist/chunks/chunk.TFD7EM3D.js +0 -21
  344. package/dist/chunks/chunk.TOG3CR4L.js +0 -21
  345. package/dist/chunks/chunk.U2URIXJW.js +0 -354
  346. package/dist/chunks/chunk.UJ7TXBCU.js +0 -21
  347. package/dist/chunks/chunk.UQKHXO3T.js +0 -66
  348. package/dist/chunks/chunk.V7JJFRAE.js +0 -11
  349. package/dist/chunks/chunk.VR2UR6LQ.js +0 -11
  350. package/dist/chunks/chunk.WALPLM23.js +0 -11
  351. package/dist/chunks/chunk.WVAKAESC.js +0 -21
  352. package/dist/chunks/chunk.WYAUVXJM.js +0 -21
  353. package/dist/chunks/chunk.XSTI34LB.js +0 -21
  354. package/dist/chunks/chunk.XUW42A44.js +0 -21
  355. package/dist/chunks/chunk.XV5OXFZF.js +0 -21
  356. package/dist/terra_ui_components-0.0.16-py3-none-any.whl +0 -0
@@ -1,477 +0,0 @@
1
- import {
2
- combobox_styles_default
3
- } from "./chunk.7WL3WWGJ.js";
4
- import {
5
- clearSelection,
6
- walkToOption
7
- } from "./chunk.LMGJJIIS.js";
8
- import {
9
- watch
10
- } from "./chunk.SK7IZCKP.js";
11
- import {
12
- TerraElement,
13
- component_styles_default
14
- } from "./chunk.EPQIDDJG.js";
15
- import {
16
- __decorateClass,
17
- __privateAdd,
18
- __privateGet,
19
- __privateSet,
20
- __spreadProps,
21
- __spreadValues
22
- } from "./chunk.TVFCHGU3.js";
23
-
24
- // src/components/combobox/combobox.component.ts
25
- import Fuse from "fuse.js";
26
- import { LitElement, html, nothing } from "lit";
27
- import { property, state } from "lit/decorators.js";
28
- import { ref } from "lit/directives/ref.js";
29
- import { repeat } from "lit/directives/repeat.js";
30
- import { cache } from "lit/directives/cache.js";
31
- import { choose } from "lit/directives/choose.js";
32
- import { map } from "lit/directives/map.js";
33
- var _combobox, _listbox, _searchEngine, _walker, _renderListItem, _renderGroupListItem, _renderError, _renderLoading, _dispatchChange, _handleButtonClick, _handleComboboxChange, _handleOptionClick, _handleKeydown, _manageListboxVisibility, _selectOption;
34
- var _TerraCombobox = class _TerraCombobox extends TerraElement {
35
- constructor() {
36
- super(...arguments);
37
- __privateAdd(this, _combobox, null);
38
- __privateAdd(this, _listbox, null);
39
- __privateAdd(this, _searchEngine, null);
40
- __privateAdd(this, _walker, null);
41
- this.label = "Search for Items";
42
- this.name = "Item";
43
- this.hideHelp = false;
44
- this.hideLabel = false;
45
- this.status = "INITIAL";
46
- this.content = {
47
- type: "GroupedListItem" /* GroupedListItem */,
48
- data: []
49
- };
50
- this.isExpanded = false;
51
- this.query = _TerraCombobox.initialQuery;
52
- this.searchResults = [];
53
- __privateAdd(this, _renderListItem, (listItem, index) => {
54
- return html`
55
- <li
56
- id="listbox-option-${index}"
57
- role="option"
58
- class="listbox-option"
59
- data-name=${listItem.name}
60
- data-event-detail=${JSON.stringify({
61
- name: listItem.name,
62
- value: listItem.value
63
- })}
64
- >
65
- ${listItem.name}
66
- </li>
67
- `;
68
- });
69
- __privateAdd(this, _renderGroupListItem, (groupListItem, index) => {
70
- return html`
71
- <li class="listbox-option-group" data-tree-walker="filter_skip">
72
- <span class="group-title" data-tree-walker="filter_skip"
73
- >${groupListItem.name}</span
74
- >
75
- <ul data-tree-walker="filter_skip">
76
- ${repeat(
77
- groupListItem.items,
78
- (item) => `${item.name}_${item.value}`,
79
- (item, subIndex) => {
80
- return html`
81
- <li
82
- id="listbox-option-${index}.${subIndex}"
83
- role="option"
84
- class="listbox-option"
85
- data-name=${item.title ? item.title : item.name}
86
- data-event-detail=${JSON.stringify({
87
- name: item.name,
88
- value: item.value
89
- })}
90
- >
91
- ${item.title ? item.title : item.name}
92
- </li>
93
- `;
94
- }
95
- )}
96
- </ul>
97
- </li>
98
- `;
99
- });
100
- __privateAdd(this, _renderError, () => {
101
- return html`
102
- <li class="error listbox-option-group">${this.content.data}</li>
103
- `;
104
- });
105
- __privateAdd(this, _renderLoading, () => {
106
- return html`
107
- <li class="skeleton listbox-option-group">
108
- <span class="skeleton-title"></span>
109
- <ul>
110
- <li class="listbox-option"></li>
111
- </ul>
112
- </li>
113
- <li class="skeleton listbox-option-group">
114
- <span class="skeleton-title"></span>
115
- <ul>
116
- <li class="listbox-option"></li>
117
- </ul>
118
- </li>
119
- <li class="skeleton listbox-option-group">
120
- <span class="skeleton-title"></span>
121
- <ul>
122
- <li class="listbox-option"></li>
123
- </ul>
124
- </li>
125
- `;
126
- });
127
- __privateAdd(this, _dispatchChange, (stringifiedData) => {
128
- this.emit("terra-combobox-change", { detail: JSON.parse(stringifiedData) });
129
- });
130
- __privateAdd(this, _handleButtonClick, () => {
131
- var _a;
132
- this.isExpanded = !this.isExpanded;
133
- (_a = __privateGet(this, _combobox)) == null ? void 0 : _a.focus();
134
- });
135
- __privateAdd(this, _handleComboboxChange, (event) => {
136
- var _a;
137
- const target = event.target;
138
- this.query = target.value;
139
- if (target.value) {
140
- this.isExpanded = true;
141
- }
142
- this.searchResults = (_a = __privateGet(this, _searchEngine)) == null ? void 0 : _a.search(target.value).map(({ item }) => item);
143
- });
144
- __privateAdd(this, _handleOptionClick, (event) => {
145
- const path = event.composedPath();
146
- const [target] = path.filter(
147
- (eventTarget) => eventTarget.role === "option"
148
- );
149
- if (!target)
150
- return;
151
- __privateGet(this, _selectOption).call(this, target);
152
- });
153
- __privateAdd(this, _handleKeydown, (event) => {
154
- var _a;
155
- switch (event.key) {
156
- case "ArrowDown": {
157
- clearSelection(
158
- __privateGet(this, _combobox),
159
- __privateGet(this, _listbox)
160
- );
161
- if (!this.isExpanded) {
162
- this.isExpanded = true;
163
- }
164
- if (event.altKey) {
165
- break;
166
- }
167
- walkToOption(
168
- __privateGet(this, _walker),
169
- __privateGet(this, _combobox),
170
- "next"
171
- );
172
- break;
173
- }
174
- case "ArrowUp": {
175
- clearSelection(
176
- __privateGet(this, _combobox),
177
- __privateGet(this, _listbox)
178
- );
179
- if (!this.isExpanded) {
180
- this.isExpanded = true;
181
- }
182
- walkToOption(
183
- __privateGet(this, _walker),
184
- __privateGet(this, _combobox),
185
- "previous"
186
- );
187
- break;
188
- }
189
- case "Enter": {
190
- __privateGet(this, _selectOption).call(this, (_a = __privateGet(this, _walker)) == null ? void 0 : _a.currentNode);
191
- break;
192
- }
193
- case "Escape": {
194
- clearSelection(
195
- __privateGet(this, _combobox),
196
- __privateGet(this, _listbox)
197
- );
198
- if (this.isExpanded) {
199
- this.isExpanded = false;
200
- } else {
201
- this.query = _TerraCombobox.initialQuery;
202
- }
203
- break;
204
- }
205
- default: {
206
- break;
207
- }
208
- }
209
- });
210
- __privateAdd(this, _manageListboxVisibility, (event) => {
211
- const path = event.composedPath();
212
- const containedThis = path.some(
213
- (eventTarget) => eventTarget.localName === _TerraCombobox.tagName
214
- );
215
- if (!containedThis) {
216
- this.isExpanded = false;
217
- }
218
- });
219
- __privateAdd(this, _selectOption, (option) => {
220
- const { name, eventDetail } = option.dataset;
221
- this.query = `${name}`;
222
- __privateGet(this, _dispatchChange).call(this, eventDetail);
223
- this.isExpanded = false;
224
- clearSelection(
225
- __privateGet(this, _combobox),
226
- __privateGet(this, _listbox)
227
- );
228
- });
229
- }
230
- connectedCallback() {
231
- super.connectedCallback();
232
- globalThis.addEventListener("click", __privateGet(this, _manageListboxVisibility));
233
- const list = this.content.type === "GroupedListItem" || this.content.type === "ListItem" ? this.content.data : [];
234
- __privateSet(this, _searchEngine, new Fuse(list, {
235
- //* @see https://www.fusejs.io/examples.html#nested-search
236
- findAllMatches: true,
237
- keys: [
238
- "name",
239
- // to search in the name of the GroupedListItem
240
- "items.name",
241
- // to search in the name of each ListItem
242
- "items.title",
243
- // to search in the title of each ListItem
244
- "items.value"
245
- // to search in the value of each ListItem
246
- ],
247
- useExtendedSearch: true
248
- }));
249
- }
250
- disconnectedCallback() {
251
- super.disconnectedCallback();
252
- globalThis.addEventListener("click", __privateGet(this, _manageListboxVisibility));
253
- }
254
- contentChanged(_oldValue, newValue) {
255
- const list = newValue.type === "GroupedListItem" || newValue.type === "ListItem" ? newValue.data : [];
256
- __privateSet(this, _searchEngine, new Fuse(list, {
257
- //* @see https://www.fusejs.io/examples.html#nested-search
258
- findAllMatches: true,
259
- keys: [
260
- "name",
261
- // to search in the name of the GroupedListItem
262
- "items.name",
263
- // to search in the name of each ListItem
264
- "items.title",
265
- // to search in the title of each ListItem
266
- "items.value"
267
- // to search in the value of each ListItem
268
- ],
269
- useExtendedSearch: true
270
- }));
271
- }
272
- render() {
273
- var _a;
274
- return html`<search part="base" title="Search through the list.">
275
- <label for="combobox" class=${this.hideLabel ? "sr-only" : "input-label"}
276
- >${this.label}</label
277
- >
278
- <div class="search-input-group">
279
- <input
280
- ${ref((el) => {
281
- var _a2;
282
- if (el) {
283
- (_a2 = __privateGet(this, _combobox)) != null ? _a2 : __privateSet(this, _combobox, el);
284
- }
285
- })}
286
- aria-autocomplete="list"
287
- aria-controls="listbox"
288
- aria-expanded=${this.isExpanded}
289
- class="combobox"
290
- id="combobox"
291
- part="combobox"
292
- role="combobox"
293
- type="text"
294
- .placeholder=${(_a = this.placeholder) != null ? _a : `${this.label}\u2026`}
295
- .value=${this.query}
296
- @input=${__privateGet(this, _handleComboboxChange)}
297
- @keydown=${__privateGet(this, _handleKeydown)}
298
- />
299
- <terra-button
300
- shape="square-left"
301
- aria-controls="listbox"
302
- aria-expanded=${this.isExpanded}
303
- aria-label="List of Searchable Items"
304
- class="combobox-button"
305
- id="combobox-button"
306
- part="button"
307
- tabindex="-1"
308
- type="button"
309
- @click=${__privateGet(this, _handleButtonClick)}
310
- >
311
- ${["COMPLETE", "ERROR", "INITIAL"].includes(this.status) ? html`<svg
312
- aria-hidden="true"
313
- class="button-icon chevron"
314
- focusable="false"
315
- viewBox="0 0 400 400"
316
- xmlns="http://www.w3.org/2000/svg"
317
- fill="currentColor"
318
- >
319
- <path
320
- d="m4.2 122.2 195.1 195.1 196.5-196.6-37.9-38-157.8 157.8-156.8-156.8z"
321
- ></path>
322
- </svg> ` : html`<svg
323
- class="button-icon spinner"
324
- stroke="currentColor"
325
- viewBox="0 0 24 24"
326
- xmlns="http://www.w3.org/2000/svg"
327
- >
328
- <circle
329
- cx="12"
330
- cy="12"
331
- r="9.5"
332
- fill="none"
333
- stroke-width="3"
334
- ></circle>
335
- </svg>`}
336
- </terra-button>
337
-
338
- ${this.hideHelp ? nothing : html`<p class="search-help">
339
- See
340
- <a
341
- href="https://www.fusejs.io/examples.html#extended-search"
342
- rel="noopener noreferrer"
343
- target="_blank"
344
- >extended search syntax
345
- <svg
346
- aria-hidden="true"
347
- class="external-link"
348
- xmlns="http://www.w3.org/2000/svg"
349
- width="14"
350
- height="14"
351
- viewBox="0 0 24 24"
352
- >
353
- <path
354
- d="M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"
355
- /></svg></a
356
- >.
357
- </p>`}
358
- </div>
359
-
360
- <ul
361
- ${ref((el) => {
362
- var _a2;
363
- if (el) {
364
- (_a2 = __privateGet(this, _listbox)) != null ? _a2 : __privateSet(this, _listbox, el);
365
- __privateSet(this, _walker, document.createTreeWalker(
366
- el,
367
- NodeFilter.SHOW_ELEMENT,
368
- (node) => {
369
- return node.dataset.treeWalker === "filter_skip" ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
370
- }
371
- ));
372
- }
373
- })}
374
- ?inert=${!this.isExpanded}
375
- ?open=${this.isExpanded}
376
- @click=${__privateGet(this, _handleOptionClick)}
377
- aria-label=${this.query ? `${this.name} Matching ${this.query}` : this.name}
378
- id="listbox"
379
- part="listbox"
380
- role="listbox"
381
- class="search-results"
382
- >
383
- ${choose(this.status, [
384
- [
385
- "INITIAL",
386
- () => {
387
- return nothing;
388
- }
389
- ],
390
- ["PENDING", __privateGet(this, _renderLoading)],
391
- [
392
- "COMPLETE",
393
- () => {
394
- return this.content.type === "ListItem" /* ListItem */ ? cache(
395
- this.query === _TerraCombobox.initialQuery ? map(
396
- this.content.data,
397
- __privateGet(this, _renderListItem)
398
- ) : map(
399
- this.searchResults,
400
- __privateGet(this, _renderListItem)
401
- )
402
- ) : this.content.type === "GroupedListItem" /* GroupedListItem */ ? cache(
403
- this.query === _TerraCombobox.initialQuery ? map(
404
- this.content.data,
405
- __privateGet(this, _renderGroupListItem)
406
- ) : map(
407
- this.searchResults,
408
- __privateGet(this, _renderGroupListItem)
409
- )
410
- ) : nothing;
411
- }
412
- ],
413
- ["ERROR", __privateGet(this, _renderError)]
414
- ])}
415
- </ul>
416
- </search>`;
417
- }
418
- };
419
- _combobox = new WeakMap();
420
- _listbox = new WeakMap();
421
- _searchEngine = new WeakMap();
422
- _walker = new WeakMap();
423
- _renderListItem = new WeakMap();
424
- _renderGroupListItem = new WeakMap();
425
- _renderError = new WeakMap();
426
- _renderLoading = new WeakMap();
427
- _dispatchChange = new WeakMap();
428
- _handleButtonClick = new WeakMap();
429
- _handleComboboxChange = new WeakMap();
430
- _handleOptionClick = new WeakMap();
431
- _handleKeydown = new WeakMap();
432
- _manageListboxVisibility = new WeakMap();
433
- _selectOption = new WeakMap();
434
- _TerraCombobox.styles = [component_styles_default, combobox_styles_default];
435
- _TerraCombobox.shadowRootOptions = __spreadProps(__spreadValues({}, LitElement.shadowRootOptions), {
436
- delegatesFocus: true
437
- });
438
- _TerraCombobox.tagName = "terra-combobox";
439
- _TerraCombobox.initialQuery = "";
440
- __decorateClass([
441
- property()
442
- ], _TerraCombobox.prototype, "label", 2);
443
- __decorateClass([
444
- property()
445
- ], _TerraCombobox.prototype, "name", 2);
446
- __decorateClass([
447
- property()
448
- ], _TerraCombobox.prototype, "placeholder", 2);
449
- __decorateClass([
450
- property({ attribute: "hide-help", type: Boolean })
451
- ], _TerraCombobox.prototype, "hideHelp", 2);
452
- __decorateClass([
453
- property({ attribute: "hide-label", type: Boolean })
454
- ], _TerraCombobox.prototype, "hideLabel", 2);
455
- __decorateClass([
456
- property()
457
- ], _TerraCombobox.prototype, "status", 2);
458
- __decorateClass([
459
- property({ type: Object })
460
- ], _TerraCombobox.prototype, "content", 2);
461
- __decorateClass([
462
- state()
463
- ], _TerraCombobox.prototype, "isExpanded", 2);
464
- __decorateClass([
465
- state()
466
- ], _TerraCombobox.prototype, "query", 2);
467
- __decorateClass([
468
- state()
469
- ], _TerraCombobox.prototype, "searchResults", 2);
470
- __decorateClass([
471
- watch("content")
472
- ], _TerraCombobox.prototype, "contentChanged", 1);
473
- var TerraCombobox = _TerraCombobox;
474
-
475
- export {
476
- TerraCombobox
477
- };
@@ -1,180 +0,0 @@
1
- import {
2
- isValidDate
3
- } from "./chunk.OIDMX5LU.js";
4
- import {
5
- date_range_slider_styles_default
6
- } from "./chunk.62YHGVQN.js";
7
- import {
8
- mergeTooltips
9
- } from "./chunk.KW4TJM4C.js";
10
- import {
11
- watch
12
- } from "./chunk.SK7IZCKP.js";
13
- import {
14
- TerraElement,
15
- component_styles_default
16
- } from "./chunk.7QKG7IRI.js";
17
- import {
18
- __decorateClass
19
- } from "./chunk.TVFCHGU3.js";
20
-
21
- // src/components/date-range-slider/date-range-slider.component.ts
22
- import { property, query } from "lit/decorators.js";
23
- import { html } from "lit";
24
- import noUiSlider, {
25
- PipsMode
26
- } from "nouislider";
27
- import { format } from "date-fns";
28
- var TerraDateRangeSlider = class extends TerraElement {
29
- constructor() {
30
- super(...arguments);
31
- this.timeScale = "daily";
32
- this.disabled = false;
33
- this.hasPips = true;
34
- }
35
- updateSlider() {
36
- this.renderSlider();
37
- }
38
- disabledChanged() {
39
- var _a, _b, _c, _d;
40
- this.disabled ? (_b = (_a = this.slider) == null ? void 0 : _a.noUiSlider) == null ? void 0 : _b.disable() : (_d = (_c = this.slider) == null ? void 0 : _c.noUiSlider) == null ? void 0 : _d.enable();
41
- }
42
- firstUpdated() {
43
- this.renderSlider();
44
- }
45
- renderSlider() {
46
- var _a;
47
- if (!this.slider) {
48
- return;
49
- }
50
- (_a = this.slider.noUiSlider) == null ? void 0 : _a.destroy();
51
- if (!isValidDate(this.minDate) || !isValidDate(this.maxDate)) {
52
- this.renderEmptySlider();
53
- this.minDate && !isValidDate(this.minDate) && console.error("Invalid min date provided");
54
- this.maxDate && !isValidDate(this.maxDate) && console.error("Invalid max date provided");
55
- return;
56
- }
57
- const minDate = new Date(this.minDate);
58
- const maxDate = new Date(this.maxDate);
59
- const startDate = new Date(
60
- isValidDate(this.startDate) ? this.startDate : this.minDate
61
- );
62
- const endDate = new Date(
63
- isValidDate(this.endDate) ? this.endDate : this.maxDate
64
- );
65
- minDate.setUTCHours(0, 0, 0, 0);
66
- startDate.setUTCHours(0, 0, 0, 0);
67
- maxDate.setUTCHours(23, 59, 59, 999);
68
- endDate.setUTCHours(23, 59, 59, 999);
69
- const sliderOptions = {
70
- range: {
71
- // convert to milliseconds to define a range
72
- min: minDate.getTime(),
73
- max: maxDate.getTime()
74
- },
75
- behaviour: "drag",
76
- step: this._getStep(),
77
- start: [startDate.getTime(), endDate.getTime()],
78
- // defaults to either the given start/end dates or the full date range (min/max date)
79
- tooltips: [true, true],
80
- // for each handle, choose whether to show a tooltip
81
- connect: true,
82
- // whether to connect the handles with a colorized bar
83
- pips: {
84
- mode: PipsMode.Range,
85
- density: -1,
86
- format: this._getSliderFormatter()
87
- },
88
- format: this._getSliderFormatter()
89
- };
90
- noUiSlider.create(this.slider, sliderOptions);
91
- mergeTooltips(this.slider);
92
- this.slider.noUiSlider.on("change", (values) => {
93
- this.emit("terra-date-range-change", {
94
- detail: {
95
- startDate: this._formatDate(values[0]),
96
- endDate: this._formatDate(values[1])
97
- }
98
- });
99
- });
100
- }
101
- renderEmptySlider() {
102
- noUiSlider.create(this.slider, {
103
- start: [0, 0],
104
- range: {
105
- min: 0,
106
- max: 0
107
- }
108
- });
109
- }
110
- _getStep() {
111
- const oneMinuteMillis = 60 * 1e3;
112
- const oneHourMillis = 60 * oneMinuteMillis;
113
- const oneDayMillis = 24 * oneHourMillis;
114
- switch (this.timeScale) {
115
- case "half-hourly":
116
- return 30 * oneMinuteMillis;
117
- case "hourly":
118
- return oneHourMillis;
119
- default:
120
- return oneDayMillis;
121
- }
122
- }
123
- _getSliderFormatter() {
124
- return {
125
- to: (value) => {
126
- return this._formatDate(value);
127
- },
128
- from: (value) => {
129
- return Number(value);
130
- }
131
- };
132
- }
133
- _formatDate(date) {
134
- const dateFormat = this.timeScale === "daily" ? "yyyy-MM-dd" : "yyyy-MM-dd HH:mm";
135
- return format(new Date(date).toUTCString(), dateFormat);
136
- }
137
- render() {
138
- const containerClass = "container" + this.hasPips ? " hasPips" : "";
139
- return html`
140
- <div class="${containerClass}">
141
- <div part="slider"></div>
142
- </div>
143
- `;
144
- }
145
- };
146
- TerraDateRangeSlider.styles = [component_styles_default, date_range_slider_styles_default];
147
- __decorateClass([
148
- query('[part~="slider"]')
149
- ], TerraDateRangeSlider.prototype, "slider", 2);
150
- __decorateClass([
151
- property({ attribute: "time-scale" })
152
- ], TerraDateRangeSlider.prototype, "timeScale", 2);
153
- __decorateClass([
154
- property({ attribute: "min-date" })
155
- ], TerraDateRangeSlider.prototype, "minDate", 2);
156
- __decorateClass([
157
- property({ attribute: "max-date" })
158
- ], TerraDateRangeSlider.prototype, "maxDate", 2);
159
- __decorateClass([
160
- property({ attribute: "start-date" })
161
- ], TerraDateRangeSlider.prototype, "startDate", 2);
162
- __decorateClass([
163
- property({ attribute: "end-date" })
164
- ], TerraDateRangeSlider.prototype, "endDate", 2);
165
- __decorateClass([
166
- property({ type: Boolean, reflect: true })
167
- ], TerraDateRangeSlider.prototype, "disabled", 2);
168
- __decorateClass([
169
- property({ type: Boolean, reflect: true, attribute: "has-pips" })
170
- ], TerraDateRangeSlider.prototype, "hasPips", 2);
171
- __decorateClass([
172
- watch(["startDate", "endDate", "minDate", "maxDate"])
173
- ], TerraDateRangeSlider.prototype, "updateSlider", 1);
174
- __decorateClass([
175
- watch("disabled")
176
- ], TerraDateRangeSlider.prototype, "disabledChanged", 1);
177
-
178
- export {
179
- TerraDateRangeSlider
180
- };
@@ -1,53 +0,0 @@
1
- import {
2
- getRandomIntInclusive
3
- } from "./chunk.7PAVW6KC.js";
4
- import {
5
- skeleton_styles_default
6
- } from "./chunk.FBOXM56P.js";
7
- import {
8
- TerraElement,
9
- component_styles_default
10
- } from "./chunk.7QKG7IRI.js";
11
- import {
12
- __decorateClass
13
- } from "./chunk.TVFCHGU3.js";
14
-
15
- // src/components/skeleton/skeleton.component.ts
16
- import { html } from "lit";
17
- import { property } from "lit/decorators.js";
18
- import { SlSkeleton } from "@shoelace-style/shoelace";
19
- var TerraSkeleton = class extends TerraElement {
20
- constructor() {
21
- super(...arguments);
22
- this.rows = 1;
23
- this.effect = "pulse";
24
- this.variableWidths = true;
25
- }
26
- render() {
27
- return html`
28
- ${new Array(parseInt(this.rows.toString())).fill(0).map(
29
- () => html`<sl-skeleton
30
- effect=${this.effect}
31
- style=${this.variableWidths ? `width: ${getRandomIntInclusive(60, 100)}%` : ""}
32
- ></sl-skeleton>`
33
- )}
34
- `;
35
- }
36
- };
37
- TerraSkeleton.styles = [component_styles_default, skeleton_styles_default];
38
- TerraSkeleton.dependencies = {
39
- "sl-skeleton": SlSkeleton
40
- };
41
- __decorateClass([
42
- property()
43
- ], TerraSkeleton.prototype, "rows", 2);
44
- __decorateClass([
45
- property()
46
- ], TerraSkeleton.prototype, "effect", 2);
47
- __decorateClass([
48
- property({ type: Boolean, reflect: true })
49
- ], TerraSkeleton.prototype, "variableWidths", 2);
50
-
51
- export {
52
- TerraSkeleton
53
- };