qcobjects-sdk 2.4.61 → 2.4.64

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.
Files changed (67) hide show
  1. package/VERSION +1 -1
  2. package/build/QCObjects-SDK.js +97 -0
  3. package/build/css/base-modal.css +43 -0
  4. package/build/css/basic-layout-embedded-nav.css +14 -0
  5. package/build/css/basic-layout.css +76 -0
  6. package/build/css/components/horizontal-list.css +64 -0
  7. package/build/css/components/list.css +57 -0
  8. package/build/css/components/splashscreen.css +111 -0
  9. package/build/css/modal.css +46 -0
  10. package/build/index.cjs +4 -0
  11. package/build/index.js +27 -0
  12. package/build/index.mjs +2 -0
  13. package/build/js/org.qcobjects.cloud.auth.session.data.js +125 -0
  14. package/build/js/org.qcobjects.cloud.auth.session.usertoken.js +109 -0
  15. package/build/js/org.qcobjects.components.grid.js +81 -0
  16. package/build/js/org.qcobjects.components.js +292 -0
  17. package/build/js/org.qcobjects.components.list.js +71 -0
  18. package/build/js/org.qcobjects.components.notifications.js +179 -0
  19. package/build/js/org.qcobjects.components.slider.js +193 -0
  20. package/build/js/org.qcobjects.components.splashscreen.js +642 -0
  21. package/build/js/org.qcobjects.controllers.form.js +178 -0
  22. package/build/js/org.qcobjects.controllers.grid.js +258 -0
  23. package/build/js/org.qcobjects.controllers.js +34 -0
  24. package/build/js/org.qcobjects.controllers.list.js +228 -0
  25. package/build/js/org.qcobjects.controllers.slider.js +131 -0
  26. package/build/js/org.qcobjects.controllers.swagger.js +50 -0
  27. package/build/js/org.qcobjects.effects.js +417 -0
  28. package/build/js/org.qcobjects.i18n_messages.js +72 -0
  29. package/build/js/org.qcobjects.modal.controllers.js +38 -0
  30. package/build/js/org.qcobjects.modal.effects.js +51 -0
  31. package/build/js/org.qcobjects.models.js +34 -0
  32. package/build/js/org.qcobjects.tools.canvas.js +53 -0
  33. package/build/js/org.qcobjects.tools.js +64 -0
  34. package/build/js/org.qcobjects.tools.layouts.js +73 -0
  35. package/build/js/org.qcobjects.views.js +34 -0
  36. package/build/templates/components/modalyoulose.tpl.html +3 -0
  37. package/build/templates/components/modalyouwin.tpl.html +4 -0
  38. package/build/templates/components/splashscreen.tpl.html +128 -0
  39. package/build/templates/components/swagger-ui.tpl.html +22 -0
  40. package/package.json +3 -3
  41. package/public/QCObjects-SDK.js +696 -0
  42. package/public/QCObjects-SDK.js.map +7 -0
  43. package/public/css/base-modal.css +2 -0
  44. package/public/css/base-modal.css.map +7 -0
  45. package/public/css/basic-layout-embedded-nav.css +2 -0
  46. package/public/css/basic-layout-embedded-nav.css.map +7 -0
  47. package/public/css/basic-layout.css +2 -0
  48. package/public/css/basic-layout.css.map +7 -0
  49. package/public/css/components/horizontal-list.css +2 -0
  50. package/public/css/components/horizontal-list.css.map +7 -0
  51. package/public/css/components/list.css +2 -0
  52. package/public/css/components/list.css.map +7 -0
  53. package/public/css/components/splashscreen.css +2 -0
  54. package/public/css/components/splashscreen.css.map +7 -0
  55. package/public/css/modal.css +2 -0
  56. package/public/css/modal.css.map +7 -0
  57. package/public/index.cjs +4 -0
  58. package/public/index.js +27 -0
  59. package/public/index.mjs +2 -0
  60. package/public/templates/components/modalyoulose.tpl.html +3 -0
  61. package/public/templates/components/modalyouwin.tpl.html +4 -0
  62. package/public/templates/components/splashscreen.tpl.html +128 -0
  63. package/public/templates/components/swagger-ui.tpl.html +22 -0
  64. package/src/QCObjects-SDK.ts +0 -2
  65. package/src/js/org.qcobjects.controllers.list.ts +1 -1
  66. package/src/js/org.qcobjects.effects.ts +1 -1
  67. package/src/js/org.qcobjects.views.ts +1 -1
