@kengic/vue 0.16.2 → 0.16.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/kengic-vue.js +584 -580
  2. package/package.json +8 -8
  3. package/dist/src/apis/WMS/Controllers/VarContextController/Add.d.ts +0 -16
  4. package/dist/src/apis/WMS/Controllers/VarContextController/Delete.d.ts +0 -18
  5. package/dist/src/apis/WMS/Controllers/VarContextController/DeleteBatch.d.ts +0 -18
  6. package/dist/src/apis/WMS/Controllers/VarContextController/Edit.d.ts +0 -16
  7. package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +0 -24
  8. package/dist/src/apis/WMS/Controllers/VarContextController/ImportExcel.d.ts +0 -15
  9. package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +0 -31
  10. package/dist/src/apis/WMS/Controllers/VarContextController/QueryById.d.ts +0 -19
  11. package/dist/src/apis/WMS/Controllers/VarContextController/index.d.ts +0 -8
  12. package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +0 -19
  13. package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +0 -1
  14. package/dist/src/apis/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +0 -19
  15. package/dist/src/apis/WMS/Controllers/VarGridMasterController/Update.d.ts +0 -16
  16. package/dist/src/apis/WMS/Controllers/VarGridMasterController/index.d.ts +0 -2
  17. package/dist/src/apis/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +0 -19
  18. package/dist/src/apis/WMS/Controllers/VarProfileMasterController/index.d.ts +0 -1
  19. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Add.d.ts +0 -16
  20. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Delete.d.ts +0 -18
  21. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts +0 -18
  22. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Edit.d.ts +0 -16
  23. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ExportXls.d.ts +0 -30
  24. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ImportExcel.d.ts +0 -15
  25. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/List.d.ts +0 -37
  26. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/QueryById.d.ts +0 -19
  27. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/index.d.ts +0 -8
  28. package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +0 -52
  29. package/dist/src/apis/WMS/Controllers/WhController/index.d.ts +0 -1
  30. package/dist/src/apis/WMS/Controllers/index.d.ts +0 -6
  31. package/dist/src/apis/WMS/index.d.ts +0 -2
  32. package/dist/src/apis/WMS/models.d.ts +0 -726
  33. package/dist/src/apis/api.d.ts +0 -1
  34. package/dist/src/apis/def.d.ts +0 -1
  35. package/dist/src/apis/index.d.ts +0 -2
  36. package/dist/src/assets/icons/material-symbols.save-as-outline-rounded.d.ts +0 -6
  37. package/dist/src/assets/icons/material-symbols.save-outline-rounded.d.ts +0 -6
  38. package/dist/src/components/KgAppSelect/KgAppSelect.d.ts +0 -47
  39. package/dist/src/components/KgAppSelect/index.d.ts +0 -3
  40. package/dist/src/components/KgAppSelect/index.hooks.d.ts +0 -19
  41. package/dist/src/components/KgAppSelect/index.store.d.ts +0 -59
  42. package/dist/src/components/KgButton/KgButton.Item.d.ts +0 -41
  43. package/dist/src/components/KgButton/KgButton.Item.data.d.ts +0 -31
  44. package/dist/src/components/KgButton/KgButton.d.ts +0 -34
  45. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +0 -39
  46. package/dist/src/components/KgButton/components/KgButton.Create.d.ts +0 -39
  47. package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +0 -40
  48. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +0 -39
  49. package/dist/src/components/KgButton/components/KgButton.Import.d.ts +0 -39
  50. package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +0 -39
  51. package/dist/src/components/KgButton/components/KgButton.Other.d.ts +0 -40
  52. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +0 -40
  53. package/dist/src/components/KgButton/components/KgButton.Update.d.ts +0 -39
  54. package/dist/src/components/KgButton/index.d.ts +0 -62
  55. package/dist/src/components/KgButton/index.hooks.d.ts +0 -61
  56. package/dist/src/components/KgButton/index.store.d.ts +0 -89
  57. package/dist/src/components/KgForm/KgForm.d.ts +0 -414
  58. package/dist/src/components/KgForm/index.d.ts +0 -604
  59. package/dist/src/components/KgForm/index.hooks.d.ts +0 -34
  60. package/dist/src/components/KgForm/index.store.d.ts +0 -83
  61. package/dist/src/components/KgForm/index.vm.d.ts +0 -9
  62. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +0 -95
  63. package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +0 -17
  64. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -17
  65. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +0 -32
  66. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -94
  67. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +0 -96
  68. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -95
  69. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +0 -95
  70. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -94
  71. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -94
  72. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -95
  73. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +0 -98
  74. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +0 -26
  75. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -94
  76. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +0 -94
  77. package/dist/src/components/KgForm.Item/index.d.ts +0 -2
  78. package/dist/src/components/KgForm.Item/index.vm.d.ts +0 -116
  79. package/dist/src/components/KgModal/KgModal.d.ts +0 -395
  80. package/dist/src/components/KgModal/components/KgModal.Close.d.ts +0 -41
  81. package/dist/src/components/KgModal/index.d.ts +0 -2
  82. package/dist/src/components/KgModal/index.vm.d.ts +0 -194
  83. package/dist/src/components/KgProgressA/KgProgressA.d.ts +0 -85
  84. package/dist/src/components/KgProgressA/index.d.ts +0 -1
  85. package/dist/src/components/KgResizable/KgResizable.d.ts +0 -143
  86. package/dist/src/components/KgResizable/index.d.ts +0 -1
  87. package/dist/src/components/KgSearch/KgSearch.d.ts +0 -42
  88. package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -39
  89. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +0 -22
  90. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +0 -14
  91. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +0 -24
  92. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts +0 -7
  93. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -31
  94. package/dist/src/components/KgSearch/index.d.ts +0 -3
  95. package/dist/src/components/KgSearch/index.hooks.d.ts +0 -41
  96. package/dist/src/components/KgSearch/index.store.d.ts +0 -86
  97. package/dist/src/components/KgSearch/index.vm.d.ts +0 -1
  98. package/dist/src/components/KgSubmit/KgSubmit.d.ts +0 -41
  99. package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +0 -20
  100. package/dist/src/components/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +0 -28
  101. package/dist/src/components/KgSubmit/components/KgSubmit.Header.d.ts +0 -82
  102. package/dist/src/components/KgSubmit/index.d.ts +0 -4
  103. package/dist/src/components/KgSubmit/index.hooks.d.ts +0 -63
  104. package/dist/src/components/KgSubmit/index.store.d.ts +0 -129
  105. package/dist/src/components/KgSubmit/index.vm.d.ts +0 -10
  106. package/dist/src/components/KgTable/KgTable.d.ts +0 -39
  107. package/dist/src/components/KgTable/KgTable.hooks.d.ts +0 -43
  108. package/dist/src/components/KgTable/components/KgTable.Cell.d.ts +0 -61
  109. package/dist/src/components/KgTable/components/KgTable.Info.d.ts +0 -58
  110. package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -5
  111. package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +0 -22
  112. package/dist/src/components/KgTable/components/setting/KgTable.Setting.hooks.d.ts +0 -14
  113. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +0 -22
  114. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +0 -26
  115. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +0 -24
  116. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts +0 -23
  117. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -32
  118. package/dist/src/components/KgTable/index.d.ts +0 -4
  119. package/dist/src/components/KgTable/index.hooks.d.ts +0 -68
  120. package/dist/src/components/KgTable/index.store.d.ts +0 -153
  121. package/dist/src/components/KgTable/index.vm.d.ts +0 -146
  122. package/dist/src/components/KgVar/KgVar.d.ts +0 -28
  123. package/dist/src/components/KgVar/index.d.ts +0 -4
  124. package/dist/src/components/KgVar/index.hooks.d.ts +0 -88
  125. package/dist/src/components/KgVar/index.store.d.ts +0 -315
  126. package/dist/src/components/KgVar/index.store.service.d.ts +0 -21
  127. package/dist/src/components/KgVar/index.vm.d.ts +0 -43
  128. package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +0 -2
  129. package/dist/src/components/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +0 -24
  130. package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +0 -17
  131. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -25
  132. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -29
  133. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +0 -22
  134. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +0 -25
  135. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +0 -22
  136. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -33
  137. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.d.ts +0 -3
  138. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.data.d.ts +0 -3
  139. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +0 -3
  140. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +0 -3
  141. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +0 -3
  142. package/dist/src/components/KgVarConfig/index.d.ts +0 -2
  143. package/dist/src/components/KgVarConfig/index.store.d.ts +0 -20
  144. package/dist/src/components/KgVarConfig/index.vm.d.ts +0 -3
  145. package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +0 -38
  146. package/dist/src/components/KgWarehouse/index.d.ts +0 -4
  147. package/dist/src/components/KgWarehouse/index.guard.d.ts +0 -8
  148. package/dist/src/components/KgWarehouse/index.hooks.d.ts +0 -22
  149. package/dist/src/components/KgWarehouse/index.store.d.ts +0 -53
  150. package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +0 -60
  151. package/dist/src/components/KgYesOrNo/index.d.ts +0 -1
  152. package/dist/src/components/index.d.ts +0 -16
  153. package/dist/src/components/util.d.ts +0 -14
  154. package/dist/src/config/index.d.ts +0 -3
  155. package/dist/src/config/index.hooks.d.ts +0 -43
  156. package/dist/src/config/index.store.d.ts +0 -184
  157. package/dist/src/config/setup.d.ts +0 -43
  158. package/dist/src/consts/i18n/en.d.ts +0 -194
  159. package/dist/src/consts/i18n/index.d.ts +0 -2
  160. package/dist/src/consts/i18n/zh_CN.d.ts +0 -193
  161. package/dist/src/consts/index.d.ts +0 -244
  162. package/dist/src/consts/index.vm.d.ts +0 -45
  163. package/dist/src/consts/injection-keys.const.d.ts +0 -9
  164. package/dist/src/helpers/ant-design-vue.d.ts +0 -316
  165. package/dist/src/helpers/tsx.helper.d.ts +0 -13
  166. package/dist/src/index.d.ts +0 -8
  167. package/dist/src/services/http-client.d.ts +0 -46
  168. package/dist/src/services/index.d.ts +0 -1
  169. package/dist/src/utils/index.d.ts +0 -6
  170. package/dist/src/utils/kg-auth.util.d.ts +0 -14
  171. package/dist/src/utils/kg-dom.util.d.ts +0 -12
  172. package/dist/src/utils/kg-logger.util.d.ts +0 -67
  173. package/dist/src/utils/kg-route.util.d.ts +0 -43
  174. package/dist/src/utils/kg-var.util.d.ts +0 -36
  175. package/dist/src/utils/kg.util.d.ts +0 -113
