@xplortech/apollo-data 0.0.4 → 0.0.6

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 (88) hide show
  1. package/README.md +15 -91
  2. package/dist/apollo-data/apollo-data.esm.js +1 -1
  3. package/dist/apollo-data/p-25841a73.entry.js +1 -0
  4. package/dist/apollo-data/p-2nuV5Vny.js +1 -0
  5. package/dist/apollo-data/p-839050b7.entry.js +1 -0
  6. package/dist/apollo-data/p-C2k3WBpi.js +11 -0
  7. package/dist/apollo-data/p-D64asVrg.js +2 -0
  8. package/dist/apollo-data/p-e2c3a317.entry.js +1 -0
  9. package/dist/cjs/apollo-data-bar-chart.cjs.entry.js +315 -0
  10. package/dist/{esm/apollo-data-bar-chart_2.entry.js → cjs/apollo-data-base-COGMOEqL.js} +9 -724
  11. package/dist/cjs/apollo-data-donut-chart.cjs.entry.js +408 -0
  12. package/dist/cjs/apollo-data-heat-map_4.cjs.entry.js +883 -0
  13. package/dist/cjs/apollo-data.cjs.js +3 -3
  14. package/dist/cjs/constants-B3weDEpc.js +5 -0
  15. package/dist/cjs/{index-Cl7HgRm0.js → index-Bd5risOy.js} +116 -63
  16. package/dist/cjs/loader.cjs.js +2 -2
  17. package/dist/collection/apollo-data-base.js +4 -8
  18. package/dist/collection/collection-manifest.json +7 -2
  19. package/dist/collection/components/apollo-data-bar/apollo-data-bar.js +8 -7
  20. package/dist/collection/components/apollo-data-bar/apollo-data-bar.stories.js +122 -0
  21. package/dist/collection/components/apollo-data-donut/apollo-data-donut.js +1 -1
  22. package/dist/collection/components/apollo-data-donut/apollo-data-donut.stories.js +132 -0
  23. package/dist/collection/components/apollo-data-heat-map/apollo-data-heat-map.js +208 -0
  24. package/dist/collection/components/apollo-data-heat-map/apollo-data-heat-map.stories.js +137 -0
  25. package/dist/collection/components/apollo-data-line/apollo-data-line.js +348 -0
  26. package/dist/collection/components/apollo-data-line/apollo-data-line.stories.js +122 -0
  27. package/dist/collection/components/apollo-data-scatter/apollo-data-scatter.js +329 -0
  28. package/dist/collection/components/apollo-data-scatter/apollo-data-scatter.stories.js +147 -0
  29. package/dist/collection/components/apollo-data-world-map/apollo-data-world-map.js +294 -0
  30. package/dist/collection/components/apollo-data-world-map/apollo-data-world-map.stories.js +126 -0
  31. package/dist/collection/examples/apollo-data-heat-map.examples.js +131 -0
  32. package/dist/collection/examples/apollo-data-line.examples.js +91 -0
  33. package/dist/collection/examples/apollo-data-scatter.examples.js +94 -0
  34. package/dist/collection/examples/apollo-data-world-map.examples.js +45 -0
  35. package/dist/collection/examples/index.js +3 -0
  36. package/dist/collection/utils/code-generator.js +1 -1
  37. package/dist/components/apollo-data-bar-chart.js +1 -1
  38. package/dist/components/apollo-data-donut-chart.js +1 -1
  39. package/dist/components/apollo-data-heat-map.d.ts +11 -0
  40. package/dist/components/apollo-data-heat-map.js +1 -0
  41. package/dist/components/apollo-data-line-chart.d.ts +11 -0
  42. package/dist/components/apollo-data-line-chart.js +1 -0
  43. package/dist/components/apollo-data-scatter-chart.d.ts +11 -0
  44. package/dist/components/apollo-data-scatter-chart.js +1 -0
  45. package/dist/components/apollo-data-world-map-chart.d.ts +11 -0
  46. package/dist/components/apollo-data-world-map-chart.js +1 -0
  47. package/dist/components/index.js +1 -1
  48. package/dist/components/p-2nuV5Vny.js +1 -0
  49. package/dist/components/p-CfbMSXKd.js +11 -0
  50. package/dist/components/p-gcjU8DVr.js +1 -0
  51. package/dist/esm/apollo-data-bar-chart.entry.js +313 -0
  52. package/dist/{cjs/apollo-data-bar-chart_2.cjs.entry.js → esm/apollo-data-base-C2k3WBpi.js} +8 -728
  53. package/dist/esm/apollo-data-donut-chart.entry.js +406 -0
  54. package/dist/esm/apollo-data-heat-map_4.entry.js +878 -0
  55. package/dist/esm/apollo-data.js +4 -4
  56. package/dist/esm/constants-2nuV5Vny.js +3 -0
  57. package/dist/esm/{index-Bb2nY-Tf.js → index-D64asVrg.js} +116 -63
  58. package/dist/esm/loader.js +3 -3
  59. package/dist/types/apollo-data-base.d.ts +2 -2
  60. package/dist/types/components/apollo-data-bar/apollo-data-bar.stories.d.ts +5 -0
  61. package/dist/types/components/apollo-data-donut/apollo-data-donut.stories.d.ts +5 -0
  62. package/dist/types/components/apollo-data-heat-map/apollo-data-heat-map.d.ts +140 -0
  63. package/dist/types/components/apollo-data-heat-map/apollo-data-heat-map.stories.d.ts +5 -0
  64. package/dist/types/components/apollo-data-line/apollo-data-line.d.ts +244 -0
  65. package/dist/types/components/apollo-data-line/apollo-data-line.stories.d.ts +5 -0
  66. package/dist/types/components/apollo-data-scatter/apollo-data-scatter.d.ts +327 -0
  67. package/dist/types/components/apollo-data-scatter/apollo-data-scatter.stories.d.ts +5 -0
  68. package/dist/types/components/apollo-data-world-map/apollo-data-world-map.d.ts +281 -0
  69. package/dist/types/components/apollo-data-world-map/apollo-data-world-map.stories.d.ts +5 -0
  70. package/dist/types/components.d.ts +210 -4
  71. package/dist/types/examples/apollo-data-heat-map.examples.d.ts +11 -0
  72. package/dist/types/examples/apollo-data-line.examples.d.ts +12 -0
  73. package/dist/types/examples/apollo-data-scatter.examples.d.ts +11 -0
  74. package/dist/types/examples/apollo-data-world-map.examples.d.ts +11 -0
  75. package/dist/types/examples/index.d.ts +3 -0
  76. package/dist/types/stencil-public-runtime.d.ts +23 -2
  77. package/dist/types/utils/code-generator.d.ts +1 -3
  78. package/package.json +8 -8
  79. package/src/examples/apollo-data-bar.examples.ts +157 -157
  80. package/src/examples/apollo-data-heat-map.examples.ts +147 -0
  81. package/src/examples/apollo-data-line.examples.ts +103 -0
  82. package/src/examples/apollo-data-scatter.examples.ts +109 -0
  83. package/src/examples/apollo-data-world-map.examples.ts +57 -0
  84. package/src/examples/index.ts +4 -1
  85. package/dist/apollo-data/p-Bb2nY-Tf.js +0 -2
  86. package/dist/apollo-data/p-e6584598.entry.js +0 -11
  87. package/dist/components/p-7XF5Cax8.js +0 -11
  88. package/dist/components/p-Dws5s-Xe.js +0 -1
