qcobjects-sdk 2.4.37 → 2.4.43
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/-m +1 -0
- package/VERSION +1 -1
- package/package.json +3 -2
- package/src/QCObjects-SDK.js +1 -1
- package/src/js/org.qcobjects.cloud.auth.session.data.js +1 -8
- package/src/js/org.qcobjects.cloud.auth.session.usertoken.js +25 -28
- package/src/js/org.qcobjects.components.grid.js +2 -5
- package/src/js/org.qcobjects.components.js +50 -55
- package/src/js/org.qcobjects.components.list.js +4 -4
- package/src/js/org.qcobjects.components.notifications.js +7 -7
- package/src/js/org.qcobjects.components.slider.js +8 -9
- package/src/js/org.qcobjects.components.splashscreen.js +12 -17
- package/src/js/org.qcobjects.controllers.form.js +0 -5
- package/src/js/org.qcobjects.controllers.grid.js +6 -7
- package/src/js/org.qcobjects.controllers.js +2 -4
- package/src/js/org.qcobjects.controllers.list.js +8 -10
- package/src/js/org.qcobjects.controllers.slider.js +5 -6
- package/src/js/org.qcobjects.controllers.swagger.js +2 -4
- package/src/js/org.qcobjects.effects.js +136 -54
- package/src/js/org.qcobjects.i18n_messages.js +4 -5
- package/src/js/org.qcobjects.modal.controllers.js +2 -4
- package/src/js/org.qcobjects.modal.effects.js +35 -26
- package/src/js/org.qcobjects.models.js +30 -20
- package/src/js/org.qcobjects.tools.canvas.js +0 -3
- package/src/js/org.qcobjects.tools.js +2 -4
- package/src/js/org.qcobjects.tools.layouts.js +2 -5
- package/src/js/org.qcobjects.views.js +2 -4
package/-m
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0.2
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.43
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects-sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.43",
|
|
4
4
|
"description": "QCObjects SDK is a set of Controllers, Views and Components that are elementary and useful to assist developers to build applications under MVC patterns using QCObjects, Cross Browser Javascript Framework for MVC Patterns",
|
|
5
5
|
"main": "src/index.cjs",
|
|
6
6
|
"module": "src/index.mjs",
|
|
@@ -86,7 +86,8 @@
|
|
|
86
86
|
"url": "https://github.com/QuickCorp/QCObjects-SDK/issues"
|
|
87
87
|
},
|
|
88
88
|
"homepage": "https://sdk.qcobjects.dev",
|
|
89
|
+
"dependencies": {},
|
|
89
90
|
"peerDependencies": {
|
|
90
|
-
"qcobjects": "^2.4.
|
|
91
|
+
"qcobjects": "^2.4.78"
|
|
91
92
|
}
|
|
92
93
|
}
|
package/src/QCObjects-SDK.js
CHANGED
|
@@ -28,13 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
class SessionData extends InheritClass{
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
* Creates an instance of SessionData.
|
|
33
|
-
*/
|
|
34
|
-
constructor() {
|
|
35
|
-
super(...arguments);
|
|
36
|
-
this.__session_container__ = null;
|
|
37
|
-
}
|
|
31
|
+
__session_container__ = null;
|
|
38
32
|
|
|
39
33
|
/**
|
|
40
34
|
* Sets the session container
|
|
@@ -131,6 +125,5 @@
|
|
|
131
125
|
}
|
|
132
126
|
|
|
133
127
|
]);
|
|
134
|
-
Package("org.qcobjects.cloud.auth.session.data").map(c => Export(c));
|
|
135
128
|
|
|
136
129
|
}).call(null);
|
|
@@ -27,36 +27,33 @@
|
|
|
27
27
|
|
|
28
28
|
Package("org.qcobjects.cloud.auth.session.usertoken", [
|
|
29
29
|
class SessionUserToken extends InheritClass{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
this.user = {};
|
|
33
|
-
this.__cache__ = null;
|
|
30
|
+
user = {};
|
|
31
|
+
__cache__ = null;
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
constructor(...o){
|
|
34
|
+
super(o);
|
|
35
|
+
var __instance__ = this;
|
|
36
|
+
this.__cache__ = new ComplexStorageCache({
|
|
37
|
+
index: __instance__.__instanceID.toString(),
|
|
38
|
+
load() {
|
|
39
|
+
var __token__;
|
|
40
|
+
if (typeof navigator !== "undefined" && typeof origin !== "undefined") {
|
|
41
|
+
__token__ = _Crypt.encrypt(`${navigator.userAgent}|${o.username}|${(+(new Date())).toString()}`, origin);
|
|
42
|
+
} else {
|
|
43
|
+
__token__ = _Crypt.encrypt(`${o.username}|${(+(new Date())).toString()}`, CONFIG.get("domain", "localhost"));
|
|
44
|
+
}
|
|
45
|
+
__instance__.user = {
|
|
46
|
+
priority: __instance__.__instanceID.toString(),
|
|
47
|
+
token: __token__
|
|
48
|
+
};
|
|
49
|
+
return __instance__.user;
|
|
50
|
+
},
|
|
51
|
+
alternate(cacheController) {
|
|
52
|
+
__instance__.user = cacheController.cache.getCached(__instance__.__instanceID.toString()); // setting dataObject with the cached value
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
36
56
|
|
|
37
|
-
_new_(o) {
|
|
38
|
-
super._new_(o);
|
|
39
|
-
var __instance__ = this;
|
|
40
|
-
this.__cache__ = new ComplexStorageCache({
|
|
41
|
-
index: __instance__.__instanceID.toString(),
|
|
42
|
-
load() {
|
|
43
|
-
var __token__;
|
|
44
|
-
if (typeof navigator !== "undefined" && typeof origin !== "undefined") {
|
|
45
|
-
__token__ = _Crypt.encrypt(`${navigator.userAgent}|${o.username}|${(+(new Date())).toString()}`, origin);
|
|
46
|
-
} else {
|
|
47
|
-
__token__ = _Crypt.encrypt(`${o.username}|${(+(new Date())).toString()}`, CONFIG.get("domain", "localhost"));
|
|
48
|
-
}
|
|
49
|
-
__instance__.user = {
|
|
50
|
-
priority: __instance__.__instanceID.toString(),
|
|
51
|
-
token: __token__
|
|
52
|
-
};
|
|
53
|
-
return __instance__.user;
|
|
54
|
-
},
|
|
55
|
-
alternate(cacheController) {
|
|
56
|
-
__instance__.user = cacheController.cache.getCached(__instance__.__instanceID.toString()); // setting dataObject with the cached value
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
generateIndex(s) {
|
|
@@ -36,9 +36,6 @@
|
|
|
36
36
|
`;
|
|
37
37
|
cached= false;
|
|
38
38
|
|
|
39
|
-
constructor (){
|
|
40
|
-
super(...arguments);
|
|
41
|
-
}
|
|
42
39
|
},
|
|
43
40
|
|
|
44
41
|
class GridComponent extends Component {
|
|
@@ -53,8 +50,8 @@
|
|
|
53
50
|
tplsource= "inline";
|
|
54
51
|
template= "<p>Loading...</p>";
|
|
55
52
|
|
|
56
|
-
constructor (){
|
|
57
|
-
super(
|
|
53
|
+
constructor (...o){
|
|
54
|
+
super(o);
|
|
58
55
|
this.body.setAttribute("controllerClass", "DataGridController");
|
|
59
56
|
var subcomponentClass = (this.body.getAttribute("subcomponentClass") !== null) ? (this.body.getAttribute("subcomponentClass")) : ("GridItemComponent");
|
|
60
57
|
this.body.setAttribute("subcomponentClass", subcomponentClass);
|
|
@@ -28,9 +28,8 @@
|
|
|
28
28
|
class FormField extends Component {
|
|
29
29
|
cached = false;
|
|
30
30
|
reload = true;
|
|
31
|
-
constructor()
|
|
32
|
-
super(
|
|
33
|
-
|
|
31
|
+
constructor (...o){
|
|
32
|
+
super(o);
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
createBindingEvents() {
|
|
@@ -103,9 +102,9 @@
|
|
|
103
102
|
view = null;
|
|
104
103
|
data = {};
|
|
105
104
|
|
|
106
|
-
constructor()
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
constructor (...o){
|
|
106
|
+
o.body = _DOMCreateElement("div");
|
|
107
|
+
super(o);
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
|
|
@@ -113,41 +112,38 @@
|
|
|
113
112
|
|
|
114
113
|
|
|
115
114
|
class ButtonField extends FormField {
|
|
116
|
-
constructor() {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
constructor(...o) {
|
|
116
|
+
o.fieldType = "button";
|
|
117
|
+
super(o);
|
|
120
118
|
}
|
|
121
119
|
},
|
|
122
120
|
|
|
123
121
|
class InputField extends FormField {
|
|
124
|
-
constructor() {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
122
|
+
constructor(...o) {
|
|
123
|
+
o.fieldType = "input";
|
|
124
|
+
super(o);
|
|
128
125
|
}
|
|
129
126
|
|
|
130
127
|
},
|
|
131
128
|
|
|
132
129
|
class TextField extends FormField {
|
|
133
|
-
constructor() {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
130
|
+
constructor(...o) {
|
|
131
|
+
o.fieldType = "textarea";
|
|
132
|
+
super(o);
|
|
137
133
|
}
|
|
138
134
|
|
|
139
135
|
},
|
|
140
136
|
|
|
141
137
|
class EmailField extends FormField {
|
|
142
|
-
constructor() {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
138
|
+
constructor(...o) {
|
|
139
|
+
o.fieldType = "input";
|
|
140
|
+
super(o);
|
|
146
141
|
}
|
|
147
142
|
|
|
148
143
|
},
|
|
149
144
|
|
|
150
145
|
class ModalEnclosureComponent extends Component {
|
|
146
|
+
name = "modalenclosure";
|
|
151
147
|
tplsource = "inline";
|
|
152
148
|
cached = false;
|
|
153
149
|
basePath = CONFIG.get("modalBasePath", CONFIG.get("remoteSDKPath"));
|
|
@@ -168,43 +164,42 @@
|
|
|
168
164
|
`;
|
|
169
165
|
|
|
170
166
|
data = {};
|
|
171
|
-
constructor() {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
this.body = _DOMCreateElement("div");
|
|
167
|
+
constructor(...o) {
|
|
168
|
+
o.body = _DOMCreateElement("div");
|
|
169
|
+
super(o);
|
|
175
170
|
}
|
|
176
171
|
|
|
177
172
|
},
|
|
178
173
|
|
|
179
174
|
class ModalComponent extends Component {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
var submodal = New(ClassFactory(
|
|
198
|
-
name:
|
|
199
|
-
basePath:
|
|
200
|
-
data:
|
|
175
|
+
name = "modal";
|
|
176
|
+
cached = false;
|
|
177
|
+
modalEnclosureComponentClass = "ModalEnclosureComponent";
|
|
178
|
+
controller = null;
|
|
179
|
+
view = null;
|
|
180
|
+
tplsource = "none";
|
|
181
|
+
closeOnClickOutside = false;
|
|
182
|
+
data = {
|
|
183
|
+
content: "",
|
|
184
|
+
modalId: 0
|
|
185
|
+
};
|
|
186
|
+
submodal = null;
|
|
187
|
+
|
|
188
|
+
constructor(...o) {
|
|
189
|
+
o.basePath = CONFIG.get("modalBasePath", CONFIG.get("remoteSDKPath"));
|
|
190
|
+
super(o);
|
|
191
|
+
this.data.modalId = this.__instanceID;
|
|
192
|
+
var submodal = New(ClassFactory(this.modalEnclosureComponentClass), {
|
|
193
|
+
name: this.name,
|
|
194
|
+
basePath: this.basePath,
|
|
195
|
+
data: this.data
|
|
201
196
|
});
|
|
202
|
-
|
|
203
|
-
|
|
197
|
+
this.subcomponents.push(submodal);
|
|
198
|
+
this.submodal = submodal;
|
|
204
199
|
if (submodal.tplsource == "none") {
|
|
205
|
-
|
|
200
|
+
this.body.innerHTML = submodal.parsedAssignmentText;
|
|
206
201
|
} else {
|
|
207
|
-
|
|
202
|
+
this.body.append(submodal.body);
|
|
208
203
|
}
|
|
209
204
|
|
|
210
205
|
}
|
|
@@ -266,10 +261,10 @@
|
|
|
266
261
|
cached = false;
|
|
267
262
|
basePath = CONFIG.get("remoteSDKPath");
|
|
268
263
|
tplextension = "tpl.html";
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
264
|
+
name = "swagger-ui";
|
|
265
|
+
|
|
266
|
+
constructor(...o) {
|
|
267
|
+
super(o);
|
|
273
268
|
|
|
274
269
|
}
|
|
275
270
|
|
|
@@ -33,8 +33,8 @@ Package("org.qcobjects.components.list",[
|
|
|
33
33
|
template="<a href=\"{{value}}\">{{label}}</a>";
|
|
34
34
|
cached= false;
|
|
35
35
|
|
|
36
|
-
constructor (){
|
|
37
|
-
super(
|
|
36
|
+
constructor (...o){
|
|
37
|
+
super(o);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
},
|
|
@@ -45,8 +45,8 @@ Package("org.qcobjects.components.list",[
|
|
|
45
45
|
tplsource= "inline";
|
|
46
46
|
template= "<p>Loading...</p>";
|
|
47
47
|
|
|
48
|
-
constructor ()
|
|
49
|
-
super(
|
|
48
|
+
constructor (...o){
|
|
49
|
+
super(o);
|
|
50
50
|
this.body.setAttribute("controllerClass","ListController");
|
|
51
51
|
this.body.setAttribute("subcomponentClass","ListItemComponent");
|
|
52
52
|
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
Package("org.quickcorp.components.notifications", [
|
|
28
28
|
|
|
29
29
|
class NotificationComponent extends Component {
|
|
30
|
+
name= "notification";
|
|
31
|
+
cached= false;
|
|
32
|
+
tplsource= "inline";
|
|
33
|
+
shadowed= false;
|
|
30
34
|
|
|
31
|
-
constructor (){
|
|
32
|
-
|
|
35
|
+
constructor (...o){
|
|
36
|
+
o.body = _DOMCreateElement("div");
|
|
37
|
+
super(o);
|
|
33
38
|
|
|
34
|
-
this.name= "notification";
|
|
35
|
-
this.cached= false;
|
|
36
|
-
this.tplsource= "inline";
|
|
37
|
-
this.shadowed= false;
|
|
38
|
-
this.body= _DOMCreateElement("div");
|
|
39
39
|
this.template= `
|
|
40
40
|
<style>
|
|
41
41
|
div.notification_background {
|
|
@@ -29,25 +29,24 @@ Package("org.qcobjects.components.slider",[
|
|
|
29
29
|
class SlideListComponent extends Component {
|
|
30
30
|
tplsource="inline";
|
|
31
31
|
template="<p>Loading...</p>";
|
|
32
|
+
name = "slidelist";
|
|
32
33
|
|
|
33
|
-
constructor (){
|
|
34
|
-
super(
|
|
35
|
-
this.name="slidelist";
|
|
34
|
+
constructor (...o){
|
|
35
|
+
super(o);
|
|
36
36
|
this.body.setAttribute("controllerClass","DataGridController");
|
|
37
37
|
var subcomponentClass = (this.body.getAttribute("subcomponentClass") !== null)?(this.body.getAttribute("subcomponentClass")):("GridItemComponent");
|
|
38
38
|
this.body.setAttribute("subcomponentClass",subcomponentClass);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
42
41
|
},
|
|
43
42
|
|
|
44
43
|
class SlideItemComponent extends Component {
|
|
45
44
|
effectClass = "Fade";
|
|
46
45
|
name = "slider_item";
|
|
47
46
|
|
|
48
|
-
constructor (
|
|
49
|
-
super(
|
|
50
|
-
this.data.slideNumber = data.__dataIndex+1;
|
|
47
|
+
constructor (...o) {
|
|
48
|
+
super(o);
|
|
49
|
+
this.data.slideNumber = this.data.__dataIndex+1;
|
|
51
50
|
this.template= `
|
|
52
51
|
<div class="qcoSlides" style="display:none">
|
|
53
52
|
<div class="qco-slider__numbertext">{{slideNumber}} / {{__dataLength}}</div>
|
|
@@ -66,8 +65,8 @@ Package("org.qcobjects.components.slider",[
|
|
|
66
65
|
class SliderComponent extends Component {
|
|
67
66
|
name = "slider";
|
|
68
67
|
|
|
69
|
-
constructor () {
|
|
70
|
-
super(
|
|
68
|
+
constructor (...o) {
|
|
69
|
+
super(o);
|
|
71
70
|
this.template= `
|
|
72
71
|
<style>
|
|
73
72
|
/* Slideshow container */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
logger.debugEnabled = true;
|
|
2
1
|
/**
|
|
3
2
|
* QCObjects SDK 2.4.0
|
|
4
3
|
* ________________
|
|
@@ -29,11 +28,10 @@ Package("org.qcobjects.components.base", [
|
|
|
29
28
|
class SplashScreenComponent extends Component {
|
|
30
29
|
cached = false;
|
|
31
30
|
shadowed= true;
|
|
31
|
+
name = "splashscreen";
|
|
32
32
|
|
|
33
|
-
constructor () {
|
|
34
|
-
super(
|
|
35
|
-
this.name= "splashscreen";
|
|
36
|
-
var o = this;
|
|
33
|
+
constructor (...o) {
|
|
34
|
+
super(o);
|
|
37
35
|
|
|
38
36
|
var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
|
|
39
37
|
let component = this;
|
|
@@ -115,6 +113,7 @@ Package("org.qcobjects.components.base", [
|
|
|
115
113
|
|
|
116
114
|
Package("org.qcobjects.components.splashscreen",[
|
|
117
115
|
class VideoSplashScreenComponent extends SplashScreenComponent {
|
|
116
|
+
name = "videosplashscreen";
|
|
118
117
|
cached= false;
|
|
119
118
|
shadowed= true;
|
|
120
119
|
tplsource= "inline";
|
|
@@ -284,14 +283,16 @@ Package("org.qcobjects.components.splashscreen",[
|
|
|
284
283
|
`;
|
|
285
284
|
|
|
286
285
|
|
|
287
|
-
constructor () {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
this.name= "videosplashscreen";
|
|
286
|
+
constructor (...o) {
|
|
287
|
+
super(o);
|
|
291
288
|
}
|
|
292
289
|
},
|
|
293
290
|
|
|
294
291
|
class CubeSplashScreenComponent extends SplashScreenComponent {
|
|
292
|
+
name= "cubesplashscreen";
|
|
293
|
+
cached= false;
|
|
294
|
+
shadowed= true;
|
|
295
|
+
tplsource= "inline";
|
|
295
296
|
template= `
|
|
296
297
|
<style>
|
|
297
298
|
@keyframes spin {
|
|
@@ -606,14 +607,8 @@ Package("org.qcobjects.components.splashscreen",[
|
|
|
606
607
|
|
|
607
608
|
`;
|
|
608
609
|
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
super(...arguments);
|
|
612
|
-
this.name= "cubesplashscreen";
|
|
613
|
-
this.cached= false;
|
|
614
|
-
this.shadowed= true;
|
|
615
|
-
this.tplsource= "inline";
|
|
616
|
-
|
|
610
|
+
constructor (...o) {
|
|
611
|
+
super(o);
|
|
617
612
|
}
|
|
618
613
|
|
|
619
614
|
}
|
|
@@ -30,13 +30,12 @@ Package("org.qcobjects.controllers.grid",[
|
|
|
30
30
|
dependencies=[];
|
|
31
31
|
component=null;
|
|
32
32
|
|
|
33
|
-
constructor (){
|
|
34
|
-
super(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
controller.cols=(controller.cols !== null)?(controller.cols):(controller.component.cols);
|
|
33
|
+
constructor ({component, dependencies=[]}){
|
|
34
|
+
super({component, dependencies});
|
|
35
|
+
this.rows=this.component.body.getAttribute("rows");
|
|
36
|
+
this.rows=(this.rows !== null)?(this.rows):(this.component.rows);
|
|
37
|
+
this.cols=this.component.body.getAttribute("cols");
|
|
38
|
+
this.cols=(this.cols !== null)?(this.cols):(this.component.cols);
|
|
40
39
|
|
|
41
40
|
}
|
|
42
41
|
|
|
@@ -27,10 +27,8 @@
|
|
|
27
27
|
Package("org.qcobjects.controllers",[
|
|
28
28
|
|
|
29
29
|
class GenericController extends Controller {
|
|
30
|
-
constructor () {
|
|
31
|
-
super(
|
|
32
|
-
this.dependencies=[];
|
|
33
|
-
this.component=null;
|
|
30
|
+
constructor ({component, dependencies = []}) {
|
|
31
|
+
super({component, dependencies});
|
|
34
32
|
|
|
35
33
|
}
|
|
36
34
|
|
|
@@ -32,18 +32,16 @@
|
|
|
32
32
|
valueField = undefined;
|
|
33
33
|
labelField = undefined;
|
|
34
34
|
|
|
35
|
-
constructor({component}) {
|
|
36
|
-
super(
|
|
35
|
+
constructor({component, dependencies = [], valueField = undefined, labelField = undefined}) {
|
|
36
|
+
super({component, dependencies, valueField, labelField});
|
|
37
37
|
this.component = component;
|
|
38
|
-
|
|
39
|
-
controller.component = component;
|
|
40
|
-
controller._componentRoot = (controller.component.shadowed) ? (controller.component.shadowRoot) : (controller.component.body);
|
|
38
|
+
this._componentRoot = (this.component.shadowed) ? (this.component.shadowRoot) : (this.component.body);
|
|
41
39
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
this.labelField = this.component.body.getAttribute("label-field");
|
|
41
|
+
this.valueField = this.component.body.getAttribute("value-field");
|
|
42
|
+
this.rows = this.component.body.getAttribute("rows");
|
|
43
|
+
this.rows = (this.rows !== null) ? (this.rows) : (this.component.rows);
|
|
44
|
+
this.cols = 1;
|
|
47
45
|
logger.debug("ListController INIT");
|
|
48
46
|
|
|
49
47
|
}
|
|
@@ -34,13 +34,12 @@
|
|
|
34
34
|
interval = null;
|
|
35
35
|
sliderHandlerName = null;
|
|
36
36
|
|
|
37
|
-
constructor({component}) {
|
|
38
|
-
super(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
controller._componentRoot = (component.shadowed) ? (component.shadowRoot) : (component.body);
|
|
37
|
+
constructor({component, dependencies= [], duration = 7100, slideIndex=0, interval = null, sliderHandlerName = null}) {
|
|
38
|
+
super({component, dependencies, duration, slideIndex, interval, sliderHandlerName});
|
|
39
|
+
this.component = component;
|
|
40
|
+
this._componentRoot = (component.shadowed) ? (component.shadowRoot) : (component.body);
|
|
42
41
|
//TODO: Implement
|
|
43
|
-
|
|
42
|
+
this.sliderHandlerName = "slider_" + this.component.__instanceID.toString();
|
|
44
43
|
global.set(controller.sliderHandlerName, this);
|
|
45
44
|
|
|
46
45
|
}
|
|
@@ -27,10 +27,8 @@
|
|
|
27
27
|
Package("org.qcobjects.controllers.swagger", [
|
|
28
28
|
|
|
29
29
|
class SwaggerUIController extends Controller {
|
|
30
|
-
constructor() {
|
|
31
|
-
super(
|
|
32
|
-
this.dependencies = [];
|
|
33
|
-
this.component = null;
|
|
30
|
+
constructor({component, dependencies = []}) {
|
|
31
|
+
super({component, dependencies});
|
|
34
32
|
|
|
35
33
|
}
|
|
36
34
|
|
|
@@ -26,9 +26,12 @@
|
|
|
26
26
|
(function () {
|
|
27
27
|
Package("org.qcobjects.effects.base", [
|
|
28
28
|
class Fade extends Effect {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
constructor({
|
|
30
|
+
duration = 1000
|
|
31
|
+
}) {
|
|
32
|
+
super({
|
|
33
|
+
duration
|
|
34
|
+
});
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
apply(element, alphaFrom, alphaTo) {
|
|
@@ -49,9 +52,12 @@
|
|
|
49
52
|
},
|
|
50
53
|
|
|
51
54
|
class Move extends Effect {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
constructor({
|
|
56
|
+
duration = 1000
|
|
57
|
+
}) {
|
|
58
|
+
super({
|
|
59
|
+
duration
|
|
60
|
+
});
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
apply(element, xfrom, yfrom, xto, yto) {
|
|
@@ -82,8 +88,12 @@
|
|
|
82
88
|
|
|
83
89
|
|
|
84
90
|
class MoveXInFromRight extends Move {
|
|
85
|
-
constructor
|
|
86
|
-
|
|
91
|
+
constructor({
|
|
92
|
+
duration = 1000
|
|
93
|
+
}) {
|
|
94
|
+
super({
|
|
95
|
+
duration
|
|
96
|
+
});
|
|
87
97
|
}
|
|
88
98
|
|
|
89
99
|
apply(element) {
|
|
@@ -92,8 +102,13 @@
|
|
|
92
102
|
},
|
|
93
103
|
|
|
94
104
|
class MoveXInFromLeft extends Move {
|
|
95
|
-
|
|
96
|
-
|
|
105
|
+
|
|
106
|
+
constructor({
|
|
107
|
+
duration = 1000
|
|
108
|
+
}) {
|
|
109
|
+
super({
|
|
110
|
+
duration
|
|
111
|
+
});
|
|
97
112
|
}
|
|
98
113
|
|
|
99
114
|
apply(element) {
|
|
@@ -102,8 +117,12 @@
|
|
|
102
117
|
},
|
|
103
118
|
|
|
104
119
|
class MoveYInFromBottom extends Move {
|
|
105
|
-
constructor
|
|
106
|
-
|
|
120
|
+
constructor({
|
|
121
|
+
duration = 1000
|
|
122
|
+
}) {
|
|
123
|
+
super({
|
|
124
|
+
duration
|
|
125
|
+
});
|
|
107
126
|
}
|
|
108
127
|
|
|
109
128
|
apply(element) {
|
|
@@ -113,8 +132,13 @@
|
|
|
113
132
|
},
|
|
114
133
|
|
|
115
134
|
class MoveYInFromTop extends Move {
|
|
116
|
-
|
|
117
|
-
|
|
135
|
+
|
|
136
|
+
constructor({
|
|
137
|
+
duration = 1000
|
|
138
|
+
}) {
|
|
139
|
+
super({
|
|
140
|
+
duration
|
|
141
|
+
});
|
|
118
142
|
}
|
|
119
143
|
|
|
120
144
|
apply(element) {
|
|
@@ -123,8 +147,13 @@
|
|
|
123
147
|
},
|
|
124
148
|
|
|
125
149
|
class RotateX extends Effect {
|
|
126
|
-
|
|
127
|
-
|
|
150
|
+
|
|
151
|
+
constructor({
|
|
152
|
+
duration = 1000
|
|
153
|
+
}) {
|
|
154
|
+
super({
|
|
155
|
+
duration
|
|
156
|
+
});
|
|
128
157
|
}
|
|
129
158
|
|
|
130
159
|
apply(element, angleFrom, angleTo) {
|
|
@@ -146,8 +175,13 @@
|
|
|
146
175
|
},
|
|
147
176
|
|
|
148
177
|
class RotateY extends Effect {
|
|
149
|
-
|
|
150
|
-
|
|
178
|
+
|
|
179
|
+
constructor({
|
|
180
|
+
duration = 1000
|
|
181
|
+
}) {
|
|
182
|
+
super({
|
|
183
|
+
duration
|
|
184
|
+
});
|
|
151
185
|
}
|
|
152
186
|
|
|
153
187
|
apply(element, angleFrom, angleTo) {
|
|
@@ -168,8 +202,13 @@
|
|
|
168
202
|
},
|
|
169
203
|
|
|
170
204
|
class RotateZ extends Effect {
|
|
171
|
-
|
|
172
|
-
|
|
205
|
+
|
|
206
|
+
constructor({
|
|
207
|
+
duration = 1000
|
|
208
|
+
}) {
|
|
209
|
+
super({
|
|
210
|
+
duration
|
|
211
|
+
});
|
|
173
212
|
}
|
|
174
213
|
|
|
175
214
|
apply(element, angleFrom, angleTo) {
|
|
@@ -191,8 +230,13 @@
|
|
|
191
230
|
},
|
|
192
231
|
|
|
193
232
|
class Rotate extends Effect {
|
|
194
|
-
|
|
195
|
-
|
|
233
|
+
|
|
234
|
+
constructor({
|
|
235
|
+
duration = 1000
|
|
236
|
+
}) {
|
|
237
|
+
super({
|
|
238
|
+
duration
|
|
239
|
+
});
|
|
196
240
|
}
|
|
197
241
|
|
|
198
242
|
apply(element, angleFrom, angleTo) {
|
|
@@ -213,8 +257,13 @@
|
|
|
213
257
|
},
|
|
214
258
|
|
|
215
259
|
class Radius extends Effect {
|
|
216
|
-
|
|
217
|
-
|
|
260
|
+
|
|
261
|
+
constructor({
|
|
262
|
+
duration = 1000
|
|
263
|
+
}) {
|
|
264
|
+
super({
|
|
265
|
+
duration
|
|
266
|
+
});
|
|
218
267
|
}
|
|
219
268
|
|
|
220
269
|
apply(element, radiusFrom, radiusTo) {
|
|
@@ -236,8 +285,13 @@
|
|
|
236
285
|
},
|
|
237
286
|
|
|
238
287
|
class Resize extends Effect {
|
|
239
|
-
|
|
240
|
-
|
|
288
|
+
|
|
289
|
+
constructor({
|
|
290
|
+
duration = 1000
|
|
291
|
+
}) {
|
|
292
|
+
super({
|
|
293
|
+
duration
|
|
294
|
+
});
|
|
241
295
|
}
|
|
242
296
|
|
|
243
297
|
apply(element, scaleFrom, scaleTo) {
|
|
@@ -260,8 +314,12 @@
|
|
|
260
314
|
},
|
|
261
315
|
|
|
262
316
|
class WipeLeft extends Effect {
|
|
263
|
-
constructor
|
|
264
|
-
|
|
317
|
+
constructor({
|
|
318
|
+
duration = 1000
|
|
319
|
+
}) {
|
|
320
|
+
super({
|
|
321
|
+
duration
|
|
322
|
+
});
|
|
265
323
|
}
|
|
266
324
|
|
|
267
325
|
apply(element, scaleFrom, scaleTo) {
|
|
@@ -284,8 +342,13 @@
|
|
|
284
342
|
},
|
|
285
343
|
|
|
286
344
|
class WipeRight extends Effect {
|
|
287
|
-
|
|
288
|
-
|
|
345
|
+
|
|
346
|
+
constructor({
|
|
347
|
+
duration = 1000
|
|
348
|
+
}) {
|
|
349
|
+
super({
|
|
350
|
+
duration
|
|
351
|
+
});
|
|
289
352
|
}
|
|
290
353
|
|
|
291
354
|
apply(element, scaleFrom, scaleTo) {
|
|
@@ -308,8 +371,13 @@
|
|
|
308
371
|
},
|
|
309
372
|
|
|
310
373
|
class WipeUp extends Effect {
|
|
311
|
-
|
|
312
|
-
|
|
374
|
+
|
|
375
|
+
constructor({
|
|
376
|
+
duration = 1000
|
|
377
|
+
}) {
|
|
378
|
+
super({
|
|
379
|
+
duration
|
|
380
|
+
});
|
|
313
381
|
}
|
|
314
382
|
|
|
315
383
|
apply(element, scaleFrom, scaleTo) {
|
|
@@ -332,8 +400,13 @@
|
|
|
332
400
|
},
|
|
333
401
|
|
|
334
402
|
class WipeDown extends Effect {
|
|
335
|
-
|
|
336
|
-
|
|
403
|
+
|
|
404
|
+
constructor({
|
|
405
|
+
duration = 1000
|
|
406
|
+
}) {
|
|
407
|
+
super({
|
|
408
|
+
duration
|
|
409
|
+
});
|
|
337
410
|
}
|
|
338
411
|
|
|
339
412
|
apply(element, scaleFrom, scaleTo) {
|
|
@@ -355,34 +428,43 @@
|
|
|
355
428
|
}
|
|
356
429
|
|
|
357
430
|
]);
|
|
358
|
-
Package("org.qcobjects.modal.effects",[
|
|
431
|
+
Package("org.qcobjects.modal.effects", [
|
|
359
432
|
|
|
360
433
|
class ModalFade extends Fade {
|
|
361
|
-
constructor
|
|
362
|
-
|
|
363
|
-
|
|
434
|
+
constructor({
|
|
435
|
+
duration = 500
|
|
436
|
+
}) {
|
|
437
|
+
super({
|
|
438
|
+
duration
|
|
439
|
+
});
|
|
364
440
|
}
|
|
365
|
-
|
|
441
|
+
|
|
366
442
|
},
|
|
367
|
-
|
|
443
|
+
|
|
368
444
|
class ModalMoveDown extends Move {
|
|
369
|
-
constructor
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
445
|
+
constructor({
|
|
446
|
+
duration = 300
|
|
447
|
+
}) {
|
|
448
|
+
super({
|
|
449
|
+
duration
|
|
450
|
+
});
|
|
451
|
+
|
|
373
452
|
}
|
|
374
|
-
|
|
453
|
+
|
|
375
454
|
},
|
|
376
|
-
|
|
455
|
+
|
|
377
456
|
class ModalMoveUp extends Move {
|
|
378
|
-
constructor
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
457
|
+
constructor({
|
|
458
|
+
duration = 800
|
|
459
|
+
}) {
|
|
460
|
+
super({
|
|
461
|
+
duration
|
|
462
|
+
});
|
|
463
|
+
|
|
382
464
|
}
|
|
383
|
-
|
|
465
|
+
|
|
384
466
|
}
|
|
385
|
-
|
|
467
|
+
|
|
386
468
|
]);
|
|
387
|
-
|
|
388
|
-
}).call(null);
|
|
469
|
+
|
|
470
|
+
}).call(null);
|
|
@@ -28,18 +28,17 @@ Package("org.qcobjects.i18n_messages", [
|
|
|
28
28
|
|
|
29
29
|
class i18n_messages extends InheritClass {
|
|
30
30
|
|
|
31
|
-
constructor () {
|
|
32
|
-
super(
|
|
33
|
-
var i18n = this;
|
|
31
|
+
constructor ({messages}) {
|
|
32
|
+
super({messages});
|
|
34
33
|
if (CONFIG.get("use_i18n")){
|
|
35
34
|
CONFIG.set("lang", "en");
|
|
36
35
|
if (!global.get("i18n")){
|
|
37
36
|
global.set("i18n", {
|
|
38
|
-
messages:
|
|
37
|
+
messages: messages
|
|
39
38
|
});
|
|
40
39
|
} else {
|
|
41
40
|
global.set("i18n", {
|
|
42
|
-
messages: global.get("i18n").messages.concat(
|
|
41
|
+
messages: global.get("i18n").messages.concat(messages)
|
|
43
42
|
});
|
|
44
43
|
}
|
|
45
44
|
}
|
|
@@ -28,10 +28,8 @@ Package("org.qcobjects.modal.controllers",[
|
|
|
28
28
|
|
|
29
29
|
class ModalController extends Controller {
|
|
30
30
|
|
|
31
|
-
constructor () {
|
|
32
|
-
super(
|
|
33
|
-
this.dependencies=[];
|
|
34
|
-
this.component=null;
|
|
31
|
+
constructor ({component, dependencies = []}) {
|
|
32
|
+
super({component, dependencies});
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
done (){
|
|
@@ -21,37 +21,46 @@
|
|
|
21
21
|
*
|
|
22
22
|
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
23
23
|
* license document, but changing it is not allowed.
|
|
24
|
-
*/
|
|
25
|
-
(function() {
|
|
26
|
-
"use strict";
|
|
27
|
-
Package("org.qcobjects.modal.effects",[
|
|
28
|
-
|
|
29
|
-
class ModalFade extends Fade {
|
|
30
|
-
constructor () {
|
|
31
|
-
super();
|
|
32
|
-
this.duration=500;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
},
|
|
24
|
+
*/
|
|
25
|
+
(function () {
|
|
26
|
+
"use strict";
|
|
27
|
+
Package("org.qcobjects.modal.effects", [
|
|
36
28
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
class ModalFade extends Fade {
|
|
30
|
+
constructor({
|
|
31
|
+
duration = 500
|
|
32
|
+
}) {
|
|
33
|
+
super({
|
|
34
|
+
duration
|
|
35
|
+
});
|
|
36
|
+
}
|
|
41
37
|
|
|
42
|
-
}
|
|
38
|
+
},
|
|
43
39
|
|
|
44
|
-
|
|
40
|
+
class ModalMoveDown extends Move {
|
|
41
|
+
constructor({
|
|
42
|
+
duration = 300
|
|
43
|
+
}) {
|
|
44
|
+
super({
|
|
45
|
+
duration
|
|
46
|
+
});
|
|
45
47
|
|
|
46
|
-
|
|
47
|
-
constructor () {
|
|
48
|
-
super();
|
|
49
|
-
this.duration=800;
|
|
48
|
+
}
|
|
50
49
|
|
|
51
|
-
}
|
|
50
|
+
},
|
|
52
51
|
|
|
53
|
-
|
|
52
|
+
class ModalMoveUp extends Move {
|
|
53
|
+
constructor({
|
|
54
|
+
duration = 800
|
|
55
|
+
}) {
|
|
56
|
+
super({
|
|
57
|
+
duration
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
}
|
|
54
63
|
|
|
55
|
-
]);
|
|
64
|
+
]);
|
|
56
65
|
|
|
57
|
-
}).call(null);
|
|
66
|
+
}).call(null);
|
|
@@ -21,28 +21,38 @@
|
|
|
21
21
|
*
|
|
22
22
|
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
23
23
|
* license document, but changing it is not allowed.
|
|
24
|
-
*/
|
|
25
|
-
(function() {
|
|
26
|
-
"use strict";
|
|
27
|
-
Package("org.qcobjects.models",[
|
|
24
|
+
*/
|
|
25
|
+
(function () {
|
|
26
|
+
"use strict";
|
|
27
|
+
Package("org.qcobjects.models", [
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
class Contact extends VO {
|
|
30
|
+
|
|
31
|
+
constructor({
|
|
32
|
+
first_name = "",
|
|
33
|
+
last_name = "",
|
|
34
|
+
address = "",
|
|
35
|
+
postalCode = "",
|
|
36
|
+
city = "",
|
|
37
|
+
country = "",
|
|
38
|
+
email = "",
|
|
39
|
+
phone = ""
|
|
40
|
+
}) {
|
|
41
|
+
super({
|
|
42
|
+
first_name,
|
|
43
|
+
last_name,
|
|
44
|
+
address,
|
|
45
|
+
postalCode,
|
|
46
|
+
city,
|
|
47
|
+
country,
|
|
48
|
+
email,
|
|
49
|
+
phone
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
}
|
|
30
53
|
|
|
31
|
-
constructor (){
|
|
32
|
-
super(...arguments);
|
|
33
|
-
this.first_name="";
|
|
34
|
-
this.last_name="";
|
|
35
|
-
this.address="";
|
|
36
|
-
this.postalCode="";
|
|
37
|
-
this.city="";
|
|
38
|
-
this.country="";
|
|
39
|
-
this.email="";
|
|
40
|
-
this.phone="";
|
|
41
|
-
|
|
42
54
|
}
|
|
43
|
-
|
|
44
|
-
}
|
|
45
55
|
|
|
46
|
-
]);
|
|
56
|
+
]);
|
|
47
57
|
|
|
48
|
-
}).call(null);
|
|
58
|
+
}).call(null);
|
|
@@ -28,11 +28,8 @@
|
|
|
28
28
|
|
|
29
29
|
class BasicLayout extends InheritClass {
|
|
30
30
|
|
|
31
|
-
constructor () {
|
|
32
|
-
super(
|
|
33
|
-
this.dependencies=[];
|
|
34
|
-
this.component=null;
|
|
35
|
-
|
|
31
|
+
constructor ({component = null, dependencies = []}) {
|
|
32
|
+
super({component, dependencies});
|
|
36
33
|
}
|
|
37
34
|
|
|
38
35
|
load (){
|
|
@@ -28,10 +28,8 @@ Package("org.qcobjects.views",[
|
|
|
28
28
|
|
|
29
29
|
class GridView extends View {
|
|
30
30
|
|
|
31
|
-
constructor (){
|
|
32
|
-
super(
|
|
33
|
-
this.dependencies=[];
|
|
34
|
-
this.component=null;
|
|
31
|
+
constructor ({component = null, dependencies = []}){
|
|
32
|
+
super({component, dependencies});
|
|
35
33
|
|
|
36
34
|
}
|
|
37
35
|
|