qcobjects-sdk 2.4.60 → 2.4.61
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/.dockerignore +98 -1
- package/.eslintignore +1 -2
- package/.github/workflows/static.yml +91 -0
- package/VERSION +1 -1
- package/config.json +4 -0
- package/package.json +31 -9
- package/src/QCObjects-SDK.d.ts +26 -0
- package/src/QCObjects-SDK.ts +110 -0
- package/src/index.d.ts +1 -1
- package/src/index.mts +2 -0
- package/src/js/org.qcobjects.cloud.auth.session.data.d.ts +1 -0
- package/src/js/{org.qcobjects.cloud.auth.session.data.js → org.qcobjects.cloud.auth.session.data.ts} +28 -22
- package/src/js/org.qcobjects.cloud.auth.session.usertoken.d.ts +2 -0
- package/src/js/org.qcobjects.cloud.auth.session.usertoken.ts +128 -0
- package/src/js/org.qcobjects.components.d.ts +10 -0
- package/src/js/org.qcobjects.components.grid.d.ts +3 -0
- package/src/js/org.qcobjects.components.grid.ts +95 -0
- package/src/js/org.qcobjects.components.list.d.ts +3 -0
- package/src/js/org.qcobjects.components.list.ts +83 -0
- package/src/js/org.qcobjects.components.notifications.d.ts +1 -0
- package/src/js/org.qcobjects.components.notifications.ts +191 -0
- package/src/js/org.qcobjects.components.slider.d.ts +1 -0
- package/src/js/{org.qcobjects.components.slider.js → org.qcobjects.components.slider.ts} +8 -6
- package/src/js/org.qcobjects.components.splashscreen.d.ts +28 -0
- package/src/js/org.qcobjects.components.splashscreen.ts +680 -0
- package/src/js/org.qcobjects.components.ts +336 -0
- package/src/js/org.qcobjects.controllers.d.ts +1 -0
- package/src/js/org.qcobjects.controllers.form.d.ts +1 -0
- package/src/js/{org.qcobjects.controllers.form.js → org.qcobjects.controllers.form.ts} +57 -59
- package/src/js/org.qcobjects.controllers.grid.d.ts +1 -0
- package/src/js/{org.qcobjects.controllers.grid.js → org.qcobjects.controllers.grid.ts} +102 -97
- package/src/js/org.qcobjects.controllers.list.d.ts +1 -0
- package/src/js/{org.qcobjects.controllers.list.js → org.qcobjects.controllers.list.ts} +86 -76
- package/src/js/org.qcobjects.controllers.slider.d.ts +1 -0
- package/src/js/org.qcobjects.controllers.slider.ts +158 -0
- package/src/js/org.qcobjects.controllers.swagger.d.ts +1 -0
- package/src/js/{org.qcobjects.controllers.swagger.js → org.qcobjects.controllers.swagger.ts} +13 -14
- package/src/js/{org.qcobjects.controllers.js → org.qcobjects.controllers.ts} +3 -6
- package/src/js/org.qcobjects.effects.d.ts +20 -0
- package/src/js/org.qcobjects.effects.ts +430 -0
- package/src/js/org.qcobjects.i18n_messages.d.ts +1 -0
- package/src/js/{org.qcobjects.i18n_messages.js → org.qcobjects.i18n_messages.ts} +36 -27
- package/src/js/org.qcobjects.modal.controllers.d.ts +1 -0
- package/src/js/{org.qcobjects.modal.controllers.js → org.qcobjects.modal.controllers.ts} +5 -6
- package/src/js/org.qcobjects.modal.effects.d.ts +1 -0
- package/src/js/{org.qcobjects.modal.effects.js → org.qcobjects.modal.effects.ts} +4 -1
- package/src/js/org.qcobjects.models.d.ts +1 -0
- package/src/js/{org.qcobjects.models.js → org.qcobjects.models.ts} +3 -24
- package/src/js/org.qcobjects.tools.canvas.d.ts +1 -0
- package/src/js/{org.qcobjects.tools.canvas.js → org.qcobjects.tools.canvas.ts} +14 -11
- package/src/js/org.qcobjects.tools.d.ts +1 -0
- package/src/js/org.qcobjects.tools.layouts.d.ts +1 -0
- package/src/js/org.qcobjects.tools.layouts.ts +85 -0
- package/src/js/{org.qcobjects.tools.js → org.qcobjects.tools.ts} +19 -11
- package/src/js/org.qcobjects.views.d.ts +1 -0
- package/src/js/{org.qcobjects.views.js → org.qcobjects.views.ts} +3 -5
- package/tsconfig.json +1 -1
- package/-m +0 -1
- package/src/QCObjects-SDK.js +0 -148
- package/src/index.mjs +0 -2
- package/src/js/org.qcobjects.cloud.auth.session.usertoken.js +0 -116
- package/src/js/org.qcobjects.components.grid.js +0 -65
- package/src/js/org.qcobjects.components.js +0 -276
- package/src/js/org.qcobjects.components.list.js +0 -59
- package/src/js/org.qcobjects.components.notifications.js +0 -190
- package/src/js/org.qcobjects.components.splashscreen.js +0 -645
- package/src/js/org.qcobjects.controllers.slider.js +0 -154
- package/src/js/org.qcobjects.effects.js +0 -345
- package/src/js/org.qcobjects.tools.layouts.js +0 -79
- /package/{css → src/css}/base-modal.css +0 -0
- /package/{css → src/css}/basic-layout-embedded-nav.css +0 -0
- /package/{css → src/css}/basic-layout.css +0 -0
- /package/{css → src/css}/components/horizontal-list.css +0 -0
- /package/{css → src/css}/components/list.css +0 -0
- /package/{css → src/css}/components/splashscreen.css +0 -0
- /package/{css → src/css}/modal.css +0 -0
- /package/src/{index.cjs → index.cts} +0 -0
|
@@ -1,645 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* QCObjects SDK 2.4.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
|
-
(function __splash_screen__ (global) {
|
|
26
|
-
"use strict";
|
|
27
|
-
Package("org.qcobjects.components.base", [
|
|
28
|
-
class SplashScreenComponent extends Component {
|
|
29
|
-
cached = false;
|
|
30
|
-
shadowed= true;
|
|
31
|
-
|
|
32
|
-
constructor (component) {
|
|
33
|
-
component.name = (typeof component.name === "undefined")? ("splashscreen"):(component.name);
|
|
34
|
-
|
|
35
|
-
var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
|
|
36
|
-
var isStartURL = (location.hash === ""
|
|
37
|
-
&& location.pathname === "/" && location.search === "")
|
|
38
|
-
|| CONFIG.get("routingWay") === "hash" && CONFIG.get("start_url","/") === location.hash
|
|
39
|
-
|| CONFIG.get("routingWay") === "pathname" && CONFIG.get("start_url","/") === location.pathname
|
|
40
|
-
|| CONFIG.get("routingWay") === "search" && CONFIG.get("start_url","/") === location.search;
|
|
41
|
-
var _enabled_ = isBrowser && isStartURL;
|
|
42
|
-
|
|
43
|
-
if (_enabled_){
|
|
44
|
-
component.basePath = CONFIG.get("splashscreenBasePath",CONFIG.get("remoteSDKPath"));
|
|
45
|
-
if (typeof component.data === "undefined"){
|
|
46
|
-
component.data = {};
|
|
47
|
-
}
|
|
48
|
-
component.data.basePath = component.basePath;
|
|
49
|
-
} else {
|
|
50
|
-
if (typeof component !== "undefined"){
|
|
51
|
-
component.body.style.display="none";
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
super(component);
|
|
55
|
-
this._enabled_ = _enabled_;
|
|
56
|
-
|
|
57
|
-
if (this._enabled_){
|
|
58
|
-
var displayEffectDuration = 1000;
|
|
59
|
-
var duration = this.body.getAttribute("duration");
|
|
60
|
-
if (duration === null){
|
|
61
|
-
duration = displayEffectDuration;
|
|
62
|
-
} else {
|
|
63
|
-
duration = parseInt(duration);
|
|
64
|
-
}
|
|
65
|
-
this._bgcolor = this.body.style.backgroundColor;
|
|
66
|
-
|
|
67
|
-
var _helper_ = () => {
|
|
68
|
-
setTimeout(()=>{
|
|
69
|
-
if (!_helper_.executed){
|
|
70
|
-
var _componentRoot = (this.shadowed)?(this.shadowRoot.host):(this.body);
|
|
71
|
-
if (typeof global.componentsStack !== "undefined"){
|
|
72
|
-
global.componentsStack.filter(c=>c.body.hasAttribute("splashscreen")).map(
|
|
73
|
-
(mainComponent) => {
|
|
74
|
-
logger.debug("Splash Screen of Main Component:",mainComponent.name);
|
|
75
|
-
mainComponent.splashScreenComponent = this;
|
|
76
|
-
function SplashScreenHandler (){
|
|
77
|
-
if (!SplashScreenHandler.executed){
|
|
78
|
-
var mainComponent = this; /* here this is bound to mainComponent */
|
|
79
|
-
var component = mainComponent.splashScreenComponent;
|
|
80
|
-
var mainElement = (mainComponent.shadowed)?(mainComponent.shadowRoot.host):(mainComponent.body);
|
|
81
|
-
mainComponent._mainPosition = mainElement.style.position;
|
|
82
|
-
mainElement.style.position = "fixed";
|
|
83
|
-
mainComponent._mainOpacity = mainElement.style.opacity;
|
|
84
|
-
_componentRoot.style.width = "100%";
|
|
85
|
-
_componentRoot.style.height = "100%";
|
|
86
|
-
document.body.style.backgroundColor = "#111111";
|
|
87
|
-
mainElement.style.opacity = 0;
|
|
88
|
-
setTimeout(function() {
|
|
89
|
-
if (typeof _componentRoot !== "undefined"){
|
|
90
|
-
document.body.style.backgroundColor = component._bgcolor;
|
|
91
|
-
_componentRoot.subelements("#slot-logo").map(function (slotlogo){
|
|
92
|
-
slotlogo.style.display = "block";
|
|
93
|
-
slotlogo.style.transformOrigin = "center";
|
|
94
|
-
(new Resize()).apply(slotlogo,1,0);
|
|
95
|
-
});
|
|
96
|
-
(new Fade()).apply(_componentRoot, 1, 0);
|
|
97
|
-
}
|
|
98
|
-
}, (duration-displayEffectDuration));
|
|
99
|
-
setTimeout(function() {
|
|
100
|
-
(new Fade()).apply(mainElement, 0, 1);
|
|
101
|
-
mainElement.style.position = mainComponent._mainPosition;
|
|
102
|
-
document.body.style.backgroundColor = component._bgcolor;
|
|
103
|
-
_componentRoot.parentElement.remove();
|
|
104
|
-
}, duration);
|
|
105
|
-
}
|
|
106
|
-
SplashScreenHandler.executed=true;
|
|
107
|
-
}
|
|
108
|
-
mainComponent.addComponentHelper(SplashScreenHandler.bind(mainComponent));
|
|
109
|
-
}
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
_helper_.executed=true;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
_helper_.executed=false;
|
|
118
|
-
this.addComponentHelper(_helper_.bind(component));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
]);
|
|
127
|
-
|
|
128
|
-
Package("org.qcobjects.components.splashscreen",[
|
|
129
|
-
class VideoSplashScreenComponent extends SplashScreenComponent {
|
|
130
|
-
cached= false;
|
|
131
|
-
shadowed= true;
|
|
132
|
-
tplsource= "inline";
|
|
133
|
-
template= `
|
|
134
|
-
<style>
|
|
135
|
-
:host * {
|
|
136
|
-
box-sizing: border-box;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
:host {
|
|
140
|
-
zoom: 1.0;
|
|
141
|
-
width: device-width;
|
|
142
|
-
margin: 0;
|
|
143
|
-
top: 0;
|
|
144
|
-
left: 0;
|
|
145
|
-
right: 0;
|
|
146
|
-
bottom: 0;
|
|
147
|
-
position: absolute;
|
|
148
|
-
padding: 0;
|
|
149
|
-
min-width: 100vw;
|
|
150
|
-
min-height: 100vh;
|
|
151
|
-
width: 100vw;
|
|
152
|
-
height: 100vh;
|
|
153
|
-
overflow: hidden;
|
|
154
|
-
background-color: black;
|
|
155
|
-
}
|
|
156
|
-
#slot-logo::slotted(img) {
|
|
157
|
-
vertical-align: middle;
|
|
158
|
-
display: block;
|
|
159
|
-
width: 40vw;
|
|
160
|
-
left: 0;
|
|
161
|
-
margin: 0;
|
|
162
|
-
padding: 0;
|
|
163
|
-
z-index: 9999999999;
|
|
164
|
-
transform-origin: center;
|
|
165
|
-
transform-style: preserve-3d;
|
|
166
|
-
filter: blur(0em);
|
|
167
|
-
transition: filter 0.5s;
|
|
168
|
-
max-width: 300px;
|
|
169
|
-
position: absolute;
|
|
170
|
-
top: 50%;
|
|
171
|
-
left: 50%;
|
|
172
|
-
transform: translate(-50%, -50%);
|
|
173
|
-
animation: fadeIn 5s;
|
|
174
|
-
-webkit-animation: fadeIn 5s;
|
|
175
|
-
-moz-animation: fadeIn 5s;
|
|
176
|
-
-o-animation: fadeIn 5s;
|
|
177
|
-
-ms-animation: fadeIn 5s;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
:host * {
|
|
181
|
-
-webkit-user-select: none;
|
|
182
|
-
-moz-user-select: none;
|
|
183
|
-
-ms-user-select: none;
|
|
184
|
-
user-select: none;
|
|
185
|
-
-webkit-touch-callout: none;
|
|
186
|
-
/* prevent callout to copy image, etc when tap to hold */
|
|
187
|
-
-webkit-text-size-adjust: none;
|
|
188
|
-
/* prevent webkit from resizing text to fit */
|
|
189
|
-
-webkit-user-select: none;
|
|
190
|
-
/* prevent copy paste, to allow, change 'none' to 'text' */
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/* FOCUS */
|
|
194
|
-
:host summary:focus,
|
|
195
|
-
:host a:focus,
|
|
196
|
-
:host button:focus {
|
|
197
|
-
outline: none;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.splashscreen,
|
|
201
|
-
.fullscreen-bg {
|
|
202
|
-
padding: 0;
|
|
203
|
-
margin: 0;
|
|
204
|
-
top: 0;
|
|
205
|
-
left: 0;
|
|
206
|
-
right: 0;
|
|
207
|
-
bottom: 0;
|
|
208
|
-
padding: 0;
|
|
209
|
-
background-attachment: fixed;
|
|
210
|
-
background-position: center;
|
|
211
|
-
background-clip: content-box;
|
|
212
|
-
background-size: cover;
|
|
213
|
-
position: absolute;
|
|
214
|
-
min-width: 100vw;
|
|
215
|
-
min-height: 100vh;
|
|
216
|
-
width: 100vw;
|
|
217
|
-
height: 100vh;
|
|
218
|
-
z-index: 0;
|
|
219
|
-
overflow: hidden;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.splashscreen .splashcontent {
|
|
223
|
-
top: 0;
|
|
224
|
-
left: 0;
|
|
225
|
-
right: 0;
|
|
226
|
-
bottom: 0;
|
|
227
|
-
margin: 0 auto;
|
|
228
|
-
width: 100vw;
|
|
229
|
-
height: 100vh;
|
|
230
|
-
padding: 0;
|
|
231
|
-
overflow: hidden;
|
|
232
|
-
z-index: 1;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.splashscreen .splashcontent p {
|
|
236
|
-
color: white;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
video.fullscreen-bg__video {
|
|
240
|
-
top: 0;
|
|
241
|
-
left: 0;
|
|
242
|
-
bottom: 0;
|
|
243
|
-
right: 0;
|
|
244
|
-
margin: 0;
|
|
245
|
-
padding: 0;
|
|
246
|
-
position: absolute;
|
|
247
|
-
min-width: 100vw;
|
|
248
|
-
min-height: 100vh;
|
|
249
|
-
overflow: hidden;
|
|
250
|
-
z-index: 0;
|
|
251
|
-
object-fit: cover;
|
|
252
|
-
filter: brightness(0.3);
|
|
253
|
-
}
|
|
254
|
-
.splashscreen,
|
|
255
|
-
.fullscreen-bg {
|
|
256
|
-
background-image: url('{{background}}');
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
@keyframes fadeIn {
|
|
260
|
-
0% {opacity:0;}
|
|
261
|
-
100% {opacity:1;}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
@-moz-keyframes fadeIn {
|
|
265
|
-
0% {opacity:0;}
|
|
266
|
-
100% {opacity:1;}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
@-webkit-keyframes fadeIn {
|
|
270
|
-
0% {opacity:0;}
|
|
271
|
-
100% {opacity:1;}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
@-o-keyframes fadeIn {
|
|
275
|
-
0% {opacity:0;}
|
|
276
|
-
100% {opacity:1;}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
@-ms-keyframes fadeIn {
|
|
280
|
-
0% {opacity:0;}
|
|
281
|
-
100% {opacity:1;}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
</style>
|
|
285
|
-
<div class="splashscreen">
|
|
286
|
-
<div class="fullscreen-bg splashcontent">
|
|
287
|
-
<video loop muted autoplay playsinline name="media" poster="{{background}}" class="fullscreen-bg__video" data-setup="{}" height="100%">
|
|
288
|
-
<source src="{{video_mp4}}" type="video/mp4">
|
|
289
|
-
<source src="{{video_ogg}}" type="video/ogg">
|
|
290
|
-
<source src="{{video_webm}}" type="video/webm">
|
|
291
|
-
</video>
|
|
292
|
-
<slot id="slot-logo" name="logo"></slot>
|
|
293
|
-
</div>
|
|
294
|
-
</div>
|
|
295
|
-
|
|
296
|
-
`;
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
constructor (o) {
|
|
300
|
-
o.name = "videosplashscreen";
|
|
301
|
-
super(o);
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
|
|
305
|
-
class CubeSplashScreenComponent extends SplashScreenComponent {
|
|
306
|
-
cached= false;
|
|
307
|
-
shadowed= true;
|
|
308
|
-
tplsource= "inline";
|
|
309
|
-
template= `
|
|
310
|
-
<style>
|
|
311
|
-
@keyframes spin {
|
|
312
|
-
0% {
|
|
313
|
-
transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
16% {
|
|
317
|
-
transform: translateZ(-100px) rotateX(180deg) rotateY(180deg) rotateZ(0deg);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
33% {
|
|
321
|
-
transform: translateZ(-100px) rotateX(360deg) rotateY(90deg) rotateZ(180deg);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
50% {
|
|
325
|
-
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
66% {
|
|
329
|
-
transform: translateZ(-100px) rotateX(180deg) rotateY(360deg) rotateZ(270deg);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
83% {
|
|
333
|
-
transform: translateZ(-100px) rotateX(270deg) rotateY(180deg) rotateZ(180deg);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
100% {
|
|
337
|
-
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
@keyframes spin-duplicate {
|
|
342
|
-
0% {
|
|
343
|
-
transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
16% {
|
|
347
|
-
transform: translateZ(-100px) rotateX(180deg) rotateY(180deg) rotateZ(0deg);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
33% {
|
|
351
|
-
transform: translateZ(-100px) rotateX(360deg) rotateY(90deg) rotateZ(180deg);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
50% {
|
|
355
|
-
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
66% {
|
|
359
|
-
transform: translateZ(-100px) rotateX(180deg) rotateY(360deg) rotateZ(270deg);
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
83% {
|
|
363
|
-
transform: translateZ(-100px) rotateX(270deg) rotateY(180deg) rotateZ(180deg);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
100% {
|
|
367
|
-
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
@keyframes roll {
|
|
372
|
-
0% {
|
|
373
|
-
transform: translate3d(-200px, -50px, -400px)
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
12% {
|
|
377
|
-
transform: translate3d(0px, 0, -100px)
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
25% {
|
|
381
|
-
transform: translate3d(200px, -50px, -400px)
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
37% {
|
|
385
|
-
transform: translate3d(0px, -100px, -800px)
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
50% {
|
|
389
|
-
transform: translate3d(-200px, -50px, -400px)
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
62% {
|
|
393
|
-
transform: translate3d(0px, 0, -100px)
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
75% {
|
|
397
|
-
transform: translate3d(200px, -50px, -400px)
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
87% {
|
|
401
|
-
transform: translate3d(0px, -100px, -800px)
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
100% {
|
|
405
|
-
transform: translate3d(-200px, -50px, -400px)
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
#wrapper {
|
|
410
|
-
position: relative;
|
|
411
|
-
width: 200px;
|
|
412
|
-
padding-top: 100px;
|
|
413
|
-
margin: 0 auto;
|
|
414
|
-
perspective: 1200px;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
#platform {
|
|
418
|
-
margin-top: 100px;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
#dice span {
|
|
422
|
-
position: absolute;
|
|
423
|
-
margin: 100px 0 0 100px;
|
|
424
|
-
display: block;
|
|
425
|
-
font-size: 2.5em;
|
|
426
|
-
padding: 10px;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
#dice {
|
|
430
|
-
position: absolute;
|
|
431
|
-
width: 200px;
|
|
432
|
-
height: 200px;
|
|
433
|
-
transform-style: preserve-3d;
|
|
434
|
-
animation: spin 50s infinite linear;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
.side {
|
|
438
|
-
position: absolute;
|
|
439
|
-
width: 200px;
|
|
440
|
-
height: 200px;
|
|
441
|
-
background: none;
|
|
442
|
-
box-shadow: inset 0 0 40px #fff0;
|
|
443
|
-
border-radius: 40px;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
#dice .cover, #dice .inner {
|
|
447
|
-
background: #e0e0e0;
|
|
448
|
-
box-shadow: none;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
#dice .cover {
|
|
452
|
-
border-radius: 0;
|
|
453
|
-
transform-origin: center;
|
|
454
|
-
transform: translateZ(0px);
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
#dice .cover.x {
|
|
458
|
-
transform-origin: center;
|
|
459
|
-
transform: rotateY(90deg);
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
#dice .cover.z {
|
|
463
|
-
transform-origin: center;
|
|
464
|
-
transform: rotateX(90deg);
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
#dice .front {
|
|
468
|
-
transform-origin: center;
|
|
469
|
-
transform: translateZ(100px);
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
#dice .front.inner {
|
|
473
|
-
transform-origin: center;
|
|
474
|
-
transform: translateZ(98px);
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
#dice .back {
|
|
478
|
-
transform-origin: center;
|
|
479
|
-
transform: rotateX(-180deg) translateZ(100px);
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
#dice .back.inner {
|
|
483
|
-
transform-origin: center;
|
|
484
|
-
transform: rotateX(-180deg) translateZ(98px);
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
#dice .right {
|
|
488
|
-
transform-origin: center;
|
|
489
|
-
transform: rotateY(90deg) translateZ(100px);
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
#dice .right.inner {
|
|
493
|
-
transform-origin: center;
|
|
494
|
-
transform: rotateY(90deg) translateZ(98px);
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
#dice .left {
|
|
498
|
-
transform-origin: center;
|
|
499
|
-
transform: rotateY(-90deg) translateZ(100px);
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
#dice .left.inner {
|
|
503
|
-
transform-origin: center;
|
|
504
|
-
transform: rotateY(-90deg) translateZ(98px);
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
#dice .top {
|
|
508
|
-
transform-origin: center;
|
|
509
|
-
transform: rotateX(90deg) translateZ(100px);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
#dice .top.inner {
|
|
513
|
-
transform-origin: center;
|
|
514
|
-
transform: rotateX(90deg) translateZ(98px);
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
#dice .bottom {
|
|
518
|
-
transform-origin: center;
|
|
519
|
-
transform: rotateX(-90deg) translateZ(100px);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
#dice .bottom.inner {
|
|
523
|
-
transform-origin: center;
|
|
524
|
-
transform: rotateX(-90deg) translateZ(98px);
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
.dot {
|
|
528
|
-
position: absolute;
|
|
529
|
-
width: 46px;
|
|
530
|
-
height: 46px;
|
|
531
|
-
border-radius: 23px;
|
|
532
|
-
background: #444;
|
|
533
|
-
box-shadow: inset 5px 0 10px #000;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
.dot.center {
|
|
537
|
-
margin: 77px 0 0 77px;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
.dot.dtop {
|
|
541
|
-
margin-top: 20px;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
.dot.dleft {
|
|
545
|
-
margin-left: 134px;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
.dot.dright {
|
|
549
|
-
margin-left: 20px;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
.dot.dbottom {
|
|
553
|
-
margin-top: 134px;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
.dot.center.dleft {
|
|
557
|
-
margin: 77px 0 0 20px;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
.dot.center.dright {
|
|
561
|
-
margin: 77px 0 0 134px;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
#background {
|
|
565
|
-
top: 0px;
|
|
566
|
-
left: 0px;
|
|
567
|
-
position: fixed;
|
|
568
|
-
z-index: -1;
|
|
569
|
-
width: 100%;
|
|
570
|
-
height: 100%;
|
|
571
|
-
background: var(--root-background, transparent);
|
|
572
|
-
background-size: cover;
|
|
573
|
-
background-origin: border-box;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
#dice .side.front,
|
|
577
|
-
#dice .side.top,
|
|
578
|
-
#dice .side.right,
|
|
579
|
-
#dice .side.left,
|
|
580
|
-
#dice .side.bottom,
|
|
581
|
-
#dice .side.back {
|
|
582
|
-
background-image: var(--background-3d-cube-image, "none");
|
|
583
|
-
background-size: cover;
|
|
584
|
-
background-origin: border-box;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
:root, :host {
|
|
589
|
-
--background-3d-cube-image: url('{{cube_image}}');
|
|
590
|
-
--box-width: 200px;
|
|
591
|
-
font-size:.9em;
|
|
592
|
-
font-family:sans-serif;
|
|
593
|
-
--root-background: {{background}};
|
|
594
|
-
}
|
|
595
|
-
</style>
|
|
596
|
-
|
|
597
|
-
<div id="background"></div>
|
|
598
|
-
<div id="wrapper">
|
|
599
|
-
<div id="platform">
|
|
600
|
-
<div id="dice">
|
|
601
|
-
<div class="side front">
|
|
602
|
-
</div>
|
|
603
|
-
<div class="side front inner"></div>
|
|
604
|
-
<div class="side top"></div>
|
|
605
|
-
<div class="side top inner"></div>
|
|
606
|
-
<div class="side right"></div>
|
|
607
|
-
<div class="side right inner"></div>
|
|
608
|
-
<div class="side left"></div>
|
|
609
|
-
<div class="side left inner"></div>
|
|
610
|
-
<div class="side bottom"></div>
|
|
611
|
-
<div class="side bottom inner"></div>
|
|
612
|
-
<div class="side back"></div>
|
|
613
|
-
<div class="side back inner"></div>
|
|
614
|
-
<div class="side cover x"></div>
|
|
615
|
-
<div class="side cover y"></div>
|
|
616
|
-
<div class="side cover z"></div>
|
|
617
|
-
</div>
|
|
618
|
-
</div>
|
|
619
|
-
</div>
|
|
620
|
-
|
|
621
|
-
`;
|
|
622
|
-
|
|
623
|
-
constructor (o) {
|
|
624
|
-
o.name= "cubesplashscreen";
|
|
625
|
-
super(o);
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
]);
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}).call(null, (typeof module === "object" && typeof module.exports === "object") ? (
|
|
634
|
-
module.exports = (typeof globalThis !== "undefined"
|
|
635
|
-
? globalThis
|
|
636
|
-
: typeof self !== "undefined"
|
|
637
|
-
? self
|
|
638
|
-
: typeof window !== "undefined"
|
|
639
|
-
? window
|
|
640
|
-
: typeof global !== "undefined"
|
|
641
|
-
? global
|
|
642
|
-
: {})
|
|
643
|
-
) : ((typeof global === "object") ? (global) : (
|
|
644
|
-
(typeof window === "object") ? (window) : ({})
|
|
645
|
-
)));
|