@@ -0,0 +1,281 @@
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ import { ApolloBase } from '../../apollo-data-base';
3
+ export interface WorldMapDataItem {
4
+ lon: number;
5
+ lat: number;
6
+ value: number;
7
+ label: string;
8
+ }
9
+ export interface WorldMapSpec {
10
+ pinColor?: string;
11
+ pinShape?: 'circle' | 'square' | 'triangle';
12
+ }
13
+ export declare class ApolloDataWorldMapChart extends ApolloBase<WorldMapDataItem[], WorldMapSpec> implements ComponentInterface {
14
+ el: HTMLElement;
15
+ /**
16
+ * Represents a single data point in the world map chart.
17
+ * @property {number} lon - Longitude coordinate used to position the point on the map.
18
+ * @property {number} lat - Latitude coordinate used to position the point on the map.
19
+ * @property {number} value - A numeric metric tied to the point.
20
+ * @property {string} label - Label displayed for the place or location represented by the point.
21
+ */
22
+ adData: string | WorldMapDataItem[];
23
+ /**
24
+ * @property {string} pinColor - Color of the pin representing the point.
25
+ * @property {'circle' | 'square' | 'triangle'} pinShape - Shape of the pin representing the point.
26
+ */
27
+ adSpec: string | WorldMapSpec;
28
+ componentDidRender(): Promise<void>;
29
+ protected getViewData(data: WorldMapDataItem[], spec?: WorldMapSpec): Promise<{
30
+ $schema: string;
31
+ description: string;
32
+ width: number;
33
+ height: number;
34
+ autosize: string;
35
+ background: string;
36
+ signals: ({
37
+ name: string;
38
+ value: number;
39
+ on: {
40
+ events: {
41
+ type: string;
42
+ consume: boolean;
43
+ };
44
+ update: string;
45
+ }[];
46
+ } | {
47
+ name: string;
48
+ value: number;
49
+ on: {
50
+ events: string;
51
+ update: string;
52
+ }[];
53
+ })[];
54
+ projections: {
55
+ name: string;
56
+ type: string;
57
+ scale: {
58
+ signal: string;
59
+ };
60
+ rotate: (number | {
61
+ signal: string;
62
+ })[];
63
+ center: number[];
64
+ translate: {
65
+ signal: string;
66
+ }[];
67
+ }[];
68
+ data: ({
69
+ name: string;
70
+ url: string;
71
+ format: {
72
+ type: string;
73
+ feature?: undefined;
74
+ };
75
+ transform: {
76
+ type: string;
77
+ as: string;
78
+ expr: string;
79
+ }[];
80
+ values?: undefined;
81
+ source?: undefined;
82
+ } | {
83
+ name: string;
84
+ values: WorldMapDataItem[];
85
+ url?: undefined;
86
+ format?: undefined;
87
+ transform?: undefined;
88
+ source?: undefined;
89
+ } | {
90
+ name: string;
91
+ url: string;
92
+ format: {
93
+ type: string;
94
+ feature: string;
95
+ };
96
+ transform: ({
97
+ type: string;
98
+ from: string;
99
+ key: string;
100
+ fields: string[];
101
+ values: string[];
102
+ as: string[];
103
+ expr?: undefined;
104
+ } | {
105
+ type: string;
106
+ expr: string;
107
+ from?: undefined;
108
+ key?: undefined;
109
+ fields?: undefined;
110
+ values?: undefined;
111
+ as?: undefined;
112
+ })[];
113
+ values?: undefined;
114
+ source?: undefined;
115
+ } | {
116
+ name: string;
117
+ source: string;
118
+ transform: ({
119
+ type: string;
120
+ expr: string;
121
+ projection?: undefined;
122
+ fields?: undefined;
123
+ as?: undefined;
124
+ } | {
125
+ type: string;
126
+ projection: string;
127
+ fields: string[];
128
+ as: string[];
129
+ expr?: undefined;
130
+ })[];
131
+ url?: undefined;
132
+ format?: undefined;
133
+ values?: undefined;
134
+ } | {
135
+ name: string;
136
+ values: {
137
+ name: string;
138
+ lon: number;
139
+ lat: number;
140
+ }[];
141
+ transform: {
142
+ type: string;
143
+ projection: string;
144
+ fields: string[];
145
+ as: string[];
146
+ }[];
147
+ url?: undefined;
148
+ format?: undefined;
149
+ source?: undefined;
150
+ })[];
151
+ marks: ({
152
+ type: string;
153
+ from: {
154
+ data: string;
155
+ };
156
+ transform: {
157
+ type: string;
158
+ projection: string;
159
+ }[];
160
+ encode: {
161
+ update: {
162
+ fill: {
163
+ value: string;
164
+ };
165
+ stroke: {
166
+ value: string;
167
+ };
168
+ strokeWidth: {
169
+ value: number;
170
+ };
171
+ tooltip: {
172
+ signal: string;
173
+ };
174
+ x?: undefined;
175
+ y?: undefined;
176
+ size?: undefined;
177
+ shape?: undefined;
178
+ text?: undefined;
179
+ align?: undefined;
180
+ baseline?: undefined;
181
+ fontSize?: undefined;
182
+ fontWeight?: undefined;
183
+ fillOpacity?: undefined;
184
+ };
185
+ hover: {
186
+ stroke: {
187
+ value: string;
188
+ };
189
+ strokeWidth: {
190
+ value: number;
191
+ };
192
+ };
193
+ };
194
+ } | {
195
+ type: string;
196
+ from: {
197
+ data: string;
198
+ };
199
+ encode: {
200
+ update: {
201
+ x: {
202
+ field: string;
203
+ };
204
+ y: {
205
+ field: string;
206
+ };
207
+ size: {
208
+ value: number;
209
+ };
210
+ fill: {
211
+ value: string;
212
+ };
213
+ stroke: {
214
+ value: string;
215
+ };
216
+ shape: {
217
+ value: "square" | "circle" | "triangle";
218
+ };
219
+ strokeWidth: {
220
+ value: number;
221
+ };
222
+ tooltip: {
223
+ signal: string;
224
+ };
225
+ text?: undefined;
226
+ align?: undefined;
227
+ baseline?: undefined;
228
+ fontSize?: undefined;
229
+ fontWeight?: undefined;
230
+ fillOpacity?: undefined;
231
+ };
232
+ hover?: undefined;
233
+ };
234
+ transform?: undefined;
235
+ } | {
236
+ type: string;
237
+ from: {
238
+ data: string;
239
+ };
240
+ encode: {
241
+ update: {
242
+ x: {
243
+ field: string;
244
+ };
245
+ y: {
246
+ field: string;
247
+ };
248
+ text: {
249
+ field: string;
250
+ };
251
+ align: {
252
+ value: string;
253
+ };
254
+ baseline: {
255
+ value: string;
256
+ };
257
+ fontSize: {
258
+ value: number;
259
+ };
260
+ fontWeight: {
261
+ value: string;
262
+ };
263
+ fill: {
264
+ value: string;
265
+ };
266
+ fillOpacity: {
267
+ value: number;
268
+ };
269
+ stroke?: undefined;
270
+ strokeWidth?: undefined;
271
+ tooltip?: undefined;
272
+ size?: undefined;
273
+ shape?: undefined;
274
+ };
275
+ hover?: undefined;
276
+ };
277
+ transform?: undefined;
278
+ })[];
279
+ }>;
280
+ render(): any;
281
+ }
@@ -0,0 +1,5 @@
1
+ import type { Meta, StoryObj } from '@storybook/web-components-vite';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ type Story = StoryObj;
5
+ export declare const ApolloDataWorldMap: Story;
@@ -7,8 +7,16 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { BarDataItem, BarSpec } from "./components/apollo-data-bar/apollo-data-bar";
9
9
  import { DonutDataItem, DonutSpec } from "./components/apollo-data-donut/apollo-data-donut";
