nuudel-core 0.3.34 → 0.3.35

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.
@@ -144,7 +144,7 @@ const get_columns = async (formType, listname, ParentObject = '') => {
144
144
  let flds = Object.keys(fields || {});
145
145
  for (let i = 0; i < flds.length; i++) {
146
146
  let key = flds[i];
147
- let Type = 'object', FieldType = 'Text', Description = '', Choices = [], Children = [], json = undefined, IsArray = false, keyboardType = 'default', Required = false, defaultValue = undefined;
147
+ let Type = 'object', FieldType = 'Text', Description = '', Choices = [], Children = [], json = undefined, IsArray = false, keyboardType = 'default', Required = false, DefaultValue = undefined;
148
148
  if (obj.required &&
149
149
  (obj.required instanceof Array || Array.isArray(obj.required))) {
150
150
  Required = obj.required.indexOf(key) >= 0;
@@ -184,10 +184,10 @@ const get_columns = async (formType, listname, ParentObject = '') => {
184
184
  let fieldKey = ((_d = (_c = fields[key]) === null || _c === void 0 ? void 0 : _c.properties) === null || _d === void 0 ? void 0 : _d.return) || fields[key];
185
185
  if (fieldKey === null || fieldKey === void 0 ? void 0 : fieldKey.default) {
186
186
  if (fieldKey.default === 'null') {
187
- defaultValue = null;
187
+ DefaultValue = null;
188
188
  }
189
189
  else {
190
- defaultValue = fieldKey.default;
190
+ DefaultValue = fieldKey.default;
191
191
  }
192
192
  }
193
193
  switch ((fieldKey === null || fieldKey === void 0 ? void 0 : fieldKey.$ref) || ((_e = fieldKey === null || fieldKey === void 0 ? void 0 : fieldKey.items) === null || _e === void 0 ? void 0 : _e.$ref)) {
@@ -302,7 +302,7 @@ const get_columns = async (formType, listname, ParentObject = '') => {
302
302
  ParentObject,
303
303
  IsArray,
304
304
  Children,
305
- defaultValue,
305
+ DefaultValue,
306
306
  });
307
307
  }
308
308
  }
@@ -138,7 +138,7 @@ const get_columns = async (formType, listname, ParentObject = '') => {
138
138
  let flds = Object.keys(fields || {});
139
139
  for (let i = 0; i < flds.length; i++) {
140
140
  let key = flds[i];
141
- let Type = 'object', FieldType = 'Text', Description = '', Choices = [], Children = [], json = undefined, IsArray = false, keyboardType = 'default', Required = false, defaultValue = undefined;
141
+ let Type = 'object', FieldType = 'Text', Description = '', Choices = [], Children = [], json = undefined, IsArray = false, keyboardType = 'default', Required = false, DefaultValue = undefined;
142
142
  if (obj.required &&
143
143
  (obj.required instanceof Array || Array.isArray(obj.required))) {
144
144
  Required = obj.required.indexOf(key) >= 0;
@@ -178,10 +178,10 @@ const get_columns = async (formType, listname, ParentObject = '') => {
178
178
  let fieldKey = fields[key]?.properties?.return || fields[key];
179
179
  if (fieldKey?.default) {
180
180
  if (fieldKey.default === 'null') {
181
- defaultValue = null;
181
+ DefaultValue = null;
182
182
  }
183
183
  else {
184
- defaultValue = fieldKey.default;
184
+ DefaultValue = fieldKey.default;
185
185
  }
186
186
  }
187
187
  switch (fieldKey?.$ref || fieldKey?.items?.$ref) {
@@ -296,7 +296,7 @@ const get_columns = async (formType, listname, ParentObject = '') => {
296
296
  ParentObject,
297
297
  IsArray,
298
298
  Children,
299
- defaultValue,
299
+ DefaultValue,
300
300
  });
301
301
  }
302
302
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuudel-core",
3
- "version": "0.3.34",
3
+ "version": "0.3.35",
4
4
  "description": "Web components for react with material UI",
5
5
  "main": "build/main/index.js",
6
6
  "typings": "build/main/index.d.ts",