@siemens/dashboards-ng 49.11.0 → 49.13.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": "49.11.0",
4
+ "version": "49.13.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "bugs": "https://github.com/siemens/element/issues/new",
19
19
  "type": "module",
20
20
  "peerDependencies": {
21
- "@angular/common": "21",
22
- "@angular/core": "21",
23
- "@siemens/element-ng": "49.11.0",
24
- "@siemens/element-theme": "49.11.0",
21
+ "@angular/common": "21 - 22",
22
+ "@angular/core": "21 - 22",
23
+ "@siemens/element-ng": "49.13.0",
24
+ "@siemens/element-theme": "49.13.0",
25
25
  "gridstack": "^12.3.3",
26
26
  "@angular-architects/module-federation": "^20.0.0 || ^21.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 { Type, InputSignal, OutputEmitterRef, EventEmitter, TemplateRef, OnInit, OnChanges, ViewContainerRef, SimpleChanges, OnDestroy, OutputRefSubscription, Injector, EnvironmentInjector, ComponentRef, InjectionToken, Provider } from '@angular/core';
4
+ import { Type, InputSignal, OutputEmitterRef, EventEmitter, TemplateRef, OnInit, OnChanges, SimpleChanges, OnDestroy, OutputRefSubscription, ViewContainerRef, Injector, EnvironmentInjector, ComponentRef, InjectionToken, Provider } 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, Subscription, Observable, BehaviorSubject } from 'rxjs';
@@ -413,34 +413,23 @@ declare class SiGridstackWrapperComponent implements OnInit, OnChanges {
413
413
  * Emits the id of a widget instance that shall be edited.
414
414
  */
415
415
  readonly widgetInstanceEdit: _angular_core.OutputEmitterRef<WidgetConfig>;
416
- readonly gridstackContainer: _angular_core.Signal<ViewContainerRef | undefined>;
417
- private grid;
418
- private markedForRender;
419
- private readonly gridItems;
420
- private readonly gridItemsMap;
421
- private readonly itemIdAttr;
422
- private ngZone;
423
- private elementRef;
424
- private iterableDiffers;
425
- private widgetConfigsDiffer?;
426
- private readonly widgetConfigSignals;
416
+ private readonly widgetHosts;
417
+ private readonly widgetHostsMap;
418
+ protected grid?: GridStack;
419
+ private readonly ngZone;
420
+ private readonly elementRef;
421
+ private readonly injector;
422
+ private readonly platformId;
423
+ private readonly isBrowser;
424
+ private readonly destroyRef;
427
425
  ngOnChanges(changes: SimpleChanges<this>): void;
428
426
  ngOnInit(): void;
429
- mount(items: WidgetConfig[]): void;
430
- unmount(items: WidgetConfig[]): void;
427
+ private startBatch;
431
428
  /**
432
429
  *
433
430
  * Returns the position of a specific widget in the grid.
434
431
  */
435
432
  getWidgetLayout(widgetId: string): WidgetPositionConfig | undefined;
436
- private updateLayout;
437
- private addToView;
438
- private removeFromView;
439
- /**
440
- * Uses IterableDiffer to detect added, removed, and identity-changed items.
441
- * Only widgets whose object reference changed get their signal updated.
442
- */
443
- private diffWidgetConfigs;
444
433
  private hookEvents;
445
434
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiGridstackWrapperComponent, never>;
446
435
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiGridstackWrapperComponent, "si-gridstack-wrapper", never, { "widgetConfigs": { "alias": "widgetConfigs"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "gridConfig": { "alias": "gridConfig"; "required": false; "isSignal": true; }; "widgetCatalogMap": { "alias": "widgetCatalogMap"; "required": false; "isSignal": true; }; }, { "gridEvent": "gridEvent"; "widgetInstanceRemove": "widgetInstanceRemove"; "widgetInstanceEdit": "widgetInstanceEdit"; }, never, never, true, never>;
@@ -988,6 +977,37 @@ declare class SiFlexibleDashboardComponent implements OnInit, OnChanges, OnDestr
988
977
  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>;
989
978
  }
990
979
 
980
+ /**
981
+ * A presentational (dumb) component that renders a single widget instance from a
982
+ * {@link WidgetConfig} using the provided {@link Widget} definition. It delegates
983
+ * the actual rendering to the {@link SiWidgetHostComponent}.
984
+ *
985
+ * **Intended Usage**
986
+ *
987
+ * This component renders an individual widget outside of a dashboard or grid,
988
+ * without requiring manual host wiring. It is a self-contained widget cell that
989
+ * can be placed anywhere a single widget needs to be shown, for example in kiosk
990
+ * mode or within a custom layout such as a carousel.
991
+ *
992
+ * **Example**
993
+ *
994
+ * ```html
995
+ * <!-- Render a single widget instance -->
996
+ * <si-widget-renderer [widgetConfig]="widgetConfig" [widget]="widget" />
997
+ * ```
998
+ */
999
+ declare class SiWidgetRendererComponent {
1000
+ /** The configuration of the widget instance to render. */
1001
+ readonly widgetConfig: _angular_core.InputSignal<WidgetConfig>;
1002
+ /**
1003
+ * The {@link Widget} definition used to render the given {@link widgetConfig}.
1004
+ * It must match the config's `widgetId`.
1005
+ */
1006
+ readonly widget: _angular_core.InputSignal<Widget>;
1007
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiWidgetRendererComponent, never>;
1008
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiWidgetRendererComponent, "si-widget-renderer", never, { "widgetConfig": { "alias": "widgetConfig"; "required": true; "isSignal": true; }; "widget": { "alias": "widget"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
1009
+ }
1010
+
991
1011
  /**
992
1012
  * Copyright (c) Siemens 2016 - 2026
993
1013
  * SPDX-License-Identifier: MIT
@@ -1185,6 +1205,14 @@ declare class SiDashboardsNgModule {
1185
1205
  static ɵmod: _angular_core.ɵɵNgModuleDeclaration<SiDashboardsNgModule, never, [typeof SiFlexibleDashboardComponent, typeof SiGridComponent, typeof SiWidgetCatalogComponent, typeof SiWidgetInstanceEditorDialogComponent], [typeof SiFlexibleDashboardComponent, typeof SiGridComponent, typeof SiWidgetCatalogComponent, typeof SiWidgetInstanceEditorDialogComponent]>;
1186
1206
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<SiDashboardsNgModule>;
1187
1207
  }
1208
+ /**
1209
+ * @deprecated Use {@link SiDashboardsNgModule} instead. The `Simpl` prefix is deprecated and will be removed in v51.
1210
+ */
1211
+ declare const SimplDashboardsNgModule: typeof SiDashboardsNgModule;
1212
+ /**
1213
+ * @deprecated Use {@link SiDashboardsNgModule} instead. The `Simpl` prefix is deprecated and will be removed in v51.
1214
+ */
1215
+ type SimplDashboardsNgModule = SiDashboardsNgModule;
1188
1216
 
1189
- 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 };
1217
+ 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, SiWidgetRendererComponent, SiWidgetStorage, SimplDashboardsNgModule, createWidgetConfig, handleFederatedModuleLoad, provideDashboardToolbarItems, setupWidgetEditor, setupWidgetInstance, widgetFactoryRegistry };
1190
1218
  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 };