@m1z23r/ngx-ui 1.1.51 → 1.1.52
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.
|
@@ -7226,7 +7226,16 @@ class JsonTreeComponent {
|
|
|
7226
7226
|
};
|
|
7227
7227
|
objectFmt = (node) => {
|
|
7228
7228
|
const meta = node.data;
|
|
7229
|
-
|
|
7229
|
+
if (!meta)
|
|
7230
|
+
return null;
|
|
7231
|
+
if (meta.key === null) {
|
|
7232
|
+
const label = this.rootLabel();
|
|
7233
|
+
return label ? safeStringify({ [label]: meta.value }) : safeStringify(meta.value);
|
|
7234
|
+
}
|
|
7235
|
+
if (typeof meta.key === 'string') {
|
|
7236
|
+
return safeStringify({ [meta.key]: meta.value });
|
|
7237
|
+
}
|
|
7238
|
+
return safeStringify([meta.value]);
|
|
7230
7239
|
};
|
|
7231
7240
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: JsonTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7232
7241
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.1", type: JsonTreeComponent, isStandalone: true, selector: "ui-json-tree", inputs: { json: { classPropertyName: "json", publicName: "json", isSignal: true, isRequired: false, transformFunction: null }, rootLabel: { classPropertyName: "rootLabel", publicName: "rootLabel", isSignal: true, isRequired: false, transformFunction: null }, pathRoot: { classPropertyName: "pathRoot", publicName: "pathRoot", isSignal: true, isRequired: false, transformFunction: null }, expandDepth: { classPropertyName: "expandDepth", publicName: "expandDepth", isSignal: true, isRequired: false, transformFunction: null }, indent: { classPropertyName: "indent", publicName: "indent", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, expandOnClick: { classPropertyName: "expandOnClick", publicName: "expandOnClick", isSignal: true, isRequired: false, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { nodeClick: "nodeClick", nodeContextAction: "nodeContextAction" }, ngImport: i0, template: `
|