@luizleon/sf.prefeiturasp.vuecomponents 4.1.13 → 4.1.15

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.
@@ -1,12 +1,13 @@
1
- import { default as Keycloak, KeycloakConfig, KeycloakInitOptions } from '../keycloak';
2
- export declare class KeycloakInstance extends Keycloak {
3
- constructor(config: KeycloakConfig);
4
- GetAccessTokenAsync(): any;
5
- }
6
- interface IAuthService {
7
- Instance: KeycloakInstance;
1
+ import { KeycloakConfig, KeycloakInitOptions, default as Keycloak } from '../keycloak';
2
+ interface IOidc {
3
+ oidc: Keycloak;
4
+ isAuthenticated: boolean;
8
5
  InitAsync: (initOptions?: KeycloakInitOptions) => Promise<boolean>;
6
+ }
7
+ declare class Oidc implements IOidc {
8
+ constructor(config: KeycloakConfig);
9
+ oidc: Keycloak;
9
10
  isAuthenticated: boolean;
10
- userinfo: Record<string, any> | null;
11
+ InitAsync(initOptions?: KeycloakInitOptions): Promise<boolean>;
11
12
  }
12
- export { IAuthService };
13
+ export { Oidc, IOidc };
@@ -32,47 +32,18 @@ export interface SfButtonProps {
32
32
  value?: string | string[] | number;
33
33
  iconFilled?: boolean;
34
34
  }
35
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SfButtonProps>, {
36
- visible: boolean;
37
- color: string;
38
- size: string;
39
- type: string;
40
- variant: string;
41
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SfButtonProps>, {
42
- visible: boolean;
43
- color: string;
44
- size: string;
45
- type: string;
46
- variant: string;
47
- }>>>, {
35
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SfButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SfButtonProps & {}>, {
48
36
  size: "sm" | "md" | "lg";
49
- type: "button" | "submit" | "reset";
50
37
  visible: boolean;
51
- color: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error";
38
+ type: "reset" | "submit" | "button";
39
+ color: "error" | "primary" | "secondary" | "info" | "success" | "help" | "warn";
52
40
  variant: "text" | "filled" | "outlined";
53
- }, {}>, {
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}>, {
54
42
  default?(_: {}): any;
55
43
  }>;
56
44
  export default _default;
57
- type __VLS_WithDefaults<P, D> = {
58
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
59
- default: D[K];
60
- }> : P[K];
61
- };
62
- type __VLS_Prettify<T> = {
63
- [K in keyof T]: T[K];
64
- } & {};
65
45
  type __VLS_WithTemplateSlots<T, S> = T & {
66
46
  new (): {
67
47
  $slots: S;
68
48
  };
69
49
  };
70
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
71
- type __VLS_TypePropsToOption<T> = {
72
- [K in keyof T]-?: {} extends Pick<T, K> ? {
73
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
74
- } : {
75
- type: import('vue').PropType<T[K]>;
76
- required: true;
77
- };
78
- };
@@ -6,7 +6,7 @@ export interface SfContentProps {
6
6
  disableHeaderPadding?: boolean;
7
7
  disableFooterPadding?: boolean;
8
8
  }
9
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToOption<SfContentProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<SfContentProps>>>, {}, {}>, {
9
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SfContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SfContentProps & {}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}>, {
10
10
  header?(_: {}): any;
11
11
  default?(_: {}): any;
12
12
  footer?(_: {}): any;
@@ -17,12 +17,3 @@ type __VLS_WithTemplateSlots<T, S> = T & {
17
17
  $slots: S;
18
18
  };
19
19
  };
20
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
- type __VLS_TypePropsToOption<T> = {
22
- [K in keyof T]-?: {} extends Pick<T, K> ? {
23
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
- } : {
25
- type: import('vue').PropType<T[K]>;
26
- required: true;
27
- };
28
- };
@@ -7,48 +7,25 @@ export interface SfDrawerProps {
7
7
  position?: "left" | "right" | "bottom" | "full";
8
8
  style?: StyleValue;
9
9
  }
10
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SfDrawerProps>, {
11
- visible: boolean;
12
- position: string;
13
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- "update:visible": (v: boolean) => void;
15
- open: () => void;
16
- "before-close": () => void;
17
- }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SfDrawerProps>, {
18
- visible: boolean;
19
- position: string;
20
- }>>> & {
10
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SfDrawerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "update:visible": (v: boolean) => any;
12
+ open: () => any;
13
+ "before-close": () => any;
14
+ }, string, import('vue').PublicProps, Readonly<SfDrawerProps & {
21
15
  "onUpdate:visible"?: ((v: boolean) => any) | undefined;
22
16
  onOpen?: (() => any) | undefined;
23
17
  "onBefore-close"?: (() => any) | undefined;
24
- }, {
18
+ }>, {
25
19
  visible: boolean;
26
20
  position: "left" | "right" | "bottom" | "full";
27
- }, {}>, {
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}>, {
28
22
  title?(_: {}): any;
29
23
  default?(_: {}): any;
30
24
  footer?(_: {}): any;
31
25
  }>;
32
26
  export default _default;
33
- type __VLS_WithDefaults<P, D> = {
34
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
- default: D[K];
36
- }> : P[K];
37
- };
38
- type __VLS_Prettify<T> = {
39
- [K in keyof T]: T[K];
40
- } & {};
41
27
  type __VLS_WithTemplateSlots<T, S> = T & {
42
28
  new (): {
43
29
  $slots: S;
44
30
  };
45
31
  };
46
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
47
- type __VLS_TypePropsToOption<T> = {
48
- [K in keyof T]-?: {} extends Pick<T, K> ? {
49
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
50
- } : {
51
- type: import('vue').PropType<T[K]>;
52
- required: true;
53
- };
54
- };
@@ -16,43 +16,12 @@ export interface SfIconProps {
16
16
  tooltip?: string;
17
17
  color?: Color | "inherit";
18
18
  }
19
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SfIconProps>, {
20
- visible: boolean;
21
- class: string;
22
- style: string;
23
- size: string;
24
- dotColor: string;
25
- color: string;
26
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SfIconProps>, {
27
- visible: boolean;
28
- class: string;
29
- style: string;
30
- size: string;
31
- dotColor: string;
32
- color: string;
33
- }>>>, {
34
- style: StyleValue;
35
- class: any;
19
+ declare const _default: import('vue').DefineComponent<SfIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SfIconProps & {}>, {
36
20
  size: IconSize;
21
+ class: any;
22
+ style: string | false | import('vue').CSSProperties | StyleValue[] | null;
37
23
  visible: boolean;
38
24
  dotColor: Color;
39
25
  color: Color | "inherit";
40
- }, {}>;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}>;
41
27
  export default _default;
42
- type __VLS_WithDefaults<P, D> = {
43
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
- default: D[K];
45
- }> : P[K];
46
- };
47
- type __VLS_Prettify<T> = {
48
- [K in keyof T]: T[K];
49
- } & {};
50
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
51
- type __VLS_TypePropsToOption<T> = {
52
- [K in keyof T]-?: {} extends Pick<T, K> ? {
53
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
54
- } : {
55
- type: import('vue').PropType<T[K]>;
56
- required: true;
57
- };
58
- };
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}>;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}>;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}>;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}>;
2
2
  export default _default;
