@splunk/visualization-schemas 26.3.0

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 (35) hide show
  1. package/LICENSE.md +450 -0
  2. package/README.md +5 -0
  3. package/dist/index.js +1 -0
  4. package/package.json +37 -0
  5. package/types/index.d.ts +4 -0
  6. package/types/optionsSchemas/area.d.ts +1 -0
  7. package/types/optionsSchemas/bar.d.ts +1 -0
  8. package/types/optionsSchemas/bubble.d.ts +1 -0
  9. package/types/optionsSchemas/choroplethSvg.d.ts +1 -0
  10. package/types/optionsSchemas/column.d.ts +1 -0
  11. package/types/optionsSchemas/ellipse.d.ts +1 -0
  12. package/types/optionsSchemas/events.d.ts +1 -0
  13. package/types/optionsSchemas/fillerGauge.d.ts +1 -0
  14. package/types/optionsSchemas/image.d.ts +1 -0
  15. package/types/optionsSchemas/index.d.ts +24 -0
  16. package/types/optionsSchemas/line.d.ts +1 -0
  17. package/types/optionsSchemas/linkGraph.d.ts +1 -0
  18. package/types/optionsSchemas/map.d.ts +1 -0
  19. package/types/optionsSchemas/markdown.d.ts +1 -0
  20. package/types/optionsSchemas/markerGauge.d.ts +1 -0
  21. package/types/optionsSchemas/parallelCoordinates.d.ts +1 -0
  22. package/types/optionsSchemas/pie.d.ts +1 -0
  23. package/types/optionsSchemas/punchcard.d.ts +1 -0
  24. package/types/optionsSchemas/rectangle.d.ts +1 -0
  25. package/types/optionsSchemas/sankey.d.ts +1 -0
  26. package/types/optionsSchemas/scatter.d.ts +1 -0
  27. package/types/optionsSchemas/singleValue.d.ts +1 -0
  28. package/types/optionsSchemas/singleValueIcon.d.ts +1 -0
  29. package/types/optionsSchemas/singleValueRadial.d.ts +1 -0
  30. package/types/optionsSchemas/table.d.ts +1 -0
  31. package/types/types/index.d.ts +4 -0
  32. package/types/utils/constants.d.ts +22 -0
  33. package/types/utils/enhanceSchemaWithDynamicOptions.d.ts +8 -0
  34. package/types/utils/index.d.ts +3 -0
  35. package/types/utils/schemaUtils.d.ts +244 -0
