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
package/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { ReplaySubject } from 'rxjs';
|
|
|
9
9
|
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
10
10
|
import * as mapa_library_ui from 'mapa-library-ui';
|
|
11
11
|
import { MatAccordion } from '@angular/material/expansion';
|
|
12
|
+
import { MatDatepicker } from '@angular/material/datepicker';
|
|
12
13
|
import { MatDialogRef, MatDialog, MatDialogConfig } from '@angular/material/dialog';
|
|
13
14
|
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
14
15
|
import { MatSelect } from '@angular/material/select';
|
|
@@ -92,6 +93,8 @@ declare class ElementBase {
|
|
|
92
93
|
mask?: string;
|
|
93
94
|
autocomplete?: string;
|
|
94
95
|
clearValue?: boolean;
|
|
96
|
+
minDate?: string | Date | null;
|
|
97
|
+
maxDate?: string | Date | null;
|
|
95
98
|
status?: Status[];
|
|
96
99
|
checkParent?: boolean;
|
|
97
100
|
checkChildren?: boolean;
|
|
@@ -124,6 +127,8 @@ declare class ElementBase {
|
|
|
124
127
|
mask?: string;
|
|
125
128
|
autocomplete?: string;
|
|
126
129
|
clearValue?: boolean;
|
|
130
|
+
minDate?: string | Date | null;
|
|
131
|
+
maxDate?: string | Date | null;
|
|
127
132
|
status?: Status[];
|
|
128
133
|
checkParent?: boolean;
|
|
129
134
|
checkChildren?: boolean;
|
|
@@ -139,6 +144,14 @@ declare class DropdownTree extends ElementBase {
|
|
|
139
144
|
controlType: string;
|
|
140
145
|
}
|
|
141
146
|
|
|
147
|
+
declare class Datepicker extends ElementBase {
|
|
148
|
+
controlType: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
declare class DatepickerRange extends ElementBase {
|
|
152
|
+
controlType: string;
|
|
153
|
+
}
|
|
154
|
+
|
|
142
155
|
declare class InputText extends ElementBase {
|
|
143
156
|
controlType: string;
|
|
144
157
|
}
|
|
@@ -237,6 +250,11 @@ interface TableColumn {
|
|
|
237
250
|
classification?: Classification$1;
|
|
238
251
|
}
|
|
239
252
|
|
|
253
|
+
interface TableEmptyState {
|
|
254
|
+
title: string;
|
|
255
|
+
subtitle: string | null;
|
|
256
|
+
}
|
|
257
|
+
|
|
240
258
|
interface TableCellStyleClass {
|
|
241
259
|
key: string;
|
|
242
260
|
class: string;
|
|
@@ -257,6 +275,11 @@ interface RowClickEvent<TData = TableRowData> {
|
|
|
257
275
|
action: string;
|
|
258
276
|
}
|
|
259
277
|
|
|
278
|
+
interface TableStatus {
|
|
279
|
+
loading: boolean;
|
|
280
|
+
finished: boolean;
|
|
281
|
+
}
|
|
282
|
+
|
|
260
283
|
declare class MatInputAutosizeDirective implements AfterViewInit {
|
|
261
284
|
private childMatInput;
|
|
262
285
|
private childNgModel;
|
|
@@ -353,6 +376,10 @@ interface MapaUiTexts {
|
|
|
353
376
|
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
354
377
|
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
355
378
|
};
|
|
379
|
+
table: {
|
|
380
|
+
emptyTitle: string;
|
|
381
|
+
emptySubtitle: string;
|
|
382
|
+
};
|
|
356
383
|
validation: {
|
|
357
384
|
cnpj: ValidationTextResolver;
|
|
358
385
|
cpf: ValidationTextResolver;
|
|
@@ -400,6 +427,10 @@ declare const MAPA_UI_TEXTS: InjectionToken<Partial<{
|
|
|
400
427
|
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
401
428
|
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
402
429
|
}>;
|
|
430
|
+
table: Partial<{
|
|
431
|
+
emptyTitle: string;
|
|
432
|
+
emptySubtitle: string;
|
|
433
|
+
}>;
|
|
403
434
|
validation: Partial<{
|
|
404
435
|
cnpj: ValidationTextResolver;
|
|
405
436
|
cpf: ValidationTextResolver;
|
|
@@ -1233,23 +1264,58 @@ declare class CheckboxComponent {
|
|
|
1233
1264
|
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "mapa-checkbox", never, { "color": { "alias": "color"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; }, {}, never, never, true, never>;
|
|
1234
1265
|
}
|
|
1235
1266
|
|
|
1236
|
-
|
|
1267
|
+
declare const MAPA_DATEPICKER_FORMATS: {
|
|
1268
|
+
parse: {
|
|
1269
|
+
dateInput: string;
|
|
1270
|
+
};
|
|
1271
|
+
display: {
|
|
1272
|
+
dateInput: string;
|
|
1273
|
+
monthYearLabel: string;
|
|
1274
|
+
dateA11yLabel: string;
|
|
1275
|
+
monthYearA11yLabel: string;
|
|
1276
|
+
};
|
|
1277
|
+
};
|
|
1278
|
+
declare class MapaDatepicker implements OnInit {
|
|
1279
|
+
private readonly cdr;
|
|
1280
|
+
formGroup: FormGroup;
|
|
1281
|
+
element: Datepicker;
|
|
1282
|
+
private readonly destroyRef;
|
|
1283
|
+
readonly formDatepicker: FormGroup<{
|
|
1284
|
+
date: FormControl<Date | null>;
|
|
1285
|
+
}>;
|
|
1286
|
+
formControl: FormControl<string | null>;
|
|
1287
|
+
constructor(cdr: ChangeDetectorRef);
|
|
1288
|
+
ngOnInit(): void;
|
|
1289
|
+
get minDate(): Date | null;
|
|
1290
|
+
get maxDate(): Date | null;
|
|
1291
|
+
hasValue(): boolean;
|
|
1292
|
+
cleanDatepicker(): void;
|
|
1293
|
+
private syncDatepickerControl;
|
|
1294
|
+
private updateExternalControl;
|
|
1295
|
+
closePicker(picker: MatDatepicker<Date>): void;
|
|
1296
|
+
private areDatesEqual;
|
|
1297
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDatepicker, never>;
|
|
1298
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDatepicker, "mapa-datepicker", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
interface MapaDatepickerRangeControlValue {
|
|
1237
1302
|
startDate: string | null;
|
|
1238
1303
|
endDate: string | null;
|
|
1239
1304
|
}
|
|
1240
|
-
type
|
|
1241
|
-
|
|
1242
|
-
endDate: FormControl<MapaDatepickerValue["endDate"]>;
|
|
1243
|
-
}>;
|
|
1244
|
-
type MapaDatepickerRangeValue = {
|
|
1305
|
+
type MapaDatepickerRangeFormGroup = FormGroup;
|
|
1306
|
+
type MapaDatepickerInternalRangeValue = {
|
|
1245
1307
|
startDate: Date | null;
|
|
1246
1308
|
endDate: Date | null;
|
|
1247
1309
|
};
|
|
1248
|
-
type
|
|
1249
|
-
startDate: FormControl<
|
|
1250
|
-
endDate: FormControl<
|
|
1310
|
+
type MapaDatepickerInternalRangeFormGroup = FormGroup<{
|
|
1311
|
+
startDate: FormControl<MapaDatepickerInternalRangeValue["startDate"]>;
|
|
1312
|
+
endDate: FormControl<MapaDatepickerInternalRangeValue["endDate"]>;
|
|
1313
|
+
}>;
|
|
1314
|
+
type MapaDatepickerRangeDisplayFormGroup = FormGroup<{
|
|
1315
|
+
startDate: FormControl<string | null>;
|
|
1316
|
+
endDate: FormControl<string | null>;
|
|
1251
1317
|
}>;
|
|
1252
|
-
declare const
|
|
1318
|
+
declare const MAPA_DATEPICKER_RANGE_FORMATS: {
|
|
1253
1319
|
parse: {
|
|
1254
1320
|
dateInput: string;
|
|
1255
1321
|
};
|
|
@@ -1260,25 +1326,32 @@ declare const MY_DATE_FORMATS: {
|
|
|
1260
1326
|
monthYearA11yLabel: string;
|
|
1261
1327
|
};
|
|
1262
1328
|
};
|
|
1263
|
-
declare class
|
|
1329
|
+
declare class MapaDatepickerRange implements OnInit {
|
|
1264
1330
|
private readonly i18n;
|
|
1265
1331
|
private readonly cdr;
|
|
1266
|
-
formGroup:
|
|
1332
|
+
formGroup: FormGroup;
|
|
1333
|
+
element: DatepickerRange;
|
|
1267
1334
|
private readonly destroyRef;
|
|
1268
1335
|
private readonly defaultDaysBack;
|
|
1269
|
-
readonly
|
|
1336
|
+
private readonly emptyValue;
|
|
1337
|
+
readonly formDatepicker: MapaDatepickerInternalRangeFormGroup;
|
|
1338
|
+
readonly formDisplay: MapaDatepickerRangeDisplayFormGroup;
|
|
1339
|
+
rangeControl: FormControl<MapaDatepickerRangeControlValue | null>;
|
|
1270
1340
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
1271
1341
|
get texts(): mapa_library_ui.MapaUiTexts;
|
|
1272
1342
|
ngOnInit(): void;
|
|
1273
1343
|
get startDatePlaceholder(): string;
|
|
1274
1344
|
get endDatePlaceholder(): string;
|
|
1275
|
-
private
|
|
1276
|
-
private
|
|
1345
|
+
private syncFromExternal;
|
|
1346
|
+
private updateExternalFromDisplay;
|
|
1347
|
+
private updateExternalFromDatepicker;
|
|
1348
|
+
private patchExternalValue;
|
|
1277
1349
|
private areDatesEqual;
|
|
1278
1350
|
cleanDatepicker(): void;
|
|
1279
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
1280
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
1351
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDatepickerRange, never>;
|
|
1352
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDatepickerRange, "mapa-datepicker-range", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
1281
1353
|
}
|
|
1354
|
+
type MapaDatepickerRangeComponent = MapaDatepickerRange;
|
|
1282
1355
|
|
|
1283
1356
|
declare class MapaDialogComponent {
|
|
1284
1357
|
data: any;
|
|
@@ -1363,8 +1436,8 @@ declare class MapaDropdownTreeComponent implements OnInit, OnChanges, AfterViewI
|
|
|
1363
1436
|
}
|
|
1364
1437
|
|
|
1365
1438
|
declare class MapaEmptyStateComponent {
|
|
1366
|
-
title: string;
|
|
1367
|
-
subtitle: string;
|
|
1439
|
+
title: string | null;
|
|
1440
|
+
subtitle: string | null;
|
|
1368
1441
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaEmptyStateComponent, never>;
|
|
1369
1442
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaEmptyStateComponent, "mapa-empty", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; }, {}, never, never, true, never>;
|
|
1370
1443
|
}
|
|
@@ -1653,6 +1726,8 @@ declare class MapaTableComponent implements AfterViewInit, OnChanges {
|
|
|
1653
1726
|
menuItems: MenuItem[];
|
|
1654
1727
|
menu: boolean | undefined;
|
|
1655
1728
|
showPaginator: boolean;
|
|
1729
|
+
status: TableStatus;
|
|
1730
|
+
empty: TableEmptyState;
|
|
1656
1731
|
paginatorShowFirstButton: boolean;
|
|
1657
1732
|
paginatorShowLastButton: boolean;
|
|
1658
1733
|
paginatorRenderButtonsNumber: number;
|
|
@@ -1675,11 +1750,15 @@ declare class MapaTableComponent implements AfterViewInit, OnChanges {
|
|
|
1675
1750
|
get texts(): mapa_library_ui.MapaUiTexts;
|
|
1676
1751
|
get selectAllLabel(): string;
|
|
1677
1752
|
get paginatorPageIndex(): number;
|
|
1753
|
+
get resolvedEmptyTitle(): string;
|
|
1754
|
+
get resolvedEmptySubtitle(): string | null;
|
|
1755
|
+
get skeletonRows(): number[];
|
|
1678
1756
|
ngAfterViewInit(): void;
|
|
1679
1757
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1680
1758
|
private refreshTableState;
|
|
1681
1759
|
private rebuildDesktopTable;
|
|
1682
1760
|
trackColumn(index: number, column: TableColumn): string;
|
|
1761
|
+
getSkeletonColumnWidth(column: TableColumn): string;
|
|
1683
1762
|
setupFilter(): void;
|
|
1684
1763
|
isAllSelected(): boolean;
|
|
1685
1764
|
toggleAllRows(): void;
|
|
@@ -1727,7 +1806,7 @@ declare class MapaTableComponent implements AfterViewInit, OnChanges {
|
|
|
1727
1806
|
private isMenuItem;
|
|
1728
1807
|
private isTableRowData;
|
|
1729
1808
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaTableComponent, never>;
|
|
1730
|
-
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>;
|
|
1809
|
+
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>;
|
|
1731
1810
|
}
|
|
1732
1811
|
|
|
1733
1812
|
interface Tag {
|
|
@@ -1876,5 +1955,5 @@ declare class MapaScaleParameterizationComponent {
|
|
|
1876
1955
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaScaleParameterizationComponent, "mapa-scale-parameterization", never, { "data": { "alias": "data"; "required": false; }; "showProgressbar": { "alias": "showProgressbar"; "required": false; }; "showInterval": { "alias": "showInterval"; "required": false; }; "showDots": { "alias": "showDots"; "required": false; }; }, {}, never, never, true, never>;
|
|
1877
1956
|
}
|
|
1878
1957
|
|
|
1879
|
-
export { AIH_ESTADOS, AIH_TIPOS, BubblePaginationDirective, ButtonComponent, ButtonIconComponent, CEPRange, CID_NAME, CID_REGEX, CORES, CPFPipe, CapabilityClassificationService, CheckboxComponent,
|
|
1880
|
-
export type { ActionButton, Benchmark, BenchmarkMark, BenchmarkingChart, Classification as BenchmarkingClassification, BigObject, Breadpiece, ButtonIcon, Candidate, Capability, CapabilityClassification, CapabilityComparative, CapabilityItem, ChartOptions, Classification$1 as Classification, Competence$1 as Competence, DataNode, DetailedIndicatorItem, DetailedIndicatorSection, DialogData, Dimension$1 as Dimension, ElementOption, ElementSearch, ElementTreeNode, Errors, EstadosType, EvaluationBenchmarkResult, Dimension$2 as GroupReportDimension, GroupReportItem, IndicatorCollectionOptions, IndicatorCollections, Indicators, LowReliabilityReport,
|
|
1958
|
+
export { AIH_ESTADOS, AIH_TIPOS, BubblePaginationDirective, ButtonComponent, ButtonIconComponent, CEPRange, CID_NAME, CID_REGEX, CORES, CPFPipe, CapabilityClassificationService, CheckboxComponent, Datepicker, DatepickerRange, Dropdown, DropdownTree, ESTADOS, ESTADOS_SIGLA, ElementBase, FiltersComponent, HtmlSanitizerService, IPTUCREATE, IPTUMASKS, IPTUVALIDATE, IconComponent, InputText, LOCALIZACAO_BAIRROS, LOCALIZACAO_CIDADES, LOCALIZACAO_COMPLEMENTOS, LOCALIZACAO_ESTADOS, LOCALIZACAO_LOGRADOUROS, LOCALIZACAO_RUAS, MAPA_DATEPICKER_FORMATS, MAPA_DATEPICKER_RANGE_FORMATS, MAPA_UI_DEFAULT_TEXTS, MAPA_UI_TEXTS, MASKSIE, MapaBenchmarkChartComponent, MapaBenchmarkIndicatorComponent, MapaBreadcrumbComponent, MapaCapabilityComparativeChartComponent, MapaCapabilityComparativeComponent, MapaCapabilityComparativeHeaderComponent, MapaCapabilityDetailComponent, MapaCapabilityDotComponent, MapaCapabilityExpandComponent, MapaCapabilityIndicatorChartComponent, MapaCapabilityIndicatorComponent, MapaCapabilityIndicatorListComponent, MapaCapabilityIntervalBarComponent, MapaCapabilityIntervalComponent, MapaChartComponent, MapaDatepicker, MapaDatepickerRange, MapaDetailsComponent, MapaDialogComponent, MapaDropdownComponent, MapaDropdownTreeComponent, MapaEmptyStateComponent, MapaFormComponent, MapaFormErrorsComponent, MapaGroupReportComponent, MapaI18nService, MapaInputComponent, MapaMenuComponent, MapaNavListComponent, MapaProgressbarComponent, MapaScaleComponent, MapaScaleParameterizationComponent, MapaSvgIconComponent, MapaTableComponent, MapaTextareaComponent, MapaTooltipComponent, MapaTooltipDirective, MapaWarningComponent, MatInputAutosizeDirective, PLACAS_INVALID, PLACAS_RANGE, RadioButton, RadioButtonComponent, ReportItemComponent, SafeHtmlPipe, SlideToggle, SlideToggleComponent, TagComponent, Textarea, ValidationMessageResolverService, allNumbersAreSame, buildDetailedIndicatorSections, buildIndicatorCollections, cep_ranges, create_aih, create_cartaocredito, create_certidao, create_cnh, create_cnhespelho, create_cnpj, create_cns, create_cpf, create_ect, create_iptu, create_iptu_ctba, create_iptu_sp, create_pispasep, create_processo, create_renachestadual, create_renachseguranca, create_renavam, create_titulo, create_titulo_atual, creditCardValidator, currencyToNumber, customPaginatorFactory, faker_iptu, fillString, generateInscricaoEstadual, getAllDigits, getAllWords, getSpecialProperty, isArray, isNil, isNumber, isPresent, isString, makeGenericFaker, maskBr, mask_iptu, mergeMapaUiTexts, modulo11, modulo11Custom, modulo11a, normalizeLookup, normalizeText, numberToCurrency, openDialog, processCaretTraps, provideMapaUiTexts, rand, randArray, randomEstadoSigla, randomLetter, randomLetterOrNumber, randomNumber, rg_rj, rg_sp, sanitizeHtmlContent, slugify, utilsBr, validateBr, validate_aih, validate_cartaocredito, validate_celular, validate_cep, validate_certidao, validate_chassi, validate_cnh, validate_cnhespelho, validate_cnpj, validate_cns, validate_cpf, validate_currency, validate_datahora, validate_datetime, validate_ect, validate_inscricaoestadual, validate_iptu, validate_iptu_contagem, validate_iptu_ctba, validate_iptu_sp, validate_number, validate_pispasep, validate_placa, validate_porcentagem, validate_processo, validate_renachestadual, validate_renachseguranca, validate_renavam, validate_rg, validate_sped, validate_telefone, validate_time, validate_titulo };
|
|
1959
|
+
export type { ActionButton, Benchmark, BenchmarkMark, BenchmarkingChart, Classification as BenchmarkingClassification, BigObject, Breadpiece, ButtonIcon, Candidate, Capability, CapabilityClassification, CapabilityComparative, CapabilityItem, ChartOptions, Classification$1 as Classification, Competence$1 as Competence, DataNode, DetailedIndicatorItem, DetailedIndicatorSection, DialogData, Dimension$1 as Dimension, ElementOption, ElementSearch, ElementTreeNode, Errors, EstadosType, EvaluationBenchmarkResult, Dimension$2 as GroupReportDimension, GroupReportItem, IndicatorCollectionOptions, IndicatorCollections, Indicators, LowReliabilityReport, MapaDatepickerRangeComponent, MapaDatepickerRangeControlValue, MapaDatepickerRangeFormGroup, MapaUiTexts, MaskType, Masks, MasksIE, MenuActionEvent, MenuActionItem, MenuItem, PartialMapaUiTexts, ProgressBar$1 as ProgressBar, ReportItem, ReportItemMenuItem, RowClickEvent, Scale$1 as Scale, Competence as ScaleParameterizationCompetence, Dimension as ScaleParameterizationDimension, ProgressBar as ScaleParameterizationProgressBar, Scale as ScaleParameterizationScale, SelectedTableRow, Status, TableCellStyleClass, TableColumn, TableColumnStatus, TableEmptyState, TableRowData, TableStatus, Tag, ValidationMessageContext, ValidationTextResolver };
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mapa-library-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^20.0.0",
|
|
6
6
|
"@angular/cdk": "^20.0.0",
|
|
@@ -57,6 +57,10 @@
|
|
|
57
57
|
"types": "./src/lib/components/datepicker/index.d.ts",
|
|
58
58
|
"default": "./fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs"
|
|
59
59
|
},
|
|
60
|
+
"./datepicker-range": {
|
|
61
|
+
"types": "./src/lib/components/datepicker-range/index.d.ts",
|
|
62
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs"
|
|
63
|
+
},
|
|
60
64
|
"./dialog": {
|
|
61
65
|
"types": "./src/lib/components/dialog/index.d.ts",
|
|
62
66
|
"default": "./fesm2022/mapa-library-ui-src-lib-components-dialog.mjs"
|
|
@@ -188,6 +192,10 @@
|
|
|
188
192
|
"types": "./src/lib/components/datepicker/index.d.ts",
|
|
189
193
|
"default": "./fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs"
|
|
190
194
|
},
|
|
195
|
+
"./src/lib/components/datepicker-range": {
|
|
196
|
+
"types": "./src/lib/components/datepicker-range/index.d.ts",
|
|
197
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs"
|
|
198
|
+
},
|
|
191
199
|
"./src/lib/components/dialog": {
|
|
192
200
|
"types": "./src/lib/components/dialog/index.d.ts",
|
|
193
201
|
"default": "./fesm2022/mapa-library-ui-src-lib-components-dialog.mjs"
|
|
@@ -57,6 +57,10 @@ interface MapaUiTexts {
|
|
|
57
57
|
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
58
58
|
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
59
59
|
};
|
|
60
|
+
table: {
|
|
61
|
+
emptyTitle: string;
|
|
62
|
+
emptySubtitle: string;
|
|
63
|
+
};
|
|
60
64
|
validation: {
|
|
61
65
|
cnpj: ValidationTextResolver;
|
|
62
66
|
cpf: ValidationTextResolver;
|
|
@@ -146,6 +150,8 @@ declare class ElementBase {
|
|
|
146
150
|
mask?: string;
|
|
147
151
|
autocomplete?: string;
|
|
148
152
|
clearValue?: boolean;
|
|
153
|
+
minDate?: string | Date | null;
|
|
154
|
+
maxDate?: string | Date | null;
|
|
149
155
|
status?: Status[];
|
|
150
156
|
checkParent?: boolean;
|
|
151
157
|
checkChildren?: boolean;
|
|
@@ -178,6 +184,8 @@ declare class ElementBase {
|
|
|
178
184
|
mask?: string;
|
|
179
185
|
autocomplete?: string;
|
|
180
186
|
clearValue?: boolean;
|
|
187
|
+
minDate?: string | Date | null;
|
|
188
|
+
maxDate?: string | Date | null;
|
|
181
189
|
status?: Status[];
|
|
182
190
|
checkParent?: boolean;
|
|
183
191
|
checkChildren?: boolean;
|
|
@@ -76,6 +76,8 @@ declare class ElementBase {
|
|
|
76
76
|
mask?: string;
|
|
77
77
|
autocomplete?: string;
|
|
78
78
|
clearValue?: boolean;
|
|
79
|
+
minDate?: string | Date | null;
|
|
80
|
+
maxDate?: string | Date | null;
|
|
79
81
|
status?: Status[];
|
|
80
82
|
checkParent?: boolean;
|
|
81
83
|
checkChildren?: boolean;
|
|
@@ -108,6 +110,8 @@ declare class ElementBase {
|
|
|
108
110
|
mask?: string;
|
|
109
111
|
autocomplete?: string;
|
|
110
112
|
clearValue?: boolean;
|
|
113
|
+
minDate?: string | Date | null;
|
|
114
|
+
maxDate?: string | Date | null;
|
|
111
115
|
status?: Status[];
|
|
112
116
|
checkParent?: boolean;
|
|
113
117
|
checkChildren?: boolean;
|
|
@@ -1,94 +1,129 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
import { EventEmitter, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
4
|
+
import { MatDatepicker } from '@angular/material/datepicker';
|
|
5
5
|
|
|
6
|
-
interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
interface ElementTreeNode {
|
|
7
|
+
key: string;
|
|
8
|
+
value: string;
|
|
9
|
+
children?: ElementTreeNode[];
|
|
10
|
+
isLeaf?: boolean;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
validation: {
|
|
46
|
-
cnpj: ValidationTextResolver;
|
|
47
|
-
cpf: ValidationTextResolver;
|
|
48
|
-
email: ValidationTextResolver;
|
|
49
|
-
max: ValidationTextResolver;
|
|
50
|
-
maxLength: ValidationTextResolver;
|
|
51
|
-
min: ValidationTextResolver;
|
|
52
|
-
minLength: ValidationTextResolver;
|
|
53
|
-
pattern: ValidationTextResolver;
|
|
54
|
-
required: ValidationTextResolver;
|
|
55
|
-
};
|
|
12
|
+
interface ElementOption {
|
|
13
|
+
key: string;
|
|
14
|
+
value: string;
|
|
15
|
+
children?: ElementOption[];
|
|
16
|
+
childrenLevel?: number | null;
|
|
56
17
|
}
|
|
57
|
-
type PartialMapaUiTexts = Partial<{
|
|
58
|
-
[K in keyof MapaUiTexts]: Partial<MapaUiTexts[K]>;
|
|
59
|
-
}>;
|
|
60
18
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
readonly textsSignal: i0.Signal<MapaUiTexts>;
|
|
65
|
-
readonly texts$: rxjs.Observable<MapaUiTexts>;
|
|
66
|
-
constructor(customTexts: PartialMapaUiTexts | null);
|
|
67
|
-
get texts(): MapaUiTexts;
|
|
68
|
-
setTexts(texts: PartialMapaUiTexts): void;
|
|
69
|
-
resolveValidationText(key: keyof MapaUiTexts["validation"], context?: ValidationMessageContext): string;
|
|
70
|
-
private resolveText;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapaI18nService, [{ optional: true; }]>;
|
|
72
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MapaI18nService>;
|
|
19
|
+
interface ElementGroup {
|
|
20
|
+
label: string;
|
|
21
|
+
options: ElementOption[];
|
|
73
22
|
}
|
|
74
23
|
|
|
75
|
-
interface
|
|
76
|
-
|
|
77
|
-
|
|
24
|
+
interface ActionButton {
|
|
25
|
+
label: string;
|
|
26
|
+
action: EventEmitter<boolean>;
|
|
78
27
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
28
|
+
|
|
29
|
+
interface ElementSearch {
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
noEntriesFoundLabel?: string;
|
|
32
|
+
formControl?: FormControl;
|
|
33
|
+
toggleAllCheckbox?: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface Errors {
|
|
37
|
+
required?: string;
|
|
38
|
+
minLength?: string;
|
|
39
|
+
cpf?: string;
|
|
40
|
+
cnpj?: string;
|
|
41
|
+
email?: string;
|
|
42
|
+
pattern?: string;
|
|
43
|
+
min?: string;
|
|
44
|
+
max?: string;
|
|
45
|
+
maxLength?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface Status {
|
|
49
|
+
label: string;
|
|
50
|
+
}
|
|
51
|
+
declare class ElementBase {
|
|
52
|
+
value: string;
|
|
53
|
+
key: string;
|
|
54
|
+
label: string;
|
|
55
|
+
required: boolean;
|
|
56
|
+
order: number;
|
|
57
|
+
controlType: string;
|
|
58
|
+
type: string;
|
|
59
|
+
placeholder?: string;
|
|
60
|
+
readonly: boolean;
|
|
61
|
+
hint?: string;
|
|
62
|
+
prefix?: string;
|
|
63
|
+
suffix?: string;
|
|
64
|
+
autosize?: boolean;
|
|
65
|
+
autosizeMinWidth?: string;
|
|
66
|
+
autosizeMaxWidth?: string;
|
|
67
|
+
autosizeMinRow?: number;
|
|
68
|
+
autosizeMaxRow?: number;
|
|
69
|
+
options: ElementOption[] | ElementGroup[];
|
|
70
|
+
tree: ElementTreeNode[];
|
|
71
|
+
multiple?: boolean;
|
|
72
|
+
search?: ElementSearch;
|
|
73
|
+
maxLength: string | number | null;
|
|
74
|
+
errors?: Errors;
|
|
75
|
+
actionButton?: ActionButton;
|
|
76
|
+
mask?: string;
|
|
77
|
+
autocomplete?: string;
|
|
78
|
+
clearValue?: boolean;
|
|
79
|
+
minDate?: string | Date | null;
|
|
80
|
+
maxDate?: string | Date | null;
|
|
81
|
+
status?: Status[];
|
|
82
|
+
checkParent?: boolean;
|
|
83
|
+
checkChildren?: boolean;
|
|
84
|
+
openedChange?: EventEmitter<boolean>;
|
|
85
|
+
constructor(options?: {
|
|
86
|
+
value?: string;
|
|
87
|
+
key?: string;
|
|
88
|
+
label?: string;
|
|
89
|
+
required?: boolean;
|
|
90
|
+
order?: number;
|
|
91
|
+
controlType?: string;
|
|
92
|
+
type?: string;
|
|
93
|
+
placeholder?: string;
|
|
94
|
+
readonly?: boolean;
|
|
95
|
+
hint?: string;
|
|
96
|
+
prefix?: string;
|
|
97
|
+
suffix?: string;
|
|
98
|
+
autosize?: boolean;
|
|
99
|
+
autosizeMinWidth?: string;
|
|
100
|
+
autosizeMaxWidth?: string;
|
|
101
|
+
autosizeMinRow?: number;
|
|
102
|
+
autosizeMaxRow?: number;
|
|
103
|
+
options?: ElementOption[] | ElementGroup[];
|
|
104
|
+
tree?: ElementTreeNode[];
|
|
105
|
+
multiple?: boolean;
|
|
106
|
+
search?: ElementSearch;
|
|
107
|
+
maxLength?: string | number | null;
|
|
108
|
+
errors?: Errors;
|
|
109
|
+
actionButton?: ActionButton;
|
|
110
|
+
mask?: string;
|
|
111
|
+
autocomplete?: string;
|
|
112
|
+
clearValue?: boolean;
|
|
113
|
+
minDate?: string | Date | null;
|
|
114
|
+
maxDate?: string | Date | null;
|
|
115
|
+
status?: Status[];
|
|
116
|
+
checkParent?: boolean;
|
|
117
|
+
checkChildren?: boolean;
|
|
118
|
+
openedChange?: EventEmitter<boolean>;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
declare class Datepicker extends ElementBase {
|
|
123
|
+
controlType: string;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
declare const MAPA_DATEPICKER_FORMATS: {
|
|
92
127
|
parse: {
|
|
93
128
|
dateInput: string;
|
|
94
129
|
};
|
|
@@ -99,25 +134,27 @@ declare const MY_DATE_FORMATS: {
|
|
|
99
134
|
monthYearA11yLabel: string;
|
|
100
135
|
};
|
|
101
136
|
};
|
|
102
|
-
declare class
|
|
103
|
-
private readonly i18n;
|
|
137
|
+
declare class MapaDatepicker implements OnInit {
|
|
104
138
|
private readonly cdr;
|
|
105
|
-
formGroup:
|
|
139
|
+
formGroup: FormGroup;
|
|
140
|
+
element: Datepicker;
|
|
106
141
|
private readonly destroyRef;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
142
|
+
readonly formDatepicker: FormGroup<{
|
|
143
|
+
date: FormControl<Date | null>;
|
|
144
|
+
}>;
|
|
145
|
+
formControl: FormControl<string | null>;
|
|
146
|
+
constructor(cdr: ChangeDetectorRef);
|
|
111
147
|
ngOnInit(): void;
|
|
112
|
-
get
|
|
113
|
-
get
|
|
114
|
-
|
|
115
|
-
private updateExternalForm;
|
|
116
|
-
private areDatesEqual;
|
|
148
|
+
get minDate(): Date | null;
|
|
149
|
+
get maxDate(): Date | null;
|
|
150
|
+
hasValue(): boolean;
|
|
117
151
|
cleanDatepicker(): void;
|
|
118
|
-
|
|
119
|
-
|
|
152
|
+
private syncDatepickerControl;
|
|
153
|
+
private updateExternalControl;
|
|
154
|
+
closePicker(picker: MatDatepicker<Date>): void;
|
|
155
|
+
private areDatesEqual;
|
|
156
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDatepicker, never>;
|
|
157
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDatepicker, "mapa-datepicker", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
120
158
|
}
|
|
121
159
|
|
|
122
|
-
export {
|
|
123
|
-
export type { MapaDatepickerFormGroup, MapaDatepickerValue };
|
|
160
|
+
export { MAPA_DATEPICKER_FORMATS, MapaDatepicker };
|