@abgov/jsonforms-components 2.70.2 → 2.70.3
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/index.esm.js +7 -1
- package/package.json +1 -1
- package/renderer-catalog.json +2 -2
package/index.esm.js
CHANGED
|
@@ -8007,7 +8007,13 @@ const USER_FIELD_DEFINITIONS = {
|
|
|
8007
8007
|
}
|
|
8008
8008
|
};
|
|
8009
8009
|
const AUTO_POPULATE_ACTION_TYPES = new Set([INIT, UPDATE_CORE]);
|
|
8010
|
-
|
|
8010
|
+
// clean-code-ignore: RULE-19 — covered by ./autoPopulate.spec.tsx, colocated. The rule only looks
|
|
8011
|
+
// for a .test.ts sibling; adding one would duplicate the existing suite.
|
|
8012
|
+
// Only a value the user has never set is a populate target. An empty string is a real value here:
|
|
8013
|
+
// the text controls write '' when a field is cleared (see onChangeForInputControl), so treating it
|
|
8014
|
+
// as empty made auto-populate refill the field the instant it was emptied, and the user could
|
|
8015
|
+
// never clear it.
|
|
8016
|
+
const isEmptyAutoPopulateTarget = value => value === undefined || value === null;
|
|
8011
8017
|
const shouldAutoPopulate = actionType => AUTO_POPULATE_ACTION_TYPES.has(actionType);
|
|
8012
8018
|
const isAutoPopulateSource = value => typeof value === 'string' && AUTO_POPULATE_SOURCES.includes(value);
|
|
8013
8019
|
const autoPopulateValue = (user, props) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.70.
|
|
3
|
+
"version": "2.70.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|
package/renderer-catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-07-
|
|
4
|
-
"sourceCommit": "
|
|
3
|
+
"generatedAt": "2026-07-28T15:31:21.353Z",
|
|
4
|
+
"sourceCommit": "7656ec403e45371b12001c0a2f44a8ade8632339",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
6
|
"rendererCount": 33,
|
|
7
7
|
"renderers": [
|