@@ -1,33 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- import './KgVarConfig.Modal.Var.VarCatalog.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;
@@ -1,3 +0,0 @@
1
- import { ColumnsType } from 'ant-design-vue/es/table';
2
- import { VarContext } from '../../../../apis/WMS/models';
3
- export declare const columns: () => ColumnsType<VarContext>;
@@ -1,3 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- import { ColumnsType } from 'ant-design-vue/es/table';
2
- import { VarContext } from '../../../../apis/WMS/models';
3
- export declare const columns: () => ColumnsType<VarContext>;
@@ -1,3 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- export { default as KgVarConfig } from './KgVarConfig';
2
- export * from './index.store';
@@ -1,20 +0,0 @@
1
- import { StoreDefinition } from 'pinia';
2
- import { VarCatalog, VarContext } from '../../apis/WMS/models';
3
- export interface IKgVarConfigState {
4
- /** 变量. */
5
- variable: {
6
- /** 当前选中的变量. */
7
- selectedVar: VarContext | null;
8
- /** 当前选中的变量别名. */
9
- selectedVarCatalog: VarCatalog | null;
10
- };
11
- }
12
- export declare type IKgVarConfigStoreDefinition = StoreDefinition<'KgVarConfig', IKgVarConfigState, {
13
- getSelectedVar: VarContext | null;
14
- getSelectedVarCatalog: VarCatalog | null;
15
- }, {
16
- setSelectedVar(variable: VarContext | null): void;
17
- setSelectedVarCatalog(variable: VarCatalog | null): void;
18
- }>;
19
- export declare type IKgVarConfigStore = ReturnType<IKgVarConfigStoreDefinition>;
20
- export declare const useKgVarConfigStore: () => IKgVarConfigStoreDefinition;
@@ -1,3 +0,0 @@
1
- import { InjectionKey, Ref } from 'vue';
2
- /** 正在被配置的界面标识. */
3
- export declare const DI_CONFIG_FORM_ID: InjectionKey<Ref<string | null>>;
@@ -1,38 +0,0 @@
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;
@@ -1,4 +0,0 @@
1
- export { default as KgWarehouse } from './KgWarehouse';
2
- export * from './index.guard';
3
- export * from './index.hooks';
4
- export * from './index.store';
@@ -1,8 +0,0 @@
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;
@@ -1,22 +0,0 @@
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
- visible: ComputedRef<boolean>;
9
- /** 当前仓库. */
10
- warehouse: ComputedRef<WhDTO | null>;
11
- /**
12
- * 监听事件: 组件加载完成.
13
- * @param cb 回调函数.
14
- * @param once 是否只会触发一次. 默认为 undefined.
15
- */
16
- onMounted(cb: IKgWarehouseMountedCb, once?: boolean): IRemoveEventListenerHandler;
17
- };
18
- /**
19
- * 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
20
- * @param pinia
21
- */
22
- export declare function useKgWarehouse(pinia?: Pinia): IUseKgWarehouse;
@@ -1,53 +0,0 @@
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
- visible: boolean;
15
- warehouse: WhDTO | null;
16
- mountedListeners: Array<IKgWarehouseMountedCb>;
17
- }
18
- export declare type IKgWarehouseStoreDefinition = StoreDefinition<'KgWarehouse', IKgWarehouseState, {
19
- getVisible: boolean;
20
- /** 获取当前仓库. */
21
- getWarehouse: WhDTO | null;
22
- }, {
23
- /**
24
- * 注册事件监听.
25
- * @param event 事件名称.
26
- * @param cb 回调函数.
27
- */
28
- addEventListener(event: IKgWarehouseEvent, cb: IKgWarehouseCb): void;
29
- /**
30
- * 退订事件监听.
31
- * @param event 事件名称.
32
- * @param cb 回调函数.
33
- */
34
- removeEventListener(event: IKgWarehouseEvent, cb?: IKgWarehouseCb): void;
35
- /**
36
- * 触发事件.
37
- * @param event 事件名称.
38
- * @param args 数据.
39
- */
40
- emit(event: IKgWarehouseEvent, args?: any | null): void;
41
- /**
42
- * 显示或者隐藏弹窗.
43
- * @param visible 是否显示.
44
- */
45
- setVisible(visible: boolean): void;
46
- /**
47
- * 设置选择的仓库.
48
- * @param warehouse 选择的仓库.
49
- */
50
- setWarehouse(warehouse?: WhDTO | null): void;
51
- }>;
52
- export declare type IKgWarehouseStore = ReturnType<IKgWarehouseStoreDefinition>;
53
- export declare const useKgWarehouseStore: (_pinia?: Pinia) => IKgWarehouseStoreDefinition;
@@ -1,60 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default as KgYesOrNo, type IKgYesOrNoProps } from './KgYesOrNo';
@@ -1,16 +0,0 @@
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';
@@ -1,14 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- export * from './setup';
2
- export * from './index.hooks';
3
- export * from './index.store';
@@ -1,43 +0,0 @@
1
- import { Pinia } from 'pinia';
2
- import { ComputedRef, Ref } from 'vue';
3
- import { Router } from 'vue-router';
4
- import { IKgLocale } from '../consts';
5
- import { IKgStateOption, 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<IKgStateOption>;
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;
@@ -1,184 +0,0 @@
1
- import { Pinia, StoreDefinition } from 'pinia';
2
- import { ComputedRef } from 'vue';
3
- import { Router } from 'vue-router';
4
- import { SysUserWarehouseDTO } from '../apis/WMS/models';
5
- import { IKgLocale, KG_APP, Menu } from '../consts';
6
- export declare type IKgStateOption = {
7
- /** 模块首页地址. */
8
- appIndex?: {
9
- /** 默认为 '/wms/data-manager/index'. */
10
- [KG_APP.WMS_DATA_MANAGER]?: string;
11
- /** 默认为 '/wms/business-manager/index'. */
12
- [KG_APP.WMS_BUSINESS_MANAGER]?: string;
13
- /** 默认为 '/wcs/index'. */
14
- [KG_APP.WCS]?: string;
15
- /** 默认为 '/sys/index'. */
16
- [KG_APP.SYS]?: string;
17
- };
18
- /** 模块标题. */
19
- appTitle?: {
20
- /** 默认为 '数据管理'. */
21
- [KG_APP.WMS_DATA_MANAGER]?: string;
22
- /** 默认为 '仓库管理'. */
23
- [KG_APP.WMS_BUSINESS_MANAGER]?: string;
24
- /** 默认为 'WCS'. */
25
- [KG_APP.WCS]?: string;
26
- /** 默认为 '系统配置'. */
27
- [KG_APP.SYS]?: string;
28
- };
29
- KgModal?: {
30
- /** 拖拽移动. */
31
- drag?: {
32
- /**
33
- * 是否启用功能.
34
- * @default false
35
- */
36
- on?: boolean;
37
- };
38
- };
39
- KgSearch?: {
40
- /** 高级查询. */
41
- dynamicQuery?: {
42
- /**
43
- * 是否启用功能.
44
- * @default false
45
- */
46
- on?: boolean;
47
- };
48
- };
49
- KgTable?: {
50
- /** 列的过滤. */
51
- filter?: {
52
- /**
53
- * 是否启用功能.
54
- * @default false
55
- */
56
- on?: boolean;
57
- };
58
- /** 表格设置菜单. */
59
- Setting?: {
60
- /** 行高. */
61
- rowHeight?: {
62
- /**
63
- * 是否启用功能.
64
- * @default false
65
- */
66
- on?: boolean;
67
- };
68
- };
69
- };
70
- /** 仓库选择. */
71
- KgWarehouse?: {
72
- /**
73
- * 是否启用功能.
74
- * @default true
75
- */
76
- on?: boolean;
77
- /** 默认的仓库编码, 只有在 {@link IKgStateOption.KgWarehouse.on} 为 false 时才生效. */
78
- defaultWarehouseID?: string;
79
- };
80
- };
81
- /** 翻译的方法. */
82
- export declare type T = {
83
- (key: string | null | undefined): string;
84
- (key: string | null | undefined, locale: string): string;
85
- (key: string | null | undefined, locale: string, list: unknown[]): string;
86
- (key: string | null | undefined, locale: string, named: Record<string, unknown>): string;
87
- (key: string | null | undefined, list: unknown[]): string;
88
- (key: string | null | undefined, named: Record<string, unknown>): string;
89
- };
90
- /** 检查权限的方法. */
91
- export declare type P = {
92
- (permissionCode?: string | Array<string> | null): boolean;
93
- };
94
- export interface RoleInfo {
95
- roleName: string;
96
- value: string;
97
- }
98
- export interface UserInfo {
99
- id: string | number;
100
- userId: string | number;
101
- username: string;
102
- realname: string;
103
- avatar: string;
104
- desc?: string;
105
- homePath?: string;
106
- tenantid?: string | number;
107
- roles: RoleInfo[];
108
- orgCode?: string;
109
- }
110
- interface UserState {
111
- userInfo: UserInfo | null;
112
- token?: string;
113
- roleList: any[];
114
- userWarehouses: SysUserWarehouseDTO[];
115
- sessionTimeout?: boolean;
116
- }
117
- interface AuthItem {
118
- /** 权限编码. */
119
- action: string;
120
- /** 权限策略. 1:显示, 2:禁用. */
121
- type: string | number;
122
- /** 权限状态. 0:无效, 1:有效. */
123
- status: string | number;
124
- /** 权限名称. */
125
- describe?: string;
126
- }
127
- interface PermissionState {
128
- /** 当前登录用户所拥有的权限编码列表. */
129
- permCodeList: string[] | number[];
130
- /** 菜单列表. */
131
- backMenuList: Menu[];
132
- /** 当前登录用户所拥有的权限配置. */
133
- authList: AuthItem[];
134
- /** 全部权限配置. */
135
- allAuthList: AuthItem[];
136
- }
137
- export interface IKgState {
138
- /** 语言. */
139
- locale: ComputedRef<IKgLocale> | null;
140
- /** 翻译的方法. */
141
- tFunction: T | null;
142
- /** 检查权限的方法. */
143
- pFunction: P | null;
144
- router: Router | null;
145
- /** 用户数据. */
146
- useUserStore: StoreDefinition | null;
147
- /** 权限数据. */
148
- usePermissionStore: StoreDefinition | null;
149
- /** 配置参数. */
150
- option: IKgStateOption;
151
- }
152
- export declare type IKgStoreDefinition = StoreDefinition<'Kg', IKgState, {
153
- /** 获取配置参数. */
154
- getLocale: ComputedRef<IKgLocale> | null;
155
- getRouter: Router | null;
156
- getUseUserStore(): StoreDefinition<string, UserState, {
157
- getToken(): string;
158
- getRoleList(): any[];
159
- getUserWarehouses(): SysUserWarehouseDTO[];
160
- getSessionTimeout(): boolean;
161
- getUserInfo(): UserInfo;
162
- }, {}> | null;
163
- getUsePermissionStore(): StoreDefinition<string, PermissionState, {
164
- getPermCodeList(): string[] | number[];
165
- getBackMenuList(): Menu[];
166
- }> | null;
167
- /** 获取配置参数. */
168
- getOption: IKgStateOption;
169
- }, {
170
- setLocale(locale: ComputedRef<IKgLocale> | null): void;
171
- setRouter(router: Router): void;
172
- setUseUserStore(useUserStore: StoreDefinition<any, any, any, any>): void;
173
- setUsePermissionStore(usePermissionStore: StoreDefinition<any, any, any, any>): void;
174
- setT(i18n: any): void;
175
- setP(fn: P): void;
176
- setOption(option: IKgStateOption): void;
177
- /** 翻译. */
178
- t: T;
179
- /** 检查权限. */
180
- p: P;
181
- }>;
182
- export declare type IKgStore = ReturnType<IKgStoreDefinition>;
183
- export declare const useKgStore: (_pinia?: Pinia) => IKgStoreDefinition;
184
- export {};
@@ -1,43 +0,0 @@
1
- import { Pinia, StoreDefinition } from 'pinia';
2
- import { App, ComputedRef } from 'vue';
3
- import { Router } from 'vue-router';
4
- import { IKgLocale } from '../consts';
5
- import { IKgStateOption, P } from './index.store';
6
- /**
7
- * 配置 pinia 实例.
8
- * @param pinia pinia 实例.
9
- */
10
- export declare function setPinia(pinia: Pinia): void;
11
- /**
12
- * 获取 pinia 实例.
13
- */
14
- export declare function pinia(): Pinia | null;
15
- export declare type IKgOptions = {
16
- app: App;
17
- /** 当前语言. */
18
- locale: ComputedRef<IKgLocale>;
19
- /**
20
- * import { createI18n } from 'vue-i18n';
21
- * ReturnType<typeof createI18n>
22
- */
23
- i18n: any;
24
- router: Router;
25
- /** 状态数据: 用户. */
26
- useUserStore: StoreDefinition<any, any, any, any>;
27
- /** 状态数据: 权限. */
28
- usePermissionStore: StoreDefinition<any, any, any, any>;
29
- /** 权限方法, 用来判断是否具有某个(某些)权限. */
30
- pFunction: P;
31
- /** 配置参数. */
32
- option?: IKgStateOption;
33
- };
34
- /**
35
- * 初始化 pinia.
36
- * @param pinia pinia.
37
- */
38
- export declare function setupKgStore(pinia: Pinia): void;
39
- /**
40
- * 初始化组件库.
41
- * @param options 参数.
42
- */
43
- export declare function setup(options: IKgOptions): void;