@siemens/dashboards-ng 51.0.1 → 51.2.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@siemens/dashboards-ng",
3
3
  "description": "Element Dashboards library.",
4
- "version": "51.0.1",
4
+ "version": "51.2.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -19,15 +19,15 @@
19
19
  "bugs": "https://github.com/siemens/element/issues/new",
20
20
  "type": "module",
21
21
  "peerDependencies": {
22
- "@angular-architects/module-federation": "^21.0.0",
22
+ "@angular-architects/module-federation": "21 - 22",
23
23
  "@angular-architects/native-federation": "^22.0.5",
24
24
  "@angular/common": "22",
25
25
  "@angular/core": "22",
26
26
  "@module-federation/enhanced": "^2.0.0",
27
27
  "@module-federation/runtime": "^2.0.0",
28
- "@siemens/element-ng": "51.0.1",
29
- "@siemens/element-theme": "51.0.1",
30
- "gridstack": "^13.0.0"
28
+ "@siemens/element-ng": "51.2.0",
29
+ "@siemens/element-theme": "51.2.0",
30
+ "gridstack": "^13.0.0 || ^14.0.0"
31
31
  },
32
32
  "peerDependenciesMeta": {
33
33
  "@angular-architects/module-federation": {
@@ -38,6 +38,9 @@
38
38
  },
39
39
  "@module-federation/enhanced": {
40
40
  "optional": true
41
+ },
42
+ "@module-federation/runtime": {
43
+ "optional": true
41
44
  }
42
45
  },
43
46
  "module": "fesm2022/siemens-dashboards-ng.mjs",
@@ -50,7 +50,7 @@ interface Widget {
50
50
  /** The factory to instantiate a widget instance component that is added to the dashboard. */
51
51
  componentFactory: WidgetComponentFactory;
52
52
  /** Optional default values that can be set to widget instances. */
53
- defaults?: Pick<WidgetConfig, 'width' | 'height' | 'minWidth' | 'minHeight' | 'heading' | 'expandable' | 'immutable' | 'image' | 'accentLine'>;
53
+ defaults?: Pick<WidgetConfig, 'width' | 'height' | 'minWidth' | 'minHeight' | 'heading' | 'headingIcon' | 'expandable' | 'immutable' | 'image' | 'accentLine'>;
54
54
  /** Optional default payload object that is copied into every widget instance {@link WidgetConfig}. */
55
55
  payload?: any;
56
56
  }
@@ -178,6 +178,8 @@ interface WidgetConfig {
178
178
  * grid item header text.
179
179
  */
180
180
  heading?: TranslatableString;
181
+ /** Icon name or a single-entry map of camelCase icon name to SVG data URI. */
182
+ headingIcon?: string | Record<string, string>;
181
183
  /** Defines whether the widget instance component can be expanded and enlarged over the dashboard. */
182
184
  expandable?: boolean;
183
185
  /** A widget specific payload object. Placeholder to pass in additional configuration. */