@livinglogic/livingapi 1.19.0 → 1.20.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 +13 -0
- 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-npm/livingapi.js +1 -1
- package/dist/esm-npm/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 +17 -4
package/package.json
CHANGED
package/src/livingapi.js
CHANGED
|
@@ -797,8 +797,8 @@ export class App extends Base
|
|
|
797
797
|
|
|
798
798
|
|
|
799
799
|
App.prototype._ul4onattrs = ["globals", "name", "description", "lang", "appgroup", "gramgen", "typename_nom_sin", "typename_gen_sin", "typename_dat_sin", "typename_acc_sin", "typename_nom_plu", "typename_gen_plu", "typename_dat_plu", "typename_acc_plu",
|
|
800
|
-
"startlink", "image", "createdby", "controls", "records", "
|
|
801
|
-
App.prototype._ul4attrs = new Set(["id", "globals", "name", "description", "lang", "appgroup", "group", "main", "gramgen", "typename_nom_sin", "typename_gen_sin", "typename_dat_sin", "typename_acc_sin", "typename_nom_plu", "typename_gen_plu", "typename_dat_plu", "typename_acc_plu", "startlink", "image", "createdat", "createdby", "updatedat", "updatedby", "controls", "layout_controls", "records", "
|
|
800
|
+
"startlink", "image", "createdby", "controls", "records", "record_start", "record_count", "record_total", "installation", "categories", "params", "views", "datamanagement_identifier", "basetable", "primarykey", "insertprocedure", "updateprocedure", "deleteprocedure", "templates", "createdat", "updatedat", "updatedby", "superid", "favorite", "_active_view", "datasource", "main", "viewtemplates"];
|
|
801
|
+
App.prototype._ul4attrs = new Set(["id", "globals", "name", "description", "lang", "appgroup", "group", "main", "gramgen", "typename_nom_sin", "typename_gen_sin", "typename_dat_sin", "typename_acc_sin", "typename_nom_plu", "typename_gen_plu", "typename_dat_plu", "typename_acc_plu", "startlink", "image", "createdat", "createdby", "updatedat", "updatedby", "controls", "layout_controls", "records", "record_start", "record_count", "record_total", "installation", "categories", "params", "views", "menus", "panels", "datasource", "datamanagement_identifier", "insert", "favorite", "_active_view", "template_url", "new_embedded_url", "new_standalone_url", "home_url", "datamanagement_url", "import_url", "tasks_url", /*"formbuilder_url", "tasks_config_url",*/ "datamanagement_config_url", "permissions_url", "datamanageview_url"]);
|
|
802
802
|
ul4.expose(App.prototype[ul4.symbols.call], ["values", "**"], {"needsobject": true});
|
|
803
803
|
ul4.expose(App.prototype.insert, ["values", "**"], {"needsobject": true});
|
|
804
804
|
ul4.expose(App.prototype.template_url, ["identifier", "p", "record", "p=", null, "params", "**"]);
|
|
@@ -946,8 +946,8 @@ export class RecordChildren extends Base
|
|
|
946
946
|
}
|
|
947
947
|
};
|
|
948
948
|
|
|
949
|
-
RecordChildren.prototype._ul4onattrs = ["record", "datasourcechildren", "records"];
|
|
950
|
-
RecordChildren.prototype._ul4attrs = new Set(["id", "record", "datasourcechildren", "records"]);
|
|
949
|
+
RecordChildren.prototype._ul4onattrs = ["record", "datasourcechildren", "records", "record_start", "record_count", "record_total"];
|
|
950
|
+
RecordChildren.prototype._ul4attrs = new Set(["id", "record", "datasourcechildren", "records", "record_start", "record_count", "record_total"]);
|
|
951
951
|
|
|
952
952
|
|
|
953
953
|
class RecordType extends ul4.Type
|
|
@@ -3810,6 +3810,12 @@ let controltype = new ControlType("la", "Control", "Metainformation about a fiel
|
|
|
3810
3810
|
|
|
3811
3811
|
export class Control extends Base
|
|
3812
3812
|
{
|
|
3813
|
+
constructor(id)
|
|
3814
|
+
{
|
|
3815
|
+
super(id);
|
|
3816
|
+
this._mode = null;
|
|
3817
|
+
}
|
|
3818
|
+
|
|
3813
3819
|
[ul4.symbols.type]()
|
|
3814
3820
|
{
|
|
3815
3821
|
return controltype;
|
|
@@ -3966,6 +3972,8 @@ export class Control extends Base
|
|
|
3966
3972
|
|
|
3967
3973
|
get mode()
|
|
3968
3974
|
{
|
|
3975
|
+
if (this._mode !== null)
|
|
3976
|
+
return this._mode;
|
|
3969
3977
|
let view_control = this._view_control();
|
|
3970
3978
|
if (this.app._active_view !== null && view_control === null)
|
|
3971
3979
|
return null;
|
|
@@ -3974,6 +3982,11 @@ export class Control extends Base
|
|
|
3974
3982
|
return view_control !== null ? view_control.mode : "edit";
|
|
3975
3983
|
}
|
|
3976
3984
|
|
|
3985
|
+
set mode(value)
|
|
3986
|
+
{
|
|
3987
|
+
this._mode = value;
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3977
3990
|
get labelpos()
|
|
3978
3991
|
{
|
|
3979
3992
|
let view_control = this._view_control();
|