@oinone/kunlun-vue-admin-base 6.3.5 → 6.3.6

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.
@@ -6,5 +6,5 @@ export declare class BaseI18nRouterWidget extends RouterWidget {
6
6
  protected moduleName: string;
7
7
  protected isoStorageKey: string;
8
8
  protected translateBrowserTitle: boolean;
9
- protected beforeMount(): Promise<void>;
9
+ protected beforeMount(): void;
10
10
  }
@@ -137,6 +137,15 @@ declare const _default: import("vue").DefineComponent<{
137
137
  type: PropType<any[]>;
138
138
  default: () => never[];
139
139
  };
140
+ showTopCateAll: {
141
+ type: BooleanConstructor;
142
+ };
143
+ showSecondCateAll: {
144
+ type: BooleanConstructor;
145
+ };
146
+ topCateJustify: {
147
+ type: StringConstructor;
148
+ };
140
149
  cateFields: {
141
150
  type: PropType<string[]>;
142
151
  };
@@ -330,6 +339,15 @@ declare const _default: import("vue").DefineComponent<{
330
339
  type: PropType<any[]>;
331
340
  default: () => never[];
332
341
  };
342
+ showTopCateAll: {
343
+ type: BooleanConstructor;
344
+ };
345
+ showSecondCateAll: {
346
+ type: BooleanConstructor;
347
+ };
348
+ topCateJustify: {
349
+ type: StringConstructor;
350
+ };
333
351
  cateFields: {
334
352
  type: PropType<string[]>;
335
353
  };
