@livinglogic/livingapi 1.6.0 → 1.8.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/CHANGELOG.md +16 -0
- package/HOWTO-release.md +2 -2
- package/README.md +2 -2
- package/dist/esm-node/livingapi.js +1 -1
- package/dist/esm-node/livingapi.js.map +1 -1
- package/dist/esm-static/livingapi.js +1 -1
- package/dist/esm-static/livingapi.js.map +1 -1
- package/dist/umd/livingapi.js +1 -1
- package/dist/umd/livingapi.js.map +1 -1
- package/package.json +1 -1
- package/src/livingapi.js +35 -10
package/package.json
CHANGED
package/src/livingapi.js
CHANGED
|
@@ -463,32 +463,32 @@ export class Globals extends Base
|
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
-
log_debug(
|
|
466
|
+
log_debug(message)
|
|
467
467
|
{
|
|
468
468
|
this._start_log_message();
|
|
469
469
|
if (console && console.debug)
|
|
470
|
-
console.debug(this._make_log_message(message))
|
|
470
|
+
console.debug(this._make_log_message(message));
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
log_info(
|
|
473
|
+
log_info(message)
|
|
474
474
|
{
|
|
475
475
|
this._start_log_message();
|
|
476
476
|
if (console && console.info)
|
|
477
|
-
console.info(this._make_log_message(message))
|
|
477
|
+
console.info(this._make_log_message(message));
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
log_warning(
|
|
480
|
+
log_warning(message)
|
|
481
481
|
{
|
|
482
482
|
this._start_log_message();
|
|
483
483
|
if (console && console.warn)
|
|
484
|
-
console.warn(this._make_log_message(message))
|
|
484
|
+
console.warn(this._make_log_message(message));
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
log_error(
|
|
487
|
+
log_error(message)
|
|
488
488
|
{
|
|
489
489
|
this._start_log_message();
|
|
490
490
|
if (console && console.error)
|
|
491
|
-
console.error(this._make_log_message(message))
|
|
491
|
+
console.error(this._make_log_message(message));
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
my_apps_url()
|
|
@@ -1208,6 +1208,7 @@ export class Field extends Base
|
|
|
1208
1208
|
this._enabled = true;
|
|
1209
1209
|
this._writable = true;
|
|
1210
1210
|
this._visible = true;
|
|
1211
|
+
this._required = null;
|
|
1211
1212
|
}
|
|
1212
1213
|
|
|
1213
1214
|
[ul4.symbols.type]()
|
|
@@ -1449,6 +1450,16 @@ export class Field extends Base
|
|
|
1449
1450
|
this._visible = value;
|
|
1450
1451
|
}
|
|
1451
1452
|
|
|
1453
|
+
get required()
|
|
1454
|
+
{
|
|
1455
|
+
return this._required ?? this.control.required;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
set required(value)
|
|
1459
|
+
{
|
|
1460
|
+
this._required = value;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1452
1463
|
get enabled()
|
|
1453
1464
|
{
|
|
1454
1465
|
if (this._in_form())
|
|
@@ -1501,13 +1512,15 @@ export class Field extends Base
|
|
|
1501
1512
|
this.enabled = ul4._bool(value);
|
|
1502
1513
|
else if (name === "writable")
|
|
1503
1514
|
this.writable = ul4._bool(value);
|
|
1515
|
+
else if (name === "required")
|
|
1516
|
+
this.required = ul4._bool(value);
|
|
1504
1517
|
else
|
|
1505
1518
|
super[ul4.symbols.setattr](name, value);
|
|
1506
1519
|
}
|
|
1507
1520
|
};
|
|
1508
1521
|
|
|
1509
|
-
Field.prototype._ul4onattrs = ["control", "record", "label", "value", "errors", "_visible", "_enabled", "_writable"];
|
|
1510
|
-
Field.prototype._ul4attrs = new Set(["control", "record", "label", "value", "errors", "visible", "enabled", "writable"]);
|
|
1522
|
+
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"]);
|
|
1511
1524
|
Field.prototype._inputevent = "input";
|
|
1512
1525
|
|
|
1513
1526
|
|
|
@@ -2980,6 +2993,8 @@ export class LookupChoiceField extends LookupField
|
|
|
2980
2993
|
}
|
|
2981
2994
|
};
|
|
2982
2995
|
|
|
2996
|
+
LookupChoiceField.prototype._inputevent = "llchoice";
|
|
2997
|
+
|
|
2983
2998
|
|
|
2984
2999
|
class MultipleLookupFieldType extends LookupFieldBaseType
|
|
2985
3000
|
{
|
|
@@ -3171,6 +3186,8 @@ export class MultipleLookupChoiceField extends MultipleLookupField
|
|
|
3171
3186
|
}
|
|
3172
3187
|
};
|
|
3173
3188
|
|
|
3189
|
+
MultipleLookupChoiceField.prototype._inputevent = "llchoice";
|
|
3190
|
+
|
|
3174
3191
|
|
|
3175
3192
|
class AppLookupFieldBaseType extends FieldType
|
|
3176
3193
|
{
|
|
@@ -3389,6 +3406,8 @@ export class AppLookupChoiceField extends AppLookupField
|
|
|
3389
3406
|
}
|
|
3390
3407
|
};
|
|
3391
3408
|
|
|
3409
|
+
AppLookupChoiceField.prototype._inputevent = "llchoice";
|
|
3410
|
+
|
|
3392
3411
|
|
|
3393
3412
|
class MultipleAppLookupFieldType extends AppLookupFieldBaseType
|
|
3394
3413
|
{
|
|
@@ -3514,6 +3533,8 @@ export class MultipleAppLookupChoiceField extends MultipleAppLookupField
|
|
|
3514
3533
|
}
|
|
3515
3534
|
};
|
|
3516
3535
|
|
|
3536
|
+
MultipleAppLookupChoiceField.prototype._inputevent = "llchoice";
|
|
3537
|
+
|
|
3517
3538
|
|
|
3518
3539
|
class ControlType extends ul4.Type
|
|
3519
3540
|
{
|
|
@@ -4479,6 +4500,7 @@ export class LookupChoiceControl extends LookupControl
|
|
|
4479
4500
|
|
|
4480
4501
|
LookupChoiceControl.prototype.subtype = "choice";
|
|
4481
4502
|
LookupChoiceControl.prototype.fieldtype = LookupChoiceField;
|
|
4503
|
+
LookupChoiceControl.prototype._cssclass_control = "select";
|
|
4482
4504
|
|
|
4483
4505
|
|
|
4484
4506
|
class AppLookupControlType extends ControlType
|
|
@@ -4607,6 +4629,7 @@ export class AppLookupChoiceControl extends AppLookupControl
|
|
|
4607
4629
|
|
|
4608
4630
|
AppLookupChoiceControl.prototype.subtype = "choice";
|
|
4609
4631
|
AppLookupChoiceControl.prototype.fieldtype = AppLookupChoiceField;
|
|
4632
|
+
AppLookupChoiceControl.prototype._cssclass_control = "select";
|
|
4610
4633
|
|
|
4611
4634
|
|
|
4612
4635
|
class MultipleLookupControlType extends LookupControlType
|
|
@@ -4734,6 +4757,7 @@ export class MultipleLookupChoiceControl extends MultipleLookupControl
|
|
|
4734
4757
|
|
|
4735
4758
|
MultipleLookupChoiceControl.prototype.subtype = "choice";
|
|
4736
4759
|
MultipleLookupChoiceControl.prototype.fieldtype = MultipleLookupChoiceField;
|
|
4760
|
+
MultipleLookupChoiceControl.prototype._cssclass_control = "select";
|
|
4737
4761
|
|
|
4738
4762
|
|
|
4739
4763
|
class MultipleAppLookupControlType extends AppLookupControlType
|
|
@@ -4848,6 +4872,7 @@ export class MultipleAppLookupChoiceControl extends MultipleAppLookupControl
|
|
|
4848
4872
|
|
|
4849
4873
|
MultipleAppLookupChoiceControl.prototype.subtype = "choice";
|
|
4850
4874
|
MultipleAppLookupChoiceControl.prototype.fieldtype = MultipleAppLookupChoiceField;
|
|
4875
|
+
MultipleAppLookupChoiceControl.prototype._cssclass_control = "select";
|
|
4851
4876
|
|
|
4852
4877
|
|
|
4853
4878
|
class GeoControlType extends ControlType
|