linear-react-components-ui 1.1.25-rc.2 → 1.1.26-beta-0

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 (741) hide show
  1. package/lib/@types/Align.d.ts +2 -4
  2. package/lib/@types/ButtonTypes.d.ts +1 -3
  3. package/lib/@types/ColorStyles.d.ts +1 -3
  4. package/lib/@types/DataCombo.d.ts +1 -3
  5. package/lib/@types/Icon.d.ts +2 -5
  6. package/lib/@types/LabelStyles.d.ts +1 -3
  7. package/lib/@types/Period.d.ts +1 -3
  8. package/lib/@types/PermissionAttr.d.ts +2 -4
  9. package/lib/@types/PointerEvents.d.ts +1 -3
  10. package/lib/@types/Position.d.ts +1 -3
  11. package/lib/@types/PositionAlert.d.ts +1 -3
  12. package/lib/@types/Size.d.ts +1 -3
  13. package/lib/@types/SizePixels.d.ts +1 -3
  14. package/lib/@types/StorageMock.d.ts +1 -3
  15. package/lib/alerts/AlertContainer.d.ts +2 -8
  16. package/lib/alerts/AlertContainer.js +55 -71
  17. package/lib/alerts/AlertProvider.d.ts +3 -9
  18. package/lib/alerts/AlertProvider.js +32 -65
  19. package/lib/alerts/BaseAlert.d.ts +3 -9
  20. package/lib/alerts/BaseAlert.js +15 -31
  21. package/lib/alerts/Message.d.ts +3 -9
  22. package/lib/alerts/Message.js +65 -112
  23. package/lib/alerts/alert.spec.d.ts +0 -0
  24. package/lib/alerts/helpers.d.ts +3 -9
  25. package/lib/alerts/helpers.js +5 -9
  26. package/lib/alerts/index.d.ts +4 -11
  27. package/lib/alerts/index.js +6 -16
  28. package/lib/alerts/types.d.ts +10 -14
  29. package/lib/alerts/withAlert.d.ts +4 -9
  30. package/lib/alerts/withAlert.js +9 -23
  31. package/lib/assets/BaseAlert.css +1 -0
  32. package/lib/assets/Content.css +1 -0
  33. package/lib/assets/DefaultFile.css +1 -0
  34. package/lib/assets/Drawer.css +1 -0
  35. package/lib/assets/InputTextBase.css +1 -0
  36. package/lib/assets/button.css +1 -0
  37. package/lib/assets/gridlayout.css +1 -0
  38. package/lib/assets/index.css +1 -0
  39. package/lib/assets/index10.css +1 -0
  40. package/lib/assets/index11.css +1 -0
  41. package/lib/assets/index12.css +1 -0
  42. package/lib/assets/index13.css +1 -0
  43. package/lib/assets/index14.css +1 -0
  44. package/lib/assets/index15.css +1 -0
  45. package/lib/assets/index16.css +1 -0
  46. package/lib/assets/index17.css +1 -0
  47. package/lib/assets/index18.css +1 -0
  48. package/lib/assets/index19.css +1 -0
  49. package/lib/assets/index2.css +1 -0
  50. package/lib/assets/index20.css +1 -0
  51. package/lib/assets/index21.css +1 -0
  52. package/lib/assets/index22.css +1 -0
  53. package/lib/assets/index23.css +1 -0
  54. package/lib/assets/index24.css +1 -0
  55. package/lib/assets/index25.css +1 -0
  56. package/lib/assets/index26.css +1 -0
  57. package/lib/assets/index27.css +1 -0
  58. package/lib/assets/index28.css +1 -0
  59. package/lib/assets/index29.css +1 -0
  60. package/lib/assets/index3.css +1 -0
  61. package/lib/assets/index4.css +1 -0
  62. package/lib/assets/index5.css +1 -0
  63. package/lib/assets/index6.css +1 -0
  64. package/lib/assets/index7.css +1 -0
  65. package/lib/assets/index8.css +1 -0
  66. package/lib/assets/index9.css +1 -0
  67. package/lib/assets/label.css +1 -0
  68. package/lib/assets/noPermission.css +1 -0
  69. package/lib/assets/panel.css +1 -0
  70. package/lib/assets/radio.css +1 -0
  71. package/lib/assets/skeleton.css +1 -0
  72. package/lib/assets/table.css +1 -0
  73. package/lib/assets/tabs.css +1 -0
  74. package/lib/assets/toolbar.css +1 -0
  75. package/lib/assets/withDropdown.css +1 -0
  76. package/lib/avatar/avatar.spec.d.ts +1 -0
  77. package/lib/avatar/index.d.ts +3 -9
  78. package/lib/avatar/index.js +75 -89
  79. package/lib/avatar/types.d.ts +4 -8
  80. package/lib/badge/badge.spec.d.ts +1 -0
  81. package/lib/badge/index.d.ts +3 -6
  82. package/lib/badge/index.js +24 -28
  83. package/lib/badge/types.d.ts +1 -4
  84. package/lib/buttons/ActivateButton.d.ts +3 -11
  85. package/lib/buttons/ActivateButton.js +6 -14
  86. package/lib/buttons/AddButton.d.ts +3 -11
  87. package/lib/buttons/AddButton.js +7 -18
  88. package/lib/buttons/Button.d.ts +3 -11
  89. package/lib/buttons/Button.js +7 -22
  90. package/lib/buttons/ButtonGroups.d.ts +2 -4
  91. package/lib/buttons/ButtonGroups.js +4 -16
  92. package/lib/buttons/CancelButton.d.ts +3 -11
  93. package/lib/buttons/CancelButton.js +5 -22
  94. package/lib/buttons/DangerButton.d.ts +3 -11
  95. package/lib/buttons/DangerButton.js +5 -22
  96. package/lib/buttons/DefaultButton.d.ts +3 -11
  97. package/lib/buttons/DefaultButton.js +123 -171
  98. package/lib/buttons/DestroyButton.d.ts +3 -11
  99. package/lib/buttons/DestroyButton.js +6 -21
  100. package/lib/buttons/EditButton.d.ts +3 -11
  101. package/lib/buttons/EditButton.js +6 -14
  102. package/lib/buttons/InactivateButton.d.ts +3 -11
  103. package/lib/buttons/InactivateButton.js +6 -14
  104. package/lib/buttons/InfoButton.d.ts +3 -11
  105. package/lib/buttons/InfoButton.js +5 -22
  106. package/lib/buttons/PrimaryButton.d.ts +3 -11
  107. package/lib/buttons/PrimaryButton.js +5 -22
  108. package/lib/buttons/RestoreButton.d.ts +3 -11
  109. package/lib/buttons/RestoreButton.js +6 -14
  110. package/lib/buttons/SaveButton.d.ts +3 -11
  111. package/lib/buttons/SaveButton.js +5 -22
  112. package/lib/buttons/SuccessButton.d.ts +3 -11
  113. package/lib/buttons/SuccessButton.js +5 -22
  114. package/lib/buttons/WarningButton.d.ts +3 -11
  115. package/lib/buttons/WarningButton.js +5 -22
  116. package/lib/buttons/button_container/index.d.ts +4 -6
  117. package/lib/buttons/button_container/index.js +16 -28
  118. package/lib/buttons/buttons.spec.d.ts +0 -0
  119. package/lib/buttons/index.d.ts +17 -26
  120. package/lib/buttons/index.js +33 -108
  121. package/lib/buttons/split_button/index.d.ts +3 -11
  122. package/lib/buttons/split_button/index.js +56 -59
  123. package/lib/buttons/types.d.ts +8 -15
  124. package/lib/calendar/DangerCalendar.d.ts +3 -8
  125. package/lib/calendar/DangerCalendar.js +5 -17
  126. package/lib/calendar/InfoCalendar.d.ts +3 -8
  127. package/lib/calendar/InfoCalendar.js +5 -17
  128. package/lib/calendar/PrimaryCalendar.d.ts +3 -8
  129. package/lib/calendar/PrimaryCalendar.js +5 -17
  130. package/lib/calendar/SuccessCalendar.d.ts +3 -8
  131. package/lib/calendar/SuccessCalendar.js +5 -17
  132. package/lib/calendar/WarningCalendar.d.ts +3 -8
  133. package/lib/calendar/WarningCalendar.js +5 -17
  134. package/lib/calendar/base/Day.d.ts +3 -0
  135. package/lib/calendar/base/Day.js +27 -0
  136. package/lib/calendar/base/Month.d.ts +3 -0
  137. package/lib/calendar/base/Month.js +25 -0
  138. package/lib/calendar/base/Week.d.ts +3 -0
  139. package/lib/calendar/base/Week.js +23 -0
  140. package/lib/calendar/base/helpers.d.ts +15 -18
  141. package/lib/calendar/base/helpers.js +87 -96
  142. package/lib/calendar/base/index.d.ts +3 -8
  143. package/lib/calendar/base/index.js +100 -195
  144. package/lib/calendar/calendar.spec.d.ts +0 -0
  145. package/lib/calendar/index.d.ts +8 -14
  146. package/lib/calendar/index.js +14 -44
  147. package/lib/calendar/types.d.ts +5 -8
  148. package/lib/checkbox/checkbox.spec.d.ts +1 -0
  149. package/lib/checkbox/index.d.ts +4 -8
  150. package/lib/checkbox/index.js +31 -145
  151. package/lib/checkbox/types.d.ts +5 -7
  152. package/lib/chunks/index.CmrLK9Qe.js +675 -0
  153. package/lib/chunks/index.D5f6Ow9V.js +89 -0
  154. package/lib/chunks/index.Da--18GT.js +669 -0
  155. package/lib/chunks/index.yztgndLc.js +206 -0
  156. package/lib/chunks/jsx-runtime.CYK1ROHF.js +445 -0
  157. package/lib/chunks/tabs.Cvj2MJH6.js +246 -0
  158. package/lib/chunks/v1.CDXKvGzE.js +41 -0
  159. package/lib/dialog/Alert.d.ts +3 -9
  160. package/lib/dialog/Alert.js +22 -31
  161. package/lib/dialog/Custom.d.ts +3 -9
  162. package/lib/dialog/Custom.js +31 -54
  163. package/lib/dialog/Error.d.ts +3 -9
  164. package/lib/dialog/Error.js +22 -31
  165. package/lib/dialog/Information.d.ts +3 -9
  166. package/lib/dialog/Information.js +22 -31
  167. package/lib/dialog/Question.d.ts +3 -9
  168. package/lib/dialog/Question.js +59 -58
  169. package/lib/dialog/Warning.d.ts +3 -9
  170. package/lib/dialog/Warning.js +22 -31
  171. package/lib/dialog/base/Content.d.ts +3 -9
  172. package/lib/dialog/base/Content.js +5 -22
  173. package/lib/dialog/base/Footer.d.ts +3 -9
  174. package/lib/dialog/base/Footer.js +5 -12
  175. package/lib/dialog/base/Header.d.ts +3 -9
  176. package/lib/dialog/base/Header.js +6 -57
  177. package/lib/dialog/base/index.d.ts +5 -10
  178. package/lib/dialog/base/index.js +8 -210
  179. package/lib/dialog/base/style.d.ts +7 -0
  180. package/lib/dialog/dialog.spec.d.ts +0 -0
  181. package/lib/dialog/form/index.d.ts +5 -10
  182. package/lib/dialog/form/index.js +14 -84
  183. package/lib/dialog/index.d.ts +9 -16
  184. package/lib/dialog/index.js +16 -51
  185. package/lib/dialog/types.d.ts +16 -21
  186. package/lib/dialog/wizard/index.d.ts +9 -13
  187. package/lib/dialog/wizard/index.js +14 -80
  188. package/lib/dialog/wizard/progressbar.d.ts +2 -5
  189. package/lib/dialog/wizard/progressbar.js +5 -38
  190. package/lib/dialog/wizard/step.d.ts +2 -9
  191. package/lib/dialog/wizard/step.js +5 -22
  192. package/lib/dialog/wizard/useWizard.d.ts +2 -9
  193. package/lib/dialog/wizard/useWizard.js +26 -42
  194. package/lib/dialog/wizard/wizard.spec.d.ts +0 -0
  195. package/lib/drawer/Content.d.ts +3 -10
  196. package/lib/drawer/Content.js +10 -25
  197. package/lib/drawer/Drawer.d.ts +4 -10
  198. package/lib/drawer/Drawer.js +68 -142
  199. package/lib/drawer/Drawer.spec.d.ts +1 -0
  200. package/lib/drawer/Header.d.ts +3 -10
  201. package/lib/drawer/Header.js +40 -73
  202. package/lib/drawer/helpers.d.ts +4 -10
  203. package/lib/drawer/helpers.js +5 -10
  204. package/lib/drawer/index.d.ts +5 -12
  205. package/lib/drawer/index.js +10 -25
  206. package/lib/drawer/types.d.ts +7 -12
  207. package/lib/dropdown/Popup.d.ts +3 -6
  208. package/lib/dropdown/Popup.js +45 -86
  209. package/lib/dropdown/dropdown.spec.d.ts +1 -0
  210. package/lib/dropdown/helper.d.ts +2 -4
  211. package/lib/dropdown/helper.js +7 -15
  212. package/lib/dropdown/types.d.ts +7 -10
  213. package/lib/dropdown/withDropdown.d.ts +7 -8
  214. package/lib/dropdown/withDropdown.js +50 -88
  215. package/lib/fieldset/fieldset.spec.d.ts +1 -0
  216. package/lib/fieldset/index.d.ts +3 -8
  217. package/lib/fieldset/index.js +49 -81
  218. package/lib/fieldset/types.d.ts +5 -8
  219. package/lib/form/Field.d.ts +2 -14
  220. package/lib/form/Field.js +66 -129
  221. package/lib/form/FieldArray.d.ts +2 -14
  222. package/lib/form/FieldArray.js +83 -96
  223. package/lib/form/FieldNumber.d.ts +2 -14
  224. package/lib/form/FieldNumber.js +42 -75
  225. package/lib/form/FieldPeriod.d.ts +2 -14
  226. package/lib/form/FieldPeriod.js +57 -94
  227. package/lib/form/form.spec.d.ts +0 -0
  228. package/lib/form/helpers.d.ts +8 -19
  229. package/lib/form/helpers.js +23 -48
  230. package/lib/form/index.d.ts +8 -18
  231. package/lib/form/index.js +153 -299
  232. package/lib/form/types.d.ts +23 -45
  233. package/lib/form/withFieldHOC.d.ts +4 -14
  234. package/lib/form/withFieldHOC.js +47 -67
  235. package/lib/form/withFormSecurity.d.ts +6 -15
  236. package/lib/form/withFormSecurity.js +31 -53
  237. package/lib/gridlayout/GridCol.d.ts +3 -6
  238. package/lib/gridlayout/GridCol.js +24 -32
  239. package/lib/gridlayout/GridRow.d.ts +3 -6
  240. package/lib/gridlayout/GridRow.js +22 -32
  241. package/lib/gridlayout/gridLayout.spec.d.ts +1 -0
  242. package/lib/gridlayout/index.d.ts +4 -8
  243. package/lib/gridlayout/index.js +6 -16
  244. package/lib/gridlayout/types.d.ts +3 -6
  245. package/lib/hint/helpers.d.ts +1 -3
  246. package/lib/hint/helpers.js +8 -21
  247. package/lib/hint/hint.spec.d.ts +1 -0
  248. package/lib/hint/index.d.ts +3 -7
  249. package/lib/hint/index.js +25 -33
  250. package/lib/hint/types.d.ts +2 -5
  251. package/lib/icons/helper.d.ts +1 -2
  252. package/lib/icons/helper.js +748 -324
  253. package/lib/icons/icons.spec.d.ts +1 -0
  254. package/lib/icons/index.d.ts +3 -12
  255. package/lib/icons/index.js +58 -70
  256. package/lib/icons/types.d.ts +8 -11
  257. package/lib/index.d.ts +10 -39
  258. package/lib/index.js +27 -69
  259. package/lib/inputs/base/InputTextBase.d.ts +3 -11
  260. package/lib/inputs/base/InputTextBase.js +259 -257
  261. package/lib/inputs/base/Label.d.ts +3 -11
  262. package/lib/inputs/base/Label.js +30 -33
  263. package/lib/inputs/base/base.spec.d.ts +1 -0
  264. package/lib/inputs/base/helpers.d.ts +6 -13
  265. package/lib/inputs/base/helpers.js +25 -43
  266. package/lib/inputs/base/types.d.ts +9 -14
  267. package/lib/inputs/color/color_input.spec.d.ts +0 -0
  268. package/lib/inputs/color/index.d.ts +3 -7
  269. package/lib/inputs/color/index.js +73 -90
  270. package/lib/inputs/color/types.d.ts +2 -5
  271. package/lib/inputs/date/Dialog.d.ts +3 -13
  272. package/lib/inputs/date/Dialog.js +16 -24
  273. package/lib/inputs/date/Dropdown.d.ts +3 -13
  274. package/lib/inputs/date/Dropdown.js +15 -36
  275. package/lib/inputs/date/date.spec.d.ts +1 -0
  276. package/lib/inputs/date/helpers.d.ts +2 -34
  277. package/lib/inputs/date/helpers.js +9 -47
  278. package/lib/inputs/date/index.d.ts +3 -13
  279. package/lib/inputs/date/index.js +168 -277
  280. package/lib/inputs/date/types.d.ts +6 -14
  281. package/lib/inputs/errorMessage/error.spec.d.ts +1 -0
  282. package/lib/inputs/errorMessage/index.d.ts +4 -16
  283. package/lib/inputs/errorMessage/index.js +15 -25
  284. package/lib/inputs/file/DefaultFile.d.ts +3 -13
  285. package/lib/inputs/file/DefaultFile.js +68 -77
  286. package/lib/inputs/file/DragDropFile.d.ts +3 -13
  287. package/lib/inputs/file/DragDropFile.js +183 -264
  288. package/lib/inputs/file/File.d.ts +3 -13
  289. package/lib/inputs/file/File.js +42 -60
  290. package/lib/inputs/file/FileButtonSettings.d.ts +3 -13
  291. package/lib/inputs/file/FileButtonSettings.js +20 -32
  292. package/lib/inputs/file/filefield.spec.d.ts +1 -0
  293. package/lib/inputs/file/helpers.d.ts +2 -13
  294. package/lib/inputs/file/helpers.js +9 -19
  295. package/lib/inputs/file/index.d.ts +5 -16
  296. package/lib/inputs/file/index.js +8 -24
  297. package/lib/inputs/file/types.d.ts +8 -16
  298. package/lib/inputs/inputHOC.d.ts +4 -16
  299. package/lib/inputs/inputHOC.js +21 -41
  300. package/lib/inputs/mask/BaseMask.d.ts +3 -12
  301. package/lib/inputs/mask/BaseMask.js +2626 -147
  302. package/lib/inputs/mask/Cnpj.d.ts +3 -12
  303. package/lib/inputs/mask/Cnpj.js +35 -55
  304. package/lib/inputs/mask/Cpf.d.ts +3 -12
  305. package/lib/inputs/mask/Cpf.js +33 -54
  306. package/lib/inputs/mask/Phone.d.ts +3 -12
  307. package/lib/inputs/mask/Phone.js +8 -18
  308. package/lib/inputs/mask/ZipCode.d.ts +3 -12
  309. package/lib/inputs/mask/ZipCode.js +6 -14
  310. package/lib/inputs/mask/helpers.d.ts +52 -15
  311. package/lib/inputs/mask/helpers.js +62 -118
  312. package/lib/inputs/mask/index.d.ts +7 -17
  313. package/lib/inputs/mask/index.js +12 -37
  314. package/lib/inputs/mask/input_mask.spec.d.ts +0 -0
  315. package/lib/inputs/mask/types.d.ts +9 -16
  316. package/lib/inputs/multiSelect/ActionButtons.d.ts +3 -13
  317. package/lib/inputs/multiSelect/ActionButtons.js +49 -50
  318. package/lib/inputs/multiSelect/Dropdown.d.ts +3 -13
  319. package/lib/inputs/multiSelect/Dropdown.js +133 -132
  320. package/lib/inputs/multiSelect/helper.d.ts +2 -12
  321. package/lib/inputs/multiSelect/helper.js +9 -18
  322. package/lib/inputs/multiSelect/index.d.ts +3 -13
  323. package/lib/inputs/multiSelect/index.js +133 -211
  324. package/lib/inputs/multiSelect/multiSelect.spec.d.ts +1 -0
  325. package/lib/inputs/multiSelect/types.d.ts +7 -15
  326. package/lib/inputs/number/BaseNumber.d.ts +3 -17
  327. package/lib/inputs/number/BaseNumber.js +39 -70
  328. package/lib/inputs/number/Currency.d.ts +3 -17
  329. package/lib/inputs/number/Currency.js +14 -28
  330. package/lib/inputs/number/Decimal.d.ts +3 -17
  331. package/lib/inputs/number/Decimal.js +6 -11
  332. package/lib/inputs/number/format_number.d.ts +3 -5
  333. package/lib/inputs/number/format_number.js +8 -28
  334. package/lib/inputs/number/index.d.ts +6 -19
  335. package/lib/inputs/number/index.js +35 -61
  336. package/lib/inputs/number/numberfield.spec.d.ts +1 -0
  337. package/lib/inputs/number/types.d.ts +8 -19
  338. package/lib/inputs/period/Dialog.d.ts +3 -14
  339. package/lib/inputs/period/Dialog.js +16 -25
  340. package/lib/inputs/period/Dropdown.d.ts +3 -14
  341. package/lib/inputs/period/Dropdown.js +16 -34
  342. package/lib/inputs/period/PeriodList.d.ts +3 -14
  343. package/lib/inputs/period/PeriodList.js +26 -58
  344. package/lib/inputs/period/helper.d.ts +5 -16
  345. package/lib/inputs/period/helper.js +26 -57
  346. package/lib/inputs/period/index.d.ts +3 -14
  347. package/lib/inputs/period/index.js +322 -518
  348. package/lib/inputs/period/types.d.ts +13 -22
  349. package/lib/inputs/search/index.d.ts +3 -16
  350. package/lib/inputs/search/index.js +76 -129
  351. package/lib/inputs/search/search_input.spec.d.ts +1 -0
  352. package/lib/inputs/select/ActionButtons.d.ts +3 -16
  353. package/lib/inputs/select/ActionButtons.js +47 -37
  354. package/lib/inputs/select/Dropdown.d.ts +3 -16
  355. package/lib/inputs/select/Dropdown.js +116 -111
  356. package/lib/inputs/select/helper.d.ts +7 -21
  357. package/lib/inputs/select/helper.js +48 -106
  358. package/lib/inputs/select/index.d.ts +3 -13
  359. package/lib/inputs/select/index.js +28 -41
  360. package/lib/inputs/select/multiple/Selecteds.d.ts +3 -13
  361. package/lib/inputs/select/multiple/Selecteds.js +20 -26
  362. package/lib/inputs/select/multiple/index.d.ts +3 -13
  363. package/lib/inputs/select/multiple/index.js +187 -276
  364. package/lib/inputs/select/select.spec.d.ts +1 -0
  365. package/lib/inputs/select/simple/index.d.ts +3 -13
  366. package/lib/inputs/select/simple/index.js +205 -290
  367. package/lib/inputs/select/types.d.ts +14 -21
  368. package/lib/inputs/text/index.d.ts +3 -12
  369. package/lib/inputs/text/index.js +6 -13
  370. package/lib/inputs/text/textfield.spec.d.ts +1 -0
  371. package/lib/inputs/text/types.d.ts +7 -11
  372. package/lib/inputs/textarea/index.d.ts +3 -12
  373. package/lib/inputs/textarea/index.js +17 -24
  374. package/lib/inputs/textarea/textarea.spec.d.ts +1 -0
  375. package/lib/inputs/textarea/types.d.ts +2 -11
  376. package/lib/inputs/types.d.ts +17 -25
  377. package/lib/internals/colorStyles.d.ts +1 -2
  378. package/lib/internals/colorStyles.js +9 -13
  379. package/lib/internals/constants.d.ts +2 -7
  380. package/lib/internals/constants.js +5 -11
  381. package/lib/internals/types.d.ts +6 -9
  382. package/lib/internals/withTooltip.d.ts +6 -10
  383. package/lib/internals/withTooltip.js +61 -158
  384. package/lib/labelMessages/index.d.ts +3 -9
  385. package/lib/labelMessages/index.js +46 -58
  386. package/lib/labelMessages/labelMessages.spec.d.ts +1 -0
  387. package/lib/labelMessages/types.d.ts +3 -7
  388. package/lib/labels/DangerLabel.d.ts +3 -11
  389. package/lib/labels/DangerLabel.js +5 -17
  390. package/lib/labels/DefaultLabel.d.ts +3 -11
  391. package/lib/labels/DefaultLabel.js +39 -53
  392. package/lib/labels/InfoLabel.d.ts +3 -11
  393. package/lib/labels/InfoLabel.js +5 -17
  394. package/lib/labels/PrimaryLabel.d.ts +3 -11
  395. package/lib/labels/PrimaryLabel.js +5 -17
  396. package/lib/labels/SuccessLabel.d.ts +3 -11
  397. package/lib/labels/SuccessLabel.js +5 -17
  398. package/lib/labels/WarningLabel.d.ts +3 -11
  399. package/lib/labels/WarningLabel.js +5 -17
  400. package/lib/labels/index.d.ts +9 -18
  401. package/lib/labels/index.js +17 -52
  402. package/lib/labels/label.spec.d.ts +1 -0
  403. package/lib/labels/label_container/index.d.ts +4 -6
  404. package/lib/labels/label_container/index.js +11 -21
  405. package/lib/labels/types.d.ts +5 -9
  406. package/lib/list/Header.d.ts +3 -10
  407. package/lib/list/Header.js +7 -22
  408. package/lib/list/Item.d.ts +3 -10
  409. package/lib/list/Item.js +12 -161
  410. package/lib/list/Separator.d.ts +2 -3
  411. package/lib/list/Separator.js +5 -12
  412. package/lib/list/helpers.d.ts +4 -10
  413. package/lib/list/helpers.js +10 -14
  414. package/lib/list/index.d.ts +7 -13
  415. package/lib/list/index.js +91 -172
  416. package/lib/list/list.spec.d.ts +1 -0
  417. package/lib/list/types.d.ts +10 -14
  418. package/lib/menus/float/MenuItem.d.ts +3 -9
  419. package/lib/menus/float/MenuItem.js +54 -65
  420. package/lib/menus/float/SubMenuContainer.d.ts +29 -0
  421. package/lib/menus/float/float-menu.spec.d.ts +0 -0
  422. package/lib/menus/float/helpers.d.ts +4 -9
  423. package/lib/menus/float/helpers.js +5 -10
  424. package/lib/menus/float/index.d.ts +6 -40
  425. package/lib/menus/float/index.js +88 -64
  426. package/lib/menus/float/types.d.ts +5 -9
  427. package/lib/menus/index.d.ts +2 -12
  428. package/lib/menus/index.js +4 -9
  429. package/lib/menus/sidenav/ExpandMenu.d.ts +3 -12
  430. package/lib/menus/sidenav/ExpandMenu.js +14 -24
  431. package/lib/menus/sidenav/MenuLink.d.ts +3 -12
  432. package/lib/menus/sidenav/MenuLink.js +15 -27
  433. package/lib/menus/sidenav/NavMenuGroup.d.ts +3 -12
  434. package/lib/menus/sidenav/NavMenuGroup.js +16 -25
  435. package/lib/menus/sidenav/NavMenuItem.d.ts +3 -12
  436. package/lib/menus/sidenav/NavMenuItem.js +110 -140
  437. package/lib/menus/sidenav/NavSubMenuItem.d.ts +3 -12
  438. package/lib/menus/sidenav/NavSubMenuItem.js +22 -42
  439. package/lib/menus/sidenav/helpers.d.ts +5 -13
  440. package/lib/menus/sidenav/helpers.js +9 -17
  441. package/lib/menus/sidenav/index.d.ts +8 -16
  442. package/lib/menus/sidenav/index.js +122 -178
  443. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +3 -12
  444. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +18 -25
  445. package/lib/menus/sidenav/popup_menu_search/index.d.ts +4 -12
  446. package/lib/menus/sidenav/popup_menu_search/index.js +83 -109
  447. package/lib/menus/sidenav/sidenav.spec.d.ts +1 -0
  448. package/lib/menus/sidenav/types.d.ts +18 -23
  449. package/lib/noPermission/index.d.ts +2 -3
  450. package/lib/noPermission/index.js +11 -23
  451. package/lib/panel/Content.d.ts +3 -10
  452. package/lib/panel/Content.js +42 -78
  453. package/lib/panel/DangerPanel.d.ts +3 -10
  454. package/lib/panel/DangerPanel.js +7 -15
  455. package/lib/panel/Default.d.ts +3 -10
  456. package/lib/panel/Default.js +38 -63
  457. package/lib/panel/Header.d.ts +3 -10
  458. package/lib/panel/Header.js +40 -73
  459. package/lib/panel/InfoPanel.d.ts +3 -10
  460. package/lib/panel/InfoPanel.js +7 -15
  461. package/lib/panel/PrimaryPanel.d.ts +3 -10
  462. package/lib/panel/PrimaryPanel.js +7 -15
  463. package/lib/panel/SuccessPanel.d.ts +3 -10
  464. package/lib/panel/SuccessPanel.js +7 -15
  465. package/lib/panel/ToolBar.d.ts +3 -10
  466. package/lib/panel/ToolBar.js +5 -21
  467. package/lib/panel/WarningPanel.d.ts +3 -10
  468. package/lib/panel/WarningPanel.js +7 -15
  469. package/lib/panel/helpers.d.ts +5 -11
  470. package/lib/panel/helpers.js +11 -24
  471. package/lib/panel/index.d.ts +10 -18
  472. package/lib/panel/index.js +19 -59
  473. package/lib/panel/panel.spec.d.ts +0 -0
  474. package/lib/panel/types.d.ts +11 -15
  475. package/lib/permissionValidations.d.ts +4 -6
  476. package/lib/permissionValidations.js +37 -54
  477. package/lib/popover/PopoverText.d.ts +4 -11
  478. package/lib/popover/PopoverText.js +7 -20
  479. package/lib/popover/PopoverTitle.d.ts +3 -11
  480. package/lib/popover/PopoverTitle.js +4 -16
  481. package/lib/popover/index.d.ts +6 -13
  482. package/lib/popover/index.js +55 -65
  483. package/lib/popover/popover.spec.d.ts +1 -0
  484. package/lib/popover/types.d.ts +8 -12
  485. package/lib/progress/Bar.d.ts +3 -6
  486. package/lib/progress/Bar.js +39 -71
  487. package/lib/progress/index.d.ts +5 -7
  488. package/lib/progress/index.js +20 -37
  489. package/lib/progress/progress.spec.d.ts +1 -0
  490. package/lib/progress/types.d.ts +4 -7
  491. package/lib/radio/index.d.ts +3 -11
  492. package/lib/radio/index.js +94 -112
  493. package/lib/radio/radio.spec.d.ts +1 -0
  494. package/lib/radio/types.d.ts +3 -6
  495. package/lib/shortcuts/index.d.ts +3 -7
  496. package/lib/shortcuts/index.js +8 -27
  497. package/lib/shortcuts/shortcuts.spec.d.ts +0 -0
  498. package/lib/shortcuts/types.d.ts +2 -5
  499. package/lib/skeleton/SkeletonContainer.d.ts +3 -7
  500. package/lib/skeleton/SkeletonContainer.js +8 -22
  501. package/lib/skeleton/index.d.ts +5 -8
  502. package/lib/skeleton/index.js +23 -52
  503. package/lib/skeleton/types.d.ts +3 -6
  504. package/lib/spinner/SpinnerLoading.d.ts +3 -7
  505. package/lib/spinner/SpinnerLoading.js +17 -219
  506. package/lib/spinner/index.d.ts +3 -7
  507. package/lib/spinner/index.js +38 -57
  508. package/lib/spinner/spinner.spec.d.ts +1 -0
  509. package/lib/spinner/types.d.ts +5 -8
  510. package/lib/split/Split.d.ts +3 -6
  511. package/lib/split/Split.js +172 -275
  512. package/lib/split/SplitSide.d.ts +3 -6
  513. package/lib/split/SplitSide.js +17 -40
  514. package/lib/split/helpers.d.ts +4 -6
  515. package/lib/split/helpers.js +5 -10
  516. package/lib/split/index.d.ts +4 -8
  517. package/lib/split/index.js +6 -17
  518. package/lib/split/split.spec.d.ts +0 -0
  519. package/lib/split/types.d.ts +3 -6
  520. package/lib/table/Body.d.ts +3 -6
  521. package/lib/table/Body.js +56 -68
  522. package/lib/table/Header.d.ts +3 -6
  523. package/lib/table/Header.js +38 -86
  524. package/lib/table/HeaderColumn.d.ts +3 -6
  525. package/lib/table/HeaderColumn.js +27 -52
  526. package/lib/table/Row.d.ts +3 -6
  527. package/lib/table/Row.js +51 -75
  528. package/lib/table/RowColumn.d.ts +3 -6
  529. package/lib/table/RowColumn.js +41 -76
  530. package/lib/table/helpers.d.ts +6 -7
  531. package/lib/table/helpers.js +7 -15
  532. package/lib/table/index.d.ts +9 -11
  533. package/lib/table/index.js +105 -154
  534. package/lib/table/table.spec.d.ts +1 -0
  535. package/lib/table/types.d.ts +8 -12
  536. package/lib/tabs/DropdownTabs.d.ts +3 -11
  537. package/lib/tabs/DropdownTabs.js +78 -84
  538. package/lib/tabs/Menu.d.ts +3 -11
  539. package/lib/tabs/Menu.js +50 -46
  540. package/lib/tabs/MenuTabs.d.ts +4 -11
  541. package/lib/tabs/MenuTabs.js +87 -93
  542. package/lib/tabs/Panel.d.ts +3 -11
  543. package/lib/tabs/Panel.js +48 -80
  544. package/lib/tabs/context.d.ts +4 -12
  545. package/lib/tabs/context.js +63 -124
  546. package/lib/tabs/index.d.ts +5 -12
  547. package/lib/tabs/index.js +66 -74
  548. package/lib/tabs/tabHelpers.d.ts +7 -10
  549. package/lib/tabs/tabHelpers.js +39 -63
  550. package/lib/tabs/tabs.spec.d.ts +0 -0
  551. package/lib/tabs/types.d.ts +14 -24
  552. package/lib/tabs/useTabs.d.ts +1 -11
  553. package/lib/tabs/useTabs.js +8 -11
  554. package/lib/textContent/index.d.ts +6 -10
  555. package/lib/textContent/index.js +34 -37
  556. package/lib/textContent/textContent.spec.d.ts +1 -0
  557. package/lib/toolbar/ButtonBar.d.ts +3 -12
  558. package/lib/toolbar/ButtonBar.js +60 -63
  559. package/lib/toolbar/LabelBar.d.ts +3 -12
  560. package/lib/toolbar/LabelBar.js +40 -55
  561. package/lib/toolbar/Separator.d.ts +2 -3
  562. package/lib/toolbar/Separator.js +5 -12
  563. package/lib/toolbar/ToolBarGroup.d.ts +3 -12
  564. package/lib/toolbar/ToolBarGroup.js +4 -18
  565. package/lib/toolbar/helpers.d.ts +3 -12
  566. package/lib/toolbar/helpers.js +5 -9
  567. package/lib/toolbar/index.d.ts +8 -16
  568. package/lib/toolbar/index.js +32 -64
  569. package/lib/toolbar/toolbar.spec.d.ts +1 -0
  570. package/lib/toolbar/types.d.ts +11 -15
  571. package/lib/tooltip/index.d.ts +4 -6
  572. package/lib/tooltip/index.js +37 -61
  573. package/lib/tooltip/tooltip.spec.d.ts +1 -0
  574. package/lib/tooltip/types.d.ts +2 -4
  575. package/lib/treetable/Body.d.ts +2 -3
  576. package/lib/treetable/Body.js +33 -32
  577. package/lib/treetable/Header.d.ts +2 -3
  578. package/lib/treetable/Header.js +25 -23
  579. package/lib/treetable/Row.d.ts +3 -7
  580. package/lib/treetable/Row.js +152 -232
  581. package/lib/treetable/helpers.d.ts +4 -9
  582. package/lib/treetable/helpers.js +23 -30
  583. package/lib/treetable/index.d.ts +4 -8
  584. package/lib/treetable/index.js +17 -27
  585. package/lib/treeview/Header.d.ts +3 -7
  586. package/lib/treeview/Header.js +7 -20
  587. package/lib/treeview/Node.d.ts +3 -7
  588. package/lib/treeview/Node.js +173 -235
  589. package/lib/treeview/constants.d.ts +3 -7
  590. package/lib/treeview/constants.js +5 -9
  591. package/lib/treeview/index.d.ts +6 -9
  592. package/lib/treeview/index.js +177 -312
  593. package/lib/treeview/treeview.spec.d.ts +0 -0
  594. package/lib/treeview/types.d.ts +12 -14
  595. package/lib/uitour/helpers.d.ts +1 -2
  596. package/lib/uitour/helpers.js +9 -12
  597. package/lib/uitour/index.d.ts +4 -7
  598. package/lib/uitour/index.js +167 -236
  599. package/lib/uitour/types.d.ts +7 -10
  600. package/lib/uitour/uitour.spec.d.ts +0 -0
  601. package/package.json +37 -58
  602. package/lib/@types/Align.js +0 -5
  603. package/lib/@types/ButtonTypes.js +0 -5
  604. package/lib/@types/ColorStyles.js +0 -5
  605. package/lib/@types/DataCombo.js +0 -5
  606. package/lib/@types/Icon.js +0 -5
  607. package/lib/@types/LabelStyles.js +0 -5
  608. package/lib/@types/Period.js +0 -5
  609. package/lib/@types/PermissionAttr.js +0 -5
  610. package/lib/@types/PointerEvents.js +0 -5
  611. package/lib/@types/Position.js +0 -5
  612. package/lib/@types/PositionAlert.js +0 -5
  613. package/lib/@types/Size.js +0 -5
  614. package/lib/@types/SizePixels.js +0 -5
  615. package/lib/@types/StorageMock.js +0 -5
  616. package/lib/alerts/types.js +0 -5
  617. package/lib/assets/fonts/Roboto-Black.woff +0 -0
  618. package/lib/assets/fonts/Roboto-Black.woff2 +0 -0
  619. package/lib/assets/fonts/Roboto-Bold.woff +0 -0
  620. package/lib/assets/fonts/Roboto-Bold.woff2 +0 -0
  621. package/lib/assets/fonts/Roboto-Light.woff +0 -0
  622. package/lib/assets/fonts/Roboto-Light.woff2 +0 -0
  623. package/lib/assets/fonts/Roboto-Medium.woff +0 -0
  624. package/lib/assets/fonts/Roboto-Medium.woff2 +0 -0
  625. package/lib/assets/fonts/Roboto-Regular.woff +0 -0
  626. package/lib/assets/fonts/Roboto-Regular.woff2 +0 -0
  627. package/lib/assets/fonts/Roboto-Thin.woff +0 -0
  628. package/lib/assets/fonts/Roboto-Thin.woff2 +0 -0
  629. package/lib/assets/fonts/TitilliumWeb-Black.woff +0 -0
  630. package/lib/assets/fonts/TitilliumWeb-Black.woff2 +0 -0
  631. package/lib/assets/fonts/TitilliumWeb-Bold.woff +0 -0
  632. package/lib/assets/fonts/TitilliumWeb-Bold.woff2 +0 -0
  633. package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff +0 -0
  634. package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff2 +0 -0
  635. package/lib/assets/fonts/TitilliumWeb-Light.woff +0 -0
  636. package/lib/assets/fonts/TitilliumWeb-Light.woff2 +0 -0
  637. package/lib/assets/fonts/TitilliumWeb-Regular.woff +0 -0
  638. package/lib/assets/fonts/TitilliumWeb-Regular.woff2 +0 -0
  639. package/lib/assets/fonts/TitilliumWeb-SemiBold.woff +0 -0
  640. package/lib/assets/fonts/TitilliumWeb-SemiBold.woff2 +0 -0
  641. package/lib/assets/images/logo.png +0 -0
  642. package/lib/assets/styles/alerts.scss +0 -149
  643. package/lib/assets/styles/avatar.scss +0 -42
  644. package/lib/assets/styles/badge.scss +0 -48
  645. package/lib/assets/styles/button.scss +0 -373
  646. package/lib/assets/styles/calendar.scss +0 -311
  647. package/lib/assets/styles/checkbox.scss +0 -108
  648. package/lib/assets/styles/colorpicker.scss +0 -17
  649. package/lib/assets/styles/colors.scss +0 -144
  650. package/lib/assets/styles/commons.scss +0 -138
  651. package/lib/assets/styles/datepicker.scss +0 -36
  652. package/lib/assets/styles/dialog.scss +0 -200
  653. package/lib/assets/styles/drawers.scss +0 -159
  654. package/lib/assets/styles/dropdown.scss +0 -179
  655. package/lib/assets/styles/effects.scss +0 -821
  656. package/lib/assets/styles/error.scss +0 -9
  657. package/lib/assets/styles/fieldset.scss +0 -96
  658. package/lib/assets/styles/file.scss +0 -229
  659. package/lib/assets/styles/floatMenu.scss +0 -15
  660. package/lib/assets/styles/fonts.scss +0 -86
  661. package/lib/assets/styles/form.scss +0 -23
  662. package/lib/assets/styles/gridlayout.scss +0 -2054
  663. package/lib/assets/styles/hint.scss +0 -30
  664. package/lib/assets/styles/icon.scss +0 -42
  665. package/lib/assets/styles/input.scss +0 -156
  666. package/lib/assets/styles/label.scss +0 -118
  667. package/lib/assets/styles/labelMessages.scss +0 -81
  668. package/lib/assets/styles/list.scss +0 -124
  669. package/lib/assets/styles/multiSelect.scss +0 -125
  670. package/lib/assets/styles/noPermission.scss +0 -25
  671. package/lib/assets/styles/numbers.scss +0 -5
  672. package/lib/assets/styles/panel.scss +0 -95
  673. package/lib/assets/styles/periodpicker.scss +0 -109
  674. package/lib/assets/styles/popover.scss +0 -44
  675. package/lib/assets/styles/progress.scss +0 -72
  676. package/lib/assets/styles/radio.scss +0 -156
  677. package/lib/assets/styles/search.scss +0 -13
  678. package/lib/assets/styles/select.scss +0 -159
  679. package/lib/assets/styles/shortcuts.scss +0 -59
  680. package/lib/assets/styles/sidenav.scss +0 -409
  681. package/lib/assets/styles/skeleton.scss +0 -48
  682. package/lib/assets/styles/spinner.scss +0 -34
  683. package/lib/assets/styles/split.scss +0 -80
  684. package/lib/assets/styles/table.scss +0 -185
  685. package/lib/assets/styles/tabs.scss +0 -304
  686. package/lib/assets/styles/textContent.scss +0 -9
  687. package/lib/assets/styles/toolbar.scss +0 -74
  688. package/lib/assets/styles/tooltip.scss +0 -95
  689. package/lib/assets/styles/treetable.scss +0 -100
  690. package/lib/assets/styles/treeview.scss +0 -112
  691. package/lib/assets/styles/uitour.scss +0 -112
  692. package/lib/assets/styles/wizard.scss +0 -186
  693. package/lib/avatar/types.js +0 -5
  694. package/lib/badge/types.js +0 -5
  695. package/lib/buttons/types.js +0 -5
  696. package/lib/calendar/types.js +0 -5
  697. package/lib/checkbox/types.js +0 -5
  698. package/lib/dialog/base/style.js +0 -13
  699. package/lib/dialog/types.js +0 -5
  700. package/lib/drawer/types.js +0 -5
  701. package/lib/dropdown/types.js +0 -5
  702. package/lib/fieldset/types.js +0 -5
  703. package/lib/form/types.js +0 -5
  704. package/lib/gridlayout/types.js +0 -5
  705. package/lib/hint/types.js +0 -5
  706. package/lib/icons/types.js +0 -5
  707. package/lib/inputs/base/types.js +0 -5
  708. package/lib/inputs/color/types.js +0 -5
  709. package/lib/inputs/date/types.js +0 -5
  710. package/lib/inputs/file/types.js +0 -5
  711. package/lib/inputs/mask/types.js +0 -5
  712. package/lib/inputs/multiSelect/types.js +0 -5
  713. package/lib/inputs/number/types.js +0 -5
  714. package/lib/inputs/period/types.js +0 -5
  715. package/lib/inputs/select/types.js +0 -5
  716. package/lib/inputs/text/types.js +0 -5
  717. package/lib/inputs/textarea/types.js +0 -5
  718. package/lib/inputs/types.js +0 -5
  719. package/lib/internals/types.js +0 -5
  720. package/lib/labelMessages/types.js +0 -5
  721. package/lib/labels/types.js +0 -5
  722. package/lib/list/types.js +0 -5
  723. package/lib/menus/float/SubMenuContainer.js +0 -77
  724. package/lib/menus/float/types.js +0 -5
  725. package/lib/menus/sidenav/types.js +0 -5
  726. package/lib/panel/types.js +0 -5
  727. package/lib/popover/types.js +0 -5
  728. package/lib/progress/types.js +0 -5
  729. package/lib/radio/types.js +0 -5
  730. package/lib/shortcuts/types.js +0 -5
  731. package/lib/skeleton/types.js +0 -5
  732. package/lib/spinner/types.js +0 -5
  733. package/lib/split/types.js +0 -5
  734. package/lib/table/types.js +0 -5
  735. package/lib/tabs/types.js +0 -5
  736. package/lib/toolbar/types.js +0 -5
  737. package/lib/tooltip/types.js +0 -5
  738. package/lib/treetable/types.d.js +0 -5
  739. package/lib/treeview/types.js +0 -5
  740. package/lib/types.d-b477e076.d.ts +0 -47
  741. package/lib/uitour/types.js +0 -5
