qcobjects-sdk 2.4.66 → 2.5.105

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 (177) hide show
  1. package/.github/workflows/npmpublish.yml +47 -0
  2. package/README.md +0 -1
  3. package/VERSION +1 -1
  4. package/build/index.js +137 -25
  5. package/build/ts/org.qcobjects.base.components.js +75 -0
  6. package/build/ts/org.qcobjects.cloud.auth.session.data.js +122 -0
  7. package/build/ts/org.qcobjects.cloud.auth.session.usertoken.js +97 -0
  8. package/build/ts/org.qcobjects.components.grid.js +63 -0
  9. package/build/ts/org.qcobjects.components.js +200 -0
  10. package/build/{js/org.qcobjects.modal.effects.js → ts/org.qcobjects.components.list.js} +40 -29
  11. package/build/ts/org.qcobjects.components.notifications.js +180 -0
  12. package/build/ts/org.qcobjects.components.slider.js +207 -0
  13. package/build/{js → ts}/org.qcobjects.components.splashscreen.js +123 -130
  14. package/build/ts/org.qcobjects.controllers.form.js +180 -0
  15. package/build/ts/org.qcobjects.controllers.grid.js +269 -0
  16. package/build/{js → ts}/org.qcobjects.controllers.js +11 -11
  17. package/build/ts/org.qcobjects.controllers.list.js +235 -0
  18. package/build/ts/org.qcobjects.controllers.slider.js +126 -0
  19. package/build/ts/org.qcobjects.controllers.swagger.js +75 -0
  20. package/build/ts/org.qcobjects.effects.base.js +70 -0
  21. package/build/ts/org.qcobjects.effects.extended.js +270 -0
  22. package/build/ts/org.qcobjects.effects.js +49 -0
  23. package/build/ts/org.qcobjects.i18n_messages.js +59 -0
  24. package/build/{js → ts}/org.qcobjects.modal.controllers.js +16 -15
  25. package/build/ts/org.qcobjects.modal.effects.js +46 -0
  26. package/build/{js → ts}/org.qcobjects.models.js +11 -11
  27. package/{src/js/org.qcobjects.tools.canvas.ts → build/ts/org.qcobjects.tools.canvas.js} +16 -21
  28. package/build/{js → ts}/org.qcobjects.tools.js +10 -3
  29. package/build/ts/org.qcobjects.tools.layouts.js +74 -0
  30. package/build/{js → ts}/org.qcobjects.views.js +11 -11
  31. package/build-esbuild.js +72 -0
  32. package/eslint.config.mjs +88 -0
  33. package/package.json +67 -63
  34. package/postbuild.js +10 -0
  35. package/public/browser/index.js +9829 -0
  36. package/public/browser/index.js.map +7 -0
  37. package/public/cjs/index.cjs +9879 -0
  38. package/public/cjs/index.cjs.map +7 -0
  39. package/public/esm/index.mjs +9819 -0
  40. package/public/esm/index.mjs.map +7 -0
  41. package/public/types/index.d.ts +614 -0
  42. package/spec/helpers/mock-sdk.helper.ts +2 -0
  43. package/spec/mocks/qcobjects-sdk.mock.ts +1 -0
  44. package/spec/support/jasmine.json +7 -4
  45. package/src/index.ts +127 -2
  46. package/src/ts/org.qcobjects.base.components.ts +83 -0
  47. package/src/ts/org.qcobjects.cloud.auth.session.data.ts +134 -0
  48. package/src/ts/org.qcobjects.cloud.auth.session.usertoken.ts +108 -0
  49. package/src/ts/org.qcobjects.components.grid.ts +68 -0
  50. package/src/{js → ts}/org.qcobjects.components.list.ts +15 -31
  51. package/src/{js → ts}/org.qcobjects.components.notifications.ts +12 -12
  52. package/src/ts/org.qcobjects.components.slider.ts +216 -0
  53. package/src/{js → ts}/org.qcobjects.components.splashscreen.ts +31 -39
  54. package/src/ts/org.qcobjects.components.ts +226 -0
  55. package/src/ts/org.qcobjects.controllers.form.ts +209 -0
  56. package/src/ts/org.qcobjects.controllers.grid.ts +291 -0
  57. package/src/ts/org.qcobjects.controllers.list.ts +256 -0
  58. package/src/ts/org.qcobjects.controllers.slider.ts +153 -0
  59. package/src/ts/org.qcobjects.controllers.swagger.ts +83 -0
  60. package/src/{js → ts}/org.qcobjects.controllers.ts +7 -9
  61. package/src/ts/org.qcobjects.effects.base.ts +81 -0
  62. package/src/{js/org.qcobjects.effects.ts → ts/org.qcobjects.effects.extended.ts} +70 -198
  63. package/src/ts/org.qcobjects.effects.ts +42 -0
  64. package/src/ts/org.qcobjects.i18n_messages.ts +68 -0
  65. package/src/{js → ts}/org.qcobjects.modal.controllers.ts +12 -14
  66. package/src/{js → ts}/org.qcobjects.modal.effects.ts +22 -18
  67. package/src/{js → ts}/org.qcobjects.models.ts +8 -11
  68. package/src/ts/org.qcobjects.tools.canvas.ts +57 -0
  69. package/src/ts/org.qcobjects.tools.layouts.ts +82 -0
  70. package/src/{js → ts}/org.qcobjects.tools.ts +7 -1
  71. package/src/{js → ts}/org.qcobjects.views.ts +9 -8
  72. package/src/types/global/index.d.ts +181 -0
  73. package/transpile.js +65 -0
  74. package/tsconfig.d.json +65 -3
  75. package/tsconfig.jasmine.json +64 -0
  76. package/tsconfig.json +71 -7
  77. package/.eslintignore +0 -4
  78. package/.eslintrc.cjs +0 -6
  79. package/.github/workflows/npmpublish-beta.yml +0 -38
  80. package/.github/workflows/npmpublish-lts.yml +0 -38
  81. package/.github/workflows/npmpublish-main.yml +0 -40
  82. package/.gitmodules +0 -4
  83. package/build/QCObjects-SDK.js +0 -97
  84. package/build/css/base-modal.css +0 -43
  85. package/build/css/basic-layout-embedded-nav.css +0 -14
  86. package/build/css/basic-layout.css +0 -76
  87. package/build/css/components/horizontal-list.css +0 -64
  88. package/build/css/components/list.css +0 -57
  89. package/build/css/components/splashscreen.css +0 -111
  90. package/build/css/modal.css +0 -46
  91. package/build/index.cjs +0 -4
  92. package/build/index.mjs +0 -2
  93. package/build/js/org.qcobjects.cloud.auth.session.data.js +0 -125
  94. package/build/js/org.qcobjects.cloud.auth.session.usertoken.js +0 -109
  95. package/build/js/org.qcobjects.components.grid.js +0 -81
  96. package/build/js/org.qcobjects.components.js +0 -292
  97. package/build/js/org.qcobjects.components.list.js +0 -71
  98. package/build/js/org.qcobjects.components.notifications.js +0 -179
  99. package/build/js/org.qcobjects.components.slider.js +0 -193
  100. package/build/js/org.qcobjects.controllers.form.js +0 -178
  101. package/build/js/org.qcobjects.controllers.grid.js +0 -258
  102. package/build/js/org.qcobjects.controllers.list.js +0 -228
  103. package/build/js/org.qcobjects.controllers.slider.js +0 -131
  104. package/build/js/org.qcobjects.controllers.swagger.js +0 -50
  105. package/build/js/org.qcobjects.effects.js +0 -417
  106. package/build/js/org.qcobjects.i18n_messages.js +0 -72
  107. package/build/js/org.qcobjects.tools.canvas.js +0 -53
  108. package/build/js/org.qcobjects.tools.layouts.js +0 -73
  109. package/build/templates/components/modalyoulose.tpl.html +0 -3
  110. package/build/templates/components/modalyouwin.tpl.html +0 -4
  111. package/build/templates/components/splashscreen.tpl.html +0 -128
  112. package/build/templates/components/swagger-ui.tpl.html +0 -22
  113. package/docs/CNAME +0 -1
  114. package/public/QCObjects-SDK.js +0 -696
  115. package/public/QCObjects-SDK.js.map +0 -7
  116. package/public/css/base-modal.css +0 -2
  117. package/public/css/base-modal.css.map +0 -7
  118. package/public/css/basic-layout-embedded-nav.css +0 -2
  119. package/public/css/basic-layout-embedded-nav.css.map +0 -7
  120. package/public/css/basic-layout.css +0 -2
  121. package/public/css/basic-layout.css.map +0 -7
  122. package/public/css/components/horizontal-list.css +0 -2
  123. package/public/css/components/horizontal-list.css.map +0 -7
  124. package/public/css/components/list.css +0 -2
  125. package/public/css/components/list.css.map +0 -7
  126. package/public/css/components/splashscreen.css +0 -2
  127. package/public/css/components/splashscreen.css.map +0 -7
  128. package/public/css/modal.css +0 -2
  129. package/public/css/modal.css.map +0 -7
  130. package/public/index.cjs +0 -4
  131. package/public/index.js +0 -27
  132. package/public/index.mjs +0 -2
  133. package/public/templates/components/modalyoulose.tpl.html +0 -3
  134. package/public/templates/components/modalyouwin.tpl.html +0 -4
  135. package/public/templates/components/splashscreen.tpl.html +0 -128
  136. package/public/templates/components/swagger-ui.tpl.html +0 -22
  137. package/src/QCObjects-SDK.d.ts +0 -26
  138. package/src/QCObjects-SDK.ts +0 -108
  139. package/src/index.cts +0 -2
  140. package/src/index.d.ts +0 -2
  141. package/src/index.mts +0 -2
  142. package/src/js/org.qcobjects.cloud.auth.session.data.d.ts +0 -1
  143. package/src/js/org.qcobjects.cloud.auth.session.data.ts +0 -135
  144. package/src/js/org.qcobjects.cloud.auth.session.usertoken.d.ts +0 -2
  145. package/src/js/org.qcobjects.cloud.auth.session.usertoken.ts +0 -128
  146. package/src/js/org.qcobjects.components.d.ts +0 -10
  147. package/src/js/org.qcobjects.components.grid.d.ts +0 -3
  148. package/src/js/org.qcobjects.components.grid.ts +0 -95
  149. package/src/js/org.qcobjects.components.list.d.ts +0 -3
  150. package/src/js/org.qcobjects.components.notifications.d.ts +0 -1
  151. package/src/js/org.qcobjects.components.slider.d.ts +0 -1
  152. package/src/js/org.qcobjects.components.slider.ts +0 -205
  153. package/src/js/org.qcobjects.components.splashscreen.d.ts +0 -28
  154. package/src/js/org.qcobjects.components.ts +0 -336
  155. package/src/js/org.qcobjects.controllers.d.ts +0 -1
  156. package/src/js/org.qcobjects.controllers.form.d.ts +0 -1
  157. package/src/js/org.qcobjects.controllers.form.ts +0 -206
  158. package/src/js/org.qcobjects.controllers.grid.d.ts +0 -1
  159. package/src/js/org.qcobjects.controllers.grid.ts +0 -287
  160. package/src/js/org.qcobjects.controllers.list.d.ts +0 -1
  161. package/src/js/org.qcobjects.controllers.list.ts +0 -254
  162. package/src/js/org.qcobjects.controllers.slider.d.ts +0 -1
  163. package/src/js/org.qcobjects.controllers.slider.ts +0 -158
  164. package/src/js/org.qcobjects.controllers.swagger.d.ts +0 -1
  165. package/src/js/org.qcobjects.controllers.swagger.ts +0 -83
  166. package/src/js/org.qcobjects.effects.d.ts +0 -20
  167. package/src/js/org.qcobjects.i18n_messages.d.ts +0 -1
  168. package/src/js/org.qcobjects.i18n_messages.ts +0 -82
  169. package/src/js/org.qcobjects.modal.controllers.d.ts +0 -1
  170. package/src/js/org.qcobjects.modal.effects.d.ts +0 -1
  171. package/src/js/org.qcobjects.models.d.ts +0 -1
  172. package/src/js/org.qcobjects.tools.canvas.d.ts +0 -1
  173. package/src/js/org.qcobjects.tools.d.ts +0 -1
  174. package/src/js/org.qcobjects.tools.layouts.d.ts +0 -1
  175. package/src/js/org.qcobjects.tools.layouts.ts +0 -85
  176. package/src/js/org.qcobjects.views.d.ts +0 -1
  177. /package/spec/{testsSpec.js → testsSpec.ts} +0 -0
