@nebula.js/sn-tabbed-container 2.15.0 → 2.17.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "x-schema-version": "2.15.0",
2
+ "x-schema-version": "2.17.0",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "$id": "sn-tabbed-container.json",
5
5
  "$defs": {
@@ -10,7 +10,7 @@
10
10
  "properties": {
11
11
  "version": {
12
12
  "type": "string",
13
- "default": "2.15.0",
13
+ "default": "2.17.0",
14
14
  "description": "Current version of this generic object definition"
15
15
  },
16
16
  "qInfo": {
@@ -133,7 +133,7 @@
133
133
  ]
134
134
  },
135
135
  "default": [],
136
- "description": "Styling components for the container and tabs."
136
+ "description": "General container styling and shared tab-header styling."
137
137
  },
138
138
  "defaultTabId": {
139
139
  "type": "string",
@@ -228,7 +228,7 @@
228
228
  "items": {
229
229
  "$ref": "TabStyleComponentProperties.json"
230
230
  },
231
- "description": "Optional styling overrides for this individual tab."
231
+ "description": "Styling overrides for this child's tab header."
232
232
  }
233
233
  },
234
234
  "required": [
@@ -290,11 +290,7 @@
290
290
  }
291
291
  },
292
292
  "required": [
293
- "key",
294
- "icon",
295
- "label",
296
- "width",
297
- "background"
293
+ "key"
298
294
  ]
299
295
  },
300
296
  "TabChildIconProperties": {
@@ -305,10 +301,90 @@
305
301
  "show": {
306
302
  "type": "boolean",
307
303
  "description": "Whether the icon is shown on this tab."
304
+ },
305
+ "size": {
306
+ "type": "string",
307
+ "description": "Icon size as a CSS length, for example \"14px\"."
308
+ },
309
+ "color": {
310
+ "$ref": "Color.json",
311
+ "description": "Custom hex or theme palette color for this tab icon."
312
+ }
313
+ }
314
+ },
315
+ "Color": {
316
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
317
+ "$id": "Color.json",
318
+ "anyOf": [
319
+ {
320
+ "$ref": "CustomColor.json"
321
+ },
322
+ {
323
+ "$ref": "IndexedColor.json"
324
+ }
325
+ ]
326
+ },
327
+ "CustomColor": {
328
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
329
+ "$id": "CustomColor.json",
330
+ "type": "object",
331
+ "properties": {
332
+ "index": {
333
+ "type": "number",
334
+ "const": -1,
335
+ "description": "Use the custom color instead of a palette color. Omit, or set to -1."
336
+ },
337
+ "color": {
338
+ "type": "string",
339
+ "description": "Hex color string, e.g. \"#4477aa\"."
340
+ }
341
+ },
342
+ "required": [
343
+ "color"
344
+ ],
345
+ "allOf": [
346
+ {
347
+ "$ref": "ColorProperties.json"
348
+ }
349
+ ]
350
+ },
351
+ "ColorProperties": {
352
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
353
+ "$id": "ColorProperties.json",
354
+ "type": "object",
355
+ "properties": {
356
+ "alpha": {
357
+ "type": "number",
358
+ "default": 1,
359
+ "minimum": 0,
360
+ "maximum": 1,
361
+ "description": "Opacity from 0 (transparent) to 1 (opaque)."
362
+ }
363
+ }
364
+ },
365
+ "IndexedColor": {
366
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
367
+ "$id": "IndexedColor.json",
368
+ "type": "object",
369
+ "properties": {
370
+ "index": {
371
+ "type": "integer",
372
+ "default": 6,
373
+ "minimum": 0,
374
+ "description": "Zero-based index into the theme palette."
375
+ },
376
+ "color": {
377
+ "type": "string",
378
+ "description": "Hex color to use when the theme palette does not contain the requested index."
308
379
  }
309
380
  },
310
381
  "required": [
311
- "show"
382
+ "index"
383
+ ],
384
+ "allOf": [
385
+ {
386
+ "$ref": "ColorProperties.json"
387
+ }
312
388
  ]
313
389
  },
