@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.
Files changed (145) 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 +8387 -0
  5. package/VISUALIZATION_DEFINITIONS.md +2378 -0
  6. package/chunks/LinearProgress-CUZ0D8_t.js +253 -0
  7. package/chunks/Radio-Ciu-F4CU.js +957 -0
  8. package/chunks/ToggleButton-BCJc3Jlc.js +153 -0
  9. package/chunks/_baseFlatten-DPXPOrea.js +7076 -0
  10. package/chunks/accessors-DemrDevR.js +128 -0
  11. package/chunks/app-filter-bar.compiler-j_CVoWTa.js +55 -0
  12. package/chunks/bar.compiler-oqaPzIut.js +370 -0
  13. package/chunks/color-settings-ZIvgNTq1.js +10 -0
  14. package/chunks/coloring-C16AUZEi.js +663 -0
  15. package/chunks/data-item-resolution-1lvYB5ln.js +53 -0
  16. package/chunks/debounce-fn-CUixuz45.js +7 -0
  17. package/chunks/escobar-BGqT1EsE.js +34580 -0
  18. package/chunks/event-bus-KiSiCJrC.js +2683 -0
  19. package/chunks/events-WZut5Ow6.js +4 -0
  20. package/chunks/extend-BKUkc4_i.js +37 -0
  21. package/chunks/filter.compiler-CuLtc_02.js +60 -0
  22. package/chunks/filtering-Yq4DEa0t.js +953 -0
  23. package/chunks/gauge-target-type-BkKXAqkX.js +4 -0
  24. package/chunks/grouping-type-BX_9Ix5q.js +3 -0
  25. package/chunks/interfaces-VUY4_yVO.js +8742 -0
  26. package/chunks/line-settings-DfYTUyPz.js +4 -0
  27. package/chunks/line.compiler-BpA_6Tc7.js +188 -0
  28. package/chunks/metadata-CPXdYoln.js +28 -0
  29. package/chunks/number.compiler-DbkWcG4S.js +44 -0
  30. package/chunks/pie-uv42Eqal.js +10 -0
  31. package/chunks/range-DrzdfBX4.js +22 -0
  32. package/chunks/registry-CExpGJ1N.js +920 -0
  33. package/chunks/requirements-DNhuShLS.js +6 -0
  34. package/chunks/rolldown-runtime-DleVn1XH.js +28 -0
  35. package/chunks/set-coloring-datafield-B3uIS1Pe.js +8 -0
  36. package/chunks/shared-CKDL4hx9.js +1171 -0
  37. package/chunks/src-BC7cGcJ-.js +2024 -0
  38. package/chunks/src-BOS6SqkZ.js +67 -0
  39. package/chunks/src-C0LgoUWY.js +26105 -0
  40. package/chunks/src-Cum_2NLV.js +12145 -0
  41. package/chunks/src-D9XogOrc.js +422 -0
  42. package/chunks/src-Dun_jXtz.js +10295 -0
  43. package/chunks/src-DvX5LU9T.js +14742 -0
  44. package/chunks/standalone-87YV_m9n.js +687 -0
  45. package/chunks/standalone-BDCwI6Hn.js +4619 -0
  46. package/chunks/standalone-BH5NqDwp.js +1763 -0
  47. package/chunks/standalone-BLVAWLNJ.js +385 -0
  48. package/chunks/standalone-BPomtAVs.js +2 -0
  49. package/chunks/standalone-BXyBcUOQ.js +2 -0
  50. package/chunks/standalone-BYm1UjLr.js +140 -0
  51. package/chunks/standalone-BllF4rDp.js +383 -0
  52. package/chunks/standalone-BmfMt74U.js +726 -0
  53. package/chunks/standalone-BqWyrnZI.js +281 -0
  54. package/chunks/standalone-C85u7U6I.js +340 -0
  55. package/chunks/standalone-CCNtaJ7s.js +741 -0
  56. package/chunks/standalone-CDQnr6qT.js +345 -0
  57. package/chunks/standalone-CNyNHKVx.js +674 -0
  58. package/chunks/standalone-CY57qwZ-.js +1129 -0
  59. package/chunks/standalone-CZynjFG7.js +12979 -0
  60. package/chunks/standalone-D5vnf-9y.js +3943 -0
  61. package/chunks/standalone-DFPva_ku.js +299 -0
  62. package/chunks/standalone-DQxxNwF8.js +675 -0
  63. package/chunks/standalone-DS9T0FZ-.js +830 -0
  64. package/chunks/standalone-Dx3MLlrO.js +512 -0
  65. package/chunks/standalone-DzixzZAL.js +411 -0
  66. package/chunks/standalone-QJ1kKMnO.js +6 -0
  67. package/chunks/standalone-jiz0L2Dg.js +3855 -0
  68. package/chunks/standalone-lBm9hQ-q.js +179 -0
  69. package/chunks/standalone-rJ45Zfl1.js +68 -0
  70. package/chunks/stroke-dash-UgMEcCS4.js +6 -0
  71. package/chunks/table.compiler-BrXkm4Fz.js +213 -0
  72. package/chunks/toInteger-DVZr-D1j.js +11 -0
  73. package/chunks/treemap-x_zmJoG7.js +23 -0
  74. package/chunks/typeof-CJDtcySz.js +13 -0
  75. package/chunks/types-dVVCsDWD.js +4 -0
  76. package/chunks/ui-D1HQNIBy.js +54039 -0
  77. package/chunks/url-utils-B17gj_mr.js +5501 -0
  78. package/chunks/useFieldName-oqQ3bvnO.js +7 -0
  79. package/chunks/utils-Ba9T0TqC.js +31097 -0
  80. package/chunks/view-CLqWMV7Z.js +156 -0
  81. package/definitions.js +3 -0
  82. package/docs/operations/astrato-app-filter-bar.md +161 -0
  83. package/docs/operations/bar.md +7050 -0
  84. package/docs/operations/combo.md +5825 -0
  85. package/docs/operations/date-picker.md +644 -0
  86. package/docs/operations/distribution-gauge.md +3218 -0
  87. package/docs/operations/dot.md +5662 -0
  88. package/docs/operations/filter.md +1507 -0
  89. package/docs/operations/gauge.md +3452 -0
  90. package/docs/operations/heatMap.md +6026 -0
  91. package/docs/operations/histogram.md +1870 -0
  92. package/docs/operations/iframe.md +56 -0
  93. package/docs/operations/image.md +177 -0
  94. package/docs/operations/index.md +46 -0
  95. package/docs/operations/line.md +6468 -0
  96. package/docs/operations/number.md +3969 -0
  97. package/docs/operations/pie.md +6089 -0
  98. package/docs/operations/radar.md +4646 -0
  99. package/docs/operations/sankey.md +3210 -0
  100. package/docs/operations/scatter.md +6075 -0
  101. package/docs/operations/shape.md +315 -0
  102. package/docs/operations/simpleTextObject.md +706 -0
  103. package/docs/operations/slider.md +230 -0
  104. package/docs/operations/table.md +8790 -0
  105. package/docs/operations/tree.md +2874 -0
  106. package/docs/operations/treemap.md +3619 -0
  107. package/docs/operations/waterfall.md +2938 -0
  108. package/docs/operations/word-cloud.md +3071 -0
  109. package/getters.js +18 -0
  110. package/index.js +1183 -0
  111. package/metadata.js +20 -0
  112. package/operations.js +64 -0
  113. package/package.json +191 -4
  114. package/src/definitions/index.d.ts +2 -0
  115. package/src/definitions/shared/index.d.ts +5 -0
  116. package/src/definitions/shared/lib/available-fields.d.ts +36 -0
  117. package/src/definitions/shared/lib/compilers/index.d.ts +7 -0
  118. package/src/definitions/shared/lib/registry/compile.d.ts +2 -0
  119. package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +587 -0
  120. package/src/definitions/shared/lib/registry/index.d.ts +3 -0
  121. package/src/definitions/shared/lib/registry/validation.d.ts +3 -0
  122. package/src/definitions/shared/lib/schemas/app-filter-bar.schema.d.ts +22 -0
  123. package/src/definitions/shared/lib/schemas/bar.schema.d.ts +73 -0
  124. package/src/definitions/shared/lib/schemas/broad-chart.schema.d.ts +68 -0
  125. package/src/definitions/shared/lib/schemas/common.schema.d.ts +304 -0
  126. package/src/definitions/shared/lib/schemas/filter.schema.d.ts +22 -0
  127. package/src/definitions/shared/lib/schemas/index.d.ts +9 -0
  128. package/src/definitions/shared/lib/schemas/line.schema.d.ts +72 -0
  129. package/src/definitions/shared/lib/schemas/number.schema.d.ts +21 -0
  130. package/src/definitions/shared/lib/schemas/object.schema.d.ts +215 -0
  131. package/src/definitions/shared/lib/schemas/table.schema.d.ts +458 -0
  132. package/src/definitions/shared/lib/types/compilation.types.d.ts +36 -0
  133. package/src/definitions/shared/lib/types/definition.types.d.ts +2 -0
  134. package/src/definitions/shared/lib/types/descriptor.types.d.ts +39 -0
  135. package/src/definitions/shared/lib/types/index.d.ts +3 -0
  136. package/src/getters/index.d.ts +30 -0
  137. package/src/index.d.ts +4 -0
  138. package/src/metadata/index.d.ts +4 -0
  139. package/src/operations/index.d.ts +30 -0
  140. package/src/registry/index.d.ts +6 -0
  141. package/src/runtime/index.d.ts +2 -0
  142. package/src/types.d.ts +307 -0
  143. package/src/visualization-catalog.d.ts +82 -0
  144. package/src/web-components/index.d.ts +12 -0
  145. package/styles.css +2 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,23 @@