10
+ import { HeatMapDataItem, HeatMapSpec } from "./components/apollo-data-heat-map/apollo-data-heat-map";
11
+ import { LineDataItem, LineSpec } from "./components/apollo-data-line/apollo-data-line";
12
+ import { ScatterDataItem, ScatterSpec } from "./components/apollo-data-scatter/apollo-data-scatter";
13
+ import { WorldMapDataItem, WorldMapSpec } from "./components/apollo-data-world-map/apollo-data-world-map";
10
14
  export { BarDataItem, BarSpec } from "./components/apollo-data-bar/apollo-data-bar";
11
15
  export { DonutDataItem, DonutSpec } from "./components/apollo-data-donut/apollo-data-donut";
16
+ export { HeatMapDataItem, HeatMapSpec } from "./components/apollo-data-heat-map/apollo-data-heat-map";
17
+ export { LineDataItem, LineSpec } from "./components/apollo-data-line/apollo-data-line";
18
+ export { ScatterDataItem, ScatterSpec } from "./components/apollo-data-scatter/apollo-data-scatter";
19
+ export { WorldMapDataItem, WorldMapSpec } from "./components/apollo-data-world-map/apollo-data-world-map";
12
20
  export namespace Components {
13
21
  interface ApolloDataBarChart {
14
22
  /**
@@ -38,6 +46,74 @@ export namespace Components {
38
46
  */
39
47
  "adSpec": string | DonutSpec;
40
48
  }
49
+ interface ApolloDataHeatMap {
50
+ /**
51
+ * Data for the heat map. Each item defines a cell by xLabel, yLabel, and value.
52
+ * @property {string} xLabel - Label for the X-axis (horizontal).
53
+ * @property {string} yLabel - Label for the Y-axis (vertical).
54
+ * @property {number} value - Numeric value encoded as color.
55
+ * @default []
56
+ */
57
+ "adData": string | HeatMapDataItem[];
58
+ /**
59
+ * Optional specification for axis titles, color range, and tooltip behavior.
60
+ * @property {string} [xAxisTitle] - Label for the X-axis.
61
+ * @property {string} [yAxisTitle] - Label for the Y-axis.
62
+ * @property {string[]} [colorRange] - Two or more colors for the value scale (Vega interpolates between them).
63
+ * @property {'auto' | 'none'} [tooltip] - Tooltip behavior.
64
+ * @default {}
65
+ */
66
+ "adSpec": string | HeatMapSpec;
67
+ }
68
+ interface ApolloDataLineChart {
69
+ /**
70
+ * @default []
71
+ */
72
+ "adData": string | LineDataItem[];
73
+ /**
74
+ * @default null
75
+ */
76
+ "adSpec": string | LineSpec;
77
+ }
78
+ interface ApolloDataScatterChart {
79
+ /**
80
+ * Represents a single data point in the scatter chart.
81
+ * @property {string} category - Category or group name associated with the data point. This can be used for legend grouping or category-based styling.
82
+ * @property {number} xValue - Numeric value plotted along the X-axis.
83
+ * @property {number} yValue - Numeric value plotted along the Y-axis.
84
+ * @property {PointStyle} [pointStyle] - Optional style override for this specific data point. If provided, it takes precedence over default or category-level styles.
85
+ * @default []
86
+ */
87
+ "adData": string | ScatterDataItem[];
88
+ /**
89
+ * Optional specification object for customizing the scatter chart configuration.
90
+ * @property {string} [yAxisTitle] - Label displayed for the Y-axis.
91
+ * @property {string} [xAxisTitle] - Label displayed for the X-axis.
92
+ * @property {PointStyle} [defaultPointStyle] - Default styling applied to all scatter points (e.g., size, color, shape, opacity).
93
+ * @property {PointStyle} [pointStyle] - Global point style override applied to all data points.
94
+ * @property {{ [categoryName: string]: PointStyle }} [categoryPointStyleMap] - A mapping object that allows custom point styles per category name. Each key represents a category, and its value defines the corresponding PointStyle.
95
+ * @property {'auto' | 'none'} [tooltip] - Controls tooltip behavior. 'auto' enables default tooltip rendering, while 'none' disables tooltips.
96
+ * @default {}
97
+ */
98
+ "adSpec": string | ScatterSpec;
99
+ }
100
+ interface ApolloDataWorldMapChart {
101
+ /**
102
+ * Represents a single data point in the world map chart.
103
+ * @property {number} lon - Longitude coordinate used to position the point on the map.
104
+ * @property {number} lat - Latitude coordinate used to position the point on the map.
105
+ * @property {number} value - A numeric metric tied to the point.
106
+ * @property {string} label - Label displayed for the place or location represented by the point.
107
+ * @default []
108
+ */
109
+ "adData": string | WorldMapDataItem[];
110
+ /**
111
+ * @property {string} pinColor - Color of the pin representing the point.
112
+ * @property {'circle' | 'square' | 'triangle'} pinShape - Shape of the pin representing the point.
113
+ * @default {}
114
+ */
115
+ "adSpec": string | WorldMapSpec;
116
+ }
41
117
  }
