vap1 0.4.5 → 0.5.0

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 (368) hide show
  1. package/base.json +30 -0
  2. package/basetype.d.ts +4 -1
  3. package/cems/admin/AsyncSelect.d.ts +45 -0
  4. package/cems/admin/AsyncSelect.js +2 -0
  5. package/cems/admin/CardTable.d.ts +207 -0
  6. package/cems/admin/CardTable.js +2 -0
  7. package/cems/admin/EasyuiTree.d.ts +131 -0
  8. package/cems/admin/EasyuiTree.js +2 -0
  9. package/cems/admin/utils.d.ts +5 -0
  10. package/cems/admin/utils.js +3 -0
  11. package/cems/admin/validator.d.ts +137 -0
  12. package/cems/admin/validator.js +2 -0
  13. package/cems/assets/CUpload.d.ts +23 -0
  14. package/cems/assets/CUpload.js +2 -0
  15. package/cems/assets/Charts.d.ts +37 -0
  16. package/cems/assets/Charts.js +2 -0
  17. package/cems/assets/DInfo.d.ts +38 -0
  18. package/cems/assets/DInfo.js +2 -0
  19. package/cems/assets/DModal.d.ts +84 -0
  20. package/cems/assets/DModal.js +2 -0
  21. package/cems/assets/DTable.d.ts +128 -0
  22. package/cems/assets/DTable.js +2 -0
  23. package/cems/assets/DivWidth.d.ts +14 -0
  24. package/cems/assets/DivWidth.js +2 -0
  25. package/cems/assets/Patch.d.ts +9 -0
  26. package/cems/assets/Patch.js +2 -0
  27. package/cems/assets/Sensitive.d.ts +33 -0
  28. package/cems/assets/Sensitive.js +2 -0
  29. package/cems/assets/types.d.ts +200 -0
  30. package/cems/assets/types.js +2 -0
  31. package/cems/assets/utils.d.ts +61 -0
  32. package/cems/assets/utils.js +2 -0
  33. package/cems/define.d.ts +9 -0
  34. package/cems/define.js +18 -0
  35. package/cems/index.d.ts +228 -0
  36. package/cems/index.js +81 -0
  37. package/cems/policy/CForm.d.ts +133 -0
  38. package/cems/policy/CForm.js +2 -0
  39. package/cems/policy/DApiTable.d.ts +78 -0
  40. package/cems/policy/DApiTable.js +2 -0
  41. package/cems/policy/DButton.d.ts +17 -0
  42. package/cems/policy/DButton.js +2 -0
  43. package/cems/policy/DCheckbox.d.ts +50 -0
  44. package/cems/policy/DCheckbox.js +2 -0
  45. package/cems/policy/DCheckboxGroup.d.ts +34 -0
  46. package/cems/policy/DCheckboxGroup.js +2 -0
  47. package/cems/policy/DCol.d.ts +33 -0
  48. package/cems/policy/DCol.js +2 -0
  49. package/cems/policy/DColorPicker.d.ts +9 -0
  50. package/cems/policy/DColorPicker.js +2 -0
  51. package/cems/policy/DDatePicker.d.ts +41 -0
  52. package/cems/policy/DDatePicker.js +2 -0
  53. package/cems/policy/DDiv.d.ts +65 -0
  54. package/cems/policy/DDiv.js +2 -0
  55. package/cems/policy/DDrawer.d.ts +6 -0
  56. package/cems/policy/DDrawer.js +2 -0
  57. package/cems/policy/DDynamicSelect.d.ts +50 -0
  58. package/cems/policy/DDynamicSelect.js +2 -0
  59. package/cems/policy/DDynamicTreeSelect.d.ts +45 -0
  60. package/cems/policy/DDynamicTreeSelect.js +2 -0
  61. package/cems/policy/DForm.d.ts +248 -0
  62. package/cems/policy/DForm.js +2 -0
  63. package/cems/policy/DIcon.d.ts +33 -0
  64. package/cems/policy/DIcon.js +2 -0
  65. package/cems/policy/DInput.d.ts +41 -0
  66. package/cems/policy/DInput.js +2 -0
  67. package/cems/policy/DLabel.d.ts +17 -0
  68. package/cems/policy/DLabel.js +2 -0
  69. package/cems/policy/DPTable.d.ts +86 -0
  70. package/cems/policy/DPTable.js +2 -0
  71. package/cems/policy/DRadio.d.ts +34 -0
  72. package/cems/policy/DRadio.js +2 -0
  73. package/cems/policy/DSCTable.d.ts +33 -0
  74. package/cems/policy/DSCTable.js +2 -0
  75. package/cems/policy/DSelect.d.ts +42 -0
  76. package/cems/policy/DSelect.js +2 -0
  77. package/cems/policy/DSlider.d.ts +21 -0
  78. package/cems/policy/DSlider.js +2 -0
  79. package/cems/policy/DSwitch.d.ts +21 -0
  80. package/cems/policy/DSwitch.js +2 -0
  81. package/cems/policy/DTab.d.ts +30 -0
  82. package/cems/policy/DTab.js +2 -0
  83. package/cems/policy/DTimePicker.d.ts +37 -0
  84. package/cems/policy/DTimePicker.js +2 -0
  85. package/cems/policy/DTree.d.ts +98 -0
  86. package/cems/policy/DTree.js +2 -0
  87. package/cems/policy/DUpload.d.ts +33 -0
  88. package/cems/policy/DUpload.js +2 -0
  89. package/cems/policy/types.d.ts +200 -0
  90. package/cems/policy/types.js +2 -0
  91. package/cems/policy/utils.d.ts +13 -0
  92. package/cems/policy/utils.js +2 -0
  93. package/components/Box/Box.d.ts +43 -7
  94. package/components/Box/Box.js +67 -17
  95. package/components/Box/SelectBar.d.ts +1 -1
  96. package/components/Box/SelectBar.js +19 -9
  97. package/components/Lists/BaseList.d.ts +5 -0
  98. package/components/Lists/BaseList.js +111 -0
  99. package/components/Lists/Fields/IconRender.d.ts +53 -0
  100. package/components/Lists/Fields/IconRender.js +174 -0
  101. package/components/Lists/Fields/ItemRender.d.ts +2 -0
  102. package/components/Lists/Fields/ItemRender.js +127 -0
  103. package/components/Lists/Fields/_utils.d.ts +3 -0
  104. package/components/Lists/Fields/_utils.js +80 -0
  105. package/components/Lists/Fields/index.d.ts +3 -0
  106. package/components/Lists/Fields/index.js +47 -0
  107. package/components/Lists/Grid/grid.d.ts +7 -0
  108. package/components/Lists/Grid/grid.js +18 -0
  109. package/components/Lists/Grid/index.d.ts +3 -0
  110. package/components/Lists/Grid/index.js +50 -0
  111. package/components/Lists/Row/index.d.ts +3 -0
  112. package/components/Lists/Row/index.js +14 -0
  113. package/components/Lists/SList.js +17 -7
  114. package/components/Lists/Timeline/index.d.ts +3 -0
  115. package/components/Lists/Timeline/index.js +117 -0
  116. package/components/Lists/VList.d.ts +3 -0
  117. package/components/Lists/VList.js +92 -0
  118. package/components/Lists/components/LayoutSwitcher.d.ts +13 -0
  119. package/components/Lists/components/LayoutSwitcher.js +121 -0
  120. package/components/Lists/components/SearchTool.d.ts +13 -0
  121. package/components/Lists/components/SearchTool.js +34 -0
  122. package/components/Lists/index.d.ts +129 -0
  123. package/components/Lists/index.js +2 -0
  124. package/components/SearchTool/SearchBand/BandInput.d.ts +3 -0
  125. package/components/SearchTool/SearchBand/BandInput.js +54 -0
  126. package/components/SearchTool/SearchBand/BandTag.d.ts +7 -0
  127. package/components/SearchTool/SearchBand/BandTag.js +82 -0
  128. package/components/SearchTool/SearchBand/_SearchBandAction.d.ts +3 -0
  129. package/components/SearchTool/SearchBand/_SearchBandAction.js +23 -0
  130. package/components/SearchTool/SearchBand/_SearchBandFix.d.ts +3 -0
  131. package/components/SearchTool/SearchBand/_SearchBandFix.js +72 -0
  132. package/components/SearchTool/SearchBand/_SearchBandTag.d.ts +3 -0
  133. package/components/SearchTool/SearchBand/_SearchBandTag.js +75 -0
  134. package/components/SearchTool/SearchBand/_register.d.ts +47 -0
  135. package/components/SearchTool/SearchBand/_register.js +15 -0
  136. package/components/SearchTool/SearchBand/hooks.d.ts +12 -0
  137. package/components/SearchTool/SearchBand/hooks.js +181 -0
  138. package/components/SearchTool/SearchBand/index.d.ts +3 -0
  139. package/components/SearchTool/SearchBand/index.js +66 -0
  140. package/components/SearchTool/SearchBand/type.d.ts +71 -0
  141. package/components/SearchTool/SearchBand/type.js +3 -0
  142. package/components/{SearchBar → SearchTool/SearchBar}/ActionButtons.d.ts +2 -2
  143. package/components/{SearchBar → SearchTool/SearchBar}/ActionButtons.js +22 -12
  144. package/components/{SearchBar → SearchTool/SearchBar}/ByField.d.ts +1 -1
  145. package/components/{SearchBar → SearchTool/SearchBar}/ByField.js +21 -11
  146. package/components/{SearchBar → SearchTool/SearchBar}/ByKeyword.d.ts +1 -1
  147. package/components/{SearchBar → SearchTool/SearchBar}/ByKeyword.js +20 -10
  148. package/components/{SearchBar → SearchTool/SearchBar}/SearchField.d.ts +1 -1
  149. package/components/{SearchBar → SearchTool/SearchBar}/SearchTags.js +1 -1
  150. package/components/{SearchBar → SearchTool/SearchBar}/_register.d.ts +1 -1
  151. package/components/{SearchBar → SearchTool/SearchBar}/_register.js +3 -3
  152. package/components/SearchTool/SearchBar/index.d.ts +7 -0
  153. package/components/{SearchBar → SearchTool/SearchBar}/index.js +1 -1
  154. package/components/{SearchBar/index.d.ts → SearchTool/SearchBar/type.d.ts} +68 -67
  155. package/components/SearchTool/SearchBar/type.js +35 -0
  156. package/components/SearchTool/index.d.ts +5 -0
  157. package/components/SearchTool/index.js +7 -0
  158. package/components/Tables/ApiTable.d.ts +5 -7
  159. package/components/Tables/ApiTable.js +17 -7
  160. package/components/Tables/ApiTableModal.d.ts +5 -7
  161. package/components/Tables/ApiTableModal.js +17 -7
  162. package/components/Tables/Components/ActionBar.d.ts +8 -11
  163. package/components/Tables/Components/ActionBar.js +74 -41
  164. package/components/Tables/Components/Actions.d.ts +3 -1
  165. package/components/Tables/Components/Actions.js +40 -3
  166. package/components/Tables/Components/index.d.ts +3 -1
  167. package/components/Tables/Components/useTableContext.d.ts +16 -0
  168. package/components/Tables/Components/useTableContext.js +116 -0
  169. package/components/Tables/STable.js +17 -7
  170. package/components/Tables/TopTable.js +17 -7
  171. package/components/Tables/Util.d.ts +2 -2
  172. package/components/Tables/Util.js +0 -1
  173. package/components/Tables/VTable.d.ts +9 -9
  174. package/components/Tables/VTable.js +119 -172
  175. package/components/Tables/VTableBack.d.ts +0 -0
  176. package/components/Tables/VTableBack.js +269 -0
  177. package/components/Tables/index.d.ts +11 -22
  178. package/components/TreeSelect/BaseTreeSelect.js +17 -7
  179. package/components/TreeSelect/DTreeSelect.js +19 -9
  180. package/components/TreeSelect/FTreeSelect.js +2 -2
  181. package/components/TreeSelect/STreeSelect.js +1 -1
  182. package/components/Trees/ActionTree.d.ts +3 -5
  183. package/components/Trees/ActionTree.js +19 -9
  184. package/components/Trees/BaseTree.js +17 -7
  185. package/components/Trees/COTree/COButton.js +17 -7
  186. package/components/Trees/COTree/COSelect.js +17 -7
  187. package/components/Trees/COTree/COTree.js +19 -9
  188. package/components/Trees/DTree.d.ts +0 -7
  189. package/components/Trees/DTree.js +19 -9
  190. package/components/Trees/FTree.js +19 -9
  191. package/components/Trees/STree.js +17 -7
  192. package/components/UForm/FormWrapper.js +17 -7
  193. package/components/UForm/UDescriptions.d.ts +2 -3
  194. package/components/UForm/UDescriptions.js +17 -7
  195. package/components/UForm/UForm.d.ts +1 -1
  196. package/components/UForm/UForm.js +24 -11
  197. package/components/UForm/UFormModal.js +19 -9
  198. package/components/UForm/_FieldType.d.ts +1 -1
  199. package/components/UForm/_FieldType.js +4 -0
  200. package/components/UForm/_input.d.ts +5 -1
  201. package/components/UForm/_input.js +25 -8
  202. package/components/Upload/UploadImage.js +17 -7
  203. package/components/Upload/UploadModal.js +19 -9
  204. package/components/Upload/useUpload.js +2 -2
  205. package/components/_adapt/Alert.js +17 -7
  206. package/components/_adapt/Col.d.ts +1 -1
  207. package/components/_adapt/ColorPicker.js +17 -7
  208. package/components/_adapt/Drawer.js +17 -7
  209. package/components/_adapt/Dropdown.js +17 -7
  210. package/components/_adapt/FloatButton.js +17 -7
  211. package/components/_adapt/Input.js +17 -7
  212. package/components/_adapt/InputNumber.js +17 -7
  213. package/components/_adapt/Layout.js +17 -7
  214. package/components/_adapt/Menu.js +17 -7
  215. package/components/_adapt/Modal.js +17 -7
  216. package/components/_adapt/Popconfirm.js +17 -7
  217. package/components/_adapt/Popover.js +17 -7
  218. package/components/_adapt/Progress.js +17 -7
  219. package/components/_adapt/Select.js +17 -7
  220. package/components/_adapt/Table.js +17 -7
  221. package/components/_adapt/Tabs.js +17 -7
  222. package/components/_adapt/Tag.js +17 -7
  223. package/components/_adapt/TreeSelect.js +17 -7
  224. package/components/_adapt/todo/Image.d.ts +0 -1
  225. package/components/_adapt/todo/Segmented.d.ts +0 -1
  226. package/components/_common/AutoComplete.js +35 -12
  227. package/components/_common/CountUp.js +17 -7
  228. package/components/_common/DateRange.d.ts +5 -2
  229. package/components/_common/DateRange.js +43 -40
  230. package/components/_common/HighLight.d.ts +1 -1
  231. package/components/_common/HighLight.js +26 -24
  232. package/components/_common/Loading.js +17 -7
  233. package/components/_common/MonthRange.js +17 -7
  234. package/components/_common/PromiseLabel.js +2 -2
  235. package/components/_common/UTitle.d.ts +1 -1
  236. package/components/_common/UTitle.js +18 -8
  237. package/components/_common/Upagination.d.ts +1 -0
  238. package/components/_common/Upagination.js +5 -1
  239. package/components/_i18n.d.ts +1 -102
  240. package/components/index.d.ts +2 -2
  241. package/components/index.js +5 -1
  242. package/deps/JsonView.js +17 -7
  243. package/deps/app-audit/LookUp.js +19 -9
  244. package/deps/app-data/Const.d.ts +68 -3
  245. package/deps/app-data/Const.js +47 -3
  246. package/deps/app-data/TimeConst.d.ts +0 -0
  247. package/deps/app-data/TimeConst.js +58 -0
  248. package/deps/app-data/useSource.d.ts +22 -0
  249. package/deps/app-data/useSource.js +253 -162
  250. package/deps/echarts.d.ts +3 -0
  251. package/deps/echarts.js +20 -10
  252. package/deps/editor/Article.js +17 -7
  253. package/deps/editor/Editor.js +17 -7
  254. package/deps/editor/EditorModal.js +17 -7
  255. package/deps/editor/support/buttons/ImageButton.js +17 -7
  256. package/deps/editor/tools/Button.js +0 -2
  257. package/deps/editor/tools/_TxtButton.js +17 -7
  258. package/deps/vapc/_basic.d.ts +1 -0
  259. package/deps/vapc/_basic.js +15 -0
  260. package/deps/vapc/index.d.ts +10 -0
  261. package/deps/vapc/index.js +70 -0
  262. package/hooks/useAjaxAction.js +2 -2
  263. package/hooks/useAjaxQuery.js +2 -2
  264. package/hooks/useApiBase.js +2 -2
  265. package/hooks/useApiGlobal.js +1 -1
  266. package/hooks/useArray.js +2 -2
  267. package/hooks/useDefault.d.ts +0 -1
  268. package/hooks/useDoLoad.d.ts +1 -1
  269. package/hooks/useError.d.ts +1 -1
  270. package/hooks/useMemoPromise.js +2 -2
  271. package/index.d.ts +2 -1
  272. package/index.js +1 -1
  273. package/login/Base65.d.ts +7 -1
  274. package/login/Base65.js +49 -22
  275. package/login/Password.d.ts +8 -5
  276. package/login/Password.js +68 -102
  277. package/package.json +1 -1
  278. package/screen/Page.js +17 -7
  279. package/screen/vapc-schema/dark.d.ts +1 -0
  280. package/screen/vapc-schema/dark.js +50 -0
  281. package/screen/vapc-schema/insight.d.ts +1 -0
  282. package/screen/vapc-schema/insight.js +49 -0
  283. package/uform/FormEditor.js +17 -7
  284. package/uform/FormViewer.js +17 -7
  285. package/uform/hooks/useEditor.d.ts +0 -1
  286. package/uform/hooks/useForm.d.ts +0 -1
  287. package/uform/inputs/index.d.ts +0 -1
  288. package/uform/panel/Editor/_GroupDefault.js +17 -7
  289. package/uform/panel/Editor/_GroupStep.js +17 -7
  290. package/uform/panel/Editor/_GroupTab.js +17 -7
  291. package/uform/panel/Editor/index.js +17 -7
  292. package/uform/panel/Items/Fields.js +17 -7
  293. package/uform/panel/Items/InputSelector.js +17 -7
  294. package/uform/panel/Items/Inputs.js +17 -7
  295. package/uform/panel/Items/index.d.ts +1 -1
  296. package/uform/panel/Propreties/CanvasProperties.js +17 -7
  297. package/uform/panel/Propreties/Component/FieldPlugin.js +17 -7
  298. package/uform/panel/Propreties/Component/LinkAsyncFunction.js +17 -7
  299. package/uform/panel/Propreties/Component/LinkSyncFunction.js +17 -7
  300. package/uform/panel/Propreties/Component/Links.js +17 -7
  301. package/uform/panel/Propreties/Component/OptionTable.js +17 -7
  302. package/uform/panel/Propreties/Component/RegexpModal.js +17 -7
  303. package/uform/panel/Propreties/Component/Validate.js +17 -7
  304. package/uform/panel/Propreties/Component/ValidateAsyncFunction.js +17 -7
  305. package/uform/panel/Propreties/Component/ValidateSyncFunction.js +17 -7
  306. package/uform/panel/Propreties/FieldOptions.js +17 -7
  307. package/uform/panel/Propreties/FieldProperties.js +17 -7
  308. package/uform/panel/Propreties/_ItemAdvance.js +17 -7
  309. package/uform/panel/Propreties/_ItemBase.js +17 -7
  310. package/uform/panel/Propreties/_ItemLink.js +17 -7
  311. package/uform/panel/Propreties/_ItemValidate.js +17 -7
  312. package/uform/schema.d.ts +1 -1
  313. package/uform/utils/Convert.js +2 -2
  314. package/utils/Ajax.d.ts +3 -0
  315. package/utils/Ajax.js +22 -16
  316. package/utils/CacheUtil.d.ts +1 -1
  317. package/utils/Const.js +17 -7
  318. package/utils/Format.d.ts +138 -14
  319. package/utils/Format.js +132 -23
  320. package/utils/Global.d.ts +46 -2
  321. package/utils/Global.js +24 -2
  322. package/utils/PageUtil.d.ts +111 -23
  323. package/utils/PageUtil.js +163 -28
  324. package/utils/Renders/ApiGetRender.js +25 -12
  325. package/utils/Renders/ApiPostRender.js +3 -3
  326. package/utils/Renders/CondictionRender.js +17 -7
  327. package/utils/Renders/DateRender.js +20 -2
  328. package/utils/Renders/ListRender.js +1 -1
  329. package/utils/Renders/NumberRender.js +24 -5
  330. package/utils/Renders/StringRender.js +81 -11
  331. package/utils/Renders/_define.d.ts +8 -7
  332. package/utils/Renders/_define.js +76 -17
  333. package/utils/StringUtil.d.ts +292 -62
  334. package/utils/StringUtil.js +310 -63
  335. package/utils/TreeUtil.js +14 -12
  336. package/utils/VAP.d.ts +26 -1
  337. package/utils/VAP.js +57 -1
  338. package/utils/_AjaxUtil.d.ts +1 -0
  339. package/utils/_AjaxUtil.js +70 -3
  340. package/utils/_Support.d.ts +2 -2
  341. package/utils/_Support.js +4 -2
  342. package/utils/crontab/_en.d.ts +2 -0
  343. package/utils/crontab/_en.js +178 -0
  344. package/utils/crontab/_global.d.ts +11 -0
  345. package/utils/crontab/_global.js +23 -0
  346. package/utils/crontab/_zh_CN.d.ts +2 -0
  347. package/utils/crontab/_zh_CN.js +180 -0
  348. package/utils/crontab/_zh_TW.d.ts +2 -0
  349. package/utils/crontab/_zh_TW.js +170 -0
  350. package/utils/crontab/crontabParser.d.ts +1 -0
  351. package/utils/crontab/crontabParser.js +251 -0
  352. package/utils/crontab/crontabRender.d.ts +23 -0
  353. package/utils/crontab/crontabRender.js +502 -0
  354. package/utils/crontab/index.d.ts +3 -0
  355. package/utils/crontab/index.js +9 -0
  356. package/utils/crontab/type.d.ts +79 -0
  357. package/utils/crontab/type.js +2 -0
  358. package/utils/crontab/utils.d.ts +20 -0
  359. package/utils/crontab/utils.js +122 -0
  360. package/utils/i18n.d.ts +13 -2
  361. package/utils/i18n.js +13 -2
  362. package/utils/index.d.ts +4 -0
  363. package/utils/index.js +19 -9
  364. package/utils/py.js +2 -0
  365. package/components/SearchBar/_FieldType.d.ts +0 -8
  366. package/components/SearchBar/_FieldType.js +0 -51
  367. /package/components/{SearchBar → SearchTool/SearchBar}/SearchField.js +0 -0
  368. /package/components/{SearchBar → SearchTool/SearchBar}/SearchTags.d.ts +0 -0
