lido-player 0.0.2-alpha-61 → 0.0.2-alpha-63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/cjs/index.cjs.js +1 -1
  2. package/dist/cjs/lido-avatar_22.cjs.entry.js +92 -11
  3. package/dist/cjs/{utils-9cf49b55.js → utils-b13cba29.js} +30 -27
  4. package/dist/collection/components/container/lido-container.js +28 -1
  5. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +1 -1
  6. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +1 -1
  7. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +1 -1
  8. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +3 -2
  9. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +3 -2
  10. package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +1 -1
  11. package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +2 -2
  12. package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +1 -1
  13. package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +3 -4
  14. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +5 -6
  15. package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +1 -1
  16. package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +1 -1
  17. package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +2 -1
  18. package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +3 -3
  19. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +2 -2
  20. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +5 -1
  21. package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +5 -1
  22. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +1 -1
  23. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +1 -1
  24. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +3 -3
  25. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +3 -3
  26. package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +1 -1
  27. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +1 -1
  28. package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +1 -1
  29. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +1 -1
  30. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +1 -1
  31. package/dist/collection/utils/audioPlayer.js +1 -1
  32. package/dist/collection/utils/utils.js +4 -1
  33. package/dist/collection/utils/utilsHandlers/clickHandler.js +25 -24
  34. package/dist/components/index.js +1 -1
  35. package/dist/components/lido-avatar.js +1 -1
  36. package/dist/components/lido-balance.js +1 -1
  37. package/dist/components/lido-calculator.js +1 -1
  38. package/dist/components/lido-canvas.js +1 -1
  39. package/dist/components/lido-cell.js +1 -1
  40. package/dist/components/lido-col.js +1 -1
  41. package/dist/components/lido-container.js +1 -1
  42. package/dist/components/lido-flash-card.js +1 -1
  43. package/dist/components/lido-float.js +1 -1
  44. package/dist/components/lido-home.js +1 -1
  45. package/dist/components/lido-image.js +1 -1
  46. package/dist/components/lido-keyboard.js +1 -1
  47. package/dist/components/lido-math-matrix.js +1 -1
  48. package/dist/components/lido-pos.js +1 -1
  49. package/dist/components/lido-random.js +1 -1
  50. package/dist/components/lido-root.js +22 -22
  51. package/dist/components/lido-row.js +1 -1
  52. package/dist/components/lido-shape.js +1 -1
  53. package/dist/components/lido-slide-fill.js +1 -1
  54. package/dist/components/lido-text.js +1 -1
  55. package/dist/components/lido-trace.js +1 -1
  56. package/dist/components/lido-wrap.js +1 -1
  57. package/dist/components/{p-e4b71ba1.js → p-196e9b0e.js} +64 -10
  58. package/dist/components/{p-0f54f212.js → p-1a53b784.js} +2 -2
  59. package/dist/components/{p-4c1d15df.js → p-228a12b2.js} +2 -2
  60. package/dist/components/{p-8632f479.js → p-302d1390.js} +21 -21
  61. package/dist/components/{p-3c9dd098.js → p-39767aae.js} +1 -1
  62. package/dist/components/{p-572f8490.js → p-3db5a756.js} +1 -1
  63. package/dist/components/{p-2b0ef6d4.js → p-40dd6fa3.js} +1 -1
  64. package/dist/components/{p-4ec94e44.js → p-552f581f.js} +1 -1
  65. package/dist/components/{p-16a6a6f6.js → p-64b85ae6.js} +1 -1
  66. package/dist/components/{p-76947363.js → p-6c1ea24d.js} +1 -1
  67. package/dist/components/{p-df6042b0.js → p-7256917d.js} +1 -1
  68. package/dist/components/{p-be063cbd.js → p-777293d6.js} +1 -1
  69. package/dist/components/{p-d28496a9.js → p-85eaa0b7.js} +1 -1
  70. package/dist/components/{p-2fedf56d.js → p-8f174468.js} +1 -1
  71. package/dist/components/{p-27bfb88f.js → p-adfef26f.js} +30 -3
  72. package/dist/components/{p-40afd35f.js → p-bd09bc5b.js} +30 -27
  73. package/dist/components/{p-f241ab97.js → p-bf0c1e81.js} +1 -1
  74. package/dist/components/{p-2ce1503f.js → p-cdb5b0e6.js} +1 -1
  75. package/dist/components/{p-4a1af1bb.js → p-d2d6e641.js} +1 -1
  76. package/dist/components/{p-97ca067d.js → p-d31bcfae.js} +3 -3
  77. package/dist/components/{p-6bee9883.js → p-e42ddea5.js} +1 -1
  78. package/dist/components/{p-dfa70e99.js → p-f4c980f0.js} +1 -1
  79. package/dist/esm/index.js +1 -1
  80. package/dist/esm/lido-avatar_22.entry.js +92 -11
  81. package/dist/esm/{utils-01d6cbb5.js → utils-b7ed15c2.js} +30 -27
  82. package/dist/lido-player/index.esm.js +1 -1
  83. package/dist/lido-player/lido-player.esm.js +1 -1
  84. package/dist/lido-player/{p-c5ca9462.js → p-1557f3df.js} +2 -2
  85. package/dist/lido-player/p-c309d462.entry.js +1 -0
  86. package/dist/types/utils/constants.d.ts +28 -1
  87. package/package.json +1 -1
  88. package/dist/lido-player/p-e4d5dabf.entry.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const utils = require('./utils-9cf49b55.js');
5
+ const utils = require('./utils-b13cba29.js');
6
6
  require('./index-baff5c15.js');
7
7
 
8
8
 
@@ -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-9cf49b55.js');
6
+ const utils = require('./utils-b13cba29.js');
7
7
 
8
8
  var rive = {exports: {}};
9
9
 
