@astrato-io/visualizations 0.8.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.
- package/README.md +9 -5
- package/THIRD_PARTY_NOTICES.md +403 -325
- package/VISUALIZATION_DEFINITIONS.md +319 -32
- package/chunks/{Button-BrGKp9Nm.js → Button-CCF851ea.js} +10 -10
- package/chunks/CircularProgress-yupH6YWs.js +765 -0
- package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
- package/chunks/LinearProgress-CyFjN4px.js +327 -0
- package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-CQpT79AP.js} +1391 -1008
- package/chunks/Title-C-p4ZarD.js +1804 -0
- package/chunks/_createAggregator-BF4qG9XK.js +50 -0
- package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
- package/chunks/bar-layout-DStC-GNV.js +9 -0
- package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-CQAu8KL8.js} +102 -84
- package/chunks/{builder-DEDvNq1k.js → builder-CScg1TOS.js} +156 -60
- package/chunks/color-rules-DYJL4fIW.js +15 -0
- package/chunks/color-settings-DJFoFTip.js +5 -0
- package/chunks/{coloring-CncX_JRX.js → coloring-9jU3s_-p.js} +41 -41
- package/chunks/contains-BK-sRXcB.js +21 -0
- package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
- package/chunks/defaults-cyNhn37t.js +3 -0
- package/chunks/{definitions-BPJQTx16.js → definitions-C4grxhye.js} +612 -400
- package/chunks/{escobar-DRhRMYRE.js → escobar-CjirINHP.js} +5354 -5473
- package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-D-l9u_we.js} +974 -909
- package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-lji2Acgn.js} +7 -7
- package/chunks/{filtering-cc7WqWpg.js → filtering-C1zakrrX.js} +570 -390
- package/chunks/handlers-ZviIUC-j.js +15387 -0
- package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
- package/chunks/isEqual-Ch9OEye3.js +16 -0
- package/chunks/isFocusVisible-CgMP0qkR.js +144 -0
- package/chunks/label-format-type-C46pzgx7.js +17 -0
- package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-De5fiKuR.js} +6 -6
- package/chunks/{logger-DpQtYQnX.js → logger-CKRjhSHQ.js} +77 -66
- package/chunks/map.compiler-CKzorLgK.js +345 -0
- package/chunks/{metadata-WABZrt7Y.js → metadata-Bb9pTXrq.js} +1 -1
- package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CaTmJkmi.js} +4 -4
- package/chunks/operations-DZoY50VX.js +31297 -0
- package/chunks/{range-Bi-7zT0k.js → range-D1BTmFMp.js} +2 -2
- package/chunks/react-dom-Dgv2azN2.js +368 -0
- package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-_P3xwu5A.js} +1 -1
- package/chunks/{requirements-Dvd8jqYF.js → requirements-NHNrR8Ie.js} +55 -53
- package/chunks/responsive.styles-FItb913l.js +93 -0
- package/chunks/shared-UitWpq1J.js +1331 -0
- package/chunks/standalone-B0U6c3su.js +3638 -0
- package/chunks/{standalone-we5D5MIn.js → standalone-BBu90BhK.js} +113 -113
- package/chunks/standalone-BEekPuA12.js +357 -0
- package/chunks/{standalone-BMTCb10X.js → standalone-BOzHA_d4.js} +41 -41
- package/chunks/standalone-BR2JuRIC.js +422 -0
- package/chunks/{standalone-BGkmozIb.js → standalone-BapqaniK.js} +619 -619
- package/chunks/standalone-Bnnr87pc.js +2009 -0
- package/chunks/standalone-BwJqDj2Z.js +396 -0
- package/chunks/{standalone-BDhPQtzQ.js → standalone-ByKKqT5L.js} +308 -300
- package/chunks/{standalone-vBnBS2YC.js → standalone-CRdDZYeM.js} +1788 -1004
- package/chunks/standalone-CRfDOO1x.js +287 -0
- package/chunks/{standalone-D5Q5ngsD.js → standalone-CVknVdUC.js} +30 -27
- package/chunks/standalone-CbPk8bKn.js +580 -0
- package/chunks/{standalone-CJvIXsQE.js → standalone-Ck63MZzj.js} +234 -232
- package/chunks/{standalone-CM5XcAN5.js → standalone-DCFY1MAV.js} +8075 -7729
- package/chunks/{standalone-DW6NT205.js → standalone-DZDGX3aa.js} +168 -168
- package/chunks/standalone-DhfgeJIk.js +1012 -0
- package/chunks/{standalone-DT0wKji7.js → standalone-DibjA73M.js} +2 -2
- package/chunks/{standalone-XuGksArp.js → standalone-DtBk_iUz.js} +9 -8
- package/chunks/standalone-DxBAyqAu.js +772 -0
- package/chunks/standalone-KMQPsNsq.js +2 -0
- package/chunks/standalone-MBLSvsrY.js +2 -0
- package/chunks/standalone-U0WJwFlG.js +354 -0
- package/chunks/{standalone-C8ZAEutO.js → standalone-swGs70tD.js} +49 -51
- package/chunks/standalone-wgFAVnnm.js +355 -0
- package/chunks/standalone-xGV0dqPV.js +689 -0
- package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-OWSx5MOq.js} +7 -7
- package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
- package/chunks/useFieldName-B8iCYyw1.js +7 -0
- package/chunks/{utils-vdmi_2PK.js → utils-3Igg6xmO.js} +7668 -12779
- package/chunks/{view-BuwQugKb.js → view-DdMLZySj.js} +2430 -2110
- package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-CzvFHE6M.js} +5205 -4438
- package/chunks/with-html-element-DOfkR3C1.js +16094 -0
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +303 -2
- package/docs/operations/combo.md +262 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +148 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +262 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +8 -8
- package/docs/operations/line.md +262 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +148 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +439 -157
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +523 -469
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +74 -68
- package/src/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/available-fields.d.ts +2 -2
- package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
- package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +535 -349
- package/src/definitions/model/definitions/index.d.ts +2 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +406 -101
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +10 -8
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +33 -32
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
- package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
- package/src/definitions/model/definitions/types/compilation.types.d.ts +7 -2
- package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
- package/src/definitions/model/definitions/types/index.d.ts +1 -1
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +1 -1
- package/src/types.d.ts +45 -41
- package/src/visualization-catalog.d.ts +26 -26
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
- package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
- package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
- package/chunks/Title-CO5dP1ma.js +0 -1691
- package/chunks/ToggleButton-KOBAimC1.js +0 -112
- package/chunks/color-rules-CN7TcGrC.js +0 -6
- package/chunks/color-settings-3VRlf_Vw.js +0 -6
- package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
- package/chunks/handlers-TOT-7INo.js +0 -12871
- package/chunks/isEqual-B8loyPsC.js +0 -12
- package/chunks/label-format-type-weq1XfcX.js +0 -8
- package/chunks/operations-Dh4v1Ovt.js +0 -26280
- package/chunks/responsive.styles-DSiOGD7u.js +0 -82
- package/chunks/shared-Bn4N5QcZ.js +0 -1218
- package/chunks/standalone-B55oyW6c.js +0 -689
- package/chunks/standalone-BXKRE_Se.js +0 -468
- package/chunks/standalone-Bes8srx1.js +0 -354
- package/chunks/standalone-BjZp0QMe.js +0 -2
- package/chunks/standalone-BlMIwpEe.js +0 -1877
- package/chunks/standalone-C8qAelL4.js +0 -2
- package/chunks/standalone-CLmGb7nn2.js +0 -355
- package/chunks/standalone-CXNP6-xD.js +0 -420
- package/chunks/standalone-DLlyRIE6.js +0 -287
- package/chunks/standalone-DMcI1afI.js +0 -396
- package/chunks/standalone-DN4S1MjT.js +0 -3874
- package/chunks/standalone-DYQIQH4c.js +0 -2095
- package/chunks/standalone-D__XCp-h.js +0 -1003
- package/chunks/standalone-XTgSsTAa.js +0 -354
- package/chunks/useFieldName-Cjn9KCVp.js +0 -7
- package/chunks/useSlotProps-DLbQp4lc.js +0 -166
- package/chunks/with-html-element-D0uY2zjI.js +0 -7328
|
@@ -1,39 +1,52 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import "./with-html-element-
|
|
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-
|
|
10
|
+
import "./useFieldName-B8iCYyw1.js";
|
|
11
11
|
import "rxjs";
|
|
12
|
-
var
|
|
13
|
-
n
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|
30
37
|
};
|
|
31
|
-
|
|
32
|
-
|
|
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) => {
|
|
33
48
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34
|
-
})),
|
|
35
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.CopilotDashboardGenerateBodyDto = e.CopilotVisualisationSortingDto = e.CopilotVisualisationMeasureDto = e.CopilotVisualisationDimensionDto = e.CopilotVisualisationSizeDto = void 0, e.CopilotVisualisationSizeDto = class {}, e.CopilotVisualisationDimensionDto = class {}, e.CopilotVisualisationMeasureDto = class {}, e.CopilotVisualisationSortingDto = class {}, e.CopilotDashboardGenerateBodyDto = class {};
|
|
36
|
-
})), h = /* @__PURE__ */ t(((e) => {
|
|
49
|
+
})), S = /* @__PURE__ */ t(((e) => {
|
|
37
50
|
var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
38
51
|
r === void 0 && (r = n);
|
|
39
52
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
@@ -48,10 +61,10 @@ var d = /* @__PURE__ */ t(((e) => {
|
|
|
48
61
|
})), n = e && e.__exportStar || function(e, n) {
|
|
49
62
|
for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
|
|
50
63
|
};
|
|
51
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), n(
|
|
52
|
-
})),
|
|
64
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), n(x(), e);
|
|
65
|
+
})), C = /* @__PURE__ */ t(((e) => {
|
|
53
66
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
54
|
-
})),
|
|
67
|
+
})), w = /* @__PURE__ */ t(((e) => {
|
|
55
68
|
var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
56
69
|
r === void 0 && (r = n);
|
|
57
70
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
@@ -66,14 +79,10 @@ var d = /* @__PURE__ */ t(((e) => {
|
|
|
66
79
|
})), n = e && e.__exportStar || function(e, n) {
|
|
67
80
|
for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
|
|
68
81
|
};
|
|
69
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.CopilotCustomPromptDto =
|
|
70
|
-
|
|
71
|
-
(function(e) {
|
|
72
|
-
e.STRING = "string", e.INT = "int", e.REAL = "real", e.FLOAT = "float", e.DATE = "date", e.BOOLEAN = "boolean", e.DECIMAL = "decimal", e.JSON = "json", e.TIME = "time", e.TIME_TZ = "time_tz", e.TIMESTAMP = "timestamp", e.TIMESTAMP_TZ = "timestamp_tz", e.MILLISEC = "millisec";
|
|
73
|
-
})(r || (e.FieldType = r = {})), e.CopilotCustomPromptDto = class {};
|
|
74
|
-
})), v = /* @__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) => {
|
|
75
84
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.SELF_SERVICE_ANALYSIS_MAX_QUERY_LIMIT = void 0, e.SELF_SERVICE_ANALYSIS_MAX_QUERY_LIMIT = 1e5;
|
|
76
|
-
})),
|
|
85
|
+
})), E = /* @__PURE__ */ t(((e) => {
|
|
77
86
|
var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
78
87
|
r === void 0 && (r = n);
|
|
79
88
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
@@ -88,10 +97,10 @@ var d = /* @__PURE__ */ t(((e) => {
|
|
|
88
97
|
})), n = e && e.__exportStar || function(e, n) {
|
|
89
98
|
for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
|
|
90
99
|
};
|
|
91
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), n(
|
|
92
|
-
})),
|
|
100
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), n(w(), e), n(T(), e);
|
|
101
|
+
})), D = /* @__PURE__ */ t(((e) => {
|
|
93
102
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
94
|
-
})),
|
|
103
|
+
})), O = /* @__PURE__ */ t(((e) => {
|
|
95
104
|
var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
96
105
|
r === void 0 && (r = n);
|
|
97
106
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
@@ -106,14 +115,14 @@ var d = /* @__PURE__ */ t(((e) => {
|
|
|
106
115
|
})), n = e && e.__exportStar || function(e, n) {
|
|
107
116
|
for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
|
|
108
117
|
};
|
|
109
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), n(
|
|
110
|
-
})),
|
|
111
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.
|
|
112
|
-
})),
|
|
118
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), n(S(), e), n(E(), e), n(D(), e);
|
|
119
|
+
})), k = /* @__PURE__ */ t(((e) => {
|
|
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";
|
|
121
|
+
})), A = /* @__PURE__ */ t(((e) => {
|
|
113
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;
|
|
114
|
-
})),
|
|
123
|
+
})), j = /* @__PURE__ */ t(((e) => {
|
|
115
124
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getMinMaxTopPValues = e.getMinMaxTemperatureValues = e.getDefaultTopP = e.getDefaultTemperature = e.isPersistedConfigFlagEnabled = void 0;
|
|
116
|
-
var t =
|
|
125
|
+
var t = l(), n = A();
|
|
117
126
|
e.isPersistedConfigFlagEnabled = (e) => e === !0 || e === "true", e.getDefaultTemperature = (e) => {
|
|
118
127
|
switch (e) {
|
|
119
128
|
case t.AIProviderType.SnowflakeCortex: return n.SNOWFLAKE_CORTEX_DEFAULT_TEMPERATURE;
|
|
@@ -129,7 +138,7 @@ var d = /* @__PURE__ */ t(((e) => {
|
|
|
129
138
|
let r = e === t.AIProviderType.SnowflakeCortex ? n.SNOWFLAKE_CORTEX_TEMPERATURE_MAX_VALUE : n.TEMPERATURE_MAX_VALUE;
|
|
130
139
|
return [n.TEMPERATURE_MIN_VALUE, r];
|
|
131
140
|
}, e.getMinMaxTopPValues = () => [n.TOP_P_MIN_VALUE, n.TOP_P_MAX_VALUE];
|
|
132
|
-
})),
|
|
141
|
+
})), M = /* @__PURE__ */ t(((e) => {
|
|
133
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 }) => {
|
|
134
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, {
|
|
135
144
|
sourceRowCount: r.length,
|
|
@@ -161,6 +170,93 @@ var d = /* @__PURE__ */ t(((e) => {
|
|
|
161
170
|
let n = String(t ?? "").replace(/[\r\n,]+/g, " ").trim();
|
|
162
171
|
return n.length > e.MAX_CELL_CHARS_IN_AI_PROMPT ? `${n.slice(0, e.MAX_CELL_CHARS_IN_AI_PROMPT - 3)}...` : n;
|
|
163
172
|
}, e.getAiPromptTruncationMarker = (e) => `...truncated ${e} more rows`, e.getAiPromptUnknownTruncationMarker = () => "...additional rows omitted";
|
|
173
|
+
})), N = /* @__PURE__ */ t(((e) => {
|
|
174
|
+
var t = e && e.__rest || function(e, t) {
|
|
175
|
+
var n = {};
|
|
176
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
177
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
178
|
+
return n;
|
|
179
|
+
};
|
|
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;
|
|
181
|
+
var n = d();
|
|
182
|
+
e.ASTRATO_AI_INSIGHTS_FLAG = n.FeatureFlags.ASTRATO_AI_INSIGHTS, e.INSIGHTS_DESCRIBE_PATH = "/api/sle/insights/describe";
|
|
183
|
+
function r(e) {
|
|
184
|
+
let r = e ?? {}, { customPrompt: i, outputType: a } = r, o = t(r, ["customPrompt", "outputType"]);
|
|
185
|
+
return {
|
|
186
|
+
instructions: {
|
|
187
|
+
systemPrompt: i?.systemPrompt,
|
|
188
|
+
userPrompt: i?.userTask
|
|
189
|
+
},
|
|
190
|
+
options: o,
|
|
191
|
+
output: a === n.CopilotInsightsOutputType.HTML ? "html" : "text"
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
function i(e) {
|
|
195
|
+
return Object.assign(Object.assign({
|
|
196
|
+
purpose: "analysis",
|
|
197
|
+
providerId: e.providerId
|
|
198
|
+
}, r(e.options)), {
|
|
199
|
+
context: [...(e.queries ?? []).map((e) => ({
|
|
200
|
+
kind: "query",
|
|
201
|
+
query: e
|
|
202
|
+
})), ...(e.manualData ?? []).map((e) => ({
|
|
203
|
+
kind: "table",
|
|
204
|
+
table: e
|
|
205
|
+
}))],
|
|
206
|
+
execution: {
|
|
207
|
+
datasourceId: e.datasourceID,
|
|
208
|
+
queryTimeout: e.queryTimeout
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
function a(e) {
|
|
213
|
+
return Object.assign(Object.assign({
|
|
214
|
+
purpose: "analysis",
|
|
215
|
+
providerId: e.providerId
|
|
216
|
+
}, r(Object.assign(Object.assign({}, e.options), { tasks: [n.CopilotInsightsTask.Summarize] }))), { context: e.objects.flatMap((e) => {
|
|
217
|
+
let t = {
|
|
218
|
+
name: e.name,
|
|
219
|
+
visualizationType: e.type
|
|
220
|
+
};
|
|
221
|
+
return [...e.query ? [Object.assign(Object.assign({}, t), {
|
|
222
|
+
kind: "query",
|
|
223
|
+
query: e.query
|
|
224
|
+
})] : [], ...e.manualData ? [Object.assign(Object.assign({}, t), {
|
|
225
|
+
kind: "table",
|
|
226
|
+
table: e.manualData
|
|
227
|
+
})] : []];
|
|
228
|
+
}) });
|
|
229
|
+
}
|
|
230
|
+
function o(e) {
|
|
231
|
+
if (e.modelParams?.tools?.length || e.modelParams?.toolChoice) throw Error("Insights describe supports text responses; tool calling requires a separate API.");
|
|
232
|
+
return {
|
|
233
|
+
purpose: "completion",
|
|
234
|
+
providerId: e.providerId,
|
|
235
|
+
instructions: {
|
|
236
|
+
systemPrompt: e.systemPrompt,
|
|
237
|
+
userPrompt: e.userTask
|
|
238
|
+
},
|
|
239
|
+
context: [...e.payload ? [{
|
|
240
|
+
kind: "text",
|
|
241
|
+
text: e.payload
|
|
242
|
+
}] : [], ...(e.sqlStatements ?? []).map((e) => ({
|
|
243
|
+
kind: "sql",
|
|
244
|
+
statement: e
|
|
245
|
+
}))],
|
|
246
|
+
output: e.modelParams?.responseFormat === n.ModelResponseFormat.JSON ? "json" : "text",
|
|
247
|
+
generation: {
|
|
248
|
+
temperature: e.modelParams?.temperature,
|
|
249
|
+
topP: e.modelParams?.topP
|
|
250
|
+
},
|
|
251
|
+
execution: {
|
|
252
|
+
datasourceId: e.modelParams?.datasourceID,
|
|
253
|
+
queryTimeout: e.modelParams?.queryTimeout
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
function s(t) {
|
|
258
|
+
return `${t.replace(/(?:^|\/)api\/message\/?$/, "").replace(/\/$/, "")}${e.INSIGHTS_DESCRIBE_PATH}`;
|
|
259
|
+
}
|
|
164
260
|
}));
|
|
165
261
|
(/* @__PURE__ */ t(((e) => {
|
|
166
262
|
var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
@@ -177,25 +273,25 @@ var d = /* @__PURE__ */ t(((e) => {
|
|
|
177
273
|
})), n = e && e.__exportStar || function(e, n) {
|
|
178
274
|
for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
|
|
179
275
|
};
|
|
180
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), n(
|
|
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);
|
|
181
277
|
})))();
|
|
182
|
-
var
|
|
278
|
+
var P = f(), F = ({ id: e, ...t }, { vBackendAPI: n, objectId: r }) => {
|
|
183
279
|
let i = { eventId: e };
|
|
184
280
|
Object.keys(t).length > 0 && (i.payload = t);
|
|
185
281
|
let a = r || n.model.getObject()?.id;
|
|
186
|
-
n.daedalus.emitEvent(
|
|
282
|
+
n.daedalus.emitEvent(P.AstratoEvents.OBJECT_INTERACTION, i, a);
|
|
187
283
|
};
|
|
188
|
-
|
|
189
|
-
return
|
|
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", {
|
|
190
286
|
...e,
|
|
191
287
|
ref: t,
|
|
192
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"
|
|
193
289
|
});
|
|
194
|
-
}),
|
|
195
|
-
return
|
|
290
|
+
}), p.forwardRef(function(e, t) {
|
|
291
|
+
return p.createElement("img", {
|
|
196
292
|
...e,
|
|
197
293
|
ref: t,
|
|
198
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"
|
|
199
295
|
});
|
|
200
|
-
}),
|
|
201
|
-
export {
|
|
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 };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as l } from "./color-rules-
|
|
5
|
-
import { r as u } from "./color-settings-
|
|
6
|
-
import "./logger-
|
|
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 ===
|
|
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:
|
|
11
|
-
} : e?.type ===
|
|
10
|
+
scale: s.Categorical
|
|
11
|
+
} : e?.type === s.Gradient ? {
|
|
12
12
|
ref: n || void 0,
|
|
13
|
-
scale:
|
|
14
|
-
} : m(t), m = (e, t) => t ?? e.colors.brandColors[0], h = (e, t, n, i, a
|
|
15
|
-
let
|
|
16
|
-
if ((
|
|
17
|
-
if (
|
|
18
|
-
scale:
|
|
19
|
-
ref:
|
|
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) =>
|
|
22
|
-
if (typeof
|
|
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 ===
|
|
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
|
|
26
|
+
let r = null;
|
|
27
27
|
if (t?.pattern) {
|
|
28
|
-
let
|
|
29
|
-
let n =
|
|
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) =>
|
|
32
|
-
t.itemsMap?.[o] || (
|
|
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
|
|
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(
|
|
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) =>
|
|
66
|
-
if (
|
|
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 =
|
|
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) =>
|
|
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 (
|
|
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 (
|
|
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:
|
|
230
|
+
let { ref: n, dataItemId: r } = t;
|
|
231
231
|
switch (this.vSpec.coloring?.type) {
|
|
232
|
-
case
|
|
233
|
-
let t = e.resources.scale(
|
|
234
|
-
if (this.vSpec.coloring.persistentColors === !1) return t(
|
|
235
|
-
let
|
|
236
|
-
return
|
|
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
|
|
239
|
-
let t = e.resources.scale(
|
|
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
|
|
243
|
-
case
|
|
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
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function e(e) {
|
|
2
|
+
let t = e.activeElement;
|
|
3
|
+
for (; t?.shadowRoot?.activeElement != null;) t = t.shadowRoot.activeElement;
|
|
4
|
+
return t;
|
|
5
|
+
}
|
|
6
|
+
var t = e;
|
|
7
|
+
function n(e, t) {
|
|
8
|
+
if (!e || !t) return !1;
|
|
9
|
+
if (e.contains(t)) return !0;
|
|
10
|
+
let n = t.getRootNode?.();
|
|
11
|
+
if (n && n instanceof ShadowRoot) {
|
|
12
|
+
let n = t;
|
|
13
|
+
for (; n;) {
|
|
14
|
+
if (e === n) return !0;
|
|
15
|
+
n = n.parentNode ?? n.host ?? null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return !1;
|
|
19
|
+
}
|
|
20
|
+
var r = n;
|
|
21
|
+
export { e as i, n, t as r, r as t };
|