mapa-library-ui 1.5.4 → 1.6.1

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/index.d.ts CHANGED
@@ -16,6 +16,7 @@ import { MatDatepicker } from '@angular/material/datepicker';
16
16
  import { MatDialogRef, MatDialog, MatDialogConfig } from '@angular/material/dialog';
17
17
  import { MatCheckboxChange } from '@angular/material/checkbox';
18
18
  import { MatSelect } from '@angular/material/select';
19
+ import { ConnectedPosition } from '@angular/cdk/overlay';
19
20
  import { Sort, MatSort } from '@angular/material/sort';
20
21
  import { MatTableDataSource, MatTable } from '@angular/material/table';
21
22
  import { MatIconRegistry } from '@angular/material/icon';
@@ -1490,6 +1491,44 @@ declare class MapaDropdownTreeComponent implements OnInit, OnChanges, AfterViewI
1490
1491
  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>;
1491
1492
  }
1492
1493
 
1494
+ declare class MapaDropdownV2Component {
1495
+ private readonly i18n;
1496
+ private readonly isOpenState;
1497
+ private readonly overlayWidthState;
1498
+ element: Dropdown;
1499
+ formControl: FormControl<ElementOption | ElementOption[] | null>;
1500
+ private triggerButton?;
1501
+ private searchInput?;
1502
+ readonly overlayPositions: ConnectedPosition[];
1503
+ isOpen(): boolean;
1504
+ overlayWidth(): number;
1505
+ isMultiple(): boolean;
1506
+ selectedOptions(): ElementOption[];
1507
+ selectedLabel(): string;
1508
+ isOptionSelected(option: ElementOption): boolean;
1509
+ hasValue(): boolean;
1510
+ get selectAllLabel(): string;
1511
+ isAllSelected(): boolean;
1512
+ isIndeterminate(): boolean;
1513
+ toggleSelectAll(): void;
1514
+ options(): ElementOption[];
1515
+ filteredOptions(): ElementOption[];
1516
+ hasSearch(): boolean;
1517
+ searchPlaceholder(): string;
1518
+ shouldShowRequiredError(): boolean;
1519
+ toggleDropdown(): void;
1520
+ selectOption(option: ElementOption): void;
1521
+ clearValue(event: Event): void;
1522
+ private toggleOption;
1523
+ closeDropdown(): void;
1524
+ handleOverlayOutsideClick(event: Event): void;
1525
+ handleWindowResize(): void;
1526
+ get searchControl(): FormControl<string | null> | undefined;
1527
+ private markAsTouchedIfEmpty;
1528
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownV2Component, never>;
1529
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownV2Component, "mapa-dropdown-v2", never, { "element": { "alias": "element"; "required": true; }; "formControl": { "alias": "formControl"; "required": true; }; }, {}, never, never, true, never>;
1530
+ }
1531
+
1493
1532
  declare class MapaEmptyStateComponent {
1494
1533
  title: string | null;
1495
1534
  subtitle: string | null;
@@ -2033,5 +2072,5 @@ declare class MapaScaleParameterizationComponent {
2033
2072
  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>;
2034
2073
  }
2035
2074
 
2036
- 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, 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 };
2075
+ 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 };
2037
2076
  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.5.4",
3
+ "version": "1.6.1",
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,165 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import * as i0 from '@angular/core';
3
+ import { EventEmitter } from '@angular/core';
4
+ import { ConnectedPosition } from '@angular/cdk/overlay';
5
+
6
+ interface ElementSearch {
7
+ placeholder?: string;
8
+ noEntriesFoundLabel?: string;
9
+ formControl?: FormControl;
10
+ toggleAllCheckbox?: boolean;
11
+ }
12
+
13
+ interface ElementTreeNode {
14
+ key: string;
15
+ value: string;
16
+ children?: ElementTreeNode[];
17
+ isLeaf?: boolean;
18
+ }
19
+ interface ElementOption {
20
+ key: string;
21
+ value: string;
22
+ children?: ElementOption[];
23
+ childrenLevel?: number | null;
24
+ }
25
+
26
+ interface ElementGroup {
27
+ label: string;
28
+ options: ElementOption[];
29
+ }
30
+
31
+ interface ActionButton {
32
+ label: string;
33
+ action: EventEmitter<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 Dropdown extends ElementBase {
123
+ controlType: string;
124
+ }
125
+
126
+ declare class MapaDropdownV2Component {
127
+ private readonly i18n;
128
+ private readonly isOpenState;
129
+ private readonly overlayWidthState;
130
+ element: Dropdown;
131
+ formControl: FormControl<ElementOption | ElementOption[] | null>;
132
+ private triggerButton?;
133
+ private searchInput?;
134
+ readonly overlayPositions: ConnectedPosition[];
135
+ isOpen(): boolean;
136
+ overlayWidth(): number;
137
+ isMultiple(): boolean;
138
+ selectedOptions(): ElementOption[];
139
+ selectedLabel(): string;
140
+ isOptionSelected(option: ElementOption): boolean;
141
+ hasValue(): boolean;
142
+ get selectAllLabel(): string;
143
+ isAllSelected(): boolean;
144
+ isIndeterminate(): boolean;
145
+ toggleSelectAll(): void;
146
+ options(): ElementOption[];
147
+ filteredOptions(): ElementOption[];
148
+ hasSearch(): boolean;
149
+ searchPlaceholder(): string;
150
+ shouldShowRequiredError(): boolean;
151
+ toggleDropdown(): void;
152
+ selectOption(option: ElementOption): void;
153
+ clearValue(event: Event): void;
154
+ private toggleOption;
155
+ closeDropdown(): void;
156
+ handleOverlayOutsideClick(event: Event): void;
157
+ handleWindowResize(): void;
158
+ get searchControl(): FormControl<string | null> | undefined;
159
+ private markAsTouchedIfEmpty;
160
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownV2Component, never>;
161
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownV2Component, "mapa-dropdown-v2", never, { "element": { "alias": "element"; "required": true; }; "formControl": { "alias": "formControl"; "required": true; }; }, {}, never, never, true, never>;
162
+ }
163
+
164
+ export { Dropdown, ElementBase, MapaDropdownV2Component };
165
+ export type { ElementOption, ElementSearch, ElementTreeNode, Status };
Binary file