@livinglogic/livingapi 1.17.0 → 1.18.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 +12 -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 +37 -6
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
|
|
@@ -6087,6 +6088,34 @@ Panel.prototype._ul4onattrs = [...MenuItem.prototype._ul4onattrs, "description",
|
|
|
6087
6088
|
Panel.prototype._ul4attrs = new Set([...MenuItem.prototype._ul4attrs, "description", "description_url", "image", "row", "column", "width", "height"]);
|
|
6088
6089
|
|
|
6089
6090
|
|
|
6091
|
+
class ViewTemplateInfoType extends ul4.Type
|
|
6092
|
+
{
|
|
6093
|
+
instancecheck(obj)
|
|
6094
|
+
{
|
|
6095
|
+
return obj instanceof ViewTemplateInfo;
|
|
6096
|
+
}
|
|
6097
|
+
};
|
|
6098
|
+
|
|
6099
|
+
let viewtemplateinfotype = new UserType("la", "ViewTemplateInfo", "basic information about a view template");
|
|
6100
|
+
|
|
6101
|
+
|
|
6102
|
+
export class ViewTemplateInfo extends Base
|
|
6103
|
+
{
|
|
6104
|
+
[ul4.symbols.type]()
|
|
6105
|
+
{
|
|
6106
|
+
return viewtemplateinfotype;
|
|
6107
|
+
}
|
|
6108
|
+
|
|
6109
|
+
[ul4.symbols.repr]()
|
|
6110
|
+
{
|
|
6111
|
+
return "<ViewTemplateInfo id=" + ul4._repr(this.id) + " identifier=" + ul4._repr(this.identifier) + " name=" + ul4._repr(this.name) + ">";
|
|
6112
|
+
}
|
|
6113
|
+
};
|
|
6114
|
+
|
|
6115
|
+
ViewTemplateInfo.prototype._ul4onattrs = ["app", "identifier", "name", "icon", "type", "mimetype", "permission_level"];
|
|
6116
|
+
ViewTemplateInfo.prototype._ul4attrs = new Set(["app", "id", "identifier", "name", "icon", "type", "mimetype", "permission_level"]);
|
|
6117
|
+
|
|
6118
|
+
|
|
6090
6119
|
class FormType extends ul4.Type
|
|
6091
6120
|
{
|
|
6092
6121
|
instancecheck(obj)
|
|
@@ -6336,7 +6365,8 @@ let classes = [
|
|
|
6336
6365
|
Category,
|
|
6337
6366
|
KeyView,
|
|
6338
6367
|
AppParameter,
|
|
6339
|
-
MutableAppParameter
|
|
6368
|
+
MutableAppParameter,
|
|
6369
|
+
ViewTemplateInfo
|
|
6340
6370
|
];
|
|
6341
6371
|
|
|
6342
6372
|
for (let constructor of classes)
|
|
@@ -6405,5 +6435,6 @@ export const module = new ul4.Module(
|
|
|
6405
6435
|
MutableAppParameter: MutableAppParameter,
|
|
6406
6436
|
MenuItem: MenuItem,
|
|
6407
6437
|
Panel: Panel,
|
|
6438
|
+
ViewTemplateInfo: ViewTemplateInfo
|
|
6408
6439
|
}
|
|
6409
6440
|
);
|