@opendata-ai/openchart-core 8.0.0-rc.2 → 8.0.0-rc.21

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 (82) hide show
  1. package/dist/index.d.ts +490 -25
  2. package/dist/index.js +57 -19
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles.css +1 -1
  5. package/dist/styles.css.map +1 -1
  6. package/package.json +1 -2
  7. package/schema/chart.schema.json +485 -35
  8. package/schema/table.schema.json +35 -1
  9. package/schema/vizspec.schema.json +1305 -120
  10. package/src/accessibility/__tests__/alt-text.test.ts +0 -110
  11. package/src/accessibility/__tests__/aria.test.ts +0 -125
  12. package/src/accessibility/alt-text.ts +0 -155
  13. package/src/accessibility/aria.ts +0 -75
  14. package/src/accessibility/index.ts +0 -6
  15. package/src/colors/__tests__/colorblind.test.ts +0 -75
  16. package/src/colors/__tests__/contrast.test.ts +0 -119
  17. package/src/colors/__tests__/palettes.test.ts +0 -74
  18. package/src/colors/colorblind.ts +0 -131
  19. package/src/colors/contrast.ts +0 -143
  20. package/src/colors/index.ts +0 -36
  21. package/src/colors/palettes.ts +0 -206
  22. package/src/helpers/__tests__/deep-merge.test.ts +0 -54
  23. package/src/helpers/__tests__/spec-builders.test.ts +0 -338
  24. package/src/helpers/deep-merge.ts +0 -29
  25. package/src/helpers/spec-builders.ts +0 -479
  26. package/src/index.ts +0 -215
  27. package/src/labels/__tests__/collision.test.ts +0 -310
  28. package/src/labels/collision.ts +0 -249
  29. package/src/labels/index.ts +0 -13
  30. package/src/layout/__tests__/chrome.test.ts +0 -208
  31. package/src/layout/__tests__/text-measure.test.ts +0 -57
  32. package/src/layout/chrome.ts +0 -470
  33. package/src/layout/index.ts +0 -18
  34. package/src/layout/text-measure.ts +0 -404
  35. package/src/layout/text-wrap.ts +0 -93
  36. package/src/locale/__tests__/format.test.ts +0 -606
  37. package/src/locale/format.ts +0 -459
  38. package/src/locale/index.ts +0 -21
  39. package/src/responsive/__tests__/breakpoints.test.ts +0 -146
  40. package/src/responsive/__tests__/metrics.test.ts +0 -52
  41. package/src/responsive/breakpoints.ts +0 -172
  42. package/src/responsive/index.ts +0 -53
  43. package/src/responsive/metrics.ts +0 -299
  44. package/src/schema/__tests__/generated-artifacts.test.ts +0 -42
  45. package/src/schema/__tests__/schema.test.ts +0 -179
  46. package/src/styles/__tests__/reduced-motion-selectors.test.ts +0 -28
  47. package/src/styles/animation.css +0 -199
  48. package/src/styles/base.css +0 -102
  49. package/src/styles/chrome.css +0 -174
  50. package/src/styles/dark.css +0 -44
  51. package/src/styles/graph.css +0 -135
  52. package/src/styles/index.css +0 -28
  53. package/src/styles/keyframes.css +0 -135
  54. package/src/styles/legend.css +0 -18
  55. package/src/styles/reduced-motion.css +0 -67
  56. package/src/styles/series-search.css +0 -153
  57. package/src/styles/sparkline.css +0 -16
  58. package/src/styles/table-animation.css +0 -93
  59. package/src/styles/table.css +0 -398
  60. package/src/styles/token-definitions.ts +0 -199
  61. package/src/styles/tokens.css +0 -156
  62. package/src/styles/tooltip.css +0 -126
  63. package/src/styles/you-draw-it.css +0 -126
  64. package/src/theme/__tests__/dark-mode.test.ts +0 -232
  65. package/src/theme/__tests__/defaults.test.ts +0 -73
  66. package/src/theme/__tests__/resolve.test.ts +0 -277
  67. package/src/theme/dark-mode.ts +0 -258
  68. package/src/theme/defaults.ts +0 -110
  69. package/src/theme/index.ts +0 -8
  70. package/src/theme/presets.ts +0 -64
  71. package/src/theme/resolve.ts +0 -312
  72. package/src/types/__tests__/encoding.test.ts +0 -368
  73. package/src/types/__tests__/gradient.test.ts +0 -95
  74. package/src/types/__tests__/spec.test.ts +0 -499
  75. package/src/types/encoding.ts +0 -280
  76. package/src/types/events.ts +0 -154
  77. package/src/types/index.ts +0 -287
  78. package/src/types/layout.ts +0 -1966
  79. package/src/types/schema-roots.ts +0 -32
  80. package/src/types/spec.ts +0 -2867
  81. package/src/types/table.ts +0 -108
  82. package/src/types/theme.ts +0 -209
