@gen3/frontend 0.10.75 → 0.10.77

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 (264) hide show
  1. package/dist/cjs/index.js +19 -43
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts +0 -1
  4. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts.map +1 -1
  5. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js +3 -3
  6. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js.map +1 -1
  7. package/dist/dts/components/Buttons/UploadJSONButton.d.ts.map +1 -1
  8. package/dist/dts/components/Buttons/UploadJSONButton.js +12 -1
  9. package/dist/dts/components/Buttons/UploadJSONButton.js.map +1 -1
  10. package/dist/dts/components/Content/TextContent.d.ts +2 -1
  11. package/dist/dts/components/Content/TextContent.d.ts.map +1 -1
  12. package/dist/dts/components/Content/TextContent.js +8 -5
  13. package/dist/dts/components/Content/TextContent.js.map +1 -1
  14. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts +12 -8
  15. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts.map +1 -1
  16. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js +11 -17
  17. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js.map +1 -1
  18. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js +4 -18
  19. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js.map +1 -1
  20. package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
  21. package/dist/dts/components/Login/LoginProvidersPanel.js +8 -5
  22. package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
  23. package/dist/dts/components/MessageCards/ErrorCard.js +1 -1
  24. package/dist/dts/components/MessageCards/ErrorCard.js.map +1 -1
  25. package/dist/dts/components/MessageCards/WarningCard.js +1 -1
  26. package/dist/dts/components/MessageCards/WarningCard.js.map +1 -1
  27. package/dist/dts/components/MessagePanel.d.ts.map +1 -1
  28. package/dist/dts/components/MessagePanel.js +1 -1
  29. package/dist/dts/components/MessagePanel.js.map +1 -1
  30. package/dist/dts/components/Providers/Gen3Provider.d.ts +2 -3
  31. package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
  32. package/dist/dts/components/Providers/Gen3Provider.js +4 -8
  33. package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
  34. package/dist/dts/components/Providers/ResourceMonitor.d.ts +1 -1
  35. package/dist/dts/components/Providers/ResourceMonitor.d.ts.map +1 -1
  36. package/dist/dts/components/Providers/ResourceMonitor.js +131 -48
  37. package/dist/dts/components/Providers/ResourceMonitor.js.map +1 -1
  38. package/dist/dts/components/charts/Charts.d.ts.map +1 -1
  39. package/dist/dts/components/charts/Charts.js +4 -3
  40. package/dist/dts/components/charts/Charts.js.map +1 -1
  41. package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
  42. package/dist/dts/components/charts/echarts/BarChart.js +4 -28
  43. package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
  44. package/dist/dts/components/facets/RangeFacet.d.ts.map +1 -1
  45. package/dist/dts/components/facets/RangeFacet.js +1 -3
  46. package/dist/dts/components/facets/RangeFacet.js.map +1 -1
  47. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +0 -1
  48. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
  49. package/dist/dts/features/CohortBuilder/CohortBuilder.js +1 -13
  50. package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
  51. package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +1 -0
  52. package/dist/dts/features/CohortBuilder/CohortManager.js +17 -0
  53. package/dist/dts/features/CohortBuilder/CohortManager.js.map +1 -0
  54. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
  55. package/dist/dts/features/CohortBuilder/CohortPanel.js +2 -3
  56. package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
  57. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +3 -0
  58. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -0
  59. package/dist/dts/features/CohortBuilder/CohortSelector.js +18 -0
  60. package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -0
  61. package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionSection.d.ts → QueryExpressionSection.d.ts} +4 -1
  62. package/dist/dts/features/CohortBuilder/QueryExpressionSection.d.ts.map +1 -0
  63. package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionSection.js → QueryExpressionSection.js} +28 -36
  64. package/dist/dts/features/CohortBuilder/QueryExpressionSection.js.map +1 -0
  65. package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.d.ts.map +1 -0
  66. package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.js.map +1 -0
  67. package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentation.d.ts → QueryRepresentation.d.ts} +1 -1
  68. package/dist/dts/features/CohortBuilder/QueryRepresentation.d.ts.map +1 -0
  69. package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentation.js → QueryRepresentation.js} +30 -23
  70. package/dist/dts/features/CohortBuilder/QueryRepresentation.js.map +1 -0
  71. package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.d.ts.map +1 -0
  72. package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.js.map +1 -0
  73. package/dist/dts/features/CohortBuilder/hooks.d.ts +0 -1
  74. package/dist/dts/features/CohortBuilder/hooks.d.ts.map +1 -1
  75. package/dist/dts/features/CohortBuilder/hooks.js +1 -52
  76. package/dist/dts/features/CohortBuilder/hooks.js.map +1 -1
  77. package/dist/dts/features/CohortBuilder/style.d.ts +0 -6
  78. package/dist/dts/features/CohortBuilder/style.d.ts.map +1 -1
  79. package/dist/dts/features/CohortBuilder/style.js +0 -11
  80. package/dist/dts/features/CohortBuilder/style.js.map +1 -1
  81. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
  82. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +4 -6
  83. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
  84. package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.d.ts.map +1 -1
  85. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
  86. package/dist/dts/features/CohortDiscovery/IndexPanel.js +3 -5
  87. package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
  88. package/dist/dts/features/CohortDiscovery/appApi.d.ts +0 -2
  89. package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
  90. package/dist/dts/features/CohortDiscovery/appApi.js +0 -2
  91. package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
  92. package/dist/dts/features/CohortDiscovery/hooks.d.ts +0 -10
  93. package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
  94. package/dist/dts/features/CohortDiscovery/hooks.js +1 -38
  95. package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
  96. package/dist/dts/features/CohortDiversity/diversityApi.d.ts +12 -12
  97. package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts +1 -1
  98. package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts.map +1 -1
  99. package/dist/dts/features/Crosswalk/CrosswalkPanel.js +11 -11
  100. package/dist/dts/features/Crosswalk/CrosswalkPanel.js.map +1 -1
  101. package/dist/dts/features/Crosswalk/types.d.ts +1 -0
  102. package/dist/dts/features/Crosswalk/types.d.ts.map +1 -1
  103. package/dist/dts/features/DataLibrary/QueryDetails.d.ts.map +1 -1
  104. package/dist/dts/features/DataLibrary/QueryDetails.js +2 -2
  105. package/dist/dts/features/DataLibrary/QueryDetails.js.map +1 -1
  106. package/dist/dts/features/Dictionary/Dictionary.d.ts.map +1 -1
  107. package/dist/dts/features/Dictionary/Dictionary.js +1 -0
  108. package/dist/dts/features/Dictionary/Dictionary.js.map +1 -1
  109. package/dist/dts/features/Dictionary/index.d.ts +3 -1
  110. package/dist/dts/features/Dictionary/index.d.ts.map +1 -1
  111. package/dist/dts/features/Dictionary/index.js +3 -1
  112. package/dist/dts/features/Dictionary/index.js.map +1 -1
  113. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts +7 -0
  114. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts.map +1 -0
  115. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js +39 -0
  116. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js.map +1 -0
  117. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts +9 -0
  118. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts.map +1 -0
  119. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js +113 -0
  120. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js.map +1 -0
  121. package/dist/dts/features/Dictionary/metadata/registerApp.d.ts +3 -0
  122. package/dist/dts/features/Dictionary/metadata/registerApp.d.ts.map +1 -0
  123. package/dist/dts/features/Dictionary/metadata/registerApp.js +13 -0
  124. package/dist/dts/features/Dictionary/metadata/registerApp.js.map +1 -0
  125. package/dist/dts/features/Dictionary/metadata/types.d.ts +17 -0
  126. package/dist/dts/features/Dictionary/metadata/types.d.ts.map +1 -0
  127. package/dist/dts/features/Dictionary/metadata/types.js +2 -0
  128. package/dist/dts/features/Dictionary/metadata/types.js.map +1 -0
  129. package/dist/dts/features/Navigation/TopBar.d.ts.map +1 -1
  130. package/dist/dts/features/Navigation/TopBar.js +4 -3
  131. package/dist/dts/features/Navigation/TopBar.js.map +1 -1
  132. package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.d.ts.map +1 -1
  133. package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js +1 -1
  134. package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js.map +1 -1
  135. package/dist/dts/features/Workspace/NotebookCard.d.ts.map +1 -1
  136. package/dist/dts/features/Workspace/NotebookCard.js +30 -8
  137. package/dist/dts/features/Workspace/NotebookCard.js.map +1 -1
  138. package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.d.ts.map +1 -1
  139. package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js +3 -4
  140. package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js.map +1 -1
  141. package/dist/dts/features/Workspace/StatusAndControls.d.ts.map +1 -1
  142. package/dist/dts/features/Workspace/StatusAndControls.js +3 -4
  143. package/dist/dts/features/Workspace/StatusAndControls.js.map +1 -1
  144. package/dist/dts/features/Workspace/Workspace.d.ts.map +1 -1
  145. package/dist/dts/features/Workspace/Workspace.js +0 -1
  146. package/dist/dts/features/Workspace/Workspace.js.map +1 -1
  147. package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.d.ts.map +1 -1
  148. package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js +4 -1
  149. package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js.map +1 -1
  150. package/dist/dts/features/Workspace/WorkspacePanel.d.ts.map +1 -1
  151. package/dist/dts/features/Workspace/WorkspacePanel.js +10 -9
  152. package/dist/dts/features/Workspace/WorkspacePanel.js.map +1 -1
  153. package/dist/dts/features/Workspace/WorkspaceProvider.d.ts.map +1 -1
  154. package/dist/dts/features/Workspace/WorkspaceProvider.js +1 -0
  155. package/dist/dts/features/Workspace/WorkspaceProvider.js.map +1 -1
  156. package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts +2 -1
  157. package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts.map +1 -1
  158. package/dist/dts/features/Workspace/WorkspaceStatusProvider.js +56 -27
  159. package/dist/dts/features/Workspace/WorkspaceStatusProvider.js.map +1 -1
  160. package/dist/dts/features/Workspace/types.d.ts +10 -0
  161. package/dist/dts/features/Workspace/types.d.ts.map +1 -1
  162. package/dist/dts/features/Workspace/types.js +10 -1
  163. package/dist/dts/features/Workspace/types.js.map +1 -1
  164. package/dist/dts/index.d.ts +3 -2
  165. package/dist/dts/index.d.ts.map +1 -1
  166. package/dist/dts/index.js +3 -2
  167. package/dist/dts/index.js.map +1 -1
  168. package/dist/dts/lib/session/session.d.ts.map +1 -1
  169. package/dist/dts/lib/session/session.js +7 -7
  170. package/dist/dts/lib/session/session.js.map +1 -1
  171. package/dist/dts/pages/Crosswalk/data.d.ts +2 -3
  172. package/dist/dts/pages/Crosswalk/data.d.ts.map +1 -1
  173. package/dist/dts/pages/Crosswalk/data.js +27 -11
  174. package/dist/dts/pages/Crosswalk/data.js.map +1 -1
  175. package/dist/dts/pages/Theme/index.d.ts.map +1 -1
  176. package/dist/dts/utils/date.d.ts +0 -6
  177. package/dist/dts/utils/date.d.ts.map +1 -1
  178. package/dist/dts/utils/date.js +0 -12
  179. package/dist/dts/utils/date.js.map +1 -1
  180. package/dist/dts/utils/index.d.ts +1 -0
  181. package/dist/dts/utils/index.d.ts.map +1 -1
  182. package/dist/dts/utils/index.js +1 -0
  183. package/dist/dts/utils/index.js.map +1 -1
  184. package/dist/dts/utils/time.d.ts +15 -0
  185. package/dist/dts/utils/time.d.ts.map +1 -1
  186. package/dist/dts/utils/time.js +105 -0
  187. package/dist/dts/utils/time.js.map +1 -1
  188. package/dist/esm/index.js +19 -43
  189. package/dist/esm/index.js.map +1 -1
  190. package/dist/index.d.ts +46 -15
  191. package/dist/tsconfig.tsbuildinfo +1 -1
  192. package/package.json +3 -3
  193. package/dist/dts/components/CountButton/CountButton.d.ts +0 -19
  194. package/dist/dts/components/CountButton/CountButton.d.ts.map +0 -1
  195. package/dist/dts/components/CountButton/CountButton.js +0 -18
  196. package/dist/dts/components/CountButton/CountButton.js.map +0 -1
  197. package/dist/dts/components/ErrorMessage.d.ts +0 -6
  198. package/dist/dts/components/ErrorMessage.d.ts.map +0 -1
  199. package/dist/dts/components/ErrorMessage.js +0 -8
  200. package/dist/dts/components/ErrorMessage.js.map +0 -1
  201. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +0 -10
  202. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +0 -1
  203. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +0 -53
  204. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +0 -1
  205. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +0 -7
  206. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +0 -1
  207. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +0 -38
  208. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +0 -1
  209. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +0 -13
  210. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +0 -1
  211. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +0 -56
  212. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +0 -1
  213. package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts +0 -4
  214. package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts.map +0 -1
  215. package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js +0 -22
  216. package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js.map +0 -1
  217. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +0 -1
  218. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +0 -1
  219. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +0 -320
  220. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +0 -1
  221. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +0 -29
  222. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +0 -1
  223. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +0 -85
  224. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +0 -1
  225. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts +0 -6
  226. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts.map +0 -1
  227. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js +0 -55
  228. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js.map +0 -1
  229. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts +0 -13
  230. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts.map +0 -1
  231. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js +0 -41
  232. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js.map +0 -1
  233. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.d.ts.map +0 -1
  234. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +0 -1
  235. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.d.ts.map +0 -1
  236. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.js.map +0 -1
  237. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.d.ts.map +0 -1
  238. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +0 -1
  239. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.d.ts.map +0 -1
  240. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.js.map +0 -1
  241. package/dist/dts/features/CohortBuilder/cohortUtils.d.ts +0 -4
  242. package/dist/dts/features/CohortBuilder/cohortUtils.d.ts.map +0 -1
  243. package/dist/dts/features/CohortBuilder/cohortUtils.js +0 -23
  244. package/dist/dts/features/CohortBuilder/cohortUtils.js.map +0 -1
  245. package/dist/dts/features/CohortDiscovery/CohortManager.d.ts.map +0 -1
  246. package/dist/dts/features/CohortDiscovery/CohortManager.js +0 -57
  247. package/dist/dts/features/CohortDiscovery/CohortManager.js.map +0 -1
  248. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -23
  249. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +0 -1
  250. package/dist/dts/features/CohortDiscovery/CohortSelectors.js +0 -35
  251. package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +0 -1
  252. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -91
  253. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +0 -1
  254. package/dist/dts/features/CohortDiscovery/CohortSlice.js +0 -93
  255. package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +0 -1
  256. package/dist/dts/utils/icons.d.ts +0 -18
  257. package/dist/dts/utils/icons.d.ts.map +0 -1
  258. package/dist/dts/utils/icons.js +0 -18
  259. package/dist/dts/utils/icons.js.map +0 -1
  260. /package/dist/dts/features/{CohortDiscovery → CohortBuilder}/CohortManager.d.ts +0 -0
  261. /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionsExpandedContext.d.ts → QueryExpressionsExpandedContext.d.ts} +0 -0
  262. /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionsExpandedContext.js → QueryExpressionsExpandedContext.js} +0 -0
  263. /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentationLabel.d.ts → QueryRepresentationLabel.d.ts} +0 -0
  264. /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentationLabel.js → QueryRepresentationLabel.js} +0 -0
