@astrato-io/visualizations 0.9.0 → 0.10.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 (145) hide show
  1. package/README.md +8 -4
  2. package/THIRD_PARTY_NOTICES.md +163 -14
  3. package/VISUALIZATION_DEFINITIONS.md +319 -32
  4. package/chunks/{Button-5CxPEACP.js → Button-CCF851ea.js} +4 -4
  5. package/chunks/{CircularProgress-DFS-LQb7.js → CircularProgress-yupH6YWs.js} +39 -39
  6. package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
  7. package/chunks/{LinearProgress-CjIQfkNA.js → LinearProgress-CyFjN4px.js} +9 -9
  8. package/chunks/{MenuOption-Cb7B7x6z.js → MenuOption-CQpT79AP.js} +143 -142
  9. package/chunks/{Title-CtFw1bVg.js → Title-C-p4ZarD.js} +22 -22
  10. package/chunks/_createAggregator-BF4qG9XK.js +50 -0
  11. package/chunks/{app-filter-bar.compiler-B9775gLJ.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
  12. package/chunks/bar-layout-DStC-GNV.js +9 -0
  13. package/chunks/{bar.compiler-B7wlH_Ro.js → bar.compiler-CQAu8KL8.js} +102 -84
  14. package/chunks/{builder-Dxo7D7c6.js → builder-CScg1TOS.js} +71 -38
  15. package/chunks/color-rules-DYJL4fIW.js +15 -0
  16. package/chunks/color-settings-DJFoFTip.js +5 -0
  17. package/chunks/{coloring-B-Wa8D5P.js → coloring-9jU3s_-p.js} +41 -41
  18. package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
  19. package/chunks/defaults-cyNhn37t.js +3 -0
  20. package/chunks/{definitions-DNpzD9tY.js → definitions-C4grxhye.js} +613 -401
  21. package/chunks/{escobar-C4Nm3eJ7.js → escobar-CjirINHP.js} +5326 -5079
  22. package/chunks/{extend-preset-BVKFtoe-.js → extend-preset-D-l9u_we.js} +974 -909
  23. package/chunks/{filter.compiler-BlS3zoy_.js → filter.compiler-lji2Acgn.js} +10 -10
  24. package/chunks/{filtering-CGuLpg7u.js → filtering-C1zakrrX.js} +385 -429
  25. package/chunks/handlers-ZviIUC-j.js +15387 -0
  26. package/chunks/{icon-picker-styles-DYQgVEKG.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
  27. package/chunks/isEqual-Ch9OEye3.js +16 -0
  28. package/chunks/{isFocusVisible-B1_z03UT.js → isFocusVisible-CgMP0qkR.js} +1 -1
  29. package/chunks/label-format-type-C46pzgx7.js +17 -0
  30. package/chunks/{line.compiler-Bo9i9qag.js → line.compiler-De5fiKuR.js} +9 -9
  31. package/chunks/{logger-3lng-wOw.js → logger-CKRjhSHQ.js} +71 -64
  32. package/chunks/map.compiler-CKzorLgK.js +345 -0
  33. package/chunks/{metadata-Fmx1swpK.js → metadata-Bb9pTXrq.js} +1 -1
  34. package/chunks/{number.compiler-CdLd5aGW.js → number.compiler-CaTmJkmi.js} +7 -7
  35. package/chunks/operations-DZoY50VX.js +31297 -0
  36. package/chunks/{range-CzO4isKK.js → range-D1BTmFMp.js} +2 -2
  37. package/chunks/{react-dom-BwZT0N3F.js → react-dom-Dgv2azN2.js} +70 -70
  38. package/chunks/{render-wrappers-CAuvgMxi.js → render-wrappers-_P3xwu5A.js} +1 -1
  39. package/chunks/{requirements-CYpVh65U.js → requirements-NHNrR8Ie.js} +59 -57
  40. package/chunks/shared-UitWpq1J.js +1331 -0
  41. package/chunks/{standalone-CoQxJ6ov.js → standalone-B0U6c3su.js} +804 -804
  42. package/chunks/{standalone-C6XDHYAM.js → standalone-BBu90BhK.js} +109 -109
  43. package/chunks/standalone-BEekPuA12.js +357 -0
  44. package/chunks/{standalone-CPUiiWNP.js → standalone-BOzHA_d4.js} +41 -41
  45. package/chunks/standalone-BR2JuRIC.js +422 -0
  46. package/chunks/{standalone-DuwTOBXH.js → standalone-BapqaniK.js} +592 -592
  47. package/chunks/{standalone-DWPfdP0A.js → standalone-Bnnr87pc.js} +523 -523
  48. package/chunks/standalone-BwJqDj2Z.js +396 -0
  49. package/chunks/{standalone-LFVgLhia.js → standalone-ByKKqT5L.js} +266 -258
  50. package/chunks/{standalone-BDrQMxLi.js → standalone-CRdDZYeM.js} +1788 -1004
  51. package/chunks/standalone-CRfDOO1x.js +287 -0
  52. package/chunks/{standalone-BvWdpUL3.js → standalone-CVknVdUC.js} +21 -18
  53. package/chunks/standalone-CbPk8bKn.js +580 -0
  54. package/chunks/{standalone-r4ObFvys.js → standalone-Ck63MZzj.js} +218 -216
  55. package/chunks/{standalone-Cu73fzSr.js → standalone-DCFY1MAV.js} +6040 -5820
  56. package/chunks/{standalone-CiaaibTa.js → standalone-DZDGX3aa.js} +174 -174
  57. package/chunks/standalone-DhfgeJIk.js +1012 -0
  58. package/chunks/standalone-DibjA73M.js +6 -0
  59. package/chunks/{standalone-CXniic5x.js → standalone-DtBk_iUz.js} +6 -5
  60. package/chunks/standalone-DxBAyqAu.js +772 -0
  61. package/chunks/standalone-KMQPsNsq.js +2 -0
  62. package/chunks/standalone-MBLSvsrY.js +2 -0
  63. package/chunks/standalone-U0WJwFlG.js +354 -0
  64. package/chunks/{standalone-CNkHsynO.js → standalone-swGs70tD.js} +54 -56
  65. package/chunks/standalone-wgFAVnnm.js +355 -0
  66. package/chunks/standalone-xGV0dqPV.js +689 -0
  67. package/chunks/{table.compiler-C1qjqXaT.js → table.compiler-OWSx5MOq.js} +4 -4
  68. package/chunks/{useFieldName-mWrD_uk_.js → useFieldName-B8iCYyw1.js} +1 -1
  69. package/chunks/{utils-DYYD4Zzf.js → utils-3Igg6xmO.js} +4740 -4737
  70. package/chunks/{view-7fH6mGmY.js → view-DdMLZySj.js} +1988 -1632
  71. package/chunks/{visualization-filters-mVnsnvLP.js → visualization-filters-CzvFHE6M.js} +3158 -2417
  72. package/chunks/{with-html-element-B0Clt4jY.js → with-html-element-DOfkR3C1.js} +3353 -3160
  73. package/definitions.js +2 -2
  74. package/docs/operations/astrato-app-filter-bar.md +1 -1
  75. package/docs/operations/bar.md +303 -2
  76. package/docs/operations/combo.md +262 -1
  77. package/docs/operations/date-picker.md +1 -1
  78. package/docs/operations/distribution-gauge.md +1 -1
  79. package/docs/operations/dot.md +148 -1
  80. package/docs/operations/filter.md +1 -1
  81. package/docs/operations/gauge.md +1 -1
  82. package/docs/operations/heatMap.md +1 -1
  83. package/docs/operations/histogram.md +262 -1
  84. package/docs/operations/iframe.md +1 -1
  85. package/docs/operations/image.md +1 -1
  86. package/docs/operations/index.md +7 -7
  87. package/docs/operations/line.md +262 -1
  88. package/docs/operations/number.md +1 -1
  89. package/docs/operations/pie.md +1 -1
  90. package/docs/operations/radar.md +1 -1
  91. package/docs/operations/sankey.md +1 -1
  92. package/docs/operations/scatter.md +148 -1
  93. package/docs/operations/shape.md +1 -1
  94. package/docs/operations/simpleTextObject.md +1 -1
  95. package/docs/operations/slider.md +1 -1
  96. package/docs/operations/table.md +374 -157
  97. package/docs/operations/tree.md +1 -1
  98. package/docs/operations/treemap.md +1 -1
  99. package/docs/operations/waterfall.md +1 -1
  100. package/docs/operations/word-cloud.md +1 -1
  101. package/getters.js +2 -2
  102. package/index.js +507 -459
  103. package/metadata.js +2 -2
  104. package/operations.js +5 -5
  105. package/package.json +72 -67
  106. package/src/definitions/index.d.ts +1 -1
  107. package/src/definitions/model/definitions/available-fields.d.ts +2 -2
  108. package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
  109. package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
  110. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +188 -2
  111. package/src/definitions/model/definitions/index.d.ts +2 -1
  112. package/src/definitions/model/definitions/schema-registry.d.ts +305 -0
  113. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -0
  114. package/src/definitions/model/definitions/schemas/common.schema.d.ts +4 -3
  115. package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
  116. package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
  117. package/src/definitions/model/definitions/types/compilation.types.d.ts +7 -2
  118. package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
  119. package/src/definitions/model/definitions/types/index.d.ts +1 -1
  120. package/src/index.d.ts +1 -1
  121. package/src/operations/index.d.ts +1 -1
  122. package/src/types.d.ts +45 -41
  123. package/chunks/FieldTypeIcon-pSVQFemC.js +0 -22
  124. package/chunks/ToggleButton-Br9HCPCv.js +0 -150
  125. package/chunks/color-rules-CN7TcGrC.js +0 -6
  126. package/chunks/color-settings-3VRlf_Vw.js +0 -6
  127. package/chunks/handlers-CMbyj5y1.js +0 -12930
  128. package/chunks/isEqual-DBg_b35N.js +0 -12
  129. package/chunks/label-format-type-weq1XfcX.js +0 -8
  130. package/chunks/operations-HSqnCRvv.js +0 -26324
  131. package/chunks/shared-DFoJxjVN.js +0 -1218
  132. package/chunks/standalone-530a5lvf.js +0 -1003
  133. package/chunks/standalone-5DnapeHH.js +0 -420
  134. package/chunks/standalone-B4jrf4KE.js +0 -354
  135. package/chunks/standalone-B6s_xG2u.js +0 -354
  136. package/chunks/standalone-BMoJXGYe.js +0 -2
  137. package/chunks/standalone-BfvGggeM2.js +0 -355
  138. package/chunks/standalone-CMJJIi9v.js +0 -2
  139. package/chunks/standalone-C_Jd4gkj.js +0 -6
  140. package/chunks/standalone-DBeXQrwH.js +0 -468
  141. package/chunks/standalone-DMCwtebn.js +0 -396
  142. package/chunks/standalone-DpSRmAWx.js +0 -287
  143. package/chunks/standalone-kzAhwH19.js +0 -689
  144. package/chunks/standalone-mb7LwEiq.js +0 -3874
  145. /package/chunks/{src-BOS6SqkZ2.js → src-BOS6SqkZ.js} +0 -0
@@ -1,19 +1,52 @@
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-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";
2
+ import { Io as n, Ir as r, hc as i, un as a, y as o } from "./visualization-filters-CzvFHE6M.js";
3
+ import { ci as s, zr as c } from "./utils-3Igg6xmO.js";
4
+ import { nn as l } from "./handlers-ZviIUC-j.js";
5
+ import { t as u } from "./isEqual-Ch9OEye3.js";
6
+ import { c as d, s as f } from "./logger-CKRjhSHQ.js";
7
+ import "./extend-preset-D-l9u_we.js";
8
+ import "./with-html-element-DOfkR3C1.js";
9
9
  import "./event-bus-CrLB-Y8z.js";
10
- import "./useFieldName-mWrD_uk_.js";
10
+ import "./useFieldName-B8iCYyw1.js";
11
11
  import "rxjs";
12
- var d = /* @__PURE__ */ e(a());
13
- n("use-source-vspec", "yellow"), n("use-selections", "green");
14
- var f = /* @__PURE__ */ t(((e) => {
12
+ var p = /* @__PURE__ */ e(s()), m = (e, t) => {
13
+ let n = { ...t };
14
+ return e?.querySettings && (n.querySettings = { ...e.querySettings }), n;
15
+ }, h = (e, t) => {
16
+ let n = { ...t };
17
+ return e?.staticFilters && (n.staticFilters = { ...e.staticFilters }), n;
18
+ }, g = (e, t) => {
19
+ let n = { ...t };
20
+ return e?.sortingMeasures && (n.sortingMeasures = [...e.sortingMeasures]), n;
21
+ }, _ = (e, t) => {
22
+ let n = { ...t };
23
+ return e?.timeTravel && (n.timeTravel = { ...e.timeTravel }), n;
24
+ }, v = (e, t) => {
25
+ let n = { ...t };
26
+ return "coloring" in e && (n.coloring = { ...e.coloring }), n;
27
+ }, y = (e, t, n) => e.reduce((e, n) => ({
28
+ ...e,
29
+ ...n(t, e)
30
+ }), n), b = (e, t) => {
31
+ let { dimensions: n = [], measures: r = [], supportingMeasures: o = [] } = t, s = {
32
+ ...a(i.Table),
33
+ referencedData: e.referencedData,
34
+ dimensions: n,
35
+ measures: r,
36
+ supportingMeasures: o
37
+ };
38
+ return y([
39
+ h,
40
+ m,
41
+ g,
42
+ _,
43
+ v
44
+ ], t, s);
45
+ };
46
+ r("use-source-vspec", "yellow"), r("use-selections", "green");
47
+ var x = /* @__PURE__ */ t(((e) => {
15
48
  Object.defineProperty(e, "__esModule", { value: !0 });
16
- })), p = /* @__PURE__ */ t(((e) => {
49
+ })), S = /* @__PURE__ */ t(((e) => {
17
50
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
18
51
  r === void 0 && (r = n);
19
52
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -28,10 +61,10 @@ var f = /* @__PURE__ */ t(((e) => {
28
61
  })), n = e && e.__exportStar || function(e, n) {
29
62
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
30
63
  };
31
- Object.defineProperty(e, "__esModule", { value: !0 }), n(f(), e);
32
- })), m = /* @__PURE__ */ t(((e) => {
64
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(x(), e);
65
+ })), C = /* @__PURE__ */ t(((e) => {
33
66
  Object.defineProperty(e, "__esModule", { value: !0 });
34
- })), h = /* @__PURE__ */ t(((e) => {
67
+ })), w = /* @__PURE__ */ t(((e) => {
35
68
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
36
69
  r === void 0 && (r = n);
37
70
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -46,10 +79,10 @@ var f = /* @__PURE__ */ t(((e) => {
46
79
  })), n = e && e.__exportStar || function(e, n) {
47
80
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
48
81
  };
49
- Object.defineProperty(e, "__esModule", { value: !0 }), e.CopilotCustomPromptDto = void 0, n(m(), e), e.CopilotCustomPromptDto = class {};
50
- })), g = /* @__PURE__ */ t(((e) => {
82
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.CopilotCustomPromptDto = void 0, n(C(), e), e.CopilotCustomPromptDto = class {};
83
+ })), T = /* @__PURE__ */ t(((e) => {
51
84
  Object.defineProperty(e, "__esModule", { value: !0 }), e.SELF_SERVICE_ANALYSIS_MAX_QUERY_LIMIT = void 0, e.SELF_SERVICE_ANALYSIS_MAX_QUERY_LIMIT = 1e5;
52
- })), _ = /* @__PURE__ */ t(((e) => {
85
+ })), E = /* @__PURE__ */ t(((e) => {
53
86
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
54
87
  r === void 0 && (r = n);
55
88
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -64,10 +97,10 @@ var f = /* @__PURE__ */ t(((e) => {
64
97
  })), n = e && e.__exportStar || function(e, n) {
65
98
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
66
99
  };
67
- Object.defineProperty(e, "__esModule", { value: !0 }), n(h(), e), n(g(), e);
68
- })), v = /* @__PURE__ */ t(((e) => {
100
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(w(), e), n(T(), e);
101
+ })), D = /* @__PURE__ */ t(((e) => {
69
102
  Object.defineProperty(e, "__esModule", { value: !0 });
70
- })), y = /* @__PURE__ */ t(((e) => {
103
+ })), O = /* @__PURE__ */ t(((e) => {
71
104
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
72
105
  r === void 0 && (r = n);
73
106
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -82,14 +115,14 @@ var f = /* @__PURE__ */ t(((e) => {
82
115
  })), n = e && e.__exportStar || function(e, n) {
83
116
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
84
117
  };
85
- Object.defineProperty(e, "__esModule", { value: !0 }), n(p(), e), n(_(), e), n(v(), e);
86
- })), b = /* @__PURE__ */ t(((e) => {
118
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(S(), e), n(E(), e), n(D(), e);
119
+ })), k = /* @__PURE__ */ t(((e) => {
87
120
  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";
88
- })), x = /* @__PURE__ */ t(((e) => {
121
+ })), A = /* @__PURE__ */ t(((e) => {
89
122
  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;
90
- })), S = /* @__PURE__ */ t(((e) => {
123
+ })), j = /* @__PURE__ */ t(((e) => {
91
124
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getMinMaxTopPValues = e.getMinMaxTemperatureValues = e.getDefaultTopP = e.getDefaultTemperature = e.isPersistedConfigFlagEnabled = void 0;
92
- var t = s(), n = x();
125
+ var t = l(), n = A();
93
126
  e.isPersistedConfigFlagEnabled = (e) => e === !0 || e === "true", e.getDefaultTemperature = (e) => {
94
127
  switch (e) {
95
128
  case t.AIProviderType.SnowflakeCortex: return n.SNOWFLAKE_CORTEX_DEFAULT_TEMPERATURE;
@@ -105,7 +138,7 @@ var f = /* @__PURE__ */ t(((e) => {
105
138
  let r = e === t.AIProviderType.SnowflakeCortex ? n.SNOWFLAKE_CORTEX_TEMPERATURE_MAX_VALUE : n.TEMPERATURE_MAX_VALUE;
106
139
  return [n.TEMPERATURE_MIN_VALUE, r];
107
140
  }, e.getMinMaxTopPValues = () => [n.TOP_P_MIN_VALUE, n.TOP_P_MAX_VALUE];
108
- })), C = /* @__PURE__ */ t(((e) => {
141
+ })), M = /* @__PURE__ */ t(((e) => {
109
142
  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 }) => {
110
143
  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, {
111
144
  sourceRowCount: r.length,
@@ -137,7 +170,7 @@ var f = /* @__PURE__ */ t(((e) => {
137
170
  let n = String(t ?? "").replace(/[\r\n,]+/g, " ").trim();
138
171
  return n.length > e.MAX_CELL_CHARS_IN_AI_PROMPT ? `${n.slice(0, e.MAX_CELL_CHARS_IN_AI_PROMPT - 3)}...` : n;
139
172
  }, e.getAiPromptTruncationMarker = (e) => `...truncated ${e} more rows`, e.getAiPromptUnknownTruncationMarker = () => "...additional rows omitted";
140
- })), w = /* @__PURE__ */ t(((e) => {
173
+ })), N = /* @__PURE__ */ t(((e) => {
141
174
  var t = e && e.__rest || function(e, t) {
142
175
  var n = {};
143
176
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -145,7 +178,7 @@ var f = /* @__PURE__ */ t(((e) => {
145
178
  return n;
146
179
  };
147
180
  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();
181
+ var n = d();
149
182
  e.ASTRATO_AI_INSIGHTS_FLAG = n.FeatureFlags.ASTRATO_AI_INSIGHTS, e.INSIGHTS_DESCRIBE_PATH = "/api/sle/insights/describe";
150
183
  function r(e) {
151
184
  let r = e ?? {}, { customPrompt: i, outputType: a } = r, o = t(r, ["customPrompt", "outputType"]);
@@ -240,25 +273,25 @@ var f = /* @__PURE__ */ t(((e) => {
240
273
  })), n = e && e.__exportStar || function(e, n) {
241
274
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
242
275
  };
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);
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);
244
277
  })))();
245
- var T = u(), E = ({ id: e, ...t }, { vBackendAPI: n, objectId: r }) => {
278
+ var P = f(), F = ({ id: e, ...t }, { vBackendAPI: n, objectId: r }) => {
246
279
  let i = { eventId: e };
247
280
  Object.keys(t).length > 0 && (i.payload = t);
248
281
  let a = r || n.model.getObject()?.id;
249
- n.daedalus.emitEvent(T.AstratoEvents.OBJECT_INTERACTION, i, a);
282
+ n.daedalus.emitEvent(P.AstratoEvents.OBJECT_INTERACTION, i, a);
250
283
  };
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", {
284
+ o(), u(), c(), r("with-astrato-frame", "#4fcd55"), r("with-astrato-panel-special", "#4fcd55"), r("use-build-query", "yellow"), r("use-query-data", "steelblue"), p.forwardRef(function(e, t) {
285
+ return p.createElement("img", {
253
286
  ...e,
254
287
  ref: t,
255
288
  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"
256
289
  });
257
- }), d.forwardRef(function(e, t) {
258
- return d.createElement("img", {
290
+ }), p.forwardRef(function(e, t) {
291
+ return p.createElement("img", {
259
292
  ...e,
260
293
  ref: t,
261
294
  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"
262
295
  });
263
- }), r.Vertical, r.Horizontal, T.ImageFileType.JPEG, n("get-view-states", "#d8b4fe"), n("with-astrato-panel", "#388e3c");
264
- export { E as t };
296
+ }), n.Vertical, n.Horizontal, P.ImageFileType.JPEG, r("get-view-states", "#d8b4fe"), r("with-astrato-panel", "#388e3c");
297
+ export { b as n, F as t };
@@ -0,0 +1,15 @@
1
+ var e = {
2
+ Equals: "equals",
3
+ InList: "inList",
4
+ NotInList: "notInList",
5
+ Greater: "greater",
6
+ Less: "less",
7
+ GreaterEquals: "greater-equals",
8
+ LessEquals: "less-equals",
9
+ Between: "between",
10
+ NotEquals: "not-equals"
11
+ }, t = {
12
+ Custom: "custom",
13
+ Gradient: "gradient"
14
+ };
15
+ export { t as n, e as t };
@@ -0,0 +1,5 @@
1
+ var e = {
2
+ ASC: "alpha-asc",
3
+ DATA: "data"
4
+ }, t = { SUPPORTING_MEASURE: "supporting-measure" }, n = (e) => !!e && typeof e == "object" && "type" in e && e.type === t.SUPPORTING_MEASURE;
5
+ export { e as n, n as r, t };
@@ -1,37 +1,37 @@
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, gt as s } from "./visualization-filters-mVnsnvLP.js";
3
- import { hn as c } from "./utils-DYYD4Zzf.js";
4
- import { t as l } from "./color-rules-CN7TcGrC.js";
5
- import { r as u } from "./color-settings-3VRlf_Vw.js";
6
- import "./logger-3lng-wOw.js";
2
+ import { Da as n, Et as r, Ir as i, hs as a, kc as o, vc as s } from "./visualization-filters-CzvFHE6M.js";
3
+ import { Cn as c } from "./utils-3Igg6xmO.js";
4
+ import { t as l } from "./color-rules-DYJL4fIW.js";
5
+ import { r as u } from "./color-settings-DJFoFTip.js";
6
+ import "./logger-CKRjhSHQ.js";
7
7
  import { t as d, u as f } from "./src-77e3mC7i.js";
8
- var p = (e, t, n) => e?.type === r.Single ? m(t, e.color ?? void 0) : e?.type === r.Categorical ? {
8
+ var p = (e, t, n) => e?.type === s.Single ? m(t, e.color ?? void 0) : e?.type === s.Categorical ? {
9
9
  ref: n || void 0,
10
- scale: r.Categorical
11
- } : e?.type === r.Gradient ? {
10
+ scale: s.Categorical
11
+ } : e?.type === s.Gradient ? {
12
12
  ref: n || void 0,
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"
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"
20
20
  };
21
- let n = e.measures.findIndex((e) => i?.dataItem === e.dataItem), r = t.scales[s].range?.[n];
22
- if (typeof r == "string") return r;
21
+ let n = e.measures.findIndex((e) => r?.dataItem === e.dataItem), s = t.scales[o].range?.[n];
22
+ if (typeof s == "string") return s;
23
23
  }
24
- return e?.coloring?.type === r.Single ? i?.graphColor ?? e?.coloring?.color ?? n.colors.brandColors[0] : p(e.coloring, n, a);
24
+ return e?.coloring?.type === s.Single ? r?.graphColor ?? e?.coloring?.color ?? n.colors.brandColors[0] : p(e.coloring, n, i);
25
25
  }, g = (e, t) => {
26
- let n = null;
26
+ let r = null;
27
27
  if (t?.pattern) {
28
- let r = e.datum, i = Object.keys(r).reduce((e, t) => {
29
- let n = r[t];
28
+ let i = e.datum, a = Object.keys(i).reduce((e, t) => {
29
+ let n = i[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
+ }, {}), o = t.pattern.reduce((e, t) => a[t] ? `${e}-${a[t].value}` : `${e}-${i.value}`, `${i.source?.key ?? ""}`);
32
+ t.itemsMap?.[o] || (r = n.grey3);
33
33
  }
34
- return n;
34
+ return r;
35
35
  }, _ = /* @__PURE__ */ t(((e, t) => {
36
36
  var n = Math.max, r = Math.min;
37
37
  function i(e, t, i) {
@@ -50,7 +50,7 @@ var p = (e, t, n) => e?.type === r.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(s()), x = (e) => typeof e == "string" ? e : `${e}`, S = [
53
+ })))()), b = /* @__PURE__ */ e(r()), x = (e) => typeof e == "string" ? e : `${e}`, S = [
54
54
  "equals",
55
55
  "contains",
56
56
  "startsWith",
@@ -62,8 +62,8 @@ var p = (e, t, n) => e?.type === r.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) => i(e) || typeof e != "string" || e.length === 0 ? "," : e, E = (e, t) => {
66
- if (i(e.value)) return !1;
65
+ ], w = ["inList", "notInList"], T = (e) => a(e) || typeof e != "string" || e.length === 0 ? "," : e, E = (e, t) => {
66
+ if (a(e.value)) return !1;
67
67
  let n = e.operator || "equals";
68
68
  return S.includes(n) ? O(e, t) : C.includes(n) ? k(e, t) : w.includes(n) ? D(e, t) : !1;
69
69
  };
@@ -105,7 +105,7 @@ function k(e, t) {
105
105
  }
106
106
  }
107
107
  d();
108
- var A = n("color-manager", "#3f6212"), j = (e, t) => {
108
+ var A = i("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 = n("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) => i(e) || typeof e != "string" || e.length === 0 ? "," : e, N = (e) => {
116
+ }, M = (e) => a(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,7 +124,7 @@ var A = n("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 (i(e.value) || u(e.value)) return A.warn("Color rule not preprocessed correctly - ignoring", e), !1;
127
+ if (a(e.value) || u(e.value)) return A.warn("Color rule not preprocessed correctly - ignoring", e), !1;
128
128
  let n = j(t, e.value);
129
129
  if ([l.InList, l.NotInList].includes(e.operator)) {
130
130
  let n = N(e);
@@ -145,7 +145,7 @@ var A = n("color-manager", "#3f6212"), j = (e, t) => {
145
145
  case l.LessEquals: return t <= n;
146
146
  case l.Between: {
147
147
  if ((0, b.default)(e.secondValue)) return !1;
148
- if (i(e.secondValue) || u(e.secondValue)) return A.warn("Color rule not preprocessed correctly - ignoring", e), !1;
148
+ if (a(e.secondValue) || u(e.secondValue)) return A.warn("Color rule not preprocessed correctly - ignoring", e), !1;
149
149
  let r = j(t, e.secondValue);
150
150
  return n <= t && t <= r;
151
151
  }
@@ -227,20 +227,20 @@ var A = n("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: i } = t;
230
+ let { ref: n, dataItemId: r } = t;
231
231
  switch (this.vSpec.coloring?.type) {
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];
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];
237
237
  }
238
- case r.Gradient: {
239
- let t = e.resources.scale(r.Gradient)(i || this.getValueFromProp(e, n, "end"));
238
+ case s.Gradient: {
239
+ let t = e.resources.scale(s.Gradient)(r || this.getValueFromProp(e, n, "end"));
240
240
  return Number.isNaN(t) ? "#000000" : t;
241
241
  }
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"));
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"));
244
244
  default: return this.getSimpleColor();
245
245
  }
246
246
  }