@cv-tec/validations 0.5.1 → 0.5.3
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/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/validation.json +508 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AAEvB,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
package/dist/index.js
CHANGED
@@ -13,7 +13,11 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
18
|
+
};
|
16
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
+
exports.themeJsonSchema = void 0;
|
17
21
|
require("reflect-metadata");
|
18
22
|
__exportStar(require("./type-validation"), exports);
|
19
23
|
__exportStar(require("./utils/array-object.mapper"), exports);
|
@@ -22,4 +26,6 @@ __exportStar(require("./types"), exports);
|
|
22
26
|
__exportStar(require("./labels"), exports);
|
23
27
|
__exportStar(require("./lang"), exports);
|
24
28
|
__exportStar(require("./theme"), exports);
|
29
|
+
const validation_json_1 = __importDefault(require("./validation.json"));
|
30
|
+
exports.themeJsonSchema = validation_json_1.default;
|
25
31
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,4BAAyB;AACzB,oDAAiC;AACjC,8DAA2C;AAC3C,+CAA4B;AAC5B,0CAAuB;AACvB,2CAAwB;AACxB,yCAAsB;AACtB,0CAAuB;AAEvB,wEAA+C;AACtC,0BADF,yBAAe,CACE"}
|
@@ -0,0 +1,508 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"title": "ICvTheme",
|
4
|
+
"type": "object",
|
5
|
+
"properties": {
|
6
|
+
"palette": {
|
7
|
+
"type": "object",
|
8
|
+
"properties": {
|
9
|
+
"primary": { "$ref": "#/definitions/color" },
|
10
|
+
"secondary": { "$ref": "#/definitions/color" },
|
11
|
+
"tertiary": { "$ref": "#/definitions/color" },
|
12
|
+
"common": {
|
13
|
+
"type": "object",
|
14
|
+
"properties": {
|
15
|
+
"white": { "$ref": "#/definitions/color" },
|
16
|
+
"black": { "$ref": "#/definitions/color" }
|
17
|
+
},
|
18
|
+
"additionalProperties": false
|
19
|
+
},
|
20
|
+
"gray": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": {
|
23
|
+
"main": { "$ref": "#/definitions/color" },
|
24
|
+
"light": { "$ref": "#/definitions/color" },
|
25
|
+
"dark": { "$ref": "#/definitions/color" }
|
26
|
+
},
|
27
|
+
"additionalProperties": false
|
28
|
+
},
|
29
|
+
"text": {
|
30
|
+
"type": "object",
|
31
|
+
"properties": {
|
32
|
+
"primary": { "$ref": "#/definitions/color" },
|
33
|
+
"secodary": { "$ref": "#/definitions/color" }
|
34
|
+
},
|
35
|
+
"additionalProperties": false
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"additionalProperties": false
|
39
|
+
},
|
40
|
+
"typography": {
|
41
|
+
"type": "object",
|
42
|
+
"properties": {
|
43
|
+
"main": { "$ref": "#/definitions/TypographyThemeType" },
|
44
|
+
"h1": { "$ref": "#/definitions/TypographyThemeType" },
|
45
|
+
"h2": { "$ref": "#/definitions/TypographyThemeType" },
|
46
|
+
"h3": { "$ref": "#/definitions/TypographyThemeType" },
|
47
|
+
"h4": { "$ref": "#/definitions/TypographyThemeType" },
|
48
|
+
"h5": { "$ref": "#/definitions/TypographyThemeType" },
|
49
|
+
"h6": { "$ref": "#/definitions/TypographyThemeType" },
|
50
|
+
"subtitle1": { "$ref": "#/definitions/TypographyThemeType" },
|
51
|
+
"subtitle2": { "$ref": "#/definitions/TypographyThemeType" },
|
52
|
+
"body1": { "$ref": "#/definitions/TypographyThemeType" },
|
53
|
+
"body2": { "$ref": "#/definitions/TypographyThemeType" }
|
54
|
+
},
|
55
|
+
"additionalProperties": false
|
56
|
+
},
|
57
|
+
"shap": {
|
58
|
+
"type": "object",
|
59
|
+
"properties": {
|
60
|
+
"borderRadius": { "$ref": "#/definitions/commonNumber" }
|
61
|
+
},
|
62
|
+
"additionalProperties": false
|
63
|
+
},
|
64
|
+
"gap": {
|
65
|
+
"type": "object",
|
66
|
+
"properties": {
|
67
|
+
"xs": { "$ref": "#/definitions/commonNumber" },
|
68
|
+
"s": { "$ref": "#/definitions/commonNumber" },
|
69
|
+
"m": { "$ref": "#/definitions/commonNumber" },
|
70
|
+
"l": { "$ref": "#/definitions/commonNumber" },
|
71
|
+
"xl": { "$ref": "#/definitions/commonNumber" }
|
72
|
+
},
|
73
|
+
"additionalProperties": false
|
74
|
+
},
|
75
|
+
"layout": {
|
76
|
+
"type": "object",
|
77
|
+
"properties": {
|
78
|
+
"body": { "$ref": "#/definitions/CommonThemeCssProps" },
|
79
|
+
"aside": { "$ref": "#/definitions/CommonThemeCssProps" },
|
80
|
+
"main": { "$ref": "#/definitions/CommonThemeCssProps" },
|
81
|
+
"top": { "$ref": "#/definitions/CommonThemeCssProps" }
|
82
|
+
},
|
83
|
+
"additionalProperties": false
|
84
|
+
},
|
85
|
+
"sections": {
|
86
|
+
"type": "object",
|
87
|
+
"properties": {
|
88
|
+
"profile": {
|
89
|
+
"type": "object",
|
90
|
+
"properties": {
|
91
|
+
"img": {
|
92
|
+
"type": "object",
|
93
|
+
"properties": {
|
94
|
+
"active": { "type": "boolean" },
|
95
|
+
"style": { "$ref": "#/definitions/ProfileImgThemeStyle" }
|
96
|
+
},
|
97
|
+
"additionalProperties": false
|
98
|
+
}
|
99
|
+
},
|
100
|
+
"additionalProperties": false
|
101
|
+
},
|
102
|
+
"about_me": {
|
103
|
+
"type": "object",
|
104
|
+
"properties": {
|
105
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
106
|
+
"header": { "$ref": "#/definitions/HeaderThemeType" },
|
107
|
+
"body": {
|
108
|
+
"type": "object",
|
109
|
+
"properties": {
|
110
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" }
|
111
|
+
},
|
112
|
+
"additionalProperties": false
|
113
|
+
}
|
114
|
+
},
|
115
|
+
"additionalProperties": false
|
116
|
+
},
|
117
|
+
"coordinates": {
|
118
|
+
"type": "object",
|
119
|
+
"properties": {
|
120
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
121
|
+
"header": { "$ref": "#/definitions/HeaderThemeType" },
|
122
|
+
"body": {
|
123
|
+
"type": "object",
|
124
|
+
"properties": {
|
125
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
126
|
+
"items": {
|
127
|
+
"type": "object",
|
128
|
+
"properties": {
|
129
|
+
"style": { "$ref": "#/definitions/IconStyleType" },
|
130
|
+
"icons": {
|
131
|
+
"type": "object",
|
132
|
+
"properties": {
|
133
|
+
"style": { "$ref": "#/definitions/IconStyleType" },
|
134
|
+
"$phone": { "$ref": "#/definitions/IconItemThemeType" },
|
135
|
+
"$email": { "$ref": "#/definitions/IconItemThemeType" },
|
136
|
+
"$address": { "$ref": "#/definitions/IconItemThemeType" }
|
137
|
+
},
|
138
|
+
"additionalProperties": false
|
139
|
+
}
|
140
|
+
},
|
141
|
+
"additionalProperties": false
|
142
|
+
}
|
143
|
+
},
|
144
|
+
"additionalProperties": false
|
145
|
+
}
|
146
|
+
},
|
147
|
+
"additionalProperties": false
|
148
|
+
},
|
149
|
+
"skills": {
|
150
|
+
"type": "object",
|
151
|
+
"properties": {
|
152
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
153
|
+
"header": { "$ref": "#/definitions/HeaderThemeType" },
|
154
|
+
"body": {
|
155
|
+
"type": "object",
|
156
|
+
"properties": {
|
157
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
158
|
+
"categories": {
|
159
|
+
"type": "object",
|
160
|
+
"properties": {
|
161
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
162
|
+
"header": { "$ref": "#/definitions/HeaderThemeType" },
|
163
|
+
"body": {
|
164
|
+
"type": "object",
|
165
|
+
"properties": {
|
166
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" }
|
167
|
+
},
|
168
|
+
"additionalProperties": false
|
169
|
+
}
|
170
|
+
},
|
171
|
+
"additionalProperties": false
|
172
|
+
},
|
173
|
+
"items": {
|
174
|
+
"type": "object",
|
175
|
+
"properties": {
|
176
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
177
|
+
"progress": { "$ref": "#/definitions/ProgressThemeType" }
|
178
|
+
},
|
179
|
+
"additionalProperties": false
|
180
|
+
}
|
181
|
+
},
|
182
|
+
"additionalProperties": false
|
183
|
+
}
|
184
|
+
},
|
185
|
+
"additionalProperties": false
|
186
|
+
},
|
187
|
+
"formations": {
|
188
|
+
"type": "object",
|
189
|
+
"properties": {
|
190
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
191
|
+
"header": { "$ref": "#/definitions/HeaderThemeType" },
|
192
|
+
"body": {
|
193
|
+
"type": "object",
|
194
|
+
"properties": {
|
195
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
196
|
+
"items": {
|
197
|
+
"type": "object",
|
198
|
+
"properties": {
|
199
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" }
|
200
|
+
},
|
201
|
+
"additionalProperties": false
|
202
|
+
},
|
203
|
+
"timeline": { "$ref": "#/definitions/TimeLinePropsTheme" }
|
204
|
+
},
|
205
|
+
"additionalProperties": false
|
206
|
+
}
|
207
|
+
},
|
208
|
+
"additionalProperties": false
|
209
|
+
},
|
210
|
+
"experiences": {
|
211
|
+
"type": "object",
|
212
|
+
"properties": {
|
213
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
214
|
+
"header": { "$ref": "#/definitions/HeaderThemeType" },
|
215
|
+
"body": {
|
216
|
+
"type": "object",
|
217
|
+
"properties": {
|
218
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
219
|
+
"items": {
|
220
|
+
"type": "object",
|
221
|
+
"properties": {
|
222
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" }
|
223
|
+
},
|
224
|
+
"additionalProperties": false
|
225
|
+
},
|
226
|
+
"timeline": { "$ref": "#/definitions/TimeLinePropsTheme" }
|
227
|
+
},
|
228
|
+
"additionalProperties": false
|
229
|
+
}
|
230
|
+
},
|
231
|
+
"additionalProperties": false
|
232
|
+
},
|
233
|
+
"languages": {
|
234
|
+
"type": "object",
|
235
|
+
"properties": {
|
236
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
237
|
+
"header": { "$ref": "#/definitions/HeaderThemeType" },
|
238
|
+
"body": {
|
239
|
+
"type": "object",
|
240
|
+
"properties": {
|
241
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
242
|
+
"items": {
|
243
|
+
"type": "object",
|
244
|
+
"properties": {
|
245
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
246
|
+
"progress": { "$ref": "#/definitions/ProgressThemeType" }
|
247
|
+
},
|
248
|
+
"additionalProperties": false
|
249
|
+
}
|
250
|
+
},
|
251
|
+
"additionalProperties": false
|
252
|
+
}
|
253
|
+
},
|
254
|
+
"additionalProperties": false
|
255
|
+
},
|
256
|
+
"hobbies": {
|
257
|
+
"type": "object",
|
258
|
+
"properties": {
|
259
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
260
|
+
"header": { "$ref": "#/definitions/HeaderThemeType" },
|
261
|
+
"body": {
|
262
|
+
"type": "object",
|
263
|
+
"properties": {
|
264
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
265
|
+
"items": {
|
266
|
+
"type": "object",
|
267
|
+
"properties": {
|
268
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" }
|
269
|
+
},
|
270
|
+
"additionalProperties": false
|
271
|
+
}
|
272
|
+
},
|
273
|
+
"additionalProperties": false
|
274
|
+
}
|
275
|
+
},
|
276
|
+
"additionalProperties": false
|
277
|
+
},
|
278
|
+
"references": {
|
279
|
+
"type": "object",
|
280
|
+
"properties": {
|
281
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
282
|
+
"header": { "$ref": "#/definitions/HeaderThemeType" },
|
283
|
+
"body": {
|
284
|
+
"type": "object",
|
285
|
+
"properties": {
|
286
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" },
|
287
|
+
"items": {
|
288
|
+
"type": "object",
|
289
|
+
"properties": {
|
290
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" }
|
291
|
+
},
|
292
|
+
"additionalProperties": false
|
293
|
+
}
|
294
|
+
},
|
295
|
+
"additionalProperties": false
|
296
|
+
}
|
297
|
+
},
|
298
|
+
"additionalProperties": false
|
299
|
+
}
|
300
|
+
},
|
301
|
+
"additionalProperties": false
|
302
|
+
}
|
303
|
+
},
|
304
|
+
"required": ["sections"],
|
305
|
+
"additionalProperties": false,
|
306
|
+
"definitions": {
|
307
|
+
"color": {
|
308
|
+
"type": "string",
|
309
|
+
"pattern": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{8}|[A-Fa-f0-9]{3}|[A-Fa-f0-9]{4})$",
|
310
|
+
"minLength": 4,
|
311
|
+
"maxLength": 7,
|
312
|
+
"description": "Hex color code, e.g. #FFF or #FFFFFF"
|
313
|
+
},
|
314
|
+
"commonNumber": {
|
315
|
+
"type": "number",
|
316
|
+
"minimum": 0,
|
317
|
+
"maximum": 100,
|
318
|
+
"description": "A number between 0 and 100"
|
319
|
+
},
|
320
|
+
"sizeType": {
|
321
|
+
"type": "string",
|
322
|
+
"pattern": "^(100|[1-9]?\\d)mm$",
|
323
|
+
"description": "A size string in millimeters between 0mm and 100mm, e.g. '12mm'"
|
324
|
+
},
|
325
|
+
"TypographyThemeType": {
|
326
|
+
"type": "object",
|
327
|
+
"properties": {
|
328
|
+
"fontFamily": { "type": "string", "minLength": 0, "maxLength": 100 },
|
329
|
+
"fontSize": { "$ref": "#/definitions/sizeType" },
|
330
|
+
"fontWeight": { "$ref": "#/definitions/fontWeightType" },
|
331
|
+
"fontStyle": { "$ref": "#/definitions/fontStyleType" },
|
332
|
+
"letterSpacing": { "$ref": "#/definitions/sizeType" },
|
333
|
+
"textTransform": {
|
334
|
+
"type": "string",
|
335
|
+
"enum": ["uppercase", "capitalize", "lowercase"]
|
336
|
+
}
|
337
|
+
},
|
338
|
+
"additionalProperties": false
|
339
|
+
},
|
340
|
+
"CommonThemeCssProps": {
|
341
|
+
"type": "object",
|
342
|
+
"properties": {
|
343
|
+
"margin": { "$ref": "#/definitions/sizeType" },
|
344
|
+
"marginTop": { "$ref": "#/definitions/sizeType" },
|
345
|
+
"marginLeft": { "$ref": "#/definitions/sizeType" },
|
346
|
+
"marginBottom": { "$ref": "#/definitions/sizeType" },
|
347
|
+
"marginRight": { "$ref": "#/definitions/sizeType" },
|
348
|
+
"padding": { "$ref": "#/definitions/sizeType" },
|
349
|
+
"paddingTop": { "$ref": "#/definitions/sizeType" },
|
350
|
+
"paddingRight": { "$ref": "#/definitions/sizeType" },
|
351
|
+
"paddingBottom": { "$ref": "#/definitions/sizeType" },
|
352
|
+
"paddingLeft": { "$ref": "#/definitions/sizeType" },
|
353
|
+
"borderWidth": { "$ref": "#/definitions/sizeType" },
|
354
|
+
"borderColor": { "$ref": "#/definitions/color" },
|
355
|
+
"borderStyle": { "$ref": "#/definitions/borderStyleEnum" },
|
356
|
+
"borderTopStyle": { "$ref": "#/definitions/borderStyleEnum" },
|
357
|
+
"borderTopColor": { "$ref": "#/definitions/color" },
|
358
|
+
"borderTopWidth": { "$ref": "#/definitions/sizeType" },
|
359
|
+
"borderRightWidth": { "$ref": "#/definitions/sizeType" },
|
360
|
+
"borderRightColor": { "$ref": "#/definitions/color" },
|
361
|
+
"borderRightStyle": { "$ref": "#/definitions/borderStyleEnum" },
|
362
|
+
"borderBottomWidth": { "$ref": "#/definitions/sizeType" },
|
363
|
+
"borderBottomColor": { "$ref": "#/definitions/color" },
|
364
|
+
"borderBottomStyle": { "$ref": "#/definitions/borderStyleEnum" },
|
365
|
+
"borderLeftWidth": { "$ref": "#/definitions/sizeType" },
|
366
|
+
"borderLeftColor": { "$ref": "#/definitions/color" },
|
367
|
+
"borderLeftStyle": { "$ref": "#/definitions/borderStyleEnum" },
|
368
|
+
"borderRadius": { "$ref": "#/definitions/sizeType" },
|
369
|
+
"borderTopLeftRadius": { "$ref": "#/definitions/sizeType" },
|
370
|
+
"borderTopRightRadius": { "$ref": "#/definitions/sizeType" },
|
371
|
+
"borderBottomRightRadius": { "$ref": "#/definitions/sizeType" },
|
372
|
+
"borderBottomLeftRadius": { "$ref": "#/definitions/sizeType" },
|
373
|
+
"backgroundColor": { "$ref": "#/definitions/color" },
|
374
|
+
"height": { "$ref": "#/definitions/sizeType" },
|
375
|
+
"width": { "$ref": "#/definitions/sizeType" },
|
376
|
+
"color": { "$ref": "#/definitions/color" },
|
377
|
+
"fontFamily": { "type": "string", "minLength": 0, "maxLength": 100 },
|
378
|
+
"fontSize": { "$ref": "#/definitions/sizeType" },
|
379
|
+
"fontWeight": { "$ref": "#/definitions/fontWeightType" },
|
380
|
+
"fontStyle": { "$ref": "#/definitions/fontStyleType" },
|
381
|
+
"letterSpacing": { "$ref": "#/definitions/sizeType" },
|
382
|
+
"textTransform": {
|
383
|
+
"type": "string",
|
384
|
+
"enum": ["uppercase", "capitalize", "lowercase"]
|
385
|
+
}
|
386
|
+
},
|
387
|
+
"additionalProperties": false
|
388
|
+
},
|
389
|
+
"HeaderThemeType": {
|
390
|
+
"type": "object",
|
391
|
+
"properties": {
|
392
|
+
"type": { "type": "string", "enum": ["h1", "h2", "h3", "h4", "h5", "h6"] },
|
393
|
+
"position": { "type": "string", "enum": ["left", "center", "right"] },
|
394
|
+
"icon": {
|
395
|
+
"type": "object",
|
396
|
+
"properties": {
|
397
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 50 },
|
398
|
+
"style": { "$ref": "#/definitions/IconStyleType" }
|
399
|
+
},
|
400
|
+
"additionalProperties": false
|
401
|
+
},
|
402
|
+
"style": { "$ref": "#/definitions/CommonThemeCssProps" }
|
403
|
+
},
|
404
|
+
"additionalProperties": false
|
405
|
+
},
|
406
|
+
"IconStyleType": {
|
407
|
+
"type": "object",
|
408
|
+
"properties": {
|
409
|
+
"color": { "$ref": "#/definitions/color" },
|
410
|
+
"borderRadius": { "$ref": "#/definitions/sizeType" },
|
411
|
+
"backgroundColor": { "$ref": "#/definitions/color" },
|
412
|
+
"height": { "$ref": "#/definitions/sizeType" },
|
413
|
+
"width": { "$ref": "#/definitions/sizeType" },
|
414
|
+
"fontSize": { "$ref": "#/definitions/sizeType" }
|
415
|
+
},
|
416
|
+
"additionalProperties": false
|
417
|
+
},
|
418
|
+
"IconItemThemeType": {
|
419
|
+
"type": "object",
|
420
|
+
"properties": {
|
421
|
+
"icon_name": { "type": "string", "minLength": 1, "maxLength": 50 },
|
422
|
+
"enableLabels": { "type": "boolean" },
|
423
|
+
"disableIcons": { "type": "boolean" },
|
424
|
+
"style": { "$ref": "#/definitions/IconStyleType" }
|
425
|
+
},
|
426
|
+
"additionalProperties": false
|
427
|
+
},
|
428
|
+
"ProfileImgThemeStyle": {
|
429
|
+
"type": "object",
|
430
|
+
"properties": {
|
431
|
+
"borderColor": { "$ref": "#/definitions/color" },
|
432
|
+
"borderStyle": { "$ref": "#/definitions/borderStyleEnum" },
|
433
|
+
"borderWidth": { "$ref": "#/definitions/sizeType" },
|
434
|
+
"borderRadius": { "$ref": "#/definitions/sizeType" }
|
435
|
+
},
|
436
|
+
"additionalProperties": false
|
437
|
+
},
|
438
|
+
"ProgressThemeType": {
|
439
|
+
"type": "object",
|
440
|
+
"properties": {
|
441
|
+
"filled_color": { "$ref": "#/definitions/color" },
|
442
|
+
"empty_color": { "$ref": "#/definitions/color" },
|
443
|
+
"bg_color": { "$ref": "#/definitions/color" },
|
444
|
+
"radius": { "type": "string" },
|
445
|
+
"size": { "$ref": "#/definitions/commonNumber" },
|
446
|
+
"bubble_nbr": { "$ref": "#/definitions/commonNumber" },
|
447
|
+
"label_position": {
|
448
|
+
"type": "string",
|
449
|
+
"enum": ["inside", "outside"]
|
450
|
+
},
|
451
|
+
"variant": {
|
452
|
+
"type": "string",
|
453
|
+
"enum": ["ITEM", "SLIDER", "BUBBLE", "RADIAL"]
|
454
|
+
}
|
455
|
+
},
|
456
|
+
"additionalProperties": false
|
457
|
+
},
|
458
|
+
"TimeLinePropsTheme": {
|
459
|
+
"type": "object",
|
460
|
+
"properties": {
|
461
|
+
"color": { "$ref": "#/definitions/color" },
|
462
|
+
"bubble_color": { "$ref": "#/definitions/color" },
|
463
|
+
"enable": { "type": "boolean" }
|
464
|
+
},
|
465
|
+
"additionalProperties": false
|
466
|
+
},
|
467
|
+
"borderStyleEnum": {
|
468
|
+
"type": "string",
|
469
|
+
"enum": [
|
470
|
+
"none",
|
471
|
+
"hidden",
|
472
|
+
"dotted",
|
473
|
+
"dashed",
|
474
|
+
"solid",
|
475
|
+
"double",
|
476
|
+
"groove",
|
477
|
+
"ridge",
|
478
|
+
"inset",
|
479
|
+
"outset"
|
480
|
+
],
|
481
|
+
"description": "Standard CSS border style values"
|
482
|
+
},
|
483
|
+
"fontWeightType": {
|
484
|
+
"type": ["string", "number"],
|
485
|
+
"enum": [
|
486
|
+
"normal",
|
487
|
+
"bold",
|
488
|
+
"bolder",
|
489
|
+
"lighter",
|
490
|
+
100,
|
491
|
+
200,
|
492
|
+
300,
|
493
|
+
400,
|
494
|
+
500,
|
495
|
+
600,
|
496
|
+
700,
|
497
|
+
800,
|
498
|
+
900
|
499
|
+
],
|
500
|
+
"description": "Standard CSS font-weight values"
|
501
|
+
},
|
502
|
+
"fontStyleType": {
|
503
|
+
"type": "string",
|
504
|
+
"enum": ["normal", "italic", "oblique", "inherit", "initial", "unset"],
|
505
|
+
"description": "Standard CSS font-style values"
|
506
|
+
}
|
507
|
+
}
|
508
|
+
}
|