quang 19.2.0 → 19.2.2
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/auth/index.d.ts +195 -9
- package/auth/mobile/index.d.ts +5 -1
- package/components/autocomplete/index.d.ts +67 -1
- package/components/checkbox/index.d.ts +15 -1
- package/components/date/index.d.ts +89 -1
- package/components/input/index.d.ts +19 -1
- package/components/paginator/index.d.ts +68 -5
- package/components/select/index.d.ts +32 -1
- package/components/shared/index.d.ts +112 -4
- package/components/table/index.d.ts +70 -1
- package/components/wysiwyg/index.d.ts +51 -1
- package/data-handling/index.d.ts +10 -2
- package/device/index.d.ts +14 -1
- package/fesm2022/quang-auth.mjs +18 -18
- package/fesm2022/quang-auth.mjs.map +1 -1
- package/fesm2022/quang-components-autocomplete.mjs +3 -3
- package/fesm2022/quang-components-autocomplete.mjs.map +1 -1
- package/fesm2022/quang-components-checkbox.mjs +3 -3
- package/fesm2022/quang-components-checkbox.mjs.map +1 -1
- package/fesm2022/quang-components-date.mjs +3 -3
- package/fesm2022/quang-components-date.mjs.map +1 -1
- package/fesm2022/quang-components-input.mjs +3 -3
- package/fesm2022/quang-components-input.mjs.map +1 -1
- package/fesm2022/quang-components-paginator.mjs +13 -13
- package/fesm2022/quang-components-paginator.mjs.map +1 -1
- package/fesm2022/quang-components-select.mjs +3 -3
- package/fesm2022/quang-components-select.mjs.map +1 -1
- package/fesm2022/quang-components-shared.mjs +6 -6
- package/fesm2022/quang-components-shared.mjs.map +1 -1
- package/fesm2022/quang-components-table.mjs +4 -4
- package/fesm2022/quang-components-table.mjs.map +1 -1
- package/fesm2022/quang-components-wysiwyg.mjs +3 -3
- package/fesm2022/quang-components-wysiwyg.mjs.map +1 -1
- package/fesm2022/quang-device.mjs +3 -3
- package/fesm2022/quang-device.mjs.map +1 -1
- package/fesm2022/quang-loader.mjs +6 -6
- package/fesm2022/quang-loader.mjs.map +1 -1
- package/fesm2022/quang-overlay-modal.mjs +3 -3
- package/fesm2022/quang-overlay-modal.mjs.map +1 -1
- package/fesm2022/quang-overlay-popover.mjs +6 -6
- package/fesm2022/quang-overlay-popover.mjs.map +1 -1
- package/fesm2022/quang-overlay-shared.mjs +9 -9
- package/fesm2022/quang-overlay-shared.mjs.map +1 -1
- package/fesm2022/quang-overlay-toast.mjs +6 -6
- package/fesm2022/quang-overlay-toast.mjs.map +1 -1
- package/fesm2022/quang-overlay-tooltip.mjs +6 -6
- package/fesm2022/quang-overlay-tooltip.mjs.map +1 -1
- package/fesm2022/quang-translation.mjs +6 -6
- package/fesm2022/quang-translation.mjs.map +1 -1
- package/forms/index.d.ts +51 -2
- package/index.d.ts +13 -9
- package/loader/index.d.ts +69 -4
- package/overlay/modal/index.d.ts +34 -1
- package/overlay/popover/index.d.ts +25 -1
- package/overlay/shared/index.d.ts +116 -3
- package/overlay/toast/index.d.ts +44 -2
- package/overlay/tooltip/index.d.ts +23 -2
- package/package.json +22 -22
- package/shared/index.d.ts +16 -1
- package/translation/index.d.ts +62 -4
- package/auth/auth-providers.d.ts +0 -39
- package/auth/auth.service.d.ts +0 -52
- package/auth/directives/has-at-least-one-role.directive.d.ts +0 -26
- package/auth/directives/has-every-role.directive.d.ts +0 -26
- package/auth/directives/is-authenticated.directive.d.ts +0 -14
- package/auth/directives/is-not-authenticated.directive.d.ts +0 -14
- package/auth/guards/index.d.ts +0 -2
- package/auth/guards/is-allowed.guard.d.ts +0 -2
- package/auth/guards/is-authenticated.guard.d.ts +0 -2
- package/auth/logout-on-error.interceptor.d.ts +0 -9
- package/auth/mobile/mobile-auth-feature.d.ts +0 -2
- package/auth/token-storage/index.d.ts +0 -3
- package/auth/token-storage/local-storage-feature.d.ts +0 -2
- package/auth/token-storage/memory-storage-feature.d.ts +0 -12
- package/auth/token-storage/session-storage-feature.d.ts +0 -2
- package/components/autocomplete/autocomplete.component.d.ts +0 -64
- package/components/checkbox/checkbox.component.d.ts +0 -11
- package/components/date/date.component.d.ts +0 -85
- package/components/input/input.component.d.ts +0 -15
- package/components/paginator/paginator-language.service.d.ts +0 -10
- package/components/paginator/paginator.component.d.ts +0 -30
- package/components/paginator/paginator.module.d.ts +0 -7
- package/components/paginator/paginator.service.d.ts +0 -6
- package/components/paginator/paginatorIntl.d.ts +0 -12
- package/components/select/select.component.d.ts +0 -29
- package/components/shared/ErrorData.d.ts +0 -4
- package/components/shared/makeId.d.ts +0 -1
- package/components/shared/option-list/option-list.component.d.ts +0 -53
- package/components/shared/quang-base-component.directive.d.ts +0 -50
- package/components/table/table.component.d.ts +0 -66
- package/components/wysiwyg/wysiwyg.component.d.ts +0 -46
- package/data-handling/conversion.d.ts +0 -3
- package/data-handling/download.d.ts +0 -3
- package/device/resize-observable.service.d.ts +0 -11
- package/forms/form-group-model.d.ts +0 -18
- package/forms/validators.d.ts +0 -43
- package/loader/loader-providers.d.ts +0 -23
- package/loader/loader.component.d.ts +0 -23
- package/loader/loader.interceptor.d.ts +0 -10
- package/loader/loader.service.d.ts +0 -9
- package/overlay/modal/modal.component.d.ts +0 -29
- package/overlay/popover/popover.component.d.ts +0 -13
- package/overlay/popover/popover.directive.d.ts +0 -11
- package/overlay/shared/CustomViewportRuler.d.ts +0 -63
- package/overlay/shared/quang-base-overlay.component.d.ts +0 -9
- package/overlay/shared/quang-base-overlay.directive.d.ts +0 -44
- package/overlay/toast/toast.component.d.ts +0 -13
- package/overlay/toast/toast.service.d.ts +0 -27
- package/overlay/tooltip/tooltip.component.d.ts +0 -11
- package/overlay/tooltip/tooltip.directive.d.ts +0 -11
- package/shared/intercept-utils.d.ts +0 -13
- package/translation/translation-loader.service.d.ts +0 -10
- package/translation/translation-providers.d.ts +0 -28
- package/translation/translation.service.d.ts +0 -15
- package/translation/translations.tokens.d.ts +0 -5
package/index.d.ts
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { InjectionToken, Provider, EnvironmentProviders } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare const QUANG_CONFIG: InjectionToken<QuangConfig>;
|
|
4
|
+
declare const QUANG_LOGGING_BEHAVIOR: InjectionToken<"normal" | "verbose">;
|
|
5
|
+
interface QuangConfig {
|
|
5
6
|
verbose?: boolean;
|
|
6
7
|
baseHref?: string;
|
|
7
8
|
}
|
|
8
9
|
/** The list of features as an enum to uniquely type each feature. */
|
|
9
|
-
|
|
10
|
+
declare const enum QuangFeatureKind {
|
|
10
11
|
AuthFeature = 0,
|
|
11
12
|
TranslationFeature = 1,
|
|
12
13
|
LoaderFeature = 2
|
|
13
14
|
}
|
|
14
15
|
/** Helper type to represent a Quang feature. */
|
|
15
|
-
|
|
16
|
+
interface QuangFeature<FeatureKind extends QuangFeatureKind> {
|
|
16
17
|
ɵkind: FeatureKind;
|
|
17
18
|
ɵproviders: (Provider | EnvironmentProviders)[];
|
|
18
19
|
}
|
|
19
20
|
/** Helper function to create an object that represents a Quang feature. */
|
|
20
|
-
|
|
21
|
+
declare function quangFeature<FeatureKind extends QuangFeatureKind>(kind: FeatureKind, providers: (Provider | EnvironmentProviders)[]): QuangFeature<FeatureKind>;
|
|
21
22
|
/**
|
|
22
23
|
* A type alias that represents all Quang features available for use with `provideQuangConfig`.
|
|
23
24
|
* Features can be enabled by adding special functions to the `provideQuangConfig` call.
|
|
@@ -26,5 +27,8 @@ export declare function quangFeature<FeatureKind extends QuangFeatureKind>(kind:
|
|
|
26
27
|
*
|
|
27
28
|
* @see {@link provideQuangConfig}
|
|
28
29
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
type QuangFeatures = QuangFeature<QuangFeatureKind>;
|
|
31
|
+
declare function provideQuangConfig(config?: QuangConfig, ...features: QuangFeatures[]): EnvironmentProviders;
|
|
32
|
+
|
|
33
|
+
export { QUANG_CONFIG, QUANG_LOGGING_BEHAVIOR, QuangFeatureKind, provideQuangConfig, quangFeature };
|
|
34
|
+
export type { QuangConfig, QuangFeature, QuangFeatures };
|
package/loader/index.d.ts
CHANGED
|
@@ -1,4 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { HttpInterceptorFn } from '@angular/common/http';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
4
|
+
import { UrlData } from 'quang/shared';
|
|
5
|
+
import * as rxjs from 'rxjs';
|
|
6
|
+
import { QuangFeature, QuangFeatureKind } from 'quang';
|
|
7
|
+
|
|
8
|
+
declare const LOADER_EXCLUDED_URLS: InjectionToken<UrlData[]>;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated
|
|
11
|
+
* @see {@link LOADER_EXCLUDED_URLS}
|
|
12
|
+
*/
|
|
13
|
+
declare const EXCLUDED_URL: InjectionToken<UrlData[]>;
|
|
14
|
+
declare const quangLoaderInterceptor: HttpInterceptorFn;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* <quang-loader></quang-loader>
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* <quang-loader>
|
|
22
|
+
* custom loader here
|
|
23
|
+
* </quang-loader>
|
|
24
|
+
*/
|
|
25
|
+
declare class QuangLoaderComponent {
|
|
26
|
+
/**
|
|
27
|
+
* Minimum time (in milliseconds) to show the loader for
|
|
28
|
+
* @default 500
|
|
29
|
+
*/
|
|
30
|
+
showAtLeastFor: _angular_core.InputSignal<number>;
|
|
31
|
+
private readonly loaderService;
|
|
32
|
+
isLoading: _angular_core.Signal<boolean>;
|
|
33
|
+
showLoaderBuffer$: rxjs.Observable<boolean>;
|
|
34
|
+
showLoader: _angular_core.Signal<boolean | undefined>;
|
|
35
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangLoaderComponent, never>;
|
|
36
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuangLoaderComponent, "quang-loader", never, { "showAtLeastFor": { "alias": "showAtLeastFor"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare class QuangLoaderService {
|
|
40
|
+
private loaderState;
|
|
41
|
+
isLoading: _angular_core.Signal<boolean>;
|
|
42
|
+
show(): void;
|
|
43
|
+
hide(): void;
|
|
44
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangLoaderService, never>;
|
|
45
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<QuangLoaderService>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @example
|
|
50
|
+
* export const appConfig: ApplicationConfig = {
|
|
51
|
+
* providers: [
|
|
52
|
+
* provideLoader([
|
|
53
|
+
* {
|
|
54
|
+
* url: 'assets',
|
|
55
|
+
* method: 'GET',
|
|
56
|
+
* },
|
|
57
|
+
* ])
|
|
58
|
+
* ]
|
|
59
|
+
* }
|
|
60
|
+
*/
|
|
61
|
+
declare function provideQuangLoaderExcludedUrls(excludedUrls: UrlData[]): EnvironmentProviders;
|
|
62
|
+
declare function withLoaderExcludedUrls(excludedUrls: UrlData[]): QuangFeature<QuangFeatureKind.LoaderFeature>;
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated
|
|
65
|
+
* @see {@link provideQuangLoaderExcludedUrls}
|
|
66
|
+
*/
|
|
67
|
+
declare const provideLoader: typeof provideQuangLoaderExcludedUrls;
|
|
68
|
+
|
|
69
|
+
export { EXCLUDED_URL, LOADER_EXCLUDED_URLS, QuangLoaderComponent, QuangLoaderService, provideLoader, provideQuangLoaderExcludedUrls, quangLoaderInterceptor, withLoaderExcludedUrls };
|
package/overlay/modal/index.d.ts
CHANGED
|
@@ -1 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
2
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
5
|
+
import { CdkPortal } from '@angular/cdk/portal';
|
|
6
|
+
|
|
7
|
+
type ModalAnimationMode = 'SLIDE_FROM_LEFT_TO_RIGHT' | 'SLIDE_FROM_RIGHT_TO_LEFT' | 'SLIDE_TOP_TO_BOTTOM' | 'SLIDE_BOTTOM_TO_TOP' | 'FADE';
|
|
8
|
+
declare class QuangModalComponent implements AfterViewInit, OnDestroy {
|
|
9
|
+
private readonly overlay;
|
|
10
|
+
readonly portal?: CdkPortal;
|
|
11
|
+
backdropClick: _angular_core.OutputEmitterRef<void>;
|
|
12
|
+
position: _angular_core.InputSignal<"right" | "left" | "center">;
|
|
13
|
+
height: _angular_core.InputSignal<string>;
|
|
14
|
+
width: _angular_core.InputSignal<string>;
|
|
15
|
+
padding: _angular_core.InputSignal<string>;
|
|
16
|
+
containerClass: _angular_core.InputSignal<string>;
|
|
17
|
+
animationMode: _angular_core.InputSignal<ModalAnimationMode | undefined>;
|
|
18
|
+
backgroundColor: _angular_core.InputSignal<string | undefined>;
|
|
19
|
+
showBackdrop: _angular_core.InputSignal<boolean>;
|
|
20
|
+
positionStrategy: _angular_core.Signal<_angular_cdk_overlay.GlobalPositionStrategy>;
|
|
21
|
+
animationClassEnter: _angular_core.Signal<"" | "left-to-right-enter-active" | "right-to-left-enter-active" | "top-to-bottom-enter-active" | "fade-enter-active">;
|
|
22
|
+
private readonly destroyRef;
|
|
23
|
+
private overlayConfig?;
|
|
24
|
+
private overlayRef?;
|
|
25
|
+
constructor(overlay: Overlay);
|
|
26
|
+
ngAfterViewInit(): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
closeModal(): void;
|
|
29
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangModalComponent, never>;
|
|
30
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuangModalComponent, "quang-modal", never, { "position": { "alias": "position"; "required": true; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "containerClass": { "alias": "containerClass"; "required": false; "isSignal": true; }; "animationMode": { "alias": "animationMode"; "required": false; "isSignal": true; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; "isSignal": true; }; "showBackdrop": { "alias": "showBackdrop"; "required": false; "isSignal": true; }; }, { "backdropClick": "backdropClick"; }, never, ["[header]", "[body]", "[footer]"], true, never>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { QuangModalComponent };
|
|
34
|
+
export type { ModalAnimationMode };
|
|
@@ -1 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
4
|
+
import { QuangBaseOverlayComponent, QuangBaseOverlayDirective } from 'quang/overlay/shared';
|
|
5
|
+
import * as rxjs from 'rxjs';
|
|
6
|
+
import { ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
7
|
+
|
|
8
|
+
declare class QuangPopoverComponent implements QuangBaseOverlayComponent {
|
|
9
|
+
overlayContent: _angular_core.InputSignal<TemplateRef<any> | null>;
|
|
10
|
+
positionPair: _angular_core.WritableSignal<ConnectionPositionPair | null>;
|
|
11
|
+
payload: _angular_core.InputSignal<any>;
|
|
12
|
+
getPopoverPosition: _angular_core.WritableSignal<string>;
|
|
13
|
+
onChangePositionPair$: rxjs.Subscription;
|
|
14
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangPopoverComponent, never>;
|
|
15
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuangPopoverComponent, "quang-popover", never, { "overlayContent": { "alias": "overlayContent"; "required": false; "isSignal": true; }; "payload": { "alias": "payload"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class QuangPopoverDirective extends QuangBaseOverlayDirective<QuangPopoverComponent> {
|
|
19
|
+
targetComponentType: _angular_core.WritableSignal<ComponentType<QuangPopoverComponent> | undefined>;
|
|
20
|
+
content: _angular_core.InputSignal<TemplateRef<any> | null>;
|
|
21
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangPopoverDirective, never>;
|
|
22
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<QuangPopoverDirective, "[quangPopover]", never, { "content": { "alias": "quangPopover"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { QuangPopoverDirective };
|
|
@@ -1,3 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnDestroy, DestroyRef, NgZone } from '@angular/core';
|
|
3
|
+
import { ConnectionPositionPair, ConnectedPosition } from '@angular/cdk/overlay';
|
|
4
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
5
|
+
import { Platform } from '@angular/cdk/platform';
|
|
6
|
+
import { ViewportScrollPosition } from '@angular/cdk/scrolling';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
8
|
+
|
|
9
|
+
declare abstract class QuangBaseOverlayComponent {
|
|
10
|
+
overlayContent: _angular_core.InputSignal<any>;
|
|
11
|
+
payload: _angular_core.InputSignal<any>;
|
|
12
|
+
positionPair: _angular_core.WritableSignal<ConnectionPositionPair | null>;
|
|
13
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangBaseOverlayComponent, never>;
|
|
14
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuangBaseOverlayComponent, "quang-base-overlay-component", never, { "overlayContent": { "alias": "overlayContent"; "required": true; "isSignal": true; }; "payload": { "alias": "payload"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare abstract class QuangBaseOverlayDirective<T extends QuangBaseOverlayComponent> implements OnDestroy {
|
|
18
|
+
targetComponentType: _angular_core.WritableSignal<ComponentType<T> | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* The amount of pixels needed for the popover to automatically disappear. If undefined the popover will not disappear on scroll
|
|
21
|
+
* Default: 100
|
|
22
|
+
* @default 100
|
|
23
|
+
*/
|
|
24
|
+
scrollCloseThreshold: _angular_core.InputSignal<number | undefined>;
|
|
25
|
+
showMethod: _angular_core.InputSignal<"click" | "hover">;
|
|
26
|
+
content: _angular_core.InputSignal<any>;
|
|
27
|
+
quangOverlayPayload: _angular_core.InputSignal<any>;
|
|
28
|
+
closeOnClickOutside: boolean;
|
|
29
|
+
overlayPosition: _angular_core.InputSignal<"top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "right">;
|
|
30
|
+
destroyRef: DestroyRef;
|
|
31
|
+
private top;
|
|
32
|
+
private topLeft;
|
|
33
|
+
private topRight;
|
|
34
|
+
private bottom;
|
|
35
|
+
private bottomLeft;
|
|
36
|
+
private bottomRight;
|
|
37
|
+
private left;
|
|
38
|
+
private right;
|
|
39
|
+
tooltipPosition: _angular_core.Signal<ConnectedPosition[]>;
|
|
40
|
+
private overlayRef;
|
|
41
|
+
private readonly overlay;
|
|
42
|
+
private readonly overlayPositionBuilder;
|
|
43
|
+
private readonly elementRef;
|
|
44
|
+
private positionStrategy;
|
|
45
|
+
private componentOverlayRef;
|
|
46
|
+
onClick(): void;
|
|
47
|
+
onHover(): void;
|
|
48
|
+
onLeave(): void;
|
|
49
|
+
attachOverlay(): void;
|
|
50
|
+
detachOverlay(): void;
|
|
51
|
+
showHideOverlay(): void;
|
|
52
|
+
ngOnDestroy(): void;
|
|
53
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangBaseOverlayDirective<any>, never>;
|
|
54
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<QuangBaseOverlayDirective<any>, never, never, { "scrollCloseThreshold": { "alias": "scrollCloseThreshold"; "required": false; "isSignal": true; }; "showMethod": { "alias": "showMethod"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": true; "isSignal": true; }; "quangOverlayPayload": { "alias": "quangOverlayPayload"; "required": false; "isSignal": true; }; "overlayPosition": { "alias": "overlayPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Class cloe of [ViewportRuler](https://github.com/angular/components/blob/master/src/cdk/scrolling/viewport-ruler.ts)
|
|
59
|
+
* To fix the wrong reported size of the viewport on mobile devices with hidden url bars
|
|
60
|
+
* Issues references:
|
|
61
|
+
* https://github.com/angular/components/issues/18890
|
|
62
|
+
* https://github.com/angular/components/issues/27739
|
|
63
|
+
*
|
|
64
|
+
* To use this component provide it instead of `ViewportRuler`
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* providers: [
|
|
68
|
+
* {
|
|
69
|
+
* provide: ViewportRuler,
|
|
70
|
+
* useClass: CustomViewportRuler
|
|
71
|
+
* }
|
|
72
|
+
* ]
|
|
73
|
+
*/
|
|
74
|
+
declare class CustomViewportRuler implements OnDestroy {
|
|
75
|
+
private _platform;
|
|
76
|
+
/** Used to reference correct document/window */
|
|
77
|
+
protected _document: Document;
|
|
78
|
+
/** Cached viewport dimensions. */
|
|
79
|
+
private _viewportSize;
|
|
80
|
+
/** Stream of viewport change events. */
|
|
81
|
+
private readonly _change;
|
|
82
|
+
constructor(_platform: Platform, ngZone: NgZone, document: any);
|
|
83
|
+
ngOnDestroy(): void;
|
|
84
|
+
/** Returns the viewport's width and height. */
|
|
85
|
+
getViewportSize(): Readonly<{
|
|
86
|
+
width: number;
|
|
87
|
+
height: number;
|
|
88
|
+
}>;
|
|
89
|
+
/** Gets a DOMRect for the viewport's bounds. */
|
|
90
|
+
getViewportRect(): {
|
|
91
|
+
top: number;
|
|
92
|
+
left: number;
|
|
93
|
+
bottom: number;
|
|
94
|
+
right: number;
|
|
95
|
+
height: number;
|
|
96
|
+
width: number;
|
|
97
|
+
};
|
|
98
|
+
/** Gets the (top, left) scroll position of the viewport. */
|
|
99
|
+
getViewportScrollPosition(): ViewportScrollPosition;
|
|
100
|
+
/**
|
|
101
|
+
* Returns a stream that emits whenever the size of the viewport changes.
|
|
102
|
+
* This stream emits outside of the Angular zone.
|
|
103
|
+
* @param throttleTime Time in milliseconds to throttle the stream.
|
|
104
|
+
*/
|
|
105
|
+
change(throttleTime?: number): Observable<Event>;
|
|
106
|
+
/** Event listener that will be used to handle the viewport change events. */
|
|
107
|
+
private _changeListener;
|
|
108
|
+
/** Use defaultView of injected document if available or fallback to global window reference */
|
|
109
|
+
private _getWindow;
|
|
110
|
+
/** Updates the cached viewport size. */
|
|
111
|
+
private _updateViewportSize;
|
|
112
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomViewportRuler, [null, null, { optional: true; }]>;
|
|
113
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CustomViewportRuler>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export { CustomViewportRuler, QuangBaseOverlayComponent, QuangBaseOverlayDirective };
|
package/overlay/toast/index.d.ts
CHANGED
|
@@ -1,2 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as _ngrx_signals_src_deep_signal from '@ngrx/signals/src/deep-signal';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { TemplateRef } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
interface ToastData {
|
|
6
|
+
type: 'success' | 'warning' | 'error';
|
|
7
|
+
title?: string;
|
|
8
|
+
position: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'center' | 'top-center' | 'bottom-center';
|
|
9
|
+
timing: number;
|
|
10
|
+
text?: string;
|
|
11
|
+
textValue?: string;
|
|
12
|
+
showCloseButton?: boolean;
|
|
13
|
+
date?: Date;
|
|
14
|
+
dateFormat?: string;
|
|
15
|
+
customTemplate?: TemplateRef<any>;
|
|
16
|
+
customIcon?: string;
|
|
17
|
+
hideHeader?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare class QuangToastService {
|
|
20
|
+
private toastState;
|
|
21
|
+
isShowing: _angular_core.Signal<boolean>;
|
|
22
|
+
count: _ngrx_signals_src_deep_signal.Signal<number>;
|
|
23
|
+
currentTimeout: _ngrx_signals_src_deep_signal.Signal<number | null>;
|
|
24
|
+
openToast(toastData: ToastData): void;
|
|
25
|
+
closeToast(): void;
|
|
26
|
+
currentToast: _angular_core.WritableSignal<ToastData | null>;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangToastService, never>;
|
|
28
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<QuangToastService>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare class QuangToastComponent {
|
|
32
|
+
toastService: _angular_core.WritableSignal<QuangToastService>;
|
|
33
|
+
readonly isShowing: _angular_core.Signal<boolean>;
|
|
34
|
+
showAtLeastFor: _angular_core.InputSignal<number>;
|
|
35
|
+
private showToastBuffer$;
|
|
36
|
+
showToast: _angular_core.Signal<boolean | undefined>;
|
|
37
|
+
readonly _currentToast: _angular_core.WritableSignal<ToastData | null>;
|
|
38
|
+
close(): void;
|
|
39
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangToastComponent, never>;
|
|
40
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuangToastComponent, "quang-toast", never, { "showAtLeastFor": { "alias": "showAtLeastFor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { QuangToastComponent, QuangToastService };
|
|
44
|
+
export type { ToastData };
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
3
|
+
import { QuangBaseOverlayComponent, QuangBaseOverlayDirective } from 'quang/overlay/shared';
|
|
4
|
+
import { ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
5
|
+
|
|
6
|
+
declare class QuangTooltipComponent implements QuangBaseOverlayComponent {
|
|
7
|
+
overlayContent: _angular_core.InputSignal<string>;
|
|
8
|
+
quangTooltipPosition: _angular_core.InputSignal<"top" | "bottom" | "left" | "right">;
|
|
9
|
+
positionPair: _angular_core.WritableSignal<ConnectionPositionPair | null>;
|
|
10
|
+
payload: _angular_core.InputSignal<unknown>;
|
|
11
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangTooltipComponent, never>;
|
|
12
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuangTooltipComponent, "quang-tooltip", never, { "overlayContent": { "alias": "overlayContent"; "required": true; "isSignal": true; }; "quangTooltipPosition": { "alias": "quangTooltipPosition"; "required": false; "isSignal": true; }; "payload": { "alias": "payload"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class QuangTooltipDirective extends QuangBaseOverlayDirective<QuangTooltipComponent> {
|
|
16
|
+
targetComponentType: _angular_core.WritableSignal<ComponentType<QuangTooltipComponent> | undefined>;
|
|
17
|
+
content: _angular_core.InputSignal<string>;
|
|
18
|
+
showMethod: _angular_core.InputSignal<"click" | "hover">;
|
|
19
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangTooltipDirective, never>;
|
|
20
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<QuangTooltipDirective, "[quangTooltip]", never, { "content": { "alias": "quangTooltip"; "required": true; "isSignal": true; }; "showMethod": { "alias": "showMethod"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { QuangTooltipComponent, QuangTooltipDirective };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quang",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "19.2.
|
|
4
|
+
"version": "19.2.2",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": "^2.3.0"
|
|
7
7
|
},
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"types": "./device/index.d.ts",
|
|
72
72
|
"default": "./fesm2022/quang-device.mjs"
|
|
73
73
|
},
|
|
74
|
-
"./data-handling": {
|
|
75
|
-
"types": "./data-handling/index.d.ts",
|
|
76
|
-
"default": "./fesm2022/quang-data-handling.mjs"
|
|
77
|
-
},
|
|
78
74
|
"./forms": {
|
|
79
75
|
"types": "./forms/index.d.ts",
|
|
80
76
|
"default": "./fesm2022/quang-forms.mjs"
|
|
81
77
|
},
|
|
78
|
+
"./data-handling": {
|
|
79
|
+
"types": "./data-handling/index.d.ts",
|
|
80
|
+
"default": "./fesm2022/quang-data-handling.mjs"
|
|
81
|
+
},
|
|
82
82
|
"./loader": {
|
|
83
83
|
"types": "./loader/index.d.ts",
|
|
84
84
|
"default": "./fesm2022/quang-loader.mjs"
|
|
@@ -103,10 +103,6 @@
|
|
|
103
103
|
"types": "./components/checkbox/index.d.ts",
|
|
104
104
|
"default": "./fesm2022/quang-components-checkbox.mjs"
|
|
105
105
|
},
|
|
106
|
-
"./components/date": {
|
|
107
|
-
"types": "./components/date/index.d.ts",
|
|
108
|
-
"default": "./fesm2022/quang-components-date.mjs"
|
|
109
|
-
},
|
|
110
106
|
"./components/input": {
|
|
111
107
|
"types": "./components/input/index.d.ts",
|
|
112
108
|
"default": "./fesm2022/quang-components-input.mjs"
|
|
@@ -115,41 +111,45 @@
|
|
|
115
111
|
"types": "./components/paginator/index.d.ts",
|
|
116
112
|
"default": "./fesm2022/quang-components-paginator.mjs"
|
|
117
113
|
},
|
|
118
|
-
"./components/
|
|
119
|
-
"types": "./components/
|
|
120
|
-
"default": "./fesm2022/quang-components-
|
|
114
|
+
"./components/date": {
|
|
115
|
+
"types": "./components/date/index.d.ts",
|
|
116
|
+
"default": "./fesm2022/quang-components-date.mjs"
|
|
121
117
|
},
|
|
122
118
|
"./components/shared": {
|
|
123
119
|
"types": "./components/shared/index.d.ts",
|
|
124
120
|
"default": "./fesm2022/quang-components-shared.mjs"
|
|
125
121
|
},
|
|
122
|
+
"./components/wysiwyg": {
|
|
123
|
+
"types": "./components/wysiwyg/index.d.ts",
|
|
124
|
+
"default": "./fesm2022/quang-components-wysiwyg.mjs"
|
|
125
|
+
},
|
|
126
126
|
"./components/table": {
|
|
127
127
|
"types": "./components/table/index.d.ts",
|
|
128
128
|
"default": "./fesm2022/quang-components-table.mjs"
|
|
129
129
|
},
|
|
130
|
-
"./components/
|
|
131
|
-
"types": "./components/
|
|
132
|
-
"default": "./fesm2022/quang-components-
|
|
130
|
+
"./components/select": {
|
|
131
|
+
"types": "./components/select/index.d.ts",
|
|
132
|
+
"default": "./fesm2022/quang-components-select.mjs"
|
|
133
133
|
},
|
|
134
134
|
"./overlay/modal": {
|
|
135
135
|
"types": "./overlay/modal/index.d.ts",
|
|
136
136
|
"default": "./fesm2022/quang-overlay-modal.mjs"
|
|
137
137
|
},
|
|
138
|
-
"./overlay/
|
|
139
|
-
"types": "./overlay/
|
|
140
|
-
"default": "./fesm2022/quang-overlay-
|
|
138
|
+
"./overlay/toast": {
|
|
139
|
+
"types": "./overlay/toast/index.d.ts",
|
|
140
|
+
"default": "./fesm2022/quang-overlay-toast.mjs"
|
|
141
141
|
},
|
|
142
142
|
"./overlay/shared": {
|
|
143
143
|
"types": "./overlay/shared/index.d.ts",
|
|
144
144
|
"default": "./fesm2022/quang-overlay-shared.mjs"
|
|
145
145
|
},
|
|
146
|
+
"./overlay/popover": {
|
|
147
|
+
"types": "./overlay/popover/index.d.ts",
|
|
148
|
+
"default": "./fesm2022/quang-overlay-popover.mjs"
|
|
149
|
+
},
|
|
146
150
|
"./overlay/tooltip": {
|
|
147
151
|
"types": "./overlay/tooltip/index.d.ts",
|
|
148
152
|
"default": "./fesm2022/quang-overlay-tooltip.mjs"
|
|
149
|
-
},
|
|
150
|
-
"./overlay/toast": {
|
|
151
|
-
"types": "./overlay/toast/index.d.ts",
|
|
152
|
-
"default": "./fesm2022/quang-overlay-toast.mjs"
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
}
|
package/shared/index.d.ts
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
2
|
+
declare function isHttpMethod(value: string): value is HttpMethod;
|
|
3
|
+
interface UrlData {
|
|
4
|
+
url: string;
|
|
5
|
+
method: HttpMethod;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* providers: [
|
|
10
|
+
* provideHttpClient(withInterceptors([quangLoaderInterceptor]))
|
|
11
|
+
* ]
|
|
12
|
+
*/
|
|
13
|
+
declare function getExcludedUrlsByMethod(urlData: UrlData[]): Map<HttpMethod, Set<string>>;
|
|
14
|
+
|
|
15
|
+
export { getExcludedUrlsByMethod, isHttpMethod };
|
|
16
|
+
export type { HttpMethod, UrlData };
|
package/translation/index.d.ts
CHANGED
|
@@ -1,4 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EnvironmentProviders, InjectionToken } from '@angular/core';
|
|
3
|
+
import { QuangFeature, QuangFeatureKind } from 'quang';
|
|
4
|
+
import { TranslocoLoader, Translation, HashMap, SetTranslationOptions } from '@jsverse/transloco';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
|
|
7
|
+
interface TranslationConfig {
|
|
8
|
+
availableLangs: string[];
|
|
9
|
+
defaultLang: string;
|
|
10
|
+
fallbackLang: string;
|
|
11
|
+
translationsBasePath?: string;
|
|
12
|
+
reRenderOnLangChange?: boolean;
|
|
13
|
+
prodMode?: boolean;
|
|
14
|
+
failedRetries?: number;
|
|
15
|
+
logMissingKey?: boolean;
|
|
16
|
+
useFallbackTranslation?: boolean;
|
|
17
|
+
allowEmpty?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* export const appConfig: ApplicationConfig = {
|
|
22
|
+
* providers: [
|
|
23
|
+
* provideTranslation({
|
|
24
|
+
* availableLangs: ['it', 'en'],
|
|
25
|
+
* defaultLang: 'it',
|
|
26
|
+
* fallbackLang: 'it',
|
|
27
|
+
* })
|
|
28
|
+
* ]
|
|
29
|
+
* }
|
|
30
|
+
*/
|
|
31
|
+
declare function provideTranslation(config: TranslationConfig): EnvironmentProviders;
|
|
32
|
+
declare function withTranslation(config: TranslationConfig): QuangFeature<QuangFeatureKind.TranslationFeature>;
|
|
33
|
+
|
|
34
|
+
declare class QuangTranslationLoaderService implements TranslocoLoader {
|
|
35
|
+
private readonly httpClient;
|
|
36
|
+
private readonly translationBasePath;
|
|
37
|
+
getTranslation(lang: string): Observable<Translation> | Promise<Translation>;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangTranslationLoaderService, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QuangTranslationLoaderService>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare class QuangTranslationService {
|
|
43
|
+
private readonly _translocoService;
|
|
44
|
+
activeLang: i0.Signal<string | null>;
|
|
45
|
+
private readonly _availableLangs;
|
|
46
|
+
private readonly _defaultLang;
|
|
47
|
+
setActiveLang(lang: string): void;
|
|
48
|
+
getActiveLang(): string | null;
|
|
49
|
+
translate(key: string, params?: HashMap): string;
|
|
50
|
+
setTranslation(translation: Translation, lang?: string, options?: SetTranslationOptions): void;
|
|
51
|
+
setTranslationKey(key: string, value: string, options?: Omit<SetTranslationOptions, 'merge'>): void;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangTranslationService, never>;
|
|
53
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QuangTranslationService>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare const AVAILABLE_LANGS: InjectionToken<string[]>;
|
|
57
|
+
declare const DEFAULT_LANG: InjectionToken<string>;
|
|
58
|
+
declare const FALLBACK_LANG: InjectionToken<string>;
|
|
59
|
+
declare const TRANSLATIONS_BASE_PATH: InjectionToken<string>;
|
|
60
|
+
|
|
61
|
+
export { AVAILABLE_LANGS, DEFAULT_LANG, FALLBACK_LANG, QuangTranslationLoaderService, QuangTranslationService, TRANSLATIONS_BASE_PATH, provideTranslation, withTranslation };
|
|
62
|
+
export type { TranslationConfig };
|
package/auth/auth-providers.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { EnvironmentProviders, Provider } from '@angular/core';
|
|
2
|
-
import { type QuangFeature, QuangFeatureKind } from 'quang';
|
|
3
|
-
import { type QuangAuthConfig } from './auth.service';
|
|
4
|
-
export declare function provideAuth(authConfig?: QuangAuthConfig, ...features: QuangAuthFeatures[]): EnvironmentProviders;
|
|
5
|
-
export declare function withAuth(authConfig?: QuangAuthConfig, ...features: QuangAuthFeatures[]): QuangFeature<QuangFeatureKind.LoaderFeature>;
|
|
6
|
-
/**
|
|
7
|
-
* Helper type to represent a QuangAuth feature.
|
|
8
|
-
*
|
|
9
|
-
* @publicApi
|
|
10
|
-
*/
|
|
11
|
-
export interface QuangAuthFeature<FeatureKind extends QuangAuthFeatureKind> {
|
|
12
|
-
ɵkind: FeatureKind;
|
|
13
|
-
ɵproviders: (Provider | EnvironmentProviders)[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Helper function to create an object that represents a QuangAuth feature.
|
|
17
|
-
*/
|
|
18
|
-
export declare function quangAuthFeature<FeatureKind extends QuangAuthFeatureKind>(kind: FeatureKind, providers: (Provider | EnvironmentProviders)[]): QuangAuthFeature<FeatureKind>;
|
|
19
|
-
/**
|
|
20
|
-
* A type alias that represents all QuangAuth features available for use with `provideAuth`.
|
|
21
|
-
* Features can be enabled by adding special functions to the `provideAuth` call.
|
|
22
|
-
* See documentation for each symbol to find corresponding function name. See also `provideAuth`
|
|
23
|
-
* documentation on how to use those functions.
|
|
24
|
-
*
|
|
25
|
-
* @see {@link provideAuth}
|
|
26
|
-
*
|
|
27
|
-
* @publicApi
|
|
28
|
-
*/
|
|
29
|
-
export type QuangAuthFeatures = QuangAuthFeature<QuangAuthFeatureKind>;
|
|
30
|
-
/**
|
|
31
|
-
* The list of features as an enum to uniquely type each feature.
|
|
32
|
-
*/
|
|
33
|
-
export declare const enum QuangAuthFeatureKind {
|
|
34
|
-
MobileAuthFeature = 0,
|
|
35
|
-
SessionStorageFeature = 1,
|
|
36
|
-
LocalStorageFeature = 2,
|
|
37
|
-
MemoryStorageFeature = 3,
|
|
38
|
-
LogoutOnErrorFeature = 4
|
|
39
|
-
}
|
package/auth/auth.service.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { EnvironmentProviders, InjectionToken } from '@angular/core';
|
|
2
|
-
import { AuthConfig } from 'angular-oauth2-oidc';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare const AUTH_CONFIG: InjectionToken<QuangAuthConfig | undefined>;
|
|
5
|
-
export interface QuangAuthConfig extends AuthConfig {
|
|
6
|
-
autoLogin: boolean;
|
|
7
|
-
sendAccessToken: boolean;
|
|
8
|
-
urlsToSendToken: string[];
|
|
9
|
-
revokeTokensOnLogout?: boolean;
|
|
10
|
-
getUserProfileOnLoginSuccess?: boolean;
|
|
11
|
-
useSilentRefresh: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare function provideQuangAuthConfig(authConfig?: QuangAuthConfig): EnvironmentProviders;
|
|
14
|
-
export declare const OPEN_URI: InjectionToken<(uri: string) => void | undefined>;
|
|
15
|
-
export declare function provideOpenURI(openURI: (uri: string) => void | undefined): EnvironmentProviders;
|
|
16
|
-
interface TokenStatus {
|
|
17
|
-
accessToken: string | null;
|
|
18
|
-
accessTokenExpiresAt: number | null;
|
|
19
|
-
idToken: string | null;
|
|
20
|
-
idTokenExpiresAt: number | null;
|
|
21
|
-
refreshToken: string | null;
|
|
22
|
-
}
|
|
23
|
-
export declare class QuangAuthService {
|
|
24
|
-
private config;
|
|
25
|
-
logLevel: "normal" | "verbose" | null;
|
|
26
|
-
private oAuthService;
|
|
27
|
-
private state;
|
|
28
|
-
loginChecked: import("@ngrx/signals/src/deep-signal").Signal<boolean>;
|
|
29
|
-
isAuthenticated: import("@angular/core").Signal<boolean>;
|
|
30
|
-
authenticationError: import("@ngrx/signals/src/deep-signal").Signal<boolean>;
|
|
31
|
-
tokenStatus: import("@ngrx/signals").DeepSignal<TokenStatus>;
|
|
32
|
-
roles: import("@ngrx/signals/src/deep-signal").Signal<Set<string>>;
|
|
33
|
-
user: import("@ngrx/signals/src/deep-signal").Signal<Record<string, any> | null>;
|
|
34
|
-
constructor();
|
|
35
|
-
init(): Promise<void>;
|
|
36
|
-
checkForAuthentication(forceRefresh?: boolean): Promise<boolean | undefined>;
|
|
37
|
-
private refreshAuth;
|
|
38
|
-
login(): void;
|
|
39
|
-
logout(): Promise<void>;
|
|
40
|
-
private loginError;
|
|
41
|
-
getUserProfile(): Promise<void>;
|
|
42
|
-
private setTokens;
|
|
43
|
-
waitForLoginCheck(): Promise<void>;
|
|
44
|
-
getAuthResult(): Promise<boolean>;
|
|
45
|
-
addRoles(rolesToAdd: string[]): void;
|
|
46
|
-
removeRoles(rolesToRemove: string[]): void;
|
|
47
|
-
hasEveryRole(roles: string[]): boolean;
|
|
48
|
-
hasAtLeastOneRole(roles: string[]): boolean;
|
|
49
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuangAuthService, never>;
|
|
50
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<QuangAuthService>;
|
|
51
|
-
}
|
|
52
|
-
export {};
|