@@ -0,0 +1,244 @@
1
+ import { OptionsSchema } from '../types';
2
+ export declare const schemaDraft07: {
3
+ $schema: string;
4
+ $id: string;
5
+ title: string;
6
+ definitions: {
7
+ schemaArray: {
8
+ type: string;
9
+ minItems: number;
10
+ items: {
11
+ $ref: string;
12
+ };
13
+ };
14
+ nonNegativeInteger: {
15
+ type: string;
16
+ minimum: number;
17
+ };
18
+ nonNegativeIntegerDefault0: {
19
+ allOf: ({
20
+ $ref: string;
21
+ default?: undefined;
22
+ } | {
23
+ default: number;
24
+ $ref?: undefined;
25
+ })[];
26
+ };
27
+ simpleTypes: {
28
+ enum: string[];
29
+ };
30
+ stringArray: {
31
+ type: string;
32
+ items: {
33
+ type: string;
34
+ };
35
+ uniqueItems: boolean;
36
+ default: any[];
37
+ };
38
+ };
39
+ type: string[];
40
+ properties: {
41
+ $id: {
42
+ type: string;
43
+ format: string;
44
+ };
45
+ $schema: {
46
+ type: string;
47
+ format: string;
48
+ };
49
+ $ref: {
50
+ type: string;
51
+ format: string;
52
+ };
53
+ $comment: {
54
+ type: string;
55
+ };
56
+ title: {
57
+ type: string;
58
+ };
59
+ description: {
60
+ type: string;
61
+ };
62
+ default: boolean;
63
+ readOnly: {
64
+ type: string;
65
+ default: boolean;
66
+ };
67
+ examples: {
68
+ type: string;
69
+ items: boolean;
70
+ };
71
+ multipleOf: {
72
+ type: string;
73
+ exclusiveMinimum: number;
74
+ };
75
+ maximum: {
76
+ type: string;
77
+ };
78
+ exclusiveMaximum: {
79
+ type: string;
80
+ };
81
+ minimum: {
82
+ type: string;
83
+ };
84
+ exclusiveMinimum: {
85
+ type: string;
86
+ };
87
+ maxLength: {
88
+ $ref: string;
89
+ };
90
+ minLength: {
91
+ $ref: string;
92
+ };
93
+ pattern: {
94
+ type: string;
95
+ format: string;
96
+ };
97
+ additionalItems: {
98
+ $ref: string;
99
+ };
100
+ items: {
101
+ anyOf: {
102
+ $ref: string;
103
+ }[];
104
+ default: boolean;
105
+ };
106
+ maxItems: {
107
+ $ref: string;
108
+ };
109
+ minItems: {
110
+ $ref: string;
111
+ };
112
+ uniqueItems: {
113
+ type: string;
114
+ default: boolean;
115
+ };
116
+ contains: {
117
+ $ref: string;
118
+ };
119
+ maxProperties: {
120
+ $ref: string;
121
+ };
122
+ minProperties: {
123
+ $ref: string;
124
+ };
125
+ required: {
126
+ $ref: string;
127
+ };
128
+ additionalProperties: {
129
+ $ref: string;
130
+ };
131
+ definitions: {
132
+ type: string;
133
+ additionalProperties: {
134
+ $ref: string;
135
+ };
136
+ default: {};
137
+ };
138
+ properties: {
139
+ type: string;
140
+ additionalProperties: {
141
+ $ref: string;
142
+ };
143
+ default: {};
144
+ };
145
+ patternProperties: {
146
+ type: string;
147
+ additionalProperties: {
148
+ $ref: string;
149
+ };
150
+ propertyNames: {
151
+ format: string;
152
+ };
153
+ default: {};
154
+ };
155
+ dependencies: {
156
+ type: string;
157
+ additionalProperties: {
158
+ anyOf: {
159
+ $ref: string;
160
+ }[];
161
+ };
162
+ };
163
+ propertyNames: {
164
+ $ref: string;
165
+ };
166
+ const: boolean;
167
+ enum: {
168
+ type: string;
169
+ items: boolean;
170
+ minItems: number;
171
+ uniqueItems: boolean;
172
+ };
173
+ type: {
174
+ anyOf: ({
175
+ $ref: string;
176
+ type?: undefined;
177
+ items?: undefined;
178
+ minItems?: undefined;
179
+ uniqueItems?: undefined;
180
+ } | {
181
+ type: string;
182
+ items: {
183
+ $ref: string;
184
+ };
185
+ minItems: number;
186
+ uniqueItems: boolean;
187
+ $ref?: undefined;
188
+ })[];
189
+ };
190
+ format: {
191
+ type: string;
192
+ };
193
+ contentMediaType: {
194
+ type: string;
195
+ };
196
+ contentEncoding: {
197
+ type: string;
198
+ };
199
+ if: {
200
+ $ref: string;
201
+ };
202
+ then: {
203
+ $ref: string;
204
+ };
205
+ else: {
206
+ $ref: string;
207
+ };
208
+ allOf: {
209
+ $ref: string;
210
+ };
211
+ anyOf: {
212
+ $ref: string;
213
+ };
214
+ oneOf: {
215
+ $ref: string;
216
+ };
217
+ not: {
218
+ $ref: string;
219
+ };
220
+ };
221
+ default: boolean;
222
+ };
223
+ export declare const createTestSchema: (optionsSchema: OptionsSchema) => {
224
+ $schema: string;
225
+ $id: string;
226
+ title: string;
227
+ description: string;
228
+ type: string;
229
+ properties: OptionsSchema;
230
+ };
231
+ export declare const TOKEN_PATTERN: string;
232
+ export declare const rgbColorPattern: RegExp;
233
+ export declare const rgbaColorPattern: RegExp;
234
+ export declare const colorPattern = "^#[0-9a-fA-F]{6}$|transparent";
235
+ export declare const colorPatternWithRGBA: string;
236
+ export declare const COLOR_OR_TOKEN_PATTERN: string;
237
+ export declare const COLOR_OR_TOKEN_PATTERN_WITH_RGBA: string;
238
+ export declare const DYNAMIC_OPTIONS_DSL_PATTERN: string;
239
+ /**
240
+ * Returns the regex string that matches each passed in value as well as tokens.
241
+ * @param {Array.<string>} values
242
+ * @returns {string}
243
+ */
244
+ export declare const getPattern: (values: string[]) => string;