@siemens/dashboards-ng 49.12.0 → 49.14.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.12.0",
4
+ "version": "49.14.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
22
  "@angular/core": "21 - 22",
23
- "@siemens/element-ng": "49.12.0",
24
- "@siemens/element-theme": "49.12.0",
23
+ "@siemens/element-ng": "49.14.0",
24
+ "@siemens/element-theme": "49.14.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,4 +1,5 @@
1
1
  {
2
+ "DASHBOARD.A11Y.WIDGETS_LIST": "Dashboard widgets",
2
3
  "DASHBOARD.ADD_WIDGET": "Add widget",
3
4
  "DASHBOARD.CANCEL": "Cancel",
4
5
  "DASHBOARD.EDIT": "Edit",
@@ -1,6 +1,7 @@
1
1
  import { Provider } from '@angular/core';
2
2
 
3
3
  interface SiTranslatableKeys {
4
+ 'DASHBOARD.A11Y.WIDGETS_LIST'?: string;
4
5
  'DASHBOARD.ADD_WIDGET'?: string;
5
6
  'DASHBOARD.CANCEL'?: string;
6
7
  'DASHBOARD.EDIT'?: string;
@@ -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';
@@ -171,7 +171,7 @@ interface WidgetConfig {
171
171
  */
172
172
  minWidth?: number;
173
173
  /**
174
- * maximum height allowed during resize/creation (default?: undefined = un-constrained)
174
+ * minimum height allowed during resize/creation (default?: undefined = un-constrained)
175
175
  */
176
176
  minHeight?: number;
177
177
  /**
@@ -413,34 +413,24 @@ 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 readonly a11yWidgetsListLabel: _siemens_element_translate_ng_translate.TranslatableString;
419
+ protected grid?: GridStack;
420
+ private readonly ngZone;
421
+ private readonly elementRef;
422
+ private readonly injector;
423
+ private readonly platformId;
424
+ private readonly isBrowser;
425
+ private readonly destroyRef;
427
426
  ngOnChanges(changes: SimpleChanges<this>): void;
428
427
  ngOnInit(): void;
429
- mount(items: WidgetConfig[]): void;
430
- unmount(items: WidgetConfig[]): void;
428
+ private startBatch;
431
429
  /**
432
430
  *
433
431
  * Returns the position of a specific widget in the grid.
434
432
  */
435
433
  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
434
  private hookEvents;
445
435
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiGridstackWrapperComponent, never>;
446
436
  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>;
@@ -1216,6 +1206,14 @@ declare class SiDashboardsNgModule {
1216
1206
  static ɵmod: _angular_core.ɵɵNgModuleDeclaration<SiDashboardsNgModule, never, [typeof SiFlexibleDashboardComponent, typeof SiGridComponent, typeof SiWidgetCatalogComponent, typeof SiWidgetInstanceEditorDialogComponent], [typeof SiFlexibleDashboardComponent, typeof SiGridComponent, typeof SiWidgetCatalogComponent, typeof SiWidgetInstanceEditorDialogComponent]>;
1217
1207
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<SiDashboardsNgModule>;
1218
1208
  }
1209
+ /**
1210
+ * @deprecated Use {@link SiDashboardsNgModule} instead. The `Simpl` prefix is deprecated and will be removed in v51.
1211
+ */
1212
+ declare const SimplDashboardsNgModule: typeof SiDashboardsNgModule;
1213
+ /**
1214
+ * @deprecated Use {@link SiDashboardsNgModule} instead. The `Simpl` prefix is deprecated and will be removed in v51.
1215
+ */
1216
+ type SimplDashboardsNgModule = SiDashboardsNgModule;
1219
1217
 
1220
- 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, SiDashboardsNgModule as SimplDashboardsNgModule, createWidgetConfig, handleFederatedModuleLoad, provideDashboardToolbarItems, setupWidgetEditor, setupWidgetInstance, widgetFactoryRegistry };
1218
+ 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 };
1221
1219
  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 };