@kengic/vue 0.26.6-beta.5 → 0.26.6-beta.51

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. package/dist/close-outlined-DMcSQWxQ.0f8277b6.mjs +8 -0
  2. package/dist/fullscreen-exit-outlined-X1iYkFc4.e97f2fdc.mjs +8 -0
  3. package/dist/fullscreen-exit-outlined.a75b82c2.mjs +8 -0
  4. package/dist/fullscreen-outlined-DDBrsRcy.e687ba4c.mjs +8 -0
  5. package/dist/fullscreen-outlined.c9ba7960.mjs +8 -0
  6. package/dist/index.css +1 -1
  7. package/dist/kengic-vue.js +52160 -33447
  8. package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +51 -0
  9. package/dist/src/apis/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
  10. package/dist/src/apis/WMS/Controllers/DescriptionController/index.d.ts +2 -0
  11. package/dist/src/apis/WMS/Controllers/SysPermissionController/List.d.ts +73 -0
  12. package/dist/src/apis/WMS/Controllers/SysPermissionController/index.d.ts +1 -0
  13. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +16 -0
  14. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +1 -0
  15. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
  16. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
  17. package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +16 -0
  18. package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +1 -0
  19. package/dist/src/apis/WMS/Controllers/VarDdaController/Create.d.ts +16 -0
  20. package/dist/src/apis/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +16 -0
  21. package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +16 -0
  22. package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +16 -0
  23. package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +16 -0
  24. package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +16 -0
  25. package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +16 -0
  26. package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +16 -0
  27. package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +16 -0
  28. package/dist/src/apis/WMS/Controllers/VarDdaController/index.d.ts +9 -0
  29. package/dist/src/apis/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
  30. package/dist/src/apis/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
  31. package/dist/src/apis/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
  32. package/dist/src/apis/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +19 -0
  33. package/dist/src/apis/WMS/Controllers/VarProfileMasterController/index.d.ts +1 -0
  34. package/dist/src/apis/WMS/Controllers/VarVariableController/Delete.d.ts +16 -0
  35. package/dist/src/apis/WMS/Controllers/VarVariableController/index.d.ts +1 -0
  36. package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +54 -0
  37. package/dist/src/apis/WMS/Controllers/WhController/index.d.ts +1 -0
  38. package/dist/src/apis/WMS/Controllers/WorkstationController/List.d.ts +25 -0
  39. package/dist/src/apis/WMS/Controllers/WorkstationController/index.d.ts +1 -0
  40. package/dist/src/apis/WMS/Controllers/index.d.ts +11 -0
  41. package/dist/src/apis/WMS/index.d.ts +2 -0
  42. package/dist/src/apis/WMS/models.d.ts +1018 -0
  43. package/dist/src/apis/api.d.ts +1 -0
  44. package/dist/src/apis/def.d.ts +1 -0
  45. package/dist/src/apis/index.d.ts +2 -0
  46. package/dist/src/components/KgAppSelect/KgAppSelect.d.ts +47 -0
  47. package/dist/src/components/KgAppSelect/index.d.ts +3 -0
  48. package/dist/src/components/KgAppSelect/index.hooks.d.ts +41 -0
  49. package/dist/src/components/KgAppSelect/index.store.d.ts +74 -0
  50. package/dist/src/components/KgButton/KgButton.Item.d.ts +41 -0
  51. package/dist/src/components/KgButton/KgButton.Item.data.d.ts +31 -0
  52. package/dist/src/components/KgButton/KgButton.d.ts +40 -0
  53. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +40 -0
  54. package/dist/src/components/KgButton/components/KgButton.Create.d.ts +40 -0
  55. package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +40 -0
  56. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +40 -0
  57. package/dist/src/components/KgButton/components/KgButton.Import.d.ts +40 -0
  58. package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +40 -0
  59. package/dist/src/components/KgButton/components/KgButton.Other.d.ts +40 -0
  60. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +40 -0
  61. package/dist/src/components/KgButton/components/KgButton.Update.d.ts +40 -0
  62. package/dist/src/components/KgButton/index.d.ts +62 -0
  63. package/dist/src/components/KgButton/index.hooks.d.ts +183 -0
  64. package/dist/src/components/KgButton/index.store.d.ts +116 -0
  65. package/dist/src/components/KgCanvas/KgCanvas.d.ts +122 -0
  66. package/dist/src/components/KgCanvas/KgCanvas.service.d.ts +43 -0
  67. package/dist/src/components/KgCanvas/KgCanvasContextMenu.d.ts +107 -0
  68. package/dist/src/components/KgCanvas/KgCanvasToolbarFullscreen.d.ts +8 -0
  69. package/dist/src/components/KgCanvas/KgCanvasTooltip.d.ts +31 -0
  70. package/dist/src/components/KgCanvas/index.d.ts +4 -0
  71. package/dist/src/components/KgCanvas/index.hooks.d.ts +67 -0
  72. package/dist/src/components/KgCanvas/index.store.d.ts +239 -0
  73. package/dist/src/components/KgForm/KgForm.d.ts +414 -0
  74. package/dist/src/components/KgForm/index.d.ts +604 -0
  75. package/dist/src/components/KgForm/index.hooks.d.ts +73 -0
  76. package/dist/src/components/KgForm/index.store.d.ts +221 -0
  77. package/dist/src/components/KgForm/index.vm.d.ts +9 -0
  78. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +97 -0
  79. package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +17 -0
  80. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +49 -0
  81. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +16 -0
  82. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +31 -0
  83. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +100 -0
  84. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +99 -0
  85. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +97 -0
  86. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +97 -0
  87. package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +92 -0
  88. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +96 -0
  89. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +96 -0
  90. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +96 -0
  91. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +98 -0
  92. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +98 -0
  93. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +29 -0
  94. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +96 -0
  95. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +96 -0
  96. package/dist/src/components/KgForm.Item/index.d.ts +2 -0
  97. package/dist/src/components/KgForm.Item/index.vm.d.ts +124 -0
  98. package/dist/src/components/KgImage/KgImage.d.ts +100 -0
  99. package/dist/src/components/KgImage/index.d.ts +1 -0
  100. package/dist/src/components/KgLayoutHeader/components/KgLayoutHeaderLocale.d.ts +38 -0
  101. package/dist/src/components/KgLayoutHeader/index.d.ts +2 -0
  102. package/dist/src/components/KgLayoutHeader/index.hooks.d.ts +4 -0
  103. package/dist/src/components/KgModal/KgModal.d.ts +823 -0
  104. package/dist/src/components/KgModal/KgModal.service.d.ts +39 -0
  105. package/dist/src/components/KgModal/KgModalHeaderButtons.d.ts +92 -0
  106. package/dist/src/components/KgModal/index.d.ts +1 -0
  107. package/dist/src/components/KgModal/index.vm.d.ts +8 -0
  108. package/dist/src/components/KgProgressA/KgProgressA.d.ts +85 -0
  109. package/dist/src/components/KgProgressA/index.d.ts +1 -0
  110. package/dist/src/components/KgResizable/KgResizable.d.ts +91 -0
  111. package/dist/src/components/KgResizable/KgResizable.service.d.ts +12 -0
  112. package/dist/src/components/KgResizable/index.d.ts +1 -0
  113. package/dist/src/components/KgSearch/KgSearch.d.ts +26 -0
  114. package/dist/src/components/KgSearch/KgSearch.service.d.ts +32 -0
  115. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +16 -0
  116. package/dist/src/components/KgSearch/index.d.ts +3 -0
  117. package/dist/src/components/KgSearch/index.hooks.d.ts +67 -0
  118. package/dist/src/components/KgSearch/index.store.d.ts +147 -0
  119. package/dist/src/components/KgSearch/index.vm.d.ts +1 -0
  120. package/dist/src/components/KgStation/KgStation.d.ts +47 -0
  121. package/dist/src/components/KgStation/index.d.ts +3 -0
  122. package/dist/src/components/KgStation/index.hooks.d.ts +29 -0
  123. package/dist/src/components/KgStation/index.store.d.ts +45 -0
  124. package/dist/src/components/KgSubmit/KgSubmit.d.ts +21 -0
  125. package/dist/src/components/KgSubmit/KgSubmit.service.d.ts +29 -0
  126. package/dist/src/components/KgSubmit/index.d.ts +4 -0
  127. package/dist/src/components/KgSubmit/index.hooks.d.ts +295 -0
  128. package/dist/src/components/KgSubmit/index.store.d.ts +194 -0
  129. package/dist/src/components/KgSubmit/index.vm.d.ts +57 -0
  130. package/dist/src/components/KgTable/KgTable.d.ts +39 -0
  131. package/dist/src/components/KgTable/KgTable.service.d.ts +34 -0
  132. package/dist/src/components/KgTable/components/KgTable.BodyCell.d.ts +60 -0
  133. package/dist/src/components/KgTable/components/KgTable.HeaderCell.d.ts +52 -0
  134. package/dist/src/components/KgTable/components/KgTable.Info.d.ts +57 -0
  135. package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +5 -0
  136. package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +21 -0
  137. package/dist/src/components/KgTable/components/setting/KgTable.Setting.service.d.ts +22 -0
  138. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +16 -0
  139. package/dist/src/components/KgTable/index.d.ts +4 -0
  140. package/dist/src/components/KgTable/index.hooks.d.ts +148 -0
  141. package/dist/src/components/KgTable/index.store.d.ts +241 -0
  142. package/dist/src/components/KgTable/index.vm.d.ts +67 -0
  143. package/dist/src/components/KgVar/KgVar.d.ts +114 -0
  144. package/dist/src/components/KgVar/index.d.ts +4 -0
  145. package/dist/src/components/KgVar/index.hooks.d.ts +184 -0
  146. package/dist/src/components/KgVar/index.store.d.ts +253 -0
  147. package/dist/src/components/KgVar/index.store.service.d.ts +30 -0
  148. package/dist/src/components/KgVar/index.vm.d.ts +55 -0
  149. package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +3 -0
  150. package/dist/src/components/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +27 -0
  151. package/dist/src/components/KgVarConfig/components/KgVarConfigModal.d.ts +15 -0
  152. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +7 -0
  153. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +7 -0
  154. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +5 -0
  155. package/dist/src/components/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts +7 -0
  156. package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts +7 -0
  157. package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +7 -0
  158. package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +7 -0
  159. package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +5 -0
  160. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +7 -0
  161. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +7 -0
  162. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +5 -0
  163. package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts +7 -0
  164. package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +7 -0
  165. package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +23 -0
  166. package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +5 -0
  167. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.d.ts +2 -0
  168. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.d.ts +2 -0
  169. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
  170. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
  171. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
  172. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
  173. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
  174. package/dist/src/components/KgVarConfig/index.d.ts +3 -0
  175. package/dist/src/components/KgVarConfig/index.hooks.d.ts +17 -0
  176. package/dist/src/components/KgVarConfig/index.store.d.ts +16 -0
  177. package/dist/src/components/KgVarConfig/index.vm.d.ts +50 -0
  178. package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +47 -0
  179. package/dist/src/components/KgWarehouse/index.d.ts +4 -0
  180. package/dist/src/components/KgWarehouse/index.guard.d.ts +8 -0
  181. package/dist/src/components/KgWarehouse/index.hooks.d.ts +27 -0
  182. package/dist/src/components/KgWarehouse/index.store.d.ts +63 -0
  183. package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +60 -0
  184. package/dist/src/components/KgYesOrNo/index.d.ts +1 -0
  185. package/dist/src/components/index.d.ts +21 -0
  186. package/dist/src/components/util.d.ts +14 -0
  187. package/dist/src/components-next/KgVarConfig/KgVarConfig.d.ts +2 -0
  188. package/dist/src/components-next/KgVarConfig/index.d.ts +1 -0
  189. package/dist/src/components-next/index.d.ts +1 -0
  190. package/dist/src/config/index.d.ts +3 -0
  191. package/dist/src/config/index.hooks.d.ts +36 -0
  192. package/dist/src/config/index.store.d.ts +315 -0
  193. package/dist/src/config/setup/index.d.ts +3 -0
  194. package/dist/src/config/setup/setup.d.ts +28 -0
  195. package/dist/src/config/setup/setupKgLocale.d.ts +29 -0
  196. package/dist/src/config/setup/setupKgStore.d.ts +18 -0
  197. package/dist/src/consts/i18n/en.d.ts +274 -0
  198. package/dist/src/consts/i18n/es_ES.d.ts +274 -0
  199. package/dist/src/consts/i18n/fr_FR.d.ts +274 -0
  200. package/dist/src/consts/i18n/index.d.ts +2 -0
  201. package/dist/src/consts/i18n/km_KH.d.ts +274 -0
  202. package/dist/src/consts/i18n/ko_KR.d.ts +274 -0
  203. package/dist/src/consts/i18n/vi_VN.d.ts +274 -0
  204. package/dist/src/consts/i18n/zh_CN.d.ts +274 -0
  205. package/dist/src/consts/index.d.ts +3 -0
  206. package/dist/src/consts/index.vm.d.ts +733 -0
  207. package/dist/src/consts/injection-keys.const.d.ts +9 -0
  208. package/dist/src/helpers/ant-design-vue.d.ts +347 -0
  209. package/dist/src/helpers/tsx.helper.d.ts +23 -0
  210. package/dist/src/index.d.ts +12 -0
  211. package/dist/src/pages/KgPageDda/KgPageDda.d.ts +8 -0
  212. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +32 -0
  213. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.d.ts +7 -0
  214. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +7 -0
  215. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Menu.d.ts +7 -0
  216. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Search.d.ts +7 -0
  217. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Submit.d.ts +7 -0
  218. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Table.d.ts +7 -0
  219. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.d.ts +33 -0
  220. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +1322 -0
  221. package/dist/src/pages/KgPageDda/index.d.ts +5 -0
  222. package/dist/src/pages/KgPageDda/index.vm.d.ts +12 -0
  223. package/dist/src/pages/KgVarFactory/KgVarFactory.d.ts +62 -0
  224. package/dist/src/pages/KgVarFactory/index.d.ts +1 -0
  225. package/dist/src/pages/index.d.ts +9 -0
  226. package/dist/src/project/build/getConfigFileName.d.ts +5 -0
  227. package/dist/src/project/build/index.d.ts +1 -0
  228. package/dist/src/project/index.d.ts +3 -0
  229. package/dist/src/project/types/axios.d.ts +35 -0
  230. package/dist/src/project/types/config.d.ts +121 -0
  231. package/dist/src/project/types/index.d.ts +4 -0
  232. package/dist/src/project/types/store.d.ts +42 -0
  233. package/dist/src/project/types/utils.d.ts +4 -0
  234. package/dist/src/services/http-client.d.ts +93 -0
  235. package/dist/src/services/index.d.ts +1 -0
  236. package/dist/src/utils/index.d.ts +6 -0
  237. package/dist/src/utils/kg-auth.util.d.ts +26 -0
  238. package/dist/src/utils/kg-dom.util.d.ts +12 -0
  239. package/dist/src/utils/kg-logger.util.d.ts +69 -0
  240. package/dist/src/utils/kg-route.util.d.ts +57 -0
  241. package/dist/src/utils/kg-var.util.d.ts +76 -0
  242. package/dist/src/utils/kg.util.d.ts +150 -0
  243. package/package.json +29 -19
