@genesislcap/foundation-forms 14.445.1 → 14.445.2
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 +1058 -1058
- package/dist/dts/jsonforms/json-forms.d.ts.map +1 -1
- package/dist/esm/jsonforms/json-forms.js +15 -7
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-forms.d.ts","sourceRoot":"","sources":["../../../src/jsonforms/json-forms.ts"],"names":[],"mappings":"AACA,OAAO,EASL,8BAA8B,EAE9B,aAAa,EAGb,eAAe,EACf,YAAY,EACZ,cAAc,EACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAIL,WAAW,EAKZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,GAAG,EAAE,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAmCzC;;;;;;GAMG;AACH,qBAUa,SAAU,SAAQ,WAAW;IACxC,OAAO,CAAC,UAAU,CAAS;IAE3B,IAAI,SAAS,IAAI,OAAO,CAGvB;IAED,IAAI,SAAS,CAAC,KAAK,EAAE,OAAO,EAG3B;IAEW,MAAM,MAAC;IACnB,aAAa;IAGD,SAAS,MAAC;IACV,IAAI,MAAC;IACL,YAAY,MAAC;IAEb,MAAM,MAAC;IACnB,aAAa;
|
|
1
|
+
{"version":3,"file":"json-forms.d.ts","sourceRoot":"","sources":["../../../src/jsonforms/json-forms.ts"],"names":[],"mappings":"AACA,OAAO,EASL,8BAA8B,EAE9B,aAAa,EAGb,eAAe,EACf,YAAY,EACZ,cAAc,EACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAIL,WAAW,EAKZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,GAAG,EAAE,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAmCzC;;;;;;GAMG;AACH,qBAUa,SAAU,SAAQ,WAAW;IACxC,OAAO,CAAC,UAAU,CAAS;IAE3B,IAAI,SAAS,IAAI,OAAO,CAGvB;IAED,IAAI,SAAS,CAAC,KAAK,EAAE,OAAO,EAG3B;IAEW,MAAM,MAAC;IACnB,aAAa;IAGD,SAAS,MAAC;IACV,IAAI,MAAC;IACL,YAAY,MAAC;IAEb,MAAM,MAAC;IACnB,aAAa;IA2DD,QAAQ,EAAE,eAAe,CAAC;IACtC,eAAe;IAIH,IAAI,MAAC;IACjB,WAAW;IAkCC,SAAS,EAAE,8BAA8B,EAAE,CAAC;IACxD,gBAAgB;IAIJ,cAAc,EAAE,cAAc,CAAC;IAC3C,qBAAqB;IAIT,GAAG,EAAE,GAAG,CAAiD;IACrE,UAAU;IAIiB,QAAQ,EAAE,OAAO,CAAC;IAC7C,eAAe;IAIH,MAAM,EAAE,GAAG,CAAC;IACxB,aAAa;IAIb;;;OAGG;IACS,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAa;IACtE,wBAAwB;IAUxB;;;OAGG;IACS,UAAU,EAAE,OAAO,CAAS;IACxC,iBAAiB;IAUjB,IAAI,KAAK,IAAI,aAAa,CAuBzB;IAED,QAAQ,GAAI,QAAQ,YAAY,UAoB9B;IAEF;;;;;OAKG;IACH,QAAQ,GAAI,UAAU,eAAe,EAAE,UAAiC,KAAG,WAAW,EAAE,CAoDtF;IAEI,uBAAuB;CAQ9B"}
|
|
@@ -135,7 +135,7 @@ let JSONForms = class JSONForms extends FASTElement {
|
|
|
135
135
|
this.schemaChanged();
|
|
136
136
|
}
|
|
137
137
|
schemaChanged() {
|
|
138
|
-
var _a, _b, _c, _d;
|
|
138
|
+
var _a, _b, _c, _d, _e, _f;
|
|
139
139
|
if (!this.schema) {
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
@@ -156,21 +156,29 @@ let JSONForms = class JSONForms extends FASTElement {
|
|
|
156
156
|
}));
|
|
157
157
|
return core;
|
|
158
158
|
};
|
|
159
|
+
const previousCoreData = (_c = (_b = this.jsonforms) === null || _b === void 0 ? void 0 : _b.core) === null || _c === void 0 ? void 0 : _c.data;
|
|
159
160
|
this.jsonforms = {
|
|
160
161
|
core: initCore(),
|
|
161
162
|
config: configReducer(undefined, Actions.setConfig(this.config)),
|
|
162
|
-
i18n: i18nReducer(this.i18n, Actions.updateI18n((
|
|
163
|
+
i18n: i18nReducer(this.i18n, Actions.updateI18n((_d = this.i18n) === null || _d === void 0 ? void 0 : _d.locale, (_e = this.i18n) === null || _e === void 0 ? void 0 : _e.translate, ((_f = this.i18n) === null || _f === void 0 ? void 0 : _f.translateError) || errorTranslator)),
|
|
163
164
|
renderers: this.renderers,
|
|
164
165
|
readonly: this.readonly,
|
|
165
166
|
rowSubmitStatuses: this.rowSubmitStatuses,
|
|
166
167
|
bulkInsert: this.bulkInsert,
|
|
167
168
|
};
|
|
168
169
|
const additionalErrors = this.validate(this.uichemaToUse, this.data);
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
170
|
+
// Only notify consumers when `init` actually changed `core.data` (e.g. defaults
|
|
171
|
+
// were filled in). A bare uischema/schema swap must not re-emit `this.data` —
|
|
172
|
+
// when `<foundation-form>` mirrors the echo into its own `data` property it
|
|
173
|
+
// overwrites any concurrent data update the consumer just pushed in the same
|
|
174
|
+
// commit (FAST may process the `:uischema` binding before `:data`).
|
|
175
|
+
if (this.jsonforms.core.data !== previousCoreData) {
|
|
176
|
+
this.$emit('data-change', {
|
|
177
|
+
data: this.jsonforms.core.data,
|
|
178
|
+
errors: this.jsonforms.core.errors,
|
|
179
|
+
additionalErrors,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
174
182
|
}
|
|
175
183
|
uischemaChanged() {
|
|
176
184
|
this.schemaChanged();
|
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.445.
|
|
4
|
+
"version": "14.445.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -55,23 +55,23 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@genesislcap/foundation-testing": "14.445.
|
|
59
|
-
"@genesislcap/genx": "14.445.
|
|
60
|
-
"@genesislcap/rollup-builder": "14.445.
|
|
61
|
-
"@genesislcap/ts-builder": "14.445.
|
|
62
|
-
"@genesislcap/uvu-playwright-builder": "14.445.
|
|
63
|
-
"@genesislcap/vite-builder": "14.445.
|
|
64
|
-
"@genesislcap/webpack-builder": "14.445.
|
|
58
|
+
"@genesislcap/foundation-testing": "14.445.2",
|
|
59
|
+
"@genesislcap/genx": "14.445.2",
|
|
60
|
+
"@genesislcap/rollup-builder": "14.445.2",
|
|
61
|
+
"@genesislcap/ts-builder": "14.445.2",
|
|
62
|
+
"@genesislcap/uvu-playwright-builder": "14.445.2",
|
|
63
|
+
"@genesislcap/vite-builder": "14.445.2",
|
|
64
|
+
"@genesislcap/webpack-builder": "14.445.2",
|
|
65
65
|
"@types/json-schema": "^7.0.11",
|
|
66
66
|
"@types/papaparse": "^5.3.14"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@genesislcap/foundation-comms": "14.445.
|
|
70
|
-
"@genesislcap/foundation-criteria": "14.445.
|
|
71
|
-
"@genesislcap/foundation-logger": "14.445.
|
|
72
|
-
"@genesislcap/foundation-notifications": "14.445.
|
|
73
|
-
"@genesislcap/foundation-ui": "14.445.
|
|
74
|
-
"@genesislcap/foundation-utils": "14.445.
|
|
69
|
+
"@genesislcap/foundation-comms": "14.445.2",
|
|
70
|
+
"@genesislcap/foundation-criteria": "14.445.2",
|
|
71
|
+
"@genesislcap/foundation-logger": "14.445.2",
|
|
72
|
+
"@genesislcap/foundation-notifications": "14.445.2",
|
|
73
|
+
"@genesislcap/foundation-ui": "14.445.2",
|
|
74
|
+
"@genesislcap/foundation-utils": "14.445.2",
|
|
75
75
|
"@json-schema-tools/dereferencer": "^1.6.1",
|
|
76
76
|
"@jsonforms/core": "^3.2.1",
|
|
77
77
|
"@microsoft/fast-components": "2.30.6",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"access": "public"
|
|
94
94
|
},
|
|
95
95
|
"customElements": "dist/custom-elements.json",
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "bc0c48b46bdb022bfb6f8b88c0daca6beae97a4b"
|
|
97
97
|
}
|