quang 19.2.3 → 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.
Files changed (115) hide show
  1. package/auth/auth-providers.d.ts +39 -0
  2. package/auth/auth.service.d.ts +52 -0
  3. package/auth/directives/has-at-least-one-role.directive.d.ts +26 -0
  4. package/auth/directives/has-every-role.directive.d.ts +26 -0
  5. package/auth/directives/is-authenticated.directive.d.ts +14 -0
  6. package/auth/directives/is-not-authenticated.directive.d.ts +14 -0
  7. package/auth/guards/index.d.ts +2 -0
  8. package/auth/guards/is-allowed.guard.d.ts +2 -0
  9. package/auth/guards/is-authenticated.guard.d.ts +2 -0
  10. package/auth/index.d.ts +9 -195
  11. package/auth/logout-on-error.interceptor.d.ts +9 -0
  12. package/auth/mobile/index.d.ts +1 -5
  13. package/auth/mobile/mobile-auth-feature.d.ts +2 -0
  14. package/auth/token-storage/index.d.ts +3 -0
  15. package/auth/token-storage/local-storage-feature.d.ts +2 -0
  16. package/auth/token-storage/memory-storage-feature.d.ts +12 -0
  17. package/auth/token-storage/session-storage-feature.d.ts +2 -0
  18. package/components/autocomplete/autocomplete.component.d.ts +64 -0
  19. package/components/autocomplete/index.d.ts +1 -67
  20. package/components/checkbox/checkbox.component.d.ts +11 -0
  21. package/components/checkbox/index.d.ts +1 -15
  22. package/components/date/date.component.d.ts +85 -0
  23. package/components/date/index.d.ts +1 -89
  24. package/components/input/index.d.ts +1 -19
  25. package/components/input/input.component.d.ts +15 -0
  26. package/components/paginator/index.d.ts +5 -68
  27. package/components/paginator/paginator-language.service.d.ts +10 -0
  28. package/components/paginator/paginator.component.d.ts +30 -0
  29. package/components/paginator/paginator.module.d.ts +7 -0
  30. package/components/paginator/paginator.service.d.ts +6 -0
  31. package/components/paginator/paginatorIntl.d.ts +12 -0
  32. package/components/select/index.d.ts +1 -34
  33. package/components/select/select.component.d.ts +31 -0
  34. package/components/shared/ErrorData.d.ts +4 -0
  35. package/components/shared/index.d.ts +4 -112
  36. package/components/shared/makeId.d.ts +1 -0
  37. package/components/shared/option-list/option-list.component.d.ts +53 -0
  38. package/components/shared/quang-base-component.directive.d.ts +50 -0
  39. package/components/table/index.d.ts +1 -70
  40. package/components/table/table.component.d.ts +66 -0
  41. package/components/wysiwyg/index.d.ts +1 -51
  42. package/components/wysiwyg/wysiwyg.component.d.ts +46 -0
  43. package/data-handling/conversion.d.ts +3 -0
  44. package/data-handling/download.d.ts +3 -0
  45. package/data-handling/index.d.ts +2 -10
  46. package/device/index.d.ts +1 -14
  47. package/device/resize-observable.service.d.ts +11 -0
  48. package/fesm2022/quang-auth.mjs +18 -18
  49. package/fesm2022/quang-auth.mjs.map +1 -1
  50. package/fesm2022/quang-components-autocomplete.mjs +3 -3
  51. package/fesm2022/quang-components-autocomplete.mjs.map +1 -1
  52. package/fesm2022/quang-components-checkbox.mjs +3 -3
  53. package/fesm2022/quang-components-checkbox.mjs.map +1 -1
  54. package/fesm2022/quang-components-date.mjs +3 -3
  55. package/fesm2022/quang-components-date.mjs.map +1 -1
  56. package/fesm2022/quang-components-input.mjs +3 -3
  57. package/fesm2022/quang-components-input.mjs.map +1 -1
  58. package/fesm2022/quang-components-paginator.mjs +13 -13
  59. package/fesm2022/quang-components-paginator.mjs.map +1 -1
  60. package/fesm2022/quang-components-select.mjs +3 -5
  61. package/fesm2022/quang-components-select.mjs.map +1 -1
  62. package/fesm2022/quang-components-shared.mjs +6 -6
  63. package/fesm2022/quang-components-shared.mjs.map +1 -1
  64. package/fesm2022/quang-components-table.mjs +3 -3
  65. package/fesm2022/quang-components-table.mjs.map +1 -1
  66. package/fesm2022/quang-components-wysiwyg.mjs +3 -3
  67. package/fesm2022/quang-components-wysiwyg.mjs.map +1 -1
  68. package/fesm2022/quang-device.mjs +3 -3
  69. package/fesm2022/quang-device.mjs.map +1 -1
  70. package/fesm2022/quang-loader.mjs +6 -6
  71. package/fesm2022/quang-loader.mjs.map +1 -1
  72. package/fesm2022/quang-overlay-modal.mjs +3 -3
  73. package/fesm2022/quang-overlay-modal.mjs.map +1 -1
  74. package/fesm2022/quang-overlay-popover.mjs +6 -6
  75. package/fesm2022/quang-overlay-popover.mjs.map +1 -1
  76. package/fesm2022/quang-overlay-shared.mjs +9 -9
  77. package/fesm2022/quang-overlay-shared.mjs.map +1 -1
  78. package/fesm2022/quang-overlay-toast.mjs +6 -6
  79. package/fesm2022/quang-overlay-toast.mjs.map +1 -1
  80. package/fesm2022/quang-overlay-tooltip.mjs +6 -6
  81. package/fesm2022/quang-overlay-tooltip.mjs.map +1 -1
  82. package/fesm2022/quang-translation.mjs +6 -6
  83. package/fesm2022/quang-translation.mjs.map +1 -1
  84. package/forms/form-group-model.d.ts +18 -0
  85. package/forms/index.d.ts +2 -51
  86. package/forms/validators.d.ts +43 -0
  87. package/index.d.ts +9 -13
  88. package/loader/index.d.ts +4 -69
  89. package/loader/loader-providers.d.ts +23 -0
  90. package/loader/loader.component.d.ts +23 -0
  91. package/loader/loader.interceptor.d.ts +10 -0
  92. package/loader/loader.service.d.ts +9 -0
  93. package/overlay/modal/index.d.ts +1 -34
  94. package/overlay/modal/modal.component.d.ts +29 -0
  95. package/overlay/popover/index.d.ts +1 -25
  96. package/overlay/popover/popover.component.d.ts +13 -0
  97. package/overlay/popover/popover.directive.d.ts +11 -0
  98. package/overlay/shared/CustomViewportRuler.d.ts +63 -0
  99. package/overlay/shared/index.d.ts +3 -116
  100. package/overlay/shared/quang-base-overlay.component.d.ts +9 -0
  101. package/overlay/shared/quang-base-overlay.directive.d.ts +44 -0
  102. package/overlay/toast/index.d.ts +2 -44
  103. package/overlay/toast/toast.component.d.ts +13 -0
  104. package/overlay/toast/toast.service.d.ts +27 -0
  105. package/overlay/tooltip/index.d.ts +2 -23
  106. package/overlay/tooltip/tooltip.component.d.ts +11 -0
  107. package/overlay/tooltip/tooltip.directive.d.ts +11 -0
  108. package/package.json +26 -26
  109. package/shared/index.d.ts +1 -16
  110. package/shared/intercept-utils.d.ts +13 -0
  111. package/translation/index.d.ts +4 -62
  112. package/translation/translation-loader.service.d.ts +10 -0
  113. package/translation/translation-providers.d.ts +28 -0
  114. package/translation/translation.service.d.ts +15 -0
  115. package/translation/translations.tokens.d.ts +5 -0
