@genesislcap/foundation-forms 14.21.0 → 14.22.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.
@@ -53,7 +53,7 @@
53
53
  "type": {
54
54
  "text": "array"
55
55
  },
56
- "default": "[\n fallbackEntry,\n stringEntry,\n BooleanControlEntry,\n LayoutArrayRendererEntry,\n LayoutGroupRendererEntry,\n LayoutHorizontalEntry,\n LayoutVertical2ColumnsEntry,\n LayoutRendererEntry,\n NumberControlRendererEntry,\n ConnectedMultiselectControlRendererEntry,\n EnumControlRendererEntry,\n ConnectedSelectControlRendererEntry,\n DateControlRendererEntry,\n InvisibleControlEntry,\n]",
56
+ "default": "[\n fallbackEntry,\n stringEntry,\n BooleanControlEntry,\n LayoutArrayRendererEntry,\n LayoutCategorizationRendererEntry,\n LayoutGroupRendererEntry,\n LayoutHorizontalEntry,\n LayoutVertical2ColumnsEntry,\n LayoutRendererEntry,\n NumberControlRendererEntry,\n ConnectedMultiselectControlRendererEntry,\n EnumControlRendererEntry,\n ConnectedSelectControlRendererEntry,\n DateControlRendererEntry,\n InvisibleControlEntry,\n]",
57
57
  "privacy": "public"
58
58
  },
59
59
  {
@@ -95,7 +95,7 @@
95
95
  "type": {
96
96
  "text": "RendererEntry[]"
97
97
  },
98
- "default": "[\n fallbackEntry,\n stringEntry,\n BooleanControlEntry,\n LayoutArrayRendererEntry,\n LayoutGroupRendererEntry,\n LayoutHorizontalEntry,\n LayoutVertical2ColumnsEntry,\n LayoutRendererEntry,\n NumberControlRendererEntry,\n ConnectedMultiselectControlRendererEntry,\n EnumControlRendererEntry,\n ConnectedSelectControlRendererEntry,\n DateControlRendererEntry,\n InvisibleControlEntry,\n]",
98
+ "default": "[\n fallbackEntry,\n stringEntry,\n BooleanControlEntry,\n LayoutArrayRendererEntry,\n LayoutCategorizationRendererEntry,\n LayoutGroupRendererEntry,\n LayoutHorizontalEntry,\n LayoutVertical2ColumnsEntry,\n LayoutRendererEntry,\n NumberControlRendererEntry,\n ConnectedMultiselectControlRendererEntry,\n EnumControlRendererEntry,\n ConnectedSelectControlRendererEntry,\n DateControlRendererEntry,\n InvisibleControlEntry,\n]",
99
99
  "description": "Allows to provide set of renderers used by the form. If not provided it will default to text-field inputs",
100
100
  "privacy": "public"
101
101
  },
@@ -1118,6 +1118,69 @@
1118
1118
  }
1119
1119
  ]
1120
1120
  },
