@dragonworks/ngx-dashboard 21.1.0 → 21.1.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@dragonworks/ngx-dashboard",
3
- "version": "21.1.0",
3
+ "version": "21.1.2",
4
4
  "description": "Angular library for building drag-and-drop grid dashboards with resizable cells and customizable widgets",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -42,5 +42,6 @@
42
42
  "types": "./types/dragonworks-ngx-dashboard.d.ts",
43
43
  "default": "./fesm2022/dragonworks-ngx-dashboard.mjs"
44
44
  }
45
- }
45
+ },
46
+ "type": "module"
46
47
  }
@@ -4,7 +4,7 @@ import { Type, ViewContainerRef, ComponentRef, OnChanges, SimpleChanges, Injecti
4
4
  import * as _ngrx_signals from '@ngrx/signals';
5
5
  import { SafeHtml } from '@angular/platform-browser';
6
6
 
7
- declare const NGX_DASHBOARD_VERSION = "21.1.0";
7
+ declare const NGX_DASHBOARD_VERSION = "21.1.2";
8
8
 
9
9
  /**
10
10
  * Branded type for cell identifiers to ensure type safety when working with grid coordinates.
@@ -82,7 +82,14 @@ interface CellDisplayData {
82
82
  interface DashboardDataDto {
83
83
  /** Version for future compatibility and migration support */
84
84
  version: string;
85
- /** Unique dashboard identifier managed by the client */
85
+ /**
86
+ * Unique dashboard identifier managed by the client.
87
+ * Set once when a dashboard is first mounted via `[dashboardData]`.
88
+ * On subsequent imperative `loadDashboard()` calls this field is treated
89
+ * as informational metadata (i.e. where the file came from) — the store's
90
+ * existing id is preserved so that bridge registration stays stable and
91
+ * Export→Import across dashboards works without rewriting the id.
92
+ */
86
93
  dashboardId: string;
87
94
  /** Grid dimensions */
88
95
  rows: number;