@livinglogic/livingapi 1.34.0 → 1.35.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 +15 -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 +66 -30
package/package.json
CHANGED
package/src/livingapi.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* LivingAPI JavaScript Library
|
|
3
3
|
* https://my.living-apps.de/docs/LivingAPI.html
|
|
4
4
|
*
|
|
5
|
-
* Copyright 2017-
|
|
6
|
-
* Copyright 2017-
|
|
5
|
+
* Copyright 2017-2026 by LivingLogic AG, Bayreuth/Germany
|
|
6
|
+
* Copyright 2017-2026 by Walter Dörwald
|
|
7
7
|
*
|
|
8
8
|
* All Rights Reserved
|
|
9
9
|
*
|
|
@@ -889,14 +889,7 @@ export class AppLang extends LangBase
|
|
|
889
889
|
this.name = null;
|
|
890
890
|
this.description = null;
|
|
891
891
|
this.typename_grammatical_gender = null;
|
|
892
|
-
this.
|
|
893
|
-
this.typename_genitive_singular = null;
|
|
894
|
-
this.typename_dative_singular = null;
|
|
895
|
-
this.typename_accusative_singular = null;
|
|
896
|
-
this.typename_nominative_plural = null;
|
|
897
|
-
this.typename_genitive_plural = null;
|
|
898
|
-
this.typename_dative_plural = null;
|
|
899
|
-
this.typename_accusative_plural = null;
|
|
892
|
+
this.typenames = null;
|
|
900
893
|
}
|
|
901
894
|
|
|
902
895
|
[ul4.symbols.type]()
|
|
@@ -910,9 +903,9 @@ export class AppLang extends LangBase
|
|
|
910
903
|
}
|
|
911
904
|
};
|
|
912
905
|
|
|
913
|
-
AppLang.prototype._ul4onattrs = ["app", "lang", "name", "description", "typename_grammatical_gender", "
|
|
914
|
-
AppLang.prototype._ul4attrs = new Set(["id", "app", "lang", "name", "description", "typename_grammatical_gender", "
|
|
915
|
-
AppLang.prototype._settableattrs = new Set(["name", "description", "typename_grammatical_gender"
|
|
906
|
+
AppLang.prototype._ul4onattrs = ["app", "lang", "name", "description", "typename_grammatical_gender", "typenames"];
|
|
907
|
+
AppLang.prototype._ul4attrs = new Set(["id", "app", "lang", "name", "description", "typename_grammatical_gender", "typenames"]);
|
|
908
|
+
AppLang.prototype._settableattrs = new Set(["name", "description", "typename_grammatical_gender"]);
|
|
916
909
|
|
|
917
910
|
|
|
918
911
|
class AppGroupLangType extends ul4.Type
|
|
@@ -1108,8 +1101,12 @@ export class App extends WithAttachments
|
|
|
1108
1101
|
get typename_nominative_singular()
|
|
1109
1102
|
{
|
|
1110
1103
|
let translation = this.translations.get();
|
|
1111
|
-
if (translation !== null && translation.
|
|
1112
|
-
|
|
1104
|
+
if (translation !== null && translation.typenames !== null)
|
|
1105
|
+
{
|
|
1106
|
+
let value = translation.typenames.get("nom_sin");
|
|
1107
|
+
if (value !== null && value !== undefined)
|
|
1108
|
+
return value;
|
|
1109
|
+
}
|
|
1113
1110
|
return this._typename_nominative_singular;
|
|
1114
1111
|
}
|
|
1115
1112
|
|
|
@@ -1121,8 +1118,12 @@ export class App extends WithAttachments
|
|
|
1121
1118
|
get typename_genitive_singular()
|
|
1122
1119
|
{
|
|
1123
1120
|
let translation = this.translations.get();
|
|
1124
|
-
if (translation !== null && translation.
|
|
1125
|
-
|
|
1121
|
+
if (translation !== null && translation.typenames !== null)
|
|
1122
|
+
{
|
|
1123
|
+
let value = translation.typenames.get("gen_sin");
|
|
1124
|
+
if (value !== null && value !== undefined)
|
|
1125
|
+
return value;
|
|
1126
|
+
}
|
|
1126
1127
|
return this._typename_genitive_singular;
|
|
1127
1128
|
}
|
|
1128
1129
|
|
|
@@ -1134,8 +1135,12 @@ export class App extends WithAttachments
|
|
|
1134
1135
|
get typename_dative_singular()
|
|
1135
1136
|
{
|
|
1136
1137
|
let translation = this.translations.get();
|
|
1137
|
-
if (translation !== null && translation.
|
|
1138
|
-
|
|
1138
|
+
if (translation !== null && translation.typenames !== null)
|
|
1139
|
+
{
|
|
1140
|
+
let value = translation.typenames.get("dat_sin");
|
|
1141
|
+
if (value !== null && value !== undefined)
|
|
1142
|
+
return value;
|
|
1143
|
+
}
|
|
1139
1144
|
return this._typename_dative_singular;
|
|
1140
1145
|
}
|
|
1141
1146
|
|
|
@@ -1147,8 +1152,12 @@ export class App extends WithAttachments
|
|
|
1147
1152
|
get typename_accusative_singular()
|
|
1148
1153
|
{
|
|
1149
1154
|
let translation = this.translations.get();
|
|
1150
|
-
if (translation !== null && translation.
|
|
1151
|
-
|
|
1155
|
+
if (translation !== null && translation.typenames !== null)
|
|
1156
|
+
{
|
|
1157
|
+
let value = translation.typenames.get("acc_sin");
|
|
1158
|
+
if (value !== null && value !== undefined)
|
|
1159
|
+
return value;
|
|
1160
|
+
}
|
|
1152
1161
|
return this._typename_accusative_singular;
|
|
1153
1162
|
}
|
|
1154
1163
|
|
|
@@ -1160,8 +1169,12 @@ export class App extends WithAttachments
|
|
|
1160
1169
|
get typename_nominative_plural()
|
|
1161
1170
|
{
|
|
1162
1171
|
let translation = this.translations.get();
|
|
1163
|
-
if (translation !== null && translation.
|
|
1164
|
-
|
|
1172
|
+
if (translation !== null && translation.typenames !== null)
|
|
1173
|
+
{
|
|
1174
|
+
let value = translation.typenames.get("nom_plu");
|
|
1175
|
+
if (value !== null && value !== undefined)
|
|
1176
|
+
return value;
|
|
1177
|
+
}
|
|
1165
1178
|
return this._typename_nominative_plural;
|
|
1166
1179
|
}
|
|
1167
1180
|
|
|
@@ -1173,8 +1186,12 @@ export class App extends WithAttachments
|
|
|
1173
1186
|
get typename_genitive_plural()
|
|
1174
1187
|
{
|
|
1175
1188
|
let translation = this.translations.get();
|
|
1176
|
-
if (translation !== null && translation.
|
|
1177
|
-
|
|
1189
|
+
if (translation !== null && translation.typenames !== null)
|
|
1190
|
+
{
|
|
1191
|
+
let value = translation.typenames.get("gen_plu");
|
|
1192
|
+
if (value !== null && value !== undefined)
|
|
1193
|
+
return value;
|
|
1194
|
+
}
|
|
1178
1195
|
return this._typename_genitive_plural;
|
|
1179
1196
|
}
|
|
1180
1197
|
|
|
@@ -1186,8 +1203,12 @@ export class App extends WithAttachments
|
|
|
1186
1203
|
get typename_dative_plural()
|
|
1187
1204
|
{
|
|
1188
1205
|
let translation = this.translations.get();
|
|
1189
|
-
if (translation !== null && translation.
|
|
1190
|
-
|
|
1206
|
+
if (translation !== null && translation.typenames !== null)
|
|
1207
|
+
{
|
|
1208
|
+
let value = translation.typenames.get("dat_plu");
|
|
1209
|
+
if (value !== null && value !== undefined)
|
|
1210
|
+
return value;
|
|
1211
|
+
}
|
|
1191
1212
|
return this._typename_dative_plural;
|
|
1192
1213
|
}
|
|
1193
1214
|
|
|
@@ -1199,8 +1220,12 @@ export class App extends WithAttachments
|
|
|
1199
1220
|
get typename_accusative_plural()
|
|
1200
1221
|
{
|
|
1201
1222
|
let translation = this.translations.get();
|
|
1202
|
-
if (translation !== null && translation.
|
|
1203
|
-
|
|
1223
|
+
if (translation !== null && translation.typenames !== null)
|
|
1224
|
+
{
|
|
1225
|
+
let value = translation.typenames.get("acc_plu");
|
|
1226
|
+
if (value !== null && value !== undefined)
|
|
1227
|
+
return value;
|
|
1228
|
+
}
|
|
1204
1229
|
return this._typename_accusative_plural;
|
|
1205
1230
|
}
|
|
1206
1231
|
|
|
@@ -1209,6 +1234,17 @@ export class App extends WithAttachments
|
|
|
1209
1234
|
this._typename_accusative_plural = value;
|
|
1210
1235
|
}
|
|
1211
1236
|
|
|
1237
|
+
get typenames()
|
|
1238
|
+
{
|
|
1239
|
+
let translation = this.translations.get();
|
|
1240
|
+
if (translation !== null && translation.typenames !== null && translation.typenames.size !== 0)
|
|
1241
|
+
return translation.typenames;
|
|
1242
|
+
translation = this.translations.get(this.lang);
|
|
1243
|
+
if (translation !== null && translation.typenames !== null && translation.typenames.size !== 0)
|
|
1244
|
+
return translation.typenames;
|
|
1245
|
+
return null;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1212
1248
|
_dumpUL4ONAttr(name)
|
|
1213
1249
|
{
|
|
1214
1250
|
if (name === "translations")
|
|
@@ -1433,7 +1469,7 @@ export class App extends WithAttachments
|
|
|
1433
1469
|
|
|
1434
1470
|
App.prototype._ul4onattrs = ["globals", "internal_id", "_name", "_description", "lang", "appgroup", "_typename_grammatical_gender", "_typename_nominative_singular", "_typename_genitive_singular", "_typename_dative_singular", "_typename_accusative_singular", "_typename_nominative_plural", "_typename_genitive_plural", "_typename_dative_plural", "_typename_accusative_plural",
|
|
1435
1471
|
"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", "ai_generated", "viewtemplates", "filter_default", "sort_default", "filter_owndata", "_permissions", "data_actions", "attachments", "order", "translations"];
|
|
1436
|
-
App.prototype._ul4attrs = new Set(["id", "globals", "name", "description", "translations", "lang", "appgroup", "group", "main", "order", "ai_generated", "typename_grammatical_gender", "typename_nominative_singular", "typename_genitive_singular", "typename_dative_singular", "typename_accusative_singular", "typename_nominative_plural", "typename_genitive_plural", "typename_dative_plural", "typename_accusative_plural", "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", "filter_default", "sort_default", "filter_owndata", "permissions", "data_actions", "attachments", "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"]);
|
|
1472
|
+
App.prototype._ul4attrs = new Set(["id", "globals", "name", "description", "translations", "lang", "appgroup", "group", "main", "order", "ai_generated", "typename_grammatical_gender", "typename_nominative_singular", "typename_genitive_singular", "typename_dative_singular", "typename_accusative_singular", "typename_nominative_plural", "typename_genitive_plural", "typename_dative_plural", "typename_accusative_plural", "typenames", "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", "filter_default", "sort_default", "filter_owndata", "permissions", "data_actions", "attachments", "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"]);
|
|
1437
1473
|
ul4.expose(App.prototype[ul4.symbols.call], ["values", "**"], {"needsobject": true});
|
|
1438
1474
|
ul4.expose(App.prototype.insert, ["values", "**"], {"needsobject": true});
|
|
1439
1475
|
ul4.expose(App.prototype.template_url, ["identifier", "p", "record", "p=", null, "params", "**"]);
|