@@ -0,0 +1,417 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ModalMoveUp = exports.ModalMoveDown = exports.ModalFade = exports.WipeDown = exports.WipeUp = exports.WipeRight = exports.WipeLeft = exports.Resize = exports.Radius = exports.Rotate = exports.RotateZ = exports.RotateY = exports.RotateX = exports.MoveYInFromTop = exports.MoveYInFromBottom = exports.MoveXInFromLeft = exports.MoveXInFromRight = exports.Move = exports.Fade = void 0;
4
+ const qcobjects_1 = require("qcobjects");
5
+ /**
6
+ * QCObjects SDK 2.4
7
+ * ________________
8
+ *
9
+ * Author: Jean Machuca <correojean@gmail.com>
10
+ *
11
+ * Cross Browser Javascript Framework for MVC Patterns
12
+ * QuickCorp/QCObjects is licensed under the
13
+ * GNU Lesser General Public License v3.0
14
+ * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
15
+ *
16
+ * Permissions of this copyleft license are conditioned on making available
17
+ * complete source code of licensed works and modifications under the same
18
+ * license or the GNU GPLv3. Copyright and license notices must be preserved.
19
+ * Contributors provide an express grant of patent rights. However, a larger
20
+ * work using the licensed work through interfaces provided by the licensed
21
+ * work may be distributed under different terms and without source code for
22
+ * the larger work.
23
+ *
24
+ * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
25
+ *
26
+ * Everyone is permitted to copy and distribute verbatim copies of this
27
+ * license document, but changing it is not allowed.
28
+ */
29
+ const _top = (typeof module === "object" && typeof module.exports === "object") ? (module.exports = (typeof globalThis !== "undefined"
30
+ ? globalThis
31
+ : typeof self !== "undefined"
32
+ ? self
33
+ : typeof window !== "undefined"
34
+ ? window
35
+ : typeof global !== "undefined"
36
+ ? global
37
+ : {})) : ((typeof global === "object") ? (global) : ((typeof window === "object") ? (window) : ({})));
38
+ (function () {
39
+ "use strict";
40
+ class Fade extends qcobjects_1.Effect {
41
+ constructor() {
42
+ super(...arguments);
43
+ this.duration = 1000;
44
+ }
45
+ apply(element, alphaFrom, alphaTo) {
46
+ const da = alphaTo - alphaFrom;
47
+ this.animate({
48
+ duration: this.duration,
49
+ timing(timeFraction) {
50
+ return timeFraction;
51
+ },
52
+ draw(progress) {
53
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
54
+ const alpha = alphaFrom + (progress * da / 100);
55
+ qcobjects_1.logger.debug("alpha: " + alpha.toString());
56
+ element.style.opacity = alpha.toString();
57
+ }
58
+ });
59
+ }
60
+ }
61
+ class Move extends qcobjects_1.Effect {
62
+ constructor() {
63
+ super(...arguments);
64
+ this.duration = 1000;
65
+ }
66
+ apply(element, xfrom, yfrom, xto, yto) {
67
+ const dx = xto - xfrom;
68
+ const dy = yto - yfrom;
69
+ element.style.transform = "translate(" + xfrom + "px," + yfrom + "px)";
70
+ this.animate({
71
+ duration: this.duration,
72
+ timing(timeFraction) {
73
+ return timeFraction;
74
+ },
75
+ draw(progress) {
76
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
77
+ const y = yfrom + (progress * dy / 100);
78
+ const x = xfrom + (progress * dx / 100);
79
+ qcobjects_1.logger.debug("x: " + x.toString() + " y:" + y.toString());
80
+ element.style.transform = "translate(" + x + "px," + y + "px)";
81
+ }
82
+ });
83
+ }
84
+ }
85
+ (0, qcobjects_1.Package)("org.qcobjects.effects.base", [
86
+ Fade,
87
+ Move
88
+ ]);
89
+ class MoveXInFromRight extends Move {
90
+ constructor() {
91
+ super(...arguments);
92
+ this.duration = 1000;
93
+ }
94
+ apply(element) {
95
+ super.apply.call(this, element, element.width, 0, 0, 0);
96
+ }
97
+ }
98
+ class MoveXInFromLeft extends Move {
99
+ constructor() {
100
+ super(...arguments);
101
+ this.duration = 1000;
102
+ }
103
+ apply(element) {
104
+ super.apply.call(this, element, -element.width, 0, 0, 0);
105
+ }
106
+ }
107
+ class MoveYInFromBottom extends Move {
108
+ constructor() {
109
+ super(...arguments);
110
+ this.duration = 1000;
111
+ }
112
+ apply(element) {
113
+ super.apply.call(this, element, 0, element.height, 0, 0);
114
+ }
115
+ }
116
+ class MoveYInFromTop extends Move {
117
+ constructor() {
118
+ super(...arguments);
119
+ this.duration = 1000;
120
+ }
121
+ apply(element) {
122
+ super.apply.call(this, element, 0, -element.height, 0, 0);
123
+ }
124
+ }
125
+ class RotateX extends qcobjects_1.Effect {
126
+ constructor() {
127
+ super(...arguments);
128
+ this.duration = 1000;
129
+ }
130
+ apply(element, angleFrom, angleTo) {
131
+ const da = angleTo - angleFrom;
132
+ this.animate({
133
+ duration: this.duration,
134
+ timing(timeFraction) {
135
+ return timeFraction;
136
+ },
137
+ draw(progress) {
138
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
139
+ const angle = Math.round(angleFrom + (progress * da / 100));
140
+ qcobjects_1.logger.debug("angle: " + angle.toString());
141
+ element.style.transform = "rotate3d(1,0,0," + angle.toString() + "deg)";
142
+ }
143
+ });
144
+ }
145
+ }
146
+ class RotateY extends qcobjects_1.Effect {
147
+ constructor() {
148
+ super(...arguments);
149
+ this.duration = 1000;
150
+ }
151
+ apply(element, angleFrom, angleTo) {
152
+ const da = angleTo - angleFrom;
153
+ this.animate({
154
+ duration: this.duration,
155
+ timing(timeFraction) {
156
+ return timeFraction;
157
+ },
158
+ draw(progress) {
159
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
160
+ const angle = Math.round(angleFrom + (progress * da / 100));
161
+ qcobjects_1.logger.debug("angle: " + angle.toString());
162
+ element.style.transform = "rotate3d(0,1,0," + angle.toString() + "deg)";
163
+ }
164
+ });
165
+ }
166
+ }
167
+ class RotateZ extends qcobjects_1.Effect {
168
+ constructor() {
169
+ super(...arguments);
170
+ this.duration = 1000;
171
+ }
172
+ apply(element, angleFrom, angleTo) {
173
+ const da = angleTo - angleFrom;
174
+ this.animate({
175
+ duration: this.duration,
176
+ timing(timeFraction) {
177
+ return timeFraction;
178
+ },
179
+ draw(progress) {
180
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
181
+ const angle = Math.round(angleFrom + (progress * da / 100));
182
+ qcobjects_1.logger.debug("angle: " + angle.toString());
183
+ element.style.transform = "rotate3d(0,0,1," + angle.toString() + "deg)";
184
+ }
185
+ });
186
+ }
187
+ }
188
+ class Rotate extends qcobjects_1.Effect {
189
+ constructor() {
190
+ super(...arguments);
191
+ this.duration = 1000;
192
+ }
193
+ apply(element, angleFrom, angleTo) {
194
+ const da = angleTo - angleFrom;
195
+ this.animate({
196
+ duration: this.duration,
197
+ timing(timeFraction) {
198
+ return timeFraction;
199
+ },
200
+ draw(progress) {
201
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
202
+ const angle = Math.round(angleFrom + (progress * da / 100));
203
+ qcobjects_1.logger.debug("angle: " + angle.toString());
204
+ element.style.transform = "rotate3d(1,1,1," + angle.toString() + "deg)";
205
+ }
206
+ });
207
+ }
208
+ }
209
+ class Radius extends qcobjects_1.Effect {
210
+ constructor() {
211
+ super(...arguments);
212
+ this.duration = 1000;
213
+ }
214
+ apply(element, radiusFrom, radiusTo) {
215
+ const dr = radiusTo - radiusFrom;
216
+ this.animate({
217
+ duration: this.duration,
218
+ timing(timeFraction) {
219
+ return timeFraction;
220
+ },
221
+ draw(progress) {
222
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
223
+ const radius = radiusFrom + (progress * dr / 100);
224
+ qcobjects_1.logger.debug("radius: " + radius.toString());
225
+ element.style.borderRadius = radius.toString() + "px";
226
+ }
227
+ });
228
+ }
229
+ }
230
+ class Resize extends qcobjects_1.Effect {
231
+ constructor() {
232
+ super(...arguments);
233
+ this.duration = 1000;
234
+ }
235
+ apply(element, scaleFrom, scaleTo) {
236
+ const ds = scaleTo - scaleFrom;
237
+ this.animate({
238
+ duration: this.duration,
239
+ timing(timeFraction) {
240
+ return timeFraction;
241
+ },
242
+ draw(progress) {
243
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
244
+ const scale = scaleFrom + (progress * ds / 100);
245
+ qcobjects_1.logger.debug("resize: " + scale.toString());
246
+ element.style.transformOrigin = "center";
247
+ element.style.transform = "scale(" + scale + "," + scale + ")";
248
+ }
249
+ });
250
+ }
251
+ }
252
+ class WipeLeft extends qcobjects_1.Effect {
253
+ constructor() {
254
+ super(...arguments);
255
+ this.duration = 1000;
256
+ }
257
+ apply(element, scaleFrom, scaleTo) {
258
+ const ds = scaleTo - scaleFrom;
259
+ this.animate({
260
+ duration: this.duration,
261
+ timing(timeFraction) {
262
+ return timeFraction;
263
+ },
264
+ draw(progress) {
265
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
266
+ const scale = scaleFrom + (progress * ds / 100);
267
+ qcobjects_1.logger.debug("wipe: " + scale.toString());
268
+ element.style.transformOrigin = "right";
269
+ element.style.transform = "scaleX(" + scale + ")";
270
+ }
271
+ });
272
+ }
273
+ }
274
+ class WipeRight extends qcobjects_1.Effect {
275
+ constructor() {
276
+ super(...arguments);
277
+ this.duration = 1000;
278
+ }
279
+ apply(element, scaleFrom, scaleTo) {
280
+ const ds = scaleTo - scaleFrom;
281
+ this.animate({
282
+ duration: this.duration,
283
+ timing(timeFraction) {
284
+ return timeFraction;
285
+ },
286
+ draw(progress) {
287
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
288
+ const scale = scaleFrom + (progress * ds / 100);
289
+ qcobjects_1.logger.debug("wipe: " + scale.toString());
290
+ element.style.transformOrigin = "left";
291
+ element.style.transform = "scaleX(" + scale + ")";
292
+ }
293
+ });
294
+ }
295
+ }
296
+ class WipeUp extends qcobjects_1.Effect {
297
+ constructor() {
298
+ super(...arguments);
299
+ this.duration = 1000;
300
+ }
301
+ apply(element, scaleFrom, scaleTo) {
302
+ const ds = scaleTo - scaleFrom;
303
+ this.animate({
304
+ duration: this.duration,
305
+ timing(timeFraction) {
306
+ return timeFraction;
307
+ },
308
+ draw(progress) {
309
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
310
+ const scale = scaleFrom + (progress * ds / 100);
311
+ qcobjects_1.logger.debug("wipe: " + scale.toString());
312
+ element.style.transformOrigin = "bottom";
313
+ element.style.transform = "scaleY(" + scale + ")";
314
+ }
315
+ });
316
+ }
317
+ }
318
+ class WipeDown extends qcobjects_1.Effect {
319
+ constructor() {
320
+ super(...arguments);
321
+ this.duration = 1000;
322
+ }
323
+ apply(element, scaleFrom, scaleTo) {
324
+ const ds = scaleTo - scaleFrom;
325
+ this.animate({
326
+ duration: this.duration,
327
+ timing(timeFraction) {
328
+ return timeFraction;
329
+ },
330
+ draw(progress) {
331
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
332
+ const scale = scaleFrom + (progress * ds / 100);
333
+ qcobjects_1.logger.debug("wipe: " + scale.toString());
334
+ element.style.transformOrigin = "top";
335
+ element.style.transform = "scaleY(" + scale + ")";
336
+ }
337
+ });
338
+ }
339
+ }
340
+ (0, qcobjects_1.Package)("org.qcobjects.effects.extended", [
341
+ MoveXInFromRight,
342
+ MoveXInFromLeft,
343
+ MoveYInFromBottom,
344
+ MoveYInFromTop,
345
+ RotateX,
346
+ RotateY,
347
+ RotateZ,
348
+ Rotate,
349
+ Radius,
350
+ Resize,
351
+ WipeLeft,
352
+ WipeRight,
353
+ WipeUp,
354
+ WipeDown
355
+ ]);
356
+ class ModalFade extends Fade {
357
+ constructor() {
358
+ super(...arguments);
359
+ this.duration = 500;
360
+ }
361
+ }
362
+ class ModalMoveDown extends Move {
363
+ constructor() {
364
+ super(...arguments);
365
+ this.duration = 300;
366
+ }
367
+ }
368
+ class ModalMoveUp extends Move {
369
+ constructor() {
370
+ super(...arguments);
371
+ this.duration = 800;
372
+ }
373
+ }
374
+ (0, qcobjects_1.Package)("org.qcobjects.modal.effects", [
375
+ ModalFade,
376
+ ModalMoveDown,
377
+ ModalMoveUp
378
+ ]);
379
+ })();
380
+ const Fade = _top.Fade;
381
+ exports.Fade = Fade;
382
+ const Move = _top.Fade;
383
+ exports.Move = Move;
384
+ const MoveXInFromRight = _top.MoveXInFromRight;
385
+ exports.MoveXInFromRight = MoveXInFromRight;
386
+ const MoveXInFromLeft = _top.MoveXInFromLeft;
387
+ exports.MoveXInFromLeft = MoveXInFromLeft;
388
+ const MoveYInFromBottom = _top.MoveYInFromBottom;
389
+ exports.MoveYInFromBottom = MoveYInFromBottom;
390
+ const MoveYInFromTop = _top.MoveYInFromTop;
391
+ exports.MoveYInFromTop = MoveYInFromTop;
392
+ const RotateX = _top.RotateX;
393
+ exports.RotateX = RotateX;
394
+ const RotateY = _top.RotateY;
395
+ exports.RotateY = RotateY;
396
+ const RotateZ = _top.RotateZ;
397
+ exports.RotateZ = RotateZ;
398
+ const Rotate = _top.Rotate;
399
+ exports.Rotate = Rotate;
400
+ const Radius = _top.Radius;
401
+ exports.Radius = Radius;
402
+ const Resize = _top.Resize;
403
+ exports.Resize = Resize;
404
+ const WipeLeft = _top.WipeLeft;
405
+ exports.WipeLeft = WipeLeft;
406
+ const WipeRight = _top.WipeRight;
407
+ exports.WipeRight = WipeRight;
408
+ const WipeUp = _top.WipeUp;
409
+ exports.WipeUp = WipeUp;
410
+ const WipeDown = _top.WipeDown;
411
+ exports.WipeDown = WipeDown;
412
+ const ModalFade = _top.ModalFade;
413
+ exports.ModalFade = ModalFade;
414
+ const ModalMoveDown = _top.ModalMoveDown;
415
+ exports.ModalMoveDown = ModalMoveDown;
416
+ const ModalMoveUp = _top.ModalMoveUp;
417
+ exports.ModalMoveUp = ModalMoveUp;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const qcobjects_1 = require("qcobjects");
4
+ /**
5
+ * QCObjects SDK 2.4
6
+ * ________________
7
+ *
8
+ * Author: Jean Machuca <correojean@gmail.com>
9
+ *
10
+ * Cross Browser Javascript Framework for MVC Patterns
11
+ * QuickCorp/QCObjects is licensed under the
12
+ * GNU Lesser General Public License v3.0
13
+ * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
14
+ *
15
+ * Permissions of this copyleft license are conditioned on making available
16
+ * complete source code of licensed works and modifications under the same
17
+ * license or the GNU GPLv3. Copyright and license notices must be preserved.
18
+ * Contributors provide an express grant of patent rights. However, a larger
19
+ * work using the licensed work through interfaces provided by the licensed
20
+ * work may be distributed under different terms and without source code for
21
+ * the larger work.
22
+ *
23
+ * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
24
+ *
25
+ * Everyone is permitted to copy and distribute verbatim copies of this
26
+ * license document, but changing it is not allowed.
27
+ */
28
+ (function (global) {
29
+ "use strict";
30
+ // eslint-disable-next-line camelcase
31
+ class i18n_messages extends qcobjects_1.InheritClass {
32
+ constructor({ messages = [] }) {
33
+ super({
34
+ messages
35
+ });
36
+ if (qcobjects_1.CONFIG.get("use_i18n", false)) {
37
+ qcobjects_1.CONFIG.set("lang", "en");
38
+ if (!global.get("i18n")) {
39
+ global.set("i18n", {
40
+ messages
41
+ });
42
+ }
43
+ else {
44
+ global.set("i18n", {
45
+ messages: global.get("i18n").messages.concat(messages)
46
+ });
47
+ }
48
+ }
49
+ }
50
+ _load_i18n_packages_() {
51
+ // eslint-disable-next-line array-callback-return, camelcase
52
+ return qcobjects_1.CONFIG.get("i18n_languages", []).map((i18n_packagename) => {
53
+ // eslint-disable-next-line camelcase
54
+ (0, qcobjects_1.Import)(`org.quickcorp.i18n_messages.${i18n_packagename}`);
55
+ });
56
+ }
57
+ }
58
+ (0, qcobjects_1.Package)("org.qcobjects.i18n_messages", [
59
+ // eslint-disable-next-line camelcase
60
+ i18n_messages
61
+ ]);
62
+ // eslint-disable-next-line new-cap
63
+ (new i18n_messages({}))._load_i18n_packages_();
64
+ })((typeof module === "object" && typeof module.exports === "object") ? (module.exports = (typeof globalThis !== "undefined"
65
+ ? globalThis
66
+ : typeof self !== "undefined"
67
+ ? self
68
+ : typeof window !== "undefined"
69
+ ? window
70
+ : typeof global !== "undefined"
71
+ ? global
72
+ : {})) : ((typeof global === "object") ? (global) : ((typeof window === "object") ? (window) : ({}))));
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const qcobjects_1 = require("qcobjects");
4
+ /**
5
+ * QCObjects SDK 2.4
6
+ * ________________
7
+ *
8
+ * Author: Jean Machuca <correojean@gmail.com>
9
+ *
10
+ * Cross Browser Javascript Framework for MVC Patterns
11
+ * QuickCorp/QCObjects is licensed under the
12
+ * GNU Lesser General Public License v3.0
13
+ * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
14
+ *
15
+ * Permissions of this copyleft license are conditioned on making available
16
+ * complete source code of licensed works and modifications under the same
17
+ * license or the GNU GPLv3. Copyright and license notices must be preserved.
18
+ * Contributors provide an express grant of patent rights. However, a larger
19
+ * work using the licensed work through interfaces provided by the licensed
20
+ * work may be distributed under different terms and without source code for
21
+ * the larger work.
22
+ *
23
+ * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
24
+ *
25
+ * Everyone is permitted to copy and distribute verbatim copies of this
26
+ * license document, but changing it is not allowed.
27
+ */
28
+ (function () {
29
+ "use strict";
30
+ (0, qcobjects_1.Package)("org.qcobjects.modal.controllers", [
31
+ class ModalController extends qcobjects_1.Controller {
32
+ done() {
33
+ const component = this.component;
34
+ component.body.innerHTML = component.body.innerHTML.replace("/{{content}}/g", component.submodal.template);
35
+ }
36
+ }
37
+ ]);
38
+ })();
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const qcobjects_1 = require("qcobjects");
4
+ const org_qcobjects_effects_1 = require("./org.qcobjects.effects");
5
+ /**
6
+ * QCObjects SDK 2.4
7
+ * ________________
8
+ *
9
+ * Author: Jean Machuca <correojean@gmail.com>
10
+ *
11
+ * Cross Browser Javascript Framework for MVC Patterns
12
+ * QuickCorp/QCObjects is licensed under the
13
+ * GNU Lesser General Public License v3.0
14
+ * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
15
+ *
16
+ * Permissions of this copyleft license are conditioned on making available
17
+ * complete source code of licensed works and modifications under the same
18
+ * license or the GNU GPLv3. Copyright and license notices must be preserved.
19
+ * Contributors provide an express grant of patent rights. However, a larger
20
+ * work using the licensed work through interfaces provided by the licensed
21
+ * work may be distributed under different terms and without source code for
22
+ * the larger work.
23
+ *
24
+ * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
25
+ *
26
+ * Everyone is permitted to copy and distribute verbatim copies of this
27
+ * license document, but changing it is not allowed.
28
+ */
29
+ (function () {
30
+ "use strict";
31
+ (0, qcobjects_1.Package)("org.qcobjects.modal.effects", [
32
+ class ModalFade extends org_qcobjects_effects_1.Fade {
33
+ constructor() {
34
+ super(...arguments);
35
+ this.duration = 500;
36
+ }
37
+ },
38
+ class ModalMoveDown extends org_qcobjects_effects_1.Move {
39
+ constructor() {
40
+ super(...arguments);
41
+ this.duration = 300;
42
+ }
43
+ },
44
+ class ModalMoveUp extends org_qcobjects_effects_1.Move {
45
+ constructor() {
46
+ super(...arguments);
47
+ this.duration = 800;
48
+ }
49
+ }
50
+ ]);
51
+ })();
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const qcobjects_1 = require("qcobjects");
4
+ /**
5
+ * QCObjects SDK 2.4
6
+ * ________________
7
+ *
8
+ * Author: Jean Machuca <correojean@gmail.com>
9
+ *
10
+ * Cross Browser Javascript Framework for MVC Patterns
11
+ * QuickCorp/QCObjects is licensed under the
12
+ * GNU Lesser General Public License v3.0
13
+ * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
14
+ *
15
+ * Permissions of this copyleft license are conditioned on making available
16
+ * complete source code of licensed works and modifications under the same
17
+ * license or the GNU GPLv3. Copyright and license notices must be preserved.
18
+ * Contributors provide an express grant of patent rights. However, a larger
19
+ * work using the licensed work through interfaces provided by the licensed
20
+ * work may be distributed under different terms and without source code for
21
+ * the larger work.
22
+ *
23
+ * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
24
+ *
25
+ * Everyone is permitted to copy and distribute verbatim copies of this
26
+ * license document, but changing it is not allowed.
27
+ */
28
+ (function () {
29
+ "use strict";
30
+ (0, qcobjects_1.Package)("org.qcobjects.models", [
31
+ class Contact extends qcobjects_1.VO {
32
+ }
33
+ ]);
34
+ })();
@@ -0,0 +1,53 @@
1
+ /**
2
+ * QCObjects SDK 2.4
3
+ * ________________
4
+ *
5
+ * Author: Jean Machuca <correojean@gmail.com>
6
+ *
7
+ * Cross Browser Javascript Framework for MVC Patterns
8
+ * QuickCorp/QCObjects is licensed under the
9
+ * GNU Lesser General Public License v3.0
10
+ * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
11
+ *
12
+ * Permissions of this copyleft license are conditioned on making available
13
+ * complete source code of licensed works and modifications under the same
14
+ * license or the GNU GPLv3. Copyright and license notices must be preserved.
15
+ * Contributors provide an express grant of patent rights. However, a larger
16
+ * work using the licensed work through interfaces provided by the licensed
17
+ * work may be distributed under different terms and without source code for
18
+ * the larger work.
19
+ *
20
+ * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
21
+ *
22
+ * Everyone is permitted to copy and distribute verbatim copies of this
23
+ * license document, but changing it is not allowed.
24
+ */
25
+ "use strict";
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ const qcobjects_1 = require("qcobjects");
28
+ (function () {
29
+ (0, qcobjects_1.Package)("org.qcobjects.tools.canvas", [
30
+ class CanvasTool extends qcobjects_1.InheritClass {
31
+ drawImageFilled(img, canvas, zoom = 1, px = 0, py = 0) {
32
+ // get the scale
33
+ let scale = Math.max(canvas.width / img.width, canvas.height / img.height);
34
+ scale = scale * zoom;
35
+ // get the top left position of the image
36
+ const x = (canvas.width / 2) - (img.width / 2) * scale;
37
+ const y = (canvas.height / 2) - (img.height / 2) * scale;
38
+ const ctx = canvas.getContext("2d");
39
+ ctx?.drawImage(img, (px + x), (py + y), img.width * scale, img.height * scale);
40
+ }
41
+ getImageResized(img, width, height, resizedImage, zoom = 1, px = 0, py = 0) {
42
+ const canvas = document.createElement("canvas");
43
+ canvas.width = width;
44
+ canvas.height = height;
45
+ canvas.style.width = width.toString();
46
+ canvas.style.height = height.toString();
47
+ this.drawImageFilled(img, canvas, zoom, px, py);
48
+ resizedImage.src = canvas.toDataURL("image/png");
49
+ return canvas;
50
+ }
51
+ }
52
+ ]);
53
+ })();