@astrato-io/visualizations 0.10.1 → 0.11.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 (133) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +19 -1
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +6 -145
  5. package/chunks/{Button-Dn3rJrYf.js → Button-CPG4WX8X.js} +3 -3
  6. package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-PSLW8HmD.js} +12 -12
  7. package/chunks/FieldTypeIcon-5k2bkqd0.js +22 -0
  8. package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-KQ2EQlGL.js} +16 -16
  9. package/chunks/{MenuOption-Czc34u4q.js → MenuOption-B-6K7kks.js} +151 -151
  10. package/chunks/{Title-BgYnaVTR.js → Title-BmvwZYkh.js} +32 -32
  11. package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-CFmH6gUN.js} +16 -16
  12. package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler-BY5-T16I.js} +8 -8
  13. package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-BNou0dZF.js} +2 -2
  14. package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-BkhO7sDd.js} +58 -56
  15. package/chunks/{builder-C-TKA-My.js → builder-CNjuqD2z.js} +107 -56
  16. package/chunks/category-axis-D1OVyMrr.js +20 -0
  17. package/chunks/{coloring-BtnPiQ_o.js → coloring-BOiP0rmn.js} +51 -51
  18. package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-BkgQ7MFE.js} +166 -166
  19. package/chunks/defaults-B5_8S-J-.js +3 -0
  20. package/chunks/{definitions-CT304NDn.js → definitions-AS9GcavE.js} +228 -233
  21. package/chunks/{escobar-CvEV2ES1.js → escobar-cQ1eQ64G.js} +4183 -4183
  22. package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BlCbcXKR.js} +427 -427
  23. package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-CI7dDNM1.js} +10 -10
  24. package/chunks/{filtering-8_bFv-jb.js → filtering-Dwi7hDPZ.js} +308 -308
  25. package/chunks/{handlers-C6CZ0XJA.js → handlers-C63NVo7i.js} +4593 -4559
  26. package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-CBlxEu3s.js} +8 -8
  27. package/chunks/{isEqual-D8Ay63xR.js → isEqual-BdHo6wqq.js} +1 -1
  28. package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-C1nlVUwL.js} +9 -9
  29. package/chunks/line.compiler-DCv3h42f.js +198 -0
  30. package/chunks/linear-Bq_r9l5S.js +264 -0
  31. package/chunks/{logger-DdZpR7xZ.js → logger-Bc-DqDM_.js} +64 -64
  32. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  33. package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-CRO6XpdI.js} +43 -43
  34. package/chunks/measure-format-default-B6ghxih7.js +22 -0
  35. package/chunks/{metadata-BQm_TXI1.js → metadata-CtkvZEhS.js} +1 -1
  36. package/chunks/number.compiler-kV4lobCZ.js +57 -0
  37. package/chunks/{operations-DKQWuLL7.js → operations-COl9wgqi.js} +8524 -8480
  38. package/chunks/{range-BdhzvYQ_.js → range-CMJ5yc5Z.js} +2 -2
  39. package/chunks/{react-dom-BGP4tbXV.js → react-dom-BjsCbYHq.js} +76 -76
  40. package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers-DFHi3Wkr.js} +1 -1
  41. package/chunks/{requirements-e8Fe96ag.js → requirements-C5YLmHKe.js} +250 -226
  42. package/chunks/{shared-C_2F90xq.js → shared-DyqxOie0.js} +504 -498
  43. package/chunks/standalone-06i1wmIX.js +6 -0
  44. package/chunks/{standalone-BDrXVxlP.js → standalone-9jrQ3zJT.js} +10 -10
  45. package/chunks/standalone-B6zUvxNQ.js +357 -0
  46. package/chunks/{standalone-BkbiH-o8.js → standalone-BYK2U0Vd.js} +418 -679
  47. package/chunks/standalone-Be5APcVv.js +762 -0
  48. package/chunks/{standalone-Cl0TSfqC.js → standalone-Bp4G3MDx.js} +123 -123
  49. package/chunks/{standalone-DNh9NcMa.js → standalone-BrjtMIdd.js} +145 -145
  50. package/chunks/{standalone-BTY3w_JA.js → standalone-Bsfz5vnJ.js} +53 -53
  51. package/chunks/standalone-BuXpKMnc.js +2 -0
  52. package/chunks/standalone-CIjNYyya.js +8378 -0
  53. package/chunks/{standalone-CsoMmE9T.js → standalone-CS5VGoja.js} +347 -347
  54. package/chunks/standalone-CUGt2FUF.js +2 -0
  55. package/chunks/{standalone-CaTxAydz.js → standalone-ChfEHb28.js} +2296 -1069
  56. package/chunks/standalone-CnF2OYLQ.js +355 -0
  57. package/chunks/standalone-CznEEiq3.js +422 -0
  58. package/chunks/{standalone-DflyWtuR.js → standalone-D9k5SCd8.js} +169 -169
  59. package/chunks/{standalone-Cc98Pdr6.js → standalone-DYVYccmY.js} +829 -829
  60. package/chunks/{standalone-CY_kjarf.js → standalone-DaNxWIKn.js} +22 -22
  61. package/chunks/{standalone-wOWRCpdn.js → standalone-Db_HNuWx.js} +48 -48
  62. package/chunks/standalone-DcuE8KBa.js +287 -0
  63. package/chunks/{standalone-BE_ONgiG.js → standalone-I5kRIsp8.js} +76 -76
  64. package/chunks/{standalone-B8ZSqauS.js → standalone-K2OvRAQM.js} +113 -113
  65. package/chunks/{standalone-z0o52o5t.js → standalone-c4CPN6ug.js} +1719 -1718
  66. package/chunks/{standalone-DHRalbVO.js → standalone-iOnJhCvA.js} +312 -312
  67. package/chunks/{standalone-CXY4FpF7.js → standalone-pCrzBiTy.js} +222 -222
  68. package/chunks/standalone-qrZaimgC.js +689 -0
  69. package/chunks/standalone-yqDJ8h3K.js +1012 -0
  70. package/chunks/{table.compiler-COaHE9VD.js → table.compiler-CMH_dtYs.js} +35 -35
  71. package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-BfxBzhhH.js} +1 -1
  72. package/chunks/{utils-DganVptf.js → utils-BdJrEeIQ.js} +3924 -3910
  73. package/chunks/{view-Bzlros43.js → view-Q-_XIrWE.js} +1680 -1680
  74. package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-BwS0xUqs.js} +1705 -1686
  75. package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-D_ooGNWI.js} +3962 -3950
  76. package/definitions.js +2 -2
  77. package/docs/operations/astrato-app-filter-bar.md +1 -1
  78. package/docs/operations/bar.md +30 -1
  79. package/docs/operations/combo.md +30 -1
  80. package/docs/operations/date-picker.md +1 -1
  81. package/docs/operations/distribution-gauge.md +1 -1
  82. package/docs/operations/dot.md +1 -1
  83. package/docs/operations/filter.md +1 -1
  84. package/docs/operations/gauge.md +1 -1
  85. package/docs/operations/heatMap.md +1 -1
  86. package/docs/operations/histogram.md +1 -1
  87. package/docs/operations/iframe.md +1 -1
  88. package/docs/operations/image.md +1 -1
  89. package/docs/operations/index.md +5 -4
  90. package/docs/operations/line.md +30 -1
  91. package/docs/operations/map.md +5274 -0
  92. package/docs/operations/number.md +1 -1
  93. package/docs/operations/pie.md +1 -1
  94. package/docs/operations/radar.md +1 -1
  95. package/docs/operations/sankey.md +1 -1
  96. package/docs/operations/scatter.md +1 -1
  97. package/docs/operations/shape.md +1 -1
  98. package/docs/operations/simpleTextObject.md +1 -1
  99. package/docs/operations/slider.md +1 -1
  100. package/docs/operations/table.md +1 -1
  101. package/docs/operations/tree.md +1 -1
  102. package/docs/operations/treemap.md +1 -1
  103. package/docs/operations/waterfall.md +1 -1
  104. package/docs/operations/word-cloud.md +1 -1
  105. package/getters.js +3 -3
  106. package/index.js +524 -500
  107. package/metadata.js +2 -2
  108. package/operations.js +6 -6
  109. package/package.json +73 -68
  110. package/src/definitions/index.d.ts +1 -7
  111. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
  112. package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
  113. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +1 -1
  114. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
  115. package/src/definitions/model/definitions/schemas/common.schema.d.ts +14 -2
  116. package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
  117. package/src/definitions/model/definitions/schemas/line.schema.d.ts +1 -1
  118. package/src/visualization-catalog.d.ts +3 -0
  119. package/styles.css +1 -1
  120. package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
  121. package/chunks/defaults-Dtk7fg3C.js +0 -3
  122. package/chunks/line.compiler-DmHpmQCC.js +0 -198
  123. package/chunks/number.compiler-DQdg6zTy.js +0 -53
  124. package/chunks/standalone-4MsKiqs0.js +0 -355
  125. package/chunks/standalone-B794g9pE.js +0 -1012
  126. package/chunks/standalone-BA2YXyJS.js +0 -422
  127. package/chunks/standalone-BgumbdaJ2.js +0 -357
  128. package/chunks/standalone-Blh4qejk.js +0 -689
  129. package/chunks/standalone-DH0xTEes.js +0 -2
  130. package/chunks/standalone-DcnHjNnC.js +0 -2
  131. package/chunks/standalone-DrHdGkY7.js +0 -762
  132. package/chunks/standalone-c_rROMtx.js +0 -287
  133. package/chunks/standalone-drcFLeN6.js +0 -6
