@kengic/vue 0.16.2-beta.0 → 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 +583 -579
  2. package/package.json +6 -6
  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 -249
  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 -114
@@ -1,58 +0,0 @@
1
- import { PropType } from 'vue';
2
- import './KgTable.Info.less';
3
- export declare const getProps: () => {
4
- /**
5
- * 行数.
6
- * @default 0
7
- */
8
- kgTotal: {
9
- type: PropType<number>;
10
- default: number;
11
- };
12
- /** 是否显示'清空'按钮. */
13
- kgShowClearCheck: PropType<boolean>;
14
- /** 是否显示'清空表格'按钮. */
15
- kgShowClearTable: PropType<boolean>;
16
- /** 是否禁用. */
17
- kgDisabled: PropType<boolean>;
18
- /** 是否显示'定位'按钮. */
19
- kgShowLocate: PropType<boolean>;
20
- };
21
- declare const _default: import("vue").DefineComponent<{
22
- /**
23
- * 行数.
24
- * @default 0
25
- */
26
- kgTotal: {
27
- type: PropType<number>;
28
- default: number;
29
- };
30
- /** 是否显示'清空'按钮. */
31
- kgShowClearCheck: PropType<boolean>;
32
- /** 是否显示'清空表格'按钮. */
33
- kgShowClearTable: PropType<boolean>;
34
- /** 是否禁用. */
35
- kgDisabled: PropType<boolean>;
36
- /** 是否显示'定位'按钮. */
37
- kgShowLocate: PropType<boolean>;
38
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
39
- /**
40
- * 行数.
41
- * @default 0
42
- */
43
- kgTotal: {
44
- type: PropType<number>;
45
- default: number;
46
- };
47
- /** 是否显示'清空'按钮. */
48
- kgShowClearCheck: PropType<boolean>;
49
- /** 是否显示'清空表格'按钮. */
50
- kgShowClearTable: PropType<boolean>;
51
- /** 是否禁用. */
52
- kgDisabled: PropType<boolean>;
53
- /** 是否显示'定位'按钮. */
54
- kgShowLocate: PropType<boolean>;
55
- }>>, {
56
- kgTotal: number;
57
- }>;
58
- export default _default;
@@ -1,5 +0,0 @@
1
- export declare const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save";
2
- declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClose"[], "kgClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
3
- onKgClose?: ((...args: any[]) => any) | undefined;
4
- }, {}>;
5
- export default _default;
@@ -1,22 +0,0 @@
1
- import { PropType } from 'vue';
2
- import './KgTable.Setting.less';
3
- export declare const getProps: () => {
4
- kgDisabled: {
5
- type: PropType<boolean>;
6
- default: undefined;
7
- };
8
- };
9
- declare const _default: import("vue").DefineComponent<{
10
- kgDisabled: {
11
- type: PropType<boolean>;
12
- default: undefined;
13
- };
14
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
- kgDisabled: {
16
- type: PropType<boolean>;
17
- default: undefined;
18
- };
19
- }>>, {
20
- kgDisabled: boolean;
21
- }>;
22
- export default _default;
@@ -1,14 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { VarGridDetail } from '../../../../apis/WMS/models';
3
- export declare type IUseServices = {
4
- /**
5
- * 用于表格的列下拉列表, 根据关键字搜索某列, 如果匹配就显示该列, 否则隐藏该列.
6
- * 匹配时忽略大小写.
7
- * @param varGridDetail
8
- * @param key 关键字.
9
- */
10
- filterVarGridDetailByKey: (varGridDetail: VarGridDetail, key?: string | null) => boolean;
11
- };
12
- export declare function _useServices(): IUseServices;
13
- /** 监控表格列的下拉列表的尺寸变化, 从而调整位置, 防止遮盖. */
14
- export declare function _useObserveMenuColumns(isMenuItemColumnsVisible: Ref<boolean>): void;
@@ -1,22 +0,0 @@
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;
@@ -1,26 +0,0 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- export declare const FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig";
3
- export declare const getProps: () => {
4
- hostFormID: {
5
- type: PropType<string>;
6
- required: boolean;
7
- };
8
- onKgClose: PropType<() => void>;
9
- };
10
- export declare type IKgTableSettingConfigModalVarGridConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
11
- declare const _default: import("vue").DefineComponent<{
12
- hostFormID: {
13
- type: PropType<string>;
14
- required: boolean;
15
- };
16
- onKgClose: PropType<() => void>;
17
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClose"[], "kgClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
18
- hostFormID: {
19
- type: PropType<string>;
20
- required: boolean;
21
- };
22
- onKgClose: PropType<() => void>;
23
- }>> & {
24
- onKgClose?: ((...args: any[]) => any) | undefined;
25
- }, {}>;
26
- export default _default;
@@ -1,24 +0,0 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import './KgTable.Setting.ConfigModal.VarGridMaster.less';
3
- export declare const getProps: () => {
4
- /** 主页面的页面标识. */
5
- hostFormID: {
6
- type: PropType<string>;
7
- required: boolean;
8
- };
9
- };
10
- export declare type IKgTableSettingConfigModalVarGridMasterProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
11
- declare const _default: import("vue").DefineComponent<{
12
- /** 主页面的页面标识. */
13
- hostFormID: {
14
- type: PropType<string>;
15
- required: boolean;
16
- };
17
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
18
- /** 主页面的页面标识. */
19
- hostFormID: {
20
- type: PropType<string>;
21
- required: boolean;
22
- };
23
- }>>, {}>;
24
- export default _default;
@@ -1,23 +0,0 @@
1
- import { ColumnsType } from 'ant-design-vue/es/table';
2
- import { Ref, UnwrapRef } from 'vue';
3
- import { VarGridDetail } from '../../../../../apis/WMS/models';
4
- export declare type IUseTransferColumns = {
5
- /** 左侧表格的列. */
6
- leftColumns: () => ColumnsType<VarGridDetail>;
7
- /** 右侧表格的列. */
8
- rightColumns: () => ColumnsType<VarGridDetail>;
9
- };
10
- /**
11
- *
12
- * @param hostFormID 宿主页面标识.
13
- * @param varGridDetails
14
- */
15
- export declare function _useTransferColumns(hostFormID: string | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseTransferColumns;
16
- export declare type IUseDragRow = {};
17
- /**
18
- *
19
- * @param hostFormID 宿主页面标识.
20
- * @param varGridDetails
21
- * @param transferRightRows
22
- */
23
- export declare function _useDragRow(hostFormID: string | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseDragRow;
@@ -1,32 +0,0 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import '../KgTable.Setting.less';
3
- export declare const getProps: () => {
4
- visible: PropType<boolean>;
5
- 'onUpdate:visible': PropType<(value: boolean) => void>;
6
- /** 主页面的页面标识. */
7
- hostFormID: {
8
- type: PropType<string>;
9
- required: boolean;
10
- };
11
- };
12
- export declare type IKgTableSettingConfigModalProps = 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
- hostFormID: {
18
- type: PropType<string>;
19
- required: boolean;
20
- };
21
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
22
- visible: PropType<boolean>;
23
- 'onUpdate:visible': PropType<(value: boolean) => void>;
24
- /** 主页面的页面标识. */
25
- hostFormID: {
26
- type: PropType<string>;
27
- required: boolean;
28
- };
29
- }>> & {
30
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
31
- }, {}>;
32
- export default _default;
@@ -1,4 +0,0 @@
1
- export { default as KgTable } from './KgTable';
2
- export * from './index.hooks';
3
- export * from './index.store';
4
- export * from './index.vm';
@@ -1,68 +0,0 @@
1
- import { ComputedRef, Ref } from 'vue';
2
- import { IRemoveEventListenerHandler } from '../../consts';
3
- import { IKgTableBeforeRetrieveCb, IKgTableBeforeSetDatasCb, IKgTableReadyCb, IKgTableRetrieveCb, IKgTableRowDoubleClickCb, IKgTableStore } from './index.store';
4
- export declare type IUseKgTable = {
5
- formID: string;
6
- /** 状态数据. */
7
- store: IKgTableStore;
8
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
9
- isReady: ComputedRef<ReturnType<IKgTableStore['getIsReady']>>;
10
- /** 是否正在查询. */
11
- isRetrieving: ComputedRef<ReturnType<IKgTableStore['getIsRetrieving']>>;
12
- /** 当前勾选的第一行. */
13
- selectedFirstRow: ComputedRef<ReturnType<IKgTableStore['getSelectedFirstRow']>>;
14
- /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
15
- selectedRow: ComputedRef<ReturnType<IKgTableStore['getSelectedRow']>>;
16
- /** 当前勾选的所有行. */
17
- selectedRows: ComputedRef<ReturnType<IKgTableStore['getSelectedRows']>>;
18
- /** 是否支持多选. */
19
- isMultiSelect: Ref<boolean>;
20
- /** 是否自动查询. */
21
- isReadAutomatically: Ref<boolean>;
22
- /** 是否显示底部左侧. */
23
- isShowBottomLeft: Ref<boolean>;
24
- /** 是否显示底部右侧. */
25
- isShowBottomRight: Ref<boolean>;
26
- /** 主键字段. */
27
- id: Ref<string>;
28
- /** 所有分页选项. */
29
- pageSizeOptions: Ref<Array<number>>;
30
- /** 当前分页选项. */
31
- pageSizeOption: Ref<number>;
32
- /** 查询条件的界面标识. */
33
- profileFormID: Ref<string>;
34
- /**
35
- * 监听事件: ready, 配置初始完成, 组件渲染完成.
36
- * @param cb 回调函数.
37
- * @param once 是否只会触发一次. 默认为 undefined.
38
- * */
39
- onReady(cb: IKgTableReadyCb, once?: boolean): IRemoveEventListenerHandler;
40
- /**
41
- * 监听事件: 双击某行.
42
- * @param cb 回调函数.
43
- * @param once 是否只会触发一次. 默认为 undefined.
44
- */
45
- onRowDoubleClick(cb: IKgTableRowDoubleClickCb, once?: boolean): IRemoveEventListenerHandler;
46
- /**
47
- * 监听事件: 即将发起查询请求.
48
- * @param cb 回调函数.
49
- * @param once 是否只会触发一次. 默认为 undefined.
50
- */
51
- onBeforeRetrieve(cb: IKgTableBeforeRetrieveCb, once?: boolean): IRemoveEventListenerHandler;
52
- /**
53
- * 监听事件: 查询请求成功, 表格数据尚未赋值. 此处可以对返回的列表数据作处理.
54
- * @param cb 回调函数.
55
- * @param once 是否只会触发一次. 默认为 undefined.
56
- */
57
- onBeforeSetDatas(cb: IKgTableBeforeSetDatasCb, once?: boolean): IRemoveEventListenerHandler;
58
- /**
59
- * 监听事件: 查询请求成功, 表格数据已经赋值.
60
- * @param cb 回调函数.
61
- * @param once 是否只会触发一次. 默认为 undefined.
62
- */
63
- onRetrieve(cb: IKgTableRetrieveCb, once?: boolean): IRemoveEventListenerHandler;
64
- };
65
- /**
66
- * @param formID 界面标识.
67
- */
68
- export declare function useKgTable(formID?: string | null): IUseKgTable;
@@ -1,153 +0,0 @@
1
- import { Key } from 'ant-design-vue/lib/_util/type';
2
- import { StoreDefinition } from 'pinia';
3
- import { Ref } from 'vue';
4
- import { IPage } from '../../apis/WMS/models';
5
- import { IKgEventCb } from '../../consts';
6
- import { IKgTableRow, IKgTableRowHeight } from './index.vm';
7
- /**
8
- * 事件类型.
9
- * 'ready': 就绪, 配置初始完成, 组件渲染完成
10
- * 'rowDoubleClick': 双击某行.
11
- * 'beforeRetrieve': 即将发起查询请求.
12
- * 'beforeSetDatas': 查询请求成功, 表格数据尚未赋值. 此处可以对返回的列表数据作处理.
13
- * 'retrieve': 查询请求成功, 表格数据已经赋值.
14
- */
15
- export declare type IKgTableEvent = 'ready' | 'rowDoubleClick' | 'beforeRetrieve' | 'beforeSetDatas' | 'retrieve';
16
- /** 事件监听函数: ready. */
17
- export declare type IKgTableReadyParam = {};
18
- export declare type IKgTableReadyCb = ((param: IKgTableReadyParam) => Promise<boolean>) & IKgEventCb;
19
- /** 事件监听函数: rowDoubleClick. */
20
- export declare type IKgTableRowDoubleClickParam = {
21
- /** 双击的行. */
22
- row: IKgTableRow;
23
- };
24
- export declare type IKgTableRowDoubleClickCb = ((param: IKgTableRowDoubleClickParam) => Promise<boolean>) & IKgEventCb;
25
- /** 事件监听函数: beforeRetrieve. */
26
- export declare type IKgTableBeforeRetrieveCbParam = {
27
- /** 查询接口请求参数. */
28
- params: Record<string, any>;
29
- /** 查询接口返回的数据, 调用者可以直接修改该数据, 从而实现手动提供表格数据. */
30
- response: Ref;
31
- };
32
- export declare type IKgTableBeforeRetrieveCb = ((param: IKgTableBeforeRetrieveCbParam) => Promise<boolean>) & IKgEventCb;
33
- /** 事件监听函数: beforeSetDatas. */
34
- export declare type IKgTableBeforeSetDatasCbParam = {
35
- /** 列表数据. */
36
- datas: Ref<Array<IKgTableRow>>;
37
- /** 设置列表数据. */
38
- setDatas(datas: Array<IKgTableRow>): void;
39
- /** 总数. */
40
- total: Ref<number>;
41
- };
42
- export declare type IKgTableBeforeSetDatasCb = ((param: IKgTableBeforeSetDatasCbParam) => Promise<boolean>) & IKgEventCb;
43
- /** 事件监听函数: retrieve. */
44
- export declare type IKgTableRetrieveCbParam = {
45
- /** 查询接口请求参数. */
46
- params: Record<string, any>;
47
- /** 接口返回的分页数据. */
48
- response: IPage<IKgTableRow> | null | undefined;
49
- /** 列表数据. */
50
- datas: Ref<Array<IKgTableRow>>;
51
- /** 设置列表数据. */
52
- setDatas(datas: Array<IKgTableRow>): void;
53
- };
54
- export declare type IKgTableRetrieveCb = ((param: IKgTableRetrieveCbParam) => Promise<boolean>) & IKgEventCb;
55
- export declare type IKgTableCbParam = IKgTableReadyParam | IKgTableRowDoubleClickParam | IKgTableBeforeRetrieveCbParam | IKgTableBeforeSetDatasCbParam | IKgTableRetrieveCbParam;
56
- export declare type IKgTableCb = IKgTableReadyCb | IKgTableRowDoubleClickCb | IKgTableBeforeRetrieveCb | IKgTableBeforeSetDatasCb | IKgTableRetrieveCb;
57
- export interface IKgTableState {
58
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
59
- isReadyMap: Map<string, boolean>;
60
- /** 列表数据. */
61
- datasMap: Map<String, Array<IKgTableRow>>;
62
- /** 勾选的行的主键. */
63
- selectedRowKeysMap: Map<string, Ref<Array<Key>>>;
64
- /** 勾选的行. */
65
- selectedRowsMap: Map<string, Array<IKgTableRow>>;
66
- /**
67
- * 是否已经查询过一次了.
68
- * 如果表格禁用了自动查询, 当用户手动点击查询按钮后, 该属性为 true.
69
- * 如果表格启用了自动查询, 当第一次自动查询之后, 该属性为 true.
70
- */
71
- isRetrievedMap: Map<string, boolean>;
72
- /** 是否正在查询. */
73
- isRetrievingMap: Map<string, boolean>;
74
- /** 表格宽度. */
75
- tableWidthMap: Map<string, number>;
76
- /** 行高. */
77
- rowHeightMap: Map<string, IKgTableRowHeight>;
78
- /** 事件监听函数列表: ready. */
79
- onReadyListenersMap: Map<string, Array<IKgTableReadyCb>>;
80
- /** '双击某行'事件监听函数列表. */
81
- rowDoubleClickListenersMap: Map<string, Array<IKgTableRowDoubleClickCb>>;
82
- beforeRetrieveListenersMap: Map<string, Array<IKgTableBeforeRetrieveCb>>;
83
- beforeSetDatasListenersMap: Map<string, Array<IKgTableBeforeSetDatasCb>>;
84
- retrieveListenersMap: Map<string, Array<IKgTableRetrieveCb>>;
85
- }
86
- export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTableState, {
87
- /** 是否就绪. */
88
- getIsReady(): (formID: string | null | undefined) => boolean;
89
- /** 列表数据. */
90
- getDatas(): (formID: string | null | undefined) => Array<IKgTableRow>;
91
- /** 当前勾选的所有行的主键. */
92
- getSelectedRowKeys(): (formID: string | null | undefined) => Ref<Array<Key>>;
93
- /** 当前勾选的所有行. */
94
- getSelectedRows(): (formID: string | null | undefined) => Array<IKgTableRow> | null;
95
- /** 当前勾选的第一行. */
96
- getSelectedFirstRow(): (formID: string | null | undefined) => IKgTableRow | null;
97
- /** 当前勾选的唯一行. */
98
- getSelectedRow(): (formID: string | null | undefined) => IKgTableRow | null;
99
- getIsRetrieved(): (formID: string | null | undefined) => boolean | null;
100
- getIsRetrieving(): (formID: string | null | undefined) => boolean | null;
101
- getTableWidth(): (formID: string | null | undefined) => number | null;
102
- getRowHeight(): (formID: string | null | undefined) => IKgTableRowHeight;
103
- }, {
104
- /**
105
- * 清理数据.
106
- * @param formID 页面标识.
107
- */
108
- dispose(formID: string | null | undefined): void;
109
- addEventListener(formID: string | null | undefined, event: IKgTableEvent, cb: IKgTableCb): void;
110
- removeEventListener(formID: string | null | undefined, event: IKgTableEvent, cb?: IKgTableCb): void;
111
- emit(formID: string | null | undefined, event: IKgTableEvent, param: IKgTableCbParam): Promise<boolean>;
112
- /**
113
- * 设置是否就绪.
114
- * @param formID 界面标识.
115
- * @param ready 是否就绪.
116
- */
117
- setIsReady(formID: string | null | undefined, ready?: boolean): void;
118
- /**
119
- * 设置列表数据.
120
- * @param formID 界面标识.
121
- * @param datas 列表数据.
122
- */
123
- setDatas(formID: string | null | undefined, datas: Array<IKgTableRow>): void;
124
- /**
125
- * 设置勾选的行.
126
- * @param formID 界面标识.
127
- * @param selectedRows 勾选的行.
128
- */
129
- setSelectedRows(formID: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
130
- /**
131
- * 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
132
- * @param formID 界面标识.
133
- */
134
- refreshSelectedRows(formID: string | null | undefined): void;
135
- /**
136
- * 设置某行的勾选状态.
137
- * @param formID 界面标识.
138
- * @param row 行.
139
- * @param selected 是否勾选.
140
- */
141
- setRowSelect(formID: string | null | undefined, row: IKgTableRow, selected: boolean): void;
142
- setIsRetrieved(formID: string | null | undefined, value: boolean): void;
143
- setIsRetrieving(formID: string | null | undefined, value: boolean): void;
144
- setTableWidth(formID: string | null | undefined, value: number): void;
145
- setRowHeight(formID: string | null | undefined, value: IKgTableRowHeight): void;
146
- /**
147
- * 清空表格数据.
148
- * @param formID 界面标识.
149
- */
150
- clearDatas(formID: string | null | undefined): void;
151
- }>;
152
- export declare type IKgTableStore = ReturnType<IKgTableStoreDefinition>;
153
- export declare const useKgTableStore: () => IKgTableStoreDefinition;
@@ -1,146 +0,0 @@
1
- import { ColumnType } from 'ant-design-vue/es/table/interface';
2
- import { VarGridDetail } from '../../apis/WMS/models';
3
- export declare const FORM_ID__KG_TABLE__VAR_GRID_MASTER = "kg-table.VarGridMaster";
4
- /** 行高. */
5
- export declare type IKgTableRowHeight = 'L' | 'M' | 'H';
6
- /** 表格的行对象. */
7
- export declare type IKgTableRow<T = {}> = {
8
- id?: string | null;
9
- [index: string]: any;
10
- } & {
11
- [K in keyof T]: T[K];
12
- };
13
- /** 查询方法参数. */
14
- export interface IKgTableSearchParams {
15
- /**
16
- * 是否查询首页, 否则查询当页.
17
- * @default false
18
- */
19
- isSearchFirstPage?: boolean;
20
- /**
21
- * 是否保留行的勾选状态.
22
- * @default false
23
- */
24
- isPreserveSelectedRows?: boolean;
25
- }
26
- /** 插槽参数. */
27
- export interface IKgTableSlotParams<T = {}> {
28
- bodyCell: {
29
- column: ColumnType;
30
- index: number;
31
- record: IKgTableRow<T>;
32
- text: any | null;
33
- value: any | null;
34
- row: IKgTableRow<T>;
35
- varGridDetail: VarGridDetail | null;
36
- defaultRender: JSX.Element;
37
- };
38
- expandedRowRender: {
39
- record: IKgTableRow;
40
- index: number;
41
- indent: number;
42
- expanded: boolean;
43
- };
44
- 'summary.bodyCell': {
45
- index: number;
46
- column: ColumnType;
47
- varGridDetail: VarGridDetail | null;
48
- };
49
- }
50
- /**
51
- * 对应于 {@link VarGridDetail.display_type_properties} 字段, 不同显示类型的额外参数.
52
- * @see VarGridDetail.display_type_properties
53
- * @see KG_TABLE_CELL_DISPLAY_TYPE
54
- */
55
- export interface IKgTableCellDisplayTypeProperties {
56
- YN: {
57
- /**
58
- * 显示为'是'的值.
59
- * @default 1
60
- */
61
- yValue?: any;
62
- /**
63
- * 显示为'否'的值.
64
- * @default 0
65
- */
66
- nValue?: any;
67
- /**
68
- * 是否将 null/undefined 当成 false.
69
- * @default false
70
- */
71
- nilAsFalse?: boolean;
72
- };
73
- /** @deprecated 请使用 {@link IKgTableCellDisplayTypeProperties.DESC}. */
74
- ENUM: Array<{
75
- /** 变量名称. */
76
- varName: string;
77
- /** 数据. */
78
- value: any;
79
- /**
80
- * 颜色.
81
- * @default 'default'
82
- */
83
- color?: string;
84
- }>;
85
- PROGRESS: {
86
- /** 左侧数值对应的列. */
87
- leftColumn: string;
88
- /** 右侧数值对应的列. */
89
- rightColumn: string;
90
- /**
91
- * 右侧文本的宽度. 例如: "100px".
92
- * @default 'auto'
93
- */
94
- textWidth?: 'auto' | string;
95
- };
96
- FILE_SIZE: {};
97
- UPDATE_LINK: {};
98
- ROUTE_LINK: {
99
- /** 要跳转的路由地址. */
100
- path: string;
101
- };
102
- DESC: {
103
- /**
104
- * 对应的描述字段的名称.
105
- * @default 原字段 + '_dsc', 原字段 + 'Dsc'
106
- */
107
- dscFieldName?: string;
108
- /**
109
- * 是否显示为一个 Tag 标签.
110
- * @default false
111
- */
112
- isTag?: boolean;
113
- /**
114
- * 如果 {@link IKgTableCellDisplayTypeProperties.DESC.isTag} 为 true, 则该属性用来定义每个值对应的标签颜色分别是什么.
115
- * 如果 {@link IKgTableCellDisplayTypeProperties.DESC.isTag} 为 false, 则该属性会被忽略.
116
- */
117
- tagColors?: Array<{
118
- /** 值. */
119
- value: any;
120
- /**
121
- * 颜色.
122
- * @default 'default'
123
- */
124
- color?: string;
125
- }>;
126
- };
127
- }
128
- /** 表格的单元格所处环境. */
129
- export declare const enum KG_TABLE_CELL_CONTEXT {
130
- /** 表格的单元格. */
131
- TABLE_CELL = "TABLE_CELL",
132
- /** 表头的过滤器. */
133
- TABLE_FILTER = "TABLE_FILTER"
134
- }
135
- /** 列的默认宽度. 如果 VarGridDetail 没有配置宽度, 则使用该宽度. */
136
- export declare const KG_TABLE_TD_DEFAULT_WIDTH = 120;
137
- /** 列的最小宽度. 拖动修改列的宽度时, 不允许超过该最小宽度. */
138
- export declare const KG_TABLE_TD_MIN_WIDTH = 80;
139
- /** 列的最大宽度. 拖动修改列的宽度时, 不允许超过该最大宽度. */
140
- export declare const KG_TABLE_TD_MAX_WIDTH = 1920;
141
- /** 勾选列的宽度. */
142
- export declare const KG_TABLE_TD_CHECK_WIDTH = 32;
143
- /** 序号列的宽度. */
144
- export declare const KG_TABLE_TD_INDEX_WIDTH = 40;
145
- /** 在表格内创建时, 空白行的临时主键. */
146
- export declare const KG_TABLE_TEMP_ID = "__KG_TABLE_TEMP_ID__";
@@ -1,28 +0,0 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { IKgProps, IKgSlots } from './index.vm';
3
- import './KgVar.less';
4
- export declare const getProps: () => {
5
- /** 插槽. 通过该参数可以给下面任意的子组件传递 slots 插槽, 当前支持的插槽可以参考 {@link IKgSlots} 中的定义. */
6
- kgSlots: PropType<IKgSlots>;
7
- /** 参数. 通过该参数可以给下面任意的子组件传递 props 参数, 当前支持的参数可以参考 {@link IKgProps} 中的定义. */
8
- kgProps: PropType<IKgProps>;
9
- /** 是否使用灰色背景. */
10
- KgBackgroundGray: PropType<boolean>;
11
- };
12
- export declare type IKgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
13
- declare const _default: import("vue").DefineComponent<{
14
- /** 插槽. 通过该参数可以给下面任意的子组件传递 slots 插槽, 当前支持的插槽可以参考 {@link IKgSlots} 中的定义. */
15
- kgSlots: PropType<IKgSlots>;
16
- /** 参数. 通过该参数可以给下面任意的子组件传递 props 参数, 当前支持的参数可以参考 {@link IKgProps} 中的定义. */
17
- kgProps: PropType<IKgProps>;
18
- /** 是否使用灰色背景. */
19
- KgBackgroundGray: PropType<boolean>;
20
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
21
- /** 插槽. 通过该参数可以给下面任意的子组件传递 slots 插槽, 当前支持的插槽可以参考 {@link IKgSlots} 中的定义. */
22
- kgSlots: PropType<IKgSlots>;
23
- /** 参数. 通过该参数可以给下面任意的子组件传递 props 参数, 当前支持的参数可以参考 {@link IKgProps} 中的定义. */
24
- kgProps: PropType<IKgProps>;
25
- /** 是否使用灰色背景. */
26
- KgBackgroundGray: PropType<boolean>;
27
- }>>, {}>;
28
- export default _default;
@@ -1,4 +0,0 @@
1
- export { default as KgVar, type IKgVarProps } from './KgVar';
2
- export * from './index.hooks';
3
- export * from './index.store';
4
- export * from './index.vm';