@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.
Files changed (139) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE +93 -0
  3. package/README.md +843 -2
  4. package/THIRD_PARTY_NOTICES.md +8477 -0
  5. package/VISUALIZATION_DEFINITIONS.md +2378 -0
  6. package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
  7. package/chunks/LinearProgress-B1FeWaen.js +253 -0
  8. package/chunks/accessors-DemrDevR.js +128 -0
  9. package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
  10. package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
  11. package/chunks/builder-B6dWSIdD.js +12289 -0
  12. package/chunks/color-settings-ZIvgNTq1.js +10 -0
  13. package/chunks/coloring-B1XAfg6b.js +664 -0
  14. package/chunks/debounce-fn-CUixuz45.js +7 -0
  15. package/chunks/definitions-D3OVqmXl.js +2102 -0
  16. package/chunks/escobar-eDjtGpkC.js +34606 -0
  17. package/chunks/events-WZut5Ow6.js +4 -0
  18. package/chunks/extend-BKUkc4_i.js +37 -0
  19. package/chunks/filter.compiler-DBsyRBJt.js +70 -0
  20. package/chunks/filtering-tqjAyJH5.js +1072 -0
  21. package/chunks/grouping-type-On4s9Thj.js +3 -0
  22. package/chunks/handlers-VTBfIZYZ.js +13072 -0
  23. package/chunks/isEqual-BDxAhUo8.js +7514 -0
  24. package/chunks/line.compiler-CzdM5Ld0.js +198 -0
  25. package/chunks/metadata-BGElBy5Z.js +28 -0
  26. package/chunks/number.compiler-G-R7y16P.js +53 -0
  27. package/chunks/operations-CTNUX6Sy.js +26249 -0
  28. package/chunks/range-CiwTbMig.js +22 -0
  29. package/chunks/registry-CsQQzukD.js +920 -0
  30. package/chunks/requirements-DYjZCFyf.js +6 -0
  31. package/chunks/rolldown-runtime-DleVn1XH.js +28 -0
  32. package/chunks/set-coloring-datafield-B3uIS1Pe.js +8 -0
  33. package/chunks/shared-CBvcC5YV.js +1218 -0
  34. package/chunks/src-BOS6SqkZ.js +67 -0
  35. package/chunks/src-D9XogOrc.js +422 -0
  36. package/chunks/standalone-0M4HlmDW2.js +3944 -0
  37. package/chunks/standalone-0ashe9w1.js +411 -0
  38. package/chunks/standalone-B7jax8wa.js +339 -0
  39. package/chunks/standalone-BK0VYU-l.js +463 -0
  40. package/chunks/standalone-BMIbT1b2.js +4619 -0
  41. package/chunks/standalone-BZV5vOwA.js +6 -0
  42. package/chunks/standalone-BhDrWj4p.js +1980 -0
  43. package/chunks/standalone-BtSHCp2U2.js +673 -0
  44. package/chunks/standalone-BvaKdky9.js +344 -0
  45. package/chunks/standalone-BwtM31-f.js +2 -0
  46. package/chunks/standalone-C3gg736V.js +1129 -0
  47. package/chunks/standalone-CC1VUjO32.js +299 -0
  48. package/chunks/standalone-C_rYnZ0N.js +741 -0
  49. package/chunks/standalone-CoLrAxRV.js +13198 -0
  50. package/chunks/standalone-DC-aUgXC.js +3855 -0
  51. package/chunks/standalone-DCtRoTWg.js +675 -0
  52. package/chunks/standalone-DUDFTBqL.js +833 -0
  53. package/chunks/standalone-DhZkX9Td.js +2 -0
  54. package/chunks/standalone-DtLElfuM.js +512 -0
  55. package/chunks/standalone-G9Q4Uczu.js +726 -0
  56. package/chunks/standalone-JuLF-OoH.js +1762 -0
  57. package/chunks/standalone-_DeX21JJ.js +383 -0
  58. package/chunks/standalone-gFhKZh8m.js +179 -0
  59. package/chunks/standalone-tDNy-SFH.js +281 -0
  60. package/chunks/standalone-v1oxfU20.js +68 -0
  61. package/chunks/standalone-vzBY6q0I2.js +140 -0
  62. package/chunks/stroke-dash-UgMEcCS4.js +6 -0
  63. package/chunks/table.compiler-tb914oj3.js +222 -0
  64. package/chunks/typeof-CJDtcySz.js +13 -0
  65. package/chunks/ui-DQWtv2iM.js +63551 -0
  66. package/chunks/url-utils-B17gj_mr.js +5501 -0
  67. package/chunks/useFieldName-BvdcoJRl.js +7 -0
  68. package/chunks/utils-Bg7K-t6K.js +32379 -0
  69. package/chunks/view-Bn83C8d9.js +12466 -0
  70. package/definitions.js +3 -0
  71. package/docs/operations/astrato-app-filter-bar.md +161 -0
  72. package/docs/operations/bar.md +6968 -0
  73. package/docs/operations/combo.md +5804 -0
  74. package/docs/operations/date-picker.md +644 -0
  75. package/docs/operations/distribution-gauge.md +3082 -0
  76. package/docs/operations/dot.md +5570 -0
  77. package/docs/operations/filter.md +1483 -0
  78. package/docs/operations/gauge.md +3316 -0
  79. package/docs/operations/heatMap.md +5944 -0
  80. package/docs/operations/histogram.md +1856 -0
  81. package/docs/operations/iframe.md +56 -0
  82. package/docs/operations/image.md +177 -0
  83. package/docs/operations/index.md +46 -0
  84. package/docs/operations/line.md +6391 -0
  85. package/docs/operations/number.md +3903 -0
  86. package/docs/operations/pie.md +5956 -0
  87. package/docs/operations/radar.md +4566 -0
  88. package/docs/operations/sankey.md +3088 -0
  89. package/docs/operations/scatter.md +5969 -0
  90. package/docs/operations/shape.md +315 -0
  91. package/docs/operations/simpleTextObject.md +699 -0
  92. package/docs/operations/slider.md +220 -0
  93. package/docs/operations/table.md +8800 -0
  94. package/docs/operations/tree.md +2867 -0
  95. package/docs/operations/treemap.md +3527 -0
  96. package/docs/operations/waterfall.md +2928 -0
  97. package/docs/operations/word-cloud.md +3000 -0
  98. package/getters.js +18 -0
  99. package/index.js +1183 -0
  100. package/metadata.js +20 -0
  101. package/operations.js +64 -0
  102. package/package.json +185 -4
  103. package/src/definitions/index.d.ts +2 -0
  104. package/src/definitions/model/definitions/available-fields.d.ts +35 -0
  105. package/src/definitions/model/definitions/compilers/compile.d.ts +7 -0
  106. package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
  107. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1341 -0
  108. package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
  109. package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
  110. package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
  111. package/src/definitions/model/definitions/index.d.ts +23 -0
  112. package/src/definitions/model/definitions/registry/compile.d.ts +2 -0
  113. package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
  114. package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
  115. package/src/definitions/model/definitions/schemas/app-filter-bar.schema.d.ts +22 -0
  116. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +73 -0
  117. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +68 -0
  118. package/src/definitions/model/definitions/schemas/common.schema.d.ts +303 -0
  119. package/src/definitions/model/definitions/schemas/filter.schema.d.ts +22 -0
  120. package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
  121. package/src/definitions/model/definitions/schemas/line.schema.d.ts +72 -0
  122. package/src/definitions/model/definitions/schemas/number.schema.d.ts +21 -0
  123. package/src/definitions/model/definitions/schemas/object.schema.d.ts +215 -0
  124. package/src/definitions/model/definitions/schemas/table.schema.d.ts +458 -0
  125. package/src/definitions/model/definitions/types/compilation.types.d.ts +36 -0
  126. package/src/definitions/model/definitions/types/definition.types.d.ts +2 -0
  127. package/src/definitions/model/definitions/types/descriptor.types.d.ts +39 -0
  128. package/src/definitions/model/definitions/types/index.d.ts +3 -0
  129. package/src/definitions/model/definitions/validation.d.ts +3 -0
  130. package/src/getters/index.d.ts +30 -0
  131. package/src/index.d.ts +4 -0
  132. package/src/metadata/index.d.ts +4 -0
  133. package/src/operations/index.d.ts +30 -0
  134. package/src/registry/index.d.ts +6 -0
  135. package/src/runtime/index.d.ts +2 -0
  136. package/src/types.d.ts +307 -0
  137. package/src/visualization-catalog.d.ts +82 -0
  138. package/src/web-components/index.d.ts +12 -0
  139. package/styles.css +2 -0