@@ -0,0 +1,9 @@
1
+ import type { DMethodRef, DBaseProps } from "./types";
2
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
3
+ export type DColorPickerProps = Omit<DBaseProps, 'width' | 'height'> & {
4
+ /**
5
+ * 大小 1是 0否 默认0
6
+ */
7
+ size?: 'large' | 'middle' | 'small';
8
+ };
9
+ export type DColorPickerComponent = ForwardRefExoticComponent<DColorPickerProps & RefAttributes<DMethodRef>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,41 @@
1
+ import type { DMethodRef, DBaseProps } from "./types";
2
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
3
+ export type DDatePickerProps = Omit<DBaseProps, 'height'> & {
4
+ /**
5
+ * 绑定Key2
6
+ */
7
+ dataKey2?: string;
8
+ /**
9
+ * 必填2 0否 1是
10
+ */
11
+ required2?: '0' | '1';
12
+ /**
13
+ * 日期段连接符
14
+ */
15
+ dateSplit?: string;
16
+ /**
17
+ * 格式化 默认 YYYY/MM/DD
18
+ */
19
+ showFormat?: string;
20
+ /**
21
+ * 显示时间 0否 1是
22
+ */
23
+ showTime?: '0' | '1';
24
+ /**
25
+ * 允许清空 0否 1是
26
+ */
27
+ allowClear?: '0' | '1';
28
+ /**
29
+ * 允许清空2 0否 1是
30
+ */
31
+ allowClear2?: '0' | '1';
32
+ /**
33
+ * 禁用时间
34
+ */
35
+ disabledDate?: (cArgs: any) => any;
36
+ /**
37
+ * 大小 large middle small
38
+ */
39
+ size?: 'large' | ' middle' | 'small';
40
+ };
41
+ export type DDatePickerComponent = ForwardRefExoticComponent<DDatePickerProps & RefAttributes<DMethodRef>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,65 @@
1
+ import type { DMethodRef, DBaseProps } from "./types";
2
+ import type { ForwardRefExoticComponent, ReactNode, RefAttributes, CSSProperties } from "react";
3
+ export type DDivProps = Pick<DBaseProps, 'cId' | 'style' | 'className' | 'onChange' | 'width'> & {
4
+ /**
5
+ * 文本
6
+ */
7
+ text?: string;
8
+ /**
9
+ * 行高
10
+ */
11
+ lHeight?: number | string;
12
+ /**
13
+ * 点击事件值
14
+ */
15
+ changeValue?: string;
16
+ /**
17
+ * 标题文本
18
+ */
19
+ hText?: string;
20
+ /**
21
+ * 标题预置格式 0无样式 1背景样式1 2下划线样式2
22
+ */
23
+ hType?: '0' | '1' | '2';
24
+ /**
25
+ * 外css样式
26
+ */
27
+ divStyle?: CSSProperties;
28
+ /**
29
+ * 标题容器切换 0否 1是 默认0
30
+ */
31
+ hClick?: '0' | '1';
32
+ /**
33
+ * 标题容器样式
34
+ */
35
+ hStyle?: CSSProperties;
36
+ /**
37
+ * 标题css样式
38
+ */
39
+ tStyle?: CSSProperties;
40
+ /**
41
+ * 选中图标
42
+ */
43
+ yIcon?: string;
44
+ /**
45
+ * 未选中图标
46
+ */
47
+ nIcon?: string;
48
+ /**
49
+ * 图标css样式
50
+ */
51
+ iStyle?: CSSProperties;
52
+ /**
53
+ * 选中图标样式
54
+ */
55
+ yStyle?: CSSProperties;
56
+ /**
57
+ * 未中图标样式
58
+ */
59
+ nStyle?: CSSProperties;
60
+ /**
61
+ * 子组件
62
+ */
63
+ children?: ReactNode;
64
+ };
65
+ export type DDivComponent = ForwardRefExoticComponent<DDivProps & RefAttributes<DMethodRef>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import type { DRootProps, MethodRef } from "./DForm";
2
+ import type { FC } from "react";
3
+ export type DDrawerProps = Omit<DRootProps, 'Data'> & MethodRef & {
4
+ [typeName: string]: any;
5
+ };
6
+ export type DDrawerComponent = FC<DDrawerProps>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,50 @@
1
+ import type { DMethodRef, DBaseProps } from "./types";
2
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
3
+ import type { PlainObject } from "../../basetype";
4
+ export type DDynamicSelectProps = Omit<DBaseProps, 'height'> & {
5
+ /**
6
+ * 下来数据源
7
+ */
8
+ dataApi?: string;
9
+ /**
10
+ * 接口参数
11
+ */
12
+ params?: PlainObject;
13
+ /**
14
+ * 多选 0否 1是
15
+ */
16
+ mode?: '0' | '1';
17
+ /**
18
+ * 多选拼接 默认是逗号
19
+ */
20
+ join?: string;
21
+ /**
22
+ * 值字段
23
+ */
24
+ valueKey?: string;
25
+ /**
26
+ * 显示字段
27
+ */
28
+ labelKey?: string;
29
+ /**
30
+ * 排序字段
31
+ */
32
+ sortKey?: string;
33
+ /**
34
+ * 默认值
35
+ */
36
+ dValue?: string;
37
+ /**
38
+ * 提示文字
39
+ */
40
+ placeholder?: string;
41
+ /**
42
+ * 允许清空 0否 1是
43
+ */
44
+ allowClear?: '0' | '1';
45
+ /**
46
+ * 大小 large middle small
47
+ */
48
+ size?: 'large' | ' middle' | 'small';
49
+ };
50
+ export type DDynamicSelectComponent = ForwardRefExoticComponent<DDynamicSelectProps & RefAttributes<DMethodRef>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,45 @@
1
+ import type { DMethodRef, DBaseProps } from "./types";
2
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
3
+ export type DDynamicTreeSelectProps = Omit<DBaseProps, 'height'> & {
4
+ /**
5
+ * 显示Key
6
+ */
7
+ showKey?: string;
8
+ /**
9
+ * 根接口
10
+ */
11
+ rootApi?: string;
12
+ /**
13
+ * 下级接口
14
+ */
15
+ childApi?: string;
16
+ /**
17
+ * 值字段
18
+ */
19
+ valueKey?: string;
20
+ /**
21
+ * 显示字段
22
+ */
23
+ labelKey?: string;
24
+ /**
25
+ * 上级字段
26
+ */
27
+ parentKey?: string;
28
+ /**
29
+ * 默认值
30
+ */
31
+ dValue?: string;
32
+ /**
33
+ * 提示文字
34
+ */
35
+ placeholder?: string;
36
+ /**
37
+ * 允许清空 0否 1是
38
+ */
39
+ allowClear?: '0' | '1';
40
+ /**
41
+ * 大小 large middle small
42
+ */
43
+ size?: 'large' | ' middle' | 'small';
44
+ };
45
+ export type DDynamicTreeSelectComponent = ForwardRefExoticComponent<DDynamicTreeSelectProps & RefAttributes<DMethodRef>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,248 @@
1
+ import type { CSSProperties, ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
2
+ import type { FormSchemaType } from "./types";
3
+ import type { PlainObject } from "../../basetype";
4
+ /**
5
+ * 表单方法定义
6
+ */
7
+ export type MethodRef = {
8
+ /**
9
+ * 修改组件的属性 同时修改多个属性时,请传一个对象
10
+ * @param pKey 组件属性路径
11
+ * @param pVal 属性值
12
+ * @returns
13
+ */
14
+ setAttr: (pKey: string | PlainObject, pVal?: any) => void;
15
+ getAttr: (pKey: string) => any;
16
+ /**
17
+ * 设置数据的值 同时修改多个数据时,请传一个对象
18
+ * @param pKey 属性路径
19
+ * @param pVal 属性值
20
+ * @returns
21
+ */
22
+ setValue: (pKey: string | PlainObject, pVal?: any) => void;
23
+ /**
24
+ * 删除数据的属性
25
+ * @param pKey 属性路径
26
+ * @returns
27
+ */
28
+ delValue: (pKey: string) => void;
29
+ /**
30
+ * 获取数据的值
31
+ * @param pKey 属性路径
32
+ * @returns
33
+ */
34
+ getValue: (pKey: string, defValue?: any) => any;
35
+ callTemplateFunc: (tValue: any, fValue?: any) => any;
36
+ getExpValue: (eValue: any, fValue?: any) => any;
37
+ };
38
+ /**
39
+ * 表单ref定义
40
+ */
41
+ export type DFormRef = {
42
+ /**
43
+ * 提交获取数据
44
+ * @returns false 表示表单有验证失败的情况
45
+ */
46
+ submit: () => any;
47
+ };
48
+ /**
49
+ * 表单的根组件ref定义
50
+ */
51
+ export type DRootRef = DFormRef & MethodRef;
52
+ /**
53
+ * 根组件的参数
54
+ */
55
+ export type DRootProps = {
56
+ /**
57
+ * 组件实例id
58
+ */
59
+ cId: string;
60
+ /**
61
+ * 表单描述
62
+ */
63
+ Schema?: FormSchemaType;
64
+ /**
65
+ * 表单数据
66
+ */
67
+ Data?: PlainObject;
68
+ /**
69
+ * 表单参数
70
+ */
71
+ Design?: boolean;
72
+ /**
73
+ * 表单其他控制参数
74
+ */
75
+ Config?: PlainObject;
76
+ changeSchema?: (pKey: string | PlainObject, pVal?: any) => void;
77
+ setTempFunc: (func: any) => void;
78
+ getTempFunc: () => any;
79
+ /**
80
+ * 在弹窗的表单里获取外面表单的数据
81
+ * @param pKey
82
+ * @param defValue
83
+ * @returns
84
+ */
85
+ getRootValue?: (pKey: string, defValue?: any) => any;
86
+ /**
87
+ * 变化且大于0,表示重新加载
88
+ */
89
+ reload?: number;
90
+ /**
91
+ * 表单数据改变
92
+ * @param data
93
+ * @returns
94
+ */
95
+ onFormChange?: (data: PlainObject) => void;
96
+ /**
97
+ * 表单的数据变化
98
+ * @param key
99
+ * @param value
100
+ * @returns
101
+ */
102
+ onDataChange?: (key: any, value: any) => void;
103
+ /**
104
+ * 子组件
105
+ */
106
+ children?: ReactNode;
107
+ };
108
+ /**
109
+ *
110
+ */
111
+ export type DFormProps = Omit<DRootProps, 'cId' | 'setTempFunc' | 'getTempFunc'> & {
112
+ /**
113
+ * 表单高度
114
+ */
115
+ height?: number;
116
+ /**
117
+ * 表单宽度
118
+ */
119
+ width?: number | string;
120
+ /**
121
+ * 样式
122
+ */
123
+ style?: CSSProperties;
124
+ /**
125
+ * class
126
+ */
127
+ className?: string;
128
+ /**
129
+ * 默认数据
130
+ */
131
+ default?: PlainObject;
132
+ };
133
+ export type DFormContextProps = Omit<DRootProps, 'cId'> & {
134
+ /**
135
+ * 下载文件
136
+ * @param url
137
+ * @param postParam
138
+ * @returns
139
+ */
140
+ download?: (url: string, postParam?: PlainObject) => void;
141
+ };
142
+ export type DFormContext = Omit<DFormProps, 'setTempFunc' | 'getTempFunc' | 'onFormChange' | 'onDataChange'> & MethodRef & {
143
+ /**
144
+ * 更新schema
145
+ * @param schema
146
+ * @returns
147
+ */
148
+ setInitSchema: (schema: FormSchemaType) => any;
149
+ /**
150
+ * 更新初始化数据
151
+ * @param data
152
+ * @returns
153
+ */
154
+ setInitData: (data: PlainObject) => any;
155
+ setInitConfig: (config: PlainObject) => any;
156
+ /**
157
+ * 下载文件
158
+ * @param url
159
+ * @param postParam
160
+ * @returns
161
+ */
162
+ download: (url: string, postParam?: PlainObject) => void;
163
+ getExpValue: (eValue: any, fValue?: any) => any;
164
+ callExpValue: (eValue: any) => any;
165
+ /**
166
+ * 执行事件
167
+ * @param func
168
+ * @returns
169
+ */
170
+ callEvent: (func: any, fValue?: any, init?: any, cId?: any) => void;
171
+ /**执行自定义函数 */
172
+ callTemplateFunc: (tValue: any, fValue?: any) => any;
173
+ /**生成自定义函数 */
174
+ getTemplateFunc: (tValue: any) => any;
175
+ /**
176
+ * 是否重新初始化了数据
177
+ */
178
+ InitStatu?: number;
179
+ /**
180
+ * 错误消息
181
+ */
182
+ getErrMsg: () => any;
183
+ /**
184
+ * 错误报告
185
+ * @param title 控件名称
186
+ * @param msg 错误消息
187
+ * @returns
188
+ */
189
+ errReport: (title: string, msg: string) => void;
190
+ /**
191
+ * 比较版本号
192
+ * @param useVersion
193
+ * @param newVersion
194
+ * @returns newVersion 《= useVersion 返回 true
195
+ */
196
+ compareVersion: (useVersion: string, newVersion: string) => boolean;
197
+ /**
198
+ * 比较ip
199
+ * @param startIp
200
+ * @param endIp
201
+ * @returns 0:相等 1:大 -1:小
202
+ */
203
+ compareIp: (startIp: string, endIp: string) => number;
204
+ /**
205
+ * 获取组件的参数篇
206
+ * @param cId 组件id
207
+ * @returns
208
+ */
209
+ getOption: (cId: string, cType?: string, props?: any) => PlainObject;
210
+ /**
211
+ * 获取文件信息
212
+ * @param fId
213
+ * @param isDrawer 是否弹窗使用
214
+ * @returns
215
+ */
216
+ getFile: (fId: string, isDrawer?: boolean) => PlainObject;
217
+ /**
218
+ * 设置文件信息
219
+ * @param fId
220
+ * @param fInfo
221
+ * @returns
222
+ */
223
+ setFile: (fId: string, nInfo?: PlainObject) => string;
224
+ /**
225
+ * 集合转对象
226
+ * @param aJson
227
+ * @param idAlias id别名 id=id时保留id
228
+ * @returns
229
+ */
230
+ ArrayToObject: (aJson: any, idAlias?: string) => any;
231
+ /**
232
+ * 对象转集合
233
+ * @param oJson
234
+ * @param idAlias id别名 id=id时保留id
235
+ * @returns
236
+ */
237
+ ObjectToArray: (oJson: any, idAlias?: string) => any;
238
+ /**
239
+ * 根据属性(默认:dataKey)找控件Id
240
+ */
241
+ getId: (attrValue: string, attrName?: string, cType?: string) => string;
242
+ /**
243
+ * 正则验证
244
+ * @returns
245
+ */
246
+ regExpTest: (rules: any, nValue: any) => any;
247
+ };
248
+ export type DFormComponent = ForwardRefExoticComponent<DFormProps & RefAttributes<DFormRef>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ import type { DMethodRef, DBaseProps } from "./types";
2
+ import type { ForwardRefExoticComponent, RefAttributes, CSSProperties } from "react";
3
+ export type DIconProps = Omit<DBaseProps, 'br' | 'disabled' | 'required' | 'width' | 'height' | 'onChange'> & {
4
+ /**
5
+ * 大小
6
+ */
7
+ size?: string;
8
+ /**
9
+ * 颜色
10
+ */
11
+ color?: string;
12
+ /**
13
+ * 图片地址
14
+ */
15
+ url?: string;
16
+ /**
17
+ * fromId
18
+ */
19
+ fromId?: string;
20
+ /**
21
+ * 点击事件
22
+ */
23
+ onClick?: () => void;
24
+ /**
25
+ * 图片css样式
26
+ */
27
+ uStyle?: CSSProperties;
28
+ /**
29
+ * 空值隐藏 0否 1是
30
+ */
31
+ uEmpty?: '0' | '1';
32
+ };
33
+ export type DIconComponent = ForwardRefExoticComponent<DIconProps & RefAttributes<DMethodRef>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,41 @@
1
+ import type { DBaseProps, DMethodRef, RegExpType } from "./types";
2
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
3
+ export type DInputProps = DBaseProps & {
4
+ /**
5
+ * 文本框类型 0文本框 1数字文本框 2文本域 3加密密码框 4密码框 默认0
6
+ */
7
+ nType?: '0' | '1' | '2' | '3' | '4';
8
+ /**
9
+ * 最小值
10
+ */
11
+ min?: number;
12
+ /**
13
+ * 最大值
14
+ */
15
+ max?: number;
16
+ /**
17
+ * 非空默认值
18
+ */
19
+ requiredDefValue?: any;
20
+ /**
21
+ * 绑定Key
22
+ */
23
+ rules?: RegExpType;
24
+ /**
25
+ * 提示文字
26
+ */
27
+ placeholder?: string;
28
+ /**
29
+ * 只读 1是 0否 默认0
30
+ */
31
+ readOnly?: '0' | '1';
32
+ /**
33
+ * 大小 1是 0否 默认0
34
+ */
35
+ size?: 'large' | 'middle' | 'small';
36
+ /**
37
+ * 绑定Key 1是 0否 默认0
38
+ */
39
+ trim?: '0' | '1';
40
+ };
41
+ export type DInputComponent = ForwardRefExoticComponent<DInputProps & RefAttributes<DMethodRef>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import type { DBaseProps, DMethodRef } from "./types";
2
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
3
+ export type DLabelProps = Omit<DBaseProps, 'dataKey' | 'disabled' | 'required' | 'height' | 'onChange'> & {
4
+ /**
5
+ * 格式化
6
+ */
7
+ format?: string;
8
+ /**
9
+ * 提示文字
10
+ */
11
+ tipText?: string;
12
+ /**
13
+ * 对齐方式 left左 center中 right右
14
+ */
15
+ align?: 'left' | 'center' | 'right';
16
+ };
17
+ export type DLabelComponent = ForwardRefExoticComponent<DLabelProps & RefAttributes<DMethodRef>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,86 @@
1
+ import type { DBaseProps, DMethodRef } from "./types";
2
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
3
+ import type { PlainObject } from "../../basetype";
4
+ export type DPTableProps = Omit<DBaseProps, 'onChange'> & {
5
+ /**
6
+ * 选项
7
+ */
8
+ options?: PlainObject;
9
+ /**
10
+ * 默认值
11
+ */
12
+ dVal?: string;
13
+ /**
14
+ * 页签样式 card 选项卡
15
+ */
16
+ showType?: 'card';
17
+ /**
18
+ * 显示大小 large大 default中 small小
19
+ */
20
+ showSize?: 'large' | 'default' | 'small';
21
+ /**
22
+ * 页签位置 top顶 right右 bottom底 left左
23
+ */
24
+ position?: 'top' | 'right' | 'bottom' | 'left左';
25
+ /**
26
+ * 关联显示
27
+ */
28
+ display?: string;
29
+ /**
30
+ * 显示列
31
+ */
32
+ cols?: PlainObject;
33
+ /**
34
+ * 按钮
35
+ */
36
+ btns?: PlainObject;
37
+ /**
38
+ * 分页 0否 1是
39
+ */
40
+ page?: '0' | '1';
41
+ /**
42
+ * 显示序号 0否 1是
43
+ */
44
+ showIndex?: '0' | '1';
45
+ /**
46
+ * 查重小写 0否 1是
47
+ */
48
+ distLower?: '0' | '1';
49
+ /**
50
+ * 最大行数
51
+ */
52
+ maxRow?: number;
53
+ /**
54
+ * 自定义查重
55
+ */
56
+ distRow?: (cArgs: any) => string | boolean;
57
+ /**
58
+ * 数据分隔符 格式 行列用-连接
59
+ */
60
+ dataSplit?: string;
61
+ /**
62
+ * 自定义分隔符 数据分隔符中默认使用 - 作为行列分割,可自定义成其它分隔符
63
+ */
64
+ symbol?: string;
65
+ /**
66
+ * 集合转对象 0否 1是
67
+ */
68
+ convert?: '0' | '1';
69
+ /**
70
+ * id别名
71
+ */
72
+ idAlias?: string;
73
+ /**
74
+ * 序号别名
75
+ */
76
+ numberAlias?: string;
77
+ /**
78
+ * 操作之后事件
79
+ */
80
+ actionChange?: (cArgs: any) => void;
81
+ /**
82
+ * 丢失空值 0否 1是
83
+ */
84
+ delEmpty?: '0' | '1';
85
+ };
86
+ export type DPTableComponent = ForwardRefExoticComponent<DPTableProps & RefAttributes<DMethodRef>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });