@livinglogic/livingapi 1.16.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 +65 -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", "*"]);
|
|
@@ -783,10 +784,9 @@ export class App extends Base
|
|
|
783
784
|
};
|
|
784
785
|
|
|
785
786
|
|
|
786
|
-
App.prototype._ul4onattrs = ["globals", "name", "description", "lang", "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", "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",
|
|
789
|
-
"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"]);
|
|
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",
|
|
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"]);
|
|
790
790
|
ul4.expose(App.prototype[ul4.symbols.call], ["values", "**"], {"needsobject": true});
|
|
791
791
|
ul4.expose(App.prototype.insert, ["values", "**"], {"needsobject": true});
|
|
792
792
|
ul4.expose(App.prototype.template_url, ["identifier", "p", "record", "p=", null, "params", "**"]);
|
|
@@ -794,6 +794,33 @@ ul4.expose(App.prototype.new_embedded_url, ["params", "**"]);
|
|
|
794
794
|
ul4.expose(App.prototype.new_standalone_url, ["params", "**"]);
|
|
795
795
|
|
|
796
796
|
|
|
797
|
+
class AppGroupType extends ul4.Type
|
|
798
|
+
{
|
|
799
|
+
instancecheck(obj)
|
|
800
|
+
{
|
|
801
|
+
return obj instanceof AppGroup;
|
|
802
|
+
}
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
let appgrouptype = new AppType("la", "AppGroup", "A group of LivingApps");
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
export class AppGroup extends Base
|
|
809
|
+
{
|
|
810
|
+
[ul4.symbols.type]()
|
|
811
|
+
{
|
|
812
|
+
return appgrouptype;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
[ul4.symbols.repr]()
|
|
816
|
+
{
|
|
817
|
+
return "<AppGroup id=" + ul4._repr(this.id) + " name=" + ul4._repr(this.name) + ">";
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
AppGroup.prototype._ul4onattrs = ["globals", "name", "apps", "main_app"];
|
|
821
|
+
AppGroup.prototype._ul4attrs = new Set(["globals", "id", "name", "apps", "main_app"]);
|
|
822
|
+
|
|
823
|
+
|
|
797
824
|
class ViewType extends ul4.Type
|
|
798
825
|
{
|
|
799
826
|
instancecheck(obj)
|
|
@@ -6061,6 +6088,34 @@ Panel.prototype._ul4onattrs = [...MenuItem.prototype._ul4onattrs, "description",
|
|
|
6061
6088
|
Panel.prototype._ul4attrs = new Set([...MenuItem.prototype._ul4attrs, "description", "description_url", "image", "row", "column", "width", "height"]);
|
|
6062
6089
|
|
|
6063
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
|
+
|
|
6064
6119
|
class FormType extends ul4.Type
|
|
6065
6120
|
{
|
|
6066
6121
|
instancecheck(obj)
|
|
@@ -6230,6 +6285,7 @@ let classes = [
|
|
|
6230
6285
|
Globals,
|
|
6231
6286
|
FlashMessage,
|
|
6232
6287
|
App,
|
|
6288
|
+
AppGroup,
|
|
6233
6289
|
View,
|
|
6234
6290
|
MenuItem,
|
|
6235
6291
|
Panel,
|
|
@@ -6309,7 +6365,8 @@ let classes = [
|
|
|
6309
6365
|
Category,
|
|
6310
6366
|
KeyView,
|
|
6311
6367
|
AppParameter,
|
|
6312
|
-
MutableAppParameter
|
|
6368
|
+
MutableAppParameter,
|
|
6369
|
+
ViewTemplateInfo
|
|
6313
6370
|
];
|
|
6314
6371
|
|
|
6315
6372
|
for (let constructor of classes)
|
|
@@ -6328,6 +6385,7 @@ export const module = new ul4.Module(
|
|
|
6328
6385
|
KeyView: KeyView,
|
|
6329
6386
|
Globals: Globals,
|
|
6330
6387
|
App: App,
|
|
6388
|
+
AppGroup: AppGroup,
|
|
6331
6389
|
TextControl: TextControl,
|
|
6332
6390
|
URLControl: URLControl,
|
|
6333
6391
|
EmailControl: EmailControl,
|
|
@@ -6377,5 +6435,6 @@ export const module = new ul4.Module(
|
|
|
6377
6435
|
MutableAppParameter: MutableAppParameter,
|
|
6378
6436
|
MenuItem: MenuItem,
|
|
6379
6437
|
Panel: Panel,
|
|
6438
|
+
ViewTemplateInfo: ViewTemplateInfo
|
|
6380
6439
|
}
|
|
6381
6440
|
);
|