314
390
  "TabChildLabelProperties": {
@@ -317,7 +393,7 @@
317
393
  "type": "object",
318
394
  "properties": {
319
395
  "color": {
320
- "$ref": "TabbedPaletteColor.json",
396
+ "$ref": "Color.json",
321
397
  "description": "Label color for this tab."
322
398
  },
323
399
  "fontFamily": {
@@ -332,37 +408,7 @@
332
408
  "type": "boolean",
333
409
  "description": "Whether the label is shown on this tab."
334
410
  }
335
- },
336
- "required": [
337
- "color",
338
- "fontFamily",
339
- "fontSize",
340
- "show"
341
- ]
342
- },
343
- "TabbedPaletteColor": {
344
- "$schema": "https://json-schema.org/draft/2020-12/schema",
345
- "$id": "TabbedPaletteColor.json",
346
- "type": "object",
347
- "properties": {
348
- "color": {
349
- "type": "string",
350
- "description": "Hex color value."
351
- },
352
- "index": {
353
- "type": "number",
354
- "description": "Index of the color in the theme palette."
355
- },
356
- "alpha": {
357
- "type": "number",
358
- "description": "Color opacity from transparent to opaque."
359
- }
360
- },
361
- "required": [
362
- "color",
363
- "index",
364
- "alpha"
365
- ]
411
+ }
366
412
  },
367
413
  "TabWidthProperties": {
368
414
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -374,6 +420,8 @@
374
420
  "items": {
375
421
  "type": "number"
376
422
  },
423
+ "minItems": 2,
424
+ "maxItems": 2,
377
425
  "description": "Minimum and maximum tab widths."
378
426
  },
379
427
  "unit": {
@@ -387,13 +435,9 @@
387
435
  "const": "%"
388
436
  }
389
437
  ],
390
- "description": "Unit used by the tab width values."
438
+ "description": "Unit used by the tab width values. Omitted units use percentages."
391
439
  }
392
- },
393
- "required": [
394
- "value",
395
- "unit"
396
- ]
440
+ }
397
441
  },
398
442
  "TabbedColorProperties": {
399
443
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -402,22 +446,24 @@
402
446
  "properties": {
403
447
  "useColorExpression": {
404
448
  "type": "boolean",
405
- "description": "Whether to use an expression instead of a fixed color."
449
+ "description": "Whether to use colorExpression instead of the fixed color."
406
450
  },
407
451
  "color": {
408
- "$ref": "TabbedPaletteColor.json",
409
- "description": "Fixed palette color used when expression coloring is disabled."
452
+ "anyOf": [
453
+ {
454
+ "type": "string"
455
+ },
456
+ {
457
+ "$ref": "Color.json"
458
+ }
459
+ ],
460
+ "description": "Fixed CSS color string or custom/theme palette color object."
410
461
  },
411
462
  "colorExpression": {
412
- "$ref": "StringExpression.json",
413
- "description": "Expression used to calculate the color when expression coloring is enabled."
463
+ "type": "string",
464
+ "description": "Color expression used when useColorExpression is true."
414
465
  }
415
- },
416
- "required": [
417
- "useColorExpression",
418
- "color",
419
- "colorExpression"
420
- ]
466
+ }
421
467
  },
422
468
  "TabbedContainerChildListDefinition": {
423
469
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -473,9 +519,7 @@
473
519
  "visualization",
474
520
  "qExtendsId",
475
521
  "title",
476
- "childRefId",
477
- "showCondition",
478
- "visible"
522
+ "childRefId"
479
523
  ]
480
524
  },
481
525
  "GeneralStyleComponentProperties": {
@@ -533,81 +577,6 @@
533
577
  }
534
578
  }
535
579
  },
