@astrato-io/visualizations 0.0.0-stage → 0.6.5
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 +8477 -0
- package/VISUALIZATION_DEFINITIONS.md +2378 -0
- package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
- package/chunks/LinearProgress-B1FeWaen.js +253 -0
- package/chunks/accessors-DemrDevR.js +128 -0
- package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
- package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
- package/chunks/builder-B6dWSIdD.js +12289 -0
- package/chunks/color-settings-ZIvgNTq1.js +10 -0
- package/chunks/coloring-B1XAfg6b.js +664 -0
- package/chunks/debounce-fn-CUixuz45.js +7 -0
- package/chunks/definitions-D3OVqmXl.js +2102 -0
- package/chunks/escobar-eDjtGpkC.js +34606 -0
- package/chunks/events-WZut5Ow6.js +4 -0
- package/chunks/extend-BKUkc4_i.js +37 -0
- package/chunks/filter.compiler-DBsyRBJt.js +70 -0
- package/chunks/filtering-tqjAyJH5.js +1072 -0
- package/chunks/grouping-type-On4s9Thj.js +3 -0
- package/chunks/handlers-VTBfIZYZ.js +13072 -0
- package/chunks/isEqual-BDxAhUo8.js +7514 -0
- package/chunks/line.compiler-CzdM5Ld0.js +198 -0
- package/chunks/metadata-BGElBy5Z.js +28 -0
- package/chunks/number.compiler-G-R7y16P.js +53 -0
- package/chunks/operations-CTNUX6Sy.js +26249 -0
- package/chunks/range-CiwTbMig.js +22 -0
- package/chunks/registry-CsQQzukD.js +920 -0
- package/chunks/requirements-DYjZCFyf.js +6 -0
- package/chunks/rolldown-runtime-DleVn1XH.js +28 -0
- package/chunks/set-coloring-datafield-B3uIS1Pe.js +8 -0
- package/chunks/shared-CBvcC5YV.js +1218 -0
- package/chunks/src-BOS6SqkZ.js +67 -0
- package/chunks/src-D9XogOrc.js +422 -0
- package/chunks/standalone-0M4HlmDW2.js +3944 -0
- package/chunks/standalone-0ashe9w1.js +411 -0
- package/chunks/standalone-B7jax8wa.js +339 -0
- package/chunks/standalone-BK0VYU-l.js +463 -0
- package/chunks/standalone-BMIbT1b2.js +4619 -0
- package/chunks/standalone-BZV5vOwA.js +6 -0
- package/chunks/standalone-BhDrWj4p.js +1980 -0
- package/chunks/standalone-BtSHCp2U2.js +673 -0
- package/chunks/standalone-BvaKdky9.js +344 -0
- package/chunks/standalone-BwtM31-f.js +2 -0
- package/chunks/standalone-C3gg736V.js +1129 -0
- package/chunks/standalone-CC1VUjO32.js +299 -0
- package/chunks/standalone-C_rYnZ0N.js +741 -0
- package/chunks/standalone-CoLrAxRV.js +13198 -0
- package/chunks/standalone-DC-aUgXC.js +3855 -0
- package/chunks/standalone-DCtRoTWg.js +675 -0
- package/chunks/standalone-DUDFTBqL.js +833 -0
- package/chunks/standalone-DhZkX9Td.js +2 -0
- package/chunks/standalone-DtLElfuM.js +512 -0
- package/chunks/standalone-G9Q4Uczu.js +726 -0
- package/chunks/standalone-JuLF-OoH.js +1762 -0
- package/chunks/standalone-_DeX21JJ.js +383 -0
- package/chunks/standalone-gFhKZh8m.js +179 -0
- package/chunks/standalone-tDNy-SFH.js +281 -0
- package/chunks/standalone-v1oxfU20.js +68 -0
- package/chunks/standalone-vzBY6q0I2.js +140 -0
- package/chunks/stroke-dash-UgMEcCS4.js +6 -0
- package/chunks/table.compiler-tb914oj3.js +222 -0
- package/chunks/typeof-CJDtcySz.js +13 -0
- package/chunks/ui-DQWtv2iM.js +63551 -0
- package/chunks/url-utils-B17gj_mr.js +5501 -0
- package/chunks/useFieldName-BvdcoJRl.js +7 -0
- package/chunks/utils-Bg7K-t6K.js +32379 -0
- package/chunks/view-Bn83C8d9.js +12466 -0
- package/definitions.js +3 -0
- package/docs/operations/astrato-app-filter-bar.md +161 -0
- package/docs/operations/bar.md +6968 -0
- package/docs/operations/combo.md +5804 -0
- package/docs/operations/date-picker.md +644 -0
- package/docs/operations/distribution-gauge.md +3082 -0
- package/docs/operations/dot.md +5570 -0
- package/docs/operations/filter.md +1483 -0
- package/docs/operations/gauge.md +3316 -0
- package/docs/operations/heatMap.md +5944 -0
- package/docs/operations/histogram.md +1856 -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 +6391 -0
- package/docs/operations/number.md +3903 -0
- package/docs/operations/pie.md +5956 -0
- package/docs/operations/radar.md +4566 -0
- package/docs/operations/sankey.md +3088 -0
- package/docs/operations/scatter.md +5969 -0
- package/docs/operations/shape.md +315 -0
- package/docs/operations/simpleTextObject.md +699 -0
- package/docs/operations/slider.md +220 -0
- package/docs/operations/table.md +8800 -0
- package/docs/operations/tree.md +2867 -0
- package/docs/operations/treemap.md +3527 -0
- package/docs/operations/waterfall.md +2928 -0
- package/docs/operations/word-cloud.md +3000 -0
- package/getters.js +18 -0
- package/index.js +1183 -0
- package/metadata.js +20 -0
- package/operations.js +64 -0
- package/package.json +185 -4
- package/src/definitions/index.d.ts +2 -0
- package/src/definitions/model/definitions/available-fields.d.ts +35 -0
- package/src/definitions/model/definitions/compilers/compile.d.ts +7 -0
- package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1341 -0
- package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
- package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
- package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
- package/src/definitions/model/definitions/index.d.ts +23 -0
- package/src/definitions/model/definitions/registry/compile.d.ts +2 -0
- package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
- package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
- package/src/definitions/model/definitions/schemas/app-filter-bar.schema.d.ts +22 -0
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +73 -0
- package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +68 -0
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +303 -0
- package/src/definitions/model/definitions/schemas/filter.schema.d.ts +22 -0
- package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +72 -0
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +21 -0
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +215 -0
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +458 -0
- package/src/definitions/model/definitions/types/compilation.types.d.ts +36 -0
- package/src/definitions/model/definitions/types/definition.types.d.ts +2 -0
- package/src/definitions/model/definitions/types/descriptor.types.d.ts +39 -0
- package/src/definitions/model/definitions/types/index.d.ts +3 -0
- package/src/definitions/model/definitions/validation.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,644 @@
|
|
|
1
|
+
<!-- Generated from operation manifests. Do not edit this file manually. -->
|
|
2
|
+
|
|
3
|
+
# `date-picker` operations
|
|
4
|
+
|
|
5
|
+
Reference for `@astrato-io/visualizations@0.6.5`.
|
|
6
|
+
|
|
7
|
+
[All visualization types](./index.md)
|
|
8
|
+
|
|
9
|
+
Use each schema below for the request’s `payload`, not for the whole operation request. Names and payloads are specific to this visualization type. An operation can still require particular fields or chart state; see its description.
|
|
10
|
+
|
|
11
|
+
## Available operations
|
|
12
|
+
|
|
13
|
+
- [`addDatePickerDimension`](#adddatepickerdimension)
|
|
14
|
+
- [`removeDatePickerDimension`](#removedatepickerdimension)
|
|
15
|
+
- [`setDatePickerBackgroundColor`](#setdatepickerbackgroundcolor)
|
|
16
|
+
- [`setDatePickerCustomDatePresets`](#setdatepickercustomdatepresets)
|
|
17
|
+
- [`setDatePickerEndDateLabel`](#setdatepickerenddatelabel)
|
|
18
|
+
- [`setDatePickerHoverColor`](#setdatepickerhovercolor)
|
|
19
|
+
- [`setDatePickerQuickSelect`](#setdatepickerquickselect)
|
|
20
|
+
- [`setDatePickerResponsive`](#setdatepickerresponsive)
|
|
21
|
+
- [`setDatePickerSelectedColor`](#setdatepickerselectedcolor)
|
|
22
|
+
- [`setDatePickerStartDateLabel`](#setdatepickerstartdatelabel)
|
|
23
|
+
- [`setDatePickerState`](#setdatepickerstate)
|
|
24
|
+
- [`setDatePickerTimePickerVisibility`](#setdatepickertimepickervisibility)
|
|
25
|
+
- [`setDatePickerType`](#setdatepickertype)
|
|
26
|
+
- [`setDatePickerVisibleDatePresets`](#setdatepickervisibledatepresets)
|
|
27
|
+
- [`setDatePickerWeekStart`](#setdatepickerweekstart)
|
|
28
|
+
- [`setStaticFilterGroup`](#setstaticfiltergroup)
|
|
29
|
+
|
|
30
|
+
## `addDatePickerDimension`
|
|
31
|
+
|
|
32
|
+
Add date picker dimension
|
|
33
|
+
|
|
34
|
+
Add one date dimension to the date picker
|
|
35
|
+
|
|
36
|
+
**Payload schema**
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
41
|
+
"type": "object",
|
|
42
|
+
"properties": {
|
|
43
|
+
"key": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Engine key of the field to be added as a dimension, eg. \"[Cars].[Horsepower]\""
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": ["key"],
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"title": "Add date picker dimension schema"
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## `removeDatePickerDimension`
|
|
55
|
+
|
|
56
|
+
Remove date picker dimension
|
|
57
|
+
|
|
58
|
+
Remove the date dimension from the date picker
|
|
59
|
+
|
|
60
|
+
**Payload schema**
|
|
61
|
+
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
65
|
+
"type": "object",
|
|
66
|
+
"properties": {
|
|
67
|
+
"dataItemInternalKey": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "Internal key of the data item of the dimension to be removed"
|
|
70
|
+
},
|
|
71
|
+
"dataItemUniqueSignature": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "Unique signature of the data item of the dimension to be removed"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"title": "Remove date picker dimension schema"
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## `setDatePickerBackgroundColor`
|
|
83
|
+
|
|
84
|
+
Date picker background color
|
|
85
|
+
|
|
86
|
+
Set the date picker background color
|
|
87
|
+
|
|
88
|
+
**Payload schema**
|
|
89
|
+
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
93
|
+
"anyOf": [
|
|
94
|
+
{
|
|
95
|
+
"type": "string",
|
|
96
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "null"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"title": "Date picker background color schema"
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## `setDatePickerCustomDatePresets`
|
|
107
|
+
|
|
108
|
+
Date picker custom date presets
|
|
109
|
+
|
|
110
|
+
Set custom rolling date range presets
|
|
111
|
+
|
|
112
|
+
**Payload schema**
|
|
113
|
+
|
|
114
|
+
```json
|
|
115
|
+
{
|
|
116
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
117
|
+
"title": "Date picker custom date presets schema",
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"rangeType": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"enum": ["day", "month", "year"]
|
|
125
|
+
},
|
|
126
|
+
"rangeValue": {
|
|
127
|
+
"type": "number",
|
|
128
|
+
"minimum": 0
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": ["rangeType", "rangeValue"],
|
|
132
|
+
"additionalProperties": false
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## `setDatePickerEndDateLabel`
|
|
138
|
+
|
|
139
|
+
Date picker end date label
|
|
140
|
+
|
|
141
|
+
Set the end-date input label
|
|
142
|
+
|
|
143
|
+
**Payload schema**
|
|
144
|
+
|
|
145
|
+
```json
|
|
146
|
+
{
|
|
147
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
148
|
+
"title": "Date picker end date label schema",
|
|
149
|
+
"anyOf": [
|
|
150
|
+
{
|
|
151
|
+
"anyOf": [
|
|
152
|
+
{
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"type": "object",
|
|
157
|
+
"properties": {
|
|
158
|
+
"type": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"const": "variable"
|
|
161
|
+
},
|
|
162
|
+
"variableName": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"required": ["type", "variableName"],
|
|
167
|
+
"additionalProperties": false
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"type": "null"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## `setDatePickerHoverColor`
|
|
179
|
+
|
|
180
|
+
Date picker hover color
|
|
181
|
+
|
|
182
|
+
Set the date picker hover color
|
|
183
|
+
|
|
184
|
+
**Payload schema**
|
|
185
|
+
|
|
186
|
+
```json
|
|
187
|
+
{
|
|
188
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
189
|
+
"anyOf": [
|
|
190
|
+
{
|
|
191
|
+
"type": "string",
|
|
192
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"type": "null"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"title": "Date picker hover color schema"
|
|
199
|
+
}
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## `setDatePickerQuickSelect`
|
|
203
|
+
|
|
204
|
+
Date picker quick select
|
|
205
|
+
|
|
206
|
+
Enable or disable immediate filtering when a date is selected
|
|
207
|
+
|
|
208
|
+
**Payload schema**
|
|
209
|
+
|
|
210
|
+
```json
|
|
211
|
+
{
|
|
212
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
213
|
+
"title": "Date picker quick select schema",
|
|
214
|
+
"type": "boolean"
|
|
215
|
+
}
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## `setDatePickerResponsive`
|
|
219
|
+
|
|
220
|
+
Date picker responsive sizing
|
|
221
|
+
|
|
222
|
+
Enable or disable responsive sizing for the date picker
|
|
223
|
+
|
|
224
|
+
**Payload schema**
|
|
225
|
+
|
|
226
|
+
```json
|
|
227
|
+
{
|
|
228
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
229
|
+
"title": "Date picker responsive schema",
|
|
230
|
+
"type": "boolean"
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## `setDatePickerSelectedColor`
|
|
235
|
+
|
|
236
|
+
Date picker selected color
|
|
237
|
+
|
|
238
|
+
Set the date picker selected date color
|
|
239
|
+
|
|
240
|
+
**Payload schema**
|
|
241
|
+
|
|
242
|
+
```json
|
|
243
|
+
{
|
|
244
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
245
|
+
"anyOf": [
|
|
246
|
+
{
|
|
247
|
+
"type": "string",
|
|
248
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"type": "null"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"title": "Date picker selected color schema"
|
|
255
|
+
}
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
## `setDatePickerStartDateLabel`
|
|
259
|
+
|
|
260
|
+
Date picker start date label
|
|
261
|
+
|
|
262
|
+
Set the single-date or start-date input label
|
|
263
|
+
|
|
264
|
+
**Payload schema**
|
|
265
|
+
|
|
266
|
+
```json
|
|
267
|
+
{
|
|
268
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
269
|
+
"title": "Date picker start date label schema",
|
|
270
|
+
"anyOf": [
|
|
271
|
+
{
|
|
272
|
+
"anyOf": [
|
|
273
|
+
{
|
|
274
|
+
"type": "string"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"type": "object",
|
|
278
|
+
"properties": {
|
|
279
|
+
"type": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"const": "variable"
|
|
282
|
+
},
|
|
283
|
+
"variableName": {
|
|
284
|
+
"type": "string"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"required": ["type", "variableName"],
|
|
288
|
+
"additionalProperties": false
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"type": "null"
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
## `setDatePickerState`
|
|
300
|
+
|
|
301
|
+
Date picker state
|
|
302
|
+
|
|
303
|
+
Set whether the calendar is collapsed or expanded
|
|
304
|
+
|
|
305
|
+
**Payload schema**
|
|
306
|
+
|
|
307
|
+
```json
|
|
308
|
+
{
|
|
309
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
310
|
+
"type": "string",
|
|
311
|
+
"enum": ["expanded", "collapsed"],
|
|
312
|
+
"title": "Date picker state schema"
|
|
313
|
+
}
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
## `setDatePickerTimePickerVisibility`
|
|
317
|
+
|
|
318
|
+
Date picker time picker visibility
|
|
319
|
+
|
|
320
|
+
Set when the time picker is visible
|
|
321
|
+
|
|
322
|
+
**Payload schema**
|
|
323
|
+
|
|
324
|
+
```json
|
|
325
|
+
{
|
|
326
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
327
|
+
"title": "Date picker time picker visibility schema",
|
|
328
|
+
"type": "string",
|
|
329
|
+
"enum": ["always", "whenTimestampSelected", "never"]
|
|
330
|
+
}
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
## `setDatePickerType`
|
|
334
|
+
|
|
335
|
+
Date picker type
|
|
336
|
+
|
|
337
|
+
Set whether the date picker selects a single date or a date range
|
|
338
|
+
|
|
339
|
+
**Payload schema**
|
|
340
|
+
|
|
341
|
+
```json
|
|
342
|
+
{
|
|
343
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
344
|
+
"type": "string",
|
|
345
|
+
"enum": ["range", "inputRange", "inputSingle"],
|
|
346
|
+
"title": "Date picker type schema"
|
|
347
|
+
}
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
## `setDatePickerVisibleDatePresets`
|
|
351
|
+
|
|
352
|
+
Date picker visible date presets
|
|
353
|
+
|
|
354
|
+
Set which predefined date range presets are visible
|
|
355
|
+
|
|
356
|
+
**Payload schema**
|
|
357
|
+
|
|
358
|
+
```json
|
|
359
|
+
{
|
|
360
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
361
|
+
"title": "Date picker visible date presets schema",
|
|
362
|
+
"type": "array",
|
|
363
|
+
"items": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"enum": [
|
|
366
|
+
"Last 12 Months",
|
|
367
|
+
"Last 90 days",
|
|
368
|
+
"Last 30 days",
|
|
369
|
+
"Last 7 days",
|
|
370
|
+
"Current year",
|
|
371
|
+
"Current quarter",
|
|
372
|
+
"Current month",
|
|
373
|
+
"Current MTD",
|
|
374
|
+
"Previous month",
|
|
375
|
+
"Previous MTD",
|
|
376
|
+
"Previous quarter",
|
|
377
|
+
"Previous QTD",
|
|
378
|
+
"Previous week",
|
|
379
|
+
"Previous week to date",
|
|
380
|
+
"Previous year",
|
|
381
|
+
"Previous YTD",
|
|
382
|
+
"Current QTD",
|
|
383
|
+
"Today",
|
|
384
|
+
"Current week to date",
|
|
385
|
+
"Current YTD",
|
|
386
|
+
"Yesterday"
|
|
387
|
+
]
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
## `setDatePickerWeekStart`
|
|
393
|
+
|
|
394
|
+
Date picker week start
|
|
395
|
+
|
|
396
|
+
Set whether the calendar week starts on Sunday or Monday
|
|
397
|
+
|
|
398
|
+
**Payload schema**
|
|
399
|
+
|
|
400
|
+
```json
|
|
401
|
+
{
|
|
402
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
403
|
+
"type": "string",
|
|
404
|
+
"enum": ["1", "0"],
|
|
405
|
+
"title": "Date picker week start schema"
|
|
406
|
+
}
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
## `setStaticFilterGroup`
|
|
410
|
+
|
|
411
|
+
Set static filter group
|
|
412
|
+
|
|
413
|
+
Replace all static filters with a nested AND/OR filter group.
|
|
414
|
+
|
|
415
|
+
**Payload schema**
|
|
416
|
+
|
|
417
|
+
```json
|
|
418
|
+
{
|
|
419
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
420
|
+
"description": "Replace all static filters with this nested AND/OR filter group.",
|
|
421
|
+
"title": "Set static filter group schema",
|
|
422
|
+
"$ref": "#/$defs/__schema0",
|
|
423
|
+
"$defs": {
|
|
424
|
+
"__schema0": {
|
|
425
|
+
"type": "object",
|
|
426
|
+
"properties": {
|
|
427
|
+
"operator": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"enum": ["and", "or"]
|
|
430
|
+
},
|
|
431
|
+
"filters": {
|
|
432
|
+
"type": "array",
|
|
433
|
+
"items": {
|
|
434
|
+
"anyOf": [
|
|
435
|
+
{
|
|
436
|
+
"type": "object",
|
|
437
|
+
"properties": {
|
|
438
|
+
"fieldKey": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label."
|
|
441
|
+
},
|
|
442
|
+
"operator": {
|
|
443
|
+
"anyOf": [
|
|
444
|
+
{
|
|
445
|
+
"type": "string",
|
|
446
|
+
"enum": [
|
|
447
|
+
"equals",
|
|
448
|
+
"doesNotEqual",
|
|
449
|
+
"greaterThan",
|
|
450
|
+
"lessThan",
|
|
451
|
+
"greaterThanOrEqualTo",
|
|
452
|
+
"lessThanOrEqualTo",
|
|
453
|
+
"isBetween",
|
|
454
|
+
"isNotBetween",
|
|
455
|
+
"isNull",
|
|
456
|
+
"notNull",
|
|
457
|
+
"contains",
|
|
458
|
+
"excludes",
|
|
459
|
+
"like",
|
|
460
|
+
"notLike",
|
|
461
|
+
"startsWith",
|
|
462
|
+
"endsWith",
|
|
463
|
+
"predefined_date_range",
|
|
464
|
+
"previous",
|
|
465
|
+
"current",
|
|
466
|
+
"before",
|
|
467
|
+
"after",
|
|
468
|
+
"inList",
|
|
469
|
+
"excludedFromList",
|
|
470
|
+
"divider"
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"type": "string",
|
|
475
|
+
"enum": [
|
|
476
|
+
"ytd",
|
|
477
|
+
"mtd",
|
|
478
|
+
"qtd",
|
|
479
|
+
"wtd",
|
|
480
|
+
"pytd",
|
|
481
|
+
"pmtd",
|
|
482
|
+
"pqtd",
|
|
483
|
+
"pwtd",
|
|
484
|
+
"l12m",
|
|
485
|
+
"l90d",
|
|
486
|
+
"l30d",
|
|
487
|
+
"l7d",
|
|
488
|
+
"cy",
|
|
489
|
+
"cq",
|
|
490
|
+
"cm",
|
|
491
|
+
"py",
|
|
492
|
+
"pm",
|
|
493
|
+
"pq",
|
|
494
|
+
"pw",
|
|
495
|
+
"today",
|
|
496
|
+
"yesterday",
|
|
497
|
+
"mindate",
|
|
498
|
+
"maxdate"
|
|
499
|
+
]
|
|
500
|
+
}
|
|
501
|
+
]
|
|
502
|
+
},
|
|
503
|
+
"values": {
|
|
504
|
+
"type": "object",
|
|
505
|
+
"properties": {
|
|
506
|
+
"value": {
|
|
507
|
+
"anyOf": [
|
|
508
|
+
{
|
|
509
|
+
"type": "string"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"type": "object",
|
|
513
|
+
"properties": {
|
|
514
|
+
"type": {
|
|
515
|
+
"type": "string",
|
|
516
|
+
"const": "variable"
|
|
517
|
+
},
|
|
518
|
+
"variableName": {
|
|
519
|
+
"type": "string"
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"required": ["type", "variableName"],
|
|
523
|
+
"additionalProperties": false
|
|
524
|
+
}
|
|
525
|
+
]
|
|
526
|
+
},
|
|
527
|
+
"valueFrom": {
|
|
528
|
+
"anyOf": [
|
|
529
|
+
{
|
|
530
|
+
"type": "string"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"type": "object",
|
|
534
|
+
"properties": {
|
|
535
|
+
"type": {
|
|
536
|
+
"type": "string",
|
|
537
|
+
"const": "variable"
|
|
538
|
+
},
|
|
539
|
+
"variableName": {
|
|
540
|
+
"type": "string"
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"required": ["type", "variableName"],
|
|
544
|
+
"additionalProperties": false
|
|
545
|
+
}
|
|
546
|
+
]
|
|
547
|
+
},
|
|
548
|
+
"valueTo": {
|
|
549
|
+
"anyOf": [
|
|
550
|
+
{
|
|
551
|
+
"type": "string"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"type": "object",
|
|
555
|
+
"properties": {
|
|
556
|
+
"type": {
|
|
557
|
+
"type": "string",
|
|
558
|
+
"const": "variable"
|
|
559
|
+
},
|
|
560
|
+
"variableName": {
|
|
561
|
+
"type": "string"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
"required": ["type", "variableName"],
|
|
565
|
+
"additionalProperties": false
|
|
566
|
+
}
|
|
567
|
+
]
|
|
568
|
+
},
|
|
569
|
+
"secondValue": {
|
|
570
|
+
"anyOf": [
|
|
571
|
+
{
|
|
572
|
+
"type": "string"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"type": "object",
|
|
576
|
+
"properties": {
|
|
577
|
+
"type": {
|
|
578
|
+
"type": "string",
|
|
579
|
+
"const": "variable"
|
|
580
|
+
},
|
|
581
|
+
"variableName": {
|
|
582
|
+
"type": "string"
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
"required": ["type", "variableName"],
|
|
586
|
+
"additionalProperties": false
|
|
587
|
+
}
|
|
588
|
+
]
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"additionalProperties": false
|
|
592
|
+
},
|
|
593
|
+
"dateFilter": {
|
|
594
|
+
"anyOf": [
|
|
595
|
+
{
|
|
596
|
+
"type": "string",
|
|
597
|
+
"enum": [
|
|
598
|
+
"ytd",
|
|
599
|
+
"mtd",
|
|
600
|
+
"qtd",
|
|
601
|
+
"wtd",
|
|
602
|
+
"pytd",
|
|
603
|
+
"pmtd",
|
|
604
|
+
"pqtd",
|
|
605
|
+
"pwtd",
|
|
606
|
+
"l12m",
|
|
607
|
+
"l90d",
|
|
608
|
+
"l30d",
|
|
609
|
+
"l7d",
|
|
610
|
+
"cy",
|
|
611
|
+
"cq",
|
|
612
|
+
"cm",
|
|
613
|
+
"py",
|
|
614
|
+
"pm",
|
|
615
|
+
"pq",
|
|
616
|
+
"pw",
|
|
617
|
+
"today",
|
|
618
|
+
"yesterday",
|
|
619
|
+
"mindate",
|
|
620
|
+
"maxdate"
|
|
621
|
+
]
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"type": "null"
|
|
625
|
+
}
|
|
626
|
+
]
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
"required": ["fieldKey", "operator", "values"],
|
|
630
|
+
"additionalProperties": false
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"$ref": "#/$defs/__schema0"
|
|
634
|
+
}
|
|
635
|
+
]
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"required": ["operator", "filters"],
|
|
640
|
+
"additionalProperties": false
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
```
|