@astrato-io/visualizations 0.10.1 → 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 (143) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/README.md +148 -5
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +9 -146
  5. package/chunks/{Button-Dn3rJrYf.js → Button-CQdoKSXX.js} +3 -3
  6. package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-DpT1lwWw.js} +20 -20
  7. package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
  8. package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-B7S0Q26A.js} +14 -14
  9. package/chunks/{MenuOption-Czc34u4q.js → MenuOption-DpKFJxmo.js} +167 -167
  10. package/chunks/{Title-BgYnaVTR.js → Title-m5damhc0.js} +37 -37
  11. package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-BA8_iU9q.js} +17 -17
  12. package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler--T4Qz3Wu.js} +8 -8
  13. package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-OFhxn2Go.js} +2 -2
  14. package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-hWZBYYvV.js} +71 -69
  15. package/chunks/{builder-C-TKA-My.js → builder-7w_bgV_h.js} +106 -55
  16. package/chunks/{coloring-BtnPiQ_o.js → coloring-Cd6p0GQJ.js} +93 -88
  17. package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-CiJT8s1s.js} +169 -169
  18. package/chunks/defaults-CMFqXvaJ.js +3 -0
  19. package/chunks/{definitions-CT304NDn.js → definitions-DTauTjIX.js} +399 -398
  20. package/chunks/{escobar-CvEV2ES1.js → escobar-CMvphKSK.js} +4949 -4879
  21. package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BpXttHFk.js} +449 -450
  22. package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-DOGFweJz.js} +10 -10
  23. package/chunks/{filtering-8_bFv-jb.js → filtering-NOnDcGbo.js} +241 -241
  24. package/chunks/handlers-CyYFSfhM.js +15393 -0
  25. package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-DuSERhBU.js} +8 -8
  26. package/chunks/{isEqual-D8Ay63xR.js → isEqual-4f8yUUtC.js} +1 -1
  27. package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-Czm70MGc.js} +9 -9
  28. package/chunks/line.compiler-B-4H55_T.js +203 -0
  29. package/chunks/linear-Bq_r9l5S.js +264 -0
  30. package/chunks/{logger-DdZpR7xZ.js → logger-Cioob-QV.js} +74 -73
  31. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  32. package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-Cv5V6EhF.js} +40 -40
  33. package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
  34. package/chunks/measure-format-default-B_kuGSzi.js +26 -0
  35. package/chunks/{metadata-BQm_TXI1.js → metadata-dGSe5UWy.js} +5 -5
  36. package/chunks/number.compiler-D7nMcEMv.js +57 -0
  37. package/chunks/{operations-DKQWuLL7.js → operations-CgfehCad.js} +11397 -11114
  38. package/chunks/{range-BdhzvYQ_.js → range-Dmwp9kVB.js} +2 -2
  39. package/chunks/{react-dom-BGP4tbXV.js → react-dom-CfuL-m78.js} +82 -82
  40. package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers--g-zPFBW.js} +1 -1
  41. package/chunks/{requirements-e8Fe96ag.js → requirements-DHayNJ2C.js} +245 -221
  42. package/chunks/{shared-C_2F90xq.js → shared-DoEN9nNM.js} +505 -494
  43. package/chunks/standalone-B3hRGgYi.js +773 -0
  44. package/chunks/{standalone-BkbiH-o8.js → standalone-BPNXgFft.js} +498 -759
  45. package/chunks/standalone-BPTT8XEu.js +424 -0
  46. package/chunks/standalone-BgAeHROc.js +2 -0
  47. package/chunks/{standalone-BE_ONgiG.js → standalone-BkQxag7M.js} +102 -102
  48. package/chunks/{standalone-Cc98Pdr6.js → standalone-Bxa3x6dg.js} +872 -872
  49. package/chunks/standalone-C0If-V6O.js +773 -0
  50. package/chunks/standalone-C1TOyflX.js +287 -0
  51. package/chunks/{standalone-CY_kjarf.js → standalone-CE5PwJN0.js} +18 -18
  52. package/chunks/{standalone-B8ZSqauS.js → standalone-CG7IFN6n.js} +120 -120
  53. package/chunks/{standalone-wOWRCpdn.js → standalone-CKlgGu80.js} +49 -49
  54. package/chunks/standalone-CNf-oA2U.js +355 -0
  55. package/chunks/{standalone-BDrXVxlP.js → standalone-CXPdWFlw.js} +14 -14
  56. package/chunks/{standalone-z0o52o5t.js → standalone-Cf0_5tbu.js} +5567 -5568
  57. package/chunks/{standalone-Cl0TSfqC.js → standalone-DMi4-Vp3.js} +122 -122
  58. package/chunks/{standalone-DNh9NcMa.js → standalone-DTEX67C8.js} +154 -154
  59. package/chunks/{standalone-DHRalbVO.js → standalone-DU46-kYv.js} +279 -279
  60. package/chunks/standalone-Dbn3jSH6.js +690 -0
  61. package/chunks/{standalone-CsoMmE9T.js → standalone-DdcAL_k_.js} +839 -843
  62. package/chunks/standalone-DwCIA0UG.js +1057 -0
  63. package/chunks/standalone-Dz13tl3P.js +357 -0
  64. package/chunks/standalone-H9GFzFk_.js +8377 -0
  65. package/chunks/{standalone-CaTxAydz.js → standalone-MduR0qre.js} +2227 -1000
  66. package/chunks/standalone-ejTz66P3.js +2 -0
  67. package/chunks/{standalone-DflyWtuR.js → standalone-keB-0wK3.js} +216 -216
  68. package/chunks/{standalone-BTY3w_JA.js → standalone-nnkuQd0K.js} +28 -28
  69. package/chunks/standalone-vGGR6Vcn.js +6 -0
  70. package/chunks/{table.compiler-COaHE9VD.js → table.compiler-mS4UvhLT.js} +31 -31
  71. package/chunks/theme-MYp6Rj1J.js +232 -0
  72. package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-AdSak4Ch.js} +1 -1
  73. package/chunks/{utils-DganVptf.js → utils-CUKgR7it.js} +4216 -4070
  74. package/chunks/{view-Bzlros43.js → view-BeYwpcVD.js} +1561 -1561
  75. package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-B9qik5_K.js} +2683 -2342
  76. package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-1GSeLT59.js} +3712 -3682
  77. package/definitions.js +2 -2
  78. package/docs/operations/astrato-app-filter-bar.md +1 -1
  79. package/docs/operations/bar.md +144 -32
  80. package/docs/operations/combo.md +79 -17
  81. package/docs/operations/date-picker.md +4 -4
  82. package/docs/operations/distribution-gauge.md +18 -16
  83. package/docs/operations/dot.md +107 -24
  84. package/docs/operations/filter.md +10 -8
  85. package/docs/operations/gauge.md +20 -18
  86. package/docs/operations/heatMap.md +73 -21
  87. package/docs/operations/histogram.md +45 -12
  88. package/docs/operations/iframe.md +1 -1
  89. package/docs/operations/image.md +1 -1
  90. package/docs/operations/index.md +12 -11
  91. package/docs/operations/line.md +86 -24
  92. package/docs/operations/map.md +5274 -0
  93. package/docs/operations/number.md +10 -9
  94. package/docs/operations/pie.md +23 -21
  95. package/docs/operations/radar.md +13 -11
  96. package/docs/operations/sankey.md +19 -17
  97. package/docs/operations/scatter.md +111 -28
  98. package/docs/operations/shape.md +5 -5
  99. package/docs/operations/simpleTextObject.md +4 -4
  100. package/docs/operations/slider.md +1 -1
  101. package/docs/operations/table.md +27 -25
  102. package/docs/operations/tree.md +5 -3
  103. package/docs/operations/treemap.md +70 -18
  104. package/docs/operations/waterfall.md +40 -7
  105. package/docs/operations/word-cloud.md +69 -17
  106. package/getters.js +3 -3
  107. package/index.js +585 -612
  108. package/metadata.js +2 -2
  109. package/operations.js +25 -18
  110. package/package.json +74 -70
  111. package/src/definitions/index.d.ts +1 -7
  112. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
  113. package/src/definitions/model/definitions/schema-registry.d.ts +15 -14
  114. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +3 -3
  115. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
  116. package/src/definitions/model/definitions/schemas/common.schema.d.ts +19 -6
  117. package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
  118. package/src/definitions/model/definitions/schemas/line.schema.d.ts +4 -3
  119. package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
  120. package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
  121. package/src/index.d.ts +1 -1
  122. package/src/operations/index.d.ts +11 -1
  123. package/src/types.d.ts +166 -1
  124. package/src/visualization-catalog.d.ts +3 -0
  125. package/styles.css +1 -1
  126. package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
  127. package/chunks/color-rules-DYJL4fIW.js +0 -15
  128. package/chunks/color-settings-DJFoFTip.js +0 -5
  129. package/chunks/defaults-Dtk7fg3C.js +0 -3
  130. package/chunks/handlers-C6CZ0XJA.js +0 -15399
  131. package/chunks/line.compiler-DmHpmQCC.js +0 -198
  132. package/chunks/number.compiler-DQdg6zTy.js +0 -53
  133. package/chunks/standalone-4MsKiqs0.js +0 -355
  134. package/chunks/standalone-B794g9pE.js +0 -1012
  135. package/chunks/standalone-BA2YXyJS.js +0 -422
  136. package/chunks/standalone-BgumbdaJ2.js +0 -357
  137. package/chunks/standalone-Blh4qejk.js +0 -689
  138. package/chunks/standalone-CXY4FpF7.js +0 -773
  139. package/chunks/standalone-DH0xTEes.js +0 -2
  140. package/chunks/standalone-DcnHjNnC.js +0 -2
  141. package/chunks/standalone-DrHdGkY7.js +0 -762
  142. package/chunks/standalone-c_rROMtx.js +0 -287
  143. package/chunks/standalone-drcFLeN6.js +0 -6