1121
+ {
1122
+ "kind": "javascript-module",
1123
+ "path": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts",
1124
+ "declarations": [
1125
+ {
1126
+ "kind": "function",
1127
+ "name": "CategorizationWrapperRendererTemplate",
1128
+ "parameters": [
1129
+ {
1130
+ "name": "prefix",
1131
+ "default": "'zero'"
1132
+ }
1133
+ ]
1134
+ },
1135
+ {
1136
+ "kind": "class",
1137
+ "description": "",
1138
+ "name": "CategorizationWrapper",
1139
+ "members": [
1140
+ {
1141
+ "kind": "field",
1142
+ "name": "form"
1143
+ },
1144
+ {
1145
+ "kind": "field",
1146
+ "name": "control"
1147
+ }
1148
+ ],
1149
+ "superclass": {
1150
+ "name": "FASTElement",
1151
+ "package": "@microsoft/fast-element"
1152
+ },
1153
+ "tagName": "categorization-wrapper",
1154
+ "customElement": true
1155
+ }
1156
+ ],
1157
+ "exports": [
1158
+ {
1159
+ "kind": "js",
1160
+ "name": "CategorizationWrapperRendererTemplate",
1161
+ "declaration": {
1162
+ "name": "CategorizationWrapperRendererTemplate",
1163
+ "module": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts"
1164
+ }
1165
+ },
1166
+ {
1167
+ "kind": "js",
1168
+ "name": "CategorizationWrapper",
1169
+ "declaration": {
1170
+ "name": "CategorizationWrapper",
1171
+ "module": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts"
1172
+ }
1173
+ },
1174
+ {
1175
+ "kind": "custom-element-definition",
1176
+ "name": "categorization-wrapper",
1177
+ "declaration": {
1178
+ "name": "CategorizationWrapper",
1179
+ "module": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts"
1180
+ }
1181
+ }
1182
+ ]
1183
+ },
1121
1184
  {
1122
1185
  "kind": "javascript-module",
1123
1186
  "path": "src/jsonforms/renderers/ConnectedMultiselectControlRenderer.ts",
@@ -1561,6 +1624,43 @@
1561
1624
  }
1562
1625
  ]
1563
1626
  },
1627
+ {
1628
+ "kind": "javascript-module",
1629
+ "path": "src/jsonforms/renderers/LayoutCategorizationRenderer.ts",
1630
+ "declarations": [
1631
+ {
1632
+ "kind": "variable",
1633
+ "name": "LayoutCategorizationRendererTemplate",
1634
+ "default": "html`\n <template>\n <categorization-wrapper :form=${(x) => x} :control=${(x) => x.control}></categorization-wrapper>\n </template>\n`"
1635
+ },
1636
+ {
1637
+ "kind": "variable",
1638
+ "name": "LayoutCategorizationRendererEntry",
1639
+ "type": {
1640
+ "text": "any"
1641
+ },
1642
+ "default": "{\n renderer: LayoutCategorizationRendererTemplate,\n tester: rankWith(LAYOUT_CATEGORIZATION_RANK, (uiSchema) => uiSchema.type === 'Categorization'),\n mapper: mapStateToLayoutProps,\n}"
1643
+ }
1644
+ ],
1645
+ "exports": [
1646
+ {
1647
+ "kind": "js",
1648
+ "name": "LayoutCategorizationRendererTemplate",
1649
+ "declaration": {
1650
+ "name": "LayoutCategorizationRendererTemplate",
1651
+ "module": "src/jsonforms/renderers/LayoutCategorizationRenderer.ts"
1652
+ }
1653
+ },
1654
+ {
1655
+ "kind": "js",
1656
+ "name": "LayoutCategorizationRendererEntry",
1657
+ "declaration": {
1658
+ "name": "LayoutCategorizationRendererEntry",
1659
+ "module": "src/jsonforms/renderers/LayoutCategorizationRenderer.ts"
1660
+ }
1661
+ }
1662
+ ]
1663
+ },
1564
1664
  {
1565
1665
  "kind": "javascript-module",
1566
1666
  "path": "src/jsonforms/renderers/LayoutGroupRenderer.ts",
@@ -1822,6 +1922,14 @@
1822
1922
  },
1823
1923
  "default": "2"
1824
1924
  },
1925
+ {
1926
+ "kind": "variable",
1927
+ "name": "LAYOUT_CATEGORIZATION_RANK",
1928
+ "type": {
1929
+ "text": "number"
1930
+ },
1931
+ "default": "2"
1932
+ },
1825
1933
  {
1826
1934
  "kind": "variable",
1827
1935
  "name": "LAYOUT_GROUP_RANK",
@@ -1920,6 +2028,14 @@
1920
2028
  "module": "src/jsonforms/renderers/RenderersRanks.ts"
1921
2029
  }
1922
2030
  },
