@orangesix/react 1.3.8 → 2.0.3

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 (720) hide show
  1. package/accordion/@types/index.d.ts +57 -0
  2. package/accordion/accordion/index.cjs.js +2 -0
  3. package/accordion/accordion/index.cjs.js.map +1 -0
  4. package/accordion/accordion/index.esm.js +38 -0
  5. package/accordion/accordion/index.esm.js.map +1 -0
  6. package/accordion/accordion.d.ts +11 -0
  7. package/accordion/index.cjs.js +2 -0
  8. package/accordion/index.d.ts +2 -0
  9. package/accordion/index.esm.js +5 -0
  10. package/{style → accordion}/index.esm.js.map +1 -1
  11. package/accordion/package.json +5 -0
  12. package/api/@types/css.d.ts +92 -0
  13. package/api/@types/field.d.ts +157 -0
  14. package/api/@types/index.d.ts +29 -0
  15. package/api/index.cjs.js +1 -1
  16. package/api/index.cjs.js.map +1 -1
  17. package/api/index.d.ts +2 -305
  18. package/api/index.esm.js +6 -1
  19. package/api/index.esm.js.map +1 -1
  20. package/api/input/index.cjs.js +2 -0
  21. package/api/input/index.cjs.js.map +1 -0
  22. package/api/input/index.esm.js +40 -0
  23. package/api/input/index.esm.js.map +1 -0
  24. package/api/input.d.ts +38 -0
  25. package/autocomplete/@types/index.d.ts +70 -0
  26. package/autocomplete/autocomplete/index.cjs.js +2 -0
  27. package/autocomplete/autocomplete/index.cjs.js.map +1 -0
  28. package/autocomplete/autocomplete/index.esm.js +41 -0
  29. package/autocomplete/autocomplete/index.esm.js.map +1 -0
  30. package/autocomplete/autocomplete.d.ts +11 -0
  31. package/autocomplete/core/core/index.cjs.js +2 -0
  32. package/autocomplete/core/core/index.cjs.js.map +1 -0
  33. package/autocomplete/core/core/index.esm.js +21 -0
  34. package/autocomplete/core/core/index.esm.js.map +1 -0
  35. package/autocomplete/core/core.d.ts +8 -0
  36. package/autocomplete/core/event/index.cjs.js +2 -0
  37. package/autocomplete/core/event/index.cjs.js.map +1 -0
  38. package/autocomplete/core/event/index.esm.js +17 -0
  39. package/autocomplete/core/event/index.esm.js.map +1 -0
  40. package/autocomplete/core/event.d.ts +8 -0
  41. package/autocomplete/index.cjs.js +1 -1
  42. package/autocomplete/index.cjs.js.map +1 -1
  43. package/autocomplete/index.d.ts +2 -176
  44. package/autocomplete/index.esm.js +4 -1
  45. package/autocomplete/index.esm.js.map +1 -1
  46. package/box/@types/index.d.ts +29 -0
  47. package/box/_box.scss +56 -56
  48. package/box/box/index.cjs.js +2 -0
  49. package/box/box/index.cjs.js.map +1 -0
  50. package/box/box/index.esm.js +27 -0
  51. package/box/box/index.esm.js.map +1 -0
  52. package/box/box.d.ts +12 -0
  53. package/box/index.cjs.js +1 -1
  54. package/box/index.cjs.js.map +1 -1
  55. package/box/index.d.ts +2 -150
  56. package/box/index.esm.js +4 -1
  57. package/box/index.esm.js.map +1 -1
  58. package/button/@types/index.d.ts +73 -0
  59. package/button/button/index.cjs.js +2 -0
  60. package/button/button/index.cjs.js.map +1 -0
  61. package/button/button/index.esm.js +29 -0
  62. package/button/button/index.esm.js.map +1 -0
  63. package/button/button.d.ts +12 -0
  64. package/button/index.cjs.js +1 -1
  65. package/button/index.cjs.js.map +1 -1
  66. package/button/index.d.ts +2 -109
  67. package/button/index.esm.js +4 -1
  68. package/button/index.esm.js.map +1 -1
  69. package/button/package.json +5 -5
  70. package/editor/@types/index.d.ts +46 -0
  71. package/editor/_editor.scss +106 -106
  72. package/editor/const/index.cjs.js +2 -0
  73. package/editor/const/index.cjs.js.map +1 -0
  74. package/editor/const/index.esm.js +32 -0
  75. package/editor/const/index.esm.js.map +1 -0
  76. package/editor/const.d.ts +3 -0
  77. package/editor/core/bold/index.cjs.js +2 -0
  78. package/editor/core/bold/index.cjs.js.map +1 -0
  79. package/editor/core/bold/index.esm.js +16 -0
  80. package/editor/core/bold/index.esm.js.map +1 -0
  81. package/editor/core/bold.d.ts +9 -0
  82. package/editor/core/bulletlist/index.cjs.js +2 -0
  83. package/editor/core/bulletlist/index.cjs.js.map +1 -0
  84. package/editor/core/bulletlist/index.esm.js +16 -0
  85. package/editor/core/bulletlist/index.esm.js.map +1 -0
  86. package/editor/core/bulletlist.d.ts +9 -0
  87. package/editor/core/code/index.cjs.js +2 -0
  88. package/editor/core/code/index.cjs.js.map +1 -0
  89. package/editor/core/code/index.esm.js +17 -0
  90. package/editor/core/code/index.esm.js.map +1 -0
  91. package/editor/core/code.d.ts +9 -0
  92. package/editor/core/color/index.cjs.js +2 -0
  93. package/editor/core/color/index.cjs.js.map +1 -0
  94. package/editor/core/color/index.esm.js +20 -0
  95. package/editor/core/color/index.esm.js.map +1 -0
  96. package/editor/core/color.d.ts +9 -0
  97. package/editor/core/highlight/index.cjs.js +2 -0
  98. package/editor/core/highlight/index.cjs.js.map +1 -0
  99. package/editor/core/highlight/index.esm.js +17 -0
  100. package/editor/core/highlight/index.esm.js.map +1 -0
  101. package/editor/core/highlight.d.ts +9 -0
  102. package/editor/core/image/index.cjs.js +2 -0
  103. package/editor/core/image/index.cjs.js.map +1 -0
  104. package/editor/core/image/index.esm.js +50 -0
  105. package/editor/core/image/index.esm.js.map +1 -0
  106. package/editor/core/image.d.ts +9 -0
  107. package/editor/core/index/index.cjs.js +2 -0
  108. package/editor/core/index/index.cjs.js.map +1 -0
  109. package/editor/core/index/index.esm.js +107 -0
  110. package/editor/core/index/index.esm.js.map +1 -0
  111. package/editor/core/index.d.ts +9 -0
  112. package/editor/core/italic/index.cjs.js +2 -0
  113. package/editor/core/italic/index.cjs.js.map +1 -0
  114. package/editor/core/italic/index.esm.js +16 -0
  115. package/editor/core/italic/index.esm.js.map +1 -0
  116. package/editor/core/italic.d.ts +9 -0
  117. package/editor/core/link/index.cjs.js +2 -0
  118. package/editor/core/link/index.cjs.js.map +1 -0
  119. package/editor/core/link/index.esm.js +56 -0
  120. package/editor/core/link/index.esm.js.map +1 -0
  121. package/editor/core/link.d.ts +9 -0
  122. package/editor/core/orderlist/index.cjs.js +2 -0
  123. package/editor/core/orderlist/index.cjs.js.map +1 -0
  124. package/editor/core/orderlist/index.esm.js +16 -0
  125. package/editor/core/orderlist/index.esm.js.map +1 -0
  126. package/editor/core/orderlist.d.ts +9 -0
  127. package/editor/core/strike/index.cjs.js +2 -0
  128. package/editor/core/strike/index.cjs.js.map +1 -0
  129. package/editor/core/strike/index.esm.js +16 -0
  130. package/editor/core/strike/index.esm.js.map +1 -0
  131. package/editor/core/strike.d.ts +9 -0
  132. package/editor/core/text/index.cjs.js +2 -0
  133. package/editor/core/text/index.cjs.js.map +1 -0
  134. package/editor/core/text/index.esm.js +43 -0
  135. package/editor/core/text/index.esm.js.map +1 -0
  136. package/editor/core/text.d.ts +9 -0
  137. package/editor/core/underline/index.cjs.js +2 -0
  138. package/editor/core/underline/index.cjs.js.map +1 -0
  139. package/editor/core/underline/index.esm.js +16 -0
  140. package/editor/core/underline/index.esm.js.map +1 -0
  141. package/editor/core/underline.d.ts +9 -0
  142. package/editor/editor/index.cjs.js +2 -0
  143. package/editor/editor/index.cjs.js.map +1 -0
  144. package/editor/editor/index.esm.js +80 -0
  145. package/editor/editor/index.esm.js.map +1 -0
  146. package/editor/editor.d.ts +12 -0
  147. package/editor/index.cjs.js +1 -1
  148. package/editor/index.cjs.js.map +1 -1
  149. package/editor/index.d.ts +2 -127
  150. package/editor/index.esm.js +4 -1
  151. package/editor/index.esm.js.map +1 -1
  152. package/input/@types/index.d.ts +111 -0
  153. package/input/core/controlled/index.cjs.js +2 -0
  154. package/input/core/controlled/index.cjs.js.map +1 -0
  155. package/input/core/controlled/index.esm.js +87 -0
  156. package/input/core/controlled/index.esm.js.map +1 -0
  157. package/input/core/controlled.d.ts +17 -0
  158. package/input/core/hookForm/index.cjs.js +2 -0
  159. package/input/core/hookForm/index.cjs.js.map +1 -0
  160. package/input/core/hookForm/index.esm.js +97 -0
  161. package/input/core/hookForm/index.esm.js.map +1 -0
  162. package/input/core/hookForm.d.ts +17 -0
  163. package/input/index.cjs.js +1 -1
  164. package/input/index.cjs.js.map +1 -1
  165. package/input/index.d.ts +2 -253
  166. package/input/index.esm.js +4 -1
  167. package/input/index.esm.js.map +1 -1
  168. package/input/input/index.cjs.js +2 -0
  169. package/input/input/index.cjs.js.map +1 -0
  170. package/input/input/index.esm.js +63 -0
  171. package/input/input/index.esm.js.map +1 -0
  172. package/input/input.d.ts +14 -0
  173. package/inputfilter/@types/autocomplete.d.ts +21 -0
  174. package/inputfilter/@types/index.d.ts +43 -0
  175. package/inputfilter/_inputfilter.scss +58 -58
  176. package/inputfilter/const/index.cjs.js +2 -0
  177. package/inputfilter/const/index.cjs.js.map +1 -0
  178. package/inputfilter/const/index.esm.js +16 -0
  179. package/inputfilter/const/index.esm.js.map +1 -0
  180. package/inputfilter/const.d.ts +6 -0
  181. package/inputfilter/core/autocomplete/index.cjs.js +2 -0
  182. package/inputfilter/core/autocomplete/index.cjs.js.map +1 -0
  183. package/inputfilter/core/autocomplete/index.esm.js +36 -0
  184. package/inputfilter/core/autocomplete/index.esm.js.map +1 -0
  185. package/inputfilter/core/autocomplete.d.ts +7 -0
  186. package/inputfilter/core/date/index.cjs.js +2 -0
  187. package/inputfilter/core/date/index.cjs.js.map +1 -0
  188. package/inputfilter/core/date/index.esm.js +46 -0
  189. package/inputfilter/core/date/index.esm.js.map +1 -0
  190. package/inputfilter/core/date.d.ts +7 -0
  191. package/inputfilter/core/number/index.cjs.js +2 -0
  192. package/inputfilter/core/number/index.cjs.js.map +1 -0
  193. package/inputfilter/core/number/index.esm.js +26 -0
  194. package/inputfilter/core/number/index.esm.js.map +1 -0
  195. package/inputfilter/core/number.d.ts +7 -0
  196. package/inputfilter/core/text/index.cjs.js +2 -0
  197. package/inputfilter/core/text/index.cjs.js.map +1 -0
  198. package/inputfilter/core/text/index.esm.js +20 -0
  199. package/inputfilter/core/text/index.esm.js.map +1 -0
  200. package/inputfilter/core/text.d.ts +7 -0
  201. package/inputfilter/function/handle/index.cjs.js +2 -0
  202. package/inputfilter/function/handle/index.cjs.js.map +1 -0
  203. package/inputfilter/function/handle/index.esm.js +59 -0
  204. package/inputfilter/function/handle/index.esm.js.map +1 -0
  205. package/inputfilter/function/handle.d.ts +69 -0
  206. package/inputfilter/function/validate/index.cjs.js +2 -0
  207. package/inputfilter/function/validate/index.cjs.js.map +1 -0
  208. package/inputfilter/function/validate/index.esm.js +16 -0
  209. package/inputfilter/function/validate/index.esm.js.map +1 -0
  210. package/inputfilter/function/validate.d.ts +7 -0
  211. package/inputfilter/index.cjs.js +1 -1
  212. package/inputfilter/index.cjs.js.map +1 -1
  213. package/inputfilter/index.d.ts +3 -182
  214. package/inputfilter/index.esm.js +9 -1
  215. package/inputfilter/index.esm.js.map +1 -1
  216. package/inputfilter/inputfilter/index.cjs.js +2 -0
  217. package/inputfilter/inputfilter/index.cjs.js.map +1 -0
  218. package/inputfilter/inputfilter/index.esm.js +103 -0
  219. package/inputfilter/inputfilter/index.esm.js.map +1 -0
  220. package/inputfilter/inputfilter.d.ts +12 -0
  221. package/inputfilter/legend/index.cjs.js +6 -0
  222. package/inputfilter/legend/index.cjs.js.map +1 -0
  223. package/inputfilter/legend/index.esm.js +48 -0
  224. package/inputfilter/legend/index.esm.js.map +1 -0
  225. package/inputfilter/legend.d.ts +22 -0
  226. package/loading/@types/index.d.ts +44 -0
  227. package/loading/_loading.scss +10 -10
  228. package/loading/index.cjs.js +1 -1
  229. package/loading/index.cjs.js.map +1 -1
  230. package/loading/index.d.ts +2 -172
  231. package/loading/index.esm.js +4 -1
  232. package/loading/index.esm.js.map +1 -1
  233. package/loading/loading/index.cjs.js +2 -0
  234. package/loading/loading/index.cjs.js.map +1 -0
  235. package/loading/loading/index.esm.js +30 -0
  236. package/loading/loading/index.esm.js.map +1 -0
  237. package/loading/loading.d.ts +12 -0
  238. package/loading/package.json +5 -5
  239. package/message/@types/index.d.ts +97 -0
  240. package/message/core/modal/index.cjs.js +2 -0
  241. package/message/core/modal/index.cjs.js.map +1 -0
  242. package/message/core/modal/index.esm.js +67 -0
  243. package/message/core/modal/index.esm.js.map +1 -0
  244. package/message/core/modal.d.ts +7 -0
  245. package/message/index.cjs.js +1 -1
  246. package/message/index.cjs.js.map +1 -1
  247. package/message/index.d.ts +2 -108
  248. package/message/index.esm.js +4 -1
  249. package/message/index.esm.js.map +1 -1
  250. package/message/message/index.cjs.js +2 -0
  251. package/message/message/index.cjs.js.map +1 -0
  252. package/message/message/index.esm.js +10 -0
  253. package/message/message/index.esm.js.map +1 -0
  254. package/message/message.d.ts +13 -0
  255. package/message/package.json +5 -5
  256. package/modal/@types/index.d.ts +63 -0
  257. package/modal/core/core/index.cjs.js +2 -0
  258. package/modal/core/core/index.cjs.js.map +1 -0
  259. package/modal/core/core/index.esm.js +28 -0
  260. package/modal/core/core/index.esm.js.map +1 -0
  261. package/modal/core/core.d.ts +7 -0
  262. package/modal/index.cjs.js +1 -1
  263. package/modal/index.cjs.js.map +1 -1
  264. package/modal/index.d.ts +2 -73
  265. package/modal/index.esm.js +4 -1
  266. package/modal/index.esm.js.map +1 -1
  267. package/modal/modal/index.cjs.js +2 -0
  268. package/modal/modal/index.cjs.js.map +1 -0
  269. package/modal/modal/index.esm.js +28 -0
  270. package/modal/modal/index.esm.js.map +1 -0
  271. package/modal/modal.d.ts +11 -0
  272. package/package.json +45 -43
  273. package/pdf/@types/index.d.ts +12 -0
  274. package/pdf/index.cjs.js +2 -0
  275. package/pdf/index.cjs.js.map +1 -0
  276. package/pdf/index.d.ts +2 -0
  277. package/pdf/index.esm.js +5 -0
  278. package/pdf/index.esm.js.map +1 -0
  279. package/pdf/package.json +5 -0
  280. package/pdf/pdf/index.cjs.js +2 -0
  281. package/pdf/pdf/index.cjs.js.map +1 -0
  282. package/pdf/pdf/index.esm.js +99 -0
  283. package/pdf/pdf/index.esm.js.map +1 -0
  284. package/pdf/pdf.d.ts +8 -0
  285. package/pdf/style/pdf.css +54 -0
  286. package/picklist/@types/index.d.ts +36 -0
  287. package/picklist/core/core/index.cjs.js +2 -0
  288. package/picklist/core/core/index.cjs.js.map +1 -0
  289. package/picklist/core/core/index.esm.js +33 -0
  290. package/picklist/core/core/index.esm.js.map +1 -0
  291. package/picklist/core/core.d.ts +7 -0
  292. package/picklist/index.cjs.js +1 -1
  293. package/picklist/index.cjs.js.map +1 -1
  294. package/picklist/index.d.ts +2 -74
  295. package/picklist/index.esm.js +4 -1
  296. package/picklist/index.esm.js.map +1 -1
  297. package/picklist/picklist/index.cjs.js +2 -0
  298. package/picklist/picklist/index.cjs.js.map +1 -0
  299. package/picklist/picklist/index.esm.js +44 -0
  300. package/picklist/picklist/index.esm.js.map +1 -0
  301. package/picklist/picklist.d.ts +11 -0
  302. package/picklist/types.d.ts +35 -0
  303. package/radio/@types/index.d.ts +40 -0
  304. package/radio/core/controlled/index.cjs.js +2 -0
  305. package/radio/core/controlled/index.cjs.js.map +1 -0
  306. package/radio/core/controlled/index.esm.js +41 -0
  307. package/radio/core/controlled/index.esm.js.map +1 -0
  308. package/radio/core/controlled.d.ts +11 -0
  309. package/radio/core/hookForm/index.cjs.js +2 -0
  310. package/radio/core/hookForm/index.cjs.js.map +1 -0
  311. package/radio/core/hookForm/index.esm.js +58 -0
  312. package/radio/core/hookForm/index.esm.js.map +1 -0
  313. package/radio/core/hookForm.d.ts +11 -0
  314. package/radio/index.cjs.js +1 -1
  315. package/radio/index.cjs.js.map +1 -1
  316. package/radio/index.d.ts +2 -231
  317. package/radio/index.esm.js +4 -1
  318. package/radio/index.esm.js.map +1 -1
  319. package/radio/radio/index.cjs.js +2 -0
  320. package/radio/radio/index.cjs.js.map +1 -0
  321. package/radio/radio/index.esm.js +39 -0
  322. package/radio/radio/index.esm.js.map +1 -0
  323. package/radio/radio.d.ts +14 -0
  324. package/select/@types/index.d.ts +46 -0
  325. package/select/core/controlled/index.cjs.js +2 -0
  326. package/select/core/controlled/index.cjs.js.map +1 -0
  327. package/select/core/controlled/index.esm.js +42 -0
  328. package/select/core/controlled/index.esm.js.map +1 -0
  329. package/select/core/controlled.d.ts +9 -0
  330. package/select/core/hookForm/index.cjs.js +2 -0
  331. package/select/core/hookForm/index.cjs.js.map +1 -0
  332. package/select/core/hookForm/index.esm.js +53 -0
  333. package/select/core/hookForm/index.esm.js.map +1 -0
  334. package/select/core/hookForm.d.ts +9 -0
  335. package/select/index.cjs.js +1 -1
  336. package/select/index.cjs.js.map +1 -1
  337. package/select/index.d.ts +2 -239
  338. package/select/index.esm.js +4 -1
  339. package/select/index.esm.js.map +1 -1
  340. package/select/select/index.cjs.js +2 -0
  341. package/select/select/index.cjs.js.map +1 -0
  342. package/select/select/index.esm.js +25 -0
  343. package/select/select/index.esm.js.map +1 -0
  344. package/select/select.d.ts +14 -0
  345. package/style/scss/_accordion.scss +118 -0
  346. package/style/scss/_autocomplete.scss +106 -0
  347. package/style/scss/_avatar.scss +34 -0
  348. package/style/scss/_badge.scss +77 -0
  349. package/style/scss/_breadcrumb.scss +42 -0
  350. package/style/scss/_button.scss +644 -0
  351. package/style/scss/_calendar.scss +251 -0
  352. package/style/scss/_card.scss +30 -0
  353. package/style/scss/_carousel.scss +39 -0
  354. package/style/scss/_cascadeselect.scss +107 -0
  355. package/style/scss/_checkbox.scss +181 -0
  356. package/style/scss/_chip.scss +39 -0
  357. package/style/scss/_chips.scss +102 -0
  358. package/style/scss/_colorpicker.scss +18 -0
  359. package/style/scss/_colors.scss +18 -0
  360. package/style/scss/_confirmpopup.scss +72 -0
  361. package/style/scss/_contextmenu.scss +39 -0
  362. package/style/scss/_datascroller.scss +47 -0
  363. package/style/scss/_datatable.scss +415 -0
  364. package/style/scss/_dataview.scss +47 -0
  365. package/style/scss/_dialog.scss +78 -0
  366. package/style/scss/_divider.scss +31 -0
  367. package/style/scss/_dock.scss +109 -0
  368. package/style/scss/_dropdown.scss +255 -0
  369. package/style/scss/_editor.scss +122 -0
  370. package/style/scss/_extensions.scss +27 -0
  371. package/style/scss/_fieldset.scss +47 -0
  372. package/style/scss/_fileupload.scss +41 -0
  373. package/style/scss/_filter.scss +138 -0
  374. package/style/scss/_galleria.scss +153 -0
  375. package/style/scss/_iconfield.scss +11 -0
  376. package/style/scss/_image.scss +54 -0
  377. package/style/scss/_inlinemessage.scss +69 -0
  378. package/style/scss/_inplace.scss +17 -0
  379. package/style/scss/_inputgroup.scss +74 -0
  380. package/style/scss/_inputicon.scss +15 -0
  381. package/style/scss/_inputnumber.scss +5 -0
  382. package/style/scss/_inputotp.scss +10 -0
  383. package/style/scss/_inputswitch.scss +110 -0
  384. package/style/scss/_inputtext.scss +101 -0
  385. package/style/scss/_listbox.scss +139 -0
  386. package/style/scss/_megamenu.scss +141 -0
  387. package/style/scss/_mention.scss +31 -0
  388. package/style/scss/_menu.scss +33 -0
  389. package/style/scss/_menubar.scss +216 -0
  390. package/style/scss/_message.scss +107 -0
  391. package/style/scss/_metergroup.scss +81 -0
  392. package/style/scss/_mixins.scss +243 -0
  393. package/style/scss/_multiselect.scss +278 -0
  394. package/style/scss/_orderlist.scss +86 -0
  395. package/style/scss/_organizationchart.scss +50 -0
  396. package/style/scss/_overlaypanel.scss +64 -0
  397. package/style/scss/_paginator.scss +91 -0
  398. package/style/scss/_panel.scss +47 -0
  399. package/style/scss/_panelmenu.scss +153 -0
  400. package/style/scss/_password.scss +33 -0
  401. package/style/scss/_picklist.scss +74 -0
  402. package/style/scss/_progressbar.scss +17 -0
  403. package/style/scss/_radiobutton.scss +170 -0
  404. package/style/scss/_rating.scss +81 -0
  405. package/style/scss/_reset.scss +76 -0
  406. package/style/scss/_root.scss +110 -0
  407. package/style/scss/_scrollpanel.scss +10 -0
  408. package/style/scss/_scrolltop.scss +25 -0
  409. package/style/scss/_selectbutton.scss +50 -0
  410. package/style/scss/_sidebar.scss +23 -0
  411. package/style/scss/_skeleton.scss +8 -0
  412. package/style/scss/_slidemenu.scss +60 -0
  413. package/style/scss/_slider.scss +49 -0
  414. package/style/scss/_speeddial.scss +91 -0
  415. package/style/scss/_splitbutton.scss +359 -0
  416. package/style/scss/_splitter.scss +23 -0
  417. package/style/scss/_stepper.scss +136 -0
  418. package/style/scss/_steps.scss +57 -0
  419. package/style/scss/_tabmenu.scss +50 -0
  420. package/style/scss/_tabview.scss +148 -0
  421. package/style/scss/_tag.scss +40 -0
  422. package/style/scss/_terminal.scss +12 -0
  423. package/style/scss/_tieredmenu.scss +43 -0
  424. package/style/scss/_timeline.scss +38 -0
  425. package/style/scss/_toast.scss +100 -0
  426. package/style/scss/_togglebutton.scss +99 -0
  427. package/style/scss/_toolbar.scss +11 -0
  428. package/style/scss/_tooltip.scss +33 -0
  429. package/style/scss/_tree.scss +184 -0
  430. package/style/scss/_treeselect.scss +151 -0
  431. package/style/scss/_treetable.scss +431 -0
  432. package/style/scss/_tristatecheckbox.scss +46 -0
  433. package/style/scss/_variables.scss +929 -929
  434. package/style/scss/bootstrap.scss +31 -31
  435. package/style/scss/button/_button.scss +644 -0
  436. package/style/scss/button/_speeddial.scss +91 -0
  437. package/style/scss/button/_splitbutton.scss +359 -0
  438. package/style/scss/components/panel/_tabview.scss +1 -1
  439. package/style/scss/core/_reset.scss +75 -75
  440. package/style/scss/data/_carousel.scss +39 -0
  441. package/style/scss/data/_datascroller.scss +47 -0
  442. package/style/scss/data/_datatable.scss +415 -0
  443. package/style/scss/data/_dataview.scss +47 -0
  444. package/style/scss/data/_filter.scss +138 -0
  445. package/style/scss/data/_orderlist.scss +86 -0
  446. package/style/scss/data/_organizationchart.scss +50 -0
  447. package/style/scss/data/_paginator.scss +91 -0
  448. package/style/scss/data/_picklist.scss +74 -0
  449. package/style/scss/data/_timeline.scss +38 -0
  450. package/style/scss/data/_tree.scss +184 -0
  451. package/style/scss/data/_treetable.scss +431 -0
  452. package/style/scss/file/_fileupload.scss +41 -0
  453. package/style/scss/input/_autocomplete.scss +106 -0
  454. package/style/scss/input/_calendar.scss +251 -0
  455. package/style/scss/input/_cascadeselect.scss +107 -0
  456. package/style/scss/input/_checkbox.scss +181 -0
  457. package/style/scss/input/_chips.scss +102 -0
  458. package/style/scss/input/_colorpicker.scss +18 -0
  459. package/style/scss/input/_dropdown.scss +255 -0
  460. package/style/scss/input/_editor.scss +122 -0
  461. package/style/scss/input/_iconfield.scss +11 -0
  462. package/style/scss/input/_inputgroup.scss +74 -0
  463. package/style/scss/input/_inputicon.scss +15 -0
  464. package/style/scss/input/_inputnumber.scss +5 -0
  465. package/style/scss/input/_inputotp.scss +10 -0
  466. package/style/scss/input/_inputswitch.scss +110 -0
  467. package/style/scss/input/_inputtext.scss +101 -0
  468. package/style/scss/input/_listbox.scss +139 -0
  469. package/style/scss/input/_mention.scss +31 -0
  470. package/style/scss/input/_multiselect.scss +278 -0
  471. package/style/scss/input/_password.scss +33 -0
  472. package/style/scss/input/_radiobutton.scss +170 -0
  473. package/style/scss/input/_rating.scss +81 -0
  474. package/style/scss/input/_selectbutton.scss +50 -0
  475. package/style/scss/input/_slider.scss +49 -0
  476. package/style/scss/input/_togglebutton.scss +99 -0
  477. package/style/scss/input/_treeselect.scss +151 -0
  478. package/style/scss/input/_tristatecheckbox.scss +46 -0
  479. package/style/scss/menu/_breadcrumb.scss +42 -0
  480. package/style/scss/menu/_contextmenu.scss +39 -0
  481. package/style/scss/menu/_dock.scss +109 -0
  482. package/style/scss/menu/_megamenu.scss +141 -0
  483. package/style/scss/menu/_menu.scss +33 -0
  484. package/style/scss/menu/_menubar.scss +216 -0
  485. package/style/scss/menu/_panelmenu.scss +153 -0
  486. package/style/scss/menu/_slidemenu.scss +60 -0
  487. package/style/scss/menu/_steps.scss +57 -0
  488. package/style/scss/menu/_tabmenu.scss +50 -0
  489. package/style/scss/menu/_tieredmenu.scss +43 -0
  490. package/style/scss/messages/_inlinemessage.scss +69 -0
  491. package/style/scss/messages/_message.scss +107 -0
  492. package/style/scss/messages/_toast.scss +100 -0
  493. package/style/scss/misc/_avatar.scss +34 -0
  494. package/style/scss/misc/_badge.scss +77 -0
  495. package/style/scss/misc/_blockui.scss +0 -0
  496. package/style/scss/misc/_chip.scss +39 -0
  497. package/style/scss/misc/_inplace.scss +17 -0
  498. package/style/scss/misc/_metergroup.scss +81 -0
  499. package/style/scss/misc/_progressbar.scss +17 -0
  500. package/style/scss/misc/_scrolltop.scss +25 -0
  501. package/style/scss/misc/_skeleton.scss +8 -0
  502. package/style/scss/misc/_tag.scss +40 -0
  503. package/style/scss/misc/_terminal.scss +12 -0
  504. package/style/scss/multimedia/_galleria.scss +153 -0
  505. package/style/scss/multimedia/_image.scss +54 -0
  506. package/style/scss/overlay/_confirmpopup.scss +72 -0
  507. package/style/scss/overlay/_dialog.scss +78 -0
  508. package/style/scss/overlay/_overlaypanel.scss +64 -0
  509. package/style/scss/overlay/_sidebar.scss +23 -0
  510. package/style/scss/overlay/_tooltip.scss +33 -0
  511. package/style/scss/panel/_accordion.scss +118 -0
  512. package/style/scss/panel/_card.scss +30 -0
  513. package/style/scss/panel/_divider.scss +31 -0
  514. package/style/scss/panel/_fieldset.scss +47 -0
  515. package/style/scss/panel/_panel.scss +47 -0
  516. package/style/scss/panel/_scrollpanel.scss +10 -0
  517. package/style/scss/panel/_splitter.scss +23 -0
  518. package/style/scss/panel/_stepper.scss +136 -0
  519. package/style/scss/panel/_tabview.scss +148 -0
  520. package/style/scss/panel/_toolbar.scss +11 -0
  521. package/switch/@types/index.d.ts +21 -0
  522. package/switch/core/controlled/index.cjs.js +2 -0
  523. package/switch/core/controlled/index.cjs.js.map +1 -0
  524. package/switch/core/controlled/index.esm.js +29 -0
  525. package/switch/core/controlled/index.esm.js.map +1 -0
  526. package/switch/core/controlled.d.ts +7 -0
  527. package/switch/core/hookForm/index.cjs.js +2 -0
  528. package/switch/core/hookForm/index.cjs.js.map +1 -0
  529. package/switch/core/hookForm/index.esm.js +41 -0
  530. package/switch/core/hookForm/index.esm.js.map +1 -0
  531. package/switch/core/hookForm.d.ts +7 -0
  532. package/switch/index.cjs.js +1 -1
  533. package/switch/index.cjs.js.map +1 -1
  534. package/switch/index.d.ts +2 -212
  535. package/switch/index.esm.js +4 -1
  536. package/switch/index.esm.js.map +1 -1
  537. package/switch/switch/index.cjs.js +2 -0
  538. package/switch/switch/index.cjs.js.map +1 -0
  539. package/switch/switch/index.esm.js +25 -0
  540. package/switch/switch/index.esm.js.map +1 -0
  541. package/switch/switch.d.ts +14 -0
  542. package/table/@types/click.d.ts +7 -0
  543. package/table/@types/column.d.ts +59 -0
  544. package/table/@types/edit.d.ts +6 -0
  545. package/table/@types/group.d.ts +26 -0
  546. package/table/@types/index.d.ts +73 -0
  547. package/table/@types/pagination.d.ts +27 -0
  548. package/table/@types/reorder.d.ts +12 -0
  549. package/table/@types/selection.d.ts +16 -0
  550. package/table/@types/sort.d.ts +8 -0
  551. package/table/@types/style.d.ts +21 -0
  552. package/table/@types/template.d.ts +22 -0
  553. package/table/core/click/index.cjs.js +2 -0
  554. package/table/core/click/index.cjs.js.map +1 -0
  555. package/table/core/click/index.esm.js +12 -0
  556. package/table/core/click/index.esm.js.map +1 -0
  557. package/table/core/click.d.ts +8 -0
  558. package/table/core/core/index.cjs.js +2 -0
  559. package/table/core/core/index.cjs.js.map +1 -0
  560. package/table/core/core/index.esm.js +23 -0
  561. package/table/core/core/index.esm.js.map +1 -0
  562. package/table/core/core.d.ts +8 -0
  563. package/table/core/group/index.cjs.js +2 -0
  564. package/table/core/group/index.cjs.js.map +1 -0
  565. package/table/core/group/index.esm.js +17 -0
  566. package/table/core/group/index.esm.js.map +1 -0
  567. package/table/core/group.d.ts +9 -0
  568. package/table/core/pagination/index.cjs.js +2 -0
  569. package/table/core/pagination/index.cjs.js.map +1 -0
  570. package/table/core/pagination/index.esm.js +36 -0
  571. package/table/core/pagination/index.esm.js.map +1 -0
  572. package/table/core/pagination.d.ts +8 -0
  573. package/table/core/reorder/index.cjs.js +2 -0
  574. package/table/core/reorder/index.cjs.js.map +1 -0
  575. package/table/core/reorder/index.esm.js +22 -0
  576. package/table/core/reorder/index.esm.js.map +1 -0
  577. package/table/core/reorder.d.ts +8 -0
  578. package/table/core/selection/index.cjs.js +2 -0
  579. package/table/core/selection/index.cjs.js.map +1 -0
  580. package/table/core/selection/index.esm.js +15 -0
  581. package/table/core/selection/index.esm.js.map +1 -0
  582. package/table/core/selection.d.ts +8 -0
  583. package/table/core/sort/index.cjs.js +2 -0
  584. package/table/core/sort/index.cjs.js.map +1 -0
  585. package/table/core/sort/index.esm.js +14 -0
  586. package/table/core/sort/index.esm.js.map +1 -0
  587. package/table/core/sort.d.ts +8 -0
  588. package/table/index.cjs.js +1 -1
  589. package/table/index.cjs.js.map +1 -1
  590. package/table/index.d.ts +2 -312
  591. package/table/index.esm.js +4 -1
  592. package/table/index.esm.js.map +1 -1
  593. package/table/styled/index.cjs.js +2 -0
  594. package/table/styled/index.cjs.js.map +1 -0
  595. package/table/styled/index.esm.js +16 -0
  596. package/table/styled/index.esm.js.map +1 -0
  597. package/table/styled.d.ts +6 -0
  598. package/table/table/index.cjs.js +2 -0
  599. package/table/table/index.cjs.js.map +1 -0
  600. package/table/table/index.esm.js +85 -0
  601. package/table/table/index.esm.js.map +1 -0
  602. package/table/table.d.ts +12 -0
  603. package/tablepivot/@types/index.d.ts +52 -0
  604. package/tablepivot/@types/webdatarocks.d.ts +166 -0
  605. package/tablepivot/_tablepivot.scss +84 -84
  606. package/tablepivot/function/handle/index.cjs.js +2 -0
  607. package/tablepivot/function/handle/index.cjs.js.map +1 -0
  608. package/tablepivot/function/handle/index.esm.js +12 -0
  609. package/tablepivot/function/handle/index.esm.js.map +1 -0
  610. package/tablepivot/function/handle.d.ts +6 -0
  611. package/tablepivot/index.cjs.js +1 -1
  612. package/tablepivot/index.cjs.js.map +1 -1
  613. package/tablepivot/index.d.ts +2 -257
  614. package/tablepivot/index.esm.js +4 -1
  615. package/tablepivot/index.esm.js.map +1 -1
  616. package/tablepivot/lang/pt-br/index.cjs.js +2 -0
  617. package/tablepivot/lang/pt-br/index.cjs.js.map +1 -0
  618. package/tablepivot/lang/pt-br/index.esm.js +392 -0
  619. package/tablepivot/lang/pt-br/index.esm.js.map +1 -0
  620. package/tablepivot/lang/pt-br.d.ts +388 -0
  621. package/tablepivot/tablepivot/index.cjs.js +2 -0
  622. package/tablepivot/tablepivot/index.cjs.js.map +1 -0
  623. package/tablepivot/tablepivot/index.esm.js +43 -0
  624. package/tablepivot/tablepivot/index.esm.js.map +1 -0
  625. package/tablepivot/tablepivot.d.ts +8 -0
  626. package/tabview/@types/index.d.ts +58 -0
  627. package/tabview/index.cjs.js +1 -1
  628. package/tabview/index.cjs.js.map +1 -1
  629. package/tabview/index.d.ts +2 -164
  630. package/tabview/index.esm.js +4 -1
  631. package/tabview/index.esm.js.map +1 -1
  632. package/tabview/tabview/index.cjs.js +2 -0
  633. package/tabview/tabview/index.cjs.js.map +1 -0
  634. package/tabview/tabview/index.esm.js +33 -0
  635. package/tabview/tabview/index.esm.js.map +1 -0
  636. package/tabview/tabview.d.ts +11 -0
  637. package/textarea/@types/index.d.ts +18 -0
  638. package/textarea/core/controlled/index.cjs.js +2 -0
  639. package/textarea/core/controlled/index.cjs.js.map +1 -0
  640. package/textarea/core/controlled/index.esm.js +26 -0
  641. package/textarea/core/controlled/index.esm.js.map +1 -0
  642. package/textarea/core/controlled.d.ts +14 -0
  643. package/textarea/core/hookForm/index.cjs.js +2 -0
  644. package/textarea/core/hookForm/index.cjs.js.map +1 -0
  645. package/textarea/core/hookForm/index.esm.js +40 -0
  646. package/textarea/core/hookForm/index.esm.js.map +1 -0
  647. package/textarea/core/hookForm.d.ts +14 -0
  648. package/textarea/index.cjs.js +1 -1
  649. package/textarea/index.cjs.js.map +1 -1
  650. package/textarea/index.d.ts +2 -208
  651. package/textarea/index.esm.js +4 -1
  652. package/textarea/index.esm.js.map +1 -1
  653. package/textarea/textarea/index.cjs.js +2 -0
  654. package/textarea/textarea/index.cjs.js.map +1 -0
  655. package/textarea/textarea/index.esm.js +40 -0
  656. package/textarea/textarea/index.esm.js.map +1 -0
  657. package/textarea/textarea.d.ts +14 -0
  658. package/tooltip/@types/index.d.ts +59 -0
  659. package/tooltip/core/handle/index.cjs.js +2 -0
  660. package/tooltip/core/handle/index.cjs.js.map +1 -0
  661. package/tooltip/core/handle/index.esm.js +13 -0
  662. package/tooltip/core/handle/index.esm.js.map +1 -0
  663. package/tooltip/core/handle.d.ts +4 -0
  664. package/tooltip/index.cjs.js +2 -0
  665. package/tooltip/index.cjs.js.map +1 -0
  666. package/tooltip/index.d.ts +2 -0
  667. package/tooltip/index.esm.js +5 -0
  668. package/tooltip/index.esm.js.map +1 -0
  669. package/tooltip/package.json +5 -0
  670. package/tooltip/tooltip/index.cjs.js +2 -0
  671. package/tooltip/tooltip/index.cjs.js.map +1 -0
  672. package/tooltip/tooltip/index.esm.js +30 -0
  673. package/tooltip/tooltip/index.esm.js.map +1 -0
  674. package/tooltip/tooltip.d.ts +12 -0
  675. package/utils/@types/index.d.ts +3 -0
  676. package/utils/@types/message.d.ts +18 -0
  677. package/utils/@types/request.d.ts +23 -0
  678. package/utils/@types/response.d.ts +55 -0
  679. package/utils/const/index.cjs.js +2 -0
  680. package/utils/const/index.cjs.js.map +1 -0
  681. package/utils/const/index.esm.js +51 -0
  682. package/utils/const/index.esm.js.map +1 -0
  683. package/utils/const.d.ts +11 -0
  684. package/utils/handle/index.cjs.js +2 -0
  685. package/utils/handle/index.cjs.js.map +1 -0
  686. package/utils/handle/index.esm.js +42 -0
  687. package/utils/handle/index.esm.js.map +1 -0
  688. package/utils/handle.d.ts +29 -0
  689. package/utils/helper/index.cjs.js +2 -0
  690. package/utils/helper/index.cjs.js.map +1 -0
  691. package/utils/helper/index.esm.js +53 -0
  692. package/utils/helper/index.esm.js.map +1 -0
  693. package/utils/helper.d.ts +19 -0
  694. package/utils/index.cjs.js +1 -1
  695. package/utils/index.cjs.js.map +1 -1
  696. package/utils/index.d.ts +7 -187
  697. package/utils/index.esm.js +27 -1
  698. package/utils/index.esm.js.map +1 -1
  699. package/utils/message/index.cjs.js +2 -0
  700. package/utils/message/index.cjs.js.map +1 -0
  701. package/utils/message/index.esm.js +55 -0
  702. package/utils/message/index.esm.js.map +1 -0
  703. package/utils/message.d.ts +9 -0
  704. package/utils/request/index.cjs.js +2 -0
  705. package/utils/request/index.cjs.js.map +1 -0
  706. package/utils/request/index.esm.js +28 -0
  707. package/utils/request/index.esm.js.map +1 -0
  708. package/utils/request.d.ts +5 -0
  709. package/utils/response/index.cjs.js +2 -0
  710. package/utils/response/index.cjs.js.map +1 -0
  711. package/utils/response/index.esm.js +44 -0
  712. package/utils/response/index.esm.js.map +1 -0
  713. package/utils/response.d.ts +13 -0
  714. package/README.md +0 -42
  715. package/button/_button.scss +0 -56
  716. package/style/index.cjs.js +0 -2
  717. package/style/index.d.ts +0 -2
  718. package/style/index.esm.js +0 -2
  719. /package/{style → accordion}/index.cjs.js.map +0 -0
  720. /package/style/{index.ts → scss/_blockui.scss} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../src/inputfilter/const.ts"],"sourcesContent":["import { InputFilterOptionsMap, InputFilterOptionsProps } from \".\";\n\nexport const optionsDefault: Array<InputFilterOptionsMap[\"text\"]> = [\"=\", \"!=\", \"%\", \"!%\"];\n\nexport const optionsLabel: Array<{\n options: InputFilterOptionsProps,\n label: string\n}> = [\n { options: \"=\", label: \"Igual a\" },\n { options: \"!=\", label: \"Diferente de\" },\n { options: \"<\", label: \"Menor do que\" },\n { options: \">\", label: \"Maior do que\" },\n { options: \"<=\", label: \"Menor ou igual a\" },\n { options: \">=\", label: \"Maior ou igual a\" },\n { options: \"{}\", label: \"Intervalo\" },\n { options: \"%\", label: \"Contém o que\" },\n { options: \"!%\", label: \"Não contém o que\" },\n];"],"names":["optionsDefault","optionsLabel"],"mappings":"gFAEO,MAAMA,EAAuD,CAAC,IAAK,KAAM,IAAK,IAAI,EAE5EC,EAGR,CACD,CAAE,QAAS,IAAK,MAAO,SAAA,EACvB,CAAE,QAAS,KAAM,MAAO,cAAA,EACxB,CAAE,QAAS,IAAK,MAAO,cAAA,EACvB,CAAE,QAAS,IAAK,MAAO,cAAA,EACvB,CAAE,QAAS,KAAM,MAAO,kBAAA,EACxB,CAAE,QAAS,KAAM,MAAO,kBAAA,EACxB,CAAE,QAAS,KAAM,MAAO,WAAA,EACxB,CAAE,QAAS,IAAK,MAAO,cAAA,EACvB,CAAE,QAAS,KAAM,MAAO,kBAAA,CAC5B"}
