@kengic/vue 0.22.1-beta.0 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. package/CHANGELOG.md +62 -22
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +7709 -6673
  4. package/dist/project/build/script/buildConf.ts +1 -2
  5. package/dist/project/build/script/postBuild.ts +1 -1
  6. package/dist/project/src/api/sys/model/userModel.ts +1 -0
  7. package/dist/src/apis/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
  8. package/dist/src/apis/WMS/Controllers/DescriptionController/index.d.ts +1 -0
  9. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -7
  10. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
  11. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
  12. package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
  13. package/dist/src/apis/WMS/models.d.ts +28 -4
  14. package/dist/src/components/KgAppSelect/index.hooks.d.ts +3 -3
  15. package/dist/src/components/KgAppSelect/index.store.d.ts +30 -29
  16. package/dist/src/components/KgButton/KgButton.d.ts +18 -12
  17. package/dist/src/components/KgButton/index.d.ts +4 -4
  18. package/dist/src/components/KgButton/index.hooks.d.ts +68 -67
  19. package/dist/src/components/KgButton/index.store.d.ts +57 -193
  20. package/dist/src/components/KgForm/index.hooks.d.ts +37 -30
  21. package/dist/src/components/KgForm/index.store.d.ts +88 -41
  22. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -3
  23. package/dist/src/components/KgForm.Item/{KgForm.Item.hooks.d.ts → KgForm.Item.service.d.ts} +3 -3
  24. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +8 -7
  25. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +6 -5
  26. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -5
  27. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +6 -5
  28. package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +3 -3
  29. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -5
  30. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -5
  31. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -7
  32. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -5
  33. package/dist/src/components/KgForm.Item/components/{KgForm.Item.Select.hooks.d.ts → KgForm.Item.Select.service.d.ts} +16 -13
  34. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -5
  35. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +6 -5
  36. package/dist/src/components/KgForm.Item/index.d.ts +1 -1
  37. package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -7
  38. package/dist/src/components/KgResizable/KgResizable.d.ts +52 -52
  39. package/dist/src/components/KgSearch/KgSearch.d.ts +0 -16
  40. package/dist/src/components/KgSearch/KgSearch.service.d.ts +32 -0
  41. package/dist/src/components/KgSearch/index.hooks.d.ts +57 -138
  42. package/dist/src/components/KgSearch/index.store.d.ts +84 -193
  43. package/dist/src/components/KgSubmit/index.hooks.d.ts +112 -278
  44. package/dist/src/components/KgSubmit/index.store.d.ts +71 -257
  45. package/dist/src/components/KgSubmit/index.vm.d.ts +2 -1
  46. package/dist/src/components/KgTable/{KgTable.hooks.d.ts → KgTable.service.d.ts} +8 -16
  47. package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +0 -1
  48. package/dist/src/components/KgTable/components/setting/{KgTable.Setting.hooks.d.ts → KgTable.Setting.service.d.ts} +1 -1
  49. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -2
  50. package/dist/src/components/KgTable/index.hooks.d.ts +79 -427
  51. package/dist/src/components/KgTable/index.store.d.ts +127 -647
  52. package/dist/src/components/KgTable/index.vm.d.ts +1 -1
  53. package/dist/src/components/KgVar/index.hooks.d.ts +103 -3468
  54. package/dist/src/components/KgVar/index.store.d.ts +136 -3229
  55. package/dist/src/components/KgVar/index.store.service.d.ts +2 -1
  56. package/dist/src/components/KgVar/index.vm.d.ts +7 -7
  57. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
  58. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
  59. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
  60. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
  61. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
  62. package/dist/src/components/KgVarConfig/index.store.d.ts +23 -16
  63. package/dist/src/components/KgVarConfig/index.vm.d.ts +32 -0
  64. package/dist/src/components/KgWarehouse/index.hooks.d.ts +10 -6
  65. package/dist/src/components/KgWarehouse/index.store.d.ts +15 -14
  66. package/dist/src/components/util.d.ts +7 -7
  67. package/dist/src/config/index.hooks.d.ts +31 -38
  68. package/dist/src/config/index.store.d.ts +74 -52
  69. package/dist/src/consts/i18n/en.d.ts +10 -6
  70. package/dist/src/consts/i18n/zh_CN.d.ts +10 -6
  71. package/dist/src/consts/index.d.ts +0 -277
  72. package/dist/src/consts/index.vm.d.ts +503 -75
  73. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +7 -1
  74. package/dist/src/utils/kg-var.util.d.ts +4 -3
  75. package/dist/src/utils/kg.util.d.ts +13 -16
  76. package/package.json +2 -2
  77. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Delete.d.ts +0 -18
  78. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/DeleteBatch.d.ts +0 -18
  79. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Edit.d.ts +0 -16
  80. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ExportXls.d.ts +0 -30
  81. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ImportExcel.d.ts +0 -15
  82. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/List.d.ts +0 -37
  83. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/QueryById.d.ts +0 -19
  84. package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -28
  85. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -32
  86. /package/dist/src/components/KgModal/{KgModal.hooks.d.ts → KgModal.service.d.ts} +0 -0
  87. /package/dist/src/components/KgSubmit/{KgSubmit.hooks.d.ts → KgSubmit.service.d.ts} +0 -0
  88. /package/dist/src/components/KgTable/components/setting/config/{KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts → KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts} +0 -0
  89. /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.Vars.d.ts → KgVarConfig.Modal.Var.VarConfigControl.d.ts} +0 -0
