@progress/kendo-angular-diagrams 21.0.1-develop.1 → 21.0.1-develop.3
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/diagram.component.d.ts +10 -2
- package/esm2022/diagram.component.mjs +22 -6
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-diagrams.mjs +24 -8
- package/models.d.ts +2 -0
- package/package.json +10 -10
- package/utils.d.ts +2 -1
package/diagram.component.d.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
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 {
|
|
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';
|
|
7
7
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
8
8
|
import { Group } from '@progress/kendo-drawing';
|
|
9
|
-
import { ShapeModelFields, ConnectionModelFields, ShapeDefaults, ConnectionDefaults } from './
|
|
9
|
+
import { ShapeModelFields, ConnectionModelFields, ShapeDefaults, ConnectionDefaults, ShapeOptions, ConnectionOptions } from './models';
|
|
10
10
|
import { ShapeTooltipTemplateDirective } from './shape-tooltip-template.directive';
|
|
11
11
|
import { ConnectionTooltipTemplateDirective } from './connection-tooltip-template.directive';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
@@ -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
|
*/
|
|
@@ -8,7 +8,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';
|
|
10
10
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
11
|
-
import {
|
|
11
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
12
12
|
import { events, loadTheme } from '@progress/kendo-diagram-common';
|
|
13
13
|
import { CONNECTION_DEFAULTS, SHAPE_DEFAULTS } from './utils';
|
|
14
14
|
import { ShapeTooltipTemplateDirective } from './shape-tooltip-template.directive';
|
|
@@ -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
|
*/
|
|
@@ -823,8 +835,10 @@ export class DiagramComponent {
|
|
|
823
835
|
this.diagramWidget?.setOptions(this.options);
|
|
824
836
|
}
|
|
825
837
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DiagramComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.PopupService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
826
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
827
|
-
|
|
838
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DiagramComponent, isStandalone: true, selector: "kendo-diagram", inputs: { connectionDefaults: "connectionDefaults", connections: "connections", connectionModelFields: "connectionModelFields", editable: "editable", layout: "layout", pannable: "pannable", selectable: "selectable", shapeDefaults: "shapeDefaults", shapes: "shapes", shapeModelFields: "shapeModelFields", zoom: "zoom", zoomMax: "zoomMax", zoomMin: "zoomMin", zoomRate: "zoomRate" }, outputs: { change: "change", diagramClick: "diagramClick", drag: "drag", dragEnd: "dragEnd", dragStart: "dragStart", shapeBoundsChange: "shapeBoundsChange", mouseEnter: "mouseEnter", mouseLeave: "mouseLeave", onPan: "pan", onSelect: "select", zoomEnd: "zoomEnd", zoomStart: "zoomStart", tooltipShow: "tooltipShow", tooltipHide: "tooltipHide" }, host: { properties: { "class.k-diagram": "this.diagramClass" } }, providers: [PopupService], queries: [{ propertyName: "shapeTooltipTemplate", first: true, predicate: ShapeTooltipTemplateDirective, descendants: true }, { propertyName: "connectionTooltipTemplate", first: true, predicate: ConnectionTooltipTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "defaultTooltipTemplate", first: true, predicate: ["defaultTemplate"], descendants: true }, { propertyName: "customTooltipTemplate", first: true, predicate: ["customTooltipTemplate"], descendants: true }], exportAs: ["kendoDiagram"], usesOnChanges: true, ngImport: i0, template: `
|
|
839
|
+
@if (showLicenseWatermark) {
|
|
840
|
+
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
841
|
+
}
|
|
828
842
|
|
|
829
843
|
<ng-template #customTooltipTemplate>
|
|
830
844
|
<ng-container [ngTemplateOutlet]="customTemplate" [ngTemplateOutletContext]="{ $implicit: dataItem }"></ng-container>
|
|
@@ -833,7 +847,7 @@ export class DiagramComponent {
|
|
|
833
847
|
<ng-template #defaultTemplate>
|
|
834
848
|
{{dataItem?.tooltipText}}
|
|
835
849
|
</ng-template>
|
|
836
|
-
`, isInline: true, dependencies: [{ kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }, { kind: "directive", type:
|
|
850
|
+
`, isInline: true, dependencies: [{ kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
837
851
|
}
|
|
838
852
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DiagramComponent, decorators: [{
|
|
839
853
|
type: Component,
|
|
@@ -842,7 +856,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
842
856
|
exportAs: 'kendoDiagram',
|
|
843
857
|
selector: 'kendo-diagram',
|
|
844
858
|
template: `
|
|
845
|
-
|
|
859
|
+
@if (showLicenseWatermark) {
|
|
860
|
+
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
861
|
+
}
|
|
846
862
|
|
|
847
863
|
<ng-template #customTooltipTemplate>
|
|
848
864
|
<ng-container [ngTemplateOutlet]="customTemplate" [ngTemplateOutletContext]="{ $implicit: dataItem }"></ng-container>
|
|
@@ -852,7 +868,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
852
868
|
{{dataItem?.tooltipText}}
|
|
853
869
|
</ng-template>
|
|
854
870
|
`,
|
|
855
|
-
imports: [WatermarkOverlayComponent,
|
|
871
|
+
imports: [WatermarkOverlayComponent, NgTemplateOutlet],
|
|
856
872
|
providers: [PopupService]
|
|
857
873
|
}]
|
|
858
874
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i1.PopupService }, { type: i0.ViewContainerRef }], propDecorators: { diagramClass: [{
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '21.0.1-develop.
|
|
13
|
+
publishDate: 1762962828,
|
|
14
|
+
version: '21.0.1-develop.3',
|
|
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
|
};
|
|
@@ -10,7 +10,7 @@ import { validatePackage } from '@progress/kendo-licensing';
|
|
|
10
10
|
import { getLicenseMessage, shouldShowValidationUI, hasObservers, isDocumentAvailable, WatermarkOverlayComponent } from '@progress/kendo-angular-common';
|
|
11
11
|
import * as i1 from '@progress/kendo-angular-popup';
|
|
12
12
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
13
|
-
import {
|
|
13
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @hidden
|
|
@@ -20,8 +20,8 @@ const packageMetadata = {
|
|
|
20
20
|
productName: 'Kendo UI for Angular',
|
|
21
21
|
productCode: 'KENDOUIANGULAR',
|
|
22
22
|
productCodes: ['KENDOUIANGULAR'],
|
|
23
|
-
publishDate:
|
|
24
|
-
version: '21.0.1-develop.
|
|
23
|
+
publishDate: 1762962828,
|
|
24
|
+
version: '21.0.1-develop.3',
|
|
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
|
*/
|
|
@@ -943,8 +955,10 @@ class DiagramComponent {
|
|
|
943
955
|
this.diagramWidget?.setOptions(this.options);
|
|
944
956
|
}
|
|
945
957
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DiagramComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.PopupService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
946
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
947
|
-
|
|
958
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DiagramComponent, isStandalone: true, selector: "kendo-diagram", inputs: { connectionDefaults: "connectionDefaults", connections: "connections", connectionModelFields: "connectionModelFields", editable: "editable", layout: "layout", pannable: "pannable", selectable: "selectable", shapeDefaults: "shapeDefaults", shapes: "shapes", shapeModelFields: "shapeModelFields", zoom: "zoom", zoomMax: "zoomMax", zoomMin: "zoomMin", zoomRate: "zoomRate" }, outputs: { change: "change", diagramClick: "diagramClick", drag: "drag", dragEnd: "dragEnd", dragStart: "dragStart", shapeBoundsChange: "shapeBoundsChange", mouseEnter: "mouseEnter", mouseLeave: "mouseLeave", onPan: "pan", onSelect: "select", zoomEnd: "zoomEnd", zoomStart: "zoomStart", tooltipShow: "tooltipShow", tooltipHide: "tooltipHide" }, host: { properties: { "class.k-diagram": "this.diagramClass" } }, providers: [PopupService], queries: [{ propertyName: "shapeTooltipTemplate", first: true, predicate: ShapeTooltipTemplateDirective, descendants: true }, { propertyName: "connectionTooltipTemplate", first: true, predicate: ConnectionTooltipTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "defaultTooltipTemplate", first: true, predicate: ["defaultTemplate"], descendants: true }, { propertyName: "customTooltipTemplate", first: true, predicate: ["customTooltipTemplate"], descendants: true }], exportAs: ["kendoDiagram"], usesOnChanges: true, ngImport: i0, template: `
|
|
959
|
+
@if (showLicenseWatermark) {
|
|
960
|
+
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
961
|
+
}
|
|
948
962
|
|
|
949
963
|
<ng-template #customTooltipTemplate>
|
|
950
964
|
<ng-container [ngTemplateOutlet]="customTemplate" [ngTemplateOutletContext]="{ $implicit: dataItem }"></ng-container>
|
|
@@ -953,7 +967,7 @@ class DiagramComponent {
|
|
|
953
967
|
<ng-template #defaultTemplate>
|
|
954
968
|
{{dataItem?.tooltipText}}
|
|
955
969
|
</ng-template>
|
|
956
|
-
`, isInline: true, dependencies: [{ kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }, { kind: "directive", type:
|
|
970
|
+
`, isInline: true, dependencies: [{ kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
957
971
|
}
|
|
958
972
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DiagramComponent, decorators: [{
|
|
959
973
|
type: Component,
|
|
@@ -962,7 +976,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
962
976
|
exportAs: 'kendoDiagram',
|
|
963
977
|
selector: 'kendo-diagram',
|
|
964
978
|
template: `
|
|
965
|
-
|
|
979
|
+
@if (showLicenseWatermark) {
|
|
980
|
+
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
981
|
+
}
|
|
966
982
|
|
|
967
983
|
<ng-template #customTooltipTemplate>
|
|
968
984
|
<ng-container [ngTemplateOutlet]="customTemplate" [ngTemplateOutletContext]="{ $implicit: dataItem }"></ng-container>
|
|
@@ -972,7 +988,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
972
988
|
{{dataItem?.tooltipText}}
|
|
973
989
|
</ng-template>
|
|
974
990
|
`,
|
|
975
|
-
imports: [WatermarkOverlayComponent,
|
|
991
|
+
imports: [WatermarkOverlayComponent, NgTemplateOutlet],
|
|
976
992
|
providers: [PopupService]
|
|
977
993
|
}]
|
|
978
994
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i1.PopupService }, { type: i0.ViewContainerRef }], propDecorators: { diagramClass: [{
|
package/models.d.ts
CHANGED
|
@@ -76,6 +76,8 @@ export interface ShapeDefaults extends ShapeDefaultsCommon {
|
|
|
76
76
|
export interface DiagramOptions extends DiagramOptionsCommon {
|
|
77
77
|
shapeDefaults?: ShapeDefaults;
|
|
78
78
|
connectionDefaults?: ConnectionDefaults;
|
|
79
|
+
shapes: Array<ShapeOptions>;
|
|
80
|
+
connections: Array<ConnectionOptions>;
|
|
79
81
|
}
|
|
80
82
|
/**
|
|
81
83
|
* Defines the field mapping configuration for shapes data binding.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-diagrams",
|
|
3
|
-
"version": "21.0.1-develop.
|
|
3
|
+
"version": "21.0.1-develop.3",
|
|
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":
|
|
22
|
+
"publishDate": 1762962828,
|
|
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.
|
|
33
|
-
"@progress/kendo-angular-buttons": "21.0.1-develop.
|
|
34
|
-
"@progress/kendo-angular-dialog": "21.0.1-develop.
|
|
35
|
-
"@progress/kendo-angular-dropdowns": "21.0.1-develop.
|
|
36
|
-
"@progress/kendo-angular-icons": "21.0.1-develop.
|
|
37
|
-
"@progress/kendo-angular-inputs": "21.0.1-develop.
|
|
38
|
-
"@progress/kendo-angular-popup": "21.0.1-develop.
|
|
32
|
+
"@progress/kendo-angular-common": "21.0.1-develop.3",
|
|
33
|
+
"@progress/kendo-angular-buttons": "21.0.1-develop.3",
|
|
34
|
+
"@progress/kendo-angular-dialog": "21.0.1-develop.3",
|
|
35
|
+
"@progress/kendo-angular-dropdowns": "21.0.1-develop.3",
|
|
36
|
+
"@progress/kendo-angular-icons": "21.0.1-develop.3",
|
|
37
|
+
"@progress/kendo-angular-inputs": "21.0.1-develop.3",
|
|
38
|
+
"@progress/kendo-angular-popup": "21.0.1-develop.3",
|
|
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.
|
|
43
|
+
"@progress/kendo-angular-schematics": "21.0.1-develop.3",
|
|
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,8 @@
|
|
|
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 {
|
|
5
|
+
import { EditableDefaults, ShapeDefaultsEditable } from "@progress/kendo-diagram-common";
|
|
6
|
+
import { ConnectionDefaults, ShapeDefaults } from "./models";
|
|
6
7
|
/** @hidden */
|
|
7
8
|
export declare const DEFAULT_EDITABLE_SHAPE: ShapeDefaultsEditable;
|
|
8
9
|
/** @hidden */
|