42
118
  declare global {
43
119
  interface HTMLApolloDataBarChartElement extends Components.ApolloDataBarChart, HTMLStencilElement {
@@ -52,9 +128,37 @@ declare global {
52
128
  prototype: HTMLApolloDataDonutChartElement;
53
129
  new (): HTMLApolloDataDonutChartElement;
54
130
  };
131
+ interface HTMLApolloDataHeatMapElement extends Components.ApolloDataHeatMap, HTMLStencilElement {
132
+ }
133
+ var HTMLApolloDataHeatMapElement: {
134
+ prototype: HTMLApolloDataHeatMapElement;
135
+ new (): HTMLApolloDataHeatMapElement;
136
+ };
137
+ interface HTMLApolloDataLineChartElement extends Components.ApolloDataLineChart, HTMLStencilElement {
138
+ }
139
+ var HTMLApolloDataLineChartElement: {
140
+ prototype: HTMLApolloDataLineChartElement;
141
+ new (): HTMLApolloDataLineChartElement;
142
+ };
143
+ interface HTMLApolloDataScatterChartElement extends Components.ApolloDataScatterChart, HTMLStencilElement {
144
+ }
145
+ var HTMLApolloDataScatterChartElement: {
146
+ prototype: HTMLApolloDataScatterChartElement;
147
+ new (): HTMLApolloDataScatterChartElement;
148
+ };
149
+ interface HTMLApolloDataWorldMapChartElement extends Components.ApolloDataWorldMapChart, HTMLStencilElement {
150
+ }
151
+ var HTMLApolloDataWorldMapChartElement: {
152
+ prototype: HTMLApolloDataWorldMapChartElement;
153
+ new (): HTMLApolloDataWorldMapChartElement;
154
+ };
55
155
  interface HTMLElementTagNameMap {
56
156
  "apollo-data-bar-chart": HTMLApolloDataBarChartElement;
57
157
  "apollo-data-donut-chart": HTMLApolloDataDonutChartElement;
158
+ "apollo-data-heat-map": HTMLApolloDataHeatMapElement;
159
+ "apollo-data-line-chart": HTMLApolloDataLineChartElement;
160
+ "apollo-data-scatter-chart": HTMLApolloDataScatterChartElement;
161
+ "apollo-data-world-map-chart": HTMLApolloDataWorldMapChartElement;
58
162
  }
59
163
  }
60
164
  declare namespace LocalJSX {
@@ -86,17 +190,119 @@ declare namespace LocalJSX {
86
190
  */
87
191
  "adSpec"?: string | DonutSpec;
88
192
  }
193
+ interface ApolloDataHeatMap {
194
+ /**
195
+ * Data for the heat map. Each item defines a cell by xLabel, yLabel, and value.
196
+ * @property {string} xLabel - Label for the X-axis (horizontal).
197
+ * @property {string} yLabel - Label for the Y-axis (vertical).
198
+ * @property {number} value - Numeric value encoded as color.
199
+ * @default []
200
+ */
201
+ "adData"?: string | HeatMapDataItem[];
202
+ /**
203
+ * Optional specification for axis titles, color range, and tooltip behavior.
204
+ * @property {string} [xAxisTitle] - Label for the X-axis.
205
+ * @property {string} [yAxisTitle] - Label for the Y-axis.
206
+ * @property {string[]} [colorRange] - Two or more colors for the value scale (Vega interpolates between them).
207
+ * @property {'auto' | 'none'} [tooltip] - Tooltip behavior.
208
+ * @default {}
209
+ */
210
+ "adSpec"?: string | HeatMapSpec;
211
+ }
212
+ interface ApolloDataLineChart {
213
+ /**
214
+ * @default []
215
+ */
216
+ "adData"?: string | LineDataItem[];
217
+ /**
218
+ * @default null
219
+ */
220
+ "adSpec"?: string | LineSpec;
221
+ }
222
+ interface ApolloDataScatterChart {
223
+ /**
224
+ * Represents a single data point in the scatter chart.
225
+ * @property {string} category - Category or group name associated with the data point. This can be used for legend grouping or category-based styling.
226
+ * @property {number} xValue - Numeric value plotted along the X-axis.
227
+ * @property {number} yValue - Numeric value plotted along the Y-axis.
228
+ * @property {PointStyle} [pointStyle] - Optional style override for this specific data point. If provided, it takes precedence over default or category-level styles.
229
+ * @default []
230
+ */
231
+ "adData"?: string | ScatterDataItem[];
232
+ /**
233
+ * Optional specification object for customizing the scatter chart configuration.
234
+ * @property {string} [yAxisTitle] - Label displayed for the Y-axis.
235
+ * @property {string} [xAxisTitle] - Label displayed for the X-axis.
236
+ * @property {PointStyle} [defaultPointStyle] - Default styling applied to all scatter points (e.g., size, color, shape, opacity).
237
+ * @property {PointStyle} [pointStyle] - Global point style override applied to all data points.
238
+ * @property {{ [categoryName: string]: PointStyle }} [categoryPointStyleMap] - A mapping object that allows custom point styles per category name. Each key represents a category, and its value defines the corresponding PointStyle.
239
+ * @property {'auto' | 'none'} [tooltip] - Controls tooltip behavior. 'auto' enables default tooltip rendering, while 'none' disables tooltips.
240
+ * @default {}
241
+ */
242
+ "adSpec"?: string | ScatterSpec;
243
+ }
244
+ interface ApolloDataWorldMapChart {
245
+ /**
246
+ * Represents a single data point in the world map chart.
247
+ * @property {number} lon - Longitude coordinate used to position the point on the map.
248
+ * @property {number} lat - Latitude coordinate used to position the point on the map.
249
+ * @property {number} value - A numeric metric tied to the point.
250
+ * @property {string} label - Label displayed for the place or location represented by the point.
251
+ * @default []
252
+ */
253
+ "adData"?: string | WorldMapDataItem[];
254
+ /**
255
+ * @property {string} pinColor - Color of the pin representing the point.
256
+ * @property {'circle' | 'square' | 'triangle'} pinShape - Shape of the pin representing the point.
257
+ * @default {}
258
+ */
259
+ "adSpec"?: string | WorldMapSpec;
260
+ }
261
+
262
+ interface ApolloDataBarChartAttributes {
263
+ "adData": string | BarDataItem[];
264
+ "adSpec": string | BarSpec;
265
+ }
266
+ interface ApolloDataDonutChartAttributes {
267
+ "adData": string | DonutDataItem[];
268
+ "adSpec": string | DonutSpec;
269
+ }
270
+ interface ApolloDataHeatMapAttributes {
271
+ "adData": string | HeatMapDataItem[];
272
+ "adSpec": string | HeatMapSpec;
273
+ }
274
+ interface ApolloDataLineChartAttributes {
275
+ "adData": string | LineDataItem[];
276
+ "adSpec": string | LineSpec;
277
+ }
278
+ interface ApolloDataScatterChartAttributes {
279
+ "adData": string | ScatterDataItem[];
280
+ "adSpec": string | ScatterSpec;
281
+ }
282
+ interface ApolloDataWorldMapChartAttributes {
283
+ "adData": string | WorldMapDataItem[];
284
+ "adSpec": string | WorldMapSpec;
285
+ }
286
+
89
287
  interface IntrinsicElements {
90
- "apollo-data-bar-chart": ApolloDataBarChart;
91
- "apollo-data-donut-chart": ApolloDataDonutChart;
288
+ "apollo-data-bar-chart": Omit<ApolloDataBarChart, keyof ApolloDataBarChartAttributes> & { [K in keyof ApolloDataBarChart & keyof ApolloDataBarChartAttributes]?: ApolloDataBarChart[K] } & { [K in keyof ApolloDataBarChart & keyof ApolloDataBarChartAttributes as `attr:${K}`]?: ApolloDataBarChartAttributes[K] } & { [K in keyof ApolloDataBarChart & keyof ApolloDataBarChartAttributes as `prop:${K}`]?: ApolloDataBarChart[K] };
289
+ "apollo-data-donut-chart": Omit<ApolloDataDonutChart, keyof ApolloDataDonutChartAttributes> & { [K in keyof ApolloDataDonutChart & keyof ApolloDataDonutChartAttributes]?: ApolloDataDonutChart[K] } & { [K in keyof ApolloDataDonutChart & keyof ApolloDataDonutChartAttributes as `attr:${K}`]?: ApolloDataDonutChartAttributes[K] } & { [K in keyof ApolloDataDonutChart & keyof ApolloDataDonutChartAttributes as `prop:${K}`]?: ApolloDataDonutChart[K] };
290
+ "apollo-data-heat-map": Omit<ApolloDataHeatMap, keyof ApolloDataHeatMapAttributes> & { [K in keyof ApolloDataHeatMap & keyof ApolloDataHeatMapAttributes]?: ApolloDataHeatMap[K] } & { [K in keyof ApolloDataHeatMap & keyof ApolloDataHeatMapAttributes as `attr:${K}`]?: ApolloDataHeatMapAttributes[K] } & { [K in keyof ApolloDataHeatMap & keyof ApolloDataHeatMapAttributes as `prop:${K}`]?: ApolloDataHeatMap[K] };
291
+ "apollo-data-line-chart": Omit<ApolloDataLineChart, keyof ApolloDataLineChartAttributes> & { [K in keyof ApolloDataLineChart & keyof ApolloDataLineChartAttributes]?: ApolloDataLineChart[K] } & { [K in keyof ApolloDataLineChart & keyof ApolloDataLineChartAttributes as `attr:${K}`]?: ApolloDataLineChartAttributes[K] } & { [K in keyof ApolloDataLineChart & keyof ApolloDataLineChartAttributes as `prop:${K}`]?: ApolloDataLineChart[K] };
292
+ "apollo-data-scatter-chart": Omit<ApolloDataScatterChart, keyof ApolloDataScatterChartAttributes> & { [K in keyof ApolloDataScatterChart & keyof ApolloDataScatterChartAttributes]?: ApolloDataScatterChart[K] } & { [K in keyof ApolloDataScatterChart & keyof ApolloDataScatterChartAttributes as `attr:${K}`]?: ApolloDataScatterChartAttributes[K] } & { [K in keyof ApolloDataScatterChart & keyof ApolloDataScatterChartAttributes as `prop:${K}`]?: ApolloDataScatterChart[K] };
293
+ "apollo-data-world-map-chart": Omit<ApolloDataWorldMapChart, keyof ApolloDataWorldMapChartAttributes> & { [K in keyof ApolloDataWorldMapChart & keyof ApolloDataWorldMapChartAttributes]?: ApolloDataWorldMapChart[K] } & { [K in keyof ApolloDataWorldMapChart & keyof ApolloDataWorldMapChartAttributes as `attr:${K}`]?: ApolloDataWorldMapChartAttributes[K] } & { [K in keyof ApolloDataWorldMapChart & keyof ApolloDataWorldMapChartAttributes as `prop:${K}`]?: ApolloDataWorldMapChart[K] };
92
294
  }
93
295
  }
94
296
  export { LocalJSX as JSX };
95
297
  declare module "@stencil/core" {
96
298
  export namespace JSX {
97
299
  interface IntrinsicElements {
98
- "apollo-data-bar-chart": LocalJSX.ApolloDataBarChart & JSXBase.HTMLAttributes<HTMLApolloDataBarChartElement>;
99
- "apollo-data-donut-chart": LocalJSX.ApolloDataDonutChart & JSXBase.HTMLAttributes<HTMLApolloDataDonutChartElement>;
300
+ "apollo-data-bar-chart": LocalJSX.IntrinsicElements["apollo-data-bar-chart"] & JSXBase.HTMLAttributes<HTMLApolloDataBarChartElement>;
301
+ "apollo-data-donut-chart": LocalJSX.IntrinsicElements["apollo-data-donut-chart"] & JSXBase.HTMLAttributes<HTMLApolloDataDonutChartElement>;
302
+ "apollo-data-heat-map": LocalJSX.IntrinsicElements["apollo-data-heat-map"] & JSXBase.HTMLAttributes<HTMLApolloDataHeatMapElement>;
303
+ "apollo-data-line-chart": LocalJSX.IntrinsicElements["apollo-data-line-chart"] & JSXBase.HTMLAttributes<HTMLApolloDataLineChartElement>;
304
+ "apollo-data-scatter-chart": LocalJSX.IntrinsicElements["apollo-data-scatter-chart"] & JSXBase.HTMLAttributes<HTMLApolloDataScatterChartElement>;
305
+ "apollo-data-world-map-chart": LocalJSX.IntrinsicElements["apollo-data-world-map-chart"] & JSXBase.HTMLAttributes<HTMLApolloDataWorldMapChartElement>;
100
306
  }
101
307
  }
102
308
  }
@@ -0,0 +1,11 @@
1
+ import { HeatMapDataItem, HeatMapSpec } from '../components/apollo-data-heat-map/apollo-data-heat-map';
2
+ export interface HeatMapExamples {
3
+ name: string;
4
+ description: string;
5
+ props: {
6
+ adData: HeatMapDataItem[];
7
+ adSpec?: HeatMapSpec;
8
+ };
9
+ notes?: string;
10
+ }
11
+ export declare const heatMapExamples: HeatMapExamples[];
@@ -0,0 +1,12 @@
1
+ import { LineDataItem, LineSpec } from '../components/apollo-data-line/apollo-data-line';
2
+ export interface LineExample {
3
+ name: string;
4
+ description: string;
5
+ props: {
6
+ adData: LineDataItem[];
7
+ adSpec?: LineSpec;
8
+ };
9
+ notes?: string;
10
+ }
11
+ /** Each item has category, xValue, yValue, and optional xLabel/yLabel. When labels are omitted, numeric values are shown. */
12
+ export declare const lineExamples: LineExample[];
@@ -0,0 +1,11 @@
1
+ import type { ScatterDataItem, ScatterSpec } from '../components/apollo-data-scatter/apollo-data-scatter';
2
+ export interface ScatterExamples {
3
+ name: string;
4
+ description: string;
5
+ props: {
6
+ adData: ScatterDataItem[];
7
+ adSpec?: ScatterSpec;
8
+ };
9
+ notes?: string;
10
+ }
11
+ export declare const scatterExamples: ScatterExamples[];
@@ -0,0 +1,11 @@
1
+ import { WorldMapDataItem, WorldMapSpec } from '../components/apollo-data-world-map/apollo-data-world-map';
2
+ export interface WorldMapExample {
3
+ name: string;
4
+ description: string;
5
+ props: {
6
+ adData: WorldMapDataItem[];
7
+ adSpec?: WorldMapSpec;
8
+ };
9
+ notes?: string;
10
+ }
11
+ export declare const worldMapExamples: WorldMapExample[];
@@ -1,2 +1,5 @@
1
1
  export * from './apollo-data-donut.examples';
2
2
  export * from './apollo-data-bar.examples';
3
+ export * from './apollo-data-line.examples';
4
+ export * from './apollo-data-heat-map.examples';
5
+ export * from './apollo-data-world-map.examples';
@@ -125,8 +125,27 @@ export interface EventOptions {
125
125
  */
126
126
  composed?: boolean;
127
127
  }
128
+ export interface AttachInternalsOptions {
129
+ /**
130
+ * Initial custom states to set on the ElementInternals.states CustomStateSet.
131
+ * Each key is the state name and the value is the initial boolean state.
132
+ *
133
+ * These states can be targeted with the CSS `:state()` pseudo-class.
134
+ *
135
+ * @example
136
+ * ```tsx
137
+ * @AttachInternals({ states: { open: true, active: false } })
138
+ * internals: ElementInternals;
139
+ * ```
140
+ *
141
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet
142
+ */
143
+ states?: {
144
+ [stateName: string]: boolean;
145
+ };
146
+ }
128
147
  export interface AttachInternalsDecorator {
129
- (): PropertyDecorator;
148
+ (opts?: AttachInternalsOptions): PropertyDecorator;
130
149
  }
131
150
  export interface ListenDecorator {
132
151
  (eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
@@ -660,6 +679,7 @@ export declare namespace h {
660
679
  function h(sel: any, data: VNodeData | null, text: string): VNode;
661
680
  function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
662
681
  function h(sel: any, data: VNodeData | null, children: VNode): VNode;
682
+ function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
663
683
  namespace JSX {
664
684
  interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements {
665
685
  [tagName: string]: any;
@@ -673,6 +693,8 @@ export declare function h(sel: any, text: string): VNode;
673
693
  export declare function h(sel: any, children: Array<VNode | undefined | null>): VNode;
674
694
  export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
675
695
  export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
696
+ export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
697
+ export declare function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
676
698
  /**
677
699
  * Automatic JSX runtime functions for TypeScript's react-jsx mode.
678
700
  * These functions are called automatically by TypeScript when using "jsx": "react-jsx".
@@ -702,7 +724,6 @@ export declare function jsxs(type: any, props: any, key?: string): VNode;
702
724
  * @returns a jsx vnode
703
725
  */
704
726
  export declare function jsxDEV(type: any, props: any, key?: string | number, isStaticChildren?: boolean, source?: any, self?: any): VNode;
705
- export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
706
727
  /**
707
728
  * A virtual DOM node
708
729
  */
@@ -3,9 +3,7 @@ export interface PropValue {
3
3
  isFunction?: boolean;
4
4
  functionBody?: string;
5
5
  }
6
- export interface ComponentProps {
7
- [key: string]: any;
8
- }
6
+ export type ComponentProps = Record<string, any>;
9
7
  export declare function generateInstallationDocs(framework?: string, componentName?: string): string;
10
8
  export declare function generateReactCode(componentName: string, props: ComponentProps): string;
11
9
  export declare function generateVueCode(componentName: string, props: ComponentProps): string;