@livinglogic/livingapi 1.2.1 → 1.2.3
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/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 +89 -2
package/package.json
CHANGED
package/src/livingapi.js
CHANGED
|
@@ -496,10 +496,45 @@ export class Globals extends Base
|
|
|
496
496
|
if (console && console.error)
|
|
497
497
|
console.error(this._make_log_message(message))
|
|
498
498
|
}
|
|
499
|
+
|
|
500
|
+
my_apps_url()
|
|
501
|
+
{
|
|
502
|
+
return "/apps.htm";
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
my_tasks_url()
|
|
506
|
+
{
|
|
507
|
+
return "/xist4c/web/aufgaben_id_393_.htm";
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
catalog_url()
|
|
511
|
+
{
|
|
512
|
+
return "/katalog/home.htm";
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
chats_url()
|
|
516
|
+
{
|
|
517
|
+
return "/chats.htm";
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
profile_url()
|
|
521
|
+
{
|
|
522
|
+
return "/profil/index.htm";
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
account_url()
|
|
526
|
+
{
|
|
527
|
+
return "/account.htm";
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
logout_url()
|
|
531
|
+
{
|
|
532
|
+
return "/login.htm?logout=standardCug";
|
|
533
|
+
}
|
|
499
534
|
};
|
|
500
535
|
|
|
501
536
|
Globals.prototype._ul4onattrs = ["version", "platform", "user", "maxdbactions", "maxtemplateruntime", "lang", "datasources", "hostname", "app", "record", "mode", "view_template_id", "email_template_id", "view_id"];
|
|
502
|
-
Globals.prototype._ul4attrs = new Set(["version", "hostname", "platform", "user", "lang", "datasources", "app", "record", "maxdbactions", "maxtemplateruntime", "flashmessages", "mode", "scaled_url", "dist", "current_geo", "log_debug", "log_info", "log_warning", "log_error"]);
|
|
537
|
+
Globals.prototype._ul4attrs = new Set(["version", "hostname", "platform", "user", "lang", "datasources", "app", "record", "maxdbactions", "maxtemplateruntime", "flashmessages", "mode", "scaled_url", "dist", "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"]);
|
|
503
538
|
ul4.expose(Globals.prototype.log_debug, ["message", "*"]);
|
|
504
539
|
ul4.expose(Globals.prototype.log_info, ["message", "*"]);
|
|
505
540
|
ul4.expose(Globals.prototype.log_warning, ["message", "*"]);
|
|
@@ -600,6 +635,57 @@ export class App extends Base
|
|
|
600
635
|
return url_with_params(url, params);
|
|
601
636
|
}
|
|
602
637
|
|
|
638
|
+
home_url()
|
|
639
|
+
{
|
|
640
|
+
return "/apps/" + this.id + ".htm";
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
datamanagement_url()
|
|
644
|
+
{
|
|
645
|
+
return "/_id_36_.htm?uuid=" + this.id + "&dId=" + this.id + "&resetInfo=true&templateIdentifier=created_" + this.id;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
import_url()
|
|
649
|
+
{
|
|
650
|
+
return "/import-export/"+ this.id + ".htm";
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
tasks_url()
|
|
654
|
+
{
|
|
655
|
+
return "/_id_1073_.htm?uuid=" + this.id + "&dId=" + this.id + "&p_tpl_uuid=" + this.id + "&resetInfo=true&templateIdentifier=created_task_" + this.id;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
// formbuilder_url()
|
|
659
|
+
// {
|
|
660
|
+
// let lang = this.globals.lang
|
|
661
|
+
// if (!lang)
|
|
662
|
+
// lang = "de"
|
|
663
|
+
// let tpl_id = "???"
|
|
664
|
+
// let cl_id = "???"
|
|
665
|
+
// return "/formbuilder/index.html?lang=" + lang + "&searchDescription=" + tpl_id + "&p_tpl_uuid=" + this.id + "&p_cl_id=" + cl_id;
|
|
666
|
+
// }
|
|
667
|
+
|
|
668
|
+
// tasks_config_url()
|
|
669
|
+
// {
|
|
670
|
+
// let tpl_id = "???"
|
|
671
|
+
// return "/konfiguration/aufgaben.htm?com.livinglogic.cms.apps.search.model.SearchState.search_submit=true&searchDescription=" + tpl_id + "&dId=" + this.id;
|
|
672
|
+
// }
|
|
673
|
+
|
|
674
|
+
datamanagement_config_url()
|
|
675
|
+
{
|
|
676
|
+
return "/datenmanagement-konfigurieren/" + this.id + ".htm";
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
permissions_url()
|
|
680
|
+
{
|
|
681
|
+
return "/_id_833_.htm?uuid=" + this.id + "&dId=" + this.id + "&resetInfo=true";
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
datamanageview_url(identifier)
|
|
685
|
+
{
|
|
686
|
+
return "/_id_36_.htm?uuid=" + this.id + "&dId=" + this.id + "&resetInfo=true&templateIdentifier=created_" + this.id + "_datamanage_master_" + identifier;
|
|
687
|
+
}
|
|
688
|
+
|
|
603
689
|
get layout_controls()
|
|
604
690
|
{
|
|
605
691
|
if (this.active_view === null)
|
|
@@ -704,7 +790,7 @@ export class App extends Base
|
|
|
704
790
|
|
|
705
791
|
|
|
706
792
|
App.prototype._ul4onattrs = ["globals", "name", "description", "lang", "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", "menus", "panels"];
|
|
707
|
-
App.prototype._ul4attrs = new Set(["id", "globals", "name", "description", "lang", "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"]);
|
|
793
|
+
App.prototype._ul4attrs = new Set(["id", "globals", "name", "description", "lang", "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"]);
|
|
708
794
|
ul4.expose(App.prototype[ul4.symbols.call], ["values", "**"], {"needsobject": true});
|
|
709
795
|
ul4.expose(App.prototype.insert, ["values", "**"], {"needsobject": true});
|
|
710
796
|
ul4.expose(App.prototype.template_url, ["identifier", "p", "record", "p=", null, "params", "**"]);
|
|
@@ -5681,6 +5767,7 @@ export class Form extends ul4.Proto
|
|
|
5681
5767
|
render_template(identifier)
|
|
5682
5768
|
{
|
|
5683
5769
|
let vars = {
|
|
5770
|
+
"datasources": this.globals.datasources,
|
|
5684
5771
|
"record": this.globals.record,
|
|
5685
5772
|
"app": this.globals.app,
|
|
5686
5773
|
"fields": this.globals.record.fields,
|