@livinglogic/livingapi 1.12.0 → 1.13.0
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/CHANGELOG.md +5 -0
- package/README.md +2 -2
- package/dist/esm-node/livingapi.js +1 -1
- package/dist/esm-node/livingapi.js.map +1 -1
- package/dist/esm-npm/livingapi.js +1 -1
- package/dist/esm-npm/livingapi.js.map +1 -1
- package/dist/esm-static/livingapi.js +1 -1
- package/dist/esm-static/livingapi.js.map +1 -1
- package/dist/umd/livingapi.js +1 -1
- package/dist/umd/livingapi.js.map +1 -1
- package/package.json +1 -1
- package/src/livingapi.js +11 -0
package/package.json
CHANGED
package/src/livingapi.js
CHANGED
|
@@ -1597,6 +1597,17 @@ export class BoolField extends Field
|
|
|
1597
1597
|
if (this.control.required)
|
|
1598
1598
|
change.errors.push(this.msg_field_required(change.value));
|
|
1599
1599
|
}
|
|
1600
|
+
else if (typeof(change.value) === "string")
|
|
1601
|
+
{
|
|
1602
|
+
if (change.value.length === 0)
|
|
1603
|
+
{
|
|
1604
|
+
if (this.control.required)
|
|
1605
|
+
change.errors.push(this.msg_bool_truerequired(change.value));
|
|
1606
|
+
change.value = false
|
|
1607
|
+
}
|
|
1608
|
+
else
|
|
1609
|
+
change.value = true
|
|
1610
|
+
}
|
|
1600
1611
|
else if (typeof(change.value) === "boolean")
|
|
1601
1612
|
{
|
|
1602
1613
|
if (this.control.required && !change.value)
|