@astrato-io/visualizations 0.7.0 → 0.9.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 (162) hide show
  1. package/README.md +1 -25
  2. package/THIRD_PARTY_NOTICES.md +307 -378
  3. package/chunks/{Button-BrGKp9Nm.js → Button-5CxPEACP.js} +11 -11
  4. package/chunks/CircularProgress-DFS-LQb7.js +765 -0
  5. package/chunks/FieldTypeIcon-pSVQFemC.js +22 -0
  6. package/chunks/LinearProgress-CjIQfkNA.js +327 -0
  7. package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-Cb7B7x6z.js} +1384 -1002
  8. package/chunks/Title-CtFw1bVg.js +1804 -0
  9. package/chunks/ToggleButton-Br9HCPCv.js +150 -0
  10. package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-B9775gLJ.js} +3 -3
  11. package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-B7wlH_Ro.js} +4 -4
  12. package/chunks/{builder-DEDvNq1k.js → builder-Dxo7D7c6.js} +118 -55
  13. package/chunks/{coloring-CncX_JRX.js → coloring-B-Wa8D5P.js} +3 -3
  14. package/chunks/contains-BK-sRXcB.js +21 -0
  15. package/chunks/{definitions-BPJQTx16.js → definitions-DNpzD9tY.js} +26 -26
  16. package/chunks/{escobar-DRhRMYRE.js → escobar-C4Nm3eJ7.js} +4436 -4802
  17. package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-BVKFtoe-.js} +46 -46
  18. package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-BlS3zoy_.js} +7 -7
  19. package/chunks/{filtering-cc7WqWpg.js → filtering-CGuLpg7u.js} +494 -270
  20. package/chunks/{handlers-TOT-7INo.js → handlers-CMbyj5y1.js} +1513 -1454
  21. package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-DYQgVEKG.js} +8 -8
  22. package/chunks/{isEqual-B8loyPsC.js → isEqual-DBg_b35N.js} +1 -1
  23. package/chunks/isFocusVisible-B1_z03UT.js +144 -0
  24. package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-Bo9i9qag.js} +7 -7
  25. package/chunks/{logger-DpQtYQnX.js → logger-3lng-wOw.js} +7 -3
  26. package/chunks/{metadata-WABZrt7Y.js → metadata-Fmx1swpK.js} +1 -1
  27. package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CdLd5aGW.js} +7 -7
  28. package/chunks/{operations-Dh4v1Ovt.js → operations-HSqnCRvv.js} +9156 -9112
  29. package/chunks/{range-Bi-7zT0k.js → range-CzO4isKK.js} +2 -2
  30. package/chunks/react-dom-BwZT0N3F.js +368 -0
  31. package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-CAuvgMxi.js} +1 -1
  32. package/chunks/{requirements-PAoRaJyb.js → requirements-CYpVh65U.js} +330 -302
  33. package/chunks/responsive.styles-FItb913l.js +93 -0
  34. package/chunks/{shared-Bn4N5QcZ.js → shared-DFoJxjVN.js} +401 -401
  35. package/chunks/{standalone-D__XCp-h.js → standalone-530a5lvf.js} +306 -306
  36. package/chunks/{standalone-CXNP6-xD.js → standalone-5DnapeHH.js} +112 -112
  37. package/chunks/{standalone-XTgSsTAa.js → standalone-B4jrf4KE.js} +70 -70
  38. package/chunks/{standalone-Bes8srx1.js → standalone-B6s_xG2u.js} +14 -14
  39. package/chunks/{standalone-DVTJwsTY.js → standalone-BDrQMxLi.js} +623 -614
  40. package/chunks/standalone-BMoJXGYe.js +2 -0
  41. package/chunks/{standalone-CLmGb7nn2.js → standalone-BfvGggeM2.js} +76 -76
  42. package/chunks/{standalone-D5Q5ngsD.js → standalone-BvWdpUL3.js} +26 -26
  43. package/chunks/{standalone-we5D5MIn.js → standalone-C6XDHYAM.js} +31 -31
  44. package/chunks/standalone-CMJJIi9v.js +2 -0
  45. package/chunks/{standalone-C8ZAEutO.js → standalone-CNkHsynO.js} +28 -28
  46. package/chunks/{standalone-BMTCb10X.js → standalone-CPUiiWNP.js} +5 -5
  47. package/chunks/{standalone-XuGksArp.js → standalone-CXniic5x.js} +9 -9
  48. package/chunks/standalone-C_Jd4gkj.js +6 -0
  49. package/chunks/{standalone-DW6NT205.js → standalone-CiaaibTa.js} +142 -142
  50. package/chunks/standalone-CoQxJ6ov.js +3638 -0
  51. package/chunks/{standalone-CM5XcAN5.js → standalone-Cu73fzSr.js} +7660 -7534
  52. package/chunks/standalone-DBeXQrwH.js +468 -0
  53. package/chunks/{standalone-DMcI1afI.js → standalone-DMCwtebn.js} +81 -81
  54. package/chunks/{standalone-BlMIwpEe.js → standalone-DWPfdP0A.js} +800 -668
  55. package/chunks/{standalone-DLlyRIE6.js → standalone-DpSRmAWx.js} +59 -59
  56. package/chunks/{standalone-BGkmozIb.js → standalone-DuwTOBXH.js} +256 -256
  57. package/chunks/{standalone-BDhPQtzQ.js → standalone-LFVgLhia.js} +234 -234
  58. package/chunks/{standalone-B55oyW6c.js → standalone-kzAhwH19.js} +149 -149
  59. package/chunks/{standalone-DN4S1MjT.js → standalone-mb7LwEiq.js} +885 -885
  60. package/chunks/{standalone-CJvIXsQE.js → standalone-r4ObFvys.js} +155 -155
  61. package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-C1qjqXaT.js} +7 -7
  62. package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
  63. package/chunks/useFieldName-mWrD_uk_.js +7 -0
  64. package/chunks/{utils-vdmi_2PK.js → utils-DYYD4Zzf.js} +7593 -12707
  65. package/chunks/{view-BuwQugKb.js → view-7fH6mGmY.js} +2034 -2070
  66. package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-mVnsnvLP.js} +3581 -3555
  67. package/chunks/with-html-element-B0Clt4jY.js +15901 -0
  68. package/definitions.js +2 -2
  69. package/docs/operations/astrato-app-filter-bar.md +1 -1
  70. package/docs/operations/bar.md +1 -1
  71. package/docs/operations/combo.md +1 -1
  72. package/docs/operations/date-picker.md +1 -1
  73. package/docs/operations/distribution-gauge.md +1 -1
  74. package/docs/operations/dot.md +1 -1
  75. package/docs/operations/filter.md +1 -1
  76. package/docs/operations/gauge.md +1 -1
  77. package/docs/operations/heatMap.md +1 -1
  78. package/docs/operations/histogram.md +1 -1
  79. package/docs/operations/iframe.md +1 -1
  80. package/docs/operations/image.md +1 -1
  81. package/docs/operations/index.md +2 -2
  82. package/docs/operations/line.md +1 -1
  83. package/docs/operations/number.md +1 -1
  84. package/docs/operations/pie.md +1 -1
  85. package/docs/operations/radar.md +1 -1
  86. package/docs/operations/sankey.md +1 -1
  87. package/docs/operations/scatter.md +1 -1
  88. package/docs/operations/shape.md +1 -1
  89. package/docs/operations/simpleTextObject.md +1 -1
  90. package/docs/operations/slider.md +1 -1
  91. package/docs/operations/table.md +66 -1
  92. package/docs/operations/tree.md +1 -1
  93. package/docs/operations/treemap.md +1 -1
  94. package/docs/operations/waterfall.md +1 -1
  95. package/docs/operations/word-cloud.md +1 -1
  96. package/getters.js +2 -2
  97. package/index.js +1191 -3
  98. package/metadata.js +15 -16
  99. package/operations.js +5 -5
  100. package/package.json +67 -102
  101. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +348 -348
  102. package/src/definitions/model/definitions/schema-registry.d.ts +101 -101
  103. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +8 -8
  104. package/src/definitions/model/definitions/schemas/common.schema.d.ts +29 -29
  105. package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
  106. package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
  107. package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
  108. package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
  109. package/src/getters/index.d.ts +3 -3
  110. package/src/index.d.ts +1 -1
  111. package/src/operations/index.d.ts +3 -3
  112. package/src/runtime/index.d.ts +2 -2
  113. package/src/types.d.ts +4 -8
  114. package/src/visualization-catalog.d.ts +26 -26
  115. package/src/web-components/index.d.ts +3 -3
  116. package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
  117. package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
  118. package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
  119. package/chunks/Title-CO5dP1ma.js +0 -1691
  120. package/chunks/ToggleButton-KOBAimC1.js +0 -112
  121. package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
  122. package/chunks/registry-KervaxqJ.js +0 -31
  123. package/chunks/responsive.styles-DSiOGD7u.js +0 -82
  124. package/chunks/standalone-BXKRE_Se.js +0 -468
  125. package/chunks/standalone-BjZp0QMe.js +0 -2
  126. package/chunks/standalone-C8qAelL4.js +0 -2
  127. package/chunks/standalone-DT0wKji7.js +0 -6
  128. package/chunks/standalone-DYQIQH4c.js +0 -2095
  129. package/chunks/useFieldName-Cjn9KCVp.js +0 -7
  130. package/chunks/useSlotProps-DLbQp4lc.js +0 -166
  131. package/chunks/web-components-DqClFkgO.js +0 -1185
  132. package/chunks/with-html-element-D0uY2zjI.js +0 -7328
  133. package/render.js +0 -10
  134. package/src/charts/bar.d.ts +0 -1
  135. package/src/charts/combo.d.ts +0 -1
  136. package/src/charts/dot.d.ts +0 -1
  137. package/src/charts/gauge-distribution.d.ts +0 -1
  138. package/src/charts/gauge.d.ts +0 -1
  139. package/src/charts/heat-map.d.ts +0 -1
  140. package/src/charts/histogram.d.ts +0 -1
  141. package/src/charts/line.d.ts +0 -1
  142. package/src/charts/pie.d.ts +0 -1
  143. package/src/charts/radar.d.ts +0 -1
  144. package/src/charts/sankey.d.ts +0 -1
  145. package/src/charts/scatter.d.ts +0 -1
  146. package/src/charts/table.d.ts +0 -1
  147. package/src/charts/tree.d.ts +0 -1
  148. package/src/charts/treemap.d.ts +0 -1
  149. package/src/charts/waterfall.d.ts +0 -1
  150. package/src/charts/word-cloud.d.ts +0 -1
  151. package/src/objects/app-filter-bar.d.ts +0 -1
  152. package/src/objects/date-picker.d.ts +0 -1
  153. package/src/objects/filter.d.ts +0 -1
  154. package/src/objects/iframe.d.ts +0 -1
  155. package/src/objects/image.d.ts +0 -1
  156. package/src/objects/number.d.ts +0 -1
  157. package/src/objects/shape.d.ts +0 -1
  158. package/src/objects/slider.d.ts +0 -1
  159. package/src/objects/text.d.ts +0 -1
  160. package/src/registry/create-visualization-registry.d.ts +0 -5
  161. package/src/render/index.d.ts +0 -34
  162. /package/chunks/{src-BOS6SqkZ.js → src-BOS6SqkZ2.js} +0 -0