@@ -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 { Cc as n, Js as r, Vr as i, Wo as a, hn as o, rl as s, y as c } from "./visualization-filters-BwS0xUqs.js";
3
+ import { Br as l, Qt as u, li as d } from "./utils-BdJrEeIQ.js";
4
+ import { in as f } from "./handlers-C63NVo7i.js";
5
+ import { t as p } from "./isEqual-BdHo6wqq.js";
6
+ import { c as m, s as h } from "./logger-Bc-DqDM_.js";
7
+ import { i as g } from "./extend-preset-BlCbcXKR.js";
8
+ import { _, c as v } from "./with-html-element-D_ooGNWI.js";
9
9
  import "./event-bus-CrLB-Y8z.js";
10
- import "./useFieldName-CdnCWzhd.js";
10
+ import "./useFieldName-BfxBzhhH.js";
11
11
  import "rxjs";
12
- var p = /* @__PURE__ */ e(s()), m = (e, t) => {
12
+ var y = /* @__PURE__ */ e(d()), 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: i = [], supportingMeasures: a = [] } = t, s = {
32
+ ...o(n.Table),
33
33
  referencedData: e.referencedData,
34
- dimensions: n,
35
- measures: r,
36
- supportingMeasures: o
34
+ dimensions: r,
35
+ measures: i,
36
+ supportingMeasures: a
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 = i("use-source-vspec", "yellow"), O = ({ vSpec: e, source: t }, r) => (0, y.useMemo)(() => {
46
+ let r = t && s(t) ? E(e, t) : o(n.Table);
47
+ return D.debug("newVSpec", r), r;
48
+ }, r), k = i("use-selections", "green"), A = (e) => {
49
+ let t = u(), [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
+ c();
296
+ var K = /* @__PURE__ */ e(p());
297
+ l(), i("with-astrato-frame", "#4fcd55"), i("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 = i("use-build-query", "yellow"), Y = ({ vSpec: e, visState: t = q, isVSpecValid: n = g, getQueryLimit: r, customQueryBuilders: i = [] }, a) => {
307
+ let o = u();
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 = i("use-query-data", "steelblue"), Q = ({ query: e, vSpec: t, availableFields: n, forceFetch: i = !1, debounceTime: a = 300 }, o) => {
323
+ let s = u(), c = (0, y.useRef)(null), [l, d] = (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 o = s.engine;
326
+ !o || !e || n.length > 0 && e && (!(0, K.default)(e, m.current) || i) && (c.current = r(16), X(async (r) => {
327
+ let i = await o.getData(e);
328
+ if (r === c.current) {
329
+ let r = _(e, i, t, n);
330
+ d(i), p(r), Z.debug("new data fetched for query:", e);
331
+ }
332
+ }, g, v, a)(c.current), m.current = e, h.current = n);
333
+ }, o), [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
+ }), a.Vertical, a.Horizontal, W.ImageFileType.JPEG, i("get-view-states", "#d8b4fe"), i("with-astrato-panel", "#388e3c");
348
+ export { O as a, A as i, Y as n, E as o, G as r, Q as t };
@@ -0,0 +1,20 @@
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,35 +1,35 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Ac as n, Et as r, Ir as i, Oa as a, gs as o, yc as s } from "./visualization-filters-D7i6oh1Z.js";
3
- import { Cn as c } from "./utils-DganVptf.js";
2
+ import { Cs as n, Ec as r, Et as i, Lc as a, Na as o, Vr as s } from "./visualization-filters-BwS0xUqs.js";
3
+ import { wn as c } from "./utils-BdJrEeIQ.js";
4
4
  import { t as l } from "./color-rules-DYJL4fIW.js";
5
5
  import { r as u } from "./color-settings-DJFoFTip.js";
6
- import "./logger-DdZpR7xZ.js";
6
+ import "./logger-Bc-DqDM_.js";
7
7
  import { t as d, u as f } from "./src-77e3mC7i.js";
8
- var p = (e, t, n) => e?.type === s.Single ? m(t, e.color ?? void 0) : e?.type === s.Categorical ? {
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,
10
- scale: s.Categorical
11
- } : e?.type === s.Gradient ? {
10
+ scale: r.Categorical
11
+ } : e?.type === r.Gradient ? {
12
12
  ref: n || void 0,
13
- scale: s.Gradient
14
- } : m(t), m = (e, t) => t ?? e.colors.brandColors[0], h = (e, t, n, r, i, a = !1) => {
15
- let o = e?.coloring?.type;
16
- if ((o === s.Single || o === s.PerEachMeasure) && t.scales[o]?.range) {
17
- if (a) return {
18
- scale: o,
19
- ref: i || "color"
13
+ scale: r.Gradient
14
+ } : m(t), m = (e, t) => t ?? e.colors.brandColors[0], h = (e, t, n, i, a, o = !1) => {
15
+ let s = e?.coloring?.type;
16
+ if ((s === r.Single || s === r.PerEachMeasure) && t.scales[s]?.range) {
17
+ if (o) return {
18
+ scale: s,
19
+ ref: a || "color"
20
20
  };
21
- let n = e.measures.findIndex((e) => r?.dataItem === e.dataItem), s = t.scales[o].range?.[n];
22
- if (typeof s == "string") return s;
21
+ let n = e.measures.findIndex((e) => i?.dataItem === e.dataItem), r = t.scales[s].range?.[n];
22
+ if (typeof r == "string") return r;
23
23
  }
24
- return e?.coloring?.type === s.Single ? r?.graphColor ?? e?.coloring?.color ?? n.colors.brandColors[0] : p(e.coloring, n, i);
24
+ return e?.coloring?.type === r.Single ? i?.graphColor ?? e?.coloring?.color ?? n.colors.brandColors[0] : p(e.coloring, n, a);
25
25
  }, g = (e, t) => {
26
26
  let n = null;
27
27
  if (t?.pattern) {
28
28
  let r = e.datum, i = Object.keys(r).reduce((e, t) => {
29
29
  let n = r[t];
30
30
  return n?.source?.field && n.source.key !== void 0 && (e[n.source.field] = n), e;
31
- }, {}), o = t.pattern.reduce((e, t) => i[t] ? `${e}-${i[t].value}` : `${e}-${r.value}`, `${r.source?.key ?? ""}`);
32
- t.itemsMap?.[o] || (n = a.grey3);
31
+ }, {}), a = t.pattern.reduce((e, t) => i[t] ? `${e}-${i[t].value}` : `${e}-${r.value}`, `${r.source?.key ?? ""}`);
32
+ t.itemsMap?.[a] || (n = o.grey3);
33
33
  }
34
34
  return n;
35
35
  }, _ = /* @__PURE__ */ t(((e, t) => {
@@ -50,7 +50,7 @@ var p = (e, t, n) => e?.type === s.Single ? m(t, e.color ?? void 0) : e?.type ==
50
50
  return t = r(t), a === void 0 ? (a = t, t = 0) : a = r(a), e = i(e), n(e, t, a);
51
51
  }
52
52
  t.exports = a;
53
- })))()), b = /* @__PURE__ */ e(r()), x = (e) => typeof e == "string" ? e : `${e}`, S = [
53
+ })))()), b = /* @__PURE__ */ e(i()), x = (e) => typeof e == "string" ? e : `${e}`, S = [
54
54
  "equals",
55
55
  "contains",
56
56
  "startsWith",
@@ -62,10 +62,10 @@ var p = (e, t, n) => e?.type === s.Single ? m(t, e.color ?? void 0) : e?.type ==
62
62
  "less-equals",
63
63
  "between",
64
64
  "not-equals"
65
- ], w = ["inList", "notInList"], T = (e) => o(e) || typeof e != "string" || e.length === 0 ? "," : e, E = (e, t) => {
66
- if (o(e.value)) return !1;
67
- let n = e.operator || "equals";
68
- return S.includes(n) ? O(e, t) : C.includes(n) ? k(e, t) : w.includes(n) ? D(e, t) : !1;
65
+ ], w = ["inList", "notInList"], T = (e) => n(e) || typeof e != "string" || e.length === 0 ? "," : e, E = (e, t) => {
66
+ if (n(e.value)) return !1;
67
+ let r = e.operator || "equals";
68
+ return S.includes(r) ? O(e, t) : C.includes(r) ? k(e, t) : w.includes(r) ? D(e, t) : !1;
69
69
  };
