@genesislcap/foundation-forms 14.123.0 → 14.124.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.
Files changed (35) hide show
  1. package/dist/custom-elements.json +34 -14
  2. package/dist/dts/form.d.ts +5 -0
  3. package/dist/dts/form.d.ts.map +1 -1
  4. package/dist/dts/form.styles.d.ts.map +1 -1
  5. package/dist/dts/form.template.d.ts +2 -0
  6. package/dist/dts/form.template.d.ts.map +1 -1
  7. package/dist/dts/jsonforms/json-forms.d.ts +2 -0
  8. package/dist/dts/jsonforms/json-forms.d.ts.map +1 -1
  9. package/dist/dts/jsonforms/renderers/ArrayListWrapperRenderer.d.ts.map +1 -1
  10. package/dist/dts/jsonforms/renderers/dispatch-renderer.d.ts +0 -1
  11. package/dist/dts/jsonforms/renderers/dispatch-renderer.d.ts.map +1 -1
  12. package/dist/dts/types.d.ts +0 -5
  13. package/dist/dts/types.d.ts.map +1 -1
  14. package/dist/esm/form.js +8 -0
  15. package/dist/esm/form.styles.js +1 -0
  16. package/dist/esm/form.template.js +8 -3
  17. package/dist/esm/jsonforms/json-forms.js +7 -0
  18. package/dist/esm/jsonforms/renderers/ArrayListWrapperRenderer.js +1 -2
  19. package/dist/esm/jsonforms/renderers/BooleanControlRenderer.js +1 -1
  20. package/dist/esm/jsonforms/renderers/CategorizationWrapperRenderer.js +1 -1
  21. package/dist/esm/jsonforms/renderers/ConnectedMultiselectControlRenderer.js +1 -1
  22. package/dist/esm/jsonforms/renderers/ConnectedSelectControlRenderer.js +1 -1
  23. package/dist/esm/jsonforms/renderers/DateControlRenderer.js +1 -1
  24. package/dist/esm/jsonforms/renderers/EnumControlRenderer.js +1 -1
  25. package/dist/esm/jsonforms/renderers/NumberControlRenderer.js +1 -1
  26. package/dist/esm/jsonforms/renderers/StepperWrapperRenderer.js +1 -1
  27. package/dist/esm/jsonforms/renderers/StringControlRenderer.js +1 -1
  28. package/dist/esm/jsonforms/renderers/dispatch-renderer.js +0 -4
  29. package/dist/foundation-forms.api.json +31 -1
  30. package/dist/foundation-forms.d.ts +8 -6
  31. package/docs/api/foundation-forms.form.md +1 -0
  32. package/docs/api/foundation-forms.form.prefix.md +13 -0
  33. package/docs/api/foundation-forms.uischema.md +0 -1
  34. package/docs/api-report.md +8 -2
  35. package/package.json +9 -9
@@ -32,6 +32,16 @@
32
32
  "description": "Foundation form component for automatically generated forms based on json schema\nobtained from the api, supplied initial data or supplied JSON schema.\nAllowing customisable form elements using UI schema and set of custom renderers",
33
33
  "name": "Form",
34
34
  "members": [
35
+ {
36
+ "kind": "field",
37
+ "name": "prefix",
38
+ "type": {
39
+ "text": "string"
40
+ },
41
+ "default": "'zero'",
42
+ "description": "Name of the design system prefix that will be used in renderers.",
43
+ "privacy": "public"
44
+ },
35
45
  {
36
46
  "kind": "field",
37
47
  "name": "resourceName",
@@ -250,6 +260,15 @@
250
260
  }
251
261
  ],
252
262
  "attributes": [
263
+ {
264
+ "name": "design-system-prefix",
265
+ "type": {
266
+ "text": "string"
267
+ },
268
+ "default": "'zero'",
269
+ "description": "Name of the design system prefix that will be used in renderers.",
270
+ "fieldName": "prefix"
271
+ },
253
272
  {
254
273
  "name": "resourceName",
255
274
  "type": {
@@ -707,6 +726,14 @@
707
726
  "text": "boolean"
708
727
  }
709
728
  },
729
+ {
730
+ "kind": "field",
731
+ "name": "prefix"
732
+ },
733
+ {
734
+ "kind": "method",
735
+ "name": "prefixChanged"
736
+ },
710
737
  {
711
738
  "kind": "field",
712
739
  "name": "jsonforms"
@@ -1144,7 +1171,7 @@
1144
1171
  "type": {
1145
1172
  "text": "RendererEntry"
1146
1173
  },
1147
- "default": "{\n renderer: html<DispatchRenderer>`\n ${(x) => BooleanControlRendererTemplate(x.prefix)}\n `,\n tester: rankWith(BOOLEAN_CONTROL_RANK, isOneOfBoolean),\n mapper: mapStateToControlProps,\n}"
1174
+ "default": "{\n renderer: html<DispatchRenderer>`\n ${(x) => BooleanControlRendererTemplate(x.jsonforms.prefix)}\n `,\n tester: rankWith(BOOLEAN_CONTROL_RANK, isOneOfBoolean),\n mapper: mapStateToControlProps,\n}"
1148
1175
  }
1149
1176
  ],
