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,
|
|
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
|
-
|
|
187
|
+
DefaultValue = null;
|
|
188
188
|
}
|
|
189
189
|
else {
|
|
190
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
181
|
+
DefaultValue = null;
|
|
182
182
|
}
|
|
183
183
|
else {
|
|
184
|
-
|
|
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
|
-
|
|
299
|
+
DefaultValue,
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
}
|