@genesislcap/foundation-forms 14.451.2-FUI-2550.2 → 14.451.2-FUI-2550.5

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 (29) hide show
  1. package/dist/custom-elements.json +64 -5
  2. package/dist/dts/form.styles.d.ts.map +1 -1
  3. package/dist/dts/jsonforms/renderers/CategorizationWrapperRenderer.d.ts +2 -0
  4. package/dist/dts/jsonforms/renderers/CategorizationWrapperRenderer.d.ts.map +1 -1
  5. package/dist/dts/jsonforms/renderers/ControlWrapperRenderer.d.ts.map +1 -1
  6. package/dist/dts/jsonforms/renderers/LayoutFormGridRenderer.d.ts.map +1 -1
  7. package/dist/dts/jsonforms/renderers/LayoutGroupRenderer.d.ts.map +1 -1
  8. package/dist/dts/jsonforms/renderers/LayoutHorizontalRenderer.d.ts.map +1 -1
  9. package/dist/dts/jsonforms/renderers/LayoutVertical2ColumnsRenderer.d.ts.map +1 -1
  10. package/dist/dts/jsonforms/renderers/VerticalCategorizationWrapperRenderer.d.ts.map +1 -1
  11. package/dist/dts/jsonforms/renderers/dispatch-renderer.d.ts +4 -0
  12. package/dist/dts/jsonforms/renderers/dispatch-renderer.d.ts.map +1 -1
  13. package/dist/dts/types.d.ts +10 -0
  14. package/dist/dts/types.d.ts.map +1 -1
  15. package/dist/esm/form.styles.js +48 -0
  16. package/dist/esm/jsonforms/renderers/CategorizationWrapperRenderer.js +11 -6
  17. package/dist/esm/jsonforms/renderers/ControlWrapperRenderer.js +3 -1
  18. package/dist/esm/jsonforms/renderers/LayoutFormGridRenderer.js +1 -7
  19. package/dist/esm/jsonforms/renderers/LayoutGroupRenderer.js +2 -12
  20. package/dist/esm/jsonforms/renderers/LayoutHorizontalRenderer.js +2 -7
  21. package/dist/esm/jsonforms/renderers/LayoutRenderer.js +2 -2
  22. package/dist/esm/jsonforms/renderers/LayoutVertical2ColumnsRenderer.js +2 -8
  23. package/dist/esm/jsonforms/renderers/NumberControlRenderer.js +1 -1
  24. package/dist/esm/jsonforms/renderers/StringControlRenderer.js +2 -2
  25. package/dist/esm/jsonforms/renderers/VerticalCategorizationWrapperRenderer.js +12 -6
  26. package/dist/esm/jsonforms/renderers/dispatch-renderer.js +29 -0
  27. package/dist/foundation-forms.api.json +27 -0
  28. package/dist/foundation-forms.d.ts +14 -0
  29. package/package.json +15 -15
@@ -2236,6 +2236,29 @@
2236
2236
  "kind": "javascript-module",
2237
2237
  "path": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts",
2238
2238
  "declarations": [
2239
+ {
2240
+ "kind": "function",
2241
+ "name": "computeCategoryClassName",
2242
+ "return": {
2243
+ "type": {
2244
+ "text": "string"
2245
+ }
2246
+ },
2247
+ "parameters": [
2248
+ {
2249
+ "name": "category",
2250
+ "type": {
2251
+ "text": "UiSchemaElement"
2252
+ }
2253
+ },
2254
+ {
2255
+ "name": "data",
2256
+ "type": {
2257
+ "text": "any"
2258
+ }
2259
+ }
2260
+ ]
2261
+ },
2239
2262
  {
2240
2263
  "kind": "variable",
2241
2264
  "name": "tabControlIconStyles",
@@ -2328,6 +2351,14 @@
2328
2351
  }
2329
2352
  ],
