@kengic/vue 0.27.1-beta.3 → 0.27.1-beta.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. package/dist/kengic-vue.js +7223 -7142
  2. package/dist/project/build/generate/icon/index.ts +2 -5
  3. package/dist/project/build/script/buildConf.ts +1 -1
  4. package/dist/project/build/script/postBuild.ts +1 -1
  5. package/dist/src/component/KgAppSelect/{index.hooks.d.ts → KgAppSelect.hooks.d.ts} +4 -3
  6. package/dist/src/component/KgAppSelect/{index.store.d.ts → KgAppSelect.store.d.ts} +3 -2
  7. package/dist/src/component/KgAppSelect/index.d.ts +2 -2
  8. package/dist/src/component/KgButton/{index.hooks.d.ts → KgButton.hooks.d.ts} +2 -2
  9. package/dist/src/component/KgButton/{index.store.d.ts → KgButton.store.d.ts} +1 -1
  10. package/dist/src/component/KgButton/index.d.ts +2 -2
  11. package/dist/src/component/KgCanvas/{index.hooks.d.ts → KgCanvas.hooks.d.ts} +2 -2
  12. package/dist/src/component/KgCanvas/index.d.ts +1 -1
  13. package/dist/src/component/KgForm/{index.hooks.d.ts → KgForm.hooks.d.ts} +2 -2
  14. package/dist/src/component/KgForm/{index.store.d.ts → KgForm.store.d.ts} +1 -1
  15. package/dist/src/component/KgForm/index.d.ts +2 -2
  16. package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +5 -5
  17. package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +1 -1
  18. package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +7 -5
  19. package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +7 -9
  20. package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +5 -5
  21. package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +5 -5
  22. package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +11 -7
  23. package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +5 -5
  24. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +5 -5
  25. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +5 -5
  26. package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -9
  27. package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +5 -7
  28. package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.service.d.ts +1 -1
  29. package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +5 -5
  30. package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +5 -5
  31. package/dist/src/component/KgForm.Item/index.d.ts +1 -1
  32. package/dist/src/component/KgLayoutHeader/index.d.ts +1 -1
  33. package/dist/src/component/KgSearch/{index.hooks.d.ts → KgSearch.hooks.d.ts} +2 -2
  34. package/dist/src/component/KgSearch/{index.store.d.ts → KgSearch.store.d.ts} +1 -1
  35. package/dist/src/component/KgSearch/index.d.ts +2 -2
  36. package/dist/src/component/KgSubmit/{index.event.d.ts → KgSubmit.event.d.ts} +10 -10
  37. package/dist/src/component/KgSubmit/{index.hooks.d.ts → KgSubmit.hooks.d.ts} +9 -9
  38. package/dist/src/component/KgSubmit/{index.store.d.ts → KgSubmit.store.d.ts} +16 -16
  39. package/dist/src/component/KgSubmit/index.d.ts +3 -3
  40. package/dist/src/component/KgTable/{index.event.d.ts → KgTable.event.d.ts} +1 -1
  41. package/dist/src/component/KgTable/{index.hooks.d.ts → KgTable.hooks.d.ts} +2 -2
  42. package/dist/src/component/KgTable/KgTable.service.d.ts +1 -1
  43. package/dist/src/component/KgTable/{index.store.d.ts → KgTable.store.d.ts} +2 -2
  44. package/dist/src/component/KgTable/components/KgTable.BodyCell.d.ts +1 -1
  45. package/dist/src/component/KgTable/index.d.ts +3 -3
  46. package/dist/src/component/KgVar/KgVar.d.ts +1 -1
  47. package/dist/src/component/KgVar/{index.hooks.d.ts → KgVar.hooks.d.ts} +4 -4
  48. package/dist/src/component/KgVar/{index.store.d.ts → KgVar.store.d.ts} +2 -2
  49. package/dist/src/component/KgVar/{index.vm.d.ts → KgVar.vm.d.ts} +1 -1
  50. package/dist/src/component/KgVar/KgVarFactory.d.ts +8 -8
  51. package/dist/src/component/KgVar/index.d.ts +3 -3
  52. package/dist/src/component/KgVarConfig/{index.hooks.d.ts → KgVarConfig.hooks.d.ts} +1 -1
  53. package/dist/src/component/KgVarConfig/index.d.ts +2 -2
  54. package/dist/src/component/KgWarehouse/{index.hooks.d.ts → KgWarehouse.hooks.d.ts} +1 -1
  55. package/dist/src/component/KgWarehouse/index.d.ts +3 -3
  56. package/dist/src/config/index.store.d.ts +2 -1
  57. package/dist/src/const/index.vm.d.ts +76 -12
  58. package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +1 -1
  59. package/dist/src/util/kg-route.util.d.ts +2 -1
  60. package/dist/src/util/kg.util.d.ts +8 -15
  61. package/package.json +1 -1
  62. /package/dist/src/component/KgAppSelect/{index.event.d.ts → KgAppSelect.event.d.ts} +0 -0
  63. /package/dist/src/component/KgButton/{index.event.d.ts → KgButton.event.d.ts} +0 -0
  64. /package/dist/src/component/KgCanvas/{index.event.d.ts → KgCanvas.event.d.ts} +0 -0
  65. /package/dist/src/component/KgCanvas/{index.store.d.ts → KgCanvas.store.d.ts} +0 -0
  66. /package/dist/src/component/KgCanvas/{index.vm.d.ts → KgCanvas.vm.d.ts} +0 -0
  67. /package/dist/src/component/KgForm/{index.event.d.ts → KgForm.event.d.ts} +0 -0
  68. /package/dist/src/component/KgForm/{index.vm.d.ts → KgForm.vm.d.ts} +0 -0
  69. /package/dist/src/component/KgForm.Item/{index.vm.d.ts → KgForm.Item.vm.d.ts} +0 -0
  70. /package/dist/src/component/KgLayoutHeader/{index.hooks.d.ts → KgLayoutHeader.hooks.d.ts} +0 -0
  71. /package/dist/src/component/KgModal/{index.vm.d.ts → KgModal.vm.d.ts} +0 -0
  72. /package/dist/src/component/KgSearch/{index.event.d.ts → KgSearch.event.d.ts} +0 -0
  73. /package/dist/src/component/KgSearch/{index.vm.d.ts → KgSearch.vm.d.ts} +0 -0
  74. /package/dist/src/component/KgSubmit/{index.vm.d.ts → KgSubmit.vm.d.ts} +0 -0
  75. /package/dist/src/component/KgTable/{index.vm.d.ts → KgTable.vm.d.ts} +0 -0
  76. /package/dist/src/component/KgVar/{index.event.d.ts → KgVar.event.d.ts} +0 -0
  77. /package/dist/src/component/KgVar/{index.store.service.d.ts → KgVar.store.service.d.ts} +0 -0
  78. /package/dist/src/component/KgVarConfig/{index.store.d.ts → KgVarConfig.store.d.ts} +0 -0
  79. /package/dist/src/component/KgVarConfig/{index.vm.d.ts → KgVarConfig.vm.d.ts} +0 -0
  80. /package/dist/src/component/KgWarehouse/{index.guard.d.ts → KgWarehouse.guard.d.ts} +0 -0
  81. /package/dist/src/component/KgWarehouse/{index.store.d.ts → KgWarehouse.store.d.ts} +0 -0
  82. /package/dist/src/page/KgPageDda/{index.vm.d.ts → KgPageDda.vm.d.ts} +0 -0
