@kengic/vue 0.16.7-beta.0 → 0.16.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +3476 -2938
  4. package/dist/src/apis/WMS/Controllers/VarContextController/Add.d.ts +16 -0
  5. package/dist/src/apis/WMS/Controllers/VarContextController/Delete.d.ts +18 -0
  6. package/dist/src/apis/WMS/Controllers/VarContextController/DeleteBatch.d.ts +18 -0
  7. package/dist/src/apis/WMS/Controllers/VarContextController/Edit.d.ts +16 -0
  8. package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +24 -0
  9. package/dist/src/apis/WMS/Controllers/VarContextController/ImportExcel.d.ts +15 -0
  10. package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +31 -0
  11. package/dist/src/apis/WMS/Controllers/VarContextController/QueryById.d.ts +19 -0
  12. package/dist/src/apis/WMS/Controllers/VarContextController/index.d.ts +8 -0
  13. package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +19 -0
  14. package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +1 -0
  15. package/dist/src/apis/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
  16. package/dist/src/apis/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
  17. package/dist/src/apis/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
  18. package/dist/src/apis/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +19 -0
  19. package/dist/src/apis/WMS/Controllers/VarProfileMasterController/index.d.ts +1 -0
  20. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Add.d.ts +16 -0
  21. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Delete.d.ts +18 -0
  22. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts +18 -0
  23. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Edit.d.ts +16 -0
  24. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ExportXls.d.ts +30 -0
  25. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ImportExcel.d.ts +15 -0
  26. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/List.d.ts +37 -0
  27. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/QueryById.d.ts +19 -0
  28. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/index.d.ts +8 -0
  29. package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +52 -0
  30. package/dist/src/apis/WMS/Controllers/WhController/index.d.ts +1 -0
  31. package/dist/src/apis/WMS/Controllers/index.d.ts +6 -0
  32. package/dist/src/apis/WMS/index.d.ts +2 -0
  33. package/dist/src/apis/WMS/models.d.ts +728 -0
  34. package/dist/src/apis/api.d.ts +1 -0
  35. package/dist/src/apis/def.d.ts +1 -0
  36. package/dist/src/apis/index.d.ts +2 -0
  37. package/dist/src/components/KgAppSelect/KgAppSelect.d.ts +47 -0
  38. package/dist/src/components/KgAppSelect/index.d.ts +3 -0
  39. package/dist/src/components/KgAppSelect/index.hooks.d.ts +41 -0
  40. package/dist/src/components/KgAppSelect/index.store.d.ts +73 -0
  41. package/dist/src/components/KgButton/KgButton.Item.d.ts +41 -0
  42. package/dist/src/components/KgButton/KgButton.Item.data.d.ts +31 -0
  43. package/dist/src/components/KgButton/KgButton.d.ts +34 -0
  44. package/dist/src/components/KgButton/KgButton.hooks.d.ts +61 -0
  45. package/dist/src/components/KgButton/KgButton.store.d.ts +89 -0
  46. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +39 -0
  47. package/dist/src/components/KgButton/components/KgButton.Create.d.ts +39 -0
  48. package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +40 -0
  49. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +39 -0
  50. package/dist/src/components/KgButton/components/KgButton.Import.d.ts +39 -0
  51. package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +39 -0
  52. package/dist/src/components/KgButton/components/KgButton.Other.d.ts +40 -0
  53. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +40 -0
  54. package/dist/src/components/KgButton/components/KgButton.Update.d.ts +39 -0
  55. package/dist/src/components/KgButton/index.d.ts +62 -0
  56. package/dist/src/components/KgForm/KgForm.d.ts +414 -0
  57. package/dist/src/components/KgForm/index.d.ts +604 -0
  58. package/dist/src/components/KgForm/index.hooks.d.ts +42 -0
  59. package/dist/src/components/KgForm/index.store.d.ts +107 -0
  60. package/dist/src/components/KgForm/index.vm.d.ts +9 -0
  61. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +100 -0
  62. package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +17 -0
  63. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +17 -0
  64. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +32 -0
  65. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +103 -0
  66. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +102 -0
  67. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +100 -0
  68. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +100 -0
  69. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +99 -0
  70. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +99 -0
  71. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +99 -0
  72. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +104 -0
  73. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +27 -0
  74. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +99 -0
  75. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +99 -0
  76. package/dist/src/components/KgForm.Item/index.d.ts +2 -0
  77. package/dist/src/components/KgForm.Item/index.vm.d.ts +104 -0
  78. package/dist/src/components/KgModal/KgModal.d.ts +395 -0
  79. package/dist/src/components/KgModal/components/KgModal.Close.d.ts +41 -0
  80. package/dist/src/components/KgModal/index.d.ts +2 -0
  81. package/dist/src/components/KgModal/index.vm.d.ts +194 -0
  82. package/dist/src/components/KgProgressA/KgProgressA.d.ts +85 -0
  83. package/dist/src/components/KgProgressA/index.d.ts +1 -0
  84. package/dist/src/components/KgResizable/KgResizable.d.ts +143 -0
  85. package/dist/src/components/KgResizable/index.d.ts +1 -0
  86. package/dist/src/components/KgSearch/KgSearch.d.ts +42 -0
  87. package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +39 -0
  88. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +22 -0
  89. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +8 -0
  90. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +24 -0
  91. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts +7 -0
  92. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +32 -0
  93. package/dist/src/components/KgSearch/index.d.ts +3 -0
  94. package/dist/src/components/KgSearch/index.hooks.d.ts +41 -0
  95. package/dist/src/components/KgSearch/index.store.d.ts +86 -0
  96. package/dist/src/components/KgSearch/index.vm.d.ts +1 -0
  97. package/dist/src/components/KgSubmit/KgSubmit.d.ts +41 -0
  98. package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +20 -0
  99. package/dist/src/components/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +28 -0
  100. package/dist/src/components/KgSubmit/components/KgSubmit.Header.d.ts +82 -0
  101. package/dist/src/components/KgSubmit/index.d.ts +4 -0
  102. package/dist/src/components/KgSubmit/index.hooks.d.ts +74 -0
  103. package/dist/src/components/KgSubmit/index.store.d.ts +130 -0
  104. package/dist/src/components/KgSubmit/index.vm.d.ts +10 -0
  105. package/dist/src/components/KgTable/KgTable.d.ts +39 -0
  106. package/dist/src/components/KgTable/KgTable.hooks.d.ts +43 -0
  107. package/dist/src/components/KgTable/components/KgTable.Cell.d.ts +61 -0
  108. package/dist/src/components/KgTable/components/KgTable.Info.d.ts +58 -0
  109. package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +5 -0
  110. package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +22 -0
  111. package/dist/src/components/KgTable/components/setting/KgTable.Setting.hooks.d.ts +14 -0
  112. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +22 -0
  113. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +21 -0
  114. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +24 -0
  115. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts +23 -0
  116. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +33 -0
  117. package/dist/src/components/KgTable/index.d.ts +4 -0
  118. package/dist/src/components/KgTable/index.hooks.d.ts +84 -0
  119. package/dist/src/components/KgTable/index.store.d.ts +157 -0
  120. package/dist/src/components/KgTable/index.vm.d.ts +66 -0
  121. package/dist/src/components/KgVar/KgVar.d.ts +28 -0
  122. package/dist/src/components/KgVar/index.d.ts +4 -0
  123. package/dist/src/components/KgVar/index.hooks.d.ts +242 -0
  124. package/dist/src/components/KgVar/index.store.d.ts +315 -0
  125. package/dist/src/components/KgVar/index.store.service.d.ts +21 -0
  126. package/dist/src/components/KgVar/index.vm.d.ts +47 -0
  127. package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +2 -0
  128. package/dist/src/components/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +24 -0
  129. package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +17 -0
  130. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +25 -0
  131. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +29 -0
  132. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +22 -0
  133. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +25 -0
  134. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +22 -0
  135. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +33 -0
  136. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariableCatalog.d.ts +3 -0
  137. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariableCatalog.data.d.ts +3 -0
  138. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +3 -0
  139. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +3 -0
  140. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +3 -0
  141. package/dist/src/components/KgVarConfig/index.d.ts +2 -0
  142. package/dist/src/components/KgVarConfig/index.store.d.ts +20 -0
  143. package/dist/src/components/KgVarConfig/index.vm.d.ts +3 -0
  144. package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +38 -0
  145. package/dist/src/components/KgWarehouse/index.d.ts +4 -0
  146. package/dist/src/components/KgWarehouse/index.guard.d.ts +8 -0
  147. package/dist/src/components/KgWarehouse/index.hooks.d.ts +27 -0
  148. package/dist/src/components/KgWarehouse/index.store.d.ts +63 -0
  149. package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +60 -0
  150. package/dist/src/components/KgYesOrNo/index.d.ts +1 -0
  151. package/dist/src/components/index.d.ts +16 -0
  152. package/dist/src/components/util.d.ts +14 -0
  153. package/dist/src/config/index.d.ts +3 -0
  154. package/dist/src/config/index.hooks.d.ts +43 -0
  155. package/dist/src/config/index.store.d.ts +192 -0
  156. package/dist/src/config/setup.d.ts +45 -0
  157. package/dist/src/consts/i18n/en.d.ts +228 -0
  158. package/dist/src/consts/i18n/index.d.ts +2 -0
  159. package/dist/src/consts/i18n/zh_CN.d.ts +227 -0
  160. package/dist/src/consts/index.d.ts +253 -0
  161. package/dist/src/consts/index.vm.d.ts +170 -0
  162. package/dist/src/consts/injection-keys.const.d.ts +9 -0
  163. package/dist/src/helpers/ant-design-vue.d.ts +316 -0
  164. package/dist/src/helpers/tsx.helper.d.ts +13 -0
  165. package/dist/src/index.d.ts +9 -0
  166. package/dist/src/pages/KgPageDda/KgPageDda.d.ts +8 -0
  167. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +32 -0
  168. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.d.ts +7 -0
  169. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +8 -0
  170. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Child.d.ts +7 -0
  171. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Menu.d.ts +7 -0
  172. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Search.d.ts +7 -0
  173. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Submit.d.ts +7 -0
  174. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Table.d.ts +7 -0
  175. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.d.ts +29 -0
  176. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +26 -0
  177. package/dist/src/pages/KgPageDda/index.const.d.ts +11 -0
  178. package/dist/src/pages/KgPageDda/index.d.ts +5 -0
  179. package/dist/src/pages/index.d.ts +2 -0
  180. package/dist/src/services/http-client.d.ts +46 -0
  181. package/dist/src/services/index.d.ts +1 -0
  182. package/dist/src/utils/index.d.ts +6 -0
  183. package/dist/src/utils/kg-auth.util.d.ts +26 -0
  184. package/dist/src/utils/kg-dom.util.d.ts +12 -0
  185. package/dist/src/utils/kg-logger.util.d.ts +65 -0
  186. package/dist/src/utils/kg-route.util.d.ts +54 -0
  187. package/dist/src/utils/kg-var.util.d.ts +36 -0
  188. package/dist/src/utils/kg.util.d.ts +114 -0
  189. package/package.json +6 -5
