qcobjects-sdk 2.4.62 → 2.4.64
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/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/package.json +1 -1
- 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/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.64
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
3
|
+
/**
|
|
4
|
+
* QCObjects SDK 2.4
|
|
5
|
+
* ________________
|
|
6
|
+
*
|
|
7
|
+
* Author: Jean Machuca <correojean@gmail.com>
|
|
8
|
+
*
|
|
9
|
+
* Cross Browser Javascript Framework for MVC Patterns
|
|
10
|
+
* QuickCorp/QCObjects is licensed under the
|
|
11
|
+
* GNU Lesser General Public License v3.0
|
|
12
|
+
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
13
|
+
*
|
|
14
|
+
* Permissions of this copyleft license are conditioned on making available
|
|
15
|
+
* complete source code of licensed works and modifications under the same
|
|
16
|
+
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
17
|
+
* Contributors provide an express grant of patent rights. However, a larger
|
|
18
|
+
* work using the licensed work through interfaces provided by the licensed
|
|
19
|
+
* work may be distributed under different terms and without source code for
|
|
20
|
+
* the larger work.
|
|
21
|
+
*
|
|
22
|
+
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
23
|
+
*
|
|
24
|
+
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
25
|
+
* license document, but changing it is not allowed.
|
|
26
|
+
*/
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
const qcobjects_1 = require("qcobjects");
|
|
29
|
+
const _top = (typeof module === "object" && typeof module.exports === "object") ? (module.exports = (typeof globalThis !== "undefined"
|
|
30
|
+
? globalThis
|
|
31
|
+
: typeof self !== "undefined"
|
|
32
|
+
? self
|
|
33
|
+
: typeof window !== "undefined"
|
|
34
|
+
? window
|
|
35
|
+
: typeof global !== "undefined"
|
|
36
|
+
? global
|
|
37
|
+
: {})) : ((typeof global === "object") ? (global) : ((typeof window === "object") ? (window) : ({})));
|
|
38
|
+
// eslint-disable-next-line camelcase
|
|
39
|
+
(function __qcobjects_sdk__(_top) {
|
|
40
|
+
"use strict";
|
|
41
|
+
if (typeof Object.defineProperty !== "undefined" && typeof _top !== "undefined") {
|
|
42
|
+
try {
|
|
43
|
+
Object.defineProperty(_top, "__qcobjects_sdk__", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
configurable: false,
|
|
46
|
+
writable: false,
|
|
47
|
+
// eslint-disable-next-line camelcase
|
|
48
|
+
value: __qcobjects_sdk__,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
catch (e) {
|
|
52
|
+
if (typeof _top.__qcobjects_sdk__ !== "undefined") {
|
|
53
|
+
_top.__qcobjects_sdk__.__loaded__ = true;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (typeof _top.__qcobjects_sdk__.__loaded__ === "undefined") {
|
|
58
|
+
_top.__qcobjects_sdk__.__loaded__ = true;
|
|
59
|
+
if (typeof _top === "undefined") {
|
|
60
|
+
throw Error("Top context empty: It should either global, module or window");
|
|
61
|
+
}
|
|
62
|
+
const __start__ = qcobjects_1.GlobalSettings.__start__.bind(_top);
|
|
63
|
+
let _imports_ = [];
|
|
64
|
+
// non-browsers environment // esbuild compatible
|
|
65
|
+
_imports_ = [
|
|
66
|
+
new Promise((resolve) => {
|
|
67
|
+
require("./js/org.qcobjects.i18n_messages");
|
|
68
|
+
require("./js/org.qcobjects.models");
|
|
69
|
+
require("./js/org.qcobjects.components");
|
|
70
|
+
require("./js/org.qcobjects.components.grid");
|
|
71
|
+
require("./js/org.qcobjects.components.list");
|
|
72
|
+
require("./js/org.qcobjects.components.slider");
|
|
73
|
+
require("./js/org.qcobjects.components.notifications");
|
|
74
|
+
require("./js/org.qcobjects.components.splashscreen");
|
|
75
|
+
require("./js/org.qcobjects.controllers");
|
|
76
|
+
require("./js/org.qcobjects.controllers.grid");
|
|
77
|
+
require("./js/org.qcobjects.controllers.list");
|
|
78
|
+
require("./js/org.qcobjects.controllers.slider");
|
|
79
|
+
require("./js/org.qcobjects.controllers.form");
|
|
80
|
+
require("./js/org.qcobjects.controllers.swagger");
|
|
81
|
+
require("./js/org.qcobjects.effects");
|
|
82
|
+
require("./js/org.qcobjects.modal.controllers");
|
|
83
|
+
require("./js/org.qcobjects.views");
|
|
84
|
+
require("./js/org.qcobjects.tools.canvas");
|
|
85
|
+
require("./js/org.qcobjects.tools.layouts");
|
|
86
|
+
require("./js/org.qcobjects.cloud.auth.session.usertoken");
|
|
87
|
+
require("./js/org.qcobjects.cloud.auth.session.data");
|
|
88
|
+
resolve();
|
|
89
|
+
})
|
|
90
|
+
];
|
|
91
|
+
_top._sdk_ = Promise.all(_imports_).then(() => {
|
|
92
|
+
qcobjects_1.CONFIG.set("useSDK", true);
|
|
93
|
+
__start__();
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
})(_top);
|
|
97
|
+
exports.default = _top;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* The Modal (background) */
|
|
2
|
+
.modal {
|
|
3
|
+
display: none; /* Hidden by default */
|
|
4
|
+
position: fixed; /* Stay in place */
|
|
5
|
+
z-index: 1; /* Sit on top */
|
|
6
|
+
padding-top: 100px; /* Location of the box */
|
|
7
|
+
left: 0;
|
|
8
|
+
top: 0;
|
|
9
|
+
width: 100%; /* Full width */
|
|
10
|
+
height: 100%; /* Full height */
|
|
11
|
+
overflow: auto; /* Enable scroll if needed */
|
|
12
|
+
background-color: rgb(0,0,0); /* Fallback color */
|
|
13
|
+
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
|
14
|
+
border-radius: 12px !important;
|
|
15
|
+
border: none !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Modal Content */
|
|
19
|
+
.modal-content {
|
|
20
|
+
background-color: #111;
|
|
21
|
+
background-image: radial-gradient( #edeeef,#dee3de,#fcfcfc);
|
|
22
|
+
margin: auto;
|
|
23
|
+
padding: 20px;
|
|
24
|
+
border-radius: 12px !important;
|
|
25
|
+
border: 1px solid #909090;
|
|
26
|
+
width: 80%;
|
|
27
|
+
height:auto;
|
|
28
|
+
}
|
|
29
|
+
/* The Close Button */
|
|
30
|
+
.close {
|
|
31
|
+
color: #aaaaaa;
|
|
32
|
+
float: right;
|
|
33
|
+
font-size: 28px;
|
|
34
|
+
font-weight: bold;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.close:hover,
|
|
38
|
+
.close:focus {
|
|
39
|
+
color: #000;
|
|
40
|
+
text-decoration: none;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
}
|
|
43
|
+
.modal * {color:black}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* Responsive layout - makes the two columns/boxes stack on top of each other instead of next to each other, on small screens */
|
|
2
|
+
@media (max-width: 600px),
|
|
3
|
+
@media (max-width:460px),
|
|
4
|
+
@media (aspect-ratio: 9/16),
|
|
5
|
+
@media (aspect-ratio: 10/16),
|
|
6
|
+
@media (aspect-ratio: 5/8),
|
|
7
|
+
@media (aspect-ratio: 3/4),
|
|
8
|
+
@media (aspect-ratio: 2/3){
|
|
9
|
+
nav, article {
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: auto;
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 1.0
|
|
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
|
+
|
|
26
|
+
@charset "UTF-8";
|
|
27
|
+
/* CSS Document */
|
|
28
|
+
|
|
29
|
+
* {
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
body {
|
|
34
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Style the header */
|
|
38
|
+
header {
|
|
39
|
+
padding: 30px;
|
|
40
|
+
text-align: center;
|
|
41
|
+
font-size: 20px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Create two columns/boxes that floats next to each other */
|
|
45
|
+
nav {
|
|
46
|
+
float: left;
|
|
47
|
+
width: 30%;
|
|
48
|
+
height: 1080px;
|
|
49
|
+
padding: 20px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Style the list inside the menu */
|
|
53
|
+
nav ul {
|
|
54
|
+
list-style-type: none;
|
|
55
|
+
padding: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
article {
|
|
59
|
+
float: left;
|
|
60
|
+
padding: 20px;
|
|
61
|
+
width: 70%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Clear floats after the columns */
|
|
65
|
+
section:after {
|
|
66
|
+
content: "";
|
|
67
|
+
display: table;
|
|
68
|
+
clear: both;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/* Style the footer */
|
|
73
|
+
footer {
|
|
74
|
+
padding: 10px;
|
|
75
|
+
text-align: center;
|
|
76
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
ul {
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
li {
|
|
6
|
+
display: inline;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
ul {
|
|
10
|
+
padding: 15px 0 15px 0;
|
|
11
|
+
background-color: #f7f6f6 !important;
|
|
12
|
+
border-radius: 13px;
|
|
13
|
+
box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px 0px !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
ul li {
|
|
17
|
+
list-style: none;
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
padding-top: 7px;
|
|
21
|
+
padding-bottom: 7px;
|
|
22
|
+
padding-left: 10px;
|
|
23
|
+
border-bottom: 1px solid white;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
ul {
|
|
27
|
+
list-style-type: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
li:hover {
|
|
32
|
+
background: white;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
ul li ul {
|
|
37
|
+
background: white;
|
|
38
|
+
visibility: hidden;
|
|
39
|
+
opacity: 0;
|
|
40
|
+
min-width: 5rem;
|
|
41
|
+
position: relative;
|
|
42
|
+
transition: all 0.5s ease;
|
|
43
|
+
margin-top: 1rem;
|
|
44
|
+
left: 0;
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
ul li:hover > ul,
|
|
49
|
+
ul li ul:hover {
|
|
50
|
+
visibility: visible;
|
|
51
|
+
opacity: 1;
|
|
52
|
+
display: inline-block;
|
|
53
|
+
margin: 0 auto;
|
|
54
|
+
width: 95%;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
ul li ul li {
|
|
58
|
+
clear: both;
|
|
59
|
+
width: 100%;
|
|
60
|
+
padding: 1%;
|
|
61
|
+
}
|
|
62
|
+
ul li {
|
|
63
|
+
overflow-x: hidden;
|
|
64
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
ul {
|
|
2
|
+
padding: 15px 0 15px 0;
|
|
3
|
+
background-color: #f7f6f6 !important;
|
|
4
|
+
border-radius: 13px;
|
|
5
|
+
box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px 0px !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
ul li {
|
|
9
|
+
list-style: none;
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
padding-top: 7px;
|
|
13
|
+
padding-bottom: 7px;
|
|
14
|
+
padding-left: 10px;
|
|
15
|
+
border-bottom: 1px solid white;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
ul {
|
|
19
|
+
list-style-type: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
ul, li {display: block;}
|
|
24
|
+
li:hover {
|
|
25
|
+
background: white;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
ul li ul {
|
|
30
|
+
background: white;
|
|
31
|
+
visibility: hidden;
|
|
32
|
+
opacity: 0;
|
|
33
|
+
min-width: 5rem;
|
|
34
|
+
position: relative;
|
|
35
|
+
transition: all 0.5s ease;
|
|
36
|
+
margin-top: 1rem;
|
|
37
|
+
left: 0;
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
ul li:hover > ul,
|
|
42
|
+
ul li ul:hover {
|
|
43
|
+
visibility: visible;
|
|
44
|
+
opacity: 1;
|
|
45
|
+
display: inline-block;
|
|
46
|
+
margin: 0 auto;
|
|
47
|
+
width: 95%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
ul li ul li {
|
|
51
|
+
clear: both;
|
|
52
|
+
width: 100%;
|
|
53
|
+
padding: 1%;
|
|
54
|
+
}
|
|
55
|
+
ul li {
|
|
56
|
+
overflow-x: hidden;
|
|
57
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
:host * {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host {
|
|
6
|
+
zoom: 1.0;
|
|
7
|
+
width: device-width;
|
|
8
|
+
margin: 0;
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
position: absolute;
|
|
14
|
+
padding: 0;
|
|
15
|
+
min-width: 100vw;
|
|
16
|
+
min-height: 100vh;
|
|
17
|
+
width: 100vw;
|
|
18
|
+
height: 100vh;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
background-color: black;
|
|
21
|
+
}
|
|
22
|
+
#slot-logo::slotted(img) {
|
|
23
|
+
vertical-align: middle;
|
|
24
|
+
display: block;
|
|
25
|
+
width: 100vw;
|
|
26
|
+
left: 0;
|
|
27
|
+
margin: 0;
|
|
28
|
+
padding: 0;
|
|
29
|
+
top: 20vh;
|
|
30
|
+
bottom: 20vh;
|
|
31
|
+
position: absolute;
|
|
32
|
+
z-index: 9999999999;
|
|
33
|
+
transform-origin: center;
|
|
34
|
+
transform-style: preserve-3d;
|
|
35
|
+
filter: blur(0em);
|
|
36
|
+
transition: filter 0.5s;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host * {
|
|
40
|
+
-webkit-user-select: none;
|
|
41
|
+
-moz-user-select: none;
|
|
42
|
+
-ms-user-select: none;
|
|
43
|
+
user-select: none;
|
|
44
|
+
-webkit-touch-callout: none;
|
|
45
|
+
/* prevent callout to copy image, etc when tap to hold */
|
|
46
|
+
-webkit-text-size-adjust: none;
|
|
47
|
+
/* prevent webkit from resizing text to fit */
|
|
48
|
+
-webkit-user-select: none;
|
|
49
|
+
/* prevent copy paste, to allow, change 'none' to 'text' */
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* FOCUS */
|
|
53
|
+
:host summary:focus,
|
|
54
|
+
:host a:focus,
|
|
55
|
+
:host button:focus {
|
|
56
|
+
outline: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.splashscreen,
|
|
60
|
+
.fullscreen-bg {
|
|
61
|
+
padding: 0;
|
|
62
|
+
margin: 0;
|
|
63
|
+
top: 0;
|
|
64
|
+
left: 0;
|
|
65
|
+
right: 0;
|
|
66
|
+
bottom: 0;
|
|
67
|
+
padding: 0;
|
|
68
|
+
background-attachment: fixed;
|
|
69
|
+
background-position: center;
|
|
70
|
+
background-clip: content-box;
|
|
71
|
+
background-size: cover;
|
|
72
|
+
position: absolute;
|
|
73
|
+
min-width: 100vw;
|
|
74
|
+
min-height: 100vh;
|
|
75
|
+
width: 100vw;
|
|
76
|
+
height: 100vh;
|
|
77
|
+
z-index: 0;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.splashscreen .splashcontent {
|
|
82
|
+
top: 0;
|
|
83
|
+
left: 0;
|
|
84
|
+
right: 0;
|
|
85
|
+
bottom: 0;
|
|
86
|
+
margin: 0 auto;
|
|
87
|
+
width: 100vw;
|
|
88
|
+
height: 100vh;
|
|
89
|
+
padding: 0;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
z-index: 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.splashscreen .splashcontent p {
|
|
95
|
+
color: white;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
video.fullscreen-bg__video {
|
|
99
|
+
top: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
bottom: 0;
|
|
102
|
+
right: 0;
|
|
103
|
+
margin: 0;
|
|
104
|
+
padding: 0;
|
|
105
|
+
position: absolute;
|
|
106
|
+
min-width: 100vw;
|
|
107
|
+
min-height: 100vh;
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
z-index: 0;
|
|
110
|
+
object-fit: cover;
|
|
111
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@import url("./base-modal.css");
|
|
2
|
+
|
|
3
|
+
.modal details {
|
|
4
|
+
border: 1px 0 0 1px solid #aaa;
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
padding: .5em .5em 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.modal summary {
|
|
10
|
+
font-weight: bold;
|
|
11
|
+
margin: -.5em -.5em 0;
|
|
12
|
+
padding: .5em;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.modal details[open] {
|
|
16
|
+
padding: .5em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.modal details[open] summary {
|
|
20
|
+
border-bottom: 1px solid #aaa;
|
|
21
|
+
margin-bottom: .5em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.modal summary::-webkit-details-marker {
|
|
25
|
+
display: none
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.modal summary:after {
|
|
29
|
+
border-radius: 5px;
|
|
30
|
+
content: "+";
|
|
31
|
+
color: #111111;
|
|
32
|
+
float: left;
|
|
33
|
+
font-size: 1.5em;
|
|
34
|
+
font-weight: bold;
|
|
35
|
+
margin: -5px 10px 0 0;
|
|
36
|
+
padding: 0;
|
|
37
|
+
text-align: center;
|
|
38
|
+
width: 20px;
|
|
39
|
+
}
|
|
40
|
+
.modal details[open] summary:after {
|
|
41
|
+
content: "-";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.modal ul {
|
|
45
|
+
list-style-type: none;
|
|
46
|
+
}
|
package/build/index.cjs
ADDED
package/build/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const sdk = __importStar(require("./QCObjects-SDK"));
|
|
27
|
+
exports.default = sdk;
|
package/build/index.mjs
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const qcobjects_1 = require("qcobjects");
|
|
4
|
+
const org_qcobjects_cloud_auth_session_usertoken_1 = require("./org.qcobjects.cloud.auth.session.usertoken");
|
|
5
|
+
/**
|
|
6
|
+
* QCObjects SDK 2.4
|
|
7
|
+
* ________________
|
|
8
|
+
*
|
|
9
|
+
* Author: Jean Machuca <correojean@gmail.com>
|
|
10
|
+
*
|
|
11
|
+
* Cross Browser Javascript Framework for MVC Patterns
|
|
12
|
+
* QuickCorp/QCObjects is licensed under the
|
|
13
|
+
* GNU Lesser General Public License v3.0
|
|
14
|
+
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
15
|
+
*
|
|
16
|
+
* Permissions of this copyleft license are conditioned on making available
|
|
17
|
+
* complete source code of licensed works and modifications under the same
|
|
18
|
+
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
19
|
+
* Contributors provide an express grant of patent rights. However, a larger
|
|
20
|
+
* work using the licensed work through interfaces provided by the licensed
|
|
21
|
+
* work may be distributed under different terms and without source code for
|
|
22
|
+
* the larger work.
|
|
23
|
+
*
|
|
24
|
+
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
25
|
+
*
|
|
26
|
+
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
27
|
+
* license document, but changing it is not allowed.
|
|
28
|
+
*/
|
|
29
|
+
(function () {
|
|
30
|
+
"use strict";
|
|
31
|
+
(0, qcobjects_1.Package)("org.qcobjects.cloud.auth.session.data", [
|
|
32
|
+
class SessionData extends qcobjects_1.InheritClass {
|
|
33
|
+
constructor() {
|
|
34
|
+
super(...arguments);
|
|
35
|
+
this.__session_container__ = null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Sets the session container
|
|
39
|
+
*
|
|
40
|
+
* @param {*} sessionContainer1, sessionContainer2, ...
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
setSessionContainer() {
|
|
44
|
+
// eslint-disable-next-line prefer-rest-params
|
|
45
|
+
this.__session_container__ = [...arguments];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Gets the session container
|
|
49
|
+
*
|
|
50
|
+
* @return {*} sessionContainer
|
|
51
|
+
*/
|
|
52
|
+
getSessionContainer() {
|
|
53
|
+
if (typeof this.__session_container__ === "undefined" || this.__session_container__ === null) {
|
|
54
|
+
throw new Error("You need to set a session container first: sessionData.setSessionContainer(...arguments)");
|
|
55
|
+
}
|
|
56
|
+
return this.__session_container__;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Gets the session data
|
|
60
|
+
*
|
|
61
|
+
* @return {*} sessionData
|
|
62
|
+
*/
|
|
63
|
+
getSessionData(...args) {
|
|
64
|
+
// eslint-disable-next-line prefer-rest-params
|
|
65
|
+
const s = sessionStorage.getItem(`${this.index(args)}`);
|
|
66
|
+
let sessionData;
|
|
67
|
+
if (s !== null) {
|
|
68
|
+
sessionData = JSON.parse(s);
|
|
69
|
+
}
|
|
70
|
+
if (typeof sessionData === "undefined" || sessionData === null) {
|
|
71
|
+
sessionData = {};
|
|
72
|
+
}
|
|
73
|
+
return sessionData;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns an index of the session
|
|
77
|
+
*
|
|
78
|
+
* @param {string} valueForIndex
|
|
79
|
+
* @return {string} index
|
|
80
|
+
* @example sessionInstance.index("me@email.com", "myusername")
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
index(...args) {
|
|
84
|
+
if (typeof org_qcobjects_cloud_auth_session_usertoken_1.SessionUserToken === "undefined") {
|
|
85
|
+
throw new Error("You need to import SessionUserToken first: Import (\"org.qcobjects.cloud.auth.session.usertoken\")");
|
|
86
|
+
}
|
|
87
|
+
return `session_${btoa(org_qcobjects_cloud_auth_session_usertoken_1.SessionUserToken.getGlobalUserToken(args))}`;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Saves the session instance
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
save(...args) {
|
|
94
|
+
const s = (0, qcobjects_1._DataStringify)(this.sessionData);
|
|
95
|
+
sessionStorage.setItem(`${this.index(args)}`, s);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* Gets the session value
|
|
100
|
+
*
|
|
101
|
+
* @param {*} name
|
|
102
|
+
* @param {*} defaultValue
|
|
103
|
+
* @return {*}
|
|
104
|
+
*/
|
|
105
|
+
get(name, defaultValue) {
|
|
106
|
+
const sessionData = this.getSessionData(this.getSessionContainer());
|
|
107
|
+
return (typeof sessionData[name] !== "undefined") ? (sessionData[name]) : (defaultValue);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* Sets the session value
|
|
112
|
+
*
|
|
113
|
+
* @param {*} name
|
|
114
|
+
* @param {*} value
|
|
115
|
+
*/
|
|
116
|
+
set(name, value) {
|
|
117
|
+
const sessionContainer = this.getSessionContainer();
|
|
118
|
+
const sessionData = this.getSessionData(sessionContainer);
|
|
119
|
+
this.sessionData = sessionData;
|
|
120
|
+
this.sessionData[name] = value;
|
|
121
|
+
this.save(sessionContainer);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]);
|
|
125
|
+
})();
|