linear-react-components-ui 1.1.26-beta.7 → 1.1.26-beta.8

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 (602) hide show
  1. package/lib/@types/Align.d.ts +2 -0
  2. package/lib/@types/ButtonTypes.d.ts +1 -0
  3. package/lib/@types/ColorStyles.d.ts +1 -0
  4. package/lib/@types/DataCombo.d.ts +1 -0
  5. package/lib/@types/Icon.d.ts +2 -0
  6. package/lib/@types/LabelStyles.d.ts +1 -0
  7. package/lib/@types/Period.d.ts +4 -0
  8. package/lib/@types/PermissionAttr.d.ts +12 -0
  9. package/lib/@types/PointerEvents.d.ts +1 -0
  10. package/lib/@types/Position.d.ts +1 -0
  11. package/lib/@types/PositionAlert.d.ts +1 -0
  12. package/lib/@types/Size.d.ts +1 -0
  13. package/lib/@types/SizePixels.d.ts +1 -0
  14. package/lib/@types/StorageMock.d.ts +3 -0
  15. package/lib/alerts/AlertContainer.d.ts +12 -0
  16. package/lib/alerts/AlertContainer.js +70 -0
  17. package/lib/alerts/AlertProvider.d.ts +3 -0
  18. package/lib/alerts/AlertProvider.js +46 -0
  19. package/lib/alerts/BaseAlert.d.ts +3 -0
  20. package/lib/alerts/BaseAlert.js +20 -0
  21. package/lib/alerts/Message.d.ts +3 -0
  22. package/lib/alerts/Message.js +94 -0
  23. package/lib/alerts/alert.spec.d.ts +0 -0
  24. package/lib/alerts/helpers.d.ts +3 -0
  25. package/lib/alerts/helpers.js +5 -0
  26. package/lib/alerts/index.d.ts +4 -0
  27. package/lib/alerts/index.js +6 -0
  28. package/lib/alerts/types.d.ts +47 -0
  29. package/lib/alerts/withAlert.d.ts +4 -0
  30. package/lib/alerts/withAlert.js +14 -0
  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/index3.css +1 -0
  60. package/lib/assets/index4.css +1 -0
  61. package/lib/assets/index5.css +1 -0
  62. package/lib/assets/index6.css +1 -0
  63. package/lib/assets/index7.css +1 -0
  64. package/lib/assets/index8.css +1 -0
  65. package/lib/assets/index9.css +1 -0
  66. package/lib/assets/label.css +1 -0
  67. package/lib/assets/noPermission.css +1 -0
  68. package/lib/assets/panel.css +1 -0
  69. package/lib/assets/progressbar.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 +6 -0
  78. package/lib/avatar/index.js +55 -0
  79. package/lib/avatar/types.d.ts +27 -0
  80. package/lib/badge/badge.spec.d.ts +1 -0
  81. package/lib/badge/index.d.ts +3 -0
  82. package/lib/badge/index.js +28 -0
  83. package/lib/badge/types.d.ts +10 -0
  84. package/lib/buttons/ActivateButton.d.ts +3 -0
  85. package/lib/buttons/ActivateButton.js +11 -0
  86. package/lib/buttons/AddButton.d.ts +3 -0
  87. package/lib/buttons/AddButton.js +14 -0
  88. package/lib/buttons/Button.d.ts +6 -0
  89. package/lib/buttons/Button.js +19 -0
  90. package/lib/buttons/ButtonGroups.d.ts +6 -0
  91. package/lib/buttons/ButtonGroups.js +12 -0
  92. package/lib/buttons/CancelButton.d.ts +3 -0
  93. package/lib/buttons/CancelButton.js +16 -0
  94. package/lib/buttons/DangerButton.d.ts +3 -0
  95. package/lib/buttons/DangerButton.js +17 -0
  96. package/lib/buttons/DefaultButton.d.ts +6 -0
  97. package/lib/buttons/DefaultButton.js +95 -0
  98. package/lib/buttons/DestroyButton.d.ts +3 -0
  99. package/lib/buttons/DestroyButton.js +23 -0
  100. package/lib/buttons/EditButton.d.ts +3 -0
  101. package/lib/buttons/EditButton.js +11 -0
  102. package/lib/buttons/InactivateButton.d.ts +3 -0
  103. package/lib/buttons/InactivateButton.js +11 -0
  104. package/lib/buttons/InfoButton.d.ts +3 -0
  105. package/lib/buttons/InfoButton.js +17 -0
  106. package/lib/buttons/PrimaryButton.d.ts +3 -0
  107. package/lib/buttons/PrimaryButton.js +17 -0
  108. package/lib/buttons/RestoreButton.d.ts +3 -0
  109. package/lib/buttons/RestoreButton.js +11 -0
  110. package/lib/buttons/SaveButton.d.ts +3 -0
  111. package/lib/buttons/SaveButton.js +16 -0
  112. package/lib/buttons/SuccessButton.d.ts +3 -0
  113. package/lib/buttons/SuccessButton.js +17 -0
  114. package/lib/buttons/WarningButton.d.ts +3 -0
  115. package/lib/buttons/WarningButton.js +17 -0
  116. package/lib/buttons/button_container/index.d.ts +10 -0
  117. package/lib/buttons/button_container/index.js +23 -0
  118. package/lib/buttons/buttons.spec.d.ts +0 -0
  119. package/lib/buttons/index.d.ts +17 -0
  120. package/lib/buttons/index.js +33 -0
  121. package/lib/buttons/split_button/index.d.ts +3 -0
  122. package/lib/buttons/split_button/index.js +58 -0
  123. package/lib/buttons/types.d.ts +46 -0
  124. package/lib/calendar/DangerCalendar.d.ts +3 -0
  125. package/lib/calendar/DangerCalendar.js +20 -0
  126. package/lib/calendar/InfoCalendar.d.ts +3 -0
  127. package/lib/calendar/InfoCalendar.js +20 -0
  128. package/lib/calendar/PrimaryCalendar.d.ts +3 -0
  129. package/lib/calendar/PrimaryCalendar.js +20 -0
  130. package/lib/calendar/SuccessCalendar.d.ts +3 -0
  131. package/lib/calendar/SuccessCalendar.js +20 -0
  132. package/lib/calendar/WarningCalendar.d.ts +3 -0
  133. package/lib/calendar/WarningCalendar.js +20 -0
  134. package/lib/calendar/base/Day.d.ts +3 -0
  135. package/lib/calendar/base/Day.js +37 -0
  136. package/lib/calendar/base/Month.d.ts +3 -0
  137. package/lib/calendar/base/Month.js +28 -0
  138. package/lib/calendar/base/Week.d.ts +3 -0
  139. package/lib/calendar/base/Week.js +24 -0
  140. package/lib/calendar/base/helpers.d.ts +59 -0
  141. package/lib/calendar/base/helpers.js +100 -0
  142. package/lib/calendar/base/index.d.ts +3 -0
  143. package/lib/calendar/base/index.js +137 -0
  144. package/lib/calendar/calendar.spec.d.ts +0 -0
  145. package/lib/calendar/index.d.ts +8 -0
  146. package/lib/calendar/index.js +14 -0
  147. package/lib/calendar/types.d.ts +27 -0
  148. package/lib/checkbox/checkbox.spec.d.ts +1 -0
  149. package/lib/checkbox/index.d.ts +9 -0
  150. package/lib/checkbox/index.js +32 -0
  151. package/lib/checkbox/types.d.ts +45 -0
  152. package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
  153. package/lib/chunks/index.Df3kt2LQ.js +667 -0
  154. package/lib/chunks/index.aw0XaUkg.js +266 -0
  155. package/lib/chunks/jsx-runtime.D1SHvdVE.js +282 -0
  156. package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
  157. package/lib/chunks/moment.DMLRxgRE.js +2589 -0
  158. package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
  159. package/lib/chunks/v1.Ds1rkxUj.js +49 -0
  160. package/lib/dialog/Alert.d.ts +3 -0
  161. package/lib/dialog/Alert.js +24 -0
  162. package/lib/dialog/Custom.d.ts +3 -0
  163. package/lib/dialog/Custom.js +47 -0
  164. package/lib/dialog/Error.d.ts +3 -0
  165. package/lib/dialog/Error.js +24 -0
  166. package/lib/dialog/Information.d.ts +3 -0
  167. package/lib/dialog/Information.js +24 -0
  168. package/lib/dialog/Question.d.ts +3 -0
  169. package/lib/dialog/Question.js +47 -0
  170. package/lib/dialog/Warning.d.ts +3 -0
  171. package/lib/dialog/Warning.js +24 -0
  172. package/lib/dialog/base/Content.d.ts +3 -0
  173. package/lib/dialog/base/Content.js +15 -0
  174. package/lib/dialog/base/Footer.d.ts +3 -0
  175. package/lib/dialog/base/Footer.js +10 -0
  176. package/lib/dialog/base/Header.d.ts +3 -0
  177. package/lib/dialog/base/Header.js +8 -0
  178. package/lib/dialog/base/index.d.ts +10 -0
  179. package/lib/dialog/base/index.js +10 -0
  180. package/lib/dialog/base/style.d.ts +7 -0
  181. package/lib/dialog/dialog.spec.d.ts +0 -0
  182. package/lib/dialog/form/index.d.ts +5 -0
  183. package/lib/dialog/form/index.js +16 -0
  184. package/lib/dialog/index.d.ts +9 -0
  185. package/lib/dialog/index.js +16 -0
  186. package/lib/dialog/types.d.ts +107 -0
  187. package/lib/dialog/wizard/index.d.ts +9 -0
  188. package/lib/dialog/wizard/index.js +15 -0
  189. package/lib/dialog/wizard/progressbar.d.ts +11 -0
  190. package/lib/dialog/wizard/progressbar.js +98 -0
  191. package/lib/dialog/wizard/step.d.ts +2 -0
  192. package/lib/dialog/wizard/step.js +6 -0
  193. package/lib/dialog/wizard/useWizard.d.ts +2 -0
  194. package/lib/dialog/wizard/useWizard.js +45 -0
  195. package/lib/dialog/wizard/wizard.spec.d.ts +0 -0
  196. package/lib/drawer/Content.d.ts +3 -0
  197. package/lib/drawer/Content.js +18 -0
  198. package/lib/drawer/Drawer.d.ts +4 -0
  199. package/lib/drawer/Drawer.js +75 -0
  200. package/lib/drawer/Drawer.spec.d.ts +1 -0
  201. package/lib/drawer/Header.d.ts +3 -0
  202. package/lib/drawer/Header.js +56 -0
  203. package/lib/drawer/helpers.d.ts +4 -0
  204. package/lib/drawer/helpers.js +5 -0
  205. package/lib/drawer/index.d.ts +5 -0
  206. package/lib/drawer/index.js +10 -0
  207. package/lib/drawer/types.d.ts +37 -0
  208. package/lib/dropdown/Popup.d.ts +3 -0
  209. package/lib/dropdown/Popup.js +51 -0
  210. package/lib/dropdown/dropdown.spec.d.ts +1 -0
  211. package/lib/dropdown/helper.d.ts +2 -0
  212. package/lib/dropdown/helper.js +8 -0
  213. package/lib/dropdown/types.d.ts +45 -0
  214. package/lib/dropdown/withDropdown.d.ts +9 -0
  215. package/lib/dropdown/withDropdown.js +80 -0
  216. package/lib/fieldset/fieldset.spec.d.ts +1 -0
  217. package/lib/fieldset/index.d.ts +3 -0
  218. package/lib/fieldset/index.js +70 -0
  219. package/lib/fieldset/types.d.ts +27 -0
  220. package/lib/form/Field.d.ts +2 -0
  221. package/lib/form/Field.js +98 -0
  222. package/lib/form/FieldArray.d.ts +2 -0
  223. package/lib/form/FieldArray.js +68 -0
  224. package/lib/form/FieldNumber.d.ts +2 -0
  225. package/lib/form/FieldNumber.js +48 -0
  226. package/lib/form/FieldPeriod.d.ts +2 -0
  227. package/lib/form/FieldPeriod.js +95 -0
  228. package/lib/form/form.spec.d.ts +0 -0
  229. package/lib/form/helpers.d.ts +8 -0
  230. package/lib/form/helpers.js +28 -0
  231. package/lib/form/index.d.ts +8 -0
  232. package/lib/form/index.js +150 -0
  233. package/lib/form/types.d.ts +233 -0
  234. package/lib/form/withFieldHOC.d.ts +4 -0
  235. package/lib/form/withFieldHOC.js +62 -0
  236. package/lib/form/withFormSecurity.d.ts +6 -0
  237. package/lib/form/withFormSecurity.js +30 -0
  238. package/lib/gridlayout/GridCol.d.ts +3 -0
  239. package/lib/gridlayout/GridCol.js +27 -0
  240. package/lib/gridlayout/GridRow.d.ts +3 -0
  241. package/lib/gridlayout/GridRow.js +26 -0
  242. package/lib/gridlayout/gridLayout.spec.d.ts +1 -0
  243. package/lib/gridlayout/index.d.ts +4 -0
  244. package/lib/gridlayout/index.js +6 -0
  245. package/lib/gridlayout/types.d.ts +17 -0
  246. package/lib/hint/helpers.d.ts +1 -0
  247. package/lib/hint/helpers.js +12 -0
  248. package/lib/hint/hint.spec.d.ts +1 -0
  249. package/lib/hint/index.d.ts +3 -0
  250. package/lib/hint/index.js +30 -0
  251. package/lib/hint/types.d.ts +11 -0
  252. package/lib/icons/helper.d.ts +635 -0
  253. package/lib/icons/helper.js +637 -0
  254. package/lib/icons/icons.spec.d.ts +1 -0
  255. package/lib/icons/index.d.ts +6 -0
  256. package/lib/icons/index.js +66 -0
  257. package/lib/icons/types.d.ts +46 -0
  258. package/lib/index.d.ts +10 -0
  259. package/lib/index.js +28 -0
  260. package/lib/inputs/base/InputTextBase.d.ts +3 -0
  261. package/lib/inputs/base/InputTextBase.js +183 -0
  262. package/lib/inputs/base/Label.d.ts +6 -0
  263. package/lib/inputs/base/Label.js +30 -0
  264. package/lib/inputs/base/base.spec.d.ts +1 -0
  265. package/lib/inputs/base/helpers.d.ts +10 -0
  266. package/lib/inputs/base/helpers.js +30 -0
  267. package/lib/inputs/base/types.d.ts +98 -0
  268. package/lib/inputs/color/color_input.spec.d.ts +0 -0
  269. package/lib/inputs/color/index.d.ts +3 -0
  270. package/lib/inputs/color/index.js +57 -0
  271. package/lib/inputs/color/types.d.ts +16 -0
  272. package/lib/inputs/date/Dialog.d.ts +3 -0
  273. package/lib/inputs/date/Dialog.js +17 -0
  274. package/lib/inputs/date/Dropdown.d.ts +3 -0
  275. package/lib/inputs/date/Dropdown.js +19 -0
  276. package/lib/inputs/date/date.spec.d.ts +1 -0
  277. package/lib/inputs/date/helpers.d.ts +5 -0
  278. package/lib/inputs/date/helpers.js +10 -0
  279. package/lib/inputs/date/index.d.ts +3 -0
  280. package/lib/inputs/date/index.js +136 -0
  281. package/lib/inputs/date/types.d.ts +56 -0
  282. package/lib/inputs/errorMessage/error.spec.d.ts +1 -0
  283. package/lib/inputs/errorMessage/index.d.ts +4 -0
  284. package/lib/inputs/errorMessage/index.js +24 -0
  285. package/lib/inputs/file/DefaultFile.d.ts +3 -0
  286. package/lib/inputs/file/DefaultFile.js +68 -0
  287. package/lib/inputs/file/DragDropFile.d.ts +3 -0
  288. package/lib/inputs/file/DragDropFile.js +135 -0
  289. package/lib/inputs/file/File.d.ts +3 -0
  290. package/lib/inputs/file/File.js +31 -0
  291. package/lib/inputs/file/FileButtonSettings.d.ts +3 -0
  292. package/lib/inputs/file/FileButtonSettings.js +24 -0
  293. package/lib/inputs/file/filefield.spec.d.ts +1 -0
  294. package/lib/inputs/file/helpers.d.ts +2 -0
  295. package/lib/inputs/file/helpers.js +11 -0
  296. package/lib/inputs/file/index.d.ts +5 -0
  297. package/lib/inputs/file/index.js +8 -0
  298. package/lib/inputs/file/types.d.ts +49 -0
  299. package/lib/inputs/inputHOC.d.ts +4 -0
  300. package/lib/inputs/inputHOC.js +42 -0
  301. package/lib/inputs/mask/BaseMask.d.ts +3 -0
  302. package/lib/inputs/mask/BaseMask.js +2672 -0
  303. package/lib/inputs/mask/Cnpj.d.ts +6 -0
  304. package/lib/inputs/mask/Cnpj.js +46 -0
  305. package/lib/inputs/mask/Cpf.d.ts +6 -0
  306. package/lib/inputs/mask/Cpf.js +48 -0
  307. package/lib/inputs/mask/Phone.d.ts +3 -0
  308. package/lib/inputs/mask/Phone.js +13 -0
  309. package/lib/inputs/mask/ZipCode.d.ts +3 -0
  310. package/lib/inputs/mask/ZipCode.js +11 -0
  311. package/lib/inputs/mask/helpers.d.ts +52 -0
  312. package/lib/inputs/mask/helpers.js +63 -0
  313. package/lib/inputs/mask/index.d.ts +7 -0
  314. package/lib/inputs/mask/index.js +12 -0
  315. package/lib/inputs/mask/input_mask.spec.d.ts +0 -0
  316. package/lib/inputs/mask/types.d.ts +73 -0
  317. package/lib/inputs/multiSelect/ActionButtons.d.ts +3 -0
  318. package/lib/inputs/multiSelect/ActionButtons.js +39 -0
  319. package/lib/inputs/multiSelect/Dropdown.d.ts +3 -0
  320. package/lib/inputs/multiSelect/Dropdown.js +98 -0
  321. package/lib/inputs/multiSelect/helper.d.ts +3 -0
  322. package/lib/inputs/multiSelect/helper.js +8 -0
  323. package/lib/inputs/multiSelect/index.d.ts +3 -0
  324. package/lib/inputs/multiSelect/index.js +180 -0
  325. package/lib/inputs/multiSelect/multiSelect.spec.d.ts +1 -0
  326. package/lib/inputs/multiSelect/types.d.ts +57 -0
  327. package/lib/inputs/number/BaseNumber.d.ts +3 -0
  328. package/lib/inputs/number/BaseNumber.js +59 -0
  329. package/lib/inputs/number/Currency.d.ts +3 -0
  330. package/lib/inputs/number/Currency.js +22 -0
  331. package/lib/inputs/number/Decimal.d.ts +3 -0
  332. package/lib/inputs/number/Decimal.js +11 -0
  333. package/lib/inputs/number/format_number.d.ts +3 -0
  334. package/lib/inputs/number/format_number.js +9 -0
  335. package/lib/inputs/number/index.d.ts +6 -0
  336. package/lib/inputs/number/index.js +34 -0
  337. package/lib/inputs/number/numberfield.spec.d.ts +1 -0
  338. package/lib/inputs/number/types.d.ts +28 -0
  339. package/lib/inputs/period/Dialog.d.ts +3 -0
  340. package/lib/inputs/period/Dialog.js +18 -0
  341. package/lib/inputs/period/Dropdown.d.ts +3 -0
  342. package/lib/inputs/period/Dropdown.js +18 -0
  343. package/lib/inputs/period/PeriodList.d.ts +3 -0
  344. package/lib/inputs/period/PeriodList.js +43 -0
  345. package/lib/inputs/period/helper.d.ts +11 -0
  346. package/lib/inputs/period/helper.js +39 -0
  347. package/lib/inputs/period/index.d.ts +3 -0
  348. package/lib/inputs/period/index.js +213 -0
  349. package/lib/inputs/period/types.d.ts +69 -0
  350. package/lib/inputs/search/index.d.ts +3 -0
  351. package/lib/inputs/search/index.js +104 -0
  352. package/lib/inputs/search/search_input.spec.d.ts +1 -0
  353. package/lib/inputs/select/ActionButtons.d.ts +3 -0
  354. package/lib/inputs/select/ActionButtons.js +28 -0
  355. package/lib/inputs/select/Dropdown.d.ts +3 -0
  356. package/lib/inputs/select/Dropdown.js +70 -0
  357. package/lib/inputs/select/helper.d.ts +11 -0
  358. package/lib/inputs/select/helper.js +48 -0
  359. package/lib/inputs/select/index.d.ts +3 -0
  360. package/lib/inputs/select/index.js +27 -0
  361. package/lib/inputs/select/multiple/Selecteds.d.ts +3 -0
  362. package/lib/inputs/select/multiple/Selecteds.js +25 -0
  363. package/lib/inputs/select/multiple/index.d.ts +3 -0
  364. package/lib/inputs/select/multiple/index.js +126 -0
  365. package/lib/inputs/select/select.spec.d.ts +1 -0
  366. package/lib/inputs/select/simple/index.d.ts +3 -0
  367. package/lib/inputs/select/simple/index.js +156 -0
  368. package/lib/inputs/select/types.d.ts +117 -0
  369. package/lib/inputs/text/index.d.ts +3 -0
  370. package/lib/inputs/text/index.js +11 -0
  371. package/lib/inputs/text/textfield.spec.d.ts +1 -0
  372. package/lib/inputs/text/types.d.ts +21 -0
  373. package/lib/inputs/textarea/index.d.ts +3 -0
  374. package/lib/inputs/textarea/index.js +16 -0
  375. package/lib/inputs/textarea/textarea.spec.d.ts +1 -0
  376. package/lib/inputs/textarea/types.d.ts +7 -0
  377. package/lib/inputs/types.d.ts +151 -0
  378. package/lib/internals/colorStyles.d.ts +8 -0
  379. package/lib/internals/colorStyles.js +10 -0
  380. package/lib/internals/constants.d.ts +9 -0
  381. package/lib/internals/constants.js +12 -0
  382. package/lib/internals/types.d.ts +22 -0
  383. package/lib/internals/withTooltip.d.ts +8 -0
  384. package/lib/internals/withTooltip.js +122 -0
  385. package/lib/labelMessages/index.d.ts +3 -0
  386. package/lib/labelMessages/index.js +53 -0
  387. package/lib/labelMessages/labelMessages.spec.d.ts +1 -0
  388. package/lib/labelMessages/types.d.ts +16 -0
  389. package/lib/labels/DangerLabel.d.ts +3 -0
  390. package/lib/labels/DangerLabel.js +20 -0
  391. package/lib/labels/DefaultLabel.d.ts +6 -0
  392. package/lib/labels/DefaultLabel.js +55 -0
  393. package/lib/labels/InfoLabel.d.ts +3 -0
  394. package/lib/labels/InfoLabel.js +20 -0
  395. package/lib/labels/PrimaryLabel.d.ts +3 -0
  396. package/lib/labels/PrimaryLabel.js +20 -0
  397. package/lib/labels/SuccessLabel.d.ts +3 -0
  398. package/lib/labels/SuccessLabel.js +20 -0
  399. package/lib/labels/WarningLabel.d.ts +3 -0
  400. package/lib/labels/WarningLabel.js +20 -0
  401. package/lib/labels/index.d.ts +9 -0
  402. package/lib/labels/index.js +17 -0
  403. package/lib/labels/label.spec.d.ts +1 -0
  404. package/lib/labels/label_container/index.d.ts +10 -0
  405. package/lib/labels/label_container/index.js +18 -0
  406. package/lib/labels/types.d.ts +22 -0
  407. package/lib/list/Header.d.ts +3 -0
  408. package/lib/list/Header.js +20 -0
  409. package/lib/list/Item.d.ts +6 -0
  410. package/lib/list/Item.js +14 -0
  411. package/lib/list/Separator.d.ts +2 -0
  412. package/lib/list/Separator.js +10 -0
  413. package/lib/list/helpers.d.ts +9 -0
  414. package/lib/list/helpers.js +10 -0
  415. package/lib/list/index.d.ts +7 -0
  416. package/lib/list/index.js +104 -0
  417. package/lib/list/list.spec.d.ts +1 -0
  418. package/lib/list/types.d.ts +69 -0
  419. package/lib/menus/float/MenuItem.d.ts +3 -0
  420. package/lib/menus/float/MenuItem.js +55 -0
  421. package/lib/menus/float/SubMenuContainer.d.ts +29 -0
  422. package/lib/menus/float/float-menu.spec.d.ts +0 -0
  423. package/lib/menus/float/helpers.d.ts +4 -0
  424. package/lib/menus/float/helpers.js +5 -0
  425. package/lib/menus/float/index.d.ts +6 -0
  426. package/lib/menus/float/index.js +113 -0
  427. package/lib/menus/float/types.d.ts +26 -0
  428. package/lib/menus/index.d.ts +2 -0
  429. package/lib/menus/index.js +4 -0
  430. package/lib/menus/sidenav/ExpandMenu.d.ts +3 -0
  431. package/lib/menus/sidenav/ExpandMenu.js +19 -0
  432. package/lib/menus/sidenav/MenuLink.d.ts +6 -0
  433. package/lib/menus/sidenav/MenuLink.js +24 -0
  434. package/lib/menus/sidenav/NavMenuGroup.d.ts +3 -0
  435. package/lib/menus/sidenav/NavMenuGroup.js +22 -0
  436. package/lib/menus/sidenav/NavMenuItem.d.ts +6 -0
  437. package/lib/menus/sidenav/NavMenuItem.js +136 -0
  438. package/lib/menus/sidenav/NavSubMenuItem.d.ts +3 -0
  439. package/lib/menus/sidenav/NavSubMenuItem.js +39 -0
  440. package/lib/menus/sidenav/helpers.d.ts +6 -0
  441. package/lib/menus/sidenav/helpers.js +10 -0
  442. package/lib/menus/sidenav/index.d.ts +8 -0
  443. package/lib/menus/sidenav/index.js +150 -0
  444. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +3 -0
  445. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +23 -0
  446. package/lib/menus/sidenav/popup_menu_search/index.d.ts +4 -0
  447. package/lib/menus/sidenav/popup_menu_search/index.js +56 -0
  448. package/lib/menus/sidenav/sidenav.spec.d.ts +1 -0
  449. package/lib/menus/sidenav/types.d.ts +85 -0
  450. package/lib/noPermission/index.d.ts +2 -0
  451. package/lib/noPermission/index.js +16 -0
  452. package/lib/panel/Content.d.ts +3 -0
  453. package/lib/panel/Content.js +55 -0
  454. package/lib/panel/DangerPanel.d.ts +3 -0
  455. package/lib/panel/DangerPanel.js +12 -0
  456. package/lib/panel/Default.d.ts +3 -0
  457. package/lib/panel/Default.js +68 -0
  458. package/lib/panel/Header.d.ts +3 -0
  459. package/lib/panel/Header.js +58 -0
  460. package/lib/panel/InfoPanel.d.ts +3 -0
  461. package/lib/panel/InfoPanel.js +12 -0
  462. package/lib/panel/PrimaryPanel.d.ts +3 -0
  463. package/lib/panel/PrimaryPanel.js +12 -0
  464. package/lib/panel/SuccessPanel.d.ts +3 -0
  465. package/lib/panel/SuccessPanel.js +12 -0
  466. package/lib/panel/ToolBar.d.ts +3 -0
  467. package/lib/panel/ToolBar.js +19 -0
  468. package/lib/panel/WarningPanel.d.ts +3 -0
  469. package/lib/panel/WarningPanel.js +12 -0
  470. package/lib/panel/helpers.d.ts +5 -0
  471. package/lib/panel/helpers.js +15 -0
  472. package/lib/panel/index.d.ts +10 -0
  473. package/lib/panel/index.js +19 -0
  474. package/lib/panel/panel.spec.d.ts +0 -0
  475. package/lib/panel/types.d.ts +43 -0
  476. package/lib/permissionValidations.d.ts +12 -0
  477. package/lib/permissionValidations.js +46 -0
  478. package/lib/popover/PopoverText.d.ts +4 -0
  479. package/lib/popover/PopoverText.js +14 -0
  480. package/lib/popover/PopoverTitle.d.ts +3 -0
  481. package/lib/popover/PopoverTitle.js +12 -0
  482. package/lib/popover/index.d.ts +6 -0
  483. package/lib/popover/index.js +39 -0
  484. package/lib/popover/popover.spec.d.ts +1 -0
  485. package/lib/popover/types.d.ts +31 -0
  486. package/lib/progress/Bar.d.ts +3 -0
  487. package/lib/progress/Bar.js +51 -0
  488. package/lib/progress/index.d.ts +5 -0
  489. package/lib/progress/index.js +26 -0
  490. package/lib/progress/progress.spec.d.ts +1 -0
  491. package/lib/progress/types.d.ts +34 -0
  492. package/lib/radio/index.d.ts +8 -0
  493. package/lib/radio/index.js +112 -0
  494. package/lib/radio/radio.spec.d.ts +1 -0
  495. package/lib/radio/types.d.ts +25 -0
  496. package/lib/shortcuts/index.d.ts +3 -0
  497. package/lib/shortcuts/index.js +22 -0
  498. package/lib/shortcuts/shortcuts.spec.d.ts +0 -0
  499. package/lib/shortcuts/types.d.ts +9 -0
  500. package/lib/skeleton/SkeletonContainer.d.ts +3 -0
  501. package/lib/skeleton/SkeletonContainer.js +19 -0
  502. package/lib/skeleton/index.d.ts +5 -0
  503. package/lib/skeleton/index.js +49 -0
  504. package/lib/skeleton/types.d.ts +18 -0
  505. package/lib/spinner/SpinnerLoading.d.ts +3 -0
  506. package/lib/spinner/SpinnerLoading.js +55 -0
  507. package/lib/spinner/index.d.ts +3 -0
  508. package/lib/spinner/index.js +51 -0
  509. package/lib/spinner/spinner.spec.d.ts +1 -0
  510. package/lib/spinner/types.d.ts +17 -0
  511. package/lib/split/Split.d.ts +3 -0
  512. package/lib/split/Split.js +193 -0
  513. package/lib/split/SplitSide.d.ts +3 -0
  514. package/lib/split/SplitSide.js +27 -0
  515. package/lib/split/helpers.d.ts +8 -0
  516. package/lib/split/helpers.js +5 -0
  517. package/lib/split/index.d.ts +4 -0
  518. package/lib/split/index.js +6 -0
  519. package/lib/split/split.spec.d.ts +0 -0
  520. package/lib/split/types.d.ts +31 -0
  521. package/lib/table/Body.d.ts +3 -0
  522. package/lib/table/Body.js +46 -0
  523. package/lib/table/Header.d.ts +3 -0
  524. package/lib/table/Header.js +52 -0
  525. package/lib/table/HeaderColumn.d.ts +3 -0
  526. package/lib/table/HeaderColumn.js +43 -0
  527. package/lib/table/Row.d.ts +3 -0
  528. package/lib/table/Row.js +53 -0
  529. package/lib/table/RowColumn.d.ts +3 -0
  530. package/lib/table/RowColumn.js +58 -0
  531. package/lib/table/helpers.d.ts +7 -0
  532. package/lib/table/helpers.js +9 -0
  533. package/lib/table/index.d.ts +9 -0
  534. package/lib/table/index.js +106 -0
  535. package/lib/table/table.spec.d.ts +1 -0
  536. package/lib/table/types.d.ts +94 -0
  537. package/lib/tabs/DropdownTabs.d.ts +3 -0
  538. package/lib/tabs/DropdownTabs.js +84 -0
  539. package/lib/tabs/Menu.d.ts +3 -0
  540. package/lib/tabs/Menu.js +38 -0
  541. package/lib/tabs/MenuTabs.d.ts +4 -0
  542. package/lib/tabs/MenuTabs.js +64 -0
  543. package/lib/tabs/Panel.d.ts +3 -0
  544. package/lib/tabs/Panel.js +62 -0
  545. package/lib/tabs/context.d.ts +4 -0
  546. package/lib/tabs/context.js +64 -0
  547. package/lib/tabs/index.d.ts +5 -0
  548. package/lib/tabs/index.js +73 -0
  549. package/lib/tabs/tabHelpers.d.ts +9 -0
  550. package/lib/tabs/tabHelpers.js +48 -0
  551. package/lib/tabs/tabs.spec.d.ts +0 -0
  552. package/lib/tabs/types.d.ts +95 -0
  553. package/lib/tabs/useTabs.d.ts +1 -0
  554. package/lib/tabs/useTabs.js +8 -0
  555. package/lib/textContent/index.d.ts +18 -0
  556. package/lib/textContent/index.js +33 -0
  557. package/lib/textContent/textContent.spec.d.ts +1 -0
  558. package/lib/toolbar/ButtonBar.d.ts +3 -0
  559. package/lib/toolbar/ButtonBar.js +67 -0
  560. package/lib/toolbar/LabelBar.d.ts +3 -0
  561. package/lib/toolbar/LabelBar.js +51 -0
  562. package/lib/toolbar/Separator.d.ts +2 -0
  563. package/lib/toolbar/Separator.js +10 -0
  564. package/lib/toolbar/ToolBarGroup.d.ts +3 -0
  565. package/lib/toolbar/ToolBarGroup.js +16 -0
  566. package/lib/toolbar/helpers.d.ts +3 -0
  567. package/lib/toolbar/helpers.js +5 -0
  568. package/lib/toolbar/index.d.ts +8 -0
  569. package/lib/toolbar/index.js +39 -0
  570. package/lib/toolbar/toolbar.spec.d.ts +1 -0
  571. package/lib/toolbar/types.d.ts +43 -0
  572. package/lib/tooltip/index.d.ts +4 -0
  573. package/lib/tooltip/index.js +39 -0
  574. package/lib/tooltip/tooltip.spec.d.ts +1 -0
  575. package/lib/tooltip/types.d.ts +15 -0
  576. package/lib/treetable/Body.d.ts +2 -0
  577. package/lib/treetable/Body.js +34 -0
  578. package/lib/treetable/Header.d.ts +2 -0
  579. package/lib/treetable/Header.js +30 -0
  580. package/lib/treetable/Row.d.ts +3 -0
  581. package/lib/treetable/Row.js +220 -0
  582. package/lib/treetable/helpers.d.ts +13 -0
  583. package/lib/treetable/helpers.js +17 -0
  584. package/lib/treetable/index.d.ts +4 -0
  585. package/lib/treetable/index.js +28 -0
  586. package/lib/treeview/Header.d.ts +3 -0
  587. package/lib/treeview/Header.js +16 -0
  588. package/lib/treeview/Node.d.ts +3 -0
  589. package/lib/treeview/Node.js +206 -0
  590. package/lib/treeview/constants.d.ts +3 -0
  591. package/lib/treeview/constants.js +5 -0
  592. package/lib/treeview/index.d.ts +6 -0
  593. package/lib/treeview/index.js +268 -0
  594. package/lib/treeview/treeview.spec.d.ts +0 -0
  595. package/lib/treeview/types.d.ts +106 -0
  596. package/lib/uitour/helpers.d.ts +7 -0
  597. package/lib/uitour/helpers.js +9 -0
  598. package/lib/uitour/index.d.ts +4 -0
  599. package/lib/uitour/index.js +187 -0
  600. package/lib/uitour/types.d.ts +35 -0
  601. package/lib/uitour/uitour.spec.d.ts +0 -0
  602. package/package.json +1 -1
