@astrato-io/visualizations 0.11.0 → 0.12.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 (135) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +129 -4
  3. package/VISUALIZATION_DEFINITIONS.md +3 -1
  4. package/chunks/{Button-CPG4WX8X.js → Button-CQdoKSXX.js} +3 -3
  5. package/chunks/{CircularProgress-PSLW8HmD.js → CircularProgress-DpT1lwWw.js} +18 -18
  6. package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
  7. package/chunks/{LinearProgress-KQ2EQlGL.js → LinearProgress-B7S0Q26A.js} +8 -8
  8. package/chunks/{MenuOption-B-6K7kks.js → MenuOption-DpKFJxmo.js} +133 -133
  9. package/chunks/{Title-BmvwZYkh.js → Title-m5damhc0.js} +10 -10
  10. package/chunks/{_createAggregator-CFmH6gUN.js → _createAggregator-BA8_iU9q.js} +7 -7
  11. package/chunks/{app-filter-bar.compiler-BY5-T16I.js → app-filter-bar.compiler--T4Qz3Wu.js} +3 -3
  12. package/chunks/{bar-layout-BNou0dZF.js → bar-layout-OFhxn2Go.js} +2 -2
  13. package/chunks/{bar.compiler-BkhO7sDd.js → bar.compiler-hWZBYYvV.js} +62 -62
  14. package/chunks/{builder-CNjuqD2z.js → builder-7w_bgV_h.js} +31 -31
  15. package/chunks/{coloring-BOiP0rmn.js → coloring-Cd6p0GQJ.js} +88 -83
  16. package/chunks/{createSimplePaletteValueFilter-BkgQ7MFE.js → createSimplePaletteValueFilter-CiJT8s1s.js} +55 -55
  17. package/chunks/defaults-CMFqXvaJ.js +3 -0
  18. package/chunks/{definitions-AS9GcavE.js → definitions-DTauTjIX.js} +412 -406
  19. package/chunks/{escobar-cQ1eQ64G.js → escobar-CMvphKSK.js} +4787 -4717
  20. package/chunks/{extend-preset-BlCbcXKR.js → extend-preset-BpXttHFk.js} +371 -372
  21. package/chunks/{filter.compiler-CI7dDNM1.js → filter.compiler-DOGFweJz.js} +4 -4
  22. package/chunks/{filtering-Dwi7hDPZ.js → filtering-NOnDcGbo.js} +183 -183
  23. package/chunks/handlers-CyYFSfhM.js +15393 -0
  24. package/chunks/{icon-picker-styles-CBlxEu3s.js → icon-picker-styles-DuSERhBU.js} +2 -2
  25. package/chunks/{isEqual-BdHo6wqq.js → isEqual-4f8yUUtC.js} +1 -1
  26. package/chunks/{isFocusVisible-C1nlVUwL.js → isFocusVisible-Czm70MGc.js} +1 -1
  27. package/chunks/line.compiler-B-4H55_T.js +203 -0
  28. package/chunks/{logger-Bc-DqDM_.js → logger-Cioob-QV.js} +71 -70
  29. package/chunks/{map.compiler-CRO6XpdI.js → map.compiler-Cv5V6EhF.js} +13 -13
  30. package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
  31. package/chunks/{measure-format-default-B6ghxih7.js → measure-format-default-B_kuGSzi.js} +7 -3
  32. package/chunks/{metadata-CtkvZEhS.js → metadata-dGSe5UWy.js} +5 -5
  33. package/chunks/{number.compiler-kV4lobCZ.js → number.compiler-D7nMcEMv.js} +8 -8
  34. package/chunks/{operations-COl9wgqi.js → operations-CgfehCad.js} +11462 -11223
  35. package/chunks/{range-CMJ5yc5Z.js → range-Dmwp9kVB.js} +2 -2
  36. package/chunks/{react-dom-BjsCbYHq.js → react-dom-CfuL-m78.js} +24 -24
  37. package/chunks/{render-wrappers-DFHi3Wkr.js → render-wrappers--g-zPFBW.js} +1 -1
  38. package/chunks/{requirements-C5YLmHKe.js → requirements-DHayNJ2C.js} +83 -83
  39. package/chunks/{shared-DyqxOie0.js → shared-DoEN9nNM.js} +282 -277
  40. package/chunks/standalone-B3hRGgYi.js +773 -0
  41. package/chunks/{standalone-BYK2U0Vd.js → standalone-BPNXgFft.js} +380 -380
  42. package/chunks/standalone-BPTT8XEu.js +424 -0
  43. package/chunks/standalone-BgAeHROc.js +2 -0
  44. package/chunks/{standalone-I5kRIsp8.js → standalone-BkQxag7M.js} +81 -81
  45. package/chunks/{standalone-DYVYccmY.js → standalone-Bxa3x6dg.js} +913 -913
  46. package/chunks/standalone-C0If-V6O.js +773 -0
  47. package/chunks/standalone-C1TOyflX.js +287 -0
  48. package/chunks/{standalone-DaNxWIKn.js → standalone-CE5PwJN0.js} +21 -21
  49. package/chunks/{standalone-K2OvRAQM.js → standalone-CG7IFN6n.js} +121 -121
  50. package/chunks/{standalone-Db_HNuWx.js → standalone-CKlgGu80.js} +44 -44
  51. package/chunks/standalone-CNf-oA2U.js +355 -0
  52. package/chunks/{standalone-9jrQ3zJT.js → standalone-CXPdWFlw.js} +10 -10
  53. package/chunks/{standalone-c4CPN6ug.js → standalone-Cf0_5tbu.js} +5783 -5785
  54. package/chunks/{standalone-Bp4G3MDx.js → standalone-DMi4-Vp3.js} +118 -118
  55. package/chunks/{standalone-BrjtMIdd.js → standalone-DTEX67C8.js} +108 -108
  56. package/chunks/{standalone-iOnJhCvA.js → standalone-DU46-kYv.js} +181 -181
  57. package/chunks/standalone-Dbn3jSH6.js +690 -0
  58. package/chunks/{standalone-CS5VGoja.js → standalone-DdcAL_k_.js} +833 -837
  59. package/chunks/standalone-DwCIA0UG.js +1057 -0
  60. package/chunks/standalone-Dz13tl3P.js +357 -0
  61. package/chunks/{standalone-CIjNYyya.js → standalone-H9GFzFk_.js} +937 -938
  62. package/chunks/{standalone-ChfEHb28.js → standalone-MduR0qre.js} +1279 -1279
  63. package/chunks/standalone-ejTz66P3.js +2 -0
  64. package/chunks/{standalone-D9k5SCd8.js → standalone-keB-0wK3.js} +189 -189
  65. package/chunks/{standalone-Bsfz5vnJ.js → standalone-nnkuQd0K.js} +35 -35
  66. package/chunks/standalone-vGGR6Vcn.js +6 -0
  67. package/chunks/{table.compiler-CMH_dtYs.js → table.compiler-mS4UvhLT.js} +12 -12
  68. package/chunks/theme-MYp6Rj1J.js +232 -0
  69. package/chunks/{useFieldName-BfxBzhhH.js → useFieldName-AdSak4Ch.js} +1 -1
  70. package/chunks/{utils-BdJrEeIQ.js → utils-CUKgR7it.js} +3265 -3133
  71. package/chunks/{view-Q-_XIrWE.js → view-BeYwpcVD.js} +478 -478
  72. package/chunks/{visualization-filters-BwS0xUqs.js → visualization-filters-B9qik5_K.js} +2706 -2384
  73. package/chunks/{with-html-element-D_ooGNWI.js → with-html-element-1GSeLT59.js} +3888 -3870
  74. package/definitions.js +2 -2
  75. package/docs/operations/astrato-app-filter-bar.md +1 -1
  76. package/docs/operations/bar.md +115 -32
  77. package/docs/operations/combo.md +50 -17
  78. package/docs/operations/date-picker.md +4 -4
  79. package/docs/operations/distribution-gauge.md +18 -16
  80. package/docs/operations/dot.md +107 -24
  81. package/docs/operations/filter.md +10 -8
  82. package/docs/operations/gauge.md +20 -18
  83. package/docs/operations/heatMap.md +73 -21
  84. package/docs/operations/histogram.md +45 -12
  85. package/docs/operations/iframe.md +1 -1
  86. package/docs/operations/image.md +1 -1
  87. package/docs/operations/index.md +11 -11
  88. package/docs/operations/line.md +57 -24
  89. package/docs/operations/map.md +16 -16
  90. package/docs/operations/number.md +10 -9
  91. package/docs/operations/pie.md +23 -21
  92. package/docs/operations/radar.md +13 -11
  93. package/docs/operations/sankey.md +19 -17
  94. package/docs/operations/scatter.md +111 -28
  95. package/docs/operations/shape.md +5 -5
  96. package/docs/operations/simpleTextObject.md +4 -4
  97. package/docs/operations/slider.md +1 -1
  98. package/docs/operations/table.md +27 -25
  99. package/docs/operations/tree.md +5 -3
  100. package/docs/operations/treemap.md +70 -18
  101. package/docs/operations/waterfall.md +40 -7
  102. package/docs/operations/word-cloud.md +69 -17
  103. package/getters.js +2 -2
  104. package/index.js +474 -525
  105. package/metadata.js +2 -2
  106. package/operations.js +24 -17
  107. package/package.json +71 -72
  108. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1 -1
  109. package/src/definitions/model/definitions/schema-registry.d.ts +13 -12
  110. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -2
  111. package/src/definitions/model/definitions/schemas/common.schema.d.ts +5 -4
  112. package/src/definitions/model/definitions/schemas/line.schema.d.ts +3 -2
  113. package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
  114. package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
  115. package/src/index.d.ts +1 -1
  116. package/src/operations/index.d.ts +11 -1
  117. package/src/types.d.ts +166 -1
  118. package/chunks/FieldTypeIcon-5k2bkqd0.js +0 -22
  119. package/chunks/category-axis-D1OVyMrr.js +0 -20
  120. package/chunks/color-rules-DYJL4fIW.js +0 -15
  121. package/chunks/color-settings-DJFoFTip.js +0 -5
  122. package/chunks/defaults-B5_8S-J-.js +0 -3
  123. package/chunks/handlers-C63NVo7i.js +0 -15433
  124. package/chunks/line.compiler-DCv3h42f.js +0 -198
  125. package/chunks/standalone-06i1wmIX.js +0 -6
  126. package/chunks/standalone-B6zUvxNQ.js +0 -357
  127. package/chunks/standalone-Be5APcVv.js +0 -762
  128. package/chunks/standalone-BuXpKMnc.js +0 -2
  129. package/chunks/standalone-CUGt2FUF.js +0 -2
  130. package/chunks/standalone-CnF2OYLQ.js +0 -355
  131. package/chunks/standalone-CznEEiq3.js +0 -422
  132. package/chunks/standalone-DcuE8KBa.js +0 -287
  133. package/chunks/standalone-pCrzBiTy.js +0 -773
  134. package/chunks/standalone-qrZaimgC.js +0 -689
  135. package/chunks/standalone-yqDJ8h3K.js +0 -1012
