iguazio.dashboard-react-controls 3.2.14 → 3.2.15

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 (651) hide show
  1. package/package.json +1 -1
  2. package/dist/components/ActionsMenu/ActionsMenu.d.ts +0 -18
  3. package/dist/components/ActionsMenu/ActionsMenu.d.ts.map +0 -1
  4. package/dist/components/ActionsMenu/ActionsMenu.mjs +0 -125
  5. package/dist/components/ActionsMenu/ActionsMenu.mjs.map +0 -1
  6. package/dist/components/Backdrop/Backdrop.d.ts +0 -14
  7. package/dist/components/Backdrop/Backdrop.d.ts.map +0 -1
  8. package/dist/components/Backdrop/Backdrop.mjs +0 -29
  9. package/dist/components/Backdrop/Backdrop.mjs.map +0 -1
  10. package/dist/components/BlockerSpy/BlockerSpy.d.ts +0 -12
  11. package/dist/components/BlockerSpy/BlockerSpy.d.ts.map +0 -1
  12. package/dist/components/BlockerSpy/BlockerSpy.mjs +0 -18
  13. package/dist/components/BlockerSpy/BlockerSpy.mjs.map +0 -1
  14. package/dist/components/Button/Button.d.ts +0 -28
  15. package/dist/components/Button/Button.d.ts.map +0 -1
  16. package/dist/components/Button/Button.mjs +0 -44
  17. package/dist/components/Button/Button.mjs.map +0 -1
  18. package/dist/components/Button/Button.stories.d.ts +0 -14
  19. package/dist/components/Button/Button.stories.d.ts.map +0 -1
  20. package/dist/components/ChipForm/ChipForm.d.ts +0 -25
  21. package/dist/components/ChipForm/ChipForm.d.ts.map +0 -1
  22. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +0 -33
  23. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +0 -1
  24. package/dist/components/ConfirmDialog/ConfirmDialog.mjs +0 -83
  25. package/dist/components/ConfirmDialog/ConfirmDialog.mjs.map +0 -1
  26. package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts +0 -8
  27. package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts.map +0 -1
  28. package/dist/components/CopyToClipboard/CopyToClipboard.d.ts +0 -18
  29. package/dist/components/CopyToClipboard/CopyToClipboard.d.ts.map +0 -1
  30. package/dist/components/CopyToClipboard/CopyToClipboard.mjs +0 -51
  31. package/dist/components/CopyToClipboard/CopyToClipboard.mjs.map +0 -1
  32. package/dist/components/ErrorMessage/ErrorMessage.d.ts +0 -12
  33. package/dist/components/ErrorMessage/ErrorMessage.d.ts.map +0 -1
  34. package/dist/components/ErrorMessage/ErrorMessage.mjs +0 -23
  35. package/dist/components/ErrorMessage/ErrorMessage.mjs.map +0 -1
  36. package/dist/components/FormCheckBox/FormCheckBox.d.ts +0 -21
  37. package/dist/components/FormCheckBox/FormCheckBox.d.ts.map +0 -1
  38. package/dist/components/FormCheckBox/FormCheckBox.mjs +0 -54
  39. package/dist/components/FormCheckBox/FormCheckBox.mjs.map +0 -1
  40. package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts +0 -7
  41. package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts.map +0 -1
  42. package/dist/components/FormChipCell/FormChip/FormChip.d.ts +0 -51
  43. package/dist/components/FormChipCell/FormChip/FormChip.d.ts.map +0 -1
  44. package/dist/components/FormChipCell/FormChip/FormChip.mjs +0 -89
  45. package/dist/components/FormChipCell/FormChip/FormChip.mjs.map +0 -1
  46. package/dist/components/FormChipCell/FormChipCell.d.ts +0 -51
  47. package/dist/components/FormChipCell/FormChipCell.d.ts.map +0 -1
  48. package/dist/components/FormChipCell/FormChipCell.mjs +0 -251
  49. package/dist/components/FormChipCell/FormChipCell.mjs.map +0 -1
  50. package/dist/components/FormChipCell/FormChipCellView.d.ts +0 -68
  51. package/dist/components/FormChipCell/FormChipCellView.d.ts.map +0 -1
  52. package/dist/components/FormChipCell/FormChipCellView.mjs +0 -190
  53. package/dist/components/FormChipCell/FormChipCellView.mjs.map +0 -1
  54. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts +0 -22
  55. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts.map +0 -1
  56. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.mjs +0 -72
  57. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.mjs.map +0 -1
  58. package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts +0 -39
  59. package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts.map +0 -1
  60. package/dist/components/FormChipCell/NewChipForm/NewChipForm.mjs +0 -285
  61. package/dist/components/FormChipCell/NewChipForm/NewChipForm.mjs.map +0 -1
  62. package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts +0 -16
  63. package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts.map +0 -1
  64. package/dist/components/FormChipCell/NewChipInput/NewChipInput.mjs +0 -36
  65. package/dist/components/FormChipCell/NewChipInput/NewChipInput.mjs.map +0 -1
  66. package/dist/components/FormChipCell/formChipCell.util.d.ts +0 -6
  67. package/dist/components/FormChipCell/formChipCell.util.d.ts.map +0 -1
  68. package/dist/components/FormChipCell/formChipCell.util.mjs +0 -24
  69. package/dist/components/FormChipCell/formChipCell.util.mjs.map +0 -1
  70. package/dist/components/FormCombobox/FormCombobox.d.ts +0 -56
  71. package/dist/components/FormCombobox/FormCombobox.d.ts.map +0 -1
  72. package/dist/components/FormCombobox/FormCombobox.mjs +0 -284
  73. package/dist/components/FormCombobox/FormCombobox.mjs.map +0 -1
  74. package/dist/components/FormCombobox/FormCombobox.stories.d.ts +0 -12
  75. package/dist/components/FormCombobox/FormCombobox.stories.d.ts.map +0 -1
  76. package/dist/components/FormInput/FormInput.d.ts +0 -3
  77. package/dist/components/FormInput/FormInput.d.ts.map +0 -1
  78. package/dist/components/FormInput/FormInput.mjs +0 -272
  79. package/dist/components/FormInput/FormInput.mjs.map +0 -1
  80. package/dist/components/FormInput/FormInput.stories.d.ts +0 -14
  81. package/dist/components/FormInput/FormInput.stories.d.ts.map +0 -1
  82. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts +0 -20
  83. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts.map +0 -1
  84. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.mjs +0 -61
  85. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.mjs.map +0 -1
  86. package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts +0 -49
  87. package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts.map +0 -1
  88. package/dist/components/FormKeyValueTable/FormKeyValueTable.mjs +0 -202
  89. package/dist/components/FormKeyValueTable/FormKeyValueTable.mjs.map +0 -1
  90. package/dist/components/FormOnChange/FormOnChange.d.ts +0 -12
  91. package/dist/components/FormOnChange/FormOnChange.d.ts.map +0 -1
  92. package/dist/components/FormOnChange/FormOnChange.mjs +0 -33
  93. package/dist/components/FormOnChange/FormOnChange.mjs.map +0 -1
  94. package/dist/components/FormRadio/FormRadio.d.ts +0 -19
  95. package/dist/components/FormRadio/FormRadio.d.ts.map +0 -1
  96. package/dist/components/FormRadio/FormRadio.mjs +0 -57
  97. package/dist/components/FormRadio/FormRadio.mjs.map +0 -1
  98. package/dist/components/FormRadio/FormRadio.stories.d.ts +0 -7
  99. package/dist/components/FormRadio/FormRadio.stories.d.ts.map +0 -1
  100. package/dist/components/FormSelect/FormSelect.d.ts +0 -45
  101. package/dist/components/FormSelect/FormSelect.d.ts.map +0 -1
  102. package/dist/components/FormSelect/FormSelect.mjs +0 -259
  103. package/dist/components/FormSelect/FormSelect.mjs.map +0 -1
  104. package/dist/components/FormSelect/FormSelect.stories.d.ts +0 -10
  105. package/dist/components/FormSelect/FormSelect.stories.d.ts.map +0 -1
  106. package/dist/components/FormTextarea/FormTextarea.d.ts +0 -40
  107. package/dist/components/FormTextarea/FormTextarea.d.ts.map +0 -1
  108. package/dist/components/FormTextarea/FormTextarea.mjs +0 -122
  109. package/dist/components/FormTextarea/FormTextarea.mjs.map +0 -1
  110. package/dist/components/FormTextarea/FormTextarea.stories.d.ts +0 -9
  111. package/dist/components/FormTextarea/FormTextarea.stories.d.ts.map +0 -1
  112. package/dist/components/FormToggle/FormToggle.d.ts +0 -24
  113. package/dist/components/FormToggle/FormToggle.d.ts.map +0 -1
  114. package/dist/components/FormToggle/FormToggle.mjs +0 -71
  115. package/dist/components/FormToggle/FormToggle.mjs.map +0 -1
  116. package/dist/components/LoadButton/LoadButton.d.ts +0 -16
  117. package/dist/components/LoadButton/LoadButton.d.ts.map +0 -1
  118. package/dist/components/LoadButton/LoadButton.mjs +0 -22
  119. package/dist/components/LoadButton/LoadButton.mjs.map +0 -1
  120. package/dist/components/LoadButton/LoadButton.stories.d.ts +0 -10
  121. package/dist/components/LoadButton/LoadButton.stories.d.ts.map +0 -1
  122. package/dist/components/Loader/Loader.d.ts +0 -3
  123. package/dist/components/Loader/Loader.d.ts.map +0 -1
  124. package/dist/components/Loader/Loader.mjs +0 -39
  125. package/dist/components/Loader/Loader.mjs.map +0 -1
  126. package/dist/components/Loader/LoaderForSuspenseFallback.d.ts +0 -3
  127. package/dist/components/Loader/LoaderForSuspenseFallback.d.ts.map +0 -1
  128. package/dist/components/Loader/LoaderForSuspenseFallback.mjs +0 -13
  129. package/dist/components/Loader/LoaderForSuspenseFallback.mjs.map +0 -1
  130. package/dist/components/Modal/Modal.d.ts +0 -29
  131. package/dist/components/Modal/Modal.d.ts.map +0 -1
  132. package/dist/components/Modal/Modal.mjs +0 -71
  133. package/dist/components/Modal/Modal.mjs.map +0 -1
  134. package/dist/components/PopUpDialog/PopUpDialog.d.ts +0 -31
  135. package/dist/components/PopUpDialog/PopUpDialog.d.ts.map +0 -1
  136. package/dist/components/PopUpDialog/PopUpDialog.mjs +0 -92
  137. package/dist/components/PopUpDialog/PopUpDialog.mjs.map +0 -1
  138. package/dist/components/ReadOnlyChips/ReadOnlyChips.d.ts +0 -22
  139. package/dist/components/ReadOnlyChips/ReadOnlyChips.d.ts.map +0 -1
  140. package/dist/components/ReadOnlyChips/ReadOnlyChips.mjs +0 -41
  141. package/dist/components/ReadOnlyChips/ReadOnlyChips.mjs.map +0 -1
  142. package/dist/components/RoundedIcon/RoundedIcon.d.ts +0 -23
  143. package/dist/components/RoundedIcon/RoundedIcon.d.ts.map +0 -1
  144. package/dist/components/RoundedIcon/RoundedIcon.mjs +0 -40
  145. package/dist/components/RoundedIcon/RoundedIcon.mjs.map +0 -1
  146. package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts +0 -9
  147. package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts.map +0 -1
  148. package/dist/components/TableCell/TableCell.d.ts +0 -28
  149. package/dist/components/TableCell/TableCell.d.ts.map +0 -1
  150. package/dist/components/TableCell/TableCell.mjs +0 -111
  151. package/dist/components/TableCell/TableCell.mjs.map +0 -1
  152. package/dist/components/TabsSlider/TabsSlider.d.ts +0 -20
  153. package/dist/components/TabsSlider/TabsSlider.d.ts.map +0 -1
  154. package/dist/components/TabsSlider/TabsSlider.mjs +0 -131
  155. package/dist/components/TabsSlider/TabsSlider.mjs.map +0 -1
  156. package/dist/components/Tip/Tip.d.ts +0 -14
  157. package/dist/components/Tip/Tip.d.ts.map +0 -1
  158. package/dist/components/Tip/Tip.mjs +0 -67
  159. package/dist/components/Tip/Tip.mjs.map +0 -1
  160. package/dist/components/Tip/Tip.stories.d.ts +0 -7
  161. package/dist/components/Tip/Tip.stories.d.ts.map +0 -1
  162. package/dist/components/Tooltip/Tooltip.d.ts +0 -24
  163. package/dist/components/Tooltip/Tooltip.d.ts.map +0 -1
  164. package/dist/components/Tooltip/Tooltip.mjs +0 -138
  165. package/dist/components/Tooltip/Tooltip.mjs.map +0 -1
  166. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -8
  167. package/dist/components/Tooltip/Tooltip.stories.d.ts.map +0 -1
  168. package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts +0 -12
  169. package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts.map +0 -1
  170. package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts +0 -12
  171. package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts.map +0 -1
  172. package/dist/components/TooltipTemplate/TextTooltipTemplate.mjs +0 -21
  173. package/dist/components/TooltipTemplate/TextTooltipTemplate.mjs.map +0 -1
  174. package/dist/components/Wizard/Wizard.d.ts +0 -33
  175. package/dist/components/Wizard/Wizard.d.ts.map +0 -1
  176. package/dist/components/Wizard/Wizard.mjs +0 -129
  177. package/dist/components/Wizard/Wizard.mjs.map +0 -1
  178. package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts +0 -16
  179. package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts.map +0 -1
  180. package/dist/components/Wizard/WizardSteps/WizardSteps.mjs +0 -41
  181. package/dist/components/Wizard/WizardSteps/WizardSteps.mjs.map +0 -1
  182. package/dist/components/index.d.ts +0 -31
  183. package/dist/components/index.d.ts.map +0 -1
  184. package/dist/components/index.mjs +0 -61
  185. package/dist/components/index.mjs.map +0 -1
  186. package/dist/constants.d.ts +0 -122
  187. package/dist/constants.d.ts.map +0 -1
  188. package/dist/constants.mjs +0 -52
  189. package/dist/constants.mjs.map +0 -1
  190. package/dist/elements/ActionsMenuItem/ActionsMenuItem.d.ts +0 -16
  191. package/dist/elements/ActionsMenuItem/ActionsMenuItem.d.ts.map +0 -1
  192. package/dist/elements/ActionsMenuItem/ActionsMenuItem.mjs +0 -51
  193. package/dist/elements/ActionsMenuItem/ActionsMenuItem.mjs.map +0 -1
  194. package/dist/elements/FormActionButton/FormActionButton.d.ts +0 -23
  195. package/dist/elements/FormActionButton/FormActionButton.d.ts.map +0 -1
  196. package/dist/elements/FormActionButton/FormActionButton.mjs +0 -43
  197. package/dist/elements/FormActionButton/FormActionButton.mjs.map +0 -1
  198. package/dist/elements/FormRowActions/FormRowActions.d.ts +0 -27
  199. package/dist/elements/FormRowActions/FormRowActions.d.ts.map +0 -1
  200. package/dist/elements/FormRowActions/FormRowActions.mjs +0 -87
  201. package/dist/elements/FormRowActions/FormRowActions.mjs.map +0 -1
  202. package/dist/elements/OptionsMenu/OptionsMenu.d.ts +0 -18
  203. package/dist/elements/OptionsMenu/OptionsMenu.d.ts.map +0 -1
  204. package/dist/elements/OptionsMenu/OptionsMenu.mjs +0 -47
  205. package/dist/elements/OptionsMenu/OptionsMenu.mjs.map +0 -1
  206. package/dist/elements/SelectOption/SelectOption.d.ts +0 -20
  207. package/dist/elements/SelectOption/SelectOption.d.ts.map +0 -1
  208. package/dist/elements/SelectOption/SelectOption.mjs +0 -84
  209. package/dist/elements/SelectOption/SelectOption.mjs.map +0 -1
  210. package/dist/elements/TableHead/TableHead.d.ts +0 -20
  211. package/dist/elements/TableHead/TableHead.d.ts.map +0 -1
  212. package/dist/elements/TableHead/TableHead.mjs +0 -58
  213. package/dist/elements/TableHead/TableHead.mjs.map +0 -1
  214. package/dist/elements/TableLinkCell/TableLinkCell.d.ts +0 -24
  215. package/dist/elements/TableLinkCell/TableLinkCell.d.ts.map +0 -1
  216. package/dist/elements/TableLinkCell/TableLinkCell.mjs +0 -87
  217. package/dist/elements/TableLinkCell/TableLinkCell.mjs.map +0 -1
  218. package/dist/elements/TableTypeCell/TableTypeCell.d.ts +0 -12
  219. package/dist/elements/TableTypeCell/TableTypeCell.d.ts.map +0 -1
  220. package/dist/elements/TableTypeCell/TableTypeCell.mjs +0 -37
  221. package/dist/elements/TableTypeCell/TableTypeCell.mjs.map +0 -1
  222. package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts +0 -12
  223. package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts.map +0 -1
  224. package/dist/elements/ValidationTemplate/ValidationTemplate.mjs +0 -22
  225. package/dist/elements/ValidationTemplate/ValidationTemplate.mjs.map +0 -1
  226. package/dist/elements/index.d.ts +0 -11
  227. package/dist/elements/index.d.ts.map +0 -1
  228. package/dist/elements/index.mjs +0 -21
  229. package/dist/elements/index.mjs.map +0 -1
  230. package/dist/fonts/roboto-v27-latin-300.eot +0 -0
  231. package/dist/fonts/roboto-v27-latin-300.svg +0 -1
  232. package/dist/fonts/roboto-v27-latin-300.ttf +0 -0
  233. package/dist/fonts/roboto-v27-latin-300.woff +0 -0
  234. package/dist/fonts/roboto-v27-latin-300.woff2 +0 -0
  235. package/dist/fonts/roboto-v27-latin-500.eot +0 -0
  236. package/dist/fonts/roboto-v27-latin-500.svg +0 -1
  237. package/dist/fonts/roboto-v27-latin-500.ttf +0 -0
  238. package/dist/fonts/roboto-v27-latin-500.woff +0 -0
  239. package/dist/fonts/roboto-v27-latin-500.woff2 +0 -0
  240. package/dist/fonts/roboto-v27-latin-500italic.eot +0 -0
  241. package/dist/fonts/roboto-v27-latin-500italic.svg +0 -326
  242. package/dist/fonts/roboto-v27-latin-500italic.ttf +0 -0
  243. package/dist/fonts/roboto-v27-latin-500italic.woff +0 -0
  244. package/dist/fonts/roboto-v27-latin-500italic.woff2 +0 -0
  245. package/dist/fonts/roboto-v27-latin-700.eot +0 -0
  246. package/dist/fonts/roboto-v27-latin-700.svg +0 -309
  247. package/dist/fonts/roboto-v27-latin-700.ttf +0 -0
  248. package/dist/fonts/roboto-v27-latin-700.woff +0 -0
  249. package/dist/fonts/roboto-v27-latin-700.woff2 +0 -0
  250. package/dist/fonts/roboto-v27-latin-700italic.eot +0 -0
  251. package/dist/fonts/roboto-v27-latin-700italic.svg +0 -1
  252. package/dist/fonts/roboto-v27-latin-700italic.ttf +0 -0
  253. package/dist/fonts/roboto-v27-latin-700italic.woff +0 -0
  254. package/dist/fonts/roboto-v27-latin-700italic.woff2 +0 -0
  255. package/dist/fonts/roboto-v27-latin-italic.eot +0 -0
  256. package/dist/fonts/roboto-v27-latin-italic.svg +0 -323
  257. package/dist/fonts/roboto-v27-latin-italic.ttf +0 -0
  258. package/dist/fonts/roboto-v27-latin-italic.woff +0 -0
  259. package/dist/fonts/roboto-v27-latin-italic.woff2 +0 -0
  260. package/dist/fonts/roboto-v27-latin-regular.eot +0 -0
  261. package/dist/fonts/roboto-v27-latin-regular.svg +0 -308
  262. package/dist/fonts/roboto-v27-latin-regular.ttf +0 -0
  263. package/dist/fonts/roboto-v27-latin-regular.woff +0 -0
  264. package/dist/fonts/roboto-v27-latin-regular.woff2 +0 -0
  265. package/dist/fonts/source-code-pro-v14-latin-regular.eot +0 -0
  266. package/dist/fonts/source-code-pro-v14-latin-regular.svg +0 -341
  267. package/dist/fonts/source-code-pro-v14-latin-regular.ttf +0 -0
  268. package/dist/fonts/source-code-pro-v14-latin-regular.woff +0 -0
  269. package/dist/fonts/source-code-pro-v14-latin-regular.woff2 +0 -0
  270. package/dist/hooks/index.d.ts +0 -9
  271. package/dist/hooks/index.d.ts.map +0 -1
  272. package/dist/hooks/index.mjs +0 -19
  273. package/dist/hooks/index.mjs.map +0 -1
  274. package/dist/hooks/useChipCell.hook.d.ts +0 -13
  275. package/dist/hooks/useChipCell.hook.d.ts.map +0 -1
  276. package/dist/hooks/useChipCell.hook.mjs +0 -71
  277. package/dist/hooks/useChipCell.hook.mjs.map +0 -1
  278. package/dist/hooks/useDebounce.hook.d.ts +0 -2
  279. package/dist/hooks/useDebounce.hook.d.ts.map +0 -1
  280. package/dist/hooks/useDebounce.hook.mjs +0 -19
  281. package/dist/hooks/useDebounce.hook.mjs.map +0 -1
  282. package/dist/hooks/useDetails.hook.d.ts +0 -72
  283. package/dist/hooks/useDetails.hook.d.ts.map +0 -1
  284. package/dist/hooks/useDetails.hook.mjs +0 -205
  285. package/dist/hooks/useDetails.hook.mjs.map +0 -1
  286. package/dist/hooks/useDetailsHeader.hook.d.ts +0 -80
  287. package/dist/hooks/useDetailsHeader.hook.d.ts.map +0 -1
  288. package/dist/hooks/useDetailsHeader.hook.mjs +0 -229
  289. package/dist/hooks/useDetailsHeader.hook.mjs.map +0 -1
  290. package/dist/hooks/useDetectOutsideClick.hook.d.ts +0 -2
  291. package/dist/hooks/useDetectOutsideClick.hook.d.ts.map +0 -1
  292. package/dist/hooks/useDetectOutsideClick.hook.mjs +0 -15
  293. package/dist/hooks/useDetectOutsideClick.hook.mjs.map +0 -1
  294. package/dist/hooks/useFormTable.hook.d.ts +0 -16
  295. package/dist/hooks/useFormTable.hook.d.ts.map +0 -1
  296. package/dist/hooks/useFormTable.hook.mjs +0 -128
  297. package/dist/hooks/useFormTable.hook.mjs.map +0 -1
  298. package/dist/hooks/useHiddenChipsBlock.hook.d.ts +0 -4
  299. package/dist/hooks/useHiddenChipsBlock.hook.d.ts.map +0 -1
  300. package/dist/hooks/useHiddenChipsBlock.hook.mjs +0 -51
  301. package/dist/hooks/useHiddenChipsBlock.hook.mjs.map +0 -1
  302. package/dist/hooks/useTable.hook.d.ts +0 -66
  303. package/dist/hooks/useTable.hook.d.ts.map +0 -1
  304. package/dist/hooks/useTable.hook.mjs +0 -175
  305. package/dist/hooks/useTable.hook.mjs.map +0 -1
  306. package/dist/images/add-circle-question.svg +0 -7
  307. package/dist/images/add-circle.svg +0 -5
  308. package/dist/images/add.svg +0 -4
  309. package/dist/images/add.svg.mjs +0 -6
  310. package/dist/images/add.svg.mjs.map +0 -1
  311. package/dist/images/alert-yellow.svg +0 -3
  312. package/dist/images/alerts-icon.svg +0 -3
  313. package/dist/images/alerts-mini.svg +0 -4
  314. package/dist/images/alerts.svg +0 -3
  315. package/dist/images/api-getaway-icon.svg +0 -5
  316. package/dist/images/application-icon.svg +0 -3
  317. package/dist/images/archive-icon.svg +0 -3
  318. package/dist/images/arrow-down.svg +0 -3
  319. package/dist/images/arrow-up.svg +0 -3
  320. package/dist/images/arrow.svg +0 -3
  321. package/dist/images/arrow.svg.mjs +0 -6
  322. package/dist/images/arrow.svg.mjs.map +0 -1
  323. package/dist/images/back-arrow.svg +0 -5
  324. package/dist/images/back-arrow.svg.mjs +0 -6
  325. package/dist/images/back-arrow.svg.mjs.map +0 -1
  326. package/dist/images/batch-step-badge.svg +0 -4
  327. package/dist/images/best-iteration-icon.svg +0 -4
  328. package/dist/images/cancel.svg +0 -3
  329. package/dist/images/checkbox-checked.svg +0 -3
  330. package/dist/images/checkbox-unchecked.svg +0 -3
  331. package/dist/images/checkmark.svg +0 -3
  332. package/dist/images/checkmark.svg.mjs +0 -6
  333. package/dist/images/checkmark.svg.mjs.map +0 -1
  334. package/dist/images/checkmark2.svg +0 -3
  335. package/dist/images/checkmark2.svg.mjs +0 -6
  336. package/dist/images/checkmark2.svg.mjs.map +0 -1
  337. package/dist/images/choice-step-badge.svg +0 -4
  338. package/dist/images/circled-m.svg +0 -3
  339. package/dist/images/circled-r.svg +0 -3
  340. package/dist/images/clock.svg +0 -4
  341. package/dist/images/close.svg +0 -3
  342. package/dist/images/close.svg.mjs +0 -6
  343. package/dist/images/close.svg.mjs.map +0 -1
  344. package/dist/images/code.svg +0 -3
  345. package/dist/images/collapse.svg +0 -3
  346. package/dist/images/connections-icon.svg +0 -4
  347. package/dist/images/copy-to-clipboard-icon.svg +0 -3
  348. package/dist/images/copy-to-clipboard-icon.svg.mjs +0 -6
  349. package/dist/images/copy-to-clipboard-icon.svg.mjs.map +0 -1
  350. package/dist/images/custom-step-badge.svg +0 -4
  351. package/dist/images/custom.svg +0 -3
  352. package/dist/images/dashboard-icon.svg +0 -3
  353. package/dist/images/dashboard-mini.svg +0 -4
  354. package/dist/images/data-analytics-mini.svg +0 -4
  355. package/dist/images/data-analytics.svg +0 -3
  356. package/dist/images/data-preparation-mini.svg +0 -14
  357. package/dist/images/data-preperation.svg +0 -13
  358. package/dist/images/databricks-icon.svg +0 -4
  359. package/dist/images/datasets-icon.svg +0 -3
  360. package/dist/images/db-icon.svg +0 -3
  361. package/dist/images/delete.svg +0 -3
  362. package/dist/images/delete.svg.mjs +0 -6
  363. package/dist/images/delete.svg.mjs.map +0 -1
  364. package/dist/images/deploy-icon.svg +0 -4
  365. package/dist/images/dl-mini.svg +0 -4
  366. package/dist/images/dl.svg +0 -3
  367. package/dist/images/documents-icon.svg +0 -3
  368. package/dist/images/dots-icon.png +0 -0
  369. package/dist/images/double-arrow.svg +0 -3
  370. package/dist/images/double-back-arrow.svg +0 -4
  371. package/dist/images/download.svg +0 -3
  372. package/dist/images/drop-file.svg +0 -5
  373. package/dist/images/dropdown.svg +0 -3
  374. package/dist/images/dropdown.svg.mjs +0 -6
  375. package/dist/images/dropdown.svg.mjs.map +0 -1
  376. package/dist/images/edit.svg +0 -3
  377. package/dist/images/edit.svg.mjs +0 -6
  378. package/dist/images/edit.svg.mjs.map +0 -1
  379. package/dist/images/edit_old.svg +0 -3
  380. package/dist/images/elipsis.svg +0 -3
  381. package/dist/images/elipsis.svg.mjs +0 -6
  382. package/dist/images/elipsis.svg.mjs.map +0 -1
  383. package/dist/images/email-icon.svg +0 -3
  384. package/dist/images/entity-type-application.svg +0 -3
  385. package/dist/images/entity-type-endpoint.svg +0 -3
  386. package/dist/images/entity-type-job.svg +0 -3
  387. package/dist/images/error-step-badge.svg +0 -4
  388. package/dist/images/etl-mini.svg +0 -11
  389. package/dist/images/etl.svg +0 -10
  390. package/dist/images/events-step-badge.svg +0 -8
  391. package/dist/images/exclamation-mark.svg +0 -3
  392. package/dist/images/exclamation-mark.svg.mjs +0 -6
  393. package/dist/images/exclamation-mark.svg.mjs.map +0 -1
  394. package/dist/images/expand.svg +0 -3
  395. package/dist/images/eye-icon.svg +0 -3
  396. package/dist/images/feed-mini.svg +0 -4
  397. package/dist/images/file-icon.svg +0 -3
  398. package/dist/images/filter-step-badge.svg +0 -4
  399. package/dist/images/filter.svg +0 -5
  400. package/dist/images/function-icon.svg +0 -3
  401. package/dist/images/genai-step-badge.svg +0 -4
  402. package/dist/images/git-icon.svg +0 -3
  403. package/dist/images/github-icon.svg +0 -1
  404. package/dist/images/history.svg +0 -3
  405. package/dist/images/history.svg.mjs +0 -6
  406. package/dist/images/history.svg.mjs.map +0 -1
  407. package/dist/images/horovod.svg +0 -3
  408. package/dist/images/ic-batch-inference.svg +0 -40
  409. package/dist/images/ic-calendar.svg +0 -3
  410. package/dist/images/ic-create-featureset.svg +0 -25
  411. package/dist/images/ic-create-new-function.svg +0 -35
  412. package/dist/images/ic-create-realtime-function.svg +0 -25
  413. package/dist/images/ic-create-workflow.svg +0 -30
  414. package/dist/images/ic-define-alerts.svg +0 -25
  415. package/dist/images/ic-deploy-model-serving.svg +0 -20
  416. package/dist/images/ic-feature-vector.svg +0 -25
  417. package/dist/images/ic-key.svg +0 -3
  418. package/dist/images/ic-register-artifact.svg +0 -13
  419. package/dist/images/ic-register-dataset.svg +0 -20
  420. package/dist/images/ic-register-model.svg +0 -20
  421. package/dist/images/ic-run-batch.svg +0 -20
  422. package/dist/images/ic-run-workflow.svg +0 -40
  423. package/dist/images/ic-train-model.svg +0 -26
  424. package/dist/images/ic_arrow-right.svg +0 -3
  425. package/dist/images/ic_copy-to-clipboard.svg +0 -3
  426. package/dist/images/ic_remote.svg +0 -3
  427. package/dist/images/ic_target-with-arrow-unset.svg +0 -4
  428. package/dist/images/ic_target-with-dart.svg +0 -3
  429. package/dist/images/iguazio-logo.png +0 -0
  430. package/dist/images/info-fill.svg +0 -3
  431. package/dist/images/jupyter.svg +0 -3
  432. package/dist/images/kafka-icon.svg +0 -3
  433. package/dist/images/legend-queue-icon.svg +0 -5
  434. package/dist/images/legend.svg +0 -12
  435. package/dist/images/link-icon.svg +0 -5
  436. package/dist/images/listview.svg +0 -3
  437. package/dist/images/llm-prompt-icon.svg +0 -3
  438. package/dist/images/lock-icon.svg +0 -3
  439. package/dist/images/metrics-icon.svg +0 -10
  440. package/dist/images/ml-download.svg +0 -3
  441. package/dist/images/ml-enlarge.svg +0 -6
  442. package/dist/images/ml-enlarge.svg.mjs +0 -6
  443. package/dist/images/ml-enlarge.svg.mjs.map +0 -1
  444. package/dist/images/ml-mini.svg +0 -16
  445. package/dist/images/ml-minimize.svg +0 -3
  446. package/dist/images/ml-minimize.svg.mjs +0 -6
  447. package/dist/images/ml-minimize.svg.mjs.map +0 -1
  448. package/dist/images/ml.svg +0 -10
  449. package/dist/images/mlrun-api-gateways.svg +0 -8
  450. package/dist/images/mlrun-artifacts.svg +0 -11
  451. package/dist/images/mlrun-blue-logo.svg +0 -1
  452. package/dist/images/mlrun-datasets.svg +0 -5
  453. package/dist/images/mlrun-feature-store.svg +0 -10
  454. package/dist/images/mlrun-hub-step-badge.svg +0 -4
  455. package/dist/images/mlrun-jobs-and-workflows.svg +0 -5
  456. package/dist/images/mlrun-logo-circle-small.png +0 -0
  457. package/dist/images/mlrun-logo-small.png +0 -0
  458. package/dist/images/mlrun-ml-functions.svg +0 -8
  459. package/dist/images/mlrun-models.svg +0 -5
  460. package/dist/images/mlrun-project-home.svg +0 -5
  461. package/dist/images/mlrun-project-monitoring.svg +0 -9
  462. package/dist/images/mlrun-project-settings.svg +0 -5
  463. package/dist/images/mlrun-realtime-functions.svg +0 -8
  464. package/dist/images/model-monitoring.svg +0 -3
  465. package/dist/images/model-serving-mini.svg +0 -13
  466. package/dist/images/model-serving.svg +0 -12
  467. package/dist/images/model-training-mini.svg +0 -11
  468. package/dist/images/model-training.svg +0 -3
  469. package/dist/images/models-icon.svg +0 -3
  470. package/dist/images/monitor-icon.svg +0 -3
  471. package/dist/images/monitoring-icon.svg +0 -4
  472. package/dist/images/navbar/alerts-icon.svg +0 -3
  473. package/dist/images/navbar/documents-icon.svg +0 -3
  474. package/dist/images/navbar/llm-prompt-icon.svg +0 -3
  475. package/dist/images/navbar/mlrun-api-gateways.svg +0 -8
  476. package/dist/images/navbar/mlrun-artifacts.svg +0 -11
  477. package/dist/images/navbar/mlrun-datasets.svg +0 -5
  478. package/dist/images/navbar/mlrun-feature-store.svg +0 -10
  479. package/dist/images/navbar/mlrun-jobs-and-workflows.svg +0 -5
  480. package/dist/images/navbar/mlrun-ml-functions.svg +0 -8
  481. package/dist/images/navbar/mlrun-models.svg +0 -5
  482. package/dist/images/navbar/mlrun-project-home.svg +0 -5
  483. package/dist/images/navbar/mlrun-project-monitoring.svg +0 -9
  484. package/dist/images/navbar/mlrun-project-settings.svg +0 -5
  485. package/dist/images/navbar/mlrun-realtime-functions.svg +0 -8
  486. package/dist/images/navbar/model-monitoring.svg +0 -3
  487. package/dist/images/nlp-mini.svg +0 -4
  488. package/dist/images/nlp.svg +0 -3
  489. package/dist/images/no-data-metric-image.png +0 -0
  490. package/dist/images/nosql.svg +0 -3
  491. package/dist/images/notification-badge.svg +0 -5
  492. package/dist/images/nuclio.svg +0 -3
  493. package/dist/images/other.svg +0 -3
  494. package/dist/images/package.svg +0 -4
  495. package/dist/images/pagination-arrow.svg +0 -3
  496. package/dist/images/pagination-double-arrow.svg +0 -4
  497. package/dist/images/partition.svg +0 -3
  498. package/dist/images/pin-icon.svg +0 -3
  499. package/dist/images/pipelines.svg +0 -3
  500. package/dist/images/plus.svg +0 -4
  501. package/dist/images/plus.svg.mjs +0 -6
  502. package/dist/images/plus.svg.mjs.map +0 -1
  503. package/dist/images/pop_in.svg +0 -4
  504. package/dist/images/popout.svg +0 -4
  505. package/dist/images/popout.svg.mjs +0 -6
  506. package/dist/images/popout.svg.mjs.map +0 -1
  507. package/dist/images/pref-icon.svg +0 -3
  508. package/dist/images/present-metrics-icon.svg +0 -3
  509. package/dist/images/private-project-icon.svg +0 -3
  510. package/dist/images/projects.svg +0 -3
  511. package/dist/images/question-mark.svg +0 -5
  512. package/dist/images/question-mark.svg.mjs +0 -6
  513. package/dist/images/question-mark.svg.mjs.map +0 -1
  514. package/dist/images/range-arrow-small.svg +0 -3
  515. package/dist/images/range-arrow-small.svg.mjs +0 -6
  516. package/dist/images/range-arrow-small.svg.mjs.map +0 -1
  517. package/dist/images/realtime-icon.svg +0 -4
  518. package/dist/images/refresh.svg +0 -3
  519. package/dist/images/refresh.svg.mjs +0 -6
  520. package/dist/images/refresh.svg.mjs.map +0 -1
  521. package/dist/images/remote-step-badge.svg +0 -4
  522. package/dist/images/rerun.svg +0 -3
  523. package/dist/images/response-indicator.svg +0 -4
  524. package/dist/images/rocket-icon.svg +0 -12
  525. package/dist/images/router-step-badge.svg +0 -4
  526. package/dist/images/run.svg +0 -3
  527. package/dist/images/search.svg +0 -3
  528. package/dist/images/search.svg.mjs +0 -6
  529. package/dist/images/search.svg.mjs.map +0 -1
  530. package/dist/images/serving-icon.svg +0 -4
  531. package/dist/images/settings.svg +0 -3
  532. package/dist/images/severity-critical.svg +0 -3
  533. package/dist/images/severity-error.svg +0 -10
  534. package/dist/images/severity-high.svg +0 -3
  535. package/dist/images/severity-low.svg +0 -3
  536. package/dist/images/severity-normal.svg +0 -3
  537. package/dist/images/severity-ok.svg +0 -10
  538. package/dist/images/simulator-mini.svg +0 -4
  539. package/dist/images/simulators.svg +0 -3
  540. package/dist/images/sitemap-icon.svg +0 -3
  541. package/dist/images/slack-icon-colored.svg +0 -10
  542. package/dist/images/slack-icon.svg +0 -1
  543. package/dist/images/spark.svg +0 -3
  544. package/dist/images/stream.svg +0 -5
  545. package/dist/images/success_done.svg +0 -3
  546. package/dist/images/success_done.svg.mjs +0 -6
  547. package/dist/images/success_done.svg.mjs.map +0 -1
  548. package/dist/images/tag-icon.svg +0 -4
  549. package/dist/images/timer-outline-icon.svg +0 -3
  550. package/dist/images/tsdb-icon.svg +0 -3
  551. package/dist/images/unarchive-icon.svg +0 -3
  552. package/dist/images/unpin-icon.svg +0 -3
  553. package/dist/images/unsuccess_alert.svg +0 -4
  554. package/dist/images/unsuccess_alert.svg.mjs +0 -6
  555. package/dist/images/unsuccess_alert.svg.mjs.map +0 -1
  556. package/dist/images/upload-icon.svg +0 -5
  557. package/dist/images/user.svg +0 -3
  558. package/dist/images/users.svg +0 -3
  559. package/dist/images/v3io-icon.svg +0 -3
  560. package/dist/images/view-details.svg +0 -3
  561. package/dist/images/vs-code.svg +0 -3
  562. package/dist/images/warning.svg +0 -10
  563. package/dist/images/warning.svg.mjs +0 -6
  564. package/dist/images/warning.svg.mjs.map +0 -1
  565. package/dist/images/webhook-icon.svg +0 -9
  566. package/dist/images/workflow-icon.svg +0 -6
  567. package/dist/images/yaml.svg +0 -3
  568. package/dist/images/yaml_old.svg +0 -4
  569. package/dist/index.css +0 -1
  570. package/dist/index.d.ts +0 -9
  571. package/dist/index.d.ts.map +0 -1
  572. package/dist/index.mjs +0 -17
  573. package/dist/index.mjs.map +0 -1
  574. package/dist/reducers/commonDetailsReducer.d.ts +0 -24
  575. package/dist/reducers/commonDetailsReducer.d.ts.map +0 -1
  576. package/dist/reducers/commonDetailsReducer.mjs +0 -77
  577. package/dist/reducers/commonDetailsReducer.mjs.map +0 -1
  578. package/dist/reducers/index.d.ts +0 -3
  579. package/dist/reducers/index.d.ts.map +0 -1
  580. package/dist/reducers/index.mjs +0 -7
  581. package/dist/reducers/index.mjs.map +0 -1
  582. package/dist/reducers/notificationReducer.d.ts +0 -7
  583. package/dist/reducers/notificationReducer.d.ts.map +0 -1
  584. package/dist/reducers/notificationReducer.mjs +0 -21
  585. package/dist/reducers/notificationReducer.mjs.map +0 -1
  586. package/dist/robots.txt +0 -3
  587. package/dist/scss/borders.scss +0 -26
  588. package/dist/scss/colors.scss +0 -75
  589. package/dist/scss/common.scss +0 -1056
  590. package/dist/scss/details.scss +0 -376
  591. package/dist/scss/fonts.scss +0 -123
  592. package/dist/scss/mixins.scss +0 -1231
  593. package/dist/scss/shadows.scss +0 -16
  594. package/dist/scss/table.scss +0 -283
  595. package/dist/scss/variables.scss +0 -28
  596. package/dist/types.d.ts +0 -32
  597. package/dist/types.d.ts.map +0 -1
  598. package/dist/types.mjs +0 -191
  599. package/dist/types.mjs.map +0 -1
  600. package/dist/utils/chips.util.d.ts +0 -30
  601. package/dist/utils/chips.util.d.ts.map +0 -1
  602. package/dist/utils/chips.util.mjs +0 -75
  603. package/dist/utils/chips.util.mjs.map +0 -1
  604. package/dist/utils/common.util.d.ts +0 -15
  605. package/dist/utils/common.util.d.ts.map +0 -1
  606. package/dist/utils/common.util.mjs +0 -109
  607. package/dist/utils/common.util.mjs.map +0 -1
  608. package/dist/utils/datetime.util.d.ts +0 -18
  609. package/dist/utils/datetime.util.d.ts.map +0 -1
  610. package/dist/utils/datetime.util.mjs +0 -63
  611. package/dist/utils/datetime.util.mjs.map +0 -1
  612. package/dist/utils/filter.util.d.ts +0 -5
  613. package/dist/utils/filter.util.d.ts.map +0 -1
  614. package/dist/utils/filter.util.mjs +0 -23
  615. package/dist/utils/filter.util.mjs.map +0 -1
  616. package/dist/utils/form.util.d.ts +0 -12
  617. package/dist/utils/form.util.d.ts.map +0 -1
  618. package/dist/utils/form.util.mjs +0 -30
  619. package/dist/utils/form.util.mjs.map +0 -1
  620. package/dist/utils/generateChipsList.util.d.ts +0 -10
  621. package/dist/utils/generateChipsList.util.d.ts.map +0 -1
  622. package/dist/utils/generateChipsList.util.mjs +0 -19
  623. package/dist/utils/generateChipsList.util.mjs.map +0 -1
  624. package/dist/utils/getFirstScrollableParent.util.d.ts +0 -2
  625. package/dist/utils/getFirstScrollableParent.util.d.ts.map +0 -1
  626. package/dist/utils/getFirstScrollableParent.util.mjs +0 -5
  627. package/dist/utils/getFirstScrollableParent.util.mjs.map +0 -1
  628. package/dist/utils/index.d.ts +0 -13
  629. package/dist/utils/index.d.ts.map +0 -1
  630. package/dist/utils/index.mjs +0 -27
  631. package/dist/utils/index.mjs.map +0 -1
  632. package/dist/utils/math.util.d.ts +0 -2
  633. package/dist/utils/math.util.d.ts.map +0 -1
  634. package/dist/utils/math.util.mjs +0 -18
  635. package/dist/utils/math.util.mjs.map +0 -1
  636. package/dist/utils/notification.util.d.ts +0 -2
  637. package/dist/utils/notification.util.d.ts.map +0 -1
  638. package/dist/utils/notification.util.mjs +0 -17
  639. package/dist/utils/notification.util.mjs.map +0 -1
  640. package/dist/utils/proxyServerConfig.util.d.ts +0 -27
  641. package/dist/utils/proxyServerConfig.util.d.ts.map +0 -1
  642. package/dist/utils/proxyServerConfig.util.mjs +0 -30
  643. package/dist/utils/proxyServerConfig.util.mjs.map +0 -1
  644. package/dist/utils/string.util.d.ts +0 -6
  645. package/dist/utils/string.util.d.ts.map +0 -1
  646. package/dist/utils/string.util.mjs +0 -13
  647. package/dist/utils/string.util.mjs.map +0 -1
  648. package/dist/utils/validation.util.d.ts +0 -6
  649. package/dist/utils/validation.util.d.ts.map +0 -1
  650. package/dist/utils/validation.util.mjs +0 -306
  651. package/dist/utils/validation.util.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"chips.util.mjs","sources":["../../src/lib/utils/chips.util.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\n\nimport { roundFloats } from './common.util'\n\nconst chipOptions = [\n {\n type: 'labels',\n boldValue: false,\n background: 'purple',\n borderColor: 'transparent',\n density: 'dense',\n font: 'purple',\n borderRadius: 'primary'\n },\n {\n type: 'metrics',\n boldValue: false,\n background: 'grey',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'primary'\n },\n {\n type: 'parameters',\n boldValue: false,\n background: 'orange',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'orange'\n },\n {\n type: 'results',\n boldValue: false,\n background: 'grey',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'primary'\n },\n {\n type: 'relations',\n boldValue: false,\n background: 'orange',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'orange'\n }\n]\n\nexport const getChipOptions = variant => chipOptions.find(item => item.type === variant)\n\nexport const cutChips = (chips = [], maxLength, delimiter) => {\n if (chips.length > maxLength) {\n let hiddenChipsNumber = `+ ${chips.length - maxLength}`\n const hiddenChips = chips.slice(maxLength).map(value => ({ value, delimiter }))\n const visibleChips = chips.slice(0, maxLength).map(value => ({ value, delimiter }))\n visibleChips.push({\n value: hiddenChipsNumber,\n delimiter\n })\n\n return {\n visibleChips,\n hiddenChips\n }\n }\n return {\n visibleChips: chips.map(value => ({ value, delimiter }))\n }\n}\n\nexport const getChipLabelAndValue = chip => {\n const indexOfDelimiter = chip.value.indexOf(':')\n const value = chip.value.slice(indexOfDelimiter + 1)\n\n return {\n chipLabel: indexOfDelimiter > 0 ? chip.value.slice(0, indexOfDelimiter) : chip.value,\n chipValue: indexOfDelimiter > 0 ? (Number.isInteger(value) ? roundFloats(value) : value) : ''\n }\n}\n"],"names":["chipOptions","getChipOptions","variant","item","cutChips","chips","maxLength","delimiter","hiddenChipsNumber","hiddenChips","value","visibleChips","getChipLabelAndValue","chip","indexOfDelimiter","roundFloats"],"mappings":";AAmBA,MAAMA,IAAc;AAAA,EAClB;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,IACT,MAAM;AAAA,IACN,cAAc;AAAA,EAClB;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AACA,GAEaC,IAAiB,CAAAC,MAAWF,EAAY,KAAK,CAAAG,MAAQA,EAAK,SAASD,CAAO,GAE1EE,IAAW,CAACC,IAAQ,IAAIC,GAAWC,MAAc;AAC5D,MAAIF,EAAM,SAASC,GAAW;AAC5B,QAAIE,IAAoB,KAAKH,EAAM,SAASC,CAAS;AACrD,UAAMG,IAAcJ,EAAM,MAAMC,CAAS,EAAE,IAAI,CAAAI,OAAU,EAAE,OAAAA,GAAO,WAAAH,IAAY,GACxEI,IAAeN,EAAM,MAAM,GAAGC,CAAS,EAAE,IAAI,CAAAI,OAAU,EAAE,OAAAA,GAAO,WAAAH,EAAS,EAAG;AAClF,WAAAI,EAAa,KAAK;AAAA,MAChB,OAAOH;AAAA,MACP,WAAAD;AAAA,IACN,CAAK,GAEM;AAAA,MACL,cAAAI;AAAA,MACA,aAAAF;AAAA,IACN;AAAA,EACE;AACA,SAAO;AAAA,IACL,cAAcJ,EAAM,IAAI,CAAAK,OAAU,EAAE,OAAAA,GAAO,WAAAH,IAAY;AAAA,EAC3D;AACA,GAEaK,IAAuB,CAAAC,MAAQ;AAC1C,QAAMC,IAAmBD,EAAK,MAAM,QAAQ,GAAG,GACzCH,IAAQG,EAAK,MAAM,MAAMC,IAAmB,CAAC;AAEnD,SAAO;AAAA,IACL,WAAWA,IAAmB,IAAID,EAAK,MAAM,MAAM,GAAGC,CAAgB,IAAID,EAAK;AAAA,IAC/E,WAAWC,IAAmB,IAAK,OAAO,UAAUJ,CAAK,IAAIK,EAAYL,CAAK,IAAIA,IAAS;AAAA,EAC/F;AACA;"}
