@kengic/vue 0.5.9 → 0.5.11

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 (41) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +2263 -1999
  3. package/dist/src/apis/WMS/models.d.ts +6 -0
  4. package/dist/src/components/KgButton/KgButton.Item.d.ts +9 -2
  5. package/dist/src/components/KgButton/KgButton.Item.data.d.ts +4 -1
  6. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +9 -2
  7. package/dist/src/components/KgButton/components/KgButton.Create.d.ts +9 -2
  8. package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +9 -2
  9. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +9 -2
  10. package/dist/src/components/KgButton/components/KgButton.Import.d.ts +9 -2
  11. package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +9 -2
  12. package/dist/src/components/KgButton/components/KgButton.Other.d.ts +11 -2
  13. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +9 -2
  14. package/dist/src/components/KgButton/components/KgButton.Update.d.ts +9 -2
  15. package/dist/src/components/KgModal/KgModal.d.ts +3 -3
  16. package/dist/src/components/KgModal/components/KgModal.Close.d.ts +21 -4
  17. package/dist/src/components/KgModal/index.vm.d.ts +1 -1
  18. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +12 -3
  19. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +14 -0
  20. package/dist/src/components/KgSearch/components/{KgSearch.ConfigModal.Profile.d.ts → KgSearch.ConfigModal.VarProfileMaster.d.ts} +14 -5
  21. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +12 -3
  22. package/dist/src/components/KgSubmit/KgSubmit.d.ts +6 -0
  23. package/dist/src/components/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +26 -1
  24. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +22 -0
  25. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +26 -0
  26. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +25 -0
  27. package/dist/src/components/KgTable/components/setting/{KgTable.Setting.VarGridMasterModal.d.ts → config/KgTable.Setting.ConfigModal.d.ts} +17 -2
  28. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +25 -0
  29. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +29 -0
  30. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +21 -2
  31. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +25 -0
  32. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +22 -0
  33. package/dist/src/config/index.store.d.ts +1 -1
  34. package/dist/src/config/setup.d.ts +6 -2
  35. package/dist/src/consts/i18n/en.d.ts +15 -7
  36. package/dist/src/consts/i18n/zh_CN.d.ts +15 -7
  37. package/dist/src/consts/index.d.ts +8 -1
  38. package/package.json +1 -1
  39. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Config.d.ts +0 -7
  40. package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridConfig.d.ts +0 -3
  41. /package/dist/src/components/KgSearch/components/{KgSearch.ConfigModal.Profile.data.d.ts → KgSearch.ConfigModal.VarProfileMaster.data.d.ts} +0 -0
@@ -0,0 +1,25 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgTable.Setting.ConfigModal.VarGridMaster.less';
3
+ export declare const FORM_ID__VAR_GRID_MASTER = "kg-table.VarGridMaster";
4
+ export declare const getProps: () => {
5
+ /** 主页面的页面标识. */
6
+ hostFormID: {
7
+ type: PropType<string>;
8
+ required: boolean;
9
+ };
10
+ };
11
+ export declare type IKgTableSettingConfigModalVarGridMasterProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
+ declare const _default: import("vue").DefineComponent<{
13
+ /** 主页面的页面标识. */
14
+ hostFormID: {
15
+ type: PropType<string>;
16
+ required: boolean;
17
+ };
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
19
+ /** 主页面的页面标识. */
20
+ hostFormID: {
21
+ type: PropType<string>;
22
+ required: boolean;
23
+ };
24
+ }>>, {}>;
25
+ export default _default;
@@ -1,16 +1,31 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import './KgTable.Setting.less';
2
+ import '../KgTable.Setting.less';
3
3
  export declare const getProps: () => {
4
4
  visible: PropType<boolean>;
5
5
  'onUpdate:visible': PropType<(value: boolean) => void>;
6
+ /** 主页面的页面标识. */
7
+ hostFormID: {
8
+ type: PropType<string>;
9
+ required: boolean;
10
+ };
6
11
  };
