qcobjects-sdk 2.4.60 → 2.4.62

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