@siemens/dashboards-ng 49.0.0-rc.3 → 49.0.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/LICENSE.md +1 -1
- package/README.md +2 -2
- package/fesm2022/siemens-dashboards-ng-module-federation.mjs +1 -1
- package/fesm2022/siemens-dashboards-ng-module-federation.mjs.map +1 -1
- package/fesm2022/siemens-dashboards-ng-native-federation-mf-bridge.mjs.map +1 -1
- package/fesm2022/siemens-dashboards-ng-native-federation.mjs +1 -1
- package/fesm2022/siemens-dashboards-ng-native-federation.mjs.map +1 -1
- package/fesm2022/siemens-dashboards-ng-translate.mjs +1 -1
- package/fesm2022/siemens-dashboards-ng-translate.mjs.map +1 -1
- package/fesm2022/siemens-dashboards-ng.mjs +92 -64
- package/fesm2022/siemens-dashboards-ng.mjs.map +1 -1
- package/package.json +3 -3
- package/types/siemens-dashboards-ng-translate.d.ts +1 -1
- package/types/siemens-dashboards-ng.d.ts +57 -27
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siemens/dashboards-ng",
|
|
3
3
|
"description": "Element Dashboards library.",
|
|
4
|
-
"version": "49.0.0
|
|
4
|
+
"version": "49.0.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@angular/common": "21",
|
|
22
22
|
"@angular/core": "21",
|
|
23
|
-
"@siemens/element-ng": "49.0.0
|
|
24
|
-
"@siemens/element-theme": "49.0.0
|
|
23
|
+
"@siemens/element-ng": "49.0.0",
|
|
24
|
+
"@siemens/element-theme": "49.0.0",
|
|
25
25
|
"gridstack": "^12.3.3",
|
|
26
26
|
"@angular-architects/module-federation": "^20.0.0",
|
|
27
27
|
"@angular-architects/native-federation": "^21.1.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _siemens_element_translate_ng_translate from '@siemens/element-translate-ng/translate';
|
|
2
2
|
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
3
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
-
import {
|
|
4
|
+
import { Type, InputSignal, OutputEmitterRef, EventEmitter, TemplateRef, OnInit, OnChanges, ViewContainerRef, SimpleChanges, OnDestroy, InjectionToken, Provider, Injector, EnvironmentInjector, ComponentRef } from '@angular/core';
|
|
5
5
|
import { AccentLineType, MenuItem } from '@siemens/element-ng/common';
|
|
6
6
|
import { SiDashboardComponent } from '@siemens/element-ng/dashboard';
|
|
7
7
|
import { Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
@@ -27,25 +27,7 @@ interface GridConfig {
|
|
|
27
27
|
declare const DEFAULT_GRIDSTACK_OPTIONS: GridStackOptions;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Copyright (c) Siemens 2016 -
|
|
31
|
-
* SPDX-License-Identifier: MIT
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Dashboard configuration object. Inject globally using the {@link SI_DASHBOARD_CONFIGURATION}
|
|
36
|
-
* or configure individual dashboard instances.
|
|
37
|
-
*/
|
|
38
|
-
type Config = {
|
|
39
|
-
grid?: GridConfig;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Injection token to configure dashboards. Use `{ provide: SI_DASHBOARD_CONFIGURATION, useValue: config }`
|
|
43
|
-
* in your app configuration.
|
|
44
|
-
*/
|
|
45
|
-
declare const SI_DASHBOARD_CONFIGURATION: InjectionToken<Config>;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Copyright (c) Siemens 2016 - 2025
|
|
30
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
49
31
|
* SPDX-License-Identifier: MIT
|
|
50
32
|
*/
|
|
51
33
|
|
|
@@ -683,7 +665,7 @@ declare class SiGridComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
683
665
|
}
|
|
684
666
|
|
|
685
667
|
/**
|
|
686
|
-
* Copyright (c) Siemens 2016 -
|
|
668
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
687
669
|
* SPDX-License-Identifier: MIT
|
|
688
670
|
*/
|
|
689
671
|
|
|
@@ -718,6 +700,40 @@ interface DashboardToolbarItemLink {
|
|
|
718
700
|
/** Union type for all possible items in the dashboard toolbar. */
|
|
719
701
|
type DashboardToolbarItem = DashboardToolbarItemAction | DashboardToolbarItemRouterLink | DashboardToolbarItemLink;
|
|
720
702
|
|
|
703
|
+
/**
|
|
704
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
705
|
+
* SPDX-License-Identifier: MIT
|
|
706
|
+
*/
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Dashboard configuration object. Inject globally using the {@link SI_DASHBOARD_CONFIGURATION}
|
|
710
|
+
* or configure individual dashboard instances.
|
|
711
|
+
*/
|
|
712
|
+
type Config = {
|
|
713
|
+
grid?: GridConfig;
|
|
714
|
+
};
|
|
715
|
+
/**
|
|
716
|
+
* Injection token to configure dashboards. Use `{ provide: SI_DASHBOARD_CONFIGURATION, useValue: config }`
|
|
717
|
+
* in your app configuration.
|
|
718
|
+
*/
|
|
719
|
+
declare const SI_DASHBOARD_CONFIGURATION: InjectionToken<Config>;
|
|
720
|
+
/**
|
|
721
|
+
* Injection token to configure global toolbar menu items.
|
|
722
|
+
*/
|
|
723
|
+
declare const SI_DASHBOARD_TOOLBAR_ITEMS: InjectionToken<{
|
|
724
|
+
primary: DashboardToolbarItem[];
|
|
725
|
+
secondary: DashboardToolbarItem[];
|
|
726
|
+
}>;
|
|
727
|
+
/**
|
|
728
|
+
* provider function to configure global toolbar menu items.
|
|
729
|
+
* @param toolbarItems - primary and secondary edit actions which are common to all
|
|
730
|
+
* dashboard instances on application.
|
|
731
|
+
*/
|
|
732
|
+
declare const provideDashboardToolbarItems: (toolbarItems?: {
|
|
733
|
+
primary?: DashboardToolbarItem[];
|
|
734
|
+
secondary?: DashboardToolbarItem[];
|
|
735
|
+
}) => Provider;
|
|
736
|
+
|
|
721
737
|
/**
|
|
722
738
|
* Default widget catalog implementation to show all available widgets that can be added
|
|
723
739
|
* to a dashboard. It consists of a list view, that lists all available widgets and after
|
|
@@ -890,6 +906,16 @@ declare class SiFlexibleDashboardComponent implements OnInit, OnChanges, OnDestr
|
|
|
890
906
|
* ```
|
|
891
907
|
*/
|
|
892
908
|
readonly searchPlaceholder: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>;
|
|
909
|
+
/**
|
|
910
|
+
* Primary action menu items shown in the edit mode of the dashboard.
|
|
911
|
+
* @defaultValue []
|
|
912
|
+
*/
|
|
913
|
+
readonly primaryEditActions: _angular_core.InputSignal<DashboardToolbarItem[]>;
|
|
914
|
+
/**
|
|
915
|
+
* Secondary action menu items shown in the edit mode of the dashboard.
|
|
916
|
+
* @defaultValue []
|
|
917
|
+
*/
|
|
918
|
+
readonly secondaryEditActions: _angular_core.InputSignal<DashboardToolbarItem[]>;
|
|
893
919
|
/**
|
|
894
920
|
* The grid component is the actual container for the widgets.
|
|
895
921
|
*/
|
|
@@ -936,6 +962,7 @@ declare class SiFlexibleDashboardComponent implements OnInit, OnChanges, OnDestr
|
|
|
936
962
|
private hideAddWidgetInstanceButton$;
|
|
937
963
|
private dashboardId$;
|
|
938
964
|
private readonly toolbar;
|
|
965
|
+
private readonly globalEditActions;
|
|
939
966
|
ngOnChanges(changes: SimpleChanges): void;
|
|
940
967
|
ngOnInit(): void;
|
|
941
968
|
ngOnDestroy(): void;
|
|
@@ -951,11 +978,11 @@ declare class SiFlexibleDashboardComponent implements OnInit, OnChanges, OnDestr
|
|
|
951
978
|
private proxyMenuItemAction;
|
|
952
979
|
private getWidget;
|
|
953
980
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiFlexibleDashboardComponent, never>;
|
|
954
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiFlexibleDashboardComponent, "si-flexible-dashboard", never, { "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "widgetCatalogComponent": { "alias": "widgetCatalogComponent"; "required": false; "isSignal": true; }; "widgetInstanceEditorDialogComponent": { "alias": "widgetInstanceEditorDialogComponent"; "required": false; "isSignal": true; }; "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "widgetCatalog": { "alias": "widgetCatalog"; "required": false; "isSignal": true; }; "hideAddWidgetInstanceButton": { "alias": "hideAddWidgetInstanceButton"; "required": false; "isSignal": true; }; "hideEditButton": { "alias": "hideEditButton"; "required": false; "isSignal": true; }; "showEditButtonLabel": { "alias": "showEditButtonLabel"; "required": false; "isSignal": true; }; "hideProgressIndicator": { "alias": "hideProgressIndicator"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; }, { "editable": "editableChange"; "isModified": "isModified"; }, never, ["[filters-slot]", "[empty-state]"], true, never>;
|
|
981
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiFlexibleDashboardComponent, "si-flexible-dashboard", never, { "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "widgetCatalogComponent": { "alias": "widgetCatalogComponent"; "required": false; "isSignal": true; }; "widgetInstanceEditorDialogComponent": { "alias": "widgetInstanceEditorDialogComponent"; "required": false; "isSignal": true; }; "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "widgetCatalog": { "alias": "widgetCatalog"; "required": false; "isSignal": true; }; "hideAddWidgetInstanceButton": { "alias": "hideAddWidgetInstanceButton"; "required": false; "isSignal": true; }; "hideEditButton": { "alias": "hideEditButton"; "required": false; "isSignal": true; }; "showEditButtonLabel": { "alias": "showEditButtonLabel"; "required": false; "isSignal": true; }; "hideProgressIndicator": { "alias": "hideProgressIndicator"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "primaryEditActions": { "alias": "primaryEditActions"; "required": false; "isSignal": true; }; "secondaryEditActions": { "alias": "secondaryEditActions"; "required": false; "isSignal": true; }; }, { "editable": "editableChange"; "isModified": "isModified"; }, never, ["[filters-slot]", "[empty-state]"], true, never>;
|
|
955
982
|
}
|
|
956
983
|
|
|
957
984
|
/**
|
|
958
|
-
* Copyright (c) Siemens 2016 -
|
|
985
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
959
986
|
* SPDX-License-Identifier: MIT
|
|
960
987
|
*/
|
|
961
988
|
|
|
@@ -994,6 +1021,9 @@ declare abstract class SiWidgetStorage {
|
|
|
994
1021
|
/**
|
|
995
1022
|
* Optional method to provide primary and secondary toolbar menu items.
|
|
996
1023
|
* @param dashboardId - The id of the dashboard if present to allow dashboard specific menu items.
|
|
1024
|
+
*
|
|
1025
|
+
* @deprecated use {@link provideDashboardToolbarItems} to provide common toolbar items.
|
|
1026
|
+
* Additionally configure individual dashboard actions via {@link SiFlexibleDashboardComponent.primaryEditActions} and {@link SiFlexibleDashboardComponent.secondaryEditActions} respectively.
|
|
997
1027
|
*/
|
|
998
1028
|
getToolbarMenuItems?: (dashboardId?: string) => {
|
|
999
1029
|
primary: Observable<(MenuItem | DashboardToolbarItem)[]>;
|
|
@@ -1036,7 +1066,7 @@ declare class SiDefaultWidgetStorage extends SiWidgetStorage {
|
|
|
1036
1066
|
}
|
|
1037
1067
|
|
|
1038
1068
|
/**
|
|
1039
|
-
* Copyright (c) Siemens 2016 -
|
|
1069
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
1040
1070
|
* SPDX-License-Identifier: MIT
|
|
1041
1071
|
*/
|
|
1042
1072
|
|
|
@@ -1087,7 +1117,7 @@ declare class SiWidgetDefaultIdProvider extends SiWidgetIdProvider {
|
|
|
1087
1117
|
}
|
|
1088
1118
|
|
|
1089
1119
|
/**
|
|
1090
|
-
* Copyright (c) Siemens 2016 -
|
|
1120
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
1091
1121
|
* SPDX-License-Identifier: MIT
|
|
1092
1122
|
*/
|
|
1093
1123
|
|
|
@@ -1104,7 +1134,7 @@ declare const setupWidgetInstance: (widgetComponentFactory: WidgetComponentFacto
|
|
|
1104
1134
|
declare const setupWidgetEditor: (widgetComponentFactory: WidgetComponentFactory, host: ViewContainerRef, injector: Injector, envInjector: EnvironmentInjector) => Observable<ComponentRef<WidgetInstanceEditor>>;
|
|
1105
1135
|
|
|
1106
1136
|
/**
|
|
1107
|
-
* Copyright (c) Siemens 2016 -
|
|
1137
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
1108
1138
|
* SPDX-License-Identifier: MIT
|
|
1109
1139
|
*/
|
|
1110
1140
|
|
|
@@ -1149,5 +1179,5 @@ declare class SiDashboardsNgModule {
|
|
|
1149
1179
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<SiDashboardsNgModule>;
|
|
1150
1180
|
}
|
|
1151
1181
|
|
|
1152
|
-
export { DEFAULT_GRIDSTACK_OPTIONS, DEFAULT_WIDGET_STORAGE_TOKEN, SI_DASHBOARD_CONFIGURATION, SI_WIDGET_ID_PROVIDER, SI_WIDGET_STORE, STORAGE_KEY, SiDashboardsNgModule, SiDefaultWidgetStorage, SiFlexibleDashboardComponent, SiGridComponent, SiWidgetCatalogComponent, SiWidgetDefaultIdProvider, SiWidgetIdProvider, SiWidgetInstanceEditorDialogComponent, SiWidgetStorage, SiDashboardsNgModule as SimplDashboardsNgModule, createWidgetConfig, handleFederatedModuleLoad, setupWidgetEditor, setupWidgetInstance, widgetFactoryRegistry };
|
|
1182
|
+
export { DEFAULT_GRIDSTACK_OPTIONS, DEFAULT_WIDGET_STORAGE_TOKEN, SI_DASHBOARD_CONFIGURATION, SI_DASHBOARD_TOOLBAR_ITEMS, SI_WIDGET_ID_PROVIDER, SI_WIDGET_STORE, STORAGE_KEY, SiDashboardsNgModule, SiDefaultWidgetStorage, SiFlexibleDashboardComponent, SiGridComponent, SiWidgetCatalogComponent, SiWidgetDefaultIdProvider, SiWidgetIdProvider, SiWidgetInstanceEditorDialogComponent, SiWidgetStorage, SiDashboardsNgModule as SimplDashboardsNgModule, createWidgetConfig, handleFederatedModuleLoad, provideDashboardToolbarItems, setupWidgetEditor, setupWidgetInstance, widgetFactoryRegistry };
|
|
1153
1183
|
export type { Config, DashboardToolbarItem, DashboardToolbarItemAction, DashboardToolbarItemLink, DashboardToolbarItemRouterLink, FederatedBridgeModule, FederatedModule, FederatedModuleExports, FederationFactoryBase, GridConfig, LoadRemoteBridgeOptions, LoadRemoteModuleEsmOptions, LoadRemoteModuleManifestOptions, LoadRemoteModuleOptions, LoadRemoteModuleScriptOptions, ObjectFit, SetupComponentFn, WebComponent, Widget, WidgetComponentFactory, WidgetComponentTypeFactory, WidgetConfig, WidgetConfigEvent, WidgetConfigStatus, WidgetImage, WidgetInstance, WidgetInstanceEditor, WidgetInstanceEditorWizard, WidgetInstanceEditorWizardState, WidgetPositionConfig };
|