@siemens/dashboards-ng 49.5.0 → 49.7.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.5.0",
4
+ "version": "49.7.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.5.0",
24
- "@siemens/element-theme": "49.5.0",
23
+ "@siemens/element-ng": "49.7.0",
24
+ "@siemens/element-theme": "49.7.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",
@@ -420,7 +420,11 @@ declare class SiGridstackWrapperComponent implements OnInit, OnChanges {
420
420
  ngOnInit(): void;
421
421
  mount(items: WidgetConfig[]): void;
422
422
  unmount(items: WidgetConfig[]): void;
423
- getLayout(): WidgetPositionConfig[];
423
+ /**
424
+ *
425
+ * Returns the position of a specific widget in the grid.
426
+ */
427
+ getWidgetLayout(widgetId: string): WidgetPositionConfig | undefined;
424
428
  private updateLayout;
425
429
  private addToView;
426
430
  private removeFromView;
@@ -525,14 +529,6 @@ declare class SiGridComponent implements OnInit, OnChanges, OnDestroy {
525
529
  * @defaultValue false
526
530
  */
527
531
  readonly editable: _angular_core.ModelSignal<boolean>;
528
- /**
529
- * This is the internal owner of the current editable state and is used to track if
530
- * editable or not. Not editable can be changed by either calling the `edit()` api
531
- * method or by setting the `editable` input. When setting the input, the `ngOnChanges(...)`
532
- * hook is used to call the `edit()` method. Similar, to get from editable to not editable,
533
- * `cancel()` or `save()` is used and can be triggered from `ngOnChanges(...)`.
534
- */
535
- private editableInternal;
536
532
  /**
537
533
  * An optional, but recommended dashboard id that is used in persistence and passed
538
534
  * to the widget store for saving and loading data.
@@ -671,6 +667,8 @@ declare class SiGridComponent implements OnInit, OnChanges, OnDestroy {
671
667
  protected handleGridEvent(event: GridWrapperEvent): void;
672
668
  private loadAndSubscribeWidgets;
673
669
  private updateWidgetPositions;
670
+ private resetEditState;
671
+ private restoreSavedState;
674
672
  private setModified;
675
673
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiGridComponent, never>;
676
674
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiGridComponent, "si-grid", never, { "gridConfig": { "alias": "gridConfig"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "widgetCatalog": { "alias": "widgetCatalog"; "required": false; "isSignal": true; }; "emitWidgetInstanceEditEvents": { "alias": "emitWidgetInstanceEditEvents"; "required": false; "isSignal": true; }; "hideProgressIndicator": { "alias": "hideProgressIndicator"; "required": false; "isSignal": true; }; "widgetInstanceEditorDialogComponent": { "alias": "widgetInstanceEditorDialogComponent"; "required": false; "isSignal": true; }; }, { "editable": "editableChange"; "isModified": "isModified"; "widgetInstanceEdit": "widgetInstanceEdit"; }, never, ["[empty-state]"], true, never>;
@@ -820,7 +818,6 @@ declare class SiWidgetCatalogComponent implements OnInit, OnDestroy {
820
818
  private widgetConfigModified;
821
819
  private widgetInstanceEditor?;
822
820
  private readonly editorWizardState;
823
- private widgetInstanceEditorRef?;
824
821
  private subscriptions;
825
822
  private dialogService;
826
823
  private injector;