@json-layout/core 1.12.4 → 1.13.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/package.json +2 -2
- package/src/compile/skeleton-node.js +11 -6
- package/src/i18n/de.js +2 -0
- package/src/i18n/en.js +2 -0
- package/src/i18n/fr.js +2 -0
- package/src/i18n/nl.js +2 -0
- package/src/i18n/types.ts +2 -0
- package/src/state/index.js +8 -2
- package/src/state/state-node.js +29 -10
- package/types/compile/skeleton-node.d.ts.map +1 -1
- package/types/i18n/de.d.ts +2 -0
- package/types/i18n/en.d.ts +2 -0
- package/types/i18n/fr.d.ts +2 -0
- package/types/i18n/nl.d.ts +2 -0
- package/types/i18n/types.d.ts +2 -0
- package/types/i18n/types.d.ts.map +1 -1
- package/types/state/index.d.ts +2 -1
- package/types/state/index.d.ts.map +1 -1
- package/types/state/state-node.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@json-layout/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Compilation and state management utilities for JSON Layout.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"homepage": "https://github.com/json-layout/json-layout#readme",
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@json-layout/vocabulary": "^2.
|
|
79
|
+
"@json-layout/vocabulary": "^2.7.0"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"ajv": "^8.17.1",
|
|
@@ -45,13 +45,20 @@ export function makeSkeletonNode (
|
|
|
45
45
|
let schema = rawSchema
|
|
46
46
|
let refPointer = pointer
|
|
47
47
|
let refFragment
|
|
48
|
+
|
|
49
|
+
// improve on ajv error messages based on ajv-errors (https://ajv.js.org/packages/ajv-errors.html)
|
|
50
|
+
let errorMessage = rawSchema.errorMessage
|
|
51
|
+
|
|
48
52
|
rawSchema.__pointer = pointer
|
|
49
53
|
if (schema.$ref) {
|
|
50
54
|
[refFragment, schemaId, refPointer] = getJSONRef(sourceSchemaId, schema.$ref)
|
|
51
55
|
refFragment.__pointer = refPointer
|
|
52
56
|
schema = { ...rawSchema, ...refFragment }
|
|
57
|
+
if (errorMessage && refFragment.errorMessage) throw new Error('errorMessage cannot be defined both on ref source and target')
|
|
58
|
+
errorMessage = refFragment.errorMessage = refFragment.errorMessage ?? errorMessage ?? {}
|
|
53
59
|
delete schema.$ref
|
|
54
60
|
}
|
|
61
|
+
errorMessage = rawSchema.errorMessage = errorMessage ?? {}
|
|
55
62
|
const nullableType = mergeNullableSubSchema(schema)
|
|
56
63
|
if (nullableType) {
|
|
57
64
|
schema = nullableType
|
|
@@ -63,8 +70,6 @@ export function makeSkeletonNode (
|
|
|
63
70
|
if (knownType) type = knownType
|
|
64
71
|
if (nullableType) nullable = true
|
|
65
72
|
|
|
66
|
-
// improve on ajv error messages based on ajv-errors (https://ajv.js.org/packages/ajv-errors.html)
|
|
67
|
-
rawSchema.errorMessage = rawSchema.errorMessage ?? {}
|
|
68
73
|
if (!normalizedLayouts[pointer]) {
|
|
69
74
|
const normalizationResult = normalizeLayoutFragment(
|
|
70
75
|
key,
|
|
@@ -192,7 +197,7 @@ export function makeSkeletonNode (
|
|
|
192
197
|
}
|
|
193
198
|
|
|
194
199
|
if (schema.oneOf) {
|
|
195
|
-
|
|
200
|
+
errorMessage.oneOf = options.messages.errorOneOf
|
|
196
201
|
}
|
|
197
202
|
|
|
198
203
|
if (type === 'object') {
|
|
@@ -472,11 +477,11 @@ export function makeSkeletonNode (
|
|
|
472
477
|
|
|
473
478
|
for (const propertyKey of node.propertyKeys) {
|
|
474
479
|
if (schema?.required?.includes(propertyKey)) {
|
|
475
|
-
|
|
476
|
-
|
|
480
|
+
errorMessage.required = rawSchema.errorMessage.required ?? {}
|
|
481
|
+
errorMessage.required[propertyKey] = options.messages.errorRequired
|
|
477
482
|
}
|
|
478
483
|
if (schema.dependentRequired && Object.keys(schema.dependentRequired).includes(propertyKey)) {
|
|
479
|
-
|
|
484
|
+
errorMessage.dependentRequired = options.messages.errorRequired
|
|
480
485
|
}
|
|
481
486
|
}
|
|
482
487
|
}
|
package/src/i18n/de.js
CHANGED
package/src/i18n/en.js
CHANGED
package/src/i18n/fr.js
CHANGED
package/src/i18n/nl.js
CHANGED
package/src/i18n/types.ts
CHANGED
package/src/state/index.js
CHANGED
|
@@ -467,6 +467,11 @@ export class StatefulLayout {
|
|
|
467
467
|
input (node, data, activateKey) {
|
|
468
468
|
logDataBinding('received input event from node', node, data, activateKey)
|
|
469
469
|
|
|
470
|
+
if (node.layout.comp === 'list') {
|
|
471
|
+
// a input of the whole list signals potential reordering, deactivate all items otherwise the keys might be mixed up
|
|
472
|
+
this.deactivateItem(node, true)
|
|
473
|
+
}
|
|
474
|
+
|
|
470
475
|
// debounced data from the same node is cancelled if a new input is received
|
|
471
476
|
// debounced data from another node is applied immediately
|
|
472
477
|
if (this.debouncedInput) {
|
|
@@ -701,8 +706,9 @@ export class StatefulLayout {
|
|
|
701
706
|
|
|
702
707
|
/**
|
|
703
708
|
* @param {StateNode} node
|
|
709
|
+
* @param {boolean} skipUpdateState
|
|
704
710
|
*/
|
|
705
|
-
deactivateItem (node) {
|
|
711
|
+
deactivateItem (node, skipUpdateState = false) {
|
|
706
712
|
logActivatedItems(node.fullKey, 'deactivate item explicitly')
|
|
707
713
|
// also deactivate children oneOf for example
|
|
708
714
|
this.activatedItems = produce(this.activatedItems, draft => {
|
|
@@ -713,7 +719,7 @@ export class StatefulLayout {
|
|
|
713
719
|
}
|
|
714
720
|
}
|
|
715
721
|
})
|
|
716
|
-
this.updateState()
|
|
722
|
+
if (!skipUpdateState) this.updateState()
|
|
717
723
|
}
|
|
718
724
|
|
|
719
725
|
handleAutofocus () {
|
package/src/state/state-node.js
CHANGED
|
@@ -129,7 +129,7 @@ const produceStateNodeData = produce((draft, parentDataPath, children, additiona
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
if (additionalPropertiesErrors) {
|
|
132
|
+
if (additionalPropertiesErrors?.length) {
|
|
133
133
|
for (const error of additionalPropertiesErrors) {
|
|
134
134
|
if (error.instancePath !== parentDataPath) continue
|
|
135
135
|
if (error.keyword === 'additionalProperties') {
|
|
@@ -233,6 +233,17 @@ const matchChildError = (compiledLayout, error, skeleton, dataPath, parentDataPa
|
|
|
233
233
|
return false
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
+
/**
|
|
237
|
+
* should match any error related to the data node not matter the origin in the schema
|
|
238
|
+
* @param {import('ajv').ErrorObject} error
|
|
239
|
+
* @param {string} dataPath
|
|
240
|
+
* @returns {boolean}
|
|
241
|
+
*/
|
|
242
|
+
const matchDataPathError = (error, dataPath) => {
|
|
243
|
+
const originalError = error.params?.errors?.[0] ?? error
|
|
244
|
+
return originalError.instancePath.startsWith(dataPath)
|
|
245
|
+
}
|
|
246
|
+
|
|
236
247
|
/**
|
|
237
248
|
* should match if an error belongs to a child of the current node but the child was not displayed
|
|
238
249
|
* @param {import('ajv').ErrorObject} error
|
|
@@ -246,7 +257,7 @@ const matchPointerError = (error, pointer1, pointer2, dataPath, parentDataPath)
|
|
|
246
257
|
const originalError = error.params?.errors?.[0] ?? error
|
|
247
258
|
if (!originalError.instancePath.startsWith(dataPath)) return false
|
|
248
259
|
if (originalError.schemaPath === pointer1 ||
|
|
249
|
-
originalError.schemaPath.startsWith(
|
|
260
|
+
originalError.schemaPath.startsWith(pointer1 + '/') ||
|
|
250
261
|
originalError.schemaPath === pointer2 ||
|
|
251
262
|
originalError.schemaPath.startsWith(pointer2 + '/')
|
|
252
263
|
) return true
|
|
@@ -478,11 +489,12 @@ export function createStateNode (
|
|
|
478
489
|
// or the one matching the specified discriminator
|
|
479
490
|
// or the one that is valid with current data
|
|
480
491
|
let activeChildTreeIndex = /** @type {number} */context.activatedItems[fullKey]
|
|
492
|
+
const validChildTreeIndex = skeleton.childrenTrees?.findIndex((childTree) => compiledLayout.validates[compiledLayout.skeletonTrees[childTree].refPointer](data))
|
|
481
493
|
if (activeChildTreeIndex === undefined) {
|
|
482
|
-
if (skeleton.discriminator !== undefined) {
|
|
494
|
+
if (skeleton.discriminator !== undefined && validChildTreeIndex === -1) {
|
|
483
495
|
activeChildTreeIndex = skeleton.childrenTrees?.findIndex((childTree) => skeleton.discriminator !== undefined && data?.[skeleton.discriminator] !== undefined && data[skeleton.discriminator] === compiledLayout.skeletonTrees[childTree].discriminatorValue)
|
|
484
496
|
} else {
|
|
485
|
-
activeChildTreeIndex =
|
|
497
|
+
activeChildTreeIndex = validChildTreeIndex
|
|
486
498
|
}
|
|
487
499
|
}
|
|
488
500
|
|
|
@@ -501,16 +513,23 @@ export function createStateNode (
|
|
|
501
513
|
}
|
|
502
514
|
return true
|
|
503
515
|
})
|
|
504
|
-
|
|
505
|
-
|
|
516
|
+
|
|
517
|
+
if (context.additionalPropertiesErrors?.length) {
|
|
518
|
+
// exclude the additional properties errors from the other children
|
|
506
519
|
context.additionalPropertiesErrors = context.additionalPropertiesErrors?.filter(error => {
|
|
507
|
-
//
|
|
508
|
-
if (
|
|
509
|
-
|
|
510
|
-
|
|
520
|
+
// keep errors from other parts of the data
|
|
521
|
+
if (!matchDataPathError(error, dataPath)) return true
|
|
522
|
+
// keep errors from the active child's schema
|
|
523
|
+
if (matchPointerError(error, activeChildNode.pointer, activeChildNode.refPointer, dataPath, parentDataPath)) return true
|
|
524
|
+
// remove errors from other children
|
|
525
|
+
if (matchChildError(compiledLayout, error, skeleton, dataPath, parentDataPath) && !matchPointerError(error, activeChildNode.pointer, activeChildNode.refPointer, dataPath, parentDataPath)) return false
|
|
526
|
+
// ignore unevaluatedProperties errors from higher level that can be triggered because the active element is not yet valid
|
|
527
|
+
// TODO: should the last check include comparing with activeChildNode.propertyKeys ?
|
|
528
|
+
if (validChildTreeIndex === -1) return false
|
|
511
529
|
return true
|
|
512
530
|
})
|
|
513
531
|
}
|
|
532
|
+
|
|
514
533
|
const activeChildKey = `${fullKey}/${activeChildTreeIndex}`
|
|
515
534
|
if (context.autofocusTarget === fullKey) context.autofocusTarget = activeChildKey
|
|
516
535
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton-node.d.ts","sourceRoot":"","sources":["../../src/compile/skeleton-node.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;GAkBG;AACH,4CAlBW,GAAG,kBACH,MAAM,WACN,OAAO,YAAY,EAAE,cAAc,cACnC,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,iBACxD,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,CAAC,iBACjD,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,CAAC,oBACjD,MAAM,EAAE,oBACR,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,qBACxB,MAAM,CAAC,MAAM,EAAE,OAAO,yBAAyB,EAAE,gBAAgB,CAAC,eAClE,OAAO,yBAAyB,EAAE,UAAU,EAAE,OAC9C,MAAM,GAAG,MAAM,WACf,MAAM,YACN,OAAO,cACP,MAAM,cACN,OAAO,cACP,MAAM,GACJ,OAAO,YAAY,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"skeleton-node.d.ts","sourceRoot":"","sources":["../../src/compile/skeleton-node.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;GAkBG;AACH,4CAlBW,GAAG,kBACH,MAAM,WACN,OAAO,YAAY,EAAE,cAAc,cACnC,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,iBACxD,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,CAAC,iBACjD,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,CAAC,oBACjD,MAAM,EAAE,oBACR,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,qBACxB,MAAM,CAAC,MAAM,EAAE,OAAO,yBAAyB,EAAE,gBAAgB,CAAC,eAClE,OAAO,yBAAyB,EAAE,UAAU,EAAE,OAC9C,MAAM,GAAG,MAAM,WACf,MAAM,YACN,OAAO,cACP,MAAM,cACN,OAAO,cACP,MAAM,GACJ,OAAO,YAAY,EAAE,YAAY,CAqhB7C"}
|
package/types/i18n/de.d.ts
CHANGED
package/types/i18n/en.d.ts
CHANGED
package/types/i18n/fr.d.ts
CHANGED
package/types/i18n/nl.d.ts
CHANGED
package/types/i18n/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/i18n/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAEhE,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAA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AE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,sBAAsB,GAAG,oBAAoB,CAAA"}
|
package/types/state/index.d.ts
CHANGED
|
@@ -248,8 +248,9 @@ export class StatefulLayout {
|
|
|
248
248
|
activateItem(node: StateNode, key: number): void;
|
|
249
249
|
/**
|
|
250
250
|
* @param {StateNode} node
|
|
251
|
+
* @param {boolean} skipUpdateState
|
|
251
252
|
*/
|
|
252
|
-
deactivateItem(node: StateNode): void;
|
|
253
|
+
deactivateItem(node: StateNode, skipUpdateState?: boolean): void;
|
|
253
254
|
handleAutofocus(): void;
|
|
254
255
|
}
|
|
255
256
|
export type StateNode = import("./types.js").StateNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/state/index.js"],"names":[],"mappings":";;AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,mEAAmE;AACnE,wBADW,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI,IAAI,WAAW,CACY;AAE3E,iLAAiL;AACjL,0BADW,CAAC,IAAI,EAAE,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AAE,gBAAgB;6BACrC,OAAO,YAAY,EAAE,cAAc;gCACnC,OAAO,YAAY,EAAE,iBAAiB;8BACtC,OAAO,YAAY,EAAE,eAAe;2BACpC,OAAO,YAAY,EAAE,YAAY;2BACjC,OAAO,YAAY,EAAE,YAAY;yBACjC,OAAO,YAAY,EAAE,UAAU;8BAC/B,OAAO,YAAY,EAAE,eAAe;6BACpC,OAAO,YAAY,EAAE,cAAc;iCACnC,OAAO,YAAY,EAAE,kBAAkB;6BACvC,OAAO,YAAY,EAAE,cAAc;kCACnC,OAAO,YAAY,EAAE,mBAAmB;uBACxC,OAAO,YAAY,EAAE,QAAQ;+BAC7B,OAAO,YAAY,EAAE,gBAAgB;0BACrC,OAAO,YAAY,EAAE,WAAW;8BAChC,OAAO,YAAY,EAAE,eAAe;uBACpC,OAAO,YAAY,EAAE,QAAQ;4BAC7B,OAAO,YAAY,EAAE,aAAa;uBAClC,OAAO,YAAY,EAAE,QAAQ;sBAC7B,OAAO,YAAY,EAAE,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-node.d.ts","sourceRoot":"","sources":["../../src/state/state-node.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"state-node.d.ts","sourceRoot":"","sources":["../../src/state/state-node.js"],"names":[],"mappings":"AA0QA;;;;;;;;;;;GAWG;AACH,4CAXW,OAAO,aAAa,EAAE,kBAAkB,EAAE,cAC1C,OAAO,yBAAyB,EAAE,UAAU,QAC5C,GAAG,WACH,OAAO,YAAY,EAAE,gBAAgB,WACrC,OAAO,oBAAoB,EAAE,OAAO,UACpC,OAAO,yBAAyB,EAAE,cAAc,aAChD,MAAM,CAAC,MAAM,EAAE,OAAO,KAAK,EAAE,gBAAgB,CAAC,YAC9C,OAAO,iBACP,OAAO,qBAAqB,EAAE,uBAAuB,GAAG,IAAI,GAC1D,GAAG,CAsBf;AAiCD;;;;;;;;;;;;;;;;;;GAkBG;AACH,yCAjBW,OAAO,YAAY,EAAE,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