@kingteza/crud-component 1.0.4 → 1.0.6

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 (322) hide show
  1. package/dist/App.d.ts +2 -0
  2. package/dist/_virtual/_commonjsHelpers.cjs +1 -0
  3. package/dist/_virtual/_commonjsHelpers.js +6 -1
  4. package/dist/_virtual/advancedFormat.cjs +1 -0
  5. package/dist/_virtual/advancedFormat.js +7 -1
  6. package/dist/_virtual/advancedFormat2.js +4 -1
  7. package/dist/_virtual/customParseFormat.cjs +1 -0
  8. package/dist/_virtual/customParseFormat.js +7 -1
  9. package/dist/_virtual/customParseFormat2.js +4 -1
  10. package/dist/_virtual/dayjs.min.cjs +1 -0
  11. package/dist/_virtual/dayjs.min.js +7 -1
  12. package/dist/_virtual/dayjs.min2.js +4 -1
  13. package/dist/_virtual/index.cjs +1 -0
  14. package/dist/_virtual/index.js +7 -1
  15. package/dist/_virtual/index2.cjs +1 -0
  16. package/dist/_virtual/index2.js +7 -1
  17. package/dist/_virtual/index3.cjs +1 -0
  18. package/dist/_virtual/index3.js +4 -1
  19. package/dist/_virtual/index4.js +4 -1
  20. package/dist/_virtual/index5.cjs +1 -0
  21. package/dist/_virtual/index5.js +4 -1
  22. package/dist/_virtual/jsx-runtime.cjs +1 -0
  23. package/dist/_virtual/jsx-runtime.js +5 -1
  24. package/dist/_virtual/jsx-runtime2.cjs +1 -0
  25. package/dist/_virtual/jsx-runtime2.js +4 -1
  26. package/dist/_virtual/localeData.cjs +1 -0
  27. package/dist/_virtual/localeData.js +7 -1
  28. package/dist/_virtual/localeData2.cjs +1 -0
  29. package/dist/_virtual/localeData2.js +4 -1
  30. package/dist/_virtual/react-is.development.js +4 -1
  31. package/dist/_virtual/react-is.production.min.js +4 -1
  32. package/dist/_virtual/react-jsx-runtime.development.js +4 -1
  33. package/dist/_virtual/react-jsx-runtime.production.min.cjs +1 -0
  34. package/dist/_virtual/react-jsx-runtime.production.min.js +4 -1
  35. package/dist/_virtual/weekOfYear.cjs +1 -0
  36. package/dist/_virtual/weekOfYear.js +7 -1
  37. package/dist/_virtual/weekOfYear2.cjs +1 -0
  38. package/dist/_virtual/weekOfYear2.js +4 -1
  39. package/dist/_virtual/weekYear.cjs +1 -0
  40. package/dist/_virtual/weekYear.js +7 -1
  41. package/dist/_virtual/weekYear2.cjs +1 -0
  42. package/dist/_virtual/weekYear2.js +4 -1
  43. package/dist/_virtual/weekday.cjs +1 -0
  44. package/dist/_virtual/weekday.js +7 -1
  45. package/dist/_virtual/weekday2.cjs +1 -0
  46. package/dist/_virtual/weekday2.js +4 -1
  47. package/dist/common/index.cjs +1 -0
  48. package/dist/common/index.js +75 -1
  49. package/dist/components/common/DatePicker/DatePicker.d.ts +37 -0
  50. package/dist/components/common/DatePicker/TimePicker.d.ts +34 -0
  51. package/dist/components/common/DatePicker/index.d.ts +3 -0
  52. package/dist/components/common/appearance/Hider.d.ts +6 -0
  53. package/dist/components/common/appearance/index.d.ts +0 -0
  54. package/dist/components/common/button/Button.d.ts +12 -0
  55. package/dist/components/common/button/CloneButtonTable.d.ts +6 -0
  56. package/dist/components/common/button/DeleteButtonTable.d.ts +13 -0
  57. package/dist/components/common/button/ExportButton.d.ts +4 -0
  58. package/dist/components/common/button/HideButtonTable.d.ts +13 -0
  59. package/dist/components/common/button/ImportButton.d.ts +9 -0
  60. package/dist/components/common/button/NewButton.d.ts +12 -0
  61. package/dist/components/common/button/PrintButton.d.ts +12 -0
  62. package/dist/components/common/button/RefreshButton.d.ts +11 -0
  63. package/dist/components/common/button/UnHideButton.d.ts +14 -0
  64. package/dist/components/common/button/UpdateButtonTable.d.ts +6 -0
  65. package/dist/components/common/button/ViewButtonTable.d.ts +6 -0
  66. package/dist/components/common/button/index.d.ts +14 -0
  67. package/dist/components/common/check-box/CheckBox.d.ts +9 -0
  68. package/dist/components/common/check-box/index.d.ts +2 -0
  69. package/dist/components/common/description/DescList.d.ts +18 -0
  70. package/dist/components/common/description/DescriptionComponent.d.ts +7 -0
  71. package/dist/components/common/description/index.d.ts +3 -0
  72. package/dist/components/common/index.d.ts +22 -0
  73. package/dist/components/common/layout/VerticalSpace.d.ts +5 -0
  74. package/dist/components/common/layout/index.d.ts +2 -0
  75. package/dist/components/common/loading/LoadingIndicator.d.ts +6 -0
  76. package/dist/components/common/loading/index.d.ts +2 -0
  77. package/dist/components/common/picker/ImagePicker.d.ts +56 -0
  78. package/dist/components/common/picker/index.d.ts +2 -0
  79. package/dist/components/common/radio/RadioGroupComponent.d.ts +18 -0
  80. package/dist/components/common/radio/index.d.ts +2 -0
  81. package/dist/components/common/report/SelectFieldInReport.d.ts +16 -0
  82. package/dist/components/common/report/index.d.ts +3 -0
  83. package/dist/components/common/select/CustomSelectOption.d.ts +7 -0
  84. package/dist/components/common/select/SelectComponent.d.ts +21 -0
  85. package/dist/components/common/select/index.d.ts +3 -0
  86. package/dist/components/common/show-more/index.d.ts +4 -0
  87. package/dist/components/common/tab/TabViewWithRoute.d.ts +13 -0
  88. package/dist/components/common/tab/index.d.ts +2 -0
  89. package/dist/components/common/table/index.d.ts +3 -0
  90. package/dist/components/common/table/table.d.ts +19 -0
  91. package/dist/components/common/tag/StatusTag.d.ts +14 -0
  92. package/dist/components/common/tag/index.d.ts +2 -0
  93. package/dist/components/common/text/index.d.ts +3 -0
  94. package/dist/components/common/text/title/TitleWithHeadTitle.d.ts +7 -0
  95. package/dist/components/common/text/title/index.d.ts +1 -0
  96. package/dist/components/common/text-field/NumberField.d.ts +13 -0
  97. package/dist/components/common/text-field/PhoneNumberField.d.ts +4 -0
  98. package/dist/components/common/text-field/TextArea.d.ts +17 -0
  99. package/dist/components/common/text-field/TextField.d.ts +27 -0
  100. package/dist/components/common/text-field/index.d.ts +5 -0
  101. package/dist/components/common/tooltip/TooltipComponent.d.ts +5 -0
  102. package/dist/components/common/tooltip/index.d.ts +2 -0
  103. package/dist/components/common/wizard/WizardResult.d.ts +16 -0
  104. package/dist/components/common/wizard/WizardViewForm.d.ts +24 -0
  105. package/dist/components/common/wizard/index.d.ts +3 -0
  106. package/dist/components/crud/CrudComponent.d.ts +237 -0
  107. package/dist/components/crud/CrudField.d.ts +4 -0
  108. package/dist/components/crud/CrudForm.d.ts +14 -0
  109. package/dist/components/crud/CrudFormWizard.d.ts +14 -0
  110. package/dist/components/crud/CrudReportComponent.d.ts +44 -0
  111. package/dist/components/crud/CrudSearchComponent.d.ts +21 -0
  112. package/dist/components/crud/FileCrudField.d.ts +25 -0
  113. package/dist/components/crud/ImageCrudField.d.ts +38 -0
  114. package/dist/components/crud/import/CrudImportButton.d.ts +3 -0
  115. package/dist/components/crud/import/CrudImportComponent.d.ts +14 -0
  116. package/dist/components/crud/index.d.ts +15 -0
  117. package/dist/components/crud/view/CrudDecListView.d.ts +14 -0
  118. package/dist/components/crud/view/CrudViewer.d.ts +43 -0
  119. package/dist/components/crud/view/CrudViewerUtil.d.ts +2 -0
  120. package/dist/components/crud/view/index.d.ts +5 -0
  121. package/dist/context/WindowDimension.d.ts +4 -0
  122. package/dist/index.cjs +1 -0
  123. package/dist/index.d.ts +4 -63
  124. package/dist/index.js +32 -1
  125. package/dist/locale/hooks/translation-constants.d.ts +1 -0
  126. package/dist/locale/index.d.ts +69 -0
  127. package/dist/locale/translations/en.d.ts +58 -0
  128. package/dist/main.d.ts +0 -0
  129. package/dist/src/components/common/DatePicker/DatePicker.cjs +1 -0
  130. package/dist/src/components/common/DatePicker/DatePicker.js +88 -0
  131. package/dist/src/components/common/DatePicker/TimePicker.cjs +1 -0
  132. package/dist/src/components/common/DatePicker/TimePicker.js +78 -0
  133. package/dist/src/components/common/appearance/Hider.cjs +1 -0
  134. package/dist/src/components/common/appearance/Hider.js +5 -0
  135. package/dist/src/components/common/button/Button.cjs +1 -0
  136. package/dist/src/components/common/button/Button.js +64 -0
  137. package/dist/src/components/common/button/CloneButtonTable.cjs +1 -0
  138. package/dist/src/components/common/button/CloneButtonTable.js +20 -0
  139. package/dist/src/components/common/button/DeleteButtonTable.cjs +1 -0
  140. package/dist/src/components/common/button/DeleteButtonTable.js +68 -0
  141. package/dist/src/components/common/button/ExportButton.cjs +1 -0
  142. package/dist/src/components/common/button/ExportButton.js +27 -0
  143. package/dist/src/components/common/button/HideButtonTable.cjs +1 -0
  144. package/dist/src/components/common/button/HideButtonTable.js +68 -0
  145. package/dist/src/components/common/button/ImportButton.cjs +1 -0
  146. package/dist/src/components/common/button/ImportButton.js +56 -0
  147. package/dist/src/components/common/button/NewButton.cjs +1 -0
  148. package/dist/src/components/common/button/NewButton.js +24 -0
  149. package/dist/src/components/common/button/PrintButton.cjs +1 -0
  150. package/dist/src/components/common/button/PrintButton.js +26 -0
  151. package/dist/src/components/common/button/RefreshButton.cjs +1 -0
  152. package/dist/src/components/common/button/RefreshButton.js +24 -0
  153. package/dist/src/components/common/button/UnHideButton.cjs +1 -0
  154. package/dist/src/components/common/button/UnHideButton.js +70 -0
  155. package/dist/src/components/common/button/UpdateButtonTable.cjs +1 -0
  156. package/dist/src/components/common/button/UpdateButtonTable.js +20 -0
  157. package/dist/src/components/common/button/ViewButtonTable.cjs +1 -0
  158. package/dist/src/components/common/button/ViewButtonTable.js +20 -0
  159. package/dist/src/components/common/check-box/CheckBox.cjs +1 -0
  160. package/dist/src/components/common/check-box/CheckBox.js +40 -0
  161. package/dist/src/components/common/description/DescList.cjs +1 -0
  162. package/dist/src/components/common/description/DescList.js +16 -0
  163. package/dist/src/components/common/layout/VerticalSpace.cjs +1 -0
  164. package/dist/src/components/common/layout/VerticalSpace.js +6 -0
  165. package/dist/src/components/common/loading/LoadingIndicator.cjs +1 -0
  166. package/dist/src/components/common/loading/LoadingIndicator.js +24 -0
  167. package/dist/src/components/common/picker/ImagePicker.cjs +1 -0
  168. package/dist/src/components/common/picker/ImagePicker.js +282 -0
  169. package/dist/src/components/common/radio/RadioGroupComponent.cjs +1 -0
  170. package/dist/src/components/common/radio/RadioGroupComponent.js +19 -0
  171. package/dist/src/components/common/report/SelectFieldInReport.cjs +1 -0
  172. package/dist/src/components/common/report/SelectFieldInReport.js +30 -0
  173. package/dist/src/components/common/select/CustomSelectOption.cjs +1 -0
  174. package/dist/src/components/common/select/CustomSelectOption.js +13 -0
  175. package/dist/src/components/common/select/SelectComponent.cjs +1 -0
  176. package/dist/src/components/common/select/SelectComponent.js +89 -0
  177. package/dist/src/components/common/show-more/index.cjs +1 -0
  178. package/dist/src/components/common/show-more/index.js +8 -0
  179. package/dist/src/components/common/tab/TabViewWithRoute.cjs +1 -0
  180. package/dist/src/components/common/tab/TabViewWithRoute.js +38 -0
  181. package/dist/src/components/common/table/table.cjs +1 -0
  182. package/dist/src/components/common/table/table.js +40 -0
  183. package/dist/src/components/common/tag/StatusTag.cjs +1 -0
  184. package/dist/src/components/common/tag/StatusTag.js +30 -0
  185. package/dist/src/components/common/text/index.js +5 -0
  186. package/dist/src/components/common/text/title/index.js +5 -0
  187. package/dist/src/components/common/text-field/NumberField.cjs +1 -0
  188. package/dist/src/components/common/text-field/NumberField.js +83 -0
  189. package/dist/src/components/common/text-field/PhoneNumberField.cjs +1 -0
  190. package/dist/src/components/common/text-field/PhoneNumberField.js +18 -0
  191. package/dist/src/components/common/text-field/TextArea.cjs +1 -0
  192. package/dist/src/components/common/text-field/TextArea.js +47 -0
  193. package/dist/src/components/common/text-field/TextField.cjs +1 -0
  194. package/dist/src/components/common/text-field/TextField.js +73 -0
  195. package/dist/src/components/common/tooltip/TooltipComponent.cjs +1 -0
  196. package/dist/src/components/common/tooltip/TooltipComponent.js +9 -0
  197. package/dist/src/components/common/wizard/WizardResult.cjs +1 -0
  198. package/dist/src/components/common/wizard/WizardResult.js +60 -0
  199. package/dist/src/components/common/wizard/WizardViewForm.cjs +1 -0
  200. package/dist/src/components/common/wizard/WizardViewForm.js +74 -0
  201. package/dist/src/components/crud/CrudComponent.cjs +1 -0
  202. package/dist/src/components/crud/CrudComponent.js +210 -0
  203. package/dist/src/components/crud/CrudField.cjs +1 -0
  204. package/dist/src/components/crud/CrudField.js +459 -0
  205. package/dist/src/components/crud/CrudForm.cjs +1 -0
  206. package/dist/src/components/crud/CrudForm.js +91 -0
  207. package/dist/src/components/crud/CrudFormWizard.cjs +1 -0
  208. package/dist/src/components/crud/CrudFormWizard.js +140 -0
  209. package/dist/src/components/crud/CrudReportComponent.cjs +4 -0
  210. package/dist/src/components/crud/CrudReportComponent.js +255 -0
  211. package/dist/src/components/crud/CrudSearchComponent.cjs +1 -0
  212. package/dist/src/components/crud/CrudSearchComponent.js +95 -0
  213. package/dist/src/components/crud/FileCrudField.cjs +1 -0
  214. package/dist/src/components/crud/FileCrudField.js +220 -0
  215. package/dist/src/components/crud/ImageCrudField.cjs +1 -0
  216. package/dist/src/components/crud/ImageCrudField.js +113 -0
  217. package/dist/src/components/crud/import/CrudImportButton.cjs +1 -0
  218. package/dist/src/components/crud/import/CrudImportButton.js +31 -0
  219. package/dist/src/components/crud/import/CrudImportComponent.cjs +2 -0
  220. package/dist/src/components/crud/import/CrudImportComponent.js +221 -0
  221. package/dist/src/components/crud/view/CrudDecListView.cjs +1 -0
  222. package/dist/src/components/crud/view/CrudDecListView.js +42 -0
  223. package/dist/src/components/crud/view/CrudViewer.cjs +1 -0
  224. package/dist/src/components/crud/view/CrudViewer.js +217 -0
  225. package/dist/src/components/crud/view/CrudViewerUtil.cjs +1 -0
  226. package/dist/src/components/crud/view/CrudViewerUtil.js +57 -0
  227. package/dist/src/context/WindowDimension.cjs +1 -0
  228. package/dist/src/context/WindowDimension.js +8 -0
  229. package/dist/src/locale/hooks/translation-constants.js +4 -0
  230. package/dist/src/locale/index.cjs +1 -0
  231. package/dist/src/locale/index.js +33 -0
  232. package/dist/src/locale/translations/en.cjs +1 -0
  233. package/dist/src/locale/translations/en.js +60 -0
  234. package/dist/src/util/DateUtil.cjs +1 -0
  235. package/dist/src/util/DateUtil.js +6 -0
  236. package/dist/src/util/ImageUtil.cjs +1 -0
  237. package/dist/src/util/ImageUtil.js +63 -0
  238. package/dist/src/util/NumberUtil.js +60 -0
  239. package/dist/src/util/ValidationUtil.cjs +1 -0
  240. package/dist/src/util/ValidationUtil.js +60 -0
  241. package/dist/types/DialogComponentProp.d.ts +8 -0
  242. package/dist/types/Id.d.ts +10 -0
  243. package/dist/util/DateUtil.d.ts +7 -0
  244. package/dist/util/ImageUtil.d.ts +14 -0
  245. package/dist/util/NumberUtil.d.ts +17 -0
  246. package/dist/util/ValidationUtil.d.ts +14 -0
  247. package/dist/util/index.cjs +1 -0
  248. package/dist/util/index.js +10 -1
  249. package/dist/vite-env.d.ts +1 -0
  250. package/package.json +1 -1
  251. package/dist/_virtual/FileSaver.min.js +0 -1
  252. package/dist/_virtual/ShowMoreText.js +0 -1
  253. package/dist/_virtual/index6.js +0 -1
  254. package/dist/_virtual/index7.js +0 -1
  255. package/dist/_virtual/index8.js +0 -1
  256. package/dist/_virtual/main.js +0 -1
  257. package/dist/_virtual/papaparse.min.js +0 -1
  258. package/dist/components/common/DatePicker/DatePicker.js +0 -1
  259. package/dist/components/common/DatePicker/TimePicker.js +0 -1
  260. package/dist/components/common/appearance/Hider.js +0 -1
  261. package/dist/components/common/button/Button.js +0 -1
  262. package/dist/components/common/button/CloneButtonTable.js +0 -1
  263. package/dist/components/common/button/DeleteButtonTable.js +0 -1
  264. package/dist/components/common/button/ExportButton.js +0 -1
  265. package/dist/components/common/button/HideButtonTable.js +0 -1
  266. package/dist/components/common/button/ImportButton.js +0 -1
  267. package/dist/components/common/button/NewButton.js +0 -1
  268. package/dist/components/common/button/PrintButton.js +0 -1
  269. package/dist/components/common/button/RefreshButton.js +0 -1
  270. package/dist/components/common/button/UnHideButton.js +0 -1
  271. package/dist/components/common/button/UpdateButtonTable.js +0 -1
  272. package/dist/components/common/button/ViewButtonTable.js +0 -1
  273. package/dist/components/common/check-box/CheckBox.js +0 -1
  274. package/dist/components/common/description/DescList.js +0 -1
  275. package/dist/components/common/layout/VerticalSpace.js +0 -1
  276. package/dist/components/common/loading/LoadingIndicator.js +0 -1
  277. package/dist/components/common/picker/ImagePicker.js +0 -1
  278. package/dist/components/common/radio/RadioGroupComponent.js +0 -1
  279. package/dist/components/common/report/SelectFieldInReport.js +0 -1
  280. package/dist/components/common/select/CustomSelectOption.js +0 -1
  281. package/dist/components/common/select/SelectComponent.js +0 -1
  282. package/dist/components/common/show-more/index.js +0 -1
  283. package/dist/components/common/tab/TabViewWithRoute.js +0 -1
  284. package/dist/components/common/table/table.js +0 -1
  285. package/dist/components/common/tag/StatusTag.js +0 -1
  286. package/dist/components/common/text-field/NumberField.js +0 -1
  287. package/dist/components/common/text-field/PhoneNumberField.js +0 -1
  288. package/dist/components/common/text-field/TextArea.js +0 -1
  289. package/dist/components/common/text-field/TextField.js +0 -1
  290. package/dist/components/common/tooltip/TooltipComponent.js +0 -1
  291. package/dist/components/common/wizard/WizardResult.js +0 -1
  292. package/dist/components/common/wizard/WizardViewForm.js +0 -1
  293. package/dist/components/crud/CrudComponent.js +0 -1
  294. package/dist/components/crud/CrudField.js +0 -1
  295. package/dist/components/crud/CrudForm.js +0 -1
  296. package/dist/components/crud/CrudFormWizard.js +0 -1
  297. package/dist/components/crud/CrudReportComponent.js +0 -4
  298. package/dist/components/crud/CrudSearchComponent.js +0 -1
  299. package/dist/components/crud/FileCrudField.js +0 -1
  300. package/dist/components/crud/ImageCrudField.js +0 -1
  301. package/dist/components/crud/import/CrudImportButton.js +0 -1
  302. package/dist/components/crud/import/CrudImportComponent.js +0 -2
  303. package/dist/components/crud/view/CrudDecListView.js +0 -1
  304. package/dist/components/crud/view/CrudViewer.js +0 -1
  305. package/dist/components/crud/view/CrudViewerUtil.js +0 -1
  306. package/dist/context/WindowDimension.js +0 -1
  307. package/dist/locale/index.js +0 -1
  308. package/dist/locale/translations/en.js +0 -1
  309. package/dist/util/DateUtil.js +0 -1
  310. package/dist/util/ImageUtil.js +0 -1
  311. package/dist/util/ValidationUtil.js +0 -1
  312. /package/dist/_virtual/{FileSaver.min2.js → advancedFormat2.cjs} +0 -0
  313. /package/dist/_virtual/{main2.js → customParseFormat2.cjs} +0 -0
  314. /package/dist/_virtual/{papaparse.min2.js → dayjs.min2.cjs} +0 -0
  315. /package/dist/_virtual/{ShowMoreText2.js → index4.cjs} +0 -0
  316. /package/dist/_virtual/{Truncate.js → react-is.development.cjs} +0 -0
  317. /package/dist/_virtual/{index10.js → react-is.production.min.cjs} +0 -0
  318. /package/dist/_virtual/{index9.js → react-jsx-runtime.development.cjs} +0 -0
  319. /package/dist/{components/common/text/index.js → src/components/common/text/index.cjs} +0 -0
  320. /package/dist/{components/common/text/title/index.js → src/components/common/text/title/index.cjs} +0 -0
  321. /package/dist/{locale/hooks/translation-constants.js → src/locale/hooks/translation-constants.cjs} +0 -0
  322. /package/dist/{util/NumberUtil.js → src/util/NumberUtil.cjs} +0 -0
