@kengic/vue 0.27.1-beta.0 → 0.27.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 (140) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +13854 -13686
  3. package/dist/project/build/generate/icon/index.ts +2 -5
  4. package/dist/project/build/script/buildConf.ts +1 -1
  5. package/dist/project/build/script/postBuild.ts +1 -1
  6. package/dist/src/component/KgAppSelect/{index.hooks.d.ts → KgAppSelect.hooks.d.ts} +4 -3
  7. package/dist/src/component/KgAppSelect/{index.store.d.ts → KgAppSelect.store.d.ts} +3 -2
  8. package/dist/src/component/KgAppSelect/index.d.ts +2 -2
  9. package/dist/src/component/KgButton/{index.hooks.d.ts → KgButton.hooks.d.ts} +2 -6
  10. package/dist/src/component/KgButton/{index.store.d.ts → KgButton.store.d.ts} +1 -2
  11. package/dist/src/component/KgButton/index.d.ts +2 -2
  12. package/dist/src/component/KgCanvas/{index.hooks.d.ts → KgCanvas.hooks.d.ts} +2 -2
  13. package/dist/src/component/KgCanvas/index.d.ts +1 -1
  14. package/dist/src/component/KgForm/{index.hooks.d.ts → KgForm.hooks.d.ts} +2 -2
  15. package/dist/src/component/KgForm/{index.store.d.ts → KgForm.store.d.ts} +1 -1
  16. package/dist/src/component/KgForm/index.d.ts +2 -2
  17. package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +5 -5
  18. package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +1 -1
  19. package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +7 -5
  20. package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +7 -9
  21. package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +5 -5
  22. package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +5 -5
  23. package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +11 -7
  24. package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +5 -5
  25. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +5 -5
  26. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +5 -5
  27. package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -9
  28. package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +5 -7
  29. package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.service.d.ts +2 -2
  30. package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +5 -5
  31. package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +5 -5
  32. package/dist/src/component/KgForm.Item/index.d.ts +1 -1
  33. package/dist/src/component/KgLayoutHeader/index.d.ts +1 -1
  34. package/dist/src/component/KgModal/KgModal.d.ts +11 -11
  35. package/dist/src/component/KgSearch/{index.hooks.d.ts → KgSearch.hooks.d.ts} +2 -2
  36. package/dist/src/component/KgSearch/{index.store.d.ts → KgSearch.store.d.ts} +1 -1
  37. package/dist/src/component/KgSearch/index.d.ts +2 -2
  38. package/dist/src/component/KgSubmit/{index.event.d.ts → KgSubmit.event.d.ts} +10 -10
  39. package/dist/src/component/KgSubmit/{index.hooks.d.ts → KgSubmit.hooks.d.ts} +9 -9
  40. package/dist/src/component/KgSubmit/{index.store.d.ts → KgSubmit.store.d.ts} +16 -16
  41. package/dist/src/component/KgSubmit/index.d.ts +3 -3
  42. package/dist/src/component/KgTable/{index.event.d.ts → KgTable.event.d.ts} +1 -1
  43. package/dist/src/component/KgTable/{index.hooks.d.ts → KgTable.hooks.d.ts} +12 -31
  44. package/dist/src/component/KgTable/KgTable.service.d.ts +1 -1
  45. package/dist/src/component/KgTable/{index.store.d.ts → KgTable.store.d.ts} +2 -28
  46. package/dist/src/component/KgTable/components/KgTable.BodyCell.d.ts +1 -1
  47. package/dist/src/component/KgTable/index.d.ts +3 -3
  48. package/dist/src/component/KgVar/KgVar.d.ts +2 -2
  49. package/dist/src/component/KgVar/{index.hooks.d.ts → KgVar.hooks.d.ts} +60 -10
  50. package/dist/src/component/KgVar/{index.store.d.ts → KgVar.store.d.ts} +44 -3
  51. package/dist/src/component/KgVar/{index.vm.d.ts → KgVar.vm.d.ts} +3 -1
  52. package/dist/src/component/KgVar/KgVarFactory.d.ts +8 -8
  53. package/dist/src/component/KgVar/index.d.ts +3 -3
  54. package/dist/src/component/KgVarConfig/{index.hooks.d.ts → KgVarConfig.hooks.d.ts} +1 -10
  55. package/dist/src/component/KgVarConfig/index.d.ts +2 -2
  56. package/dist/src/component/KgWarehouse/{index.hooks.d.ts → KgWarehouse.hooks.d.ts} +1 -1
  57. package/dist/src/component/KgWarehouse/index.d.ts +3 -3
  58. package/dist/src/config/index.store.d.ts +2 -1
  59. package/dist/src/const/index.vm.d.ts +81 -12
  60. package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +2 -2
  61. package/dist/src/project/src/api/index.d.ts +3 -0
  62. package/dist/src/project/src/api/sys/model/menuModel.d.ts +15 -0
  63. package/dist/src/project/src/api/sys/model/uploadModel.d.ts +5 -0
  64. package/dist/src/project/src/api/sys/model/userModel.d.ts +46 -0
  65. package/dist/src/project/src/components/Dropdown/index.d.ts +1 -0
  66. package/dist/src/project/src/components/Dropdown/src/typing.d.ts +9 -0
  67. package/dist/src/project/src/components/index.d.ts +1 -0
  68. package/dist/src/project/src/enums/CompTypeEnum.d.ts +19 -0
  69. package/dist/src/project/src/enums/DateTypeEnum.d.ts +8 -0
  70. package/dist/src/project/src/enums/appEnum.d.ts +40 -0
  71. package/dist/src/project/src/enums/breakpointEnum.d.ts +18 -0
  72. package/dist/src/project/src/enums/cacheEnum.d.ts +18 -0
  73. package/dist/src/project/src/enums/exceptionEnum.d.ts +17 -0
  74. package/dist/src/project/src/enums/httpEnum.d.ts +38 -0
  75. package/dist/src/project/src/enums/index.d.ts +13 -0
  76. package/dist/src/project/src/enums/jeecgEnum.d.ts +16 -0
  77. package/dist/src/project/src/enums/menuEnum.d.ts +35 -0
  78. package/dist/src/project/src/enums/pageEnum.d.ts +14 -0
  79. package/dist/src/project/src/enums/roleEnum.d.ts +4 -0
  80. package/dist/src/project/src/enums/sizeEnum.d.ts +18 -0
  81. package/dist/src/project/src/hooks/index.d.ts +1 -0
  82. package/dist/src/project/src/hooks/web/useI18n.d.ts +13 -0
  83. package/dist/src/project/src/index.d.ts +14 -0
  84. package/dist/src/project/src/locales/helper.d.ts +5 -0
  85. package/dist/src/project/src/locales/index.d.ts +3 -0
  86. package/dist/src/project/src/locales/setupI18n.d.ts +4 -0
  87. package/dist/src/project/src/locales/useLocale.d.ts +10 -0
  88. package/dist/src/project/src/router/types.d.ts +42 -0
  89. package/dist/src/project/src/settings/componentSetting.d.ts +44 -0
  90. package/dist/src/project/src/settings/designSetting.d.ts +6 -0
  91. package/dist/src/project/src/settings/encryptionSetting.d.ts +6 -0
  92. package/dist/src/project/src/settings/index.d.ts +3 -0
  93. package/dist/src/project/src/store/index.d.ts +1 -0
  94. package/dist/src/project/src/store/modules/index.d.ts +1 -0
  95. package/dist/src/project/src/store/modules/locale.d.ts +38 -0
  96. package/dist/src/project/src/utils/cache/index.d.ts +7 -0
  97. package/dist/src/project/src/utils/cache/memory.d.ts +22 -0
  98. package/dist/src/project/src/utils/cache/persistent.d.ts +33 -0
  99. package/dist/src/project/src/utils/cache/storageCache.d.ts +8 -0
  100. package/dist/src/project/src/utils/cipher.d.ts +19 -0
  101. package/dist/src/project/src/utils/env.d.ts +34 -0
  102. package/dist/src/util/kg-route.util.d.ts +2 -1
  103. package/dist/src/util/kg.util.d.ts +9 -16
  104. package/package.json +4 -4
  105. package/script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +0 -3
  106. package/script/bump-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +0 -3
  107. package/script/bump-to.ts +0 -38
  108. package/script/bump.ts +0 -35
  109. package/script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +0 -3
  110. package/script/copy-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +0 -3
  111. package/script/copy-to.luotao.smartfactory.tyre.haohua.gantry.was-java--main.ts +0 -3
  112. package/script/copy-to.ts +0 -23
  113. package/script/publish.ts +0 -30
  114. /package/dist/{close-outlined-DMcSQWxQ.0f7b1ee1.mjs → close-outlined-DMcSQWxQ.adfa0cf3.mjs} +0 -0
  115. /package/dist/{exclamation-circle-outlined-DZrXCnvM.32d9fc79.mjs → exclamation-circle-outlined-DZrXCnvM.20d450b7.mjs} +0 -0
  116. /package/dist/{fullscreen-exit-outlined-X1iYkFc4.4b203dc4.mjs → fullscreen-exit-outlined-X1iYkFc4.bceef6fa.mjs} +0 -0
  117. /package/dist/{fullscreen-outlined-DDBrsRcy.a38a27ed.mjs → fullscreen-outlined-DDBrsRcy.26d588f0.mjs} +0 -0
  118. /package/dist/{search-outlined-Od1M_oxf.9851f549.mjs → search-outlined-Od1M_oxf.761cc44e.mjs} +0 -0
  119. /package/dist/src/component/KgAppSelect/{index.event.d.ts → KgAppSelect.event.d.ts} +0 -0
  120. /package/dist/src/component/KgButton/{index.event.d.ts → KgButton.event.d.ts} +0 -0
  121. /package/dist/src/component/KgCanvas/{index.event.d.ts → KgCanvas.event.d.ts} +0 -0
  122. /package/dist/src/component/KgCanvas/{index.store.d.ts → KgCanvas.store.d.ts} +0 -0
  123. /package/dist/src/component/KgCanvas/{index.vm.d.ts → KgCanvas.vm.d.ts} +0 -0
  124. /package/dist/src/component/KgForm/{index.event.d.ts → KgForm.event.d.ts} +0 -0
  125. /package/dist/src/component/KgForm/{index.vm.d.ts → KgForm.vm.d.ts} +0 -0
  126. /package/dist/src/component/KgForm.Item/{index.vm.d.ts → KgForm.Item.vm.d.ts} +0 -0
  127. /package/dist/src/component/KgLayoutHeader/{index.hooks.d.ts → KgLayoutHeader.hooks.d.ts} +0 -0
  128. /package/dist/src/component/KgModal/{index.vm.d.ts → KgModal.vm.d.ts} +0 -0
  129. /package/dist/src/component/KgSearch/{index.event.d.ts → KgSearch.event.d.ts} +0 -0
  130. /package/dist/src/component/KgSearch/{index.vm.d.ts → KgSearch.vm.d.ts} +0 -0
  131. /package/dist/src/component/KgSubmit/{index.vm.d.ts → KgSubmit.vm.d.ts} +0 -0
  132. /package/dist/src/component/KgTable/{index.vm.d.ts → KgTable.vm.d.ts} +0 -0
  133. /package/dist/src/component/KgVar/{index.event.d.ts → KgVar.event.d.ts} +0 -0
  134. /package/dist/src/component/KgVar/{index.store.service.d.ts → KgVar.store.service.d.ts} +0 -0
  135. /package/dist/src/component/KgVarConfig/{index.store.d.ts → KgVarConfig.store.d.ts} +0 -0
  136. /package/dist/src/component/KgVarConfig/{index.vm.d.ts → KgVarConfig.vm.d.ts} +0 -0
  137. /package/dist/src/component/KgWarehouse/{index.guard.d.ts → KgWarehouse.guard.d.ts} +0 -0
  138. /package/dist/src/component/KgWarehouse/{index.store.d.ts → KgWarehouse.store.d.ts} +0 -0
  139. /package/dist/src/page/KgPageDda/{index.vm.d.ts → KgPageDda.vm.d.ts} +0 -0
  140. /package/dist/{three-dots-loading-bIlrTJYR.ebc46650.mjs → three-dots-loading-bIlrTJYR.5f916930.mjs} +0 -0