@@ -9810,7 +9810,34 @@ const instruction$4 = {
9810
9810
  dragAndDrop: "Match the items by dragging and dropping them into the correct places.",
9811
9811
  mcq: "Select the correct answer from the options provided.",
9812
9812
  tracing: "Trace the shape by following the outline carefully.",
9813
- flashcards: "Review the flashcards to reinforce your learning."
9813
+ flashcards: "Review the flashcards to reinforce your learning.",
9814
+ substractionWithImage: "substractionWithImageEngAudio",
9815
+ substractionWithoutImage: "substractionWithoutImageEngAudio",
9816
+ numberIdentificationWithImage: "numberIdentificationWithImageEngAudio",
9817
+ numberIdentificationWithoutImage: "numberIdentificationWithoutImageEngAudio",
9818
+ wordBuildingWithImage: "wordBuildingWithImageEngAudio",
9819
+ wordBuildingWithoutImage: "wordBuildingWithoutImageEngAudio",
9820
+ pictureClues: "pictureCluesEngAudio",
9821
+ pictureWordMatchMultipleImages: "pictureWordMatchMultipleImagesEngAudio",
9822
+ pictureWordMatchSingleImage: "pictureWordMatchSingleImageEngAudio",
9823
+ sentenceMatch: "sentenceMatchEngAudio",
9824
+ imageMatch: "imageMatchEngAudio",
9825
+ palStoryTale: "palStoryTaleEngAudio",
9826
+ palEgmaPatternMatching: "palEgmaPatternMatchingEngAudio",
9827
+ palEgmaWordProblemDragnDrop: "palEgmaWordProblemDragnDropEngAudio",
9828
+ palEgmaWordProblemClick: "palEgmaWordProblemClickEngAudio",
9829
+ palEgraOddOneOut: "palEgraOddOneOutEngAudio",
9830
+ palEgraArrangePictures: "palEgraArrangePicturesEngAudio",
9831
+ palEgraBuildWord: "palEgraBuildWordEngAudio",
9832
+ palEgraWordFormation: "palEgraWordFormationEngAudio",
9833
+ palInventedSpelling: "palInventedSpellingEngAudio",
9834
+ palLetterIdentification: "palLetterIdentificationEngAudio",
9835
+ palStoryMaking: "palStoryMakingEngAudio",
9836
+ palegmasumtogether: "palegmasumtogetherEngAudio",
9837
+ palegmamultioption: "palegmamultioptionEngAudio",
9838
+ palegraoptionaudio: "palegraoptionaudioEngAudio",
9839
+ palegrawordmatch: "palegrawordmatchEngAudio",
9840
+ palegramcqimages: "palegramcqimagesEngAudio"
9814
9841
  };
