@falcon-ng/tailwind 0.0.2 → 0.0.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/esm2020/falcon-ng-tailwind.mjs +5 -0
- package/esm2020/lib/base-control.mjs +50 -0
- package/esm2020/lib/base-form-component.mjs +234 -0
- package/esm2020/lib/component/auto-complete/auto-complete.component.mjs +33 -0
- package/esm2020/lib/component/bottom-sheet/bottom-sheet.component.mjs +29 -0
- package/esm2020/lib/component/button/button.component.mjs +27 -0
- package/esm2020/lib/component/button-toggle/button-toggle.component.mjs +32 -0
- package/esm2020/lib/component/checkbox/checkbox.component.mjs +18 -0
- package/esm2020/lib/component/chips/chip.component.mjs +109 -0
- package/esm2020/lib/component/date-picker/date-picker.component.mjs +17 -0
- package/esm2020/lib/component/dialog/dialog.component.mjs +21 -0
- package/esm2020/lib/component/pagination/pagination.component.mjs +95 -0
- package/esm2020/lib/component/progress-bar/progress-bar.component.mjs +20 -0
- package/esm2020/lib/component/progress-spinner/progress-spinner.component.mjs +26 -0
- package/esm2020/lib/component/radio/radio.component.mjs +31 -0
- package/esm2020/lib/component/rich-text-editor/rich-text-editor.component.mjs +15 -0
- package/esm2020/lib/component/select/select.component.mjs +35 -0
- package/esm2020/lib/component/slide-toggle/slide-toggle.component.mjs +14 -0
- package/esm2020/lib/component/slider/slider.component.mjs +15 -0
- package/esm2020/lib/component/snack-bar/snack-bar.component.mjs +11 -0
- package/esm2020/lib/component/table/table.component.mjs +74 -0
- package/esm2020/lib/component/textarea/textarea.component.mjs +16 -0
- package/esm2020/lib/component/textbox/textbox.component.mjs +17 -0
- package/esm2020/lib/control-builder/control-builder.component.mjs +18 -0
- package/esm2020/lib/control-type/AutoComplete.mjs +8 -0
- package/esm2020/lib/control-type/Button.mjs +8 -0
- package/esm2020/lib/control-type/ButtonToggle.mjs +8 -0
- package/esm2020/lib/control-type/CheckBox.mjs +8 -0
- package/esm2020/lib/control-type/Chip.mjs +8 -0
- package/esm2020/lib/control-type/DatePicker.mjs +8 -0
- package/esm2020/lib/control-type/Divider.mjs +8 -0
- package/esm2020/lib/control-type/Editor.mjs +8 -0
- package/esm2020/lib/control-type/Radio.mjs +8 -0
- package/esm2020/lib/control-type/RichTextEditor.mjs +8 -0
- package/esm2020/lib/control-type/SlideToggle.mjs +8 -0
- package/esm2020/lib/control-type/Slider.mjs +8 -0
- package/esm2020/lib/control-type/Textarea.mjs +8 -0
- package/esm2020/lib/control-type/Textbox.mjs +8 -0
- package/esm2020/lib/control-type/select.mjs +8 -0
- package/esm2020/lib/falcon-core.module.mjs +230 -0
- package/esm2020/lib/model/constant.mjs +32 -0
- package/esm2020/lib/model/enum.mjs +2 -0
- package/esm2020/lib/model/environments.mjs +3 -0
- package/esm2020/lib/model/interface.mjs +2 -0
- package/esm2020/lib/model/ivalidator.mjs +2 -0
- package/esm2020/lib/module/angularmaterial.module.mjs +189 -0
- package/esm2020/lib/reactive-field.directive.mjs +28 -0
- package/esm2020/lib/service/appsetting.service.mjs +55 -0
- package/esm2020/lib/service/http/generic-http-client.mjs +197 -0
- package/esm2020/lib/service/http/igeneric-http-client.mjs +10 -0
- package/esm2020/lib/service/logger.service.mjs +78 -0
- package/esm2020/lib/service/open-id/TokenHelperService.mjs +71 -0
- package/esm2020/lib/service/open-id/auth-guard.service.mjs +30 -0
- package/esm2020/lib/service/open-id/auth.service.mjs +154 -0
- package/esm2020/public-api.mjs +47 -0
- package/fesm2015/falcon-ng-tailwind.mjs +1988 -0
- package/fesm2015/falcon-ng-tailwind.mjs.map +1 -0
- package/fesm2020/falcon-ng-tailwind.mjs +1962 -0
- package/fesm2020/falcon-ng-tailwind.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/base-control.d.ts +104 -0
- package/lib/base-form-component.d.ts +169 -0
- package/lib/component/auto-complete/auto-complete.component.d.ts +17 -0
- package/lib/component/bottom-sheet/bottom-sheet.component.d.ts +11 -0
- package/lib/component/button/button.component.d.ts +12 -0
- package/lib/component/button-toggle/button-toggle.component.d.ts +14 -0
- package/lib/component/checkbox/checkbox.component.d.ts +10 -0
- package/lib/component/chips/chip.component.d.ts +35 -0
- package/lib/component/date-picker/date-picker.component.d.ts +9 -0
- package/lib/component/dialog/dialog.component.d.ts +8 -0
- package/lib/component/pagination/pagination.component.d.ts +20 -0
- package/lib/component/progress-bar/progress-bar.component.d.ts +11 -0
- package/lib/component/progress-spinner/progress-spinner.component.d.ts +12 -0
- package/lib/component/radio/radio.component.d.ts +14 -0
- package/lib/component/rich-text-editor/rich-text-editor.component.d.ts +9 -0
- package/lib/component/select/select.component.d.ts +15 -0
- package/lib/component/slide-toggle/slide-toggle.component.d.ts +9 -0
- package/lib/component/slider/slider.component.d.ts +9 -0
- package/lib/component/snack-bar/snack-bar.component.d.ts +5 -0
- package/lib/component/table/table.component.d.ts +21 -0
- package/lib/component/textarea/textarea.component.d.ts +9 -0
- package/lib/component/textbox/textbox.component.d.ts +9 -0
- package/lib/control-builder/control-builder.component.d.ts +9 -0
- package/lib/control-type/AutoComplete.d.ts +5 -0
- package/lib/control-type/Button.d.ts +5 -0
- package/lib/control-type/ButtonToggle.d.ts +5 -0
- package/{src/lib/control-type/Chip.ts → lib/control-type/CheckBox.d.ts} +2 -3
- package/lib/control-type/Chip.d.ts +5 -0
- package/lib/control-type/DatePicker.d.ts +5 -0
- package/lib/control-type/Divider.d.ts +5 -0
- package/lib/control-type/Editor.d.ts +5 -0
- package/lib/control-type/Radio.d.ts +5 -0
- package/lib/control-type/RichTextEditor.d.ts +5 -0
- package/{src/lib/control-type/Radio.ts → lib/control-type/SlideToggle.d.ts} +2 -3
- package/lib/control-type/Slider.d.ts +5 -0
- package/lib/control-type/Textarea.d.ts +5 -0
- package/lib/control-type/Textbox.d.ts +5 -0
- package/lib/control-type/select.d.ts +5 -0
- package/lib/falcon-core.module.d.ts +35 -0
- package/lib/model/constant.d.ts +5 -0
- package/lib/model/enum.d.ts +144 -0
- package/{src/lib/model/environments.ts → lib/model/environments.d.ts} +5 -7
- package/{src/lib/model/interface.ts → lib/model/interface.d.ts} +80 -91
- package/{src/lib/model/ivalidator.ts → lib/model/ivalidator.d.ts} +3 -3
- package/lib/module/angularmaterial.module.d.ts +49 -0
- package/lib/reactive-field.directive.d.ts +14 -0
- package/lib/service/appsetting.service.d.ts +22 -0
- package/lib/service/http/generic-http-client.d.ts +121 -0
- package/lib/service/http/igeneric-http-client.d.ts +92 -0
- package/lib/service/logger.service.d.ts +18 -0
- package/lib/service/open-id/TokenHelperService.d.ts +11 -0
- package/lib/service/open-id/auth-guard.service.d.ts +11 -0
- package/lib/service/open-id/auth.service.d.ts +36 -0
- package/package.json +22 -2
- package/public-api.d.ts +34 -0
- package/ng-package.json +0 -7
- package/src/lib/base-control.ts +0 -142
- package/src/lib/base-form-component.ts +0 -363
- package/src/lib/component/auto-complete/auto-complete.component.html +0 -39
- package/src/lib/component/auto-complete/auto-complete.component.scss +0 -0
- package/src/lib/component/auto-complete/auto-complete.component.spec.ts +0 -23
- package/src/lib/component/auto-complete/auto-complete.component.ts +0 -31
- package/src/lib/component/bottom-sheet/bottom-sheet.component.html +0 -9
- package/src/lib/component/bottom-sheet/bottom-sheet.component.scss +0 -0
- package/src/lib/component/bottom-sheet/bottom-sheet.component.spec.ts +0 -23
- package/src/lib/component/bottom-sheet/bottom-sheet.component.ts +0 -19
- package/src/lib/component/button/button.component.css +0 -0
- package/src/lib/component/button/button.component.html +0 -54
- package/src/lib/component/button/button.component.spec.ts +0 -23
- package/src/lib/component/button/button.component.ts +0 -17
- package/src/lib/component/button-toggle/button-toggle.component.html +0 -21
- package/src/lib/component/button-toggle/button-toggle.component.scss +0 -0
- package/src/lib/component/button-toggle/button-toggle.component.spec.ts +0 -23
- package/src/lib/component/button-toggle/button-toggle.component.ts +0 -26
- package/src/lib/component/checkbox/checkbox.component.html +0 -6
- package/src/lib/component/checkbox/checkbox.component.scss +0 -0
- package/src/lib/component/checkbox/checkbox.component.spec.ts +0 -23
- package/src/lib/component/checkbox/checkbox.component.ts +0 -17
- package/src/lib/component/chips/chip.component.html +0 -75
- package/src/lib/component/chips/chip.component.scss +0 -3
- package/src/lib/component/chips/chip.component.spec.ts +0 -23
- package/src/lib/component/chips/chip.component.ts +0 -125
- package/src/lib/component/date-picker/date-picker.component.html +0 -18
- package/src/lib/component/date-picker/date-picker.component.scss +0 -0
- package/src/lib/component/date-picker/date-picker.component.spec.ts +0 -23
- package/src/lib/component/date-picker/date-picker.component.ts +0 -13
- package/src/lib/component/dialog/dialog.component.html +0 -12
- package/src/lib/component/dialog/dialog.component.scss +0 -3
- package/src/lib/component/dialog/dialog.component.spec.ts +0 -23
- package/src/lib/component/dialog/dialog.component.ts +0 -12
- package/src/lib/component/pagination/pagination.component.html +0 -10
- package/src/lib/component/pagination/pagination.component.scss +0 -0
- package/src/lib/component/pagination/pagination.component.spec.ts +0 -23
- package/src/lib/component/pagination/pagination.component.ts +0 -86
- package/src/lib/component/progress-bar/progress-bar.component.html +0 -1
- package/src/lib/component/progress-bar/progress-bar.component.scss +0 -0
- package/src/lib/component/progress-bar/progress-bar.component.spec.ts +0 -23
- package/src/lib/component/progress-bar/progress-bar.component.ts +0 -15
- package/src/lib/component/progress-spinner/progress-spinner.component.html +0 -7
- package/src/lib/component/progress-spinner/progress-spinner.component.scss +0 -0
- package/src/lib/component/progress-spinner/progress-spinner.component.spec.ts +0 -23
- package/src/lib/component/progress-spinner/progress-spinner.component.ts +0 -16
- package/src/lib/component/radio/radio.component.html +0 -13
- package/src/lib/component/radio/radio.component.scss +0 -14
- package/src/lib/component/radio/radio.component.spec.ts +0 -23
- package/src/lib/component/radio/radio.component.ts +0 -29
- package/src/lib/component/rich-text-editor/rich-text-editor.component.html +0 -10
- package/src/lib/component/rich-text-editor/rich-text-editor.component.scss +0 -0
- package/src/lib/component/rich-text-editor/rich-text-editor.component.spec.ts +0 -23
- package/src/lib/component/rich-text-editor/rich-text-editor.component.ts +0 -13
- package/src/lib/component/select/select.component.html +0 -25
- package/src/lib/component/select/select.component.scss +0 -0
- package/src/lib/component/select/select.component.spec.ts +0 -23
- package/src/lib/component/select/select.component.ts +0 -32
- package/src/lib/component/slide-toggle/slide-toggle.component.html +0 -7
- package/src/lib/component/slide-toggle/slide-toggle.component.scss +0 -0
- package/src/lib/component/slide-toggle/slide-toggle.component.spec.ts +0 -23
- package/src/lib/component/slide-toggle/slide-toggle.component.ts +0 -13
- package/src/lib/component/slider/slider.component.html +0 -11
- package/src/lib/component/slider/slider.component.scss +0 -0
- package/src/lib/component/slider/slider.component.spec.ts +0 -23
- package/src/lib/component/slider/slider.component.ts +0 -13
- package/src/lib/component/snack-bar/snack-bar.component.html +0 -1
- package/src/lib/component/snack-bar/snack-bar.component.scss +0 -0
- package/src/lib/component/snack-bar/snack-bar.component.spec.ts +0 -23
- package/src/lib/component/snack-bar/snack-bar.component.ts +0 -10
- package/src/lib/component/table/table.component.html +0 -82
- package/src/lib/component/table/table.component.scss +0 -17
- package/src/lib/component/table/table.component.spec.ts +0 -23
- package/src/lib/component/table/table.component.ts +0 -54
- package/src/lib/component/textarea/textarea.component.html +0 -22
- package/src/lib/component/textarea/textarea.component.scss +0 -3
- package/src/lib/component/textarea/textarea.component.spec.ts +0 -23
- package/src/lib/component/textarea/textarea.component.ts +0 -13
- package/src/lib/component/textbox/textbox.component.html +0 -27
- package/src/lib/component/textbox/textbox.component.scss +0 -3
- package/src/lib/component/textbox/textbox.component.spec.ts +0 -23
- package/src/lib/component/textbox/textbox.component.ts +0 -13
- package/src/lib/control-builder/control-builder.component.html +0 -5
- package/src/lib/control-builder/control-builder.component.scss +0 -0
- package/src/lib/control-builder/control-builder.component.ts +0 -14
- package/src/lib/control-type/AutoComplete.ts +0 -6
- package/src/lib/control-type/Button.ts +0 -6
- package/src/lib/control-type/ButtonToggle.ts +0 -6
- package/src/lib/control-type/CheckBox.ts +0 -6
- package/src/lib/control-type/DatePicker.ts +0 -6
- package/src/lib/control-type/Divider.ts +0 -6
- package/src/lib/control-type/Editor.ts +0 -6
- package/src/lib/control-type/RichTextEditor.ts +0 -6
- package/src/lib/control-type/SlideToggle.ts +0 -6
- package/src/lib/control-type/Slider.ts +0 -6
- package/src/lib/control-type/select.ts +0 -6
- package/src/lib/control-type/textarea.ts +0 -6
- package/src/lib/control-type/textbox.ts +0 -6
- package/src/lib/falcon-core.module.ts +0 -141
- package/src/lib/model/constant.ts +0 -32
- package/src/lib/model/enum.ts +0 -151
- package/src/lib/module/angularmaterial.module.ts +0 -98
- package/src/lib/reactive-field.directive.ts +0 -24
- package/src/lib/service/appsetting.service.ts +0 -57
- package/src/lib/service/http/generic-http-client.ts +0 -205
- package/src/lib/service/http/httpInterceptor.ts +0 -36
- package/src/lib/service/http/igeneric-http-client.ts +0 -110
- package/src/lib/service/logger.service.ts +0 -75
- package/src/lib/service/open-id/TokenHelperService.ts +0 -76
- package/src/lib/service/open-id/auth-guard.service.ts +0 -25
- package/src/lib/service/open-id/auth.service.ts +0 -179
- package/src/public-api.ts +0 -35
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { IRequestOptions } from '../../model/interface';
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AppSettingService } from './appsetting.service';
|
|
2
|
+
import { IAppSettingViewModel } from "../model/interface";
|
|
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>;
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AuthService } from './auth.service';
|
|
2
|
+
import { CanActivate, RouterStateSnapshot, ActivatedRouteSnapshot } from '@angular/router';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AuthGuardService implements CanActivate {
|
|
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
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Profile, User, UserManagerSettings } from 'oidc-client';
|
|
2
|
+
import { LoggerService } from '../logger.service';
|
|
3
|
+
import { TokenHelperService } from './TokenHelperService';
|
|
4
|
+
import { EnvironmentViewModel } from "../../model/environments";
|
|
5
|
+
import { AppSettingService } from "../appsetting.service";
|
|
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
|
+
private 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(): Profile;
|
|
23
|
+
getClaims(): Profile;
|
|
24
|
+
getAuthorizationHeaderValue(): string;
|
|
25
|
+
getAccessToken(): any;
|
|
26
|
+
startAuthentication(returnUrl: string): Promise<void>;
|
|
27
|
+
completeAuthentication(): Promise<Oidc.User>;
|
|
28
|
+
login(): Promise<void>;
|
|
29
|
+
renewToken(): Promise<User>;
|
|
30
|
+
logout(signoutRedirect?: boolean): Promise<void>;
|
|
31
|
+
private getClientSettings;
|
|
32
|
+
isServiceReady(): Promise<boolean>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
34
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
35
|
+
}
|
|
36
|
+
export declare function authServiceFactory(authService: AuthService, appSettings: AppSettingService, environment: EnvironmentViewModel): () => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@falcon-ng/tailwind",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^15.0.0",
|
|
6
6
|
"@angular/core": "^15.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.3.0"
|
|
10
|
-
}
|
|
10
|
+
},
|
|
11
|
+
"module": "fesm2015/falcon-ng-tailwind.mjs",
|
|
12
|
+
"es2020": "fesm2020/falcon-ng-tailwind.mjs",
|
|
13
|
+
"esm2020": "esm2020/falcon-ng-tailwind.mjs",
|
|
14
|
+
"fesm2020": "fesm2020/falcon-ng-tailwind.mjs",
|
|
15
|
+
"fesm2015": "fesm2015/falcon-ng-tailwind.mjs",
|
|
16
|
+
"typings": "index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": {
|
|
19
|
+
"default": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"esm2020": "./esm2020/falcon-ng-tailwind.mjs",
|
|
24
|
+
"es2020": "./fesm2020/falcon-ng-tailwind.mjs",
|
|
25
|
+
"es2015": "./fesm2015/falcon-ng-tailwind.mjs",
|
|
26
|
+
"node": "./fesm2015/falcon-ng-tailwind.mjs",
|
|
27
|
+
"default": "./fesm2020/falcon-ng-tailwind.mjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": false
|
|
11
31
|
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export * from './lib/module/angularmaterial.module';
|
|
2
|
+
export * from './lib/falcon-core.module';
|
|
3
|
+
export * from './lib/reactive-field.directive';
|
|
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/control-type/AutoComplete';
|
|
10
|
+
export * from './lib/control-type/Button';
|
|
11
|
+
export * from './lib/control-type/ButtonToggle';
|
|
12
|
+
export * from './lib/control-type/CheckBox';
|
|
13
|
+
export * from './lib/control-type/Chip';
|
|
14
|
+
export * from './lib/control-type/DatePicker';
|
|
15
|
+
export * from './lib/control-type/Divider';
|
|
16
|
+
export * from './lib/control-type/Editor';
|
|
17
|
+
export * from './lib/control-type/Radio';
|
|
18
|
+
export * from './lib/control-type/RichTextEditor';
|
|
19
|
+
export * from './lib/control-type/select';
|
|
20
|
+
export * from './lib/control-type/Slider';
|
|
21
|
+
export * from './lib/control-type/SlideToggle';
|
|
22
|
+
export * from './lib/control-type/Textarea';
|
|
23
|
+
export * from './lib/control-type/Textbox';
|
|
24
|
+
export * from './lib/model/enum';
|
|
25
|
+
export * from './lib/model/constant';
|
|
26
|
+
export * from './lib/model/environments';
|
|
27
|
+
export * from './lib/model/ivalidator';
|
|
28
|
+
export * from './lib/control-builder/control-builder.component';
|
|
29
|
+
export * from './lib/base-form-component';
|
|
30
|
+
export * from './lib/component/table/table.component';
|
|
31
|
+
export * from './lib/component/pagination/pagination.component';
|
|
32
|
+
export * from './lib/component/progress-bar/progress-bar.component';
|
|
33
|
+
export * from './lib/component/progress-spinner/progress-spinner.component';
|
|
34
|
+
export * from './lib/component/button/button.component';
|
package/ng-package.json
DELETED
package/src/lib/base-control.ts
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import {ControlType} from './model/enum';
|
|
2
|
-
import {IValidator} from './model/ivalidator';
|
|
3
|
-
import {
|
|
4
|
-
FloatLabelType,
|
|
5
|
-
MatFormFieldAppearance,
|
|
6
|
-
} from '@angular/material/form-field';
|
|
7
|
-
import {
|
|
8
|
-
IComponentEvent,
|
|
9
|
-
IMatHint,
|
|
10
|
-
IOptions,
|
|
11
|
-
ISelectOptions, ISliderProperty,
|
|
12
|
-
ISuffixPrefixConfig,
|
|
13
|
-
ITextAreaProperty,
|
|
14
|
-
} from './model/interface';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @description
|
|
18
|
-
* Class use for setting the layout.
|
|
19
|
-
* @usageNotes
|
|
20
|
-
* ```ts
|
|
21
|
-
* new Dropdown({
|
|
22
|
-
* key: 'brave',
|
|
23
|
-
* label: 'Bravery Rating',
|
|
24
|
-
* options: [
|
|
25
|
-
* {key: 'solid', value: 'Solid'},
|
|
26
|
-
* {key: 'great', value: 'Great'},
|
|
27
|
-
* {key: 'good', value: 'Good'},
|
|
28
|
-
* {key: 'unproven', value: 'Unproven'}
|
|
29
|
-
* ],
|
|
30
|
-
* order: 3
|
|
31
|
-
* }),
|
|
32
|
-
** ```
|
|
33
|
-
*/
|
|
34
|
-
export interface Layout<T> {
|
|
35
|
-
class?: string;
|
|
36
|
-
baseControls: BaseControl<T>[];
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @description
|
|
41
|
-
* Class use for setting the control properties.
|
|
42
|
-
* @usageNotes
|
|
43
|
-
* ```ts
|
|
44
|
-
* new Dropdown({
|
|
45
|
-
* formControlName: 'brave',
|
|
46
|
-
* label: 'Bravery Rating',
|
|
47
|
-
* options: [
|
|
48
|
-
* {key: 'solid', value: 'Solid'},
|
|
49
|
-
* {key: 'great', value: 'Great'},
|
|
50
|
-
* {key: 'good', value: 'Good'},
|
|
51
|
-
* {key: 'unproven', value: 'Unproven'}
|
|
52
|
-
* ],
|
|
53
|
-
* order: 3
|
|
54
|
-
* }),
|
|
55
|
-
** ```
|
|
56
|
-
*/
|
|
57
|
-
export class BaseControl<T> {
|
|
58
|
-
value: T | undefined;
|
|
59
|
-
formControlName: string;
|
|
60
|
-
label: string;
|
|
61
|
-
labelPosition: any;
|
|
62
|
-
order: number;
|
|
63
|
-
controlType: ControlType;
|
|
64
|
-
type: string;
|
|
65
|
-
disabled: boolean;
|
|
66
|
-
options: IOptions[] | any;
|
|
67
|
-
validations: IValidator[];
|
|
68
|
-
appearance: MatFormFieldAppearance | any;
|
|
69
|
-
class: string;
|
|
70
|
-
style: { [klass: string]: any };
|
|
71
|
-
placeHolder: string;
|
|
72
|
-
floatLabel: FloatLabelType;
|
|
73
|
-
hint: IMatHint;
|
|
74
|
-
suffix: ISuffixPrefixConfig;
|
|
75
|
-
prefix: ISuffixPrefixConfig;
|
|
76
|
-
textAreaProperty: ITextAreaProperty;
|
|
77
|
-
event: IComponentEvent<T>;
|
|
78
|
-
selectProperty: ISelectOptions;
|
|
79
|
-
color: string;
|
|
80
|
-
sliderProperty: ISliderProperty;
|
|
81
|
-
chipSelectedOptions: IOptions[] | any;
|
|
82
|
-
editorProperty: any;
|
|
83
|
-
formArray: BaseControl<T>[] | undefined;
|
|
84
|
-
constructor(
|
|
85
|
-
options: {
|
|
86
|
-
value?: T;
|
|
87
|
-
formControlName?: string;
|
|
88
|
-
label?: string;
|
|
89
|
-
labelPosition?: any;
|
|
90
|
-
order?: number;
|
|
91
|
-
controlType?: ControlType;
|
|
92
|
-
type?: string;
|
|
93
|
-
disabled?: boolean;
|
|
94
|
-
options?: IOptions[] | any;
|
|
95
|
-
validations?: IValidator[];
|
|
96
|
-
appearance?: MatFormFieldAppearance | any;
|
|
97
|
-
class?: string;
|
|
98
|
-
style?: { [klass: string]: any };
|
|
99
|
-
placeHolder?: string;
|
|
100
|
-
floatLabel?: FloatLabelType;
|
|
101
|
-
hint?: IMatHint;
|
|
102
|
-
suffix?: ISuffixPrefixConfig;
|
|
103
|
-
prefix?: ISuffixPrefixConfig;
|
|
104
|
-
textAreaProperty?: ITextAreaProperty;
|
|
105
|
-
event?: IComponentEvent<T>;
|
|
106
|
-
selectProperty?: ISelectOptions;
|
|
107
|
-
color?: string;
|
|
108
|
-
sliderProperty?: ISliderProperty;
|
|
109
|
-
chipSelectedOptions?: IOptions[] | any;
|
|
110
|
-
editorProperty?: any;
|
|
111
|
-
formArray?: BaseControl<T>[];
|
|
112
|
-
} = {}
|
|
113
|
-
) {
|
|
114
|
-
this.value = options.value;
|
|
115
|
-
this.formControlName = options.formControlName || '';
|
|
116
|
-
this.label = options.label || '';
|
|
117
|
-
this.labelPosition = options.labelPosition || 'before' || 'after';
|
|
118
|
-
this.order = options.order === undefined ? 1 : options.order;
|
|
119
|
-
this.controlType = options.controlType || ControlType.Button;
|
|
120
|
-
this.type = options.type || '';
|
|
121
|
-
this.disabled = options.disabled || false;
|
|
122
|
-
this.options = options.options || [];
|
|
123
|
-
this.validations = options.validations || [];
|
|
124
|
-
this.appearance = options.appearance || 'outline';
|
|
125
|
-
this.class = options.class || '';
|
|
126
|
-
this.style = options.style || {};
|
|
127
|
-
this.placeHolder = options.placeHolder || '';
|
|
128
|
-
this.floatLabel = options.floatLabel || 'auto';
|
|
129
|
-
this.hint = options.hint || ({} as IMatHint);
|
|
130
|
-
this.prefix = options.prefix || ({} as ISuffixPrefixConfig);
|
|
131
|
-
this.suffix = options.suffix || ({} as ISuffixPrefixConfig);
|
|
132
|
-
this.textAreaProperty =
|
|
133
|
-
options.textAreaProperty || ({} as ITextAreaProperty);
|
|
134
|
-
this.event = options.event || {};
|
|
135
|
-
this.selectProperty = options.selectProperty || {};
|
|
136
|
-
this.color = options.color || '';
|
|
137
|
-
this.sliderProperty = options.sliderProperty || {};
|
|
138
|
-
this.chipSelectedOptions = options.chipSelectedOptions || {};
|
|
139
|
-
this.editorProperty = options.editorProperty || {};
|
|
140
|
-
this.formArray = options.formArray || undefined
|
|
141
|
-
}
|
|
142
|
-
}
|