@luzmo/analytics-components-kit 1.3.0 → 1.4.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 +6 -3
- package/angular/components/add-to-dashboard.ts +20 -6
- package/angular/components/data-fields-select.ts +5 -0
- package/angular/components/interactive-viz-item.ts +87 -22
- package/angular/components/item-grid-item-actions-menu.ts +5 -0
- package/angular/components/item-grid.ts +7 -0
- package/angular/components/item-option-color-picker.ts +28 -28
- package/angular/components/item-option-guidelines.ts +22 -1
- package/angular/components/item-option-multi-language-field.ts +7 -7
- package/angular/components/item-option-number-field.ts +14 -14
- package/angular/components/item-option-positions-number-field.ts +14 -14
- package/angular/components/item-option-radio-button-group.ts +7 -7
- package/angular/components/item-option-text-field.ts +7 -7
- package/angular/components/item-slot-picker-panel.ts +1 -1
- package/angular/components/item-slot-picker.ts +7 -7
- package/angular/esm/components/add-to-dashboard.d.ts +8 -4
- package/angular/esm/components/add-to-dashboard.js +23 -7
- package/angular/esm/components/data-fields-select.d.ts +2 -0
- package/angular/esm/components/data-fields-select.js +4 -0
- package/angular/esm/components/interactive-viz-item.d.ts +30 -9
- package/angular/esm/components/interactive-viz-item.js +98 -27
- package/angular/esm/components/item-grid-item-actions-menu.d.ts +2 -0
- package/angular/esm/components/item-grid-item-actions-menu.js +4 -0
- package/angular/esm/components/item-grid.d.ts +3 -1
- package/angular/esm/components/item-grid.js +9 -1
- package/angular/esm/components/item-option-color-picker.d.ts +10 -10
- package/angular/esm/components/item-option-color-picker.js +34 -34
- package/angular/esm/components/item-option-guidelines.d.ts +8 -2
- package/angular/esm/components/item-option-guidelines.js +26 -2
- package/angular/esm/components/item-option-multi-language-field.d.ts +3 -3
- package/angular/esm/components/item-option-multi-language-field.js +10 -10
- package/angular/esm/components/item-option-number-field.d.ts +5 -5
- package/angular/esm/components/item-option-number-field.js +18 -18
- package/angular/esm/components/item-option-positions-number-field.d.ts +5 -5
- package/angular/esm/components/item-option-positions-number-field.js +18 -18
- package/angular/esm/components/item-option-radio-button-group.d.ts +3 -3
- package/angular/esm/components/item-option-radio-button-group.js +10 -10
- package/angular/esm/components/item-option-text-field.d.ts +3 -3
- package/angular/esm/components/item-option-text-field.js +10 -10
- package/angular/esm/components/item-slot-picker-panel.d.ts +1 -1
- package/angular/esm/components/item-slot-picker-panel.js +1 -1
- package/angular/esm/components/item-slot-picker.d.ts +3 -3
- package/angular/esm/components/item-slot-picker.js +9 -9
- package/angular/package.json +2 -2
- package/components/add-to-dashboard/dashboard-actions.d.ts +2 -1
- package/components/add-to-dashboard/index.cjs +1 -1
- package/components/add-to-dashboard/index.js +1 -1
- package/components/{add-to-dashboard-CzIuDtAq.cjs → add-to-dashboard-BtzTZdjN.cjs} +1 -1
- package/components/{add-to-dashboard-DGC0_hRB.js → add-to-dashboard-Bu6S3qVz.js} +125 -120
- package/components/chart-helpers-BHxQbLBw.cjs +20 -0
- package/components/{chart-helpers-Cbl3sRra.js → chart-helpers-BKeMLhov.js} +51 -38
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/{filters-CxIzuI5q.js → filters-DEpmh9Nj.js} +113 -102
- package/components/filters-LDXhe1Bp.cjs +187 -0
- package/components/index.cjs +1 -1
- package/components/index.js +6 -6
- package/components/interactive-viz-item/helpers/chart-helpers.d.ts +2 -1
- package/components/interactive-viz-item/index.cjs +1 -1
- package/components/interactive-viz-item/index.js +3 -3
- package/components/interactive-viz-item/interactive-viz-item.d.ts +44 -0
- package/components/{interactive-viz-item-BKLOmawA.js → interactive-viz-item-Cc3Ix95e.js} +151 -110
- package/components/interactive-viz-item-SF12d97t.cjs +269 -0
- package/components/item-grid/item-grid.d.ts +1 -0
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +1 -1
- package/components/item-slot-picker-panel/item-slot-picker-panel.d.ts +19 -1
- package/components/item-slot-picker-panel-Cw3UCK03.cjs +84 -0
- package/components/{item-slot-picker-panel-fJqEmxeD.js → item-slot-picker-panel-DprM9Rli.js} +64 -33
- package/custom-elements.json +3044 -2532
- package/grid-core/item-grid-base.d.ts +5 -4
- package/package.json +1 -1
- package/react/package.json +2 -2
- package/standalone/add-to-dashboard.js +1 -1
- package/standalone/chunks/{chart-helpers-CR-EUEPf.js → chart-helpers-DZsidiCl.js} +1 -1
- package/standalone/chunks/data-broker-DpSrH3IP.js +2 -0
- package/standalone/chunks/{display-settings-binning-BeLLxd3i.js → display-settings-binning-DhHlclWH.js} +1 -1
- package/standalone/chunks/{display-settings-datetime-BkeiKIVV.js → display-settings-datetime-C8xvOvi4.js} +1 -1
- package/standalone/chunks/{display-settings-grand-totals-BuhpQKJ6.js → display-settings-grand-totals-CUpigDcs.js} +1 -1
- package/standalone/chunks/{display-settings-numeric-m30IYI7I.js → display-settings-numeric-BLWF54Jx.js} +1 -1
- package/standalone/chunks/{display-settings-period-over-period-CqDlOSRn.js → display-settings-period-over-period-COd4tvUw.js} +1 -1
- package/standalone/chunks/en-DNsyAwgq.js +2 -0
- package/standalone/chunks/en-GB-Di3OzVdL.js +2 -0
- package/standalone/chunks/en-US-DNsyAwgq.js +2 -0
- package/standalone/chunks/{filters-CxgBXUF1.js → filters-lhg_WVDK.js} +72 -72
- package/standalone/chunks/{formula-codemirror-Cq94j3-f.js → formula-codemirror-DZMzLE2I.js} +1 -1
- package/standalone/chunks/{item-option-action-button-group-BoyqF9vt.js → item-option-action-button-group-Bl1HR1JK.js} +1 -1
- package/standalone/chunks/{item-option-base-CBcDT8MX.js → item-option-base-DF24wTyv.js} +1 -1
- package/standalone/chunks/{item-option-color-palette-picker-C9PGAv4V.js → item-option-color-palette-picker-MkIIn56p.js} +1 -1
- package/standalone/chunks/{item-option-color-picker-D4fVJlqF.js → item-option-color-picker-CxosMo_p.js} +1 -1
- package/standalone/chunks/{item-option-color-range-BlAdTguE.js → item-option-color-range-C7C70r4J.js} +1 -1
- package/standalone/chunks/{item-option-guidelines-DMsYsHDu.js → item-option-guidelines-iu8yWRzr.js} +1 -1
- package/standalone/chunks/{item-option-multi-language-field-NUbm1drg.js → item-option-multi-language-field-foanqCdr.js} +1 -1
- package/standalone/chunks/{item-option-number-field-DRp7kbHL.js → item-option-number-field-ByVD4oq0.js} +1 -1
- package/standalone/chunks/{item-option-panel-cXrRclzM.js → item-option-panel-Bya-K7HH.js} +2 -2
- package/standalone/chunks/{item-option-picker-Ba09L4Cs.js → item-option-picker-CqNNVIML.js} +1 -1
- package/standalone/chunks/{item-option-position-picker-GEGTnhjw.js → item-option-position-picker-BjCFVtDH.js} +1 -1
- package/standalone/chunks/{item-option-positions-number-field-n44s1k5v.js → item-option-positions-number-field-BJJtXZL-.js} +1 -1
- package/standalone/chunks/{item-option-radio-button-group-3s_b1NvR.js → item-option-radio-button-group-C5bxsD85.js} +1 -1
- package/standalone/chunks/{item-option-slider-DtY65Gxk.js → item-option-slider-DUXWz70B.js} +1 -1
- package/standalone/chunks/{item-option-switch-4sJaI0mx.js → item-option-switch-BHyJuOkP.js} +1 -1
- package/standalone/chunks/{item-option-text-field-Bt6Lj6kh.js → item-option-text-field-rBZY9OX4.js} +1 -1
- package/standalone/chunks/{item-slot-picker-panel-BOSVFBIy.js → item-slot-picker-panel-BM82vSXi.js} +74 -72
- package/standalone/chunks/load-data-fields-for-datasets-DS9O1oyy.js +25 -0
- package/standalone/chunks/localize-DLl7tgQp.js +2 -0
- package/standalone/interactive-viz-item.js +54 -53
- package/standalone/manifest.json +31 -31
- package/types.d.ts +1 -1
- package/components/chart-helpers-fMnqHRzC.cjs +0 -20
- package/components/filters-BPbPFOu5.cjs +0 -187
- package/components/interactive-viz-item-ojdH1uk0.cjs +0 -268
- package/components/item-slot-picker-panel-BhhN54IM.cjs +0 -82
- package/standalone/chunks/data-broker-DXDyIrj_.js +0 -2
- package/standalone/chunks/en-63f7j4v7.js +0 -2
- package/standalone/chunks/en-GB-QAmXQf8W.js +0 -2
- package/standalone/chunks/en-US-63f7j4v7.js +0 -2
- package/standalone/chunks/load-data-fields-for-datasets-CDlut-6S.js +0 -25
- package/standalone/chunks/localize-DXRmGRe-.js +0 -2
|
@@ -17,37 +17,38 @@
|
|
|
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 { a as e, s as t } from "./type-check-D6K_INvg.js";
|
|
20
21
|
// src/components/interactive-viz-item/types.ts
|
|
21
|
-
var
|
|
22
|
+
var n = /* @__PURE__ */ function(e) {
|
|
22
23
|
return e.Top = "top", e.Bottom = "bottom", e;
|
|
23
|
-
}({}),
|
|
24
|
+
}({}), r = /* @__PURE__ */ function(e) {
|
|
24
25
|
return e.Asc = "asc", e.Desc = "desc", e;
|
|
25
|
-
}({}),
|
|
26
|
+
}({}), i = /* @__PURE__ */ function(e) {
|
|
26
27
|
return e.Measure = "measure", e.Category = "category", e;
|
|
27
|
-
}({}),
|
|
28
|
-
function
|
|
28
|
+
}({}), a = 5, o = Array.isArray;
|
|
29
|
+
function s(e) {
|
|
29
30
|
return typeof e == "string";
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
let
|
|
33
|
-
return !
|
|
32
|
+
function c(e) {
|
|
33
|
+
let n = { ...e };
|
|
34
|
+
return !n.datasetId && n.set && (n.datasetId = n.set), !n.set && n.datasetId && (n.set = n.datasetId), !n.columnId && n.column && (n.columnId = n.column), !n.column && n.columnId && (n.column = n.columnId), !n.formulaId && n.formula && t(n.formula) && (n.formulaId = n.formula), !n.formula && n.formulaId && (n.formula = n.formulaId), n;
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
36
|
+
function l(e) {
|
|
37
|
+
return o(e) ? e : Object.entries(e).map(([e, t]) => ({
|
|
37
38
|
name: e,
|
|
38
|
-
content:
|
|
39
|
+
content: o(t) ? t : []
|
|
39
40
|
}));
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function u(e) {
|
|
42
43
|
let t = /* @__PURE__ */ new Set();
|
|
43
44
|
for (let n of e) for (let e of n.content) {
|
|
44
45
|
let n = e.datasetId ?? e.set;
|
|
45
|
-
|
|
46
|
+
s(n) && t.add(n);
|
|
46
47
|
}
|
|
47
48
|
return [...t];
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
let t =
|
|
50
|
+
function d(e) {
|
|
51
|
+
let t = l(e.slots ?? []), n = e.options ?? {}, r = n.interactivity;
|
|
51
52
|
return {
|
|
52
53
|
type: e.type,
|
|
53
54
|
options: {
|
|
@@ -59,13 +60,25 @@ function l(e) {
|
|
|
59
60
|
},
|
|
60
61
|
slots: t.map((e) => ({
|
|
61
62
|
...e,
|
|
62
|
-
content:
|
|
63
|
+
content: o(e.content) ? e.content.map((e) => c(e)) : []
|
|
63
64
|
})),
|
|
64
65
|
filters: e.filters,
|
|
65
66
|
inlineData: e.inlineData
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function f(t, n) {
|
|
70
|
+
if (!n) return t;
|
|
71
|
+
let r = { ...t };
|
|
72
|
+
for (let [t, i] of Object.entries(n)) {
|
|
73
|
+
let n = r[t];
|
|
74
|
+
r[t] = e(n) && e(i) ? {
|
|
75
|
+
...n,
|
|
76
|
+
...i
|
|
77
|
+
} : i;
|
|
78
|
+
}
|
|
79
|
+
return r;
|
|
80
|
+
}
|
|
81
|
+
function p(e, t) {
|
|
69
82
|
return {
|
|
70
83
|
...e,
|
|
71
84
|
options: {
|
|
@@ -77,33 +90,33 @@ function u(e, t) {
|
|
|
77
90
|
}
|
|
78
91
|
};
|
|
79
92
|
}
|
|
80
|
-
function
|
|
93
|
+
function m(e) {
|
|
81
94
|
let t = e.find((e) => e.name === "measure" || e.name === "measures");
|
|
82
95
|
if (t && t.content.length > 1) return !0;
|
|
83
96
|
let n = e.find((e) => e.name === "legend");
|
|
84
97
|
return n ? n.content.length > 0 : !1;
|
|
85
98
|
}
|
|
86
|
-
function
|
|
87
|
-
let
|
|
88
|
-
switch (
|
|
99
|
+
function h(e) {
|
|
100
|
+
let t = [], a = e.options;
|
|
101
|
+
switch (e.type) {
|
|
89
102
|
case "area-chart":
|
|
90
103
|
case "bar-chart":
|
|
91
104
|
case "column-chart":
|
|
92
|
-
if (
|
|
105
|
+
if (e.inlineData || t.push({
|
|
93
106
|
type: "rankingPicker",
|
|
94
107
|
mutationType: "rankAndSort",
|
|
95
108
|
ranking: a.ranking ?? {
|
|
96
109
|
active: !1,
|
|
97
110
|
number: 5,
|
|
98
|
-
direction:
|
|
111
|
+
direction: n.Top
|
|
99
112
|
},
|
|
100
113
|
sort: a.sort ?? {
|
|
101
|
-
direction:
|
|
102
|
-
by:
|
|
114
|
+
direction: r.Desc,
|
|
115
|
+
by: i.Measure
|
|
103
116
|
},
|
|
104
117
|
importance: 100
|
|
105
|
-
}),
|
|
106
|
-
let
|
|
118
|
+
}), m(e.slots)) {
|
|
119
|
+
let n = e.type === "area-chart", r = n ? [
|
|
107
120
|
{
|
|
108
121
|
key: "stacked",
|
|
109
122
|
label: "Stacked"
|
|
@@ -133,19 +146,19 @@ function f(r) {
|
|
|
133
146
|
key: "100",
|
|
134
147
|
label: "100%"
|
|
135
148
|
}
|
|
136
|
-
],
|
|
137
|
-
|
|
149
|
+
], i = n ? "stacked" : "grouped";
|
|
150
|
+
t.push({
|
|
138
151
|
type: "optionDropdown",
|
|
139
152
|
mutationType: "mode",
|
|
140
|
-
values:
|
|
141
|
-
currentValue: a.mode ??
|
|
153
|
+
values: r,
|
|
154
|
+
currentValue: a.mode ?? i,
|
|
142
155
|
importance: 90
|
|
143
156
|
});
|
|
144
157
|
}
|
|
145
158
|
break;
|
|
146
159
|
case "donut-chart": {
|
|
147
160
|
let e = a.display ?? {};
|
|
148
|
-
|
|
161
|
+
t.push({
|
|
149
162
|
type: "optionDropdown",
|
|
150
163
|
mutationType: "donutLabelDisplay",
|
|
151
164
|
values: [{
|
|
@@ -162,7 +175,7 @@ function f(r) {
|
|
|
162
175
|
}
|
|
163
176
|
case "bubble-chart": {
|
|
164
177
|
let e = a.display ?? {};
|
|
165
|
-
|
|
178
|
+
t.push({
|
|
166
179
|
type: "optionDropdown",
|
|
167
180
|
mutationType: "bubbleValues",
|
|
168
181
|
values: [
|
|
@@ -185,9 +198,9 @@ function f(r) {
|
|
|
185
198
|
break;
|
|
186
199
|
}
|
|
187
200
|
}
|
|
188
|
-
return
|
|
201
|
+
return t.sort((e, t) => t.importance - e.importance);
|
|
189
202
|
}
|
|
190
|
-
function
|
|
203
|
+
function g(e, t, n) {
|
|
191
204
|
let r = e.options;
|
|
192
205
|
switch (t) {
|
|
193
206
|
case "mode": return {
|
|
@@ -220,7 +233,7 @@ function p(e, t, n) {
|
|
|
220
233
|
default: return e;
|
|
221
234
|
}
|
|
222
235
|
}
|
|
223
|
-
function
|
|
236
|
+
function _(e, t) {
|
|
224
237
|
switch (t.type) {
|
|
225
238
|
case "slots": return {
|
|
226
239
|
...e,
|
|
@@ -234,7 +247,7 @@ function m(e, t) {
|
|
|
234
247
|
...e,
|
|
235
248
|
filters: t.filters
|
|
236
249
|
};
|
|
237
|
-
case "chartAction": return
|
|
250
|
+
case "chartAction": return g(e, t.actionType, t.key);
|
|
238
251
|
case "rankAndSort": return {
|
|
239
252
|
...e,
|
|
240
253
|
options: {
|
|
@@ -247,4 +260,4 @@ function m(e, t) {
|
|
|
247
260
|
default: return e;
|
|
248
261
|
}
|
|
249
262
|
}
|
|
250
|
-
export {
|
|
263
|
+
export { f as a, a as c, r as d, u as i, n as l, h as n, p as o, l as r, d as s, _ as t, i as u };
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../filters-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../filters-LDXhe1Bp.cjs");exports.FilterUnrepresentableError=e.a,Object.defineProperty(exports,"LuzmoFilters",{enumerable:!0,get:function(){return e.t}}),exports.MAX_FILTER_NESTING_DEPTH=e.o,exports.detectFiltersFormat=e.s,exports.reverseTransformFilters=e.n,exports.toLogicalCondition=e.r,exports.transformFilters=e.i;
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
export { a as FilterUnrepresentableError, t as LuzmoFilters, o as MAX_FILTER_NESTING_DEPTH, s as detectFiltersFormat, n as reverseTransformFilters, r as toLogicalCondition, i as transformFilters } from "../filters-
|
|
20
|
+
export { a as FilterUnrepresentableError, t as LuzmoFilters, o as MAX_FILTER_NESTING_DEPTH, s as detectFiltersFormat, n as reverseTransformFilters, r as toLogicalCondition, i as transformFilters } from "../filters-DEpmh9Nj.js";
|