@luzmo/embed 6.0.0-beta.7 → 6.0.0-beta.9
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/CHANGELOG.md +9 -1
- package/MIGRATIONS.md +1 -1
- package/index.cjs +21 -15
- package/index.js +21 -15
- package/libs/embed-libs/embed/src/index.d.ts +4 -0
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.d.ts +97 -0
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.d.ts +8 -0
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-styles.d.ts +1 -0
- package/libs/embed-libs/embed/src/lib/helper/event-bus-handler.d.ts +1 -0
- package/libs/embed-libs/embed/src/lib/luzmo-service.d.ts +6 -0
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item-component.d.ts +3 -0
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +41 -0
- package/libs/embed-libs/shared-embed/src/index.common.d.ts +33 -0
- package/libs/embed-libs/shared-embed/src/index.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/constants/class-constants.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/browser-check.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/default-parameters.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/error.d.ts +5 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/extents.d.ts +7 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/get-loader.d.ts +5 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/iframe-url.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/promise-dispatch.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +16 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/set-filter-utils.d.ts +7 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/styles.d.ts +8 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/translations.d.ts +18 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/update-iframe-url.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/utils.d.ts +27 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/export-dashboard.d.ts +4 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/get-accessible-dashboards.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/get-data.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/get-filters.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/refresh-data.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/reload-dashboard.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-authorization.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-edit-mode.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-filters.d.ts +4 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-preview.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/models/common.model.d.ts +103 -0
- package/libs/embed-libs/shared-embed/src/lib/models/dashboard.model.d.ts +45 -0
- package/libs/embed-libs/shared-embed/src/lib/models/events.model.d.ts +73 -0
- package/libs/embed-libs/shared-embed/src/lib/models/filters.model.d.ts +55 -0
- package/libs/embed-libs/shared-embed/src/lib/models/styles.model.d.ts +32 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item-post-message.model.d.ts +44 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item.model.d.ts +470 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/areachart.model.d.ts +12 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/barchart.model.d.ts +23 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/choroplethmap.model.d.ts +12 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/circlepack.model.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/columnchart.model.d.ts +23 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/datetime.model.d.ts +12 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/donutchart.model.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/dropdownfilter.model.d.ts +12 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/index.d.ts +36 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/linechart.model.d.ts +35 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/piechart.model.d.ts +23 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/scatterplot.model.d.ts +12 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slicer.model.d.ts +23 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slider.model.d.ts +12 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/stripplot.model.d.ts +14 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/sunburst.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/treemap.model.d.ts +23 -0
- package/libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/service/extend-and-validate.d.ts +2 -0
- package/luzmo-embed.min.js +24 -18
- package/package.json +2 -2
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { FilterGroup, FilterInput } from './filters.model';
|
|
3
|
+
import { ItemData, SetFilters } from './common.model';
|
|
4
|
+
export declare const slotsNameParser: z.ZodEnum<["x-axis", "y-axis", "category", "measure", "coordinates", "legend", "geo", "image", "color", "levels", "slidermetric", "dimension", "destination", "source", "time", "identifier", "target", "size", "name", "columns", "column", "row", "evolution", "close", "open", "low", "high", "order", "route"]>;
|
|
5
|
+
export declare const slotParser: z.ZodObject<{
|
|
6
|
+
name: z.ZodEnum<["x-axis", "y-axis", "category", "measure", "coordinates", "legend", "geo", "image", "color", "levels", "slidermetric", "dimension", "destination", "source", "time", "identifier", "target", "size", "name", "columns", "column", "row", "evolution", "close", "open", "low", "high", "order", "route"]>;
|
|
7
|
+
content: z.ZodArray<z.ZodObject<{
|
|
8
|
+
type: z.ZodEnum<["numeric", "hierarchy", "datetime", "spatial"]>;
|
|
9
|
+
format: z.ZodOptional<z.ZodString>;
|
|
10
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
11
|
+
column: z.ZodOptional<z.ZodString>;
|
|
12
|
+
formula: z.ZodOptional<z.ZodString>;
|
|
13
|
+
set: z.ZodOptional<z.ZodString>;
|
|
14
|
+
aggregationFunc: z.ZodOptional<z.ZodString>;
|
|
15
|
+
subtype: z.ZodOptional<z.ZodString>;
|
|
16
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
lowestLevel: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
19
|
+
id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
bins: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
enabled: z.ZodBoolean;
|
|
22
|
+
number: z.ZodNumber;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
number?: number;
|
|
25
|
+
enabled?: boolean;
|
|
26
|
+
}, {
|
|
27
|
+
number?: number;
|
|
28
|
+
enabled?: boolean;
|
|
29
|
+
}>>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
set?: string;
|
|
32
|
+
id?: string;
|
|
33
|
+
column?: string;
|
|
34
|
+
type?: "numeric" | "hierarchy" | "datetime" | "spatial";
|
|
35
|
+
format?: string;
|
|
36
|
+
label?: string | Record<string, string>;
|
|
37
|
+
formula?: string;
|
|
38
|
+
aggregationFunc?: string;
|
|
39
|
+
subtype?: string;
|
|
40
|
+
level?: number;
|
|
41
|
+
lowestLevel?: number;
|
|
42
|
+
currency?: string;
|
|
43
|
+
bins?: {
|
|
44
|
+
number?: number;
|
|
45
|
+
enabled?: boolean;
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
set?: string;
|
|
49
|
+
id?: string;
|
|
50
|
+
column?: string;
|
|
51
|
+
type?: "numeric" | "hierarchy" | "datetime" | "spatial";
|
|
52
|
+
format?: string;
|
|
53
|
+
label?: string | Record<string, string>;
|
|
54
|
+
formula?: string;
|
|
55
|
+
aggregationFunc?: string;
|
|
56
|
+
subtype?: string;
|
|
57
|
+
level?: number;
|
|
58
|
+
lowestLevel?: number;
|
|
59
|
+
currency?: string;
|
|
60
|
+
bins?: {
|
|
61
|
+
number?: number;
|
|
62
|
+
enabled?: boolean;
|
|
63
|
+
};
|
|
64
|
+
}>, "many">;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
name?: "category" | "x-axis" | "y-axis" | "dimension" | "slidermetric" | "time" | "levels" | "geo" | "coordinates" | "image" | "name" | "measure" | "legend" | "color" | "destination" | "source" | "identifier" | "target" | "size" | "columns" | "column" | "row" | "evolution" | "close" | "open" | "low" | "high" | "order" | "route";
|
|
67
|
+
content?: {
|
|
68
|
+
set?: string;
|
|
69
|
+
id?: string;
|
|
70
|
+
column?: string;
|
|
71
|
+
type?: "numeric" | "hierarchy" | "datetime" | "spatial";
|
|
72
|
+
format?: string;
|
|
73
|
+
label?: string | Record<string, string>;
|
|
74
|
+
formula?: string;
|
|
75
|
+
aggregationFunc?: string;
|
|
76
|
+
subtype?: string;
|
|
77
|
+
level?: number;
|
|
78
|
+
lowestLevel?: number;
|
|
79
|
+
currency?: string;
|
|
80
|
+
bins?: {
|
|
81
|
+
number?: number;
|
|
82
|
+
enabled?: boolean;
|
|
83
|
+
};
|
|
84
|
+
}[];
|
|
85
|
+
}, {
|
|
86
|
+
name?: "category" | "x-axis" | "y-axis" | "dimension" | "slidermetric" | "time" | "levels" | "geo" | "coordinates" | "image" | "name" | "measure" | "legend" | "color" | "destination" | "source" | "identifier" | "target" | "size" | "columns" | "column" | "row" | "evolution" | "close" | "open" | "low" | "high" | "order" | "route";
|
|
87
|
+
content?: {
|
|
88
|
+
set?: string;
|
|
89
|
+
id?: string;
|
|
90
|
+
column?: string;
|
|
91
|
+
type?: "numeric" | "hierarchy" | "datetime" | "spatial";
|
|
92
|
+
format?: string;
|
|
93
|
+
label?: string | Record<string, string>;
|
|
94
|
+
formula?: string;
|
|
95
|
+
aggregationFunc?: string;
|
|
96
|
+
subtype?: string;
|
|
97
|
+
level?: number;
|
|
98
|
+
lowestLevel?: number;
|
|
99
|
+
currency?: string;
|
|
100
|
+
bins?: {
|
|
101
|
+
number?: number;
|
|
102
|
+
enabled?: boolean;
|
|
103
|
+
};
|
|
104
|
+
}[];
|
|
105
|
+
}>;
|
|
106
|
+
export declare const itemTypeParser: z.ZodEnum<["area-chart", "bar-chart", "bubble-chart", "box-plot", "bullet-chart", "choropleth-map", "circular-gauge", "circle-pack-chart", "column-chart", "combination-chart", "date-filter", "donut-chart", "dropdown-filter", "dynamic-imageobject", "evolution-number", "funnel-chart", "heat-map", "heat-table", "hexbin-map", "iframeobject", "image", "line-chart", "line-chart-forecast", "marker-map", "conditional-number", "ohlc-chart", "parallel-coordinates-plot", "pivot-table", "pyramid-chart", "radar-chart", "regular-table", "route-map", "sankey-diagram", "scatter-plot", "slicer-filter", "slider-filter", "spacer", "speedometer-chart", "spike-map", "strip-plot", "sunburst-chart", "symbol-map", "text", "treemap-chart", "venn-diagram", "video", "wordcloud-chart"]>;
|
|
107
|
+
export declare const slotsParser: z.ZodArray<z.ZodObject<{
|
|
108
|
+
name: z.ZodEnum<["x-axis", "y-axis", "category", "measure", "coordinates", "legend", "geo", "image", "color", "levels", "slidermetric", "dimension", "destination", "source", "time", "identifier", "target", "size", "name", "columns", "column", "row", "evolution", "close", "open", "low", "high", "order", "route"]>;
|
|
109
|
+
content: z.ZodArray<z.ZodObject<{
|
|
110
|
+
type: z.ZodEnum<["numeric", "hierarchy", "datetime", "spatial"]>;
|
|
111
|
+
format: z.ZodOptional<z.ZodString>;
|
|
112
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
113
|
+
column: z.ZodOptional<z.ZodString>;
|
|
114
|
+
formula: z.ZodOptional<z.ZodString>;
|
|
115
|
+
set: z.ZodOptional<z.ZodString>;
|
|
116
|
+
aggregationFunc: z.ZodOptional<z.ZodString>;
|
|
117
|
+
subtype: z.ZodOptional<z.ZodString>;
|
|
118
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
lowestLevel: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
121
|
+
id: z.ZodOptional<z.ZodString>;
|
|
122
|
+
bins: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
enabled: z.ZodBoolean;
|
|
124
|
+
number: z.ZodNumber;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
number?: number;
|
|
127
|
+
enabled?: boolean;
|
|
128
|
+
}, {
|
|
129
|
+
number?: number;
|
|
130
|
+
enabled?: boolean;
|
|
131
|
+
}>>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
set?: string;
|
|
134
|
+
id?: string;
|
|
135
|
+
column?: string;
|
|
136
|
+
type?: "numeric" | "hierarchy" | "datetime" | "spatial";
|
|
137
|
+
format?: string;
|
|
138
|
+
label?: string | Record<string, string>;
|
|
139
|
+
formula?: string;
|
|
140
|
+
aggregationFunc?: string;
|
|
141
|
+
subtype?: string;
|
|
142
|
+
level?: number;
|
|
143
|
+
lowestLevel?: number;
|
|
144
|
+
currency?: string;
|
|
145
|
+
bins?: {
|
|
146
|
+
number?: number;
|
|
147
|
+
enabled?: boolean;
|
|
148
|
+
};
|
|
149
|
+
}, {
|
|
150
|
+
set?: string;
|
|
151
|
+
id?: string;
|
|
152
|
+
column?: string;
|
|
153
|
+
type?: "numeric" | "hierarchy" | "datetime" | "spatial";
|
|
154
|
+
format?: string;
|
|
155
|
+
label?: string | Record<string, string>;
|
|
156
|
+
formula?: string;
|
|
157
|
+
aggregationFunc?: string;
|
|
158
|
+
subtype?: string;
|
|
159
|
+
level?: number;
|
|
160
|
+
lowestLevel?: number;
|
|
161
|
+
currency?: string;
|
|
162
|
+
bins?: {
|
|
163
|
+
number?: number;
|
|
164
|
+
enabled?: boolean;
|
|
165
|
+
};
|
|
166
|
+
}>, "many">;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
name?: "category" | "x-axis" | "y-axis" | "dimension" | "slidermetric" | "time" | "levels" | "geo" | "coordinates" | "image" | "name" | "measure" | "legend" | "color" | "destination" | "source" | "identifier" | "target" | "size" | "columns" | "column" | "row" | "evolution" | "close" | "open" | "low" | "high" | "order" | "route";
|
|
169
|
+
content?: {
|
|
170
|
+
set?: string;
|
|
171
|
+
id?: string;
|
|
172
|
+
column?: string;
|
|
173
|
+
type?: "numeric" | "hierarchy" | "datetime" | "spatial";
|
|
174
|
+
format?: string;
|
|
175
|
+
label?: string | Record<string, string>;
|
|
176
|
+
formula?: string;
|
|
177
|
+
aggregationFunc?: string;
|
|
178
|
+
subtype?: string;
|
|
179
|
+
level?: number;
|
|
180
|
+
lowestLevel?: number;
|
|
181
|
+
currency?: string;
|
|
182
|
+
bins?: {
|
|
183
|
+
number?: number;
|
|
184
|
+
enabled?: boolean;
|
|
185
|
+
};
|
|
186
|
+
}[];
|
|
187
|
+
}, {
|
|
188
|
+
name?: "category" | "x-axis" | "y-axis" | "dimension" | "slidermetric" | "time" | "levels" | "geo" | "coordinates" | "image" | "name" | "measure" | "legend" | "color" | "destination" | "source" | "identifier" | "target" | "size" | "columns" | "column" | "row" | "evolution" | "close" | "open" | "low" | "high" | "order" | "route";
|
|
189
|
+
content?: {
|
|
190
|
+
set?: string;
|
|
191
|
+
id?: string;
|
|
192
|
+
column?: string;
|
|
193
|
+
type?: "numeric" | "hierarchy" | "datetime" | "spatial";
|
|
194
|
+
format?: string;
|
|
195
|
+
label?: string | Record<string, string>;
|
|
196
|
+
formula?: string;
|
|
197
|
+
aggregationFunc?: string;
|
|
198
|
+
subtype?: string;
|
|
199
|
+
level?: number;
|
|
200
|
+
lowestLevel?: number;
|
|
201
|
+
currency?: string;
|
|
202
|
+
bins?: {
|
|
203
|
+
number?: number;
|
|
204
|
+
enabled?: boolean;
|
|
205
|
+
};
|
|
206
|
+
}[];
|
|
207
|
+
}>, "many">;
|
|
208
|
+
export declare const vizItemOptionsParser: z.ZodObject<{
|
|
209
|
+
title: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
210
|
+
theme: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
211
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
212
|
+
html: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
213
|
+
slices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
214
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
215
|
+
url: z.ZodOptional<z.ZodString>;
|
|
216
|
+
bars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
217
|
+
manualValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
218
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>;
|
|
219
|
+
classification: z.ZodOptional<z.ZodString>;
|
|
220
|
+
numberClasses: z.ZodOptional<z.ZodNumber>;
|
|
221
|
+
tileProvider: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
222
|
+
vectorTileProvider: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
223
|
+
sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
224
|
+
display: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
|
225
|
+
title: z.ZodBoolean;
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
|
+
title?: boolean;
|
|
228
|
+
}, {
|
|
229
|
+
title?: boolean;
|
|
230
|
+
}>]>>;
|
|
231
|
+
timezoneId: z.ZodOptional<z.ZodString>;
|
|
232
|
+
ranking: z.ZodOptional<z.ZodObject<{
|
|
233
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
+
direction: z.ZodOptional<z.ZodEnum<["top", "bottom"]>>;
|
|
235
|
+
number: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
number?: number;
|
|
238
|
+
active?: boolean;
|
|
239
|
+
direction?: "top" | "bottom";
|
|
240
|
+
}, {
|
|
241
|
+
number?: number;
|
|
242
|
+
active?: boolean;
|
|
243
|
+
direction?: "top" | "bottom";
|
|
244
|
+
}>>;
|
|
245
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
246
|
+
aggregation: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
type: z.ZodOptional<z.ZodEnum<["sum", "cumulativesum", "average", "median", "count", "distinctcount", "min", "max", "stddev", "weightedaverage", "rate", "histogram"]>>;
|
|
248
|
+
/**
|
|
249
|
+
* @format uuid
|
|
250
|
+
*/
|
|
251
|
+
dataset_id: z.ZodOptional<z.ZodString>;
|
|
252
|
+
/**
|
|
253
|
+
* @format uuid
|
|
254
|
+
*/
|
|
255
|
+
column_id: z.ZodOptional<z.ZodString>;
|
|
256
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
type?: "sum" | "cumulativesum" | "average" | "median" | "count" | "distinctcount" | "min" | "max" | "stddev" | "weightedaverage" | "rate" | "histogram";
|
|
259
|
+
level?: number;
|
|
260
|
+
column_id?: string;
|
|
261
|
+
dataset_id?: string;
|
|
262
|
+
}, {
|
|
263
|
+
type?: "sum" | "cumulativesum" | "average" | "median" | "count" | "distinctcount" | "min" | "max" | "stddev" | "weightedaverage" | "rate" | "histogram";
|
|
264
|
+
level?: number;
|
|
265
|
+
column_id?: string;
|
|
266
|
+
dataset_id?: string;
|
|
267
|
+
}>>;
|
|
268
|
+
/**
|
|
269
|
+
* @format uuid
|
|
270
|
+
*/
|
|
271
|
+
column_id: z.ZodOptional<z.ZodString>;
|
|
272
|
+
/**
|
|
273
|
+
* @format uuid
|
|
274
|
+
*/
|
|
275
|
+
dataset_id: z.ZodOptional<z.ZodString>;
|
|
276
|
+
discretization: z.ZodOptional<z.ZodObject<{
|
|
277
|
+
type: z.ZodOptional<z.ZodEnum<["none", "linear", "powerset"]>>;
|
|
278
|
+
bins: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
over: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
281
|
+
type?: "none" | "linear" | "powerset";
|
|
282
|
+
bins?: number;
|
|
283
|
+
over?: any[];
|
|
284
|
+
}, {
|
|
285
|
+
type?: "none" | "linear" | "powerset";
|
|
286
|
+
bins?: number;
|
|
287
|
+
over?: any[];
|
|
288
|
+
}>>;
|
|
289
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
290
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
291
|
+
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
expression?: string;
|
|
294
|
+
order?: "desc" | "asc";
|
|
295
|
+
level?: number;
|
|
296
|
+
column_id?: string;
|
|
297
|
+
dataset_id?: string;
|
|
298
|
+
discretization?: {
|
|
299
|
+
type?: "none" | "linear" | "powerset";
|
|
300
|
+
bins?: number;
|
|
301
|
+
over?: any[];
|
|
302
|
+
};
|
|
303
|
+
aggregation?: {
|
|
304
|
+
type?: "sum" | "cumulativesum" | "average" | "median" | "count" | "distinctcount" | "min" | "max" | "stddev" | "weightedaverage" | "rate" | "histogram";
|
|
305
|
+
level?: number;
|
|
306
|
+
column_id?: string;
|
|
307
|
+
dataset_id?: string;
|
|
308
|
+
};
|
|
309
|
+
}, {
|
|
310
|
+
expression?: string;
|
|
311
|
+
order?: "desc" | "asc";
|
|
312
|
+
level?: number;
|
|
313
|
+
column_id?: string;
|
|
314
|
+
dataset_id?: string;
|
|
315
|
+
discretization?: {
|
|
316
|
+
type?: "none" | "linear" | "powerset";
|
|
317
|
+
bins?: number;
|
|
318
|
+
over?: any[];
|
|
319
|
+
};
|
|
320
|
+
aggregation?: {
|
|
321
|
+
type?: "sum" | "cumulativesum" | "average" | "median" | "count" | "distinctcount" | "min" | "max" | "stddev" | "weightedaverage" | "rate" | "histogram";
|
|
322
|
+
level?: number;
|
|
323
|
+
column_id?: string;
|
|
324
|
+
dataset_id?: string;
|
|
325
|
+
};
|
|
326
|
+
}>>;
|
|
327
|
+
}, "strip", z.ZodTypeAny, {
|
|
328
|
+
title?: Record<string, string>;
|
|
329
|
+
sort?: {
|
|
330
|
+
expression?: string;
|
|
331
|
+
order?: "desc" | "asc";
|
|
332
|
+
level?: number;
|
|
333
|
+
column_id?: string;
|
|
334
|
+
dataset_id?: string;
|
|
335
|
+
discretization?: {
|
|
336
|
+
type?: "none" | "linear" | "powerset";
|
|
337
|
+
bins?: number;
|
|
338
|
+
over?: any[];
|
|
339
|
+
};
|
|
340
|
+
aggregation?: {
|
|
341
|
+
type?: "sum" | "cumulativesum" | "average" | "median" | "count" | "distinctcount" | "min" | "max" | "stddev" | "weightedaverage" | "rate" | "histogram";
|
|
342
|
+
level?: number;
|
|
343
|
+
column_id?: string;
|
|
344
|
+
dataset_id?: string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
timezoneId?: string;
|
|
348
|
+
theme?: string | Record<string, any>;
|
|
349
|
+
locale?: string;
|
|
350
|
+
html?: Record<string, string>;
|
|
351
|
+
slices?: Record<string, any>;
|
|
352
|
+
mode?: string;
|
|
353
|
+
url?: string;
|
|
354
|
+
bars?: Record<string, any>;
|
|
355
|
+
manualValues?: Record<string, any>;
|
|
356
|
+
measures?: Record<string, any>[];
|
|
357
|
+
classification?: string;
|
|
358
|
+
numberClasses?: number;
|
|
359
|
+
tileProvider?: Record<string, any>;
|
|
360
|
+
vectorTileProvider?: Record<string, any>;
|
|
361
|
+
sources?: Record<string, any>;
|
|
362
|
+
display?: Record<string, any> | {
|
|
363
|
+
title?: boolean;
|
|
364
|
+
};
|
|
365
|
+
ranking?: {
|
|
366
|
+
number?: number;
|
|
367
|
+
active?: boolean;
|
|
368
|
+
direction?: "top" | "bottom";
|
|
369
|
+
};
|
|
370
|
+
}, {
|
|
371
|
+
title?: Record<string, string>;
|
|
372
|
+
sort?: {
|
|
373
|
+
expression?: string;
|
|
374
|
+
order?: "desc" | "asc";
|
|
375
|
+
level?: number;
|
|
376
|
+
column_id?: string;
|
|
377
|
+
dataset_id?: string;
|
|
378
|
+
discretization?: {
|
|
379
|
+
type?: "none" | "linear" | "powerset";
|
|
380
|
+
bins?: number;
|
|
381
|
+
over?: any[];
|
|
382
|
+
};
|
|
383
|
+
aggregation?: {
|
|
384
|
+
type?: "sum" | "cumulativesum" | "average" | "median" | "count" | "distinctcount" | "min" | "max" | "stddev" | "weightedaverage" | "rate" | "histogram";
|
|
385
|
+
level?: number;
|
|
386
|
+
column_id?: string;
|
|
387
|
+
dataset_id?: string;
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
timezoneId?: string;
|
|
391
|
+
theme?: string | Record<string, any>;
|
|
392
|
+
locale?: string;
|
|
393
|
+
html?: Record<string, string>;
|
|
394
|
+
slices?: Record<string, any>;
|
|
395
|
+
mode?: string;
|
|
396
|
+
url?: string;
|
|
397
|
+
bars?: Record<string, any>;
|
|
398
|
+
manualValues?: Record<string, any>;
|
|
399
|
+
measures?: Record<string, any>[];
|
|
400
|
+
classification?: string;
|
|
401
|
+
numberClasses?: number;
|
|
402
|
+
tileProvider?: Record<string, any>;
|
|
403
|
+
vectorTileProvider?: Record<string, any>;
|
|
404
|
+
sources?: Record<string, any>;
|
|
405
|
+
display?: Record<string, any> | {
|
|
406
|
+
title?: boolean;
|
|
407
|
+
};
|
|
408
|
+
ranking?: {
|
|
409
|
+
number?: number;
|
|
410
|
+
active?: boolean;
|
|
411
|
+
direction?: "top" | "bottom";
|
|
412
|
+
};
|
|
413
|
+
}>;
|
|
414
|
+
export declare const canFilterParser: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>;
|
|
415
|
+
export type SlotName = z.infer<typeof slotsNameParser>;
|
|
416
|
+
export type Slot = z.infer<typeof slotParser>;
|
|
417
|
+
export type Slots = z.infer<typeof slotsParser>;
|
|
418
|
+
export type ItemType = z.infer<typeof itemTypeParser>;
|
|
419
|
+
type ItemQueryDiscretization = {
|
|
420
|
+
type: 'none' | 'linear' | 'powerset';
|
|
421
|
+
bins?: number;
|
|
422
|
+
over?: ItemQueryDimension[];
|
|
423
|
+
};
|
|
424
|
+
type ItemQueryDimension = {
|
|
425
|
+
/**
|
|
426
|
+
* @format uuid
|
|
427
|
+
*/
|
|
428
|
+
column_id?: string;
|
|
429
|
+
/**
|
|
430
|
+
* @format uuid
|
|
431
|
+
*/
|
|
432
|
+
formula_id?: string;
|
|
433
|
+
/**
|
|
434
|
+
* @format uuid
|
|
435
|
+
*/
|
|
436
|
+
dataset_id?: string;
|
|
437
|
+
level?: number;
|
|
438
|
+
expression?: string;
|
|
439
|
+
include_nonoccurring?: boolean;
|
|
440
|
+
discretization?: ItemQueryDiscretization;
|
|
441
|
+
};
|
|
442
|
+
export type VizItemOptions = Omit<z.infer<typeof vizItemOptionsParser>, 'sort'> & {
|
|
443
|
+
sort?: Omit<z.infer<typeof vizItemOptionsParser>['sort'], 'discretization'> & {
|
|
444
|
+
discretization?: ItemQueryDiscretization;
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
export interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
448
|
+
options?: VizItemOptions;
|
|
449
|
+
type?: ItemType;
|
|
450
|
+
appServer?: string;
|
|
451
|
+
apiHost?: string;
|
|
452
|
+
slots?: Slots;
|
|
453
|
+
canFilter?: string[] | 'all';
|
|
454
|
+
filters?: FilterGroup[];
|
|
455
|
+
contextId?: string;
|
|
456
|
+
authKey?: string;
|
|
457
|
+
authToken?: string;
|
|
458
|
+
dashboardId?: string;
|
|
459
|
+
itemId?: string;
|
|
460
|
+
getFilters: () => FilterGroup[];
|
|
461
|
+
export: () => void;
|
|
462
|
+
refreshData: () => void;
|
|
463
|
+
getData: () => ItemData;
|
|
464
|
+
setFilters: (filterInput: FilterInput) => SetFilters;
|
|
465
|
+
setAuthorization: (key: string, token: string) => void;
|
|
466
|
+
}
|
|
467
|
+
export declare const libraryTypeToWebComponentTypeMapping: Record<string, string>;
|
|
468
|
+
export declare const libraryAcceptedParametersList: string[];
|
|
469
|
+
export type CanFilter = z.infer<typeof canFilterParser>;
|
|
470
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AvailableSlots, FilterExpression, FilterIn, FilterOperators, ParametersInput } from '../filters.model';
|
|
2
|
+
type AreaChartFilterIn = FilterIn & {
|
|
3
|
+
expression: Extract<FilterExpression, '? in ?' | '? >= ?' | '? <= ?' | '? < ?'>;
|
|
4
|
+
parameters: [
|
|
5
|
+
{
|
|
6
|
+
slot: Extract<AvailableSlots, 'x-axis'>;
|
|
7
|
+
},
|
|
8
|
+
ParametersInput
|
|
9
|
+
];
|
|
10
|
+
};
|
|
11
|
+
export type AreaChartFilterInput = Partial<Record<FilterOperators, (AreaChartFilterIn | AreaChartFilterInput)[]>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AvailableSlots, FilterExpression, FilterIn, FilterOperators, ParametersInput } from '../filters.model';
|
|
2
|
+
type BarchartFilterIn = FilterIn & {
|
|
3
|
+
expression: Extract<FilterExpression, '? between ?'>;
|
|
4
|
+
parameters: [
|
|
5
|
+
{
|
|
6
|
+
slot: Extract<AvailableSlots, 'y-axis'>;
|
|
7
|
+
},
|
|
8
|
+
ParametersInput
|
|
9
|
+
];
|
|
10
|
+
};
|
|
11
|
+
type BarchartFilterIn2 = FilterIn & {
|
|
12
|
+
expression: Extract<FilterExpression, '? in ?'>;
|
|
13
|
+
parameters: [
|
|
14
|
+
{
|
|
15
|
+
slot: Extract<AvailableSlots, 'y-axis'>;
|
|
16
|
+
},
|
|
17
|
+
string[]
|
|
18
|
+
];
|
|
19
|
+
};
|
|
20
|
+
type BarchartFilterInput1 = Partial<Record<FilterOperators, (BarchartFilterIn | BarchartFilterInput1)[]>>;
|
|
21
|
+
type BarchartFilterInput2 = Partial<Record<FilterOperators, (BarchartFilterIn2 | BarchartFilterInput2)[]>>;
|
|
22
|
+
export type BarChartFilterInput = BarchartFilterInput1 | BarchartFilterInput2;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AvailableSlots, FilterExpression, FilterIn, FilterOperators, StringOrNumber } from '../filters.model';
|
|
2
|
+
type ChoroplethFilterIn = FilterIn & {
|
|
3
|
+
expression: Extract<FilterExpression, '? in ?'>;
|
|
4
|
+
parameters: [
|
|
5
|
+
{
|
|
6
|
+
slot: Extract<AvailableSlots, 'geo'>;
|
|
7
|
+
},
|
|
8
|
+
StringOrNumber[]
|
|
9
|
+
];
|
|
10
|
+
};
|
|
11
|
+
export type ChoroplethFilterInput = Partial<Record<FilterOperators, (ChoroplethFilterIn | ChoroplethFilterInput)[]>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AvailableSlots, FilterExpression, FilterIn, FilterOperators, ParametersInput } from '../filters.model';
|
|
2
|
+
type ColumnchartFilterIn = FilterIn & {
|
|
3
|
+
expression: Extract<FilterExpression, '? between ?'>;
|
|
4
|
+
parameters: [
|
|
5
|
+
{
|
|
6
|
+
slot: Extract<AvailableSlots, 'y-axis'>;
|
|
7
|
+
},
|
|
8
|
+
ParametersInput
|
|
9
|
+
];
|
|
10
|
+
};
|
|
11
|
+
type ColumnchartFilterIn2 = FilterIn & {
|
|
12
|
+
expression: Extract<FilterExpression, '? in ?'>;
|
|
13
|
+
parameters: [
|
|
14
|
+
{
|
|
15
|
+
slot: Extract<AvailableSlots, 'y-axis'>;
|
|
16
|
+
},
|
|
17
|
+
string[]
|
|
18
|
+
];
|
|
19
|
+
};
|
|
20
|
+
type ColumnchartFilterInput1 = Partial<Record<FilterOperators, (ColumnchartFilterIn | ColumnchartFilterInput1)[]>>;
|
|
21
|
+
type ColumnchartFilterInput2 = Partial<Record<FilterOperators, (ColumnchartFilterIn2 | ColumnchartFilterInput2)[]>>;
|
|
22
|
+
export type ColumnChartFilterInput = ColumnchartFilterInput1 | ColumnchartFilterInput2;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AvailableSlots, FilterExpression, FilterIn, FilterOperators } from '../filters.model';
|
|
2
|
+
type DatetimeFilterIn = FilterIn & {
|
|
3
|
+
expression: Extract<FilterExpression, '? >= ?' | '? < ?'>;
|
|
4
|
+
parameters: [
|
|
5
|
+
{
|
|
6
|
+
slot: Extract<AvailableSlots, 'time'>;
|
|
7
|
+
},
|
|
8
|
+
string[]
|
|
9
|
+
];
|
|
10
|
+
};
|
|
11
|
+
export type DatetimeFilterInput = Partial<Record<FilterOperators, (DatetimeFilterIn | DatetimeFilterInput)[]>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AvailableSlots, FilterExpression, FilterIn, FilterOperators, ParametersInput } from '../filters.model';
|
|
2
|
+
type DropdownFilterFilterIn = FilterIn & {
|
|
3
|
+
expression: Extract<FilterExpression, '? between ?' | '? in ?'>;
|
|
4
|
+
parameters: [
|
|
5
|
+
{
|
|
6
|
+
slot: Extract<AvailableSlots, 'dimension'>;
|
|
7
|
+
},
|
|
8
|
+
ParametersInput
|
|
9
|
+
];
|
|
10
|
+
};
|
|
11
|
+
export type DropdownFilterFilterInput = Partial<Record<FilterOperators, (DropdownFilterFilterIn | DropdownFilterFilterInput)[]>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FilterInput } from '../filters.model';
|
|
2
|
+
import { AreaChartFilterInput } from './areachart.model';
|
|
3
|
+
import { BarChartFilterInput } from './barchart.model';
|
|
4
|
+
import { ChoroplethFilterInput } from './choroplethmap.model';
|
|
5
|
+
import { CirclepackFilterInput } from './circlepack.model';
|
|
6
|
+
import { ColumnChartFilterInput } from './columnchart.model';
|
|
7
|
+
import { DatetimeFilterInput } from './datetime.model';
|
|
8
|
+
import { DonutChartFilterInput } from './donutchart.model';
|
|
9
|
+
import { DropdownFilterFilterInput } from './dropdownfilter.model';
|
|
10
|
+
import { LinechartFilterInput } from './linechart.model';
|
|
11
|
+
import { ParallelCoordinatesPlotFilterInput } from './parallelcoordinatesplot.model';
|
|
12
|
+
import { PieChartFilterInput } from './piechart.model';
|
|
13
|
+
import { ScatterplotFilterInput } from './scatterplot.model';
|
|
14
|
+
import { SlicerFilterInput } from './slicer.model';
|
|
15
|
+
import { SliderFilterInput } from './slider.model';
|
|
16
|
+
import { StripPlotFilterInput } from './stripplot.model';
|
|
17
|
+
import { SunburstFilterInput } from './sunburst.model';
|
|
18
|
+
import { TreemapFilterInput } from './treemap.model';
|
|
19
|
+
export * from './barchart.model';
|
|
20
|
+
export * from './columnchart.model';
|
|
21
|
+
export * from './datetime.model';
|
|
22
|
+
export * from './slider.model';
|
|
23
|
+
export * from './dropdownfilter.model';
|
|
24
|
+
export * from './areachart.model';
|
|
25
|
+
export * from './slicer.model';
|
|
26
|
+
export * from './scatterplot.model';
|
|
27
|
+
export * from './piechart.model';
|
|
28
|
+
export * from './linechart.model';
|
|
29
|
+
export * from './choroplethmap.model';
|
|
30
|
+
export * from './treemap.model';
|
|
31
|
+
export * from './donutchart.model';
|
|
32
|
+
export * from './sunburst.model';
|
|
33
|
+
export * from './circlepack.model';
|
|
34
|
+
export * from './parallelcoordinatesplot.model';
|
|
35
|
+
export * from './stripplot.model';
|
|
36
|
+
export type CombinedFilterInput = FilterInput | BarChartFilterInput | ColumnChartFilterInput | SliderFilterInput | DropdownFilterFilterInput | DatetimeFilterInput | AreaChartFilterInput | SlicerFilterInput | LinechartFilterInput | ScatterplotFilterInput | PieChartFilterInput | ChoroplethFilterInput | TreemapFilterInput | DonutChartFilterInput | SunburstFilterInput | CirclepackFilterInput | ParallelCoordinatesPlotFilterInput | StripPlotFilterInput;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AvailableSlots, FilterExpression, FilterIn, FilterOperators, StringOrNumber } from '../filters.model';
|
|
2
|
+
type LinechartFilterIn = FilterIn & {
|
|
3
|
+
expression: Extract<FilterExpression, '? >= ?' | '? < ?' | '? in ?'>;
|
|
4
|
+
parameters: [
|
|
5
|
+
{
|
|
6
|
+
slot: Extract<AvailableSlots, 'x-axis'>;
|
|
7
|
+
},
|
|
8
|
+
StringOrNumber[]
|
|
9
|
+
];
|
|
10
|
+
};
|
|
11
|
+
type LinechartFilterIn2 = FilterIn & {
|
|
12
|
+
expression: Extract<FilterExpression, '? >= ?' | '? < ?'>;
|
|
13
|
+
parameters: [
|
|
14
|
+
{
|
|
15
|
+
slot: Extract<AvailableSlots, 'x-axis'>;
|
|
16
|
+
},
|
|
17
|
+
[
|
|
18
|
+
StringOrNumber
|
|
19
|
+
]
|
|
20
|
+
];
|
|
21
|
+
};
|
|
22
|
+
type LinechartFilterIn3 = FilterIn & {
|
|
23
|
+
expression: Extract<FilterExpression, '? in ?'>;
|
|
24
|
+
parameters: [
|
|
25
|
+
{
|
|
26
|
+
slot: Extract<AvailableSlots, 'x-axis'>;
|
|
27
|
+
},
|
|
28
|
+
string[]
|
|
29
|
+
];
|
|
30
|
+
};
|
|
31
|
+
type LinechartFilterInput1 = Partial<Record<FilterOperators, (LinechartFilterIn | LinechartFilterInput1)[]>>;
|
|
32
|
+
type LinechartFilterInput2 = Partial<Record<FilterOperators, (LinechartFilterIn2 | LinechartFilterInput2)[]>>;
|
|
33
|
+
type LinechartFilterInput3 = Partial<Record<FilterOperators, (LinechartFilterIn3 | LinechartFilterInput3)[]>>;
|
|
34
|
+
export type LinechartFilterInput = LinechartFilterInput1 | LinechartFilterInput2 | LinechartFilterInput3;
|
|
35
|
+
export {};
|
package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AvailableSlots, FilterExpression, FilterIn, FilterOperators, StringOrNumber } from '../filters.model';
|
|
2
|
+
type ParallelCoordinatesPlotFilterIn = FilterIn & {
|
|
3
|
+
expression: Extract<FilterExpression, '? >= ?' | '? < ?' | '? in ?'>;
|
|
4
|
+
parameters: [
|
|
5
|
+
{
|
|
6
|
+
slot: Extract<AvailableSlots, 'coordinates'>;
|
|
7
|
+
level: number;
|
|
8
|
+
},
|
|
9
|
+
StringOrNumber[]
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
export type ParallelCoordinatesPlotFilterInput = Partial<Record<FilterOperators, (ParallelCoordinatesPlotFilterIn | ParallelCoordinatesPlotFilterInput)[]>>;
|
|
13
|
+
export {};
|