1
+ # Changelog
2
+
3
+ Breaking changes to `@astrato-io/visualizations`, newest first. Operation names, payload shapes and allowed values for the
4
+ installed version are in the bundled [Operations Reference](./docs/operations/index.md) and in
5
+ `getVisualizationMetadata(type).operations`.
6
+
7
+ ## 0.6.2
8
+
9
+ ### Changed
10
+
11
+ - `setColoringType` now lists only the coloring types each chart accepts in its payload schema. Sankey accepts `single`
12
+ and `perEachDimension`, pie `categorical`, combo `single` and `perEachMeasure`. Bar, histogram and radar decide from
13
+ the fields on the chart, so their schema still lists every type.
14
+
15
+ ## 0.5.0
16
+
17
+ ### Breaking
18
+
19
+ - Static filter operations were replaced by one group operation. `addStaticFilter`, `setStaticFilter`,
20
+ `clearStaticFilter`, `clearStaticFilters` and the Filter object's `updateStaticFilters` are removed. Use
21
+ `setStaticFilterGroup`, which replaces all static filters with a nested AND/OR group, and `getStaticFilterGroup` to
22
+ read it back. An unknown operation name is rejected by `applyOperations`, so check the results of requests that used
23
+ the removed names.
package/LICENSE ADDED
@@ -0,0 +1,93 @@
1
+ # Astrato Libraries License — Version 1.0
2
+
3
+ Copyright © Astrato Analytics Ltd. All rights reserved.
4
+
5
+ ## 1. Scope
6
+
7
+ This license applies exclusively to software packages expressly distributed by Astrato under this license, including accompanying Astrato-owned assets and documentation (the “Software”).
8
+
9
+ It does not apply to other Astrato software or assets, including visualization bundles downloaded or extracted from the Astrato application, its asset URLs or content delivery networks, unless expressly designated by Astrato as distributed under this license. Public accessibility alone does not confer any rights under this license.
10
+
11
+ ## 2. Permitted use
12
+
13
+ Subject to this license, Astrato grants you a limited, non-exclusive, non-transferable license to use, copy, configure, modify and bundle the Software to develop, deploy and operate applications that access, process, analyze or display data through the Astrato platform (“Astrato-connected applications”).
14
+
15
+ Astrato-connected applications may incorporate external data, APIs, user inputs, calculations and other sources, provided Astrato supplies a substantive data or analytical component. Nominal or incidental integration with Astrato does not qualify an otherwise independent application.
16
+
17
+ All use must be covered by a valid Astrato subscription or other written authorization and remain within its applicable user, audience and usage limits.
18
+
19
+ ## 3. Embedding and distribution
20
+
21
+ You may embed the Software, including permitted modifications, into Astrato-connected applications and distribute copies reasonably necessary for their operation, including browser-delivered code and application bundles.
22
+
23
+ Authorized end users may execute those copies solely as part of the applicable Astrato-connected application and within the scope of the relevant Astrato authorization. Such distribution does not grant independent rights to extract, reuse, modify or redistribute the Software.
24
+
25
+ You must preserve applicable copyright notices, this license and required third-party notices in distributed copies or make them available through an accessible accompanying notice.
26
+
27
+ You may not distribute, sublicense, sell or offer the Software as a standalone library, toolkit or independently reusable component.
28
+
29
+ Your independently developed application code remains yours and need not be disclosed. Modifications to the Software do not transfer ownership of Astrato intellectual property.
30
+
31
+ ## 4. Restrictions
32
+
33
+ You may not:
34
+
35
+ - Use the Software as a general-purpose charting, analytics, application-runtime or data-processing library independently of Astrato.
36
+
37
+ - Use nominal or incidental Astrato integration to circumvent the Astrato-connected use requirement.
38
+
39
+ - Distribute the Software separately for independent reuse outside Astrato-connected applications.
40
+
41
+ - Bypass Astrato authentication, access controls, licensing mechanisms or usage limits.
42
+
43
+ - Remove or obscure applicable copyright, ownership or attribution notices.
44
+
45
+ - Reverse engineer, decompile, disassemble or otherwise attempt to derive non-public source code or implementation details of the Software, except as permitted by applicable law.
46
+
47
+ - Use the Software, its source code, non-public implementation details or systematically extracted outputs to train, distil, develop or improve software intended to reproduce or substantially replicate the Software's proprietary functionality, including competing visualization libraries, analytical engines or application runtimes.
48
+
49
+ These restrictions do not prohibit ordinary use of AI-assisted development tools, analysis of application outputs or development of independently created application functionality, provided such activities do not involve prohibited extraction, replication or misuse of the Software.
50
+
51
+ Nothing in this section restricts independent development without misuse of the Software or acts that cannot lawfully be restricted.
52
+
53
+ ## 5. Third-party components
54
+
55
+ Third-party components remain governed by their respective licenses, and nothing in this license limits rights granted directly under those licenses.
56
+
57
+ You must comply with applicable third-party obligations, including attribution, notices and source-code availability requirements where applicable.
58
+
59
+ ## 6. Duration and termination
60
+
61
+ This license remains effective while the applicable Astrato subscription or written authorization remains valid and the Software is used in accordance with this license.
62
+
63
+ Astrato may terminate rights under this license for a material breach that remains uncured for 30 days after written notice. Astrato may terminate immediately for a deliberate material breach involving unauthorized distribution, circumvention of access controls or prohibited replication of the Software.
64
+
65
+ Upon expiry or termination, you must cease use and distribution of the Software and discontinue applications dependent on it, unless otherwise authorized in writing.
66
+
67
+ Previously delivered copies do not create perpetual rights. However, end users covered by a separate, continuing Astrato authorization may continue using applications within the scope of that authorization.
68
+
69
+ Copies may be retained solely for archival, backup or legal compliance purposes, without further use or distribution, except as required by law.
70
+
71
+ Termination does not affect rights independently granted under third-party licenses or provisions intended by their nature to survive termination, including restrictions on unauthorized use and protection of intellectual property.
72
+
73
+ ## 7. Relationship to Astrato's standard terms
74
+
75
+ This license grants additional rights to use, modify, embed and distribute the Software beyond those provided by Astrato's standard terms, exclusively for the Astrato-connected uses described here.
76
+
77
+ To the extent that Astrato's standard terms restrict activities expressly permitted by this license, these permissions prevail solely for the Software and within the scope of this license.
78
+
79
+ All other applicable Astrato terms, contractual obligations and subscription restrictions remain effective.
80
+
81
+ A separately signed agreement expressly addressing these libraries takes precedence to the extent of any conflict.
82
+
83
+ Nothing in this license grants rights to other Astrato software, visualization bundles, application assets, services or intellectual property.
84
+
85
+ ## 8. Ownership, warranties and governing law
86
+
87
+ Astrato and its licensors retain all ownership and intellectual property rights in the Software. No rights are granted except those expressly stated in this license or required by applicable law.
88
+
89
+ Except as provided in an applicable written agreement or required by law, the Software is provided “as is,” without warranties of any kind, express or implied, including merchantability, fitness for a particular purpose and non-infringement.
90
+
91
+ Where an applicable Astrato customer agreement governs the use of the Software, its provisions concerning service access, support, warranties, liability and governing law apply.
92
+
93
+ Otherwise, this license is governed by the laws of England and Wales, and the courts of England and Wales have exclusive jurisdiction, subject to mandatory applicable law.