package/lib/form/index.js CHANGED
@@ -1,308 +1,162 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Field", {
7
- enumerable: true,
8
- get: function () {
9
- return _Field.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "FieldArray", {
13
- enumerable: true,
14
- get: function () {
15
- return _FieldArray.default;
16
- }
17
- });
18
- Object.defineProperty(exports, "FieldNumber", {
19
- enumerable: true,
20
- get: function () {
21
- return _FieldNumber.default;
22
- }
23
- });
24
- Object.defineProperty(exports, "FieldPeriod", {
25
- enumerable: true,
26
- get: function () {
27
- return _FieldPeriod.default;
28
- }
29
- });
30
- exports.default = void 0;
31
- var _react = _interopRequireWildcard(require("react"));
32
- var _uuid = require("uuid");
33
- var _lodash = _interopRequireDefault(require("lodash"));
34
- var _helpers = require("./helpers");
35
- var _Field = _interopRequireDefault(require("./Field"));
36
- var _FieldNumber = _interopRequireDefault(require("./FieldNumber"));
37
- var _FieldArray = _interopRequireDefault(require("./FieldArray"));
38
- var _FieldPeriod = _interopRequireDefault(require("./FieldPeriod"));
39
- require("../assets/styles/form.scss");
40
- var _dialog = require("../dialog");
41
- var _withFormSecurity = require("./withFormSecurity");
42
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
43
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
44
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
45
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
46
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
47
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
48
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
49
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
50
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
51
- const Form = _ref => {
52
- let {
53
- submitOnPressEnterKey = true,
54
- dataSource,
55
- securityBeforeUnload,
56
- handlerReset,
57
- handlerSubmit,
58
- handlerValidates,
59
- style,
60
- customClass,
61
- securityTitle,
62
- securityText,
63
- securityData,
64
- onDataChange,
65
- onValidateForm,
66
- externalFieldErrors,
67
- onSubmit,
68
- skeletonize,
69
- disabled,
70
- children,
71
- useInternalState = false,
72
- onValidateErrorsOnTab
73
- } = _ref;
74
- const formId = (0, _uuid.v1)();
75
- const [data, setData] = (0, _react.useState)(dataSource);
76
- const [originalData, setOriginalData] = (0, _react.useState)(dataSource);
77
- const [submitFormOnEnter, setSubmitFormOnEnter] = (0, _react.useState)(submitOnPressEnterKey);
78
- const [fieldErrors, setFieldErrors] = (0, _react.useState)({});
79
- const [oldFieldsValidatorsQuantity, setOldFieldsValidatorsQuantity] = (0, _react.useState)(0);
80
- const [isValid, setIsValid] = (0, _react.useState)(false);
81
- const context = (0, _react.useContext)(_withFormSecurity.FormSecurityContext);
82
- const formRef = (0, _react.useRef)(null);
83
- const fieldsValidators = (0, _react.useRef)({});
84
- const tabsWithErrorRef = (0, _react.useRef)([]);
85
- const usedData = useInternalState ? data : dataSource;
86
- const getValidatesErrorMessages = (validators, fieldValue) => {
87
- const validatorsArray = !(validators instanceof Array) ? [validators] : validators;
88
- let errors = [];
89
- validatorsArray.forEach(validator => {
90
- if (typeof validator === 'function') {
91
- const result = validator(fieldValue);
92
- if (result) errors = [...errors, result];
1
+ import { j as x } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
+ import { useState as m, useContext as ar, useRef as U, useCallback as q, useEffect as F, Fragment as dr } from "react";
3
+ import f from "lodash";
4
+ import { changeValue as B, FormContext as mr } from "./helpers.js";
5
+ import { default as br } from "./Field.js";
6
+ import { default as Rr } from "./FieldNumber.js";
7
+ import { default as Sr } from "./FieldArray.js";
8
+ import { default as Pr } from "./FieldPeriod.js";
9
+ import "../chunks/index.yztgndLc.js";
10
+ import "../buttons/DefaultButton.js";
11
+ import "../icons/index.js";
12
+ import '../assets/button.css';import '../assets/index13.css';/* empty css */
13
+ import ur from "../dialog/Question.js";
14
+ import { FormSecurityContext as pr } from "./withFormSecurity.js";
15
+ import { v as Fr } from "../chunks/v1.CDXKvGzE.js";
16
+ const wr = ({
17
+ submitOnPressEnterKey: g = !0,
18
+ dataSource: u,
19
+ securityBeforeUnload: j,
20
+ handlerReset: k,
21
+ handlerSubmit: L,
22
+ handlerValidates: w,
23
+ style: M,
24
+ customClass: z,
25
+ securityTitle: _,
26
+ securityText: $,
27
+ securityData: C,
28
+ onDataChange: d,
29
+ onValidateForm: p,
30
+ externalFieldErrors: G,
31
+ onSubmit: H,
32
+ skeletonize: T,
33
+ disabled: h,
34
+ children: W,
35
+ useInternalState: l = !1
36
+ }) => {
37
+ const X = Fr(), [v, J] = m(u), [E, Y] = m(u), [b, Z] = m(g), [V, O] = m({}), [A, K] = m(0), [I, rr] = m(!1), c = ar(pr), tr = U(null), a = U({}), i = l ? v : u, R = (r, t) => {
38
+ const o = r instanceof Array ? r : [r];
39
+ let e = [];
40
+ return o.forEach((s) => {
41
+ if (typeof s == "function") {
42
+ const n = s(t);
43
+ n && (e = [...e, n]);
93
44
  }
94
- });
95
- return errors;
96
- };
97
- const getErrorMessages = (currentData, currentValidators) => {
98
- const dataValidate = currentData || usedData;
99
- let currentFieldErrors = _lodash.default.pickBy(fieldErrors, (__, fieldName) => {
100
- const fieldValidatorsNames = Object.keys(currentValidators);
101
- return fieldValidatorsNames.includes(fieldName);
102
- });
103
- _lodash.default.forEach(currentValidators, (validators, fieldName) => {
104
- const fieldValue = _lodash.default.get(dataValidate, fieldName);
105
- const messages = getValidatesErrorMessages(validators, fieldValue);
106
- currentFieldErrors = _objectSpread(_objectSpread({}, currentFieldErrors), {}, {
107
- [fieldName]: messages
108
- });
109
- });
110
- return currentFieldErrors;
111
- };
112
- const checkIsValid = function (currentData) {
113
- let updateState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
114
- let currentValidators = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
115
- const currentFieldErrors = getErrorMessages(currentData, currentValidators || fieldsValidators.current);
116
- const isValidNow = Object.values(currentFieldErrors).every(value => value.length === 0);
117
- if (updateState) setIsValid(isValidNow);
118
- return isValidNow;
119
- };
120
- const onFieldChange = (0, _react.useCallback)(event => {
121
- const {
122
- target
123
- } = event;
124
- if (!useInternalState && onDataChange) {
125
- onDataChange(prevState => (0, _helpers.changeValue)(prevState, target));
126
- } else {
127
- setData(prevState => (0, _helpers.changeValue)(prevState, target));
45
+ }), e;
46
+ }, or = (r, t) => {
47
+ const o = r || i;
48
+ let e = f.pickBy(V, (s, n) => Object.keys(t).includes(n));
49
+ return f.forEach(t, (s, n) => {
50
+ const P = f.get(o, n), lr = R(s, P);
51
+ e = { ...e, [n]: lr };
52
+ }), e;
53
+ }, y = (r, t = !0, o = null) => {
54
+ const e = or(r, o || a.current), s = Object.values(e).every((n) => n.length === 0);
55
+ return t && rr(s), s;
56
+ }, er = q((r) => {
57
+ const { target: t } = r;
58
+ !l && d ? d((o) => B(o, t)) : J((o) => B(o, t));
59
+ }, []), sr = (r, t, o) => {
60
+ if (o) {
61
+ let e = V;
62
+ const s = R(o, t);
63
+ s.length === 0 ? e = f.omit(e, r) : e = { ...e, [r]: s }, O(e);
128
64
  }
129
- }, []);
130
- const onValidate = (fieldName, fieldValue, validators) => {
131
- if (validators) {
132
- let currentFieldErrors = fieldErrors;
133
- const errors = getValidatesErrorMessages(validators, fieldValue);
134
- if (errors.length === 0) {
135
- currentFieldErrors = _lodash.default.omit(currentFieldErrors, fieldName);
136
- } else {
137
- currentFieldErrors = _objectSpread(_objectSpread({}, currentFieldErrors), {}, {
138
- [fieldName]: errors
139
- });
65
+ }, Q = q((r) => {
66
+ r && (r.preventDefault(), r.stopPropagation()), y(i) && H(i);
67
+ }, [i]), S = (r, t) => {
68
+ const o = t ? t instanceof Array ? t : [t] : [];
69
+ o.length > 0 ? (r((e) => {
70
+ const s = JSON.parse(JSON.stringify(e));
71
+ return o.forEach((n) => {
72
+ n && f.set(s, n, f.get(E, n));
73
+ }), s;
74
+ }), O((e) => (o.forEach((s) => {
75
+ delete e[s];
76
+ }), e))) : (r(JSON.parse(JSON.stringify(E))), O({}));
77
+ }, ir = (r) => {
78
+ S(!l && d ? d : J, r);
79
+ }, nr = (r) => {
80
+ const t = f.omit(a, r);
81
+ a.current = t;
82
+ }, N = (r) => {
83
+ r.preventDefault(), f.isEqual(i, E);
84
+ }, fr = () => {
85
+ let r = null;
86
+ return h || (r = {
87
+ onSubmit: (t) => t.preventDefault(),
88
+ onKeyPress: (t) => {
89
+ t && t.key === "Enter" && (t.preventDefault(), t.stopPropagation(), b && Q());
140
90
  }
141
- setFieldErrors(currentFieldErrors);
91
+ }), r;
92
+ }, D = () => {
93
+ if (!f.isEmpty(c)) {
94
+ const { onChangedData: r } = c;
95
+ C && !f.isEqual(i, C) ? r(!0) : r(!1);
142
96
  }
97
+ d && l && d(i), p && p(y(i, !0)), h || (L(Q), k && k(ir), w && w(() => y(i))), f.isEmpty(i) && Y(i);
143
98
  };
144
- const onFormSubmit = (0, _react.useCallback)(event => {
145
- if (event) {
146
- event.preventDefault();
147
- event.stopPropagation();
148
- }
149
- if (checkIsValid(usedData)) onSubmit(usedData);
150
- }, [usedData]);
151
- const onResetField = (cb, fields) => {
152
- const fieldsArray = !fields ? [] : fields instanceof Array ? fields : [fields];
153
- if (fieldsArray.length > 0) {
154
- cb(state => {
155
- const newState = JSON.parse(JSON.stringify(state));
156
- fieldsArray.forEach(field => {
157
- if (field) _lodash.default.set(newState, field, _lodash.default.get(originalData, field));
158
- });
159
- return newState;
160
- });
161
- setFieldErrors(state => {
162
- fieldsArray.forEach(field => {
163
- delete state[field];
164
- });
165
- return state;
166
- });
167
- } else {
168
- cb(JSON.parse(JSON.stringify(originalData)));
169
- setFieldErrors({});
170
- }
171
- };
172
- const onReset = fields => {
173
- if (!useInternalState && onDataChange) {
174
- onResetField(onDataChange, fields);
175
- } else {
176
- onResetField(setData, fields);
177
- }
178
- };
179
- const onRemoveFieldValidators = fieldName => {
180
- const newFieldsValidators = _lodash.default.omit(fieldsValidators, fieldName);
181
- fieldsValidators.current = newFieldsValidators;
182
- };
183
- const onBeforeUnload = e => {
184
- const event = e;
185
- event.preventDefault();
186
- if (_lodash.default.isEqual(usedData, originalData)) return;
99
+ F(() => {
100
+ l && D();
101
+ }, [JSON.stringify(v), l]), F(() => {
102
+ !l && d && D();
103
+ }, [JSON.stringify(u), l]), F(() => (j && (c && c.setSecurityBeforeUnload(!0), window.addEventListener("beforeunload", N)), () => window.removeEventListener("beforeunload", N)), [j, N]), F(() => {
104
+ !h && g !== b && Z(g);
105
+ }, [g]), F(() => {
106
+ const r = Object.values(a.current).reduce((t, o) => t + ((o == null ? void 0 : o.length) || 0), 0);
107
+ a.current && p && A !== r && (K(r), p(y(i, !0, a.current)));
108
+ }, [
109
+ a.current,
110
+ A,
111
+ p,
112
+ JSON.stringify(i)
113
+ ]);
114
+ const cr = {
115
+ skeletonize: T,
116
+ handlerFieldChange: er,
117
+ handlerFieldValidate: sr,
118
+ handlerStoreValidators: (r, t) => {
119
+ a.current = { ...a.current, [r]: t };
120
+ },
121
+ handlerRemoveValidators: nr,
122
+ data: l ? v : u,
123
+ originalData: E,
124
+ fieldErrors: V,
125
+ externalFieldErrors: G,
126
+ isFormValid: I
187
127
  };
188
- const onValidateTabErrors = (0, _react.useCallback)(props => {
189
- if (!props.tabId) return;
190
- const tabIndex = [...tabsWithErrorRef.current].findIndex(tab => tab.name === props.name);
191
- if (tabIndex !== -1) {
192
- const novasTabs = [...tabsWithErrorRef.current];
193
- novasTabs[tabIndex] = props;
194
- tabsWithErrorRef.current = [...novasTabs];
195
- } else {
196
- tabsWithErrorRef.current = [...tabsWithErrorRef.current, props];
197
- }
198
- if (onValidateErrorsOnTab) {
199
- const tabIdsWithErrors = _lodash.default.uniq(_lodash.default.compact(tabsWithErrorRef.current.map(tab => {
200
- if (tab.hasErrors) return String(tab.tabId);
201
- })));
202
- onValidateErrorsOnTab(tabIdsWithErrors);
203
- }
204
- }, [onValidateErrorsOnTab]);
205
- const formProps = () => {
206
- let propsForm = null;
207
- if (!disabled) {
208
- propsForm = {
209
- onSubmit: event => event.preventDefault(),
210
- onKeyPress: event => {
211
- if (event && event.key === 'Enter') {
212
- event.preventDefault();
213
- event.stopPropagation();
214
- if (submitFormOnEnter) onFormSubmit();
215
- }
128
+ return /* @__PURE__ */ x.jsxs(dr, { children: [
129
+ /* @__PURE__ */ x.jsx(mr.Provider, { value: cr, children: /* @__PURE__ */ x.jsx(
130
+ "form",
131
+ {
132
+ id: X,
133
+ ref: tr,
134
+ style: M,
135
+ ...fr(),
136
+ role: "presentation",
137
+ className: `form-component ${z}`,
138
+ children: W
139
+ }
140
+ ) }),
141
+ /* @__PURE__ */ x.jsx(
142
+ ur,
143
+ {
144
+ zIndex: "99999999",
145
+ title: _ || "Dados Alterados",
146
+ text: $ || "Você possui dados alterados, confirma o fechamento?",
147
+ visible: !f.isEmpty(c) && c.showQuestion,
148
+ onConfirmClick: c ? c.onConfirmClick : () => {
149
+ },
150
+ onUnconfirmClick: c ? c.onUnconfirmClick : () => {
216
151
  }
217
- };
218
- }
219
- return propsForm;
220
- };
221
- const updateFormState = () => {
222
- if (!_lodash.default.isEmpty(context)) {
223
- const {
224
- onChangedData
225
- } = context;
226
- if (securityData && !_lodash.default.isEqual(usedData, securityData)) {
227
- onChangedData(true);
228
- } else {
229
- onChangedData(false);
230
152
  }
231
- }
232
- if (onDataChange && useInternalState) onDataChange(usedData);
233
-
234
- // TODO - Usar debounce para evitar chamada a cada letra digitada
235
- if (onValidateForm) {
236
- onValidateForm(checkIsValid(usedData, true));
237
- }
238
- if (!disabled) {
239
- handlerSubmit(onFormSubmit);
240
- if (handlerReset) handlerReset(onReset);
241
- if (handlerValidates) handlerValidates(() => checkIsValid(usedData));
242
- }
243
- if (_lodash.default.isEmpty(usedData)) setOriginalData(usedData);
244
- };
245
- (0, _react.useEffect)(() => {
246
- if (useInternalState) updateFormState();
247
- }, [JSON.stringify(data), useInternalState]);
248
- (0, _react.useEffect)(() => {
249
- if (!useInternalState && onDataChange) updateFormState();
250
- }, [JSON.stringify(dataSource), useInternalState]);
251
- (0, _react.useEffect)(() => {
252
- if (securityBeforeUnload) {
253
- if (Object.entries(context).length) context.setSecurityBeforeUnload(true);
254
- window.addEventListener('beforeunload', onBeforeUnload);
255
- }
256
- return () => {
257
- if (securityBeforeUnload && Object.entries(context).length) context.setSecurityBeforeUnload(false);
258
- window.removeEventListener('beforeunload', onBeforeUnload);
259
- };
260
- }, [securityBeforeUnload, onBeforeUnload]);
261
- (0, _react.useEffect)(() => {
262
- if (!disabled && submitOnPressEnterKey !== submitFormOnEnter) {
263
- setSubmitFormOnEnter(submitOnPressEnterKey);
264
- }
265
- }, [submitOnPressEnterKey]);
266
- (0, _react.useEffect)(() => {
267
- const validatorsQuantity = Object.values(fieldsValidators.current).reduce((acc, currentValue) => acc + (currentValue?.length || 0), 0);
268
- if (fieldsValidators.current && onValidateForm && oldFieldsValidatorsQuantity !== validatorsQuantity) {
269
- setOldFieldsValidatorsQuantity(validatorsQuantity);
270
- onValidateForm(checkIsValid(usedData, true, fieldsValidators.current));
271
- }
272
- }, [fieldsValidators.current, oldFieldsValidatorsQuantity, onValidateForm, JSON.stringify(usedData)]);
273
- const contextValues = {
274
- skeletonize,
275
- handlerFieldChange: onFieldChange,
276
- handlerFieldValidate: onValidate,
277
- handleValidationErrorsOnTab: onValidateTabErrors,
278
- handlerStoreValidators: (fieldName, fieldValidates) => {
279
- fieldsValidators.current = _objectSpread(_objectSpread({}, fieldsValidators.current), {}, {
280
- [fieldName]: fieldValidates
281
- });
282
- },
283
- handlerRemoveValidators: onRemoveFieldValidators,
284
- data: useInternalState ? data : dataSource,
285
- originalData,
286
- fieldErrors,
287
- externalFieldErrors,
288
- isFormValid: isValid
289
- };
290
- return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_helpers.FormContext.Provider, {
291
- value: contextValues
292
- }, /*#__PURE__*/_react.default.createElement("form", _extends({
293
- id: formId,
294
- ref: formRef,
295
- style: style
296
- }, formProps(), {
297
- role: "presentation",
298
- className: `form-component ${customClass}`
299
- }), children)), /*#__PURE__*/_react.default.createElement(_dialog.DialogQuestion, {
300
- zIndex: "99999999",
301
- title: securityTitle || 'Dados Alterados',
302
- text: securityText || 'Você possui dados alterados, confirma o fechamento?',
303
- visible: !_lodash.default.isEmpty(context) && context.showQuestion,
304
- onConfirmClick: context ? context.onConfirmClick : () => {},
305
- onUnconfirmClick: context ? context.onUnconfirmClick : () => {}
306
- }));
153
+ )
154
+ ] });
155
+ };
156
+ export {
157
+ br as Field,
158
+ Sr as FieldArray,
159
+ Rr as FieldNumber,
160
+ Pr as FieldPeriod,
161
+ wr as default
307
162
  };
308
- var _default = exports.default = Form;
@@ -1,29 +1,16 @@
1
- import { ChangeEvent, ComponentType, MouseEventHandler, ReactNode, CSSProperties } from 'react';
2
- import { AllOptions } from '../inputs/select/types.js';
3
- import '../@types/Align.js';
4
- import '../@types/DataCombo.js';
5
- import '../@types/PermissionAttr.js';
6
- import '../inputs/base/types.js';
7
- import '../@types/Period.js';
8
- import '../internals/types.js';
9
- import '../@types/Position.js';
10
-
11
- type Validator = (value: string) => string | undefined;
12
- type PeriodValidator = (value: {
1
+ import { ChangeEvent, ComponentType, CSSProperties, MouseEventHandler, ReactNode } from 'react';
2
+ import { AllOptions } from '../inputs/select/types';
3
+ export type Validator = (value: string) => string | undefined;
4
+ export type PeriodValidator = (value: {
13
5
  inicial: string;
14
6
  final: string;
15
7
  }) => string | undefined;
16
- type OnFielChangeEvent = Event & {
8
+ export type OnFielChangeEvent = Event & {
17
9
  target: HTMLInputElement;
18
10
  };
19
- type CustomKeyboardEvent = ChangeEvent<HTMLInputElement> & {
11
+ export type CustomKeyboardEvent = ChangeEvent<HTMLInputElement> & {
20
12
  keyCode: number;
21
13
  };
22
- type PropsValidateTabErrors = {
23
- name: string;
24
- tabId?: string | number;
25
- hasErrors: boolean;
26
- };
27
14
  type BaseFormProps = {
28
15
  dataSource: object;
29
16
  children: ReactNode;
@@ -32,7 +19,6 @@ type BaseFormProps = {
32
19
  handlerReset?: (value: () => void) => void;
33
20
  handlerValidates?: (value: any) => void;
34
21
  onValidateForm?: (value: boolean) => void;
35
- onValidateErrorsOnTab?: (tabIds: Array<string | number>) => void;
36
22
  submitOnPressEnterKey?: boolean;
37
23
  style?: CSSProperties;
38
24
  customClass?: string;
@@ -45,7 +31,7 @@ type BaseFormProps = {
45
31
  disabled?: boolean;
46
32
  };
47
33
  type OnDataChange = React.Dispatch<React.SetStateAction<object>>;
48
- type FormProps = BaseFormProps & ({
34
+ export type FormProps = BaseFormProps & ({
49
35
  useInternalState?: false;
50
36
  onDataChange: OnDataChange;
51
37
  } | {
@@ -55,7 +41,7 @@ type FormProps = BaseFormProps & ({
55
41
  type Data = {
56
42
  [key: string]: any;
57
43
  };
58
- interface IFieldProps extends WithFieldProps {
44
+ export interface IFieldProps extends WithFieldProps {
59
45
  data?: Data;
60
46
  originalData?: Data;
61
47
  dataSource?: Data;
@@ -101,16 +87,14 @@ interface IFieldProps extends WithFieldProps {
101
87
  disabled?: boolean;
102
88
  currencySymbol?: string;
103
89
  checked?: boolean;
104
- tabId?: string | number;
105
- handleValidationErrorsOnTab?: (props: PropsValidateTabErrors) => void;
106
90
  }
107
- interface CustomEvent {
91
+ export interface CustomEvent {
108
92
  target: {
109
93
  value: string[];
110
94
  name: string;
111
95
  };
112
96
  }
113
- interface IFieldArrayProps extends WithFieldProps {
97
+ export interface IFieldArrayProps extends WithFieldProps {
114
98
  data?: Data;
115
99
  originalData?: Data;
116
100
  dataSource?: Data;
@@ -119,7 +103,6 @@ interface IFieldArrayProps extends WithFieldProps {
119
103
  fieldErrors?: {
120
104
  [name: string]: string[];
121
105
  };
122
- component?: ComponentType<any>;
123
106
  validators?: Validator | Validator[];
124
107
  valuePropName?: string;
125
108
  changePropName?: string;
@@ -143,9 +126,8 @@ interface IFieldArrayProps extends WithFieldProps {
143
126
  hintPosition?: 'below' | 'onLabelRight';
144
127
  themePopover?: 'light' | 'dark';
145
128
  popoverAlign?: 'right' | 'left';
146
- tabId?: string | number;
147
129
  }
148
- type PeriodChangeEvent = {
130
+ export type PeriodChangeEvent = {
149
131
  initial: string;
150
132
  final: string;
151
133
  };
@@ -157,14 +139,13 @@ type PeriodFieldChangeEvent = {
157
139
  };
158
140
  };
159
141
  };
160
- interface IFieldPeriodProps extends WithFieldProps {
142
+ export interface IFieldPeriodProps extends WithFieldProps {
161
143
  data?: Data;
162
144
  originalData?: Data;
163
145
  nameDateInitial: string;
164
146
  nameDateFinal: string;
165
147
  handlerFieldChange?: (event: PeriodFieldChangeEvent) => PeriodFieldChangeEvent;
166
148
  label?: string;
167
- component?: ComponentType<any>;
168
149
  onBlur?: () => void;
169
150
  validators?: PeriodValidator | PeriodValidator[];
170
151
  fieldErrors?: {
@@ -181,9 +162,8 @@ interface IFieldPeriodProps extends WithFieldProps {
181
162
  hintPosition?: 'below' | 'onLabelRight';
182
163
  themePopover?: 'light' | 'dark';
183
164
  popoverAlign?: 'right' | 'left';
184
- tabId?: string | number;
185
165
  }
186
- interface FormContextProps {
166
+ export interface FormContextProps {
187
167
  skeletonize?: boolean;
188
168
  handlerFieldChange: (event: OnFielChangeEvent) => void;
189
169
  handlerFieldValidate: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
@@ -194,28 +174,27 @@ interface FormContextProps {
194
174
  fieldErrors: object;
195
175
  externalFieldErrors?: object;
196
176
  isFormValid?: boolean;
197
- handleValidationErrorsOnTab?: (props: PropsValidateTabErrors) => void;
198
177
  }
199
- interface WithFieldProps {
178
+ export interface WithFieldProps {
200
179
  name: string;
201
180
  data?: Data;
202
181
  handlerStoreValidators?: (name: string, validators: Validator | Validator[]) => void;
203
182
  handlerRemoveValidators?: (name: string) => void;
204
183
  validators?: Validator | Validator[] | PeriodValidator | PeriodValidator[];
205
184
  customClass?: string;
206
- handleValidationErrorsOnTab?: (props: PropsValidateTabErrors) => void;
185
+ component: ComponentType<any>;
207
186
  }
208
- interface IWithFieldContext {
187
+ export interface IWithFieldContext {
209
188
  validatorFromComponent: Validator | Validator[] | undefined;
210
189
  handlerSetValidatorFromComponent: (validator: Validator | Validator[]) => void;
211
190
  }
212
- interface IWithFormSecurity {
191
+ export interface IWithFormSecurity {
213
192
  onOpenChange?: (open: boolean) => void;
214
193
  handlerClose?: () => void;
215
194
  onClick?: MouseEventHandler;
216
195
  children?: ReactNode;
217
196
  }
218
- interface IFormSecurityContext {
197
+ export interface IFormSecurityContext {
219
198
  onChangedData: (value: boolean) => void;
220
199
  showQuestion: boolean;
221
200
  onConfirmClick: () => void;
@@ -223,7 +202,7 @@ interface IFormSecurityContext {
223
202
  setSecurityBeforeUnload: (value: boolean) => void;
224
203
  securityBeforeUnload?: boolean;
225
204
  }
226
- interface IEventParams {
205
+ export interface IEventParams {
227
206
  name: string;
228
207
  data?: object;
229
208
  validators?: Validator | Validator[];
@@ -235,7 +214,7 @@ interface IEventParams {
235
214
  validatorFromComponent?: Validator | Validator[];
236
215
  component?: ComponentType<any>;
237
216
  }
238
- interface IGetErrorMessagesParams {
217
+ export interface IGetErrorMessagesParams {
239
218
  name: string;
240
219
  fieldErrors?: {
241
220
  [name: string]: string[];
@@ -245,11 +224,10 @@ interface IGetErrorMessagesParams {
245
224
  };
246
225
  externalMessagesErrors?: string[];
247
226
  }
248
- type FieldErrors = {
227
+ export type FieldErrors = {
249
228
  [name: string]: string[];
250
229
  };
251
- type FieldValidator = {
230
+ export type FieldValidator = {
252
231
  [name: string]: Validator | Validator[];
253
232
  };
254
-
255
- export { CustomEvent, CustomKeyboardEvent, FieldErrors, FieldValidator, FormContextProps, FormProps, IEventParams, IFieldArrayProps, IFieldPeriodProps, IFieldProps, IFormSecurityContext, IGetErrorMessagesParams, IWithFieldContext, IWithFormSecurity, OnFielChangeEvent, PeriodChangeEvent, PeriodValidator, PropsValidateTabErrors, Validator, WithFieldProps };
233
+ export {};