1150
1177
  "exports": [
@@ -1252,7 +1279,7 @@
1252
1279
  "type": {
1253
1280
  "text": "RendererEntry"
1254
1281
  },
1255
- "default": "{\n renderer: html<DispatchRenderer>`\n ${(x) => ConnectedMultiselectControlRendererTemplate(x.prefix)}\n `,\n tester: rankWith(MULTISELECT_CONTROL_RANK, isOneOfOptionMultiselect),\n mapper: mapStateToControlProps,\n}"
1282
+ "default": "{\n renderer: html<DispatchRenderer>`\n ${(x) => ConnectedMultiselectControlRendererTemplate(x.jsonforms.prefix)}\n `,\n tester: rankWith(MULTISELECT_CONTROL_RANK, isOneOfOptionMultiselect),\n mapper: mapStateToControlProps,\n}"
1256
1283
  }
1257
1284
  ],
1258
1285
  "exports": [
@@ -1297,7 +1324,7 @@
1297
1324
  "type": {
1298
1325
  "text": "any"
1299
1326
  },
1300
- "default": "{\n renderer: html<DispatchRenderer>`\n ${(x) => ConnectedSelectControlRendererTemplate(x.prefix)}\n `,\n tester: rankWith(SELECT_CONTROL_RANK, or(optionIs('allOptionsResourceName'), optionIs('data'))),\n mapper: mapStateToControlProps,\n}"
1327
+ "default": "{\n renderer: html<DispatchRenderer>`\n ${(x) => ConnectedSelectControlRendererTemplate(x.jsonforms.prefix)}\n `,\n tester: rankWith(SELECT_CONTROL_RANK, or(optionIs('allOptionsResourceName'), optionIs('data'))),\n mapper: mapStateToControlProps,\n}"
1301
1328
  }
1302
1329
  ],
1303
1330
  "exports": [
@@ -1410,7 +1437,7 @@
1410
1437
  "type": {
1411
1438
  "text": "any"
1412
1439
  },
1413
- "default": "{\n renderer: html`\n ${(x) => DateControlRendererTemplate(x.prefix)}\n `,\n tester: rankWith(DATE_CONTROL_RANK, isOneOfDate),\n mapper: mapStateToControlProps, // TODO: change mapper to handle dates instead of doing it in the template\n}"
1440
+ "default": "{\n renderer: html`\n ${(x) => DateControlRendererTemplate(x.jsonforms.prefix)}\n `,\n tester: rankWith(DATE_CONTROL_RANK, isOneOfDate),\n mapper: mapStateToControlProps, // TODO: change mapper to handle dates instead of doing it in the template\n}"
1414
1441
  }
1415
1442
  ],
1416
1443
  "exports": [
@@ -1478,7 +1505,7 @@
1478
1505
  "type": {
1479
1506
  "text": "any"
1480
1507
  },
1481
- "default": "{\n renderer: html`\n ${(x) => EnumControlRendererTemplate(x.prefix)}\n `,\n tester: rankWith(ENUM_CONTROL_RANK, isOneOfEnum),\n mapper: mapStateToEnumControlProps,\n}"
1508
+ "default": "{\n renderer: html`\n ${(x) => EnumControlRendererTemplate(x.jsonforms.prefix)}\n `,\n tester: rankWith(ENUM_CONTROL_RANK, isOneOfEnum),\n mapper: mapStateToEnumControlProps,\n}"
1482
1509
  }
1483
1510
  ],
1484
1511
  "exports": [
@@ -1917,7 +1944,7 @@
1917
1944
  "type": {
1918
1945
  "text": "any"
1919
1946
  },
1920
- "default": "{\n renderer: html`\n ${(x) => NumberControlRendererTemplate(x.prefix)}\n `,\n tester: rankWith(NUMBER_CONTROL_RANK, isOneOfNumber),\n mapper: mapStateToControlProps,\n}"
1947
+ "default": "{\n renderer: html`\n ${(x) => NumberControlRendererTemplate(x.jsonforms.prefix)}\n `,\n tester: rankWith(NUMBER_CONTROL_RANK, isOneOfNumber),\n mapper: mapStateToControlProps,\n}"
1921
1948
  }
1922
1949
  ],
1923
1950
  "exports": [
@@ -2287,7 +2314,7 @@
2287
2314
  {
2288
2315
  "kind": "variable",
2289
2316
  "name": "StringControlRendererTemplate",
2290
- "default": "html<DispatchRenderer>`\n ${(x) => getStringControlRendererTemplate(x.prefix)}\n`"
2317
+ "default": "html<DispatchRenderer>`\n ${(x) => getStringControlRendererTemplate(x.jsonforms.prefix)}\n`"
2291
2318
  }
2292
2319
  ],
2293
2320
  "exports": [
@@ -2361,13 +2388,6 @@
2361
2388
  "kind": "field",
2362
2389
  "name": "renderer"
2363
2390
  },
