@livinglogic/livingapi 1.15.0 → 1.16.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.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "Javascript version of the LivingAPI classes of LivingApps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,7 @@
18
18
  "module": "dist/esm-node/livingapi.js",
19
19
  "browser": "dist/umd/livingapi.js",
20
20
  "dependencies": {
21
- "@livinglogic/ul4": "~1.16.1"
21
+ "@livinglogic/ul4": "~1.18.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@babel/core": "^7.14.6",
package/src/livingapi.js CHANGED
@@ -1275,6 +1275,7 @@ export class Field extends Base
1275
1275
  this.control = control;
1276
1276
  this.record = record;
1277
1277
  this._label = null;
1278
+ this._description = null;
1278
1279
  this._lookupdata = null;
1279
1280
  this.errors = [];
1280
1281
  this._value = null;
@@ -1285,6 +1286,7 @@ export class Field extends Base
1285
1286
  this._writable = true;
1286
1287
  this._visible = true;
1287
1288
  this._required = null;
1289
+ this._in_text = null;
1288
1290
  this._top = null;
1289
1291
  this._left = null;
1290
1292
  }
@@ -1357,6 +1359,16 @@ export class Field extends Base
1357
1359
  this._set_dom_label();
1358
1360
  }
1359
1361
 
1362
+ get description()
1363
+ {
1364
+ return this._description ?? this.control.description;
1365
+ }
1366
+
1367
+ set description(value)
1368
+ {
1369
+ this._description = value;
1370
+ }
1371
+
1360
1372
  get globals()
1361
1373
  {
1362
1374
  return this.control.globals;
@@ -1582,6 +1594,26 @@ export class Field extends Base
1582
1594
  this._required = value;
1583
1595
  }
1584
1596
 
1597
+ get in_list()
1598
+ {
1599
+ return this.control.in_list;
1600
+ }
1601
+
1602
+ get in_mobile_list()
1603
+ {
1604
+ return this.control.in_mobile_list;
1605
+ }
1606
+
1607
+ get in_text()
1608
+ {
1609
+ return this._in_text ?? this.control.in_text;
1610
+ }
1611
+
1612
+ set in_text(value)
1613
+ {
1614
+ this._in_text = value;
1615
+ }
1616
+
1585
1617
  get enabled()
1586
1618
  {
1587
1619
  if (this._in_form())
@@ -1654,7 +1686,7 @@ export class Field extends Base
1654
1686
  };
1655
1687
 
1656
1688
  Field.prototype._ul4onattrs = ["control", "record", "label", "value", "errors", "_visible", "_enabled", "_writable", "_required"];
1657
- Field.prototype._ul4attrs = new Set(["control", "record", "label", "value", "mode", "errors", "visible", "enabled", "writable", "required", "top", "left", "width", "height"]);
1689
+ Field.prototype._ul4attrs = new Set(["control", "record", "label", "description", "value", "mode", "errors", "visible", "enabled", "writable", "required", "in_text", "top", "left", "width", "height"]);
1658
1690
  Field.prototype._inputevent = "input";
1659
1691
 
1660
1692
 
@@ -3775,6 +3807,56 @@ export class Control extends Base
3775
3807
  this._label = value;
3776
3808
  }
3777
3809
 
3810
+ get description()
3811
+ {
3812
+ return this._description;
3813
+ }
3814
+
3815
+ set description(value)
3816
+ {
3817
+ this._description = value;
3818
+ }
3819
+
3820
+ get priority()
3821
+ {
3822
+ return this._priority;
3823
+ }
3824
+
3825
+ set priority(value)
3826
+ {
3827
+ this._priority = value;
3828
+ }
3829
+
3830
+ get in_list()
3831
+ {
3832
+ return this._priority;
3833
+ }
3834
+
3835
+ set in_list(value)
3836
+ {
3837
+ this._priority = value;
3838
+ }
3839
+
3840
+ get in_mobile_list()
3841
+ {
3842
+ return this._in_mobile_list;
3843
+ }
3844
+
3845
+ set in_mobile_list(value)
3846
+ {
3847
+ this._in_mobile_list = value;
3848
+ }
3849
+
3850
+ get in_text()
3851
+ {
3852
+ return this._in_text;
3853
+ }
3854
+
3855
+ set in_text(value)
3856
+ {
3857
+ this._in_text = value;
3858
+ }
3859
+
3778
3860
  get default()
3779
3861
  {
3780
3862
  return null;
@@ -3825,7 +3907,12 @@ export class Control extends Base
3825
3907
  get required()
3826
3908
  {
3827
3909
  let view_control = this._view_control();
3828
- return view_control !== null ? view_control.required : false;
3910
+ return view_control !== null ? view_control.required : this._required;
3911
+ }
3912
+
3913
+ set required(value)
3914
+ {
3915
+ this._required = value;
3829
3916
  }
3830
3917
 
3831
3918
  get mode()
@@ -3887,8 +3974,8 @@ export class Control extends Base
3887
3974
 
3888
3975
  Control.prototype.type = null;
3889
3976
  Control.prototype.subtype = null;
3890
- Control.prototype._ul4onattrs = ["identifier", "fieldname", "app", "_label", "priority", "order", "ininsertprocedure", "inupdateprocedure"];
3891
- Control.prototype._ul4attrs = new Set(["id", "identifier", "fieldname", "app", "priority", "order", "ininsertprocedure", "inupdateprocedure", "fulltype", "label", "top", "left", "width", "height", "z_index", "liveupdate", "tabindex", "required", "mode", "labelpos", "autoalign", "in_active_view"]);
3977
+ Control.prototype._ul4onattrs = ["identifier", "fieldname", "app", "_label", "_description", "_priority", "_in_mobile_list", "_in_text", "_required", "order", "ininsertprocedure", "inupdateprocedure"];
3978
+ Control.prototype._ul4attrs = new Set(["id", "identifier", "fieldname", "app", "priority", "in_list", "in_mobile_list", "in_text", "order", "ininsertprocedure", "inupdateprocedure", "fulltype", "label", "description", "top", "left", "width", "height", "z_index", "liveupdate", "tabindex", "required", "mode", "labelpos", "autoalign", "in_active_view"]);
3892
3979
  Control.prototype._cssclass_root = "llft-control";
3893
3980
  Control.prototype._cssclass_control = "input";
3894
3981