lido-player 0.0.2-alpha-63 → 0.0.2-alpha-64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/lido-avatar_22.cjs.entry.js +64 -10
- package/dist/cjs/{utils-b13cba29.js → utils-becabee2.js} +31 -25
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +28 -20
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +4 -4
- package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +4 -4
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +1 -1
- package/dist/collection/utils/audioPlayer.js +4 -0
- package/dist/collection/utils/utils.js +22 -19
- package/dist/collection/utils/utilsHandlers/clickHandler.js +1 -3
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +4 -4
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-balance.js +1 -1
- package/dist/components/lido-calculator.js +1 -1
- package/dist/components/lido-canvas.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-math-matrix.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 +22 -22
- 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-40dd6fa3.js → p-2419ea86.js} +1 -1
- package/dist/components/{p-cdb5b0e6.js → p-26d79db2.js} +1 -1
- package/dist/components/{p-777293d6.js → p-2ca8a79c.js} +1 -1
- package/dist/components/{p-adfef26f.js → p-5b2e159e.js} +2 -2
- package/dist/components/{p-bf0c1e81.js → p-5e01d929.js} +1 -1
- package/dist/components/{p-64b85ae6.js → p-5e2fb7e3.js} +1 -1
- package/dist/components/{p-302d1390.js → p-64ba84fa.js} +21 -21
- package/dist/components/{p-7256917d.js → p-6d65a7cd.js} +1 -1
- package/dist/components/{p-bd09bc5b.js → p-738d415b.js} +31 -25
- package/dist/components/{p-552f581f.js → p-86844c0d.js} +1 -1
- package/dist/components/{p-d2d6e641.js → p-a88e9876.js} +1 -1
- package/dist/components/{p-1a53b784.js → p-acd46f02.js} +2 -2
- package/dist/components/{p-f4c980f0.js → p-b4179933.js} +1 -1
- package/dist/components/{p-39767aae.js → p-b6f1e3fc.js} +1 -1
- package/dist/components/{p-85eaa0b7.js → p-ba031294.js} +1 -1
- package/dist/components/{p-d31bcfae.js → p-d5c8eeff.js} +3 -3
- package/dist/components/{p-e42ddea5.js → p-de4045c0.js} +1 -1
- package/dist/components/{p-228a12b2.js → p-de8c9990.js} +2 -2
- package/dist/components/{p-8f174468.js → p-e0149bae.js} +1 -1
- package/dist/components/{p-3db5a756.js → p-eba44865.js} +1 -1
- package/dist/components/{p-196e9b0e.js → p-ee672850.js} +64 -10
- package/dist/components/{p-6c1ea24d.js → p-fd181d67.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_22.entry.js +64 -10
- package/dist/esm/{utils-b7ed15c2.js → utils-fbfd097f.js} +31 -25
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/{p-1557f3df.js → p-bc5f9140.js} +2 -2
- package/dist/lido-player/p-ded2bd49.entry.js +1 -0
- package/dist/types/stories/Templates/matchingCard/matching-card.stories.d.ts +1 -1
- package/dist/types/utils/audioPlayer.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lido-player/p-c309d462.entry.js +0 -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-baff5c15.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-becabee2.js');
|
|
7
7
|
|
|
8
8
|
var rive = {exports: {}};
|
|
9
9
|
|
|
@@ -9866,7 +9866,7 @@ const fr = {
|
|
|
9866
9866
|
|
|
9867
9867
|
const Exit$3 = "बाहर निकलें";
|
|
9868
9868
|
const instruction$2 = {
|
|
9869
|
-
dragAndDrop: "
|
|
9869
|
+
dragAndDrop: "Match the items by dragging and dropping them into the correct places.",
|
|
9870
9870
|
mcq: "Select the correct answer from the options provided.",
|
|
9871
9871
|
tracing: "Trace the shape by following the outline carefully.",
|
|
9872
9872
|
flashcards: "Review the flashcards to reinforce your learning.",
|
|
@@ -9909,10 +9909,37 @@ const hi = {
|
|
|
9909
9909
|
|
|
9910
9910
|
const Exit$2 = "ನಿರ್ಗಮಿಸು";
|
|
9911
9911
|
const instruction$1 = {
|
|
9912
|
-
dragAndDrop: "
|
|
9913
|
-
mcq: "
|
|
9914
|
-
tracing: "
|
|
9915
|
-
flashcards: "
|
|
9912
|
+
dragAndDrop: "Match the items by dragging and dropping them into the correct places.",
|
|
9913
|
+
mcq: "Select the correct answer from the options provided.",
|
|
9914
|
+
tracing: "Trace the shape by following the outline carefully.",
|
|
9915
|
+
flashcards: "Review the flashcards to reinforce your learning.",
|
|
9916
|
+
substractionWithImage: "substractionWithImageKaAudio",
|
|
9917
|
+
substractionWithoutImage: "substractionWithoutImageKaAudio",
|
|
9918
|
+
numberIdentificationWithImage: "numberIdentificationWithImageKaAudio",
|
|
9919
|
+
numberIdentificationWithoutImage: "numberIdentificationWithoutImageKaAudio",
|
|
9920
|
+
wordBuildingWithImage: "wordBuildingWithImageKaAudio",
|
|
9921
|
+
wordBuildingWithoutImage: "wordBuildingWithoutImageKaAudio",
|
|
9922
|
+
pictureClues: "pictureCluesKaAudio",
|
|
9923
|
+
pictureWordMatchMultipleImages: "pictureWordMatchMultipleImagesKaAudio",
|
|
9924
|
+
pictureWordMatchSingleImage: "pictureWordMatchSingleImageKaAudio",
|
|
9925
|
+
sentenceMatch: "sentenceMatchKaAudio",
|
|
9926
|
+
imageMatch: "imageMatchKaAudio",
|
|
9927
|
+
palStoryTale: "palStoryTaleKaAudio",
|
|
9928
|
+
palEgmaPatternMatching: "palEgmaPatternMatchingKaAudio",
|
|
9929
|
+
palEgmaWordProblemDragnDrop: "palEgmaWordProblemDragnDropKaAudio",
|
|
9930
|
+
palEgmaWordProblemClick: "palEgmaWordProblemClickKaAudio",
|
|
9931
|
+
palEgraOddOneOut: "palEgraOddOneOutKaAudio",
|
|
9932
|
+
palEgraArrangePictures: "palEgraArrangePicturesKaAudio",
|
|
9933
|
+
palEgraBuildWord: "palEgraBuildWordKaAudio",
|
|
9934
|
+
palEgraWordFormation: "palEgraWordFormationKaAudio",
|
|
9935
|
+
palInventedSpelling: "palInventedSpellingKaAudio",
|
|
9936
|
+
palLetterIdentification: "palLetterIdentificationKaAudio",
|
|
9937
|
+
palStoryMaking: "palStoryMakingKaAudio",
|
|
9938
|
+
palegmasumtogether: "palegmasumtogetherKaAudio",
|
|
9939
|
+
palegmamultioption: "palegmamultioptionKaAudio",
|
|
9940
|
+
palegraoptionaudio: "palegraoptionaudioKaAudio",
|
|
9941
|
+
palegrawordmatch: "palegrawordmatchKaAudio",
|
|
9942
|
+
palegramcqimages: "palegramcqimagesKaAudio"
|
|
9916
9943
|
};
|
|
9917
9944
|
const ka = {
|
|
9918
9945
|
"Do you want to exit?": "ನೀವು ನಿರ್ಗಮಿಸಲು ಬಯಸುವಿರಾ?",
|
|
@@ -9942,10 +9969,37 @@ const port = {
|
|
|
9942
9969
|
};
|
|
9943
9970
|
|
|
9944
9971
|
const instruction = {
|
|
9945
|
-
dragAndDrop: "
|
|
9946
|
-
mcq: "
|
|
9947
|
-
tracing: "
|
|
9948
|
-
flashcards: "
|
|
9972
|
+
dragAndDrop: "Match the items by dragging and dropping them into the correct places.",
|
|
9973
|
+
mcq: "Select the correct answer from the options provided.",
|
|
9974
|
+
tracing: "Trace the shape by following the outline carefully.",
|
|
9975
|
+
flashcards: "Review the flashcards to reinforce your learning.",
|
|
9976
|
+
substractionWithImage: "substractionWithImageMaAudio ",
|
|
9977
|
+
substractionWithoutImage: "substractionWithoutImageMaAudio",
|
|
9978
|
+
numberIdentificationWithImage: "numberIdentificationWithImageMaAudio",
|
|
9979
|
+
numberIdentificationWithoutImage: "numberIdentificationWithoutImageMaAudio",
|
|
9980
|
+
wordBuildingWithImage: "wordBuildingWithImageMaAudio",
|
|
9981
|
+
wordBuildingWithoutImage: "wordBuildingWithoutImageMaAudio",
|
|
9982
|
+
pictureClues: "pictureCluesMaAudio",
|
|
9983
|
+
pictureWordMatchMultipleImages: "pictureWordMatchMultipleImagesMaAudio",
|
|
9984
|
+
pictureWordMatchSingleImage: "pictureWordMatchSingleImageMaAudio",
|
|
9985
|
+
sentenceMatch: "sentenceMatchMaAudio",
|
|
9986
|
+
imageMatch: "imageMatchMaAudio",
|
|
9987
|
+
palStoryTale: "palStoryTaleMaAudio",
|
|
9988
|
+
palEgmaPatternMatching: "palEgmaPatternMatchingMaAudio",
|
|
9989
|
+
palEgmaWordProblemDragnDrop: "palEgmaWordProblemDragnDropMaAudio",
|
|
9990
|
+
palEgmaWordProblemClick: "palEgmaWordProblemClickMaAudio",
|
|
9991
|
+
palEgraOddOneOut: "palEgraOddOneOutMaAudio",
|
|
9992
|
+
palEgraArrangePictures: "palEgraArrangePicturesMaAudio",
|
|
9993
|
+
palEgraBuildWord: "palEgraBuildWordMaAudio",
|
|
9994
|
+
palEgraWordFormation: "palEgraWordFormationMaAudio",
|
|
9995
|
+
palInventedSpelling: "palInventedSpellingMaAudio",
|
|
9996
|
+
palLetterIdentification: "palLetterIdentificationMaAudio",
|
|
9997
|
+
palStoryMaking: "palStoryMakingMaAudio",
|
|
9998
|
+
palegmasumtogether: "palegmasumtogetherMaAudio",
|
|
9999
|
+
palegmamultioption: "palegmamultioptionMaAudio",
|
|
10000
|
+
palegraoptionaudio: "palegraoptionaudioMaAudio",
|
|
10001
|
+
palegrawordmatch: "palegrawordmatchMaAudio",
|
|
10002
|
+
palegramcqimages: "palegramcqimagesMaAudio"
|
|
9949
10003
|
};
|
|
9950
10004
|
const ma = {
|
|
9951
10005
|
instruction: instruction
|
|
@@ -1202,12 +1202,12 @@ function highlightElement() {
|
|
|
1202
1202
|
if (!container)
|
|
1203
1203
|
return;
|
|
1204
1204
|
const dropElements = buildDropHasDragFromDOM();
|
|
1205
|
+
const dropEls = container.querySelectorAll(`[type="drop"]`);
|
|
1206
|
+
dropEls.forEach(dropEl => {
|
|
1207
|
+
dropEl.classList.remove('highlight-element');
|
|
1208
|
+
});
|
|
1205
1209
|
let firstFalse = Object.values(dropElements).find(item => !item.isFull);
|
|
1206
1210
|
if (firstFalse) {
|
|
1207
|
-
const dropEls = container.querySelectorAll(`[type="drop"]`);
|
|
1208
|
-
dropEls.forEach(dropEl => {
|
|
1209
|
-
dropEl.classList.remove('highlight-element');
|
|
1210
|
-
});
|
|
1211
1211
|
const dropEle = container.querySelector(`#${firstFalse.drop}`);
|
|
1212
1212
|
if (dropEle) {
|
|
1213
1213
|
dropEle.classList.add('highlight-element');
|
|
@@ -1245,6 +1245,10 @@ function highlightElement() {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
1247
|
class AudioPlayer {
|
|
1248
|
+
isSpeakDisabled(element) {
|
|
1249
|
+
const text = element.closest('lido-text');
|
|
1250
|
+
return (text === null || text === void 0 ? void 0 : text.getAttribute('disable-speak')) === 'true';
|
|
1251
|
+
}
|
|
1248
1252
|
constructor() {
|
|
1249
1253
|
this.handleUserClick = () => {
|
|
1250
1254
|
this.stop();
|
|
@@ -3342,9 +3346,7 @@ function addClickListenerForClickType(element) {
|
|
|
3342
3346
|
// storingEachActivityScore(isCorrect);
|
|
3343
3347
|
// }
|
|
3344
3348
|
highlightElement();
|
|
3345
|
-
|
|
3346
|
-
handleShowCheck();
|
|
3347
|
-
}
|
|
3349
|
+
handleShowCheck();
|
|
3348
3350
|
return;
|
|
3349
3351
|
}
|
|
3350
3352
|
if (showCheck) {
|
|
@@ -68973,6 +68975,7 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
68973
68975
|
dummyElement.classList.remove('dropped');
|
|
68974
68976
|
dummyElement.removeAttribute('drop-to');
|
|
68975
68977
|
dummyElement.removeAttribute('drop-time');
|
|
68978
|
+
dummyElement.style.opacity = "1";
|
|
68976
68979
|
dragElement.style.width = dropElement.style.width;
|
|
68977
68980
|
dragElement.style.height = dropElement.style.height;
|
|
68978
68981
|
dragElement.setAttribute('hasDummy', 'true');
|
|
@@ -69048,6 +69051,7 @@ function cloneElementWithComputedStyles(originalEl) {
|
|
|
69048
69051
|
clone.style.margin = originalEl.style.margin;
|
|
69049
69052
|
clone.style.opacity = originalEl.style.opacity;
|
|
69050
69053
|
clone.style.transform = originalEl.style.transform;
|
|
69054
|
+
clone.style.borderRadius = originalEl.style.borderRadius;
|
|
69051
69055
|
clone.setAttribute("visible", "true");
|
|
69052
69056
|
clone.setAttribute("data-dummy", "true");
|
|
69053
69057
|
if (tag === "lido-math-matrix") {
|
|
@@ -69198,10 +69202,10 @@ async function onActivityComplete(dragElement, dropElement) {
|
|
|
69198
69202
|
drag[index].push(dragElement.id);
|
|
69199
69203
|
const allElements = document.querySelectorAll("[type='drop']");
|
|
69200
69204
|
allElements.forEach(otherElement => {
|
|
69201
|
-
var _a;
|
|
69205
|
+
var _a, _b;
|
|
69202
69206
|
const storedTabIndexes = Object.keys(dragScore).map(Number);
|
|
69203
69207
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
69204
|
-
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
69208
|
+
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal) && !(((_b = container.getAttribute('drop-action')) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === DropMode.InfiniteDrop)) {
|
|
69205
69209
|
if (otherElement) {
|
|
69206
69210
|
otherElement.style.opacity = "0";
|
|
69207
69211
|
}
|
|
@@ -69242,7 +69246,6 @@ const storeActivityScore = (score) => {
|
|
|
69242
69246
|
const handleShowCheck = () => {
|
|
69243
69247
|
var _a, _b;
|
|
69244
69248
|
const container = document.getElementById(LidoContainer);
|
|
69245
|
-
container.setAttribute("click-completed", "true");
|
|
69246
69249
|
const objectiveString = container['objective'];
|
|
69247
69250
|
const selectValues = (_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '';
|
|
69248
69251
|
const checkButton = document.querySelector('#lido-checkButton');
|
|
@@ -69267,7 +69270,10 @@ const handleShowCheck = () => {
|
|
|
69267
69270
|
}
|
|
69268
69271
|
}
|
|
69269
69272
|
else {
|
|
69270
|
-
|
|
69273
|
+
if (!container.getAttribute("game-completed")) {
|
|
69274
|
+
validateObjectiveStatus();
|
|
69275
|
+
}
|
|
69276
|
+
container.setAttribute("game-completed", "true");
|
|
69271
69277
|
}
|
|
69272
69278
|
};
|
|
69273
69279
|
let res;
|
|
@@ -69317,7 +69323,9 @@ const validateObjectiveStatus = async () => {
|
|
|
69317
69323
|
if (attach === 'true') {
|
|
69318
69324
|
appendingDragElementsInDrop();
|
|
69319
69325
|
}
|
|
69320
|
-
|
|
69326
|
+
if (container.querySelectorAll("[type='click']").length > 0) {
|
|
69327
|
+
storingEachActivityScore(true);
|
|
69328
|
+
}
|
|
69321
69329
|
await executeActions(onCorrect, container);
|
|
69322
69330
|
}
|
|
69323
69331
|
if (container.getAttribute('dropAttr') === 'EnableAnimation') {
|
|
@@ -69343,7 +69351,7 @@ const validateObjectiveStatus = async () => {
|
|
|
69343
69351
|
const onInCorrect = container.getAttribute('onInCorrect');
|
|
69344
69352
|
storingEachActivityScore(false);
|
|
69345
69353
|
await executeActions(onInCorrect, container);
|
|
69346
|
-
container.removeAttribute("
|
|
69354
|
+
container.removeAttribute("game-completed");
|
|
69347
69355
|
}
|
|
69348
69356
|
}
|
|
69349
69357
|
};
|
|
@@ -69826,20 +69834,18 @@ const questionBoxAnimation = async (element, value) => {
|
|
|
69826
69834
|
const dragElements = Array.from(element.querySelectorAll("[type='drag']"));
|
|
69827
69835
|
// Ensure all drag childrens which is dropped disappear
|
|
69828
69836
|
dragElements.forEach(dragElement => {
|
|
69829
|
-
|
|
69837
|
+
const dropToAttr = dragElement.getAttribute('drop-to');
|
|
69838
|
+
if (dropToAttr && dropToAttr !== '') {
|
|
69830
69839
|
dragElement.style.transition = 'opacity 0.5s ease';
|
|
69831
69840
|
dragElement.style.opacity = '0'; // Fade out
|
|
69832
|
-
|
|
69833
|
-
|
|
69834
|
-
|
|
69835
|
-
|
|
69836
|
-
|
|
69837
|
-
|
|
69838
|
-
|
|
69839
|
-
|
|
69840
|
-
const dropVal = dropEl.getAttribute("value");
|
|
69841
|
-
if (dropVal && dropEl.innerText.trim() === "?") {
|
|
69842
|
-
dropEl.innerText = dropVal;
|
|
69841
|
+
const dropEl = document.getElementById(dropToAttr);
|
|
69842
|
+
const dragVal = dragElement.getAttribute("value");
|
|
69843
|
+
if (dragVal && dropEl.innerText.trim() === "?") {
|
|
69844
|
+
dropEl.innerText = dragVal;
|
|
69845
|
+
}
|
|
69846
|
+
// setTimeout(() => {
|
|
69847
|
+
// // dragElement.remove() // Remove from view after fade-out
|
|
69848
|
+
// }, 500);
|
|
69843
69849
|
}
|
|
69844
69850
|
});
|
|
69845
69851
|
};
|
|
@@ -10,11 +10,11 @@ const meta = {
|
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
export default meta;
|
|
13
|
-
export const
|
|
13
|
+
export const matchCard = {
|
|
14
14
|
args: {
|
|
15
15
|
answer: 'correct',
|
|
16
16
|
option1: 'incorrect', option2: 'correct', option3: 'incorrect',
|
|
17
|
-
isAllowOnlyCorrect:
|
|
17
|
+
isAllowOnlyCorrect: true,
|
|
18
18
|
},
|
|
19
19
|
render: args => {
|
|
20
20
|
const xml = getContainerXml(args);
|
|
@@ -24,26 +24,34 @@ export const OrderTractor = {
|
|
|
24
24
|
function getContainerXml(args) {
|
|
25
25
|
return `
|
|
26
26
|
<main>
|
|
27
|
-
<lido-container id="lido-container" is-allow-only-correct="${args.isAllowOnlyCorrect}" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Matching%20card.png" objective="${args.answer}" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000'; truck.animation='placeToLeft 2.5s linear'; imgs.animation='placeToLeft 2.5s linear'; dragEle.animation='placeToLeft 2.5s linear'; this.sleep='2000'; " onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="
|
|
28
|
-
<!-- Chimple Avatar -->
|
|
29
|
-
<lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.448px,portrait.402px" width="landscape.350px,portrait.398px" x="landscape.1px, portrait.20px" y="landscape.5px, portrait.318px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
|
|
30
|
-
<lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
|
|
31
|
-
</lido-avatar>
|
|
32
|
-
</lido-cell>
|
|
27
|
+
<lido-container id="lido-container" is-allow-only-correct="${args.isAllowOnlyCorrect}" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Matching%20card.png" objective="${args.answer}" width="100%" bg-color="transparent" visible="true" onCorrect="drag1.disableType='true'; drag2.disableType='true'; drag3.disableType='true'; lido-avatar.avatarAnimate='Success'; this.sleep='2000'; truck.animation='placeToLeft 2.5s linear'; imgs.animation='placeToLeft 2.5s linear'; dragEle.animation='placeToLeft 2.5s linear'; trainAudio.speak='true'; this.sleep='2000'; " onEntry="trainAudio.speak='true'; invisible-text.speak='true'; this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="${args.isAllowOnlyCorrect}" after-drop="false" custom-style="#dropEle{border: none !important} #drag1,#drag2,#drag3{box-shadow: none !important}">
|
|
33
28
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</lido-cell>
|
|
40
|
-
<lido-cell id="dragEle" visible="true" layout="row" width="100%" height="40%" bg-color="transparent" margin="landscape.-580px 0px 50px 0px,portrait.-532px 0px 162px 0px" onEntry="this.animation='rightToPlace 2.5s linear';" onCorrect="this.animation='placeToLeft 2.5s linear';">
|
|
41
|
-
<lido-image id="drag1" height="landscape.320px,portrait.320px" width="landscape.273px,portrait.320px" tab-index="1" value="${args.option1}" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047093.png" type="drag"></lido-image>
|
|
42
|
-
<lido-image id="drag2" height="landscape.320px,portrait.320px" width="landscape.273px,portrait.320px" tab-index="2" value="${args.option2}" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047094.png" type="drag"></lido-image>
|
|
43
|
-
<lido-image id="drag3" height="landscape.320px,portrait.320px" width="landscape.273px,portrait.320px" tab-index="3" value="${args.option3}" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047095.png" type="drag"></lido-image>
|
|
44
|
-
</lido-cell>
|
|
29
|
+
<!-- Chimple Avatar -->
|
|
30
|
+
<lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.448px,portrait.402px" width="landscape.350px,portrait.398px" x="landscape.1px, portrait.20px" y="landscape.5px, portrait.318px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
|
|
31
|
+
<lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
|
|
32
|
+
</lido-avatar>
|
|
33
|
+
</lido-cell>
|
|
45
34
|
|
|
46
|
-
|
|
35
|
+
<lido-text id="trainAudio" visible="false" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/train1%20(1).m4a" onEntry="">
|
|
36
|
+
</lido-text>
|
|
37
|
+
|
|
38
|
+
<lido-text id="invisible-text" visible="false" value="match the correct card from the drag option to the given drop place" string="match the correct card from the drag option to the given drop place" onEntry="">
|
|
39
|
+
</lido-text>
|
|
40
|
+
|
|
41
|
+
<lido-image id="truck" height="60%" width="landscape.100%,portrait.200%" visible="true" bg-Color="transparent" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/train.svg" margin="landscape.14px 0px 0px 0px,portrait.452px 0px 0px 0px" onEntry="this.animation='rightToPlace 2.5s linear';" onCorrect="this.animation='placeToLeft 2.5s linear';">
|
|
42
|
+
</lido-image>
|
|
43
|
+
|
|
44
|
+
<lido-cell id="imgs" visible="true" x="landscape.-158px,portrait.0" y="landscape.-495px,portrait.-652px" layout="row" height="80%" width="landscape.35%,portrait.70%" bg-color="transparent" margin="landscape.-115px 0px 0px 345px,portrait.0px 0px 0px 95px" onEntry="this.position='relative';this.animation='rightToPlace 2.5s linear';" onCorrect="this.animation='placeToLeft 2.5s linear';">
|
|
45
|
+
<lido-image id="qn" height="landscape.320px,portrait.320px" value="${args.answer}" width="landscape.320px,portrait.320px" tab-index="2" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047094.png"></lido-image>
|
|
46
|
+
<lido-image id="dropEle" height="landscape.320px,portrait.320px" value="${args.answer}" width="landscape.320px,portrait.320px" tab-index="1" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/dropbox-%20matching%20card.png" type="drop"></lido-image>
|
|
47
|
+
</lido-cell>
|
|
48
|
+
|
|
49
|
+
<lido-cell id="dragEle" delay-visible="2500" visible="true" layout="row" width="100%" height="40%" bg-color="transparent" margin="landscape.-580px 0px 50px 0px,portrait.-532px 0px 162px 0px" onEntry="this.animation='rightToPlace 2.5s linear';" onCorrect="this.animation='placeToLeft 2.5s linear';">
|
|
50
|
+
<lido-image id="drag1" height="landscape.320px,portrait.320px" width="landscape.273px,portrait.320px" tab-index="1" value="${args.option1}" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047093.png" type="drag"></lido-image>
|
|
51
|
+
<lido-image id="drag2" height="landscape.320px,portrait.320px" width="landscape.273px,portrait.320px" tab-index="2" value="${args.option2}" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047094.png" type="drag"></lido-image>
|
|
52
|
+
<lido-image id="drag3" height="landscape.320px,portrait.320px" width="landscape.273px,portrait.320px" tab-index="3" value="${args.option3}" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047095.png" type="drag"></lido-image>
|
|
53
|
+
</lido-cell>
|
|
54
|
+
</lido-container>
|
|
47
55
|
</main>
|
|
48
56
|
`;
|
|
49
57
|
}
|
|
@@ -58,14 +58,14 @@ function getContainerXml(args) {
|
|
|
58
58
|
|
|
59
59
|
<lido-cell layout="row" visible="true" margin="" onEntry="this.border-radius='24px';" height="228px" width="landscape.280px,portrait.300px" bg-color="orange" type="click" value="${args.option1}">
|
|
60
60
|
|
|
61
|
-
<lido-text id="text1" tab-index="3" disable-speak="true" visible="true" string="${args.option1}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.140px, portrait.100px" bg-color="orange"
|
|
61
|
+
<lido-text id="text1" tab-index="3" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" visible="true" string="${args.option1}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.140px, portrait.100px" bg-color="orange"
|
|
62
62
|
onEntry="this.fontWeight='700';">
|
|
63
63
|
</lido-text>
|
|
64
64
|
</lido-cell>
|
|
65
65
|
|
|
66
66
|
<lido-cell layout="row" visible="true" margin="" onEntry="this.border-radius='24px';" height="228px" width="landscape.280px,portrait.300px" bg-color="orange" type="click" value="${args.option2}">
|
|
67
67
|
|
|
68
|
-
<lido-text id="text2" tab-index="4" disable-speak="true" visible="true" string="${args.option2}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.140px, portrait.100px" bg-color="orange"
|
|
68
|
+
<lido-text id="text2" tab-index="4" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" visible="true" string="${args.option2}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.140px, portrait.100px" bg-color="orange"
|
|
69
69
|
onEntry="this.fontWeight='700';">
|
|
70
70
|
</lido-text>
|
|
71
71
|
</lido-cell>
|
|
@@ -73,14 +73,14 @@ function getContainerXml(args) {
|
|
|
73
73
|
|
|
74
74
|
<lido-cell layout="row" visible="true" margin="" onEntry="this.border-radius='24px';" height="228px" width="landscape.280px,portrait.300px" bg-color="orange" type="click" value="${args.option3}">
|
|
75
75
|
|
|
76
|
-
<lido-text id="text3" tab-index="5" disable-speak="true" visible="true" string="${args.option3}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.140px, portrait.100px" bg-color="orange"
|
|
76
|
+
<lido-text id="text3" tab-index="5" disable-speak="true" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" visible="true" string="${args.option3}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.140px, portrait.100px" bg-color="orange"
|
|
77
77
|
onEntry="this.fontWeight='700';">
|
|
78
78
|
</lido-text>
|
|
79
79
|
</lido-cell>
|
|
80
80
|
|
|
81
81
|
<lido-cell layout="row" visible="true" margin="" onEntry="this.border-radius='24px';" height="228px" width="landscape.280px,portrait.300px" bg-color="orange" type="click" value="${args.option4}">
|
|
82
82
|
|
|
83
|
-
<lido-text id="text4" tab-index="6" disable-speak="true" visible="true" string="${args.option4}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.130px, portrait.100px" bg-color="orange"
|
|
83
|
+
<lido-text id="text4" tab-index="6" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" visible="true" string="${args.option4}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.130px, portrait.100px" bg-color="orange"
|
|
84
84
|
onEntry="this.fontWeight='800';">
|
|
85
85
|
</lido-text>
|
|
86
86
|
</lido-cell>
|
|
@@ -96,10 +96,10 @@ function getContainerXml(args) {
|
|
|
96
96
|
|
|
97
97
|
</lido-cell>
|
|
98
98
|
<lido-cell layout="row" visible="true" width="84%" height="300px">
|
|
99
|
-
<lido-text visible="true" disable-speak="true" value="${args.option1}" type="click" id="option1" tab-index="8" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option1}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
|
|
100
|
-
<lido-text visible="true" disable-speak="true" value="${args.option2}" type="click" id="option2" tab-index="9" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option2}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
|
|
101
|
-
<lido-text visible="true" disable-speak="true" value="${args.option3}" type="click" id="option3" tab-index="10" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option3}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
|
|
102
|
-
<lido-text visible="true" disable-speak="true" type="click" value="${args.option4}" id="option4" tab-index="11" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option4}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
|
|
99
|
+
<lido-text visible="true" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" value="${args.option1}" type="click" id="option1" tab-index="8" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option1}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
|
|
100
|
+
<lido-text visible="true" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" value="${args.option2}" type="click" id="option2" tab-index="9" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option2}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
|
|
101
|
+
<lido-text visible="true" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" value="${args.option3}" type="click" id="option3" tab-index="10" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option3}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
|
|
102
|
+
<lido-text visible="true" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" type="click" value="${args.option4}" id="option4" tab-index="11" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option4}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
|
|
@@ -38,7 +38,7 @@ export const wordBuildingwithimg = {
|
|
|
38
38
|
function getContainerXml(args) {
|
|
39
39
|
const { isAllowOnlyCorrect = true } = args;
|
|
40
40
|
return `<main>
|
|
41
|
-
<lido-container lang="
|
|
41
|
+
<lido-container lang="ka" disable-speak="true" visible="true" id="lido-container" template-id="wordBuildingWithImage" objective="${args.answer}" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/WordBuilding/bgImage.png" onInCorrect="lido-avatar.avatarAnimate='Fail';this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success';this.sleep='1200';data.z-index='100'; data.boxShadow='0 0 40px #FFC107';this.sleep='300'; this.sleep='400'; data.boxShadow='none';this.sleep='2000';" is-continue-on-correct="${args.PracticeMode}" is-allow-only-correct="${args.PracticeMode}" onEntry="blank.z-index='12';">
|
|
42
42
|
<!-- Chimple Avatar -->
|
|
43
43
|
<lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape. 373px,portrait.402px" width="landscape.304px,portrait.398px" x="landscape.0%, portrait.28%" y="landscape.51%, portrait.77%" aria-hidden="true" z="1" bg-color="transparent" visible="true" >
|
|
44
44
|
<lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
|
|
@@ -3,6 +3,10 @@ import { highlightSpeakingElement, stopHighlightForSpeakingElement } from "./uti
|
|
|
3
3
|
import { setDraggingDisabled } from "./utilsHandlers/dragDropHandler";
|
|
4
4
|
import { NextContainerKey, PrevContainerKey, ActivityChangeKey, GameCompletedKey, GameExitKey, ActivityEndKey, LessonEndKey } from "./constants";
|
|
5
5
|
export class AudioPlayer {
|
|
6
|
+
isSpeakDisabled(element) {
|
|
7
|
+
const text = element.closest('lido-text');
|
|
8
|
+
return (text === null || text === void 0 ? void 0 : text.getAttribute('disable-speak')) === 'true';
|
|
9
|
+
}
|
|
6
10
|
constructor() {
|
|
7
11
|
this.handleUserClick = () => {
|
|
8
12
|
this.stop();
|
|
@@ -376,6 +376,7 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
376
376
|
dummyElement.classList.remove('dropped');
|
|
377
377
|
dummyElement.removeAttribute('drop-to');
|
|
378
378
|
dummyElement.removeAttribute('drop-time');
|
|
379
|
+
dummyElement.style.opacity = "1";
|
|
379
380
|
dragElement.style.width = dropElement.style.width;
|
|
380
381
|
dragElement.style.height = dropElement.style.height;
|
|
381
382
|
dragElement.setAttribute('hasDummy', 'true');
|
|
@@ -451,6 +452,7 @@ function cloneElementWithComputedStyles(originalEl) {
|
|
|
451
452
|
clone.style.margin = originalEl.style.margin;
|
|
452
453
|
clone.style.opacity = originalEl.style.opacity;
|
|
453
454
|
clone.style.transform = originalEl.style.transform;
|
|
455
|
+
clone.style.borderRadius = originalEl.style.borderRadius;
|
|
454
456
|
clone.setAttribute("visible", "true");
|
|
455
457
|
clone.setAttribute("data-dummy", "true");
|
|
456
458
|
if (tag === "lido-math-matrix") {
|
|
@@ -601,10 +603,10 @@ export async function onActivityComplete(dragElement, dropElement) {
|
|
|
601
603
|
drag[index].push(dragElement.id);
|
|
602
604
|
const allElements = document.querySelectorAll("[type='drop']");
|
|
603
605
|
allElements.forEach(otherElement => {
|
|
604
|
-
var _a;
|
|
606
|
+
var _a, _b;
|
|
605
607
|
const storedTabIndexes = Object.keys(dragScore).map(Number);
|
|
606
608
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
607
|
-
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
609
|
+
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal) && !(((_b = container.getAttribute('drop-action')) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === DropMode.InfiniteDrop)) {
|
|
608
610
|
if (otherElement) {
|
|
609
611
|
otherElement.style.opacity = "0";
|
|
610
612
|
}
|
|
@@ -645,7 +647,6 @@ const storeActivityScore = (score) => {
|
|
|
645
647
|
export const handleShowCheck = () => {
|
|
646
648
|
var _a, _b;
|
|
647
649
|
const container = document.getElementById(LidoContainer);
|
|
648
|
-
container.setAttribute("click-completed", "true");
|
|
649
650
|
const objectiveString = container['objective'];
|
|
650
651
|
const selectValues = (_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '';
|
|
651
652
|
const checkButton = document.querySelector('#lido-checkButton');
|
|
@@ -670,7 +671,10 @@ export const handleShowCheck = () => {
|
|
|
670
671
|
}
|
|
671
672
|
}
|
|
672
673
|
else {
|
|
673
|
-
|
|
674
|
+
if (!container.getAttribute("game-completed")) {
|
|
675
|
+
validateObjectiveStatus();
|
|
676
|
+
}
|
|
677
|
+
container.setAttribute("game-completed", "true");
|
|
674
678
|
}
|
|
675
679
|
};
|
|
676
680
|
const body = document.body;
|
|
@@ -721,7 +725,9 @@ export const validateObjectiveStatus = async () => {
|
|
|
721
725
|
if (attach === 'true') {
|
|
722
726
|
appendingDragElementsInDrop();
|
|
723
727
|
}
|
|
724
|
-
|
|
728
|
+
if (container.querySelectorAll("[type='click']").length > 0) {
|
|
729
|
+
storingEachActivityScore(true);
|
|
730
|
+
}
|
|
725
731
|
await executeActions(onCorrect, container);
|
|
726
732
|
}
|
|
727
733
|
if (container.getAttribute('dropAttr') === 'EnableAnimation') {
|
|
@@ -747,7 +753,7 @@ export const validateObjectiveStatus = async () => {
|
|
|
747
753
|
const onInCorrect = container.getAttribute('onInCorrect');
|
|
748
754
|
storingEachActivityScore(false);
|
|
749
755
|
await executeActions(onInCorrect, container);
|
|
750
|
-
container.removeAttribute("
|
|
756
|
+
container.removeAttribute("game-completed");
|
|
751
757
|
}
|
|
752
758
|
}
|
|
753
759
|
};
|
|
@@ -1231,21 +1237,18 @@ export const questionBoxAnimation = async (element, value) => {
|
|
|
1231
1237
|
const dragElements = Array.from(element.querySelectorAll("[type='drag']"));
|
|
1232
1238
|
// Ensure all drag childrens which is dropped disappear
|
|
1233
1239
|
dragElements.forEach(dragElement => {
|
|
1234
|
-
|
|
1240
|
+
const dropToAttr = dragElement.getAttribute('drop-to');
|
|
1241
|
+
if (dropToAttr && dropToAttr !== '') {
|
|
1235
1242
|
dragElement.style.transition = 'opacity 0.5s ease';
|
|
1236
1243
|
dragElement.style.opacity = '0'; // Fade out
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
dropElements.forEach(dropEl => {
|
|
1246
|
-
const dropVal = dropEl.getAttribute("value");
|
|
1247
|
-
if (dropVal && dropEl.innerText.trim() === "?") {
|
|
1248
|
-
dropEl.innerText = dropVal;
|
|
1244
|
+
const dropEl = document.getElementById(dropToAttr);
|
|
1245
|
+
const dragVal = dragElement.getAttribute("value");
|
|
1246
|
+
if (dragVal && dropEl.innerText.trim() === "?") {
|
|
1247
|
+
dropEl.innerText = dragVal;
|
|
1248
|
+
}
|
|
1249
|
+
// setTimeout(() => {
|
|
1250
|
+
// // dragElement.remove() // Remove from view after fade-out
|
|
1251
|
+
// }, 500);
|
|
1249
1252
|
}
|
|
1250
1253
|
});
|
|
1251
1254
|
};
|
|
@@ -110,9 +110,7 @@ export function addClickListenerForClickType(element) {
|
|
|
110
110
|
// storingEachActivityScore(isCorrect);
|
|
111
111
|
// }
|
|
112
112
|
highlightElement();
|
|
113
|
-
|
|
114
|
-
handleShowCheck();
|
|
115
|
-
}
|
|
113
|
+
handleShowCheck();
|
|
116
114
|
return;
|
|
117
115
|
}
|
|
118
116
|
if (showCheck) {
|
|
@@ -108,12 +108,12 @@ export function highlightElement() {
|
|
|
108
108
|
if (!container)
|
|
109
109
|
return;
|
|
110
110
|
const dropElements = buildDropHasDragFromDOM();
|
|
111
|
+
const dropEls = container.querySelectorAll(`[type="drop"]`);
|
|
112
|
+
dropEls.forEach(dropEl => {
|
|
113
|
+
dropEl.classList.remove('highlight-element');
|
|
114
|
+
});
|
|
111
115
|
let firstFalse = Object.values(dropElements).find(item => !item.isFull);
|
|
112
116
|
if (firstFalse) {
|
|
113
|
-
const dropEls = container.querySelectorAll(`[type="drop"]`);
|
|
114
|
-
dropEls.forEach(dropEl => {
|
|
115
|
-
dropEl.classList.remove('highlight-element');
|
|
116
|
-
});
|
|
117
117
|
const dropEle = container.querySelector(`#${firstFalse.drop}`);
|
|
118
118
|
if (dropEle) {
|
|
119
119
|
dropEle.classList.add('highlight-element');
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { f as format, g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-
|
|
1
|
+
export { f as format, g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-738d415b.js';
|