@json-layout/core 1.15.1 → 1.15.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/package.json
CHANGED
|
@@ -199,7 +199,7 @@ export function makeSkeletonNode (
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
if (schema.oneOf) {
|
|
202
|
-
errorMessage.oneOf = options.messages.errorOneOf
|
|
202
|
+
errorMessage.oneOf = errorMessage.oneOf ?? options.messages.errorOneOf
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
if (type === 'object') {
|
|
@@ -480,10 +480,10 @@ export function makeSkeletonNode (
|
|
|
480
480
|
for (const propertyKey of node.propertyKeys) {
|
|
481
481
|
if (schema?.required?.includes(propertyKey)) {
|
|
482
482
|
errorMessage.required = rawSchema.errorMessage.required ?? {}
|
|
483
|
-
errorMessage.required[propertyKey] = options.messages.errorRequired
|
|
483
|
+
errorMessage.required[propertyKey] = errorMessage.required[propertyKey] ?? options.messages.errorRequired
|
|
484
484
|
}
|
|
485
485
|
if (schema.dependentRequired && Object.keys(schema.dependentRequired).includes(propertyKey)) {
|
|
486
|
-
errorMessage.dependentRequired = options.messages.errorRequired
|
|
486
|
+
errorMessage.dependentRequired = errorMessage.dependentRequired ?? options.messages.errorRequired
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
}
|
package/src/state/state-node.js
CHANGED
|
@@ -635,13 +635,12 @@ export function createStateNode (
|
|
|
635
635
|
// duplicate active child at the end of the list in case of dialog/menu edition
|
|
636
636
|
if (context.activatedItems[fullKey] !== undefined && (layout.listEditMode === 'menu' || layout.listEditMode === 'dialog')) {
|
|
637
637
|
const i = context.activatedItems[fullKey]
|
|
638
|
-
// const childKey = 'active-' + i
|
|
639
638
|
const activeChild = createStateNode(
|
|
640
639
|
context,
|
|
641
640
|
options,
|
|
642
641
|
compiledLayout,
|
|
643
642
|
i,
|
|
644
|
-
`${fullKey}
|
|
643
|
+
`${fullKey}/${i}`,
|
|
645
644
|
fullKey,
|
|
646
645
|
`${dataPath}/${i}`,
|
|
647
646
|
dataPath,
|
|
@@ -1 +1 @@
|
|
|
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,sBAAsB,iBAC3C,OAAO,YAAY,EAAE,gBAAgB,kBACrC,OAAO,aAAa,EAAE,cAAc,OACpC,MAAM,GAAG,MAAM,WACf,MAAM,iBACN,MAAM,GAAG,IAAI,YACb,MAAM,kBACN,MAAM,GAAG,IAAI,YACb,OAAO,aAAa,EAAE,YAAY,mBAClC,OAAO,yBAAyB,EAAE,KAAK,GAAG,IAAI,iBAC9C,OAAO,oBAAoB,EAAE,OAAO,QACpC,GAAG,iBACH,OAAO,qBAAqB,EAAE,uBAAuB,GAAG,IAAI,mBAC5D,OAAO,YAAY,EAAE,eAAe,eACpC,OAAO,YAAY,EAAE,SAAS,GAC5B,OAAO,YAAY,EAAE,SAAS,
|
|
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,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