@kengic/vue 0.0.2-beta.7 → 0.1.0

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 (58) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +2708 -0
  3. package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +21 -0
  4. package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +1 -0
  5. package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
  6. package/dist/src/apis/WMS/index.d.ts +2 -0
  7. package/dist/src/apis/WMS/models.d.ts +62 -0
  8. package/dist/src/apis/api.d.ts +1 -0
  9. package/dist/src/apis/def.d.ts +1 -0
  10. package/dist/src/apis/index.d.ts +2 -0
  11. package/dist/src/components/KgButton/KgButton.Create.d.ts +10 -0
  12. package/dist/src/components/KgButton/KgButton.Delete.d.ts +11 -0
  13. package/dist/src/components/KgButton/KgButton.Update.d.ts +10 -0
  14. package/dist/src/components/KgButton/KgButton.d.ts +13 -0
  15. package/dist/src/components/KgButton/index.d.ts +4 -0
  16. package/dist/src/components/KgButton/index.vm.d.ts +9 -0
  17. package/dist/src/components/KgControl/KgControl.Input.d.ts +60 -0
  18. package/dist/src/components/KgControl/KgControl.Select.d.ts +57 -0
  19. package/dist/src/components/KgControl/KgControl.d.ts +60 -0
  20. package/dist/src/components/KgControl/index.d.ts +171 -0
  21. package/dist/src/components/KgControl/index.vm.d.ts +55 -0
  22. package/dist/src/components/KgPage/KgPage.d.ts +3 -0
  23. package/dist/src/components/KgProgressA/KgProgressA.d.ts +58 -0
  24. package/dist/src/components/KgSearch/KgSearch.d.ts +16 -0
  25. package/dist/src/components/KgSearch/index.d.ts +4 -0
  26. package/dist/src/components/KgSearch/index.vm.d.ts +9 -0
  27. package/dist/src/components/KgVar/hooks/index.d.ts +48 -0
  28. package/dist/src/components/KgVar/index.d.ts +2 -0
  29. package/dist/src/components/KgVar/store/index.d.ts +14 -0
  30. package/dist/src/components/KgVar/store/index.data.d.ts +9 -0
  31. package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +24 -0
  32. package/dist/src/components/index.d.ts +8 -0
  33. package/dist/src/consts/i18n/en.d.ts +26 -0
  34. package/dist/src/consts/i18n/index.d.ts +53 -0
  35. package/dist/src/consts/i18n/t.d.ts +20 -0
  36. package/dist/src/consts/i18n/zh_CN.d.ts +26 -0
  37. package/dist/src/consts/index.d.ts +65 -0
  38. package/dist/src/consts/injection-keys.const.d.ts +8 -0
  39. package/dist/src/index.d.ts +6 -0
  40. package/dist/src/services/http-client.d.ts +32 -0
  41. package/dist/src/services/index.d.ts +1 -0
  42. package/dist/src/utils/app.util.d.ts +17 -0
  43. package/dist/src/utils/index.d.ts +4 -0
  44. package/dist/src/utils/kg.util.d.ts +38 -0
  45. package/dist/src/utils/logger.util.d.ts +40 -0
  46. package/dist/src/utils/route.util.d.ts +6 -0
  47. package/dist/src/utils/var.util.d.ts +11 -0
  48. package/kg.config.ts +23 -0
  49. package/package.json +46 -33
  50. package/dist/index.js +0 -56
  51. package/dist/types/components/B.d.ts +0 -8
  52. package/dist/types/components/ComponentA.vue.d.ts +0 -6
  53. package/dist/types/components/index.d.ts +0 -3
  54. package/dist/types/constants/MyConstants.d.ts +0 -1
  55. package/dist/types/constants/index.d.ts +0 -2
  56. package/dist/types/index.d.ts +0 -10
  57. package/dist/types/utils/MyUtil.d.ts +0 -5
  58. package/dist/types/utils/index.d.ts +0 -2
