@progress/kendo-angular-schematics 13.5.0-develop.3 → 13.5.0-develop.5

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 (134) hide show
  1. package/collection.json +9 -27
  2. package/e2e/utils.d.ts +17 -0
  3. package/e2e/utils.js +71 -0
  4. package/e2e/utils.js.map +1 -0
  5. package/package.json +5 -2
  6. package/src/chart/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.__style__.template +6 -0
  7. package/src/chart/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.html.template +1 -0
  8. package/src/chart/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +21 -0
  9. package/src/chart/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +34 -0
  10. package/src/chart/files/chart.html.include +103 -0
  11. package/src/{charts/circular → chart}/index.d.ts +2 -2
  12. package/src/chart/index.js +238 -0
  13. package/src/chart/index.js.map +1 -0
  14. package/src/chart/schema.d.ts +230 -0
  15. package/src/chart/schema.js +72 -0
  16. package/src/chart/schema.js.map +1 -0
  17. package/src/chart/schema.json +235 -0
  18. package/src/grid/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.__style__.template +6 -0
  19. package/src/grid/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.html.template +1 -0
  20. package/src/grid/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +21 -0
  21. package/src/grid/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +37 -0
  22. package/src/grid/files/__name@dasherize@if-flat__/__name@dasherize__.sample-data.ts.template +1233 -0
  23. package/src/grid/files/{html/__name@dasherize__/__name@dasherize__.component.html → grid.html.include} +4 -9
  24. package/src/grid/index.d.ts +2 -2
  25. package/src/grid/index.js +77 -61
  26. package/src/grid/index.js.map +1 -1
  27. package/src/grid/schema.d.ts +12 -11
  28. package/src/grid/schema.js +16 -5
  29. package/src/grid/schema.js.map +1 -1
  30. package/src/grid/schema.json +82 -37
  31. package/src/ngAdd/index.js +2 -1
  32. package/src/ngAdd/index.js.map +1 -1
  33. package/src/rules/index.js +2 -1
  34. package/src/rules/index.js.map +1 -1
  35. package/src/scheduler/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.__style__.template +6 -0
  36. package/src/scheduler/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.html.template +1 -0
  37. package/src/scheduler/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +21 -0
  38. package/src/scheduler/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +26 -0
  39. package/src/scheduler/files/{events-utc.ts → __name@dasherize@if-flat__/__name@dasherize__.sample-data.ts.template} +0 -6
  40. package/src/scheduler/files/scheduler.html.include +7 -0
  41. package/src/scheduler/index.d.ts +2 -2
  42. package/src/scheduler/index.js +54 -32
  43. package/src/scheduler/index.js.map +1 -1
  44. package/src/scheduler/schema.d.ts +10 -2
  45. package/src/scheduler/schema.json +78 -2
  46. package/src/third_party/d3fc/d3fc-rebind/rebindAll.js +32 -0
  47. package/src/third_party/d3fc/day.js +61 -0
  48. package/src/third_party/d3fc/duration.js +34 -0
  49. package/src/third_party/d3fc/filter/skipWeekends.js +32 -0
  50. package/src/third_party/d3fc/financial.js +184 -0
  51. package/src/third_party/d3fc/fn.js +31 -0
  52. package/src/third_party/d3fc/geometricBrownianMotion.js +94 -0
  53. package/src/third_party/d3fc/interval.js +89 -0
  54. package/src/third_party/d3fc/randomNormal.js +49 -0
  55. package/src/third_party/d3fc/year.js +71 -0
  56. package/src/third_party/index.d.ts +28 -0
  57. package/src/third_party/index.js +40 -0
  58. package/src/third_party/index.js.map +1 -0
  59. package/src/third_party/index.v13.d.ts +13 -0
  60. package/src/third_party/index.v13.js +67 -0
  61. package/src/third_party/index.v13.js.map +1 -0
  62. package/src/utils/ast-utils.js +2 -1
  63. package/src/utils/ast-utils.js.map +1 -1
  64. package/src/utils/bootstrap-module.js +2 -1
  65. package/src/utils/bootstrap-module.js.map +1 -1
  66. package/src/{charts/scatter/schema.js → utils/parse-complex-options.d.ts} +1 -3
  67. package/src/utils/parse-complex-options.js +32 -0
  68. package/src/utils/parse-complex-options.js.map +1 -0
  69. package/src/charts/categorical/files/data.d.ts +0 -5
  70. package/src/charts/categorical/files/data.js +0 -29
  71. package/src/charts/categorical/files/data.js.map +0 -1
  72. package/src/charts/categorical/files/data.ts +0 -25
  73. package/src/charts/categorical/files/html/__name@dasherize__/__name@dasherize__.component.html +0 -46
  74. package/src/charts/categorical/files/html/__name@dasherize__/__name@dasherize__.component.ts +0 -25
  75. package/src/charts/categorical/files/inline/__name@dasherize__/__name@dasherize__.component.ts +0 -69
  76. package/src/charts/categorical/index.d.ts +0 -7
  77. package/src/charts/categorical/index.js +0 -124
  78. package/src/charts/categorical/index.js.map +0 -1
  79. package/src/charts/categorical/schema.d.ts +0 -92
  80. package/src/charts/categorical/schema.js +0 -54
  81. package/src/charts/categorical/schema.js.map +0 -1
  82. package/src/charts/categorical/schema.json +0 -253
  83. package/src/charts/circular/files/data.d.ts +0 -5
  84. package/src/charts/circular/files/data.js +0 -15
  85. package/src/charts/circular/files/data.js.map +0 -1
  86. package/src/charts/circular/files/data.ts +0 -11
  87. package/src/charts/circular/files/html/__name@dasherize__/__name@dasherize__.component.html +0 -27
  88. package/src/charts/circular/files/html/__name@dasherize__/__name@dasherize__.component.ts +0 -23
  89. package/src/charts/circular/files/inline/__name@dasherize__/__name@dasherize__.component.ts +0 -52
  90. package/src/charts/circular/index.js +0 -50
  91. package/src/charts/circular/index.js.map +0 -1
  92. package/src/charts/circular/schema.d.ts +0 -31
  93. package/src/charts/circular/schema.js +0 -7
  94. package/src/charts/circular/schema.js.map +0 -1
  95. package/src/charts/circular/schema.json +0 -175
  96. package/src/charts/scatter/files/data.d.ts +0 -5
  97. package/src/charts/scatter/files/data.js +0 -25
  98. package/src/charts/scatter/files/data.js.map +0 -1
  99. package/src/charts/scatter/files/data.ts +0 -21
  100. package/src/charts/scatter/files/html/__name@dasherize__/__name@dasherize__.component.html +0 -35
  101. package/src/charts/scatter/files/html/__name@dasherize__/__name@dasherize__.component.ts +0 -21
  102. package/src/charts/scatter/files/inline/__name@dasherize__/__name@dasherize__.component.ts +0 -58
  103. package/src/charts/scatter/index.d.ts +0 -7
  104. package/src/charts/scatter/index.js +0 -50
  105. package/src/charts/scatter/index.js.map +0 -1
  106. package/src/charts/scatter/schema.d.ts +0 -32
  107. package/src/charts/scatter/schema.js.map +0 -1
  108. package/src/charts/scatter/schema.json +0 -209
  109. package/src/charts/stock/files/data.d.ts +0 -5
  110. package/src/charts/stock/files/data.js +0 -418
  111. package/src/charts/stock/files/data.js.map +0 -1
  112. package/src/charts/stock/files/data.ts +0 -414
  113. package/src/charts/stock/files/html/__name@dasherize__/__name@dasherize__.component.html +0 -57
  114. package/src/charts/stock/files/html/__name@dasherize__/__name@dasherize__.component.ts +0 -23
  115. package/src/charts/stock/files/inline/__name@dasherize__/__name@dasherize__.component.ts +0 -83
  116. package/src/charts/stock/index.d.ts +0 -7
  117. package/src/charts/stock/index.js +0 -50
  118. package/src/charts/stock/index.js.map +0 -1
  119. package/src/charts/stock/schema.d.ts +0 -36
  120. package/src/charts/stock/schema.js +0 -7
  121. package/src/charts/stock/schema.js.map +0 -1
  122. package/src/charts/stock/schema.json +0 -285
  123. package/src/grid/files/data.d.ts +0 -5
  124. package/src/grid/files/data.js +0 -1241
  125. package/src/grid/files/data.js.map +0 -1
  126. package/src/grid/files/data.ts +0 -1237
  127. package/src/grid/files/html/__name@dasherize__/__name@dasherize__.component.ts +0 -29
  128. package/src/grid/files/inline/__name@dasherize__/__name@dasherize__.component.ts +0 -79
  129. package/src/scheduler/files/events-utc.d.ts +0 -5
  130. package/src/scheduler/files/events-utc.js +0 -846
  131. package/src/scheduler/files/events-utc.js.map +0 -1
  132. package/src/scheduler/files/html/__name@dasherize__/__name@dasherize__.component.html +0 -29
  133. package/src/scheduler/files/html/__name@dasherize__/__name@dasherize__.component.ts +0 -17
  134. package/src/scheduler/files/inline/__name@dasherize__/__name@dasherize__.component.ts +0 -48
@@ -1,175 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 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];";
@@ -1,25 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../../../../libs/schematics/src/charts/scatter/files/data.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;;;;;;;;;;;;;;;;GAgBvB,CAAC"}
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 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
- ];`;
@@ -1,35 +0,0 @@
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>
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 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
- }
@@ -1,58 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 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
- }
@@ -1,7 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 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;
@@ -1,50 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 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
@@ -1 +0,0 @@
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"}
@@ -1,32 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 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
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../../libs/schematics/src/charts/scatter/schema.ts"],"names":[],"mappings":""}