@@ -0,0 +1,47 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgStation.less';
3
+ export declare const getProps: () => {
4
+ /**
5
+ * <p>是否隐藏.</p>
6
+ * <p>此组件需要在不同的地方使用,</p>
7
+ * <ul>
8
+ * <li>在有的地方需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
9
+ * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
10
+ * </ul>
11
+ *
12
+ * @default undefined
13
+ */
14
+ kgInvisible: PropType<boolean>;
15
+ onKgOk: PropType<() => void>;
16
+ };
17
+ export declare type KgStationProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
18
+ declare const _default: import("vue").DefineComponent<{
19
+ /**
20
+ * <p>是否隐藏.</p>
21
+ * <p>此组件需要在不同的地方使用,</p>
22
+ * <ul>
23
+ * <li>在有的地方需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
24
+ * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
25
+ * </ul>
26
+ *
27
+ * @default undefined
28
+ */
29
+ kgInvisible: PropType<boolean>;
30
+ onKgOk: PropType<() => void>;
31
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
32
+ /**
33
+ * <p>是否隐藏.</p>
34
+ * <p>此组件需要在不同的地方使用,</p>
35
+ * <ul>
36
+ * <li>在有的地方需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
37
+ * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
38
+ * </ul>
39
+ *
40
+ * @default undefined
41
+ */
42
+ kgInvisible: PropType<boolean>;
43
+ onKgOk: PropType<() => void>;
44
+ }>> & {
45
+ onKgOk?: ((...args: any[]) => any) | undefined;
46
+ }, {}>;
47
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export { default as KgStation } from './KgStation';
2
+ export * from './index.hooks';
3
+ export * from './index.store';
@@ -0,0 +1,29 @@
1
+ import { Pinia } from 'pinia';
2
+ import { ComputedRef } from 'vue';
3
+ import { WorkstationAreaDTO, WorkstationDTO } from '../../apis/WMS/models';
4
+ import { IKgStationStore } from './index.store';
5
+ export declare type IUseKgStation = {
6
+ /**
7
+ * 当前工作区.
8
+ */
9
+ area: ComputedRef<WorkstationAreaDTO | null>;
10
+ /**
11
+ * 当前工作站.
12
+ */
13
+ station: ComputedRef<WorkstationDTO | null>;
14
+ /**
15
+ * 所有工作站.
16
+ */
17
+ stations: ComputedRef<IKgStationStore['getStations']>;
18
+ store: IKgStationStore;
19
+ /**
20
+ * 是否显示弹窗.
21
+ */
22
+ visible: ComputedRef<IKgStationStore['getVisible']>;
23
+ };
24
+ /**
25
+ * 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
26
+ *
27
+ * @param pinia
28
+ */
29
+ export declare function useKgStation(pinia?: Pinia): IUseKgStation;
@@ -0,0 +1,45 @@
1
+ import { StoreDefinition } from 'pinia';
2
+ import { WorkstationDTO } from '../../apis/WMS/models';
3
+ export interface IUseKgStationStoreState {
4
+ /**
5
+ * 当前工作站.
6
+ */
7
+ station: WorkstationDTO | null;
8
+ /**
9
+ * 所有工作站.
10
+ */
11
+ stations: Array<WorkstationDTO> | undefined;
12
+ /**
13
+ * 是否显示弹窗.
14
+ */
15
+ visible: boolean;
16
+ }
17
+ export interface IUseKgStationStoreGetters {
18
+ getStation: WorkstationDTO | null;
19
+ getStations: Array<WorkstationDTO> | undefined;
20
+ /**
21
+ * 是否显示弹窗.
22
+ */
23
+ getVisible: boolean;
24
+ }
25
+ export interface IUseKgStationStoreActions {
26
+ /**
27
+ * 查询所有工作站.
28
+ */
29
+ requestStations(): Promise<void>;
30
+ /**
31
+ * 设置当前工作站.
32
+ *
33
+ * @param station 当前工作站.
34
+ */
35
+ setStation(station?: WorkstationDTO | null): void;
36
+ /**
37
+ * 设置是否显示弹窗.
38
+ *
39
+ * @param visible 是否显示.
40
+ */
41
+ setVisible(visible: boolean): void;
42
+ }
43
+ export declare type IUseKgStationStore = StoreDefinition<'KgStation', IUseKgStationStoreState, IUseKgStationStoreGetters, IUseKgStationStoreActions>;
44
+ export declare type IKgStationStore = ReturnType<IUseKgStationStore>;
45
+ export declare const useKgStationStore: IUseKgStationStore;
@@ -0,0 +1,21 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgSubmit.less';
3
+ export declare const getProps: () => {
4
+ /**
5
+ * 自定义的样式类名, 会附加到组件默认的样式类名后面.
6
+ */
7
+ kgClass: PropType<string>;
8
+ };
9
+ export declare type KgSubmitProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
10
+ declare const _default: import("vue").DefineComponent<{
11
+ /**
12
+ * 自定义的样式类名, 会附加到组件默认的样式类名后面.
13
+ */
14
+ kgClass: PropType<string>;
15
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
16
+ /**
17
+ * 自定义的样式类名, 会附加到组件默认的样式类名后面.
18
+ */
19
+ kgClass: PropType<string>;
20
+ }>>, {}>;
21
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { Ref, UnwrapRef } from 'vue';
2
+ import { KgSubmitProps } from './KgSubmit';
3
+ export declare function _useFormModel(): {
4
+ model: Ref<Record<string, any>>;
5
+ };
6
+ export declare type IUseResizeObserver = {};
7
+ export declare function _useResizeObserver(kgFormRef: Ref<UnwrapRef<HTMLDivElement | null>>): IUseResizeObserver;
8
+ export declare function _useTitle(): {
9
+ /**
10
+ * 弹窗标题.
11
+ */
12
+ title: import("vue").ComputedRef<string>;
13
+ };
14
+ export declare function _useClass(props: KgSubmitProps): {
15
+ /**
16
+ * 弹窗样式.
17
+ */
18
+ getClass: import("vue").ComputedRef<string>;
19
+ /**
20
+ * 弹窗容器样式.
21
+ */
22
+ getWrapClass: import("vue").ComputedRef<string>;
23
+ };
24
+ export declare function _useDefaultWidth(): {
25
+ /**
26
+ * 默认宽度.
27
+ */
28
+ getDefaultWidth: import("vue").ComputedRef<number>;
29
+ };
@@ -0,0 +1,4 @@
1
+ export { default as KgSubmit, type KgSubmitProps } from './KgSubmit';
2
+ export * from './index.hooks';
3
+ export * from './index.store';
4
+ export * from './index.vm';
@@ -0,0 +1,295 @@
1
+ import { FormInstance } from 'ant-design-vue';
2
+ import { ComputedRef, Ref } from 'vue';
3
+ import { VarProfileDetail, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
4
+ import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../consts';
5
+ import { IKgSubmitAfterValidateEventListener, IKgSubmitBeforeOkEventListener, IKgSubmitBeforeOpenEventListener, IKgSubmitBeforeRequestEventListener, IKgSubmitCloseEventListener, IKgSubmitErrorEventListener, IKgSubmitOkEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnOpenEventListener, IKgSubmitStore } from './index.store';
6
+ export interface IUseKgSubmit {
7
+ /**
8
+ * <p>添加一个「提交表单字段」.</p>
9
+ * <p>使用场景: 一般用于开发自定义页面时, 需要动态添加表单字段.</p>
10
+ *
11
+ * @param varSubmitDetail 要添加的「提交表单字段」.
12
+ */
13
+ createVarSubmitDetail(varSubmitDetail: VarSubmitDetail): void;
14
+ /**
15
+ * <p>「当前按钮」的「提交表单配置」.</p>
16
+ */
17
+ currentVarSubmitConfig: ComputedRef<VarSubmitConfig | null>;
18
+ /**
19
+ * <p>「当前按钮」的「提交表单配置」的显示方式.</p>
20
+ */
21
+ currentVarSubmitConfig$DisplayType: ComputedRef<KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE>;
22
+ /**
23
+ * <p>「当前按钮」的「提交表单配置」的布局.</p>
24
+ */
25
+ currentVarSubmitConfig$Layout: ComputedRef<KG__VAR_SUBMIT_CONFIG__LAYOUT>;
26
+ /**
27
+ * <p>「当前按钮」的「提交表单配置」的配置属性.</p>
28
+ */
29
+ currentVarSubmitConfig$Props: ComputedRef<IKgVarSubmitConfigProperties>;
30
+ /**
31
+ * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
32
+ */
33
+ currentVarSubmitDetailSectionsForVisible: ComputedRef<string[]>;
34
+ /**
35
+ * <p>「当前按钮」的「提交表单字段」.</p>
36
+ */
37
+ currentVarSubmitDetails: ComputedRef<VarSubmitDetail[]>;
38
+ /**
39
+ * <p>「当前按钮」的「提交表单字段」(关键的).</p>
40
+ */
41
+ currentVarSubmitDetailsForKey: ComputedRef<VarSubmitDetail[]>;
42
+ /**
43
+ * <p>「当前按钮」的「提交表单字段」(关键的, 可见的).</p>
44
+ */
45
+ currentVarSubmitDetailsForKeyAndVisible: ComputedRef<VarSubmitDetail[]>;
46
+ /**
47
+ * <p>「当前按钮」的「提交表单字段」(非关键的).</p>
48
+ */
49
+ currentVarSubmitDetailsForNotKey: ComputedRef<VarSubmitDetail[]>;
50
+ /**
51
+ * <p>「当前按钮」的「提交表单字段」(非关键的, 可见的).</p>
52
+ */
53
+ currentVarSubmitDetailsForNotKeyAndVisible: ComputedRef<VarSubmitDetail[]>;
54
+ /**
55
+ * <p>「当前按钮」的「提交表单字段」(可见的).</p>
56
+ */
57
+ currentVarSubmitDetailsForVisible: ComputedRef<VarSubmitDetail[]>;
58
+ /**
59
+ * 界面标识.
60
+ */
61
+ formID: string;
62
+ /**
63
+ * 表单数据对象.
64
+ */
65
+ formModel: ComputedRef<Record<string, any>>;
66
+ /**
67
+ * 表单组件.
68
+ */
69
+ formRef: Ref<FormInstance | null>;
70
+ /**
71
+ * 自定义的表单验证规则.
72
+ */
73
+ formRules: ReturnType<IKgSubmitStore['getFormRules']>;
74
+ /**
75
+ * <p>获取「提交表单配置」, 根据所传参数进行过滤.</p>
76
+ *
77
+ * <ul>
78
+ * <li>
79
+ * <p>如果参数 {@link param} 不传或者 {@link param} === undefined, 表示获取「当前按钮」的「提交表单配置」.</p>
80
+ * </li>
81
+ * <li>
82
+ * <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
83
+ * </li>
84
+ * <li>
85
+ * <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} !== <code>undefined</code>, 则先根据参数 {@link param.buttonType} 获取按钮, 然后根据 {@link VarButton.var_nam} 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
86
+ * </li>
87
+ * </ul>
88
+ *
89
+ * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
90
+ * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
91
+ */
92
+ getVarSubmitConfig(param?: {
93
+ buttonType?: KG__VAR_BUTTON__TYPE;
94
+ buttonVarName?: string | null;
95
+ }): VarSubmitConfig | null;
96
+ /**
97
+ * 根据「查询条件视图明细」获取「提交表单字段」.
98
+ *
99
+ * @param param.varProfileDetail 查询条件视图明细.
100
+ */
101
+ getVarSubmitDetailByVarProfileDetail(param?: {
102
+ varProfileDetail: VarProfileDetail | null;
103
+ }): VarSubmitDetail | null;
104
+ /**
105
+ * <p>获取提交表单字段, 根据所传参数进行过滤.</p>
106
+ *
107
+ * <ul>
108
+ * <li>
109
+ * <p>如果参数 {@link param} === null || {@link param} === undefined, 表示获取所有的提交表单字段.</p>
110
+ * </li>
111
+ * <li>
112
+ * <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
113
+ * </li>
114
+ * <li>
115
+ * <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} !== <code>undefined</code>, 则先根据参数 {@link param.buttonType} 获取按钮, 然后根据 {@link VarButton.var_nam} 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
116
+ * </li>
117
+ * <li>
118
+ * <p>如果参数 {@link param.varName} !== <code>undefined</code> , 则根据 {@link param.varName} 和 {@link VarSubmitDetail.var_nam} 是否匹配进行过滤.</p>
119
+ * </li>
120
+ * <li>
121
+ * <p>如果参数 {@link param.searchProfileVarName} !== <code>undefined</code> , 则根据 {@link param.searchProfileVarName} 和 {@link VarSubmitDetail.prf_var_nam} 是否匹配进行过滤.</p>
122
+ * </li>
123
+ * <li>
124
+ * <p>如果参数 {@link param.isKey} !== <code>undefined</code> , 则根据 {@link param.isKey} 和 {@link VarSubmitDetail.key_flg} 是否匹配进行过滤.</p>
125
+ * </li>
126
+ * <li>
127
+ * <p>如果参数 {@link param.isVisible} !== <code>undefined</code> , 则根据 {@link param.isVisible} 和 {@link VarSubmitDetail.visible_flag} 是否匹配进行过滤.</p>
128
+ * </li>
129
+ * </ul>
130
+ *
131
+ * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
132
+ * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
133
+ * @param param.isKey 提交表单字段是否可见, 对应的是 {@link VarSubmitDetail.key_flg} 属性.
134
+ * @param param.isVisible 提交表单字段是否可见, 对应的是 {@link VarSubmitDetail.visible_flag} 属性.
135
+ * @param param.searchProfileVarName 提交表单字段的所属查询条件视图的变量名称, 对应的是 {@link VarSubmitDetail.prf_var_nam} 属性.
136
+ * @param param.varName 提交表单字段的变量名, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
137
+ */
138
+ getVarSubmitDetails(param?: {
139
+ buttonType?: KG__VAR_BUTTON__TYPE;
140
+ buttonVarName?: string | null;
141
+ isKey?: 0 | 1 | null;
142
+ isVisible?: 0 | 1 | null;
143
+ searchProfileVarName?: string | null;
144
+ varName?: string | null;
145
+ } | null): Array<VarSubmitDetail>;
146
+ /**
147
+ * 表单数据对象.
148
+ *
149
+ * @deprecated 请使用 {@link formModel}
150
+ */
151
+ model: ComputedRef<Record<string, any>>;
152
+ /**
153
+ * <p>监听事件: 点击确认按钮之后, 表单验证完成.</p>
154
+ * <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
155
+ *
156
+ * @param listener 事件监听函数.
157
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
158
+ * @return {} 移除事件监听函数.
159
+ */
160
+ onAfterValidate(listener: IKgSubmitAfterValidateEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
161
+ /**
162
+ * <p>监听事件: 点击取消按钮, 或者点击右上角的关闭按钮, 尚未关闭弹窗.</p>
163
+ * @param listener 事件监听函数.
164
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
165
+ * @return {} 移除事件监听函数.
166
+ */
167
+ onBeforeCancel(listener: IKgSubmitOnBeforeCancelEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
168
+ /**
169
+ * <p>监听事件: 点击确认按钮之后, 执行默认逻辑之前.</p>
170
+ * <ul>
171
+ * <li>可以在此时修改表单数据对象,</li>
172
+ * <li>可以在此时修改表单验证规则,</li>
173
+ * </ul>
174
+ * <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
175
+ *
176
+ * @param listener 事件监听函数.
177
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
178
+ * @return {} 移除事件监听函数.
179
+ */
180
+ onBeforeOk(listener: IKgSubmitBeforeOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
181
+ /**
182
+ * <p>监听事件: 打开提交弹窗之前.</p>
183
+ * @param listener 事件监听函数.
184
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
185
+ * @return {} 移除事件监听函数.
186
+ */
187
+ onBeforeOpen(listener: IKgSubmitBeforeOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
188
+ /**
189
+ * <p>监听事件: 发起接口请求之前. 表单验证完成, 参数解析完成.</p>
190
+ * <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
191
+ *
192
+ * @param listener 事件监听函数.
193
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
194
+ * @return {} 移除事件监听函数.
195
+ */
196
+ onBeforeRequest(listener: IKgSubmitBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
197
+ /**
198
+ * <p>监听事件: 点击取消按钮, 或者点击右上角的关闭按钮, 已经关闭弹窗.</p>
199
+ * @param listener 事件监听函数.
200
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
201
+ * @return {} 移除事件监听函数.
202
+ */
203
+ onCancel(listener: IKgSubmitOnCancelEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
204
+ /**
205
+ * <p>监听事件: 关闭提交弹窗. 下面几种场景都会触发此事件:</p>
206
+ * <ul>
207
+ * <li>点击右上角的关闭按钮,</li>
208
+ * <li>点击取消按钮,</li>
209
+ * <li>点击保存按钮之后, 调用接口成功, 关闭弹窗,</li>
210
+ * </ul>
211
+ * @param listener 事件监听函数.
212
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
213
+ * @return {} 移除事件监听函数.
214
+ */
215
+ onClose(listener: IKgSubmitCloseEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
216
+ /**
217
+ * <p>监听事件: 请求失败. 请求失败了, 或者请求返回了错误消息.</p>
218
+ * @param listener 事件监听函数.
219
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
220
+ * @return {} 移除事件监听函数.
221
+ */
222
+ onError(listener: IKgSubmitErrorEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
223
+ /**
224
+ * <p>监听事件: 点击保存按钮之后, 执行默认逻辑之后, 调用接口成功, 关闭提交弹窗之后.</p>
225
+ * @param listener 事件监听函数.
226
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
227
+ * @return {} 移除事件监听函数.
228
+ */
229
+ onOk(listener: IKgSubmitOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
230
+ /**
231
+ * <p>监听事件: 打开提交弹窗.</p>
232
+ * @param listener 事件监听函数.
233
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
234
+ * @return {} 移除事件监听函数.
235
+ */
236
+ onOpen(listener: IKgSubmitOnOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
237
+ /**
238
+ * <p>修改某个「提交表单字段」的部分属性.</p>
239
+ *
240
+ * <p>由于提交表单肯定是关联某个按钮的, 因此需要先确认是哪个按钮, 确认逻辑如下:</p>
241
+ * <ul>
242
+ * <li>
243
+ * <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonVarName} === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
244
+ * </li>
245
+ * <li>
246
+ * <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarButton.var_nam} 是否匹配来确认按钮.</p>
247
+ * </li>
248
+ * <li>
249
+ * <p>如果参数 {@link param.buttonType} !== <code>undefined</code> && {@link param.buttonType} !== <code>OTHER</code>, 根据 {@link param.buttonType} 和 {@link VarButton.typ} 是否匹配来确认按钮.</p>
250
+ * </li>
251
+ * </ul>
252
+ *
253
+ * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
254
+ * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
255
+ * @param param.properties 要修改的部分属性.
256
+ * @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
257
+ */
258
+ patchVarSubmitDetail(param: {
259
+ buttonType?: KG__VAR_BUTTON__TYPE;
260
+ buttonVarName?: string | null;
261
+ properties: VarSubmitDetail;
262
+ varName: string | null | undefined;
263
+ }): Promise<void>;
264
+ /**
265
+ * 表单验证规则.
266
+ *
267
+ * @deprecated 请使用 {@link formRules}.
268
+ */
269
+ rules: ReturnType<IKgSubmitStore['getFormRules']>;
270
+ /**
271
+ * <p>「查询按钮」的「提交表单配置」.</p>
272
+ */
273
+ searchVarSubmitConfig: ComputedRef<VarSubmitConfig | null>;
274
+ /**
275
+ * <p>「查询按钮」的「提交表单配置」的文本宽度.</p>
276
+ */
277
+ searchVarSubmitConfig$LabelColumn: ComputedRef<number>;
278
+ /**
279
+ * <p>「查询按钮」的「提交表单配置」的文本宽度单位.</p>
280
+ */
281
+ searchVarSubmitConfig$LabelColumnUnit: ComputedRef<KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT>;
282
+ /**
283
+ * <p>「查询按钮」的「提交表单配置」的布局.</p>
284
+ */
285
+ searchVarSubmitConfig$Layout: ComputedRef<KG__VAR_SUBMIT_CONFIG__LAYOUT>;
286
+ /**
287
+ * 状态数据.
288
+ */
289
+ store: IKgSubmitStore;
290
+ varSubmitConfigs: ComputedRef<Array<VarSubmitConfig>>;
291
+ }
292
+ /**
293
+ * @param formID 界面标识.
294
+ */
295
+ export declare function useKgSubmit(formID?: string | null): IUseKgSubmit;