2364
- {
2365
- "kind": "field",
2366
- "name": "prefix",
2367
- "type": {
2368
- "text": "string"
2369
- }
2370
- },
2371
2391
  {
2372
2392
  "kind": "field",
2373
2393
  "name": "createRenderer"
@@ -11,6 +11,11 @@ export declare const renderers: any[];
11
11
  * @beta
12
12
  */
13
13
  export declare class Form extends FoundationElement {
14
+ /**
15
+ * Name of the design system prefix that will be used in renderers.
16
+ * @public
17
+ */
18
+ prefix: string;
14
19
  /**
15
20
  * Name of the backend resource which will provide metadata
16
21
  * used to generate form and later used for submitting data
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/form.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAmB1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAexC,cAAc;AACd,eAAO,MAAM,SAAS,OAiBrB,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;;;OAGG;IACS,IAAI,EAAE,GAAG,CAAM;IAE3B;;OAEG;IACS,UAAU,EAAE,OAAO,CAAC;IAChC;;OAEG;IACS,SAAS,EAAE,OAAO,CAAC;IAEJ,QAAQ,EAAE,OAAO,CAAC;IACe,UAAU,EAAE,OAAO,CAAC;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AAU,CAAC,KAAK,EAAE,WAAW;IAI7B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW;IAQ3B,oBAAoB;IAKpB;;;OAGG;IACH,KAAK,CAAC,SAAS,UAAO;CAMvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"form.styles.d.ts","sourceRoot":"","sources":["../../src/form.styles.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,iDAqDhC,CAAC"}
1
+ {"version":3,"file":"form.styles.d.ts","sourceRoot":"","sources":["../../src/form.styles.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,iDAsDhC,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import type { Form } from './form';
2
2
  /** @internal */
3
+ export declare const getPrefixedForm: (prefix: any) => import("@microsoft/fast-element").ViewTemplate<Form, any>;
4
+ /** @internal */
3
5
  export declare const foundationFormTemplate: import("@microsoft/fast-element").ViewTemplate<Form, any>;
4
6
  //# sourceMappingURL=form.template.d.ts.map
@@ -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;AAenC,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,2DA8BlC,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;AAenC,gBAAgB;AAChB,eAAO,MAAM,eAAe,4EA+B3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,2DAElC,CAAC"}
@@ -3,6 +3,8 @@ import { FASTElement } from '@microsoft/fast-element';
3
3
  import Ajv, { ErrorObject } from 'ajv';
4
4
  export declare class JSONForms extends FASTElement {
5
5
  submitted: boolean;
6
+ prefix: any;
7
+ prefixChanged(): void;
6
8
  jsonforms: any;
7
9
  i18n: any;
8
10
  uichemaToUse: any;
@@ -1 +1 @@
1
- {"version":3,"file":"json-forms.d.ts","sourceRoot":"","sources":["../../../src/jsonforms/json-forms.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,WAAW,EAMX,8BAA8B,EAE9B,aAAa,EAEb,eAAe,EACf,cAAc,EACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAIL,WAAW,EAIZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,GAAG,EAAE,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAmCvC,qBASa,SAAU,SAAQ,WAAW;IACb,SAAS,EAAE,OAAO,CAAC;IAElC,SAAS,MAAC;IACV,IAAI,MAAC;IACL,YAAY,MAAC;IAEb,MAAM,MAAC;IACnB,aAAa;IAgDD,QAAQ,EAAE,eAAe,CAAC;IACtC,eAAe;IAIH,IAAI,MAAC;IACjB,WAAW;IAIC,SAAS,EAAE,8BAA8B,EAAE,CAAC;IACxD,gBAAgB;IAIJ,cAAc,EAAE,cAAc,CAAC;IAC3C,qBAAqB;IAIT,GAAG,EAAE,GAAG,CAAC;IACrB,UAAU;IAIiB,QAAQ,EAAE,OAAO,CAAC;IAC7C,eAAe;IAIH,MAAM,EAAE,GAAG,CAAC;IACxB,aAAa;IAIb,IAAI,KAAK,IAAI,aAAa,CAuBzB;IAED,QAAQ,WAAY,WAAW,UAU7B;IAEF;;;;OAIG;IACH,QAAQ,qBAAe,WAAW,EAAE,CAkBlC;IAEI,uBAAuB;CAQ9B"}
1
+ {"version":3,"file":"json-forms.d.ts","sourceRoot":"","sources":["../../../src/jsonforms/json-forms.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,WAAW,EAMX,8BAA8B,EAE9B,aAAa,EAEb,eAAe,EACf,cAAc,EACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAIL,WAAW,EAIZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,GAAG,EAAE,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAmCvC,qBASa,SAAU,SAAQ,WAAW;IACb,SAAS,EAAE,OAAO,CAAC;IAElC,MAAM,MAAC;IACnB,aAAa;IAGD,SAAS,MAAC;IACV,IAAI,MAAC;IACL,YAAY,MAAC;IAEb,MAAM,MAAC;IACnB,aAAa;IAiDD,QAAQ,EAAE,eAAe,CAAC;IACtC,eAAe;IAIH,IAAI,MAAC;IACjB,WAAW;IAIC,SAAS,EAAE,8BAA8B,EAAE,CAAC;IACxD,gBAAgB;IAIJ,cAAc,EAAE,cAAc,CAAC;IAC3C,qBAAqB;IAIT,GAAG,EAAE,GAAG,CAAC;IACrB,UAAU;IAIiB,QAAQ,EAAE,OAAO,CAAC;IAC7C,eAAe;IAIH,MAAM,EAAE,GAAG,CAAC;IACxB,aAAa;IAIb,IAAI,KAAK,IAAI,aAAa,CAuBzB;IAED,QAAQ,WAAY,WAAW,UAU7B;IAEF;;;;OAIG;IACH,QAAQ,qBAAe,WAAW,EAAE,CAkBlC;IAEI,uBAAuB;CAQ9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"ArrayListWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/ArrayListWrapperRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EAAwC,WAAW,EAAU,MAAM,yBAAyB,CAAC;AAEpG,eAAO,MAAM,gCAAgC,YAAY,MAAM,6DAyC9D,CAAC;AAiBF,qBAOa,gBAAiB,SAAQ,WAAW;IACnC,IAAI,MAAC;IACL,OAAO,MAAC;IACR,QAAQ,MAAC;IACT,MAAM,MAAC;IACP,QAAQ,MAAC;IAErB,cAAc;IAed,OAAO;IAaP,UAAU,CAAC,KAAK,EAAE,MAAM;CAWzB"}
1
+ {"version":3,"file":"ArrayListWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/ArrayListWrapperRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EAAwC,WAAW,EAAU,MAAM,yBAAyB,CAAC;AAEpG,eAAO,MAAM,gCAAgC,YAAY,MAAM,6DAwC9D,CAAC;AAiBF,qBAOa,gBAAiB,SAAQ,WAAW;IACnC,IAAI,MAAC;IACL,OAAO,MAAC;IACR,QAAQ,MAAC;IACT,MAAM,MAAC;IACP,QAAQ,MAAC;IAErB,cAAc;IAed,OAAO;IAaP,UAAU,CAAC,KAAK,EAAE,MAAM;CAWzB"}
@@ -10,7 +10,6 @@ export declare class DispatchRenderer extends FASTElement {
10
10
  dispatch: any;
11
11
  control: any;
12
12
  renderer: any;
13
- prefix: string;
14
13
  createRenderer: () => void;
15
14
  onBlur(): void;
16
15
  get determinedRenderer(): unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"dispatch-renderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/dispatch-renderer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAA8C,MAAM,yBAAyB,CAAC;AAqBlG,qBAKa,gBAAiB,SAAQ,WAAW;IACnC,SAAS,MAAC;IACtB,gBAAgB;IAIJ,KAAK,MAAC;IAClB,YAAY;IAGA,OAAO,MAAC;IACO,SAAS,EAAE,OAAO,CAAC;IAC9C,gBAAgB;IAGJ,QAAQ,MAAC;IACT,OAAO,MAAC;IACR,QAAQ,MAAC;IACT,MAAM,EAAE,MAAM,CAAC;IAE3B,cAAc,aAiBZ;IAEF,MAAM;IAIN,IAAI,kBAAkB,YAgBrB;IAED,oBAAoB;CAMrB"}
1
+ {"version":3,"file":"dispatch-renderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/dispatch-renderer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAA8C,MAAM,yBAAyB,CAAC;AAqBlG,qBAKa,gBAAiB,SAAQ,WAAW;IACnC,SAAS,MAAC;IACtB,gBAAgB;IAIJ,KAAK,MAAC;IAClB,YAAY;IAGA,OAAO,MAAC;IACO,SAAS,EAAE,OAAO,CAAC;IAC9C,gBAAgB;IAGJ,QAAQ,MAAC;IACT,OAAO,MAAC;IACR,QAAQ,MAAC;IAErB,cAAc,aAiBZ;IAEF,MAAM;IAIN,IAAI,kBAAkB,YAgBrB;IAED,oBAAoB;CAMrB"}
@@ -182,11 +182,6 @@ export type UiSchema = {
182
182
  * @public
183
183
  */
184
184
  elements: UiSchemaElement[];
185
- /**
186
- * Allows changing the design-system for renderers.
187
- * @public
188
- */
189
- dsPrefix?: string;
190
185
  /**
191
186
  * Options for changing the orientation for the stepper renderer.
192
187
  * @public
@@ -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;;;KAGK;AACL,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,gBAAgB,GAChB,wBAAwB,GACxB,gBAAgB,GAChB,OAAO,GACP,SAAS,GACT,kBAAkB,CAAC;AAEvB;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IACrC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,GAAG,EAA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AAI,CAAC,EAAE;QACL,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAC9B,yBAAyB,GACzB,oBAAoB,GACpB,6BAA6B,GAC7B,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,uBAAuB,CAAC;AAE5B;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;SAGK;IACL,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;;SAGK;IACL,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC;CACrC,CAAC;AAEF,cAAc;AACd,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,YAAY,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;IAC9C,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,KAAK,mBAAmB,CAAC;CACrF,CAAC"}
package/dist/esm/form.js CHANGED
@@ -59,6 +59,11 @@ export const renderers = [
59
59
  let Form = class Form extends FoundationElement {
60
60
  constructor() {
61
61
  super(...arguments);
62
+ /**
63
+ * Name of the design system prefix that will be used in renderers.
64
+ * @public
65
+ */
66
+ this.prefix = 'zero';
62
67
  /**
63
68
  * Allows to provide set of renderers used by the form. If not provided it will default to text-field inputs
64
69
  * @public
@@ -168,6 +173,9 @@ let Form = class Form extends FoundationElement {
168
173
  }
169
174
  }
170
175
  };
176
+ __decorate([
177
+ attr({ attribute: 'design-system-prefix' })
178
+ ], Form.prototype, "prefix", void 0);
171
179
  __decorate([
172
180
  attr
173
181
  ], Form.prototype, "resourceName", void 0);
@@ -48,6 +48,7 @@ export const foundationFormStyles = css `
48
48
 
49
49
  .submit-button {
50
50
  width: 70px;
51
+ margin: 0;
51
52
  }
52
53
  `.withBehaviors(forcedColorsStylesheetBehavior(css `
53
54
  :host {
@@ -12,7 +12,7 @@ ControlWrapper;
12
12
  DispatchRenderer;
13
13
  StepperWrapper;
14
14
  /** @internal */
15
- export const foundationFormTemplate = html `
15
+ export const getPrefixedForm = (prefix) => html `
16
16
  <template>
17
17
  <json-forms
18
18
  @submit-button-clicked=${(x) => x._submit()}
@@ -24,19 +24,24 @@ export const foundationFormTemplate = html `
24
24
  :uischema=${(x) => x.uischema}
25
25
  :schema=${(x) => x.jsonSchema}
26
26
  :data=${(x) => x.data}
27
+ :prefix=${(x) => x.prefix}
27
28
  @data-change=${(x, c) => x.onChange(c.event)}
28
29
  ></json-forms>
29
30
  ${when((x) => x.isSubmitHidden, html `
30
31
  <slot name="userActions" part="userActions" class="actions">
31
- <fast-button
32
+ <${prefix}-button
32
33
  @click="${(x) => x._submit()}"
33
34
  ?disable=${(x) => !x.submitting}
34
35
  class="submit-button"
35
36
  appearance="accent"
36
37
  >
37
38
  Submit
38
- </fast-button>
39
+ </${prefix}-button>
39
40
  </slot>
40
41
  `)}
41
42
  </template>
42
43
  `;
44
+ /** @internal */
45
+ export const foundationFormTemplate = html `
46
+ ${(x) => getPrefixedForm(x.prefix)}
47
+ `;
@@ -64,6 +64,9 @@ let JSONForms = class JSONForms extends FASTElement {
64
64
  return errors;
65
65
  };
66
66
  }
67
+ prefixChanged() {
68
+ this.schemaChanged();
69
+ }
67
70
  schemaChanged() {
68
71
  var _a, _b, _c, _d;
69
72
  if (!this.schema) {
@@ -93,6 +96,7 @@ let JSONForms = class JSONForms extends FASTElement {
93
96
  i18n: i18nReducer(this.i18n, Actions.updateI18n((_b = this.i18n) === null || _b === void 0 ? void 0 : _b.locale, (_c = this.i18n) === null || _c === void 0 ? void 0 : _c.translate, ((_d = this.i18n) === null || _d === void 0 ? void 0 : _d.translateError) || errorTranslator)),
94
97
  renderers: this.renderers,
95
98
  readonly: this.readonly,
99
+ prefix: this.prefix,
96
100
  };
97
101
  this.$emit('data-change', {
98
102
  data: this.jsonforms.core.data,
@@ -155,6 +159,9 @@ let JSONForms = class JSONForms extends FASTElement {
155
159
  __decorate([
156
160
  attr({ mode: 'boolean' })
157
161
  ], JSONForms.prototype, "submitted", void 0);
162
+ __decorate([
163
+ observable
164
+ ], JSONForms.prototype, "prefix", void 0);
158
165
  __decorate([
159
166
  observable
160
167
  ], JSONForms.prototype, "jsonforms", void 0);
@@ -16,7 +16,6 @@ export const ArrayListWrapperRendererTemplate = (prefix = 'zero') => html `
16
16
  path: composePaths(ctx.parent.pathName, `${ctx.index}`),
17
17
  enabled: ctx.parent.control.enabled,
18
18
  })}
19
- :prefix=${(x, ctx) => ctx.parent.form.jsonforms.core.uischema.dsPrefix}
20
19
  ></dispatch-renderer>
21
20
  <${prefix}-button
22
21
  appearance="lightweight"
@@ -104,7 +103,7 @@ ArrayListWrapper = __decorate([
104
103
  name: 'array-list-wrapper',
105
104
  styles,
106
105
  template: html `
107
- ${(x) => ArrayListWrapperRendererTemplate(x.form.jsonforms.core.uischema.dsPrefix)}
106
+ ${(x) => ArrayListWrapperRendererTemplate(x.form.jsonforms.prefix)}
108
107
  `,
109
108
  })
110
109
  ], ArrayListWrapper);
@@ -26,7 +26,7 @@ export const BooleanControlRendererTemplate = (prefix = 'zero') => html `
26
26
  `;
27
27
  export const BooleanControlEntry = {
28
28
  renderer: html `
29
- ${(x) => BooleanControlRendererTemplate(x.prefix)}
29
+ ${(x) => BooleanControlRendererTemplate(x.jsonforms.prefix)}
30
30
  `,
31
31
  tester: rankWith(BOOLEAN_CONTROL_RANK, isOneOfBoolean),
32
32
  mapper: mapStateToControlProps,
@@ -54,7 +54,7 @@ CategorizationWrapper = __decorate([
54
54
  name: 'categorization-wrapper',
55
55
  styles,
56
56
  template: html `
57
- ${(x) => CategorizationWrapperRendererTemplate(x.form.prefix)}
57
+ ${(x) => CategorizationWrapperRendererTemplate(x.form.jsonforms.prefix)}
58
58
  `,
59
59
  })
60
60
  ], CategorizationWrapper);
@@ -34,7 +34,7 @@ export const ConnectedMultiselectControlRendererTemplate = (prefix = 'zero') =>
34
34
  `;
35
35
  export const ConnectedMultiselectControlRendererEntry = {
36
36
  renderer: html `
37
- ${(x) => ConnectedMultiselectControlRendererTemplate(x.prefix)}
37
+ ${(x) => ConnectedMultiselectControlRendererTemplate(x.jsonforms.prefix)}
38
38
  `,
39
39
  tester: rankWith(MULTISELECT_CONTROL_RANK, isOneOfOptionMultiselect),
40
40
  mapper: mapStateToControlProps,
@@ -39,7 +39,7 @@ export const ConnectedSelectControlRendererTemplate = (prefix = 'zero') => html
39
39
  `;
40
40
  export const ConnectedSelectControlRendererEntry = {
41
41
  renderer: html `
42
- ${(x) => ConnectedSelectControlRendererTemplate(x.prefix)}
42
+ ${(x) => ConnectedSelectControlRendererTemplate(x.jsonforms.prefix)}
43
43
  `,
44
44
  tester: rankWith(SELECT_CONTROL_RANK, or(optionIs('allOptionsResourceName'), optionIs('data'))),
45
45
  mapper: mapStateToControlProps,
@@ -35,7 +35,7 @@ export const DateControlRendererTemplate = (prefix = 'zero') => html `
35
35
  `;
36
36
  export const DateControlRendererEntry = {
37
37
  renderer: html `
38
- ${(x) => DateControlRendererTemplate(x.prefix)}
38
+ ${(x) => DateControlRendererTemplate(x.jsonforms.prefix)}
39
39
  `,
40
40
  tester: rankWith(DATE_CONTROL_RANK, isOneOfDate),
41
41
  mapper: mapStateToControlProps, // TODO: change mapper to handle dates instead of doing it in the template
@@ -41,7 +41,7 @@ export const EnumControlRendererTemplate = (prefix = 'zero') => html `
41
41
  `;
42
42
  export const EnumControlRendererEntry = {
43
43
  renderer: html `
44
- ${(x) => EnumControlRendererTemplate(x.prefix)}
44
+ ${(x) => EnumControlRendererTemplate(x.jsonforms.prefix)}
45
45
  `,
46
46
  tester: rankWith(ENUM_CONTROL_RANK, isOneOfEnum),
47
47
  mapper: mapStateToEnumControlProps,
@@ -31,7 +31,7 @@ export const NumberControlRendererTemplate = (prefix = 'zero') => html `
31
31
  `;
32
32
  export const NumberControlRendererEntry = {
33
33
  renderer: html `
34
- ${(x) => NumberControlRendererTemplate(x.prefix)}
34
+ ${(x) => NumberControlRendererTemplate(x.jsonforms.prefix)}
35
35
  `,
36
36
  tester: rankWith(NUMBER_CONTROL_RANK, isOneOfNumber),
37
37
  mapper: mapStateToControlProps,
@@ -95,7 +95,7 @@ StepperWrapper = __decorate([
95
95
  name: 'stepper-wrapper',
96
96
  styles,
97
97
  template: html `
98
- ${(x) => StepperWrapperRendererTemplate(x.form.prefix)}
98
+ ${(x) => StepperWrapperRendererTemplate(x.form.jsonforms.prefix)}
99
99
  `,
100
100
  })
101
101
  ], StepperWrapper);
@@ -41,5 +41,5 @@ export const getStringControlRendererTemplate = (prefix = 'zero') => html `
41
41
  </template>
42
42
  `;
43
43
  export const StringControlRendererTemplate = html `
44
- ${(x) => getStringControlRendererTemplate(x.prefix)}
44
+ ${(x) => getStringControlRendererTemplate(x.jsonforms.prefix)}
45
45
  `;
@@ -42,7 +42,6 @@ let DispatchRenderer = class DispatchRenderer extends FASTElement {
42
42
  const rendererEntry = maxBy(this.renderer.renderers, (r) =>
43
43
  // @ts-ignore
44
44
  r.tester(this.renderer.uischema, this.renderer.schema));
45
- this.prefix = this.jsonforms.core.uischema.dsPrefix;
46
45
  if (rendererEntry === undefined ||
47
46
  // @ts-ignore
48
47
  rendererEntry.tester(this.renderer.uischema, this.renderer.schema) === -1) {
@@ -80,9 +79,6 @@ __decorate([
80
79
  __decorate([
81
80
  observable
82
81
  ], DispatchRenderer.prototype, "renderer", void 0);
83
- __decorate([
84
- observable
85
- ], DispatchRenderer.prototype, "prefix", void 0);
86
82
  DispatchRenderer = __decorate([
87
83
  customElement({
88
84
  name: 'dispatch-renderer',
@@ -817,6 +817,36 @@
817
817
  "isProtected": false,
818
818
  "isAbstract": false
819
819
  },
820
+ {
821
+ "kind": "Property",
822
+ "canonicalReference": "@genesislcap/foundation-forms!Form#prefix:member",
823
+ "docComment": "/**\n * Name of the design system prefix that will be used in renderers.\n *\n * @public\n */\n",
824
+ "excerptTokens": [
825
+ {
826
+ "kind": "Content",
827
+ "text": "prefix: "
828
+ },
829
+ {
830
+ "kind": "Content",
831
+ "text": "string"
832
+ },
833
+ {
834
+ "kind": "Content",
835
+ "text": ";"
836
+ }
837
+ ],
838
+ "isReadonly": false,
839
+ "isOptional": false,
840
+ "releaseTag": "Public",
841
+ "name": "prefix",
842
+ "propertyTypeTokenRange": {
843
+ "startIndex": 1,
844
+ "endIndex": 2
845
+ },
846
+ "isStatic": false,
847
+ "isProtected": false,
848
+ "isAbstract": false
849
+ },
820
850
  {
821
851
  "kind": "Property",
822
852
  "canonicalReference": "@genesislcap/foundation-forms!Form#readonly:member",
@@ -1353,7 +1383,7 @@
1353
1383
  },
1354
1384
  {
1355
1385
  "kind": "Content",
1356
- "text": "[];\n dsPrefix?: string;\n options?: "
1386
+ "text": "[];\n options?: "
1357
1387
  },
1358
1388
  {
1359
1389
  "kind": "Reference",
@@ -93,7 +93,6 @@ declare class DispatchRenderer extends FASTElement {
93
93
  dispatch: any;
94
94
  control: any;
95
95
  renderer: any;
96
- prefix: string;
97
96
  createRenderer: () => void;
98
97
  onBlur(): void;
99
98
  get determinedRenderer(): unknown;
@@ -209,6 +208,11 @@ export declare const filtersRenderers: any[];
209
208
  * @beta
210
209
  */
211
210
  export declare class Form extends FoundationElement {
211
+ /**
212
+ * Name of the design system prefix that will be used in renderers.
213
+ * @public
214
+ */
215
+ prefix: string;
212
216
  /**
213
217
  * Name of the backend resource which will provide metadata
214
218
  * used to generate form and later used for submitting data
@@ -316,6 +320,9 @@ export declare const foundationFormTemplate: ViewTemplate<Form, any>;
316
320
  /** @public */
317
321
  export declare const genesisErrorTranslator: ErrorTranslator;
318
322
 
323
+ /** @internal */
324
+ export declare const getPrefixedForm: (prefix: any) => ViewTemplate<Form, any>;
325
+
319
326
  /**
320
327
  * Configuration options available for group renderer.
321
328
  * @public
@@ -427,11 +434,6 @@ export declare type UiSchema = {
427
434
  * @public
428
435
  */
429
436
  elements: UiSchemaElement[];
430
- /**
431
- * Allows changing the design-system for renderers.
432
- * @public
433
- */
434
- dsPrefix?: string;
435
437
  /**
436
438
  * Options for changing the orientation for the stepper renderer.
437
439
  * @public
@@ -24,6 +24,7 @@ export declare class Form extends FoundationElement
24
24
  | [hideSubmit](./foundation-forms.form.hidesubmit.md) | | boolean | **_(BETA)_** |
25
25
  | [isSubmitHidden](./foundation-forms.form.issubmithidden.md) | <code>readonly</code> | boolean | **_(BETA)_** |
26
26
  | [jsonSchema](./foundation-forms.form.jsonschema.md) | | JSONSchema7 | Alternatively to providing [Form.resourceName](./foundation-forms.form.resourcename.md) you can hardcode the JSON schema on the client. |
27
+ | [prefix](./foundation-forms.form.prefix.md) | | string | Name of the design system prefix that will be used in renderers. |
27
28
  | [readonly](./foundation-forms.form.readonly.md) | | boolean | **_(BETA)_** |
28
29
  | [renderers](./foundation-forms.form.renderers.md) | | [RendererEntry](./foundation-forms.rendererentry.md)<!-- -->\[\] | Allows to provide set of renderers used by the form. If not provided it will default to text-field inputs |
29
30
  | [resourceName](./foundation-forms.form.resourcename.md) | | string | Name of the backend resource which will provide metadata used to generate form and later used for submitting data |
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-forms](./foundation-forms.md) &gt; [Form](./foundation-forms.form.md) &gt; [prefix](./foundation-forms.form.prefix.md)
4
+
5
+ ## Form.prefix property
6
+
7
+ Name of the design system prefix that will be used in renderers.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ prefix: string;
13
+ ```
@@ -12,7 +12,6 @@ The UI schema, which is passed to JSON Forms, describes the general layout of a
12
12
  export type UiSchema = {
13
13
  type: UiSchemaElementType;
14
14
  elements: UiSchemaElement[];
15
- dsPrefix?: string;
16
15
  options?: StepperOrientationOptions;
17
16
  };
18
17
  ```
@@ -93,6 +93,8 @@ export class Form extends FoundationElement {
93
93
  jsonSchema: JSONSchema7;
94
94
  // @internal (undocumented)
95
95
  onChange(event: CustomEvent): void;
96
+ // @public
97
+ prefix: string;
96
98
  // (undocumented)
97
99
  readonly: boolean;
98
100
  // @public
@@ -126,6 +128,11 @@ export const foundationFormTemplate: ViewTemplate<Form, any>;
126
128
  // @public (undocumented)
127
129
  export const genesisErrorTranslator: ErrorTranslator;
128
130
 
131
+ // Warning: (ae-internal-missing-underscore) The name "getPrefixedForm" should be prefixed with an underscore because the declaration is marked as @internal
132
+ //
133
+ // @internal (undocumented)
134
+ export const getPrefixedForm: (prefix: any) => ViewTemplate<Form, any>;
135
+
129
136
  // @public
130
137
  export type GroupRendererOptions = CategorizationRendererOptions;
131
138
 
@@ -183,7 +190,6 @@ export type StringRendererOptions = {
183
190
  export type UiSchema = {
184
191
  type: UiSchemaElementType;
185
192
  elements: UiSchemaElement[];
186
- dsPrefix?: string;
187
193
  options?: StepperOrientationOptions;
188
194
  };
189
195
 
@@ -204,7 +210,7 @@ export type UiSchemaElementType = 'Control' | 'VerticalLayout' | 'LayoutVertical
204
210
 
205
211
  // Warnings were encountered during analysis:
206
212
  //
207
- // src/types.ts:231:3 - (ae-forgotten-export) The symbol "DispatchRenderer" needs to be exported by the entry point index.d.ts
213
+ // src/types.ts:226:3 - (ae-forgotten-export) The symbol "DispatchRenderer" needs to be exported by the entry point index.d.ts
208
214
 
209
215
  // (No @packageDocumentation comment for this package)
210
216
 
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.123.0",
4
+ "version": "14.124.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -40,17 +40,17 @@
40
40
  "test:debug": "genx test --debug"
41
41
  },
42
42
  "devDependencies": {
43
- "@genesislcap/foundation-testing": "14.123.0",
44
- "@genesislcap/genx": "14.123.0",
43
+ "@genesislcap/foundation-testing": "14.124.0",
44
+ "@genesislcap/genx": "14.124.0",
45
45
  "@types/json-schema": "^7.0.11",
46
46
  "rimraf": "^3.0.2"
47
47
  },
48
48
  "dependencies": {
49
- "@genesislcap/foundation-comms": "14.123.0",
50
- "@genesislcap/foundation-criteria": "14.123.0",
51
- "@genesislcap/foundation-logger": "14.123.0",
52
- "@genesislcap/foundation-ui": "14.123.0",
53
- "@genesislcap/foundation-utils": "14.123.0",
49
+ "@genesislcap/foundation-comms": "14.124.0",
50
+ "@genesislcap/foundation-criteria": "14.124.0",
51
+ "@genesislcap/foundation-logger": "14.124.0",
52
+ "@genesislcap/foundation-ui": "14.124.0",
53
+ "@genesislcap/foundation-utils": "14.124.0",
54
54
  "@jsonforms/core": "^3.0.0",
55
55
  "@microsoft/fast-components": "^2.21.3",
56
56
  "@microsoft/fast-element": "^1.7.0",
@@ -70,5 +70,5 @@
70
70
  "access": "public"
71
71
  },
72
72
  "customElements": "dist/custom-elements.json",
73
- "gitHead": "3895438009d53d82ac05114488d5855203dbfca2"
73
+ "gitHead": "ecbf83be72d1f020f8b189282c5199479dd55a3e"
74
74
  }