quang 19.0.28 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/auth/README.md +10 -0
  2. package/auth/index.d.ts +195 -9
  3. package/auth/mobile/index.d.ts +5 -1
  4. package/components/autocomplete/index.d.ts +46 -1
  5. package/components/checkbox/index.d.ts +15 -1
  6. package/components/date/index.d.ts +89 -1
  7. package/components/input/index.d.ts +19 -1
  8. package/components/paginator/index.d.ts +68 -5
  9. package/components/select/index.d.ts +32 -1
  10. package/components/shared/index.d.ts +112 -4
  11. package/components/table/index.d.ts +70 -1
  12. package/components/wysiwyg/index.d.ts +51 -1
  13. package/device/index.d.ts +14 -1
  14. package/fesm2022/quang-auth.mjs +18 -18
  15. package/fesm2022/quang-auth.mjs.map +1 -1
  16. package/fesm2022/quang-components-autocomplete.mjs +7 -7
  17. package/fesm2022/quang-components-autocomplete.mjs.map +1 -1
  18. package/fesm2022/quang-components-checkbox.mjs +6 -6
  19. package/fesm2022/quang-components-checkbox.mjs.map +1 -1
  20. package/fesm2022/quang-components-date.mjs +5 -5
  21. package/fesm2022/quang-components-date.mjs.map +1 -1
  22. package/fesm2022/quang-components-input.mjs +6 -6
  23. package/fesm2022/quang-components-input.mjs.map +1 -1
  24. package/fesm2022/quang-components-paginator.mjs +15 -15
  25. package/fesm2022/quang-components-paginator.mjs.map +1 -1
  26. package/fesm2022/quang-components-select.mjs +6 -6
  27. package/fesm2022/quang-components-select.mjs.map +1 -1
  28. package/fesm2022/quang-components-shared.mjs +6 -6
  29. package/fesm2022/quang-components-shared.mjs.map +1 -1
  30. package/fesm2022/quang-components-table.mjs +3 -3
  31. package/fesm2022/quang-components-table.mjs.map +1 -1
  32. package/fesm2022/quang-components-wysiwyg.mjs +6 -6
  33. package/fesm2022/quang-components-wysiwyg.mjs.map +1 -1
  34. package/fesm2022/quang-device.mjs +3 -3
  35. package/fesm2022/quang-device.mjs.map +1 -1
  36. package/fesm2022/quang-loader.mjs +7 -8
  37. package/fesm2022/quang-loader.mjs.map +1 -1
  38. package/fesm2022/quang-overlay-modal.mjs +3 -3
  39. package/fesm2022/quang-overlay-modal.mjs.map +1 -1
  40. package/fesm2022/quang-overlay-popover.mjs +8 -8
  41. package/fesm2022/quang-overlay-popover.mjs.map +1 -1
  42. package/fesm2022/quang-overlay-shared.mjs +10 -11
  43. package/fesm2022/quang-overlay-shared.mjs.map +1 -1
  44. package/fesm2022/quang-overlay-toast.mjs +8 -8
  45. package/fesm2022/quang-overlay-toast.mjs.map +1 -1
  46. package/fesm2022/quang-overlay-tooltip.mjs +6 -6
  47. package/fesm2022/quang-overlay-tooltip.mjs.map +1 -1
  48. package/fesm2022/quang-translation.mjs +6 -6
  49. package/fesm2022/quang-translation.mjs.map +1 -1
  50. package/forms/index.d.ts +51 -2
  51. package/index.d.ts +13 -9
  52. package/loader/index.d.ts +69 -4
  53. package/overlay/modal/index.d.ts +34 -1
  54. package/overlay/popover/index.d.ts +25 -1
  55. package/overlay/shared/index.d.ts +116 -3
  56. package/overlay/toast/index.d.ts +45 -2
  57. package/overlay/tooltip/index.d.ts +23 -2
  58. package/package.json +28 -28
  59. package/shared/index.d.ts +16 -1
  60. package/translation/index.d.ts +62 -4
  61. package/auth/auth-providers.d.ts +0 -39
  62. package/auth/auth.service.d.ts +0 -52
  63. package/auth/directives/has-at-least-one-role.directive.d.ts +0 -26
  64. package/auth/directives/has-every-role.directive.d.ts +0 -26
  65. package/auth/directives/is-authenticated.directive.d.ts +0 -14
  66. package/auth/directives/is-not-authenticated.directive.d.ts +0 -14
  67. package/auth/guards/index.d.ts +0 -2
  68. package/auth/guards/is-allowed.guard.d.ts +0 -2
  69. package/auth/guards/is-authenticated.guard.d.ts +0 -2
  70. package/auth/logout-on-error.interceptor.d.ts +0 -9
  71. package/auth/mobile/mobile-auth-feature.d.ts +0 -2
  72. package/auth/token-storage/index.d.ts +0 -3
  73. package/auth/token-storage/local-storage-feature.d.ts +0 -2
  74. package/auth/token-storage/memory-storage-feature.d.ts +0 -12
  75. package/auth/token-storage/session-storage-feature.d.ts +0 -2
  76. package/components/autocomplete/autocomplete.component.d.ts +0 -43
  77. package/components/checkbox/checkbox.component.d.ts +0 -11
  78. package/components/date/date.component.d.ts +0 -85
  79. package/components/input/input.component.d.ts +0 -15
  80. package/components/paginator/paginator-language.service.d.ts +0 -10
  81. package/components/paginator/paginator.component.d.ts +0 -30
  82. package/components/paginator/paginator.module.d.ts +0 -7
  83. package/components/paginator/paginator.service.d.ts +0 -6
  84. package/components/paginator/paginatorIntl.d.ts +0 -12
  85. package/components/select/select.component.d.ts +0 -29
  86. package/components/shared/ErrorData.d.ts +0 -4
  87. package/components/shared/makeId.d.ts +0 -1
  88. package/components/shared/option-list/option-list.component.d.ts +0 -53
  89. package/components/shared/quang-base-component.directive.d.ts +0 -50
  90. package/components/table/table.component.d.ts +0 -66
  91. package/components/wysiwyg/wysiwyg.component.d.ts +0 -46
  92. package/device/resize-observable.service.d.ts +0 -11
  93. package/forms/form-group-model.d.ts +0 -18
  94. package/forms/validators.d.ts +0 -43
  95. package/loader/loader-providers.d.ts +0 -23
  96. package/loader/loader.component.d.ts +0 -23
  97. package/loader/loader.interceptor.d.ts +0 -10
  98. package/loader/loader.service.d.ts +0 -9
  99. package/overlay/modal/modal.component.d.ts +0 -29
  100. package/overlay/popover/popover.component.d.ts +0 -13
  101. package/overlay/popover/popover.directive.d.ts +0 -11
  102. package/overlay/shared/CustomViewportRuler.d.ts +0 -63
  103. package/overlay/shared/quang-base-overlay.component.d.ts +0 -9
  104. package/overlay/shared/quang-base-overlay.directive.d.ts +0 -44
  105. package/overlay/toast/toast.component.d.ts +0 -13
  106. package/overlay/toast/toast.service.d.ts +0 -27
  107. package/overlay/tooltip/tooltip.component.d.ts +0 -11
  108. package/overlay/tooltip/tooltip.directive.d.ts +0 -11
  109. package/shared/intercept-utils.d.ts +0 -13
  110. package/translation/translation-loader.service.d.ts +0 -10
  111. package/translation/translation-providers.d.ts +0 -28
  112. package/translation/translation.service.d.ts +0 -15
  113. package/translation/translations.tokens.d.ts +0 -5
@@ -1,63 +0,0 @@
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,9 +0,0 @@
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
- }
@@ -1,44 +0,0 @@
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,13 +0,0 @@
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
- }
@@ -1,27 +0,0 @@
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,11 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,13 +0,0 @@
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,10 +0,0 @@
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
- }
@@ -1,28 +0,0 @@
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>;
@@ -1,15 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const AVAILABLE_LANGS: InjectionToken<string[]>;
3
- export declare const DEFAULT_LANG: InjectionToken<string>;
4
- export declare const FALLBACK_LANG: InjectionToken<string>;
5
- export declare const TRANSLATIONS_BASE_PATH: InjectionToken<string>;