vap1 0.4.7 → 0.5.1

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 (332) hide show
  1. package/base.json +30 -0
  2. package/basetype.d.ts +0 -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 +42 -6
  94. package/components/Box/Box.js +66 -16
  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/SearchTool/SearchBar/ActionButtons.js +17 -7
  143. package/components/SearchTool/SearchBar/ByField.d.ts +1 -1
  144. package/components/SearchTool/SearchBar/ByField.js +17 -7
  145. package/components/SearchTool/SearchBar/ByKeyword.d.ts +1 -1
  146. package/components/SearchTool/SearchBar/ByKeyword.js +17 -7
  147. package/components/SearchTool/SearchBar/SearchField.d.ts +1 -1
  148. package/components/SearchTool/SearchBar/_register.d.ts +1 -1
  149. package/components/SearchTool/SearchBar/index.d.ts +1 -65
  150. package/components/SearchTool/SearchBar/type.d.ts +133 -0
  151. package/components/SearchTool/SearchBar/type.js +35 -0
  152. package/components/SearchTool/index.d.ts +5 -63
  153. package/components/SearchTool/index.js +5 -0
  154. package/components/Tables/ApiTable.d.ts +5 -7
  155. package/components/Tables/ApiTable.js +17 -7
  156. package/components/Tables/ApiTableModal.d.ts +5 -7
  157. package/components/Tables/ApiTableModal.js +17 -7
  158. package/components/Tables/Components/ActionBar.d.ts +7 -10
  159. package/components/Tables/Components/ActionBar.js +73 -40
  160. package/components/Tables/Components/Actions.d.ts +3 -1
  161. package/components/Tables/Components/Actions.js +40 -3
  162. package/components/Tables/Components/index.d.ts +3 -1
  163. package/components/Tables/Components/useTableContext.d.ts +16 -0
  164. package/components/Tables/Components/useTableContext.js +116 -0
  165. package/components/Tables/STable.js +17 -7
  166. package/components/Tables/TopTable.js +17 -7
  167. package/components/Tables/Util.d.ts +2 -2
  168. package/components/Tables/Util.js +0 -1
  169. package/components/Tables/VTable.d.ts +9 -11
  170. package/components/Tables/VTable.js +119 -172
  171. package/components/Tables/VTableBack.d.ts +0 -0
  172. package/components/Tables/VTableBack.js +269 -0
  173. package/components/Tables/index.d.ts +11 -22
  174. package/components/TreeSelect/BaseTreeSelect.js +17 -7
  175. package/components/TreeSelect/DTreeSelect.js +19 -9
  176. package/components/TreeSelect/FTreeSelect.js +2 -2
  177. package/components/Trees/ActionTree.d.ts +3 -5
  178. package/components/Trees/ActionTree.js +19 -9
  179. package/components/Trees/BaseTree.js +17 -7
  180. package/components/Trees/COTree/COButton.js +17 -7
  181. package/components/Trees/COTree/COSelect.js +17 -7
  182. package/components/Trees/COTree/COTree.js +19 -9
  183. package/components/Trees/DTree.d.ts +0 -7
  184. package/components/Trees/DTree.js +19 -9
  185. package/components/Trees/FTree.js +19 -9
  186. package/components/Trees/STree.js +17 -7
  187. package/components/UForm/FormWrapper.js +18 -8
  188. package/components/UForm/UDescriptions.d.ts +2 -3
  189. package/components/UForm/UDescriptions.js +17 -7
  190. package/components/UForm/UForm.d.ts +1 -1
  191. package/components/UForm/UForm.js +24 -11
  192. package/components/UForm/UFormModal.js +19 -9
  193. package/components/UForm/_input.d.ts +5 -1
  194. package/components/UForm/_input.js +25 -8
  195. package/components/Upload/UploadImage.js +17 -7
  196. package/components/Upload/UploadModal.js +19 -9
  197. package/components/Upload/useUpload.js +2 -2
  198. package/components/_adapt/Alert.js +17 -7
  199. package/components/_adapt/ColorPicker.js +17 -7
  200. package/components/_adapt/Drawer.js +17 -7
  201. package/components/_adapt/Dropdown.js +17 -7
  202. package/components/_adapt/FloatButton.js +17 -7
  203. package/components/_adapt/Input.js +17 -7
  204. package/components/_adapt/InputNumber.js +17 -7
  205. package/components/_adapt/Layout.js +17 -7
  206. package/components/_adapt/Menu.js +17 -7
  207. package/components/_adapt/Modal.js +17 -7
  208. package/components/_adapt/Popconfirm.js +17 -7
  209. package/components/_adapt/Popover.js +17 -7
  210. package/components/_adapt/Progress.js +17 -7
  211. package/components/_adapt/Select.js +17 -7
  212. package/components/_adapt/Table.js +17 -7
  213. package/components/_adapt/Tabs.js +17 -7
  214. package/components/_adapt/Tag.js +17 -7
  215. package/components/_adapt/TreeSelect.js +17 -7
  216. package/components/_adapt/todo/Image.d.ts +0 -1
  217. package/components/_adapt/todo/Segmented.d.ts +0 -1
  218. package/components/_common/AutoComplete.js +35 -12
  219. package/components/_common/CountUp.js +17 -7
  220. package/components/_common/DateRange.d.ts +5 -2
  221. package/components/_common/DateRange.js +43 -40
  222. package/components/_common/HighLight.d.ts +1 -1
  223. package/components/_common/HighLight.js +26 -24
  224. package/components/_common/Loading.js +17 -7
  225. package/components/_common/MonthRange.js +17 -7
  226. package/components/_common/PromiseLabel.js +2 -2
  227. package/components/_common/UTitle.js +17 -7
  228. package/components/_common/Upagination.d.ts +1 -0
  229. package/components/_common/Upagination.js +5 -1
  230. package/components/_i18n.d.ts +1 -102
  231. package/components/index.js +4 -0
  232. package/deps/JsonView.js +17 -7
  233. package/deps/app-audit/LookUp.js +19 -9
  234. package/deps/app-data/useSource.js +19 -9
  235. package/deps/echarts.d.ts +3 -0
  236. package/deps/echarts.js +20 -10
  237. package/deps/editor/Article.js +17 -7
  238. package/deps/editor/Editor.js +17 -7
  239. package/deps/editor/EditorModal.js +17 -7
  240. package/deps/editor/support/buttons/ImageButton.js +17 -7
  241. package/deps/editor/tools/Button.js +0 -2
  242. package/deps/editor/tools/_TxtButton.js +17 -7
  243. package/deps/vapc/_basic.d.ts +1 -0
  244. package/deps/vapc/_basic.js +15 -0
  245. package/deps/vapc/index.d.ts +10 -0
  246. package/deps/vapc/index.js +70 -0
  247. package/hooks/useAjaxAction.js +2 -2
  248. package/hooks/useAjaxQuery.js +2 -2
  249. package/hooks/useApiBase.js +2 -2
  250. package/hooks/useApiGlobal.js +1 -1
  251. package/hooks/useArray.js +2 -2
  252. package/hooks/useDefault.d.ts +0 -1
  253. package/hooks/useDoLoad.d.ts +1 -1
  254. package/hooks/useError.d.ts +1 -1
  255. package/hooks/useMemoPromise.js +2 -2
  256. package/index.d.ts +2 -1
  257. package/login/Base65.d.ts +7 -1
  258. package/login/Base65.js +49 -22
  259. package/login/Password.d.ts +8 -5
  260. package/login/Password.js +68 -102
  261. package/package.json +1 -1
  262. package/screen/Page.js +17 -7
  263. package/screen/vapc-schema/dark.d.ts +1 -0
  264. package/screen/vapc-schema/dark.js +50 -0
  265. package/screen/vapc-schema/insight.d.ts +1 -0
  266. package/screen/vapc-schema/insight.js +49 -0
  267. package/uform/FormEditor.js +17 -7
  268. package/uform/FormViewer.js +17 -7
  269. package/uform/hooks/useEditor.d.ts +0 -1
  270. package/uform/hooks/useForm.d.ts +0 -1
  271. package/uform/inputs/index.d.ts +0 -1
  272. package/uform/panel/Editor/_GroupDefault.js +17 -7
  273. package/uform/panel/Editor/_GroupStep.js +17 -7
  274. package/uform/panel/Editor/_GroupTab.js +17 -7
  275. package/uform/panel/Editor/index.js +17 -7
  276. package/uform/panel/Items/Fields.js +17 -7
  277. package/uform/panel/Items/InputSelector.js +17 -7
  278. package/uform/panel/Items/Inputs.js +17 -7
  279. package/uform/panel/Items/index.d.ts +1 -1
  280. package/uform/panel/Propreties/CanvasProperties.js +17 -7
  281. package/uform/panel/Propreties/Component/FieldPlugin.js +17 -7
  282. package/uform/panel/Propreties/Component/LinkAsyncFunction.js +17 -7
  283. package/uform/panel/Propreties/Component/LinkSyncFunction.js +17 -7
  284. package/uform/panel/Propreties/Component/Links.js +17 -7
  285. package/uform/panel/Propreties/Component/OptionTable.js +17 -7
  286. package/uform/panel/Propreties/Component/RegexpModal.js +17 -7
  287. package/uform/panel/Propreties/Component/Validate.js +17 -7
  288. package/uform/panel/Propreties/Component/ValidateAsyncFunction.js +17 -7
  289. package/uform/panel/Propreties/Component/ValidateSyncFunction.js +17 -7
  290. package/uform/panel/Propreties/FieldOptions.js +17 -7
  291. package/uform/panel/Propreties/FieldProperties.js +17 -7
  292. package/uform/panel/Propreties/_ItemAdvance.js +17 -7
  293. package/uform/panel/Propreties/_ItemBase.js +17 -7
  294. package/uform/panel/Propreties/_ItemLink.js +17 -7
  295. package/uform/panel/Propreties/_ItemValidate.js +17 -7
  296. package/uform/schema.d.ts +1 -1
  297. package/uform/utils/Convert.js +2 -2
  298. package/utils/Ajax.d.ts +3 -0
  299. package/utils/Ajax.js +10 -7
  300. package/utils/CacheUtil.d.ts +1 -1
  301. package/utils/Const.js +17 -7
  302. package/utils/Format.d.ts +138 -14
  303. package/utils/Format.js +127 -13
  304. package/utils/Global.d.ts +16 -0
  305. package/utils/Global.js +8 -1
  306. package/utils/PageUtil.d.ts +111 -23
  307. package/utils/PageUtil.js +163 -28
  308. package/utils/Renders/ApiGetRender.js +20 -10
  309. package/utils/Renders/ApiPostRender.js +3 -3
  310. package/utils/Renders/CondictionRender.js +17 -7
  311. package/utils/Renders/DateRender.js +20 -2
  312. package/utils/Renders/ListRender.js +1 -1
  313. package/utils/Renders/NumberRender.js +24 -5
  314. package/utils/Renders/StringRender.js +81 -11
  315. package/utils/Renders/_define.d.ts +8 -7
  316. package/utils/Renders/_define.js +76 -17
  317. package/utils/StringUtil.d.ts +292 -62
  318. package/utils/StringUtil.js +310 -63
  319. package/utils/TreeUtil.js +14 -10
  320. package/utils/VAP.d.ts +26 -1
  321. package/utils/VAP.js +57 -0
  322. package/utils/_AjaxUtil.d.ts +1 -0
  323. package/utils/_AjaxUtil.js +70 -3
  324. package/utils/_Support.d.ts +2 -2
  325. package/utils/_Support.js +4 -2
  326. package/utils/crontab/crontabRender.js +0 -1
  327. package/utils/i18n.d.ts +13 -2
  328. package/utils/i18n.js +13 -2
  329. package/utils/index.d.ts +4 -0
  330. package/utils/index.js +19 -9
  331. package/components/SearchTool/_FieldType.d.ts +0 -8
  332. package/components/SearchTool/_FieldType.js +0 -51
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
47
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
48
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -43,8 +53,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
53
  });
