@livinglogic/livingapi 1.3.0 → 1.3.2

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.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Javascript version of the LivingAPI classes of LivingApps",
5
5
  "repository": {
6
6
  "type": "git",
package/src/livingapi.js CHANGED
@@ -355,7 +355,7 @@ export class Globals extends Base
355
355
 
356
356
  set_current_geo(position)
357
357
  {
358
- this._current_geo = new Geo(position.coords.latitude, position.coords.longitude);
358
+ this._current_geo = new Geo(this, position.coords.latitude, position.coords.longitude);
359
359
  }
360
360
 
361
361
  _in_form()
@@ -5321,7 +5321,7 @@ export class File extends Base
5321
5321
 
5322
5322
  get url()
5323
5323
  {
5324
- return "/gateway/files/" + this.contextid + "/" + this.id;
5324
+ return "/files/" + this.contextid + "/" + this.id;
5325
5325
  }
5326
5326
 
5327
5327
  get archive_url()
@@ -5332,8 +5332,8 @@ export class File extends Base
5332
5332
  }
5333
5333
  };
5334
5334
 
5335
- File.prototype._ul4onattrs = ["filename", "mimetype", "width", "height", "internal_id", "createdat", "size", "duration", "geo", "storagefilename", "archive", "context_id"];
5336
- File.prototype._ul4attrs = new Set(["id", "internal_id", "url", "archive_url", "filename", "mimetype", "width", "height", "size", "duration", "geo", "archive", "createdat", "context_id"]);
5335
+ File.prototype._ul4onattrs = ["globals", "filename", "mimetype", "width", "height", "internal_id", "createdat", "size", "duration", "geo", "storagefilename", "archive", "context_id"];
5336
+ File.prototype._ul4attrs = new Set(["globals", "id", "internal_id", "url", "archive_url", "filename", "mimetype", "width", "height", "size", "duration", "geo", "archive", "createdat", "context_id"]);
5337
5337
 
5338
5338
 
5339
5339
  class GeoType extends ul4.Type
@@ -5349,9 +5349,10 @@ let geotype = new GeoType("la", "Geo", "Geographical coordinates and location in
5349
5349
 
5350
5350
  export class Geo extends Base
5351
5351
  {
5352
- constructor(lat, long, info=null)
5352
+ constructor(globals, lat, long, info=null)
5353
5353
  {
5354
5354
  super(null);
5355
+ this.globals = globals;
5355
5356
  this.lat = lat;
5356
5357
  this.long = long;
5357
5358
  this.info = info;
@@ -5368,8 +5369,8 @@ export class Geo extends Base
5368
5369
  }
5369
5370
  };
5370
5371
 
5371
- Geo.prototype._ul4onattrs = ["lat", "long", "info"];
5372
- Geo.prototype._ul4attrs = new Set(["lat", "long", "info"]);
5372
+ Geo.prototype._ul4onattrs = ["globals", "lat", "long", "info"];
5373
+ Geo.prototype._ul4attrs = new Set(["globals", "lat", "long", "info"]);
5373
5374
 
5374
5375
 
5375
5376
  class AttachmentType extends ul4.Type
@@ -5970,7 +5971,8 @@ let classes = [
5970
5971
  Installation,
5971
5972
  Category,
5972
5973
  KeyView,
5973
- AppParameter
5974
+ AppParameter,
5975
+ MutableAppParameter
5974
5976
  ];
5975
5977
 
5976
5978
  for (let constructor of classes)