@@ -0,0 +1,14 @@
1
+ import { default as ButtonComponent, ButtonComponentProps } from './Button';
2
+ import { default as CloneButtonTable } from './CloneButtonTable';
3
+ import { default as DeleteButtonTable } from './DeleteButtonTable';
4
+ import { ExportButton } from './ExportButton';
5
+ import { default as HideButtonTable } from './HideButtonTable';
6
+ import { ImportButton } from './ImportButton';
7
+ import { NewButton } from './NewButton';
8
+ import { PrintButton } from './PrintButton';
9
+ import { RefreshButton } from './RefreshButton';
10
+ import { default as UnHideButton } from './UnHideButton';
11
+ import { default as UpdateButtonTable } from './UpdateButtonTable';
12
+ import { default as ViewButtonTable } from './ViewButtonTable';
13
+ export { ButtonComponent, CloneButtonTable, DeleteButtonTable, ExportButton, HideButtonTable, ImportButton, NewButton, PrintButton, RefreshButton, UnHideButton, UpdateButtonTable, ViewButtonTable, };
14
+ export type { ButtonComponentProps };
@@ -0,0 +1,9 @@
1
+ import { FormItemProps } from 'antd';
2
+ import { FC } from 'react';
3
+ interface Props extends FormItemProps {
4
+ onChange?: (evt: boolean) => void;
5
+ disabled?: boolean;
6
+ switch?: boolean;
7
+ }
8
+ declare const CheckBoxComponent: FC<Props>;
9
+ export default CheckBoxComponent;
@@ -0,0 +1,2 @@
1
+ import { default as CheckBoxComponent } from './CheckBox';
2
+ export { CheckBoxComponent };
@@ -0,0 +1,18 @@
1
+ import { DescriptionsProps } from 'antd/lib/descriptions';
2
+ import { default as React, FC } from 'react';
3
+ export type DescPropsNullable = {
4
+ label?: string | React.ReactElement;
5
+ value?: any;
6
+ noFormatting?: boolean;
7
+ };
8
+ export type DescProps = {
9
+ label?: string;
10
+ value: any;
11
+ noFormatting?: boolean;
12
+ };
13
+ export interface DescListProps extends DescriptionsProps {
14
+ list: (DescPropsNullable | null | undefined | boolean)[];
15
+ keepEmptyValues?: boolean;
16
+ }
17
+ declare const DescList: FC<DescListProps>;
18
+ export default DescList;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface DescriptionComponentProps {
3
+ title: string;
4
+ description: string;
5
+ }
6
+ declare const DescriptionComponent: FC<DescriptionComponentProps>;
7
+ export default DescriptionComponent;
@@ -0,0 +1,3 @@
1
+ import { DescPropsNullable, default as DescList } from './DescList';
2
+ export { DescList };
3
+ export type { DescPropsNullable };
@@ -0,0 +1,22 @@
1
+ export { DatePickerComponent, TimePickerComponent } from './DatePicker';
2
+ export { ButtonComponent, ButtonComponent as Button, CloneButtonTable, DeleteButtonTable, ExportButton, HideButtonTable, ImportButton, NewButton, PrintButton, RefreshButton, UnHideButton, UpdateButtonTable, ViewButtonTable, } from './button';
3
+ export { CheckBoxComponent } from './check-box';
4
+ export { DescList } from './description';
5
+ export type { DescPropsNullable } from './description';
6
+ export { default as VerticalSpace } from './layout/VerticalSpace';
7
+ export { LoadingIndicator } from './loading';
8
+ export { ImagePicker } from './picker';
9
+ export { RadioGroupComponent } from './radio';
10
+ export { SelectFieldInReport } from './report';
11
+ export type { ReportSelectFieldItems } from './report';
12
+ export { SelectComponent, CustomSelectOption } from './select';
13
+ export { TabViewWithRoute } from './tab';
14
+ export { TableComponent } from './table';
15
+ export { StatusTag } from './tag';
16
+ export { Title } from './text';
17
+ export { Text } from './text';
18
+ export { ShowMore } from './show-more';
19
+ export { PhoneField, TextField, TextAreaComponent, NumberTextField, } from './text-field';
20
+ export { TooltipComponent } from './tooltip';
21
+ export { WizardResult } from './wizard';
22
+ export { WizardViewForm } from './wizard';
@@ -0,0 +1,5 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ declare const VerticalSpace: FC<PropsWithChildren & {
3
+ className?: string;
4
+ }>;
5
+ export default VerticalSpace;
@@ -0,0 +1,2 @@
1
+ import { default as VerticalSpace } from './VerticalSpace';
2
+ export { VerticalSpace };
@@ -0,0 +1,6 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ declare const LoadingIndicator: FC<PropsWithChildren<{
3
+ loading: boolean;
4
+ error?: any;
5
+ }>>;
6
+ export default LoadingIndicator;
@@ -0,0 +1,2 @@
1
+ import { default as LoadingIndicator } from './LoadingIndicator';
2
+ export { LoadingIndicator };
@@ -0,0 +1,56 @@
1
+ import { FormItemProps } from 'antd';
2
+ import { UploadFile } from 'antd/lib/upload/interface';
3
+ import { FC, ReactElement } from 'react';
4
+ import { UploadListType } from 'antd/es/upload/interface';
5
+ export declare function dataURLtoFile({ url, name }: {
6
+ url: any;
7
+ name: any;
8
+ }): File;
9
+ interface Props extends FormItemProps {
10
+ values?: string[] | string;
11
+ maxCount?: number;
12
+ onChange?: (file?: UploadFile, allFiles?: UploadFile[]) => void;
13
+ buttonTitle?: string;
14
+ listType?: UploadListType;
15
+ hidePreview?: boolean;
16
+ buttonSize?: string;
17
+ showButtonText?: boolean;
18
+ aspectRatio?: number;
19
+ showOnlyIcon?: boolean;
20
+ icon?: ReactElement;
21
+ loading?: boolean;
22
+ buttonType?: string;
23
+ onAdd?: (file?: UploadFile) => Promise<void>;
24
+ onRemove?: (file?: UploadFile) => void;
25
+ }
26
+ /**
27
+ * When submitting Uploader
28
+ * ```
29
+ * if(field === undefined)
30
+ * "There is no file uploaded"
31
+ * else if(field.fileList.length === 0)
32
+ * "The initial file is deleted"
33
+ * else if(field.fileList.length > 1)
34
+ * "A new file has been uploaded"
35
+ * ```
36
+ *
37
+ */
38
+ declare const ImagePicker: FC<Props>;
39
+ export declare const UploadComponent: FC<{
40
+ _buttonTitle: any;
41
+ buttonSize: any;
42
+ buttonType: any;
43
+ fileList: any;
44
+ hidePreview: any;
45
+ icon: any;
46
+ loading: any;
47
+ maxCount: any;
48
+ onChangeFile: any;
49
+ onRemove: any;
50
+ showButtonText: any;
51
+ handlePreview: any;
52
+ setFileList: any;
53
+ showLoadingIndicator?: boolean;
54
+ listType?: UploadListType;
55
+ }>;
56
+ export default ImagePicker;
@@ -0,0 +1,2 @@
1
+ import { default as ImagePicker } from './ImagePicker';
2
+ export { ImagePicker };
@@ -0,0 +1,18 @@
1
+ import { FormItemProps } from 'antd';
2
+ interface GeneralProps extends FormItemProps {
3
+ values: {
4
+ key: string | number | undefined;
5
+ value: string | number;
6
+ }[];
7
+ }
8
+ interface EnumProps extends FormItemProps {
9
+ enum: string[];
10
+ translations?: any;
11
+ }
12
+ type Props = (GeneralProps | EnumProps) & {
13
+ onChange?: (evt: boolean) => void;
14
+ disabled?: boolean;
15
+ button?: boolean;
16
+ };
17
+ declare const _default: import('react').NamedExoticComponent<Props>;
18
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as RadioGroupComponent } from './RadioGroupComponent';
2
+ export { RadioGroupComponent };
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ export interface ReportSelectFieldItems {
3
+ id: any;
4
+ label: string;
5
+ lock?: boolean;
6
+ alreadySelected?: boolean;
7
+ }
8
+ export declare const SelectFieldInReport: FC<{
9
+ mode?: "multiple" | "tags" | undefined;
10
+ name: string;
11
+ label: string;
12
+ className?: string;
13
+ required?: boolean;
14
+ onSelect?: (val: any) => void;
15
+ items: ReportSelectFieldItems[];
16
+ }>;
@@ -0,0 +1,3 @@
1
+ import { SelectFieldInReport, ReportSelectFieldItems } from './SelectFieldInReport';
2
+ export { SelectFieldInReport };
3
+ export type { ReportSelectFieldItems };
@@ -0,0 +1,7 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ type CustomSelectOptionProps = {
3
+ title: string;
4
+ description?: string;
5
+ };
6
+ declare const CustomSelectOption: FC<PropsWithChildren<CustomSelectOptionProps>>;
7
+ export default CustomSelectOption;
@@ -0,0 +1,21 @@
1
+ import { FormItemProps, SelectProps } from 'antd';
2
+ import { RefSelectProps } from 'antd/lib/select';
3
+ import { ReactElement } from 'react';
4
+ export type SelectTagRenderProps = SelectProps["tagRender"];
5
+ interface SelectComponentProps<T> extends SelectProps<any>, FormItemProps<any> {
6
+ children?: any[] | null;
7
+ required?: boolean;
8
+ notSearch?: boolean;
9
+ readOnly?: boolean;
10
+ status?: any;
11
+ nameFieldInArray?: string;
12
+ items?: T[];
13
+ showLoadingInEmptyIndicator?: boolean;
14
+ itemBuilder?: (t: T) => ReactElement;
15
+ dropdownRender?: (menu: ReactElement) => ReactElement;
16
+ innerRef?: React.Ref<RefSelectProps>;
17
+ filterOption?: SelectProps["filterOption"];
18
+ tagRender?: SelectTagRenderProps;
19
+ }
20
+ declare function SelectComponent<T = any>({ label, rules, required, placeholder, notSearch, children, readOnly, items, dropdownRender, itemBuilder, loading, showLoadingInEmptyIndicator, nameFieldInArray, innerRef, tooltip, filterOption, tagRender, ...props }: SelectComponentProps<T>): import("react/jsx-runtime").JSX.Element;
21
+ export default SelectComponent;
@@ -0,0 +1,3 @@
1
+ import { default as SelectComponent } from './SelectComponent';
2
+ import { default as CustomSelectOption } from './CustomSelectOption';
3
+ export { SelectComponent, CustomSelectOption };
@@ -0,0 +1,4 @@
1
+ import { ReactShowMoreTextProps } from 'react-show-more-text';
2
+ export declare const ShowMore: React.FC<ReactShowMoreTextProps>;
3
+ export type { ReactShowMoreTextProps };
4
+ export default ShowMore;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ interface TabViewWithRouteProps {
3
+ initialKey?: string;
4
+ positionOfRoute: number;
5
+ className?: string;
6
+ tabs: {
7
+ label: React.ReactNode;
8
+ key: string;
9
+ }[];
10
+ mode?: 'side' | 'default';
11
+ }
12
+ export declare const TabViewWithRoute: React.FC<TabViewWithRouteProps>;
13
+ export {};
@@ -0,0 +1,2 @@
1
+ import { TabViewWithRoute } from './TabViewWithRoute';
2
+ export { TabViewWithRoute };
@@ -0,0 +1,3 @@
1
+ import { default as TableComponent, TableComponentColumnProp, TableComponentProps } from './table';
2
+ export { TableComponent };
3
+ export type { TableComponentColumnProp, TableComponentProps };
@@ -0,0 +1,19 @@
1
+ import { ColumnsType, TableProps } from 'antd/lib/table';
2
+ import { default as React } from 'react';
3
+ export type TableComponentColumnProp<T> = {
4
+ dataIndex?: keyof T;
5
+ render?: (value: any, record: T, index: number) => React.ReactNode;
6
+ hidden?: boolean;
7
+ title?: any;
8
+ align?: 'right' | 'left';
9
+ width?: number | string;
10
+ }[] & ColumnsType<T>;
11
+ export interface TableComponentProps<T> extends TableProps<T> {
12
+ minusHeight?: number;
13
+ count?: number;
14
+ dataSource?: T[];
15
+ columns: TableComponentColumnProp<T>;
16
+ onPageSizeChanged?: (page: number, pageSize: number) => void;
17
+ }
18
+ declare function TableComponent<T>({ minusHeight, onRow, count, onPageSizeChanged, pagination, rowKey, columns, className, scroll, ...props }: TableComponentProps<T>): import("react/jsx-runtime").JSX.Element;
19
+ export default TableComponent;
@@ -0,0 +1,14 @@
1
+ import { FC, ReactElement } from 'react';
2
+ type StatusTagProps = {
3
+ translation: any;
4
+ value: string;
5
+ clickable?: boolean;
6
+ onClick?: () => void;
7
+ colorFunction?: (val: any) => {
8
+ color?: string;
9
+ text?: string;
10
+ icon?: ReactElement;
11
+ };
12
+ };
13
+ declare const StatusTag: FC<StatusTagProps>;
14
+ export default StatusTag;
@@ -0,0 +1,2 @@
1
+ import { default as StatusTag } from './StatusTag';
2
+ export { StatusTag };
@@ -0,0 +1,3 @@
1
+ import { Title } from './title';
2
+ declare const Text: import('react').ForwardRefExoticComponent<import('antd/es/typography/Text').TextProps & import('react').RefAttributes<HTMLSpanElement>>;
3
+ export { Title, Text };
@@ -0,0 +1,7 @@
1
+ import { default as React, CSSProperties, FC } from 'react';
2
+ declare const TitleWithHeadTitle: FC<{
3
+ children: string | React.ReactNode;
4
+ style?: CSSProperties;
5
+ level?: 3 | 5 | 1 | 2 | 4 | undefined;
6
+ }>;
7
+ export default TitleWithHeadTitle;
@@ -0,0 +1 @@
1
+ export declare const Title: import('react').ForwardRefExoticComponent<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>>;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { TextFieldProps } from './TextField';
3
+ interface NumberTextFieldProps extends TextFieldProps {
4
+ moneyField?: boolean;
5
+ addonAfter?: ReactNode;
6
+ minLength?: number;
7
+ isInt?: boolean;
8
+ max?: number;
9
+ pattern?: string;
10
+ min?: number | null;
11
+ }
12
+ declare const NumberTextField: import('react').ForwardRefExoticComponent<NumberTextFieldProps & import('react').RefAttributes<HTMLInputElement>>;
13
+ export default NumberTextField;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { TextFieldProps } from './TextField';
3
+ declare const PhoneNumberField: FC<TextFieldProps>;
4
+ export default PhoneNumberField;
@@ -0,0 +1,17 @@
1
+ import { FormInstance, FormItemProps } from 'antd';
2
+ import { TextAreaProps } from 'antd/lib/input';
3
+ import { InputHTMLAttributes } from 'react';
4
+ export interface TextFieldProps extends TextAreaProps, FormItemProps<any> {
5
+ type?: InputHTMLAttributes<HTMLInputElement>;
6
+ placeholder?: string;
7
+ status?: any;
8
+ onEnter?: React.KeyboardEventHandler<HTMLInputElement>;
9
+ form?: any;
10
+ nextFocus?: string;
11
+ children?: any;
12
+ name?: any;
13
+ onReset?: any;
14
+ }
15
+ export declare const onEnterInternalTextField: (e: React.KeyboardEvent<HTMLTextAreaElement>, nextFocus?: string, form?: FormInstance<any>, onEnter?: React.KeyboardEventHandler<HTMLInputElement>) => void;
16
+ declare const TextAreaComponent: React.FC<TextFieldProps>;
17
+ export default TextAreaComponent;
@@ -0,0 +1,27 @@
1
+ import { FormItemProps } from 'antd';
2
+ import { SizeType } from 'antd/es/config-provider/SizeContext';
3
+ import { FormInstance } from 'antd/lib/form/Form';
4
+ import { default as React } from 'react';
5
+ export interface TextFieldProps extends FormItemProps<any> {
6
+ type?: any;
7
+ placeholder?: string;
8
+ onEnter?: React.KeyboardEventHandler<HTMLInputElement>;
9
+ form?: FormInstance<any>;
10
+ addonAfter?: any;
11
+ addonBefore?: any;
12
+ nextFocus?: string;
13
+ autoComplete?: string;
14
+ defaultValue?: any;
15
+ readOnly?: boolean;
16
+ value?: any;
17
+ autoFocus?: boolean;
18
+ disabled?: boolean;
19
+ size?: SizeType;
20
+ loading?: boolean;
21
+ inputRef?: any;
22
+ onBlur?: any;
23
+ onChange?: (val: any) => void;
24
+ }
25
+ export declare const onEnterInternalTextField: (e: React.KeyboardEvent<HTMLInputElement>, nextFocus?: string, form?: FormInstance<any>, onEnter?: React.KeyboardEventHandler<HTMLInputElement>) => void;
26
+ declare const TextField: React.FC<TextFieldProps>;
27
+ export default TextField;
@@ -0,0 +1,5 @@
1
+ import { default as NumberTextField } from './NumberField';
2
+ import { default as PhoneField } from './PhoneNumberField';
3
+ import { default as TextField } from './TextField';
4
+ import { default as TextAreaComponent } from './TextArea';
5
+ export { NumberTextField, PhoneField, TextField, TextAreaComponent };
@@ -0,0 +1,5 @@
1
+ import { FC, PropsWithChildren, ReactElement } from 'react';
2
+ declare const TooltipComponent: FC<PropsWithChildren<{
3
+ title?: ReactElement;
4
+ }>>;
5
+ export default TooltipComponent;
@@ -0,0 +1,2 @@
1
+ import { default as TooltipComponent } from './TooltipComponent';
2
+ export { TooltipComponent };
@@ -0,0 +1,16 @@
1
+ import { default as React, FC, PropsWithChildren } from 'react';
2
+ declare const WizardResult: FC<{
3
+ onRetry?: (_: undefined, __: undefined, retry: true) => void;
4
+ onClickBack?: () => void;
5
+ loading: boolean;
6
+ error: any;
7
+ success: boolean;
8
+ successTitle?: string;
9
+ successMessage?: string;
10
+ errorTitle?: string;
11
+ errorMessage?: string | (() => string | undefined);
12
+ loadingTitle?: string;
13
+ loadingMessage?: string;
14
+ errorChildren?: React.ReactNode;
15
+ } & PropsWithChildren>;
16
+ export default WizardResult;
@@ -0,0 +1,24 @@
1
+ import { default as React, ReactElement } from 'react';
2
+ interface WizardViewFormProps {
3
+ pages: {
4
+ hidden?: boolean;
5
+ icon?: React.ReactNode;
6
+ title: string;
7
+ component: (func: {
8
+ forward: (value?: any, submit?: boolean, isRetry?: boolean) => void;
9
+ backward: () => void;
10
+ }, formSubmissionData: any[], isActive: boolean) => ReactElement;
11
+ }[];
12
+ labelPlacement?: "vertical" | "horizontal";
13
+ initPosition?: number;
14
+ onSubmit?: (val: (any | undefined)[], combinedValue: any) => void;
15
+ type?: "default" | "navigation" | "inline";
16
+ className?: string;
17
+ progressDot?: boolean;
18
+ pageStyle?: React.CSSProperties;
19
+ }
20
+ export interface WizardViewFormRef {
21
+ gotTo: (index: number) => void;
22
+ }
23
+ declare const WizardViewForm: React.ForwardRefExoticComponent<WizardViewFormProps & React.RefAttributes<WizardViewFormRef>>;
24
+ export default WizardViewForm;
@@ -0,0 +1,3 @@
1
+ import { default as WizardResult } from './WizardResult';
2
+ import { default as WizardViewForm } from './WizardViewForm';
3
+ export { WizardResult, WizardViewForm };