quang 19.2.5 → 20.1.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.
- package/auth/index.d.ts +195 -9
- package/auth/mobile/index.d.ts +5 -1
- package/components/autocomplete/index.d.ts +67 -1
- package/components/checkbox/index.d.ts +15 -1
- package/components/date/index.d.ts +89 -1
- package/components/input/index.d.ts +19 -1
- package/components/paginator/index.d.ts +68 -5
- package/components/select/index.d.ts +32 -1
- package/components/shared/index.d.ts +112 -4
- package/components/table/index.d.ts +70 -1
- package/components/wysiwyg/index.d.ts +51 -1
- package/data-handling/index.d.ts +10 -2
- package/device/index.d.ts +14 -1
- package/fesm2022/quang-auth.mjs +18 -18
- package/fesm2022/quang-auth.mjs.map +1 -1
- package/fesm2022/quang-components-autocomplete.mjs +3 -3
- package/fesm2022/quang-components-autocomplete.mjs.map +1 -1
- package/fesm2022/quang-components-checkbox.mjs +6 -6
- package/fesm2022/quang-components-checkbox.mjs.map +1 -1
- package/fesm2022/quang-components-date.mjs +5 -5
- package/fesm2022/quang-components-date.mjs.map +1 -1
- package/fesm2022/quang-components-input.mjs +6 -6
- package/fesm2022/quang-components-input.mjs.map +1 -1
- package/fesm2022/quang-components-paginator.mjs +15 -15
- package/fesm2022/quang-components-paginator.mjs.map +1 -1
- package/fesm2022/quang-components-select.mjs +8 -18
- package/fesm2022/quang-components-select.mjs.map +1 -1
- package/fesm2022/quang-components-shared.mjs +6 -6
- package/fesm2022/quang-components-shared.mjs.map +1 -1
- package/fesm2022/quang-components-table.mjs +4 -4
- package/fesm2022/quang-components-table.mjs.map +1 -1
- package/fesm2022/quang-components-wysiwyg.mjs +6 -6
- 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 +7 -8
- 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 +7 -7
- package/fesm2022/quang-overlay-popover.mjs.map +1 -1
- package/fesm2022/quang-overlay-shared.mjs +10 -11
- package/fesm2022/quang-overlay-shared.mjs.map +1 -1
- package/fesm2022/quang-overlay-toast.mjs +8 -8
- package/fesm2022/quang-overlay-toast.mjs.map +1 -1
- package/fesm2022/quang-overlay-tooltip.mjs +6 -6
- package/fesm2022/quang-overlay-tooltip.mjs.map +1 -1
- package/fesm2022/quang-translation.mjs +6 -6
- package/fesm2022/quang-translation.mjs.map +1 -1
- package/forms/index.d.ts +51 -2
- package/index.d.ts +13 -9
- package/loader/index.d.ts +69 -4
- package/overlay/modal/index.d.ts +34 -1
- package/overlay/popover/index.d.ts +25 -1
- package/overlay/shared/index.d.ts +116 -3
- package/overlay/toast/index.d.ts +45 -2
- package/overlay/tooltip/index.d.ts +23 -2
- package/package.json +22 -22
- package/shared/index.d.ts +16 -1
- package/translation/index.d.ts +62 -4
- package/auth/auth-providers.d.ts +0 -39
- package/auth/auth.service.d.ts +0 -52
- package/auth/directives/has-at-least-one-role.directive.d.ts +0 -26
- package/auth/directives/has-every-role.directive.d.ts +0 -26
- package/auth/directives/is-authenticated.directive.d.ts +0 -14
- package/auth/directives/is-not-authenticated.directive.d.ts +0 -14
- package/auth/guards/index.d.ts +0 -2
- package/auth/guards/is-allowed.guard.d.ts +0 -2
- package/auth/guards/is-authenticated.guard.d.ts +0 -2
- package/auth/logout-on-error.interceptor.d.ts +0 -9
- package/auth/mobile/mobile-auth-feature.d.ts +0 -2
- package/auth/token-storage/index.d.ts +0 -3
- package/auth/token-storage/local-storage-feature.d.ts +0 -2
- package/auth/token-storage/memory-storage-feature.d.ts +0 -12
- package/auth/token-storage/session-storage-feature.d.ts +0 -2
- package/components/autocomplete/autocomplete.component.d.ts +0 -64
- package/components/checkbox/checkbox.component.d.ts +0 -11
- package/components/date/date.component.d.ts +0 -85
- package/components/input/input.component.d.ts +0 -15
- package/components/paginator/paginator-language.service.d.ts +0 -10
- package/components/paginator/paginator.component.d.ts +0 -30
- package/components/paginator/paginator.module.d.ts +0 -7
- package/components/paginator/paginator.service.d.ts +0 -6
- package/components/paginator/paginatorIntl.d.ts +0 -12
- package/components/select/select.component.d.ts +0 -31
- package/components/shared/ErrorData.d.ts +0 -4
- package/components/shared/makeId.d.ts +0 -1
- package/components/shared/option-list/option-list.component.d.ts +0 -53
- package/components/shared/quang-base-component.directive.d.ts +0 -50
- package/components/table/table.component.d.ts +0 -66
- package/components/wysiwyg/wysiwyg.component.d.ts +0 -46
- package/data-handling/conversion.d.ts +0 -3
- package/data-handling/download.d.ts +0 -3
- package/device/resize-observable.service.d.ts +0 -11
- package/forms/form-group-model.d.ts +0 -18
- package/forms/validators.d.ts +0 -43
- package/loader/loader-providers.d.ts +0 -23
- package/loader/loader.component.d.ts +0 -23
- package/loader/loader.interceptor.d.ts +0 -10
- package/loader/loader.service.d.ts +0 -9
- package/overlay/modal/modal.component.d.ts +0 -29
- package/overlay/popover/popover.component.d.ts +0 -13
- package/overlay/popover/popover.directive.d.ts +0 -11
- package/overlay/shared/CustomViewportRuler.d.ts +0 -63
- package/overlay/shared/quang-base-overlay.component.d.ts +0 -9
- package/overlay/shared/quang-base-overlay.directive.d.ts +0 -44
- package/overlay/toast/toast.component.d.ts +0 -13
- package/overlay/toast/toast.service.d.ts +0 -27
- package/overlay/tooltip/tooltip.component.d.ts +0 -11
- package/overlay/tooltip/tooltip.directive.d.ts +0 -11
- package/shared/intercept-utils.d.ts +0 -13
- package/translation/translation-loader.service.d.ts +0 -10
- package/translation/translation-providers.d.ts +0 -28
- package/translation/translation.service.d.ts +0 -15
- package/translation/translations.tokens.d.ts +0 -5
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
3
|
+
import { QuangBaseOverlayComponent, QuangBaseOverlayDirective } from 'quang/overlay/shared';
|
|
4
|
+
import { ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
5
|
+
|
|
6
|
+
declare class QuangTooltipComponent implements QuangBaseOverlayComponent {
|
|
7
|
+
overlayContent: _angular_core.InputSignal<string>;
|
|
8
|
+
quangTooltipPosition: _angular_core.InputSignal<"top" | "bottom" | "left" | "right">;
|
|
9
|
+
positionPair: _angular_core.WritableSignal<ConnectionPositionPair | null>;
|
|
10
|
+
payload: _angular_core.InputSignal<unknown>;
|
|
11
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangTooltipComponent, never>;
|
|
12
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuangTooltipComponent, "quang-tooltip", never, { "overlayContent": { "alias": "overlayContent"; "required": true; "isSignal": true; }; "quangTooltipPosition": { "alias": "quangTooltipPosition"; "required": false; "isSignal": true; }; "payload": { "alias": "payload"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class QuangTooltipDirective extends QuangBaseOverlayDirective<QuangTooltipComponent> {
|
|
16
|
+
targetComponentType: _angular_core.WritableSignal<ComponentType<QuangTooltipComponent> | undefined>;
|
|
17
|
+
content: _angular_core.InputSignal<string>;
|
|
18
|
+
showMethod: _angular_core.InputSignal<"click" | "hover">;
|
|
19
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangTooltipDirective, never>;
|
|
20
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<QuangTooltipDirective, "[quangTooltip]", never, { "content": { "alias": "quangTooltip"; "required": true; "isSignal": true; }; "showMethod": { "alias": "showMethod"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { QuangTooltipComponent, QuangTooltipDirective };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quang",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "20.1.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": "^2.3.0"
|
|
7
7
|
},
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
"url": "https://github.com/quix-it/quix-quang.git"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/animations": "^
|
|
15
|
-
"@angular/cdk": "^
|
|
16
|
-
"@angular/common": "^
|
|
17
|
-
"@angular/core": "^
|
|
18
|
-
"@angular/forms": "^
|
|
14
|
+
"@angular/animations": "^20.0.0",
|
|
15
|
+
"@angular/cdk": "^20.0.0",
|
|
16
|
+
"@angular/common": "^20.0.0",
|
|
17
|
+
"@angular/core": "^20.0.0",
|
|
18
|
+
"@angular/forms": "^20.0.0",
|
|
19
19
|
"@capacitor/app": "^6.0.0",
|
|
20
20
|
"@capacitor/browser": "^6.0.1",
|
|
21
21
|
"@capacitor/core": "^6.1.1",
|
|
22
22
|
"@jsverse/transloco": "^7.5.0",
|
|
23
23
|
"@ngrx/signals": "^19.0.0",
|
|
24
24
|
"air-datepicker": "^3.5.0",
|
|
25
|
-
"angular-oauth2-oidc": "^
|
|
25
|
+
"angular-oauth2-oidc": "^20.0.0",
|
|
26
26
|
"date-fns": "^3.6.0",
|
|
27
27
|
"rxjs": "~7.8.0",
|
|
28
28
|
"suneditor": "^2.46.0"
|
|
@@ -67,6 +67,10 @@
|
|
|
67
67
|
"types": "./auth/index.d.ts",
|
|
68
68
|
"default": "./fesm2022/quang-auth.mjs"
|
|
69
69
|
},
|
|
70
|
+
"./forms": {
|
|
71
|
+
"types": "./forms/index.d.ts",
|
|
72
|
+
"default": "./fesm2022/quang-forms.mjs"
|
|
73
|
+
},
|
|
70
74
|
"./data-handling": {
|
|
71
75
|
"types": "./data-handling/index.d.ts",
|
|
72
76
|
"default": "./fesm2022/quang-data-handling.mjs"
|
|
@@ -75,10 +79,6 @@
|
|
|
75
79
|
"types": "./device/index.d.ts",
|
|
76
80
|
"default": "./fesm2022/quang-device.mjs"
|
|
77
81
|
},
|
|
78
|
-
"./forms": {
|
|
79
|
-
"types": "./forms/index.d.ts",
|
|
80
|
-
"default": "./fesm2022/quang-forms.mjs"
|
|
81
|
-
},
|
|
82
82
|
"./loader": {
|
|
83
83
|
"types": "./loader/index.d.ts",
|
|
84
84
|
"default": "./fesm2022/quang-loader.mjs"
|
|
@@ -99,10 +99,6 @@
|
|
|
99
99
|
"types": "./components/checkbox/index.d.ts",
|
|
100
100
|
"default": "./fesm2022/quang-components-checkbox.mjs"
|
|
101
101
|
},
|
|
102
|
-
"./components/date": {
|
|
103
|
-
"types": "./components/date/index.d.ts",
|
|
104
|
-
"default": "./fesm2022/quang-components-date.mjs"
|
|
105
|
-
},
|
|
106
102
|
"./components/autocomplete": {
|
|
107
103
|
"types": "./components/autocomplete/index.d.ts",
|
|
108
104
|
"default": "./fesm2022/quang-components-autocomplete.mjs"
|
|
@@ -111,14 +107,14 @@
|
|
|
111
107
|
"types": "./components/input/index.d.ts",
|
|
112
108
|
"default": "./fesm2022/quang-components-input.mjs"
|
|
113
109
|
},
|
|
110
|
+
"./components/date": {
|
|
111
|
+
"types": "./components/date/index.d.ts",
|
|
112
|
+
"default": "./fesm2022/quang-components-date.mjs"
|
|
113
|
+
},
|
|
114
114
|
"./components/select": {
|
|
115
115
|
"types": "./components/select/index.d.ts",
|
|
116
116
|
"default": "./fesm2022/quang-components-select.mjs"
|
|
117
117
|
},
|
|
118
|
-
"./components/shared": {
|
|
119
|
-
"types": "./components/shared/index.d.ts",
|
|
120
|
-
"default": "./fesm2022/quang-components-shared.mjs"
|
|
121
|
-
},
|
|
122
118
|
"./components/paginator": {
|
|
123
119
|
"types": "./components/paginator/index.d.ts",
|
|
124
120
|
"default": "./fesm2022/quang-components-paginator.mjs"
|
|
@@ -131,14 +127,18 @@
|
|
|
131
127
|
"types": "./components/wysiwyg/index.d.ts",
|
|
132
128
|
"default": "./fesm2022/quang-components-wysiwyg.mjs"
|
|
133
129
|
},
|
|
134
|
-
"./
|
|
135
|
-
"types": "./
|
|
136
|
-
"default": "./fesm2022/quang-
|
|
130
|
+
"./components/shared": {
|
|
131
|
+
"types": "./components/shared/index.d.ts",
|
|
132
|
+
"default": "./fesm2022/quang-components-shared.mjs"
|
|
137
133
|
},
|
|
138
134
|
"./overlay/popover": {
|
|
139
135
|
"types": "./overlay/popover/index.d.ts",
|
|
140
136
|
"default": "./fesm2022/quang-overlay-popover.mjs"
|
|
141
137
|
},
|
|
138
|
+
"./overlay/modal": {
|
|
139
|
+
"types": "./overlay/modal/index.d.ts",
|
|
140
|
+
"default": "./fesm2022/quang-overlay-modal.mjs"
|
|
141
|
+
},
|
|
142
142
|
"./overlay/shared": {
|
|
143
143
|
"types": "./overlay/shared/index.d.ts",
|
|
144
144
|
"default": "./fesm2022/quang-overlay-shared.mjs"
|
package/shared/index.d.ts
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
2
|
+
declare function isHttpMethod(value: string): value is HttpMethod;
|
|
3
|
+
interface UrlData {
|
|
4
|
+
url: string;
|
|
5
|
+
method: HttpMethod;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* providers: [
|
|
10
|
+
* provideHttpClient(withInterceptors([quangLoaderInterceptor]))
|
|
11
|
+
* ]
|
|
12
|
+
*/
|
|
13
|
+
declare function getExcludedUrlsByMethod(urlData: UrlData[]): Map<HttpMethod, Set<string>>;
|
|
14
|
+
|
|
15
|
+
export { getExcludedUrlsByMethod, isHttpMethod };
|
|
16
|
+
export type { HttpMethod, UrlData };
|
package/translation/index.d.ts
CHANGED
|
@@ -1,4 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EnvironmentProviders, InjectionToken } from '@angular/core';
|
|
3
|
+
import { QuangFeature, QuangFeatureKind } from 'quang';
|
|
4
|
+
import { TranslocoLoader, Translation, HashMap, SetTranslationOptions } from '@jsverse/transloco';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
|
|
7
|
+
interface TranslationConfig {
|
|
8
|
+
availableLangs: string[];
|
|
9
|
+
defaultLang: string;
|
|
10
|
+
fallbackLang: string;
|
|
11
|
+
translationsBasePath?: string;
|
|
12
|
+
reRenderOnLangChange?: boolean;
|
|
13
|
+
prodMode?: boolean;
|
|
14
|
+
failedRetries?: number;
|
|
15
|
+
logMissingKey?: boolean;
|
|
16
|
+
useFallbackTranslation?: boolean;
|
|
17
|
+
allowEmpty?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* export const appConfig: ApplicationConfig = {
|
|
22
|
+
* providers: [
|
|
23
|
+
* provideTranslation({
|
|
24
|
+
* availableLangs: ['it', 'en'],
|
|
25
|
+
* defaultLang: 'it',
|
|
26
|
+
* fallbackLang: 'it',
|
|
27
|
+
* })
|
|
28
|
+
* ]
|
|
29
|
+
* }
|
|
30
|
+
*/
|
|
31
|
+
declare function provideTranslation(config: TranslationConfig): EnvironmentProviders;
|
|
32
|
+
declare function withTranslation(config: TranslationConfig): QuangFeature<QuangFeatureKind.TranslationFeature>;
|
|
33
|
+
|
|
34
|
+
declare class QuangTranslationLoaderService implements TranslocoLoader {
|
|
35
|
+
private readonly httpClient;
|
|
36
|
+
private readonly translationBasePath;
|
|
37
|
+
getTranslation(lang: string): Observable<Translation> | Promise<Translation>;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangTranslationLoaderService, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QuangTranslationLoaderService>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare class QuangTranslationService {
|
|
43
|
+
private readonly _translocoService;
|
|
44
|
+
activeLang: i0.Signal<string | null>;
|
|
45
|
+
private readonly _availableLangs;
|
|
46
|
+
private readonly _defaultLang;
|
|
47
|
+
setActiveLang(lang: string): void;
|
|
48
|
+
getActiveLang(): string | null;
|
|
49
|
+
translate(key: string, params?: HashMap): string;
|
|
50
|
+
setTranslation(translation: Translation, lang?: string, options?: SetTranslationOptions): void;
|
|
51
|
+
setTranslationKey(key: string, value: string, options?: Omit<SetTranslationOptions, 'merge'>): void;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuangTranslationService, never>;
|
|
53
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QuangTranslationService>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare const AVAILABLE_LANGS: InjectionToken<string[]>;
|
|
57
|
+
declare const DEFAULT_LANG: InjectionToken<string>;
|
|
58
|
+
declare const FALLBACK_LANG: InjectionToken<string>;
|
|
59
|
+
declare const TRANSLATIONS_BASE_PATH: InjectionToken<string>;
|
|
60
|
+
|
|
61
|
+
export { AVAILABLE_LANGS, DEFAULT_LANG, FALLBACK_LANG, QuangTranslationLoaderService, QuangTranslationService, TRANSLATIONS_BASE_PATH, provideTranslation, withTranslation };
|
|
62
|
+
export type { TranslationConfig };
|
package/auth/auth-providers.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { EnvironmentProviders, Provider } from '@angular/core';
|
|
2
|
-
import { type QuangFeature, QuangFeatureKind } from 'quang';
|
|
3
|
-
import { type QuangAuthConfig } from './auth.service';
|
|
4
|
-
export declare function provideAuth(authConfig?: QuangAuthConfig, ...features: QuangAuthFeatures[]): EnvironmentProviders;
|
|
5
|
-
export declare function withAuth(authConfig?: QuangAuthConfig, ...features: QuangAuthFeatures[]): QuangFeature<QuangFeatureKind.LoaderFeature>;
|
|
6
|
-
/**
|
|
7
|
-
* Helper type to represent a QuangAuth feature.
|
|
8
|
-
*
|
|
9
|
-
* @publicApi
|
|
10
|
-
*/
|
|
11
|
-
export interface QuangAuthFeature<FeatureKind extends QuangAuthFeatureKind> {
|
|
12
|
-
ɵkind: FeatureKind;
|
|
13
|
-
ɵproviders: (Provider | EnvironmentProviders)[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Helper function to create an object that represents a QuangAuth feature.
|
|
17
|
-
*/
|
|
18
|
-
export declare function quangAuthFeature<FeatureKind extends QuangAuthFeatureKind>(kind: FeatureKind, providers: (Provider | EnvironmentProviders)[]): QuangAuthFeature<FeatureKind>;
|
|
19
|
-
/**
|
|
20
|
-
* A type alias that represents all QuangAuth features available for use with `provideAuth`.
|
|
21
|
-
* Features can be enabled by adding special functions to the `provideAuth` call.
|
|
22
|
-
* See documentation for each symbol to find corresponding function name. See also `provideAuth`
|
|
23
|
-
* documentation on how to use those functions.
|
|
24
|
-
*
|
|
25
|
-
* @see {@link provideAuth}
|
|
26
|
-
*
|
|
27
|
-
* @publicApi
|
|
28
|
-
*/
|
|
29
|
-
export type QuangAuthFeatures = QuangAuthFeature<QuangAuthFeatureKind>;
|
|
30
|
-
/**
|
|
31
|
-
* The list of features as an enum to uniquely type each feature.
|
|
32
|
-
*/
|
|
33
|
-
export declare const enum QuangAuthFeatureKind {
|
|
34
|
-
MobileAuthFeature = 0,
|
|
35
|
-
SessionStorageFeature = 1,
|
|
36
|
-
LocalStorageFeature = 2,
|
|
37
|
-
MemoryStorageFeature = 3,
|
|
38
|
-
LogoutOnErrorFeature = 4
|
|
39
|
-
}
|
package/auth/auth.service.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { EnvironmentProviders, InjectionToken } from '@angular/core';
|
|
2
|
-
import { AuthConfig } from 'angular-oauth2-oidc';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare const AUTH_CONFIG: InjectionToken<QuangAuthConfig | undefined>;
|
|
5
|
-
export interface QuangAuthConfig extends AuthConfig {
|
|
6
|
-
autoLogin: boolean;
|
|
7
|
-
sendAccessToken: boolean;
|
|
8
|
-
urlsToSendToken: string[];
|
|
9
|
-
revokeTokensOnLogout?: boolean;
|
|
10
|
-
getUserProfileOnLoginSuccess?: boolean;
|
|
11
|
-
useSilentRefresh: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare function provideQuangAuthConfig(authConfig?: QuangAuthConfig): EnvironmentProviders;
|
|
14
|
-
export declare const OPEN_URI: InjectionToken<(uri: string) => void | undefined>;
|
|
15
|
-
export declare function provideOpenURI(openURI: (uri: string) => void | undefined): EnvironmentProviders;
|
|
16
|
-
interface TokenStatus {
|
|
17
|
-
accessToken: string | null;
|
|
18
|
-
accessTokenExpiresAt: number | null;
|
|
19
|
-
idToken: string | null;
|
|
20
|
-
idTokenExpiresAt: number | null;
|
|
21
|
-
refreshToken: string | null;
|
|
22
|
-
}
|
|
23
|
-
export declare class QuangAuthService {
|
|
24
|
-
private config;
|
|
25
|
-
logLevel: "normal" | "verbose" | null;
|
|
26
|
-
private oAuthService;
|
|
27
|
-
private state;
|
|
28
|
-
loginChecked: import("@ngrx/signals/src/deep-signal").Signal<boolean>;
|
|
29
|
-
isAuthenticated: import("@angular/core").Signal<boolean>;
|
|
30
|
-
authenticationError: import("@ngrx/signals/src/deep-signal").Signal<boolean>;
|
|
31
|
-
tokenStatus: import("@ngrx/signals").DeepSignal<TokenStatus>;
|
|
32
|
-
roles: import("@ngrx/signals/src/deep-signal").Signal<Set<string>>;
|
|
33
|
-
user: import("@ngrx/signals/src/deep-signal").Signal<Record<string, any> | null>;
|
|
34
|
-
constructor();
|
|
35
|
-
init(): Promise<void>;
|
|
36
|
-
checkForAuthentication(forceRefresh?: boolean): Promise<boolean | undefined>;
|
|
37
|
-
private refreshAuth;
|
|
38
|
-
login(): void;
|
|
39
|
-
logout(): Promise<void>;
|
|
40
|
-
private loginError;
|
|
41
|
-
getUserProfile(): Promise<void>;
|
|
42
|
-
private setTokens;
|
|
43
|
-
waitForLoginCheck(): Promise<void>;
|
|
44
|
-
getAuthResult(): Promise<boolean>;
|
|
45
|
-
addRoles(rolesToAdd: string[]): void;
|
|
46
|
-
removeRoles(rolesToRemove: string[]): void;
|
|
47
|
-
hasEveryRole(roles: string[]): boolean;
|
|
48
|
-
hasAtLeastOneRole(roles: string[]): boolean;
|
|
49
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuangAuthService, never>;
|
|
50
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<QuangAuthService>;
|
|
51
|
-
}
|
|
52
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EmbeddedViewRef, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { QuangAuthService } from '../auth.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* This directive conditionally renders the associated template if the authenticated user
|
|
6
|
-
* has at least one of the specified roles. By using the `QuangAuthService.hasAtLeastOneRole()` method it checks the user's roles against
|
|
7
|
-
* the required roles provided through the `quangHasAtLeastOneRole` directive.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* <div *quangHasAtLeastOneRole="['admin', 'editor']">
|
|
11
|
-
* This content will only be visible to users with 'admin' or 'editor' roles.
|
|
12
|
-
* </div>
|
|
13
|
-
*/
|
|
14
|
-
export declare class QuangHasAtLeastOneRoleDirective {
|
|
15
|
-
logLevel: "normal" | "verbose" | null;
|
|
16
|
-
targetRoles: import("@angular/core").InputSignal<string[]>;
|
|
17
|
-
viewContainerRef: ViewContainerRef;
|
|
18
|
-
embeddedViewRef: EmbeddedViewRef<unknown> | null;
|
|
19
|
-
templateRef: TemplateRef<any>;
|
|
20
|
-
authService: QuangAuthService;
|
|
21
|
-
takeUntilDestroyed: import("rxjs").MonoTypeOperatorFunction<unknown>;
|
|
22
|
-
changeDetectorRef: ChangeDetectorRef;
|
|
23
|
-
hideViewIfNotAllowed: import("@angular/core").EffectRef;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuangHasAtLeastOneRoleDirective, never>;
|
|
25
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<QuangHasAtLeastOneRoleDirective, "[quangHasAtLeastOneRole]", never, { "targetRoles": { "alias": "quangHasAtLeastOneRole"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EmbeddedViewRef, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { QuangAuthService } from '../auth.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* This directive conditionally renders the associated template if the authenticated user
|
|
6
|
-
* has every of the specified roles. By using the `QuangAuthService.hasEveryRole()` method it checks the user's roles against
|
|
7
|
-
* the required roles provided through the `quangHasEveryRole` required input.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* <div *quangHasEveryRole="['admin', 'editor']">
|
|
11
|
-
* This content will only be visible to users with 'admin' and 'editor' roles.
|
|
12
|
-
* </div>
|
|
13
|
-
*/
|
|
14
|
-
export declare class QuangHasEveryRoleDirective {
|
|
15
|
-
logLevel: "normal" | "verbose" | null;
|
|
16
|
-
targetRoles: import("@angular/core").InputSignal<string[]>;
|
|
17
|
-
viewContainerRef: ViewContainerRef;
|
|
18
|
-
embeddedViewRef: EmbeddedViewRef<unknown> | null;
|
|
19
|
-
templateRef: TemplateRef<any>;
|
|
20
|
-
authService: QuangAuthService;
|
|
21
|
-
takeUntilDestroyed: import("rxjs").MonoTypeOperatorFunction<unknown>;
|
|
22
|
-
changeDetectorRef: ChangeDetectorRef;
|
|
23
|
-
hideViewIfNotAllowed: import("@angular/core").EffectRef;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuangHasEveryRoleDirective, never>;
|
|
25
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<QuangHasEveryRoleDirective, "[quangHasEveryRole]", never, { "targetRoles": { "alias": "quangHasEveryRole"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
26
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EmbeddedViewRef, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { QuangAuthService } from '../auth.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class QuangIsAuthenticatedDirective {
|
|
5
|
-
viewContainerRef: ViewContainerRef;
|
|
6
|
-
templateRef: TemplateRef<any>;
|
|
7
|
-
embeddedViewRef: EmbeddedViewRef<any> | null;
|
|
8
|
-
authService: QuangAuthService;
|
|
9
|
-
takeUntilDestroyed: import("rxjs").MonoTypeOperatorFunction<unknown>;
|
|
10
|
-
changeDetectorRef: ChangeDetectorRef;
|
|
11
|
-
hideViewIfNotAuthenticated: import("@angular/core").EffectRef;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuangIsAuthenticatedDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<QuangIsAuthenticatedDirective, "[quangIsAuthenticated]", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EmbeddedViewRef, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { QuangAuthService } from '../auth.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class QuangIsNotAuthenticatedDirective {
|
|
5
|
-
viewContainerRef: ViewContainerRef;
|
|
6
|
-
templateRef: TemplateRef<any>;
|
|
7
|
-
embeddedViewRef: EmbeddedViewRef<any> | null;
|
|
8
|
-
authService: QuangAuthService;
|
|
9
|
-
takeUntilDestroyed: import("rxjs").MonoTypeOperatorFunction<unknown>;
|
|
10
|
-
changeDetectorRef: ChangeDetectorRef;
|
|
11
|
-
showViewIfNotAuthenticated: import("@angular/core").EffectRef;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuangIsNotAuthenticatedDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<QuangIsNotAuthenticatedDirective, "[quangIsNotAuthenticated]", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
package/auth/guards/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { HttpInterceptorFn } from '@angular/common/http';
|
|
2
|
-
import { InjectionToken } from '@angular/core';
|
|
3
|
-
import { UrlData } from 'quang/shared';
|
|
4
|
-
import { QuangAuthFeature, QuangAuthFeatureKind } from './auth-providers';
|
|
5
|
-
export declare const LOGOUT_RETRIES: InjectionToken<number>;
|
|
6
|
-
export declare const LOGOUT_STATUSES: InjectionToken<number[]>;
|
|
7
|
-
export declare const LOGOUT_EXCLUDED_URLS: InjectionToken<UrlData[]>;
|
|
8
|
-
export declare const logoutOnErrorInterceptor: HttpInterceptorFn;
|
|
9
|
-
export declare function withLogoutOnError(excludedUrls?: UrlData[], statuses?: number[], retries?: number): QuangAuthFeature<QuangAuthFeatureKind.LogoutOnErrorFeature>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OAuthStorage } from 'angular-oauth2-oidc';
|
|
2
|
-
import { QuangAuthFeature, QuangAuthFeatureKind } from '../auth-providers';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MemoryStorage implements OAuthStorage {
|
|
5
|
-
private data;
|
|
6
|
-
getItem(key: string): string;
|
|
7
|
-
removeItem(key: string): void;
|
|
8
|
-
setItem(key: string, data: string): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MemoryStorage, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MemoryStorage>;
|
|
11
|
-
}
|
|
12
|
-
export declare function withMemoryStorage(): QuangAuthFeature<QuangAuthFeatureKind.MemoryStorageFeature>;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Subject, Subscription } from 'rxjs';
|
|
2
|
-
import { OptionListParentType, QuangBaseComponent, QuangOptionListComponent, SelectOption } from 'quang/components/shared';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class QuangAutocompleteComponent extends QuangBaseComponent<string | number | string[] | number[]> {
|
|
5
|
-
syncFormWithText: import("@angular/core").InputSignal<boolean>;
|
|
6
|
-
optionListMaxHeight: import("@angular/core").InputSignal<string>;
|
|
7
|
-
selectOptions: import("@angular/core").InputSignal<SelectOption[]>;
|
|
8
|
-
translateValue: import("@angular/core").InputSignal<boolean>;
|
|
9
|
-
scrollBehaviorOnOpen: import("@angular/core").InputSignal<ScrollBehavior>;
|
|
10
|
-
/**
|
|
11
|
-
* Only emits the value without saving it in ngControl
|
|
12
|
-
*/
|
|
13
|
-
emitOnly: import("@angular/core").InputSignal<boolean>;
|
|
14
|
-
multiple: import("@angular/core").InputSignal<boolean>;
|
|
15
|
-
/**
|
|
16
|
-
* Set the maximum length in characters of the single chip.
|
|
17
|
-
*/
|
|
18
|
-
chipMaxLength: import("@angular/core").InputSignal<number>;
|
|
19
|
-
multiSelectDisplayMode: import("@angular/core").InputSignal<"vertical" | "horizontal">;
|
|
20
|
-
optionList: import("@angular/core").Signal<QuangOptionListComponent | undefined>;
|
|
21
|
-
_showOptions: import("@angular/core").WritableSignal<boolean | null>;
|
|
22
|
-
_inputValue: import("@angular/core").WritableSignal<string>;
|
|
23
|
-
_optionHideTimeout: import("@angular/core").WritableSignal<any>;
|
|
24
|
-
_chipList: import("@angular/core").WritableSignal<string[]>;
|
|
25
|
-
_selectedOptions: import("@angular/core").WritableSignal<SelectOption[]>;
|
|
26
|
-
inputValue$: Subject<string>;
|
|
27
|
-
selectOptionsChange: Subscription;
|
|
28
|
-
_filteredOptions: import("@angular/core").Signal<SelectOption[]>;
|
|
29
|
-
selectedOption: import("@angular/core").OutputEmitterRef<string | number | null>;
|
|
30
|
-
searchTextChange: import("@angular/core").OutputEmitterRef<string>;
|
|
31
|
-
searchTextDebounce: import("@angular/core").InputSignal<number>;
|
|
32
|
-
internalFilterOptions: import("@angular/core").InputSignal<boolean>;
|
|
33
|
-
readonly ParentType = OptionListParentType.AUTOCOMPLETE;
|
|
34
|
-
formValueChange$: Subscription | undefined;
|
|
35
|
-
private readonly selectInput;
|
|
36
|
-
private readonly chipContainer;
|
|
37
|
-
private readonly autocompleteContainer;
|
|
38
|
-
inputHeight: import("@angular/core").WritableSignal<number>;
|
|
39
|
-
private readonly onChangeSelectInput;
|
|
40
|
-
constructor();
|
|
41
|
-
setupFormControl(): void;
|
|
42
|
-
showOptionVisibility(): void;
|
|
43
|
-
hideOptionVisibility(skipTimeout?: boolean): void;
|
|
44
|
-
onChangeInput(value: any): void;
|
|
45
|
-
filterOptions(value: string): SelectOption[];
|
|
46
|
-
onChangedHandler(value: string | number | string[] | number[]): void;
|
|
47
|
-
onValueChange(value: string | number, hideOptions?: boolean): void;
|
|
48
|
-
checkInputValue(): void;
|
|
49
|
-
writeValue(val: string | number | string[] | number[]): void;
|
|
50
|
-
onBlurInput(event: FocusEvent): void;
|
|
51
|
-
onBlurHandler(): void;
|
|
52
|
-
onBlurOptionList(event: any): void;
|
|
53
|
-
setInputValue(resetOnMiss?: boolean): void;
|
|
54
|
-
getDescription(chip: any): string;
|
|
55
|
-
onSelectValue(value: any): void;
|
|
56
|
-
/**
|
|
57
|
-
* remove chip from chips list
|
|
58
|
-
* @param chipValue chip to delete
|
|
59
|
-
*/
|
|
60
|
-
deleteChip(chipValue: any): void;
|
|
61
|
-
createChipList(chip: any): void;
|
|
62
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuangAutocompleteComponent, never>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuangAutocompleteComponent, "quang-autocomplete", never, { "syncFormWithText": { "alias": "syncFormWithText"; "required": false; "isSignal": true; }; "optionListMaxHeight": { "alias": "optionListMaxHeight"; "required": false; "isSignal": true; }; "selectOptions": { "alias": "selectOptions"; "required": true; "isSignal": true; }; "translateValue": { "alias": "translateValue"; "required": false; "isSignal": true; }; "scrollBehaviorOnOpen": { "alias": "scrollBehaviorOnOpen"; "required": false; "isSignal": true; }; "emitOnly": { "alias": "emitOnly"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "chipMaxLength": { "alias": "chipMaxLength"; "required": false; "isSignal": true; }; "multiSelectDisplayMode": { "alias": "multiSelectDisplayMode"; "required": false; "isSignal": true; }; "searchTextDebounce": { "alias": "searchTextDebounce"; "required": false; "isSignal": true; }; "internalFilterOptions": { "alias": "internalFilterOptions"; "required": false; "isSignal": true; }; }, { "selectedOption": "selectedOption"; "searchTextChange": "searchTextChange"; }, never, never, true, never>;
|
|
64
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { QuangBaseComponent } from 'quang/components/shared';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export type LabelPosition = 'top' | 'left' | 'right' | 'bottom';
|
|
4
|
-
export declare class QuangCheckboxComponent extends QuangBaseComponent<boolean> {
|
|
5
|
-
labelPosition: import("@angular/core").InputSignal<LabelPosition>;
|
|
6
|
-
checkType: import("@angular/core").InputSignal<"checkbox" | "toggle">;
|
|
7
|
-
removeMargin: import("@angular/core").InputSignal<boolean>;
|
|
8
|
-
onChangedEventHandler($event: Event): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuangCheckboxComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuangCheckboxComponent, "quang-checkbox", never, { "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "checkType": { "alias": "checkType"; "required": true; "isSignal": true; }; "removeMargin": { "alias": "removeMargin"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import AirDatepicker, { AirDatepickerLocale, AirDatepickerOptions, AirDatepickerPosition } from 'air-datepicker';
|
|
3
|
-
import { QuangTranslationService } from 'quang/translation';
|
|
4
|
-
import { QuangBaseComponent } from 'quang/components/shared';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export interface DateRange {
|
|
7
|
-
dateFrom: string | null;
|
|
8
|
-
dateTo: string | null;
|
|
9
|
-
}
|
|
10
|
-
export type QuangDatepickerOptions = AirDatepickerOptions;
|
|
11
|
-
export declare class QuangDateComponent extends QuangBaseComponent<string | DateRange | null> {
|
|
12
|
-
/**
|
|
13
|
-
* Format to use to show on the input field.
|
|
14
|
-
* The format is based on the standard {@link https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table}
|
|
15
|
-
* Default: dd/MM/yyyy
|
|
16
|
-
* @default dd/MM/yyyy
|
|
17
|
-
*/
|
|
18
|
-
dateFormat: import("@angular/core").InputSignal<string>;
|
|
19
|
-
/**
|
|
20
|
-
* Format to use to show on the time inside the input field.
|
|
21
|
-
* The format is based on the standard {@link https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table}
|
|
22
|
-
* Default: HH:mm
|
|
23
|
-
* @default HH:mm
|
|
24
|
-
*/
|
|
25
|
-
timeFormat: import("@angular/core").InputSignal<string>;
|
|
26
|
-
/**
|
|
27
|
-
* Calendar locale, if not provided the component will try to use the one provided in {@link QuangTranslationService}
|
|
28
|
-
* if the language is not set in {@link QuangTranslationService} it will use the browser language
|
|
29
|
-
* Use this parameter only to override default behavior
|
|
30
|
-
*/
|
|
31
|
-
activeLanguageOverride: import("@angular/core").InputSignal<string | undefined>;
|
|
32
|
-
/**
|
|
33
|
-
* If true enable the timepicker inside the calendar
|
|
34
|
-
*/
|
|
35
|
-
timepicker: import("@angular/core").InputSignal<boolean>;
|
|
36
|
-
/**
|
|
37
|
-
* The message to show inside the input if the date is invalid
|
|
38
|
-
*/
|
|
39
|
-
invalidDateMessage: import("@angular/core").InputSignal<string>;
|
|
40
|
-
showOnlyTimepicker: import("@angular/core").InputSignal<boolean>;
|
|
41
|
-
minHour: import("@angular/core").InputSignal<number>;
|
|
42
|
-
maxHour: import("@angular/core").InputSignal<number>;
|
|
43
|
-
minMinute: import("@angular/core").InputSignal<number>;
|
|
44
|
-
maxMinute: import("@angular/core").InputSignal<number>;
|
|
45
|
-
minDate: import("@angular/core").InputSignal<Date | undefined>;
|
|
46
|
-
maxDate: import("@angular/core").InputSignal<Date | undefined>;
|
|
47
|
-
showInline: import("@angular/core").InputSignal<boolean>;
|
|
48
|
-
calendarClasses: import("@angular/core").InputSignal<string>;
|
|
49
|
-
buttonClass: import("@angular/core").InputSignal<string>;
|
|
50
|
-
datepickerOptions: import("@angular/core").InputSignal<QuangDatepickerOptions | undefined>;
|
|
51
|
-
_inputForDate: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
52
|
-
contentTemplate: import("@angular/core").Signal<ElementRef<any>>;
|
|
53
|
-
hasNoContent: import("@angular/core").Signal<boolean>;
|
|
54
|
-
_quangTranslationService: import("@angular/core").WritableSignal<QuangTranslationService | undefined>;
|
|
55
|
-
_quangTranslationActiveLang: import("@angular/core").Signal<string | null>;
|
|
56
|
-
multipleDatesSeparator: import("@angular/core").InputSignal<string>;
|
|
57
|
-
rangeSelection: import("@angular/core").InputSignal<boolean>;
|
|
58
|
-
_activeLanguage: import("@angular/core").Signal<string | null | undefined>;
|
|
59
|
-
_airDatepickerInstance: import("@angular/core").WritableSignal<AirDatepicker<HTMLInputElement> | undefined>;
|
|
60
|
-
searchTextDebounce: import("@angular/core").InputSignal<number>;
|
|
61
|
-
targetPosition: import("@angular/core").WritableSignal<AirDatepickerPosition>;
|
|
62
|
-
_generateAirDatepickerEffect: import("@angular/core").EffectRef;
|
|
63
|
-
valueFormat: import("@angular/core").Signal<string>;
|
|
64
|
-
inputValueString: import("@angular/core").Signal<string>;
|
|
65
|
-
constructor();
|
|
66
|
-
showTimepicker: import("@angular/core").Signal<boolean>;
|
|
67
|
-
isMouseInsideCalendar: import("@angular/core").WritableSignal<boolean>;
|
|
68
|
-
isMouseOutsideCalendar: import("@angular/core").Signal<boolean>;
|
|
69
|
-
setupCalendar(): void;
|
|
70
|
-
onChangeText($event: Event): void;
|
|
71
|
-
onBlurHandler(): void;
|
|
72
|
-
setupInputStringToDate(value: string): Date;
|
|
73
|
-
onChangedHandler(value: string | DateRange | null): void;
|
|
74
|
-
onHideCalendar(): void;
|
|
75
|
-
formatDate(val: string | DateRange | null): string;
|
|
76
|
-
openDatePicker(): void;
|
|
77
|
-
interceptInputInteraction($event: Event): void;
|
|
78
|
-
getLocale(): AirDatepickerLocale;
|
|
79
|
-
onCancel(): void;
|
|
80
|
-
private dateToUtc;
|
|
81
|
-
private setCalendarPosition;
|
|
82
|
-
private setupTimepicker;
|
|
83
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuangDateComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuangDateComponent, "quang-date", never, { "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "timeFormat": { "alias": "timeFormat"; "required": false; "isSignal": true; }; "activeLanguageOverride": { "alias": "activeLanguageOverride"; "required": false; "isSignal": true; }; "timepicker": { "alias": "timepicker"; "required": false; "isSignal": true; }; "invalidDateMessage": { "alias": "invalidDateMessage"; "required": false; "isSignal": true; }; "showOnlyTimepicker": { "alias": "showOnlyTimepicker"; "required": false; "isSignal": true; }; "minHour": { "alias": "minHour"; "required": false; "isSignal": true; }; "maxHour": { "alias": "maxHour"; "required": false; "isSignal": true; }; "minMinute": { "alias": "minMinute"; "required": false; "isSignal": true; }; "maxMinute": { "alias": "maxMinute"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "showInline": { "alias": "showInline"; "required": false; "isSignal": true; }; "calendarClasses": { "alias": "calendarClasses"; "required": false; "isSignal": true; }; "buttonClass": { "alias": "buttonClass"; "required": false; "isSignal": true; }; "datepickerOptions": { "alias": "datepickerOptions"; "required": false; "isSignal": true; }; "multipleDatesSeparator": { "alias": "multipleDatesSeparator"; "required": false; "isSignal": true; }; "rangeSelection": { "alias": "rangeSelection"; "required": false; "isSignal": true; }; "searchTextDebounce": { "alias": "searchTextDebounce"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
85
|
-
}
|