@livinglogic/livingapi 1.18.0 → 1.18.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.18.0",
3
+ "version": "1.18.2",
4
4
  "description": "Javascript version of the LivingAPI classes of LivingApps",
5
5
  "repository": {
6
6
  "type": "git",
package/src/livingapi.js CHANGED
@@ -925,7 +925,7 @@ export class RecordChildren extends Base
925
925
  {
926
926
  [ul4.symbols.type]()
927
927
  {
928
- return recordtypechildren;
928
+ return recordchildrentype;
929
929
  }
930
930
 
931
931
  [ul4.symbols.repr]()
@@ -3933,8 +3933,18 @@ export class Control extends Base
3933
3933
 
3934
3934
  get required()
3935
3935
  {
3936
- let view_control = this._view_control();
3937
- return view_control !== null ? view_control.required : this._required;
3936
+ if (this.app._active_view === null)
3937
+ {
3938
+ return this._required ?? this._required_in_view;
3939
+ }
3940
+ else
3941
+ {
3942
+ let view_control = this._view_control();
3943
+ if (view_control === null)
3944
+ return false;
3945
+ else
3946
+ return view_control.required;
3947
+ }
3938
3948
  }
3939
3949
 
3940
3950
  set required(value)
@@ -4001,7 +4011,7 @@ export class Control extends Base
4001
4011
 
4002
4012
  Control.prototype.type = null;
4003
4013
  Control.prototype.subtype = null;
4004
- Control.prototype._ul4onattrs = ["identifier", "fieldname", "app", "_label", "_description", "_priority", "_in_mobile_list", "_in_text", "_required", "order", "ininsertprocedure", "inupdateprocedure"];
4014
+ Control.prototype._ul4onattrs = ["identifier", "fieldname", "app", "_label", "_description", "_priority", "_in_mobile_list", "_in_text", "_required", "_required_in_view", "order", "ininsertprocedure", "inupdateprocedure"];
4005
4015
  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"]);
4006
4016
  Control.prototype._cssclass_root = "llft-control";
4007
4017
  Control.prototype._cssclass_control = "input";