@progress/kendo-angular-schematics 11.0.0-develop.79

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.
Files changed (141) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +654 -0
  3. package/collection.json +53 -0
  4. package/package.json +33 -0
  5. package/src/charts/categorical/files/data.d.ts +5 -0
  6. package/src/charts/categorical/files/data.js +29 -0
  7. package/src/charts/categorical/files/data.js.map +1 -0
  8. package/src/charts/categorical/files/data.ts +25 -0
  9. package/src/charts/categorical/files/html/__name@dasherize__/__name@dasherize__.component.html +46 -0
  10. package/src/charts/categorical/files/html/__name@dasherize__/__name@dasherize__.component.ts +25 -0
  11. package/src/charts/categorical/files/inline/__name@dasherize__/__name@dasherize__.component.ts +69 -0
  12. package/src/charts/categorical/index.d.ts +7 -0
  13. package/src/charts/categorical/index.js +124 -0
  14. package/src/charts/categorical/index.js.map +1 -0
  15. package/src/charts/categorical/schema.d.ts +92 -0
  16. package/src/charts/categorical/schema.js +54 -0
  17. package/src/charts/categorical/schema.js.map +1 -0
  18. package/src/charts/categorical/schema.json +253 -0
  19. package/src/charts/circular/files/data.d.ts +5 -0
  20. package/src/charts/circular/files/data.js +15 -0
  21. package/src/charts/circular/files/data.js.map +1 -0
  22. package/src/charts/circular/files/data.ts +11 -0
  23. package/src/charts/circular/files/html/__name@dasherize__/__name@dasherize__.component.html +27 -0
  24. package/src/charts/circular/files/html/__name@dasherize__/__name@dasherize__.component.ts +23 -0
  25. package/src/charts/circular/files/inline/__name@dasherize__/__name@dasherize__.component.ts +52 -0
  26. package/src/charts/circular/index.d.ts +7 -0
  27. package/src/charts/circular/index.js +50 -0
  28. package/src/charts/circular/index.js.map +1 -0
  29. package/src/charts/circular/schema.d.ts +31 -0
  30. package/src/charts/circular/schema.js +7 -0
  31. package/src/charts/circular/schema.js.map +1 -0
  32. package/src/charts/circular/schema.json +175 -0
  33. package/src/charts/scatter/files/data.d.ts +5 -0
  34. package/src/charts/scatter/files/data.js +25 -0
  35. package/src/charts/scatter/files/data.js.map +1 -0
  36. package/src/charts/scatter/files/data.ts +21 -0
  37. package/src/charts/scatter/files/html/__name@dasherize__/__name@dasherize__.component.html +35 -0
  38. package/src/charts/scatter/files/html/__name@dasherize__/__name@dasherize__.component.ts +21 -0
  39. package/src/charts/scatter/files/inline/__name@dasherize__/__name@dasherize__.component.ts +58 -0
  40. package/src/charts/scatter/index.d.ts +7 -0
  41. package/src/charts/scatter/index.js +50 -0
  42. package/src/charts/scatter/index.js.map +1 -0
  43. package/src/charts/scatter/schema.d.ts +32 -0
  44. package/src/charts/scatter/schema.js +7 -0
  45. package/src/charts/scatter/schema.js.map +1 -0
  46. package/src/charts/scatter/schema.json +209 -0
  47. package/src/charts/stock/files/data.d.ts +5 -0
  48. package/src/charts/stock/files/data.js +418 -0
  49. package/src/charts/stock/files/data.js.map +1 -0
  50. package/src/charts/stock/files/data.ts +414 -0
  51. package/src/charts/stock/files/html/__name@dasherize__/__name@dasherize__.component.html +57 -0
  52. package/src/charts/stock/files/html/__name@dasherize__/__name@dasherize__.component.ts +23 -0
  53. package/src/charts/stock/files/inline/__name@dasherize__/__name@dasherize__.component.ts +83 -0
  54. package/src/charts/stock/index.d.ts +7 -0
  55. package/src/charts/stock/index.js +50 -0
  56. package/src/charts/stock/index.js.map +1 -0
  57. package/src/charts/stock/schema.d.ts +36 -0
  58. package/src/charts/stock/schema.js +7 -0
  59. package/src/charts/stock/schema.js.map +1 -0
  60. package/src/charts/stock/schema.json +285 -0
  61. package/src/component/files/__full-path__/__name@folder-name__/__name@dasherize__.component.__styleext__ +0 -0
  62. package/src/component/files/__full-path__/__name@folder-name__/__name@dasherize__.component.html +1 -0
  63. package/src/component/files/__full-path__/__name@folder-name__/__name@dasherize__.component.ts +23 -0
  64. package/src/component/index.d.ts +6 -0
  65. package/src/component/index.js +18 -0
  66. package/src/component/index.js.map +1 -0
  67. package/src/component/schema.d.ts +66 -0
  68. package/src/component/schema.js +7 -0
  69. package/src/component/schema.js.map +1 -0
  70. package/src/component/schema.json +96 -0
  71. package/src/grid/files/data.d.ts +5 -0
  72. package/src/grid/files/data.js +1241 -0
  73. package/src/grid/files/data.js.map +1 -0
  74. package/src/grid/files/data.ts +1237 -0
  75. package/src/grid/files/html/__name@dasherize__/__name@dasherize__.component.html +48 -0
  76. package/src/grid/files/html/__name@dasherize__/__name@dasherize__.component.ts +29 -0
  77. package/src/grid/files/inline/__name@dasherize__/__name@dasherize__.component.ts +79 -0
  78. package/src/grid/index.d.ts +7 -0
  79. package/src/grid/index.js +84 -0
  80. package/src/grid/index.js.map +1 -0
  81. package/src/grid/schema.d.ts +44 -0
  82. package/src/grid/schema.js +28 -0
  83. package/src/grid/schema.js.map +1 -0
  84. package/src/grid/schema.json +168 -0
  85. package/src/ngAdd/index.d.ts +7 -0
  86. package/src/ngAdd/index.js +143 -0
  87. package/src/ngAdd/index.js.map +1 -0
  88. package/src/ngAdd/schema.d.ts +61 -0
  89. package/src/ngAdd/schema.js +7 -0
  90. package/src/ngAdd/schema.js.map +1 -0
  91. package/src/ngAdd/schema.json +70 -0
  92. package/src/ngAdd/theming.d.ts +8 -0
  93. package/src/ngAdd/theming.js +79 -0
  94. package/src/ngAdd/theming.js.map +1 -0
  95. package/src/rules/index.d.ts +11 -0
  96. package/src/rules/index.js +80 -0
  97. package/src/rules/index.js.map +1 -0
  98. package/src/scheduler/files/events-utc.d.ts +5 -0
  99. package/src/scheduler/files/events-utc.js +846 -0
  100. package/src/scheduler/files/events-utc.js.map +1 -0
  101. package/src/scheduler/files/events-utc.ts +842 -0
  102. package/src/scheduler/files/html/__name@dasherize__/__name@dasherize__.component.html +29 -0
  103. package/src/scheduler/files/html/__name@dasherize__/__name@dasherize__.component.ts +17 -0
  104. package/src/scheduler/files/inline/__name@dasherize__/__name@dasherize__.component.ts +48 -0
  105. package/src/scheduler/index.d.ts +7 -0
  106. package/src/scheduler/index.js +47 -0
  107. package/src/scheduler/index.js.map +1 -0
  108. package/src/scheduler/schema.d.ts +16 -0
  109. package/src/scheduler/schema.js +7 -0
  110. package/src/scheduler/schema.js.map +1 -0
  111. package/src/scheduler/schema.json +78 -0
  112. package/src/utils/ast-utils.d.ts +34 -0
  113. package/src/utils/ast-utils.js +206 -0
  114. package/src/utils/ast-utils.js.map +1 -0
  115. package/src/utils/bootstrap-module.d.ts +9 -0
  116. package/src/utils/bootstrap-module.js +54 -0
  117. package/src/utils/bootstrap-module.js.map +1 -0
  118. package/src/utils/find-module.d.ts +25 -0
  119. package/src/utils/find-module.js +91 -0
  120. package/src/utils/find-module.js.map +1 -0
  121. package/src/utils/index.d.ts +16 -0
  122. package/src/utils/index.js +74 -0
  123. package/src/utils/index.js.map +1 -0
  124. package/src/utils/test/create-app-module.d.ts +6 -0
  125. package/src/utils/test/create-app-module.js +24 -0
  126. package/src/utils/test/create-app-module.js.map +1 -0
  127. package/src/utils/test/create-cli-config.d.ts +6 -0
  128. package/src/utils/test/create-cli-config.js +121 -0
  129. package/src/utils/test/create-cli-config.js.map +1 -0
  130. package/src/utils/test/create-main-bootstrap.d.ts +6 -0
  131. package/src/utils/test/create-main-bootstrap.js +26 -0
  132. package/src/utils/test/create-main-bootstrap.js.map +1 -0
  133. package/src/utils/test/create-package-json.d.ts +6 -0
  134. package/src/utils/test/create-package-json.js +20 -0
  135. package/src/utils/test/create-package-json.js.map +1 -0
  136. package/src/utils/test/index.d.ts +8 -0
  137. package/src/utils/test/index.js +12 -0
  138. package/src/utils/test/index.js.map +1 -0
  139. package/src/utils/workspace.d.ts +16 -0
  140. package/src/utils/workspace.js +58 -0
  141. package/src/utils/workspace.js.map +1 -0
