qcobjects-sdk 2.4.62 → 2.4.66
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-main.yml +5 -3
- package/.gitmodules +4 -0
- package/README.md +1 -0
- package/VERSION +1 -1
- package/build/QCObjects-SDK.js +97 -0
- package/build/css/base-modal.css +43 -0
- package/build/css/basic-layout-embedded-nav.css +14 -0
- package/build/css/basic-layout.css +76 -0
- package/build/css/components/horizontal-list.css +64 -0
- package/build/css/components/list.css +57 -0
- package/build/css/components/splashscreen.css +111 -0
- package/build/css/modal.css +46 -0
- package/build/index.cjs +4 -0
- package/build/index.js +27 -0
- package/build/index.mjs +2 -0
- package/build/js/org.qcobjects.cloud.auth.session.data.js +125 -0
- package/build/js/org.qcobjects.cloud.auth.session.usertoken.js +109 -0
- package/build/js/org.qcobjects.components.grid.js +81 -0
- package/build/js/org.qcobjects.components.js +292 -0
- package/build/js/org.qcobjects.components.list.js +71 -0
- package/build/js/org.qcobjects.components.notifications.js +179 -0
- package/build/js/org.qcobjects.components.slider.js +193 -0
- package/build/js/org.qcobjects.components.splashscreen.js +642 -0
- package/build/js/org.qcobjects.controllers.form.js +178 -0
- package/build/js/org.qcobjects.controllers.grid.js +258 -0
- package/build/js/org.qcobjects.controllers.js +34 -0
- package/build/js/org.qcobjects.controllers.list.js +228 -0
- package/build/js/org.qcobjects.controllers.slider.js +131 -0
- package/build/js/org.qcobjects.controllers.swagger.js +50 -0
- package/build/js/org.qcobjects.effects.js +417 -0
- package/build/js/org.qcobjects.i18n_messages.js +72 -0
- package/build/js/org.qcobjects.modal.controllers.js +38 -0
- package/build/js/org.qcobjects.modal.effects.js +51 -0
- package/build/js/org.qcobjects.models.js +34 -0
- package/build/js/org.qcobjects.tools.canvas.js +53 -0
- package/build/js/org.qcobjects.tools.js +64 -0
- package/build/js/org.qcobjects.tools.layouts.js +73 -0
- package/build/js/org.qcobjects.views.js +34 -0
- package/build/templates/components/modalyoulose.tpl.html +3 -0
- package/build/templates/components/modalyouwin.tpl.html +4 -0
- package/build/templates/components/splashscreen.tpl.html +128 -0
- package/build/templates/components/swagger-ui.tpl.html +22 -0
- package/docs/CNAME +1 -0
- package/package.json +7 -4
- package/public/QCObjects-SDK.js +696 -0
- package/public/QCObjects-SDK.js.map +7 -0
- package/public/css/base-modal.css +2 -0
- package/public/css/base-modal.css.map +7 -0
- package/public/css/basic-layout-embedded-nav.css +2 -0
- package/public/css/basic-layout-embedded-nav.css.map +7 -0
- package/public/css/basic-layout.css +2 -0
- package/public/css/basic-layout.css.map +7 -0
- package/public/css/components/horizontal-list.css +2 -0
- package/public/css/components/horizontal-list.css.map +7 -0
- package/public/css/components/list.css +2 -0
- package/public/css/components/list.css.map +7 -0
- package/public/css/components/splashscreen.css +2 -0
- package/public/css/components/splashscreen.css.map +7 -0
- package/public/css/modal.css +2 -0
- package/public/css/modal.css.map +7 -0
- package/public/index.cjs +4 -0
- package/public/index.js +27 -0
- package/public/index.mjs +2 -0
- package/public/templates/components/modalyoulose.tpl.html +3 -0
- package/public/templates/components/modalyouwin.tpl.html +4 -0
- package/public/templates/components/splashscreen.tpl.html +128 -0
- package/public/templates/components/swagger-ui.tpl.html +22 -0
- package/src/js/org.qcobjects.cloud.auth.session.usertoken.ts +11 -11
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 2.4
|
|
3
|
+
* ________________
|
|
4
|
+
*
|
|
5
|
+
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
|
+
*
|
|
7
|
+
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
+
* QuickCorp/QCObjects is licensed under the
|
|
9
|
+
* GNU Lesser General Public License v3.0
|
|
10
|
+
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
+
*
|
|
12
|
+
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
+
* complete source code of licensed works and modifications under the same
|
|
14
|
+
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
+
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
+
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
+
* work may be distributed under different terms and without source code for
|
|
18
|
+
* the larger work.
|
|
19
|
+
*
|
|
20
|
+
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
|
+
*
|
|
22
|
+
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
23
|
+
* license document, but changing it is not allowed.
|
|
24
|
+
*/
|
|
25
|
+
"use strict";
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
const qcobjects_1 = require("qcobjects");
|
|
28
|
+
(function () {
|
|
29
|
+
(0, qcobjects_1.Package)("org.qcobjects.tools", [
|
|
30
|
+
class Process extends qcobjects_1.Timer {
|
|
31
|
+
constructor({ steps = [], currentStep = 0, alive = false }) {
|
|
32
|
+
super({ steps, currentStep, alive });
|
|
33
|
+
this.steps = [];
|
|
34
|
+
this.currentStep = 0;
|
|
35
|
+
this.alive = alive;
|
|
36
|
+
}
|
|
37
|
+
stop() {
|
|
38
|
+
this.alive = false;
|
|
39
|
+
}
|
|
40
|
+
start() {
|
|
41
|
+
this.alive = true;
|
|
42
|
+
this.thread({
|
|
43
|
+
duration: this.duration,
|
|
44
|
+
timing: (timeFraction) => {
|
|
45
|
+
this.currentStep += 1;
|
|
46
|
+
this.steps.map((p) => {
|
|
47
|
+
let _ret_;
|
|
48
|
+
if (typeof p === "function") {
|
|
49
|
+
_ret_ = Promise.resolve().then(function () {
|
|
50
|
+
p.call(process);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return _ret_;
|
|
54
|
+
});
|
|
55
|
+
return timeFraction;
|
|
56
|
+
},
|
|
57
|
+
intervalInterceptor(progress) {
|
|
58
|
+
qcobjects_1.logger.debug("process execution progress: " + progress.toString());
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]);
|
|
64
|
+
})();
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* eslint-disable array-callback-return */
|
|
2
|
+
/**
|
|
3
|
+
* QCObjects SDK 2.4
|
|
4
|
+
* ________________
|
|
5
|
+
*
|
|
6
|
+
* Author: Jean Machuca <correojean@gmail.com>
|
|
7
|
+
*
|
|
8
|
+
* Cross Browser Javascript Framework for MVC Patterns
|
|
9
|
+
* QuickCorp/QCObjects is licensed under the
|
|
10
|
+
* GNU Lesser General Public License v3.0
|
|
11
|
+
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
12
|
+
*
|
|
13
|
+
* Permissions of this copyleft license are conditioned on making available
|
|
14
|
+
* complete source code of licensed works and modifications under the same
|
|
15
|
+
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
16
|
+
* Contributors provide an express grant of patent rights. However, a larger
|
|
17
|
+
* work using the licensed work through interfaces provided by the licensed
|
|
18
|
+
* work may be distributed under different terms and without source code for
|
|
19
|
+
* the larger work.
|
|
20
|
+
*
|
|
21
|
+
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
22
|
+
*
|
|
23
|
+
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
24
|
+
* license document, but changing it is not allowed.
|
|
25
|
+
*/
|
|
26
|
+
"use strict";
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
const qcobjects_1 = require("qcobjects");
|
|
29
|
+
const org_qcobjects_effects_1 = require("./org.qcobjects.effects");
|
|
30
|
+
(function () {
|
|
31
|
+
(0, qcobjects_1.Package)("org.qcobjects.tools.layouts", [
|
|
32
|
+
class BasicLayout extends qcobjects_1.InheritClass {
|
|
33
|
+
constructor({ component = null, dependencies = [] }) {
|
|
34
|
+
super({ component, dependencies });
|
|
35
|
+
this.dependencies = [];
|
|
36
|
+
}
|
|
37
|
+
load() {
|
|
38
|
+
this.dependencies.push((0, qcobjects_1.New)(qcobjects_1.SourceCSS, {
|
|
39
|
+
external: !(qcobjects_1.CONFIG.get("useLocalSDK", false)),
|
|
40
|
+
url: (qcobjects_1.CONFIG.get("useLocalSDK", false)) ? ("css/basic-layout.css") : (qcobjects_1.CONFIG.get("remoteSDKPath", false) + "css/basic-layout.css")
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
coloredBorder() {
|
|
44
|
+
/*
|
|
45
|
+
* A helper function to visualize the layout borders
|
|
46
|
+
* Usage: BasicLayout.coloredBorder()
|
|
47
|
+
*/
|
|
48
|
+
setTimeout(function () {
|
|
49
|
+
(0, qcobjects_1.Tag)("nav").map((element) => { element.style.border = "20px solid #3333"; });
|
|
50
|
+
(0, qcobjects_1.Tag)("nav").map((element) => { element.style.backgroundColor = "#129999"; });
|
|
51
|
+
(0, qcobjects_1.Tag)("component>footer").map((element) => { element.style.background = "#876"; });
|
|
52
|
+
(0, qcobjects_1.Tag)("component>div").map((element) => { element.style.border = "3px dashed #fff"; });
|
|
53
|
+
(0, qcobjects_1.Tag)("component>section").map((element) => { element.style.border = "3px solid #000"; });
|
|
54
|
+
(0, qcobjects_1.Tag)("component>section").map((element) => { element.style.backgroundColor = "#fffaaa"; });
|
|
55
|
+
(0, qcobjects_1.Tag)("component>article").map((element) => { element.style.border = "3px dotted #000"; });
|
|
56
|
+
(0, qcobjects_1.Tag)("component>header").map((element) => { element.style.background = "#789"; });
|
|
57
|
+
(0, qcobjects_1.Tag)("component>footer").map((element) => { element.style.background = "#876"; });
|
|
58
|
+
(0, qcobjects_1.Tag)("component>article:nth-child(1)").map((element) => { element.style.border = "1px solid #444"; });
|
|
59
|
+
(0, qcobjects_1.Tag)("component>article:nth-child(1)").map((element) => { element.style.backgroundColor = "#555aaa"; });
|
|
60
|
+
(0, qcobjects_1.Tag)("component>article:nth-child(2)").map((element) => { element.style.backgroundColor = "#aaa333"; });
|
|
61
|
+
(0, qcobjects_1.Tag)("component>article:nth-child(3)").map((element) => { element.style.backgroundColor = "#54da82"; });
|
|
62
|
+
(0, qcobjects_1.Tag)("*").map((element) => { element.style.color = "#fff"; });
|
|
63
|
+
(0, qcobjects_1.Tag)("component>article").map((element) => org_qcobjects_effects_1.Fade.apply(element, 0, 1));
|
|
64
|
+
(0, qcobjects_1.Tag)("component>footer").map((element) => org_qcobjects_effects_1.Fade.apply(element, 0, 1));
|
|
65
|
+
(0, qcobjects_1.Tag)("component>header").map((element) => org_qcobjects_effects_1.Fade.apply(element, 0, 1));
|
|
66
|
+
(0, qcobjects_1.Tag)("nav").map((element) => { element.style.display = "block"; element.style.width = element.offsetParent?.scrollWidth.toString() || element.clientWidth.toString(); org_qcobjects_effects_1.MoveXInFromLeft.apply(element); });
|
|
67
|
+
(0, qcobjects_1.Tag)("component>article").map((element) => { element.style.display = "block"; element.style.height = element.offsetParent?.scrollHeight.toString() || element.clientHeight.toString(); org_qcobjects_effects_1.MoveYInFromBottom.apply(element); });
|
|
68
|
+
(0, qcobjects_1.Tag)("component>article:nth-child(2)").map((element) => { element.style.display = "block"; element.style.width = element.offsetParent?.scrollWidth.toString() || element.clientWidth.toString(); org_qcobjects_effects_1.MoveXInFromRight.apply(element); });
|
|
69
|
+
}, 300);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]);
|
|
73
|
+
})();
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const qcobjects_1 = require("qcobjects");
|
|
4
|
+
/**
|
|
5
|
+
* QCObjects SDK 2.4
|
|
6
|
+
* ________________
|
|
7
|
+
*
|
|
8
|
+
* Author: Jean Machuca <correojean@gmail.com>
|
|
9
|
+
*
|
|
10
|
+
* Cross Browser Javascript Framework for MVC Patterns
|
|
11
|
+
* QuickCorp/QCObjects is licensed under the
|
|
12
|
+
* GNU Lesser General Public License v3.0
|
|
13
|
+
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
14
|
+
*
|
|
15
|
+
* Permissions of this copyleft license are conditioned on making available
|
|
16
|
+
* complete source code of licensed works and modifications under the same
|
|
17
|
+
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
18
|
+
* Contributors provide an express grant of patent rights. However, a larger
|
|
19
|
+
* work using the licensed work through interfaces provided by the licensed
|
|
20
|
+
* work may be distributed under different terms and without source code for
|
|
21
|
+
* the larger work.
|
|
22
|
+
*
|
|
23
|
+
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
24
|
+
*
|
|
25
|
+
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
26
|
+
* license document, but changing it is not allowed.
|
|
27
|
+
*/
|
|
28
|
+
(function () {
|
|
29
|
+
"use strict";
|
|
30
|
+
(0, qcobjects_1.Package)("org.qcobjects.views", [
|
|
31
|
+
class GridView extends qcobjects_1.View {
|
|
32
|
+
}
|
|
33
|
+
]);
|
|
34
|
+
})();
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
<style>
|
|
2
|
+
:host * {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:host {
|
|
7
|
+
zoom: 1.0;
|
|
8
|
+
width: device-width;
|
|
9
|
+
margin: 0;
|
|
10
|
+
top: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
right: 0;
|
|
13
|
+
bottom: 0;
|
|
14
|
+
position: absolute;
|
|
15
|
+
padding: 0;
|
|
16
|
+
min-width: 100vw;
|
|
17
|
+
min-height: 100vh;
|
|
18
|
+
width: 100vw;
|
|
19
|
+
height: 100vh;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
background-color: black;
|
|
22
|
+
}
|
|
23
|
+
#slot-logo::slotted(img) {
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
display: block;
|
|
26
|
+
width: 100vw;
|
|
27
|
+
left: 0;
|
|
28
|
+
margin: 0;
|
|
29
|
+
padding: 0;
|
|
30
|
+
top: 20vh;
|
|
31
|
+
bottom: 20vh;
|
|
32
|
+
position: absolute;
|
|
33
|
+
z-index: 9999999999;
|
|
34
|
+
transform-origin: center;
|
|
35
|
+
transform-style: preserve-3d;
|
|
36
|
+
filter: blur(0em);
|
|
37
|
+
transition: filter 0.5s;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host * {
|
|
41
|
+
-webkit-user-select: none;
|
|
42
|
+
-moz-user-select: none;
|
|
43
|
+
-ms-user-select: none;
|
|
44
|
+
user-select: none;
|
|
45
|
+
-webkit-touch-callout: none;
|
|
46
|
+
/* prevent callout to copy image, etc when tap to hold */
|
|
47
|
+
-webkit-text-size-adjust: none;
|
|
48
|
+
/* prevent webkit from resizing text to fit */
|
|
49
|
+
-webkit-user-select: none;
|
|
50
|
+
/* prevent copy paste, to allow, change 'none' to 'text' */
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* FOCUS */
|
|
54
|
+
:host summary:focus,
|
|
55
|
+
:host a:focus,
|
|
56
|
+
:host button:focus {
|
|
57
|
+
outline: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.splashscreen,
|
|
61
|
+
.fullscreen-bg {
|
|
62
|
+
padding: 0;
|
|
63
|
+
margin: 0;
|
|
64
|
+
top: 0;
|
|
65
|
+
left: 0;
|
|
66
|
+
right: 0;
|
|
67
|
+
bottom: 0;
|
|
68
|
+
padding: 0;
|
|
69
|
+
background-attachment: fixed;
|
|
70
|
+
background-position: center;
|
|
71
|
+
background-clip: content-box;
|
|
72
|
+
background-size: cover;
|
|
73
|
+
position: absolute;
|
|
74
|
+
min-width: 100vw;
|
|
75
|
+
min-height: 100vh;
|
|
76
|
+
width: 100vw;
|
|
77
|
+
height: 100vh;
|
|
78
|
+
z-index: 0;
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.splashscreen .splashcontent {
|
|
83
|
+
top: 0;
|
|
84
|
+
left: 0;
|
|
85
|
+
right: 0;
|
|
86
|
+
bottom: 0;
|
|
87
|
+
margin: 0 auto;
|
|
88
|
+
width: 100vw;
|
|
89
|
+
height: 100vh;
|
|
90
|
+
padding: 0;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
z-index: 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.splashscreen .splashcontent p {
|
|
96
|
+
color: white;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
video.fullscreen-bg__video {
|
|
100
|
+
top: 0;
|
|
101
|
+
left: 0;
|
|
102
|
+
bottom: 0;
|
|
103
|
+
right: 0;
|
|
104
|
+
margin: 0;
|
|
105
|
+
padding: 0;
|
|
106
|
+
position: absolute;
|
|
107
|
+
min-width: 100vw;
|
|
108
|
+
min-height: 100vh;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
z-index: 0;
|
|
111
|
+
object-fit: cover;
|
|
112
|
+
}
|
|
113
|
+
.splashscreen,
|
|
114
|
+
.fullscreen-bg {
|
|
115
|
+
background-image: url('{{background}}');
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
</style>
|
|
119
|
+
<div class="splashscreen">
|
|
120
|
+
<div class="fullscreen-bg splashcontent">
|
|
121
|
+
<video loop muted autoplay playsinline name="media" poster="{{background}}" class="fullscreen-bg__video" data-setup="{}" height="100%">
|
|
122
|
+
<source src="{{video_mp4}}" type="video/mp4">
|
|
123
|
+
<source src="{{video_ogg}}" type="video/ogg">
|
|
124
|
+
<source src="{{video_webm}}" type="video/webm">
|
|
125
|
+
</video>
|
|
126
|
+
<slot id="slot-logo" name="logo"></slot>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<style>
|
|
2
|
+
html
|
|
3
|
+
{
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
overflow: -moz-scrollbars-vertical;
|
|
6
|
+
overflow-y: scroll;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
*,
|
|
10
|
+
*:before,
|
|
11
|
+
*:after
|
|
12
|
+
{
|
|
13
|
+
box-sizing: inherit;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body
|
|
17
|
+
{
|
|
18
|
+
margin:0;
|
|
19
|
+
background: #fafafa;
|
|
20
|
+
}
|
|
21
|
+
</style>
|
|
22
|
+
<div id="swagger-ui"></div>
|
package/docs/CNAME
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sdk.qcobjects.dev
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects-sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.66",
|
|
4
4
|
"description": "QCObjects SDK is a set of Controllers, Views and Components that are elementary and useful to assist developers to build applications under MVC patterns using QCObjects, Cross Browser Javascript Framework for MVC Patterns",
|
|
5
5
|
"main": "public/index.cjs",
|
|
6
6
|
"module": "public/index.mjs",
|
|
@@ -99,7 +99,10 @@
|
|
|
99
99
|
"eslint-plugin-promise": "^6.1.1",
|
|
100
100
|
"hint": "^2.0.0",
|
|
101
101
|
"jasmine": "^3.7.0",
|
|
102
|
+
"qcobjects": "^2.4.99",
|
|
103
|
+
"qcobjects-cli": "^2.4.65",
|
|
102
104
|
"qcobjects-command-publish-static": "^1.0.2",
|
|
105
|
+
"qcobjects-sdk": "^2.4.64",
|
|
103
106
|
"qcobjects-tsconfig": "^2.4.10",
|
|
104
107
|
"typescript": "^5.0.4"
|
|
105
108
|
},
|
|
@@ -108,8 +111,8 @@
|
|
|
108
111
|
"url": "https://github.com/QuickCorp/QCObjects-SDK/issues"
|
|
109
112
|
},
|
|
110
113
|
"homepage": "https://sdk.qcobjects.dev",
|
|
111
|
-
"dependencies": {},
|
|
112
114
|
"peerDependencies": {
|
|
113
|
-
"qcobjects": ">=2.4.
|
|
114
|
-
}
|
|
115
|
+
"qcobjects": ">=2.4.99"
|
|
116
|
+
},
|
|
117
|
+
"dependencies": {}
|
|
115
118
|
}
|