@@ -0,0 +1,16 @@
1
+ import './KgSearch.less';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ kgModel: {
4
+ type: import("vue").PropType<Record<string, any>>;
5
+ required: boolean;
6
+ };
7
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSearch" | "kgReset")[], "kgSearch" | "kgReset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ kgModel: {
9
+ type: import("vue").PropType<Record<string, any>>;
10
+ required: boolean;
11
+ };
12
+ }>> & {
13
+ onKgSearch?: ((...args: any[]) => any) | undefined;
14
+ onKgReset?: ((...args: any[]) => any) | undefined;
15
+ }, {}>;
16
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import KgSearch from './KgSearch';
2
+ import { type KgSearchProps } from './index.vm';
3
+ export { type KgSearchProps };
4
+ export default KgSearch;
@@ -0,0 +1,9 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export declare const getProps: () => {
3
+ /** 表单对象. */
4
+ kgModel: {
5
+ type: PropType<Record<string, any>>;
6
+ required: boolean;
7
+ };
8
+ };
9
+ export declare type KgSearchProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
@@ -0,0 +1,48 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ /**
3
+ * 启用变量.
4
+ * @param formID 界面标识.
5
+ */
6
+ export declare function useKgVar(formID: string): {
7
+ /** 变量配置数据. */
8
+ kgVarStore: import("pinia").Store<"KgVar", import("../store/index.data").KgVarState, {
9
+ getTopFormID(): string | null;
10
+ getVarCatalogs(): Map<string, import("../../../apis/WMS/models").VarCatalog[]>;
11
+ }, {
12
+ leave(formID: string): void;
13
+ deleteAll(formID: string): void;
14
+ retrieveAll(formID?: string | null | undefined): Promise<void>;
15
+ enter(formID: string): Promise<void>;
16
+ }>;
17
+ /**
18
+ * 翻译变量. 响应式的.
19
+ * @param varName 变量名称.
20
+ */
21
+ t1: (varName?: string | null) => ComputedRef<string>;
22
+ /**
23
+ * 翻译变量. 不是响应式的.
24
+ * @param varName 变量名称.
25
+ */
26
+ t2: (varName?: string | null) => string;
27
+ } | {
28
+ /** 变量配置数据. */
29
+ kgVarStore: import("pinia").Store<"KgVar", import("../store/index.data").KgVarState, {
30
+ getTopFormID(): string | null;
31
+ getVarCatalogs(): Map<string, import("../../../apis/WMS/models").VarCatalog[]>;
32
+ }, {
33
+ leave(formID: string): void;
34
+ deleteAll(formID: string): void;
35
+ retrieveAll(formID?: string | null | undefined): Promise<void>;
36
+ enter(formID: string): Promise<void>;
37
+ }>;
38
+ /**
39
+ * 翻译变量. 响应式的.
40
+ * @param varName 变量名称.
41
+ */
42
+ t1: (varName?: string | null) => Ref<string>;
43
+ /**
44
+ * 翻译变量. 不是响应式的.
45
+ * @param varName 变量名称.
46
+ */
47
+ t2: (varName?: string | null) => string;
48
+ };
@@ -0,0 +1,2 @@
1
+ export * from './hooks';
2
+ export * from './store';
@@ -0,0 +1,14 @@
1
+ import { type StoreDefinition } from 'pinia';
2
+ import { KgVarState } from './index.data';
3
+ import { VarCatalog } from '../../../apis/WMS/models';
4
+ declare type IKgVarStore = StoreDefinition<'KgVar', KgVarState, {
5
+ getTopFormID(): string | null;
6
+ getVarCatalogs(): Map<string, Array<VarCatalog>>;
7
+ }, {
8
+ leave(formID: string): void;
9
+ deleteAll(formID: string): void;
10
+ retrieveAll(formID?: string | null): Promise<void>;
11
+ enter(formID: string): Promise<void>;
12
+ }>;
13
+ export declare const useKgVarStore: () => IKgVarStore;
14
+ export {};
@@ -0,0 +1,9 @@
1
+ import { VarCatalog } from '../../../apis/WMS/models';
2
+ export interface KgVarState {
3
+ /**
4
+ * 当前可能打开了多个界面, 需要按照先后顺序记录下来, 当打开变量配置弹窗时, 打开的是最近那个页面的变量配置.
5
+ */
6
+ formIDs: Array<string>;
7
+ /** 变量别名. */
8
+ varCatalogs: Map<string, Array<VarCatalog>>;
9
+ }
@@ -0,0 +1,24 @@
1
+ import { PropType } from 'vue';
2
+ import './KgYesOrNo.less';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /**
5
+ * 布尔数据.
6
+ * @default false
7
+ */
8
+ kgValue: {
9
+ type: PropType<boolean>;
10
+ default: boolean;
11
+ };
12
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ /**
14
+ * 布尔数据.
15
+ * @default false
16
+ */
17
+ kgValue: {
18
+ type: PropType<boolean>;
19
+ default: boolean;
20
+ };
21
+ }>>, {
22
+ kgValue: boolean;
23
+ }>;
24
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export { default as KgControl, KgControlInput, KgControlSelect, type KgControlProps } from './KgControl';
2
+ export { default as KgSearch, type KgSearchProps } from './KgSearch';
3
+ export { default as KgButton, type KgButtonProps } from './KgButton';
4
+ import KgPage from './KgPage/KgPage';
5
+ import KgProgressA from './KgProgressA/KgProgressA';
6
+ import KgYesOrNo from './KgYesOrNo/KgYesOrNo';
7
+ export { KgPage, KgProgressA, KgYesOrNo };
8
+ export * from './KgVar';
@@ -0,0 +1,26 @@
1
+ declare const _default: {
2
+ kg: {
3
+ yes: string;
4
+ no: string;
5
+ reset: string;
6
+ search: string;
7
+ query: string;
8
+ required: string;
9
+ import: string;
10
+ export: string;
11
+ add: string;
12
+ create: string;
13
+ update: string;
14
+ edit: string;
15
+ copy: string;
16
+ delete: string;
17
+ save: string;
18
+ cancel: string;
19
+ confirm: string;
20
+ confirmDelete: string;
21
+ KgSearch: {
22
+ title: string;
23
+ };
24
+ };
25
+ };
26
+ export default _default;
@@ -0,0 +1,53 @@
1
+ export declare const KG_I18N: {
2
+ en: {
3
+ kg: {
4
+ yes: string;
5
+ no: string;
6
+ reset: string;
7
+ search: string;
8
+ query: string;
9
+ required: string;
10
+ import: string;
11
+ export: string;
12
+ add: string;
13
+ create: string;
14
+ update: string;
15
+ edit: string;
16
+ copy: string;
17
+ delete: string;
18
+ save: string;
19
+ cancel: string;
20
+ confirm: string;
21
+ confirmDelete: string;
22
+ KgSearch: {
23
+ title: string;
24
+ };
25
+ };
26
+ };
27
+ zh_CN: {
28
+ kg: {
29
+ yes: string;
30
+ no: string;
31
+ reset: string;
32
+ search: string;
33
+ query: string;
34
+ required: string;
35
+ import: string;
36
+ export: string;
37
+ add: string;
38
+ create: string;
39
+ update: string;
40
+ edit: string;
41
+ copy: string;
42
+ delete: string;
43
+ save: string;
44
+ cancel: string;
45
+ confirm: string;
46
+ confirmDelete: string;
47
+ KgSearch: {
48
+ title: string;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ export * from './t';
@@ -0,0 +1,20 @@
1
+ declare type T = {
2
+ (key: string): string;
3
+ (key: string, locale: string): string;
4
+ (key: string, locale: string, list: unknown[]): string;
5
+ (key: string, locale: string, named: Record<string, unknown>): string;
6
+ (key: string, list: unknown[]): string;
7
+ (key: string, named: Record<string, unknown>): string;
8
+ };
9
+ /**
10
+ * 配置翻译方法.
11
+ * @param i18n vue-i18n 的国际化配置.
12
+ */
13
+ export declare function setupT(i18n: any): void;
14
+ /**
15
+ * 翻译.
16
+ * @param key
17
+ * @param arg
18
+ */
19
+ export declare const t: T;
20
+ export {};
@@ -0,0 +1,26 @@
1
+ declare const _default: {
2
+ kg: {
3
+ yes: string;
4
+ no: string;
5
+ reset: string;
6
+ search: string;
7
+ query: string;
8
+ required: string;
9
+ import: string;
10
+ export: string;
11
+ add: string;
12
+ create: string;
13
+ update: string;
14
+ edit: string;
15
+ copy: string;
16
+ delete: string;
17
+ save: string;
18
+ cancel: string;
19
+ confirm: string;
20
+ confirmDelete: string;
21
+ KgSearch: {
22
+ title: string;
23
+ };
24
+ };
25
+ };
26
+ export default _default;
@@ -0,0 +1,65 @@
1
+ export * from './i18n';
2
+ export * from './injection-keys.const';
3
+ /** 所有模块. */
4
+ export declare const enum KG_APPS_ENUM {
5
+ DATA_MANAGER = "data-manager",
6
+ BUSINESS_MANAGER = "business-manager",
7
+ SYS = "sys"
8
+ }
9
+ /** 模块路径前缀. */
10
+ export declare const enum KG_APPS_PREFIXS_ENUM {
11
+ DATA_MANAGER = "/wms/data-manager",
12
+ BUSINESS_MANAGER = "/wms/business-manager",
13
+ SYS = "/sys"
14
+ }
15
+ /** 表单控件类型. */
16
+ export declare const enum KG_CONTROL_TYPES_ENUM {
17
+ /** 文本. */
18
+ INPUT_BASIC = "Input_Basic",
19
+ /** 密码. */
20
+ INPUT_PASSWORD = "Input_Password",
21
+ /** 多行文本. */
22
+ INPUT_AREA = "Input_AreaText",
23
+ /** 数字. */
24
+ INPUT_NUMBER_BASIC = "InputNumber_Basic",
25
+ CHECKBOX_BASIC = "Checkbox_Basic",
26
+ SWITCH_BASIC = "Switch_Basic",
27
+ /** 下拉列表单选. */
28
+ SELECT_BASIC = "Select_Basic",
29
+ /** 下拉列表多选. */
30
+ SELECT_MULTIPLE = "Select_Multiple",
31
+ DATE_PICKER_DATE = "DatePick_Date",
32
+ DATE_PICKER_DATETIME_RANGE = "DatePick_DateTimeRange",
33
+ DATE_PICKER_DATE_RANGE = "DatePick_DateRange",
34
+ DATE_PICKER_DATETIME = "DatePick_DateTime",
35
+ DATE_PICKER_MONTH = "DatePick_Month",
36
+ DATE_PICKER_WEEK = "DatePick_Week",
37
+ DATE_PICKER_YEAR = "DatePick_Year",
38
+ /** 单位. */
39
+ UOM = "Uom",
40
+ /** 秒表计时. */
41
+ STOPWATCH = "Stopwatch",
42
+ /** 文件上传按钮. */
43
+ FILE_UPLOAD_BUTTON = "FileUpload_Button"
44
+ }
45
+ /** 所有模块. */
46
+ export declare const KG_APPS: Array<KG_APPS_ENUM>;
47
+ /** 按钮类型. */
48
+ export declare const enum KG_BUTTON_TYPES_ENUM {
49
+ /** 创建. */
50
+ CREATE = "Create",
51
+ /** 创建. */
52
+ UPDATE = "Update",
53
+ /** 复制. */
54
+ COPY = "Copy",
55
+ /** 删除. */
56
+ DELETE = "Delete",
57
+ /** 查询. */
58
+ SEARCH = "Search",
59
+ /** 清空查询条件. */
60
+ CLEAR = "Clear",
61
+ /** 刷新. */
62
+ REFRESH = "Refresh",
63
+ /** 其他. */
64
+ OTHER = "Other"
65
+ }
@@ -0,0 +1,8 @@
1
+ import { ComputedRef, InjectionKey } from 'vue';
2
+ import { Pinia } from 'pinia';
3
+ /** 界面标识. */
4
+ export declare const KG_DI_FORM_ID: InjectionKey<string>;
5
+ /** 语言. */
6
+ export declare const KG_DI_LOCALE: InjectionKey<ComputedRef<"zh_CN" | "en">>;
7
+ /** pinia. */
8
+ export declare const KG_DI_PINIA: InjectionKey<Pinia>;
@@ -0,0 +1,6 @@
1
+ import './assets/index.less';
2
+ export * from './apis';
3
+ export * from './components';
4
+ export * from './consts';
5
+ export * from './services';
6
+ export * from './utils';
@@ -0,0 +1,32 @@
1
+ import { type AxiosRequestConfig } from 'axios';
2
+ interface IHttpClient {
3
+ request<T = any>(config: IRequestConfig, options?: IRequestOptions): Promise<T>;
4
+ }
5
+ /**
6
+ * 设置 httpClient 实例.
7
+ */
8
+ declare function setupHttpClient(httpClient: IHttpClient | null): void;
9
+ /**
10
+ * 获取 httpClient 实例.
11
+ */
12
+ declare function httpClient(): IHttpClient;
13
+ interface IRequestConfig<TQ = {}, TB = {}> extends AxiosRequestConfig<TB> {
14
+ params?: TQ;
15
+ }
16
+ interface IRequestOptions {
17
+ joinParamsToUrl?: boolean;
18
+ formatDate?: boolean;
19
+ isTransformResponse?: boolean;
20
+ isReturnNativeResponse?: boolean;
21
+ joinPrefix?: boolean;
22
+ apiUrl?: string;
23
+ urlPrefix?: string;
24
+ errorMessageMode?: 'none' | 'modal' | 'message' | undefined;
25
+ successMessageMode?: 'none' | 'success' | 'error' | undefined;
26
+ joinTime?: boolean;
27
+ ignoreCancelToken?: boolean;
28
+ withToken?: boolean;
29
+ /** 是否使用模拟数据. */
30
+ mock?: boolean;
31
+ }
32
+ export { setupHttpClient, httpClient, type IRequestConfig, type IRequestOptions };
@@ -0,0 +1 @@
1
+ export * from './http-client';
@@ -0,0 +1,17 @@
1
+ import { KG_APPS_ENUM } from '../consts';
2
+ /**
3
+ * 判断某个路径是否属于某个模块.
4
+ * @param path 路径.
5
+ * @param app 模块.
6
+ */
7
+ export declare function isPathInApp(path: string | undefined | null, app: KG_APPS_ENUM): boolean;
8
+ /**
9
+ * 根据地址获取模块.
10
+ * @param path 地址.
11
+ */
12
+ export declare function getAppByPath(path: string): KG_APPS_ENUM;
13
+ /**
14
+ * 获取模块首页地址.
15
+ * @param app 模块.
16
+ */
17
+ export declare function getAppIndexPath(app: KG_APPS_ENUM): string;
@@ -0,0 +1,4 @@
1
+ export * from './app.util';
2
+ export * from './kg.util';
3
+ export * from './logger.util';
4
+ export * from './route.util';
@@ -0,0 +1,38 @@
1
+ /**
2
+ * 通用工具.
3
+ */
4
+ export declare class KgUtil {
5
+ /**
6
+ * 根据'文件大小数值'获取'文件大小文本'.
7
+ * @param size 文件大小数值.
8
+ */
9
+ static getFileSize(size: any): string;
10
+ /**
11
+ * BASE64 转换为 BLOB.
12
+ * @param base64 base64 字符串.
13
+ * @param contentType 文件类型.
14
+ * @param sliceSize 分块大小.
15
+ */
16
+ static base64toBlob(base64: string, contentType: string, sliceSize?: number): Blob;
17
+ /**
18
+ * 下载文件.
19
+ * @param data 文件数据.
20
+ * @param fileName 文件名称, 包含后缀.
21
+ * @param contentType 文件类型.
22
+ */
23
+ static downloadFile(data: string | BlobPart, fileName: string, contentType: string): void;
24
+ /**
25
+ * 解析请求参数.
26
+ * 1. 填充通用参数的值
27
+ * a. 仓库: '{WAREHOUSE}'
28
+ * @param params 请求参数.
29
+ * @param warehouseID 仓库编号.
30
+ */
31
+ static parseParams(params?: Record<string, any> | null, warehouseID?: string | null): any;
32
+ /**
33
+ * 解析请求参数: 解析字符串类型的参数值.
34
+ * @param value 参数的原始值.
35
+ * @param warehouseID 仓库编号.
36
+ */
37
+ private static parseParamFromString;
38
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * 日志服务.
3
+ */
4
+ declare class Logger {
5
+ /**
6
+ * 打印错误日志.
7
+ *
8
+ * @param message 提示消息.
9
+ * @param args 数据对象.
10
+ * @param collapsed 是否折叠.
11
+ */
12
+ static error(message: string, args?: Record<string, any>, collapsed?: boolean): void;
13
+ /**
14
+ * 打印普通日志.
15
+ *
16
+ * @param message 提示消息.
17
+ * @param args 数据对象.
18
+ * @param collapsed 是否折叠.
19
+ */
20
+ static info(message: string, args: Record<string, any>, collapsed?: boolean): void;
21
+ /**
22
+ * 打印日志.
23
+ *
24
+ * @param level 日志等级.
25
+ * @param message 提示消息.
26
+ * @param args 数据对象.
27
+ * @param collapsed 是否折叠.
28
+ * @param style 提示消息样式.
29
+ */
30
+ static log(level: "error" | "info" | "warn" | undefined, message: string, args?: Record<string, any>, collapsed?: boolean, style?: string): void;
31
+ /**
32
+ * 打印警告日志.
33
+ *
34
+ * @param message 提示消息.
35
+ * @param args 数据对象.
36
+ * @param collapsed 是否折叠.
37
+ */
38
+ static warn(message: string, args: Record<string, any>, collapsed?: boolean): void;
39
+ }
40
+ export { Logger };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 给所有模块都添加在线表单的路由.
3
+ * 由于默认的在线表单路由是没有区分模块的, 而每个模块下都可能有在线表单, 因此给每个模块都添加在线表单的路由.
4
+ * @param routes 当前路由列表.
5
+ */
6
+ export declare function addOnlineRoutesForAllApps(routes: any[]): any[];
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 变量相关工具.
3
+ */
4
+ export declare class KgVarUtil {
5
+ /**
6
+ * 将 JSON 字符串形式的参数 `'{"foo":1,"bar":2}'` 转换为对象形式的参数 `{ "foo": 1, "bar": 2 }`.
7
+ * @param params JSON 字符串形式的参数.
8
+ * @return 参数对象.
9
+ */
10
+ static parseActionParameter(params?: string | null): Record<string, any>;
11
+ }
package/kg.config.ts ADDED
@@ -0,0 +1,23 @@
1
+ import { IPontConfig } from '@kengic/pont';
2
+
3
+ const config: IPontConfig = {
4
+ pont: {
5
+ origins: [
6
+ {
7
+ name: 'WMS',
8
+ originUrl: 'http://localhost:8080/kengic-boot/v2/api-docs',
9
+ originType: 'SwaggerV2',
10
+ responseClassName: 'Result',
11
+ includeControllers: {
12
+ VarController: ['GetAll'],
13
+ },
14
+ includeClasses: ['IPage', 'VarCatalog', 'VarContext', 'VarDTO'],
15
+ },
16
+ ],
17
+ publicPath: '/kengic-boot',
18
+ httpClientPath: "'../../../../services'",
19
+ outDir: './src/apis',
20
+ },
21
+ };
22
+
23
+ export { config };
package/package.json CHANGED
@@ -1,49 +1,62 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.0.2-beta.7",
4
- "types": "./dist/types/index.d.ts",
5
- "module": "./dist/index.js",
6
- "exports": {
7
- ".": {
8
- "import": "./dist/index.js"
9
- },
10
- "./dist/index.css": "./dist/index.css"
11
- },
3
+ "version": "0.1.0",
12
4
  "scripts": {
13
5
  "build": "rimraf dist && vue-tsc && vite build",
14
- "bump-version:beta": "ts-node --project=./scripts/tsconfig.json scripts/bump-version.ts beta",
15
- "bump-version:major": "ts-node --project=./scripts/tsconfig.json scripts/bump-version.ts major",
16
- "bump-version:minor": "ts-node --project=./scripts/tsconfig.json scripts/bump-version.ts minor",
17
- "bump-version:patch": "ts-node --project=./scripts/tsconfig.json scripts/bump-version.ts patch",
18
- "publish:all": "ts-node --project=./scripts/tsconfig.json scripts/publish.ts",
6
+ "build:dev": "rimraf dist && vue-tsc && vite build --mode development",
19
7
  "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
20
- "publish:all:major": "npm run bump-version:major && npm run publish:all",
21
- "publish:all:minor": "npm run bump-version:minor && npm run publish:all",
22
8
  "publish:all:patch": "npm run bump-version:patch && npm run publish:all",
9
+ "publish:all:minor": "npm run bump-version:minor && npm run publish:all",
10
+ "publish:all:major": "npm run bump-version:major && npm run publish:all",
11
+ "bump-to:luotao.wms-vue3": "tsx scripts/bump-to.luotao.wms-vue3.ts",
12
+ "copy-to:luotao.wms-vue3": "tsx scripts/copy-to.luotao.wms-vue3.ts",
13
+ "gen:apis:WMS": "kengic-pont generate-apis --config kg.config.ts --origin WMS",
14
+ "--------------------": "",
15
+ "bump-version:beta": "tsx scripts/bump.ts beta",
16
+ "bump-version:major": "tsx scripts/bump.ts major",
17
+ "bump-version:minor": "tsx scripts/bump.ts minor",
18
+ "bump-version:patch": "tsx scripts/bump.ts patch",
19
+ "publish:all": "tsx scripts/publish.ts",
23
20
  "publish:npm": "npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
24
21
  },
25
22
  "peerDependencies": {
26
- "vue": "~3.2.45"
23
+ "vue": "3.2.43"
27
24
  },
28
25
  "dependencies": {
29
- "ant-design-vue": "3.2.15"
26
+ "@ant-design/icons-vue": "6.1.0",
27
+ "ant-design-vue": "3.2.14",
28
+ "axios": "0.26.1",
29
+ "filesize": "10.0.6",
30
+ "lodash-es": "4.17.21",
31
+ "pinia": "2.0.12"
30
32
  },
31
33
  "devDependencies": {
32
- "@types/node": "18.11.19",
33
- "@types/semver": "7.3.13",
34
- "@vitejs/plugin-vue": "4.0.0",
35
- "@vitejs/plugin-vue-jsx": "3.0.0",
36
- "chalk": "4.1.2",
37
- "less": "4.1.3",
38
- "prettier": "2.8.3",
39
- "rimraf": "4.1.2",
40
- "rollup": "3.14.0",
41
- "semver": "7.3.8",
42
- "ts-node": "10.9.1",
43
- "typescript": "4.7.4",
44
- "vite": "4.1.1",
45
- "vue": "3.2.45",
46
- "vue-tsc": "1.0.24"
34
+ "@kengic/pont": "1.2.10-beta.23",
35
+ "@types/lodash-es": "~4.17.7",
36
+ "@types/node": "~18.14.6",
37
+ "@types/semver": "~7.3.13",
38
+ "@vitejs/plugin-vue": "~3.2.0",
39
+ "@vitejs/plugin-vue-jsx": "~1.3.10",
40
+ "chalk": "~4.1.2",
41
+ "less": "~4.1.3",
42
+ "prettier": "~2.8.4",
43
+ "rimraf": "~3.0.2",
44
+ "rollup": "~2.79.1",
45
+ "semver": "~7.3.8",
46
+ "tsx": "~3.12.3",
47
+ "typescript": "~4.8.4",
48
+ "vite": "~3.2.5",
49
+ "vue": "~3.2.45",
50
+ "vue-tsc": "~1.2.0"
51
+ },
52
+ "main": "./dist/kengic-vue.js",
53
+ "module": "./dist/kengic-vue.js",
54
+ "types": "./dist/src/index.d.ts",
55
+ "exports": {
56
+ ".": {
57
+ "import": "./dist/kengic-vue.js"
58
+ },
59
+ "./dist/index.css": "./dist/index.css"
47
60
  },
48
61
  "prettier": {
49
62
  "endOfLine": "auto",