@@ -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
- 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 };
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
+ }
@@ -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
+ 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
- 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 };
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.3",
4
+ "version": "19.2.4",
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
7
7
  },
@@ -67,22 +67,22 @@
67
67
  "types": "./auth/index.d.ts",
68
68
  "default": "./fesm2022/quang-auth.mjs"
69
69
  },
70
- "./data-handling": {
71
- "types": "./data-handling/index.d.ts",
72
- "default": "./fesm2022/quang-data-handling.mjs"
73
- },
74
70
  "./device": {
75
71
  "types": "./device/index.d.ts",
76
72
  "default": "./fesm2022/quang-device.mjs"
77
73
  },
78
- "./forms": {
79
- "types": "./forms/index.d.ts",
80
- "default": "./fesm2022/quang-forms.mjs"
81
- },
82
74
  "./loader": {
83
75
  "types": "./loader/index.d.ts",
84
76
  "default": "./fesm2022/quang-loader.mjs"
85
77
  },
78
+ "./data-handling": {
79
+ "types": "./data-handling/index.d.ts",
80
+ "default": "./fesm2022/quang-data-handling.mjs"
81
+ },
82
+ "./forms": {
83
+ "types": "./forms/index.d.ts",
84
+ "default": "./fesm2022/quang-forms.mjs"
85
+ },
86
86
  "./shared": {
87
87
  "types": "./shared/index.d.ts",
88
88
  "default": "./fesm2022/quang-shared.mjs"
@@ -99,6 +99,10 @@
99
99
  "types": "./components/autocomplete/index.d.ts",
100
100
  "default": "./fesm2022/quang-components-autocomplete.mjs"
101
101
  },
102
+ "./components/input": {
103
+ "types": "./components/input/index.d.ts",
104
+ "default": "./fesm2022/quang-components-input.mjs"
105
+ },
102
106
  "./components/checkbox": {
103
107
  "types": "./components/checkbox/index.d.ts",
104
108
  "default": "./fesm2022/quang-components-checkbox.mjs"
@@ -111,42 +115,38 @@
111
115
  "types": "./components/paginator/index.d.ts",
112
116
  "default": "./fesm2022/quang-components-paginator.mjs"
113
117
  },
