qcobjects-sdk 2.4.64 → 2.5.105-beta
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-beta.yml +4 -2
- package/.github/workflows/npmpublish-lts.yml +4 -2
- package/.github/workflows/npmpublish-main.yml +5 -3
- package/VERSION +1 -1
- package/build/QCObjects-SDK.js +83 -41
- package/build/index.js +17 -7
- package/build/js/org.qcobjects.base.components.js +75 -0
- package/build/js/org.qcobjects.cloud.auth.session.data.js +98 -101
- package/build/js/org.qcobjects.cloud.auth.session.usertoken.js +68 -80
- package/build/js/org.qcobjects.components.grid.js +35 -53
- package/build/js/org.qcobjects.components.js +145 -237
- package/build/js/org.qcobjects.components.list.js +36 -45
- package/build/js/org.qcobjects.components.notifications.js +107 -106
- package/build/js/org.qcobjects.components.slider.js +183 -169
- package/build/js/org.qcobjects.components.splashscreen.js +123 -130
- package/build/js/org.qcobjects.controllers.form.js +149 -147
- package/build/js/org.qcobjects.controllers.grid.js +226 -215
- package/build/js/org.qcobjects.controllers.js +11 -11
- package/build/js/org.qcobjects.controllers.list.js +195 -188
- package/build/js/org.qcobjects.controllers.slider.js +101 -106
- package/build/js/org.qcobjects.controllers.swagger.js +71 -46
- package/build/js/org.qcobjects.effects.base.js +86 -0
- package/build/js/org.qcobjects.effects.extended.js +318 -0
- package/build/js/org.qcobjects.effects.js +26 -394
- package/build/js/org.qcobjects.i18n_messages.js +33 -46
- package/build/js/org.qcobjects.modal.controllers.js +16 -15
- package/build/js/org.qcobjects.modal.effects.js +23 -28
- package/build/js/org.qcobjects.models.js +11 -11
- package/build/js/org.qcobjects.tools.canvas.js +28 -27
- package/build/js/org.qcobjects.tools.js +10 -3
- package/build/js/org.qcobjects.tools.layouts.js +46 -45
- package/build/js/org.qcobjects.views.js +11 -11
- package/build-esbuild.js +72 -0
- package/eslint.config.mjs +88 -0
- package/package.json +66 -59
- package/postbuild.js +10 -0
- package/public/browser/index.js +9902 -0
- package/public/browser/index.js.map +7 -0
- package/public/cjs/index.cjs +9894 -0
- package/public/cjs/index.cjs.map +7 -0
- package/public/esm/index.mjs +9894 -0
- package/public/esm/index.mjs.map +7 -0
- package/public/types/index.d.ts +698 -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/QCObjects-SDK.ts +72 -53
- package/src/js/org.qcobjects.base.components.ts +83 -0
- package/src/js/org.qcobjects.cloud.auth.session.data.ts +98 -99
- package/src/js/org.qcobjects.cloud.auth.session.usertoken.ts +72 -92
- package/src/js/org.qcobjects.components.grid.ts +31 -58
- package/src/js/org.qcobjects.components.list.ts +15 -31
- package/src/js/org.qcobjects.components.notifications.ts +12 -12
- package/src/js/org.qcobjects.components.slider.ts +182 -171
- package/src/js/org.qcobjects.components.splashscreen.ts +31 -39
- package/src/js/org.qcobjects.components.ts +151 -261
- package/src/js/org.qcobjects.controllers.form.ts +151 -148
- package/src/js/org.qcobjects.controllers.grid.ts +226 -222
- package/src/js/org.qcobjects.controllers.list.ts +207 -205
- package/src/js/org.qcobjects.controllers.slider.ts +120 -125
- package/src/js/org.qcobjects.controllers.swagger.ts +51 -51
- package/src/js/org.qcobjects.controllers.ts +7 -9
- package/src/js/org.qcobjects.effects.base.ts +97 -0
- package/src/js/org.qcobjects.effects.extended.ts +350 -0
- package/src/js/org.qcobjects.effects.ts +6 -394
- package/src/js/org.qcobjects.i18n_messages.ts +37 -51
- package/src/js/org.qcobjects.modal.controllers.ts +12 -14
- package/src/js/org.qcobjects.modal.effects.ts +22 -18
- package/src/js/org.qcobjects.models.ts +8 -11
- package/src/js/org.qcobjects.tools.canvas.ts +26 -28
- package/src/js/org.qcobjects.tools.layouts.ts +44 -47
- package/src/js/org.qcobjects.tools.ts +7 -1
- package/src/js/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/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/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/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/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.usertoken.d.ts +0 -2
- 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.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.splashscreen.d.ts +0 -28
- 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.grid.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.list.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.slider.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.swagger.d.ts +0 -1
- 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.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.views.d.ts +0 -1
- /package/spec/{testsSpec.js → testsSpec.ts} +0 -0
|
@@ -1,9 +1,5 @@
|
|
|
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
1
|
/**
|
|
6
|
-
* QCObjects SDK 2.
|
|
2
|
+
* QCObjects SDK 2.5
|
|
7
3
|
* ________________
|
|
8
4
|
*
|
|
9
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
@@ -26,392 +22,28 @@ const qcobjects_1 = require("qcobjects");
|
|
|
26
22
|
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
27
23
|
* license document, but changing it is not allowed.
|
|
28
24
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
(function () {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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;
|
|
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; } });
|
|
@@ -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.
|
|
2
|
+
* QCObjects SDK 2.5
|
|
6
3
|
* ________________
|
|
7
4
|
*
|
|
8
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
@@ -25,48 +22,38 @@ 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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
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
|
+
});
|
|
48
45
|
}
|
|
49
46
|
}
|
|
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
47
|
}
|
|
58
|
-
(
|
|
59
|
-
// eslint-disable-next-line
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
: typeof global !== "undefined"
|
|
71
|
-
? global
|
|
72
|
-
: {})) : ((typeof global === "object") ? (global) : ((typeof window === "object") ? (window) : ({}))));
|
|
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.
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
+
]);
|
|
@@ -1,9 +1,5 @@
|
|
|
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
1
|
/**
|
|
6
|
-
* QCObjects SDK 2.
|
|
2
|
+
* QCObjects SDK 2.5
|
|
7
3
|
* ________________
|
|
8
4
|
*
|
|
9
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
@@ -26,26 +22,25 @@ const org_qcobjects_effects_1 = require("./org.qcobjects.effects");
|
|
|
26
22
|
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
27
23
|
* license document, but changing it is not allowed.
|
|
28
24
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
})();
|
|
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.
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
+
]);
|