7
- export declare type IKgTableSettingGridMasterModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
+ export declare type IKgTableSettingConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
8
13
  declare const _default: import("vue").DefineComponent<{
9
14
  visible: PropType<boolean>;
10
15
  'onUpdate:visible': PropType<(value: boolean) => void>;
16
+ /** 主页面的页面标识. */
17
+ hostFormID: {
18
+ type: PropType<string>;
19
+ required: boolean;
20
+ };
11
21
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
12
22
  visible: PropType<boolean>;
13
23
  'onUpdate:visible': PropType<(value: boolean) => void>;
24
+ /** 主页面的页面标识. */
25
+ hostFormID: {
26
+ type: PropType<string>;
27
+ required: boolean;
28
+ };
14
29
  }>> & {
15
30
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
16
31
  }, {}>;
@@ -0,0 +1,25 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgVarConfig.Modal.Button.VarButton.less';
3
+ export declare const FORM_ID__VAR_BUTTON = "kg-button.VarButton";
4
+ export declare const getProps: () => {
5
+ /** 主页面的页面标识. */
6
+ hostFormID: {
7
+ type: PropType<string>;
8
+ required: boolean;
9
+ };
10
+ };
11
+ export declare type IKgVarConfigModalButtonVarButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
+ declare const _default: import("vue").DefineComponent<{
13
+ /** 主页面的页面标识. */
14
+ hostFormID: {
15
+ type: PropType<string>;
16
+ required: boolean;
17
+ };
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
19
+ /** 主页面的页面标识. */
20
+ hostFormID: {
21
+ type: PropType<string>;
22
+ required: boolean;
23
+ };
24
+ }>>, {}>;
25
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export declare const FORM_ID__VAR_BUTTON_CONFIG = "kg-button.VarButtonConfig";
3
+ export declare const getProps: () => {
4
+ /** 主页面的页面标识. */
5
+ hostFormID: {
6
+ type: PropType<string>;
7
+ required: boolean;
8
+ };
9
+ onKgClose: PropType<() => void>;
10
+ };
11
+ export declare type IKgVarConfigModalButtonVarButtonConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
+ declare const _default: import("vue").DefineComponent<{
13
+ /** 主页面的页面标识. */
14
+ hostFormID: {
15
+ type: PropType<string>;
16
+ required: boolean;
17
+ };
18
+ onKgClose: PropType<() => void>;
19
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClose"[], "kgClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
20
+ /** 主页面的页面标识. */
21
+ hostFormID: {
22
+ type: PropType<string>;
23
+ required: boolean;
24
+ };
25
+ onKgClose: PropType<() => void>;
26
+ }>> & {
27
+ onKgClose?: ((...args: any[]) => any) | undefined;
28
+ }, {}>;
29
+ export default _default;
@@ -1,3 +1,22 @@
1
- import './KgVarConfig.Modal.Button.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<{}>>, {}>;
1
+ import { PropType } from 'vue';
2
+ export declare const getProps: () => {
3
+ /** 主页面的页面标识. */
4
+ hostFormID: {
5
+ type: PropType<string>;
6
+ required: boolean;
7
+ };
8
+ };
9
+ declare const _default: import("vue").DefineComponent<{
10
+ /** 主页面的页面标识. */
11
+ hostFormID: {
12
+ type: PropType<string>;
13
+ required: boolean;
14
+ };
15
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ /** 主页面的页面标识. */
17
+ hostFormID: {
18
+ type: PropType<string>;
19
+ required: boolean;
20
+ };
21
+ }>>, {}>;
3
22
  export default _default;