114
- "./components/input": {
115
- "types": "./components/input/index.d.ts",
116
- "default": "./fesm2022/quang-components-input.mjs"
118
+ "./components/shared": {
119
+ "types": "./components/shared/index.d.ts",
120
+ "default": "./fesm2022/quang-components-shared.mjs"
117
121
  },
118
122
  "./components/select": {
119
123
  "types": "./components/select/index.d.ts",
120
124
  "default": "./fesm2022/quang-components-select.mjs"
121
125
  },
122
- "./components/shared": {
123
- "types": "./components/shared/index.d.ts",
124
- "default": "./fesm2022/quang-components-shared.mjs"
126
+ "./components/wysiwyg": {
127
+ "types": "./components/wysiwyg/index.d.ts",
128
+ "default": "./fesm2022/quang-components-wysiwyg.mjs"
125
129
  },
126
130
  "./components/table": {
127
131
  "types": "./components/table/index.d.ts",
128
132
  "default": "./fesm2022/quang-components-table.mjs"
129
133
  },
130
- "./components/wysiwyg": {
131
- "types": "./components/wysiwyg/index.d.ts",
132
- "default": "./fesm2022/quang-components-wysiwyg.mjs"
134
+ "./overlay/popover": {
135
+ "types": "./overlay/popover/index.d.ts",
136
+ "default": "./fesm2022/quang-overlay-popover.mjs"
137
+ },
138
+ "./overlay/toast": {
139
+ "types": "./overlay/toast/index.d.ts",
140
+ "default": "./fesm2022/quang-overlay-toast.mjs"
133
141
  },
134
142
  "./overlay/modal": {
135
143
  "types": "./overlay/modal/index.d.ts",
136
144
  "default": "./fesm2022/quang-overlay-modal.mjs"
137
145
  },
138
- "./overlay/popover": {
139
- "types": "./overlay/popover/index.d.ts",
140
- "default": "./fesm2022/quang-overlay-popover.mjs"
141
- },
142
146
  "./overlay/shared": {
143
147
  "types": "./overlay/shared/index.d.ts",
144
148
  "default": "./fesm2022/quang-overlay-shared.mjs"
145
149
  },
146
- "./overlay/toast": {
147
- "types": "./overlay/toast/index.d.ts",
148
- "default": "./fesm2022/quang-overlay-toast.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
- 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 };
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>>;
@@ -1,62 +1,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 };
1
+ export * from './translation-providers';
2
+ export * from './translation-loader.service';
3
+ export * from './translation.service';
4
+ export * from './translations.tokens';
@@ -0,0 +1,10 @@
1
+ import { Translation, TranslocoLoader } from '@jsverse/transloco';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class QuangTranslationLoaderService implements TranslocoLoader {
5
+ private readonly httpClient;
6
+ private readonly translationBasePath;
7
+ getTranslation(lang: string): Observable<Translation> | Promise<Translation>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuangTranslationLoaderService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<QuangTranslationLoaderService>;
10
+ }
@@ -0,0 +1,28 @@
1
+ import { EnvironmentProviders } from '@angular/core';
2
+ import { QuangFeature, QuangFeatureKind } from 'quang';
3
+ export interface TranslationConfig {
4
+ availableLangs: string[];
5
+ defaultLang: string;
6
+ fallbackLang: string;
7
+ translationsBasePath?: string;
8
+ reRenderOnLangChange?: boolean;
9
+ prodMode?: boolean;
10
+ failedRetries?: number;
11
+ logMissingKey?: boolean;
12
+ useFallbackTranslation?: boolean;
13
+ allowEmpty?: boolean;
14
+ }
15
+ /**
16
+ * @example
17
+ * export const appConfig: ApplicationConfig = {
18
+ * providers: [
19
+ * provideTranslation({
20
+ * availableLangs: ['it', 'en'],
21
+ * defaultLang: 'it',
22
+ * fallbackLang: 'it',
23
+ * })
24
+ * ]
25
+ * }
26
+ */
27
+ export declare function provideTranslation(config: TranslationConfig): EnvironmentProviders;
28
+ export declare function withTranslation(config: TranslationConfig): QuangFeature<QuangFeatureKind.TranslationFeature>;
@@ -0,0 +1,15 @@
1
+ import { HashMap, SetTranslationOptions, Translation } from '@jsverse/transloco';
2
+ import * as i0 from "@angular/core";
3
+ export declare class QuangTranslationService {
4
+ private readonly _translocoService;
5
+ activeLang: import("@angular/core").Signal<string | null>;
6
+ private readonly _availableLangs;
7
+ private readonly _defaultLang;
8
+ setActiveLang(lang: string): void;
9
+ getActiveLang(): string | null;
10
+ translate(key: string, params?: HashMap): string;
11
+ setTranslation(translation: Translation, lang?: string, options?: SetTranslationOptions): void;
12
+ setTranslationKey(key: string, value: string, options?: Omit<SetTranslationOptions, 'merge'>): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuangTranslationService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<QuangTranslationService>;
15
+ }