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.
- package/.github/workflows/npmpublish.yml +47 -0
- package/README.md +0 -1
- package/VERSION +1 -1
- package/build/index.js +137 -25
- package/build/ts/org.qcobjects.base.components.js +75 -0
- package/build/ts/org.qcobjects.cloud.auth.session.data.js +122 -0
- package/build/ts/org.qcobjects.cloud.auth.session.usertoken.js +97 -0
- package/build/ts/org.qcobjects.components.grid.js +63 -0
- package/build/ts/org.qcobjects.components.js +200 -0
- package/build/{js/org.qcobjects.modal.effects.js → ts/org.qcobjects.components.list.js} +40 -29
- package/build/ts/org.qcobjects.components.notifications.js +180 -0
- package/build/ts/org.qcobjects.components.slider.js +207 -0
- package/build/{js → ts}/org.qcobjects.components.splashscreen.js +123 -130
- package/build/ts/org.qcobjects.controllers.form.js +180 -0
- package/build/ts/org.qcobjects.controllers.grid.js +269 -0
- package/build/{js → ts}/org.qcobjects.controllers.js +11 -11
- package/build/ts/org.qcobjects.controllers.list.js +235 -0
- package/build/ts/org.qcobjects.controllers.slider.js +126 -0
- package/build/ts/org.qcobjects.controllers.swagger.js +75 -0
- package/build/ts/org.qcobjects.effects.base.js +70 -0
- package/build/ts/org.qcobjects.effects.extended.js +270 -0
- package/build/ts/org.qcobjects.effects.js +49 -0
- package/build/ts/org.qcobjects.i18n_messages.js +59 -0
- package/build/{js → ts}/org.qcobjects.modal.controllers.js +16 -15
- package/build/ts/org.qcobjects.modal.effects.js +46 -0
- package/build/{js → ts}/org.qcobjects.models.js +11 -11
- package/{src/js/org.qcobjects.tools.canvas.ts → build/ts/org.qcobjects.tools.canvas.js} +16 -21
- package/build/{js → ts}/org.qcobjects.tools.js +10 -3
- package/build/ts/org.qcobjects.tools.layouts.js +74 -0
- package/build/{js → ts}/org.qcobjects.views.js +11 -11
- package/build-esbuild.js +72 -0
- package/eslint.config.mjs +88 -0
- package/package.json +67 -63
- package/postbuild.js +10 -0
- package/public/browser/index.js +9829 -0
- package/public/browser/index.js.map +7 -0
- package/public/cjs/index.cjs +9879 -0
- package/public/cjs/index.cjs.map +7 -0
- package/public/esm/index.mjs +9819 -0
- package/public/esm/index.mjs.map +7 -0
- package/public/types/index.d.ts +614 -0
- package/spec/helpers/mock-sdk.helper.ts +2 -0
- package/spec/mocks/qcobjects-sdk.mock.ts +1 -0
- package/spec/support/jasmine.json +7 -4
- package/src/index.ts +127 -2
- package/src/ts/org.qcobjects.base.components.ts +83 -0
- package/src/ts/org.qcobjects.cloud.auth.session.data.ts +134 -0
- package/src/ts/org.qcobjects.cloud.auth.session.usertoken.ts +108 -0
- package/src/ts/org.qcobjects.components.grid.ts +68 -0
- package/src/{js → ts}/org.qcobjects.components.list.ts +15 -31
- package/src/{js → ts}/org.qcobjects.components.notifications.ts +12 -12
- package/src/ts/org.qcobjects.components.slider.ts +216 -0
- package/src/{js → ts}/org.qcobjects.components.splashscreen.ts +31 -39
- package/src/ts/org.qcobjects.components.ts +226 -0
- package/src/ts/org.qcobjects.controllers.form.ts +209 -0
- package/src/ts/org.qcobjects.controllers.grid.ts +291 -0
- package/src/ts/org.qcobjects.controllers.list.ts +256 -0
- package/src/ts/org.qcobjects.controllers.slider.ts +153 -0
- package/src/ts/org.qcobjects.controllers.swagger.ts +83 -0
- package/src/{js → ts}/org.qcobjects.controllers.ts +7 -9
- package/src/ts/org.qcobjects.effects.base.ts +81 -0
- package/src/{js/org.qcobjects.effects.ts → ts/org.qcobjects.effects.extended.ts} +70 -198
- package/src/ts/org.qcobjects.effects.ts +42 -0
- package/src/ts/org.qcobjects.i18n_messages.ts +68 -0
- package/src/{js → ts}/org.qcobjects.modal.controllers.ts +12 -14
- package/src/{js → ts}/org.qcobjects.modal.effects.ts +22 -18
- package/src/{js → ts}/org.qcobjects.models.ts +8 -11
- package/src/ts/org.qcobjects.tools.canvas.ts +57 -0
- package/src/ts/org.qcobjects.tools.layouts.ts +82 -0
- package/src/{js → ts}/org.qcobjects.tools.ts +7 -1
- package/src/{js → ts}/org.qcobjects.views.ts +9 -8
- package/src/types/global/index.d.ts +181 -0
- package/transpile.js +65 -0
- package/tsconfig.d.json +65 -3
- package/tsconfig.jasmine.json +64 -0
- package/tsconfig.json +71 -7
- package/.eslintignore +0 -4
- package/.eslintrc.cjs +0 -6
- package/.github/workflows/npmpublish-beta.yml +0 -38
- package/.github/workflows/npmpublish-lts.yml +0 -38
- package/.github/workflows/npmpublish-main.yml +0 -40
- package/.gitmodules +0 -4
- package/build/QCObjects-SDK.js +0 -97
- package/build/css/base-modal.css +0 -43
- package/build/css/basic-layout-embedded-nav.css +0 -14
- package/build/css/basic-layout.css +0 -76
- package/build/css/components/horizontal-list.css +0 -64
- package/build/css/components/list.css +0 -57
- package/build/css/components/splashscreen.css +0 -111
- package/build/css/modal.css +0 -46
- package/build/index.cjs +0 -4
- package/build/index.mjs +0 -2
- package/build/js/org.qcobjects.cloud.auth.session.data.js +0 -125
- package/build/js/org.qcobjects.cloud.auth.session.usertoken.js +0 -109
- package/build/js/org.qcobjects.components.grid.js +0 -81
- package/build/js/org.qcobjects.components.js +0 -292
- package/build/js/org.qcobjects.components.list.js +0 -71
- package/build/js/org.qcobjects.components.notifications.js +0 -179
- package/build/js/org.qcobjects.components.slider.js +0 -193
- package/build/js/org.qcobjects.controllers.form.js +0 -178
- package/build/js/org.qcobjects.controllers.grid.js +0 -258
- package/build/js/org.qcobjects.controllers.list.js +0 -228
- package/build/js/org.qcobjects.controllers.slider.js +0 -131
- package/build/js/org.qcobjects.controllers.swagger.js +0 -50
- package/build/js/org.qcobjects.effects.js +0 -417
- package/build/js/org.qcobjects.i18n_messages.js +0 -72
- package/build/js/org.qcobjects.tools.canvas.js +0 -53
- package/build/js/org.qcobjects.tools.layouts.js +0 -73
- package/build/templates/components/modalyoulose.tpl.html +0 -3
- package/build/templates/components/modalyouwin.tpl.html +0 -4
- package/build/templates/components/splashscreen.tpl.html +0 -128
- package/build/templates/components/swagger-ui.tpl.html +0 -22
- package/docs/CNAME +0 -1
- package/public/QCObjects-SDK.js +0 -696
- package/public/QCObjects-SDK.js.map +0 -7
- package/public/css/base-modal.css +0 -2
- package/public/css/base-modal.css.map +0 -7
- package/public/css/basic-layout-embedded-nav.css +0 -2
- package/public/css/basic-layout-embedded-nav.css.map +0 -7
- package/public/css/basic-layout.css +0 -2
- package/public/css/basic-layout.css.map +0 -7
- package/public/css/components/horizontal-list.css +0 -2
- package/public/css/components/horizontal-list.css.map +0 -7
- package/public/css/components/list.css +0 -2
- package/public/css/components/list.css.map +0 -7
- package/public/css/components/splashscreen.css +0 -2
- package/public/css/components/splashscreen.css.map +0 -7
- package/public/css/modal.css +0 -2
- package/public/css/modal.css.map +0 -7
- package/public/index.cjs +0 -4
- package/public/index.js +0 -27
- package/public/index.mjs +0 -2
- package/public/templates/components/modalyoulose.tpl.html +0 -3
- package/public/templates/components/modalyouwin.tpl.html +0 -4
- package/public/templates/components/splashscreen.tpl.html +0 -128
- package/public/templates/components/swagger-ui.tpl.html +0 -22
- package/src/QCObjects-SDK.d.ts +0 -26
- package/src/QCObjects-SDK.ts +0 -108
- package/src/index.cts +0 -2
- package/src/index.d.ts +0 -2
- package/src/index.mts +0 -2
- package/src/js/org.qcobjects.cloud.auth.session.data.d.ts +0 -1
- package/src/js/org.qcobjects.cloud.auth.session.data.ts +0 -135
- package/src/js/org.qcobjects.cloud.auth.session.usertoken.d.ts +0 -2
- package/src/js/org.qcobjects.cloud.auth.session.usertoken.ts +0 -128
- package/src/js/org.qcobjects.components.d.ts +0 -10
- package/src/js/org.qcobjects.components.grid.d.ts +0 -3
- package/src/js/org.qcobjects.components.grid.ts +0 -95
- package/src/js/org.qcobjects.components.list.d.ts +0 -3
- package/src/js/org.qcobjects.components.notifications.d.ts +0 -1
- package/src/js/org.qcobjects.components.slider.d.ts +0 -1
- package/src/js/org.qcobjects.components.slider.ts +0 -205
- package/src/js/org.qcobjects.components.splashscreen.d.ts +0 -28
- package/src/js/org.qcobjects.components.ts +0 -336
- package/src/js/org.qcobjects.controllers.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.form.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.form.ts +0 -206
- package/src/js/org.qcobjects.controllers.grid.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.grid.ts +0 -287
- package/src/js/org.qcobjects.controllers.list.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.list.ts +0 -254
- package/src/js/org.qcobjects.controllers.slider.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.slider.ts +0 -158
- package/src/js/org.qcobjects.controllers.swagger.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.swagger.ts +0 -83
- package/src/js/org.qcobjects.effects.d.ts +0 -20
- package/src/js/org.qcobjects.i18n_messages.d.ts +0 -1
- package/src/js/org.qcobjects.i18n_messages.ts +0 -82
- package/src/js/org.qcobjects.modal.controllers.d.ts +0 -1
- package/src/js/org.qcobjects.modal.effects.d.ts +0 -1
- package/src/js/org.qcobjects.models.d.ts +0 -1
- package/src/js/org.qcobjects.tools.canvas.d.ts +0 -1
- package/src/js/org.qcobjects.tools.d.ts +0 -1
- package/src/js/org.qcobjects.tools.layouts.d.ts +0 -1
- package/src/js/org.qcobjects.tools.layouts.ts +0 -85
- package/src/js/org.qcobjects.views.d.ts +0 -1
- /package/spec/{testsSpec.js → testsSpec.ts} +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { Effect, Package, logger } from "qcobjects";
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
* QCObjects SDK 2.
|
|
2
|
+
* QCObjects SDK 2.5
|
|
5
3
|
* ________________
|
|
6
4
|
*
|
|
7
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
@@ -24,123 +22,56 @@ import { Effect, Package, logger } from "qcobjects";
|
|
|
24
22
|
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
25
23
|
* license document, but changing it is not allowed.
|
|
26
24
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
: typeof self !== "undefined"
|
|
31
|
-
? self
|
|
32
|
-
: typeof window !== "undefined"
|
|
33
|
-
? window
|
|
34
|
-
: typeof global !== "undefined"
|
|
35
|
-
? global
|
|
36
|
-
: {})
|
|
37
|
-
) : ((typeof global === "object") ? (global) : (
|
|
38
|
-
(typeof window === "object") ? (window) : ({})
|
|
39
|
-
));
|
|
40
|
-
|
|
41
|
-
(function () {
|
|
42
|
-
"use strict";
|
|
43
|
-
|
|
44
|
-
type MoveElement = HTMLElement & {
|
|
45
|
-
width:number;
|
|
46
|
-
height:number;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
class Fade extends Effect {
|
|
50
|
-
duration = 1000;
|
|
51
|
-
|
|
52
|
-
apply(element:HTMLElement, alphaFrom:number, alphaTo:number) {
|
|
53
|
-
const da = alphaTo - alphaFrom;
|
|
54
|
-
this.animate({
|
|
55
|
-
duration: this.duration,
|
|
56
|
-
timing(timeFraction) {
|
|
57
|
-
return timeFraction;
|
|
58
|
-
},
|
|
59
|
-
draw(progress) {
|
|
60
|
-
logger.debug("animation progress: " + progress.toString());
|
|
61
|
-
const alpha = alphaFrom + (progress * da / 100);
|
|
62
|
-
logger.debug("alpha: " + alpha.toString());
|
|
63
|
-
element.style.opacity = alpha.toString();
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
25
|
+
"use strict";
|
|
26
|
+
import {Effect, logger, Package} from "qcobjects";
|
|
27
|
+
import {Move, MoveElement} from "./org.qcobjects.effects.base";
|
|
68
28
|
|
|
69
|
-
|
|
29
|
+
export class MoveXInFromRight extends Move {
|
|
70
30
|
duration = 1000;
|
|
71
31
|
|
|
72
|
-
apply(element:MoveElement
|
|
73
|
-
|
|
74
|
-
const dy = yto - yfrom;
|
|
75
|
-
element.style.transform = "translate(" + xfrom + "px," + yfrom + "px)";
|
|
76
|
-
this.animate({
|
|
77
|
-
duration: this.duration,
|
|
78
|
-
timing(timeFraction) {
|
|
79
|
-
return timeFraction;
|
|
80
|
-
},
|
|
81
|
-
draw(progress) {
|
|
82
|
-
logger.debug("animation progress: " + progress.toString());
|
|
83
|
-
const y = yfrom + (progress * dy / 100);
|
|
84
|
-
const x = xfrom + (progress * dx / 100);
|
|
85
|
-
logger.debug("x: " + x.toString() + " y:" + y.toString());
|
|
86
|
-
element.style.transform = "translate(" + x + "px," + y + "px)";
|
|
87
|
-
}
|
|
88
|
-
});
|
|
32
|
+
static apply(element:MoveElement) {
|
|
33
|
+
Move.apply.call(this, element, element.width as number, 0, 0, 0);
|
|
89
34
|
}
|
|
90
|
-
|
|
91
35
|
}
|
|
92
36
|
|
|
93
|
-
|
|
94
|
-
Fade,
|
|
95
|
-
Move
|
|
96
|
-
]);
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
class MoveXInFromRight extends Move {
|
|
37
|
+
export class MoveXInFromLeft extends Move {
|
|
101
38
|
duration = 1000;
|
|
102
39
|
|
|
103
|
-
apply(element:MoveElement) {
|
|
104
|
-
|
|
40
|
+
static apply(element:MoveElement) {
|
|
41
|
+
Move.apply.call(this, element, -(element.width as number), 0, 0, 0);
|
|
105
42
|
}
|
|
106
43
|
}
|
|
107
44
|
|
|
108
|
-
class
|
|
45
|
+
export class MoveYInFromBottom extends Move {
|
|
109
46
|
duration = 1000;
|
|
110
47
|
|
|
111
|
-
apply(element:MoveElement) {
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
class MoveYInFromBottom extends Move {
|
|
117
|
-
duration = 1000;
|
|
118
|
-
|
|
119
|
-
apply(element:MoveElement) {
|
|
120
|
-
super.apply.call(this, element, 0, element.height, 0, 0);
|
|
48
|
+
static apply(element:MoveElement) {
|
|
49
|
+
Move.apply.call(this, element, 0, element.height as number, 0, 0);
|
|
121
50
|
}
|
|
122
51
|
|
|
123
52
|
}
|
|
124
53
|
|
|
125
|
-
class MoveYInFromTop extends Move {
|
|
54
|
+
export class MoveYInFromTop extends Move {
|
|
126
55
|
duration = 1000;
|
|
127
56
|
|
|
128
|
-
apply(element:MoveElement ) {
|
|
129
|
-
|
|
57
|
+
static apply(element:MoveElement ) {
|
|
58
|
+
Move.apply.call(this, element, 0, -(element.height as number), 0, 0);
|
|
130
59
|
}
|
|
131
60
|
}
|
|
132
61
|
|
|
133
|
-
class RotateX extends Effect {
|
|
62
|
+
export class RotateX extends Effect {
|
|
134
63
|
duration = 1000;
|
|
64
|
+
static duration: any;
|
|
135
65
|
|
|
136
|
-
apply(element:HTMLElement, angleFrom:number, angleTo:number) {
|
|
66
|
+
static apply(element:HTMLElement, angleFrom:number, angleTo:number) {
|
|
137
67
|
const da = angleTo - angleFrom;
|
|
138
|
-
|
|
68
|
+
super.animate({
|
|
139
69
|
duration: this.duration,
|
|
140
|
-
timing(timeFraction) {
|
|
70
|
+
timing(timeFraction: number) {
|
|
71
|
+
|
|
141
72
|
return timeFraction;
|
|
142
73
|
},
|
|
143
|
-
draw(progress) {
|
|
74
|
+
draw(progress: number) {
|
|
144
75
|
logger.debug("animation progress: " + progress.toString());
|
|
145
76
|
const angle = Math.round(angleFrom + (progress * da / 100));
|
|
146
77
|
logger.debug("angle: " + angle.toString());
|
|
@@ -151,17 +82,19 @@ const _top:any = (typeof module === "object" && typeof module.exports === "objec
|
|
|
151
82
|
|
|
152
83
|
}
|
|
153
84
|
|
|
154
|
-
class RotateY extends Effect {
|
|
85
|
+
export class RotateY extends Effect {
|
|
155
86
|
duration = 1000;
|
|
87
|
+
static duration: any;
|
|
156
88
|
|
|
157
|
-
apply(element:HTMLElement, angleFrom:number, angleTo:number) {
|
|
89
|
+
static apply(element:HTMLElement, angleFrom:number, angleTo:number) {
|
|
158
90
|
const da = angleTo - angleFrom;
|
|
159
|
-
|
|
91
|
+
super.animate({
|
|
160
92
|
duration: this.duration,
|
|
161
|
-
timing(timeFraction) {
|
|
93
|
+
timing(timeFraction: number) {
|
|
94
|
+
|
|
162
95
|
return timeFraction;
|
|
163
96
|
},
|
|
164
|
-
draw(progress) {
|
|
97
|
+
draw(progress: number) {
|
|
165
98
|
logger.debug("animation progress: " + progress.toString());
|
|
166
99
|
const angle = Math.round(angleFrom + (progress * da / 100));
|
|
167
100
|
logger.debug("angle: " + angle.toString());
|
|
@@ -171,17 +104,18 @@ const _top:any = (typeof module === "object" && typeof module.exports === "objec
|
|
|
171
104
|
}
|
|
172
105
|
}
|
|
173
106
|
|
|
174
|
-
class RotateZ extends Effect {
|
|
107
|
+
export class RotateZ extends Effect {
|
|
175
108
|
duration = 1000;
|
|
176
109
|
|
|
177
110
|
apply(element:HTMLElement, angleFrom:number, angleTo:number) {
|
|
178
111
|
const da = angleTo - angleFrom;
|
|
179
|
-
|
|
112
|
+
super.animate({
|
|
180
113
|
duration: this.duration,
|
|
181
|
-
timing(timeFraction) {
|
|
114
|
+
timing(timeFraction: number) {
|
|
115
|
+
|
|
182
116
|
return timeFraction;
|
|
183
117
|
},
|
|
184
|
-
draw(progress) {
|
|
118
|
+
draw(progress: number) {
|
|
185
119
|
logger.debug("animation progress: " + progress.toString());
|
|
186
120
|
const angle = Math.round(angleFrom + (progress * da / 100));
|
|
187
121
|
logger.debug("angle: " + angle.toString());
|
|
@@ -192,17 +126,18 @@ const _top:any = (typeof module === "object" && typeof module.exports === "objec
|
|
|
192
126
|
|
|
193
127
|
}
|
|
194
128
|
|
|
195
|
-
class Rotate extends Effect {
|
|
129
|
+
export class Rotate extends Effect {
|
|
196
130
|
duration = 1000;
|
|
197
131
|
|
|
198
132
|
apply(element:HTMLElement, angleFrom:number, angleTo:number) {
|
|
199
133
|
const da = angleTo - angleFrom;
|
|
200
|
-
|
|
134
|
+
super.animate({
|
|
201
135
|
duration: this.duration,
|
|
202
|
-
timing(timeFraction) {
|
|
136
|
+
timing(timeFraction: number) {
|
|
137
|
+
|
|
203
138
|
return timeFraction;
|
|
204
139
|
},
|
|
205
|
-
draw(progress) {
|
|
140
|
+
draw(progress: number) {
|
|
206
141
|
logger.debug("animation progress: " + progress.toString());
|
|
207
142
|
const angle = Math.round(angleFrom + (progress * da / 100));
|
|
208
143
|
logger.debug("angle: " + angle.toString());
|
|
@@ -212,17 +147,18 @@ const _top:any = (typeof module === "object" && typeof module.exports === "objec
|
|
|
212
147
|
}
|
|
213
148
|
}
|
|
214
149
|
|
|
215
|
-
class Radius extends Effect {
|
|
150
|
+
export class Radius extends Effect {
|
|
216
151
|
duration = 1000;
|
|
217
152
|
|
|
218
153
|
apply(element:HTMLElement, radiusFrom:number, radiusTo:number) {
|
|
219
154
|
const dr = radiusTo - radiusFrom;
|
|
220
|
-
|
|
155
|
+
super.animate({
|
|
221
156
|
duration: this.duration,
|
|
222
|
-
timing(timeFraction) {
|
|
157
|
+
timing(timeFraction: number) {
|
|
158
|
+
|
|
223
159
|
return timeFraction;
|
|
224
160
|
},
|
|
225
|
-
draw(progress) {
|
|
161
|
+
draw(progress: number) {
|
|
226
162
|
logger.debug("animation progress: " + progress.toString());
|
|
227
163
|
const radius = radiusFrom + (progress * dr / 100);
|
|
228
164
|
logger.debug("radius: " + radius.toString());
|
|
@@ -233,17 +169,18 @@ const _top:any = (typeof module === "object" && typeof module.exports === "objec
|
|
|
233
169
|
|
|
234
170
|
}
|
|
235
171
|
|
|
236
|
-
class Resize extends Effect {
|
|
172
|
+
export class Resize extends Effect {
|
|
237
173
|
duration = 1000;
|
|
238
174
|
|
|
239
175
|
apply(element:HTMLElement, scaleFrom:number, scaleTo:number) {
|
|
240
176
|
const ds = scaleTo - scaleFrom;
|
|
241
|
-
|
|
177
|
+
super.animate({
|
|
242
178
|
duration: this.duration,
|
|
243
|
-
timing(timeFraction) {
|
|
179
|
+
timing(timeFraction: number) {
|
|
180
|
+
|
|
244
181
|
return timeFraction;
|
|
245
182
|
},
|
|
246
|
-
draw(progress) {
|
|
183
|
+
draw(progress: number) {
|
|
247
184
|
logger.debug("animation progress: " + progress.toString());
|
|
248
185
|
const scale = scaleFrom + (progress * ds / 100);
|
|
249
186
|
logger.debug("resize: " + scale.toString());
|
|
@@ -255,17 +192,18 @@ const _top:any = (typeof module === "object" && typeof module.exports === "objec
|
|
|
255
192
|
|
|
256
193
|
}
|
|
257
194
|
|
|
258
|
-
class WipeLeft extends Effect {
|
|
195
|
+
export class WipeLeft extends Effect {
|
|
259
196
|
duration = 1000;
|
|
260
197
|
|
|
261
198
|
apply(element:HTMLElement, scaleFrom:number, scaleTo:number) {
|
|
262
199
|
const ds = scaleTo - scaleFrom;
|
|
263
|
-
|
|
200
|
+
super.animate({
|
|
264
201
|
duration: this.duration,
|
|
265
|
-
timing(timeFraction) {
|
|
202
|
+
timing(timeFraction: number) {
|
|
203
|
+
|
|
266
204
|
return timeFraction;
|
|
267
205
|
},
|
|
268
|
-
draw(progress) {
|
|
206
|
+
draw(progress: number) {
|
|
269
207
|
logger.debug("animation progress: " + progress.toString());
|
|
270
208
|
const scale = scaleFrom + (progress * ds / 100);
|
|
271
209
|
logger.debug("wipe: " + scale.toString());
|
|
@@ -277,17 +215,18 @@ const _top:any = (typeof module === "object" && typeof module.exports === "objec
|
|
|
277
215
|
|
|
278
216
|
}
|
|
279
217
|
|
|
280
|
-
class WipeRight extends Effect {
|
|
218
|
+
export class WipeRight extends Effect {
|
|
281
219
|
duration = 1000;
|
|
282
220
|
|
|
283
221
|
apply(element:HTMLElement, scaleFrom:number, scaleTo:number) {
|
|
284
222
|
const ds = scaleTo - scaleFrom;
|
|
285
|
-
|
|
223
|
+
super.animate({
|
|
286
224
|
duration: this.duration,
|
|
287
|
-
timing(timeFraction) {
|
|
225
|
+
timing(timeFraction: number) {
|
|
226
|
+
|
|
288
227
|
return timeFraction;
|
|
289
228
|
},
|
|
290
|
-
draw(progress) {
|
|
229
|
+
draw(progress: number) {
|
|
291
230
|
logger.debug("animation progress: " + progress.toString());
|
|
292
231
|
const scale = scaleFrom + (progress * ds / 100);
|
|
293
232
|
logger.debug("wipe: " + scale.toString());
|
|
@@ -299,18 +238,19 @@ const _top:any = (typeof module === "object" && typeof module.exports === "objec
|
|
|
299
238
|
|
|
300
239
|
}
|
|
301
240
|
|
|
302
|
-
class WipeUp extends Effect {
|
|
241
|
+
export class WipeUp extends Effect {
|
|
303
242
|
|
|
304
243
|
duration = 1000;
|
|
305
244
|
|
|
306
245
|
apply(element:HTMLElement, scaleFrom:number, scaleTo:number) {
|
|
307
246
|
const ds = scaleTo - scaleFrom;
|
|
308
|
-
|
|
247
|
+
super.animate({
|
|
309
248
|
duration: this.duration,
|
|
310
|
-
timing(timeFraction) {
|
|
249
|
+
timing(timeFraction: number) {
|
|
250
|
+
|
|
311
251
|
return timeFraction;
|
|
312
252
|
},
|
|
313
|
-
draw(progress) {
|
|
253
|
+
draw(progress: number) {
|
|
314
254
|
logger.debug("animation progress: " + progress.toString());
|
|
315
255
|
const scale = scaleFrom + (progress * ds / 100);
|
|
316
256
|
logger.debug("wipe: " + scale.toString());
|
|
@@ -322,17 +262,18 @@ const _top:any = (typeof module === "object" && typeof module.exports === "objec
|
|
|
322
262
|
|
|
323
263
|
}
|
|
324
264
|
|
|
325
|
-
class WipeDown extends Effect {
|
|
265
|
+
export class WipeDown extends Effect {
|
|
326
266
|
duration = 1000;
|
|
327
267
|
|
|
328
268
|
apply(element:HTMLElement, scaleFrom:number, scaleTo:number) {
|
|
329
269
|
const ds = scaleTo - scaleFrom;
|
|
330
|
-
|
|
270
|
+
super.animate({
|
|
331
271
|
duration: this.duration,
|
|
332
|
-
timing(timeFraction) {
|
|
272
|
+
timing(timeFraction: number) {
|
|
273
|
+
|
|
333
274
|
return timeFraction;
|
|
334
275
|
},
|
|
335
|
-
draw(progress) {
|
|
276
|
+
draw(progress: number) {
|
|
336
277
|
logger.debug("animation progress: " + progress.toString());
|
|
337
278
|
const scale = scaleFrom + (progress * ds / 100);
|
|
338
279
|
logger.debug("wipe: " + scale.toString());
|
|
@@ -342,7 +283,6 @@ const _top:any = (typeof module === "object" && typeof module.exports === "objec
|
|
|
342
283
|
});
|
|
343
284
|
}
|
|
344
285
|
}
|
|
345
|
-
|
|
346
286
|
Package("org.qcobjects.effects.extended", [
|
|
347
287
|
MoveXInFromRight,
|
|
348
288
|
MoveXInFromLeft,
|
|
@@ -360,71 +300,3 @@ const _top:any = (typeof module === "object" && typeof module.exports === "objec
|
|
|
360
300
|
WipeDown
|
|
361
301
|
|
|
362
302
|
]);
|
|
363
|
-
|
|
364
|
-
class ModalFade extends Fade {
|
|
365
|
-
duration = 500;
|
|
366
|
-
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
class ModalMoveDown extends Move {
|
|
370
|
-
duration = 300;
|
|
371
|
-
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
class ModalMoveUp extends Move {
|
|
375
|
-
|
|
376
|
-
duration = 800;
|
|
377
|
-
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
Package("org.qcobjects.modal.effects", [
|
|
382
|
-
ModalFade,
|
|
383
|
-
ModalMoveDown,
|
|
384
|
-
ModalMoveUp
|
|
385
|
-
|
|
386
|
-
]);
|
|
387
|
-
|
|
388
|
-
})();
|
|
389
|
-
|
|
390
|
-
const Fade = _top.Fade;
|
|
391
|
-
const Move = _top.Fade;
|
|
392
|
-
const MoveXInFromRight = _top.MoveXInFromRight;
|
|
393
|
-
const MoveXInFromLeft = _top.MoveXInFromLeft;
|
|
394
|
-
const MoveYInFromBottom = _top.MoveYInFromBottom;
|
|
395
|
-
const MoveYInFromTop = _top.MoveYInFromTop;
|
|
396
|
-
const RotateX = _top.RotateX;
|
|
397
|
-
const RotateY = _top.RotateY;
|
|
398
|
-
const RotateZ = _top.RotateZ;
|
|
399
|
-
const Rotate = _top.Rotate;
|
|
400
|
-
const Radius = _top.Radius;
|
|
401
|
-
const Resize = _top.Resize;
|
|
402
|
-
const WipeLeft = _top.WipeLeft;
|
|
403
|
-
const WipeRight = _top.WipeRight;
|
|
404
|
-
const WipeUp = _top.WipeUp;
|
|
405
|
-
const WipeDown = _top.WipeDown;
|
|
406
|
-
const ModalFade = _top.ModalFade;
|
|
407
|
-
const ModalMoveDown = _top.ModalMoveDown;
|
|
408
|
-
const ModalMoveUp = _top.ModalMoveUp;
|
|
409
|
-
|
|
410
|
-
export {
|
|
411
|
-
Fade,
|
|
412
|
-
Move,
|
|
413
|
-
MoveXInFromRight,
|
|
414
|
-
MoveXInFromLeft,
|
|
415
|
-
MoveYInFromBottom,
|
|
416
|
-
MoveYInFromTop,
|
|
417
|
-
RotateX,
|
|
418
|
-
RotateY,
|
|
419
|
-
RotateZ,
|
|
420
|
-
Rotate,
|
|
421
|
-
Radius,
|
|
422
|
-
Resize,
|
|
423
|
-
WipeLeft,
|
|
424
|
-
WipeRight,
|
|
425
|
-
WipeUp,
|
|
426
|
-
WipeDown,
|
|
427
|
-
ModalFade,
|
|
428
|
-
ModalMoveDown,
|
|
429
|
-
ModalMoveUp
|
|
430
|
-
};
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
export {Fade, Move} from "./org.qcobjects.effects.base";
|
|
27
|
+
export{ MoveXInFromRight,
|
|
28
|
+
MoveXInFromLeft,
|
|
29
|
+
MoveYInFromBottom,
|
|
30
|
+
MoveYInFromTop,
|
|
31
|
+
RotateX,
|
|
32
|
+
RotateY,
|
|
33
|
+
RotateZ,
|
|
34
|
+
Rotate,
|
|
35
|
+
Radius,
|
|
36
|
+
Resize,
|
|
37
|
+
WipeLeft,
|
|
38
|
+
WipeRight,
|
|
39
|
+
WipeUp,
|
|
40
|
+
WipeDown} from "./org.qcobjects.effects.extended";
|
|
41
|
+
|
|
42
|
+
export {ModalFade, ModalMoveUp, ModalMoveDown} from "./org.qcobjects.modal.effects";
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
import { Package, InheritClass, CONFIG, Import, global } from "qcobjects";
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export class i18n_messages extends InheritClass {
|
|
31
|
+
|
|
32
|
+
constructor({
|
|
33
|
+
messages = []
|
|
34
|
+
}) {
|
|
35
|
+
super({
|
|
36
|
+
messages
|
|
37
|
+
});
|
|
38
|
+
if (CONFIG.get("use_i18n", false)) {
|
|
39
|
+
CONFIG.set("lang", "en");
|
|
40
|
+
if (!global.get("i18n")) {
|
|
41
|
+
global.set("i18n", {
|
|
42
|
+
messages
|
|
43
|
+
});
|
|
44
|
+
} else {
|
|
45
|
+
global.set("i18n", {
|
|
46
|
+
messages: global.get("i18n").messages.concat(messages)
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
_load_i18n_packages_() {
|
|
54
|
+
// eslint-disable-next-line array-callback-return
|
|
55
|
+
return CONFIG.get("i18n_languages", []).map((i18n_packagename: any) => {
|
|
56
|
+
|
|
57
|
+
Import(`org.quickcorp.i18n_messages.${i18n_packagename}`);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
Package("org.qcobjects.i18n_messages", [
|
|
64
|
+
|
|
65
|
+
i18n_messages
|
|
66
|
+
]);
|
|
67
|
+
|
|
68
|
+
(new i18n_messages({}))._load_i18n_packages_();
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { Package, Controller } from "qcobjects";
|
|
2
|
-
import { ModalComponent } from "./org.qcobjects.components";
|
|
3
|
-
|
|
4
1
|
/**
|
|
5
|
-
* QCObjects SDK 2.
|
|
2
|
+
* QCObjects SDK 2.5
|
|
6
3
|
* ________________
|
|
7
4
|
*
|
|
8
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
@@ -25,20 +22,21 @@ import { ModalComponent } from "./org.qcobjects.components";
|
|
|
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
25
|
"use strict";
|
|
30
|
-
Package
|
|
31
|
-
|
|
32
|
-
class ModalController extends Controller {
|
|
26
|
+
import { Package, Controller } from "qcobjects";
|
|
33
27
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
component.body.innerHTML = component.body.innerHTML.replace("/{{content}}/g",component.submodal.template);
|
|
28
|
+
export class ModalController extends Controller {
|
|
29
|
+
component: any;
|
|
37
30
|
|
|
38
|
-
|
|
31
|
+
done() {
|
|
32
|
+
const component = this.component;
|
|
33
|
+
component.body.innerHTML = component.body.innerHTML.replace("/{{content}}/g", component.submodal.template);
|
|
39
34
|
|
|
40
35
|
}
|
|
41
36
|
|
|
42
|
-
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
Package("org.qcobjects.modal.controllers", [
|
|
40
|
+
ModalController
|
|
43
41
|
|
|
44
|
-
|
|
42
|
+
]);
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { Package } from "qcobjects";
|
|
2
|
-
import { Fade, Move } from "./org.qcobjects.effects";
|
|
3
|
-
|
|
4
1
|
/**
|
|
5
|
-
* QCObjects SDK 2.
|
|
2
|
+
* QCObjects SDK 2.5
|
|
6
3
|
* ________________
|
|
7
4
|
*
|
|
8
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
@@ -25,27 +22,34 @@ import { Fade, Move } from "./org.qcobjects.effects";
|
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
"use strict";
|
|
26
|
+
import { Package } from "qcobjects";
|
|
27
|
+
import { Fade, Move } from "./org.qcobjects.effects";
|
|
28
|
+
|
|
29
|
+
export class ModalFade extends Fade {
|
|
30
|
+
duration = 500;
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
export class ModalMoveUp extends Move {
|
|
31
36
|
|
|
32
|
-
|
|
37
|
+
duration = 800;
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
}
|
|
35
40
|
|
|
36
|
-
},
|
|
37
41
|
|
|
38
|
-
|
|
42
|
+
export class ModalMoveDown extends Move {
|
|
39
43
|
|
|
40
|
-
|
|
44
|
+
duration = 300;
|
|
41
45
|
|
|
42
|
-
|
|
46
|
+
}
|
|
43
47
|
|
|
44
|
-
class ModalMoveUp extends Move {
|
|
45
|
-
duration = 800;
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
Package("org.qcobjects.modal.effects", [
|
|
50
|
+
ModalFade,
|
|
51
|
+
ModalMoveDown,
|
|
52
|
+
ModalMoveUp
|
|
53
|
+
]);
|
|
48
54
|
|
|
49
|
-
]);
|
|
50
55
|
|
|
51
|
-
})();
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { Package, VO } from "qcobjects";
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
* QCObjects SDK 2.
|
|
2
|
+
* QCObjects SDK 2.5
|
|
5
3
|
* ________________
|
|
6
4
|
*
|
|
7
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
@@ -24,14 +22,13 @@ import { Package, VO } from "qcobjects";
|
|
|
24
22
|
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
25
23
|
* license document, but changing it is not allowed.
|
|
26
24
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class Contact extends VO {
|
|
25
|
+
"use strict";
|
|
26
|
+
import { Package, VO } from "qcobjects";
|
|
27
|
+
export class Contact extends VO {
|
|
32
28
|
|
|
33
|
-
|
|
29
|
+
}
|
|
34
30
|
|
|
35
|
-
|
|
31
|
+
Package("org.qcobjects.models", [
|
|
32
|
+
Contact
|
|
36
33
|
|
|
37
|
-
|
|
34
|
+
]);
|