@kingteza/crud-component 1.0.3 → 1.0.5

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 (341) hide show
  1. package/dist/App.d.ts +2 -0
  2. package/dist/_virtual/FileSaver.min.cjs +1 -0
  3. package/dist/_virtual/FileSaver.min.js +5 -1
  4. package/dist/_virtual/FileSaver.min2.cjs +1 -0
  5. package/dist/_virtual/FileSaver.min2.js +4 -1
  6. package/dist/_virtual/ShowMoreText.cjs +1 -0
  7. package/dist/_virtual/ShowMoreText.js +7 -1
  8. package/dist/_virtual/ShowMoreText2.cjs +1 -0
  9. package/dist/_virtual/ShowMoreText2.js +4 -1
  10. package/dist/_virtual/Truncate.cjs +1 -0
  11. package/dist/_virtual/Truncate.js +4 -1
  12. package/dist/_virtual/_commonjsHelpers.cjs +1 -0
  13. package/dist/_virtual/_commonjsHelpers.js +8 -1
  14. package/dist/_virtual/advancedFormat.cjs +1 -0
  15. package/dist/_virtual/advancedFormat.js +7 -1
  16. package/dist/_virtual/advancedFormat2.cjs +1 -0
  17. package/dist/_virtual/advancedFormat2.js +4 -1
  18. package/dist/_virtual/customParseFormat.cjs +1 -0
  19. package/dist/_virtual/customParseFormat.js +7 -1
  20. package/dist/_virtual/customParseFormat2.cjs +1 -0
  21. package/dist/_virtual/customParseFormat2.js +4 -1
  22. package/dist/_virtual/dayjs.min.cjs +1 -0
  23. package/dist/_virtual/dayjs.min.js +7 -1
  24. package/dist/_virtual/dayjs.min2.cjs +1 -0
  25. package/dist/_virtual/dayjs.min2.js +4 -1
  26. package/dist/_virtual/index.cjs +1 -0
  27. package/dist/_virtual/index.js +7 -1
  28. package/dist/_virtual/index10.cjs +1 -0
  29. package/dist/_virtual/index10.js +4 -1
  30. package/dist/_virtual/index2.cjs +1 -0
  31. package/dist/_virtual/index2.js +4 -1
  32. package/dist/_virtual/index3.cjs +1 -0
  33. package/dist/_virtual/index3.js +4 -1
  34. package/dist/_virtual/index4.cjs +1 -0
  35. package/dist/_virtual/index4.js +4 -1
  36. package/dist/_virtual/index5.cjs +1 -0
  37. package/dist/_virtual/index5.js +7 -1
  38. package/dist/_virtual/index6.cjs +1 -0
  39. package/dist/_virtual/index6.js +2 -1
  40. package/dist/_virtual/index7.cjs +1 -0
  41. package/dist/_virtual/index7.js +7 -1
  42. package/dist/_virtual/index8.cjs +1 -0
  43. package/dist/_virtual/index8.js +7 -1
  44. package/dist/_virtual/index9.cjs +1 -0
  45. package/dist/_virtual/index9.js +4 -1
  46. package/dist/_virtual/jsx-runtime.cjs +1 -0
  47. package/dist/_virtual/jsx-runtime.js +5 -1
  48. package/dist/_virtual/jsx-runtime2.cjs +1 -0
  49. package/dist/_virtual/jsx-runtime2.js +4 -1
  50. package/dist/_virtual/localeData.cjs +1 -0
  51. package/dist/_virtual/localeData.js +7 -1
  52. package/dist/_virtual/localeData2.cjs +1 -0
  53. package/dist/_virtual/localeData2.js +4 -1
  54. package/dist/_virtual/main.cjs +1 -0
  55. package/dist/_virtual/main.js +7 -1
  56. package/dist/_virtual/main2.cjs +1 -0
  57. package/dist/_virtual/main2.js +4 -1
  58. package/dist/_virtual/papaparse.min.cjs +1 -0
  59. package/dist/_virtual/papaparse.min.js +7 -1
  60. package/dist/_virtual/papaparse.min2.cjs +1 -0
  61. package/dist/_virtual/papaparse.min2.js +4 -1
  62. package/dist/_virtual/react-is.development.cjs +1 -0
  63. package/dist/_virtual/react-is.development.js +4 -1
  64. package/dist/_virtual/react-is.production.min.cjs +1 -0
  65. package/dist/_virtual/react-is.production.min.js +4 -1
  66. package/dist/_virtual/react-jsx-runtime.development.cjs +1 -0
  67. package/dist/_virtual/react-jsx-runtime.development.js +4 -1
  68. package/dist/_virtual/react-jsx-runtime.production.min.cjs +1 -0
  69. package/dist/_virtual/react-jsx-runtime.production.min.js +4 -1
  70. package/dist/_virtual/weekOfYear.cjs +1 -0
  71. package/dist/_virtual/weekOfYear.js +7 -1
  72. package/dist/_virtual/weekOfYear2.cjs +1 -0
  73. package/dist/_virtual/weekOfYear2.js +4 -1
  74. package/dist/_virtual/weekYear.cjs +1 -0
  75. package/dist/_virtual/weekYear.js +7 -1
  76. package/dist/_virtual/weekYear2.cjs +1 -0
  77. package/dist/_virtual/weekYear2.js +4 -1
  78. package/dist/_virtual/weekday.cjs +1 -0
  79. package/dist/_virtual/weekday.js +7 -1
  80. package/dist/_virtual/weekday2.cjs +1 -0
  81. package/dist/_virtual/weekday2.js +4 -1
  82. package/dist/common/index.cjs +1 -0
  83. package/dist/common/index.js +75 -1
  84. package/dist/components/common/DatePicker/DatePicker.d.ts +37 -0
  85. package/dist/components/common/DatePicker/TimePicker.d.ts +34 -0
  86. package/dist/components/common/DatePicker/index.d.ts +3 -0
  87. package/dist/components/common/appearance/Hider.d.ts +6 -0
  88. package/dist/components/common/appearance/index.d.ts +0 -0
  89. package/dist/components/common/button/Button.d.ts +12 -0
  90. package/dist/components/common/button/CloneButtonTable.d.ts +6 -0
  91. package/dist/components/common/button/DeleteButtonTable.d.ts +13 -0
  92. package/dist/components/common/button/ExportButton.d.ts +4 -0
  93. package/dist/components/common/button/HideButtonTable.d.ts +13 -0
  94. package/dist/components/common/button/ImportButton.d.ts +9 -0
  95. package/dist/components/common/button/NewButton.d.ts +12 -0
  96. package/dist/components/common/button/PrintButton.d.ts +12 -0
  97. package/dist/components/common/button/RefreshButton.d.ts +11 -0
  98. package/dist/components/common/button/UnHideButton.d.ts +14 -0
  99. package/dist/components/common/button/UpdateButtonTable.d.ts +6 -0
  100. package/dist/components/common/button/ViewButtonTable.d.ts +6 -0
  101. package/dist/components/common/button/index.d.ts +14 -0
  102. package/dist/components/common/check-box/CheckBox.d.ts +9 -0
  103. package/dist/components/common/check-box/index.d.ts +2 -0
  104. package/dist/components/common/description/DescList.d.ts +18 -0
  105. package/dist/components/common/description/DescriptionComponent.d.ts +7 -0
  106. package/dist/components/common/description/index.d.ts +3 -0
  107. package/dist/components/common/index.d.ts +22 -0
  108. package/dist/components/common/layout/VerticalSpace.d.ts +5 -0
  109. package/dist/components/common/layout/index.d.ts +2 -0
  110. package/dist/components/common/loading/LoadingIndicator.d.ts +6 -0
  111. package/dist/components/common/loading/index.d.ts +2 -0
  112. package/dist/components/common/picker/ImagePicker.d.ts +56 -0
  113. package/dist/components/common/picker/index.d.ts +2 -0
  114. package/dist/components/common/radio/RadioGroupComponent.d.ts +18 -0
  115. package/dist/components/common/radio/index.d.ts +2 -0
  116. package/dist/components/common/report/SelectFieldInReport.d.ts +16 -0
  117. package/dist/components/common/report/index.d.ts +3 -0
  118. package/dist/components/common/select/CustomSelectOption.d.ts +7 -0
  119. package/dist/components/common/select/SelectComponent.d.ts +21 -0
  120. package/dist/components/common/select/index.d.ts +3 -0
  121. package/dist/components/common/show-more/index.d.ts +4 -0
  122. package/dist/components/common/tab/TabViewWithRoute.d.ts +13 -0
  123. package/dist/components/common/tab/index.d.ts +2 -0
  124. package/dist/components/common/table/index.d.ts +3 -0
  125. package/dist/components/common/table/table.d.ts +19 -0
  126. package/dist/components/common/tag/StatusTag.d.ts +14 -0
  127. package/dist/components/common/tag/index.d.ts +2 -0
  128. package/dist/components/common/text/index.d.ts +3 -0
  129. package/dist/components/common/text/title/TitleWithHeadTitle.d.ts +7 -0
  130. package/dist/components/common/text/title/index.d.ts +1 -0
  131. package/dist/components/common/text-field/NumberField.d.ts +13 -0
  132. package/dist/components/common/text-field/PhoneNumberField.d.ts +4 -0
  133. package/dist/components/common/text-field/TextArea.d.ts +17 -0
  134. package/dist/components/common/text-field/TextField.d.ts +27 -0
  135. package/dist/components/common/text-field/index.d.ts +5 -0
  136. package/dist/components/common/tooltip/TooltipComponent.d.ts +5 -0
  137. package/dist/components/common/tooltip/index.d.ts +2 -0
  138. package/dist/components/common/wizard/WizardResult.d.ts +16 -0
  139. package/dist/components/common/wizard/WizardViewForm.d.ts +24 -0
  140. package/dist/components/common/wizard/index.d.ts +3 -0
  141. package/dist/components/crud/CrudComponent.d.ts +237 -0
  142. package/dist/components/crud/CrudField.d.ts +4 -0
  143. package/dist/components/crud/CrudForm.d.ts +14 -0
  144. package/dist/components/crud/CrudFormWizard.d.ts +14 -0
  145. package/dist/components/crud/CrudReportComponent.d.ts +44 -0
  146. package/dist/components/crud/CrudSearchComponent.d.ts +21 -0
  147. package/dist/components/crud/FileCrudField.d.ts +25 -0
  148. package/dist/components/crud/ImageCrudField.d.ts +38 -0
  149. package/dist/components/crud/import/CrudImportButton.d.ts +3 -0
  150. package/dist/components/crud/import/CrudImportComponent.d.ts +14 -0
  151. package/dist/components/crud/index.d.ts +15 -0
  152. package/dist/components/crud/view/CrudDecListView.d.ts +14 -0
  153. package/dist/components/crud/view/CrudViewer.d.ts +43 -0
  154. package/dist/components/crud/view/CrudViewerUtil.d.ts +2 -0
  155. package/dist/components/crud/view/index.d.ts +5 -0
  156. package/dist/context/WindowDimension.d.ts +4 -0
  157. package/dist/index.cjs +1 -0
  158. package/dist/index.d.ts +4 -63
  159. package/dist/index.js +32 -1
  160. package/dist/locale/hooks/translation-constants.d.ts +1 -0
  161. package/dist/locale/index.d.ts +69 -0
  162. package/dist/locale/translations/en.d.ts +58 -0
  163. package/dist/main.d.ts +0 -0
  164. package/dist/src/components/common/DatePicker/DatePicker.cjs +1 -0
  165. package/dist/src/components/common/DatePicker/DatePicker.js +88 -0
  166. package/dist/src/components/common/DatePicker/TimePicker.cjs +1 -0
  167. package/dist/src/components/common/DatePicker/TimePicker.js +78 -0
  168. package/dist/src/components/common/appearance/Hider.cjs +1 -0
  169. package/dist/src/components/common/appearance/Hider.js +5 -0
  170. package/dist/src/components/common/button/Button.cjs +1 -0
  171. package/dist/src/components/common/button/Button.js +64 -0
  172. package/dist/src/components/common/button/CloneButtonTable.cjs +1 -0
  173. package/dist/src/components/common/button/CloneButtonTable.js +20 -0
  174. package/dist/src/components/common/button/DeleteButtonTable.cjs +1 -0
  175. package/dist/src/components/common/button/DeleteButtonTable.js +68 -0
  176. package/dist/src/components/common/button/ExportButton.cjs +1 -0
  177. package/dist/src/components/common/button/ExportButton.js +27 -0
  178. package/dist/src/components/common/button/HideButtonTable.cjs +1 -0
  179. package/dist/src/components/common/button/HideButtonTable.js +68 -0
  180. package/dist/src/components/common/button/ImportButton.cjs +1 -0
  181. package/dist/src/components/common/button/ImportButton.js +56 -0
  182. package/dist/src/components/common/button/NewButton.cjs +1 -0
  183. package/dist/src/components/common/button/NewButton.js +24 -0
  184. package/dist/src/components/common/button/PrintButton.cjs +1 -0
  185. package/dist/src/components/common/button/PrintButton.js +26 -0
  186. package/dist/src/components/common/button/RefreshButton.cjs +1 -0
  187. package/dist/src/components/common/button/RefreshButton.js +24 -0
  188. package/dist/src/components/common/button/UnHideButton.cjs +1 -0
  189. package/dist/src/components/common/button/UnHideButton.js +70 -0
  190. package/dist/src/components/common/button/UpdateButtonTable.cjs +1 -0
  191. package/dist/src/components/common/button/UpdateButtonTable.js +20 -0
  192. package/dist/src/components/common/button/ViewButtonTable.cjs +1 -0
  193. package/dist/src/components/common/button/ViewButtonTable.js +20 -0
  194. package/dist/src/components/common/check-box/CheckBox.cjs +1 -0
  195. package/dist/src/components/common/check-box/CheckBox.js +40 -0
  196. package/dist/src/components/common/description/DescList.cjs +1 -0
  197. package/dist/src/components/common/description/DescList.js +16 -0
  198. package/dist/src/components/common/layout/VerticalSpace.cjs +1 -0
  199. package/dist/src/components/common/layout/VerticalSpace.js +6 -0
  200. package/dist/src/components/common/loading/LoadingIndicator.cjs +1 -0
  201. package/dist/src/components/common/loading/LoadingIndicator.js +24 -0
  202. package/dist/src/components/common/picker/ImagePicker.cjs +1 -0
  203. package/dist/src/components/common/picker/ImagePicker.js +285 -0
  204. package/dist/src/components/common/radio/RadioGroupComponent.cjs +1 -0
  205. package/dist/src/components/common/radio/RadioGroupComponent.js +19 -0
  206. package/dist/src/components/common/report/SelectFieldInReport.cjs +1 -0
  207. package/dist/src/components/common/report/SelectFieldInReport.js +30 -0
  208. package/dist/src/components/common/select/CustomSelectOption.cjs +1 -0
  209. package/dist/src/components/common/select/CustomSelectOption.js +13 -0
  210. package/dist/src/components/common/select/SelectComponent.cjs +1 -0
  211. package/dist/src/components/common/select/SelectComponent.js +89 -0
  212. package/dist/src/components/common/show-more/index.cjs +1 -0
  213. package/dist/src/components/common/show-more/index.js +8 -0
  214. package/dist/src/components/common/tab/TabViewWithRoute.cjs +1 -0
  215. package/dist/src/components/common/tab/TabViewWithRoute.js +37 -0
  216. package/dist/src/components/common/table/table.cjs +1 -0
  217. package/dist/src/components/common/table/table.js +40 -0
  218. package/dist/src/components/common/tag/StatusTag.cjs +1 -0
  219. package/dist/src/components/common/tag/StatusTag.js +30 -0
  220. package/dist/src/components/common/text/index.js +5 -0
  221. package/dist/src/components/common/text/title/index.js +5 -0
  222. package/dist/src/components/common/text-field/NumberField.cjs +1 -0
  223. package/dist/src/components/common/text-field/NumberField.js +83 -0
  224. package/dist/src/components/common/text-field/PhoneNumberField.cjs +1 -0
  225. package/dist/src/components/common/text-field/PhoneNumberField.js +18 -0
  226. package/dist/src/components/common/text-field/TextArea.cjs +1 -0
  227. package/dist/src/components/common/text-field/TextArea.js +47 -0
  228. package/dist/src/components/common/text-field/TextField.cjs +1 -0
  229. package/dist/src/components/common/text-field/TextField.js +73 -0
  230. package/dist/src/components/common/tooltip/TooltipComponent.cjs +1 -0
  231. package/dist/src/components/common/tooltip/TooltipComponent.js +9 -0
  232. package/dist/src/components/common/wizard/WizardResult.cjs +1 -0
  233. package/dist/src/components/common/wizard/WizardResult.js +61 -0
  234. package/dist/src/components/common/wizard/WizardViewForm.cjs +1 -0
  235. package/dist/src/components/common/wizard/WizardViewForm.js +74 -0
  236. package/dist/src/components/crud/CrudComponent.cjs +1 -0
  237. package/dist/src/components/crud/CrudComponent.js +210 -0
  238. package/dist/src/components/crud/CrudField.cjs +1 -0
  239. package/dist/src/components/crud/CrudField.js +459 -0
  240. package/dist/src/components/crud/CrudForm.cjs +1 -0
  241. package/dist/src/components/crud/CrudForm.js +91 -0
  242. package/dist/src/components/crud/CrudFormWizard.cjs +1 -0
  243. package/dist/src/components/crud/CrudFormWizard.js +142 -0
  244. package/dist/src/components/crud/CrudReportComponent.cjs +4 -0
  245. package/dist/src/components/crud/CrudReportComponent.js +255 -0
  246. package/dist/src/components/crud/CrudSearchComponent.cjs +1 -0
  247. package/dist/src/components/crud/CrudSearchComponent.js +95 -0
  248. package/dist/src/components/crud/FileCrudField.cjs +1 -0
  249. package/dist/src/components/crud/FileCrudField.js +227 -0
  250. package/dist/src/components/crud/ImageCrudField.cjs +1 -0
  251. package/dist/src/components/crud/ImageCrudField.js +113 -0
  252. package/dist/src/components/crud/import/CrudImportButton.cjs +1 -0
  253. package/dist/src/components/crud/import/CrudImportButton.js +31 -0
  254. package/dist/{components/crud/import/CrudImportComponent.js → src/components/crud/import/CrudImportComponent.cjs} +1 -1
  255. package/dist/src/components/crud/import/CrudImportComponent.js +222 -0
  256. package/dist/src/components/crud/view/CrudDecListView.cjs +1 -0
  257. package/dist/src/components/crud/view/CrudDecListView.js +42 -0
  258. package/dist/src/components/crud/view/CrudViewer.cjs +1 -0
  259. package/dist/src/components/crud/view/CrudViewer.js +217 -0
  260. package/dist/src/components/crud/view/CrudViewerUtil.cjs +1 -0
  261. package/dist/src/components/crud/view/CrudViewerUtil.js +58 -0
  262. package/dist/src/context/WindowDimension.cjs +1 -0
  263. package/dist/src/context/WindowDimension.js +8 -0
  264. package/dist/src/locale/hooks/translation-constants.js +4 -0
  265. package/dist/src/locale/index.cjs +1 -0
  266. package/dist/src/locale/index.js +33 -0
  267. package/dist/src/locale/translations/en.js +60 -0
  268. package/dist/src/util/DateUtil.cjs +1 -0
  269. package/dist/src/util/DateUtil.js +6 -0
  270. package/dist/src/util/ImageUtil.cjs +1 -0
  271. package/dist/src/util/ImageUtil.js +63 -0
  272. package/dist/src/util/NumberUtil.js +60 -0
  273. package/dist/src/util/ValidationUtil.cjs +1 -0
  274. package/dist/src/util/ValidationUtil.js +60 -0
  275. package/dist/types/DialogComponentProp.d.ts +8 -0
  276. package/dist/types/Id.d.ts +10 -0
  277. package/dist/util/DateUtil.d.ts +7 -0
  278. package/dist/util/ImageUtil.d.ts +14 -0
  279. package/dist/util/NumberUtil.d.ts +17 -0
  280. package/dist/util/ValidationUtil.d.ts +14 -0
  281. package/dist/util/index.cjs +1 -0
  282. package/dist/util/index.js +10 -1
  283. package/dist/vite-env.d.ts +1 -0
  284. package/package.json +5 -4
  285. package/dist/components/common/DatePicker/DatePicker.js +0 -1
  286. package/dist/components/common/DatePicker/TimePicker.js +0 -1
  287. package/dist/components/common/appearance/Hider.js +0 -1
  288. package/dist/components/common/button/Button.js +0 -1
  289. package/dist/components/common/button/CloneButtonTable.js +0 -1
  290. package/dist/components/common/button/DeleteButtonTable.js +0 -1
  291. package/dist/components/common/button/ExportButton.js +0 -1
  292. package/dist/components/common/button/HideButtonTable.js +0 -1
  293. package/dist/components/common/button/ImportButton.js +0 -1
  294. package/dist/components/common/button/NewButton.js +0 -1
  295. package/dist/components/common/button/PrintButton.js +0 -1
  296. package/dist/components/common/button/RefreshButton.js +0 -1
  297. package/dist/components/common/button/UnHideButton.js +0 -1
  298. package/dist/components/common/button/UpdateButtonTable.js +0 -1
  299. package/dist/components/common/button/ViewButtonTable.js +0 -1
  300. package/dist/components/common/check-box/CheckBox.js +0 -1
  301. package/dist/components/common/description/DescList.js +0 -1
  302. package/dist/components/common/layout/VerticalSpace.js +0 -1
  303. package/dist/components/common/loading/LoadingIndicator.js +0 -1
  304. package/dist/components/common/picker/ImagePicker.js +0 -1
  305. package/dist/components/common/radio/RadioGroupComponent.js +0 -1
  306. package/dist/components/common/report/SelectFieldInReport.js +0 -1
  307. package/dist/components/common/select/CustomSelectOption.js +0 -1
  308. package/dist/components/common/select/SelectComponent.js +0 -1
  309. package/dist/components/common/show-more/index.js +0 -1
  310. package/dist/components/common/tab/TabViewWithRoute.js +0 -1
  311. package/dist/components/common/table/table.js +0 -1
  312. package/dist/components/common/tag/StatusTag.js +0 -1
  313. package/dist/components/common/text-field/NumberField.js +0 -1
  314. package/dist/components/common/text-field/PhoneNumberField.js +0 -1
  315. package/dist/components/common/text-field/TextArea.js +0 -1
  316. package/dist/components/common/text-field/TextField.js +0 -1
  317. package/dist/components/common/tooltip/TooltipComponent.js +0 -1
  318. package/dist/components/common/wizard/WizardResult.js +0 -1
  319. package/dist/components/common/wizard/WizardViewForm.js +0 -1
  320. package/dist/components/crud/CrudComponent.js +0 -1
  321. package/dist/components/crud/CrudField.js +0 -1
  322. package/dist/components/crud/CrudForm.js +0 -1
  323. package/dist/components/crud/CrudFormWizard.js +0 -1
  324. package/dist/components/crud/CrudReportComponent.js +0 -4
  325. package/dist/components/crud/CrudSearchComponent.js +0 -1
  326. package/dist/components/crud/FileCrudField.js +0 -1
  327. package/dist/components/crud/ImageCrudField.js +0 -1
  328. package/dist/components/crud/import/CrudImportButton.js +0 -1
  329. package/dist/components/crud/view/CrudDecListView.js +0 -1
  330. package/dist/components/crud/view/CrudViewer.js +0 -1
  331. package/dist/components/crud/view/CrudViewerUtil.js +0 -1
  332. package/dist/context/WindowDimension.js +0 -1
  333. package/dist/locale/index.js +0 -1
  334. package/dist/util/DateUtil.js +0 -1
  335. package/dist/util/ImageUtil.js +0 -1
  336. package/dist/util/ValidationUtil.js +0 -1
  337. /package/dist/{components/common/text/index.js → src/components/common/text/index.cjs} +0 -0
  338. /package/dist/{components/common/text/title/index.js → src/components/common/text/title/index.cjs} +0 -0
  339. /package/dist/{locale/hooks/translation-constants.js → src/locale/hooks/translation-constants.cjs} +0 -0
  340. /package/dist/{locale/translations/en.js → src/locale/translations/en.cjs} +0 -0
  341. /package/dist/{util/NumberUtil.js → src/util/NumberUtil.cjs} +0 -0
