@kengic/vue 0.16.6 → 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 +3479 -2941
  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,24 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgVarConfig.FormIDsModal.less';
3
+ export declare const getProps: () => {
4
+ visible: PropType<boolean>;
5
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
6
+ formIDs: PropType<string[]>;
7
+ onKgOk: PropType<(formID: string) => void>;
8
+ };
9
+ export declare type IKgVarConfigFormIDsModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
10
+ declare const _default: import("vue").DefineComponent<{
11
+ visible: PropType<boolean>;
12
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
13
+ formIDs: PropType<string[]>;
14
+ onKgOk: PropType<(formID: string) => void>;
15
+ }, () => 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<{
16
+ visible: PropType<boolean>;
17
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
18
+ formIDs: PropType<string[]>;
19
+ onKgOk: PropType<(formID: string) => void>;
20
+ }>> & {
21
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
22
+ onKgOk?: ((...args: any[]) => any) | undefined;
23
+ }, {}>;
24
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgVarConfig.Modal.less';
3
+ export declare const getProps: () => {
4
+ visible: PropType<boolean>;
5
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
6
+ };
7
+ export declare type IKgVarConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
8
+ declare const _default: import("vue").DefineComponent<{
9
+ visible: PropType<boolean>;
10
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
11
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
12
+ visible: PropType<boolean>;
13
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
14
+ }>> & {
15
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
16
+ }, {}>;
17
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgVarConfig.Modal.Button.VarButton.less';
3
+ export declare const FORM_ID__VAR_BUTTON = "kg-button.VarButton";
4
+ export declare const getProps: () => {
5
+ /** 主页面的页面标识. */
6
+ hostFormID: {
7
+ type: PropType<string>;
8
+ required: boolean;
9
+ };
10
+ };
11
+ export declare type IKgVarConfigModalButtonVarButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
+ declare const _default: import("vue").DefineComponent<{
13
+ /** 主页面的页面标识. */
14
+ hostFormID: {
15
+ type: PropType<string>;
16
+ required: boolean;
17
+ };
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
19
+ /** 主页面的页面标识. */
20
+ hostFormID: {
21
+ type: PropType<string>;
22
+ required: boolean;
23
+ };
24
+ }>>, {}>;
25
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export declare const FORM_ID__VAR_BUTTON_CONFIG = "kg-button.VarButtonConfig";
3
+ export declare const getProps: () => {
4
+ /** 主页面的页面标识. */
5
+ hostFormID: {
6
+ type: PropType<string>;
7
+ required: boolean;
8
+ };
9
+ onKgClose: PropType<() => void>;
10
+ };
11
+ export declare type IKgVarConfigModalButtonVarButtonConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
+ declare const _default: import("vue").DefineComponent<{
13
+ /** 主页面的页面标识. */
14
+ hostFormID: {
15
+ type: PropType<string>;
16
+ required: boolean;
17
+ };
18
+ onKgClose: PropType<() => void>;
19
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClose"[], "kgClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
20
+ /** 主页面的页面标识. */
21
+ hostFormID: {
22
+ type: PropType<string>;
23
+ required: boolean;
24
+ };
25
+ onKgClose: PropType<() => void>;
26
+ }>> & {
27
+ onKgClose?: ((...args: any[]) => any) | undefined;
28
+ }, {}>;
29
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { PropType } from 'vue';
2
+ export declare const getProps: () => {
3
+ /** 主页面的页面标识. */
4
+ hostFormID: {
5
+ type: PropType<string>;
6
+ required: boolean;
7
+ };
8
+ };
9
+ declare const _default: import("vue").DefineComponent<{
10
+ /** 主页面的页面标识. */
11
+ hostFormID: {
12
+ type: PropType<string>;
13
+ required: boolean;
14
+ };
15
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ /** 主页面的页面标识. */
17
+ hostFormID: {
18
+ type: PropType<string>;
19
+ required: boolean;
20
+ };
21
+ }>>, {}>;
22
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgVarConfig.Modal.Submit.VarSubmitField.less';
3
+ export declare const FORM_ID__VAR_SUBMIT_FIELD = "kg-submit.VarSubmitField";
4
+ export declare const getProps: () => {
5
+ /** 主页面的页面标识. */
6
+ hostFormID: {
7
+ type: PropType<string>;
8
+ required: boolean;
9
+ };
10
+ };
11
+ export declare type IKgVarConfigModalSubmitVarSubmitFieldProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
+ declare const _default: import("vue").DefineComponent<{
13
+ /** 主页面的页面标识. */
14
+ hostFormID: {
15
+ type: PropType<string>;
16
+ required: boolean;
17
+ };
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
19
+ /** 主页面的页面标识. */
20
+ hostFormID: {
21
+ type: PropType<string>;
22
+ required: boolean;
23
+ };
24
+ }>>, {}>;
25
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { PropType } from 'vue';
2
+ export declare const getProps: () => {
3
+ /** 主页面的页面标识. */
4
+ hostFormID: {
5
+ type: PropType<string>;
6
+ required: boolean;
7
+ };
8
+ };
9
+ declare const _default: import("vue").DefineComponent<{
10
+ /** 主页面的页面标识. */
11
+ hostFormID: {
12
+ type: PropType<string>;
13
+ required: boolean;
14
+ };
15
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ /** 主页面的页面标识. */
17
+ hostFormID: {
18
+ type: PropType<string>;
19
+ required: boolean;
20
+ };
21
+ }>>, {}>;
22
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgVarConfig.Modal.Var.CreateModal.less';
3
+ export declare const getProps: () => {
4
+ visible: PropType<boolean>;
5
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
6
+ /** 确定. */
7
+ onKgOk: PropType<(args: {
8
+ isAllForm: boolean;
9
+ isAllLanguage: boolean;
10
+ }) => void>;
11
+ };
12
+ export declare type IKgVarConfigModalVarCreateModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
13
+ declare const _default: import("vue").DefineComponent<{
14
+ visible: PropType<boolean>;
15
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
16
+ /** 确定. */
17
+ onKgOk: PropType<(args: {
18
+ isAllForm: boolean;
19
+ isAllLanguage: boolean;
20
+ }) => void>;
21
+ }, () => 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<{
22
+ visible: PropType<boolean>;
23
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
24
+ /** 确定. */
25
+ onKgOk: PropType<(args: {
26
+ isAllForm: boolean;
27
+ isAllLanguage: boolean;
28
+ }) => void>;
29
+ }>> & {
30
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
31
+ onKgOk?: ((...args: any[]) => any) | undefined;
32
+ }, {}>;
33
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import './KgVarConfig.Modal.Var.VarVariableCatalog.less';
2
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ColumnsType } from 'ant-design-vue/es/table';
2
+ import { VarContext } from '../../../../apis/WMS/models';
3
+ export declare const columns: () => ColumnsType<VarContext>;
@@ -0,0 +1,3 @@
1
+ import './KgVarConfig.Modal.Var.Vars.less';
2
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ColumnsType } from 'ant-design-vue/es/table';
2
+ import { VarContext } from '../../../../apis/WMS/models';
3
+ export declare const columns: () => ColumnsType<VarContext>;
@@ -0,0 +1,3 @@
1
+ import './KgVarConfig.Modal.Var.less';
2
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as KgVarConfig } from './KgVarConfig';
2
+ export * from './index.store';
@@ -0,0 +1,20 @@
1
+ import { StoreDefinition } from 'pinia';
2
+ import { VarVariableCatalog, VarContext } from '../../apis/WMS/models';
3
+ export interface IKgVarConfigState {
4
+ /** 变量. */
5
+ variable: {
6
+ /** 当前选中的变量. */
7
+ selectedVar: VarContext | null;
8
+ /** 当前选中的变量别名. */
9
+ selectedVarCatalog: VarVariableCatalog | null;
10
+ };
11
+ }
12
+ export declare type IKgVarConfigStoreDefinition = StoreDefinition<'KgVarConfig', IKgVarConfigState, {
13
+ getSelectedVar: VarContext | null;
14
+ getSelectedVarCatalog: VarVariableCatalog | null;
15
+ }, {
16
+ setSelectedVar(variable: VarContext | null): void;
17
+ setSelectedVarCatalog(variable: VarVariableCatalog | null): void;
18
+ }>;
19
+ export declare type IKgVarConfigStore = ReturnType<IKgVarConfigStoreDefinition>;
20
+ export declare const useKgVarConfigStore: () => IKgVarConfigStoreDefinition;
@@ -0,0 +1,3 @@
1
+ import { InjectionKey, Ref } from 'vue';
2
+ /** 正在被配置的界面标识. */
3
+ export declare const DI_CONFIG_FORM_ID: InjectionKey<Ref<string | null>>;
@@ -0,0 +1,38 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgWarehouse.less';
3
+ export declare const getProps: () => {
4
+ /**
5
+ * 是否隐藏.
6
+ * 该组件需要在不同的地方使用,
7
+ * 在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,
8
+ * 在有的地方, 不需要显示该组件, 用户通过参数控制是否打开弹窗, 比如登录页,
9
+ * @default undefined
10
+ */
11
+ kgInvisible: PropType<boolean>;
12
+ onKgOk: PropType<() => void>;
13
+ };
14
+ export declare type IKgWarehouseProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
15
+ declare const _default: import("vue").DefineComponent<{
16
+ /**
17
+ * 是否隐藏.
18
+ * 该组件需要在不同的地方使用,
19
+ * 在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,
20
+ * 在有的地方, 不需要显示该组件, 用户通过参数控制是否打开弹窗, 比如登录页,
21
+ * @default undefined
22
+ */
23
+ kgInvisible: PropType<boolean>;
24
+ onKgOk: PropType<() => void>;
25
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
26
+ /**
27
+ * 是否隐藏.
28
+ * 该组件需要在不同的地方使用,
29
+ * 在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,
30
+ * 在有的地方, 不需要显示该组件, 用户通过参数控制是否打开弹窗, 比如登录页,
31
+ * @default undefined
32
+ */
33
+ kgInvisible: PropType<boolean>;
34
+ onKgOk: PropType<() => void>;
35
+ }>> & {
36
+ onKgOk?: ((...args: any[]) => any) | undefined;
37
+ }, {}>;
38
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export { default as KgWarehouse } from './KgWarehouse';
2
+ export * from './index.guard';
3
+ export * from './index.hooks';
4
+ export * from './index.store';
@@ -0,0 +1,8 @@
1
+ import { Pinia } from 'pinia';
2
+ import { type Router } from 'vue-router';
3
+ /**
4
+ * 如果启用了仓库选择功能, 则必须选择仓库, 否则无法进入页面.
5
+ * @param router
6
+ * @param pinia
7
+ */
8
+ export declare function createKgWarehouseGuard(router: Router, pinia: Pinia): void;
@@ -0,0 +1,27 @@
1
+ import { Pinia } from 'pinia';
2
+ import { ComputedRef } from 'vue';
3
+ import { WhDTO } from '../../apis/WMS/models';
4
+ import { IRemoveEventListenerHandler } from '../../consts';
5
+ import { IKgWarehouseMountedCb, IKgWarehouseStore } from './index.store';
6
+ export declare type IUseKgWarehouse = {
7
+ store: IKgWarehouseStore;
8
+ /**
9
+ * 弹窗当前是否显示.
10
+ */
11
+ visible: ComputedRef<boolean>;
12
+ /**
13
+ * 当前仓库.
14
+ */
15
+ warehouse: ComputedRef<WhDTO | null>;
16
+ /**
17
+ * 事件: 组件加载完成.
18
+ * @param cb 回调函数.
19
+ * @param once 是否只会触发一次. 默认为 undefined.
20
+ */
21
+ onMounted(cb: IKgWarehouseMountedCb, once?: boolean): IRemoveEventListenerHandler;
22
+ };
23
+ /**
24
+ * 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
25
+ * @param pinia
26
+ */
27
+ export declare function useKgWarehouse(pinia?: Pinia): IUseKgWarehouse;
@@ -0,0 +1,63 @@
1
+ import { Pinia, StoreDefinition } from 'pinia';
2
+ import { WhDTO } from '../../apis/WMS/models';
3
+ import { IKgEventCb } from '../../consts';
4
+ /**
5
+ * 事件类型.
6
+ * 'mounted': 组件加载完成
7
+ */
8
+ export declare type IKgWarehouseEvent = 'mounted';
9
+ /** 事件监听函数: mounted. */
10
+ export declare type IKgWarehouseMountedCb = (() => void) & IKgEventCb;
11
+ export declare type IKgWarehouseCb = IKgWarehouseMountedCb;
12
+ export interface IKgWarehouseState {
13
+ /**
14
+ * 弹窗当前是否显示.
15
+ */
16
+ visible: boolean;
17
+ /**
18
+ * 当前仓库.
19
+ */
20
+ warehouse: WhDTO | null;
21
+ mountedListeners: Array<IKgWarehouseMountedCb>;
22
+ }
23
+ export declare type IKgWarehouseStoreDefinition = StoreDefinition<'KgWarehouse', IKgWarehouseState, {
24
+ /**
25
+ * 弹窗当前是否显示.
26
+ */
27
+ getVisible: boolean;
28
+ /**
29
+ * 当前仓库.
30
+ */
31
+ getWarehouse: WhDTO | null;
32
+ }, {
33
+ /**
34
+ * 注册事件监听.
35
+ * @param event 事件名称.
36
+ * @param cb 回调函数.
37
+ */
38
+ addEventListener(event: IKgWarehouseEvent, cb: IKgWarehouseCb): void;
39
+ /**
40
+ * 退订事件监听.
41
+ * @param event 事件名称.
42
+ * @param cb 回调函数.
43
+ */
44
+ removeEventListener(event: IKgWarehouseEvent, cb?: IKgWarehouseCb): void;
45
+ /**
46
+ * 触发事件.
47
+ * @param event 事件名称.
48
+ * @param args 数据.
49
+ */
50
+ emit(event: IKgWarehouseEvent, args?: any | null): void;
51
+ /**
52
+ * 设置弹窗是否显示.
53
+ * @param visible 是否显示.
54
+ */
55
+ setVisible(visible: boolean): void;
56
+ /**
57
+ * 设置当前仓库.
58
+ * @param warehouse 当前仓库.
59
+ */
60
+ setWarehouse(warehouse?: WhDTO | null): void;
61
+ }>;
62
+ export declare type IKgWarehouseStore = ReturnType<IKgWarehouseStoreDefinition>;
63
+ export declare const useKgWarehouseStore: (_pinia?: Pinia) => IKgWarehouseStoreDefinition;
@@ -0,0 +1,60 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgYesOrNo.less';
3
+ export declare const getProps: () => {
4
+ /**
5
+ * 布尔数据.
6
+ * @default undefined
7
+ */
8
+ kgValue: {
9
+ type: PropType<boolean>;
10
+ default: undefined;
11
+ };
12
+ /**
13
+ * 是否将 null/undefined 当成 false.
14
+ * @default false
15
+ */
16
+ kgNilAsFalse: {
17
+ type: PropType<boolean>;
18
+ default: boolean;
19
+ };
20
+ };
21
+ export declare type IKgYesOrNoProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
22
+ declare const _default: import("vue").DefineComponent<{
23
+ /**
24
+ * 布尔数据.
25
+ * @default undefined
26
+ */
27
+ kgValue: {
28
+ type: PropType<boolean>;
29
+ default: undefined;
30
+ };
31
+ /**
32
+ * 是否将 null/undefined 当成 false.
33
+ * @default false
34
+ */
35
+ kgNilAsFalse: {
36
+ type: PropType<boolean>;
37
+ default: boolean;
38
+ };
39
+ }, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
40
+ /**
41
+ * 布尔数据.
42
+ * @default undefined
43
+ */
44
+ kgValue: {
45
+ type: PropType<boolean>;
46
+ default: undefined;
47
+ };
48
+ /**
49
+ * 是否将 null/undefined 当成 false.
50
+ * @default false
51
+ */
52
+ kgNilAsFalse: {
53
+ type: PropType<boolean>;
54
+ default: boolean;
55
+ };
56
+ }>>, {
57
+ kgValue: boolean;
58
+ kgNilAsFalse: boolean;
59
+ }>;
60
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as KgYesOrNo, type IKgYesOrNoProps } from './KgYesOrNo';
@@ -0,0 +1,16 @@
1
+ export * from './KgAppSelect';
2
+ export * from './KgModal';
3
+ export * from './KgProgressA';
4
+ export * from './KgResizable';
5
+ export * from './KgSearch';
6
+ export * from './KgSubmit';
7
+ export * from './KgTable';
8
+ export * from './KgVar';
9
+ export * from './KgVarConfig';
10
+ export * from './KgWarehouse';
11
+ export * from './KgYesOrNo';
12
+ export * from './KgButton';
13
+ export { default as KgButton } from './KgButton';
14
+ export * from './KgForm';
15
+ export { default as KgForm } from './KgForm';
16
+ export * from './KgForm.Item';
@@ -0,0 +1,14 @@
1
+ import { IKgEventCb, IRemoveEventListenerHandler } from '../consts';
2
+ /**
3
+ * 构造事件监听.
4
+ * @param frm_id 界面标识.
5
+ * @param store 状态管理.
6
+ * @param event 事件名称.
7
+ */
8
+ export declare function onEventFactory<S extends {
9
+ addEventListener(frm_id: string, event: E, cb: C): void;
10
+ removeEventListener(frm_id: string, event: E, cb?: C): void;
11
+ } | {
12
+ addEventListener(event: E, cb: C): void;
13
+ removeEventListener(event: E, cb?: C): void;
14
+ } = any, E = any, C extends IKgEventCb = any>(frm_id: string | null, store: S, event: E): (cb: C) => IRemoveEventListenerHandler;
@@ -0,0 +1,3 @@
1
+ export * from './setup';
2
+ export * from './index.hooks';
3
+ export * from './index.store';
@@ -0,0 +1,43 @@
1
+ import { Pinia } from 'pinia';
2
+ import { ComputedRef, Ref } from 'vue';
3
+ import { Router } from 'vue-router';
4
+ import { IKgLocale } from '../consts';
5
+ import { IKgOption, IKgStore, P, T } from './index.store';
6
+ export declare type IUseKg = {
7
+ store: IKgStore;
8
+ /** 语言. */
9
+ locale: ComputedRef<IKgLocale> | null;
10
+ router: ComputedRef<Router | null>;
11
+ /** 配置参数. */
12
+ option: ComputedRef<IKgOption>;
13
+ /** 翻译. */
14
+ t: T;
15
+ /** 检查权限. */
16
+ p: P;
17
+ };
18
+ /**
19
+ * @param pinia 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
20
+ */
21
+ export declare function useKg(pinia?: Pinia): IUseKg;
22
+ export interface IUseKgDragModal {
23
+ draggable: Ref<boolean> | ComputedRef<boolean>;
24
+ visible: Ref<boolean> | ComputedRef<boolean>;
25
+ destroyOnClose: Ref<boolean | undefined> | undefined | ComputedRef<boolean>;
26
+ /**
27
+ * @default '.ant-modal-wrap'
28
+ */
29
+ containerElementSelector: string;
30
+ /**
31
+ * @default '.ant-modal-header'
32
+ */
33
+ handleElementSelector: string;
34
+ /**
35
+ * @default '.ant-modal'
36
+ */
37
+ contentElementSelector: string;
38
+ }
39
+ /**
40
+ * 拖拽移动.
41
+ * @param param 参数.
42
+ */
43
+ export declare function useKgDragModal(param: IUseKgDragModal): void;