qcobjects-sdk 2.3.24
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/.eslintrc.json +23 -0
- package/.github/FUNDING.yml +12 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/custom.md +10 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/ISSUE_TEMPLATE/issue-template.md +33 -0
- package/.github/workflows/npmpublish.yml +36 -0
- package/CHANGELOG.md +47 -0
- package/CNAME +1 -0
- package/QCObjects-SDK.js +95 -0
- package/README.md +864 -0
- package/README.rst +398 -0
- package/VERSION +1 -0
- package/_config.yml +1 -0
- package/css/base-modal.css +43 -0
- package/css/basic-layout-embedded-nav.css +14 -0
- package/css/basic-layout.css +76 -0
- package/css/components/horizontal-list.css +64 -0
- package/css/components/list.css +57 -0
- package/css/components/splashscreen.css +111 -0
- package/css/modal.css +46 -0
- package/demo-tests/test-component-grid.html +50 -0
- package/demo-tests/test-component-list.html +40 -0
- package/demo-tests/test-component-notifications.html +30 -0
- package/demo-tests/test-component-slider.html +52 -0
- package/favicon.ico +0 -0
- package/index.rst +398 -0
- package/js/org.qcobjects.cloud.auth.session.data.js +72 -0
- package/js/org.qcobjects.cloud.auth.session.usertoken.js +95 -0
- package/js/org.qcobjects.components.grid.js +59 -0
- package/js/org.qcobjects.components.js +226 -0
- package/js/org.qcobjects.components.list.js +48 -0
- package/js/org.qcobjects.components.notifications.js +168 -0
- package/js/org.qcobjects.components.slider.js +194 -0
- package/js/org.qcobjects.components.splashscreen.js +565 -0
- package/js/org.qcobjects.controllers.form.js +196 -0
- package/js/org.qcobjects.controllers.grid.js +268 -0
- package/js/org.qcobjects.controllers.js +10 -0
- package/js/org.qcobjects.controllers.list.js +229 -0
- package/js/org.qcobjects.controllers.slider.js +132 -0
- package/js/org.qcobjects.controllers.swagger.js +77 -0
- package/js/org.qcobjects.effects.js +262 -0
- package/js/org.qcobjects.i18n_messages.js +55 -0
- package/js/org.qcobjects.modal.controllers.js +42 -0
- package/js/org.qcobjects.modal.effects.js +48 -0
- package/js/org.qcobjects.models.js +40 -0
- package/js/org.qcobjects.tools.canvas.js +52 -0
- package/js/org.qcobjects.tools.js +59 -0
- package/js/org.qcobjects.tools.layouts.js +71 -0
- package/js/org.qcobjects.views.js +37 -0
- package/package.json +48 -0
- package/spec/support/jasmine.json +16 -0
- package/spec/testsSpec.js +9 -0
- package/templates/components/modalyoulose.tpl.html +3 -0
- package/templates/components/modalyouwin.tpl.html +4 -0
- package/templates/components/splashscreen.tpl.html +128 -0
- package/templates/components/swagger-ui.tpl.html +22 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 2.3
|
|
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
|
+
(function() {
|
|
26
|
+
"use strict";
|
|
27
|
+
Package("org.qcobjects.i18n_messages", [
|
|
28
|
+
Class("i18n_messages",Object,{
|
|
29
|
+
_load_i18n_packages_: function (){
|
|
30
|
+
return CONFIG.get("i18n_languages",[]).map((i18n_packagename)=>{
|
|
31
|
+
Import(`org.quickcorp.i18n_messages.${i18n_packagename}`);
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
_new_: function() {
|
|
35
|
+
var i18n = this;
|
|
36
|
+
if (CONFIG.get("use_i18n")){
|
|
37
|
+
CONFIG.set("lang", "en");
|
|
38
|
+
if (!global.get("i18n")){
|
|
39
|
+
global.set("i18n", {
|
|
40
|
+
messages: i18n.messages
|
|
41
|
+
});
|
|
42
|
+
} else {
|
|
43
|
+
global.set("i18n", {
|
|
44
|
+
messages: global.get("i18n").messages.concat(i18n.messages)
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}),
|
|
50
|
+
{
|
|
51
|
+
_i18n_messages:i18n_messages._load_i18n_packages_()
|
|
52
|
+
}
|
|
53
|
+
]);
|
|
54
|
+
|
|
55
|
+
}).call(null);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 2.3
|
|
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
|
+
(function() {
|
|
26
|
+
"use strict";
|
|
27
|
+
Package("org.qcobjects.modal.controllers",[
|
|
28
|
+
Class("ModalController",Controller,{
|
|
29
|
+
dependencies:[],
|
|
30
|
+
component:null,
|
|
31
|
+
_new_:function (o){
|
|
32
|
+
this.__new__(o);
|
|
33
|
+
},
|
|
34
|
+
done: function (){
|
|
35
|
+
var component = this.component;
|
|
36
|
+
component.body.innerHTML = component.body.innerHTML.replace("/{{content}}/g",component.submodal.template);
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
]);
|
|
41
|
+
|
|
42
|
+
}).call(null);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 2.3
|
|
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
|
+
(function() {
|
|
26
|
+
"use strict";
|
|
27
|
+
Package("org.qcobjects.modal.effects",[
|
|
28
|
+
Class("ModalFade",Effect,{
|
|
29
|
+
duration:500,
|
|
30
|
+
apply: function (){
|
|
31
|
+
_super_("Fade","apply").apply(this,arguments);
|
|
32
|
+
}
|
|
33
|
+
}),
|
|
34
|
+
Class("ModalMoveDown",Effect,{
|
|
35
|
+
duration:300,
|
|
36
|
+
apply: function (){
|
|
37
|
+
_super_("Move","apply").apply(this,arguments);
|
|
38
|
+
}
|
|
39
|
+
}),
|
|
40
|
+
Class("ModalMoveUp",Effect,{
|
|
41
|
+
duration:800,
|
|
42
|
+
apply: function (){
|
|
43
|
+
_super_("Move","apply").apply(this,arguments);
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
]);
|
|
47
|
+
|
|
48
|
+
}).call(null);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 2.3
|
|
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
|
+
(function() {
|
|
26
|
+
"use strict";
|
|
27
|
+
Package("org.qcobjects.models",[
|
|
28
|
+
Class("Contact",VO,{
|
|
29
|
+
first_name:"",
|
|
30
|
+
last_name:"",
|
|
31
|
+
address:"",
|
|
32
|
+
postalCode:"",
|
|
33
|
+
city:"",
|
|
34
|
+
country:"",
|
|
35
|
+
email:"",
|
|
36
|
+
phone:""
|
|
37
|
+
})
|
|
38
|
+
]);
|
|
39
|
+
|
|
40
|
+
}).call(null);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 2.3
|
|
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
|
+
(function() {
|
|
27
|
+
Package("org.qcobjects.tools.canvas",[
|
|
28
|
+
Class("CanvasTool",{
|
|
29
|
+
drawImageFilled: function (img,canvas,zoom=1,px=0,py=0){
|
|
30
|
+
// get the scale
|
|
31
|
+
var scale = Math.max(canvas.width / img.width, canvas.height / img.height);
|
|
32
|
+
scale = scale*zoom;
|
|
33
|
+
// get the top left position of the image
|
|
34
|
+
var x = (canvas.width / 2) - (img.width / 2) * scale;
|
|
35
|
+
var y = (canvas.height / 2) - (img.height / 2) * scale;
|
|
36
|
+
var ctx = canvas.getContext("2d");
|
|
37
|
+
ctx.drawImage(img, (px+x), (py+y), img.width * scale, img.height * scale);
|
|
38
|
+
},
|
|
39
|
+
getImageResized: function (img,width,height,resizedImage,zoom=1,px=0,py=0){
|
|
40
|
+
var canvas = document.createElement("canvas");
|
|
41
|
+
canvas.width = width;
|
|
42
|
+
canvas.height = height;
|
|
43
|
+
canvas.style.width = width;
|
|
44
|
+
canvas.style.height = height;
|
|
45
|
+
this.drawImageFilled(img,canvas,zoom,px,py);
|
|
46
|
+
resizedImage.src = canvas.toDataURL("image/png");
|
|
47
|
+
return canvas;
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
]);
|
|
51
|
+
|
|
52
|
+
}).call(null);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 2.3
|
|
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
|
+
(function() {
|
|
27
|
+
Package("org.qcobjects.tools",[
|
|
28
|
+
Class("Process",Timer,{
|
|
29
|
+
steps:[],
|
|
30
|
+
currentStep:0,
|
|
31
|
+
stop: function (){
|
|
32
|
+
this.alive=false;
|
|
33
|
+
},
|
|
34
|
+
start: function (){
|
|
35
|
+
var process = this;
|
|
36
|
+
process.alive=true;
|
|
37
|
+
this.thread({
|
|
38
|
+
duration: this.duration,
|
|
39
|
+
timing(timeFraction) {
|
|
40
|
+
process.currentStep+=1;
|
|
41
|
+
process.map(function (p){
|
|
42
|
+
if (typeof p == "function"){
|
|
43
|
+
Promise.resolve().then(
|
|
44
|
+
function (){
|
|
45
|
+
p.call(process);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
return timeFraction;
|
|
50
|
+
},
|
|
51
|
+
draw(progress) {
|
|
52
|
+
logger.debug("process execution progress: "+progress.toString());
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
})
|
|
57
|
+
]);
|
|
58
|
+
|
|
59
|
+
}).call(null);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 2.3
|
|
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
|
+
(function() {
|
|
27
|
+
Package("org.qcobjects.tools.layouts",[
|
|
28
|
+
Class("BasicLayout",Object,{
|
|
29
|
+
dependencies:[],
|
|
30
|
+
component:null,
|
|
31
|
+
load:function (){
|
|
32
|
+
this.dependencies.push(New(SourceCSS,{
|
|
33
|
+
external:(CONFIG.get("useLocalSDK"))?(false):(true),
|
|
34
|
+
url:(CONFIG.get("useLocalSDK"))?("css/basic-layout.css"):(CONFIG.get("remoteSDKPath")+"css/basic-layout.css")
|
|
35
|
+
}));
|
|
36
|
+
},
|
|
37
|
+
coloredBorder:function (){
|
|
38
|
+
/*
|
|
39
|
+
* A helper function to visualize the layout borders
|
|
40
|
+
* Usage: BasicLayout.coloredBorder()
|
|
41
|
+
*/
|
|
42
|
+
setTimeout(function (){
|
|
43
|
+
Tag("nav").map(element=>element.style.border="20px solid #3333");
|
|
44
|
+
Tag("nav").map(element=>element.style.backgroundColor="#129999");
|
|
45
|
+
Tag("component>footer").map(element=>element.style.background="#876");
|
|
46
|
+
Tag("component>div").map(element=>element.style.border="3px dashed #fff");
|
|
47
|
+
Tag("component>section").map(element=>element.style.border="3px solid #000");
|
|
48
|
+
Tag("component>section").map(element=>element.style.backgroundColor="#fffaaa");
|
|
49
|
+
|
|
50
|
+
Tag("component>article").map(element=>element.style.border="3px dotted #000");
|
|
51
|
+
Tag("component>header").map(element=>element.style.background="#789");
|
|
52
|
+
Tag("component>footer").map(element=>element.style.background="#876");
|
|
53
|
+
Tag("component>article:nth-child(1)").map(element=>element.style.border="1px solid #444");
|
|
54
|
+
Tag("component>article:nth-child(1)").map(element=>element.style.backgroundColor="#555aaa");
|
|
55
|
+
Tag("component>article:nth-child(2)").map(element=>element.style.backgroundColor="#aaa333");
|
|
56
|
+
Tag("component>article:nth-child(3)").map(element=>element.style.backgroundColor="#54da82");
|
|
57
|
+
Tag("*").map(element=>element.style.color="#fff");
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
Tag("component>article").map(element=>Fade.apply(element,0,1));
|
|
61
|
+
Tag("component>footer").map(element=>Fade.apply(element,0,1));
|
|
62
|
+
Tag("component>header").map(element=>Fade.apply(element,0,1));
|
|
63
|
+
Tag("nav").map(element=>{element.style.display="block";element.width=element.offsetParent.scrollWidth;MoveXInFromLeft.apply(element);});
|
|
64
|
+
Tag("component>article").map(element=>{element.style.display="block";element.height=element.offsetParent.scrollHeight;MoveYInFromBottom.apply(element);});
|
|
65
|
+
Tag("component>article:nth-child(2)").map(element=>{element.style.display="block";element.width=element.offsetParent.scrollWidth;MoveXInFromRight.apply(element);});
|
|
66
|
+
},300);
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
]);
|
|
70
|
+
|
|
71
|
+
}).call(null);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 2.3
|
|
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
|
+
(function() {
|
|
26
|
+
"use strict";
|
|
27
|
+
Package("org.qcobjects.views",[
|
|
28
|
+
Class("GridView",View,{
|
|
29
|
+
dependencies:[],
|
|
30
|
+
component:null,
|
|
31
|
+
_new_:function (o){
|
|
32
|
+
this.__new__(o);
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
]);
|
|
36
|
+
|
|
37
|
+
}).call(null);
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "qcobjects-sdk",
|
|
3
|
+
"version": "2.3.24",
|
|
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
|
+
"main": "QCObjects-SDK.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "npm cache verify && (npx eslint *.js js/*.js --fix) && jasmine",
|
|
8
|
+
"sync": "git add . && git commit -am ",
|
|
9
|
+
"preversion": "npm cache verify && npm test",
|
|
10
|
+
"postversion": "git push && git push --tags"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/QuickCorp/QCObjects-SDK.git"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"node",
|
|
18
|
+
"quickcorp",
|
|
19
|
+
"javascript",
|
|
20
|
+
"pure",
|
|
21
|
+
"mvc",
|
|
22
|
+
"objects",
|
|
23
|
+
"sdk",
|
|
24
|
+
"middleware",
|
|
25
|
+
"framework",
|
|
26
|
+
"quick",
|
|
27
|
+
"components",
|
|
28
|
+
"web",
|
|
29
|
+
"webcomponents"
|
|
30
|
+
],
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"eslint": "^6.8.0",
|
|
33
|
+
"eslint-config-qcobjects": "0.0.11",
|
|
34
|
+
"qcobjects": "^2.3.44"
|
|
35
|
+
},
|
|
36
|
+
"author": "Jean Machuca <correojean@gmail.com>",
|
|
37
|
+
"license": "LGPL-3.0",
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/QuickCorp/QCObjects-SDK/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://sdk.qcobjects.dev",
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"jasmine": "^3.6.3"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"qcobjects": ">= 2.3"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -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>
|