genesys-spark-chart-components 4.12.1-beta.1

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 (142) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/cjs/genesys-chart-webcomponents.cjs.js +23 -0
  4. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +140 -0
  5. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +229 -0
  6. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +135 -0
  7. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +113 -0
  8. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +143 -0
  9. package/dist/cjs/gux-visualization-beta.cjs.entry.js +71953 -0
  10. package/dist/cjs/index-1e13a15f.js +1647 -0
  11. package/dist/cjs/index.cjs.js +2 -0
  12. package/dist/cjs/loader.cjs.js +13 -0
  13. package/dist/cjs/log-error-c46b4b4c.js +21 -0
  14. package/dist/cjs/usage-30f04ec3.js +208 -0
  15. package/dist/collection/collection-manifest.json +17 -0
  16. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.css +13 -0
  17. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +343 -0
  18. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.locale.js +92 -0
  19. package/dist/collection/components/beta/gux-chart-column/tests/gux-column-chart.spec.js +22 -0
  20. package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.css +4 -0
  21. package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +575 -0
  22. package/dist/collection/components/beta/gux-chart-donut/tests/gux-chart-donut.spec.js +11 -0
  23. package/dist/collection/components/beta/gux-chart-line/gux-chart-line.css +4 -0
  24. package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +391 -0
  25. package/dist/collection/components/beta/gux-chart-line/gux-chart-line.locale.js +92 -0
  26. package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.e2e.js +17 -0
  27. package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.spec.js +22 -0
  28. package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.css +4 -0
  29. package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +284 -0
  30. package/dist/collection/components/beta/gux-chart-pie/tests/gux-chart-pie.spec.js +11 -0
  31. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.css +4 -0
  32. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +365 -0
  33. package/dist/collection/components/beta/gux-chart-scatter-plot/tests/gux-chart-scatter-plot.spec.js +33 -0
  34. package/dist/collection/components/beta/gux-visualization/gux-visualization.css +19 -0
  35. package/dist/collection/components/beta/gux-visualization/gux-visualization.js +143 -0
  36. package/dist/collection/components/beta/gux-visualization/gux-visualization.locale.js +92 -0
  37. package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.e2e.js +31 -0
  38. package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.spec.js +35 -0
  39. package/dist/collection/i18n/fetchResources.js +12 -0
  40. package/dist/collection/i18n/index.js +73 -0
  41. package/dist/collection/index.js +2 -0
  42. package/dist/collection/test/axeConfig.js +7 -0
  43. package/dist/collection/test/e2eTestUtils.js +20 -0
  44. package/dist/collection/test/jestMatcherUtils.js +1 -0
  45. package/dist/collection/test/setupAxeTests.js +75 -0
  46. package/dist/collection/test/setupTests.js +9 -0
  47. package/dist/collection/test/specTestUtils.js +10 -0
  48. package/dist/collection/utils/dom/get-closest-element.js +15 -0
  49. package/dist/collection/utils/error/log-error.js +6 -0
  50. package/dist/collection/utils/theme/color-palette.js +12 -0
  51. package/dist/collection/utils/tracking/usage.js +81 -0
  52. package/dist/collection/utils/tracking/usage.spec.js +121 -0
  53. package/dist/component-specs.json +187 -0
  54. package/dist/esm/genesys-chart-webcomponents.js +18 -0
  55. package/dist/esm/gux-chart-column-beta.entry.js +136 -0
  56. package/dist/esm/gux-chart-donut-beta.entry.js +225 -0
  57. package/dist/esm/gux-chart-line-beta.entry.js +131 -0
  58. package/dist/esm/gux-chart-pie-beta.entry.js +109 -0
  59. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +139 -0
  60. package/dist/esm/gux-visualization-beta.entry.js +71949 -0
  61. package/dist/esm/index-701d93cf.js +1619 -0
  62. package/dist/esm/index.js +1 -0
  63. package/dist/esm/loader.js +9 -0
  64. package/dist/esm/log-error-0fc61f6f.js +18 -0
  65. package/dist/esm/polyfills/core-js.js +11 -0
  66. package/dist/esm/polyfills/dom.js +79 -0
  67. package/dist/esm/polyfills/es5-html-element.js +1 -0
  68. package/dist/esm/polyfills/index.js +34 -0
  69. package/dist/esm/polyfills/system.js +6 -0
  70. package/dist/esm/usage-61eee3bd.js +206 -0
  71. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.css +1 -0
  72. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -0
  73. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.ar.json +1 -0
  74. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.cs.json +1 -0
  75. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.da.json +1 -0
  76. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -0
  77. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -0
  78. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.es-es.json +1 -0
  79. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.es.json +1 -0
  80. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.fi.json +1 -0
  81. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.fr-ca.json +1 -0
  82. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.fr.json +1 -0
  83. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.he.json +1 -0
  84. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.it.json +1 -0
  85. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.ja.json +1 -0
  86. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.ko.json +1 -0
  87. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.nl.json +1 -0
  88. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.no.json +1 -0
  89. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -0
  90. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.pt-br.json +1 -0
  91. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.pt-pt.json +1 -0
  92. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.ru.json +1 -0
  93. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.sv.json +1 -0
  94. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.th.json +1 -0
  95. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.tr.json +1 -0
  96. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.uk.json +1 -0
  97. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -0
  98. package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.zh-tw.json +1 -0
  99. package/dist/genesys-chart-webcomponents/index.esm.js +0 -0
  100. package/dist/genesys-chart-webcomponents/p-137f5b8f.entry.js +1 -0
  101. package/dist/genesys-chart-webcomponents/p-3e4b3dbc.js +2 -0
  102. package/dist/genesys-chart-webcomponents/p-82f0ea01.js +1 -0
  103. package/dist/genesys-chart-webcomponents/p-97c45977.js +1 -0
  104. package/dist/genesys-chart-webcomponents/p-b5179379.entry.js +1 -0
  105. package/dist/genesys-chart-webcomponents/p-b901e9e0.entry.js +11 -0
  106. package/dist/genesys-chart-webcomponents/p-c3aa8578.entry.js +1 -0
  107. package/dist/genesys-chart-webcomponents/p-d4a346df.entry.js +1 -0
  108. package/dist/genesys-chart-webcomponents/p-d9928f8c.entry.js +1 -0
  109. package/dist/index.cjs.js +1 -0
  110. package/dist/index.js +1 -0
  111. package/dist/loader/cdn.js +3 -0
  112. package/dist/loader/index.cjs.js +3 -0
  113. package/dist/loader/index.d.ts +21 -0
  114. package/dist/loader/index.es2017.js +3 -0
  115. package/dist/loader/index.js +4 -0
  116. package/dist/loader/package.json +11 -0
  117. package/dist/stencil-wrapper.js +58 -0
  118. package/dist/types/components/beta/gux-chart-column/gux-chart-column.d.ts +49 -0
  119. package/dist/types/components/beta/gux-chart-column/gux-chart-column.locale.d.ts +22 -0
  120. package/dist/types/components/beta/gux-chart-donut/gux-chart-donut.d.ts +34 -0
  121. package/dist/types/components/beta/gux-chart-line/gux-chart-line.d.ts +48 -0
  122. package/dist/types/components/beta/gux-chart-line/gux-chart-line.locale.d.ts +22 -0
  123. package/dist/types/components/beta/gux-chart-pie/gux-chart-pie.d.ts +23 -0
  124. package/dist/types/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.d.ts +52 -0
  125. package/dist/types/components/beta/gux-visualization/gux-visualization.d.ts +17 -0
  126. package/dist/types/components/beta/gux-visualization/gux-visualization.locale.d.ts +22 -0
  127. package/dist/types/components.d.ts +480 -0
  128. package/dist/types/i18n/fetchResources.d.ts +11 -0
  129. package/dist/types/i18n/index.d.ts +9 -0
  130. package/dist/types/index.d.ts +3 -0
  131. package/dist/types/stencil-public-runtime.d.ts +1671 -0
  132. package/dist/types/stencil-wrapper.d.ts +2 -0
  133. package/dist/types/test/axeConfig.d.ts +6 -0
  134. package/dist/types/test/e2eTestUtils.d.ts +9 -0
  135. package/dist/types/test/jestMatcherUtils.d.ts +8 -0
  136. package/dist/types/test/specTestUtils.d.ts +2 -0
  137. package/dist/types/typings.d.ts +4 -0
  138. package/dist/types/utils/dom/get-closest-element.d.ts +1 -0
  139. package/dist/types/utils/error/log-error.d.ts +2 -0
  140. package/dist/types/utils/theme/color-palette.d.ts +1 -0
  141. package/dist/types/utils/tracking/usage.d.ts +27 -0
  142. package/package.json +118 -0
