@progress/kendo-angular-diagrams 21.0.1-develop.2 → 21.0.1-develop.4

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.
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
6
- import { DiagramEditable, DiagramLayout, Pannable, Selectable, Shape, DiagramDragEvent, DiagramDomEvent, DiagramZoomStartEvent, DiagramZoomEndEvent, DiagramSelectEvent, DiagramPanEvent, DiagramItemBoundsChangeEvent, DiagramChangeEvent, Connection, Connector, Diagram, Point, Rect, DiagramState, BringIntoViewOptions, SelectionOptions, Direction } from '@progress/kendo-diagram-common';
6
+ import { type DiagramEditable, type DiagramLayout, type Pannable, type Selectable, type Shape, type DiagramDragEvent, type DiagramDomEvent, type DiagramZoomStartEvent, type DiagramZoomEndEvent, type DiagramSelectEvent, type DiagramPanEvent, type DiagramItemBoundsChangeEvent, type DiagramChangeEvent, type Connection, type Connector, Diagram, type Point, type Rect, type DiagramState, type BringIntoViewOptions, type SelectionOptions, type Direction } from '@progress/kendo-diagram-common';
7
7
  import { PopupService } from '@progress/kendo-angular-popup';
8
8
  import { Group } from '@progress/kendo-drawing';
9
9
  import { ShapeModelFields, ConnectionModelFields, ShapeDefaults, ConnectionDefaults, ShapeOptions, ConnectionOptions } from './models';
@@ -121,6 +121,14 @@ export declare class DiagramComponent implements AfterViewInit, OnChanges, OnDes
121
121
  * @default 0.1
122
122
  */
123
123
  zoomRate?: number;
124
+ /**
125
+ * Returns the actual shape instances created by the `Diagram`.
126
+ */
127
+ get shapeInstances(): Shape[];
128
+ /**
129
+ * Returns the actual connection instances created by the `Diagram`.
130
+ */
131
+ get connectionInstances(): Connection[];
124
132
  /**
125
133
  * Fires when a shape or connection is created or removed.
126
134
  */
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, ContentChild, ElementRef, EventEmitter, HostBinding, Input, NgZone, Output, Renderer2, TemplateRef, ViewChild, ViewContainerRef, } from '@angular/core';
6
- import { Shape, Connection, Diagram, convertToDiagramModel, placeTooltip } from '@progress/kendo-diagram-common';
6
+ import { Diagram, convertToDiagramModel, placeTooltip } from '@progress/kendo-diagram-common';
7
7
  import { validatePackage } from '@progress/kendo-licensing';
8
8
  import { packageMetadata } from './package-metadata';
9
9
  import { hasObservers, shouldShowValidationUI, getLicenseMessage, WatermarkOverlayComponent, isDocumentAvailable } from '@progress/kendo-angular-common';
