mapa-library-ui 1.0.0 → 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/fesm2022/mapa-library-ui-src-lib-components-benchmarking.mjs +6 -6
- package/fesm2022/mapa-library-ui-src-lib-components-breadcrumb.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-components-button-icon.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-components-button.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs +81 -73
- package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs +32 -24
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-checkbox.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs +394 -0
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs +215 -117
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dialog.mjs +15 -15
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs +34 -24
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +31 -21
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-empty.mjs +13 -9
- package/fesm2022/mapa-library-ui-src-lib-components-empty.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs +44 -36
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs +402 -49
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-group-report.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-components-icon.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +26 -18
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-menu.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-components-nav-list.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-components-radio-button.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-components-report-item.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs +79 -71
- package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs +76 -68
- package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-slide-toggle.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-components-svg-icon.mjs +9 -9
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +78 -23
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-tag.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs +20 -12
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-tooltip.mjs +6 -6
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs +3 -3
- package/fesm2022/mapa-library-ui-src-lib-core-guards-authorize-guard.mjs +4 -3
- package/fesm2022/mapa-library-ui-src-lib-core-guards-authorize-guard.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-core-services.mjs +3 -3
- package/fesm2022/mapa-library-ui.mjs +425 -199
- package/fesm2022/mapa-library-ui.mjs.map +1 -1
- package/index.d.ts +101 -22
- package/mapa-library-ui-1.1.0.tgz +0 -0
- package/package.json +9 -1
- package/src/lib/components/capability/index.d.ts +8 -0
- package/src/lib/components/chart/index.d.ts +4 -0
- package/src/lib/components/datepicker/index.d.ts +136 -99
- package/src/lib/components/datepicker-range/index.d.ts +255 -0
- package/src/lib/components/dropdown/index.d.ts +8 -0
- package/src/lib/components/dropdown-tree/index.d.ts +4 -0
- package/src/lib/components/empty/index.d.ts +2 -2
- package/src/lib/components/filters/index.d.ts +8 -0
- package/src/lib/components/form/index.d.ts +4 -0
- package/src/lib/components/input/index.d.ts +4 -0
- package/src/lib/components/radio-button/index.d.ts +4 -0
- package/src/lib/components/scale/index.d.ts +4 -0
- package/src/lib/components/scale-parameterization/index.d.ts +4 -0
- package/src/lib/components/slide-toggle/index.d.ts +4 -0
- package/src/lib/components/table/index.d.ts +22 -2
- package/src/lib/components/textarea/index.d.ts +4 -0
- package/src/lib/core/guards/authorize-guard/index.d.ts +2 -1
- package/mapa-library-ui-1.0.0.tgz +0 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
4
|
+
import * as rxjs from 'rxjs';
|
|
5
|
+
|
|
6
|
+
interface ValidationMessageContext {
|
|
7
|
+
actualLength?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
min?: number;
|
|
10
|
+
requiredLength?: number;
|
|
11
|
+
}
|
|
12
|
+
type ValidationTextResolver = string | ((context?: ValidationMessageContext) => string);
|
|
13
|
+
interface MapaUiTexts {
|
|
14
|
+
common: {
|
|
15
|
+
selectAll: string;
|
|
16
|
+
};
|
|
17
|
+
filters: {
|
|
18
|
+
clear: string;
|
|
19
|
+
submit: string;
|
|
20
|
+
};
|
|
21
|
+
datepicker: {
|
|
22
|
+
startDatePlaceholder: string;
|
|
23
|
+
endDatePlaceholder: string;
|
|
24
|
+
};
|
|
25
|
+
capability: {
|
|
26
|
+
groupAverageTitle: string;
|
|
27
|
+
individualAverageTitle: string;
|
|
28
|
+
conceptTitle: string;
|
|
29
|
+
resultTitle: string;
|
|
30
|
+
positiveIndicatorsTitle: string;
|
|
31
|
+
negativeIndicatorsTitle: string;
|
|
32
|
+
riskIndicatorsTitle: string;
|
|
33
|
+
precipitationRiskTitle: string;
|
|
34
|
+
negligenceRiskTitle: string;
|
|
35
|
+
negativeDirectionLabel: string;
|
|
36
|
+
positiveDirectionLabel: string;
|
|
37
|
+
};
|
|
38
|
+
paginator: {
|
|
39
|
+
itemsPerPage: string;
|
|
40
|
+
nextPage: string;
|
|
41
|
+
previousPage: string;
|
|
42
|
+
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
43
|
+
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
44
|
+
};
|
|
45
|
+
table: {
|
|
46
|
+
emptyTitle: string;
|
|
47
|
+
emptySubtitle: string;
|
|
48
|
+
};
|
|
49
|
+
validation: {
|
|
50
|
+
cnpj: ValidationTextResolver;
|
|
51
|
+
cpf: ValidationTextResolver;
|
|
52
|
+
email: ValidationTextResolver;
|
|
53
|
+
max: ValidationTextResolver;
|
|
54
|
+
maxLength: ValidationTextResolver;
|
|
55
|
+
min: ValidationTextResolver;
|
|
56
|
+
minLength: ValidationTextResolver;
|
|
57
|
+
pattern: ValidationTextResolver;
|
|
58
|
+
required: ValidationTextResolver;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
type PartialMapaUiTexts = Partial<{
|
|
62
|
+
[K in keyof MapaUiTexts]: Partial<MapaUiTexts[K]>;
|
|
63
|
+
}>;
|
|
64
|
+
|
|
65
|
+
declare class MapaI18nService {
|
|
66
|
+
private readonly injector;
|
|
67
|
+
private readonly textsState;
|
|
68
|
+
readonly textsSignal: i0.Signal<MapaUiTexts>;
|
|
69
|
+
readonly texts$: rxjs.Observable<MapaUiTexts>;
|
|
70
|
+
constructor(customTexts: PartialMapaUiTexts | null);
|
|
71
|
+
get texts(): MapaUiTexts;
|
|
72
|
+
setTexts(texts: PartialMapaUiTexts): void;
|
|
73
|
+
resolveValidationText(key: keyof MapaUiTexts["validation"], context?: ValidationMessageContext): string;
|
|
74
|
+
private resolveText;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaI18nService, [{ optional: true; }]>;
|
|
76
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MapaI18nService>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
interface ElementTreeNode {
|
|
80
|
+
key: string;
|
|
81
|
+
value: string;
|
|
82
|
+
children?: ElementTreeNode[];
|
|
83
|
+
isLeaf?: boolean;
|
|
84
|
+
}
|
|
85
|
+
interface ElementOption {
|
|
86
|
+
key: string;
|
|
87
|
+
value: string;
|
|
88
|
+
children?: ElementOption[];
|
|
89
|
+
childrenLevel?: number | null;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface ElementGroup {
|
|
93
|
+
label: string;
|
|
94
|
+
options: ElementOption[];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
interface ActionButton {
|
|
98
|
+
label: string;
|
|
99
|
+
action: EventEmitter<boolean>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
interface ElementSearch {
|
|
103
|
+
placeholder?: string;
|
|
104
|
+
noEntriesFoundLabel?: string;
|
|
105
|
+
formControl?: FormControl;
|
|
106
|
+
toggleAllCheckbox?: boolean;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface Errors {
|
|
110
|
+
required?: string;
|
|
111
|
+
minLength?: string;
|
|
112
|
+
cpf?: string;
|
|
113
|
+
cnpj?: string;
|
|
114
|
+
email?: string;
|
|
115
|
+
pattern?: string;
|
|
116
|
+
min?: string;
|
|
117
|
+
max?: string;
|
|
118
|
+
maxLength?: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
interface Status {
|
|
122
|
+
label: string;
|
|
123
|
+
}
|
|
124
|
+
declare class ElementBase {
|
|
125
|
+
value: string;
|
|
126
|
+
key: string;
|
|
127
|
+
label: string;
|
|
128
|
+
required: boolean;
|
|
129
|
+
order: number;
|
|
130
|
+
controlType: string;
|
|
131
|
+
type: string;
|
|
132
|
+
placeholder?: string;
|
|
133
|
+
readonly: boolean;
|
|
134
|
+
hint?: string;
|
|
135
|
+
prefix?: string;
|
|
136
|
+
suffix?: string;
|
|
137
|
+
autosize?: boolean;
|
|
138
|
+
autosizeMinWidth?: string;
|
|
139
|
+
autosizeMaxWidth?: string;
|
|
140
|
+
autosizeMinRow?: number;
|
|
141
|
+
autosizeMaxRow?: number;
|
|
142
|
+
options: ElementOption[] | ElementGroup[];
|
|
143
|
+
tree: ElementTreeNode[];
|
|
144
|
+
multiple?: boolean;
|
|
145
|
+
search?: ElementSearch;
|
|
146
|
+
maxLength: string | number | null;
|
|
147
|
+
errors?: Errors;
|
|
148
|
+
actionButton?: ActionButton;
|
|
149
|
+
mask?: string;
|
|
150
|
+
autocomplete?: string;
|
|
151
|
+
clearValue?: boolean;
|
|
152
|
+
minDate?: string | Date | null;
|
|
153
|
+
maxDate?: string | Date | null;
|
|
154
|
+
status?: Status[];
|
|
155
|
+
checkParent?: boolean;
|
|
156
|
+
checkChildren?: boolean;
|
|
157
|
+
openedChange?: EventEmitter<boolean>;
|
|
158
|
+
constructor(options?: {
|
|
159
|
+
value?: string;
|
|
160
|
+
key?: string;
|
|
161
|
+
label?: string;
|
|
162
|
+
required?: boolean;
|
|
163
|
+
order?: number;
|
|
164
|
+
controlType?: string;
|
|
165
|
+
type?: string;
|
|
166
|
+
placeholder?: string;
|
|
167
|
+
readonly?: boolean;
|
|
168
|
+
hint?: string;
|
|
169
|
+
prefix?: string;
|
|
170
|
+
suffix?: string;
|
|
171
|
+
autosize?: boolean;
|
|
172
|
+
autosizeMinWidth?: string;
|
|
173
|
+
autosizeMaxWidth?: string;
|
|
174
|
+
autosizeMinRow?: number;
|
|
175
|
+
autosizeMaxRow?: number;
|
|
176
|
+
options?: ElementOption[] | ElementGroup[];
|
|
177
|
+
tree?: ElementTreeNode[];
|
|
178
|
+
multiple?: boolean;
|
|
179
|
+
search?: ElementSearch;
|
|
180
|
+
maxLength?: string | number | null;
|
|
181
|
+
errors?: Errors;
|
|
182
|
+
actionButton?: ActionButton;
|
|
183
|
+
mask?: string;
|
|
184
|
+
autocomplete?: string;
|
|
185
|
+
clearValue?: boolean;
|
|
186
|
+
minDate?: string | Date | null;
|
|
187
|
+
maxDate?: string | Date | null;
|
|
188
|
+
status?: Status[];
|
|
189
|
+
checkParent?: boolean;
|
|
190
|
+
checkChildren?: boolean;
|
|
191
|
+
openedChange?: EventEmitter<boolean>;
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
declare class DatepickerRange extends ElementBase {
|
|
196
|
+
controlType: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
interface MapaDatepickerRangeControlValue {
|
|
200
|
+
startDate: string | null;
|
|
201
|
+
endDate: string | null;
|
|
202
|
+
}
|
|
203
|
+
type MapaDatepickerRangeFormGroup = FormGroup;
|
|
204
|
+
type MapaDatepickerInternalRangeValue = {
|
|
205
|
+
startDate: Date | null;
|
|
206
|
+
endDate: Date | null;
|
|
207
|
+
};
|
|
208
|
+
type MapaDatepickerInternalRangeFormGroup = FormGroup<{
|
|
209
|
+
startDate: FormControl<MapaDatepickerInternalRangeValue["startDate"]>;
|
|
210
|
+
endDate: FormControl<MapaDatepickerInternalRangeValue["endDate"]>;
|
|
211
|
+
}>;
|
|
212
|
+
type MapaDatepickerRangeDisplayFormGroup = FormGroup<{
|
|
213
|
+
startDate: FormControl<string | null>;
|
|
214
|
+
endDate: FormControl<string | null>;
|
|
215
|
+
}>;
|
|
216
|
+
declare const MAPA_DATEPICKER_RANGE_FORMATS: {
|
|
217
|
+
parse: {
|
|
218
|
+
dateInput: string;
|
|
219
|
+
};
|
|
220
|
+
display: {
|
|
221
|
+
dateInput: string;
|
|
222
|
+
monthYearLabel: string;
|
|
223
|
+
dateA11yLabel: string;
|
|
224
|
+
monthYearA11yLabel: string;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
declare class MapaDatepickerRange implements OnInit {
|
|
228
|
+
private readonly i18n;
|
|
229
|
+
private readonly cdr;
|
|
230
|
+
formGroup: FormGroup;
|
|
231
|
+
element: DatepickerRange;
|
|
232
|
+
private readonly destroyRef;
|
|
233
|
+
private readonly defaultDaysBack;
|
|
234
|
+
private readonly emptyValue;
|
|
235
|
+
readonly formDatepicker: MapaDatepickerInternalRangeFormGroup;
|
|
236
|
+
readonly formDisplay: MapaDatepickerRangeDisplayFormGroup;
|
|
237
|
+
rangeControl: FormControl<MapaDatepickerRangeControlValue | null>;
|
|
238
|
+
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
239
|
+
get texts(): MapaUiTexts;
|
|
240
|
+
ngOnInit(): void;
|
|
241
|
+
get startDatePlaceholder(): string;
|
|
242
|
+
get endDatePlaceholder(): string;
|
|
243
|
+
private syncFromExternal;
|
|
244
|
+
private updateExternalFromDisplay;
|
|
245
|
+
private updateExternalFromDatepicker;
|
|
246
|
+
private patchExternalValue;
|
|
247
|
+
private areDatesEqual;
|
|
248
|
+
cleanDatepicker(): void;
|
|
249
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDatepickerRange, never>;
|
|
250
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDatepickerRange, "mapa-datepicker-range", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
251
|
+
}
|
|
252
|
+
type MapaDatepickerRangeComponent = MapaDatepickerRange;
|
|
253
|
+
|
|
254
|
+
export { MAPA_DATEPICKER_RANGE_FORMATS, MapaDatepickerRange };
|
|
255
|
+
export type { MapaDatepickerRangeComponent, MapaDatepickerRangeControlValue, MapaDatepickerRangeFormGroup };
|
|
@@ -79,6 +79,8 @@ declare class ElementBase {
|
|
|
79
79
|
mask?: string;
|
|
80
80
|
autocomplete?: string;
|
|
81
81
|
clearValue?: boolean;
|
|
82
|
+
minDate?: string | Date | null;
|
|
83
|
+
maxDate?: string | Date | null;
|
|
82
84
|
status?: Status[];
|
|
83
85
|
checkParent?: boolean;
|
|
84
86
|
checkChildren?: boolean;
|
|
@@ -111,6 +113,8 @@ declare class ElementBase {
|
|
|
111
113
|
mask?: string;
|
|
112
114
|
autocomplete?: string;
|
|
113
115
|
clearValue?: boolean;
|
|
116
|
+
minDate?: string | Date | null;
|
|
117
|
+
maxDate?: string | Date | null;
|
|
114
118
|
status?: Status[];
|
|
115
119
|
checkParent?: boolean;
|
|
116
120
|
checkChildren?: boolean;
|
|
@@ -161,6 +165,10 @@ interface MapaUiTexts {
|
|
|
161
165
|
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
162
166
|
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
163
167
|
};
|
|
168
|
+
table: {
|
|
169
|
+
emptyTitle: string;
|
|
170
|
+
emptySubtitle: string;
|
|
171
|
+
};
|
|
164
172
|
validation: {
|
|
165
173
|
cnpj: ValidationTextResolver;
|
|
166
174
|
cpf: ValidationTextResolver;
|
|
@@ -75,6 +75,8 @@ declare class ElementBase {
|
|
|
75
75
|
mask?: string;
|
|
76
76
|
autocomplete?: string;
|
|
77
77
|
clearValue?: boolean;
|
|
78
|
+
minDate?: string | Date | null;
|
|
79
|
+
maxDate?: string | Date | null;
|
|
78
80
|
status?: Status[];
|
|
79
81
|
checkParent?: boolean;
|
|
80
82
|
checkChildren?: boolean;
|
|
@@ -107,6 +109,8 @@ declare class ElementBase {
|
|
|
107
109
|
mask?: string;
|
|
108
110
|
autocomplete?: string;
|
|
109
111
|
clearValue?: boolean;
|
|
112
|
+
minDate?: string | Date | null;
|
|
113
|
+
maxDate?: string | Date | null;
|
|
110
114
|
status?: Status[];
|
|
111
115
|
checkParent?: boolean;
|
|
112
116
|
checkChildren?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
|
|
3
3
|
declare class MapaEmptyStateComponent {
|
|
4
|
-
title: string;
|
|
5
|
-
subtitle: string;
|
|
4
|
+
title: string | null;
|
|
5
|
+
subtitle: string | null;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaEmptyStateComponent, never>;
|
|
7
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaEmptyStateComponent, "mapa-empty", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
8
|
}
|
|
@@ -64,6 +64,10 @@ interface MapaUiTexts {
|
|
|
64
64
|
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
65
65
|
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
66
66
|
};
|
|
67
|
+
table: {
|
|
68
|
+
emptyTitle: string;
|
|
69
|
+
emptySubtitle: string;
|
|
70
|
+
};
|
|
67
71
|
validation: {
|
|
68
72
|
cnpj: ValidationTextResolver;
|
|
69
73
|
cpf: ValidationTextResolver;
|
|
@@ -153,6 +157,8 @@ declare class ElementBase {
|
|
|
153
157
|
mask?: string;
|
|
154
158
|
autocomplete?: string;
|
|
155
159
|
clearValue?: boolean;
|
|
160
|
+
minDate?: string | Date | null;
|
|
161
|
+
maxDate?: string | Date | null;
|
|
156
162
|
status?: Status[];
|
|
157
163
|
checkParent?: boolean;
|
|
158
164
|
checkChildren?: boolean;
|
|
@@ -185,6 +191,8 @@ declare class ElementBase {
|
|
|
185
191
|
mask?: string;
|
|
186
192
|
autocomplete?: string;
|
|
187
193
|
clearValue?: boolean;
|
|
194
|
+
minDate?: string | Date | null;
|
|
195
|
+
maxDate?: string | Date | null;
|
|
188
196
|
status?: Status[];
|
|
189
197
|
checkParent?: boolean;
|
|
190
198
|
checkChildren?: boolean;
|
|
@@ -84,6 +84,8 @@ declare class ElementBase {
|
|
|
84
84
|
mask?: string;
|
|
85
85
|
autocomplete?: string;
|
|
86
86
|
clearValue?: boolean;
|
|
87
|
+
minDate?: string | Date | null;
|
|
88
|
+
maxDate?: string | Date | null;
|
|
87
89
|
status?: Status[];
|
|
88
90
|
checkParent?: boolean;
|
|
89
91
|
checkChildren?: boolean;
|
|
@@ -116,6 +118,8 @@ declare class ElementBase {
|
|
|
116
118
|
mask?: string;
|
|
117
119
|
autocomplete?: string;
|
|
118
120
|
clearValue?: boolean;
|
|
121
|
+
minDate?: string | Date | null;
|
|
122
|
+
maxDate?: string | Date | null;
|
|
119
123
|
status?: Status[];
|
|
120
124
|
checkParent?: boolean;
|
|
121
125
|
checkChildren?: boolean;
|
|
@@ -75,6 +75,8 @@ declare class ElementBase {
|
|
|
75
75
|
mask?: string;
|
|
76
76
|
autocomplete?: string;
|
|
77
77
|
clearValue?: boolean;
|
|
78
|
+
minDate?: string | Date | null;
|
|
79
|
+
maxDate?: string | Date | null;
|
|
78
80
|
status?: Status[];
|
|
79
81
|
checkParent?: boolean;
|
|
80
82
|
checkChildren?: boolean;
|
|
@@ -107,6 +109,8 @@ declare class ElementBase {
|
|
|
107
109
|
mask?: string;
|
|
108
110
|
autocomplete?: string;
|
|
109
111
|
clearValue?: boolean;
|
|
112
|
+
minDate?: string | Date | null;
|
|
113
|
+
maxDate?: string | Date | null;
|
|
110
114
|
status?: Status[];
|
|
111
115
|
checkParent?: boolean;
|
|
112
116
|
checkChildren?: boolean;
|
|
@@ -75,6 +75,8 @@ declare class ElementBase {
|
|
|
75
75
|
mask?: string;
|
|
76
76
|
autocomplete?: string;
|
|
77
77
|
clearValue?: boolean;
|
|
78
|
+
minDate?: string | Date | null;
|
|
79
|
+
maxDate?: string | Date | null;
|
|
78
80
|
status?: Status[];
|
|
79
81
|
checkParent?: boolean;
|
|
80
82
|
checkChildren?: boolean;
|
|
@@ -107,6 +109,8 @@ declare class ElementBase {
|
|
|
107
109
|
mask?: string;
|
|
108
110
|
autocomplete?: string;
|
|
109
111
|
clearValue?: boolean;
|
|
112
|
+
minDate?: string | Date | null;
|
|
113
|
+
maxDate?: string | Date | null;
|
|
110
114
|
status?: Status[];
|
|
111
115
|
checkParent?: boolean;
|
|
112
116
|
checkChildren?: boolean;
|
|
@@ -40,6 +40,10 @@ interface MapaUiTexts {
|
|
|
40
40
|
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
41
41
|
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
42
42
|
};
|
|
43
|
+
table: {
|
|
44
|
+
emptyTitle: string;
|
|
45
|
+
emptySubtitle: string;
|
|
46
|
+
};
|
|
43
47
|
validation: {
|
|
44
48
|
cnpj: ValidationTextResolver;
|
|
45
49
|
cpf: ValidationTextResolver;
|
|
@@ -41,6 +41,10 @@ interface MapaUiTexts {
|
|
|
41
41
|
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
42
42
|
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
43
43
|
};
|
|
44
|
+
table: {
|
|
45
|
+
emptyTitle: string;
|
|
46
|
+
emptySubtitle: string;
|
|
47
|
+
};
|
|
44
48
|
validation: {
|
|
45
49
|
cnpj: ValidationTextResolver;
|
|
46
50
|
cpf: ValidationTextResolver;
|
|
@@ -75,6 +75,8 @@ declare class ElementBase {
|
|
|
75
75
|
mask?: string;
|
|
76
76
|
autocomplete?: string;
|
|
77
77
|
clearValue?: boolean;
|
|
78
|
+
minDate?: string | Date | null;
|
|
79
|
+
maxDate?: string | Date | null;
|
|
78
80
|
status?: Status[];
|
|
79
81
|
checkParent?: boolean;
|
|
80
82
|
checkChildren?: boolean;
|
|
@@ -107,6 +109,8 @@ declare class ElementBase {
|
|
|
107
109
|
mask?: string;
|
|
108
110
|
autocomplete?: string;
|
|
109
111
|
clearValue?: boolean;
|
|
112
|
+
minDate?: string | Date | null;
|
|
113
|
+
maxDate?: string | Date | null;
|
|
110
114
|
status?: Status[];
|
|
111
115
|
checkParent?: boolean;
|
|
112
116
|
checkChildren?: boolean;
|
|
@@ -44,6 +44,11 @@ declare class BubblePaginationDirective implements AfterViewInit, OnChanges {
|
|
|
44
44
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BubblePaginationDirective, "[appBubblePagination]", never, { "showFirstButton": { "alias": "showFirstButton"; "required": false; }; "showLastButton": { "alias": "showLastButton"; "required": false; }; "renderButtonsNumber": { "alias": "renderButtonsNumber"; "required": false; }; "appCustomLength": { "alias": "appCustomLength"; "required": false; }; "hideDefaultArrows": { "alias": "hideDefaultArrows"; "required": false; }; "bubblePageIndex": { "alias": "bubblePageIndex"; "required": false; }; }, { "pageIndexChangeEmitter": "pageIndexChangeEmitter"; }, never, never, true, never>;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
interface TableEmptyState {
|
|
48
|
+
title: string;
|
|
49
|
+
subtitle: string | null;
|
|
50
|
+
}
|
|
51
|
+
|
|
47
52
|
interface MenuActionItem {
|
|
48
53
|
image?: string;
|
|
49
54
|
icon?: string;
|
|
@@ -79,6 +84,11 @@ interface RowClickEvent<TData = TableRowData> {
|
|
|
79
84
|
action: string;
|
|
80
85
|
}
|
|
81
86
|
|
|
87
|
+
interface TableStatus {
|
|
88
|
+
loading: boolean;
|
|
89
|
+
finished: boolean;
|
|
90
|
+
}
|
|
91
|
+
|
|
82
92
|
interface ValidationMessageContext {
|
|
83
93
|
actualLength?: number;
|
|
84
94
|
max?: number;
|
|
@@ -118,6 +128,10 @@ interface MapaUiTexts {
|
|
|
118
128
|
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
119
129
|
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
120
130
|
};
|
|
131
|
+
table: {
|
|
132
|
+
emptyTitle: string;
|
|
133
|
+
emptySubtitle: string;
|
|
134
|
+
};
|
|
121
135
|
validation: {
|
|
122
136
|
cnpj: ValidationTextResolver;
|
|
123
137
|
cpf: ValidationTextResolver;
|
|
@@ -195,6 +209,8 @@ declare class MapaTableComponent implements AfterViewInit, OnChanges {
|
|
|
195
209
|
menuItems: MenuItem[];
|
|
196
210
|
menu: boolean | undefined;
|
|
197
211
|
showPaginator: boolean;
|
|
212
|
+
status: TableStatus;
|
|
213
|
+
empty: TableEmptyState;
|
|
198
214
|
paginatorShowFirstButton: boolean;
|
|
199
215
|
paginatorShowLastButton: boolean;
|
|
200
216
|
paginatorRenderButtonsNumber: number;
|
|
@@ -217,11 +233,15 @@ declare class MapaTableComponent implements AfterViewInit, OnChanges {
|
|
|
217
233
|
get texts(): MapaUiTexts;
|
|
218
234
|
get selectAllLabel(): string;
|
|
219
235
|
get paginatorPageIndex(): number;
|
|
236
|
+
get resolvedEmptyTitle(): string;
|
|
237
|
+
get resolvedEmptySubtitle(): string | null;
|
|
238
|
+
get skeletonRows(): number[];
|
|
220
239
|
ngAfterViewInit(): void;
|
|
221
240
|
ngOnChanges(changes: SimpleChanges): void;
|
|
222
241
|
private refreshTableState;
|
|
223
242
|
private rebuildDesktopTable;
|
|
224
243
|
trackColumn(index: number, column: TableColumn): string;
|
|
244
|
+
getSkeletonColumnWidth(column: TableColumn): string;
|
|
225
245
|
setupFilter(): void;
|
|
226
246
|
isAllSelected(): boolean;
|
|
227
247
|
toggleAllRows(): void;
|
|
@@ -269,8 +289,8 @@ declare class MapaTableComponent implements AfterViewInit, OnChanges {
|
|
|
269
289
|
private isMenuItem;
|
|
270
290
|
private isTableRowData;
|
|
271
291
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaTableComponent, never>;
|
|
272
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapaTableComponent, "mapa-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "totalCount": { "alias": "totalCount"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "filterControl": { "alias": "filterControl"; "required": false; }; "menuItems": { "alias": "menuItems"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "paginatorShowFirstButton": { "alias": "paginatorShowFirstButton"; "required": false; }; "paginatorShowLastButton": { "alias": "paginatorShowLastButton"; "required": false; }; "paginatorRenderButtonsNumber": { "alias": "paginatorRenderButtonsNumber"; "required": false; }; "paginatorHideDefaultArrows": { "alias": "paginatorHideDefaultArrows"; "required": false; }; }, { "rowClick": "rowClick"; "selectedRows": "selectedRows"; "onChangePage": "onChangePage"; "onSortChange": "onSortChange"; }, never, never, true, never>;
|
|
292
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaTableComponent, "mapa-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "totalCount": { "alias": "totalCount"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "filterControl": { "alias": "filterControl"; "required": false; }; "menuItems": { "alias": "menuItems"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "status": { "alias": "status"; "required": false; }; "empty": { "alias": "empty"; "required": false; }; "paginatorShowFirstButton": { "alias": "paginatorShowFirstButton"; "required": false; }; "paginatorShowLastButton": { "alias": "paginatorShowLastButton"; "required": false; }; "paginatorRenderButtonsNumber": { "alias": "paginatorRenderButtonsNumber"; "required": false; }; "paginatorHideDefaultArrows": { "alias": "paginatorHideDefaultArrows"; "required": false; }; }, { "rowClick": "rowClick"; "selectedRows": "selectedRows"; "onChangePage": "onChangePage"; "onSortChange": "onSortChange"; }, never, never, true, never>;
|
|
273
293
|
}
|
|
274
294
|
|
|
275
295
|
export { BubblePaginationDirective, MapaTableComponent, customPaginatorFactory };
|
|
276
|
-
export type { RowClickEvent, SelectedTableRow, TableCellStyleClass, TableRowData };
|
|
296
|
+
export type { RowClickEvent, SelectedTableRow, TableCellStyleClass, TableEmptyState, TableRowData, TableStatus };
|
|
@@ -75,6 +75,8 @@ declare class ElementBase {
|
|
|
75
75
|
mask?: string;
|
|
76
76
|
autocomplete?: string;
|
|
77
77
|
clearValue?: boolean;
|
|
78
|
+
minDate?: string | Date | null;
|
|
79
|
+
maxDate?: string | Date | null;
|
|
78
80
|
status?: Status[];
|
|
79
81
|
checkParent?: boolean;
|
|
80
82
|
checkChildren?: boolean;
|
|
@@ -107,6 +109,8 @@ declare class ElementBase {
|
|
|
107
109
|
mask?: string;
|
|
108
110
|
autocomplete?: string;
|
|
109
111
|
clearValue?: boolean;
|
|
112
|
+
minDate?: string | Date | null;
|
|
113
|
+
maxDate?: string | Date | null;
|
|
110
114
|
status?: Status[];
|
|
111
115
|
checkParent?: boolean;
|
|
112
116
|
checkChildren?: boolean;
|
|
@@ -57,7 +57,8 @@ declare enum Permissions {
|
|
|
57
57
|
V5TestInvitationUpdate = "V5TestInvitationUpdate",
|
|
58
58
|
V5MasterSpecialist = "V5MasterSpecialist",
|
|
59
59
|
V5ClientType = "V5ClientType",
|
|
60
|
-
V5ContractsManagement = "V5ContractsManagement"
|
|
60
|
+
V5ContractsManagement = "V5ContractsManagement",
|
|
61
|
+
V5CertificationManager = "V5CertificationManager"
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
declare function hasPermission(requiredPermission: Permissions): boolean;
|
|
Binary file
|