@dragonworks/ngx-dashboard 21.1.2 → 21.2.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,7 +1,10 @@
1
1
  {
2
2
  "name": "@dragonworks/ngx-dashboard",
3
- "version": "21.1.2",
3
+ "version": "21.2.2",
4
4
  "description": "Angular library for building drag-and-drop grid dashboards with resizable cells and customizable widgets",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
5
8
  "peerDependencies": {
6
9
  "@angular/common": "^21.0.0",
7
10
  "@angular/core": "^21.0.0",
@@ -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.2";
7
+ declare const NGX_DASHBOARD_VERSION = "21.2.2";
8
8
 
9
9
  /**
10
10
  * Branded type for cell identifiers to ensure type safety when working with grid coordinates.
@@ -248,6 +248,15 @@ interface SelectionFilterOptions {
248
248
  padding?: number;
249
249
  }
250
250
 
251
+ /**
252
+ * Keyboard modifier that gates drag-to-select.
253
+ *
254
+ * When set on `DashboardComponent.selectionModifier`, the selection overlay
255
+ * is mounted but transparent to pointer events until the modifier is held
256
+ * (or a drag started while the modifier was held is in progress).
257
+ */
258
+ type SelectionModifier = 'shift' | 'ctrl' | 'alt' | 'meta';
259
+
251
260
  /**
252
261
  * Interface for providing shared state across all instances of a widget type.
253
262
  *
@@ -444,6 +453,8 @@ declare class DashboardComponent implements OnChanges {
444
453
  editMode: _angular_core.InputSignal<boolean>;
445
454
  reservedSpace: _angular_core.InputSignal<ReservedSpace | undefined>;
446
455
  enableSelection: _angular_core.InputSignal<boolean>;
456
+ selectionModifier: _angular_core.InputSignal<SelectionModifier | null>;
457
+ dragThreshold: _angular_core.InputSignal<number>;
447
458
  selectionComplete: _angular_core.OutputEmitterRef<GridSelection>;
448
459
  cells: _angular_core.Signal<CellData[]>;
449
460
  private dashboardEditor;
@@ -460,8 +471,13 @@ declare class DashboardComponent implements OnChanges {
460
471
  loadDashboard(data: DashboardDataDto): void;
461
472
  getCurrentDashboardData(): DashboardDataDto;
462
473
  clearDashboard(): void;
474
+ /**
475
+ * Forwards to the active viewer. No-op in edit mode.
476
+ * See `DashboardViewerComponent.clearSelection()`.
477
+ */
478
+ clearSelection(): void;
463
479
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardComponent, never>;
464
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardComponent, "ngx-dashboard", never, { "dashboardData": { "alias": "dashboardData"; "required": true; "isSignal": true; }; "editMode": { "alias": "editMode"; "required": false; "isSignal": true; }; "reservedSpace": { "alias": "reservedSpace"; "required": false; "isSignal": true; }; "enableSelection": { "alias": "enableSelection"; "required": false; "isSignal": true; }; }, { "selectionComplete": "selectionComplete"; }, never, never, true, never>;
480
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardComponent, "ngx-dashboard", never, { "dashboardData": { "alias": "dashboardData"; "required": true; "isSignal": true; }; "editMode": { "alias": "editMode"; "required": false; "isSignal": true; }; "reservedSpace": { "alias": "reservedSpace"; "required": false; "isSignal": true; }; "enableSelection": { "alias": "enableSelection"; "required": false; "isSignal": true; }; "selectionModifier": { "alias": "selectionModifier"; "required": false; "isSignal": true; }; "dragThreshold": { "alias": "dragThreshold"; "required": false; "isSignal": true; }; }, { "selectionComplete": "selectionComplete"; }, never, never, true, never>;
465
481
  }
466
482
 
467
483
  interface WidgetDisplayItem extends WidgetMetadata {
@@ -672,4 +688,4 @@ declare class WidgetListContextMenuProvider extends EmptyCellContextProvider {
672
688
  }
673
689
 
674
690
  export { CELL_SETTINGS_DIALOG_PROVIDER, CellSettingsDialogProvider, DashboardComponent, DashboardService, DefaultCellSettingsDialogProvider, DefaultEmptyCellContextProvider, EMPTY_CELL_CONTEXT_PROVIDER, EmptyCellContextProvider, NGX_DASHBOARD_VERSION, WidgetListComponent, WidgetListContextMenuProvider, createDefaultDashboard, createEmptyDashboard };
675
- export type { CellDataDto, DashboardDataDto, EmptyCellContext, GridSelection, ReservedSpace, SelectionFilterOptions, Widget, WidgetMetadata, WidgetSharedStateProvider };
691
+ export type { CellDataDto, DashboardDataDto, EmptyCellContext, GridSelection, ReservedSpace, SelectionFilterOptions, SelectionModifier, Widget, WidgetMetadata, WidgetSharedStateProvider };