@vectoriox/iox-builder 1.4.18 → 1.4.20

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": "@vectoriox/iox-builder",
3
- "version": "1.4.18",
3
+ "version": "1.4.20",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -156,6 +156,10 @@ interface ComponentNode {
156
156
  * property map that is compiled to `.iox-node-{id}:hover { … }` etc.
157
157
  */
158
158
  stateStyles?: Partial<Record<ElementState, Record<string, any>>>;
159
+ /** User-defined display name for this node. Used in the layer tree and as an
160
+ * interaction target identifier. Only nodes with a label appear in the
161
+ * interaction target picker. */
162
+ label?: string;
159
163
  }
160
164
  /**
161
165
  * Build a full StyleTraitGroup[] schema populated with values from a flat
@@ -1298,6 +1302,8 @@ declare class LayerTreeComponent implements OnInit, OnDestroy {
1298
1302
  flatGlobalTree: TreeNode[];
1299
1303
  selectedNodeId: string | null;
1300
1304
  hoveredNodeId: string | null;
1305
+ editingNodeId: string | null;
1306
+ editingValue: string;
1301
1307
  /** Cache: component type → icon class */
1302
1308
  private iconMap;
1303
1309
  private selectSub?;
@@ -1316,6 +1322,9 @@ declare class LayerTreeComponent implements OnInit, OnDestroy {
1316
1322
  toggleExpand(treeNode: TreeNode, event: MouseEvent): void;
1317
1323
  onDeleteNode(treeNode: TreeNode, event: MouseEvent): void;
1318
1324
  onDuplicateNode(treeNode: TreeNode, event: MouseEvent): void;
1325
+ startRename(treeNode: TreeNode, event: MouseEvent): void;
1326
+ saveRename(treeNode: TreeNode): void;
1327
+ cancelRename(): void;
1319
1328
  /**
1320
1329
  * CDK drop handler for tree reorder.
1321
1330
  * Works on the flat tree indices — maps back to parent arrays to do the move.
@@ -1344,10 +1353,16 @@ declare class InteractionsPanelComponent implements OnInit, OnDestroy {
1344
1353
  }[];
1345
1354
  easingOptions: string[];
1346
1355
  interactions: IoxInteraction[];
1356
+ /** All canvas nodes available as animation targets. */
1357
+ nodeOptions: {
1358
+ label: string;
1359
+ value: string;
1360
+ }[];
1347
1361
  /** State for the "add interaction" form */
1348
1362
  isAdding: boolean;
1349
1363
  newTrigger: InteractionTrigger;
1350
1364
  newActionType: InteractionActionType;
1365
+ newTarget: string;
1351
1366
  newDuration: number;
1352
1367
  newDelay: number;
1353
1368
  newEasing: string;
@@ -1357,6 +1372,8 @@ declare class InteractionsPanelComponent implements OnInit, OnDestroy {
1357
1372
  private selectSub?;
1358
1373
  constructor(overlayService: OverlayService);
1359
1374
  ngOnInit(): void;
1375
+ refreshNodeOptions(): void;
1376
+ getTargetLabel(value: string): string;
1360
1377
  ngOnDestroy(): void;
1361
1378
  getTriggerLabel(trigger: InteractionTrigger): string;
1362
1379
  getTriggerIcon(trigger: InteractionTrigger): string;