@@ -396,6 +414,8 @@ declare const _default: import("vue").DefineComponent<{
396
414
  showSearchPrefer: boolean;
397
415
  topCateFieldOptions: any[];
398
416
  secondCateFieldOptions: any[];
417
+ showTopCateAll: boolean;
418
+ showSecondCateAll: boolean;
399
419
  loading: boolean;
400
420
  colon: boolean;
401
421
  validateOnRuleChange: boolean;
@@ -1,10 +1,11 @@
1
1
  import { VueWidget } from '@oinone/kunlun-vue-widget';
2
2
  import { DefaultMetadataMainViewWidget } from '../main-view';
3
- import { FirstResetPasswordWidget, ForgetPasswordWidget } from '../view';
3
+ import { FirstResetPasswordWidget, ForgetPasswordWidget, LoginWidget } from '../view';
4
4
  export declare class RootWidget extends VueWidget {
5
5
  root: string;
6
6
  widgets: {
7
- login: typeof import("../view").LoginWidget;
7
+ login: typeof LoginWidget;
8
+ ssoLogin: typeof LoginWidget;
8
9
  page: typeof DefaultMetadataMainViewWidget;
9
10
  forget: typeof ForgetPasswordWidget;
10
11
  first: typeof FirstResetPasswordWidget;
@@ -0,0 +1,58 @@
1
+ import { MajorConfig } from '@oinone/kunlun-engine';
2
+ import { Matched, Router } from '@oinone/kunlun-router';
3
+ import { LoginConfig, LoginData, RuntimeLanguage } from '@oinone/kunlun-vue-ui-common';
4
+ import { BaseI18nRouterWidget } from '../../basic';
5
+ export declare class BaseLoginWidget extends BaseI18nRouterWidget {
6
+ protected matched: Matched | undefined;
7
+ protected router: Router;
8
+ errorMessages: Record<string, string>;
9
+ protected getLoginConfig(): LoginConfig;
10
+ protected authForm: {
11
+ login: string;
12
+ password: string;
13
+ phone: string;
14
+ verificationCode: string;
15
+ picCode: string;
16
+ email: string;
17
+ emailCode: string;
18
+ };
19
+ protected error: LoginData;
20
+ protected clearErrorMessage(): void;
21
+ protected get systemMajorConfig(): MajorConfig;
22
+ protected get loginLabel(): string;
23
+ protected get forgetPassword(): boolean;
24
+ protected get forgetPasswordLabel(): string;
25
+ protected get register(): boolean;
26
+ protected get codeLogin(): boolean;
27
+ protected get accountLoginLabel(): string;
28
+ protected get codeLoginLabel(): string;
29
+ protected get registerLabel(): string;
30
+ protected get accountPlaceholder(): string;
31
+ protected get passwordPlaceholder(): string;
32
+ protected get phonePlaceholder(): string;
33
+ protected get codePlaceholder(): string;
34
+ protected get email(): boolean;
35
+ protected get emailLoginLabel(): string;
36
+ protected get emailPlaceholder(): string;
37
+ protected get emailCodePlaceholder(): string;
38
+ protected get currentLoginTheme(): import("@oinone/kunlun-engine").OioLoginThemeConfig | undefined;
39
+ protected get copyrightYear(): string;
40
+ protected get enableI18n(): boolean | undefined;
41
+ protected languages: RuntimeLanguage[];
42
+ protected currentLanguage: RuntimeLanguage;
43
+ protected getCurrentLanguage(): Promise<string>;
44
+ protected getCurrentLanguageIsoCode(): Promise<string | null>;
45
+ protected setCurrentLanguage(language: RuntimeLanguage): Promise<void>;
46
+ protected initCurrentLanguage(code: string): void;
47
+ protected queryLanguageSetting(langCode: any): Promise<Record<string, unknown>>;
48
+ protected initLanguages(): Promise<void>;
49
+ protected queryLanguageList(): Promise<RuntimeLanguage[]>;
50
+ protected onLanguageChange(value: RuntimeLanguage): void;
51
+ /**
52
+ * 用来处理点击「登录」之前的事件,可以做二次确定或者其他的逻辑
53
+ * 只有return true,才会继续往下执行
54
+ */
55
+ beforeClick(): Promise<Boolean | null | undefined>;
56
+ protected beforeCreated(): void;
57
+ protected beforeMount(): Promise<void>;
58
+ }
@@ -1,32 +1,7 @@
1
- import { MajorConfig } from '@oinone/kunlun-engine';
2
- import { Router } from '@oinone/kunlun-router';
3
- import { LoginConfig, LoginData, LoginMode, RuntimeLanguage } from '@oinone/kunlun-vue-ui-common';
4
- import { BaseI18nRouterWidget } from '../../basic/BaseI18nRouterWidget';
5
- export declare class LoginWidget extends BaseI18nRouterWidget {
1
+ import { LoginMode } from '@oinone/kunlun-vue-ui-common';
2
+ import { BaseLoginWidget } from './BaseLoginWidget';
3
+ export declare class LoginWidget extends BaseLoginWidget {
6
4
  protected moduleName: string;
7
- errorMessages: Record<string, string>;
8
- /**
9
- * 用来处理点击「登录」之前的事件,可以做二次确定或者其他的逻辑
10
- * 只有return true,才会继续往下执行
11
- */
12
- beforeClick(): Promise<Boolean | null | undefined>;
13
- protected getLoginConfig(): LoginConfig;
14
- protected get loginLabel(): string;
15
- protected get forgetPassword(): boolean;
16
- protected get forgetPasswordLabel(): string;
17
- protected get register(): boolean;
18
- protected get codeLogin(): boolean;
19
- protected get accountLoginLabel(): string;
20
- protected get codeLoginLabel(): string;
21
- protected get registerLabel(): string;
22
- protected get accountPlaceholder(): string;
23
- protected get passwordPlaceholder(): string;
24
- protected get phonePlaceholder(): string;
25
- protected get codePlaceholder(): string;
26
- protected get email(): boolean;
27
- protected get emailLoginLabel(): string;
28
- protected get emailPlaceholder(): string;
29
- protected get emailCodePlaceholder(): string;
30
5
  protected handleRegister(): void;
31
6
  /**
32
7
  *
@@ -37,20 +12,6 @@ export declare class LoginWidget extends BaseI18nRouterWidget {
37
12
  * 只有return true,才会执行默认的跳转事件
38
13
  */
39
14
  afterClick(result?: any): Promise<any | null | undefined>;
40
- protected get copyrightYear(): string;
41
- protected get currentLoginTheme(): import("@oinone/kunlun-engine").OioLoginThemeConfig | undefined;
42
- protected get systemMajorConfig(): MajorConfig;
43
- protected get enableI18n(): boolean | undefined;
44
- protected authForm: {
45
- login: string;
46
- password: string;
47
- phone: string;
48
- verificationCode: string;
49
- picCode: string;
50
- email: string;
51
- emailCode: string;
52
- };
53
- protected router: Router;
54
15
  protected year: string;
55
16
  protected countryList: any[];
56
17
  protected selectCountry: string;
@@ -62,23 +23,13 @@ export declare class LoginWidget extends BaseI18nRouterWidget {
62
23
  private buttonContent;
63
24
  protected canClick: boolean;
64
25
  protected graphCode: string;
65
- protected error: LoginData;
66
- protected languages: RuntimeLanguage[];
67
- protected currentLanguage: RuntimeLanguage;
68
26
  initialize(config?: Record<string, unknown>): this;
69
- protected queryLanguageList(): Promise<RuntimeLanguage[]>;
70
- protected initLanguages(): Promise<void>;
71
- protected getCurrentLanguage(): Promise<string>;
72
- protected getCurrentLanguageIsoCode(): Promise<string | null>;
73
- protected setCurrentLanguage(language: RuntimeLanguage): Promise<void>;
74
- protected initCurrentLanguage(code: string): void;
75
27
  protected validation: {
76
28
  status: string;
77
29
  message: string;
78
30
  };
79
31
  protected onResetPicCode(): Promise<void>;
80
32
  protected watchSwitch(mode: any): Promise<void>;
81
- protected onLanguageChange(value: RuntimeLanguage): void;
82
33
  protected getPicCode(message?: string): Promise<void>;
83
34
  protected getCode(): Promise<void>;
84
35
  protected getPhoneCode(): Promise<false | undefined>;
@@ -101,10 +52,6 @@ export declare class LoginWidget extends BaseI18nRouterWidget {
101
52
  watchError(): void;
102
53
  protected setLoginMode(mode: LoginMode): void;
103
54
  protected gotoForget(): void;
104
- protected clearErrorMessage(): void;
105
- protected beforeCreated(): Promise<void>;
106
- protected queryLanguageSetting(langCode: any): Promise<Record<string, unknown>>;
107
- protected beforeMount(): Promise<void>;
108
55
  }
109
56
  /**
110
57
  * @deprecated please using LoginWidget
@@ -0,0 +1,154 @@
1
+ import { LoginData, RuntimeLanguage } from '@oinone/kunlun-vue-ui-common';
2
+ import { PropType } from 'vue';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ loginMethod: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ loginUrl: {
9
+ type: StringConstructor;
10
+ required: true;
11
+ };
12
+ login: {
13
+ type: PropType<() => void>;
14
+ required: true;
15
+ };
16
+ loginBlur: {
17
+ type: PropType<() => void>;
18
+ required: false;
19
+ };
20
+ error: {
21
+ type: PropType<LoginData>;
22
+ required: true;
23
+ };
24
+ clearErrorMessage: {
25
+ type: PropType<() => void>;
26
+ required: true;
27
+ };
28
+ authForm: {
29
+ type: PropType<LoginData>;
30
+ required: true;
31
+ };
32
+ copyrightYear: {
33
+ type: (StringConstructor | NumberConstructor)[];
34
+ required: true;
35
+ };
36
+ currentLoginTheme: {
37
+ type: ObjectConstructor;
38
+ required: true;
39
+ };
40
+ systemMajorConfig: {
41
+ type: PropType<Record<string, any>>;
42
+ required: true;
43
+ };
44
+ loginLabel: {
45
+ type: StringConstructor;
46
+ required: true;
47
+ };
48
+ accountLoginLabel: {
49
+ type: StringConstructor;
50
+ required: true;
51
+ };
52
+ accountPlaceholder: {
53
+ type: StringConstructor;
54
+ required: true;
55
+ };
56
+ passwordPlaceholder: {
57
+ type: StringConstructor;
58
+ required: true;
59
+ };
60
+ enableI18n: {
61
+ type: BooleanConstructor;
62
+ };
63
+ languages: {
64
+ type: PropType<RuntimeLanguage[]>;
65
+ required: true;
66
+ };
67
+ currentLanguage: {
68
+ type: PropType<RuntimeLanguage>;
69
+ required: true;
70
+ };
71
+ onLanguageChange: {
72
+ type: PropType<(language: RuntimeLanguage) => void>;
73
+ required: true;
74
+ };
75
+ node_code: StringConstructor;
76
+ }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
77
+ [key: string]: any;
78
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
79
+ loginMethod: {
80
+ type: StringConstructor;
81
+ required: true;
82
+ };
83
+ loginUrl: {
84
+ type: StringConstructor;
85
+ required: true;
86
+ };
87
+ login: {
88
+ type: PropType<() => void>;
89
+ required: true;
90
+ };
91
+ loginBlur: {
92
+ type: PropType<() => void>;
93
+ required: false;
94
+ };
95
+ error: {
96
+ type: PropType<LoginData>;
97
+ required: true;
98
+ };
99
+ clearErrorMessage: {
100
+ type: PropType<() => void>;
101
+ required: true;
102
+ };
103
+ authForm: {
104
+ type: PropType<LoginData>;
105
+ required: true;
106
+ };
107
+ copyrightYear: {
108
+ type: (StringConstructor | NumberConstructor)[];
109
+ required: true;
110
+ };
111
+ currentLoginTheme: {
112
+ type: ObjectConstructor;
113
+ required: true;
114
+ };
115
+ systemMajorConfig: {
116
+ type: PropType<Record<string, any>>;
117
+ required: true;
118
+ };
119
+ loginLabel: {
120
+ type: StringConstructor;
121
+ required: true;
122
+ };
123
+ accountLoginLabel: {
124
+ type: StringConstructor;
125
+ required: true;
126
+ };
127
+ accountPlaceholder: {
128
+ type: StringConstructor;
129
+ required: true;
130
+ };
131
+ passwordPlaceholder: {
132
+ type: StringConstructor;
133
+ required: true;
134
+ };
135
+ enableI18n: {
136
+ type: BooleanConstructor;
137
+ };
138
+ languages: {
139
+ type: PropType<RuntimeLanguage[]>;
140
+ required: true;
141
+ };
142
+ currentLanguage: {
143
+ type: PropType<RuntimeLanguage>;
144
+ required: true;
145
+ };
146
+ onLanguageChange: {
147
+ type: PropType<(language: RuntimeLanguage) => void>;
148
+ required: true;
149
+ };
150
+ node_code: StringConstructor;
151
+ }>>, {
152
+ enableI18n: boolean;
153
+ }>;
154
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { BaseLoginWidget } from './BaseLoginWidget';
2
+ export declare class SSOLoginWidget extends BaseLoginWidget {
3
+ initialize(props: any): this;
4
+ protected get keyMapping(): Record<string, string>;
5
+ protected mappingForKey(key: string): string;
6
+ protected get loginMethod(): string;
7
+ protected get loginUrl(): string;
8
+ login(): Promise<void>;
9
+ protected submitLoginFormData(formData: Record<string, string>): void;
10
+ protected getUrlParameters(): Record<string, string>;
11
+ protected beforeMount(): Promise<void>;
12
+ }
@@ -1 +1,3 @@
1
+ export * from './BaseLoginWidget';
1
2
  export * from './LoginWidget';
3
+ export * from './SSOLoginWidget';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oinone/kunlun-vue-admin-base",
3
- "version": "6.3.5",
3
+ "version": "6.3.6",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf dist",
@@ -14,13 +14,13 @@
14
14
  "doc": "typedoc --out docs src/index.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@oinone/kunlun-vue-admin-layout": "6.3.5",
18
- "@oinone/kunlun-vue-router": "6.3.5",
19
- "@oinone/kunlun-vue-ui": "6.3.5",
20
- "@oinone/kunlun-vue-ui-antd": "6.3.5",
21
- "@oinone/kunlun-vue-ui-common": "6.3.5",
22
- "@oinone/kunlun-vue-ui-el": "6.3.5",
23
- "@oinone/kunlun-vue-widget": "6.3.5",
17
+ "@oinone/kunlun-vue-admin-layout": "6.3.6",
18
+ "@oinone/kunlun-vue-router": "6.3.6",
19
+ "@oinone/kunlun-vue-ui": "6.3.6",
20
+ "@oinone/kunlun-vue-ui-antd": "6.3.6",
21
+ "@oinone/kunlun-vue-ui-common": "6.3.6",
22
+ "@oinone/kunlun-vue-ui-el": "6.3.6",
23
+ "@oinone/kunlun-vue-widget": "6.3.6",
24
24
  "@wangeditor/editor": "5.1.23",
25
25
  "@wangeditor/editor-for-vue": "5.1.11",
26
26
  "@wangeditor/plugin-upload-attachment": "1.1.0",
@@ -12,7 +12,7 @@ export class BaseI18nRouterWidget extends RouterWidget {
12
12
 
13
13
  protected translateBrowserTitle = true;
14
14
 
15
- protected async beforeMount() {
15
+ protected beforeMount() {
16
16
  if (OioProvider.getConfig().enableI18n !== false) {
17
17
  initI18n(this.moduleName, this.isoStorageKey).then(() => {
18
18
  const title = getDefaultBrowser()?.title;
@@ -1,13 +1,13 @@
1
1
  import { RouterPath, RuntimeContextManager } from '@oinone/kunlun-engine';
2
2
  import { GlobalConfig } from '@oinone/kunlun-meta';
3
+ import { setGlobalEnv } from '@oinone/kunlun-router';
3
4
  import { UrlHelper } from '@oinone/kunlun-shared';
4
5
  import { SPIFactory } from '@oinone/kunlun-spi';
5
6
  import { VueWidget } from '@oinone/kunlun-vue-widget';
6
7
  import { DefaultMetadataMainViewWidget } from '../main-view';
7
8
  import { RootComponentSPI } from '../spi';
8
- import { FirstResetPasswordWidget, ForgetPasswordWidget, HomePageWidget, LoginPageWidget } from '../view';
9
+ import { FirstResetPasswordWidget, ForgetPasswordWidget, HomePageWidget, LoginWidget } from '../view';
9
10
  import RootView from './Root.vue';
10
- import { setGlobalEnv } from '@oinone/kunlun-router';
11
11
 
12
12
  interface Page extends RouterPath {
13
13
  slotName?: string;
@@ -19,6 +19,11 @@ const DEFAULT_PAGES: Page[] = [
19
19
  widget: 'Login',
20
20
  slotName: 'login'
21
21
  },
22
+ {
23
+ path: '/sso-login',
24
+ widget: 'sso-login',
25
+ slotName: 'ssoLogin'
26
+ },
22
27
  {
23
28
  path: '/forget',
24
29
  widget: 'ForgetPassword',
@@ -42,7 +47,8 @@ export class RootWidget extends VueWidget {
42
47
 
43
48
  @VueWidget.Reactive()
44
49
  public widgets = {
45
- login: LoginPageWidget,
50
+ login: LoginWidget,
51
+ ssoLogin: LoginWidget,
46
52
  page: DefaultMetadataMainViewWidget,
47
53
  forget: ForgetPasswordWidget,
48
54
  first: FirstResetPasswordWidget