@syncfusion/ej2-angular-diagrams 26.1.35-ngcc → 26.1.40-ngcc
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/dist/ej2-angular-diagrams.umd.js +1 -1
- package/dist/ej2-angular-diagrams.umd.min.js +1 -1
- package/package.json +8 -8
- package/schematics/collection.json +0 -25
- package/styles/diagram/fluent2.css +5 -5
- package/styles/fluent2.css +5 -5
- package/schematics/generators/diagram-default-functionalities/index.d.ts +0 -3
- package/schematics/generators/diagram-default-functionalities/index.js +0 -8
- package/schematics/generators/diagram-default-functionalities/index.ts +0 -8
- package/schematics/generators/diagram-default-functionalities/sample-details.d.ts +0 -5
- package/schematics/generators/diagram-default-functionalities/sample-details.js +0 -7
- package/schematics/generators/diagram-default-functionalities/sample-details.ts +0 -5
- package/schematics/generators/diagram-default-functionalities/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
- package/schematics/generators/diagram-default-functionalities/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +0 -125
- package/schematics/generators/diagram-default-functionalities/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +0 -91
- package/schematics/generators/diagram-default-functionalities/schema.d.ts +0 -3
- package/schematics/generators/diagram-default-functionalities/schema.js +0 -2
- package/schematics/generators/diagram-default-functionalities/schema.json +0 -125
- package/schematics/generators/diagram-default-functionalities/schema.ts +0 -3
- package/schematics/generators/diagram-hierarchical-tree/index.d.ts +0 -3
- package/schematics/generators/diagram-hierarchical-tree/index.js +0 -8
- package/schematics/generators/diagram-hierarchical-tree/index.ts +0 -8
- package/schematics/generators/diagram-hierarchical-tree/sample-details.d.ts +0 -5
- package/schematics/generators/diagram-hierarchical-tree/sample-details.js +0 -7
- package/schematics/generators/diagram-hierarchical-tree/sample-details.ts +0 -5
- package/schematics/generators/diagram-hierarchical-tree/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
- package/schematics/generators/diagram-hierarchical-tree/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +0 -13
- package/schematics/generators/diagram-hierarchical-tree/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +0 -75
- package/schematics/generators/diagram-hierarchical-tree/samples/__path__/__name@dasherize@if-flat__/assets/diagram-data.ts +0 -670
- package/schematics/generators/diagram-hierarchical-tree/schema.d.ts +0 -3
- package/schematics/generators/diagram-hierarchical-tree/schema.js +0 -2
- package/schematics/generators/diagram-hierarchical-tree/schema.json +0 -125
- package/schematics/generators/diagram-hierarchical-tree/schema.ts +0 -3
- package/schematics/generators/diagram-organization-chart/index.d.ts +0 -3
- package/schematics/generators/diagram-organization-chart/index.js +0 -8
- package/schematics/generators/diagram-organization-chart/index.ts +0 -8
- package/schematics/generators/diagram-organization-chart/sample-details.d.ts +0 -5
- package/schematics/generators/diagram-organization-chart/sample-details.js +0 -7
- package/schematics/generators/diagram-organization-chart/sample-details.ts +0 -5
- package/schematics/generators/diagram-organization-chart/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
- package/schematics/generators/diagram-organization-chart/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +0 -66
- package/schematics/generators/diagram-organization-chart/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +0 -179
- package/schematics/generators/diagram-organization-chart/samples/__path__/__name@dasherize@if-flat__/assets/diagram-data.ts +0 -670
- package/schematics/generators/diagram-organization-chart/schema.d.ts +0 -3
- package/schematics/generators/diagram-organization-chart/schema.js +0 -2
- package/schematics/generators/diagram-organization-chart/schema.json +0 -125
- package/schematics/generators/diagram-organization-chart/schema.ts +0 -3
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/Clayton.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/Jenny.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/John.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/Maria.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/Paul.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/Robin.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/Thomas.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/eric.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/female.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image12.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image2.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image3.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image50.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image51.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image53.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image54.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image55.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image56.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image57.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/images7.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/images9.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/male.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/moreinfo.png +0 -0
- package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/smith.png +0 -0
- package/schematics/generators/diagram-overview/index.d.ts +0 -3
- package/schematics/generators/diagram-overview/index.js +0 -8
- package/schematics/generators/diagram-overview/index.ts +0 -8
- package/schematics/generators/diagram-overview/sample-details.d.ts +0 -5
- package/schematics/generators/diagram-overview/sample-details.js +0 -7
- package/schematics/generators/diagram-overview/sample-details.ts +0 -5
- package/schematics/generators/diagram-overview/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
- package/schematics/generators/diagram-overview/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +0 -19
- package/schematics/generators/diagram-overview/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +0 -98
- package/schematics/generators/diagram-overview/schema.d.ts +0 -3
- package/schematics/generators/diagram-overview/schema.js +0 -2
- package/schematics/generators/diagram-overview/schema.json +0 -125
- package/schematics/generators/diagram-overview/schema.ts +0 -3
- package/schematics/generators/diagram-radial-tree/index.d.ts +0 -3
- package/schematics/generators/diagram-radial-tree/index.js +0 -8
- package/schematics/generators/diagram-radial-tree/index.ts +0 -8
- package/schematics/generators/diagram-radial-tree/sample-details.d.ts +0 -5
- package/schematics/generators/diagram-radial-tree/sample-details.js +0 -7
- package/schematics/generators/diagram-radial-tree/sample-details.ts +0 -5
- package/schematics/generators/diagram-radial-tree/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
- package/schematics/generators/diagram-radial-tree/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +0 -7
- package/schematics/generators/diagram-radial-tree/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +0 -87
- package/schematics/generators/diagram-radial-tree/samples/__path__/__name@dasherize@if-flat__/assets/diagram-data.ts +0 -670
- package/schematics/generators/diagram-radial-tree/schema.d.ts +0 -3
- package/schematics/generators/diagram-radial-tree/schema.js +0 -2
- package/schematics/generators/diagram-radial-tree/schema.json +0 -125
- package/schematics/generators/diagram-radial-tree/schema.ts +0 -3
- package/schematics/ng-add/index.d.ts +0 -3
- package/schematics/ng-add/index.js +0 -9
- package/schematics/ng-add/schema.d.ts +0 -13
- package/schematics/ng-add/schema.js +0 -2
- package/schematics/utils/lib-details.d.ts +0 -4
- package/schematics/utils/lib-details.js +0 -6
@@ -1,125 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
3
|
-
"$id": "EJ2SchemaTemplateID",
|
4
|
-
"title": "diagram-organization-chart",
|
5
|
-
"type": "object",
|
6
|
-
"properties": {
|
7
|
-
"path": {
|
8
|
-
"type": "string",
|
9
|
-
"format": "path",
|
10
|
-
"description": "The path to create the component.",
|
11
|
-
"visible": false
|
12
|
-
},
|
13
|
-
"project": {
|
14
|
-
"type": "string",
|
15
|
-
"description": "The name of the project.",
|
16
|
-
"$default": {
|
17
|
-
"$source": "projectName"
|
18
|
-
}
|
19
|
-
},
|
20
|
-
"name": {
|
21
|
-
"type": "string",
|
22
|
-
"description": "The name of the component.",
|
23
|
-
"$default": {
|
24
|
-
"$source": "argv",
|
25
|
-
"index": 0
|
26
|
-
}
|
27
|
-
},
|
28
|
-
"inlineStyle": {
|
29
|
-
"description": "Specifies if the style will be in the ts file.",
|
30
|
-
"type": "boolean",
|
31
|
-
"default": false,
|
32
|
-
"alias": "s"
|
33
|
-
},
|
34
|
-
"inlineTemplate": {
|
35
|
-
"description": "Specifies if the template will be in the ts file.",
|
36
|
-
"type": "boolean",
|
37
|
-
"default": false,
|
38
|
-
"alias": "t"
|
39
|
-
},
|
40
|
-
"viewEncapsulation": {
|
41
|
-
"description": "Specifies the view encapsulation strategy.",
|
42
|
-
"enum": [
|
43
|
-
"Emulated",
|
44
|
-
"Native",
|
45
|
-
"None",
|
46
|
-
"ShadowDom"
|
47
|
-
],
|
48
|
-
"type": "string",
|
49
|
-
"alias": "v"
|
50
|
-
},
|
51
|
-
"changeDetection": {
|
52
|
-
"description": "Specifies the change detection strategy.",
|
53
|
-
"enum": [
|
54
|
-
"Default",
|
55
|
-
"OnPush"
|
56
|
-
],
|
57
|
-
"type": "string",
|
58
|
-
"default": "Default",
|
59
|
-
"alias": "c"
|
60
|
-
},
|
61
|
-
"prefix": {
|
62
|
-
"type": "string",
|
63
|
-
"description": "The prefix to apply to generated selectors.",
|
64
|
-
"alias": "p",
|
65
|
-
"oneOf": [
|
66
|
-
{
|
67
|
-
"maxLength": 0
|
68
|
-
},
|
69
|
-
{
|
70
|
-
"minLength": 1,
|
71
|
-
"format": "html-selector"
|
72
|
-
}
|
73
|
-
]
|
74
|
-
},
|
75
|
-
"styleext": {
|
76
|
-
"description": "The file extension to be used for style files.",
|
77
|
-
"type": "string",
|
78
|
-
"default": "css"
|
79
|
-
},
|
80
|
-
"spec": {
|
81
|
-
"type": "boolean",
|
82
|
-
"description": "Specifies if a spec file is generated.",
|
83
|
-
"default": true
|
84
|
-
},
|
85
|
-
"flat": {
|
86
|
-
"type": "boolean",
|
87
|
-
"description": "Flag to indicate if a dir is created.",
|
88
|
-
"default": false
|
89
|
-
},
|
90
|
-
"skipImport": {
|
91
|
-
"type": "boolean",
|
92
|
-
"description": "Flag to skip the module import.",
|
93
|
-
"default": false
|
94
|
-
},
|
95
|
-
"selector": {
|
96
|
-
"type": "string",
|
97
|
-
"format": "html-selector",
|
98
|
-
"description": "The selector to use for the component."
|
99
|
-
},
|
100
|
-
"module": {
|
101
|
-
"type": "string",
|
102
|
-
"description": "Allows specification of the declaring module.",
|
103
|
-
"alias": "m"
|
104
|
-
},
|
105
|
-
"export": {
|
106
|
-
"type": "boolean",
|
107
|
-
"default": false,
|
108
|
-
"description": "Specifies if declaring module exports the component."
|
109
|
-
},
|
110
|
-
"entryComponent": {
|
111
|
-
"type": "boolean",
|
112
|
-
"default": false,
|
113
|
-
"description": "Specifies if the component is an entry component of declaring module."
|
114
|
-
},
|
115
|
-
"lintFix": {
|
116
|
-
"type": "boolean",
|
117
|
-
"default": false,
|
118
|
-
"description": "Specifies whether to apply lint fixes after generating the component."
|
119
|
-
}
|
120
|
-
},
|
121
|
-
"required": [
|
122
|
-
"name"
|
123
|
-
],
|
124
|
-
"id": "diagram-organization-chart"
|
125
|
-
}
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/Clayton.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/Thomas.png
DELETED
Binary file
|
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/female.png
DELETED
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image12.png
DELETED
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image2.png
DELETED
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image3.png
DELETED
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image50.png
DELETED
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image51.png
DELETED
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image53.png
DELETED
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image54.png
DELETED
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image55.png
DELETED
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image56.png
DELETED
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/image57.png
DELETED
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/images7.png
DELETED
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/images9.png
DELETED
Binary file
|
Binary file
|
package/schematics/generators/diagram-overview/images/__path__/__name@dasherize__/moreinfo.png
DELETED
Binary file
|
Binary file
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const schematics_1 = require("@syncfusion/ej2-angular-base/schematics");
|
4
|
-
const sampleDetails = require("./sample-details");
|
5
|
-
function default_1(options) {
|
6
|
-
return schematics_1.componentBuilder(options, sampleDetails);
|
7
|
-
}
|
8
|
-
exports.default = default_1;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
2
|
-
import { componentBuilder } from "@syncfusion/ej2-angular-base/schematics";
|
3
|
-
import { Schema } from './schema';
|
4
|
-
import * as sampleDetails from './sample-details';
|
5
|
-
|
6
|
-
export default function (options: Schema): Rule {
|
7
|
-
return componentBuilder(options, sampleDetails);
|
8
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.componentName = 'diagram';
|
4
|
-
exports.sampleName = 'overview';
|
5
|
-
exports.diModules = null;
|
6
|
-
exports.packageName = '@syncfusion/ej2-angular-diagrams';
|
7
|
-
exports.libModules = 'DiagramModule';
|
File without changes
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<style>
|
2
|
-
.e-overview {
|
3
|
-
display: block;
|
4
|
-
}
|
5
|
-
</style>
|
6
|
-
<div class="control-section">
|
7
|
-
<div class="col-lg-12 control-section">
|
8
|
-
<div class="content-wrapper">
|
9
|
-
<ejs-diagram #diagram id="diagram" width="100%" height="590px" [scrollSettings]='scrollSettings' [getConnectorDefaults]='connDefaults'
|
10
|
-
[getNodeDefaults]='nodeDefaults' [layout]='layout' [dataSourceSettings]='data' [setNodeTemplate]='setNodeTemplate'
|
11
|
-
[tool]='tool' [snapSettings]='snapSettings'>
|
12
|
-
</ejs-diagram>
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
<div class="col-lg-4" style=" width:50%; padding:0px;right:30px;bottom:35px;border: #eeeeee;border-style: solid;box-shadow: 0px 2px 2px rgba(0,0,0,0.3); background:#f7f7f7;position:absolute">
|
16
|
-
<ejs-overview id="overview" width="100%" height="590px" sourceID="diagram">
|
17
|
-
</ejs-overview>
|
18
|
-
</div>
|
19
|
-
</div>
|
@@ -1,98 +0,0 @@
|
|
1
|
-
import { Component, ViewEncapsulation } from '@angular/core';
|
2
|
-
import {
|
3
|
-
NodeModel, DiagramTools, ScrollSettingsModel, LayoutModel,
|
4
|
-
Diagram, ConnectorModel, Node, SnapConstraints, SnapSettingsModel,
|
5
|
-
Container, TextElement, StackPanel, ImageElement, DataBinding, HierarchicalTree, TreeInfo
|
6
|
-
} from '@syncfusion/ej2-diagrams';
|
7
|
-
import { DataManager } from '@syncfusion/ej2-data';
|
8
|
-
import { data } from './assets/overview-data';
|
9
|
-
Diagram.Inject(DataBinding, HierarchicalTree);
|
10
|
-
/**
|
11
|
-
* Sample for Overview layout
|
12
|
-
*/
|
13
|
-
@Component({
|
14
|
-
selector: '<%=dasherize(selector)%>',
|
15
|
-
templateUrl: '<%=dasherize(name)%>.component.html',
|
16
|
-
encapsulation: ViewEncapsulation.None
|
17
|
-
})
|
18
|
-
export class <%= classify(name) %>Component {
|
19
|
-
|
20
|
-
public data: Object = {
|
21
|
-
id: 'Id', parentId: 'ReportingPerson', dataManager: new DataManager(data)
|
22
|
-
};
|
23
|
-
|
24
|
-
public layout: LayoutModel = {
|
25
|
-
type: 'OrganizationalChart', margin: { top: 20 },
|
26
|
-
getLayoutInfo: (node: Node, tree: TreeInfo) => {
|
27
|
-
if (!tree.hasSubTree) {
|
28
|
-
tree.orientation = 'Vertical';
|
29
|
-
tree.type = 'Right';
|
30
|
-
}
|
31
|
-
}
|
32
|
-
};
|
33
|
-
|
34
|
-
public nodeDefaults(obj: NodeModel): NodeModel {
|
35
|
-
obj.height = 50;
|
36
|
-
obj.style = { fill: 'transparent', strokeWidth: 2 };
|
37
|
-
return obj;
|
38
|
-
};
|
39
|
-
|
40
|
-
public connDefaults(connector: ConnectorModel): ConnectorModel {
|
41
|
-
connector.targetDecorator.shape = 'None';
|
42
|
-
connector.type = 'Orthogonal';
|
43
|
-
connector.style.strokeColor = 'gray';
|
44
|
-
return connector;
|
45
|
-
};
|
46
|
-
|
47
|
-
public tool: DiagramTools = DiagramTools.ZoomPan;
|
48
|
-
public snapSettings: SnapSettingsModel = { constraints: SnapConstraints.None };
|
49
|
-
public scrollSettings: ScrollSettingsModel = { scrollLimit: 'Infinity' };
|
50
|
-
|
51
|
-
public setNodeTemplate(obj: NodeModel, diagram: Diagram): Container {
|
52
|
-
let content: StackPanel = new StackPanel();
|
53
|
-
content.id = obj.id + '_outerstack';
|
54
|
-
content.orientation = 'Horizontal';
|
55
|
-
content.style.strokeColor = 'gray';
|
56
|
-
content.padding = { left: 5, right: 10, top: 5, bottom: 5 };
|
57
|
-
let image: ImageElement = new ImageElement();
|
58
|
-
image.width = 50;
|
59
|
-
image.height = 50;
|
60
|
-
image.style.strokeColor = 'none';
|
61
|
-
image.source = (obj.data as EmployeeInfo).ImageUrl;
|
62
|
-
image.id = obj.id + '_pic';
|
63
|
-
let innerStack: StackPanel = new StackPanel();
|
64
|
-
innerStack.style.strokeColor = 'none';
|
65
|
-
innerStack.margin = { left: 5, right: 0, top: 0, bottom: 0 };
|
66
|
-
innerStack.id = obj.id + '_innerstack';
|
67
|
-
|
68
|
-
let text: TextElement = new TextElement();
|
69
|
-
text.content = (obj.data as EmployeeInfo).Name;
|
70
|
-
text.style.color = 'black';
|
71
|
-
text.style.bold = true;
|
72
|
-
text.style.strokeColor = 'none';
|
73
|
-
text.horizontalAlignment = 'Left';
|
74
|
-
text.style.fill = 'none';
|
75
|
-
text.id = obj.id + '_text1';
|
76
|
-
|
77
|
-
let desigText: TextElement = new TextElement();
|
78
|
-
desigText.margin = { left: 0, right: 0, top: 5, bottom: 0 };
|
79
|
-
desigText.content = (obj.data as EmployeeInfo).Designation;
|
80
|
-
desigText.style.color = 'black';
|
81
|
-
desigText.style.strokeColor = 'none';
|
82
|
-
desigText.style.fontSize = 12;
|
83
|
-
desigText.style.fill = 'none';
|
84
|
-
desigText.horizontalAlignment = 'Left';
|
85
|
-
desigText.style.textWrapping = 'Wrap';
|
86
|
-
desigText.id = obj.id + '_desig';
|
87
|
-
innerStack.children = [text, desigText];
|
88
|
-
|
89
|
-
content.children = [image, innerStack];
|
90
|
-
|
91
|
-
return content;
|
92
|
-
};
|
93
|
-
}
|
94
|
-
export interface EmployeeInfo {
|
95
|
-
Name: string;
|
96
|
-
Designation: string;
|
97
|
-
ImageUrl: string;
|
98
|
-
}
|
@@ -1,125 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
3
|
-
"$id": "EJ2SchemaTemplateID",
|
4
|
-
"title": "diagram-overview",
|
5
|
-
"type": "object",
|
6
|
-
"properties": {
|
7
|
-
"path": {
|
8
|
-
"type": "string",
|
9
|
-
"format": "path",
|
10
|
-
"description": "The path to create the component.",
|
11
|
-
"visible": false
|
12
|
-
},
|
13
|
-
"project": {
|
14
|
-
"type": "string",
|
15
|
-
"description": "The name of the project.",
|
16
|
-
"$default": {
|
17
|
-
"$source": "projectName"
|
18
|
-
}
|
19
|
-
},
|
20
|
-
"name": {
|
21
|
-
"type": "string",
|
22
|
-
"description": "The name of the component.",
|
23
|
-
"$default": {
|
24
|
-
"$source": "argv",
|
25
|
-
"index": 0
|
26
|
-
}
|
27
|
-
},
|
28
|
-
"inlineStyle": {
|
29
|
-
"description": "Specifies if the style will be in the ts file.",
|
30
|
-
"type": "boolean",
|
31
|
-
"default": false,
|
32
|
-
"alias": "s"
|
33
|
-
},
|
34
|
-
"inlineTemplate": {
|
35
|
-
"description": "Specifies if the template will be in the ts file.",
|
36
|
-
"type": "boolean",
|
37
|
-
"default": false,
|
38
|
-
"alias": "t"
|
39
|
-
},
|
40
|
-
"viewEncapsulation": {
|
41
|
-
"description": "Specifies the view encapsulation strategy.",
|
42
|
-
"enum": [
|
43
|
-
"Emulated",
|
44
|
-
"Native",
|
45
|
-
"None",
|
46
|
-
"ShadowDom"
|
47
|
-
],
|
48
|
-
"type": "string",
|
49
|
-
"alias": "v"
|
50
|
-
},
|
51
|
-
"changeDetection": {
|
52
|
-
"description": "Specifies the change detection strategy.",
|
53
|
-
"enum": [
|
54
|
-
"Default",
|
55
|
-
"OnPush"
|
56
|
-
],
|
57
|
-
"type": "string",
|
58
|
-
"default": "Default",
|
59
|
-
"alias": "c"
|
60
|
-
},
|
61
|
-
"prefix": {
|
62
|
-
"type": "string",
|
63
|
-
"description": "The prefix to apply to generated selectors.",
|
64
|
-
"alias": "p",
|
65
|
-
"oneOf": [
|
66
|
-
{
|
67
|
-
"maxLength": 0
|
68
|
-
},
|
69
|
-
{
|
70
|
-
"minLength": 1,
|
71
|
-
"format": "html-selector"
|
72
|
-
}
|
73
|
-
]
|
74
|
-
},
|
75
|
-
"styleext": {
|
76
|
-
"description": "The file extension to be used for style files.",
|
77
|
-
"type": "string",
|
78
|
-
"default": "css"
|
79
|
-
},
|
80
|
-
"spec": {
|
81
|
-
"type": "boolean",
|
82
|
-
"description": "Specifies if a spec file is generated.",
|
83
|
-
"default": true
|
84
|
-
},
|
85
|
-
"flat": {
|
86
|
-
"type": "boolean",
|
87
|
-
"description": "Flag to indicate if a dir is created.",
|
88
|
-
"default": false
|
89
|
-
},
|
90
|
-
"skipImport": {
|
91
|
-
"type": "boolean",
|
92
|
-
"description": "Flag to skip the module import.",
|
93
|
-
"default": false
|
94
|
-
},
|
95
|
-
"selector": {
|
96
|
-
"type": "string",
|
97
|
-
"format": "html-selector",
|
98
|
-
"description": "The selector to use for the component."
|
99
|
-
},
|
100
|
-
"module": {
|
101
|
-
"type": "string",
|
102
|
-
"description": "Allows specification of the declaring module.",
|
103
|
-
"alias": "m"
|
104
|
-
},
|
105
|
-
"export": {
|
106
|
-
"type": "boolean",
|
107
|
-
"default": false,
|
108
|
-
"description": "Specifies if declaring module exports the component."
|
109
|
-
},
|
110
|
-
"entryComponent": {
|
111
|
-
"type": "boolean",
|
112
|
-
"default": false,
|
113
|
-
"description": "Specifies if the component is an entry component of declaring module."
|
114
|
-
},
|
115
|
-
"lintFix": {
|
116
|
-
"type": "boolean",
|
117
|
-
"default": false,
|
118
|
-
"description": "Specifies whether to apply lint fixes after generating the component."
|
119
|
-
}
|
120
|
-
},
|
121
|
-
"required": [
|
122
|
-
"name"
|
123
|
-
],
|
124
|
-
"id": "diagram-overview"
|
125
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const schematics_1 = require("@syncfusion/ej2-angular-base/schematics");
|
4
|
-
const sampleDetails = require("./sample-details");
|
5
|
-
function default_1(options) {
|
6
|
-
return schematics_1.componentBuilder(options, sampleDetails);
|
7
|
-
}
|
8
|
-
exports.default = default_1;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
2
|
-
import { componentBuilder } from "@syncfusion/ej2-angular-base/schematics";
|
3
|
-
import { Schema } from './schema';
|
4
|
-
import * as sampleDetails from './sample-details';
|
5
|
-
|
6
|
-
export default function (options: Schema): Rule {
|
7
|
-
return componentBuilder(options, sampleDetails);
|
8
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.componentName = 'diagram';
|
4
|
-
exports.sampleName = 'radial-tree';
|
5
|
-
exports.diModules = null;
|
6
|
-
exports.packageName = '@syncfusion/ej2-angular-diagrams';
|
7
|
-
exports.libModules = 'DiagramModule';
|
File without changes
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<div class="col-lg-8 control-section" style="width: 100%;">
|
2
|
-
<div class="content-wrapper">
|
3
|
-
<ejs-diagram #diagram id="diagram" width="100%" height="600px" [tool]=tool [layout]='layout' [snapSettings]=snapSettings
|
4
|
-
(created)="create($event)" [dataSourceSettings]='data'>
|
5
|
-
</ejs-diagram>
|
6
|
-
</div>
|
7
|
-
</div>
|
@@ -1,87 +0,0 @@
|
|
1
|
-
import { Component, ViewEncapsulation, ViewChild } from '@angular/core';
|
2
|
-
import { DiagramComponent } from '@syncfusion/ej2-angular-diagrams';
|
3
|
-
import {
|
4
|
-
Diagram, NodeModel, DiagramTools, BasicShapeModel, SnapSettingsModel,
|
5
|
-
NodeConstraints, DataBinding, RadialTree, SnapConstraints, ZoomOptions
|
6
|
-
} from '@syncfusion/ej2-diagrams';
|
7
|
-
import { DataManager } from '@syncfusion/ej2-data';
|
8
|
-
import { radialTree, DataInfo } from './assets/diagram-data';
|
9
|
-
import { ClickEventArgs } from '@syncfusion/ej2-navigations';
|
10
|
-
Diagram.Inject(DataBinding, RadialTree);
|
11
|
-
|
12
|
-
/**
|
13
|
-
* Sample for Radial Tree layout
|
14
|
-
*/
|
15
|
-
@Component({
|
16
|
-
selector: '<%=dasherize(selector)%>',
|
17
|
-
templateUrl: '<%=dasherize(name)%>.component.html',
|
18
|
-
// styleUrls: ['<%=dasherize(name)%>.component.css'],
|
19
|
-
encapsulation: ViewEncapsulation.None
|
20
|
-
})
|
21
|
-
export class <%= classify(name) %>Component {
|
22
|
-
@ViewChild('diagram')
|
23
|
-
public diagram: DiagramComponent;
|
24
|
-
public tool: DiagramTools = DiagramTools.ZoomPan;
|
25
|
-
public data: Object = {
|
26
|
-
//sets the fields to bind
|
27
|
-
id: 'Id', parentId: 'ReportingPerson',
|
28
|
-
dataManager: new DataManager(radialTree as JSON[]),
|
29
|
-
//binds the data with the nodes
|
30
|
-
doBinding: (nodeModel: NodeModel, data: DataInfo, diagram: Diagram) => {
|
31
|
-
nodeModel.annotations = [{
|
32
|
-
content: data.Name,
|
33
|
-
style: data.Id === 'parent' ? { color: 'white', fontSize: 50 } : { color: 'black', fontSize: 20 }
|
34
|
-
}];
|
35
|
-
nodeModel.constraints = NodeConstraints.Default & ~NodeConstraints.InheritTooltip | NodeConstraints.Tooltip;
|
36
|
-
nodeModel.tooltip = {
|
37
|
-
content: data.Name + '<br/>' + data.Designation, relativeMode: 'Object',
|
38
|
-
position: 'TopCenter', showTipPointer: true,
|
39
|
-
};
|
40
|
-
if (data.Designation === 'Managing Director') {
|
41
|
-
nodeModel.width = 400;
|
42
|
-
nodeModel.height = 400;
|
43
|
-
nodeModel.shape = { shape: 'Ellipse' } as BasicShapeModel;
|
44
|
-
nodeModel.style = { fill: 'black' };
|
45
|
-
} else if (data.Designation === 'Project Manager') {
|
46
|
-
nodeModel.width = 130;
|
47
|
-
nodeModel.height = 130;
|
48
|
-
nodeModel.height = 130;
|
49
|
-
nodeModel.style = { fill: '#f8ab52' };
|
50
|
-
} else {
|
51
|
-
nodeModel.width = 100;
|
52
|
-
nodeModel.height = 100;
|
53
|
-
nodeModel.shape = { shape: 'Ellipse' } as BasicShapeModel;
|
54
|
-
nodeModel.style = { fill: '#afeeee' };
|
55
|
-
}
|
56
|
-
}
|
57
|
-
};
|
58
|
-
public layout: Object = {
|
59
|
-
type: 'RadialTree', verticalSpacing: 30, horizontalSpacing: 20,
|
60
|
-
root: 'Category'
|
61
|
-
};
|
62
|
-
|
63
|
-
public create(args: Object): void {
|
64
|
-
this.diagram.fitToPage();
|
65
|
-
this.diagram.dataBind();
|
66
|
-
}
|
67
|
-
|
68
|
-
public snapSettings: SnapSettingsModel = { constraints: SnapConstraints.None };
|
69
|
-
public onItemClick(args: ClickEventArgs): void {
|
70
|
-
switch (args.item.text) {
|
71
|
-
case 'Zoom In':
|
72
|
-
let zoomin: ZoomOptions = { type: 'ZoomIn', zoomFactor: 0.2 };
|
73
|
-
this.diagram.zoomTo(zoomin);
|
74
|
-
this.diagram.dataBind();
|
75
|
-
break;
|
76
|
-
case 'Zoom Out':
|
77
|
-
let zoomout: ZoomOptions = { type: 'ZoomOut', zoomFactor: 0.2 };
|
78
|
-
this.diagram.zoomTo(zoomout);
|
79
|
-
this.diagram.dataBind();
|
80
|
-
break;
|
81
|
-
case 'Reset':
|
82
|
-
this.diagram.reset();
|
83
|
-
this.diagram.fitToPage();
|
84
|
-
break;
|
85
|
-
}
|
86
|
-
}
|
87
|
-
}
|