@@ -1,10 +1,12 @@
1
- import { ko as e, r as t } from "./visualization-filters-D7i6oh1Z.js";
2
- import { A as n, D as r, E as i, N as a, S as o, T as s, _ as c, b as l, c as u, d, f, h as p, k as m, l as h, m as g, n as _, ot as v } from "./shared-C_2F90xq.js";
3
- import { Vm as y, jp as b } from "./handlers-C6CZ0XJA.js";
4
- import { _ as x, b as S, t as C, u as w, v as T, w as E } from "./operations-DKQWuLL7.js";
5
- import { t as D } from "./bar-layout-C_UgRlVl.js";
6
- t();
7
- var O = (e) => {
1
+ import { d as e, ss as t } from "./visualization-filters-B9qik5_K.js";
2
+ import { A as n, D as r, O as i, P as a, S as o, T as s, _ as c, b as l, c as u, d, f, h as p, j as m, l as h, m as g, n as _, st as v } from "./shared-DoEN9nNM.js";
3
+ import { Fp as y, Jm as b } from "./handlers-CyYFSfhM.js";
4
+ import { A as x, E as S, P as C, f as w, p as T, t as E, w as D } from "./operations-CgfehCad.js";
5
+ import { t as O } from "./bar-layout-OFhxn2Go.js";
6
+ import { n as k, t as A } from "./measure-axis-label-format-COy8U_dd.js";
7
+ import { n as j } from "./measure-format-default-B_kuGSzi.js";
8
+ e();
9
+ var M = (e) => {
8
10
  let t = [...e.data.dimensions.map((e, t) => ({
9
11
  item: e,
10
12
  path: [
@@ -37,30 +39,30 @@ var O = (e) => {
37
39
  "topN",
38
40
  "by"
39
41
  ], `Measure reference "${s}" does not exist.`, { allowedValues: e.data.measures.map((e) => e.ref) })), a;
40
- }, k = (e) => {
42
+ }, N = (e) => {
41
43
  if (e.type !== "bar") return d("unsupported_visualization", ["baseVSpec", "type"], `Definition type "bar" cannot compile against base vSpec type "${e.type}".`);
42
44
  let t = e;
43
45
  return t.dimensions.length > 0 || t.measures.length > 0 || (t.supportingMeasures?.length ?? 0) > 0 || Object.keys(t.referencedData).length > 0 ? d("non_fresh_base_vspec", ["baseVSpec"], "Bar visualization definitions can only compile against a fresh base vSpec.") : void 0;
44
- }, A = {
46
+ }, P = {
45
47
  formatString: "setDimensionFormatString",
46
48
  formatType: "setDimensionFormatType"
47
- }, j = {
49
+ }, F = {
48
50
  currency: "setMeasureCurrency",
49
51
  currencyIsPrefix: "setMeasureCurrencyIsPrefix",
50
52
  formatString: "setMeasureFormatString",
51
53
  formatType: "setMeasureFormatType",
52
54
  negativeType: "setMeasureNegativeType"
53
- }, M = {
55
+ }, I = {
54
56
  inside: 1,
55
57
  opposite: 0,
56
58
  outside: 0
57
- }, N = (e) => {
59
+ }, L = (e) => {
58
60
  let t = Object.entries(e).find(([, e]) => e.success === !1);
59
61
  return t ? {
60
62
  id: t[0],
61
63
  result: t[1]
62
64
  } : void 0;
63
- }, P = (e, t) => {
65
+ }, R = (e, t) => {
64
66
  if (!e || typeof e.data != "object" || e.data === null || !("dataItem" in e.data)) return;
65
67
  let n = e.data.dataItem;
66
68
  if (!(typeof n != "object" || !n || !("internalKey" in n) || typeof n.internalKey != "string" || !("uniqueSignature" in n) || typeof n.uniqueSignature != "string")) return {
@@ -68,14 +70,14 @@ var O = (e) => {
68
70
  dataItemUniqueSignature: n.uniqueSignature,
69
71
  kind: t
70
72
  };
71
- }, F = async (e, t) => {
73
+ }, z = async (e, t) => {
72
74
  let n = e;
73
75
  for (let [e, r] of t.data.dimensions.entries()) {
74
- let t = `dimension:${r.ref}`, i = await C(n.vSpec, n.availableFields, [{
76
+ let t = `dimension:${r.ref}`, i = await E(n.vSpec, n.availableFields, [{
75
77
  id: t,
76
78
  name: w.ADD_DIMENSION,
77
79
  payload: { key: r.fieldKey }
78
- }], n.input.variables ?? [], [], n.input.theme), a = N(i.results), o = P(i.results[t], "dimension");
80
+ }], n.input.variables ?? [], [], n.input.theme), a = L(i.results), o = R(i.results[t], "dimension");
79
81
  if (a || !o) return {
80
82
  issue: d("operation_failed", [
81
83
  "data",
@@ -94,11 +96,11 @@ var O = (e) => {
94
96
  };
95
97
  }
96
98
  for (let [a, o] of t.data.measures.entries()) {
97
- let t = r(o, e.input.availableFields), s = `measure:${o.ref}`, c = await C(n.vSpec, n.availableFields, [{
99
+ let t = i(o, e.input.availableFields), s = `measure:${o.ref}`, c = await E(n.vSpec, n.availableFields, [{
98
100
  id: s,
99
101
  name: w.ADD_MEASURE,
100
- payload: i(o, e.input.availableFields)
101
- }], n.input.variables ?? [], [], n.input.theme), l = N(c.results), u = P(c.results[s], "measure");
102
+ payload: r(o, e.input.availableFields)
103
+ }], n.input.variables ?? [], [], n.input.theme), l = L(c.results), u = R(c.results[s], "measure");
102
104
  if (l || !u) return {
103
105
  issue: d("operation_failed", [
104
106
  "data",
@@ -124,28 +126,28 @@ var O = (e) => {
124
126
  state: n,
125
127
  success: !0
126
128
  };
127
- }, I = (e) => ({
129
+ }, B = (e) => ({
128
130
  dataItemInternalKey: e.dataItemInternalKey,
129
131
  dataItemUniqueSignature: e.dataItemUniqueSignature
130
- }), L = async (e, t) => {
132
+ }), V = async (e, t) => {
131
133
  let n = [];
132
134
  return t.data.dimensions.forEach((t, r) => {
133
135
  let i = e.resolvedRefs[t.ref];
134
136
  t.showNullValues !== void 0 && n.push({
135
137
  name: w.UPDATE_DIMENSION,
136
138
  payload: {
137
- ...I(i),
139
+ ...B(i),
138
140
  changes: { showNullValues: t.showNullValues }
139
141
  }
140
142
  }), t.temporalGrouping && n.push(g("setDimensionTemporalGrouping", i, t.ref, [
141
143
  "data",
142
144
  "dimensions",
143
145
  r
144
- ], t.temporalGrouping)), t.format?.formatType !== void 0 && n.push(h(A.formatType, i, t.ref, [
146
+ ], t.temporalGrouping)), t.format?.formatType !== void 0 && n.push(h(P.formatType, i, t.ref, [
145
147
  "data",
146
148
  "dimensions",
147
149
  r
148
- ], "formatType", t.format.formatType)), t.format?.formatString !== void 0 && n.push(h(A.formatString, i, t.ref, [
150
+ ], "formatType", t.format.formatType)), t.format?.formatString !== void 0 && n.push(h(P.formatString, i, t.ref, [
149
151
  "data",
150
152
  "dimensions",
151
153
  r
@@ -160,74 +162,74 @@ var O = (e) => {
160
162
  "negativeType"
161
163
  ].forEach((e) => {
162
164
  let a = t.format?.[e];
163
- a !== void 0 && n.push(h(j[e], i, t.ref, [
165
+ a !== void 0 && n.push(h(F[e], i, t.ref, [
164
166
  "data",
165
167
  "measures",
166
168
  r
167
169
  ], e, a));
168
170
  }), t.dataLabels && n.push({
169
- name: E.SET_MEASURE_DATA_LABELS_SHOW,
171
+ name: C.SET_MEASURE_DATA_LABELS_SHOW,
170
172
  payload: {
171
- ...I(i),
173
+ ...B(i),
172
174
  show: t.dataLabels.visible
173
175
  }
174
176
  }), t.dataLabels?.placements && n.push({
175
- name: E.SET_MEASURE_DATA_LABEL_BAR_PLACEMENTS,
177
+ name: C.SET_MEASURE_DATA_LABEL_BAR_PLACEMENTS,
176
178
  payload: {
177
- ...I(i),
179
+ ...B(i),
178
180
  placements: t.dataLabels.placements.map((e) => ({
179
181
  position: e,
180
- justify: M[e]
182
+ justify: I[e]
181
183
  }))
182
184
  }
183
185
  }), t.dataLabels?.textColor && n.push({
184
- name: E.SET_MEASURE_DATA_LABEL_TEXT_COLOR,
186
+ name: C.SET_MEASURE_DATA_LABEL_TEXT_COLOR,
185
187
  payload: {
186
- ...I(i),
188
+ ...B(i),
187
189
  textColor: t.dataLabels.textColor
188
190
  }
189
191
  }), t.axis && n.push({
190
- name: x.CHANGE_MEASURE_AXIS,
192
+ name: D.CHANGE_MEASURE_AXIS,
191
193
  payload: {
192
- ...I(i),
194
+ ...B(i),
193
195
  secondaryAxis: t.axis === "secondary"
194
196
  }
195
197
  });
196
- }), p(e, n, ["data"]);
197
- }, R = (e, t) => p(e, t.filterGroup ? [{
198
+ }), n.push(...j(e, t.data.measures, ["data", "measures"])), p(e, n, ["data"]);
199
+ }, H = (e, t) => p(e, t.filterGroup ? [{
198
200
  id: "filterGroup",
199
201
  name: "setStaticFilterGroup",
200
202
  payload: l(t.filterGroup)
201
- }] : [], ["filterGroup"]), z = async (t, n) => {
203
+ }] : [], ["filterGroup"]), U = async (e, n) => {
202
204
  if (!n.sorting?.length) return {
203
- state: t,
205
+ state: e,
204
206
  success: !0
205
207
  };
206
- let r = t.vSpec, i = new Map(n.sorting.map((e) => [e.by, e])), a = new Map(Object.entries(t.resolvedRefs).map(([e, t]) => [`${t.dataItemInternalKey}:${t.dataItemUniqueSignature}`, e])), o = r.querySettings?.sortingOrder ?? [], s = n.sorting.map((e) => t.resolvedRefs[e.by]), c = new Set(s.map((e) => `${e.dataItemInternalKey}:${e.dataItemUniqueSignature}`)), l = [...s, ...o.filter((e) => !c.has(`${e.dataItem.internalKey}:${e.dataItem.uniqueSignature}`)).map((e) => ({
208
+ let r = e.vSpec, i = new Map(n.sorting.map((e) => [e.by, e])), a = new Map(Object.entries(e.resolvedRefs).map(([e, t]) => [`${t.dataItemInternalKey}:${t.dataItemUniqueSignature}`, e])), o = r.querySettings?.sortingOrder ?? [], s = n.sorting.map((t) => e.resolvedRefs[t.by]), c = new Set(s.map((e) => `${e.dataItemInternalKey}:${e.dataItemUniqueSignature}`)), l = [...s, ...o.filter((e) => !c.has(`${e.dataItem.internalKey}:${e.dataItem.uniqueSignature}`)).map((e) => ({
207
209
  dataItemInternalKey: e.dataItem.internalKey,
208
210
  dataItemUniqueSignature: e.dataItem.uniqueSignature,
209
211
  kind: e.fieldType === "dimension" ? "dimension" : "measure"
210
- }))].map((t, n) => {
211
- let r = a.get(`${t.dataItemInternalKey}:${t.dataItemUniqueSignature}`), s = o.find((e) => e.dataItem.internalKey === t.dataItemInternalKey && e.dataItem.uniqueSignature === t.dataItemUniqueSignature);
212
+ }))].map((e, n) => {
213
+ let r = a.get(`${e.dataItemInternalKey}:${e.dataItemUniqueSignature}`), s = o.find((t) => t.dataItem.internalKey === e.dataItemInternalKey && t.dataItem.uniqueSignature === e.dataItemUniqueSignature);
212
214
  return {
213
- ...I(t),
215
+ ...B(e),
214
216
  newIndex: n,
215
- sortDirection: (r ? i.get(r)?.direction : void 0) ?? s?.sortDirection ?? e.Asc
217
+ sortDirection: (r ? i.get(r)?.direction : void 0) ?? s?.sortDirection ?? t.Asc
216
218
  };
217
- }), u = await p(t, [{
219
+ }), u = await p(e, [{
218
220
  name: w.CHANGE_SORT_ORDER_AND_DIRECTION,
219
221
  payload: { changeRequests: l }
220
222
  }], ["sorting"]);
221
223
  if (!u.success) return u;
222
- let d = n.sorting.map((e) => ({
224
+ let d = n.sorting.map((t) => ({
223
225
  name: w.TOGGLE_SORTING_ITEM,
224
226
  payload: {
225
- ...I(t.resolvedRefs[e.by]),
226
- enabled: e.enabled ?? !0
227
+ ...B(e.resolvedRefs[t.by]),
228
+ enabled: t.enabled ?? !0
227
229
  }
228
230
  }));
229
231
  return u = await p(u.state, d, ["sorting"]), u;
230
- }, B = (e, t) => {
232
+ }, W = (e, t) => {
231
233
  let n = [], { limiting: r } = t;
232
234
  if (r?.queryLimit !== void 0 && n.push({
233
235
  name: w.SET_QUERY_LIMIT,
@@ -249,26 +251,26 @@ var O = (e) => {
249
251
  }, {
250
252
  name: w.SET_TOP_N_RANK_MEASURE,
251
253
  payload: {
252
- ...I(t),
254
+ ...B(t),
253
255
  ...e.measureAggregations[r.topN.by] ? { aggregation: e.measureAggregations[r.topN.by] } : {}
254
256
  }
255
257
  });
256
258
  }
257
259
  return p(e, n, ["limiting"]);
258
- }, V = (e, t) => {
260
+ }, G = (e, t) => {
259
261
  let n = [], { presentation: r } = t, i = c(r?.axes);
260
262
  if (i) return Promise.resolve({
261
263
  issue: i,
262
264
  success: !1
263
265
  });
264
- let a = D(t, e.input.baseVSpec);
266
+ let a = O(t, e.input.baseVSpec);
265
267
  a !== void 0 && n.push({
266
268
  name: w.SET_BAR_CHART_LAYOUT,
267
269
  payload: a
268
270
  }), r?.orientation !== void 0 && n.push({
269
271
  name: w.SET_BAR_CHART_ORIENTATION,
270
272
  payload: r.orientation
271
- });
273
+ }), n.push(...k(r)), n.push(...A(r, e.input.baseVSpec, T.rangeAxes));
272
274
  let o = r?.legend;
273
275
  o && n.push(...f(e.vSpec, o)), Object.entries(r?.axes ?? {}).forEach(([e, t]) => {
274
276
  t && (t.titleVisible !== void 0 && n.push({
@@ -302,7 +304,7 @@ var O = (e) => {
302
304
  showAxisLine: t.lineVisible
303
305
  }
304
306
  }), n.push(...u(e, t)), "scale" in t && t.scale !== void 0 && n.push({
305
- name: T.SET_AXIS_SCALE,
307
+ name: S.SET_AXIS_SCALE,
306
308
  payload: {
307
309
  axisName: e,
308
310
  scale: t.scale
@@ -311,11 +313,11 @@ var O = (e) => {
311
313
  });
312
314
  let s = r?.axes?.primaryMeasure?.bands;
313
315
  return s && n.push({
314
- name: S.SET_MEASURE_AXIS_BANDS,
316
+ name: x.SET_MEASURE_AXIS_BANDS,
315
317
  payload: { bands: s }
316
318
  }), p(e, n, ["presentation"]);
317
- }, H = async (e) => {
318
- let t = b(e);
319
+ }, K = async (e) => {
320
+ let t = y(e);
319
321
  if (t) return {
320
322
  issues: [{
321
323
  code: "invalid_structure",
@@ -329,12 +331,12 @@ var O = (e) => {
329
331
  issues: s(r.error, e.definition),
330
332
  success: !1
331
333
  };
332
- let i = y.safeParse(e.baseVSpec);
334
+ let i = b.safeParse(e.baseVSpec);
333
335
  if (!i.success) return {
334
336
  issues: [d("invalid_structure", ["baseVSpec"], "Base bar vSpec is invalid.", { details: { issues: i.error.issues } })],
335
337
  success: !1
336
338
  };
337
- let o = i.data, c = k(o);
339
+ let o = i.data, c = N(o);
338
340
  if (c) return {
339
341
  issues: [c],
340
342
  success: !1
@@ -344,28 +346,28 @@ var O = (e) => {
344
346
  "topN",
345
347
  "by"
346
348
  ], "Top N ranking by a predefined measure is not supported by the current query builder. Use a raw field or calculation.")] : [], f = [
347
- ...O(r.data),
348
- ...m(r.data.data.dimensions, e.availableFields, ["data", "dimensions"], "dimension"),
349
- ...m(r.data.data.measures, e.availableFields, ["data", "measures"], "measure"),
350
- ...n(r.data.filterGroup, e.availableFields),
349
+ ...M(r.data),
350
+ ...n(r.data.data.dimensions, e.availableFields, ["data", "dimensions"], "dimension"),
351
+ ...n(r.data.data.measures, e.availableFields, ["data", "measures"], "measure"),
352
+ ...m(r.data.filterGroup, e.availableFields),
351
353
  ...u
352
354
  ];
353
355
  if (f.length > 0) return {
354
356
  issues: f,
355
357
  success: !1
356
358
  };
357
- let p = await F({
359
+ let p = await z({
358
360
  availableFields: a(e.availableFields),
359
361
  input: e,
360
362
  measureAggregations: {},
361
363
  resolvedRefs: {},
362
364
  vSpec: o
363
365
  }, r.data), h = [
364
- L,
365
- R,
366
- z,
367
- B,
368
366
  V,
367
+ H,
368
+ U,
369
+ W,
370
+ G,
369
371
  (e, t) => _(e, t.presentation?.coloring)
370
372
  ];
371
373
  for (let e of h) {
@@ -379,7 +381,7 @@ var O = (e) => {
379
381
  issues: [p.issue],
380
382
  success: !1
381
383
  };
382
- let g = y.safeParse(p.state.vSpec);
384
+ let g = b.safeParse(p.state.vSpec);
383
385
  return g.success ? {
384
386
  resolvedRefs: p.state.resolvedRefs,
385
387
  success: !0,
@@ -389,4 +391,4 @@ var O = (e) => {
389
391
  success: !1
390
392
  };
391
393
  };
392
- export { H as compileBarVisualizationDefinition };
394
+ export { K as compileBarVisualizationDefinition };
@@ -1,52 +1,63 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Ir as n, Lo as r, gc as i, un as a, y as o } from "./visualization-filters-D7i6oh1Z.js";
3
- import { ci as s, zr as c } from "./utils-DganVptf.js";
4
- import { nn as l } from "./handlers-C6CZ0XJA.js";
5
- import { t as u } from "./isEqual-D8Ay63xR.js";
6
- import { c as d, s as f } from "./logger-DdZpR7xZ.js";
7
- import "./extend-preset-D9-JP92b.js";
8
- import "./with-html-element-CiIhFEa5.js";
2
+ import { Cn as n, D as r, Xc as i, Yr as a, hs as o, jl as s, xc as c } from "./visualization-filters-B9qik5_K.js";
3
+ import { Ur as l, fi as u, tn as d } from "./utils-CUKgR7it.js";
4
+ import { an as f } from "./handlers-CyYFSfhM.js";
5
+ import { t as p } from "./isEqual-4f8yUUtC.js";
6
+ import { c as m, s as h } from "./logger-Cioob-QV.js";
7
+ import { i as g } from "./extend-preset-BpXttHFk.js";
8
+ import { _, c as v } from "./with-html-element-1GSeLT59.js";
9
9
  import "./event-bus-CrLB-Y8z.js";
10
- import "./useFieldName-CdnCWzhd.js";
10
+ import "./useFieldName-AdSak4Ch.js";
11
11
  import "rxjs";
12
- var p = /* @__PURE__ */ e(s()), m = (e, t) => {
12
+ var y = /* @__PURE__ */ e(u()), b = (e, t) => {
13
13
  let n = { ...t };
14
14
  return e?.querySettings && (n.querySettings = { ...e.querySettings }), n;
15
- }, h = (e, t) => {
15
+ }, x = (e, t) => {
16
16
  let n = { ...t };
17
17
  return e?.staticFilters && (n.staticFilters = { ...e.staticFilters }), n;
18
- }, g = (e, t) => {
18
+ }, S = (e, t) => {
19
19
  let n = { ...t };
20
20
  return e?.sortingMeasures && (n.sortingMeasures = [...e.sortingMeasures]), n;
21
- }, _ = (e, t) => {
21
+ }, C = (e, t) => {
22
22
  let n = { ...t };
23
23
  return e?.timeTravel && (n.timeTravel = { ...e.timeTravel }), n;
24
- }, v = (e, t) => {
24
+ }, w = (e, t) => {
25
25
  let n = { ...t };
26
26
  return "coloring" in e && (n.coloring = { ...e.coloring }), n;
27
- }, y = (e, t, n) => e.reduce((e, n) => ({
27
+ }, T = (e, t, n) => e.reduce((e, n) => ({
28
28
  ...e,
29
29
  ...n(t, e)
30
- }), n), b = (e, t) => {
31
- let { dimensions: n = [], measures: r = [], supportingMeasures: o = [] } = t, s = {
32
- ...a(i.Table),
30
+ }), n), E = (e, t) => {
31
+ let { dimensions: r = [], measures: a = [], supportingMeasures: o = [] } = t, s = {
32
+ ...n(i.Table),
33
33
  referencedData: e.referencedData,
34
- dimensions: n,
35
- measures: r,
34
+ dimensions: r,
35
+ measures: a,
36
36
  supportingMeasures: o
37
37
  };
38
- return y([
39
- h,
40
- m,
41
- g,
42
- _,
43
- v
38
+ return T([
39
+ x,
40
+ b,
41
+ S,
42
+ C,
43
+ w
44
44
  ], t, s);
45
- };
46
- n("use-source-vspec", "yellow"), n("use-selections", "green");
47
- var x = /* @__PURE__ */ t(((e) => {
45
+ }, D = a("use-source-vspec", "yellow"), O = ({ vSpec: e, source: t }, r) => (0, y.useMemo)(() => {
46
+ let r = t && s(t) ? E(e, t) : n(i.Table);
47
+ return D.debug("newVSpec", r), r;
48
+ }, r), k = a("use-selections", "green"), A = (e) => {
49
+ let t = d(), [n, r] = (0, y.useState)({
50
+ applied: [],
51
+ pending: []
52
+ });
53
+ return (0, y.useEffect)(() => {
54
+ k.debug("subscribe to onActiveSelectionChangeApplied");
55
+ let e = t.selection.onActiveSelectionChangeApplied.subscribe((e) => r(e));
56
+ return () => (k.debug("unsubscribe from onActiveSelectionChangeApplied"), e.unsubscribe());
57
+ }, e), n;
58
+ }, j = /* @__PURE__ */ t(((e) => {
48
59
  Object.defineProperty(e, "__esModule", { value: !0 });
49
- })), S = /* @__PURE__ */ t(((e) => {
60
+ })), M = /* @__PURE__ */ t(((e) => {
50
61
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
51
62
  r === void 0 && (r = n);
52
63
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -61,10 +72,10 @@ var x = /* @__PURE__ */ t(((e) => {
61
72
  })), n = e && e.__exportStar || function(e, n) {
62
73
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
63
74
  };
64
- Object.defineProperty(e, "__esModule", { value: !0 }), n(x(), e);
65
- })), C = /* @__PURE__ */ t(((e) => {
75
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(j(), e);
76
+ })), N = /* @__PURE__ */ t(((e) => {
66
77
  Object.defineProperty(e, "__esModule", { value: !0 });
67
- })), w = /* @__PURE__ */ t(((e) => {
78
+ })), P = /* @__PURE__ */ t(((e) => {
68
79
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
69
80
  r === void 0 && (r = n);
70
81
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -79,10 +90,10 @@ var x = /* @__PURE__ */ t(((e) => {
79
90
  })), n = e && e.__exportStar || function(e, n) {
80
91
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
81
92
  };
82
- Object.defineProperty(e, "__esModule", { value: !0 }), e.CopilotCustomPromptDto = void 0, n(C(), e), e.CopilotCustomPromptDto = class {};
83
- })), T = /* @__PURE__ */ t(((e) => {
93
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.CopilotCustomPromptDto = void 0, n(N(), e), e.CopilotCustomPromptDto = class {};
94
+ })), F = /* @__PURE__ */ t(((e) => {
84
95
  Object.defineProperty(e, "__esModule", { value: !0 }), e.SELF_SERVICE_ANALYSIS_MAX_QUERY_LIMIT = void 0, e.SELF_SERVICE_ANALYSIS_MAX_QUERY_LIMIT = 1e5;
85
- })), E = /* @__PURE__ */ t(((e) => {
96
+ })), I = /* @__PURE__ */ t(((e) => {
86
97
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
87
98
  r === void 0 && (r = n);
88
99
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -97,10 +108,10 @@ var x = /* @__PURE__ */ t(((e) => {
97
108
  })), n = e && e.__exportStar || function(e, n) {
98
109
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
99
110
  };
100
- Object.defineProperty(e, "__esModule", { value: !0 }), n(w(), e), n(T(), e);
101
- })), D = /* @__PURE__ */ t(((e) => {
111
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(P(), e), n(F(), e);
112
+ })), L = /* @__PURE__ */ t(((e) => {
102
113
  Object.defineProperty(e, "__esModule", { value: !0 });
103
- })), O = /* @__PURE__ */ t(((e) => {
114
+ })), R = /* @__PURE__ */ t(((e) => {
104
115
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
105
116
  r === void 0 && (r = n);
106
117
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -115,14 +126,14 @@ var x = /* @__PURE__ */ t(((e) => {
115
126
  })), n = e && e.__exportStar || function(e, n) {
116
127
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
117
128
  };
118
- Object.defineProperty(e, "__esModule", { value: !0 }), n(S(), e), n(E(), e), n(D(), e);
119
- })), k = /* @__PURE__ */ t(((e) => {
129
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(M(), e), n(I(), e), n(L(), e);
130
+ })), z = /* @__PURE__ */ t(((e) => {
120
131
  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";
121
- })), A = /* @__PURE__ */ t(((e) => {
132
+ })), B = /* @__PURE__ */ t(((e) => {
122
133
  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;
123
- })), j = /* @__PURE__ */ t(((e) => {
134
+ })), V = /* @__PURE__ */ t(((e) => {
124
135
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getMinMaxTopPValues = e.getMinMaxTemperatureValues = e.getDefaultTopP = e.getDefaultTemperature = e.isPersistedConfigFlagEnabled = void 0;
125
- var t = l(), n = A();
136
+ var t = f(), n = B();
126
137
  e.isPersistedConfigFlagEnabled = (e) => e === !0 || e === "true", e.getDefaultTemperature = (e) => {
127
138
  switch (e) {
128
139
  case t.AIProviderType.SnowflakeCortex: return n.SNOWFLAKE_CORTEX_DEFAULT_TEMPERATURE;
@@ -138,7 +149,7 @@ var x = /* @__PURE__ */ t(((e) => {
138
149
  let r = e === t.AIProviderType.SnowflakeCortex ? n.SNOWFLAKE_CORTEX_TEMPERATURE_MAX_VALUE : n.TEMPERATURE_MAX_VALUE;
139
150
  return [n.TEMPERATURE_MIN_VALUE, r];
140
151
  }, e.getMinMaxTopPValues = () => [n.TOP_P_MIN_VALUE, n.TOP_P_MAX_VALUE];
141
- })), M = /* @__PURE__ */ t(((e) => {
152
+ })), H = /* @__PURE__ */ t(((e) => {
142
153
  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 }) => {
143
154
  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, {
144
155
  sourceRowCount: r.length,
@@ -170,7 +181,7 @@ var x = /* @__PURE__ */ t(((e) => {
170
181
  let n = String(t ?? "").replace(/[\r\n,]+/g, " ").trim();
171
182
  return n.length > e.MAX_CELL_CHARS_IN_AI_PROMPT ? `${n.slice(0, e.MAX_CELL_CHARS_IN_AI_PROMPT - 3)}...` : n;
172
183
  }, e.getAiPromptTruncationMarker = (e) => `...truncated ${e} more rows`, e.getAiPromptUnknownTruncationMarker = () => "...additional rows omitted";
173
- })), N = /* @__PURE__ */ t(((e) => {
184
+ })), U = /* @__PURE__ */ t(((e) => {
174
185
  var t = e && e.__rest || function(e, t) {
175
186
  var n = {};
176
187
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -178,7 +189,7 @@ var x = /* @__PURE__ */ t(((e) => {
178
189
  return n;
179
190
  };
180
191
  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;
181
- var n = d();
192
+ var n = m();
182
193
  e.ASTRATO_AI_INSIGHTS_FLAG = n.FeatureFlags.ASTRATO_AI_INSIGHTS, e.INSIGHTS_DESCRIBE_PATH = "/api/sle/insights/describe";
183
194
  function r(e) {
184
195
  let r = e ?? {}, { customPrompt: i, outputType: a } = r, o = t(r, ["customPrompt", "outputType"]);
@@ -273,25 +284,65 @@ var x = /* @__PURE__ */ t(((e) => {
273
284
  })), n = e && e.__exportStar || function(e, n) {
274
285
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
275
286
  };
276
- Object.defineProperty(e, "__esModule", { value: !0 }), n(l(), e), n(O(), e), n(k(), e), n(j(), e), n(M(), e), n(A(), e), n(N(), e);
287
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(f(), e), n(R(), e), n(z(), e), n(V(), e), n(H(), e), n(B(), e), n(U(), e);
277
288
  })))();
278
- var P = f(), F = ({ id: e, ...t }, { vBackendAPI: n, objectId: r }) => {
289
+ var W = h(), G = ({ id: e, ...t }, { vBackendAPI: n, objectId: r }) => {
279
290
  let i = { eventId: e };
280
291
  Object.keys(t).length > 0 && (i.payload = t);
281
292
  let a = r || n.model.getObject()?.id;
282
- n.daedalus.emitEvent(P.AstratoEvents.OBJECT_INTERACTION, i, a);
293
+ n.daedalus.emitEvent(W.AstratoEvents.OBJECT_INTERACTION, i, a);
294
+ };
295
+ r();
296
+ var K = /* @__PURE__ */ e(p());
297
+ l(), a("with-astrato-frame", "#4fcd55"), a("with-astrato-panel-special", "#4fcd55");
298
+ var q = {
299
+ sortOrders: [],
300
+ expandedFieldValues: [],
301
+ offsetTop: 0,
302
+ offsetLeft: 0,
303
+ topDimLimit: null,
304
+ expandedDimensions: [],
305
+ expandAll: !1
306
+ }, J = a("use-build-query", "yellow"), Y = ({ vSpec: e, visState: t = q, isVSpecValid: n = g, getQueryLimit: r, customQueryBuilders: i = [] }, a) => {
307
+ let o = d();
308
+ return (0, y.useMemo)(() => {
309
+ if (n(e)) {
310
+ let n = v(o, e, t, r);
311
+ if (!n) return null;
312
+ let a = n;
313
+ return a = i.reduce((t, n) => ({
314
+ ...t,
315
+ ...n(a, o, e)
316
+ }), n), J.debug("newQuery", a), a;
317
+ }
318
+ return null;
319
+ }, a);
320
+ }, X = (e, t, n, r) => (...i) => {
321
+ window.clearTimeout(t ?? void 0), n(window.setTimeout(() => e(...i), r));
322
+ }, Z = a("use-query-data", "steelblue"), Q = ({ query: e, vSpec: t, availableFields: n, forceFetch: r = !1, debounceTime: i = 300 }, a) => {
323
+ let o = d(), s = (0, y.useRef)(null), [l, u] = (0, y.useState)(null), [f, p] = (0, y.useState)(null), m = (0, y.useRef)(null), h = (0, y.useRef)([]), [g, v] = (0, y.useState)(null);
324
+ return (0, y.useEffect)(() => {
325
+ let a = o.engine;
326
+ !a || !e || n.length > 0 && e && (!(0, K.default)(e, m.current) || r) && (s.current = c(16), X(async (r) => {
327
+ let i = await a.getData(e);
328
+ if (r === s.current) {
329
+ let r = _(e, i, t, n);
330
+ u(i), p(r), Z.debug("new data fetched for query:", e);
331
+ }
332
+ }, g, v, i)(s.current), m.current = e, h.current = n);
333
+ }, a), [f, l];
283
334
  };
284
- o(), u(), c(), n("with-astrato-frame", "#4fcd55"), n("with-astrato-panel-special", "#4fcd55"), n("use-build-query", "yellow"), n("use-query-data", "steelblue"), p.forwardRef(function(e, t) {
285
- return p.createElement("img", {
335
+ y.forwardRef(function(e, t) {
336
+ return y.createElement("img", {
286
337
  ...e,
287
338
  ref: t,
288
339
  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"
289
340
  });
290
- }), p.forwardRef(function(e, t) {
291
- return p.createElement("img", {
341
+ }), y.forwardRef(function(e, t) {
342
+ return y.createElement("img", {
292
343
  ...e,
293
344
  ref: t,
294
345
  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"
295
346
  });
296
- }), r.Vertical, r.Horizontal, P.ImageFileType.JPEG, n("get-view-states", "#d8b4fe"), n("with-astrato-panel", "#388e3c");
297
- export { b as n, F as t };
347
+ }), o.Vertical, o.Horizontal, W.ImageFileType.JPEG, a("get-view-states", "#d8b4fe"), a("with-astrato-panel", "#388e3c");
348
+ export { O as a, A as i, Y as n, E as o, G as r, Q as t };