@@ -1,21 +1,17 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import './KgResizable.less';
3
3
  export declare const getProps: () => {
4
- /** 拖拽条的位置. */
5
- kgType: {
6
- type: PropType<"top" | "left" | "right" | "bottom">;
7
- default: string;
8
- };
4
+ /** 样式. */
5
+ kgClass: PropType<string>;
9
6
  /** 是否禁用. */
10
7
  kgDisabled: PropType<boolean>;
11
- /** 当前宽度. */
12
- kgWidth: {
8
+ /** 当前高度. */
9
+ kgHeight: {
13
10
  type: PropType<number>;
14
11
  default: number;
15
12
  };
16
- 'onUpdate:kgWidth': PropType<(value: number) => void>;
17
- /** 最小宽度. */
18
- kgMinWidth: {
13
+ /** 最大高度. */
14
+ kgMaxHeight: {
19
15
  type: PropType<number>;
20
16
  default: number;
21
17
  };
@@ -24,120 +20,124 @@ export declare const getProps: () => {
24
20
  type: PropType<number>;
25
21
  default: number;
26
22
  };
27
- /** 当前高度. */
28
- kgHeight: {
29
- type: PropType<number>;
30
- default: number;
31
- };
32
- 'onUpdate:kgHeight': PropType<(value: number) => void>;
33
23
  /** 最小高度. */
34
24
  kgMinHeight: {
35
25
  type: PropType<number>;
36
26
  default: number;
37
27
  };
38
- /** 最大高度. */
39
- kgMaxHeight: {
28
+ /** 最小宽度. */
29
+ kgMinWidth: {
40
30
  type: PropType<number>;
41
31
  default: number;
42
32
  };
43
- /** 样式. */
44
- kgClass: PropType<string>;
45
- };
46
- export declare type IKgResizableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
47
- declare const _default: import("vue").DefineComponent<{
48
33
  /** 拖拽条的位置. */
49
34
  kgType: {
50
35
  type: PropType<"top" | "left" | "right" | "bottom">;
51
36
  default: string;
52
37
  };
53
- /** 是否禁用. */
54
- kgDisabled: PropType<boolean>;
55
38
  /** 当前宽度. */
56
39
  kgWidth: {
57
40
  type: PropType<number>;
58
41
  default: number;
59
42
  };
43
+ 'onUpdate:kgHeight': PropType<(value: number) => void>;
60
44
  'onUpdate:kgWidth': PropType<(value: number) => void>;
61
- /** 最小宽度. */
62
- kgMinWidth: {
45
+ };
46
+ export declare type IKgResizableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
47
+ declare const _default: import("vue").DefineComponent<{
48
+ /** 样式. */
49
+ kgClass: PropType<string>;
50
+ /** 是否禁用. */
51
+ kgDisabled: PropType<boolean>;
52
+ /** 当前高度. */
53
+ kgHeight: {
63
54
  type: PropType<number>;
64
55
  default: number;
65
56
  };
66
- /** 最大宽度. */
67
- kgMaxWidth: {
57
+ /** 最大高度. */
58
+ kgMaxHeight: {
68
59
  type: PropType<number>;
69
60
  default: number;
70
61
  };
71
- /** 当前高度. */
72
- kgHeight: {
62
+ /** 最大宽度. */
63
+ kgMaxWidth: {
73
64
  type: PropType<number>;
74
65
  default: number;
75
66
  };
76
- 'onUpdate:kgHeight': PropType<(value: number) => void>;
77
67
  /** 最小高度. */
78
68
  kgMinHeight: {
79
69
  type: PropType<number>;
80
70
  default: number;
81
71
  };
82
- /** 最大高度. */
83
- kgMaxHeight: {
72
+ /** 最小宽度. */
73
+ kgMinWidth: {
84
74
  type: PropType<number>;
85
75
  default: number;
86
76
  };
87
- /** 样式. */
88
- kgClass: PropType<string>;
89
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:kgWidth" | "update:kgHeight")[], "update:kgWidth" | "update:kgHeight", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
90
77
  /** 拖拽条的位置. */
91
78
  kgType: {
92
79
  type: PropType<"top" | "left" | "right" | "bottom">;
93
80
  default: string;
94
81
  };
95
- /** 是否禁用. */
96
- kgDisabled: PropType<boolean>;
97
82
  /** 当前宽度. */
98
83
  kgWidth: {
99
84
  type: PropType<number>;
100
85
  default: number;
101
86
  };
87
+ 'onUpdate:kgHeight': PropType<(value: number) => void>;
102
88
  'onUpdate:kgWidth': PropType<(value: number) => void>;
103
- /** 最小宽度. */
104
- kgMinWidth: {
89
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:kgWidth" | "update:kgHeight")[], "update:kgWidth" | "update:kgHeight", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
90
+ /** 样式. */
91
+ kgClass: PropType<string>;
92
+ /** 是否禁用. */
93
+ kgDisabled: PropType<boolean>;
94
+ /** 当前高度. */
95
+ kgHeight: {
105
96
  type: PropType<number>;
106
97
  default: number;
107
98
  };
108
- /** 最大宽度. */
109
- kgMaxWidth: {
99
+ /** 最大高度. */
100
+ kgMaxHeight: {
110
101
  type: PropType<number>;
111
102
  default: number;
112
103
  };
113
- /** 当前高度. */
114
- kgHeight: {
104
+ /** 最大宽度. */
105
+ kgMaxWidth: {
115
106
  type: PropType<number>;
116
107
  default: number;
117
108
  };
118
- 'onUpdate:kgHeight': PropType<(value: number) => void>;
119
109
  /** 最小高度. */
120
110
  kgMinHeight: {
121
111
  type: PropType<number>;
122
112
  default: number;
123
113
  };
124
- /** 最大高度. */
125
- kgMaxHeight: {
114
+ /** 最小宽度. */
115
+ kgMinWidth: {
126
116
  type: PropType<number>;
127
117
  default: number;
128
118
  };
129
- /** 样式. */
130
- kgClass: PropType<string>;
119
+ /** 拖拽条的位置. */
120
+ kgType: {
121
+ type: PropType<"top" | "left" | "right" | "bottom">;
122
+ default: string;
123
+ };
124
+ /** 当前宽度. */
125
+ kgWidth: {
126
+ type: PropType<number>;
127
+ default: number;
128
+ };
129
+ 'onUpdate:kgHeight': PropType<(value: number) => void>;
130
+ 'onUpdate:kgWidth': PropType<(value: number) => void>;
131
131
  }>> & {
132
- "onUpdate:kgWidth"?: ((...args: any[]) => any) | undefined;
133
132
  "onUpdate:kgHeight"?: ((...args: any[]) => any) | undefined;
133
+ "onUpdate:kgWidth"?: ((...args: any[]) => any) | undefined;
134
134
  }, {
135
135
  kgMaxHeight: number;
136
136
  kgMaxWidth: number;
137
137
  kgMinHeight: number;
138
138
  kgMinWidth: number;
139
+ kgHeight: number;
139
140
  kgType: "top" | "left" | "right" | "bottom";
140
141
  kgWidth: number;
141
- kgHeight: number;
142
142
  }>;
143
143
  export default _default;
@@ -6,11 +6,6 @@ export declare const getProps: () => {
6
6
  type: PropType<boolean>;
7
7
  default: undefined;
8
8
  };
9
- /** 是否将头部放到页面头部. */
10
- kgTeleportToHeader: {
11
- type: PropType<boolean>;
12
- default: undefined;
13
- };
14
9
  };
15
10
  export declare type IKgSearchProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
16
11
  declare const _default: import("vue").DefineComponent<{
@@ -19,24 +14,13 @@ declare const _default: import("vue").DefineComponent<{
19
14
  type: PropType<boolean>;
20
15
  default: undefined;
21
16
  };
22
- /** 是否将头部放到页面头部. */
23
- kgTeleportToHeader: {
24
- type: PropType<boolean>;
25
- default: undefined;
26
- };
27
17
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
28
18
  /** 是否禁用. */
29
19
  kgDisabled: {
30
20
  type: PropType<boolean>;
31
21
  default: undefined;
32
22
  };
33
- /** 是否将头部放到页面头部. */
34
- kgTeleportToHeader: {
35
- type: PropType<boolean>;
36
- default: undefined;
37
- };
38
23
  }>>, {
39
24
  kgDisabled: boolean;
40
- kgTeleportToHeader: boolean;
41
25
  }>;
42
26
  export default _default;
@@ -0,0 +1,32 @@
1
+ import { FormInstance } from 'ant-design-vue/lib/form/Form';
2
+ import { Ref } from 'vue';
3
+ /** 头部高度. */
4
+ export declare const HEADER_HEIGHT = 42;
5
+ /**
6
+ * 下边距的高度.
7
+ */
8
+ export declare const PADDING_BOTTOM = 6;
9
+ /**
10
+ * 下边框的高度.
11
+ */
12
+ export declare const BORDER_BOTTOM_WIDTH = 1;
13
+ /**
14
+ * 一个查询字段的高度.
15
+ */
16
+ export declare const FORM_ITEM_HEIGHT = 38;
17
+ export declare function _useCommon(): {
18
+ isVisible: import("vue").ComputedRef<boolean>;
19
+ };
20
+ export declare function _useHeight(param: {
21
+ formContainerRef: Ref<HTMLDivElement | null>;
22
+ }): {
23
+ defaultHeight: import("vue").ComputedRef<number>;
24
+ maxHeight: import("vue").ComputedRef<number>;
25
+ minHeight: import("vue").ComputedRef<number>;
26
+ };
27
+ export declare function _useFormModel(param: {
28
+ kgResizableRef: Ref<any | null>;
29
+ formRef: Ref<FormInstance | null>;
30
+ }): {
31
+ initFormModel: () => Promise<void>;
32
+ };
@@ -1,153 +1,72 @@
1
- import { IKgTableRequestParams } from '../KgTable';
2
- import { IKgSearchEvent, IKgSearchReadyCb, IKgSearchResetCb, IKgSearchSearchCb } from './index.store';
3
- /**
4
- * @param formID 界面标识.
5
- */
6
- export declare function useKgSearch(formID?: string | null): {
1
+ import { ComputedRef } from 'vue';
2
+ import { VarProfileDetail } from '../../apis/WMS/models';
3
+ import { IRemoveEventListenerHandler } from '../../consts';
4
+ import { IKgTableRequestParameter } from '../KgTable';
5
+ import { IKgSearchReadyEventListener, IKgSearchResetEventListener, IKgSearchSearchEventListener, IKgSearchStore } from './index.store';
6
+ export declare type IUseKgSearch = {
7
+ /**
8
+ * 当前查询字段列表.
9
+ */
10
+ currentVarProfileDetails: ComputedRef<Array<VarProfileDetail>>;
11
+ /**
12
+ * 当前查询字段列表(可见的).
13
+ */
14
+ currentVarProfileDetailsForVisible: ComputedRef<Array<VarProfileDetail>>;
15
+ currentVarProfileMaster: ComputedRef<ReturnType<IKgSearchStore['getCurrentVarProfileMaster']>>;
16
+ /**
17
+ * 高级查询的操作符表单数据对象.
18
+ */
19
+ dynamicOperatorModel: ComputedRef<ReturnType<IKgSearchStore['getDynamicOperatorModel']>>;
20
+ /**
21
+ * 界面标识.
22
+ */
7
23
  formID: string;
8
- /** 状态数据. */
9
- store: import("pinia").Store<"KgSearch", {
10
- isReadyMap: Map<string, boolean>;
11
- modelMap: Map<string, Record<string, any>>;
12
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
13
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
14
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
15
- operatorModelMap: Map<string, Record<string, string>>;
16
- resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
17
- searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
18
- }, {
19
- /** 表单数据对象. */
20
- getIsReady(state: {
21
- isReadyMap: Map<string, boolean>;
22
- modelMap: Map<string, Record<string, any>>;
23
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
24
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
25
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
26
- operatorModelMap: Map<string, Record<string, string>>;
27
- resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
28
- searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
29
- } & import("pinia").PiniaCustomStateProperties<{
30
- isReadyMap: Map<string, boolean>;
31
- modelMap: Map<string, Record<string, any>>;
32
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
33
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
34
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
35
- operatorModelMap: Map<string, Record<string, string>>;
36
- resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
37
- searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
38
- }>): (formID: string | null | undefined) => boolean;
39
- getModel(state: {
40
- isReadyMap: Map<string, boolean>;
41
- modelMap: Map<string, Record<string, any>>;
42
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
43
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
44
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
45
- operatorModelMap: Map<string, Record<string, string>>;
46
- resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
47
- searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
48
- } & import("pinia").PiniaCustomStateProperties<{
49
- isReadyMap: Map<string, boolean>;
50
- modelMap: Map<string, Record<string, any>>;
51
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
52
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
53
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
54
- operatorModelMap: Map<string, Record<string, string>>;
55
- resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
56
- searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
57
- }>): (formID: string | null | undefined) => Record<string, any> | null;
58
- getOperatorModel(state: {
59
- isReadyMap: Map<string, boolean>;
60
- modelMap: Map<string, Record<string, any>>;
61
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
62
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
63
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
64
- operatorModelMap: Map<string, Record<string, string>>;
65
- resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
66
- searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
67
- } & import("pinia").PiniaCustomStateProperties<{
68
- isReadyMap: Map<string, boolean>;
69
- modelMap: Map<string, Record<string, any>>;
70
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
71
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
72
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
73
- operatorModelMap: Map<string, Record<string, string>>;
74
- resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
75
- searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
76
- }>): (formID: string | null | undefined) => Record<string, any> | null;
77
- getSearchFn(state: {
78
- isReadyMap: Map<string, boolean>;
79
- modelMap: Map<string, Record<string, any>>;
80
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
81
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
82
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
83
- operatorModelMap: Map<string, Record<string, string>>;
84
- resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
85
- searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
86
- } & import("pinia").PiniaCustomStateProperties<{
87
- isReadyMap: Map<string, boolean>;
88
- modelMap: Map<string, Record<string, any>>;
89
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
90
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
91
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
92
- operatorModelMap: Map<string, Record<string, string>>;
93
- resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
94
- searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
95
- }>): (formID: string | null | undefined) => import("./index.store").IKgSearchSearchFn | null;
96
- getResetFn(state: {
97
- isReadyMap: Map<string, boolean>;
98
- modelMap: Map<string, Record<string, any>>;
99
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
100
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
101
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
102
- operatorModelMap: Map<string, Record<string, string>>;
103
- resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
104
- searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
105
- } & import("pinia").PiniaCustomStateProperties<{
106
- isReadyMap: Map<string, boolean>;
107
- modelMap: Map<string, Record<string, any>>;
108
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
109
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
110
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
111
- operatorModelMap: Map<string, Record<string, string>>;
112
- resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
113
- searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
114
- }>): (formID: string | null | undefined) => import("./index.store").IKgSearchResetFn | null;
115
- }, {
116
- dispose(formID: string | null | undefined): void;
117
- addEventListener(formID: string, event: IKgSearchEvent, cb: import("./index.store").IKgSearchCb): void;
118
- removeEventListener(formID: string, event: IKgSearchEvent, cb?: import("./index.store").IKgSearchCb | undefined): void;
119
- emit(formID: string, event: IKgSearchEvent, param: IKgTableRequestParams): Promise<boolean>;
120
- setIsReady(formID: string | null | undefined, ready?: boolean | undefined): void;
121
- setModel(formID: string | null | undefined, model?: Record<string, any> | null | undefined): void;
122
- setOperatorModel(formID: string | null | undefined, model?: Record<string, any> | null | undefined): void;
123
- patchModel(formID: string | null | undefined, properties?: Record<string, any> | null | undefined): Promise<void>;
124
- patchOperatorModel(formID: string | null | undefined, properties?: Record<string, any> | null | undefined): Promise<void>;
125
- setSearchFn(formID: string | null | undefined, fn?: import("./index.store").IKgSearchSearchFn | null | undefined): void;
126
- setResetFn(formID: string | null | undefined, fn?: import("./index.store").IKgSearchResetFn | null | undefined): void;
127
- }>;
128
- isReady: import("vue").ComputedRef<boolean>;
129
- /** 表单数据对象. */
130
- model: import("vue").ComputedRef<Record<string, any> | null>;
131
- /** 高级查询的操作符表单数据对象. */
132
- operatorModel: import("vue").ComputedRef<Record<string, any> | null>;
133
- search: (args?: boolean | IKgTableRequestParams) => void;
134
- reset: () => void | undefined;
24
+ /**
25
+ * 表单数据对象.
26
+ */
27
+ formModel: ComputedRef<ReturnType<IKgSearchStore['getFormModel']>>;
28
+ /** 是否就绪: 查询字段初始完成, 组件渲染完成. */
29
+ isReady: ComputedRef<ReturnType<IKgSearchStore['getIsReady']>>;
30
+ /**
31
+ * 表单数据对象.
32
+ *
33
+ * @deprecated 请使用 {@link formModel}
34
+ */
35
+ model: ComputedRef<ReturnType<IKgSearchStore['getFormModel']>>;
135
36
  /**
136
37
  * 事件: ready, 查询字段初始完成, 组件渲染完成.
137
38
  * @param cb 回调函数.
138
39
  * @param once 是否只会触发一次. 默认为 undefined.
139
40
  */
140
- onReady: (cb: IKgSearchReadyCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
41
+ onReady(cb: IKgSearchReadyEventListener, once?: boolean): IRemoveEventListenerHandler;
141
42
  /**
142
- * 事件: search, 点击查询按钮, 并且表单验证通过.
43
+ * 事件: reset, 点击重置按钮.
143
44
  * @param cb 回调函数.
144
45
  * @param once 是否只会触发一次. 默认为 undefined.
145
46
  */
146
- onSearch: (cb: IKgSearchSearchCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
47
+ onReset(cb: IKgSearchResetEventListener, once?: boolean): IRemoveEventListenerHandler;
147
48
  /**
148
- * 事件: reset, 点击重置按钮.
49
+ * 事件: search, 点击查询按钮, 并且表单验证通过.
149
50
  * @param cb 回调函数.
150
51
  * @param once 是否只会触发一次. 默认为 undefined.
151
52
  */
152
- onReset: (cb: IKgSearchResetCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
53
+ onSearch(cb: IKgSearchSearchEventListener, once?: boolean): IRemoveEventListenerHandler;
54
+ /**
55
+ * 高级查询的操作符表单数据对象.
56
+ *
57
+ * @deprecated 请使用 {@link dynamicOperatorModel}
58
+ */
59
+ operatorModel: ComputedRef<ReturnType<IKgSearchStore['getDynamicOperatorModel']>>;
60
+ /** 重置. */
61
+ reset(): void;
62
+ /** 查询. */
63
+ search(param?: boolean | IKgTableRequestParameter): void;
64
+ /**
65
+ * 状态数据.
66
+ */
67
+ store: IKgSearchStore;
153
68
  };
69
+ /**
70
+ * @param formID 界面标识.
71
+ */
72
+ export declare function useKgSearch(formID?: string | null): IUseKgSearch;