@@ -0,0 +1,480 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { EmbedOptions, VisualizationSpec } from "vega-embed";
9
+ export { EmbedOptions, VisualizationSpec } from "vega-embed";
10
+ export namespace Components {
11
+ interface GuxChartColumnBeta {
12
+ /**
13
+ * Data to be rendered in the chart. Data field names must match the values you set in xFieldName and yFieldName
14
+ */
15
+ "chartData": Record<string, any>;
16
+ /**
17
+ * List specifying the order of optional chart layers. For correct chart layering, each chartData entry must also include a "series" field with a value indicating which layer the entry belongs to, e.g 'series': 'group1'
18
+ */
19
+ "chartLayers": string[];
20
+ "embedOptions": EmbedOptions;
21
+ "includeLegend": boolean;
22
+ "legendPosition": | 'left'
23
+ | 'right'
24
+ | 'top'
25
+ | 'bottom'
26
+ | 'top-left'
27
+ | 'top-right'
28
+ | 'bottom-left'
29
+ | 'bottom-right'
30
+ | 'none';
31
+ /**
32
+ * Title to display above the optional legend
33
+ */
34
+ "legendTitle": string;
35
+ /**
36
+ * Title to display along the x-axis
37
+ */
38
+ "xAxisTitle": string;
39
+ /**
40
+ * Name for the data field to use to populate the chart's x-axis e.g. xFieldName of "category" will map any "category" fields in chartData to the x-axis
41
+ */
42
+ "xFieldName": string;
43
+ /**
44
+ * If true, then make Axis tick label 45 degrees
45
+ */
46
+ "xTickLabelSlant": boolean;
47
+ /**
48
+ * Title to display along the y-axis
49
+ */
50
+ "yAxisTitle": string;
51
+ /**
52
+ * Name for the data field to use to populate the chart's x-axis e.g. yFieldName of "value" will map any "value" fields in chartData to the y-axis
53
+ */
54
+ "yFieldName": string;
55
+ }
56
+ interface GuxChartDonutBeta {
57
+ "centerSubText": string;
58
+ "centerText": string;
59
+ /**
60
+ * Data to be rendered in the chart. Data field names must match the values you set in xFieldName and yFieldName
61
+ */
62
+ "chartData": Record<string, any>;
63
+ "colorFieldName": string;
64
+ "embedOptions": EmbedOptions;
65
+ "gauge": boolean;
66
+ "includeLegend": boolean;
67
+ "innerRadius": number;
68
+ "labelField": string;
69
+ "labelRadius": number;
70
+ "legendFontSize": number;
71
+ "legendPosition": | 'left'
72
+ | 'right'
73
+ | 'top'
74
+ | 'bottom'
75
+ | 'top-left'
76
+ | 'top-right'
77
+ | 'bottom-left'
78
+ | 'bottom-right'
79
+ | 'none';
80
+ "legendSymbolSize": number;
81
+ "legendTitle": string;
82
+ "legendX": number;
83
+ "legendY": number;
84
+ "outerRadius": number;
85
+ "showTooltip": boolean;
86
+ "tooltipOptions": EmbedOptions;
87
+ }
88
+ interface GuxChartLineBeta {
89
+ /**
90
+ * Data to be rendered in the chart. Data field names must match the values you set in xFieldName and yFieldName
91
+ */
92
+ "chartData": Record<string, any>;
93
+ "colorFieldName": string;
94
+ "embedOptions": EmbedOptions;
95
+ "includeDataPointMarkers": boolean;
96
+ "includeLegend": boolean;
97
+ "interpolation": string;
98
+ "legendPosition": | 'left'
99
+ | 'right'
100
+ | 'top'
101
+ | 'bottom'
102
+ | 'top-left'
103
+ | 'top-right'
104
+ | 'bottom-left'
105
+ | 'bottom-right'
106
+ | 'none';
107
+ /**
108
+ * Title to display above the optional legend
109
+ */
110
+ "legendTitle": string;
111
+ "strokeDash": boolean;
112
+ /**
113
+ * Title to display along the x-axis
114
+ */
115
+ "xAxisTitle": string;
116
+ /**
117
+ * Name for the data field to use to populate the chart's x-axis e.g. xFieldName of "category" will map any "category" fields in chartData to the x-axis
118
+ */
119
+ "xFieldName": string;
120
+ /**
121
+ * If true, then make Axis tick label 45 degrees
122
+ */
123
+ "xTickLabelSlant": boolean;
124
+ /**
125
+ * Title to display along the y-axis
126
+ */
127
+ "yAxisTitle": string;
128
+ /**
129
+ * Name for the data field to use to populate the chart's x-axis e.g. yFieldName of "value" will map any "value" fields in chartData to the y-axis
130
+ */
131
+ "yFieldName": string;
132
+ }
133
+ interface GuxChartPieBeta {
134
+ /**
135
+ * Data to be rendered in the chart. Data field names must match the values you set in xFieldName and yFieldName
136
+ */
137
+ "chartData": Record<string, any>;
138
+ "colorFieldName": string;
139
+ "embedOptions": EmbedOptions;
140
+ "includeLegend": boolean;
141
+ "labelField": string;
142
+ "labelRadius": number;
143
+ "legendPosition": | 'left'
144
+ | 'right'
145
+ | 'top'
146
+ | 'bottom'
147
+ | 'top-left'
148
+ | 'top-right'
149
+ | 'bottom-left'
150
+ | 'bottom-right'
151
+ | 'none';
152
+ "legendTitle": string;
153
+ "outerRadius": number;
154
+ }
155
+ interface GuxChartScatterPlotBeta {
156
+ /**
157
+ * Data to be rendered in the chart. Data field names must match the values you set in xFieldName and yFieldName
158
+ */
159
+ "chartData": Record<string, any>;
160
+ /**
161
+ * Type of category to plot in the chart
162
+ */
163
+ "colorFieldName": string;
164
+ "embedOptions": EmbedOptions;
165
+ "includeLegend": boolean;
166
+ "legendPosition": | 'left'
167
+ | 'right'
168
+ | 'top'
169
+ | 'bottom'
170
+ | 'top-left'
171
+ | 'top-right'
172
+ | 'bottom-left'
173
+ | 'bottom-right'
174
+ | 'none';
175
+ /**
176
+ * Title to display above the optional legend
177
+ */
178
+ "legendTitle": string;
179
+ /**
180
+ * The shape of the plotting in the chart - Square, Circle and Point
181
+ */
182
+ "useShape": string;
183
+ /**
184
+ * Title to display along the x-axis
185
+ */
186
+ "xAxisTitle": string;
187
+ /**
188
+ * Name for the data field to use to populate the chart's x-axis e.g. xFieldName of "category" will map any "category" fields in chartData to the x-axis
189
+ */
190
+ "xFieldName": string;
191
+ /**
192
+ * If true, then make Axis tick label 45 degrees
193
+ */
194
+ "xTickLabelSlant": boolean;
195
+ /**
196
+ * Title to display along the y-axis
197
+ */
198
+ "yAxisTitle": string;
199
+ /**
200
+ * Name for the data field to use to populate the chart's x-axis e.g. yFieldName of "value" will map any "value" fields in chartData to the y-axis
201
+ */
202
+ "yFieldName": string;
203
+ }
204
+ interface GuxVisualizationBeta {
205
+ "embedOptions": EmbedOptions;
206
+ "visualizationSpec": VisualizationSpec;
207
+ }
208
+ }
209
+ export interface GuxVisualizationBetaCustomEvent<T> extends CustomEvent<T> {
210
+ detail: T;
211
+ target: HTMLGuxVisualizationBetaElement;
212
+ }
213
+ declare global {
214
+ interface HTMLGuxChartColumnBetaElement extends Components.GuxChartColumnBeta, HTMLStencilElement {
215
+ }
216
+ var HTMLGuxChartColumnBetaElement: {
217
+ prototype: HTMLGuxChartColumnBetaElement;
218
+ new (): HTMLGuxChartColumnBetaElement;
219
+ };
220
+ interface HTMLGuxChartDonutBetaElement extends Components.GuxChartDonutBeta, HTMLStencilElement {
221
+ }
222
+ var HTMLGuxChartDonutBetaElement: {
223
+ prototype: HTMLGuxChartDonutBetaElement;
224
+ new (): HTMLGuxChartDonutBetaElement;
225
+ };
226
+ interface HTMLGuxChartLineBetaElement extends Components.GuxChartLineBeta, HTMLStencilElement {
227
+ }
228
+ var HTMLGuxChartLineBetaElement: {
229
+ prototype: HTMLGuxChartLineBetaElement;
230
+ new (): HTMLGuxChartLineBetaElement;
231
+ };
232
+ interface HTMLGuxChartPieBetaElement extends Components.GuxChartPieBeta, HTMLStencilElement {
233
+ }
234
+ var HTMLGuxChartPieBetaElement: {
235
+ prototype: HTMLGuxChartPieBetaElement;
236
+ new (): HTMLGuxChartPieBetaElement;
237
+ };
238
+ interface HTMLGuxChartScatterPlotBetaElement extends Components.GuxChartScatterPlotBeta, HTMLStencilElement {
239
+ }
240
+ var HTMLGuxChartScatterPlotBetaElement: {
241
+ prototype: HTMLGuxChartScatterPlotBetaElement;
242
+ new (): HTMLGuxChartScatterPlotBetaElement;
243
+ };
244
+ interface HTMLGuxVisualizationBetaElement extends Components.GuxVisualizationBeta, HTMLStencilElement {
245
+ }
246
+ var HTMLGuxVisualizationBetaElement: {
247
+ prototype: HTMLGuxVisualizationBetaElement;
248
+ new (): HTMLGuxVisualizationBetaElement;
249
+ };
250
+ interface HTMLElementTagNameMap {
251
+ "gux-chart-column-beta": HTMLGuxChartColumnBetaElement;
252
+ "gux-chart-donut-beta": HTMLGuxChartDonutBetaElement;
253
+ "gux-chart-line-beta": HTMLGuxChartLineBetaElement;
254
+ "gux-chart-pie-beta": HTMLGuxChartPieBetaElement;
255
+ "gux-chart-scatter-plot-beta": HTMLGuxChartScatterPlotBetaElement;
256
+ "gux-visualization-beta": HTMLGuxVisualizationBetaElement;
257
+ }
258
+ }
259
+ declare namespace LocalJSX {
260
+ interface GuxChartColumnBeta {
261
+ /**
262
+ * Data to be rendered in the chart. Data field names must match the values you set in xFieldName and yFieldName
263
+ */
264
+ "chartData"?: Record<string, any>;
265
+ /**
266
+ * List specifying the order of optional chart layers. For correct chart layering, each chartData entry must also include a "series" field with a value indicating which layer the entry belongs to, e.g 'series': 'group1'
267
+ */
268
+ "chartLayers"?: string[];
269
+ "embedOptions"?: EmbedOptions;
270
+ "includeLegend"?: boolean;
271
+ "legendPosition"?: | 'left'
272
+ | 'right'
273
+ | 'top'
274
+ | 'bottom'
275
+ | 'top-left'
276
+ | 'top-right'
277
+ | 'bottom-left'
278
+ | 'bottom-right'
279
+ | 'none';
280
+ /**
281
+ * Title to display above the optional legend
282
+ */
283
+ "legendTitle"?: string;
284
+ /**
285
+ * Title to display along the x-axis
286
+ */
287
+ "xAxisTitle"?: string;
288
+ /**
289
+ * Name for the data field to use to populate the chart's x-axis e.g. xFieldName of "category" will map any "category" fields in chartData to the x-axis
290
+ */
291
+ "xFieldName"?: string;
292
+ /**
293
+ * If true, then make Axis tick label 45 degrees
294
+ */
295
+ "xTickLabelSlant"?: boolean;
296
+ /**
297
+ * Title to display along the y-axis
298
+ */
299
+ "yAxisTitle"?: string;
300
+ /**
301
+ * Name for the data field to use to populate the chart's x-axis e.g. yFieldName of "value" will map any "value" fields in chartData to the y-axis
302
+ */
303
+ "yFieldName"?: string;
304
+ }
305
+ interface GuxChartDonutBeta {
306
+ "centerSubText"?: string;
307
+ "centerText"?: string;
308
+ /**
309
+ * Data to be rendered in the chart. Data field names must match the values you set in xFieldName and yFieldName
310
+ */
311
+ "chartData"?: Record<string, any>;
312
+ "colorFieldName"?: string;
313
+ "embedOptions"?: EmbedOptions;
314
+ "gauge"?: boolean;
315
+ "includeLegend"?: boolean;
316
+ "innerRadius"?: number;
317
+ "labelField"?: string;
318
+ "labelRadius"?: number;
319
+ "legendFontSize"?: number;
320
+ "legendPosition"?: | 'left'
321
+ | 'right'
322
+ | 'top'
323
+ | 'bottom'
324
+ | 'top-left'
325
+ | 'top-right'
326
+ | 'bottom-left'
327
+ | 'bottom-right'
328
+ | 'none';
329
+ "legendSymbolSize"?: number;
330
+ "legendTitle"?: string;
331
+ "legendX"?: number;
332
+ "legendY"?: number;
333
+ "outerRadius"?: number;
334
+ "showTooltip"?: boolean;
335
+ "tooltipOptions"?: EmbedOptions;
336
+ }
337
+ interface GuxChartLineBeta {
338
+ /**
339
+ * Data to be rendered in the chart. Data field names must match the values you set in xFieldName and yFieldName
340
+ */
341
+ "chartData"?: Record<string, any>;
342
+ "colorFieldName"?: string;
343
+ "embedOptions"?: EmbedOptions;
344
+ "includeDataPointMarkers"?: boolean;
345
+ "includeLegend"?: boolean;
346
+ "interpolation"?: string;
347
+ "legendPosition"?: | 'left'
348
+ | 'right'
349
+ | 'top'
350
+ | 'bottom'
351
+ | 'top-left'
352
+ | 'top-right'
353
+ | 'bottom-left'
354
+ | 'bottom-right'
355
+ | 'none';
356
+ /**
357
+ * Title to display above the optional legend
358
+ */
359
+ "legendTitle"?: string;
360
+ "strokeDash"?: boolean;
361
+ /**
362
+ * Title to display along the x-axis
363
+ */
364
+ "xAxisTitle"?: string;
365
+ /**
366
+ * Name for the data field to use to populate the chart's x-axis e.g. xFieldName of "category" will map any "category" fields in chartData to the x-axis
367
+ */
368
+ "xFieldName"?: string;
369
+ /**
370
+ * If true, then make Axis tick label 45 degrees
371
+ */
372
+ "xTickLabelSlant"?: boolean;
373
+ /**
374
+ * Title to display along the y-axis
375
+ */
376
+ "yAxisTitle"?: string;
377
+ /**
378
+ * Name for the data field to use to populate the chart's x-axis e.g. yFieldName of "value" will map any "value" fields in chartData to the y-axis
379
+ */
380
+ "yFieldName"?: string;
381
+ }
382
+ interface GuxChartPieBeta {
383
+ /**
384
+ * Data to be rendered in the chart. Data field names must match the values you set in xFieldName and yFieldName
385
+ */
386
+ "chartData"?: Record<string, any>;
387
+ "colorFieldName"?: string;
388
+ "embedOptions"?: EmbedOptions;
389
+ "includeLegend"?: boolean;
390
+ "labelField"?: string;
391
+ "labelRadius"?: number;
392
+ "legendPosition"?: | 'left'
393
+ | 'right'
394
+ | 'top'
395
+ | 'bottom'
396
+ | 'top-left'
397
+ | 'top-right'
398
+ | 'bottom-left'
399
+ | 'bottom-right'
400
+ | 'none';
401
+ "legendTitle"?: string;
402
+ "outerRadius"?: number;
403
+ }
404
+ interface GuxChartScatterPlotBeta {
405
+ /**
406
+ * Data to be rendered in the chart. Data field names must match the values you set in xFieldName and yFieldName
407
+ */
408
+ "chartData"?: Record<string, any>;
409
+ /**
410
+ * Type of category to plot in the chart
411
+ */
412
+ "colorFieldName"?: string;
413
+ "embedOptions"?: EmbedOptions;
414
+ "includeLegend"?: boolean;
415
+ "legendPosition"?: | 'left'
416
+ | 'right'
417
+ | 'top'
418
+ | 'bottom'
419
+ | 'top-left'
420
+ | 'top-right'
421
+ | 'bottom-left'
422
+ | 'bottom-right'
423
+ | 'none';
424
+ /**
425
+ * Title to display above the optional legend
426
+ */
427
+ "legendTitle"?: string;
428
+ /**
429
+ * The shape of the plotting in the chart - Square, Circle and Point
430
+ */
431
+ "useShape"?: string;
432
+ /**
433
+ * Title to display along the x-axis
434
+ */
435
+ "xAxisTitle"?: string;
436
+ /**
437
+ * Name for the data field to use to populate the chart's x-axis e.g. xFieldName of "category" will map any "category" fields in chartData to the x-axis
438
+ */
439
+ "xFieldName"?: string;
440
+ /**
441
+ * If true, then make Axis tick label 45 degrees
442
+ */
443
+ "xTickLabelSlant"?: boolean;
444
+ /**
445
+ * Title to display along the y-axis
446
+ */
447
+ "yAxisTitle"?: string;
448
+ /**
449
+ * Name for the data field to use to populate the chart's x-axis e.g. yFieldName of "value" will map any "value" fields in chartData to the y-axis
450
+ */
451
+ "yFieldName"?: string;
452
+ }
453
+ interface GuxVisualizationBeta {
454
+ "embedOptions"?: EmbedOptions;
455
+ "onChartClicked"?: (event: GuxVisualizationBetaCustomEvent<any>) => void;
456
+ "onChartComponentReady"?: (event: GuxVisualizationBetaCustomEvent<any>) => void;
457
+ "visualizationSpec"?: VisualizationSpec;
458
+ }
459
+ interface IntrinsicElements {
460
+ "gux-chart-column-beta": GuxChartColumnBeta;
461
+ "gux-chart-donut-beta": GuxChartDonutBeta;
462
+ "gux-chart-line-beta": GuxChartLineBeta;
463
+ "gux-chart-pie-beta": GuxChartPieBeta;
464
+ "gux-chart-scatter-plot-beta": GuxChartScatterPlotBeta;
465
+ "gux-visualization-beta": GuxVisualizationBeta;
466
+ }
467
+ }
468
+ export { LocalJSX as JSX };
469
+ declare module "@stencil/core" {
470
+ export namespace JSX {
471
+ interface IntrinsicElements {
472
+ "gux-chart-column-beta": LocalJSX.GuxChartColumnBeta & JSXBase.HTMLAttributes<HTMLGuxChartColumnBetaElement>;
473
+ "gux-chart-donut-beta": LocalJSX.GuxChartDonutBeta & JSXBase.HTMLAttributes<HTMLGuxChartDonutBetaElement>;
474
+ "gux-chart-line-beta": LocalJSX.GuxChartLineBeta & JSXBase.HTMLAttributes<HTMLGuxChartLineBetaElement>;
475
+ "gux-chart-pie-beta": LocalJSX.GuxChartPieBeta & JSXBase.HTMLAttributes<HTMLGuxChartPieBetaElement>;
476
+ "gux-chart-scatter-plot-beta": LocalJSX.GuxChartScatterPlotBeta & JSXBase.HTMLAttributes<HTMLGuxChartScatterPlotBetaElement>;
477
+ "gux-visualization-beta": LocalJSX.GuxVisualizationBeta & JSXBase.HTMLAttributes<HTMLGuxVisualizationBetaElement>;
478
+ }
479
+ }
480
+ }
@@ -0,0 +1,11 @@
1
+ export interface ILocalizedComponentResources {
2
+ [resourceKey: string]: string;
3
+ }
4
+ export interface ILocalizedResources {
5
+ [componentName: string]: ILocalizedComponentResources;
6
+ }
7
+ export interface IResourceCache {
8
+ [locale: string]: ILocalizedResources;
9
+ }
10
+ export declare const determineFetchUrl: (locale?: string) => string;
11
+ export declare const fetchResources: (componentName: string, locale: string) => Promise<ILocalizedComponentResources>;
@@ -0,0 +1,9 @@
1
+ import { ILocalizedComponentResources } from './fetchResources';
2
+ type I18nValueContext = {
3
+ [key: string]: string | number;
4
+ };
5
+ export type GetI18nValue = (resourceKey: string, context?: I18nValueContext) => string;
6
+ export declare function buildI18nForComponent(component: HTMLElement, defaultResources: ILocalizedComponentResources, parentComponent?: string): Promise<GetI18nValue>;
7
+ export declare function getComponentI18nResources(component: HTMLElement, defaultResources: ILocalizedComponentResources, locale: string, parentComponent?: string): Promise<ILocalizedComponentResources>;
8
+ export declare function getDesiredLocale(element: HTMLElement): string;
9
+ export {};
@@ -0,0 +1,3 @@
1
+
2
+ export * from './components';
3
+ export * from './stencil-wrapper';