matcha-components 20.198.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/index.d.ts CHANGED
@@ -308,7 +308,7 @@ declare class MatchaPanelComponent implements OnInit, OnDestroy, OnChanges {
308
308
  private elRef;
309
309
  private renderer;
310
310
  private cdr;
311
- placement: PanelPlacement | 'right' | 'left';
311
+ placement: PanelPlacement | 'side';
312
312
  maxHeight: number;
313
313
  minWidth: number;
314
314
  widthMode: 'fixed' | 'max-content';
@@ -375,6 +375,7 @@ declare class MatchaPanelComponent implements OnInit, OnDestroy, OnChanges {
375
375
  private calculatePosition;
376
376
  /**
377
377
  * Calcula posição lateral (para submenus multinível)
378
+ * Detecta automaticamente se deve abrir à direita ou à esquerda
378
379
  */
379
380
  private calculateSidePosition;
380
381
  static ɵfac: i0.ɵɵFactoryDeclaration<MatchaPanelComponent, never>;
@@ -2510,7 +2511,7 @@ declare class MatchaChipModule {
2510
2511
  declare class MatchaMenuComponent {
2511
2512
  private cdr;
2512
2513
  panel: MatchaPanelComponent;
2513
- placement: 'bottom' | 'top' | 'auto' | 'right' | 'left';
2514
+ placement: 'bottom' | 'top' | 'auto' | 'side';
2514
2515
  private _maxHeight;
2515
2516
  get maxHeight(): number;
2516
2517
  set maxHeight(value: number | string);
@@ -2595,8 +2596,11 @@ declare class MatchaSubmenuTriggerDirective implements AfterViewInit, OnDestroy
2595
2596
  parentMenu: MatchaMenuComponent;
2596
2597
  hasSubmenuClass: boolean;
2597
2598
  private closeTimeout;
2599
+ /** Detecta dispositivos sem hover (touch-primary) */
2600
+ private get isTouch();
2598
2601
  constructor(el: ElementRef<HTMLElement>);
2599
2602
  ngAfterViewInit(): void;
2603
+ onClick(event: MouseEvent): void;
2600
2604
  onMouseEnter(): void;
2601
2605
  onMouseLeave(): void;
2602
2606
  private scheduleClose;
@@ -2666,7 +2670,7 @@ declare class MatchaSnackBarComponent implements OnInit, OnDestroy {
2666
2670
  duration: number;
2667
2671
  visible: boolean;
2668
2672
  private timeoutId;
2669
- get colorAttr(): "error" | "info" | "warning" | "success";
2673
+ get colorAttr(): "error" | "warning" | "info" | "success";
2670
2674
  get positionAttr(): "top" | "bottom";
2671
2675
  get classes(): string;
2672
2676
  constructor(snackBarService: MatchaSnackBarService);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matcha-components",
3
- "version": "20.198.0",
3
+ "version": "20.199.0",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"