@@ -0,0 +1,18 @@
1
+ export declare const TOKEN_KEY = "TOKEN__";
2
+ export declare const USER_INFO_KEY = "USER__INFO__";
3
+ export declare const LOCALE_KEY = "LOCALE__";
4
+ export declare const ROLES_KEY = "ROLES__KEY__";
5
+ export declare const USER_WAREHOUSE_KEY = "USER_WAREHOUSE__KEY__";
6
+ export declare const DB_DICT_DATA_KEY = "UI_CACHE_DB_DICT_DATA";
7
+ export declare const PROJ_CFG_KEY = "PROJ__CFG__KEY__";
8
+ export declare const LOCK_INFO_KEY = "LOCK__INFO__KEY__";
9
+ export declare const MULTIPLE_TABS_KEY = "MULTIPLE_TABS__KEY__";
10
+ export declare const APP_DARK_MODE_KEY_ = "__APP__DARK__MODE__";
11
+ export declare const APP_LOCAL_CACHE_KEY = "COMMON__LOCAL__KEY__";
12
+ export declare const APP_SESSION_CACHE_KEY = "COMMON__SESSION__KEY__";
13
+ export declare const TENANT_ID = "TENANT_ID";
14
+ export declare const LOGIN_INFO_KEY = "LOGIN__INFO__";
15
+ export declare enum CacheTypeEnum {
16
+ SESSION = 0,
17
+ LOCAL = 1
18
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @description: Exception related enumeration
3
+ */
4
+ export declare enum ExceptionEnum {
5
+ PAGE_NOT_ACCESS = 403,
6
+ PAGE_NOT_FOUND = 404,
7
+ ERROR = 500,
8
+ NET_WORK_ERROR = 10000,
9
+ PAGE_NOT_DATA = 10100
10
+ }
11
+ export declare enum ErrorTypeEnum {
12
+ VUE = "vue",
13
+ SCRIPT = "script",
14
+ RESOURCE = "resource",
15
+ AJAX = "ajax",
16
+ PROMISE = "promise"
17
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @description: Request result set
3
+ */
4
+ export declare enum ResultEnum {
5
+ SUCCESS = 0,
6
+ ERROR = 1,
7
+ TIMEOUT = 401,
8
+ TYPE = "success"
9
+ }
10
+ /**
11
+ * @description: request method
12
+ */
13
+ export declare enum RequestEnum {
14
+ GET = "GET",
15
+ POST = "POST",
16
+ PUT = "PUT",
17
+ DELETE = "DELETE"
18
+ }
19
+ /**
20
+ * @description: contentTyp
21
+ */
22
+ export declare enum ContentTypeEnum {
23
+ JSON = "application/json;charset=UTF-8",
24
+ FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8",
25
+ FORM_DATA = "multipart/form-data;charset=UTF-8"
26
+ }
27
+ /**
28
+ * 请求header
29
+ * @description: contentTyp
30
+ */
31
+ export declare enum ConfigEnum {
32
+ TOKEN = "X-Access-Token",
33
+ TIMESTAMP = "X-TIMESTAMP",
34
+ Sign = "X-Sign",
35
+ TENANT_ID = "tenant-id",
36
+ VERSION = "X-Version",
37
+ X_LOW_APP_ID = "X-Low-App-ID"
38
+ }
@@ -0,0 +1,13 @@
1
+ export * from './appEnum';
2
+ export * from './breakpointEnum';
3
+ export * from './cacheEnum';
4
+ export * from './CompTypeEnum';
5
+ export * from './DateTypeEnum';
6
+ export * from './exceptionEnum';
7
+ export * from './httpEnum';
8
+ export * from './index';
9
+ export * from './jeecgEnum';
10
+ export * from './menuEnum';
11
+ export * from './pageEnum';
12
+ export * from './roleEnum';
13
+ export * from './sizeEnum';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * JInput组件类型
3
+ */
4
+ export declare enum JInputTypeEnum {
5
+ JINPUT_QUERY_LIKE = "like",
6
+ JINPUT_QUERY_NE = "ne",
7
+ JINPUT_QUERY_GE = "ge",
8
+ JINPUT_QUERY_LE = "le"
9
+ }
10
+ /**
11
+ * 面板设计器需要的常量定义
12
+ */
13
+ export declare enum JDragConfigEnum {
14
+ DRAG_BASE_URL = "drag-base-url",
15
+ DRAG_CACHE_PREFIX = "drag-cache:"
16
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @description: menu type
3
+ */
4
+ export declare enum MenuTypeEnum {
5
+ SIDEBAR = "sidebar",
6
+ MIX_SIDEBAR = "mix-sidebar",
7
+ MIX = "mix",
8
+ TOP_MENU = "top-menu"
9
+ }
10
+ export declare enum TriggerEnum {
11
+ NONE = "NONE",
12
+ FOOTER = "FOOTER",
13
+ HEADER = "HEADER"
14
+ }
15
+ export declare type Mode = 'vertical' | 'vertical-right' | 'horizontal' | 'inline';
16
+ export declare enum MenuModeEnum {
17
+ VERTICAL = "vertical",
18
+ HORIZONTAL = "horizontal",
19
+ VERTICAL_RIGHT = "vertical-right",
20
+ INLINE = "inline"
21
+ }
22
+ export declare enum MenuSplitTyeEnum {
23
+ NONE = 0,
24
+ TOP = 1,
25
+ LEFT = 2
26
+ }
27
+ export declare enum TopMenuAlignEnum {
28
+ CENTER = "center",
29
+ START = "start",
30
+ END = "end"
31
+ }
32
+ export declare enum MixSidebarTriggerEnum {
33
+ HOVER = "hover",
34
+ CLICK = "click"
35
+ }
@@ -0,0 +1,14 @@
1
+ export declare enum PageEnum {
2
+ BASE_LOGIN = "/login",
3
+ BASE_HOME = "/home",
4
+ ERROR_PAGE = "/exception",
5
+ ERROR_LOG_PAGE = "/error-log/list",
6
+ OAUTH2_LOGIN_PAGE_PATH = "/oauth2-app/login",
7
+ LABEL = "/wms/business-manager/print-manager/label",
8
+ /** 打印模板:物料标签. */
9
+ PRINT_TEMPLATE_ITEM = "/wms/print-template/item",
10
+ /** 打印模板:备料标签. */
11
+ PRINT_TEMPLATE_SPARE = "/wms/print-template/spare",
12
+ /** 打印模板:出库订单. */
13
+ PRINT_TEMPLATE_ORDER = "/wms/print-template/order"
14
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum RoleEnum {
2
+ SUPER = "super",
3
+ TEST = "test"
4
+ }
@@ -0,0 +1,18 @@
1
+ export declare enum SizeEnum {
2
+ DEFAULT = "default",
3
+ SMALL = "small",
4
+ LARGE = "large"
5
+ }
6
+ export declare enum SizeNumberEnum {
7
+ DEFAULT = 48,
8
+ SMALL = 16,
9
+ LARGE = 64
10
+ }
11
+ export declare enum ScreenSizeEnum {
12
+ XS = 480,
13
+ SM = 576,
14
+ MD = 768,
15
+ LG = 992,
16
+ XL = 1200
17
+ }
18
+ export declare const sizeMap: Map<SizeEnum, SizeNumberEnum>;
@@ -0,0 +1 @@
1
+ export * from './web/useI18n';
@@ -0,0 +1,13 @@
1
+ declare type I18nGlobalTranslation = {
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
+ export declare function useI18n(namespace?: string): {
10
+ t: I18nGlobalTranslation;
11
+ };
12
+ export declare const t: (key: string) => string;
13
+ export {};
@@ -0,0 +1,14 @@
1
+ export * from './api';
2
+ export * from './components';
3
+ export * from './enums';
4
+ export * from './hooks';
5
+ export * from './locales';
6
+ export * from './settings';
7
+ export * from './store';
8
+ export * from './router/types';
9
+ export * from './utils/cache/index';
10
+ export * from './utils/cache/memory';
11
+ export * from './utils/cache/persistent';
12
+ export * from './utils/cache/storageCache';
13
+ export * from './utils/cipher';
14
+ export * from './utils/env';
@@ -0,0 +1,5 @@
1
+ import { LocaleType } from '../../types';
2
+ export declare const loadLocalePool: LocaleType[];
3
+ export declare function setHtmlPageLang(locale: LocaleType): void;
4
+ export declare function setLoadLocalePool(cb: (loadLocalePool: LocaleType[]) => void): void;
5
+ export declare function genMessage(langs: Record<string, Record<string, any>>, prefix?: string): Recordable<any>;
@@ -0,0 +1,3 @@
1
+ export * from './helper';
2
+ export * from './setupI18n';
3
+ export * from './useLocale';
@@ -0,0 +1,4 @@
1
+ import type { App } from 'vue';
2
+ import { createI18n } from 'vue-i18n';
3
+ export declare let i18n: ReturnType<typeof createI18n>;
4
+ export declare function setupI18n(app: App): Promise<void>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Multi-language related operations
3
+ */
4
+ import { LocaleType } from '../../types';
5
+ export declare function useLocale(): {
6
+ getLocale: import("vue").ComputedRef<LocaleType>;
7
+ getShowLocalePicker: import("vue").ComputedRef<boolean>;
8
+ changeLocale: (locale: LocaleType) => Promise<LocaleType | undefined>;
9
+ getAntdLocale: import("vue").ComputedRef<any>;
10
+ };
@@ -0,0 +1,42 @@
1
+ import { defineComponent } from 'vue';
2
+ import type { RouteMeta, RouteRecordRaw } from 'vue-router';
3
+ export declare type Component<T extends any = any> = ReturnType<typeof defineComponent> | (() => Promise<any>) | (() => Promise<T>);
4
+ export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
5
+ app?: string;
6
+ name: string;
7
+ meta: RouteMeta;
8
+ component?: Component | string;
9
+ components?: Component;
10
+ children?: AppRouteRecordRaw[];
11
+ props?: Recordable;
12
+ fullPath?: string;
13
+ alwaysShow?: boolean;
14
+ }
15
+ export interface MenuTag {
16
+ type?: 'primary' | 'error' | 'warn' | 'success';
17
+ content?: string;
18
+ dot?: boolean;
19
+ }
20
+ /**
21
+ * 菜单.
22
+ */
23
+ export interface Menu {
24
+ id: string;
25
+ app: string | null;
26
+ name: string;
27
+ title: string;
28
+ path?: string;
29
+ paramPath?: string;
30
+ icon?: string;
31
+ hideMenu?: boolean;
32
+ children?: Menu[];
33
+ meta?: Partial<RouteMeta>;
34
+ tag?: MenuTag;
35
+ alwaysShow?: boolean;
36
+ [key: string]: any;
37
+ }
38
+ export interface MenuModule {
39
+ orderNo?: number;
40
+ menu: Menu;
41
+ }
42
+ export declare type AppRouteModule = AppRouteRecordRaw;
@@ -0,0 +1,44 @@
1
+ export declare const componentSetting: {
2
+ table: {
3
+ fetchSetting: {
4
+ pageField: string;
5
+ sizeField: string;
6
+ listField: string;
7
+ totalField: string;
8
+ };
9
+ pageSizeOptions: string[];
10
+ defaultSize: string;
11
+ defaultPageSize: number;
12
+ defaultSortFn: (sortInfo: any) => string | {
13
+ column: any;
14
+ order: string;
15
+ } | {
16
+ sortInfoString: string;
17
+ } | {
18
+ sortInfoString?: undefined;
19
+ };
20
+ defaultFilterFn: (data: Partial<Recordable<string[]>>) => Partial<Recordable<string[]>>;
21
+ };
22
+ scrollbar: {
23
+ native: boolean;
24
+ };
25
+ form: {
26
+ labelCol: {
27
+ xs: {
28
+ span: number;
29
+ };
30
+ sm: {
31
+ span: number;
32
+ };
33
+ };
34
+ wrapperCol: {
35
+ xs: {
36
+ span: number;
37
+ };
38
+ sm: {
39
+ span: number;
40
+ };
41
+ };
42
+ colon: boolean;
43
+ };
44
+ };
@@ -0,0 +1,6 @@
1
+ import { ThemeEnum } from '../enums';
2
+ export declare const prefixCls = "jeecg";
3
+ export declare const darkMode = ThemeEnum.LIGHT;
4
+ export declare const APP_PRESET_COLOR_LIST: string[];
5
+ export declare const HEADER_PRESET_BG_COLOR_LIST: string[];
6
+ export declare const SIDE_BAR_BG_COLOR_LIST: string[];
@@ -0,0 +1,6 @@
1
+ export declare const DEFAULT_CACHE_TIME: number;
2
+ export declare const cacheCipher: {
3
+ key: string;
4
+ iv: string;
5
+ };
6
+ export declare const enableStorageEncryption = false;
@@ -0,0 +1,3 @@
1
+ export * from './encryptionSetting';
2
+ export * from './componentSetting';
3
+ export * from './designSetting';
@@ -0,0 +1 @@
1
+ export * from './modules';
@@ -0,0 +1 @@
1
+ export * from './locale';
@@ -0,0 +1,38 @@
1
+ import { LocaleSetting, LocaleType } from '../../../types';
2
+ interface LocaleState {
3
+ localInfo: LocaleSetting;
4
+ pathTitleMap: Record<string, string>;
5
+ }
6
+ export declare const _useLocaleStore: import("pinia").StoreDefinition<"app-locale", LocaleState, {
7
+ getShowPicker(): boolean;
8
+ getLocale(): LocaleType;
9
+ getPathTitle: (state: {
10
+ localInfo: {
11
+ showPicker: boolean;
12
+ locale: LocaleType;
13
+ fallback: LocaleType;
14
+ availableLocales: LocaleType[];
15
+ };
16
+ pathTitleMap: Record<string, string>;
17
+ } & import("pinia").PiniaCustomStateProperties<LocaleState>) => (path: string) => string;
18
+ }, {
19
+ setLocaleInfo(info: Partial<LocaleSetting>): void;
20
+ setPathTitle(path: string, title: string): void;
21
+ }>;
22
+ export declare function useLocaleStore(): import("pinia").Store<"app-locale", LocaleState, {
23
+ getShowPicker(): boolean;
24
+ getLocale(): LocaleType;
25
+ getPathTitle: (state: {
26
+ localInfo: {
27
+ showPicker: boolean;
28
+ locale: LocaleType;
29
+ fallback: LocaleType;
30
+ availableLocales: LocaleType[];
31
+ };
32
+ pathTitleMap: Record<string, string>;
33
+ } & import("pinia").PiniaCustomStateProperties<LocaleState>) => (path: string) => string;
34
+ }, {
35
+ setLocaleInfo(info: Partial<LocaleSetting>): void;
36
+ setPathTitle(path: string, title: string): void;
37
+ }>;
38
+ export {};
@@ -0,0 +1,7 @@
1
+ import { CreateStorageParams } from './storageCache';
2
+ export declare type Options = Partial<CreateStorageParams>;
3
+ export declare const WebStorage: any;
4
+ export declare const createStorage: (storage?: Storage, options?: Options) => any;
5
+ export declare const createSessionStorage: (options?: Options) => any;
6
+ export declare const createLocalStorage: (options?: Options) => any;
7
+ export default WebStorage;
@@ -0,0 +1,22 @@
1
+ export interface Cache<V = any> {
2
+ value?: V;
3
+ timeoutId?: ReturnType<typeof setTimeout>;
4
+ time?: number;
5
+ alive?: number;
6
+ }
7
+ export declare class Memory<T = any, V = any> {
8
+ private cache;
9
+ private alive;
10
+ constructor(alive?: number);
11
+ get getCache(): { [key in keyof T]?: Cache<V> | undefined; };
12
+ setCache(cache: {
13
+ [key in keyof T]?: Cache<V>;
14
+ }): void;
15
+ get<K extends keyof T>(key: K): { [key in keyof T]?: Cache<V> | undefined; }[K];
16
+ set<K extends keyof T>(key: K, value: V, expires?: number): V;
17
+ remove<K extends keyof T>(key: K): V | undefined;
18
+ resetCache(cache: {
19
+ [K in keyof T]: Cache;
20
+ }): void;
21
+ clear(): void;
22
+ }
@@ -0,0 +1,33 @@
1
+ import type { RouteLocationNormalized } from 'vue-router';
2
+ import { SysUserWarehouseDTO } from '../../../../api/WMS/models';
3
+ import { LoginInfo, ProjectConfig, UserInfo } from '../../../types';
4
+ import { DB_DICT_DATA_KEY, LOCK_INFO_KEY, LOGIN_INFO_KEY, MULTIPLE_TABS_KEY, PROJ_CFG_KEY, ROLES_KEY, TENANT_ID, TOKEN_KEY, USER_INFO_KEY, USER_WAREHOUSE_KEY } from '../../enums';
5
+ interface BasicStore {
6
+ [TOKEN_KEY]: string | number | null | undefined;
7
+ [USER_INFO_KEY]: UserInfo;
8
+ [ROLES_KEY]: string[];
9
+ [USER_WAREHOUSE_KEY]: SysUserWarehouseDTO[];
10
+ [LOCK_INFO_KEY]: LockInfo;
11
+ [PROJ_CFG_KEY]: ProjectConfig;
12
+ [MULTIPLE_TABS_KEY]: RouteLocationNormalized[];
13
+ [DB_DICT_DATA_KEY]: string;
14
+ [TENANT_ID]: string;
15
+ [LOGIN_INFO_KEY]: LoginInfo;
16
+ }
17
+ declare type LocalStore = BasicStore;
18
+ declare type SessionStore = BasicStore;
19
+ export declare type BasicKeys = keyof BasicStore;
20
+ declare type LocalKeys = keyof LocalStore;
21
+ declare type SessionKeys = keyof SessionStore;
22
+ export declare class Persistent {
23
+ static getLocal<T>(key: LocalKeys): Nullable<T>;
24
+ static setLocal(key: LocalKeys, value: LocalStore[LocalKeys], immediate?: boolean): void;
25
+ static removeLocal(key: LocalKeys, immediate?: boolean): void;
26
+ static clearLocal(immediate?: boolean): void;
27
+ static getSession<T>(key: SessionKeys): Nullable<T>;
28
+ static setSession(key: SessionKeys, value: SessionStore[SessionKeys], immediate?: boolean): void;
29
+ static removeSession(key: SessionKeys, immediate?: boolean): void;
30
+ static clearSession(immediate?: boolean): void;
31
+ static clearAll(immediate?: boolean): void;
32
+ }
33
+ export {};
@@ -0,0 +1,8 @@
1
+ import { EncryptionParams } from '../cipher';
2
+ export interface CreateStorageParams extends EncryptionParams {
3
+ prefixKey: string;
4
+ storage: Storage;
5
+ hasEncrypt: boolean;
6
+ timeout?: Nullable<number>;
7
+ }
8
+ export declare const create: any;
@@ -0,0 +1,19 @@
1
+ export interface EncryptionParams {
2
+ key: string;
3
+ iv: string;
4
+ }
5
+ export declare class AesEncryption {
6
+ private key;
7
+ private iv;
8
+ constructor(opt?: Partial<EncryptionParams>);
9
+ get getOptions(): {
10
+ mode: any;
11
+ padding: any;
12
+ iv: any;
13
+ };
14
+ encryptByAES(cipherText: string): string;
15
+ decryptByAES(cipherText: string): string;
16
+ }
17
+ export declare function encryptByBase64(cipherText: string): string;
18
+ export declare function decodeByBase64(cipherText: string): string;
19
+ export declare function encryptByMd5(password: string): string;
@@ -0,0 +1,34 @@
1
+ export declare function getCommonStoragePrefix(): string;
2
+ export declare function getStorageShortName(): string;
3
+ export declare function getAppEnvConfig(): {
4
+ VITE_GLOB_APP_TITLE: string;
5
+ VITE_GLOB_API_URL: string;
6
+ VITE_USE_MOCK: string;
7
+ VITE_GLOB_APP_SHORT_NAME: string;
8
+ VITE_GLOB_API_URL_PREFIX: string | undefined;
9
+ VITE_GLOB_APP_OPEN_SSO: string;
10
+ VITE_GLOB_APP_OPEN_QIANKUN: string;
11
+ VITE_GLOB_APP_CAS_BASE_URL: string;
12
+ VITE_GLOB_DOMAIN_URL: string;
13
+ VITE_GLOB_ONLINE_VIEW_URL: string | undefined;
14
+ };
15
+ /**
16
+ * @description: Development mode
17
+ */
18
+ export declare const devMode = "development";
19
+ /**
20
+ * @description: Production mode
21
+ */
22
+ export declare const prodMode = "production";
23
+ /**
24
+ * @description: Is it a development mode
25
+ * @returns:
26
+ * @example:
27
+ */
28
+ export declare function isDevMode(): boolean;
29
+ /**
30
+ * @description: Is it a production mode
31
+ * @returns:
32
+ * @example:
33
+ */
34
+ export declare function isProdMode(): boolean;
@@ -1,4 +1,5 @@
1
- import { KG_APP, Menu } from '../const';
1
+ import { KG_APP } from '../const';
2
+ import { Menu } from '../project/src/router/types';
2
3
  export declare class KgRouteUtil {
3
4
  /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
4
5
  static addOnlineRoutesForAllApps(routes: any[]): any[];
@@ -1,6 +1,7 @@
1
1
  import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
2
2
  import dayjs, { Dayjs } from 'dayjs';
3
- import { IKgVarButtonModalProperties, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE, KG_APP, Menu } from '../const';
3
+ import { IKgVarButtonModalProperties, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE, KG_APP } from '../const';
4
+ import { Menu } from '../project/src/router/types';
4
5
  /**
5
6
  * 工具方法.
6
7
  */
@@ -45,17 +46,7 @@ export declare class KgUtil {
45
46
  * 处理请求参数: 解析字符串类型的参数值.
46
47
  *
47
48
  * <ol>
48
- * <li>解析动态参数的值, 若参数值是用{}包裹的, 则该参数值称为'动态参数', '动态参数'需要被替换成实际的值,
49
- * <ul>
50
- * <li>{WAREHOUSE}: 当前仓库编号</li>
51
- * <li>{WORK_STATION}: 当前工作站</li>
52
- * <li>{WORK_AREA}: 当前工作区</li>
53
- * <li>{LOCALE}: 当前语言</li>
54
- * <li>{NOW}: 当前时间</li>
55
- * <li>{USER}: 当前用户</li>
56
- * <li>{ROW}: 当前勾选行对应的属性</li>
57
- * </ul>
58
- * </li>
49
+ * <li>替换动态参数, '动态参数'需要被替换成实际的值, 动态参数定义参考 {@link KG__DYNAMIC_PARAM }.</li>
59
50
  * </ol>
60
51
  *
61
52
  * @param param.$dayjs dayjs.
@@ -68,7 +59,7 @@ export declare class KgUtil {
68
59
  formID?: string | null;
69
60
  value: string;
70
61
  varName?: string | null;
71
- }): string;
62
+ }): any;
72
63
  /**
73
64
  * 处理请求参数: 解析 Dayjs 类型的参数值.
74
65
  *
@@ -229,16 +220,18 @@ export declare class KgUtil {
229
220
  *
230
221
  * @param param.$dayjs dayjs.
231
222
  * @param param.buttonVarName 「变量配置:表单控件」所属的按钮的变量名称.
223
+ * @param param.defaultValue 原始的默认值.
232
224
  * @param param.formID 界面标识.
233
- * @param param.value 原始的值.
225
+ * @param param.isParseDynamicParam 是否替换动态参数. 默认为 true.
234
226
  * @param param.varName 变量名称.
235
227
  * @return {} 转换之后的值.
236
228
  */
237
- static transformFormItemDefaultValue(param: {
229
+ static transformVarSubmitDetailDefaultValue(param: {
238
230
  $dayjs: typeof dayjs;
239
231
  buttonVarName: string | null | undefined;
232
+ defaultValue: any;
240
233
  formID: string;
241
- value: any;
234
+ isParseDynamicParam?: boolean;
242
235
  varName: string;
243
236
  }): any;
244
237
  /**
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.27.1-beta.0",
3
+ "version": "0.27.1-beta.10",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
7
7
  "--------------------------------------------------": "",
8
8
  "gen:apis:WMS": "npm run use-node && kengic-pont generate-apis --config kg.config.ts --origin WMS",
9
9
  "- ------------------------------------------------": "",
10
- "use-node": "npm cache clean -f && nvm use 18.20.4 && corepack enable && corepack use pnpm@9.12.1",
10
+ "use-node": "nvm use 20.17.0 && corepack enable && corepack use pnpm@9.12.1",
11
11
  "cnpm:sync": "npm run use-node && npx cnpm --yes sync @kengic/vue",
12
12
  "-- -----------------------------------------------": "",
13
13
  "publish:major": "npm run bump:major && tsx script/publish.ts",
@@ -38,8 +38,8 @@
38
38
  "@iconify-icons/mdi": "1.2.48",
39
39
  "@iconify-icons/ph": "1.2.5",
40
40
  "@iconify/vue": "4.1.2",
41
- "@kengic/core.core": "0.0.1-beta.19",
42
- "@kengic/core.react": "0.0.2-beta.2",
41
+ "@kengic/core.core": "0.0.1-beta.21",
42
+ "@kengic/core.react": "0.0.2-beta.4",
43
43
  "@kengic/pont": "1.2.17-beta.1",
44
44
  "@rys-fe/vite-plugin-theme": "0.8.6",
45
45
  "@thymine/xunee": "0.4.9-beta.8",
@@ -1,3 +0,0 @@
1
- import { bumpVersionToProjects } from './bump-to';
2
-
3
- ['file:///D:/proj/kg/smartfactory.product.wms.wms--dev-3.2/wms-vue3'].forEach((projectPath) => bumpVersionToProjects(projectPath, []));
@@ -1,3 +0,0 @@
1
- import { bumpVersionToProjects } from './bump-to';
2
-
3
- ['file:///D:/proj/kg/smartfactory.product.wms.wms-vue3--focus'].forEach((projectPath) => bumpVersionToProjects(projectPath, []));