@@ -0,0 +1,25 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgVarConfig.Modal.Submit.VarSubmitField.less';
3
+ export declare const FORM_ID__VAR_SUBMIT_FIELD = "kg-submit.VarSubmitField";
4
+ export declare const getProps: () => {
5
+ /** 主页面的页面标识. */
6
+ hostFormID: {
7
+ type: PropType<string>;
8
+ required: boolean;
9
+ };
10
+ };
11
+ export declare type IKgVarConfigModalSubmitVarSubmitFieldProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
+ declare const _default: import("vue").DefineComponent<{
13
+ /** 主页面的页面标识. */
14
+ hostFormID: {
15
+ type: PropType<string>;
16
+ required: boolean;
17
+ };
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
19
+ /** 主页面的页面标识. */
20
+ hostFormID: {
21
+ type: PropType<string>;
22
+ required: boolean;
23
+ };
24
+ }>>, {}>;
25
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { PropType } from 'vue';
2
+ export declare const getProps: () => {
3
+ /** 主页面的页面标识. */
4
+ hostFormID: {
5
+ type: PropType<string>;
6
+ required: boolean;
7
+ };
8
+ };
9
+ declare const _default: import("vue").DefineComponent<{
10
+ /** 主页面的页面标识. */
11
+ hostFormID: {
12
+ type: PropType<string>;
13
+ required: boolean;
14
+ };
15
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ /** 主页面的页面标识. */
17
+ hostFormID: {
18
+ type: PropType<string>;
19
+ required: boolean;
20
+ };
21
+ }>>, {}>;
22
+ export default _default;
@@ -21,7 +21,7 @@ export declare type T = {
21
21
  };
22
22
  /** 检查权限的方法. */
23
23
  export declare type P = {
24
- (permissionCode?: string | Array<string>): boolean;
24
+ (permissionCode?: string | Array<string> | null): boolean;
25
25
  };
26
26
  export interface IKgState {
27
27
  /** 语言. */
@@ -1,7 +1,7 @@
1
1
  import { Pinia } from 'pinia';
2
2
  import { App, ComputedRef } from 'vue';
3
3
  import { IKgLocale } from '../consts';
4
- import { IKgStateOption } from './index.store';
4
+ import { IKgStateOption, P } from './index.store';
5
5
  /**
6
6
  * 配置 pinia 实例.
7
7
  * @param pinia pinia 实例.
@@ -14,13 +14,17 @@ export declare function pinia(): Pinia | null;
14
14
  export declare type IKgOptions = {
15
15
  app: App;
16
16
  pinia: Pinia;
17
+ /** 语言. */
17
18
  locale: ComputedRef<IKgLocale>;
18
19
  /**
19
20
  * import { createI18n } from 'vue-i18n';
20
21
  * ReturnType<typeof createI18n>
21
22
  */
22
23
  i18n: any;
23
- option: IKgStateOption;
24
+ /** 检查权限的方法. */
25
+ pFunction: P;
26
+ /** 配置参数. */
27
+ option?: IKgStateOption;
24
28
  };
