@pisell/materials 1.0.449 → 1.0.451

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 (530) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +150 -142
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +28 -28
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +23 -23
  11. package/es/components/collapse/index.d.ts +11 -2
  12. package/es/components/collapse/index.js +28 -22
  13. package/es/components/colorPicker/index.d.ts +4 -0
  14. package/es/components/colorPicker/index.js +6 -0
  15. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +3 -0
  16. package/es/components/dataSourceComponents/dataSourceForm/formItem.js +46 -0
  17. package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +20 -0
  18. package/es/components/dataSourceComponents/dataSourceForm/group/index.js +65 -0
  19. package/es/components/dataSourceComponents/dataSourceForm/group/index.less +42 -0
  20. package/es/components/dataSourceComponents/dataSourceForm/index.d.ts +3 -0
  21. package/es/components/dataSourceComponents/dataSourceForm/index.js +75 -0
  22. package/es/components/dataSourceComponents/dataSourceForm/index.less +24 -0
  23. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +10 -0
  24. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.js +6 -0
  25. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
  26. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +24 -0
  27. package/es/components/dataSourceComponents/dataSourceForm/provider/hooks/useFormSetting.d.ts +5 -0
  28. package/es/components/dataSourceComponents/dataSourceForm/provider/hooks/useFormSetting.js +11 -0
  29. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +147 -0
  30. package/es/components/dataSourceComponents/dataSourceForm/serve.js +253 -0
  31. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +36 -0
  32. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +217 -0
  33. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.less +4 -0
  34. package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +16 -0
  35. package/es/components/dataSourceComponents/dataSourceForm/type.js +1 -0
  36. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +36 -0
  37. package/es/components/dataSourceComponents/dataSourceForm/utils.js +188 -0
  38. package/es/components/dataSourceComponents/dataSourceTable/hooks/useColumns.d.ts +11 -0
  39. package/es/components/dataSourceComponents/dataSourceTable/hooks/useColumns.js +56 -0
  40. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.d.ts +2 -0
  41. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.js +39 -0
  42. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +10 -0
  43. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +35 -0
  44. package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +27 -0
  45. package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +41 -0
  46. package/es/components/dataSourceComponents/dataSourceTable/hooks/usePagination.d.ts +16 -0
  47. package/es/components/dataSourceComponents/dataSourceTable/hooks/usePagination.js +14 -0
  48. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +19 -0
  49. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +51 -0
  50. package/es/components/dataSourceComponents/dataSourceTable/index.d.ts +4 -0
  51. package/es/components/dataSourceComponents/dataSourceTable/index.js +208 -0
  52. package/es/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.d.ts +7 -0
  53. package/es/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.js +4 -0
  54. package/es/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.d.ts +8 -0
  55. package/es/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.js +20 -0
  56. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +15 -0
  57. package/es/components/dataSourceComponents/dataSourceTable/type.js +1 -0
  58. package/es/components/dataSourceComponents/fields/Checkbox/ReadPretty.d.ts +7 -0
  59. package/es/components/dataSourceComponents/fields/Checkbox/ReadPretty.js +14 -0
  60. package/es/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +7 -0
  61. package/es/components/dataSourceComponents/fields/Checkbox/WithMode.js +7 -0
  62. package/es/components/dataSourceComponents/fields/Checkbox/index.d.ts +6 -0
  63. package/es/components/dataSourceComponents/fields/Checkbox/index.js +6 -0
  64. package/es/components/dataSourceComponents/fields/Checkbox/type.d.ts +9 -0
  65. package/es/components/dataSourceComponents/fields/Checkbox/type.js +1 -0
  66. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +4 -0
  67. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.js +9 -0
  68. package/es/components/dataSourceComponents/fields/ColorPicker/WithMode.d.ts +3 -0
  69. package/es/components/dataSourceComponents/fields/ColorPicker/WithMode.js +5 -0
  70. package/es/components/dataSourceComponents/fields/ColorPicker/index.d.ts +3 -0
  71. package/es/components/dataSourceComponents/fields/ColorPicker/index.js +4 -0
  72. package/es/components/dataSourceComponents/fields/ColorPicker/type.d.ts +5 -0
  73. package/es/components/dataSourceComponents/fields/ColorPicker/type.js +1 -0
  74. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +4 -0
  75. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +7 -0
  76. package/es/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +4 -0
  77. package/es/components/dataSourceComponents/fields/DatePicker/WithMode.js +17 -0
  78. package/es/components/dataSourceComponents/fields/DatePicker/index.d.ts +3 -0
  79. package/es/components/dataSourceComponents/fields/DatePicker/index.js +4 -0
  80. package/es/components/dataSourceComponents/fields/DatePicker/type.d.ts +5 -0
  81. package/es/components/dataSourceComponents/fields/DatePicker/type.js +1 -0
  82. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +4 -0
  83. package/es/components/dataSourceComponents/fields/Input/ReadPretty.js +5 -0
  84. package/es/components/dataSourceComponents/fields/Input/WithMode.d.ts +4 -0
  85. package/es/components/dataSourceComponents/fields/Input/WithMode.js +5 -0
  86. package/es/components/dataSourceComponents/fields/Input/index.d.ts +13 -0
  87. package/es/components/dataSourceComponents/fields/Input/index.js +12 -0
  88. package/es/components/dataSourceComponents/fields/Input/type.d.ts +5 -0
  89. package/es/components/dataSourceComponents/fields/Input/type.js +1 -0
  90. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +4 -0
  91. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.js +11 -0
  92. package/es/components/dataSourceComponents/fields/Input.Json/WithMode.d.ts +3 -0
  93. package/es/components/dataSourceComponents/fields/Input.Json/WithMode.js +5 -0
  94. package/es/components/dataSourceComponents/fields/Input.Json/index.d.ts +3 -0
  95. package/es/components/dataSourceComponents/fields/Input.Json/index.js +4 -0
  96. package/es/components/dataSourceComponents/fields/Input.Json/type.d.ts +5 -0
  97. package/es/components/dataSourceComponents/fields/Input.Json/type.js +1 -0
  98. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +4 -0
  99. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.js +5 -0
  100. package/es/components/dataSourceComponents/fields/Input.Password/WithMode.d.ts +3 -0
  101. package/es/components/dataSourceComponents/fields/Input.Password/WithMode.js +5 -0
  102. package/es/components/dataSourceComponents/fields/Input.Password/index.d.ts +3 -0
  103. package/es/components/dataSourceComponents/fields/Input.Password/index.js +4 -0
  104. package/es/components/dataSourceComponents/fields/Input.Password/type.d.ts +5 -0
  105. package/es/components/dataSourceComponents/fields/Input.Password/type.js +1 -0
  106. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +4 -0
  107. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.js +5 -0
  108. package/es/components/dataSourceComponents/fields/Input.TextArea/WithMode.d.ts +3 -0
  109. package/es/components/dataSourceComponents/fields/Input.TextArea/WithMode.js +5 -0
  110. package/es/components/dataSourceComponents/fields/Input.TextArea/index.d.ts +3 -0
  111. package/es/components/dataSourceComponents/fields/Input.TextArea/index.js +4 -0
  112. package/es/components/dataSourceComponents/fields/Input.TextArea/type.d.ts +5 -0
  113. package/es/components/dataSourceComponents/fields/Input.TextArea/type.js +1 -0
  114. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +4 -0
  115. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.js +9 -0
  116. package/es/components/dataSourceComponents/fields/Input.Url/WithMode.d.ts +3 -0
  117. package/es/components/dataSourceComponents/fields/Input.Url/WithMode.js +5 -0
  118. package/es/components/dataSourceComponents/fields/Input.Url/index.d.ts +3 -0
  119. package/es/components/dataSourceComponents/fields/Input.Url/index.js +4 -0
  120. package/es/components/dataSourceComponents/fields/Input.Url/type.d.ts +5 -0
  121. package/es/components/dataSourceComponents/fields/Input.Url/type.js +1 -0
  122. package/es/components/dataSourceComponents/fields/InputNumber/ReadPretty.d.ts +4 -0
  123. package/es/components/dataSourceComponents/fields/InputNumber/ReadPretty.js +7 -0
  124. package/es/components/dataSourceComponents/fields/InputNumber/WithMode.d.ts +3 -0
  125. package/es/components/dataSourceComponents/fields/InputNumber/WithMode.js +5 -0
  126. package/es/components/dataSourceComponents/fields/InputNumber/index.d.ts +3 -0
  127. package/es/components/dataSourceComponents/fields/InputNumber/index.js +4 -0
  128. package/es/components/dataSourceComponents/fields/InputNumber/type.d.ts +5 -0
  129. package/es/components/dataSourceComponents/fields/InputNumber/type.js +1 -0
  130. package/es/components/dataSourceComponents/fields/Radio/ReadPretty.d.ts +7 -0
  131. package/es/components/dataSourceComponents/fields/Radio/ReadPretty.js +14 -0
  132. package/es/components/dataSourceComponents/fields/Radio/WithMode.d.ts +7 -0
  133. package/es/components/dataSourceComponents/fields/Radio/WithMode.js +7 -0
  134. package/es/components/dataSourceComponents/fields/Radio/index.d.ts +6 -0
  135. package/es/components/dataSourceComponents/fields/Radio/index.js +6 -0
  136. package/es/components/dataSourceComponents/fields/Radio/type.d.ts +8 -0
  137. package/es/components/dataSourceComponents/fields/Radio/type.js +1 -0
  138. package/es/components/dataSourceComponents/fields/Select/ReadPretty.d.ts +4 -0
  139. package/es/components/dataSourceComponents/fields/Select/ReadPretty.js +9 -0
  140. package/es/components/dataSourceComponents/fields/Select/WithMode.d.ts +4 -0
  141. package/es/components/dataSourceComponents/fields/Select/WithMode.js +5 -0
  142. package/es/components/dataSourceComponents/fields/Select/index.d.ts +3 -0
  143. package/es/components/dataSourceComponents/fields/Select/index.js +4 -0
  144. package/es/components/dataSourceComponents/fields/Select/type.d.ts +5 -0
  145. package/es/components/dataSourceComponents/fields/Select/type.js +1 -0
  146. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +4 -0
  147. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.js +6 -0
  148. package/es/components/dataSourceComponents/fields/TimePicker/WithMode.d.ts +4 -0
  149. package/es/components/dataSourceComponents/fields/TimePicker/WithMode.js +5 -0
  150. package/es/components/dataSourceComponents/fields/TimePicker/index.d.ts +3 -0
  151. package/es/components/dataSourceComponents/fields/TimePicker/index.js +4 -0
  152. package/es/components/dataSourceComponents/fields/TimePicker/type.d.ts +5 -0
  153. package/es/components/dataSourceComponents/fields/TimePicker/type.js +1 -0
  154. package/es/components/dataSourceComponents/fields/index.d.ts +16 -0
  155. package/es/components/dataSourceComponents/fields/index.js +27 -0
  156. package/es/components/dataSourceComponents/hooks/useActions.d.ts +16 -0
  157. package/es/components/dataSourceComponents/hooks/useActions.js +302 -0
  158. package/es/components/dataSourceComponents/hooks/useCtxActions.d.ts +8 -0
  159. package/es/components/dataSourceComponents/hooks/useCtxActions.js +14 -0
  160. package/es/components/dataSourceComponents/hooks/useDataSource.d.ts +5 -0
  161. package/es/components/dataSourceComponents/hooks/useDataSource.js +11 -0
  162. package/es/components/dataSourceComponents/hooks/useParseActionsVariable.d.ts +6 -0
  163. package/es/components/dataSourceComponents/hooks/useParseActionsVariable.js +61 -0
  164. package/es/components/dataSourceComponents/hooks/useValueMap.d.ts +8 -0
  165. package/es/components/dataSourceComponents/hooks/useValueMap.js +22 -0
  166. package/es/components/dataSourceComponents/hooks/useVariables.d.ts +2 -0
  167. package/es/components/dataSourceComponents/hooks/useVariables.js +6 -0
  168. package/es/components/dataSourceComponents/provider/actions/ActionsContext.d.ts +6 -0
  169. package/es/components/dataSourceComponents/provider/actions/ActionsContext.js +3 -0
  170. package/es/components/dataSourceComponents/provider/actions/ActionsProvider.d.ts +9 -0
  171. package/es/components/dataSourceComponents/provider/actions/ActionsProvider.js +28 -0
  172. package/es/components/dataSourceComponents/provider/fields/DataSourceContext.d.ts +75 -0
  173. package/es/components/dataSourceComponents/provider/fields/DataSourceContext.js +6 -0
  174. package/es/components/dataSourceComponents/provider/fields/DataSourceProvider.d.ts +8 -0
  175. package/es/components/dataSourceComponents/provider/fields/DataSourceProvider.js +20 -0
  176. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +9 -0
  177. package/es/components/dataSourceComponents/provider/variables/VariablesContext.js +8 -0
  178. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  179. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +82 -0
  180. package/es/components/form/index.d.ts +2 -8
  181. package/es/components/form/index.js +3 -1
  182. package/es/components/page/index.js +3 -2
  183. package/es/components/pisellAnchor/index.js +0 -1
  184. package/es/components/pisellStatistic/index.js +0 -1
  185. package/es/components/pisellUpload/index.js +0 -1
  186. package/es/components/pisellUploadCrop/index.js +0 -1
  187. package/es/components/pisellWalletCard/index.js +0 -2
  188. package/es/components/pisellWalletPassCard/index.js +4 -1
  189. package/es/components/productCard/components/Action/index.d.ts +4 -0
  190. package/es/components/productCard/components/{Actions → Action}/index.js +7 -6
  191. package/{lib/components/productCard/components/Actions → es/components/productCard/components/Action}/index.less +1 -1
  192. package/es/components/productCard/components/AmountFooter/index.d.ts +2 -2
  193. package/es/components/productCard/components/AmountFooter/index.js +13 -7
  194. package/es/components/productCard/components/AmountFooter/index.less +9 -0
  195. package/es/components/productCard/components/Header/index.d.ts +1 -1
  196. package/es/components/productCard/components/Header/index.js +17 -18
  197. package/es/components/productCard/components/Header/index.less +4 -0
  198. package/es/components/productCard/components/Note/index.d.ts +1 -1
  199. package/es/components/productCard/components/Note/index.js +11 -4
  200. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -1
  201. package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +14 -12
  202. package/es/components/productCard/components/Packages/components/options/index.less +1 -0
  203. package/es/components/productCard/components/Packages/index.d.ts +1 -1
  204. package/es/components/productCard/components/Packages/index.js +14 -5
  205. package/es/components/productCard/components/Sales/index.d.ts +1 -1
  206. package/es/components/productCard/components/Sales/index.js +23 -6
  207. package/es/components/productCard/components/Time/components/Like/index.d.ts +2 -2
  208. package/es/components/productCard/components/Time/components/Like/index.js +3 -3
  209. package/es/components/productCard/components/Time/index.d.ts +1 -1
  210. package/es/components/productCard/components/Time/index.js +28 -14
  211. package/es/components/productCard/components/Time/index.less +10 -0
  212. package/es/components/productCard/hooks/useOpenNote.d.ts +3 -0
  213. package/es/components/productCard/hooks/useOpenNote.js +58 -0
  214. package/es/components/productCard/index.js +76 -33
  215. package/es/components/productCard/index.less +8 -3
  216. package/es/components/productCard/locales.d.ts +24 -0
  217. package/es/components/productCard/locales.js +29 -0
  218. package/es/components/productCard/types.d.ts +6 -0
  219. package/es/components/productCard/utils.js +23 -5
  220. package/es/components/record-view/index.js +0 -3
  221. package/es/components/section-footers/index.js +0 -1
  222. package/es/components/select/index.d.ts +1 -1
  223. package/es/components/select/index.js +2 -1
  224. package/es/components/table/utils.d.ts +5 -6
  225. package/es/components/table/utils.js +7 -1
  226. package/es/components/tabs/index.js +0 -4
  227. package/es/hooks/useSetRequest.d.ts +2 -0
  228. package/es/hooks/useSetRequest.js +8 -0
  229. package/es/index.d.ts +13 -0
  230. package/es/index.js +16 -1
  231. package/es/utils/index.d.ts +1 -0
  232. package/es/utils/index.js +2 -1
  233. package/es/utils/mergeWith.d.ts +1 -0
  234. package/es/utils/mergeWith.js +31 -0
  235. package/lib/components/collapse/index.d.ts +11 -2
  236. package/lib/components/collapse/index.js +27 -21
  237. package/lib/components/colorPicker/index.d.ts +4 -0
  238. package/lib/components/{productCard/components/Holder → colorPicker}/index.js +9 -11
  239. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +3 -0
  240. package/lib/components/dataSourceComponents/dataSourceForm/formItem.js +59 -0
  241. package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +20 -0
  242. package/lib/components/dataSourceComponents/dataSourceForm/group/index.js +80 -0
  243. package/lib/components/dataSourceComponents/dataSourceForm/group/index.less +42 -0
  244. package/lib/components/dataSourceComponents/dataSourceForm/index.d.ts +3 -0
  245. package/lib/components/dataSourceComponents/dataSourceForm/index.js +103 -0
  246. package/lib/components/dataSourceComponents/dataSourceForm/index.less +24 -0
  247. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +10 -0
  248. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.js +35 -0
  249. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
  250. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +54 -0
  251. package/lib/components/dataSourceComponents/dataSourceForm/provider/hooks/useFormSetting.d.ts +5 -0
  252. package/lib/components/dataSourceComponents/dataSourceForm/provider/hooks/useFormSetting.js +41 -0
  253. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +147 -0
  254. package/lib/components/dataSourceComponents/dataSourceForm/serve.js +141 -0
  255. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +36 -0
  256. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +157 -0
  257. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.less +4 -0
  258. package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +16 -0
  259. package/lib/components/dataSourceComponents/dataSourceForm/type.js +17 -0
  260. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +36 -0
  261. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +177 -0
  262. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useColumns.d.ts +11 -0
  263. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useColumns.js +85 -0
  264. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.d.ts +2 -0
  265. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.js +55 -0
  266. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +10 -0
  267. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +45 -0
  268. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +27 -0
  269. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +62 -0
  270. package/lib/components/dataSourceComponents/dataSourceTable/hooks/usePagination.d.ts +16 -0
  271. package/lib/components/dataSourceComponents/dataSourceTable/hooks/usePagination.js +37 -0
  272. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +19 -0
  273. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +56 -0
  274. package/lib/components/dataSourceComponents/dataSourceTable/index.d.ts +4 -0
  275. package/lib/components/dataSourceComponents/dataSourceTable/index.js +193 -0
  276. package/lib/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.d.ts +7 -0
  277. package/lib/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.js +33 -0
  278. package/lib/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.d.ts +8 -0
  279. package/lib/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.js +52 -0
  280. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +15 -0
  281. package/lib/components/dataSourceComponents/dataSourceTable/type.js +17 -0
  282. package/lib/components/dataSourceComponents/fields/Checkbox/ReadPretty.d.ts +7 -0
  283. package/lib/components/dataSourceComponents/fields/Checkbox/ReadPretty.js +47 -0
  284. package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +7 -0
  285. package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.js +41 -0
  286. package/lib/components/dataSourceComponents/fields/Checkbox/index.d.ts +6 -0
  287. package/lib/components/dataSourceComponents/fields/Checkbox/index.js +40 -0
  288. package/lib/components/dataSourceComponents/fields/Checkbox/type.d.ts +9 -0
  289. package/lib/components/dataSourceComponents/fields/Checkbox/type.js +17 -0
  290. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +4 -0
  291. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.js +40 -0
  292. package/lib/components/dataSourceComponents/fields/ColorPicker/WithMode.d.ts +3 -0
  293. package/lib/components/dataSourceComponents/fields/ColorPicker/WithMode.js +39 -0
  294. package/lib/components/dataSourceComponents/fields/ColorPicker/index.d.ts +3 -0
  295. package/lib/components/dataSourceComponents/fields/ColorPicker/index.js +38 -0
  296. package/lib/components/dataSourceComponents/fields/ColorPicker/type.d.ts +5 -0
  297. package/lib/components/dataSourceComponents/fields/ColorPicker/type.js +17 -0
  298. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +4 -0
  299. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +41 -0
  300. package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +4 -0
  301. package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.js +50 -0
  302. package/lib/components/dataSourceComponents/fields/DatePicker/index.d.ts +3 -0
  303. package/lib/components/dataSourceComponents/fields/DatePicker/index.js +38 -0
  304. package/lib/components/dataSourceComponents/fields/DatePicker/type.d.ts +5 -0
  305. package/lib/components/dataSourceComponents/fields/DatePicker/type.js +17 -0
  306. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +4 -0
  307. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.js +39 -0
  308. package/lib/components/dataSourceComponents/fields/Input/WithMode.d.ts +4 -0
  309. package/lib/components/dataSourceComponents/fields/Input/WithMode.js +39 -0
  310. package/lib/components/dataSourceComponents/fields/Input/index.d.ts +13 -0
  311. package/lib/components/dataSourceComponents/fields/Input/index.js +46 -0
  312. package/lib/components/dataSourceComponents/fields/Input/type.d.ts +5 -0
  313. package/lib/components/dataSourceComponents/fields/Input/type.js +17 -0
  314. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +4 -0
  315. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.js +45 -0
  316. package/lib/components/dataSourceComponents/fields/Input.Json/WithMode.d.ts +3 -0
  317. package/lib/components/dataSourceComponents/fields/Input.Json/WithMode.js +39 -0
  318. package/lib/components/dataSourceComponents/fields/Input.Json/index.d.ts +3 -0
  319. package/lib/components/dataSourceComponents/fields/Input.Json/index.js +38 -0
  320. package/lib/components/dataSourceComponents/fields/Input.Json/type.d.ts +5 -0
  321. package/lib/components/dataSourceComponents/fields/Input.Json/type.js +17 -0
  322. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +4 -0
  323. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.js +39 -0
  324. package/lib/components/dataSourceComponents/fields/Input.Password/WithMode.d.ts +3 -0
  325. package/lib/components/dataSourceComponents/fields/Input.Password/WithMode.js +39 -0
  326. package/lib/components/dataSourceComponents/fields/Input.Password/index.d.ts +3 -0
  327. package/lib/components/dataSourceComponents/fields/Input.Password/index.js +38 -0
  328. package/lib/components/dataSourceComponents/fields/Input.Password/type.d.ts +5 -0
  329. package/lib/components/dataSourceComponents/fields/Input.Password/type.js +17 -0
  330. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +4 -0
  331. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.js +39 -0
  332. package/lib/components/dataSourceComponents/fields/Input.TextArea/WithMode.d.ts +3 -0
  333. package/lib/components/dataSourceComponents/fields/Input.TextArea/WithMode.js +39 -0
  334. package/lib/components/dataSourceComponents/fields/Input.TextArea/index.d.ts +3 -0
  335. package/lib/components/dataSourceComponents/fields/Input.TextArea/index.js +38 -0
  336. package/lib/components/dataSourceComponents/fields/Input.TextArea/type.d.ts +5 -0
  337. package/lib/components/dataSourceComponents/fields/Input.TextArea/type.js +17 -0
  338. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +4 -0
  339. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.js +41 -0
  340. package/lib/components/dataSourceComponents/fields/Input.Url/WithMode.d.ts +3 -0
  341. package/lib/components/dataSourceComponents/fields/Input.Url/WithMode.js +39 -0
  342. package/lib/components/dataSourceComponents/fields/Input.Url/index.d.ts +3 -0
  343. package/lib/components/dataSourceComponents/fields/Input.Url/index.js +38 -0
  344. package/lib/components/dataSourceComponents/fields/Input.Url/type.d.ts +5 -0
  345. package/lib/components/dataSourceComponents/fields/Input.Url/type.js +17 -0
  346. package/lib/components/dataSourceComponents/fields/InputNumber/ReadPretty.d.ts +4 -0
  347. package/lib/components/dataSourceComponents/fields/InputNumber/ReadPretty.js +40 -0
  348. package/lib/components/dataSourceComponents/fields/InputNumber/WithMode.d.ts +3 -0
  349. package/lib/components/dataSourceComponents/fields/InputNumber/WithMode.js +42 -0
  350. package/lib/components/dataSourceComponents/fields/InputNumber/index.d.ts +3 -0
  351. package/lib/components/dataSourceComponents/fields/InputNumber/index.js +38 -0
  352. package/lib/components/dataSourceComponents/fields/InputNumber/type.d.ts +5 -0
  353. package/lib/components/dataSourceComponents/fields/InputNumber/type.js +17 -0
  354. package/lib/components/dataSourceComponents/fields/Radio/ReadPretty.d.ts +7 -0
  355. package/lib/components/dataSourceComponents/fields/Radio/ReadPretty.js +47 -0
  356. package/lib/components/dataSourceComponents/fields/Radio/WithMode.d.ts +7 -0
  357. package/lib/components/dataSourceComponents/fields/Radio/WithMode.js +41 -0
  358. package/lib/components/dataSourceComponents/fields/Radio/index.d.ts +6 -0
  359. package/lib/components/dataSourceComponents/fields/Radio/index.js +40 -0
  360. package/lib/components/dataSourceComponents/fields/Radio/type.d.ts +8 -0
  361. package/lib/components/dataSourceComponents/fields/Radio/type.js +17 -0
  362. package/lib/components/dataSourceComponents/fields/Select/ReadPretty.d.ts +4 -0
  363. package/lib/components/dataSourceComponents/fields/Select/ReadPretty.js +42 -0
  364. package/lib/components/dataSourceComponents/fields/Select/WithMode.d.ts +4 -0
  365. package/lib/components/dataSourceComponents/fields/Select/WithMode.js +39 -0
  366. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +3 -0
  367. package/lib/components/dataSourceComponents/fields/Select/index.js +38 -0
  368. package/lib/components/dataSourceComponents/fields/Select/type.d.ts +5 -0
  369. package/lib/components/dataSourceComponents/fields/Select/type.js +17 -0
  370. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +4 -0
  371. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.js +40 -0
  372. package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.d.ts +4 -0
  373. package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.js +39 -0
  374. package/lib/components/dataSourceComponents/fields/TimePicker/index.d.ts +3 -0
  375. package/lib/components/dataSourceComponents/fields/TimePicker/index.js +38 -0
  376. package/lib/components/dataSourceComponents/fields/TimePicker/type.d.ts +5 -0
  377. package/lib/components/dataSourceComponents/fields/TimePicker/type.js +17 -0
  378. package/lib/components/dataSourceComponents/fields/index.d.ts +16 -0
  379. package/lib/components/dataSourceComponents/fields/index.js +64 -0
  380. package/lib/components/dataSourceComponents/hooks/useActions.d.ts +16 -0
  381. package/lib/components/dataSourceComponents/hooks/useActions.js +184 -0
  382. package/lib/components/dataSourceComponents/hooks/useCtxActions.d.ts +8 -0
  383. package/lib/components/dataSourceComponents/hooks/useCtxActions.js +41 -0
  384. package/lib/components/dataSourceComponents/hooks/useDataSource.d.ts +5 -0
  385. package/lib/components/dataSourceComponents/hooks/useDataSource.js +41 -0
  386. package/lib/components/dataSourceComponents/hooks/useParseActionsVariable.d.ts +6 -0
  387. package/lib/components/dataSourceComponents/hooks/useParseActionsVariable.js +73 -0
  388. package/lib/components/dataSourceComponents/hooks/useValueMap.d.ts +8 -0
  389. package/lib/components/dataSourceComponents/hooks/useValueMap.js +39 -0
  390. package/lib/components/dataSourceComponents/hooks/useVariables.d.ts +2 -0
  391. package/lib/components/dataSourceComponents/hooks/useVariables.js +40 -0
  392. package/lib/components/dataSourceComponents/provider/actions/ActionsContext.d.ts +6 -0
  393. package/lib/components/dataSourceComponents/provider/actions/ActionsContext.js +27 -0
  394. package/lib/components/dataSourceComponents/provider/actions/ActionsProvider.d.ts +9 -0
  395. package/lib/components/dataSourceComponents/provider/actions/ActionsProvider.js +46 -0
  396. package/lib/components/dataSourceComponents/provider/fields/DataSourceContext.d.ts +75 -0
  397. package/lib/components/dataSourceComponents/provider/fields/DataSourceContext.js +35 -0
  398. package/lib/components/dataSourceComponents/provider/fields/DataSourceProvider.d.ts +8 -0
  399. package/lib/components/dataSourceComponents/provider/fields/DataSourceProvider.js +46 -0
  400. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +9 -0
  401. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.js +39 -0
  402. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  403. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +104 -0
  404. package/lib/components/form/index.d.ts +2 -8
  405. package/lib/components/form/index.js +3 -2
  406. package/lib/components/page/index.js +7 -3
  407. package/lib/components/pisellAnchor/index.js +0 -5
  408. package/lib/components/pisellStatistic/index.js +0 -5
  409. package/lib/components/pisellUpload/index.js +0 -5
  410. package/lib/components/pisellUploadCrop/index.js +0 -5
  411. package/lib/components/pisellWalletCard/index.js +0 -10
  412. package/lib/components/pisellWalletPassCard/index.js +3 -0
  413. package/lib/components/productCard/components/Action/index.d.ts +4 -0
  414. package/lib/components/productCard/components/{Actions → Action}/index.js +11 -10
  415. package/{es/components/productCard/components/Actions → lib/components/productCard/components/Action}/index.less +1 -1
  416. package/lib/components/productCard/components/AmountFooter/index.d.ts +2 -2
  417. package/lib/components/productCard/components/AmountFooter/index.js +8 -8
  418. package/lib/components/productCard/components/AmountFooter/index.less +9 -0
  419. package/lib/components/productCard/components/Header/index.d.ts +1 -1
  420. package/lib/components/productCard/components/Header/index.js +8 -8
  421. package/lib/components/productCard/components/Header/index.less +4 -0
  422. package/lib/components/productCard/components/Note/index.d.ts +1 -1
  423. package/lib/components/productCard/components/Note/index.js +14 -2
  424. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -1
  425. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.js +7 -3
  426. package/lib/components/productCard/components/Packages/components/options/index.less +1 -0
  427. package/lib/components/productCard/components/Packages/index.d.ts +1 -1
  428. package/lib/components/productCard/components/Packages/index.js +7 -3
  429. package/lib/components/productCard/components/Sales/index.d.ts +1 -1
  430. package/lib/components/productCard/components/Sales/index.js +13 -3
  431. package/lib/components/productCard/components/Time/components/Like/index.d.ts +2 -2
  432. package/lib/components/productCard/components/Time/components/Like/index.js +3 -3
  433. package/lib/components/productCard/components/Time/index.d.ts +1 -1
  434. package/lib/components/productCard/components/Time/index.js +17 -10
  435. package/lib/components/productCard/components/Time/index.less +10 -0
  436. package/lib/components/productCard/hooks/useOpenNote.d.ts +3 -0
  437. package/lib/components/productCard/hooks/useOpenNote.js +79 -0
  438. package/lib/components/productCard/index.js +96 -43
  439. package/lib/components/productCard/index.less +8 -3
  440. package/lib/components/productCard/locales.d.ts +24 -0
  441. package/lib/components/productCard/locales.js +47 -0
  442. package/lib/components/productCard/types.d.ts +6 -0
  443. package/lib/components/productCard/utils.js +18 -3
  444. package/lib/components/record-view/index.js +0 -15
  445. package/lib/components/section-footers/index.js +0 -5
  446. package/lib/components/select/index.d.ts +1 -1
  447. package/lib/components/select/index.js +2 -1
  448. package/lib/components/table/utils.d.ts +5 -6
  449. package/lib/components/table/utils.js +7 -1
  450. package/lib/components/tabs/index.js +0 -20
  451. package/lib/hooks/useSetRequest.d.ts +2 -0
  452. package/lib/hooks/useSetRequest.js +42 -0
  453. package/lib/index.d.ts +13 -0
  454. package/lib/index.js +39 -0
  455. package/lib/utils/index.d.ts +1 -0
  456. package/lib/utils/index.js +4 -1
  457. package/lib/utils/mergeWith.d.ts +1 -0
  458. package/lib/utils/mergeWith.js +56 -0
  459. package/lowcode/_utils/defaultSchema.ts +430 -0
  460. package/lowcode/color-picker/__screenshots__/input-1.png +0 -0
  461. package/lowcode/color-picker/meta.ts +298 -0
  462. package/lowcode/color-picker/snippets.ts +9 -0
  463. package/lowcode/data-source-form/__screenshots__/form-1.png +0 -0
  464. package/lowcode/data-source-form/constants.ts +39 -0
  465. package/lowcode/data-source-form/meta.ts +797 -0
  466. package/lowcode/data-source-form/snippets.ts +130 -0
  467. package/lowcode/data-source-form/utils.ts +343 -0
  468. package/lowcode/data-source-table/__screenshots__/table-1.png +0 -0
  469. package/lowcode/data-source-table/meta.ts +2697 -0
  470. package/lowcode/data-source-table/snippets.ts +84 -0
  471. package/lowcode/data-source-table/utils.tsx +140 -0
  472. package/lowcode/form/meta.ts +118 -22
  473. package/lowcode/form/snippets.ts +2 -481
  474. package/lowcode/form-group/meta.ts +346 -0
  475. package/lowcode/form-group/snippets.ts +16 -0
  476. package/lowcode/form-item-checkbox/meta.ts +88 -0
  477. package/lowcode/form-item-checkbox/snippets.ts +35 -0
  478. package/lowcode/form-item-checkbox.group/__screenshots__/checkbox-group-1.png +0 -0
  479. package/lowcode/form-item-checkbox.group/meta.ts +159 -0
  480. package/lowcode/form-item-color-picker/__screenshots__/input-1.png +0 -0
  481. package/lowcode/form-item-color-picker/meta.ts +301 -0
  482. package/lowcode/form-item-color-picker/snippets.ts +9 -0
  483. package/lowcode/form-item-date-picker/__screenshots__/date-picker-1.png +0 -0
  484. package/lowcode/form-item-date-picker/__screenshots__/date-picker-2.png +0 -0
  485. package/lowcode/form-item-date-picker/__screenshots__/date-picker-3.png +0 -0
  486. package/lowcode/form-item-date-picker/__screenshots__/date-picker-4.png +0 -0
  487. package/lowcode/form-item-date-picker/__screenshots__/date-picker-5.png +0 -0
  488. package/lowcode/form-item-date-picker/meta.ts +290 -0
  489. package/lowcode/form-item-date-picker/snippets.ts +50 -0
  490. package/lowcode/form-item-input/__screenshots__/input-1.png +0 -0
  491. package/lowcode/form-item-input/meta.ts +227 -0
  492. package/lowcode/form-item-input/snippets.ts +12 -0
  493. package/lowcode/form-item-input-number/__screenshots__/input-number-1.png +0 -0
  494. package/lowcode/form-item-input-number/meta.ts +228 -0
  495. package/lowcode/form-item-input-number/snippets.ts +12 -0
  496. package/lowcode/form-item-input.json/meta.ts +213 -0
  497. package/lowcode/form-item-input.json/snippets.ts +16 -0
  498. package/lowcode/form-item-input.password/__screenshots__/input-password-1.png +0 -0
  499. package/lowcode/form-item-input.password/meta.ts +198 -0
  500. package/lowcode/form-item-input.password/snippets.ts +12 -0
  501. package/lowcode/form-item-input.text-area/__screenshots__/input-text-area-1.png +0 -0
  502. package/lowcode/form-item-input.text-area/meta.ts +213 -0
  503. package/lowcode/form-item-input.text-area/snippets.ts +16 -0
  504. package/lowcode/form-item-input.url/meta.ts +213 -0
  505. package/lowcode/form-item-input.url/snippets.ts +15 -0
  506. package/lowcode/form-item-radio/__screenshots__/radio-1.png +0 -0
  507. package/lowcode/form-item-radio/meta.ts +72 -0
  508. package/lowcode/form-item-radio/snippets.ts +36 -0
  509. package/lowcode/form-item-radio.group/__screenshots__/radio-group-1.png +0 -0
  510. package/lowcode/form-item-radio.group/meta.ts +221 -0
  511. package/lowcode/form-item-select/__screenshots__/select-1.png +0 -0
  512. package/lowcode/form-item-select/meta.ts +463 -0
  513. package/lowcode/form-item-select/snippets.ts +28 -0
  514. package/lowcode/form-item-time-picker/__screenshots__/time-picker-1.png +0 -0
  515. package/lowcode/form-item-time-picker/meta.ts +235 -0
  516. package/lowcode/form-item-time-picker/snippets.ts +10 -0
  517. package/lowcode/form.item/meta.ts +104 -25
  518. package/lowcode/pisell-text.amount/meta.ts +1 -1
  519. package/lowcode/product-card/snippets.ts +10 -2
  520. package/lowcode/submit-button/meta.ts +1002 -0
  521. package/lowcode/submit-button/snippets.ts +15 -0
  522. package/lowcode/timeline/meta.ts +1 -2
  523. package/package.json +2 -2
  524. package/es/components/productCard/components/Actions/index.d.ts +0 -4
  525. package/es/components/productCard/components/Holder/index.d.ts +0 -4
  526. package/es/components/productCard/components/Holder/index.js +0 -11
  527. package/es/components/productCard/components/Holder/index.less +0 -11
  528. package/lib/components/productCard/components/Actions/index.d.ts +0 -4
  529. package/lib/components/productCard/components/Holder/index.d.ts +0 -4
  530. package/lib/components/productCard/components/Holder/index.less +0 -11
