quang 19.2.2 → 19.2.4
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/auth-providers.d.ts +39 -0
- package/auth/auth.service.d.ts +52 -0
- package/auth/directives/has-at-least-one-role.directive.d.ts +26 -0
- package/auth/directives/has-every-role.directive.d.ts +26 -0
- package/auth/directives/is-authenticated.directive.d.ts +14 -0
- package/auth/directives/is-not-authenticated.directive.d.ts +14 -0
- package/auth/guards/index.d.ts +2 -0
- package/auth/guards/is-allowed.guard.d.ts +2 -0
- package/auth/guards/is-authenticated.guard.d.ts +2 -0
- package/auth/index.d.ts +9 -195
- package/auth/logout-on-error.interceptor.d.ts +9 -0
- package/auth/mobile/index.d.ts +1 -5
- package/auth/mobile/mobile-auth-feature.d.ts +2 -0
- package/auth/token-storage/index.d.ts +3 -0
- package/auth/token-storage/local-storage-feature.d.ts +2 -0
- package/auth/token-storage/memory-storage-feature.d.ts +12 -0
- package/auth/token-storage/session-storage-feature.d.ts +2 -0
- package/components/autocomplete/autocomplete.component.d.ts +64 -0
- package/components/autocomplete/index.d.ts +1 -67
- package/components/checkbox/checkbox.component.d.ts +11 -0
- package/components/checkbox/index.d.ts +1 -15
- package/components/date/date.component.d.ts +85 -0
- package/components/date/index.d.ts +1 -89
- package/components/input/index.d.ts +1 -19
- package/components/input/input.component.d.ts +15 -0
- package/components/paginator/index.d.ts +5 -68
- package/components/paginator/paginator-language.service.d.ts +10 -0
- package/components/paginator/paginator.component.d.ts +30 -0
- package/components/paginator/paginator.module.d.ts +7 -0
- package/components/paginator/paginator.service.d.ts +6 -0
- package/components/paginator/paginatorIntl.d.ts +12 -0
- package/components/select/index.d.ts +1 -32
- package/components/select/select.component.d.ts +31 -0
- package/components/shared/ErrorData.d.ts +4 -0
- package/components/shared/index.d.ts +4 -112
- package/components/shared/makeId.d.ts +1 -0
- package/components/shared/option-list/option-list.component.d.ts +53 -0
- package/components/shared/quang-base-component.directive.d.ts +50 -0
- package/components/table/index.d.ts +1 -70
- package/components/table/table.component.d.ts +66 -0
- package/components/wysiwyg/index.d.ts +1 -51
- package/components/wysiwyg/wysiwyg.component.d.ts +46 -0
- package/data-handling/conversion.d.ts +3 -0
- package/data-handling/download.d.ts +3 -0
- package/data-handling/index.d.ts +2 -10
- package/device/index.d.ts +1 -14
- package/device/resize-observable.service.d.ts +11 -0
- 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 +15 -5
- 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 +3 -3
- 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/form-group-model.d.ts +18 -0
- package/forms/index.d.ts +2 -51
- package/forms/validators.d.ts +43 -0
- package/index.d.ts +9 -13
- package/loader/index.d.ts +4 -69
- package/loader/loader-providers.d.ts +23 -0
- package/loader/loader.component.d.ts +23 -0
- package/loader/loader.interceptor.d.ts +10 -0
- package/loader/loader.service.d.ts +9 -0
- package/overlay/modal/index.d.ts +1 -34
- package/overlay/modal/modal.component.d.ts +29 -0
- package/overlay/popover/index.d.ts +1 -25
- package/overlay/popover/popover.component.d.ts +13 -0
- package/overlay/popover/popover.directive.d.ts +11 -0
- package/overlay/shared/CustomViewportRuler.d.ts +63 -0
- package/overlay/shared/index.d.ts +3 -116
- package/overlay/shared/quang-base-overlay.component.d.ts +9 -0
- package/overlay/shared/quang-base-overlay.directive.d.ts +44 -0
- package/overlay/toast/index.d.ts +2 -44
- package/overlay/toast/toast.component.d.ts +13 -0
- package/overlay/toast/toast.service.d.ts +27 -0
- package/overlay/tooltip/index.d.ts +2 -23
- package/overlay/tooltip/tooltip.component.d.ts +11 -0
- package/overlay/tooltip/tooltip.directive.d.ts +11 -0
- package/package.json +25 -25
- package/shared/index.d.ts +1 -16
- package/shared/intercept-utils.d.ts +13 -0
- package/translation/index.d.ts +4 -62
- package/translation/translation-loader.service.d.ts +10 -0
- package/translation/translation-providers.d.ts +28 -0
- package/translation/translation.service.d.ts +15 -0
- package/translation/translations.tokens.d.ts +5 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
+
import { CdkPortal } from '@angular/cdk/portal';
|
|
3
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type ModalAnimationMode = 'SLIDE_FROM_LEFT_TO_RIGHT' | 'SLIDE_FROM_RIGHT_TO_LEFT' | 'SLIDE_TOP_TO_BOTTOM' | 'SLIDE_BOTTOM_TO_TOP' | 'FADE';
|
|
6
|
+
export declare class QuangModalComponent implements AfterViewInit, OnDestroy {
|
|
7
|
+
private readonly overlay;
|
|
8
|
+
readonly portal?: CdkPortal;
|
|
9
|
+
backdropClick: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
+
position: import("@angular/core").InputSignal<"right" | "left" | "center">;
|
|
11
|
+
height: import("@angular/core").InputSignal<string>;
|
|
12
|
+
width: import("@angular/core").InputSignal<string>;
|
|
13
|
+
padding: import("@angular/core").InputSignal<string>;
|
|
14
|
+
containerClass: import("@angular/core").InputSignal<string>;
|
|
15
|
+
animationMode: import("@angular/core").InputSignal<ModalAnimationMode | undefined>;
|
|
16
|
+
backgroundColor: import("@angular/core").InputSignal<string | undefined>;
|
|
17
|
+
showBackdrop: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
positionStrategy: import("@angular/core").Signal<import("@angular/cdk/overlay.d-BdoMy0hX").G>;
|
|
19
|
+
animationClassEnter: import("@angular/core").Signal<"" | "left-to-right-enter-active" | "right-to-left-enter-active" | "top-to-bottom-enter-active" | "fade-enter-active">;
|
|
20
|
+
private readonly destroyRef;
|
|
21
|
+
private overlayConfig?;
|
|
22
|
+
private overlayRef?;
|
|
23
|
+
constructor(overlay: Overlay);
|
|
24
|
+
ngAfterViewInit(): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
closeModal(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangModalComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
29
|
+
}
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
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
|
+
export * from './popover.directive';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { QuangBaseOverlayComponent } from 'quang/overlay/shared';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class QuangPopoverComponent implements QuangBaseOverlayComponent {
|
|
6
|
+
overlayContent: import("@angular/core").InputSignal<TemplateRef<any> | null>;
|
|
7
|
+
positionPair: import("@angular/core").WritableSignal<ConnectionPositionPair | null>;
|
|
8
|
+
payload: import("@angular/core").InputSignal<any>;
|
|
9
|
+
getPopoverPosition: import("@angular/core").WritableSignal<string>;
|
|
10
|
+
onChangePositionPair$: import("rxjs").Subscription;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangPopoverComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuangPopoverComponent, "quang-popover", never, { "overlayContent": { "alias": "overlayContent"; "required": false; "isSignal": true; }; "payload": { "alias": "payload"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { QuangBaseOverlayDirective } from 'quang/overlay/shared';
|
|
4
|
+
import { QuangPopoverComponent } from './popover.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class QuangPopoverDirective extends QuangBaseOverlayDirective<QuangPopoverComponent> {
|
|
7
|
+
targetComponentType: import("@angular/core").WritableSignal<ComponentType<QuangPopoverComponent> | undefined>;
|
|
8
|
+
content: import("@angular/core").InputSignal<TemplateRef<any> | null>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangPopoverDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<QuangPopoverDirective, "[quangPopover]", never, { "content": { "alias": "quangPopover"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Platform } from '@angular/cdk/platform';
|
|
2
|
+
import { ViewportScrollPosition } from '@angular/cdk/scrolling';
|
|
3
|
+
import { NgZone, OnDestroy } from '@angular/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Class cloe of [ViewportRuler](https://github.com/angular/components/blob/master/src/cdk/scrolling/viewport-ruler.ts)
|
|
8
|
+
* To fix the wrong reported size of the viewport on mobile devices with hidden url bars
|
|
9
|
+
* Issues references:
|
|
10
|
+
* https://github.com/angular/components/issues/18890
|
|
11
|
+
* https://github.com/angular/components/issues/27739
|
|
12
|
+
*
|
|
13
|
+
* To use this component provide it instead of `ViewportRuler`
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* providers: [
|
|
17
|
+
* {
|
|
18
|
+
* provide: ViewportRuler,
|
|
19
|
+
* useClass: CustomViewportRuler
|
|
20
|
+
* }
|
|
21
|
+
* ]
|
|
22
|
+
*/
|
|
23
|
+
export declare class CustomViewportRuler implements OnDestroy {
|
|
24
|
+
private _platform;
|
|
25
|
+
/** Used to reference correct document/window */
|
|
26
|
+
protected _document: Document;
|
|
27
|
+
/** Cached viewport dimensions. */
|
|
28
|
+
private _viewportSize;
|
|
29
|
+
/** Stream of viewport change events. */
|
|
30
|
+
private readonly _change;
|
|
31
|
+
constructor(_platform: Platform, ngZone: NgZone, document: any);
|
|
32
|
+
ngOnDestroy(): void;
|
|
33
|
+
/** Returns the viewport's width and height. */
|
|
34
|
+
getViewportSize(): Readonly<{
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
}>;
|
|
38
|
+
/** Gets a DOMRect for the viewport's bounds. */
|
|
39
|
+
getViewportRect(): {
|
|
40
|
+
top: number;
|
|
41
|
+
left: number;
|
|
42
|
+
bottom: number;
|
|
43
|
+
right: number;
|
|
44
|
+
height: number;
|
|
45
|
+
width: number;
|
|
46
|
+
};
|
|
47
|
+
/** Gets the (top, left) scroll position of the viewport. */
|
|
48
|
+
getViewportScrollPosition(): ViewportScrollPosition;
|
|
49
|
+
/**
|
|
50
|
+
* Returns a stream that emits whenever the size of the viewport changes.
|
|
51
|
+
* This stream emits outside of the Angular zone.
|
|
52
|
+
* @param throttleTime Time in milliseconds to throttle the stream.
|
|
53
|
+
*/
|
|
54
|
+
change(throttleTime?: number): Observable<Event>;
|
|
55
|
+
/** Event listener that will be used to handle the viewport change events. */
|
|
56
|
+
private _changeListener;
|
|
57
|
+
/** Use defaultView of injected document if available or fallback to global window reference */
|
|
58
|
+
private _getWindow;
|
|
59
|
+
/** Updates the cached viewport size. */
|
|
60
|
+
private _updateViewportSize;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomViewportRuler, [null, null, { optional: true; }]>;
|
|
62
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CustomViewportRuler>;
|
|
63
|
+
}
|
|
@@ -1,116 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 };
|
|
1
|
+
export * from './quang-base-overlay.component';
|
|
2
|
+
export * from './quang-base-overlay.directive';
|
|
3
|
+
export * from './CustomViewportRuler';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare abstract class QuangBaseOverlayComponent {
|
|
4
|
+
overlayContent: import("@angular/core").InputSignal<any>;
|
|
5
|
+
payload: import("@angular/core").InputSignal<any>;
|
|
6
|
+
positionPair: import("@angular/core").WritableSignal<ConnectionPositionPair | null>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangBaseOverlayComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
2
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
3
|
+
import { DestroyRef, OnDestroy } from '@angular/core';
|
|
4
|
+
import { QuangBaseOverlayComponent } from './quang-base-overlay.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare abstract class QuangBaseOverlayDirective<T extends QuangBaseOverlayComponent> implements OnDestroy {
|
|
7
|
+
targetComponentType: import("@angular/core").WritableSignal<ComponentType<T> | undefined>;
|
|
8
|
+
/**
|
|
9
|
+
* The amount of pixels needed for the popover to automatically disappear. If undefined the popover will not disappear on scroll
|
|
10
|
+
* Default: 100
|
|
11
|
+
* @default 100
|
|
12
|
+
*/
|
|
13
|
+
scrollCloseThreshold: import("@angular/core").InputSignal<number | undefined>;
|
|
14
|
+
showMethod: import("@angular/core").InputSignal<"click" | "hover">;
|
|
15
|
+
content: import("@angular/core").InputSignal<any>;
|
|
16
|
+
quangOverlayPayload: import("@angular/core").InputSignal<any>;
|
|
17
|
+
closeOnClickOutside: boolean;
|
|
18
|
+
overlayPosition: import("@angular/core").InputSignal<"top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "right">;
|
|
19
|
+
destroyRef: DestroyRef;
|
|
20
|
+
private top;
|
|
21
|
+
private topLeft;
|
|
22
|
+
private topRight;
|
|
23
|
+
private bottom;
|
|
24
|
+
private bottomLeft;
|
|
25
|
+
private bottomRight;
|
|
26
|
+
private left;
|
|
27
|
+
private right;
|
|
28
|
+
tooltipPosition: import("@angular/core").Signal<ConnectedPosition[]>;
|
|
29
|
+
private overlayRef;
|
|
30
|
+
private readonly overlay;
|
|
31
|
+
private readonly overlayPositionBuilder;
|
|
32
|
+
private readonly elementRef;
|
|
33
|
+
private positionStrategy;
|
|
34
|
+
private componentOverlayRef;
|
|
35
|
+
onClick(): void;
|
|
36
|
+
onHover(): void;
|
|
37
|
+
onLeave(): void;
|
|
38
|
+
attachOverlay(): void;
|
|
39
|
+
detachOverlay(): void;
|
|
40
|
+
showHideOverlay(): void;
|
|
41
|
+
ngOnDestroy(): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangBaseOverlayDirective<any>, never>;
|
|
43
|
+
static ɵdir: i0.ɵɵ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>;
|
|
44
|
+
}
|
package/overlay/toast/index.d.ts
CHANGED
|
@@ -1,44 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
export * from './toast.component';
|
|
2
|
+
export * from './toast.service';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { QuangToastService } from './toast.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class QuangToastComponent {
|
|
4
|
+
toastService: import("@angular/core").WritableSignal<QuangToastService>;
|
|
5
|
+
readonly isShowing: import("@angular/core").Signal<boolean>;
|
|
6
|
+
showAtLeastFor: import("@angular/core").InputSignal<number>;
|
|
7
|
+
private showToastBuffer$;
|
|
8
|
+
showToast: import("@angular/core").Signal<boolean | undefined>;
|
|
9
|
+
readonly _currentToast: import("@angular/core").WritableSignal<import("./toast.service").ToastData | null>;
|
|
10
|
+
close(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangToastComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuangToastComponent, "quang-toast", never, { "showAtLeastFor": { "alias": "showAtLeastFor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ToastData {
|
|
4
|
+
type: 'success' | 'warning' | 'error';
|
|
5
|
+
title?: string;
|
|
6
|
+
position: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'center' | 'top-center' | 'bottom-center';
|
|
7
|
+
timing: number;
|
|
8
|
+
text?: string;
|
|
9
|
+
textValue?: string;
|
|
10
|
+
showCloseButton?: boolean;
|
|
11
|
+
date?: Date;
|
|
12
|
+
dateFormat?: string;
|
|
13
|
+
customTemplate?: TemplateRef<any>;
|
|
14
|
+
customIcon?: string;
|
|
15
|
+
hideHeader?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class QuangToastService {
|
|
18
|
+
private toastState;
|
|
19
|
+
isShowing: import("@angular/core").Signal<boolean>;
|
|
20
|
+
count: import("@ngrx/signals/src/deep-signal").Signal<number>;
|
|
21
|
+
currentTimeout: import("@ngrx/signals/src/deep-signal").Signal<number | null>;
|
|
22
|
+
openToast(toastData: ToastData): void;
|
|
23
|
+
closeToast(): void;
|
|
24
|
+
currentToast: import("@angular/core").WritableSignal<ToastData | null>;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangToastService, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QuangToastService>;
|
|
27
|
+
}
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 };
|
|
1
|
+
export * from './tooltip.directive';
|
|
2
|
+
export * from './tooltip.component';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
2
|
+
import { QuangBaseOverlayComponent } from 'quang/overlay/shared';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class QuangTooltipComponent implements QuangBaseOverlayComponent {
|
|
5
|
+
overlayContent: import("@angular/core").InputSignal<string>;
|
|
6
|
+
quangTooltipPosition: import("@angular/core").InputSignal<"top" | "bottom" | "left" | "right">;
|
|
7
|
+
positionPair: import("@angular/core").WritableSignal<ConnectionPositionPair | null>;
|
|
8
|
+
payload: import("@angular/core").InputSignal<unknown>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangTooltipComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
2
|
+
import { QuangBaseOverlayDirective } from 'quang/overlay/shared';
|
|
3
|
+
import { QuangTooltipComponent } from './tooltip.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class QuangTooltipDirective extends QuangBaseOverlayDirective<QuangTooltipComponent> {
|
|
6
|
+
targetComponentType: import("@angular/core").WritableSignal<ComponentType<QuangTooltipComponent> | undefined>;
|
|
7
|
+
content: import("@angular/core").InputSignal<string>;
|
|
8
|
+
showMethod: import("@angular/core").InputSignal<"click" | "hover">;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangTooltipDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<QuangTooltipDirective, "[quangTooltip]", never, { "content": { "alias": "quangTooltip"; "required": true; "isSignal": true; }; "showMethod": { "alias": "showMethod"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
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.4",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": "^2.3.0"
|
|
7
7
|
},
|
|
@@ -71,17 +71,17 @@
|
|
|
71
71
|
"types": "./device/index.d.ts",
|
|
72
72
|
"default": "./fesm2022/quang-device.mjs"
|
|
73
73
|
},
|
|
74
|
-
"./
|
|
75
|
-
"types": "./
|
|
76
|
-
"default": "./fesm2022/quang-
|
|
74
|
+
"./loader": {
|
|
75
|
+
"types": "./loader/index.d.ts",
|
|
76
|
+
"default": "./fesm2022/quang-loader.mjs"
|
|
77
77
|
},
|
|
78
78
|
"./data-handling": {
|
|
79
79
|
"types": "./data-handling/index.d.ts",
|
|
80
80
|
"default": "./fesm2022/quang-data-handling.mjs"
|
|
81
81
|
},
|
|
82
|
-
"./
|
|
83
|
-
"types": "./
|
|
84
|
-
"default": "./fesm2022/quang-
|
|
82
|
+
"./forms": {
|
|
83
|
+
"types": "./forms/index.d.ts",
|
|
84
|
+
"default": "./fesm2022/quang-forms.mjs"
|
|
85
85
|
},
|
|
86
86
|
"./shared": {
|
|
87
87
|
"types": "./shared/index.d.ts",
|
|
@@ -99,26 +99,30 @@
|
|
|
99
99
|
"types": "./components/autocomplete/index.d.ts",
|
|
100
100
|
"default": "./fesm2022/quang-components-autocomplete.mjs"
|
|
101
101
|
},
|
|
102
|
-
"./components/checkbox": {
|
|
103
|
-
"types": "./components/checkbox/index.d.ts",
|
|
104
|
-
"default": "./fesm2022/quang-components-checkbox.mjs"
|
|
105
|
-
},
|
|
106
102
|
"./components/input": {
|
|
107
103
|
"types": "./components/input/index.d.ts",
|
|
108
104
|
"default": "./fesm2022/quang-components-input.mjs"
|
|
109
105
|
},
|
|
110
|
-
"./components/
|
|
111
|
-
"types": "./components/
|
|
112
|
-
"default": "./fesm2022/quang-components-
|
|
106
|
+
"./components/checkbox": {
|
|
107
|
+
"types": "./components/checkbox/index.d.ts",
|
|
108
|
+
"default": "./fesm2022/quang-components-checkbox.mjs"
|
|
113
109
|
},
|
|
114
110
|
"./components/date": {
|
|
115
111
|
"types": "./components/date/index.d.ts",
|
|
116
112
|
"default": "./fesm2022/quang-components-date.mjs"
|
|
117
113
|
},
|
|
114
|
+
"./components/paginator": {
|
|
115
|
+
"types": "./components/paginator/index.d.ts",
|
|
116
|
+
"default": "./fesm2022/quang-components-paginator.mjs"
|
|
117
|
+
},
|
|
118
118
|
"./components/shared": {
|
|
119
119
|
"types": "./components/shared/index.d.ts",
|
|
120
120
|
"default": "./fesm2022/quang-components-shared.mjs"
|
|
121
121
|
},
|
|
122
|
+
"./components/select": {
|
|
123
|
+
"types": "./components/select/index.d.ts",
|
|
124
|
+
"default": "./fesm2022/quang-components-select.mjs"
|
|
125
|
+
},
|
|
122
126
|
"./components/wysiwyg": {
|
|
123
127
|
"types": "./components/wysiwyg/index.d.ts",
|
|
124
128
|
"default": "./fesm2022/quang-components-wysiwyg.mjs"
|
|
@@ -127,26 +131,22 @@
|
|
|
127
131
|
"types": "./components/table/index.d.ts",
|
|
128
132
|
"default": "./fesm2022/quang-components-table.mjs"
|
|
129
133
|
},
|
|
130
|
-
"./
|
|
131
|
-
"types": "./
|
|
132
|
-
"default": "./fesm2022/quang-
|
|
133
|
-
},
|
|
134
|
-
"./overlay/modal": {
|
|
135
|
-
"types": "./overlay/modal/index.d.ts",
|
|
136
|
-
"default": "./fesm2022/quang-overlay-modal.mjs"
|
|
134
|
+
"./overlay/popover": {
|
|
135
|
+
"types": "./overlay/popover/index.d.ts",
|
|
136
|
+
"default": "./fesm2022/quang-overlay-popover.mjs"
|
|
137
137
|
},
|
|
138
138
|
"./overlay/toast": {
|
|
139
139
|
"types": "./overlay/toast/index.d.ts",
|
|
140
140
|
"default": "./fesm2022/quang-overlay-toast.mjs"
|
|
141
141
|
},
|
|
142
|
+
"./overlay/modal": {
|
|
143
|
+
"types": "./overlay/modal/index.d.ts",
|
|
144
|
+
"default": "./fesm2022/quang-overlay-modal.mjs"
|
|
145
|
+
},
|
|
142
146
|
"./overlay/shared": {
|
|
143
147
|
"types": "./overlay/shared/index.d.ts",
|
|
144
148
|
"default": "./fesm2022/quang-overlay-shared.mjs"
|
|
145
149
|
},
|
|
146
|
-
"./overlay/popover": {
|
|
147
|
-
"types": "./overlay/popover/index.d.ts",
|
|
148
|
-
"default": "./fesm2022/quang-overlay-popover.mjs"
|
|
149
|
-
},
|
|
150
150
|
"./overlay/tooltip": {
|
|
151
151
|
"types": "./overlay/tooltip/index.d.ts",
|
|
152
152
|
"default": "./fesm2022/quang-overlay-tooltip.mjs"
|
package/shared/index.d.ts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
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 };
|
|
1
|
+
export * from './intercept-utils';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
2
|
+
export declare function isHttpMethod(value: string): value is HttpMethod;
|
|
3
|
+
export interface UrlData {
|
|
4
|
+
url: string;
|
|
5
|
+
method: HttpMethod;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* providers: [
|
|
10
|
+
* provideHttpClient(withInterceptors([quangLoaderInterceptor]))
|
|
11
|
+
* ]
|
|
12
|
+
*/
|
|
13
|
+
export declare function getExcludedUrlsByMethod(urlData: UrlData[]): Map<HttpMethod, Set<string>>;
|