@astrato-io/visualizations 0.0.0-stage → 0.6.4
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 +23 -0
- package/LICENSE +93 -0
- package/README.md +843 -2
- package/THIRD_PARTY_NOTICES.md +8387 -0
- package/VISUALIZATION_DEFINITIONS.md +2378 -0
- package/chunks/LinearProgress-CUZ0D8_t.js +253 -0
- package/chunks/Radio-Ciu-F4CU.js +957 -0
- package/chunks/ToggleButton-BCJc3Jlc.js +153 -0
- package/chunks/_baseFlatten-DPXPOrea.js +7076 -0
- package/chunks/accessors-DemrDevR.js +128 -0
- package/chunks/app-filter-bar.compiler-j_CVoWTa.js +55 -0
- package/chunks/bar.compiler-oqaPzIut.js +370 -0
- package/chunks/color-settings-ZIvgNTq1.js +10 -0
- package/chunks/coloring-C16AUZEi.js +663 -0
- package/chunks/data-item-resolution-1lvYB5ln.js +53 -0
- package/chunks/debounce-fn-CUixuz45.js +7 -0
- package/chunks/escobar-BGqT1EsE.js +34580 -0
- package/chunks/event-bus-KiSiCJrC.js +2683 -0
- package/chunks/events-WZut5Ow6.js +4 -0
- package/chunks/extend-BKUkc4_i.js +37 -0
- package/chunks/filter.compiler-CuLtc_02.js +60 -0
- package/chunks/filtering-Yq4DEa0t.js +953 -0
- package/chunks/gauge-target-type-BkKXAqkX.js +4 -0
- package/chunks/grouping-type-BX_9Ix5q.js +3 -0
- package/chunks/interfaces-VUY4_yVO.js +8742 -0
- package/chunks/line-settings-DfYTUyPz.js +4 -0
- package/chunks/line.compiler-BpA_6Tc7.js +188 -0
- package/chunks/metadata-CPXdYoln.js +28 -0
- package/chunks/number.compiler-DbkWcG4S.js +44 -0
- package/chunks/pie-uv42Eqal.js +10 -0
- package/chunks/range-DrzdfBX4.js +22 -0
- package/chunks/registry-CExpGJ1N.js +920 -0
- package/chunks/requirements-DNhuShLS.js +6 -0
- package/chunks/rolldown-runtime-DleVn1XH.js +28 -0
- package/chunks/set-coloring-datafield-B3uIS1Pe.js +8 -0
- package/chunks/shared-CKDL4hx9.js +1171 -0
- package/chunks/src-BC7cGcJ-.js +2024 -0
- package/chunks/src-BOS6SqkZ.js +67 -0
- package/chunks/src-C0LgoUWY.js +26105 -0
- package/chunks/src-Cum_2NLV.js +12145 -0
- package/chunks/src-D9XogOrc.js +422 -0
- package/chunks/src-Dun_jXtz.js +10295 -0
- package/chunks/src-DvX5LU9T.js +14742 -0
- package/chunks/standalone-87YV_m9n.js +687 -0
- package/chunks/standalone-BDCwI6Hn.js +4619 -0
- package/chunks/standalone-BH5NqDwp.js +1763 -0
- package/chunks/standalone-BLVAWLNJ.js +385 -0
- package/chunks/standalone-BPomtAVs.js +2 -0
- package/chunks/standalone-BXyBcUOQ.js +2 -0
- package/chunks/standalone-BYm1UjLr.js +140 -0
- package/chunks/standalone-BllF4rDp.js +383 -0
- package/chunks/standalone-BmfMt74U.js +726 -0
- package/chunks/standalone-BqWyrnZI.js +281 -0
- package/chunks/standalone-C85u7U6I.js +340 -0
- package/chunks/standalone-CCNtaJ7s.js +741 -0
- package/chunks/standalone-CDQnr6qT.js +345 -0
- package/chunks/standalone-CNyNHKVx.js +674 -0
- package/chunks/standalone-CY57qwZ-.js +1129 -0
- package/chunks/standalone-CZynjFG7.js +12979 -0
- package/chunks/standalone-D5vnf-9y.js +3943 -0
- package/chunks/standalone-DFPva_ku.js +299 -0
- package/chunks/standalone-DQxxNwF8.js +675 -0
- package/chunks/standalone-DS9T0FZ-.js +830 -0
- package/chunks/standalone-Dx3MLlrO.js +512 -0
- package/chunks/standalone-DzixzZAL.js +411 -0
- package/chunks/standalone-QJ1kKMnO.js +6 -0
- package/chunks/standalone-jiz0L2Dg.js +3855 -0
- package/chunks/standalone-lBm9hQ-q.js +179 -0
- package/chunks/standalone-rJ45Zfl1.js +68 -0
- package/chunks/stroke-dash-UgMEcCS4.js +6 -0
- package/chunks/table.compiler-BrXkm4Fz.js +213 -0
- package/chunks/toInteger-DVZr-D1j.js +11 -0
- package/chunks/treemap-x_zmJoG7.js +23 -0
- package/chunks/typeof-CJDtcySz.js +13 -0
- package/chunks/types-dVVCsDWD.js +4 -0
- package/chunks/ui-D1HQNIBy.js +54039 -0
- package/chunks/url-utils-B17gj_mr.js +5501 -0
- package/chunks/useFieldName-oqQ3bvnO.js +7 -0
- package/chunks/utils-Ba9T0TqC.js +31097 -0
- package/chunks/view-CLqWMV7Z.js +156 -0
- package/definitions.js +3 -0
- package/docs/operations/astrato-app-filter-bar.md +161 -0
- package/docs/operations/bar.md +7050 -0
- package/docs/operations/combo.md +5825 -0
- package/docs/operations/date-picker.md +644 -0
- package/docs/operations/distribution-gauge.md +3218 -0
- package/docs/operations/dot.md +5662 -0
- package/docs/operations/filter.md +1507 -0
- package/docs/operations/gauge.md +3452 -0
- package/docs/operations/heatMap.md +6026 -0
- package/docs/operations/histogram.md +1870 -0
- package/docs/operations/iframe.md +56 -0
- package/docs/operations/image.md +177 -0
- package/docs/operations/index.md +46 -0
- package/docs/operations/line.md +6468 -0
- package/docs/operations/number.md +3969 -0
- package/docs/operations/pie.md +6089 -0
- package/docs/operations/radar.md +4646 -0
- package/docs/operations/sankey.md +3210 -0
- package/docs/operations/scatter.md +6075 -0
- package/docs/operations/shape.md +315 -0
- package/docs/operations/simpleTextObject.md +706 -0
- package/docs/operations/slider.md +230 -0
- package/docs/operations/table.md +8790 -0
- package/docs/operations/tree.md +2874 -0
- package/docs/operations/treemap.md +3619 -0
- package/docs/operations/waterfall.md +2938 -0
- package/docs/operations/word-cloud.md +3071 -0
- package/getters.js +18 -0
- package/index.js +1183 -0
- package/metadata.js +20 -0
- package/operations.js +64 -0
- package/package.json +191 -4
- package/src/definitions/index.d.ts +2 -0
- package/src/definitions/shared/index.d.ts +5 -0
- package/src/definitions/shared/lib/available-fields.d.ts +36 -0
- package/src/definitions/shared/lib/compilers/index.d.ts +7 -0
- package/src/definitions/shared/lib/registry/compile.d.ts +2 -0
- package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +587 -0
- package/src/definitions/shared/lib/registry/index.d.ts +3 -0
- package/src/definitions/shared/lib/registry/validation.d.ts +3 -0
- package/src/definitions/shared/lib/schemas/app-filter-bar.schema.d.ts +22 -0
- package/src/definitions/shared/lib/schemas/bar.schema.d.ts +73 -0
- package/src/definitions/shared/lib/schemas/broad-chart.schema.d.ts +68 -0
- package/src/definitions/shared/lib/schemas/common.schema.d.ts +304 -0
- package/src/definitions/shared/lib/schemas/filter.schema.d.ts +22 -0
- package/src/definitions/shared/lib/schemas/index.d.ts +9 -0
- package/src/definitions/shared/lib/schemas/line.schema.d.ts +72 -0
- package/src/definitions/shared/lib/schemas/number.schema.d.ts +21 -0
- package/src/definitions/shared/lib/schemas/object.schema.d.ts +215 -0
- package/src/definitions/shared/lib/schemas/table.schema.d.ts +458 -0
- package/src/definitions/shared/lib/types/compilation.types.d.ts +36 -0
- package/src/definitions/shared/lib/types/definition.types.d.ts +2 -0
- package/src/definitions/shared/lib/types/descriptor.types.d.ts +39 -0
- package/src/definitions/shared/lib/types/index.d.ts +3 -0
- package/src/getters/index.d.ts +30 -0
- package/src/index.d.ts +4 -0
- package/src/metadata/index.d.ts +4 -0
- package/src/operations/index.d.ts +30 -0
- package/src/registry/index.d.ts +6 -0
- package/src/runtime/index.d.ts +2 -0
- package/src/types.d.ts +307 -0
- package/src/visualization-catalog.d.ts +82 -0
- package/src/web-components/index.d.ts +12 -0
- package/styles.css +2 -0
|
@@ -0,0 +1,587 @@
|
|
|
1
|
+
import type { SerializableVisualizationDefinitionDescriptor, VisualizationDefinitionDescriptor } from '../types';
|
|
2
|
+
declare const descriptors: readonly [VisualizationDefinitionDescriptor<{
|
|
3
|
+
type: "astrato-app-filter-bar";
|
|
4
|
+
version: 1;
|
|
5
|
+
settings?: {
|
|
6
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
7
|
+
selectionMode?: "auto" | "inherit" | "manual" | undefined;
|
|
8
|
+
enableAddingNewFilters?: boolean | undefined;
|
|
9
|
+
enableAssociativeFilter?: boolean | undefined;
|
|
10
|
+
showClearAll?: boolean | undefined;
|
|
11
|
+
showChartBreakdown?: boolean | undefined;
|
|
12
|
+
selectableFieldKeys?: string[] | undefined;
|
|
13
|
+
} | undefined;
|
|
14
|
+
}>, VisualizationDefinitionDescriptor<{
|
|
15
|
+
data: {
|
|
16
|
+
dimensions: {
|
|
17
|
+
fieldKey: string;
|
|
18
|
+
ref: string;
|
|
19
|
+
format?: {
|
|
20
|
+
formatString?: string | undefined;
|
|
21
|
+
formatType?: "custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime" | undefined;
|
|
22
|
+
} | undefined;
|
|
23
|
+
showNullValues?: boolean | undefined;
|
|
24
|
+
temporalGrouping?: {
|
|
25
|
+
dateLevel: "day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end";
|
|
26
|
+
mode: "level";
|
|
27
|
+
} | {
|
|
28
|
+
datePart: "day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso";
|
|
29
|
+
mode: "part";
|
|
30
|
+
} | undefined;
|
|
31
|
+
}[];
|
|
32
|
+
measures: {
|
|
33
|
+
fieldKey: string;
|
|
34
|
+
ref: string;
|
|
35
|
+
aggregation?: string | undefined;
|
|
36
|
+
dataLabels?: {
|
|
37
|
+
visible: boolean;
|
|
38
|
+
placements?: ("inside" | "outside" | "opposite")[] | undefined;
|
|
39
|
+
} | undefined;
|
|
40
|
+
format?: {
|
|
41
|
+
currency?: string | undefined;
|
|
42
|
+
currencyIsPrefix?: boolean | undefined;
|
|
43
|
+
formatString?: string | undefined;
|
|
44
|
+
formatType?: "custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime" | undefined;
|
|
45
|
+
negativeType?: "symbol" | "parenthesis" | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
axis?: "primary" | "secondary" | undefined;
|
|
48
|
+
}[];
|
|
49
|
+
};
|
|
50
|
+
type: "bar";
|
|
51
|
+
version: 1;
|
|
52
|
+
filterGroup?: import("@astrato-io/visualizations/definitions").VisualizationStaticFilterGroup | undefined;
|
|
53
|
+
limiting?: {
|
|
54
|
+
queryLimit?: number | undefined;
|
|
55
|
+
topN?: {
|
|
56
|
+
by: string;
|
|
57
|
+
count: number;
|
|
58
|
+
direction: "asc" | "desc";
|
|
59
|
+
showOthers?: boolean | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
} | undefined;
|
|
62
|
+
presentation?: {
|
|
63
|
+
axes?: {
|
|
64
|
+
dimension?: {
|
|
65
|
+
labelsVisible?: boolean | undefined;
|
|
66
|
+
lineVisible?: boolean | undefined;
|
|
67
|
+
ticksVisible?: boolean | undefined;
|
|
68
|
+
title?: string | undefined;
|
|
69
|
+
titleVisible?: boolean | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
primaryMeasure?: {
|
|
72
|
+
labelsVisible?: boolean | undefined;
|
|
73
|
+
lineVisible?: boolean | undefined;
|
|
74
|
+
ticksVisible?: boolean | undefined;
|
|
75
|
+
title?: string | undefined;
|
|
76
|
+
titleVisible?: boolean | undefined;
|
|
77
|
+
scale?: "linear" | "log" | undefined;
|
|
78
|
+
bands?: {
|
|
79
|
+
start: number;
|
|
80
|
+
end: number;
|
|
81
|
+
color?: string | undefined;
|
|
82
|
+
label?: string | undefined;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
inverted?: boolean | undefined;
|
|
85
|
+
range?: {
|
|
86
|
+
max?: number | undefined;
|
|
87
|
+
min?: number | undefined;
|
|
88
|
+
} | {
|
|
89
|
+
startsAtZero: boolean;
|
|
90
|
+
} | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
secondaryMeasure?: {
|
|
93
|
+
labelsVisible?: boolean | undefined;
|
|
94
|
+
lineVisible?: boolean | undefined;
|
|
95
|
+
ticksVisible?: boolean | undefined;
|
|
96
|
+
title?: string | undefined;
|
|
97
|
+
titleVisible?: boolean | undefined;
|
|
98
|
+
scale?: "linear" | "log" | undefined;
|
|
99
|
+
bands?: {
|
|
100
|
+
start: number;
|
|
101
|
+
end: number;
|
|
102
|
+
color?: string | undefined;
|
|
103
|
+
label?: string | undefined;
|
|
104
|
+
}[] | undefined;
|
|
105
|
+
inverted?: boolean | undefined;
|
|
106
|
+
range?: {
|
|
107
|
+
max?: number | undefined;
|
|
108
|
+
min?: number | undefined;
|
|
109
|
+
} | {
|
|
110
|
+
startsAtZero: boolean;
|
|
111
|
+
} | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
legend?: {
|
|
115
|
+
position?: "top" | "bottom" | "left" | "right" | undefined;
|
|
116
|
+
title?: string | undefined;
|
|
117
|
+
visible?: boolean | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
120
|
+
coloring?: import("../schemas/common.schema").ColoringDefinition | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
sorting?: {
|
|
123
|
+
by: string;
|
|
124
|
+
direction: "asc" | "desc";
|
|
125
|
+
enabled?: boolean | undefined;
|
|
126
|
+
}[] | undefined;
|
|
127
|
+
}>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"combo">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"dot">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"scatter">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"histogram">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"heatMap">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"radar">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"gauge">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"distribution-gauge">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"pie">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"tree">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"treemap">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"sankey">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"waterfall">>, VisualizationDefinitionDescriptor<import("@astrato-io/visualizations/definitions").BroadChartVisualizationDefinition<"word-cloud">>, VisualizationDefinitionDescriptor<{
|
|
128
|
+
data: {
|
|
129
|
+
field: {
|
|
130
|
+
fieldKey: string;
|
|
131
|
+
ref: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
type: "date-picker";
|
|
135
|
+
version: 1;
|
|
136
|
+
settings?: {
|
|
137
|
+
responsive?: boolean | undefined;
|
|
138
|
+
weekStart?: "0" | "1" | undefined;
|
|
139
|
+
pickerState?: "expanded" | "collapsed" | undefined;
|
|
140
|
+
pickerType?: "range" | "inputRange" | "inputSingle" | undefined;
|
|
141
|
+
startDateLabel?: string | {
|
|
142
|
+
type: "variable";
|
|
143
|
+
variableName: string;
|
|
144
|
+
} | null | undefined;
|
|
145
|
+
endDateLabel?: string | {
|
|
146
|
+
type: "variable";
|
|
147
|
+
variableName: string;
|
|
148
|
+
} | null | undefined;
|
|
149
|
+
quickSelect?: boolean | undefined;
|
|
150
|
+
timePickerVisibility?: "always" | "never" | "whenTimestampSelected" | undefined;
|
|
151
|
+
} | undefined;
|
|
152
|
+
}>, VisualizationDefinitionDescriptor<{
|
|
153
|
+
settings: {
|
|
154
|
+
url: string | null;
|
|
155
|
+
};
|
|
156
|
+
type: "iframe";
|
|
157
|
+
version: 1;
|
|
158
|
+
}>, VisualizationDefinitionDescriptor<{
|
|
159
|
+
settings: {
|
|
160
|
+
blur?: number | undefined;
|
|
161
|
+
fit?: "none" | "fill" | "contain" | "cover" | undefined;
|
|
162
|
+
opacity?: number | undefined;
|
|
163
|
+
saturation?: number | undefined;
|
|
164
|
+
shadow?: boolean | undefined;
|
|
165
|
+
source?: {
|
|
166
|
+
sourceKind: "url";
|
|
167
|
+
imageUrl: string;
|
|
168
|
+
} | {
|
|
169
|
+
sourceKind: "mediaItem";
|
|
170
|
+
mediaItemId: string;
|
|
171
|
+
} | {
|
|
172
|
+
sourceKind: "variable";
|
|
173
|
+
variableName: string;
|
|
174
|
+
} | {
|
|
175
|
+
sourceKind: "none";
|
|
176
|
+
} | undefined;
|
|
177
|
+
};
|
|
178
|
+
type: "image";
|
|
179
|
+
version: 1;
|
|
180
|
+
}>, VisualizationDefinitionDescriptor<{
|
|
181
|
+
settings: {
|
|
182
|
+
shape?: "line" | "circle" | "triangle" | "square" | "hexagon" | "arrow" | "rectangle" | "elbow" | undefined;
|
|
183
|
+
backgroundColor?: {
|
|
184
|
+
code: string;
|
|
185
|
+
} | undefined;
|
|
186
|
+
backgroundType?: "image" | "color" | undefined;
|
|
187
|
+
borderRadius?: number | undefined;
|
|
188
|
+
strokeColor?: {
|
|
189
|
+
code: string;
|
|
190
|
+
} | undefined;
|
|
191
|
+
rotate?: number | undefined;
|
|
192
|
+
borderEnabled?: boolean | undefined;
|
|
193
|
+
imageFit?: "none" | "xMidYMid slice" | undefined;
|
|
194
|
+
scale?: number | undefined;
|
|
195
|
+
imageURL?: string | undefined;
|
|
196
|
+
lineThickness?: number | undefined;
|
|
197
|
+
preserveAspectRatio?: boolean | undefined;
|
|
198
|
+
heightBasedSize?: boolean | undefined;
|
|
199
|
+
};
|
|
200
|
+
type: "shape";
|
|
201
|
+
version: 1;
|
|
202
|
+
}>, VisualizationDefinitionDescriptor<{
|
|
203
|
+
settings: {
|
|
204
|
+
align?: "left" | "right" | "justify" | "center" | undefined;
|
|
205
|
+
content?: string | undefined;
|
|
206
|
+
fontFamily?: string | null | undefined;
|
|
207
|
+
fontSize?: number | undefined;
|
|
208
|
+
position?: "top" | "bottom" | "middle" | "auto" | undefined;
|
|
209
|
+
representation?: "html" | "text" | "markdown" | undefined;
|
|
210
|
+
responsive?: boolean | undefined;
|
|
211
|
+
textColor?: string | null | undefined;
|
|
212
|
+
wordWrap?: boolean | undefined;
|
|
213
|
+
};
|
|
214
|
+
type: "simpleTextObject";
|
|
215
|
+
version: 1;
|
|
216
|
+
}>, VisualizationDefinitionDescriptor<{
|
|
217
|
+
settings: {
|
|
218
|
+
customLabel?: {
|
|
219
|
+
enabled: boolean;
|
|
220
|
+
text?: string | null | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
hideLabel?: boolean | undefined;
|
|
223
|
+
inputType?: "slider" | "date" | "checkbox" | "dropdown" | "numeric" | "text" | "textArea" | "toggle" | "range-slider" | undefined;
|
|
224
|
+
placeholder?: string | null | undefined;
|
|
225
|
+
responsive?: boolean | undefined;
|
|
226
|
+
variableId?: string | null | undefined;
|
|
227
|
+
};
|
|
228
|
+
type: "atomic-input";
|
|
229
|
+
version: 1;
|
|
230
|
+
}>, VisualizationDefinitionDescriptor<{
|
|
231
|
+
data: {
|
|
232
|
+
field: {
|
|
233
|
+
fieldKey: string;
|
|
234
|
+
ref: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
type: "slider";
|
|
238
|
+
version: 1;
|
|
239
|
+
settings?: {
|
|
240
|
+
layout?: "auto" | "single" | "multi" | undefined;
|
|
241
|
+
range?: {
|
|
242
|
+
min: number;
|
|
243
|
+
max: number;
|
|
244
|
+
} | undefined;
|
|
245
|
+
step?: number | undefined;
|
|
246
|
+
quickSelect?: boolean | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
}>, VisualizationDefinitionDescriptor<{
|
|
249
|
+
data: {
|
|
250
|
+
dimensions: {
|
|
251
|
+
fieldKey: string;
|
|
252
|
+
ref: string;
|
|
253
|
+
format?: {
|
|
254
|
+
formatString?: string | undefined;
|
|
255
|
+
formatType?: "custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime" | undefined;
|
|
256
|
+
} | undefined;
|
|
257
|
+
showNullValues?: boolean | undefined;
|
|
258
|
+
temporalGrouping?: {
|
|
259
|
+
dateLevel: "day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end";
|
|
260
|
+
mode: "level";
|
|
261
|
+
} | {
|
|
262
|
+
datePart: "day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso";
|
|
263
|
+
mode: "part";
|
|
264
|
+
} | undefined;
|
|
265
|
+
}[];
|
|
266
|
+
measures: {
|
|
267
|
+
fieldKey: string;
|
|
268
|
+
ref: string;
|
|
269
|
+
dataPointShape: "bar" | "circle" | "triangle" | "square" | "star" | "cross" | "diamond" | "n-polygon" | "rectangle" | "saltire" | "vertical-bar" | null | undefined;
|
|
270
|
+
aggregation?: string | undefined;
|
|
271
|
+
format?: {
|
|
272
|
+
currency?: string | undefined;
|
|
273
|
+
currencyIsPrefix?: boolean | undefined;
|
|
274
|
+
formatString?: string | undefined;
|
|
275
|
+
formatType?: "custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime" | undefined;
|
|
276
|
+
negativeType?: "symbol" | "parenthesis" | undefined;
|
|
277
|
+
} | undefined;
|
|
278
|
+
axis?: "primary" | "secondary" | undefined;
|
|
279
|
+
}[];
|
|
280
|
+
};
|
|
281
|
+
type: "line";
|
|
282
|
+
version: 1;
|
|
283
|
+
filterGroup?: import("@astrato-io/visualizations/definitions").VisualizationStaticFilterGroup | undefined;
|
|
284
|
+
limiting?: {
|
|
285
|
+
queryLimit?: number | undefined;
|
|
286
|
+
} | undefined;
|
|
287
|
+
presentation?: {
|
|
288
|
+
axes?: {
|
|
289
|
+
dimension?: {
|
|
290
|
+
labelsVisible?: boolean | undefined;
|
|
291
|
+
lineVisible?: boolean | undefined;
|
|
292
|
+
ticksVisible?: boolean | undefined;
|
|
293
|
+
title?: string | undefined;
|
|
294
|
+
titleVisible?: boolean | undefined;
|
|
295
|
+
} | undefined;
|
|
296
|
+
primaryMeasure?: {
|
|
297
|
+
labelsVisible?: boolean | undefined;
|
|
298
|
+
lineVisible?: boolean | undefined;
|
|
299
|
+
ticksVisible?: boolean | undefined;
|
|
300
|
+
title?: string | undefined;
|
|
301
|
+
titleVisible?: boolean | undefined;
|
|
302
|
+
scale?: "linear" | "log" | undefined;
|
|
303
|
+
bands?: {
|
|
304
|
+
start: number;
|
|
305
|
+
end: number;
|
|
306
|
+
color?: string | undefined;
|
|
307
|
+
label?: string | undefined;
|
|
308
|
+
}[] | undefined;
|
|
309
|
+
inverted?: boolean | undefined;
|
|
310
|
+
range?: {
|
|
311
|
+
max?: number | undefined;
|
|
312
|
+
min?: number | undefined;
|
|
313
|
+
} | {
|
|
314
|
+
startsAtZero: boolean;
|
|
315
|
+
} | undefined;
|
|
316
|
+
} | undefined;
|
|
317
|
+
secondaryMeasure?: {
|
|
318
|
+
labelsVisible?: boolean | undefined;
|
|
319
|
+
lineVisible?: boolean | undefined;
|
|
320
|
+
ticksVisible?: boolean | undefined;
|
|
321
|
+
title?: string | undefined;
|
|
322
|
+
titleVisible?: boolean | undefined;
|
|
323
|
+
scale?: "linear" | "log" | undefined;
|
|
324
|
+
bands?: {
|
|
325
|
+
start: number;
|
|
326
|
+
end: number;
|
|
327
|
+
color?: string | undefined;
|
|
328
|
+
label?: string | undefined;
|
|
329
|
+
}[] | undefined;
|
|
330
|
+
inverted?: boolean | undefined;
|
|
331
|
+
range?: {
|
|
332
|
+
max?: number | undefined;
|
|
333
|
+
min?: number | undefined;
|
|
334
|
+
} | {
|
|
335
|
+
startsAtZero: boolean;
|
|
336
|
+
} | undefined;
|
|
337
|
+
} | undefined;
|
|
338
|
+
} | undefined;
|
|
339
|
+
legend?: {
|
|
340
|
+
position?: "top" | "bottom" | "left" | "right" | undefined;
|
|
341
|
+
title?: string | undefined;
|
|
342
|
+
visible?: boolean | undefined;
|
|
343
|
+
} | undefined;
|
|
344
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
345
|
+
coloring?: import("../schemas/common.schema").ColoringDefinition | undefined;
|
|
346
|
+
dataLabels?: {
|
|
347
|
+
visible: boolean;
|
|
348
|
+
density?: "low" | "medium" | "high" | undefined;
|
|
349
|
+
} | undefined;
|
|
350
|
+
} | undefined;
|
|
351
|
+
sorting?: {
|
|
352
|
+
by: string;
|
|
353
|
+
direction: "asc" | "desc";
|
|
354
|
+
enabled?: boolean | undefined;
|
|
355
|
+
}[] | undefined;
|
|
356
|
+
}>, VisualizationDefinitionDescriptor<{
|
|
357
|
+
data: {
|
|
358
|
+
columns: ({
|
|
359
|
+
fieldKey: string;
|
|
360
|
+
ref: string;
|
|
361
|
+
role: "dimension";
|
|
362
|
+
format?: {
|
|
363
|
+
formatString?: string | undefined;
|
|
364
|
+
formatType?: "custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime" | undefined;
|
|
365
|
+
} | undefined;
|
|
366
|
+
showNullValues?: boolean | undefined;
|
|
367
|
+
temporalGrouping?: {
|
|
368
|
+
dateLevel: "day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end";
|
|
369
|
+
mode: "level";
|
|
370
|
+
} | {
|
|
371
|
+
datePart: "day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso";
|
|
372
|
+
mode: "part";
|
|
373
|
+
} | undefined;
|
|
374
|
+
} | {
|
|
375
|
+
fieldKey: string;
|
|
376
|
+
ref: string;
|
|
377
|
+
role: "measure";
|
|
378
|
+
aggregation?: string | undefined;
|
|
379
|
+
format?: {
|
|
380
|
+
currency?: string | undefined;
|
|
381
|
+
currencyIsPrefix?: boolean | undefined;
|
|
382
|
+
formatString?: string | undefined;
|
|
383
|
+
formatType?: "custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime" | undefined;
|
|
384
|
+
negativeType?: "symbol" | "parenthesis" | undefined;
|
|
385
|
+
} | undefined;
|
|
386
|
+
})[];
|
|
387
|
+
structure?: "normal" | undefined;
|
|
388
|
+
} | {
|
|
389
|
+
dimensions: {
|
|
390
|
+
fieldKey: string;
|
|
391
|
+
ref: string;
|
|
392
|
+
format?: {
|
|
393
|
+
formatString?: string | undefined;
|
|
394
|
+
formatType?: "custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime" | undefined;
|
|
395
|
+
} | undefined;
|
|
396
|
+
showNullValues?: boolean | undefined;
|
|
397
|
+
temporalGrouping?: {
|
|
398
|
+
dateLevel: "day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end";
|
|
399
|
+
mode: "level";
|
|
400
|
+
} | {
|
|
401
|
+
datePart: "day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso";
|
|
402
|
+
mode: "part";
|
|
403
|
+
} | undefined;
|
|
404
|
+
}[];
|
|
405
|
+
measures: {
|
|
406
|
+
fieldKey: string;
|
|
407
|
+
ref: string;
|
|
408
|
+
aggregation?: string | undefined;
|
|
409
|
+
format?: {
|
|
410
|
+
currency?: string | undefined;
|
|
411
|
+
currencyIsPrefix?: boolean | undefined;
|
|
412
|
+
formatString?: string | undefined;
|
|
413
|
+
formatType?: "custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime" | undefined;
|
|
414
|
+
negativeType?: "symbol" | "parenthesis" | undefined;
|
|
415
|
+
} | undefined;
|
|
416
|
+
}[];
|
|
417
|
+
structure: "expandable";
|
|
418
|
+
} | {
|
|
419
|
+
columnDimensions: {
|
|
420
|
+
fieldKey: string;
|
|
421
|
+
ref: string;
|
|
422
|
+
format?: {
|
|
423
|
+
formatString?: string | undefined;
|
|
424
|
+
formatType?: "custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime" | undefined;
|
|
425
|
+
} | undefined;
|
|
426
|
+
showNullValues?: boolean | undefined;
|
|
427
|
+
temporalGrouping?: {
|
|
428
|
+
dateLevel: "day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end";
|
|
429
|
+
mode: "level";
|
|
430
|
+
} | {
|
|
431
|
+
datePart: "day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso";
|
|
432
|
+
mode: "part";
|
|
433
|
+
} | undefined;
|
|
434
|
+
}[];
|
|
435
|
+
measures: {
|
|
436
|
+
fieldKey: string;
|
|
437
|
+
ref: string;
|
|
438
|
+
aggregation?: string | undefined;
|
|
439
|
+
format?: {
|
|
440
|
+
currency?: string | undefined;
|
|
441
|
+
currencyIsPrefix?: boolean | undefined;
|
|
442
|
+
formatString?: string | undefined;
|
|
443
|
+
formatType?: "custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime" | undefined;
|
|
444
|
+
negativeType?: "symbol" | "parenthesis" | undefined;
|
|
445
|
+
} | undefined;
|
|
446
|
+
}[];
|
|
447
|
+
rowDimensions: {
|
|
448
|
+
fieldKey: string;
|
|
449
|
+
ref: string;
|
|
450
|
+
format?: {
|
|
451
|
+
formatString?: string | undefined;
|
|
452
|
+
formatType?: "custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime" | undefined;
|
|
453
|
+
} | undefined;
|
|
454
|
+
showNullValues?: boolean | undefined;
|
|
455
|
+
temporalGrouping?: {
|
|
456
|
+
dateLevel: "day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end";
|
|
457
|
+
mode: "level";
|
|
458
|
+
} | {
|
|
459
|
+
datePart: "day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso";
|
|
460
|
+
mode: "part";
|
|
461
|
+
} | undefined;
|
|
462
|
+
}[];
|
|
463
|
+
structure: "pivot";
|
|
464
|
+
};
|
|
465
|
+
type: "table";
|
|
466
|
+
version: 1;
|
|
467
|
+
filterGroup?: import("@astrato-io/visualizations/definitions").VisualizationStaticFilterGroup | undefined;
|
|
468
|
+
limiting?: {
|
|
469
|
+
queryLimit?: number | undefined;
|
|
470
|
+
} | undefined;
|
|
471
|
+
presentation?: {
|
|
472
|
+
background?: {
|
|
473
|
+
type: "none" | "single" | "zebra";
|
|
474
|
+
color?: string | undefined;
|
|
475
|
+
evenColor?: string | undefined;
|
|
476
|
+
oddColor?: string | undefined;
|
|
477
|
+
} | undefined;
|
|
478
|
+
body?: {
|
|
479
|
+
fontColor?: string | undefined;
|
|
480
|
+
fontFamily?: string | undefined;
|
|
481
|
+
fontSize?: number | undefined;
|
|
482
|
+
fontStyle?: {
|
|
483
|
+
weight?: number | null | undefined;
|
|
484
|
+
bold?: boolean | undefined;
|
|
485
|
+
italic?: boolean | undefined;
|
|
486
|
+
underline?: boolean | undefined;
|
|
487
|
+
strikethrough?: boolean | undefined;
|
|
488
|
+
} | undefined;
|
|
489
|
+
horizontalAlign?: "auto" | "left" | "right" | "center" | undefined;
|
|
490
|
+
verticalAlign?: "top" | "bottom" | "middle" | "auto" | undefined;
|
|
491
|
+
} | undefined;
|
|
492
|
+
borders?: {
|
|
493
|
+
enabled: boolean;
|
|
494
|
+
color?: string | undefined;
|
|
495
|
+
dividerColor?: string | undefined;
|
|
496
|
+
dividers?: "auto" | "none" | "all" | "horizontal" | "vertical" | undefined;
|
|
497
|
+
lineStyle?: "line" | "dashed" | "dotted" | undefined;
|
|
498
|
+
radius?: number | undefined;
|
|
499
|
+
strokeWidth?: number | undefined;
|
|
500
|
+
} | undefined;
|
|
501
|
+
header?: {
|
|
502
|
+
backgroundColor?: string | undefined;
|
|
503
|
+
borderColor?: string | undefined;
|
|
504
|
+
fontColor?: string | undefined;
|
|
505
|
+
fontFamily?: string | undefined;
|
|
506
|
+
fontSize?: number | undefined;
|
|
507
|
+
fontStyle?: {
|
|
508
|
+
weight?: number | null | undefined;
|
|
509
|
+
bold?: boolean | undefined;
|
|
510
|
+
italic?: boolean | undefined;
|
|
511
|
+
underline?: boolean | undefined;
|
|
512
|
+
strikethrough?: boolean | undefined;
|
|
513
|
+
} | undefined;
|
|
514
|
+
responsiveHeight?: boolean | undefined;
|
|
515
|
+
} | undefined;
|
|
516
|
+
highlight?: {
|
|
517
|
+
mode: "column" | "row" | "none" | "row-and-column";
|
|
518
|
+
backgroundColor?: string | undefined;
|
|
519
|
+
textColor?: string | undefined;
|
|
520
|
+
} | undefined;
|
|
521
|
+
layout?: {
|
|
522
|
+
columnWidthBehavior?: "responsive" | "static" | undefined;
|
|
523
|
+
rowHeight?: number | undefined;
|
|
524
|
+
} | undefined;
|
|
525
|
+
} | undefined;
|
|
526
|
+
sorting?: {
|
|
527
|
+
by: string;
|
|
528
|
+
direction: "asc" | "desc";
|
|
529
|
+
enabled?: boolean | undefined;
|
|
530
|
+
}[] | undefined;
|
|
531
|
+
totals?: {
|
|
532
|
+
applyTo?: "columns" | "both" | "rows" | undefined;
|
|
533
|
+
enabled?: boolean | undefined;
|
|
534
|
+
showRecordsCount?: boolean | undefined;
|
|
535
|
+
style?: {
|
|
536
|
+
backgroundColor?: string | null | undefined;
|
|
537
|
+
fontColor?: string | null | undefined;
|
|
538
|
+
fontStyle?: {
|
|
539
|
+
weight?: number | null | undefined;
|
|
540
|
+
bold?: boolean | undefined;
|
|
541
|
+
italic?: boolean | undefined;
|
|
542
|
+
underline?: boolean | undefined;
|
|
543
|
+
strikethrough?: boolean | undefined;
|
|
544
|
+
} | undefined;
|
|
545
|
+
position?: "top" | "bottom" | undefined;
|
|
546
|
+
responsiveHeight?: boolean | undefined;
|
|
547
|
+
} | undefined;
|
|
548
|
+
} | undefined;
|
|
549
|
+
}>, VisualizationDefinitionDescriptor<{
|
|
550
|
+
data: {
|
|
551
|
+
measure: {
|
|
552
|
+
fieldKey: string;
|
|
553
|
+
ref: string;
|
|
554
|
+
aggregation?: string | undefined;
|
|
555
|
+
format?: {
|
|
556
|
+
currency?: string | undefined;
|
|
557
|
+
currencyIsPrefix?: boolean | undefined;
|
|
558
|
+
formatString?: string | undefined;
|
|
559
|
+
formatType?: "custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime" | undefined;
|
|
560
|
+
negativeType?: "symbol" | "parenthesis" | undefined;
|
|
561
|
+
} | undefined;
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
type: "number";
|
|
565
|
+
version: 1;
|
|
566
|
+
filterGroup?: import("@astrato-io/visualizations/definitions").VisualizationStaticFilterGroup | undefined;
|
|
567
|
+
}>, VisualizationDefinitionDescriptor<{
|
|
568
|
+
data: {
|
|
569
|
+
field: {
|
|
570
|
+
fieldKey: string;
|
|
571
|
+
ref: string;
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
type: "filter";
|
|
575
|
+
version: 1;
|
|
576
|
+
presentation?: {
|
|
577
|
+
mode?: "dropdown" | "listbox" | undefined;
|
|
578
|
+
quickSelect?: boolean | undefined;
|
|
579
|
+
responsive?: boolean | undefined;
|
|
580
|
+
searchable?: boolean | undefined;
|
|
581
|
+
showProgressBar?: boolean | undefined;
|
|
582
|
+
} | undefined;
|
|
583
|
+
}>];
|
|
584
|
+
export declare const getVisualizationDefinitionDescriptor: (type: string, version?: number) => VisualizationDefinitionDescriptor | undefined;
|
|
585
|
+
export declare const listVisualizationDefinitionDescriptors: () => SerializableVisualizationDefinitionDescriptor[];
|
|
586
|
+
export declare const getSupportedVisualizationDefinitionTypes: () => Array<(typeof descriptors)[number]["type"]>;
|
|
587
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { VisualizationDefinitionIssue, VisualizationDefinitionValidationResult } from '../types';
|
|
2
|
+
export declare const getVisualizationDefinitionEnvelopeIssue: (definition: unknown) => VisualizationDefinitionIssue | undefined;
|
|
3
|
+
export declare const validateVisualizationDefinition: (definition: unknown) => VisualizationDefinitionValidationResult;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const appFilterBarVisualizationDefinitionSchema: z.ZodObject<{
|
|
3
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
4
|
+
orientation: z.ZodOptional<z.ZodEnum<{
|
|
5
|
+
horizontal: "horizontal";
|
|
6
|
+
vertical: "vertical";
|
|
7
|
+
}>>;
|
|
8
|
+
selectionMode: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
auto: "auto";
|
|
10
|
+
inherit: "inherit";
|
|
11
|
+
manual: "manual";
|
|
12
|
+
}>>;
|
|
13
|
+
enableAddingNewFilters: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
enableAssociativeFilter: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
showClearAll: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
showChartBreakdown: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
selectableFieldKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
}, z.core.$strict>>;
|
|
19
|
+
type: z.ZodLiteral<"astrato-app-filter-bar">;
|
|
20
|
+
version: z.ZodLiteral<1>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export type AppFilterBarVisualizationDefinition = z.infer<typeof appFilterBarVisualizationDefinitionSchema>;
|