iguazio.dashboard-react-controls 2.2.25 → 3.0.1

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 (368) hide show
  1. package/dist/components/Backdrop/Backdrop.d.ts +14 -0
  2. package/dist/components/Backdrop/Backdrop.d.ts.map +1 -0
  3. package/dist/components/Backdrop/Backdrop.mjs +29 -0
  4. package/dist/components/Backdrop/Backdrop.mjs.map +1 -0
  5. package/dist/components/Button/Button.d.ts +28 -0
  6. package/dist/components/Button/Button.d.ts.map +1 -0
  7. package/dist/components/Button/Button.mjs +43 -0
  8. package/dist/components/Button/Button.mjs.map +1 -0
  9. package/dist/components/Button/Button.stories.d.ts +14 -0
  10. package/dist/components/Button/Button.stories.d.ts.map +1 -0
  11. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +33 -0
  12. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -0
  13. package/dist/components/ConfirmDialog/ConfirmDialog.mjs +83 -0
  14. package/dist/components/ConfirmDialog/ConfirmDialog.mjs.map +1 -0
  15. package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts +8 -0
  16. package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts.map +1 -0
  17. package/dist/components/FormCheckBox/FormCheckBox.d.ts +21 -0
  18. package/dist/components/FormCheckBox/FormCheckBox.d.ts.map +1 -0
  19. package/dist/components/FormCheckBox/FormCheckBox.mjs +54 -0
  20. package/dist/components/FormCheckBox/FormCheckBox.mjs.map +1 -0
  21. package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts +7 -0
  22. package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts.map +1 -0
  23. package/dist/components/FormChipCell/FormChip/FormChip.d.ts +45 -0
  24. package/dist/components/FormChipCell/FormChip/FormChip.d.ts.map +1 -0
  25. package/dist/components/FormChipCell/FormChip/FormChip.mjs +78 -0
  26. package/dist/components/FormChipCell/FormChip/FormChip.mjs.map +1 -0
  27. package/dist/components/FormChipCell/FormChipCell.d.ts +44 -0
  28. package/dist/components/FormChipCell/FormChipCell.d.ts.map +1 -0
  29. package/dist/components/FormChipCell/FormChipCell.mjs +239 -0
  30. package/dist/components/FormChipCell/FormChipCell.mjs.map +1 -0
  31. package/dist/components/FormChipCell/FormChipCellView.d.ts +56 -0
  32. package/dist/components/FormChipCell/FormChipCellView.d.ts.map +1 -0
  33. package/dist/components/FormChipCell/FormChipCellView.mjs +169 -0
  34. package/dist/components/FormChipCell/FormChipCellView.mjs.map +1 -0
  35. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts +22 -0
  36. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts.map +1 -0
  37. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.mjs +72 -0
  38. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.mjs.map +1 -0
  39. package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts +35 -0
  40. package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts.map +1 -0
  41. package/dist/components/FormChipCell/NewChipForm/NewChipForm.mjs +270 -0
  42. package/dist/components/FormChipCell/NewChipForm/NewChipForm.mjs.map +1 -0
  43. package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts +16 -0
  44. package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts.map +1 -0
  45. package/dist/components/FormChipCell/NewChipInput/NewChipInput.mjs +36 -0
  46. package/dist/components/FormChipCell/NewChipInput/NewChipInput.mjs.map +1 -0
  47. package/dist/components/FormChipCell/formChipCell.util.d.ts +6 -0
  48. package/dist/components/FormChipCell/formChipCell.util.d.ts.map +1 -0
  49. package/dist/components/FormChipCell/formChipCell.util.mjs +24 -0
  50. package/dist/components/FormChipCell/formChipCell.util.mjs.map +1 -0
  51. package/dist/components/FormCombobox/FormCombobox.d.ts +56 -0
  52. package/dist/components/FormCombobox/FormCombobox.d.ts.map +1 -0
  53. package/dist/components/FormCombobox/FormCombobox.mjs +278 -0
  54. package/dist/components/FormCombobox/FormCombobox.mjs.map +1 -0
  55. package/dist/components/FormCombobox/FormCombobox.stories.d.ts +12 -0
  56. package/dist/components/FormCombobox/FormCombobox.stories.d.ts.map +1 -0
  57. package/dist/components/FormInput/FormInput.d.ts +3 -0
  58. package/dist/components/FormInput/FormInput.d.ts.map +1 -0
  59. package/dist/components/FormInput/FormInput.mjs +272 -0
  60. package/dist/components/FormInput/FormInput.mjs.map +1 -0
  61. package/dist/components/FormInput/FormInput.stories.d.ts +14 -0
  62. package/dist/components/FormInput/FormInput.stories.d.ts.map +1 -0
  63. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts +20 -0
  64. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts.map +1 -0
  65. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.mjs +61 -0
  66. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.mjs.map +1 -0
  67. package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts +49 -0
  68. package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts.map +1 -0
  69. package/dist/components/FormKeyValueTable/FormKeyValueTable.mjs +202 -0
  70. package/dist/components/FormKeyValueTable/FormKeyValueTable.mjs.map +1 -0
  71. package/dist/components/FormOnChange/FormOnChange.d.ts +12 -0
  72. package/dist/components/FormOnChange/FormOnChange.d.ts.map +1 -0
  73. package/dist/components/FormOnChange/FormOnChange.mjs +33 -0
  74. package/dist/components/FormOnChange/FormOnChange.mjs.map +1 -0
  75. package/dist/components/FormRadio/FormRadio.d.ts +19 -0
  76. package/dist/components/FormRadio/FormRadio.d.ts.map +1 -0
  77. package/dist/components/FormRadio/FormRadio.mjs +57 -0
  78. package/dist/components/FormRadio/FormRadio.mjs.map +1 -0
  79. package/dist/components/FormRadio/FormRadio.stories.d.ts +7 -0
  80. package/dist/components/FormRadio/FormRadio.stories.d.ts.map +1 -0
  81. package/dist/components/FormSelect/FormSelect.d.ts +43 -0
  82. package/dist/components/FormSelect/FormSelect.d.ts.map +1 -0
  83. package/dist/components/FormSelect/FormSelect.mjs +257 -0
  84. package/dist/components/FormSelect/FormSelect.mjs.map +1 -0
  85. package/dist/components/FormSelect/FormSelect.stories.d.ts +10 -0
  86. package/dist/components/FormSelect/FormSelect.stories.d.ts.map +1 -0
  87. package/dist/components/FormTextarea/FormTextarea.d.ts +40 -0
  88. package/dist/components/FormTextarea/FormTextarea.d.ts.map +1 -0
  89. package/dist/components/FormTextarea/FormTextarea.mjs +122 -0
  90. package/dist/components/FormTextarea/FormTextarea.mjs.map +1 -0
  91. package/dist/components/FormTextarea/FormTextarea.stories.d.ts +9 -0
  92. package/dist/components/FormTextarea/FormTextarea.stories.d.ts.map +1 -0
  93. package/dist/components/FormToggle/FormToggle.d.ts +18 -0
  94. package/dist/components/FormToggle/FormToggle.d.ts.map +1 -0
  95. package/dist/components/FormToggle/FormToggle.mjs +48 -0
  96. package/dist/components/FormToggle/FormToggle.mjs.map +1 -0
  97. package/dist/components/Modal/Modal.d.ts +29 -0
  98. package/dist/components/Modal/Modal.d.ts.map +1 -0
  99. package/dist/components/Modal/Modal.mjs +71 -0
  100. package/dist/components/Modal/Modal.mjs.map +1 -0
  101. package/dist/components/PopUpDialog/PopUpDialog.d.ts +28 -0
  102. package/dist/components/PopUpDialog/PopUpDialog.d.ts.map +1 -0
  103. package/dist/components/PopUpDialog/PopUpDialog.mjs +90 -0
  104. package/dist/components/PopUpDialog/PopUpDialog.mjs.map +1 -0
  105. package/dist/components/RoundedIcon/RoundedIcon.d.ts +23 -0
  106. package/dist/components/RoundedIcon/RoundedIcon.d.ts.map +1 -0
  107. package/dist/components/RoundedIcon/RoundedIcon.mjs +40 -0
  108. package/dist/components/RoundedIcon/RoundedIcon.mjs.map +1 -0
  109. package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts +9 -0
  110. package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts.map +1 -0
  111. package/dist/components/Tip/Tip.d.ts +14 -0
  112. package/dist/components/Tip/Tip.d.ts.map +1 -0
  113. package/dist/components/Tip/Tip.mjs +67 -0
  114. package/dist/components/Tip/Tip.mjs.map +1 -0
  115. package/dist/components/Tip/Tip.stories.d.ts +7 -0
  116. package/dist/components/Tip/Tip.stories.d.ts.map +1 -0
  117. package/dist/components/Tooltip/Tooltip.d.ts +22 -0
  118. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
  119. package/dist/components/Tooltip/Tooltip.mjs +136 -0
  120. package/dist/components/Tooltip/Tooltip.mjs.map +1 -0
  121. package/dist/components/Tooltip/Tooltip.stories.d.ts +8 -0
  122. package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
  123. package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts +12 -0
  124. package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts.map +1 -0
  125. package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts +12 -0
  126. package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts.map +1 -0
  127. package/dist/components/TooltipTemplate/TextTooltipTemplate.mjs +21 -0
  128. package/dist/components/TooltipTemplate/TextTooltipTemplate.mjs.map +1 -0
  129. package/dist/components/Wizard/Wizard.d.ts +33 -0
  130. package/dist/components/Wizard/Wizard.d.ts.map +1 -0
  131. package/dist/components/Wizard/Wizard.mjs +129 -0
  132. package/dist/components/Wizard/Wizard.mjs.map +1 -0
  133. package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts +16 -0
  134. package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts.map +1 -0
  135. package/dist/components/Wizard/WizardSteps/WizardSteps.mjs +41 -0
  136. package/dist/components/Wizard/WizardSteps/WizardSteps.mjs.map +1 -0
  137. package/dist/components/index.d.ts +21 -0
  138. package/dist/components/index.d.ts.map +1 -0
  139. package/dist/components/index.mjs +41 -0
  140. package/dist/components/index.mjs.map +1 -0
  141. package/dist/constants.d.ts +114 -0
  142. package/dist/constants.d.ts.map +1 -0
  143. package/dist/constants.mjs +44 -0
  144. package/dist/constants.mjs.map +1 -0
  145. package/dist/elements/FormActionButton/FormActionButton.d.ts +23 -0
  146. package/dist/elements/FormActionButton/FormActionButton.d.ts.map +1 -0
  147. package/dist/elements/FormActionButton/FormActionButton.mjs +43 -0
  148. package/dist/elements/FormActionButton/FormActionButton.mjs.map +1 -0
  149. package/dist/elements/FormRowActions/FormRowActions.d.ts +27 -0
  150. package/dist/elements/FormRowActions/FormRowActions.d.ts.map +1 -0
  151. package/dist/elements/FormRowActions/FormRowActions.mjs +87 -0
  152. package/dist/elements/FormRowActions/FormRowActions.mjs.map +1 -0
  153. package/dist/elements/OptionsMenu/OptionsMenu.d.ts +18 -0
  154. package/dist/elements/OptionsMenu/OptionsMenu.d.ts.map +1 -0
  155. package/dist/elements/OptionsMenu/OptionsMenu.mjs +47 -0
  156. package/dist/elements/OptionsMenu/OptionsMenu.mjs.map +1 -0
  157. package/dist/elements/SelectOption/SelectOption.d.ts +20 -0
  158. package/dist/elements/SelectOption/SelectOption.d.ts.map +1 -0
  159. package/dist/elements/SelectOption/SelectOption.mjs +84 -0
  160. package/dist/elements/SelectOption/SelectOption.mjs.map +1 -0
  161. package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts +12 -0
  162. package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts.map +1 -0
  163. package/dist/elements/ValidationTemplate/ValidationTemplate.mjs +22 -0
  164. package/dist/elements/ValidationTemplate/ValidationTemplate.mjs.map +1 -0
  165. package/dist/elements/index.d.ts +7 -0
  166. package/dist/elements/index.d.ts.map +1 -0
  167. package/dist/elements/index.mjs +13 -0
  168. package/dist/elements/index.mjs.map +1 -0
  169. package/dist/hooks/index.d.ts +6 -0
  170. package/dist/hooks/index.d.ts.map +1 -0
  171. package/dist/hooks/index.mjs +13 -0
  172. package/dist/hooks/index.mjs.map +1 -0
  173. package/dist/hooks/useChipCell.hook.d.ts +13 -0
  174. package/dist/hooks/useChipCell.hook.d.ts.map +1 -0
  175. package/dist/hooks/useChipCell.hook.mjs +58 -0
  176. package/dist/hooks/useChipCell.hook.mjs.map +1 -0
  177. package/dist/hooks/useDebounce.hook.d.ts +2 -0
  178. package/dist/hooks/useDebounce.hook.d.ts.map +1 -0
  179. package/dist/hooks/useDebounce.hook.mjs +19 -0
  180. package/dist/hooks/useDebounce.hook.mjs.map +1 -0
  181. package/dist/hooks/useDetectOutsideClick.hook.d.ts +2 -0
  182. package/dist/hooks/useDetectOutsideClick.hook.d.ts.map +1 -0
  183. package/dist/hooks/useDetectOutsideClick.hook.mjs +15 -0
  184. package/dist/hooks/useDetectOutsideClick.hook.mjs.map +1 -0
  185. package/dist/hooks/useFormTable.hook.d.ts +16 -0
  186. package/dist/hooks/useFormTable.hook.d.ts.map +1 -0
  187. package/dist/hooks/useFormTable.hook.mjs +128 -0
  188. package/dist/hooks/useFormTable.hook.mjs.map +1 -0
  189. package/dist/hooks/useHiddenChipsBlock.hook.d.ts +4 -0
  190. package/dist/hooks/useHiddenChipsBlock.hook.d.ts.map +1 -0
  191. package/dist/hooks/useHiddenChipsBlock.hook.mjs +51 -0
  192. package/dist/hooks/useHiddenChipsBlock.hook.mjs.map +1 -0
  193. package/dist/images/add.svg.mjs +6 -0
  194. package/dist/images/add.svg.mjs.map +1 -0
  195. package/dist/images/alerts-icon.svg +3 -0
  196. package/dist/images/arrow.svg.mjs +6 -0
  197. package/dist/images/arrow.svg.mjs.map +1 -0
  198. package/dist/images/back-arrow.svg.mjs +6 -0
  199. package/dist/images/back-arrow.svg.mjs.map +1 -0
  200. package/dist/images/checkmark.svg.mjs +6 -0
  201. package/dist/images/checkmark.svg.mjs.map +1 -0
  202. package/dist/images/checkmark2.svg.mjs +6 -0
  203. package/dist/images/checkmark2.svg.mjs.map +1 -0
  204. package/dist/images/close.svg.mjs +6 -0
  205. package/dist/images/close.svg.mjs.map +1 -0
  206. package/dist/images/delete.svg.mjs +6 -0
  207. package/dist/images/delete.svg.mjs.map +1 -0
  208. package/dist/images/documents-icon.svg +3 -0
  209. package/dist/images/dropdown.svg.mjs +6 -0
  210. package/dist/images/dropdown.svg.mjs.map +1 -0
  211. package/dist/images/edit.svg.mjs +6 -0
  212. package/dist/images/edit.svg.mjs.map +1 -0
  213. package/dist/images/exclamation-mark.svg.mjs +6 -0
  214. package/dist/images/exclamation-mark.svg.mjs.map +1 -0
  215. package/dist/images/llm-prompt-icon.svg +3 -0
  216. package/dist/images/mlrun-api-gateways.svg +8 -0
  217. package/dist/images/mlrun-artifacts.svg +11 -0
  218. package/dist/images/mlrun-datasets.svg +5 -0
  219. package/dist/images/mlrun-feature-store.svg +10 -0
  220. package/dist/images/mlrun-jobs-and-workflows.svg +5 -0
  221. package/dist/images/mlrun-ml-functions.svg +8 -0
  222. package/dist/images/mlrun-models.svg +5 -0
  223. package/dist/images/mlrun-project-home.svg +5 -0
  224. package/dist/images/mlrun-project-monitoring.svg +9 -0
  225. package/dist/images/mlrun-project-settings.svg +5 -0
  226. package/dist/images/mlrun-realtime-functions.svg +8 -0
  227. package/dist/images/model-monitoring.svg +3 -0
  228. package/dist/images/plus.svg.mjs +6 -0
  229. package/dist/images/plus.svg.mjs.map +1 -0
  230. package/dist/images/popout.svg.mjs +6 -0
  231. package/dist/images/popout.svg.mjs.map +1 -0
  232. package/dist/images/question-mark.svg.mjs +6 -0
  233. package/dist/images/question-mark.svg.mjs.map +1 -0
  234. package/dist/images/range-arrow-small.svg.mjs +6 -0
  235. package/dist/images/range-arrow-small.svg.mjs.map +1 -0
  236. package/dist/images/search.svg.mjs +6 -0
  237. package/dist/images/search.svg.mjs.map +1 -0
  238. package/dist/images/success_done.svg.mjs +6 -0
  239. package/dist/images/success_done.svg.mjs.map +1 -0
  240. package/dist/images/warning.svg.mjs +6 -0
  241. package/dist/images/warning.svg.mjs.map +1 -0
  242. package/dist/index.css +1 -0
  243. package/dist/index.d.ts +8 -0
  244. package/dist/index.d.ts.map +1 -0
  245. package/dist/index.mjs +15 -0
  246. package/dist/index.mjs.map +1 -0
  247. package/dist/robots.txt +3 -0
  248. package/dist/scss/borders.scss +22 -22
  249. package/dist/scss/colors.scss +0 -11
  250. package/dist/scss/common.scss +48 -33
  251. package/dist/scss/fonts.scss +6 -0
  252. package/dist/scss/mixins.scss +117 -106
  253. package/dist/scss/shadows.scss +12 -12
  254. package/dist/scss/variables.scss +3 -3
  255. package/dist/types.d.ts +25 -0
  256. package/dist/types.d.ts.map +1 -0
  257. package/dist/types.mjs +143 -0
  258. package/dist/types.mjs.map +1 -0
  259. package/dist/utils/common.util.d.ts +10 -0
  260. package/dist/utils/common.util.d.ts.map +1 -0
  261. package/dist/utils/common.util.mjs +60 -0
  262. package/dist/utils/common.util.mjs.map +1 -0
  263. package/dist/utils/form.util.d.ts +11 -0
  264. package/dist/utils/form.util.d.ts.map +1 -0
  265. package/dist/utils/form.util.mjs +26 -0
  266. package/dist/utils/form.util.mjs.map +1 -0
  267. package/dist/utils/generateChipsList.util.d.ts +10 -0
  268. package/dist/utils/generateChipsList.util.d.ts.map +1 -0
  269. package/dist/utils/generateChipsList.util.mjs +19 -0
  270. package/dist/utils/generateChipsList.util.mjs.map +1 -0
  271. package/dist/utils/getFirstScrollableParent.util.d.ts +2 -0
  272. package/dist/utils/getFirstScrollableParent.util.d.ts.map +1 -0
  273. package/dist/utils/getFirstScrollableParent.util.mjs +5 -0
  274. package/dist/utils/getFirstScrollableParent.util.mjs.map +1 -0
  275. package/dist/utils/index.d.ts +7 -0
  276. package/dist/utils/index.d.ts.map +1 -0
  277. package/dist/utils/index.mjs +15 -0
  278. package/dist/utils/index.mjs.map +1 -0
  279. package/dist/utils/math.util.d.ts +2 -0
  280. package/dist/utils/math.util.d.ts.map +1 -0
  281. package/dist/utils/math.util.mjs +18 -0
  282. package/dist/utils/math.util.mjs.map +1 -0
  283. package/dist/utils/validation.util.d.ts +6 -0
  284. package/dist/utils/validation.util.d.ts.map +1 -0
  285. package/dist/utils/validation.util.mjs +306 -0
  286. package/dist/utils/validation.util.mjs.map +1 -0
  287. package/package.json +48 -38
  288. package/dist/components/Backdrop/Backdrop.js +0 -56
  289. package/dist/components/Backdrop/Backdrop.scss +0 -32
  290. package/dist/components/Button/Button.js +0 -73
  291. package/dist/components/Button/Button.scss +0 -171
  292. package/dist/components/ConfirmDialog/ConfirmDialog.js +0 -101
  293. package/dist/components/ConfirmDialog/confirmDialog.scss +0 -23
  294. package/dist/components/FormCheckBox/FormCheckBox.js +0 -82
  295. package/dist/components/FormCheckBox/formCheckBox.scss +0 -91
  296. package/dist/components/FormChipCell/FormChip/FormChip.js +0 -103
  297. package/dist/components/FormChipCell/FormChip/formChip.scss +0 -68
  298. package/dist/components/FormChipCell/FormChipCell.js +0 -339
  299. package/dist/components/FormChipCell/FormChipCellView.js +0 -190
  300. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.js +0 -107
  301. package/dist/components/FormChipCell/NewChipForm/NewChipForm.js +0 -353
  302. package/dist/components/FormChipCell/NewChipForm/newChipForm.scss +0 -81
  303. package/dist/components/FormChipCell/NewChipInput/NewChipInput.js +0 -71
  304. package/dist/components/FormChipCell/formChipCell.scss +0 -64
  305. package/dist/components/FormChipCell/formChipCell.util.js +0 -52
  306. package/dist/components/FormCombobox/FormCombobox.js +0 -432
  307. package/dist/components/FormCombobox/formCombobox.scss +0 -134
  308. package/dist/components/FormInput/FormInput.js +0 -408
  309. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.js +0 -91
  310. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.scss +0 -123
  311. package/dist/components/FormInput/formInput.scss +0 -76
  312. package/dist/components/FormKeyValueTable/FormKeyValueTable.js +0 -221
  313. package/dist/components/FormOnChange/FormOnChange.js +0 -69
  314. package/dist/components/FormRadio/FormRadio.js +0 -85
  315. package/dist/components/FormRadio/FormRadio.scss +0 -41
  316. package/dist/components/FormSelect/FormSelect.js +0 -353
  317. package/dist/components/FormSelect/FormSelect.test.js +0 -138
  318. package/dist/components/FormSelect/formSelect.scss +0 -97
  319. package/dist/components/FormTextarea/FormTextarea.js +0 -184
  320. package/dist/components/FormTextarea/formTextarea.scss +0 -32
  321. package/dist/components/FormToggle/FormToggle.js +0 -82
  322. package/dist/components/FormToggle/formToggle.scss +0 -58
  323. package/dist/components/Modal/Modal.js +0 -116
  324. package/dist/components/Modal/Modal.scss +0 -149
  325. package/dist/components/PopUpDialog/PopUpDialog.js +0 -171
  326. package/dist/components/PopUpDialog/popUpDialog.scss +0 -83
  327. package/dist/components/RoundedIcon/RoundedIcon.js +0 -72
  328. package/dist/components/RoundedIcon/roundedIcon.scss +0 -57
  329. package/dist/components/Tip/Tip.js +0 -116
  330. package/dist/components/Tip/Tip.test.js +0 -64
  331. package/dist/components/Tip/tip.scss +0 -94
  332. package/dist/components/Tooltip/Tooltip.js +0 -180
  333. package/dist/components/Tooltip/Tooltip.test.js +0 -155
  334. package/dist/components/Tooltip/tooltip.scss +0 -29
  335. package/dist/components/TooltipTemplate/ProducerTooltipTemplate.js +0 -53
  336. package/dist/components/TooltipTemplate/TextTooltipTemplate.js +0 -53
  337. package/dist/components/TooltipTemplate/producerTooltipTemplate.scss +0 -23
  338. package/dist/components/TooltipTemplate/textTooltipTemplate.scss +0 -21
  339. package/dist/components/Wizard/Wizard.js +0 -192
  340. package/dist/components/Wizard/Wizard.scss +0 -53
  341. package/dist/components/Wizard/WizardSteps/WizardSteps.js +0 -74
  342. package/dist/components/Wizard/WizardSteps/WizardSteps.scss +0 -108
  343. package/dist/components/index.js +0 -139
  344. package/dist/constants.js +0 -120
  345. package/dist/elements/FormActionButton/FormActionButton.js +0 -64
  346. package/dist/elements/FormRowActions/FormRowActions.js +0 -99
  347. package/dist/elements/OptionsMenu/OptionsMenu.js +0 -75
  348. package/dist/elements/OptionsMenu/optionsMenu.scss +0 -45
  349. package/dist/elements/SelectOption/SelectOption.js +0 -107
  350. package/dist/elements/SelectOption/SelectOption.test.js +0 -98
  351. package/dist/elements/SelectOption/selectOption.scss +0 -98
  352. package/dist/elements/ValidationTemplate/ValidationTemplate.js +0 -56
  353. package/dist/elements/ValidationTemplate/ValidationTemplate.scss +0 -36
  354. package/dist/elements/index.js +0 -41
  355. package/dist/hooks/index.js +0 -40
  356. package/dist/hooks/useChipCell.hook.js +0 -129
  357. package/dist/hooks/useDebounce.hook.js +0 -52
  358. package/dist/hooks/useDetectOutsideClick.hook.js +0 -47
  359. package/dist/hooks/useFormTable.hook.js +0 -224
  360. package/dist/hooks/useHiddenChipsBlock.hook.js +0 -102
  361. package/dist/index.js +0 -18
  362. package/dist/types.js +0 -127
  363. package/dist/utils/common.util.js +0 -130
  364. package/dist/utils/form.util.js +0 -70
  365. package/dist/utils/generateChipsList.util.js +0 -39
  366. package/dist/utils/getFirstScrollableParent.util.js +0 -49
  367. package/dist/utils/math.util.js +0 -44
  368. package/dist/utils/validation.util.js +0 -401