@@ -0,0 +1,285 @@
1
+ import { j as t } from "../../../../_virtual/jsx-runtime.js";
2
+ /* empty css */
3
+ /* empty css */
4
+ import { Form as Ce, Modal as Z, Upload as ve } from "antd";
5
+ import M, { useRef as _, useState as h, useEffect as U, useCallback as q, useMemo as ee } from "react";
6
+ import { Cropper as Ie } from "../../../../node_modules/react-cropper/dist/react-cropper.es.js";
7
+ import { TRANSLATION_NAMESPACE as be } from "../../../locale/hooks/translation-constants.js";
8
+ import z from "../button/Button.js";
9
+ import ye from "../../../util/ImageUtil.js";
10
+ import { useTranslation as Re } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
11
+ import Fe from "../../../../node_modules/@ant-design/icons/es/icons/RotateLeftOutlined.js";
12
+ import Ne from "../../../../node_modules/@ant-design/icons/es/icons/RotateRightOutlined.js";
13
+ import re from "../../../../node_modules/@ant-design/icons/es/icons/UploadOutlined.js";
14
+ import Ue from "../../../../node_modules/@ant-design/icons/es/icons/LoadingOutlined.js";
15
+ const Se = Ce.Item;
16
+ function te(r) {
17
+ return new Promise((l, m) => {
18
+ const o = new FileReader();
19
+ o.readAsDataURL(r), o.onload = () => l(o.result), o.onerror = (p) => m(p);
20
+ });
21
+ }
22
+ const He = ({
23
+ values: r = [],
24
+ required: l,
25
+ buttonType: m,
26
+ label: o,
27
+ name: p,
28
+ onChange: f,
29
+ aspectRatio: S,
30
+ buttonTitle: j,
31
+ hidePreview: w,
32
+ buttonSize: u = "large",
33
+ showButtonText: g = !0,
34
+ showOnlyIcon: B = !1,
35
+ icon: b = /* @__PURE__ */ t.jsx(re, {}),
36
+ loading: y,
37
+ maxCount: C = 1,
38
+ onAdd: c,
39
+ onRemove: R,
40
+ listType: F,
41
+ ...E
42
+ }) => {
43
+ const [oe, se] = M.useState(""), [ne, ie] = M.useState(""), [ae, $] = M.useState(!1), O = _(), n = _(), [i, k] = h([]), [x, A] = h(), ce = _(), le = () => $(!1), de = async (e) => {
44
+ !e.url && !e.preview && (e.preview = await te(e.originFileObj)), ie(e.url || e.preview), $(!0), se(e.name);
45
+ }, [T, N] = h(!1), me = () => {
46
+ }, J = (e) => {
47
+ var s;
48
+ (s = n == null ? void 0 : n.current) == null || s.cropper.rotate(e ? -90 : 90);
49
+ };
50
+ U(() => {
51
+ f == null || f(i[0], i);
52
+ }, [i, f]);
53
+ const pe = () => {
54
+ var I;
55
+ const e = (I = n == null ? void 0 : n.current) == null ? void 0 : I.cropper.getCroppedCanvas(), { type: s, size: a, name: d, uid: v } = O.current;
56
+ N(!0), e == null || e.toBlob(async (je) => {
57
+ const we = Object.assign(new File([je], d, { type: s }), {
58
+ uid: v
59
+ }), Q = await ye.resizeImage(we), X = await te(Q), Y = {
60
+ url: X,
61
+ name: d,
62
+ uid: v,
63
+ type: s,
64
+ size: a,
65
+ thumbUrl: X,
66
+ originFileObj: Q
67
+ };
68
+ if (c)
69
+ try {
70
+ N(!0), await c(Y);
71
+ } finally {
72
+ N(!1);
73
+ }
74
+ k([Y, ...i]), N(!1);
75
+ }), A(void 0);
76
+ }, fe = () => {
77
+ A(void 0), O.current = void 0;
78
+ }, V = q((e) => {
79
+ const s = e;
80
+ if (s) {
81
+ O.current = s;
82
+ const a = new FileReader();
83
+ a.addEventListener("load", () => {
84
+ var d;
85
+ if (typeof a.result == "string") {
86
+ A(a.result);
87
+ const v = localStorage.getItem("cropper.box"), I = v ? JSON.parse(v) : void 0;
88
+ I && ((d = n == null ? void 0 : n.current) == null || d.cropper.setCropBoxData(I)), setTimeout(() => {
89
+ K();
90
+ }, 100);
91
+ }
92
+ }), a.readAsDataURL(s);
93
+ }
94
+ }, []);
95
+ U(() => {
96
+ if (r != null && r.length || typeof r == "string") {
97
+ const e = Array.isArray(r) ? r.map((s) => [{ uid: r, url: s }]) : [{ uid: r, url: r }];
98
+ k(e);
99
+ }
100
+ }, [r]);
101
+ const { t: P } = Re(be), ue = ee(
102
+ () => l ? {
103
+ required: l,
104
+ validator: (e, s, a) => {
105
+ x || i != null && i.length ? a() : a(`${o ?? ""} ${P("err.validation.required")}`);
106
+ }
107
+ } : void 0,
108
+ [l, x, i == null ? void 0 : i.length, o, P]
109
+ ), W = j ?? P("message.fileUploadMessage2"), H = ee(
110
+ () => /* @__PURE__ */ t.jsx(
111
+ Oe,
112
+ {
113
+ showLoadingIndicator: T,
114
+ _buttonTitle: W,
115
+ buttonSize: u,
116
+ buttonType: m,
117
+ fileList: i,
118
+ hidePreview: w,
119
+ icon: b,
120
+ loading: y,
121
+ listType: F,
122
+ maxCount: C,
123
+ onChangeFile: V,
124
+ onRemove: R,
125
+ showButtonText: g,
126
+ handlePreview: de,
127
+ setFileList: k
128
+ }
129
+ ),
130
+ [
131
+ T,
132
+ W,
133
+ u,
134
+ m,
135
+ i,
136
+ w,
137
+ b,
138
+ y,
139
+ F,
140
+ C,
141
+ V,
142
+ R,
143
+ g
144
+ ]
145
+ );
146
+ ce.current = H.props.beforeUpload;
147
+ const [ge, L] = h(0), [xe, G] = h(0), [D, he] = h();
148
+ U(() => {
149
+ const e = setTimeout(() => {
150
+ D && localStorage.setItem("cropper.box", JSON.stringify(D));
151
+ }, 400);
152
+ return () => clearTimeout(e);
153
+ }, [D]), U(() => {
154
+ x || (L(0), G(0));
155
+ }, [x]);
156
+ const K = q(async () => {
157
+ var s;
158
+ const e = (s = n == null ? void 0 : n.current) == null ? void 0 : s.cropper;
159
+ if (e) {
160
+ const { width: a, height: d } = e.getCroppedCanvas();
161
+ he(e.getCropBoxData()), L(a), G(d);
162
+ }
163
+ }, []);
164
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
165
+ /* @__PURE__ */ t.jsx(
166
+ Se,
167
+ {
168
+ label: o,
169
+ ...E,
170
+ name: p,
171
+ className: "mb-0",
172
+ rules: [ue, ...E.rules ?? []],
173
+ children: H
174
+ }
175
+ ),
176
+ /* @__PURE__ */ t.jsxs(
177
+ Z,
178
+ {
179
+ open: !!x,
180
+ maskClosable: !1,
181
+ onOk: pe,
182
+ closable: !1,
183
+ onCancel: fe,
184
+ children: [
185
+ /* @__PURE__ */ t.jsx(
186
+ Ie,
187
+ {
188
+ ref: n,
189
+ src: x,
190
+ cropmove: K,
191
+ viewMode: 1,
192
+ aspectRatio: S,
193
+ cropend: () => me()
194
+ }
195
+ ),
196
+ /* @__PURE__ */ t.jsx("p", { className: "text-center", children: [ge, xe].join(" ⨉ ") }),
197
+ /* @__PURE__ */ t.jsxs("div", { className: "mt-2 d-flex justify-content-center", children: [
198
+ /* @__PURE__ */ t.jsx(
199
+ z,
200
+ {
201
+ size: "large",
202
+ icon: /* @__PURE__ */ t.jsx(Fe, {}),
203
+ onClick: () => J(!0)
204
+ }
205
+ ),
206
+ /* @__PURE__ */ t.jsx(
207
+ z,
208
+ {
209
+ size: "large",
210
+ icon: /* @__PURE__ */ t.jsx(Ne, {}),
211
+ onClick: () => J(!1)
212
+ }
213
+ )
214
+ ] })
215
+ ]
216
+ }
217
+ ),
218
+ /* @__PURE__ */ t.jsx(
219
+ Z,
220
+ {
221
+ open: ae,
222
+ title: oe,
223
+ footer: null,
224
+ onCancel: le,
225
+ children: /* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx("img", { alt: "example", style: { maxWidth: "400px" }, src: ne }) })
226
+ }
227
+ )
228
+ ] });
229
+ }, Oe = ({
230
+ _buttonTitle: r,
231
+ buttonSize: l,
232
+ buttonType: m,
233
+ fileList: o,
234
+ hidePreview: p,
235
+ icon: f,
236
+ loading: S,
237
+ maxCount: j,
238
+ onChangeFile: w,
239
+ onRemove: u,
240
+ showButtonText: g,
241
+ handlePreview: B,
242
+ setFileList: b,
243
+ showLoadingIndicator: y,
244
+ listType: C = "picture"
245
+ }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs(
246
+ ve,
247
+ {
248
+ accept: "image/x-png,image/gif,image/jpeg",
249
+ fileList: o,
250
+ defaultFileList: o,
251
+ onChange: () => {
252
+ },
253
+ className: (o.length >= j ? " hide-upload " : "") + " mb-0",
254
+ multiple: !1,
255
+ onPreview: p ? void 0 : B,
256
+ onDrop: (c) => (w(c.dataTransfer.files.item(0)), !1),
257
+ listType: C,
258
+ showUploadList: !p,
259
+ onRemove: (c) => {
260
+ const R = o.filter((F) => c.uid !== F.uid);
261
+ u == null || u(c), b(R);
262
+ },
263
+ beforeUpload: async (c) => (w(c), !1),
264
+ maxCount: j,
265
+ children: [
266
+ y && /* @__PURE__ */ t.jsx(Ue, {}),
267
+ /* @__PURE__ */ t.jsx("div", { className: "d-flex flex-column", children: o.length < j && (C === "picture-circle" ? /* @__PURE__ */ t.jsx(re, {}) : /* @__PURE__ */ t.jsx(
268
+ z,
269
+ {
270
+ loading: S,
271
+ tooltip: g ? void 0 : r,
272
+ size: l,
273
+ icon: f,
274
+ type: g ? m : "text",
275
+ children: g ? r : void 0
276
+ }
277
+ )) })
278
+ ]
279
+ },
280
+ o.length
281
+ ) });
282
+ export {
283
+ Oe as UploadComponent,
284
+ He as default
285
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("../../../../_virtual/jsx-runtime.cjs"),n=require("antd"),i=require("react"),l=({button:m,disabled:c,...t})=>{const a=i.useMemo(()=>{const{enum:e,translations:o}=t;if(e){const r=[];for(const u of e)r.push({key:u,value:(o==null?void 0:o[u])??u.toUpperCase()});return r}else return t.values},[t]),x=m?n.Radio.Button:n.Radio;return s.jsxRuntimeExports.jsx(n.Form.Item,{...t,children:s.jsxRuntimeExports.jsx(n.Radio.Group,{disabled:c,children:a.map(({key:e,value:o})=>s.jsxRuntimeExports.jsx(x,{value:e,children:o},e))})})},R=i.memo(l);module.exports=R;
@@ -0,0 +1,19 @@
1
+ import { j as u } from "../../../../_virtual/jsx-runtime.js";
2
+ import { Radio as m, Form as i } from "antd";
3
+ import { memo as p, useMemo as d } from "react";
4
+ const f = ({ button: s, disabled: a, ...n }) => {
5
+ const l = d(() => {
6
+ const { enum: e, translations: o } = n;
7
+ if (e) {
8
+ const r = [];
9
+ for (const t of e)
10
+ r.push({ key: t, value: (o == null ? void 0 : o[t]) ?? t.toUpperCase() });
11
+ return r;
12
+ } else
13
+ return n.values;
14
+ }, [n]), c = s ? m.Button : m;
15
+ return /* @__PURE__ */ u.jsx(i.Item, { ...n, children: /* @__PURE__ */ u.jsx(m.Group, { disabled: a, children: l.map(({ key: e, value: o }) => /* @__PURE__ */ u.jsx(c, { value: e, children: o }, e)) }) });
16
+ }, h = p(f);
17
+ export {
18
+ h as default
19
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../../_virtual/jsx-runtime.cjs"),o=require("antd"),u=require("react"),j=require("../select/SelectComponent.cjs"),F=({className:a,onSelect:d,label:p,required:S,name:s,mode:l,items:t})=>{const r=o.Form.useFormInstance(),[n,x]=u.useState(!0);return u.useEffect(()=>{if(t&&n){const e=t.filter(i=>i.alreadySelected).map(i=>i.id);r==null||r.setFieldsValue({[s]:l==="multiple"?e:e==null?void 0:e[0]}),x(!1)}},[n,r,t,l,s]),c.jsxRuntimeExports.jsx(j,{required:S,label:p,mode:l,className:a,name:s,onSelect:d,items:t,itemBuilder:e=>c.jsxRuntimeExports.jsx(o.Select.Option,{value:e.id,disabled:e.lock,children:e.label},e.id)})};exports.SelectFieldInReport=F;
@@ -0,0 +1,30 @@
1
+ import { j as c } from "../../../../_virtual/jsx-runtime.js";
2
+ import { Form as f, Select as m } from "antd";
3
+ import { useState as x, useEffect as F } from "react";
4
+ import S from "../select/SelectComponent.js";
5
+ const R = ({ className: n, onSelect: p, label: u, required: a, name: l, mode: o, items: e }) => {
6
+ const r = f.useFormInstance(), [s, d] = x(!0);
7
+ return F(() => {
8
+ if (e && s) {
9
+ const t = e.filter((i) => i.alreadySelected).map((i) => i.id);
10
+ r == null || r.setFieldsValue({
11
+ [l]: o === "multiple" ? t : t == null ? void 0 : t[0]
12
+ }), d(!1);
13
+ }
14
+ }, [s, r, e, o, l]), /* @__PURE__ */ c.jsx(
15
+ S,
16
+ {
17
+ required: a,
18
+ label: u,
19
+ mode: o,
20
+ className: n,
21
+ name: l,
22
+ onSelect: p,
23
+ items: e,
24
+ itemBuilder: (t) => /* @__PURE__ */ c.jsx(m.Option, { value: t.id, disabled: t.lock, children: t.label }, t.id)
25
+ }
26
+ );
27
+ };
28
+ export {
29
+ R as SelectFieldInReport
30
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("../../../../_virtual/jsx-runtime.cjs"),s=require("antd"),r=s.List.Item.Meta,x=s.List.Item,o=({title:e,description:i,children:n})=>t.jsxRuntimeExports.jsxs(x,{className:"",children:[t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(r,{title:e,description:i})}),t.jsxRuntimeExports.jsx("div",{className:"float-right",children:n})]});module.exports=o;
@@ -0,0 +1,13 @@
1
+ import { j as t } from "../../../../_virtual/jsx-runtime.js";
2
+ import { List as s } from "antd";
3
+ const r = s.Item.Meta, a = s.Item, n = ({
4
+ title: e,
5
+ description: o,
6
+ children: m
7
+ }) => /* @__PURE__ */ t.jsxs(a, { className: "", children: [
8
+ /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(r, { title: e, description: o }) }),
9
+ /* @__PURE__ */ t.jsx("div", { className: "float-right", children: m })
10
+ ] });
11
+ export {
12
+ n as default
13
+ };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("../../../../_virtual/jsx-runtime.cjs"),x=require("antd"),k=require("react"),H=require("../../../locale/hooks/translation-constants.cjs"),P=require("../tooltip/TooltipComponent.cjs"),b=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs");function B({label:a,rules:E=[],required:R,placeholder:m,notSearch:S,children:u,readOnly:n,items:o,dropdownRender:y,itemBuilder:w,loading:d,showLoadingInEmptyIndicator:T,nameFieldInArray:h="name",innerRef:q,tooltip:L,filterOption:N,tagRender:_,...s}){const{t:A}=b.useTranslation(H.TRANSLATION_NAMESPACE),I=k.useCallback(e=>{const t=typeof e=="string"||typeof e=="number"?e:e==null?void 0:e.id,c=typeof e=="string"||typeof e=="number"?e:e==null?void 0:e[h];return r.jsxRuntimeExports.jsx("option",{value:t,children:r.jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:c}})},t)},[h]);return r.jsxRuntimeExports.jsx(x.ConfigProvider,{renderEmpty:T&&d?()=>r.jsxRuntimeExports.jsx(x.Spin,{}):void 0,children:r.jsxRuntimeExports.jsx(P,{title:L,children:r.jsxRuntimeExports.jsx(x.Form.Item,{label:a,name:s.name,help:s.help,className:s.className,rules:[...E,{required:R,message:`${a??m??""} ${A("err.validation.required")}`}],children:r.jsxRuntimeExports.jsx(x.Select,{ref:q,loading:d,open:n?!1:void 0,onChange:!n&&s.onChange,allowClear:!n&&s.allowClear,showSearch:!S,className:`max-width ${n?"readOnly":""}`,...s,tagRender:_,placeholder:m??a,filterOption:N??((e,t)=>{var c,j,f,C;try{const i=(f=(j=(c=t==null?void 0:t.children)==null?void 0:c.props)==null?void 0:j.dangerouslySetInnerHTML)==null?void 0:f.__html,M=e.toLowerCase().split(/\s+/),g=(t==null?void 0:t.children)??"",p=typeof g=="string"?g.toLowerCase():typeof i=="string"?i.toLowerCase():"",O=(((C=t==null?void 0:t.value)==null?void 0:C.toString())??"").toLowerCase(),$=p.replace(/\s/g,"");return M.every(l=>p.indexOf(l)>=0||O.indexOf(l)>=0||$.indexOf(l)>=0)}catch(i){return console.log(i),!0}}),dropdownRender:y,children:u===null?void 0:u??(o&&(o==null?void 0:o.map(w??I)))})})})})}module.exports=B;
@@ -0,0 +1,89 @@
1
+ import { j as t } from "../../../../_virtual/jsx-runtime.js";
2
+ import { ConfigProvider as H, Spin as P, Form as R, Select as b } from "antd";
3
+ import { useCallback as q } from "react";
4
+ import { TRANSLATION_NAMESPACE as B } from "../../../locale/hooks/translation-constants.js";
5
+ import D from "../tooltip/TooltipComponent.js";
6
+ import { useTranslation as F } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
7
+ function Q({
8
+ label: m,
9
+ rules: j = [],
10
+ required: y,
11
+ placeholder: l,
12
+ notSearch: w,
13
+ children: a,
14
+ readOnly: o,
15
+ items: s,
16
+ dropdownRender: u,
17
+ itemBuilder: L,
18
+ loading: d,
19
+ showLoadingInEmptyIndicator: T,
20
+ nameFieldInArray: h = "name",
21
+ innerRef: N,
22
+ tooltip: _,
23
+ filterOption: E,
24
+ tagRender: A,
25
+ ...n
26
+ }) {
27
+ const { t: I } = F(B), M = q(
28
+ (e) => {
29
+ const r = typeof e == "string" || typeof e == "number" ? e : e == null ? void 0 : e.id, c = typeof e == "string" || typeof e == "number" ? e : e == null ? void 0 : e[h];
30
+ return /* @__PURE__ */ t.jsx("option", { value: r, children: /* @__PURE__ */ t.jsx("div", { dangerouslySetInnerHTML: { __html: c } }) }, r);
31
+ },
32
+ [h]
33
+ );
34
+ return /* @__PURE__ */ t.jsx(
35
+ H,
36
+ {
37
+ renderEmpty: T && d ? () => /* @__PURE__ */ t.jsx(P, {}) : void 0,
38
+ children: /* @__PURE__ */ t.jsx(D, { title: _, children: /* @__PURE__ */ t.jsx(
39
+ R.Item,
40
+ {
41
+ label: m,
42
+ name: n.name,
43
+ help: n.help,
44
+ className: n.className,
45
+ rules: [
46
+ ...j,
47
+ {
48
+ required: y,
49
+ message: `${m ?? l ?? ""} ${I(
50
+ "err.validation.required"
51
+ )}`
52
+ }
53
+ ],
54
+ children: /* @__PURE__ */ t.jsx(
55
+ b,
56
+ {
57
+ ref: N,
58
+ loading: d,
59
+ open: o ? !1 : void 0,
60
+ onChange: !o && n.onChange,
61
+ allowClear: !o && n.allowClear,
62
+ showSearch: !w,
63
+ className: `max-width ${o ? "readOnly" : ""}`,
64
+ ...n,
65
+ tagRender: A,
66
+ placeholder: l ?? m,
67
+ filterOption: E ?? ((e, r) => {
68
+ var c, x, C, g;
69
+ try {
70
+ const i = (C = (x = (c = r == null ? void 0 : r.children) == null ? void 0 : c.props) == null ? void 0 : x.dangerouslySetInnerHTML) == null ? void 0 : C.__html, O = e.toLowerCase().split(/\s+/), p = (r == null ? void 0 : r.children) ?? "", S = typeof p == "string" ? p.toLowerCase() : typeof i == "string" ? i.toLowerCase() : "", $ = (((g = r == null ? void 0 : r.value) == null ? void 0 : g.toString()) ?? "").toLowerCase(), k = S.replace(/\s/g, "");
71
+ return O.every(
72
+ (f) => S.indexOf(f) >= 0 || $.indexOf(f) >= 0 || k.indexOf(f) >= 0
73
+ );
74
+ } catch (i) {
75
+ return console.log(i), !0;
76
+ }
77
+ }),
78
+ dropdownRender: u,
79
+ children: a === null ? void 0 : a ?? (s && (s == null ? void 0 : s.map(L ?? M)))
80
+ }
81
+ )
82
+ }
83
+ ) })
84
+ }
85
+ );
86
+ }
87
+ export {
88
+ Q as default
89
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),o=require("../../../../_virtual/ShowMoreText.cjs");;/* empty css */const e=r=>t.jsxRuntimeExports.jsx(o,{...r});exports.ShowMore=e;exports.default=e;
@@ -0,0 +1,8 @@
1
+ import { j as r } from "../../../../_virtual/jsx-runtime.js";
2
+ import t from "../../../../_virtual/ShowMoreText.js";
3
+ /* empty css */
4
+ const p = (o) => /* @__PURE__ */ r.jsx(t, { ...o });
5
+ export {
6
+ p as ShowMore,
7
+ p as default
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/jsx-runtime.cjs"),c=require("antd"),f=require("../../../context/WindowDimension.cjs"),u=require("react"),a=require("../../../../node_modules/react-router/dist/development/chunk-K6AXKMTT.cjs"),{Content:v}=c.Layout,g=({positionOfRoute:i,initialKey:s="*",tabs:x,className:l="",mode:d="default"})=>{const[m,p]=u.useState(s),n=a.useNavigate(),h=t=>{n(t)},r=a.useLocation();u.useEffect(()=>{const t=r.pathname.split("/")[i];p(t??""),t||n(s,{replace:!0})},[s,r.pathname,n,i]);const{isDesktop:j}=f(),o=d==="side"&&j,b=o?"left":"top",R=o?"d-flex h-100":"";return e.jsxRuntimeExports.jsxs("div",{className:`${l} ${R}`,children:[e.jsxRuntimeExports.jsx(c.Tabs,{type:"card",tabPosition:b,activeKey:m,onChange:h,children:x.map(({key:t,label:T})=>e.jsxRuntimeExports.jsx(c.Tabs.TabPane,{tab:T},t))}),e.jsxRuntimeExports.jsx(v,{className:`max-height ${o?"overflow-auto":""}`,children:e.jsxRuntimeExports.jsx(a.Outlet,{})})]})};exports.TabViewWithRoute=g;
@@ -0,0 +1,37 @@
1
+ import { j as e } from "../../../../_virtual/jsx-runtime.js";
2
+ import { Tabs as r, Layout as b } from "antd";
3
+ import v from "../../../context/WindowDimension.js";
4
+ import { useState as g, useEffect as w } from "react";
5
+ import { useNavigate as y, useLocation as N, Outlet as P } from "../../../../node_modules/react-router/dist/development/chunk-K6AXKMTT.js";
6
+ const { Content: S } = b, E = ({
7
+ positionOfRoute: n,
8
+ initialKey: s = "*",
9
+ tabs: i,
10
+ className: m = "",
11
+ mode: l = "default"
12
+ }) => {
13
+ const [p, u] = g(s), o = y(), d = (t) => {
14
+ o(t);
15
+ }, c = N();
16
+ w(() => {
17
+ const t = c.pathname.split("/")[n];
18
+ u(t ?? ""), t || o(s, { replace: !0 });
19
+ }, [s, c.pathname, o, n]);
20
+ const { isDesktop: f } = v(), a = l === "side" && f, h = a ? "left" : "top", x = a ? "d-flex h-100" : "";
21
+ return /* @__PURE__ */ e.jsxs("div", { className: `${m} ${x}`, children: [
22
+ /* @__PURE__ */ e.jsx(
23
+ r,
24
+ {
25
+ type: "card",
26
+ tabPosition: h,
27
+ activeKey: p,
28
+ onChange: d,
29
+ children: i.map(({ key: t, label: j }) => /* @__PURE__ */ e.jsx(r.TabPane, { tab: j }, t))
30
+ }
31
+ ),
32
+ /* @__PURE__ */ e.jsx(S, { className: `max-height ${a ? "overflow-auto" : ""}`, children: /* @__PURE__ */ e.jsx(P, {}) })
33
+ ] });
34
+ };
35
+ export {
36
+ E as TabViewWithRoute
37
+ };
@@ -0,0 +1 @@
1
+ "use strict";const a=require("../../../../_virtual/jsx-runtime.cjs"),c=require("antd"),l=require("react");function d({minusHeight:h,onRow:m,count:g=1,onPageSizeChanged:x,pagination:e=!1,rowKey:n="id",columns:t,className:o,scroll:s,...i}){const r=l.useMemo(()=>t.filter(u=>!u.hidden),[t]);return a.jsxRuntimeExports.jsx(c.Table,{className:`custom-scroll ${o}`,style:{width:"100%"},columns:r,rowKey:n,...i,scroll:s||{x:!0},pagination:e&&{...e,hideOnSinglePage:!0,showSizeChanger:!1}})}module.exports=d;
@@ -0,0 +1,40 @@
1
+ import { j as l } from "../../../../_virtual/jsx-runtime.js";
2
+ import { Table as m } from "antd";
3
+ import { useMemo as u } from "react";
4
+ function j({
5
+ minusHeight: f,
6
+ onRow: c,
7
+ count: d = 1,
8
+ onPageSizeChanged: h,
9
+ pagination: e = !1,
10
+ rowKey: s = "id",
11
+ columns: o,
12
+ className: n,
13
+ scroll: t,
14
+ ...i
15
+ }) {
16
+ const r = u(() => o.filter((a) => !a.hidden), [o]);
17
+ return /* @__PURE__ */ l.jsx(
18
+ m,
19
+ {
20
+ className: `custom-scroll ${n}`,
21
+ style: { width: "100%" },
22
+ columns: r,
23
+ rowKey: s,
24
+ ...i,
25
+ scroll: t || {
26
+ // y: `calc(100vh - ${minusHeight ?? 0}px)`,
27
+ x: !0
28
+ // scrollToFirstRowOnChange: true,
29
+ },
30
+ pagination: e && {
31
+ ...e,
32
+ hideOnSinglePage: !0,
33
+ showSizeChanger: !1
34
+ }
35
+ }
36
+ );
37
+ }
38
+ export {
39
+ j as default
40
+ };
@@ -0,0 +1 @@
1
+ "use strict";const a=require("../../../../_virtual/jsx-runtime.cjs"),p=require("antd"),x=require("../../../locale/hooks/translation-constants.cjs"),T=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),q=({onClick:n,clickable:o,colorFunction:s,translation:i,value:e})=>{var r;const t=s==null?void 0:s(e),{t:c}=T.useTranslation(x.TRANSLATION_NAMESPACE),u=p.Tag;return a.jsxRuntimeExports.jsx(u,{onClick:n,color:t==null?void 0:t.color,icon:t==null?void 0:t.icon,style:{color:t==null?void 0:t.text,cursor:o?"pointer":void 0},children:(r=c(i[e]))==null?void 0:r.toUpperCase()})};module.exports=q;
@@ -0,0 +1,30 @@
1
+ import { j as f } from "../../../../_virtual/jsx-runtime.js";
2
+ import { Tag as x } from "antd";
3
+ import { TRANSLATION_NAMESPACE as T } from "../../../locale/hooks/translation-constants.js";
4
+ import { useTranslation as A } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
5
+ const C = ({
6
+ onClick: e,
7
+ clickable: m,
8
+ colorFunction: o,
9
+ translation: p,
10
+ value: r
11
+ }) => {
12
+ var s;
13
+ const t = o == null ? void 0 : o(r), { t: i } = A(T), n = x;
14
+ return /* @__PURE__ */ f.jsx(
15
+ n,
16
+ {
17
+ onClick: e,
18
+ color: t == null ? void 0 : t.color,
19
+ icon: t == null ? void 0 : t.icon,
20
+ style: {
21
+ color: t == null ? void 0 : t.text,
22
+ cursor: m ? "pointer" : void 0
23
+ },
24
+ children: (s = i(p[r])) == null ? void 0 : s.toUpperCase()
25
+ }
26
+ );
27
+ };
28
+ export {
29
+ C as default
30
+ };
@@ -0,0 +1,5 @@
1
+ import { Typography as o } from "antd";
2
+ const { Text: r } = o;
3
+ export {
4
+ r as Text
5
+ };
@@ -0,0 +1,5 @@
1
+ import { Typography as o } from "antd";
2
+ const { Title: r } = o;
3
+ export {
4
+ r as Title
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("../../../../_virtual/jsx-runtime.cjs"),a=require("antd"),x=require("react"),M=require("../../../locale/hooks/translation-constants.cjs"),P=require("../tooltip/TooltipComponent.cjs"),S=require("./TextField.cjs"),L=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),O=x.forwardRef(function({type:b,required:i,label:e,rules:c=[],placeholder:r,onEnter:m,form:j,nextFocus:T,min:u,moneyField:s,addonAfter:q,minLength:E,defaultValue:R,pattern:f,disabled:l,readOnly:N,onChange:$,value:g,max:A,addonBefore:I,size:C,isInt:d=!1,tooltip:h,...w},B){const{t:p}=L.useTranslation(M.TRANSLATION_NAMESPACE),F=x.useMemo(()=>[...c,{required:i,message:`${e??r??""} ${p("err.validation.required")}`}],[c,e,r,p,i]);return o.jsxRuntimeExports.jsx(P,{title:h,children:o.jsxRuntimeExports.jsx(a.Form.Item,{...w,label:e,rules:F,children:o.jsxRuntimeExports.jsx(a.InputNumber,{ref:B,disabled:l,defaultValue:R,value:g,readOnly:N,addonBefore:I,minLength:E,addonAfter:q,step:d?1:void 0,pattern:d?"d*":f,onChange:$,onPressEnter:t=>S.onEnterInternalTextField(t,T,j,m),className:"max-width",min:u===null?void 0:u??0,max:A,type:s?void 0:"number",size:C,formatter:s?t=>{if(t.includes(".")){const n=`${t}`.split(".");return n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),n.join(".")}else return`${t}`.replace(/\B(?=(\d{3})+(?!\d))/g,",")}:void 0,parser:s?t=>t==null?void 0:t.replace(/\$\s?|(,*)/g,""):void 0,placeholder:r??e})})})});module.exports=O;