@smartbit4all/ng-client 4.2.62 → 4.2.64

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.
@@ -1,32 +1,38 @@
1
- import { ElementRef, EventEmitter, QueryList } from '@angular/core';
1
+ import { EventEmitter, QueryList, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { UiAction } from '../../../api';
3
3
  import { UiMenuService } from './menu.service';
4
4
  import { ComponentLibrary } from '../../../utility/componentLibrary';
5
+ import { Overlay, OverlayPositionBuilder, OverlayRef } from '@angular/cdk/overlay';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class MenuComponent {
7
8
  private menuService;
9
+ private overlay;
10
+ private viewContainerRef;
11
+ private overlayPositionBuilder;
8
12
  compLib?: ComponentLibrary | undefined;
9
- menuRef: ElementRef;
10
13
  submenuComponents: QueryList<MenuComponent>;
11
- subActions: UiAction[];
14
+ menuTemplate: TemplateRef<any>;
15
+ overlayRef: OverlayRef | null;
12
16
  triggerAction: UiAction;
13
17
  isSubmenu: boolean;
14
18
  actionClick: EventEmitter<UiAction>;
19
+ submenuOpened: EventEmitter<UiAction>;
15
20
  private destroy$;
16
- visible: boolean;
17
21
  icon: string;
18
22
  submenuOpenMap: Map<UiAction, boolean>;
19
- alignLeft: boolean;
20
- constructor(menuService: UiMenuService, compLib?: ComponentLibrary | undefined);
23
+ subActions: UiAction[];
24
+ constructor(menuService: UiMenuService, overlay: Overlay, viewContainerRef: ViewContainerRef, overlayPositionBuilder: OverlayPositionBuilder, compLib?: ComponentLibrary | undefined);
21
25
  ngOnInit(): void;
26
+ ngOnChanges(changes: SimpleChanges): void;
22
27
  ngOnDestroy(): void;
23
28
  onActionClick(action: UiAction): void;
24
29
  onMenuClick(event: Event): void;
25
30
  onDocumentClick(event: Event): void;
26
- toggleMenu(): void;
27
- openSubmenu(action: UiAction): void;
28
- private getSubmenuComponentForAction;
29
- adjustAlignment(retries?: number): void;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, [null, { optional: true; }]>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "ui-tiered-menu", never, { "subActions": { "alias": "subActions"; "required": false; }; "triggerAction": { "alias": "triggerAction"; "required": false; }; "isSubmenu": { "alias": "isSubmenu"; "required": false; }; }, { "actionClick": "actionClick"; }, never, never, false, never>;
31
+ get isOpen(): boolean;
32
+ closeMenu(): void;
33
+ openMenu(event: MouseEvent): void;
34
+ toggleMenu(event: MouseEvent): void;
35
+ onSubmenuOpened(openedAction: UiAction): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, [null, null, null, null, { optional: true; }]>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "ui-tiered-menu", never, { "triggerAction": { "alias": "triggerAction"; "required": false; }; "isSubmenu": { "alias": "isSubmenu"; "required": false; }; }, { "actionClick": "actionClick"; "submenuOpened": "submenuOpened"; }, never, never, false, never>;
32
38
  }
@@ -12,6 +12,7 @@ export declare class UiActionButtonComponent implements OnInit, OnDestroy {
12
12
  code?: string;
13
13
  addedCssClass?: string;
14
14
  actionClick: EventEmitter<{
15
+ event: MouseEvent;
15
16
  descriptor?: UiActionDescriptor | undefined;
16
17
  code?: string | undefined;
17
18
  uiAction?: UiAction | undefined;
@@ -30,7 +31,7 @@ export declare class UiActionButtonComponent implements OnInit, OnDestroy {
30
31
  ngOnInit(): void;
31
32
  ngOnChanges(changes: SimpleChanges): void;
32
33
  ngOnDestroy(): void;
33
- onActionClicked(event: any, model: UiActionModel): Promise<void>;
34
+ onActionClicked(event: MouseEvent, model: UiActionModel): Promise<void>;
34
35
  onActionDoubleClicked(event: any): void;
35
36
  iconPosition(): typeof IconPosition;
36
37
  isOnlyIcon(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "4.2.62",
3
+ "version": "4.2.64",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
6
6
  "@angular/common": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
Binary file