@@ -0,0 +1,315 @@
1
+ <!-- Generated from operation manifests. Do not edit this file manually. -->
2
+
3
+ # `shape` 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
+ - [`setShapeBackgroundColor`](#setshapebackgroundcolor)
14
+ - [`setShapeBackgroundType`](#setshapebackgroundtype)
15
+ - [`setShapeBorderColor`](#setshapebordercolor)
16
+ - [`setShapeBorderEnabled`](#setshapeborderenabled)
17
+ - [`setShapeBorderRadius`](#setshapeborderradius)
18
+ - [`setShapeBorderStyle`](#setshapeborderstyle)
19
+ - [`setShapeBorderWidth`](#setshapeborderwidth)
20
+ - [`setShapeHeightBasedSize`](#setshapeheightbasedsize)
21
+ - [`setShapeImageFit`](#setshapeimagefit)
22
+ - [`setShapeImageURL`](#setshapeimageurl)
23
+ - [`setShapePreserveAspectRatio`](#setshapepreserveaspectratio)
24
+ - [`setShapeRotation`](#setshaperotation)
25
+ - [`setShapeScale`](#setshapescale)
26
+ - [`setShapeType`](#setshapetype)
27
+
28
+ ## `setShapeBackgroundColor`
29
+
30
+ Background color
31
+
32
+ Set the background color of the shape
33
+
34
+ **Payload schema**
35
+
36
+ ```json
37
+ {
38
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
39
+ "title": "Shape background color schema",
40
+ "type": "object",
41
+ "properties": {
42
+ "code": {
43
+ "type": "string",
44
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
45
+ "description": "Background color code (hex, with optional alpha)"
46
+ }
47
+ },
48
+ "required": ["code"],
49
+ "additionalProperties": false
50
+ }
51
+ ```
52
+
53
+ ## `setShapeBackgroundType`
54
+
55
+ Background type
56
+
57
+ Choose between solid color or image background
58
+
59
+ **Payload schema**
60
+
61
+ ```json
62
+ {
63
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
64
+ "title": "Shape background type schema",
65
+ "type": "string",
66
+ "enum": ["color", "image"],
67
+ "description": "Background type - color or image"
68
+ }
69
+ ```
70
+
71
+ ## `setShapeBorderColor`
72
+
73
+ Border color
74
+
75
+ Set the color of the shape border
76
+
77
+ **Payload schema**
78
+
79
+ ```json
80
+ {
81
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
82
+ "title": "Shape border color schema",
83
+ "type": "object",
84
+ "properties": {
85
+ "code": {
86
+ "type": "string",
87
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
88
+ "description": "Border color code (hex, with optional alpha)"
89
+ }
90
+ },
91
+ "required": ["code"],
92
+ "additionalProperties": false
93
+ }
94
+ ```
95
+
96
+ ## `setShapeBorderEnabled`
97
+
98
+ Border enabled
99
+
100
+ Enable or disable the shape border
101
+
102
+ **Payload schema**
103
+
104
+ ```json
105
+ {
106
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
107
+ "title": "Shape border enabled schema",
108
+ "type": "boolean",
109
+ "description": "Enable or disable the border"
110
+ }
111
+ ```
112
+
113
+ ## `setShapeBorderRadius`
114
+
115
+ Border radius
116
+
117
+ Set the corner radius for rounded shape edges
118
+
119
+ **Payload schema**
120
+
121
+ ```json
122
+ {
123
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
124
+ "title": "Shape border radius schema",
125
+ "type": "number",
126
+ "minimum": 0,
127
+ "maximum": 50,
128
+ "description": "Border radius of the shape (in pixels)"
129
+ }
130
+ ```
131
+
132
+ ## `setShapeBorderStyle`
133
+
134
+ Border style
135
+
136
+ Set the border style (solid, dashed) and dash pattern properties
137
+
138
+ **Payload schema**
139
+
140
+ ```json
141
+ {
142
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
143
+ "type": "object",
144
+ "properties": {
145
+ "style": {
146
+ "type": "string",
147
+ "enum": ["line", "dashed", "dotted"],
148
+ "description": "Border style - line, dashed, dotted"
149
+ },
150
+ "lineThickness": {
151
+ "type": "number",
152
+ "minimum": 0,
153
+ "maximum": 50,
154
+ "description": "Border thickness (in pixels)"
155
+ },
156
+ "dashSpace": {
157
+ "type": "number",
158
+ "minimum": 0,
159
+ "maximum": 100
160
+ },
161
+ "dashWidth": {
162
+ "type": "number",
163
+ "minimum": 0,
164
+ "maximum": 100
165
+ }
166
+ },
167
+ "required": ["style", "lineThickness", "dashSpace", "dashWidth"],
168
+ "additionalProperties": false,
169
+ "title": "Shape border style schema"
170
+ }
171
+ ```
172
+
173
+ ## `setShapeBorderWidth`
174
+
175
+ Border width
176
+
177
+ Adjust the thickness of the shape border
178
+
179
+ **Payload schema**
180
+
181
+ ```json
182
+ {
183
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
184
+ "title": "Shape border width schema",
185
+ "type": "number",
186
+ "minimum": 0,
187
+ "maximum": 50,
188
+ "description": "Border thickness (in pixels)"
189
+ }
190
+ ```
191
+
192
+ ## `setShapeHeightBasedSize`
193
+
194
+ Height based size
195
+
196
+ Calculate shape size based on height rather than width
197
+
198
+ **Payload schema**
199
+
200
+ ```json
201
+ {
202
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
203
+ "title": "Shape height based size schema",
204
+ "type": "boolean",
205
+ "description": "Fit to vertical space instead of horizontal space, useful for line shapes"
206
+ }
207
+ ```
208
+
209
+ ## `setShapeImageFit`
210
+
211
+ Image fit
212
+
213
+ Control how the image fits within the shape
214
+
215
+ **Payload schema**
216
+
217
+ ```json
218
+ {
219
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
220
+ "title": "Shape image fit schema",
221
+ "type": "string",
222
+ "enum": ["none", "xMidYMid slice"],
223
+ "description": "Image fit type"
224
+ }
225
+ ```
226
+
227
+ ## `setShapeImageURL`
228
+
229
+ Image URL
230
+
231
+ Set the URL of the image to use as shape background
232
+
233
+ **Payload schema**
234
+
235
+ ```json
236
+ {
237
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
238
+ "title": "Shape image URL schema",
239
+ "type": "string",
240
+ "description": "Image URL"
241
+ }
242
+ ```
243
+
244
+ ## `setShapePreserveAspectRatio`
245
+
246
+ Preserve aspect ratio
247
+
248
+ Maintain the original aspect ratio when resizing the shape
249
+
250
+ **Payload schema**
251
+
252
+ ```json
253
+ {
254
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
255
+ "title": "Shape preserve aspect ratio schema",
256
+ "type": "boolean",
257
+ "description": "Preserve aspect ratio of the shape"
258
+ }
259
+ ```
260
+
261
+ ## `setShapeRotation`
262
+
263
+ Shape rotation
264
+
265
+ Rotate the shape by a specified angle
266
+
267
+ **Payload schema**
268
+
269
+ ```json
270
+ {
271
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
272
+ "title": "Shape rotation schema",
273
+ "type": "number",
274
+ "minimum": 0,
275
+ "maximum": 360,
276
+ "description": "Rotation of the shape (in degrees)"
277
+ }
278
+ ```
279
+
280
+ ## `setShapeScale`
281
+
282
+ Shape scale
283
+
284
+ Adjust the size scale of the shape
285
+
286
+ **Payload schema**
287
+
288
+ ```json
289
+ {
290
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
291
+ "title": "Shape scale schema",
292
+ "type": "number",
293
+ "minimum": 0,
294
+ "maximum": 1,
295
+ "description": "Scale of the shape (defined as float between 0 and 1)"
296
+ }
297
+ ```
298
+
299
+ ## `setShapeType`
300
+
301
+ Shape type
302
+
303
+ Set the type of shape
304
+
305
+ **Payload schema**
306
+
307
+ ```json
308
+ {
309
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
310
+ "type": "string",
311
+ "enum": ["square", "circle", "triangle", "hexagon", "line", "arrow", "elbow", "rectangle"],
312
+ "description": "Shape type",
313
+ "title": "Shape type schema"
314
+ }
315
+ ```