@@ -1,3 +1,39 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
1
37
  /**
2
38
  * @returns {number} time in seconds since Unix epoch.
3
39
  */
@@ -12,4 +48,73 @@ export function getCurrentUnixTimestamp() {
12
48
  export function unixTimeToString(unixTime) {
13
49
  return new Date(unixTime * 1000).toLocaleString();
14
50
  }
51
+ /**
52
+ * Converts a given duration in minutes to its equivalent in milliseconds.
53
+ *
54
+ * @param {number} minutes - The time duration in minutes to be converted.
55
+ * @returns {number} The equivalent duration in milliseconds.
56
+ */
57
+ export var convertMinutesToMilliseconds = function (minutes) {
58
+ return minutes * 60 * 1000;
59
+ };
60
+ /**
61
+ * Converts a given time in seconds to milliseconds.
62
+ *
63
+ * @param {number} seconds - The time in seconds to be converted.
64
+ * @returns {number} The equivalent time in milliseconds.
65
+ */
66
+ export var convertSecondsToMilliseconds = function (seconds) { return seconds * 1000; };
67
+ // Using the built-in Date object
68
+ var getCurrentTimestamp = function () {
69
+ return Date.now(); // Returns milliseconds since Unix epoch
70
+ };
71
+ // Get a readable timestamp for logging/display
72
+ var getFormattedTimestamp = function () {
73
+ return new Date().toISOString();
74
+ };
75
+ // Compare two timestamps and get difference in milliseconds
76
+ var getTimeDifferenceMs = function (startTime, endTime) {
77
+ if (endTime === void 0) { endTime = Date.now(); }
78
+ return endTime - startTime;
79
+ };
80
+ // Check if time difference is greater than specified minutes
81
+ var isTimeGreaterThan = function (startTime, minutes) {
82
+ var diffMs = getTimeDifferenceMs(startTime);
83
+ var diffMinutes = diffMs / (1000 * 60);
84
+ return diffMinutes > minutes;
85
+ };
86
+ // Get human-readable duration
87
+ var getReadableDuration = function (milliseconds) {
88
+ var seconds = Math.floor(milliseconds / 1000);
89
+ var minutes = Math.floor(seconds / 60);
90
+ var hours = Math.floor(minutes / 60);
91
+ if (hours > 0) {
92
+ return "".concat(hours, "h ").concat(minutes % 60, "m ").concat(seconds % 60, "s");
93
+ }
94
+ if (minutes > 0) {
95
+ return "".concat(minutes, "m ").concat(seconds % 60, "s");
96
+ }
97
+ return "".concat(seconds, "s");
98
+ };
99
+ // Example usage:
100
+ var measureExecutionTime = function (func) { return __awaiter(void 0, void 0, void 0, function () {
101
+ var startTime, duration;
102
+ return __generator(this, function (_a) {
103
+ switch (_a.label) {
104
+ case 0:
105
+ startTime = getCurrentTimestamp();
106
+ return [4 /*yield*/, func()];
107
+ case 1:
108
+ _a.sent();
109
+ duration = getTimeDifferenceMs(startTime);
110
+ return [2 /*return*/, getReadableDuration(duration)];
111
+ }
112
+ });
113
+ }); };
114
+ // Performance monitoring with high-resolution timestamps
115
+ var getHighResolutionTimestamp = function () {
116
+ return performance.now(); // More precise than Date.now() for performance measurements
117
+ };
118
+ var SecondsToMilliseconds = function (seconds) { return seconds * 1000; };
119
+ export var MinutesToMilliseconds = function (minutes) { return minutes * 60 * 1000; };
15
120
  //# sourceMappingURL=time.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"time.js","sourceRoot":"","sources":["../../../src/utils/time.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;AACvC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAAgB;IAC/C,OAAO,IAAI,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"time.js","sourceRoot":"","sources":["../../../src/utils/time.ts"],"names":[],"mappings":"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"}
package/dist/esm/index.js CHANGED
@@ -489,12 +489,6 @@ const extractObjectKey = (obj)=>{
489
489
  return keys.length > 0 ? keys[0] : undefined;
490
490
  };
491
491
 
492
- var NotificationStatus;
493
- (function(NotificationStatus) {
494
- NotificationStatus[NotificationStatus["Info"] = 0] = "Info";
495
- NotificationStatus[NotificationStatus["Warn"] = 1] = "Warn";
496
- NotificationStatus[NotificationStatus["Error"] = 2] = "Error";
497
- })(NotificationStatus || (NotificationStatus = {}));
498
492
  const notifyUser = (title, message, status = 0)=>{
499
493
  const NotificationMap = {
500
494
  [0]: 'utility.1',
@@ -839,12 +833,12 @@ const TooltipStyle = {
839
833
  arrow: 'bg-base-darker '
840
834
  };
841
835
 
842
- var LoginButtonVisibility;
843
- (function(LoginButtonVisibility) {
836
+ var LoginButtonVisibility = /*#__PURE__*/ function(LoginButtonVisibility) {
844
837
  LoginButtonVisibility["Hidden"] = "hide";
845
838
  LoginButtonVisibility["Visible"] = "visible";
846
839
  LoginButtonVisibility["LogoutOnly"] = "logoutOnly";
847
- })(LoginButtonVisibility || (LoginButtonVisibility = {}));
840
+ return LoginButtonVisibility;
841
+ }({});
848
842
 
849
843
  /**
850
844
  * Merges default and user values for Tailwind classnames.
@@ -1174,8 +1168,7 @@ function hashCode(str) {
1174
1168
  return hashString(str);
1175
1169
  }
1176
1170
 
1177
- var ContentType;
1178
- (function(ContentType) {
1171
+ var ContentType = /*#__PURE__*/ function(ContentType) {
1179
1172
  ContentType["Text"] = "text";
1180
1173
  ContentType["TextArray"] = "textArray";
1181
1174
  ContentType["Html"] = "html";
@@ -1183,7 +1176,8 @@ var ContentType;
1183
1176
  ContentType["TextWithEmail"] = "textWithEmail";
1184
1177
  ContentType["TextWithLink"] = "textWithLink";
1185
1178
  ContentType["Link"] = "link";
1186
- })(ContentType || (ContentType = {}));
1179
+ return ContentType;
1180
+ }({});
1187
1181
  const TextContent = ({ text, className = 'inline text-base-contrast-min font-medium margin-block-start-1 margin-block-end-1', type = "text", email = undefined, link = undefined, linkText = undefined })=>{
1188
1182
  switch(type){
1189
1183
  case "html":
@@ -2338,7 +2332,7 @@ const Charts = ({ charts, data, counts, isSuccess, numCols = DEFAULT_COLS, style
2338
2332
  ]
2339
2333
  });
2340
2334
  };
2341
- const dataKeys = Object.keys(data[field][0]);
2335
+ const dataKeys = data[field].length > 0 ? Object.keys(data[field][0]) : [];
2342
2336
  const chartTitle = charts[field].title ?? fieldNameToTitle(field);
2343
2337
  const moreThanMaxRows = data?.[field] && data[field].length > MAX_LEGEND_ROWS;
2344
2338
  return /*#__PURE__*/ jsx(Grid.Col, {
@@ -2417,7 +2411,7 @@ const Charts = ({ charts, data, counts, isSuccess, numCols = DEFAULT_COLS, style
2417
2411
  };
2418
2412
  return /*#__PURE__*/ jsx(Grid, {
2419
2413
  className: "w-full",
2420
- children: data && Object.keys(charts).map(chartCard)
2414
+ children: data && Object.keys(charts)?.map(chartCard)
2421
2415
  });
2422
2416
  };
2423
2417
 
@@ -3685,14 +3679,14 @@ const isSearchKVArray = (obj)=>{
3685
3679
  return obj && Array.isArray(obj) && obj.every(isSearchKV);
3686
3680
  };
3687
3681
  const accessibleFieldName = '__accessible';
3688
- var AccessLevel;
3689
- (function(AccessLevel) {
3682
+ var AccessLevel = /*#__PURE__*/ function(AccessLevel) {
3690
3683
  AccessLevel[AccessLevel["ACCESSIBLE"] = 1] = "ACCESSIBLE";
3691
3684
  AccessLevel[AccessLevel["UNACCESSIBLE"] = 2] = "UNACCESSIBLE";
3692
3685
  AccessLevel[AccessLevel["PENDING"] = 3] = "PENDING";
3693
3686
  AccessLevel[AccessLevel["NOT_AVAILABLE"] = 4] = "NOT_AVAILABLE";
3694
3687
  AccessLevel[AccessLevel["OTHER"] = 5] = "OTHER";
3695
- })(AccessLevel || (AccessLevel = {}));
3688
+ return AccessLevel;
3689
+ }({});
3696
3690
 
3697
3691
  const DataAccessCellRenderer = ({ value })=>{
3698
3692
  if (value === AccessLevel.PENDING) {
@@ -5058,17 +5052,11 @@ const SearchFilters = ({ values, filter, filterState, setFilterState })=>{
5058
5052
  });
5059
5053
  };
5060
5054
 
5061
- var SearchCombination;
5062
- (function(SearchCombination) {
5055
+ var SearchCombination = /*#__PURE__*/ function(SearchCombination) {
5063
5056
  SearchCombination["and"] = "AND";
5064
5057
  SearchCombination["or"] = "OR";
5065
- })(SearchCombination || (SearchCombination = {}));
5066
- var AccessSortDirection;
5067
- (function(AccessSortDirection) {
5068
- AccessSortDirection["ASCENDING"] = "sort ascending";
5069
- AccessSortDirection["DESCENDING"] = "sort descending";
5070
- AccessSortDirection["NONE"] = "cancel sorting";
5071
- })(AccessSortDirection || (AccessSortDirection = {}));
5058
+ return SearchCombination;
5059
+ }({});
5072
5060
 
5073
5061
  const AdvancedSearch = ({ advSearchFilters, setAdvancedSearchFilters })=>{
5074
5062
  const [searchCombination, setSearchCombination] = useState(SearchCombination.and);
@@ -6889,7 +6877,6 @@ flex items-start justify-between items-center flex-nowrap bg-secondary px-1.5
6889
6877
  isFilterExpanded,
6890
6878
  toggleExpandFilter
6891
6879
  ]);
6892
- console.log('FacetControlsHeader: ', field, description, facetName, showSearch, showFlip, showClearSelection);
6893
6880
  return /*#__PURE__*/ jsxs(header.Panel, {
6894
6881
  children: [
6895
6882
  /*#__PURE__*/ jsxs("div", {
@@ -7678,16 +7665,12 @@ const RangeFacet = ({ field, hooks, valueLabel, description, facetName, minimum
7678
7665
  onChange: (value)=>{
7679
7666
  updateFilters(minMaxValue.from ?? minimum, value ? Number(value) : maximum);
7680
7667
  }
7681
- }),
7682
- /*#__PURE__*/ jsx("div", {
7683
- className: "bg-gray mt-4 border-1",
7684
- children: isSuccess && data && Object.values(data).length > 0 ? Object.values(data)[0] : '...'
7685
7668
  })
7686
7669
  ]
7687
7670
  }),
7688
7671
  /*#__PURE__*/ jsx(RangeSlider, {
7689
7672
  mt: "md",
7690
- color: "blue",
7673
+ color: "accent.4",
7691
7674
  thumbSize: 20,
7692
7675
  value: [
7693
7676
  minMaxValue.from ?? minimum,
@@ -10403,8 +10386,7 @@ const WorkspaceProvider = ({ children, config })=>{
10403
10386
  });
10404
10387
  };
10405
10388
 
10406
- var PayModelStatus;
10407
- (function(PayModelStatus) {
10389
+ var PayModelStatus = /*#__PURE__*/ function(PayModelStatus) {
10408
10390
  PayModelStatus["GETTING"] = "GETTING";
10409
10391
  PayModelStatus["INVALID"] = "INVALID";
10410
10392
  PayModelStatus["ERROR"] = "ERROR";
@@ -10412,7 +10394,8 @@ var PayModelStatus;
10412
10394
  PayModelStatus["OVER_LIMIT"] = "OVER_LIMIT";
10413
10395
  PayModelStatus["NOT_REQUIRED"] = "NOT_REQUIRED";
10414
10396
  PayModelStatus["VALID"] = "VALID";
10415
- })(PayModelStatus || (PayModelStatus = {}));
10397
+ return PayModelStatus;
10398
+ }({});
10416
10399
 
10417
10400
  const getWorkspaceErrorMessage = (error, defaultMessage)=>{
10418
10401
  if (isFetchBaseQueryError(error)) {
@@ -16061,12 +16044,6 @@ const UserDetailsPanel = ({ user, closePanel })=>{
16061
16044
  });
16062
16045
  };
16063
16046
 
16064
- var UserPanelMode;
16065
- (function(UserPanelMode) {
16066
- UserPanelMode[UserPanelMode["UserTable"] = 0] = "UserTable";
16067
- UserPanelMode[UserPanelMode["NewUserPanel"] = 1] = "NewUserPanel";
16068
- UserPanelMode[UserPanelMode["UserDetailPanel"] = 2] = "UserDetailPanel";
16069
- })(UserPanelMode || (UserPanelMode = {}));
16070
16047
  const NullUser = {
16071
16048
  id: '',
16072
16049
  tags: {
@@ -16943,7 +16920,6 @@ const ALLOWED_IMAGE_TYPES = [
16943
16920
  'image/png',
16944
16921
  'image/svg+xml'
16945
16922
  ];
16946
- const MAX_HISTORY = 50;
16947
16923
  const AnalysisCardEditor = ()=>{
16948
16924
  // Enhanced state management with history
16949
16925
  const [history, setHistory] = useState({
@@ -16974,7 +16950,7 @@ const AnalysisCardEditor = ()=>{
16974
16950
  past: [
16975
16951
  ...prev.past,
16976
16952
  prev.present
16977
- ].slice(-MAX_HISTORY),
16953
+ ].slice(-50),
16978
16954
  present: newPresent,
16979
16955
  future: []
16980
16956
  }));