mapa-library-ui 1.6.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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';
@@ -1491,14 +1492,25 @@ declare class MapaDropdownTreeComponent implements OnInit, OnChanges, AfterViewI
1491
1492
  }
1492
1493
 
1493
1494
  declare class MapaDropdownV2Component {
1494
- private readonly hostElement;
1495
+ private readonly i18n;
1495
1496
  private readonly isOpenState;
1497
+ private readonly overlayWidthState;
1496
1498
  element: Dropdown;
1497
- formControl: FormControl<ElementOption | null>;
1499
+ formControl: FormControl<ElementOption | ElementOption[] | null>;
1498
1500
  private triggerButton?;
1499
1501
  private searchInput?;
1502
+ readonly overlayPositions: ConnectedPosition[];
1500
1503
  isOpen(): boolean;
1504
+ overlayWidth(): number;
1505
+ isMultiple(): boolean;
1506
+ selectedOptions(): ElementOption[];
1501
1507
  selectedLabel(): string;
1508
+ isOptionSelected(option: ElementOption): boolean;
1509
+ hasValue(): boolean;
1510
+ get selectAllLabel(): string;
1511
+ isAllSelected(): boolean;
1512
+ isIndeterminate(): boolean;
1513
+ toggleSelectAll(): void;
1502
1514
  options(): ElementOption[];
1503
1515
  filteredOptions(): ElementOption[];
1504
1516
  hasSearch(): boolean;
@@ -1506,8 +1518,11 @@ declare class MapaDropdownV2Component {
1506
1518
  shouldShowRequiredError(): boolean;
1507
1519
  toggleDropdown(): void;
1508
1520
  selectOption(option: ElementOption): void;
1521
+ clearValue(event: Event): void;
1522
+ private toggleOption;
1509
1523
  closeDropdown(): void;
1510
- handleDocumentClick(event: MouseEvent): void;
1524
+ handleOverlayOutsideClick(event: Event): void;
1525
+ handleWindowResize(): void;
1511
1526
  get searchControl(): FormControl<string | null> | undefined;
1512
1527
  private markAsTouchedIfEmpty;
1513
1528
  static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownV2Component, never>;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapa-library-ui",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^20.3.0",
6
6
  "@angular/cdk": "^20.2.0",
@@ -1,6 +1,7 @@
1
1
  import { FormControl } from '@angular/forms';
2
2
  import * as i0 from '@angular/core';
3
3
  import { EventEmitter } from '@angular/core';
4
+ import { ConnectedPosition } from '@angular/cdk/overlay';
4
5
 
5
6
  interface ElementSearch {
6
7
  placeholder?: string;
@@ -123,14 +124,25 @@ declare class Dropdown extends ElementBase {
123
124
  }
124
125
 
125
126
  declare class MapaDropdownV2Component {
126
- private readonly hostElement;
127
+ private readonly i18n;
127
128
  private readonly isOpenState;
129
+ private readonly overlayWidthState;
128
130
  element: Dropdown;
129
- formControl: FormControl<ElementOption | null>;
131
+ formControl: FormControl<ElementOption | ElementOption[] | null>;
130
132
  private triggerButton?;
131
133
  private searchInput?;
134
+ readonly overlayPositions: ConnectedPosition[];
132
135
  isOpen(): boolean;
136
+ overlayWidth(): number;
137
+ isMultiple(): boolean;
138
+ selectedOptions(): ElementOption[];
133
139
  selectedLabel(): string;
140
+ isOptionSelected(option: ElementOption): boolean;
141
+ hasValue(): boolean;
142
+ get selectAllLabel(): string;
143
+ isAllSelected(): boolean;
144
+ isIndeterminate(): boolean;
145
+ toggleSelectAll(): void;
134
146
  options(): ElementOption[];
135
147
  filteredOptions(): ElementOption[];
136
148
  hasSearch(): boolean;
@@ -138,8 +150,11 @@ declare class MapaDropdownV2Component {
138
150
  shouldShowRequiredError(): boolean;
139
151
  toggleDropdown(): void;
140
152
  selectOption(option: ElementOption): void;
153
+ clearValue(event: Event): void;
154
+ private toggleOption;
141
155
  closeDropdown(): void;
142
- handleDocumentClick(event: MouseEvent): void;
156
+ handleOverlayOutsideClick(event: Event): void;
157
+ handleWindowResize(): void;
143
158
  get searchControl(): FormControl<string | null> | undefined;
144
159
  private markAsTouchedIfEmpty;
145
160
  static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownV2Component, never>;
Binary file