jedison 0.2.2 → 0.2.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/CHANGELOG.md +4 -0
- package/README.md +1 -3
- package/dist/cjs/jedison.cjs +1 -1
- package/dist/cjs/jedison.cjs.map +1 -1
- package/dist/esm/jedison.js +10 -6
- package/dist/esm/jedison.js.map +1 -1
- package/dist/umd/jedison.umd.js +1 -1
- package/dist/umd/jedison.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/jedison.js
CHANGED
|
@@ -3729,12 +3729,14 @@ class EditorArray extends Editor {
|
|
|
3729
3729
|
}
|
|
3730
3730
|
class EditorArrayTable extends EditorArray {
|
|
3731
3731
|
static resolves(schema, refParser) {
|
|
3732
|
-
|
|
3732
|
+
let schemaItems = getSchemaItems(schema);
|
|
3733
3733
|
if (!schemaItems) {
|
|
3734
3734
|
return false;
|
|
3735
3735
|
}
|
|
3736
|
-
|
|
3737
|
-
|
|
3736
|
+
if (refParser) {
|
|
3737
|
+
schemaItems = refParser.expand(schemaItems);
|
|
3738
|
+
}
|
|
3739
|
+
const itemType = getSchemaType(schemaItems);
|
|
3738
3740
|
if (!itemType) {
|
|
3739
3741
|
return false;
|
|
3740
3742
|
}
|
|
@@ -3760,9 +3762,11 @@ class EditorArrayTable extends EditorArray {
|
|
|
3760
3762
|
});
|
|
3761
3763
|
th.appendChild(label);
|
|
3762
3764
|
table.thead.appendChild(th);
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3765
|
+
let schemaItems = getSchemaItems(this.instance.schema);
|
|
3766
|
+
if (this.instance.jedison.refParser) {
|
|
3767
|
+
schemaItems = this.instance.jedison.refParser.expand(schemaItems);
|
|
3768
|
+
}
|
|
3769
|
+
const itemProperties = getSchemaProperties(schemaItems);
|
|
3766
3770
|
Object.values(itemProperties).forEach((propertySchema) => {
|
|
3767
3771
|
const th2 = this.theme.getTableHeader();
|
|
3768
3772
|
if (propertySchema.title) {
|