536
- "Color": {
537
- "$schema": "https://json-schema.org/draft/2020-12/schema",
538
- "$id": "Color.json",
539
- "anyOf": [
540
- {
541
- "$ref": "CustomColor.json"
542
- },
543
- {
544
- "$ref": "IndexedColor.json"
545
- }
546
- ]
547
- },
548
- "CustomColor": {
549
- "$schema": "https://json-schema.org/draft/2020-12/schema",
550
- "$id": "CustomColor.json",
551
- "type": "object",
552
- "properties": {
553
- "index": {
554
- "type": "number",
555
- "const": -1,
556
- "description": "Use the custom color instead of a palette color. Omit, or set to -1."
557
- },
558
- "color": {
559
- "type": "string",
560
- "description": "Hex color string, e.g. \"#4477aa\"."
561
- }
562
- },
563
- "required": [
564
- "color"
565
- ],
566
- "allOf": [
567
- {
568
- "$ref": "ColorProperties.json"
569
- }
570
- ]
571
- },
572
- "ColorProperties": {
573
- "$schema": "https://json-schema.org/draft/2020-12/schema",
574
- "$id": "ColorProperties.json",
575
- "type": "object",
576
- "properties": {
577
- "alpha": {
578
- "type": "number",
579
- "default": 1,
580
- "minimum": 0,
581
- "maximum": 1,
582
- "description": "Opacity from 0 (transparent) to 1 (opaque)."
583
- }
584
- }
585
- },
586
- "IndexedColor": {
587
- "$schema": "https://json-schema.org/draft/2020-12/schema",
588
- "$id": "IndexedColor.json",
589
- "type": "object",
590
- "properties": {
591
- "index": {
592
- "type": "integer",
593
- "default": 6,
594
- "minimum": 0,
595
- "description": "Zero-based index into the theme palette."
596
- },
597
- "color": {
598
- "type": "string",
599
- "description": "Hex color to use when the theme palette does not contain the requested index."
600
- }
601
- },
602
- "required": [
603
- "index"
604
- ],
605
- "allOf": [
606
- {
607
- "$ref": "ColorProperties.json"
608
- }
609
- ]
610
- },
611
580
  "StringExpressionWrapper": {
612
581
  "$schema": "https://json-schema.org/draft/2020-12/schema",
613
582
  "$id": "StringExpressionWrapper.json",
@@ -941,12 +910,7 @@
941
910
  }
942
911
  },
943
912
  "required": [
944
- "key",
945
- "icon",
946
- "label",
947
- "width",
948
- "indicator",
949
- "background"
913
+ "key"
950
914
  ]
951
915
  },
952
916
  "TabsIconProperties": {
@@ -974,11 +938,16 @@
974
938
  }
975
939
  ],
976
940
  "description": "Position of each tab icon relative to its label."
941
+ },
942
+ "size": {
943
+ "type": "string",
944
+ "description": "Icon size as a CSS length, for example \"14px\"."
945
+ },
946
+ "color": {
947
+ "$ref": "Color.json",
948
+ "description": "Custom hex or theme palette color for tab icons."
977
949
  }
978
- },
979
- "required": [
980
- "position"
981
- ]
950
+ }
982
951
  },
983
952
  "TabsLabelProperties": {
984
953
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -986,7 +955,7 @@
986
955
  "type": "object",
987
956
  "properties": {
988
957
  "color": {
989
- "$ref": "TabbedPaletteColor.json",
958
+ "$ref": "Color.json",
990
959
  "description": "Tab label color."
991
960
  },
992
961
  "fontFamily": {
@@ -1018,14 +987,7 @@
1018
987
  "type": "boolean",
1019
988
  "description": "Whether tab labels are shown."
1020
989
  }
1021
- },
1022
- "required": [
1023
- "color",
1024
- "fontFamily",
1025
- "fontSize",
1026
- "alignment",
1027
- "show"
1028
- ]
990
+ }
1029
991
  },
