@kengic/vue 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +7857 -6588
  3. package/dist/src/apis/WMS/models.d.ts +59 -1
  4. package/dist/src/components/KgButton/{KgButton.Other.d.ts → KgButton.Item.d.ts} +8 -11
  5. package/dist/src/components/KgButton/{index.vm.d.ts → KgButton.Item.data.d.ts} +1 -2
  6. package/dist/src/components/KgButton/KgButton.d.ts +10 -32
  7. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +30 -0
  8. package/dist/src/components/KgButton/{KgButton.Export.d.ts → components/KgButton.Create.d.ts} +8 -10
  9. package/dist/src/components/KgButton/{KgButton.Delete.d.ts → components/KgButton.Delete.d.ts} +5 -9
  10. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +28 -0
  11. package/dist/src/components/KgButton/{KgButton.Import.d.ts → components/KgButton.Import.d.ts} +4 -6
  12. package/dist/src/components/KgButton/components/KgButton.Other.d.ts +33 -0
  13. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +31 -0
  14. package/dist/src/components/KgButton/{KgButton.Copy.d.ts → components/KgButton.Update.d.ts} +4 -6
  15. package/dist/src/components/KgButton/index.d.ts +58 -3
  16. package/dist/src/components/KgButton/index.hooks.d.ts +13 -0
  17. package/dist/src/components/KgButton/index.store.d.ts +40 -0
  18. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +3 -9
  19. package/dist/src/components/KgForm.Item/{KgForm.Item.Date.d.ts → components/KgForm.Item.Date.d.ts} +11 -11
  20. package/dist/src/components/KgForm.Item/{KgForm.Item.Input.d.ts → components/KgForm.Item.Input.d.ts} +11 -11
  21. package/dist/src/components/KgForm.Item/{KgForm.Item.InputNumber.d.ts → components/KgForm.Item.InputNumber.d.ts} +11 -11
  22. package/dist/src/components/KgForm.Item/{KgForm.Item.Select.d.ts → components/KgForm.Item.Select.d.ts} +15 -13
  23. package/dist/src/components/KgForm.Item/{KgForm.Item.Switch.d.ts → components/KgForm.Item.Switch.d.ts} +11 -11
  24. package/dist/src/components/KgModal/KgModal.d.ts +20 -2
  25. package/dist/src/components/KgModal/index.vm.d.ts +10 -0
  26. package/dist/src/components/KgProgressA/KgProgressA.d.ts +1 -1
  27. package/dist/src/components/KgProgressA/index.d.ts +1 -1
  28. package/dist/src/components/KgResizable/KgResizable.d.ts +4 -4
  29. package/dist/src/components/KgSearch/KgSearch.d.ts +5 -57
  30. package/dist/src/components/KgSearch/KgSearch.data.d.ts +5 -2
  31. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.CreateModal.d.ts +20 -0
  32. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.CreateModal.data.d.ts +4 -0
  33. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +20 -0
  34. package/dist/src/components/KgSearch/index.d.ts +1 -1
  35. package/dist/src/components/KgSearch/index.hooks.d.ts +10 -9
  36. package/dist/src/components/KgSearch/index.store.d.ts +4 -4
  37. package/dist/src/components/KgSearch/index.vm.d.ts +1 -0
  38. package/dist/src/components/KgTable/KgTable.d.ts +1 -1
  39. package/dist/src/components/KgTable/{KgTable.Cell.d.ts → components/KgTable.Cell.d.ts} +3 -3
  40. package/dist/src/components/KgTable/components/KgTable.Setting.d.ts +6 -0
  41. package/dist/src/components/KgTable/index.d.ts +1 -1
  42. package/dist/src/components/KgTable/index.hooks.d.ts +7 -6
  43. package/dist/src/components/KgTable/index.store.d.ts +8 -8
  44. package/dist/src/components/KgTable/index.vm.d.ts +17 -0
  45. package/dist/src/components/KgVar/KgVar.d.ts +5 -20
  46. package/dist/src/components/KgVar/index.d.ts +1 -1
  47. package/dist/src/components/KgVar/index.store.d.ts +15 -6
  48. package/dist/src/components/KgVar/index.store.service.d.ts +11 -0
  49. package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +2 -0
  50. package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +17 -0
  51. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +33 -0
  52. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.d.ts +3 -0
  53. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.data.d.ts +3 -0
  54. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +3 -0
  55. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +3 -0
  56. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +3 -0
  57. package/dist/src/components/KgVarConfig/index.d.ts +2 -0
  58. package/dist/src/components/KgVarConfig/index.store.d.ts +20 -0
  59. package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +1 -1
  60. package/dist/src/components/KgYesOrNo/index.d.ts +1 -1
  61. package/dist/src/components/index.d.ts +6 -3
  62. package/dist/src/config/setup.d.ts +4 -4
  63. package/dist/src/consts/i18n/en.d.ts +32 -0
  64. package/dist/src/consts/i18n/index.d.ts +63 -0
  65. package/dist/src/consts/i18n/zh_CN.d.ts +31 -0
  66. package/dist/src/consts/index.vm.d.ts +2 -0
  67. package/dist/src/utils/kg.util.d.ts +8 -2
  68. package/dist/src/utils/logger.util.d.ts +3 -3
  69. package/package.json +1 -1
  70. package/dist/src/components/KgButton/KgButton.Create.d.ts +0 -32
  71. package/dist/src/components/KgButton/KgButton.Search.d.ts +0 -33
  72. package/dist/src/components/KgButton/KgButton.Update.d.ts +0 -32
  73. package/dist/src/components/KgButton/KgButtons.d.ts +0 -22
  74. package/dist/src/components/KgTable/KgTable.Setting.d.ts +0 -22
  75. /package/dist/src/components/KgModal/{KgModal.Close.d.ts → components/KgModal.Close.d.ts} +0 -0
  76. /package/dist/src/components/KgTable/{KgTable.Info.d.ts → components/KgTable.Info.d.ts} +0 -0
