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 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 || option.field}">${option.field}</option>`;
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 || option.field}">${option.field}</option>`;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saasufy-components",
3
- "version": "8.2.3",
3
+ "version": "8.2.5",
4
4
  "description": "Components for Saasufy.",
5
5
  "main": "index.js",
6
6
  "scripts": {
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,