@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
@@ -27,7 +27,7 @@ export declare type IKgSearchCb = IKgSearchSearchCb | IKgSearchResetCb | IKgSear
27
27
  export declare type IKgSearchSearchFn = (resetPageIndex?: boolean) => boolean;
28
28
  /** 重置方法. */
29
29
  export declare type IKgSearchResetFn = () => void;
30
- export interface KgSearchState {
30
+ export interface IKgSearchState {
31
31
  /** 是否准备就绪: 查询字段初始完成, 查询组件渲染完成. */
32
32
  isReadyMap: Map<string, boolean>;
33
33
  /** 表单数据对象. */
@@ -43,7 +43,7 @@ export interface KgSearchState {
43
43
  /** 重置方法, 可供外部调用, 用来触发重置操作. */
44
44
  resetFnMap: Map<string, IKgSearchResetFn>;
45
45
  }
46
- export declare type KgSearchStoreDefinition = StoreDefinition<'KgSearch', KgSearchState, {
46
+ export declare type IKgSearchStoreDefinition = StoreDefinition<'KgSearch', IKgSearchState, {
47
47
  getIsReady(): (formID?: string | null) => boolean;
48
48
  getModel(): (formID?: string | null) => Record<string, any> | null;
49
49
  getSearchFn(): (formID?: string | null) => IKgSearchSearchFn | null;
@@ -75,5 +75,5 @@ export declare type KgSearchStoreDefinition = StoreDefinition<'KgSearch', KgSear
75
75
  */
76
76
  emit(formID: string, event: IKgSearchEvent, args?: IKgSearchEventArgs): void;
77
77
  }>;
78
- export declare type KgSearchStore = ReturnType<KgSearchStoreDefinition>;
79
- export declare const useKgSearchStore: () => KgSearchStoreDefinition;
78
+ export declare type IKgSearchStore = ReturnType<IKgSearchStoreDefinition>;
79
+ export declare const useKgSearchStore: () => IKgSearchStoreDefinition;
@@ -0,0 +1 @@
1
+ export declare const FORM_ID = "kg-search-config-modal";
@@ -4,7 +4,7 @@ export declare const getProps: () => {
4
4
  /** 查询条件的界面标识. 表格可能没有自己的查询条件, 而是用的别人的查询条件, 比如多个表格公用一个查询条件, 此时可以传入该参数. */
5
5
  kgSearchFormID: PropType<string | null>;
6
6
  };
7
- export declare type KgTableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
7
+ export declare type IKgTableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
8
8
  declare const _default: import("vue").DefineComponent<{
9
9
  /** 查询条件的界面标识. 表格可能没有自己的查询条件, 而是用的别人的查询条件, 比如多个表格公用一个查询条件, 此时可以传入该参数. */
10
10
  kgSearchFormID: PropType<string | null>;
@@ -2,18 +2,18 @@ import { PropType } from 'vue';
2
2
  import './KgTable.Cell.less';
3
3
  export declare const getProps: () => {
4
4
  /** 列值. */
5
- kgValue: PropType<any>; /** 列值. */
5
+ kgValue: PropType<any>;
6
6
  /** 变量名称. */
7
7
  kgVarName: PropType<string | null>;
8
8
  };
9
9
  declare const _default: import("vue").DefineComponent<{
10
10
  /** 列值. */
11
- kgValue: PropType<any>; /** 列值. */
11
+ kgValue: PropType<any>;
12
12
  /** 变量名称. */
13
13
  kgVarName: PropType<string | null>;
14
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
  /** 列值. */
16
- kgValue: PropType<any>; /** 列值. */
16
+ kgValue: PropType<any>;
17
17
  /** 变量名称. */
18
18
  kgVarName: PropType<string | null>;
19
19
  }>>, {}>;
@@ -0,0 +1,6 @@
1
+ import './KgTable.Setting.less';
2
+ export declare const getProps: () => any;
3
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
4
+ [x: string]: any;
5
+ }>;
6
+ export default _default;
@@ -1,4 +1,4 @@
1
- export { default as KgTable, type KgTableProps } from './KgTable';
1
+ export { default as KgTable, type IKgTableProps } from './KgTable';
2
2
  export * from './index.hooks';
3
3
  export * from './index.store';
4
4
  export * from './index.vm';
@@ -1,17 +1,18 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { IKgTableRetrieveCb, IKgTableRowDoubleClickCb, KgTableStore } from './index.store';
2
+ import { IKgTableRetrieveCb, IKgTableRowDoubleClickCb, IKgTableStore } from './index.store';
3
+ import { IRemoveEventListenerHandler } from '../../consts/index.vm';
3
4
  export declare type IUseKgTable = {
4
5
  formID: string;
5
6
  /** 状态数据. */
6
- store: KgTableStore;
7
+ store: IKgTableStore;
7
8
  /** 当前勾选的行. */
8
- selectedRows: ComputedRef<ReturnType<KgTableStore['getSelectedRows']>>;
9
+ selectedRows: ComputedRef<ReturnType<IKgTableStore['getSelectedRows']>>;
9
10
  /** 是否正在查询. */
10
- isRetrieving: ComputedRef<ReturnType<KgTableStore['getIsRetrieving']>>;
11
+ isRetrieving: ComputedRef<ReturnType<IKgTableStore['getIsRetrieving']>>;
11
12
  /** 监听事件: 双击某行. */
12
- onRowDoubleClick(cb: IKgTableRowDoubleClickCb): void;
13
+ onRowDoubleClick(cb: IKgTableRowDoubleClickCb): IRemoveEventListenerHandler;
13
14
  /** 监听事件: 查询数据成功. */
14
- onRetrieve(cb: IKgTableRetrieveCb): void;
15
+ onRetrieve(cb: IKgTableRetrieveCb): IRemoveEventListenerHandler;
15
16
  };
16
17
  /**
17
18
  * @param formID 界面标识.
@@ -12,7 +12,7 @@ export declare type IKgTableRowDoubleClickCb = (record: IKgTableRecord) => void;
12
12
  /** 事件监听函数: 查询数据成功. */
13
13
  export declare type IKgTableRetrieveCb = (page: IPage<IKgTableRecord> | undefined | null) => void;
14
14
  export declare type IKgTableCb = IKgTableRowDoubleClickCb | IKgTableRetrieveCb;
15
- export interface KgTableState {
15
+ export interface IKgTableState {
16
16
  /** 勾选的行. */
17
17
  selectedRowsMap: Map<string, Array<IKgTableRecord>>;
18
18
  /**
@@ -29,20 +29,20 @@ export interface KgTableState {
29
29
  rowDoubleClickListenersMap: Map<string, Array<IKgTableRowDoubleClickCb>>;
30
30
  retrieveListenersMap: Map<string, Array<IKgTableRetrieveCb>>;
31
31
  }
32
- export declare type KgTableStoreDefinition = StoreDefinition<'KgTable', KgTableState, {
32
+ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTableState, {
33
33
  getSelectedRows(): (formID?: string | null) => Array<IKgTableRecord> | null;
34
34
  getIsRetrieved(): (formID?: string | null) => boolean | null;
35
35
  getIsRetrieving(): (formID?: string | null) => boolean | null;
36
36
  getTableWidth(): (formID?: string | null) => number | null;
37
37
  }, {
38
- dispose: (formID?: string | null) => void;
39
- addEventListener: (formID: string, event: IKgTableEvent, cb: IKgTableCb) => void;
40
- removeEventListener: (formID: string, event: IKgTableEvent, cb?: IKgTableCb) => void;
41
- emit: (formID: string, event: IKgTableEvent, record?: any | null) => void;
38
+ dispose(formID?: string | null): void;
39
+ addEventListener(formID: string, event: IKgTableEvent, cb: IKgTableCb): void;
40
+ removeEventListener(formID: string, event: IKgTableEvent, cb?: IKgTableCb): void;
41
+ emit(formID: string, event: IKgTableEvent, record?: any | null): void;
42
42
  setSelectedRows(formID: string, selectedRows: Array<IKgTableRecord>): void;
43
43
  setIsRetrieved(formID: string, value: boolean): void;
44
44
  setIsRetrieving(formID: string, value: boolean): void;
45
45
  setTableWidth(formID: string, value: number): void;
46
46
  }>;
47
- export declare type KgTableStore = ReturnType<KgTableStoreDefinition>;
48
- export declare const useKgTableStore: () => KgTableStoreDefinition;
47
+ export declare type IKgTableStore = ReturnType<IKgTableStoreDefinition>;
48
+ export declare const useKgTableStore: () => IKgTableStoreDefinition;
@@ -15,6 +15,23 @@ export interface IKgTableBodyCell<T = {}> {
15
15
  column: ColumnType;
16
16
  defaultRender: JSX.Element;
17
17
  }
18
+ /**
19
+ * 对应于 {@link VarGridDetail.display_type_properties} 字段, 不同显示类型的参数.
20
+ */
21
+ export interface IKgTableCellDisplayTypeProperties {
22
+ YN: {
23
+ /**
24
+ * 显示为'是'的值.
25
+ * @default 1
26
+ */
27
+ yValue: any;
28
+ /**
29
+ * 显示为'否'的值.
30
+ * @default 0
31
+ */
32
+ nValue: any;
33
+ };
34
+ }
18
35
  /** 列的默认宽度. 如果 VarGridDetail 没有配置宽度, 则使用该宽度. */
19
36
  export declare const KG_TABLE_TD_DEFAULT_WIDTH = 120;
20
37
  /** 列的最小宽度. 拖动修改列的宽度时, 不允许超过该最小宽度. */
@@ -1,23 +1,8 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
1
+ import { ExtractPropTypes } from 'vue';
2
2
  import './KgVar.less';
3
- export declare const getProps: () => {
4
- TODO: {
5
- type: PropType<boolean>;
6
- default: boolean;
7
- };
8
- };
9
- export declare type KgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
10
- declare const _default: import("vue").DefineComponent<{
11
- TODO: {
12
- type: PropType<boolean>;
13
- default: boolean;
14
- };
15
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
16
- TODO: {
17
- type: PropType<boolean>;
18
- default: boolean;
19
- };
20
- }>>, {
21
- TODO: boolean;
3
+ export declare const getProps: () => any;
4
+ export declare type IKgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
5
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
6
+ [x: string]: any;
22
7
  }>;
23
8
  export default _default;
@@ -1,3 +1,3 @@
1
- export { default as KgVar, type KgVarProps } from './KgVar';
1
+ export { default as KgVar, type IKgVarProps } from './KgVar';
2
2
  export * from './index.hooks';
3
3
  export * from './index.store';
@@ -1,6 +1,6 @@
1
1
  import { type StoreDefinition } from 'pinia';
2
- import { VarButton, VarCatalog, VarConfig, VarGridConfig, VarGridDetail, VarGridDTO, VarGridMasterDTO, VarLookup, VarPossibility, VarProfileDetail, VarProfileDTO, VarProfileMasterDTO, VarSubmitField } from '../../apis/WMS/models';
3
- export interface KgVarState {
2
+ import { VarButton, VarCatalog, VarConfig, VarGridConfig, VarGridDetail, VarGridDTO, VarGridMasterDTO, VarLookup, VarPossibility, VarProfileConfig, VarProfileDetail, VarProfileDTO, VarProfileMasterDTO, VarSubmitField } from '../../apis/WMS/models';
3
+ export interface IKgVarState {
4
4
  /**
5
5
  * 当前可能打开了多个界面, 需要按照先后顺序记录下来, 当打开变量配置弹窗时, 打开的是最近那个页面的变量配置.
6
6
  */
@@ -21,20 +21,21 @@ export interface KgVarState {
21
21
  varConfigsMap: Map<string, Array<VarConfig>>;
22
22
  varButtonsMap: Map<string, Array<VarButton>>;
23
23
  varSubmitFieldsMap: Map<string, Array<VarSubmitField>>;
24
+ varProfileConfigMap: Map<string, VarProfileConfig | null>;
24
25
  varProfileMap: Map<string, {
25
26
  varProfile: VarProfileDTO | null;
26
27
  /** 当前选中的 VarProfileMaster ID. */
27
28
  currentVarProfileMasterID: string | null;
28
29
  }>;
30
+ varGridConfigMap: Map<string, VarGridConfig | null>;
29
31
  varGridMap: Map<string, {
30
32
  varGrid: VarGridDTO | null;
31
33
  /** 当前表格视图. */
32
34
  currentVarGridMasterID: string | null;
33
35
  }>;
34
- varGridConfigMap: Map<string, VarGridConfig | null>;
35
36
  }
36
- export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', KgVarState, {
37
- getTopFormID(): string | null;
37
+ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState, {
38
+ getCurrentFormID(): string | null;
38
39
  isRetrievingVar(): (formID?: string | null) => boolean | null;
39
40
  isCreating(): (formID?: string | null) => boolean | null;
40
41
  isUpdating(): (formID?: string | null) => boolean | null;
@@ -53,9 +54,17 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', KgVarState,
53
54
  getVarSubmitField(): (formID?: string | null, var_nam?: string | null) => VarSubmitField | null;
54
55
  getVarButtonSearch(): (formID?: string | null) => VarButton | null;
55
56
  getVarButton(): (formID?: string | null, var_nam?: string | null) => VarButton | null;
57
+ getVarProfileConfig(): (formID?: string | null) => VarProfileConfig | null;
56
58
  getVarProfileMasters(): (formID?: string | null) => Array<VarProfileMasterDTO> | null;
57
- getVarProfileDetails(): (formID?: string | null) => Array<VarProfileDetail> | null;
58
59
  getVarProfileDetail(): (formID?: string | null, var_nam?: string | null) => VarProfileDetail | null;
60
+ /**
61
+ * 根据 formID 获取 VarProfileDetail 列表.
62
+ */
63
+ getVarProfileDetails(): (formID?: string | null) => Array<VarProfileDetail> | null;
64
+ /**
65
+ * 根据 formID 获取系统的 VarProfileDetail 列表, 即 customLevel 为 0 的 VarProfileMaster 下面的所有 VarProfileDetail.
66
+ */
67
+ getSystemVarProfileDetails(): (formID?: string | null) => Array<VarProfileDetail> | null;
59
68
  getCurrentVarProfileMaster(): (formID?: string | null) => VarProfileMasterDTO | null;
60
69
  getCurrentVarProfileMasterID(): (formID?: string | null) => string | null;
61
70
  getVarGridConfig(): (formID?: string | null) => VarGridConfig | null;
@@ -0,0 +1,11 @@
1
+ import { VarButton, VarGridDetail, VarGridDTO, VarGridMasterDTO, VarSubmitField } from '../../apis/WMS/models';
2
+ export declare function transformVarGridDTO(varGridDTO?: VarGridDTO | null): VarGridDTO | null;
3
+ export declare function transformVarProfileMasterDTOs(varGridMasterDTOs?: Array<VarGridMasterDTO> | null): Array<VarGridMasterDTO>;
4
+ export declare function transformVarSubmitFields(varSubmitFields?: Array<VarSubmitField> | null): Array<VarSubmitField>;
5
+ export declare function transformVarButtons(varButtons?: Array<VarButton> | null): Array<VarButton>;
6
+ /**
7
+ * 处理 VarGridDetail 数据, 排序/防呆.
8
+ *
9
+ * @param varGridDetails 原始数据.
10
+ */
11
+ export declare function transformVarGridDetails(varGridDetails?: Array<VarGridDetail> | null): Array<VarGridDetail>;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgVarConfig.Modal.less';
3
+ export declare const getProps: () => {
4
+ visible: PropType<boolean>;
5
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
6
+ };
7
+ export declare type IKgVarConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
8
+ declare const _default: import("vue").DefineComponent<{
9
+ visible: PropType<boolean>;
10
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
11
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
12
+ visible: PropType<boolean>;
13
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
14
+ }>> & {
15
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
16
+ }, {}>;
17
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import './KgVarConfig.Modal.Var.CreateModal.less';
2
+ import { ExtractPropTypes, PropType } from 'vue';
3
+ export declare const getProps: () => {
4
+ visible: PropType<boolean>;
5
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
6
+ /** 确定. */
7
+ onKgOk: PropType<(args: {
8
+ isAllForm: boolean;
9
+ isAllLanguage: boolean;
10
+ }) => void>;
11
+ };
12
+ export declare type IKgVarConfigModalVarCreateModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
13
+ declare const _default: import("vue").DefineComponent<{
14
+ visible: PropType<boolean>;
15
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
16
+ /** 确定. */
17
+ onKgOk: PropType<(args: {
18
+ isAllForm: boolean;
19
+ isAllLanguage: boolean;
20
+ }) => void>;
21
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "kgOk")[], "update:visible" | "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
22
+ visible: PropType<boolean>;
23
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
24
+ /** 确定. */
25
+ onKgOk: PropType<(args: {
26
+ isAllForm: boolean;
27
+ isAllLanguage: boolean;
28
+ }) => void>;
29
+ }>> & {
30
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
31
+ onKgOk?: ((...args: any[]) => any) | undefined;
32
+ }, {}>;
33
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import './KgVarConfig.Modal.Var.VarCatalog.less';
2
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ColumnsType } from 'ant-design-vue/es/table';
2
+ import { VarContext } from '../../../../apis/WMS/models';
3
+ export declare const columns: () => ColumnsType<VarContext>;
@@ -0,0 +1,3 @@
1
+ import './KgVarConfig.Modal.Var.Vars.less';
2
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ColumnsType } from 'ant-design-vue/es/table';
2
+ import { VarContext } from '../../../../apis/WMS/models';
3
+ export declare const columns: () => ColumnsType<VarContext>;
@@ -0,0 +1,3 @@
1
+ import './KgVarConfig.Modal.Var.less';
2
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as KgVarConfig } from './KgVarConfig';
2
+ export * from './index.store';
@@ -0,0 +1,20 @@
1
+ import { StoreDefinition } from 'pinia';
2
+ import { VarCatalog, VarContext } from '../../apis/WMS/models';
3
+ export interface IKgVarConfigState {
4
+ /** 变量. */
5
+ variable: {
6
+ /** 当前选中的变量. */
7
+ selectedVar: VarContext | null;
8
+ /** 当前选中的变量别名. */
9
+ selectedVarCatalog: VarCatalog | null;
10
+ };
11
+ }
12
+ export declare type IKgVarConfigStoreDefinition = StoreDefinition<'KgVarConfig', IKgVarConfigState, {
13
+ getSelectedVar: VarContext | null;
14
+ getSelectedVarCatalog: VarCatalog | null;
15
+ }, {
16
+ setSelectedVar(variable: VarContext | null): void;
17
+ setSelectedVarCatalog(variable: VarCatalog | null): void;
18
+ }>;
19
+ export declare type IKgVarConfigStore = ReturnType<IKgVarConfigStoreDefinition>;
20
+ export declare const useKgVarConfigStore: () => IKgVarConfigStoreDefinition;
@@ -10,7 +10,7 @@ export declare const getProps: () => {
10
10
  default: boolean;
11
11
  };
12
12
  };
13
- export declare type KgYesOrNoProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
13
+ export declare type IKgYesOrNoProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
14
14
  declare const _default: import("vue").DefineComponent<{
15
15
  /**
16
16
  * 布尔数据.
@@ -1 +1 @@
1
- export { default as KgYesOrNo, type KgYesOrNoProps } from './KgYesOrNo';
1
+ export { default as KgYesOrNo, type IKgYesOrNoProps } from './KgYesOrNo';
@@ -1,10 +1,13 @@
1
- export * from './KgButton';
2
1
  export * from './KgModal';
3
2
  export * from './KgProgressA';
4
3
  export * from './KgResizable';
5
4
  export * from './KgSearch';
6
5
  export * from './KgTable';
7
6
  export * from './KgVar';
7
+ export * from './KgVarConfig';
8
8
  export * from './KgYesOrNo';
9
- export { default as KgForm, type IKgFormProps } from './KgForm';
10
- export { KgFormItem, type IKgFormItemProps } from './KgForm.Item';
9
+ export * from './KgButton';
10
+ export { default as KgButton } from './KgButton';
11
+ export * from './KgForm';
12
+ export { default as KgForm } from './KgForm';
13
+ export * from './KgForm.Item';
@@ -4,16 +4,16 @@ import { ComputedRef } from 'vue';
4
4
  * 配置 pinia 实例.
5
5
  * @param pinia pinia 实例.
6
6
  */
7
- export declare function setupStore(pinia: Pinia): void;
7
+ export declare function setPinia(pinia: Pinia): void;
8
8
  /**
9
9
  * 获取 pinia 实例.
10
10
  */
11
- export declare function store(): Pinia | null;
11
+ export declare function pinia(): Pinia | null;
12
12
  /**
13
13
  * 配置语言.
14
14
  * @param locale 语言.
15
15
  */
16
- export declare function setupLocale(locale: ComputedRef<string>): void;
16
+ export declare function setLocale(locale: ComputedRef<string>): void;
17
17
  /**
18
18
  * 获取语言.
19
19
  */
@@ -30,7 +30,7 @@ declare type T = {
30
30
  * 配置翻译方法.
31
31
  * @param i18n vue-i18n 的国际化配置.
32
32
  */
33
- export declare function setupT(i18n: any): void;
33
+ export declare function setT(i18n: any): void;
34
34
  /**
35
35
  * 翻译.
36
36
  * @param key
@@ -3,6 +3,12 @@ declare const _default: {
3
3
  KgSearch: {
4
4
  title: string;
5
5
  };
6
+ KgSearchConfigModal: {
7
+ close: string;
8
+ formTitle: string;
9
+ pleaseSelectVarProfileMaster: string;
10
+ title: string;
11
+ };
6
12
  KgTable: {
7
13
  column: string;
8
14
  emptyText: string;
@@ -15,6 +21,32 @@ declare const _default: {
15
21
  locate: string;
16
22
  row: string;
17
23
  };
24
+ KgVarConfig: {
25
+ action: string;
26
+ allForm: string;
27
+ allLanguage: string;
28
+ applyTo: string;
29
+ catalog: string;
30
+ confirm: string;
31
+ createConfig: string;
32
+ createSuccess: string;
33
+ currentForm: string;
34
+ currentLanguage: string;
35
+ customLevel: string;
36
+ deleteConfirmMessage: string;
37
+ deleteSuccess: string;
38
+ discardConfirmMessage: string;
39
+ form: string;
40
+ formId: string;
41
+ groupName: string;
42
+ language: string;
43
+ required: string;
44
+ saveSuccess: string;
45
+ title: string;
46
+ variable: string;
47
+ variableName: string;
48
+ variables: string;
49
+ };
18
50
  action: string;
19
51
  add: string;
20
52
  button: string;
@@ -4,6 +4,12 @@ export declare const KG_I18N: {
4
4
  KgSearch: {
5
5
  title: string;
6
6
  };
7
+ KgSearchConfigModal: {
8
+ close: string;
9
+ formTitle: string;
10
+ pleaseSelectVarProfileMaster: string;
11
+ title: string;
12
+ };
7
13
  KgTable: {
8
14
  column: string;
9
15
  emptyText: string;
@@ -16,6 +22,32 @@ export declare const KG_I18N: {
16
22
  locate: string;
17
23
  row: string;
18
24
  };
25
+ KgVarConfig: {
26
+ action: string;
27
+ allForm: string;
28
+ allLanguage: string;
29
+ applyTo: string;
30
+ catalog: string;
31
+ confirm: string;
32
+ createConfig: string;
33
+ createSuccess: string;
34
+ currentForm: string;
35
+ currentLanguage: string;
36
+ customLevel: string;
37
+ deleteConfirmMessage: string;
38
+ deleteSuccess: string;
39
+ discardConfirmMessage: string;
40
+ form: string;
41
+ formId: string;
42
+ groupName: string;
43
+ language: string;
44
+ required: string;
45
+ saveSuccess: string;
46
+ title: string;
47
+ variable: string;
48
+ variableName: string;
49
+ variables: string;
50
+ };
19
51
  action: string;
20
52
  add: string;
21
53
  button: string;
@@ -48,6 +80,12 @@ export declare const KG_I18N: {
48
80
  KgSearch: {
49
81
  title: string;
50
82
  };
83
+ KgSearchConfigModal: {
84
+ close: string;
85
+ formTitle: string;
86
+ pleaseSelectVarProfileMaster: string;
87
+ title: string;
88
+ };
51
89
  KgTable: {
52
90
  column: string;
53
91
  emptyText: string;
@@ -60,6 +98,31 @@ export declare const KG_I18N: {
60
98
  locate: string;
61
99
  row: string;
62
100
  };
101
+ KgVarConfig: {
102
+ action: string;
103
+ allForm: string;
104
+ allLanguage: string;
105
+ applyTo: string;
106
+ catalog: string;
107
+ confirm: string;
108
+ createConfig: string;
109
+ createSuccess: string;
110
+ currentForm: string;
111
+ currentLanguage: string;
112
+ customLevel: string;
113
+ deleteConfirmMessage: string;
114
+ deleteSuccess: string;
115
+ discardConfirmMessage: string;
116
+ form: string;
117
+ formId: string;
118
+ groupName: string;
119
+ language: string;
120
+ saveSuccess: string;
121
+ title: string;
122
+ variable: string;
123
+ variableName: string;
124
+ variables: string;
125
+ };
63
126
  action: string;
64
127
  add: string;
65
128
  button: string;
@@ -3,6 +3,12 @@ declare const _default: {
3
3
  KgSearch: {
4
4
  title: string;
5
5
  };
6
+ KgSearchConfigModal: {
7
+ close: string;
8
+ formTitle: string;
9
+ pleaseSelectVarProfileMaster: string;
10
+ title: string;
11
+ };
6
12
  KgTable: {
7
13
  column: string;
8
14
  emptyText: string;
@@ -15,6 +21,31 @@ declare const _default: {
15
21
  locate: string;
16
22
  row: string;
17
23
  };
24
+ KgVarConfig: {
25
+ action: string;
26
+ allForm: string;
27
+ allLanguage: string;
28
+ applyTo: string;
29
+ catalog: string;
30
+ confirm: string;
31
+ createConfig: string;
32
+ createSuccess: string;
33
+ currentForm: string;
34
+ currentLanguage: string;
35
+ customLevel: string;
36
+ deleteConfirmMessage: string;
37
+ deleteSuccess: string;
38
+ discardConfirmMessage: string;
39
+ form: string;
40
+ formId: string;
41
+ groupName: string;
42
+ language: string;
43
+ saveSuccess: string;
44
+ title: string;
45
+ variable: string;
46
+ variableName: string;
47
+ variables: string;
48
+ };
18
49
  action: string;
19
50
  add: string;
20
51
  button: string;
@@ -0,0 +1,2 @@
1
+ /** 移除监听函数. */
2
+ export declare type IRemoveEventListenerHandler = () => void;
@@ -51,9 +51,15 @@ export declare class KgUtil {
51
51
  update: (newConfig: ModalFuncProps) => void;
52
52
  };
53
53
  /**
54
- * 是否是表单验证错误.
54
+ * 如果不是表单验证错误, 则抛出该错误.
55
+ * @param e 错误对象.
55
56
  */
56
- static isFormValidateError(e: any): boolean;
57
+ static throwIfNotFormError(e: any): void;
58
+ /**
59
+ * 将 JSON 字符串转换为 JSON 对象, 如果转化失败, 则返回空对象.
60
+ * @param str JSON 字符串.
61
+ */
62
+ static tryParseJSON(str?: string | null): Record<string, any>;
57
63
  /**
58
64
  * 将值转换为 Dayjs 对象.
59
65
  * @param value 值.