@@ -113,6 +113,8 @@ export declare class VarDTO {
113
113
  varPossibilities?: Array<VarPossibility> | null;
114
114
  /** 表格. */
115
115
  varProfile?: VarProfileDTO | null;
116
+ /** 查询条件配置. */
117
+ varProfileConfig?: VarProfileConfig | null;
116
118
  /** 提交字段. */
117
119
  varSubmitFields?: Array<VarSubmitField> | null;
118
120
  constructor(obj?: VarDTO);
@@ -137,6 +139,10 @@ export declare class VarGridConfig {
137
139
  pg_size_opt?: number | null;
138
140
  /** 所有分页下拉选项(PageSizeOptions). */
139
141
  pg_size_opts?: string | null;
142
+ /** 是否显示表格底部左侧. */
143
+ show_bottom_left_flg?: number | null;
144
+ /** 是否显示表格底部右侧. */
145
+ show_bottom_right_flg?: number | null;
140
146
  /** 是否显示勾选框列(ShowCheckColumnFlag). */
141
147
  show_check_column_flg?: number | null;
142
148
  constructor(obj?: VarGridConfig);
@@ -149,8 +155,10 @@ export declare class VarGridDTO {
149
155
  }
150
156
  /** 表格视图明细. */
151
157
  export declare class VarGridDetail {
152
- /** 显示类型(DisplayType). */
158
+ /** 显示类型. */
153
159
  display_type?: string | null;
160
+ /** 显示类型的参数. */
161
+ display_type_properties?: string | null;
154
162
  /** 是否显示省略号(EllipsisFlag). */
155
163
  ellipsis_flg?: number | null;
156
164
  /** 是否固定到左侧(FixToLeftFlag). */
@@ -180,6 +188,24 @@ export declare class VarGridDetail {
180
188
  constructor(obj?: VarGridDetail);
181
189
  }
182
190
  /** 表格视图. */
191
+ export declare class VarGridMaster {
192
+ /** 定制级别(CustomLevel). */
193
+ cust_lvl?: number | null;
194
+ /** 是否默认显示(DefaultFlag). */
195
+ def_flg?: number | null;
196
+ /** 界面标识(FormID). */
197
+ frm_id?: string | null;
198
+ /** 视图变量名称(GridVariableName). */
199
+ grd_var_nam?: string | null;
200
+ /** 分组(GroupName). */
201
+ grp_nam?: string | null;
202
+ /** 主键. */
203
+ id?: string | null;
204
+ /** 用户(UserID). */
205
+ usr_id?: string | null;
206
+ constructor(obj?: VarGridMaster);
207
+ }
208
+ /** 表格视图. */
183
209
  export declare class VarGridMasterDTO {
184
210
  /** 定制级别(CustomLevel). */
185
211
  cust_lvl?: number | null;
@@ -253,6 +279,18 @@ export declare class VarPossibility {
253
279
  var_nam?: string | null;
254
280
  constructor(obj?: VarPossibility);
255
281
  }
282
+ /** 查询条件配置. */
283
+ export declare class VarProfileConfig {
284
+ /** 界面标识(FormID). */
285
+ frm_id?: string | null;
286
+ /** 是否将头部放到页面顶部的导航栏中(HeaderTeleportFlag). */
287
+ header_teleport_flg?: number | null;
288
+ /** 主键. */
289
+ id?: string | null;
290
+ /** 是否显示(VisibleFlag). */
291
+ vis_flg?: number | null;
292
+ constructor(obj?: VarProfileConfig);
293
+ }
256
294
  /** 查询条件. */
257
295
  export declare class VarProfileDTO {
258
296
  /** 查询条件列表. */
@@ -292,6 +330,26 @@ export declare class VarProfileDetail {
292
330
  constructor(obj?: VarProfileDetail);
293
331
  }
294
332
  /** 查询条件. */
333
+ export declare class VarProfileMaster {
334
+ /** 定制级别(CustomLevel). */
335
+ cust_lvl?: number | null;
336
+ /** 是否默认(DefaultFlag). */
337
+ def_flg?: number | null;
338
+ /** 是否启用高级查询(DynamicQueryFlag). */
339
+ dyn_flg?: number | null;
340
+ /** 界面标识(FormID). */
341
+ frm_id?: string | null;
342
+ /** 分组(GroupName). */
343
+ grp_nam?: string | null;
344
+ /** 主键 */
345
+ id?: string | null;
346
+ /** 查询条件变量名称(ProfileVariableName). */
347
+ prf_var_nam?: string | null;
348
+ /** 用户(UserID). */
349
+ usr_id?: string | null;
350
+ constructor(obj?: VarProfileMaster);
351
+ }
352
+ /** 查询条件. */
295
353
  export declare class VarProfileMasterDTO {
296
354
  /** 定制级别(CustomLevel). */
297
355
  cust_lvl?: number | null;
@@ -1,33 +1,30 @@
1
- import { KG_BTN_COLOR } from '../../consts';
1
+ import './KgButton.Item.less';
2
+ import { KG_BTN_COLOR, KG_BTN_TYPE } from '../../consts';
2
3
  declare const _default: import("vue").DefineComponent<{
3
4
  kgVarName: import("vue").PropType<string | null>;
4
- kgType: import("vue").PropType<import("../../consts").KG_BTN_TYPE | null>;
5
+ kgType: import("vue").PropType<KG_BTN_TYPE | null>;
5
6
  kgPrimary: {
6
7
  type: import("vue").PropType<boolean | null | undefined>;
7
8
  default: undefined;
8
- }; /** 渲染图标. */
9
+ };
9
10
  kgIcon: import("vue").PropType<string | null>;
10
11
  kgText: import("vue").PropType<string | null>;
11
12
  kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
12
13
  kgDisabled: import("vue").PropType<boolean | null | undefined>;
13
14
  onKgClick: import("vue").PropType<(args?: any) => boolean>;
14
- onKgDelete: import("vue").PropType<() => void>;
15
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClick"[], "kgClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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
  kgVarName: import("vue").PropType<string | null>;
17
- kgType: import("vue").PropType<import("../../consts").KG_BTN_TYPE | null>;
17
+ kgType: import("vue").PropType<KG_BTN_TYPE | null>;
18
18
  kgPrimary: {
19
19
  type: import("vue").PropType<boolean | null | undefined>;
20
20
  default: undefined;
21
- }; /** 渲染图标. */
21
+ };
22
22
  kgIcon: import("vue").PropType<string | null>;
23
23
  kgText: import("vue").PropType<string | null>;
24
24
  kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
25
25
  kgDisabled: import("vue").PropType<boolean | null | undefined>;
26
26
  onKgClick: import("vue").PropType<(args?: any) => boolean>;
27
- onKgDelete: import("vue").PropType<() => void>;
28
- }>> & {
29
- onKgClick?: ((...args: any[]) => any) | undefined;
30
- }, {
27
+ }>>, {
31
28
  kgPrimary: boolean | null | undefined;
32
29
  }>;
33
30
  export default _default;
@@ -19,6 +19,5 @@ export declare const getProps: () => {
19
19
  /** 是否禁用. */
20
20
  kgDisabled: PropType<boolean | null | undefined>;
21
21
  onKgClick: PropType<(args?: any) => boolean>;
22
- onKgDelete: PropType<() => void>;
23
22
  };
24
- export declare type KgButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
23
+ export declare type IKgButtonItemProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
@@ -1,35 +1,13 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { VarButton } from '../../apis/WMS/models';
1
3
  import './KgButton.less';
2
- import { KG_BTN_COLOR, KG_BTN_TYPE } from '../../consts';
4
+ export declare const getProps: () => {
5
+ kgDisabled: PropType<(button: VarButton) => boolean>;
6
+ };
7
+ export declare type IKgButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
3
8
  declare const _default: import("vue").DefineComponent<{
4
- kgVarName: import("vue").PropType<string | null>;
5
- kgType: import("vue").PropType<KG_BTN_TYPE | null>;
6
- kgPrimary: {
7
- type: import("vue").PropType<boolean | null | undefined>;
8
- default: undefined;
9
- };
10
- kgIcon: import("vue").PropType<string | null>;
11
- kgText: import("vue").PropType<string | null>;
12
- kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
13
- kgDisabled: import("vue").PropType<boolean | null | undefined>;
14
- onKgClick: import("vue").PropType<(args?: any) => boolean>;
15
- onKgDelete: import("vue").PropType<() => void>;
16
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgClick" | "kgDelete")[], "kgClick" | "kgDelete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
- kgVarName: import("vue").PropType<string | null>;
18
- kgType: import("vue").PropType<KG_BTN_TYPE | null>;
19
- kgPrimary: {
20
- type: import("vue").PropType<boolean | null | undefined>;
21
- default: undefined;
22
- };
23
- kgIcon: import("vue").PropType<string | null>;
24
- kgText: import("vue").PropType<string | null>;
25
- kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
26
- kgDisabled: import("vue").PropType<boolean | null | undefined>;
27
- onKgClick: import("vue").PropType<(args?: any) => boolean>;
28
- onKgDelete: import("vue").PropType<() => void>;
29
- }>> & {
30
- onKgClick?: ((...args: any[]) => any) | undefined;
31
- onKgDelete?: ((...args: any[]) => any) | undefined;
32
- }, {
33
- kgPrimary: boolean | null | undefined;
34
- }>;
9
+ kgDisabled: PropType<(button: VarButton) => boolean>;
10
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
11
+ kgDisabled: PropType<(button: VarButton) => boolean>;
12
+ }>>, {}>;
35
13
  export default _default;
@@ -0,0 +1,30 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ kgVarName: import("vue").PropType<string | null>;
3
+ kgType: import("vue").PropType<import("../../..").KG_BTN_TYPE | null>;
4
+ kgPrimary: {
5
+ type: import("vue").PropType<boolean | null | undefined>;
6
+ /** 点击按钮. */
7
+ default: undefined;
8
+ };
9
+ kgIcon: import("vue").PropType<string | null>;
10
+ kgText: import("vue").PropType<string | null>; /** 点击按钮. */
11
+ kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
12
+ kgDisabled: import("vue").PropType<boolean | null | undefined>;
13
+ onKgClick: import("vue").PropType<(args?: any) => boolean>;
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
+ kgVarName: import("vue").PropType<string | null>;
16
+ kgType: import("vue").PropType<import("../../..").KG_BTN_TYPE | null>;
17
+ kgPrimary: {
18
+ type: import("vue").PropType<boolean | null | undefined>;
19
+ /** 点击按钮. */
20
+ default: undefined;
21
+ };
22
+ kgIcon: import("vue").PropType<string | null>;
23
+ kgText: import("vue").PropType<string | null>; /** 点击按钮. */
24
+ kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
25
+ kgDisabled: import("vue").PropType<boolean | null | undefined>;
26
+ onKgClick: import("vue").PropType<(args?: any) => boolean>;
27
+ }>>, {
28
+ kgPrimary: boolean | null | undefined;
29
+ }>;
30
+ export default _default;
@@ -1,32 +1,30 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  kgVarName: import("vue").PropType<string | null>;
3
- kgType: import("vue").PropType<import("../..").KG_BTN_TYPE | null>;
3
+ kgType: import("vue").PropType<import("../../..").KG_BTN_TYPE | null>;
4
4
  kgPrimary: {
5
5
  type: import("vue").PropType<boolean | null | undefined>;
6
6
  default: undefined;
7
7
  };
8
+ /** 点击按钮. */
8
9
  kgIcon: import("vue").PropType<string | null>;
9
10
  kgText: import("vue").PropType<string | null>;
10
- kgColor: import("vue").PropType<import("../..").KG_BTN_COLOR | null>;
11
+ kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
11
12
  kgDisabled: import("vue").PropType<boolean | null | undefined>;
12
13
  onKgClick: import("vue").PropType<(args?: any) => boolean>;
13
- onKgDelete: import("vue").PropType<() => void>;
14
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClick"[], "kgClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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
15
  kgVarName: import("vue").PropType<string | null>;
16
- kgType: import("vue").PropType<import("../..").KG_BTN_TYPE | null>;
16
+ kgType: import("vue").PropType<import("../../..").KG_BTN_TYPE | null>;
17
17
  kgPrimary: {
18
18
  type: import("vue").PropType<boolean | null | undefined>;
19
19
  default: undefined;
20
20
  };
21
+ /** 点击按钮. */
21
22
  kgIcon: import("vue").PropType<string | null>;
22
23
  kgText: import("vue").PropType<string | null>;
23
- kgColor: import("vue").PropType<import("../..").KG_BTN_COLOR | null>;
24
+ kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
24
25
  kgDisabled: import("vue").PropType<boolean | null | undefined>;
25
26
  onKgClick: import("vue").PropType<(args?: any) => boolean>;
26
- onKgDelete: import("vue").PropType<() => void>;
27
- }>> & {
28
- onKgClick?: ((...args: any[]) => any) | undefined;
29
- }, {
27
+ }>>, {
30
28
  kgPrimary: boolean | null | undefined;
31
29
  }>;
32
30
  export default _default;
@@ -1,7 +1,7 @@
1
- import { KG_BTN_COLOR } from '../../consts';
1
+ import { KG_BTN_COLOR } from '../../../consts';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  kgVarName: import("vue").PropType<string | null>;
4
- kgType: import("vue").PropType<import("../../consts").KG_BTN_TYPE | null>;
4
+ kgType: import("vue").PropType<import("../../../consts").KG_BTN_TYPE | null>;
5
5
  kgPrimary: {
6
6
  type: import("vue").PropType<boolean | null | undefined>;
7
7
  default: undefined;
@@ -11,10 +11,9 @@ declare const _default: import("vue").DefineComponent<{
11
11
  kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
12
12
  kgDisabled: import("vue").PropType<boolean | null | undefined>;
13
13
  onKgClick: import("vue").PropType<(args?: any) => boolean>;
14
- onKgDelete: import("vue").PropType<() => void>;
15
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgDelete"[], "kgDelete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
15
  kgVarName: import("vue").PropType<string | null>;
17
- kgType: import("vue").PropType<import("../../consts").KG_BTN_TYPE | null>;
16
+ kgType: import("vue").PropType<import("../../../consts").KG_BTN_TYPE | null>;
18
17
  kgPrimary: {
19
18
  type: import("vue").PropType<boolean | null | undefined>;
20
19
  default: undefined;
@@ -24,10 +23,7 @@ declare const _default: import("vue").DefineComponent<{
24
23
  kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
25
24
  kgDisabled: import("vue").PropType<boolean | null | undefined>;
26
25
  onKgClick: import("vue").PropType<(args?: any) => boolean>;
27
- onKgDelete: import("vue").PropType<() => void>;
28
- }>> & {
29
- onKgDelete?: ((...args: any[]) => any) | undefined;
30
- }, {
26
+ }>>, {
31
27
  kgPrimary: boolean | null | undefined;
32
28
  }>;
33
29
  export default _default;
@@ -0,0 +1,28 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ kgVarName: import("vue").PropType<string | null>;
3
+ kgType: import("vue").PropType<import("../../..").KG_BTN_TYPE | null>;
4
+ kgPrimary: {
5
+ type: import("vue").PropType<boolean | null | undefined>;
6
+ default: undefined;
7
+ };
8
+ kgIcon: import("vue").PropType<string | null>;
9
+ kgText: import("vue").PropType<string | null>; /** 点击按钮. */
10
+ kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
11
+ kgDisabled: import("vue").PropType<boolean | null | undefined>;
12
+ onKgClick: import("vue").PropType<(args?: any) => boolean>;
13
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ kgVarName: import("vue").PropType<string | null>;
15
+ kgType: import("vue").PropType<import("../../..").KG_BTN_TYPE | null>;
16
+ kgPrimary: {
17
+ type: import("vue").PropType<boolean | null | undefined>;
18
+ default: undefined;
19
+ };
20
+ kgIcon: import("vue").PropType<string | null>;
21
+ kgText: import("vue").PropType<string | null>; /** 点击按钮. */
22
+ kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
23
+ kgDisabled: import("vue").PropType<boolean | null | undefined>;
24
+ onKgClick: import("vue").PropType<(args?: any) => boolean>;
25
+ }>>, {
26
+ kgPrimary: boolean | null | undefined;
27
+ }>;
28
+ export default _default;
@@ -1,29 +1,27 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  kgVarName: import("vue").PropType<string | null>;
3
- kgType: import("vue").PropType<import("../..").KG_BTN_TYPE | null>;
3
+ kgType: import("vue").PropType<import("../../..").KG_BTN_TYPE | null>;
4
4
  kgPrimary: {
5
5
  type: import("vue").PropType<boolean | null | undefined>;
6
6
  default: undefined;
7
7
  };
8
8
  kgIcon: import("vue").PropType<string | null>;
9
9
  kgText: import("vue").PropType<string | null>;
10
- kgColor: import("vue").PropType<import("../..").KG_BTN_COLOR | null>;
10
+ kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
11
11
  kgDisabled: import("vue").PropType<boolean | null | undefined>;
12
12
  onKgClick: import("vue").PropType<(args?: any) => boolean>;
13
- onKgDelete: import("vue").PropType<() => void>;
14
13
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClick"[], "kgClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
14
  kgVarName: import("vue").PropType<string | null>;
16
- kgType: import("vue").PropType<import("../..").KG_BTN_TYPE | null>;
15
+ kgType: import("vue").PropType<import("../../..").KG_BTN_TYPE | null>;
17
16
  kgPrimary: {
18
17
  type: import("vue").PropType<boolean | null | undefined>;
19
18
  default: undefined;
20
19
  };
21
20
  kgIcon: import("vue").PropType<string | null>;
22
21
  kgText: import("vue").PropType<string | null>;
23
- kgColor: import("vue").PropType<import("../..").KG_BTN_COLOR | null>;
22
+ kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
24
23
  kgDisabled: import("vue").PropType<boolean | null | undefined>;
25
24
  onKgClick: import("vue").PropType<(args?: any) => boolean>;
26
- onKgDelete: import("vue").PropType<() => void>;
27
25
  }>> & {
28
26
  onKgClick?: ((...args: any[]) => any) | undefined;
29
27
  }, {
@@ -0,0 +1,33 @@
1
+ import { KG_BTN_COLOR } from '../../../consts';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ kgVarName: import("vue").PropType<string | null>;
4
+ kgType: import("vue").PropType<import("../../../consts").KG_BTN_TYPE | null>;
5
+ kgPrimary: {
6
+ type: import("vue").PropType<boolean | null | undefined>;
7
+ /** 点击按钮. */
8
+ default: undefined;
9
+ };
10
+ /** 点击按钮. */
11
+ kgIcon: import("vue").PropType<string | null>;
12
+ kgText: import("vue").PropType<string | null>;
13
+ kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
14
+ kgDisabled: import("vue").PropType<boolean | null | undefined>;
15
+ onKgClick: import("vue").PropType<(args?: any) => boolean>; /** 渲染图标. */
16
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ kgVarName: import("vue").PropType<string | null>;
18
+ kgType: import("vue").PropType<import("../../../consts").KG_BTN_TYPE | null>;
19
+ kgPrimary: {
20
+ type: import("vue").PropType<boolean | null | undefined>;
21
+ /** 点击按钮. */
22
+ default: undefined;
23
+ };
24
+ /** 点击按钮. */
25
+ kgIcon: import("vue").PropType<string | null>;
26
+ kgText: import("vue").PropType<string | null>;
27
+ kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
28
+ kgDisabled: import("vue").PropType<boolean | null | undefined>;
29
+ onKgClick: import("vue").PropType<(args?: any) => boolean>; /** 渲染图标. */
30
+ }>>, {
31
+ kgPrimary: boolean | null | undefined;
32
+ }>;
33
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { KG_BTN_COLOR } from '../../../consts';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ kgVarName: import("vue").PropType<string | null>;
4
+ kgType: import("vue").PropType<import("../../../consts").KG_BTN_TYPE | null>;
5
+ kgPrimary: {
6
+ type: import("vue").PropType<boolean | null | undefined>;
7
+ default: undefined;
8
+ };
9
+ kgIcon: import("vue").PropType<string | null>;
10
+ /** 点击按钮. */
11
+ kgText: import("vue").PropType<string | null>;
12
+ kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
13
+ kgDisabled: import("vue").PropType<boolean | null | undefined>;
14
+ onKgClick: import("vue").PropType<(args?: any) => boolean>;
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
+ kgVarName: import("vue").PropType<string | null>;
17
+ kgType: import("vue").PropType<import("../../../consts").KG_BTN_TYPE | null>;
18
+ kgPrimary: {
19
+ type: import("vue").PropType<boolean | null | undefined>;
20
+ default: undefined;
21
+ };
22
+ kgIcon: import("vue").PropType<string | null>;
23
+ /** 点击按钮. */
24
+ kgText: import("vue").PropType<string | null>;
25
+ kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
26
+ kgDisabled: import("vue").PropType<boolean | null | undefined>;
27
+ onKgClick: import("vue").PropType<(args?: any) => boolean>;
28
+ }>>, {
29
+ kgPrimary: boolean | null | undefined;
30
+ }>;
31
+ export default _default;
@@ -1,29 +1,27 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  kgVarName: import("vue").PropType<string | null>;
3
- kgType: import("vue").PropType<import("../..").KG_BTN_TYPE | null>;
3
+ kgType: import("vue").PropType<import("../../..").KG_BTN_TYPE | null>;
4
4
  kgPrimary: {
5
5
  type: import("vue").PropType<boolean | null | undefined>;
6
6
  default: undefined;
7
7
  };
8
8
  kgIcon: import("vue").PropType<string | null>;
9
9
  kgText: import("vue").PropType<string | null>;
10
- kgColor: import("vue").PropType<import("../..").KG_BTN_COLOR | null>;
10
+ kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
11
11
  kgDisabled: import("vue").PropType<boolean | null | undefined>;
12
12
  onKgClick: import("vue").PropType<(args?: any) => boolean>;
13
- onKgDelete: import("vue").PropType<() => void>;
14
13
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClick"[], "kgClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
14
  kgVarName: import("vue").PropType<string | null>;
16
- kgType: import("vue").PropType<import("../..").KG_BTN_TYPE | null>;
15
+ kgType: import("vue").PropType<import("../../..").KG_BTN_TYPE | null>;
17
16
  kgPrimary: {
18
17
  type: import("vue").PropType<boolean | null | undefined>;
19
18
  default: undefined;
20
19
  };
21
20
  kgIcon: import("vue").PropType<string | null>;
22
21
  kgText: import("vue").PropType<string | null>;
23
- kgColor: import("vue").PropType<import("../..").KG_BTN_COLOR | null>;
22
+ kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
24
23
  kgDisabled: import("vue").PropType<boolean | null | undefined>;
25
24
  onKgClick: import("vue").PropType<(args?: any) => boolean>;
26
- onKgDelete: import("vue").PropType<() => void>;
27
25
  }>> & {
28
26
  onKgClick?: ((...args: any[]) => any) | undefined;
29
27
  }, {
@@ -1,3 +1,58 @@
1
- export { default as KgButton } from './KgButton';
2
- export { default as KgButtons, type KgButtonsProps } from './KgButtons';
3
- export { type KgButtonProps } from './index.vm';
1
+ import { default as KgButtonItem } from './KgButton.Item';
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
7
+ kgDisabled: import("vue").PropType<(button: import("../..").VarButton) => boolean>;
8
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
9
+ $attrs: {
10
+ [x: string]: unknown;
11
+ };
12
+ $refs: {
13
+ [x: string]: unknown;
14
+ };
15
+ $slots: Readonly<{
16
+ [name: string]: import("vue").Slot | undefined;
17
+ }>;
18
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
19
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
20
+ $emit: (event: string, ...args: any[]) => void;
21
+ $el: any;
22
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
23
+ kgDisabled: import("vue").PropType<(button: import("../..").VarButton) => boolean>;
24
+ }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
25
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
26
+ created?: ((() => void) | (() => void)[]) | undefined;
27
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
28
+ mounted?: ((() => void) | (() => void)[]) | undefined;
29
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
30
+ updated?: ((() => void) | (() => void)[]) | undefined;
31
+ activated?: ((() => void) | (() => void)[]) | undefined;
32
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
33
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
34
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
35
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
36
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
37
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
38
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
39
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
40
+ };
41
+ $forceUpdate: () => void;
42
+ $nextTick: typeof import("vue").nextTick;
43
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
44
+ } & Readonly<import("vue").ExtractPropTypes<{
45
+ kgDisabled: import("vue").PropType<(button: import("../..").VarButton) => boolean>;
46
+ }>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
47
+ __isFragment?: undefined;
48
+ __isTeleport?: undefined;
49
+ __isSuspense?: undefined;
50
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
51
+ kgDisabled: import("vue").PropType<(button: import("../..").VarButton) => boolean>;
52
+ }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
53
+ Item: typeof KgButtonItem;
54
+ };
55
+ export default _default;
56
+ export { type IKgButtonProps } from './KgButton';
57
+ export * from './index.hooks';
58
+ export * from './index.store';
@@ -0,0 +1,13 @@
1
+ import { IKgButtonClickCb, IKgButtonStore } from './index.store';
2
+ import { IRemoveEventListenerHandler } from '../../consts/index.vm';
3
+ export declare type IUseKgButton = {
4
+ formID: string;
5
+ /** 状态数据. */
6
+ store: IKgButtonStore;
7
+ /** 监听事件: 点击按钮. */
8
+ onClick(cb: IKgButtonClickCb): IRemoveEventListenerHandler;
9
+ };
10
+ /**
11
+ * @param formID 界面标识.
12
+ */
13
+ export declare function useKgButton(formID?: string): IUseKgButton;
@@ -0,0 +1,40 @@
1
+ import { StoreDefinition } from 'pinia';
2
+ import { VarButton } from '../../apis/WMS/models';
3
+ /**
4
+ * 事件类型.
5
+ * 'click': 点击按钮
6
+ */
7
+ export declare type IKgButtonEvent = 'click';
8
+ /** 事件监听函数: 点击按钮. */
9
+ export declare type IKgButtonClickCb = (button: VarButton) => boolean;
10
+ export declare type IKgButtonCb = IKgButtonClickCb;
11
+ export interface IKgButtonState {
12
+ clickListenersMap: Map<string, Array<IKgButtonClickCb>>;
13
+ }
14
+ export declare type IKgButtonStoreDefinition = StoreDefinition<'KgButton', IKgButtonState, {
15
+ getClickListeners(): (formID?: string | null) => Array<IKgButtonClickCb> | null;
16
+ }, {
17
+ /**
18
+ * 注册事件监听.
19
+ * @param formID 界面标识.
20
+ * @param event 事件名称.
21
+ * @param cb 回调函数.
22
+ */
23
+ addEventListener(formID: string, event: IKgButtonEvent, cb: IKgButtonCb): void;
24
+ /**
25
+ * 退订事件监听.
26
+ * @param formID 界面标识.
27
+ * @param event 事件名称.
28
+ * @param cb 回调函数.
29
+ */
30
+ removeEventListener(formID: string, event: IKgButtonEvent, cb?: IKgButtonCb): void;
31
+ /**
32
+ * 触发事件.
33
+ * @param formID 界面标识.
34
+ * @param event 事件名称.
35
+ * @param args 数据.
36
+ */
37
+ emit(formID: string, event: IKgButtonEvent, args?: any | null): boolean;
38
+ }>;
39
+ export declare type IKgButtonStore = ReturnType<IKgButtonStoreDefinition>;
40
+ export declare const useKgButtonStore: () => IKgButtonStoreDefinition;
@@ -4,25 +4,19 @@ import { IKgTableRecord } from '../../KgTable';
4
4
  export declare const getProps: () => {
5
5
  visible: PropType<boolean>;
6
6
  'onUpdate:visible': PropType<(value: boolean) => void>;
7
- /**
8
- * 确定.
9
- */
7
+ /** 确定. */
10
8
  onKgOk: PropType<(value: any | Array<any>, record: IKgTableRecord | Array<IKgTableRecord>) => void>;
11
9
  };
12
10
  export declare type IProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
13
11
  declare const _default: import("vue").DefineComponent<{
14
12
  visible: PropType<boolean>;
15
13
  'onUpdate:visible': PropType<(value: boolean) => void>;
16
- /**
17
- * 确定.
18
- */
14
+ /** 确定. */
19
15
  onKgOk: PropType<(value: any, record: IKgTableRecord<{}> | IKgTableRecord<{}>[]) => void>;
20
16
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "kgOk")[], "update:visible" | "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
21
17
  visible: PropType<boolean>;
22
18
  'onUpdate:visible': PropType<(value: boolean) => void>;
23
- /**
24
- * 确定.
25
- */
19
+ /** 确定. */
26
20
  onKgOk: PropType<(value: any, record: IKgTableRecord<{}> | IKgTableRecord<{}>[]) => void>;
27
21
  }>> & {
28
22
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;