@ship-ui/core 0.15.19 → 0.15.23

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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _ship_ui_core from '@ship-ui/core';
2
2
  import * as _angular_core from '@angular/core';
3
- import { ElementRef, QueryList, ComponentRef, OutputRefSubscription, Type, AfterViewInit, OnDestroy, AfterContentInit, TemplateRef, WritableSignal, InjectionToken } from '@angular/core';
3
+ import { ElementRef, QueryList, ComponentRef, OutputRefSubscription, Type, OutputEmitterRef, AfterViewInit, OnDestroy, AfterContentInit, TemplateRef, WritableSignal, InjectionToken } from '@angular/core';
4
4
  import { NgModel } from '@angular/forms';
5
5
 
6
6
  type ShipAlertItem = {
@@ -118,7 +118,8 @@ declare class ShipDialogService {
118
118
  compClosedSub: OutputRefSubscription | null;
119
119
  open<T, K = any>(component: Type<T>, options?: ShipDialogServiceOptions<K>): {
120
120
  component: T;
121
- close: () => void;
121
+ close: <U>(arg?: U | undefined) => void;
122
+ closed: OutputEmitterRef<void>;
122
123
  };
123
124
  ngOnDestroy(): void;
124
125
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipDialogService, never>;
@@ -131,6 +132,7 @@ type Port = {
131
132
  };
132
133
  type BlueprintNode = {
133
134
  id: string;
135
+ name?: string;
134
136
  coordinates: Coordinates;
135
137
  inputs: Port[];
136
138
  outputs: Port[];
@@ -215,6 +217,7 @@ declare class ShipBlueprintComponent implements AfterViewInit, OnDestroy {
215
217
  closeMidpointDiv(): void;
216
218
  getDisplayCoordinates(node: BlueprintNode): string;
217
219
  removeConnection(): void;
220
+ getNewNodeCoordinates(panToCoordinates?: boolean): Coordinates;
218
221
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipBlueprintComponent, never>;
219
222
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipBlueprintComponent, "sh-blueprint", never, { "forceUnique": { "alias": "forceUnique"; "required": false; "isSignal": true; }; "autoLayout": { "alias": "autoLayout"; "required": false; "isSignal": true; }; "gridSize": { "alias": "gridSize"; "required": false; "isSignal": true; }; "snapToGrid": { "alias": "snapToGrid"; "required": false; "isSignal": true; }; "gridColor": { "alias": "gridColor"; "required": false; "isSignal": true; }; "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; }, { "nodes": "nodesChange"; }, never, ["*"], true, never>;
220
223
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ship-ui/core",
3
3
  "license": "MIT",
4
- "version": "0.15.19",
4
+ "version": "0.15.23",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=19",
7
7
  "@angular/core": ">=19"