@opendata-ai/openchart-core 8.0.0-rc.8 → 8.0.0

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 +461 -56
  2. package/dist/index.js +62 -24
  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 +373 -67
  8. package/schema/table.schema.json +35 -1
  9. package/schema/vizspec.schema.json +950 -152
  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 -208
  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 -151
  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 -289
  78. package/src/types/layout.ts +0 -2001
  79. package/src/types/schema-roots.ts +0 -32
  80. package/src/types/spec.ts +0 -2906
  81. package/src/types/table.ts +0 -108
  82. package/src/types/theme.ts +0 -209
@@ -1,289 +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
- MapPointMark,
73
- Margins,
74
- Mark,
75
- MarkAria,
76
- MeasureTextFn,
77
- PaginationState,
78
- Point,
79
- PointMark,
80
- Rect,
81
- RectMark,
82
- ResolvedAnimation,
83
- ResolvedAnimationPhase,
84
- ResolvedAnnotation,
85
- ResolvedChrome,
86
- ResolvedChromeElement,
87
- ResolvedColumn,
88
- ResolvedFillPattern,
89
- ResolvedLabel,
90
- ResolvedMetricBar,
91
- ResolvedMetricCell,
92
- ResolvedSeriesSearch,
93
- ResolvedYouDrawIt,
94
- RuleMarkLayout,
95
- SankeyLayout,
96
- SankeyLinkMark,
97
- SankeyNodeMark,
98
- SizeLegendCircle,
99
- SizeLegendLayout,
100
- SortState,
101
- SparklineData,
102
- SparklineTableCell,
103
- TableCell,
104
- TableCellBase,
105
- TableLayout,
106
- TableRow,
107
- TextMarkLayout,
108
- TextStyle,
109
- TextTableCell,
110
- TickMarkLayout,
111
- TileMapLayout,
112
- TileMapTileMark,
113
- TooltipContent,
114
- TooltipField,
115
- YouDrawItSample,
116
- YouDrawItYInvert,
117
- } from './layout';
118
- // Spec types (user input)
119
- export type {
120
- A11yConfig,
121
- AggregateOp,
122
- AggregateTransform,
123
- AnimationConfig,
124
- AnimationEase,
125
- AnimationPhaseConfig,
126
- AnimationSpec,
127
- AnimationStagger,
128
- Annotation,
129
- AnnotationAnchor,
130
- AnnotationOffset,
131
- ArcEncoding,
132
- AreaEncoding,
133
- AxisConfig,
134
- BarEncoding,
135
- BarListEncoding,
136
- BarListSpec,
137
- BarListSpecWithoutData,
138
- BeeswarmEncoding,
139
- BinParams,
140
- BinTransform,
141
- CalculateExpression,
142
- CalculateTransform,
143
- CalendarEncoding,
144
- ChartSpec,
145
- ChartSpecOverride,
146
- ChartSpecWithoutData,
147
- Chrome,
148
- ChromeText,
149
- ChromeTextStyle,
150
- ChromeThemeOverride,
151
- CircleEncoding,
152
- Condition,
153
- ConditionalValueDef,
154
- ConnectorConfig,
155
- ConnectorType,
156
- DarkMode,
157
- DataRow,
158
- Display,
159
- Encoding,
160
- EncodingChannel,
161
- EndpointLabelContent,
162
- EndpointLabelsConfig,
163
- FacetChannel,
164
- FieldPredicate,
165
- FieldType,
166
- FilterPredicate,
167
- FilterTransform,
168
- FoldTransform,
169
- GradientDef,
170
- GradientStop,
171
- GraphEdge,
172
- GraphEncoding,
173
- GraphEncodingChannel,
174
- GraphLayoutConfig,
175
- GraphNode,
176
- GraphSpec,
177
- GraphSpecWithoutData,
178
- LabelConfig,
179
- LabelDensity,
180
- LabelSpec,
181
- LayerSpec,
182
- LegendConfig,
183
- LinearGradient,
184
- LineEncoding,
185
- LogicalAnd,
186
- LogicalNot,
187
- LogicalOr,
188
- LollipopEncoding,
189
- MapEncoding,
190
- MapFocus,
191
- MapGeo,
192
- MapPointsLayer,
193
- MapProjection,
194
- MapSpec,
195
- MapSpecWithoutData,
196
- MarkDef,
197
- MarkType,
198
- Metric,
199
- NodeOverride,
200
- ParliamentEncoding,
201
- PointEncoding,
202
- RadialGradient,
203
- RangeAnnotation,
204
- RangeEncoding,
205
- RectEncoding,
206
- RefLineAnnotation,
207
- RelativeTimeRef,
208
- ResolveConfig,
209
- ResolveMode,
210
- ResponsiveConfig,
211
- SankeyEncoding,
212
- SankeyLinkColor,
213
- SankeyNodeAlign,
214
- SankeySpec,
215
- SankeySpecWithoutData,
216
- ScaleConfig,
217
- ScaleType,
218
- SeriesSearchConfig,
219
- SeriesStyle,
220
- SortByField,
221
- StoredVizSpec,
222
- TableSpec,
223
- TableSpecWithoutData,
224
- TextAnnotation,
225
- TextEncoding,
226
- ThemeConfig,
227
- TickEncoding,
228
- TileMapEncoding,
229
- TileMapPalette,
230
- TileMapSpec,
231
- TileMapSpecWithoutData,
232
- TimeUnit,
233
- TimeUnitTransform,
234
- Transform,
235
- ValueDef,
236
- VizSpec,
237
- WaffleEncoding,
238
- WindowFieldDef,
239
- WindowOp,
240
- WindowSortField,
241
- WindowTransform,
242
- YouDrawItConfig,
243
- } from './spec';
244
- export {
245
- getRepresentativeColor,
246
- isAxislessMark,
247
- isBarListSpec,
248
- isChartSpec,
249
- isConditionalDef,
250
- isEncodingChannel,
251
- isGradientDef,
252
- isGraphSpec,
253
- isLayerSpec,
254
- isMapSpec,
255
- isRangeAnnotation,
256
- isRefLineAnnotation,
257
- isSankeySpec,
258
- isTableSpec,
259
- isTextAnnotation,
260
- isTileMapSpec,
261
- isValueDef,
262
- MARK_DISPLAY_NAMES,
263
- MARK_TYPES,
264
- resolveMarkDef,
265
- resolveMarkType,
266
- } from './spec';
267
- // Table types
268
- export type {
269
- BarColumnConfig,
270
- CategoryColorsConfig,
271
- ColumnConfig,
272
- HeatmapColumnConfig,
273
- ImageColumnConfig,
274
- SparklineColumnConfig,
275
- } from './table';
276
- // Theme types
277
- export type {
278
- ChromeDefaults,
279
- ResolvedTheme,
280
- SeriesStrategy,
281
- Theme,
282
- ThemeChromeDefaults,
283
- ThemeColors,
284
- ThemeFontSizes,
285
- ThemeFonts,
286
- ThemeFontWeights,
287
- ThemeSpacing,
288
- TokenValue,
289
- } from './theme';