@amirjalili1374/ui-kit 1.3.33 → 1.4.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.
- package/dist/components/shared/ConfirmDialog.vue.d.ts +1 -1
- package/dist/components/shared/CustomAutocomplete.vue.d.ts +2 -2
- package/dist/components/shared/CustomDataTable.vue.d.ts +1 -1
- package/dist/components/shared/DescriptionInput.vue.d.ts +3 -3
- package/dist/components/shared/MoneyInput.vue.d.ts +4 -4
- package/dist/components/shared/PdfViewer.vue.d.ts +1 -1
- package/dist/components/shared/ShamsiDatePicker.vue.d.ts +8 -8
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/plugins/key-clock.d.ts +70 -0
- package/dist/plugins/key-clock.d.ts.map +1 -0
- package/dist/plugins/vuetify.d.ts +92 -0
- package/dist/plugins/vuetify.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/theme/darkThemes/DarkModernTheme.d.ts +4 -0
- package/dist/theme/darkThemes/DarkModernTheme.d.ts.map +1 -0
- package/dist/theme/darkThemes/DarkOrangeTheme.d.ts +4 -0
- package/dist/theme/darkThemes/DarkOrangeTheme.d.ts.map +1 -0
- package/dist/theme/darkThemes/DarkPurpleTheme.d.ts +4 -0
- package/dist/theme/darkThemes/DarkPurpleTheme.d.ts.map +1 -0
- package/dist/theme/darkThemes/DarkRedTheme.d.ts +4 -0
- package/dist/theme/darkThemes/DarkRedTheme.d.ts.map +1 -0
- package/dist/theme/darkThemes/DarkSilverTheme.d.ts +4 -0
- package/dist/theme/darkThemes/DarkSilverTheme.d.ts.map +1 -0
- package/dist/theme/darkThemes/DarkSteelTealGreen.d.ts +4 -0
- package/dist/theme/darkThemes/DarkSteelTealGreen.d.ts.map +1 -0
- package/dist/theme/darkThemes/DarkTealTheme.d.ts +4 -0
- package/dist/theme/darkThemes/DarkTealTheme.d.ts.map +1 -0
- package/dist/theme/lightThemes/ModernTheme.d.ts +4 -0
- package/dist/theme/lightThemes/ModernTheme.d.ts.map +1 -0
- package/dist/theme/lightThemes/OrangeTheme.d.ts +4 -0
- package/dist/theme/lightThemes/OrangeTheme.d.ts.map +1 -0
- package/dist/theme/lightThemes/PurpleTheme.d.ts +4 -0
- package/dist/theme/lightThemes/PurpleTheme.d.ts.map +1 -0
- package/dist/theme/lightThemes/RedTheme.d.ts +4 -0
- package/dist/theme/lightThemes/RedTheme.d.ts.map +1 -0
- package/dist/theme/lightThemes/SilverTheme.d.ts +4 -0
- package/dist/theme/lightThemes/SilverTheme.d.ts.map +1 -0
- package/dist/theme/lightThemes/SteelTealGreen.d.ts +4 -0
- package/dist/theme/lightThemes/SteelTealGreen.d.ts.map +1 -0
- package/dist/theme/lightThemes/TealTheme.d.ts +4 -0
- package/dist/theme/lightThemes/TealTheme.d.ts.map +1 -0
- package/dist/types/themeTypes/ThemeType.d.ts +47 -0
- package/dist/types/themeTypes/ThemeType.d.ts.map +1 -0
- package/dist/ui-kit.cjs.js +1 -1
- package/dist/ui-kit.cjs.js.map +1 -1
- package/dist/ui-kit.es.js +349 -2
- package/dist/ui-kit.es.js.map +1 -1
- package/dist/utils/appInitializer/AppBootstrap.d.ts +90 -0
- package/dist/utils/appInitializer/AppBootstrap.d.ts.map +1 -0
- package/dist/utils/appInitializer/AuthModeInitializer.d.ts +38 -0
- package/dist/utils/appInitializer/AuthModeInitializer.d.ts.map +1 -0
- package/dist/utils/appInitializer/InitializerModeInitializer.d.ts +29 -0
- package/dist/utils/appInitializer/InitializerModeInitializer.d.ts.map +1 -0
- package/dist/utils/appInitializer/JwtInitializer.d.ts +21 -0
- package/dist/utils/appInitializer/JwtInitializer.d.ts.map +1 -0
- package/dist/utils/appInitializer/KeycloakInitializer.d.ts +18 -0
- package/dist/utils/appInitializer/KeycloakInitializer.d.ts.map +1 -0
- package/dist/utils/appInitializer/index.d.ts +17 -0
- package/dist/utils/appInitializer/index.d.ts.map +1 -0
- package/package.json +5 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App Bootstrap Manager
|
|
3
|
+
*
|
|
4
|
+
* Orchestrates the initialization of Vue app with different authentication modes
|
|
5
|
+
* and plugin registration.
|
|
6
|
+
*/
|
|
7
|
+
import type { App } from 'vue';
|
|
8
|
+
import { type KeycloakConfig } from './KeycloakInitializer';
|
|
9
|
+
import { type JwtConfig } from './JwtInitializer';
|
|
10
|
+
import { type InitializerModeConfig } from './InitializerModeInitializer';
|
|
11
|
+
import type { AuthMode } from './AuthModeInitializer';
|
|
12
|
+
export interface PluginConfig {
|
|
13
|
+
router?: any;
|
|
14
|
+
perfectScrollbar?: any;
|
|
15
|
+
print?: any;
|
|
16
|
+
vueApexCharts?: any;
|
|
17
|
+
vue3PersianDatetimePicker?: any;
|
|
18
|
+
vuetify?: any;
|
|
19
|
+
customPlugins?: Array<{
|
|
20
|
+
plugin: any;
|
|
21
|
+
options?: any;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
24
|
+
export interface DirectiveConfig {
|
|
25
|
+
digitLimit?: any;
|
|
26
|
+
permission?: any;
|
|
27
|
+
customDirectives?: Array<{
|
|
28
|
+
name: string;
|
|
29
|
+
directive: any;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
export interface ComponentConfig {
|
|
33
|
+
vue3PersianDatetimePicker?: any;
|
|
34
|
+
customComponents?: Array<{
|
|
35
|
+
name: string;
|
|
36
|
+
component: any;
|
|
37
|
+
}>;
|
|
38
|
+
}
|
|
39
|
+
export interface AppBootstrapConfig {
|
|
40
|
+
app: App;
|
|
41
|
+
authMode: AuthMode | string;
|
|
42
|
+
authConfig: KeycloakConfig | JwtConfig | InitializerModeConfig;
|
|
43
|
+
plugins?: PluginConfig;
|
|
44
|
+
directives?: DirectiveConfig;
|
|
45
|
+
components?: ComponentConfig;
|
|
46
|
+
onBootstrapStart?: () => void;
|
|
47
|
+
onBootstrapComplete?: () => void;
|
|
48
|
+
onBootstrapError?: (error: unknown) => void;
|
|
49
|
+
}
|
|
50
|
+
export declare class AppBootstrap {
|
|
51
|
+
private app;
|
|
52
|
+
private authMode;
|
|
53
|
+
private authConfig;
|
|
54
|
+
private plugins?;
|
|
55
|
+
private directives?;
|
|
56
|
+
private components?;
|
|
57
|
+
private onBootstrapStart?;
|
|
58
|
+
private onBootstrapComplete?;
|
|
59
|
+
private onBootstrapError?;
|
|
60
|
+
constructor(config: AppBootstrapConfig);
|
|
61
|
+
/**
|
|
62
|
+
* Start the bootstrap process
|
|
63
|
+
*/
|
|
64
|
+
bootstrap(): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Initialize authentication based on mode
|
|
67
|
+
*/
|
|
68
|
+
private initializeAuth;
|
|
69
|
+
/**
|
|
70
|
+
* Register Vue plugins
|
|
71
|
+
*/
|
|
72
|
+
private registerPlugins;
|
|
73
|
+
/**
|
|
74
|
+
* Register Vue directives
|
|
75
|
+
*/
|
|
76
|
+
private registerDirectives;
|
|
77
|
+
/**
|
|
78
|
+
* Register Vue components
|
|
79
|
+
*/
|
|
80
|
+
private registerComponents;
|
|
81
|
+
/**
|
|
82
|
+
* Mount the Vue app
|
|
83
|
+
*/
|
|
84
|
+
private mountApp;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Convenience function to create and run bootstrap
|
|
88
|
+
*/
|
|
89
|
+
export declare function bootstrapApp(config: AppBootstrapConfig): Promise<void>;
|
|
90
|
+
//# sourceMappingURL=AppBootstrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppBootstrap.d.ts","sourceRoot":"","sources":["../../../src/utils/appInitializer/AppBootstrap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACjF,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAA8B,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACtG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,gBAAgB,CAAC,EAAE,GAAG,CAAC;IACvB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,yBAAyB,CAAC,EAAE,GAAG,CAAC;IAChC,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,GAAG,CAAC;QAAC,OAAO,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;CACvD;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,gBAAgB,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,eAAe;IAC9B,yBAAyB,CAAC,EAAE,GAAG,CAAC;IAChC,gBAAgB,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,GAAG,CAAC;IACT,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B,UAAU,EAAE,cAAc,GAAG,SAAS,GAAG,qBAAqB,CAAC;IAC/D,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,UAAU,CAAqD;IACvE,OAAO,CAAC,OAAO,CAAC,CAAe;IAC/B,OAAO,CAAC,UAAU,CAAC,CAAkB;IACrC,OAAO,CAAC,UAAU,CAAC,CAAkB;IACrC,OAAO,CAAC,gBAAgB,CAAC,CAAa;IACtC,OAAO,CAAC,mBAAmB,CAAC,CAAa;IACzC,OAAO,CAAC,gBAAgB,CAAC,CAA2B;gBAExC,MAAM,EAAE,kBAAkB;IAYtC;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IA6BhC;;OAEG;YACW,cAAc;IA2B5B;;OAEG;IACH,OAAO,CAAC,eAAe;IAkCvB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAkB1B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAc1B;;OAEG;IACH,OAAO,CAAC,QAAQ;CAGjB;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAG5E"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Abstract base class for authentication mode initializers
|
|
3
|
+
*
|
|
4
|
+
* Each authentication mode (keycloak, jwt, initializer/dev) should extend this class
|
|
5
|
+
* and implement the initialization logic.
|
|
6
|
+
*/
|
|
7
|
+
export type AuthMode = 'keycloak' | 'jwt' | 'initializer' | 'dev';
|
|
8
|
+
export interface AuthModeConfig {
|
|
9
|
+
mode: AuthMode;
|
|
10
|
+
onError?: (error: unknown) => void;
|
|
11
|
+
onSuccess?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare abstract class AuthModeInitializer {
|
|
14
|
+
protected config: AuthModeConfig;
|
|
15
|
+
constructor(config: AuthModeConfig);
|
|
16
|
+
/**
|
|
17
|
+
* Initialize the authentication mode
|
|
18
|
+
* This is called during app bootstrap
|
|
19
|
+
*/
|
|
20
|
+
abstract initialize(): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Get the authentication mode name
|
|
23
|
+
*/
|
|
24
|
+
abstract getMode(): AuthMode;
|
|
25
|
+
/**
|
|
26
|
+
* Check if this initializer should handle the given mode
|
|
27
|
+
*/
|
|
28
|
+
canHandle(mode: string): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Handle errors during initialization
|
|
31
|
+
*/
|
|
32
|
+
protected handleError(error: unknown): void;
|
|
33
|
+
/**
|
|
34
|
+
* Handle successful initialization
|
|
35
|
+
*/
|
|
36
|
+
protected handleSuccess(): void;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=AuthModeInitializer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthModeInitializer.d.ts","sourceRoot":"","sources":["../../../src/utils/appInitializer/AuthModeInitializer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,KAAK,GAAG,aAAa,GAAG,KAAK,CAAC;AAElE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,8BAAsB,mBAAmB;IACvC,SAAS,CAAC,MAAM,EAAE,cAAc,CAAC;gBAErB,MAAM,EAAE,cAAc;IAIlC;;;OAGG;IACH,QAAQ,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,OAAO,IAAI,QAAQ;IAE5B;;OAEG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIhC;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAQ3C;;OAEG;IACH,SAAS,CAAC,aAAa,IAAI,IAAI;CAKhC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Initializer/Dev mode initializer
|
|
3
|
+
* Uses AppInitializer pattern for app initialization
|
|
4
|
+
*/
|
|
5
|
+
import type { App } from 'vue';
|
|
6
|
+
import { AuthModeInitializer, type AuthMode, type AuthModeConfig } from './AuthModeInitializer';
|
|
7
|
+
export interface AppInitializationResult {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export interface AppInitializer {
|
|
11
|
+
initializeApp: () => Promise<AppInitializationResult>;
|
|
12
|
+
startInitialization: () => Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export interface InitializerModeConfig extends AuthModeConfig {
|
|
15
|
+
mode: 'initializer' | 'dev';
|
|
16
|
+
appInitializer: AppInitializer;
|
|
17
|
+
setLoading?: (loading: boolean) => void;
|
|
18
|
+
redirectToLogin?: () => void | Promise<void>;
|
|
19
|
+
currentRoutePath?: string;
|
|
20
|
+
loginRoutePath?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare class InitializerModeInitializer extends AuthModeInitializer {
|
|
23
|
+
private app;
|
|
24
|
+
constructor(app: App, config: InitializerModeConfig);
|
|
25
|
+
protected get initializerConfig(): InitializerModeConfig;
|
|
26
|
+
getMode(): AuthMode;
|
|
27
|
+
initialize(): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=InitializerModeInitializer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitializerModeInitializer.d.ts","sourceRoot":"","sources":["../../../src/utils/appInitializer/InitializerModeInitializer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEhG,MAAM,WAAW,uBAAuB;IACtC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,aAAa,EAAE,MAAM,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACtD,mBAAmB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D,IAAI,EAAE,aAAa,GAAG,KAAK,CAAC;IAC5B,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,eAAe,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,0BAA2B,SAAQ,mBAAmB;IACjE,OAAO,CAAC,GAAG,CAAM;gBAEL,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,qBAAqB;IAKnD,SAAS,KAAK,iBAAiB,IAAI,qBAAqB,CAEvD;IAED,OAAO,IAAI,QAAQ;IAIb,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAyDlC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JWT authentication mode initializer
|
|
3
|
+
*/
|
|
4
|
+
import type { AxiosInstance } from 'axios';
|
|
5
|
+
import { AuthModeInitializer, type AuthMode, type AuthModeConfig } from './AuthModeInitializer';
|
|
6
|
+
export interface JwtConfig extends AuthModeConfig {
|
|
7
|
+
mode: 'jwt';
|
|
8
|
+
getUserInfo: () => Promise<{
|
|
9
|
+
data?: any;
|
|
10
|
+
}>;
|
|
11
|
+
setUser: (user: any) => void;
|
|
12
|
+
setUserInStorage?: (user: any) => void;
|
|
13
|
+
axiosInstance?: AxiosInstance;
|
|
14
|
+
}
|
|
15
|
+
export declare class JwtInitializer extends AuthModeInitializer {
|
|
16
|
+
constructor(config: JwtConfig);
|
|
17
|
+
protected get jwtConfig(): JwtConfig;
|
|
18
|
+
getMode(): AuthMode;
|
|
19
|
+
initialize(): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=JwtInitializer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JwtInitializer.d.ts","sourceRoot":"","sources":["../../../src/utils/appInitializer/JwtInitializer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEhG,MAAM,WAAW,SAAU,SAAQ,cAAc;IAC/C,IAAI,EAAE,KAAK,CAAC;IACZ,WAAW,EAAE,MAAM,OAAO,CAAC;QAAE,IAAI,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;IAC3C,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7B,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AAED,qBAAa,cAAe,SAAQ,mBAAmB;gBACzC,MAAM,EAAE,SAAS;IAI7B,SAAS,KAAK,SAAS,IAAI,SAAS,CAEnC;IAED,OAAO,IAAI,QAAQ;IAIb,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAmClC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keycloak authentication mode initializer
|
|
3
|
+
*/
|
|
4
|
+
import type { App } from 'vue';
|
|
5
|
+
import type { KeycloakPluginOptions } from '../../plugins/key-clock';
|
|
6
|
+
import { AuthModeInitializer, type AuthMode, type AuthModeConfig } from './AuthModeInitializer';
|
|
7
|
+
export interface KeycloakConfig extends AuthModeConfig {
|
|
8
|
+
mode: 'keycloak';
|
|
9
|
+
keycloakOptions: KeycloakPluginOptions;
|
|
10
|
+
}
|
|
11
|
+
export declare class KeycloakInitializer extends AuthModeInitializer {
|
|
12
|
+
private app;
|
|
13
|
+
private keycloakOptions;
|
|
14
|
+
constructor(app: App, config: KeycloakConfig);
|
|
15
|
+
getMode(): AuthMode;
|
|
16
|
+
initialize(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=KeycloakInitializer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeycloakInitializer.d.ts","sourceRoot":"","sources":["../../../src/utils/appInitializer/KeycloakInitializer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEhG,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,IAAI,EAAE,UAAU,CAAC;IACjB,eAAe,EAAE,qBAAqB,CAAC;CACxC;AAED,qBAAa,mBAAoB,SAAQ,mBAAmB;IAC1D,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,eAAe,CAAwB;gBAEnC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc;IAM5C,OAAO,IAAI,QAAQ;IAIb,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAalC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App Initializer Module
|
|
3
|
+
*
|
|
4
|
+
* Provides classes and utilities for initializing Vue applications
|
|
5
|
+
* with different authentication modes and plugin configurations.
|
|
6
|
+
*/
|
|
7
|
+
export { AuthModeInitializer } from './AuthModeInitializer';
|
|
8
|
+
export type { AuthMode, AuthModeConfig } from './AuthModeInitializer';
|
|
9
|
+
export { KeycloakInitializer } from './KeycloakInitializer';
|
|
10
|
+
export type { KeycloakConfig } from './KeycloakInitializer';
|
|
11
|
+
export { JwtInitializer } from './JwtInitializer';
|
|
12
|
+
export type { JwtConfig } from './JwtInitializer';
|
|
13
|
+
export { InitializerModeInitializer } from './InitializerModeInitializer';
|
|
14
|
+
export type { AppInitializationResult, AppInitializer, InitializerModeConfig } from './InitializerModeInitializer';
|
|
15
|
+
export { AppBootstrap, bootstrapApp } from './AppBootstrap';
|
|
16
|
+
export type { PluginConfig, DirectiveConfig, ComponentConfig, AppBootstrapConfig } from './AppBootstrap';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/appInitializer/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,YAAY,EACV,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACtB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC5D,YAAY,EACV,YAAY,EACZ,eAAe,EACf,eAAe,EACf,kBAAkB,EACnB,MAAM,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amirjalili1374/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "A reusable UI component library built with Vue 3, Vuetify, and TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/ui-kit.cjs.js",
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
"yup": "1.4.0"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
+
"@dsb-norge/vue-keycloak-js": "^3.0.0",
|
|
99
100
|
"@vueuse/core": "^13.0.0",
|
|
100
101
|
"axios": "^1.8.0",
|
|
101
102
|
"vue": "^3.3.0",
|
|
@@ -103,6 +104,9 @@
|
|
|
103
104
|
"vuetify": "^3.10.0"
|
|
104
105
|
},
|
|
105
106
|
"peerDependenciesMeta": {
|
|
107
|
+
"@dsb-norge/vue-keycloak-js": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
106
110
|
"@vueuse/core": {
|
|
107
111
|
"optional": true
|
|
108
112
|
},
|