lido-player 0.0.2-alpha-1 → 0.0.2-alpha-3
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/dist/cjs/app-col_12.cjs.entry.js +51 -59
- package/dist/cjs/app-col_12.cjs.entry.js.map +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-8ac0e3b7.js → utils-64490acd.js} +118 -38
- package/dist/cjs/utils-64490acd.js.map +1 -0
- package/dist/collection/components/column/AppCol.js +8 -44
- package/dist/collection/components/column/AppCol.js.map +1 -1
- package/dist/collection/components/container/AppContainer.js +35 -34
- package/dist/collection/components/container/AppContainer.js.map +1 -1
- package/dist/collection/components/home/AppHome.js +24 -4
- package/dist/collection/components/home/AppHome.js.map +1 -1
- package/dist/collection/components/image/AppImage.js +9 -45
- package/dist/collection/components/image/AppImage.js.map +1 -1
- package/dist/collection/components/position/AppPos.js +8 -44
- package/dist/collection/components/position/AppPos.js.map +1 -1
- package/dist/collection/components/random/AppRandom.js +8 -44
- package/dist/collection/components/random/AppRandom.js.map +1 -1
- package/dist/collection/components/root/AppRoot.js +32 -8
- package/dist/collection/components/root/AppRoot.js.map +1 -1
- package/dist/collection/components/root/assets/xmlData.xml +43 -71
- package/dist/collection/components/row/AppRow.js +8 -44
- package/dist/collection/components/row/AppRow.js.map +1 -1
- package/dist/collection/components/shape/AppShape.js +8 -44
- package/dist/collection/components/shape/AppShape.js.map +1 -1
- package/dist/collection/components/text/AppText.js +8 -44
- package/dist/collection/components/text/AppText.js.map +1 -1
- package/dist/collection/components/wrap/AppWrap.js +8 -44
- package/dist/collection/components/wrap/AppWrap.js.map +1 -1
- package/dist/collection/index.css +8 -0
- package/dist/collection/utils/constants.js +3 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/utils.js +101 -38
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/app-col.js +1 -1
- package/dist/components/app-container.js +1 -1
- package/dist/components/app-home.js +1 -1
- package/dist/components/app-image.js +1 -1
- package/dist/components/app-pos.js +1 -1
- package/dist/components/app-random.js +1 -1
- package/dist/components/app-root.js +26 -19
- package/dist/components/app-root.js.map +1 -1
- package/dist/components/app-row.js +1 -1
- package/dist/components/app-shape.js +1 -1
- package/dist/components/app-text.js +1 -1
- package/dist/components/app-trace.js +1 -1
- package/dist/components/app-wrap.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-639f58cb.js → p-0136243c.js} +7 -11
- package/dist/components/p-0136243c.js.map +1 -0
- package/dist/{esm/utils-cbfaa4d8.js → components/p-62fee06e.js} +118 -39
- package/dist/components/p-62fee06e.js.map +1 -0
- package/dist/components/{p-8bc122ff.js → p-7768c4db.js} +7 -11
- package/dist/components/p-7768c4db.js.map +1 -0
- package/dist/components/{p-350205d5.js → p-7f0a0129.js} +7 -11
- package/dist/components/p-7f0a0129.js.map +1 -0
- package/dist/components/{p-bb0a3ffa.js → p-92d974b0.js} +7 -11
- package/dist/components/p-92d974b0.js.map +1 -0
- package/dist/components/{p-aa381e73.js → p-c14c784e.js} +2 -2
- package/dist/components/{p-aa381e73.js.map → p-c14c784e.js.map} +1 -1
- package/dist/components/{p-c0c3e960.js → p-c2a88323.js} +14 -14
- package/dist/components/p-c2a88323.js.map +1 -0
- package/dist/components/{p-e509500a.js → p-c35c29db.js} +7 -11
- package/dist/components/p-c35c29db.js.map +1 -0
- package/dist/components/{p-34c825bf.js → p-d6c20e95.js} +7 -11
- package/dist/components/p-d6c20e95.js.map +1 -0
- package/dist/components/{p-f8bcec19.js → p-e3642074.js} +6 -10
- package/dist/components/p-e3642074.js.map +1 -0
- package/dist/components/{p-dee011ef.js → p-f190e0a7.js} +20 -17
- package/dist/components/p-f190e0a7.js.map +1 -0
- package/dist/components/{p-c9a89df3.js → p-f332d2b4.js} +7 -11
- package/dist/components/p-f332d2b4.js.map +1 -0
- package/dist/esm/app-col_12.entry.js +51 -59
- package/dist/esm/app-col_12.entry.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-player.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/{components/p-4db699ee.js → esm/utils-4f6f5606.js} +118 -39
- package/dist/esm/utils-4f6f5606.js.map +1 -0
- package/dist/lido-player/assets/xmlData.xml +43 -71
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.css +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js.map +1 -1
- package/dist/lido-player/p-07e1ea8a.entry.js +2 -0
- package/dist/lido-player/p-07e1ea8a.entry.js.map +1 -0
- package/dist/lido-player/p-62fee06e.js +2 -0
- package/dist/lido-player/p-62fee06e.js.map +1 -0
- package/dist/types/components/column/AppCol.d.ts +3 -5
- package/dist/types/components/container/AppContainer.d.ts +15 -9
- package/dist/types/components/home/AppHome.d.ts +4 -0
- package/dist/types/components/image/AppImage.d.ts +3 -5
- package/dist/types/components/position/AppPos.d.ts +3 -5
- package/dist/types/components/random/AppRandom.d.ts +3 -5
- package/dist/types/components/root/AppRoot.d.ts +4 -0
- package/dist/types/components/row/AppRow.d.ts +3 -5
- package/dist/types/components/shape/AppShape.d.ts +3 -5
- package/dist/types/components/text/AppText.d.ts +3 -5
- package/dist/types/components/wrap/AppWrap.d.ts +3 -5
- package/dist/types/components.d.ts +126 -130
- package/dist/types/utils/constants.d.ts +3 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/utils-8ac0e3b7.js.map +0 -1
- package/dist/components/p-34c825bf.js.map +0 -1
- package/dist/components/p-350205d5.js.map +0 -1
- package/dist/components/p-4db699ee.js.map +0 -1
- package/dist/components/p-639f58cb.js.map +0 -1
- package/dist/components/p-8bc122ff.js.map +0 -1
- package/dist/components/p-bb0a3ffa.js.map +0 -1
- package/dist/components/p-c0c3e960.js.map +0 -1
- package/dist/components/p-c9a89df3.js.map +0 -1
- package/dist/components/p-dee011ef.js.map +0 -1
- package/dist/components/p-e509500a.js.map +0 -1
- package/dist/components/p-f8bcec19.js.map +0 -1
- package/dist/esm/utils-cbfaa4d8.js.map +0 -1
- package/dist/lido-player/p-4db699ee.js +0 -2
- package/dist/lido-player/p-4db699ee.js.map +0 -1
- package/dist/lido-player/p-ec4f8898.entry.js +0 -2
- package/dist/lido-player/p-ec4f8898.entry.js.map +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0d28e716.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-64490acd.js');
|
|
7
7
|
|
|
8
8
|
const appColCss = ".col{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);padding:15px;border-radius:10px;display:flex;justify-content:space-around;flex-direction:column;align-items:center}.col>*{}";
|
|
9
9
|
const AppColStyle0 = appColCss;
|
|
@@ -26,11 +26,9 @@ const AppCol = class {
|
|
|
26
26
|
this.visible = undefined;
|
|
27
27
|
this.audio = undefined;
|
|
28
28
|
this.onTouch = undefined;
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.onCorrectMatch = undefined;
|
|
29
|
+
this.onInCorrect = undefined;
|
|
30
|
+
this.onCorrect = undefined;
|
|
32
31
|
this.onMatch = undefined;
|
|
33
|
-
this.onWrong = undefined;
|
|
34
32
|
this.onEntry = undefined;
|
|
35
33
|
}
|
|
36
34
|
/**
|
|
@@ -51,7 +49,7 @@ const AppCol = class {
|
|
|
51
49
|
display: this.visible ? 'flex' : 'none',
|
|
52
50
|
zIndex: this.z,
|
|
53
51
|
};
|
|
54
|
-
return (index.h(index.Host, { key: '
|
|
52
|
+
return (index.h(index.Host, { key: '99f188b18d41efb977b7bc17d93d1474e97fd444', id: this.id, class: "col", type: this.type, tabindex: this.tabIndex, value: this.value, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onMatch: this.onMatch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, index.h("slot", { key: '6c663c7c7e5aa6167d5af26ecee8b34305c7da6d' })));
|
|
55
53
|
}
|
|
56
54
|
get el() { return index.getElement(this); }
|
|
57
55
|
};
|
|
@@ -79,13 +77,13 @@ const AppContainer = class {
|
|
|
79
77
|
this.visible = undefined;
|
|
80
78
|
this.audio = undefined;
|
|
81
79
|
this.onTouch = undefined;
|
|
82
|
-
this.
|
|
83
|
-
this.
|
|
84
|
-
this.onMatch = undefined;
|
|
85
|
-
this.onWrong = undefined;
|
|
86
|
-
this.onIncorrectTouch = undefined;
|
|
80
|
+
this.onInCorrect = undefined;
|
|
81
|
+
this.onCorrect = undefined;
|
|
87
82
|
this.onEntry = undefined;
|
|
88
83
|
this.canplay = true;
|
|
84
|
+
this.showCheck = undefined;
|
|
85
|
+
this.isContinueOnCorrect = undefined;
|
|
86
|
+
this.baseUrl = '';
|
|
89
87
|
}
|
|
90
88
|
/**
|
|
91
89
|
* Scales the container based on the window or screen size, maintaining the aspect ratio.
|
|
@@ -133,13 +131,13 @@ const AppContainer = class {
|
|
|
133
131
|
transform: 'translate(-50%, -50%)', // Centering the container
|
|
134
132
|
};
|
|
135
133
|
console.log('🚀 ~ AppContainer ~ canplay:', this.canplay);
|
|
136
|
-
return (index.h(index.Host, { key: '
|
|
134
|
+
return (index.h(index.Host, { key: 'e4748f56d1520a0418d3378c695f5968e9d7c53e', id: "container", tabindex: 0, class: "container", objective: this.objective, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, showCheck: this.showCheck, isContinueOnCorrect: this.isContinueOnCorrect }, index.h("slot", { key: '2ea749cec0f51f1ebcd0b810700de21eaf138a7d' })));
|
|
137
135
|
}
|
|
138
136
|
get el() { return index.getElement(this); }
|
|
139
137
|
};
|
|
140
138
|
AppContainer.style = AppContainerStyle0;
|
|
141
139
|
|
|
142
|
-
const indexCss = "@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); body{overflow:hidden}";
|
|
140
|
+
const indexCss = "@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); body{overflow:hidden}.disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}";
|
|
143
141
|
const AppHomeStyle0 = indexCss;
|
|
144
142
|
|
|
145
143
|
const animationCss = "@keyframes rightToPlace{from{transform:translateX(2000px)}to{left:0}}@keyframes placeToLeft{from{}to{transform:translateX(-2000px)}}@keyframes shake{0%{transform:translateX(0);color:red;outline:4px solid red}10%{transform:translateX(-5px);color:red;outline:4px solid red}20%{transform:translateX(5px);color:red;outline:4px solid red}30%{transform:translateX(-5px);color:red;outline:4px solid red}40%{transform:translateX(5px);color:red;outline:4px solid red}50%{transform:translateX(-5px);color:red;outline:4px solid red}60%{transform:translateX(5px);color:red;outline:4px solid red}70%{transform:translateX(-5px);color:red;outline:4px solid red}80%{transform:translateX(5px);color:red;outline:4px solid red}90%{transform:translateX(-5px);color:red;outline:4px solid red}100%{transform:translateX(0);color:red;outline:4px solid red}}@keyframes fallAndBounce{0%{transform:translateY(-1000px)}25%{transform:translateY(0px)}50%{transform:translateY(-200px)}75%{transform:translateY(0)}90%{transform:translateY(-100px)}100%{transform:translateY(0)}}";
|
|
@@ -171,11 +169,12 @@ const AppHome = class {
|
|
|
171
169
|
this.currentContainerIndex++;
|
|
172
170
|
window.dispatchEvent(new CustomEvent('activityChange', { detail: { index: this.currentContainerIndex } }));
|
|
173
171
|
}
|
|
174
|
-
else {
|
|
172
|
+
else if (this.currentContainerIndex >= this.containers.length - 1) {
|
|
175
173
|
// Show the completion message if all containers have been viewed
|
|
176
174
|
this.showCompletionMessage = true;
|
|
177
175
|
const event = new CustomEvent('gameCompleted');
|
|
178
176
|
window.dispatchEvent(event);
|
|
177
|
+
this.currentContainerIndex = 0;
|
|
179
178
|
// Hide the completion message after 3 seconds
|
|
180
179
|
setTimeout(() => {
|
|
181
180
|
this.showCompletionMessage = false;
|
|
@@ -187,6 +186,7 @@ const AppHome = class {
|
|
|
187
186
|
this.xmlData = undefined;
|
|
188
187
|
this.initialIndex = 0;
|
|
189
188
|
this.canplay = true;
|
|
189
|
+
this.baseUrl = '';
|
|
190
190
|
this.currentContainerIndex = this.initialIndex;
|
|
191
191
|
this.showCompletionMessage = false;
|
|
192
192
|
this.containers = [];
|
|
@@ -263,7 +263,7 @@ const AppHome = class {
|
|
|
263
263
|
.filter(Boolean);
|
|
264
264
|
// Map XML tags to Stencil components
|
|
265
265
|
const componentMapping = {
|
|
266
|
-
'app-container': (index.h("app-container", Object.assign({}, props, { canplay: this.canplay }), children)),
|
|
266
|
+
'app-container': (index.h("app-container", Object.assign({}, props, { canplay: this.canplay, baseUrl: this.baseUrl }), children)),
|
|
267
267
|
'app-col': index.h("app-col", Object.assign({}, props), children),
|
|
268
268
|
'app-trace': index.h("app-trace", Object.assign({}, props), children),
|
|
269
269
|
'app-image': index.h("app-image", Object.assign({}, props), children),
|
|
@@ -322,7 +322,7 @@ const AppHome = class {
|
|
|
322
322
|
// If no XML data is provided, prompt the user to provide it
|
|
323
323
|
return index.h("div", null, "Please provide XML data.");
|
|
324
324
|
}
|
|
325
|
-
return (index.h(
|
|
325
|
+
return (index.h(index.Host, { index: this.currentContainerIndex, totalIndex: this.containers.length }, index.h("div", { key: this.currentContainerIndex }, this.containers[this.currentContainerIndex]), this.renderDots(), this.showCompletionMessage && index.h("div", { class: "snackbar" }, "All containers have been displayed!")));
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
328
|
AppHome.style = AppHomeStyle0 + (AppHomeStyle1 + AppHomeStyle2);
|
|
@@ -347,11 +347,9 @@ const AppImage = class {
|
|
|
347
347
|
this.visible = undefined;
|
|
348
348
|
this.audio = undefined;
|
|
349
349
|
this.onTouch = undefined;
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
352
|
-
this.onCorrectMatch = undefined;
|
|
350
|
+
this.onInCorrect = undefined;
|
|
351
|
+
this.onCorrect = undefined;
|
|
353
352
|
this.onMatch = undefined;
|
|
354
|
-
this.onWrong = undefined;
|
|
355
353
|
this.onEntry = undefined;
|
|
356
354
|
this.src = undefined;
|
|
357
355
|
}
|
|
@@ -375,7 +373,7 @@ const AppImage = class {
|
|
|
375
373
|
alignItems: 'center', // Vertically center the image
|
|
376
374
|
justifyContent: 'center', // Horizontally center the image
|
|
377
375
|
};
|
|
378
|
-
return (index.h(index.Host, { key: '
|
|
376
|
+
return (index.h(index.Host, { key: 'ee933f90204e8d435ead5226d5d6f5ad907a1b4a', type: this.type, tabindex: this.tabIndex, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, value: this.value, audio: this.audio, onTouch: this.onTouch, onMatch: this.onMatch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, index.h("img", { key: 'f8df33300a01f27a6aaf61763677708b6234faf8', class: "image", src: utils.convertUrlToRelative(this.src), alt: "", style: style })));
|
|
379
377
|
}
|
|
380
378
|
get el() { return index.getElement(this); }
|
|
381
379
|
};
|
|
@@ -402,11 +400,9 @@ const AppPos = class {
|
|
|
402
400
|
this.visible = undefined;
|
|
403
401
|
this.audio = undefined;
|
|
404
402
|
this.onTouch = undefined;
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.onCorrectMatch = undefined;
|
|
403
|
+
this.onInCorrect = undefined;
|
|
404
|
+
this.onCorrect = undefined;
|
|
408
405
|
this.onMatch = undefined;
|
|
409
|
-
this.onWrong = undefined;
|
|
410
406
|
this.onEntry = undefined;
|
|
411
407
|
}
|
|
412
408
|
/**
|
|
@@ -427,7 +423,7 @@ const AppPos = class {
|
|
|
427
423
|
zIndex: this.z,
|
|
428
424
|
display: this.visible ? 'block' : 'none', // Toggle visibility
|
|
429
425
|
};
|
|
430
|
-
return (index.h(index.Host, { key: '
|
|
426
|
+
return (index.h(index.Host, { key: '72c646c495d9a645e378fadd35fa1a277a97707a', id: this.id, class: "pos", type: this.type, tabindex: this.tabIndex, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, value: this.value, audio: this.audio, onTouch: this.onTouch, onMatch: this.onMatch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, index.h("slot", { key: '46f2d0c9369ac51e6224d0826ef279416b9d851f' })));
|
|
431
427
|
}
|
|
432
428
|
get el() { return index.getElement(this); }
|
|
433
429
|
};
|
|
@@ -454,11 +450,9 @@ const AppRandom = class {
|
|
|
454
450
|
this.visible = undefined;
|
|
455
451
|
this.audio = undefined;
|
|
456
452
|
this.onTouch = undefined;
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
459
|
-
this.onCorrectMatch = undefined;
|
|
453
|
+
this.onInCorrect = undefined;
|
|
454
|
+
this.onCorrect = undefined;
|
|
460
455
|
this.onMatch = undefined;
|
|
461
|
-
this.onWrong = undefined;
|
|
462
456
|
this.onEntry = undefined;
|
|
463
457
|
}
|
|
464
458
|
/**
|
|
@@ -487,7 +481,7 @@ const AppRandom = class {
|
|
|
487
481
|
zIndex: this.z,
|
|
488
482
|
backgroundColor: this.bgColor,
|
|
489
483
|
};
|
|
490
|
-
return (index.h(index.Host, { key: '
|
|
484
|
+
return (index.h(index.Host, { key: 'f2dfffd55f24f7f2de14105682be9c0cfe8fa8ad', class: "random", type: this.type, tabindex: this.tabIndex, value: this.value, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onMatch: this.onMatch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, index.h("slot", { key: '433ce405177d74dca078e6f5e01608567ad4af68' })));
|
|
491
485
|
}
|
|
492
486
|
get el() { return index.getElement(this); }
|
|
493
487
|
};
|
|
@@ -499,6 +493,7 @@ const AppRoot = class {
|
|
|
499
493
|
this.xmlPath = undefined;
|
|
500
494
|
this.initialIndex = 0;
|
|
501
495
|
this.canplay = true;
|
|
496
|
+
this.baseUrl = '';
|
|
502
497
|
this.xmlData = undefined;
|
|
503
498
|
}
|
|
504
499
|
/**
|
|
@@ -506,16 +501,21 @@ const AppRoot = class {
|
|
|
506
501
|
* It fetches the XML data from the specified path or URL and sets it to the component's state.
|
|
507
502
|
*/
|
|
508
503
|
async componentWillLoad() {
|
|
504
|
+
var _a;
|
|
509
505
|
// Validate the xmlPath prop
|
|
510
|
-
if (!this.xmlPath) {
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
}
|
|
506
|
+
// if (!this.xmlPath) {
|
|
507
|
+
// console.error('XML path is not provided.');
|
|
508
|
+
// return;
|
|
509
|
+
// }
|
|
510
|
+
const xmlPath = (_a = this.xmlPath) !== null && _a !== void 0 ? _a : this.baseUrl + '/index.xml';
|
|
511
|
+
console.log('🚀 ~ AppRoot ~ componentWillLoad ~ this.baseUrl:', this.baseUrl);
|
|
512
|
+
console.log('🚀 ~ AppRoot ~ componentWillLoad ~ this.xmlPath:', this.xmlPath);
|
|
513
|
+
console.log('🚀 ~ AppRoot ~ componentWillLoad ~ xmlPath:', xmlPath);
|
|
514
514
|
// Fetch the XML data
|
|
515
515
|
try {
|
|
516
|
-
const resolvedPath =
|
|
517
|
-
?
|
|
518
|
-
: index.getAssetPath(
|
|
516
|
+
const resolvedPath = xmlPath.startsWith('http')
|
|
517
|
+
? xmlPath // Use the provided URL if it's an HTTP/HTTPS link
|
|
518
|
+
: index.getAssetPath(xmlPath); // Otherwise, resolve it as an asset path
|
|
519
519
|
const response = await fetch(resolvedPath);
|
|
520
520
|
if (!response.ok) {
|
|
521
521
|
throw new Error(`Failed to fetch XML data: ${response.statusText}`);
|
|
@@ -539,7 +539,7 @@ const AppRoot = class {
|
|
|
539
539
|
return index.h("div", null, "Error loading XML data. Please check the path or URL.");
|
|
540
540
|
}
|
|
541
541
|
// Once the XML data is loaded, pass it to the `app-home` component
|
|
542
|
-
return index.h("app-home", { initialIndex: this.initialIndex, canplay: this.canplay, xmlData: this.xmlData });
|
|
542
|
+
return index.h("app-home", { initialIndex: this.initialIndex, canplay: this.canplay, xmlData: this.xmlData, baseUrl: this.baseUrl });
|
|
543
543
|
}
|
|
544
544
|
static get assetsDirs() { return ["assets"]; }
|
|
545
545
|
};
|
|
@@ -564,11 +564,9 @@ const AppRow = class {
|
|
|
564
564
|
this.visible = undefined;
|
|
565
565
|
this.audio = undefined;
|
|
566
566
|
this.onTouch = undefined;
|
|
567
|
-
this.
|
|
568
|
-
this.
|
|
569
|
-
this.onCorrectMatch = undefined;
|
|
567
|
+
this.onInCorrect = undefined;
|
|
568
|
+
this.onCorrect = undefined;
|
|
570
569
|
this.onMatch = undefined;
|
|
571
|
-
this.onWrong = undefined;
|
|
572
570
|
this.onEntry = undefined;
|
|
573
571
|
}
|
|
574
572
|
/**
|
|
@@ -589,7 +587,7 @@ const AppRow = class {
|
|
|
589
587
|
zIndex: this.z,
|
|
590
588
|
backgroundColor: this.bgColor, // Apply background color if provided
|
|
591
589
|
};
|
|
592
|
-
return (index.h(index.Host, { key: '
|
|
590
|
+
return (index.h(index.Host, { key: '41c3b5c1306523da20944f30e3a801b36cbac5d9', class: "row", type: this.type, tabindex: this.tabIndex, value: this.value, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onMatch: this.onMatch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, index.h("slot", { key: '52aaca9eda94648083d734f6eab815f85e5bd32c' })));
|
|
593
591
|
}
|
|
594
592
|
get el() { return index.getElement(this); }
|
|
595
593
|
};
|
|
@@ -617,11 +615,9 @@ const AppShape = class {
|
|
|
617
615
|
this.visible = undefined;
|
|
618
616
|
this.audio = undefined;
|
|
619
617
|
this.onTouch = undefined;
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.onCorrectMatch = undefined;
|
|
618
|
+
this.onInCorrect = undefined;
|
|
619
|
+
this.onCorrect = undefined;
|
|
623
620
|
this.onMatch = undefined;
|
|
624
|
-
this.onWrong = undefined;
|
|
625
621
|
this.onEntry = undefined;
|
|
626
622
|
}
|
|
627
623
|
/**
|
|
@@ -642,7 +638,7 @@ const AppShape = class {
|
|
|
642
638
|
zIndex: this.z,
|
|
643
639
|
backgroundColor: this.shapeType !== 'polygon' ? this.bgColor : 'transparent', // Apply background only if not a polygon
|
|
644
640
|
};
|
|
645
|
-
return (index.h(index.Host, { key: '
|
|
641
|
+
return (index.h(index.Host, { key: '895f28cbf17ef12295a38ec7d18373f98761b9f1', class: `shape ${this.shapeType}`, value: this.value, type: this.type, tabindex: this.tabIndex, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onMatch: this.onMatch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }));
|
|
646
642
|
}
|
|
647
643
|
get el() { return index.getElement(this); }
|
|
648
644
|
};
|
|
@@ -674,11 +670,9 @@ const AppText = class {
|
|
|
674
670
|
this.visible = undefined;
|
|
675
671
|
this.audio = undefined;
|
|
676
672
|
this.onTouch = undefined;
|
|
677
|
-
this.
|
|
678
|
-
this.
|
|
679
|
-
this.onCorrectMatch = undefined;
|
|
673
|
+
this.onInCorrect = undefined;
|
|
674
|
+
this.onCorrect = undefined;
|
|
680
675
|
this.onMatch = undefined;
|
|
681
|
-
this.onWrong = undefined;
|
|
682
676
|
this.onEntry = undefined;
|
|
683
677
|
}
|
|
684
678
|
/**
|
|
@@ -702,7 +696,7 @@ const AppText = class {
|
|
|
702
696
|
color: this.fontColor,
|
|
703
697
|
display: this.visible ? 'flex' : 'none', // Show or hide based on visibility prop
|
|
704
698
|
};
|
|
705
|
-
return (index.h(index.Host, { key: '
|
|
699
|
+
return (index.h(index.Host, { key: 'e1f55600afa34e7bf93f8c89b22de9b6868953d6', class: "text", value: this.value, type: this.type, tabindex: this.tabIndex, audio: this.audio, onTouch: this.onTouch, onMatch: this.onMatch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, id: this.id, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden }, this.string));
|
|
706
700
|
}
|
|
707
701
|
get el() { return index.getElement(this); }
|
|
708
702
|
};
|
|
@@ -1211,11 +1205,9 @@ const AppWrap = class {
|
|
|
1211
1205
|
this.visible = undefined;
|
|
1212
1206
|
this.audio = undefined;
|
|
1213
1207
|
this.onTouch = undefined;
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1216
|
-
this.onCorrectMatch = undefined;
|
|
1208
|
+
this.onInCorrect = undefined;
|
|
1209
|
+
this.onCorrect = undefined;
|
|
1217
1210
|
this.onMatch = undefined;
|
|
1218
|
-
this.onWrong = undefined;
|
|
1219
1211
|
this.onEntry = undefined;
|
|
1220
1212
|
}
|
|
1221
1213
|
/**
|
|
@@ -1236,7 +1228,7 @@ const AppWrap = class {
|
|
|
1236
1228
|
zIndex: this.z,
|
|
1237
1229
|
backgroundColor: this.bgColor,
|
|
1238
1230
|
};
|
|
1239
|
-
return (index.h(index.Host, { key: '
|
|
1231
|
+
return (index.h(index.Host, { key: 'e3a8cad8af5c14362bd1db98c191ca8738058fd2', class: "wrap", value: this.value, type: this.type, tabindex: this.tabIndex, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onMatch: this.onMatch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, index.h("slot", { key: '96869c0417ecf29ec6fc9f7bdbbf1b611e302687' })));
|
|
1240
1232
|
}
|
|
1241
1233
|
get el() { return index.getElement(this); }
|
|
1242
1234
|
};
|