commons-shared-web-ui 0.0.4 → 0.0.6
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/commons-shared-web-ui.mjs +2442 -185
- package/fesm2022/commons-shared-web-ui.mjs.map +1 -1
- package/index.d.ts +968 -55
- package/package.json +1 -1
- package/src/lib/modules/filter/filter.theme.scss +92 -0
- package/src/lib/modules/filter-sidebar/filter-sidebar.theme.scss +28 -40
- package/src/lib/modules/form-components/components/checkbox/_theme.scss +63 -0
- package/src/lib/modules/form-components/components/datepicker/_theme.scss +82 -0
- package/src/lib/modules/form-components/components/dropdown/_theme.scss +91 -0
- package/src/lib/modules/form-components/components/input/_theme.scss +77 -0
- package/src/lib/modules/form-components/components/radio/_theme.scss +61 -0
- package/src/lib/modules/form-components/components/search/_theme.scss +73 -0
- package/src/lib/modules/form-components/components/toggle/_theme.scss +45 -0
- package/src/lib/modules/form-components/form-components.theme.scss +25 -0
- package/src/lib/modules/smart-table/smart-table.theme.scss +4 -0
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnDestroy, EventEmitter, OnChanges, SimpleChanges, AfterViewInit, QueryList,
|
|
2
|
+
import { OnInit, OnDestroy, EventEmitter, OnChanges, SimpleChanges, ElementRef, AfterViewInit, QueryList, ChangeDetectorRef, NgZone } from '@angular/core';
|
|
3
3
|
import * as i2$1 from '@angular/common';
|
|
4
4
|
import * as i1 from '@angular/material/card';
|
|
5
5
|
import * as i2 from '@angular/material/snack-bar';
|
|
@@ -34,6 +34,8 @@ import * as i29 from '@angular/cdk/accordion';
|
|
|
34
34
|
import * as i3$1 from '@angular/forms';
|
|
35
35
|
import { ControlValueAccessor, FormGroup, FormBuilder, AbstractControl, FormControl, FormArray, ValidatorFn, ValidationErrors } from '@angular/forms';
|
|
36
36
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
37
|
+
import * as i11$1 from '@angular/cdk/scrolling';
|
|
38
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
37
39
|
import { HttpClient } from '@angular/common/http';
|
|
38
40
|
import { Observable, Subject } from 'rxjs';
|
|
39
41
|
|
|
@@ -48,12 +50,17 @@ type IconInput = boolean | string | {
|
|
|
48
50
|
type: 'material' | 'fontawesome' | 'img';
|
|
49
51
|
value: string;
|
|
50
52
|
};
|
|
53
|
+
interface AlertLabels {
|
|
54
|
+
iconAltText?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
51
57
|
declare class AlertComponent implements OnInit {
|
|
52
58
|
variant: AlertVariant;
|
|
53
59
|
title: string;
|
|
54
60
|
message: string;
|
|
55
61
|
icon: IconInput;
|
|
56
62
|
customIcon: string;
|
|
63
|
+
labels?: AlertLabels;
|
|
57
64
|
width?: string;
|
|
58
65
|
height?: string;
|
|
59
66
|
borderRadius?: string;
|
|
@@ -82,7 +89,7 @@ declare class AlertComponent implements OnInit {
|
|
|
82
89
|
};
|
|
83
90
|
get defaultIconClass(): string;
|
|
84
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "lib-alert", never, { "variant": { "alias": "variant"; "required": false; }; "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "customIcon": { "alias": "customIcon"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "color": { "alias": "color"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; "borderTopLeftRadius": { "alias": "borderTopLeftRadius"; "required": false; }; "borderTopRightRadius": { "alias": "borderTopRightRadius"; "required": false; }; "borderBottomLeftRadius": { "alias": "borderBottomLeftRadius"; "required": false; }; "borderBottomRightRadius": { "alias": "borderBottomRightRadius"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
92
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "lib-alert", never, { "variant": { "alias": "variant"; "required": false; }; "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "customIcon": { "alias": "customIcon"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "color": { "alias": "color"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; "borderTopLeftRadius": { "alias": "borderTopLeftRadius"; "required": false; }; "borderTopRightRadius": { "alias": "borderTopRightRadius"; "required": false; }; "borderBottomLeftRadius": { "alias": "borderBottomLeftRadius"; "required": false; }; "borderBottomRightRadius": { "alias": "borderBottomRightRadius"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
86
93
|
}
|
|
87
94
|
|
|
88
95
|
declare class AlertModule {
|
|
@@ -91,7 +98,11 @@ declare class AlertModule {
|
|
|
91
98
|
static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
|
|
92
99
|
}
|
|
93
100
|
|
|
94
|
-
type ButtonVariant = 'primary' | 'warning' | 'outline' | 'secondary' | 'success' | 'danger' | 'danger-outline';
|
|
101
|
+
type ButtonVariant = 'primary' | 'warning' | 'outline' | 'secondary' | 'success' | 'danger' | 'danger-outline' | 'text';
|
|
102
|
+
interface ButtonLabels {
|
|
103
|
+
iconAltText?: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
95
106
|
declare class ButtonComponent implements OnInit {
|
|
96
107
|
variant: ButtonVariant;
|
|
97
108
|
type: 'button' | 'submit' | 'reset';
|
|
@@ -108,6 +119,7 @@ declare class ButtonComponent implements OnInit {
|
|
|
108
119
|
type: 'material' | 'fontawesome' | 'img';
|
|
109
120
|
value: string;
|
|
110
121
|
};
|
|
122
|
+
labels?: ButtonLabels;
|
|
111
123
|
constructor();
|
|
112
124
|
ngOnInit(): void;
|
|
113
125
|
get isDefaultIcon(): boolean;
|
|
@@ -120,7 +132,7 @@ declare class ButtonComponent implements OnInit {
|
|
|
120
132
|
value: string;
|
|
121
133
|
};
|
|
122
134
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
123
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "lib-button", never, { "variant": { "alias": "variant"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "color": { "alias": "color"; "required": false; }; "border": { "alias": "border"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
135
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "lib-button", never, { "variant": { "alias": "variant"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "color": { "alias": "color"; "required": false; }; "border": { "alias": "border"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
124
136
|
}
|
|
125
137
|
|
|
126
138
|
declare class ButtonModule {
|
|
@@ -170,6 +182,12 @@ interface ConfirmationModalConfig {
|
|
|
170
182
|
showCodeSnippetButton?: boolean;
|
|
171
183
|
ariaLabel?: string;
|
|
172
184
|
ariaDescribedBy?: string;
|
|
185
|
+
labels?: {
|
|
186
|
+
closeAriaLabel?: string;
|
|
187
|
+
codeSnippetAriaLabel?: string;
|
|
188
|
+
codeSnippetTitle?: string;
|
|
189
|
+
iconAltText?: string;
|
|
190
|
+
};
|
|
173
191
|
}
|
|
174
192
|
|
|
175
193
|
declare class ConfirmationModalComponent implements OnInit, OnDestroy {
|
|
@@ -209,19 +227,334 @@ declare class ConfirmationModalModule {
|
|
|
209
227
|
static ɵinj: i0.ɵɵInjectorDeclaration<ConfirmationModalModule>;
|
|
210
228
|
}
|
|
211
229
|
|
|
230
|
+
type InputType = 'text' | 'number' | 'email' | 'password' | 'tel' | 'url' | 'textarea';
|
|
231
|
+
interface InputLabels {
|
|
232
|
+
label?: string;
|
|
233
|
+
placeholder?: string;
|
|
234
|
+
errorMessage?: string;
|
|
235
|
+
helperText?: string;
|
|
236
|
+
requiredMarker?: string;
|
|
237
|
+
passwordToggleAriaLabel?: string;
|
|
238
|
+
prefixAltText?: string;
|
|
239
|
+
suffixAltText?: string;
|
|
240
|
+
}
|
|
241
|
+
interface InputConfig {
|
|
242
|
+
type?: InputType;
|
|
243
|
+
label?: string;
|
|
244
|
+
placeholder?: string;
|
|
245
|
+
value?: any;
|
|
246
|
+
disabled?: boolean;
|
|
247
|
+
required?: boolean;
|
|
248
|
+
readonly?: boolean;
|
|
249
|
+
maxLength?: number;
|
|
250
|
+
minLength?: number;
|
|
251
|
+
min?: number;
|
|
252
|
+
max?: number;
|
|
253
|
+
pattern?: string;
|
|
254
|
+
errorMessage?: string;
|
|
255
|
+
helperText?: string;
|
|
256
|
+
rows?: number;
|
|
257
|
+
prefixIcon?: string | {
|
|
258
|
+
type: 'material' | 'fontawesome' | 'img';
|
|
259
|
+
value: string;
|
|
260
|
+
};
|
|
261
|
+
suffixIcon?: string | {
|
|
262
|
+
type: 'material' | 'fontawesome' | 'img';
|
|
263
|
+
value: string;
|
|
264
|
+
};
|
|
265
|
+
width?: string;
|
|
266
|
+
height?: string;
|
|
267
|
+
borderRadius?: string;
|
|
268
|
+
fontSize?: string;
|
|
269
|
+
gap?: string;
|
|
270
|
+
fontFamily?: string;
|
|
271
|
+
labelColor?: string;
|
|
272
|
+
labelFontSize?: string;
|
|
273
|
+
labelFontWeight?: string;
|
|
274
|
+
backgroundColor?: string;
|
|
275
|
+
borderColor?: string;
|
|
276
|
+
borderWidth?: string;
|
|
277
|
+
padding?: string;
|
|
278
|
+
fontWeight?: string;
|
|
279
|
+
color?: string;
|
|
280
|
+
placeholderColor?: string;
|
|
281
|
+
focusBorderColor?: string;
|
|
282
|
+
errorColor?: string;
|
|
283
|
+
disabledBackgroundColor?: string;
|
|
284
|
+
disabledColor?: string;
|
|
285
|
+
boxShadow?: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
interface DropdownOption {
|
|
289
|
+
value: any;
|
|
290
|
+
label: string;
|
|
291
|
+
disabled?: boolean;
|
|
292
|
+
icon?: string | {
|
|
293
|
+
type: 'material' | 'fontawesome' | 'img';
|
|
294
|
+
value: string;
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
interface DropdownLabels {
|
|
298
|
+
label?: string;
|
|
299
|
+
placeholder?: string;
|
|
300
|
+
searchPlaceholder?: string;
|
|
301
|
+
errorMessage?: string;
|
|
302
|
+
selectedSuffix?: string;
|
|
303
|
+
clearAriaLabel?: string;
|
|
304
|
+
noResultsFound?: string;
|
|
305
|
+
requiredMarker?: string;
|
|
306
|
+
}
|
|
307
|
+
interface DropdownConfig {
|
|
308
|
+
options: DropdownOption[];
|
|
309
|
+
placeholder?: string;
|
|
310
|
+
label?: string;
|
|
311
|
+
multiple?: boolean;
|
|
312
|
+
searchable?: boolean;
|
|
313
|
+
clearable?: boolean;
|
|
314
|
+
disabled?: boolean;
|
|
315
|
+
required?: boolean;
|
|
316
|
+
errorMessage?: string;
|
|
317
|
+
width?: string;
|
|
318
|
+
height?: string;
|
|
319
|
+
borderRadius?: string;
|
|
320
|
+
fontSize?: string;
|
|
321
|
+
gap?: string;
|
|
322
|
+
fontFamily?: string;
|
|
323
|
+
labelColor?: string;
|
|
324
|
+
labelFontSize?: string;
|
|
325
|
+
labelFontWeight?: string;
|
|
326
|
+
backgroundColor?: string;
|
|
327
|
+
borderColor?: string;
|
|
328
|
+
borderWidth?: string;
|
|
329
|
+
padding?: string;
|
|
330
|
+
fontWeight?: string;
|
|
331
|
+
color?: string;
|
|
332
|
+
placeholderColor?: string;
|
|
333
|
+
focusBorderColor?: string;
|
|
334
|
+
errorColor?: string;
|
|
335
|
+
disabledBackgroundColor?: string;
|
|
336
|
+
disabledColor?: string;
|
|
337
|
+
boxShadow?: string;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
interface CheckboxOption {
|
|
341
|
+
value: any;
|
|
342
|
+
label: string;
|
|
343
|
+
disabled?: boolean;
|
|
344
|
+
checked?: boolean;
|
|
345
|
+
}
|
|
346
|
+
interface CheckboxLabels {
|
|
347
|
+
label?: string;
|
|
348
|
+
requiredMarker?: string;
|
|
349
|
+
}
|
|
350
|
+
interface CheckboxConfig {
|
|
351
|
+
label?: string;
|
|
352
|
+
checked?: boolean;
|
|
353
|
+
disabled?: boolean;
|
|
354
|
+
required?: boolean;
|
|
355
|
+
indeterminate?: boolean;
|
|
356
|
+
options?: CheckboxOption[];
|
|
357
|
+
labelPosition?: 'before' | 'after';
|
|
358
|
+
color?: 'primary' | 'accent' | 'warn';
|
|
359
|
+
borderRadius?: string;
|
|
360
|
+
size?: string;
|
|
361
|
+
checkedColor?: string;
|
|
362
|
+
uncheckedColor?: string;
|
|
363
|
+
groupLabelColor?: string;
|
|
364
|
+
groupLabelFontSize?: string;
|
|
365
|
+
groupLabelFontWeight?: string;
|
|
366
|
+
labelFontSize?: string;
|
|
367
|
+
labelFontWeight?: string;
|
|
368
|
+
labelColor?: string;
|
|
369
|
+
gap?: string;
|
|
370
|
+
fontFamily?: string;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
interface RadioOption {
|
|
374
|
+
value: any;
|
|
375
|
+
label: string;
|
|
376
|
+
disabled?: boolean;
|
|
377
|
+
}
|
|
378
|
+
interface RadioLabels {
|
|
379
|
+
label?: string;
|
|
380
|
+
requiredMarker?: string;
|
|
381
|
+
}
|
|
382
|
+
interface RadioConfig {
|
|
383
|
+
label?: string;
|
|
384
|
+
options: RadioOption[];
|
|
385
|
+
value?: any;
|
|
386
|
+
disabled?: boolean;
|
|
387
|
+
required?: boolean;
|
|
388
|
+
labelPosition?: 'before' | 'after';
|
|
389
|
+
color?: 'primary' | 'accent' | 'warn';
|
|
390
|
+
layout?: 'vertical' | 'horizontal';
|
|
391
|
+
gap?: string;
|
|
392
|
+
labelColor?: string;
|
|
393
|
+
checkedColor?: string;
|
|
394
|
+
uncheckedColor?: string;
|
|
395
|
+
fontSize?: string;
|
|
396
|
+
fontWeight?: string;
|
|
397
|
+
fontFamily?: string;
|
|
398
|
+
groupLabelColor?: string;
|
|
399
|
+
groupLabelFontSize?: string;
|
|
400
|
+
groupLabelFontWeight?: string;
|
|
401
|
+
disabledColor?: string;
|
|
402
|
+
errorColor?: string;
|
|
403
|
+
size?: string;
|
|
404
|
+
borderRadius?: string;
|
|
405
|
+
labelFontSize?: string;
|
|
406
|
+
labelFontWeight?: string;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
interface ToggleLabels {
|
|
410
|
+
label?: string;
|
|
411
|
+
}
|
|
412
|
+
interface ToggleConfig {
|
|
413
|
+
label?: string;
|
|
414
|
+
checked?: boolean;
|
|
415
|
+
disabled?: boolean;
|
|
416
|
+
required?: boolean;
|
|
417
|
+
labelPosition?: 'before' | 'after';
|
|
418
|
+
color?: string;
|
|
419
|
+
uncheckedColor?: string;
|
|
420
|
+
checkedColor?: string;
|
|
421
|
+
thumbColor?: string;
|
|
422
|
+
checkedThumbColor?: string;
|
|
423
|
+
fontSize?: string;
|
|
424
|
+
fontWeight?: string;
|
|
425
|
+
toggleWidth?: string;
|
|
426
|
+
toggleHeight?: string;
|
|
427
|
+
gap?: string;
|
|
428
|
+
fontFamily?: string;
|
|
429
|
+
labelColor?: string;
|
|
430
|
+
labelFontSize?: string;
|
|
431
|
+
labelFontWeight?: string;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
interface DatepickerLabels {
|
|
435
|
+
label?: string;
|
|
436
|
+
placeholder?: string;
|
|
437
|
+
startDateLabel?: string;
|
|
438
|
+
endDateLabel?: string;
|
|
439
|
+
requiredMarker?: string;
|
|
440
|
+
}
|
|
441
|
+
interface DatePickerConfig {
|
|
442
|
+
label?: string;
|
|
443
|
+
placeholder?: string;
|
|
444
|
+
value?: Date;
|
|
445
|
+
disabled?: boolean;
|
|
446
|
+
required?: boolean;
|
|
447
|
+
minDate?: Date;
|
|
448
|
+
maxDate?: Date;
|
|
449
|
+
startView?: 'month' | 'year' | 'multi-year';
|
|
450
|
+
isRange?: boolean;
|
|
451
|
+
startDate?: Date;
|
|
452
|
+
endDate?: Date;
|
|
453
|
+
width?: string;
|
|
454
|
+
borderRadius?: string;
|
|
455
|
+
fontSize?: string;
|
|
456
|
+
errorMessage?: string;
|
|
457
|
+
gap?: string;
|
|
458
|
+
fontFamily?: string;
|
|
459
|
+
labelColor?: string;
|
|
460
|
+
labelFontSize?: string;
|
|
461
|
+
labelFontWeight?: string;
|
|
462
|
+
backgroundColor?: string;
|
|
463
|
+
borderColor?: string;
|
|
464
|
+
borderWidth?: string;
|
|
465
|
+
padding?: string;
|
|
466
|
+
fontWeight?: string;
|
|
467
|
+
color?: string;
|
|
468
|
+
placeholderColor?: string;
|
|
469
|
+
focusBorderColor?: string;
|
|
470
|
+
errorColor?: string;
|
|
471
|
+
disabledBackgroundColor?: string;
|
|
472
|
+
disabledColor?: string;
|
|
473
|
+
boxShadow?: string;
|
|
474
|
+
height?: string;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
interface SearchLabels {
|
|
478
|
+
label?: string;
|
|
479
|
+
placeholder?: string;
|
|
480
|
+
clearAriaLabel?: string;
|
|
481
|
+
}
|
|
482
|
+
interface FilterSearchConfig {
|
|
483
|
+
placeholder?: string;
|
|
484
|
+
label?: string;
|
|
485
|
+
value?: string;
|
|
486
|
+
disabled?: boolean;
|
|
487
|
+
debounceTime?: number;
|
|
488
|
+
clearable?: boolean;
|
|
489
|
+
width?: string;
|
|
490
|
+
height?: string;
|
|
491
|
+
borderRadius?: string;
|
|
492
|
+
fontSize?: string;
|
|
493
|
+
gap?: string;
|
|
494
|
+
fontFamily?: string;
|
|
495
|
+
labelColor?: string;
|
|
496
|
+
labelFontSize?: string;
|
|
497
|
+
labelFontWeight?: string;
|
|
498
|
+
backgroundColor?: string;
|
|
499
|
+
borderColor?: string;
|
|
500
|
+
borderWidth?: string;
|
|
501
|
+
border?: string;
|
|
502
|
+
padding?: string;
|
|
503
|
+
fontWeight?: string;
|
|
504
|
+
color?: string;
|
|
505
|
+
textColor?: string;
|
|
506
|
+
iconColor?: string;
|
|
507
|
+
placeholderColor?: string;
|
|
508
|
+
focusBorderColor?: string;
|
|
509
|
+
errorColor?: string;
|
|
510
|
+
disabledBackgroundColor?: string;
|
|
511
|
+
disabledColor?: string;
|
|
512
|
+
boxShadow?: string;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
type FilterItemType = 'input' | 'dropdown' | 'checkbox' | 'radio' | 'toggle' | 'datepicker' | 'active-search' | 'group' | 'custom' | 'divider';
|
|
516
|
+
interface FilterItem {
|
|
517
|
+
key?: string;
|
|
518
|
+
type: FilterItemType;
|
|
519
|
+
label?: string;
|
|
520
|
+
visible?: boolean;
|
|
521
|
+
inputConfig?: InputConfig;
|
|
522
|
+
dropdownConfig?: DropdownConfig;
|
|
523
|
+
checkboxConfig?: CheckboxConfig;
|
|
524
|
+
radioConfig?: RadioConfig;
|
|
525
|
+
toggleConfig?: ToggleConfig;
|
|
526
|
+
datepickerConfig?: DatePickerConfig;
|
|
527
|
+
searchConfig?: FilterSearchConfig;
|
|
528
|
+
children?: FilterItem[];
|
|
529
|
+
expanded?: boolean;
|
|
530
|
+
styles?: {
|
|
531
|
+
[key: string]: string;
|
|
532
|
+
};
|
|
533
|
+
}
|
|
212
534
|
interface FilterSidebarConfig {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
535
|
+
items: FilterItem[];
|
|
536
|
+
styles?: {
|
|
537
|
+
width?: string;
|
|
538
|
+
padding?: string;
|
|
539
|
+
gap?: string;
|
|
540
|
+
backgroundColor?: string;
|
|
541
|
+
headerHeight?: string;
|
|
542
|
+
borderRadius?: string;
|
|
216
543
|
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
544
|
+
header?: {
|
|
545
|
+
title?: string;
|
|
546
|
+
icon?: string;
|
|
547
|
+
visible?: boolean;
|
|
548
|
+
showClose?: boolean;
|
|
549
|
+
};
|
|
550
|
+
footer?: {
|
|
551
|
+
visible?: boolean;
|
|
552
|
+
applyButton?: {
|
|
220
553
|
label?: string;
|
|
221
554
|
visible?: boolean;
|
|
222
555
|
disabled?: boolean;
|
|
223
556
|
};
|
|
224
|
-
|
|
557
|
+
clearButton?: {
|
|
225
558
|
label?: string;
|
|
226
559
|
visible?: boolean;
|
|
227
560
|
};
|
|
@@ -231,25 +564,12 @@ interface FilterSidebarConfig {
|
|
|
231
564
|
persistent?: boolean;
|
|
232
565
|
showCodeSnippet?: boolean;
|
|
233
566
|
};
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
interface FilterSidebarSection {
|
|
241
|
-
key: string;
|
|
242
|
-
title: string;
|
|
243
|
-
type: 'select' | 'accordion' | 'checkbox-group' | 'radio-group' | 'search';
|
|
244
|
-
options?: FilterSidebarOption[];
|
|
245
|
-
multi?: boolean;
|
|
246
|
-
expanded?: boolean;
|
|
247
|
-
placeholder?: string;
|
|
248
|
-
visible?: boolean;
|
|
249
|
-
}
|
|
250
|
-
interface FilterSidebarOption {
|
|
251
|
-
label: string;
|
|
252
|
-
value: any;
|
|
567
|
+
labels?: {
|
|
568
|
+
collapseAriaLabel?: string;
|
|
569
|
+
expandAriaLabel?: string;
|
|
570
|
+
closeAriaLabel?: string;
|
|
571
|
+
codeSnippetAriaLabel?: string;
|
|
572
|
+
};
|
|
253
573
|
}
|
|
254
574
|
interface FilterSidebarOutput {
|
|
255
575
|
[key: string]: any;
|
|
@@ -271,37 +591,627 @@ declare class FilterSidebarComponent implements OnInit, ControlValueAccessor {
|
|
|
271
591
|
filterChange: EventEmitter<FilterSidebarChangeEvent>;
|
|
272
592
|
filterApply: EventEmitter<FilterSidebarOutput>;
|
|
273
593
|
filterClear: EventEmitter<void>;
|
|
274
|
-
tabChange: EventEmitter<string>;
|
|
275
594
|
showCodeSnippet: EventEmitter<void>;
|
|
595
|
+
close: EventEmitter<void>;
|
|
276
596
|
filters: FilterSidebarOutput;
|
|
277
|
-
selectedTabId: string | null;
|
|
278
597
|
onChange: any;
|
|
279
598
|
onTouched: any;
|
|
599
|
+
isCollapsed: boolean;
|
|
600
|
+
toggleCollapse(): void;
|
|
280
601
|
constructor(router: Router, route: ActivatedRoute);
|
|
281
602
|
ngOnInit(): void;
|
|
282
603
|
writeValue(value: any): void;
|
|
283
604
|
registerOnChange(fn: any): void;
|
|
284
605
|
registerOnTouched(fn: any): void;
|
|
285
|
-
|
|
286
|
-
onFilterChange(key: string, value: any, isMulti?: boolean): void;
|
|
287
|
-
private toggleFilterValue;
|
|
606
|
+
onValueChange(key: string | undefined, value: any): void;
|
|
288
607
|
private notifyChanges;
|
|
289
608
|
private updateUrl;
|
|
290
609
|
applyFilters(): void;
|
|
291
610
|
clearFilters(): void;
|
|
292
|
-
|
|
611
|
+
onClose(): void;
|
|
293
612
|
onShowCodeSnippet(): void;
|
|
294
|
-
|
|
613
|
+
get sidebarStyles(): {
|
|
614
|
+
[key: string]: string;
|
|
615
|
+
};
|
|
616
|
+
trackByFn(index: number, item: FilterItem): any;
|
|
295
617
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterSidebarComponent, never>;
|
|
296
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterSidebarComponent, "lib-filter-sidebar", never, { "config": { "alias": "config"; "required": false; }; "initialFilters": { "alias": "initialFilters"; "required": false; }; }, { "filterChange": "filterChange"; "filterApply": "filterApply"; "filterClear": "filterClear"; "
|
|
618
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterSidebarComponent, "lib-filter-sidebar", never, { "config": { "alias": "config"; "required": false; }; "initialFilters": { "alias": "initialFilters"; "required": false; }; }, { "filterChange": "filterChange"; "filterApply": "filterApply"; "filterClear": "filterClear"; "showCodeSnippet": "showCodeSnippet"; "close": "close"; }, never, ["[header-actions]"], false, never>;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
declare class InputComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
622
|
+
config?: InputConfig;
|
|
623
|
+
labels?: InputLabels;
|
|
624
|
+
type: InputType;
|
|
625
|
+
label: string;
|
|
626
|
+
placeholder: string;
|
|
627
|
+
disabled: boolean;
|
|
628
|
+
required: boolean;
|
|
629
|
+
readonly: boolean;
|
|
630
|
+
clearable: boolean;
|
|
631
|
+
maxLength?: number;
|
|
632
|
+
minLength?: number;
|
|
633
|
+
min?: number | string;
|
|
634
|
+
max?: number | string;
|
|
635
|
+
pattern?: string;
|
|
636
|
+
errorMessage: string;
|
|
637
|
+
helperText: string;
|
|
638
|
+
rows: number;
|
|
639
|
+
prefixIcon?: any;
|
|
640
|
+
suffixIcon?: any;
|
|
641
|
+
value: any;
|
|
642
|
+
width?: string;
|
|
643
|
+
height?: string;
|
|
644
|
+
borderRadius?: string;
|
|
645
|
+
fontSize?: string;
|
|
646
|
+
gap?: string;
|
|
647
|
+
fontFamily?: string;
|
|
648
|
+
labelColor?: string;
|
|
649
|
+
labelFontSize?: string;
|
|
650
|
+
labelFontWeight?: string;
|
|
651
|
+
backgroundColor?: string;
|
|
652
|
+
borderColor?: string;
|
|
653
|
+
borderWidth?: string;
|
|
654
|
+
padding?: string;
|
|
655
|
+
fontWeight?: string;
|
|
656
|
+
color?: string;
|
|
657
|
+
placeholderColor?: string;
|
|
658
|
+
focusBorderColor?: string;
|
|
659
|
+
errorColor?: string;
|
|
660
|
+
disabledBackgroundColor?: string;
|
|
661
|
+
disabledColor?: string;
|
|
662
|
+
boxShadow?: string;
|
|
663
|
+
valueChange: EventEmitter<any>;
|
|
664
|
+
inputBlur: EventEmitter<void>;
|
|
665
|
+
inputFocus: EventEmitter<void>;
|
|
666
|
+
showPassword: boolean;
|
|
667
|
+
focused: boolean;
|
|
668
|
+
onChange: (value: any) => void;
|
|
669
|
+
onTouched: () => void;
|
|
670
|
+
ngOnInit(): void;
|
|
671
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
672
|
+
private updateFromConfig;
|
|
673
|
+
private updateFromLabels;
|
|
674
|
+
get requiredMarker(): string;
|
|
675
|
+
writeValue(value: any): void;
|
|
676
|
+
registerOnChange(fn: any): void;
|
|
677
|
+
registerOnTouched(fn: any): void;
|
|
678
|
+
setDisabledState(isDisabled: boolean): void;
|
|
679
|
+
onInputChange(event: any): void;
|
|
680
|
+
onBlur(): void;
|
|
681
|
+
onFocus(): void;
|
|
682
|
+
togglePasswordVisibility(): void;
|
|
683
|
+
getIconType(icon: any): 'material' | 'fontawesome' | 'img' | 'none';
|
|
684
|
+
getIconValue(icon: any): string;
|
|
685
|
+
get inputType(): string;
|
|
686
|
+
private getStyleValue;
|
|
687
|
+
get wrapperStyles(): {
|
|
688
|
+
[key: string]: string | undefined;
|
|
689
|
+
};
|
|
690
|
+
get labelStyles(): {
|
|
691
|
+
[key: string]: string | undefined;
|
|
692
|
+
};
|
|
693
|
+
get fieldStyles(): {
|
|
694
|
+
[key: string]: string | undefined;
|
|
695
|
+
};
|
|
696
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
697
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "lib-input", never, { "config": { "alias": "config"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; }; "value": { "alias": "value"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "fontFamily": { "alias": "fontFamily"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "color": { "alias": "color"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "focusBorderColor": { "alias": "focusBorderColor"; "required": false; }; "errorColor": { "alias": "errorColor"; "required": false; }; "disabledBackgroundColor": { "alias": "disabledBackgroundColor"; "required": false; }; "disabledColor": { "alias": "disabledColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; }, { "valueChange": "valueChange"; "inputBlur": "inputBlur"; "inputFocus": "inputFocus"; }, never, never, false, never>;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
declare class DropdownComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
701
|
+
config?: DropdownConfig;
|
|
702
|
+
labels?: DropdownLabels;
|
|
703
|
+
options: DropdownOption[];
|
|
704
|
+
placeholder: string;
|
|
705
|
+
label: string;
|
|
706
|
+
multiple: boolean;
|
|
707
|
+
searchable: boolean;
|
|
708
|
+
clearable: boolean;
|
|
709
|
+
disabled: boolean;
|
|
710
|
+
required: boolean;
|
|
711
|
+
errorMessage: string;
|
|
712
|
+
width?: string;
|
|
713
|
+
height?: string;
|
|
714
|
+
borderRadius?: string;
|
|
715
|
+
fontSize?: string;
|
|
716
|
+
gap?: string;
|
|
717
|
+
fontFamily?: string;
|
|
718
|
+
labelColor?: string;
|
|
719
|
+
labelFontSize?: string;
|
|
720
|
+
labelFontWeight?: string;
|
|
721
|
+
backgroundColor?: string;
|
|
722
|
+
borderColor?: string;
|
|
723
|
+
borderWidth?: string;
|
|
724
|
+
padding?: string;
|
|
725
|
+
fontWeight?: string;
|
|
726
|
+
color?: string;
|
|
727
|
+
placeholderColor?: string;
|
|
728
|
+
focusBorderColor?: string;
|
|
729
|
+
errorColor?: string;
|
|
730
|
+
disabledBackgroundColor?: string;
|
|
731
|
+
disabledColor?: string;
|
|
732
|
+
boxShadow?: string;
|
|
733
|
+
selectionChange: EventEmitter<any>;
|
|
734
|
+
viewport?: CdkVirtualScrollViewport;
|
|
735
|
+
searchInput?: ElementRef;
|
|
736
|
+
filteredOptions: DropdownOption[];
|
|
737
|
+
searchTerm: string;
|
|
738
|
+
value: any;
|
|
739
|
+
isOpen: boolean;
|
|
740
|
+
focusedIndex: number;
|
|
741
|
+
onChange: (value: any) => void;
|
|
742
|
+
onTouched: () => void;
|
|
743
|
+
ngOnInit(): void;
|
|
744
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
745
|
+
private updateFromConfig;
|
|
746
|
+
private updateFromLabels;
|
|
747
|
+
get requiredMarker(): string;
|
|
748
|
+
get searchPlaceholder(): string;
|
|
749
|
+
get selectedSuffix(): string;
|
|
750
|
+
get clearAriaLabel(): string;
|
|
751
|
+
writeValue(value: any): void;
|
|
752
|
+
registerOnChange(fn: any): void;
|
|
753
|
+
registerOnTouched(fn: any): void;
|
|
754
|
+
setDisabledState(isDisabled: boolean): void;
|
|
755
|
+
toggle(): void;
|
|
756
|
+
close(): void;
|
|
757
|
+
selectOption(option: DropdownOption): void;
|
|
758
|
+
isSelected(option: DropdownOption): boolean;
|
|
759
|
+
onSearch(term: string): void;
|
|
760
|
+
clearSelection(event?: Event): void;
|
|
761
|
+
getIconType(icon: any): 'material' | 'fontawesome' | 'img' | 'none';
|
|
762
|
+
getIconValue(icon: any): string;
|
|
763
|
+
getSelectedLabel(): string;
|
|
764
|
+
hasValue(): boolean;
|
|
765
|
+
handleKeyboardEvent(event: KeyboardEvent): void;
|
|
766
|
+
scrollToIndex(index: number): void;
|
|
767
|
+
private getStyleValue;
|
|
768
|
+
get wrapperStyles(): {
|
|
769
|
+
[key: string]: string | undefined;
|
|
770
|
+
};
|
|
771
|
+
get labelStyles(): {
|
|
772
|
+
[key: string]: string | undefined;
|
|
773
|
+
};
|
|
774
|
+
get fieldStyles(): {
|
|
775
|
+
[key: string]: string | undefined;
|
|
776
|
+
};
|
|
777
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
778
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "lib-dropdown", never, { "config": { "alias": "config"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "fontFamily": { "alias": "fontFamily"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "color": { "alias": "color"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "focusBorderColor": { "alias": "focusBorderColor"; "required": false; }; "errorColor": { "alias": "errorColor"; "required": false; }; "disabledBackgroundColor": { "alias": "disabledBackgroundColor"; "required": false; }; "disabledColor": { "alias": "disabledColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, false, never>;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
declare class CheckboxComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
782
|
+
config: CheckboxConfig;
|
|
783
|
+
labels?: CheckboxLabels;
|
|
784
|
+
label: string;
|
|
785
|
+
checked: boolean;
|
|
786
|
+
disabled: boolean;
|
|
787
|
+
required: boolean;
|
|
788
|
+
indeterminate: boolean;
|
|
789
|
+
options: CheckboxOption[];
|
|
790
|
+
labelPosition: 'before' | 'after';
|
|
791
|
+
color: string;
|
|
792
|
+
borderRadius: string;
|
|
793
|
+
value: any;
|
|
794
|
+
errorMessage: string;
|
|
795
|
+
width?: string;
|
|
796
|
+
height?: string;
|
|
797
|
+
fontSize?: string;
|
|
798
|
+
fontWeight?: string;
|
|
799
|
+
labelColor?: string;
|
|
800
|
+
labelFontSize?: string;
|
|
801
|
+
labelFontWeight?: string;
|
|
802
|
+
gap?: string;
|
|
803
|
+
fontFamily?: string;
|
|
804
|
+
backgroundColor?: string;
|
|
805
|
+
borderColor?: string;
|
|
806
|
+
borderWidth?: string;
|
|
807
|
+
padding?: string;
|
|
808
|
+
placeholderColor?: string;
|
|
809
|
+
focusBorderColor?: string;
|
|
810
|
+
errorColor?: string;
|
|
811
|
+
disabledBackgroundColor?: string;
|
|
812
|
+
disabledColor?: string;
|
|
813
|
+
boxShadow?: string;
|
|
814
|
+
size?: string;
|
|
815
|
+
checkedColor?: string;
|
|
816
|
+
uncheckedColor?: string;
|
|
817
|
+
groupLabelColor?: string;
|
|
818
|
+
groupLabelFontSize?: string;
|
|
819
|
+
groupLabelFontWeight?: string;
|
|
820
|
+
checkedChange: EventEmitter<any>;
|
|
821
|
+
onChange: (value: any) => void;
|
|
822
|
+
onTouched: () => void;
|
|
823
|
+
ngOnInit(): void;
|
|
824
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
825
|
+
private updateFromConfig;
|
|
826
|
+
private updateFromLabels;
|
|
827
|
+
get isGroup(): boolean;
|
|
828
|
+
get requiredMarker(): string;
|
|
829
|
+
writeValue(value: any): void;
|
|
830
|
+
registerOnChange(fn: any): void;
|
|
831
|
+
registerOnTouched(fn: any): void;
|
|
832
|
+
setDisabledState(isDisabled: boolean): void;
|
|
833
|
+
onCheckboxChange(event: any): void;
|
|
834
|
+
onGroupCheckboxChange(option: CheckboxOption, event: any): void;
|
|
835
|
+
private getStyleValue;
|
|
836
|
+
get wrapperStyles(): {
|
|
837
|
+
[key: string]: string | undefined;
|
|
838
|
+
};
|
|
839
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
840
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "lib-checkbox", never, { "config": { "alias": "config"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "label": { "alias": "label"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "options": { "alias": "options"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "color": { "alias": "color"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "value": { "alias": "value"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "fontFamily": { "alias": "fontFamily"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "focusBorderColor": { "alias": "focusBorderColor"; "required": false; }; "errorColor": { "alias": "errorColor"; "required": false; }; "disabledBackgroundColor": { "alias": "disabledBackgroundColor"; "required": false; }; "disabledColor": { "alias": "disabledColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; "size": { "alias": "size"; "required": false; }; "checkedColor": { "alias": "checkedColor"; "required": false; }; "uncheckedColor": { "alias": "uncheckedColor"; "required": false; }; "groupLabelColor": { "alias": "groupLabelColor"; "required": false; }; "groupLabelFontSize": { "alias": "groupLabelFontSize"; "required": false; }; "groupLabelFontWeight": { "alias": "groupLabelFontWeight"; "required": false; }; }, { "checkedChange": "checkedChange"; }, never, never, false, never>;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
declare class RadioComponent implements ControlValueAccessor, OnInit {
|
|
844
|
+
config?: RadioConfig;
|
|
845
|
+
label: string;
|
|
846
|
+
options: RadioOption[];
|
|
847
|
+
disabled: boolean;
|
|
848
|
+
required: boolean;
|
|
849
|
+
labelPosition: 'before' | 'after';
|
|
850
|
+
color: 'primary' | 'accent' | 'warn';
|
|
851
|
+
layout: 'vertical' | 'horizontal';
|
|
852
|
+
labels: RadioLabels;
|
|
853
|
+
gap?: string;
|
|
854
|
+
labelColor?: string;
|
|
855
|
+
checkedColor?: string;
|
|
856
|
+
uncheckedColor?: string;
|
|
857
|
+
fontSize?: string;
|
|
858
|
+
fontWeight?: string;
|
|
859
|
+
fontFamily?: string;
|
|
860
|
+
groupLabelColor?: string;
|
|
861
|
+
groupLabelFontSize?: string;
|
|
862
|
+
groupLabelFontWeight?: string;
|
|
863
|
+
disabledColor?: string;
|
|
864
|
+
errorColor?: string;
|
|
865
|
+
size?: string;
|
|
866
|
+
borderRadius?: string;
|
|
867
|
+
labelFontSize?: string;
|
|
868
|
+
labelFontWeight?: string;
|
|
869
|
+
selectionChange: EventEmitter<any>;
|
|
870
|
+
value: any;
|
|
871
|
+
uuid: string;
|
|
872
|
+
private onChange;
|
|
873
|
+
private onTouched;
|
|
874
|
+
ngOnInit(): void;
|
|
875
|
+
ngOnChanges(changes: any): void;
|
|
876
|
+
private updateFromConfig;
|
|
877
|
+
get requiredMarker(): string;
|
|
878
|
+
writeValue(value: any): void;
|
|
879
|
+
registerOnChange(fn: any): void;
|
|
880
|
+
registerOnTouched(fn: any): void;
|
|
881
|
+
setDisabledState(isDisabled: boolean): void;
|
|
882
|
+
onRadioChange(event: any): void;
|
|
883
|
+
private getStyleValue;
|
|
884
|
+
get wrapperStyles(): {
|
|
885
|
+
[key: string]: string | undefined;
|
|
886
|
+
};
|
|
887
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
|
|
888
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "lib-radio", never, { "config": { "alias": "config"; "required": false; }; "label": { "alias": "label"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "color": { "alias": "color"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "checkedColor": { "alias": "checkedColor"; "required": false; }; "uncheckedColor": { "alias": "uncheckedColor"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "fontFamily": { "alias": "fontFamily"; "required": false; }; "groupLabelColor": { "alias": "groupLabelColor"; "required": false; }; "groupLabelFontSize": { "alias": "groupLabelFontSize"; "required": false; }; "groupLabelFontWeight": { "alias": "groupLabelFontWeight"; "required": false; }; "disabledColor": { "alias": "disabledColor"; "required": false; }; "errorColor": { "alias": "errorColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, false, never>;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
declare class ToggleComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
892
|
+
config?: ToggleConfig;
|
|
893
|
+
labels?: ToggleLabels;
|
|
894
|
+
label: string;
|
|
895
|
+
checked: boolean;
|
|
896
|
+
disabled: boolean;
|
|
897
|
+
required: boolean;
|
|
898
|
+
labelPosition: 'before' | 'after';
|
|
899
|
+
color: string;
|
|
900
|
+
labelColor?: string;
|
|
901
|
+
uncheckedColor?: string;
|
|
902
|
+
checkedColor?: string;
|
|
903
|
+
thumbColor?: string;
|
|
904
|
+
checkedThumbColor?: string;
|
|
905
|
+
fontSize?: string;
|
|
906
|
+
fontWeight?: string;
|
|
907
|
+
fontFamily?: string;
|
|
908
|
+
toggleWidth?: string;
|
|
909
|
+
toggleHeight?: string;
|
|
910
|
+
gap?: string;
|
|
911
|
+
sliderColor?: string;
|
|
912
|
+
labelFontSize?: string;
|
|
913
|
+
labelFontWeight?: string;
|
|
914
|
+
disabledColor?: string;
|
|
915
|
+
toggleChange: EventEmitter<boolean>;
|
|
916
|
+
value: boolean;
|
|
917
|
+
private onChange;
|
|
918
|
+
private onTouched;
|
|
919
|
+
ngOnInit(): void;
|
|
920
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
921
|
+
private updateFromConfig;
|
|
922
|
+
private updateFromLabels;
|
|
923
|
+
writeValue(value: any): void;
|
|
924
|
+
registerOnChange(fn: any): void;
|
|
925
|
+
registerOnTouched(fn: any): void;
|
|
926
|
+
setDisabledState(isDisabled: boolean): void;
|
|
927
|
+
onToggleChange(event: any): void;
|
|
928
|
+
private getStyleValue;
|
|
929
|
+
get wrapperStyles(): {
|
|
930
|
+
[key: string]: string | undefined;
|
|
931
|
+
};
|
|
932
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
|
|
933
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "lib-toggle", never, { "config": { "alias": "config"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "label": { "alias": "label"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "color": { "alias": "color"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "uncheckedColor": { "alias": "uncheckedColor"; "required": false; }; "checkedColor": { "alias": "checkedColor"; "required": false; }; "thumbColor": { "alias": "thumbColor"; "required": false; }; "checkedThumbColor": { "alias": "checkedThumbColor"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "fontFamily": { "alias": "fontFamily"; "required": false; }; "toggleWidth": { "alias": "toggleWidth"; "required": false; }; "toggleHeight": { "alias": "toggleHeight"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "sliderColor": { "alias": "sliderColor"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; "disabledColor": { "alias": "disabledColor"; "required": false; }; }, { "toggleChange": "toggleChange"; }, never, never, false, never>;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
declare class DatepickerComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
937
|
+
config?: DatePickerConfig;
|
|
938
|
+
labels?: DatepickerLabels;
|
|
939
|
+
label: string;
|
|
940
|
+
placeholder: string;
|
|
941
|
+
disabled: boolean;
|
|
942
|
+
required: boolean;
|
|
943
|
+
minDate?: string | Date;
|
|
944
|
+
maxDate?: string | Date;
|
|
945
|
+
isRange: boolean;
|
|
946
|
+
startView: 'month' | 'year' | 'multi-year';
|
|
947
|
+
value: any;
|
|
948
|
+
startDate?: string | Date;
|
|
949
|
+
endDate?: string | Date;
|
|
950
|
+
errorMessage: string;
|
|
951
|
+
width?: string;
|
|
952
|
+
height?: string;
|
|
953
|
+
borderRadius?: string;
|
|
954
|
+
fontSize?: string;
|
|
955
|
+
gap?: string;
|
|
956
|
+
fontFamily?: string;
|
|
957
|
+
labelColor?: string;
|
|
958
|
+
labelFontSize?: string;
|
|
959
|
+
labelFontWeight?: string;
|
|
960
|
+
backgroundColor?: string;
|
|
961
|
+
borderColor?: string;
|
|
962
|
+
borderWidth?: string;
|
|
963
|
+
padding?: string;
|
|
964
|
+
fontWeight?: string;
|
|
965
|
+
color?: string;
|
|
966
|
+
placeholderColor?: string;
|
|
967
|
+
focusBorderColor?: string;
|
|
968
|
+
errorColor?: string;
|
|
969
|
+
disabledBackgroundColor?: string;
|
|
970
|
+
disabledColor?: string;
|
|
971
|
+
boxShadow?: string;
|
|
972
|
+
dateChange: EventEmitter<any>;
|
|
973
|
+
onChange: (value: any) => void;
|
|
974
|
+
onTouched: () => void;
|
|
975
|
+
focused: boolean;
|
|
976
|
+
ngOnInit(): void;
|
|
977
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
978
|
+
private updateFromConfig;
|
|
979
|
+
private updateFromLabels;
|
|
980
|
+
get requiredMarker(): string;
|
|
981
|
+
get startDateLabel(): string;
|
|
982
|
+
get endDateLabel(): string;
|
|
983
|
+
private formatDate;
|
|
984
|
+
get formattedValue(): string;
|
|
985
|
+
get formattedStartDate(): string;
|
|
986
|
+
get formattedEndDate(): string;
|
|
987
|
+
get formattedMin(): string;
|
|
988
|
+
get formattedMax(): string;
|
|
989
|
+
writeValue(value: any): void;
|
|
990
|
+
registerOnChange(fn: any): void;
|
|
991
|
+
registerOnTouched(fn: any): void;
|
|
992
|
+
setDisabledState(isDisabled: boolean): void;
|
|
993
|
+
onDateInput(event: any): void;
|
|
994
|
+
onBlur(): void;
|
|
995
|
+
onFocus(): void;
|
|
996
|
+
onRangeStartInput(event: any): void;
|
|
997
|
+
onRangeEndInput(event: any): void;
|
|
998
|
+
private updateRangeValue;
|
|
999
|
+
private getStyleValue;
|
|
1000
|
+
get wrapperStyles(): {
|
|
1001
|
+
[key: string]: string | undefined;
|
|
1002
|
+
};
|
|
1003
|
+
get labelStyles(): {
|
|
1004
|
+
[key: string]: string | undefined;
|
|
1005
|
+
};
|
|
1006
|
+
get fieldStyles(): {
|
|
1007
|
+
[key: string]: string | undefined;
|
|
1008
|
+
};
|
|
1009
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
1010
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "lib-datepicker", never, { "config": { "alias": "config"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "isRange": { "alias": "isRange"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "value": { "alias": "value"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "fontFamily": { "alias": "fontFamily"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "color": { "alias": "color"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "focusBorderColor": { "alias": "focusBorderColor"; "required": false; }; "errorColor": { "alias": "errorColor"; "required": false; }; "disabledBackgroundColor": { "alias": "disabledBackgroundColor"; "required": false; }; "disabledColor": { "alias": "disabledColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; }, { "dateChange": "dateChange"; }, never, never, false, never>;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
declare class SearchComponent implements ControlValueAccessor, OnInit, OnDestroy, OnChanges {
|
|
1014
|
+
config?: FilterSearchConfig;
|
|
1015
|
+
labels?: SearchLabels;
|
|
1016
|
+
placeholder: string;
|
|
1017
|
+
label: string;
|
|
1018
|
+
disabled: boolean;
|
|
1019
|
+
debounceMs: number;
|
|
1020
|
+
clearable: boolean;
|
|
1021
|
+
value: any;
|
|
1022
|
+
width?: string;
|
|
1023
|
+
height?: string;
|
|
1024
|
+
borderRadius?: string;
|
|
1025
|
+
fontSize?: string;
|
|
1026
|
+
gap?: string;
|
|
1027
|
+
fontFamily?: string;
|
|
1028
|
+
labelColor?: string;
|
|
1029
|
+
labelFontSize?: string;
|
|
1030
|
+
labelFontWeight?: string;
|
|
1031
|
+
backgroundColor?: string;
|
|
1032
|
+
borderColor?: string;
|
|
1033
|
+
borderWidth?: string;
|
|
1034
|
+
border?: string;
|
|
1035
|
+
padding?: string;
|
|
1036
|
+
fontWeight?: string;
|
|
1037
|
+
color?: string;
|
|
1038
|
+
textColor?: string;
|
|
1039
|
+
iconColor?: string;
|
|
1040
|
+
placeholderColor?: string;
|
|
1041
|
+
focusBorderColor?: string;
|
|
1042
|
+
disabledBackgroundColor?: string;
|
|
1043
|
+
disabledColor?: string;
|
|
1044
|
+
boxShadow?: string;
|
|
1045
|
+
search: EventEmitter<string>;
|
|
1046
|
+
clear: EventEmitter<void>;
|
|
1047
|
+
private searchSubject;
|
|
1048
|
+
focused: boolean;
|
|
1049
|
+
onChange: (value: any) => void;
|
|
1050
|
+
onTouched: () => void;
|
|
1051
|
+
ngOnInit(): void;
|
|
1052
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1053
|
+
private updateFromConfig;
|
|
1054
|
+
private updateFromLabels;
|
|
1055
|
+
ngOnDestroy(): void;
|
|
1056
|
+
get clearAriaLabel(): string;
|
|
1057
|
+
writeValue(value: any): void;
|
|
1058
|
+
registerOnChange(fn: any): void;
|
|
1059
|
+
registerOnTouched(fn: any): void;
|
|
1060
|
+
setDisabledState(isDisabled: boolean): void;
|
|
1061
|
+
onInputChange(event: any): void;
|
|
1062
|
+
onClear(): void;
|
|
1063
|
+
onBlur(): void;
|
|
1064
|
+
onFocus(): void;
|
|
1065
|
+
private getStyleValue;
|
|
1066
|
+
get wrapperStyles(): {
|
|
1067
|
+
[key: string]: string | undefined;
|
|
1068
|
+
};
|
|
1069
|
+
get labelStyles(): {
|
|
1070
|
+
[key: string]: string | undefined;
|
|
1071
|
+
};
|
|
1072
|
+
get fieldStyles(): {
|
|
1073
|
+
[key: string]: string | undefined;
|
|
1074
|
+
};
|
|
1075
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchComponent, never>;
|
|
1076
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "lib-search", never, { "config": { "alias": "config"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "debounceMs": { "alias": "debounceMs"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "value": { "alias": "value"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "fontFamily": { "alias": "fontFamily"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "border": { "alias": "border"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "color": { "alias": "color"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "focusBorderColor": { "alias": "focusBorderColor"; "required": false; }; "disabledBackgroundColor": { "alias": "disabledBackgroundColor"; "required": false; }; "disabledColor": { "alias": "disabledColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; }, { "search": "search"; "clear": "clear"; }, never, never, false, never>;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
declare class ClickOutsideDirective {
|
|
1080
|
+
private elementRef;
|
|
1081
|
+
libClickOutside: EventEmitter<void>;
|
|
1082
|
+
constructor(elementRef: ElementRef);
|
|
1083
|
+
onClick(target: any): void;
|
|
1084
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
|
|
1085
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[libClickOutside]", never, {}, { "libClickOutside": "libClickOutside"; }, never, never, false, never>;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
declare class FormComponentsModule {
|
|
1089
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponentsModule, never>;
|
|
1090
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormComponentsModule, [typeof InputComponent, typeof DropdownComponent, typeof CheckboxComponent, typeof RadioComponent, typeof ToggleComponent, typeof DatepickerComponent, typeof SearchComponent, typeof ClickOutsideDirective], [typeof i2$1.CommonModule, typeof i3$1.ReactiveFormsModule, typeof i3$1.FormsModule, typeof i11$1.ScrollingModule], [typeof InputComponent, typeof DropdownComponent, typeof CheckboxComponent, typeof RadioComponent, typeof ToggleComponent, typeof DatepickerComponent, typeof SearchComponent]>;
|
|
1091
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormComponentsModule>;
|
|
297
1092
|
}
|
|
298
1093
|
|
|
299
1094
|
declare class FilterSidebarModule {
|
|
300
1095
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterSidebarModule, never>;
|
|
301
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FilterSidebarModule, [typeof FilterSidebarComponent], [typeof i2$1.CommonModule, typeof i3$1.FormsModule, typeof i3$1.ReactiveFormsModule, typeof
|
|
1096
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FilterSidebarModule, [typeof FilterSidebarComponent], [typeof i2$1.CommonModule, typeof i3$1.FormsModule, typeof i3$1.ReactiveFormsModule, typeof FormComponentsModule, typeof ButtonModule], [typeof FilterSidebarComponent]>;
|
|
302
1097
|
static ɵinj: i0.ɵɵInjectorDeclaration<FilterSidebarModule>;
|
|
303
1098
|
}
|
|
304
1099
|
|
|
1100
|
+
interface TableFilterItem {
|
|
1101
|
+
key?: string;
|
|
1102
|
+
type: FilterItemType;
|
|
1103
|
+
label?: string;
|
|
1104
|
+
visible?: boolean;
|
|
1105
|
+
inputConfig?: InputConfig;
|
|
1106
|
+
dropdownConfig?: DropdownConfig;
|
|
1107
|
+
checkboxConfig?: CheckboxConfig;
|
|
1108
|
+
radioConfig?: RadioConfig;
|
|
1109
|
+
toggleConfig?: ToggleConfig;
|
|
1110
|
+
datepickerConfig?: DatePickerConfig;
|
|
1111
|
+
searchConfig?: FilterSearchConfig;
|
|
1112
|
+
children?: TableFilterItem[];
|
|
1113
|
+
expanded?: boolean;
|
|
1114
|
+
styles?: {
|
|
1115
|
+
[key: string]: string;
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
interface TableFilterConfig {
|
|
1119
|
+
items: TableFilterItem[];
|
|
1120
|
+
styles?: {
|
|
1121
|
+
width?: string;
|
|
1122
|
+
padding?: string;
|
|
1123
|
+
gap?: string;
|
|
1124
|
+
backgroundColor?: string;
|
|
1125
|
+
borderRadius?: string;
|
|
1126
|
+
headerHeight?: string;
|
|
1127
|
+
};
|
|
1128
|
+
columns?: TableFilterColumn[];
|
|
1129
|
+
settings?: {
|
|
1130
|
+
persistent?: boolean;
|
|
1131
|
+
collapsible?: boolean;
|
|
1132
|
+
};
|
|
1133
|
+
actions?: {
|
|
1134
|
+
clear?: {
|
|
1135
|
+
visible?: boolean;
|
|
1136
|
+
label?: string;
|
|
1137
|
+
};
|
|
1138
|
+
apply?: {
|
|
1139
|
+
visible?: boolean;
|
|
1140
|
+
label?: string;
|
|
1141
|
+
};
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
interface TableFilterColumn {
|
|
1145
|
+
id: string;
|
|
1146
|
+
label: string;
|
|
1147
|
+
visible: boolean;
|
|
1148
|
+
filterable?: boolean;
|
|
1149
|
+
filterOptions?: any[];
|
|
1150
|
+
}
|
|
1151
|
+
interface TableFilterLabels {
|
|
1152
|
+
filterBtn: string;
|
|
1153
|
+
clear: string;
|
|
1154
|
+
apply: string;
|
|
1155
|
+
search: string;
|
|
1156
|
+
columns: string;
|
|
1157
|
+
showAll: string;
|
|
1158
|
+
hideAll: string;
|
|
1159
|
+
items?: string;
|
|
1160
|
+
}
|
|
1161
|
+
interface TableFilterOutput {
|
|
1162
|
+
[key: string]: any;
|
|
1163
|
+
}
|
|
1164
|
+
interface TableFilterChangeEvent {
|
|
1165
|
+
key: string;
|
|
1166
|
+
value: any;
|
|
1167
|
+
allFilters: TableFilterOutput;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
declare class FilterComponent implements OnInit {
|
|
1171
|
+
private elementRef;
|
|
1172
|
+
private router;
|
|
1173
|
+
private route;
|
|
1174
|
+
config: TableFilterConfig;
|
|
1175
|
+
activeFilters: TableFilterOutput;
|
|
1176
|
+
columns: TableFilterColumn[];
|
|
1177
|
+
labels: TableFilterLabels;
|
|
1178
|
+
theme: string;
|
|
1179
|
+
filterChange: EventEmitter<TableFilterOutput>;
|
|
1180
|
+
columnChange: EventEmitter<TableFilterColumn[]>;
|
|
1181
|
+
toggle: EventEmitter<boolean>;
|
|
1182
|
+
isOpen: boolean;
|
|
1183
|
+
activeTab: 'filters' | 'columns';
|
|
1184
|
+
tempFilters: TableFilterOutput;
|
|
1185
|
+
tempColumns: TableFilterColumn[];
|
|
1186
|
+
constructor(elementRef: ElementRef, router: Router, route: ActivatedRoute);
|
|
1187
|
+
ngOnInit(): void;
|
|
1188
|
+
private initFromUrl;
|
|
1189
|
+
onClickOutside(event: Event): void;
|
|
1190
|
+
togglePanel(): void;
|
|
1191
|
+
setActiveTab(tab: 'filters' | 'columns'): void;
|
|
1192
|
+
onFilterChange(key: string | undefined, value: any): void;
|
|
1193
|
+
toggleColumn(columnId: string): void;
|
|
1194
|
+
toggleAllColumns(visible: boolean): void;
|
|
1195
|
+
clearAll(): void;
|
|
1196
|
+
apply(): void;
|
|
1197
|
+
private updateUrl;
|
|
1198
|
+
activeFilterCountValue(): number;
|
|
1199
|
+
get activeFilterCount(): number;
|
|
1200
|
+
private syncTempState;
|
|
1201
|
+
get containerStyles(): {
|
|
1202
|
+
[key: string]: string;
|
|
1203
|
+
};
|
|
1204
|
+
trackByFn(index: number, item: any): any;
|
|
1205
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
|
|
1206
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "lib-filter", never, { "config": { "alias": "config"; "required": false; }; "activeFilters": { "alias": "activeFilters"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "filterChange": "filterChange"; "columnChange": "columnChange"; "toggle": "toggle"; }, never, never, false, never>;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
declare class FilterModule {
|
|
1210
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterModule, never>;
|
|
1211
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FilterModule, [typeof FilterComponent], [typeof i2$1.CommonModule, typeof i3$1.FormsModule, typeof i3$1.ReactiveFormsModule, typeof ButtonModule, typeof FormComponentsModule], [typeof FilterComponent]>;
|
|
1212
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FilterModule>;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
305
1215
|
interface SummaryCardConfig {
|
|
306
1216
|
header: string;
|
|
307
1217
|
value: string;
|
|
@@ -461,11 +1371,7 @@ interface FormSection {
|
|
|
461
1371
|
}
|
|
462
1372
|
interface FormConfig {
|
|
463
1373
|
sections: FormSection[];
|
|
464
|
-
submitLabel?: string;
|
|
465
|
-
cancelLabel?: string;
|
|
466
|
-
saveDraftLabel?: string;
|
|
467
1374
|
entityType?: string;
|
|
468
|
-
isModal?: boolean;
|
|
469
1375
|
}
|
|
470
1376
|
interface JsonFieldConfig {
|
|
471
1377
|
jsonKey: string;
|
|
@@ -489,12 +1395,11 @@ declare class ConfigurableFormComponent implements OnInit, OnChanges {
|
|
|
489
1395
|
jsonConfig: JsonFormConfig;
|
|
490
1396
|
data: any;
|
|
491
1397
|
baseApiUrl: string;
|
|
492
|
-
formSubmit: EventEmitter<any>;
|
|
493
|
-
formCancel: EventEmitter<void>;
|
|
494
1398
|
optionsLoad: EventEmitter<any>;
|
|
495
1399
|
form: FormGroup;
|
|
496
1400
|
processedConfig: FormConfig;
|
|
497
1401
|
fieldVisibilityMap: Map<string, boolean>;
|
|
1402
|
+
passwordFieldState: Map<string, boolean>;
|
|
498
1403
|
constructor(fb: FormBuilder, snackBar: MatSnackBar, http: HttpClient);
|
|
499
1404
|
ngOnInit(): void;
|
|
500
1405
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -513,7 +1418,7 @@ declare class ConfigurableFormComponent implements OnInit, OnChanges {
|
|
|
513
1418
|
getFormArray(name: string): FormArray;
|
|
514
1419
|
addRepeaterItem(section: FormSection): void;
|
|
515
1420
|
removeRepeaterItem(sectionName: string, index: number): void;
|
|
516
|
-
|
|
1421
|
+
validate(): boolean;
|
|
517
1422
|
scrollToFirstInvalidControl(): void;
|
|
518
1423
|
setupDependencies(): void;
|
|
519
1424
|
onFieldValueChange(field: FormField, value: any): void;
|
|
@@ -528,11 +1433,12 @@ declare class ConfigurableFormComponent implements OnInit, OnChanges {
|
|
|
528
1433
|
updateFileControlValue(field: FormField): void;
|
|
529
1434
|
getCharacterCount(fieldName: string): number;
|
|
530
1435
|
toggleSection(section: FormSection): void;
|
|
531
|
-
onCancel(): void;
|
|
532
1436
|
private findFieldByName;
|
|
533
1437
|
get sections(): FormSection[];
|
|
1438
|
+
togglePassword(fieldName: string): void;
|
|
1439
|
+
isPasswordVisible(fieldName: string): boolean;
|
|
534
1440
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurableFormComponent, never>;
|
|
535
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurableFormComponent, "lib-configurable-form", never, { "config": { "alias": "config"; "required": false; }; "jsonConfig": { "alias": "jsonConfig"; "required": false; }; "data": { "alias": "data"; "required": false; }; "baseApiUrl": { "alias": "baseApiUrl"; "required": false; }; }, { "
|
|
1441
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurableFormComponent, "lib-configurable-form", never, { "config": { "alias": "config"; "required": false; }; "jsonConfig": { "alias": "jsonConfig"; "required": false; }; "data": { "alias": "data"; "required": false; }; "baseApiUrl": { "alias": "baseApiUrl"; "required": false; }; }, { "optionsLoad": "optionsLoad"; }, never, never, true, never>;
|
|
536
1442
|
}
|
|
537
1443
|
|
|
538
1444
|
declare class ConfigurableFormModule {
|
|
@@ -822,7 +1728,7 @@ declare class SmartFormModule {
|
|
|
822
1728
|
|
|
823
1729
|
declare class SharedUiModule {
|
|
824
1730
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedUiModule, never>;
|
|
825
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedUiModule, never, [typeof i2$1.CommonModule, typeof MaterialModule, typeof AlertModule, typeof ButtonModule, typeof ConfirmationModalModule, typeof FilterSidebarModule, typeof SummaryCardModule, typeof ConfigurableFormModule, typeof SmartFormModule], [typeof MaterialModule, typeof AlertModule, typeof ButtonModule, typeof ConfirmationModalModule, typeof FilterSidebarModule, typeof SummaryCardModule, typeof ConfigurableFormModule, typeof SmartFormModule]>;
|
|
1731
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedUiModule, never, [typeof i2$1.CommonModule, typeof MaterialModule, typeof AlertModule, typeof ButtonModule, typeof ConfirmationModalModule, typeof FilterSidebarModule, typeof FilterModule, typeof SummaryCardModule, typeof ConfigurableFormModule, typeof FormComponentsModule, typeof SmartFormModule], [typeof MaterialModule, typeof AlertModule, typeof ButtonModule, typeof ConfirmationModalModule, typeof FilterSidebarModule, typeof FilterModule, typeof SummaryCardModule, typeof ConfigurableFormModule, typeof FormComponentsModule, typeof SmartFormModule]>;
|
|
826
1732
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedUiModule>;
|
|
827
1733
|
}
|
|
828
1734
|
|
|
@@ -979,6 +1885,8 @@ interface TableColumn {
|
|
|
979
1885
|
sticky?: boolean;
|
|
980
1886
|
labelPath?: string;
|
|
981
1887
|
dateFormat?: string;
|
|
1888
|
+
clickAction?: 'route' | 'callback';
|
|
1889
|
+
clickRoute?: string;
|
|
982
1890
|
}
|
|
983
1891
|
interface TableFilter {
|
|
984
1892
|
key: string;
|
|
@@ -1057,7 +1965,8 @@ interface TableConfig {
|
|
|
1057
1965
|
maxHeight?: string;
|
|
1058
1966
|
stickyHeader?: boolean;
|
|
1059
1967
|
stickyColumnCount?: number;
|
|
1060
|
-
|
|
1968
|
+
token?: string;
|
|
1969
|
+
tokenHeader?: string;
|
|
1061
1970
|
}
|
|
1062
1971
|
interface SearchConfig {
|
|
1063
1972
|
enabled: boolean;
|
|
@@ -1089,7 +1998,10 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
|
|
|
1089
1998
|
value: any;
|
|
1090
1999
|
}>;
|
|
1091
2000
|
rowSelect: EventEmitter<any[]>;
|
|
1092
|
-
|
|
2001
|
+
columnClick: EventEmitter<{
|
|
2002
|
+
row: any;
|
|
2003
|
+
column: string;
|
|
2004
|
+
}>;
|
|
1093
2005
|
data: any[];
|
|
1094
2006
|
totalItems: number;
|
|
1095
2007
|
currentPage: number;
|
|
@@ -1138,9 +2050,10 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
|
|
|
1138
2050
|
private calculateStickyPositions;
|
|
1139
2051
|
private toTitleCase;
|
|
1140
2052
|
get columnCount(): number;
|
|
1141
|
-
|
|
2053
|
+
onColumnClick(row: any, col: TableColumn): void;
|
|
2054
|
+
private getHeaders;
|
|
1142
2055
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableComponent, never>;
|
|
1143
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableComponent, "lib-smart-table", never, { "config": { "alias": "config"; "required": false; }; }, { "action": "action"; "topAction": "topAction"; "filterChange": "filterChange"; "rowSelect": "rowSelect"; "
|
|
2056
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableComponent, "lib-smart-table", never, { "config": { "alias": "config"; "required": false; }; }, { "action": "action"; "topAction": "topAction"; "filterChange": "filterChange"; "rowSelect": "rowSelect"; "columnClick": "columnClick"; }, never, never, false, never>;
|
|
1144
2057
|
}
|
|
1145
2058
|
|
|
1146
2059
|
declare class SmartTableModule {
|
|
@@ -1175,5 +2088,5 @@ declare namespace smartForm_examples_d {
|
|
|
1175
2088
|
};
|
|
1176
2089
|
}
|
|
1177
2090
|
|
|
1178
|
-
export { AlertComponent, AlertModule, ButtonComponent, ButtonModule, ConfigurableFormComponent, configurableForm_examples_d as ConfigurableFormExamples, ConfigurableFormModule, ConfirmationModalComponent, ConfirmationModalModule, DEFAULT_ITEMS_PER_PAGE, DEFAULT_PAGE_SIZE_OPTIONS, ExpressionService, FilterSidebarComponent, FilterSidebarModule, MaterialModule, NAV_ORIENTATION_DEFAULT, NAV_VARIANT_DEFAULT, NavComponent, NavModule, PAGINATION_THEME_DARK, PAGINATION_THEME_DEFAULT, PaginationComponent, PaginationModule, SharedUiModule, SmartFormComponent, SmartFormController, smartForm_examples_d as SmartFormExamples, SmartFormModule, SmartTableComponent, SmartTableModule, SummaryCardComponent, SummaryCardModule, ValidationUtils, clearLocalStorage, clearSessionStorage, getLocalStorageItem, getSessionStorageItem, removeLocalStorageItem, removeSessionStorageItem, setLocalStorageItem, setSessionStorageItem };
|
|
1179
|
-
export type { AlertVariant, AttachmentConfig, ButtonVariant, ConfirmationModalConfig, DateConfig, EmailConfig, FieldConfig, FieldType, FilterChangeEvent, FilterConfig,
|
|
2091
|
+
export { AlertComponent, AlertModule, ButtonComponent, ButtonModule, CheckboxComponent, ConfigurableFormComponent, configurableForm_examples_d as ConfigurableFormExamples, ConfigurableFormModule, ConfirmationModalComponent, ConfirmationModalModule, DEFAULT_ITEMS_PER_PAGE, DEFAULT_PAGE_SIZE_OPTIONS, DatepickerComponent, DropdownComponent, ExpressionService, FilterComponent, FilterModule, FilterSidebarComponent, FilterSidebarModule, FormComponentsModule, InputComponent, MaterialModule, NAV_ORIENTATION_DEFAULT, NAV_VARIANT_DEFAULT, NavComponent, NavModule, PAGINATION_THEME_DARK, PAGINATION_THEME_DEFAULT, PaginationComponent, PaginationModule, RadioComponent, SearchComponent, SharedUiModule, SmartFormComponent, SmartFormController, smartForm_examples_d as SmartFormExamples, SmartFormModule, SmartTableComponent, SmartTableModule, SummaryCardComponent, SummaryCardModule, ToggleComponent, ValidationUtils, clearLocalStorage, clearSessionStorage, getLocalStorageItem, getSessionStorageItem, removeLocalStorageItem, removeSessionStorageItem, setLocalStorageItem, setSessionStorageItem };
|
|
2092
|
+
export type { AlertLabels, AlertVariant, AttachmentConfig, ButtonLabels, ButtonVariant, CheckboxConfig, CheckboxLabels, CheckboxOption, ConfirmationModalConfig, DateConfig, DatePickerConfig, DatepickerLabels, DropdownConfig, DropdownLabels, DropdownOption, EmailConfig, FieldConfig, FieldType, FilterChangeEvent, FilterConfig, FilterItem, FilterItemType, FilterOutput, FilterSearchConfig, FilterSidebarChangeEvent, FilterSidebarConfig, FilterSidebarOutput, FormConfig, FormField, FormOption, FormSchema, FormSection, GeneratedConfig, IconInput, InputConfig, InputLabels, InputType, JsonFieldConfig, JsonFormConfig, KeyType, LengthConstraint, LocationConfig, NavItem, NavStyleConfig, NestedStringConfig, NumberConfig, OptionConfig$1 as OptionConfig, OptionDTO, OptionItem, PaginationConfig, PaginationLabels, PhoneConfig, QueryParamsConfig, RadioConfig, RadioLabels, RadioOption, RangeConfig, RatingConfig, SearchConfig, SearchLabels, SectionConfig, StepperConfig, SubmitConfig, SummaryCardConfig, SummaryCardMeta, TableAction, TableColumn, TableConfig, TableFilter, TableFilterChangeEvent, TableFilterColumn, TableFilterConfig, TableFilterItem, TableFilterLabels, TableFilterOutput, TableLabels, TableOption, TableTheme, TextConfig, ToggleConfig, ToggleLabels, UIConfig, UISubType, UIType, UploadedFile, ValidationResult, ValidationRules };
|