@genesislcap/foundation-forms 14.451.2-FUI-2550.2 → 14.451.2-FUI-2550.4
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/dist/custom-elements.json +43 -5
- package/dist/dts/form.d.ts +8 -1
- package/dist/dts/form.d.ts.map +1 -1
- package/dist/dts/form.styles.d.ts.map +1 -1
- package/dist/dts/form.template.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/CategorizationWrapperRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/ControlWrapperRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/LayoutFormGridRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/LayoutGroupRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/LayoutHorizontalRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/LayoutVertical2ColumnsRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/VerticalCategorizationWrapperRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/dispatch-renderer.d.ts +5 -0
- package/dist/dts/jsonforms/renderers/dispatch-renderer.d.ts.map +1 -1
- package/dist/esm/form.js +7 -1
- package/dist/esm/form.styles.js +60 -12
- package/dist/esm/form.template.js +1 -0
- package/dist/esm/jsonforms/renderers/CategorizationWrapperRenderer.js +5 -8
- package/dist/esm/jsonforms/renderers/ControlWrapperRenderer.js +11 -4
- package/dist/esm/jsonforms/renderers/LayoutFormGridRenderer.js +1 -7
- package/dist/esm/jsonforms/renderers/LayoutGroupRenderer.js +3 -9
- package/dist/esm/jsonforms/renderers/LayoutHorizontalRenderer.js +2 -7
- package/dist/esm/jsonforms/renderers/LayoutRenderer.js +2 -2
- package/dist/esm/jsonforms/renderers/LayoutVertical2ColumnsRenderer.js +2 -8
- package/dist/esm/jsonforms/renderers/NumberControlRenderer.js +1 -1
- package/dist/esm/jsonforms/renderers/StringControlRenderer.js +2 -2
- package/dist/esm/jsonforms/renderers/VerticalCategorizationWrapperRenderer.js +6 -4
- package/dist/esm/jsonforms/renderers/dispatch-renderer.js +43 -0
- package/dist/foundation-forms.d.ts +13 -1
- package/package.json +15 -15
|
@@ -3050,7 +3050,7 @@
|
|
|
3050
3050
|
{
|
|
3051
3051
|
"kind": "variable",
|
|
3052
3052
|
"name": "LayoutFormGridRendererTemplate",
|
|
3053
|
-
"default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div
|
|
3053
|
+
"default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div class=\"fl-form-grid-layout\" part=\"fl-form-grid-layout\">\n ${repeat(\n (x) => x.control.uischema.elements,\n html`\n <dispatch-renderer\n :submitted=${(x, ctx) => ctx.parent.submitted}\n :dispatch=${(x, ctx) => ctx.parent.dispatch}\n :jsonforms=${(x, ctx) => ctx.parent.jsonforms}\n :prefix=${(x, ctx) => ctx.parent.prefix}\n :props=${(x, ctx) => ({\n uischema: x,\n schema: ctx.parent.control.schema,\n renderers: ctx.parent.control.renderers,\n path: ctx.parent.control.path,\n enabled: ctx.parent.control.enabled,\n })}\n ></dispatch-renderer>\n `,\n )}\n </div>\n `,\n })}\n </template>\n`"
|
|
3054
3054
|
},
|
|
3055
3055
|
{
|
|
3056
3056
|
"kind": "variable",
|
|
@@ -3087,7 +3087,7 @@
|
|
|
3087
3087
|
{
|
|
3088
3088
|
"kind": "variable",
|
|
3089
3089
|
"name": "LayoutGroupRendererTemplate",
|
|
3090
|
-
"default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n hideLabel: true,\n innerTemplate: html<DispatchRenderer>`\n <div>\n ${when(\n (x) => x.control.label,\n html<DispatchRenderer>`\n <div\n for=\"${(x) => x.control.path + '-wrapper'}\"\n class=\"group-label\"\n
|
|
3090
|
+
"default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n hideLabel: true,\n innerTemplate: html<DispatchRenderer>`\n <div class=\"fl-group-layout\" part=\"fl-group-layout\">\n ${when(\n (x) => x.control.label,\n html<DispatchRenderer>`\n <div\n for=\"${(x) => x.control.path + '-wrapper'}\"\n class=\"fl-group-label\"\n part=\"fl-group-label\"\n >\n ${(x) => x.control.label}\n </div>\n `,\n )}\n ${repeat(\n (x) => x.control.uischema.options.childElements,\n html`\n <dispatch-renderer\n :submitted=${(x, ctx) => ctx.parent.submitted}\n :dispatch=${(x, ctx) => ctx.parent.dispatch}\n :jsonforms=${(x, ctx) => ctx.parent.jsonforms}\n :prefix=${(x, ctx) => ctx.parent.prefix}\n :props=${(x, ctx) => ({\n uischema: x,\n schema: ctx.parent.control.schema,\n renderers: ctx.parent.control.renderers,\n path: ctx.parent.control.path,\n enabled: ctx.parent.control.enabled,\n })}\n ></dispatch-renderer>\n `,\n )}\n </div>\n `,\n })}\n </template>\n`"
|
|
3091
3091
|
},
|
|
3092
3092
|
{
|
|
3093
3093
|
"kind": "variable",
|
|
@@ -3124,7 +3124,7 @@
|
|
|
3124
3124
|
{
|
|
3125
3125
|
"kind": "variable",
|
|
3126
3126
|
"name": "LayoutHorizontalRendererTemplate",
|
|
3127
|
-
"default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div
|
|
3127
|
+
"default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div class=\"fl-horizontal-layout\" part=\"fl-horizontal-layout\">\n ${repeat(\n (x) => x.control.uischema.elements,\n html`\n <dispatch-renderer\n class=\"fl-horizontal-layout-item\"\n :submitted=${(x, ctx) => ctx.parent.submitted}\n :dispatch=${(x, ctx) => ctx.parent.dispatch}\n :jsonforms=${(x, ctx) => ctx.parent.jsonforms}\n :prefix=${(x, ctx) => ctx.parent.prefix}\n :props=${(x, ctx) => ({\n uischema: x,\n schema: ctx.parent.control.schema,\n renderers: ctx.parent.control.renderers,\n path: ctx.parent.control.path,\n enabled: ctx.parent.control.enabled,\n })}\n ></dispatch-renderer>\n `,\n )}\n </div>\n `,\n })}\n </template>\n`"
|
|
3128
3128
|
},
|
|
3129
3129
|
{
|
|
3130
3130
|
"kind": "variable",
|
|
@@ -3180,7 +3180,7 @@
|
|
|
3180
3180
|
{
|
|
3181
3181
|
"kind": "variable",
|
|
3182
3182
|
"name": "LayoutRendererTemplate",
|
|
3183
|
-
"default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div>\n ${repeat(\n (x) => x.control.uischema.elements,\n html`\n <dispatch-renderer\n :submitted=${(x, ctx) => ctx.parent.submitted}\n :dispatch=${(x, ctx) => ctx.parent.dispatch}\n :jsonforms=${(x, ctx) => ctx.parent.jsonforms}\n :prefix=${(x, ctx) => ctx.parent.prefix}\n :props=${(x, ctx) => ({\n uischema: x,\n schema: ctx.parent.control.schema,\n renderers: ctx.parent.control.renderers,\n path: ctx.parent.control.path,\n enabled: ctx.parent.control.enabled,\n })}\n ></dispatch-renderer>\n `,\n )}\n </div>\n `,\n })}\n </template>\n`"
|
|
3183
|
+
"default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div class=\"fl-vertical-layout\" part=\"fl-vertical-layout\">\n ${repeat(\n (x) => x.control.uischema.elements,\n html`\n <dispatch-renderer\n :submitted=${(x, ctx) => ctx.parent.submitted}\n :dispatch=${(x, ctx) => ctx.parent.dispatch}\n :jsonforms=${(x, ctx) => ctx.parent.jsonforms}\n :prefix=${(x, ctx) => ctx.parent.prefix}\n :props=${(x, ctx) => ({\n uischema: x,\n schema: ctx.parent.control.schema,\n renderers: ctx.parent.control.renderers,\n path: ctx.parent.control.path,\n enabled: ctx.parent.control.enabled,\n })}\n ></dispatch-renderer>\n `,\n )}\n </div>\n `,\n })}\n </template>\n`"
|
|
3184
3184
|
},
|
|
3185
3185
|
{
|
|
3186
3186
|
"kind": "variable",
|
|
@@ -3314,7 +3314,7 @@
|
|
|
3314
3314
|
{
|
|
3315
3315
|
"kind": "variable",
|
|
3316
3316
|
"name": "LayoutVertical2ColumnsRendererTemplate",
|
|
3317
|
-
"default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div
|
|
3317
|
+
"default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div class=\"fl-2-column-layout\" part=\"fl-2-column-layout\">\n ${repeat(\n (x) => x.control.uischema.elements,\n html`\n <div class=\"fl-2-column-item\" part=\"fl-2-column-item\">\n <dispatch-renderer\n :submitted=${(x, ctx) => ctx.parent.submitted}\n :dispatch=${(x, ctx) => ctx.parent.dispatch}\n :jsonforms=${(x, ctx) => ctx.parent.jsonforms}\n :prefix=${(x, ctx) => ctx.parent.prefix}\n :props=${(x, ctx) => ({\n uischema: x,\n schema: ctx.parent.control.schema,\n renderers: ctx.parent.control.renderers,\n path: ctx.parent.control.path,\n enabled: ctx.parent.control.enabled,\n })}\n ></dispatch-renderer>\n </div>\n `,\n )}\n </div>\n `,\n })}\n </template>\n`"
|
|
3318
3318
|
},
|
|
3319
3319
|
{
|
|
3320
3320
|
"kind": "variable",
|
|
@@ -4382,6 +4382,44 @@
|
|
|
4382
4382
|
"kind": "field",
|
|
4383
4383
|
"name": "determinedRenderer",
|
|
4384
4384
|
"readonly": true
|
|
4385
|
+
},
|
|
4386
|
+
{
|
|
4387
|
+
"kind": "field",
|
|
4388
|
+
"name": "depth",
|
|
4389
|
+
"type": {
|
|
4390
|
+
"text": "number"
|
|
4391
|
+
},
|
|
4392
|
+
"default": "1"
|
|
4393
|
+
},
|
|
4394
|
+
{
|
|
4395
|
+
"kind": "method",
|
|
4396
|
+
"name": "computeHostClass",
|
|
4397
|
+
"privacy": "private",
|
|
4398
|
+
"return": {
|
|
4399
|
+
"type": {
|
|
4400
|
+
"text": "string"
|
|
4401
|
+
}
|
|
4402
|
+
}
|
|
4403
|
+
},
|
|
4404
|
+
{
|
|
4405
|
+
"kind": "method",
|
|
4406
|
+
"name": "computeHostPart",
|
|
4407
|
+
"privacy": "private",
|
|
4408
|
+
"return": {
|
|
4409
|
+
"type": {
|
|
4410
|
+
"text": "string"
|
|
4411
|
+
}
|
|
4412
|
+
}
|
|
4413
|
+
},
|
|
4414
|
+
{
|
|
4415
|
+
"kind": "method",
|
|
4416
|
+
"name": "updateHostAttributes",
|
|
4417
|
+
"privacy": "private",
|
|
4418
|
+
"return": {
|
|
4419
|
+
"type": {
|
|
4420
|
+
"text": "void"
|
|
4421
|
+
}
|
|
4422
|
+
}
|
|
4385
4423
|
}
|
|
4386
4424
|
],
|
|
4387
4425
|
"superclass": {
|
package/dist/dts/form.d.ts
CHANGED
|
@@ -352,7 +352,10 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
352
352
|
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
353
353
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
354
354
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
355
|
-
ontouchmove
|
|
355
|
+
ontouchmove? /**
|
|
356
|
+
* Builds the commit payload for the form submission.
|
|
357
|
+
* @internal
|
|
358
|
+
*/: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
356
359
|
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
357
360
|
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
358
361
|
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
@@ -655,6 +658,10 @@ export declare class Form extends Form_base {
|
|
|
655
658
|
* @internal
|
|
656
659
|
*/
|
|
657
660
|
onChange(event: CustomEvent): void;
|
|
661
|
+
/**
|
|
662
|
+
* @internal
|
|
663
|
+
*/
|
|
664
|
+
connectedCallback(): void;
|
|
658
665
|
/**
|
|
659
666
|
* @internal
|
|
660
667
|
*/
|
package/dist/dts/form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/form.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAyB1C,OAAO,EAAE,aAAa,EAAmC,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAyBlG;;;GAGG;AACH,eAAO,MAAM,SAAS,OAwBrB,CAAC;;;;;;;kBA7CC,CAAC;;;;;;;;8BAoDmC,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/form.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAyB1C,OAAO,EAAE,aAAa,EAAmC,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAyBlG;;;GAGG;AACH,eAAO,MAAM,SAAS,OAwBrB,CAAC;;;;;;;kBA7CC,CAAC;;;;;;;;8BAoDmC,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAmBH,CAAC;4IAKS,CAAA;wFAGL,CAAC;+IAOrC,CAAC;2FAGZ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA8BwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBAwEyB,CAAA;;;;;;;;;;;;;6BAiCT,CAAC;8BACZ,CAAC;kBAGR,CAAC;;oBAIhC,CAAF;;sBAKE,CAAH;oBACsC,CAAC;;;;;;;;gDAoBpC,CAAD;;;;;;;;;;;;;;;;;;uBA4ByB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAsHlB,CAAC;yBAEG,CAAC;UAC+B,GAAG;WACzC,GAAJ;;gBAGI,GAAG;;;;;;;WAgBoC,GAAG;YAE7B,GAAG;;;;;;;;;;;oBA+BtB,GAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgNmB,CAAC;cAGf,CAAL;eAWD,CAJA,CAAA;;;OAGG;gBACS,CAAC;;;;;;;;;;;;;;SAgDF,CAAC;;;iBAOV,CAAF;;AAnrBF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAKa,IAAK,SAAQ,SAAiC;IACzD;;;OAGG;IAC0C,MAAM,EAAE,MAAM,CAAW;IACtE;;;;OAIG;IACG,YAAY,EAAE,MAAM,CAAC;YACb,mBAAmB;IAyCjC;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAahC;;;OAGG;IACH,OAAO,CAAC,4BAA4B;IAkCpC;;;;OAIG;IAC0C,mBAAmB,EAAE,MAAM,CAAC;IAEzE;;;;OAIG;IAC2D,kBAAkB,EAAE,OAAO,CAAC;IAE1F;;;OAGG;IAC4C,oBAAoB,EAAE,MAAM,CAAsB;IAEjG;;;OAGG;IACI,aAAa,EAAE,GAAG,CAAC;IAE1B;;;OAGG;IACI,YAAY,EAAE,gBAAgB,CAAC;IAEtC;;;OAGG;IACS,eAAe,EAAE,MAAM,CAAM;IAEzC;;;OAGG;IACH,OAAO,CAAC,cAAc,CAAa;IAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACS,QAAQ,EAAE,QAAQ,CAAC;IAC/B;;;OAGG;IACS,SAAS,EAAE,aAAa,EAAE,CAAa;IACnD;;OAEG;IACH,gBAAgB;IAGhB;;;;;;;OAOG;IACS,mBAAmB,EAAE,aAAa,EAAE,CAAM;IACtD;;OAEG;IACH,0BAA0B;IAG1B;;;;;OAKG;IACS,eAAe,EAAE,aAAa,EAAE,CAAa;IACzD,OAAO,CAAC,qBAAqB;IAI7B;;;;;;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;IAE/B;;;OAGG;IACwB,QAAQ,EAAE,OAAO,CAAC;IAC7C;;;OAGG;IACyD,UAAU,EAAE,OAAO,CAAC;IAEhF;;;OAGG;IACwD,SAAS,EAAE,OAAO,CAAC;IAE9E;;;;OAIG;IACkD,UAAU,EAAE,OAAO,CAAC;IAEzE;;;OAGG;IAQH,kBAAkB,EAAE,MAAM,CAAK;IAE/B;;;OAGG;IAQH,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IAEvC;;;OAGG;IACH,OAAO,CAAC,qBAAqB,CAA0B;IAEvD;;;OAGG;IACH,OAAO,CAAC,oBAAoB,CAAuB;IAEnD;;;;OAIG;IACS,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAa;IAEtE;;OAEG;IACG,OAAO;IAiEb;;;;OAIG;YACW,WAAW;IAuGzB;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IAQvB;;;OAGG;IACH,sBAAsB;IAItB;;;;;OAKG;IACG,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiDnD;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB;IAwB5B;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAU1B;;;OAGG;IACH,IAAc,cAAc,YAM3B;IAED;;;OAGG;IACH,IAAc,cAAc,YAE3B;IAED;;OAEG;IACM,SAAS,IAAI,IAAI;IAW1B;;OAEG;IACH,UAAU,CAAC,KAAK,EAAE,WAAW;IAI7B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW;IAmB3B;;OAEG;IACH,iBAAiB;IAKjB;;OAEG;IACH,oBAAoB;IAKpB;;;OAGG;IACH,KAAK,CAAC,SAAS,UAAO;IAStB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAOzB;;;OAGG;IACH,kBAAkB;IAQlB;;;OAGG;IACG,kBAAkB;IA+BxB;;;;;OAKG;IACG,qBAAqB,CAAC,KAAK,EAAE,KAAK;IAyFxC;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAMzB;;;;;OAKG;IACH,mBAAmB;CA2BpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.styles.d.ts","sourceRoot":"","sources":["../../src/form.styles.ts"],"names":[],"mappings":"AAMA,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,GAAI,SAAQ,MAAe,WAK7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"form.styles.d.ts","sourceRoot":"","sources":["../../src/form.styles.ts"],"names":[],"mappings":"AAMA,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,GAAI,SAAQ,MAAe,WAK7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,iDAoIhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.template.d.ts","sourceRoot":"","sources":["../../src/form.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAiBnC,gBAAgB;AAChB,eAAO,MAAM,eAAe,GAAI,WAAM,
|
|
1
|
+
{"version":3,"file":"form.template.d.ts","sourceRoot":"","sources":["../../src/form.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAiBnC,gBAAgB;AAChB,eAAO,MAAM,eAAe,GAAI,WAAM,8DAkHrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,2DAElC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategorizationWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/CategorizationWrapperRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,WAAW,EAIZ,MAAM,yBAAyB,CAAC;AAIjC,eAAO,MAAM,oBAAoB,iDAKhC,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAChD,eAAe,+
|
|
1
|
+
{"version":3,"file":"CategorizationWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/CategorizationWrapperRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,WAAW,EAIZ,MAAM,yBAAyB,CAAC;AAIjC,eAAO,MAAM,oBAAoB,iDAKhC,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAChD,eAAe,+EAsDhB,CAAC;AAkBF,qBAQa,qBAAsB,SAAQ,WAAW;IACxC,IAAI,MAAC;IACL,OAAO,MAAC;IACR,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAgB;IAEpD,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAIjC,eAAe,CAAC,KAAK,EAAE,KAAK;IAO5B,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO;CAQjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/ControlWrapperRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,YAAY,EAQb,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAAI,cAAc,MAAM,
|
|
1
|
+
{"version":3,"file":"ControlWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/ControlWrapperRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,YAAY,EAQb,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAAI,cAAc,MAAM,oDA0D3D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,iDAAmC,CAAC;AAErE,UAAU,qBAAqB;IAC7B;;;;OAIG;IACH,aAAa,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IAC9C,0EAA0E;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,qFAAqF;IACrF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GACjC,SAAS,qBAAqB,KAC7B,YAAY,CAAC,gBAAgB,CAgE/B,CAAC;AAmCF,4BAA4B;AAC5B,eAAO,MAAM,8BAA8B,wBAoD1C,CAAC;AAoEF;;;;GAIG;AACH,qBAKa,cAAe,SAAQ,WAAW;IACjC,OAAO,MAAC;IACR,SAAS,MAAC;IACV,OAAO,EAAE,OAAO,CAAC;IACuB,SAAS,EAAE,OAAO,CAAS;IACzE,MAAM,EAAE,MAAM,CAAC;IAEZ,iBAAiB;IAQ1B,IACI,eAAe,YAOlB;IAED,IACI,aAAa,WAOhB;IAED,IACI,kBAAkB,2BAGrB;IAED,IACI,UAAU,WAOb;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutFormGridRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/LayoutFormGridRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,8BAA8B,
|
|
1
|
+
{"version":3,"file":"LayoutFormGridRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/LayoutFormGridRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,8BAA8B,uEA2B1C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,GAIjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutGroupRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/LayoutGroupRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"LayoutGroupRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/LayoutGroupRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,2BAA2B,uEAwCvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,GAItC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutHorizontalRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/LayoutHorizontalRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"LayoutHorizontalRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/LayoutHorizontalRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,gCAAgC,uEA4B5C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,GAInC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutVertical2ColumnsRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/LayoutVertical2ColumnsRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,sCAAsC,
|
|
1
|
+
{"version":3,"file":"LayoutVertical2ColumnsRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/LayoutVertical2ColumnsRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,sCAAsC,uEA6BlD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,GAIzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalCategorizationWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/VerticalCategorizationWrapperRenderer.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE,eAAO,MAAM,6CAA6C,GACxD,eAAe,
|
|
1
|
+
{"version":3,"file":"VerticalCategorizationWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/VerticalCategorizationWrapperRenderer.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE,eAAO,MAAM,6CAA6C,GACxD,eAAe,uFA8DhB,CAAC;AAgEF,qBAQa,6BAA8B,SAAQ,qBAAqB;IAChE,MAAM,EAAE,MAAM,CAAM;IAE1B,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAMjD,iBAAiB;CAIlB"}
|
|
@@ -17,6 +17,11 @@ export declare class DispatchRenderer extends FASTElement {
|
|
|
17
17
|
createRenderer: () => void;
|
|
18
18
|
onBlur(): void;
|
|
19
19
|
get determinedRenderer(): any;
|
|
20
|
+
depth: number;
|
|
21
|
+
private computeHostClass;
|
|
22
|
+
private computeHostPart;
|
|
23
|
+
private updateHostAttributes;
|
|
24
|
+
connectedCallback(): void;
|
|
20
25
|
disconnectedCallback(): void;
|
|
21
26
|
}
|
|
22
27
|
//# sourceMappingURL=dispatch-renderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch-renderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/dispatch-renderer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EAMZ,MAAM,yBAAyB,CAAC;AAsBjC,qBAMa,gBAAiB,SAAQ,WAAW;IACnC,SAAS,MAAC;IACtB,gBAAgB;IAIJ,KAAK,MAAC;IAClB,YAAY;
|
|
1
|
+
{"version":3,"file":"dispatch-renderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/dispatch-renderer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EAMZ,MAAM,yBAAyB,CAAC;AAsBjC,qBAMa,gBAAiB,SAAQ,WAAW;IACnC,SAAS,MAAC;IACtB,gBAAgB;IAIJ,KAAK,MAAC;IAClB,YAAY;IAIA,OAAO,MAAC;IAEpB,OAAO,CAAC,UAAU,CAAS;IAE3B,IAAI,SAAS,IAAI,OAAO,CAGvB;IAED,IAAI,SAAS,CAAC,KAAK,EAAE,OAAO,EAI3B;IAED,gBAAgB;IAGJ,QAAQ,MAAC;IACT,OAAO,MAAC;IACR,QAAQ,MAAC;IACT,MAAM,MAAC;IACnB,aAAa;IAIb,cAAc,aAmBZ;IAEF,MAAM;IAIN,IAAI,kBAAkB,QAgBrB;IAED,KAAK,EAAE,MAAM,CAAK;IAElB,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,oBAAoB;IAO5B,iBAAiB;IAYjB,oBAAoB;CAKrB"}
|
package/dist/esm/form.js
CHANGED
|
@@ -571,6 +571,13 @@ let Form = class Form extends LifecycleMixin(FoundationElement) {
|
|
|
571
571
|
this.$emit('data-change', event.detail);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
+
/**
|
|
575
|
+
* @internal
|
|
576
|
+
*/
|
|
577
|
+
connectedCallback() {
|
|
578
|
+
super.connectedCallback();
|
|
579
|
+
this.setAttribute('part', 'foundation-form');
|
|
580
|
+
}
|
|
574
581
|
/**
|
|
575
582
|
* @internal
|
|
576
583
|
*/
|
|
@@ -851,7 +858,6 @@ Form = __decorate([
|
|
|
851
858
|
name: 'foundation-form',
|
|
852
859
|
template,
|
|
853
860
|
styles,
|
|
854
|
-
shadowOptions: null,
|
|
855
861
|
})
|
|
856
862
|
], Form);
|
|
857
863
|
export { Form };
|
package/dist/esm/form.styles.js
CHANGED
|
@@ -14,7 +14,7 @@ export const comboboxRendererStyles = (prefix = 'zero') => `
|
|
|
14
14
|
export const foundationFormStyles = css `
|
|
15
15
|
${controlWrapperStyles}
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
:host {
|
|
18
18
|
border: calc(${strokeWidth} * 1px) solid transparent;
|
|
19
19
|
margin: 0;
|
|
20
20
|
border-radius: calc(${controlCornerRadius} * 1px);
|
|
@@ -28,7 +28,7 @@ export const foundationFormStyles = css `
|
|
|
28
28
|
box-sizing: border-box;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
.actions {
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: row;
|
|
34
34
|
align-items: flex-end;
|
|
@@ -37,22 +37,22 @@ export const foundationFormStyles = css `
|
|
|
37
37
|
gap: 10px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
.approval-message-actions {
|
|
41
41
|
display: flex;
|
|
42
42
|
justify-content: flex-end;
|
|
43
43
|
gap: calc(${designUnit} * 2px);
|
|
44
44
|
margin-top: calc(${designUnit} * 2px);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
.submit-button {
|
|
48
48
|
margin: 0;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
.reset-button {
|
|
52
52
|
margin-right: auto;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
.csv-upload-section {
|
|
56
56
|
display: flex;
|
|
57
57
|
align-items: center;
|
|
58
58
|
gap: calc(${designUnit} * 3px);
|
|
@@ -60,13 +60,13 @@ export const foundationFormStyles = css `
|
|
|
60
60
|
margin-bottom: calc(${designUnit} * 2px);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
.csv-file-input {
|
|
64
64
|
display: none;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/* Card-like styling for CSV buttons - matches array item aesthetic */
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
.csv-template-button,
|
|
69
|
+
.csv-import-button {
|
|
70
70
|
display: flex;
|
|
71
71
|
align-items: center;
|
|
72
72
|
gap: calc(${designUnit} * 1px);
|
|
@@ -82,14 +82,62 @@ export const foundationFormStyles = css `
|
|
|
82
82
|
border-color 0.15s ease;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
.csv-template-button:hover,
|
|
86
|
+
.csv-import-button:hover {
|
|
87
87
|
box-shadow:
|
|
88
88
|
0 2px 4px rgb(0 0 0 / 6%),
|
|
89
89
|
0 6px 12px rgb(0 0 0 / 8%);
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
/* ── Layout wrappers ────────────────────────────────────────────────────── */
|
|
93
|
+
|
|
94
|
+
.fl-layout-label {
|
|
95
|
+
color: var(--neutral-foreground-hint);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.fl-vertical-layout {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.fl-horizontal-layout {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: row;
|
|
106
|
+
gap: calc(${designUnit} * 2px);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.fl-horizontal-layout-item {
|
|
110
|
+
flex: 1;
|
|
111
|
+
min-width: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.fl-form-grid-layout {
|
|
115
|
+
display: grid;
|
|
116
|
+
grid-template-columns: repeat(4, 1fr);
|
|
117
|
+
gap: calc(${designUnit} * 2px);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.fl-2-column-layout {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-flow: row wrap;
|
|
123
|
+
justify-content: space-between;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.fl-2-column-item {
|
|
127
|
+
width: 49%;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.fl-group-label {
|
|
131
|
+
color: var(--neutral-foreground-rest);
|
|
132
|
+
padding-bottom: calc(${designUnit} * 1px);
|
|
133
|
+
margin-bottom: calc(${designUnit} * 2px);
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
font-size: var(--type-ramp-base-font-size);
|
|
136
|
+
display: flex;
|
|
137
|
+
justify-content: space-between;
|
|
138
|
+
}
|
|
91
139
|
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
92
|
-
|
|
140
|
+
:host {
|
|
93
141
|
background: ${SystemColors.Canvas};
|
|
94
142
|
border-color: ${SystemColors.CanvasText};
|
|
95
143
|
}
|
|
@@ -40,6 +40,7 @@ export const getPrefixedForm = (prefix) => html `
|
|
|
40
40
|
</div>
|
|
41
41
|
`)}
|
|
42
42
|
<json-forms
|
|
43
|
+
part="json-forms"
|
|
43
44
|
@submit-button-clicked=${(x) => x._submit()}
|
|
44
45
|
@submit-part=${(x, c) => x.submitPart(c.event)}
|
|
45
46
|
@submit-single-row=${(x, c) => x.submitSingleRow(c.event.detail.index)}
|
|
@@ -8,20 +8,21 @@ export const tabControlIconStyles = css `
|
|
|
8
8
|
`;
|
|
9
9
|
export const CategorizationWrapperRendererTemplate = (prefix = 'zero') => html `
|
|
10
10
|
<template>
|
|
11
|
-
<${prefix}-tabs class="tabs-container" @change=${(x, ctx) => x.handleTabChange(ctx.event)}>
|
|
11
|
+
<${prefix}-tabs appearance="secondary" class="tabs-container" part="fl-categorization-tabs" @change=${(x, ctx) => x.handleTabChange(ctx.event)}>
|
|
12
12
|
${repeat((x) => x.control.uischema.elements, html `
|
|
13
|
-
<${prefix}-tab class="tab-control">
|
|
13
|
+
<${prefix}-tab appearance="secondary" class="tab-control" part="fl-categorization-tab">
|
|
14
14
|
${(x, ctx) => { var _a; return (_a = x.label) !== null && _a !== void 0 ? _a : `Category ${ctx.index + 1}`; }}
|
|
15
15
|
${when((x, ctx) => ctx.parent.hasCategoryError(ctx.index), html `
|
|
16
|
-
<${prefix}-icon class="tab-control-icon" name="circle-exclamation"></${prefix}-icon>
|
|
16
|
+
<${prefix}-icon class="tab-control-icon" part="fl-categorization-tab-error-icon" name="circle-exclamation"></${prefix}-icon>
|
|
17
17
|
`)}
|
|
18
18
|
</${prefix}-tab>
|
|
19
19
|
`, { positioning: true })}
|
|
20
20
|
${repeat((x) => x.control.uischema.elements, html `
|
|
21
|
-
<${prefix}-tab-panel class="tab-panel-control">
|
|
21
|
+
<${prefix}-tab-panel class="tab-panel-control" part="fl-categorization-tab-panel">
|
|
22
22
|
${when((x, ctx) => ctx.parent.isMounted(ctx.index), html `
|
|
23
23
|
${repeat((x) => x.options.childElements, html `
|
|
24
24
|
<dispatch-renderer
|
|
25
|
+
class="fl-categorization-item"
|
|
25
26
|
:submitted=${(x, ctx) => ctx.parentContext.parent.form.submitted}
|
|
26
27
|
:dispatch=${(x, ctx) => ctx.parentContext.parent.form.dispatch}
|
|
27
28
|
:jsonforms=${(x, ctx) => ctx.parentContext.parent.form.jsonforms}
|
|
@@ -47,10 +48,6 @@ const styles = css `
|
|
|
47
48
|
border-bottom: none;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
categorization-wrapper .tab-control {
|
|
51
|
-
box-shadow: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
51
|
categorization-wrapper .tab-control .tab-control-icon {
|
|
55
52
|
margin-left: 3px;
|
|
56
53
|
color: #f9644d;
|
|
@@ -25,6 +25,7 @@ export const controlWrapperStylesFor = (hostSelector) => css `
|
|
|
25
25
|
justify-content: space-between;
|
|
26
26
|
font-weight: 700;
|
|
27
27
|
cursor: default;
|
|
28
|
+
font-size: var(--type-ramp-base-font-size);
|
|
28
29
|
}
|
|
29
30
|
${hostSelector} .foundation-control-wrapper-label.visually-hidden {
|
|
30
31
|
position: absolute;
|
|
@@ -46,7 +47,8 @@ export const controlWrapperStylesFor = (hostSelector) => css `
|
|
|
46
47
|
}
|
|
47
48
|
${hostSelector} .labelLeft .foundation-control-wrapper-label {
|
|
48
49
|
flex: 0 1 auto;
|
|
49
|
-
width: calc(var(--design-unit) * 30px);
|
|
50
|
+
width: var(--form-label-left-width, calc(var(--design-unit) * 30px));
|
|
51
|
+
min-width: var(--form-label-left-width, calc(var(--design-unit) * 30px));
|
|
50
52
|
margin-right: calc(var(--design-unit) * 2px);
|
|
51
53
|
align-items: center;
|
|
52
54
|
margin-bottom: 0;
|
|
@@ -75,7 +77,7 @@ export const controlWrapperStylesFor = (hostSelector) => css `
|
|
|
75
77
|
*
|
|
76
78
|
* @internal
|
|
77
79
|
*/
|
|
78
|
-
export const controlWrapperStyles = controlWrapperStylesFor('
|
|
80
|
+
export const controlWrapperStyles = controlWrapperStylesFor(':host');
|
|
79
81
|
/**
|
|
80
82
|
* Light-DOM-friendly control wrapper that replaces the former `<control-wrapper>`
|
|
81
83
|
* custom element. Renders label, error/description slots, and composes a provided
|
|
@@ -93,6 +95,7 @@ export const controlWrapperTemplate = (options) => {
|
|
|
93
95
|
var _a, _b, _c, _d;
|
|
94
96
|
return classNames(['foundation-control-wrapper-root', true], ['labelLeft', ((_d = (_c = (_b = (_a = x.jsonforms) === null || _a === void 0 ? void 0 : _a.core) === null || _b === void 0 ? void 0 : _b.uischema) === null || _c === void 0 ? void 0 : _c.options) === null || _d === void 0 ? void 0 : _d.labelPlacement) === 'left']);
|
|
95
97
|
}}
|
|
98
|
+
part="fl-control-root"
|
|
96
99
|
id=${(x) => x.control.path + '-wrapper'}
|
|
97
100
|
data-test-id=${(x) => x.control.path + '-wrapper'}
|
|
98
101
|
role="group"
|
|
@@ -103,8 +106,9 @@ export const controlWrapperTemplate = (options) => {
|
|
|
103
106
|
id="${(x) => x.control.path + '-label'}"
|
|
104
107
|
for="${(x) => x.control.path}"
|
|
105
108
|
class="${() => classNames('foundation-control-wrapper-label', ['visually-hidden', hideLabel])}"
|
|
109
|
+
part="fl-control-label"
|
|
106
110
|
>
|
|
107
|
-
<span>
|
|
111
|
+
<span part="fl-control-label-text">
|
|
108
112
|
${(x) => computeControlLabel(x)}${when((x) => { var _a, _b; return (_b = (_a = x.control.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.tooltip; }, html `
|
|
109
113
|
<${prefix}-icon
|
|
110
114
|
tooltip="${(x) => { var _a, _b; return (_b = (_a = x.control.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.tooltip; }}"
|
|
@@ -115,11 +119,14 @@ export const controlWrapperTemplate = (options) => {
|
|
|
115
119
|
</label>
|
|
116
120
|
`)}
|
|
117
121
|
|
|
118
|
-
<div class="foundation-control-wrapper" part="wrapper"
|
|
122
|
+
<div class="foundation-control-wrapper" part="wrapper fl-control-wrapper">
|
|
123
|
+
${innerTemplate}
|
|
124
|
+
</div>
|
|
119
125
|
<div
|
|
120
126
|
class="${(x) => (x.control.errors || computeAnyOfError(x)) && x.touched
|
|
121
127
|
? 'foundation-control-wrapper-error'
|
|
122
128
|
: 'foundation-control-wrapper-description'}"
|
|
129
|
+
part="fl-control-message"
|
|
123
130
|
>
|
|
124
131
|
${(x) => x.touched && (x.control.errors || computeAnyOfError(x))
|
|
125
132
|
? [x.control.errors, computeAnyOfError(x)].filter(Boolean).join(' ')
|
|
@@ -6,13 +6,7 @@ export const LayoutFormGridRendererTemplate = html `
|
|
|
6
6
|
<template>
|
|
7
7
|
${layoutWrapperTemplate({
|
|
8
8
|
innerTemplate: html `
|
|
9
|
-
<div
|
|
10
|
-
style="
|
|
11
|
-
display: grid;
|
|
12
|
-
grid-template-columns: repeat(4, 1fr);
|
|
13
|
-
gap: 8px;
|
|
14
|
-
"
|
|
15
|
-
>
|
|
9
|
+
<div class="fl-form-grid-layout" part="fl-form-grid-layout">
|
|
16
10
|
${repeat((x) => x.control.uischema.elements, html `
|
|
17
11
|
<dispatch-renderer
|
|
18
12
|
:submitted=${(x, ctx) => ctx.parent.submitted}
|
|
@@ -7,18 +7,12 @@ export const LayoutGroupRendererTemplate = html `
|
|
|
7
7
|
${layoutWrapperTemplate({
|
|
8
8
|
hideLabel: true,
|
|
9
9
|
innerTemplate: html `
|
|
10
|
-
<div>
|
|
10
|
+
<div class="fl-group-layout" part="fl-group-layout">
|
|
11
11
|
${when((x) => x.control.label, html `
|
|
12
12
|
<div
|
|
13
13
|
for="${(x) => x.control.path + '-wrapper'}"
|
|
14
|
-
class="group-label"
|
|
15
|
-
|
|
16
|
-
padding-bottom: calc(var(--design-unit) * 1px);
|
|
17
|
-
margin-bottom: calc(var(--design-unit) * 4px);
|
|
18
|
-
font-weight: 600;
|
|
19
|
-
font-size: var(--type-ramp-base-font-size);
|
|
20
|
-
display: flex;
|
|
21
|
-
justify-content: space-between;"
|
|
14
|
+
class="fl-group-label"
|
|
15
|
+
part="fl-group-label"
|
|
22
16
|
>
|
|
23
17
|
${(x) => x.control.label}
|
|
24
18
|
</div>
|
|
@@ -6,15 +6,10 @@ export const LayoutHorizontalRendererTemplate = html `
|
|
|
6
6
|
<template>
|
|
7
7
|
${layoutWrapperTemplate({
|
|
8
8
|
innerTemplate: html `
|
|
9
|
-
<div
|
|
10
|
-
style="
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: row;
|
|
13
|
-
gap: 10px"
|
|
14
|
-
>
|
|
9
|
+
<div class="fl-horizontal-layout" part="fl-horizontal-layout">
|
|
15
10
|
${repeat((x) => x.control.uischema.elements, html `
|
|
16
11
|
<dispatch-renderer
|
|
17
|
-
|
|
12
|
+
class="fl-horizontal-layout-item"
|
|
18
13
|
:submitted=${(x, ctx) => ctx.parent.submitted}
|
|
19
14
|
:dispatch=${(x, ctx) => ctx.parent.dispatch}
|
|
20
15
|
:jsonforms=${(x, ctx) => ctx.parent.jsonforms}
|
|
@@ -15,7 +15,7 @@ export const layoutWrapperTemplate = (options) => {
|
|
|
15
15
|
const { innerTemplate, hideLabel = false } = options;
|
|
16
16
|
return html `
|
|
17
17
|
${when((x) => { var _a; return !!((_a = x.control) === null || _a === void 0 ? void 0 : _a.label) && !hideLabel; }, html `
|
|
18
|
-
<div
|
|
18
|
+
<div class="fl-layout-label" part="fl-layout-label">${(x) => x.control.label}</div>
|
|
19
19
|
`)}
|
|
20
20
|
${when((x) => { var _a; return (_a = x.control) === null || _a === void 0 ? void 0 : _a.visible; }, innerTemplate)}
|
|
21
21
|
`;
|
|
@@ -24,7 +24,7 @@ export const LayoutRendererTemplate = html `
|
|
|
24
24
|
<template>
|
|
25
25
|
${layoutWrapperTemplate({
|
|
26
26
|
innerTemplate: html `
|
|
27
|
-
<div>
|
|
27
|
+
<div class="fl-vertical-layout" part="fl-vertical-layout">
|
|
28
28
|
${repeat((x) => x.control.uischema.elements, html `
|
|
29
29
|
<dispatch-renderer
|
|
30
30
|
:submitted=${(x, ctx) => ctx.parent.submitted}
|
|
@@ -6,15 +6,9 @@ export const LayoutVertical2ColumnsRendererTemplate = html `
|
|
|
6
6
|
<template>
|
|
7
7
|
${layoutWrapperTemplate({
|
|
8
8
|
innerTemplate: html `
|
|
9
|
-
<div
|
|
10
|
-
style="
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: row;
|
|
13
|
-
flex-wrap: wrap;
|
|
14
|
-
justify-content: space-between;"
|
|
15
|
-
>
|
|
9
|
+
<div class="fl-2-column-layout" part="fl-2-column-layout">
|
|
16
10
|
${repeat((x) => x.control.uischema.elements, html `
|
|
17
|
-
<div
|
|
11
|
+
<div class="fl-2-column-item" part="fl-2-column-item">
|
|
18
12
|
<dispatch-renderer
|
|
19
13
|
:submitted=${(x, ctx) => ctx.parent.submitted}
|
|
20
14
|
:dispatch=${(x, ctx) => ctx.parent.dispatch}
|
|
@@ -28,7 +28,7 @@ export const NumberControlRendererTemplate = (prefix = 'zero') => html `
|
|
|
28
28
|
tabindex="${(x) => { var _a, _b; return (_b = (_a = x.control.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.tabIndex; }}"
|
|
29
29
|
@change=${handleNumberChange}
|
|
30
30
|
@input=${(x, c) => { var _a; return (((_a = x.control.uischema.options) === null || _a === void 0 ? void 0 : _a.changeOnInput) ? handleNumberChange(x, c) : undefined); }}
|
|
31
|
-
placeholder=${(x) => x.control.uischema.placeholder ||
|
|
31
|
+
placeholder=${(x) => x.control.uischema.placeholder || ''}
|
|
32
32
|
id=${(x) => x.control.path}
|
|
33
33
|
data-test-id=${(x) => x.control.path}
|
|
34
34
|
?required=${(x) => x.control.required}
|
|
@@ -36,7 +36,7 @@ export const getStringControlRendererTemplate = (prefix = 'zero') => html `
|
|
|
36
36
|
:value=${(x) => x.control.data || ''}
|
|
37
37
|
@input=${(x, c) => { var _a; return (((_a = x.control.uischema.options) === null || _a === void 0 ? void 0 : _a.changeOnInput) ? changeHandler(x, c) : undefined); }}
|
|
38
38
|
@change=${changeHandler}
|
|
39
|
-
placeholder=${(x) => x.control.uischema.placeholder ||
|
|
39
|
+
placeholder=${(x) => x.control.uischema.placeholder || ''}
|
|
40
40
|
id=${(x) => x.control.path}
|
|
41
41
|
data-test-id=${(x) => x.control.path}
|
|
42
42
|
tabindex="${(x) => { var _a, _b; return (_b = (_a = x.control.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.tabIndex; }}"
|
|
@@ -50,7 +50,7 @@ export const getStringControlRendererTemplate = (prefix = 'zero') => html `
|
|
|
50
50
|
:value=${(x) => x.control.data || ''}
|
|
51
51
|
@input=${(x, c) => { var _a; return (((_a = x.control.uischema.options) === null || _a === void 0 ? void 0 : _a.changeOnInput) ? changeHandler(x, c) : undefined); }}
|
|
52
52
|
@change=${changeHandler}
|
|
53
|
-
placeholder=${(x) => x.control.uischema.placeholder ||
|
|
53
|
+
placeholder=${(x) => x.control.uischema.placeholder || ''}
|
|
54
54
|
id=${(x) => x.control.path}
|
|
55
55
|
data-test-id=${(x) => x.control.path}
|
|
56
56
|
?required=${(x) => x.control.required}
|
|
@@ -5,24 +5,26 @@ export const VerticalCategorizationWrapperRendererTemplate = (prefix = 'zero') =
|
|
|
5
5
|
<template>
|
|
6
6
|
<${prefix}-tabs
|
|
7
7
|
class="tabs-container"
|
|
8
|
+
part="fl-vertical-categorization-tabs"
|
|
8
9
|
orientation="vertical"
|
|
9
10
|
@change=${(x, ctx) => x.handleTabChange(ctx.event)}
|
|
10
11
|
>
|
|
11
12
|
${repeat((x) => x.control.uischema.elements, html `
|
|
12
|
-
<${prefix}-tab class="tab-control" appearance="secondary">
|
|
13
|
-
<span class="tab-label">
|
|
13
|
+
<${prefix}-tab class="tab-control" part="fl-vertical-categorization-tab" appearance="secondary">
|
|
14
|
+
<span class="tab-label" part="fl-vertical-categorization-tab-label">
|
|
14
15
|
${(x, ctx) => { var _a; return (_a = x.label) !== null && _a !== void 0 ? _a : `Category ${ctx.index + 1}`; }}
|
|
15
16
|
${when((x, ctx) => ctx.parent.hasCategoryError(ctx.index), html `
|
|
16
|
-
<${prefix}-icon class="tab-control-icon" name="circle-exclamation"></${prefix}-icon>
|
|
17
|
+
<${prefix}-icon class="tab-control-icon" part="fl-vertical-categorization-tab-error-icon" name="circle-exclamation"></${prefix}-icon>
|
|
17
18
|
`)}
|
|
18
19
|
</span>
|
|
19
20
|
</${prefix}-tab>
|
|
20
21
|
`, { positioning: true })}
|
|
21
22
|
${repeat((x) => x.control.uischema.elements, html `
|
|
22
|
-
<${prefix}-tab-panel class="tab-panel-control">
|
|
23
|
+
<${prefix}-tab-panel class="tab-panel-control" part="fl-vertical-categorization-tab-panel">
|
|
23
24
|
${when((x, ctx) => ctx.parent.isMounted(ctx.index), html `
|
|
24
25
|
${repeat((x) => x.options.childElements, html `
|
|
25
26
|
<dispatch-renderer
|
|
27
|
+
class="fl-vertical-categorization-item"
|
|
26
28
|
:submitted=${(x, ctx) => ctx.parentContext.parent.form.submitted}
|
|
27
29
|
:dispatch=${(x, ctx) => ctx.parentContext.parent.form.dispatch}
|
|
28
30
|
:jsonforms=${(x, ctx) => ctx.parentContext.parent.form.jsonforms}
|
|
@@ -30,12 +30,14 @@ let DispatchRenderer = class DispatchRenderer extends FASTElement {
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
this.determinedRenderer.dispatchMapper);
|
|
32
32
|
};
|
|
33
|
+
this.depth = 1;
|
|
33
34
|
}
|
|
34
35
|
jsonformsChanged() {
|
|
35
36
|
this.createRenderer();
|
|
36
37
|
}
|
|
37
38
|
propsChanged() {
|
|
38
39
|
this.createRenderer();
|
|
40
|
+
this.updateHostAttributes();
|
|
39
41
|
}
|
|
40
42
|
get submitted() {
|
|
41
43
|
Observable.track(this, 'submitted');
|
|
@@ -69,6 +71,47 @@ let DispatchRenderer = class DispatchRenderer extends FASTElement {
|
|
|
69
71
|
return rendererEntry;
|
|
70
72
|
}
|
|
71
73
|
}
|
|
74
|
+
computeHostClass() {
|
|
75
|
+
var _a, _b, _c, _d, _e, _f;
|
|
76
|
+
const uischema = (_a = this.props) === null || _a === void 0 ? void 0 : _a.uischema;
|
|
77
|
+
const levelClass = `dr-level-${this.depth}`;
|
|
78
|
+
if (!uischema)
|
|
79
|
+
return levelClass;
|
|
80
|
+
const type = (_c = (_b = uischema.type) === null || _b === void 0 ? void 0 : _b.toLowerCase()) !== null && _c !== void 0 ? _c : '';
|
|
81
|
+
const field = (_f = (_e = (_d = uischema.scope) === null || _d === void 0 ? void 0 : _d.split('/').pop()) === null || _e === void 0 ? void 0 : _e.toLowerCase()) !== null && _f !== void 0 ? _f : '';
|
|
82
|
+
return [type && `dr-${type}`, field && `dr-${field}`, levelClass].filter(Boolean).join(' ');
|
|
83
|
+
}
|
|
84
|
+
computeHostPart() {
|
|
85
|
+
var _a, _b;
|
|
86
|
+
const uischema = (_a = this.props) === null || _a === void 0 ? void 0 : _a.uischema;
|
|
87
|
+
const parts = ['dispatch-renderer', `dr-level-${this.depth}`];
|
|
88
|
+
if (uischema === null || uischema === void 0 ? void 0 : uischema.type)
|
|
89
|
+
parts.push(`dr-${uischema.type.toLowerCase()}`);
|
|
90
|
+
if (uischema === null || uischema === void 0 ? void 0 : uischema.scope) {
|
|
91
|
+
const field = (_b = uischema.scope.split('/').pop()) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
92
|
+
if (field)
|
|
93
|
+
parts.push(`dr-${field}`);
|
|
94
|
+
}
|
|
95
|
+
return parts.join(' ');
|
|
96
|
+
}
|
|
97
|
+
updateHostAttributes() {
|
|
98
|
+
const preserved = Array.from(this.classList).filter((c) => !c.startsWith('dr-'));
|
|
99
|
+
const drClasses = this.computeHostClass().split(' ');
|
|
100
|
+
this.setAttribute('class', [...preserved, ...drClasses].join(' '));
|
|
101
|
+
this.setAttribute('part', this.computeHostPart());
|
|
102
|
+
}
|
|
103
|
+
connectedCallback() {
|
|
104
|
+
super.connectedCallback();
|
|
105
|
+
let depth = 1;
|
|
106
|
+
let el = this.parentElement;
|
|
107
|
+
while (el) {
|
|
108
|
+
if (el.tagName.toLowerCase() === 'dispatch-renderer')
|
|
109
|
+
depth += 1;
|
|
110
|
+
el = el.parentElement;
|
|
111
|
+
}
|
|
112
|
+
this.depth = depth;
|
|
113
|
+
this.updateHostAttributes();
|
|
114
|
+
}
|
|
72
115
|
disconnectedCallback() {
|
|
73
116
|
super.disconnectedCallback();
|
|
74
117
|
this.touched = false;
|
|
@@ -488,6 +488,11 @@ declare class DispatchRenderer extends FASTElement {
|
|
|
488
488
|
createRenderer: () => void;
|
|
489
489
|
onBlur(): void;
|
|
490
490
|
get determinedRenderer(): any;
|
|
491
|
+
depth: number;
|
|
492
|
+
private computeHostClass;
|
|
493
|
+
private computeHostPart;
|
|
494
|
+
private updateHostAttributes;
|
|
495
|
+
connectedCallback(): void;
|
|
491
496
|
disconnectedCallback(): void;
|
|
492
497
|
}
|
|
493
498
|
|
|
@@ -1299,6 +1304,10 @@ export declare class Form extends Form_base {
|
|
|
1299
1304
|
* @internal
|
|
1300
1305
|
*/
|
|
1301
1306
|
onChange(event: CustomEvent): void;
|
|
1307
|
+
/**
|
|
1308
|
+
* @internal
|
|
1309
|
+
*/
|
|
1310
|
+
connectedCallback(): void;
|
|
1302
1311
|
/**
|
|
1303
1312
|
* @internal
|
|
1304
1313
|
*/
|
|
@@ -1690,7 +1699,10 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
1690
1699
|
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
1691
1700
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
1692
1701
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
1693
|
-
ontouchmove
|
|
1702
|
+
ontouchmove? /**
|
|
1703
|
+
* Builds the commit payload for the form submission.
|
|
1704
|
+
* @internal
|
|
1705
|
+
*/: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
1694
1706
|
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
1695
1707
|
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
1696
1708
|
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
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.451.2-FUI-2550.
|
|
4
|
+
"version": "14.451.2-FUI-2550.4",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@genesislcap/foundation-testing": "14.451.2-FUI-2550.
|
|
63
|
-
"@genesislcap/genx": "14.451.2-FUI-2550.
|
|
64
|
-
"@genesislcap/rollup-builder": "14.451.2-FUI-2550.
|
|
65
|
-
"@genesislcap/ts-builder": "14.451.2-FUI-2550.
|
|
66
|
-
"@genesislcap/uvu-playwright-builder": "14.451.2-FUI-2550.
|
|
67
|
-
"@genesislcap/vite-builder": "14.451.2-FUI-2550.
|
|
68
|
-
"@genesislcap/webpack-builder": "14.451.2-FUI-2550.
|
|
62
|
+
"@genesislcap/foundation-testing": "14.451.2-FUI-2550.4",
|
|
63
|
+
"@genesislcap/genx": "14.451.2-FUI-2550.4",
|
|
64
|
+
"@genesislcap/rollup-builder": "14.451.2-FUI-2550.4",
|
|
65
|
+
"@genesislcap/ts-builder": "14.451.2-FUI-2550.4",
|
|
66
|
+
"@genesislcap/uvu-playwright-builder": "14.451.2-FUI-2550.4",
|
|
67
|
+
"@genesislcap/vite-builder": "14.451.2-FUI-2550.4",
|
|
68
|
+
"@genesislcap/webpack-builder": "14.451.2-FUI-2550.4",
|
|
69
69
|
"@types/json-schema": "^7.0.11",
|
|
70
70
|
"@types/papaparse": "^5.3.14"
|
|
71
71
|
},
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@genesislcap/foundation-comms": "14.451.2-FUI-2550.
|
|
86
|
-
"@genesislcap/foundation-criteria": "14.451.2-FUI-2550.
|
|
87
|
-
"@genesislcap/foundation-logger": "14.451.2-FUI-2550.
|
|
88
|
-
"@genesislcap/foundation-notifications": "14.451.2-FUI-2550.
|
|
89
|
-
"@genesislcap/foundation-ui": "14.451.2-FUI-2550.
|
|
90
|
-
"@genesislcap/foundation-utils": "14.451.2-FUI-2550.
|
|
85
|
+
"@genesislcap/foundation-comms": "14.451.2-FUI-2550.4",
|
|
86
|
+
"@genesislcap/foundation-criteria": "14.451.2-FUI-2550.4",
|
|
87
|
+
"@genesislcap/foundation-logger": "14.451.2-FUI-2550.4",
|
|
88
|
+
"@genesislcap/foundation-notifications": "14.451.2-FUI-2550.4",
|
|
89
|
+
"@genesislcap/foundation-ui": "14.451.2-FUI-2550.4",
|
|
90
|
+
"@genesislcap/foundation-utils": "14.451.2-FUI-2550.4",
|
|
91
91
|
"@json-schema-tools/dereferencer": "^1.6.1",
|
|
92
92
|
"@jsonforms/core": "^3.2.1",
|
|
93
93
|
"@microsoft/fast-components": "2.30.6",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
111
|
"customElements": "dist/custom-elements.json",
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "eec1ec9a43449a08439095922d329f5fe851b50e"
|
|
113
113
|
}
|