@@ -1,287 +0,0 @@
1
- /**
2
- * @opendata-ai/openchart-core type system barrel export.
3
- *
4
- * Re-exports all types from the type modules so consumers can import
5
- * from '@opendata-ai/openchart-core' directly.
6
- */
7
-
8
- // Encoding rules
9
- export type {
10
- ChannelRule,
11
- EncodingRule,
12
- GraphChannelRule,
13
- } from './encoding';
14
- export {
15
- GRAPH_ENCODING_RULES,
16
- MARK_ENCODING_RULES,
17
- } from './encoding';
18
- // Event types (chart interaction callbacks)
19
- export type {
20
- ChartEventHandlers,
21
- ChromeKey,
22
- ElementEdit,
23
- ElementRef,
24
- MarkEvent,
25
- } from './events';
26
- export { elementRef } from './events';
27
- // Layout types (engine output)
28
- export type {
29
- A11yMetadata,
30
- AnnotationFootnote,
31
- ArcMark,
32
- AreaMark,
33
- AxisLayout,
34
- AxisTick,
35
- BarListLayout,
36
- BarListRowMark,
37
- BarTableCell,
38
- BaseLegendLayout,
39
- CategoricalLegendLayout,
40
- CategoryTableCell,
41
- CellStyle,
42
- ChartLayout,
43
- CompileOptions,
44
- CompileTableOptions,
45
- CompileWarning,
46
- ContinuousLegendBin,
47
- ContinuousLegendLayout,
48
- ContinuousLegendTick,
49
- EndpointLabelEntry,
50
- EndpointLabelsLayout,
51
- FacetLayout,
52
- FacetPanelLayout,
53
- FillPatternType,
54
- FlagTableCell,
55
- GradientColorStop,
56
- GradientLegendLayout,
57
- GraphEdgeLayout,
58
- GraphLayout,
59
- GraphNodeLayout,
60
- Gridline,
61
- HeatmapTableCell,
62
- ImageTableCell,
63
- LegendChannel,
64
- LegendEntry,
65
- LegendEntryPosition,
66
- LegendLayout,
67
- LineMark,
68
- MapBorders,
69
- MapFeatureMark,
70
- MapFocusLayout,
71
- MapLayout,
72
- Margins,
73
- Mark,
74
- MarkAria,
75
- MeasureTextFn,
76
- PaginationState,
77
- Point,
78
- PointMark,
79
- Rect,
80
- RectMark,
81
- ResolvedAnimation,
82
- ResolvedAnimationPhase,
83
- ResolvedAnnotation,
84
- ResolvedChrome,
85
- ResolvedChromeElement,
86
- ResolvedColumn,
87
- ResolvedFillPattern,
88
- ResolvedLabel,
89
- ResolvedMetricBar,
90
- ResolvedMetricCell,
91
- ResolvedSeriesSearch,
92
- ResolvedYouDrawIt,
93
- RuleMarkLayout,
94
- SankeyLayout,
95
- SankeyLinkMark,
96
- SankeyNodeMark,
97
- SizeLegendCircle,
98
- SizeLegendLayout,
99
- SortState,
100
- SparklineData,
101
- SparklineTableCell,
102
- TableCell,
103
- TableCellBase,
104
- TableLayout,
105
- TableRow,
106
- TextMarkLayout,
107
- TextStyle,
108
- TextTableCell,
109
- TickMarkLayout,
110
- TileMapLayout,
111
- TileMapTileMark,
112
- TooltipContent,
113
- TooltipField,
114
- YouDrawItSample,
115
- YouDrawItYInvert,
116
- } from './layout';
117
- // Spec types (user input)
118
- export type {
119
- A11yConfig,
120
- AggregateOp,
121
- AggregateTransform,
122
- AnimationConfig,
123
- AnimationEase,
124
- AnimationPhaseConfig,
125
- AnimationSpec,
126
- AnimationStagger,
127
- Annotation,
128
- AnnotationAnchor,
129
- AnnotationOffset,
130
- ArcEncoding,
131
- AreaEncoding,
132
- AxisConfig,
133
- BarEncoding,
134
- BarListEncoding,
135
- BarListSpec,
136
- BarListSpecWithoutData,
137
- BeeswarmEncoding,
138
- BinParams,
139
- BinTransform,
140
- CalculateExpression,
141
- CalculateTransform,
142
- CalendarEncoding,
143
- ChartSpec,
144
- ChartSpecOverride,
145
- ChartSpecWithoutData,
146
- Chrome,
147
- ChromeText,
148
- ChromeTextStyle,
149
- ChromeThemeOverride,
150
- CircleEncoding,
151
- Condition,
152
- ConditionalValueDef,
153
- ConnectorConfig,
154
- ConnectorType,
155
- DarkMode,
156
- DataRow,
157
- Display,
158
- Encoding,
159
- EncodingChannel,
160
- EndpointLabelContent,
161
- EndpointLabelsConfig,
162
- FacetChannel,
163
- FieldPredicate,
164
- FieldType,
165
- FilterPredicate,
166
- FilterTransform,
167
- FoldTransform,
168
- GradientDef,
169
- GradientStop,
170
- GraphEdge,
171
- GraphEncoding,
172
- GraphEncodingChannel,
173
- GraphLayoutConfig,
174
- GraphNode,
175
- GraphSpec,
176
- GraphSpecWithoutData,
177
- LabelConfig,
178
- LabelDensity,
179
- LabelSpec,
180
- LayerSpec,
181
- LegendConfig,
182
- LinearGradient,
183
- LineEncoding,
184
- LogicalAnd,
185
- LogicalNot,
186
- LogicalOr,
187
- LollipopEncoding,
188
- MapEncoding,
189
- MapFocus,
190
- MapGeo,
191
- MapProjection,
192
- MapSpec,
193
- MapSpecWithoutData,
194
- MarkDef,
195
- MarkType,
196
- Metric,
197
- NodeOverride,
198
- ParliamentEncoding,
199
- PointEncoding,
200
- RadialGradient,
201
- RangeAnnotation,
202
- RangeEncoding,
203
- RectEncoding,
204
- RefLineAnnotation,
205
- RelativeTimeRef,
206
- ResolveConfig,
207
- ResolveMode,
208
- ResponsiveConfig,
209
- SankeyEncoding,
210
- SankeyLinkColor,
211
- SankeyNodeAlign,
212
- SankeySpec,
213
- SankeySpecWithoutData,
214
- ScaleConfig,
215
- ScaleType,
216
- SeriesSearchConfig,
217
- SeriesStyle,
218
- SortByField,
219
- StoredVizSpec,
220
- TableSpec,
221
- TableSpecWithoutData,
222
- TextAnnotation,
223
- TextEncoding,
224
- ThemeConfig,
225
- TickEncoding,
226
- TileMapEncoding,
227
- TileMapPalette,
228
- TileMapSpec,
229
- TileMapSpecWithoutData,
230
- TimeUnit,
231
- TimeUnitTransform,
232
- Transform,
233
- ValueDef,
234
- VizSpec,
235
- WaffleEncoding,
236
- WindowFieldDef,
237
- WindowOp,
238
- WindowSortField,
239
- WindowTransform,
240
- YouDrawItConfig,
241
- } from './spec';
242
- export {
243
- getRepresentativeColor,
244
- isAxislessMark,
245
- isBarListSpec,
246
- isChartSpec,
247
- isConditionalDef,
248
- isEncodingChannel,
249
- isGradientDef,
250
- isGraphSpec,
251
- isLayerSpec,
252
- isMapSpec,
253
- isRangeAnnotation,
254
- isRefLineAnnotation,
255
- isSankeySpec,
256
- isTableSpec,
257
- isTextAnnotation,
258
- isTileMapSpec,
259
- isValueDef,
260
- MARK_DISPLAY_NAMES,
261
- MARK_TYPES,
262
- resolveMarkDef,
263
- resolveMarkType,
264
- } from './spec';
265
- // Table types
266
- export type {
267
- BarColumnConfig,
268
- CategoryColorsConfig,
269
- ColumnConfig,
270
- HeatmapColumnConfig,
271
- ImageColumnConfig,
272
- SparklineColumnConfig,
273
- } from './table';
274
- // Theme types
275
- export type {
276
- ChromeDefaults,
277
- ResolvedTheme,
278
- SeriesStrategy,
279
- Theme,
280
- ThemeChromeDefaults,
281
- ThemeColors,
282
- ThemeFontSizes,
283
- ThemeFonts,
284
- ThemeFontWeights,
285
- ThemeSpacing,
286
- TokenValue,
287
- } from './theme';