@genesislcap/foundation-forms 14.209.3-alpha-7176d01.0 → 14.210.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.
- package/dist/custom-elements.json +20 -1
- package/dist/dts/jsonforms/renderers/ConnectedMultiselectControlRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/ConnectedSelectControlRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/ControlWrapperRenderer.d.ts +2 -0
- package/dist/dts/jsonforms/renderers/ControlWrapperRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/DateControlRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/EnumControlRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/FilterNumberControlRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/NumberControlRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/StringArrayControlRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/StringControlRenderer.d.ts.map +1 -1
- package/dist/dts/types.d.ts +5 -0
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/esm/jsonforms/renderers/ConnectedMultiselectControlRenderer.js +1 -0
- package/dist/esm/jsonforms/renderers/ConnectedSelectControlRenderer.js +1 -0
- package/dist/esm/jsonforms/renderers/ControlWrapperRenderer.js +14 -1
- package/dist/esm/jsonforms/renderers/DateControlRenderer.js +1 -0
- package/dist/esm/jsonforms/renderers/EnumControlRenderer.js +1 -0
- package/dist/esm/jsonforms/renderers/FilterDateControlRenderer.js +1 -1
- package/dist/esm/jsonforms/renderers/FilterNumberControlRenderer.js +2 -1
- package/dist/esm/jsonforms/renderers/NumberControlRenderer.js +1 -0
- package/dist/esm/jsonforms/renderers/StringArrayControlRenderer.js +1 -0
- package/dist/esm/jsonforms/renderers/StringControlRenderer.js +1 -0
- package/dist/foundation-forms.api.json +1 -1
- package/dist/foundation-forms.d.ts +5 -0
- package/docs/api/foundation-forms.standardrendereroptions.md +1 -0
- package/docs/api-report.md +3 -2
- package/package.json +14 -14
|
@@ -1503,7 +1503,7 @@
|
|
|
1503
1503
|
{
|
|
1504
1504
|
"kind": "variable",
|
|
1505
1505
|
"name": "ControlWrapperRendererTemplate",
|
|
1506
|
-
"default": "html`\n <template>\n ${when(\n (x) => x.control?.visible,\n html`\n <div\n class=${(x) =>\n classNames(\n ['wrapperRoot', true],\n ['labelLeft', x.jsonForms?.core?.uischema?.options?.labelPlacement === 'left'],\n )}\n id=${(x) => x.control.path + '-wrapper'}\n data-test-id=${(x) => x.control.path + '-wrapper'}\n >\n ${when(\n (x) => !x.hideLabel,\n html`\n <div for=\"${(x) => x.control.path + '-wrapper'}\" class=\"label\">\n ${(x) => x.computedLabel}\n </div>\n `,\n )}\n\n <div class=\"wrapper\">\n <slot></slot>\n </div>\n <div class=\"${(x) => (x.control.errors && x.touched ? 'error' : 'description')}\">\n ${(x) =>\n x.control.errors && x.touched\n ? x.control.errors\n : x.showDescription\n ? x.control.description\n : ''}\n </div>\n </div>\n `,\n )}\n </template>\n`"
|
|
1506
|
+
"default": "html`\n <template>\n ${when(\n (x) => x.control?.visible,\n html`\n <div\n class=${(x) =>\n classNames(\n ['wrapperRoot', true],\n ['labelLeft', x.jsonForms?.core?.uischema?.options?.labelPlacement === 'left'],\n )}\n id=${(x) => x.control.path + '-wrapper'}\n data-test-id=${(x) => x.control.path + '-wrapper'}\n >\n ${when(\n (x) => !x.hideLabel,\n html`\n <div for=\"${(x) => x.control.path + '-wrapper'}\" class=\"label\">\n <span>\n ${(x) => x.computedLabel}${when(\n (x) => x.control.uischema?.options?.tooltip,\n (x) => x.getPrefixedTooltip,\n )}\n </span>\n </div>\n `,\n )}\n\n <div class=\"wrapper\">\n <slot></slot>\n </div>\n <div class=\"${(x) => (x.control.errors && x.touched ? 'error' : 'description')}\">\n ${(x) =>\n x.control.errors && x.touched\n ? x.control.errors\n : x.showDescription\n ? x.control.description\n : ''}\n </div>\n </div>\n `,\n )}\n </template>\n`"
|
|
1507
1507
|
},
|
|
1508
1508
|
{
|
|
1509
1509
|
"kind": "class",
|
|
@@ -1533,6 +1533,13 @@
|
|
|
1533
1533
|
},
|
|
1534
1534
|
"default": "false"
|
|
1535
1535
|
},
|
|
1536
|
+
{
|
|
1537
|
+
"kind": "field",
|
|
1538
|
+
"name": "prefix",
|
|
1539
|
+
"type": {
|
|
1540
|
+
"text": "string"
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1536
1543
|
{
|
|
1537
1544
|
"kind": "field",
|
|
1538
1545
|
"name": "showDescription",
|
|
@@ -1542,6 +1549,11 @@
|
|
|
1542
1549
|
"kind": "field",
|
|
1543
1550
|
"name": "computedLabel",
|
|
1544
1551
|
"readonly": true
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"kind": "field",
|
|
1555
|
+
"name": "getPrefixedTooltip",
|
|
1556
|
+
"readonly": true
|
|
1545
1557
|
}
|
|
1546
1558
|
],
|
|
1547
1559
|
"attributes": [
|
|
@@ -1552,6 +1564,13 @@
|
|
|
1552
1564
|
},
|
|
1553
1565
|
"default": "false",
|
|
1554
1566
|
"fieldName": "hideLabel"
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"name": "prefix",
|
|
1570
|
+
"type": {
|
|
1571
|
+
"text": "string"
|
|
1572
|
+
},
|
|
1573
|
+
"fieldName": "prefix"
|
|
1555
1574
|
}
|
|
1556
1575
|
],
|
|
1557
1576
|
"superclass": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectedMultiselectControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/ConnectedMultiselectControlRenderer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,2CAA2C,YAC9C,MAAM,
|
|
1
|
+
{"version":3,"file":"ConnectedMultiselectControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/ConnectedMultiselectControlRenderer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,2CAA2C,YAC9C,MAAM,0EA8Bf,CAAC;AAEF,eAAO,MAAM,wCAAwC,EAAE,aAMtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectedSelectControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/ConnectedSelectControlRenderer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,sCAAsC,YACzC,MAAM,
|
|
1
|
+
{"version":3,"file":"ConnectedSelectControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/ConnectedSelectControlRenderer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,sCAAsC,YACzC,MAAM,0EAoCf,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,GAMjD,CAAC"}
|
|
@@ -5,7 +5,9 @@ export declare class ControlWrapper extends FASTElement {
|
|
|
5
5
|
jsonForms: any;
|
|
6
6
|
touched: boolean;
|
|
7
7
|
hideLabel: boolean;
|
|
8
|
+
prefix: string;
|
|
8
9
|
get showDescription(): boolean;
|
|
9
10
|
get computedLabel(): string;
|
|
11
|
+
get getPrefixedTooltip(): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
10
12
|
}
|
|
11
13
|
//# sourceMappingURL=ControlWrapperRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/ControlWrapperRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EAML,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AAGjC,eAAO,MAAM,8BAA8B,
|
|
1
|
+
{"version":3,"file":"ControlWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/ControlWrapperRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EAML,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AAGjC,eAAO,MAAM,8BAA8B,0DA2C1C,CAAC;AAqDF,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;IAErB,IACI,eAAe,YAOlB;IAED,IACI,aAAa,WAMhB;IAED,IACI,kBAAkB,6DAGrB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/DateControlRenderer.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,2BAA2B,YAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"DateControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/DateControlRenderer.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,2BAA2B,YAAY,MAAM,6DAyCzD,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,GAMtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnumControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/EnumControlRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,cAAc,EAEd,iBAAiB,EACjB,cAAc,EAEd,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAQzB,eAAO,MAAM,0BAA0B,UAC9B,cAAc,YACX,iBAAiB,GAAG,cAAc,KAC3C,mBAAmB,GAAG,cAwBxB,CAAC;AAwBF,eAAO,MAAM,2BAA2B,YAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"EnumControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/EnumControlRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,cAAc,EAEd,iBAAiB,EACjB,cAAc,EAEd,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAQzB,eAAO,MAAM,0BAA0B,UAC9B,cAAc,YACX,iBAAiB,GAAG,cAAc,KAC3C,mBAAmB,GAAG,cAwBxB,CAAC;AAwBF,eAAO,MAAM,2BAA2B,YAAY,MAAM,6DA2BzD,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,GAMtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterNumberControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/FilterNumberControlRenderer.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mCAAmC,YAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"FilterNumberControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/FilterNumberControlRenderer.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mCAAmC,YAAY,MAAM,6DAuDjE,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,GAM9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/NumberControlRenderer.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6BAA6B,YAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"NumberControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/NumberControlRenderer.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6BAA6B,YAAY,MAAM,6DA4B3D,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,GAMxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringArrayControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/StringArrayControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAWvD,eAAO,MAAM,qCAAqC,YACxC,MAAM,
|
|
1
|
+
{"version":3,"file":"StringArrayControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/StringArrayControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAWvD,eAAO,MAAM,qCAAqC,YACxC,MAAM,0EAuBf,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,aAM9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/StringControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AASvD,eAAO,MAAM,gCAAgC,YAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"StringControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/StringControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AASvD,eAAO,MAAM,gCAAgC,YAAY,MAAM,0EAwC9D,CAAC;AACF,eAAO,MAAM,6BAA6B,uEAEzC,CAAC"}
|
package/dist/dts/types.d.ts
CHANGED
|
@@ -155,6 +155,11 @@ export type StandardRendererOptions = {
|
|
|
155
155
|
i18n?: {
|
|
156
156
|
[key: string]: any;
|
|
157
157
|
};
|
|
158
|
+
/**
|
|
159
|
+
* Setting this property allows you to enable tooltip next to the label.
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
tooltip?: string;
|
|
158
163
|
};
|
|
159
164
|
/**
|
|
160
165
|
* All configuration options that are available.
|
package/dist/dts/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE/D;;;KAGK;AACL,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,gBAAgB,GAChB,wBAAwB,GACxB,gBAAgB,GAChB,OAAO,GACP,SAAS,GACT,kBAAkB,CAAC;AAEvB;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,MAAM,CAAC;AAEhD;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IACrC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB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ACzB,oBAAoB,GACpB,6BAA6B,GAC7B,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,uBAAuB,CAAC;AAE5B;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;SAGK;IACL,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,KAAK,IAAI,GAAG;IACV,SAAS,EAAE,oBAAoB,CAAC;IAChC,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;;SAGK;IACL,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B,CAAC;AAEF,cAAc;AACd,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,YAAY,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;IAC9C,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,KAAK,mBAAmB,CAAC;CACrF,CAAC"}
|
|
@@ -15,7 +15,9 @@ export const ControlWrapperRendererTemplate = html `
|
|
|
15
15
|
>
|
|
16
16
|
${when((x) => !x.hideLabel, html `
|
|
17
17
|
<div for="${(x) => x.control.path + '-wrapper'}" class="label">
|
|
18
|
-
|
|
18
|
+
<span>
|
|
19
|
+
${(x) => x.computedLabel}${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; }, (x) => x.getPrefixedTooltip)}
|
|
20
|
+
</span>
|
|
19
21
|
</div>
|
|
20
22
|
`)}
|
|
21
23
|
|
|
@@ -94,6 +96,11 @@ let ControlWrapper = class ControlWrapper extends FASTElement {
|
|
|
94
96
|
get computedLabel() {
|
|
95
97
|
return computeLabel(this.control.label, this.control.required, !!this.control.config.hideRequiredAsterisk);
|
|
96
98
|
}
|
|
99
|
+
get getPrefixedTooltip() {
|
|
100
|
+
var _a, _b;
|
|
101
|
+
return html `
|
|
102
|
+
<${this.prefix}-icon tooltip="${(_b = (_a = this.control.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.tooltip}" tooltip-id="${this.control.path + '-tooltip'}"></${this.prefix}-icon>`;
|
|
103
|
+
}
|
|
97
104
|
};
|
|
98
105
|
__decorate([
|
|
99
106
|
observable
|
|
@@ -107,12 +114,18 @@ __decorate([
|
|
|
107
114
|
__decorate([
|
|
108
115
|
attr({ mode: 'boolean', attribute: 'hide-label' })
|
|
109
116
|
], ControlWrapper.prototype, "hideLabel", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
attr
|
|
119
|
+
], ControlWrapper.prototype, "prefix", void 0);
|
|
110
120
|
__decorate([
|
|
111
121
|
volatile
|
|
112
122
|
], ControlWrapper.prototype, "showDescription", null);
|
|
113
123
|
__decorate([
|
|
114
124
|
volatile
|
|
115
125
|
], ControlWrapper.prototype, "computedLabel", null);
|
|
126
|
+
__decorate([
|
|
127
|
+
volatile
|
|
128
|
+
], ControlWrapper.prototype, "getPrefixedTooltip", null);
|
|
116
129
|
ControlWrapper = __decorate([
|
|
117
130
|
customElement({
|
|
118
131
|
name: 'control-wrapper',
|
|
@@ -4,7 +4,7 @@ import { isOneOfDate } from '../testers/isDate';
|
|
|
4
4
|
import { DATE_CONTROL_RANK } from './RenderersRanks';
|
|
5
5
|
export const DateControlRendererTemplate = (prefix = 'zero') => html `
|
|
6
6
|
<template>
|
|
7
|
-
<control-wrapper :control=${(x) => x.control} ?submitted=${(x) => x.submitted}>
|
|
7
|
+
<control-wrapper :control=${(x) => x.control} ?submitted=${(x) => x.submitted} prefix="${prefix}">
|
|
8
8
|
<${prefix}-text-field
|
|
9
9
|
:value=${(x) => {
|
|
10
10
|
var _a, _b;
|
|
@@ -4,7 +4,8 @@ import { isOneOfNumber } from '../testers/isOneOfNumber';
|
|
|
4
4
|
import { NUMBER_CONTROL_RANK } from './RenderersRanks';
|
|
5
5
|
export const FilterNumberControlRendererTemplate = (prefix = 'zero') => html `
|
|
6
6
|
<template>
|
|
7
|
-
<control-wrapper :control=${(x) => x.control} ?submitted=${(x) => x.submitted}
|
|
7
|
+
<control-wrapper :control=${(x) => x.control} ?submitted=${(x) => x.submitted} prefix="${prefix}"
|
|
8
|
+
>
|
|
8
9
|
<${prefix}-text-field
|
|
9
10
|
:value=${(x) => { var _a; return (((_a = x.control.data) === null || _a === void 0 ? void 0 : _a.min) === undefined ? '' : x.control.data.min); }}
|
|
10
11
|
@change=${(x, c) => {
|
|
@@ -9,6 +9,7 @@ export const NumberControlRendererTemplate = (prefix = 'zero') => html `
|
|
|
9
9
|
:jsonForms=${(x) => x.jsonforms}
|
|
10
10
|
:touched=${(x) => x.touched}
|
|
11
11
|
?submitted=${(x) => x.submitted}
|
|
12
|
+
prefix="${prefix}"
|
|
12
13
|
>
|
|
13
14
|
<${prefix}-number-field
|
|
14
15
|
withFormatting=${(x) => { var _a; return (((_a = x.control.uischema.options) === null || _a === void 0 ? void 0 : _a.withoutFormatting) ? false : true); }}
|
|
@@ -13,6 +13,7 @@ export const getStringArrayControlRendererTemplate = (prefix = 'zero') => html `
|
|
|
13
13
|
:jsonForms=${(x) => x.jsonforms}
|
|
14
14
|
:touched=${(x) => x.touched}
|
|
15
15
|
?submitted=${(x) => x.submitted}
|
|
16
|
+
prefix="${prefix}"
|
|
16
17
|
>
|
|
17
18
|
<${prefix}-text-field
|
|
18
19
|
:value=${(x) => { var _a; return ((_a = x.control.data) === null || _a === void 0 ? void 0 : _a.toString()) || ''; }}
|
|
@@ -12,6 +12,7 @@ export const getStringControlRendererTemplate = (prefix = 'zero') => html `
|
|
|
12
12
|
:jsonForms=${(x) => x.jsonforms}
|
|
13
13
|
:touched=${(x) => x.touched}
|
|
14
14
|
?submitted=${(x) => x.submitted}
|
|
15
|
+
prefix="${prefix}"
|
|
15
16
|
>
|
|
16
17
|
${whenElse((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.textarea); }, html `
|
|
17
18
|
<${prefix}-text-field
|
package/docs/api-report.md
CHANGED
|
@@ -225,6 +225,7 @@ export type StandardRendererOptions = {
|
|
|
225
225
|
i18n?: {
|
|
226
226
|
[key: string]: any;
|
|
227
227
|
};
|
|
228
|
+
tooltip?: string;
|
|
228
229
|
};
|
|
229
230
|
|
|
230
231
|
// @public
|
|
@@ -274,8 +275,8 @@ export type UiSchemaOptions = StepperOrientationOptions | LabelPlacementOptions;
|
|
|
274
275
|
|
|
275
276
|
// Warnings were encountered during analysis:
|
|
276
277
|
//
|
|
277
|
-
// src/types.ts:
|
|
278
|
-
// src/types.ts:
|
|
278
|
+
// src/types.ts:239:3 - (ae-forgotten-export) The symbol "Rule" needs to be exported by the entry point index.d.ts
|
|
279
|
+
// src/types.ts:273:3 - (ae-forgotten-export) The symbol "DispatchRenderer" needs to be exported by the entry point index.d.ts
|
|
279
280
|
|
|
280
281
|
// (No @packageDocumentation comment for this package)
|
|
281
282
|
|
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.
|
|
4
|
+
"version": "14.210.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -48,22 +48,22 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@genesislcap/foundation-testing": "14.
|
|
52
|
-
"@genesislcap/genx": "14.
|
|
53
|
-
"@genesislcap/rollup-builder": "14.
|
|
54
|
-
"@genesislcap/ts-builder": "14.
|
|
55
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
56
|
-
"@genesislcap/vite-builder": "14.
|
|
57
|
-
"@genesislcap/webpack-builder": "14.
|
|
51
|
+
"@genesislcap/foundation-testing": "14.210.0",
|
|
52
|
+
"@genesislcap/genx": "14.210.0",
|
|
53
|
+
"@genesislcap/rollup-builder": "14.210.0",
|
|
54
|
+
"@genesislcap/ts-builder": "14.210.0",
|
|
55
|
+
"@genesislcap/uvu-playwright-builder": "14.210.0",
|
|
56
|
+
"@genesislcap/vite-builder": "14.210.0",
|
|
57
|
+
"@genesislcap/webpack-builder": "14.210.0",
|
|
58
58
|
"@types/json-schema": "^7.0.11",
|
|
59
59
|
"rimraf": "^5.0.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@genesislcap/foundation-comms": "14.
|
|
63
|
-
"@genesislcap/foundation-criteria": "14.
|
|
64
|
-
"@genesislcap/foundation-logger": "14.
|
|
65
|
-
"@genesislcap/foundation-ui": "14.
|
|
66
|
-
"@genesislcap/foundation-utils": "14.
|
|
62
|
+
"@genesislcap/foundation-comms": "14.210.0",
|
|
63
|
+
"@genesislcap/foundation-criteria": "14.210.0",
|
|
64
|
+
"@genesislcap/foundation-logger": "14.210.0",
|
|
65
|
+
"@genesislcap/foundation-ui": "14.210.0",
|
|
66
|
+
"@genesislcap/foundation-utils": "14.210.0",
|
|
67
67
|
"@json-schema-tools/dereferencer": "^1.6.1",
|
|
68
68
|
"@jsonforms/core": "^3.2.1",
|
|
69
69
|
"@microsoft/fast-components": "^2.30.6",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
86
|
"customElements": "dist/custom-elements.json",
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "e6ff3fa96c74159051b2e0e3f1ccbc4806a22822"
|
|
88
88
|
}
|