@@ -0,0 +1,316 @@
1
+ import { CSSProperties, ExtractPropTypes, HTMLAttributes, PropType } from 'vue';
2
+ import { ButtonHTMLType, LegacyButtonType } from 'ant-design-vue/es/button/buttonTypes';
3
+ import { VueNode } from 'ant-design-vue/es/_util/type';
4
+ import { ButtonShape, ButtonType } from 'ant-design-vue/lib/button';
5
+ import { SizeType } from 'ant-design-vue/es/config-provider';
6
+ import { RequiredMark } from 'ant-design-vue/es/form/Form';
7
+ import { ValidateMessages } from 'ant-design-vue/es/form/interface';
8
+ export declare const formProps: () => {
9
+ layout: PropType<"horizontal" | "inline" | "vertical">;
10
+ labelCol: {
11
+ type: PropType<Partial<ExtractPropTypes<{
12
+ span: (StringConstructor | NumberConstructor)[];
13
+ order: (StringConstructor | NumberConstructor)[];
14
+ offset: (StringConstructor | NumberConstructor)[];
15
+ push: (StringConstructor | NumberConstructor)[];
16
+ pull: (StringConstructor | NumberConstructor)[];
17
+ xs: {
18
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
19
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
20
+ };
21
+ sm: {
22
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
23
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
24
+ };
25
+ md: {
26
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
27
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
28
+ };
29
+ lg: {
30
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
31
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
32
+ };
33
+ xl: {
34
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
35
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
36
+ };
37
+ xxl: {
38
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
39
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
40
+ };
41
+ xxxl: {
42
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
43
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
44
+ };
45
+ prefixCls: StringConstructor;
46
+ flex: (StringConstructor | NumberConstructor)[];
47
+ }>> & HTMLAttributes>;
48
+ };
49
+ wrapperCol: {
50
+ type: PropType<Partial<ExtractPropTypes<{
51
+ span: (StringConstructor | NumberConstructor)[];
52
+ order: (StringConstructor | NumberConstructor)[];
53
+ offset: (StringConstructor | NumberConstructor)[];
54
+ push: (StringConstructor | NumberConstructor)[];
55
+ pull: (StringConstructor | NumberConstructor)[];
56
+ xs: {
57
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
58
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
59
+ };
60
+ sm: {
61
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
62
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
63
+ };
64
+ md: {
65
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
66
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
67
+ };
68
+ lg: {
69
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
70
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
71
+ };
72
+ xl: {
73
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
74
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
75
+ };
76
+ xxl: {
77
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
78
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
79
+ };
80
+ xxxl: {
81
+ type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
82
+ default: string | number | import("ant-design-vue/lib/grid").ColSize;
83
+ };
84
+ prefixCls: StringConstructor;
85
+ flex: (StringConstructor | NumberConstructor)[];
86
+ }>> & HTMLAttributes>;
87
+ };
88
+ colon: {
89
+ type: BooleanConstructor;
90
+ default: undefined;
91
+ };
92
+ labelAlign: PropType<"left" | "right">;
93
+ labelWrap: {
94
+ type: BooleanConstructor;
95
+ default: undefined;
96
+ };
97
+ prefixCls: StringConstructor;
98
+ requiredMark: {
99
+ type: PropType<"" | RequiredMark>;
100
+ default: undefined;
101
+ };
102
+ model: PropType<Object>;
103
+ rules: {
104
+ type: PropType<{
105
+ [k: string]: import("ant-design-vue/es/form").RuleObject | import("ant-design-vue/es/form").RuleObject[];
106
+ }>;
107
+ };
108
+ validateMessages: {
109
+ type: PropType<ValidateMessages>;
110
+ default: undefined;
111
+ };
112
+ validateOnRuleChange: {
113
+ type: BooleanConstructor;
114
+ default: undefined;
115
+ };
116
+ scrollToFirstError: {
117
+ type: PropType<any>;
118
+ };
119
+ onSubmit: PropType<(e: Event) => void>;
120
+ name: StringConstructor;
121
+ validateTrigger: {
122
+ type: PropType<string | string[]>;
123
+ };
124
+ size: {
125
+ type: PropType<SizeType>;
126
+ };
127
+ onValuesChange: {
128
+ type: PropType<((changedValues: any, values: any) => void) | undefined>;
129
+ };
130
+ onFieldsChange: {
131
+ type: PropType<((changedFields: import("ant-design-vue/es/form/interface").FieldData[], allFields: import("ant-design-vue/es/form/interface").FieldData[]) => void) | undefined>;
132
+ };
133
+ onFinish: {
134
+ type: PropType<((values: any) => void) | undefined>;
135
+ };
136
+ onFinishFailed: {
137
+ type: PropType<((errorInfo: import("ant-design-vue/es/form/interface").ValidateErrorEntity<any>) => void) | undefined>;
138
+ };
139
+ onValidate: {
140
+ type: PropType<((name: string | number | string[] | number[], status: boolean, errors: string[] | null) => void) | undefined>;
141
+ };
142
+ };
143
+ declare type getContainerFunc = () => HTMLElement;
144
+ export declare const modalProps: () => {
145
+ prefixCls: StringConstructor;
146
+ visible: {
147
+ type: BooleanConstructor;
148
+ default: undefined;
149
+ };
150
+ confirmLoading: {
151
+ type: BooleanConstructor;
152
+ default: undefined;
153
+ };
154
+ title: PropType<any>;
155
+ closable: {
156
+ type: BooleanConstructor;
157
+ default: undefined;
158
+ };
159
+ closeIcon: PropType<any>;
160
+ onOk: PropType<(e: MouseEvent) => void>;
161
+ onCancel: PropType<(e: MouseEvent) => void>;
162
+ 'onUpdate:visible': PropType<(visible: boolean) => void>;
163
+ onChange: PropType<(visible: boolean) => void>;
164
+ afterClose: PropType<() => void>;
165
+ centered: {
166
+ type: BooleanConstructor;
167
+ default: undefined;
168
+ };
169
+ width: (StringConstructor | NumberConstructor)[];
170
+ footer: PropType<any>;
171
+ okText: PropType<any>;
172
+ okType: PropType<LegacyButtonType>;
173
+ cancelText: PropType<any>;
174
+ icon: PropType<any>;
175
+ maskClosable: {
176
+ type: BooleanConstructor;
177
+ default: undefined;
178
+ };
179
+ forceRender: {
180
+ type: BooleanConstructor;
181
+ default: undefined;
182
+ };
183
+ okButtonProps: PropType<Partial<ExtractPropTypes<{
184
+ prefixCls: StringConstructor;
185
+ type: PropType<ButtonType>;
186
+ htmlType: {
187
+ type: PropType<ButtonHTMLType>;
188
+ default: string;
189
+ };
190
+ shape: {
191
+ type: PropType<ButtonShape>;
192
+ };
193
+ size: {
194
+ type: PropType<SizeType>;
195
+ };
196
+ loading: {
197
+ type: PropType<boolean | {
198
+ delay?: number | undefined;
199
+ }>;
200
+ default: () => boolean | {
201
+ delay?: number;
202
+ };
203
+ };
204
+ disabled: {
205
+ type: BooleanConstructor;
206
+ default: undefined;
207
+ };
208
+ ghost: {
209
+ type: BooleanConstructor;
210
+ default: undefined;
211
+ };
212
+ block: {
213
+ type: BooleanConstructor;
214
+ default: undefined;
215
+ };
216
+ danger: {
217
+ type: BooleanConstructor;
218
+ default: undefined;
219
+ };
220
+ icon: PropType<any>;
221
+ href: StringConstructor;
222
+ target: StringConstructor;
223
+ title: StringConstructor;
224
+ onClick: {
225
+ type: PropType<(event: MouseEvent) => void>;
226
+ };
227
+ onMousedown: {
228
+ type: PropType<(event: MouseEvent) => void>;
229
+ };
230
+ }>>>;
231
+ cancelButtonProps: PropType<Partial<ExtractPropTypes<{
232
+ prefixCls: StringConstructor;
233
+ type: PropType<ButtonType>;
234
+ htmlType: {
235
+ type: PropType<ButtonHTMLType>;
236
+ default: string;
237
+ };
238
+ shape: {
239
+ type: PropType<ButtonShape>;
240
+ };
241
+ size: {
242
+ type: PropType<SizeType>;
243
+ };
244
+ loading: {
245
+ type: PropType<boolean | {
246
+ delay?: number | undefined;
247
+ }>;
248
+ default: () => boolean | {
249
+ delay?: number;
250
+ };
251
+ };
252
+ disabled: {
253
+ type: BooleanConstructor;
254
+ default: undefined;
255
+ };
256
+ ghost: {
257
+ type: BooleanConstructor;
258
+ default: undefined;
259
+ };
260
+ block: {
261
+ type: BooleanConstructor;
262
+ default: undefined;
263
+ };
264
+ danger: {
265
+ type: BooleanConstructor;
266
+ default: undefined;
267
+ };
268
+ icon: PropType<any>;
269
+ href: StringConstructor;
270
+ target: StringConstructor;
271
+ title: StringConstructor;
272
+ onClick: {
273
+ type: PropType<(event: MouseEvent) => void>;
274
+ };
275
+ onMousedown: {
276
+ type: PropType<(event: MouseEvent) => void>;
277
+ };
278
+ }>>>;
279
+ destroyOnClose: {
280
+ type: BooleanConstructor;
281
+ default: undefined;
282
+ };
283
+ wrapClassName: StringConstructor;
284
+ maskTransitionName: StringConstructor;
285
+ transitionName: StringConstructor;
286
+ getContainer: {
287
+ type: PropType<string | false | HTMLElement | getContainerFunc>;
288
+ default: undefined;
289
+ };
290
+ zIndex: NumberConstructor;
291
+ bodyStyle: {
292
+ type: PropType<CSSProperties>;
293
+ default: CSSProperties;
294
+ };
295
+ maskStyle: {
296
+ type: PropType<CSSProperties>;
297
+ default: CSSProperties;
298
+ };
299
+ mask: {
300
+ type: BooleanConstructor;
301
+ default: undefined;
302
+ };
303
+ keyboard: {
304
+ type: BooleanConstructor;
305
+ default: undefined;
306
+ };
307
+ wrapProps: ObjectConstructor;
308
+ focusTriggerAfterClose: {
309
+ type: BooleanConstructor;
310
+ default: undefined;
311
+ };
312
+ modalRender: PropType<(arg: {
313
+ originVNode: VueNode;
314
+ }) => VueNode>;
315
+ };
316
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Slots } from 'vue';
2
+ /**
3
+ * 根据 name 获取 slot 的渲染结果.
4
+ */
5
+ export declare function renderSlot(slots: Slots, name: string): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
6
+ [key: string]: any;
7
+ }>[] | null;
8
+ /**
9
+ * 扩展 slots.
10
+ * @param slots 原始的 slots.
11
+ * @param excludes 要排除的 slot.
12
+ */
13
+ export declare function renderSlots(slots: Slots, excludes?: string[]): any;
@@ -0,0 +1,9 @@
1
+ import './assets/index.less';
2
+ export { API as KG_API } from './apis';
3
+ export * from './apis/WMS/models';
4
+ export * from './components';
5
+ export * from './config';
6
+ export * from './consts';
7
+ export * from './pages';
8
+ export * from './services';
9
+ export * from './utils';
@@ -0,0 +1,8 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import './KgPageDda.less';
3
+ export declare const getProps: () => any;
4
+ export declare type IKgPageDdaProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
5
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
6
+ [x: string]: any;
7
+ }>;
8
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export declare const getProps: () => {
3
+ visible: PropType<boolean>;
4
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
5
+ sql: PropType<string>;
6
+ /** 确定. */
7
+ onKgOk: PropType<(args: {
8
+ sql: string;
9
+ }) => void>;
10
+ };
11
+ export declare type IKgPageDdaCreateBasicSqlModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
+ declare const _default: import("vue").DefineComponent<{
13
+ visible: PropType<boolean>;
14
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
15
+ sql: PropType<string>;
16
+ /** 确定. */
17
+ onKgOk: PropType<(args: {
18
+ sql: string;
19
+ }) => void>;
20
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "kgOk")[], "update:visible" | "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
21
+ visible: PropType<boolean>;
22
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
23
+ sql: PropType<string>;
24
+ /** 确定. */
25
+ onKgOk: PropType<(args: {
26
+ sql: string;
27
+ }) => void>;
28
+ }>> & {
29
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
30
+ onKgOk?: ((...args: any[]) => any) | undefined;
31
+ }, {}>;
32
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const getProps: () => any;
3
+ export declare type IKgPageDdaCreateBasicProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
+ [x: string]: any;
6
+ }>;
7
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const getProps: () => any;
3
+ export declare type IKgPageDdaCreateButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
+ export declare const FORM_ID = "KgPageDda.Create.Button";
5
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
6
+ [x: string]: any;
7
+ }>;
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const getProps: () => any;
3
+ export declare type IKgPageDdaCreate06Props = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
+ [x: string]: any;
6
+ }>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const getProps: () => any;
3
+ export declare type IKgPageDdaCreate07Props = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
+ [x: string]: any;
6
+ }>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const getProps: () => any;
3
+ export declare type IKgPageDdaCreate02Props = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
+ [x: string]: any;
6
+ }>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const getProps: () => any;
3
+ export declare type IKgPageDdaCreate03Props = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
+ [x: string]: any;
6
+ }>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const getProps: () => any;
3
+ export declare type IKgPageDdaCreate04Props = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
+ [x: string]: any;
6
+ }>;
7
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgPageDda.Create.less';
3
+ export declare const getProps: () => {
4
+ /**
5
+ * 是否显示.
6
+ * @default false
7
+ */
8
+ kgVisible: PropType<boolean>;
9
+ 'onUpdate:kgVisible': PropType<(value: boolean) => void>;
10
+ };
11
+ export declare type IKgPageDdaCreateProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
+ declare const _default: import("vue").DefineComponent<{
13
+ /**
14
+ * 是否显示.
15
+ * @default false
16
+ */
17
+ kgVisible: PropType<boolean>;
18
+ 'onUpdate:kgVisible': PropType<(value: boolean) => void>;
19
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:kgVisible"[], "update:kgVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
20
+ /**
21
+ * 是否显示.
22
+ * @default false
23
+ */
24
+ kgVisible: PropType<boolean>;
25
+ 'onUpdate:kgVisible': PropType<(value: boolean) => void>;
26
+ }>> & {
27
+ "onUpdate:kgVisible"?: ((...args: any[]) => any) | undefined;
28
+ }, {}>;
29
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { StoreDefinition } from 'pinia';
2
+ export interface IKgPageDdaCreateState {
3
+ /** 界面标识. */
4
+ formID: string;
5
+ /** 按钮列表. */
6
+ varButtons: Array<any>;
7
+ }
8
+ export declare type IKgPageDdaCreateStoreDefinition = StoreDefinition<'KgPageDdaCreate', IKgPageDdaCreateState, {
9
+ getFormID(): string;
10
+ getVarButtons(): Array<any>;
11
+ }, {
12
+ setFormID(formID: string | null | undefined): void;
13
+ setVarButtons(buttons: Array<any>): void;
14
+ /**
15
+ * 修改查询按钮的部分属性.
16
+ * @param properties 要修改的部分属性.
17
+ */
18
+ patchVarButtonSearch(properties: any): void;
19
+ /**
20
+ * 添加一个按钮.
21
+ * @param button 要添加的按钮.
22
+ */
23
+ createVarButton(button: any): void;
24
+ }>;
25
+ export declare type IKgPageDdaCreateStore = ReturnType<IKgPageDdaCreateStoreDefinition>;
26
+ export declare const useKgPageDdaCreateStore: () => IKgPageDdaCreateStoreDefinition;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 用户添加的行.
3
+ * 在「查询条件」「提交字段」「表格视图」中, 用户可以自己添加额外的行, 作为「查询字段」「提交字段」「表格的列」, 本常量用来作为该行的 ID.
4
+ */
5
+ export declare const __KG__CUSTOM_ROW_ID__ = "__KG__CUSTOM_ROW_ID__";
6
+ /**
7
+ * 用于添加的行.
8
+ * 在「查询条件」「提交字段」「表格视图」中, 用户可以自己添加额外的行, 作为「查询字段」「提交字段」「表格的列」,
9
+ * 为了操作方便, 会在表格中始终显示一个特殊的行, 称之为「用于添加的行」, 点击该行左侧的加号就可以添加新的行, 本常量用来作为该特殊的行的 ID.
10
+ */
11
+ export declare const __KG__INSERT_ROW_ID__ = "__KG__INSERT_ROW_ID__";
@@ -0,0 +1,5 @@
1
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
2
+ [x: string]: any;
3
+ }>;
4
+ export default _default;
5
+ export { type IKgPageDdaProps } from './KgPageDda';
@@ -0,0 +1,2 @@
1
+ export * from './KgPageDda';
2
+ export { default as KgPageDda } from './KgPageDda';
@@ -0,0 +1,46 @@
1
+ import { AxiosInstance, type AxiosRequestConfig } from 'axios';
2
+ import dayjs from 'dayjs';
3
+ import { KG_DYNAMIC_QUERY_OPERATOR } from '../consts';
4
+ interface IHttpClient {
5
+ axiosInstance: AxiosInstance;
6
+ options: {
7
+ requestOptions?: IRequestOptions;
8
+ } & AxiosRequestConfig;
9
+ request<T = any>(config: IRequestConfig, options?: IRequestOptions): Promise<T>;
10
+ }
11
+ /**
12
+ * 设置 httpClient 实例.
13
+ */
14
+ declare function setupHttpClient(httpClient: IHttpClient | null): void;
15
+ /**
16
+ * 获取 httpClient 实例.
17
+ */
18
+ declare function httpClient(): IHttpClient;
19
+ interface IRequestConfig<TQ = {}, TB = {}> extends AxiosRequestConfig<TB> {
20
+ params?: TQ;
21
+ }
22
+ interface IRequestOptions {
23
+ joinParamsToUrl?: boolean;
24
+ formatDate?: boolean;
25
+ isTransformResponse?: boolean;
26
+ isReturnNativeResponse?: boolean;
27
+ joinPrefix?: boolean;
28
+ apiUrl?: string;
29
+ urlPrefix?: string;
30
+ errorMessageMode?: 'none' | 'modal' | 'message' | undefined;
31
+ successMessageMode?: 'none' | 'success' | 'error' | undefined;
32
+ joinTime?: boolean;
33
+ ignoreCancelToken?: boolean;
34
+ withToken?: boolean;
35
+ /** 是否使用模拟数据. */
36
+ mock?: boolean;
37
+ /**
38
+ * 如果该参数不为空, 表示该请求启用了高级查询, 该参数包含各个字段的高级查询操作符.
39
+ */
40
+ dynamicQueryOperators?: Record<string, KG_DYNAMIC_QUERY_OPERATOR>;
41
+ /**
42
+ * dayjs 实例, 必须跟 {@link IRequestOptions.dynamicQueryOperators} 同时传值. 即如果参数 {@link IRequestOptions.dynamicQueryOperators} 不为空, 则参数 {@link IRequestOptions.dayjs} 也必须不为空.
43
+ */
44
+ dayjs?: typeof dayjs;
45
+ }
46
+ export { setupHttpClient, httpClient, type IRequestConfig, type IRequestOptions };
@@ -0,0 +1 @@
1
+ export * from './http-client';
@@ -0,0 +1,6 @@
1
+ export * from './kg-auth.util';
2
+ export * from './kg-dom.util';
3
+ export * from './kg.util';
4
+ export * from './kg-logger.util';
5
+ export * from './kg-route.util';
6
+ export * from './kg-var.util';
@@ -0,0 +1,26 @@
1
+ import { KG_APP } from '../consts';
2
+ export declare class KgAuthUtil {
3
+ /**
4
+ * 判断当前登录用户是否是管理员.
5
+ * @return {} 如果当前登录用户是管理员则返回 true, 否则返回 false.
6
+ */
7
+ static isAdminUser(): boolean;
8
+ /**
9
+ * 判断某个模块是否具有访问权限.
10
+ * @param app 模块.
11
+ * @return {} 如果模块具有访问权限则返回 true, 否则返回 false.
12
+ */
13
+ static isAppAuthenticated(app: KG_APP | null | undefined): boolean;
14
+ /**
15
+ * 判断某个地址是否具有访问权限.
16
+ * @param path 地址.
17
+ * @return {} 如果地址具有访问权限则返回 true, 否则返回 false.
18
+ */
19
+ static isPathAuthenticated(path: string | null | undefined): boolean;
20
+ /**
21
+ * 获取权限策略.
22
+ * @param permissionCode 权限编码.
23
+ * @return {} 权限策略.
24
+ */
25
+ static getPermissionType(permissionCode: string | null | undefined): number | null;
26
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * DOM 工具.
3
+ */
4
+ export declare class KgDomUtil {
5
+ /**
6
+ * 判断元素是否不能响应点击事件.
7
+ * 如果不想让某个元素响应点击事件, 则可以给它的父元素加上 kg-not-clickable 样式类.
8
+ * @param el 元素.
9
+ * @param classes 除了 kg-not-clickable 之外额外需要判断的样式类.
10
+ */
11
+ static isNotClickable(el?: Element | null, classes?: Array<string>): boolean;
12
+ }