@livinglogic/livingapi 1.8.0 → 1.10.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.8.0",
3
+ "version": "1.10.0",
4
4
  "description": "Javascript version of the LivingAPI classes of LivingApps",
5
5
  "repository": {
6
6
  "type": "git",
package/rollup.config.js CHANGED
@@ -46,7 +46,17 @@ export default [
46
46
  sourcemap: true,
47
47
  globals: {"@livinglogic/ul4": "ul4"},
48
48
  paths: {
49
- "@livinglogic/ul4": '/static/ul4/1.13.1/dist/esm/ul4.js'
49
+ "@livinglogic/ul4": '/static/ul4/1.16.1/dist/esm/ul4.js'
50
+ }
51
+ },
52
+ {
53
+ file: './dist/esm-npm/livingapi.js',
54
+ format: 'esm',
55
+ name: 'la',
56
+ sourcemap: true,
57
+ globals: {"@livinglogic/ul4": "ul4"},
58
+ paths: {
59
+ "@livinglogic/ul4": '/npm/@livinglogic/ul4@1.16.1/dist/esm/ul4.js'
50
60
  }
51
61
  }
52
62
  ],
package/src/livingapi.js CHANGED
@@ -1209,6 +1209,8 @@ export class Field extends Base
1209
1209
  this._writable = true;
1210
1210
  this._visible = true;
1211
1211
  this._required = null;
1212
+ this._top = null;
1213
+ this._left = null;
1212
1214
  }
1213
1215
 
1214
1216
  [ul4.symbols.type]()
@@ -1302,6 +1304,40 @@ export class Field extends Base
1302
1304
  this.errors = [];
1303
1305
  }
1304
1306
 
1307
+ get top()
1308
+ {
1309
+ return this._top ?? this.control.top;
1310
+ }
1311
+
1312
+ set top(value)
1313
+ {
1314
+ this._top = value;
1315
+ if (this._in_form())
1316
+ this._dom_root.style.top = this.top + "px";
1317
+ }
1318
+
1319
+ get left()
1320
+ {
1321
+ return this._left ?? this.control.left;
1322
+ }
1323
+
1324
+ set left(value)
1325
+ {
1326
+ this._left = value;
1327
+ if (this._in_form())
1328
+ this._dom_root.style.left = this.left + "px";
1329
+ }
1330
+
1331
+ get width()
1332
+ {
1333
+ return this.control.width;
1334
+ }
1335
+
1336
+ get height()
1337
+ {
1338
+ return this.control.width;
1339
+ }
1340
+
1305
1341
  search(searchvalue)
1306
1342
  {
1307
1343
  return this.control.search(this.value, searchvalue);
@@ -1498,7 +1534,7 @@ export class Field extends Base
1498
1534
  s += " is_dirty()=True";
1499
1535
  if (this.errors.length > 0)
1500
1536
  s += " has_errors()=True";
1501
- s += ">"
1537
+ s += ">";
1502
1538
  return s;
1503
1539
  }
1504
1540
 
@@ -1520,7 +1556,7 @@ export class Field extends Base
1520
1556
  };
1521
1557
 
1522
1558
  Field.prototype._ul4onattrs = ["control", "record", "label", "value", "errors", "_visible", "_enabled", "_writable", "_required"];
1523
- Field.prototype._ul4attrs = new Set(["control", "record", "label", "value", "errors", "visible", "enabled", "writable", "required"]);
1559
+ Field.prototype._ul4attrs = new Set(["control", "record", "label", "value", "errors", "visible", "enabled", "writable", "required", "top", "left", "width", "height"]);
1524
1560
  Field.prototype._inputevent = "input";
1525
1561
 
1526
1562