@luzmo/analytics-components-kit 1.0.1-alpha.87 → 1.0.1-alpha.90
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/angular/components/display-settings-binning.component.ts +2 -2
- package/angular/components/display-settings-datetime.component.ts +2 -2
- package/angular/components/display-settings-grand-totals.component.ts +2 -2
- package/angular/components/display-settings-numeric.component.ts +2 -2
- package/angular/components/display-settings.component.ts +3 -3
- package/angular/components/draggable-data-item/index.ts +1 -0
- package/angular/components/draggable-data-item/types.ts +42 -0
- package/angular/components/draggable-data-item-level/index.ts +1 -0
- package/angular/components/draggable-data-item-level/types.ts +15 -0
- package/angular/components/draggable-data-item-level.component.ts +4 -10
- package/angular/components/draggable-data-item.component.ts +4 -10
- package/angular/components/droppable-slot/index.ts +1 -0
- package/angular/components/droppable-slot/types.ts +16 -0
- package/angular/components/droppable-slot.component.ts +5 -3
- package/angular/components/slot-menu/index.ts +1 -0
- package/angular/components/slot-menu/types.ts +31 -0
- package/angular/components/slot-menu-list.component.ts +2 -2
- package/angular/components/slot-menu.component.ts +3 -3
- package/angular/esm/components/display-settings-binning.component.d.ts +2 -1
- package/angular/esm/components/display-settings-datetime.component.d.ts +2 -2
- package/angular/esm/components/display-settings-grand-totals.component.d.ts +2 -1
- package/angular/esm/components/display-settings-numeric.component.d.ts +2 -1
- package/angular/esm/components/display-settings.component.d.ts +3 -3
- package/angular/esm/components/draggable-data-item/index.d.ts +1 -0
- package/angular/esm/components/draggable-data-item/index.js +1 -0
- package/angular/esm/components/draggable-data-item/types.d.ts +21 -0
- package/angular/esm/components/draggable-data-item/types.js +1 -0
- package/angular/esm/components/draggable-data-item-level/index.d.ts +1 -0
- package/angular/esm/components/draggable-data-item-level/index.js +1 -0
- package/angular/esm/components/draggable-data-item-level/types.d.ts +12 -0
- package/angular/esm/components/draggable-data-item-level/types.js +1 -0
- package/angular/esm/components/draggable-data-item-level.component.d.ts +9 -7
- package/angular/esm/components/draggable-data-item-level.component.js +2 -17
- package/angular/esm/components/draggable-data-item.component.d.ts +9 -7
- package/angular/esm/components/draggable-data-item.component.js +2 -17
- package/angular/esm/components/droppable-slot/index.d.ts +1 -0
- package/angular/esm/components/droppable-slot/index.js +1 -0
- package/angular/esm/components/droppable-slot/types.d.ts +9 -0
- package/angular/esm/components/droppable-slot/types.js +1 -0
- package/angular/esm/components/droppable-slot.component.d.ts +5 -4
- package/angular/esm/components/droppable-slot.component.js +7 -2
- package/angular/esm/components/slot-menu/index.d.ts +1 -0
- package/angular/esm/components/slot-menu/index.js +1 -0
- package/angular/esm/components/slot-menu/types.d.ts +25 -0
- package/angular/esm/components/slot-menu/types.js +1 -0
- package/angular/esm/components/slot-menu-list.component.d.ts +2 -1
- package/angular/esm/components/slot-menu.component.d.ts +3 -3
- package/angular/esm/types.d.ts +9 -3
- package/angular/tsconfig.json +3 -0
- package/angular/types.ts +24 -3
- package/angular/utils/base/base.d.ts +16 -0
- package/angular/utils/base/focus-visible.d.ts +29 -0
- package/angular/utils/base/focusable.d.ts +58 -0
- package/angular/utils/base/index.d.ts +4 -0
- package/angular/utils/base/sized-mixin.d.ts +17 -0
- package/angular/utils/color/color-palettes.d.ts +17 -0
- package/angular/utils/color/extrapolate-color.d.ts +1 -0
- package/angular/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
- package/angular/utils/data-broker/index.d.ts +191 -0
- package/angular/utils/data-item-types/calculate-data-item-icon.d.ts +10 -0
- package/angular/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
- package/angular/utils/drag/draggable.d.ts +13 -0
- package/angular/utils/filters/expressions.d.ts +15 -0
- package/angular/utils/filters/index.d.ts +1 -0
- package/angular/utils/formatter/calculate-duration.d.ts +2 -0
- package/angular/utils/formatter/decompose-numeric-format.d.ts +11 -0
- package/angular/utils/formatter/default-local-formats.d.ts +20 -0
- package/angular/utils/formatter/formats/cs.d.ts +20 -0
- package/angular/utils/formatter/formats/da.d.ts +20 -0
- package/angular/utils/formatter/formats/de.d.ts +21 -0
- package/angular/utils/formatter/formats/en-GB.d.ts +21 -0
- package/angular/utils/formatter/formats/en-US.d.ts +1 -0
- package/angular/utils/formatter/formats/en.d.ts +1 -0
- package/angular/utils/formatter/formats/es.d.ts +54 -0
- package/angular/utils/formatter/formats/fi.d.ts +20 -0
- package/angular/utils/formatter/formats/fr.d.ts +54 -0
- package/angular/utils/formatter/formats/he.d.ts +20 -0
- package/angular/utils/formatter/formats/hu.d.ts +20 -0
- package/angular/utils/formatter/formats/it.d.ts +54 -0
- package/angular/utils/formatter/formats/ja.d.ts +20 -0
- package/angular/utils/formatter/formats/ko.d.ts +20 -0
- package/angular/utils/formatter/formats/mk.d.ts +20 -0
- package/angular/utils/formatter/formats/nl.d.ts +21 -0
- package/angular/utils/formatter/formats/no.d.ts +21 -0
- package/angular/utils/formatter/formats/pl.d.ts +20 -0
- package/angular/utils/formatter/formats/pt.d.ts +20 -0
- package/angular/utils/formatter/formats/ru.d.ts +20 -0
- package/angular/utils/formatter/formats/sv.d.ts +20 -0
- package/angular/utils/formatter/formats/tr.d.ts +21 -0
- package/angular/utils/formatter/formats/zh-CN.d.ts +20 -0
- package/angular/utils/formatter/formats/zh-TW.d.ts +20 -0
- package/angular/utils/formatter/formatter.d.ts +9 -0
- package/angular/utils/formatter/localize.d.ts +3 -0
- package/angular/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
- package/angular/utils/get-css-variable.d.ts +1 -0
- package/angular/utils/index.d.ts +7 -0
- package/angular/utils/localize/set-locale.d.ts +7 -0
- package/angular/utils/map-tile-providers/index.d.ts +93 -0
- package/angular/utils/store/slot-context.d.ts +4 -0
- package/angular/utils/store/slot-store.d.ts +39 -0
- package/angular/utils/switch-item/index.d.ts +14 -0
- package/angular/utils/themes/bliss.d.ts +43 -0
- package/angular/utils/themes/classic-dark.d.ts +34 -0
- package/angular/utils/themes/classic.d.ts +43 -0
- package/angular/utils/themes/default-dark.d.ts +46 -0
- package/angular/utils/themes/default.d.ts +46 -0
- package/angular/utils/themes/index.d.ts +3 -0
- package/angular/utils/themes/orion.d.ts +44 -0
- package/angular/utils/themes/pinky.d.ts +42 -0
- package/angular/utils/themes/radiant.d.ts +42 -0
- package/angular/utils/themes/royale.d.ts +36 -0
- package/angular/utils/themes/seasonal.d.ts +43 -0
- package/angular/utils/themes/urban.d.ts +44 -0
- package/angular/utils/themes/vivid.d.ts +42 -0
- package/angular/utils/time/formats.const.d.ts +4 -0
- package/angular/utils/time/periods.const.d.ts +15 -0
- package/angular/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
- package/angular/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
- package/angular/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
- package/angular/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
- package/angular/utils/types/type-check.d.ts +7 -0
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +0 -1
- package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
- package/components/{calculate-data-item-icon-CX4VW9Km.cjs → calculate-data-item-icon-DtVGbet3.cjs} +1 -1
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +1 -1
- package/components/display-settings/display-settings.d.ts +4 -2
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/display-settings-binning.d.ts +2 -1
- package/components/display-settings-datetime/display-settings-datetime.d.ts +2 -1
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +4 -4
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +2 -1
- package/components/display-settings-numeric/display-settings-numeric.d.ts +2 -1
- package/components/display-settings-numeric/index.cjs +10 -10
- package/components/display-settings-numeric/index.js +5 -5
- package/components/draggable-data-item/draggable-data-item.d.ts +5 -7
- package/components/draggable-data-item/index.cjs +14 -22
- package/components/draggable-data-item/index.d.ts +1 -0
- package/components/draggable-data-item/index.js +80 -88
- package/components/draggable-data-item/types.d.ts +21 -0
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +4 -6
- package/components/draggable-data-item-level/helpers/generate-preview.d.ts +9 -1
- package/components/draggable-data-item-level/index.cjs +13 -13
- package/components/draggable-data-item-level/index.js +84 -102
- package/components/draggable-data-item-level/types.d.ts +12 -0
- package/components/droppable-slot/droppable-slot.d.ts +4 -2
- package/components/droppable-slot/index.cjs +13 -13
- package/components/droppable-slot/index.d.ts +1 -0
- package/components/droppable-slot/index.js +198 -199
- package/components/droppable-slot/types.d.ts +9 -0
- package/components/{en-CtCctD2c.js → en-D3ihEGXg.js} +67 -67
- package/components/{en--a5SfjnM.cjs → en-DZcn_iz_.cjs} +1 -1
- package/components/{en-GB-CXVKFWyH.cjs → en-GB-TqvgIw9B.cjs} +1 -1
- package/components/{en-GB-CbNfyZMo.js → en-GB-ialeqj_z.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +1 -1
- package/components/filter-data-item-picker/index.js +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +8 -8
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -1
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +1 -1
- package/components/{get-css-variable-CuDaWSjr.cjs → get-css-variable-COd1d84B.cjs} +3 -3
- package/components/{get-css-variable-DEf4GhTH.js → get-css-variable-CdwF98oh.js} +31 -31
- package/components/grid/index.cjs +1 -7
- package/components/grid/index.js +0 -7
- package/components/{index-BUal0r_D.cjs → index-BekTY3Em.cjs} +1 -1
- package/components/index-CFL6gmIu.cjs +20 -0
- package/components/{index-3WsfvkZF.js → index-CqKpf0B8.js} +1 -1
- package/components/{index-BGb_wRRW.js → index-DNPULp4A.js} +177 -188
- package/components/index.cjs +1 -1
- package/components/index.js +26 -24
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +2 -2
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.d.ts +1 -0
- package/components/slot-menu/index.js +64 -69
- package/components/slot-menu/slot-menu.d.ts +7 -6
- package/components/slot-menu/types.d.ts +25 -0
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +2 -2
- package/components/slot-menu-list/slot-menu-list.d.ts +2 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +129 -62
- package/custom-elements.json +123 -126
- package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +1 -1
- package/package.json +1 -1
- package/types.d.ts +9 -3
- package/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
- package/utils/data-broker/index.d.ts +69 -66
- package/utils/data-item-types/calculate-data-item-icon.d.ts +8 -2
- package/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
- package/utils/index.d.ts +2 -0
- package/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
- package/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
- package/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
- package/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
- package/components/calculate-data-item-icon-C8CbsMQf.js +0 -139
- package/components/index-D1Y5TRsH.cjs +0 -20
- package/utils/types/column.types.d.ts +0 -57
package/components/utils.js
CHANGED
|
@@ -17,78 +17,145 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { d as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
import { d as h } from "./index-DNPULp4A.js";
|
|
21
|
+
import { d as F } from "./decompose-numeric-format-BuZcjH2k.js";
|
|
22
|
+
import { f as H } from "./en-D3ihEGXg.js";
|
|
23
|
+
import { l as q } from "./localize-CcDpq940.js";
|
|
24
|
+
import { s as m } from "./index-V1XCZI4y.js";
|
|
25
|
+
import { g as j, s as K } from "./index-CgnTl6Sc.js";
|
|
26
|
+
const f = (r) => !!(r && Object.keys(r).length > 0), I = (r, e, i = {}) => {
|
|
27
|
+
if (e.hidden === !0 && !i.includeHidden || !e.id || !e.type)
|
|
28
|
+
return null;
|
|
29
|
+
const s = f(e.name) ? e.name : { en: "Untitled" }, n = {
|
|
30
|
+
datasetId: r,
|
|
31
|
+
columnId: e.id,
|
|
32
|
+
type: e.type,
|
|
33
|
+
name: s
|
|
34
|
+
};
|
|
35
|
+
return e.description && f(e.description) && (n.description = e.description), e.subtype && (n.subtype = e.subtype), e.format && (n.format = e.format), typeof e.lowestLevel == "number" && (n.lowestLevel = e.lowestLevel), e.expression && (n.expression = e.expression), Array.isArray(e.duration_levels) && e.duration_levels.length > 0 && (n.duration_levels = [...e.duration_levels]), e.duration_format && (n.duration_format = e.duration_format), Array.isArray(e.hierarchyLevels) && e.hierarchyLevels.length > 0 && (n.hierarchyLevels = e.hierarchyLevels.map(({ id: c, level: a, name: l }) => ({ id: c, level: a, name: l }))), e.currency?.id && e.currency.symbol && (n.currency = {
|
|
36
|
+
id: e.currency.id,
|
|
37
|
+
name: e.currency.name,
|
|
38
|
+
symbol: e.currency.symbol
|
|
39
|
+
}), n;
|
|
40
|
+
}, C = (r, e, i = {}) => {
|
|
41
|
+
if (e.hidden === !0 && !i.includeHidden || !e.id || !e.type)
|
|
42
|
+
return null;
|
|
43
|
+
const s = f(e.name) ? e.name : { en: "Untitled" }, n = {
|
|
44
|
+
datasetId: r,
|
|
45
|
+
formulaId: e.id,
|
|
46
|
+
type: e.type,
|
|
47
|
+
name: s
|
|
48
|
+
};
|
|
49
|
+
return e.description && f(e.description) && (n.description = e.description), e.subtype && (n.subtype = e.subtype), e.format && (n.format = e.format), typeof e.lowestLevel == "number" && (n.lowestLevel = e.lowestLevel), e.expression && (n.expression = e.expression), Array.isArray(e.duration_levels) && e.duration_levels.length > 0 && (n.duration_levels = [...e.duration_levels]), e.duration_format && (n.duration_format = e.duration_format), e.currency?.id && e.currency.symbol && (n.currency = {
|
|
50
|
+
id: e.currency.id,
|
|
51
|
+
name: e.currency.name,
|
|
52
|
+
symbol: e.currency.symbol
|
|
53
|
+
}), n;
|
|
54
|
+
}, D = (r, e = {}) => {
|
|
55
|
+
if (!r?.id)
|
|
56
|
+
return [];
|
|
57
|
+
const i = [];
|
|
58
|
+
return Array.isArray(r.columns) && r.columns.forEach((d) => {
|
|
59
|
+
const s = I(r.id, d, e);
|
|
60
|
+
s && i.push(s);
|
|
61
|
+
}), Array.isArray(r.formulas) && r.formulas.forEach((d) => {
|
|
62
|
+
const s = C(r.id, d, e);
|
|
63
|
+
s && i.push(s);
|
|
64
|
+
}), i;
|
|
65
|
+
}, k = (r, e = {}) => r.map((i) => ({
|
|
66
|
+
id: i.id,
|
|
67
|
+
name: i.name,
|
|
68
|
+
description: i.description,
|
|
69
|
+
dataItems: D(i, e)
|
|
70
|
+
})), _ = async (r, e) => {
|
|
71
|
+
if (!Array.isArray(r) || r.length === 0)
|
|
72
|
+
throw new Error("At least one dataset ID is required");
|
|
73
|
+
const { dataBrokerConfig: i } = e;
|
|
74
|
+
if (!i)
|
|
75
|
+
throw new Error("dataBrokerConfig is required");
|
|
76
|
+
if (!i.authKey || !i.authToken)
|
|
77
|
+
throw new Error("Both authKey and authToken are required for DataBroker configuration");
|
|
78
|
+
if (!i.apiUrl)
|
|
79
|
+
throw new Error("apiUrl is required for DataBroker configuration");
|
|
80
|
+
if (typeof i.apiUrl != "string")
|
|
81
|
+
throw new TypeError("apiUrl must be a valid string");
|
|
82
|
+
h.configure(i);
|
|
83
|
+
try {
|
|
84
|
+
const d = await h.fetchDatasetsWithColumnsAndFormulas(r);
|
|
85
|
+
return k(d);
|
|
86
|
+
} catch (d) {
|
|
87
|
+
throw d instanceof Error && d.message.includes("Authentication failed") ? new Error("Failed to load datasets: Authentication failed. Please verify your API credentials are correct.") : d;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
function M(r) {
|
|
91
|
+
const e = [], i = [];
|
|
92
|
+
Object.keys(m).forEach((t) => {
|
|
28
93
|
t.replace("SlotsConfig", "");
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
type:
|
|
32
|
-
slotsConfig:
|
|
94
|
+
const o = t.replace("SlotsConfig", "").replaceAll(/([A-Z])/g, "-$1").toLowerCase();
|
|
95
|
+
i.push({
|
|
96
|
+
type: o,
|
|
97
|
+
slotsConfig: m[t]
|
|
33
98
|
});
|
|
34
99
|
});
|
|
35
|
-
const
|
|
36
|
-
(t) => t.type ===
|
|
37
|
-
),
|
|
38
|
-
(t) => t.type ===
|
|
39
|
-
),
|
|
40
|
-
if (!
|
|
100
|
+
const d = i.find(
|
|
101
|
+
(t) => t.type === r?.oldItemType
|
|
102
|
+
), s = i.find(
|
|
103
|
+
(t) => t.type === r?.newItemType
|
|
104
|
+
), n = structuredClone(s?.slotsConfig ?? []);
|
|
105
|
+
if (!s)
|
|
41
106
|
return {
|
|
42
|
-
type:
|
|
43
|
-
slots:
|
|
107
|
+
type: d?.type ?? "bar-chart",
|
|
108
|
+
slots: r.slots ?? []
|
|
44
109
|
};
|
|
45
|
-
const
|
|
46
|
-
for (const t of
|
|
47
|
-
const
|
|
48
|
-
(
|
|
110
|
+
const c = structuredClone(r.slots ?? []);
|
|
111
|
+
for (const t of c) {
|
|
112
|
+
const o = d?.slotsConfig.find(
|
|
113
|
+
(v) => v.name === t.name
|
|
49
114
|
);
|
|
50
|
-
t.type =
|
|
115
|
+
t.type = o?.type ?? t?.type;
|
|
51
116
|
}
|
|
52
|
-
const
|
|
53
|
-
for (const t of
|
|
54
|
-
for (const
|
|
55
|
-
|
|
56
|
-
for (const t of
|
|
57
|
-
for (const
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
(t,
|
|
117
|
+
const a = c.filter((t) => t.type === "mixed").sort((t, o) => t.order - o.order), l = n.filter((t) => t.type === "mixed").sort((t, o) => t.order - o.order), g = c.filter((t) => t.type === "numeric").sort((t, o) => t.order - o.order), w = n.filter((t) => t.type === "numeric").sort((t, o) => t.order - o.order), p = [];
|
|
118
|
+
for (const t of g)
|
|
119
|
+
for (const o of t.content)
|
|
120
|
+
o.key = "old-measure-" + t?.name + "-" + t.content.indexOf(o), p.push(o);
|
|
121
|
+
for (const t of a)
|
|
122
|
+
for (const o of t.content)
|
|
123
|
+
o.type === "numeric" && (o.key = "old-mixed-" + t?.name + "-" + t.content.indexOf(o), p.push(o));
|
|
124
|
+
const x = [...w, ...l].sort(
|
|
125
|
+
(t, o) => n.indexOf(t) - n.indexOf(o)
|
|
61
126
|
);
|
|
62
|
-
for (const t of
|
|
63
|
-
for (const
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
for (const t of
|
|
67
|
-
for (const
|
|
68
|
-
|
|
69
|
-
for (const t of
|
|
70
|
-
for (const
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
...
|
|
74
|
-
...
|
|
75
|
-
].sort((t,
|
|
76
|
-
for (const t of
|
|
77
|
-
if (!
|
|
78
|
-
for (const
|
|
79
|
-
|
|
80
|
-
let
|
|
81
|
-
return
|
|
82
|
-
type:
|
|
83
|
-
slots:
|
|
84
|
-
options:
|
|
127
|
+
for (const t of p)
|
|
128
|
+
for (const o of x)
|
|
129
|
+
e.includes(t.key) || (o.content = o?.content ?? [], (o?.content?.length === 0 || o?.content?.length > 0 && o?.canAcceptMultipleDataItems === !0) && (o.content.push(t), e.push(t.key)));
|
|
130
|
+
const b = c.filter((t) => t.type === "categorical").sort((t, o) => t.order - o.order), A = n.filter((t) => t.type === "categorical").sort((t, o) => t.order - o.order), y = [];
|
|
131
|
+
for (const t of b)
|
|
132
|
+
for (const o of t.content)
|
|
133
|
+
o.key = "old-dimension-" + t?.name + "-" + t.content.indexOf(o), y.push(o);
|
|
134
|
+
for (const t of a)
|
|
135
|
+
for (const o of t.content)
|
|
136
|
+
o.type !== "numeric" && (o.key = "old-mixed-" + t?.name + "-" + t.content.indexOf(o), y.push(o));
|
|
137
|
+
const S = [
|
|
138
|
+
...A,
|
|
139
|
+
...l
|
|
140
|
+
].sort((t, o) => n.indexOf(t) - n.indexOf(o));
|
|
141
|
+
for (const t of y)
|
|
142
|
+
if (!e.includes(t.key))
|
|
143
|
+
for (const o of S)
|
|
144
|
+
o && !e.includes(t.key) && (o.content = o?.content ?? [], (o?.content?.length === 0 || o?.content?.length > 0 && o?.canAcceptMultipleDataItems === !0) && (o.content.push(t), e.push(t.key)));
|
|
145
|
+
let u = { ...r.options };
|
|
146
|
+
return s.setInitialOptions && (u = s?.setInitialOptions({ ...u })), {
|
|
147
|
+
type: s.type ?? "bar-chart",
|
|
148
|
+
slots: n.map((t) => ({ name: t.name, content: t.content ?? [] })) ?? [],
|
|
149
|
+
options: u ?? { ...r.options }
|
|
85
150
|
};
|
|
86
151
|
}
|
|
87
152
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
153
|
+
k as convertDatasetsToDraggableItems,
|
|
154
|
+
F as decomposeNumericFormat,
|
|
155
|
+
H as formatter,
|
|
90
156
|
j as getTheme,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
157
|
+
_ as loadDraggableItemsForDatasets,
|
|
158
|
+
q as localize,
|
|
159
|
+
M as switchItem,
|
|
160
|
+
K as systemThemeIds
|
|
94
161
|
};
|