mapa-library-ui 1.6.3 → 1.7.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 +322 -168
- package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs +318 -166
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs +80 -6
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs +80 -6
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs +318 -166
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +320 -168
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs +320 -163
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs +332 -176
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-group-report.mjs +2 -2
- package/fesm2022/mapa-library-ui-src-lib-components-group-report.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +78 -4
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs +78 -4
- package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs +76 -2
- package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +79 -4
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs +78 -4
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs +76 -2
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs.map +1 -1
- package/fesm2022/mapa-library-ui.mjs +391 -412
- package/fesm2022/mapa-library-ui.mjs.map +1 -1
- package/index.d.ts +50 -73
- package/mapa-library-ui-1.7.0.tgz +0 -0
- package/package.json +1 -9
- package/src/lib/components/capability/index.d.ts +71 -55
- package/src/lib/components/dropdown/index.d.ts +51 -55
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-v2.mjs +0 -303
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-v2.mjs.map +0 -1
- package/mapa-library-ui-1.6.3.tgz +0 -0
- package/src/lib/components/dropdown-v2/index.d.ts +0 -165
package/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { ApexAxisChartSeries, ApexChart, ApexTitleSubtitle, ApexXAxis, ApexStrok
|
|
|
5
5
|
import { MatInput } from '@angular/material/input';
|
|
6
6
|
import { MatPaginator, MatPaginatorIntl, PageEvent } from '@angular/material/paginator';
|
|
7
7
|
import * as rxjs from 'rxjs';
|
|
8
|
-
import { ReplaySubject } from 'rxjs';
|
|
9
8
|
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
10
9
|
import { MapaUiTextGroups, ValidationContext, ValidationTextResolver, PartialMapaUiTexts, AppLanguage } from 'mapa-frontend-i18n';
|
|
11
10
|
export { PartialMapaUiTexts, ValidationTextResolver } from 'mapa-frontend-i18n';
|
|
@@ -14,8 +13,6 @@ import * as mapa_library_ui from 'mapa-library-ui';
|
|
|
14
13
|
import { MatAccordion } from '@angular/material/expansion';
|
|
15
14
|
import { MatDatepicker } from '@angular/material/datepicker';
|
|
16
15
|
import { MatDialogRef, MatDialog, MatDialogConfig } from '@angular/material/dialog';
|
|
17
|
-
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
18
|
-
import { MatSelect } from '@angular/material/select';
|
|
19
16
|
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
20
17
|
import { Sort, MatSort } from '@angular/material/sort';
|
|
21
18
|
import { MatTableDataSource, MatTable } from '@angular/material/table';
|
|
@@ -1425,48 +1422,66 @@ declare class MapaDialogComponent {
|
|
|
1425
1422
|
}
|
|
1426
1423
|
declare function openDialog(dialog: MatDialog, dialogData: DialogData, config?: MatDialogConfig): rxjs.Observable<any>;
|
|
1427
1424
|
|
|
1428
|
-
declare class MapaDropdownComponent implements ControlValueAccessor
|
|
1425
|
+
declare class MapaDropdownComponent implements ControlValueAccessor {
|
|
1429
1426
|
private readonly i18n;
|
|
1430
1427
|
private readonly cdr;
|
|
1431
|
-
|
|
1432
|
-
|
|
1428
|
+
private readonly destroyRef;
|
|
1429
|
+
private readonly isOpenState;
|
|
1430
|
+
private readonly overlayWidthState;
|
|
1431
|
+
private formControlValue;
|
|
1432
|
+
private formControlChanges?;
|
|
1433
1433
|
element: Dropdown;
|
|
1434
|
+
set formControl(control: FormControl<unknown>);
|
|
1435
|
+
get formControl(): FormControl<unknown>;
|
|
1436
|
+
formControlSearch?: FormControl<string | null>;
|
|
1434
1437
|
border: "soft" | "tag" | "highlight" | null | undefined;
|
|
1435
1438
|
openedChange: EventEmitter<boolean>;
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
protected filteredOptionsCache: ElementOption[];
|
|
1440
|
-
protected filteredGroupCache: ElementGroup[];
|
|
1441
|
-
private readonly destroyRef;
|
|
1442
|
-
isIndeterminate: boolean;
|
|
1443
|
-
isChecked: boolean;
|
|
1444
|
-
isOptionsGroup: boolean;
|
|
1445
|
-
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
1439
|
+
private triggerButton?;
|
|
1440
|
+
private searchInput?;
|
|
1441
|
+
readonly overlayPositions: ConnectedPosition[];
|
|
1446
1442
|
writeValue(_value: unknown): void;
|
|
1447
1443
|
registerOnChange(_fn: (value: unknown) => void): void;
|
|
1448
1444
|
registerOnTouched(_fn: () => void): void;
|
|
1449
1445
|
setDisabledState(_isDisabled: boolean): void;
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
protected filterOptions(): void;
|
|
1459
|
-
normalizeValue(value?: string | null): string;
|
|
1460
|
-
triggerOpenedChange(event: boolean): void;
|
|
1461
|
-
protected setToggleAllCheckboxState(): void;
|
|
1462
|
-
toggleSelectAll(event: MatCheckboxChange): void;
|
|
1463
|
-
isElementGroup(object: ElementGroup | ElementOption): object is ElementGroup;
|
|
1464
|
-
isElementOption(object: unknown): object is ElementOption;
|
|
1465
|
-
compareFn(c1: ElementOption | null, c2: ElementOption | null): boolean;
|
|
1446
|
+
isOpen(): boolean;
|
|
1447
|
+
overlayWidth(): number;
|
|
1448
|
+
isMultiple(): boolean;
|
|
1449
|
+
isDisabled(): boolean;
|
|
1450
|
+
hasGroups(): boolean;
|
|
1451
|
+
selectedOptions(): ElementOption[];
|
|
1452
|
+
selectedLabel(): string;
|
|
1453
|
+
isOptionSelected(option: ElementOption): boolean;
|
|
1466
1454
|
hasValue(): boolean;
|
|
1467
|
-
|
|
1455
|
+
get selectAllLabel(): string;
|
|
1456
|
+
isAllSelected(): boolean;
|
|
1457
|
+
isIndeterminate(): boolean;
|
|
1458
|
+
toggleSelectAll(): void;
|
|
1459
|
+
options(): ElementOption[];
|
|
1460
|
+
filteredOptions(): ElementOption[];
|
|
1461
|
+
filteredGroups(): ElementGroup[];
|
|
1462
|
+
visibleOptions(): ElementOption[];
|
|
1463
|
+
hasSearch(): boolean;
|
|
1464
|
+
searchPlaceholder(): string;
|
|
1465
|
+
emptyStateLabel(): string;
|
|
1466
|
+
shouldShowError(): boolean;
|
|
1467
|
+
optionPadding(option: ElementOption): number;
|
|
1468
|
+
toggleDropdown(): void;
|
|
1469
|
+
selectOption(option: ElementOption): void;
|
|
1470
|
+
clearValue(event: Event): void;
|
|
1471
|
+
closeDropdown(): void;
|
|
1472
|
+
handleOverlayOutsideClick(event: Event): void;
|
|
1473
|
+
handleWindowResize(): void;
|
|
1474
|
+
get searchControl(): FormControl<string | null> | undefined;
|
|
1475
|
+
private toggleOption;
|
|
1476
|
+
private normalizedSearchTerm;
|
|
1477
|
+
private normalizeValue;
|
|
1478
|
+
private isElementGroup;
|
|
1479
|
+
private isElementOption;
|
|
1480
|
+
private markControlAsChanged;
|
|
1481
|
+
private markAsTouchedIfEmpty;
|
|
1482
|
+
private setOpenState;
|
|
1468
1483
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownComponent, never>;
|
|
1469
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownComponent, "mapa-dropdown", never, { "
|
|
1484
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownComponent, "mapa-dropdown", never, { "element": { "alias": "element"; "required": true; }; "formControl": { "alias": "formControl"; "required": true; }; "formControlSearch": { "alias": "formControlSearch"; "required": false; }; "border": { "alias": "border"; "required": false; }; }, { "openedChange": "openedChange"; }, never, never, true, never>;
|
|
1470
1485
|
}
|
|
1471
1486
|
|
|
1472
1487
|
interface DataNode extends ElementTreeNode {
|
|
@@ -1491,44 +1506,6 @@ declare class MapaDropdownTreeComponent implements OnInit, OnChanges, AfterViewI
|
|
|
1491
1506
|
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>;
|
|
1492
1507
|
}
|
|
1493
1508
|
|
|
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
|
-
|
|
1532
1509
|
declare class MapaEmptyStateComponent {
|
|
1533
1510
|
title: string | null;
|
|
1534
1511
|
subtitle: string | null;
|
|
@@ -2072,5 +2049,5 @@ declare class MapaScaleParameterizationComponent {
|
|
|
2072
2049
|
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>;
|
|
2073
2050
|
}
|
|
2074
2051
|
|
|
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,
|
|
2052
|
+
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 };
|
|
2076
2053
|
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.7.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^20.3.0",
|
|
6
6
|
"@angular/cdk": "^20.2.0",
|
|
@@ -75,10 +75,6 @@
|
|
|
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
|
-
},
|
|
82
78
|
"./empty": {
|
|
83
79
|
"types": "./src/lib/components/empty/index.d.ts",
|
|
84
80
|
"default": "./fesm2022/mapa-library-ui-src-lib-components-empty.mjs"
|
|
@@ -214,10 +210,6 @@
|
|
|
214
210
|
"types": "./src/lib/components/dropdown-tree/index.d.ts",
|
|
215
211
|
"default": "./fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs"
|
|
216
212
|
},
|
|
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
|
-
},
|
|
221
213
|
"./src/lib/components/empty": {
|
|
222
214
|
"types": "./src/lib/components/empty/index.d.ts",
|
|
223
215
|
"default": "./fesm2022/mapa-library-ui-src-lib-components-empty.mjs"
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter,
|
|
3
|
-
import
|
|
4
|
-
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
2
|
+
import { EventEmitter, TemplateRef, ElementRef, ApplicationRef, OnInit, OnChanges, SimpleChanges, AfterViewInit } from '@angular/core';
|
|
3
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
5
4
|
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
6
|
-
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
7
|
-
import { MatSelect } from '@angular/material/select';
|
|
8
|
-
import * as rxjs from 'rxjs';
|
|
9
|
-
import { ReplaySubject } from 'rxjs';
|
|
10
5
|
import { MatIconRegistry } from '@angular/material/icon';
|
|
11
6
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
7
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
8
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
9
|
+
import * as rxjs from 'rxjs';
|
|
12
10
|
import { MatAccordion } from '@angular/material/expansion';
|
|
13
11
|
|
|
14
12
|
declare class ButtonComponent {
|
|
@@ -140,65 +138,66 @@ declare class Dropdown extends ElementBase {
|
|
|
140
138
|
controlType: string;
|
|
141
139
|
}
|
|
142
140
|
|
|
143
|
-
|
|
144
|
-
type ValidationMessageContext = ValidationContext;
|
|
145
|
-
|
|
146
|
-
declare class MapaI18nService {
|
|
147
|
-
private readonly injector;
|
|
148
|
-
private readonly textsState;
|
|
149
|
-
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
150
|
-
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
151
|
-
constructor(customTexts: PartialMapaUiTexts | null);
|
|
152
|
-
get texts(): MapaUiTexts;
|
|
153
|
-
setTexts(texts: PartialMapaUiTexts): void;
|
|
154
|
-
resolveValidationText(key: keyof MapaUiTexts["validation"], context?: ValidationMessageContext): string;
|
|
155
|
-
private resolveText;
|
|
156
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapaI18nService, [{ optional: true; }]>;
|
|
157
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MapaI18nService>;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
declare class MapaDropdownComponent implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit {
|
|
141
|
+
declare class MapaDropdownComponent implements ControlValueAccessor {
|
|
161
142
|
private readonly i18n;
|
|
162
143
|
private readonly cdr;
|
|
163
|
-
|
|
164
|
-
|
|
144
|
+
private readonly destroyRef;
|
|
145
|
+
private readonly isOpenState;
|
|
146
|
+
private readonly overlayWidthState;
|
|
147
|
+
private formControlValue;
|
|
148
|
+
private formControlChanges?;
|
|
165
149
|
element: Dropdown;
|
|
150
|
+
set formControl(control: FormControl<unknown>);
|
|
151
|
+
get formControl(): FormControl<unknown>;
|
|
152
|
+
formControlSearch?: FormControl<string | null>;
|
|
166
153
|
border: "soft" | "tag" | "highlight" | null | undefined;
|
|
167
154
|
openedChange: EventEmitter<boolean>;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
protected filteredOptionsCache: ElementOption[];
|
|
172
|
-
protected filteredGroupCache: ElementGroup[];
|
|
173
|
-
private readonly destroyRef;
|
|
174
|
-
isIndeterminate: boolean;
|
|
175
|
-
isChecked: boolean;
|
|
176
|
-
isOptionsGroup: boolean;
|
|
177
|
-
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
155
|
+
private triggerButton?;
|
|
156
|
+
private searchInput?;
|
|
157
|
+
readonly overlayPositions: ConnectedPosition[];
|
|
178
158
|
writeValue(_value: unknown): void;
|
|
179
159
|
registerOnChange(_fn: (value: unknown) => void): void;
|
|
180
160
|
registerOnTouched(_fn: () => void): void;
|
|
181
161
|
setDisabledState(_isDisabled: boolean): void;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
protected filterOptions(): void;
|
|
191
|
-
normalizeValue(value?: string | null): string;
|
|
192
|
-
triggerOpenedChange(event: boolean): void;
|
|
193
|
-
protected setToggleAllCheckboxState(): void;
|
|
194
|
-
toggleSelectAll(event: MatCheckboxChange): void;
|
|
195
|
-
isElementGroup(object: ElementGroup | ElementOption): object is ElementGroup;
|
|
196
|
-
isElementOption(object: unknown): object is ElementOption;
|
|
197
|
-
compareFn(c1: ElementOption | null, c2: ElementOption | null): boolean;
|
|
162
|
+
isOpen(): boolean;
|
|
163
|
+
overlayWidth(): number;
|
|
164
|
+
isMultiple(): boolean;
|
|
165
|
+
isDisabled(): boolean;
|
|
166
|
+
hasGroups(): boolean;
|
|
167
|
+
selectedOptions(): ElementOption[];
|
|
168
|
+
selectedLabel(): string;
|
|
169
|
+
isOptionSelected(option: ElementOption): boolean;
|
|
198
170
|
hasValue(): boolean;
|
|
199
|
-
|
|
171
|
+
get selectAllLabel(): string;
|
|
172
|
+
isAllSelected(): boolean;
|
|
173
|
+
isIndeterminate(): boolean;
|
|
174
|
+
toggleSelectAll(): void;
|
|
175
|
+
options(): ElementOption[];
|
|
176
|
+
filteredOptions(): ElementOption[];
|
|
177
|
+
filteredGroups(): ElementGroup[];
|
|
178
|
+
visibleOptions(): ElementOption[];
|
|
179
|
+
hasSearch(): boolean;
|
|
180
|
+
searchPlaceholder(): string;
|
|
181
|
+
emptyStateLabel(): string;
|
|
182
|
+
shouldShowError(): boolean;
|
|
183
|
+
optionPadding(option: ElementOption): number;
|
|
184
|
+
toggleDropdown(): void;
|
|
185
|
+
selectOption(option: ElementOption): void;
|
|
186
|
+
clearValue(event: Event): void;
|
|
187
|
+
closeDropdown(): void;
|
|
188
|
+
handleOverlayOutsideClick(event: Event): void;
|
|
189
|
+
handleWindowResize(): void;
|
|
190
|
+
get searchControl(): FormControl<string | null> | undefined;
|
|
191
|
+
private toggleOption;
|
|
192
|
+
private normalizedSearchTerm;
|
|
193
|
+
private normalizeValue;
|
|
194
|
+
private isElementGroup;
|
|
195
|
+
private isElementOption;
|
|
196
|
+
private markControlAsChanged;
|
|
197
|
+
private markAsTouchedIfEmpty;
|
|
198
|
+
private setOpenState;
|
|
200
199
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownComponent, never>;
|
|
201
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownComponent, "mapa-dropdown", never, { "
|
|
200
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownComponent, "mapa-dropdown", never, { "element": { "alias": "element"; "required": true; }; "formControl": { "alias": "formControl"; "required": true; }; "formControlSearch": { "alias": "formControlSearch"; "required": false; }; "border": { "alias": "border"; "required": false; }; }, { "openedChange": "openedChange"; }, never, never, true, never>;
|
|
202
201
|
}
|
|
203
202
|
|
|
204
203
|
declare class IconComponent {
|
|
@@ -380,6 +379,23 @@ declare class MapaCapabilityDotComponent {
|
|
|
380
379
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaCapabilityDotComponent, "mapa-capability-dot", never, { "type": { "alias": "type"; "required": false; }; "item": { "alias": "item"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "capability": { "alias": "capability"; "required": false; }; }, {}, never, never, true, never>;
|
|
381
380
|
}
|
|
382
381
|
|
|
382
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
383
|
+
type ValidationMessageContext = ValidationContext;
|
|
384
|
+
|
|
385
|
+
declare class MapaI18nService {
|
|
386
|
+
private readonly injector;
|
|
387
|
+
private readonly textsState;
|
|
388
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
389
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
390
|
+
constructor(customTexts: PartialMapaUiTexts | null);
|
|
391
|
+
get texts(): MapaUiTexts;
|
|
392
|
+
setTexts(texts: PartialMapaUiTexts): void;
|
|
393
|
+
resolveValidationText(key: keyof MapaUiTexts["validation"], context?: ValidationMessageContext): string;
|
|
394
|
+
private resolveText;
|
|
395
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaI18nService, [{ optional: true; }]>;
|
|
396
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MapaI18nService>;
|
|
397
|
+
}
|
|
398
|
+
|
|
383
399
|
declare class MapaCapabilityExpandComponent {
|
|
384
400
|
classification: CapabilityClassificationService;
|
|
385
401
|
private readonly i18n;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { EventEmitter
|
|
4
|
-
import
|
|
5
|
-
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
6
|
-
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
7
|
-
import { MatSelect } from '@angular/material/select';
|
|
8
|
-
import * as rxjs from 'rxjs';
|
|
9
|
-
import { ReplaySubject } from 'rxjs';
|
|
3
|
+
import { EventEmitter } from '@angular/core';
|
|
4
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
10
5
|
|
|
11
6
|
interface ElementSearch {
|
|
12
7
|
placeholder?: string;
|
|
@@ -128,65 +123,66 @@ declare class Dropdown extends ElementBase {
|
|
|
128
123
|
controlType: string;
|
|
129
124
|
}
|
|
130
125
|
|
|
131
|
-
|
|
132
|
-
type ValidationMessageContext = ValidationContext;
|
|
133
|
-
|
|
134
|
-
declare class MapaI18nService {
|
|
135
|
-
private readonly injector;
|
|
136
|
-
private readonly textsState;
|
|
137
|
-
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
138
|
-
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
139
|
-
constructor(customTexts: PartialMapaUiTexts | null);
|
|
140
|
-
get texts(): MapaUiTexts;
|
|
141
|
-
setTexts(texts: PartialMapaUiTexts): void;
|
|
142
|
-
resolveValidationText(key: keyof MapaUiTexts["validation"], context?: ValidationMessageContext): string;
|
|
143
|
-
private resolveText;
|
|
144
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapaI18nService, [{ optional: true; }]>;
|
|
145
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MapaI18nService>;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
declare class MapaDropdownComponent implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit {
|
|
126
|
+
declare class MapaDropdownComponent implements ControlValueAccessor {
|
|
149
127
|
private readonly i18n;
|
|
150
128
|
private readonly cdr;
|
|
151
|
-
|
|
152
|
-
|
|
129
|
+
private readonly destroyRef;
|
|
130
|
+
private readonly isOpenState;
|
|
131
|
+
private readonly overlayWidthState;
|
|
132
|
+
private formControlValue;
|
|
133
|
+
private formControlChanges?;
|
|
153
134
|
element: Dropdown;
|
|
135
|
+
set formControl(control: FormControl<unknown>);
|
|
136
|
+
get formControl(): FormControl<unknown>;
|
|
137
|
+
formControlSearch?: FormControl<string | null>;
|
|
154
138
|
border: "soft" | "tag" | "highlight" | null | undefined;
|
|
155
139
|
openedChange: EventEmitter<boolean>;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
protected filteredOptionsCache: ElementOption[];
|
|
160
|
-
protected filteredGroupCache: ElementGroup[];
|
|
161
|
-
private readonly destroyRef;
|
|
162
|
-
isIndeterminate: boolean;
|
|
163
|
-
isChecked: boolean;
|
|
164
|
-
isOptionsGroup: boolean;
|
|
165
|
-
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
140
|
+
private triggerButton?;
|
|
141
|
+
private searchInput?;
|
|
142
|
+
readonly overlayPositions: ConnectedPosition[];
|
|
166
143
|
writeValue(_value: unknown): void;
|
|
167
144
|
registerOnChange(_fn: (value: unknown) => void): void;
|
|
168
145
|
registerOnTouched(_fn: () => void): void;
|
|
169
146
|
setDisabledState(_isDisabled: boolean): void;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
protected filterOptions(): void;
|
|
179
|
-
normalizeValue(value?: string | null): string;
|
|
180
|
-
triggerOpenedChange(event: boolean): void;
|
|
181
|
-
protected setToggleAllCheckboxState(): void;
|
|
182
|
-
toggleSelectAll(event: MatCheckboxChange): void;
|
|
183
|
-
isElementGroup(object: ElementGroup | ElementOption): object is ElementGroup;
|
|
184
|
-
isElementOption(object: unknown): object is ElementOption;
|
|
185
|
-
compareFn(c1: ElementOption | null, c2: ElementOption | null): boolean;
|
|
147
|
+
isOpen(): boolean;
|
|
148
|
+
overlayWidth(): number;
|
|
149
|
+
isMultiple(): boolean;
|
|
150
|
+
isDisabled(): boolean;
|
|
151
|
+
hasGroups(): boolean;
|
|
152
|
+
selectedOptions(): ElementOption[];
|
|
153
|
+
selectedLabel(): string;
|
|
154
|
+
isOptionSelected(option: ElementOption): boolean;
|
|
186
155
|
hasValue(): boolean;
|
|
187
|
-
|
|
156
|
+
get selectAllLabel(): string;
|
|
157
|
+
isAllSelected(): boolean;
|
|
158
|
+
isIndeterminate(): boolean;
|
|
159
|
+
toggleSelectAll(): void;
|
|
160
|
+
options(): ElementOption[];
|
|
161
|
+
filteredOptions(): ElementOption[];
|
|
162
|
+
filteredGroups(): ElementGroup[];
|
|
163
|
+
visibleOptions(): ElementOption[];
|
|
164
|
+
hasSearch(): boolean;
|
|
165
|
+
searchPlaceholder(): string;
|
|
166
|
+
emptyStateLabel(): string;
|
|
167
|
+
shouldShowError(): boolean;
|
|
168
|
+
optionPadding(option: ElementOption): number;
|
|
169
|
+
toggleDropdown(): void;
|
|
170
|
+
selectOption(option: ElementOption): void;
|
|
171
|
+
clearValue(event: Event): void;
|
|
172
|
+
closeDropdown(): void;
|
|
173
|
+
handleOverlayOutsideClick(event: Event): void;
|
|
174
|
+
handleWindowResize(): void;
|
|
175
|
+
get searchControl(): FormControl<string | null> | undefined;
|
|
176
|
+
private toggleOption;
|
|
177
|
+
private normalizedSearchTerm;
|
|
178
|
+
private normalizeValue;
|
|
179
|
+
private isElementGroup;
|
|
180
|
+
private isElementOption;
|
|
181
|
+
private markControlAsChanged;
|
|
182
|
+
private markAsTouchedIfEmpty;
|
|
183
|
+
private setOpenState;
|
|
188
184
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownComponent, never>;
|
|
189
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownComponent, "mapa-dropdown", never, { "
|
|
185
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownComponent, "mapa-dropdown", never, { "element": { "alias": "element"; "required": true; }; "formControl": { "alias": "formControl"; "required": true; }; "formControlSearch": { "alias": "formControlSearch"; "required": false; }; "border": { "alias": "border"; "required": false; }; }, { "openedChange": "openedChange"; }, never, never, true, never>;
|
|
190
186
|
}
|
|
191
187
|
|
|
192
188
|
export { Dropdown, ElementBase, MapaDropdownComponent };
|