package/src/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { createDefaultVSpec, getVisualizationRegistryEntry, listVisualizationRegistryEntries, registry, standaloneVisualizationRegistry, } from './registry';
2
2
  export { createVisualizationRuntime } from './runtime';
3
3
  export { registerAstratoElements, type AstratoVisualizationElement } from './web-components';
4
- export type { AstratoClientLike, AstratoEngineServiceLike, AstratoEngineCapabilitiesLike, AstratoHostServicesLike, AstratoObservableLike, AstratoSelectionModeLike, AstratoSelectionServiceLike, AstratoSubscriptionLike, AstratoVariableServiceLike, DataBinding, MountedVisualizationHandle, SerializableVisualizationMetadata, StandaloneVisualizationFamily, StandaloneVisualizationType, VisualizationDataOptions, VisualizationDataResult, VisualizationExportConfig, VisualizationExportQuery, VisualizationManifestItemMetadata, VisualizationManifestMetadata, VisualizationBrushField, VisualizationMountStatus, VisualizationInstanceChange, VisualizationInstanceChangeListener, VisualizationRemoveInstanceOptions, VisualizationInstanceChangeReason, VisualizationInstance, VisualizationInstanceUpdate, VisualizationPresetMetadata, VisualizationRegistry, VisualizationRegistryEntry, VisualizationReadyResult, VisualizationReadyStatus, VisualizationRequirementsMetadata, VisualizationRequirementsValidation, VisualizationRuntime, VisualizationRuntimeLogger, VisualizationRuntimeOptions, VisualizationRuntimeTheme, VisualizationSchemaMetadata, } from './types';
4
+ export type { AstratoClientLike, AstratoEngineServiceLike, AstratoEngineCapabilitiesLike, AstratoHostServicesLike, AstratoObservableLike, AstratoSelectionModeLike, AstratoSelectionServiceLike, AstratoSubscriptionLike, AstratoVariableServiceLike, DataBinding, MountedVisualizationHandle, SerializableVisualizationMetadata, StandaloneVisualizationFamily, StandaloneVisualizationType, VisualizationDataOptions, VisualizationDataResult, VisualizationExportConfig, VisualizationExportQuery, VisualizationManifestItemMetadata, VisualizationManifestMetadata, VisualizationBrushField, VisualizationMountStatus, VisualizationInstanceChange, VisualizationInstanceChangeListener, VisualizationRemoveInstanceOptions, VisualizationInstanceChangeReason, VisualizationInstance, VisualizationInstanceUpdate, VisualizationPresetMetadata, VisualizationRegistry, VisualizationRegistryEntry, VisualizationReadyResult, VisualizationReadyStatus, VisualizationRequirementsMetadata, VisualizationRequirementsValidation, VisualizationRuntime, VisualizationRuntimeLogger, VisualizationRuntimeOptions, VisualizationRuntimeTheme, VisualizationSchemaMetadata, VisualizationThemeAxisColors, VisualizationThemeColor, VisualizationThemeColorReference, VisualizationThemeColors, VisualizationThemeFontSizes, VisualizationThemeMode, VisualizationThemeModeValue, VisualizationThemePalette, VisualizationThemePalettes, VisualizationThemeValue, } from './types';
@@ -1,4 +1,4 @@
1
- import type { StandaloneDataFieldOption, StandaloneVSpec, StandaloneVSpecChange, VisualizationRegistry, VisualizationInstance, VisualizationRuntime } from '../types';
1
+ import type { StandaloneDataFieldOption, StandaloneVSpec, StandaloneVSpecChange, VisualizationRegistry, VisualizationInstance, VisualizationRuntime, VisualizationRuntimeTheme, VisualizationThemeMode } from '../types';
2
2
  export interface VisualizationOperationRequest {
3
3
  id?: string;
4
4
  name: string;
@@ -16,6 +16,16 @@ export interface ApplyOperationsInput {
16
16
  variables?: unknown[];
17
17
  changesQueue?: VisualizationChangeQueueItem[] | undefined;
18
18
  registry?: VisualizationRegistry;
19
+ /**
20
+ * Theme that names such as "theme default" or "theme palette 2" resolve against. `applyRuntimeOperations`
21
+ * defaults it to the runtime's theme.
22
+ */
23
+ theme?: VisualizationRuntimeTheme | undefined;
24
+ /** Mode the theme resolves in. `applyRuntimeOperations` defaults it to the runtime's mode. */
25
+ mode?: VisualizationThemeMode | undefined;
26
+ /**
27
+ * @deprecated Pass `theme` instead.
28
+ */
19
29
  vTheme?: unknown;
20
30
  }
21
31
  export interface ApplyOperationsResult {
package/src/types.d.ts CHANGED
@@ -215,9 +215,152 @@ export interface VisualizationRuntimeOptions {
215
215
  */
216
216
  readyTimeoutMs?: number;
217
217
  /**
218
- * Theme overrides for every chart this runtime mounts.
218
+ * Theme for every chart this runtime mounts. Change it later with `runtime.setTheme()`.
219
219
  */
220
220
  theme?: VisualizationRuntimeTheme;
221
+ /**
222
+ * Color mode for every chart this runtime mounts. Defaults to `light`. Change it later with `runtime.setMode()`.
223
+ */
224
+ mode?: VisualizationThemeMode;
225
+ }
226
+ /**
227
+ * Color mode. Theme values given as a `{ light, dark }` pair resolve to the value for the active mode.
228
+ */
229
+ export type VisualizationThemeMode = 'light' | 'dark';
230
+ /**
231
+ * One value for each color mode.
232
+ */
233
+ export interface VisualizationThemeModeValue<TValue> {
234
+ light: TValue;
235
+ dark: TValue;
236
+ }
237
+ /**
238
+ * A theme value that is the same in both modes, or a `{ light, dark }` pair.
239
+ */
240
+ export type VisualizationThemeValue<TValue> = TValue | VisualizationThemeModeValue<TValue>;
241
+ /**
242
+ * A vSpec color that names a theme slot instead of a literal color, such as `theme:primary` or `theme:palette.3`.
243
+ * It resolves against the runtime's theme and mode when the chart draws.
244
+ */
245
+ export type VisualizationThemeColorReference = `theme:${string}`;
246
+ /**
247
+ * A CSS color, or a `{ light, dark }` pair of CSS colors.
248
+ */
249
+ export type VisualizationThemeColor = VisualizationThemeValue<string>;
250
+ export interface VisualizationThemePalette {
251
+ /**
252
+ * Palette id. A vSpec selects the palette by this id, and the `default*` theme settings name it.
253
+ */
254
+ id: string;
255
+ name?: string;
256
+ colors: VisualizationThemeValue<string[]>;
257
+ }
258
+ export interface VisualizationThemeAxisColors {
259
+ line?: VisualizationThemeColor;
260
+ tick?: VisualizationThemeColor;
261
+ label?: VisualizationThemeColor;
262
+ title?: VisualizationThemeColor;
263
+ }
264
+ export interface VisualizationThemeColors {
265
+ /**
266
+ * Color of a series that has no palette, such as a single-measure bar chart.
267
+ */
268
+ primary?: VisualizationThemeColor;
269
+ /**
270
+ * Further colors offered as theme colors in color pickers. `primary` comes first when both are set.
271
+ */
272
+ brand?: VisualizationThemeValue<string[]>;
273
+ /**
274
+ * Chart text: labels, legends and values.
275
+ */
276
+ text?: VisualizationThemeColor;
277
+ /**
278
+ * Chart titles. Defaults to `text`.
279
+ */
280
+ title?: VisualizationThemeColor;
281
+ /**
282
+ * Background the charts draw on. Charts that paint cells, such as tables, use it as their background.
283
+ */
284
+ surface?: VisualizationThemeColor;
285
+ border?: VisualizationThemeColor;
286
+ gridline?: VisualizationThemeColor;
287
+ axis?: VisualizationThemeAxisColors;
288
+ tooltip?: {
289
+ background?: VisualizationThemeColor;
290
+ text?: VisualizationThemeColor;
291
+ };
292
+ /**
293
+ * Label colors inside marks. Each label takes whichever of `text`, `onDark` and `onLight` contrasts best with its
294
+ * mark. Labels outside marks use `text`.
295
+ */
296
+ dataLabel?: {
297
+ onDark?: VisualizationThemeColor;
298
+ onLight?: VisualizationThemeColor;
299
+ };
300
+ selection?: {
301
+ /** Outline of a hovered mark. Defaults to dark navy in light mode and to the dark-mode text color in dark mode. */
302
+ hoverStroke?: VisualizationThemeColor;
303
+ /** Fill of marks a selection leaves out when they have no fill of their own. */
304
+ mutedFill?: VisualizationThemeColor;
305
+ };
306
+ /** Colors for increases, decreases and totals, such as waterfall bars whose vSpec sets no colors. */
307
+ status?: {
308
+ positive?: VisualizationThemeColor;
309
+ negative?: VisualizationThemeColor;
310
+ total?: VisualizationThemeColor;
311
+ };
312
+ table?: {
313
+ /**
314
+ * Background of the row or column a table highlights under the pointer, when the table's vSpec sets none.
315
+ * Defaults to `#f2f2f2` in light mode and to a dark gray in dark mode.
316
+ */
317
+ rowHighlight?: VisualizationThemeColor;
318
+ };
319
+ /** Categorical color for null values. Unset, nulls take a palette color like any other category. */
320
+ null?: VisualizationThemeColor;
321
+ /** Categorical color for the Top N "Others" group. Unset, it takes a palette color like any other category. */
322
+ others?: VisualizationThemeColor;
323
+ }
324
+ /**
325
+ * Font sizes in pixels. A size set in a chart's vSpec takes precedence.
326
+ */
327
+ export interface VisualizationThemeFontSizes {
328
+ axisLabel?: number;
329
+ legend?: number;
330
+ /** Labels drawn on data points, such as bar values and pie slices. */
331
+ dataLabel?: number;
332
+ /** Field titles, such as axis titles. */
333
+ fieldTitle?: number;
334
+ }
335
+ export interface VisualizationThemePalettes {
336
+ /**
337
+ * Palettes for coloring by category. They are listed before the built-in palettes.
338
+ */
339
+ categorical?: VisualizationThemePalette[];
340
+ /**
341
+ * Id of the categorical palette a chart uses when its vSpec names none. Defaults to the first palette in
342
+ * `categorical`. Built-in palette ids are accepted too.
343
+ */
344
+ defaultCategorical?: string;
345
+ /**
346
+ * Ramps for coloring by value, from low to high. They are listed before the built-in ramps.
347
+ */
348
+ sequential?: VisualizationThemePalette[];
349
+ /**
350
+ * Id of the sequential ramp a chart uses when its vSpec names none. Defaults to the first ramp in `sequential`.
351
+ * Built-in ramp ids are accepted too.
352
+ */
353
+ defaultSequential?: string;
354
+ /**
355
+ * Ramps for diverging gradients, from low through a neutral middle to high. They are listed before the built-in
356
+ * diverging ramps.
357
+ */
358
+ diverging?: VisualizationThemePalette[];
359
+ /**
360
+ * Id of the diverging ramp a diverging gradient uses when its vSpec names none. Defaults to the first ramp in
361
+ * `diverging`. Built-in ramp ids are accepted too.
362
+ */
363
+ defaultDiverging?: string;
221
364
  }
222
365
  export interface VisualizationRuntimeTheme {
223
366
  /**
@@ -225,6 +368,17 @@ export interface VisualizationRuntimeTheme {
225
368
  * `--astrato-font-family`, then `--font-family`, then the body font. `system-ui, sans-serif` is always appended.
226
369
  */
227
370
  fontFamily?: string;
371
+ /**
372
+ * Font stack for chart titles. Defaults to `fontFamily`.
373
+ */
374
+ titleFontFamily?: string;
375
+ colors?: VisualizationThemeColors;
376
+ palettes?: VisualizationThemePalettes;
377
+ fontSizes?: VisualizationThemeFontSizes;
378
+ /**
379
+ * Opacity, from 0 to 1, of marks a selection leaves out, after they are mixed towards gray. Defaults to 0.25.
380
+ */
381
+ mutedOpacity?: number;
228
382
  }
229
383
  /**
230
384
  * Export settings the chart registers with its query, taken from its vSpec.
@@ -309,4 +463,15 @@ export interface VisualizationRuntime {
309
463
  * Remove the group's brush.
310
464
  */
311
465
  clearBrush(groupId: string): void;
466
+ /**
467
+ * Replace the theme for every chart this runtime mounts, including charts that are already mounted. Mounted charts
468
+ * redraw without remounting. Pass `undefined` to return to the default theme.
469
+ */
470
+ setTheme(theme: VisualizationRuntimeTheme | undefined): void;
471
+ /**
472
+ * Switch the color mode for every chart this runtime mounts. Mounted charts redraw without remounting.
473
+ */
474
+ setMode(mode: VisualizationThemeMode): void;
475
+ getTheme(): VisualizationRuntimeTheme | undefined;
476
+ getMode(): VisualizationThemeMode;
312
477
  }
@@ -1,22 +0,0 @@
1
- import { Br as e, Sr as t, _r as n, br as r, dr as i, fr as a, gr as o, hr as s, mr as c, pr as l, ur as u, vr as d, xr as f, yr as p } from "./utils-BdJrEeIQ.js";
2
- import { s as m } from "./logger-Bc-DqDM_.js";
3
- var h = m(), g = e(), _ = ({ fieldType: e, fill: m, isBucketing: _ }) => {
4
- if (_) return /* @__PURE__ */ (0, g.jsx)(f, { fill: m });
5
- switch (e) {
6
- case h.FieldType.BOOLEAN: return /* @__PURE__ */ (0, g.jsx)(t, { fill: m });
7
- case h.FieldType.DATE: return /* @__PURE__ */ (0, g.jsx)(r, { fill: m });
8
- case h.FieldType.DECIMAL: return /* @__PURE__ */ (0, g.jsx)(p, { fill: m });
9
- case h.FieldType.FLOAT: return /* @__PURE__ */ (0, g.jsx)(d, { fill: m });
10
- case h.FieldType.GROUPED_DIMENSION: return /* @__PURE__ */ (0, g.jsx)(o, { fill: m });
11
- case h.FieldType.INT: return /* @__PURE__ */ (0, g.jsx)(s, { fill: m });
12
- case h.FieldType.JSON: return /* @__PURE__ */ (0, g.jsx)(c, { fill: m });
13
- case h.FieldType.REAL: return /* @__PURE__ */ (0, g.jsx)(s, { fill: m });
14
- case h.FieldType.STRING: return /* @__PURE__ */ (0, g.jsx)(l, { fill: m });
15
- case h.FieldType.TIME: return /* @__PURE__ */ (0, g.jsx)(a, { fill: m });
16
- case h.FieldType.TIMESTAMP: return /* @__PURE__ */ (0, g.jsx)(i, { fill: m });
17
- case h.FieldType.TIMESTAMP_TZ: return /* @__PURE__ */ (0, g.jsx)(u, { fill: m });
18
- case h.FieldType.GEOGRAPHY: return /* @__PURE__ */ (0, g.jsx)(n, { fill: m });
19
- default: return null;
20
- }
21
- };
22
- export { _ as t };
@@ -1,20 +0,0 @@
1
- import { r as e } from "./visualization-filters-BwS0xUqs.js";
2
- import { v as t } from "./operations-COl9wgqi.js";
3
- e();
4
- var n = (e) => {
5
- let n = e?.axes?.dimension, r = [], i = n?.labelWrap ?? (n?.labelWrapLines !== void 0 || void 0);
6
- return i !== void 0 && r.push({
7
- name: t.SET_AXIS_LABEL_WRAP,
8
- payload: i ? {
9
- labelWrap: i,
10
- labelWrapLines: n?.labelWrapLines ?? 2
11
- } : { labelWrap: i }
12
- }), e?.orientation !== "horizontal" && n?.labelsVisible !== !1 && r.push({
13
- name: "setShowAxisTooltip",
14
- payload: {
15
- axisName: "dimension",
16
- showAxisTooltip: !0
17
- }
18
- }), r;
19
- };
20
- export { n as t };
@@ -1,15 +0,0 @@
1
- var e = {
2
- Equals: "equals",
3
- InList: "inList",
4
- NotInList: "notInList",
5
- Greater: "greater",
6
- Less: "less",
7
- GreaterEquals: "greater-equals",
8
- LessEquals: "less-equals",
9
- Between: "between",
10
- NotEquals: "not-equals"
11
- }, t = {
12
- Custom: "custom",
13
- Gradient: "gradient"
14
- };
15
- export { t as n, e as t };
@@ -1,5 +0,0 @@
1
- var e = {
2
- ASC: "alpha-asc",
3
- DATA: "data"
4
- }, t = { SUPPORTING_MEASURE: "supporting-measure" }, n = (e) => !!e && typeof e == "object" && "type" in e && e.type === t.SUPPORTING_MEASURE;
5
- export { e as n, n as r, t };
@@ -1,3 +0,0 @@
1
- import { Wn as e } from "./visualization-filters-BwS0xUqs.js";
2
- var t = e;
3
- export { t };