@abgov/jsonforms-components 2.51.0 → 2.52.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.
- package/index.esm.js +2 -2
- package/package.json +1 -1
- package/renderer-catalog.json +67 -68
- package/src/lib/Context/register/actions.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { GoabFormItem, GoabDropdown, GoabDropdownItem, GoabInput, GoabTextArea,
|
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
import get$1 from 'lodash/get';
|
|
8
|
-
import { isVisible, isEnabled, deriveLabelForUISchemaElement, rankWith, isStringControl, and, optionIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, uiTypeIs, isControl as isControl$1, isEnumControl, isBooleanControl, createDefaultValue, Paths, Resolve, toDataPath,
|
|
8
|
+
import { isVisible, isEnabled, deriveLabelForUISchemaElement, rankWith, isStringControl, and, optionIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, uiTypeIs, isControl as isControl$1, isEnumControl, isBooleanControl, createDefaultValue, Paths, Resolve, toDataPath, schemaTypeIs, formatIs, getAjv, schemaMatches, or, isObjectArrayControl, isPrimitiveArrayControl, composePaths, hasType, isCategorization, isLayout } from '@jsonforms/core';
|
|
9
9
|
import * as _$b from 'lodash';
|
|
10
10
|
import ___default, { isObject as isObject$i, isEmpty as isEmpty$1 } from 'lodash';
|
|
11
11
|
import { useJsonForms, withJsonFormsControlProps, withJsonFormsEnumProps, withTranslateProps, JsonFormsDispatch, withJsonFormsAllOfProps, withJsonFormsArrayLayoutProps, withJsonFormsLayoutProps, withJsonFormsCellProps } from '@jsonforms/react';
|
|
@@ -10029,7 +10029,7 @@ const GoAEmailInput = props => {
|
|
|
10029
10029
|
});
|
|
10030
10030
|
};
|
|
10031
10031
|
const GoAEmailControl = props => jsx(GoAEmailInput, Object.assign({}, props));
|
|
10032
|
-
const GoAEmailControlTester = rankWith(4, and(isControl$1,
|
|
10032
|
+
const GoAEmailControlTester = rankWith(4, and(isControl$1, schemaTypeIs('string'), formatIs('email')));
|
|
10033
10033
|
const GoAInputEmailControl = withJsonFormsControlProps(GoAEmailControl);
|
|
10034
10034
|
|
|
10035
10035
|
let _$6 = t => t,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.52.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|
package/renderer-catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-03-
|
|
4
|
-
"sourceCommit": "
|
|
3
|
+
"generatedAt": "2026-03-06T17:19:31.979Z",
|
|
4
|
+
"sourceCommit": "861881a2ba103e8afab679844750d0ef8aafb067",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
6
|
"rendererCount": 32,
|
|
7
7
|
"renderers": [
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
"inference": "auto"
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
|
-
"id": "
|
|
256
|
+
"id": "goa-array-control",
|
|
257
257
|
"tester": "GoAArrayControlTester",
|
|
258
258
|
"kind": "control",
|
|
259
259
|
"ui": {
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
"inference": "auto"
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
|
-
"id": "
|
|
293
|
+
"id": "goa-boolean-control",
|
|
294
294
|
"tester": "GoABooleanControlTester",
|
|
295
295
|
"kind": "control",
|
|
296
296
|
"ui": {
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
"inference": "auto"
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
|
-
"id": "
|
|
330
|
+
"id": "goa-boolean-radio-control",
|
|
331
331
|
"tester": "GoABooleanRadioControlTester",
|
|
332
332
|
"kind": "control",
|
|
333
333
|
"ui": {
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
"inference": "auto"
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
|
-
"id": "
|
|
369
|
+
"id": "goa-calculation-control",
|
|
370
370
|
"tester": "GoACalculationControlTester",
|
|
371
371
|
"kind": "control",
|
|
372
372
|
"ui": {
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
"inference": "auto"
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
|
-
"id": "
|
|
406
|
+
"id": "goa-callout-control",
|
|
407
407
|
"tester": "GoACalloutControlTester",
|
|
408
408
|
"kind": "custom",
|
|
409
409
|
"ui": {
|
|
@@ -440,7 +440,7 @@
|
|
|
440
440
|
"inference": "auto"
|
|
441
441
|
},
|
|
442
442
|
{
|
|
443
|
-
"id": "
|
|
443
|
+
"id": "goa-checkout-group-control",
|
|
444
444
|
"tester": "GoACheckoutGroupControlTester",
|
|
445
445
|
"kind": "control",
|
|
446
446
|
"ui": {
|
|
@@ -479,7 +479,7 @@
|
|
|
479
479
|
"inference": "auto"
|
|
480
480
|
},
|
|
481
481
|
{
|
|
482
|
-
"id": "
|
|
482
|
+
"id": "goa-date-control",
|
|
483
483
|
"tester": "GoADateControlTester",
|
|
484
484
|
"kind": "control",
|
|
485
485
|
"ui": {
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
"inference": "auto"
|
|
517
517
|
},
|
|
518
518
|
{
|
|
519
|
-
"id": "
|
|
519
|
+
"id": "goa-date-time-control",
|
|
520
520
|
"tester": "GoADateTimeControlTester",
|
|
521
521
|
"kind": "control",
|
|
522
522
|
"ui": {
|
|
@@ -553,7 +553,7 @@
|
|
|
553
553
|
"inference": "auto"
|
|
554
554
|
},
|
|
555
555
|
{
|
|
556
|
-
"id": "
|
|
556
|
+
"id": "goa-email-control",
|
|
557
557
|
"tester": "GoAEmailControlTester",
|
|
558
558
|
"kind": "control",
|
|
559
559
|
"ui": {
|
|
@@ -566,8 +566,8 @@
|
|
|
566
566
|
"match": {
|
|
567
567
|
"scope": "control",
|
|
568
568
|
"schema": {
|
|
569
|
-
"type":
|
|
570
|
-
"format":
|
|
569
|
+
"type": "string",
|
|
570
|
+
"format": "email",
|
|
571
571
|
"enum": null,
|
|
572
572
|
"requiredProperties": [],
|
|
573
573
|
"exactProperties": null,
|
|
@@ -586,13 +586,11 @@
|
|
|
586
586
|
"source": {
|
|
587
587
|
"file": "libs/jsonforms-components/src/lib/Controls/Inputs/InputEmailControl.tsx"
|
|
588
588
|
},
|
|
589
|
-
"notes": [
|
|
590
|
-
|
|
591
|
-
],
|
|
592
|
-
"inference": "manual-required"
|
|
589
|
+
"notes": [],
|
|
590
|
+
"inference": "auto"
|
|
593
591
|
},
|
|
594
592
|
{
|
|
595
|
-
"id": "
|
|
593
|
+
"id": "goa-enum-control",
|
|
596
594
|
"tester": "GoAEnumControlTester",
|
|
597
595
|
"kind": "control",
|
|
598
596
|
"ui": {
|
|
@@ -635,7 +633,7 @@
|
|
|
635
633
|
"inference": "auto"
|
|
636
634
|
},
|
|
637
635
|
{
|
|
638
|
-
"id": "
|
|
636
|
+
"id": "goa-error-control",
|
|
639
637
|
"tester": "GoAErrorControlTester",
|
|
640
638
|
"kind": "control",
|
|
641
639
|
"ui": {
|
|
@@ -669,12 +667,13 @@
|
|
|
669
667
|
"file": "libs/jsonforms-components/src/lib/ErrorHandling/GoAErrorControl.tsx"
|
|
670
668
|
},
|
|
671
669
|
"notes": [
|
|
672
|
-
"
|
|
670
|
+
"Error renderer displayed when configuration is invalid. Should not be suggested as a valid renderer option."
|
|
673
671
|
],
|
|
674
|
-
"inference": "manual-required"
|
|
672
|
+
"inference": "manual-required",
|
|
673
|
+
"internal": true
|
|
675
674
|
},
|
|
676
675
|
{
|
|
677
|
-
"id": "
|
|
676
|
+
"id": "goa-group-layout",
|
|
678
677
|
"tester": "GoAGroupLayoutTester",
|
|
679
678
|
"kind": "layout",
|
|
680
679
|
"ui": {
|
|
@@ -711,7 +710,7 @@
|
|
|
711
710
|
"inference": "auto"
|
|
712
711
|
},
|
|
713
712
|
{
|
|
714
|
-
"id": "
|
|
713
|
+
"id": "goa-group-review-layout",
|
|
715
714
|
"tester": "GoAGroupReviewLayoutTester",
|
|
716
715
|
"kind": "layout",
|
|
717
716
|
"ui": {
|
|
@@ -748,7 +747,7 @@
|
|
|
748
747
|
"inference": "auto"
|
|
749
748
|
},
|
|
750
749
|
{
|
|
751
|
-
"id": "
|
|
750
|
+
"id": "goa-horizontal-layout",
|
|
752
751
|
"tester": "GoAHorizontalLayoutTester",
|
|
753
752
|
"kind": "layout",
|
|
754
753
|
"ui": {
|
|
@@ -785,7 +784,7 @@
|
|
|
785
784
|
"inference": "auto"
|
|
786
785
|
},
|
|
787
786
|
{
|
|
788
|
-
"id": "
|
|
787
|
+
"id": "goa-integer-control",
|
|
789
788
|
"tester": "GoAIntegerControlTester",
|
|
790
789
|
"kind": "control",
|
|
791
790
|
"ui": {
|
|
@@ -822,44 +821,7 @@
|
|
|
822
821
|
"inference": "auto"
|
|
823
822
|
},
|
|
824
823
|
{
|
|
825
|
-
"id": "
|
|
826
|
-
"tester": "GoAlVerticalLayoutTester",
|
|
827
|
-
"kind": "layout",
|
|
828
|
-
"ui": {
|
|
829
|
-
"type": "VerticalLayout",
|
|
830
|
-
"options": {
|
|
831
|
-
"required": {},
|
|
832
|
-
"optional": {}
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
"match": {
|
|
836
|
-
"scope": "layout",
|
|
837
|
-
"schema": {
|
|
838
|
-
"type": null,
|
|
839
|
-
"format": null,
|
|
840
|
-
"enum": null,
|
|
841
|
-
"requiredProperties": [],
|
|
842
|
-
"exactProperties": null,
|
|
843
|
-
"arrayItemType": null
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
"rank": 1,
|
|
847
|
-
"supports": {
|
|
848
|
-
"input": true,
|
|
849
|
-
"review": true
|
|
850
|
-
},
|
|
851
|
-
"fallback": {
|
|
852
|
-
"strategy": "unsupported",
|
|
853
|
-
"message": "No compatible renderer match for the requested UI schema element."
|
|
854
|
-
},
|
|
855
|
-
"source": {
|
|
856
|
-
"file": "libs/jsonforms-components/src/lib/layouts/VerticalLayoutControl.tsx"
|
|
857
|
-
},
|
|
858
|
-
"notes": [],
|
|
859
|
-
"inference": "auto"
|
|
860
|
-
},
|
|
861
|
-
{
|
|
862
|
-
"id": "go-alist-with-details",
|
|
824
|
+
"id": "goa-list-with-details",
|
|
863
825
|
"tester": "GoAListWithDetailsTester",
|
|
864
826
|
"kind": "custom",
|
|
865
827
|
"ui": {
|
|
@@ -898,7 +860,7 @@
|
|
|
898
860
|
"inference": "auto"
|
|
899
861
|
},
|
|
900
862
|
{
|
|
901
|
-
"id": "
|
|
863
|
+
"id": "goa-number-control",
|
|
902
864
|
"tester": "GoANumberControlTester",
|
|
903
865
|
"kind": "control",
|
|
904
866
|
"ui": {
|
|
@@ -935,7 +897,7 @@
|
|
|
935
897
|
"inference": "auto"
|
|
936
898
|
},
|
|
937
899
|
{
|
|
938
|
-
"id": "
|
|
900
|
+
"id": "goa-primitive-array",
|
|
939
901
|
"tester": "GoAPrimitiveArrayTester",
|
|
940
902
|
"kind": "control",
|
|
941
903
|
"ui": {
|
|
@@ -972,7 +934,7 @@
|
|
|
972
934
|
"inference": "auto"
|
|
973
935
|
},
|
|
974
936
|
{
|
|
975
|
-
"id": "
|
|
937
|
+
"id": "goa-radio-group-control",
|
|
976
938
|
"tester": "GoARadioGroupControlTester",
|
|
977
939
|
"kind": "control",
|
|
978
940
|
"ui": {
|
|
@@ -1011,7 +973,7 @@
|
|
|
1011
973
|
"inference": "auto"
|
|
1012
974
|
},
|
|
1013
975
|
{
|
|
1014
|
-
"id": "
|
|
976
|
+
"id": "goa-text-control",
|
|
1015
977
|
"tester": "GoATextControlTester",
|
|
1016
978
|
"kind": "control",
|
|
1017
979
|
"ui": {
|
|
@@ -1048,7 +1010,7 @@
|
|
|
1048
1010
|
"inference": "auto"
|
|
1049
1011
|
},
|
|
1050
1012
|
{
|
|
1051
|
-
"id": "
|
|
1013
|
+
"id": "goa-time-control",
|
|
1052
1014
|
"tester": "GoATimeControlTester",
|
|
1053
1015
|
"kind": "control",
|
|
1054
1016
|
"ui": {
|
|
@@ -1084,6 +1046,43 @@
|
|
|
1084
1046
|
"notes": [],
|
|
1085
1047
|
"inference": "auto"
|
|
1086
1048
|
},
|
|
1049
|
+
{
|
|
1050
|
+
"id": "goal-vertical-layout",
|
|
1051
|
+
"tester": "GoAlVerticalLayoutTester",
|
|
1052
|
+
"kind": "layout",
|
|
1053
|
+
"ui": {
|
|
1054
|
+
"type": "VerticalLayout",
|
|
1055
|
+
"options": {
|
|
1056
|
+
"required": {},
|
|
1057
|
+
"optional": {}
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
"match": {
|
|
1061
|
+
"scope": "layout",
|
|
1062
|
+
"schema": {
|
|
1063
|
+
"type": null,
|
|
1064
|
+
"format": null,
|
|
1065
|
+
"enum": null,
|
|
1066
|
+
"requiredProperties": [],
|
|
1067
|
+
"exactProperties": null,
|
|
1068
|
+
"arrayItemType": null
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
"rank": 1,
|
|
1072
|
+
"supports": {
|
|
1073
|
+
"input": true,
|
|
1074
|
+
"review": true
|
|
1075
|
+
},
|
|
1076
|
+
"fallback": {
|
|
1077
|
+
"strategy": "unsupported",
|
|
1078
|
+
"message": "No compatible renderer match for the requested UI schema element."
|
|
1079
|
+
},
|
|
1080
|
+
"source": {
|
|
1081
|
+
"file": "libs/jsonforms-components/src/lib/layouts/VerticalLayoutControl.tsx"
|
|
1082
|
+
},
|
|
1083
|
+
"notes": [],
|
|
1084
|
+
"inference": "auto"
|
|
1085
|
+
},
|
|
1087
1086
|
{
|
|
1088
1087
|
"id": "help-content",
|
|
1089
1088
|
"tester": "HelpContentTester",
|