@kengic/vue 0.2.1-beta.1 → 0.2.1-beta.10

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 (47) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +4592 -2197
  3. package/dist/src/apis/WMS/models.d.ts +177 -9
  4. package/dist/src/components/KgButton/KgButton.Copy.d.ts +21 -15
  5. package/dist/src/components/KgButton/KgButton.Create.d.ts +23 -15
  6. package/dist/src/components/KgButton/KgButton.Delete.d.ts +21 -15
  7. package/dist/src/components/KgButton/KgButton.Export.d.ts +21 -15
  8. package/dist/src/components/KgButton/KgButton.Import.d.ts +32 -0
  9. package/dist/src/components/KgButton/KgButton.Other.d.ts +32 -0
  10. package/dist/src/components/KgButton/KgButton.Search.d.ts +32 -0
  11. package/dist/src/components/KgButton/KgButton.Update.d.ts +23 -15
  12. package/dist/src/components/KgButton/KgButton.d.ts +22 -16
  13. package/dist/src/components/KgButton/KgButtons.d.ts +22 -0
  14. package/dist/src/components/KgButton/index.d.ts +1 -0
  15. package/dist/src/components/KgButton/index.vm.d.ts +15 -9
  16. package/dist/src/components/KgControl/KgControl.Date.d.ts +28 -22
  17. package/dist/src/components/KgControl/KgControl.Input.d.ts +28 -22
  18. package/dist/src/components/KgControl/KgControl.InputNumber.d.ts +110 -0
  19. package/dist/src/components/KgControl/KgControl.Select.d.ts +32 -26
  20. package/dist/src/components/KgControl/KgControl.Switch.d.ts +28 -22
  21. package/dist/src/components/KgControl/KgControl.d.ts +28 -22
  22. package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.Modal.d.ts +4 -4
  23. package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.d.ts +4 -4
  24. package/dist/src/components/KgControl/index.vm.d.ts +23 -12
  25. package/dist/src/components/KgSearch/KgSearch.d.ts +30 -7
  26. package/dist/src/components/KgSearch/index.d.ts +1 -1
  27. package/dist/src/components/KgSearch/index.hooks.d.ts +18 -0
  28. package/dist/src/components/KgSearch/index.store.d.ts +40 -7
  29. package/dist/src/components/KgTable/{KgTable.Td.d.ts → KgTable.Cell.d.ts} +1 -1
  30. package/dist/src/components/KgTable/KgTable.Info.d.ts +53 -0
  31. package/dist/src/components/KgTable/KgTable.data.d.ts +7 -5
  32. package/dist/src/components/KgTable/index.d.ts +1 -1
  33. package/dist/src/components/KgTable/index.hooks.d.ts +15 -0
  34. package/dist/src/components/KgTable/index.store.d.ts +25 -6
  35. package/dist/src/components/KgTable/index.vm.d.ts +14 -4
  36. package/dist/src/components/KgVar/index.d.ts +1 -1
  37. package/dist/src/components/KgVar/index.hooks.d.ts +29 -0
  38. package/dist/src/components/KgVar/index.store.d.ts +29 -4
  39. package/dist/src/consts/i18n/en.d.ts +13 -0
  40. package/dist/src/consts/i18n/index.d.ts +26 -0
  41. package/dist/src/consts/i18n/zh_CN.d.ts +13 -0
  42. package/dist/src/consts/index.d.ts +17 -19
  43. package/dist/src/utils/kg.util.d.ts +4 -0
  44. package/package.json +5 -1
  45. package/dist/src/components/KgSearch/index.hook.d.ts +0 -4
  46. package/dist/src/components/KgTable/index.hook.d.ts +0 -7
  47. package/dist/src/components/KgVar/index.hook.d.ts +0 -45
@@ -19,10 +19,23 @@ export declare const KG_I18N: {
19
19
  cancel: string;
20
20
  confirm: string;
21
21
  lookup: string;
22
+ button: string;
22
23
  confirmDelete: string;
24
+ emptyText: string;
23
25
  KgSearch: {
24
26
  title: string;
25
27
  };
28
+ KgTable: {
29
+ emptyText: string;
30
+ totalText: string;
31
+ };
32
+ KgTableInfo: {
33
+ check: string;
34
+ row: string;
35
+ clearCheck: string;
36
+ locate: string;
37
+ clearTable: string;
38
+ };
26
39
  };
27
40
  };
