@kengic/vue 0.21.3 → 0.21.4-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +6038 -6033
  3. package/dist/src/components/KgForm/KgForm.d.ts +36 -36
  4. package/dist/src/components/KgForm/index.d.ts +48 -48
  5. package/dist/src/components/KgModal/KgModal.d.ts +14 -14
  6. package/dist/src/components/KgVar/index.hooks.d.ts +2776 -108
  7. package/dist/src/components/KgVar/index.store.d.ts +3032 -23
  8. package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +1 -0
  9. package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +0 -1
  10. package/dist/src/components/KgVarConfig/components/{KgVarConfig.FormIDsModal.d.ts → KgVarConfig.SelectFormIdModal.d.ts} +5 -2
  11. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -1
  12. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +0 -1
  13. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -1
  14. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariableCatalog.d.ts +0 -1
  15. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +0 -1
  16. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +0 -1
  17. package/dist/src/components/KgVarConfig/index.vm.d.ts +1 -1
  18. package/dist/src/consts/i18n/en.d.ts +1 -1
  19. package/dist/src/consts/i18n/zh_CN.d.ts +1 -1
  20. package/dist/src/consts/index.d.ts +7 -3
  21. package/dist/src/helpers/ant-design-vue.d.ts +13 -13
  22. package/package.json +93 -93
  23. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariableCatalog.data.d.ts +0 -3
  24. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +0 -3