@@ -28,16 +28,15 @@ declare const _default: import("vue").DefineComponent<{
28
28
  default: undefined;
29
29
  };
30
30
  kgPicker: {
31
- /** 是否允许清空. */
32
31
  type: import("vue").PropType<import("ant-design-vue/lib/vc-picker/interface").PickerMode>;
33
32
  default: undefined;
34
33
  };
35
34
  kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
36
35
  value: {
37
- type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
36
+ type: import("vue").PropType<import("../KgForm.Item.vm").IKgFormItemValue>;
38
37
  default: undefined;
39
38
  };
40
- 'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
39
+ 'onUpdate:value': import("vue").PropType<(value: import("../KgForm.Item.vm").IKgFormItemValue | null) => void>;
41
40
  onKgSubmit: import("vue").PropType<() => void>;
42
41
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
43
42
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
@@ -70,16 +69,15 @@ declare const _default: import("vue").DefineComponent<{
70
69
  default: undefined;
71
70
  };
72
71
  kgPicker: {
73
- /** 是否允许清空. */
74
72
  type: import("vue").PropType<import("ant-design-vue/lib/vc-picker/interface").PickerMode>;
75
73
  default: undefined;
76
74
  };
77
75
  kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
78
76
  value: {
79
- type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
77
+ type: import("vue").PropType<import("../KgForm.Item.vm").IKgFormItemValue>;
80
78
  default: undefined;
81
79
  };
82
- 'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
80
+ 'onUpdate:value': import("vue").PropType<(value: import("../KgForm.Item.vm").IKgFormItemValue | null) => void>;
83
81
  onKgSubmit: import("vue").PropType<() => void>;
