mapa-library-ui 1.5.0 → 1.5.2
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-datepicker-range.mjs +158 -43
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs +97 -23
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs +157 -42
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +97 -23
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
- package/fesm2022/mapa-library-ui.mjs +158 -43
- package/fesm2022/mapa-library-ui.mjs.map +1 -1
- package/index.d.ts +24 -7
- package/mapa-library-ui-1.5.2.tgz +0 -0
- package/package.json +1 -1
- package/src/lib/components/datepicker-range/index.d.ts +11 -5
- package/mapa-library-ui-1.5.0.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormControl, NgModel, AbstractControl, FormGroup, ControlValueAccessor } from '@angular/forms';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { EventEmitter, AfterViewInit, ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges, InjectionToken, Provider, PipeTransform, OnInit, ChangeDetectorRef, Injector, TemplateRef, ApplicationRef } from '@angular/core';
|
|
3
|
+
import { EventEmitter, AfterViewInit, ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges, InjectionToken, Provider, PipeTransform, OnInit, ChangeDetectorRef, DoCheck, Injector, TemplateRef, ApplicationRef } from '@angular/core';
|
|
4
4
|
import { ApexAxisChartSeries, ApexChart, ApexTitleSubtitle, ApexXAxis, ApexStroke, ApexFill, ApexMarkers, ApexYAxis, ApexLegend, ApexResponsive } from 'ng-apexcharts';
|
|
5
5
|
import { MatInput } from '@angular/material/input';
|
|
6
6
|
import { MatPaginator, MatPaginatorIntl, PageEvent } from '@angular/material/paginator';
|
|
@@ -464,9 +464,20 @@ declare class CPFPipe implements PipeTransform {
|
|
|
464
464
|
static ɵpipe: i0.ɵɵPipeDeclaration<CPFPipe, "cpf", true>;
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
+
type MapaDateLocale = "pt-BR" | "en" | "es";
|
|
468
|
+
type MapaDateFormat = "DD/MM/YYYY" | "MM/DD/YYYY";
|
|
467
469
|
type DateInput = Date | string | number | null | undefined;
|
|
468
470
|
declare function formatDateAsDayMonthYear(date: Date): string;
|
|
469
|
-
declare function
|
|
471
|
+
declare function formatDateAsMonthDayYear(date: Date): string;
|
|
472
|
+
declare function normalizeDateLocale(value: unknown): MapaDateLocale;
|
|
473
|
+
declare function getActiveDateLocale(): MapaDateLocale;
|
|
474
|
+
declare function isMonthFirstDateLocale(locale?: MapaDateLocale): boolean;
|
|
475
|
+
declare function getActiveDateFormat(locale?: MapaDateLocale): MapaDateFormat;
|
|
476
|
+
declare function getActiveMaterialDateFormat(locale?: MapaDateLocale): string;
|
|
477
|
+
declare function getDateInputMask(_locale?: MapaDateLocale): string;
|
|
478
|
+
declare function formatDateForLocale(date: Date, locale?: MapaDateLocale): string;
|
|
479
|
+
declare function parseLocaleDateValue(value: string, locale?: MapaDateLocale): Date | null;
|
|
480
|
+
declare function parseDateValue(value: unknown, locale?: MapaDateLocale): Date | null;
|
|
470
481
|
declare function isDateValue(value: unknown): boolean;
|
|
471
482
|
declare function parseBrazilianDate(value: string): Date | null;
|
|
472
483
|
declare function normalizeDateInput(value: DateInput): Date | null;
|
|
@@ -1311,7 +1322,7 @@ type MapaDatepickerRangeDisplayFormGroup = FormGroup<{
|
|
|
1311
1322
|
startDate: FormControl<string | null>;
|
|
1312
1323
|
endDate: FormControl<string | null>;
|
|
1313
1324
|
}>;
|
|
1314
|
-
declare
|
|
1325
|
+
declare function getMapaDatepickerRangeFormats(): {
|
|
1315
1326
|
parse: {
|
|
1316
1327
|
dateInput: string;
|
|
1317
1328
|
};
|
|
@@ -1322,20 +1333,24 @@ declare const MAPA_DATEPICKER_RANGE_FORMATS: {
|
|
|
1322
1333
|
monthYearA11yLabel: string;
|
|
1323
1334
|
};
|
|
1324
1335
|
};
|
|
1325
|
-
declare class MapaDatepickerRange implements OnInit {
|
|
1336
|
+
declare class MapaDatepickerRange implements OnInit, DoCheck {
|
|
1326
1337
|
private readonly i18n;
|
|
1327
1338
|
private readonly cdr;
|
|
1328
1339
|
formGroup: FormGroup;
|
|
1329
1340
|
element: DatepickerRange;
|
|
1330
1341
|
private readonly destroyRef;
|
|
1331
|
-
private readonly
|
|
1342
|
+
private readonly dateAdapter;
|
|
1332
1343
|
private readonly emptyValue;
|
|
1344
|
+
private currentLocale;
|
|
1333
1345
|
readonly formDatepicker: MapaDatepickerInternalRangeFormGroup;
|
|
1334
1346
|
readonly formDisplay: MapaDatepickerRangeDisplayFormGroup;
|
|
1335
1347
|
rangeControl: FormControl<MapaDatepickerRangeControlValue | null>;
|
|
1336
1348
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
1337
1349
|
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1350
|
+
get dateInputMask(): string;
|
|
1351
|
+
get activeDateFormat(): string;
|
|
1338
1352
|
ngOnInit(): void;
|
|
1353
|
+
ngDoCheck(): void;
|
|
1339
1354
|
get startDatePlaceholder(): string;
|
|
1340
1355
|
get endDatePlaceholder(): string;
|
|
1341
1356
|
private syncFromExternal;
|
|
@@ -1344,6 +1359,8 @@ declare class MapaDatepickerRange implements OnInit {
|
|
|
1344
1359
|
private patchExternalValue;
|
|
1345
1360
|
private areDatesEqual;
|
|
1346
1361
|
cleanDatepicker(): void;
|
|
1362
|
+
private getLocale;
|
|
1363
|
+
private syncLocaleSettings;
|
|
1347
1364
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDatepickerRange, never>;
|
|
1348
1365
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDatepickerRange, "mapa-datepicker-range", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
1349
1366
|
}
|
|
@@ -1978,5 +1995,5 @@ declare class MapaScaleParameterizationComponent {
|
|
|
1978
1995
|
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>;
|
|
1979
1996
|
}
|
|
1980
1997
|
|
|
1981
|
-
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, LocaleDatePipe, LocaleDateTimePipe, MAPA_DATEPICKER_FORMATS,
|
|
1982
|
-
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, DateInput, DetailedIndicatorItem, DetailedIndicatorSection, DialogData, Dimension$1 as Dimension, ElementOption, ElementSearch, ElementTreeNode, Errors, EstadosType, EvaluationBenchmarkResult, Dimension$2 as GroupReportDimension, GroupReportItem, IndicatorCollectionOptions, IndicatorCollections, Indicators, LocaleDateStyle, LowReliabilityReport, MapaDatepickerRangeComponent, MapaDatepickerRangeControlValue, MapaDatepickerRangeFormGroup, MapaUiTexts, MaskType, Masks, MasksIE, MenuActionEvent, MenuActionItem, MenuItem, 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 };
|
|
1998
|
+
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, LocaleDatePipe, LocaleDateTimePipe, MAPA_DATEPICKER_FORMATS, 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, addDays, 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, formatBrazilianDate, formatDateAsDayMonthYear, formatDateAsMonthDayYear, formatDateForLocale, formatLocaleDate, formatLocaleDateTime, generateInscricaoEstadual, getActiveDateFormat, getActiveDateLocale, getActiveMaterialDateFormat, getAllDigits, getAllWords, getDateInputMask, getDefaultDateRange, getMapaDatepickerRangeFormats, getRelativeDateRange, getSpecialProperty, isArray, isDateValue, isMonthFirstDateLocale, isNil, isNumber, isPresent, isString, makeGenericFaker, maskBr, mask_iptu, mergeMapaUiTexts, modulo11, modulo11Custom, modulo11a, normalizeDateInput, normalizeDateLocale, normalizeLookup, normalizeText, numberToCurrency, openDialog, parseBrazilianDate, parseDateValue, parseLocaleDateValue, processCaretTraps, provideMapaUiTexts, rand, randArray, randomEstadoSigla, randomLetter, randomLetterOrNumber, randomNumber, rg_rj, rg_sp, sanitizeHtmlContent, slugify, toUtcDayExclusiveEndIso, toUtcRangeEndIso, toUtcRangeStartIso, 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 };
|
|
1999
|
+
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, DateInput, DetailedIndicatorItem, DetailedIndicatorSection, DialogData, Dimension$1 as Dimension, ElementOption, ElementSearch, ElementTreeNode, Errors, EstadosType, EvaluationBenchmarkResult, Dimension$2 as GroupReportDimension, GroupReportItem, IndicatorCollectionOptions, IndicatorCollections, Indicators, LocaleDateStyle, LowReliabilityReport, MapaDateFormat, MapaDateLocale, MapaDatepickerRangeComponent, MapaDatepickerRangeControlValue, MapaDatepickerRangeFormGroup, MapaUiTexts, MaskType, Masks, MasksIE, MenuActionEvent, MenuActionItem, MenuItem, 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 };
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
2
2
|
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { EventEmitter, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
4
|
+
import { EventEmitter, OnInit, DoCheck, ChangeDetectorRef } from '@angular/core';
|
|
5
5
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
6
6
|
import * as rxjs from 'rxjs';
|
|
7
7
|
|
|
@@ -159,7 +159,7 @@ type MapaDatepickerRangeDisplayFormGroup = FormGroup<{
|
|
|
159
159
|
startDate: FormControl<string | null>;
|
|
160
160
|
endDate: FormControl<string | null>;
|
|
161
161
|
}>;
|
|
162
|
-
declare
|
|
162
|
+
declare function getMapaDatepickerRangeFormats(): {
|
|
163
163
|
parse: {
|
|
164
164
|
dateInput: string;
|
|
165
165
|
};
|
|
@@ -170,20 +170,24 @@ declare const MAPA_DATEPICKER_RANGE_FORMATS: {
|
|
|
170
170
|
monthYearA11yLabel: string;
|
|
171
171
|
};
|
|
172
172
|
};
|
|
173
|
-
declare class MapaDatepickerRange implements OnInit {
|
|
173
|
+
declare class MapaDatepickerRange implements OnInit, DoCheck {
|
|
174
174
|
private readonly i18n;
|
|
175
175
|
private readonly cdr;
|
|
176
176
|
formGroup: FormGroup;
|
|
177
177
|
element: DatepickerRange;
|
|
178
178
|
private readonly destroyRef;
|
|
179
|
-
private readonly
|
|
179
|
+
private readonly dateAdapter;
|
|
180
180
|
private readonly emptyValue;
|
|
181
|
+
private currentLocale;
|
|
181
182
|
readonly formDatepicker: MapaDatepickerInternalRangeFormGroup;
|
|
182
183
|
readonly formDisplay: MapaDatepickerRangeDisplayFormGroup;
|
|
183
184
|
rangeControl: FormControl<MapaDatepickerRangeControlValue | null>;
|
|
184
185
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
185
186
|
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
187
|
+
get dateInputMask(): string;
|
|
188
|
+
get activeDateFormat(): string;
|
|
186
189
|
ngOnInit(): void;
|
|
190
|
+
ngDoCheck(): void;
|
|
187
191
|
get startDatePlaceholder(): string;
|
|
188
192
|
get endDatePlaceholder(): string;
|
|
189
193
|
private syncFromExternal;
|
|
@@ -192,10 +196,12 @@ declare class MapaDatepickerRange implements OnInit {
|
|
|
192
196
|
private patchExternalValue;
|
|
193
197
|
private areDatesEqual;
|
|
194
198
|
cleanDatepicker(): void;
|
|
199
|
+
private getLocale;
|
|
200
|
+
private syncLocaleSettings;
|
|
195
201
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDatepickerRange, never>;
|
|
196
202
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDatepickerRange, "mapa-datepicker-range", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
197
203
|
}
|
|
198
204
|
type MapaDatepickerRangeComponent = MapaDatepickerRange;
|
|
199
205
|
|
|
200
|
-
export {
|
|
206
|
+
export { MapaDatepickerRange, getMapaDatepickerRangeFormats };
|
|
201
207
|
export type { MapaDatepickerRangeComponent, MapaDatepickerRangeControlValue, MapaDatepickerRangeFormGroup };
|
|
Binary file
|