@@ -1,2 +1,3 @@
1
+ import './KgVarConfig.less';
1
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<{}>>, {}>;
2
3
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import './KgVarConfig.Modal.less';
3
2
  export declare const getProps: () => {
4
3
  visible: PropType<boolean>;
5
4
  'onUpdate:visible': PropType<(value: boolean) => void>;
@@ -1,12 +1,15 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import './KgVarConfig.FormIDsModal.less';
3
2
  export declare const getProps: () => {
4
3
  visible: PropType<boolean>;
5
4
  'onUpdate:visible': PropType<(value: boolean) => void>;
6
5
  formIDs: PropType<string[]>;
7
6
  onKgOk: PropType<(formID: string) => void>;
8
7
  };
9
- export declare type IKgVarConfigFormIDsModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
8
+ export declare type KgVarConfigSelectFormIdModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
9
+ /**
10
+ * <p>界面标识选择弹窗.</p>
11
+ * <p>当前界面存在多个界面标识时, 需要用户手动选择要配置哪个弹窗.</p>
12
+ */
10
13
  declare const _default: import("vue").DefineComponent<{
11
14
  visible: PropType<boolean>;
12
15
  'onUpdate:visible': PropType<(value: boolean) => void>;
@@ -1,5 +1,4 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import './KgVarConfig.Modal.Button.VarButton.less';
3
2
  export declare const FORM_ID__VAR_BUTTON = "kg-button.VarButton";
4
3
  export declare const getProps: () => {
5
4
  /** 主页面的页面标识. */
@@ -1,5 +1,4 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import './KgVarConfig.Modal.Submit.VarSubmitField.less';
3
2
  export declare const FORM_ID__VAR_SUBMIT_FIELD = "kg-submit.VarSubmitField";
4
3
  export declare const getProps: () => {
5
4
  /** 主页面的页面标识. */
@@ -1,5 +1,4 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import './KgVarConfig.Modal.Var.CreateModal.less';
3
2
  export declare const getProps: () => {
4
3
  visible: PropType<boolean>;
5
4
  'onUpdate:visible': PropType<(value: boolean) => void>;
@@ -1,3 +1,2 @@
1
- import './KgVarConfig.Modal.Var.VarVariableCatalog.less';
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<{}>>, {}>;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- import './KgVarConfig.Modal.Var.Vars.less';
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<{}>>, {}>;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- import './KgVarConfig.Modal.Var.less';
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<{}>>, {}>;
3
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
2
  /** 正在被配置的界面标识. */
3
- export declare const DI_CONFIG_FORM_ID: InjectionKey<Ref<string | null>>;
3
+ export declare const DI__KG_VAR_CONFIG__HOST_FORM_ID: InjectionKey<Ref<string | null>>;
@@ -170,7 +170,7 @@ declare const _default: {
170
170
  variableName: string;
171
171
  variables: string;
172
172
  };
173
- KgVarConfigFormIDsModal: {
173
+ KgVarConfigSelectFormIdModal: {
174
174
  title: string;
175
175
  };
176
176
  KgVarConfigModalButton: {
@@ -169,7 +169,7 @@ declare const _default: {
169
169
  variableName: string;
170
170
  variables: string;
171
171
  };
172
- KgVarConfigFormIDsModal: {
172
+ KgVarConfigSelectFormIdModal: {
173
173
  title: string;
174
174
  };
175
175
  KgVarConfigModalButton: {
@@ -248,10 +248,14 @@ export declare enum KG_HTTP_HEADERS {
248
248
  /** 拼接后的查询 SQL: ORDER BY. */
249
249
  KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql",
250
250
  /**
251
- * 高级查询时, 每个查询字段的操作符(=,>,<...).
252
- * 是一个 JSON 字符串, 由后端进行解析.
251
+ * <p>高级查询时, 每个查询字段的操作符(=,>,<...).</p>
252
+ * <p>是一个 JSON 字符串, 由后端进行解析.</p>
253
253
  */
254
- KG_QUERY_OPERATOR = "Kg-Query-Operator"
254
+ KG_QUERY_OPERATOR = "Kg-Query-Operator",
255
+ /**
256
+ * 仓库编号.
257
+ */
258
+ KG_WAREHOUSE = "Kg-Warehouse"
255
259
  }
256
260
  /** 特殊属性:请求返回的原始响应数据. */
257
261
  export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
@@ -9,11 +9,11 @@ export declare const formProps: () => {
9
9
  layout: PropType<"horizontal" | "inline" | "vertical">;
10
10
  labelCol: {
11
11
  type: PropType<Partial<ExtractPropTypes<{
12
- span: (StringConstructor | NumberConstructor)[];
13
- order: (StringConstructor | NumberConstructor)[];
14
- offset: (StringConstructor | NumberConstructor)[];
15
- push: (StringConstructor | NumberConstructor)[];
16
- pull: (StringConstructor | NumberConstructor)[];
12
+ span: (NumberConstructor | StringConstructor)[];
13
+ order: (NumberConstructor | StringConstructor)[];
14
+ offset: (NumberConstructor | StringConstructor)[];
15
+ push: (NumberConstructor | StringConstructor)[];
16
+ pull: (NumberConstructor | StringConstructor)[];
17
17
  xs: {
18
18
  type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
19
19
  default: string | number | import("ant-design-vue/lib/grid").ColSize;
@@ -43,16 +43,16 @@ export declare const formProps: () => {
43
43
  default: string | number | import("ant-design-vue/lib/grid").ColSize;
44
44
  };
45
45
  prefixCls: StringConstructor;
46
- flex: (StringConstructor | NumberConstructor)[];
46
+ flex: (NumberConstructor | StringConstructor)[];
47
47
  }>> & HTMLAttributes>;
48
48
  };
49
49
  wrapperCol: {
50
50
  type: PropType<Partial<ExtractPropTypes<{
51
- span: (StringConstructor | NumberConstructor)[];
52
- order: (StringConstructor | NumberConstructor)[];
53
- offset: (StringConstructor | NumberConstructor)[];
54
- push: (StringConstructor | NumberConstructor)[];
55
- pull: (StringConstructor | NumberConstructor)[];
51
+ span: (NumberConstructor | StringConstructor)[];
52
+ order: (NumberConstructor | StringConstructor)[];
53
+ offset: (NumberConstructor | StringConstructor)[];
54
+ push: (NumberConstructor | StringConstructor)[];
55
+ pull: (NumberConstructor | StringConstructor)[];
56
56
  xs: {
57
57
  type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
58
58
  default: string | number | import("ant-design-vue/lib/grid").ColSize;
@@ -82,7 +82,7 @@ export declare const formProps: () => {
82
82
  default: string | number | import("ant-design-vue/lib/grid").ColSize;
83
83
  };
84
84
  prefixCls: StringConstructor;
85
- flex: (StringConstructor | NumberConstructor)[];
85
+ flex: (NumberConstructor | StringConstructor)[];
86
86
  }>> & HTMLAttributes>;
87
87
  };
88
88
  colon: {
@@ -166,7 +166,7 @@ export declare const modalProps: () => {
166
166
  type: BooleanConstructor;
167
167
  default: undefined;
168
168
  };
169
- width: (StringConstructor | NumberConstructor)[];
169
+ width: (NumberConstructor | StringConstructor)[];
170
170
  footer: PropType<any>;
171
171
  okText: PropType<any>;
172
172
  okType: PropType<LegacyButtonType>;
package/package.json CHANGED
@@ -1,93 +1,93 @@
1
- {
2
- "name": "@kengic/vue",
3
- "version": "0.21.3",
4
- "scripts": {
5
- "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
- "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
7
- "--------------------------------------------------": "",
8
- "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
9
- "publish:all:patch": "npm run bump-version:patch && npm run publish:all",
10
- "publish:all:minor": "npm run bump-version:minor && npm run publish:all",
11
- "publish:all:major": "npm run bump-version:major && npm run publish:all",
12
- "----- --------------------------------------------": "",
13
- "gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
14
- "--- ----------------------------------------------": "",
15
- "bump-to:luotao.wms-vue3--dev-1.0": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.ts",
16
- "copy-to:luotao.wms-vue3--dev-1.0": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.ts",
17
- "bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
18
- "copy-to:luotao.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
19
- "- ------------------------------------------------": "",
20
- "cnpm:sync": "npm run switch-node-version && cnpm sync @kengic/vue",
21
- "switch-node-version": "nvm use 18.16.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",
22
- "-- -----------------------------------------------": "",
23
- "bump-version:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
24
- "bump-version:major": "npm run switch-node-version && tsx scripts/bump.ts major",
25
- "bump-version:minor": "npm run switch-node-version && tsx scripts/bump.ts minor",
26
- "bump-version:patch": "npm run switch-node-version && tsx scripts/bump.ts patch",
27
- "---- ---------------------------------------------": "",
28
- "publish:all": "npm run switch-node-version && tsx scripts/publish.ts",
29
- "publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
30
- },
31
- "peerDependencies": {
32
- "vue": "3.2.43"
33
- },
34
- "dependencies": {
35
- "@ant-design/icons-vue": "6.1.0",
36
- "@iconify-icons/akar-icons": "1.2.19",
37
- "@iconify-icons/ant-design": "1.2.5",
38
- "@iconify-icons/fluent-mdl2": "1.2.1",
39
- "@iconify-icons/material-symbols": "1.2.58",
40
- "@iconify-icons/mdi": "1.2.48",
41
- "@iconify-icons/ph": "1.2.5",
42
- "@iconify/vue": "4.1.1",
43
- "@vueuse/core": "8.9.4",
44
- "@vueuse/shared": "8.9.4",
45
- "ant-design-vue": "3.2.14",
46
- "axios": "0.26.1",
47
- "dayjs": "1.11.10",
48
- "filesize": "10.1.0",
49
- "html-to-image": "1.11.11",
50
- "lodash-es": "4.17.21",
51
- "pinia": "2.0.12",
52
- "store": "2.0.12",
53
- "vue-router": "4.1.6"
54
- },
55
- "devDependencies": {
56
- "@kengic/pont": "1.2.11",
57
- "@types/lodash-es": "4.17.9",
58
- "@types/node": "18.18.4",
59
- "@types/semver": "7.5.3",
60
- "@types/store": "2.0.3",
61
- "@vitejs/plugin-vue": "3.2.0",
62
- "@vitejs/plugin-vue-jsx": "1.3.10",
63
- "chalk": "4.1.2",
64
- "less": "4.1.3",
65
- "prettier": "2.8.8",
66
- "rimraf": "3.0.2",
67
- "rollup": "2.79.1",
68
- "semver": "7.5.4",
69
- "tsx": "3.12.3",
70
- "typescript": "~4.8.4",
71
- "vite": "3.2.5",
72
- "vue": "3.2.43",
73
- "vue-tsc": "1.8.27"
74
- },
75
- "main": "./dist/kengic-vue.js",
76
- "module": "./dist/kengic-vue.js",
77
- "types": "./dist/src/index.d.ts",
78
- "exports": {
79
- ".": {
80
- "import": "./dist/kengic-vue.js"
81
- },
82
- "./dist/index.css": "./dist/index.css"
83
- },
84
- "prettier": {
85
- "endOfLine": "auto",
86
- "printWidth": 160,
87
- "semi": true,
88
- "singleAttributePerLine": true,
89
- "singleQuote": true,
90
- "tabWidth": 4,
91
- "trailingComma": "all"
92
- }
93
- }
1
+ {
2
+ "name": "@kengic/vue",
3
+ "version": "0.21.4-beta.1",
4
+ "scripts": {
5
+ "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
+ "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
7
+ "--------------------------------------------------": "",
8
+ "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
9
+ "publish:all:patch": "npm run bump-version:patch && npm run publish:all",
10
+ "publish:all:minor": "npm run bump-version:minor && npm run publish:all",
11
+ "publish:all:major": "npm run bump-version:major && npm run publish:all",
12
+ "----- --------------------------------------------": "",
13
+ "gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
14
+ "--- ----------------------------------------------": "",
15
+ "bump-to:luotao.wms-vue3--dev-1.0": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.ts",
16
+ "copy-to:luotao.wms-vue3--dev-1.0": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.ts",
17
+ "bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
18
+ "copy-to:luotao.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
19
+ "- ------------------------------------------------": "",
20
+ "cnpm:sync": "npm run switch-node-version && cnpm sync @kengic/vue",
21
+ "switch-node-version": "nvm use 18.16.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",
22
+ "-- -----------------------------------------------": "",
23
+ "bump-version:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
24
+ "bump-version:major": "npm run switch-node-version && tsx scripts/bump.ts major",
25
+ "bump-version:minor": "npm run switch-node-version && tsx scripts/bump.ts minor",
26
+ "bump-version:patch": "npm run switch-node-version && tsx scripts/bump.ts patch",
27
+ "---- ---------------------------------------------": "",
28
+ "publish:all": "npm run switch-node-version && tsx scripts/publish.ts",
29
+ "publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
30
+ },
31
+ "peerDependencies": {
32
+ "vue": "3.2.43"
33
+ },
34
+ "dependencies": {
35
+ "@ant-design/icons-vue": "6.1.0",
36
+ "@iconify-icons/akar-icons": "1.2.19",
37
+ "@iconify-icons/ant-design": "1.2.5",
38
+ "@iconify-icons/fluent-mdl2": "1.2.1",
39
+ "@iconify-icons/material-symbols": "1.2.58",
40
+ "@iconify-icons/mdi": "1.2.48",
41
+ "@iconify-icons/ph": "1.2.5",
42
+ "@iconify/vue": "4.1.1",
43
+ "@vueuse/core": "8.9.4",
44
+ "@vueuse/shared": "8.9.4",
45
+ "ant-design-vue": "3.2.14",
46
+ "axios": "0.26.1",
47
+ "dayjs": "1.11.10",
48
+ "filesize": "10.1.0",
49
+ "html-to-image": "1.11.11",
50
+ "lodash-es": "4.17.21",
51
+ "pinia": "2.0.12",
52
+ "store": "2.0.12",
53
+ "vue-router": "4.1.6"
54
+ },
55
+ "devDependencies": {
56
+ "@kengic/pont": "1.2.11",
57
+ "@types/lodash-es": "4.17.9",
58
+ "@types/node": "18.18.4",
59
+ "@types/semver": "7.5.3",
60
+ "@types/store": "2.0.3",
61
+ "@vitejs/plugin-vue": "3.2.0",
62
+ "@vitejs/plugin-vue-jsx": "1.3.10",
63
+ "chalk": "4.1.2",
64
+ "less": "4.1.3",
65
+ "prettier": "2.8.8",
66
+ "rimraf": "3.0.2",
67
+ "rollup": "2.79.1",
68
+ "semver": "7.5.4",
69
+ "tsx": "3.12.3",
70
+ "typescript": "~4.8.4",
71
+ "vite": "3.2.5",
72
+ "vue": "3.2.43",
73
+ "vue-tsc": "1.8.27"
74
+ },
75
+ "main": "./dist/kengic-vue.js",
76
+ "module": "./dist/kengic-vue.js",
77
+ "types": "./dist/src/index.d.ts",
78
+ "exports": {
79
+ ".": {
80
+ "import": "./dist/kengic-vue.js"
81
+ },
82
+ "./dist/index.css": "./dist/index.css"
83
+ },
84
+ "prettier": {
85
+ "endOfLine": "auto",
86
+ "printWidth": 160,
87
+ "semi": true,
88
+ "singleAttributePerLine": true,
89
+ "singleQuote": true,
90
+ "tabWidth": 4,
91
+ "trailingComma": "all"
92
+ }
93
+ }
@@ -1,3 +0,0 @@
1
- import { ColumnsType } from 'ant-design-vue/es/table';
2
- import { VarContext } from '../../../../apis/WMS/models';
3
- export declare const columns: () => ColumnsType<VarContext>;
@@ -1,3 +0,0 @@
1
- import { ColumnsType } from 'ant-design-vue/es/table';
2
- import { VarContext } from '../../../../apis/WMS/models';
3
- export declare const columns: () => ColumnsType<VarContext>;