@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,56 @@
|
|
|
1
|
+
<!-- Generated from operation manifests. Do not edit this file manually. -->
|
|
2
|
+
|
|
3
|
+
# `iframe` operations
|
|
4
|
+
|
|
5
|
+
Reference for `@astrato-io/visualizations@0.6.4`.
|
|
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
|
+
- [`setIframeUrl`](#setiframeurl)
|
|
14
|
+
|
|
15
|
+
## `setIframeUrl`
|
|
16
|
+
|
|
17
|
+
Iframe URL
|
|
18
|
+
|
|
19
|
+
Set a static URL, bind the URL to an existing text workbook variable by exact name, or clear it with null. Variable bindings update the URL dynamically without changing the variable value.
|
|
20
|
+
|
|
21
|
+
**Payload schema**
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
26
|
+
"title": "Set iframe URL schema",
|
|
27
|
+
"anyOf": [
|
|
28
|
+
{
|
|
29
|
+
"anyOf": [
|
|
30
|
+
{
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"type": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"const": "variable"
|
|
39
|
+
},
|
|
40
|
+
"variableName": {
|
|
41
|
+
"description": "Exact name of an existing compatible workbook variable",
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 1
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": ["type", "variableName"],
|
|
47
|
+
"additionalProperties": false
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "null"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
```
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
<!-- Generated from operation manifests. Do not edit this file manually. -->
|
|
2
|
+
|
|
3
|
+
# `image` operations
|
|
4
|
+
|
|
5
|
+
Reference for `@astrato-io/visualizations@0.6.4`.
|
|
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
|
+
- [`setImageBlur`](#setimageblur)
|
|
14
|
+
- [`setImageFit`](#setimagefit)
|
|
15
|
+
- [`setImageOpacity`](#setimageopacity)
|
|
16
|
+
- [`setImageSaturation`](#setimagesaturation)
|
|
17
|
+
- [`setImageShadow`](#setimageshadow)
|
|
18
|
+
- [`setImageSource`](#setimagesource)
|
|
19
|
+
|
|
20
|
+
## `setImageBlur`
|
|
21
|
+
|
|
22
|
+
Image blur
|
|
23
|
+
|
|
24
|
+
Set image blur from 0 to 10
|
|
25
|
+
|
|
26
|
+
**Payload schema**
|
|
27
|
+
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
31
|
+
"title": "Set image blur schema",
|
|
32
|
+
"type": "number",
|
|
33
|
+
"minimum": 0,
|
|
34
|
+
"maximum": 10
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## `setImageFit`
|
|
39
|
+
|
|
40
|
+
Image fit
|
|
41
|
+
|
|
42
|
+
Set how the image fits inside the object
|
|
43
|
+
|
|
44
|
+
**Payload schema**
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
49
|
+
"title": "Set image fit schema",
|
|
50
|
+
"type": "string",
|
|
51
|
+
"enum": ["contain", "cover", "fill", "none"]
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## `setImageOpacity`
|
|
56
|
+
|
|
57
|
+
Image opacity
|
|
58
|
+
|
|
59
|
+
Set image opacity from 0 to 1
|
|
60
|
+
|
|
61
|
+
**Payload schema**
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
66
|
+
"title": "Set image opacity schema",
|
|
67
|
+
"type": "number",
|
|
68
|
+
"minimum": 0,
|
|
69
|
+
"maximum": 1
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## `setImageSaturation`
|
|
74
|
+
|
|
75
|
+
Image saturation
|
|
76
|
+
|
|
77
|
+
Set image saturation from 0 to 1
|
|
78
|
+
|
|
79
|
+
**Payload schema**
|
|
80
|
+
|
|
81
|
+
```json
|
|
82
|
+
{
|
|
83
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
84
|
+
"title": "Set image saturation schema",
|
|
85
|
+
"type": "number",
|
|
86
|
+
"minimum": 0,
|
|
87
|
+
"maximum": 1
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## `setImageShadow`
|
|
92
|
+
|
|
93
|
+
Image shadow
|
|
94
|
+
|
|
95
|
+
Show or hide the image shadow
|
|
96
|
+
|
|
97
|
+
**Payload schema**
|
|
98
|
+
|
|
99
|
+
```json
|
|
100
|
+
{
|
|
101
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
102
|
+
"title": "Set image shadow schema",
|
|
103
|
+
"type": "boolean"
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## `setImageSource`
|
|
108
|
+
|
|
109
|
+
Image source
|
|
110
|
+
|
|
111
|
+
Set or clear the image source. Use sourceKind "variable" with the exact name of an existing text workbook variable to display its URL dynamically. This does not change the variable value.
|
|
112
|
+
|
|
113
|
+
**Payload schema**
|
|
114
|
+
|
|
115
|
+
```json
|
|
116
|
+
{
|
|
117
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
118
|
+
"title": "Set image source schema",
|
|
119
|
+
"anyOf": [
|
|
120
|
+
{
|
|
121
|
+
"type": "object",
|
|
122
|
+
"properties": {
|
|
123
|
+
"sourceKind": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"const": "url"
|
|
126
|
+
},
|
|
127
|
+
"imageUrl": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": ["sourceKind", "imageUrl"],
|
|
132
|
+
"additionalProperties": false
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"type": "object",
|
|
136
|
+
"properties": {
|
|
137
|
+
"sourceKind": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"const": "mediaItem"
|
|
140
|
+
},
|
|
141
|
+
"mediaItemId": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": ["sourceKind", "mediaItemId"],
|
|
146
|
+
"additionalProperties": false
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {
|
|
151
|
+
"sourceKind": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"const": "variable"
|
|
154
|
+
},
|
|
155
|
+
"variableName": {
|
|
156
|
+
"description": "Exact name of an existing text workbook variable",
|
|
157
|
+
"type": "string",
|
|
158
|
+
"minLength": 1
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"required": ["sourceKind", "variableName"],
|
|
162
|
+
"additionalProperties": false
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"type": "object",
|
|
166
|
+
"properties": {
|
|
167
|
+
"sourceKind": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"const": "none"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"required": ["sourceKind"],
|
|
173
|
+
"additionalProperties": false
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
```
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<!-- Generated from operation manifests. Do not edit this file manually. -->
|
|
2
|
+
|
|
3
|
+
# Visualization operations reference
|
|
4
|
+
|
|
5
|
+
Reference for `@astrato-io/visualizations@0.6.4`.
|
|
6
|
+
|
|
7
|
+
Read the page for your visualization type to find every operation exposed by its standalone metadata, including its description and complete JSON payload schema. These files are included in the installed package under `docs/operations/`; you can read them without importing JavaScript or loading a chart.
|
|
8
|
+
|
|
9
|
+
## Using operations
|
|
10
|
+
|
|
11
|
+
An operation request contains `name` and `payload`, with an optional `id` for identifying its result. The schemas on these pages describe only `payload`. Validate your payload against the schema before applying the operation. The operation API does not automatically validate every payload against these schemas.
|
|
12
|
+
|
|
13
|
+
Use `applyRuntimeOperations` to modify a runtime-owned instance. See [Applying operations](../../README.md#applying-operations-to-a-runtime-instance) for the call shape, field metadata requirements and result handling.
|
|
14
|
+
|
|
15
|
+
This reference describes the standalone operation catalog, rather than the smaller Astrato Actions menu. Availability for a particular chart can depend on its current configuration and data. Use the reference bundled with your installed package when comparing different releases.
|
|
16
|
+
|
|
17
|
+
## Visualization types
|
|
18
|
+
|
|
19
|
+
| Type | Family | Operations |
|
|
20
|
+
| ------------------------------------------------------- | ------ | ---------- |
|
|
21
|
+
| [`astrato-app-filter-bar`](./astrato-app-filter-bar.md) | filter | 8 |
|
|
22
|
+
| [`bar`](./bar.md) | chart | 153 |
|
|
23
|
+
| [`combo`](./combo.md) | chart | 129 |
|
|
24
|
+
| [`date-picker`](./date-picker.md) | filter | 16 |
|
|
25
|
+
| [`distribution-gauge`](./distribution-gauge.md) | chart | 50 |
|
|
26
|
+
| [`dot`](./dot.md) | chart | 107 |
|
|
27
|
+
| [`filter`](./filter.md) | filter | 33 |
|
|
28
|
+
| [`gauge`](./gauge.md) | chart | 60 |
|
|
29
|
+
| [`heatMap`](./heatMap.md) | chart | 118 |
|
|
30
|
+
| [`histogram`](./histogram.md) | chart | 47 |
|
|
31
|
+
| [`iframe`](./iframe.md) | object | 1 |
|
|
32
|
+
| [`image`](./image.md) | object | 6 |
|
|
33
|
+
| [`line`](./line.md) | chart | 143 |
|
|
34
|
+
| [`number`](./number.md) | object | 72 |
|
|
35
|
+
| [`pie`](./pie.md) | chart | 120 |
|
|
36
|
+
| [`radar`](./radar.md) | chart | 81 |
|
|
37
|
+
| [`sankey`](./sankey.md) | chart | 49 |
|
|
38
|
+
| [`scatter`](./scatter.md) | chart | 122 |
|
|
39
|
+
| [`shape`](./shape.md) | object | 14 |
|
|
40
|
+
| [`simpleTextObject`](./simpleTextObject.md) | object | 35 |
|
|
41
|
+
| [`slider`](./slider.md) | filter | 7 |
|
|
42
|
+
| [`table`](./table.md) | chart | 232 |
|
|
43
|
+
| [`tree`](./tree.md) | chart | 59 |
|
|
44
|
+
| [`treemap`](./treemap.md) | chart | 68 |
|
|
45
|
+
| [`waterfall`](./waterfall.md) | chart | 56 |
|
|
46
|
+
| [`word-cloud`](./word-cloud.md) | chart | 44 |
|