lido-player 0.0.2-alpha-58-dev → 0.0.2-alpha-60-dev
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 +96 -34
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-470fe410.js → utils-28faa755.js} +142 -108
- package/dist/collection/components/container/lido-container.js +62 -3
- package/dist/collection/components/flashCard/lido-flash-card.js +10 -1
- package/dist/collection/components/float/lido-float.js +1 -1
- package/dist/collection/components/home/lido-home.js +22 -12
- package/dist/collection/components/keyboard/lido-keyboard.js +2 -2
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +1 -1
- package/dist/collection/components/position/lido-pos.js +1 -1
- package/dist/collection/components/random/lido-random.js +1 -1
- package/dist/collection/components/row/lido-row.js +1 -1
- package/dist/collection/components/scale/lido-balance.js +1 -1
- package/dist/collection/components/shape/lido-shape.js +2 -2
- package/dist/collection/components/slideFill/lido-slide-fill.js +1 -1
- package/dist/collection/components/text/lido-text.js +1 -1
- package/dist/collection/components/trace/lido-trace.js +18 -7
- package/dist/collection/components/wrap/lido-wrap.js +1 -1
- package/dist/collection/css/animation.css +17 -0
- package/dist/collection/css/index.css +1 -1
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +3 -3
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +1 -1
- package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +79 -0
- package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +74 -44
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +4 -4
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +91 -0
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +84 -0
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +0 -2
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +0 -2
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +106 -0
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +89 -0
- package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +86 -0
- package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +131 -0
- package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +61 -0
- package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +87 -0
- package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +98 -0
- package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +72 -0
- package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +61 -0
- package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +60 -0
- package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +78 -0
- package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +78 -0
- package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +73 -0
- package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +35 -0
- package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +88 -0
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +88 -0
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +66 -0
- package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +1 -1
- package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +7 -7
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +1 -1
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +2 -2
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +2 -2
- package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +111 -0
- package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +70 -0
- package/dist/collection/stories/Templates/total/total.stories.js +2 -0
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +76 -0
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +74 -0
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +1 -1
- package/dist/collection/utils/constants.js +2 -1
- package/dist/collection/utils/utils.js +10 -4
- package/dist/collection/utils/utilsHandlers/clickHandler.js +2 -0
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +25 -21
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +50 -2
- package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +5 -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 -23
- 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-ee4759de.js → p-06cecca5.js} +2 -2
- package/dist/components/{p-17cdbc3d.js → p-16604098.js} +1 -1
- package/dist/components/{p-6953efe0.js → p-235091a1.js} +141 -109
- package/dist/components/{p-bc7835fc.js → p-32c89979.js} +18 -7
- package/dist/components/{p-822b692a.js → p-354f7b19.js} +2 -2
- package/dist/components/{p-73e3f0f4.js → p-37c86a94.js} +203 -1
- package/dist/components/{p-53a7d4cb.js → p-3acada8c.js} +1 -1
- package/dist/components/{p-984ef5d1.js → p-3acd9a2e.js} +2 -2
- package/dist/components/{p-6f451328.js → p-4d01394c.js} +1 -1
- package/dist/components/{p-c62da3ed.js → p-57400ebc.js} +1 -1
- package/dist/components/{p-cfde157c.js → p-5e7c6afa.js} +2 -2
- package/dist/components/{p-f36d02e9.js → p-74c270d2.js} +4 -4
- package/dist/components/{p-9eb8593c.js → p-8a32f7cb.js} +3 -3
- package/dist/components/{p-0fa0ada9.js → p-8c0667eb.js} +2 -2
- package/dist/components/{p-9c7f08c4.js → p-8f082c62.js} +11 -2
- package/dist/components/{p-8c526c86.js → p-93acfbb2.js} +2 -2
- package/dist/components/{p-97ddbda4.js → p-a182c9a2.js} +2 -2
- package/dist/components/{p-348f95ba.js → p-b151457d.js} +47 -6
- package/dist/components/{p-d0c4d5a7.js → p-b867548e.js} +2 -2
- package/dist/components/{p-6f91a337.js → p-c90d92db.js} +2 -2
- package/dist/components/{p-67d97edc.js → p-db2a05f5.js} +3 -3
- package/dist/components/{p-f729ff82.js → p-de45dcab.js} +41 -33
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_22.entry.js +96 -34
- package/dist/esm/lido-player.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-d0f004f8.js → utils-2edeb213.js} +141 -109
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.css +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-280e3d34.entry.js +1 -0
- package/dist/lido-player/{p-bde62361.js → p-add7f36e.js} +2 -2
- package/dist/types/components/container/lido-container.d.ts +15 -2
- package/dist/types/components/trace/lido-trace.d.ts +3 -3
- package/dist/types/components.d.ts +10 -2
- package/dist/types/stories/Templates/imageMatch/imageMatch.stories.d.ts +4 -0
- package/dist/types/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.d.ts +4 -0
- package/dist/types/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.d.ts +11 -0
- package/dist/types/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.d.ts +12 -0
- package/dist/types/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.d.ts +5 -0
- package/dist/types/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgra_build_word/palEgra_build_word.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palStorytale/palStorytale.stories.d.ts +4 -0
- package/dist/types/stories/Templates/pictureClues/pictureClues.stories.d.ts +4 -0
- package/dist/types/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.d.ts +4 -0
- package/dist/types/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.d.ts +4 -0
- package/dist/types/stories/Templates/substraction/substractionWithimg.stories.d.ts +4 -0
- package/dist/types/stories/Templates/substraction/substractionWithoutImg.stories.d.ts +4 -0
- package/dist/types/stories/Templates/wordBuilding/wordBuildingwithimg.stories.d.ts +4 -0
- package/dist/types/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.d.ts +4 -0
- package/dist/types/utils/constants.d.ts +9 -1
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/types/utils/utilsHandlers/highlightHandler.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/p-0e645e5b.js +0 -204
- package/dist/lido-player/p-06248bc2.entry.js +0 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, t as attachSpeakIcon, L as LIDO_COMMON_AUDIO_READY_EVENT, e as convertUrlToRelative, k as parseProp, h, j as Host, u as LIDO_COMMON_AUDIO_PATH } from './p-235091a1.js';
|
|
2
|
+
|
|
1
3
|
const isString = obj => typeof obj === 'string';
|
|
2
4
|
const defer = () => {
|
|
3
5
|
let res;
|
|
@@ -2703,4 +2705,204 @@ instance
|
|
|
2703
2705
|
},
|
|
2704
2706
|
});
|
|
2705
2707
|
|
|
2706
|
-
|
|
2708
|
+
const lidoTextCss = ".lido-text{transition:background-color 0.3s ease;user-select:none;align-items:center;justify-content:center;text-align:center;border-radius:24px;color:#333;cursor:pointer;font-family:'Baloo Bhai 2', serif}.text-letters{transition:color 0.3s, text-shadow 0.3s;display:inline-block;padding:0 2px}.text-letters.letter-highlight{color:#8e24aa;background:none;border-radius:0;text-shadow:0 2px 8px #8e24aa88;animation:text-letter-bounce 0.4s}.text-words{transition:color 0.3s, text-shadow 0.3s;display:inline-block;padding:0 2px}.text-words.word-highlight{color:#8e24aa;background:none;border-radius:0;text-shadow:0 2px 8px #8e24aa88;animation:text-word-bounce 0.4s}@keyframes text-letter-bounce{0%{transform:scale(1)}60%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes text-word-bounce{0%{transform:scale(1)}60%{transform:scale(1.3)}100%{transform:scale(1)}}";
|
|
2709
|
+
const LidoTextStyle0 = lidoTextCss;
|
|
2710
|
+
|
|
2711
|
+
const LidoText = /*@__PURE__*/ proxyCustomElement(class LidoText extends H {
|
|
2712
|
+
constructor() {
|
|
2713
|
+
super();
|
|
2714
|
+
this.__registerHost();
|
|
2715
|
+
this.showSpeakIcon = false;
|
|
2716
|
+
this.id = '';
|
|
2717
|
+
this.value = '';
|
|
2718
|
+
this.string = '';
|
|
2719
|
+
this.fontFamily = '';
|
|
2720
|
+
this.fontSize = '20px';
|
|
2721
|
+
this.fontColor = '';
|
|
2722
|
+
this.highlightWhileSpeaking = false;
|
|
2723
|
+
this.height = 'auto';
|
|
2724
|
+
this.width = 'auto';
|
|
2725
|
+
this.ariaLabel = '';
|
|
2726
|
+
this.ariaHidden = '';
|
|
2727
|
+
this.x = '0px';
|
|
2728
|
+
this.y = '0px';
|
|
2729
|
+
this.z = '0';
|
|
2730
|
+
this.bgColor = '';
|
|
2731
|
+
this.borderImage = '';
|
|
2732
|
+
this.type = '';
|
|
2733
|
+
this.tabIndex = 0;
|
|
2734
|
+
this.visible = false;
|
|
2735
|
+
this.audio = '';
|
|
2736
|
+
this.onTouch = '';
|
|
2737
|
+
this.onInCorrect = '';
|
|
2738
|
+
this.onCorrect = '';
|
|
2739
|
+
this.minDrops = 1;
|
|
2740
|
+
this.maxDrops = 1;
|
|
2741
|
+
this.onEntry = '';
|
|
2742
|
+
this.margin = '';
|
|
2743
|
+
this.padding = '';
|
|
2744
|
+
this.borderRadius = '0px';
|
|
2745
|
+
this.spanType = '';
|
|
2746
|
+
this.style = {};
|
|
2747
|
+
this.delayVisible = '';
|
|
2748
|
+
this.disableSpeak = false;
|
|
2749
|
+
}
|
|
2750
|
+
/**
|
|
2751
|
+
* Lifecycle hook that runs after the component is rendered in the DOM.
|
|
2752
|
+
* It initializes custom events based on the `type` of the text component.
|
|
2753
|
+
*/
|
|
2754
|
+
componentDidLoad() {
|
|
2755
|
+
setVisibilityWithDelay(this.el, this.delayVisible);
|
|
2756
|
+
initEventsForElement(this.el, this.type);
|
|
2757
|
+
// only create span element if requested
|
|
2758
|
+
if (this.spanType === 'words' || this.spanType === 'letters') {
|
|
2759
|
+
this.addSpanToText();
|
|
2760
|
+
}
|
|
2761
|
+
if (this.showSpeakIcon) {
|
|
2762
|
+
attachSpeakIcon(this.el);
|
|
2763
|
+
}
|
|
2764
|
+
if (!this.audio || this.audio.trim() === "") {
|
|
2765
|
+
const applyAutoAudio = () => {
|
|
2766
|
+
const autoAudio = this.resolveAutoAudio();
|
|
2767
|
+
if (autoAudio) {
|
|
2768
|
+
this.audio = autoAudio;
|
|
2769
|
+
console.log("[LidoText] Auto audio applied:", autoAudio);
|
|
2770
|
+
}
|
|
2771
|
+
};
|
|
2772
|
+
// If path is already available, apply immediately
|
|
2773
|
+
if (window.__LIDO_COMMON_AUDIO_PATH__) {
|
|
2774
|
+
applyAutoAudio();
|
|
2775
|
+
}
|
|
2776
|
+
else {
|
|
2777
|
+
// Otherwise, wait for it
|
|
2778
|
+
window.addEventListener(LIDO_COMMON_AUDIO_READY_EVENT, applyAutoAudio, { once: true });
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
}
|
|
2782
|
+
resolveAutoAudio() {
|
|
2783
|
+
const base = window[LIDO_COMMON_AUDIO_PATH];
|
|
2784
|
+
if (!base || !this.string)
|
|
2785
|
+
return null;
|
|
2786
|
+
const fileName = this.string.toLowerCase().trim().replace(/\s+/g, "_").replace(/[^\w-]/g, "");
|
|
2787
|
+
return `${base}/${fileName}.mp3`;
|
|
2788
|
+
}
|
|
2789
|
+
/**
|
|
2790
|
+
* Lifecycle method that runs before the component is rendered.
|
|
2791
|
+
* Initializes styles and sets up event listeners for resize and load events.
|
|
2792
|
+
*/
|
|
2793
|
+
componentWillLoad() {
|
|
2794
|
+
this.updateStyles();
|
|
2795
|
+
window.addEventListener('resize', this.updateStyles.bind(this));
|
|
2796
|
+
window.addEventListener('load', this.updateStyles.bind(this));
|
|
2797
|
+
}
|
|
2798
|
+
disconnectedCallback() {
|
|
2799
|
+
window.removeEventListener('resize', this.updateStyles.bind(this));
|
|
2800
|
+
window.removeEventListener('load', this.updateStyles.bind(this));
|
|
2801
|
+
}
|
|
2802
|
+
updateStyles() {
|
|
2803
|
+
const borderImg = this.borderImage ? convertUrlToRelative(this.borderImage) : '';
|
|
2804
|
+
const orientation = window.innerHeight > window.innerWidth ? 'portrait' : 'landscape';
|
|
2805
|
+
this.style = {
|
|
2806
|
+
height: parseProp(this.height, orientation),
|
|
2807
|
+
width: parseProp(this.width, orientation),
|
|
2808
|
+
backgroundColor: parseProp(this.bgColor, orientation),
|
|
2809
|
+
top: parseProp(this.y, orientation),
|
|
2810
|
+
left: parseProp(this.x, orientation),
|
|
2811
|
+
zIndex: this.z,
|
|
2812
|
+
fontSize: parseProp(this.fontSize, orientation),
|
|
2813
|
+
fontFamily: this.fontFamily,
|
|
2814
|
+
color: parseProp(this.fontColor, orientation),
|
|
2815
|
+
display: parseProp(`${this.visible}`, orientation) === "true" ? 'flex' : 'none', // Toggle visibility
|
|
2816
|
+
borderImage: `url(${borderImg})`,
|
|
2817
|
+
borderImageSlice: borderImg ? '0 fill' : '',
|
|
2818
|
+
margin: parseProp(this.margin, orientation),
|
|
2819
|
+
padding: parseProp(this.padding, orientation),
|
|
2820
|
+
borderRadius: parseProp(this.borderRadius, orientation),
|
|
2821
|
+
};
|
|
2822
|
+
}
|
|
2823
|
+
async addSpanToText() {
|
|
2824
|
+
const content = this.el.querySelector('.lido-text-content');
|
|
2825
|
+
if (!content)
|
|
2826
|
+
return;
|
|
2827
|
+
const text = content.textContent || '';
|
|
2828
|
+
content.innerHTML = '';
|
|
2829
|
+
// Wrap each letters in a span inside .lido-text-content
|
|
2830
|
+
if (this.spanType === 'letters') {
|
|
2831
|
+
text.split('').forEach((letter, idx) => {
|
|
2832
|
+
// Skip spaces
|
|
2833
|
+
if (letter.trim() === '')
|
|
2834
|
+
return;
|
|
2835
|
+
// Create a span for each letter
|
|
2836
|
+
const letterSpan = document.createElement('span');
|
|
2837
|
+
letterSpan.textContent = letter;
|
|
2838
|
+
letterSpan.className = 'text-letters';
|
|
2839
|
+
content.appendChild(letterSpan);
|
|
2840
|
+
});
|
|
2841
|
+
}
|
|
2842
|
+
// Wrap each words in a span inside .lido-text-content
|
|
2843
|
+
if (this.spanType === 'words') {
|
|
2844
|
+
text.split(' ').forEach((word, idx) => {
|
|
2845
|
+
const wordSpan = document.createElement('span');
|
|
2846
|
+
wordSpan.textContent = word;
|
|
2847
|
+
wordSpan.className = 'text-words';
|
|
2848
|
+
content.appendChild(wordSpan);
|
|
2849
|
+
});
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
render() {
|
|
2853
|
+
return (h(Host, { key: '9635bba385679026c4f90aac9467612f06a21f1b', class: "lido-text", value: this.value, type: this.type, "tab-index": this.tabIndex, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, minDrops: this.minDrops, maxDrops: this.maxDrops, id: this.id, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, "span-type": this.spanType, "disable-speak": this.disableSpeak }, this.spanType !== '' ? h("div", { class: "lido-text-content" }, " ", instance.t(this.string)) : instance.t(this.string)));
|
|
2854
|
+
}
|
|
2855
|
+
get el() { return this; }
|
|
2856
|
+
static get style() { return LidoTextStyle0; }
|
|
2857
|
+
}, [0, "lido-text", {
|
|
2858
|
+
"showSpeakIcon": [4, "show-speak-icon"],
|
|
2859
|
+
"id": [1],
|
|
2860
|
+
"value": [1],
|
|
2861
|
+
"string": [1],
|
|
2862
|
+
"fontFamily": [1, "font-family"],
|
|
2863
|
+
"fontSize": [1, "font-size"],
|
|
2864
|
+
"fontColor": [1, "font-color"],
|
|
2865
|
+
"highlightWhileSpeaking": [4, "highlight-while-speaking"],
|
|
2866
|
+
"height": [1],
|
|
2867
|
+
"width": [1],
|
|
2868
|
+
"ariaLabel": [1, "aria-label"],
|
|
2869
|
+
"ariaHidden": [1, "aria-hidden"],
|
|
2870
|
+
"x": [1],
|
|
2871
|
+
"y": [1],
|
|
2872
|
+
"z": [1],
|
|
2873
|
+
"bgColor": [1, "bg-color"],
|
|
2874
|
+
"borderImage": [1, "border-image"],
|
|
2875
|
+
"type": [1],
|
|
2876
|
+
"tabIndex": [2, "tab-index"],
|
|
2877
|
+
"visible": [8],
|
|
2878
|
+
"audio": [1],
|
|
2879
|
+
"onTouch": [1, "on-touch"],
|
|
2880
|
+
"onInCorrect": [1, "on-in-correct"],
|
|
2881
|
+
"onCorrect": [1, "on-correct"],
|
|
2882
|
+
"minDrops": [2, "min-drops"],
|
|
2883
|
+
"maxDrops": [2, "max-drops"],
|
|
2884
|
+
"onEntry": [1, "on-entry"],
|
|
2885
|
+
"margin": [1],
|
|
2886
|
+
"padding": [1],
|
|
2887
|
+
"borderRadius": [1, "border-radius"],
|
|
2888
|
+
"spanType": [1, "span-type"],
|
|
2889
|
+
"delayVisible": [1, "delay-visible"],
|
|
2890
|
+
"disableSpeak": [4, "disable-speak"],
|
|
2891
|
+
"style": [32]
|
|
2892
|
+
}]);
|
|
2893
|
+
function defineCustomElement() {
|
|
2894
|
+
if (typeof customElements === "undefined") {
|
|
2895
|
+
return;
|
|
2896
|
+
}
|
|
2897
|
+
const components = ["lido-text"];
|
|
2898
|
+
components.forEach(tagName => { switch (tagName) {
|
|
2899
|
+
case "lido-text":
|
|
2900
|
+
if (!customElements.get(tagName)) {
|
|
2901
|
+
customElements.define(tagName, LidoText);
|
|
2902
|
+
}
|
|
2903
|
+
break;
|
|
2904
|
+
} });
|
|
2905
|
+
}
|
|
2906
|
+
defineCustomElement();
|
|
2907
|
+
|
|
2908
|
+
export { LidoText as L, defineCustomElement as d, instance as i };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-235091a1.js';
|
|
2
2
|
|
|
3
3
|
const lidoCellCss = ".lido-col{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);padding:15px;border-radius:10px;display:flex;justify-content:space-around;flex-direction:column;align-items:center}.lido-col>*{}.lido-row{display:flex;justify-content:space-around;align-items:center;}.lido-row>*{}.lido-wrap{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill, minmax(186px, auto))}.lido-wrap>*{padding:10px;box-sizing:border-box}.lido-flex{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}.lido-pos{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);display:flex;justify-content:space-around;flex-direction:column;position:fixed}.lido-pos>*{position:absolute}.lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}.lido-col::-webkit-scrollbar,.lido-wrap::-webkit-scrollbar,.lido-flex::-webkit-scrollbar{width:var(--scrollbar-width);height:var(--scrollbar-width)}.lido-col::-webkit-scrollbar-thumb,.lido-wrap::-webkit-scrollbar-thumb,.lido-flex::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px;border:3px solid transparent;background-clip:content-box}.lido-col::-webkit-scrollbar-track,.lido-wrap::-webkit-scrollbar-track,.lido-flex::-webkit-scrollbar-track{background:#f1f1f1}";
|
|
4
4
|
const LidoCellStyle0 = lidoCellCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-235091a1.js';
|
|
2
2
|
|
|
3
3
|
const lidoRowCss = ".lido-row{display:flex;justify-content:space-around;align-items:center;}.lido-row>*{}";
|
|
4
4
|
const LidoRowStyle0 = lidoRowCss;
|
|
@@ -77,7 +77,7 @@ const LidoRow = /*@__PURE__*/ proxyCustomElement(class LidoRow extends H {
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: 'ca01c603f76bc544d8660427d004c2ddb2de66ca', class: "lido-row", type: this.type, "tab-index": this.tabIndex, value: this.value, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, minDrops: this.minDrops, maxDrops: this.maxDrops, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, "disable-speak": this.disableSpeak }, h("slot", { key: '08ef314cd12489030c1e9d428c88cc0a76355d1d' })));
|
|
81
81
|
}
|
|
82
82
|
get el() { return this; }
|
|
83
83
|
static get style() { return LidoRowStyle0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, p as proxyCustomElement, H, g as getAssetPath, d as setVisibilityWithDelay, i as initEventsForElement, e as convertUrlToRelative, h, j as Host, R as RiveService } from './p-
|
|
1
|
+
import { c as commonjsGlobal, p as proxyCustomElement, H, g as getAssetPath, d as setVisibilityWithDelay, i as initEventsForElement, e as convertUrlToRelative, h, j as Host, R as RiveService } from './p-235091a1.js';
|
|
2
2
|
|
|
3
3
|
var rive = {exports: {}};
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-235091a1.js';
|
|
2
2
|
|
|
3
3
|
const lidoColCss = ".lido-col{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);padding:15px;border-radius:10px;display:flex;justify-content:space-around;flex-direction:column;align-items:center}.lido-col>*{}";
|
|
4
4
|
const LidoColStyle0 = lidoColCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-235091a1.js';
|
|
2
2
|
|
|
3
3
|
const lidoWrapCss = ".lido-wrap{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill, minmax(186px, auto))}.lido-wrap>*{padding:10px;background-color:var(--child-bg-color, #f0f0f0);box-sizing:border-box}.lido-flex{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}";
|
|
4
4
|
const LidoWrapStyle0 = lidoWrapCss;
|
|
@@ -78,7 +78,7 @@ const LidoWrap = /*@__PURE__*/ proxyCustomElement(class LidoWrap extends H {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '2ac7204f5d41605322ba9545ac3689bdd5f49bcd', class: "lido-wrap", value: this.value, type: this.type, "tab-index": this.tabIndex, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, minDrops: this.minDrops, maxDrops: this.maxDrops, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, disableSpeak: this.disableSpeak }, h("slot", { key: '06a0dcfa475467e094d93e986c63c4cfc9974ac8' })));
|
|
82
82
|
}
|
|
83
83
|
get el() { return this; }
|
|
84
84
|
static get style() { return LidoWrapStyle0; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, S as SelectedValuesKey,
|
|
2
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, S as SelectedValuesKey, K as LidoContainer, o as executeActions, Q as triggerNextContainer, x as handleFloatElementPosition, n as storingEachActivityScore, Y as DropAction, k as parseProp, h, j as Host } from './p-235091a1.js';
|
|
2
|
+
import { d as defineCustomElement$1 } from './p-37c86a94.js';
|
|
3
3
|
|
|
4
4
|
const lidoKeyboardCss = ".lido-keyboard{display:flex;flex-direction:column;align-items:center;gap:30px}.input-area{display:flex;gap:15px}input[type=\"text\"]{font-size:30px;font-weight:600;padding-left:20px;width:300px;height:70px;border:2px solid;background:whitesmoke;border-radius:20px;text-align:center}.keyboard-wrapper{justify-content:center;width:700px}.disabled{opacity:0.5;pointer-events:none}.key-button{background:aquamarine;font-weight:600}";
|
|
5
5
|
const LidoKeyboardStyle0 = lidoKeyboardCss;
|
|
@@ -118,10 +118,10 @@ const LidoKeyboard = /*@__PURE__*/ proxyCustomElement(class LidoKeyboard extends
|
|
|
118
118
|
const keysArray = this.keys.split(',').map(k => k.trim());
|
|
119
119
|
const container = document.getElementById(LidoContainer);
|
|
120
120
|
const showCheck = container.getAttribute('show-check') === 'true';
|
|
121
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: 'd57a587171b8525147e31228779e8503f5b7e854', class: "lido-keyboard", style: { width: this.style.width, height: this.style.height, position: 'relative', margin: this.style.margin, zIndex: this.z } }, this.keyboardInput && (h("div", { key: 'bc4242fca443e2fe0821b6b5e3559bfdf231ab30', class: "input-area" }, h("input", { key: '046989156e5f4c61d52d187c74570a95d8ebe6ab', type: "text", value: this.inputString, class: "input-area", readonly: true, onInput: (e) => (this.inputString = e.target.value) }), h("lido-text", { key: '72ab0afbebb9789c5cde9ed7624ef22bae5d2901', visible: showCheck ? 'true' : 'false', string: "<<", "bg-color": "black", "font-color": "white", "border-radius": "20px", "font-size": "30px", width: "100px", height: "70px", type: "click", onClick: () => {
|
|
122
122
|
this.inputString = this.inputString.slice(0, -1);
|
|
123
123
|
this.inputValidation(event);
|
|
124
|
-
} }), h("lido-text", { key: '
|
|
124
|
+
} }), h("lido-text", { key: 'b6028375fb0e56b3c32821894f199e2c96726261', visible: showCheck ? 'true' : 'false', id: "lido-checkButton", string: "Enter", "bg-color": "green", "font-color": "white", "border-radius": "20px", "font-size": "30px", width: "150px", height: "70px", type: "click" }))), this.letterLength && (h("lido-text", { key: 'f9b109fe36a6e0fcef459bdaf69ccbad6f827fc9', visible: "true", string: `${this.numberOfClick}/${this.letterLength}`, "font-size": "60px", "font-color": "white", onEntry: "this.position='absolute'; this.right='0'; this.fontWeight='800';", x: "unset" })), h("div", { key: '1a3047db0048f49429bd344625a15d3c94b173d4', class: "keyboard-wrapper", style: {
|
|
125
125
|
display: 'flex',
|
|
126
126
|
flexWrap: 'wrap',
|
|
127
127
|
justifyContent: 'center',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, h, j as Host } from './p-235091a1.js';
|
|
2
2
|
|
|
3
3
|
const lidoShapeCss = ".lido-shape{position:absolute;top:var(--y);left:var(--x);display:var(--display);z-index:var(--z);justify-content:center;align-items:center}.lido-rectangle{border-radius:0}.lido-circle{width:var(--width);height:var(--width);border-radius:50%;background-color:var(--bgColor)}.lido-ellipse{width:var(--width);height:var(--height);border-radius:50%;background-color:var(--bgColor)}.lido-triangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(50% 0%, 100% 100%, 0% 100%)}.lido-rightTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(100% 0%, 100% 100%, 0% 100%)}.lido-leftTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--triangleBgColor);clip-path:polygon(0% 0%, 100% 100%, 0% 100%)}.lido-parallelogram{width:var(--paralleWidth);height:var(--paralleHeight);transform:skew(20deg)}.lido-trapezoid{width:var(--trapezoidWidth);height:var(--trapezoidHeight);background-color:var(--bgColor);clip-path:polygon(\r\n 20% 0%, \r\n 80% 0%, \r\n 100% 100%,\r\n 0% 100% \r\n )}.lido-hexagon{width:var(--hexagonWidth);height:var(--hexagonHeight);background-color:var(--bgColor);clip-path:polygon(\r\n 25% 0%, \r\n 75% 0%, \r\n 100% 50%, \r\n 75% 100%, \r\n 25% 100%, \r\n 0% 50% \r\n )}.lido-cone{width:var(--coneWidth);height:var(--coneHeight);background-color:var(--bgColor);clip-path:polygon(\r\n \r\n 15% 10%,\r\n 25% 4%,\r\n 35% 1%,\r\n 50% 0%,\r\n 65% 1%,\r\n 75% 4%,\r\n 85% 10%,\r\n\r\n \r\n 50% 100%\r\n )}.lido-star{width:var(--starWidth);height:var(--starHeight);background-color:var(--starBgColor);clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)}.lido-pentagon{width:var(--pentagonWidth);height:var(--pentagonHeight);background-color:var(--pentagonBgColor);clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)}.lido-heptagon{width:var(--heptagonWidth);height:var(--heptagonHeight);background-color:var(--heptagonBgColor);clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)}.lido-octagon{width:var(--octagonWidth);height:var(--octagonHeight);background-color:var(--octagonBgColor);clip-path:polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%)}.lido-rhombus{width:var(--rhombusWidth);height:var(--rhombusHeight);background-color:var(--rhombusBgColor);clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)}.lido-heart{height:var(--heartHeight);width:var(--heartWidth);border-image:radial-gradient(var(--heartBgColor) 69%, #0000 70%) 84.5%/50%;clip-path:polygon(-41% 0, 50% 91%, 141% 0)}.cube{width:100%;height:100%;position:relative;transform-style:preserve-3d;transform:rotateX(-20deg) rotateY(45deg)}.face{position:absolute;width:var(--face-width,150px);height:var(--face-width,150px);background:var(--face-bg-color,150px);box-shadow:inset -20px -20px 40px rgba(0,0,0,0.3)}.front{transform:rotateY( 0deg) translateZ(var(--face-translate, 75px))}.back{transform:rotateY(180deg) translateZ(var(--face-translate, 75px))}.right{transform:rotateY( 90deg) translateZ(var(--face-translate, 75px))}.left{transform:rotateY(-90deg) translateZ(var(--face-translate, 75px))}.top{transform:rotateX( 90deg) translateZ(var(--face-translate, 75px))}.bottom{transform:rotateX(-90deg) translateZ(var(--face-translate, 75px))}.lido-cylinder{width:var(--width);height:var(--height);border-radius:100% / 80px;background:radial-gradient(50% 40px at 50% 40px, #0003 99.99%, #0000 0),\r\n radial-gradient(50% 40px at 50% calc(100% - 40px), #fff3 99.99%, #0000 0),\r\n red}";
|
|
4
4
|
const LidoShapeStyle0 = lidoShapeCss;
|
|
@@ -78,8 +78,8 @@ const LidoShape = /*@__PURE__*/ proxyCustomElement(class LidoShape extends H {
|
|
|
78
78
|
backgroundColor: this.shapeType !== 'polygon' ? this.bgColor : 'transparent', // Apply background only if not a polygon
|
|
79
79
|
margin: this.margin,
|
|
80
80
|
};
|
|
81
|
-
return (h(Host, { key: '
|
|
82
|
-
h("div", { key: '
|
|
81
|
+
return (h(Host, { key: '687d13d8361df73e2757dce2865ee1835804e645', class: `lido-shape ${this.shapeType}`, value: this.value, type: this.type, "tab-index": this.tabIndex, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, minDrops: this.minDrops, maxDrops: this.maxDrops, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, "disable-speak": this.disableSpeak }, this.shapeType === "lido-cube" &&
|
|
82
|
+
h("div", { key: 'bd9958c2095029a03eb76aef2f721e5883649dca', class: "cube" }, h("div", { key: 'bd8f4c9a4af6663dc6d642a80e3c0ebbb60471c9', class: "face top" }), h("div", { key: '0bbd21bab7efb5e91ab4067f22d9febe670748f6', class: "face bottom" }), h("div", { key: 'a3ca4f53a93994bef257b5637c2e603abc89c13e', class: "face left" }), h("div", { key: '0122526c9001632c412bbf27ac92a73f1a3bf000', class: "face right" }), h("div", { key: '5d3521dd261e79c9f3170539642be0c31e78e0b3', class: "face front" }), h("div", { key: '026145187bd4c68b8a73646c7e948ab81f75a16f', class: "face back" }))));
|
|
83
83
|
}
|
|
84
84
|
get el() { return this; }
|
|
85
85
|
static get style() { return LidoShapeStyle0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, t as attachSpeakIcon, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, t as attachSpeakIcon, h, j as Host } from './p-235091a1.js';
|
|
2
2
|
|
|
3
3
|
const lidoRandomCss = ".lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}";
|
|
4
4
|
const LidoRandomStyle0 = lidoRandomCss;
|
|
@@ -76,7 +76,7 @@ const LidoRandom = /*@__PURE__*/ proxyCustomElement(class LidoRandom extends H {
|
|
|
76
76
|
backgroundColor: this.bgColor,
|
|
77
77
|
margin: this.margin,
|
|
78
78
|
};
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: 'e6978f97eaac048e12c50e048a8392c1125282f9', class: "lido-random", type: this.type, "tab-index": this.tabIndex, value: this.value, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, minDrops: this.minDrops, maxDrops: this.maxDrops, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, h("slot", { key: '2f513356dac9d0f6df3ab695b9fa1bcf82c379de' })));
|
|
80
80
|
}
|
|
81
81
|
get el() { return this; }
|
|
82
82
|
static get style() { return LidoRandomStyle0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, k as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, k as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-235091a1.js';
|
|
2
2
|
|
|
3
3
|
const lidoFlashCardCss = ".card{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform 0.6s ease;cursor:pointer}.card.flipped{transform:rotateY(180deg)}.card-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;display:flex;align-items:center;justify-content:center}.card-back{transform:rotateY(180deg)}";
|
|
4
4
|
const LidoFlashCardStyle0 = lidoFlashCardCss;
|
|
@@ -67,6 +67,15 @@ const LidoFlash = /*@__PURE__*/ proxyCustomElement(class LidoFlash extends H {
|
|
|
67
67
|
}
|
|
68
68
|
componentDidLoad() {
|
|
69
69
|
setVisibilityWithDelay(this.el, this.delayVisible);
|
|
70
|
+
const card = this.el.querySelector('.card');
|
|
71
|
+
if (card) {
|
|
72
|
+
setTimeout(() => {
|
|
73
|
+
card.classList.add('flipped');
|
|
74
|
+
setTimeout(() => {
|
|
75
|
+
card.classList.remove('flipped');
|
|
76
|
+
}, 500);
|
|
77
|
+
}, 500);
|
|
78
|
+
}
|
|
70
79
|
initEventsForElement(this.el, this.type);
|
|
71
80
|
// handlingChildElements(this.el, this.minLength, this.maxLength, this.childElementsLength, 'inline-block');
|
|
72
81
|
}
|
|
@@ -76,7 +85,7 @@ const LidoFlash = /*@__PURE__*/ proxyCustomElement(class LidoFlash extends H {
|
|
|
76
85
|
}
|
|
77
86
|
/* ---------- Render ---------- */
|
|
78
87
|
render() {
|
|
79
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: 'feb4183de8377349b990563bf7f2e6a999d8a1c5', value: this.value, "tab-index": this.tabIndex, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, type: this.type, onClick: this.handleFlip, "disable-speak": this.disableSpeak }, h("div", { key: 'e1a8a03fb07fba6f7d44f207a1ef7081bb188bcf', class: `card ${this.flipped ? 'flipped' : ''}` }, h("div", { key: 'fc8df309a9e6bf2b44198ca6c41c0e1a3ee6dcf9', class: "card-face card-front" }, this.front != null ? this.front : h("slot", { name: "front" })), h("div", { key: 'e707168ae9e3fc8518b635c8e10b83305f569f5c', class: "card-face card-back" }, this.back != null ? this.back : h("slot", { name: "back" })))));
|
|
80
89
|
}
|
|
81
90
|
get el() { return this; }
|
|
82
91
|
static get watchers() { return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, e as convertUrlToRelative, k as parseProp,
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, e as convertUrlToRelative, k as parseProp, Z as validateObjectiveStatus, h, j as Host } from './p-235091a1.js';
|
|
2
2
|
|
|
3
3
|
const lidoMathMatrixCss = ".math-matrix{width:100%;height:100%;display:flex;justify-content:center}.slot{width:100%;height:100%;text-align:center;align-content:center;font-size:42px;font-weight:800;font-family:'Baloo Bhai 2';box-sizing:content-box}.slot:hover{opacity:0.7}.slot-parent{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.slot-active{background-color:var(--active-bg-color);background-image:var(--bg-image);background-size:contain;background-position:center;background-repeat:no-repeat}.slot-inactive{background-color:var(--deactive-bg-color);background-size:cover;background-position:center;background-repeat:no-repeat}.topIndex,.leftIndex,.bottomIndex{height:100%;width:100%;text-align:center;align-content:center;font-size:30px;font-weight:600;font-family:'Baloo Bhai 2'}";
|
|
4
4
|
const LidoMathMatrixStyle0 = lidoMathMatrixCss;
|
|
@@ -192,7 +192,7 @@ const LidoMathMatrix = /*@__PURE__*/ proxyCustomElement(class LidoMathMatrix ext
|
|
|
192
192
|
render() {
|
|
193
193
|
let slotNumber = 1;
|
|
194
194
|
const slotData = this.getSlotData();
|
|
195
|
-
return (h(Host, { key: '
|
|
195
|
+
return (h(Host, { key: '3da93fe1224f166febc7da07a7ef301a66d88997', class: "math-matrix", style: {
|
|
196
196
|
height: this.style.height,
|
|
197
197
|
width: this.style.width,
|
|
198
198
|
z: this.style.z,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, e as convertUrlToRelative, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp,
|
|
1
|
+
import { p as proxyCustomElement, H, e as convertUrlToRelative, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, _ as fraction, h, j as Host } from './p-235091a1.js';
|
|
2
2
|
|
|
3
3
|
const lidoSlideFillCss = ".svg-element,svg{width:100%;height:100%}";
|
|
4
4
|
const LidoSlideFillStyle0 = lidoSlideFillCss;
|
|
@@ -194,7 +194,7 @@ const LidoSlideFill = /*@__PURE__*/ proxyCustomElement(class LidoSlideFill exten
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
render() {
|
|
197
|
-
return (h(Host, { key: '
|
|
197
|
+
return (h(Host, { key: '9addda03d3a509cb0b23e88c59ad22c64dcd0044', id: this.id, class: "lido-slide-fill", src: this.src, fill: this.fill, fillDirection: this.fillDirection, slider: this.slider, style: this.style, min: this.min, max: this.max, division: this.division, numberType: this.numberType, onEntry: this.onEntry, type: this.type, "disable-speak": this.disableSpeak }, h("div", { key: 'e0d62ba6795bf0ac28e9e6b7dee5df04c2015ed5', innerHTML: this.svgContent, class: "svg-element" })));
|
|
198
198
|
}
|
|
199
199
|
get el() { return this; }
|
|
200
200
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, v as calculateScale, e as convertUrlToRelative, i as initEventsForElement, h, j as Host } from './p-
|
|
2
|
-
import { i as instance } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, T as TemplateID, v as calculateScale, e as convertUrlToRelative, i as initEventsForElement, w as highlightElement, h, j as Host } from './p-235091a1.js';
|
|
2
|
+
import { d as defineCustomElement$1, i as instance } from './p-37c86a94.js';
|
|
3
3
|
|
|
4
4
|
const lidoContainerCss = ".lido-container{position:relative;height:100%;width:100%;background-color:var(--bgColor, transparent);display:flex;flex-direction:column;justify-content:center;align-items:center}";
|
|
5
5
|
const LidoContainerStyle0 = lidoContainerCss;
|
|
@@ -46,6 +46,9 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
|
|
|
46
46
|
this.showNextButton = 'false';
|
|
47
47
|
this.delayVisible = '';
|
|
48
48
|
this.disableSpeak = false;
|
|
49
|
+
this.templateId = '';
|
|
50
|
+
this.instructName = '';
|
|
51
|
+
this.speakFlag = false;
|
|
49
52
|
}
|
|
50
53
|
languageChanged(newLang) {
|
|
51
54
|
const langToApply = newLang || this.resolveLanguage();
|
|
@@ -54,6 +57,25 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
|
|
|
54
57
|
componentWillLoad() {
|
|
55
58
|
const langToApply = this.resolveLanguage();
|
|
56
59
|
this.updateChildTextLanguage(langToApply);
|
|
60
|
+
this.resolveInstructionAudio();
|
|
61
|
+
}
|
|
62
|
+
resolveInstructionAudio() {
|
|
63
|
+
var _a;
|
|
64
|
+
this.instructName =
|
|
65
|
+
(_a = {
|
|
66
|
+
flashcard: "Review the flashcards to reinforce your learning." /* templateAudio.flashcards */,
|
|
67
|
+
mcq: "Select the correct answer from the options provided." /* templateAudio.mcq */,
|
|
68
|
+
tracing: "Trace the shape by following the outline carefully." /* templateAudio.tracing */,
|
|
69
|
+
dragAndDrop: "Match the items by dragging and dropping them into the correct places." /* templateAudio.dragAndDrop */,
|
|
70
|
+
}[this.templateId]) !== null && _a !== void 0 ? _a : '';
|
|
71
|
+
const home = document.querySelector('lido-home');
|
|
72
|
+
if (!home)
|
|
73
|
+
return;
|
|
74
|
+
const existing = home.getAttribute(TemplateID) || '';
|
|
75
|
+
this.speakFlag = existing.includes(this.templateId);
|
|
76
|
+
if (!this.speakFlag) {
|
|
77
|
+
home.setAttribute(TemplateID, [existing, this.templateId].filter(Boolean).join(','));
|
|
78
|
+
}
|
|
57
79
|
}
|
|
58
80
|
resolveLanguage() {
|
|
59
81
|
var _a, _b;
|
|
@@ -159,7 +181,15 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
|
|
|
159
181
|
// Re-scale the container on window resize or load events
|
|
160
182
|
window.addEventListener('resize', () => this.scaleContainer(this.el));
|
|
161
183
|
window.addEventListener('load', () => this.scaleContainer(this.el));
|
|
162
|
-
|
|
184
|
+
if (this.templateId) {
|
|
185
|
+
setTimeout(() => {
|
|
186
|
+
this.el.setAttribute("onEntry", `${this.templateId}.speak='${!this.speakFlag}'; ` + this.el.getAttribute("onEntry"));
|
|
187
|
+
initEventsForElement(this.el, this.type);
|
|
188
|
+
}, 100);
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
initEventsForElement(this.el, this.type);
|
|
192
|
+
}
|
|
163
193
|
if (this.customStyle) {
|
|
164
194
|
const styleElement = document.createElement('style');
|
|
165
195
|
styleElement.innerHTML = this.customStyle;
|
|
@@ -167,6 +197,9 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
|
|
|
167
197
|
}
|
|
168
198
|
const langToApply = this.resolveLanguage();
|
|
169
199
|
this.updateChildTextLanguage(langToApply);
|
|
200
|
+
setTimeout(() => {
|
|
201
|
+
highlightElement();
|
|
202
|
+
}, 100);
|
|
170
203
|
}
|
|
171
204
|
disconnectedCallback() {
|
|
172
205
|
window.removeEventListener('resize', () => this.scaleContainer(this.el));
|
|
@@ -186,7 +219,7 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
|
|
|
186
219
|
userSelect: 'none', // Prevent any field selection
|
|
187
220
|
};
|
|
188
221
|
console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
|
|
189
|
-
return (h(Host, { key: '
|
|
222
|
+
return (h(Host, { key: 'bdae7c7d24046fc0f726668b9b1bbb84f3ddd3dd', id: "lido-container", locale: this.locale, "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: 'aa5d73493b429f0d99c5737aed89488c565e1699', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: 'd251b1fed4468aabd66a6f6c14b3de234329ab64' })));
|
|
190
223
|
}
|
|
191
224
|
get el() { return this; }
|
|
192
225
|
static get watchers() { return {
|
|
@@ -231,7 +264,10 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
|
|
|
231
264
|
"showPrevButton": [1, "show-prev-button"],
|
|
232
265
|
"showNextButton": [1, "show-next-button"],
|
|
233
266
|
"delayVisible": [1, "delay-visible"],
|
|
234
|
-
"disableSpeak": [4, "disable-speak"]
|
|
267
|
+
"disableSpeak": [4, "disable-speak"],
|
|
268
|
+
"templateId": [1, "template-id"],
|
|
269
|
+
"instructName": [32],
|
|
270
|
+
"speakFlag": [32]
|
|
235
271
|
}, undefined, {
|
|
236
272
|
"locale": ["languageChanged"]
|
|
237
273
|
}]);
|
|
@@ -239,13 +275,18 @@ function defineCustomElement() {
|
|
|
239
275
|
if (typeof customElements === "undefined") {
|
|
240
276
|
return;
|
|
241
277
|
}
|
|
242
|
-
const components = ["lido-container"];
|
|
278
|
+
const components = ["lido-container", "lido-text"];
|
|
243
279
|
components.forEach(tagName => { switch (tagName) {
|
|
244
280
|
case "lido-container":
|
|
245
281
|
if (!customElements.get(tagName)) {
|
|
246
282
|
customElements.define(tagName, LidoContainer);
|
|
247
283
|
}
|
|
248
284
|
break;
|
|
285
|
+
case "lido-text":
|
|
286
|
+
if (!customElements.get(tagName)) {
|
|
287
|
+
defineCustomElement$1();
|
|
288
|
+
}
|
|
289
|
+
break;
|
|
249
290
|
} });
|
|
250
291
|
}
|
|
251
292
|
defineCustomElement();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement,
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, x as handleFloatElementPosition, y as handleElementClick, k as parseProp, h, j as Host } from './p-235091a1.js';
|
|
2
2
|
|
|
3
3
|
const lidoFloatCss = ".lido-float{position:relative}.lido-float>*{position:absolute;cursor:pointer}@keyframes float-up{from{top:var(--el-top)}to{top:-500px}}#removeShadow{box-shadow:unset !important}@keyframes float-lr{from{right:var(--el-left)}to{right:-500px}}";
|
|
4
4
|
const LidoFloatStyle0 = lidoFloatCss;
|
|
@@ -60,7 +60,7 @@ const LidoFloat = /*@__PURE__*/ proxyCustomElement(class LidoFloat extends H {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: 'd12c96be36eb27c4b46cb2b494f1de3352634feb', class: "lido-float", "float-direction": this.floatDirection, id: this.id, "tab-index": this.tabIndex, style: this.style, onEntry: this.onEntry }, h("slot", { key: '5c2b330b5fb5c27ead76a0a9514750d4dd3ef820' })));
|
|
64
64
|
}
|
|
65
65
|
get el() { return this; }
|
|
66
66
|
static get style() { return LidoFloatStyle0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-235091a1.js';
|
|
2
2
|
|
|
3
3
|
const lidoPosCss = ".lido-pos{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);display:flex;justify-content:space-around;flex-direction:column;position:fixed}.lido-pos>*{position:absolute}";
|
|
4
4
|
const LidoPosStyle0 = lidoPosCss;
|
|
@@ -64,7 +64,7 @@ const LidoPos = /*@__PURE__*/ proxyCustomElement(class LidoPos extends H {
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '0ab10d21eccd24db07fb6b87d21f75be32801013', id: this.id, class: "lido-pos", type: this.type, "tab-index": this.tabIndex, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, minDrops: this.minDrops, maxDrops: this.maxDrops, value: this.value, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, h("slot", { key: '11a3f2fc1b08007601879c9cae2f2736dd511499' })));
|
|
68
68
|
}
|
|
69
69
|
get el() { return this; }
|
|
70
70
|
static get style() { return LidoPosStyle0; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, l as createEvent, m as equationCheck, n as storingEachActivityScore, o as executeActions, q as calculateScore, N as NextContainerKey, h, j as Host } from './p-
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, l as createEvent, m as equationCheck, n as storingEachActivityScore, o as executeActions, q as calculateScore, N as NextContainerKey, h, j as Host } from './p-235091a1.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-3acada8c.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './p-37c86a94.js';
|
|
4
4
|
|
|
5
5
|
const lidoCalculatorCss = "#lidoCalculator{border-radius:19px;border:5px solid #029A9A;position:relative;display:flex;flex-direction:column;padding:2%;box-sizing:border-box}.lido-calculator-btn-special{background-color:#014D4D !important;--btn-shadow-color:#0a2f2f !important}.lido-calculator-btn-default{background-color:#029A9A !important;color:#000;--btn-shadow-color:#0f4242 !important}#lido-calculator-penIcon{--btn-bg-color:#FB7038 !important;--btn-shadow-px:0 8px 0 !important;--btn-shadow-color:#D74B12 !important;border-radius:5px !important}.lido-calculator-displayParent{width:89%;height:107px;background-color:rgb(68, 186, 186);border-radius:5px;margin:14px auto 17px auto;overflow:hidden;display:flex;align-items:end}.lido-calculator-display{width:97%;height:94px;background:#029A9A;color:#fff;text-align:right;display:flex;justify-content:flex-end;align-items:center;font-size:72px;font-weight:700;font-family:'Baloo Bhai 2', serif;border-radius:5px 0px 0px 5px;box-sizing:border-box;margin:0 0px -6px auto}.lido-calculator-buttons{flex:1;display:grid;grid-template-columns:repeat(3, 1fr);grid-auto-rows:1fr;gap:0%;width:100%;justify-items:center;align-items:center;position:relative;top:-1%}.lido-calculator-buttons lido-text{display:flex !important;justify-content:center;align-items:center;width:96px !important;height:80px !important;font-size:72px !important;font-weight:700 !important;color:#fff;border-radius:5px !important;cursor:pointer;text-align:center;line-height:1;box-sizing:border-box;transition:transform 0.1s}.lido-calculator-buttons lido-text:active{transform:scale(0.95)}";
|
|
6
6
|
const LidoCalculatorStyle0 = lidoCalculatorCss;
|