@@ -1,10 +1,10 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
- mounted: () => void;
3
- logout: () => void;
4
- }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
5
- onLogout?: (() => any) | undefined;
2
+ mounted: () => any;
3
+ logout: () => any;
4
+ }, string, import('vue').PublicProps, Readonly<{
6
5
  onMounted?: (() => any) | undefined;
7
- }, {}, {}>, {
6
+ onLogout?: (() => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}>, {
8
8
  title?(_: {}): any;
9
9
  action?(_: {}): any;
10
10
  menu?(_: {}): any;
@@ -8,35 +8,14 @@ export interface SfMessageProps {
8
8
  style?: StyleValue;
9
9
  icon?: string;
10
10
  }
11
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SfMessageProps>, {
12
- color: string;
13
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SfMessageProps>, {
14
- color: string;
15
- }>>>, {
16
- color: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error";
17
- }, {}>, {
11
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SfMessageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SfMessageProps & {}>, {
12
+ color: "error" | "primary" | "secondary" | "info" | "success" | "help" | "warn";
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}>, {
18
14
  default?(_: {}): any;
19
15
  }>;
20
16
  export default _default;
21
- type __VLS_WithDefaults<P, D> = {
22
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
23
- default: D[K];
24
- }> : P[K];
25
- };
26
- type __VLS_Prettify<T> = {
27
- [K in keyof T]: T[K];
28
- } & {};
29
17
  type __VLS_WithTemplateSlots<T, S> = T & {
30
18
  new (): {
31
19
  $slots: S;
32
20
  };
33
21
  };
34
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
- type __VLS_TypePropsToOption<T> = {
36
- [K in keyof T]-?: {} extends Pick<T, K> ? {
37
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
38
- } : {
39
- type: import('vue').PropType<T[K]>;
40
- required: true;
41
- };
42
- };
@@ -1,16 +1,7 @@
1
1
  import { SfNavMenuItem } from './../../types';
2
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
2
+ declare const _default: import('vue').DefineComponent<{
3
3
  items: SfNavMenuItem[];
4
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
4
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
5
5
  items: SfNavMenuItem[];
6
- }>>>, {}, {}>;
6
+ } & {}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}>;
7
7
  export default _default;
8
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
- type __VLS_TypePropsToOption<T> = {
10
- [K in keyof T]-?: {} extends Pick<T, K> ? {
11
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
- } : {
13
- type: import('vue').PropType<T[K]>;
14
- required: true;
15
- };
16
- };
@@ -5,7 +5,7 @@ export interface SfTabNavigationTab {
5
5
  export interface SfTabNavigationProps {
6
6
  tabs: SfTabNavigationTab[];
7
7
  }
8
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToOption<SfTabNavigationProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<SfTabNavigationProps>>>, {}, {}>, {
8
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SfTabNavigationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SfTabNavigationProps & {}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}>, {
9
9
  item?(_: {
10
10
  item: SfTabNavigationTab;
11
11
  navigate: any;
@@ -18,12 +18,3 @@ type __VLS_WithTemplateSlots<T, S> = T & {
18
18
  $slots: S;
19
19
  };
20
20
  };
21
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
- type __VLS_TypePropsToOption<T> = {
23
- [K in keyof T]-?: {} extends Pick<T, K> ? {
24
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
- } : {
26
- type: import('vue').PropType<T[K]>;
27
- required: true;
28
- };
29
- };
@@ -1,7 +1,7 @@
1
1
  export interface SfTooltipProps {
2
2
  text: string;
3
3
  }
4
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToOption<SfTooltipProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<SfTooltipProps>>>, {}, {}>, {
4
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SfTooltipProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SfTooltipProps & {}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}>, {
5
5
  default?(_: {}): any;
6
6
  }>;
7
7
  export default _default;
@@ -10,12 +10,3 @@ type __VLS_WithTemplateSlots<T, S> = T & {
10
10
  $slots: S;
11
11
  };
12
12
  };
13
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
- type __VLS_TypePropsToOption<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
20
- };
21
- };
@@ -1,4 +1,4 @@
1
- import { AxiosInstance, AxiosResponse, CreateAxiosDefaults } from 'axios';
1
+ import { AxiosInstance, AxiosResponse, CreateAxiosDefaults, InternalAxiosRequestConfig } from 'axios';
2
2
  import { AppResult } from '../common/appResult';
3
3
  interface ApiClientOptions {
4
4
  config?: CreateAxiosDefaults;
@@ -7,7 +7,7 @@ interface ApiClientOptions {
7
7
  declare class ApiClient {
8
8
  constructor(options?: ApiClientOptions);
9
9
  axios: AxiosInstance;
10
- GetAccessTokenAsync(): Promise<any>;
10
+ AccessTokenInterceptor(config: InternalAxiosRequestConfig<any>): Promise<InternalAxiosRequestConfig<any>>;
11
11
  GetAsync<T>(url: string): Promise<AppResult<T>>;
12
12
  PostAsync<T>(url: string, data: any): Promise<AppResult<T>>;
13
13
  PutAsync<T>(url: string, data: any): Promise<AppResult<T>>;
package/dist/index.d.ts CHANGED
@@ -9,11 +9,9 @@ import { default as SfTooltip } from './components/tooltip/Tooltip';
9
9
  import { default as SfNavMenu } from './components/navmenu/NavMenu';
10
10
  import { UseNavMenuService } from './services/navMenuService';
11
11
  import { UseAlertService, UseConfirmService } from './services/dialogService';
12
- import { StartAuthService, UseAuthService } from './services/authService';
12
+ import { ConfigAuth, UseAuth } from './services/authService';
13
13
  import { AppResult } from './common/appResult';
14
- import { AxiosClient, UseAxiosClient } from './axios/axiosClient';
15
- import { default as Keycloak } from './keycloak';
16
- import { ApiClient, UseApiClient } from './http-client/apiClient';
14
+ import { ApiClient } from './http-client/apiClient';
17
15
  import { Utilities } from './common/utilities';
18
16
  declare function RemovePreloader(): void;
19
17
  declare function SetInitialTheme(): void;
@@ -21,5 +19,5 @@ declare function ToggleTheme(): void;
21
19
  declare function EnableDarkMode(): void;
22
20
  declare function EnableLightMode(): void;
23
21
  declare function ClearStoredTheme(): void;
24
- export { SfLayout, SfIcon, SfContent, SfTabNavigation, SfButton, SfDrawer, SfMessage, SfTooltip, SfNavMenu, StartAuthService, UseAuthService, UseNavMenuService, UseConfirmService, UseAlertService, UseAxiosClient, RemovePreloader, AppResult, AxiosClient, ToggleTheme, EnableDarkMode, EnableLightMode, Keycloak, ApiClient, UseApiClient, Utilities, ClearStoredTheme, SetInitialTheme, };
22
+ export { SfLayout, SfIcon, SfContent, SfTabNavigation, SfButton, SfDrawer, SfMessage, SfTooltip, SfNavMenu, ConfigAuth, UseAuth, UseNavMenuService, UseConfirmService, UseAlertService, RemovePreloader, AppResult, ToggleTheme, EnableDarkMode, EnableLightMode, ApiClient, Utilities, ClearStoredTheme, SetInitialTheme, };
25
23
  export * from './types';
@@ -1,122 +1,5 @@
1
- import { KeycloakConfig, KeycloakInitOptions } from '../keycloak';
2
- import { IAuthService } from '../common/auth';
3
- declare const UseAuthService: () => {
4
- Instance: {
5
- GetAccessTokenAsync: () => any;
6
- authenticated?: boolean | undefined;
7
- subject?: string | undefined;
8
- responseMode?: import('../keycloak').KeycloakResponseMode | undefined;
9
- responseType?: import('../keycloak').KeycloakResponseType | undefined;
10
- flow?: import('../keycloak').KeycloakFlow | undefined;
11
- realmAccess?: {
12
- roles: string[];
13
- } | undefined;
14
- resourceAccess?: import('../keycloak').KeycloakResourceAccess | undefined;
15
- token?: string | undefined;
16
- tokenParsed?: {
17
- [x: string]: any;
18
- iss?: string | undefined;
19
- sub?: string | undefined;
20
- aud?: string | undefined;
21
- exp?: number | undefined;
22
- iat?: number | undefined;
23
- auth_time?: number | undefined;
24
- nonce?: string | undefined;
25
- acr?: string | undefined;
26
- amr?: string | undefined;
27
- azp?: string | undefined;
28
- session_state?: string | undefined;
29
- realm_access?: {
30
- roles: string[];
31
- } | undefined;
32
- resource_access?: import('../keycloak').KeycloakResourceAccess | undefined;
33
- } | undefined;
34
- refreshToken?: string | undefined;
35
- refreshTokenParsed?: {
36
- [x: string]: any;
37
- iss?: string | undefined;
38
- sub?: string | undefined;
39
- aud?: string | undefined;
40
- exp?: number | undefined;
41
- iat?: number | undefined;
42
- auth_time?: number | undefined;
43
- nonce?: string | undefined;
44
- acr?: string | undefined;
45
- amr?: string | undefined;
46
- azp?: string | undefined;
47
- session_state?: string | undefined;
48
- realm_access?: {
49
- roles: string[];
50
- } | undefined;
51
- resource_access?: import('../keycloak').KeycloakResourceAccess | undefined;
52
- } | undefined;
53
- idToken?: string | undefined;
54
- idTokenParsed?: {
55
- [x: string]: any;
56
- iss?: string | undefined;
57
- sub?: string | undefined;
58
- aud?: string | undefined;
59
- exp?: number | undefined;
60
- iat?: number | undefined;
61
- auth_time?: number | undefined;
62
- nonce?: string | undefined;
63
- acr?: string | undefined;
64
- amr?: string | undefined;
65
- azp?: string | undefined;
66
- session_state?: string | undefined;
67
- realm_access?: {
68
- roles: string[];
69
- } | undefined;
70
- resource_access?: import('../keycloak').KeycloakResourceAccess | undefined;
71
- } | undefined;
72
- timeSkew?: number | undefined;
73
- loginRequired?: boolean | undefined;
74
- authServerUrl?: string | undefined;
75
- realm?: string | undefined;
76
- clientId?: string | undefined;
77
- redirectUri?: string | undefined;
78
- sessionId?: string | undefined;
79
- profile?: {
80
- id?: string | undefined;
81
- username?: string | undefined;
82
- email?: string | undefined;
83
- firstName?: string | undefined;
84
- lastName?: string | undefined;
85
- enabled?: boolean | undefined;
86
- emailVerified?: boolean | undefined;
87
- totp?: boolean | undefined;
88
- createdTimestamp?: number | undefined;
89
- attributes?: Record<string, unknown> | undefined;
90
- } | undefined;
91
- userInfo?: {} | undefined;
92
- onReady?: ((authenticated?: boolean | undefined) => void) | undefined;
93
- onAuthSuccess?: (() => void) | undefined;
94
- onAuthError?: ((errorData: import('../keycloak').KeycloakError) => void) | undefined;
95
- onAuthRefreshSuccess?: (() => void) | undefined;
96
- onAuthRefreshError?: (() => void) | undefined;
97
- onAuthLogout?: (() => void) | undefined;
98
- onTokenExpired?: (() => void) | undefined;
99
- onActionUpdate?: ((status: "success" | "error" | "cancelled") => void) | undefined;
100
- init: (initOptions: KeycloakInitOptions) => Promise<boolean>;
101
- login: (options?: import('../keycloak').KeycloakLoginOptions | undefined) => Promise<void>;
102
- logout: (options?: import('../keycloak').KeycloakLogoutOptions | undefined) => Promise<void>;
103
- register: (options?: import('../keycloak').KeycloakRegisterOptions | undefined) => Promise<void>;
104
- accountManagement: () => Promise<void>;
105
- createLoginUrl: (options?: import('../keycloak').KeycloakLoginOptions | undefined) => string;
106
- createLogoutUrl: (options?: import('../keycloak').KeycloakLogoutOptions | undefined) => string;
107
- createRegisterUrl: (options?: import('../keycloak').KeycloakRegisterOptions | undefined) => string;
108
- createAccountUrl: (options?: import('../keycloak').KeycloakAccountOptions | undefined) => string;
109
- isTokenExpired: (minValidity?: number | undefined) => boolean;
110
- updateToken: (minValidity?: number | undefined) => Promise<boolean>;
111
- clearToken: () => void;
112
- hasRealmRole: (role: string) => boolean;
113
- hasResourceRole: (role: string, resource?: string | undefined) => boolean;
114
- loadUserProfile: () => Promise<import('../keycloak').KeycloakProfile>;
115
- loadUserInfo: () => Promise<{}>;
116
- };
117
- InitAsync: (initOptions?: KeycloakInitOptions | undefined) => Promise<boolean>;
118
- isAuthenticated: boolean;
119
- userinfo: Record<string, any> | null;
120
- };
121
- declare const StartAuthService: (config: KeycloakConfig) => IAuthService;
122
- export { StartAuthService, UseAuthService };
1
+ import { KeycloakConfig } from '../keycloak';
2
+ import { IOidc } from '../common/auth';
3
+ declare function ConfigAuth(config: KeycloakConfig): void;
4
+ declare const UseAuth: () => IOidc;
5
+ export { ConfigAuth, UseAuth };