@webtypen/webframez-core 0.2.39 → 0.2.41

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.
@@ -16,7 +16,7 @@ export type DataBuilderSchema = {
16
16
  [key: string]: any;
17
17
  };
18
18
  newDataHandler?: Function;
19
- canDelete: any;
19
+ canDelete?: any;
20
20
  };
21
21
  export type DataBuilderType = {
22
22
  key: string;
@@ -63,10 +63,11 @@ class DataBuilder {
63
63
  return __awaiter(this, void 0, void 0, function* () {
64
64
  const out = {};
65
65
  for (let key in fields) {
66
- if (fields[key].type === "object") {
67
- out[key] =
68
- typeof fields[key].schema === "object" && Object.keys(fields[key].schema).length > 0
69
- ? Object.assign({}, (yield this.getFieldsFrontend(fields[key].schema, payload))) : fields[key];
66
+ if (false && fields[key].type === "object") {
67
+ // out[key] =
68
+ // typeof fields[key].schema === "object" && Object.keys(fields[key].schema).length > 0
69
+ // ? { ...(await this.getFieldsFrontend(fields[key].schema, payload)) }
70
+ // : fields[key];
70
71
  }
71
72
  else {
72
73
  out[key] =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.2.39",
3
+ "version": "0.2.41",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@ export type DataBuilderSchema = {
15
15
  events?: { [key: string]: any };
16
16
  fields: { [key: string]: any };
17
17
  newDataHandler?: Function;
18
- canDelete: any;
18
+ canDelete?: any;
19
19
  };
20
20
 
21
21
  export type DataBuilderType = {
@@ -95,11 +95,11 @@ export class DataBuilder {
95
95
  async getFieldsFrontend(fields: any, payload?: any) {
96
96
  const out: any = {};
97
97
  for (let key in fields) {
98
- if (fields[key].type === "object") {
99
- out[key] =
100
- typeof fields[key].schema === "object" && Object.keys(fields[key].schema).length > 0
101
- ? { ...(await this.getFieldsFrontend(fields[key].schema, payload)) }
102
- : fields[key];
98
+ if (false && fields[key].type === "object") {
99
+ // out[key] =
100
+ // typeof fields[key].schema === "object" && Object.keys(fields[key].schema).length > 0
101
+ // ? { ...(await this.getFieldsFrontend(fields[key].schema, payload)) }
102
+ // : fields[key];
103
103
  } else {
104
104
  out[key] =
105
105
  typeof fields[key].schema === "object" && Object.keys(fields[key].schema).length > 0