@livinglogic/livingapi 1.2.2 → 1.3.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 -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 +2 -2
- package/src/livingapi.js +33 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livinglogic/livingapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Javascript version of the LivingAPI classes of LivingApps",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "dist/esm-node/livingapi.js",
|
|
19
19
|
"browser": "dist/umd/livingapi.js",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@livinglogic/ul4": "~1.
|
|
21
|
+
"@livinglogic/ul4": "~1.16.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@babel/core": "^7.14.6",
|
package/src/livingapi.js
CHANGED
|
@@ -5638,6 +5638,37 @@ AppParameter.prototype._ul4onattrs = ["owner", "parent", "type", "order", "ident
|
|
|
5638
5638
|
AppParameter.prototype._ul4attrs = new Set(["id", "owner", "parent", "app", "type", "order", "identifier", "description", "value", "createdat", "createdby", "updatedat", "updatedby"]);
|
|
5639
5639
|
|
|
5640
5640
|
|
|
5641
|
+
class MutableAppParameterType extends AppParameterType
|
|
5642
|
+
{
|
|
5643
|
+
instancecheck(obj)
|
|
5644
|
+
{
|
|
5645
|
+
return obj instanceof MutableAppParameter;
|
|
5646
|
+
}
|
|
5647
|
+
};
|
|
5648
|
+
|
|
5649
|
+
let mutableappparametertype = new MutableAppParameterType("la", "MutableAppParameter", "A mutable parameter of a LivingApps application");
|
|
5650
|
+
|
|
5651
|
+
|
|
5652
|
+
export class MutableAppParameter extends AppParameter
|
|
5653
|
+
{
|
|
5654
|
+
[ul4.symbols.type]()
|
|
5655
|
+
{
|
|
5656
|
+
return mutableappparametertype;
|
|
5657
|
+
}
|
|
5658
|
+
|
|
5659
|
+
[ul4.symbols.repr]()
|
|
5660
|
+
{
|
|
5661
|
+
return "<MutableAppParameter id=" + ul4._repr(this.id) + " identifier=" + ul4._repr(this.identifier) + ">";
|
|
5662
|
+
}
|
|
5663
|
+
|
|
5664
|
+
get app()
|
|
5665
|
+
{
|
|
5666
|
+
if (this.owner instanceof App)
|
|
5667
|
+
return this.owner;
|
|
5668
|
+
return null;
|
|
5669
|
+
}
|
|
5670
|
+
};
|
|
5671
|
+
|
|
5641
5672
|
class MenuItemType extends ul4.Type
|
|
5642
5673
|
{
|
|
5643
5674
|
instancecheck(obj)
|
|
@@ -5767,6 +5798,7 @@ export class Form extends ul4.Proto
|
|
|
5767
5798
|
render_template(identifier)
|
|
5768
5799
|
{
|
|
5769
5800
|
let vars = {
|
|
5801
|
+
"datasources": this.globals.datasources,
|
|
5770
5802
|
"record": this.globals.record,
|
|
5771
5803
|
"app": this.globals.app,
|
|
5772
5804
|
"fields": this.globals.record.fields,
|
|
@@ -6001,6 +6033,7 @@ export const module = new ul4.Module(
|
|
|
6001
6033
|
ViewLookupItem: ViewLookupItem,
|
|
6002
6034
|
Category: Category,
|
|
6003
6035
|
AppParameter: AppParameter,
|
|
6036
|
+
MutableAppParameter: MutableAppParameter,
|
|
6004
6037
|
MenuItem: MenuItem,
|
|
6005
6038
|
Panel: Panel,
|
|
6006
6039
|
}
|