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
package/translation/index.d.ts
CHANGED
|
@@ -1,62 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
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>;
|