@luzmo/analytics-components-kit 1.2.1 → 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 +8 -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 +89 -24
- 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 +32 -11
- package/angular/esm/components/interactive-viz-item.js +99 -28
- 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-NwsCPIlg.cjs → add-to-dashboard-BtzTZdjN.cjs} +1 -1
- package/components/{add-to-dashboard-NcVHlqrc.js → add-to-dashboard-Bu6S3qVz.js} +125 -120
- package/components/chart-helpers-BHxQbLBw.cjs +20 -0
- package/components/{chart-helpers-Dng_LGfq.js → chart-helpers-BKeMLhov.js} +53 -39
- 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.d.ts +1 -1
- package/components/interactive-viz-item/index.js +3 -3
- package/components/interactive-viz-item/interactive-viz-item.d.ts +47 -1
- package/components/interactive-viz-item/types.d.ts +4 -0
- package/components/interactive-viz-item-Cc3Ix95e.js +630 -0
- 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 +3051 -2531
- package/grid-core/item-grid-base.d.ts +5 -4
- package/package.json +2 -2
- package/react/package.json +2 -2
- package/standalone/add-to-dashboard.js +40 -40
- package/standalone/chunks/{chart-helpers-DsIGsaDc.js → chart-helpers-DZsidiCl.js} +2 -2
- package/standalone/chunks/{choropleth-map-options.config-rUJsEJcm.js → choropleth-map-options.config-CDMjKnJD.js} +1 -1
- package/standalone/chunks/{color-range-utils-DxOtqAKB.js → color-range-utils-BVyHBRiq.js} +1 -1
- package/standalone/chunks/data-broker-DpSrH3IP.js +2 -0
- package/standalone/chunks/de-BkB0q1Eg.js +2 -0
- package/standalone/chunks/display-settings-binning-DhHlclWH.js +38 -0
- package/standalone/chunks/display-settings-datetime-C8xvOvi4.js +199 -0
- package/standalone/chunks/display-settings-grand-totals-CUpigDcs.js +26 -0
- package/standalone/chunks/display-settings-numeric-BLWF54Jx.js +172 -0
- package/standalone/chunks/display-settings-period-over-period-COd4tvUw.js +209 -0
- package/standalone/chunks/embed-Bv1ps-EM.js +260 -0
- 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/es-Bo0jStZn.js +2 -0
- package/standalone/chunks/{filters-DKgJcQGP.js → filters-lhg_WVDK.js} +108 -108
- package/standalone/chunks/{formula-codemirror-BbyvNEVD.js → formula-codemirror-DZMzLE2I.js} +17 -17
- package/standalone/chunks/fr-Co_qVhhV.js +2 -0
- package/standalone/chunks/{heat-map-options.config-D93AeYFi.js → heat-map-options.config-DDQMD38W.js} +1 -1
- package/standalone/chunks/{heat-table-options.config-ZVML76FK.js → heat-table-options.config-B4K0Ygug.js} +1 -1
- package/standalone/chunks/{is-same-option-value-Di-A7Wmg.js → is-same-option-value-7kXNF4st.js} +1 -1
- package/standalone/chunks/item-option-action-button-group-Bl1HR1JK.js +35 -0
- package/standalone/chunks/item-option-base-DF24wTyv.js +38 -0
- package/standalone/chunks/item-option-color-palette-picker-MkIIn56p.js +22 -0
- package/standalone/chunks/item-option-color-picker-CxosMo_p.js +19 -0
- package/standalone/chunks/item-option-color-range-C7C70r4J.js +83 -0
- package/standalone/chunks/item-option-guidelines-iu8yWRzr.js +120 -0
- package/standalone/chunks/{item-option-multi-language-field-DPPpN2qg.js → item-option-multi-language-field-foanqCdr.js} +1 -1
- package/standalone/chunks/{item-option-number-field-CkqJjInE.js → item-option-number-field-ByVD4oq0.js} +1 -1
- package/standalone/chunks/item-option-panel-Bya-K7HH.js +316 -0
- package/standalone/chunks/{item-option-picker-BnwQPT9A.js → item-option-picker-CqNNVIML.js} +1 -1
- package/standalone/chunks/item-option-position-picker-BjCFVtDH.js +14 -0
- package/standalone/chunks/item-option-positions-number-field-BJJtXZL-.js +31 -0
- package/standalone/chunks/{item-option-radio-button-group-BkymJq3E.js → item-option-radio-button-group-C5bxsD85.js} +1 -1
- package/standalone/chunks/item-option-slider-DUXWz70B.js +18 -0
- package/standalone/chunks/item-option-switch-BHyJuOkP.js +12 -0
- package/standalone/chunks/{item-option-text-field-D7bkuhsv.js → item-option-text-field-rBZY9OX4.js} +1 -1
- package/standalone/chunks/{item-slot-picker-panel-D4BMxGs9.js → item-slot-picker-panel-BM82vSXi.js} +101 -99
- package/standalone/chunks/load-data-fields-for-datasets-DS9O1oyy.js +25 -0
- package/standalone/chunks/localize-DLl7tgQp.js +2 -0
- package/standalone/chunks/localized-decorator-DosMCCQo.js +2 -0
- package/standalone/chunks/{version-BW4Ixl63.js → localized-mixin-BWJj88bd.js} +1 -1
- package/standalone/chunks/nl-CQz2jrVx.js +2 -0
- package/standalone/chunks/{option-interaction-controller-BslAXAHF.js → option-interaction-controller-BuwRr21c.js} +1 -1
- package/standalone/chunks/{route-map-options.config-Dwy0JSVq.js → route-map-options.config-CGBkHnhM.js} +1 -1
- package/standalone/chunks/{spike-map-options.config-DFmuNxym.js → spike-map-options.config-CSenlJ_F.js} +1 -1
- package/standalone/interactive-viz-item.js +88 -84
- package/standalone/item-grid.js +10 -10
- package/standalone/manifest.json +46 -46
- package/types.d.ts +1 -1
- package/components/chart-helpers-ufZ6VbXs.cjs +0 -20
- package/components/filters-BPbPFOu5.cjs +0 -187
- package/components/interactive-viz-item-CwRRaCZB.js +0 -583
- package/components/interactive-viz-item-CxdrGRKc.cjs +0 -265
- package/components/item-slot-picker-panel-BhhN54IM.cjs +0 -82
- package/standalone/chunks/data-broker-DXDyIrj_.js +0 -2
- package/standalone/chunks/de-mdZT2W1G.js +0 -2
- package/standalone/chunks/display-settings-binning-Byffw2Kl.js +0 -38
- package/standalone/chunks/display-settings-datetime-CD52d6Sv.js +0 -199
- package/standalone/chunks/display-settings-grand-totals-Cky99LX9.js +0 -26
- package/standalone/chunks/display-settings-numeric-C9ea7Tgc.js +0 -172
- package/standalone/chunks/display-settings-period-over-period-BLSGumkD.js +0 -209
- package/standalone/chunks/embed-CBu7iQRx.js +0 -231
- package/standalone/chunks/en-CSboh17P.js +0 -2
- package/standalone/chunks/en-GB-HoXKQBOY.js +0 -2
- package/standalone/chunks/en-US-CSboh17P.js +0 -2
- package/standalone/chunks/es-Di5D8JFd.js +0 -2
- package/standalone/chunks/fr-DZku7iB9.js +0 -2
- package/standalone/chunks/item-option-action-button-group-BEAwPHVw.js +0 -35
- package/standalone/chunks/item-option-base-CRUxNhJQ.js +0 -38
- package/standalone/chunks/item-option-color-palette-picker-CBz61iZb.js +0 -22
- package/standalone/chunks/item-option-color-picker-lLvBPnKA.js +0 -19
- package/standalone/chunks/item-option-color-range-BqeatOei.js +0 -83
- package/standalone/chunks/item-option-guidelines-Cop8rM8y.js +0 -120
- package/standalone/chunks/item-option-panel-CzSKFCVl.js +0 -316
- package/standalone/chunks/item-option-position-picker-Bkc4JvJX.js +0 -14
- package/standalone/chunks/item-option-positions-number-field-Dr_315TE.js +0 -31
- package/standalone/chunks/item-option-slider-K_bsNci8.js +0 -18
- package/standalone/chunks/item-option-switch-DeihDHhM.js +0 -12
- package/standalone/chunks/load-data-fields-for-datasets-ClctSj6y.js +0 -25
- package/standalone/chunks/localize-DXRmGRe-.js +0 -2
- package/standalone/chunks/localized-decorator-DJVBmJVH.js +0 -2
- package/standalone/chunks/nl-CViTevL3.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,12 +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
|
-
filters: e.filters
|
|
65
|
+
filters: e.filters,
|
|
66
|
+
inlineData: e.inlineData
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
|
-
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) {
|
|
68
82
|
return {
|
|
69
83
|
...e,
|
|
70
84
|
options: {
|
|
@@ -76,33 +90,33 @@ function u(e, t) {
|
|
|
76
90
|
}
|
|
77
91
|
};
|
|
78
92
|
}
|
|
79
|
-
function
|
|
93
|
+
function m(e) {
|
|
80
94
|
let t = e.find((e) => e.name === "measure" || e.name === "measures");
|
|
81
95
|
if (t && t.content.length > 1) return !0;
|
|
82
96
|
let n = e.find((e) => e.name === "legend");
|
|
83
97
|
return n ? n.content.length > 0 : !1;
|
|
84
98
|
}
|
|
85
|
-
function
|
|
86
|
-
let
|
|
87
|
-
switch (
|
|
99
|
+
function h(e) {
|
|
100
|
+
let t = [], a = e.options;
|
|
101
|
+
switch (e.type) {
|
|
88
102
|
case "area-chart":
|
|
89
103
|
case "bar-chart":
|
|
90
104
|
case "column-chart":
|
|
91
|
-
if (
|
|
105
|
+
if (e.inlineData || t.push({
|
|
92
106
|
type: "rankingPicker",
|
|
93
107
|
mutationType: "rankAndSort",
|
|
94
108
|
ranking: a.ranking ?? {
|
|
95
109
|
active: !1,
|
|
96
110
|
number: 5,
|
|
97
|
-
direction:
|
|
111
|
+
direction: n.Top
|
|
98
112
|
},
|
|
99
113
|
sort: a.sort ?? {
|
|
100
|
-
direction:
|
|
101
|
-
by:
|
|
114
|
+
direction: r.Desc,
|
|
115
|
+
by: i.Measure
|
|
102
116
|
},
|
|
103
117
|
importance: 100
|
|
104
|
-
}),
|
|
105
|
-
let
|
|
118
|
+
}), m(e.slots)) {
|
|
119
|
+
let n = e.type === "area-chart", r = n ? [
|
|
106
120
|
{
|
|
107
121
|
key: "stacked",
|
|
108
122
|
label: "Stacked"
|
|
@@ -132,19 +146,19 @@ function f(r) {
|
|
|
132
146
|
key: "100",
|
|
133
147
|
label: "100%"
|
|
134
148
|
}
|
|
135
|
-
],
|
|
136
|
-
|
|
149
|
+
], i = n ? "stacked" : "grouped";
|
|
150
|
+
t.push({
|
|
137
151
|
type: "optionDropdown",
|
|
138
152
|
mutationType: "mode",
|
|
139
|
-
values:
|
|
140
|
-
currentValue: a.mode ??
|
|
153
|
+
values: r,
|
|
154
|
+
currentValue: a.mode ?? i,
|
|
141
155
|
importance: 90
|
|
142
156
|
});
|
|
143
157
|
}
|
|
144
158
|
break;
|
|
145
159
|
case "donut-chart": {
|
|
146
160
|
let e = a.display ?? {};
|
|
147
|
-
|
|
161
|
+
t.push({
|
|
148
162
|
type: "optionDropdown",
|
|
149
163
|
mutationType: "donutLabelDisplay",
|
|
150
164
|
values: [{
|
|
@@ -161,7 +175,7 @@ function f(r) {
|
|
|
161
175
|
}
|
|
162
176
|
case "bubble-chart": {
|
|
163
177
|
let e = a.display ?? {};
|
|
164
|
-
|
|
178
|
+
t.push({
|
|
165
179
|
type: "optionDropdown",
|
|
166
180
|
mutationType: "bubbleValues",
|
|
167
181
|
values: [
|
|
@@ -184,9 +198,9 @@ function f(r) {
|
|
|
184
198
|
break;
|
|
185
199
|
}
|
|
186
200
|
}
|
|
187
|
-
return
|
|
201
|
+
return t.sort((e, t) => t.importance - e.importance);
|
|
188
202
|
}
|
|
189
|
-
function
|
|
203
|
+
function g(e, t, n) {
|
|
190
204
|
let r = e.options;
|
|
191
205
|
switch (t) {
|
|
192
206
|
case "mode": return {
|
|
@@ -219,7 +233,7 @@ function p(e, t, n) {
|
|
|
219
233
|
default: return e;
|
|
220
234
|
}
|
|
221
235
|
}
|
|
222
|
-
function
|
|
236
|
+
function _(e, t) {
|
|
223
237
|
switch (t.type) {
|
|
224
238
|
case "slots": return {
|
|
225
239
|
...e,
|
|
@@ -233,7 +247,7 @@ function m(e, t) {
|
|
|
233
247
|
...e,
|
|
234
248
|
filters: t.filters
|
|
235
249
|
};
|
|
236
|
-
case "chartAction": return
|
|
250
|
+
case "chartAction": return g(e, t.actionType, t.key);
|
|
237
251
|
case "rankAndSort": return {
|
|
238
252
|
...e,
|
|
239
253
|
options: {
|
|
@@ -246,4 +260,4 @@ function m(e, t) {
|
|
|
246
260
|
default: return e;
|
|
247
261
|
}
|
|
248
262
|
}
|
|
249
|
-
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";
|