@@ -0,0 +1,150 @@
1
+ import { j as x } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { useState as m, useContext as ar, useRef as U, useCallback as q, useEffect as F, Fragment as ur } from "react";
3
+ import { _ as f } from "../chunks/lodash.CIAK_hAg.js";
4
+ import { changeValue as B, FormContext as mr } from "./helpers.js";
5
+ import { default as Ar } from "./Field.js";
6
+ import { default as Qr } from "./FieldNumber.js";
7
+ import { default as Dr } from "./FieldArray.js";
8
+ import { default as Ur } from "./FieldPeriod.js";
9
+ import "../chunks/index.aw0XaUkg.js";
10
+ import "../chunks/compiler-runtime.Cu50tn6L.js";
11
+ import "../buttons/DefaultButton.js";
12
+ import "../icons/index.js";
13
+ import '../assets/button.css';import '../assets/index13.css';/* empty css */
14
+ import dr from "../dialog/Question.js";
15
+ import { FormSecurityContext as pr } from "./withFormSecurity.js";
16
+ import { v as Fr } from "../chunks/v1.Ds1rkxUj.js";
17
+ const Cr = ({
18
+ submitOnPressEnterKey: g = !0,
19
+ dataSource: d,
20
+ securityBeforeUnload: j,
21
+ handlerReset: k,
22
+ handlerSubmit: L,
23
+ handlerValidates: w,
24
+ style: M,
25
+ customClass: z,
26
+ securityTitle: $,
27
+ securityText: G,
28
+ securityData: C,
29
+ onDataChange: u,
30
+ onValidateForm: p,
31
+ externalFieldErrors: H,
32
+ onSubmit: T,
33
+ skeletonize: W,
34
+ disabled: V,
35
+ children: X,
36
+ useInternalState: l = !1
37
+ }) => {
38
+ const Y = Fr(), [h, J] = m(d), [E, Z] = m(d), [b, K] = m(g), [v, O] = m({}), [A, _] = m(0), [I, rr] = m(!1), c = ar(pr), tr = U(null), a = U({}), i = l ? h : d, R = (r, t) => {
39
+ const e = r instanceof Array ? r : [r];
40
+ let o = [];
41
+ return e.forEach((s) => {
42
+ if (typeof s == "function") {
43
+ const n = s(t);
44
+ n && (o = [...o, n]);
45
+ }
46
+ }), o;
47
+ }, or = (r, t) => {
48
+ const e = r || i;
49
+ let o = f.pickBy(v, (s, n) => Object.keys(t).includes(n));
50
+ return f.forEach(t, (s, n) => {
51
+ const P = f.get(e, n), lr = R(s, P);
52
+ o = {
53
+ ...o,
54
+ [n]: lr
55
+ };
56
+ }), o;
57
+ }, y = (r, t = !0, e = null) => {
58
+ const o = or(r, e || a.current), s = Object.values(o).every((n) => n.length === 0);
59
+ return t && rr(s), s;
60
+ }, er = q((r) => {
61
+ const {
62
+ target: t
63
+ } = r;
64
+ !l && u ? u((e) => B(e, t)) : J((e) => B(e, t));
65
+ }, []), sr = (r, t, e) => {
66
+ if (e) {
67
+ let o = v;
68
+ const s = R(e, t);
69
+ s.length === 0 ? o = f.omit(o, r) : o = {
70
+ ...o,
71
+ [r]: s
72
+ }, O(o);
73
+ }
74
+ }, Q = q((r) => {
75
+ r && (r.preventDefault(), r.stopPropagation()), y(i) && T(i);
76
+ }, [i]), S = (r, t) => {
77
+ const e = t ? t instanceof Array ? t : [t] : [];
78
+ e.length > 0 ? (r((o) => {
79
+ const s = JSON.parse(JSON.stringify(o));
80
+ return e.forEach((n) => {
81
+ n && f.set(s, n, f.get(E, n));
82
+ }), s;
83
+ }), O((o) => (e.forEach((s) => {
84
+ delete o[s];
85
+ }), o))) : (r(JSON.parse(JSON.stringify(E))), O({}));
86
+ }, ir = (r) => {
87
+ S(!l && u ? u : J, r);
88
+ }, nr = (r) => {
89
+ const t = f.omit(a, r);
90
+ a.current = t;
91
+ }, N = (r) => {
92
+ r.preventDefault(), f.isEqual(i, E);
93
+ }, fr = () => {
94
+ let r = null;
95
+ return V || (r = {
96
+ onSubmit: (t) => t.preventDefault(),
97
+ onKeyPress: (t) => {
98
+ t && t.key === "Enter" && (t.preventDefault(), t.stopPropagation(), b && Q());
99
+ }
100
+ }), r;
101
+ }, D = () => {
102
+ if (!f.isEmpty(c)) {
103
+ const {
104
+ onChangedData: r
105
+ } = c;
106
+ C && !f.isEqual(i, C) ? r(!0) : r(!1);
107
+ }
108
+ u && l && u(i), p && p(y(i, !0)), V || (L(Q), k && k(ir), w && w(() => y(i))), f.isEmpty(i) && Z(i);
109
+ };
110
+ F(() => {
111
+ l && D();
112
+ }, [JSON.stringify(h), l]), F(() => {
113
+ !l && u && D();
114
+ }, [JSON.stringify(d), l]), F(() => (j && (c && c.setSecurityBeforeUnload(!0), window.addEventListener("beforeunload", N)), () => window.removeEventListener("beforeunload", N)), [j, N]), F(() => {
115
+ !V && g !== b && K(g);
116
+ }, [g]), F(() => {
117
+ const r = Object.values(a.current).reduce((t, e) => t + (e?.length || 0), 0);
118
+ a.current && p && A !== r && (_(r), p(y(i, !0, a.current)));
119
+ }, [a.current, A, p, JSON.stringify(i)]);
120
+ const cr = {
121
+ skeletonize: W,
122
+ handlerFieldChange: er,
123
+ handlerFieldValidate: sr,
124
+ handlerStoreValidators: (r, t) => {
125
+ a.current = {
126
+ ...a.current,
127
+ [r]: t
128
+ };
129
+ },
130
+ handlerRemoveValidators: nr,
131
+ data: l ? h : d,
132
+ originalData: E,
133
+ fieldErrors: v,
134
+ externalFieldErrors: H,
135
+ isFormValid: I
136
+ };
137
+ return /* @__PURE__ */ x.jsxs(ur, { children: [
138
+ /* @__PURE__ */ x.jsx(mr.Provider, { value: cr, children: /* @__PURE__ */ x.jsx("form", { id: Y, ref: tr, style: M, ...fr(), role: "presentation", className: `form-component ${z}`, children: X }) }),
139
+ /* @__PURE__ */ x.jsx(dr, { zIndex: "99999999", title: $ || "Dados Alterados", text: G || "Você possui dados alterados, confirma o fechamento?", visible: !f.isEmpty(c) && c.showQuestion, onConfirmClick: c ? c.onConfirmClick : () => {
140
+ }, onUnconfirmClick: c ? c.onUnconfirmClick : () => {
141
+ } })
142
+ ] });
143
+ };
144
+ export {
145
+ Ar as Field,
146
+ Dr as FieldArray,
147
+ Qr as FieldNumber,
148
+ Ur as FieldPeriod,
149
+ Cr as default
150
+ };
@@ -0,0 +1,233 @@
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: {
5
+ inicial: string;
6
+ final: string;
7
+ }) => string | undefined;
8
+ export type OnFielChangeEvent = Event & {
9
+ target: HTMLInputElement;
10
+ };
11
+ export type CustomKeyboardEvent = ChangeEvent<HTMLInputElement> & {
12
+ keyCode: number;
13
+ };
14
+ type BaseFormProps = {
15
+ dataSource: object;
16
+ children: ReactNode;
17
+ onSubmit: (data: object) => void;
18
+ handlerSubmit: (value: () => void) => void;
19
+ handlerReset?: (value: () => void) => void;
20
+ handlerValidates?: (value: any) => void;
21
+ onValidateForm?: (value: boolean) => void;
22
+ submitOnPressEnterKey?: boolean;
23
+ style?: CSSProperties;
24
+ customClass?: string;
25
+ securityBeforeUnload?: boolean;
26
+ securityTitle?: string;
27
+ securityText?: string;
28
+ securityData?: object;
29
+ externalFieldErrors?: object;
30
+ skeletonize?: boolean;
31
+ disabled?: boolean;
32
+ };
33
+ type OnDataChange = React.Dispatch<React.SetStateAction<object>>;
34
+ export type FormProps = BaseFormProps & ({
35
+ useInternalState?: false;
36
+ onDataChange: OnDataChange;
37
+ } | {
38
+ useInternalState: true;
39
+ onDataChange?: OnDataChange;
40
+ });
41
+ type Data = {
42
+ [key: string]: any;
43
+ };
44
+ export interface IFieldProps extends WithFieldProps {
45
+ data?: Data;
46
+ originalData?: Data;
47
+ dataSource?: Data;
48
+ name: string;
49
+ value?: string;
50
+ label?: string;
51
+ handlerFieldChange?: (event: ChangeEvent<HTMLInputElement> | CustomKeyboardEvent) => ChangeEvent;
52
+ handlerFieldValidate?: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
53
+ component: ComponentType<any>;
54
+ componentType?: 'Radio' | 'Checkbox';
55
+ onChange?: (event: ChangeEvent) => ChangeEvent;
56
+ onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;
57
+ onKeyDown?: (event: ChangeEvent<HTMLInputElement>) => void;
58
+ validators?: Validator | Validator[];
59
+ fieldErrors?: {
60
+ [name: string]: string[];
61
+ };
62
+ externalFieldErrors?: {
63
+ [name: string]: string[];
64
+ };
65
+ externalMessagesErrors?: string[];
66
+ fieldId?: string;
67
+ scale?: number;
68
+ required?: boolean;
69
+ idKey?: string;
70
+ descriptionKey?: string;
71
+ showClearButton?: boolean;
72
+ gridLayout?: string;
73
+ allOptions?: AllOptions;
74
+ searchNotFoundText?: string;
75
+ min?: number;
76
+ max?: number;
77
+ autoFocus?: boolean;
78
+ autoCompleteMask?: 'left' | 'right';
79
+ mask?: string;
80
+ hint?: string | string[];
81
+ hintPosition?: 'below' | 'onLabelRight';
82
+ themePopover?: 'light' | 'dark';
83
+ popoverAlign?: 'right' | 'left';
84
+ displayCurrencySymbol?: boolean;
85
+ removeZeroLeft?: boolean;
86
+ textAlign?: 'left' | 'right';
87
+ disabled?: boolean;
88
+ currencySymbol?: string;
89
+ checked?: boolean;
90
+ }
91
+ export interface CustomEvent {
92
+ target: {
93
+ value: string[];
94
+ name: string;
95
+ };
96
+ }
97
+ export interface IFieldArrayProps extends WithFieldProps {
98
+ data?: Data;
99
+ originalData?: Data;
100
+ dataSource?: Data;
101
+ name: string;
102
+ handlerFieldChange?: (event: CustomEvent) => void;
103
+ fieldErrors?: {
104
+ [name: string]: string[];
105
+ };
106
+ validators?: Validator | Validator[];
107
+ valuePropName?: string;
108
+ changePropName?: string;
109
+ handlerSelecionados?: (ids: string[]) => void;
110
+ label?: string;
111
+ skipLabel?: boolean;
112
+ bordered?: boolean;
113
+ cols?: string;
114
+ labelContainerStyle?: object;
115
+ externalMessagesErrors?: string[];
116
+ idKey?: string;
117
+ descriptionKey?: string;
118
+ showClearButton?: boolean;
119
+ gridLayout?: string;
120
+ multiple?: boolean;
121
+ disabled?: boolean;
122
+ onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;
123
+ handlerFieldValidate?: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
124
+ required?: boolean;
125
+ hint?: string | string[];
126
+ hintPosition?: 'below' | 'onLabelRight';
127
+ themePopover?: 'light' | 'dark';
128
+ popoverAlign?: 'right' | 'left';
129
+ }
130
+ export type PeriodChangeEvent = {
131
+ initial: string;
132
+ final: string;
133
+ };
134
+ type PeriodFieldChangeEvent = {
135
+ target: {
136
+ name: string;
137
+ value: {
138
+ [valueDate: string]: string;
139
+ };
140
+ };
141
+ };
142
+ export interface IFieldPeriodProps extends WithFieldProps {
143
+ data?: Data;
144
+ originalData?: Data;
145
+ nameDateInitial: string;
146
+ nameDateFinal: string;
147
+ handlerFieldChange?: (event: PeriodFieldChangeEvent) => PeriodFieldChangeEvent;
148
+ label?: string;
149
+ onBlur?: () => void;
150
+ validators?: PeriodValidator | PeriodValidator[];
151
+ fieldErrors?: {
152
+ [name: string]: string[];
153
+ };
154
+ externalMessagesErrors?: string[];
155
+ externalFieldErrors?: {
156
+ [name: string]: string[];
157
+ };
158
+ handlerFieldValidate?: (name: string, value: object, validatorsArray: PeriodValidator[] | PeriodValidator) => void;
159
+ onChange?: (event: PeriodChangeEvent) => PeriodChangeEvent;
160
+ gridLayout?: string;
161
+ hint?: string | string[];
162
+ hintPosition?: 'below' | 'onLabelRight';
163
+ themePopover?: 'light' | 'dark';
164
+ popoverAlign?: 'right' | 'left';
165
+ }
166
+ export interface FormContextProps {
167
+ skeletonize?: boolean;
168
+ handlerFieldChange: (event: OnFielChangeEvent) => void;
169
+ handlerFieldValidate: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
170
+ handlerStoreValidators: (fieldName: string, fieldValidates: Validator) => void;
171
+ handlerRemoveValidators: (fieldName: string) => void;
172
+ data: object;
173
+ originalData: object;
174
+ fieldErrors: object;
175
+ externalFieldErrors?: object;
176
+ isFormValid?: boolean;
177
+ }
178
+ export interface WithFieldProps {
179
+ name: string;
180
+ data?: Data;
181
+ handlerStoreValidators?: (name: string, validators: Validator | Validator[]) => void;
182
+ handlerRemoveValidators?: (name: string) => void;
183
+ validators?: Validator | Validator[] | PeriodValidator | PeriodValidator[];
184
+ customClass?: string;
185
+ component: ComponentType<any>;
186
+ }
187
+ export interface IWithFieldContext {
188
+ validatorFromComponent: Validator | Validator[] | undefined;
189
+ handlerSetValidatorFromComponent: (validator: Validator | Validator[]) => void;
190
+ }
191
+ export interface IWithFormSecurity {
192
+ onOpenChange?: (open: boolean) => void;
193
+ handlerClose?: () => void;
194
+ onClick?: MouseEventHandler;
195
+ children?: ReactNode;
196
+ }
197
+ export interface IFormSecurityContext {
198
+ onChangedData: (value: boolean) => void;
199
+ showQuestion: boolean;
200
+ onConfirmClick: () => void;
201
+ onUnconfirmClick: () => void;
202
+ setSecurityBeforeUnload: (value: boolean) => void;
203
+ securityBeforeUnload?: boolean;
204
+ }
205
+ export interface IEventParams {
206
+ name: string;
207
+ data?: object;
208
+ validators?: Validator | Validator[];
209
+ onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;
210
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
211
+ onKeyDown?: (event: CustomKeyboardEvent) => void;
212
+ handlerFieldValidate?: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
213
+ handlerFieldChange?: (event: ChangeEvent<HTMLInputElement> | CustomKeyboardEvent) => void;
214
+ validatorFromComponent?: Validator | Validator[];
215
+ component?: ComponentType<any>;
216
+ }
217
+ export interface IGetErrorMessagesParams {
218
+ name: string;
219
+ fieldErrors?: {
220
+ [name: string]: string[];
221
+ };
222
+ externalFieldErrors?: {
223
+ [name: string]: string[];
224
+ };
225
+ externalMessagesErrors?: string[];
226
+ }
227
+ export type FieldErrors = {
228
+ [name: string]: string[];
229
+ };
230
+ export type FieldValidator = {
231
+ [name: string]: Validator | Validator[];
232
+ };
233
+ export {};
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { WithFieldProps } from './types';
3
+ declare const withFieldHOC: <ComponentProps extends WithFieldProps>(WrappedComponent: React.ComponentType<ComponentProps>) => any;
4
+ export default withFieldHOC;
@@ -0,0 +1,62 @@
1
+ import { j as v } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as y } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import E, { useState as _, useEffect as j } from "react";
4
+ import { FormContext as b, withFieldContext as A, getValidatorsArray as g } from "./helpers.js";
5
+ const k = (F) => {
6
+ const w = (a) => {
7
+ const e = y.c(23), {
8
+ name: o,
9
+ validators: t,
10
+ handlerStoreValidators: n,
11
+ handlerRemoveValidators: i
12
+ } = a, [r, R] = _(void 0);
13
+ let s;
14
+ e[0] !== n || e[1] !== o || e[2] !== r || e[3] !== t ? (s = () => {
15
+ const p = g(t, r);
16
+ p && n && n(o, p);
17
+ }, e[0] = n, e[1] = o, e[2] = r, e[3] = t, e[4] = s) : s = e[4];
18
+ const l = s;
19
+ let f;
20
+ e[5] !== i || e[6] !== o || e[7] !== l || e[8] !== t ? (f = () => (l(), () => {
21
+ t && i && i(o);
22
+ }), e[5] = i, e[6] = o, e[7] = l, e[8] = t, e[9] = f) : f = e[9];
23
+ let d;
24
+ e[10] === Symbol.for("react.memo_cache_sentinel") ? (d = [], e[10] = d) : d = e[10], j(f, d);
25
+ let c;
26
+ e[11] !== l ? (c = () => {
27
+ l();
28
+ }, e[11] = l, e[12] = c) : c = e[12];
29
+ let u;
30
+ e[13] !== t ? (u = [t], e[13] = t, e[14] = u) : u = e[14], j(c, u);
31
+ let x;
32
+ e[15] === Symbol.for("react.memo_cache_sentinel") ? (x = (p) => {
33
+ R(p);
34
+ }, e[15] = x) : x = e[15];
35
+ let h;
36
+ e[16] !== r ? (h = {
37
+ validatorFromComponent: r,
38
+ handlerSetValidatorFromComponent: x
39
+ }, e[16] = r, e[17] = h) : h = e[17];
40
+ const V = h;
41
+ let m;
42
+ e[18] !== a ? (m = /* @__PURE__ */ v.jsx(F, { ...a }), e[18] = a, e[19] = m) : m = e[19];
43
+ let C;
44
+ return e[20] !== V || e[21] !== m ? (C = /* @__PURE__ */ v.jsx(A.Provider, { value: V, children: m }), e[20] = V, e[21] = m, e[22] = C) : C = e[22], C;
45
+ };
46
+ function S(a, e) {
47
+ return /* @__PURE__ */ v.jsx(b.Consumer, { children: ({
48
+ handlerFieldChange: o,
49
+ handlerFieldValidate: t,
50
+ data: n,
51
+ fieldErrors: i,
52
+ externalFieldErrors: r,
53
+ handlerStoreValidators: R,
54
+ handlerRemoveValidators: s,
55
+ skeletonize: l
56
+ }) => /* @__PURE__ */ v.jsx(w, { ...a, skeletonize: l, handlerFieldChange: o, handlerFieldValidate: t, handlerStoreValidators: R, handlerRemoveValidators: s, data: n, fieldErrors: i, externalFieldErrors: r, forwardedRef: e }) });
57
+ }
58
+ return E.forwardRef(S);
59
+ };
60
+ export {
61
+ k as default
62
+ };
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { IFormSecurityContext, IWithFormSecurity } from './types';
3
+ declare const FormSecurityContext: React.Context<IFormSecurityContext>;
4
+ declare const withFormSecurity: <ComponentProps extends IWithFormSecurity>(WrappedComponent: React.ComponentType<ComponentProps>) => (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default withFormSecurity;
6
+ export { FormSecurityContext };
@@ -0,0 +1,30 @@
1
+ import { j as a } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import d, { useRef as i, useState as m } from "react";
3
+ const h = d.createContext({}), k = (l) => (r) => {
4
+ const {
5
+ onOpenChange: e,
6
+ handlerClose: n
7
+ } = r, s = i(!1), o = i(!1), [f, c] = m(!1), u = () => {
8
+ s.current && o.current ? c(!0) : e ? e(!1) : n && n();
9
+ }, C = {
10
+ onChangedData: (t) => {
11
+ s.current = t;
12
+ },
13
+ showQuestion: f,
14
+ onConfirmClick: () => {
15
+ e && e(!1), n && n();
16
+ },
17
+ onUnconfirmClick: () => {
18
+ c(!1);
19
+ },
20
+ setSecurityBeforeUnload: (t) => {
21
+ o.current = t;
22
+ },
23
+ securityBeforeUnload: o.current
24
+ };
25
+ return /* @__PURE__ */ a.jsx(h.Provider, { value: C, children: /* @__PURE__ */ a.jsx(l, { ...r, handlerClose: u }) });
26
+ };
27
+ export {
28
+ h as FormSecurityContext,
29
+ k as default
30
+ };
@@ -0,0 +1,3 @@
1
+ import { IGridCol } from './types';
2
+ declare const GridCol: (props: IGridCol) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default GridCol;
@@ -0,0 +1,27 @@
1
+ import { j as d } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as p } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import '../assets/gridlayout.css';/* empty css */
4
+ const $ = (o) => {
5
+ const s = o ? o.split(" ") : [];
6
+ let t = "grid-container ";
7
+ return s[0] && (t += `col-xs-${s[0]}`), s[1] && (t += ` col-sm-${s[1]}`), s[2] && (t += ` col-md-${s[2]}`), s[3] && (t += ` col-lg-${s[3]}`), t;
8
+ }, C = (o) => {
9
+ const s = p.c(6), {
10
+ cols: t,
11
+ customClass: a,
12
+ children: i,
13
+ style: c,
14
+ visible: m
15
+ } = o, f = m === void 0 ? !0 : m, r = t || "";
16
+ let l;
17
+ s[0] !== r ? (l = $(r), s[0] = r, s[1] = l) : l = s[1];
18
+ const u = l;
19
+ if (!f)
20
+ return null;
21
+ const n = `${a} ${u}`;
22
+ let e;
23
+ return s[2] !== i || s[3] !== c || s[4] !== n ? (e = /* @__PURE__ */ d.jsx("div", { className: n, style: c, children: i }), s[2] = i, s[3] = c, s[4] = n, s[5] = e) : e = s[5], e;
24
+ };
25
+ export {
26
+ C as default
27
+ };
@@ -0,0 +1,3 @@
1
+ import { IGridRow } from './types';
2
+ declare const GridRow: (props: IGridRow) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default GridRow;
@@ -0,0 +1,26 @@
1
+ import { j as a } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import '../assets/gridlayout.css';/* empty css */
4
+ const v = (i) => `row ${i.customClass}
5
+ ${i.withTrim && " -withtrim"}
6
+ ${i.verticalAlign && ` align-items-${i.verticalAlign}`}
7
+ ${i.horizontalAlign && ` justify-content-${i.horizontalAlign}`}`, d = (i) => {
8
+ const t = m.c(7), {
9
+ style: n,
10
+ children: s,
11
+ verticalAlign: c,
12
+ visible: o
13
+ } = i, r = c === void 0 ? "start" : c;
14
+ if (!(o === void 0 ? !0 : o))
15
+ return null;
16
+ let l;
17
+ t[0] !== i || t[1] !== r ? (l = v({
18
+ ...i,
19
+ verticalAlign: r
20
+ }), t[0] = i, t[1] = r, t[2] = l) : l = t[2];
21
+ let e;
22
+ return t[3] !== s || t[4] !== n || t[5] !== l ? (e = /* @__PURE__ */ a.jsx("div", { style: n, className: l, children: s }), t[3] = s, t[4] = n, t[5] = l, t[6] = e) : e = t[6], e;
23
+ };
24
+ export {
25
+ d as default
26
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { default as GridRow } from './GridRow';
2
+ import { default as GridCol } from './GridCol';
3
+ export default GridCol;
4
+ export { GridRow };
@@ -0,0 +1,6 @@
1
+ import { default as d } from "./GridRow.js";
2
+ import r from "./GridCol.js";
3
+ export {
4
+ d as GridRow,
5
+ r as default
6
+ };
@@ -0,0 +1,17 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ export interface IGridCol {
3
+ children?: ReactNode | ReactNode[];
4
+ cols?: string;
5
+ customClass?: string;
6
+ style?: CSSProperties;
7
+ visible?: boolean;
8
+ }
9
+ export interface IGridRow {
10
+ children?: ReactNode | ReactNode[];
11
+ verticalAlign?: 'start' | 'center' | 'end' | 'baseline' | 'stretch';
12
+ horizontalAlign?: string;
13
+ style?: CSSProperties;
14
+ withTrim?: boolean;
15
+ visible?: boolean;
16
+ customClass?: string;
17
+ }
@@ -0,0 +1 @@
1
+ export declare const showHintList: (arrayHint: string[]) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { j as s } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ const n = (t) => /* @__PURE__ */ s.jsx("div", { className: "rules-list", style: {
3
+ padding: "15px 0px"
4
+ }, children: /* @__PURE__ */ s.jsx("ul", { style: {
5
+ listStyleType: "none"
6
+ }, children: t.map((i, e) => /* @__PURE__ */ s.jsxs("li", { children: [
7
+ "-",
8
+ i
9
+ ] }, e.toString())) }) });
10
+ export {
11
+ n as showHintList
12
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { HintProps } from './types';
2
+ declare const Hint: ({ visible, description, customClass, skeletonize, style, disabled, color, }: HintProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default Hint;
@@ -0,0 +1,30 @@
1
+ import { j as c } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as v } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { showHintList as x } from "./helpers.js";
4
+ import '../assets/index8.css';const k = (m) => {
5
+ const s = v.c(8), {
6
+ visible: n,
7
+ description: t,
8
+ customClass: p,
9
+ skeletonize: a,
10
+ style: l,
11
+ disabled: d,
12
+ color: f
13
+ } = m, u = n === void 0 ? !0 : n, b = a === void 0 ? !1 : a, e = d === void 0 ? !1 : d;
14
+ if (!u || !t)
15
+ return null;
16
+ const r = `
17
+ hint-component
18
+ ${p}
19
+ ${b ? "-skeletonized" : ""}
20
+ ${e ? "-disabled" : ""}
21
+ -${f}
22
+ `;
23
+ let i;
24
+ s[0] !== t || s[1] !== e ? (i = Array.isArray(t) ? x(t) : /* @__PURE__ */ c.jsx("span", { "aria-disabled": e, children: t }), s[0] = t, s[1] = e, s[2] = i) : i = s[2];
25
+ let o;
26
+ return s[3] !== e || s[4] !== l || s[5] !== r || s[6] !== i ? (o = /* @__PURE__ */ c.jsx("div", { "aria-disabled": e, style: l, className: r, children: i }), s[3] = e, s[4] = l, s[5] = r, s[6] = i, s[7] = o) : o = s[7], o;
27
+ };
28
+ export {
29
+ k as default
30
+ };
@@ -0,0 +1,11 @@
1
+ import { CSSProperties } from 'react';
2
+ import { ColorStyles } from '../@types/ColorStyles';
3
+ export interface HintProps {
4
+ description?: string | string[];
5
+ visible?: boolean;
6
+ customClass?: string;
7
+ skeletonize?: boolean;
8
+ disabled?: boolean;
9
+ style?: CSSProperties;
10
+ color?: ColorStyles;
11
+ }