easy-mat-ui 0.0.7 → 1.1.0
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/LICENSE +21 -0
- package/README.md +482 -63
- package/fesm2022/easy-mat-ui.mjs +3724 -564
- package/fesm2022/easy-mat-ui.mjs.map +1 -1
- package/index.d.ts +1221 -55
- package/package.json +59 -22
- package/page-generator/blocks.js +155 -0
- package/page-generator/catalog.js +132 -0
- package/page-generator/cli/main.js +314 -0
- package/page-generator/cli/project.js +252 -0
- package/page-generator/context.js +108 -0
- package/page-generator/generate.js +182 -0
- package/page-generator/index.js +33 -0
- package/page-generator/naming.js +53 -0
- package/page-generator/table.js +310 -0
- package/page-generator/types.js +6 -0
- package/styles/styles/_backgrounds.scss +39 -0
- package/styles/styles/_buttons.scss +90 -0
- package/styles/styles/_colors.scss +197 -0
- package/styles/styles/_effects.scss +44 -0
- package/styles/styles/_material-overrides.scss +106 -0
- package/styles/styles/_spacing.scss +68 -0
- package/styles/styles/_tables.scss +569 -0
- package/styles/styles/_typography.scss +100 -0
- package/styles/styles.scss +29 -0
package/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, AfterViewInit, EventEmitter, ChangeDetectorRef,
|
|
2
|
+
import { OnInit, OnChanges, AfterViewInit, EventEmitter, ChangeDetectorRef, SimpleChanges, Type, QueryList, Injector, InjectionToken, Provider } from '@angular/core';
|
|
3
3
|
import { MatTableDataSource, MatTable } from '@angular/material/table';
|
|
4
|
-
import { MatPaginator } from '@angular/material/paginator';
|
|
4
|
+
import { MatPaginator, MatPaginatorIntl } from '@angular/material/paginator';
|
|
5
5
|
import { MatSort } from '@angular/material/sort';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { FormControl } from '@angular/forms';
|
|
6
|
+
import { MatTabGroup } from '@angular/material/tabs';
|
|
7
|
+
import { FormControl, ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
9
8
|
import { MatSelect } from '@angular/material/select';
|
|
9
|
+
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
10
10
|
import { Observable } from 'rxjs';
|
|
11
11
|
import { MatOptionSelectionChange } from '@angular/material/core';
|
|
12
|
+
import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
|
12
13
|
|
|
13
14
|
declare class EasyMatUiService {
|
|
14
15
|
constructor();
|
|
@@ -21,6 +22,38 @@ declare class EasyMatUiComponent {
|
|
|
21
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<EasyMatUiComponent, "lib-easy-mat-ui", never, {}, {}, never, never, true, never>;
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
interface EasyTableGroupBy {
|
|
26
|
+
field: string;
|
|
27
|
+
collapsible?: boolean;
|
|
28
|
+
expanded?: boolean;
|
|
29
|
+
selectionField?: string;
|
|
30
|
+
emptyLabel?: string;
|
|
31
|
+
showGroupColumn?: boolean;
|
|
32
|
+
showToggleAll?: boolean;
|
|
33
|
+
expandAllLabel?: string;
|
|
34
|
+
collapseAllLabel?: string;
|
|
35
|
+
}
|
|
36
|
+
type EasyCheckState = 'all' | 'some' | 'none';
|
|
37
|
+
interface EasyTableGroupSelectionChange<T = any> {
|
|
38
|
+
field: string;
|
|
39
|
+
groupKey: string;
|
|
40
|
+
groupValue: unknown;
|
|
41
|
+
rows: T[];
|
|
42
|
+
value: boolean;
|
|
43
|
+
previousState: EasyCheckState;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class RowGroupingState {
|
|
47
|
+
private readonly overrides;
|
|
48
|
+
isExpanded(key: string, groupBy: EasyTableGroupBy): boolean;
|
|
49
|
+
setAll(keys: string[], expanded: boolean): void;
|
|
50
|
+
toggle(key: string, groupBy: EasyTableGroupBy): void;
|
|
51
|
+
}
|
|
52
|
+
interface GroupExpansion {
|
|
53
|
+
allExpanded: boolean;
|
|
54
|
+
allCollapsed: boolean;
|
|
55
|
+
}
|
|
56
|
+
|
|
24
57
|
declare enum CRUD {
|
|
25
58
|
CREATE = "create",
|
|
26
59
|
READ = "read",
|
|
@@ -39,7 +72,9 @@ declare enum ColumnType {
|
|
|
39
72
|
ICON_AND_TEXT = "icon-and-text",
|
|
40
73
|
PASSWORD = "password",
|
|
41
74
|
BUTTON = "button",
|
|
42
|
-
DROPDOWNLIST = "dropdownlist"
|
|
75
|
+
DROPDOWNLIST = "dropdownlist",
|
|
76
|
+
IMAGE = "image",
|
|
77
|
+
Checkbox = "checkbox"
|
|
43
78
|
}
|
|
44
79
|
declare enum ColumnSize {
|
|
45
80
|
XSmall = "x-small-column",
|
|
@@ -50,12 +85,21 @@ declare enum ColumnSize {
|
|
|
50
85
|
}
|
|
51
86
|
declare enum InputType {
|
|
52
87
|
Dropdown = "ddl",
|
|
88
|
+
MultiSelect = "multiselect",
|
|
53
89
|
Text = "text",
|
|
54
90
|
Number = "number",
|
|
55
91
|
Date = "date",
|
|
56
92
|
TextArea = "textarea",
|
|
57
93
|
Checkbox = "checkbox"
|
|
58
94
|
}
|
|
95
|
+
declare enum ScreenSize {
|
|
96
|
+
lg = 1281,// High Resolution desktops min-width:1281px
|
|
97
|
+
md = 1025,// Laptop and desktops min-width:1025px
|
|
98
|
+
sml = 801,// Landscape Tablet and iPads min-width:801px
|
|
99
|
+
sm = 600,// Portrait Tablet and iPads min-width:600px
|
|
100
|
+
xsl = 480,// Phone with Landscape mode min-width:480px
|
|
101
|
+
sx = 320
|
|
102
|
+
}
|
|
59
103
|
|
|
60
104
|
declare class Dictionary {
|
|
61
105
|
key: string;
|
|
@@ -72,10 +116,55 @@ declare class Tuple {
|
|
|
72
116
|
constructor(item1: string, item2: string, item3: string | null, item4?: string | null | undefined);
|
|
73
117
|
}
|
|
74
118
|
|
|
119
|
+
type EasyColumnAlign = 'left' | 'center' | 'right';
|
|
120
|
+
interface EasyColumnSelection {
|
|
121
|
+
enabled?: boolean;
|
|
122
|
+
headerAlign?: EasyColumnAlign;
|
|
123
|
+
disabledFn?: (row: any) => boolean;
|
|
124
|
+
}
|
|
125
|
+
interface EasyTableSelectionChange<T = any> {
|
|
126
|
+
field: string;
|
|
127
|
+
row: T;
|
|
128
|
+
value: boolean;
|
|
129
|
+
previousValue: boolean | undefined;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** How a column is filtered from the table header: a multi-select of its values, or a free text input. */
|
|
133
|
+
type ColumnFilterType = 'select' | 'text';
|
|
75
134
|
declare class MatColumnTyped {
|
|
135
|
+
static readonly ColumnType: {
|
|
136
|
+
readonly ICON: "icon";
|
|
137
|
+
readonly TEXT: "text";
|
|
138
|
+
readonly DATE: "date";
|
|
139
|
+
readonly DATE_TIME: "date-time";
|
|
140
|
+
readonly NUMBER: "number";
|
|
141
|
+
readonly FILTER: "filter";
|
|
142
|
+
readonly ICON_AND_TEXT: "icon-and-text";
|
|
143
|
+
readonly PASSWORD: "password";
|
|
144
|
+
readonly BUTTON: "button";
|
|
145
|
+
readonly DROPDOWNLIST: "dropdownlist";
|
|
146
|
+
readonly IMAGE: "image";
|
|
147
|
+
readonly CHECKBOX: "checkbox";
|
|
148
|
+
};
|
|
149
|
+
static readonly ColumnSize: {
|
|
150
|
+
readonly XSmall: "x-small-column";
|
|
151
|
+
readonly Small: "small-column";
|
|
152
|
+
readonly Medium: "medium-column";
|
|
153
|
+
readonly Large: "large-column";
|
|
154
|
+
readonly XLarge: "x-large-column";
|
|
155
|
+
};
|
|
156
|
+
static readonly InputType: {
|
|
157
|
+
readonly Dropdown: "ddl";
|
|
158
|
+
readonly MultiSelect: "multiselect";
|
|
159
|
+
readonly Text: "text";
|
|
160
|
+
readonly Number: "number";
|
|
161
|
+
readonly Date: "date";
|
|
162
|
+
readonly TextArea: "textarea";
|
|
163
|
+
readonly Checkbox: "checkbox";
|
|
164
|
+
};
|
|
76
165
|
name: string;
|
|
77
166
|
value: string | null;
|
|
78
|
-
type?: ColumnType;
|
|
167
|
+
type?: ColumnType | string;
|
|
79
168
|
enableIcon: string;
|
|
80
169
|
disableIcon: string;
|
|
81
170
|
enableColor: string;
|
|
@@ -86,16 +175,27 @@ declare class MatColumnTyped {
|
|
|
86
175
|
disableTitleFromColumnName: string | null;
|
|
87
176
|
mixColumnIconColor: Tuple[];
|
|
88
177
|
enableFilter: boolean;
|
|
178
|
+
/** Kind of header filter shown when `enableFilter` is on (and `withFilterInHeader` for the table). */
|
|
179
|
+
filterType: ColumnFilterType;
|
|
89
180
|
filterList: any[];
|
|
181
|
+
optionsFilter?: (option: any, data: any) => boolean;
|
|
90
182
|
isOverwriting: boolean;
|
|
91
183
|
readonly: boolean;
|
|
92
184
|
stickyClass: string;
|
|
185
|
+
/**
|
|
186
|
+
* CSS class(es) added to the header cell of this column only, never to its body cells. With a class such as
|
|
187
|
+
* `text-center` or `text-end` the title (or header icon) is aligned accordingly, for example to centre the title of
|
|
188
|
+
* an icon column while the cells keep their own alignment. Empty by default: the header looks as before.
|
|
189
|
+
*/
|
|
190
|
+
headerClass: string;
|
|
93
191
|
isDynamic: boolean;
|
|
94
192
|
displayColumn: string | null;
|
|
193
|
+
filterValue: string | null;
|
|
194
|
+
isRequired: boolean;
|
|
95
195
|
id: string;
|
|
96
196
|
size?: ColumnSize | string;
|
|
97
197
|
gridSize: number;
|
|
98
|
-
inputType?: InputType;
|
|
198
|
+
inputType?: InputType | string;
|
|
99
199
|
order: number;
|
|
100
200
|
compareFn?: (o1: any, o2: any) => boolean;
|
|
101
201
|
cssClass?: string;
|
|
@@ -104,17 +204,39 @@ declare class MatColumnTyped {
|
|
|
104
204
|
groupName: string;
|
|
105
205
|
groupClass: string;
|
|
106
206
|
groupLabel: string;
|
|
107
|
-
groupOrder: number;
|
|
207
|
+
groupOrder: number | null;
|
|
208
|
+
translateTitle?: string | null;
|
|
209
|
+
title?: string | null;
|
|
210
|
+
titleFallback?: string | null;
|
|
211
|
+
headerIcon?: string | null;
|
|
212
|
+
selection?: EasyColumnSelection;
|
|
108
213
|
constructor(init?: Partial<MatColumnTyped>);
|
|
214
|
+
get checkboxHeaderAlignClass(): string;
|
|
215
|
+
static allColumnTypes(): string[];
|
|
216
|
+
static allColumnSizes(): string[];
|
|
217
|
+
static allInputTypes(): string[];
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
type TitlePipe = (value: any, arg?: string) => any;
|
|
221
|
+
type TitleTranslate = (key: string) => string;
|
|
222
|
+
declare class TitleFormatter {
|
|
223
|
+
private static readonly LOCALE;
|
|
224
|
+
private static readonly pipes;
|
|
225
|
+
static register(name: string, fn: TitlePipe): void;
|
|
226
|
+
static format(template: string | null | undefined, item: any, fallback?: string | null, translate?: TitleTranslate): string;
|
|
227
|
+
private static tryRun;
|
|
228
|
+
private static run;
|
|
229
|
+
private static render;
|
|
109
230
|
}
|
|
110
231
|
|
|
111
232
|
declare class MatTabCommon {
|
|
112
|
-
static displayFormatTyped(column: MatColumnTyped, value: string | null | undefined
|
|
233
|
+
static displayFormatTyped(column: MatColumnTyped, value: string | null | undefined): string | null;
|
|
113
234
|
static toFixed(value: string, digits: number): null | string | undefined;
|
|
235
|
+
static getTitle(col: MatColumnTyped, item: any, translate?: TitleTranslate): string;
|
|
114
236
|
static getCssClasses(col: MatColumnTyped, item: any): string;
|
|
115
237
|
}
|
|
116
238
|
|
|
117
|
-
declare class EasyMultiSelect implements OnInit, AfterViewInit {
|
|
239
|
+
declare class EasyMultiSelect implements OnInit, OnChanges, AfterViewInit {
|
|
118
240
|
private cdref;
|
|
119
241
|
componentId: string;
|
|
120
242
|
data: Dictionary[];
|
|
@@ -124,8 +246,19 @@ declare class EasyMultiSelect implements OnInit, AfterViewInit {
|
|
|
124
246
|
selectedData: Dictionary[];
|
|
125
247
|
readOnly: boolean;
|
|
126
248
|
noPlaceholderNoHint: boolean;
|
|
249
|
+
clearable: boolean;
|
|
127
250
|
padding: string;
|
|
128
|
-
appearance: MatFormFieldAppearance;
|
|
251
|
+
appearance: MatFormFieldAppearance | null;
|
|
252
|
+
formField: boolean;
|
|
253
|
+
/** Text shown while nothing is selected. */
|
|
254
|
+
placeholder: string;
|
|
255
|
+
/** Dense 32px field, used for the column filters in table headers. */
|
|
256
|
+
compact: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Single choice: one value at a time, so a plain dropdown (no checkboxes, no select all). `change` still emits an
|
|
259
|
+
* array, holding the chosen value. Set it once: it cannot change after the component is created.
|
|
260
|
+
*/
|
|
261
|
+
single: boolean;
|
|
129
262
|
change: EventEmitter<string[]>;
|
|
130
263
|
multiSelectControl: FormControl<string[] | null>;
|
|
131
264
|
searchCtrl: FormControl<string | null>;
|
|
@@ -134,6 +267,10 @@ declare class EasyMultiSelect implements OnInit, AfterViewInit {
|
|
|
134
267
|
uniqueId: string;
|
|
135
268
|
constructor(cdref: ChangeDetectorRef);
|
|
136
269
|
ngOnInit(): void;
|
|
270
|
+
/** The list or the selection given by the parent changed after the first render (for example a filtered list). */
|
|
271
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
272
|
+
private prepareData;
|
|
273
|
+
private applySelectedData;
|
|
137
274
|
initFilterGroup(): void;
|
|
138
275
|
setMultiSelectControl(values: string[] | null): void;
|
|
139
276
|
private _filter;
|
|
@@ -147,30 +284,149 @@ declare class EasyMultiSelect implements OnInit, AfterViewInit {
|
|
|
147
284
|
clear(): void;
|
|
148
285
|
get hidePlaceholder(): boolean;
|
|
149
286
|
static ɵfac: i0.ɵɵFactoryDeclaration<EasyMultiSelect, never>;
|
|
150
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EasyMultiSelect, "lib-easy-multi-select", never, { "data": { "alias": "data"; "required": false; }; "title": { "alias": "title"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "displayField": { "alias": "displayField"; "required": false; }; "selectedData": { "alias": "selectedData"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "noPlaceholderNoHint": { "alias": "noPlaceholderNoHint"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "idPrefix": { "alias": "idPrefix"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
287
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EasyMultiSelect, "lib-easy-multi-select", never, { "data": { "alias": "data"; "required": false; }; "title": { "alias": "title"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "displayField": { "alias": "displayField"; "required": false; }; "selectedData": { "alias": "selectedData"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "noPlaceholderNoHint": { "alias": "noPlaceholderNoHint"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "formField": { "alias": "formField"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "single": { "alias": "single"; "required": false; }; "idPrefix": { "alias": "idPrefix"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
151
288
|
}
|
|
152
289
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
290
|
+
type ToolbarSaveState = 'pending' | 'saving' | 'saved' | 'error';
|
|
291
|
+
declare class ToolbarTranslations {
|
|
292
|
+
title: string | null;
|
|
293
|
+
search: string;
|
|
294
|
+
clear: string;
|
|
295
|
+
addBtn: string;
|
|
296
|
+
saveBtn: string;
|
|
297
|
+
savePendingBtn: string;
|
|
298
|
+
savingBtn: string;
|
|
299
|
+
savedBtn: string;
|
|
300
|
+
saveErrorBtn: string;
|
|
301
|
+
exportBtn: string;
|
|
302
|
+
importBtn: string;
|
|
303
|
+
close: string;
|
|
304
|
+
auditTrailBtn: string;
|
|
305
|
+
linkBtn: string;
|
|
306
|
+
editBtn: string;
|
|
307
|
+
deleteBtn: string;
|
|
308
|
+
cancelBtn: string;
|
|
309
|
+
deleteConfirmTitle: string;
|
|
310
|
+
deleteConfirmMessage: string;
|
|
311
|
+
customActionTitle: string;
|
|
312
|
+
constructor(data?: Partial<ToolbarTranslations>);
|
|
313
|
+
}
|
|
314
|
+
declare class ToolbarConfig {
|
|
315
|
+
icon: string;
|
|
316
|
+
iconClass: string;
|
|
317
|
+
withGlobalFilter: boolean;
|
|
318
|
+
isAndFilterOperator: boolean;
|
|
319
|
+
logout: boolean;
|
|
320
|
+
btnSize: string;
|
|
321
|
+
saveState: ToolbarSaveState | null;
|
|
322
|
+
customActionEnable: boolean;
|
|
323
|
+
customActionIcon?: string;
|
|
324
|
+
customRowActionClass: string;
|
|
325
|
+
translations: ToolbarTranslations;
|
|
326
|
+
constructor(data?: Partial<Omit<ToolbarConfig, 'translations'>> & {
|
|
327
|
+
translations?: Partial<ToolbarTranslations>;
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
declare const EASY_DIALOG_DEFAULT_WIDTH = "87%";
|
|
332
|
+
declare const EASY_DIALOG_DEFAULT_MAX_WIDTH = "90vw";
|
|
333
|
+
type EasyDialogSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
334
|
+
type EasyDialogButtonColor = 'green' | 'red' | 'blue' | 'yellow' | 'taupe' | 'info';
|
|
335
|
+
interface EasyDialogField {
|
|
336
|
+
name: string;
|
|
337
|
+
inputType?: InputType | string;
|
|
338
|
+
gridSize?: number;
|
|
339
|
+
order?: number;
|
|
340
|
+
readonly?: boolean;
|
|
341
|
+
size?: ColumnSize | string;
|
|
342
|
+
filterList?: any[];
|
|
343
|
+
optionsFilter?: (option: any, data: any) => boolean;
|
|
344
|
+
displayColumn?: string | null;
|
|
345
|
+
filterValue?: string | null;
|
|
346
|
+
isRequired?: boolean;
|
|
347
|
+
}
|
|
348
|
+
interface EasyDialogAction {
|
|
349
|
+
id: string;
|
|
350
|
+
icon: string;
|
|
351
|
+
title?: string;
|
|
352
|
+
color?: EasyDialogButtonColor;
|
|
353
|
+
disabled?: (data: any) => boolean;
|
|
354
|
+
hidden?: boolean;
|
|
355
|
+
}
|
|
356
|
+
interface EasyDialogTranslations {
|
|
357
|
+
actions: Partial<Record<CRUD, string>>;
|
|
358
|
+
clear: string;
|
|
359
|
+
unsavedTitle: string;
|
|
360
|
+
unsavedMessage: string;
|
|
361
|
+
confirmSave: string;
|
|
362
|
+
discard: string;
|
|
363
|
+
incompleteTitle: string;
|
|
364
|
+
incompleteMessage: string;
|
|
365
|
+
auditCreatedBy: string;
|
|
366
|
+
auditUpdatedBy: string;
|
|
367
|
+
auditOn: string;
|
|
368
|
+
auditInactiveSince: string;
|
|
369
|
+
}
|
|
370
|
+
declare const DEFAULT_EASY_DIALOG_TRANSLATIONS: EasyDialogTranslations;
|
|
371
|
+
interface EasyDialogResult<T = Record<string, any>> {
|
|
372
|
+
event: CRUD | 'Cancel' | string;
|
|
373
|
+
data?: T;
|
|
374
|
+
}
|
|
375
|
+
declare class EasyDialogConfig<T = Record<string, any>> {
|
|
376
|
+
title: string;
|
|
377
|
+
titleField?: string;
|
|
378
|
+
showActionLabel: boolean;
|
|
379
|
+
icon?: string;
|
|
380
|
+
action: CRUD;
|
|
381
|
+
data: T;
|
|
382
|
+
fields: EasyDialogField[];
|
|
383
|
+
prefix: string;
|
|
384
|
+
pk: string;
|
|
385
|
+
validate?: (data: T) => boolean;
|
|
386
|
+
validationMessage?: (data: T) => string | null;
|
|
387
|
+
appearance: MatFormFieldAppearance;
|
|
388
|
+
compact: boolean;
|
|
389
|
+
size?: EasyDialogSize;
|
|
390
|
+
width: string;
|
|
391
|
+
maxWidth: string;
|
|
392
|
+
height?: string;
|
|
393
|
+
saveIcon: string;
|
|
394
|
+
saveTitle: string;
|
|
395
|
+
closeIcon: string;
|
|
396
|
+
closeTitle: string;
|
|
397
|
+
extraActions: EasyDialogAction[];
|
|
398
|
+
translations: EasyDialogTranslations;
|
|
399
|
+
modal: boolean;
|
|
400
|
+
confirmOnClose: boolean;
|
|
401
|
+
withAuditFields: boolean;
|
|
402
|
+
constructor(init?: EasyDialogInit<T>);
|
|
403
|
+
}
|
|
404
|
+
type EasyDialogInit<T = Record<string, any>> = Partial<Omit<EasyDialogConfig<T>, 'translations'>> & {
|
|
405
|
+
translations?: Partial<EasyDialogTranslations>;
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
type EasyTableDialogMode = 'request' | 'open';
|
|
409
|
+
interface EasyTableDialogRequest<T = any> {
|
|
410
|
+
action: CRUD;
|
|
411
|
+
data: T;
|
|
412
|
+
}
|
|
413
|
+
interface EasyTableDialogResult<T = any> {
|
|
414
|
+
request: EasyTableDialogRequest<T>;
|
|
415
|
+
result: EasyDialogResult<T>;
|
|
416
|
+
}
|
|
417
|
+
interface EasyTableDialogConfig {
|
|
418
|
+
add?: boolean;
|
|
419
|
+
edit?: boolean;
|
|
420
|
+
view?: boolean;
|
|
421
|
+
mode?: EasyTableDialogMode;
|
|
422
|
+
form?: EasyDialogInit<any> | ((request: EasyTableDialogRequest) => EasyDialogInit<any>);
|
|
423
|
+
}
|
|
424
|
+
declare function resolveDialogRequest<T = any>(dialog: EasyTableDialogConfig | undefined, action: CRUD, data: T): EasyTableDialogRequest<T> | null;
|
|
425
|
+
|
|
426
|
+
declare class EasyTableConfig<T = any> {
|
|
427
|
+
dataSource?: MatTableDataSource<T>;
|
|
428
|
+
displayedColumns?: (string | MatColumnTyped)[];
|
|
161
429
|
data: any[];
|
|
162
|
-
deleteItemToEmit: EventEmitter<object>;
|
|
163
|
-
addItemToEmit: EventEmitter<CRUD>;
|
|
164
|
-
editItemToEmit: EventEmitter<object>;
|
|
165
|
-
viewItemToEmit: EventEmitter<object>;
|
|
166
|
-
overwriteToEmit: EventEmitter<{
|
|
167
|
-
source: string;
|
|
168
|
-
value: string;
|
|
169
|
-
item: object;
|
|
170
|
-
}>;
|
|
171
|
-
logoutToEmit: EventEmitter<String>;
|
|
172
|
-
titleIconToEmit: EventEmitter<void>;
|
|
173
|
-
customActionToEmit: EventEmitter<void>;
|
|
174
430
|
source: string;
|
|
175
431
|
btnSize: string;
|
|
176
432
|
sortedBy: string;
|
|
@@ -180,12 +436,11 @@ declare class EasyTableComponent<T extends Record<string, never>> implements OnI
|
|
|
180
436
|
logout: boolean;
|
|
181
437
|
fontSize: string;
|
|
182
438
|
customActionEnable: boolean;
|
|
183
|
-
customActionIcon
|
|
184
|
-
customActionTitle
|
|
185
|
-
customActionClass
|
|
186
|
-
icon
|
|
439
|
+
customActionIcon?: string;
|
|
440
|
+
customActionTitle?: string;
|
|
441
|
+
customActionClass?: string;
|
|
442
|
+
icon?: string;
|
|
187
443
|
changePageSize: number;
|
|
188
|
-
sliceSize: number;
|
|
189
444
|
isPreview: boolean;
|
|
190
445
|
shortHeader: boolean;
|
|
191
446
|
canAccess: boolean;
|
|
@@ -193,12 +448,19 @@ declare class EasyTableComponent<T extends Record<string, never>> implements OnI
|
|
|
193
448
|
canUpdate: boolean;
|
|
194
449
|
canExport: boolean;
|
|
195
450
|
canDelete: boolean;
|
|
451
|
+
canImport: boolean;
|
|
452
|
+
canConfiguration: boolean;
|
|
453
|
+
canAudit: boolean;
|
|
454
|
+
canOwner: boolean;
|
|
455
|
+
canManage: boolean;
|
|
196
456
|
canOrder: boolean;
|
|
197
457
|
editAction: boolean;
|
|
198
458
|
deleteAction: boolean;
|
|
459
|
+
confirmDelete: boolean;
|
|
199
460
|
previewAction: boolean;
|
|
200
461
|
withHeader: boolean;
|
|
201
462
|
clickableIcon: boolean;
|
|
463
|
+
withFieldClick: boolean;
|
|
202
464
|
titleIcon: string;
|
|
203
465
|
customRowActionEnable: boolean;
|
|
204
466
|
customRowActionIcon: string;
|
|
@@ -209,33 +471,129 @@ declare class EasyTableComponent<T extends Record<string, never>> implements OnI
|
|
|
209
471
|
withToolbar: boolean;
|
|
210
472
|
withFilterInHeader: boolean;
|
|
211
473
|
expandableGroups: boolean;
|
|
212
|
-
|
|
474
|
+
toolbarConfig: ToolbarConfig;
|
|
475
|
+
filterColumn?: MatColumnTyped;
|
|
213
476
|
customColumnFilter: Dictionary[];
|
|
214
|
-
paginator: MatPaginator;
|
|
215
|
-
sort: MatSort;
|
|
216
|
-
table: MatTable<any> | undefined;
|
|
217
477
|
highlightChangedCells: boolean;
|
|
218
478
|
canAuditTrail: boolean;
|
|
219
|
-
auditTrailToEmit: EventEmitter<object>;
|
|
220
479
|
appearance: MatFormFieldAppearance | 'none';
|
|
221
|
-
multiSelectDropdowns: QueryList<EasyMultiSelect>;
|
|
222
480
|
userFilters: any;
|
|
481
|
+
isExpanded: boolean;
|
|
482
|
+
/** Property that identifies a row (selection highlight). Rows without it are compared by reference. */
|
|
483
|
+
rowKey: string;
|
|
484
|
+
extendableColumnCheck?: string;
|
|
485
|
+
expandedIcon: string;
|
|
486
|
+
dialog?: EasyTableDialogConfig;
|
|
487
|
+
groupBy?: EasyTableGroupBy;
|
|
488
|
+
tabTitle?: string;
|
|
489
|
+
tabIcon?: string;
|
|
490
|
+
tabContent?: Type<unknown>;
|
|
491
|
+
tabContentInputs?: Record<string, unknown>;
|
|
492
|
+
canLeaveTab?: () => boolean | Promise<boolean>;
|
|
493
|
+
constructor(init?: Partial<EasyTableConfig>);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
declare class EasyTableComponent<T extends Record<string, any>> implements OnInit, AfterViewInit, OnChanges {
|
|
497
|
+
dataSource: MatTableDataSource<T>;
|
|
498
|
+
private _displayedColumns;
|
|
499
|
+
availableGroups: string[];
|
|
500
|
+
set displayedColumns(value: (string | MatColumnTyped)[]);
|
|
501
|
+
/** True when at least one column has a header filter: every header cell then reserves the same filter row. */
|
|
502
|
+
get hasColumnFilters(): boolean;
|
|
503
|
+
get displayedColumns(): MatColumnTyped[];
|
|
504
|
+
private _config;
|
|
505
|
+
set config(value: Partial<EasyTableConfig<T>>);
|
|
506
|
+
get config(): EasyTableConfig<T>;
|
|
507
|
+
childConfig: EasyTableConfig<any> | EasyTableConfig<any>[];
|
|
508
|
+
childTabChange: EventEmitter<number>;
|
|
509
|
+
deleteItem: EventEmitter<object>;
|
|
510
|
+
addItem: EventEmitter<CRUD>;
|
|
511
|
+
editItem: EventEmitter<object>;
|
|
512
|
+
viewItem: EventEmitter<object>;
|
|
513
|
+
overwrite: EventEmitter<{
|
|
514
|
+
source: string;
|
|
515
|
+
value: string;
|
|
516
|
+
item: object;
|
|
517
|
+
}>;
|
|
518
|
+
logout: EventEmitter<String>;
|
|
519
|
+
titleIconClick: EventEmitter<void>;
|
|
520
|
+
customAction: EventEmitter<void>;
|
|
521
|
+
importData: EventEmitter<void>;
|
|
522
|
+
auditTrail: EventEmitter<object>;
|
|
523
|
+
dialogAction: EventEmitter<EasyTableDialogRequest<any>>;
|
|
524
|
+
dialogResult: EventEmitter<EasyTableDialogResult<any>>;
|
|
525
|
+
extendRow: EventEmitter<any>;
|
|
526
|
+
groupSelectionChange: EventEmitter<EasyTableGroupSelectionChange<T>>;
|
|
527
|
+
selectionChange: EventEmitter<EasyTableSelectionChange<T>>;
|
|
528
|
+
clickField: EventEmitter<{
|
|
529
|
+
columnName: string;
|
|
530
|
+
row: T;
|
|
531
|
+
}>;
|
|
532
|
+
addChildItem: EventEmitter<CRUD>;
|
|
533
|
+
deleteChildItem: EventEmitter<object>;
|
|
534
|
+
editChildItem: EventEmitter<object>;
|
|
535
|
+
viewChildItem: EventEmitter<object>;
|
|
536
|
+
childDialogAction: EventEmitter<EasyTableDialogRequest<any>>;
|
|
537
|
+
childDialogResult: EventEmitter<EasyTableDialogResult<any>>;
|
|
538
|
+
clickChildField: EventEmitter<{
|
|
539
|
+
columnName: string;
|
|
540
|
+
row: any;
|
|
541
|
+
}>;
|
|
542
|
+
childSelectionChange: EventEmitter<EasyTableSelectionChange<any>>;
|
|
543
|
+
searchTableField: string;
|
|
544
|
+
/**
|
|
545
|
+
* Text the table filters on. It is kept apart from `searchTableField`, the value bound to the toolbar input:
|
|
546
|
+
* typing never pushes a value back into the input, so a delayed change detection cannot overwrite what the
|
|
547
|
+
* user has typed since.
|
|
548
|
+
*/
|
|
549
|
+
searchText: string;
|
|
223
550
|
isAndFilterOperator: boolean;
|
|
224
551
|
ColumnType: typeof ColumnType;
|
|
225
552
|
columnFilters: {
|
|
226
553
|
[key: string]: string;
|
|
227
554
|
};
|
|
555
|
+
/** What the user typed in the text filters, as typed (the filter itself is normalized). */
|
|
556
|
+
columnFilterText: {
|
|
557
|
+
[key: string]: string | undefined;
|
|
558
|
+
};
|
|
559
|
+
/** Header filters are always visible on wide screens; below 1024px this toggles them. */
|
|
560
|
+
filtersOpen: boolean;
|
|
228
561
|
isPasswordVisible: Record<string, boolean>;
|
|
229
562
|
protected readonly MatTabCommon: typeof MatTabCommon;
|
|
230
563
|
expandedGroups: {
|
|
231
564
|
[key: string]: boolean;
|
|
232
565
|
};
|
|
233
|
-
|
|
566
|
+
expandedElement: any;
|
|
567
|
+
childTabIndex: number;
|
|
568
|
+
get childTabs(): EasyTableConfig<any>[] | null;
|
|
569
|
+
onChildTabChange(index: number, tabGroup: MatTabGroup): Promise<void>;
|
|
570
|
+
get hasTabLeaveGuard(): boolean;
|
|
571
|
+
selectedRow: any;
|
|
572
|
+
readonly rowGrouping: RowGroupingState;
|
|
573
|
+
readonly isGroupRow: (_index: number, row: any) => boolean;
|
|
574
|
+
readonly isDataRow: (_index: number, row: any) => boolean;
|
|
575
|
+
paginator: MatPaginator;
|
|
576
|
+
sort: MatSort;
|
|
577
|
+
table: MatTable<any> | undefined;
|
|
578
|
+
multiSelectDropdowns: QueryList<EasyMultiSelect>;
|
|
579
|
+
isExpansionDetailRow: (_index: number, row: any) => boolean;
|
|
580
|
+
private readonly injector;
|
|
581
|
+
private readonly destroyRef;
|
|
582
|
+
private readonly translate;
|
|
583
|
+
constructor();
|
|
234
584
|
ngOnInit(): void;
|
|
585
|
+
getTableMinWidth(): number;
|
|
235
586
|
getDisplayedColumnNames(): string[];
|
|
236
587
|
get groupedColumns(): [string, MatColumnTyped[]][];
|
|
237
588
|
ngOnChanges(): void;
|
|
238
589
|
loadData(): void;
|
|
590
|
+
/** The rows in display order: always a sorted copy, the array of the application is not reordered. */
|
|
591
|
+
private displayRows;
|
|
592
|
+
private groupRows;
|
|
593
|
+
private createDataSource;
|
|
594
|
+
get groupExpansion(): GroupExpansion;
|
|
595
|
+
setAllRowGroups(expanded: boolean): void;
|
|
596
|
+
toggleRowGroup(key: string): void;
|
|
239
597
|
syncFiltersWithData(): void;
|
|
240
598
|
ngAfterViewInit(): void;
|
|
241
599
|
updatePageSize(): void;
|
|
@@ -243,25 +601,28 @@ declare class EasyTableComponent<T extends Record<string, never>> implements OnI
|
|
|
243
601
|
clearTableFilter(): void;
|
|
244
602
|
resetDropdownSelection(): void;
|
|
245
603
|
filterType(): void;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
604
|
+
onDeleteItem(item: object): void;
|
|
605
|
+
onAddItem(): void;
|
|
606
|
+
onEditItem(item: object): void;
|
|
607
|
+
onViewItem(item: object): void;
|
|
608
|
+
private requestDialog;
|
|
609
|
+
onFieldClick(col: MatColumnTyped, row: T): void;
|
|
610
|
+
onOverwrite(element: any, col: MatColumnTyped, event: Event): void;
|
|
251
611
|
close(): void;
|
|
252
|
-
|
|
612
|
+
onCustomAction(): void;
|
|
253
613
|
getIconColumn(col: MatColumnTyped, item: any): string;
|
|
254
614
|
getIconTitle(col: MatColumnTyped, value: string): string;
|
|
255
615
|
getTitleColumn(col: MatColumnTyped, item: any): string;
|
|
256
|
-
|
|
616
|
+
onExportToCsv(): void;
|
|
257
617
|
getHeaderName(columnName: string): string;
|
|
258
618
|
OnToggleChanged(values: Dictionary[]): void;
|
|
259
619
|
setStatusColor(values: Dictionary[]): void;
|
|
260
620
|
getData(data: any[]): void;
|
|
261
|
-
|
|
621
|
+
onAuditTrail(element: object): void;
|
|
262
622
|
applyFilterFromToolbar(): void;
|
|
263
623
|
onChangeDdl(element: any, col: MatColumnTyped, value: any): Promise<void>;
|
|
264
624
|
onChangeMultiSelect(selected: any, col: MatColumnTyped, headerFilter?: boolean): void;
|
|
625
|
+
onColumnTextFilter(value: string, column: MatColumnTyped): void;
|
|
265
626
|
applyFilterByColumn(filterValue: string, column: MatColumnTyped): void;
|
|
266
627
|
getSelectedData(element: any, col: MatColumnTyped): Dictionary[];
|
|
267
628
|
getSelectedList(col: MatColumnTyped): any[];
|
|
@@ -272,8 +633,813 @@ declare class EasyTableComponent<T extends Record<string, never>> implements OnI
|
|
|
272
633
|
togglePassword(key: string): void;
|
|
273
634
|
toggleGroup(groupName: string): void;
|
|
274
635
|
getGroupIndex(groupName: string): number;
|
|
636
|
+
toggleRow(item: any, k: any): void;
|
|
637
|
+
getSelectedRow(element: any): boolean;
|
|
638
|
+
manageSelectedRow(item: any): void;
|
|
639
|
+
onAddChildItem(): void;
|
|
640
|
+
onEditChildItem(item: object): void;
|
|
641
|
+
onDeleteChildItem(item: object): void;
|
|
642
|
+
onViewChildItem(item: object): void;
|
|
275
643
|
static ɵfac: i0.ɵɵFactoryDeclaration<EasyTableComponent<any>, never>;
|
|
276
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EasyTableComponent<any>, "lib-easy-table", never, { "dataSource": { "alias": "dataSource"; "required":
|
|
644
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EasyTableComponent<any>, "lib-easy-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "config": { "alias": "config"; "required": false; }; "childConfig": { "alias": "childConfig"; "required": false; }; }, { "childTabChange": "childTabChange"; "deleteItem": "deleteItem"; "addItem": "addItem"; "editItem": "editItem"; "viewItem": "viewItem"; "overwrite": "overwrite"; "logout": "logout"; "titleIconClick": "titleIconClick"; "customAction": "customAction"; "importData": "importData"; "auditTrail": "auditTrail"; "dialogAction": "dialogAction"; "dialogResult": "dialogResult"; "extendRow": "extendRow"; "groupSelectionChange": "groupSelectionChange"; "selectionChange": "selectionChange"; "clickField": "clickField"; "addChildItem": "addChildItem"; "deleteChildItem": "deleteChildItem"; "editChildItem": "editChildItem"; "viewChildItem": "viewChildItem"; "childDialogAction": "childDialogAction"; "childDialogResult": "childDialogResult"; "clickChildField": "clickChildField"; "childSelectionChange": "childSelectionChange"; }, never, never, true, never>;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
declare class EasyTableBasicComponent<T extends Record<string, any>> implements OnInit, AfterViewInit, OnChanges {
|
|
648
|
+
dataSource: MatTableDataSource<T>;
|
|
649
|
+
private _displayedColumns;
|
|
650
|
+
availableGroups: string[];
|
|
651
|
+
set displayedColumns(value: (string | MatColumnTyped)[]);
|
|
652
|
+
/** True when at least one column has a header filter: every header cell then reserves the same filter row. */
|
|
653
|
+
get hasColumnFilters(): boolean;
|
|
654
|
+
get displayedColumns(): MatColumnTyped[];
|
|
655
|
+
private _config;
|
|
656
|
+
set config(value: Partial<EasyTableConfig<T>>);
|
|
657
|
+
get config(): EasyTableConfig<T>;
|
|
658
|
+
deleteItem: EventEmitter<object>;
|
|
659
|
+
addItem: EventEmitter<CRUD>;
|
|
660
|
+
editItem: EventEmitter<object>;
|
|
661
|
+
viewItem: EventEmitter<object>;
|
|
662
|
+
overwrite: EventEmitter<{
|
|
663
|
+
source: string;
|
|
664
|
+
value: string;
|
|
665
|
+
item: object;
|
|
666
|
+
}>;
|
|
667
|
+
logout: EventEmitter<String>;
|
|
668
|
+
titleIconClick: EventEmitter<void>;
|
|
669
|
+
customAction: EventEmitter<void>;
|
|
670
|
+
saveData: EventEmitter<void>;
|
|
671
|
+
importData: EventEmitter<void>;
|
|
672
|
+
auditTrail: EventEmitter<object>;
|
|
673
|
+
dialogAction: EventEmitter<EasyTableDialogRequest<any>>;
|
|
674
|
+
dialogResult: EventEmitter<EasyTableDialogResult<any>>;
|
|
675
|
+
groupSelectionChange: EventEmitter<EasyTableGroupSelectionChange<T>>;
|
|
676
|
+
selectionChange: EventEmitter<EasyTableSelectionChange<T>>;
|
|
677
|
+
clickField: EventEmitter<{
|
|
678
|
+
columnName: string;
|
|
679
|
+
row: T;
|
|
680
|
+
}>;
|
|
681
|
+
searchTableField: string;
|
|
682
|
+
/**
|
|
683
|
+
* Text the table filters on. It is kept apart from `searchTableField`, the value bound to the toolbar input:
|
|
684
|
+
* typing never pushes a value back into the input, so a delayed change detection cannot overwrite what the
|
|
685
|
+
* user has typed since.
|
|
686
|
+
*/
|
|
687
|
+
searchText: string;
|
|
688
|
+
isAndFilterOperator: boolean;
|
|
689
|
+
ColumnType: typeof ColumnType;
|
|
690
|
+
columnFilters: {
|
|
691
|
+
[key: string]: string;
|
|
692
|
+
};
|
|
693
|
+
/** What the user typed in the text filters, as typed (the filter itself is normalized). */
|
|
694
|
+
columnFilterText: {
|
|
695
|
+
[key: string]: string | undefined;
|
|
696
|
+
};
|
|
697
|
+
/** Header filters are always visible on wide screens; below 1024px this toggles them. */
|
|
698
|
+
filtersOpen: boolean;
|
|
699
|
+
isPasswordVisible: Record<string, boolean>;
|
|
700
|
+
protected readonly MatTabCommon: typeof MatTabCommon;
|
|
701
|
+
expandedGroups: {
|
|
702
|
+
[key: string]: boolean;
|
|
703
|
+
};
|
|
704
|
+
selectedRow: any;
|
|
705
|
+
readonly rowGrouping: RowGroupingState;
|
|
706
|
+
readonly isGroupRow: (_index: number, row: any) => boolean;
|
|
707
|
+
readonly isDataRow: (_index: number, row: any) => boolean;
|
|
708
|
+
paginator: MatPaginator;
|
|
709
|
+
sort: MatSort;
|
|
710
|
+
table: MatTable<any> | undefined;
|
|
711
|
+
multiSelectDropdowns: QueryList<EasyMultiSelect>;
|
|
712
|
+
private readonly injector;
|
|
713
|
+
private readonly destroyRef;
|
|
714
|
+
private readonly translate;
|
|
715
|
+
constructor();
|
|
716
|
+
ngOnInit(): void;
|
|
717
|
+
getTableMinWidth(): number;
|
|
718
|
+
getDisplayedColumnNames(): string[];
|
|
719
|
+
get groupedColumns(): [string, MatColumnTyped[]][];
|
|
720
|
+
ngOnChanges(): void;
|
|
721
|
+
loadData(): void;
|
|
722
|
+
/** The rows in display order: always a sorted copy, the array of the application is not reordered. */
|
|
723
|
+
private displayRows;
|
|
724
|
+
private groupRows;
|
|
725
|
+
private createDataSource;
|
|
726
|
+
get groupExpansion(): GroupExpansion;
|
|
727
|
+
setAllRowGroups(expanded: boolean): void;
|
|
728
|
+
toggleRowGroup(key: string): void;
|
|
729
|
+
syncFiltersWithData(): void;
|
|
730
|
+
ngAfterViewInit(): void;
|
|
731
|
+
updatePageSize(): void;
|
|
732
|
+
applyFilter(event: Event): void;
|
|
733
|
+
clearTableFilter(): void;
|
|
734
|
+
resetDropdownSelection(): void;
|
|
735
|
+
filterType(): void;
|
|
736
|
+
onDeleteItem(item: object): void;
|
|
737
|
+
onAddItem(): void;
|
|
738
|
+
onEditItem(item: object): void;
|
|
739
|
+
onViewItem(item: object): void;
|
|
740
|
+
private requestDialog;
|
|
741
|
+
onFieldClick(col: MatColumnTyped, row: T): void;
|
|
742
|
+
onOverwrite(element: any, col: MatColumnTyped, event: Event): void;
|
|
743
|
+
onLogout(): void;
|
|
744
|
+
onCustomAction(): void;
|
|
745
|
+
getIconColumn(col: MatColumnTyped, item: any): string;
|
|
746
|
+
getIconTitle(col: MatColumnTyped, value: string): string;
|
|
747
|
+
getTitleColumn(col: MatColumnTyped, item: any): string;
|
|
748
|
+
exportToCsv(): void;
|
|
749
|
+
getHeaderName(columnName: string): string;
|
|
750
|
+
OnToggleChanged(values: Dictionary[]): void;
|
|
751
|
+
setStatusColor(values: Dictionary[]): void;
|
|
752
|
+
getData(data: any[]): void;
|
|
753
|
+
onAuditTrail(item: object): void;
|
|
754
|
+
applyFilterFromToolbar(): void;
|
|
755
|
+
onChangeDdl(element: any, col: MatColumnTyped, value: any): Promise<void>;
|
|
756
|
+
onChangeMultiSelect(selected: any, col: MatColumnTyped, headerFilter?: boolean): void;
|
|
757
|
+
onColumnTextFilter(value: string, column: MatColumnTyped): void;
|
|
758
|
+
applyFilterByColumn(filterValue: string, column: MatColumnTyped): void;
|
|
759
|
+
getSelectedData(element: any, col: MatColumnTyped): Dictionary[];
|
|
760
|
+
getSelectedList(col: MatColumnTyped): any[];
|
|
761
|
+
applyCustomFilter(): void;
|
|
762
|
+
updateDataSourceFilter(): void;
|
|
763
|
+
setFilters(): void;
|
|
764
|
+
getMaskedValue(value: string | null): string;
|
|
765
|
+
togglePassword(key: string): void;
|
|
766
|
+
toggleGroup(groupName: string): void;
|
|
767
|
+
getGroupIndex(groupName: string): number;
|
|
768
|
+
getSelectedRow(element: any): boolean;
|
|
769
|
+
manageSelectedRow(item: any): void;
|
|
770
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasyTableBasicComponent<any>, never>;
|
|
771
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EasyTableBasicComponent<any>, "lib-easy-table-basic", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "deleteItem": "deleteItem"; "addItem": "addItem"; "editItem": "editItem"; "viewItem": "viewItem"; "overwrite": "overwrite"; "logout": "logout"; "titleIconClick": "titleIconClick"; "customAction": "customAction"; "saveData": "saveData"; "importData": "importData"; "auditTrail": "auditTrail"; "dialogAction": "dialogAction"; "dialogResult": "dialogResult"; "groupSelectionChange": "groupSelectionChange"; "selectionChange": "selectionChange"; "clickField": "clickField"; }, never, never, true, never>;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
declare class MatColumn {
|
|
775
|
+
name: string;
|
|
776
|
+
value: string | null;
|
|
777
|
+
type: ColumnType;
|
|
778
|
+
enableIcon: string;
|
|
779
|
+
disableIcon: string;
|
|
780
|
+
enableColor: string;
|
|
781
|
+
disableColor: string;
|
|
782
|
+
enableTitle?: string;
|
|
783
|
+
disableTitle?: string;
|
|
784
|
+
enableTitleFromColumnName?: string;
|
|
785
|
+
disableTitleFromColumnName?: string;
|
|
786
|
+
mixColumnIconColor: Tuple[];
|
|
787
|
+
enableFilter: boolean;
|
|
788
|
+
filterList: Array<any | Tuple | unknown>;
|
|
789
|
+
filterDisplayColumn?: string;
|
|
790
|
+
constructor(name: string, options?: Partial<Omit<MatColumn, 'name' | 'constructor'>>);
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
declare class TableToolbarComponent {
|
|
794
|
+
config: ToolbarConfig;
|
|
795
|
+
isPreview: boolean;
|
|
796
|
+
searchTableField: string;
|
|
797
|
+
readonly: boolean;
|
|
798
|
+
canCreate: boolean;
|
|
799
|
+
canExport: boolean;
|
|
800
|
+
canImport: boolean;
|
|
801
|
+
showFilterOperator: boolean;
|
|
802
|
+
customColumnFilter: Dictionary[];
|
|
803
|
+
searchTableFieldChange: EventEmitter<string>;
|
|
804
|
+
applyFilterEvent: EventEmitter<KeyboardEvent>;
|
|
805
|
+
/** Emitted on every change of the search field, including those that do not come with a key (paste, drop, autofill). */
|
|
806
|
+
searchInput: EventEmitter<Event>;
|
|
807
|
+
filterTypeEvent: EventEmitter<void>;
|
|
808
|
+
clearTableFilterEvent: EventEmitter<void>;
|
|
809
|
+
addItem: EventEmitter<void>;
|
|
810
|
+
save: EventEmitter<void>;
|
|
811
|
+
exportToCsv: EventEmitter<void>;
|
|
812
|
+
importData: EventEmitter<void>;
|
|
813
|
+
customAction: EventEmitter<void>;
|
|
814
|
+
close: EventEmitter<void>;
|
|
815
|
+
toggleChanged: EventEmitter<any>;
|
|
816
|
+
filterColumn: MatColumn;
|
|
817
|
+
onSearchChange(value: string): void;
|
|
818
|
+
applyFilter(event: KeyboardEvent): void;
|
|
819
|
+
onSearchInput(event: Event): void;
|
|
820
|
+
filterType(): void;
|
|
821
|
+
clearTableFilter(): void;
|
|
822
|
+
onAddItem(): void;
|
|
823
|
+
onSave(): void;
|
|
824
|
+
get saveIcon(): string;
|
|
825
|
+
get saveTitle(): string;
|
|
826
|
+
onImportData(): void;
|
|
827
|
+
onExportToCsv(): void;
|
|
828
|
+
onCustomAction(): void;
|
|
829
|
+
onClose(): void;
|
|
830
|
+
onToggleChanged(value: any): void;
|
|
831
|
+
getTitleFilterOperator(): "FILTER_BY_AND_OPERATOR" | "FILTER_BY_OR_OPERATOR";
|
|
832
|
+
getIconFilterOperator(): "zoom_out" | "zoom_in";
|
|
833
|
+
getFilterColor(filter: Dictionary): string | undefined;
|
|
834
|
+
getFilterIcon(filter: Dictionary): string;
|
|
835
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableToolbarComponent, never>;
|
|
836
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableToolbarComponent, "lib-table-toolbar", never, { "config": { "alias": "config"; "required": false; }; "isPreview": { "alias": "isPreview"; "required": false; }; "searchTableField": { "alias": "searchTableField"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "canCreate": { "alias": "canCreate"; "required": false; }; "canExport": { "alias": "canExport"; "required": false; }; "canImport": { "alias": "canImport"; "required": false; }; "showFilterOperator": { "alias": "showFilterOperator"; "required": false; }; "customColumnFilter": { "alias": "customColumnFilter"; "required": false; }; }, { "searchTableFieldChange": "searchTableFieldChange"; "applyFilterEvent": "applyFilterEvent"; "searchInput": "searchInput"; "filterTypeEvent": "filterTypeEvent"; "clearTableFilterEvent": "clearTableFilterEvent"; "addItem": "addItem"; "save": "save"; "exportToCsv": "exportToCsv"; "importData": "importData"; "customAction": "customAction"; "close": "close"; "toggleChanged": "toggleChanged"; }, never, ["[toolbarFilters]", "*"], true, never>;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
interface ConfirmDeleteData {
|
|
840
|
+
title: string;
|
|
841
|
+
message: string;
|
|
842
|
+
confirm: string;
|
|
843
|
+
cancel: string;
|
|
844
|
+
icon?: string;
|
|
845
|
+
choices?: ConfirmChoice[];
|
|
846
|
+
}
|
|
847
|
+
interface ConfirmChoice {
|
|
848
|
+
value: string;
|
|
849
|
+
label: string;
|
|
850
|
+
description: string;
|
|
851
|
+
icon: string;
|
|
852
|
+
}
|
|
853
|
+
declare class ConfirmDialogComponent {
|
|
854
|
+
readonly data: ConfirmDeleteData;
|
|
855
|
+
private readonly dialogRef;
|
|
856
|
+
constructor();
|
|
857
|
+
close(result: boolean | string): void;
|
|
858
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
859
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "lib-confirm-dialog", never, {}, {}, never, never, true, never>;
|
|
860
|
+
}
|
|
861
|
+
declare function confirmDelete(injector: Injector, translations: ToolbarTranslations): Observable<boolean>;
|
|
862
|
+
declare function confirmAction(injector: Injector, data: ConfirmDeleteData): Observable<boolean>;
|
|
863
|
+
declare function confirmChoice(injector: Injector, data: ConfirmDeleteData): Observable<string | null>;
|
|
864
|
+
|
|
865
|
+
interface DropdownState {
|
|
866
|
+
control: FormControl<any>;
|
|
867
|
+
options$: Observable<any[]>;
|
|
868
|
+
displayFn: (item: any) => string;
|
|
869
|
+
}
|
|
870
|
+
declare class EasyDialogComponent {
|
|
871
|
+
private readonly dialogRef;
|
|
872
|
+
private readonly translate;
|
|
873
|
+
private readonly destroyRef;
|
|
874
|
+
readonly config: EasyDialogConfig<Record<string, any>>;
|
|
875
|
+
readonly isReadOnly: boolean;
|
|
876
|
+
readonly data: Record<string, any>;
|
|
877
|
+
readonly groupedFields: EasyDialogField[][];
|
|
878
|
+
private readonly dropdownChanged;
|
|
879
|
+
readonly dropdowns: Record<string, DropdownState>;
|
|
880
|
+
readonly dateControls: Record<string, FormControl<Date | null>>;
|
|
881
|
+
readonly confirmingClose: i0.WritableSignal<boolean>;
|
|
882
|
+
readonly formError: i0.WritableSignal<boolean>;
|
|
883
|
+
protected readonly InputType: typeof InputType;
|
|
884
|
+
private readonly labelPrefix;
|
|
885
|
+
constructor();
|
|
886
|
+
get actionLabel(): string;
|
|
887
|
+
get subject(): string;
|
|
888
|
+
get icon(): string;
|
|
889
|
+
get buttonSize(): string;
|
|
890
|
+
get visibleActions(): EasyDialogAction[];
|
|
891
|
+
get auditCreated(): string | null;
|
|
892
|
+
get auditUpdated(): string | null;
|
|
893
|
+
get auditInactive(): string | null;
|
|
894
|
+
get validationError(): string | null;
|
|
895
|
+
doAction(): void;
|
|
896
|
+
onExtraAction(action: EasyDialogAction): void;
|
|
897
|
+
closeDialog(): void;
|
|
898
|
+
confirmSave(): void;
|
|
899
|
+
discardChanges(): void;
|
|
900
|
+
isRequired(field: EasyDialogField): boolean;
|
|
901
|
+
isInvalidForm(): boolean;
|
|
902
|
+
getHeaderName(columnName: string): string;
|
|
903
|
+
getMultiSelectValue(field: EasyDialogField): string;
|
|
904
|
+
getMultiSelectDisplay(field: EasyDialogField): string;
|
|
905
|
+
getMultiSelectSelection(field: EasyDialogField): any[];
|
|
906
|
+
onMultiSelectChange(field: EasyDialogField, values: unknown[]): void;
|
|
907
|
+
getRowsFromSize(size: ColumnSize | string | undefined): number;
|
|
908
|
+
getDateValue(field: EasyDialogField): string;
|
|
909
|
+
onDateChange(date: string, field: EasyDialogField): void;
|
|
910
|
+
private routeCloseThroughConfirmation;
|
|
911
|
+
private hasChanged;
|
|
912
|
+
private hasMissingRequiredFields;
|
|
913
|
+
private failsCustomValidation;
|
|
914
|
+
private auditLine;
|
|
915
|
+
private inactiveLine;
|
|
916
|
+
private translateOrNull;
|
|
917
|
+
private currentTime;
|
|
918
|
+
private groupFieldsByRow;
|
|
919
|
+
private syncCalendarLocale;
|
|
920
|
+
private createDateControls;
|
|
921
|
+
private createDateControl;
|
|
922
|
+
private createDropdowns;
|
|
923
|
+
private createDropdown;
|
|
924
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasyDialogComponent, never>;
|
|
925
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EasyDialogComponent, "lib-easy-dialog", never, {}, {}, never, never, true, never>;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
declare class EasyDialogService {
|
|
929
|
+
private readonly dialog;
|
|
930
|
+
open<T = Record<string, any>>(config: EasyDialogInit<T>, options?: MatDialogConfig): MatDialogRef<EasyDialogComponent, EasyDialogResult<T>>;
|
|
931
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasyDialogService, never>;
|
|
932
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EasyDialogService>;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/** Theme the application asks for. `system` follows the operating system preference. */
|
|
936
|
+
type EasyThemeMode = 'light' | 'dark' | 'system';
|
|
937
|
+
/** Theme actually applied once `system` has been resolved. */
|
|
938
|
+
type EasyResolvedTheme = 'light' | 'dark';
|
|
939
|
+
interface EasyThemeOptions {
|
|
940
|
+
/** Theme applied when the service is created. Default: none (the host application stays untouched). */
|
|
941
|
+
initial?: EasyThemeMode;
|
|
942
|
+
/** CSS class toggled on `<body>` in dark mode. Default `dark-theme`, the class the library stylesheet targets. */
|
|
943
|
+
darkClass?: string;
|
|
944
|
+
/** Attribute set on `<html>` with the resolved theme (`light` / `dark`). Use `null` to disable. Default `data-easy-theme`. */
|
|
945
|
+
attribute?: string | null;
|
|
946
|
+
/** Also set the CSS `color-scheme` on `<html>` so native controls and scrollbars follow the theme. Default `true`. */
|
|
947
|
+
colorScheme?: boolean;
|
|
948
|
+
/** `localStorage` key used to remember the chosen mode. Default `null`: nothing is stored. */
|
|
949
|
+
storageKey?: string | null;
|
|
950
|
+
}
|
|
951
|
+
/** Optional configuration of {@link EasyThemeService}: `{ provide: EASY_THEME_OPTIONS, useValue: {...} }`. */
|
|
952
|
+
declare const EASY_THEME_OPTIONS: InjectionToken<EasyThemeOptions>;
|
|
953
|
+
/**
|
|
954
|
+
* Switches the library between light and dark at runtime, without reloading the page.
|
|
955
|
+
*
|
|
956
|
+
* The service does nothing until {@link setTheme} is called (or `initial` is configured), so it never
|
|
957
|
+
* changes the theme of a host application by itself. In dark mode it adds the `dark-theme` class to
|
|
958
|
+
* `<body>`; applications that already toggle that class themselves can keep doing so.
|
|
959
|
+
*/
|
|
960
|
+
declare class EasyThemeService {
|
|
961
|
+
private readonly document;
|
|
962
|
+
private readonly options;
|
|
963
|
+
private readonly modeSignal;
|
|
964
|
+
private readonly systemDark;
|
|
965
|
+
private media;
|
|
966
|
+
private readonly onSystemChange;
|
|
967
|
+
/** Mode requested by the application (`null` until a theme has been chosen). */
|
|
968
|
+
readonly mode: i0.Signal<EasyThemeMode | null>;
|
|
969
|
+
/** Theme currently applied. `light` while no theme has been chosen. */
|
|
970
|
+
readonly theme: i0.Signal<EasyResolvedTheme>;
|
|
971
|
+
constructor();
|
|
972
|
+
/** Applies `light`, `dark` or `system` (follow the operating system, live). */
|
|
973
|
+
setTheme(mode: EasyThemeMode): void;
|
|
974
|
+
/** Switches between light and dark (a `system` mode becomes the opposite of what is shown now). */
|
|
975
|
+
toggle(): void;
|
|
976
|
+
private apply;
|
|
977
|
+
private readStored;
|
|
978
|
+
private store;
|
|
979
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasyThemeService, never>;
|
|
980
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EasyThemeService>;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* Angular Material paginator labels read through ngx-translate, so the table paginator follows the language of
|
|
985
|
+
* the application. Keys (all optional, English is used when a key is missing):
|
|
986
|
+
*
|
|
987
|
+
* - `PAGINATOR.ITEMS_PER_PAGE`, `PAGINATOR.NEXT_PAGE`, `PAGINATOR.PREVIOUS_PAGE`, `PAGINATOR.FIRST_PAGE`,
|
|
988
|
+
* `PAGINATOR.LAST_PAGE`
|
|
989
|
+
* - `PAGINATOR.RANGE`, with the parameters `{{start}}`, `{{end}}` and `{{length}}`
|
|
990
|
+
*
|
|
991
|
+
* Register it once with {@link provideEasyPaginatorIntl}.
|
|
992
|
+
*/
|
|
993
|
+
declare class EasyPaginatorIntl extends MatPaginatorIntl {
|
|
994
|
+
private readonly translate;
|
|
995
|
+
constructor();
|
|
996
|
+
private text;
|
|
997
|
+
private refresh;
|
|
998
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasyPaginatorIntl, never>;
|
|
999
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EasyPaginatorIntl>;
|
|
1000
|
+
}
|
|
1001
|
+
/** Makes the paginator of every easy-mat-ui table (and any Material paginator) follow the ngx-translate language. */
|
|
1002
|
+
declare function provideEasyPaginatorIntl(): Provider;
|
|
1003
|
+
|
|
1004
|
+
/** One choice of a `lib-easy-segmented`. */
|
|
1005
|
+
interface EasySegmentedOption {
|
|
1006
|
+
/** Value emitted when the option is chosen. */
|
|
1007
|
+
id: string;
|
|
1008
|
+
/** Text of the option. Optional when `iconOnly` is used, but then give a `hint`: it is the accessible name. */
|
|
1009
|
+
label?: string;
|
|
1010
|
+
/** Material icon name. */
|
|
1011
|
+
icon?: string;
|
|
1012
|
+
/** Tooltip. */
|
|
1013
|
+
hint?: string;
|
|
1014
|
+
disabled?: boolean;
|
|
1015
|
+
}
|
|
1016
|
+
/** `md` is 34px high, `lg` is 38px high. */
|
|
1017
|
+
type EasySegmentedSize = 'md' | 'lg';
|
|
1018
|
+
/**
|
|
1019
|
+
* How assistive technologies see the control: `radio` for a choice among values (a setting),
|
|
1020
|
+
* `tab` for a list of pages (pair it with `panelId` and `idPrefix`).
|
|
1021
|
+
*/
|
|
1022
|
+
type EasySegmentedSemantics = 'radio' | 'tab';
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* A small group of buttons of which exactly one is chosen: a setting (units, theme) or the pages of an application.
|
|
1026
|
+
* Use `[(selected)]` to bind the chosen `id`. Arrow keys, Home and End move the choice, as in any radio group or tab list.
|
|
1027
|
+
*/
|
|
1028
|
+
declare class EasySegmented {
|
|
1029
|
+
private readonly host;
|
|
1030
|
+
private readonly direction;
|
|
1031
|
+
options: EasySegmentedOption[];
|
|
1032
|
+
/** `id` of the chosen option. */
|
|
1033
|
+
selected: string | null;
|
|
1034
|
+
/** Accessible name of the group. */
|
|
1035
|
+
ariaLabel: string;
|
|
1036
|
+
size: EasySegmentedSize;
|
|
1037
|
+
/** Show only the icons. The `hint` (or the label) stays as tooltip and accessible name. */
|
|
1038
|
+
iconOnly: boolean;
|
|
1039
|
+
/** Below 600px only the chosen option keeps its text: the others become icons. */
|
|
1040
|
+
collapseInactive: boolean;
|
|
1041
|
+
/** The group takes the whole width of its container. */
|
|
1042
|
+
stretch: boolean;
|
|
1043
|
+
/** `tab` for pages (the group then needs `panelId`), `radio` for a setting. */
|
|
1044
|
+
semantics: EasySegmentedSemantics;
|
|
1045
|
+
/** With `semantics="tab"`: id of the element that shows the chosen page. */
|
|
1046
|
+
panelId: string;
|
|
1047
|
+
/** With `semantics="tab"`: prefix of the id of each button (`idPrefix + option.id`), so a panel can point to its tab. */
|
|
1048
|
+
idPrefix: string;
|
|
1049
|
+
selectedChange: EventEmitter<string>;
|
|
1050
|
+
/** Only one button is reachable with the Tab key: the chosen one, or the first one when nothing is chosen. */
|
|
1051
|
+
get tabStopId(): string | null;
|
|
1052
|
+
select(option: EasySegmentedOption): void;
|
|
1053
|
+
onKeydown(event: KeyboardEvent): void;
|
|
1054
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasySegmented, never>;
|
|
1055
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EasySegmented, "lib-easy-segmented", never, { "options": { "alias": "options"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "size": { "alias": "size"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "collapseInactive": { "alias": "collapseInactive"; "required": false; }; "stretch": { "alias": "stretch"; "required": false; }; "semantics": { "alias": "semantics"; "required": false; }; "panelId": { "alias": "panelId"; "required": false; }; "idPrefix": { "alias": "idPrefix"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
/** One button of a `lib-easy-chip-nav`. */
|
|
1059
|
+
interface EasyChipNavItem {
|
|
1060
|
+
/** Value emitted when the button is chosen. */
|
|
1061
|
+
id: string;
|
|
1062
|
+
label: string;
|
|
1063
|
+
/** Material icon name. */
|
|
1064
|
+
icon?: string;
|
|
1065
|
+
/** Any CSS colour (`#b45309`, `var(--my-color)`...). Without it the button is neutral. */
|
|
1066
|
+
color?: string;
|
|
1067
|
+
/** Small number shown at the end of the button, for example how many elements it leads to. */
|
|
1068
|
+
count?: number;
|
|
1069
|
+
/** Tooltip. */
|
|
1070
|
+
hint?: string;
|
|
1071
|
+
disabled?: boolean;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* A row of buttons with an icon, a colour and a count, to browse by category (continents, departments, statuses...).
|
|
1076
|
+
* Use `[(selected)]` to bind the chosen `id`. On a phone the row scrolls sideways instead of taking several lines.
|
|
1077
|
+
*/
|
|
1078
|
+
declare class EasyChipNav {
|
|
1079
|
+
items: EasyChipNavItem[];
|
|
1080
|
+
/** `id` of the chosen item. */
|
|
1081
|
+
selected: string | null;
|
|
1082
|
+
/** Accessible name of the navigation. */
|
|
1083
|
+
ariaLabel: string;
|
|
1084
|
+
selectedChange: EventEmitter<string>;
|
|
1085
|
+
select(item: EasyChipNavItem): void;
|
|
1086
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasyChipNav, never>;
|
|
1087
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EasyChipNav, "lib-easy-chip-nav", never, { "items": { "alias": "items"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/** One language of a `lib-easy-language-switch`. */
|
|
1091
|
+
interface EasyLanguage {
|
|
1092
|
+
/** Value emitted when the language is chosen (`en`, `fr`, `ar`...). */
|
|
1093
|
+
code: string;
|
|
1094
|
+
/** Name of the language written in that language: it is what the visitor looks for. */
|
|
1095
|
+
name: string;
|
|
1096
|
+
/** Flag as a `flag-icons` suffix (`gb` gives the classes `fi fi-gb`). Needs the optional `flag-icons` stylesheet. */
|
|
1097
|
+
flag?: string;
|
|
1098
|
+
/** Flag as an image, when you do not use `flag-icons`. */
|
|
1099
|
+
flagUrl?: string;
|
|
1100
|
+
/** Short text for the `code` display. Default: the code in capital letters. */
|
|
1101
|
+
short?: string;
|
|
1102
|
+
}
|
|
1103
|
+
/** `menu` is a button that opens a list, `inline` shows every language at once. */
|
|
1104
|
+
type EasyLanguageLayout = 'menu' | 'inline';
|
|
1105
|
+
/** What the button of each language shows. */
|
|
1106
|
+
type EasyLanguageDisplay = 'flag-name' | 'flag' | 'name' | 'code';
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Language picker. It knows nothing about ngx-translate or any other translation system: give it the languages and
|
|
1110
|
+
* the chosen code with `[(selected)]`, and change your language when `selectedChange` fires.
|
|
1111
|
+
*
|
|
1112
|
+
* - `layout="menu"`: one button that opens the list (default). `layout="inline"`: every language is a button.
|
|
1113
|
+
* - `display`: what each language shows, `flag-name` (default), `flag`, `name` or `code`.
|
|
1114
|
+
*/
|
|
1115
|
+
declare class EasyLanguageSwitch {
|
|
1116
|
+
languages: EasyLanguage[];
|
|
1117
|
+
/** `code` of the chosen language. */
|
|
1118
|
+
selected: string | null;
|
|
1119
|
+
layout: EasyLanguageLayout;
|
|
1120
|
+
display: EasyLanguageDisplay;
|
|
1121
|
+
/** Accessible name of the control (for example "Choose the language"). */
|
|
1122
|
+
ariaLabel: string;
|
|
1123
|
+
selectedChange: EventEmitter<string>;
|
|
1124
|
+
get current(): EasyLanguage | undefined;
|
|
1125
|
+
get showFlag(): boolean;
|
|
1126
|
+
/** The text of a language for the current `display`; empty when only the flag is shown. */
|
|
1127
|
+
text(language: EasyLanguage): string;
|
|
1128
|
+
/** The text of a language in the open list: its name, whatever `display` says (a code alone would not help). */
|
|
1129
|
+
listText(language: EasyLanguage): string;
|
|
1130
|
+
select(language: EasyLanguage): void;
|
|
1131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasyLanguageSwitch, never>;
|
|
1132
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EasyLanguageSwitch, "lib-easy-language-switch", never, { "languages": { "alias": "languages"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "display": { "alias": "display"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/** A button or a link at the bottom of a `lib-easy-card`. */
|
|
1136
|
+
interface EasyCardAction {
|
|
1137
|
+
/** Identifies the action in the `actionClick` event. */
|
|
1138
|
+
id: string;
|
|
1139
|
+
label: string;
|
|
1140
|
+
/** Material icon name. */
|
|
1141
|
+
icon?: string;
|
|
1142
|
+
/** With an address the action is a link, without it a button. */
|
|
1143
|
+
href?: string;
|
|
1144
|
+
/** Where a link opens, `_blank` for a new tab. */
|
|
1145
|
+
target?: string;
|
|
1146
|
+
/** Filled with the accent colour instead of outlined. */
|
|
1147
|
+
primary?: boolean;
|
|
1148
|
+
disabled?: boolean;
|
|
1149
|
+
}
|
|
1150
|
+
/** Content of a `lib-easy-card`. */
|
|
1151
|
+
interface EasyCardConfig {
|
|
1152
|
+
/** Identifies the card in the events. */
|
|
1153
|
+
id?: string;
|
|
1154
|
+
/** Material icon name. */
|
|
1155
|
+
icon?: string;
|
|
1156
|
+
title: string;
|
|
1157
|
+
description?: string;
|
|
1158
|
+
/** Any CSS colour for the icon. Default: the accent colour of the theme. */
|
|
1159
|
+
color?: string;
|
|
1160
|
+
actions?: EasyCardAction[];
|
|
1161
|
+
/** The whole card is a button (it emits `cardClick`). Ignored when the card has actions. */
|
|
1162
|
+
clickable?: boolean;
|
|
1163
|
+
/** For a clickable card: a short invitation at the bottom, shown with an arrow ("Try it"). */
|
|
1164
|
+
cta?: string;
|
|
1165
|
+
}
|
|
1166
|
+
/** Emitted when an action of a card is used. */
|
|
1167
|
+
interface EasyCardActionEvent {
|
|
1168
|
+
card: EasyCardConfig;
|
|
1169
|
+
action: EasyCardAction;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* A card with an icon, a title, a description and optional actions. Anything placed inside the tag is shown under the
|
|
1174
|
+
* description. A card without actions can be `clickable`: the whole card is then one button.
|
|
1175
|
+
*/
|
|
1176
|
+
declare class EasyCard {
|
|
1177
|
+
config: EasyCardConfig;
|
|
1178
|
+
/** The whole card was used (only for a `clickable` card without actions). */
|
|
1179
|
+
cardClick: EventEmitter<EasyCardConfig>;
|
|
1180
|
+
/** A button of the card was used. Links with an `href` are followed by the browser and do not emit. */
|
|
1181
|
+
actionClick: EventEmitter<EasyCardActionEvent>;
|
|
1182
|
+
get isButton(): boolean;
|
|
1183
|
+
use(action: EasyCardAction): void;
|
|
1184
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasyCard, never>;
|
|
1185
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EasyCard, "lib-easy-card", never, { "config": { "alias": "config"; "required": true; }; }, { "cardClick": "cardClick"; "actionClick": "actionClick"; }, never, ["*"], true, never>;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Cards in a responsive grid: as many columns as fit, each at least `minWidth` wide, and never more than `columns`.
|
|
1190
|
+
* The grid adapts to its own width, so it behaves the same in a narrow panel and in a wide page.
|
|
1191
|
+
*/
|
|
1192
|
+
declare class EasyCardGrid {
|
|
1193
|
+
items: EasyCardConfig[];
|
|
1194
|
+
/** Narrowest a card may become, in pixels (default 240). */
|
|
1195
|
+
minWidth: number;
|
|
1196
|
+
/** Most columns in a row (default 12, in practice "as many as fit"). */
|
|
1197
|
+
columns: number;
|
|
1198
|
+
cardClick: EventEmitter<EasyCardConfig>;
|
|
1199
|
+
actionClick: EventEmitter<EasyCardActionEvent>;
|
|
1200
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasyCardGrid, never>;
|
|
1201
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EasyCardGrid, "lib-easy-card-grid", never, { "items": { "alias": "items"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; }, { "cardClick": "cardClick"; "actionClick": "actionClick"; }, never, never, true, never>;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
/** Colour of the value of a `lib-easy-stat`. */
|
|
1205
|
+
type EasyStatTone = 'neutral' | 'accent' | 'success' | 'warning' | 'danger';
|
|
1206
|
+
/** A key figure: a label and a value. */
|
|
1207
|
+
interface EasyStatConfig {
|
|
1208
|
+
label: string;
|
|
1209
|
+
value: string | number;
|
|
1210
|
+
/** Tooltip, for example the exact value when the shown one is rounded. */
|
|
1211
|
+
hint?: string;
|
|
1212
|
+
/** Material icon name. */
|
|
1213
|
+
icon?: string;
|
|
1214
|
+
/** Default: `neutral`. */
|
|
1215
|
+
tone?: EasyStatTone;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
/** A key figure: a small label above a large value, with an optional icon and tooltip. Put several side by side with flex or grid. */
|
|
1219
|
+
declare class EasyStat {
|
|
1220
|
+
config: EasyStatConfig;
|
|
1221
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasyStat, never>;
|
|
1222
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EasyStat, "lib-easy-stat", never, { "config": { "alias": "config"; "required": true; }; }, {}, never, never, true, never>;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
/** Title block of a page. */
|
|
1226
|
+
interface EasyPageHeaderConfig {
|
|
1227
|
+
/** Material icon name. */
|
|
1228
|
+
icon?: string;
|
|
1229
|
+
title: string;
|
|
1230
|
+
subtitle?: string;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
/** Title block of a page: an icon, a title, a one-line explanation, and a slot (anything inside the tag) for the controls of the page. */
|
|
1234
|
+
declare class EasyPageHeader {
|
|
1235
|
+
config: EasyPageHeaderConfig;
|
|
1236
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasyPageHeader, never>;
|
|
1237
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EasyPageHeader, "lib-easy-page-header", never, { "config": { "alias": "config"; "required": true; }; }, {}, never, ["*"], true, never>;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
interface EasyCsvParseOptions {
|
|
1241
|
+
delimiter?: string | 'auto';
|
|
1242
|
+
withHeader?: boolean | 'auto';
|
|
1243
|
+
}
|
|
1244
|
+
interface EasyCsvParseResult {
|
|
1245
|
+
delimiter: string;
|
|
1246
|
+
hasHeader: boolean;
|
|
1247
|
+
headerDetected: boolean;
|
|
1248
|
+
delimiterDetected: boolean;
|
|
1249
|
+
headers: string[];
|
|
1250
|
+
rows: string[][];
|
|
1251
|
+
records: Record<string, string>[];
|
|
1252
|
+
rowCount: number;
|
|
1253
|
+
columnCount: number;
|
|
1254
|
+
warnings: string[];
|
|
1255
|
+
errors: string[];
|
|
1256
|
+
}
|
|
1257
|
+
interface RowsParsing {
|
|
1258
|
+
rows: string[][];
|
|
1259
|
+
errors: string[];
|
|
1260
|
+
}
|
|
1261
|
+
declare function stripByteOrderMark(text: string): string;
|
|
1262
|
+
declare function parseCsvRows(text: string, delimiter: string): RowsParsing;
|
|
1263
|
+
declare function detectCsvDelimiter(text: string): string | null;
|
|
1264
|
+
declare function detectCsvHeader(rows: string[][]): boolean;
|
|
1265
|
+
declare function parseCsv(content: string, options?: EasyCsvParseOptions): EasyCsvParseResult;
|
|
1266
|
+
|
|
1267
|
+
type EasyFileUploadOutputMode = 'easy-table' | 'easy-basic-table' | 'raw';
|
|
1268
|
+
type EasyFileUploadMode = 'button' | 'drag-drop' | 'both';
|
|
1269
|
+
type EasyFileUploadButtonAppearance = 'filled' | 'tonal' | 'outlined' | 'text';
|
|
1270
|
+
type EasyFileUploadButtonSize = 'small' | 'medium' | 'large';
|
|
1271
|
+
type EasyFileUploadDuplicateHandling = 'reject' | 'replace' | 'allow';
|
|
1272
|
+
type EasyFileUploadLayout = 'area' | 'field';
|
|
1273
|
+
type EasyFileUploadAppearance = 'outline' | 'filled' | 'flat';
|
|
1274
|
+
type EasyFileUploadStatus = 'idle' | 'processing' | 'success' | 'error';
|
|
1275
|
+
type EasyFileItemStatus = 'ready' | 'processing' | 'parsed' | 'error';
|
|
1276
|
+
type EasyFileUploadErrorCode = 'type' | 'size' | 'max-files' | 'duplicate' | 'empty' | 'parse' | 'read' | 'required';
|
|
1277
|
+
interface EasyFileUploadError {
|
|
1278
|
+
code: EasyFileUploadErrorCode;
|
|
1279
|
+
message: string;
|
|
1280
|
+
fileName?: string;
|
|
1281
|
+
}
|
|
1282
|
+
type EasyFileUploadMessages = Partial<Record<EasyFileUploadErrorCode, string>>;
|
|
1283
|
+
interface EasyFileItem {
|
|
1284
|
+
id: string;
|
|
1285
|
+
file: File;
|
|
1286
|
+
name: string;
|
|
1287
|
+
extension: string;
|
|
1288
|
+
size: number;
|
|
1289
|
+
type: string;
|
|
1290
|
+
status: EasyFileItemStatus;
|
|
1291
|
+
error?: string;
|
|
1292
|
+
}
|
|
1293
|
+
interface EasyFileUploadTableOutput<T extends Record<string, any> = Record<string, any>> {
|
|
1294
|
+
config: EasyTableConfig<T>;
|
|
1295
|
+
dataSource: MatTableDataSource<T>;
|
|
1296
|
+
displayedColumns: MatColumnTyped[];
|
|
1297
|
+
childConfig?: EasyTableConfig<T>;
|
|
1298
|
+
}
|
|
1299
|
+
interface EasyFileParsedFile<TOutput = any> {
|
|
1300
|
+
item: EasyFileItem;
|
|
1301
|
+
output: TOutput | null;
|
|
1302
|
+
csv: EasyCsvParseResult | null;
|
|
1303
|
+
delimiter: string | null;
|
|
1304
|
+
hasHeader: boolean | null;
|
|
1305
|
+
warnings: string[];
|
|
1306
|
+
errors: EasyFileUploadError[];
|
|
1307
|
+
}
|
|
1308
|
+
interface EasyFileUploadResult<TOutput = any> {
|
|
1309
|
+
outputMode: EasyFileUploadOutputMode;
|
|
1310
|
+
status: EasyFileUploadStatus;
|
|
1311
|
+
files: EasyFileItem[];
|
|
1312
|
+
parsedFiles: EasyFileParsedFile<TOutput>[];
|
|
1313
|
+
outputs: TOutput[];
|
|
1314
|
+
output: TOutput | null;
|
|
1315
|
+
delimiter: string | null;
|
|
1316
|
+
hasHeader: boolean | null;
|
|
1317
|
+
errors: EasyFileUploadError[];
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
declare class EasyFileUpload<TOutput = any> implements ControlValueAccessor, Validator {
|
|
1321
|
+
accept: string;
|
|
1322
|
+
multiple: boolean;
|
|
1323
|
+
maxFileSize: number | null;
|
|
1324
|
+
maxFiles: number | null;
|
|
1325
|
+
required: boolean;
|
|
1326
|
+
allowDragAndDrop: boolean;
|
|
1327
|
+
showFilePreview: boolean;
|
|
1328
|
+
showFileSize: boolean;
|
|
1329
|
+
showRemoveButton: boolean;
|
|
1330
|
+
showParseInfo: boolean;
|
|
1331
|
+
label: string;
|
|
1332
|
+
placeholder: string;
|
|
1333
|
+
hint: string;
|
|
1334
|
+
icon: string;
|
|
1335
|
+
mode: EasyFileUploadMode | null;
|
|
1336
|
+
browseLabel: string;
|
|
1337
|
+
buttonIcon: string;
|
|
1338
|
+
buttonAppearance: EasyFileUploadButtonAppearance;
|
|
1339
|
+
buttonSize: EasyFileUploadButtonSize;
|
|
1340
|
+
showDropArea: boolean;
|
|
1341
|
+
showButton: boolean;
|
|
1342
|
+
dropTitle: string;
|
|
1343
|
+
dropDescription: string;
|
|
1344
|
+
expanded: boolean;
|
|
1345
|
+
inline: boolean;
|
|
1346
|
+
showProgress: boolean;
|
|
1347
|
+
duplicates: EasyFileUploadDuplicateHandling;
|
|
1348
|
+
customClass: string;
|
|
1349
|
+
appearance: EasyFileUploadAppearance;
|
|
1350
|
+
layout: EasyFileUploadLayout;
|
|
1351
|
+
compact: boolean;
|
|
1352
|
+
inputHeight: string;
|
|
1353
|
+
minHeight: string;
|
|
1354
|
+
maxHeight: string;
|
|
1355
|
+
outputMode: EasyFileUploadOutputMode;
|
|
1356
|
+
delimiter: string | 'auto';
|
|
1357
|
+
withHeader: boolean | 'auto';
|
|
1358
|
+
encoding: string | 'auto';
|
|
1359
|
+
parentColumn: string | null;
|
|
1360
|
+
tableConfig: Partial<EasyTableConfig>;
|
|
1361
|
+
parse: boolean;
|
|
1362
|
+
autoProcess: boolean;
|
|
1363
|
+
loading: boolean;
|
|
1364
|
+
messages: EasyFileUploadMessages;
|
|
1365
|
+
set disabled(value: boolean);
|
|
1366
|
+
inputWidth: string;
|
|
1367
|
+
filesChange: EventEmitter<EasyFileItem[]>;
|
|
1368
|
+
resultChange: EventEmitter<EasyFileUploadResult<TOutput>>;
|
|
1369
|
+
fileRejected: EventEmitter<EasyFileUploadError[]>;
|
|
1370
|
+
fileRemoved: EventEmitter<EasyFileItem>;
|
|
1371
|
+
private fileInput;
|
|
1372
|
+
readonly inputId: string;
|
|
1373
|
+
readonly hintId: string;
|
|
1374
|
+
readonly errorsId: string;
|
|
1375
|
+
readonly items: i0.WritableSignal<EasyFileItem[]>;
|
|
1376
|
+
readonly parsedFiles: i0.WritableSignal<EasyFileParsedFile<TOutput>[]>;
|
|
1377
|
+
readonly errors: i0.WritableSignal<EasyFileUploadError[]>;
|
|
1378
|
+
readonly status: i0.WritableSignal<EasyFileUploadStatus>;
|
|
1379
|
+
readonly dragActive: i0.WritableSignal<boolean>;
|
|
1380
|
+
readonly touched: i0.WritableSignal<boolean>;
|
|
1381
|
+
isDisabled: boolean;
|
|
1382
|
+
private readonly changeDetector;
|
|
1383
|
+
private rejections;
|
|
1384
|
+
private fileSequence;
|
|
1385
|
+
private processingRun;
|
|
1386
|
+
private onChange;
|
|
1387
|
+
private onTouched;
|
|
1388
|
+
private onValidatorChange;
|
|
1389
|
+
get isBusy(): boolean;
|
|
1390
|
+
get isInteractive(): boolean;
|
|
1391
|
+
get hasRequiredError(): boolean;
|
|
1392
|
+
get hasError(): boolean;
|
|
1393
|
+
get visibleErrors(): EasyFileUploadError[];
|
|
1394
|
+
get resolvedMode(): EasyFileUploadMode;
|
|
1395
|
+
get showsDropArea(): boolean;
|
|
1396
|
+
get showsButton(): boolean;
|
|
1397
|
+
get acceptsDrops(): boolean;
|
|
1398
|
+
get resolvedButtonLabel(): string;
|
|
1399
|
+
get resolvedButtonIcon(): string;
|
|
1400
|
+
get resolvedDropTitle(): string;
|
|
1401
|
+
get resolvedPlaceholder(): string;
|
|
1402
|
+
get constraintsSummary(): string;
|
|
1403
|
+
get surfaceHeight(): string | null;
|
|
1404
|
+
get surfaceMinHeight(): string | null;
|
|
1405
|
+
get surfaceMaxHeight(): string | null;
|
|
1406
|
+
get hostClasses(): string;
|
|
1407
|
+
open(): void;
|
|
1408
|
+
clear(): void;
|
|
1409
|
+
process(): Promise<EasyFileUploadResult<TOutput>>;
|
|
1410
|
+
onZoneKey(event: Event): void;
|
|
1411
|
+
onInputChange(event: Event): void;
|
|
1412
|
+
onDragOver(event: DragEvent): void;
|
|
1413
|
+
onDragLeave(event: DragEvent): void;
|
|
1414
|
+
onDrop(event: DragEvent): void;
|
|
1415
|
+
removeFile(item: EasyFileItem, event?: Event): void;
|
|
1416
|
+
markAsTouched(): void;
|
|
1417
|
+
sizeLabel(item: EasyFileItem): string;
|
|
1418
|
+
fileTooltip(item: EasyFileItem): string;
|
|
1419
|
+
parseInfo(item: EasyFileItem): {
|
|
1420
|
+
delimiter: string;
|
|
1421
|
+
header: string;
|
|
1422
|
+
} | null;
|
|
1423
|
+
iconFor(item: EasyFileItem): string;
|
|
1424
|
+
writeValue(value: File | File[] | null): void;
|
|
1425
|
+
registerOnChange(onChange: (value: File | File[] | null) => void): void;
|
|
1426
|
+
registerOnTouched(onTouched: () => void): void;
|
|
1427
|
+
registerOnValidatorChange(onValidatorChange: () => void): void;
|
|
1428
|
+
setDisabledState(isDisabled: boolean): void;
|
|
1429
|
+
validate(_control: AbstractControl): ValidationErrors | null;
|
|
1430
|
+
private addFiles;
|
|
1431
|
+
private findRejectionCode;
|
|
1432
|
+
private createItem;
|
|
1433
|
+
private createError;
|
|
1434
|
+
private resolveMessage;
|
|
1435
|
+
private updateItems;
|
|
1436
|
+
private buildProcessingOptions;
|
|
1437
|
+
private buildResult;
|
|
1438
|
+
private emitFiles;
|
|
1439
|
+
private emitResult;
|
|
1440
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EasyFileUpload<any>, never>;
|
|
1441
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EasyFileUpload<any>, "lib-easy-file-upload", never, { "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "maxFiles": { "alias": "maxFiles"; "required": false; }; "required": { "alias": "required"; "required": false; }; "allowDragAndDrop": { "alias": "allowDragAndDrop"; "required": false; }; "showFilePreview": { "alias": "showFilePreview"; "required": false; }; "showFileSize": { "alias": "showFileSize"; "required": false; }; "showRemoveButton": { "alias": "showRemoveButton"; "required": false; }; "showParseInfo": { "alias": "showParseInfo"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "browseLabel": { "alias": "browseLabel"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; "buttonAppearance": { "alias": "buttonAppearance"; "required": false; }; "buttonSize": { "alias": "buttonSize"; "required": false; }; "showDropArea": { "alias": "showDropArea"; "required": false; }; "showButton": { "alias": "showButton"; "required": false; }; "dropTitle": { "alias": "dropTitle"; "required": false; }; "dropDescription": { "alias": "dropDescription"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "duplicates": { "alias": "duplicates"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "inputHeight": { "alias": "inputHeight"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "outputMode": { "alias": "outputMode"; "required": false; }; "delimiter": { "alias": "delimiter"; "required": false; }; "withHeader": { "alias": "withHeader"; "required": false; }; "encoding": { "alias": "encoding"; "required": false; }; "parentColumn": { "alias": "parentColumn"; "required": false; }; "tableConfig": { "alias": "tableConfig"; "required": false; }; "parse": { "alias": "parse"; "required": false; }; "autoProcess": { "alias": "autoProcess"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputWidth": { "alias": "inputWidth"; "required": false; }; }, { "filesChange": "filesChange"; "resultChange": "resultChange"; "fileRejected": "fileRejected"; "fileRemoved": "fileRemoved"; }, never, never, true, never>;
|
|
277
1442
|
}
|
|
278
1443
|
|
|
279
|
-
export { EasyMatUiComponent, EasyMatUiService, EasyMultiSelect, EasyTableComponent };
|
|
1444
|
+
export { CRUD, ColumnSize, ColumnType, ConfirmDialogComponent, DEFAULT_EASY_DIALOG_TRANSLATIONS, Dictionary, EASY_DIALOG_DEFAULT_MAX_WIDTH, EASY_DIALOG_DEFAULT_WIDTH, EASY_THEME_OPTIONS, EasyCard, EasyCardGrid, EasyChipNav, EasyDialogComponent, EasyDialogConfig, EasyDialogService, EasyFileUpload, EasyLanguageSwitch, EasyMatUiComponent, EasyMatUiService, EasyMultiSelect, EasyPageHeader, EasyPaginatorIntl, EasySegmented, EasyStat, EasyTableBasicComponent, EasyTableComponent, EasyTableConfig, EasyThemeService, InputType, MatColumn, MatColumnTyped, ScreenSize, TableToolbarComponent, TitleFormatter, ToolbarConfig, ToolbarTranslations, Tuple, confirmAction, confirmChoice, confirmDelete, detectCsvDelimiter, detectCsvHeader, parseCsv, parseCsvRows, provideEasyPaginatorIntl, resolveDialogRequest, stripByteOrderMark };
|
|
1445
|
+
export type { ColumnFilterType, ConfirmChoice, ConfirmDeleteData, EasyCardAction, EasyCardActionEvent, EasyCardConfig, EasyCheckState, EasyChipNavItem, EasyColumnAlign, EasyColumnSelection, EasyCsvParseOptions, EasyCsvParseResult, EasyDialogAction, EasyDialogButtonColor, EasyDialogField, EasyDialogInit, EasyDialogResult, EasyDialogSize, EasyDialogTranslations, EasyFileItem, EasyFileItemStatus, EasyFileParsedFile, EasyFileUploadAppearance, EasyFileUploadButtonAppearance, EasyFileUploadButtonSize, EasyFileUploadDuplicateHandling, EasyFileUploadError, EasyFileUploadErrorCode, EasyFileUploadLayout, EasyFileUploadMessages, EasyFileUploadMode, EasyFileUploadOutputMode, EasyFileUploadResult, EasyFileUploadStatus, EasyFileUploadTableOutput, EasyLanguage, EasyLanguageDisplay, EasyLanguageLayout, EasyPageHeaderConfig, EasyResolvedTheme, EasySegmentedOption, EasySegmentedSemantics, EasySegmentedSize, EasyStatConfig, EasyStatTone, EasyTableDialogConfig, EasyTableDialogMode, EasyTableDialogRequest, EasyTableDialogResult, EasyTableGroupBy, EasyTableGroupSelectionChange, EasyTableSelectionChange, EasyThemeMode, EasyThemeOptions, TitlePipe, TitleTranslate, ToolbarSaveState };
|