@@ -1,15 +0,0 @@
1
- export function openPopUp(element: any, props: any): Promise<any>;
2
- export function openConfirmPopUp(message: any, confirmHandler: any): Promise<any>;
3
- export function openDeleteConfirmPopUp(header: any, message: any, confirmHandler: any): Promise<any>;
4
- export function isEveryObjectValueEmpty(obj: any): boolean;
5
- export function areArraysEqual(firstArray: any, secondArray: any, omitBy?: any[]): any;
6
- export function getErrorDetail(error: Error): string;
7
- export function getErrorMsg(error: Error, defaultError: string): string;
8
- export function getTransitionEndEventName(): string;
9
- export function getScssVariableValue(variableName: any): string;
10
- export function getViewMode(search: any): string;
11
- export function performDetailsActionHelper(changes: any, dispatch: any, filtersWasHandled?: boolean): Promise<boolean>;
12
- export function copyToClipboard(textToCopy: any, dispatch: any): void;
13
- export function roundFloats(value: any, precision: any): any;
14
- export function generateUrlFromRouterPath(link: any): string;
15
- //# sourceMappingURL=common.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/common.util.js"],"names":[],"mappings":"AAgCO,kEAEN;AAEM,kFAcN;AAEM,qGAcN;AAEM,2DAGJ;AAGI,uFAQN;AAYM,sCAHI,KAAK,GACH,MAAM,CAUlB;AASM,mCAJI,KAAK,gBACL,MAAM,GACJ,MAAM,CAoBlB;AAOM,6CAFM,MAAM,CAiBlB;AAEM,gEAEN;AAEM,iDAEN;AAEM,uHAqBN;AAEM,sEAwBN;AAEM,6DAWN;AAEM,6DAEN"}
@@ -1,109 +0,0 @@
1
- import { create as g } from "react-modal-promise";
2
- import { isNumber as E, isEmpty as u, differenceWith as w, isEqual as T, omit as a, get as s } from "lodash";
3
- import d from "../components/ConfirmDialog/ConfirmDialog.mjs";
4
- import { PRIMARY_BUTTON as b, TERTIARY_BUTTON as m, DANGER_BUTTON as h, FORBIDDEN_ERROR_STATUS_CODE as v, VIEW_SEARCH_PARAMETER as y } from "../constants.mjs";
5
- import { setFiltersWasHandled as C, showWarning as R } from "../reducers/commonDetailsReducer.mjs";
6
- import { setNotification as N } from "../reducers/notificationReducer.mjs";
7
- import { showErrorNotification as l } from "./notification.util.mjs";
8
- const p = (e, t) => g(e)(t), S = (e, t) => p(d, {
9
- cancelButton: {
10
- label: "Cancel",
11
- variant: m
12
- },
13
- confirmButton: {
14
- label: "OK",
15
- variant: b,
16
- handler: t
17
- },
18
- header: "Are you sure?",
19
- message: e
20
- }), _ = (e, t, n) => p(d, {
21
- cancelButton: {
22
- label: "Cancel",
23
- variant: m
24
- },
25
- confirmButton: {
26
- label: "Delete",
27
- variant: h,
28
- handler: n
29
- },
30
- header: e,
31
- message: t
32
- }), F = (e) => Object.values(e).every(
33
- (t) => !t || (t == null ? void 0 : t.length) === 0 || !E(t) && u(t)
34
- ), V = (e, t, n = []) => e.length !== t.length ? !1 : u(
35
- w(e, t, (r, i) => T(a(r, n), a(i, n)))
36
- ), c = {
37
- [v]: "You do not have a permission to view this data"
38
- }, D = (e) => {
39
- const t = s(e, "response.data.detail", null);
40
- return typeof t == "string" ? t : s(t, "reason", "");
41
- }, W = (e, t) => {
42
- const r = D(e) || e.message;
43
- return (!r || r === "Not Found" || r.startsWith("Request failed with status code")) && t ? t : c[e.status] ? c[e.status] : r || "";
44
- }, x = () => {
45
- const e = {
46
- transition: "transitionend",
47
- OTransition: "oTransitionEnd",
48
- MozTransition: "transitionend",
49
- WebkitTransition: "webkitTransitionEnd"
50
- };
51
- let t = document.body.style;
52
- for (let n in e)
53
- if (t[n] !== void 0)
54
- return e[n];
55
- }, I = (e) => getComputedStyle(document.documentElement).getPropertyValue(e).trim(), q = (e) => {
56
- var t;
57
- return (t = new URLSearchParams(e).get(y)) == null ? void 0 : t.toLowerCase();
58
- }, H = async (e, t, n = !1) => {
59
- let r = Promise.resolve(!0);
60
- return e.counter > 0 && (r = await new Promise((i) => {
61
- const o = (f) => {
62
- window.removeEventListener("discardChanges", o), window.removeEventListener("cancelLeave", o), i(f);
63
- };
64
- window.addEventListener("discardChanges", () => o(!0)), window.addEventListener("cancelLeave", () => o(!1)), t(C(n)), t(R(!0));
65
- })), r;
66
- }, Y = (e, t) => {
67
- var n;
68
- if (!((n = navigator.clipboard) != null && n.writeText))
69
- return l(
70
- t,
71
- null,
72
- "",
73
- "Copy to clipboard failed due to unsecured connection"
74
- );
75
- navigator.clipboard.writeText(e).then(() => {
76
- t(
77
- N({
78
- status: 200,
79
- id: Math.random(),
80
- message: "Copied to clipboard successfully"
81
- })
82
- );
83
- }).catch((r) => {
84
- l(t, r, "", "Copy to clipboard failed");
85
- });
86
- }, j = (e, t) => {
87
- if ((typeof e == "string" && e.trim() !== "" || typeof e == "number") && !isNaN(e)) {
88
- const n = parseFloat(e);
89
- return n % 1 === 0 ? n : +n.toFixed(t ?? 2);
90
- }
91
- return e;
92
- }, k = (e) => new URL(e, window.location.origin).toString();
93
- export {
94
- V as areArraysEqual,
95
- Y as copyToClipboard,
96
- k as generateUrlFromRouterPath,
97
- D as getErrorDetail,
98
- W as getErrorMsg,
99
- I as getScssVariableValue,
100
- x as getTransitionEndEventName,
101
- q as getViewMode,
102
- F as isEveryObjectValueEmpty,
103
- S as openConfirmPopUp,
104
- _ as openDeleteConfirmPopUp,
105
- p as openPopUp,
106
- H as performDetailsActionHelper,
107
- j as roundFloats
108
- };
109
- //# sourceMappingURL=common.util.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.util.mjs","sources":["../../src/lib/utils/common.util.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\nimport { create } from 'react-modal-promise'\nimport { differenceWith, isEqual, get, omit, isEmpty, isNumber } from 'lodash'\n\nimport ConfirmDialog from '../components/ConfirmDialog/ConfirmDialog'\n\nimport {\n DANGER_BUTTON,\n FORBIDDEN_ERROR_STATUS_CODE,\n PRIMARY_BUTTON,\n TERTIARY_BUTTON,\n VIEW_SEARCH_PARAMETER\n} from '../constants'\nimport { setFiltersWasHandled, showWarning } from '../reducers/commonDetailsReducer'\nimport { setNotification } from '../reducers/notificationReducer'\nimport { showErrorNotification } from './notification.util'\n\nexport const openPopUp = (element, props) => {\n return create(element)(props)\n}\n\nexport const openConfirmPopUp = (message, confirmHandler) => {\n return openPopUp(ConfirmDialog, {\n cancelButton: {\n label: 'Cancel',\n variant: TERTIARY_BUTTON\n },\n confirmButton: {\n label: 'OK',\n variant: PRIMARY_BUTTON,\n handler: confirmHandler\n },\n header: 'Are you sure?',\n message\n })\n}\n\nexport const openDeleteConfirmPopUp = (header, message, confirmHandler) => {\n return openPopUp(ConfirmDialog, {\n cancelButton: {\n label: 'Cancel',\n variant: TERTIARY_BUTTON\n },\n confirmButton: {\n label: 'Delete',\n variant: DANGER_BUTTON,\n handler: confirmHandler\n },\n header,\n message\n })\n}\n\nexport const isEveryObjectValueEmpty = obj =>\n Object.values(obj).every(\n item => !item || item?.length === 0 || (!isNumber(item) && isEmpty(item))\n )\n\n// Checks, whether two arrays of objects are equal, can omit some keys if their comparison is not necessary\nexport const areArraysEqual = (firstArray, secondArray, omitBy = []) => {\n if (firstArray.length !== secondArray.length) return false\n\n return isEmpty(\n differenceWith(firstArray, secondArray, (a, b) => {\n return isEqual(omit(a, omitBy), omit(b, omitBy))\n })\n )\n}\n\nconst commonErrorMessagesMap = {\n [FORBIDDEN_ERROR_STATUS_CODE]: 'You do not have a permission to view this data'\n}\n\n/**\n * Get error information from the error object.\n *\n * @param {Error} error - The error object.\n * @returns {string} - The detailed error information.\n */\nexport const getErrorDetail = error => {\n const errorDetail = get(error, 'response.data.detail', null)\n\n if (typeof errorDetail === 'string') {\n return errorDetail\n } else {\n return get(errorDetail, 'reason', '')\n }\n}\n\n/**\n * Get the error message from the error object or a default error message.\n *\n * @param {Error} error - The error object.\n * @param {string} defaultError - The default error message.\n * @returns {string} - The error message.\n */\nexport const getErrorMsg = (error, defaultError) => {\n const errorDetail = getErrorDetail(error)\n const errorMsg = errorDetail || error.message\n\n if (\n (!errorMsg ||\n errorMsg === 'Not Found' ||\n errorMsg.startsWith('Request failed with status code')) &&\n defaultError\n ) {\n return defaultError\n } else {\n if (commonErrorMessagesMap[error.status]) {\n return commonErrorMessagesMap[error.status]\n }\n\n return errorMsg || ''\n }\n}\n\n/**\n * Retrieves the appropriate transition end event name based on the browser.\n *\n * @returns {string} The transition end event name.\n */\nexport const getTransitionEndEventName = () => {\n const transitions = {\n transition: 'transitionend',\n OTransition: 'oTransitionEnd',\n MozTransition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd'\n }\n\n let bodyStyle = document.body.style\n\n for (let transition in transitions) {\n if (bodyStyle[transition] !== undefined) {\n return transitions[transition]\n }\n }\n}\n\nexport const getScssVariableValue = variableName => {\n return getComputedStyle(document.documentElement).getPropertyValue(variableName).trim()\n}\n\nexport const getViewMode = search => {\n return new URLSearchParams(search).get(VIEW_SEARCH_PARAMETER)?.toLowerCase()\n}\n\nexport const performDetailsActionHelper = async (changes, dispatch, filtersWasHandled = false) => {\n let actionCanBePerformed = Promise.resolve(true)\n\n if (changes.counter > 0) {\n actionCanBePerformed = await new Promise(resolve => {\n const resolver = isSuccess => {\n window.removeEventListener('discardChanges', resolver)\n window.removeEventListener('cancelLeave', resolver)\n\n resolve(isSuccess)\n }\n\n window.addEventListener('discardChanges', () => resolver(true))\n window.addEventListener('cancelLeave', () => resolver(false))\n\n dispatch(setFiltersWasHandled(filtersWasHandled))\n dispatch(showWarning(true))\n })\n }\n\n return actionCanBePerformed\n}\n\nexport const copyToClipboard = (textToCopy, dispatch) => {\n if (!navigator.clipboard?.writeText) {\n return showErrorNotification(\n dispatch,\n null,\n '',\n 'Copy to clipboard failed due to unsecured connection'\n )\n }\n\n navigator.clipboard\n .writeText(textToCopy)\n .then(() => {\n dispatch(\n setNotification({\n status: 200,\n id: Math.random(),\n message: 'Copied to clipboard successfully'\n })\n )\n })\n .catch(error => {\n showErrorNotification(dispatch, error, '', 'Copy to clipboard failed')\n })\n}\n\nexport const roundFloats = (value, precision) => {\n if (\n ((typeof value === 'string' && value.trim() !== '') || typeof value === 'number') &&\n !isNaN(value)\n ) {\n const parsedNum = parseFloat(value)\n\n return parsedNum % 1 === 0 ? parsedNum : +parsedNum.toFixed(precision ?? 2)\n }\n\n return value\n}\n\nexport const generateUrlFromRouterPath = link => {\n return new URL(link, window.location.origin).toString()\n}\n"],"names":["openPopUp","element","props","create","openConfirmPopUp","message","confirmHandler","ConfirmDialog","TERTIARY_BUTTON","PRIMARY_BUTTON","openDeleteConfirmPopUp","header","DANGER_BUTTON","isEveryObjectValueEmpty","obj","item","isNumber","isEmpty","areArraysEqual","firstArray","secondArray","omitBy","differenceWith","a","b","isEqual","omit","commonErrorMessagesMap","FORBIDDEN_ERROR_STATUS_CODE","getErrorDetail","error","errorDetail","get","getErrorMsg","defaultError","errorMsg","getTransitionEndEventName","transitions","bodyStyle","transition","getScssVariableValue","variableName","getViewMode","search","_a","VIEW_SEARCH_PARAMETER","performDetailsActionHelper","changes","dispatch","filtersWasHandled","actionCanBePerformed","resolve","resolver","isSuccess","setFiltersWasHandled","showWarning","copyToClipboard","textToCopy","showErrorNotification","setNotification","roundFloats","value","precision","parsedNum","generateUrlFromRouterPath","link"],"mappings":";;;;;;;AAgCY,MAACA,IAAY,CAACC,GAASC,MAC1BC,EAAOF,CAAO,EAAEC,CAAK,GAGjBE,IAAmB,CAACC,GAASC,MACjCN,EAAUO,GAAe;AAAA,EAC9B,cAAc;AAAA,IACZ,OAAO;AAAA,IACP,SAASC;AAAA,EACf;AAAA,EACI,eAAe;AAAA,IACb,OAAO;AAAA,IACP,SAASC;AAAA,IACT,SAASH;AAAA,EACf;AAAA,EACI,QAAQ;AAAA,EACR,SAAAD;AACJ,CAAG,GAGUK,IAAyB,CAACC,GAAQN,GAASC,MAC/CN,EAAUO,GAAe;AAAA,EAC9B,cAAc;AAAA,IACZ,OAAO;AAAA,IACP,SAASC;AAAA,EACf;AAAA,EACI,eAAe;AAAA,IACb,OAAO;AAAA,IACP,SAASI;AAAA,IACT,SAASN;AAAA,EACf;AAAA,EACI,QAAAK;AAAA,EACA,SAAAN;AACJ,CAAG,GAGUQ,IAA0B,CAAAC,MACrC,OAAO,OAAOA,CAAG,EAAE;AAAA,EACjB,CAAAC,MAAQ,CAACA,MAAQA,KAAA,gBAAAA,EAAM,YAAW,KAAM,CAACC,EAASD,CAAI,KAAKE,EAAQF,CAAI;AAC3E,GAGaG,IAAiB,CAACC,GAAYC,GAAaC,IAAS,CAAA,MAC3DF,EAAW,WAAWC,EAAY,SAAe,KAE9CH;AAAA,EACLK,EAAeH,GAAYC,GAAa,CAACG,GAAGC,MACnCC,EAAQC,EAAKH,GAAGF,CAAM,GAAGK,EAAKF,GAAGH,CAAM,CAAC,CAChD;AACL,GAGMM,IAAyB;AAAA,EAC7B,CAACC,CAA2B,GAAG;AACjC,GAQaC,IAAiB,CAAAC,MAAS;AACrC,QAAMC,IAAcC,EAAIF,GAAO,wBAAwB,IAAI;AAE3D,SAAI,OAAOC,KAAgB,WAClBA,IAEAC,EAAID,GAAa,UAAU,EAAE;AAExC,GASaE,IAAc,CAACH,GAAOI,MAAiB;AAElD,QAAMC,IADcN,EAAeC,CAAK,KACRA,EAAM;AAEtC,UACG,CAACK,KACAA,MAAa,eACbA,EAAS,WAAW,iCAAiC,MACvDD,IAEOA,IAEHP,EAAuBG,EAAM,MAAM,IAC9BH,EAAuBG,EAAM,MAAM,IAGrCK,KAAY;AAEvB,GAOaC,IAA4B,MAAM;AAC7C,QAAMC,IAAc;AAAA,IAClB,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,eAAe;AAAA,IACf,kBAAkB;AAAA,EACtB;AAEE,MAAIC,IAAY,SAAS,KAAK;AAE9B,WAASC,KAAcF;AACrB,QAAIC,EAAUC,CAAU,MAAM;AAC5B,aAAOF,EAAYE,CAAU;AAGnC,GAEaC,IAAuB,CAAAC,MAC3B,iBAAiB,SAAS,eAAe,EAAE,iBAAiBA,CAAY,EAAE,KAAI,GAG1EC,IAAc,CAAAC,MAAU;;AACnC,UAAOC,IAAA,IAAI,gBAAgBD,CAAM,EAAE,IAAIE,CAAqB,MAArD,gBAAAD,EAAwD;AACjE,GAEaE,IAA6B,OAAOC,GAASC,GAAUC,IAAoB,OAAU;AAChG,MAAIC,IAAuB,QAAQ,QAAQ,EAAI;AAE/C,SAAIH,EAAQ,UAAU,MACpBG,IAAuB,MAAM,IAAI,QAAQ,CAAAC,MAAW;AAClD,UAAMC,IAAW,CAAAC,MAAa;AAC5B,aAAO,oBAAoB,kBAAkBD,CAAQ,GACrD,OAAO,oBAAoB,eAAeA,CAAQ,GAElDD,EAAQE,CAAS;AAAA,IACnB;AAEA,WAAO,iBAAiB,kBAAkB,MAAMD,EAAS,EAAI,CAAC,GAC9D,OAAO,iBAAiB,eAAe,MAAMA,EAAS,EAAK,CAAC,GAE5DJ,EAASM,EAAqBL,CAAiB,CAAC,GAChDD,EAASO,EAAY,EAAI,CAAC;AAAA,EAC5B,CAAC,IAGIL;AACT,GAEaM,IAAkB,CAACC,GAAYT,MAAa;;AACvD,MAAI,GAACJ,IAAA,UAAU,cAAV,QAAAA,EAAqB;AACxB,WAAOc;AAAA,MACLV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACN;AAGE,YAAU,UACP,UAAUS,CAAU,EACpB,KAAK,MAAM;AACV,IAAAT;AAAA,MACEW,EAAgB;AAAA,QACd,QAAQ;AAAA,QACR,IAAI,KAAK,OAAM;AAAA,QACf,SAAS;AAAA,MACnB,CAAS;AAAA,IACT;AAAA,EACI,CAAC,EACA,MAAM,CAAA7B,MAAS;AACd,IAAA4B,EAAsBV,GAAUlB,GAAO,IAAI,0BAA0B;AAAA,EACvE,CAAC;AACL,GAEa8B,IAAc,CAACC,GAAOC,MAAc;AAC/C,OACI,OAAOD,KAAU,YAAYA,EAAM,WAAW,MAAO,OAAOA,KAAU,aACxE,CAAC,MAAMA,CAAK,GACZ;AACA,UAAME,IAAY,WAAWF,CAAK;AAElC,WAAOE,IAAY,MAAM,IAAIA,IAAY,CAACA,EAAU,QAAQD,KAAa,CAAC;AAAA,EAC5E;AAEA,SAAOD;AACT,GAEaG,IAA4B,CAAAC,MAChC,IAAI,IAAIA,GAAM,OAAO,SAAS,MAAM,EAAE,SAAQ;"}
@@ -1,18 +0,0 @@
1
- export function getSupportedLocale(): string;
2
- export const supportedLocale: string;
3
- export function formatDatetime(datetime: any, invalidDateMessage: any, options?: {
4
- year: string;
5
- month: string;
6
- day: string;
7
- hour: string;
8
- minute: string;
9
- second: string;
10
- }, locale?: string): any;
11
- export function getFormatTime(time: any): {
12
- hour: any;
13
- minute: any;
14
- };
15
- export function getTimeElapsedByDate(creationDate: any): any;
16
- export function getDateAndTimeByFormat(date: any, dateFormat: any): any;
17
- export function sortListByDate(list: any[], field: any, isAscending?: boolean): any[];
18
- //# sourceMappingURL=datetime.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"datetime.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/datetime.util.js"],"names":[],"mappings":"AAqBA,6CASC;AAED,qCAAmD;AAE5C;;;;;;;yBA8BN;AAEM;;;EAYN;AAEM,6DAyBN;AAEM,wEAEN;AAEM,sFAON"}
@@ -1,63 +0,0 @@
1
- import a from "moment";
2
- function m() {
3
- const e = /* @__PURE__ */ new Set(["en-GB", "en-US"]);
4
- return (navigator.languages || [navigator.language]).find((o) => e.has(o)) || "en-US";
5
- }
6
- const c = m(), d = (e, t, r = {
7
- year: "numeric",
8
- month: "short",
9
- day: "numeric",
10
- hour: "2-digit",
11
- minute: "2-digit",
12
- second: "2-digit"
13
- }, o = c) => {
14
- if (!e)
15
- return t;
16
- const n = new Date(e.replace("+00:00", ""));
17
- return isNaN(n) || typeof n != "object" || !(n instanceof Date) || isNaN(n) ? t : new Intl.DateTimeFormat(o, {
18
- numberingSystem: "latn",
19
- calendar: "gregory",
20
- ...r
21
- }).format(n);
22
- }, g = (e) => {
23
- const [t, r] = e.split(":");
24
- return r ? {
25
- hour: t.replace(/_/g, "0"),
26
- minute: r.replace(/_/g, "0")
27
- } : {
28
- hour: "0",
29
- minute: "0"
30
- };
31
- }, p = (e) => (a.updateLocale("en", {
32
- relativeTime: {
33
- future: "in %s",
34
- past: "%s ago",
35
- s: "a few seconds",
36
- ss: "%d seconds",
37
- m: "a minute",
38
- mm: "%d minutes",
39
- h: "an hour",
40
- hh: "%d hours",
41
- d: "a day",
42
- dd: "%d days",
43
- w: "a week",
44
- ww: "%d weeks",
45
- M: "a month",
46
- MM: "%d months",
47
- y: "a year",
48
- yy: "%d years"
49
- }
50
- }), a.utc(e).fromNow()), h = (e, t) => a(e).format(t), y = (e = [], t, r = !0) => [...e].sort((o, n) => {
51
- const s = Date.parse(o[t]), u = Date.parse(n[t]);
52
- return r ? s - u : u - s;
53
- });
54
- export {
55
- d as formatDatetime,
56
- h as getDateAndTimeByFormat,
57
- g as getFormatTime,
58
- m as getSupportedLocale,
59
- p as getTimeElapsedByDate,
60
- y as sortListByDate,
61
- c as supportedLocale
62
- };
63
- //# sourceMappingURL=datetime.util.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"datetime.util.mjs","sources":["../../src/lib/utils/datetime.util.js"],"sourcesContent":["/*\nCopyright 2019 Iguazio Systems Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\n\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\nimport moment from 'moment'\n\nexport function getSupportedLocale() {\n const SUPPORTED_LOCALES = new Set(['en-GB', 'en-US'])\n\n const userLocales = navigator.languages || [navigator.language]\n\n // browser always returns locales in descending order of preference\n const match = userLocales.find(locale => SUPPORTED_LOCALES.has(locale))\n\n return match || 'en-US'\n}\n\nexport const supportedLocale = getSupportedLocale()\n\nexport const formatDatetime = (\n datetime,\n invalidDateMessage,\n options = {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit'\n },\n locale = supportedLocale\n) => {\n if (!datetime) {\n return invalidDateMessage\n }\n\n const date = new Date(datetime.replace('+00:00', ''))\n\n if (isNaN(date)) {\n return invalidDateMessage\n }\n\n return typeof date !== 'object' || !(date instanceof Date) || isNaN(date)\n ? invalidDateMessage\n : new Intl.DateTimeFormat(locale, {\n numberingSystem: 'latn',\n calendar: 'gregory',\n ...options\n }).format(date)\n}\n\nexport const getFormatTime = time => {\n const [hour, minute] = time.split(':')\n if (!minute) {\n return {\n hour: '0',\n minute: '0'\n }\n }\n return {\n hour: hour.replace(/_/g, '0'),\n minute: minute.replace(/_/g, '0')\n }\n}\n\nexport const getTimeElapsedByDate = creationDate => {\n moment.updateLocale('en', {\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n w: 'a week',\n ww: '%d weeks',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n }\n })\n\n const time = moment.utc(creationDate)\n\n return time.fromNow()\n}\n\nexport const getDateAndTimeByFormat = (date, dateFormat) => {\n return moment(date).format(dateFormat)\n}\n\nexport const sortListByDate = (list = [], field, isAscending = true) => {\n return [...list].sort((prevElem, nextElem) => {\n const prev = Date.parse(prevElem[field])\n const next = Date.parse(nextElem[field])\n\n return isAscending ? prev - next : next - prev\n })\n}\n"],"names":["getSupportedLocale","SUPPORTED_LOCALES","locale","supportedLocale","formatDatetime","datetime","invalidDateMessage","options","date","getFormatTime","time","hour","minute","getTimeElapsedByDate","creationDate","moment","getDateAndTimeByFormat","dateFormat","sortListByDate","list","field","isAscending","prevElem","nextElem","prev","next"],"mappings":";AAqBO,SAASA,IAAqB;AACnC,QAAMC,IAAoB,oBAAI,IAAI,CAAC,SAAS,OAAO,CAAC;AAOpD,UALoB,UAAU,aAAa,CAAC,UAAU,QAAQ,GAGpC,KAAK,CAAAC,MAAUD,EAAkB,IAAIC,CAAM,CAAC,KAEtD;AAClB;AAEY,MAACC,IAAkBH,EAAkB,GAEpCI,IAAiB,CAC5BC,GACAC,GACAC,IAAU;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAAK;AAAA,EACL,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,QAAQ;AACZ,GACEL,IAASC,MACN;AACH,MAAI,CAACE;AACH,WAAOC;AAGT,QAAME,IAAO,IAAI,KAAKH,EAAS,QAAQ,UAAU,EAAE,CAAC;AAEpD,SAAI,MAAMG,CAAI,KAIP,OAAOA,KAAS,YAAY,EAAEA,aAAgB,SAAS,MAAMA,CAAI,IAH/DF,IAKL,IAAI,KAAK,eAAeJ,GAAQ;AAAA,IAC9B,iBAAiB;AAAA,IACjB,UAAU;AAAA,IACV,GAAGK;AAAA,EACX,CAAO,EAAE,OAAOC,CAAI;AACpB,GAEaC,IAAgB,CAAAC,MAAQ;AACnC,QAAM,CAACC,GAAMC,CAAM,IAAIF,EAAK,MAAM,GAAG;AACrC,SAAKE,IAME;AAAA,IACL,MAAMD,EAAK,QAAQ,MAAM,GAAG;AAAA,IAC5B,QAAQC,EAAO,QAAQ,MAAM,GAAG;AAAA,EACpC,IARW;AAAA,IACL,MAAM;AAAA,IACN,QAAQ;AAAA,EACd;AAMA,GAEaC,IAAuB,CAAAC,OAClCC,EAAO,aAAa,MAAM;AAAA,EACxB,cAAc;AAAA,IACZ,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,IAAI;AAAA,EACV;AACA,CAAG,GAEYA,EAAO,IAAID,CAAY,EAExB,QAAO,IAGRE,IAAyB,CAACR,GAAMS,MACpCF,EAAOP,CAAI,EAAE,OAAOS,CAAU,GAG1BC,IAAiB,CAACC,IAAO,CAAA,GAAIC,GAAOC,IAAc,OACtD,CAAC,GAAGF,CAAI,EAAE,KAAK,CAACG,GAAUC,MAAa;AAC5C,QAAMC,IAAO,KAAK,MAAMF,EAASF,CAAK,CAAC,GACjCK,IAAO,KAAK,MAAMF,EAASH,CAAK,CAAC;AAEvC,SAAOC,IAAcG,IAAOC,IAAOA,IAAOD;AAC5C,CAAC;"}
@@ -1,5 +0,0 @@
1
- export function getSavedSearchParams(searchParams: any): string;
2
- export function saveAndTransformSearchParams(searchParams: any, includeSearchParams?: boolean, excludeParamsNames?: any[]): string;
3
- export function transformSearchParams(params: any): string;
4
- export function getFilteredSearchParams(searchParams: any, excludeParamsNames?: any[]): string;
5
- //# sourceMappingURL=filter.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/filter.util.js"],"names":[],"mappings":"AAsBO,gEAEN;AAEM,mIAaN;AAEM,2DAEN;AAEM,+FAUN"}
@@ -1,23 +0,0 @@
1
- const s = "savedParams", o = (r) => {
2
- var a;
3
- return atob(((a = new URLSearchParams(r)) == null ? void 0 : a.get(s)) ?? "") ?? "";
4
- }, S = (r, a = !1, t = []) => {
5
- let e = "?";
6
- if (a) {
7
- const n = c(r, t);
8
- e = n ? `${n}&` : e;
9
- }
10
- return r ? `${e}${s}=${btoa(r)}` : "";
11
- }, m = (r) => r ? `${s}=${btoa(r)}` : "", c = (r, a = []) => {
12
- const t = new URLSearchParams(r);
13
- a.forEach((n) => t.delete(n));
14
- const e = t.toString();
15
- return e ? `?${e}` : "";
16
- };
17
- export {
18
- c as getFilteredSearchParams,
19
- o as getSavedSearchParams,
20
- S as saveAndTransformSearchParams,
21
- m as transformSearchParams
22
- };
23
- //# sourceMappingURL=filter.util.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter.util.mjs","sources":["../../src/lib/utils/filter.util.js"],"sourcesContent":["/*\nCopyright 2019 Iguazio Systems Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\n\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\n\nconst SAVED_PARAMS = 'savedParams'\n\nexport const getSavedSearchParams = searchParams => {\n return atob(new URLSearchParams(searchParams)?.get(SAVED_PARAMS) ?? '') ?? ''\n}\n\nexport const saveAndTransformSearchParams = (\n searchParams,\n includeSearchParams = false,\n excludeParamsNames = []\n) => {\n let newSearchParams = '?'\n\n if (includeSearchParams) {\n const filteredNewSearchParams = getFilteredSearchParams(searchParams, excludeParamsNames)\n newSearchParams = filteredNewSearchParams ? `${filteredNewSearchParams}&` : newSearchParams\n }\n\n return searchParams ? `${newSearchParams}${SAVED_PARAMS}=${btoa(searchParams)}` : ''\n}\n\nexport const transformSearchParams = params => {\n return params ? `${SAVED_PARAMS}=${btoa(params)}` : ''\n}\n\nexport const getFilteredSearchParams = (searchParams, excludeParamsNames = []) => {\n const params = new URLSearchParams(searchParams)\n\n excludeParamsNames.forEach(paramName => params.delete(paramName))\n\n const newSearchParams = params.toString()\n\n if (!newSearchParams) return ''\n\n return `?${newSearchParams}`\n}\n"],"names":["SAVED_PARAMS","getSavedSearchParams","searchParams","_a","saveAndTransformSearchParams","includeSearchParams","excludeParamsNames","newSearchParams","filteredNewSearchParams","getFilteredSearchParams","transformSearchParams","params","paramName"],"mappings":"AAoBA,MAAMA,IAAe,eAERC,IAAuB,CAAAC,MAAgB;AAtBpD,MAAAC;AAuBE,SAAO,OAAKA,IAAA,IAAI,gBAAgBD,CAAY,MAAhC,gBAAAC,EAAmC,IAAIH,OAAiB,EAAE,KAAK;AAC7E,GAEaI,IAA+B,CAC1CF,GACAG,IAAsB,IACtBC,IAAqB,CAAA,MAClB;AACH,MAAIC,IAAkB;AAEtB,MAAIF,GAAqB;AACvB,UAAMG,IAA0BC,EAAwBP,GAAcI,CAAkB;AACxF,IAAAC,IAAkBC,IAA0B,GAAGA,CAAuB,MAAMD;AAAA,EAC9E;AAEA,SAAOL,IAAe,GAAGK,CAAe,GAAGP,CAAY,IAAI,KAAKE,CAAY,CAAC,KAAK;AACpF,GAEaQ,IAAwB,CAAAC,MAC5BA,IAAS,GAAGX,CAAY,IAAI,KAAKW,CAAM,CAAC,KAAK,IAGzCF,IAA0B,CAACP,GAAcI,IAAqB,OAAO;AAChF,QAAMK,IAAS,IAAI,gBAAgBT,CAAY;AAE/C,EAAAI,EAAmB,QAAQ,CAAAM,MAAaD,EAAO,OAAOC,CAAS,CAAC;AAEhE,QAAML,IAAkBI,EAAO,SAAQ;AAEvC,SAAKJ,IAEE,IAAIA,CAAe,KAFG;AAG/B;"}
@@ -1,12 +0,0 @@
1
- export function setFieldState(args: any, state: any): void;
2
- export function areFormValuesChanged(initialValues: any, values: any): boolean;
3
- export function generateObjectFromKeyValue(keyValueList?: any[]): any;
4
- export function parseObjectToKeyValue(object?: {}): {
5
- data: {
6
- key: string;
7
- value: any;
8
- };
9
- }[];
10
- export function isSubmitDisabled(formState: any): any;
11
- export function clearArrayFromEmptyObjectElements(arr?: any[]): any[];
12
- //# sourceMappingURL=form.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/form.util.js"],"names":[],"mappings":"AAkBO,2DAUN;AAEM,+EAaN;AAEM,sEAMN;AAEM;;;;;IASN;AAEM,sDAEN;AAUM,sEAIN"}
@@ -1,30 +0,0 @@
1
- import { set as u, isEqual as l, mapValues as m, some as c, get as d, isNil as o, isEmpty as y } from "lodash";
2
- const b = (e, t) => {
3
- let r = e[0], i = e[1], n = t.fields[r];
4
- if (n)
5
- for (let s in i)
6
- u(n, s, i[s]);
7
- }, O = (e, t) => {
8
- const r = (i, n) => {
9
- if (n !== "")
10
- return n;
11
- };
12
- return !l(
13
- JSON.stringify(a(e), r),
14
- JSON.stringify(a(t), r)
15
- );
16
- }, F = (e = []) => e.reduce((t, r) => (t[r.data.key] = r.data.value, t), {}), g = (e = {}) => Object.entries(e).map(([t, r]) => ({
17
- data: {
18
- key: t,
19
- value: r
20
- }
21
- })), E = (e) => e.submitting || e.invalid && e.submitFailed, a = (e = {}) => m(e, (t) => Array.isArray(t) ? f(t) : t), f = (e = []) => e.filter((t) => c(d(t, "data", t), (r) => !o(r) && !y(r)));
22
- export {
23
- O as areFormValuesChanged,
24
- f as clearArrayFromEmptyObjectElements,
25
- F as generateObjectFromKeyValue,
26
- E as isSubmitDisabled,
27
- g as parseObjectToKeyValue,
28
- b as setFieldState
29
- };
30
- //# sourceMappingURL=form.util.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.util.mjs","sources":["../../src/lib/utils/form.util.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\nimport { get, isEmpty, isEqual, isNil, mapValues, set, some } from 'lodash'\n\nexport const setFieldState = (args, state) => {\n let fieldName = args[0]\n let states = args[1]\n let field = state.fields[fieldName]\n\n if (field) {\n for (let stateName in states) {\n set(field, stateName, states[stateName])\n }\n }\n}\n\nexport const areFormValuesChanged = (initialValues, values) => {\n const replacer = (key, value) => {\n if (value === '') {\n return undefined\n }\n\n return value\n }\n\n return !isEqual(\n JSON.stringify(clearObjectFromEmptyArrayElements(initialValues), replacer),\n JSON.stringify(clearObjectFromEmptyArrayElements(values), replacer)\n )\n}\n\nexport const generateObjectFromKeyValue = (keyValueList = []) => {\n return keyValueList.reduce((acc, keyValue) => {\n acc[keyValue.data.key] = keyValue.data.value\n\n return acc\n }, {})\n}\n\nexport const parseObjectToKeyValue = (object = {}) => {\n return Object.entries(object).map(([key, value]) => {\n return {\n data: {\n key,\n value\n }\n }\n })\n}\n\nexport const isSubmitDisabled = formState => {\n return formState.submitting || (formState.invalid && formState.submitFailed)\n}\n\nconst clearObjectFromEmptyArrayElements = (obj = {}) => {\n return mapValues(obj, objValue => {\n if (!Array.isArray(objValue)) return objValue\n\n return clearArrayFromEmptyObjectElements(objValue)\n })\n}\n\nexport const clearArrayFromEmptyObjectElements = (arr = []) => {\n return arr.filter(arrayElement => {\n return some(get(arrayElement, 'data', arrayElement), val => !isNil(val) && !isEmpty(val))\n })\n}\n"],"names":["setFieldState","args","state","fieldName","states","field","stateName","set","areFormValuesChanged","initialValues","values","replacer","key","value","isEqual","clearObjectFromEmptyArrayElements","generateObjectFromKeyValue","keyValueList","acc","keyValue","parseObjectToKeyValue","object","isSubmitDisabled","formState","obj","mapValues","objValue","clearArrayFromEmptyObjectElements","arr","arrayElement","some","get","val","isNil","isEmpty"],"mappings":";AAkBY,MAACA,IAAgB,CAACC,GAAMC,MAAU;AAC5C,MAAIC,IAAYF,EAAK,CAAC,GAClBG,IAASH,EAAK,CAAC,GACfI,IAAQH,EAAM,OAAOC,CAAS;AAElC,MAAIE;AACF,aAASC,KAAaF;AACpB,MAAAG,EAAIF,GAAOC,GAAWF,EAAOE,CAAS,CAAC;AAG7C,GAEaE,IAAuB,CAACC,GAAeC,MAAW;AAC7D,QAAMC,IAAW,CAACC,GAAKC,MAAU;AAC/B,QAAIA,MAAU;AAId,aAAOA;AAAA,EACT;AAEA,SAAO,CAACC;AAAA,IACN,KAAK,UAAUC,EAAkCN,CAAa,GAAGE,CAAQ;AAAA,IACzE,KAAK,UAAUI,EAAkCL,CAAM,GAAGC,CAAQ;AAAA,EACtE;AACA,GAEaK,IAA6B,CAACC,IAAe,OACjDA,EAAa,OAAO,CAACC,GAAKC,OAC/BD,EAAIC,EAAS,KAAK,GAAG,IAAIA,EAAS,KAAK,OAEhCD,IACN,CAAA,CAAE,GAGME,IAAwB,CAACC,IAAS,OACtC,OAAO,QAAQA,CAAM,EAAE,IAAI,CAAC,CAACT,GAAKC,CAAK,OACrC;AAAA,EACL,MAAM;AAAA,IACJ,KAAAD;AAAA,IACA,OAAAC;AAAA,EACR;AACA,EACG,GAGUS,IAAmB,CAAAC,MACvBA,EAAU,cAAeA,EAAU,WAAWA,EAAU,cAG3DR,IAAoC,CAACS,IAAM,OACxCC,EAAUD,GAAK,CAAAE,MACf,MAAM,QAAQA,CAAQ,IAEpBC,EAAkCD,CAAQ,IAFZA,CAGtC,GAGUC,IAAoC,CAACC,IAAM,OAC/CA,EAAI,OAAO,CAAAC,MACTC,EAAKC,EAAIF,GAAc,QAAQA,CAAY,GAAG,CAAAG,MAAO,CAACC,EAAMD,CAAG,KAAK,CAACE,EAAQF,CAAG,CAAC,CACzF;"}
@@ -1,10 +0,0 @@
1
- export function generateChipsList(chips: any, maxLength: any): {
2
- visibleChips: any;
3
- hiddenChips: any;
4
- hiddenChipsNumber: string;
5
- } | {
6
- visibleChips: any;
7
- hiddenChips: any[];
8
- hiddenChipsNumber?: undefined;
9
- };
10
- //# sourceMappingURL=generateChipsList.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generateChipsList.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/generateChipsList.util.js"],"names":[],"mappings":"AAgBO;;;;;;;;EAgBN"}
@@ -1,19 +0,0 @@
1
- const t = (i, e) => {
2
- if (i.length > e) {
3
- let s = `+ ${i.length - e}`;
4
- const l = i.slice(e);
5
- return {
6
- visibleChips: i.slice(0, e),
7
- hiddenChips: l,
8
- hiddenChipsNumber: s
9
- };
10
- }
11
- return {
12
- visibleChips: i,
13
- hiddenChips: []
14
- };
15
- };
16
- export {
17
- t as generateChipsList
18
- };
19
- //# sourceMappingURL=generateChipsList.util.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generateChipsList.util.mjs","sources":["../../src/lib/utils/generateChipsList.util.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\nexport const generateChipsList = (chips, maxLength) => {\n if (chips.length > maxLength) {\n let hiddenChipsNumber = `+ ${chips.length - maxLength}`\n const hiddenChips = chips.slice(maxLength)\n const visibleChips = chips.slice(0, maxLength)\n\n return {\n visibleChips,\n hiddenChips,\n hiddenChipsNumber\n }\n }\n return {\n visibleChips: chips,\n hiddenChips: []\n }\n}\n"],"names":["generateChipsList","chips","maxLength","hiddenChipsNumber","hiddenChips"],"mappings":"AAgBY,MAACA,IAAoB,CAACC,GAAOC,MAAc;AACrD,MAAID,EAAM,SAASC,GAAW;AAC5B,QAAIC,IAAoB,KAAKF,EAAM,SAASC,CAAS;AACrD,UAAME,IAAcH,EAAM,MAAMC,CAAS;AAGzC,WAAO;AAAA,MACL,cAHmBD,EAAM,MAAM,GAAGC,CAAS;AAAA,MAI3C,aAAAE;AAAA,MACA,mBAAAD;AAAA,IACN;AAAA,EACE;AACA,SAAO;AAAA,IACL,cAAcF;AAAA,IACd,aAAa,CAAA;AAAA,EACjB;AACA;"}
@@ -1,2 +0,0 @@
1
- export function getFirstScrollableParent(node: Node): Node;
2
- //# sourceMappingURL=getFirstScrollableParent.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getFirstScrollableParent.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/getFirstScrollableParent.util.js"],"names":[],"mappings":"AA0CO,+CAHI,IAAI,GACF,IAAI,CAOgC"}
@@ -1,5 +0,0 @@
1
- const l = /(auto|scroll|hidden)/, e = (t, o) => getComputedStyle(t, null).getPropertyValue(o), r = (t) => l.test(e(t, "overflow") + e(t, "overflow-y") + e(t, "overflow-x")), c = (t) => !t || t === document.body ? document.body : r(t) ? t : c(t.parentNode);
2
- export {
3
- c as getFirstScrollableParent
4
- };
5
- //# sourceMappingURL=getFirstScrollableParent.util.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getFirstScrollableParent.util.mjs","sources":["../../src/lib/utils/getFirstScrollableParent.util.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\nconst regex = /(auto|scroll|hidden)/\n\n/**\n * Retrieves the computed style of a node for the specified CSS property.\n *\n * @param {Node} node - The DOM node.\n * @param {string} prop - The CSS property to retrieve.\n * @returns {string} The computed style value.\n */\nconst style = (node, prop) => getComputedStyle(node, null).getPropertyValue(prop)\n\n/**\n * Checks if the given node has a scrollable overflow.\n *\n * @param {Node} node - The DOM node.\n * @returns {boolean} Returns true if the node has a scrollable overflow, false otherwise.\n */\nconst scroll = node =>\n regex.test(style(node, 'overflow') + style(node, 'overflow-y') + style(node, 'overflow-x'))\n\n/**\n * Finds the first scrollable parent node of the given node.\n *\n * @param {Node} node - The DOM node.\n * @returns {Node} The first scrollable parent node.\n */\nexport const getFirstScrollableParent = node =>\n !node || node === document.body\n ? document.body\n : scroll(node)\n ? node\n : getFirstScrollableParent(node.parentNode)\n"],"names":["regex","style","node","prop","scroll","getFirstScrollableParent"],"mappings":"AAgBA,MAAMA,IAAQ,wBASRC,IAAQ,CAACC,GAAMC,MAAS,iBAAiBD,GAAM,IAAI,EAAE,iBAAiBC,CAAI,GAQ1EC,IAAS,CAAAF,MACbF,EAAM,KAAKC,EAAMC,GAAM,UAAU,IAAID,EAAMC,GAAM,YAAY,IAAID,EAAMC,GAAM,YAAY,CAAC,GAQ/EG,IAA2B,CAAAH,MACtC,CAACA,KAAQA,MAAS,SAAS,OACvB,SAAS,OACTE,EAAOF,CAAI,IACTA,IACAG,EAAyBH,EAAK,UAAU;"}
@@ -1,13 +0,0 @@
1
- export * as chips from "./chips.util";
2
- export * as common from "./common.util";
3
- export * as createProxy from "./proxyServerConfig.util";
4
- export * as datetime from "./datetime.util";
5
- export * as filter from "./filter.util";
6
- export * as form from "./form.util";
7
- export * as generateChipsList from "./generateChipsList.util";
8
- export * as getFirstScrollableParent from "./getFirstScrollableParent.util";
9
- export * as math from "./math.util";
10
- export * as notification from "./notification.util";
11
- export * as string from "./string.util";
12
- export * as validation from "./validation.util";
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/utils/index.js"],"names":[],"mappings":""}
@@ -1,27 +0,0 @@
1
- import * as t from "./chips.util.mjs";
2
- import * as r from "./common.util.mjs";
3
- import * as o from "./proxyServerConfig.util.mjs";
4
- import * as i from "./datetime.util.mjs";
5
- import * as a from "./filter.util.mjs";
6
- import * as e from "./form.util.mjs";
7
- import * as m from "./generateChipsList.util.mjs";
8
- import * as s from "./getFirstScrollableParent.util.mjs";
9
- import * as p from "./math.util.mjs";
10
- import * as l from "./notification.util.mjs";
11
- import * as f from "./string.util.mjs";
12
- import * as n from "./validation.util.mjs";
13
- export {
14
- t as chips,
15
- r as common,
16
- o as createProxy,
17
- i as datetime,
18
- a as filter,
19
- e as form,
20
- m as generateChipsList,
21
- s as getFirstScrollableParent,
22
- p as math,
23
- l as notification,
24
- f as string,
25
- n as validation
26
- };
27
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -1,2 +0,0 @@
1
- export function performFloatOperation(num1: number, num2: number, operator: string): number;
2
- //# sourceMappingURL=math.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"math.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/math.util.js"],"names":[],"mappings":"AAyBO,4CALI,MAAM,QACN,MAAM,YACN,MAAM,GACJ,MAAM,CAkBlB"}
@@ -1,18 +0,0 @@
1
- const n = (r, o, e) => {
2
- const a = Math.max(
3
- (r.toString().split(".")[1] || "").length,
4
- (o.toString().split(".")[1] || "").length
5
- ), t = Math.pow(10, a);
6
- switch (e) {
7
- case "+":
8
- return (Math.round(r * t) + Math.round(o * t)) / t;
9
- case "-":
10
- return (Math.round(r * t) - Math.round(o * t)) / t;
11
- default:
12
- return 0;
13
- }
14
- };
15
- export {
16
- n as performFloatOperation
17
- };
18
- //# sourceMappingURL=math.util.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"math.util.mjs","sources":["../../src/lib/utils/math.util.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\n\n/**\n * Performs a floating-point arithmetic operation on two numbers.\n *\n * @param {number} num1 - The first operand.\n * @param {number} num2 - The second operand.\n * @param {string} operator - The operator to use for the operation. Supported operators are '+', and '-'.\n * @returns {number} The result of the arithmetic operation.\n */\nexport const performFloatOperation = (num1, num2, operator) => {\n const precision = Math.max(\n (num1.toString().split('.')[1] || '').length,\n (num2.toString().split('.')[1] || '').length\n )\n\n const multiplier = Math.pow(10, precision)\n\n switch (operator) {\n case '+':\n return (Math.round(num1 * multiplier) + Math.round(num2 * multiplier)) / multiplier\n case '-':\n return (Math.round(num1 * multiplier) - Math.round(num2 * multiplier)) / multiplier\n default:\n return 0\n }\n}\n"],"names":["performFloatOperation","num1","num2","operator","precision","multiplier"],"mappings":"AAyBY,MAACA,IAAwB,CAACC,GAAMC,GAAMC,MAAa;AAC7D,QAAMC,IAAY,KAAK;AAAA,KACpBH,EAAK,SAAQ,EAAG,MAAM,GAAG,EAAE,CAAC,KAAK,IAAI;AAAA,KACrCC,EAAK,WAAW,MAAM,GAAG,EAAE,CAAC,KAAK,IAAI;AAAA,EAC1C,GAEQG,IAAa,KAAK,IAAI,IAAID,CAAS;AAEzC,UAAQD,GAAQ;AAAA,IACd,KAAK;AACH,cAAQ,KAAK,MAAMF,IAAOI,CAAU,IAAI,KAAK,MAAMH,IAAOG,CAAU,KAAKA;AAAA,IAC3E,KAAK;AACH,cAAQ,KAAK,MAAMJ,IAAOI,CAAU,IAAI,KAAK,MAAMH,IAAOG,CAAU,KAAKA;AAAA,IAC3E;AACE,aAAO;AAAA,EACb;AACA;"}
@@ -1,2 +0,0 @@
1
- export function showErrorNotification(dispatch: any, error: any, defaultErrorMsg: any, customErrorMsg: any, retryCallback?: any, showNotificationCallback?: any): void;
2
- //# sourceMappingURL=notification.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/notification.util.js"],"names":[],"mappings":"AAwBO,uKAsBN"}
@@ -1,17 +0,0 @@
1
- import { setNotification as f } from "../reducers/notificationReducer.mjs";
2
- import { getErrorMsg as M } from "./common.util.mjs";
3
- import { FORBIDDEN_ERROR_STATUS_CODE as O } from "../constants.mjs";
4
- const S = (g, s, D, R, m = null, t = null) => {
5
- var u, E;
6
- const n = R || M(s, D), p = {
7
- status: ((u = s == null ? void 0 : s.response) == null ? void 0 : u.status) || 400,
8
- id: Math.random(),
9
- message: n,
10
- error: s
11
- };
12
- m && ((E = s == null ? void 0 : s.response) == null ? void 0 : E.status) !== O && (p.retry = m), t == null || t(n), g(f(p));
13
- };
14
- export {
15
- S as showErrorNotification
16
- };
17
- //# sourceMappingURL=notification.util.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.util.mjs","sources":["../../src/lib/utils/notification.util.js"],"sourcesContent":["/*\nCopyright 2019 Iguazio Systems Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\n\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\n\nimport { setNotification } from '../reducers/notificationReducer'\nimport { getErrorMsg } from './common.util'\nimport { FORBIDDEN_ERROR_STATUS_CODE } from '../constants'\n\nexport const showErrorNotification = (\n dispatch,\n error,\n defaultErrorMsg,\n customErrorMsg,\n retryCallback = null,\n showNotificationCallback = null\n) => {\n const errorMessage = customErrorMsg || getErrorMsg(error, defaultErrorMsg)\n const notificationData = {\n status: error?.response?.status || 400,\n id: Math.random(),\n message: errorMessage,\n error\n }\n\n if (retryCallback && error?.response?.status !== FORBIDDEN_ERROR_STATUS_CODE) {\n notificationData.retry = retryCallback\n }\n\n showNotificationCallback?.(errorMessage)\n dispatch(setNotification(notificationData))\n}\n"],"names":["showErrorNotification","dispatch","error","defaultErrorMsg","customErrorMsg","retryCallback","showNotificationCallback","errorMessage","getErrorMsg","notificationData","_a","_b","FORBIDDEN_ERROR_STATUS_CODE","setNotification"],"mappings":";;;AAwBY,MAACA,IAAwB,CACnCC,GACAC,GACAC,GACAC,GACAC,IAAgB,MAChBC,IAA2B,SACxB;;AACH,QAAMC,IAAeH,KAAkBI,EAAYN,GAAOC,CAAe,GACnEM,IAAmB;AAAA,IACvB,UAAQC,IAAAR,KAAA,gBAAAA,EAAO,aAAP,gBAAAQ,EAAiB,WAAU;AAAA,IACnC,IAAI,KAAK,OAAM;AAAA,IACf,SAASH;AAAA,IACT,OAAAL;AAAA,EACJ;AAEE,EAAIG,OAAiBM,IAAAT,KAAA,gBAAAA,EAAO,aAAP,gBAAAS,EAAiB,YAAWC,MAC/CH,EAAiB,QAAQJ,IAG3BC,KAAA,QAAAA,EAA2BC,IAC3BN,EAASY,EAAgBJ,CAAgB,CAAC;AAC5C;"}
@@ -1,27 +0,0 @@
1
- export function mlrunProxyConfig(env: any): {
2
- '/api': {
3
- target: any;
4
- changeOrigin: boolean;
5
- headers: {
6
- Connection: string;
7
- 'x-v3io-session-key': any;
8
- 'x-remote-user': string;
9
- };
10
- };
11
- '/nuclio': {
12
- target: any;
13
- changeOrigin: boolean;
14
- rewrite: (path: any) => any;
15
- };
16
- '/iguazio': {
17
- target: any;
18
- changeOrigin: boolean;
19
- rewrite: (path: any) => any;
20
- };
21
- '/function-catalog': {
22
- target: any;
23
- changeOrigin: boolean;
24
- rewrite: (path: any) => any;
25
- };
26
- };
27
- //# sourceMappingURL=proxyServerConfig.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proxyServerConfig.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/proxyServerConfig.util.js"],"names":[],"mappings":"AAoBO;;;;;;;;;;;;;;;;;;;;;;;;;EAiCL"}
@@ -1,30 +0,0 @@
1
- const r = (e) => ({
2
- "/api": e.VITE_MLRUN_API_URL ? {
3
- target: e.VITE_MLRUN_API_URL,
4
- changeOrigin: !0,
5
- headers: {
6
- Connection: "keep-alive",
7
- "x-v3io-session-key": e.VITE_MLRUN_V3IO_ACCESS_KEY,
8
- "x-remote-user": "admin"
9
- }
10
- } : void 0,
11
- "/nuclio": e.VITE_NUCLIO_API_URL ? {
12
- target: e.VITE_NUCLIO_API_URL,
13
- changeOrigin: !0,
14
- rewrite: (i) => i.replace(/^\/nuclio/, "")
15
- } : void 0,
16
- "/iguazio": e.VITE_IGUAZIO_API_URL ? {
17
- target: e.VITE_IGUAZIO_API_URL,
18
- changeOrigin: !0,
19
- rewrite: (i) => i.replace(/^\/iguazio/, "")
20
- } : void 0,
21
- "/function-catalog": e.VITE_FUNCTION_CATALOG_URL ? {
22
- target: e.VITE_FUNCTION_CATALOG_URL,
23
- changeOrigin: !0,
24
- rewrite: (i) => i.replace(/^\/function-catalog/, "")
25
- } : void 0
26
- });
27
- export {
28
- r as mlrunProxyConfig
29
- };
30
- //# sourceMappingURL=proxyServerConfig.util.mjs.map