@@ -126,6 +126,18 @@ export class DiagramComponent {
126
126
  * @default 0.1
127
127
  */
128
128
  zoomRate = 0.1;
129
+ /**
130
+ * Returns the actual shape instances created by the `Diagram`.
131
+ */
132
+ get shapeInstances() {
133
+ return this.diagramWidget?.shapes;
134
+ }
135
+ /**
136
+ * Returns the actual connection instances created by the `Diagram`.
137
+ */
138
+ get connectionInstances() {
139
+ return this.diagramWidget?.connections;
140
+ }
129
141
  /**
130
142
  * Fires when a shape or connection is created or removed.
131
143
  */
@@ -616,8 +628,8 @@ export class DiagramComponent {
616
628
  handleTooltipShow(event) {
617
629
  this.hideTooltip();
618
630
  const dataItem = event.item.dataItem;
619
- const isShape = event.item instanceof Shape;
620
- const isConnection = event.item instanceof Connection;
631
+ const isShape = event.item.name === "Shape";
632
+ const isConnection = event.item.name === "Connection";
621
633
  this.setCustomTemplate(isShape, isConnection);
622
634
  const defaultsEnabled = isShape
623
635
  ? this.options.shapeDefaults.tooltip?.visible
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1762955423,
14
- version: '21.0.1-develop.2',
13
+ publishDate: 1762967502,
14
+ version: '21.0.1-develop.4',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
16
16
  };
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Shape, Connection, placeTooltip, events, convertToDiagramModel, loadTheme, Diagram } from '@progress/kendo-diagram-common';
5
+ import { placeTooltip, events, convertToDiagramModel, loadTheme, Diagram } from '@progress/kendo-diagram-common';
6
6
  export { ArrowMarker, Circle, CircleMarker, Collate, Connection, Connector, DataInputOutput, DataStorage, Database, Decision, Delay, DirectAccessStorage, Display, Document, Extract, FlowchartShapeType, Group, Image, InternalStorage, Layout, Line, LogicalOr, ManualInputOutput, ManualOperation, MarkerType, Merge, MultiLineTextBlock, MultipleDocuments, OffPageConnector, OnPageConnector, Path, Point, Polyline, PredefinedProcess, Preparation, Process, Rect, Rectangle, Shape, Sort, SummingJunction, Terminator, TextBlock, convertToDiagramModel } from '@progress/kendo-diagram-common';
7
7
  import * as i0 from '@angular/core';
8
8
  import { Directive, EventEmitter, Component, HostBinding, Input, Output, ViewChild, ContentChild, NgModule } from '@angular/core';
@@ -20,8 +20,8 @@ const packageMetadata = {
20
20
  productName: 'Kendo UI for Angular',
21
21
  productCode: 'KENDOUIANGULAR',
22
22
  productCodes: ['KENDOUIANGULAR'],
23
- publishDate: 1762955423,
24
- version: '21.0.1-develop.2',
23
+ publishDate: 1762967502,
24
+ version: '21.0.1-develop.4',
25
25
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
26
26
  };
27
27
 
@@ -246,6 +246,18 @@ class DiagramComponent {
246
246
  * @default 0.1
247
247
  */
248
248
  zoomRate = 0.1;
249
+ /**
250
+ * Returns the actual shape instances created by the `Diagram`.
251
+ */
252
+ get shapeInstances() {
253
+ return this.diagramWidget?.shapes;
254
+ }
255
+ /**
256
+ * Returns the actual connection instances created by the `Diagram`.
257
+ */
258
+ get connectionInstances() {
259
+ return this.diagramWidget?.connections;
260
+ }
249
261
  /**
250
262
  * Fires when a shape or connection is created or removed.
251
263
  */
@@ -736,8 +748,8 @@ class DiagramComponent {
736
748
  handleTooltipShow(event) {
737
749
  this.hideTooltip();
738
750
  const dataItem = event.item.dataItem;
739
- const isShape = event.item instanceof Shape;
740
- const isConnection = event.item instanceof Connection;
751
+ const isShape = event.item.name === "Shape";
752
+ const isConnection = event.item.name === "Connection";
741
753
  this.setCustomTemplate(isShape, isConnection);
742
754
  const defaultsEnabled = isShape
743
755
  ? this.options.shapeDefaults.tooltip?.visible
package/models.d.ts CHANGED
@@ -2,11 +2,7 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { ShapeDefaults as ShapeDefaultsCommon } from '@progress/kendo-diagram-common';
6
- import { ConnectionDefaults as ConnectionDefaultsCommon } from '@progress/kendo-diagram-common';
7
- import { ConnectionOptions as ConnectionOptionsCommon } from '@progress/kendo-diagram-common';
8
- import { ShapeOptions as ShapeOptionsCommon } from '@progress/kendo-diagram-common';
9
- import { DiagramOptions as DiagramOptionsCommon } from '@progress/kendo-diagram-common';
5
+ import { type ShapeDefaults as ShapeDefaultsCommon, type ConnectionDefaults as ConnectionDefaultsCommon, type ConnectionOptions as ConnectionOptionsCommon, type ShapeOptions as ShapeOptionsCommon, type DiagramOptions as DiagramOptionsCommon } from '@progress/kendo-diagram-common';
10
6
  /**
11
7
  * Defines the tooltip configuration for shapes and connections.
12
8
  * Controls the visibility, content, and styling of tooltips.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-diagrams",
3
- "version": "21.0.1-develop.2",
3
+ "version": "21.0.1-develop.4",
4
4
  "description": "Kendo UI Angular diagrams component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -19,7 +19,7 @@
19
19
  "package": {
20
20
  "productName": "Kendo UI for Angular",
21
21
  "productCode": "KENDOUIANGULAR",
22
- "publishDate": 1762955423,
22
+ "publishDate": 1762967502,
23
23
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
24
24
  }
25
25
  },
@@ -29,18 +29,18 @@
29
29
  "@angular/core": "18 - 20",
30
30
  "@angular/platform-browser": "18 - 20",
31
31
  "@progress/kendo-licensing": "^1.7.0",
32
- "@progress/kendo-angular-common": "21.0.1-develop.2",
33
- "@progress/kendo-angular-buttons": "21.0.1-develop.2",
34
- "@progress/kendo-angular-dialog": "21.0.1-develop.2",
35
- "@progress/kendo-angular-dropdowns": "21.0.1-develop.2",
36
- "@progress/kendo-angular-icons": "21.0.1-develop.2",
37
- "@progress/kendo-angular-inputs": "21.0.1-develop.2",
38
- "@progress/kendo-angular-popup": "21.0.1-develop.2",
32
+ "@progress/kendo-angular-common": "21.0.1-develop.4",
33
+ "@progress/kendo-angular-buttons": "21.0.1-develop.4",
34
+ "@progress/kendo-angular-dialog": "21.0.1-develop.4",
35
+ "@progress/kendo-angular-dropdowns": "21.0.1-develop.4",
36
+ "@progress/kendo-angular-icons": "21.0.1-develop.4",
37
+ "@progress/kendo-angular-inputs": "21.0.1-develop.4",
38
+ "@progress/kendo-angular-popup": "21.0.1-develop.4",
39
39
  "rxjs": "^6.5.3 || ^7.0.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "tslib": "^2.3.1",
43
- "@progress/kendo-angular-schematics": "21.0.1-develop.2",
43
+ "@progress/kendo-angular-schematics": "21.0.1-develop.4",
44
44
  "@progress/kendo-diagram-common": "1.5.1"
45
45
  },
46
46
  "schematics": "./schematics/collection.json",
package/utils.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { EditableDefaults, ShapeDefaultsEditable } from "@progress/kendo-diagram-common";
5
+ import { type EditableDefaults, type ShapeDefaultsEditable } from "@progress/kendo-diagram-common";
6
6
  import { ConnectionDefaults, ShapeDefaults } from "./models";
7
7
  /** @hidden */
8
8
  export declare const DEFAULT_EDITABLE_SHAPE: ShapeDefaultsEditable;