@@ -0,0 +1,75 @@
1
+ /**
2
+ * QCObjects SDK 2.5
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
+ exports.SwaggerUIController = void 0;
28
+ const qcobjects_1 = require("qcobjects");
29
+ class SwaggerUIController extends qcobjects_1.Controller {
30
+ component;
31
+ dependencies;
32
+ startSwaggerUI() {
33
+ // Begin Swagger UI call region
34
+ if (typeof SwaggerUIBundle !== "undefined") {
35
+ const ui = SwaggerUIBundle({
36
+ url: qcobjects_1.CONFIG.get("swagger-ui-url", "https://petstore.swagger.io/v2/swagger.json"),
37
+ dom_id: "#" + qcobjects_1.CONFIG.get("swagger-ui-dom_id", "swagger-ui"),
38
+ deepLinking: true,
39
+ presets: [
40
+ SwaggerUIBundle.presets.apis,
41
+ SwaggerUIStandalonePreset
42
+ ],
43
+ plugins: [
44
+ SwaggerUIBundle.plugins.DownloadUrl
45
+ ],
46
+ layout: "StandaloneLayout"
47
+ });
48
+ // End Swagger UI call region
49
+ window.ui = ui;
50
+ }
51
+ }
52
+ done() {
53
+ this.component.body.innerHTML = "<div id=\"" + qcobjects_1.CONFIG.get("swagger-ui-dom_id", "swagger-ui") + "\"></div>";
54
+ const swaggerUIPackagePath = qcobjects_1.CONFIG.get("swagger-ui-package-path", "node_modules/swagger-ui-dist/");
55
+ this.dependencies?.push((0, qcobjects_1.New)(qcobjects_1.SourceJS, {
56
+ url: swaggerUIPackagePath + "swagger-ui-standalone-preset.js",
57
+ external: qcobjects_1.CONFIG.get("swagger-ui-external", false)
58
+ }));
59
+ this.dependencies?.push((0, qcobjects_1.New)(qcobjects_1.SourceCSS, {
60
+ url: swaggerUIPackagePath + "swagger-ui.css",
61
+ external: qcobjects_1.CONFIG.get("swagger-ui-external", false)
62
+ }));
63
+ this.dependencies?.push((0, qcobjects_1.New)(qcobjects_1.SourceJS, {
64
+ url: swaggerUIPackagePath + "swagger-ui-bundle.js",
65
+ external: qcobjects_1.CONFIG.get("swagger-ui-external", false),
66
+ done: () => {
67
+ this.startSwaggerUI();
68
+ }
69
+ }));
70
+ }
71
+ }
72
+ exports.SwaggerUIController = SwaggerUIController;
73
+ (0, qcobjects_1.Package)("org.qcobjects.controllers.swagger", [
74
+ SwaggerUIController
75
+ ]);
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Move = exports.Fade = void 0;
4
+ const qcobjects_1 = require("qcobjects");
5
+ class Fade extends qcobjects_1.Effect {
6
+ duration = 1000;
7
+ static duration;
8
+ constructor(o) {
9
+ super(o);
10
+ this.duration = o?.duration;
11
+ }
12
+ apply(element, alphaFrom, alphaTo) {
13
+ const da = alphaTo - alphaFrom;
14
+ super.animate({
15
+ duration: this.duration,
16
+ timing(timeFraction) {
17
+ return timeFraction;
18
+ },
19
+ draw(progress) {
20
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
21
+ const alpha = alphaFrom + (progress * da / 100);
22
+ qcobjects_1.logger.debug("alpha: " + alpha.toString());
23
+ element.style.opacity = alpha.toString();
24
+ }
25
+ });
26
+ }
27
+ static apply(element, alphaFrom, alphaTo) {
28
+ const da = alphaTo - alphaFrom;
29
+ super.animate({
30
+ duration: this.duration,
31
+ timing(timeFraction) {
32
+ return timeFraction;
33
+ },
34
+ draw(progress) {
35
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
36
+ const alpha = alphaFrom + (progress * da / 100);
37
+ qcobjects_1.logger.debug("alpha: " + alpha.toString());
38
+ element.style.opacity = alpha.toString();
39
+ }
40
+ });
41
+ }
42
+ }
43
+ exports.Fade = Fade;
44
+ class Move extends qcobjects_1.Effect {
45
+ duration = 1000;
46
+ static duration;
47
+ static apply(element, xfrom, yfrom, xto, yto) {
48
+ const dx = xto - xfrom;
49
+ const dy = yto - yfrom;
50
+ element.style.transform = "translate(" + xfrom + "px," + yfrom + "px)";
51
+ super.animate({
52
+ duration: this.duration,
53
+ timing(timeFraction) {
54
+ return timeFraction;
55
+ },
56
+ draw(progress) {
57
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
58
+ const y = yfrom + (progress * dy / 100);
59
+ const x = xfrom + (progress * dx / 100);
60
+ qcobjects_1.logger.debug("x: " + x.toString() + " y:" + y.toString());
61
+ element.style.transform = "translate(" + x + "px," + y + "px)";
62
+ }
63
+ });
64
+ }
65
+ }
66
+ exports.Move = Move;
67
+ (0, qcobjects_1.Package)("org.qcobjects.effects.base", [
68
+ Fade,
69
+ Move
70
+ ]);
@@ -0,0 +1,270 @@
1
+ /**
2
+ * QCObjects SDK 2.5
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
+ 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 = void 0;
28
+ const qcobjects_1 = require("qcobjects");
29
+ const org_qcobjects_effects_base_1 = require("./org.qcobjects.effects.base");
30
+ class MoveXInFromRight extends org_qcobjects_effects_base_1.Move {
31
+ duration = 1000;
32
+ static apply(element) {
33
+ org_qcobjects_effects_base_1.Move.apply.call(this, element, element.width, 0, 0, 0);
34
+ }
35
+ }
36
+ exports.MoveXInFromRight = MoveXInFromRight;
37
+ class MoveXInFromLeft extends org_qcobjects_effects_base_1.Move {
38
+ duration = 1000;
39
+ static apply(element) {
40
+ org_qcobjects_effects_base_1.Move.apply.call(this, element, -element.width, 0, 0, 0);
41
+ }
42
+ }
43
+ exports.MoveXInFromLeft = MoveXInFromLeft;
44
+ class MoveYInFromBottom extends org_qcobjects_effects_base_1.Move {
45
+ duration = 1000;
46
+ static apply(element) {
47
+ org_qcobjects_effects_base_1.Move.apply.call(this, element, 0, element.height, 0, 0);
48
+ }
49
+ }
50
+ exports.MoveYInFromBottom = MoveYInFromBottom;
51
+ class MoveYInFromTop extends org_qcobjects_effects_base_1.Move {
52
+ duration = 1000;
53
+ static apply(element) {
54
+ org_qcobjects_effects_base_1.Move.apply.call(this, element, 0, -element.height, 0, 0);
55
+ }
56
+ }
57
+ exports.MoveYInFromTop = MoveYInFromTop;
58
+ class RotateX extends qcobjects_1.Effect {
59
+ duration = 1000;
60
+ static duration;
61
+ static apply(element, angleFrom, angleTo) {
62
+ const da = angleTo - angleFrom;
63
+ super.animate({
64
+ duration: this.duration,
65
+ timing(timeFraction) {
66
+ return timeFraction;
67
+ },
68
+ draw(progress) {
69
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
70
+ const angle = Math.round(angleFrom + (progress * da / 100));
71
+ qcobjects_1.logger.debug("angle: " + angle.toString());
72
+ element.style.transform = "rotate3d(1,0,0," + angle.toString() + "deg)";
73
+ }
74
+ });
75
+ }
76
+ }
77
+ exports.RotateX = RotateX;
78
+ class RotateY extends qcobjects_1.Effect {
79
+ duration = 1000;
80
+ static duration;
81
+ static apply(element, angleFrom, angleTo) {
82
+ const da = angleTo - angleFrom;
83
+ super.animate({
84
+ duration: this.duration,
85
+ timing(timeFraction) {
86
+ return timeFraction;
87
+ },
88
+ draw(progress) {
89
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
90
+ const angle = Math.round(angleFrom + (progress * da / 100));
91
+ qcobjects_1.logger.debug("angle: " + angle.toString());
92
+ element.style.transform = "rotate3d(0,1,0," + angle.toString() + "deg)";
93
+ }
94
+ });
95
+ }
96
+ }
97
+ exports.RotateY = RotateY;
98
+ class RotateZ extends qcobjects_1.Effect {
99
+ duration = 1000;
100
+ apply(element, angleFrom, angleTo) {
101
+ const da = angleTo - angleFrom;
102
+ super.animate({
103
+ duration: this.duration,
104
+ timing(timeFraction) {
105
+ return timeFraction;
106
+ },
107
+ draw(progress) {
108
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
109
+ const angle = Math.round(angleFrom + (progress * da / 100));
110
+ qcobjects_1.logger.debug("angle: " + angle.toString());
111
+ element.style.transform = "rotate3d(0,0,1," + angle.toString() + "deg)";
112
+ }
113
+ });
114
+ }
115
+ }
116
+ exports.RotateZ = RotateZ;
117
+ class Rotate extends qcobjects_1.Effect {
118
+ duration = 1000;
119
+ apply(element, angleFrom, angleTo) {
120
+ const da = angleTo - angleFrom;
121
+ super.animate({
122
+ duration: this.duration,
123
+ timing(timeFraction) {
124
+ return timeFraction;
125
+ },
126
+ draw(progress) {
127
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
128
+ const angle = Math.round(angleFrom + (progress * da / 100));
129
+ qcobjects_1.logger.debug("angle: " + angle.toString());
130
+ element.style.transform = "rotate3d(1,1,1," + angle.toString() + "deg)";
131
+ }
132
+ });
133
+ }
134
+ }
135
+ exports.Rotate = Rotate;
136
+ class Radius extends qcobjects_1.Effect {
137
+ duration = 1000;
138
+ apply(element, radiusFrom, radiusTo) {
139
+ const dr = radiusTo - radiusFrom;
140
+ super.animate({
141
+ duration: this.duration,
142
+ timing(timeFraction) {
143
+ return timeFraction;
144
+ },
145
+ draw(progress) {
146
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
147
+ const radius = radiusFrom + (progress * dr / 100);
148
+ qcobjects_1.logger.debug("radius: " + radius.toString());
149
+ element.style.borderRadius = radius.toString() + "px";
150
+ }
151
+ });
152
+ }
153
+ }
154
+ exports.Radius = Radius;
155
+ class Resize extends qcobjects_1.Effect {
156
+ duration = 1000;
157
+ apply(element, scaleFrom, scaleTo) {
158
+ const ds = scaleTo - scaleFrom;
159
+ super.animate({
160
+ duration: this.duration,
161
+ timing(timeFraction) {
162
+ return timeFraction;
163
+ },
164
+ draw(progress) {
165
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
166
+ const scale = scaleFrom + (progress * ds / 100);
167
+ qcobjects_1.logger.debug("resize: " + scale.toString());
168
+ element.style.transformOrigin = "center";
169
+ element.style.transform = "scale(" + scale + "," + scale + ")";
170
+ }
171
+ });
172
+ }
173
+ }
174
+ exports.Resize = Resize;
175
+ class WipeLeft extends qcobjects_1.Effect {
176
+ duration = 1000;
177
+ apply(element, scaleFrom, scaleTo) {
178
+ const ds = scaleTo - scaleFrom;
179
+ super.animate({
180
+ duration: this.duration,
181
+ timing(timeFraction) {
182
+ return timeFraction;
183
+ },
184
+ draw(progress) {
185
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
186
+ const scale = scaleFrom + (progress * ds / 100);
187
+ qcobjects_1.logger.debug("wipe: " + scale.toString());
188
+ element.style.transformOrigin = "right";
189
+ element.style.transform = "scaleX(" + scale + ")";
190
+ }
191
+ });
192
+ }
193
+ }
194
+ exports.WipeLeft = WipeLeft;
195
+ class WipeRight extends qcobjects_1.Effect {
196
+ duration = 1000;
197
+ apply(element, scaleFrom, scaleTo) {
198
+ const ds = scaleTo - scaleFrom;
199
+ super.animate({
200
+ duration: this.duration,
201
+ timing(timeFraction) {
202
+ return timeFraction;
203
+ },
204
+ draw(progress) {
205
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
206
+ const scale = scaleFrom + (progress * ds / 100);
207
+ qcobjects_1.logger.debug("wipe: " + scale.toString());
208
+ element.style.transformOrigin = "left";
209
+ element.style.transform = "scaleX(" + scale + ")";
210
+ }
211
+ });
212
+ }
213
+ }
214
+ exports.WipeRight = WipeRight;
215
+ class WipeUp extends qcobjects_1.Effect {
216
+ duration = 1000;
217
+ apply(element, scaleFrom, scaleTo) {
218
+ const ds = scaleTo - scaleFrom;
219
+ super.animate({
220
+ duration: this.duration,
221
+ timing(timeFraction) {
222
+ return timeFraction;
223
+ },
224
+ draw(progress) {
225
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
226
+ const scale = scaleFrom + (progress * ds / 100);
227
+ qcobjects_1.logger.debug("wipe: " + scale.toString());
228
+ element.style.transformOrigin = "bottom";
229
+ element.style.transform = "scaleY(" + scale + ")";
230
+ }
231
+ });
232
+ }
233
+ }
234
+ exports.WipeUp = WipeUp;
235
+ class WipeDown extends qcobjects_1.Effect {
236
+ duration = 1000;
237
+ apply(element, scaleFrom, scaleTo) {
238
+ const ds = scaleTo - scaleFrom;
239
+ super.animate({
240
+ duration: this.duration,
241
+ timing(timeFraction) {
242
+ return timeFraction;
243
+ },
244
+ draw(progress) {
245
+ qcobjects_1.logger.debug("animation progress: " + progress.toString());
246
+ const scale = scaleFrom + (progress * ds / 100);
247
+ qcobjects_1.logger.debug("wipe: " + scale.toString());
248
+ element.style.transformOrigin = "top";
249
+ element.style.transform = "scaleY(" + scale + ")";
250
+ }
251
+ });
252
+ }
253
+ }
254
+ exports.WipeDown = WipeDown;
255
+ (0, qcobjects_1.Package)("org.qcobjects.effects.extended", [
256
+ MoveXInFromRight,
257
+ MoveXInFromLeft,
258
+ MoveYInFromBottom,
259
+ MoveYInFromTop,
260
+ RotateX,
261
+ RotateY,
262
+ RotateZ,
263
+ Rotate,
264
+ Radius,
265
+ Resize,
266
+ WipeLeft,
267
+ WipeRight,
268
+ WipeUp,
269
+ WipeDown
270
+ ]);
@@ -0,0 +1,49 @@
1
+ /**
2
+ * QCObjects SDK 2.5
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
+ exports.ModalMoveDown = exports.ModalMoveUp = 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;
28
+ var org_qcobjects_effects_base_1 = require("./org.qcobjects.effects.base");
29
+ Object.defineProperty(exports, "Fade", { enumerable: true, get: function () { return org_qcobjects_effects_base_1.Fade; } });
30
+ Object.defineProperty(exports, "Move", { enumerable: true, get: function () { return org_qcobjects_effects_base_1.Move; } });
31
+ var org_qcobjects_effects_extended_1 = require("./org.qcobjects.effects.extended");
32
+ Object.defineProperty(exports, "MoveXInFromRight", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.MoveXInFromRight; } });
33
+ Object.defineProperty(exports, "MoveXInFromLeft", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.MoveXInFromLeft; } });
34
+ Object.defineProperty(exports, "MoveYInFromBottom", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.MoveYInFromBottom; } });
35
+ Object.defineProperty(exports, "MoveYInFromTop", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.MoveYInFromTop; } });
36
+ Object.defineProperty(exports, "RotateX", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.RotateX; } });
37
+ Object.defineProperty(exports, "RotateY", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.RotateY; } });
38
+ Object.defineProperty(exports, "RotateZ", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.RotateZ; } });
39
+ Object.defineProperty(exports, "Rotate", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.Rotate; } });
40
+ Object.defineProperty(exports, "Radius", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.Radius; } });
41
+ Object.defineProperty(exports, "Resize", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.Resize; } });
42
+ Object.defineProperty(exports, "WipeLeft", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.WipeLeft; } });
43
+ Object.defineProperty(exports, "WipeRight", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.WipeRight; } });
44
+ Object.defineProperty(exports, "WipeUp", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.WipeUp; } });
45
+ Object.defineProperty(exports, "WipeDown", { enumerable: true, get: function () { return org_qcobjects_effects_extended_1.WipeDown; } });
46
+ var org_qcobjects_modal_effects_1 = require("./org.qcobjects.modal.effects");
47
+ Object.defineProperty(exports, "ModalFade", { enumerable: true, get: function () { return org_qcobjects_modal_effects_1.ModalFade; } });
48
+ Object.defineProperty(exports, "ModalMoveUp", { enumerable: true, get: function () { return org_qcobjects_modal_effects_1.ModalMoveUp; } });
49
+ Object.defineProperty(exports, "ModalMoveDown", { enumerable: true, get: function () { return org_qcobjects_modal_effects_1.ModalMoveDown; } });
@@ -0,0 +1,59 @@
1
+ /**
2
+ * QCObjects SDK 2.5
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
+ exports.i18n_messages = void 0;
28
+ const qcobjects_1 = require("qcobjects");
29
+ class i18n_messages extends qcobjects_1.InheritClass {
30
+ constructor({ messages = [] }) {
31
+ super({
32
+ messages
33
+ });
34
+ if (qcobjects_1.CONFIG.get("use_i18n", false)) {
35
+ qcobjects_1.CONFIG.set("lang", "en");
36
+ if (!qcobjects_1.global.get("i18n")) {
37
+ qcobjects_1.global.set("i18n", {
38
+ messages
39
+ });
40
+ }
41
+ else {
42
+ qcobjects_1.global.set("i18n", {
43
+ messages: qcobjects_1.global.get("i18n").messages.concat(messages)
44
+ });
45
+ }
46
+ }
47
+ }
48
+ _load_i18n_packages_() {
49
+ // eslint-disable-next-line array-callback-return
50
+ return qcobjects_1.CONFIG.get("i18n_languages", []).map((i18n_packagename) => {
51
+ (0, qcobjects_1.Import)(`org.quickcorp.i18n_messages.${i18n_packagename}`);
52
+ });
53
+ }
54
+ }
55
+ exports.i18n_messages = i18n_messages;
56
+ (0, qcobjects_1.Package)("org.qcobjects.i18n_messages", [
57
+ i18n_messages
58
+ ]);
59
+ (new i18n_messages({}))._load_i18n_packages_();
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const qcobjects_1 = require("qcobjects");
4
1
  /**
5
- * QCObjects SDK 2.4
2
+ * QCObjects SDK 2.5
6
3
  * ________________
7
4
  *
8
5
  * Author: Jean Machuca <correojean@gmail.com>
@@ -25,14 +22,18 @@ const qcobjects_1 = require("qcobjects");
25
22
  * Everyone is permitted to copy and distribute verbatim copies of this
26
23
  * license document, but changing it is not allowed.
27
24
  */
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
- })();
25
+ "use strict";
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.ModalController = void 0;
28
+ const qcobjects_1 = require("qcobjects");
29
+ class ModalController extends qcobjects_1.Controller {
30
+ component;
31
+ done() {
32
+ const component = this.component;
33
+ component.body.innerHTML = component.body.innerHTML.replace("/{{content}}/g", component.submodal.template);
34
+ }
35
+ }
36
+ exports.ModalController = ModalController;
37
+ (0, qcobjects_1.Package)("org.qcobjects.modal.controllers", [
38
+ ModalController
39
+ ]);
@@ -0,0 +1,46 @@
1
+ /**
2
+ * QCObjects SDK 2.5
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
+ exports.ModalMoveDown = exports.ModalMoveUp = exports.ModalFade = void 0;
28
+ const qcobjects_1 = require("qcobjects");
29
+ const org_qcobjects_effects_1 = require("./org.qcobjects.effects");
30
+ class ModalFade extends org_qcobjects_effects_1.Fade {
31
+ duration = 500;
32
+ }
33
+ exports.ModalFade = ModalFade;
34
+ class ModalMoveUp extends org_qcobjects_effects_1.Move {
35
+ duration = 800;
36
+ }
37
+ exports.ModalMoveUp = ModalMoveUp;
38
+ class ModalMoveDown extends org_qcobjects_effects_1.Move {
39
+ duration = 300;
40
+ }
41
+ exports.ModalMoveDown = ModalMoveDown;
42
+ (0, qcobjects_1.Package)("org.qcobjects.modal.effects", [
43
+ ModalFade,
44
+ ModalMoveDown,
45
+ ModalMoveUp
46
+ ]);
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const qcobjects_1 = require("qcobjects");
4
1
  /**
5
- * QCObjects SDK 2.4
2
+ * QCObjects SDK 2.5
6
3
  * ________________
7
4
  *
8
5
  * Author: Jean Machuca <correojean@gmail.com>
@@ -25,10 +22,13 @@ const qcobjects_1 = require("qcobjects");
25
22
  * Everyone is permitted to copy and distribute verbatim copies of this
26
23
  * license document, but changing it is not allowed.
27
24
  */
28
- (function () {
29
- "use strict";
30
- (0, qcobjects_1.Package)("org.qcobjects.models", [
31
- class Contact extends qcobjects_1.VO {
32
- }
33
- ]);
34
- })();
25
+ "use strict";
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.Contact = void 0;
28
+ const qcobjects_1 = require("qcobjects");
29
+ class Contact extends qcobjects_1.VO {
30
+ }
31
+ exports.Contact = Contact;
32
+ (0, qcobjects_1.Package)("org.qcobjects.models", [
33
+ Contact
34
+ ]);