@kengic/vue 0.24.1-beta.1 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +4575 -4511
  4. package/dist/src/apis/WMS/models.d.ts +2 -2
  5. package/dist/src/components/KgForm/KgForm.d.ts +3 -3
  6. package/dist/src/components/KgForm/index.d.ts +4 -4
  7. package/dist/src/components/KgForm/index.hooks.d.ts +10 -0
  8. package/dist/src/components/KgForm/index.store.d.ts +13 -3
  9. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +1 -4
  10. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +49 -0
  11. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +1 -6
  12. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +1 -6
  13. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -4
  14. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +1 -4
  15. package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +0 -2
  16. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +1 -4
  17. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +1 -4
  18. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +96 -0
  19. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -6
  20. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +1 -6
  21. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +8 -9
  22. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +1 -4
  23. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +1 -4
  24. package/dist/src/components/KgForm.Item/index.vm.d.ts +8 -4
  25. package/dist/src/components/KgSearch/index.store.d.ts +1 -1
  26. package/dist/src/components/KgVar/KgVar.d.ts +14 -4
  27. package/dist/src/components/KgVar/index.hooks.d.ts +4 -0
  28. package/dist/src/components/KgVar/index.store.d.ts +2 -0
  29. package/dist/src/components/KgVar/index.vm.d.ts +6 -0
  30. package/dist/src/components/KgVarConfig/index.store.d.ts +0 -17
  31. package/dist/src/config/index.store.d.ts +6 -16
  32. package/dist/src/consts/i18n/en.d.ts +1 -8
  33. package/dist/src/consts/i18n/zh_CN.d.ts +1 -7
  34. package/dist/src/helpers/ant-design-vue.d.ts +1 -1
  35. package/dist/src/index.d.ts +1 -0
  36. package/dist/src/pages/KgVarFactory/KgVarFactory.d.ts +62 -0
  37. package/dist/src/pages/KgVarFactory/index.d.ts +1 -0
  38. package/dist/src/pages/index.d.ts +1 -1
  39. package/dist/src/project/index.d.ts +1 -0
  40. package/dist/src/project/src/api/index.d.ts +3 -0
  41. package/dist/{project/src/api/sys/model/menuModel.ts → src/project/src/api/sys/model/menuModel.d.ts} +1 -3
  42. package/dist/{project/src/api/sys/model/userModel.ts → src/project/src/api/sys/model/userModel.d.ts} +0 -12
  43. package/dist/src/project/src/components/Dropdown/index.d.ts +1 -0
  44. package/dist/src/project/src/components/Dropdown/src/typing.d.ts +9 -0
  45. package/dist/src/project/src/components/index.d.ts +1 -0
  46. package/dist/src/project/src/enums/CompTypeEnum.d.ts +19 -0
  47. package/dist/src/project/src/enums/DateTypeEnum.d.ts +8 -0
  48. package/dist/src/project/src/enums/appEnum.d.ts +40 -0
  49. package/dist/src/project/src/enums/breakpointEnum.d.ts +18 -0
  50. package/dist/src/project/src/enums/cacheEnum.d.ts +18 -0
  51. package/dist/src/project/src/enums/exceptionEnum.d.ts +17 -0
  52. package/dist/src/project/src/enums/httpEnum.d.ts +38 -0
  53. package/dist/src/project/src/enums/index.d.ts +13 -0
  54. package/dist/src/project/src/enums/jeecgEnum.d.ts +16 -0
  55. package/dist/src/project/src/enums/menuEnum.d.ts +35 -0
  56. package/dist/src/project/src/enums/pageEnum.d.ts +14 -0
  57. package/dist/src/project/src/enums/roleEnum.d.ts +4 -0
  58. package/dist/src/project/src/enums/sizeEnum.d.ts +18 -0
  59. package/dist/src/project/src/index.d.ts +3 -0
  60. package/dist/src/project/src/settings/componentSetting.d.ts +44 -0
  61. package/dist/src/project/src/settings/designSetting.d.ts +6 -0
  62. package/dist/src/project/src/settings/encryptionSetting.d.ts +6 -0
  63. package/dist/src/project/src/settings/index.d.ts +4 -0
  64. package/dist/src/project/src/settings/localeSetting.d.ts +7 -0
  65. package/package.json +1 -1
  66. package/dist/project/src/enums/CompTypeEnum.ts +0 -32
  67. package/dist/project/src/enums/DateTypeEnum.ts +0 -8
  68. package/dist/project/src/enums/appEnum.ts +0 -58
  69. package/dist/project/src/enums/breakpointEnum.ts +0 -28
  70. package/dist/project/src/enums/cacheEnum.ts +0 -39
  71. package/dist/project/src/enums/exceptionEnum.ts +0 -27
  72. package/dist/project/src/enums/httpEnum.ts +0 -50
  73. package/dist/project/src/enums/jeecgEnum.ts +0 -23
  74. package/dist/project/src/enums/menuEnum.ts +0 -50
  75. package/dist/project/src/enums/pageEnum.ts +0 -19
  76. package/dist/project/src/enums/roleEnum.ts +0 -7
  77. package/dist/project/src/enums/sizeEnum.ts +0 -27
  78. package/dist/project/types/axios.d.ts +0 -57
  79. package/dist/project/types/config.d.ts +0 -178
  80. package/dist/project/types/global.d.ts +0 -92
  81. package/dist/project/types/index.d.ts +0 -27
  82. package/dist/project/types/module.d.ts +0 -18
  83. package/dist/project/types/store.d.ts +0 -59
  84. package/dist/project/types/utils.d.ts +0 -5
  85. package/dist/project/types/vue-router.d.ts +0 -47
  86. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +0 -2
  87. package/dist/src/pages/KgVarContainer/KgVarContainer.d.ts +0 -6
  88. package/dist/src/pages/KgVarContainer/index.d.ts +0 -1
  89. /package/dist/{project/src/api/sys/model/uploadModel.ts → src/project/src/api/sys/model/uploadModel.d.ts} +0 -0
