@smartbit4all/ng-client 4.5.44 → 4.5.45
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/smart-grid/smart-grid-toolbar-util.mjs +13 -9
- package/esm2022/lib/smart-grid/smart-grid.component.mjs +36 -3
- package/esm2022/lib/smart-table/tables/material-table/material-table.component.mjs +7 -11
- package/esm2022/lib/smart-table/tables/mobile-table/mobile-table.component.mjs +5 -5
- package/esm2022/lib/smart-table/tables/table.mjs +53 -59
- package/esm2022/lib/smart-tree/smarttree.component.mjs +2 -2
- package/esm2022/lib/view-context/api/api/view.service.mjs +1 -1
- package/esm2022/lib/view-context/api/model/deviceInfo.mjs +1 -1
- package/esm2022/lib/view-context/api/model/iconPosition.mjs +1 -1
- package/esm2022/lib/view-context/api/model/menuDescriptor.mjs +2 -0
- package/esm2022/lib/view-context/api/model/menuOpenDirection.mjs +23 -0
- package/esm2022/lib/view-context/api/model/menuTriggerType.mjs +1 -1
- package/esm2022/lib/view-context/api/model/models.mjs +3 -1
- package/esm2022/lib/view-context/api/model/namedValidator.mjs +1 -1
- package/esm2022/lib/view-context/api/model/publishedViewData.mjs +1 -1
- package/esm2022/lib/view-context/api/model/shellProperty.mjs +1 -1
- package/esm2022/lib/view-context/api/model/smartLinkData.mjs +1 -1
- package/esm2022/lib/view-context/api/model/themeDefinition.mjs +1 -1
- package/esm2022/lib/view-context/api/model/themeDescriptor.mjs +1 -1
- package/esm2022/lib/view-context/api/model/themeShellDescriptor.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiAction.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionDefinition.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionDefinitionEntry.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionDescriptor.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionInputType.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionSchedule.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
- package/esm2022/lib/view-context/api/model/view.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewData.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewEventHandler.mjs +1 -1
- package/esm2022/lib/view-context/smart-ui-action/components/menu/click/menu.component.mjs +12 -8
- package/esm2022/lib/view-context/smart-ui-action/components/menu/hover/hover-menu.component.mjs +9 -5
- package/esm2022/lib/view-context/smart-ui-action/components/menu/menu.constants.mjs +58 -68
- package/esm2022/lib/view-context/smart-ui-action/file-editor-toolbar/file-editor-toolbar.component.mjs +3 -3
- package/esm2022/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +6 -4
- package/fesm2022/smartbit4all-ng-client.mjs +209 -157
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-grid/smart-grid.component.d.ts +3 -0
- package/lib/smart-table/tables/material-table/material-table.component.d.ts +0 -1
- package/lib/smart-table/tables/table.d.ts +6 -5
- package/lib/view-context/api/model/menuDescriptor.d.ts +17 -0
- package/lib/view-context/api/model/menuOpenDirection.d.ts +21 -0
- package/lib/view-context/api/model/models.d.ts +2 -0
- package/lib/view-context/api/model/uiActionDescriptor.d.ts +2 -2
- package/lib/view-context/smart-ui-action/components/menu/click/menu.component.d.ts +3 -2
- package/lib/view-context/smart-ui-action/components/menu/hover/hover-menu.component.d.ts +3 -2
- package/lib/view-context/smart-ui-action/components/menu/menu.constants.d.ts +4 -0
- package/lib/view-context/smart-ui-action/ui-action-toolbar.component.d.ts +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-4.5.45.tgz +0 -0
- package/smartbit4all-ng-client-4.5.44.tgz +0 -0
|
@@ -147,6 +147,9 @@ export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnC
|
|
|
147
147
|
calculateMenuActions(row: GridRow): UiAction[];
|
|
148
148
|
createCellToActionMap(): void;
|
|
149
149
|
rowTrackByFn(index: number, row: any): any;
|
|
150
|
+
private rowMenuActionModelCache;
|
|
151
|
+
private rowMenuActionModelArrayCache;
|
|
152
|
+
getRowMenuActionModelArray(row: GridRow): any[];
|
|
150
153
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartGridComponent, never>;
|
|
151
154
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartGridComponent, "smart-grid", never, { "smartGrid": { "alias": "smartGrid"; "required": false; }; "uuid": { "alias": "uuid"; "required": false; }; "dev": { "alias": "dev"; "required": false; }; }, {}, never, never, false, never>;
|
|
152
155
|
}
|
|
@@ -2,7 +2,6 @@ import { Table } from '../table';
|
|
|
2
2
|
import { ComponentFactoryService } from '../../../component-factory-service/projects';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class MaterialTableComponent extends Table {
|
|
5
|
-
defaultActionToolbarId: string;
|
|
6
5
|
constructor(cfService: ComponentFactoryService);
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialTableComponent, never>;
|
|
8
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTableComponent, "lib-material-table", never, {}, {}, never, never, false, never>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentRef, OnDestroy, OnInit, QueryList, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { ThemePalette } from '@angular/material/core';
|
|
3
|
-
import { MatMenuTrigger } from '@angular/material/menu';
|
|
4
3
|
import { MatTable } from '@angular/material/table';
|
|
5
4
|
import { Subject } from 'rxjs';
|
|
6
5
|
import { ComponentFactoryService } from '../../component-factory-service/projects';
|
|
@@ -11,7 +10,6 @@ import * as i0 from "@angular/core";
|
|
|
11
10
|
export declare class Table implements OnInit, OnDestroy {
|
|
12
11
|
protected cfService: ComponentFactoryService;
|
|
13
12
|
_destroy$: Subject<void>;
|
|
14
|
-
triggers: QueryList<MatMenuTrigger>;
|
|
15
13
|
vcRef?: ViewContainerRef[];
|
|
16
14
|
componentRef?: ComponentRef<any>;
|
|
17
15
|
defaultActionMenuComponents: QueryList<DefaultActionsPopupComponent>;
|
|
@@ -70,7 +68,6 @@ export declare class Table implements OnInit, OnDestroy {
|
|
|
70
68
|
onRowDoubleClick(row: any): void;
|
|
71
69
|
onToggle(element: any, event?: any): Promise<void>;
|
|
72
70
|
setSelection(element: any): void;
|
|
73
|
-
showMenuButton(element: any, button: SmartTableButton): boolean;
|
|
74
71
|
getValue(element: any, header: string): any;
|
|
75
72
|
showButton(button: SmartTableButton, element: any): boolean;
|
|
76
73
|
isDisabled(element: any): boolean;
|
|
@@ -83,10 +80,14 @@ export declare class Table implements OnInit, OnDestroy {
|
|
|
83
80
|
getImageResourceStyle(resource: ImageResource): any;
|
|
84
81
|
openDefaultActionsMenu(event: any, row: any): void;
|
|
85
82
|
getDefaultActionsForRow(element: any): Map<SmartTableButton, UiAction> | undefined;
|
|
83
|
+
defaultActionToolbarId: string;
|
|
86
84
|
getRowColumnAction(row: any, header: string): any[];
|
|
87
85
|
showCellToolbar(row: any, columnName: string): boolean;
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
private rowMenuActionModelCache;
|
|
87
|
+
getRowMenuActionModel(element: any): any;
|
|
88
|
+
private rowMenuActionModelArrayCache;
|
|
89
|
+
getRowMenuActionModelArray(element: any): any[];
|
|
90
|
+
shouldShowMenuButton(row: any): boolean;
|
|
90
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
|
|
91
92
|
static ɵcmp: i0.ɵɵComponentDeclaration<Table, "ng-component", never, { "smartTable": { "alias": "smartTable"; "required": false; }; }, {}, never, never, false, never>;
|
|
92
93
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View API
|
|
3
|
+
* View API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { MenuTriggerType } from './menuTriggerType';
|
|
13
|
+
import { MenuOpenDirection } from './menuOpenDirection';
|
|
14
|
+
export interface MenuDescriptor {
|
|
15
|
+
triggerType?: MenuTriggerType;
|
|
16
|
+
openDirection?: MenuOpenDirection;
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View API
|
|
3
|
+
* View API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export declare enum MenuOpenDirection {
|
|
13
|
+
BELOW_LEFT = "BELOW_LEFT",
|
|
14
|
+
BELOW_RIGHT = "BELOW_RIGHT",
|
|
15
|
+
ABOVE_LEFT = "ABOVE_LEFT",
|
|
16
|
+
ABOVE_RIGHT = "ABOVE_RIGHT",
|
|
17
|
+
RIGHT_TOP = "RIGHT_TOP",
|
|
18
|
+
RIGHT_BOTTOM = "RIGHT_BOTTOM",
|
|
19
|
+
LEFT_TOP = "LEFT_TOP",
|
|
20
|
+
LEFT_BOTTOM = "LEFT_BOTTOM"
|
|
21
|
+
}
|
|
@@ -13,6 +13,8 @@ export * from './downloadedFile';
|
|
|
13
13
|
export * from './iconPosition';
|
|
14
14
|
export * from './imageResource';
|
|
15
15
|
export * from './link';
|
|
16
|
+
export * from './menuDescriptor';
|
|
17
|
+
export * from './menuOpenDirection';
|
|
16
18
|
export * from './menuTriggerType';
|
|
17
19
|
export * from './messageData';
|
|
18
20
|
export * from './messageOption';
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { UiActionTooltip } from './uiActionTooltip';
|
|
13
13
|
import { ImageResource } from './imageResource';
|
|
14
|
-
import { MenuTriggerType } from './menuTriggerType';
|
|
15
14
|
import { IconPosition } from './iconPosition';
|
|
16
15
|
import { BadgeDescriptor } from './badgeDescriptor';
|
|
16
|
+
import { MenuDescriptor } from './menuDescriptor';
|
|
17
17
|
import { Style } from './style';
|
|
18
18
|
import { UiActionFeedbackType } from './uiActionFeedbackType';
|
|
19
19
|
import { UiActionDialogDescriptor } from './uiActionDialogDescriptor';
|
|
@@ -40,5 +40,5 @@ export interface UiActionDescriptor {
|
|
|
40
40
|
upload?: UiActionUploadDescriptor;
|
|
41
41
|
tooltip?: UiActionTooltip;
|
|
42
42
|
style?: Style;
|
|
43
|
-
|
|
43
|
+
menu?: MenuDescriptor;
|
|
44
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, QueryList, SimpleChanges, TemplateRef, ViewContainerRef, AfterViewChecked } from '@angular/core';
|
|
2
2
|
import { Overlay, OverlayPositionBuilder, OverlayRef } from '@angular/cdk/overlay';
|
|
3
|
-
import { UiAction } from '../../../../api';
|
|
3
|
+
import { MenuOpenDirection, UiAction } from '../../../../api';
|
|
4
4
|
import { UiMenuService } from '../menu.service';
|
|
5
5
|
import { ComponentLibrary } from '../../../../utility/componentLibrary';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -15,6 +15,7 @@ export declare class ClickMenuComponent implements AfterViewChecked {
|
|
|
15
15
|
overlayRef: OverlayRef | null;
|
|
16
16
|
triggerAction: UiAction;
|
|
17
17
|
isSubmenu: boolean;
|
|
18
|
+
menuOpenDirection?: MenuOpenDirection;
|
|
18
19
|
actionClick: EventEmitter<UiAction>;
|
|
19
20
|
submenuOpened: EventEmitter<UiAction>;
|
|
20
21
|
private destroy$;
|
|
@@ -39,5 +40,5 @@ export declare class ClickMenuComponent implements AfterViewChecked {
|
|
|
39
40
|
onSubmenuOpened(openedAction: UiAction): void;
|
|
40
41
|
closeSiblingSubmenus(exceptAction: UiAction): void;
|
|
41
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClickMenuComponent, [null, null, null, null, { optional: true; }]>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ClickMenuComponent, "ui-tiered-menu", never, { "triggerAction": { "alias": "triggerAction"; "required": false; }; "isSubmenu": { "alias": "isSubmenu"; "required": false; }; }, { "actionClick": "actionClick"; "submenuOpened": "submenuOpened"; }, never, never, false, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ClickMenuComponent, "ui-tiered-menu", never, { "triggerAction": { "alias": "triggerAction"; "required": false; }; "isSubmenu": { "alias": "isSubmenu"; "required": false; }; "menuOpenDirection": { "alias": "menuOpenDirection"; "required": false; }; }, { "actionClick": "actionClick"; "submenuOpened": "submenuOpened"; }, never, never, false, never>;
|
|
43
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterViewChecked, EventEmitter, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { Overlay, OverlayPositionBuilder, OverlayRef } from '@angular/cdk/overlay';
|
|
3
|
-
import { UiAction } from '../../../../api';
|
|
3
|
+
import { MenuOpenDirection, UiAction } from '../../../../api';
|
|
4
4
|
import { UiMenuService } from '../menu.service';
|
|
5
5
|
import { ComponentLibrary } from '../../../../utility/componentLibrary';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -15,6 +15,7 @@ export declare class HoverMenuComponent implements OnInit, AfterViewChecked, OnD
|
|
|
15
15
|
overlayRef: OverlayRef | null;
|
|
16
16
|
triggerAction: UiAction;
|
|
17
17
|
isSubmenu: boolean;
|
|
18
|
+
menuOpenDirection?: MenuOpenDirection;
|
|
18
19
|
actionClick: EventEmitter<UiAction>;
|
|
19
20
|
submenuOpened: EventEmitter<UiAction>;
|
|
20
21
|
private destroy$;
|
|
@@ -39,5 +40,5 @@ export declare class HoverMenuComponent implements OnInit, AfterViewChecked, OnD
|
|
|
39
40
|
onSubmenuOpened(openedAction: UiAction): void;
|
|
40
41
|
closeSiblingSubmenus(exceptAction: UiAction): void;
|
|
41
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<HoverMenuComponent, [null, null, null, null, { optional: true; }]>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HoverMenuComponent, "ui-hover-menu", never, { "triggerAction": { "alias": "triggerAction"; "required": false; }; "isSubmenu": { "alias": "isSubmenu"; "required": false; }; }, { "actionClick": "actionClick"; "submenuOpened": "submenuOpened"; }, never, never, false, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HoverMenuComponent, "ui-hover-menu", never, { "triggerAction": { "alias": "triggerAction"; "required": false; }; "isSubmenu": { "alias": "isSubmenu"; "required": false; }; "menuOpenDirection": { "alias": "menuOpenDirection"; "required": false; }; }, { "actionClick": "actionClick"; "submenuOpened": "submenuOpened"; }, never, never, false, never>;
|
|
43
44
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
2
|
+
import { MenuOpenDirection } from '../../../api';
|
|
2
3
|
export declare const SUBMENU_POSITIONS: ConnectedPosition[];
|
|
4
|
+
export declare function getSubmenuPositions(direction?: MenuOpenDirection): ConnectedPosition[];
|
|
5
|
+
export declare const MENU_POSITIONS: Record<MenuOpenDirection, ConnectedPosition[]>;
|
|
3
6
|
export declare const ROOT_MENU_POSITIONS: ConnectedPosition[];
|
|
7
|
+
export declare function getMenuPositions(direction?: MenuOpenDirection): ConnectedPosition[];
|
|
@@ -15,7 +15,6 @@ export declare class UiActionToolbarComponent implements OnInit, OnChanges, OnDe
|
|
|
15
15
|
containerRef: ElementRef;
|
|
16
16
|
private _destroy$;
|
|
17
17
|
componentLibrary: typeof ComponentLibrary;
|
|
18
|
-
triggerType: typeof MenuTriggerType;
|
|
19
18
|
pressedButtonActive: boolean;
|
|
20
19
|
uiActionModels?: UiActionModel[];
|
|
21
20
|
uiActionDescriptorService?: UiActionDescriptorService;
|
|
@@ -61,6 +60,7 @@ export declare class UiActionToolbarComponent implements OnInit, OnChanges, OnDe
|
|
|
61
60
|
buttonLeft: UiActionDescriptor;
|
|
62
61
|
buttonRight: UiActionDescriptor;
|
|
63
62
|
get isVertical(): boolean;
|
|
63
|
+
get triggerType(): typeof MenuTriggerType;
|
|
64
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiActionToolbarComponent, never>;
|
|
65
65
|
static ɵcmp: i0.ɵɵComponentDeclaration<UiActionToolbarComponent, "smart-ui-action-toolbar", never, { "uiActionModels": { "alias": "uiActionModels"; "required": false; }; "uiActionDescriptorService": { "alias": "uiActionDescriptorService"; "required": false; }; "id": { "alias": "id"; "required": false; }; "scrollOnWrap": { "alias": "scrollOnWrap"; "required": false; }; "toolbarPropertes": { "alias": "toolbarPropertes"; "required": false; }; }, {}, never, never, false, never>;
|
|
66
66
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|