@@ -0,0 +1,16 @@
1
+ const o = ["=", "!=", "%", "!%"], l = [
2
+ { options: "=", label: "Igual a" },
3
+ { options: "!=", label: "Diferente de" },
4
+ { options: "<", label: "Menor do que" },
5
+ { options: ">", label: "Maior do que" },
6
+ { options: "<=", label: "Menor ou igual a" },
7
+ { options: ">=", label: "Maior ou igual a" },
8
+ { options: "{}", label: "Intervalo" },
9
+ { options: "%", label: "Contém o que" },
10
+ { options: "!%", label: "Não contém o que" }
11
+ ];
12
+ export {
13
+ o as optionsDefault,
14
+ l as optionsLabel
15
+ };
16
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../src/inputfilter/const.ts"],"sourcesContent":["import { InputFilterOptionsMap, InputFilterOptionsProps } from \".\";\n\nexport const optionsDefault: Array<InputFilterOptionsMap[\"text\"]> = [\"=\", \"!=\", \"%\", \"!%\"];\n\nexport const optionsLabel: Array<{\n options: InputFilterOptionsProps,\n label: string\n}> = [\n { options: \"=\", label: \"Igual a\" },\n { options: \"!=\", label: \"Diferente de\" },\n { options: \"<\", label: \"Menor do que\" },\n { options: \">\", label: \"Maior do que\" },\n { options: \"<=\", label: \"Menor ou igual a\" },\n { options: \">=\", label: \"Maior ou igual a\" },\n { options: \"{}\", label: \"Intervalo\" },\n { options: \"%\", label: \"Contém o que\" },\n { options: \"!%\", label: \"Não contém o que\" },\n];"],"names":["optionsDefault","optionsLabel"],"mappings":"AAEO,MAAMA,IAAuD,CAAC,KAAK,MAAM,KAAK,IAAI,GAE5EC,IAGR;AAAA,EACD,EAAE,SAAS,KAAK,OAAO,UAAA;AAAA,EACvB,EAAE,SAAS,MAAM,OAAO,eAAA;AAAA,EACxB,EAAE,SAAS,KAAK,OAAO,eAAA;AAAA,EACvB,EAAE,SAAS,KAAK,OAAO,eAAA;AAAA,EACvB,EAAE,SAAS,MAAM,OAAO,mBAAA;AAAA,EACxB,EAAE,SAAS,MAAM,OAAO,mBAAA;AAAA,EACxB,EAAE,SAAS,MAAM,OAAO,YAAA;AAAA,EACxB,EAAE,SAAS,KAAK,OAAO,eAAA;AAAA,EACvB,EAAE,SAAS,MAAM,OAAO,mBAAA;AAC5B;"}
@@ -0,0 +1,6 @@
1
+ import { InputFilterOptionsMap, InputFilterOptionsProps } from '.';
2
+ export declare const optionsDefault: Array<InputFilterOptionsMap["text"]>;
3
+ export declare const optionsLabel: Array<{
4
+ options: InputFilterOptionsProps;
5
+ label: string;
6
+ }>;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),i=require("primereact/autocomplete"),o=require("../../function/handle/index.cjs.js");function c(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const m=c(i);function r(e){const l=o.handleGetValueAutocomplete(e.value,e.options,e.data);return u.jsx(m.AutoComplete,{multiple:!0,completeMethod:t=>{let a=l.map(n=>n.id);e.onSearch(t.query,a)},appendTo:"self",className:"w-100",disabled:e.disabled,emptyMessage:"Não encontramos dados.",field:"label",id:(e.id??"input-filter")+"-autocomplete",inputClassName:"form-control",name:(e.name??"input-filter")+"-autocomplete",panelClassName:"input-filter-autocomplete-panel",placeholder:e.placeholder,required:e.required,scrollHeight:e.autocompleteScrollHeight,selectionLimit:e.autocompleteSelectLimit,suggestions:e.data,value:l,onChange:t=>e.onChange(o.handleSetValueAutocomplete(t.value,e.select))})}exports.Autocomplete=r;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../src/inputfilter/core/autocomplete.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\nimport * as AutocompletePrimeReact from \"primereact/autocomplete\";\nimport { handleGetValueAutocomplete, handleSetValueAutocomplete } from \"../function/handle\";\n\n/**\n * Core - `Autocomplete`\n * Campo do filtro tipo autocomplete\n */\nexport function Autocomplete<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<\"autocomplete\">) {\n const value = handleGetValueAutocomplete(props.value, props.options, props.data);\n\n return (\n <AutocompletePrimeReact.AutoComplete\n multiple\n completeMethod={event => {\n let ids = value.map(item => item.id);\n props.onSearch(event.query, ids);\n }}\n appendTo=\"self\"\n className=\"w-100\"\n disabled={props.disabled}\n emptyMessage=\"Não encontramos dados.\"\n field=\"label\"\n id={(props.id ?? \"input-filter\") + \"-\" + \"autocomplete\"}\n inputClassName=\"form-control\"\n name={(props.name ?? \"input-filter\") + \"-\" + \"autocomplete\"}\n panelClassName=\"input-filter-autocomplete-panel\"\n placeholder={props.placeholder}\n required={props.required}\n scrollHeight={props.autocompleteScrollHeight}\n selectionLimit={props.autocompleteSelectLimit}\n suggestions={props.data}\n value={value}\n onChange={event => props.onChange(handleSetValueAutocomplete(event.value, props.select))}/>\n );\n}"],"names":["Autocomplete","props","value","handleGetValueAutocomplete","jsx","AutocompletePrimeReact","event","ids","item","handleSetValueAutocomplete"],"mappings":"oeASO,SAASA,EAAoDC,EAA6C,CAC7G,MAAMC,EAAQC,EAAAA,2BAA2BF,EAAM,MAAOA,EAAM,QAASA,EAAM,IAAI,EAE/E,OACIG,EAAAA,IAACC,EAAuB,aAAvB,CACG,SAAQ,GACR,eAAgBC,GAAS,CACrB,IAAIC,EAAML,EAAM,IAAIM,GAAQA,EAAK,EAAE,EACnCP,EAAM,SAASK,EAAM,MAAOC,CAAG,CACnC,EACA,SAAS,OACT,UAAU,QACV,SAAUN,EAAM,SAChB,aAAa,yBACb,MAAM,QACN,IAAKA,EAAM,IAAM,gBAAkB,gBACnC,eAAe,eACf,MAAOA,EAAM,MAAQ,gBAAkB,gBACvC,eAAe,kCACf,YAAaA,EAAM,YACnB,SAAUA,EAAM,SAChB,aAAcA,EAAM,yBACpB,eAAgBA,EAAM,wBACtB,YAAaA,EAAM,KACnB,MAAAC,EACA,YAAmBD,EAAM,SAASQ,EAAAA,2BAA2BH,EAAM,MAAOL,EAAM,MAAM,CAAC,CAAA,CAAA,CAEnG"}
@@ -0,0 +1,36 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import * as m from "primereact/autocomplete";
3
+ import { handleGetValueAutocomplete as u, handleSetValueAutocomplete as n } from "../../function/handle/index.esm.js";
4
+ function r(e) {
5
+ const l = u(e.value, e.options, e.data);
6
+ return /* @__PURE__ */ i(
7
+ m.AutoComplete,
8
+ {
9
+ multiple: !0,
10
+ completeMethod: (t) => {
11
+ let a = l.map((o) => o.id);
12
+ e.onSearch(t.query, a);
13
+ },
14
+ appendTo: "self",
15
+ className: "w-100",
16
+ disabled: e.disabled,
17
+ emptyMessage: "Não encontramos dados.",
18
+ field: "label",
19
+ id: (e.id ?? "input-filter") + "-autocomplete",
20
+ inputClassName: "form-control",
21
+ name: (e.name ?? "input-filter") + "-autocomplete",
22
+ panelClassName: "input-filter-autocomplete-panel",
23
+ placeholder: e.placeholder,
24
+ required: e.required,
25
+ scrollHeight: e.autocompleteScrollHeight,
26
+ selectionLimit: e.autocompleteSelectLimit,
27
+ suggestions: e.data,
28
+ value: l,
29
+ onChange: (t) => e.onChange(n(t.value, e.select))
30
+ }
31
+ );
32
+ }
33
+ export {
34
+ r as Autocomplete
35
+ };
36
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../src/inputfilter/core/autocomplete.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\nimport * as AutocompletePrimeReact from \"primereact/autocomplete\";\nimport { handleGetValueAutocomplete, handleSetValueAutocomplete } from \"../function/handle\";\n\n/**\n * Core - `Autocomplete`\n * Campo do filtro tipo autocomplete\n */\nexport function Autocomplete<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<\"autocomplete\">) {\n const value = handleGetValueAutocomplete(props.value, props.options, props.data);\n\n return (\n <AutocompletePrimeReact.AutoComplete\n multiple\n completeMethod={event => {\n let ids = value.map(item => item.id);\n props.onSearch(event.query, ids);\n }}\n appendTo=\"self\"\n className=\"w-100\"\n disabled={props.disabled}\n emptyMessage=\"Não encontramos dados.\"\n field=\"label\"\n id={(props.id ?? \"input-filter\") + \"-\" + \"autocomplete\"}\n inputClassName=\"form-control\"\n name={(props.name ?? \"input-filter\") + \"-\" + \"autocomplete\"}\n panelClassName=\"input-filter-autocomplete-panel\"\n placeholder={props.placeholder}\n required={props.required}\n scrollHeight={props.autocompleteScrollHeight}\n selectionLimit={props.autocompleteSelectLimit}\n suggestions={props.data}\n value={value}\n onChange={event => props.onChange(handleSetValueAutocomplete(event.value, props.select))}/>\n );\n}"],"names":["Autocomplete","props","value","handleGetValueAutocomplete","jsx","AutocompletePrimeReact","event","ids","item","handleSetValueAutocomplete"],"mappings":";;;AASO,SAASA,EAAoDC,GAA6C;AAC7G,QAAMC,IAAQC,EAA2BF,EAAM,OAAOA,EAAM,SAASA,EAAM,IAAI;AAE/E,SACI,gBAAAG;AAAA,IAACC,EAAuB;AAAA,IAAvB;AAAA,MACG,UAAQ;AAAA,MACR,gBAAgB,CAAAC,MAAS;AACrB,YAAIC,IAAML,EAAM,IAAI,CAAAM,MAAQA,EAAK,EAAE;AACnC,QAAAP,EAAM,SAASK,EAAM,OAAOC,CAAG;AAAA,MACnC;AAAA,MACA,UAAS;AAAA,MACT,WAAU;AAAA,MACV,UAAUN,EAAM;AAAA,MAChB,cAAa;AAAA,MACb,OAAM;AAAA,MACN,KAAKA,EAAM,MAAM,kBAAkB;AAAA,MACnC,gBAAe;AAAA,MACf,OAAOA,EAAM,QAAQ,kBAAkB;AAAA,MACvC,gBAAe;AAAA,MACf,aAAaA,EAAM;AAAA,MACnB,UAAUA,EAAM;AAAA,MAChB,cAAcA,EAAM;AAAA,MACpB,gBAAgBA,EAAM;AAAA,MACtB,aAAaA,EAAM;AAAA,MACnB,OAAAC;AAAA,MACA,UAAU,OAASD,EAAM,SAASQ,EAA2BH,EAAM,OAAOL,EAAM,MAAM,CAAC;AAAA,IAAA;AAAA,EAAA;AAEnG;"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { InputFilterCoreProps, InputFilterOptionsMap } from '..';
3
+ /**
4
+ * Core - `Autocomplete`
5
+ * Campo do filtro tipo autocomplete
6
+ */
7
+ export declare function Autocomplete<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<"autocomplete">): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),u=require("../../function/handle/index.cjs.js");function c(e){let l=u.handleGetValueDate(e.value,e.options,e.select);function d(t){e.select==="{}"&&t==="0/0/0{}0/0/0"||(l[0]==0||isNaN(l[0]))&&(l[1]==0||isNaN(l[1]))&&(l[2]==0||isNaN(l[2]))?e.onChange(null):e.onChange(t)}return n.jsxs("div",{className:"d-flex w-100 flex-column",children:[n.jsx("div",{className:"w-100 d-flex gap-2",children:l.map((t,a)=>{if(a<=2)return n.jsx("input",{className:"form-control input-filter-field-date"+(a==2?" year":""),disabled:e.disabled,id:(e.id??"input-filter")+"-"+a,name:(e.name??"input-filter")+"-"+a,placeholder:e.placeholder,value:t===0?"":t,onChange:i=>d(u.handleSetValueDate(i.target.value,a,l))},a)})}),e.select==="{}"&&l.length>4&&n.jsx("div",{className:"w-100 d-flex gap-2 mt-2",children:l.map((t,a)=>{if(a>=4)return n.jsx("input",{className:"form-control input-filter-field-date"+(a==6?" year":""),disabled:e.disabled,id:(e.id??"input-filter")+"-"+a,name:(e.name??"input-filter")+"-"+a,placeholder:e.placeholder,value:t===0?"":t,onChange:i=>d(u.handleSetValueDate(i.target.value,a,l))},a)})})]})}exports.Date=c;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../src/inputfilter/core/date.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\nimport { handleGetValueDate, handleSetValueDate } from \"../function/handle\";\n\n/**\n * Core - `Date`\n * Campo do filtro tipo data\n */\nexport function Date<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>) {\n let date = handleGetValueDate(props.value, props.options, props.select);\n\n function handleChangeValue(value: string) {\n if (props.select === \"{}\" && value === \"0/0/0{}0/0/0\") {\n props.onChange(null);\n } else {\n if ((date[0] == 0 || isNaN(date[0] as number)) &&\n (date[1] == 0 || isNaN(date[1] as number)) &&\n (date[2] == 0 || isNaN(date[2] as number))) {\n props.onChange(null);\n } else {\n props.onChange(value);\n }\n }\n }\n\n return (\n <div className=\"d-flex w-100 flex-column\">\n <div className=\"w-100 d-flex gap-2\">\n {date.map((item, index) => {\n if (index <= 2) {\n return (\n <input className={\"form-control input-filter-field-date\" + (index == 2 ? \" year\" : \"\")}\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-\" + index}\n key={index}\n name={(props.name ?? \"input-filter\") + \"-\" + index}\n placeholder={props.placeholder}\n value={item === 0 ? \"\" : item}\n onChange={event => handleChangeValue(handleSetValueDate(event.target.value, index, date))}/>\n );\n }\n })}\n </div>\n {props.select === \"{}\" && date.length > 4\n && <div className=\"w-100 d-flex gap-2 mt-2\">\n {date.map((item, index) => {\n if (index >= 4) {\n return (\n <input className={\"form-control input-filter-field-date\" + (index == 6 ? \" year\" : \"\")}\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-\" + index}\n key={index}\n name={(props.name ?? \"input-filter\") + \"-\" + index}\n placeholder={props.placeholder}\n value={item === 0 ? \"\" : item}\n onChange={event => handleChangeValue(handleSetValueDate(event.target.value, index, date))}/>\n );\n }\n })}\n </div>}\n </div>\n );\n}"],"names":["Date","props","date","handleGetValueDate","handleChangeValue","value","jsxs","jsx","item","index","handleSetValueDate","event"],"mappings":"qKAQO,SAASA,EAA4CC,EAAgC,CACxF,IAAIC,EAAOC,EAAAA,mBAAmBF,EAAM,MAAOA,EAAM,QAASA,EAAM,MAAM,EAEtE,SAASG,EAAkBC,EAAe,CAClCJ,EAAM,SAAW,MAAQI,IAAU,iBAG9BH,EAAK,CAAC,GAAK,GAAK,MAAMA,EAAK,CAAC,CAAW,KACvCA,EAAK,CAAC,GAAK,GAAK,MAAMA,EAAK,CAAC,CAAW,KACvCA,EAAK,CAAC,GAAK,GAAK,MAAMA,EAAK,CAAC,CAAW,GAJ5CD,EAAM,SAAS,IAAI,EAOfA,EAAM,SAASI,CAAK,CAGhC,CAEA,OACIC,EAAAA,KAAC,MAAA,CAAI,UAAU,2BACX,SAAA,CAAAC,MAAC,OAAI,UAAU,qBACV,WAAK,IAAI,CAACC,EAAMC,IAAU,CACvB,GAAIA,GAAS,EACT,OACIF,EAAAA,IAAC,QAAA,CAAM,UAAW,wCAA0CE,GAAS,EAAI,QAAU,IAC5E,SAAUR,EAAM,SAChB,IAAKA,EAAM,IAAM,gBAAkB,IAAMQ,EAEzC,MAAOR,EAAM,MAAQ,gBAAkB,IAAMQ,EAC7C,YAAaR,EAAM,YACnB,MAAOO,IAAS,EAAI,GAAKA,EACzB,YAAmBJ,EAAkBM,EAAAA,mBAAmBC,EAAM,OAAO,MAAOF,EAAOP,CAAI,CAAC,CAAA,EAJnFO,CAAA,CAOxB,CAAC,CAAA,CACL,EACCR,EAAM,SAAW,MAAQC,EAAK,OAAS,GACjCK,MAAC,MAAA,CAAI,UAAU,0BACb,SAAAL,EAAK,IAAI,CAACM,EAAMC,IAAU,CACvB,GAAIA,GAAS,EACT,OACIF,EAAAA,IAAC,QAAA,CAAM,UAAW,wCAA0CE,GAAS,EAAI,QAAU,IAC5E,SAAUR,EAAM,SAChB,IAAKA,EAAM,IAAM,gBAAkB,IAAMQ,EAEzC,MAAOR,EAAM,MAAQ,gBAAkB,IAAMQ,EAC7C,YAAaR,EAAM,YACnB,MAAOO,IAAS,EAAI,GAAKA,EACzB,YAAmBJ,EAAkBM,EAAAA,mBAAmBC,EAAM,OAAO,MAAOF,EAAOP,CAAI,CAAC,CAAA,EAJnFO,CAAA,CAOxB,CAAC,CAAA,CACL,CAAA,EACR,CAER"}
@@ -0,0 +1,46 @@
1
+ import { jsxs as f, jsx as n } from "react/jsx-runtime";
2
+ import { handleGetValueDate as c, handleSetValueDate as u } from "../../function/handle/index.esm.js";
3
+ function r(e) {
4
+ let a = c(e.value, e.options, e.select);
5
+ function d(t) {
6
+ e.select === "{}" && t === "0/0/0{}0/0/0" || (a[0] == 0 || isNaN(a[0])) && (a[1] == 0 || isNaN(a[1])) && (a[2] == 0 || isNaN(a[2])) ? e.onChange(null) : e.onChange(t);
7
+ }
8
+ return /* @__PURE__ */ f("div", { className: "d-flex w-100 flex-column", children: [
9
+ /* @__PURE__ */ n("div", { className: "w-100 d-flex gap-2", children: a.map((t, l) => {
10
+ if (l <= 2)
11
+ return /* @__PURE__ */ n(
12
+ "input",
13
+ {
14
+ className: "form-control input-filter-field-date" + (l == 2 ? " year" : ""),
15
+ disabled: e.disabled,
16
+ id: (e.id ?? "input-filter") + "-" + l,
17
+ name: (e.name ?? "input-filter") + "-" + l,
18
+ placeholder: e.placeholder,
19
+ value: t === 0 ? "" : t,
20
+ onChange: (i) => d(u(i.target.value, l, a))
21
+ },
22
+ l
23
+ );
24
+ }) }),
25
+ e.select === "{}" && a.length > 4 && /* @__PURE__ */ n("div", { className: "w-100 d-flex gap-2 mt-2", children: a.map((t, l) => {
26
+ if (l >= 4)
27
+ return /* @__PURE__ */ n(
28
+ "input",
29
+ {
30
+ className: "form-control input-filter-field-date" + (l == 6 ? " year" : ""),
31
+ disabled: e.disabled,
32
+ id: (e.id ?? "input-filter") + "-" + l,
33
+ name: (e.name ?? "input-filter") + "-" + l,
34
+ placeholder: e.placeholder,
35
+ value: t === 0 ? "" : t,
36
+ onChange: (i) => d(u(i.target.value, l, a))
37
+ },
38
+ l
39
+ );
40
+ }) })
41
+ ] });
42
+ }
43
+ export {
44
+ r as Date
45
+ };
46
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../src/inputfilter/core/date.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\nimport { handleGetValueDate, handleSetValueDate } from \"../function/handle\";\n\n/**\n * Core - `Date`\n * Campo do filtro tipo data\n */\nexport function Date<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>) {\n let date = handleGetValueDate(props.value, props.options, props.select);\n\n function handleChangeValue(value: string) {\n if (props.select === \"{}\" && value === \"0/0/0{}0/0/0\") {\n props.onChange(null);\n } else {\n if ((date[0] == 0 || isNaN(date[0] as number)) &&\n (date[1] == 0 || isNaN(date[1] as number)) &&\n (date[2] == 0 || isNaN(date[2] as number))) {\n props.onChange(null);\n } else {\n props.onChange(value);\n }\n }\n }\n\n return (\n <div className=\"d-flex w-100 flex-column\">\n <div className=\"w-100 d-flex gap-2\">\n {date.map((item, index) => {\n if (index <= 2) {\n return (\n <input className={\"form-control input-filter-field-date\" + (index == 2 ? \" year\" : \"\")}\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-\" + index}\n key={index}\n name={(props.name ?? \"input-filter\") + \"-\" + index}\n placeholder={props.placeholder}\n value={item === 0 ? \"\" : item}\n onChange={event => handleChangeValue(handleSetValueDate(event.target.value, index, date))}/>\n );\n }\n })}\n </div>\n {props.select === \"{}\" && date.length > 4\n && <div className=\"w-100 d-flex gap-2 mt-2\">\n {date.map((item, index) => {\n if (index >= 4) {\n return (\n <input className={\"form-control input-filter-field-date\" + (index == 6 ? \" year\" : \"\")}\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-\" + index}\n key={index}\n name={(props.name ?? \"input-filter\") + \"-\" + index}\n placeholder={props.placeholder}\n value={item === 0 ? \"\" : item}\n onChange={event => handleChangeValue(handleSetValueDate(event.target.value, index, date))}/>\n );\n }\n })}\n </div>}\n </div>\n );\n}"],"names":["Date","props","date","handleGetValueDate","handleChangeValue","value","jsxs","jsx","item","index","handleSetValueDate","event"],"mappings":";;AAQO,SAASA,EAA4CC,GAAgC;AACxF,MAAIC,IAAOC,EAAmBF,EAAM,OAAOA,EAAM,SAASA,EAAM,MAAM;AAEtE,WAASG,EAAkBC,GAAe;AACtC,IAAIJ,EAAM,WAAW,QAAQI,MAAU,mBAG9BH,EAAK,CAAC,KAAK,KAAK,MAAMA,EAAK,CAAC,CAAW,OACvCA,EAAK,CAAC,KAAK,KAAK,MAAMA,EAAK,CAAC,CAAW,OACvCA,EAAK,CAAC,KAAK,KAAK,MAAMA,EAAK,CAAC,CAAW,KAJ5CD,EAAM,SAAS,IAAI,IAOfA,EAAM,SAASI,CAAK;AAAA,EAGhC;AAEA,SACI,gBAAAC,EAAC,OAAA,EAAI,WAAU,4BACX,UAAA;AAAA,IAAA,gBAAAC,EAAC,SAAI,WAAU,sBACV,YAAK,IAAI,CAACC,GAAMC,MAAU;AACvB,UAAIA,KAAS;AACT,eACI,gBAAAF;AAAA,UAAC;AAAA,UAAA;AAAA,YAAM,WAAW,0CAA0CE,KAAS,IAAI,UAAU;AAAA,YAC5E,UAAUR,EAAM;AAAA,YAChB,KAAKA,EAAM,MAAM,kBAAkB,MAAMQ;AAAA,YAEzC,OAAOR,EAAM,QAAQ,kBAAkB,MAAMQ;AAAA,YAC7C,aAAaR,EAAM;AAAA,YACnB,OAAOO,MAAS,IAAI,KAAKA;AAAA,YACzB,UAAU,OAASJ,EAAkBM,EAAmBC,EAAM,OAAO,OAAOF,GAAOP,CAAI,CAAC;AAAA,UAAA;AAAA,UAJnFO;AAAA,QAAA;AAAA,IAOxB,CAAC,EAAA,CACL;AAAA,IACCR,EAAM,WAAW,QAAQC,EAAK,SAAS,KACjC,gBAAAK,EAAC,OAAA,EAAI,WAAU,2BACb,UAAAL,EAAK,IAAI,CAACM,GAAMC,MAAU;AACvB,UAAIA,KAAS;AACT,eACI,gBAAAF;AAAA,UAAC;AAAA,UAAA;AAAA,YAAM,WAAW,0CAA0CE,KAAS,IAAI,UAAU;AAAA,YAC5E,UAAUR,EAAM;AAAA,YAChB,KAAKA,EAAM,MAAM,kBAAkB,MAAMQ;AAAA,YAEzC,OAAOR,EAAM,QAAQ,kBAAkB,MAAMQ;AAAA,YAC7C,aAAaR,EAAM;AAAA,YACnB,OAAOO,MAAS,IAAI,KAAKA;AAAA,YACzB,UAAU,OAASJ,EAAkBM,EAAmBC,EAAM,OAAO,OAAOF,GAAOP,CAAI,CAAC;AAAA,UAAA;AAAA,UAJnFO;AAAA,QAAA;AAAA,IAOxB,CAAC,EAAA,CACL;AAAA,EAAA,GACR;AAER;"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { InputFilterCoreProps, InputFilterOptionsMap } from '..';
3
+ /**
4
+ * Core - `Date`
5
+ * Campo do filtro tipo data
6
+ */
7
+ export declare function Date<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime");require("../../../utils/const/index.cjs.js");const i=require("../../../utils/handle/index.cjs.js");require("jquery");require("axios");require("node-snackbar");require("sweetalert2");const n=require("../../function/handle/index.cjs.js");function l(e){return u.jsx("input",{className:"form-control input-filter-field",disabled:e.disabled,id:(e.id??"input-filter")+"-number",name:(e.name??"input-filter")+"-number",placeholder:e.placeholder,value:n.handleGetValueNumber(e.value,e.options??""),onChange:r=>e.onChange(i.handleNumber(r.target.value,"decimal",0)+e.select)})}exports.Number=l;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../src/inputfilter/core/number.tsx"],"sourcesContent":["import React from \"react\";\nimport { handleNumber } from \"../../utils\";\nimport { handleGetValueNumber } from \"../function/handle\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\n\n/**\n * Core - `Number`\n * Campo do filtro tipo numero\n */\nexport function Number<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>) {\n return (\n <input className=\"form-control input-filter-field\"\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-number\"}\n name={(props.name ?? \"input-filter\") + \"-number\"}\n placeholder={props.placeholder}\n value={handleGetValueNumber(props.value, props.options ?? \"\")}\n onChange={event => props.onChange(handleNumber(event.target.value, \"decimal\", 0) + props.select)}/>\n );\n}"],"names":["Number","props","jsx","handleGetValueNumber","event","handleNumber"],"mappings":"iWASO,SAASA,EAA8CC,EAAgC,CAC1F,OACIC,EAAAA,IAAC,QAAA,CAAM,UAAU,kCACV,SAAUD,EAAM,SAChB,IAAKA,EAAM,IAAM,gBAAkB,UACnC,MAAOA,EAAM,MAAQ,gBAAkB,UACvC,YAAaA,EAAM,YACnB,MAAOE,EAAAA,qBAAqBF,EAAM,MAAOA,EAAM,SAAW,EAAE,EAC5D,SAAUG,GAASH,EAAM,SAASI,EAAAA,aAAaD,EAAM,OAAO,MAAO,UAAW,CAAC,EAAIH,EAAM,MAAM,CAAA,CAAA,CAE9G"}
@@ -0,0 +1,26 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import "../../../utils/const/index.esm.js";
3
+ import { handleNumber as m } from "../../../utils/handle/index.esm.js";
4
+ import "jquery";
5
+ import "axios";
6
+ import "node-snackbar";
7
+ import "sweetalert2";
8
+ import { handleGetValueNumber as l } from "../../function/handle/index.esm.js";
9
+ function c(e) {
10
+ return /* @__PURE__ */ i(
11
+ "input",
12
+ {
13
+ className: "form-control input-filter-field",
14
+ disabled: e.disabled,
15
+ id: (e.id ?? "input-filter") + "-number",
16
+ name: (e.name ?? "input-filter") + "-number",
17
+ placeholder: e.placeholder,
18
+ value: l(e.value, e.options ?? ""),
19
+ onChange: (t) => e.onChange(m(t.target.value, "decimal", 0) + e.select)
20
+ }
21
+ );
22
+ }
23
+ export {
24
+ c as Number
25
+ };
26
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../src/inputfilter/core/number.tsx"],"sourcesContent":["import React from \"react\";\nimport { handleNumber } from \"../../utils\";\nimport { handleGetValueNumber } from \"../function/handle\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\n\n/**\n * Core - `Number`\n * Campo do filtro tipo numero\n */\nexport function Number<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>) {\n return (\n <input className=\"form-control input-filter-field\"\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-number\"}\n name={(props.name ?? \"input-filter\") + \"-number\"}\n placeholder={props.placeholder}\n value={handleGetValueNumber(props.value, props.options ?? \"\")}\n onChange={event => props.onChange(handleNumber(event.target.value, \"decimal\", 0) + props.select)}/>\n );\n}"],"names":["Number","props","jsx","handleGetValueNumber","event","handleNumber"],"mappings":";;;;;;;;AASO,SAASA,EAA8CC,GAAgC;AAC1F,SACI,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MAAM,WAAU;AAAA,MACV,UAAUD,EAAM;AAAA,MAChB,KAAKA,EAAM,MAAM,kBAAkB;AAAA,MACnC,OAAOA,EAAM,QAAQ,kBAAkB;AAAA,MACvC,aAAaA,EAAM;AAAA,MACnB,OAAOE,EAAqBF,EAAM,OAAOA,EAAM,WAAW,EAAE;AAAA,MAC5D,UAAU,CAAAG,MAASH,EAAM,SAASI,EAAaD,EAAM,OAAO,OAAO,WAAW,CAAC,IAAIH,EAAM,MAAM;AAAA,IAAA;AAAA,EAAA;AAE9G;"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { InputFilterCoreProps, InputFilterOptionsMap } from '..';
3
+ /**
4
+ * Core - `Number`
5
+ * Campo do filtro tipo numero
6
+ */
7
+ export declare function Number<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("../../function/handle/index.cjs.js");function i(e){return l.jsx("input",{className:"form-control input-filter-field",disabled:e.disabled,id:(e.id??"input-filter")+"-text",name:(e.name??"input-filter")+"-text",placeholder:e.placeholder,value:n.handleGetValueText(e.value,e.options)??"",onChange:t=>e.onChange(t.target.value+e.select)})}exports.Text=i;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../src/inputfilter/core/text.tsx"],"sourcesContent":["import React from \"react\";\nimport { handleGetValueText } from \"../function/handle\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\n\n/**\n * Core - `Text`\n * Campo do filtro tipo texto\n */\nexport function Text<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>) {\n return (\n <input className=\"form-control input-filter-field\"\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-text\"}\n name={(props.name ?? \"input-filter\") + \"-text\"}\n placeholder={props.placeholder}\n value={handleGetValueText(props.value, props.options) ?? \"\"}\n onChange={event => props.onChange(event.target.value + props.select)}/>\n );\n}"],"names":["Text","props","jsx","handleGetValueText","event"],"mappings":"qKAQO,SAASA,EAA4CC,EAAgC,CACxF,OACIC,EAAAA,IAAC,QAAA,CAAM,UAAU,kCACV,SAAUD,EAAM,SAChB,IAAKA,EAAM,IAAM,gBAAkB,QACnC,MAAOA,EAAM,MAAQ,gBAAkB,QACvC,YAAaA,EAAM,YACnB,MAAOE,EAAAA,mBAAmBF,EAAM,MAAOA,EAAM,OAAO,GAAK,GACzD,YAAmBA,EAAM,SAASG,EAAM,OAAO,MAAQH,EAAM,MAAM,CAAA,CAAA,CAElF"}
@@ -0,0 +1,20 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { handleGetValueText as a } from "../../function/handle/index.esm.js";
3
+ function d(e) {
4
+ return /* @__PURE__ */ l(
5
+ "input",
6
+ {
7
+ className: "form-control input-filter-field",
8
+ disabled: e.disabled,
9
+ id: (e.id ?? "input-filter") + "-text",
10
+ name: (e.name ?? "input-filter") + "-text",
11
+ placeholder: e.placeholder,
12
+ value: a(e.value, e.options) ?? "",
13
+ onChange: (t) => e.onChange(t.target.value + e.select)
14
+ }
15
+ );
16
+ }
17
+ export {
18
+ d as Text
19
+ };
20
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../src/inputfilter/core/text.tsx"],"sourcesContent":["import React from \"react\";\nimport { handleGetValueText } from \"../function/handle\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\n\n/**\n * Core - `Text`\n * Campo do filtro tipo texto\n */\nexport function Text<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>) {\n return (\n <input className=\"form-control input-filter-field\"\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-text\"}\n name={(props.name ?? \"input-filter\") + \"-text\"}\n placeholder={props.placeholder}\n value={handleGetValueText(props.value, props.options) ?? \"\"}\n onChange={event => props.onChange(event.target.value + props.select)}/>\n );\n}"],"names":["Text","props","jsx","handleGetValueText","event"],"mappings":";;AAQO,SAASA,EAA4CC,GAAgC;AACxF,SACI,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MAAM,WAAU;AAAA,MACV,UAAUD,EAAM;AAAA,MAChB,KAAKA,EAAM,MAAM,kBAAkB;AAAA,MACnC,OAAOA,EAAM,QAAQ,kBAAkB;AAAA,MACvC,aAAaA,EAAM;AAAA,MACnB,OAAOE,EAAmBF,EAAM,OAAOA,EAAM,OAAO,KAAK;AAAA,MACzD,UAAU,OAASA,EAAM,SAASG,EAAM,OAAO,QAAQH,EAAM,MAAM;AAAA,IAAA;AAAA,EAAA;AAElF;"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { InputFilterCoreProps, InputFilterOptionsMap } from '..';
3
+ /**
4
+ * Core - `Text`
5
+ * Campo do filtro tipo texto
6
+ */
7
+ export declare function Text<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../validate/index.cjs.js");require("../../../utils/const/index.cjs.js");const o=require("../../../utils/handle/index.cjs.js");require("jquery");require("axios");require("node-snackbar");require("sweetalert2");function f(a,n){let e=n.filter(l=>a?.includes(l));return e[e.length-1]??n[0]}function m(a,n){let e=a,l=n.slice().reverse().find(t=>e?.endsWith(t));return l&&e!==void 0?e.slice(0,-l.length):e??null}function v(a,n,e=null){let l=a,t=/(=|!=|<|>|<=|>=|\{\})/,i=a?.match(t),s=i?i[0].trim():n[0],r=[];return(l?.split("{}")??[]).forEach((p,c)=>{let h=p.replace(t,"").trim();if(h.includes("/"))r[c]=h.split("/").map(d=>parseInt(d));else{let d=parseInt(h);r[c]=[isNaN(d)?0:d]}for(;r[c].length<3;)r[c].unshift(0)}),r[1]&&s==="{}"?[...u.validateDate(r[0]),e??s].concat(...u.validateDate(r[1])):r.length===0?[0,0,0,s]:[...u.validateDate(r[0]),e??s]}function V(a,n,e){n!==null&&(e[n]=parseInt(a));let l=e[3],t=e.slice(0,3);if(t=u.validateDate(t),l!=="{}")return`${t[0]}/${t[1]}/${t[2]}${l}`;let i=isNaN(parseInt(e[e.length-1]))&&n===null?[0,0,0]:e.slice(-3);return i=u.validateDate(i),`${t[0]}/${t[1]}/${t[2]}${l}${i[0]}/${i[1]}/${i[2]}`}function D(a,n,e){let l=a?.split(";").map(t=>parseInt(t))??[];return e.filter(t=>l.includes(t.id))}function $(a,n){let e=a.map(l=>l.id);return e.length===0?null:e.join(";")+n}function g(a,n){let e=a,l=n.slice().reverse().find(t=>e?.endsWith(t));return l&&e!==void 0?o.handleNumber(e.slice(0,-l.length),"decimal",0):o.handleNumber(e??"","decimal",0)}exports.handleGetOption=f;exports.handleGetValueAutocomplete=D;exports.handleGetValueDate=v;exports.handleGetValueNumber=g;exports.handleGetValueText=m;exports.handleSetValueAutocomplete=$;exports.handleSetValueDate=V;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../src/inputfilter/function/handle.ts"],"sourcesContent":["import { validateDate } from \"./validate\";\nimport { handleNumber } from \"../../utils\";\nimport { InputFilterOptionsMap } from \"..\";\n\n/**\n * Obtém a opção de filtro correspondente ao valor fornecido.\n *\n * @param value - O valor para buscar uma opção correspondente.\n * @param options - Um array de opções de filtro disponíveis.\n * @returns A opção de filtro correspondente ou a primeira opção se nenhuma correspondência for encontrada.\n */\nexport function handleGetOption<T extends keyof InputFilterOptionsMap>(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[T]>\n): string {\n let exists = options.filter(option => value?.includes(option));\n return exists[exists.length - 1] ?? options[0];\n}\n\n/**\n * Retorna apenas o valor sem os operadores filtro tipo `Text`.\n *\n * @param value - O valor completo, incluindo a opção de filtro.\n * @param options - Um array de opções de filtro disponíveis.\n * @returns O valor sem as opções de filtro.\n */\nexport function handleGetValueText(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"text\"]>\n): string | null {\n let str = value;\n let exists = options\n .slice()\n .reverse()\n .find(item => str?.endsWith(item));\n if (exists && str !== undefined) {\n return str.slice(0, -exists.length);\n }\n return str ?? null;\n}\n\n/**\n * Retorna apenas o valor sem os operadores filtro tipo `Date`.\n *\n * @param value - O valor completo, incluindo a opção de filtro.\n * @param options - Um array de opções de filtro disponíveis.\n * @param select - Seletor do tipo de filtro\n * @returns O valor sem as opções de filtro.\n */\nexport function handleGetValueDate(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"date\"]>,\n select: null | string = null\n): Array<number | string> {\n let str = value;\n let optsRegex = /(=|!=|<|>|<=|>=|\\{\\})/;\n let optsMatch = value?.match(optsRegex);\n let opts = optsMatch ? optsMatch[0].trim() : options[0];\n\n let parts: any[] = [];\n let interval = str?.split(\"{}\") ?? [];\n\n interval.forEach((value, index) => {\n let clean = value.replace(optsRegex, \"\").trim();\n\n if (clean.includes(\"/\")) {\n parts[index] = clean.split(\"/\").map(item => parseInt(item));\n } else {\n let number = parseInt(clean);\n parts[index] = [isNaN(number) ? 0 : number];\n }\n\n while (parts[index].length < 3) {\n parts[index].unshift(0);\n }\n });\n\n if (parts[1] && opts === \"{}\") {\n return [...validateDate(parts[0]), select ?? opts].concat(...validateDate(parts[1]));\n }\n return parts.length === 0\n ? [0, 0, 0, opts]\n : [...validateDate(parts[0]), select ?? opts];\n}\n\n/**\n * Atualiza um valor de data em uma posição específica e retorna a data formatada.\n *\n * @param value - O novo valor a ser inserido na data\n * @param position - A posição do valor a ser atualizado (0 para dia, 1 para mês, 2 para ano)\n * @param date - O array da data atual, incluindo as opções\n * @returns A data atualizada e formatada como string\n */\nexport function handleSetValueDate(\n value: string,\n position: number | null,\n date: (number | string)[]\n): string {\n if (position !== null) {\n date[position] = parseInt(value);\n }\n\n let opts = date[3];\n let firstDate = date.slice(0, 3);\n firstDate = validateDate(firstDate as number[]);\n\n if (opts !== \"{}\") {\n return `${firstDate[0]}/${firstDate[1]}/${firstDate[2]}${opts}`;\n }\n\n let lastDate = isNaN(parseInt(date[date.length - 1] as string)) && position === null\n ? [0, 0, 0]\n : date.slice(-3);\n lastDate = validateDate(lastDate as number[]);\n return `${firstDate[0]}/${firstDate[1]}/${firstDate[2]}${opts}${lastDate[0]}/${lastDate[1]}/${lastDate[2]}`;\n}\n\n/**\n * Obtém os valores selecionados do autocomplete a partir da string de valor e dos dados disponíveis.\n *\n * @param value - String contendo os IDs dos itens selecionados, separados por ponto e vírgula.\n * @param options - Array de opções de filtro disponíveis para o autocomplete.\n * @param data - Array de objetos contendo os dados disponíveis para seleção.\n * @returns Array de objetos correspondentes aos IDs selecionados.\n */\nexport function handleGetValueAutocomplete(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"autocomplete\"]>,\n data: Array<{ id: number, label: string }>\n) {\n let values: any[] = value?.split(\";\").map(item => parseInt(item)) ?? [];\n return data.filter(item => values.includes(item.id));\n}\n\n/**\n * Converte os valores selecionados do autocomplete em uma string formatada para o filtro.\n *\n * @param value - Array de objetos selecionados no autocomplete.\n * @param select - String representando a opção de filtro selecionada.\n * @returns String formatada com os IDs dos itens selecionados e a opção de filtro.\n */\nexport function handleSetValueAutocomplete(\n value: Array<{ id: number, label: string }>,\n select: string,\n): string | null {\n let ids = value.map(item => item.id);\n return ids.length === 0 ? null : ids.join(\";\") + select;\n}\n\n/**\n * Retorna apenas o valor sem os operadores filtro tipo `Number`.\n *\n * @param value - O valor completo, incluindo a opção de filtro.\n * @param options - Um array de opções de filtro disponíveis.\n * @returns O valor sem as opções de filtro.\n */\nexport function handleGetValueNumber(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"text\"]>\n): string {\n let str = value;\n let exists = options\n .slice()\n .reverse()\n .find(item => str?.endsWith(item));\n if (exists && str !== undefined) {\n return handleNumber(str.slice(0, -exists.length), \"decimal\", 0);\n }\n return handleNumber(str ?? \"\", \"decimal\", 0);\n}"],"names":["handleGetOption","value","options","exists","option","handleGetValueText","str","item","handleGetValueDate","select","optsRegex","optsMatch","opts","parts","index","clean","number","validateDate","handleSetValueDate","position","date","firstDate","lastDate","handleGetValueAutocomplete","data","values","handleSetValueAutocomplete","ids","handleGetValueNumber","handleNumber"],"mappings":"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"}
@@ -0,0 +1,59 @@
1
+ import { validateDate as a } from "../validate/index.esm.js";
2
+ import "../../../utils/const/index.esm.js";
3
+ import { handleNumber as f } from "../../../utils/handle/index.esm.js";
4
+ import "jquery";
5
+ import "axios";
6
+ import "node-snackbar";
7
+ import "sweetalert2";
8
+ function G(r, n) {
9
+ let e = n.filter((l) => r?.includes(l));
10
+ return e[e.length - 1] ?? n[0];
11
+ }
12
+ function I(r, n) {
13
+ let e = r, l = n.slice().reverse().find((t) => e?.endsWith(t));
14
+ return l && e !== void 0 ? e.slice(0, -l.length) : e ?? null;
15
+ }
16
+ function b(r, n, e = null) {
17
+ let l = r, t = /(=|!=|<|>|<=|>=|\{\})/, s = r?.match(t), u = s ? s[0].trim() : n[0], i = [];
18
+ return (l?.split("{}") ?? []).forEach((h, o) => {
19
+ let p = h.replace(t, "").trim();
20
+ if (p.includes("/"))
21
+ i[o] = p.split("/").map((c) => parseInt(c));
22
+ else {
23
+ let c = parseInt(p);
24
+ i[o] = [isNaN(c) ? 0 : c];
25
+ }
26
+ for (; i[o].length < 3; )
27
+ i[o].unshift(0);
28
+ }), i[1] && u === "{}" ? [...a(i[0]), e ?? u].concat(...a(i[1])) : i.length === 0 ? [0, 0, 0, u] : [...a(i[0]), e ?? u];
29
+ }
30
+ function x(r, n, e) {
31
+ n !== null && (e[n] = parseInt(r));
32
+ let l = e[3], t = e.slice(0, 3);
33
+ if (t = a(t), l !== "{}")
34
+ return `${t[0]}/${t[1]}/${t[2]}${l}`;
35
+ let s = isNaN(parseInt(e[e.length - 1])) && n === null ? [0, 0, 0] : e.slice(-3);
36
+ return s = a(s), `${t[0]}/${t[1]}/${t[2]}${l}${s[0]}/${s[1]}/${s[2]}`;
37
+ }
38
+ function A(r, n, e) {
39
+ let l = r?.split(";").map((t) => parseInt(t)) ?? [];
40
+ return e.filter((t) => l.includes(t.id));
41
+ }
42
+ function S(r, n) {
43
+ let e = r.map((l) => l.id);
44
+ return e.length === 0 ? null : e.join(";") + n;
45
+ }
46
+ function W(r, n) {
47
+ let e = r, l = n.slice().reverse().find((t) => e?.endsWith(t));
48
+ return l && e !== void 0 ? f(e.slice(0, -l.length), "decimal", 0) : f(e ?? "", "decimal", 0);
49
+ }
50
+ export {
51
+ G as handleGetOption,
52
+ A as handleGetValueAutocomplete,
53
+ b as handleGetValueDate,
54
+ W as handleGetValueNumber,
55
+ I as handleGetValueText,
56
+ S as handleSetValueAutocomplete,
57
+ x as handleSetValueDate
58
+ };
59
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../src/inputfilter/function/handle.ts"],"sourcesContent":["import { validateDate } from \"./validate\";\nimport { handleNumber } from \"../../utils\";\nimport { InputFilterOptionsMap } from \"..\";\n\n/**\n * Obtém a opção de filtro correspondente ao valor fornecido.\n *\n * @param value - O valor para buscar uma opção correspondente.\n * @param options - Um array de opções de filtro disponíveis.\n * @returns A opção de filtro correspondente ou a primeira opção se nenhuma correspondência for encontrada.\n */\nexport function handleGetOption<T extends keyof InputFilterOptionsMap>(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[T]>\n): string {\n let exists = options.filter(option => value?.includes(option));\n return exists[exists.length - 1] ?? options[0];\n}\n\n/**\n * Retorna apenas o valor sem os operadores filtro tipo `Text`.\n *\n * @param value - O valor completo, incluindo a opção de filtro.\n * @param options - Um array de opções de filtro disponíveis.\n * @returns O valor sem as opções de filtro.\n */\nexport function handleGetValueText(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"text\"]>\n): string | null {\n let str = value;\n let exists = options\n .slice()\n .reverse()\n .find(item => str?.endsWith(item));\n if (exists && str !== undefined) {\n return str.slice(0, -exists.length);\n }\n return str ?? null;\n}\n\n/**\n * Retorna apenas o valor sem os operadores filtro tipo `Date`.\n *\n * @param value - O valor completo, incluindo a opção de filtro.\n * @param options - Um array de opções de filtro disponíveis.\n * @param select - Seletor do tipo de filtro\n * @returns O valor sem as opções de filtro.\n */\nexport function handleGetValueDate(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"date\"]>,\n select: null | string = null\n): Array<number | string> {\n let str = value;\n let optsRegex = /(=|!=|<|>|<=|>=|\\{\\})/;\n let optsMatch = value?.match(optsRegex);\n let opts = optsMatch ? optsMatch[0].trim() : options[0];\n\n let parts: any[] = [];\n let interval = str?.split(\"{}\") ?? [];\n\n interval.forEach((value, index) => {\n let clean = value.replace(optsRegex, \"\").trim();\n\n if (clean.includes(\"/\")) {\n parts[index] = clean.split(\"/\").map(item => parseInt(item));\n } else {\n let number = parseInt(clean);\n parts[index] = [isNaN(number) ? 0 : number];\n }\n\n while (parts[index].length < 3) {\n parts[index].unshift(0);\n }\n });\n\n if (parts[1] && opts === \"{}\") {\n return [...validateDate(parts[0]), select ?? opts].concat(...validateDate(parts[1]));\n }\n return parts.length === 0\n ? [0, 0, 0, opts]\n : [...validateDate(parts[0]), select ?? opts];\n}\n\n/**\n * Atualiza um valor de data em uma posição específica e retorna a data formatada.\n *\n * @param value - O novo valor a ser inserido na data\n * @param position - A posição do valor a ser atualizado (0 para dia, 1 para mês, 2 para ano)\n * @param date - O array da data atual, incluindo as opções\n * @returns A data atualizada e formatada como string\n */\nexport function handleSetValueDate(\n value: string,\n position: number | null,\n date: (number | string)[]\n): string {\n if (position !== null) {\n date[position] = parseInt(value);\n }\n\n let opts = date[3];\n let firstDate = date.slice(0, 3);\n firstDate = validateDate(firstDate as number[]);\n\n if (opts !== \"{}\") {\n return `${firstDate[0]}/${firstDate[1]}/${firstDate[2]}${opts}`;\n }\n\n let lastDate = isNaN(parseInt(date[date.length - 1] as string)) && position === null\n ? [0, 0, 0]\n : date.slice(-3);\n lastDate = validateDate(lastDate as number[]);\n return `${firstDate[0]}/${firstDate[1]}/${firstDate[2]}${opts}${lastDate[0]}/${lastDate[1]}/${lastDate[2]}`;\n}\n\n/**\n * Obtém os valores selecionados do autocomplete a partir da string de valor e dos dados disponíveis.\n *\n * @param value - String contendo os IDs dos itens selecionados, separados por ponto e vírgula.\n * @param options - Array de opções de filtro disponíveis para o autocomplete.\n * @param data - Array de objetos contendo os dados disponíveis para seleção.\n * @returns Array de objetos correspondentes aos IDs selecionados.\n */\nexport function handleGetValueAutocomplete(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"autocomplete\"]>,\n data: Array<{ id: number, label: string }>\n) {\n let values: any[] = value?.split(\";\").map(item => parseInt(item)) ?? [];\n return data.filter(item => values.includes(item.id));\n}\n\n/**\n * Converte os valores selecionados do autocomplete em uma string formatada para o filtro.\n *\n * @param value - Array de objetos selecionados no autocomplete.\n * @param select - String representando a opção de filtro selecionada.\n * @returns String formatada com os IDs dos itens selecionados e a opção de filtro.\n */\nexport function handleSetValueAutocomplete(\n value: Array<{ id: number, label: string }>,\n select: string,\n): string | null {\n let ids = value.map(item => item.id);\n return ids.length === 0 ? null : ids.join(\";\") + select;\n}\n\n/**\n * Retorna apenas o valor sem os operadores filtro tipo `Number`.\n *\n * @param value - O valor completo, incluindo a opção de filtro.\n * @param options - Um array de opções de filtro disponíveis.\n * @returns O valor sem as opções de filtro.\n */\nexport function handleGetValueNumber(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"text\"]>\n): string {\n let str = value;\n let exists = options\n .slice()\n .reverse()\n .find(item => str?.endsWith(item));\n if (exists && str !== undefined) {\n return handleNumber(str.slice(0, -exists.length), \"decimal\", 0);\n }\n return handleNumber(str ?? \"\", \"decimal\", 0);\n}"],"names":["handleGetOption","value","options","exists","option","handleGetValueText","str","item","handleGetValueDate","select","optsRegex","optsMatch","opts","parts","index","clean","number","validateDate","handleSetValueDate","position","date","firstDate","lastDate","handleGetValueAutocomplete","data","values","handleSetValueAutocomplete","ids","handleGetValueNumber","handleNumber"],"mappings":"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"}
@@ -0,0 +1,69 @@
1
+ import { InputFilterOptionsMap } from '..';
2
+ /**
3
+ * Obtém a opção de filtro correspondente ao valor fornecido.
4
+ *
5
+ * @param value - O valor para buscar uma opção correspondente.
6
+ * @param options - Um array de opções de filtro disponíveis.
7
+ * @returns A opção de filtro correspondente ou a primeira opção se nenhuma correspondência for encontrada.
8
+ */
9
+ export declare function handleGetOption<T extends keyof InputFilterOptionsMap>(value: string | undefined, options: Array<InputFilterOptionsMap[T]>): string;
10
+ /**
11
+ * Retorna apenas o valor sem os operadores filtro tipo `Text`.
12
+ *
13
+ * @param value - O valor completo, incluindo a opção de filtro.
14
+ * @param options - Um array de opções de filtro disponíveis.
15
+ * @returns O valor sem as opções de filtro.
16
+ */
17
+ export declare function handleGetValueText(value: string | undefined, options: Array<InputFilterOptionsMap["text"]>): string | null;
18
+ /**
19
+ * Retorna apenas o valor sem os operadores filtro tipo `Date`.
20
+ *
21
+ * @param value - O valor completo, incluindo a opção de filtro.
22
+ * @param options - Um array de opções de filtro disponíveis.
23
+ * @param select - Seletor do tipo de filtro
24
+ * @returns O valor sem as opções de filtro.
25
+ */
26
+ export declare function handleGetValueDate(value: string | undefined, options: Array<InputFilterOptionsMap["date"]>, select?: null | string): Array<number | string>;
27
+ /**
28
+ * Atualiza um valor de data em uma posição específica e retorna a data formatada.
29
+ *
30
+ * @param value - O novo valor a ser inserido na data
31
+ * @param position - A posição do valor a ser atualizado (0 para dia, 1 para mês, 2 para ano)
32
+ * @param date - O array da data atual, incluindo as opções
33
+ * @returns A data atualizada e formatada como string
34
+ */
35
+ export declare function handleSetValueDate(value: string, position: number | null, date: (number | string)[]): string;
36
+ /**
37
+ * Obtém os valores selecionados do autocomplete a partir da string de valor e dos dados disponíveis.
38
+ *
39
+ * @param value - String contendo os IDs dos itens selecionados, separados por ponto e vírgula.
40
+ * @param options - Array de opções de filtro disponíveis para o autocomplete.
41
+ * @param data - Array de objetos contendo os dados disponíveis para seleção.
42
+ * @returns Array de objetos correspondentes aos IDs selecionados.
43
+ */
44
+ export declare function handleGetValueAutocomplete(value: string | undefined, options: Array<InputFilterOptionsMap["autocomplete"]>, data: Array<{
45
+ id: number;
46
+ label: string;
47
+ }>): {
48
+ id: number;
49
+ label: string;
50
+ }[];
51
+ /**
52
+ * Converte os valores selecionados do autocomplete em uma string formatada para o filtro.
53
+ *
54
+ * @param value - Array de objetos selecionados no autocomplete.
55
+ * @param select - String representando a opção de filtro selecionada.
56
+ * @returns String formatada com os IDs dos itens selecionados e a opção de filtro.
57
+ */
58
+ export declare function handleSetValueAutocomplete(value: Array<{
59
+ id: number;
60
+ label: string;
61
+ }>, select: string): string | null;
62
+ /**
63
+ * Retorna apenas o valor sem os operadores filtro tipo `Number`.
64
+ *
65
+ * @param value - O valor completo, incluindo a opção de filtro.
66
+ * @param options - Um array de opções de filtro disponíveis.
67
+ * @returns O valor sem as opções de filtro.
68
+ */
69
+ export declare function handleGetValueNumber(value: string | undefined, options: Array<InputFilterOptionsMap["text"]>): string;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function f(u){const[a,t,e]=u,r=t>=1&&t<=12,n=e>0&&e<99999,i=a>=1&&a<=31;if(n&&!r&&!i)return[0,0,e];if(n&&r&&!i)return[0,t,e];if(n&&r&&i){let o=new Date(e,t,0);return o.getDate()<a?[o.getDate(),t,e]:u}return!n&&r&&!i?[0,t,0]:!n&&r&&i?[a,t,0]:!n&&!r&&i?[a,0,0]:n&&!r&&i?[a,0,e]:[0,0,0]}exports.validateDate=f;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../src/inputfilter/function/validate.ts"],"sourcesContent":["/**\n * Valida e ajusta uma data fornecida como um array de números.\n *\n * @param date - Um array de números representando [dia, mês, ano].\n * @returns Um array de números representando a data validada e ajustada.\n */\nexport function validateDate(date: number[]): number[] {\n const [day, month, year] = date;\n\n const isMonthValid = month >= 1 && month <= 12;\n const isYearValid = year > 0 && year < 99999;\n const isDayValid = day >= 1 && day <= 31;\n\n if (isYearValid && !isMonthValid && !isDayValid) {\n return [0, 0, year];\n }\n\n if (isYearValid && isMonthValid && !isDayValid) {\n return [0, month, year];\n }\n\n if (isYearValid && isMonthValid && isDayValid) {\n let currentDate = new Date(year, month, 0);\n if (currentDate.getDate() < day) {\n return [currentDate.getDate(), month, year];\n }\n return date;\n }\n\n if (!isYearValid && isMonthValid && !isDayValid) {\n return [0, month, 0];\n }\n\n if (!isYearValid && isMonthValid && isDayValid) {\n return [day, month, 0];\n }\n\n if (!isYearValid && !isMonthValid && isDayValid) {\n return [day, 0, 0];\n }\n\n if (isYearValid && !isMonthValid && isDayValid) {\n return [day, 0, year];\n }\n\n return [0, 0, 0];\n}"],"names":["validateDate","date","day","month","year","isMonthValid","isYearValid","isDayValid","currentDate"],"mappings":"gFAMO,SAASA,EAAaC,EAA0B,CACnD,KAAM,CAACC,EAAKC,EAAOC,CAAI,EAAIH,EAErBI,EAAeF,GAAS,GAAKA,GAAS,GACtCG,EAAcF,EAAO,GAAKA,EAAO,MACjCG,EAAaL,GAAO,GAAKA,GAAO,GAEtC,GAAII,GAAe,CAACD,GAAgB,CAACE,EACjC,MAAO,CAAC,EAAG,EAAGH,CAAI,EAGtB,GAAIE,GAAeD,GAAgB,CAACE,EAChC,MAAO,CAAC,EAAGJ,EAAOC,CAAI,EAG1B,GAAIE,GAAeD,GAAgBE,EAAY,CAC3C,IAAIC,EAAc,IAAI,KAAKJ,EAAMD,EAAO,CAAC,EACzC,OAAIK,EAAY,QAAA,EAAYN,EACjB,CAACM,EAAY,UAAWL,EAAOC,CAAI,EAEvCH,CACX,CAEA,MAAI,CAACK,GAAeD,GAAgB,CAACE,EAC1B,CAAC,EAAGJ,EAAO,CAAC,EAGnB,CAACG,GAAeD,GAAgBE,EACzB,CAACL,EAAKC,EAAO,CAAC,EAGrB,CAACG,GAAe,CAACD,GAAgBE,EAC1B,CAACL,EAAK,EAAG,CAAC,EAGjBI,GAAe,CAACD,GAAgBE,EACzB,CAACL,EAAK,EAAGE,CAAI,EAGjB,CAAC,EAAG,EAAG,CAAC,CACnB"}
@@ -0,0 +1,16 @@
1
+ function o(u) {
2
+ const [a, t, r] = u, e = t >= 1 && t <= 12, n = r > 0 && r < 99999, i = a >= 1 && a <= 31;
3
+ if (n && !e && !i)
4
+ return [0, 0, r];
5
+ if (n && e && !i)
6
+ return [0, t, r];
7
+ if (n && e && i) {
8
+ let f = new Date(r, t, 0);
9
+ return f.getDate() < a ? [f.getDate(), t, r] : u;
10
+ }
11
+ return !n && e && !i ? [0, t, 0] : !n && e && i ? [a, t, 0] : !n && !e && i ? [a, 0, 0] : n && !e && i ? [a, 0, r] : [0, 0, 0];
12
+ }
13
+ export {
14
+ o as validateDate
15
+ };
16
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../src/inputfilter/function/validate.ts"],"sourcesContent":["/**\n * Valida e ajusta uma data fornecida como um array de números.\n *\n * @param date - Um array de números representando [dia, mês, ano].\n * @returns Um array de números representando a data validada e ajustada.\n */\nexport function validateDate(date: number[]): number[] {\n const [day, month, year] = date;\n\n const isMonthValid = month >= 1 && month <= 12;\n const isYearValid = year > 0 && year < 99999;\n const isDayValid = day >= 1 && day <= 31;\n\n if (isYearValid && !isMonthValid && !isDayValid) {\n return [0, 0, year];\n }\n\n if (isYearValid && isMonthValid && !isDayValid) {\n return [0, month, year];\n }\n\n if (isYearValid && isMonthValid && isDayValid) {\n let currentDate = new Date(year, month, 0);\n if (currentDate.getDate() < day) {\n return [currentDate.getDate(), month, year];\n }\n return date;\n }\n\n if (!isYearValid && isMonthValid && !isDayValid) {\n return [0, month, 0];\n }\n\n if (!isYearValid && isMonthValid && isDayValid) {\n return [day, month, 0];\n }\n\n if (!isYearValid && !isMonthValid && isDayValid) {\n return [day, 0, 0];\n }\n\n if (isYearValid && !isMonthValid && isDayValid) {\n return [day, 0, year];\n }\n\n return [0, 0, 0];\n}"],"names":["validateDate","date","day","month","year","isMonthValid","isYearValid","isDayValid","currentDate"],"mappings":"AAMO,SAASA,EAAaC,GAA0B;AACnD,QAAM,CAACC,GAAKC,GAAOC,CAAI,IAAIH,GAErBI,IAAeF,KAAS,KAAKA,KAAS,IACtCG,IAAcF,IAAO,KAAKA,IAAO,OACjCG,IAAaL,KAAO,KAAKA,KAAO;AAEtC,MAAII,KAAe,CAACD,KAAgB,CAACE;AACjC,WAAO,CAAC,GAAG,GAAGH,CAAI;AAGtB,MAAIE,KAAeD,KAAgB,CAACE;AAChC,WAAO,CAAC,GAAGJ,GAAOC,CAAI;AAG1B,MAAIE,KAAeD,KAAgBE,GAAY;AAC3C,QAAIC,IAAc,IAAI,KAAKJ,GAAMD,GAAO,CAAC;AACzC,WAAIK,EAAY,QAAA,IAAYN,IACjB,CAACM,EAAY,WAAWL,GAAOC,CAAI,IAEvCH;AAAA,EACX;AAEA,SAAI,CAACK,KAAeD,KAAgB,CAACE,IAC1B,CAAC,GAAGJ,GAAO,CAAC,IAGnB,CAACG,KAAeD,KAAgBE,IACzB,CAACL,GAAKC,GAAO,CAAC,IAGrB,CAACG,KAAe,CAACD,KAAgBE,IAC1B,CAACL,GAAK,GAAG,CAAC,IAGjBI,KAAe,CAACD,KAAgBE,IACzB,CAACL,GAAK,GAAGE,CAAI,IAGjB,CAAC,GAAG,GAAG,CAAC;AACnB;"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Valida e ajusta uma data fornecida como um array de números.
3
+ *
4
+ * @param date - Um array de números representando [dia, mês, ano].
5
+ * @returns Um array de números representando a data validada e ajustada.
6
+ */
7
+ export declare function validateDate(date: number[]): number[];
@@ -1,2 +1,2 @@
1
- "use strict";require("jquery"),require("axios"),require("node-snackbar"),require("sweetalert2");var e=require("react"),t=require("primereact/utils"),l=require("primereact/autocomplete");function n(e){let t=document.getElementById(e),l=null===t?null:t.content.replace(".br/",".br");return null===l?null:"/"===l.substr(-1)?l.slice(0,l.length-1):l}n("auth"),n("react-base"),n("csrf-token");const a=[{id:1,name:"Janeiro"},{id:2,name:"Fevereiro"},{id:3,name:"Março"},{id:4,name:"Abril"},{id:5,name:"Maio"},{id:6,name:"Junho"},{id:7,name:"Julho"},{id:8,name:"Agosto"},{id:9,name:"Setembro"},{id:10,name:"Outubro"},{id:11,name:"Novembro"},{id:12,name:"Dezembro"}];function i(e,t="decimal",l=2){let n=e.replace(/[^0-9.,]/g,"");return"decimal"===t?n.length>0?parseFloat(n.replace(",",".").replace(/(\..*)\./g,"$1")).toFixed(l):"":parseFloat(n.replace(",",".")).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}).replace("."," ")}const r=["=","!=","%","!%"],o=[{options:"=",label:"Igual a"},{options:"!=",label:"Diferente de"},{options:"<",label:"Menor do que"},{options:">",label:"Maior do que"},{options:"<=",label:"Menor ou igual a"},{options:">=",label:"Maior ou igual a"},{options:"{}",label:"Intervalo"},{options:"%",label:"Contém o que"},{options:"!%",label:"Não contém o que"}];function s(e){if(!e)return null;let t=e?.match(/(=|!=|<|>|<=|>=|%|!%|\{\})/),l=e.charAt(e.length-1),n=t?.[0];return t?.[0]!==l&&isNaN(parseInt(l))&&n?.slice(-1)!==l&&(n=t?.[0]+l),o.filter((e=>e.options===n))[0]?.label??null}const u=({children:l,...n})=>{const a={size:`box-size-${n.size??"100"}`,direction:`box-direction-${n.direction??"row"}`,justify:void 0===n.justify?"":Array.isArray(n.justify)?n.justify?.join(" "):n.justify,align:void 0===n.align?"":Array.isArray(n.align)?n.align?.join(" "):n.align},i={className:t.classNames(["box",n.className??"",a.size,a.direction,a.justify,a.align]),style:n.css,id:n.id};return e.createElement("div",{...i},l)};function c(e){const[t,l,n]=e,a=l>=1&&l<=12,i=n>0&&n<99999,r=t>=1&&t<=31;if(i&&!a&&!r)return[0,0,n];if(i&&a&&!r)return[0,l,n];if(i&&a&&r){let a=new Date(n,l,0);return a.getDate()<t?[a.getDate(),l,n]:e}return i||!a||r?!i&&a&&r?[t,l,0]:i||a||!r?i&&!a&&r?[t,0,n]:[0,0,0]:[t,0,0]:[0,l,0]}function d(e,t){let l=e,n=t.slice().reverse().find((e=>l?.endsWith(e)));return n&&void 0!==l?l.slice(0,-n.length):l??null}function p(e,t,l=null){let n=e,a=/(=|!=|<|>|<=|>=|\{\})/,i=e?.match(a),r=i?i[0].trim():t[0],o=[];return(n?.split("{}")??[]).forEach(((e,t)=>{let l=e.replace(a,"").trim();if(l.includes("/"))o[t]=l.split("/").map((e=>parseInt(e)));else{let e=parseInt(l);o[t]=[isNaN(e)?0:e]}for(;o[t].length<3;)o[t].unshift(0)})),o[1]&&"{}"===r?[...c(o[0]),l??r].concat(...c(o[1])):0===o.length?[0,0,0,r]:[...c(o[0]),l??r]}function m(e,t,l){null!==t&&(l[t]=parseInt(e));let n=l[3],a=l.slice(0,3);if(a=c(a),"{}"!==n)return`${a[0]}/${a[1]}/${a[2]}${n}`;let i=isNaN(parseInt(l[l.length-1]))&&null===t?[0,0,0]:l.slice(-3);return i=c(i),`${a[0]}/${a[1]}/${a[2]}${n}${i[0]}/${i[1]}/${i[2]}`}function f(e,t,l){let n=e?.split(";").map((e=>parseInt(e)))??[];return l.filter((e=>n.includes(e.id)))}function g(e,t){let l=e.map((e=>e.id));return 0===l.length?null:l.join(";")+t}function h(e,t){let l=e,n=t.slice().reverse().find((e=>l?.endsWith(e)));return i(n&&void 0!==l?l.slice(0,-n.length):l??"","decimal",0)}function b(t){return e.createElement("input",{className:"form-control input-filter-field",disabled:t.disabled,id:(t.id??"input-filter")+"-text",name:(t.name??"input-filter")+"-text",placeholder:t.placeholder,value:d(t.value,t.options)??"",onChange:e=>t.onChange(e.target.value+t.select)})}function N(t){let l=p(t.value,t.options,t.select);function n(e){"{}"===t.select&&"0/0/0{}0/0/0"===e?t.onChange(null):0!=l[0]&&!isNaN(l[0])||0!=l[1]&&!isNaN(l[1])||0!=l[2]&&!isNaN(l[2])?t.onChange(e):t.onChange(null)}return e.createElement("div",{className:"d-flex w-100 flex-column"},e.createElement("div",{className:"w-100 d-flex gap-2"},l.map(((a,i)=>{if(i<=2)return e.createElement("input",{className:"form-control input-filter-field-date"+(2==i?" year":""),disabled:t.disabled,id:(t.id??"input-filter")+"-"+i,key:i,name:(t.name??"input-filter")+"-"+i,placeholder:t.placeholder,value:0===a?"":a,onChange:e=>n(m(e.target.value,i,l))})}))),"{}"===t.select&&l.length>4&&e.createElement("div",{className:"w-100 d-flex gap-2 mt-2"},l.map(((a,i)=>{if(i>=4)return e.createElement("input",{className:"form-control input-filter-field-date"+(6==i?" year":""),disabled:t.disabled,id:(t.id??"input-filter")+"-"+i,key:i,name:(t.name??"input-filter")+"-"+i,placeholder:t.placeholder,value:0===a?"":a,onChange:e=>n(m(e.target.value,i,l))})}))))}const v=({iconPrefix:t="bi bi-",...l})=>l.label&&e.createElement("p",{className:"form-label"},l.icon&&e.createElement("i",{className:t+l.icon+" me-1"}),l.label,l.required&&e.createElement("span",{className:"text-danger"},"*"));function y(t){return e.createElement("input",{className:"form-control input-filter-field",disabled:t.disabled,id:(t.id??"input-filter")+"-number",name:(t.name??"input-filter")+"-number",placeholder:t.placeholder,value:h(t.value,t.options??""),onChange:e=>t.onChange(i(e.target.value,"decimal",0)+t.select)})}function E(t){const n=f(t.value,t.options,t.data);return e.createElement(l.AutoComplete,{multiple:!0,completeMethod:e=>{let l=n.map((e=>e.id));t.onSearch(e.query,l)},appendTo:"self",className:"w-100",disabled:t.disabled,emptyMessage:"Não encontramos dados.",field:"label",id:(t.id??"input-filter")+"-autocomplete",inputClassName:"form-control",name:(t.name??"input-filter")+"-autocomplete",panelClassName:"input-filter-autocomplete-panel",placeholder:t.placeholder,required:t.required,scrollHeight:t.autocompleteScrollHeight,selectionLimit:t.autocompleteSelectLimit,suggestions:t.data,value:n,onChange:e=>t.onChange(g(e.value,t.select))})}exports.InputFilter=function({...l}){const n=(l.options??r).sort(((e,t)=>e.length-t.length)),a=o.filter((e=>n?.includes(e.options))),[i,s]=e.useState(function(e,t){let l=t.filter((t=>e?.includes(t)));return l[l.length-1]??t[0]}(l.value,n));return e.useEffect((()=>{if(l.type&&"text"!==l.type){if("date"===l.type){let e=p(l.value,n,i),t=m("0",null,e);"{}"===i&&"0/0/0{}0/0/0"===t||0==e[0]&&0==e[1]&&0==e[2]?l.onChange(null):l.onChange(t)}else if("autocomplete"===l.type){let e=f(l.value,0,l.data);l.onChange(g(e,i))}else if("number"===l.type){let e=h(l.value,n);""!==e?l.onChange(e+i):l.onChange(null)}}else{let e=d(l.value,n);null!==e?l.onChange(e+i):l.onChange(null)}}),[i]),e.createElement(u,{...l,className:t.classNames([l.className,"input-filter-container"])},e.createElement(v,{...l}),e.createElement("div",{className:"input-filter-content",id:l.id??"input-filter"},e.createElement("select",{className:"form-select input-filter-select",disabled:l.disabled,id:(l.id??"input-filter")+"-select",name:(l.name??"input-filter")+"-select",value:i,onChange:e=>s(e.target.value)},a?.map((t=>e.createElement("option",{key:t.options,value:t.options},t.label)))),(!l.type||"text"===l.type)&&e.createElement(b,{...l,options:n,select:i}),"date"===l.type&&e.createElement(N,{...l,options:n,select:i}),"autocomplete"===l.type&&e.createElement(E,{...l,options:n,select:i}),"number"===l.type&&e.createElement(y,{...l,options:n,select:i})))},exports.filterLegend=s,exports.filterLegendAutocomplete=function(e,t=[],l=30){let n=s(e);if(null===n||0===t.length)return"Não encontramos legenda definida.";let a=e?.split(";").map((e=>parseInt(e)))??[],i=t.filter((e=>a.includes(e.id))).map((e=>e.label)).join(", "),r=i.substring(0,l);return n+": "+r+(r.length!==i.length?"...":"")},exports.filterLegendData=function(e){let t=s(e);if(null===t)return"Não encontramos legenda definida.";let l=e?.split("{}"),n=e?.split("/");const i=e=>{let t=parseInt(e[0]),l=parseInt(e[1],10),n=parseInt(e[2]);return`\n ${t>0?`${0==l?"dia":""} ${t}`:""} \n ${l>0?`${t>0?"de":""} ${a[l-1]?.name}`:""} \n ${n>0?`${t>0||l>0?"de":""} ${n}`:""}\n `.replace(/\s+/g," ").trim()};return t+": "+(void 0===l?.[1]?i(n):i(l[0].split("/"))+" à "+i(l[1].split("/")))},exports.filterLegendText=function(e){let t=s(e);return null===t?"Não encontramos legenda definida.":t+": "+(e?.replace(/(=|!=|<|>|<=|>=|%|!%|\{\})/g,"")??"")};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./legend/index.cjs.js"),t=require("./inputfilter/index.cjs.js");exports.filterLegend=e.filterLegend;exports.filterLegendAutocomplete=e.filterLegendAutocomplete;exports.filterLegendData=e.filterLegendData;exports.filterLegendText=e.filterLegendText;exports.InputFilter=t.InputFilter;
2
2
  //# sourceMappingURL=index.cjs.js.map