@livinglogic/livingapi 1.35.0 → 1.36.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 +9 -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 +24 -2
package/package.json
CHANGED
package/src/livingapi.js
CHANGED
|
@@ -889,7 +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.typenames =
|
|
892
|
+
this.typenames = new Map();
|
|
893
893
|
}
|
|
894
894
|
|
|
895
895
|
[ul4.symbols.type]()
|
|
@@ -897,6 +897,28 @@ export class AppLang extends LangBase
|
|
|
897
897
|
return applangtype;
|
|
898
898
|
}
|
|
899
899
|
|
|
900
|
+
[ul4.symbols.setattr](name, value)
|
|
901
|
+
{
|
|
902
|
+
if (name === "typenames")
|
|
903
|
+
{
|
|
904
|
+
if (ul4._isobject(value))
|
|
905
|
+
value = new Map(Object.entries(value));
|
|
906
|
+
else if (value !== null && !(value instanceof Map))
|
|
907
|
+
throw new ul4.ArgumentError(name + " must be None or a dict");
|
|
908
|
+
this.typenames = value;
|
|
909
|
+
}
|
|
910
|
+
else
|
|
911
|
+
super[ul4.symbols.setattr](name, value);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
_setDefaultUL4ONAttr(name)
|
|
915
|
+
{
|
|
916
|
+
if (name === "typenames")
|
|
917
|
+
this.typenames = new Map();
|
|
918
|
+
else
|
|
919
|
+
super._setDefaultUL4ONAttr(name);
|
|
920
|
+
}
|
|
921
|
+
|
|
900
922
|
[ul4.symbols.repr]()
|
|
901
923
|
{
|
|
902
924
|
return "<AppLang lang=" + ul4._repr(this.lang) + " name=" + ul4._repr(this.name) + ">";
|
|
@@ -905,7 +927,7 @@ export class AppLang extends LangBase
|
|
|
905
927
|
|
|
906
928
|
AppLang.prototype._ul4onattrs = ["app", "lang", "name", "description", "typename_grammatical_gender", "typenames"];
|
|
907
929
|
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"]);
|
|
930
|
+
AppLang.prototype._settableattrs = new Set(["name", "description", "typename_grammatical_gender", "typenames"]);
|
|
909
931
|
|
|
910
932
|
|
|
911
933
|
class AppGroupLangType extends ul4.Type
|