@livinglogic/livingapi 1.17.0 → 1.18.1
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 +18 -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 +50 -9
package/package.json
CHANGED
package/src/livingapi.js
CHANGED
|
@@ -230,6 +230,7 @@ export class Globals extends Base
|
|
|
230
230
|
this.app = null;
|
|
231
231
|
this.record = null;
|
|
232
232
|
this.mode = null;
|
|
233
|
+
this.groups = null;
|
|
233
234
|
this.maxdbactions = null;
|
|
234
235
|
this.maxtemplateruntime = null;
|
|
235
236
|
this.flashmessages = null;
|
|
@@ -528,7 +529,7 @@ export class Globals extends Base
|
|
|
528
529
|
};
|
|
529
530
|
|
|
530
531
|
Globals.prototype._ul4onattrs = ["version", "platform", "user", "maxdbactions", "maxtemplateruntime", "lang", "datasources", "hostname", "app", "record", "mode", "view_template_id", "email_template_id", "view_id"];
|
|
531
|
-
Globals.prototype._ul4attrs = new Set(["version", "hostname", "platform", "
|
|
532
|
+
Globals.prototype._ul4attrs = new Set(["id", "version", "hostname", "platform", "mode", "form", "app", "record", "datasources", "externaldatasources", "groups", "user", "lang", "templates", "pparams", "geo", "dist", "maxdbactions", "maxtemplateruntime", "flashmessages", "scaled_url", "qrcode_url", "current_geo", "log_debug", "log_info", "log_warning", "log_error", "my_apps_url", "my_tasks_url", "catalog_url", "chats_url", "profile_url", "account_url", "logout_url"]);
|
|
532
533
|
ul4.expose(Globals.prototype.log_debug, ["message", "*"]);
|
|
533
534
|
ul4.expose(Globals.prototype.log_info, ["message", "*"]);
|
|
534
535
|
ul4.expose(Globals.prototype.log_warning, ["message", "*"]);
|
|
@@ -784,8 +785,8 @@ export class App extends Base
|
|
|
784
785
|
|
|
785
786
|
|
|
786
787
|
App.prototype._ul4onattrs = ["globals", "name", "description", "lang", "group", "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",
|
|
787
|
-
"startlink", "image", "createdby", "controls", "records", "recordcount", "installation", "categories", "params", "views", "datamanagement_identifier", "basetable", "primarykey", "insertprocedure", "updateprocedure", "deleteprocedure", "templates", "createdat", "updatedat", "updatedby", "superid", "favorite", "_active_view", "datasource", "
|
|
788
|
-
App.prototype._ul4attrs = new Set(["id", "globals", "name", "description", "lang", "group", "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", "recordcount", "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"]);
|
|
788
|
+
"startlink", "image", "createdby", "controls", "records", "recordcount", "installation", "categories", "params", "views", "datamanagement_identifier", "basetable", "primarykey", "insertprocedure", "updateprocedure", "deleteprocedure", "templates", "createdat", "updatedat", "updatedby", "superid", "favorite", "_active_view", "datasource", "main", "viewtemplates"];
|
|
789
|
+
App.prototype._ul4attrs = new Set(["id", "globals", "name", "description", "lang", "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", "recordcount", "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"]);
|
|
789
790
|
ul4.expose(App.prototype[ul4.symbols.call], ["values", "**"], {"needsobject": true});
|
|
790
791
|
ul4.expose(App.prototype.insert, ["values", "**"], {"needsobject": true});
|
|
791
792
|
ul4.expose(App.prototype.template_url, ["identifier", "p", "record", "p=", null, "params", "**"]);
|
|
@@ -816,8 +817,8 @@ export class AppGroup extends Base
|
|
|
816
817
|
return "<AppGroup id=" + ul4._repr(this.id) + " name=" + ul4._repr(this.name) + ">";
|
|
817
818
|
}
|
|
818
819
|
};
|
|
819
|
-
AppGroup.prototype._ul4onattrs = ["globals", "name", "apps"];
|
|
820
|
-
AppGroup.prototype._ul4attrs = new Set(["globals", "id", "name", "apps"]);
|
|
820
|
+
AppGroup.prototype._ul4onattrs = ["globals", "name", "apps", "main_app"];
|
|
821
|
+
AppGroup.prototype._ul4attrs = new Set(["globals", "id", "name", "apps", "main_app"]);
|
|
821
822
|
|
|
822
823
|
|
|
823
824
|
class ViewType extends ul4.Type
|
|
@@ -3932,8 +3933,18 @@ export class Control extends Base
|
|
|
3932
3933
|
|
|
3933
3934
|
get required()
|
|
3934
3935
|
{
|
|
3935
|
-
|
|
3936
|
-
|
|
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
|
+
}
|
|
3937
3948
|
}
|
|
3938
3949
|
|
|
3939
3950
|
set required(value)
|
|
@@ -4000,7 +4011,7 @@ export class Control extends Base
|
|
|
4000
4011
|
|
|
4001
4012
|
Control.prototype.type = null;
|
|
4002
4013
|
Control.prototype.subtype = null;
|
|
4003
|
-
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"];
|
|
4004
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"]);
|
|
4005
4016
|
Control.prototype._cssclass_root = "llft-control";
|
|
4006
4017
|
Control.prototype._cssclass_control = "input";
|
|
@@ -6087,6 +6098,34 @@ Panel.prototype._ul4onattrs = [...MenuItem.prototype._ul4onattrs, "description",
|
|
|
6087
6098
|
Panel.prototype._ul4attrs = new Set([...MenuItem.prototype._ul4attrs, "description", "description_url", "image", "row", "column", "width", "height"]);
|
|
6088
6099
|
|
|
6089
6100
|
|
|
6101
|
+
class ViewTemplateInfoType extends ul4.Type
|
|
6102
|
+
{
|
|
6103
|
+
instancecheck(obj)
|
|
6104
|
+
{
|
|
6105
|
+
return obj instanceof ViewTemplateInfo;
|
|
6106
|
+
}
|
|
6107
|
+
};
|
|
6108
|
+
|
|
6109
|
+
let viewtemplateinfotype = new UserType("la", "ViewTemplateInfo", "basic information about a view template");
|
|
6110
|
+
|
|
6111
|
+
|
|
6112
|
+
export class ViewTemplateInfo extends Base
|
|
6113
|
+
{
|
|
6114
|
+
[ul4.symbols.type]()
|
|
6115
|
+
{
|
|
6116
|
+
return viewtemplateinfotype;
|
|
6117
|
+
}
|
|
6118
|
+
|
|
6119
|
+
[ul4.symbols.repr]()
|
|
6120
|
+
{
|
|
6121
|
+
return "<ViewTemplateInfo id=" + ul4._repr(this.id) + " identifier=" + ul4._repr(this.identifier) + " name=" + ul4._repr(this.name) + ">";
|
|
6122
|
+
}
|
|
6123
|
+
};
|
|
6124
|
+
|
|
6125
|
+
ViewTemplateInfo.prototype._ul4onattrs = ["app", "identifier", "name", "icon", "type", "mimetype", "permission_level"];
|
|
6126
|
+
ViewTemplateInfo.prototype._ul4attrs = new Set(["app", "id", "identifier", "name", "icon", "type", "mimetype", "permission_level"]);
|
|
6127
|
+
|
|
6128
|
+
|
|
6090
6129
|
class FormType extends ul4.Type
|
|
6091
6130
|
{
|
|
6092
6131
|
instancecheck(obj)
|
|
@@ -6336,7 +6375,8 @@ let classes = [
|
|
|
6336
6375
|
Category,
|
|
6337
6376
|
KeyView,
|
|
6338
6377
|
AppParameter,
|
|
6339
|
-
MutableAppParameter
|
|
6378
|
+
MutableAppParameter,
|
|
6379
|
+
ViewTemplateInfo
|
|
6340
6380
|
];
|
|
6341
6381
|
|
|
6342
6382
|
for (let constructor of classes)
|
|
@@ -6405,5 +6445,6 @@ export const module = new ul4.Module(
|
|
|
6405
6445
|
MutableAppParameter: MutableAppParameter,
|
|
6406
6446
|
MenuItem: MenuItem,
|
|
6407
6447
|
Panel: Panel,
|
|
6448
|
+
ViewTemplateInfo: ViewTemplateInfo
|
|
6408
6449
|
}
|
|
6409
6450
|
);
|