28
41
  zh_CN: {
@@ -45,10 +58,23 @@ export declare const KG_I18N: {
45
58
  cancel: string;
46
59
  confirm: string;
47
60
  lookup: string;
61
+ button: string;
48
62
  confirmDelete: string;
63
+ emptyText: string;
49
64
  KgSearch: {
50
65
  title: string;
51
66
  };
67
+ KgTable: {
68
+ emptyText: string;
69
+ totalText: string;
70
+ };
71
+ KgTableInfo: {
72
+ check: string;
73
+ row: string;
74
+ clearCheck: string;
75
+ locate: string;
76
+ clearTable: string;
77
+ };
52
78
  };
53
79
  };
54
80
  };
@@ -18,10 +18,23 @@ declare const _default: {
18
18
  cancel: string;
19
19
  confirm: string;
20
20
  lookup: string;
21
+ button: string;
21
22
  confirmDelete: string;
23
+ emptyText: string;
22
24
  KgSearch: {
23
25
  title: string;
24
26
  };
27
+ KgTable: {
28
+ emptyText: string;
29
+ totalText: string;
30
+ };
31
+ KgTableInfo: {
32
+ check: string;
33
+ row: string;
34
+ clearCheck: string;
35
+ locate: string;
36
+ clearTable: string;
37
+ };
25
38
  };
26
39
  };
27
40
  export default _default;
@@ -15,32 +15,30 @@ export declare const enum KG_APPS_PREFIX {
15
15
  /** 表单控件类型. */
16
16
  export declare const enum KG_CONTROL_TYPE {
17
17
  /** 文本. */
18
- INPUT = "Input_Basic",
18
+ INPUT = "INPUT",
19
19
  /** 密码. */
20
- INPUT_PASSWORD = "Input_Password",
20
+ INPUT_PASSWORD = "INPUT_PASSWORD",
21
21
  /** 多行文本. */
22
- INPUT_AREA = "Input_AreaText",
22
+ INPUT_AREA = "INPUT_AREA",
23
23
  /** 数字. */
24
- INPUT_NUMBER = "InputNumber_Basic",
25
- CHECKBOX = "Checkbox_Basic",
26
- SWITCH = "Switch_Basic",
24
+ INPUT_NUMBER = "INPUT_NUMBER",
25
+ CHECKBOX = "CHECKBOX",
26
+ SWITCH = "SWITCH",
27
27
  /** 下拉列表单选. */
28
- SELECT = "Select_Basic",
28
+ SELECT = "SELECT",
29
29
  /** 下拉列表多选. */
30
- SELECT_MULTIPLE = "Select_Multiple",
31
- DATE_DATE = "DatePick_Date",
32
- DATE_DATE_RANGE = "DatePick_DateRange",
33
- DATE_DATETIME = "DatePick_DateTime",
34
- DATE_DATETIME_RANGE = "DatePick_DateTimeRange",
35
- DATE_WEEK = "DatePick_Week",
36
- DATE_MONTH = "DatePick_Month",
37
- DATE_YEAR = "DatePick_Year",
30
+ SELECT_MULTIPLE = "SELECT_MULTIPLE",
31
+ DATE_DATE = "DATE_DATE",
32
+ DATE_DATE_RANGE = "DATE_DATE_RANGE",
33
+ DATE_DATETIME = "DATE_DATETIME",
34
+ DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE",
35
+ DATE_WEEK = "DATE_WEEK",
36
+ DATE_MONTH = "DATE_MONTH",
37
+ DATE_YEAR = "DATE_YEAR",
38
38
  /** 单位. */
39
- UOM = "Uom",
40
- /** 秒表计时. */
41
- STOPWATCH = "Stopwatch",
39
+ UOM = "UOM",
42
40
  /** 文件上传按钮. */
43
- FILE_UPLOAD_BUTTON = "FileUpload_Button"
41
+ BTN_UPLOAD = "BTN_UPLOAD"
44
42
  }
45
43
  /** 所有模块. */
46
44
  export declare const KG_APPS: Array<KG_APP>;
@@ -46,4 +46,8 @@ export declare class KgUtil {
46
46
  destroy: () => void;
47
47
  update: (newConfig: ModalFuncProps) => void;
48
48
  };
49
+ /**
50
+ * 是否是表单验证错误.
51
+ */
52
+ static isFormValidateError(e: any): boolean;
49
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.2.1-beta.1",
3
+ "version": "0.2.1-beta.10",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",
@@ -10,6 +10,7 @@
10
10
  "publish:all:major": "npm run bump-version:major && npm run publish:all",
11
11
  "bump-to:luotao.wms-vue3": "tsx scripts/bump-to.luotao.wms-vue3.ts",
12
12
  "copy-to:luotao.wms-vue3": "tsx scripts/copy-to.luotao.wms-vue3.ts",
13
+ "copy-to:luotao.wms-vue3 & build": "npm run build:dev && npm run copy-to:luotao.wms-vue3",
13
14
  "gen:apis:WMS": "kengic-pont generate-apis --config kg.config.ts --origin WMS",
14
15
  "--------------------": "",
15
16
  "bump-version:beta": "tsx scripts/bump.ts beta",
@@ -24,6 +25,9 @@
24
25
  },
