@livinglogic/livingapi 1.1.4 → 1.2.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/HOWTO-release.md +2 -2
- package/README.md +3 -3
- 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 -41
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livinglogic/livingapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.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.15.
|
|
21
|
+
"@livinglogic/ul4": "~1.15.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@babel/core": "^7.14.6",
|
package/src/livingapi.js
CHANGED
|
@@ -703,8 +703,8 @@ export class App extends Base
|
|
|
703
703
|
};
|
|
704
704
|
|
|
705
705
|
|
|
706
|
-
App.prototype._ul4onattrs = ["globals", "name", "description", "lang", "startlink", "
|
|
707
|
-
App.prototype._ul4attrs = new Set(["id", "globals", "name", "description", "lang", "startlink", "
|
|
706
|
+
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"]);
|
|
708
708
|
ul4.expose(App.prototype[ul4.symbols.call], ["values", "**"], {"needsobject": true});
|
|
709
709
|
ul4.expose(App.prototype.insert, ["values", "**"], {"needsobject": true});
|
|
710
710
|
ul4.expose(App.prototype.template_url, ["identifier", "p", "record", "p=", null, "params", "**"]);
|
|
@@ -3490,6 +3490,12 @@ export class Control extends Base
|
|
|
3490
3490
|
return view_control !== null ? view_control.height : null;
|
|
3491
3491
|
}
|
|
3492
3492
|
|
|
3493
|
+
get z_index()
|
|
3494
|
+
{
|
|
3495
|
+
let view_control = this._view_control();
|
|
3496
|
+
return view_control !== null ? view_control.z_index : null;
|
|
3497
|
+
}
|
|
3498
|
+
|
|
3493
3499
|
get liveupdate()
|
|
3494
3500
|
{
|
|
3495
3501
|
let view_control = this._view_control();
|
|
@@ -3568,7 +3574,7 @@ export class Control extends Base
|
|
|
3568
3574
|
Control.prototype.type = null;
|
|
3569
3575
|
Control.prototype.subtype = null;
|
|
3570
3576
|
Control.prototype._ul4onattrs = ["identifier", "fieldname", "app", "_label", "priority", "order", "ininsertprocedure", "inupdateprocedure"];
|
|
3571
|
-
Control.prototype._ul4attrs = new Set(["id", "identifier", "fieldname", "app", "priority", "order", "ininsertprocedure", "inupdateprocedure", "fulltype", "label", "top", "left", "width", "height", "liveupdate", "tabindex", "required", "mode", "labelpos", "autoalign", "in_active_view"]);
|
|
3577
|
+
Control.prototype._ul4attrs = new Set(["id", "identifier", "fieldname", "app", "priority", "order", "ininsertprocedure", "inupdateprocedure", "fulltype", "label", "top", "left", "width", "height", "z_index", "liveupdate", "tabindex", "required", "mode", "labelpos", "autoalign", "in_active_view"]);
|
|
3572
3578
|
Control.prototype._cssclass_root = "llft-control";
|
|
3573
3579
|
Control.prototype._cssclass_control = "input";
|
|
3574
3580
|
|
|
@@ -5077,16 +5083,26 @@ export class ImageLayoutControl extends LayoutControl
|
|
|
5077
5083
|
return imagelayoutcontroltype;
|
|
5078
5084
|
}
|
|
5079
5085
|
|
|
5086
|
+
get image()
|
|
5087
|
+
{
|
|
5088
|
+
return this._image;
|
|
5089
|
+
}
|
|
5090
|
+
|
|
5091
|
+
set image(image)
|
|
5092
|
+
{
|
|
5093
|
+
this._image = image;
|
|
5094
|
+
if (this.globals._in_form())
|
|
5095
|
+
this._set_dom_value(this._image);
|
|
5096
|
+
}
|
|
5097
|
+
|
|
5080
5098
|
get original()
|
|
5081
5099
|
{
|
|
5082
|
-
return this.
|
|
5100
|
+
return this.image;
|
|
5083
5101
|
}
|
|
5084
5102
|
|
|
5085
5103
|
set original(original)
|
|
5086
5104
|
{
|
|
5087
|
-
this.
|
|
5088
|
-
if (this.globals._in_form())
|
|
5089
|
-
this._set_dom_value(this._original);
|
|
5105
|
+
this.image = image;
|
|
5090
5106
|
}
|
|
5091
5107
|
|
|
5092
5108
|
_set_dom_value(value)
|
|
@@ -5105,13 +5121,15 @@ export class ImageLayoutControl extends LayoutControl
|
|
|
5105
5121
|
{
|
|
5106
5122
|
if (name === "original")
|
|
5107
5123
|
this.original = value;
|
|
5124
|
+
else if (name === "image")
|
|
5125
|
+
this.image = value;
|
|
5108
5126
|
else
|
|
5109
5127
|
super[ul4.symbols.setattr](name, value);
|
|
5110
5128
|
}
|
|
5111
5129
|
};
|
|
5112
5130
|
|
|
5113
|
-
ImageLayoutControl.prototype._ul4onattrs = [...LayoutControl.prototype._ul4onattrs, "
|
|
5114
|
-
ImageLayoutControl.prototype._ul4attrs = new Set([...LayoutControl.prototype._ul4attrs, "
|
|
5131
|
+
ImageLayoutControl.prototype._ul4onattrs = [...LayoutControl.prototype._ul4onattrs, "_image", "_visible"];
|
|
5132
|
+
ImageLayoutControl.prototype._ul4attrs = new Set([...LayoutControl.prototype._ul4attrs, "image", "original"]);
|
|
5115
5133
|
|
|
5116
5134
|
|
|
5117
5135
|
class ButtonLayoutControlType extends LayoutControlType
|
|
@@ -5160,8 +5178,8 @@ export class ViewControl extends Base
|
|
|
5160
5178
|
}
|
|
5161
5179
|
};
|
|
5162
5180
|
|
|
5163
|
-
ViewControl.prototype._ul4onattrs = ["view", "control", "top", "left", "width", "height", "liveupdate", "default", "tabindex", "minlength", "maxlength", "required", "placeholder", "_mode", "labelpos", "lookupnonekey", "lookupnonelabel", "label", "autoalign", "labelwidth", "lookupdata", "autoexpandable"];
|
|
5164
|
-
ViewControl.prototype._ul4attrs = new Set(["id", "view", "control", "top", "left", "width", "height", "liveupdate", "default", "tabindex", "minlength", "maxlength", "required", "placeholder", "mode", "labelpos", "lookupnonekey", "lookupnonelabel", "label", "autoalign", "labelwidth", "lookupdata", "autoexpandable"]);
|
|
5181
|
+
ViewControl.prototype._ul4onattrs = ["view", "control", "top", "left", "width", "height", "z_index", "liveupdate", "default", "tabindex", "minlength", "maxlength", "required", "placeholder", "_mode", "labelpos", "lookupnonekey", "lookupnonelabel", "label", "autoalign", "labelwidth", "lookupdata", "autoexpandable"];
|
|
5182
|
+
ViewControl.prototype._ul4attrs = new Set(["id", "view", "control", "top", "left", "width", "height", "z_index", "liveupdate", "default", "tabindex", "minlength", "maxlength", "required", "placeholder", "mode", "labelpos", "lookupnonekey", "lookupnonelabel", "label", "autoalign", "labelwidth", "lookupdata", "autoexpandable"]);
|
|
5165
5183
|
|
|
5166
5184
|
|
|
5167
5185
|
class UserType extends ul4.Type
|
|
@@ -5188,8 +5206,8 @@ export class User extends Base
|
|
|
5188
5206
|
}
|
|
5189
5207
|
};
|
|
5190
5208
|
|
|
5191
|
-
User.prototype._ul4onattrs = ["_id", "gender", "title", "firstname", "surname", "initials", "email", "streetname", "streetnumber", "zip", "city", "phone", "fax", "lang", "
|
|
5192
|
-
User.prototype._ul4attrs = new Set(["id", "_id", "gender", "title", "firstname", "surname", "initials", "email", "streetname", "streetnumber", "zip", "city", "phone", "fax", "lang", "
|
|
5209
|
+
User.prototype._ul4onattrs = ["_id", "gender", "title", "firstname", "surname", "initials", "email", "streetname", "streetnumber", "zip", "city", "phone", "fax", "lang", "image", "summary", "interests", "personalwebsite", "companywebsite", "company", "position", "department", "keyviews"];
|
|
5210
|
+
User.prototype._ul4attrs = new Set(["id", "_id", "gender", "title", "firstname", "surname", "initials", "email", "streetname", "streetnumber", "zip", "city", "phone", "fax", "lang", "image", "summary", "interests", "personalwebsite", "companywebsite", "company", "position", "department", "keyviews"]);
|
|
5193
5211
|
|
|
5194
5212
|
|
|
5195
5213
|
class FileType extends ul4.Type
|
|
@@ -5368,30 +5386,6 @@ FileAttachment.prototype._ul4onattrs = [...Attachment.prototype._ul4onattrs, "va
|
|
|
5368
5386
|
FileAttachment.prototype._ul4attrs = new Set([...Attachment.prototype._ul4onattrs, "value"]);
|
|
5369
5387
|
|
|
5370
5388
|
|
|
5371
|
-
class ImageAttachmentType extends AttachmentType
|
|
5372
|
-
{
|
|
5373
|
-
instancecheck(obj)
|
|
5374
|
-
{
|
|
5375
|
-
return obj instanceof ImageAttachment;
|
|
5376
|
-
}
|
|
5377
|
-
};
|
|
5378
|
-
|
|
5379
|
-
let imageattachmenttype = new ImageAttachmentType("la", "ImageAttachment", "An image attachment of a record");
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
export class ImageAttachment extends Attachment
|
|
5383
|
-
{
|
|
5384
|
-
[ul4.symbols.type]()
|
|
5385
|
-
{
|
|
5386
|
-
return imageattachmenttype;
|
|
5387
|
-
}
|
|
5388
|
-
};
|
|
5389
|
-
|
|
5390
|
-
ImageAttachment.prototype.type = "imageattachment";
|
|
5391
|
-
ImageAttachment.prototype._ul4onattrs = [...Attachment.prototype._ul4onattrs, "original", "thumb", "small", "medium","large"];
|
|
5392
|
-
ImageAttachment.prototype._ul4attrs = new Set([...Attachment.prototype._ul4onattrs, "original", "thumb", "small", "medium", "large"]);
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
5389
|
class JSONAttachmentType extends AttachmentType
|
|
5396
5390
|
{
|
|
5397
5391
|
instancecheck(obj)
|
|
@@ -5582,8 +5576,8 @@ export class MenuItem extends Base
|
|
|
5582
5576
|
}
|
|
5583
5577
|
};
|
|
5584
5578
|
|
|
5585
|
-
MenuItem.prototype._ul4onattrs = ["app", "identifier", "label", "type", "icon", "title", "target", "cssclass", "url", "order", "start_time", "end_time", "on_app_overview_page", "on_app_detail_page", "on_form_page", "on_iframe_page", "on_custom_overview_page", "children", "createdat", "createdby", "updatedat", "updatedby"];
|
|
5586
|
-
MenuItem.prototype._ul4attrs = new Set(["id", "app", "identifier", "label", "type", "icon", "title", "target", "cssclass", "url", "order", "start_time", "end_time", "on_app_overview_page", "on_app_detail_page", "on_form_page", "on_iframe_page", "on_custom_overview_page", "children", "createdat", "createdby", "updatedat", "updatedby"]);
|
|
5579
|
+
MenuItem.prototype._ul4onattrs = ["app", "identifier", "label", "type", "icon", "title", "target", "cssclass", "url", "order", "start_time", "end_time", "on_app_overview_page", "on_app_detail_page", "on_form_page", "on_iframe_page", "on_custom_overview_page", "accessible", "children", "createdat", "createdby", "updatedat", "updatedby"];
|
|
5580
|
+
MenuItem.prototype._ul4attrs = new Set(["id", "app", "identifier", "label", "type", "icon", "title", "target", "cssclass", "url", "order", "start_time", "end_time", "on_app_overview_page", "on_app_detail_page", "on_form_page", "on_iframe_page", "on_custom_overview_page", "accessible", "children", "createdat", "createdby", "updatedat", "updatedby"]);
|
|
5587
5581
|
|
|
5588
5582
|
|
|
5589
5583
|
class PanelType extends MenuItemType
|
|
@@ -5854,7 +5848,6 @@ let classes = [
|
|
|
5854
5848
|
NoteAttachment,
|
|
5855
5849
|
URLAttachment,
|
|
5856
5850
|
FileAttachment,
|
|
5857
|
-
ImageAttachment,
|
|
5858
5851
|
JSONAttachment,
|
|
5859
5852
|
Installation,
|
|
5860
5853
|
Category,
|
|
@@ -5908,7 +5901,6 @@ export const module = new ul4.Module(
|
|
|
5908
5901
|
GeoControl: GeoControl,
|
|
5909
5902
|
ViewControl: ViewControl,
|
|
5910
5903
|
Record: Record,
|
|
5911
|
-
ImageAttachment: ImageAttachment,
|
|
5912
5904
|
FileAttachment: FileAttachment,
|
|
5913
5905
|
URLAttachment: URLAttachment,
|
|
5914
5906
|
NoteAttachment: NoteAttachment,
|