@smartbit4all/ng-client 4.2.63 → 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.
- package/esm2022/lib/view-context/smart-ui-action/components/menu/menu.component.mjs +110 -53
- package/esm2022/lib/view-context/smart-ui-action/ui-action-button/ui-action-button.component.mjs +2 -1
- package/esm2022/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +1 -1
- package/fesm2022/smartbit4all-ng-client.mjs +191 -133
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/view-context/smart-ui-action/components/menu/menu.component.d.ts +18 -12
- package/lib/view-context/smart-ui-action/ui-action-button/ui-action-button.component.d.ts +2 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-4.2.64.tgz +0 -0
- package/smartbit4all-ng-client-4.2.63.tgz +0 -0
|
@@ -1,32 +1,38 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
static
|
|
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:
|
|
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
|
Binary file
|
|
Binary file
|