qcobjects-sdk 2.4.19 → 2.4.20

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 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.19
1
+ 2.4.20
@@ -32,7 +32,7 @@
32
32
  * Creates an instance of SessionData.
33
33
  */
34
34
  constructor() {
35
- super();
35
+ super(...arguments);
36
36
  this.__session_container__ = null;
37
37
  }
38
38
 
@@ -28,7 +28,7 @@
28
28
  Package("org.qcobjects.cloud.auth.session.usertoken", [
29
29
  class SessionUserToken extends InheritClass{
30
30
  constructor() {
31
- super();
31
+ super(...arguments);
32
32
  this.user = {};
33
33
  this.__cache__ = null;
34
34
 
@@ -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;
@@ -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,11 +25,10 @@ logger.debugEnabled = true;
25
25
  */
26
26
  (function() {
27
27
  "use strict";
28
- Package("org.qcobjects.components.splashscreen",[
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;
@@ -111,11 +110,15 @@ Package("org.qcobjects.components.splashscreen",[
111
110
  }
112
111
  }
113
112
 
114
- },
113
+ }
114
+
115
+ ]);
116
+ Package("org.qcobjects.components.splashscreen",[
117
+
115
118
 
116
119
  class VideoSplashScreenComponent extends SplashScreenComponent {
117
120
  constructor () {
118
- super();
121
+ super(...arguments);
119
122
 
120
123
  this.name= "videosplashscreen";
121
124
  this.cached= false;
@@ -291,7 +294,7 @@ Package("org.qcobjects.components.splashscreen",[
291
294
  class CubeSplashScreenComponent extends SplashScreenComponent {
292
295
 
293
296
  constructor () {
294
- super();
297
+ super(...arguments);
295
298
  this.name= "cubesplashscreen";
296
299
  this.cached= false;
297
300
  this.shadowed= true;
@@ -44,7 +44,7 @@ Package("org.qcobjects.controllers.form",[
44
44
  class FormController extends Controller {
45
45
 
46
46
  constructor (){
47
- super();
47
+ super(...arguments);
48
48
  this.dependencies=[];
49
49
  this.component=null;
50
50
  this.serviceClass="";
@@ -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
 
@@ -28,7 +28,7 @@ Package("org.qcobjects.controllers",[
28
28
 
29
29
  class GenericController extends Controller {
30
30
  constructor () {
31
- super();
31
+ super(...arguments);
32
32
  this.dependencies=[];
33
33
  this.component=null;
34
34
 
@@ -28,7 +28,7 @@
28
28
 
29
29
  class ListController extends Controller {
30
30
  constructor() {
31
- super();
31
+ super(...arguments);
32
32
  this.dependencies = [];
33
33
  this.component = null;
34
34
 
@@ -29,7 +29,7 @@
29
29
  class SliderController extends Controller {
30
30
 
31
31
  constructor() {
32
- super();
32
+ super(...arguments);
33
33
  this.dependencies = [];
34
34
  this.component = null;
35
35
  this.slideIndex = 0;
@@ -28,7 +28,7 @@
28
28
 
29
29
  class SwaggerUIController extends Controller {
30
30
  constructor() {
31
- super();
31
+ super(...arguments);
32
32
  this.dependencies = [];
33
33
  this.component = null;
34
34
 
@@ -24,9 +24,36 @@
24
24
  */
25
25
  "use strict";
26
26
  (function () {
27
- Package("org.qcobjects.tools.effects", [
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,38 @@
46
73
  });
47
74
  }
48
75
 
49
- },
76
+ }
77
+
78
+
79
+ ]);
80
+ Package("org.qcobjects.effects.extended", [
81
+
50
82
 
51
83
  class MoveXInFromRight extends Move {
84
+ constructor () {
85
+ super(...arguments);
86
+ }
87
+
52
88
  apply(element) {
53
89
  super.apply.call(this, element, element.width, 0, 0, 0);
54
90
  }
55
91
  },
56
92
 
57
93
  class MoveXInFromLeft extends Move {
94
+ constructor () {
95
+ super(...arguments);
96
+ }
97
+
58
98
  apply(element) {
59
99
  super.apply.call(this, element, -element.width, 0, 0, 0);
60
100
  }
61
101
  },
62
102
 
63
103
  class MoveYInFromBottom extends Move {
104
+ constructor () {
105
+ super(...arguments);
106
+ }
107
+
64
108
  apply(element) {
65
109
  super.apply.call(this, element, 0, element.height, 0, 0);
66
110
  }
@@ -68,12 +112,20 @@
68
112
  },
69
113
 
70
114
  class MoveYInFromTop extends Move {
115
+ constructor () {
116
+ super(...arguments);
117
+ }
118
+
71
119
  apply(element) {
72
120
  super.apply.call(this, element, 0, -element.height, 0, 0);
73
121
  }
74
122
  },
75
123
 
76
124
  class RotateX extends Effect {
125
+ constructor () {
126
+ super(...arguments);
127
+ }
128
+
77
129
  apply(element, angleFrom, angleTo) {
78
130
  var da = angleTo - angleFrom;
79
131
  this.animate({
@@ -93,6 +145,10 @@
93
145
  },
94
146
 
95
147
  class RotateY extends Effect {
148
+ constructor () {
149
+ super(...arguments);
150
+ }
151
+
96
152
  apply(element, angleFrom, angleTo) {
97
153
  var da = angleTo - angleFrom;
98
154
  this.animate({
@@ -111,6 +167,10 @@
111
167
  },
112
168
 
113
169
  class RotateZ extends Effect {
170
+ constructor () {
171
+ super(...arguments);
172
+ }
173
+
114
174
  apply(element, angleFrom, angleTo) {
115
175
  var da = angleTo - angleFrom;
116
176
  this.animate({
@@ -130,6 +190,10 @@
130
190
  },
131
191
 
132
192
  class Rotate extends Effect {
193
+ constructor () {
194
+ super(...arguments);
195
+ }
196
+
133
197
  apply(element, angleFrom, angleTo) {
134
198
  var da = angleTo - angleFrom;
135
199
  this.animate({
@@ -147,25 +211,11 @@
147
211
  }
148
212
  },
149
213
 
150
- class Fade extends Effect {
151
- apply(element, alphaFrom, alphaTo) {
152
- var da = alphaTo - alphaFrom;
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
- });
214
+ class Radius extends Effect {
215
+ constructor () {
216
+ super(...arguments);
165
217
  }
166
- },
167
218
 
168
- class Radius extends Effect {
169
219
  apply(element, radiusFrom, radiusTo) {
170
220
  var dr = radiusTo - radiusFrom;
171
221
  this.animate({
@@ -185,6 +235,10 @@
185
235
  },
186
236
 
187
237
  class Resize extends Effect {
238
+ constructor () {
239
+ super(...arguments);
240
+ }
241
+
188
242
  apply(element, scaleFrom, scaleTo) {
189
243
  var ds = scaleTo - scaleFrom;
190
244
  this.animate({
@@ -205,6 +259,10 @@
205
259
  },
206
260
 
207
261
  class WipeLeft extends Effect {
262
+ constructor () {
263
+ super(...arguments);
264
+ }
265
+
208
266
  apply(element, scaleFrom, scaleTo) {
209
267
  var ds = scaleTo - scaleFrom;
210
268
  this.animate({
@@ -225,6 +283,10 @@
225
283
  },
226
284
 
227
285
  class WipeRight extends Effect {
286
+ constructor () {
287
+ super(...arguments);
288
+ }
289
+
228
290
  apply(element, scaleFrom, scaleTo) {
229
291
  var ds = scaleTo - scaleFrom;
230
292
  this.animate({
@@ -245,6 +307,10 @@
245
307
  },
246
308
 
247
309
  class WipeUp extends Effect {
310
+ constructor () {
311
+ super(...arguments);
312
+ }
313
+
248
314
  apply(element, scaleFrom, scaleTo) {
249
315
  var ds = scaleTo - scaleFrom;
250
316
  this.animate({
@@ -265,6 +331,10 @@
265
331
  },
266
332
 
267
333
  class WipeDown extends Effect {
334
+ constructor () {
335
+ super(...arguments);
336
+ }
337
+
268
338
  apply(element, scaleFrom, scaleTo) {
269
339
  var ds = scaleTo - scaleFrom;
270
340
  this.animate({
@@ -284,4 +354,34 @@
284
354
  }
285
355
 
286
356
  ]);
357
+ Package("org.qcobjects.modal.effects",[
358
+
359
+ class ModalFade extends Fade {
360
+ constructor () {
361
+ super(...arguments);
362
+ this.duration=500;
363
+ }
364
+
365
+ },
366
+
367
+ class ModalMoveDown extends Move {
368
+ constructor () {
369
+ super(...arguments);
370
+ this.duration=300;
371
+
372
+ }
373
+
374
+ },
375
+
376
+ class ModalMoveUp extends Move {
377
+ constructor () {
378
+ super(...arguments);
379
+ this.duration=800;
380
+
381
+ }
382
+
383
+ }
384
+
385
+ ]);
386
+
287
387
  }).call(null);
@@ -27,14 +27,9 @@
27
27
  Package("org.qcobjects.i18n_messages", [
28
28
 
29
29
  class i18n_messages extends InheritClass {
30
- _load_i18n_packages_ (){
31
- return CONFIG.get("i18n_languages",[]).map((i18n_packagename)=>{
32
- Import(`org.quickcorp.i18n_messages.${i18n_packagename}`);
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
- _i18n_messages:i18n_messages._load_i18n_packages_()
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);
@@ -29,7 +29,7 @@ Package("org.qcobjects.modal.controllers",[
29
29
  class ModalController extends Controller {
30
30
 
31
31
  constructor () {
32
- super();
32
+ super(...arguments);
33
33
  this.dependencies=[];
34
34
  this.component=null;
35
35
  }
@@ -29,7 +29,7 @@ Package("org.qcobjects.models",[
29
29
  class Contact extends VO {
30
30
 
31
31
  constructor (){
32
- super();
32
+ super(...arguments);
33
33
  this.first_name="";
34
34
  this.last_name="";
35
35
  this.address="";
@@ -27,6 +27,9 @@
27
27
  Package("org.qcobjects.tools.canvas",[
28
28
 
29
29
  class CanvasTool extends InheritClass {
30
+ constructor () {
31
+ super(...arguments);
32
+ }
30
33
 
31
34
  drawImageFilled (img, canvas, zoom=1, px=0, py=0){
32
35
  // get the scale
@@ -29,7 +29,7 @@
29
29
  class Process extends Timer {
30
30
 
31
31
  constructor () {
32
- super();
32
+ super(...arguments);
33
33
  this.steps=[];
34
34
  this.currentStep=0;
35
35
 
@@ -29,7 +29,7 @@
29
29
  class BasicLayout extends InheritClass {
30
30
 
31
31
  constructor () {
32
- super();
32
+ super(...arguments);
33
33
  this.dependencies=[];
34
34
  this.component=null;
35
35
 
@@ -29,7 +29,7 @@ Package("org.qcobjects.views",[
29
29
  class GridView extends View {
30
30
 
31
31
  constructor (){
32
- super();
32
+ super(...arguments);
33
33
  this.dependencies=[];
34
34
  this.component=null;
35
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects-sdk",
3
- "version": "2.4.19",
3
+ "version": "2.4.20",
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": {