@livinglogic/livingapi 1.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livinglogic/livingapi",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "description": "Javascript version of the LivingAPI classes of LivingApps",
5
5
  "repository": {
6
6
  "type": "git",
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)
@@ -5477,8 +5488,8 @@ export class File extends Base
5477
5488
  }
5478
5489
  };
5479
5490
 
5480
- File.prototype._ul4onattrs = ["globals", "filename", "mimetype", "width", "height", "internal_id", "createdat", "size", "duration", "geo", "storagefilename", "archive", "context_id"];
5481
- File.prototype._ul4attrs = new Set(["globals", "id", "internal_id", "url", "archive_url", "filename", "mimetype", "width", "height", "size", "duration", "geo", "archive", "createdat", "context_id"]);
5491
+ File.prototype._ul4onattrs = ["globals", "filename", "mimetype", "width", "height", "internal_id", "createdat", "size", "duration", "geo", "recordedat", "storagefilename", "archive", "context_id"];
5492
+ File.prototype._ul4attrs = new Set(["globals", "id", "internal_id", "url", "archive_url", "filename", "mimetype", "width", "height", "size", "duration", "geo", "recordedat", "archive", "createdat", "context_id"]);
5482
5493
 
5483
5494
 
5484
5495
  class GeoType extends ul4.Type