@falcon-ng/core 0.0.27 → 0.0.28
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-core-datepicker.component-CPsDyBhC.mjs → falcon-ng-core-datepicker.component-R3QbVwh9.mjs} +5 -5
- package/fesm2022/{falcon-ng-core-datepicker.component-CPsDyBhC.mjs.map → falcon-ng-core-datepicker.component-R3QbVwh9.mjs.map} +1 -1
- package/fesm2022/{falcon-ng-core-falcon-ng-core-Bi8UTq2i.mjs → falcon-ng-core-falcon-ng-core-NF6Np0dr.mjs} +61 -61
- package/fesm2022/{falcon-ng-core-falcon-ng-core-Bi8UTq2i.mjs.map → falcon-ng-core-falcon-ng-core-NF6Np0dr.mjs.map} +1 -1
- package/fesm2022/{falcon-ng-core-textarea.component-BA3CQ4Sm.mjs → falcon-ng-core-textarea.component-DWO3hiq2.mjs} +5 -5
- package/fesm2022/{falcon-ng-core-textarea.component-BA3CQ4Sm.mjs.map → falcon-ng-core-textarea.component-DWO3hiq2.mjs.map} +1 -1
- package/fesm2022/{falcon-ng-core-textbox.component-D4cexFb4.mjs → falcon-ng-core-textbox.component-Cc4_KuFY.mjs} +5 -5
- package/fesm2022/{falcon-ng-core-textbox.component-D4cexFb4.mjs.map → falcon-ng-core-textbox.component-Cc4_KuFY.mjs.map} +1 -1
- package/fesm2022/falcon-ng-core.mjs +1 -1
- package/index.d.ts +735 -3
- package/package.json +3 -3
- package/lib/falcon-core/angularmaterial.module.d.ts +0 -49
- package/lib/falcon-core/component/button/button.component.d.ts +0 -14
- package/lib/falcon-core/component/card/card.component.d.ts +0 -7
- package/lib/falcon-core/component/datepicker/datepicker.component.d.ts +0 -6
- package/lib/falcon-core/component/select/select.component.d.ts +0 -8
- package/lib/falcon-core/component/textarea/textarea.component.d.ts +0 -6
- package/lib/falcon-core/component/textbox/textbox.component.d.ts +0 -6
- package/lib/falcon-core/component/validation-error/error-message.pipe.d.ts +0 -8
- package/lib/falcon-core/component/validation-error/error-state-matcher.service.d.ts +0 -8
- package/lib/falcon-core/component/validation-error/validation-error-message-token.d.ts +0 -7
- package/lib/falcon-core/component/validation-error/validation-error.component.d.ts +0 -9
- package/lib/falcon-core/component/validation-error/validation-message-container.directive.d.ts +0 -7
- package/lib/falcon-core/component/validation-error/validation-message.directive.d.ts +0 -18
- package/lib/falcon-core/component-resolver.d.ts +0 -14
- package/lib/falcon-core/control-builder/base-control-builder.d.ts +0 -18
- package/lib/falcon-core/control-builder/control-builder.component.d.ts +0 -13
- package/lib/falcon-core/control-builder/control-data-builder.d.ts +0 -7
- package/lib/falcon-core/control-builder/control-injection.pipe.d.ts +0 -9
- package/lib/falcon-core/control-type/AutoComplete.d.ts +0 -5
- package/lib/falcon-core/control-type/Button.d.ts +0 -5
- package/lib/falcon-core/control-type/ButtonToggle.d.ts +0 -5
- package/lib/falcon-core/control-type/CheckBox.d.ts +0 -5
- package/lib/falcon-core/control-type/Chip.d.ts +0 -5
- package/lib/falcon-core/control-type/DatePicker.d.ts +0 -5
- package/lib/falcon-core/control-type/Divider.d.ts +0 -5
- package/lib/falcon-core/control-type/Editor.d.ts +0 -5
- package/lib/falcon-core/control-type/Radio.d.ts +0 -5
- package/lib/falcon-core/control-type/RichTextEditor.d.ts +0 -5
- package/lib/falcon-core/control-type/Select.d.ts +0 -5
- package/lib/falcon-core/control-type/SlideToggle.d.ts +0 -5
- package/lib/falcon-core/control-type/Slider.d.ts +0 -5
- package/lib/falcon-core/control-type/Textarea.d.ts +0 -5
- package/lib/falcon-core/control-type/Textbox.d.ts +0 -5
- package/lib/falcon-core/falcon-core.module.d.ts +0 -12
- package/lib/falcon-core/model/base-control.d.ts +0 -83
- package/lib/falcon-core/model/enum.d.ts +0 -144
- package/lib/falcon-core/model/interface.d.ts +0 -299
- package/lib/falcon-core/model/ivalidator.d.ts +0 -19
- package/public-api.d.ts +0 -25
package/index.d.ts
CHANGED
|
@@ -1,5 +1,737 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Type, EventEmitter, AfterContentChecked, ChangeDetectorRef, OnDestroy, PipeTransform, Injector, OnInit } from '@angular/core';
|
|
3
|
+
import * as rxjs from 'rxjs';
|
|
4
|
+
import { ValidatorFn, FormGroup } from '@angular/forms';
|
|
5
|
+
import { MatFormFieldAppearance, FloatLabelType } from '@angular/material/form-field';
|
|
6
|
+
import * as i25 from '@angular/material/core';
|
|
7
|
+
import { ThemePalette } from '@angular/material/core';
|
|
8
|
+
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
9
|
+
import * as i1 from '@angular/cdk/a11y';
|
|
10
|
+
import * as i2 from '@angular/cdk/clipboard';
|
|
11
|
+
import * as i3 from '@angular/cdk/stepper';
|
|
12
|
+
import * as i4 from '@angular/cdk/table';
|
|
13
|
+
import * as i5 from '@angular/cdk/tree';
|
|
14
|
+
import * as i6 from '@angular/cdk/drag-drop';
|
|
15
|
+
import * as i7 from '@angular/material/autocomplete';
|
|
16
|
+
import * as i8 from '@angular/material/badge';
|
|
17
|
+
import * as i9 from '@angular/material/bottom-sheet';
|
|
18
|
+
import * as i10 from '@angular/material/button';
|
|
19
|
+
import * as i11 from '@angular/material/button-toggle';
|
|
20
|
+
import * as i12 from '@angular/material/card';
|
|
21
|
+
import * as i13 from '@angular/material/checkbox';
|
|
22
|
+
import * as i14 from '@angular/material/chips';
|
|
23
|
+
import * as i15 from '@angular/material/stepper';
|
|
24
|
+
import * as i16 from '@angular/material/datepicker';
|
|
25
|
+
import * as i17 from '@angular/material/dialog';
|
|
26
|
+
import * as i18 from '@angular/material/divider';
|
|
27
|
+
import * as i19 from '@angular/material/expansion';
|
|
28
|
+
import * as i20 from '@angular/material/grid-list';
|
|
29
|
+
import * as i21 from '@angular/material/icon';
|
|
30
|
+
import * as i22 from '@angular/material/input';
|
|
31
|
+
import * as i23 from '@angular/material/list';
|
|
32
|
+
import * as i24 from '@angular/material/menu';
|
|
33
|
+
import * as i26 from '@angular/material/paginator';
|
|
34
|
+
import * as i27 from '@angular/material/progress-bar';
|
|
35
|
+
import * as i28 from '@angular/material/progress-spinner';
|
|
36
|
+
import * as i29 from '@angular/material/radio';
|
|
37
|
+
import * as i30 from '@angular/material/select';
|
|
38
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
39
|
+
import * as i31 from '@angular/material/sidenav';
|
|
40
|
+
import * as i32 from '@angular/material/slider';
|
|
41
|
+
import * as i33 from '@angular/material/slide-toggle';
|
|
42
|
+
import * as i34 from '@angular/material/snack-bar';
|
|
43
|
+
import * as i35 from '@angular/material/sort';
|
|
44
|
+
import * as i36 from '@angular/material/table';
|
|
45
|
+
import * as i37 from '@angular/material/tabs';
|
|
46
|
+
import * as i38 from '@angular/material/toolbar';
|
|
47
|
+
import * as i39 from '@angular/material/tooltip';
|
|
48
|
+
import * as i40 from '@angular/material/tree';
|
|
49
|
+
import * as i41 from '@angular/cdk/overlay';
|
|
50
|
+
import * as i42 from '@angular/cdk/portal';
|
|
51
|
+
import * as i43 from '@angular/cdk/scrolling';
|
|
52
|
+
import * as i5$1 from '@angular/common';
|
|
53
|
+
|
|
1
54
|
/**
|
|
2
|
-
*
|
|
55
|
+
* @description
|
|
56
|
+
* Enum use for setting the form control Types.
|
|
57
|
+
* @usageNotes
|
|
58
|
+
* ```ts
|
|
59
|
+
* export class Textbox extends BaseControl<string>{
|
|
60
|
+
* override controlType = ControlType.Select;
|
|
61
|
+
* }
|
|
62
|
+
* ```
|
|
3
63
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
64
|
+
declare const enum Control {
|
|
65
|
+
TextBox = "textbox",
|
|
66
|
+
TextArea = "textarea",
|
|
67
|
+
Select = "select",
|
|
68
|
+
DatePicker = "datepicker",
|
|
69
|
+
Radio = "radio",
|
|
70
|
+
Checkbox = "checkbox",
|
|
71
|
+
Button = "button",
|
|
72
|
+
SlideToggle = "slideToggle",
|
|
73
|
+
Slider = "slider",
|
|
74
|
+
ButtonToggle = "buttonToggle",
|
|
75
|
+
AutoComplete = "autocomplete",
|
|
76
|
+
Chip = "chip",
|
|
77
|
+
Editor = "editor",
|
|
78
|
+
Divider = "divider"
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @description
|
|
82
|
+
* Enum use for Appearance of the control.
|
|
83
|
+
* @usageNotes
|
|
84
|
+
* Before and After property should be only use for Checkbox and Radio button
|
|
85
|
+
* ```ts
|
|
86
|
+
* if (componentType == ComponentType.Radio && componentType == ComponentType.Checkbox) THEN
|
|
87
|
+
* only use Appearance Before and After
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
declare const enum Appearance {
|
|
91
|
+
/**
|
|
92
|
+
* @usageNotes Should be only use for input, textbox, and select
|
|
93
|
+
*/
|
|
94
|
+
Plain = "plain",
|
|
95
|
+
Legacy = "legacy",
|
|
96
|
+
Standard = "standard",
|
|
97
|
+
Fill = "fill",
|
|
98
|
+
Outline = "outline",
|
|
99
|
+
/**
|
|
100
|
+
* @usageNotes Should be only use for label position
|
|
101
|
+
*/
|
|
102
|
+
Before = "before",
|
|
103
|
+
After = "after",
|
|
104
|
+
/**
|
|
105
|
+
* @usageNotes Should be only use for select
|
|
106
|
+
*/
|
|
107
|
+
Multiple = "true",
|
|
108
|
+
/**
|
|
109
|
+
* @usageNotes Should be only use for Buttom
|
|
110
|
+
*/
|
|
111
|
+
Basic = 0,
|
|
112
|
+
Raised = 1,
|
|
113
|
+
Stroked = 2,
|
|
114
|
+
Flat = 3,
|
|
115
|
+
Icon = 4,
|
|
116
|
+
FAB = 5,
|
|
117
|
+
MiniFAB = 6,
|
|
118
|
+
routeLink = 7,
|
|
119
|
+
routeHref = 8
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* @description
|
|
123
|
+
* Enum use for setting the attribute Types.
|
|
124
|
+
* @usageNotes
|
|
125
|
+
* ```ts
|
|
126
|
+
* componentProperty: {
|
|
127
|
+
* attrType: InputTypes.Text
|
|
128
|
+
* }
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
declare const enum InputTypes {
|
|
132
|
+
Color = "color",
|
|
133
|
+
Date = "date",
|
|
134
|
+
DatetimeLocal = "datetime-local",
|
|
135
|
+
Email = "email",
|
|
136
|
+
Month = "month",
|
|
137
|
+
Number = "number",
|
|
138
|
+
Password = "password",
|
|
139
|
+
Search = "search",
|
|
140
|
+
Tel = "tel",
|
|
141
|
+
Text = "text",
|
|
142
|
+
Time = "time",
|
|
143
|
+
Url = "url",
|
|
144
|
+
Week = "week",
|
|
145
|
+
/**
|
|
146
|
+
* @usageNotes Should be only use for Buttom
|
|
147
|
+
*/
|
|
148
|
+
Button = "button",
|
|
149
|
+
Submit = "submit",
|
|
150
|
+
DragDrop = "dragDrop"
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @description
|
|
154
|
+
* Enum use for setting HTTP method.
|
|
155
|
+
* @usageNotes
|
|
156
|
+
* ```ts
|
|
157
|
+
* this.genericHttpClientService.Delete(this.deleteUserUrl).subscribe(item => {}, error => {});
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
declare const enum HttpMethod {
|
|
161
|
+
Get = "GET",
|
|
162
|
+
Post = "POST",
|
|
163
|
+
Put = "PUT",
|
|
164
|
+
Patch = "PATCH",
|
|
165
|
+
Delete = "DELETE"
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* @description
|
|
169
|
+
* Enum use for Table actions
|
|
170
|
+
*/
|
|
171
|
+
declare const enum TableAction {
|
|
172
|
+
View = 0,
|
|
173
|
+
Edit = 1,
|
|
174
|
+
Delete = 2,
|
|
175
|
+
RightArrow = 3
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @description
|
|
179
|
+
* Enum use for setting the Floating label.
|
|
180
|
+
* @usageNotes
|
|
181
|
+
* ```ts
|
|
182
|
+
* componentProperty: {
|
|
183
|
+
* floatLabel: Floatinglabel.Always
|
|
184
|
+
* }
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
declare const enum Floatinglabel {
|
|
188
|
+
Auto = "auto",
|
|
189
|
+
Always = "always"
|
|
190
|
+
}
|
|
191
|
+
declare const enum LoggingLevel {
|
|
192
|
+
None = "None",
|
|
193
|
+
Verbose = "Verbose",
|
|
194
|
+
Info = "Info",
|
|
195
|
+
Warnings = "Warnings",
|
|
196
|
+
Errors = "Errors"
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
type DynamicControlMap = {
|
|
200
|
+
[T in Control]: () => Promise<Type<any>>;
|
|
201
|
+
};
|
|
202
|
+
declare class ComponentResolver {
|
|
203
|
+
private loadedControlCompoments;
|
|
204
|
+
private lazyControlComponents;
|
|
205
|
+
resolver(controlType: keyof DynamicControlMap): rxjs.Observable<Type<any>>;
|
|
206
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentResolver, never>;
|
|
207
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ComponentResolver>;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* @description
|
|
212
|
+
* Interface use for validation config.
|
|
213
|
+
* @usageNotes
|
|
214
|
+
* ```ts
|
|
215
|
+
* validations: [
|
|
216
|
+
* {
|
|
217
|
+
* name: "required",
|
|
218
|
+
* validator: Validators.required,
|
|
219
|
+
* message: "Required Field"
|
|
220
|
+
* }]
|
|
221
|
+
* ```
|
|
222
|
+
*/
|
|
223
|
+
declare interface IValidator {
|
|
224
|
+
name?: string;
|
|
225
|
+
validator: ValidatorFn;
|
|
226
|
+
message?: string;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @description
|
|
231
|
+
* Interface use for IRequestOptions.
|
|
232
|
+
* @usageNotes
|
|
233
|
+
* ```ts
|
|
234
|
+
* {
|
|
235
|
+
* headers : "application/json",
|
|
236
|
+
* observe : "body",
|
|
237
|
+
* params : {},
|
|
238
|
+
* reportProgress : true,
|
|
239
|
+
* responseType : "application/json",
|
|
240
|
+
* withCredentials : true,
|
|
241
|
+
* body : {"username" : "test@test.com", "password": "xxxxxx"},
|
|
242
|
+
* }
|
|
243
|
+
* ```
|
|
244
|
+
*/
|
|
245
|
+
declare interface IRequestOptions {
|
|
246
|
+
headers?: HttpHeaders | {
|
|
247
|
+
[header: string]: string | string[];
|
|
248
|
+
};
|
|
249
|
+
observe?: 'body' | 'events' | 'response';
|
|
250
|
+
params?: HttpParams | {
|
|
251
|
+
[param: string]: string | string[];
|
|
252
|
+
};
|
|
253
|
+
reportProgress?: boolean;
|
|
254
|
+
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
255
|
+
withCredentials?: boolean;
|
|
256
|
+
body?: any;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* @description
|
|
260
|
+
* Interface use for mat table configuration.
|
|
261
|
+
* @usageNotes
|
|
262
|
+
* ```ts
|
|
263
|
+
* {
|
|
264
|
+
* columns : MatTable[] = [{
|
|
265
|
+
* columnDef: 'position',
|
|
266
|
+
* header: 'No.',
|
|
267
|
+
* cell: (element: any) => `${element.position}`
|
|
268
|
+
* }, filter : true,
|
|
269
|
+
* pagination : true
|
|
270
|
+
* ]}
|
|
271
|
+
* ```
|
|
272
|
+
*/
|
|
273
|
+
declare interface MatTableConfig {
|
|
274
|
+
columns?: MatTable[];
|
|
275
|
+
dataSource?: any;
|
|
276
|
+
filter?: boolean;
|
|
277
|
+
paginationConfig?: MatTablePaginationConfig;
|
|
278
|
+
progressBar?: boolean;
|
|
279
|
+
action?: ITableAction;
|
|
280
|
+
property?: IMatTableStyle;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* @description
|
|
284
|
+
* Interface use for mat table style
|
|
285
|
+
*/
|
|
286
|
+
declare interface IMatTableStyle {
|
|
287
|
+
css?: string;
|
|
288
|
+
style?: string;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* @description
|
|
292
|
+
* Interface use for mat table pagination configuration.
|
|
293
|
+
*/
|
|
294
|
+
declare interface MatTablePaginationConfig {
|
|
295
|
+
pagination?: boolean;
|
|
296
|
+
pageSizeOptions?: number[];
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* @description
|
|
300
|
+
* Interface use for mat table action button configuration.
|
|
301
|
+
* view - action for view only
|
|
302
|
+
* edit - action for edit the row
|
|
303
|
+
* delete - action for delete the row
|
|
304
|
+
* menu - context menu for more action
|
|
305
|
+
*/
|
|
306
|
+
declare interface ITableAction {
|
|
307
|
+
view?: boolean;
|
|
308
|
+
edit?: boolean;
|
|
309
|
+
delete?: boolean;
|
|
310
|
+
arrowRight?: boolean;
|
|
311
|
+
isMenu: boolean;
|
|
312
|
+
menu?: IMatHint[];
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* @description
|
|
316
|
+
* Interface use for material hint component.
|
|
317
|
+
*/
|
|
318
|
+
declare interface IMatHint {
|
|
319
|
+
isIcon: boolean;
|
|
320
|
+
icon?: IIcon;
|
|
321
|
+
text?: string;
|
|
322
|
+
link?: IRouteLink;
|
|
323
|
+
disabled?: boolean;
|
|
324
|
+
show?: boolean;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* @description
|
|
328
|
+
* Interface for icons
|
|
329
|
+
*/
|
|
330
|
+
declare interface IIcon {
|
|
331
|
+
iconText?: string;
|
|
332
|
+
iconColor?: string;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* @description
|
|
336
|
+
* Interface for routerLink
|
|
337
|
+
*/
|
|
338
|
+
declare interface IRouteLink {
|
|
339
|
+
routerLink: string | any;
|
|
340
|
+
queryParams?: string;
|
|
341
|
+
isLink?: boolean;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* @description
|
|
345
|
+
* Interface for Dialog Data
|
|
346
|
+
*/
|
|
347
|
+
declare interface IDialogData {
|
|
348
|
+
title: string;
|
|
349
|
+
cancelBtnText: string;
|
|
350
|
+
mainbtnText?: string;
|
|
351
|
+
bodyMessage?: string;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* @description
|
|
355
|
+
* Interface use for setting the suffix and prefix.
|
|
356
|
+
* @usageNotes
|
|
357
|
+
* ```ts
|
|
358
|
+
* new Textbox({
|
|
359
|
+
* label: "Prefix & Suffix icon",
|
|
360
|
+
* appearance: Appearance.Outline,
|
|
361
|
+
* placeHolder: "Prefix & Suffix icon",
|
|
362
|
+
* attrType: InputTypes.Text,
|
|
363
|
+
* prefix : {
|
|
364
|
+
* isIcon : true,
|
|
365
|
+
* text : "euro"
|
|
366
|
+
* },
|
|
367
|
+
* suffix : {
|
|
368
|
+
* isIcon: true,
|
|
369
|
+
* text : "done"
|
|
370
|
+
* }
|
|
371
|
+
* });
|
|
372
|
+
* ```
|
|
373
|
+
*/
|
|
374
|
+
declare interface ISuffixPrefixConfig {
|
|
375
|
+
isIcon?: boolean;
|
|
376
|
+
text?: string;
|
|
377
|
+
toolTipText?: string;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* @description
|
|
381
|
+
* Interface use for an app setting configuration.
|
|
382
|
+
*/
|
|
383
|
+
declare interface IAppSettingViewModel {
|
|
384
|
+
baseUrl?: string;
|
|
385
|
+
loggingLevel?: LoggingLevel;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* View model for snack bar Message and Action Text
|
|
389
|
+
*/
|
|
390
|
+
interface SnackbarModel {
|
|
391
|
+
messageText: string;
|
|
392
|
+
actionText: string;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* @description
|
|
396
|
+
* Interface use for setting the TextArea Property.
|
|
397
|
+
* @usageNotes
|
|
398
|
+
* ```ts
|
|
399
|
+
* componentProperty: {
|
|
400
|
+
* textAreaProperty : {
|
|
401
|
+
* cdkTextareaAutosize : true,
|
|
402
|
+
* cdkAutosizeMinRows : 1,
|
|
403
|
+
* cdkAutosizeMaxRows : 2,
|
|
404
|
+
* rows : 2,
|
|
405
|
+
* cols : 2
|
|
406
|
+
* }
|
|
407
|
+
* }
|
|
408
|
+
* ```
|
|
409
|
+
*/
|
|
410
|
+
declare interface ITextAreaProperty {
|
|
411
|
+
cdkTextareaAutosize?: boolean;
|
|
412
|
+
cdkAutosizeMinRows?: number;
|
|
413
|
+
cdkAutosizeMaxRows?: number;
|
|
414
|
+
rows?: number;
|
|
415
|
+
cols?: number;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* @description
|
|
419
|
+
* Interface use for setting the options meta for select control.
|
|
420
|
+
* @usageNotes
|
|
421
|
+
* ```ts
|
|
422
|
+
* componentProperty: {
|
|
423
|
+
* selectProperty: {multiple : true};
|
|
424
|
+
* }
|
|
425
|
+
* ```
|
|
426
|
+
*/
|
|
427
|
+
declare interface ISelectOptions {
|
|
428
|
+
single?: boolean;
|
|
429
|
+
multiple?: boolean;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* @description
|
|
433
|
+
* Interface use for setting the options meta.
|
|
434
|
+
* Disable is used for select option values
|
|
435
|
+
* @usageNotes
|
|
436
|
+
* ```ts
|
|
437
|
+
* componentProperty: {
|
|
438
|
+
* options: [{key : 'key-1', value : 'value-1', icon: 'material_icon', disabled: true}];
|
|
439
|
+
* }
|
|
440
|
+
* ```
|
|
441
|
+
*/
|
|
442
|
+
declare interface IOptions {
|
|
443
|
+
key?: any;
|
|
444
|
+
value?: any;
|
|
445
|
+
icon?: string;
|
|
446
|
+
class?: string;
|
|
447
|
+
disabled?: boolean;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* @description
|
|
451
|
+
* @param change change event for the control
|
|
452
|
+
* @param click click event for the control
|
|
453
|
+
* Events for controls
|
|
454
|
+
*/
|
|
455
|
+
declare interface IComponentEvent<T> {
|
|
456
|
+
change?: EventEmitter<T>;
|
|
457
|
+
click?: EventEmitter<T>;
|
|
458
|
+
keyboardEnter?: EventEmitter<T>;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* @description
|
|
462
|
+
* Interface use for setting the Mat Slider Property.
|
|
463
|
+
* @usageNotes
|
|
464
|
+
* ```ts
|
|
465
|
+
* componentProperty: {
|
|
466
|
+
* sliderProperty : {
|
|
467
|
+
* invert : true,
|
|
468
|
+
* step : 1,
|
|
469
|
+
* thumbLabel : false,
|
|
470
|
+
* vertical : true,
|
|
471
|
+
* horizontal : false
|
|
472
|
+
* }
|
|
473
|
+
* }
|
|
474
|
+
* ```
|
|
475
|
+
*/
|
|
476
|
+
declare interface ISliderProperty {
|
|
477
|
+
invert?: boolean;
|
|
478
|
+
thumbLabel?: boolean;
|
|
479
|
+
vertical?: boolean;
|
|
480
|
+
min?: number;
|
|
481
|
+
max?: number;
|
|
482
|
+
step?: number;
|
|
483
|
+
tickInterval?: string | number;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* @description
|
|
487
|
+
* Interface use for mat table header and column.
|
|
488
|
+
* @usageNotes
|
|
489
|
+
* ```ts
|
|
490
|
+
* columns: MatTable[] = [
|
|
491
|
+
* {
|
|
492
|
+
* columnDef: 'position',
|
|
493
|
+
* header: 'No.',
|
|
494
|
+
* cell: (element: any) => `${element.position}`
|
|
495
|
+
* }
|
|
496
|
+
* ]
|
|
497
|
+
* ```
|
|
498
|
+
*/
|
|
499
|
+
declare interface MatTable {
|
|
500
|
+
columnDef?: string;
|
|
501
|
+
header?: string;
|
|
502
|
+
cell?: any;
|
|
503
|
+
link?: IRouteLink;
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* @description
|
|
507
|
+
* Interface use for mat table header and column.
|
|
508
|
+
* @usageNotes
|
|
509
|
+
* ```ts
|
|
510
|
+
* columns: MatTable[] = [
|
|
511
|
+
* {
|
|
512
|
+
* columnDef: 'position',
|
|
513
|
+
* header: 'No.',
|
|
514
|
+
* cell: (element: any) => `${element.position}`
|
|
515
|
+
* }
|
|
516
|
+
* ]
|
|
517
|
+
* ```
|
|
518
|
+
*/
|
|
519
|
+
declare interface MatTable {
|
|
520
|
+
columnDef?: string;
|
|
521
|
+
header?: string;
|
|
522
|
+
cell?: any;
|
|
523
|
+
link?: IRouteLink;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* @description
|
|
528
|
+
* Class use for setting the control properties.
|
|
529
|
+
* @usageNotes
|
|
530
|
+
* ```ts
|
|
531
|
+
* new Dropdown({
|
|
532
|
+
* formControlName: 'brave',
|
|
533
|
+
* label: 'Bravery Rating',
|
|
534
|
+
* options: [
|
|
535
|
+
* {key: 'solid', value: 'Solid'},
|
|
536
|
+
* {key: 'great', value: 'Great'},
|
|
537
|
+
* {key: 'good', value: 'Good'},
|
|
538
|
+
* {key: 'unproven', value: 'Unproven'}
|
|
539
|
+
* ],
|
|
540
|
+
* order: 3
|
|
541
|
+
* }),
|
|
542
|
+
** ```
|
|
543
|
+
*/
|
|
544
|
+
declare class BaseControl<T> {
|
|
545
|
+
value: T | undefined;
|
|
546
|
+
formControlName: string;
|
|
547
|
+
label: string;
|
|
548
|
+
labelPosition: any;
|
|
549
|
+
order: number;
|
|
550
|
+
controlType: Control;
|
|
551
|
+
type: string;
|
|
552
|
+
disabled: boolean;
|
|
553
|
+
options: IOptions[] | any;
|
|
554
|
+
validations: IValidator[];
|
|
555
|
+
appearance: MatFormFieldAppearance | any;
|
|
556
|
+
class: string;
|
|
557
|
+
style: {
|
|
558
|
+
[klass: string]: any;
|
|
559
|
+
};
|
|
560
|
+
placeHolder: string;
|
|
561
|
+
floatLabel: FloatLabelType;
|
|
562
|
+
hint: IMatHint;
|
|
563
|
+
suffix: ISuffixPrefixConfig;
|
|
564
|
+
prefix: ISuffixPrefixConfig;
|
|
565
|
+
textAreaProperty: ITextAreaProperty;
|
|
566
|
+
event: IComponentEvent<T>;
|
|
567
|
+
selectProperty: ISelectOptions;
|
|
568
|
+
color: ThemePalette;
|
|
569
|
+
sliderProperty: ISliderProperty;
|
|
570
|
+
chipSelectedOptions: IOptions[] | any;
|
|
571
|
+
editorProperty: any;
|
|
572
|
+
formArray: BaseControl<T>[] | undefined;
|
|
573
|
+
constructor(options: {
|
|
574
|
+
value?: T;
|
|
575
|
+
formControlName?: string;
|
|
576
|
+
label: string;
|
|
577
|
+
labelPosition?: any;
|
|
578
|
+
order?: number;
|
|
579
|
+
controlType?: Control;
|
|
580
|
+
type?: string;
|
|
581
|
+
disabled?: boolean;
|
|
582
|
+
options?: IOptions[] | any;
|
|
583
|
+
validations?: IValidator[];
|
|
584
|
+
appearance?: MatFormFieldAppearance | any;
|
|
585
|
+
class?: string;
|
|
586
|
+
style?: {
|
|
587
|
+
[klass: string]: any;
|
|
588
|
+
};
|
|
589
|
+
placeHolder?: string;
|
|
590
|
+
floatLabel?: FloatLabelType;
|
|
591
|
+
hint?: IMatHint;
|
|
592
|
+
suffix?: ISuffixPrefixConfig;
|
|
593
|
+
prefix?: ISuffixPrefixConfig;
|
|
594
|
+
textAreaProperty?: ITextAreaProperty;
|
|
595
|
+
event?: IComponentEvent<T>;
|
|
596
|
+
selectProperty?: ISelectOptions;
|
|
597
|
+
color?: ThemePalette;
|
|
598
|
+
sliderProperty?: ISliderProperty;
|
|
599
|
+
chipSelectedOptions?: IOptions[] | any;
|
|
600
|
+
editorProperty?: any;
|
|
601
|
+
formArray?: BaseControl<T>[];
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
declare class ControlBuilderComponent<T> implements AfterContentChecked {
|
|
606
|
+
componentResolver: ComponentResolver;
|
|
607
|
+
private cdref;
|
|
608
|
+
control: BaseControl<T>;
|
|
609
|
+
constructor(componentResolver: ComponentResolver, cdref: ChangeDetectorRef);
|
|
610
|
+
ngAfterContentChecked(): void;
|
|
611
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ControlBuilderComponent<any>, never>;
|
|
612
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ControlBuilderComponent<any>, "falcon-control", never, { "control": { "alias": "control"; "required": true; }; }, {}, never, never, false, never>;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
declare class CardComponent {
|
|
616
|
+
backgroundColor: string | undefined;
|
|
617
|
+
class: string | undefined;
|
|
618
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
619
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "fal-card", never, { "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
declare class ButtonComponent implements OnDestroy {
|
|
623
|
+
label: string;
|
|
624
|
+
type: 'submit' | 'reset' | 'button';
|
|
625
|
+
color: ThemePalette;
|
|
626
|
+
disabled: boolean;
|
|
627
|
+
click: EventEmitter<MouseEvent>;
|
|
628
|
+
ngOnDestroy(): void;
|
|
629
|
+
onClick(event: MouseEvent): boolean;
|
|
630
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
631
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "fal-button", never, { "label": { "alias": "label"; "required": true; }; "type": { "alias": "type"; "required": true; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "click": "click"; }, never, never, false, never>;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
declare class AngularmaterialModule {
|
|
635
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AngularmaterialModule, never>;
|
|
636
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularmaterialModule, never, never, [typeof i1.A11yModule, typeof i2.ClipboardModule, typeof i3.CdkStepperModule, typeof i4.CdkTableModule, typeof i5.CdkTreeModule, typeof i6.DragDropModule, typeof i7.MatAutocompleteModule, typeof i8.MatBadgeModule, typeof i9.MatBottomSheetModule, typeof i10.MatButtonModule, typeof i11.MatButtonToggleModule, typeof i12.MatCardModule, typeof i13.MatCheckboxModule, typeof i14.MatChipsModule, typeof i15.MatStepperModule, typeof i16.MatDatepickerModule, typeof i17.MatDialogModule, typeof i18.MatDividerModule, typeof i19.MatExpansionModule, typeof i20.MatGridListModule, typeof i21.MatIconModule, typeof i22.MatInputModule, typeof i23.MatListModule, typeof i24.MatMenuModule, typeof i25.MatNativeDateModule, typeof i26.MatPaginatorModule, typeof i27.MatProgressBarModule, typeof i28.MatProgressSpinnerModule, typeof i29.MatRadioModule, typeof i25.MatRippleModule, typeof i30.MatSelectModule, typeof i31.MatSidenavModule, typeof i32.MatSliderModule, typeof i33.MatSlideToggleModule, typeof i34.MatSnackBarModule, typeof i35.MatSortModule, typeof i36.MatTableModule, typeof i37.MatTabsModule, typeof i38.MatToolbarModule, typeof i39.MatTooltipModule, typeof i40.MatTreeModule, typeof i41.OverlayModule, typeof i42.PortalModule, typeof i43.ScrollingModule]>;
|
|
637
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AngularmaterialModule>;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
declare class ControlInjectionPipe<T> implements PipeTransform {
|
|
641
|
+
injector: Injector;
|
|
642
|
+
transform(formControlName: string, config: BaseControl<T>): Injector;
|
|
643
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ControlInjectionPipe<any>, never>;
|
|
644
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ControlInjectionPipe<any>, "controlInjection", true>;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
declare class FalconCoreModule {
|
|
648
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FalconCoreModule, never>;
|
|
649
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FalconCoreModule, [typeof ControlBuilderComponent, typeof CardComponent, typeof ButtonComponent], [typeof AngularmaterialModule, typeof i5$1.CommonModule, typeof ControlInjectionPipe], [typeof AngularmaterialModule, typeof ControlBuilderComponent, typeof CardComponent, typeof ButtonComponent]>;
|
|
650
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FalconCoreModule>;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
declare class AutoComplete extends BaseControl<string> {
|
|
654
|
+
controlType: Control;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
declare class Button extends BaseControl<string> {
|
|
658
|
+
controlType: Control;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
declare class ButtonToggle extends BaseControl<string> {
|
|
662
|
+
controlType: Control;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
declare class CheckBox extends BaseControl<boolean> {
|
|
666
|
+
controlType: Control;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
declare class Chip extends BaseControl<string> {
|
|
670
|
+
controlType: Control;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
declare class DatePicker extends BaseControl<string> {
|
|
674
|
+
controlType: Control;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
declare class Divider extends BaseControl<string> {
|
|
678
|
+
controlType: Control;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
declare class Editor extends BaseControl<string> {
|
|
682
|
+
controlType: Control;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
declare class Radio extends BaseControl<string> {
|
|
686
|
+
controlType: Control;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
declare class RichTextEditor extends BaseControl<any> {
|
|
690
|
+
controlType: Control;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
declare class Select extends BaseControl<string> {
|
|
694
|
+
controlType: Control;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
declare class Slider extends BaseControl<number> {
|
|
698
|
+
controlType: Control;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
declare class SliderToggle extends BaseControl<boolean> {
|
|
702
|
+
controlType: Control;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
declare class Textarea extends BaseControl<string> {
|
|
706
|
+
controlType: Control;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
declare class Textbox extends BaseControl<string> {
|
|
710
|
+
controlType: Control;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
interface ControlData {
|
|
714
|
+
formControlName: string;
|
|
715
|
+
config: BaseControl<any>;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
declare class BaseControlBuilder implements OnInit, OnDestroy {
|
|
719
|
+
private parentGroupDir;
|
|
720
|
+
control: ControlData;
|
|
721
|
+
private formControl;
|
|
722
|
+
get parentFormGroup(): FormGroup;
|
|
723
|
+
ngOnInit(): void;
|
|
724
|
+
ngOnDestroy(): void;
|
|
725
|
+
private bindValidators;
|
|
726
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseControlBuilder, never>;
|
|
727
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseControlBuilder, never, never, {}, {}, never, never, true, never>;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
declare class SelectComponent extends BaseControlBuilder {
|
|
731
|
+
selectionChange(event: MatSelectChange): void;
|
|
732
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
733
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "fal-select", never, {}, {}, never, never, true, never>;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export { AngularmaterialModule, Appearance, AutoComplete, BaseControl, Button, ButtonComponent, ButtonToggle, CardComponent, CheckBox, Chip, Control, ControlBuilderComponent, DatePicker, Divider, Editor, FalconCoreModule, Floatinglabel, HttpMethod, InputTypes, LoggingLevel, Radio, RichTextEditor, Select, SelectComponent, Slider, SliderToggle, TableAction, Textarea, Textbox };
|
|
737
|
+
export type { IAppSettingViewModel, IComponentEvent, IDialogData, IIcon, IMatHint, IMatTableStyle, IOptions, IRequestOptions, IRouteLink, ISelectOptions, ISliderProperty, ISuffixPrefixConfig, ITableAction, ITextAreaProperty, IValidator, MatTable, MatTableConfig, MatTablePaginationConfig, SnackbarModel };
|