mapa-library-ui 1.2.0 → 1.4.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-capability.mjs +24 -2
- package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs +28 -6
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs +77 -13
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs +77 -13
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs +27 -5
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +24 -2
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs +58 -7
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs +216 -29
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +34 -6
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-radio-button.mjs +29 -5
- package/fesm2022/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-slide-toggle.mjs +29 -5
- package/fesm2022/mapa-library-ui-src-lib-components-slide-toggle.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +77 -13
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs +27 -3
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
- package/fesm2022/mapa-library-ui.mjs +306 -87
- package/fesm2022/mapa-library-ui.mjs.map +1 -1
- package/index.d.ts +67 -10
- package/mapa-library-ui-1.4.0.tgz +0 -0
- package/package.json +2 -2
- package/src/lib/components/capability/index.d.ts +6 -2
- package/src/lib/components/dropdown/index.d.ts +6 -2
- package/src/lib/components/form/index.d.ts +23 -7
- package/src/lib/components/input/index.d.ts +6 -2
- package/src/lib/components/radio-button/index.d.ts +7 -3
- package/src/lib/components/slide-toggle/index.d.ts +7 -3
- package/src/lib/components/textarea/index.d.ts +6 -2
- package/mapa-library-ui-1.2.0.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormControl, NgModel, AbstractControl, FormGroup } from '@angular/forms';
|
|
1
|
+
import { FormControl, NgModel, AbstractControl, FormGroup, ControlValueAccessor } from '@angular/forms';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { EventEmitter, AfterViewInit, ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges, InjectionToken, Provider, PipeTransform, OnInit, ChangeDetectorRef, Injector, TemplateRef, ApplicationRef } from '@angular/core';
|
|
4
4
|
import { ApexAxisChartSeries, ApexChart, ApexTitleSubtitle, ApexXAxis, ApexStroke, ApexFill, ApexMarkers, ApexYAxis, ApexLegend, ApexResponsive } from 'ng-apexcharts';
|
|
@@ -464,6 +464,43 @@ declare class CPFPipe implements PipeTransform {
|
|
|
464
464
|
static ɵpipe: i0.ɵɵPipeDeclaration<CPFPipe, "cpf", true>;
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
+
type DateInput = Date | string | number | null | undefined;
|
|
468
|
+
declare function formatDateAsDayMonthYear(date: Date): string;
|
|
469
|
+
declare function parseDateValue(value: unknown): Date | null;
|
|
470
|
+
declare function isDateValue(value: unknown): boolean;
|
|
471
|
+
declare function parseBrazilianDate(value: string): Date | null;
|
|
472
|
+
declare function normalizeDateInput(value: DateInput): Date | null;
|
|
473
|
+
declare function formatBrazilianDate(value: DateInput): string;
|
|
474
|
+
declare function addDays(date: Date, days: number): Date;
|
|
475
|
+
type LocaleDateStyle = "short" | "medium" | "long" | "full";
|
|
476
|
+
declare function formatLocaleDate(value: DateInput, dateStyle?: LocaleDateStyle): string;
|
|
477
|
+
declare function formatLocaleDateTime(value: DateInput, options?: {
|
|
478
|
+
dateStyle?: LocaleDateStyle;
|
|
479
|
+
timeStyle?: LocaleDateStyle;
|
|
480
|
+
}): string;
|
|
481
|
+
declare function getDefaultDateRange(days?: number): {
|
|
482
|
+
startDate: string;
|
|
483
|
+
endDate: string;
|
|
484
|
+
};
|
|
485
|
+
declare function getRelativeDateRange(daysBack: number): {
|
|
486
|
+
startDate: Date;
|
|
487
|
+
endDate: Date;
|
|
488
|
+
};
|
|
489
|
+
declare function toUtcRangeStartIso(value: DateInput): string | undefined;
|
|
490
|
+
declare function toUtcRangeEndIso(value: DateInput): string | undefined;
|
|
491
|
+
declare function toUtcDayExclusiveEndIso(value: DateInput): string | undefined;
|
|
492
|
+
|
|
493
|
+
declare class LocaleDatePipe implements PipeTransform {
|
|
494
|
+
transform(value: DateInput, dateStyle?: LocaleDateStyle): string;
|
|
495
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocaleDatePipe, never>;
|
|
496
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LocaleDatePipe, "localeDate", true>;
|
|
497
|
+
}
|
|
498
|
+
declare class LocaleDateTimePipe implements PipeTransform {
|
|
499
|
+
transform(value: DateInput, dateStyle?: LocaleDateStyle, timeStyle?: LocaleDateStyle): string;
|
|
500
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocaleDateTimePipe, never>;
|
|
501
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LocaleDateTimePipe, "localeDateTime", true>;
|
|
502
|
+
}
|
|
503
|
+
|
|
467
504
|
interface BigObject<T> {
|
|
468
505
|
[index: string]: T;
|
|
469
506
|
}
|
|
@@ -1332,7 +1369,7 @@ declare class MapaDialogComponent {
|
|
|
1332
1369
|
}
|
|
1333
1370
|
declare function openDialog(dialog: MatDialog, dialogData: DialogData, config?: MatDialogConfig): rxjs.Observable<any>;
|
|
1334
1371
|
|
|
1335
|
-
declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit {
|
|
1372
|
+
declare class MapaDropdownComponent implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit {
|
|
1336
1373
|
private readonly i18n;
|
|
1337
1374
|
private readonly cdr;
|
|
1338
1375
|
formControl: FormControl;
|
|
@@ -1350,6 +1387,10 @@ declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
1350
1387
|
isChecked: boolean;
|
|
1351
1388
|
isOptionsGroup: boolean;
|
|
1352
1389
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
1390
|
+
writeValue(_value: unknown): void;
|
|
1391
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
1392
|
+
registerOnTouched(_fn: () => void): void;
|
|
1393
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
1353
1394
|
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1354
1395
|
get selectAllLabel(): string;
|
|
1355
1396
|
get selectedOptions(): ElementOption[];
|
|
@@ -1508,11 +1549,15 @@ declare class IconComponent {
|
|
|
1508
1549
|
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "mapa-icon", never, { "svg": { "alias": "svg"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
1509
1550
|
}
|
|
1510
1551
|
|
|
1511
|
-
declare class MapaInputComponent {
|
|
1552
|
+
declare class MapaInputComponent implements ControlValueAccessor {
|
|
1512
1553
|
formControl: FormControl<unknown>;
|
|
1513
1554
|
element: InputText;
|
|
1514
1555
|
type: string;
|
|
1515
1556
|
suffix: EventEmitter<void>;
|
|
1557
|
+
writeValue(_value: unknown): void;
|
|
1558
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
1559
|
+
registerOnTouched(_fn: () => void): void;
|
|
1560
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
1516
1561
|
hasValue(): boolean;
|
|
1517
1562
|
clearValue(): void;
|
|
1518
1563
|
suffixEmit(): void;
|
|
@@ -1543,15 +1588,19 @@ declare class MapaNavListComponent {
|
|
|
1543
1588
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaNavListComponent, "mapa-nav-list", never, { "options": { "alias": "options"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
1544
1589
|
}
|
|
1545
1590
|
|
|
1546
|
-
declare class RadioButtonComponent implements OnInit, OnChanges {
|
|
1591
|
+
declare class RadioButtonComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
1547
1592
|
formControl: FormControl;
|
|
1548
1593
|
element: ElementBase;
|
|
1549
1594
|
optionSelected: EventEmitter<ElementOption>;
|
|
1550
1595
|
selectedOption: ElementOption;
|
|
1551
1596
|
options: ElementOption[];
|
|
1597
|
+
writeValue(_value: unknown): void;
|
|
1598
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
1599
|
+
registerOnTouched(_fn: () => void): void;
|
|
1600
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
1552
1601
|
ngOnInit(): void;
|
|
1553
1602
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1554
|
-
|
|
1603
|
+
onSelectionChange(optionValue: ElementOption): void;
|
|
1555
1604
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
|
|
1556
1605
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "mapa-radio-button", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
1557
1606
|
}
|
|
@@ -1640,15 +1689,19 @@ declare class MapaDetailsComponent {
|
|
|
1640
1689
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDetailsComponent, "mapa-details", never, {}, {}, never, never, true, never>;
|
|
1641
1690
|
}
|
|
1642
1691
|
|
|
1643
|
-
declare class SlideToggleComponent implements OnInit, OnChanges {
|
|
1692
|
+
declare class SlideToggleComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
1644
1693
|
formControl: FormControl;
|
|
1645
1694
|
element: ElementBase;
|
|
1646
1695
|
optionSelected: EventEmitter<ElementOption>;
|
|
1647
1696
|
selectedOption: ElementOption;
|
|
1648
1697
|
options: ElementOption[];
|
|
1698
|
+
writeValue(_value: unknown): void;
|
|
1699
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
1700
|
+
registerOnTouched(_fn: () => void): void;
|
|
1701
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
1649
1702
|
ngOnInit(): void;
|
|
1650
1703
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1651
|
-
|
|
1704
|
+
onSelectionChange(optionValue: ElementOption): void;
|
|
1652
1705
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlideToggleComponent, never>;
|
|
1653
1706
|
static ɵcmp: i0.ɵɵComponentDeclaration<SlideToggleComponent, "mapa-slide-toggle", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
1654
1707
|
}
|
|
@@ -1782,9 +1835,13 @@ declare class TagComponent {
|
|
|
1782
1835
|
static ɵcmp: i0.ɵɵComponentDeclaration<TagComponent, "mapa-tag", never, { "tag": { "alias": "tag"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
1783
1836
|
}
|
|
1784
1837
|
|
|
1785
|
-
declare class MapaTextareaComponent {
|
|
1838
|
+
declare class MapaTextareaComponent implements ControlValueAccessor {
|
|
1786
1839
|
formControl: FormControl;
|
|
1787
1840
|
element: Textarea;
|
|
1841
|
+
writeValue(_value: unknown): void;
|
|
1842
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
1843
|
+
registerOnTouched(_fn: () => void): void;
|
|
1844
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
1788
1845
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaTextareaComponent, never>;
|
|
1789
1846
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaTextareaComponent, "mapa-textarea", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
1790
1847
|
}
|
|
@@ -1921,5 +1978,5 @@ declare class MapaScaleParameterizationComponent {
|
|
|
1921
1978
|
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>;
|
|
1922
1979
|
}
|
|
1923
1980
|
|
|
1924
|
-
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_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 };
|
|
1925
|
-
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, 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 };
|
|
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, MAPA_DATEPICKER_RANGE_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, formatLocaleDate, formatLocaleDateTime, generateInscricaoEstadual, getAllDigits, getAllWords, getDefaultDateRange, getRelativeDateRange, getSpecialProperty, isArray, isDateValue, isNil, isNumber, isPresent, isString, makeGenericFaker, maskBr, mask_iptu, mergeMapaUiTexts, modulo11, modulo11Custom, modulo11a, normalizeDateInput, normalizeLookup, normalizeText, numberToCurrency, openDialog, parseBrazilianDate, parseDateValue, 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 };
|
|
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 };
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mapa-library-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^20.3.0",
|
|
6
6
|
"@angular/cdk": "^20.2.0",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@angular/material": "^20.2.0",
|
|
12
12
|
"@angular/router": "^20.3.0",
|
|
13
13
|
"apexcharts": "^5.10.3",
|
|
14
|
-
"mapa-frontend-i18n": "
|
|
14
|
+
"mapa-frontend-i18n": "1.3.3",
|
|
15
15
|
"ng-apexcharts": "^2.3.0",
|
|
16
16
|
"ngx-mask": "^20.0.3",
|
|
17
17
|
"ngx-mat-select-search": "^8.0.4",
|
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { EventEmitter, OnInit, OnChanges, AfterViewInit, ChangeDetectorRef, SimpleChanges, TemplateRef, ElementRef, ApplicationRef } from '@angular/core';
|
|
3
3
|
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
4
4
|
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
5
|
-
import { FormControl } from '@angular/forms';
|
|
5
|
+
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
6
6
|
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
7
7
|
import { MatSelect } from '@angular/material/select';
|
|
8
8
|
import * as rxjs from 'rxjs';
|
|
@@ -157,7 +157,7 @@ declare class MapaI18nService {
|
|
|
157
157
|
static ɵprov: i0.ɵɵInjectableDeclaration<MapaI18nService>;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit {
|
|
160
|
+
declare class MapaDropdownComponent implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit {
|
|
161
161
|
private readonly i18n;
|
|
162
162
|
private readonly cdr;
|
|
163
163
|
formControl: FormControl;
|
|
@@ -175,6 +175,10 @@ declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
175
175
|
isChecked: boolean;
|
|
176
176
|
isOptionsGroup: boolean;
|
|
177
177
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
178
|
+
writeValue(_value: unknown): void;
|
|
179
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
180
|
+
registerOnTouched(_fn: () => void): void;
|
|
181
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
178
182
|
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
179
183
|
get selectAllLabel(): string;
|
|
180
184
|
get selectedOptions(): ElementOption[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
1
|
+
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { EventEmitter, OnInit, OnChanges, AfterViewInit, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
4
4
|
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
@@ -145,7 +145,7 @@ declare class MapaI18nService {
|
|
|
145
145
|
static ɵprov: i0.ɵɵInjectableDeclaration<MapaI18nService>;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit {
|
|
148
|
+
declare class MapaDropdownComponent implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit {
|
|
149
149
|
private readonly i18n;
|
|
150
150
|
private readonly cdr;
|
|
151
151
|
formControl: FormControl;
|
|
@@ -163,6 +163,10 @@ declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
163
163
|
isChecked: boolean;
|
|
164
164
|
isOptionsGroup: boolean;
|
|
165
165
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
166
|
+
writeValue(_value: unknown): void;
|
|
167
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
168
|
+
registerOnTouched(_fn: () => void): void;
|
|
169
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
166
170
|
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
167
171
|
get selectAllLabel(): string;
|
|
168
172
|
get selectedOptions(): ElementOption[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { FormControl, ControlValueAccessor, FormGroup } from '@angular/forms';
|
|
4
4
|
|
|
5
5
|
declare class ButtonComponent {
|
|
6
6
|
color: 'primary' | 'accent' | 'basic' | null | undefined;
|
|
@@ -131,11 +131,15 @@ declare class InputText extends ElementBase {
|
|
|
131
131
|
controlType: string;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
declare class MapaInputComponent {
|
|
134
|
+
declare class MapaInputComponent implements ControlValueAccessor {
|
|
135
135
|
formControl: FormControl<unknown>;
|
|
136
136
|
element: InputText;
|
|
137
137
|
type: string;
|
|
138
138
|
suffix: EventEmitter<void>;
|
|
139
|
+
writeValue(_value: unknown): void;
|
|
140
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
141
|
+
registerOnTouched(_fn: () => void): void;
|
|
142
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
139
143
|
hasValue(): boolean;
|
|
140
144
|
clearValue(): void;
|
|
141
145
|
suffixEmit(): void;
|
|
@@ -143,28 +147,36 @@ declare class MapaInputComponent {
|
|
|
143
147
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaInputComponent, "mapa-input", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "suffix": "suffix"; }, never, never, true, never>;
|
|
144
148
|
}
|
|
145
149
|
|
|
146
|
-
declare class RadioButtonComponent implements OnInit, OnChanges {
|
|
150
|
+
declare class RadioButtonComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
147
151
|
formControl: FormControl;
|
|
148
152
|
element: ElementBase;
|
|
149
153
|
optionSelected: EventEmitter<ElementOption>;
|
|
150
154
|
selectedOption: ElementOption;
|
|
151
155
|
options: ElementOption[];
|
|
156
|
+
writeValue(_value: unknown): void;
|
|
157
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
158
|
+
registerOnTouched(_fn: () => void): void;
|
|
159
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
152
160
|
ngOnInit(): void;
|
|
153
161
|
ngOnChanges(changes: SimpleChanges): void;
|
|
154
|
-
|
|
162
|
+
onSelectionChange(optionValue: ElementOption): void;
|
|
155
163
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
|
|
156
164
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "mapa-radio-button", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
157
165
|
}
|
|
158
166
|
|
|
159
|
-
declare class SlideToggleComponent implements OnInit, OnChanges {
|
|
167
|
+
declare class SlideToggleComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
160
168
|
formControl: FormControl;
|
|
161
169
|
element: ElementBase;
|
|
162
170
|
optionSelected: EventEmitter<ElementOption>;
|
|
163
171
|
selectedOption: ElementOption;
|
|
164
172
|
options: ElementOption[];
|
|
173
|
+
writeValue(_value: unknown): void;
|
|
174
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
175
|
+
registerOnTouched(_fn: () => void): void;
|
|
176
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
165
177
|
ngOnInit(): void;
|
|
166
178
|
ngOnChanges(changes: SimpleChanges): void;
|
|
167
|
-
|
|
179
|
+
onSelectionChange(optionValue: ElementOption): void;
|
|
168
180
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlideToggleComponent, never>;
|
|
169
181
|
static ɵcmp: i0.ɵɵComponentDeclaration<SlideToggleComponent, "mapa-slide-toggle", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
170
182
|
}
|
|
@@ -173,9 +185,13 @@ declare class Textarea extends ElementBase {
|
|
|
173
185
|
controlType: string;
|
|
174
186
|
}
|
|
175
187
|
|
|
176
|
-
declare class MapaTextareaComponent {
|
|
188
|
+
declare class MapaTextareaComponent implements ControlValueAccessor {
|
|
177
189
|
formControl: FormControl;
|
|
178
190
|
element: Textarea;
|
|
191
|
+
writeValue(_value: unknown): void;
|
|
192
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
193
|
+
registerOnTouched(_fn: () => void): void;
|
|
194
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
179
195
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaTextareaComponent, never>;
|
|
180
196
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaTextareaComponent, "mapa-textarea", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
181
197
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter } from '@angular/core';
|
|
3
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
|
|
5
5
|
interface ElementTreeNode {
|
|
6
6
|
key: string;
|
|
@@ -122,11 +122,15 @@ declare class InputText extends ElementBase {
|
|
|
122
122
|
controlType: string;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
declare class MapaInputComponent {
|
|
125
|
+
declare class MapaInputComponent implements ControlValueAccessor {
|
|
126
126
|
formControl: FormControl<unknown>;
|
|
127
127
|
element: InputText;
|
|
128
128
|
type: string;
|
|
129
129
|
suffix: EventEmitter<void>;
|
|
130
|
+
writeValue(_value: unknown): void;
|
|
131
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
132
|
+
registerOnTouched(_fn: () => void): void;
|
|
133
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
130
134
|
hasValue(): boolean;
|
|
131
135
|
clearValue(): void;
|
|
132
136
|
suffixEmit(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
|
|
5
5
|
interface ElementTreeNode {
|
|
6
6
|
key: string;
|
|
@@ -118,15 +118,19 @@ declare class ElementBase {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
declare class RadioButtonComponent implements OnInit, OnChanges {
|
|
121
|
+
declare class RadioButtonComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
122
122
|
formControl: FormControl;
|
|
123
123
|
element: ElementBase;
|
|
124
124
|
optionSelected: EventEmitter<ElementOption>;
|
|
125
125
|
selectedOption: ElementOption;
|
|
126
126
|
options: ElementOption[];
|
|
127
|
+
writeValue(_value: unknown): void;
|
|
128
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
129
|
+
registerOnTouched(_fn: () => void): void;
|
|
130
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
127
131
|
ngOnInit(): void;
|
|
128
132
|
ngOnChanges(changes: SimpleChanges): void;
|
|
129
|
-
|
|
133
|
+
onSelectionChange(optionValue: ElementOption): void;
|
|
130
134
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
|
|
131
135
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "mapa-radio-button", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
132
136
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
|
|
5
5
|
interface ElementTreeNode {
|
|
6
6
|
key: string;
|
|
@@ -118,15 +118,19 @@ declare class ElementBase {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
declare class SlideToggleComponent implements OnInit, OnChanges {
|
|
121
|
+
declare class SlideToggleComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
122
122
|
formControl: FormControl;
|
|
123
123
|
element: ElementBase;
|
|
124
124
|
optionSelected: EventEmitter<ElementOption>;
|
|
125
125
|
selectedOption: ElementOption;
|
|
126
126
|
options: ElementOption[];
|
|
127
|
+
writeValue(_value: unknown): void;
|
|
128
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
129
|
+
registerOnTouched(_fn: () => void): void;
|
|
130
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
127
131
|
ngOnInit(): void;
|
|
128
132
|
ngOnChanges(changes: SimpleChanges): void;
|
|
129
|
-
|
|
133
|
+
onSelectionChange(optionValue: ElementOption): void;
|
|
130
134
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlideToggleComponent, never>;
|
|
131
135
|
static ɵcmp: i0.ɵɵComponentDeclaration<SlideToggleComponent, "mapa-slide-toggle", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
132
136
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
1
|
+
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { EventEmitter } from '@angular/core';
|
|
4
4
|
|
|
@@ -122,9 +122,13 @@ declare class Textarea extends ElementBase {
|
|
|
122
122
|
controlType: string;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
declare class MapaTextareaComponent {
|
|
125
|
+
declare class MapaTextareaComponent implements ControlValueAccessor {
|
|
126
126
|
formControl: FormControl;
|
|
127
127
|
element: Textarea;
|
|
128
|
+
writeValue(_value: unknown): void;
|
|
129
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
130
|
+
registerOnTouched(_fn: () => void): void;
|
|
131
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
128
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaTextareaComponent, never>;
|
|
129
133
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaTextareaComponent, "mapa-textarea", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
130
134
|
}
|
|
Binary file
|