@@ -0,0 +1,150 @@
1
+ import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
+ import { ei as t, it as n, jr as r, rt as i } from "./utils-DYYD4Zzf.js";
3
+ import { S as a, T as o } from "./MenuOption-Cb7B7x6z.js";
4
+ import { _ as s, c, d as l, l as u, m as d, u as f, v as p } from "./react-dom-BwZT0N3F.js";
5
+ import { n as m } from "./CircularProgress-DFS-LQb7.js";
6
+ import { p as h } from "./responsive.styles-FItb913l.js";
7
+ var g = /* @__PURE__ */ e(t(), 1);
8
+ function _(e) {
9
+ return p("MuiToggleButton", e);
10
+ }
11
+ var v = s("MuiToggleButton", [
12
+ "root",
13
+ "disabled",
14
+ "selected",
15
+ "standard",
16
+ "primary",
17
+ "secondary",
18
+ "sizeSmall",
19
+ "sizeMedium",
20
+ "sizeLarge",
21
+ "fullWidth"
22
+ ]), y = /*#__PURE__*/ g.createContext({}), b = /*#__PURE__*/ g.createContext(void 0);
23
+ function x(e, t) {
24
+ return t === void 0 || e === void 0 ? !1 : Array.isArray(t) ? t.includes(e) : e === t;
25
+ }
26
+ function S(e, t) {
27
+ let { children: n, disabled: r = !1, selected: i = !1, value: s } = e, c = o(), l = a({
28
+ id: s,
29
+ ref: t,
30
+ disabled: r,
31
+ selected: i
32
+ }), u = c.getItemMap().size === 0 && i ? 0 : l.tabIndex;
33
+ return /*#__PURE__*/ g.cloneElement(g.Children.only(n), {
34
+ ...l,
35
+ tabIndex: n.props.tabIndex ?? u
36
+ });
37
+ }
38
+ var C = /*#__PURE__*/ g.forwardRef(S), w = r(), T = (e) => {
39
+ let { classes: t, fullWidth: n, selected: r, disabled: i, size: a, color: o } = e;
40
+ return d({ root: [
41
+ "root",
42
+ r && "selected",
43
+ i && "disabled",
44
+ n && "fullWidth",
45
+ `size${c(a)}`,
46
+ o
47
+ ] }, _, t);
48
+ }, E = l(m, {
49
+ name: "MuiToggleButton",
50
+ slot: "Root",
51
+ overridesResolver: (e, t) => {
52
+ let { ownerState: n } = e;
53
+ return [t.root, t[`size${c(n.size)}`]];
54
+ }
55
+ })(f(({ theme: e }) => ({
56
+ ...e.typography.button,
57
+ borderRadius: (e.vars || e).shape.borderRadius,
58
+ padding: 11,
59
+ border: `1px solid ${(e.vars || e).palette.divider}`,
60
+ color: (e.vars || e).palette.action.active,
61
+ [`&.${v.disabled}`]: {
62
+ color: (e.vars || e).palette.action.disabled,
63
+ border: `1px solid ${(e.vars || e).palette.action.disabledBackground}`
64
+ },
65
+ "&:hover": {
66
+ textDecoration: "none",
67
+ backgroundColor: e.alpha((e.vars || e).palette.text.primary, (e.vars || e).palette.action.hoverOpacity),
68
+ "@media (hover: none)": { backgroundColor: "transparent" }
69
+ },
70
+ variants: [
71
+ {
72
+ props: { color: "standard" },
73
+ style: { [`&.${v.selected}`]: {
74
+ color: (e.vars || e).palette.text.primary,
75
+ backgroundColor: e.alpha((e.vars || e).palette.text.primary, (e.vars || e).palette.action.selectedOpacity),
76
+ "&:hover": {
77
+ backgroundColor: e.alpha((e.vars || e).palette.text.primary, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`),
78
+ "@media (hover: none)": { backgroundColor: e.alpha((e.vars || e).palette.text.primary, (e.vars || e).palette.action.selectedOpacity) }
79
+ }
80
+ } }
81
+ },
82
+ ...Object.entries(e.palette).filter(h()).map(([t]) => ({
83
+ props: { color: t },
84
+ style: { [`&.${v.selected}`]: {
85
+ color: (e.vars || e).palette[t].main,
86
+ backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.selectedOpacity),
87
+ "&:hover": {
88
+ backgroundColor: e.alpha((e.vars || e).palette[t].main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`),
89
+ "@media (hover: none)": { backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.selectedOpacity) }
90
+ }
91
+ } }
92
+ })),
93
+ {
94
+ props: { fullWidth: !0 },
95
+ style: { width: "100%" }
96
+ },
97
+ {
98
+ props: { size: "small" },
99
+ style: {
100
+ padding: 7,
101
+ fontSize: e.typography.pxToRem(13)
102
+ }
103
+ },
104
+ {
105
+ props: { size: "large" },
106
+ style: {
107
+ padding: 15,
108
+ fontSize: e.typography.pxToRem(15)
109
+ }
110
+ }
111
+ ]
112
+ }))), D = /*#__PURE__*/ g.forwardRef(function(e, t) {
113
+ let { value: r, isRovingTabIndex: a, ...o } = g.useContext(y), s = g.useContext(b), c = u({
114
+ props: i({
115
+ ...o,
116
+ selected: x(e.value, r)
117
+ }, e),
118
+ name: "MuiToggleButton"
119
+ }), { children: l, className: d, color: f = "standard", disabled: p = !1, disableFocusRipple: m = !1, fullWidth: h = !1, onChange: _, onClick: v, selected: S, size: D = "medium", value: O, ...k } = c, A = {
120
+ ...c,
121
+ color: f,
122
+ disabled: p,
123
+ disableFocusRipple: m,
124
+ fullWidth: h,
125
+ size: D
126
+ }, j = T(A), M = (e) => {
127
+ v && (v(e, O), e.defaultPrevented) || _ && _(e, O);
128
+ }, N = s || "", P = /*#__PURE__*/ (0, w.jsx)(E, {
129
+ className: n(o.className, j.root, d, N),
130
+ internalNativeButton: !0,
131
+ disabled: p,
132
+ focusRipple: !m,
133
+ ref: a ? void 0 : t,
134
+ onClick: M,
135
+ onChange: _,
136
+ value: O,
137
+ ownerState: A,
138
+ "aria-pressed": S,
139
+ ...k,
140
+ children: l
141
+ });
142
+ return a ? /*#__PURE__*/ (0, w.jsx)(C, {
143
+ disabled: p,
144
+ selected: S,
145
+ ref: t,
146
+ value: O,
147
+ children: P
148
+ }) : P;
149
+ });
150
+ export { v as i, b as n, y as r, D as t };
@@ -1,6 +1,6 @@
1
- import { T as e, d as t, g as n, h as r, st as i, u as a, v as o } from "./shared-Bn4N5QcZ.js";
2
- import { Bf as s, gd as c } from "./handlers-TOT-7INo.js";
3
- import { m as l } from "./operations-Dh4v1Ovt.js";
1
+ import { T as e, d as t, g as n, h as r, st as i, u as a, v as o } from "./shared-DFoJxjVN.js";
2
+ import { Hf as s, vd as c } from "./handlers-CMbyj5y1.js";
3
+ import { m as l } from "./operations-HSqnCRvv.js";
4
4
  var u = async (u) => {
5
5
  let d = c(u);
6
6
  if (d) return {
@@ -1,7 +1,7 @@
1
- import { Ua as e, r as t } from "./visualization-filters-Cc4KU-l-.js";
2
- import { A as n, D as r, E as i, N as a, S as o, T as s, _ as c, at as l, b as u, c as d, d as f, f as p, h as m, k as h, l as g, m as _, n as v } from "./shared-Bn4N5QcZ.js";
3
- import { Ef as y, gd as b } from "./handlers-TOT-7INo.js";
4
- import { _ as x, b as S, t as C, u as w, v as T, w as E } from "./operations-Dh4v1Ovt.js";
1
+ import { Ua as e, r as t } from "./visualization-filters-mVnsnvLP.js";
2
+ import { A as n, D as r, E as i, N as a, S as o, T as s, _ as c, at as l, b as u, c as d, d as f, f as p, h as m, k as h, l as g, m as _, n as v } from "./shared-DFoJxjVN.js";
3
+ import { Of as y, vd as b } from "./handlers-CMbyj5y1.js";
4
+ import { _ as x, b as S, t as C, u as w, v as T, w as E } from "./operations-HSqnCRvv.js";
5
5
  t();
6
6
  var D = (e) => {
7
7
  let t = [...e.data.dimensions.map((e, t) => ({
@@ -1,19 +1,19 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Cr as n, Za as r, y as i } from "./visualization-filters-Cc4KU-l-.js";
3
- import { Ei as a, ri as o } from "./utils-vdmi_2PK.js";
4
- import { Xt as s } from "./handlers-TOT-7INo.js";
5
- import { t as c } from "./isEqual-B8loyPsC.js";
6
- import "./extend-preset-CUFNpmPe.js";
7
- import { s as l } from "./logger-DpQtYQnX.js";
8
- import "./with-html-element-D0uY2zjI.js";
2
+ import { Cr as n, Za as r, y as i } from "./visualization-filters-mVnsnvLP.js";
3
+ import { ei as a, jr as o } from "./utils-DYYD4Zzf.js";
4
+ import { Xt as s } from "./handlers-CMbyj5y1.js";
5
+ import { t as c } from "./isEqual-DBg_b35N.js";
6
+ import "./extend-preset-BVKFtoe-.js";
7
+ import { c as l, s as u } from "./logger-3lng-wOw.js";
8
+ import "./with-html-element-B0Clt4jY.js";
9
9
  import "./event-bus-CrLB-Y8z.js";
10
- import "./useFieldName-Cjn9KCVp.js";
10
+ import "./useFieldName-mWrD_uk_.js";
11
11
  import "rxjs";
12
- var u = /* @__PURE__ */ e(a());
12
+ var d = /* @__PURE__ */ e(a());
13
13
  n("use-source-vspec", "yellow"), n("use-selections", "green");
14
- var d = /* @__PURE__ */ t(((e) => {
14
+ var f = /* @__PURE__ */ t(((e) => {
15
15
  Object.defineProperty(e, "__esModule", { value: !0 });
16
- })), f = /* @__PURE__ */ t(((e) => {
16
+ })), p = /* @__PURE__ */ t(((e) => {
17
17
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
18
18
  r === void 0 && (r = n);
19
19
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -28,11 +28,9 @@ var d = /* @__PURE__ */ t(((e) => {
28
28
  })), n = e && e.__exportStar || function(e, n) {
29
29
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
30
30
  };
31
- Object.defineProperty(e, "__esModule", { value: !0 }), n(d(), e);
32
- })), p = /* @__PURE__ */ t(((e) => {
33
- Object.defineProperty(e, "__esModule", { value: !0 });
31
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(f(), e);
34
32
  })), m = /* @__PURE__ */ t(((e) => {
35
- Object.defineProperty(e, "__esModule", { value: !0 }), e.CopilotDashboardGenerateBodyDto = e.CopilotVisualisationSortingDto = e.CopilotVisualisationMeasureDto = e.CopilotVisualisationDimensionDto = e.CopilotVisualisationSizeDto = void 0, e.CopilotVisualisationSizeDto = class {}, e.CopilotVisualisationDimensionDto = class {}, e.CopilotVisualisationMeasureDto = class {}, e.CopilotVisualisationSortingDto = class {}, e.CopilotDashboardGenerateBodyDto = class {};
33
+ Object.defineProperty(e, "__esModule", { value: !0 });
36
34
  })), h = /* @__PURE__ */ t(((e) => {
37
35
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
38
36
  r === void 0 && (r = n);
@@ -48,9 +46,9 @@ var d = /* @__PURE__ */ t(((e) => {
48
46
  })), n = e && e.__exportStar || function(e, n) {
49
47
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
50
48
  };
51
- Object.defineProperty(e, "__esModule", { value: !0 }), n(m(), e);
49
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.CopilotCustomPromptDto = void 0, n(m(), e), e.CopilotCustomPromptDto = class {};
52
50
  })), g = /* @__PURE__ */ t(((e) => {
53
- Object.defineProperty(e, "__esModule", { value: !0 });
51
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.SELF_SERVICE_ANALYSIS_MAX_QUERY_LIMIT = void 0, e.SELF_SERVICE_ANALYSIS_MAX_QUERY_LIMIT = 1e5;
54
52
  })), _ = /* @__PURE__ */ t(((e) => {
55
53
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
56
54
  r === void 0 && (r = n);
@@ -66,13 +64,9 @@ var d = /* @__PURE__ */ t(((e) => {
66
64
  })), n = e && e.__exportStar || function(e, n) {
67
65
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
68
66
  };
69
- Object.defineProperty(e, "__esModule", { value: !0 }), e.CopilotCustomPromptDto = e.FieldType = void 0, n(g(), e);
70
- var r;
71
- (function(e) {
72
- e.STRING = "string", e.INT = "int", e.REAL = "real", e.FLOAT = "float", e.DATE = "date", e.BOOLEAN = "boolean", e.DECIMAL = "decimal", e.JSON = "json", e.TIME = "time", e.TIME_TZ = "time_tz", e.TIMESTAMP = "timestamp", e.TIMESTAMP_TZ = "timestamp_tz", e.MILLISEC = "millisec";
73
- })(r || (e.FieldType = r = {})), e.CopilotCustomPromptDto = class {};
67
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(h(), e), n(g(), e);
74
68
  })), v = /* @__PURE__ */ t(((e) => {
75
- Object.defineProperty(e, "__esModule", { value: !0 }), e.SELF_SERVICE_ANALYSIS_MAX_QUERY_LIMIT = void 0, e.SELF_SERVICE_ANALYSIS_MAX_QUERY_LIMIT = 1e5;
69
+ Object.defineProperty(e, "__esModule", { value: !0 });
76
70
  })), y = /* @__PURE__ */ t(((e) => {
77
71
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
78
72
  r === void 0 && (r = n);
@@ -88,32 +82,14 @@ var d = /* @__PURE__ */ t(((e) => {
88
82
  })), n = e && e.__exportStar || function(e, n) {
89
83
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
90
84
  };
91
- Object.defineProperty(e, "__esModule", { value: !0 }), n(h(), e), n(_(), e), n(v(), e);
85
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(p(), e), n(_(), e), n(v(), e);
92
86
  })), b = /* @__PURE__ */ t(((e) => {
93
- Object.defineProperty(e, "__esModule", { value: !0 });
87
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.SLE_AI_COMPOSER_SYSTEM_PROMPT_TYPE = e.AI_COMPOSER_SYSTEM_PROMPT_TYPE = void 0, e.AI_COMPOSER_SYSTEM_PROMPT_TYPE = "AI_COMPOSER_SYSTEM_PROMPT", e.SLE_AI_COMPOSER_SYSTEM_PROMPT_TYPE = "SLE_AI_COMPOSER_SYSTEM_PROMPT";
94
88
  })), x = /* @__PURE__ */ t(((e) => {
95
- var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
96
- r === void 0 && (r = n);
97
- var i = Object.getOwnPropertyDescriptor(t, n);
98
- (!i || ("get" in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
99
- enumerable: !0,
100
- get: function() {
101
- return t[n];
102
- }
103
- }), Object.defineProperty(e, r, i);
104
- }) : (function(e, t, n, r) {
105
- r === void 0 && (r = n), e[r] = t[n];
106
- })), n = e && e.__exportStar || function(e, n) {
107
- for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
108
- };
109
- Object.defineProperty(e, "__esModule", { value: !0 }), n(f(), e), n(p(), e), n(y(), e), n(b(), e);
110
- })), S = /* @__PURE__ */ t(((e) => {
111
- Object.defineProperty(e, "__esModule", { value: !0 }), e.getVisualizationSpecificPromptType = e.SLE_AI_COMPOSER_SYSTEM_PROMPT_TYPE = e.AI_COMPOSER_SYSTEM_PROMPT_TYPE = e.SYSTEM_PROMPT_TYPE = void 0, e.SYSTEM_PROMPT_TYPE = "AI_ASSISTANT_SYSTEM_PROMPT", e.AI_COMPOSER_SYSTEM_PROMPT_TYPE = "AI_COMPOSER_SYSTEM_PROMPT", e.SLE_AI_COMPOSER_SYSTEM_PROMPT_TYPE = "SLE_AI_COMPOSER_SYSTEM_PROMPT", e.getVisualizationSpecificPromptType = (e) => !e || e.length === 0 ? null : `AI_ASSISTANT_VIS_PROMPT_${e.replace(/ /g, "_").toUpperCase()}`;
112
- })), C = /* @__PURE__ */ t(((e) => {
113
89
  Object.defineProperty(e, "__esModule", { value: !0 }), e.SNOWFLAKE_CORTEX_TEMPERATURE_MAX_VALUE = e.SNOWFLAKE_CORTEX_DEFAULT_TOP_P = e.SNOWFLAKE_CORTEX_DEFAULT_TEMPERATURE = e.GEMINI_DEFAULT_TOP_P = e.TOP_P_MAX_VALUE = e.TOP_P_MIN_VALUE = e.TEMPERATURE_MAX_VALUE = e.TEMPERATURE_MIN_VALUE = e.DEFAULT_TOP_P = e.DEFAULT_TEMPERATURE = void 0, e.DEFAULT_TEMPERATURE = 1, e.DEFAULT_TOP_P = 1, e.TEMPERATURE_MIN_VALUE = 0, e.TEMPERATURE_MAX_VALUE = 2, e.TOP_P_MIN_VALUE = 0, e.TOP_P_MAX_VALUE = 1, e.GEMINI_DEFAULT_TOP_P = .95, e.SNOWFLAKE_CORTEX_DEFAULT_TEMPERATURE = .1, e.SNOWFLAKE_CORTEX_DEFAULT_TOP_P = .1, e.SNOWFLAKE_CORTEX_TEMPERATURE_MAX_VALUE = 1;
114
- })), w = /* @__PURE__ */ t(((e) => {
90
+ })), S = /* @__PURE__ */ t(((e) => {
115
91
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getMinMaxTopPValues = e.getMinMaxTemperatureValues = e.getDefaultTopP = e.getDefaultTemperature = e.isPersistedConfigFlagEnabled = void 0;
116
- var t = s(), n = C();
92
+ var t = s(), n = x();
117
93
  e.isPersistedConfigFlagEnabled = (e) => e === !0 || e === "true", e.getDefaultTemperature = (e) => {
118
94
  switch (e) {
119
95
  case t.AIProviderType.SnowflakeCortex: return n.SNOWFLAKE_CORTEX_DEFAULT_TEMPERATURE;
@@ -129,7 +105,7 @@ var d = /* @__PURE__ */ t(((e) => {
129
105
  let r = e === t.AIProviderType.SnowflakeCortex ? n.SNOWFLAKE_CORTEX_TEMPERATURE_MAX_VALUE : n.TEMPERATURE_MAX_VALUE;
130
106
  return [n.TEMPERATURE_MIN_VALUE, r];
131
107
  }, e.getMinMaxTopPValues = () => [n.TOP_P_MIN_VALUE, n.TOP_P_MAX_VALUE];
132
- })), T = /* @__PURE__ */ t(((e) => {
108
+ })), C = /* @__PURE__ */ t(((e) => {
133
109
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getAiPromptUnknownTruncationMarker = e.getAiPromptTruncationMarker = e.sanitizeAiPromptCell = e.compactAiPromptTable = e.MAX_CELL_CHARS_IN_AI_PROMPT = e.DESCRIBE_QUERY_ROW_LIMIT = e.MAX_ROWS_IN_DESCRIBE_PROMPT = e.MAX_ROWS_IN_AI_PROMPT = void 0, e.MAX_ROWS_IN_AI_PROMPT = 50, e.MAX_ROWS_IN_DESCRIBE_PROMPT = 100, e.DESCRIBE_QUERY_ROW_LIMIT = e.MAX_ROWS_IN_DESCRIBE_PROMPT + 1, e.MAX_CELL_CHARS_IN_AI_PROMPT = 160, e.compactAiPromptTable = ({ fields: n, rows: r, truncatedRows: i = 0, hasMoreRows: a = !1, maxRows: o = e.MAX_ROWS_IN_AI_PROMPT, maxCharacters: s = Infinity }) => {
134
110
  let c = n.map((t) => (0, e.sanitizeAiPromptCell)(t)), l = r.slice(0, Math.max(0, o)).map((t) => t.map((t) => (0, e.sanitizeAiPromptCell)(t))), u = l.length, d = t(c, l, u, {
135
111
  sourceRowCount: r.length,
@@ -161,6 +137,93 @@ var d = /* @__PURE__ */ t(((e) => {
161
137
  let n = String(t ?? "").replace(/[\r\n,]+/g, " ").trim();
162
138
  return n.length > e.MAX_CELL_CHARS_IN_AI_PROMPT ? `${n.slice(0, e.MAX_CELL_CHARS_IN_AI_PROMPT - 3)}...` : n;
163
139
  }, e.getAiPromptTruncationMarker = (e) => `...truncated ${e} more rows`, e.getAiPromptUnknownTruncationMarker = () => "...additional rows omitted";
140
+ })), w = /* @__PURE__ */ t(((e) => {
141
+ var t = e && e.__rest || function(e, t) {
142
+ var n = {};
143
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
144
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
145
+ return n;
146
+ };
147
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.INSIGHTS_DESCRIBE_PATH = e.ASTRATO_AI_INSIGHTS_FLAG = void 0, e.describeChartRequest = i, e.describeDashboardRequest = a, e.describeCompletionRequest = o, e.insightsDescribeUrl = s;
148
+ var n = l();
149
+ e.ASTRATO_AI_INSIGHTS_FLAG = n.FeatureFlags.ASTRATO_AI_INSIGHTS, e.INSIGHTS_DESCRIBE_PATH = "/api/sle/insights/describe";
150
+ function r(e) {
151
+ let r = e ?? {}, { customPrompt: i, outputType: a } = r, o = t(r, ["customPrompt", "outputType"]);
152
+ return {
153
+ instructions: {
154
+ systemPrompt: i?.systemPrompt,
155
+ userPrompt: i?.userTask
156
+ },
157
+ options: o,
158
+ output: a === n.CopilotInsightsOutputType.HTML ? "html" : "text"
159
+ };
160
+ }
161
+ function i(e) {
162
+ return Object.assign(Object.assign({
163
+ purpose: "analysis",
164
+ providerId: e.providerId
165
+ }, r(e.options)), {
166
+ context: [...(e.queries ?? []).map((e) => ({
167
+ kind: "query",
168
+ query: e
169
+ })), ...(e.manualData ?? []).map((e) => ({
170
+ kind: "table",
171
+ table: e
172
+ }))],
173
+ execution: {
174
+ datasourceId: e.datasourceID,
175
+ queryTimeout: e.queryTimeout
176
+ }
177
+ });
178
+ }
179
+ function a(e) {
180
+ return Object.assign(Object.assign({
181
+ purpose: "analysis",
182
+ providerId: e.providerId
183
+ }, r(Object.assign(Object.assign({}, e.options), { tasks: [n.CopilotInsightsTask.Summarize] }))), { context: e.objects.flatMap((e) => {
184
+ let t = {
185
+ name: e.name,
186
+ visualizationType: e.type
187
+ };
188
+ return [...e.query ? [Object.assign(Object.assign({}, t), {
189
+ kind: "query",
190
+ query: e.query
191
+ })] : [], ...e.manualData ? [Object.assign(Object.assign({}, t), {
192
+ kind: "table",
193
+ table: e.manualData
194
+ })] : []];
195
+ }) });
196
+ }
197
+ function o(e) {
198
+ if (e.modelParams?.tools?.length || e.modelParams?.toolChoice) throw Error("Insights describe supports text responses; tool calling requires a separate API.");
199
+ return {
200
+ purpose: "completion",
201
+ providerId: e.providerId,
202
+ instructions: {
203
+ systemPrompt: e.systemPrompt,
204
+ userPrompt: e.userTask
205
+ },
206
+ context: [...e.payload ? [{
207
+ kind: "text",
208
+ text: e.payload
209
+ }] : [], ...(e.sqlStatements ?? []).map((e) => ({
210
+ kind: "sql",
211
+ statement: e
212
+ }))],
213
+ output: e.modelParams?.responseFormat === n.ModelResponseFormat.JSON ? "json" : "text",
214
+ generation: {
215
+ temperature: e.modelParams?.temperature,
216
+ topP: e.modelParams?.topP
217
+ },
218
+ execution: {
219
+ datasourceId: e.modelParams?.datasourceID,
220
+ queryTimeout: e.modelParams?.queryTimeout
221
+ }
222
+ };
223
+ }
224
+ function s(t) {
225
+ return `${t.replace(/(?:^|\/)api\/message\/?$/, "").replace(/\/$/, "")}${e.INSIGHTS_DESCRIBE_PATH}`;
226
+ }
164
227
  }));
165
228
  (/* @__PURE__ */ t(((e) => {
166
229
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
@@ -177,25 +240,25 @@ var d = /* @__PURE__ */ t(((e) => {
177
240
  })), n = e && e.__exportStar || function(e, n) {
178
241
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
179
242
  };
180
- Object.defineProperty(e, "__esModule", { value: !0 }), n(s(), e), n(x(), e), n(S(), e), n(w(), e), n(T(), e), n(C(), e);
243
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(s(), e), n(y(), e), n(b(), e), n(S(), e), n(C(), e), n(x(), e), n(w(), e);
181
244
  })))();
182
- var E = l(), D = ({ id: e, ...t }, { vBackendAPI: n, objectId: r }) => {
245
+ var T = u(), E = ({ id: e, ...t }, { vBackendAPI: n, objectId: r }) => {
183
246
  let i = { eventId: e };
184
247
  Object.keys(t).length > 0 && (i.payload = t);
185
248
  let a = r || n.model.getObject()?.id;
186
- n.daedalus.emitEvent(E.AstratoEvents.OBJECT_INTERACTION, i, a);
249
+ n.daedalus.emitEvent(T.AstratoEvents.OBJECT_INTERACTION, i, a);
187
250
  };
188
- i(), c(), o(), n("with-astrato-frame", "#4fcd55"), n("with-astrato-panel-special", "#4fcd55"), n("use-build-query", "yellow"), n("use-query-data", "steelblue"), u.forwardRef(function(e, t) {
189
- return u.createElement("img", {
251
+ i(), c(), o(), n("with-astrato-frame", "#4fcd55"), n("with-astrato-panel-special", "#4fcd55"), n("use-build-query", "yellow"), n("use-query-data", "steelblue"), d.forwardRef(function(e, t) {
252
+ return d.createElement("img", {
190
253
  ...e,
191
254
  ref: t,
192
255
  src: "data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Crect%20x%3D%223.33337%22%20y%3D%228.66675%22%20width%3D%227.33333%22%20height%3D%223.33333%22%20rx%3D%221%22%20fill%3D%22%2368686E%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M2.60718%2014C2.47457%2014%202.34739%2013.9649%202.25362%2013.9024C2.15986%2013.8399%202.10718%2013.7551%202.10718%2013.6667V2.33333C2.10718%202.24493%202.15986%202.16014%202.25362%202.09763C2.34739%202.03512%202.47457%202%202.60718%202C2.73979%202%202.86696%202.03512%202.96073%202.09763C3.0545%202.16014%203.10718%202.24493%203.10718%202.33333V13.6667C3.10718%2013.7551%203.0545%2013.8399%202.96073%2013.9024C2.86696%2013.9649%202.73979%2014%202.60718%2014Z%22%20fill%3D%22%2368686E%22%2F%3E%0A%20%20%3Crect%20x%3D%223.33337%22%20y%3D%224%22%20width%3D%2211.3333%22%20height%3D%223.33333%22%20rx%3D%221%22%20fill%3D%22%2368686E%22%2F%3E%0A%3C%2Fsvg%3E%0A"
193
256
  });
194
- }), u.forwardRef(function(e, t) {
195
- return u.createElement("img", {
257
+ }), d.forwardRef(function(e, t) {
258
+ return d.createElement("img", {
196
259
  ...e,
197
260
  ref: t,
198
261
  src: "data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Crect%20x%3D%2212%22%20y%3D%221.33325%22%20width%3D%2211.3333%22%20height%3D%223.33333%22%20rx%3D%221%22%20transform%3D%22rotate(90%2012%201.33325)%22%20fill%3D%22%2368686E%22%2F%3E%0A%20%20%3Crect%20x%3D%227.33337%22%20y%3D%225.33325%22%20width%3D%227.33333%22%20height%3D%223.33333%22%20rx%3D%221%22%20transform%3D%22rotate(90%207.33337%205.33325)%22%20fill%3D%22%2368686E%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M13.6667%2013.8931H2.33333C2.24493%2013.8931%202.16014%2013.8404%202.09763%2013.7466C2.03512%2013.6529%202%2013.5257%202%2013.3931C2%2013.2605%202.03512%2013.1333%202.09763%2013.0395C2.16014%2012.9457%202.24493%2012.8931%202.33333%2012.8931H13.6667C13.7551%2012.8931%2013.8399%2012.9457%2013.9024%2013.0395C13.9649%2013.1333%2014%2013.2605%2014%2013.3931C14%2013.5257%2013.9649%2013.6529%2013.9024%2013.7466C13.8399%2013.8404%2013.7551%2013.8931%2013.6667%2013.8931Z%22%20fill%3D%22%2368686E%22%2F%3E%0A%3C%2Fsvg%3E%0A"
199
262
  });
200
- }), r.Vertical, r.Horizontal, E.ImageFileType.JPEG, n("get-view-states", "#d8b4fe"), n("with-astrato-panel", "#388e3c");
201
- export { D as t };
263
+ }), r.Vertical, r.Horizontal, T.ImageFileType.JPEG, n("get-view-states", "#d8b4fe"), n("with-astrato-panel", "#388e3c");
264
+ export { E as t };
@@ -1,9 +1,9 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Cr as n, Ds as r, Eo as i, Hi as a, Rs as o, zt as s } from "./visualization-filters-Cc4KU-l-.js";
3
- import { Vn as c } from "./utils-vdmi_2PK.js";
2
+ import { Cr as n, Ds as r, Eo as i, Hi as a, Rs as o, gt as s } from "./visualization-filters-mVnsnvLP.js";
3
+ import { hn as c } from "./utils-DYYD4Zzf.js";
4
4
  import { t as l } from "./color-rules-CN7TcGrC.js";
5
5
  import { r as u } from "./color-settings-3VRlf_Vw.js";
6
- import "./logger-DpQtYQnX.js";
6
+ import "./logger-3lng-wOw.js";
7
7
  import { t as d, u as f } from "./src-77e3mC7i.js";
8
8
  var p = (e, t, n) => e?.type === r.Single ? m(t, e.color ?? void 0) : e?.type === r.Categorical ? {
9
9
  ref: n || void 0,
@@ -0,0 +1,21 @@
1
+ function e(e) {
2
+ let t = e.activeElement;
3
+ for (; t?.shadowRoot?.activeElement != null;) t = t.shadowRoot.activeElement;
4
+ return t;
5
+ }
6
+ var t = e;
7
+ function n(e, t) {
8
+ if (!e || !t) return !1;
9
+ if (e.contains(t)) return !0;
10
+ let n = t.getRootNode?.();
11
+ if (n && n instanceof ShadowRoot) {
12
+ let n = t;
13
+ for (; n;) {
14
+ if (e === n) return !0;
15
+ n = n.parentNode ?? n.host ?? null;
16
+ }
17
+ }
18
+ return !1;
19
+ }
20
+ var r = n;
21
+ export { e as i, n, t as r, r as t };
@@ -1,8 +1,8 @@
1
- import { $i as e, Ds as t, Ns as n, da as r, js as i, r as a, vc as o } from "./visualization-filters-Cc4KU-l-.js";
2
- import { $ as s, A as c, B as l, C as u, E as d, F as f, G as p, H as m, I as h, J as ee, K as te, L as ne, N as re, O as ie, P as ae, Q as oe, R as se, S as ce, T as g, U as le, V as ue, W as de, X as fe, Y as pe, Z as me, _ as he, a as ge, at as _e, c as ve, d as _, et as ye, f as be, g as v, h as y, i as xe, it as Se, j as b, k as Ce, n as we, nt as Te, o as Ee, ot as De, q as Oe, r as ke, rt as Ae, s as je, st as Me, t as x, tt as Ne, u as S, v as C, w as Pe, x as Fe, y as w, z as Ie } from "./shared-Bn4N5QcZ.js";
3
- import { Dd as Le, Gd as Re, If as ze, Kd as Be, Qd as Ve, Sd as He, Yd as Ue, _f as We, bd as Ge, ef as Ke, ff as qe, gd as T, lf as Je, nf as Ye, sf as Xe, tf as Ze, uf as Qe, vf as $e, wd as et, wf as tt, xf as nt, yf as rt, ym as it } from "./handlers-TOT-7INo.js";
1
+ import { $i as e, Ds as t, Ns as n, da as r, js as i, r as a, vc as o } from "./visualization-filters-mVnsnvLP.js";
2
+ import { $ as s, A as c, B as l, C as u, E as d, F as f, G as p, H as m, I as h, J as ee, K as te, L as ne, N as re, O as ie, P as ae, Q as oe, R as se, S as ce, T as g, U as le, V as ue, W as de, X as fe, Y as pe, Z as me, _ as he, a as ge, at as _e, c as ve, d as _, et as ye, f as be, g as v, h as y, i as xe, it as Se, j as b, k as Ce, n as we, nt as Te, o as Ee, ot as De, q as Oe, r as ke, rt as Ae, s as je, st as Me, t as x, tt as Ne, u as S, v as C, w as Pe, x as Fe, y as w, z as Ie } from "./shared-DFoJxjVN.js";
3
+ import { Cf as Le, Ed as Re, Ef as ze, Jd as Be, Rf as Ve, Sd as He, Zd as Ue, bf as We, df as Ge, ef as Ke, ff as qe, if as Je, kd as Ye, lf as Xe, mf as Ze, nf as Qe, qd as $e, rf as et, vd as T, wd as tt, xf as nt, xm as rt, yf as it } from "./handlers-CMbyj5y1.js";
4
4
  import { n as at } from "./label-format-type-weq1XfcX.js";
5
- import { C as ot, S as E, _ as st, b as ct, f as lt, v as ut, x as dt } from "./operations-Dh4v1Ovt.js";
5
+ import { C as ot, S as E, _ as st, b as ct, f as lt, v as ut, x as dt } from "./operations-HSqnCRvv.js";
6
6
  import { z as D } from "zod";
7
7
  var ft = (e, ...t) => e, O = {
8
8
  horsepower: "[Cars].[Horsepower]",
@@ -1337,7 +1337,7 @@ var ft = (e, ...t) => e, O = {
1337
1337
  issues: g(r.error, e),
1338
1338
  success: !1
1339
1339
  };
1340
- }, Tt = async (e) => (await import("./app-filter-bar.compiler-TwVTeoj5.js")).compileAppFilterBarVisualizationDefinition(e), Et = async (e) => (await import("./bar.compiler-DuQg8EUb.js")).compileBarVisualizationDefinition(e), Dt = async (e) => (await import("./filter.compiler-w27dlv0C.js")).compileFilterVisualizationDefinition(e), Ot = async (e) => (await import("./line.compiler-Ct1WhN2p.js")).compileLineVisualizationDefinition(e), kt = async (e) => (await import("./number.compiler-D8TPly-4.js")).compileNumberVisualizationDefinition(e), At = async (e) => (await import("./table.compiler-DMeeHxb6.js")).compileTableVisualizationDefinition(e), U = o(), jt = [
1340
+ }, Tt = async (e) => (await import("./app-filter-bar.compiler-B9775gLJ.js")).compileAppFilterBarVisualizationDefinition(e), Et = async (e) => (await import("./bar.compiler-B7wlH_Ro.js")).compileBarVisualizationDefinition(e), Dt = async (e) => (await import("./filter.compiler-BlS3zoy_.js")).compileFilterVisualizationDefinition(e), Ot = async (e) => (await import("./line.compiler-Bo9i9qag.js")).compileLineVisualizationDefinition(e), kt = async (e) => (await import("./number.compiler-CdLd5aGW.js")).compileNumberVisualizationDefinition(e), At = async (e) => (await import("./table.compiler-C1qjqXaT.js")).compileTableVisualizationDefinition(e), U = o(), jt = [
1341
1341
  U.FieldType.DATE,
1342
1342
  U.FieldType.TIMESTAMP,
1343
1343
  U.FieldType.TIMESTAMP_TZ
@@ -1418,27 +1418,27 @@ var Bt = {
1418
1418
  schema: p,
1419
1419
  sorting: !0,
1420
1420
  type: "combo",
1421
- vSpecSchema: tt
1421
+ vSpecSchema: ze
1422
1422
  },
1423
1423
  "distribution-gauge": {
1424
1424
  coloringType: t.PerEachMeasure,
1425
1425
  measureRole: () => e.GAUGE_VALUE,
1426
1426
  schema: te,
1427
1427
  type: "distribution-gauge",
1428
- vSpecSchema: $e
1428
+ vSpecSchema: We
1429
1429
  },
1430
1430
  dot: {
1431
1431
  coloringType: t.Categorical,
1432
1432
  schema: Oe,
1433
1433
  type: "dot",
1434
- vSpecSchema: We
1434
+ vSpecSchema: it
1435
1435
  },
1436
1436
  gauge: {
1437
1437
  coloringType: (e) => (e.data.dimensions?.length ?? 0) > 0 ? t.Categorical : t.PerEachMeasure,
1438
1438
  measureRole: (t, n) => (n.data.dimensions?.length ?? 0) > 0 && t === 1 ? e.GAUGE_TARGET : e.GAUGE_VALUE,
1439
1439
  schema: ee,
1440
1440
  type: "gauge",
1441
- vSpecSchema: rt
1441
+ vSpecSchema: nt
1442
1442
  },
1443
1443
  heatMap: {
1444
1444
  coloringType: t.Gradient,
@@ -1448,13 +1448,13 @@ var Bt = {
1448
1448
  schema: pe,
1449
1449
  sorting: !0,
1450
1450
  type: "heatMap",
1451
- vSpecSchema: qe
1451
+ vSpecSchema: Ze
1452
1452
  },
1453
1453
  histogram: {
1454
1454
  coloringType: t.Single,
1455
1455
  schema: fe,
1456
1456
  type: "histogram",
1457
- vSpecSchema: Qe
1457
+ vSpecSchema: qe
1458
1458
  },
1459
1459
  pie: {
1460
1460
  coloringType: t.Categorical,
@@ -1463,18 +1463,18 @@ var Bt = {
1463
1463
  schema: me,
1464
1464
  sorting: !0,
1465
1465
  type: "pie",
1466
- vSpecSchema: Ye
1466
+ vSpecSchema: Je
1467
1467
  },
1468
1468
  radar: {
1469
1469
  conditionalColoringFallbackType: t.Single,
1470
1470
  schema: oe,
1471
1471
  type: "radar",
1472
- vSpecSchema: Ze
1472
+ vSpecSchema: et
1473
1473
  },
1474
1474
  sankey: {
1475
1475
  schema: s,
1476
1476
  type: "sankey",
1477
- vSpecSchema: Ke
1477
+ vSpecSchema: Qe
1478
1478
  },
1479
1479
  scatter: {
1480
1480
  coloringType: t.Categorical,
@@ -1488,30 +1488,30 @@ var Bt = {
1488
1488
  schema: ye,
1489
1489
  sorting: !0,
1490
1490
  type: "scatter",
1491
- vSpecSchema: Ve
1491
+ vSpecSchema: Ke
1492
1492
  },
1493
1493
  tree: {
1494
1494
  queryLimit: !0,
1495
1495
  schema: Ne,
1496
1496
  sorting: !0,
1497
1497
  type: "tree",
1498
- vSpecSchema: Le
1498
+ vSpecSchema: Ye
1499
1499
  },
1500
1500
  treemap: {
1501
1501
  schema: Te,
1502
1502
  type: "treemap",
1503
- vSpecSchema: et
1503
+ vSpecSchema: Re
1504
1504
  },
1505
1505
  waterfall: {
1506
1506
  schema: Ae,
1507
1507
  type: "waterfall",
1508
- vSpecSchema: He
1508
+ vSpecSchema: tt
1509
1509
  },
1510
1510
  "word-cloud": {
1511
1511
  conditionalColoringFallbackType: t.Single,
1512
1512
  schema: Se,
1513
1513
  type: "word-cloud",
1514
- vSpecSchema: Ge
1514
+ vSpecSchema: He
1515
1515
  }
1516
1516
  }, Vt = (e, t) => {
1517
1517
  let n = [], r = t.presentation, i = he(r?.axes);
@@ -1870,7 +1870,7 @@ var Bt = {
1870
1870
  },
1871
1871
  schema: f,
1872
1872
  type: "atomic-input",
1873
- vSpecSchema: ze
1873
+ vSpecSchema: Ve
1874
1874
  },
1875
1875
  iframe: {
1876
1876
  createRequests: (e) => [{
@@ -1879,7 +1879,7 @@ var Bt = {
1879
1879
  }],
1880
1880
  schema: ne,
1881
1881
  type: "iframe",
1882
- vSpecSchema: Je
1882
+ vSpecSchema: Ge
1883
1883
  },
1884
1884
  image: {
1885
1885
  createRequests: (e) => X(e, {
@@ -1975,7 +1975,7 @@ var Bt = {
1975
1975
  issues: g(n.error, e.definition),
1976
1976
  success: !1
1977
1977
  };
1978
- let r = nt.safeParse(e.baseVSpec);
1978
+ let r = Le.safeParse(e.baseVSpec);
1979
1979
  if (!r.success) return {
1980
1980
  issues: [_("invalid_structure", ["baseVSpec"], "Base date-picker vSpec is invalid.", { details: { issues: r.error.issues } })],
1981
1981
  success: !1
@@ -2015,7 +2015,7 @@ var Bt = {
2015
2015
  }), ["settings"]), "issue" in s ? {
2016
2016
  issues: [s.issue],
2017
2017
  success: !1
2018
- } : v(s.state, nt);
2018
+ } : v(s.state, Le);
2019
2019
  }, Zt = async (e) => {
2020
2020
  let t = T(e);
2021
2021
  if (t) return {
@@ -2031,7 +2031,7 @@ var Bt = {
2031
2031
  issues: g(n.error, e.definition),
2032
2032
  success: !1
2033
2033
  };
2034
- let r = Re.safeParse(e.baseVSpec);
2034
+ let r = $e.safeParse(e.baseVSpec);
2035
2035
  if (!r.success) return {
2036
2036
  issues: [_("invalid_structure", ["baseVSpec"], "Base slider vSpec is invalid.", { details: { issues: r.error.issues } })],
2037
2037
  success: !1
@@ -2071,7 +2071,7 @@ var Bt = {
2071
2071
  })], ["settings"]), "issue" in s ? {
2072
2072
  issues: [s.issue],
2073
2073
  success: !1
2074
- } : v(s.state, Re);
2074
+ } : v(s.state, $e);
2075
2075
  }, Q = (e) => {
2076
2076
  let t = z(e.type);
2077
2077
  return {
@@ -2182,7 +2182,7 @@ var Bt = {
2182
2182
  issues: s,
2183
2183
  success: !1
2184
2184
  };
2185
- let c = re(a.data), l = D.array(it).safeParse(c);
2185
+ let c = re(a.data), l = D.array(rt).safeParse(c);
2186
2186
  if (!l.success) return {
2187
2187
  issues: g(l.error, c, ["availableFields"]),
2188
2188
  success: !1