@@ -1,178 +0,0 @@
1
- import {
2
- ContentEnum,
3
- PermissionModeEnum,
4
- RouterTransitionEnum,
5
- SessionTimeoutProcessingEnum,
6
- SettingButtonPositionEnum,
7
- ThemeEnum,
8
- } from '../src/enums/appEnum';
9
- import { CacheTypeEnum } from '../src/enums/cacheEnum';
10
-
11
- import { MenuModeEnum, MenuTypeEnum, MixSidebarTriggerEnum, TriggerEnum } from '../src/enums/menuEnum';
12
-
13
- export type LocaleType = 'zh_CN' | 'en' | 'ru' | 'ja' | 'ko';
14
-
15
- export interface MenuSetting {
16
- bgColor: string;
17
- fixed: boolean;
18
- collapsed: boolean;
19
- canDrag: boolean;
20
- show: boolean;
21
- hidden: boolean;
22
- split: boolean;
23
- menuWidth: number;
24
- mode: MenuModeEnum;
25
- type: MenuTypeEnum;
26
- theme: ThemeEnum;
27
- topMenuAlign: 'start' | 'center' | 'end';
28
- trigger: TriggerEnum;
29
- accordion: boolean;
30
- closeMixSidebarOnChange: boolean;
31
- collapsedShowTitle: boolean;
32
- mixSideTrigger: MixSidebarTriggerEnum;
33
- mixSideFixed: boolean;
34
- }
35
-
36
- export interface MultiTabsSetting {
37
- cache: boolean;
38
- show: boolean;
39
- showQuick: boolean;
40
- canDrag: boolean;
41
- showRedo: boolean;
42
- showFold: boolean;
43
- theme: string;
44
- }
45
-
46
- export interface HeaderSetting {
47
- bgColor: string;
48
- fixed: boolean;
49
- show: boolean;
50
- theme: ThemeEnum;
51
- // Turn on full screen
52
- showFullScreen: boolean;
53
- // Whether to show the lock screen
54
- useLockPage: boolean;
55
- // Show document button
56
- showDoc: boolean;
57
- // Show message center button
58
- showNotice: boolean;
59
- showSearch: boolean;
60
- }
61
-
62
- export interface LocaleSetting {
63
- showPicker: boolean;
64
- // Current language
65
- locale: LocaleType;
66
- // default language
67
- fallback: LocaleType;
68
- // available Locales
69
- availableLocales: LocaleType[];
70
- }
71
-
72
- export interface TransitionSetting {
73
- // Whether to open the page switching animation
74
- enable: boolean;
75
- // Route basic switching animation
76
- basicTransition: RouterTransitionEnum;
77
- // Whether to open page switching loading
78
- openPageLoading: boolean;
79
- // Whether to open the top progress bar
80
- openNProgress: boolean;
81
- }
82
-
83
- export interface ProjectConfig {
84
- // Storage location of permission related information
85
- permissionCacheType: CacheTypeEnum;
86
- // Whether to show the configuration button
87
- showSettingButton: boolean;
88
- // Whether to show the theme switch button
89
- showDarkModeToggle: boolean;
90
- // Configure where the button is displayed
91
- settingButtonPosition: SettingButtonPositionEnum;
92
- // Permission mode
93
- permissionMode: PermissionModeEnum;
94
- // Session timeout processing
95
- sessionTimeoutProcessing: SessionTimeoutProcessingEnum;
96
- // Website gray mode, open for possible mourning dates
97
- grayMode: boolean;
98
- // Whether to turn on the color weak mode
99
- colorWeak: boolean;
100
- // Theme color
101
- themeColor: string;
102
-
103
- // The main interface is displayed in full screen, the menu is not displayed, and the top
104
- fullContent: boolean;
105
- // content width
106
- contentMode: ContentEnum;
107
- // Whether to display the logo
108
- showLogo: boolean;
109
- // Whether to show the global footer
110
- showFooter: boolean;
111
- // menuType: MenuTypeEnum;
112
- headerSetting: HeaderSetting;
113
- // menuSetting
114
- menuSetting: MenuSetting;
115
- // Multi-tab settings
116
- multiTabsSetting: MultiTabsSetting;
117
- // Animation configuration
118
- transitionSetting: TransitionSetting;
119
- // pageLayout whether to enable keep-alive
120
- openKeepAlive: boolean;
121
- // Lock screen time
122
- lockTime: number;
123
- // Show breadcrumbs
124
- showBreadCrumb: boolean;
125
- // Show breadcrumb icon
126
- showBreadCrumbIcon: boolean;
127
- // Use error-handler-plugin
128
- useErrorHandle: boolean;
129
- // Whether to open back to top
130
- useOpenBackTop: boolean;
131
- // Is it possible to embed iframe pages
132
- canEmbedIFramePage: boolean;
133
- // Whether to delete unclosed messages and notify when switching the interface
134
- closeMessageOnSwitch: boolean;
135
- // Whether to cancel the http request that has been sent but not responded when switching the interface.
136
- removeAllHttpPending: boolean;
137
- }
138
-
139
- export interface GlobConfig {
140
- // Site title
141
- title: string;
142
- // Service interface url
143
- apiUrl: string;
144
- domainUrl: string;
145
- // Upload url (作废)
146
- uploadUrl?: string;
147
- openSso?: string;
148
- openQianKun?: string;
149
- casBaseUrl?: string;
150
- // onlineview url
151
- viewUrl?: string;
152
- // Service interface url prefix
153
- urlPrefix?: string;
154
- // Project abbreviation
155
- shortName: string;
156
- }
157
- export interface GlobEnvConfig {
158
- // Site title
159
- VITE_GLOB_APP_TITLE: string;
160
- // Service interface url
161
- VITE_GLOB_API_URL: string;
162
- VITE_USE_MOCK: string;
163
- // Service interface url prefix
164
- VITE_GLOB_API_URL_PREFIX?: string;
165
- // Project abbreviation
166
- VITE_GLOB_APP_SHORT_NAME: string;
167
- //是否开启单点登录
168
- VITE_GLOB_APP_OPEN_SSO: string;
169
- //是否开启微应用模式
170
- VITE_GLOB_APP_OPEN_QIANKUN: string;
171
- //单点服务端地址
172
- VITE_GLOB_APP_CAS_BASE_URL: string;
173
- VITE_GLOB_DOMAIN_URL: string;
174
- // Upload url
175
- VITE_GLOB_UPLOAD_URL?: string;
176
- // view url
177
- VITE_GLOB_ONLINE_VIEW_URL?: string;
178
- }
@@ -1,92 +0,0 @@
1
- import type { ComponentPublicInstance, ComponentRenderProxy, FunctionalComponent, PropType as VuePropType, VNode, VNodeChild } from 'vue';
2
-
3
- declare global {
4
- const __APP_INFO__: {
5
- pkg: {
6
- name: string;
7
- version: string;
8
- dependencies: Recordable<string>;
9
- devDependencies: Recordable<string>;
10
- };
11
- lastBuildTime: string;
12
- };
13
- // declare interface Window {
14
- // // Global vue app instance
15
- // __APP__: App<Element>;
16
- // }
17
-
18
- // vue
19
- declare type PropType<T> = VuePropType<T>;
20
- declare type VueNode = VNodeChild | JSX.Element;
21
-
22
- export type Writable<T> = {
23
- -readonly [P in keyof T]: T[P];
24
- };
25
-
26
- declare type Nullable<T> = T | null;
27
- declare type NonNullable<T> = T extends null | undefined ? never : T;
28
- declare type Recordable<T = any> = Record<string, T>;
29
- declare type ReadonlyRecordable<T = any> = {
30
- readonly [key: string]: T;
31
- };
32
- declare type Indexable<T = any> = {
33
- [key: string]: T;
34
- };
35
- declare type DeepPartial<T> = {
36
- [P in keyof T]?: DeepPartial<T[P]>;
37
- };
38
- declare type TimeoutHandle = ReturnType<typeof setTimeout>;
39
- declare type IntervalHandle = ReturnType<typeof setInterval>;
40
-
41
- declare interface ChangeEvent extends Event {
42
- target: HTMLInputElement;
43
- }
44
-
45
- declare interface WheelEvent {
46
- path?: EventTarget[];
47
- }
48
- interface ImportMetaEnv extends ViteEnv {
49
- __: unknown;
50
- }
51
-
52
- declare interface ViteEnv {
53
- VITE_PORT: number;
54
- VITE_USE_MOCK: boolean;
55
- VITE_USE_PWA: boolean;
56
- VITE_PUBLIC_PATH: string;
57
- VITE_PROXY: [string, string][];
58
- VITE_GLOB_APP_TITLE: string;
59
- VITE_GLOB_APP_SHORT_NAME: string;
60
- VITE_USE_CDN: boolean;
61
- VITE_DROP_CONSOLE: boolean;
62
- VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none';
63
- VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean;
64
- VITE_LEGACY: boolean;
65
- VITE_USE_IMAGEMIN: boolean;
66
- VITE_GENERATE_UI: string;
67
- }
68
-
69
- declare function parseInt(s: string | number, radix?: number): number;
70
-
71
- declare function parseFloat(string: string | number): number;
72
-
73
- namespace JSX {
74
- // tslint:disable no-empty-interface
75
- type Element = VNode;
76
- // tslint:disable no-empty-interface
77
- type ElementClass = ComponentRenderProxy;
78
- interface ElementAttributesProperty {
79
- $props: any;
80
- }
81
- interface IntrinsicElements {
82
- [elem: string]: any;
83
- }
84
- interface IntrinsicAttributes {
85
- [elem: string]: any;
86
- }
87
- }
88
- }
89
-
90
- declare module 'vue' {
91
- export type JSXComponent<Props = any> = { new (): ComponentPublicInstance<Props> } | FunctionalComponent<Props>;
92
- }
@@ -1,27 +0,0 @@
1
- declare interface Fn<T = any, R = T> {
2
- (...arg: T[]): R;
3
- }
4
-
5
- declare interface PromiseFn<T = any, R = T> {
6
- (...arg: T[]): Promise<R>;
7
- }
8
-
9
- declare type RefType<T> = T | null;
10
-
11
- declare type LabelValueOptions = {
12
- label: string;
13
- value: any;
14
- [key: string]: string | number | boolean;
15
- }[];
16
-
17
- declare type EmitType = (event: string, ...args: any[]) => void;
18
-
19
- declare type TargetContext = '_self' | '_blank';
20
-
21
- declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
22
- $el: T;
23
- }
24
-
25
- declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null;
26
-
27
- declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>;
@@ -1,18 +0,0 @@
1
- declare module '*.vue' {
2
- import { DefineComponent } from 'vue';
3
- const Component: DefineComponent<{}, {}, any>;
4
- export default Component;
5
- }
6
-
7
- declare module 'ant-design-vue/dist/theme';
8
-
9
- declare module 'ant-design-vue/es/locale/*' {
10
- import { Locale } from 'ant-design-vue/types/locale-provider';
11
- const locale: Locale & ReadonlyRecordable;
12
- export default locale as Locale & ReadonlyRecordable;
13
- }
14
-
15
- declare module 'virtual:*' {
16
- const result: any;
17
- export default result;
18
- }
@@ -1,59 +0,0 @@
1
- import { RoleInfo } from '../src/api/sys/model/userModel';
2
- import { ErrorTypeEnum } from '../src/enums/exceptionEnum';
3
- import { MenuModeEnum, MenuTypeEnum } from '../src/enums/menuEnum';
4
-
5
- // Lock screen information
6
- export interface LockInfo {
7
- // Password required
8
- pwd?: string | undefined;
9
- // Is it locked?
10
- isLock?: boolean;
11
- }
12
-
13
- // Error-log information
14
- export interface ErrorLogInfo {
15
- // Type of error
16
- type: ErrorTypeEnum;
17
- // Error file
18
- file: string;
19
- // Error name
20
- name?: string;
21
- // Error message
22
- message: string;
23
- // Error stack
24
- stack?: string;
25
- // Error detail
26
- detail: string;
27
- // Error url
28
- url: string;
29
- // Error time
30
- time?: string;
31
- }
32
-
33
- export interface UserInfo {
34
- id: string | number;
35
- userId: string | number;
36
- username: string;
37
- realname: string;
38
- avatar: string;
39
- desc?: string;
40
- homePath?: string;
41
- tenantid?: string | number;
42
- roles: RoleInfo[];
43
- orgCode?: string;
44
- }
45
-
46
- export interface LoginInfo {
47
- multi_depart?: string | number;
48
- userInfo?: object;
49
- departs?: [];
50
- tenantList?: [];
51
- isLogin?: boolean;
52
- }
53
-
54
- export interface BeforeMiniState {
55
- menuCollapsed?: boolean;
56
- menuSplit?: boolean;
57
- menuMode?: MenuModeEnum;
58
- menuType?: MenuTypeEnum;
59
- }
@@ -1,5 +0,0 @@
1
- import type { ComputedRef, Ref } from 'vue';
2
-
3
- export type DynamicProps<T> = {
4
- [P in keyof T]: Ref<T[P]> | T[P] | ComputedRef<T[P]>;
5
- };
@@ -1,47 +0,0 @@
1
- import { RoleEnum } from '../src/enums/roleEnum';
2
-
3
- export {};
4
-
5
- declare module 'vue-router' {
6
- interface RouteMeta extends Record<string | number | symbol, unknown> {
7
- orderNo?: number;
8
- // title
9
- title: string;
10
- // dynamic router level.
11
- dynamicLevel?: number;
12
- // dynamic router real route path (For performance).
13
- realPath?: string;
14
- // Whether to ignore permissions
15
- ignoreAuth?: boolean;
16
- // role info
17
- roles?: RoleEnum[];
18
- // Whether not to cache
19
- ignoreKeepAlive?: boolean;
20
- // Is it fixed on tab
21
- affix?: boolean;
22
- // icon on tab
23
- icon?: string;
24
- frameSrc?: string;
25
- // current page transition
26
- transitionName?: string;
27
- // Whether the route has been dynamically added
28
- hideBreadcrumb?: boolean;
29
- // Hide submenu
30
- hideChildrenInMenu?: boolean;
31
- // Carrying parameters
32
- carryParam?: boolean;
33
- // Used internally to mark single-level menus
34
- single?: boolean;
35
- // Currently active menu
36
- currentActiveMenu?: string;
37
- // Never show in tab
38
- hideTab?: boolean;
39
- // Never show in menu
40
- hideMenu?: boolean;
41
- isLink?: boolean;
42
- // only build for Menu
43
- ignoreRoute?: boolean;
44
- // Hide path for children
45
- hidePathForChildren?: boolean;
46
- }
47
- }
@@ -1,2 +0,0 @@
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<{}>>, {}>;
2
- export default _default;
@@ -1,6 +0,0 @@
1
- import { KgVarProps } from '../../components';
2
- import './KgVarContainer.less';
3
- export declare function KgVarContainer(param: {
4
- formID: string | null | undefined;
5
- props?: KgVarProps;
6
- }): import("vue").DefineComponent<{}, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}> | 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 +0,0 @@
1
- export { KgVarContainer } from './KgVarContainer';