lido-player 0.0.2-alpha-24 → 0.0.2-alpha-25
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/index.cjs.js +1 -1
- package/dist/cjs/lido-avatar_18.cjs.entry.js +24 -16
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-384577d3.js → utils-98308657.js} +44 -26
- package/dist/collection/components/keyboard/lido-keyboard.js +10 -12
- package/dist/collection/components/trace/lido-trace.js +15 -4
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +1 -1
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +1 -1
- package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +78 -0
- package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +113 -40
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +85 -0
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +62 -0
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +92 -0
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +10 -15
- package/dist/collection/utils/utils.js +10 -4
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +36 -24
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-cell.js +1 -1
- package/dist/components/lido-col.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-flash-card.js +1 -1
- package/dist/components/lido-float.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-image.js +1 -1
- package/dist/components/lido-keyboard.js +1 -1
- package/dist/components/lido-pos.js +1 -1
- package/dist/components/lido-random.js +1 -1
- package/dist/components/lido-root.js +18 -18
- package/dist/components/lido-row.js +1 -1
- package/dist/components/lido-shape.js +1 -1
- package/dist/components/lido-slide-fill.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/lido-trace.js +1 -1
- package/dist/components/lido-wrap.js +1 -1
- package/dist/components/{p-2ed4c1fe.js → p-0c830d09.js} +1 -1
- package/dist/components/{p-25b7344e.js → p-0e2ac960.js} +1 -1
- package/dist/components/{p-2970eb2e.js → p-1b4be1be.js} +17 -17
- package/dist/components/{p-65be351b.js → p-1f78f800.js} +1 -1
- package/dist/components/{p-1160f805.js → p-28575a9d.js} +1 -1
- package/dist/components/{p-ef95f88b.js → p-2a1e9690.js} +1 -1
- package/dist/components/{p-c00aa23f.js → p-398721b6.js} +1 -1
- package/dist/components/{p-86e2f358.js → p-4727a755.js} +1 -1
- package/dist/components/{p-4f00cf95.js → p-4ea20e5d.js} +1 -1
- package/dist/components/{p-64e30406.js → p-51d35e85.js} +16 -5
- package/dist/components/{p-9bea49e2.js → p-8bfd0fb9.js} +1 -1
- package/dist/components/{p-8cf8a69f.js → p-9095d0dd.js} +1 -1
- package/dist/components/{p-754ab995.js → p-a41c13e5.js} +1 -1
- package/dist/components/{p-c1f5c790.js → p-b06fb0b5.js} +44 -26
- package/dist/components/{p-730c110a.js → p-b1c8b21c.js} +11 -13
- package/dist/components/{p-b8e74ec7.js → p-b271516e.js} +1 -1
- package/dist/components/{p-3888d370.js → p-db40a466.js} +1 -1
- package/dist/components/{p-c4c5be5f.js → p-eda1bf4d.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_18.entry.js +24 -16
- package/dist/esm/lido-player.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-c55751f2.js → utils-a61fc607.js} +44 -26
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/{p-104bea08.entry.js → p-0962645a.entry.js} +1 -1
- package/dist/lido-player/{p-9bb5489f.js → p-2a1f5285.js} +2 -2
- package/dist/types/components/trace/lido-trace.d.ts +6 -1
- package/dist/types/stories/Templates/jumpSentence/jumpSentence.stories.d.ts +4 -0
- package/dist/types/stories/Templates/quizLiteracy/quizLiteracy.stories.d.ts +4 -0
- package/dist/types/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.d.ts +4 -0
- package/dist/types/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.d.ts +4 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fe562525.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-98308657.js');
|
|
7
7
|
|
|
8
8
|
var rive = {exports: {}};
|
|
9
9
|
|
|
@@ -10261,13 +10261,15 @@ const LidoKeyboard = class {
|
|
|
10261
10261
|
this.onEntry = undefined;
|
|
10262
10262
|
this.type = undefined;
|
|
10263
10263
|
this.keyboardInput = false;
|
|
10264
|
-
this.columns =
|
|
10264
|
+
this.columns = '10';
|
|
10265
10265
|
this.letterLength = undefined;
|
|
10266
10266
|
this.numberOfClick = 0;
|
|
10267
10267
|
this.inputString = '';
|
|
10268
10268
|
this.style = {};
|
|
10269
10269
|
}
|
|
10270
10270
|
async inputValidation(e) {
|
|
10271
|
+
if (this.type !== 'click')
|
|
10272
|
+
return;
|
|
10271
10273
|
let selcetedValue = JSON.parse(localStorage.getItem(utils.SelectedValuesKey)) || '';
|
|
10272
10274
|
selcetedValue = this.inputString;
|
|
10273
10275
|
localStorage.setItem(utils.SelectedValuesKey, JSON.stringify(selcetedValue));
|
|
@@ -10280,18 +10282,14 @@ const LidoKeyboard = class {
|
|
|
10280
10282
|
if (filteredElement) {
|
|
10281
10283
|
const bodyRect = document.body.getBoundingClientRect();
|
|
10282
10284
|
const elemRect = filteredElement.getBoundingClientRect();
|
|
10283
|
-
isOverlapping =
|
|
10284
|
-
elemRect.left < bodyRect.right &&
|
|
10285
|
-
elemRect.right > bodyRect.left &&
|
|
10286
|
-
elemRect.top < bodyRect.bottom &&
|
|
10287
|
-
elemRect.bottom > bodyRect.top;
|
|
10285
|
+
isOverlapping = elemRect.left < bodyRect.right && elemRect.right > bodyRect.left && elemRect.top < bodyRect.bottom && elemRect.bottom > bodyRect.top;
|
|
10288
10286
|
}
|
|
10289
10287
|
if (isOverlapping) {
|
|
10290
10288
|
filteredElement.style.animation = 'none';
|
|
10291
10289
|
this.numberOfClick++;
|
|
10292
10290
|
if (this.numberOfClick === this.letterLength) {
|
|
10293
10291
|
const onCorrrect = container.getAttribute('onCorrect');
|
|
10294
|
-
container.style.pointerEvents =
|
|
10292
|
+
container.style.pointerEvents = 'none';
|
|
10295
10293
|
await utils.executeActions(onCorrrect, this.el);
|
|
10296
10294
|
utils.triggerNextContainer();
|
|
10297
10295
|
}
|
|
@@ -10347,17 +10345,17 @@ const LidoKeyboard = class {
|
|
|
10347
10345
|
padding: utils.parseProp(this.padding, orientation),
|
|
10348
10346
|
borderRadius: utils.parseProp(this.borderRadius, orientation),
|
|
10349
10347
|
columns: utils.parseProp(`${this.columns}`, orientation),
|
|
10350
|
-
gap: utils.parseProp(this.gap, orientation)
|
|
10348
|
+
gap: utils.parseProp(this.gap, orientation),
|
|
10351
10349
|
};
|
|
10352
10350
|
}
|
|
10353
10351
|
render() {
|
|
10354
10352
|
const keysArray = this.keys.split(',').map(k => k.trim());
|
|
10355
10353
|
const container = document.getElementById(utils.LidoContainer);
|
|
10356
10354
|
const showCheck = container.getAttribute('show-check') === 'true';
|
|
10357
|
-
return (index.h(index.Host, { key: '
|
|
10355
|
+
return (index.h(index.Host, { key: 'de7d6c8eb01a90851d03d8e3a90c2dda2c437b83', class: "lido-keyboard", style: { width: this.style.width, height: this.style.height, position: 'relative', margin: this.style.margin, zIndex: this.z } }, this.keyboardInput && (index.h("div", { key: '2755d632b00ac4bd9685317c61a6fa9af2972973', class: "input-area" }, index.h("input", { key: '266a08add13f544c583d424fd1ab31911531f65f', type: "text", value: this.inputString, class: "input-area", readonly: true, onInput: (e) => (this.inputString = e.target.value) }), index.h("lido-text", { key: '81ca8c391f5bd9056e0a6c9030d0e975a493f86f', visible: showCheck ? 'true' : 'false', string: "<<", "bg-color": "black", "font-color": "white", "border-radius": "20px", "font-size": "30px", width: "100px", height: "70px", type: "click", onClick: () => {
|
|
10358
10356
|
this.inputString = this.inputString.slice(0, -1);
|
|
10359
10357
|
this.inputValidation(event);
|
|
10360
|
-
} }), index.h("lido-text", { key: '
|
|
10358
|
+
} }), index.h("lido-text", { key: '721a7b54a4da58c3d68989df08f24a6a41168523', visible: showCheck ? 'true' : 'false', id: "lido-checkButton", string: "Enter", "bg-color": "green", "font-color": "white", "border-radius": "20px", "font-size": "30px", width: "150px", height: "70px", type: "click" }))), this.letterLength && (index.h("lido-text", { key: '7b87a8810282fdb4326794042118016edc992dd2', visible: "true", string: `${this.numberOfClick}/${this.letterLength}`, "font-size": "60px", "font-color": "white", onEntry: "this.position='absolute'; this.right='0'; this.fontWeight='800';", x: "unset" })), index.h("div", { key: '80796fa601b359e235a885fdf9e233c3df941605', class: "keyboard-wrapper", style: {
|
|
10361
10359
|
display: 'flex',
|
|
10362
10360
|
flexWrap: 'wrap',
|
|
10363
10361
|
justifyContent: 'center',
|
|
@@ -10371,7 +10369,7 @@ const LidoKeyboard = class {
|
|
|
10371
10369
|
let string = label === 'Space' ? ' ' : label;
|
|
10372
10370
|
return (index.h("lido-text", { id: 'key-button-' + index$1, style: {
|
|
10373
10371
|
flex: `0 0 calc(${100 / parseInt(this.style.columns)}% - ${this.style.gap})`,
|
|
10374
|
-
}, visible: "true", "font-size": this.style.fontSize, "font-color": this.fontColor, "font-family": this.fontFamily, "bg-color": this.bgColor, string: label, onEntry: this.onEntry, "border-radius": this.style.borderRadius, value: label, type: this.type, class: `key-button${isDisabled ? ' disabled' : ''}`, onClick: () => {
|
|
10372
|
+
}, visible: "true", "font-size": this.style.fontSize, "font-color": this.fontColor, "font-family": this.fontFamily, "bg-color": this.bgColor, string: label, onEntry: this.onEntry, "border-radius": this.style.borderRadius, value: label.toLowerCase(), type: this.type, class: `key-button${isDisabled ? ' disabled' : ''}`, onClick: () => {
|
|
10375
10373
|
this.inputString += string;
|
|
10376
10374
|
this.inputValidation(event);
|
|
10377
10375
|
} }));
|
|
@@ -11064,12 +11062,12 @@ const LidoTraceStyle0 = lidoTraceCss;
|
|
|
11064
11062
|
const LidoTrace = class {
|
|
11065
11063
|
constructor(hostRef) {
|
|
11066
11064
|
index.registerInstance(this, hostRef);
|
|
11067
|
-
this.moving = false;
|
|
11068
11065
|
this.showSpeakIcon = false;
|
|
11069
11066
|
this.id = '';
|
|
11070
11067
|
this.svgSource = '';
|
|
11071
11068
|
this.svgUrls = [];
|
|
11072
11069
|
this.currentSvgIndex = 0;
|
|
11070
|
+
this.moving = false;
|
|
11073
11071
|
this.value = '';
|
|
11074
11072
|
this.height = 'auto';
|
|
11075
11073
|
this.width = 'auto';
|
|
@@ -11118,7 +11116,13 @@ const LidoTrace = class {
|
|
|
11118
11116
|
lastPointerPos: null,
|
|
11119
11117
|
};
|
|
11120
11118
|
const url = this.svgUrls[this.currentSvgIndex];
|
|
11119
|
+
console.log("Loading SVG from URL:", url);
|
|
11120
|
+
if (!url || url.trim() === '') {
|
|
11121
|
+
console.error("No SVG URL provided or index out of bounds.");
|
|
11122
|
+
return;
|
|
11123
|
+
}
|
|
11121
11124
|
await this.fetchSVG(url);
|
|
11125
|
+
console.log("SVG fetched successfully\n");
|
|
11122
11126
|
await this.loadAnotherSVG(state, true); // Load the first SVG
|
|
11123
11127
|
}
|
|
11124
11128
|
componentDidLoad() {
|
|
@@ -11129,12 +11133,14 @@ const LidoTrace = class {
|
|
|
11129
11133
|
window.addEventListener('resize', this.updateStyles.bind(this));
|
|
11130
11134
|
window.addEventListener('load', this.updateStyles.bind(this));
|
|
11131
11135
|
this.svgUrls = this.svgSource.split(';').map(s => s.trim());
|
|
11136
|
+
console.log("svgUrls", this.svgUrls);
|
|
11132
11137
|
this.currentSvgIndex = 0;
|
|
11133
|
-
this.
|
|
11138
|
+
console.log("curentSvgIndex", this.currentSvgIndex);
|
|
11134
11139
|
if (this.showSpeakIcon) {
|
|
11135
11140
|
utils.speakIcon(this.el);
|
|
11136
11141
|
this.el.append(utils.speakIcon(this.el));
|
|
11137
11142
|
}
|
|
11143
|
+
this.initializeSVG();
|
|
11138
11144
|
}
|
|
11139
11145
|
disconnectedCallback() {
|
|
11140
11146
|
window.removeEventListener('resize', this.updateStyles.bind(this));
|
|
@@ -11191,6 +11197,7 @@ const LidoTrace = class {
|
|
|
11191
11197
|
}
|
|
11192
11198
|
// Fetch the SVG file asynchronously
|
|
11193
11199
|
async fetchSVG(url) {
|
|
11200
|
+
console.log(`Fetching SVG from: ${url}`);
|
|
11194
11201
|
const response = await fetch(url);
|
|
11195
11202
|
if (!response.ok) {
|
|
11196
11203
|
throw new Error(`Failed to fetch SVG (${url}): ${response.statusText}`);
|
|
@@ -11507,6 +11514,7 @@ const LidoTrace = class {
|
|
|
11507
11514
|
if (this.animationTrace) {
|
|
11508
11515
|
await this.playTraceAnimation();
|
|
11509
11516
|
}
|
|
11517
|
+
console.log(`Moving to next container after SVG index: ${this.currentSvgIndex}`);
|
|
11510
11518
|
if (this.currentSvgIndex < this.svgUrls.length - 1) {
|
|
11511
11519
|
this.currentSvgIndex++;
|
|
11512
11520
|
await this.initializeSVG();
|
|
@@ -11576,7 +11584,7 @@ const LidoTrace = class {
|
|
|
11576
11584
|
if (state.svg) {
|
|
11577
11585
|
this.cleanupPreviousSVG(state);
|
|
11578
11586
|
}
|
|
11579
|
-
const svgText = await this.fetchSVG(utils.convertUrlToRelative(this.svgSource));
|
|
11587
|
+
const svgText = await this.fetchSVG(utils.convertUrlToRelative(this.svgSource.split(';').map(s => s.trim())[this.currentSvgIndex]));
|
|
11580
11588
|
this.insertSVG(svgText);
|
|
11581
11589
|
state.svg = this.getSVGElement();
|
|
11582
11590
|
if (this.mode === utils.TraceMode.BlindTracing || this.mode === utils.TraceMode.BlindFreeTrace) {
|
|
@@ -11696,7 +11704,7 @@ const LidoTrace = class {
|
|
|
11696
11704
|
};
|
|
11697
11705
|
}
|
|
11698
11706
|
render() {
|
|
11699
|
-
return (index.h(index.Host, { key: '
|
|
11707
|
+
return (index.h(index.Host, { key: 'ee0e1841a0d3086d453bd29568c53169456a75ca', class: "lido-trace", id: this.id, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, tabindex: this.tabIndex }, index.h("div", { key: 'd3e0ac9c6a51bf307d57b3bba3cddfb02fdf7fc1', style: this.style, id: "lido-svgContainer" })));
|
|
11700
11708
|
}
|
|
11701
11709
|
static get assetsDirs() { return ["svg", "images"]; }
|
|
11702
11710
|
get el() { return index.getElement(this); }
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["lido-avatar_18.cjs",[[0,"lido-root",{"xmlPath":[1,"xml-path"],"initialIndex":[2,"initial-index"],"margin":[1],"canplay":[4],"baseUrl":[1,"base-url"],"xmlData":[32]}],[0,"lido-home",{"xmlData":[1,"xml-data"],"initialIndex":[2,"initial-index"],"canplay":[4],"baseUrl":[1,"base-url"],"height":[1],"currentContainerIndex":[32],"exitFlag":[32],"containers":[32],"showDotsandbtn":[32]},null,{"xmlData":["onXmlDataChange"]}],[0,"lido-keyboard",{"keys":[1],"width":[1],"height":[1],"fontSize":[1,"font-size"],"fontColor":[1,"font-color"],"fontFamily":[1,"font-family"],"gap":[1],"bgColor":[1,"bg-color"],"borderRadius":[1,"border-radius"],"y":[1],"x":[1],"z":[1],"margin":[1],"padding":[1],"visible":[1],"onEntry":[1,"on-entry"],"type":[1],"keyboardInput":[4,"keyboard-input"],"columns":[1],"letterLength":[2,"letter-length"],"numberOfClick":[32],"inputString":[32],"style":[32]}],[0,"lido-avatar",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"src":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"delayVisible":[1,"delay-visible"]}],[4,"lido-cell",{"showSpeakIcon":[4,"show-speak-icon"],"scrollbarWidth":[1,"scrollbar-width"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"gap":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[1],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"layout":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"padding":[1],"alignItems":[1,"align-items"],"borderRadius":[1,"border-radius"],"flexDirection":[1,"flex-direction"],"delayVisible":[1,"delay-visible"],"style":[32]}],[4,"lido-col",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"direction":[1],"borderImage":[1,"border-image"],"boxShadow":[1,"box-shadow"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[4,"lido-container",{"showDropBorder":[4,"show-drop-border"],"appendToDropOnCompletion":[4,"append-to-drop-on-completion"],"id":[1],"objective":[1],"customStyle":[1,"custom-style"],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"bgImage":[1,"bg-image"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"canplay":[4],"showCheck":[4,"show-check"],"isContinueOnCorrect":[4,"is-continue-on-correct"],"isAllowOnlyCorrect":[4,"is-allow-only-correct"],"baseUrl":[1,"base-url"],"margin":[1],"showPrevButton":[1,"show-prev-button"],"showNextButton":[1,"show-next-button"],"delayVisible":[1,"delay-visible"]}],[4,"lido-flash-card",{"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"direction":[1],"display":[1],"front":[8],"back":[8],"flipped":[1540],"margin":[1],"delayVisible":[1,"delay-visible"],"style":[32]},null,{"flipped":["handleFlippedChange"]}],[4,"lido-float",{"id":[1],"value":[1],"z":[1],"tabIndex":[2,"tab-index"],"visible":[4],"onEntry":[1,"on-entry"],"width":[1],"height":[1],"bgColor":[1,"bg-color"],"type":[1],"delayVisible":[1,"delay-visible"],"floatDirection":[1,"float-direction"],"style":[32]}],[0,"lido-image",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"src":[1],"isSlice":[1,"is-slice"],"sliceWidth":[1,"slice-width"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"padding":[1],"filter":[1],"borderRadius":[1,"border-radius"],"transform":[1],"delayVisible":[1,"delay-visible"],"style":[32]}],[4,"lido-pos",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[4,"lido-random",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1]}],[4,"lido-row",{"showSpeakIcon":[4,"show-speak-icon"],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"direction":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"display":[1],"margin":[1],"style":[32]}],[0,"lido-shape",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"shapeType":[1,"shape-type"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"delayVisible":[1,"delay-visible"]}],[0,"lido-slide-fill",{"id":[1],"width":[1],"height":[1],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"visible":[8],"margin":[1],"padding":[1],"borderRadius":[1,"border-radius"],"fill":[1],"numberType":[1,"number-type"],"min":[2],"division":[2],"max":[2],"slider":[4],"src":[1],"fillDirection":[1,"fill-direction"],"type":[1],"onEntry":[1,"on-entry"],"delayVisible":[1,"delay-visible"],"svgContent":[32],"style":[32]},null,{"src":["onSrcChange"],"fill":["onPropChange"],"division":["onPropChange"],"fillDirection":["onPropChange"],"numberType":["onPropChange"],"min":["onPropChange"],"max":["onPropChange"]}],[0,"lido-trace",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"svgSource":[1,"svg-source"],"value":[1],"height":[1],"width":[1],"x":[1],"y":[1],"z":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"tabIndex":[2,"tab-index"],"mode":[1],"fingerHintUrl":[1,"finger-hint-url"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"highlightTextId":[1,"highlight-text-id"],"animationTrace":[4,"animation-trace"],"delayVisible":[1,"delay-visible"],"svgUrls":[32],"currentSvgIndex":[32],"style":[32],"fileIndex":[32],"isDragging":[32],"activePointerId":[32],"idleTimer":[32],"fingerImg":[32]},null,{"svgSource":["initializeSVG"],"mode":["initializeSVG"]}],[4,"lido-wrap",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"flex":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[0,"lido-text",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"string":[1],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"fontColor":[1,"font-color"],"highlightWhileSpeaking":[4,"highlight-while-speaking"],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"borderImage":[1,"border-image"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"onEntry":[1,"on-entry"],"margin":[1],"padding":[1],"borderRadius":[1,"border-radius"],"spanType":[1,"span-type"],"delayVisible":[1,"delay-visible"],"style":[32]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["lido-avatar_18.cjs",[[0,"lido-root",{"xmlPath":[1,"xml-path"],"initialIndex":[2,"initial-index"],"margin":[1],"canplay":[4],"baseUrl":[1,"base-url"],"xmlData":[32]}],[0,"lido-home",{"xmlData":[1,"xml-data"],"initialIndex":[2,"initial-index"],"canplay":[4],"baseUrl":[1,"base-url"],"height":[1],"currentContainerIndex":[32],"exitFlag":[32],"containers":[32],"showDotsandbtn":[32]},null,{"xmlData":["onXmlDataChange"]}],[0,"lido-keyboard",{"keys":[1],"width":[1],"height":[1],"fontSize":[1,"font-size"],"fontColor":[1,"font-color"],"fontFamily":[1,"font-family"],"gap":[1],"bgColor":[1,"bg-color"],"borderRadius":[1,"border-radius"],"y":[1],"x":[1],"z":[1],"margin":[1],"padding":[1],"visible":[1],"onEntry":[1,"on-entry"],"type":[1],"keyboardInput":[4,"keyboard-input"],"columns":[1],"letterLength":[2,"letter-length"],"numberOfClick":[32],"inputString":[32],"style":[32]}],[0,"lido-avatar",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"src":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"delayVisible":[1,"delay-visible"]}],[4,"lido-cell",{"showSpeakIcon":[4,"show-speak-icon"],"scrollbarWidth":[1,"scrollbar-width"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"gap":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[1],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"layout":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"padding":[1],"alignItems":[1,"align-items"],"borderRadius":[1,"border-radius"],"flexDirection":[1,"flex-direction"],"delayVisible":[1,"delay-visible"],"style":[32]}],[4,"lido-col",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"direction":[1],"borderImage":[1,"border-image"],"boxShadow":[1,"box-shadow"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[4,"lido-container",{"showDropBorder":[4,"show-drop-border"],"appendToDropOnCompletion":[4,"append-to-drop-on-completion"],"id":[1],"objective":[1],"customStyle":[1,"custom-style"],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"bgImage":[1,"bg-image"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"canplay":[4],"showCheck":[4,"show-check"],"isContinueOnCorrect":[4,"is-continue-on-correct"],"isAllowOnlyCorrect":[4,"is-allow-only-correct"],"baseUrl":[1,"base-url"],"margin":[1],"showPrevButton":[1,"show-prev-button"],"showNextButton":[1,"show-next-button"],"delayVisible":[1,"delay-visible"]}],[4,"lido-flash-card",{"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"direction":[1],"display":[1],"front":[8],"back":[8],"flipped":[1540],"margin":[1],"delayVisible":[1,"delay-visible"],"style":[32]},null,{"flipped":["handleFlippedChange"]}],[4,"lido-float",{"id":[1],"value":[1],"z":[1],"tabIndex":[2,"tab-index"],"visible":[4],"onEntry":[1,"on-entry"],"width":[1],"height":[1],"bgColor":[1,"bg-color"],"type":[1],"delayVisible":[1,"delay-visible"],"floatDirection":[1,"float-direction"],"style":[32]}],[0,"lido-image",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"src":[1],"isSlice":[1,"is-slice"],"sliceWidth":[1,"slice-width"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"padding":[1],"filter":[1],"borderRadius":[1,"border-radius"],"transform":[1],"delayVisible":[1,"delay-visible"],"style":[32]}],[4,"lido-pos",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[4,"lido-random",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1]}],[4,"lido-row",{"showSpeakIcon":[4,"show-speak-icon"],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"direction":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"display":[1],"margin":[1],"style":[32]}],[0,"lido-shape",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"shapeType":[1,"shape-type"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"delayVisible":[1,"delay-visible"]}],[0,"lido-slide-fill",{"id":[1],"width":[1],"height":[1],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"visible":[8],"margin":[1],"padding":[1],"borderRadius":[1,"border-radius"],"fill":[1],"numberType":[1,"number-type"],"min":[2],"division":[2],"max":[2],"slider":[4],"src":[1],"fillDirection":[1,"fill-direction"],"type":[1],"onEntry":[1,"on-entry"],"delayVisible":[1,"delay-visible"],"svgContent":[32],"style":[32]},null,{"src":["onSrcChange"],"fill":["onPropChange"],"division":["onPropChange"],"fillDirection":["onPropChange"],"numberType":["onPropChange"],"min":["onPropChange"],"max":["onPropChange"]}],[0,"lido-trace",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"svgSource":[1,"svg-source"],"value":[1],"height":[1],"width":[1],"x":[1],"y":[1],"z":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"tabIndex":[2,"tab-index"],"mode":[1],"fingerHintUrl":[1,"finger-hint-url"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"highlightTextId":[1,"highlight-text-id"],"animationTrace":[4,"animation-trace"],"delayVisible":[1,"delay-visible"],"svgUrls":[32],"currentSvgIndex":[32],"moving":[32],"style":[32],"fileIndex":[32],"isDragging":[32],"activePointerId":[32],"idleTimer":[32],"fingerImg":[32]},null,{"svgSource":["initializeSVG"],"mode":["initializeSVG"]}],[4,"lido-wrap",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"flex":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[0,"lido-text",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"string":[1],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"fontColor":[1,"font-color"],"highlightWhileSpeaking":[4,"highlight-while-speaking"],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"borderImage":[1,"border-image"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"onEntry":[1,"on-entry"],"margin":[1],"padding":[1],"borderRadius":[1,"border-radius"],"spanType":[1,"span-type"],"delayVisible":[1,"delay-visible"],"style":[32]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["lido-avatar_18.cjs",[[0,"lido-root",{"xmlPath":[1,"xml-path"],"initialIndex":[2,"initial-index"],"margin":[1],"canplay":[4],"baseUrl":[1,"base-url"],"xmlData":[32]}],[0,"lido-home",{"xmlData":[1,"xml-data"],"initialIndex":[2,"initial-index"],"canplay":[4],"baseUrl":[1,"base-url"],"height":[1],"currentContainerIndex":[32],"exitFlag":[32],"containers":[32],"showDotsandbtn":[32]},null,{"xmlData":["onXmlDataChange"]}],[0,"lido-keyboard",{"keys":[1],"width":[1],"height":[1],"fontSize":[1,"font-size"],"fontColor":[1,"font-color"],"fontFamily":[1,"font-family"],"gap":[1],"bgColor":[1,"bg-color"],"borderRadius":[1,"border-radius"],"y":[1],"x":[1],"z":[1],"margin":[1],"padding":[1],"visible":[1],"onEntry":[1,"on-entry"],"type":[1],"keyboardInput":[4,"keyboard-input"],"columns":[1],"letterLength":[2,"letter-length"],"numberOfClick":[32],"inputString":[32],"style":[32]}],[0,"lido-avatar",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"src":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"delayVisible":[1,"delay-visible"]}],[4,"lido-cell",{"showSpeakIcon":[4,"show-speak-icon"],"scrollbarWidth":[1,"scrollbar-width"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"gap":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[1],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"layout":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"padding":[1],"alignItems":[1,"align-items"],"borderRadius":[1,"border-radius"],"flexDirection":[1,"flex-direction"],"delayVisible":[1,"delay-visible"],"style":[32]}],[4,"lido-col",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"direction":[1],"borderImage":[1,"border-image"],"boxShadow":[1,"box-shadow"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[4,"lido-container",{"showDropBorder":[4,"show-drop-border"],"appendToDropOnCompletion":[4,"append-to-drop-on-completion"],"id":[1],"objective":[1],"customStyle":[1,"custom-style"],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"bgImage":[1,"bg-image"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"canplay":[4],"showCheck":[4,"show-check"],"isContinueOnCorrect":[4,"is-continue-on-correct"],"isAllowOnlyCorrect":[4,"is-allow-only-correct"],"baseUrl":[1,"base-url"],"margin":[1],"showPrevButton":[1,"show-prev-button"],"showNextButton":[1,"show-next-button"],"delayVisible":[1,"delay-visible"]}],[4,"lido-flash-card",{"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"direction":[1],"display":[1],"front":[8],"back":[8],"flipped":[1540],"margin":[1],"delayVisible":[1,"delay-visible"],"style":[32]},null,{"flipped":["handleFlippedChange"]}],[4,"lido-float",{"id":[1],"value":[1],"z":[1],"tabIndex":[2,"tab-index"],"visible":[4],"onEntry":[1,"on-entry"],"width":[1],"height":[1],"bgColor":[1,"bg-color"],"type":[1],"delayVisible":[1,"delay-visible"],"floatDirection":[1,"float-direction"],"style":[32]}],[0,"lido-image",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"src":[1],"isSlice":[1,"is-slice"],"sliceWidth":[1,"slice-width"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"padding":[1],"filter":[1],"borderRadius":[1,"border-radius"],"transform":[1],"delayVisible":[1,"delay-visible"],"style":[32]}],[4,"lido-pos",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[4,"lido-random",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1]}],[4,"lido-row",{"showSpeakIcon":[4,"show-speak-icon"],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"direction":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"display":[1],"margin":[1],"style":[32]}],[0,"lido-shape",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"shapeType":[1,"shape-type"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"delayVisible":[1,"delay-visible"]}],[0,"lido-slide-fill",{"id":[1],"width":[1],"height":[1],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"visible":[8],"margin":[1],"padding":[1],"borderRadius":[1,"border-radius"],"fill":[1],"numberType":[1,"number-type"],"min":[2],"division":[2],"max":[2],"slider":[4],"src":[1],"fillDirection":[1,"fill-direction"],"type":[1],"onEntry":[1,"on-entry"],"delayVisible":[1,"delay-visible"],"svgContent":[32],"style":[32]},null,{"src":["onSrcChange"],"fill":["onPropChange"],"division":["onPropChange"],"fillDirection":["onPropChange"],"numberType":["onPropChange"],"min":["onPropChange"],"max":["onPropChange"]}],[0,"lido-trace",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"svgSource":[1,"svg-source"],"value":[1],"height":[1],"width":[1],"x":[1],"y":[1],"z":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"tabIndex":[2,"tab-index"],"mode":[1],"fingerHintUrl":[1,"finger-hint-url"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"highlightTextId":[1,"highlight-text-id"],"animationTrace":[4,"animation-trace"],"delayVisible":[1,"delay-visible"],"svgUrls":[32],"currentSvgIndex":[32],"style":[32],"fileIndex":[32],"isDragging":[32],"activePointerId":[32],"idleTimer":[32],"fingerImg":[32]},null,{"svgSource":["initializeSVG"],"mode":["initializeSVG"]}],[4,"lido-wrap",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"flex":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[0,"lido-text",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"string":[1],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"fontColor":[1,"font-color"],"highlightWhileSpeaking":[4,"highlight-while-speaking"],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"borderImage":[1,"border-image"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"onEntry":[1,"on-entry"],"margin":[1],"padding":[1],"borderRadius":[1,"border-radius"],"spanType":[1,"span-type"],"delayVisible":[1,"delay-visible"],"style":[32]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy([["lido-avatar_18.cjs",[[0,"lido-root",{"xmlPath":[1,"xml-path"],"initialIndex":[2,"initial-index"],"margin":[1],"canplay":[4],"baseUrl":[1,"base-url"],"xmlData":[32]}],[0,"lido-home",{"xmlData":[1,"xml-data"],"initialIndex":[2,"initial-index"],"canplay":[4],"baseUrl":[1,"base-url"],"height":[1],"currentContainerIndex":[32],"exitFlag":[32],"containers":[32],"showDotsandbtn":[32]},null,{"xmlData":["onXmlDataChange"]}],[0,"lido-keyboard",{"keys":[1],"width":[1],"height":[1],"fontSize":[1,"font-size"],"fontColor":[1,"font-color"],"fontFamily":[1,"font-family"],"gap":[1],"bgColor":[1,"bg-color"],"borderRadius":[1,"border-radius"],"y":[1],"x":[1],"z":[1],"margin":[1],"padding":[1],"visible":[1],"onEntry":[1,"on-entry"],"type":[1],"keyboardInput":[4,"keyboard-input"],"columns":[1],"letterLength":[2,"letter-length"],"numberOfClick":[32],"inputString":[32],"style":[32]}],[0,"lido-avatar",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"src":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"delayVisible":[1,"delay-visible"]}],[4,"lido-cell",{"showSpeakIcon":[4,"show-speak-icon"],"scrollbarWidth":[1,"scrollbar-width"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"gap":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[1],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"layout":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"padding":[1],"alignItems":[1,"align-items"],"borderRadius":[1,"border-radius"],"flexDirection":[1,"flex-direction"],"delayVisible":[1,"delay-visible"],"style":[32]}],[4,"lido-col",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"direction":[1],"borderImage":[1,"border-image"],"boxShadow":[1,"box-shadow"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[4,"lido-container",{"showDropBorder":[4,"show-drop-border"],"appendToDropOnCompletion":[4,"append-to-drop-on-completion"],"id":[1],"objective":[1],"customStyle":[1,"custom-style"],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"bgImage":[1,"bg-image"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"canplay":[4],"showCheck":[4,"show-check"],"isContinueOnCorrect":[4,"is-continue-on-correct"],"isAllowOnlyCorrect":[4,"is-allow-only-correct"],"baseUrl":[1,"base-url"],"margin":[1],"showPrevButton":[1,"show-prev-button"],"showNextButton":[1,"show-next-button"],"delayVisible":[1,"delay-visible"]}],[4,"lido-flash-card",{"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"direction":[1],"display":[1],"front":[8],"back":[8],"flipped":[1540],"margin":[1],"delayVisible":[1,"delay-visible"],"style":[32]},null,{"flipped":["handleFlippedChange"]}],[4,"lido-float",{"id":[1],"value":[1],"z":[1],"tabIndex":[2,"tab-index"],"visible":[4],"onEntry":[1,"on-entry"],"width":[1],"height":[1],"bgColor":[1,"bg-color"],"type":[1],"delayVisible":[1,"delay-visible"],"floatDirection":[1,"float-direction"],"style":[32]}],[0,"lido-image",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"src":[1],"isSlice":[1,"is-slice"],"sliceWidth":[1,"slice-width"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"padding":[1],"filter":[1],"borderRadius":[1,"border-radius"],"transform":[1],"delayVisible":[1,"delay-visible"],"style":[32]}],[4,"lido-pos",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[4,"lido-random",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1]}],[4,"lido-row",{"showSpeakIcon":[4,"show-speak-icon"],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"direction":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"display":[1],"margin":[1],"style":[32]}],[0,"lido-shape",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"shapeType":[1,"shape-type"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"delayVisible":[1,"delay-visible"]}],[0,"lido-slide-fill",{"id":[1],"width":[1],"height":[1],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"visible":[8],"margin":[1],"padding":[1],"borderRadius":[1,"border-radius"],"fill":[1],"numberType":[1,"number-type"],"min":[2],"division":[2],"max":[2],"slider":[4],"src":[1],"fillDirection":[1,"fill-direction"],"type":[1],"onEntry":[1,"on-entry"],"delayVisible":[1,"delay-visible"],"svgContent":[32],"style":[32]},null,{"src":["onSrcChange"],"fill":["onPropChange"],"division":["onPropChange"],"fillDirection":["onPropChange"],"numberType":["onPropChange"],"min":["onPropChange"],"max":["onPropChange"]}],[0,"lido-trace",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"svgSource":[1,"svg-source"],"value":[1],"height":[1],"width":[1],"x":[1],"y":[1],"z":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"tabIndex":[2,"tab-index"],"mode":[1],"fingerHintUrl":[1,"finger-hint-url"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"highlightTextId":[1,"highlight-text-id"],"animationTrace":[4,"animation-trace"],"delayVisible":[1,"delay-visible"],"svgUrls":[32],"currentSvgIndex":[32],"moving":[32],"style":[32],"fileIndex":[32],"isDragging":[32],"activePointerId":[32],"idleTimer":[32],"fingerImg":[32]},null,{"svgSource":["initializeSVG"],"mode":["initializeSVG"]}],[4,"lido-wrap",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"flex":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[0,"lido-text",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"string":[1],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"fontColor":[1,"font-color"],"highlightWhileSpeaking":[4,"highlight-while-speaking"],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"borderImage":[1,"border-image"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"onEntry":[1,"on-entry"],"margin":[1],"padding":[1],"borderRadius":[1,"border-radius"],"spanType":[1,"span-type"],"delayVisible":[1,"delay-visible"],"style":[32]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1000,15 +1000,29 @@ function animateDragToTarget(dragElement, targetElement, container, transition =
|
|
|
1000
1000
|
return;
|
|
1001
1001
|
const dropRect = targetElement.getBoundingClientRect();
|
|
1002
1002
|
const dragRect = dragElement.getBoundingClientRect();
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1003
|
+
if (container.getAttribute('drop-action') === exports.DropAction.InfiniteDrop) {
|
|
1004
|
+
const style = window.getComputedStyle(dragElement);
|
|
1005
|
+
const matrix = new DOMMatrixReadOnly(style.transform);
|
|
1006
|
+
const currentX = matrix.m41 || 0;
|
|
1007
|
+
const currentY = matrix.m42 || 0;
|
|
1008
|
+
const dx = dropRect.left - dragRect.left;
|
|
1009
|
+
const dy = dropRect.top - dragRect.top;
|
|
1010
|
+
const finalX = currentX + dx * (1 / calculateScale());
|
|
1011
|
+
const finalY = currentY + dy * (1 / calculateScale());
|
|
1012
|
+
dragElement.style.transition = 'transform 0.5s ease';
|
|
1013
|
+
dragElement.style.transform = `translate(${finalX}px, ${finalY}px)`;
|
|
1014
|
+
}
|
|
1015
|
+
else {
|
|
1016
|
+
const containerScale = getElementScale(container); // Assuming you have this function
|
|
1017
|
+
const dropCenterX = dropRect.left + dropRect.width / 2;
|
|
1018
|
+
const dropCenterY = dropRect.top + dropRect.height / 2;
|
|
1019
|
+
const dragCenterX = dragRect.left + dragRect.width / 2;
|
|
1020
|
+
const dragCenterY = dragRect.top + dragRect.height / 2;
|
|
1021
|
+
const scaledLeft = (dropCenterX - dragCenterX) / containerScale;
|
|
1022
|
+
const scaledTop = (dropCenterY - dragCenterY) / containerScale;
|
|
1023
|
+
dragElement.style.transition = transition;
|
|
1024
|
+
dragElement.style.transform = `translate(${scaledLeft}px, ${scaledTop}px)`;
|
|
1025
|
+
}
|
|
1012
1026
|
}
|
|
1013
1027
|
function handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData, dropSelectedData) {
|
|
1014
1028
|
var _a;
|
|
@@ -1017,21 +1031,21 @@ function handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedV
|
|
|
1017
1031
|
const cloneArray = container.querySelectorAll(`#${dragElement.id}`);
|
|
1018
1032
|
const cloneDragElement = Array.from(cloneArray).find(item => dragElement !== item);
|
|
1019
1033
|
dragElement.style.transition = 'transform 0.5s ease';
|
|
1020
|
-
dragElement.style.transform = 'translate(0, 0)';
|
|
1021
|
-
if (container.getAttribute('drop-action') === 'infinite-drop')
|
|
1022
|
-
return;
|
|
1023
1034
|
if (cloneDragElement) {
|
|
1024
|
-
dragElement
|
|
1025
|
-
animateDragToTarget(dragElement, dropElement, container);
|
|
1035
|
+
animateDragToTarget(dragElement, cloneDragElement, container);
|
|
1026
1036
|
setTimeout(() => {
|
|
1027
|
-
|
|
1028
|
-
|
|
1037
|
+
if (container.getAttribute('drop-action') === exports.DropAction.InfiniteDrop) {
|
|
1038
|
+
dragElement.style.width = cloneDragElement.style.width;
|
|
1039
|
+
dragElement.style.height = cloneDragElement.style.height;
|
|
1040
|
+
}
|
|
1041
|
+
else {
|
|
1042
|
+
cloneDragElement.style.width = dragElement.style.width;
|
|
1043
|
+
cloneDragElement.style.height = dragElement.style.height;
|
|
1044
|
+
}
|
|
1029
1045
|
dragElement.style.transform = 'translate(0,0)';
|
|
1030
1046
|
dragElement.style.position = 'unset';
|
|
1031
1047
|
cloneDragElement.replaceWith(dragElement);
|
|
1032
|
-
},
|
|
1033
|
-
dragElement.style.position = 'unset';
|
|
1034
|
-
cloneDragElement.replaceWith(dragElement);
|
|
1048
|
+
}, 500);
|
|
1035
1049
|
}
|
|
1036
1050
|
else {
|
|
1037
1051
|
dragElement.style.transform = 'translate(0,0)';
|
|
@@ -1305,7 +1319,7 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
1305
1319
|
}
|
|
1306
1320
|
dragToDropMap.set(dragElement, dropElement);
|
|
1307
1321
|
// Add pulse and highlight effect for a successful match
|
|
1308
|
-
const isCorrect = dropElement['value'].includes(dragElement['value']);
|
|
1322
|
+
const isCorrect = (dropElement['value'].toLowerCase()).includes((dragElement['value']).toLowerCase());
|
|
1309
1323
|
dispatchElementDropEvent(dragElement, dropElement, isCorrect);
|
|
1310
1324
|
if (isCorrect) {
|
|
1311
1325
|
// Perform actions if onMatch is defined
|
|
@@ -1433,8 +1447,6 @@ async function onClickDragElement(element) {
|
|
|
1433
1447
|
const currentTransform = getComputedStyle(dragEl).transform;
|
|
1434
1448
|
removeHighlight(element);
|
|
1435
1449
|
if (currentTransform && currentTransform !== 'none' && currentTransform !== 'matrix(1, 0, 0, 1, 0, 0)') {
|
|
1436
|
-
dragEl.style.transition = 'transform 0.5s ease';
|
|
1437
|
-
dragEl.style.transform = 'translate(0px, 0px)';
|
|
1438
1450
|
onElementDropComplete(dragEl, null);
|
|
1439
1451
|
return;
|
|
1440
1452
|
}
|
|
@@ -67999,10 +68011,15 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
67999
68011
|
dragElement.style.transition = '';
|
|
68000
68012
|
let dummyElement = document.createElement('div');
|
|
68001
68013
|
if (isInfinite) {
|
|
68002
|
-
|
|
68003
|
-
|
|
68004
|
-
|
|
68005
|
-
|
|
68014
|
+
const allDummy = container.querySelectorAll(`[id=${dragElement.id}]`);
|
|
68015
|
+
if (allDummy.length === 1) {
|
|
68016
|
+
dummyElement = cloneElementWithComputedStyles(dragElement);
|
|
68017
|
+
dummyElement.classList.remove('dropped');
|
|
68018
|
+
dummyElement.removeAttribute('drop-to');
|
|
68019
|
+
dummyElement.removeAttribute('drop-time');
|
|
68020
|
+
dragElement.style.width = dropElement.style.width;
|
|
68021
|
+
dragElement.style.height = dropElement.style.height;
|
|
68022
|
+
}
|
|
68006
68023
|
}
|
|
68007
68024
|
dummyElement.setAttribute('id', dragElement.getAttribute('id'));
|
|
68008
68025
|
dragElement.replaceWith(dummyElement);
|
|
@@ -68047,6 +68064,7 @@ function cloneElementWithComputedStyles(originalEl) {
|
|
|
68047
68064
|
clone = clone.firstChild;
|
|
68048
68065
|
clone.setAttribute('height', originalEl.style.height);
|
|
68049
68066
|
clone.setAttribute('width', originalEl.style.width);
|
|
68067
|
+
clone.setAttribute('visible', 'true');
|
|
68050
68068
|
return clone;
|
|
68051
68069
|
}
|
|
68052
68070
|
// Function to parse actions string
|
|
@@ -23,13 +23,15 @@ export class LidoKeyboard {
|
|
|
23
23
|
this.onEntry = undefined;
|
|
24
24
|
this.type = undefined;
|
|
25
25
|
this.keyboardInput = false;
|
|
26
|
-
this.columns =
|
|
26
|
+
this.columns = '10';
|
|
27
27
|
this.letterLength = undefined;
|
|
28
28
|
this.numberOfClick = 0;
|
|
29
29
|
this.inputString = '';
|
|
30
30
|
this.style = {};
|
|
31
31
|
}
|
|
32
32
|
async inputValidation(e) {
|
|
33
|
+
if (this.type !== 'click')
|
|
34
|
+
return;
|
|
33
35
|
let selcetedValue = JSON.parse(localStorage.getItem(SelectedValuesKey)) || '';
|
|
34
36
|
selcetedValue = this.inputString;
|
|
35
37
|
localStorage.setItem(SelectedValuesKey, JSON.stringify(selcetedValue));
|
|
@@ -42,18 +44,14 @@ export class LidoKeyboard {
|
|
|
42
44
|
if (filteredElement) {
|
|
43
45
|
const bodyRect = document.body.getBoundingClientRect();
|
|
44
46
|
const elemRect = filteredElement.getBoundingClientRect();
|
|
45
|
-
isOverlapping =
|
|
46
|
-
elemRect.left < bodyRect.right &&
|
|
47
|
-
elemRect.right > bodyRect.left &&
|
|
48
|
-
elemRect.top < bodyRect.bottom &&
|
|
49
|
-
elemRect.bottom > bodyRect.top;
|
|
47
|
+
isOverlapping = elemRect.left < bodyRect.right && elemRect.right > bodyRect.left && elemRect.top < bodyRect.bottom && elemRect.bottom > bodyRect.top;
|
|
50
48
|
}
|
|
51
49
|
if (isOverlapping) {
|
|
52
50
|
filteredElement.style.animation = 'none';
|
|
53
51
|
this.numberOfClick++;
|
|
54
52
|
if (this.numberOfClick === this.letterLength) {
|
|
55
53
|
const onCorrrect = container.getAttribute('onCorrect');
|
|
56
|
-
container.style.pointerEvents =
|
|
54
|
+
container.style.pointerEvents = 'none';
|
|
57
55
|
await executeActions(onCorrrect, this.el);
|
|
58
56
|
triggerNextContainer();
|
|
59
57
|
}
|
|
@@ -109,17 +107,17 @@ export class LidoKeyboard {
|
|
|
109
107
|
padding: parseProp(this.padding, orientation),
|
|
110
108
|
borderRadius: parseProp(this.borderRadius, orientation),
|
|
111
109
|
columns: parseProp(`${this.columns}`, orientation),
|
|
112
|
-
gap: parseProp(this.gap, orientation)
|
|
110
|
+
gap: parseProp(this.gap, orientation),
|
|
113
111
|
};
|
|
114
112
|
}
|
|
115
113
|
render() {
|
|
116
114
|
const keysArray = this.keys.split(',').map(k => k.trim());
|
|
117
115
|
const container = document.getElementById(LidoContainer);
|
|
118
116
|
const showCheck = container.getAttribute('show-check') === 'true';
|
|
119
|
-
return (h(Host, { key: '
|
|
117
|
+
return (h(Host, { key: 'de7d6c8eb01a90851d03d8e3a90c2dda2c437b83', class: "lido-keyboard", style: { width: this.style.width, height: this.style.height, position: 'relative', margin: this.style.margin, zIndex: this.z } }, this.keyboardInput && (h("div", { key: '2755d632b00ac4bd9685317c61a6fa9af2972973', class: "input-area" }, h("input", { key: '266a08add13f544c583d424fd1ab31911531f65f', type: "text", value: this.inputString, class: "input-area", readonly: true, onInput: (e) => (this.inputString = e.target.value) }), h("lido-text", { key: '81ca8c391f5bd9056e0a6c9030d0e975a493f86f', visible: showCheck ? 'true' : 'false', string: "<<", "bg-color": "black", "font-color": "white", "border-radius": "20px", "font-size": "30px", width: "100px", height: "70px", type: "click", onClick: () => {
|
|
120
118
|
this.inputString = this.inputString.slice(0, -1);
|
|
121
119
|
this.inputValidation(event);
|
|
122
|
-
} }), h("lido-text", { key: '
|
|
120
|
+
} }), h("lido-text", { key: '721a7b54a4da58c3d68989df08f24a6a41168523', visible: showCheck ? 'true' : 'false', id: "lido-checkButton", string: "Enter", "bg-color": "green", "font-color": "white", "border-radius": "20px", "font-size": "30px", width: "150px", height: "70px", type: "click" }))), this.letterLength && (h("lido-text", { key: '7b87a8810282fdb4326794042118016edc992dd2', visible: "true", string: `${this.numberOfClick}/${this.letterLength}`, "font-size": "60px", "font-color": "white", onEntry: "this.position='absolute'; this.right='0'; this.fontWeight='800';", x: "unset" })), h("div", { key: '80796fa601b359e235a885fdf9e233c3df941605', class: "keyboard-wrapper", style: {
|
|
123
121
|
display: 'flex',
|
|
124
122
|
flexWrap: 'wrap',
|
|
125
123
|
justifyContent: 'center',
|
|
@@ -133,7 +131,7 @@ export class LidoKeyboard {
|
|
|
133
131
|
let string = label === 'Space' ? ' ' : label;
|
|
134
132
|
return (h("lido-text", { id: 'key-button-' + index, style: {
|
|
135
133
|
flex: `0 0 calc(${100 / parseInt(this.style.columns)}% - ${this.style.gap})`,
|
|
136
|
-
}, visible: "true", "font-size": this.style.fontSize, "font-color": this.fontColor, "font-family": this.fontFamily, "bg-color": this.bgColor, string: label, onEntry: this.onEntry, "border-radius": this.style.borderRadius, value: label, type: this.type, class: `key-button${isDisabled ? ' disabled' : ''}`, onClick: () => {
|
|
134
|
+
}, visible: "true", "font-size": this.style.fontSize, "font-color": this.fontColor, "font-family": this.fontFamily, "bg-color": this.bgColor, string: label, onEntry: this.onEntry, "border-radius": this.style.borderRadius, value: label.toLowerCase(), type: this.type, class: `key-button${isDisabled ? ' disabled' : ''}`, onClick: () => {
|
|
137
135
|
this.inputString += string;
|
|
138
136
|
this.inputValidation(event);
|
|
139
137
|
} }));
|
|
@@ -479,7 +477,7 @@ export class LidoKeyboard {
|
|
|
479
477
|
},
|
|
480
478
|
"attribute": "columns",
|
|
481
479
|
"reflect": false,
|
|
482
|
-
"defaultValue": "
|
|
480
|
+
"defaultValue": "'10'"
|
|
483
481
|
},
|
|
484
482
|
"letterLength": {
|
|
485
483
|
"type": "number",
|
|
@@ -4,12 +4,12 @@ import { LidoContainer, TraceMode } from "../../utils/constants";
|
|
|
4
4
|
// Enum for different tracing modes
|
|
5
5
|
export class LidoTrace {
|
|
6
6
|
constructor() {
|
|
7
|
-
this.moving = false;
|
|
8
7
|
this.showSpeakIcon = false;
|
|
9
8
|
this.id = '';
|
|
10
9
|
this.svgSource = '';
|
|
11
10
|
this.svgUrls = [];
|
|
12
11
|
this.currentSvgIndex = 0;
|
|
12
|
+
this.moving = false;
|
|
13
13
|
this.value = '';
|
|
14
14
|
this.height = 'auto';
|
|
15
15
|
this.width = 'auto';
|
|
@@ -58,7 +58,13 @@ export class LidoTrace {
|
|
|
58
58
|
lastPointerPos: null,
|
|
59
59
|
};
|
|
60
60
|
const url = this.svgUrls[this.currentSvgIndex];
|
|
61
|
+
console.log("Loading SVG from URL:", url);
|
|
62
|
+
if (!url || url.trim() === '') {
|
|
63
|
+
console.error("No SVG URL provided or index out of bounds.");
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
61
66
|
const svgText = await this.fetchSVG(url);
|
|
67
|
+
console.log("SVG fetched successfully\n");
|
|
62
68
|
await this.loadAnotherSVG(state, true); // Load the first SVG
|
|
63
69
|
}
|
|
64
70
|
componentDidLoad() {
|
|
@@ -69,12 +75,14 @@ export class LidoTrace {
|
|
|
69
75
|
window.addEventListener('resize', this.updateStyles.bind(this));
|
|
70
76
|
window.addEventListener('load', this.updateStyles.bind(this));
|
|
71
77
|
this.svgUrls = this.svgSource.split(';').map(s => s.trim());
|
|
78
|
+
console.log("svgUrls", this.svgUrls);
|
|
72
79
|
this.currentSvgIndex = 0;
|
|
73
|
-
this.
|
|
80
|
+
console.log("curentSvgIndex", this.currentSvgIndex);
|
|
74
81
|
if (this.showSpeakIcon) {
|
|
75
82
|
speakIcon(this.el);
|
|
76
83
|
this.el.append(speakIcon(this.el));
|
|
77
84
|
}
|
|
85
|
+
this.initializeSVG();
|
|
78
86
|
}
|
|
79
87
|
disconnectedCallback() {
|
|
80
88
|
window.removeEventListener('resize', this.updateStyles.bind(this));
|
|
@@ -131,6 +139,7 @@ export class LidoTrace {
|
|
|
131
139
|
}
|
|
132
140
|
// Fetch the SVG file asynchronously
|
|
133
141
|
async fetchSVG(url) {
|
|
142
|
+
console.log(`Fetching SVG from: ${url}`);
|
|
134
143
|
const response = await fetch(url);
|
|
135
144
|
if (!response.ok) {
|
|
136
145
|
throw new Error(`Failed to fetch SVG (${url}): ${response.statusText}`);
|
|
@@ -447,6 +456,7 @@ export class LidoTrace {
|
|
|
447
456
|
if (this.animationTrace) {
|
|
448
457
|
await this.playTraceAnimation();
|
|
449
458
|
}
|
|
459
|
+
console.log(`Moving to next container after SVG index: ${this.currentSvgIndex}`);
|
|
450
460
|
if (this.currentSvgIndex < this.svgUrls.length - 1) {
|
|
451
461
|
this.currentSvgIndex++;
|
|
452
462
|
await this.initializeSVG();
|
|
@@ -516,7 +526,7 @@ export class LidoTrace {
|
|
|
516
526
|
if (state.svg) {
|
|
517
527
|
this.cleanupPreviousSVG(state);
|
|
518
528
|
}
|
|
519
|
-
const svgText = await this.fetchSVG(convertUrlToRelative(this.svgSource));
|
|
529
|
+
const svgText = await this.fetchSVG(convertUrlToRelative(this.svgSource.split(';').map(s => s.trim())[this.currentSvgIndex]));
|
|
520
530
|
this.insertSVG(svgText);
|
|
521
531
|
state.svg = this.getSVGElement();
|
|
522
532
|
if (this.mode === TraceMode.BlindTracing || this.mode === TraceMode.BlindFreeTrace) {
|
|
@@ -636,7 +646,7 @@ export class LidoTrace {
|
|
|
636
646
|
};
|
|
637
647
|
}
|
|
638
648
|
render() {
|
|
639
|
-
return (h(Host, { key: '
|
|
649
|
+
return (h(Host, { key: 'ee0e1841a0d3086d453bd29568c53169456a75ca', class: "lido-trace", id: this.id, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, tabindex: this.tabIndex }, h("div", { key: 'd3e0ac9c6a51bf307d57b3bba3cddfb02fdf7fc1', style: this.style, id: "lido-svgContainer" })));
|
|
640
650
|
}
|
|
641
651
|
static get is() { return "lido-trace"; }
|
|
642
652
|
static get originalStyleUrls() {
|
|
@@ -998,6 +1008,7 @@ export class LidoTrace {
|
|
|
998
1008
|
return {
|
|
999
1009
|
"svgUrls": {},
|
|
1000
1010
|
"currentSvgIndex": {},
|
|
1011
|
+
"moving": {},
|
|
1001
1012
|
"style": {},
|
|
1002
1013
|
"fileIndex": {},
|
|
1003
1014
|
"isDragging": {},
|