25
26
  "dependencies": {
26
27
  "@ant-design/icons-vue": "6.1.0",
28
+ "@iconify/vue": "4.1.1",
29
+ "@vueuse/core": "8.9.4",
30
+ "@vueuse/shared": "8.9.4",
27
31
  "ant-design-vue": "3.2.14",
28
32
  "axios": "0.26.1",
29
33
  "dayjs": "1.11.6",
@@ -1,4 +0,0 @@
1
- export declare function useKgSearch(): {
2
- onSearch: (cb: () => void) => void;
3
- onReset: (cb: () => void) => void;
4
- };
@@ -1,7 +0,0 @@
1
- import { IKgTableRow } from './index.vm';
2
- /**
3
- * @param formID 界面标识.
4
- */
5
- export declare function useKgTable(formID?: string): {
6
- selectedRows: import("vue").ComputedRef<IKgTableRow[] | null>;
7
- };
@@ -1,45 +0,0 @@
1
- import { ComputedRef, Ref } from 'vue';
2
- /**
3
- * 启用变量.
4
- * 在子组件中调用时, 可以不传该参数, 此时会通过依赖注入获取.
5
- * 在寄生页面中想访问宿主页面的变量配置时, 需要传宿主页面的界面标识.
6
- * 在组件外调用时, 必须传界面标识.
7
- * @param formID 界面标识.
8
- */
9
- export declare function useKgVar(formID?: string): {
10
- formID: string;
11
- kgVarStore: import("pinia").Store<"KgVar", import("./index.store").KgVarState, {
12
- getTopFormID(): string | null;
13
- getVarCatalogs(): (formID?: string | null | undefined) => import("../..").VarCatalog[] | null;
14
- getVarCatalog(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../..").VarCatalog | null;
15
- getVarLookup(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../..").VarLookup | null;
16
- getVarGridMasters(): (formID?: string | null | undefined) => import("../..").VarGridMasterDTO[] | null;
17
- getVarGridMaster(): (formID?: string | null | undefined) => import("../..").VarGridMasterDTO | null;
18
- getVarGridDetails(): (formID?: string | null | undefined) => import("../..").VarGridDetail[] | null;
19
- }, {
20
- leave(formID: string): void;
21
- deleteAll(formID: string): void;
22
- retrieveAll(formID?: string | null | undefined): Promise<void>;
23
- enter(formID: string): Promise<void>;
24
- }>;
25
- t1: (varName?: string | null) => ComputedRef<string>;
26
- t2: (varName?: string | null) => string;
27
- } | {
28
- formID: string;
29
- kgVarStore: import("pinia").Store<"KgVar", import("./index.store").KgVarState, {
30
- getTopFormID(): string | null;
31
- getVarCatalogs(): (formID?: string | null | undefined) => import("../..").VarCatalog[] | null;
32
- getVarCatalog(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../..").VarCatalog | null;
33
- getVarLookup(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../..").VarLookup | null;
34
- getVarGridMasters(): (formID?: string | null | undefined) => import("../..").VarGridMasterDTO[] | null;
35
- getVarGridMaster(): (formID?: string | null | undefined) => import("../..").VarGridMasterDTO | null;
36
- getVarGridDetails(): (formID?: string | null | undefined) => import("../..").VarGridDetail[] | null;
37
- }, {
38
- leave(formID: string): void;
39
- deleteAll(formID: string): void;
40
- retrieveAll(formID?: string | null | undefined): Promise<void>;
41
- enter(formID: string): Promise<void>;
42
- }>;
43
- t1: (varName?: string | null) => Ref<string>;
44
- t2: (varName?: string | null) => string;
45
- };