2031
+ {
2032
+ "kind": "js",
2033
+ "name": "LAYOUT_CATEGORIZATION_RANK",
2034
+ "declaration": {
2035
+ "name": "LAYOUT_CATEGORIZATION_RANK",
2036
+ "module": "src/jsonforms/renderers/RenderersRanks.ts"
2037
+ }
2038
+ },
1923
2039
  {
1924
2040
  "kind": "js",
1925
2041
  "name": "LAYOUT_GROUP_RANK",
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/form.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAiB1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,gBAAgB;AAChB,eAAO,MAAM,MAAM,gDAAkC,CAAC;AActD,cAAc;AACd,eAAO,MAAM,SAAS,OAerB,CAAC;AACF;;;;;GAKG;AAEH,qBAKa,IAAK,SAAQ,iBAAiB;IACzC;;;;OAIG;IACG,YAAY,EAAE,MAAM,CAAC;YACb,mBAAmB;IAQjC,OAAO,CAAC,oBAAoB;IA0B5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACS,QAAQ,EAAE,eAAe,CAAC;IACtC;;;OAGG;IACS,SAAS,EAAE,aAAa,EAAE,CAAa;IACnD;;;;;;OAMG;IACS,UAAU,EAAE,WAAW,CAAC;IAEpC,OAAO,CAAC,MAAM,CAAqB;IAC1B,OAAO,CAAC,OAAO,CAAW;IACnC;;;O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AK,EAAE,WAAW;IAQ3B,oBAAoB;CAMrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"form.template.d.ts","sourceRoot":"","sources":["../../src/form.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAWnC,eAAO,MAAM,sBAAsB,2DA2BlC,CAAC"}
1
+ {"version":3,"file":"form.template.d.ts","sourceRoot":"","sources":["../../src/form.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAanC,eAAO,MAAM,sBAAsB,2DA2BlC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ export declare const CategorizationWrapperRendererTemplate: (prefix?: string) => import("@microsoft/fast-element").ViewTemplate<any, any>;
3
+ export declare class CategorizationWrapper extends FASTElement {
4
+ form: any;
5
+ control: any;
6
+ }
7
+ //# sourceMappingURL=CategorizationWrapperRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategorizationWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/CategorizationWrapperRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,WAAW,EAAU,MAAM,yBAAyB,CAAC;AAEpG,eAAO,MAAM,qCAAqC,+EAqCjD,CAAC;AAiBF,qBAOa,qBAAsB,SAAQ,WAAW;IACxC,IAAI,MAAC;IACL,OAAO,MAAC;CACrB"}
@@ -0,0 +1,3 @@
1
+ export declare const LayoutCategorizationRendererTemplate: import("@microsoft/fast-element").ViewTemplate<any, any>;
2
+ export declare const LayoutCategorizationRendererEntry: any;
3
+ //# sourceMappingURL=LayoutCategorizationRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LayoutCategorizationRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/LayoutCategorizationRenderer.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oCAAoC,0DAIhD,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,GAI/C,CAAC"}
@@ -6,6 +6,7 @@ export declare const SELECT_CONTROL_RANK = 4;
6
6
  export declare const DATE_CONTROL_RANK = 4;
7
7
  export declare const LAYOUT_RANK = 2;
8
8
  export declare const LAYOUT_ARRAY_RANK = 2;
9
+ export declare const LAYOUT_CATEGORIZATION_RANK = 2;
9
10
  export declare const LAYOUT_GROUP_RANK = 2;
10
11
  export declare const LAYOUT_HORIZONTAL_RANK = 2;
11
12
  export declare const LAYOUT2COLUMNS_RANK = 2;
@@ -1 +1 @@
1
- {"version":3,"file":"RenderersRanks.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/RenderersRanks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAC1C,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,sBAAsB,IAAI,CAAC;AACxC,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,sBAAsB,IAAI,CAAC"}
1
+ {"version":3,"file":"RenderersRanks.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/RenderersRanks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAC1C,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAC5C,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,sBAAsB,IAAI,CAAC;AACxC,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,sBAAsB,IAAI,CAAC"}
@@ -17,6 +17,7 @@ export type UiSchemaElementOptions = {
17
17
  textarea?: boolean;
18
18
  data?: any[];
19
19
  childUiSchema?: UiSchema;
20
+ childElements?: UiSchema[];
20
21
  i18n?: {
21
22
  [key: string]: any;
22
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E,cAAc;AACd,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,gBAAgB,GAAG,GAAG,CAAC;AAErE,cAAc;AACd,MAAM,MAAM,sBAAsB,GAAG;IACnC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IACrC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,WAAW,EAAE,CAAC;IACvE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,CAAC,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,KAAK,mBAAmB,CAAC;CACrF,CAAC"}
package/dist/esm/form.js CHANGED
@@ -13,6 +13,7 @@ import { DateControlRendererEntry } from './jsonforms/renderers/DateControlRende
13
13
  import { EnumControlRendererEntry } from './jsonforms/renderers/EnumControlRenderer';
14
14
  import { InvisibleControlEntry } from './jsonforms/renderers/InvisibleControlRenderer';
15
15
  import { LayoutArrayRendererEntry } from './jsonforms/renderers/LayoutArrayRenderer';
16
+ import { LayoutCategorizationRendererEntry } from './jsonforms/renderers/LayoutCategorizationRenderer';
16
17
  import { LayoutGroupRendererEntry } from './jsonforms/renderers/LayoutGroupRenderer';
17
18
  import { LayoutHorizontalEntry } from './jsonforms/renderers/LayoutHorizontalRenderer';
18
19
  import { LayoutRendererEntry } from './jsonforms/renderers/LayoutRenderer';
@@ -37,6 +38,7 @@ export const renderers = [
37
38
  stringEntry,
38
39
  BooleanControlEntry,
39
40
  LayoutArrayRendererEntry,
41
+ LayoutCategorizationRendererEntry,
40
42
  LayoutGroupRendererEntry,
41
43
  LayoutHorizontalEntry,
42
44
  LayoutVertical2ColumnsEntry,
@@ -1,10 +1,12 @@
1
1
  import { html, when } from '@microsoft/fast-element';
2
2
  import { JSONForms } from './jsonforms/json-forms';
3
3
  import { ArrayListWrapper } from './jsonforms/renderers/ArrayListWrapperRenderer';
4
+ import { CategorizationWrapper } from './jsonforms/renderers/CategorizationWrapperRenderer';
4
5
  import { ControlWrapper } from './jsonforms/renderers/ControlWrapperRenderer';
5
6
  import { DispatchRenderer } from './jsonforms/renderers/dispatch-renderer';
6
7
  JSONForms;
7
8
  ArrayListWrapper;
9
+ CategorizationWrapper;
8
10
  ControlWrapper;
9
11
  DispatchRenderer;
10
12
  export const foundationFormTemplate = html `
@@ -0,0 +1,61 @@
1
+ import { __decorate } from "tslib";
2
+ import { html, css, observable, customElement, FASTElement, repeat } from '@microsoft/fast-element';
3
+ export const CategorizationWrapperRendererTemplate = (prefix = 'zero') => html `
4
+ <template>
5
+ <${prefix}-tabs class="tabs-container">
6
+ ${repeat((x) => x.control.uischema.elements, html `
7
+ <${prefix}-tab class="tab-control">${(x, ctx) => { var _a; return (_a = x.label) !== null && _a !== void 0 ? _a : `Category ${ctx.index + 1}`; }}</${prefix}-tab>
8
+ `, { positioning: true })}
9
+ ${repeat((x) => x.control.uischema.elements, html `
10
+ <${prefix}-tab-panel class="tab-panel-control">
11
+ ${repeat((x) => x.options.childElements, html `
12
+ <dispatch-renderer
13
+ ?submitted=${(x, ctx) => ctx.parentContext.parent.form.submitted}
14
+ :dispatch=${(x, ctx) => ctx.parentContext.parent.form.dispatch}
15
+ :jsonforms=${(x, ctx) => ctx.parentContext.parent.form.jsonforms}
16
+ :props=${(x, ctx) => ({
17
+ uischema: x,
18
+ schema: ctx.parentContext.parent.control.schema,
19
+ renderers: ctx.parentContext.parent.control.renderers,
20
+ path: ctx.parentContext.parent.control.path,
21
+ enabled: ctx.parentContext.parent.control.enabled,
22
+ })}
23
+ ></dispatch-renderer>
24
+ `)}
25
+ </${prefix}-tab-panel>
26
+ `)}
27
+ </${prefix}-tabs>
28
+ </template>
29
+ `;
30
+ const styles = css `
31
+ .tabs-container::part(tablist) {
32
+ background-color: transparent;
33
+ border-bottom: none;
34
+ }
35
+
36
+ .tab-control {
37
+ box-shadow: none;
38
+ }
39
+
40
+ .tab-panel-control {
41
+ margin-top: 10px;
42
+ }
43
+ `;
44
+ let CategorizationWrapper = class CategorizationWrapper extends FASTElement {
45
+ };
46
+ __decorate([
47
+ observable
48
+ ], CategorizationWrapper.prototype, "form", void 0);
49
+ __decorate([
50
+ observable
51
+ ], CategorizationWrapper.prototype, "control", void 0);
52
+ CategorizationWrapper = __decorate([
53
+ customElement({
54
+ name: 'categorization-wrapper',
55
+ styles,
56
+ template: html `
57
+ ${(x) => CategorizationWrapperRendererTemplate(x.form.prefix)}
58
+ `,
59
+ })
60
+ ], CategorizationWrapper);
61
+ export { CategorizationWrapper };
@@ -0,0 +1,13 @@
1
+ import { mapStateToLayoutProps, rankWith } from '@jsonforms/core';
2
+ import { html } from '@microsoft/fast-element';
3
+ import { LAYOUT_CATEGORIZATION_RANK } from './RenderersRanks';
4
+ export const LayoutCategorizationRendererTemplate = html `
5
+ <template>
6
+ <categorization-wrapper :form=${(x) => x} :control=${(x) => x.control}></categorization-wrapper>
7
+ </template>
8
+ `;
9
+ export const LayoutCategorizationRendererEntry = {
10
+ renderer: LayoutCategorizationRendererTemplate,
11
+ tester: rankWith(LAYOUT_CATEGORIZATION_RANK, (uiSchema) => uiSchema.type === 'Categorization'),
12
+ mapper: mapStateToLayoutProps,
13
+ };
@@ -6,6 +6,7 @@ export const SELECT_CONTROL_RANK = 4;
6
6
  export const DATE_CONTROL_RANK = 4;
7
7
  export const LAYOUT_RANK = 2;
8
8
  export const LAYOUT_ARRAY_RANK = 2;
9
+ export const LAYOUT_CATEGORIZATION_RANK = 2;
9
10
  export const LAYOUT_GROUP_RANK = 2;
10
11
  export const LAYOUT_HORIZONTAL_RANK = 2;
11
12
  export const LAYOUT2COLUMNS_RANK = 2;
@@ -1061,7 +1061,16 @@
1061
1061
  },
1062
1062
  {
1063
1063
  "kind": "Content",
1064
- "text": ";\n i18n?: {\n [key: string]: any;\n };\n}"
1064
+ "text": ";\n childElements?: "
1065
+ },
1066
+ {
1067
+ "kind": "Reference",
1068
+ "text": "UiSchema",
1069
+ "canonicalReference": "@genesislcap/foundation-forms!UiSchema:type"
1070
+ },
1071
+ {
1072
+ "kind": "Content",
1073
+ "text": "[];\n i18n?: {\n [key: string]: any;\n };\n}"
1065
1074
  },
1066
1075
  {
1067
1076
  "kind": "Content",
@@ -1073,7 +1082,7 @@
1073
1082
  "name": "UiSchemaElementOptions",
1074
1083
  "typeTokenRange": {
1075
1084
  "startIndex": 1,
1076
- "endIndex": 8
1085
+ "endIndex": 10
1077
1086
  }
1078
1087
  },
1079
1088
  {
@@ -290,6 +290,7 @@ export declare type UiSchemaElementOptions = {
290
290
  textarea?: boolean;
291
291
  data?: any[];
292
292
  childUiSchema?: UiSchema;
293
+ childElements?: UiSchema[];
293
294
  i18n?: {
294
295
  [key: string]: any;
295
296
  };
@@ -19,6 +19,7 @@ export type UiSchemaElementOptions = {
19
19
  textarea?: boolean;
20
20
  data?: any[];
21
21
  childUiSchema?: UiSchema;
22
+ childElements?: UiSchema[];
22
23
  i18n?: {
23
24
  [key: string]: any;
24
25
  };
@@ -138,6 +138,7 @@ export type UiSchemaElementOptions = {
138
138
  textarea?: boolean;
139
139
  data?: any[];
140
140
  childUiSchema?: UiSchema;
141
+ childElements?: UiSchema[];
141
142
  i18n?: {
142
143
  [key: string]: any;
143
144
  };
@@ -148,7 +149,7 @@ export type UiSchemaElementType = 'Control' | 'VerticalLayout' | any;
148
149
 
149
150
  // Warnings were encountered during analysis:
150
151
  //
151
- // src/types.ts:49:3 - (ae-forgotten-export) The symbol "DispatchRenderer" needs to be exported by the entry point index.d.ts
152
+ // src/types.ts:50:3 - (ae-forgotten-export) The symbol "DispatchRenderer" needs to be exported by the entry point index.d.ts
152
153
 
153
154
  // (No @packageDocumentation comment for this package)
154
155
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-forms",
3
3
  "description": "Genesis Foundation Forms",
4
- "version": "14.21.0",
4
+ "version": "14.22.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -49,8 +49,8 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@custom-elements-manifest/analyzer": "^0.8.2",
52
- "@genesislcap/foundation-testing": "^14.21.0",
53
- "@genesislcap/genx": "^14.21.0",
52
+ "@genesislcap/foundation-testing": "^14.22.0",
53
+ "@genesislcap/genx": "^14.22.0",
54
54
  "@microsoft/api-documenter": "^7.19.13",
55
55
  "@microsoft/api-extractor": "^7.31.1",
56
56
  "@module-federation/dashboard-plugin": "2.3.0",
@@ -100,9 +100,9 @@
100
100
  "webpack-merge": "^5.7.3"
101
101
  },
102
102
  "dependencies": {
103
- "@genesislcap/foundation-comms": "^14.21.0",
104
- "@genesislcap/foundation-criteria": "^14.21.0",
105
- "@genesislcap/foundation-utils": "^14.21.0",
103
+ "@genesislcap/foundation-comms": "^14.22.0",
104
+ "@genesislcap/foundation-criteria": "^14.22.0",
105
+ "@genesislcap/foundation-utils": "^14.22.0",
106
106
  "@jsonforms/core": "^3.0.0",
107
107
  "@microsoft/fast-components": "^2.21.3",
108
108
  "@microsoft/fast-element": "^1.7.0",
@@ -123,5 +123,5 @@
123
123
  "access": "public"
124
124
  },
125
125
  "customElements": "dist/custom-elements.json",
126
- "gitHead": "af2f1a232d7bee5cefa374a6214030c9a85eaf4f"
126
+ "gitHead": "70741ed0685f302744d81d94b5dabfb9645aa3fe"
127
127
  }