mapa-library-ui 1.5.3 → 1.6.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-dropdown-v2.mjs +159 -0
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-v2.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-core-utils.mjs +7 -1
- package/fesm2022/mapa-library-ui-src-lib-core-utils.mjs.map +1 -1
- package/fesm2022/mapa-library-ui.mjs +106 -2
- package/fesm2022/mapa-library-ui.mjs.map +1 -1
- package/index.d.ts +29 -2
- package/mapa-library-ui-1.6.0.tgz +0 -0
- package/package.json +9 -1
- package/src/lib/components/dropdown-v2/index.d.ts +150 -0
- package/src/lib/core/utils/index.d.ts +5 -2
- package/mapa-library-ui-1.5.3.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -533,9 +533,12 @@ declare const isAfterDateValue: (value: DateInput, compareValue: DateInput, inpu
|
|
|
533
533
|
|
|
534
534
|
type DatepickerLocale = 'pt-BR' | 'es' | 'en';
|
|
535
535
|
type DateFormatPattern = 'DD/MM/YYYY' | 'MM/DD/YYYY';
|
|
536
|
+
type DateTimeFormatPattern = 'DD/MM/YYYY HH:mm' | 'MM/DD/YYYY HH:mm';
|
|
536
537
|
declare function toDatepickerLocale(language: AppLanguage): DatepickerLocale;
|
|
537
538
|
declare function getDateFormatByLanguage(language: AppLanguage): DateFormatPattern;
|
|
539
|
+
declare function getDateTimeFormatByLanguage(language: AppLanguage): DateTimeFormatPattern;
|
|
538
540
|
declare function formatDateByLanguage(value: Date | string | number | null | undefined, language: AppLanguage): string;
|
|
541
|
+
declare function formatDateTimeByLanguage(value: Date | string | number | null | undefined, language: AppLanguage): string;
|
|
539
542
|
declare function isValidDateByLanguage(value: string | null | undefined, language: AppLanguage): boolean;
|
|
540
543
|
declare function parseDateByLanguage(value: string | null | undefined, language: AppLanguage): Date;
|
|
541
544
|
declare function toIsoDateByLanguage(value: string | null | undefined, language: AppLanguage): string;
|
|
@@ -1487,6 +1490,30 @@ declare class MapaDropdownTreeComponent implements OnInit, OnChanges, AfterViewI
|
|
|
1487
1490
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownTreeComponent, "mapa-dropdown-tree", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "openedChange": "openedChange"; }, never, never, true, never>;
|
|
1488
1491
|
}
|
|
1489
1492
|
|
|
1493
|
+
declare class MapaDropdownV2Component {
|
|
1494
|
+
private readonly hostElement;
|
|
1495
|
+
private readonly isOpenState;
|
|
1496
|
+
element: Dropdown;
|
|
1497
|
+
formControl: FormControl<ElementOption | null>;
|
|
1498
|
+
private triggerButton?;
|
|
1499
|
+
private searchInput?;
|
|
1500
|
+
isOpen(): boolean;
|
|
1501
|
+
selectedLabel(): string;
|
|
1502
|
+
options(): ElementOption[];
|
|
1503
|
+
filteredOptions(): ElementOption[];
|
|
1504
|
+
hasSearch(): boolean;
|
|
1505
|
+
searchPlaceholder(): string;
|
|
1506
|
+
shouldShowRequiredError(): boolean;
|
|
1507
|
+
toggleDropdown(): void;
|
|
1508
|
+
selectOption(option: ElementOption): void;
|
|
1509
|
+
closeDropdown(): void;
|
|
1510
|
+
handleDocumentClick(event: MouseEvent): void;
|
|
1511
|
+
get searchControl(): FormControl<string | null> | undefined;
|
|
1512
|
+
private markAsTouchedIfEmpty;
|
|
1513
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownV2Component, never>;
|
|
1514
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownV2Component, "mapa-dropdown-v2", never, { "element": { "alias": "element"; "required": true; }; "formControl": { "alias": "formControl"; "required": true; }; }, {}, never, never, true, never>;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1490
1517
|
declare class MapaEmptyStateComponent {
|
|
1491
1518
|
title: string | null;
|
|
1492
1519
|
subtitle: string | null;
|
|
@@ -2030,5 +2057,5 @@ declare class MapaScaleParameterizationComponent {
|
|
|
2030
2057
|
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>;
|
|
2031
2058
|
}
|
|
2032
2059
|
|
|
2033
|
-
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, addMonthsToDateValue, 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, formatDateByLanguage, formatDateForLocale, formatDateValue, formatLocaleDate, formatLocaleDateTime, generateInscricaoEstadual, getActiveDateFormat, getActiveDateLocale, getActiveMaterialDateFormat, getAllDigits, getAllWords, getDateFormatByLanguage, getDateInputMask, getDayOfMonthFromDateValue, getDefaultDateRange, getMapaDatepickerRangeFormats, getRelativeDateRange, getSpecialProperty, getYearFromDateValue, isAfterDateValue, isArray, isDateValue, isMonthFirstDateLocale, isNil, isNumber, isPresent, isString, isValidDateByLanguage, isValidDateValue, makeGenericFaker, maskBr, mask_iptu, mergeMapaUiTexts, modulo11, modulo11Custom, modulo11a, normalizeDateInput, normalizeDateLocale, normalizeLookup, normalizeText, numberToCurrency, openDialog, parseBrazilianDate, parseDateByLanguage, parseDateValue, parseDateValueFns, parseLocaleDateValue, processCaretTraps, provideMapaUiTexts, rand, randArray, randomEstadoSigla, randomLetter, randomLetterOrNumber, randomNumber, reformatDateStringForLanguage, rg_rj, rg_sp, sanitizeHtmlContent, setTimeOnDateValue, slugify, toDatepickerLocale, toIsoDateByLanguage, toIsoDateByLanguageWithUtcTime, toIsoDateValue, toIsoDateValueWithTime, toIsoDateValueWithUtcTime, 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 };
|
|
2034
|
-
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, DateFormatPattern, DateInput$1 as DateInput, DatepickerLocale, 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 };
|
|
2060
|
+
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, MapaDropdownV2Component, 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, addMonthsToDateValue, 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, formatDateByLanguage, formatDateForLocale, formatDateTimeByLanguage, formatDateValue, formatLocaleDate, formatLocaleDateTime, generateInscricaoEstadual, getActiveDateFormat, getActiveDateLocale, getActiveMaterialDateFormat, getAllDigits, getAllWords, getDateFormatByLanguage, getDateInputMask, getDateTimeFormatByLanguage, getDayOfMonthFromDateValue, getDefaultDateRange, getMapaDatepickerRangeFormats, getRelativeDateRange, getSpecialProperty, getYearFromDateValue, isAfterDateValue, isArray, isDateValue, isMonthFirstDateLocale, isNil, isNumber, isPresent, isString, isValidDateByLanguage, isValidDateValue, makeGenericFaker, maskBr, mask_iptu, mergeMapaUiTexts, modulo11, modulo11Custom, modulo11a, normalizeDateInput, normalizeDateLocale, normalizeLookup, normalizeText, numberToCurrency, openDialog, parseBrazilianDate, parseDateByLanguage, parseDateValue, parseDateValueFns, parseLocaleDateValue, processCaretTraps, provideMapaUiTexts, rand, randArray, randomEstadoSigla, randomLetter, randomLetterOrNumber, randomNumber, reformatDateStringForLanguage, rg_rj, rg_sp, sanitizeHtmlContent, setTimeOnDateValue, slugify, toDatepickerLocale, toIsoDateByLanguage, toIsoDateByLanguageWithUtcTime, toIsoDateValue, toIsoDateValueWithTime, toIsoDateValueWithUtcTime, 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 };
|
|
2061
|
+
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, DateFormatPattern, DateInput$1 as DateInput, DateTimeFormatPattern, DatepickerLocale, 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mapa-library-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^20.3.0",
|
|
6
6
|
"@angular/cdk": "^20.2.0",
|
|
@@ -75,6 +75,10 @@
|
|
|
75
75
|
"types": "./src/lib/components/dropdown-tree/index.d.ts",
|
|
76
76
|
"default": "./fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs"
|
|
77
77
|
},
|
|
78
|
+
"./dropdown-v2": {
|
|
79
|
+
"types": "./src/lib/components/dropdown-v2/index.d.ts",
|
|
80
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-dropdown-v2.mjs"
|
|
81
|
+
},
|
|
78
82
|
"./empty": {
|
|
79
83
|
"types": "./src/lib/components/empty/index.d.ts",
|
|
80
84
|
"default": "./fesm2022/mapa-library-ui-src-lib-components-empty.mjs"
|
|
@@ -210,6 +214,10 @@
|
|
|
210
214
|
"types": "./src/lib/components/dropdown-tree/index.d.ts",
|
|
211
215
|
"default": "./fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs"
|
|
212
216
|
},
|
|
217
|
+
"./src/lib/components/dropdown-v2": {
|
|
218
|
+
"types": "./src/lib/components/dropdown-v2/index.d.ts",
|
|
219
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-dropdown-v2.mjs"
|
|
220
|
+
},
|
|
213
221
|
"./src/lib/components/empty": {
|
|
214
222
|
"types": "./src/lib/components/empty/index.d.ts",
|
|
215
223
|
"default": "./fesm2022/mapa-library-ui-src-lib-components-empty.mjs"
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { EventEmitter } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
interface ElementSearch {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
noEntriesFoundLabel?: string;
|
|
8
|
+
formControl?: FormControl;
|
|
9
|
+
toggleAllCheckbox?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface ElementTreeNode {
|
|
13
|
+
key: string;
|
|
14
|
+
value: string;
|
|
15
|
+
children?: ElementTreeNode[];
|
|
16
|
+
isLeaf?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface ElementOption {
|
|
19
|
+
key: string;
|
|
20
|
+
value: string;
|
|
21
|
+
children?: ElementOption[];
|
|
22
|
+
childrenLevel?: number | null;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface ElementGroup {
|
|
26
|
+
label: string;
|
|
27
|
+
options: ElementOption[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface ActionButton {
|
|
31
|
+
label: string;
|
|
32
|
+
action: EventEmitter<boolean>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface Errors {
|
|
36
|
+
required?: string;
|
|
37
|
+
minLength?: string;
|
|
38
|
+
cpf?: string;
|
|
39
|
+
cnpj?: string;
|
|
40
|
+
email?: string;
|
|
41
|
+
pattern?: string;
|
|
42
|
+
min?: string;
|
|
43
|
+
max?: string;
|
|
44
|
+
maxLength?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface Status {
|
|
48
|
+
label: string;
|
|
49
|
+
}
|
|
50
|
+
declare class ElementBase {
|
|
51
|
+
value: string;
|
|
52
|
+
key: string;
|
|
53
|
+
label: string;
|
|
54
|
+
required: boolean;
|
|
55
|
+
order: number;
|
|
56
|
+
controlType: string;
|
|
57
|
+
type: string;
|
|
58
|
+
placeholder?: string;
|
|
59
|
+
readonly: boolean;
|
|
60
|
+
hint?: string;
|
|
61
|
+
prefix?: string;
|
|
62
|
+
suffix?: string;
|
|
63
|
+
autosize?: boolean;
|
|
64
|
+
autosizeMinWidth?: string;
|
|
65
|
+
autosizeMaxWidth?: string;
|
|
66
|
+
autosizeMinRow?: number;
|
|
67
|
+
autosizeMaxRow?: number;
|
|
68
|
+
options: ElementOption[] | ElementGroup[];
|
|
69
|
+
tree: ElementTreeNode[];
|
|
70
|
+
multiple?: boolean;
|
|
71
|
+
search?: ElementSearch;
|
|
72
|
+
maxLength: string | number | null;
|
|
73
|
+
errors?: Errors;
|
|
74
|
+
actionButton?: ActionButton;
|
|
75
|
+
mask?: string;
|
|
76
|
+
autocomplete?: string;
|
|
77
|
+
clearValue?: boolean;
|
|
78
|
+
minDate?: string | Date | null;
|
|
79
|
+
maxDate?: string | Date | null;
|
|
80
|
+
status?: Status[];
|
|
81
|
+
checkParent?: boolean;
|
|
82
|
+
checkChildren?: boolean;
|
|
83
|
+
openedChange?: EventEmitter<boolean>;
|
|
84
|
+
constructor(options?: {
|
|
85
|
+
value?: string;
|
|
86
|
+
key?: string;
|
|
87
|
+
label?: string;
|
|
88
|
+
required?: boolean;
|
|
89
|
+
order?: number;
|
|
90
|
+
controlType?: string;
|
|
91
|
+
type?: string;
|
|
92
|
+
placeholder?: string;
|
|
93
|
+
readonly?: boolean;
|
|
94
|
+
hint?: string;
|
|
95
|
+
prefix?: string;
|
|
96
|
+
suffix?: string;
|
|
97
|
+
autosize?: boolean;
|
|
98
|
+
autosizeMinWidth?: string;
|
|
99
|
+
autosizeMaxWidth?: string;
|
|
100
|
+
autosizeMinRow?: number;
|
|
101
|
+
autosizeMaxRow?: number;
|
|
102
|
+
options?: ElementOption[] | ElementGroup[];
|
|
103
|
+
tree?: ElementTreeNode[];
|
|
104
|
+
multiple?: boolean;
|
|
105
|
+
search?: ElementSearch;
|
|
106
|
+
maxLength?: string | number | null;
|
|
107
|
+
errors?: Errors;
|
|
108
|
+
actionButton?: ActionButton;
|
|
109
|
+
mask?: string;
|
|
110
|
+
autocomplete?: string;
|
|
111
|
+
clearValue?: boolean;
|
|
112
|
+
minDate?: string | Date | null;
|
|
113
|
+
maxDate?: string | Date | null;
|
|
114
|
+
status?: Status[];
|
|
115
|
+
checkParent?: boolean;
|
|
116
|
+
checkChildren?: boolean;
|
|
117
|
+
openedChange?: EventEmitter<boolean>;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare class Dropdown extends ElementBase {
|
|
122
|
+
controlType: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
declare class MapaDropdownV2Component {
|
|
126
|
+
private readonly hostElement;
|
|
127
|
+
private readonly isOpenState;
|
|
128
|
+
element: Dropdown;
|
|
129
|
+
formControl: FormControl<ElementOption | null>;
|
|
130
|
+
private triggerButton?;
|
|
131
|
+
private searchInput?;
|
|
132
|
+
isOpen(): boolean;
|
|
133
|
+
selectedLabel(): string;
|
|
134
|
+
options(): ElementOption[];
|
|
135
|
+
filteredOptions(): ElementOption[];
|
|
136
|
+
hasSearch(): boolean;
|
|
137
|
+
searchPlaceholder(): string;
|
|
138
|
+
shouldShowRequiredError(): boolean;
|
|
139
|
+
toggleDropdown(): void;
|
|
140
|
+
selectOption(option: ElementOption): void;
|
|
141
|
+
closeDropdown(): void;
|
|
142
|
+
handleDocumentClick(event: MouseEvent): void;
|
|
143
|
+
get searchControl(): FormControl<string | null> | undefined;
|
|
144
|
+
private markAsTouchedIfEmpty;
|
|
145
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownV2Component, never>;
|
|
146
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownV2Component, "mapa-dropdown-v2", never, { "element": { "alias": "element"; "required": true; }; "formControl": { "alias": "formControl"; "required": true; }; }, {}, never, never, true, never>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export { Dropdown, ElementBase, MapaDropdownV2Component };
|
|
150
|
+
export type { ElementOption, ElementSearch, ElementTreeNode, Status };
|
|
@@ -21,9 +21,12 @@ declare const isAfterDateValue: (value: DateInput$1, compareValue: DateInput$1,
|
|
|
21
21
|
|
|
22
22
|
type DatepickerLocale = 'pt-BR' | 'es' | 'en';
|
|
23
23
|
type DateFormatPattern = 'DD/MM/YYYY' | 'MM/DD/YYYY';
|
|
24
|
+
type DateTimeFormatPattern = 'DD/MM/YYYY HH:mm' | 'MM/DD/YYYY HH:mm';
|
|
24
25
|
declare function toDatepickerLocale(language: AppLanguage): DatepickerLocale;
|
|
25
26
|
declare function getDateFormatByLanguage(language: AppLanguage): DateFormatPattern;
|
|
27
|
+
declare function getDateTimeFormatByLanguage(language: AppLanguage): DateTimeFormatPattern;
|
|
26
28
|
declare function formatDateByLanguage(value: Date | string | number | null | undefined, language: AppLanguage): string;
|
|
29
|
+
declare function formatDateTimeByLanguage(value: Date | string | number | null | undefined, language: AppLanguage): string;
|
|
27
30
|
declare function isValidDateByLanguage(value: string | null | undefined, language: AppLanguage): boolean;
|
|
28
31
|
declare function parseDateByLanguage(value: string | null | undefined, language: AppLanguage): Date;
|
|
29
32
|
declare function toIsoDateByLanguage(value: string | null | undefined, language: AppLanguage): string;
|
|
@@ -72,5 +75,5 @@ declare function toUtcRangeStartIso(value: DateInput): string | undefined;
|
|
|
72
75
|
declare function toUtcRangeEndIso(value: DateInput): string | undefined;
|
|
73
76
|
declare function toUtcDayExclusiveEndIso(value: DateInput): string | undefined;
|
|
74
77
|
|
|
75
|
-
export { addDays, addMonthsToDateValue, formatBrazilianDate, formatDateAsDayMonthYear, formatDateAsMonthDayYear, formatDateByLanguage, formatDateForLocale, formatDateValue, formatLocaleDate, formatLocaleDateTime, getActiveDateFormat, getActiveDateLocale, getActiveMaterialDateFormat, getDateFormatByLanguage, getDateInputMask, getDayOfMonthFromDateValue, getDefaultDateRange, getRelativeDateRange, getYearFromDateValue, isAfterDateValue, isDateValue, isMonthFirstDateLocale, isValidDateByLanguage, isValidDateValue, normalizeDateInput, normalizeDateLocale, parseBrazilianDate, parseDateByLanguage, parseDateValue, parseDateValueFns, parseLocaleDateValue, reformatDateStringForLanguage, setTimeOnDateValue, toDatepickerLocale, toIsoDateByLanguage, toIsoDateByLanguageWithUtcTime, toIsoDateValue, toIsoDateValueWithTime, toIsoDateValueWithUtcTime, toUtcDayExclusiveEndIso, toUtcRangeEndIso, toUtcRangeStartIso };
|
|
76
|
-
export type { DateFormatPattern, DateInput, DatepickerLocale, LocaleDateStyle, MapaDateFormat, MapaDateLocale };
|
|
78
|
+
export { addDays, addMonthsToDateValue, formatBrazilianDate, formatDateAsDayMonthYear, formatDateAsMonthDayYear, formatDateByLanguage, formatDateForLocale, formatDateTimeByLanguage, formatDateValue, formatLocaleDate, formatLocaleDateTime, getActiveDateFormat, getActiveDateLocale, getActiveMaterialDateFormat, getDateFormatByLanguage, getDateInputMask, getDateTimeFormatByLanguage, getDayOfMonthFromDateValue, getDefaultDateRange, getRelativeDateRange, getYearFromDateValue, isAfterDateValue, isDateValue, isMonthFirstDateLocale, isValidDateByLanguage, isValidDateValue, normalizeDateInput, normalizeDateLocale, parseBrazilianDate, parseDateByLanguage, parseDateValue, parseDateValueFns, parseLocaleDateValue, reformatDateStringForLanguage, setTimeOnDateValue, toDatepickerLocale, toIsoDateByLanguage, toIsoDateByLanguageWithUtcTime, toIsoDateValue, toIsoDateValueWithTime, toIsoDateValueWithUtcTime, toUtcDayExclusiveEndIso, toUtcRangeEndIso, toUtcRangeStartIso };
|
|
79
|
+
export type { DateFormatPattern, DateInput, DateTimeFormatPattern, DatepickerLocale, LocaleDateStyle, MapaDateFormat, MapaDateLocale };
|
|
Binary file
|