70
70
  function D(e, t) {
71
71
  let n = e.operator;
@@ -105,7 +105,7 @@ function k(e, t) {
105
105
  }
106
106
  }
107
107
  d();
108
- var A = i("color-manager", "#3f6212"), j = (e, t) => {
108
+ var A = s("color-manager", "#3f6212"), j = (e, t) => {
109
109
  if (t === "null") return null;
110
110
  switch (typeof e) {
111
111
  case "boolean": return typeof t == "boolean" ? t : String(t).toLowerCase() === "true";
@@ -113,7 +113,7 @@ var A = i("color-manager", "#3f6212"), j = (e, t) => {
113
113
  case "number": return typeof t == "string" ? parseFloat(t) : Number(t);
114
114
  default: return t;
115
115
  }
116
- }, M = (e) => o(e) || typeof e != "string" || e.length === 0 ? "," : e, N = (e) => {
116
+ }, M = (e) => n(e) || typeof e != "string" || e.length === 0 ? "," : e, N = (e) => {
117
117
  if (typeof e.value != "string" && typeof e.value != "number") return [];
118
118
  let t = M(typeof e.delimiter == "string" ? e.delimiter : void 0);
119
119
  return String(e.value).split(t).map((e) => e.trim()).filter((e) => e.length > 0);
@@ -124,8 +124,8 @@ var A = i("color-manager", "#3f6212"), j = (e, t) => {
124
124
  return t[n] = r, r;
125
125
  }, F = (e, t) => {
126
126
  if ((0, b.default)(e.value)) return !1;
127
- if (o(e.value) || u(e.value)) return A.warn("Color rule not preprocessed correctly - ignoring", e), !1;
128
- let n = j(t, e.value);
127
+ if (n(e.value) || u(e.value)) return A.warn("Color rule not preprocessed correctly - ignoring", e), !1;
128
+ let r = j(t, e.value);
129
129
  if ([l.InList, l.NotInList].includes(e.operator)) {
130
130
  let n = N(e);
131
131
  if (n.length === 0) return !1;
@@ -133,23 +133,23 @@ var A = i("color-manager", "#3f6212"), j = (e, t) => {
133
133
  return e.operator === l.NotInList ? !r : r;
134
134
  }
135
135
  if (typeof t != "number") switch (e.operator) {
136
- case l.Equals: return t === n;
137
- case l.NotEquals: return t !== n;
136
+ case l.Equals: return t === r;
137
+ case l.NotEquals: return t !== r;
138
138
  default: return !1;
139
139
  }
140
140
  switch (e.operator) {
141
- case l.Equals: return t === n;
142
- case l.Greater: return t > n;
143
- case l.Less: return t < n;
144
- case l.GreaterEquals: return t >= n;
145
- case l.LessEquals: return t <= n;
141
+ case l.Equals: return t === r;
142
+ case l.Greater: return t > r;
143
+ case l.Less: return t < r;
144
+ case l.GreaterEquals: return t >= r;
145
+ case l.LessEquals: return t <= r;
146
146
  case l.Between: {
147
147
  if ((0, b.default)(e.secondValue)) return !1;
148
- if (o(e.secondValue) || u(e.secondValue)) return A.warn("Color rule not preprocessed correctly - ignoring", e), !1;
149
- let r = j(t, e.secondValue);
150
- return n <= t && t <= r;
148
+ if (n(e.secondValue) || u(e.secondValue)) return A.warn("Color rule not preprocessed correctly - ignoring", e), !1;
149
+ let i = j(t, e.secondValue);
150
+ return r <= t && t <= i;
151
151
  }
152
- case l.NotEquals: return t !== n;
152
+ case l.NotEquals: return t !== r;
153
153
  default: return !1;
154
154
  }
155
155
  }, I = (e) => typeof e == "string" ? parseFloat(e) : e, L = {}, R = class {
@@ -227,20 +227,20 @@ var A = i("color-manager", "#3f6212"), j = (e, t) => {
227
227
  return [e.value, e.secondValue].some((e) => u(e) && this.resolveColoringConditionValue(e, t) === void 0);
228
228
  }
229
229
  getColorByScale(e, t = {}) {
230
- let { ref: n, dataItemId: r } = t;
230
+ let { ref: n, dataItemId: i } = t;
231
231
  switch (this.vSpec.coloring?.type) {
232
- case s.Categorical: {
233
- let t = e.resources.scale(s.Categorical), i = r || this.getValueFromProp(e, n, "color");
234
- if (this.vSpec.coloring.persistentColors === !1) return t(i);
235
- let a = t.range();
236
- return a[this.getHash(i) % a.length];
232
+ case r.Categorical: {
233
+ let t = e.resources.scale(r.Categorical), a = i || this.getValueFromProp(e, n, "color");
234
+ if (this.vSpec.coloring.persistentColors === !1) return t(a);
235
+ let o = t.range();
236
+ return o[this.getHash(a) % o.length];
237
237
  }
238
- case s.Gradient: {
239
- let t = e.resources.scale(s.Gradient)(r || this.getValueFromProp(e, n, "end"));
238
+ case r.Gradient: {
239
+ let t = e.resources.scale(r.Gradient)(i || this.getValueFromProp(e, n, "end"));
240
240
  return Number.isNaN(t) ? "#000000" : t;
241
241
  }
242
- case s.PerEachMeasure: return e.resources.scale(s.PerEachMeasure)(r || this.getValueFromProp(e, n, "color"));
243
- case s.Single: return e.resources.scale(s.Single)(r || this.getValueFromProp(e, n, "color"));
242
+ case r.PerEachMeasure: return e.resources.scale(r.PerEachMeasure)(i || this.getValueFromProp(e, n, "color"));
243
+ case r.Single: return e.resources.scale(r.Single)(i || this.getValueFromProp(e, n, "color"));
244
244
  default: return this.getSimpleColor();
245
245
  }
246
246
  }
@@ -268,11 +268,11 @@ var A = i("color-manager", "#3f6212"), j = (e, t) => {
268
268
  };
269
269
  }
270
270
  getMeasureColor(e, t) {
271
- let r = this.vSpec?.coloring?.type, i = this.vSpec.measures.findIndex((e) => n(t?.dataItem, e.dataItem)), a = r ? e.scales[r]?.range?.[i] : void 0;
272
- return typeof a == "string" ? a : t?.graphColor ?? this.vSpec?.coloring?.color ?? this.vTheme.colors.brandColors[0];
271
+ let n = this.vSpec?.coloring?.type, r = this.vSpec.measures.findIndex((e) => a(t?.dataItem, e.dataItem)), i = n ? e.scales[n]?.range?.[r] : void 0;
272
+ return typeof i == "string" ? i : t?.graphColor ?? this.vSpec?.coloring?.color ?? this.vTheme.colors.brandColors[0];
273
273
  }
274
274
  static getColorWithCallback(e, t) {
275
275
  return (n) => t(typeof e == "function" ? e(n) : e, n);
276
276
  }
277
277
  };
278
- export { g as a, v as i, F as n, h as o, E as r, m as s, R as t };
278
+ export { v as a, m as c, E as i, P as n, g as o, F as r, h as s, R as t };