84
82
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
85
83
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
@@ -89,7 +87,7 @@ declare const _default: import("vue").DefineComponent<{
89
87
  onKgSelectChange?: ((...args: any[]) => any) | undefined;
90
88
  onKgSelectDatasChange?: ((...args: any[]) => any) | undefined;
91
89
  }, {
92
- value: import("../index.vm").IKgFormItemValue;
90
+ value: import("../KgForm.Item.vm").IKgFormItemValue;
93
91
  kgDisabled: boolean;
94
92
  kgContext: KG_FORM_CONTEXT;
95
93
  kgShowLabel: boolean;
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { KgFormItemProps } from '../index.vm';
2
+ import { KgFormItemProps } from '../KgForm.Item.vm';
3
3
  export declare function useKgFormItemSelect(param: {
4
4
  props: KgFormItemProps;
5
5
  }): {
@@ -33,10 +33,10 @@ declare const _default: import("vue").DefineComponent<{
33
33
  };
34
34
  kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
35
35
  value: {
36
- type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
36
+ type: import("vue").PropType<import("../KgForm.Item.vm").IKgFormItemValue>;
37
37
  default: undefined;
38
38
  };
39
- 'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
39
+ 'onUpdate:value': import("vue").PropType<(value: import("../KgForm.Item.vm").IKgFormItemValue | null) => void>;
40
40
  onKgSubmit: import("vue").PropType<() => void>;
41
41
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
42
42
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
@@ -74,10 +74,10 @@ declare const _default: import("vue").DefineComponent<{
74
74
  };
75
75
  kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
76
76
  value: {
77
- type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
77
+ type: import("vue").PropType<import("../KgForm.Item.vm").IKgFormItemValue>;
78
78
  default: undefined;
79
79
  };
80
- 'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
80
+ 'onUpdate:value': import("vue").PropType<(value: import("../KgForm.Item.vm").IKgFormItemValue | null) => void>;
81
81
  onKgSubmit: import("vue").PropType<() => void>;
82
82
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
83
83
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
@@ -85,7 +85,7 @@ declare const _default: import("vue").DefineComponent<{
85
85
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
86
86
  onKgSubmit?: ((...args: any[]) => any) | undefined;
87
87
  }, {
88
- value: import("../index.vm").IKgFormItemValue;
88
+ value: import("../KgForm.Item.vm").IKgFormItemValue;
89
89
  kgDisabled: boolean;
90
90
  kgContext: KG_FORM_CONTEXT;
91
91
  kgShowLabel: boolean;
@@ -33,10 +33,10 @@ declare const _default: import("vue").DefineComponent<{
33
33
  };
34
34
  kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
35
35
  value: {
36
- type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
36
+ type: import("vue").PropType<import("../KgForm.Item.vm").IKgFormItemValue>;
37
37
  default: undefined;
38
38
  };
39
- 'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
39
+ 'onUpdate:value': import("vue").PropType<(value: import("../KgForm.Item.vm").IKgFormItemValue | null) => void>;
40
40
  onKgSubmit: import("vue").PropType<() => void>;
41
41
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
42
42
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
@@ -74,10 +74,10 @@ declare const _default: import("vue").DefineComponent<{
74
74
  };
75
75
  kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
76
76
  value: {
77
- type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
77
+ type: import("vue").PropType<import("../KgForm.Item.vm").IKgFormItemValue>;
78
78
  default: undefined;
79
79
  };
80
- 'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
80
+ 'onUpdate:value': import("vue").PropType<(value: import("../KgForm.Item.vm").IKgFormItemValue | null) => void>;
81
81
  onKgSubmit: import("vue").PropType<() => void>;
82
82
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
83
83
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
@@ -85,7 +85,7 @@ declare const _default: import("vue").DefineComponent<{
85
85
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
86
86
  onKgSubmit?: ((...args: any[]) => any) | undefined;
87
87
  }, {
88
- value: import("../index.vm").IKgFormItemValue;
88
+ value: import("../KgForm.Item.vm").IKgFormItemValue;
89
89
  kgDisabled: boolean;
90
90
  kgContext: KG_FORM_CONTEXT;
91
91
  kgShowLabel: boolean;
@@ -1,2 +1,2 @@
1
1
  export { default as KgFormItem } from './KgForm.Item';
2
- export { type KgFormItemProps } from './index.vm';
2
+ export { type KgFormItemProps } from './KgForm.Item.vm';
@@ -1,2 +1,2 @@
1
1
  export { default as KgLayoutHeaderLocale, type KgLayoutHeaderLocaleProps } from './components/KgLayoutHeaderLocale';
2
- export * from './index.hooks';
2
+ export * from './KgLayoutHeader.hooks';
@@ -2,8 +2,8 @@ import { IRemoveEventListener } from '@kengic/core.core';
2
2
  import { ComputedRef } from 'vue';
3
3
  import { VarProfileDetail } from '../../api/WMS/models';
4
4
  import { IKgTableRequestParameter } from '../KgTable';
5
- import { IKgSearchOnReadyEventListener, IKgSearchOnResetEventListener, IKgSearchOnSearchEventListener } from './index.event';
6
- import { IKgSearchStore } from './index.store';
5
+ import { IKgSearchOnReadyEventListener, IKgSearchOnResetEventListener, IKgSearchOnSearchEventListener } from './KgSearch.event';
6
+ import { IKgSearchStore } from './KgSearch.store';
7
7
  export declare type IUseKgSearch = {
8
8
  /**
9
9
  * 当前查询字段列表.
@@ -1,7 +1,7 @@
1
1
  import { StoreDefinition } from 'pinia';
2
2
  import { VarProfileMasterDTO } from '../../api/WMS/models';
3
3
  import { IKgTableRequestParameter } from '../KgTable';
4
- import { IKgSearchEvent, IKgSearchEventListenerParameter, IKgSearchOnReadyEventListener, IKgSearchOnResetEventListener, IKgSearchOnSearchEventListener } from './index.event';
4
+ import { IKgSearchEvent, IKgSearchEventListenerParameter, IKgSearchOnReadyEventListener, IKgSearchOnResetEventListener, IKgSearchOnSearchEventListener } from './KgSearch.event';
5
5
  /** 查询方法. */
6
6
  export declare type IKgSearchOnSearchFn = (param?: IKgTableRequestParameter) => void;
7
7
  /** 重置方法. */
@@ -1,3 +1,3 @@
1
1
  export { default as KgSearch, type IKgSearchProps } from './KgSearch';
2
- export * from './index.hooks';
3
- export * from './index.store';
2
+ export * from './KgSearch.hooks';
3
+ export * from './KgSearch.store';
@@ -4,16 +4,16 @@ import { KgAny } from '../../type';
4
4
  import { IKgTableRow } from '../KgTable';
5
5
  /**
6
6
  * 事件类型.
7
- * 'onBeforeOpen': 打开提交弹窗之前
8
- * 'onOpen': 打开提交弹窗
9
- * 'onBeforeOk': 点击确认按钮之后, 执行默认逻辑之前
10
- * 'onAfterValidate': 点击确认按钮之后, 表单验证完成,
11
- * 'onBeforeRequest': 发起接口请求之前. 表单验证完成, 参数解析完成,
12
- * 'onOk': 请求成功, 关闭提交弹窗之后
13
- * 'onBeforeCancel': 点击取消按钮, 或者点击右上角的关闭按钮, 尚未关闭弹窗,
14
- * 'onCancel': 点击取消按钮, 或者点击右上角的关闭按钮, 已经关闭弹窗,
15
- * 'onError': 请求失败. 请求失败了, 或者请求返回了错误消息
16
- * 'onClose': 关闭提交弹窗
7
+ * 'onBeforeOpen' 打开提交弹窗之前
8
+ * 'onOpen' 打开提交弹窗
9
+ * 'onBeforeOk' 点击确认按钮之后, 执行默认逻辑之前
10
+ * 'onAfterValidate' 点击确认按钮之后, 表单验证完成,
11
+ * 'onBeforeRequest' 发起接口请求之前. 表单验证完成, 参数解析完成,
12
+ * 'onOk' 请求成功, 关闭提交弹窗之后
13
+ * 'onBeforeCancel' 点击取消按钮, 或者点击右上角的关闭按钮, 尚未关闭弹窗,
14
+ * 'onCancel' 点击取消按钮, 或者点击右上角的关闭按钮, 已经关闭弹窗,
15
+ * 'onError' 请求失败. 请求失败了, 或者请求返回了错误消息
16
+ * 'onClose' 关闭提交弹窗
17
17
  */
18
18
  export declare type IKgSubmitEvent = 'onBeforeOpen' | 'onOpen' | 'onBeforeOk' | 'onAfterValidate' | 'onBeforeRequest' | 'onOk' | 'onBeforeCancel' | 'onCancel' | 'onError' | 'onClose';
19
19
  export declare type IKgSubmitOnBeforeOpenEventListenerParameter = {
@@ -3,8 +3,8 @@ import { FormInstance } from 'ant-design-vue';
3
3
  import { ComputedRef, Ref } from 'vue';
4
4
  import { VarProfileDetail, VarSubmitConfig, VarSubmitDetail } from '../../api/WMS/models';
5
5
  import { IKgVarSubmitConfigProperties, KG__VAR_BUTTON__TYPE, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../const';
6
- import { IKgSubmitOnAfterValidateEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnBeforeOkEventListener, IKgSubmitOnBeforeOpenEventListener, IKgSubmitOnBeforeRequestEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnCloseEventListener, IKgSubmitOnErrorEventListener, IKgSubmitOnOkEventListener, IKgSubmitOnOpenEventListener } from './index.event';
7
- import { IKgSubmitStore } from './index.store';
6
+ import { IKgSubmitOnAfterValidateEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnBeforeOkEventListener, IKgSubmitOnBeforeOpenEventListener, IKgSubmitOnBeforeRequestEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnCloseEventListener, IKgSubmitOnErrorEventListener, IKgSubmitOnOkEventListener, IKgSubmitOnOpenEventListener } from './KgSubmit.event';
7
+ import { IKgSubmitStore } from './KgSubmit.store';
8
8
  export interface IUseKgSubmit {
9
9
  /**
10
10
  * <p>添加一个「提交表单字段」.</p>
@@ -36,27 +36,27 @@ export interface IUseKgSubmit {
36
36
  /**
37
37
  * <p>「当前按钮」的「提交表单字段」.</p>
38
38
  */
39
- currentVarSubmitDetails: ComputedRef<VarSubmitDetail[]>;
39
+ currentVarSubmitDetails: ComputedRef<VarSubmitDetail[] | null>;
40
40
  /**
41
41
  * <p>「当前按钮」的「提交表单字段」(关键的).</p>
42
42
  */
43
- currentVarSubmitDetailsForKey: ComputedRef<VarSubmitDetail[]>;
43
+ currentVarSubmitDetailsForKey: ComputedRef<VarSubmitDetail[] | null>;
44
44
  /**
45
45
  * <p>「当前按钮」的「提交表单字段」(关键的, 可见的).</p>
46
46
  */
47
- currentVarSubmitDetailsForKeyAndVisible: ComputedRef<VarSubmitDetail[]>;
47
+ currentVarSubmitDetailsForKeyAndVisible: ComputedRef<VarSubmitDetail[] | null>;
48
48
  /**
49
49
  * <p>「当前按钮」的「提交表单字段」(非关键的).</p>
50
50
  */
51
- currentVarSubmitDetailsForNotKey: ComputedRef<VarSubmitDetail[]>;
51
+ currentVarSubmitDetailsForNotKey: ComputedRef<VarSubmitDetail[] | null>;
52
52
  /**
53
53
  * <p>「当前按钮」的「提交表单字段」(非关键的, 可见的).</p>
54
54
  */
55
- currentVarSubmitDetailsForNotKeyAndVisible: ComputedRef<VarSubmitDetail[]>;
55
+ currentVarSubmitDetailsForNotKeyAndVisible: ComputedRef<VarSubmitDetail[] | null>;
56
56
  /**
57
57
  * <p>「当前按钮」的「提交表单字段」(可见的).</p>
58
58
  */
59
- currentVarSubmitDetailsForVisible: ComputedRef<VarSubmitDetail[]>;
59
+ currentVarSubmitDetailsForVisible: ComputedRef<VarSubmitDetail[] | null>;
60
60
  /**
61
61
  * 界面标识.
62
62
  */
@@ -144,7 +144,7 @@ export interface IUseKgSubmit {
144
144
  isVisible?: 0 | 1 | null;
145
145
  searchProfileVarName?: string | null;
146
146
  varName?: string | null;
147
- } | null): Array<VarSubmitDetail>;
147
+ } | null): Array<VarSubmitDetail> | null;
148
148
  /**
149
149
  * 表单数据对象.
150
150
  *
@@ -4,14 +4,8 @@ import { StoreDefinition } from 'pinia';
4
4
  import { Ref } from 'vue';
5
5
  import { VarProfileDetail, VarSubmitConfig, VarSubmitDetail } from '../../api/WMS/models';
6
6
  import { KG__VAR_BUTTON__TYPE } from '../../const';
7
- import { IKgSubmitEvent, IKgSubmitEventListenerParameter, IKgSubmitOnAfterValidateEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnBeforeOkEventListener, IKgSubmitOnBeforeOpenEventListener, IKgSubmitOnBeforeRequestEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnCloseEventListener, IKgSubmitOnErrorEventListener, IKgSubmitOnOkEventListener, IKgSubmitOnOpenEventListener } from './index.event';
7
+ import { IKgSubmitEvent, IKgSubmitEventListenerParameter, IKgSubmitOnAfterValidateEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnBeforeOkEventListener, IKgSubmitOnBeforeOpenEventListener, IKgSubmitOnBeforeRequestEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnCloseEventListener, IKgSubmitOnErrorEventListener, IKgSubmitOnOkEventListener, IKgSubmitOnOpenEventListener } from './KgSubmit.event';
8
8
  export interface IUseKgSubmitStoreState {
9
- onAfterValidate: Map<string, Array<IKgSubmitOnAfterValidateEventListener>>;
10
- onBeforeOk: Map<string, Array<IKgSubmitOnBeforeOkEventListener>>;
11
- onBeforeOpen: Map<string, Array<IKgSubmitOnBeforeOpenEventListener>>;
12
- onBeforeRequest: Map<string, Array<IKgSubmitOnBeforeRequestEventListener>>;
13
- onClose: Map<string, Array<IKgSubmitOnCloseEventListener>>;
14
- onError: Map<string, Array<IKgSubmitOnErrorEventListener>>;
15
9
  /** 表单数据对象. */
16
10
  formModelMap: Map<string, Record<string, any>>;
17
11
  /** 表单对象. */
@@ -22,15 +16,23 @@ export interface IUseKgSubmitStoreState {
22
16
  */
23
17
  formRulesMap: Map<string, Ref<Record<string, Array<RuleObject>>>>;
24
18
  isLoadingMap: Map<string, boolean>;
25
- onOk: Map<string, Array<IKgSubmitOnOkEventListener>>;
19
+ onAfterValidate: Map<string, Array<IKgSubmitOnAfterValidateEventListener>>;
26
20
  onBeforeCancel: Map<string, Array<IKgSubmitOnBeforeCancelEventListener>>;
21
+ onBeforeOk: Map<string, Array<IKgSubmitOnBeforeOkEventListener>>;
22
+ onBeforeOpen: Map<string, Array<IKgSubmitOnBeforeOpenEventListener>>;
23
+ onBeforeRequest: Map<string, Array<IKgSubmitOnBeforeRequestEventListener>>;
27
24
  onCancel: Map<string, Array<IKgSubmitOnCancelEventListener>>;
25
+ onClose: Map<string, Array<IKgSubmitOnCloseEventListener>>;
26
+ onError: Map<string, Array<IKgSubmitOnErrorEventListener>>;
27
+ onOk: Map<string, Array<IKgSubmitOnOkEventListener>>;
28
28
  onOpen: Map<string, Array<IKgSubmitOnOpenEventListener>>;
29
29
  }
30
30
  export interface IUseKgSubmitStoreGetters {
31
- getFormModel(): (formID?: string | null) => Record<string, any> | null;
32
- getFormRef(): (formID?: string | null) => Ref<FormInstance | null>;
33
- getFormRules(): (formID?: string | null) => Ref<Record<string, Array<RuleObject>>>;
31
+ getFormModel(): (formID: string | null | undefined) => Record<string, any> | null;
32
+ getFormRef(): (formID: string | null | undefined) => Ref<FormInstance | null>;
33
+ getFormRules(): (formID: string | null | undefined) => Ref<Record<string, Array<RuleObject>>>;
34
+ /** 是否处于加载状态. */
35
+ getIsLoading(): (formID: string | null | undefined) => boolean;
34
36
  getVarSubmitConfig(): (formID: string | null | undefined, param?: {
35
37
  buttonType?: KG__VAR_BUTTON__TYPE;
36
38
  buttonVarName?: string | null;
@@ -46,9 +48,7 @@ export interface IUseKgSubmitStoreGetters {
46
48
  isVisible?: 0 | 1 | null;
47
49
  searchProfileVarName?: string | null;
48
50
  varName?: string | null;
49
- } | null) => Array<VarSubmitDetail>;
50
- /** 是否处于加载状态. */
51
- isLoading(): (formID?: string | null) => boolean;
51
+ } | null) => Array<VarSubmitDetail> | null;
52
52
  }
53
53
  export interface IUseKgSubmitStoreActions {
54
54
  /**
@@ -69,7 +69,7 @@ export interface IUseKgSubmitStoreActions {
69
69
  * 清理数据.
70
70
  * @param formID 页面标识.
71
71
  */
72
- dispose(formID?: string | null): void;
72
+ dispose(formID: string | null | undefined): void;
73
73
  emit<T = IKgSubmitEventListenerParameter>(formID: string, event: IKgSubmitEvent, parameter: T): Promise<boolean>;
74
74
  patchVarSubmitDetail(formID: string | null | undefined, param: {
75
75
  buttonType?: KG__VAR_BUTTON__TYPE;
@@ -84,7 +84,7 @@ export interface IUseKgSubmitStoreActions {
84
84
  * @param listener 事件监听函数.
85
85
  */
86
86
  removeEventListener(formID: string, event: IKgSubmitEvent, listener?: any): void;
87
- setFormModel(formID?: string | null, model?: Record<string, any> | null): void;
87
+ setFormModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
88
88
  setIsLoading(formID: string, value: boolean): void;
89
89
  }
90
90
  export declare type IUseKgSubmitStore = StoreDefinition<'KgSubmit', IUseKgSubmitStoreState, IUseKgSubmitStoreGetters, IUseKgSubmitStoreActions>;
@@ -1,4 +1,4 @@
1
1
  export { default as KgSubmit, type KgSubmitProps } from './KgSubmit';
2
- export * from './index.hooks';
3
- export * from './index.store';
4
- export * from './index.vm';
2
+ export * from './KgSubmit.hooks';
3
+ export * from './KgSubmit.store';
4
+ export * from './KgSubmit.vm';
@@ -1,7 +1,7 @@
1
1
  import { IKgEventListener } from '@kengic/core.core';
2
2
  import { Ref } from 'vue';
3
3
  import { IPage } from '../../api/WMS/models';
4
- import { IKgTableRow } from './index.vm';
4
+ import { IKgTableRow } from './KgTable.vm';
5
5
  /**
6
6
  * 事件类型.
7
7
  * 'onReady': 就绪, 配置初始完成, 组件渲染完成
@@ -1,8 +1,8 @@
1
1
  import { IRemoveEventListener } from '@kengic/core.core';
2
2
  import { ComputedRef } from 'vue';
3
3
  import { VarGridConfig } from '../../api/WMS/models';
4
- import { IKgTableOnAfterRequestEventListener, IKgTableOnBeforeParseRequestParameterEventListener, IKgTableOnBeforeRequestEventListener, IKgTableOnBeforeSetDatasEventListener, IKgTableOnReadyEventListener, IKgTableOnRowDoubleClickEventListener } from './index.event';
5
- import { IKgTableStore } from './index.store';
4
+ import { IKgTableOnAfterRequestEventListener, IKgTableOnBeforeParseRequestParameterEventListener, IKgTableOnBeforeRequestEventListener, IKgTableOnBeforeSetDatasEventListener, IKgTableOnReadyEventListener, IKgTableOnRowDoubleClickEventListener } from './KgTable.event';
5
+ import { IKgTableStore } from './KgTable.store';
6
6
  export interface IUseKgTable {
7
7
  /**
8
8
  * 列表数据.
@@ -1,7 +1,7 @@
1
1
  import { ColumnsType } from 'ant-design-vue/es/table';
2
2
  import { SorterResult } from 'ant-design-vue/es/table/interface';
3
3
  import { ComputedRef, Ref, UnwrapRef } from 'vue';
4
- import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from './index.vm';
4
+ import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from './KgTable.vm';
5
5
  import { IKgTableProps } from './KgTable';
6
6
  export declare function _useRenderBodyCell(): {
7
7
  renderBodyCell: (args: any, context?: KG_TABLE_CELL_CONTEXT) => any;
@@ -2,8 +2,8 @@ import { Key } from 'ant-design-vue/lib/_util/type';
2
2
  import { StoreDefinition } from 'pinia';
3
3
  import { Ref } from 'vue';
4
4
  import { VarGridConfig } from '../../api/WMS/models';
5
- import { IKgTableEvent, IKgTableEventListenerParameter, IKgTableOnAfterRequestEventListener, IKgTableOnBeforeParseRequestParameterEventListener, IKgTableOnBeforeRequestEventListener, IKgTableOnBeforeSetDatasEventListener, IKgTableOnReadyEventListener, IKgTableOnRowDoubleClickEventListener } from './index.event';
6
- import { IKgTableRow, IKgTableRowHeight } from './index.vm';
5
+ import { IKgTableEvent, IKgTableEventListenerParameter, IKgTableOnAfterRequestEventListener, IKgTableOnBeforeParseRequestParameterEventListener, IKgTableOnBeforeRequestEventListener, IKgTableOnBeforeSetDatasEventListener, IKgTableOnReadyEventListener, IKgTableOnRowDoubleClickEventListener } from './KgTable.event';
6
+ import { IKgTableRow, IKgTableRowHeight } from './KgTable.vm';
7
7
  export interface IUseKgTableStoreState {
8
8
  onAfterRequest: Map<string, Array<IKgTableOnAfterRequestEventListener>>;
9
9
  onBeforeParseParameter: Map<string, Array<IKgTableOnBeforeParseRequestParameterEventListener>>;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from '../index.vm';
2
+ import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from '../KgTable.vm';
3
3
  export declare const getProps: () => {
4
4
  /** 行对象. */
5
5
  kgRow: PropType<IKgTableRow>;
@@ -1,4 +1,4 @@
1
1
  export { default as KgTable } from './KgTable';
2
- export * from './index.hooks';
3
- export * from './index.store';
4
- export * from './index.vm';
2
+ export * from './KgTable.hooks';
3
+ export * from './KgTable.store';
4
+ export * from './KgTable.vm';
@@ -1,5 +1,5 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import { IKgProps, IKgSlots } from './index.vm';
2
+ import { IKgProps, IKgSlots } from './KgVar.vm';
3
3
  import './KgVar.less';
4
4
  export declare function getProps(): {
5
5
  /**
@@ -8,9 +8,9 @@ import { type IUseKgSearch } from '../KgSearch';
8
8
  import { IUseKgSubmit } from '../KgSubmit';
9
9
  import { IUseKgTable } from '../KgTable';
10
10
  import { IUseKgVarConfig } from '../KgVarConfig';
11
- import { IKgVarOnRequestEventListener, IKgVarOnSetupEventListener, IKgVarOnUnmountedEventListener } from './index.event';
12
- import { IKgVarStore } from './index.store';
13
- import { IKgProps, IKgSlots } from './index.vm';
11
+ import { IKgVarOnRequestEventListener, IKgVarOnSetupEventListener, IKgVarOnUnmountedEventListener } from './KgVar.event';
12
+ import { IKgVarStore } from './KgVar.store';
13
+ import { IKgProps, IKgSlots } from './KgVar.vm';
14
14
  export declare type IUseKgVar = {
15
15
  /**
16
16
  * <p>添加一个「变量配置:表单控件」.</p>
@@ -50,7 +50,7 @@ export declare type IUseKgVar = {
50
50
  *
51
51
  * <ul>
52
52
  * <li>
53
- * <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
53
+ * <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 过滤.</p>
54
54
  * </li>
55
55
  * <li>
56
56
  * <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} !== <code>undefined</code>, 则先根据参数 {@link param.buttonType} 获取按钮, 然后根据 {@link VarButton.var_nam} 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
@@ -1,8 +1,8 @@
1
1
  import { StoreDefinition } from 'pinia';
2
2
  import { VarButton, VarButtonConfig, VarChildDetail, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarDda, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail, VarVariable } from '../../api/WMS/models';
3
3
  import { KG__VAR_BUTTON__TYPE } from '../../const';
4
- import { IUseKgVar } from './index.hooks';
5
- import { IKgProps, IKgSlots } from './index.vm';
4
+ import { IUseKgVar } from './KgVar.hooks';
5
+ import { IKgProps, IKgSlots } from './KgVar.vm';
6
6
  export interface IUseKgVarStoreState {
7
7
  /** 正在复制: 正在调用接口. */
8
8
  isCopyingRequestingMap: Map<string, boolean>;
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef, InjectionKey } from 'vue';
2
2
  import { IKgButtonProps } from '../KgButton';
3
- import { IKgFormItemSlotControlParameter, IKgFormItemSlotControlRightParameter } from '../KgForm.Item/index.vm';
3
+ import { IKgFormItemSlotControlParameter, IKgFormItemSlotControlRightParameter } from '../KgForm.Item/KgForm.Item.vm';
4
4
  import { IKgSearchProps } from '../KgSearch';
5
5
  import { KgSubmitProps } from '../KgSubmit';
6
6
  import { IKgTableSlotParams } from '../KgTable';
@@ -10,8 +10,8 @@ export declare function KgVarFactory(param?: {
10
10
  type: import("vue").PropType<number>;
11
11
  default: number;
12
12
  };
13
- kgProps: import("vue").PropType<import("./index.vm").IKgProps>;
14
- kgSlots: import("vue").PropType<import("./index.vm").IKgSlots>;
13
+ kgProps: import("vue").PropType<import("./KgVar.vm").IKgProps>;
14
+ kgSlots: import("vue").PropType<import("./KgVar.vm").IKgSlots>;
15
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
16
  kgBackgroundGray: {
17
17
  type: import("vue").PropType<boolean>;
@@ -22,8 +22,8 @@ export declare function KgVarFactory(param?: {
22
22
  type: import("vue").PropType<number>;
23
23
  default: number;
24
24
  };
25
- kgProps: import("vue").PropType<import("./index.vm").IKgProps>;
26
- kgSlots: import("vue").PropType<import("./index.vm").IKgSlots>;
25
+ kgProps: import("vue").PropType<import("./KgVar.vm").IKgProps>;
26
+ kgSlots: import("vue").PropType<import("./KgVar.vm").IKgSlots>;
27
27
  }>>, {
28
28
  kgBackgroundGray: boolean;
29
29
  kgLevel: number;
@@ -41,8 +41,8 @@ export declare const KgVar2: import("vue").DefineComponent<{
41
41
  type: import("vue").PropType<number>;
42
42
  default: number;
43
43
  };
44
- kgProps: import("vue").PropType<import("./index.vm").IKgProps>;
45
- kgSlots: import("vue").PropType<import("./index.vm").IKgSlots>;
44
+ kgProps: import("vue").PropType<import("./KgVar.vm").IKgProps>;
45
+ kgSlots: import("vue").PropType<import("./KgVar.vm").IKgSlots>;
46
46
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
47
47
  kgBackgroundGray: {
48
48
  type: import("vue").PropType<boolean>;
@@ -53,8 +53,8 @@ export declare const KgVar2: import("vue").DefineComponent<{
53
53
  type: import("vue").PropType<number>;
54
54
  default: number;
55
55
  };
56
- kgProps: import("vue").PropType<import("./index.vm").IKgProps>;
57
- kgSlots: import("vue").PropType<import("./index.vm").IKgSlots>;
56
+ kgProps: import("vue").PropType<import("./KgVar.vm").IKgProps>;
57
+ kgSlots: import("vue").PropType<import("./KgVar.vm").IKgSlots>;
58
58
  }>>, {
59
59
  kgBackgroundGray: boolean;
60
60
  kgLevel: number;
@@ -1,5 +1,5 @@
1
1
  export { default as KgVar, type IKgVarProps, type KgVarProps } from './KgVar';
2
2
  export * from './KgVarFactory';
3
- export * from './index.hooks';
4
- export * from './index.store';
5
- export * from './index.vm';
3
+ export * from './KgVar.hooks';
4
+ export * from './KgVar.store';
5
+ export * from './KgVar.vm';
@@ -1,4 +1,4 @@
1
- import { IKgVarConfigStore } from './index.store';
1
+ import { IKgVarConfigStore } from './KgVarConfig.store';
2
2
  export interface IUseKgVarConfig {
3
3
  /**
4
4
  * 打开变量配置弹窗, 并使用传入的宿主界面标识.
@@ -1,3 +1,3 @@
1
1
  export { default as KgVarConfig } from './KgVarConfig';
2
- export * from './index.hooks';
3
- export * from './index.store';
2
+ export * from './KgVarConfig.hooks';
3
+ export * from './KgVarConfig.store';
@@ -1,7 +1,7 @@
1
1
  import { IRemoveEventListener } from '@kengic/core.core';
2
2
  import { Pinia } from 'pinia';
3
3
  import { ComputedRef } from 'vue';
4
- import { IKgWarehouseOnMountedEventListener, IKgWarehouseStore } from './index.store';
4
+ import { IKgWarehouseOnMountedEventListener, IKgWarehouseStore } from './KgWarehouse.store';
5
5
  export declare type IUseKgWarehouse = {
6
6
  /**
7
7
  * 监听事件: 组件加载完成.
@@ -1,4 +1,4 @@
1
1
  export { default as KgWarehouse } from './KgWarehouse';
2
- export * from './index.guard';
3
- export * from './index.hooks';
4
- export * from './index.store';
2
+ export * from './KgWarehouse.guard';
3
+ export * from './KgWarehouse.hooks';
4
+ export * from './KgWarehouse.store';
@@ -2,7 +2,8 @@ import { StoreDefinition } from 'pinia';
2
2
  import { ComputedRef } from 'vue';
3
3
  import { Router } from 'vue-router';
4
4
  import { DescriptionDTO, SysUserWarehouseDTO } from '../api/WMS/models';
5
- import { KG_APP, Menu } from '../const';
5
+ import { KG_APP } from '../const';
6
+ import { Menu } from '../project/src/router/types';
6
7
  import { LocaleType } from '../project/types/config';
7
8
  import { UserInfo } from '../project/types/store';
8
9
  export declare type IKgOption = {