@genesislcap/foundation-forms 14.13.0 → 14.14.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 +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;AAc1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,gBAAgB;AAChB,eAAO,MAAM,MAAM,gDAAkC,CAAC;AActD,cAAc;AACd,eAAO,MAAM,SAAS,OAYrB,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;IAE7C;;OAEG;IACG,OAAO;IAwBb;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW;IAQ3B,oBAAoB;CAMrB"}
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;AAe1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,gBAAgB;AAChB,eAAO,MAAM,MAAM,gDAAkC,CAAC;AActD,cAAc;AACd,eAAO,MAAM,SAAS,OAarB,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;IAE7C;;OAEG;IACG,OAAO;IAwBb;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW;IAQ3B,oBAAoB;CAMrB"}
@@ -0,0 +1,3 @@
1
+ export declare const LayoutGroupRendererTemplate: import("@microsoft/fast-element").ViewTemplate<any, any>;
2
+ export declare const LayoutGroupRendererEntry: any;
3
+ //# sourceMappingURL=LayoutGroupRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LayoutGroupRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/LayoutGroupRenderer.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B,0DAoCvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,GAItC,CAAC"}
@@ -5,6 +5,7 @@ export declare const ENUM_CONTROL_RANK = 3;
5
5
  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
+ export declare const LAYOUT_GROUP_RANK = 2;
8
9
  export declare const LAYOUT2COLUMNS_RANK = 2;
9
10
  export declare const INVISIBLE_CONTROL_RANK = 5;
10
11
  //# sourceMappingURL=RenderersRanks.d.ts.map
@@ -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,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,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,sBAAsB,IAAI,CAAC"}
package/dist/esm/form.js CHANGED
@@ -12,6 +12,7 @@ import { ConnectedSelectControlRendererEntry } from './jsonforms/renderers/Conne
12
12
  import { DateControlRendererEntry } from './jsonforms/renderers/DateControlRenderer';
13
13
  import { EnumControlRendererEntry } from './jsonforms/renderers/EnumControlRenderer';
14
14
  import { InvisibleControlEntry } from './jsonforms/renderers/InvisibleControlRenderer';
15
+ import { LayoutGroupRendererEntry } from './jsonforms/renderers/LayoutGroupRenderer';
15
16
  import { LayoutRendererEntry } from './jsonforms/renderers/LayoutRenderer';
16
17
  import { LayoutVertical2ColumnsEntry } from './jsonforms/renderers/LayoutVertical2ColumnsRenderer';
17
18
  import { NumberControlRendererEntry } from './jsonforms/renderers/NumberControlRenderer';
@@ -33,6 +34,7 @@ export const renderers = [
33
34
  fallbackEntry,
34
35
  stringEntry,
35
36
  BooleanControlEntry,
37
+ LayoutGroupRendererEntry,
36
38
  LayoutVertical2ColumnsEntry,
37
39
  LayoutRendererEntry,
38
40
  NumberControlRendererEntry,
@@ -0,0 +1,39 @@
1
+ import { isGroup, mapStateToLayoutProps, rankWith } from '@jsonforms/core';
2
+ import { html, repeat, when } from '@microsoft/fast-element';
3
+ import { LAYOUT_GROUP_RANK } from './RenderersRanks';
4
+ export const LayoutGroupRendererTemplate = html `
5
+ <template>
6
+ <div>
7
+ ${when((x) => x.control.label, html `
8
+ <div
9
+ for="${(x) => x.control.path + '-wrapper'}"
10
+ style="color: rgb(135, 155, 166);
11
+ margin-bottom: 4px;
12
+ display: flex;
13
+ justify-content: space-between;"
14
+ >
15
+ ${(x) => x.control.label}
16
+ </div>
17
+ `)}
18
+ ${repeat((x) => x.control.uischema.elements, html `
19
+ <dispatch-renderer
20
+ ?submitted=${(x, ctx) => ctx.parent.submitted}
21
+ :dispatch=${(x, ctx) => ctx.parent.dispatch}
22
+ :jsonforms=${(x, ctx) => ctx.parent.jsonforms}
23
+ :props=${(x, ctx) => ({
24
+ uischema: x,
25
+ schema: ctx.parent.control.schema,
26
+ renderers: ctx.parent.control.renderers,
27
+ path: ctx.parent.control.path,
28
+ enabled: ctx.parent.control.enabled,
29
+ })}
30
+ ></dispatch-renderer>
31
+ `)}
32
+ </div>
33
+ </template>
34
+ `;
35
+ export const LayoutGroupRendererEntry = {
36
+ renderer: LayoutGroupRendererTemplate,
37
+ tester: rankWith(LAYOUT_GROUP_RANK, isGroup),
38
+ mapper: mapStateToLayoutProps,
39
+ };
@@ -5,5 +5,6 @@ export const ENUM_CONTROL_RANK = 3;
5
5
  export const SELECT_CONTROL_RANK = 4;
6
6
  export const DATE_CONTROL_RANK = 4;
7
7
  export const LAYOUT_RANK = 2;
8
+ export const LAYOUT_GROUP_RANK = 2;
8
9
  export const LAYOUT2COLUMNS_RANK = 2;
9
10
  export const INVISIBLE_CONTROL_RANK = 5;
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.13.0",
4
+ "version": "14.14.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -48,7 +48,7 @@
48
48
  "test:unit:watch": "watchlist src test -- npm run test:unit"
49
49
  },
50
50
  "devDependencies": {
51
- "@genesislcap/foundation-testing": "^14.13.0",
51
+ "@genesislcap/foundation-testing": "^14.14.0",
52
52
  "@microsoft/api-documenter": "^7.19.13",
53
53
  "@microsoft/api-extractor": "^7.31.1",
54
54
  "@module-federation/dashboard-plugin": "2.3.0",
@@ -99,9 +99,9 @@
99
99
  "webpack-merge": "^5.7.3"
100
100
  },
101
101
  "dependencies": {
102
- "@genesislcap/foundation-comms": "^14.13.0",
103
- "@genesislcap/foundation-criteria": "^14.13.0",
104
- "@genesislcap/foundation-utils": "^14.13.0",
102
+ "@genesislcap/foundation-comms": "^14.14.0",
103
+ "@genesislcap/foundation-criteria": "^14.14.0",
104
+ "@genesislcap/foundation-utils": "^14.14.0",
105
105
  "@jsonforms/core": "^3.0.0",
106
106
  "@microsoft/fast-components": "^2.21.3",
107
107
  "@microsoft/fast-element": "^1.7.0",
@@ -121,5 +121,5 @@
121
121
  "publishConfig": {
122
122
  "access": "public"
123
123
  },
124
- "gitHead": "5d638f9ce1de7beffa50a3a4367c8f5c49eede25"
124
+ "gitHead": "985b16962c0e45c142c67e94a62e5f2ca139798b"
125
125
  }