@@ -0,0 +1,175 @@
1
+ {
2
+ "progress:name": "Circular Chart",
3
+ "progress:icon": "piecharts",
4
+ "progress:description": "Generate new Kendo UI for Angular Circular Chart page",
5
+ "$schema": "http://json-schema.org/schema",
6
+ "$id": "Schema",
7
+ "type": "object",
8
+ "properties": {
9
+ "path": {
10
+ "type": "string",
11
+ "format": "path",
12
+ "progress:editorVisible": false
13
+ },
14
+ "name": {
15
+ "type": "string",
16
+ "$default": {
17
+ "$source": "argv",
18
+ "index": 0
19
+ },
20
+ "default": "ChartPage"
21
+ },
22
+ "inlineTemplate": {
23
+ "progress:display-name": "Inline template",
24
+ "description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.",
25
+ "type": "boolean",
26
+ "default": false,
27
+ "alias": "t"
28
+ },
29
+ "inlineStyle": {
30
+ "description": "Include styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file.",
31
+ "type": "boolean",
32
+ "default": false,
33
+ "alias": "s"
34
+ },
35
+ "skipTests": {
36
+ "type": "boolean",
37
+ "description": "Do not create \"spec.ts\" test files for the new component.",
38
+ "default": false
39
+ },
40
+ "titleText": {
41
+ "progress:category": "Title",
42
+ "progress:displayName": "Text",
43
+ "type": "string"
44
+ },
45
+ "titlePosition": {
46
+ "progress:category": "Title",
47
+ "progress:displayName": "Position",
48
+ "type": "string",
49
+ "enum": [ "top", "bottom" ]
50
+ },
51
+ "titleAlign": {
52
+ "progress:category": "Title",
53
+ "progress:displayName": "Align",
54
+ "type": "string",
55
+ "enum": [ "left", "right", "center" ]
56
+ },
57
+ "renderAs": {
58
+ "type": "string",
59
+ "enum": [ "svg", "canvas" ]
60
+ },
61
+ "title": {
62
+ "description": "Sets the Chart title",
63
+ "type": "string",
64
+ "hidden": true,
65
+ "progress:type": "object",
66
+ "properties": {
67
+ "text": {"type": "string"},
68
+ "color": {"type": "string"},
69
+ "background": {"type": "string"},
70
+ "font": {"type": "string"},
71
+ "margin": {"type": "number"},
72
+ "padding": {"type": "number"},
73
+ "position": {
74
+ "type": "string",
75
+ "enum": [ "top", "bottom" ]
76
+ },
77
+ "visible": {"type": "boolean"}
78
+ }
79
+ },
80
+ "series": {
81
+ "progress:category": "Chart Series",
82
+ "progress:type": "array",
83
+ "hidden": true,
84
+ "description": "Configures the single series in the Pie or Donut Chart",
85
+ "type": "string",
86
+ "items": {
87
+ "type": "object",
88
+ "properties": {
89
+ "type": {
90
+ "type": "string",
91
+ "enum": [ "pie", "donut" ],
92
+ "default": "pie"
93
+ },
94
+ "categoryField": {"type": "string"},
95
+ "autoFit": {"type": "boolean"},
96
+ "field": {"type": "string"},
97
+ "explodeField": {"type": "string"},
98
+ "holeSize": {"type": "number"},
99
+ "size": {"type": "number"},
100
+ "name": {"type": "string"},
101
+ "startAngle": {"type": "number"}
102
+ }
103
+ }
104
+ },
105
+ "showLabels": {"type": "boolean"},
106
+ "legend": {
107
+ "description": "Determines whether the Chart legend will be rendered",
108
+ "type": "boolean"
109
+ },
110
+ "legendTitleText": {
111
+ "description": "The legend title",
112
+ "type": "string"
113
+ },
114
+ "legendTitleAlign": {
115
+ "description": "The legend title alignment",
116
+ "type": "string",
117
+ "enum": ["left", "right", "center"]
118
+ },
119
+ "legendTitlePosition": {
120
+ "description": "The legend title alignment",
121
+ "type": "string",
122
+ "enum": [ "top", "bottom" ]
123
+ },
124
+ "legendAlign": {
125
+ "description": "The legend alignment",
126
+ "type": "string",
127
+ "enum": [ "center", "start", "end" ]
128
+ },
129
+ "legendPosition": {
130
+ "description": "The legend position",
131
+ "type": "string",
132
+ "enum": [ "top", "bottom", "left", "right", "custom" ]
133
+ },
134
+ "legendOrientation": {
135
+ "description": "The legend orientation",
136
+ "type": "string",
137
+ "enum": [ "vertical", "horizontal" ]
138
+ },
139
+ "mockedData": {
140
+ "description": "Enables the generation of a local data file",
141
+ "type": "boolean"
142
+ },
143
+ "dataPath": {
144
+ "description": "Sets a path to the local data file",
145
+ "type": "string",
146
+ "progress:hideOnPropertyValue": {
147
+ "property": "mockedData",
148
+ "value": true
149
+ }
150
+ },
151
+ "dataName": {
152
+ "description": "Sets a name to the local data property",
153
+ "type": "string",
154
+ "progress:hideOnPropertyValue": {
155
+ "property": "mockedData",
156
+ "value": true
157
+ }
158
+ },
159
+ "dataSourceType": {
160
+ "type": "string"
161
+ },
162
+ "dataSourceModule": {
163
+ "type": "string"
164
+ },
165
+ "dataSourceMember": {
166
+ "type": "string"
167
+ },
168
+ "dataSourceMethod": {
169
+ "type": "string"
170
+ }
171
+ },
172
+ "required": [
173
+ "name"
174
+ ]
175
+ }
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export declare const seriesData = "[\n { windSpeed: 16.4, rainfall: 5.4 },\n { windSpeed: 21.7, rainfall: 2 },\n { windSpeed: 25.4, rainfall: 3 },\n { windSpeed: 19, rainfall: 2 },\n { windSpeed: 10.9, rainfall: 1 },\n { windSpeed: 13.6, rainfall: 3.2 },\n { windSpeed: 10.9, rainfall: 7.4 },\n { windSpeed: 10.9, rainfall: 0 },\n { windSpeed: 10.9, rainfall: 8.2 },\n { windSpeed: 16.4, rainfall: 0 },\n { windSpeed: 16.4, rainfall: 1.8 },\n { windSpeed: 13.6, rainfall: 0.3 },\n { windSpeed: 29.9, rainfall: 0 },\n { windSpeed: 27.1, rainfall: 2.3 },\n { windSpeed: 16.4, rainfall: 0 },\n];";
@@ -0,0 +1,25 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.seriesData = void 0;
8
+ exports.seriesData = `[
9
+ { windSpeed: 16.4, rainfall: 5.4 },
10
+ { windSpeed: 21.7, rainfall: 2 },
11
+ { windSpeed: 25.4, rainfall: 3 },
12
+ { windSpeed: 19, rainfall: 2 },
13
+ { windSpeed: 10.9, rainfall: 1 },
14
+ { windSpeed: 13.6, rainfall: 3.2 },
15
+ { windSpeed: 10.9, rainfall: 7.4 },
16
+ { windSpeed: 10.9, rainfall: 0 },
17
+ { windSpeed: 10.9, rainfall: 8.2 },
18
+ { windSpeed: 16.4, rainfall: 0 },
19
+ { windSpeed: 16.4, rainfall: 1.8 },
20
+ { windSpeed: 13.6, rainfall: 0.3 },
21
+ { windSpeed: 29.9, rainfall: 0 },
22
+ { windSpeed: 27.1, rainfall: 2.3 },
23
+ { windSpeed: 16.4, rainfall: 0 },
24
+ ];`;
25
+ //# sourceMappingURL=data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../../../../libs/schematics/src/charts/scatter/files/data.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;;;;;;;;;;;;;;;;GAgBvB,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export const seriesData = `[
6
+ { windSpeed: 16.4, rainfall: 5.4 },
7
+ { windSpeed: 21.7, rainfall: 2 },
8
+ { windSpeed: 25.4, rainfall: 3 },
9
+ { windSpeed: 19, rainfall: 2 },
10
+ { windSpeed: 10.9, rainfall: 1 },
11
+ { windSpeed: 13.6, rainfall: 3.2 },
12
+ { windSpeed: 10.9, rainfall: 7.4 },
13
+ { windSpeed: 10.9, rainfall: 0 },
14
+ { windSpeed: 10.9, rainfall: 8.2 },
15
+ { windSpeed: 16.4, rainfall: 0 },
16
+ { windSpeed: 16.4, rainfall: 1.8 },
17
+ { windSpeed: 13.6, rainfall: 0.3 },
18
+ { windSpeed: 29.9, rainfall: 0 },
19
+ { windSpeed: 27.1, rainfall: 2.3 },
20
+ { windSpeed: 16.4, rainfall: 0 },
21
+ ];`;
@@ -0,0 +1,35 @@
1
+ <kendo-chart <% if (renderAs) {%>renderAs="<%=renderAs%>"<% } %>><% if (titleText) {%>
2
+ <kendo-chart-title
3
+ text="<%=titleText %>" <% if (titlePosition) {%>
4
+ position="<%=titlePosition%>" <% } %><% if (titleAlign) {%>
5
+ align="<%=titleAlign%>" <% } %>
6
+ ></kendo-chart-title><% }%><% if (legend) {%>
7
+ <kendo-chart-legend<% if (legendAlign) {%>
8
+ align="<%=legendAlign%>"<% } %><% if (legendPosition) {%>
9
+ position="<%=legendPosition%>"<% } %><% if (legendOrientation) {%>
10
+ orientation="<%=legendOrientation%>"<% } %><% if (legendTitleText || legendTitleAlign || legendTitlePosition) {%>
11
+ [title]="legendTitle"<% } %>></kendo-chart-legend><% }%>
12
+ <kendo-chart-series><% if (series.length) {%><% for (let item of series) {%>
13
+ <kendo-chart-series-item<% if (item.xField) {%>
14
+ xField="<%=item.xField%>"<% } %>
15
+ [data]="seriesData"<% if (item.yField) {%>
16
+ yField="<%=item.yField%>"<% } %><% if (item.name) {%>
17
+ name="<%=item.name%>"<% } %><% if (item.type) {%>
18
+ type="<%=item.type%>"<% } %><% if (item.width || item.width === 0) {%>
19
+ [width]="<%=item.width%>"<% } %>></kendo-chart-series-item><% } %><% } %>
20
+ </kendo-chart-series>
21
+ <kendo-chart-x-axis><% if (xAxis.length) {%><% for (let item of xAxis) {%>
22
+ <kendo-chart-x-axis-item<% if (item.name) {%>}
23
+ name="<%=item.name%>"<% } %><% if (item.type) {%>
24
+ type="<%=item.type%>"<% } %>><% if (item.title) {%>
25
+ <kendo-chart-x-axis-item-title text="<%=item.title%>"></kendo-chart-x-axis-item-title><% } %>
26
+ </kendo-chart-x-axis-item><% } %><% } %>
27
+ </kendo-chart-x-axis>
28
+ <kendo-chart-y-axis><% if (yAxis.length) {%><% for (let item of yAxis) {%>
29
+ <kendo-chart-y-axis-item<% if (item.name) {%>}
30
+ name="<%=item.name%>"<% } %><% if (item.type) {%>
31
+ type="<%=item.type%>"<% } %>><% if (item.title) {%>
32
+ <kendo-chart-y-axis-item-title text="<%=item.title%>"></kendo-chart-y-axis-item-title><% } %>
33
+ </kendo-chart-y-axis-item><% } %><% } %>
34
+ </kendo-chart-y-axis>
35
+ </kendo-chart>
@@ -0,0 +1,21 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Component } from '@angular/core';<% if (mockedData) {%>
6
+ import { seriesData } from './data'; <% } %><% if (legendTitleText || legendTitleAlign || legendTitlePosition) {%>
7
+ import { LegendTitle } from '@progress/kendo-angular-charts';<% } %>
8
+
9
+ @Component({
10
+ selector: '<%= dasherize(name) %>-component',
11
+ templateUrl: './<%= dasherize(name) %>.component.html',
12
+ <% if (!inlineStyle) {%>styleUrls: ['./<%= dasherize(name) %>.component.css']<% } else {%>styles: [``]<% } %>
13
+ })
14
+ export class <%= classify(name) %>Component {
15
+ <% if (mockedData) { %>public seriesData: any[] = seriesData;<%}%><% if (legendTitleText || legendTitleAlign || legendTitlePosition) {%>
16
+ public legendTitle: LegendTitle = {<% if (legendTitleText) {%>
17
+ text: '<%=legendTitleText%>',<% } %><% if (legendTitleAlign) {%>
18
+ align: '<%=legendTitleAlign%>',<% } %><% if (legendTitlePosition) {%>
19
+ position: '<%=legendTitlePosition%>'<% } %>
20
+ };<% } %>
21
+ }
@@ -0,0 +1,58 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Component } from '@angular/core';<% if (mockedData) {%>
6
+ import { seriesData } from './data'; <% } %><% if (legendTitleText || legendTitleAlign || legendTitlePosition) {%>
7
+ import { LegendTitle } from '@progress/kendo-angular-charts';<% } %>
8
+
9
+ @Component({
10
+ selector: '<%= dasherize(name) %>-component',
11
+ template: `
12
+ <kendo-chart <% if (renderAs) {%>renderAs="<%=renderAs%>"<% } %>><% if (titleText) {%>
13
+ <kendo-chart-title
14
+ text="<%=titleText %>" <% if (titlePosition) {%>
15
+ position="<%=titlePosition%>" <% } %><% if (titleAlign) {%>
16
+ align="<%=titleAlign%>" <% } %>
17
+ ></kendo-chart-title><% }%><% if (legend) {%>
18
+ <kendo-chart-legend<% if (legendAlign) {%>
19
+ align="<%=legendAlign%>"<% } %><% if (legendPosition) {%>
20
+ position="<%=legendPosition%>"<% } %><% if (legendOrientation) {%>
21
+ orientation="<%=legendOrientation%>"<% } %><% if (legendTitleText || legendTitleAlign || legendTitlePosition) {%>
22
+ [title]="legendTitle"<% } %>></kendo-chart-legend><% }%>
23
+ <kendo-chart-series><% if (series.length) {%><% for (let item of series) {%>
24
+ <kendo-chart-series-item<% if (item.xField) {%>
25
+ xField="<%=item.xField%>"<% } %>
26
+ [data]="seriesData"<% if (item.yField) {%>
27
+ yField="<%=item.yField%>"<% } %><% if (item.name) {%>
28
+ name="<%=item.name%>"<% } %><% if (item.type) {%>
29
+ type="<%=item.type%>"<% } %><% if (item.width || item.width === 0) {%>
30
+ [width]="<%=item.width%>"<% } %>></kendo-chart-series-item><% } %><% } %>
31
+ </kendo-chart-series>
32
+ <kendo-chart-x-axis><% if (xAxis.length) {%><% for (let item of xAxis) {%>
33
+ <kendo-chart-x-axis-item<% if (item.name) {%>}
34
+ name="<%=item.name%>"<% } %><% if (item.type) {%>
35
+ type="<%=item.type%>"<% } %>><% if (item.title) {%>
36
+ <kendo-chart-x-axis-item-title text="<%=item.title%>"></kendo-chart-x-axis-item-title><% } %>
37
+ </kendo-chart-x-axis-item><% } %><% } %>
38
+ </kendo-chart-x-axis>
39
+ <kendo-chart-y-axis><% if (yAxis.length) {%><% for (let item of yAxis) {%>
40
+ <kendo-chart-y-axis-item<% if (item.name) {%>}
41
+ name="<%=item.name%>"<% } %><% if (item.type) {%>
42
+ type="<%=item.type%>"<% } %>><% if (item.title) {%>
43
+ <kendo-chart-y-axis-item-title text="<%=item.title%>"></kendo-chart-y-axis-item-title><% } %>
44
+ </kendo-chart-y-axis-item><% } %><% } %>
45
+ </kendo-chart-y-axis>
46
+ </kendo-chart>
47
+ `,<% if (inlineStyle) {%>
48
+ styles: [``]<% } else {%>
49
+ styleUrls: ['./<%= dasherize(name) %>.component.css']<% } %>
50
+ })
51
+ export class <%= classify(name) %>Component {
52
+ public seriesData: any[] = seriesData;<% if (legendTitleText || legendTitleAlign || legendTitlePosition) {%>
53
+ public legendTitle: LegendTitle = {<% if (legendTitleText) {%>
54
+ text: '<%=legendTitleText%>',<% } %><% if (legendTitleAlign) {%>
55
+ align: '<%=legendTitleAlign%>',<% } %><% if (legendTitlePosition) {%>
56
+ position: '<%=legendTitlePosition%>'<% } %>
57
+ };<% } %>
58
+ }
@@ -0,0 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Rule } from '@angular-devkit/schematics';
6
+ import { SchemaScatter } from './schema';
7
+ export declare function chart(_options: SchemaScatter): Rule;
@@ -0,0 +1,50 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.chart = void 0;
8
+ const core_1 = require("@angular-devkit/core");
9
+ const strings_1 = require("@angular-devkit/core/src/utils/strings");
10
+ const schematics_1 = require("@angular-devkit/schematics");
11
+ const path_1 = require("path");
12
+ const utils_1 = require("../../utils");
13
+ const data_1 = require("./files/data");
14
+ function chart(_options) {
15
+ return (_tree, _context) => {
16
+ _options.name = (0, path_1.basename)(_options.name);
17
+ let path = (0, path_1.normalize)('/' + (0, path_1.dirname)((_options.path + '/' + _options.name)));
18
+ if (process.platform == "win32") {
19
+ path = path.replace(/\\/g, '/');
20
+ }
21
+ const parsedComplexOptions = (0, utils_1.parseComplexOptions)(['series', 'xAxis', 'yAxis'], _options);
22
+ const templateSource = (0, schematics_1.apply)((0, schematics_1.url)(_options.inlineTemplate ? './files/inline' : './files/html'), [
23
+ (0, schematics_1.template)({
24
+ classify: core_1.strings.classify,
25
+ dasherize: core_1.strings.dasherize,
26
+ arrayify(args) {
27
+ return args.map(s => `'${s}'`).join(", ");
28
+ },
29
+ ...Object.assign({}, _options, parsedComplexOptions)
30
+ }),
31
+ (0, schematics_1.move)(_options.path),
32
+ ]);
33
+ const angularComponentOptions = {
34
+ path: _options.path,
35
+ name: _options.name,
36
+ inlineTemplate: _options.inlineTemplate,
37
+ inlineStyle: _options.inlineStyle,
38
+ skipTests: _options.skipTests
39
+ };
40
+ if (_options.mockedData) {
41
+ _tree.create(`${_options.path}/${(0, strings_1.dasherize)(_options.name)}/data.ts`, `export const seriesData = ${data_1.seriesData}`);
42
+ }
43
+ return (0, schematics_1.chain)([
44
+ (0, schematics_1.externalSchematic)('@schematics/angular', 'component', angularComponentOptions),
45
+ (0, schematics_1.mergeWith)(templateSource, schematics_1.MergeStrategy.Overwrite)
46
+ ]);
47
+ };
48
+ }
49
+ exports.chart = chart;
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/schematics/src/charts/scatter/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oEAAmE;AACnE,2DAYoC;AAEpC,+BAAoD;AACpD,uCAAkD;AAElD,uCAA0C;AAE1C,SAAgB,KAAK,CAAC,QAAuB;IAC5C,OAAO,CAAC,KAAW,EAAE,QAA0B,EAAE,EAAE;QAClD,QAAQ,CAAC,IAAI,GAAG,IAAA,eAAQ,EAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAExC,IAAI,IAAI,GAAI,IAAA,gBAAS,EAAC,GAAG,GAAG,IAAA,cAAO,EAAC,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC5E,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,EAAE;YAChC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;SAChC;QAEK,MAAM,oBAAoB,GAAG,IAAA,2BAAmB,EAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;QAE/F,MAAM,cAAc,GAAG,IAAA,kBAAK,EAC3B,IAAA,gBAAG,EAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,cAAc,CAAC,EAAE;YACjE,IAAA,qBAAQ,EAAC;gBACR,QAAQ,EAAE,cAAO,CAAC,QAAQ;gBAC1B,SAAS,EAAE,cAAO,CAAC,SAAS;gBAC5B,QAAQ,CAAC,IAAc;oBACtB,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC3C,CAAC;gBACc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,oBAAoB,CAAC;aACnE,CAAC;YACF,IAAA,iBAAI,EAAC,QAAQ,CAAC,IAAI,CAAC;SACnB,CACD,CAAC;QAEI,MAAM,uBAAuB,GAAG;YACrC,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,cAAc,EAAE,QAAQ,CAAC,cAAc;YACvC,WAAW,EAAE,QAAQ,CAAC,WAAW;YACjC,SAAS,EAAE,QAAQ,CAAC,SAAS;SAC7B,CAAC;QAEF,IAAG,QAAQ,CAAC,UAAU,EAAE;YACvB,KAAK,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,IAAI,IAAA,mBAAS,EAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,6BAA6B,iBAAU,EAAE,CAAC,CAAC;SAChH;QAED,OAAO,IAAA,kBAAK,EAAC;YACZ,IAAA,8BAAiB,EAAC,qBAAqB,EAAE,WAAW,EAAE,uBAAuB,CAAC;YAC9E,IAAA,sBAAS,EAAC,cAAc,EAAE,0BAAa,CAAC,SAAS,CAAC;SAClD,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC;AA1CD,sBA0CC"}
@@ -0,0 +1,32 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export interface SchemaScatter {
6
+ path?: string;
7
+ name: string;
8
+ inlineStyle: boolean;
9
+ inlineTemplate: boolean;
10
+ skipTests: boolean;
11
+ titleText?: string;
12
+ titlePosition?: 'top' | 'bottom';
13
+ titleAlign?: 'left' | 'right' | 'center';
14
+ renderAs?: 'canvas' | 'svg';
15
+ series?: string;
16
+ categoryAxis?: string;
17
+ valueAxis?: string;
18
+ legend?: boolean;
19
+ legendTitleText?: string;
20
+ legendTitleAlign?: 'left' | 'right' | 'center';
21
+ legendTitlePosition?: 'top' | 'bottom';
22
+ legendAlign?: 'center' | 'start' | 'end';
23
+ legendOrientation?: 'vertical' | 'horizontal';
24
+ legendPosition?: 'top' | 'bottom' | 'left' | 'right' | 'custom';
25
+ dataPath?: string;
26
+ dataName: string;
27
+ mockedData?: boolean;
28
+ dataSourceType?: string;
29
+ dataSourceModule?: string;
30
+ dataSourceMember?: string;
31
+ dataSourceMethod?: string;
32
+ }
@@ -0,0 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../../libs/schematics/src/charts/scatter/schema.ts"],"names":[],"mappings":""}