25
29
  /**
26
30
  * 初始化组件库.
@@ -4,12 +4,12 @@ declare const _default: {
4
4
  title: string;
5
5
  };
6
6
  KgSearchConfigModal: {
7
+ VarProfileConfig: string;
8
+ VarProfileMaster: string;
7
9
  canNotUpdateSystemVarProfileMaster: string;
8
10
  close: string;
9
- config: string;
10
11
  formTitle: string;
11
12
  pleaseSelectVarProfileMaster: string;
12
- profile: string;
13
13
  };
14
14
  KgSubmitHeaderVarSubmitConfig: {
15
15
  invalidWidthForSpan: string;
@@ -17,8 +17,7 @@ declare const _default: {
17
17
  KgTable: {
18
18
  canNotUpdateSystemVarGridMaster: string;
19
19
  column: string;
20
- configVarGridConfig: string;
21
- configVarGridMasters: string;
20
+ config: string;
22
21
  emptyText: string;
23
22
  saveVarGridMaster: string;
24
23
  saveVarGridMasterAs: string;
@@ -32,6 +31,10 @@ declare const _default: {
32
31
  locate: string;
33
32
  row: string;
34
33
  };
34
+ KgTableSettingConfigModal: {
35
+ VarGridConfig: string;
36
+ VarGridMaster: string;
37
+ };
35
38
  KgTableSettingGridConfigModal: {
36
39
  title: string;
37
40
  };
@@ -44,9 +47,6 @@ declare const _default: {
44
47
  invalidPageSizeOption: string;
45
48
  invalidPageSizeOptions: string;
46
49
  };
47
- KgTableSettingVarGridMasterModal: {
48
- title: string;
49
- };
50
50
  KgVarConfig: {
51
51
  action: string;
52
52
  allForm: string;
@@ -79,6 +79,14 @@ declare const _default: {
79
79
  KgVarConfigFormIDsModal: {
80
80
  title: string;
81
81
  };
82
+ KgVarConfigModalButton: {
83
+ VarButton: string;
84
+ VarButtonConfig: string;
85
+ };
86
+ KgVarConfigModalSubmit: {
87
+ VarSubmitConfig: string;
88
+ VarSubmitField: string;
89
+ };
82
90
  KgWarehouse: {
83
91
  reloadMessage: string;
84
92
  selectWarehouse: string;
@@ -4,12 +4,12 @@ declare const _default: {
4
4
  title: string;
5
5
  };
6
6
  KgSearchConfigModal: {
7
+ VarProfileConfig: string;
8
+ VarProfileMaster: string;
7
9
  canNotUpdateSystemVarProfileMaster: string;
8
10
  close: string;
9
- config: string;
10
11
  formTitle: string;
11
12
  pleaseSelectVarProfileMaster: string;
12
- profile: string;
13
13
  };
14
14
  KgSubmitHeaderVarSubmitConfig: {
15
15
  invalidWidthForSpan: string;
@@ -17,8 +17,7 @@ declare const _default: {
17
17
  KgTable: {
18
18
  canNotUpdateSystemVarGridMaster: string;
19
19
  column: string;
20
- configVarGridConfig: string;
21
- configVarGridMasters: string;
20
+ config: string;
22
21
  emptyText: string;
23
22
  saveVarGridMaster: string;
24
23
  saveVarGridMasterAs: string;
@@ -32,6 +31,10 @@ declare const _default: {
32
31
  locate: string;
33
32
  row: string;
34
33
  };
34
+ KgTableSettingConfigModal: {
35
+ VarGridConfig: string;
36
+ VarGridMaster: string;
37
+ };
35
38
  KgTableSettingGridConfigModal: {
36
39
  title: string;
37
40
  };
@@ -44,9 +47,6 @@ declare const _default: {
44
47
  invalidPageSizeOption: string;
45
48
  invalidPageSizeOptions: string;
46
49
  };
47
- KgTableSettingVarGridMasterModal: {
48
- title: string;
49
- };
50
50
  KgVarConfig: {
51
51
  action: string;
52
52
  allForm: string;
@@ -78,6 +78,14 @@ declare const _default: {
78
78
  KgVarConfigFormIDsModal: {
79
79
  title: string;
80
80
  };
81
+ KgVarConfigModalButton: {
82
+ VarButton: string;
83
+ VarButtonConfig: string;
84
+ };
85
+ KgVarConfigModalSubmit: {
86
+ VarSubmitConfig: string;
87
+ VarSubmitField: string;
88
+ };
81
89
  KgWarehouse: {
82
90
  reloadMessage: string;
83
91
  selectWarehouse: string;
@@ -95,13 +95,20 @@ export declare const enum KG_BUTTON_COLOR {
95
95
  /** 警告. */
96
96
  WARN = "WARN"
97
97
  }
98
- /** 按钮显示类型. */
98
+ /** 按钮显示方式. */
99
99
  export declare const enum KG_BUTTON_DISPLAY_TYPE {
100
100
  /** 按钮依次排列在一横排. */
101
101
  DEFAULT = "DEFAULT",
102
102
  /** 显示为下拉的菜单列表. */
103
103
  SELECT = "SELECT"
104
104
  }
105
+ /** 表单显示方式. */
106
+ export declare const enum KG_SUBMIT_DISPLAY_TYPE {
107
+ /** 弹窗. */
108
+ MODAL = "MODAL",
109
+ /** 抽屉. */
110
+ DRAWER = "DRAWER"
111
+ }
105
112
  /** 定制级别. */
106
113
  export declare const enum KG_CUSTOM_LEVEL {
107
114
  /** 系统. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.5.9",
3
+ "version": "0.5.11",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",
@@ -1,7 +0,0 @@
1
- import { ExtractPropTypes } from 'vue';
2
- export declare const getProps: () => any;
3
- export declare type IKgSearchConfigModalConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
- 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>, {} | {
5
- [x: string]: any;
6
- }>;
7
- export default _default;
@@ -1,3 +0,0 @@
1
- export declare const FORM_ID__VAR_GRID_CONFIG = "kg-search.VarGridConfig";
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;