2330
2353
  "exports": [
2354
+ {
2355
+ "kind": "js",
2356
+ "name": "computeCategoryClassName",
2357
+ "declaration": {
2358
+ "name": "computeCategoryClassName",
2359
+ "module": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts"
2360
+ }
2361
+ },
2331
2362
  {
2332
2363
  "kind": "js",
2333
2364
  "name": "tabControlIconStyles",
@@ -3050,7 +3081,7 @@
3050
3081
  {
3051
3082
  "kind": "variable",
3052
3083
  "name": "LayoutFormGridRendererTemplate",
3053
- "default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div\n style=\"\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 8px;\n \"\n >\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`"
3084
+ "default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div class=\"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
3085
  },
3055
3086
  {
3056
3087
  "kind": "variable",
@@ -3087,7 +3118,7 @@
3087
3118
  {
3088
3119
  "kind": "variable",
3089
3120
  "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 style=\"color: var(--neutral-foreground-rest);\n padding-bottom: calc(var(--design-unit) * 1px);\n margin-bottom: calc(var(--design-unit) * 4px);\n font-weight: 600;\n font-size: var(--type-ramp-base-font-size);\n display: flex;\n justify-content: space-between;\"\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`"
3121
+ "default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n hideLabel: true,\n innerTemplate: html<DispatchRenderer>`\n <div class=\"fl-group-layout\">\n ${when(\n (x) => x.control.label,\n html<DispatchRenderer>`\n <div for=\"${(x) => x.control.path + '-wrapper'}\" class=\"fl-group-label\">\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
3122
  },
3092
3123
  {
3093
3124
  "kind": "variable",
@@ -3124,7 +3155,7 @@
3124
3155
  {
3125
3156
  "kind": "variable",
3126
3157
  "name": "LayoutHorizontalRendererTemplate",
3127
- "default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div\n style=\"\n display: flex;\n flex-direction: row;\n gap: 10px\"\n >\n ${repeat(\n (x) => x.control.uischema.elements,\n html`\n <dispatch-renderer\n style=\"flex: 1; min-width: 0\"\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`"
3158
+ "default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div class=\"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
3159
  },
3129
3160
  {
3130
3161
  "kind": "variable",
@@ -3180,7 +3211,7 @@
3180
3211
  {
3181
3212
  "kind": "variable",
3182
3213
  "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`"
3214
+ "default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div class=\"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
3215
  },
3185
3216
  {
3186
3217
  "kind": "variable",
@@ -3314,7 +3345,7 @@
3314
3345
  {
3315
3346
  "kind": "variable",
3316
3347
  "name": "LayoutVertical2ColumnsRendererTemplate",
3317
- "default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div\n style=\"\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: space-between;\"\n >\n ${repeat(\n (x) => x.control.uischema.elements,\n html`\n <div style=\"width: 49%\">\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`"
3348
+ "default": "html<DispatchRenderer>`\n <template>\n ${layoutWrapperTemplate({\n innerTemplate: html<DispatchRenderer>`\n <div class=\"fl-2-column-layout\">\n ${repeat(\n (x) => x.control.uischema.elements,\n html`\n <div class=\"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
3349
  },
3319
3350
  {
3320
3351
  "kind": "variable",
@@ -4382,6 +4413,34 @@
4382
4413
  "kind": "field",
4383
4414
  "name": "determinedRenderer",
4384
4415
  "readonly": true
4416
+ },
4417
+ {
4418
+ "kind": "field",
4419
+ "name": "depth",
4420
+ "type": {
4421
+ "text": "number"
4422
+ },
4423
+ "default": "1"
4424
+ },
4425
+ {
4426
+ "kind": "method",
4427
+ "name": "computeHostClass",
4428
+ "privacy": "private",
4429
+ "return": {
4430
+ "type": {
4431
+ "text": "string"
4432
+ }
4433
+ }
4434
+ },
4435
+ {
4436
+ "kind": "method",
4437
+ "name": "updateHostAttributes",
4438
+ "privacy": "private",
4439
+ "return": {
4440
+ "type": {
4441
+ "text": "void"
4442
+ }
4443
+ }
4385
4444
  }
4386
4445
  ],
4387
4446
  "superclass": {
@@ -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,iDAoFhC,CAAC"}
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,4 +1,6 @@
1
1
  import { FASTElement } from '@microsoft/fast-element';
2
+ import { UiSchemaElement } from '../../types';
3
+ export declare function computeCategoryClassName(category: UiSchemaElement, data: any): string;
2
4
  export declare const tabControlIconStyles: import("@microsoft/fast-element").ElementStyles;
3
5
  export declare const CategorizationWrapperRendererTemplate: (prefix?: string) => import("@microsoft/fast-element").ViewTemplate<CategorizationWrapper, any>;
4
6
  export declare class CategorizationWrapper extends FASTElement {
@@ -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,+EAqDhB,CAAC;AAsBF,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
+ {"version":3,"file":"CategorizationWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/CategorizationWrapperRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,WAAW,EAIZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAA2C,eAAe,EAA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AAQ,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
+ {"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,iDAA6C,CAAC;AAE/E,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,CA2D/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,uEAiC1C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,GAIjC,CAAC"}
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,uEA8CvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,GAItC,CAAC"}
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,uEAoCvC,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,uEAiC5C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,GAInC,CAAC"}
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,uEAmClD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,GAIzC,CAAC"}
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,uFA4DhB,CAAC;AAgEF,qBAQa,6BAA8B,SAAQ,qBAAqB;IAChE,MAAM,EAAE,MAAM,CAAM;IAE1B,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAMjD,iBAAiB;CAIlB"}
1
+ {"version":3,"file":"VerticalCategorizationWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/VerticalCategorizationWrapperRenderer.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,qBAAqB,EAA4B,MAAM,iCAAiC,CAAC;AAElG,eAAO,MAAM,6CAA6C,GACxD,eAAe,uFAmEhB,CAAC;AA6DF,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,10 @@ 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 updateHostAttributes;
23
+ connectedCallback(): void;
20
24
  disconnectedCallback(): void;
21
25
  }
22
26
  //# 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;IAGA,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,oBAAoB;CAKrB"}
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,oBAAoB;IAM5B,iBAAiB;IAYjB,oBAAoB;CAKrB"}
@@ -541,6 +541,16 @@ export interface StandardRendererOptions {
541
541
  * @public
542
542
  */
543
543
  useNumberControl?: boolean;
544
+ /**
545
+ * CSS class name(s) to apply to the element's rendered root.
546
+ * - On a control, applied to its wrapper root element.
547
+ * - On a categorization `Category`, applied to its tab header.
548
+ *
549
+ * Either a static string, or a function that receives the entire form data
550
+ * and returns the class name(s) to apply.
551
+ * @public
552
+ */
553
+ className?: string | ((data: any) => string);
544
554
  }
545
555
  /**
546
556
  * Configuration options for the segmented control renderer.
@@ -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,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EAC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rappers ────────────────────────────────────────────────────── */
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
  foundation-form {
93
141
  background: ${SystemColors.Canvas};
@@ -1,5 +1,13 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { html, css, observable, customElement, FASTElement, repeat, when, } from '@microsoft/fast-element';
3
+ export function computeCategoryClassName(category, data) {
4
+ var _a, _b;
5
+ const className = (_a = category === null || category === void 0 ? void 0 : category.options) === null || _a === void 0 ? void 0 : _a.className;
6
+ if (typeof className === 'function') {
7
+ return (_b = className(data)) !== null && _b !== void 0 ? _b : '';
8
+ }
9
+ return className !== null && className !== void 0 ? className : '';
10
+ }
3
11
  export const tabControlIconStyles = css `
4
12
  .tab-control-icon {
5
13
  margin-left: 3px;
@@ -8,9 +16,9 @@ export const tabControlIconStyles = css `
8
16
  `;
9
17
  export const CategorizationWrapperRendererTemplate = (prefix = 'zero') => html `
10
18
  <template>
11
- <${prefix}-tabs class="tabs-container" @change=${(x, ctx) => x.handleTabChange(ctx.event)}>
19
+ <${prefix}-tabs appearance="secondary" class="tabs-container" @change=${(x, ctx) => x.handleTabChange(ctx.event)}>
12
20
  ${repeat((x) => x.control.uischema.elements, html `
13
- <${prefix}-tab class="tab-control">
21
+ <${prefix}-tab appearance="secondary" class="tab-control">
14
22
  ${(x, ctx) => { var _a; return (_a = x.label) !== null && _a !== void 0 ? _a : `Category ${ctx.index + 1}`; }}
15
23
  ${when((x, ctx) => ctx.parent.hasCategoryError(ctx.index), html `
16
24
  <${prefix}-icon class="tab-control-icon" name="circle-exclamation"></${prefix}-icon>
@@ -22,6 +30,7 @@ export const CategorizationWrapperRendererTemplate = (prefix = 'zero') => html `
22
30
  ${when((x, ctx) => ctx.parent.isMounted(ctx.index), html `
23
31
  ${repeat((x) => x.options.childElements, html `
24
32
  <dispatch-renderer
33
+ class="fl-categorization-item"
25
34
  :submitted=${(x, ctx) => ctx.parentContext.parent.form.submitted}
26
35
  :dispatch=${(x, ctx) => ctx.parentContext.parent.form.dispatch}
27
36
  :jsonforms=${(x, ctx) => ctx.parentContext.parent.form.jsonforms}
@@ -47,10 +56,6 @@ const styles = css `
47
56
  border-bottom: none;
48
57
  }
49
58
 
50
- categorization-wrapper .tab-control {
51
- box-shadow: none;
52
- }
53
-
54
59
  categorization-wrapper .tab-control .tab-control-icon {
55
60
  margin-left: 3px;
56
61
  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;
@@ -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">
16
10
  ${repeat((x) => x.control.uischema.elements, html `
17
11
  <dispatch-renderer
18
12
  :submitted=${(x, ctx) => ctx.parent.submitted}
@@ -7,19 +7,9 @@ export const LayoutGroupRendererTemplate = html `
7
7
  ${layoutWrapperTemplate({
8
8
  hideLabel: true,
9
9
  innerTemplate: html `
10
- <div>
10
+ <div class="fl-group-layout">
11
11
  ${when((x) => x.control.label, html `
12
- <div
13
- for="${(x) => x.control.path + '-wrapper'}"
14
- class="group-label"
15
- style="color: var(--neutral-foreground-rest);
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;"
22
- >
12
+ <div for="${(x) => x.control.path + '-wrapper'}" class="fl-group-label">
23
13
  ${(x) => x.control.label}
24
14
  </div>
25
15
  `)}
@@ -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">
15
10
  ${repeat((x) => x.control.uischema.elements, html `
16
11
  <dispatch-renderer
17
- style="flex: 1; min-width: 0"
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 style="color: var(--neutral-foreground-hint);">${(x) => x.control.label}</div>
18
+ <div class="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">
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">
16
10
  ${repeat((x) => x.control.uischema.elements, html `
17
- <div style="width: 49%">
11
+ <div class="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 || x.control.label}
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 || x.control.label}
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 || x.control.label}
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}
@@ -1,6 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { attr, css, customElement, html, repeat, when, } from '@microsoft/fast-element';
3
- import { CategorizationWrapper } from './CategorizationWrapperRenderer';
3
+ import { classNames } from '@microsoft/fast-web-utilities';
4
+ import { CategorizationWrapper, computeCategoryClassName } from './CategorizationWrapperRenderer';
4
5
  export const VerticalCategorizationWrapperRendererTemplate = (prefix = 'zero') => html `
5
6
  <template>
6
7
  <${prefix}-tabs
@@ -9,7 +10,14 @@ export const VerticalCategorizationWrapperRendererTemplate = (prefix = 'zero') =
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
+ <${prefix}-tab
14
+ class="${(x, ctx) => {
15
+ var _a, _b, _c;
16
+ const custom = computeCategoryClassName(x, (_c = (_b = (_a = ctx.parent.form) === null || _a === void 0 ? void 0 : _a.jsonforms) === null || _b === void 0 ? void 0 : _b.core) === null || _c === void 0 ? void 0 : _c.data);
17
+ return classNames('tab-control', [custom, !!custom]);
18
+ }}"
19
+ appearance="secondary"
20
+ >
13
21
  <span class="tab-label">
14
22
  ${(x, ctx) => { var _a; return (_a = x.label) !== null && _a !== void 0 ? _a : `Category ${ctx.index + 1}`; }}
15
23
  ${when((x, ctx) => ctx.parent.hasCategoryError(ctx.index), html `
@@ -23,6 +31,7 @@ export const VerticalCategorizationWrapperRendererTemplate = (prefix = 'zero') =
23
31
  ${when((x, ctx) => ctx.parent.isMounted(ctx.index), html `
24
32
  ${repeat((x) => x.options.childElements, html `
25
33
  <dispatch-renderer
34
+ class="fl-vertical-categorization-item"
26
35
  :submitted=${(x, ctx) => ctx.parentContext.parent.form.submitted}
27
36
  :dispatch=${(x, ctx) => ctx.parentContext.parent.form.dispatch}
28
37
  :jsonforms=${(x, ctx) => ctx.parentContext.parent.form.jsonforms}
@@ -63,10 +72,7 @@ const styles = css `
63
72
 
64
73
  /* Reset the column layout above on horizontal categorization-wrappers nested inside the vertical one (e.g. Detailed View). */
65
74
  vertical-categorization-wrapper categorization-wrapper .tabs-container::part(tablist) {
66
- flex-direction: row;
67
- width: auto;
68
- min-height: auto;
69
- border-right: none;
75
+ display: grid;
70
76
  }
71
77
 
72
78
  vertical-categorization-wrapper .tabs-container .tab-control {
@@ -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,33 @@ 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
+ updateHostAttributes() {
85
+ const preserved = Array.from(this.classList).filter((c) => !c.startsWith('dr-'));
86
+ const drClasses = this.computeHostClass().split(' ');
87
+ this.setAttribute('class', [...preserved, ...drClasses].join(' '));
88
+ }
89
+ connectedCallback() {
90
+ super.connectedCallback();
91
+ let depth = 1;
92
+ let el = this.parentElement;
93
+ while (el) {
94
+ if (el.tagName.toLowerCase() === 'dispatch-renderer')
95
+ depth += 1;
96
+ el = el.parentElement;
97
+ }
98
+ this.depth = depth;
99
+ this.updateHostAttributes();
100
+ }
72
101
  disconnectedCallback() {
73
102
  super.disconnectedCallback();
74
103
  this.touched = false;
@@ -4016,6 +4016,33 @@
4016
4016
  "name": "StandardRendererOptions",
4017
4017
  "preserveMemberOrder": false,
4018
4018
  "members": [
4019
+ {
4020
+ "kind": "PropertySignature",
4021
+ "canonicalReference": "@genesislcap/foundation-forms!StandardRendererOptions#className:member",
4022
+ "docComment": "/**\n * CSS class name(s) to apply to the element's rendered root. - On a control, applied to its wrapper root element. - On a categorization `Category`, applied to its tab header.\n *\n * Either a static string, or a function that receives the entire form data and returns the class name(s) to apply.\n *\n * @public\n */\n",
4023
+ "excerptTokens": [
4024
+ {
4025
+ "kind": "Content",
4026
+ "text": "className?: "
4027
+ },
4028
+ {
4029
+ "kind": "Content",
4030
+ "text": "string | ((data: any) => string)"
4031
+ },
4032
+ {
4033
+ "kind": "Content",
4034
+ "text": ";"
4035
+ }
4036
+ ],
4037
+ "isReadonly": false,
4038
+ "isOptional": true,
4039
+ "releaseTag": "Public",
4040
+ "name": "className",
4041
+ "propertyTypeTokenRange": {
4042
+ "startIndex": 1,
4043
+ "endIndex": 2
4044
+ }
4045
+ },
4019
4046
  {
4020
4047
  "kind": "PropertySignature",
4021
4048
  "canonicalReference": "@genesislcap/foundation-forms!StandardRendererOptions#hidden:member",
@@ -488,6 +488,10 @@ 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 updateHostAttributes;
494
+ connectedCallback(): void;
491
495
  disconnectedCallback(): void;
492
496
  }
493
497
 
@@ -2168,6 +2172,16 @@ export declare interface StandardRendererOptions {
2168
2172
  * @public
2169
2173
  */
2170
2174
  useNumberControl?: boolean;
2175
+ /**
2176
+ * CSS class name(s) to apply to the element's rendered root.
2177
+ * - On a control, applied to its wrapper root element.
2178
+ * - On a categorization `Category`, applied to its tab header.
2179
+ *
2180
+ * Either a static string, or a function that receives the entire form data
2181
+ * and returns the class name(s) to apply.
2182
+ * @public
2183
+ */
2184
+ className?: string | ((data: any) => string);
2171
2185
  }
2172
2186
 
2173
2187
  /**
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.2",
4
+ "version": "14.451.2-FUI-2550.5",
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.2",
63
- "@genesislcap/genx": "14.451.2-FUI-2550.2",
64
- "@genesislcap/rollup-builder": "14.451.2-FUI-2550.2",
65
- "@genesislcap/ts-builder": "14.451.2-FUI-2550.2",
66
- "@genesislcap/uvu-playwright-builder": "14.451.2-FUI-2550.2",
67
- "@genesislcap/vite-builder": "14.451.2-FUI-2550.2",
68
- "@genesislcap/webpack-builder": "14.451.2-FUI-2550.2",
62
+ "@genesislcap/foundation-testing": "14.451.2-FUI-2550.5",
63
+ "@genesislcap/genx": "14.451.2-FUI-2550.5",
64
+ "@genesislcap/rollup-builder": "14.451.2-FUI-2550.5",
65
+ "@genesislcap/ts-builder": "14.451.2-FUI-2550.5",
66
+ "@genesislcap/uvu-playwright-builder": "14.451.2-FUI-2550.5",
67
+ "@genesislcap/vite-builder": "14.451.2-FUI-2550.5",
68
+ "@genesislcap/webpack-builder": "14.451.2-FUI-2550.5",
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.2",
86
- "@genesislcap/foundation-criteria": "14.451.2-FUI-2550.2",
87
- "@genesislcap/foundation-logger": "14.451.2-FUI-2550.2",
88
- "@genesislcap/foundation-notifications": "14.451.2-FUI-2550.2",
89
- "@genesislcap/foundation-ui": "14.451.2-FUI-2550.2",
90
- "@genesislcap/foundation-utils": "14.451.2-FUI-2550.2",
85
+ "@genesislcap/foundation-comms": "14.451.2-FUI-2550.5",
86
+ "@genesislcap/foundation-criteria": "14.451.2-FUI-2550.5",
87
+ "@genesislcap/foundation-logger": "14.451.2-FUI-2550.5",
88
+ "@genesislcap/foundation-notifications": "14.451.2-FUI-2550.5",
89
+ "@genesislcap/foundation-ui": "14.451.2-FUI-2550.5",
90
+ "@genesislcap/foundation-utils": "14.451.2-FUI-2550.5",
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": "b92c01a659248d27f0ea5a920e37c4dfb7b4259f"
112
+ "gitHead": "584095ad6c048a6a671b267427b04d9caad3fcff"
113
113
  }