44
54
  };
45
55
  var __generator = (this && this.__generator) || function (thisArg, body) {
46
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
56
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
57
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
58
  function verb(n) { return function (v) { return step([n, v]); }; }
49
59
  function step(op) {
50
60
  if (f) throw new TypeError("Generator is already executing.");
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
47
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
48
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -43,8 +53,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
53
  });
44
54
  };
45
55
  var __generator = (this && this.__generator) || function (thisArg, body) {
46
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
56
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
57
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
58
  function verb(n) { return function (v) { return step([n, v]); }; }
49
59
  function step(op) {
50
60
  if (f) throw new TypeError("Generator is already executing.");
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __read = (this && this.__read) || function (o, n) {
37
47
  var m = typeof Symbol === "function" && o[Symbol.iterator];
38
48
  if (!m) return o;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __read = (this && this.__read) || function (o, n) {
26
36
  var m = typeof Symbol === "function" && o[Symbol.iterator];
27
37
  if (!m) return o;
@@ -61,7 +71,6 @@ var LAYOUTS = {
61
71
  compress: [1080, 3, 9],
62
72
  };
63
73
  var COLS_SPLIT = 8;
64
- var FONT_SIZE = 12;
65
74
  var getDefault = function (props) {
66
75
  var _a, _b;
67
76
  var isGroup = lodash_1.default.has(props.fields[0], 'fields');
@@ -249,6 +258,7 @@ var FormWrapper = function (props) {
249
258
  _LOOP(fields, maxLabelRef, isInfo, isEdit, isAdd, HiddenFieldRef.current, DisableFieldRef.current);
250
259
  }
251
260
  var fieldWidth = width / cols;
261
+ var FONT_SIZE = utils_1.GLOBAL.CONFIG.FORM.LABEL_FONT_SIZE || 12;
252
262
  var percent = (maxLabelRef.current * FONT_SIZE + 20) / fieldWidth;
253
263
  var labelSpan = Math.ceil(percent * 24);
254
264
  if (labelSpan > colMax) {
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
- import type { FC } from 'react';
1
+ import type { FC, PropsWithChildren, ExoticComponent } from 'react';
3
2
  import type { UDescriptionsItemProps, UDescriptionsProps } from './index';
4
- export declare const UDescriptions: React.ExoticComponent<React.PropsWithChildren<UDescriptionsProps>> & {
3
+ export declare const UDescriptions: ExoticComponent<PropsWithChildren<UDescriptionsProps>> & {
5
4
  Item: FC<UDescriptionsItemProps>;
6
5
  };
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -12,6 +12,6 @@ export declare const initValue: (props: UFromProps & {
12
12
  * 1. 降低大部分没必要的渲染,性能提升
13
13
  * 2. 现已支持 Link 联动 返回 Promise
14
14
  * 3. 支持 ref 控制方法
15
- * 4. filed 支持更多提示,验证方法
15
+ * 4. field 支持更多提示,验证方法
16
16
  */
17
17
  export declare const UForm: React.ForwardRefExoticComponent<UFromProps & React.RefAttributes<UFormRef>>;
@@ -41,13 +41,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
41
41
  }) : function(o, v) {
42
42
  o["default"] = v;
43
43
  });
44
- var __importStar = (this && this.__importStar) || function (mod) {
45
- if (mod && mod.__esModule) return mod;
46
- var result = {};
47
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
48
- __setModuleDefault(result, mod);
49
- return result;
50
- };
44
+ var __importStar = (this && this.__importStar) || (function () {
45
+ var ownKeys = function(o) {
46
+ ownKeys = Object.getOwnPropertyNames || function (o) {
47
+ var ar = [];
48
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
49
+ return ar;
50
+ };
51
+ return ownKeys(o);
52
+ };
53
+ return function (mod) {
54
+ if (mod && mod.__esModule) return mod;
55
+ var result = {};
56
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
57
+ __setModuleDefault(result, mod);
58
+ return result;
59
+ };
60
+ })();
51
61
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
52
62
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
53
63
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -58,8 +68,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
58
68
  });
59
69
  };
60
70
  var __generator = (this && this.__generator) || function (thisArg, body) {
61
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
62
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
71
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
72
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
63
73
  function verb(n) { return function (v) { return step([n, v]); }; }
64
74
  function step(op) {
65
75
  if (f) throw new TypeError("Generator is already executing.");
@@ -550,13 +560,16 @@ var _UForm = (0, react_1.forwardRef)(function (props, ref) {
550
560
  }, []);
551
561
  if (!checked)
552
562
  return utils_1.Const.NONE;
563
+ var clazz = ['c-form'];
564
+ if (state.isGroup)
565
+ clazz.push('c-form-group');
553
566
  return react_1.default.createElement(antd_1.Form
554
567
  // initialValues={props.default}
555
568
  // size={props.size || GLOBAL.CONFIG.FORM.SIZE}
556
569
  , {
557
570
  // initialValues={props.default}
558
571
  // size={props.size || GLOBAL.CONFIG.FORM.SIZE}
559
- className: state.isGroup ? 'c-form c-form-group' : 'c-form', style: { width: state.width }, form: form },
572
+ className: clazz.join(' '), style: { width: state.width }, form: form },
560
573
  props.tip && react_1.default.createElement("div", { className: 'c-form-tip' }, props.tip),
561
574
  state.isGroup ? react_1.default.createElement(_FormGroup, __assign({}, props, { state: state, initRef: initRef })) : react_1.default.createElement(_FormField, __assign({}, props, { state: state, initRef: initRef })),
562
575
  lodash_1.default.isArray(props.buttons) && props.buttons.length && renderFormActions(state, props.buttons, form, initRef));
@@ -583,7 +596,7 @@ var UFormAdaptor = (0, react_1.memo)((0, react_1.forwardRef)(function (props, re
583
596
  * 1. 降低大部分没必要的渲染,性能提升
584
597
  * 2. 现已支持 Link 联动 返回 Promise
585
598
  * 3. 支持 ref 控制方法
586
- * 4. filed 支持更多提示,验证方法
599
+ * 4. field 支持更多提示,验证方法
587
600
  */
588
601
  exports.UForm = (0, react_1.forwardRef)(function (props, ref) { return react_1.default.createElement(FormWrapper_1.FormWrapper, __assign({ isInfo: false }, props),
589
602
  react_1.default.createElement(UFormAdaptor, __assign({}, props, { ref: ref }))); });
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
47
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
48
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -43,8 +53,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
53
  });
44
54
  };
45
55
  var __generator = (this && this.__generator) || function (thisArg, body) {
46
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
56
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
57
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
58
  function verb(n) { return function (v) { return step([n, v]); }; }
49
59
  function step(op) {
50
60
  if (f) throw new TypeError("Generator is already executing.");
@@ -2,7 +2,7 @@ import type { ReactNode } from 'react';
2
2
  import type { UFormField } from './index';
3
3
  import type { PlainObject } from '../../basetype';
4
4
  import type { TableColumn } from '../Tables';
5
- import type { SearchBarProps } from '../SearchTool/SearchBar';
5
+ import type { SearchBarProps } from '../SearchTool/SearchBar/type';
6
6
  export declare const copyMultiValue: (fields: string[], data: PlainObject, properties: string[]) => PlainObject;
7
7
  /**
8
8
  * 获取复合字段的 字段与值,以数组形式返回
@@ -51,6 +51,10 @@ type ApiTableBuilderOptions = {
51
51
  * 用于展示按钮内容的 render,优先级高于 nameField
52
52
  */
53
53
  render?: (obj: PlainObject) => ReactNode;
54
+ /**
55
+ * 默认参数
56
+ */
57
+ defaultParam?: PlainObject;
54
58
  };
55
59
  /**
56
60
  * 快速注册 一个 弹出ApiTable 的选择组件
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __read = (this && this.__read) || function (o, n) {
37
47
  var m = typeof Symbol === "function" && o[Symbol.iterator];
38
48
  if (!m) return o;
@@ -111,6 +121,13 @@ exports.getPlaceholder = getPlaceholder;
111
121
  var builderApiTableSerletor = function (options, nameIdx) { return function (props) {
112
122
  var value = props.value, field = props.field, disabled = props.disabled, onChange = props.onChange, form = props.form;
113
123
  var _a = __read((0, react_1.useState)(false), 2), open = _a[0], setOpen = _a[1];
124
+ var defaultParam = (0, react_1.useMemo)(function () {
125
+ var param = options.defaultParam || {};
126
+ if (field.config && field.config.param) {
127
+ param = __assign(__assign({}, param), field.config.param);
128
+ }
129
+ return param;
130
+ }, []);
114
131
  var _b = __read((0, exports.getMultiFieldValues)(field, value), 2), fields = _b[0], values = _b[1];
115
132
  var valueFields = (0, react_1.useMemo)(function () { return lodash_1.default.take(options.itemFields, fields.length); }, []);
116
133
  var params = { disabled: disabled };
@@ -142,7 +159,7 @@ var builderApiTableSerletor = function (options, nameIdx) { return function (pro
142
159
  };
143
160
  return react_1.default.createElement(react_1.Fragment, null,
144
161
  values[0] != undefined ? react_1.default.createElement(Button_1.Button, __assign({}, params, { icon: 'select', onClick: function () { return setOpen(true); } }), getTip(values)) : react_1.default.createElement(Button_1.Button, __assign({}, params, { icon: 'select', onClick: function () { return setOpen(true); } }), (0, exports.getPlaceholder)(field, true)),
145
- react_1.default.createElement(Tables_1.ApiTableModal, __assign({ title: options.title, searchBar: options.searchBar, width: options.width || 720 }, field.config, { api: options.api, columns: __spreadArray(__spreadArray([], __read(options.columns), false), [
162
+ react_1.default.createElement(Tables_1.ApiTableModal, __assign({ title: options.title, searchBar: options.searchBar, width: options.width || 720 }, field.config, { api: options.api, default: defaultParam, columns: __spreadArray(__spreadArray([], __read(options.columns), false), [
146
163
  Tables_1.ApiTable.COL_OPERACTION({ render: function (data) { return react_1.default.createElement(Tables_1.ApiTable.ACTION, { title: "\u9009\u62E9", icon: "select", onClick: function () { return onSelect(data); } }); } })
147
164
  ], false), open: open, onCancel: function () { return setOpen(false); } })));
148
165
  }; };
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __read = (this && this.__read) || function (o, n) {
37
47
  var m = typeof Symbol === "function" && o[Symbol.iterator];
38
48
  if (!m) return o;
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
47
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
48
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -43,8 +53,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
53
  });
44
54
  };
45
55
  var __generator = (this && this.__generator) || function (thisArg, body) {
46
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
56
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
57
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
58
  function verb(n) { return function (v) { return step([n, v]); }; }
49
59
  function step(op) {
50
60
  if (f) throw new TypeError("Generator is already executing.");
@@ -33,10 +33,10 @@ var getBaseOptions = function (props) {
33
33
  directory: false,
34
34
  multiple: false,
35
35
  name: "file",
36
- action: utils_1.GLOBAL.CONFIG.UPLOAD.API,
36
+ action: utils_1.PageUtil.resolveURL(utils_1.GLOBAL.CONFIG.UPLOAD.API),
37
37
  };
38
38
  if (props.api)
39
- uploadProps.action = props.api;
39
+ uploadProps.action = utils_1.PageUtil.resolveURL(props.api);
40
40
  if (props.name)
41
41
  uploadProps.name = props.name;
42
42
  if (props.accept)
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  Object.defineProperty(exports, "__esModule", { value: true });
37
47
  exports.Alert = void 0;
38
48
  var react_1 = __importStar(require("react"));
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __read = (this && this.__read) || function (o, n) {
37
47
  var m = typeof Symbol === "function" && o[Symbol.iterator];
38
48
  if (!m) return o;
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  Object.defineProperty(exports, "__esModule", { value: true });
37
47
  exports.Drawer = void 0;
38
48
  var react_1 = __importStar(require("react"));
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  Object.defineProperty(exports, "__esModule", { value: true });
37
47
  exports.Dropdown = void 0;
38
48
  var react_1 = __importStar(require("react"));