9815
9842
  const en = {
9816
9843
  "Do you want to exit?": "Do you want to exit?",
@@ -9839,10 +9866,37 @@ const fr = {
9839
9866
 
9840
9867
  const Exit$3 = "बाहर निकलें";
9841
9868
  const instruction$2 = {
9842
- dragAndDrop: "वस्तुओं को सही स्थानों पर खींचकर और छोड़कर मिलाएँ।",
9843
- mcq: "दिए गए विकल्पों में से सही उत्तर चुनें।",
9844
- tracing: "रेखा का सावधानीपूर्वक अनुसरण करते हुए आकृति बनाएँ।",
9845
- flashcards: "सीख को मजबूत करने के लिए फ्लैशकार्ड देखें।"
9869
+ dragAndDrop: "Match_the_items_by_dragging_and_dropping_them_into_the_correct_places.",
9870
+ mcq: "Select the correct answer from the options provided.",
9871
+ tracing: "Trace the shape by following the outline carefully.",
9872
+ flashcards: "Review the flashcards to reinforce your learning.",
9873
+ substractionWithImage: "substractionWithImageHiAudio",
9874
+ substractionWithoutImage: "substractionWithoutImageHiAudio",
9875
+ numberIdentificationWithImage: "numberIdentificationWithImageHiAudio",
9876
+ numberIdentificationWithoutImage: "numberIdentificationWithoutImageHiAudio",
9877
+ wordBuildingWithImage: "wordBuildingWithImageHiAudio",
9878
+ wordBuildingWithoutImage: "wordBuildingWithoutImageHiAudio",
9879
+ pictureClues: "pictureCluesHiAudio",
9880
+ pictureWordMatchMultipleImages: "pictureWordMatchMultipleImagesHiAudio",
9881
+ pictureWordMatchSingleImage: "pictureWordMatchSingleImageHiAudio",
9882
+ sentenceMatch: "sentenceMatchHiAudio",
9883
+ imageMatch: "imageMatchHiAudio",
9884
+ palStoryTale: "palStoryTaleHiAudio",
9885
+ palEgmaPatternMatching: "palEgmaPatternMatchingHiAudio",
9886
+ palEgmaWordProblemDragnDrop: "palEgmaWordProblemDragnDropHiAudio",
9887
+ palEgmaWordProblemClick: "palEgmaWordProblemClickHiAudio",
9888
+ palEgraOddOneOut: "palEgraOddOneOutHiAudio",
9889
+ palEgraArrangePictures: "palEgraArrangePicturesHiAudio",
9890
+ palEgraBuildWord: "palEgraBuildWordHiAudio",
9891
+ palEgraWordFormation: "palEgraWordFormationHiAudio",
9892
+ palInventedSpelling: "palInventedSpellingHiAudio",
9893
+ palLetterIdentification: "palLetterIdentificationHiAudio",
9894
+ palStoryMaking: "palStoryMakingHiAudio",
9895
+ palegmasumtogether: "palegmasumtogetherHiAudio",
9896
+ palegmamultioption: "palegmamultioptionHiAudio",
9897
+ palegraoptionaudio: "palegraoptionaudioHiAudio",
9898
+ palegrawordmatch: "palegrawordmatchHiAudio",
9899
+ palegramcqimages: "palegramcqimagesHiAudio"
9846
9900
  };
9847
9901
  const hi = {
9848
9902
  "Do you want to exit?": "क्या आप बाहर निकलना चाहते हैं?",
@@ -9888,10 +9942,10 @@ const port = {
9888
9942
  };
9889
9943
 
9890
9944
  const instruction = {
9891
- dragAndDrop: "वस्तू योग्य ठिकाणी ओढून आणि सोडून जुळवा",
9892
- mcq: "दिलेल्या पर्यायांमधून योग्य उत्तर निवडा",
9893
- tracing: "रेषेचा काळजीपूर्वक मागोवा घेत आकृती काढा",
9894
- flashcards: "तुमचे शिक्षण मजबूत करण्यासाठी फ्लॅशकार्ड्स पाहा"
9945
+ dragAndDrop: "वस्तू योग्य ठिकाणी ओढून आणि सोडून जुळवा.",
9946
+ mcq: "दिलेल्या पर्यायांमधून योग्य उत्तर निवडा.",
9947
+ tracing: "रेषेचा काळजीपूर्वक मागोवा घेत आकृती काढा.",
9948
+ flashcards: "तुमचे शिक्षण मजबूत करण्यासाठी फ्लॅशकार्ड्स पाहा."
9895
9949
  };
9896
9950
  const ma = {
9897
9951
  instruction: instruction
@@ -9985,6 +10039,33 @@ const LidoContainer = class {
9985
10039
  mcq: "instruction.mcq" /* templateAudio.mcq */,
9986
10040
  tracing: "instruction.tracing" /* templateAudio.tracing */,
9987
10041
  dragAndDrop: "instruction.dragAndDrop" /* templateAudio.dragAndDrop */,
10042
+ substractionWithImage: "instruction.substractionWithImage" /* templateAudio.substractionWithImage */,
10043
+ "substractionWithoutImage": "instruction.substractionWithoutImage" /* templateAudio.substractionWithoutImage */,
10044
+ "numberIdentificationWithImage": "instruction.numberIdentificationWithImage" /* templateAudio.numberIdentificationWithImage */,
10045
+ "numberIdentificationWithoutImage": "instruction.numberIdentificationWithoutImage" /* templateAudio.numberIdentificationWithoutImage */,
10046
+ "wordBuildingWithImage": "instruction.wordBuildingWithImage" /* templateAudio.wordBuildingWithImage */,
10047
+ "wordBuildingWithoutImage": "instruction.wordBuildingWithoutImage" /* templateAudio.wordBuildingWithoutImage */,
10048
+ "pictureClues": "instruction.pictureClues" /* templateAudio.pictureClues */,
10049
+ "pictureWordMatchMultipleImages": "instruction.pictureWordMatchMultipleImages" /* templateAudio.pictureWordMatchMultipleImages */,
10050
+ "pictureWordMatchSingleImage": "instruction.pictureWordMatchSingleImage" /* templateAudio.pictureWordMatchSingleImage */,
10051
+ "sentenceMatch": "instruction.sentenceMatch" /* templateAudio.sentenceMatch */,
10052
+ "imageMatch": "instruction.imageMatch" /* templateAudio.imageMatch */,
10053
+ "palStoryTale": "instruction.palStoryTale" /* templateAudio.palStoryTale */,
10054
+ "palEgmaPatternMatching": "instruction.palEgmaPatternMatching" /* templateAudio.palEgmaPatternMatching */,
10055
+ "palEgmaWordProblemDragnDrop": "instruction.palEgmaWordProblemDragnDrop" /* templateAudio.palEgmaWordProblemDragnDrop */,
10056
+ "palEgmaWordProblemClick": "instruction.palEgmaWordProblemClick" /* templateAudio.palEgmaWordProblemClick */,
10057
+ "palEgraOddOneOut": "instruction.palEgraOddOneOut" /* templateAudio.palEgraOddOneOut */,
10058
+ "palEgraArrangePictures": "instruction.palEgraArrangePictures" /* templateAudio.palEgraArrangePictures */,
10059
+ "palEgraBuildWord": "instruction.palEgraBuildWord" /* templateAudio.palEgraBuildWord */,
10060
+ "palEgraWordFormation": "instruction.palEgraWordFormation" /* templateAudio.palEgraWordFormation */,
10061
+ "palInventedSpelling": "instruction.palInventedSpelling" /* templateAudio.palInventedSpelling */,
10062
+ "palLetterIdentification": "instruction.palLetterIdentification" /* templateAudio.palLetterIdentification */,
10063
+ "palStoryMaking": "instruction.palStoryMaking" /* templateAudio.palStoryMaking */,
10064
+ "palegmasumtogether": "instruction.palegmasumtogether" /* templateAudio.palegmasumtogether */,
10065
+ "palegmamultioption": "instruction.palegmamultioption" /* templateAudio.palegmamultioption */,
10066
+ "palegraoptionaudio": "instruction.palegraoptionaudio" /* templateAudio.palegraoptionaudio */,
10067
+ "palegrawordmatch": "instruction.palegrawordmatch" /* templateAudio.palegrawordmatch */,
10068
+ "palegramcqimages": "instruction.palegramcqimages" /* templateAudio.palegramcqimages */,
9988
10069
  }[this.templateId]) !== null && _a !== void 0 ? _a : '';
9989
10070
  this.instructName = key ? instance.t(key) : '';
9990
10071
  const home = document.querySelector('lido-home');
@@ -10140,7 +10221,7 @@ const LidoContainer = class {
10140
10221
  userSelect: 'none', // Prevent any field selection
10141
10222
  };
10142
10223
  console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
10143
- return (index.h(index.Host, { key: 'b2b35ac6c3be99cabf0eeaf2708611bfd4c3360c', id: "lido-container", Lang: this.Lang, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak, "template-id": this.templateId, audio: this.audio }, index.h("lido-text", { key: 'ebd91c0603caa4e52d583dd86a1692b57b99afb4', visible: "false", id: this.templateId, audio: "", string: this.instructName }), index.h("slot", { key: '76f7f53558af814bbd0ce4516b80d4fa970e3c48' })));
10224
+ return (index.h(index.Host, { key: '63931aa1e8ffe4b1b427f851f7a7f0197f4c0c33', id: "lido-container", Lang: this.Lang, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak, "template-id": this.templateId, audio: this.audio }, index.h("lido-text", { key: 'b8857a16147d8eac74f8c4bc70eec2558ddc888b', visible: "false", id: this.templateId, audio: "", string: this.instructName }), index.h("slot", { key: '7b6369dd2d859ee824d3fca53486aa8f5dd6fa34' })));
10144
10225
  }
10145
10226
  get el() { return index.getElement(this); }
10146
10227
  static get watchers() { return {
@@ -1309,7 +1309,7 @@ class AudioPlayer {
1309
1309
  try {
1310
1310
  setDraggingDisabled(true);
1311
1311
  highlightSpeakingElement(targetElement);
1312
- window.addEventListener('click', this.handleUserClick, true);
1312
+ // window.addEventListener('click', this.handleUserClick, true);
1313
1313
  await this.audioElement.play();
1314
1314
  await new Promise(resolve => {
1315
1315
  this.audioElement.onended = () => {
@@ -3242,9 +3242,9 @@ function onTouchListenerForOnTouch(element) {
3242
3242
  return;
3243
3243
  const container = document.getElementById('lido-container');
3244
3244
  // const container = element.closest('lido-container') as HTMLElement;
3245
- if (container && container.getAttribute('disable-speak') === 'true') {
3246
- return;
3247
- }
3245
+ // if (container && container.getAttribute('disable-speak') === 'true') {
3246
+ // return;
3247
+ // }
3248
3248
  // if (element.closest('[disableSpeak="true"]')) {
3249
3249
  // return;
3250
3250
  // }
@@ -3253,13 +3253,16 @@ function onTouchListenerForOnTouch(element) {
3253
3253
  let onholdTriggered = false;
3254
3254
  const onholdTime = 1000;
3255
3255
  const playAudio = async () => {
3256
+ if (container && container.getAttribute('disable-speak') === 'true') {
3257
+ return;
3258
+ }
3256
3259
  onholdTriggered = true;
3257
3260
  setDraggingDisabled(true);
3258
3261
  await AudioPlayer.getI().play(element);
3259
3262
  setDraggingDisabled(false);
3260
3263
  };
3261
3264
  const onPointerDown = (event) => {
3262
- // event.stopPropagation();
3265
+ event.stopPropagation();
3263
3266
  onholdTriggered = false;
3264
3267
  onholdTimer = setTimeout(() => {
3265
3268
  playAudio();
@@ -3267,18 +3270,13 @@ function onTouchListenerForOnTouch(element) {
3267
3270
  };
3268
3271
  const onPointerUp = async (event) => {
3269
3272
  clearTimeout(onholdTimer);
3270
- // If long-press happened → do nothing else
3271
- if (onholdTriggered) {
3272
- setDraggingDisabled(false);
3273
- return;
3274
- }
3275
- // If an onTouch action is defined, execute it on tap.
3276
- if (onTouch) {
3273
+ if (!onholdTriggered && onTouch) {
3277
3274
  await executeActions(onTouch, element);
3278
3275
  }
3279
- const type = element.getAttribute('type') || '';
3280
- if (['category', 'option', 'click'].includes(type)) {
3281
- element.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true }));
3276
+ else if (!onTouch) {
3277
+ if (['category', 'option'].includes(element.getAttribute('type') || '')) {
3278
+ element.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true }));
3279
+ }
3282
3280
  }
3283
3281
  setDraggingDisabled(false);
3284
3282
  };
@@ -3298,6 +3296,7 @@ function addClickListenerForClickType(element) {
3298
3296
  }
3299
3297
  const onClick = async () => {
3300
3298
  var _a;
3299
+ const container = document.getElementById(LidoContainer);
3301
3300
  const lido_buttons = element.getAttribute('id');
3302
3301
  if (lido_buttons === 'lido-arrow-left' || lido_buttons === 'lido-arrow-right') {
3303
3302
  return;
@@ -3307,7 +3306,6 @@ function addClickListenerForClickType(element) {
3307
3306
  if (hasValidAudio) {
3308
3307
  AudioPlayer.getI().stop();
3309
3308
  }
3310
- const container = document.getElementById(LidoContainer);
3311
3309
  const objective = container['objective'].split(',');
3312
3310
  const checkButton = document.querySelector('#lido-checkButton');
3313
3311
  const showCheck = container.getAttribute('show-check') === 'true';
@@ -3326,10 +3324,11 @@ function addClickListenerForClickType(element) {
3326
3324
  dispatchClickEvent(element, isCorrect);
3327
3325
  if (isCorrect || container.getAttribute('is-continue-on-correct') === 'false') {
3328
3326
  const onCorrect = element.getAttribute('onCorrect');
3329
- if (!(element.id && element.id.startsWith('key-button'))) {
3330
- element.style.pointerEvents = 'none';
3331
- }
3332
- document.body.style.pointerEvents = 'none';
3327
+ // if(!(element.id && element.id.startsWith('key-button')))
3328
+ // {
3329
+ // // element.style.pointerEvents = 'none';
3330
+ // }
3331
+ // document.body.style.pointerEvents = 'none';
3333
3332
  await executeActions(onCorrect, element);
3334
3333
  }
3335
3334
  else {
@@ -3338,12 +3337,14 @@ function addClickListenerForClickType(element) {
3338
3337
  // showWrongAnswerAnimation([element]);
3339
3338
  }
3340
3339
  // const calciEl=document.querySelector('#lidoCalculator') as any;
3341
- const isInsideCalculator = element.closest('#lidoCalculator') !== null;
3342
- if (!isInsideCalculator) {
3343
- storingEachActivityScore(isCorrect);
3344
- }
3340
+ // const isInsideCalculator = element.closest('#lidoCalculator') !== null;
3341
+ // if(!isInsideCalculator){
3342
+ // storingEachActivityScore(isCorrect);
3343
+ // }
3345
3344
  highlightElement();
3346
- handleShowCheck();
3345
+ if (!container.getAttribute("click-completed")) {
3346
+ handleShowCheck();
3347
+ }
3347
3348
  return;
3348
3349
  }
3349
3350
  if (showCheck) {
@@ -68953,7 +68954,7 @@ const executeActions = async (actionsString, thisElement, element) => {
68953
68954
  }
68954
68955
  }
68955
68956
  }
68956
- body.style.pointerEvents = 'auto';
68957
+ // body.style.pointerEvents = 'auto';
68957
68958
  };
68958
68959
  const afterDropDragHandling = (dragElement, dropElement) => {
68959
68960
  const container = document.getElementById(LidoContainer);
@@ -69241,6 +69242,7 @@ const storeActivityScore = (score) => {
69241
69242
  const handleShowCheck = () => {
69242
69243
  var _a, _b;
69243
69244
  const container = document.getElementById(LidoContainer);
69245
+ container.setAttribute("click-completed", "true");
69244
69246
  const objectiveString = container['objective'];
69245
69247
  const selectValues = (_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '';
69246
69248
  const checkButton = document.querySelector('#lido-checkButton');
@@ -69268,7 +69270,6 @@ const handleShowCheck = () => {
69268
69270
  validateObjectiveStatus();
69269
69271
  }
69270
69272
  };
69271
- const body = document.body;
69272
69273
  let res;
69273
69274
  const validateObjectiveStatus = async () => {
69274
69275
  var _a, _b;
@@ -69334,6 +69335,7 @@ const validateObjectiveStatus = async () => {
69334
69335
  const onCorrect = container.getAttribute('onCorrect');
69335
69336
  if (!isContinueOnCorrect) {
69336
69337
  await calculateScore();
69338
+ storingEachActivityScore(false);
69337
69339
  await executeActions(onCorrect, container);
69338
69340
  triggerNextContainer();
69339
69341
  }
@@ -69341,6 +69343,7 @@ const validateObjectiveStatus = async () => {
69341
69343
  const onInCorrect = container.getAttribute('onInCorrect');
69342
69344
  storingEachActivityScore(false);
69343
69345
  await executeActions(onInCorrect, container);
69346
+ container.removeAttribute("click-completed");
69344
69347
  }
69345
69348
  }
69346
69349
  };
@@ -71,6 +71,33 @@ export class LidoContainer {
71
71
  mcq: "instruction.mcq" /* templateAudio.mcq */,
72
72
  tracing: "instruction.tracing" /* templateAudio.tracing */,
73
73
  dragAndDrop: "instruction.dragAndDrop" /* templateAudio.dragAndDrop */,
74
+ substractionWithImage: "instruction.substractionWithImage" /* templateAudio.substractionWithImage */,
75
+ "substractionWithoutImage": "instruction.substractionWithoutImage" /* templateAudio.substractionWithoutImage */,
76
+ "numberIdentificationWithImage": "instruction.numberIdentificationWithImage" /* templateAudio.numberIdentificationWithImage */,
77
+ "numberIdentificationWithoutImage": "instruction.numberIdentificationWithoutImage" /* templateAudio.numberIdentificationWithoutImage */,
78
+ "wordBuildingWithImage": "instruction.wordBuildingWithImage" /* templateAudio.wordBuildingWithImage */,
79
+ "wordBuildingWithoutImage": "instruction.wordBuildingWithoutImage" /* templateAudio.wordBuildingWithoutImage */,
80
+ "pictureClues": "instruction.pictureClues" /* templateAudio.pictureClues */,
81
+ "pictureWordMatchMultipleImages": "instruction.pictureWordMatchMultipleImages" /* templateAudio.pictureWordMatchMultipleImages */,
82
+ "pictureWordMatchSingleImage": "instruction.pictureWordMatchSingleImage" /* templateAudio.pictureWordMatchSingleImage */,
83
+ "sentenceMatch": "instruction.sentenceMatch" /* templateAudio.sentenceMatch */,
84
+ "imageMatch": "instruction.imageMatch" /* templateAudio.imageMatch */,
85
+ "palStoryTale": "instruction.palStoryTale" /* templateAudio.palStoryTale */,
86
+ "palEgmaPatternMatching": "instruction.palEgmaPatternMatching" /* templateAudio.palEgmaPatternMatching */,
87
+ "palEgmaWordProblemDragnDrop": "instruction.palEgmaWordProblemDragnDrop" /* templateAudio.palEgmaWordProblemDragnDrop */,
88
+ "palEgmaWordProblemClick": "instruction.palEgmaWordProblemClick" /* templateAudio.palEgmaWordProblemClick */,
89
+ "palEgraOddOneOut": "instruction.palEgraOddOneOut" /* templateAudio.palEgraOddOneOut */,
90
+ "palEgraArrangePictures": "instruction.palEgraArrangePictures" /* templateAudio.palEgraArrangePictures */,
91
+ "palEgraBuildWord": "instruction.palEgraBuildWord" /* templateAudio.palEgraBuildWord */,
92
+ "palEgraWordFormation": "instruction.palEgraWordFormation" /* templateAudio.palEgraWordFormation */,
93
+ "palInventedSpelling": "instruction.palInventedSpelling" /* templateAudio.palInventedSpelling */,
94
+ "palLetterIdentification": "instruction.palLetterIdentification" /* templateAudio.palLetterIdentification */,
95
+ "palStoryMaking": "instruction.palStoryMaking" /* templateAudio.palStoryMaking */,
96
+ "palegmasumtogether": "instruction.palegmasumtogether" /* templateAudio.palegmasumtogether */,
97
+ "palegmamultioption": "instruction.palegmamultioption" /* templateAudio.palegmamultioption */,
98
+ "palegraoptionaudio": "instruction.palegraoptionaudio" /* templateAudio.palegraoptionaudio */,
99
+ "palegrawordmatch": "instruction.palegrawordmatch" /* templateAudio.palegrawordmatch */,
100
+ "palegramcqimages": "instruction.palegramcqimages" /* templateAudio.palegramcqimages */,
74
101
  }[this.templateId]) !== null && _a !== void 0 ? _a : '';
75
102
  this.instructName = key ? i18next.t(key) : '';
76
103
  const home = document.querySelector('lido-home');
@@ -226,7 +253,7 @@ export class LidoContainer {
226
253
  userSelect: 'none', // Prevent any field selection
227
254
  };
228
255
  console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
229
- return (h(Host, { key: 'b2b35ac6c3be99cabf0eeaf2708611bfd4c3360c', id: "lido-container", Lang: this.Lang, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak, "template-id": this.templateId, audio: this.audio }, h("lido-text", { key: 'ebd91c0603caa4e52d583dd86a1692b57b99afb4', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: '76f7f53558af814bbd0ce4516b80d4fa970e3c48' })));
256
+ return (h(Host, { key: '63931aa1e8ffe4b1b427f851f7a7f0197f4c0c33', id: "lido-container", Lang: this.Lang, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak, "template-id": this.templateId, audio: this.audio }, h("lido-text", { key: 'b8857a16147d8eac74f8c4bc70eec2558ddc888b', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: '7b6369dd2d859ee824d3fca53486aa8f5dd6fa34' })));
230
257
  }
231
258
  static get is() { return "lido-container"; }
232
259
  static get originalStyleUrls() {
@@ -33,7 +33,7 @@ function getContainerXml(args) {
33
33
  let tabCounter = 1;
34
34
  const { isAllowOnlyCorrect = true } = args;
35
35
  return `<main>
36
- <lido-container id="lido-container" value="maincontainer" visible="true" objective="${args.answer}" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Quiz%20literacy.png" onEntry="text1.speak='true';" is-allow-only-correct="${args.PracticeMode}" is-Continue-On-Correct="${args.PracticeMode}" onInCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';">
36
+ <lido-container disable-speak="true" id="lido-container" value="maincontainer" visible="true" objective="${args.answer}" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Quiz%20literacy.png" onEntry="text1.speak='true';" is-allow-only-correct="${args.PracticeMode}" is-Continue-On-Correct="${args.PracticeMode}" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';">
37
37
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos1" height="landscape.345px,portrait.401px" width="landscape.308px,portrait.401px" x="landscape.24%, portrait.24%" y="landscape.60%, portrait.83%" aria-hidden="true" z="2" bg-color="transparent" type="" visible="true" audio="" onTouch="" onCorrect="">
38
38
  <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/temp1/chimplecharacter.riv" alt-text="{chimpleCharacterRive}" bg-color="transparent">
39
39
  </lido-avatar>
@@ -34,7 +34,7 @@ export const numberIdentificationimageTotext = {
34
34
  function getContainerXml(args) {
35
35
  let tabCounter = 1;
36
36
  return `<main>
37
- <lido-container visible="true" id="lido-container" template-id="mcq" onInCorrect="lido-avatar.avatarAnimate='Success';this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success';this.sleep='2300';" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/pal_number_identification/bgImage.png" objective="${args.answer}" is-continue-on-correct="${args.PracticeMode}" is-allow-only-correct="${args.PracticeMode}" onEntry="question.speak='true';text1.speak='true';text2.speak='true';text3.speak='true';text4.speak='true';">
37
+ <lido-container disable-speak="true" visible="true" id="lido-container" template-id="mcq" onInCorrect="lido-avatar.avatarAnimate='Fail';this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success';this.sleep='2300';" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/pal_number_identification/bgImage.png" objective="${args.answer}" is-continue-on-correct="${args.PracticeMode}" is-allow-only-correct="${args.PracticeMode}" onEntry="question.speak='true';text1.speak='true';text2.speak='true';text3.speak='true';text4.speak='true';">
38
38
  <!-- Chimple Avatar -->
39
39
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.344px,portrait.402px" width="landscape.296px,portrait.398px" x="landscape.83%, portrait.28%" y="landscape.64%, portrait.77%" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
40
40
  <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}">
@@ -30,7 +30,7 @@ export const numberIdentificationtextTotext = {
30
30
  function getContainerXml(args) {
31
31
  let tabCounter = 1;
32
32
  return `<main>
33
- <lido-container visible="true" id="lido-container" template-id="mcq" onInCorrect="lido-avatar.avatarAnimate='Success';this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success';this.sleep='2300';" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/pal_number_identification/bgImage.png" objective="${args.answer}" is-continue-on-correct="${args.PracticeMode}" is-allow-only-correct="${args.PracticeMode}" onEntry="question.speak='true';text1.speak='true';text2.speak='true';text3.speak='true';text4.speak='true';">
33
+ <lido-container disable-speak="true" visible="true" id="lido-container" template-id="mcq" onInCorrect="lido-avatar.avatarAnimate='Fail';this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success';this.sleep='2300';" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/pal_number_identification/bgImage.png" objective="${args.answer}" is-continue-on-correct="${args.PracticeMode}" is-allow-only-correct="${args.PracticeMode}" onEntry="question.speak='true';text1.speak='true';text2.speak='true';text3.speak='true';text4.speak='true';">
34
34
  <!-- Chimple Avatar -->
35
35
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.344px,portrait.402px" width="landscape.296px,portrait.398px" x="landscape.83%, portrait.28%" y="landscape.64%, portrait.77%" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
36
36
  <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}">
@@ -45,13 +45,14 @@ function getContainerXml(args) {
45
45
  .join('\n');
46
46
  const clickCells = options
47
47
  .map((digit, i) => `
48
- <lido-text id="click-${digit}" tab-index="${50 + i}" height="landscape.212px, portrait.125px" width="landscape.270px, portrait.90px" visible="true" value="${digit}" string="${digit}" font-family="'Baloo Bhai 2'" font-color="black" type="click" font-size="104px" bg-color="#FFAC4C" onEntry="this.fontWeight='800'; this.borderRadius='24px'; this.flex-shrink='0';" border-image="" onCorrect="" onInCorrect="" >
48
+ <lido-text id="click-${digit}" disable-speak="true" tab-index="${50 + i}" height="landscape.212px, portrait.125px" width="landscape.270px, portrait.90px" visible="true" value="${digit}" string="${digit}" font-family="'Baloo Bhai 2'" font-color="black" type="click" font-size="104px" bg-color="#FFAC4C" onEntry="this.fontWeight='800'; this.borderRadius='24px'; this.flex-shrink='0';" border-image="" onCorrect="" onInCorrect="" >
49
49
  </lido-text>
50
50
  `)
51
51
  .join('\n');
52
52
  return `
53
53
  <main>
54
- <lido-container id="lido-container" objective="${objective}" tab-index="1" show-drop-border="false" is-continue-on-correct="${isAllowOnlyCorrect}" is-allow-only-correct="${isAllowOnlyCorrect}" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGMA/pal_egma_temp_3.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around'; invisibleText.speak='true';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" drop-action="infinite-drop" show-check="false">
54
+
55
+ <lido-container disable-speak="true" id="lido-container" objective="${objective}" tab-index="1" show-drop-border="false" is-continue-on-correct="${isAllowOnlyCorrect}" is-allow-only-correct="${isAllowOnlyCorrect}" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGMA/pal_egma_temp_3.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around'; invisibleText.speak='true';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" drop-action="infinite-drop" show-check="false">
55
56
 
56
57
  <!-- Chimple Avatar -->
57
58
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos1" height="landscape.600px, portrait.700px" width="landscape.393px, portrait.485px" x="landscape.1310px, portrait.450px" y="landscape.418px, portrait.1020px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="this.flex-shrink='0';">
@@ -43,14 +43,15 @@ function getContainerXml(args) {
43
43
  .join('\n');
44
44
  const dragCells = options
45
45
  .map((digit, i) => `
46
- <lido-text id="drag-${digit}" tab-index="${50 + i}" height="landscape.212px, portrait.125px" width="landscape.140px, portrait.90px" visible="true" value="${digit}" string="${digit}" font-family="'Baloo Bhai 2'" font-color="black" type="drag" font-size="104px" bg-color="#FFAC4C" onEntry="this.fontWeight='800'; this.borderRadius='16px'; this.flex-shrink='0';" border-image="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';">
46
+ <lido-text id="drag-${digit}" disable-speak="true" tab-index="${50 + i}" height="landscape.212px, portrait.125px" width="landscape.140px, portrait.90px" visible="true" value="${digit}" string="${digit}" font-family="'Baloo Bhai 2'" font-color="black" type="drag" font-size="104px" bg-color="#FFAC4C" onEntry="this.fontWeight='800'; this.borderRadius='16px'; this.flex-shrink='0';" border-image="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';">
47
47
  </lido-text>
48
48
  `)
49
49
  .join('\n');
50
50
  return `
51
51
  <main>
52
- <lido-container id="lido-container" objective="${objectiveString}" tab-index="1" template-id="dragAndDrop" show-drop-border="false" is-continue-on-correct="${isAllowOnlyCorrect}" is-allow-only-correct="${isAllowOnlyCorrect}" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGMA/pal_egma_temp_3.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="this.questionBoxAnimate='true'; lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around'; invisibleText.speak='true';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" drop-action="infinite-drop" show-check="false">
52
+ <lido-container id="lido-container" disable-speak="true" objective="${objectiveString}" tab-index="1" template-id="dragAndDrop" show-drop-border="false" is-continue-on-correct="${isAllowOnlyCorrect}" is-allow-only-correct="${isAllowOnlyCorrect}" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGMA/pal_egma_temp_3.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="this.questionBoxAnimate='true'; lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around'; invisibleText.speak='true';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" drop-action="infinite-drop" show-check="false">
53
53
 
54
+
54
55
  <!-- Chimple Avatar -->
55
56
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos1" height="landscape.600px, portrait.700px" width="landscape.393px, portrait.485px" x="landscape.1310px, portrait.450px" y="landscape.100px, portrait.1020px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="this.flex-shrink='0';">
56
57
  <lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="inherit" width="inherit" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" altText="{chimpleCharacterRive}" onEntry="">
@@ -64,7 +64,7 @@ function getContainerXml(args) {
64
64
  }).join('');
65
65
  return `
66
66
  <main>
67
- <lido-container visible="true" id="lido-container" template-id="mcq" onInCorrect="lido-avatar.avatarAnimate='Fail';this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success';this.sleep='2300';" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGMA/Frame%2051.svg" objective="${(args.questions.find(q => q.startsWith('@')) || '').slice(1)}" is-continue-on-correct="${args.PracticeMode}" is-allow-only-correct="${args.PracticeMode}" custom-style= "#text {
67
+ <lido-container disable-speak="true" visible="true" id="lido-container" template-id="mcq" onInCorrect="lido-avatar.avatarAnimate='Fail';this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success';this.sleep='2300';" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGMA/Frame%2051.svg" objective="${(args.questions.find(q => q.startsWith('@')) || '').slice(1)}" is-continue-on-correct="${args.PracticeMode}" is-allow-only-correct="${args.PracticeMode}" custom-style= "#text {
68
68
  box-shadow: none !important;
69
69
  }" onEntry="questionText.speak='true'; pattern1.speak='true'; pattern2.speak='true'; pattern3.speak='true'; pattern4.speak='true'; pattern5.speak='true'">
70
70
  <!-- Chimple Avatar -->
@@ -30,7 +30,7 @@ function getContainerXml(args) {
30
30
  const objectiveArray = args.answer.split('');
31
31
  const dropCells = objectiveArray
32
32
  .map((cell, i) => `
33
- <lido-text id="drop${i}" disable-edit="true" height="landscape.190px, portrait.auto" width="125px" visible="true" value="${cell}" string="?" font-family="'Baloo Bhai 2'" font-color="black" type="drop" font-size="landscape.130px, portrait.100px" bg-color="white" onEntry="this.fontWeight='800'; this.borderRadius='20px'; this.border='4px dashed #f34d08'" border-image="">
33
+ <lido-text id="drop${i}" disable-edit="true" tab-index="${10 + i}" height="landscape.190px, portrait.auto" width="125px" visible="true" value="${cell}" string="?" font-family="'Baloo Bhai 2'" font-color="black" type="drop" font-size="landscape.130px, portrait.100px" bg-color="white" onEntry="this.fontWeight='800'; this.borderRadius='20px'; this.border='4px dashed #f34d08'" border-image="">
34
34
  </lido-text>
35
35
  `)
36
36
  .join('\n');
@@ -38,7 +38,7 @@ function getContainerXml(args) {
38
38
  return `
39
39
  <main>
40
40
 
41
- <lido-container id="lido-container" objective="${args.answer.split('').join(',')}" tab-index="" template-id="dragAndDrop" show-drop-border="false" is-allow-only-correct="${args.PracticeMode}" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGMA/new.svg" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="question.speak='true'" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" drop-action="infinite-drop" show-check="false" custom-style= "#question11 {
41
+ <lido-container id="lido-container" disable-speak="true" objective="${args.answer.split('').join(',')}" tab-index="" template-id="dragAndDrop" show-drop-border="false" is-allow-only-correct="${args.PracticeMode}" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGMA/new.svg" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="question.speak='true'" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" drop-action="infinite-drop" show-check="false" custom-style= "#question11 {
42
42
  box-shadow: none !important;
43
43
  }">
44
44
 
@@ -29,7 +29,7 @@ export const Default = {
29
29
  };
30
30
  function getContainerXml(args) {
31
31
  return `<main>
32
- <lido-container objective="${(args.correctAns).toLowerCase()}" is-continue-on-correct="${args.PracticeMode}" template-id="mcq" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Picture%20meaning.png" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onInCorrect="lido-avatar.avatarAnimate='Fail';" onEntry="inventedAudio.speak='true';" custom-style = "#audioCell:active {
32
+ <lido-container disable-speak="true" id="lido-container" objective="${(args.correctAns).toLowerCase()}" is-continue-on-correct="${args.PracticeMode}" template-id="mcq" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Picture%20meaning.png" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onInCorrect="lido-avatar.avatarAnimate='Fail';" onEntry="inventedAudio.speak='true';" custom-style = "#audioCell:active {
33
33
  box-shadow: 0px 0px 0px !important;
34
34
  transform: translateY(7px);
35
35
  }" >
@@ -45,7 +45,7 @@ export const PalEgraMCQWithImage = {
45
45
  };
46
46
  function getContainerXml(args) {
47
47
  return `<main>
48
- <lido-container id="lido-container" tab-index="1" value="maincontainer" objective="${args.correctAns}" aria-label="This is a multiple-option question. Select one option from the list." height="100vh" width="100vw" x="0" y="0" z="0" bg-color="transparent" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGRA/palEgraTemplate3.png" visible="true" audio="background1.mp3" onTouch="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="invisibleText.speak='true';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="${args.isAllowOnlyCorrect}" is-allow-only-correct="${args.isAllowOnlyCorrect}">
48
+ <lido-container disable-speak="true" id="lido-container" tab-index="1" value="maincontainer" objective="${args.correctAns}" aria-label="This is a multiple-option question. Select one option from the list." height="100vh" width="100vw" x="0" y="0" z="0" bg-color="transparent" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGRA/palEgraTemplate3.png" visible="true" audio="background1.mp3" onTouch="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="invisibleText.speak='true';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="${args.isAllowOnlyCorrect}" is-allow-only-correct="${args.isAllowOnlyCorrect}">
49
49
 
50
50
  <!-- Chimple Avatar -->
51
51
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos1" height="350px" width="350px" x="landscape.1228px, portrait.273px" y="landscape.125px, portrait.1200px" aria-hidden="true" z="2" bg-color="transparent" type="" visible="true" audio="" onTouch="" onCorrect="" onEntry="this.animation='leftToPlace 1.5s linear';">
@@ -66,7 +66,7 @@ function getContainerXml(args) {
66
66
  <!-- Options -->
67
67
  <lido-cell layout="flex" visible="true" width="100%" height="90%" bg-color="transparent" onEntry="this.justifyContent='center'; this.alignContent='center'; this.animation='bottomToPlace 1s linear';" margin="landscape.-60px 0px -210px 0px, portrait.0px 0px 0px 0px">
68
68
  <lido-cell visible="true" layout="landscape.row, portrait.wrap" width="landscape.85%, portrait.73%" height="landscape.100%, portrait.auto" bg-color="transparent" gap="landscape.0px, portrait.55px" onEntry="">
69
- <lido-cell tab-index="4" type="click" visible="true" layout="col" bg-color="transparent" width="landscape.25%, portrait.100%" value="${args.option1}" height="50%" onEntry="this.borderRadius='25px'; this.padding='0';" onCorrect="" onInCorrect="" audio='${args.audio1}' onTouch="this.speak='true';">
69
+ <lido-cell tab-index="4" type="click" visible="true" layout="col" bg-color="transparent" width="landscape.25%, portrait.100%" value="${args.option1}" height="50%" onEntry="this.borderRadius='25px'; this.padding='0';" onCorrect="" onInCorrect="" audio='${args.audio1}' onTouch="this.speak='true';">
70
70
  <lido-image visible="true" src="${args.optionImg1}" bg-color="transparent" width="90%" height="auto" border-radius="25px 25px 0 0" onEntry="this.marginTop='10px';"></lido-image>
71
71
  </lido-cell>
72
72
  <lido-cell tab-index="5" type="click" visible="true" layout="col" bg-color="transparent" width="landscape.25%, portrait.100%" value="${args.option2}" height="50%" onEntry="this.borderRadius='25px'; this.padding='0';" onCorrect="" onInCorrect="" audio='${args.audio2}' onTouch="this.speak='true';">
@@ -80,8 +80,7 @@ function getContainerXml(args) {
80
80
  </lido-cell>
81
81
  </lido-cell>
82
82
  </lido-cell>
83
-
84
- <lido-cell layout="flex" height="30%" width="100%" x="landscape.-50px, portrait.100px" y="507px" z="2" bg-color="transparent" type="" visible="landscape.false, portrait.true" audio="" onTouch="" onCorrect="" onEntry="this.justifyContent='center'; this.alignContent='center'; this.animation='leftToPlace 1.5s linear'; ">
83
+ <lido-cell layout="flex" height="30%" width="100%" x="landscape.-50px, portrait.100px" y="507px" z="2" bg-color="transparent" type="" visible="landscape.false, portrait.true" audio="" onTouch="" onCorrect="" onEntry="this.justifyContent='center'; this.alignContent='center'; this.animation='leftToPlace 1.5s linear'; ">
85
84
 
86
85
  </lido-cell>
87
86
 
@@ -36,7 +36,7 @@ export const PalEgraOptionWithAudio = {
36
36
  function getContainerXml(args) {
37
37
  const objective = `${args.option1.trim()},${args.option2.trim()},${args.option3.trim()},${args.option4.trim()}`;
38
38
  return `<main>
39
- <lido-container id="lido-container" tab-index="1" template-id="dragAndDrop" value="maincontainer" objective="${objective}" aria-label="This is a multiple-option question. Select one option from the list." height="100vh" width="100vw" x="0" y="0" z="0" bg-color="transparent" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGRA/palEgraTemplate9.png" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="invisibleText.speak='true';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="${args.isAllowOnlyCorrect}" is-allow-only-correct="${args.isAllowOnlyCorrect}">
39
+ <lido-container disable-speak="true" id="lido-container" tab-index="1" template-id="dragAndDrop" value="maincontainer" objective="${objective}" aria-label="This is a multiple-option question. Select one option from the list." height="100vh" width="100vw" x="0" y="0" z="0" bg-color="transparent" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGRA/palEgraTemplate9.png" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="invisibleText.speak='true';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="${args.isAllowOnlyCorrect}" is-allow-only-correct="${args.isAllowOnlyCorrect}">
40
40
 
41
41
  <!-- Chimple Avatar -->
42
42
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos1" height="350px" width="350px" x="landscape.625px, portrait.273px" y="landscape.40px, portrait.1200px" aria-hidden="true" z="0" bg-color="transparent" type="" visible="true" audio="" onCorrect="" onEntry="this.animation='leftToPlace 1.5s linear';">
@@ -49,25 +49,24 @@ function getContainerXml(args) {
49
49
  <lido-text tab-index="2" id="invisibleText" value="play the audio first then drag the correct option into correct drop place" visible="false" width="1000px" height="100px" onEntry="this.boxShadow='unset'; this.fontWeight='700';" string="play the audio first then drag the correct option into correct drop place" font-family="'Baloo 2', serif" font-size="90px" font-color="black" bg-color="transparent" z="0" x="25px" y="20px" >
50
50
  </lido-text>
51
51
 
52
-
53
52
  <lido-cell visible="true" layout="col" width="100%" height="100%" bg-color="transparent">
54
53
 
55
54
  <!-- Question -->
56
55
  <lido-cell layout="row" visible="true" width="100%" height="landscape.150px, portrait.25%" bg-color="transparent" onEntry="this.justifyContent='center'; this.borderRadius='16px'; this.alignContent='center'; this.animation='topToPlace 0.5s linear';" margin="landscape.125px 0px 60px 0px, portrait.0px 0px 0px 0px" gap="190px">
57
56
  <lido-image id="icon1" type="click" is-slice="true" disable-edit="true" value="image1" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGRA/PalEgraTempAudioIcon.png" bg-color="transparent" width="225px" height="240px" x="77px" y="302px" alt-text="" onTouch="text1.speak='true';">
58
- <lido-text id="text1" tab-index="3" value="${args.option1}" visible="false" width="1000px" height="100px" onEntry="this.boxShadow='unset'; this.fontWeight='700';" string="${args.option1}" font-family="'Baloo 2', serif" font-size="90px" font-color="black" bg-color="transparent" z="0" x="25px" y="20px">
57
+ <lido-text id="text1" disable-speak="true" tab-index="3" value="${args.option1}" visible="false" width="1000px" height="100px" onEntry="this.boxShadow='unset'; this.fontWeight='700';" string="${args.option1}" font-family="'Baloo 2', serif" font-size="90px" font-color="black" bg-color="transparent" z="0" x="25px" y="20px">
59
58
  </lido-text>
60
59
  </lido-image>
61
60
  <lido-image id="icon2" type="click" is-slice="true" disable-edit="true" value="image2" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGRA/PalEgraTempAudioIcon.png" bg-color="transparent" width="225px" height="240px" x="77px" y="302px" alt-text="" onTouch="text2.speak='true';">
62
- <lido-text id="text2" tab-index="4" value="${args.option2}" visible="false" width="1000px" height="100px" onEntry="this.boxShadow='unset'; this.fontWeight='700';" string="${args.option2}" font-family="'Baloo 2', serif" font-size="90px" font-color="black" bg-color="transparent" z="0" x="25px" y="20px">
61
+ <lido-text id="text2" tab-index="4" disable-speak="true" value="${args.option2}" visible="false" width="1000px" height="100px" onEntry="this.boxShadow='unset'; this.fontWeight='700';" string="${args.option2}" font-family="'Baloo 2', serif" font-size="90px" font-color="black" bg-color="transparent" z="0" x="25px" y="20px">
63
62
  </lido-text>
64
63
  </lido-image>
65
64
  <lido-image id="icon3" type="click" is-slice="true" disable-edit="true" value="image3" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGRA/PalEgraTempAudioIcon.png" bg-color="transparent" width="225px" height="240px" x="77px" y="302px" alt-text="" onTouch="text3.speak='true';">
66
- <lido-text id="text3" tab-index="5" value="${args.option3}" visible="false" width="1000px" height="100px" onEntry="this.boxShadow='unset'; this.fontWeight='700';" string="${args.option3}" font-family="'Baloo 2', serif" font-size="90px" font-color="black" bg-color="transparent" z="0" x="25px" y="20px">
65
+ <lido-text id="text3" disable-speak="true" tab-index="5" value="${args.option3}" visible="false" width="1000px" height="100px" onEntry="this.boxShadow='unset'; this.fontWeight='700';" string="${args.option3}" font-family="'Baloo 2', serif" font-size="90px" font-color="black" bg-color="transparent" z="0" x="25px" y="20px">
67
66
  </lido-text>
68
67
  </lido-image>
69
68
  <lido-image id="icon4" type="click" is-slice="true" disable-edit="true" value="image4" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/PAL-EGRA/PalEgraTempAudioIcon.png" bg-color="transparent" width="225px" height="240px" x="77px" y="302px" alt-text="" onTouch="text4.speak='true';">
70
- <lido-text id="text4" tab-index="6" value="${args.option4}" visible="false" width="1000px" height="100px" onEntry="this.boxShadow='unset'; this.fontWeight='700';" string="${args.option4}" font-family="'Baloo 2', serif" font-size="90px" font-color="black" bg-color="transparent" z="0" x="25px" y="20px">
69
+ <lido-text disable-speak="true" id="text4" tab-index="6" value="${args.option4}" visible="false" width="1000px" height="100px" onEntry="this.boxShadow='unset'; this.fontWeight='700';" string="${args.option4}" font-family="'Baloo 2', serif" font-size="90px" font-color="black" bg-color="transparent" z="0" x="25px" y="20px">
71
70
  </lido-text>
72
71
  </lido-image>
73
72
  </lido-cell>
@@ -25,7 +25,7 @@ export const Default = {
25
25
  };
26
26
  function getContainerXml(args) {
27
27
  return `<main>
28
- <lido-container is-continue-on-correct="true" template-id="dragAndDrop" is-allow-only-correct="true" objective="${args.value1},${args.value2},${args.value3},${args.value4}" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/palStory/bgImage.png">
28
+ <lido-container disable-speak="true" id="lido-container" is-continue-on-correct="true" template-id="dragAndDrop" is-allow-only-correct="true" objective="${args.value1},${args.value2},${args.value3},${args.value4}" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/palStory/bgImage.png">
29
29
 
30
30
  <!-- Chimple Avatar -->
31
31
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.300px,portrait.402px" width="landscape.250px,portrait.398px" x="landscape.68%, portrait.28%" y="landscape.600px, portrait.77%" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">