@falcon-ng/tailwind 0.0.15 → 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 +121 -122
- 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
package/index.d.ts
CHANGED
|
@@ -1,5 +1,668 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, EventEmitter, ViewContainerRef, ElementRef, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import * as i25 from '@angular/forms';
|
|
4
|
+
import { FormGroup, FormControl, FormBuilder } from '@angular/forms';
|
|
5
|
+
import * as i23 from '@falcon-ng/core';
|
|
6
|
+
import { BaseControl, IOptions, IDialogData, MatTableConfig, TableAction, IRequestOptions, IAppSettingViewModel } from '@falcon-ng/core';
|
|
7
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
8
|
+
import { MatRadioChange } from '@angular/material/radio';
|
|
9
|
+
import { Observable, Subject } from 'rxjs';
|
|
10
|
+
import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
|
11
|
+
import { MatAutocomplete, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
12
|
+
import { MatChipInputEvent } from '@angular/material/chips';
|
|
13
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
14
|
+
import { MatBottomSheetRef } from '@angular/material/bottom-sheet';
|
|
15
|
+
import { ThemePalette } from '@angular/material/core';
|
|
16
|
+
import { ProgressBarMode } from '@angular/material/progress-bar';
|
|
17
|
+
import { ProgressSpinnerMode } from '@angular/material/progress-spinner';
|
|
18
|
+
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
19
|
+
import { MatSort } from '@angular/material/sort';
|
|
20
|
+
import * as i24 from '@angular/common';
|
|
21
|
+
import * as i26 from '@angular/router';
|
|
22
|
+
import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
23
|
+
import * as i27 from '@kolkov/angular-editor';
|
|
24
|
+
import { HttpClient } from '@angular/common/http';
|
|
25
|
+
import { UserManager, UserManagerSettings, User, UserProfile } from 'oidc-client-ts';
|
|
26
|
+
|
|
27
|
+
declare class TextboxComponent {
|
|
28
|
+
control: BaseControl<string>;
|
|
29
|
+
formGroup: FormGroup;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextboxComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextboxComponent, "falcon-textbox", never, {}, {}, never, never, false, never>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare class TextareaComponent {
|
|
35
|
+
control: BaseControl<string>;
|
|
36
|
+
formGroup: FormGroup;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "falcon-textarea", never, {}, {}, never, never, false, never>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare class SelectComponent implements OnInit {
|
|
42
|
+
control: BaseControl<string>;
|
|
43
|
+
formGroup: FormGroup;
|
|
44
|
+
selectionChange: EventEmitter<MatSelectChange>;
|
|
45
|
+
constructor();
|
|
46
|
+
ngOnInit(): void;
|
|
47
|
+
selectChange($event: any): void;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "falcon-select", never, {}, { "selectionChange": "selectionChange"; }, never, never, false, never>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class ReactiveFieldDirective implements OnInit {
|
|
53
|
+
private viewContainerRef;
|
|
54
|
+
control: BaseControl<string>;
|
|
55
|
+
formGroup: FormGroup;
|
|
56
|
+
private componentRef;
|
|
57
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
58
|
+
ngOnInit(): void;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReactiveFieldDirective, never>;
|
|
60
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ReactiveFieldDirective, "[reactiveField]", never, { "control": { "alias": "control"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, false, never>;
|
|
61
|
+
}
|
|
62
|
+
|
|
1
63
|
/**
|
|
2
|
-
*
|
|
64
|
+
* @description
|
|
65
|
+
* Class use for setting the layout.
|
|
66
|
+
* @usageNotes
|
|
67
|
+
* ```ts
|
|
68
|
+
* new Dropdown({
|
|
69
|
+
* key: 'brave',
|
|
70
|
+
* label: 'Bravery Rating',
|
|
71
|
+
* options: [
|
|
72
|
+
* {key: 'solid', value: 'Solid'},
|
|
73
|
+
* {key: 'great', value: 'Great'},
|
|
74
|
+
* {key: 'good', value: 'Good'},
|
|
75
|
+
* {key: 'unproven', value: 'Unproven'}
|
|
76
|
+
* ],
|
|
77
|
+
* order: 3
|
|
78
|
+
* }),
|
|
79
|
+
** ```
|
|
3
80
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
81
|
+
interface Layout<T> {
|
|
82
|
+
class?: string;
|
|
83
|
+
baseControls: BaseControl<T>[];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare class ControlBuilderComponent {
|
|
87
|
+
layout: Layout<string>;
|
|
88
|
+
formGroup: FormGroup;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ControlBuilderComponent, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ControlBuilderComponent, "control-builder", never, { "layout": { "alias": "layout"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, false, never>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare class DatePickerComponent {
|
|
94
|
+
control: BaseControl<string>;
|
|
95
|
+
formGroup: FormGroup;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
97
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "falcon-date-picker", never, {}, {}, never, never, false, never>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare class CheckboxComponent {
|
|
101
|
+
control: BaseControl<string>;
|
|
102
|
+
formGroup: FormGroup;
|
|
103
|
+
change($event: any): void;
|
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "falcon-checkbox", never, {}, {}, never, never, false, never>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
declare class RadioComponent implements OnInit {
|
|
109
|
+
control: BaseControl<string>;
|
|
110
|
+
formGroup: FormGroup;
|
|
111
|
+
radioGroupChange: EventEmitter<MatRadioChange>;
|
|
112
|
+
ngOnInit(): void;
|
|
113
|
+
radioGroupChangeEvent($event: any): void;
|
|
114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
|
|
115
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "falcon-radio", never, {}, { "radioGroupChange": "radioGroupChange"; }, never, never, false, never>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare class AutoCompleteComponent {
|
|
119
|
+
control: BaseControl<string>;
|
|
120
|
+
formGroup: FormGroup;
|
|
121
|
+
autoCompleteControl: FormControl<any>;
|
|
122
|
+
constructor();
|
|
123
|
+
filteredOptions: Observable<IOptions[]>;
|
|
124
|
+
ngOnInit(): void;
|
|
125
|
+
private _filter;
|
|
126
|
+
optionSelected(value: any): void;
|
|
127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteComponent, never>;
|
|
128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutoCompleteComponent, "falcon-auto-complete", never, {}, {}, never, never, false, never>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
declare class ButtonToggleComponent implements OnInit {
|
|
132
|
+
control: BaseControl<string>;
|
|
133
|
+
formGroup: FormGroup;
|
|
134
|
+
toggleGroupChange: EventEmitter<MatButtonToggleChange>;
|
|
135
|
+
ngOnInit(): void;
|
|
136
|
+
toggleChange($event: any): void;
|
|
137
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonToggleComponent, never>;
|
|
138
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonToggleComponent, "falcon-button-toggle", never, {}, { "toggleGroupChange": "toggleGroupChange"; }, never, never, false, never>;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare class ChipComponent implements OnInit {
|
|
142
|
+
private fb;
|
|
143
|
+
control: BaseControl<any>;
|
|
144
|
+
formGroup: FormGroup;
|
|
145
|
+
readonly separatorKeysCodes: number[];
|
|
146
|
+
selectable: boolean;
|
|
147
|
+
removable: boolean;
|
|
148
|
+
addOnBlur: boolean;
|
|
149
|
+
filteredOptions: Observable<IOptions[]>;
|
|
150
|
+
autoCompleteControl: FormControl<string | null>;
|
|
151
|
+
private items;
|
|
152
|
+
chipAutoCompleteInput: ElementRef<HTMLInputElement>;
|
|
153
|
+
chipTextInput: ElementRef<HTMLInputElement>;
|
|
154
|
+
matAutocomplete: MatAutocomplete;
|
|
155
|
+
constructor(fb: FormBuilder);
|
|
156
|
+
ngOnInit(): void;
|
|
157
|
+
add(event: MatChipInputEvent): void;
|
|
158
|
+
createItem(value: String): FormGroup;
|
|
159
|
+
remove(option: IOptions): void;
|
|
160
|
+
optionSelected(event: MatAutocompleteSelectedEvent): void;
|
|
161
|
+
private _filter;
|
|
162
|
+
drop(event: CdkDragDrop<IOptions[]>): void;
|
|
163
|
+
keyboardEnterEvent(event: any): void;
|
|
164
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipComponent, never>;
|
|
165
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipComponent, "falcon-chip", never, { "control": { "alias": "control"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, false, never>;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
declare class SliderComponent {
|
|
169
|
+
control: BaseControl<string>;
|
|
170
|
+
formGroup: FormGroup;
|
|
171
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
172
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliderComponent, "falcon-slider", never, {}, {}, never, never, false, never>;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
declare class SlideToggleComponent {
|
|
176
|
+
control: BaseControl<string>;
|
|
177
|
+
formGroup: FormGroup;
|
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlideToggleComponent, never>;
|
|
179
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlideToggleComponent, "falcon-slide-toggle", never, {}, {}, never, never, false, never>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
declare class ButtonComponent {
|
|
183
|
+
control: BaseControl<string>;
|
|
184
|
+
formGroup: FormGroup;
|
|
185
|
+
btnClick: EventEmitter<string>;
|
|
186
|
+
childBtnClick(): void;
|
|
187
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
188
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "falcon-button", never, { "control": { "alias": "control"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, { "btnClick": "btnClick"; }, never, never, false, never>;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
declare class DialogComponent {
|
|
192
|
+
data: IDialogData;
|
|
193
|
+
constructor(data: IDialogData);
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
195
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "lib-dialog", never, {}, {}, never, never, false, never>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare class SnackBarComponent {
|
|
199
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarComponent, never>;
|
|
200
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SnackBarComponent, "lib-snack-bar", never, {}, {}, never, never, false, never>;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
declare class BottomSheetComponent {
|
|
204
|
+
private _bottomSheetRef;
|
|
205
|
+
data: any;
|
|
206
|
+
constructor(_bottomSheetRef: MatBottomSheetRef<BottomSheetComponent>, data: any);
|
|
207
|
+
click(event: MouseEvent, item: any): void;
|
|
208
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BottomSheetComponent, never>;
|
|
209
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BottomSheetComponent, "lib-bottom-sheet", never, {}, {}, never, never, false, never>;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
declare class ProgressBarComponent {
|
|
213
|
+
bufferValue: number;
|
|
214
|
+
color: ThemePalette;
|
|
215
|
+
mode: ProgressBarMode;
|
|
216
|
+
value: number;
|
|
217
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
218
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "falcon-progress-bar", never, { "bufferValue": { "alias": "bufferValue"; "required": false; }; "color": { "alias": "color"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
declare class ProgressSpinnerComponent {
|
|
222
|
+
diameter: number;
|
|
223
|
+
color: ThemePalette;
|
|
224
|
+
mode: ProgressSpinnerMode;
|
|
225
|
+
value: number;
|
|
226
|
+
strokeWidth: number;
|
|
227
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressSpinnerComponent, never>;
|
|
228
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressSpinnerComponent, "falcon-progress-spinner", never, { "diameter": { "alias": "diameter"; "required": false; }; "color": { "alias": "color"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; }, {}, never, never, false, never>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare class TableComponent implements OnInit {
|
|
232
|
+
matTableConfig: MatTableConfig;
|
|
233
|
+
paginator: MatPaginator;
|
|
234
|
+
sort: MatSort;
|
|
235
|
+
pageEvent: EventEmitter<PageEvent>;
|
|
236
|
+
displayedColumns: string[];
|
|
237
|
+
tableActionRowEvent: EventEmitter<any>;
|
|
238
|
+
ngOnInit(): void;
|
|
239
|
+
ngAfterViewInit(): void;
|
|
240
|
+
applyFilter(event: Event): void;
|
|
241
|
+
page(e: any): void;
|
|
242
|
+
tableAction($item: any, action: TableAction): void;
|
|
243
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
244
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "falcon-table", never, { "matTableConfig": { "alias": "matTableConfig"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; }, { "pageEvent": "pageEvent"; "tableActionRowEvent": "tableActionRowEvent"; }, never, never, false, never>;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
declare class PaginationComponent {
|
|
248
|
+
totalPage: number;
|
|
249
|
+
pageSize: number;
|
|
250
|
+
paginationEvent: EventEmitter<number>;
|
|
251
|
+
paginationSize: number[];
|
|
252
|
+
preDisable: boolean;
|
|
253
|
+
nextDisable: boolean;
|
|
254
|
+
private start;
|
|
255
|
+
private end;
|
|
256
|
+
currentPage: number;
|
|
257
|
+
firstLoad: boolean;
|
|
258
|
+
constructor();
|
|
259
|
+
ngOnInit(): void;
|
|
260
|
+
receiveBtnChange($event: any): void;
|
|
261
|
+
private range;
|
|
262
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
263
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "falcon-pagination", never, { "totalPage": { "alias": "totalPage"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; }, { "paginationEvent": "paginationEvent"; }, never, never, false, never>;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
declare class RichTextEditorComponent {
|
|
267
|
+
control: BaseControl<string>;
|
|
268
|
+
formGroup: FormGroup;
|
|
269
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RichTextEditorComponent, never>;
|
|
270
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RichTextEditorComponent, "lib-rich-text-editor", never, {}, {}, never, never, false, never>;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
declare class FalconTailwindModule {
|
|
274
|
+
static forRoot(environment: any): ModuleWithProviders<FalconTailwindModule>;
|
|
275
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FalconTailwindModule, never>;
|
|
276
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FalconTailwindModule, [typeof TextboxComponent, typeof TextareaComponent, typeof SelectComponent, typeof ReactiveFieldDirective, typeof ControlBuilderComponent, typeof DatePickerComponent, typeof CheckboxComponent, typeof RadioComponent, typeof AutoCompleteComponent, typeof ButtonToggleComponent, typeof ChipComponent, typeof SliderComponent, typeof SlideToggleComponent, typeof ButtonComponent, typeof DialogComponent, typeof SnackBarComponent, typeof BottomSheetComponent, typeof ProgressBarComponent, typeof ProgressSpinnerComponent, typeof TableComponent, typeof PaginationComponent, typeof RichTextEditorComponent], [typeof i23.AngularmaterialModule, typeof i24.CommonModule, typeof i25.FormsModule, typeof i25.ReactiveFormsModule, typeof i26.RouterModule, typeof i27.AngularEditorModule], [typeof i23.AngularmaterialModule, typeof i24.CommonModule, typeof i25.FormsModule, typeof i25.ReactiveFormsModule, typeof ControlBuilderComponent, typeof i26.RouterModule, typeof ProgressBarComponent, typeof ProgressSpinnerComponent, typeof PaginationComponent, typeof TableComponent, typeof i27.AngularEditorModule, typeof ButtonComponent]>;
|
|
277
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FalconTailwindModule>;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
declare abstract class IGenericHttpClient<T> {
|
|
281
|
+
/**
|
|
282
|
+
* @description
|
|
283
|
+
* Generic Http GET method to Get the response and bind to the view model
|
|
284
|
+
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
285
|
+
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
286
|
+
* @returns {Observable<T>}
|
|
287
|
+
* @usageNotes
|
|
288
|
+
* The following snippet shows how to use this method
|
|
289
|
+
* ```ts
|
|
290
|
+
* this.genericHttpService.HttpGet("get_url").subscribe(data => {
|
|
291
|
+
* console.log('success');
|
|
292
|
+
* }, error => {
|
|
293
|
+
* console.log(error);
|
|
294
|
+
* });
|
|
295
|
+
* ```
|
|
296
|
+
*/
|
|
297
|
+
abstract get(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
298
|
+
/**
|
|
299
|
+
* @description
|
|
300
|
+
* Generic Http post method to post the view model and bind the return view model
|
|
301
|
+
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
302
|
+
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
303
|
+
* @returns {Observable<T>}
|
|
304
|
+
* @usageNotes
|
|
305
|
+
* The following snippet shows how to use this method
|
|
306
|
+
* ```ts
|
|
307
|
+
* this.genericHttpService.Post(post_url,post-view-model").subscribe(data => {
|
|
308
|
+
* console.log('data is not success');
|
|
309
|
+
* }, error => {
|
|
310
|
+
* console.log(error);
|
|
311
|
+
* });
|
|
312
|
+
* ```
|
|
313
|
+
*/
|
|
314
|
+
abstract post(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
315
|
+
/**
|
|
316
|
+
* @description
|
|
317
|
+
* Generic Http put method to post the view model and bind the return view model
|
|
318
|
+
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
319
|
+
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
320
|
+
* @returns {Observable<T>}
|
|
321
|
+
* @usageNotes
|
|
322
|
+
* The following snippet shows how to use this method
|
|
323
|
+
* ```ts
|
|
324
|
+
* this.genericHttpService.Put(put_url,post-view-model).subscribe(data => {
|
|
325
|
+
* console.log('data is not success');
|
|
326
|
+
* }, error => {
|
|
327
|
+
* console.log(error);
|
|
328
|
+
* });
|
|
329
|
+
* ```
|
|
330
|
+
*/
|
|
331
|
+
abstract put(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
332
|
+
/**
|
|
333
|
+
* @description
|
|
334
|
+
* Generic Http patch method to patch the view model and bind the return view model
|
|
335
|
+
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
336
|
+
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
337
|
+
* @returns {Observable<T>}
|
|
338
|
+
* @usageNotes
|
|
339
|
+
* The following snippet shows how to use this method
|
|
340
|
+
* ```ts
|
|
341
|
+
* this.genericHttpService.Patch(put_url,post-view-model).subscribe(data => {
|
|
342
|
+
* console.log('data is not success');
|
|
343
|
+
* }, error => {
|
|
344
|
+
* console.log(error);
|
|
345
|
+
* });
|
|
346
|
+
* ```
|
|
347
|
+
*/
|
|
348
|
+
abstract patch(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
349
|
+
/**
|
|
350
|
+
* @description
|
|
351
|
+
* Generic Http Delete method to Delete the item and bind the return view model
|
|
352
|
+
* @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
|
|
353
|
+
* @param {IRequestOptions} options options of the request like headers, body, etc.
|
|
354
|
+
* @returns {Observable<T>}
|
|
355
|
+
* @usageNotes
|
|
356
|
+
* The following snippet shows how to use this method
|
|
357
|
+
* ```ts
|
|
358
|
+
* this.genericHttpClientService.Delete(this.deleteUserUrl).subscribe(item => {
|
|
359
|
+
* console.log('success');
|
|
360
|
+
* }, error => {
|
|
361
|
+
* console.log(error);
|
|
362
|
+
* });
|
|
363
|
+
* ```
|
|
364
|
+
*/
|
|
365
|
+
abstract delete(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
|
|
366
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IGenericHttpClient<any>, never>;
|
|
367
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IGenericHttpClient<any>>;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
declare class AppSettingService {
|
|
371
|
+
private http;
|
|
372
|
+
private logger;
|
|
373
|
+
static APP_SETTINGS_LOADED: string;
|
|
374
|
+
private listeners;
|
|
375
|
+
initialized: boolean;
|
|
376
|
+
private eventsSubject;
|
|
377
|
+
isServiceReady: Subject<boolean>;
|
|
378
|
+
private events;
|
|
379
|
+
private appSettings;
|
|
380
|
+
constructor(http: HttpClient, logger: LoggerService);
|
|
381
|
+
load(): Promise<void>;
|
|
382
|
+
on(name: any, listener: any): void;
|
|
383
|
+
getAppsettingValue<T>(): T | null;
|
|
384
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppSettingService, never>;
|
|
385
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppSettingService>;
|
|
386
|
+
}
|
|
387
|
+
declare function appSettingsFactory(appSettings: AppSettingService): () => Promise<void>;
|
|
388
|
+
|
|
389
|
+
declare class LoggerService {
|
|
390
|
+
private initialized;
|
|
391
|
+
private _level;
|
|
392
|
+
constructor();
|
|
393
|
+
initialize(appSettings: IAppSettingViewModel): Promise<void>;
|
|
394
|
+
private log;
|
|
395
|
+
private shouldLog;
|
|
396
|
+
error(message: any, ...optionalParams: any[]): void;
|
|
397
|
+
warning(message: any, ...optionalParams: any[]): void;
|
|
398
|
+
info(message: any, ...optionalParams: any[]): void;
|
|
399
|
+
verbose(message: any, ...optionalParams: any[]): void;
|
|
400
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>;
|
|
401
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
|
|
402
|
+
}
|
|
403
|
+
declare function loggerServiceFactory(loggerService: LoggerService, appSettings: AppSettingService): () => Promise<void>;
|
|
404
|
+
|
|
405
|
+
declare class TokenHelperService {
|
|
406
|
+
constructor();
|
|
407
|
+
getTokenExpirationDate(dataIdToken: any): Date;
|
|
408
|
+
getPayloadFromToken(token: any, encode: boolean): any;
|
|
409
|
+
getHeaderFromToken(token: any, encode: boolean): any;
|
|
410
|
+
getSignatureFromToken(token: any, encode: boolean): any;
|
|
411
|
+
urlBase64Decode(str: string): string;
|
|
412
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TokenHelperService, never>;
|
|
413
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TokenHelperService>;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
declare abstract class EnvironmentViewModel {
|
|
417
|
+
abstract readonly production: boolean;
|
|
418
|
+
abstract readonly openID?: IOpenIdViewModel;
|
|
419
|
+
abstract readonly baseUrl?: string;
|
|
420
|
+
abstract readonly snackBarEnable?: boolean;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* @description
|
|
424
|
+
* Interface use for an app setting configuration for Open Id Client setting.
|
|
425
|
+
*/
|
|
426
|
+
declare interface IOpenIdViewModel {
|
|
427
|
+
authority?: string;
|
|
428
|
+
client_id?: string;
|
|
429
|
+
redirect_uri?: string;
|
|
430
|
+
response_type?: string;
|
|
431
|
+
scope?: string;
|
|
432
|
+
silent_redirect_uri?: string;
|
|
433
|
+
post_logout_redirect_uri?: string;
|
|
434
|
+
filterProtocolClaims?: boolean;
|
|
435
|
+
loadUserInfo?: boolean;
|
|
436
|
+
automaticSilentRenew?: boolean;
|
|
437
|
+
monitorSession?: boolean;
|
|
438
|
+
accessTokenExpiringNotificationTime?: number;
|
|
439
|
+
checkSessionInterval?: number;
|
|
440
|
+
silentRequestTimeout?: number;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
declare class AuthService {
|
|
444
|
+
private logger;
|
|
445
|
+
private tokenHelperService;
|
|
446
|
+
static USER_LOADED_EVENT: string;
|
|
447
|
+
static USER_UNLOADED_EVENT: string;
|
|
448
|
+
private initialized;
|
|
449
|
+
userManager: UserManager;
|
|
450
|
+
private user;
|
|
451
|
+
settings: UserManagerSettings;
|
|
452
|
+
private accessToken;
|
|
453
|
+
private signingOut;
|
|
454
|
+
constructor(logger: LoggerService, tokenHelperService: TokenHelperService);
|
|
455
|
+
initialize(environment: EnvironmentViewModel): Promise<void>;
|
|
456
|
+
isLoggedIn(): boolean;
|
|
457
|
+
getUser(): Promise<User | null>;
|
|
458
|
+
getProfile(): UserProfile;
|
|
459
|
+
getClaims(): UserProfile;
|
|
460
|
+
getAuthorizationHeaderValue(): string;
|
|
461
|
+
getAccessToken(): any;
|
|
462
|
+
startAuthentication(returnUrl: string): Promise<void>;
|
|
463
|
+
login(): Promise<void>;
|
|
464
|
+
renewToken(): Promise<User | null>;
|
|
465
|
+
logout(signoutRedirect?: boolean): Promise<void>;
|
|
466
|
+
private getClientSettings;
|
|
467
|
+
isServiceReady(): Promise<boolean>;
|
|
468
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
469
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
470
|
+
}
|
|
471
|
+
declare function authServiceFactory(authService: AuthService, appSettings: AppSettingService, environment: EnvironmentViewModel): () => Promise<void>;
|
|
472
|
+
|
|
473
|
+
declare class AuthGuardService {
|
|
474
|
+
private authService;
|
|
475
|
+
constructor(authService: AuthService);
|
|
476
|
+
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean | Observable<boolean> | Promise<boolean>;
|
|
477
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuardService, never>;
|
|
478
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuardService>;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
declare class Constant {
|
|
482
|
+
static ComponentMapper: {
|
|
483
|
+
textbox: typeof TextboxComponent;
|
|
484
|
+
textarea: typeof TextareaComponent;
|
|
485
|
+
select: typeof SelectComponent;
|
|
486
|
+
datepicker: typeof DatePickerComponent;
|
|
487
|
+
radio: typeof RadioComponent;
|
|
488
|
+
checkbox: typeof CheckboxComponent;
|
|
489
|
+
button: typeof ButtonComponent;
|
|
490
|
+
slideToggle: typeof SlideToggleComponent;
|
|
491
|
+
slider: typeof SliderComponent;
|
|
492
|
+
buttonToggle: typeof ButtonToggleComponent;
|
|
493
|
+
autocomplete: typeof AutoCompleteComponent;
|
|
494
|
+
chip: typeof ChipComponent;
|
|
495
|
+
editor: typeof RichTextEditorComponent;
|
|
496
|
+
divider: typeof RichTextEditorComponent;
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* @description
|
|
502
|
+
* Base form component initialized to create form controls, set validation, submit.
|
|
503
|
+
*
|
|
504
|
+
* @usageNotes
|
|
505
|
+
* The following snippet shows how a component can implement this abstract class to
|
|
506
|
+
* define its own initialization method.
|
|
507
|
+
* ```ts
|
|
508
|
+
* export class InputComponent extends BaseFormComponent<any> implements OnInit {
|
|
509
|
+
* constructor(fb : FormBuilder) {
|
|
510
|
+
* super(fb);
|
|
511
|
+
* this.defineForm();
|
|
512
|
+
* }
|
|
513
|
+
* protected defineForm(): void {
|
|
514
|
+
* }
|
|
515
|
+
* ngOnInit(): void {
|
|
516
|
+
* this.formGroup = this.createControls();
|
|
517
|
+
* }
|
|
518
|
+
* protected submitDatasource(model: any): Observable<any> {
|
|
519
|
+
* return of(model);
|
|
520
|
+
* }
|
|
521
|
+
* ```
|
|
522
|
+
*/
|
|
523
|
+
declare abstract class BaseFormComponent<T> {
|
|
524
|
+
formGroup: FormGroup;
|
|
525
|
+
protected abstract defineForm(): void;
|
|
526
|
+
protected abstract submitDataSource(model: T): Observable<T>;
|
|
527
|
+
dataSource: T | undefined;
|
|
528
|
+
controlsConfig: Layout<T>;
|
|
529
|
+
showLoading: boolean;
|
|
530
|
+
protected fb: FormBuilder;
|
|
531
|
+
constructor();
|
|
532
|
+
/**
|
|
533
|
+
* @description
|
|
534
|
+
* Method evoke on when the form is submitted.
|
|
535
|
+
* @returns submitDatasource() method with form data if valid otherwise form invalid.
|
|
536
|
+
*/
|
|
537
|
+
onSubmit(): void;
|
|
538
|
+
/**
|
|
539
|
+
* @description
|
|
540
|
+
* Private method to validate all form controls before is form submited.
|
|
541
|
+
* @param formGroup Validate form group.
|
|
542
|
+
* @returns Groups of controls added to the form builder.
|
|
543
|
+
*/
|
|
544
|
+
private validateAllFormFields;
|
|
545
|
+
/**
|
|
546
|
+
* @description
|
|
547
|
+
* Create the reactive form controls
|
|
548
|
+
* @returns Groups of controls added to the form builder.
|
|
549
|
+
*/
|
|
550
|
+
protected createControls(): FormGroup<{}>;
|
|
551
|
+
/**
|
|
552
|
+
* @description
|
|
553
|
+
* Private method to bind the form control.
|
|
554
|
+
* @param controlConfig field to bind.
|
|
555
|
+
* @param group group to add.
|
|
556
|
+
* @param index index of the layout
|
|
557
|
+
*/
|
|
558
|
+
private bindControl;
|
|
559
|
+
/**
|
|
560
|
+
* @description
|
|
561
|
+
* Private method to bind the validation to the form controls on form submit.
|
|
562
|
+
* @param validations Push the validation to the controls.
|
|
563
|
+
* @returns Validation.
|
|
564
|
+
*/
|
|
565
|
+
private bindValidations;
|
|
566
|
+
/**
|
|
567
|
+
* Create an form array element
|
|
568
|
+
* @param layoutConfig layout of form array
|
|
569
|
+
* @returns Form array group
|
|
570
|
+
*/
|
|
571
|
+
private createFormArrayGroup;
|
|
572
|
+
/**
|
|
573
|
+
* @description
|
|
574
|
+
* Reset fild values to default or specify some value.
|
|
575
|
+
* @param defaultValues Specify the specific value to set to the controls.
|
|
576
|
+
* @returns void.
|
|
577
|
+
*/
|
|
578
|
+
reset(defaultValues?: any): void;
|
|
579
|
+
/**
|
|
580
|
+
* @description
|
|
581
|
+
* Reset specific fild Errors.
|
|
582
|
+
* @param name Name of the field to reset the error.
|
|
583
|
+
* @returns void.
|
|
584
|
+
*/
|
|
585
|
+
resetFieldErrors(name: string): void;
|
|
586
|
+
/**
|
|
587
|
+
* @description
|
|
588
|
+
* Get the controls value from the form.
|
|
589
|
+
* @returns Form controls values.
|
|
590
|
+
*/
|
|
591
|
+
get value(): any;
|
|
592
|
+
/**
|
|
593
|
+
* @description
|
|
594
|
+
* Updating parts of the data model.
|
|
595
|
+
* Use the patchValue() method to replace any properties defined in the object that have changed in the form model.
|
|
596
|
+
* @returns Form controls values.
|
|
597
|
+
* @param value The object that matches the structure of the group.
|
|
598
|
+
* @param options Configuration options that determine how the control propagates changes and
|
|
599
|
+
* emits events after the value is patched.
|
|
600
|
+
* `onlySelf`: When true, each change only affects this control and not its parent. Default is
|
|
601
|
+
* true.
|
|
602
|
+
* `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
|
|
603
|
+
* `valueChanges`
|
|
604
|
+
* @usageNotes
|
|
605
|
+
* The following snippet shows how a component can implement this abstract class to
|
|
606
|
+
* define its own initialization method.
|
|
607
|
+
* ```ts
|
|
608
|
+
* this.formGroup.patchValue({
|
|
609
|
+
* name: 'Todd Motto',
|
|
610
|
+
* event: {
|
|
611
|
+
* title: 'AngularCamp 2016',
|
|
612
|
+
* location: 'Barcelona, Spain'
|
|
613
|
+
* }
|
|
614
|
+
* });
|
|
615
|
+
* ```
|
|
616
|
+
*/
|
|
617
|
+
protected patchValue(value: {
|
|
618
|
+
[key: string]: any;
|
|
619
|
+
}, options?: {
|
|
620
|
+
onlySelf?: boolean;
|
|
621
|
+
emitEvent?: boolean;
|
|
622
|
+
}): void;
|
|
623
|
+
/**
|
|
624
|
+
* @description
|
|
625
|
+
* Updating parts of the data model.
|
|
626
|
+
* Use the setValue() method to set a new value for an individual control. The setValue() method strictly adheres to the structure of the form group and replaces the entire value for the control.
|
|
627
|
+
* @returns Form controls values.
|
|
628
|
+
* @param value The object that matches the structure of the group.
|
|
629
|
+
* @param options Configuration options that determine how the control propagates changes and
|
|
630
|
+
* emits events after the value is patched.
|
|
631
|
+
* `onlySelf`: When true, each change only affects this control and not its parent. Default is
|
|
632
|
+
* true.
|
|
633
|
+
* `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
|
|
634
|
+
* `valueChanges`
|
|
635
|
+
* @usageNotes
|
|
636
|
+
* The following snippet shows how a component can implement this abstract class to
|
|
637
|
+
* define its own initialization method.
|
|
638
|
+
* ```ts
|
|
639
|
+
* this.formGroup.setValue({
|
|
640
|
+
* name: 'Todd Motto',
|
|
641
|
+
* event: {
|
|
642
|
+
* title: 'AngularCamp 2016',
|
|
643
|
+
* location: 'Barcelona, Spain'
|
|
644
|
+
* }
|
|
645
|
+
* });
|
|
646
|
+
* ```
|
|
647
|
+
*/
|
|
648
|
+
protected setValue(value: {
|
|
649
|
+
[key: string]: any;
|
|
650
|
+
}, options?: {
|
|
651
|
+
onlySelf?: boolean;
|
|
652
|
+
emitEvent?: boolean;
|
|
653
|
+
}): void;
|
|
654
|
+
/**
|
|
655
|
+
* @description
|
|
656
|
+
* Dynamically remove the form control.
|
|
657
|
+
* @param index Index of item.
|
|
658
|
+
* @usageNotes
|
|
659
|
+
* The following snippet shows how to remove the form control from Froup Group
|
|
660
|
+
* ```ts
|
|
661
|
+
* removeControl(1);
|
|
662
|
+
* ```
|
|
663
|
+
*/
|
|
664
|
+
protected removeControl(layoutIndex: number, index: number): void;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
export { AppSettingService, AuthGuardService, AuthService, BaseFormComponent, ButtonComponent, Constant, ControlBuilderComponent, DialogComponent, EnvironmentViewModel, FalconTailwindModule, IGenericHttpClient, LoggerService, PaginationComponent, ProgressBarComponent, ProgressSpinnerComponent, ReactiveFieldDirective, TableComponent, appSettingsFactory, authServiceFactory, loggerServiceFactory };
|
|
668
|
+
export type { IOpenIdViewModel, Layout };
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@falcon-ng/tailwind",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
5
|
+
"@angular/common": "^20.0.5",
|
|
6
|
+
"@angular/core": "^20.0.5"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.3.0"
|