@@ -0,0 +1,193 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/dataSourceComponents/dataSourceTable/index.tsx
30
+ var dataSourceTable_exports = {};
31
+ __export(dataSourceTable_exports, {
32
+ default: () => dataSourceTable_default
33
+ });
34
+ module.exports = __toCommonJS(dataSourceTable_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_ahooks = require("ahooks");
37
+ var import_antd = require("antd");
38
+ var import_table = __toESM(require("../../table"));
39
+ var import_TableSettingProvider = __toESM(require("./provider/tableSetting/TableSettingProvider"));
40
+ var import_DataSourceProvider = __toESM(require("../provider/fields/DataSourceProvider"));
41
+ var import_useVariables = __toESM(require("../hooks/useVariables"));
42
+ var import_useColumns = __toESM(require("./hooks/useColumns"));
43
+ var import_usePagination = __toESM(require("./hooks/usePagination"));
44
+ var import_useActions = __toESM(require("../hooks/useActions"));
45
+ var import_ActionsProvider = __toESM(require("../provider/actions/ActionsProvider"));
46
+ var import_useDrawerState = __toESM(require("./hooks/useDrawerState"));
47
+ var import_useDesignMode = __toESM(require("./hooks/useDesignMode"));
48
+ var import_useTableQuery = __toESM(require("./hooks/useTableQuery"));
49
+ var import_useSetRequest = __toESM(require("../../../hooks/useSetRequest"));
50
+ var DRAWER_TITLES = {
51
+ detail: "详情",
52
+ edit: "编辑",
53
+ add: "添加"
54
+ };
55
+ var DataSourceTable = (props) => {
56
+ const {
57
+ columns: propsColumns,
58
+ dataSource,
59
+ detailContent,
60
+ editContent,
61
+ showDetailButton,
62
+ showEditButton,
63
+ showDeleteButton,
64
+ showAddButton,
65
+ addContent,
66
+ __designMode,
67
+ ...others
68
+ } = props;
69
+ (0, import_useSetRequest.default)();
70
+ const { registerVariable } = (0, import_useVariables.default)();
71
+ const {
72
+ drawerVisible,
73
+ setDrawerVisible,
74
+ drawerType,
75
+ openDrawer,
76
+ closeDrawer
77
+ } = (0, import_useDrawerState.default)();
78
+ const { queryPageConfig, handleValuesChange, refreshData } = (0, import_useTableQuery.default)();
79
+ const { list, destroy } = (0, import_useActions.default)({
80
+ dataSource
81
+ });
82
+ const { data, loading, run, mutate } = (0, import_ahooks.useRequest)(list, {
83
+ manual: true
84
+ });
85
+ (0, import_useDesignMode.default)(props, { registerVariable, openDrawer, closeDrawer, data });
86
+ (0, import_react.useEffect)(() => {
87
+ if (dataSource) {
88
+ run(queryPageConfig);
89
+ } else {
90
+ mutate([]);
91
+ }
92
+ }, [dataSource, run, queryPageConfig]);
93
+ const handleOpenDrawer = (record, type) => {
94
+ openDrawer(type);
95
+ registerVariable == null ? void 0 : registerVariable({
96
+ currentRecord: record
97
+ });
98
+ };
99
+ const handleCloseDrawer = () => {
100
+ closeDrawer();
101
+ registerVariable == null ? void 0 : registerVariable({
102
+ currentRecord: null
103
+ });
104
+ };
105
+ const handleDelete = async (record) => {
106
+ registerVariable == null ? void 0 : registerVariable({
107
+ currentRecord: record
108
+ });
109
+ setTimeout(async () => {
110
+ await destroy(record.id);
111
+ refreshData();
112
+ });
113
+ };
114
+ const actionsColumns = (0, import_react.useMemo)(() => {
115
+ return [
116
+ {
117
+ title: "操作",
118
+ key: "actions",
119
+ showDetailButton,
120
+ showEditButton,
121
+ showDeleteButton,
122
+ render: (_, record) => {
123
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, showDetailButton && /* @__PURE__ */ import_react.default.createElement(
124
+ import_antd.Button,
125
+ {
126
+ onClick: () => handleOpenDrawer(record, "detail"),
127
+ type: "link"
128
+ },
129
+ "详情"
130
+ ), showEditButton && /* @__PURE__ */ import_react.default.createElement(
131
+ import_antd.Button,
132
+ {
133
+ onClick: () => handleOpenDrawer(record, "edit"),
134
+ type: "link"
135
+ },
136
+ "编辑"
137
+ ), showDeleteButton && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: () => handleDelete(record), type: "link", danger: true }, "删除"));
138
+ }
139
+ }
140
+ ];
141
+ }, [showDetailButton, showEditButton, showDeleteButton]);
142
+ const columns = (0, import_useColumns.default)({
143
+ columns: propsColumns,
144
+ fields: dataSource == null ? void 0 : dataSource.fields,
145
+ // 操作列
146
+ actionsColumns
147
+ });
148
+ const pagination = (0, import_usePagination.default)({ data });
149
+ const getDrawerContent = (type) => {
150
+ const contentMap = {
151
+ detail: detailContent,
152
+ edit: editContent,
153
+ add: addContent
154
+ };
155
+ return contentMap[type];
156
+ };
157
+ return /* @__PURE__ */ import_react.default.createElement(import_TableSettingProvider.default, null, /* @__PURE__ */ import_react.default.createElement(import_DataSourceProvider.default, { dataSource }, showAddButton && /* @__PURE__ */ import_react.default.createElement("div", { style: { marginBottom: 16 } }, /* @__PURE__ */ import_react.default.createElement(
158
+ import_antd.Button,
159
+ {
160
+ type: "primary",
161
+ onClick: () => handleOpenDrawer(null, "add")
162
+ },
163
+ "添加"
164
+ )), /* @__PURE__ */ import_react.default.createElement(
165
+ import_table.default,
166
+ {
167
+ ...others,
168
+ columns,
169
+ dataSource: (data == null ? void 0 : data.data) || [],
170
+ loading,
171
+ onValuesChange: handleValuesChange,
172
+ pagination
173
+ }
174
+ ), /* @__PURE__ */ import_react.default.createElement(
175
+ import_ActionsProvider.default,
176
+ {
177
+ visible: drawerVisible,
178
+ setVisible: setDrawerVisible,
179
+ refreshTableData: refreshData
180
+ },
181
+ /* @__PURE__ */ import_react.default.createElement(
182
+ import_antd.Drawer,
183
+ {
184
+ title: DRAWER_TITLES[drawerType],
185
+ open: drawerVisible,
186
+ onClose: handleCloseDrawer,
187
+ destroyOnClose: true
188
+ },
189
+ getDrawerContent(drawerType)
190
+ )
191
+ )));
192
+ };
193
+ var dataSourceTable_default = DataSourceTable;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export interface TableSettingContextType {
3
+ dataSource?: string;
4
+ children?: React.ReactNode;
5
+ }
6
+ export declare const TableSettingContext: import("react").Context<TableSettingContextType>;
7
+ export default TableSettingContext;
@@ -0,0 +1,33 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.ts
20
+ var TableSettingContext_exports = {};
21
+ __export(TableSettingContext_exports, {
22
+ TableSettingContext: () => TableSettingContext,
23
+ default: () => TableSettingContext_default
24
+ });
25
+ module.exports = __toCommonJS(TableSettingContext_exports);
26
+ var import_react = require("react");
27
+ var initialContext = {};
28
+ var TableSettingContext = (0, import_react.createContext)(initialContext);
29
+ var TableSettingContext_default = TableSettingContext;
30
+ // Annotate the CommonJS export names for ESM import in node:
31
+ 0 && (module.exports = {
32
+ TableSettingContext
33
+ });
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { TableSettingContextType } from './TableSettingContext';
3
+ /**
4
+ * @title: 表单设置Provider
5
+ * @description: 提供表单设置信息
6
+ */
7
+ declare const TableSettingProvider: React.FC<TableSettingContextType>;
8
+ export default TableSettingProvider;
@@ -0,0 +1,52 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.tsx
30
+ var TableSettingProvider_exports = {};
31
+ __export(TableSettingProvider_exports, {
32
+ default: () => TableSettingProvider_default
33
+ });
34
+ module.exports = __toCommonJS(TableSettingProvider_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_TableSettingContext = __toESM(require("./TableSettingContext"));
37
+ var TableSettingProvider = (props) => {
38
+ const { children, dataSource } = props;
39
+ const value = import_react.default.useMemo(() => {
40
+ return {
41
+ dataSource
42
+ };
43
+ }, [dataSource]);
44
+ return /* @__PURE__ */ import_react.default.createElement(
45
+ import_TableSettingContext.default.Provider,
46
+ {
47
+ value
48
+ },
49
+ children
50
+ );
51
+ };
52
+ var TableSettingProvider_default = TableSettingProvider;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { ColumnType } from "antd/es/table";
3
+ import { DataSourceType } from "../provider/fields/DataSourceContext";
4
+ export interface DataSourceTableProps {
5
+ dataSource: DataSourceType;
6
+ columns: ColumnType<any>[];
7
+ showDetailButton?: boolean;
8
+ showEditButton?: boolean;
9
+ showDeleteButton?: boolean;
10
+ showAddButton?: boolean;
11
+ detailContent?: React.ReactNode;
12
+ editContent?: React.ReactNode;
13
+ addContent?: React.ReactNode;
14
+ __designMode: string;
15
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/components/dataSourceComponents/dataSourceTable/type.ts
16
+ var type_exports = {};
17
+ module.exports = __toCommonJS(type_exports);
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { CheckboxProps, CheckboxGroupProps } from './type';
3
+ declare type CheckboxReadPrettyType = React.FC<CheckboxProps> & {
4
+ Group: React.FC<CheckboxGroupProps>;
5
+ };
6
+ declare const CheckboxReadPretty: CheckboxReadPrettyType;
7
+ export default CheckboxReadPretty;
@@ -0,0 +1,47 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/dataSourceComponents/fields/Checkbox/ReadPretty.tsx
30
+ var ReadPretty_exports = {};
31
+ __export(ReadPretty_exports, {
32
+ default: () => ReadPretty_default
33
+ });
34
+ module.exports = __toCommonJS(ReadPretty_exports);
35
+ var import_useValueMap = __toESM(require("../../hooks/useValueMap"));
36
+ var import_utils = require("../../dataSourceForm/utils");
37
+ var CheckboxReadPretty = (props) => {
38
+ const { value } = props;
39
+ return (0, import_utils.renderValueWithMap)(value);
40
+ };
41
+ var CheckboxGroupReadPretty = (props) => {
42
+ const { value, options } = props;
43
+ const valueMap = (0, import_useValueMap.default)(options || []);
44
+ return (0, import_utils.renderValueWithMap)(value, valueMap);
45
+ };
46
+ CheckboxReadPretty.Group = CheckboxGroupReadPretty;
47
+ var ReadPretty_default = CheckboxReadPretty;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare type CheckboxComponent = React.FC & {
3
+ Group: typeof CheckboxGroupWithMode;
4
+ };
5
+ declare const CheckboxWithMode: CheckboxComponent;
6
+ declare const CheckboxGroupWithMode: import("react").FC<import("./type").CheckboxGroupProps & import("../../dataSourceForm/utils").WithModeProps>;
7
+ export default CheckboxWithMode;
@@ -0,0 +1,41 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/dataSourceComponents/fields/Checkbox/WithMode.ts
30
+ var WithMode_exports = {};
31
+ __export(WithMode_exports, {
32
+ default: () => WithMode_default
33
+ });
34
+ module.exports = __toCommonJS(WithMode_exports);
35
+ var import_utils = require("../../dataSourceForm/utils");
36
+ var import_checkbox = __toESM(require("../../../checkbox"));
37
+ var import_ReadPretty = __toESM(require("./ReadPretty"));
38
+ var CheckboxWithMode = (0, import_utils.withMode)(import_checkbox.default, import_ReadPretty.default);
39
+ var CheckboxGroupWithMode = (0, import_utils.withMode)(import_checkbox.default.Group, import_ReadPretty.default.Group);
40
+ CheckboxWithMode.Group = CheckboxGroupWithMode;
41
+ var WithMode_default = CheckboxWithMode;
@@ -0,0 +1,6 @@
1
+ import CheckboxWithMode from './WithMode';
2
+ declare type CheckboxComponent = typeof CheckboxWithMode & {
3
+ Group: typeof CheckboxWithMode.Group;
4
+ };
5
+ declare const Checkbox: CheckboxComponent;
6
+ export default Checkbox;
@@ -0,0 +1,40 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/dataSourceComponents/fields/Checkbox/index.tsx
30
+ var Checkbox_exports = {};
31
+ __export(Checkbox_exports, {
32
+ default: () => Checkbox_default
33
+ });
34
+ module.exports = __toCommonJS(Checkbox_exports);
35
+ var import_WithMode = __toESM(require("./WithMode"));
36
+ var import_utils = require("../../dataSourceForm/utils");
37
+ var Checkbox = (0, import_utils.withFormItem)(import_WithMode.default);
38
+ var CheckboxGroupWithFormItem = (0, import_utils.withFormItem)(import_WithMode.default.Group);
39
+ Checkbox.Group = CheckboxGroupWithFormItem;
40
+ var Checkbox_default = Checkbox;
@@ -0,0 +1,9 @@
1
+ import { CheckboxProps as AntCheckboxProps } from 'antd';
2
+ import { CheckboxGroupProps as AntCheckboxGroupProps } from 'antd/es/checkbox';
3
+ import { ModeType } from "../../dataSourceForm/type";
4
+ export interface CheckboxProps extends AntCheckboxProps {
5
+ renderMode: ModeType;
6
+ }
7
+ export interface CheckboxGroupProps extends AntCheckboxGroupProps {
8
+ renderMode: ModeType;
9
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/components/dataSourceComponents/fields/Checkbox/type.ts
16
+ var type_exports = {};
17
+ module.exports = __toCommonJS(type_exports);
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ColorPickerProps } from './type';
3
+ declare const ColorPickerReadPretty: (props: ColorPickerProps) => React.JSX.Element;
4
+ export default ColorPickerReadPretty;
@@ -0,0 +1,40 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/dataSourceComponents/fields/ColorPicker/ReadPretty.tsx
30
+ var ReadPretty_exports = {};
31
+ __export(ReadPretty_exports, {
32
+ default: () => ReadPretty_default
33
+ });
34
+ module.exports = __toCommonJS(ReadPretty_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var ColorPickerReadPretty = (props) => {
38
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.ColorPicker, { ...props, open: false });
39
+ };
40
+ var ReadPretty_default = ColorPickerReadPretty;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ColorPickerWithMode: import("react").FC<import("antd").ColorPickerProps & import("../../dataSourceForm/utils").WithModeProps>;
3
+ export default ColorPickerWithMode;
@@ -0,0 +1,39 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/dataSourceComponents/fields/ColorPicker/WithMode.ts
30
+ var WithMode_exports = {};
31
+ __export(WithMode_exports, {
32
+ default: () => WithMode_default
33
+ });
34
+ module.exports = __toCommonJS(WithMode_exports);
35
+ var import_antd = require("antd");
36
+ var import_ReadPretty = __toESM(require("./ReadPretty"));
37
+ var import_utils = require("../../dataSourceForm/utils");
38
+ var ColorPickerWithMode = (0, import_utils.withMode)(import_antd.ColorPicker, import_ReadPretty.default);
39
+ var WithMode_default = ColorPickerWithMode;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ColorPicker: React.FC<import("antd").ColorPickerProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps>;
3
+ export default ColorPicker;
@@ -0,0 +1,38 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/dataSourceComponents/fields/ColorPicker/index.tsx
30
+ var ColorPicker_exports = {};
31
+ __export(ColorPicker_exports, {
32
+ default: () => ColorPicker_default
33
+ });
34
+ module.exports = __toCommonJS(ColorPicker_exports);
35
+ var import_utils = require("../../dataSourceForm/utils");
36
+ var import_WithMode = __toESM(require("./WithMode"));
37
+ var ColorPicker = (0, import_utils.withFormItem)(import_WithMode.default);
38
+ var ColorPicker_default = ColorPicker;