@falcon-ng/tailwind 0.0.16 → 0.0.17
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/fesm2022/falcon-ng-tailwind.mjs +91 -91
- package/fesm2022/falcon-ng-tailwind.mjs.map +1 -1
- package/index.d.ts +666 -3
- package/package.json +3 -3
- package/lib/base-form-component.d.ts +0 -169
- package/lib/component/auto-complete/auto-complete.component.d.ts +0 -16
- package/lib/component/bottom-sheet/bottom-sheet.component.d.ts +0 -10
- package/lib/component/button/button.component.d.ts +0 -12
- package/lib/component/button-toggle/button-toggle.component.d.ts +0 -14
- package/lib/component/checkbox/checkbox.component.d.ts +0 -10
- package/lib/component/chips/chip.component.d.ts +0 -35
- package/lib/component/date-picker/date-picker.component.d.ts +0 -9
- package/lib/component/dialog/dialog.component.d.ts +0 -8
- package/lib/component/pagination/pagination.component.d.ts +0 -20
- package/lib/component/progress-bar/progress-bar.component.d.ts +0 -11
- package/lib/component/progress-spinner/progress-spinner.component.d.ts +0 -12
- package/lib/component/radio/radio.component.d.ts +0 -14
- package/lib/component/rich-text-editor/rich-text-editor.component.d.ts +0 -9
- package/lib/component/select/select.component.d.ts +0 -15
- package/lib/component/slide-toggle/slide-toggle.component.d.ts +0 -9
- package/lib/component/slider/slider.component.d.ts +0 -9
- package/lib/component/snack-bar/snack-bar.component.d.ts +0 -5
- package/lib/component/table/table.component.d.ts +0 -21
- package/lib/component/textarea/textarea.component.d.ts +0 -9
- package/lib/component/textbox/textbox.component.d.ts +0 -9
- package/lib/control-builder/control-builder.component.d.ts +0 -9
- package/lib/falcon-tailwind.module.d.ts +0 -35
- package/lib/model/constant.d.ts +0 -31
- package/lib/model/environments.d.ts +0 -26
- package/lib/model/layout.d.ts +0 -23
- package/lib/reactive-field.directive.d.ts +0 -14
- package/lib/service/appsetting.service.d.ts +0 -22
- package/lib/service/http/generic-http-client.d.ts +0 -121
- package/lib/service/http/igeneric-http-client.d.ts +0 -92
- package/lib/service/logger.service.d.ts +0 -18
- package/lib/service/open-id/TokenHelperService.d.ts +0 -11
- package/lib/service/open-id/auth-guard.service.d.ts +0 -11
- package/lib/service/open-id/auth.service.d.ts +0 -35
- package/public-api.d.ts +0 -19
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { IGenericHttpClient } from './igeneric-http-client';
|
|
4
|
-
import { IRequestOptions } from '@falcon-ng/core';
|
|
5
|
-
import { LoggerService } from '../logger.service';
|
|
6
|
-
import { EnvironmentViewModel } from "../../model/environments";
|
|
7
|
-
import { MatSnackBar } from "@angular/material/snack-bar";
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class GenericHttpClient<T> implements IGenericHttpClient<T> {
|
|
10
|
-
private httpClient;
|
|
11
|
-
private environment;
|
|
12
|
-
private _snackBar;
|
|
13
|
-
private logger;
|
|
14
|
-
private snackBarViewModel;
|
|
15
|
-
private isHttpError;
|
|
16
|
-
constructor(httpClient: HttpClient, environment: EnvironmentViewModel, _snackBar: MatSnackBar, logger: LoggerService);
|
|
17
|
-
/**
|
|
18
|
-
* @description
|
|
19
|
-
* Generic Http GET method to Get the response and bind to the view model
|
|
20
|
-
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
21
|
-
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
22
|
-
* @returns {Observable<T>}
|
|
23
|
-
* @usageNotes
|
|
24
|
-
* The following snippet shows how to use this method
|
|
25
|
-
* ```ts
|
|
26
|
-
* this.genericHttpService.Get("get_url").subscribe(data => {
|
|
27
|
-
* console.log('success');
|
|
28
|
-
* }, error => {
|
|
29
|
-
* console.log(error);
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
get(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
34
|
-
/**
|
|
35
|
-
* @description
|
|
36
|
-
* Generic Http post method to post the view model and bind the return view model
|
|
37
|
-
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
38
|
-
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
39
|
-
* @returns {Observable<T>}
|
|
40
|
-
* @usageNotes
|
|
41
|
-
* The following snippet shows how to use this method
|
|
42
|
-
* ```ts
|
|
43
|
-
* this.genericHttpClientService.Post(post-url,post-view-model).subscribe(item => {
|
|
44
|
-
* console.log(item);
|
|
45
|
-
* },
|
|
46
|
-
* err => {
|
|
47
|
-
* console.log(err);
|
|
48
|
-
* });
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
post(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
52
|
-
/**
|
|
53
|
-
* @description
|
|
54
|
-
* Generic Http Put method to post the view model and bind the return view model
|
|
55
|
-
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
56
|
-
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
57
|
-
* @returns {Observable<T>}
|
|
58
|
-
* @usageNotes
|
|
59
|
-
* The following snippet shows how to use this method
|
|
60
|
-
* ```ts
|
|
61
|
-
* this.genericHttpClientService.Put(post-url, post-view-model).subscribe(item => {
|
|
62
|
-
* console.log(item);
|
|
63
|
-
* },
|
|
64
|
-
* err => {
|
|
65
|
-
* console.log(err);
|
|
66
|
-
* });
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
put(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
70
|
-
/**
|
|
71
|
-
* @description
|
|
72
|
-
* Generic Http post method to post the view model and bind the return view model
|
|
73
|
-
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
74
|
-
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
75
|
-
* @returns {Observable<T>}
|
|
76
|
-
* @usageNotes
|
|
77
|
-
* The following snippet shows how to use this method
|
|
78
|
-
* ```ts
|
|
79
|
-
* this.genericHttpClientService.Post(post-url,post-view-model).subscribe(item => {
|
|
80
|
-
* console.log(item);
|
|
81
|
-
* },
|
|
82
|
-
* err => {
|
|
83
|
-
* console.log(err);
|
|
84
|
-
* });
|
|
85
|
-
* ```
|
|
86
|
-
*/
|
|
87
|
-
patch(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
88
|
-
/**
|
|
89
|
-
* @description
|
|
90
|
-
* Generic Http Delete method to Delete the item and bind the return view model
|
|
91
|
-
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
92
|
-
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
93
|
-
* @returns {Observable<T>}
|
|
94
|
-
* @usageNotes
|
|
95
|
-
* The following snippet shows how to use this method
|
|
96
|
-
* ```ts
|
|
97
|
-
* this.genericHttpClientService.Delete(this.deleteUserUrl).subscribe(item => {
|
|
98
|
-
* console.log('success');
|
|
99
|
-
* }, error => {
|
|
100
|
-
* console.log(error);
|
|
101
|
-
* });
|
|
102
|
-
* ```
|
|
103
|
-
*/
|
|
104
|
-
delete(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
105
|
-
/**
|
|
106
|
-
* @description
|
|
107
|
-
* Http request method to accept different method type and params
|
|
108
|
-
* @param {string} method Http methods - GET, POST, PUT, DELETE.
|
|
109
|
-
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
110
|
-
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
111
|
-
* @returns {Observable<T>}
|
|
112
|
-
* @usageNotes
|
|
113
|
-
* The following snippet shows how to use this method
|
|
114
|
-
* ```ts
|
|
115
|
-
* this.request<T>(HttpMethod.Delete, destinationUrl, options);
|
|
116
|
-
* ```
|
|
117
|
-
*/
|
|
118
|
-
private request;
|
|
119
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GenericHttpClient<any>, never>;
|
|
120
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GenericHttpClient<any>>;
|
|
121
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { IRequestOptions } from '@falcon-ng/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare abstract class IGenericHttpClient<T> {
|
|
5
|
-
/**
|
|
6
|
-
* @description
|
|
7
|
-
* Generic Http GET method to Get the response and bind to the view model
|
|
8
|
-
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
9
|
-
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
10
|
-
* @returns {Observable<T>}
|
|
11
|
-
* @usageNotes
|
|
12
|
-
* The following snippet shows how to use this method
|
|
13
|
-
* ```ts
|
|
14
|
-
* this.genericHttpService.HttpGet("get_url").subscribe(data => {
|
|
15
|
-
* console.log('success');
|
|
16
|
-
* }, error => {
|
|
17
|
-
* console.log(error);
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
abstract get(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
22
|
-
/**
|
|
23
|
-
* @description
|
|
24
|
-
* Generic Http post method to post the view model and bind the return view model
|
|
25
|
-
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
26
|
-
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
27
|
-
* @returns {Observable<T>}
|
|
28
|
-
* @usageNotes
|
|
29
|
-
* The following snippet shows how to use this method
|
|
30
|
-
* ```ts
|
|
31
|
-
* this.genericHttpService.Post(post_url,post-view-model").subscribe(data => {
|
|
32
|
-
* console.log('data is not success');
|
|
33
|
-
* }, error => {
|
|
34
|
-
* console.log(error);
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
abstract post(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
39
|
-
/**
|
|
40
|
-
* @description
|
|
41
|
-
* Generic Http put method to post the view model and bind the return view model
|
|
42
|
-
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
43
|
-
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
44
|
-
* @returns {Observable<T>}
|
|
45
|
-
* @usageNotes
|
|
46
|
-
* The following snippet shows how to use this method
|
|
47
|
-
* ```ts
|
|
48
|
-
* this.genericHttpService.Put(put_url,post-view-model).subscribe(data => {
|
|
49
|
-
* console.log('data is not success');
|
|
50
|
-
* }, error => {
|
|
51
|
-
* console.log(error);
|
|
52
|
-
* });
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
abstract put(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
56
|
-
/**
|
|
57
|
-
* @description
|
|
58
|
-
* Generic Http patch method to patch the view model and bind the return view model
|
|
59
|
-
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
60
|
-
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
61
|
-
* @returns {Observable<T>}
|
|
62
|
-
* @usageNotes
|
|
63
|
-
* The following snippet shows how to use this method
|
|
64
|
-
* ```ts
|
|
65
|
-
* this.genericHttpService.Patch(put_url,post-view-model).subscribe(data => {
|
|
66
|
-
* console.log('data is not success');
|
|
67
|
-
* }, error => {
|
|
68
|
-
* console.log(error);
|
|
69
|
-
* });
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
abstract patch(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
73
|
-
/**
|
|
74
|
-
* @description
|
|
75
|
-
* Generic Http Delete method to Delete the item and bind the return view model
|
|
76
|
-
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
77
|
-
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
78
|
-
* @returns {Observable<T>}
|
|
79
|
-
* @usageNotes
|
|
80
|
-
* The following snippet shows how to use this method
|
|
81
|
-
* ```ts
|
|
82
|
-
* this.genericHttpClientService.Delete(this.deleteUserUrl).subscribe(item => {
|
|
83
|
-
* console.log('success');
|
|
84
|
-
* }, error => {
|
|
85
|
-
* console.log(error);
|
|
86
|
-
* });
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
|
-
abstract delete(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
90
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IGenericHttpClient<any>, never>;
|
|
91
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IGenericHttpClient<any>>;
|
|
92
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AppSettingService } from './appsetting.service';
|
|
2
|
-
import { IAppSettingViewModel } from "@falcon-ng/core";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LoggerService {
|
|
5
|
-
private initialized;
|
|
6
|
-
private _level;
|
|
7
|
-
constructor();
|
|
8
|
-
initialize(appSettings: IAppSettingViewModel): Promise<void>;
|
|
9
|
-
private log;
|
|
10
|
-
private shouldLog;
|
|
11
|
-
error(message: any, ...optionalParams: any[]): void;
|
|
12
|
-
warning(message: any, ...optionalParams: any[]): void;
|
|
13
|
-
info(message: any, ...optionalParams: any[]): void;
|
|
14
|
-
verbose(message: any, ...optionalParams: any[]): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
|
|
17
|
-
}
|
|
18
|
-
export declare function loggerServiceFactory(loggerService: LoggerService, appSettings: AppSettingService): () => Promise<void>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class TokenHelperService {
|
|
3
|
-
constructor();
|
|
4
|
-
getTokenExpirationDate(dataIdToken: any): Date;
|
|
5
|
-
getPayloadFromToken(token: any, encode: boolean): any;
|
|
6
|
-
getHeaderFromToken(token: any, encode: boolean): any;
|
|
7
|
-
getSignatureFromToken(token: any, encode: boolean): any;
|
|
8
|
-
urlBase64Decode(str: string): string;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TokenHelperService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TokenHelperService>;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AuthService } from './auth.service';
|
|
2
|
-
import { RouterStateSnapshot, ActivatedRouteSnapshot } from '@angular/router';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AuthGuardService {
|
|
6
|
-
private authService;
|
|
7
|
-
constructor(authService: AuthService);
|
|
8
|
-
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean | Observable<boolean> | Promise<boolean>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuardService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuardService>;
|
|
11
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { LoggerService } from '../logger.service';
|
|
2
|
-
import { TokenHelperService } from './TokenHelperService';
|
|
3
|
-
import { EnvironmentViewModel } from '../../model/environments';
|
|
4
|
-
import { AppSettingService } from '../appsetting.service';
|
|
5
|
-
import { User, UserManager, UserManagerSettings, UserProfile } from 'oidc-client-ts';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class AuthService {
|
|
8
|
-
private logger;
|
|
9
|
-
private tokenHelperService;
|
|
10
|
-
static USER_LOADED_EVENT: string;
|
|
11
|
-
static USER_UNLOADED_EVENT: string;
|
|
12
|
-
private initialized;
|
|
13
|
-
userManager: UserManager;
|
|
14
|
-
private user;
|
|
15
|
-
settings: UserManagerSettings;
|
|
16
|
-
private accessToken;
|
|
17
|
-
private signingOut;
|
|
18
|
-
constructor(logger: LoggerService, tokenHelperService: TokenHelperService);
|
|
19
|
-
initialize(environment: EnvironmentViewModel): Promise<void>;
|
|
20
|
-
isLoggedIn(): boolean;
|
|
21
|
-
getUser(): Promise<User | null>;
|
|
22
|
-
getProfile(): UserProfile;
|
|
23
|
-
getClaims(): UserProfile;
|
|
24
|
-
getAuthorizationHeaderValue(): string;
|
|
25
|
-
getAccessToken(): any;
|
|
26
|
-
startAuthentication(returnUrl: string): Promise<void>;
|
|
27
|
-
login(): Promise<void>;
|
|
28
|
-
renewToken(): Promise<User | null>;
|
|
29
|
-
logout(signoutRedirect?: boolean): Promise<void>;
|
|
30
|
-
private getClientSettings;
|
|
31
|
-
isServiceReady(): Promise<boolean>;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
33
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
34
|
-
}
|
|
35
|
-
export declare function authServiceFactory(authService: AuthService, appSettings: AppSettingService, environment: EnvironmentViewModel): () => Promise<void>;
|
package/public-api.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export * from './lib/falcon-tailwind.module';
|
|
2
|
-
export * from './lib/reactive-field.directive';
|
|
3
|
-
export * from './lib/control-builder/control-builder.component';
|
|
4
|
-
export * from './lib/service/http/igeneric-http-client';
|
|
5
|
-
export * from './lib/service/logger.service';
|
|
6
|
-
export * from './lib/service/open-id/auth.service';
|
|
7
|
-
export * from './lib/service/open-id/auth-guard.service';
|
|
8
|
-
export * from './lib/service/appsetting.service';
|
|
9
|
-
export * from './lib/model/constant';
|
|
10
|
-
export * from './lib/model/environments';
|
|
11
|
-
export * from './lib/control-builder/control-builder.component';
|
|
12
|
-
export * from './lib/base-form-component';
|
|
13
|
-
export * from './lib/model/layout';
|
|
14
|
-
export * from './lib/component/table/table.component';
|
|
15
|
-
export * from './lib/component/pagination/pagination.component';
|
|
16
|
-
export * from './lib/component/progress-bar/progress-bar.component';
|
|
17
|
-
export * from './lib/component/progress-spinner/progress-spinner.component';
|
|
18
|
-
export * from './lib/component/button/button.component';
|
|
19
|
-
export * from './lib/component/dialog/dialog.component';
|