1030
992
  "TabsIndicatorProperties": {
1031
993
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -1040,11 +1002,7 @@
1040
1002
  "$ref": "TabbedColorProperties.json",
1041
1003
  "description": "Indicator color while hovering over a tab."
1042
1004
  }
1043
- },
1044
- "required": [
1045
- "selected",
1046
- "hover"
1047
- ]
1005
+ }
1048
1006
  },
1049
1007
  "TabsBackgroundProperties": {
1050
1008
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -1063,12 +1021,7 @@
1063
1021
  "$ref": "TabbedColorProperties.json",
1064
1022
  "description": "Background color while hovering over a tab."
1065
1023
  }
1066
- },
1067
- "required": [
1068
- "selected",
1069
- "unselected",
1070
- "hover"
1071
- ]
1024
+ }
1072
1025
  },
1073
1026
  "/schemas/layout": {
1074
1027
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -1255,6 +1208,14 @@
1255
1208
  "show": {
1256
1209
  "type": "boolean",
1257
1210
  "description": "Whether the icon is shown for this tab."
1211
+ },
1212
+ "size": {
1213
+ "type": "string",
1214
+ "description": "Resolved icon size as a CSS length."
1215
+ },
1216
+ "color": {
1217
+ "$ref": "Color.json",
1218
+ "description": "Resolved icon color."
1258
1219
  }
1259
1220
  }
1260
1221
  },
@@ -1264,7 +1225,7 @@
1264
1225
  "type": "object",
1265
1226
  "properties": {
1266
1227
  "color": {
1267
- "$ref": "TabbedPaletteColor.json",
1228
+ "$ref": "Color.json",
1268
1229
  "description": "Resolved label color for this tab."
1269
1230
  },
1270
1231
  "fontFamily": {
@@ -1309,8 +1270,15 @@
1309
1270
  "description": "Whether expression-based coloring is enabled."
1310
1271
  },
1311
1272
  "color": {
1312
- "$ref": "TabbedPaletteColor.json",
1313
- "description": "Resolved fixed palette color."
1273
+ "anyOf": [
1274
+ {
1275
+ "type": "string"
1276
+ },
1277
+ {
1278
+ "$ref": "Color.json"
1279
+ }
1280
+ ],
1281
+ "description": "Fixed CSS color string or custom/theme palette color object."
1314
1282
  },
1315
1283
  "colorExpression": {
1316
1284
  "type": "string",
@@ -1621,7 +1589,7 @@
1621
1589
  "description": "Resolved icon size."
1622
1590
  },
1623
1591
  "color": {
1624
- "$ref": "TabbedPaletteColor.json",
1592
+ "$ref": "Color.json",
1625
1593
  "description": "Resolved icon color."
1626
1594
  }
1627
1595
  }
@@ -1632,7 +1600,7 @@
1632
1600
  "type": "object",
1633
1601
  "properties": {
1634
1602
  "color": {
1635
- "$ref": "TabbedPaletteColor.json",
1603
+ "$ref": "Color.json",
1636
1604
  "description": "Resolved tab label color."
1637
1605
  },
1638
1606
  "fontFamily": {
@@ -1650,6 +1618,10 @@
1650
1618
  "hide": {
1651
1619
  "type": "boolean",
1652
1620
  "description": "Whether the resolved tab label is hidden."
1621
+ },
1622
+ "show": {
1623
+ "type": "boolean",
1624
+ "description": "Whether the resolved tab label is shown."
1653
1625
  }
1654
1626
  }
1655
1627
  },
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "name": "@nebula.js/sn-tabbed-container:properties",
5
5
  "description": "Tabbed container generic object definition",
6
- "version": "2.15.0",
6
+ "version": "2.17.0",
7
7
  "license": "MIT",
8
8
  "stability": "stable",
9
9
  "x-qlik-visibility": "public"