matcha-components 20.197.0 → 20.199.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/matcha-components.mjs +573 -505
- package/fesm2022/matcha-components.mjs.map +1 -1
- package/index.d.ts +8 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -308,9 +308,10 @@ declare class MatchaPanelComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
308
308
|
private elRef;
|
|
309
309
|
private renderer;
|
|
310
310
|
private cdr;
|
|
311
|
-
placement: PanelPlacement | '
|
|
311
|
+
placement: PanelPlacement | 'side';
|
|
312
312
|
maxHeight: number;
|
|
313
313
|
minWidth: number;
|
|
314
|
+
widthMode: 'fixed' | 'max-content';
|
|
314
315
|
offset: number;
|
|
315
316
|
triggerElement?: HTMLElement;
|
|
316
317
|
open: boolean;
|
|
@@ -374,10 +375,11 @@ declare class MatchaPanelComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
374
375
|
private calculatePosition;
|
|
375
376
|
/**
|
|
376
377
|
* Calcula posição lateral (para submenus multinível)
|
|
378
|
+
* Detecta automaticamente se deve abrir à direita ou à esquerda
|
|
377
379
|
*/
|
|
378
380
|
private calculateSidePosition;
|
|
379
381
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaPanelComponent, never>;
|
|
380
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatchaPanelComponent, "matcha-panel", never, { "placement": { "alias": "placement"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "triggerElement": { "alias": "triggerElement"; "required": false; }; "open": { "alias": "open"; "required": false; }; "hasOverlay": { "alias": "hasOverlay"; "required": false; }; "ignoreClickOutsideElements": { "alias": "ignoreClickOutsideElements"; "required": false; }; "suppressGlobalClose": { "alias": "suppressGlobalClose"; "required": false; }; "portalToBody": { "alias": "portalToBody"; "required": false; }; }, { "opened": "opened"; "closed": "closed"; }, never, ["*"], false, never>;
|
|
382
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatchaPanelComponent, "matcha-panel", never, { "placement": { "alias": "placement"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "widthMode": { "alias": "widthMode"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "triggerElement": { "alias": "triggerElement"; "required": false; }; "open": { "alias": "open"; "required": false; }; "hasOverlay": { "alias": "hasOverlay"; "required": false; }; "ignoreClickOutsideElements": { "alias": "ignoreClickOutsideElements"; "required": false; }; "suppressGlobalClose": { "alias": "suppressGlobalClose"; "required": false; }; "portalToBody": { "alias": "portalToBody"; "required": false; }; }, { "opened": "opened"; "closed": "closed"; }, never, ["*"], false, never>;
|
|
381
383
|
}
|
|
382
384
|
|
|
383
385
|
declare class MatchaAutocompleteComponent implements AfterContentInit, AfterViewInit, MatchaOptionParent {
|
|
@@ -2509,7 +2511,7 @@ declare class MatchaChipModule {
|
|
|
2509
2511
|
declare class MatchaMenuComponent {
|
|
2510
2512
|
private cdr;
|
|
2511
2513
|
panel: MatchaPanelComponent;
|
|
2512
|
-
placement: 'bottom' | 'top' | 'auto' | '
|
|
2514
|
+
placement: 'bottom' | 'top' | 'auto' | 'side';
|
|
2513
2515
|
private _maxHeight;
|
|
2514
2516
|
get maxHeight(): number;
|
|
2515
2517
|
set maxHeight(value: number | string);
|
|
@@ -2594,8 +2596,11 @@ declare class MatchaSubmenuTriggerDirective implements AfterViewInit, OnDestroy
|
|
|
2594
2596
|
parentMenu: MatchaMenuComponent;
|
|
2595
2597
|
hasSubmenuClass: boolean;
|
|
2596
2598
|
private closeTimeout;
|
|
2599
|
+
/** Detecta dispositivos sem hover (touch-primary) */
|
|
2600
|
+
private get isTouch();
|
|
2597
2601
|
constructor(el: ElementRef<HTMLElement>);
|
|
2598
2602
|
ngAfterViewInit(): void;
|
|
2603
|
+
onClick(event: MouseEvent): void;
|
|
2599
2604
|
onMouseEnter(): void;
|
|
2600
2605
|
onMouseLeave(): void;
|
|
2601
2606
|
private scheduleClose;
|