@@ -1,4 +1,4 @@
1
- @import './colors';
1
+ @use './colors';
2
2
 
3
3
  $heightRowTable: 55px;
4
4
  $leftRowOffset: 49px;
@@ -9,8 +9,8 @@ $navbarTogglerWidth: 35px;
9
9
 
10
10
  $headerHeight: 64px;
11
11
 
12
- $primaryTextColor: $primary;
13
- $secondaryTextColor: $topaz;
12
+ $primaryTextColor: colors.$primary;
13
+ $secondaryTextColor: colors.$topaz;
14
14
 
15
15
  $actionsCellWidth: 82px;
16
16
 
@@ -0,0 +1,25 @@
1
+ export const BUTTON_VARIANTS: any;
2
+ export const CHIP: any;
3
+ export const CHIP_INPUT_LIST: any;
4
+ export const CHIP_OPTIONS: any;
5
+ export const CHIPS: any;
6
+ export const POP_UP_CUSTOM_POSITION: any;
7
+ export const MODAL_SIZES: any;
8
+ export const CONFIRM_DIALOG_CANCEL_BUTTON: any;
9
+ export const CONFIRM_DIALOG_MESSAGE: any;
10
+ export const CONFIRM_DIALOG_SUBMIT_BUTTON: any;
11
+ export const WIZARD_STEPS_CONFIG: any;
12
+ export const INPUT_LINK: any;
13
+ export const SELECT_OPTION: any;
14
+ export const SELECT_OPTIONS: any;
15
+ export const INPUT_VALIDATION_RULES: any;
16
+ export const COMBOBOX_SUGGESTION_LIST: any;
17
+ export const COMBOBOX_VALIDATION_RULES: any;
18
+ export const COMBOBOX_SELECT_OPTIONS: any;
19
+ export const FORM_TABLE_EDITING_ITEM: any;
20
+ export const SORT_PROPS: any;
21
+ export const ALLOW_SORT_BY: any;
22
+ export const DEFAULT_SORT_BY: any;
23
+ export const EXCLUDE_SORT_BY: any;
24
+ export const DENSITY: any;
25
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/lib/types.js"],"names":[],"mappings":"AA+BA,kCAME;AAEF,uBAIE;AAEF,kCASC;AAED,+BAgBE;AAEF,wBAA4C;AAE5C,yCAKE;AAEF,8BAAgG;AAEhG,+CAIE;AACF,yCAAgG;AAChG,+CAIE;AAEF,sCAQC;AAED,6BAGE;AAEF,gCASE;AAEF,iCAA8D;AAE9D,yCAOC;AAED,2CAMC;AAED,4CAMC;AAED,0CAMC;AAED,0CAQE;AAEF,6BAIE;AAEF,gCAIE;AAEF,kCAAwF;AAExF,kCAIE;AAEF,0BAA+E"}
package/dist/types.mjs ADDED
@@ -0,0 +1,143 @@
1
+ import e from "prop-types";
2
+ import { DANGER_BUTTON as i, LABEL_BUTTON as s, PRIMARY_BUTTON as r, SECONDARY_BUTTON as n, TERTIARY_BUTTON as t, MODAL_SM as o, MODAL_MD as a, MODAL_LG as O, MODAL_MIN as l, MODAL_MAX as d } from "./constants.mjs";
3
+ const _ = e.oneOf([
4
+ i,
5
+ s,
6
+ r,
7
+ n,
8
+ t
9
+ ]), u = e.shape({
10
+ delimiter: e.element,
11
+ id: e.string,
12
+ value: e.string.isRequired
13
+ }), b = e.arrayOf(
14
+ e.shape({
15
+ disabled: e.bool,
16
+ icon: e.element,
17
+ id: e.string.isRequired,
18
+ label: e.string.isRequired,
19
+ subLabel: e.string,
20
+ ui: e.shape({})
21
+ })
22
+ ), p = e.shape({
23
+ background: e.oneOf([
24
+ "amethyst",
25
+ "green",
26
+ "grey",
27
+ "java",
28
+ "none",
29
+ "orange",
30
+ "purple",
31
+ "sorbus"
32
+ ]),
33
+ boldValue: e.bool,
34
+ borderColor: e.oneOf(["transparent", "orange", "green", "purple", "grey"]),
35
+ density: e.oneOf(["dense", "normal", "medium"]),
36
+ font: e.oneOf(["primary", "white", "green", "purple", "orange"]),
37
+ borderRadius: e.oneOf(["primary", "secondary"])
38
+ }), I = e.arrayOf(u), c = e.shape({
39
+ element: e.shape({}),
40
+ position: e.oneOf(["top-left", "top-right", "bottom-left", "bottom-right"]),
41
+ autoHorizontalPosition: e.bool,
42
+ autoVerticalPosition: e.bool
43
+ }), f = e.oneOf([o, a, O, l, d]), m = e.shape({
44
+ handler: e.func,
45
+ label: e.string.isRequired,
46
+ variant: e.string.isRequired
47
+ }), N = e.oneOfType([e.element, e.string]), S = e.shape({
48
+ handler: e.func.isRequired,
49
+ label: e.string.isRequired,
50
+ variant: e.string.isRequired
51
+ }), h = e.arrayOf(
52
+ e.shape({
53
+ id: e.string.isRequired,
54
+ label: e.string.isRequired,
55
+ hidden: e.bool,
56
+ disabled: e.bool,
57
+ nextIsDisabled: e.bool
58
+ })
59
+ ), L = e.shape({
60
+ show: e.oneOfType([e.bool, e.string]),
61
+ url: e.string
62
+ }), T = e.shape({
63
+ disabled: e.bool,
64
+ hidden: e.bool,
65
+ icon: e.element,
66
+ id: e.string.isRequired,
67
+ label: e.oneOfType([e.string, e.element]).isRequired,
68
+ labelHtml: e.string,
69
+ status: e.string,
70
+ subLabel: e.string
71
+ }), q = e.arrayOf(T), y = e.arrayOf(
72
+ e.shape({
73
+ name: e.string.isRequired,
74
+ label: e.string.isRequired,
75
+ pattern: e.oneOfType([e.instanceOf(RegExp), e.func]).isRequired,
76
+ isValid: e.bool
77
+ })
78
+ ), A = e.arrayOf(
79
+ e.shape({
80
+ customDelimiter: e.string,
81
+ id: e.string.isRequired,
82
+ label: e.string.isRequired
83
+ })
84
+ ), E = e.arrayOf(
85
+ e.shape({
86
+ name: e.string.isRequired,
87
+ label: e.string.isRequired,
88
+ isValid: e.bool
89
+ })
90
+ ), P = e.arrayOf(
91
+ e.shape({
92
+ className: e.string,
93
+ id: e.string.isRequired,
94
+ label: e.string.isRequired
95
+ })
96
+ ), M = e.shape({
97
+ data: e.shape({}).isRequired,
98
+ ui: e.shape({
99
+ isNew: e.bool,
100
+ index: e.number.isRequired,
101
+ fieldsPath: e.string.isRequired
102
+ }).isRequired,
103
+ [e.string]: e.any
104
+ }), C = e.shape({
105
+ selectedColumnName: e.string.isRequired,
106
+ getSortingIcon: e.func.isRequired,
107
+ sortTable: e.func.isRequired
108
+ }), D = e.oneOfType([
109
+ e.string,
110
+ e.number,
111
+ e.arrayOf(e.string, e.number)
112
+ ]), B = e.oneOfType([e.string, e.number]), U = e.oneOfType([
113
+ e.string,
114
+ e.number,
115
+ e.arrayOf(e.string, e.number)
116
+ ]), G = e.oneOf(["dense", "normal", "medium", "chunky"]);
117
+ export {
118
+ D as ALLOW_SORT_BY,
119
+ _ as BUTTON_VARIANTS,
120
+ u as CHIP,
121
+ I as CHIPS,
122
+ b as CHIP_INPUT_LIST,
123
+ p as CHIP_OPTIONS,
124
+ P as COMBOBOX_SELECT_OPTIONS,
125
+ A as COMBOBOX_SUGGESTION_LIST,
126
+ E as COMBOBOX_VALIDATION_RULES,
127
+ m as CONFIRM_DIALOG_CANCEL_BUTTON,
128
+ N as CONFIRM_DIALOG_MESSAGE,
129
+ S as CONFIRM_DIALOG_SUBMIT_BUTTON,
130
+ B as DEFAULT_SORT_BY,
131
+ G as DENSITY,
132
+ U as EXCLUDE_SORT_BY,
133
+ M as FORM_TABLE_EDITING_ITEM,
134
+ L as INPUT_LINK,
135
+ y as INPUT_VALIDATION_RULES,
136
+ f as MODAL_SIZES,
137
+ c as POP_UP_CUSTOM_POSITION,
138
+ T as SELECT_OPTION,
139
+ q as SELECT_OPTIONS,
140
+ C as SORT_PROPS,
141
+ h as WIZARD_STEPS_CONFIG
142
+ };
143
+ //# sourceMappingURL=types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.mjs","sources":["../src/lib/types.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 PropTypes from 'prop-types'\n\nimport {\n DANGER_BUTTON,\n LABEL_BUTTON,\n MODAL_LG,\n MODAL_MAX,\n MODAL_MD,\n MODAL_MIN,\n MODAL_SM,\n PRIMARY_BUTTON,\n SECONDARY_BUTTON,\n TERTIARY_BUTTON\n} from './constants'\n\nexport const BUTTON_VARIANTS = PropTypes.oneOf([\n DANGER_BUTTON,\n LABEL_BUTTON,\n PRIMARY_BUTTON,\n SECONDARY_BUTTON,\n TERTIARY_BUTTON\n])\n\nexport const CHIP = PropTypes.shape({\n delimiter: PropTypes.element,\n id: PropTypes.string,\n value: PropTypes.string.isRequired\n})\n\nexport const CHIP_INPUT_LIST = PropTypes.arrayOf(\n PropTypes.shape({\n disabled: PropTypes.bool,\n icon: PropTypes.element,\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n subLabel: PropTypes.string,\n ui: PropTypes.shape({})\n })\n)\n\nexport const CHIP_OPTIONS = PropTypes.shape({\n background: PropTypes.oneOf([\n 'amethyst',\n 'green',\n 'grey',\n 'java',\n 'none',\n 'orange',\n 'purple',\n 'sorbus'\n ]),\n boldValue: PropTypes.bool,\n borderColor: PropTypes.oneOf(['transparent', 'orange', 'green', 'purple', 'grey']),\n density: PropTypes.oneOf(['dense', 'normal', 'medium']),\n font: PropTypes.oneOf(['primary', 'white', 'green', 'purple', 'orange']),\n borderRadius: PropTypes.oneOf(['primary', 'secondary'])\n})\n\nexport const CHIPS = PropTypes.arrayOf(CHIP)\n\nexport const POP_UP_CUSTOM_POSITION = PropTypes.shape({\n element: PropTypes.shape({}),\n position: PropTypes.oneOf(['top-left', 'top-right', 'bottom-left', 'bottom-right']),\n autoHorizontalPosition: PropTypes.bool,\n autoVerticalPosition: PropTypes.bool\n})\n\nexport const MODAL_SIZES = PropTypes.oneOf([MODAL_SM, MODAL_MD, MODAL_LG, MODAL_MIN, MODAL_MAX])\n\nexport const CONFIRM_DIALOG_CANCEL_BUTTON = PropTypes.shape({\n handler: PropTypes.func,\n label: PropTypes.string.isRequired,\n variant: PropTypes.string.isRequired\n})\nexport const CONFIRM_DIALOG_MESSAGE = PropTypes.oneOfType([PropTypes.element, PropTypes.string])\nexport const CONFIRM_DIALOG_SUBMIT_BUTTON = PropTypes.shape({\n handler: PropTypes.func.isRequired,\n label: PropTypes.string.isRequired,\n variant: PropTypes.string.isRequired\n})\n\nexport const WIZARD_STEPS_CONFIG = PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n hidden: PropTypes.bool,\n disabled: PropTypes.bool,\n nextIsDisabled: PropTypes.bool\n })\n)\n\nexport const INPUT_LINK = PropTypes.shape({\n show: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n url: PropTypes.string\n})\n\nexport const SELECT_OPTION = PropTypes.shape({\n disabled: PropTypes.bool,\n hidden: PropTypes.bool,\n icon: PropTypes.element,\n id: PropTypes.string.isRequired,\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,\n labelHtml: PropTypes.string,\n status: PropTypes.string,\n subLabel: PropTypes.string\n})\n\nexport const SELECT_OPTIONS = PropTypes.arrayOf(SELECT_OPTION)\n\nexport const INPUT_VALIDATION_RULES = PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n pattern: PropTypes.oneOfType([PropTypes.instanceOf(RegExp), PropTypes.func]).isRequired,\n isValid: PropTypes.bool\n })\n)\n\nexport const COMBOBOX_SUGGESTION_LIST = PropTypes.arrayOf(\n PropTypes.shape({\n customDelimiter: PropTypes.string,\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n })\n)\n\nexport const COMBOBOX_VALIDATION_RULES = PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n isValid: PropTypes.bool\n })\n)\n\nexport const COMBOBOX_SELECT_OPTIONS = PropTypes.arrayOf(\n PropTypes.shape({\n className: PropTypes.string,\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n })\n)\n\nexport const FORM_TABLE_EDITING_ITEM = PropTypes.shape({\n data: PropTypes.shape({}).isRequired,\n ui: PropTypes.shape({\n isNew: PropTypes.bool,\n index: PropTypes.number.isRequired,\n fieldsPath: PropTypes.string.isRequired\n }).isRequired,\n [PropTypes.string]: PropTypes.any\n})\n\nexport const SORT_PROPS = PropTypes.shape({\n selectedColumnName: PropTypes.string.isRequired,\n getSortingIcon: PropTypes.func.isRequired,\n sortTable: PropTypes.func.isRequired\n})\n\nexport const ALLOW_SORT_BY = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.number,\n PropTypes.arrayOf(PropTypes.string, PropTypes.number)\n])\n\nexport const DEFAULT_SORT_BY = PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n\nexport const EXCLUDE_SORT_BY = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.number,\n PropTypes.arrayOf(PropTypes.string, PropTypes.number)\n])\n\nexport const DENSITY = PropTypes.oneOf(['dense', 'normal', 'medium', 'chunky'])\n"],"names":["BUTTON_VARIANTS","PropTypes","DANGER_BUTTON","LABEL_BUTTON","PRIMARY_BUTTON","SECONDARY_BUTTON","TERTIARY_BUTTON","CHIP","CHIP_INPUT_LIST","CHIP_OPTIONS","CHIPS","POP_UP_CUSTOM_POSITION","MODAL_SIZES","MODAL_SM","MODAL_MD","MODAL_LG","MODAL_MIN","MODAL_MAX","CONFIRM_DIALOG_CANCEL_BUTTON","CONFIRM_DIALOG_MESSAGE","CONFIRM_DIALOG_SUBMIT_BUTTON","WIZARD_STEPS_CONFIG","INPUT_LINK","SELECT_OPTION","SELECT_OPTIONS","INPUT_VALIDATION_RULES","COMBOBOX_SUGGESTION_LIST","COMBOBOX_VALIDATION_RULES","COMBOBOX_SELECT_OPTIONS","FORM_TABLE_EDITING_ITEM","SORT_PROPS","ALLOW_SORT_BY","DEFAULT_SORT_BY","EXCLUDE_SORT_BY","DENSITY"],"mappings":"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"}
@@ -0,0 +1,10 @@
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
+ //# sourceMappingURL=common.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/common.util.js"],"names":[],"mappings":"AAqBO,kEAEN;AAEM,kFAcN;AAEM,qGAcN;AAEM,2DACuD;AAGvD,uFAQN;AAQM,sCAHI,KAAK,GACH,MAAM,CAUlB;AASM,mCAJI,KAAK,gBACL,MAAM,GACJ,MAAM,CAgBlB;AAOM,6CAFM,MAAM,CAiBlB;AAEM,gEAEN"}
@@ -0,0 +1,60 @@
1
+ import { create as c } from "react-modal-promise";
2
+ import { isEmpty as m, differenceWith as d, isEqual as p, omit as o, get as i } from "lodash";
3
+ import a from "../components/ConfirmDialog/ConfirmDialog.mjs";
4
+ import { PRIMARY_BUTTON as f, TERTIARY_BUTTON as s, DANGER_BUTTON as g } from "../constants.mjs";
5
+ const l = (t, e) => c(t)(e), v = (t, e) => l(a, {
6
+ cancelButton: {
7
+ label: "Cancel",
8
+ variant: s
9
+ },
10
+ confirmButton: {
11
+ label: "OK",
12
+ variant: f,
13
+ handler: e
14
+ },
15
+ header: "Are you sure?",
16
+ message: t
17
+ }), D = (t, e, n) => l(a, {
18
+ cancelButton: {
19
+ label: "Cancel",
20
+ variant: s
21
+ },
22
+ confirmButton: {
23
+ label: "Delete",
24
+ variant: g,
25
+ handler: n
26
+ },
27
+ header: t,
28
+ message: e
29
+ }), O = (t) => Object.values(t).every((e) => !e || e.length === 0), B = (t, e, n = []) => t.length !== e.length ? !1 : m(
30
+ d(t, e, (r, u) => p(o(r, n), o(u, n)))
31
+ ), T = (t) => {
32
+ const e = i(t, "response.data.detail", null);
33
+ return typeof e == "string" ? e : i(e, "reason", "");
34
+ }, C = (t, e) => {
35
+ const r = T(t) || t.message;
36
+ return (!r || r === "Not Found" || r.startsWith("Request failed with status code")) && e ? e : r || "";
37
+ }, N = () => {
38
+ const t = {
39
+ transition: "transitionend",
40
+ OTransition: "oTransitionEnd",
41
+ MozTransition: "transitionend",
42
+ WebkitTransition: "webkitTransitionEnd"
43
+ };
44
+ let e = document.body.style;
45
+ for (let n in t)
46
+ if (e[n] !== void 0)
47
+ return t[n];
48
+ }, R = (t) => getComputedStyle(document.documentElement).getPropertyValue(t).trim();
49
+ export {
50
+ B as areArraysEqual,
51
+ T as getErrorDetail,
52
+ C as getErrorMsg,
53
+ R as getScssVariableValue,
54
+ N as getTransitionEndEventName,
55
+ O as isEveryObjectValueEmpty,
56
+ v as openConfirmPopUp,
57
+ D as openDeleteConfirmPopUp,
58
+ l as openPopUp
59
+ };
60
+ //# sourceMappingURL=common.util.mjs.map
@@ -0,0 +1 @@
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 } from 'lodash'\nimport ConfirmDialog from '../components/ConfirmDialog/ConfirmDialog'\nimport { DANGER_BUTTON, PRIMARY_BUTTON, TERTIARY_BUTTON } from '../constants'\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(item => !item || item.length === 0)\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\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 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"],"names":["openPopUp","element","props","create","openConfirmPopUp","message","confirmHandler","ConfirmDialog","TERTIARY_BUTTON","PRIMARY_BUTTON","openDeleteConfirmPopUp","header","DANGER_BUTTON","isEveryObjectValueEmpty","obj","item","areArraysEqual","firstArray","secondArray","omitBy","isEmpty","differenceWith","a","b","isEqual","omit","getErrorDetail","error","errorDetail","get","getErrorMsg","defaultError","errorMsg","getTransitionEndEventName","transitions","bodyStyle","transition","getScssVariableValue","variableName"],"mappings":";;;;AAqBY,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,EACV;AAAA,EACD,eAAe;AAAA,IACb,OAAO;AAAA,IACP,SAASC;AAAA,IACT,SAASH;AAAA,EACV;AAAA,EACD,QAAQ;AAAA,EACR,SAAAD;AACD,CAAA,GAGUK,IAAyB,CAACC,GAAQN,GAASC,MAC/CN,EAAUO,GAAe;AAAA,EAC9B,cAAc;AAAA,IACZ,OAAO;AAAA,IACP,SAASC;AAAA,EACV;AAAA,EACD,eAAe;AAAA,IACb,OAAO;AAAA,IACP,SAASI;AAAA,IACT,SAASN;AAAA,EACV;AAAA,EACD,QAAAK;AAAA,EACA,SAAAN;AACD,CAAA,GAGUQ,IAA0B,CAAAC,MACrC,OAAO,OAAOA,CAAG,EAAE,MAAM,CAAAC,MAAQ,CAACA,KAAQA,EAAK,WAAW,CAAC,GAGhDC,IAAiB,CAACC,GAAYC,GAAaC,IAAS,CAAA,MAC3DF,EAAW,WAAWC,EAAY,SAAe,KAE9CE;AAAA,EACLC,EAAeJ,GAAYC,GAAa,CAACI,GAAGC,MACnCC,EAAQC,EAAKH,GAAGH,CAAM,GAAGM,EAAKF,GAAGJ,CAAM,CAAC,CAChD;AACL,GASaO,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,IAEAC,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;"}
@@ -0,0 +1,11 @@
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
+ //# sourceMappingURL=form.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/form.util.js"],"names":[],"mappings":"AAkBO,2DAUN;AAEM,+EAUN;AAEM,sEAMN;AAEM;;;;;IASN;AAEM,sDAEN"}
@@ -0,0 +1,26 @@
1
+ import { set as a, isEqual as u } from "lodash";
2
+ const d = (e, r) => {
3
+ let t = e[0], n = e[1], i = r.fields[t];
4
+ if (i)
5
+ for (let s in n)
6
+ a(i, s, n[s]);
7
+ }, o = (e, r) => {
8
+ const t = (n, i) => {
9
+ if (i !== "")
10
+ return i;
11
+ };
12
+ return !u(JSON.stringify(e, t), JSON.stringify(r, t));
13
+ }, c = (e = []) => e.reduce((r, t) => (r[t.data.key] = t.data.value, r), {}), f = (e = {}) => Object.entries(e).map(([r, t]) => ({
14
+ data: {
15
+ key: r,
16
+ value: t
17
+ }
18
+ })), m = (e) => e.submitting || e.invalid && e.submitFailed;
19
+ export {
20
+ o as areFormValuesChanged,
21
+ c as generateObjectFromKeyValue,
22
+ m as isSubmitDisabled,
23
+ f as parseObjectToKeyValue,
24
+ d as setFieldState
25
+ };
26
+ //# sourceMappingURL=form.util.mjs.map
@@ -0,0 +1 @@
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 { isEqual, set } 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(JSON.stringify(initialValues, replacer), JSON.stringify(values, replacer))\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"],"names":["setFieldState","args","state","fieldName","states","field","stateName","set","areFormValuesChanged","initialValues","values","replacer","key","value","isEqual","generateObjectFromKeyValue","keyValueList","acc","keyValue","parseObjectToKeyValue","object","isSubmitDisabled","formState"],"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,EACX;AAEE,SAAO,CAACC,EAAQ,KAAK,UAAUL,GAAeE,CAAQ,GAAG,KAAK,UAAUD,GAAQC,CAAQ,CAAC;AAC3F,GAEaI,IAA6B,CAACC,IAAe,OACjDA,EAAa,OAAO,CAACC,GAAKC,OAC/BD,EAAIC,EAAS,KAAK,GAAG,IAAIA,EAAS,KAAK,OAEhCD,IACN,CAAE,CAAA,GAGME,IAAwB,CAACC,IAAS,OACtC,OAAO,QAAQA,CAAM,EAAE,IAAI,CAAC,CAACR,GAAKC,CAAK,OACrC;AAAA,EACL,MAAM;AAAA,IACJ,KAAAD;AAAA,IACA,OAAAC;AAAA,EACR;AACA,EACG,GAGUQ,IAAmB,CAAAC,MACvBA,EAAU,cAAeA,EAAU,WAAWA,EAAU;"}
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateChipsList.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/generateChipsList.util.js"],"names":[],"mappings":"AAgBO;;;;;;;;EAgBN"}
@@ -0,0 +1,19 @@
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
@@ -0,0 +1 @@
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,EACA;AACE,SAAO;AAAA,IACL,cAAcF;AAAA,IACd,aAAa,CAAA;AAAA,EACjB;AACA;"}
@@ -0,0 +1,2 @@
1
+ export function getFirstScrollableParent(node: Node): Node;
2
+ //# sourceMappingURL=getFirstScrollableParent.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFirstScrollableParent.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/getFirstScrollableParent.util.js"],"names":[],"mappings":"AA0CO,+CAHI,IAAI,GACF,IAAI,CAOgC"}
@@ -0,0 +1,5 @@
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
@@ -0,0 +1 @@
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;"}
@@ -0,0 +1,7 @@
1
+ export * as common from "./common.util";
2
+ export * as form from "./form.util";
3
+ export * as generateChipsList from "./generateChipsList.util";
4
+ export * as getFirstScrollableParent from "./getFirstScrollableParent.util";
5
+ export * as math from "./math.util";
6
+ export * as validation from "./validation.util";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/utils/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import * as t from "./common.util.mjs";
2
+ import * as o from "./form.util.mjs";
3
+ import * as r from "./generateChipsList.util.mjs";
4
+ import * as a from "./getFirstScrollableParent.util.mjs";
5
+ import * as i from "./math.util.mjs";
6
+ import * as m from "./validation.util.mjs";
7
+ export {
8
+ t as common,
9
+ o as form,
10
+ r as generateChipsList,
11
+ a as getFirstScrollableParent,
12
+ i as math,
13
+ m as validation
14
+ };
15
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -0,0 +1,2 @@
1
+ export function performFloatOperation(num1: number, num2: number, operator: string): number;
2
+ //# sourceMappingURL=math.util.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
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;"}
@@ -0,0 +1,6 @@
1
+ export function required(validationMsg?: string): Function;
2
+ export function checkPatternsValidity(validationRules: any[], value?: string, required?: boolean): any[];
3
+ export function checkPatternsValidityAsync(validationRules: any, value: any): Promise<any[]>;
4
+ export function getValidationRules(type: string, additionalRules?: Array<any> | any): Array<any>;
5
+ export function getInternalLabelsValidationRule(internalLabels?: string): any;
6
+ //# sourceMappingURL=validation.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/validation.util.js"],"names":[],"mappings":"AAkEO,yCAJI,MAAM,YASd;AAWI,sEALI,MAAM,aACN,OAAO,SAoBjB;AAEM,6FAcN;AAwUM,yCAJI,MAAM,oBACN,KAAK,KAAS,MAAS,GACrB,KAAK,KAAS,CAU1B;AAQM,iEAHI,MAAM,OAWhB"}