qcobjects-sdk 2.4.19 → 2.4.21
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/QCObjects-SDK.js +1 -3
- package/VERSION +1 -1
- package/js/org.qcobjects.cloud.auth.session.data.js +1 -1
- package/js/org.qcobjects.cloud.auth.session.usertoken.js +1 -1
- package/js/org.qcobjects.components.grid.js +2 -2
- package/js/org.qcobjects.components.js +33 -30
- package/js/org.qcobjects.components.list.js +2 -2
- package/js/org.qcobjects.components.notifications.js +5 -2
- package/js/org.qcobjects.components.slider.js +3 -3
- package/js/org.qcobjects.components.splashscreen.js +16 -14
- package/js/org.qcobjects.controllers.form.js +1 -1
- package/js/org.qcobjects.controllers.grid.js +2 -2
- package/js/org.qcobjects.controllers.js +1 -1
- package/js/org.qcobjects.controllers.list.js +1 -1
- package/js/org.qcobjects.controllers.slider.js +1 -1
- package/js/org.qcobjects.controllers.swagger.js +1 -1
- package/js/org.qcobjects.effects.js +120 -19
- package/js/org.qcobjects.i18n_messages.js +11 -13
- package/js/org.qcobjects.modal.controllers.js +1 -1
- package/js/org.qcobjects.models.js +1 -1
- package/js/org.qcobjects.tools.canvas.js +3 -0
- package/js/org.qcobjects.tools.js +1 -1
- package/js/org.qcobjects.tools.layouts.js +1 -1
- package/js/org.qcobjects.views.js +1 -1
- package/package.json +1 -1
package/QCObjects-SDK.js
CHANGED
|
@@ -61,10 +61,9 @@
|
|
|
61
61
|
Import("org.qcobjects.controllers.slider", function () {}, external),
|
|
62
62
|
Import("org.qcobjects.controllers.form", function () {}, external),
|
|
63
63
|
Import("org.qcobjects.controllers.swagger", function () {}, external),
|
|
64
|
+
Import("org.qcobjects.effects", function () {}, external),
|
|
64
65
|
Import("org.qcobjects.modal.controllers", function () {}, external),
|
|
65
|
-
Import("org.qcobjects.modal.effects", function () {}, external),
|
|
66
66
|
Import("org.qcobjects.views", function () {}, external),
|
|
67
|
-
Import("org.qcobjects.effects", function () {}, external),
|
|
68
67
|
Import("org.qcobjects.tools.canvas", function () {}, external),
|
|
69
68
|
Import("org.qcobjects.tools.layouts", function () {}, external),
|
|
70
69
|
Import("org.qcobjects.cloud.auth.session.usertoken", function () {}, external),
|
|
@@ -117,7 +116,6 @@
|
|
|
117
116
|
Import(_relative_path_ + "org.qcobjects.controllers", function () {}, external),
|
|
118
117
|
Import(_relative_path_ + "org.qcobjects.views", function () {}, external),
|
|
119
118
|
Import(_relative_path_ + "org.qcobjects.effects", function () {}, external),
|
|
120
|
-
Import(_relative_path_ + "org.qcobjects.modal.effects", function () {}, external),
|
|
121
119
|
Import(_relative_path_ + "org.qcobjects.tools.canvas", function () {}, external),
|
|
122
120
|
Import(_relative_path_ + "org.qcobjects.tools.layouts", function () {}, external),
|
|
123
121
|
Import(_relative_path_ + "org.qcobjects.cloud.auth.session.usertoken", function () {}, external),
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.21
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
class GridItemComponent extends Component {
|
|
30
30
|
|
|
31
31
|
constructor (){
|
|
32
|
-
super();
|
|
32
|
+
super(...arguments);
|
|
33
33
|
this.name = "grid-item";
|
|
34
34
|
this.shadowed= true;
|
|
35
35
|
this.tplsource= "inline";
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
class GridComponent extends Component {
|
|
45
45
|
constructor (){
|
|
46
|
-
super();
|
|
46
|
+
super(...arguments);
|
|
47
47
|
this.name= "grid";
|
|
48
48
|
this.cached= false;
|
|
49
49
|
this.view= null;
|
|
@@ -24,35 +24,15 @@
|
|
|
24
24
|
*/
|
|
25
25
|
"use strict";
|
|
26
26
|
(function() {
|
|
27
|
-
Package("org.qcobjects.components",[
|
|
28
|
-
|
|
29
|
-
class ShadowedComponent extends Component {
|
|
30
|
-
constructor (){
|
|
31
|
-
super ();
|
|
32
|
-
this.container=null;
|
|
33
|
-
this.body=null;
|
|
34
|
-
this.shadowed=true;
|
|
35
|
-
this.cached=false;
|
|
36
|
-
this.controller=null;
|
|
37
|
-
this.view=null;
|
|
38
|
-
this.data={};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
_new_ (){
|
|
42
|
-
super._new_();
|
|
43
|
-
this.body = _DOMCreateElement("div");
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
|
|
27
|
+
Package("org.qcobjects.base.components", [
|
|
48
28
|
class FormField extends Component {
|
|
49
29
|
constructor (){
|
|
50
|
-
super
|
|
30
|
+
super(...arguments);
|
|
51
31
|
this.cached = false;
|
|
52
32
|
this.reload = true;
|
|
53
33
|
|
|
54
34
|
}
|
|
55
|
-
|
|
35
|
+
|
|
56
36
|
createBindingEvents(){
|
|
57
37
|
var thisobj = this;
|
|
58
38
|
var _objList;
|
|
@@ -106,13 +86,36 @@
|
|
|
106
86
|
thisobj.createBindingEvents();
|
|
107
87
|
logger.debug("Field loaded: "+thisobj.fieldType+"[name="+thisobj.name+"]");
|
|
108
88
|
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
]);
|
|
94
|
+
Package("org.qcobjects.form.components",[
|
|
109
95
|
|
|
96
|
+
class ShadowedComponent extends Component {
|
|
97
|
+
constructor (){
|
|
98
|
+
super(...arguments);
|
|
99
|
+
this.container=null;
|
|
100
|
+
this.body=null;
|
|
101
|
+
this.shadowed=true;
|
|
102
|
+
this.cached=false;
|
|
103
|
+
this.controller=null;
|
|
104
|
+
this.view=null;
|
|
105
|
+
this.data={};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
_new_ (){
|
|
109
|
+
super._new_();
|
|
110
|
+
this.body = _DOMCreateElement("div");
|
|
111
|
+
}
|
|
110
112
|
|
|
111
113
|
},
|
|
112
114
|
|
|
115
|
+
|
|
113
116
|
class ButtonField extends FormField {
|
|
114
117
|
constructor (){
|
|
115
|
-
super();
|
|
118
|
+
super(...arguments);
|
|
116
119
|
this.fieldType="button";
|
|
117
120
|
|
|
118
121
|
}
|
|
@@ -120,7 +123,7 @@
|
|
|
120
123
|
|
|
121
124
|
class InputField extends FormField {
|
|
122
125
|
constructor (){
|
|
123
|
-
super();
|
|
126
|
+
super(...arguments);
|
|
124
127
|
this.fieldType="input";
|
|
125
128
|
|
|
126
129
|
}
|
|
@@ -129,7 +132,7 @@
|
|
|
129
132
|
|
|
130
133
|
class TextField extends FormField {
|
|
131
134
|
constructor (){
|
|
132
|
-
super();
|
|
135
|
+
super(...arguments);
|
|
133
136
|
this.fieldType="textarea";
|
|
134
137
|
|
|
135
138
|
}
|
|
@@ -138,7 +141,7 @@
|
|
|
138
141
|
|
|
139
142
|
class EmailField extends FormField {
|
|
140
143
|
constructor (){
|
|
141
|
-
super();
|
|
144
|
+
super(...arguments);
|
|
142
145
|
this.fieldType="input";
|
|
143
146
|
|
|
144
147
|
}
|
|
@@ -147,7 +150,7 @@
|
|
|
147
150
|
|
|
148
151
|
class ModalEnclosureComponent extends Component {
|
|
149
152
|
constructor (){
|
|
150
|
-
super();
|
|
153
|
+
super(...arguments);
|
|
151
154
|
this.name="modal";
|
|
152
155
|
this.tplsource="inline";
|
|
153
156
|
this.cached=false;
|
|
@@ -175,7 +178,7 @@
|
|
|
175
178
|
|
|
176
179
|
class ModalComponent extends Component {
|
|
177
180
|
constructor (){
|
|
178
|
-
super();
|
|
181
|
+
super(...arguments);
|
|
179
182
|
this.name="modal";
|
|
180
183
|
this.cached=false;
|
|
181
184
|
this.modalEnclosureComponentClass="ModalEnclosureComponent";
|
|
@@ -268,7 +271,7 @@
|
|
|
268
271
|
|
|
269
272
|
class SwaggerUIComponent extends Component {
|
|
270
273
|
constructor (){
|
|
271
|
-
super();
|
|
274
|
+
super(...arguments);
|
|
272
275
|
this.name="swagger-ui";
|
|
273
276
|
this.cached=false;
|
|
274
277
|
this.basePath= CONFIG.get("remoteSDKPath");
|
|
@@ -28,7 +28,7 @@ Package("org.qcobjects.components.list",[
|
|
|
28
28
|
|
|
29
29
|
class ListItemComponent extends Component {
|
|
30
30
|
constructor (){
|
|
31
|
-
super();
|
|
31
|
+
super(...arguments);
|
|
32
32
|
this.name="list-item";
|
|
33
33
|
this.shadowed= false;
|
|
34
34
|
this.tplsource= "inline";
|
|
@@ -41,7 +41,7 @@ Package("org.qcobjects.components.list",[
|
|
|
41
41
|
|
|
42
42
|
class ListComponent extends Component {
|
|
43
43
|
constructor () {
|
|
44
|
-
super();
|
|
44
|
+
super(...arguments);
|
|
45
45
|
this.name="list";
|
|
46
46
|
this.shadowed= true;
|
|
47
47
|
this.tplsource= "inline";
|
|
@@ -29,7 +29,7 @@ Package("org.quickcorp.components.notifications", [
|
|
|
29
29
|
class NotificationComponent extends Component {
|
|
30
30
|
|
|
31
31
|
constructor (){
|
|
32
|
-
super();
|
|
32
|
+
super(...arguments);
|
|
33
33
|
|
|
34
34
|
this.name= "notification";
|
|
35
35
|
this.cached= false;
|
|
@@ -183,5 +183,8 @@ Package("org.quickcorp.components.notifications", [
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
]);
|
|
186
|
-
|
|
186
|
+
NotificationComponent.success = () => (new NotificationComponent({name:"notification",tplsource:"none"})).success(...arguments);
|
|
187
|
+
NotificationComponent.danger = () => (new NotificationComponent({name:"notification",tplsource:"none"})).danger(...arguments);
|
|
188
|
+
NotificationComponent.info = () => (new NotificationComponent({name:"notification",tplsource:"none"})).info(...arguments);
|
|
189
|
+
NotificationComponent.warning = () => (new NotificationComponent({name:"notification",tplsource:"none"})).warning(...arguments);
|
|
187
190
|
}).call(null);
|
|
@@ -29,7 +29,7 @@ Package("org.qcobjects.components.slider",[
|
|
|
29
29
|
class SlideListComponent extends Component {
|
|
30
30
|
|
|
31
31
|
constructor (){
|
|
32
|
-
super();
|
|
32
|
+
super(...arguments);
|
|
33
33
|
this.name="slidelist";
|
|
34
34
|
this.tplsource="inline";
|
|
35
35
|
this.template="<p>Loading...</p>";
|
|
@@ -49,7 +49,7 @@ Package("org.qcobjects.components.slider",[
|
|
|
49
49
|
class SlideItemComponent extends Component {
|
|
50
50
|
|
|
51
51
|
constructor () {
|
|
52
|
-
super();
|
|
52
|
+
super(...arguments);
|
|
53
53
|
this.name="slider_item";
|
|
54
54
|
this.template= `
|
|
55
55
|
<div class="qcoSlides" style="display:none">
|
|
@@ -75,7 +75,7 @@ Package("org.qcobjects.components.slider",[
|
|
|
75
75
|
class SliderComponent extends Component {
|
|
76
76
|
|
|
77
77
|
constructor () {
|
|
78
|
-
super();
|
|
78
|
+
super(...arguments);
|
|
79
79
|
this.name="slider";
|
|
80
80
|
this.template= `
|
|
81
81
|
<style>
|
|
@@ -25,20 +25,15 @@ logger.debugEnabled = true;
|
|
|
25
25
|
*/
|
|
26
26
|
(function() {
|
|
27
27
|
"use strict";
|
|
28
|
-
Package("org.qcobjects.components.
|
|
29
|
-
|
|
28
|
+
Package("org.qcobjects.components.base", [
|
|
30
29
|
class SplashScreenComponent extends Component {
|
|
31
30
|
constructor () {
|
|
32
|
-
super();
|
|
31
|
+
super(...arguments);
|
|
33
32
|
this.name= "splashscreen";
|
|
34
33
|
this.cached= false;
|
|
35
34
|
this.shadowed= true;
|
|
35
|
+
var o = this;
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
_new_(o) {
|
|
41
|
-
super._new_(o);
|
|
42
37
|
var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
|
|
43
38
|
let component = this;
|
|
44
39
|
var isStartURL = (location.hash === ""
|
|
@@ -84,13 +79,13 @@ Package("org.qcobjects.components.splashscreen",[
|
|
|
84
79
|
_componentRoot.subelements("#slot-logo").map(function (slotlogo){
|
|
85
80
|
slotlogo.style.display = "block";
|
|
86
81
|
slotlogo.style.transformOrigin = "center";
|
|
87
|
-
Resize.apply(slotlogo,1,0);
|
|
82
|
+
(new Resize()).apply(slotlogo,1,0);
|
|
88
83
|
});
|
|
89
|
-
Fade.apply(_componentRoot, 1, 0);
|
|
84
|
+
(new Fade()).apply(_componentRoot, 1, 0);
|
|
90
85
|
}
|
|
91
86
|
}, (duration-displayEffectDuration));
|
|
92
87
|
setTimeout(function() {
|
|
93
|
-
Fade.apply(mainElement, 0, 1);
|
|
88
|
+
(new Fade()).apply(mainElement, 0, 1);
|
|
94
89
|
mainElement.style.position = mainComponent._mainPosition;
|
|
95
90
|
document.body.style.backgroundColor = component._bgcolor;
|
|
96
91
|
_componentRoot.parentElement.remove();
|
|
@@ -109,13 +104,20 @@ Package("org.qcobjects.components.splashscreen",[
|
|
|
109
104
|
} else {
|
|
110
105
|
component.body.style.display="none";
|
|
111
106
|
}
|
|
107
|
+
|
|
112
108
|
}
|
|
113
109
|
|
|
114
|
-
|
|
110
|
+
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
]);
|
|
114
|
+
|
|
115
|
+
Package("org.qcobjects.components.splashscreen",[
|
|
116
|
+
|
|
115
117
|
|
|
116
118
|
class VideoSplashScreenComponent extends SplashScreenComponent {
|
|
117
119
|
constructor () {
|
|
118
|
-
super();
|
|
120
|
+
super(...arguments);
|
|
119
121
|
|
|
120
122
|
this.name= "videosplashscreen";
|
|
121
123
|
this.cached= false;
|
|
@@ -291,7 +293,7 @@ Package("org.qcobjects.components.splashscreen",[
|
|
|
291
293
|
class CubeSplashScreenComponent extends SplashScreenComponent {
|
|
292
294
|
|
|
293
295
|
constructor () {
|
|
294
|
-
super();
|
|
296
|
+
super(...arguments);
|
|
295
297
|
this.name= "cubesplashscreen";
|
|
296
298
|
this.cached= false;
|
|
297
299
|
this.shadowed= true;
|
|
@@ -29,7 +29,7 @@ Package("org.qcobjects.controllers.grid",[
|
|
|
29
29
|
class GridComponent extends Controller {
|
|
30
30
|
|
|
31
31
|
constructor (){
|
|
32
|
-
super();
|
|
32
|
+
super(...arguments);
|
|
33
33
|
this.dependencies=[];
|
|
34
34
|
this.component=null;
|
|
35
35
|
|
|
@@ -80,7 +80,7 @@ Package("org.qcobjects.controllers.grid",[
|
|
|
80
80
|
|
|
81
81
|
class DataGridController extends Controller {
|
|
82
82
|
constructor (){
|
|
83
|
-
super();
|
|
83
|
+
super(...arguments);
|
|
84
84
|
this.dependencies=[];
|
|
85
85
|
this.component=null;
|
|
86
86
|
|
|
@@ -24,9 +24,36 @@
|
|
|
24
24
|
*/
|
|
25
25
|
"use strict";
|
|
26
26
|
(function () {
|
|
27
|
-
Package("org.qcobjects.
|
|
27
|
+
Package("org.qcobjects.effects.base", [
|
|
28
|
+
class Fade extends Effect {
|
|
29
|
+
|
|
30
|
+
constructor () {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
apply(element, alphaFrom, alphaTo) {
|
|
35
|
+
var da = alphaTo - alphaFrom;
|
|
36
|
+
this.animate({
|
|
37
|
+
duration: this.duration,
|
|
38
|
+
timing(timeFraction) {
|
|
39
|
+
return timeFraction;
|
|
40
|
+
},
|
|
41
|
+
draw(progress) {
|
|
42
|
+
logger.debug("animation progress: " + progress.toString());
|
|
43
|
+
var alpha = alphaFrom + (progress * da / 100);
|
|
44
|
+
logger.debug("alpha: " + alpha.toString());
|
|
45
|
+
element.style.opacity = alpha.toString();
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
},
|
|
28
50
|
|
|
29
51
|
class Move extends Effect {
|
|
52
|
+
|
|
53
|
+
constructor () {
|
|
54
|
+
super(...arguments);
|
|
55
|
+
}
|
|
56
|
+
|
|
30
57
|
apply(element, xfrom, yfrom, xto, yto) {
|
|
31
58
|
var dx = xto - xfrom;
|
|
32
59
|
var dy = yto - yfrom;
|
|
@@ -46,21 +73,39 @@
|
|
|
46
73
|
});
|
|
47
74
|
}
|
|
48
75
|
|
|
49
|
-
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
]);
|
|
80
|
+
|
|
81
|
+
Package("org.qcobjects.effects.extended", [
|
|
82
|
+
|
|
50
83
|
|
|
51
84
|
class MoveXInFromRight extends Move {
|
|
85
|
+
constructor () {
|
|
86
|
+
super(...arguments);
|
|
87
|
+
}
|
|
88
|
+
|
|
52
89
|
apply(element) {
|
|
53
90
|
super.apply.call(this, element, element.width, 0, 0, 0);
|
|
54
91
|
}
|
|
55
92
|
},
|
|
56
93
|
|
|
57
94
|
class MoveXInFromLeft extends Move {
|
|
95
|
+
constructor () {
|
|
96
|
+
super(...arguments);
|
|
97
|
+
}
|
|
98
|
+
|
|
58
99
|
apply(element) {
|
|
59
100
|
super.apply.call(this, element, -element.width, 0, 0, 0);
|
|
60
101
|
}
|
|
61
102
|
},
|
|
62
103
|
|
|
63
104
|
class MoveYInFromBottom extends Move {
|
|
105
|
+
constructor () {
|
|
106
|
+
super(...arguments);
|
|
107
|
+
}
|
|
108
|
+
|
|
64
109
|
apply(element) {
|
|
65
110
|
super.apply.call(this, element, 0, element.height, 0, 0);
|
|
66
111
|
}
|
|
@@ -68,12 +113,20 @@
|
|
|
68
113
|
},
|
|
69
114
|
|
|
70
115
|
class MoveYInFromTop extends Move {
|
|
116
|
+
constructor () {
|
|
117
|
+
super(...arguments);
|
|
118
|
+
}
|
|
119
|
+
|
|
71
120
|
apply(element) {
|
|
72
121
|
super.apply.call(this, element, 0, -element.height, 0, 0);
|
|
73
122
|
}
|
|
74
123
|
},
|
|
75
124
|
|
|
76
125
|
class RotateX extends Effect {
|
|
126
|
+
constructor () {
|
|
127
|
+
super(...arguments);
|
|
128
|
+
}
|
|
129
|
+
|
|
77
130
|
apply(element, angleFrom, angleTo) {
|
|
78
131
|
var da = angleTo - angleFrom;
|
|
79
132
|
this.animate({
|
|
@@ -93,6 +146,10 @@
|
|
|
93
146
|
},
|
|
94
147
|
|
|
95
148
|
class RotateY extends Effect {
|
|
149
|
+
constructor () {
|
|
150
|
+
super(...arguments);
|
|
151
|
+
}
|
|
152
|
+
|
|
96
153
|
apply(element, angleFrom, angleTo) {
|
|
97
154
|
var da = angleTo - angleFrom;
|
|
98
155
|
this.animate({
|
|
@@ -111,6 +168,10 @@
|
|
|
111
168
|
},
|
|
112
169
|
|
|
113
170
|
class RotateZ extends Effect {
|
|
171
|
+
constructor () {
|
|
172
|
+
super(...arguments);
|
|
173
|
+
}
|
|
174
|
+
|
|
114
175
|
apply(element, angleFrom, angleTo) {
|
|
115
176
|
var da = angleTo - angleFrom;
|
|
116
177
|
this.animate({
|
|
@@ -130,6 +191,10 @@
|
|
|
130
191
|
},
|
|
131
192
|
|
|
132
193
|
class Rotate extends Effect {
|
|
194
|
+
constructor () {
|
|
195
|
+
super(...arguments);
|
|
196
|
+
}
|
|
197
|
+
|
|
133
198
|
apply(element, angleFrom, angleTo) {
|
|
134
199
|
var da = angleTo - angleFrom;
|
|
135
200
|
this.animate({
|
|
@@ -147,25 +212,11 @@
|
|
|
147
212
|
}
|
|
148
213
|
},
|
|
149
214
|
|
|
150
|
-
class
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
this.animate({
|
|
154
|
-
duration: this.duration,
|
|
155
|
-
timing(timeFraction) {
|
|
156
|
-
return timeFraction;
|
|
157
|
-
},
|
|
158
|
-
draw(progress) {
|
|
159
|
-
logger.debug("animation progress: " + progress.toString());
|
|
160
|
-
var alpha = alphaFrom + (progress * da / 100);
|
|
161
|
-
logger.debug("alpha: " + alpha.toString());
|
|
162
|
-
element.style.opacity = alpha.toString();
|
|
163
|
-
}
|
|
164
|
-
});
|
|
215
|
+
class Radius extends Effect {
|
|
216
|
+
constructor () {
|
|
217
|
+
super(...arguments);
|
|
165
218
|
}
|
|
166
|
-
},
|
|
167
219
|
|
|
168
|
-
class Radius extends Effect {
|
|
169
220
|
apply(element, radiusFrom, radiusTo) {
|
|
170
221
|
var dr = radiusTo - radiusFrom;
|
|
171
222
|
this.animate({
|
|
@@ -185,6 +236,10 @@
|
|
|
185
236
|
},
|
|
186
237
|
|
|
187
238
|
class Resize extends Effect {
|
|
239
|
+
constructor () {
|
|
240
|
+
super(...arguments);
|
|
241
|
+
}
|
|
242
|
+
|
|
188
243
|
apply(element, scaleFrom, scaleTo) {
|
|
189
244
|
var ds = scaleTo - scaleFrom;
|
|
190
245
|
this.animate({
|
|
@@ -205,6 +260,10 @@
|
|
|
205
260
|
},
|
|
206
261
|
|
|
207
262
|
class WipeLeft extends Effect {
|
|
263
|
+
constructor () {
|
|
264
|
+
super(...arguments);
|
|
265
|
+
}
|
|
266
|
+
|
|
208
267
|
apply(element, scaleFrom, scaleTo) {
|
|
209
268
|
var ds = scaleTo - scaleFrom;
|
|
210
269
|
this.animate({
|
|
@@ -225,6 +284,10 @@
|
|
|
225
284
|
},
|
|
226
285
|
|
|
227
286
|
class WipeRight extends Effect {
|
|
287
|
+
constructor () {
|
|
288
|
+
super(...arguments);
|
|
289
|
+
}
|
|
290
|
+
|
|
228
291
|
apply(element, scaleFrom, scaleTo) {
|
|
229
292
|
var ds = scaleTo - scaleFrom;
|
|
230
293
|
this.animate({
|
|
@@ -245,6 +308,10 @@
|
|
|
245
308
|
},
|
|
246
309
|
|
|
247
310
|
class WipeUp extends Effect {
|
|
311
|
+
constructor () {
|
|
312
|
+
super(...arguments);
|
|
313
|
+
}
|
|
314
|
+
|
|
248
315
|
apply(element, scaleFrom, scaleTo) {
|
|
249
316
|
var ds = scaleTo - scaleFrom;
|
|
250
317
|
this.animate({
|
|
@@ -265,6 +332,10 @@
|
|
|
265
332
|
},
|
|
266
333
|
|
|
267
334
|
class WipeDown extends Effect {
|
|
335
|
+
constructor () {
|
|
336
|
+
super(...arguments);
|
|
337
|
+
}
|
|
338
|
+
|
|
268
339
|
apply(element, scaleFrom, scaleTo) {
|
|
269
340
|
var ds = scaleTo - scaleFrom;
|
|
270
341
|
this.animate({
|
|
@@ -284,4 +355,34 @@
|
|
|
284
355
|
}
|
|
285
356
|
|
|
286
357
|
]);
|
|
358
|
+
Package("org.qcobjects.modal.effects",[
|
|
359
|
+
|
|
360
|
+
class ModalFade extends Fade {
|
|
361
|
+
constructor () {
|
|
362
|
+
super(...arguments);
|
|
363
|
+
this.duration=500;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
},
|
|
367
|
+
|
|
368
|
+
class ModalMoveDown extends Move {
|
|
369
|
+
constructor () {
|
|
370
|
+
super(...arguments);
|
|
371
|
+
this.duration=300;
|
|
372
|
+
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
},
|
|
376
|
+
|
|
377
|
+
class ModalMoveUp extends Move {
|
|
378
|
+
constructor () {
|
|
379
|
+
super(...arguments);
|
|
380
|
+
this.duration=800;
|
|
381
|
+
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
]);
|
|
387
|
+
|
|
287
388
|
}).call(null);
|
|
@@ -27,14 +27,9 @@
|
|
|
27
27
|
Package("org.qcobjects.i18n_messages", [
|
|
28
28
|
|
|
29
29
|
class i18n_messages extends InheritClass {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
_new_(o) {
|
|
37
|
-
super._new_(o);
|
|
30
|
+
|
|
31
|
+
constructor () {
|
|
32
|
+
super(...arguments);
|
|
38
33
|
var i18n = this;
|
|
39
34
|
if (CONFIG.get("use_i18n")){
|
|
40
35
|
CONFIG.set("lang", "en");
|
|
@@ -48,13 +43,16 @@ Package("org.qcobjects.i18n_messages", [
|
|
|
48
43
|
});
|
|
49
44
|
}
|
|
50
45
|
}
|
|
51
|
-
}
|
|
52
46
|
|
|
53
|
-
|
|
47
|
+
}
|
|
54
48
|
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
_load_i18n_packages_ (){
|
|
50
|
+
return CONFIG.get("i18n_languages",[]).map((i18n_packagename)=>{
|
|
51
|
+
Import(`org.quickcorp.i18n_messages.${i18n_packagename}`);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
57
55
|
}
|
|
58
56
|
]);
|
|
59
|
-
|
|
57
|
+
(new i18n_messages())._load_i18n_packages_();
|
|
60
58
|
}).call(null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects-sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.21",
|
|
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": "QCObjects-SDK.js",
|
|
6
6
|
"scripts": {
|