@redhat-cloud-services/frontend-components-config-utilities 4.7.31 → 4.8.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.
@@ -468,7 +468,6 @@
468
468
  }
469
469
  },
470
470
  "required": [
471
- "icon",
472
471
  "title"
473
472
  ],
474
473
  "additionalProperties": true
@@ -495,25 +494,20 @@
495
494
  "widgetDefaults": {
496
495
  "type": "object",
497
496
  "properties": {
498
- "sm": {
499
- "$ref": "#/$defs/widgetVariant"
497
+ "w": {
498
+ "type": "number"
500
499
  },
501
- "md": {
502
- "$ref": "#/$defs/widgetVariant"
500
+ "h": {
501
+ "type": "number"
503
502
  },
504
- "lg": {
505
- "$ref": "#/$defs/widgetVariant"
503
+ "maxH": {
504
+ "type": "number"
506
505
  },
507
- "xl": {
508
- "$ref": "#/$defs/widgetVariant"
506
+ "minH": {
507
+ "type": "number"
509
508
  }
510
509
  },
511
- "required": [
512
- "sm",
513
- "md",
514
- "lg",
515
- "xl"
516
- ],
510
+ "required": [],
517
511
  "additionalProperties": false
518
512
  },
519
513
  "widgetEntry": {
@@ -525,6 +519,12 @@
525
519
  "module": {
526
520
  "type": "string"
527
521
  },
522
+ "importName": {
523
+ "type": "string"
524
+ },
525
+ "featureFlag": {
526
+ "type": "string"
527
+ },
528
528
  "config": {
529
529
  "$ref": "#/$defs/widgetConfig"
530
530
  },
@@ -539,6 +539,164 @@
539
539
  ],
540
540
  "additionalProperties": false
541
541
  },
542
+ "templateConfigItem": {
543
+ "type": "object",
544
+ "properties": {
545
+ "w": {
546
+ "type": "number",
547
+ "description": "The width of the widget in the grid",
548
+ "minimum": 1,
549
+ "maximum": 4
550
+ },
551
+ "h": {
552
+ "type": "number",
553
+ "description": "The height of the widget in the grid",
554
+ "minimum": 1
555
+ },
556
+ "maxH": {
557
+ "type": "number",
558
+ "description": "The maximum height of the widget in the grid",
559
+ "minimum": 1
560
+ },
561
+ "minH": {
562
+ "type": "number",
563
+ "description": "The minimum height of the widget in the grid",
564
+ "minimum": 1
565
+ },
566
+ "cx": {
567
+ "type": "number",
568
+ "description": "The x position of the widget in the grid",
569
+ "minimum": 0,
570
+ "maximum": 3
571
+ },
572
+ "cy": {
573
+ "type": "number",
574
+ "description": "The y position of the widget in the grid",
575
+ "minimum": 0
576
+ },
577
+ "i": {
578
+ "type": "string",
579
+ "description": "The unique identifier of the widget"
580
+ },
581
+ "static": {
582
+ "type": "boolean",
583
+ "description": "Whether the widget is locked in the grid"
584
+ }
585
+ },
586
+ "additionalProperties": false
587
+ },
588
+ "baseWidgetLayoutsTemplateConfig": {
589
+ "type": "object",
590
+ "required": ["sm", "md", "lg", "xl"],
591
+ "additionalProperties": false,
592
+ "properties": {
593
+ "sm": {
594
+ "type": "array",
595
+ "items": {
596
+ "type": "object",
597
+ "$ref": "#/$defs/templateConfigItem",
598
+ "required": ["w", "h", "cx", "cy", "i"],
599
+ "additionalProperties": false,
600
+ "allOf": [
601
+ {
602
+ "properties": {
603
+ "cx": {
604
+ "type": "number",
605
+ "minimum": 0,
606
+ "exclusiveMaximum": 1
607
+ },
608
+ "w": {
609
+ "type": "number",
610
+ "minimum": 0,
611
+ "maximum": 1
612
+ }
613
+ }
614
+ }
615
+ ]
616
+ }
617
+ },
618
+ "md": {
619
+ "type": "array",
620
+ "items": {
621
+ "type": "object",
622
+ "$ref": "#/$defs/templateConfigItem",
623
+ "required": ["w", "h", "cx", "cy", "i"],
624
+ "additionalProperties": false,
625
+ "allOf": [
626
+ {
627
+ "properties": {
628
+ "cx": {
629
+ "type": "number",
630
+ "minimum": 0,
631
+ "exclusiveMaximum": 2
632
+ },
633
+ "w": {
634
+ "type": "number",
635
+ "minimum": 0,
636
+ "maximum": 2
637
+ }
638
+ }
639
+ }
640
+ ]
641
+ }
642
+ },
643
+ "lg": {
644
+ "type": "array",
645
+ "items": {
646
+ "type": "object",
647
+ "$ref": "#/$defs/templateConfigItem",
648
+ "required": ["w", "h", "cx", "cy", "i"],
649
+ "additionalProperties": false,
650
+ "allOf": [
651
+ {
652
+ "properties": {
653
+ "cx": {
654
+ "type": "number",
655
+ "minimum": 0,
656
+ "exclusiveMaximum": 3
657
+ },
658
+ "w": {
659
+ "type": "number",
660
+ "minimum": 0,
661
+ "maximum": 3
662
+ }
663
+ }
664
+ }
665
+ ]
666
+ }
667
+ },
668
+ "xl": {
669
+ "type": "array",
670
+ "items": {
671
+ "type": "object",
672
+ "$ref": "#/$defs/templateConfigItem",
673
+ "required": ["w", "h", "cx", "cy", "i"],
674
+ "additionalProperties": false
675
+ }
676
+ }
677
+ }
678
+ },
679
+ "baseWidgetLayouts": {
680
+ "title": "Base widget layout configurations",
681
+ "description": "A dashboard definition for widgets",
682
+ "type": "object",
683
+ "required": ["name", "displayName", "templateConfig"],
684
+ "additionalProperties": false,
685
+ "properties": {
686
+ "name": {
687
+ "type": "string",
688
+ "description": "The name of the dashboard template"
689
+ },
690
+ "displayName": {
691
+ "type": "string",
692
+ "description": "The display name of the dashboard template"
693
+ },
694
+ "templateConfig": {
695
+ "$ref": "#/$defs/baseWidgetLayoutsTemplateConfig",
696
+ "description": "The configuration of the dashboard template"
697
+ }
698
+ }
699
+ },
542
700
  "frontendSpec": {
543
701
  "type": "object",
544
702
  "properties": {
@@ -638,6 +796,12 @@
638
796
  "items": {
639
797
  "$ref": "#/$defs/widgetEntry"
640
798
  }
799
+ },
800
+ "baseWidgetLayouts": {
801
+ "type": "array",
802
+ "items": {
803
+ "$ref": "#/$defs/baseWidgetLayouts"
804
+ }
641
805
  }
642
806
  },
643
807
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components-config-utilities",
3
- "version": "4.7.31",
3
+ "version": "4.8.0",
4
4
  "description": "Utilities for shared config used in Red Hat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",