saasufy-components 8.2.3 → 8.2.5
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/input-provider.js +1 -1
- package/model-input.js +1 -1
- package/package.json +1 -1
- package/utils.js +1 -1
package/input-provider.js
CHANGED
|
@@ -143,7 +143,7 @@ class InputProvider extends HTMLElement {
|
|
|
143
143
|
if (option.field === placeholder) {
|
|
144
144
|
return `<option value="" selected class="select-default-option">${option.field}</option>`;
|
|
145
145
|
}
|
|
146
|
-
return `<option value="${option.value
|
|
146
|
+
return `<option value="${option.value ?? option.field}">${option.field}</option>`;
|
|
147
147
|
})
|
|
148
148
|
.join('');
|
|
149
149
|
this.inputElement.innerHTML = optionElements;
|
package/model-input.js
CHANGED
|
@@ -214,7 +214,7 @@ class ModelInput extends SocketConsumer {
|
|
|
214
214
|
if (option.field === placeholder) {
|
|
215
215
|
return `<option value="" selected class="select-default-option">${option.field}</option>`;
|
|
216
216
|
}
|
|
217
|
-
return `<option value="${option.value
|
|
217
|
+
return `<option value="${option.value ?? option.field}">${option.field}</option>`;
|
|
218
218
|
})
|
|
219
219
|
.join('');
|
|
220
220
|
this.inputElement.innerHTML = optionElements;
|
package/package.json
CHANGED
package/utils.js
CHANGED
|
@@ -475,7 +475,7 @@ export function convertStringToFieldTypeValues(string, allowEmpty, unescapeEqual
|
|
|
475
475
|
let nameType = (subParts[0] || '').split(':');
|
|
476
476
|
let field = nameType[0];
|
|
477
477
|
let type = nameType[1] || 'text';
|
|
478
|
-
let value = subParts.slice(1).join('=').replace(quotedContentRegExp, '$1');
|
|
478
|
+
let value = subParts.length > 1 ? subParts.slice(1).join('=').replace(quotedContentRegExp, '$1') : undefined;
|
|
479
479
|
return {
|
|
480
480
|
field,
|
|
481
481
|
type,
|