@siemens/dashboards-ng 48.8.0 → 49.0.0-rc.1
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/README.md +58 -17
- package/fesm2022/siemens-dashboards-ng-module-federation.mjs.map +1 -1
- package/fesm2022/siemens-dashboards-ng.mjs +220 -197
- package/fesm2022/siemens-dashboards-ng.mjs.map +1 -1
- package/module-federation/package.json +2 -1
- package/package.json +9 -10
- package/translate/package.json +2 -1
- package/{index.d.ts → types/siemens-dashboards-ng.d.ts} +105 -82
- /package/{module-federation/index.d.ts → types/siemens-dashboards-ng-module-federation.d.ts} +0 -0
- /package/{translate/index.d.ts → types/siemens-dashboards-ng-translate.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siemens/dashboards-ng",
|
|
3
3
|
"description": "Element Dashboards library.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "49.0.0-rc.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -18,29 +18,28 @@
|
|
|
18
18
|
"bugs": "https://github.com/siemens/element/issues/new",
|
|
19
19
|
"type": "module",
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@angular/common": "
|
|
22
|
-
"@angular/core": "
|
|
23
|
-
"@
|
|
24
|
-
"@siemens/element-
|
|
25
|
-
"@siemens/element-theme": "48.8.0",
|
|
21
|
+
"@angular/common": "21",
|
|
22
|
+
"@angular/core": "21",
|
|
23
|
+
"@siemens/element-ng": "49.0.0-rc.1",
|
|
24
|
+
"@siemens/element-theme": "49.0.0-rc.1",
|
|
26
25
|
"gridstack": "^12.3.3"
|
|
27
26
|
},
|
|
28
27
|
"module": "fesm2022/siemens-dashboards-ng.mjs",
|
|
29
|
-
"typings": "
|
|
28
|
+
"typings": "types/siemens-dashboards-ng.d.ts",
|
|
30
29
|
"exports": {
|
|
31
30
|
"./package.json": {
|
|
32
31
|
"default": "./package.json"
|
|
33
32
|
},
|
|
34
33
|
".": {
|
|
35
|
-
"types": "./
|
|
34
|
+
"types": "./types/siemens-dashboards-ng.d.ts",
|
|
36
35
|
"default": "./fesm2022/siemens-dashboards-ng.mjs"
|
|
37
36
|
},
|
|
38
37
|
"./module-federation": {
|
|
39
|
-
"types": "./module-federation
|
|
38
|
+
"types": "./types/siemens-dashboards-ng-module-federation.d.ts",
|
|
40
39
|
"default": "./fesm2022/siemens-dashboards-ng-module-federation.mjs"
|
|
41
40
|
},
|
|
42
41
|
"./translate": {
|
|
43
|
-
"types": "./translate
|
|
42
|
+
"types": "./types/siemens-dashboards-ng-translate.d.ts",
|
|
44
43
|
"default": "./fesm2022/siemens-dashboards-ng-translate.mjs"
|
|
45
44
|
}
|
|
46
45
|
},
|
package/translate/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _siemens_element_translate_ng_translate from '@siemens/element-translate-ng/translate';
|
|
2
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
2
3
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { InjectionToken, InputSignal, OutputEmitterRef, EventEmitter, TemplateRef, OnInit, OnChanges, ViewContainerRef, SimpleChanges, OnDestroy,
|
|
4
|
+
import { InjectionToken, Type, InputSignal, OutputEmitterRef, EventEmitter, TemplateRef, OnInit, OnChanges, ViewContainerRef, SimpleChanges, OnDestroy, Injector, EnvironmentInjector, ComponentRef } from '@angular/core';
|
|
4
5
|
import { AccentLineType, MenuItem } from '@siemens/element-ng/common';
|
|
5
6
|
import { SiDashboardComponent } from '@siemens/element-ng/dashboard';
|
|
6
7
|
import { Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
7
8
|
import { GridStackOptions, GridStackNode, GridStack, GridItemHTMLElement } from 'gridstack';
|
|
8
9
|
import { NavigationExtras } from '@angular/router';
|
|
9
|
-
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
10
|
-
import { SiLoadingService } from '@siemens/element-ng/loading-spinner';
|
|
11
10
|
import { ViewType, ContentActionBarMainItem } from '@siemens/element-ng/content-action-bar';
|
|
12
11
|
import { MenuItem as MenuItem$1 } from '@siemens/element-ng/menu';
|
|
13
12
|
export * from '@siemens/dashboards-ng/translate';
|
|
@@ -44,10 +43,6 @@ type Config = {
|
|
|
44
43
|
* in your app configuration.
|
|
45
44
|
*/
|
|
46
45
|
declare const SI_DASHBOARD_CONFIGURATION: InjectionToken<Config>;
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated Use SI_DASHBOARD_CONFIGURATION instead.
|
|
49
|
-
*/
|
|
50
|
-
declare const CONFIG_TOKEN: InjectionToken<Config>;
|
|
51
46
|
|
|
52
47
|
/**
|
|
53
48
|
* Copyright (c) Siemens 2016 - 2025
|
|
@@ -88,12 +83,23 @@ type CommonFactoryFields = {
|
|
|
88
83
|
*/
|
|
89
84
|
editorModalClass?: string;
|
|
90
85
|
};
|
|
91
|
-
type
|
|
86
|
+
type WidgetComponentTypeBaseConfig = {
|
|
92
87
|
factoryType?: 'default';
|
|
88
|
+
[index: string]: any;
|
|
89
|
+
};
|
|
90
|
+
/** Use when component is not standalone and part of a module */
|
|
91
|
+
type ModuleOptions = WidgetComponentTypeBaseConfig & {
|
|
93
92
|
moduleName: string;
|
|
94
93
|
moduleLoader: (name: string) => Promise<any>;
|
|
95
|
-
|
|
94
|
+
componentLoader?: never;
|
|
95
|
+
};
|
|
96
|
+
/** Use when component is standalone */
|
|
97
|
+
type StandaloneOptions = WidgetComponentTypeBaseConfig & {
|
|
98
|
+
componentLoader: <T = unknown>(componentName: string) => Promise<Type<T>>;
|
|
99
|
+
moduleName?: never;
|
|
100
|
+
moduleLoader?: never;
|
|
96
101
|
};
|
|
102
|
+
type WidgetComponentTypeFactory = CommonFactoryFields & (ModuleOptions | StandaloneOptions);
|
|
97
103
|
type FederatedModule = CommonFactoryFields & LoadRemoteModuleOptions & {
|
|
98
104
|
factoryType: 'module-federation';
|
|
99
105
|
[index: string]: any;
|
|
@@ -185,13 +191,6 @@ interface WidgetConfig {
|
|
|
185
191
|
actionBarViewType?: ViewType;
|
|
186
192
|
isNotRemovable?: boolean;
|
|
187
193
|
immutable?: boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Widget instance editor components can use this property to indicate an invalid configuration.
|
|
190
|
-
* True if the config is invalid. False, undefined or null indicate a valid configuration.
|
|
191
|
-
*
|
|
192
|
-
* @deprecated Use the statusChanges emitter to notify about configuration status changes.
|
|
193
|
-
*/
|
|
194
|
-
invalid?: boolean;
|
|
195
194
|
/**
|
|
196
195
|
* Optional configuration for an image to be displayed on the widget instance.
|
|
197
196
|
*/
|
|
@@ -451,15 +450,15 @@ declare class SiWidgetInstanceEditorDialogComponent implements OnInit, OnDestroy
|
|
|
451
450
|
protected readonly disableNextButton: _angular_core.Signal<boolean>;
|
|
452
451
|
protected readonly showPreviousButton: _angular_core.Signal<boolean>;
|
|
453
452
|
protected readonly disablePreviousButton: _angular_core.Signal<boolean>;
|
|
454
|
-
protected labelSave:
|
|
455
|
-
protected labelCancel:
|
|
456
|
-
protected labelPrevious:
|
|
457
|
-
protected labelNext:
|
|
458
|
-
protected labelDialogMessage:
|
|
459
|
-
protected labelDialogHeading:
|
|
460
|
-
protected labelDialogSave:
|
|
461
|
-
protected labelDialogDiscard:
|
|
462
|
-
protected labelDialogCancel:
|
|
453
|
+
protected labelSave: _siemens_element_translate_ng_translate.TranslatableString;
|
|
454
|
+
protected labelCancel: _siemens_element_translate_ng_translate.TranslatableString;
|
|
455
|
+
protected labelPrevious: _siemens_element_translate_ng_translate.TranslatableString;
|
|
456
|
+
protected labelNext: _siemens_element_translate_ng_translate.TranslatableString;
|
|
457
|
+
protected labelDialogMessage: _siemens_element_translate_ng_translate.TranslatableString;
|
|
458
|
+
protected labelDialogHeading: _siemens_element_translate_ng_translate.TranslatableString;
|
|
459
|
+
protected labelDialogSave: _siemens_element_translate_ng_translate.TranslatableString;
|
|
460
|
+
protected labelDialogDiscard: _siemens_element_translate_ng_translate.TranslatableString;
|
|
461
|
+
protected labelDialogCancel: _siemens_element_translate_ng_translate.TranslatableString;
|
|
463
462
|
/**
|
|
464
463
|
* Marks the widget configuration as modified. Is set when widget editor instance
|
|
465
464
|
* emits configChange events. Triggers edit discard confirmation dialog when widget config
|
|
@@ -485,7 +484,6 @@ declare class SiWidgetInstanceEditorDialogComponent implements OnInit, OnDestroy
|
|
|
485
484
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiWidgetInstanceEditorDialogComponent, "si-widget-instance-editor-dialog", never, { "widgetConfig": { "alias": "widgetConfig"; "required": true; "isSignal": true; }; "widget": { "alias": "widget"; "required": true; "isSignal": true; }; }, { "widgetConfig": "widgetConfigChange"; "closed": "closed"; "editorSetupCompleted": "editorSetupCompleted"; }, never, never, true, never>;
|
|
486
485
|
}
|
|
487
486
|
|
|
488
|
-
declare const NEW_WIDGET_PREFIX = "new-widget-";
|
|
489
487
|
/**
|
|
490
488
|
* The grid component is the actual component on which the widget instances are placed and visualized. You can think of
|
|
491
489
|
* a headless dashboard, without a title, toolbar or edit buttons.
|
|
@@ -495,6 +493,7 @@ declare class SiGridComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
495
493
|
private gridService;
|
|
496
494
|
private modalService;
|
|
497
495
|
private widgetStorage;
|
|
496
|
+
private widgetIdProvider;
|
|
498
497
|
/**
|
|
499
498
|
* Configuration options for a grid instance. Default is the optional
|
|
500
499
|
* value from the {@link SI_DASHBOARD_CONFIGURATION}.
|
|
@@ -601,13 +600,6 @@ declare class SiGridComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
601
600
|
markedForRemoval: WidgetConfig[];
|
|
602
601
|
/** @defaultValue viewChild.required(SiGridstackWrapperComponent) */
|
|
603
602
|
readonly gridStackWrapper: _angular_core.Signal<SiGridstackWrapperComponent>;
|
|
604
|
-
/**
|
|
605
|
-
* Service used to indicate load and save indication.
|
|
606
|
-
* @deprecated Use `isLoading` instead.
|
|
607
|
-
*
|
|
608
|
-
* @defaultValue inject(SiLoadingService)
|
|
609
|
-
*/
|
|
610
|
-
loadingService: SiLoadingService;
|
|
611
603
|
/**
|
|
612
604
|
* Indication for load and save operations.
|
|
613
605
|
*/
|
|
@@ -718,7 +710,7 @@ declare class SiWidgetCatalogComponent implements OnInit, OnDestroy {
|
|
|
718
710
|
* t(() => $localize`:@@DASHBOARD.WIDGET_LIBRARY.SEARCH_PLACEHOLDER:Search widget`)
|
|
719
711
|
* ```
|
|
720
712
|
*/
|
|
721
|
-
readonly searchPlaceholder: _angular_core.InputSignal<
|
|
713
|
+
readonly searchPlaceholder: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>;
|
|
722
714
|
/**
|
|
723
715
|
* Emits when the catalog is `closed`, either by canceling or by adding or saving
|
|
724
716
|
* a widget configuration. On cancel `undefined` is emitted, otherwise the related
|
|
@@ -752,16 +744,16 @@ declare class SiWidgetCatalogComponent implements OnInit, OnDestroy {
|
|
|
752
744
|
protected readonly selected: _angular_core.WritableSignal<Widget | undefined>;
|
|
753
745
|
private widgetConfig?;
|
|
754
746
|
private readonly hasEditor;
|
|
755
|
-
protected labelCancel:
|
|
756
|
-
protected labelPrevious:
|
|
757
|
-
protected labelNext:
|
|
758
|
-
protected labelAdd:
|
|
759
|
-
protected labelEmpty:
|
|
760
|
-
protected labelDialogHeading:
|
|
761
|
-
protected labelDialogCancel:
|
|
762
|
-
protected labelDialogMessage:
|
|
763
|
-
protected labelDialogDiscard:
|
|
764
|
-
protected labelWidgetCatalogList:
|
|
747
|
+
protected labelCancel: _siemens_element_translate_ng_translate.TranslatableString;
|
|
748
|
+
protected labelPrevious: _siemens_element_translate_ng_translate.TranslatableString;
|
|
749
|
+
protected labelNext: _siemens_element_translate_ng_translate.TranslatableString;
|
|
750
|
+
protected labelAdd: _siemens_element_translate_ng_translate.TranslatableString;
|
|
751
|
+
protected labelEmpty: _siemens_element_translate_ng_translate.TranslatableString;
|
|
752
|
+
protected labelDialogHeading: _siemens_element_translate_ng_translate.TranslatableString;
|
|
753
|
+
protected labelDialogCancel: _siemens_element_translate_ng_translate.TranslatableString;
|
|
754
|
+
protected labelDialogMessage: _siemens_element_translate_ng_translate.TranslatableString;
|
|
755
|
+
protected labelDialogDiscard: _siemens_element_translate_ng_translate.TranslatableString;
|
|
756
|
+
protected labelWidgetCatalogList: _siemens_element_translate_ng_translate.TranslatableString;
|
|
765
757
|
protected readonly showAddButton: _angular_core.Signal<boolean>;
|
|
766
758
|
protected readonly showNextButton: _angular_core.Signal<boolean>;
|
|
767
759
|
protected readonly showPreviousButton: _angular_core.Signal<boolean>;
|
|
@@ -874,7 +866,7 @@ declare class SiFlexibleDashboardComponent implements OnInit, OnChanges, OnDestr
|
|
|
874
866
|
* t(() => $localize`:@@DASHBOARD.WIDGET_LIBRARY.SEARCH_PLACEHOLDER:Search widget`)
|
|
875
867
|
* ```
|
|
876
868
|
*/
|
|
877
|
-
readonly searchPlaceholder: _angular_core.InputSignal<
|
|
869
|
+
readonly searchPlaceholder: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>;
|
|
878
870
|
/**
|
|
879
871
|
* The grid component is the actual container for the widgets.
|
|
880
872
|
*/
|
|
@@ -893,9 +885,9 @@ declare class SiFlexibleDashboardComponent implements OnInit, OnChanges, OnDestr
|
|
|
893
885
|
* again and emits `false`.
|
|
894
886
|
*/
|
|
895
887
|
readonly isModified: _angular_core.OutputEmitterRef<boolean>;
|
|
896
|
-
protected labelAddWidget:
|
|
897
|
-
protected labelEditor:
|
|
898
|
-
protected labelCatalog:
|
|
888
|
+
protected labelAddWidget: _siemens_element_translate_ng_translate.TranslatableString;
|
|
889
|
+
protected labelEditor: _siemens_element_translate_ng_translate.TranslatableString;
|
|
890
|
+
protected labelCatalog: _siemens_element_translate_ng_translate.TranslatableString;
|
|
899
891
|
protected addWidgetInstanceAction: DashboardToolbarItem;
|
|
900
892
|
/**
|
|
901
893
|
* The primary action menu items shown in the edit mode of the dashboard.
|
|
@@ -962,14 +954,20 @@ declare abstract class SiWidgetStorage {
|
|
|
962
954
|
*/
|
|
963
955
|
abstract load(dashboardId?: string): Observable<WidgetConfig[]>;
|
|
964
956
|
/**
|
|
965
|
-
* Saves the given widget configuration.
|
|
966
|
-
*
|
|
957
|
+
* Saves the given widget configuration. New widgets have `id`
|
|
958
|
+
* generated through the `SiWidgetIdProvider.generateWidgetId` implementation
|
|
959
|
+
* and if ids comes from backend then it is in the responsibility of the implementor to update
|
|
960
|
+
* the ids of the new widgets with the ids returned from backend upon save. In addition,
|
|
967
961
|
* the implementor needs to check if objects that have been available before are missing. These
|
|
968
962
|
* widgets have been removed by the user. As a result of this method, the observables returned
|
|
969
963
|
* by the `load()` method should emit the new widget config objects, before also returning them.
|
|
970
|
-
* @param
|
|
964
|
+
* @param modifiedWidgets - The existing widget config objects to be saved.
|
|
965
|
+
* @param addedWidgets - The new widget config objects to be saved.
|
|
966
|
+
* @param removedWidgets - The widget config objects that have been removed.
|
|
967
|
+
* @param dashboardId - The id of the dashboard if present to allow dashboard specific storage.
|
|
968
|
+
* @returns An observable that emits the saved widget config objects with their ids.
|
|
971
969
|
*/
|
|
972
|
-
abstract save(
|
|
970
|
+
abstract save(modifiedWidgets: WidgetConfig[], addedWidgets: WidgetConfig[], removedWidgets?: WidgetConfig[], dashboardId?: string): Observable<WidgetConfig[]>;
|
|
973
971
|
/**
|
|
974
972
|
* Optional method to provide primary and secondary toolbar menu items.
|
|
975
973
|
* @param dashboardId - The id of the dashboard if present to allow dashboard specific menu items.
|
|
@@ -1009,11 +1007,62 @@ declare class SiDefaultWidgetStorage extends SiWidgetStorage {
|
|
|
1009
1007
|
private widgets?;
|
|
1010
1008
|
constructor();
|
|
1011
1009
|
load(dashboardId?: string): Observable<WidgetConfig[]>;
|
|
1012
|
-
save(
|
|
1013
|
-
protected update(
|
|
1010
|
+
save(modifiedWidgets: WidgetConfig[], addedWidgets: WidgetConfig[], removedWidgets?: WidgetConfig[], dashboardId?: string): Observable<WidgetConfig[]>;
|
|
1011
|
+
protected update(widgetConfigs: WidgetConfig[], dashboardId?: string): void;
|
|
1014
1012
|
protected loadFromStorage(dashboardId?: string): WidgetConfig[];
|
|
1015
1013
|
}
|
|
1016
1014
|
|
|
1015
|
+
/**
|
|
1016
|
+
* Copyright (c) Siemens 2016 - 2025
|
|
1017
|
+
* SPDX-License-Identifier: MIT
|
|
1018
|
+
*/
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* Injection token to optionally inject the {@link SiWidgetIdProvider} implementation
|
|
1022
|
+
* to provide custom widget id generation logic. The default implementation
|
|
1023
|
+
* is {@link SiWidgetDefaultIdProvider}.
|
|
1024
|
+
*
|
|
1025
|
+
* * @example
|
|
1026
|
+
* The following shows how to provide your own widget id provider.
|
|
1027
|
+
* ```
|
|
1028
|
+
* providers: [..., { provide: SI_WIDGET_ID_PROVIDER, useClass: CustomWidgetIdProvider }]
|
|
1029
|
+
* ```
|
|
1030
|
+
*
|
|
1031
|
+
*/
|
|
1032
|
+
declare const SI_WIDGET_ID_PROVIDER: InjectionToken<SiWidgetIdProvider>;
|
|
1033
|
+
/**
|
|
1034
|
+
* Abstract class to provide widget id generation logic.
|
|
1035
|
+
*/
|
|
1036
|
+
declare abstract class SiWidgetIdProvider {
|
|
1037
|
+
/**
|
|
1038
|
+
* Generates a transient widget id for newly added widgets in edit mode.
|
|
1039
|
+
*
|
|
1040
|
+
* @param widget - The widget instance config without any id.
|
|
1041
|
+
* @param dashboardId - The id of the dashboard where the widget is added.
|
|
1042
|
+
* @returns A transient widget id as a string.
|
|
1043
|
+
*/
|
|
1044
|
+
abstract generateWidgetId(widget: Omit<WidgetConfig, 'id'>, dashboardId?: string): string;
|
|
1045
|
+
}
|
|
1046
|
+
/**
|
|
1047
|
+
* The default implementation of the {@link SiWidgetIdProvider} which
|
|
1048
|
+
* generates random widget ids.
|
|
1049
|
+
*/
|
|
1050
|
+
declare class SiWidgetDefaultIdProvider extends SiWidgetIdProvider {
|
|
1051
|
+
/**
|
|
1052
|
+
* Generates a unique widget id.
|
|
1053
|
+
*
|
|
1054
|
+
* The method uses `crypto.randomUUID()` which generates a RFC4122 version 4 UUID
|
|
1055
|
+
* (a cryptographically secure random identifier with 122 bits of entropy).
|
|
1056
|
+
*
|
|
1057
|
+
* @param widget - The widget instance config without any id.
|
|
1058
|
+
* @param dashboardId - The id of the dashboard where the widget is added.
|
|
1059
|
+
* @returns A unique widget id string in the format `crypto.randomUUID()`.
|
|
1060
|
+
*/
|
|
1061
|
+
generateWidgetId(widget: Omit<WidgetConfig, 'id'>, dashboardId?: string): string;
|
|
1062
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiWidgetDefaultIdProvider, never>;
|
|
1063
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SiWidgetDefaultIdProvider>;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1017
1066
|
/**
|
|
1018
1067
|
* Copyright (c) Siemens 2016 - 2025
|
|
1019
1068
|
* SPDX-License-Identifier: MIT
|
|
@@ -1031,37 +1080,11 @@ declare const widgetFactoryRegistry: {
|
|
|
1031
1080
|
declare const setupWidgetInstance: (widgetComponentFactory: WidgetComponentFactory, host: ViewContainerRef, injector: Injector, envInjector: EnvironmentInjector) => Observable<ComponentRef<WidgetInstance>>;
|
|
1032
1081
|
declare const setupWidgetEditor: (widgetComponentFactory: WidgetComponentFactory, host: ViewContainerRef, injector: Injector, envInjector: EnvironmentInjector) => Observable<ComponentRef<WidgetInstanceEditor>>;
|
|
1033
1082
|
|
|
1034
|
-
/**
|
|
1035
|
-
* Copyright (c) Siemens 2016 - 2025
|
|
1036
|
-
* SPDX-License-Identifier: MIT
|
|
1037
|
-
*/
|
|
1038
|
-
|
|
1039
1083
|
declare class SiDashboardsNgModule {
|
|
1040
|
-
/**
|
|
1041
|
-
* @deprecated The module configuration `forRoot` is not needed any more. You can use the injection tokens
|
|
1042
|
-
* `SI_DASHBOARD_CONFIGURATION` and `SI_WIDGET_STORE` direct in your app configuration. We migrated to standalone
|
|
1043
|
-
* components already and will delete this module definition later.
|
|
1044
|
-
*/
|
|
1045
|
-
static forRoot({ config, dashboardApi }: {
|
|
1046
|
-
config?: Config;
|
|
1047
|
-
/**
|
|
1048
|
-
* Provide a custom widget storage.
|
|
1049
|
-
*
|
|
1050
|
-
* @deprecated Use the provider tokens in your app config instead.
|
|
1051
|
-
*
|
|
1052
|
-
* @example
|
|
1053
|
-
* ```typescript
|
|
1054
|
-
* const appConfig: ApplicationConfig = {
|
|
1055
|
-
* providers: [{provide: SI_WIDGET_STORE, useClass: YourWidgetStorage}]
|
|
1056
|
-
* }
|
|
1057
|
-
* ```
|
|
1058
|
-
*/
|
|
1059
|
-
dashboardApi?: Provider;
|
|
1060
|
-
}): ModuleWithProviders<SiDashboardsNgModule>;
|
|
1061
1084
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiDashboardsNgModule, never>;
|
|
1062
1085
|
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<SiDashboardsNgModule, never, [typeof SiFlexibleDashboardComponent, typeof SiGridComponent, typeof SiWidgetCatalogComponent, typeof SiWidgetInstanceEditorDialogComponent], [typeof SiFlexibleDashboardComponent, typeof SiGridComponent, typeof SiWidgetCatalogComponent, typeof SiWidgetInstanceEditorDialogComponent]>;
|
|
1063
1086
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<SiDashboardsNgModule>;
|
|
1064
1087
|
}
|
|
1065
1088
|
|
|
1066
|
-
export {
|
|
1089
|
+
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, setupWidgetEditor, setupWidgetInstance, widgetFactoryRegistry };
|
|
1067
1090
|
export type { Config, DashboardToolbarItem, DashboardToolbarItemAction, DashboardToolbarItemLink, DashboardToolbarItemRouterLink, FederatedModule, GridConfig, LoadRemoteModuleEsmOptions, LoadRemoteModuleManifestOptions, LoadRemoteModuleOptions, LoadRemoteModuleScriptOptions, ObjectFit, SetupComponentFn, WebComponent, Widget, WidgetComponentFactory, WidgetComponentTypeFactory, WidgetConfig, WidgetConfigEvent, WidgetConfigStatus, WidgetImage, WidgetInstance, WidgetInstanceEditor, WidgetInstanceEditorWizard, WidgetInstanceEditorWizardState, WidgetPositionConfig };
|
/package/{module-federation/index.d.ts → types/siemens-dashboards-ng-module-federation.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|