lido-player 0.0.2-beta-25-dev → 0.0.2-beta-26-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/LICENSE +21 -21
- package/dist/cjs/{decode-BSImuLEU.js → decode-CE64w_Pc.js} +1 -1
- package/dist/cjs/{index-DRw2yVbg.js → index-Cf9LHdIw.js} +126 -60
- package/dist/cjs/{index-DBCFoh1I.js → index-DnaH8sO-.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/lido-avatar_22.cjs.entry.js +103 -42
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/avatar/lido-avatar.css +4 -4
- package/dist/collection/components/avatar/lido-avatar.js +1 -1
- package/dist/collection/components/avatar/lido-avatar.tsx +214 -214
- package/dist/collection/components/avatar/readme.md +49 -49
- package/dist/collection/components/calculator/lido-calculator.css +89 -89
- package/dist/collection/components/calculator/lido-calculator.js +2 -2
- package/dist/collection/components/canvas/lido-canvas.css +33 -33
- package/dist/collection/components/canvas/lido-canvas.js +1 -1
- package/dist/collection/components/cell/lido-cell.css +100 -100
- package/dist/collection/components/cell/lido-cell.js +12 -12
- package/dist/collection/components/column/lido-col.css +19 -19
- package/dist/collection/components/column/lido-col.js +6 -6
- package/dist/collection/components/container/lido-container.css +34 -34
- package/dist/collection/components/container/lido-container.js +8 -8
- package/dist/collection/components/flashCard/lido-flash-card.css +72 -72
- package/dist/collection/components/flashCard/lido-flash-card.js +72 -12
- package/dist/collection/components/float/lido-float.css +30 -30
- package/dist/collection/components/float/lido-float.js +2 -2
- package/dist/collection/components/home/lido-home.css +309 -309
- package/dist/collection/components/home/lido-home.js +35 -8
- package/dist/collection/components/image/lido-image.css +17 -17
- package/dist/collection/components/image/lido-image.js +6 -6
- package/dist/collection/components/keyboard/lido-keyboard.css +38 -38
- package/dist/collection/components/keyboard/lido-keyboard.js +3 -3
- package/dist/collection/components/mathMatrix/lido-math-matrix.css +56 -56
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +1 -1
- package/dist/collection/components/position/lido-pos.css +16 -16
- package/dist/collection/components/position/lido-pos.js +2 -2
- package/dist/collection/components/random/lido-random.css +8 -8
- package/dist/collection/components/random/lido-random.js +2 -2
- package/dist/collection/components/root/lido-root.js +5 -5
- package/dist/collection/components/row/lido-row.css +10 -10
- package/dist/collection/components/row/lido-row.js +6 -6
- package/dist/collection/components/scale/assets/Shadow.svg +9 -9
- package/dist/collection/components/scale/lido-balance.css +174 -174
- package/dist/collection/components/scale/lido-balance.js +13 -13
- package/dist/collection/components/shape/lido-shape.css +216 -216
- package/dist/collection/components/shape/lido-shape.js +6 -6
- package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
- package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
- package/dist/collection/components/text/lido-text.css +53 -53
- package/dist/collection/components/text/lido-text.js +6 -6
- package/dist/collection/components/trace/assets/Tracing-hand.svg +8 -8
- package/dist/collection/components/trace/lido-trace.css +97 -97
- package/dist/collection/components/trace/lido-trace.js +2 -2
- package/dist/collection/components/wrap/lido-wrap.css +18 -18
- package/dist/collection/components/wrap/lido-wrap.js +6 -6
- package/dist/collection/css/animation.css +211 -211
- package/dist/collection/css/index.css +323 -323
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +61 -61
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +48 -48
- package/dist/collection/stories/Templates/Tag/tagGame.stories.js +39 -39
- package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +44 -44
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +35 -35
- package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
- package/dist/collection/stories/Templates/blender/blender.stories.js +59 -59
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +28 -28
- package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
- package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
- package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +29 -29
- package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
- package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
- package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +43 -43
- package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
- package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
- package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
- package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +44 -44
- package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
- package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
- package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
- package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
- package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +84 -84
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +31 -31
- package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
- package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +57 -57
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +53 -53
- package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +46 -46
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +45 -45
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +56 -56
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +53 -53
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +127 -127
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +47 -47
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +38 -38
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +97 -97
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +63 -63
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +45 -45
- package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +63 -63
- package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +79 -79
- package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +32 -32
- package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +42 -42
- package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +63 -63
- package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +44 -44
- package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +34 -34
- package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +52 -52
- package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +33 -33
- package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +40 -40
- package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +48 -48
- package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +48 -48
- package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +18 -18
- package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +44 -44
- package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +34 -34
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +36 -36
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +30 -30
- package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
- package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
- package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +58 -58
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
- package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +633 -633
- package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +47 -47
- package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +29 -29
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +64 -64
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -62
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +106 -106
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +50 -50
- package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
- package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
- package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +62 -62
- package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +42 -42
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +50 -50
- package/dist/collection/stories/Templates/tenBox/tenBox.stories.js +88 -88
- package/dist/collection/stories/Templates/total/total.stories.js +28 -28
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +35 -35
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +34 -34
- package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +31 -31
- package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +58 -58
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -44
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +31 -31
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +34 -34
- package/dist/collection/stories/components/flash-card.stories.js +48 -48
- package/dist/collection/stories/components/keyboard.stories.js +10 -10
- package/dist/collection/stories/components/slider.stories.js +4 -4
- package/dist/collection/stories/components/trace.stories.js +5 -5
- package/dist/collection/utils/audioPlayer.js +7 -2
- package/dist/collection/utils/constants.js +6 -0
- package/dist/collection/utils/utils.js +59 -7
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +8 -8
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
- package/dist/collection/utils/utilsHandlers/sortHandler.js +10 -10
- 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 +1 -1
- 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-B4iWvszS.js +1 -0
- package/dist/components/{p-Cf85Nc-6.js → p-BA-XmR9g.js} +1 -1
- package/dist/components/p-BJt-z8VW.js +1 -0
- package/dist/components/{p-CTlcpv4a.js → p-BfwUqpXc.js} +1 -1
- package/dist/components/{p-DNo3iX_r.js → p-BiBt9LGP.js} +1 -1
- package/dist/components/{p-DG0KR2iN.js → p-BlN0IsR4.js} +1 -1
- package/dist/components/{p-BSWrnLbC.js → p-BpVpANK9.js} +1 -1
- package/dist/components/{p-CgsPIpg0.js → p-Bw-OC9iR.js} +1 -1
- package/dist/components/p-C2J7-bcH.js +1 -0
- package/dist/components/{p-BfJG1wmU.js → p-CEmofYPx.js} +1 -1
- package/dist/components/{p-C5WmmkI6.js → p-CPYnt0P-.js} +1 -1
- package/dist/components/{p-CsDu4kiC.js → p-ChfVUoX4.js} +1 -1
- package/dist/components/{p-AaE392x7.js → p-CnQ-4EIw.js} +1 -1
- package/dist/components/{p-CXHPZN3m.js → p-CyGxEcn7.js} +1 -1
- package/dist/components/{p-CuDMRxx_.js → p-D1cBkIab.js} +1 -1
- package/dist/components/p-DP6jQ5ML.js +1 -0
- package/dist/components/{p-BW0855oZ.js → p-DV-k1ulI.js} +1 -1
- package/dist/components/p-Qhj9-H6e.js +12 -0
- package/dist/components/{p-CVZEVfip.js → p-hUfX1As2.js} +1 -1
- package/dist/components/p-leIEepjl.js +1 -0
- package/dist/components/{p-CK9M0Kcf.js → p-s4oGlKg6.js} +1 -1
- package/dist/components/{p-C70ykycD.js → p-useuhkjH.js} +1 -1
- package/dist/esm/{decode-D2f5bktc.js → decode-DhjaTUf2.js} +1 -1
- package/dist/esm/{index-BB56Mo3L.js → index-Bc6Y7rds.js} +124 -61
- package/dist/esm/{index-mMpK8062.js → index-Dvjbti-h.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/lido-avatar_22.entry.js +103 -42
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/lido-player/assets/Shadow.svg +9 -9
- package/dist/lido-player/assets/Tracing-hand.svg +8 -8
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-avatar.css +4 -4
- package/dist/lido-player/lido-avatar.tsx +214 -214
- package/dist/lido-player/lido-player.css +7 -7
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/{p-DSlo480E.js → p-CORilAH-.js} +1 -1
- package/dist/lido-player/p-D66K5DXn.js +1 -0
- package/dist/lido-player/p-Dvjbti-h.js +2 -0
- package/dist/lido-player/p-ca195982.entry.js +12 -0
- package/dist/lido-player/readme.md +49 -49
- package/dist/types/components/flashCard/lido-flash-card.d.ts +2 -0
- package/dist/types/components.d.ts +1 -0
- package/dist/types/types/json.d.ts +3 -3
- package/dist/types/utils/audioPlayer.d.ts +1 -1
- package/dist/types/utils/constants.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +4 -0
- package/package.json +73 -73
- package/readme.md +113 -113
- package/dist/components/p-B-mIxynb.js +0 -1
- package/dist/components/p-CSxwfvl3.js +0 -1
- package/dist/components/p-DONbWJGn.js +0 -1
- package/dist/components/p-DPGOqpde.js +0 -1
- package/dist/components/p-DXy70SGv.js +0 -1
- package/dist/components/p-i3W5bJbL.js +0 -12
- package/dist/lido-player/p-53d245b0.entry.js +0 -12
- package/dist/lido-player/p-DKuh-2gv.js +0 -1
- package/dist/lido-player/p-mMpK8062.js +0 -2
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* controllable `flipped` prop.
|
|
5
5
|
* ------------------------------------------------------------------*/
|
|
6
6
|
import { Host, h } from "@stencil/core";
|
|
7
|
-
import { parseProp, initEventsForElement, setVisibilityWithDelay, executeActions } from "../../utils/utils";
|
|
7
|
+
import { parseProp, initEventsForElement, setVisibilityWithDelay, executeActions, getGoodJobAudio, shouldPlayGoodJobAudio } from "../../utils/utils";
|
|
8
8
|
import { AudioPlayer } from "../../utils/audioPlayer";
|
|
9
|
+
import { TemplateID } from "../../utils/constants";
|
|
9
10
|
export class LidoFlash {
|
|
10
11
|
constructor() {
|
|
11
12
|
/* ---------- Generic Lido props (mirrors lido‑row) ---------- */
|
|
@@ -88,6 +89,7 @@ export class LidoFlash {
|
|
|
88
89
|
this.narrationHandled = false;
|
|
89
90
|
this.instructionDone = false;
|
|
90
91
|
this.instructionStarted = false;
|
|
92
|
+
this.shouldPlayTemplateInstruction = true;
|
|
91
93
|
this.onAudioStarted = (event) => {
|
|
92
94
|
var _a;
|
|
93
95
|
const target = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.target;
|
|
@@ -293,18 +295,20 @@ export class LidoFlash {
|
|
|
293
295
|
if (!arrow.getAttribute('onTouch'))
|
|
294
296
|
arrow.setAttribute('onTouch', "this.nextBtn='true';");
|
|
295
297
|
const mascot = container.querySelector('#lido-avatar');
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
+
const originalAudio = (mascot === null || mascot === void 0 ? void 0 : mascot.getAttribute('audio')) || undefined;
|
|
299
|
+
const scaffoldAudio = getGoodJobAudio(arrow) || originalAudio;
|
|
300
|
+
const shouldPlayGoodJob = shouldPlayGoodJobAudio(arrow);
|
|
301
|
+
if (mascot && scaffoldAudio && shouldPlayGoodJob) {
|
|
298
302
|
mascot.setAttribute('audio', scaffoldAudio);
|
|
299
303
|
}
|
|
300
304
|
this.setArrowVisible(true);
|
|
301
305
|
// Keep the next action highlighted after mascot audio ends.
|
|
302
306
|
arrow.classList.add('flash-card-next-glowing');
|
|
303
|
-
if (mascot) {
|
|
307
|
+
if (mascot && shouldPlayGoodJob) {
|
|
304
308
|
this.goodJobPlaybackContext = {};
|
|
305
309
|
this.goodJobPlaybackId = undefined;
|
|
306
310
|
executeActions("this.avatarAnimate='Idle speak'", mascot);
|
|
307
|
-
AudioPlayer.getI().play(mascot, true, this.goodJobPlaybackContext);
|
|
311
|
+
AudioPlayer.getI().play(mascot, true, this.goodJobPlaybackContext, originalAudio);
|
|
308
312
|
}
|
|
309
313
|
};
|
|
310
314
|
this.setArrowVisible = (visible) => {
|
|
@@ -345,7 +349,7 @@ export class LidoFlash {
|
|
|
345
349
|
window.addEventListener('load', this.updateStyles);
|
|
346
350
|
}
|
|
347
351
|
componentDidLoad() {
|
|
348
|
-
var _a;
|
|
352
|
+
var _a, _b;
|
|
349
353
|
setVisibilityWithDelay(this.el, this.delayVisible);
|
|
350
354
|
initEventsForElement(this.el, this.type);
|
|
351
355
|
window.addEventListener('lidoAudioStarted', this.onAudioStarted);
|
|
@@ -353,9 +357,17 @@ export class LidoFlash {
|
|
|
353
357
|
window.addEventListener('lidoAudioEnded', this.onAudioEnded);
|
|
354
358
|
const container = this.el.closest('lido-container');
|
|
355
359
|
if ((container === null || container === void 0 ? void 0 : container.getAttribute('template-id')) === 'flashcardtemplate') {
|
|
356
|
-
|
|
360
|
+
const home = container.closest('lido-home');
|
|
361
|
+
const playedTemplates = ((_a = home === null || home === void 0 ? void 0 : home.getAttribute(TemplateID)) === null || _a === void 0 ? void 0 : _a.split(',').map(value => value.trim()).filter(Boolean)) || [];
|
|
362
|
+
this.shouldPlayTemplateInstruction = !playedTemplates.includes('flashcardtemplate');
|
|
363
|
+
(_b = container.querySelector('#lido-avatar')) === null || _b === void 0 ? void 0 : _b.setAttribute('disable-speak', 'true');
|
|
357
364
|
this.instructionStartTimer = window.setTimeout(() => {
|
|
358
365
|
if (!this.instructionStarted && !this.instructionDone) {
|
|
366
|
+
if (!this.shouldPlayTemplateInstruction) {
|
|
367
|
+
this.instructionDone = true;
|
|
368
|
+
this.speakFront();
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
359
371
|
const instruction = this.instructionText();
|
|
360
372
|
if (instruction)
|
|
361
373
|
this.startNarration(instruction);
|
|
@@ -378,14 +390,37 @@ export class LidoFlash {
|
|
|
378
390
|
window.removeEventListener('resize', this.updateStyles);
|
|
379
391
|
window.removeEventListener('load', this.updateStyles);
|
|
380
392
|
}
|
|
393
|
+
async replayGoodJobAudio() {
|
|
394
|
+
const container = this.el.closest('lido-container');
|
|
395
|
+
if ((container === null || container === void 0 ? void 0 : container.getAttribute('template-id')) !== 'flashcardtemplate')
|
|
396
|
+
return;
|
|
397
|
+
const arrow = this.nextArrow();
|
|
398
|
+
const mascot = container.querySelector('#lido-avatar');
|
|
399
|
+
if (!arrow || !mascot)
|
|
400
|
+
return;
|
|
401
|
+
const arrowVisible = arrow.getAttribute('visible') === 'true'
|
|
402
|
+
|| arrow.style.visibility === 'visible';
|
|
403
|
+
if (!arrowVisible)
|
|
404
|
+
return;
|
|
405
|
+
const originalAudio = mascot.getAttribute('audio') || undefined;
|
|
406
|
+
const localizedAudio = getGoodJobAudio(arrow);
|
|
407
|
+
const replayAudio = localizedAudio || originalAudio;
|
|
408
|
+
if (!replayAudio)
|
|
409
|
+
return;
|
|
410
|
+
mascot.setAttribute('audio', replayAudio);
|
|
411
|
+
this.goodJobPlaybackContext = {};
|
|
412
|
+
this.goodJobPlaybackId = undefined;
|
|
413
|
+
executeActions("this.avatarAnimate='Idle speak'", mascot);
|
|
414
|
+
await AudioPlayer.getI().play(mascot, true, this.goodJobPlaybackContext, originalAudio);
|
|
415
|
+
}
|
|
381
416
|
/* ---------- Render ---------- */
|
|
382
417
|
render() {
|
|
383
|
-
return (h(Host, { key: '
|
|
418
|
+
return (h(Host, { key: 'b6012ba4855d142b6fdbad9dcfd7251bfcbb932b', 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: (event) => {
|
|
384
419
|
var _a, _b;
|
|
385
420
|
if ((_b = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest) === null || _b === void 0 ? void 0 : _b.call(_a, '#lido-avatar'))
|
|
386
421
|
return;
|
|
387
422
|
this.handleFlip();
|
|
388
|
-
}, "disable-speak": this.disableSpeak }, h("div", { key: '
|
|
423
|
+
}, "disable-speak": this.disableSpeak }, h("div", { key: 'fecb100c8ac0f227d8bd685d02f8314e9018fe02', class: `card ${this.flipped ? 'flipped' : ''}` }, h("div", { key: 'e89512323ad8eb884548a1dead734f635c096c8f', class: "card-face card-front" }, this.front != null ? this.front : h("slot", { name: "front" })), h("div", { key: '82820aaf5b5febcf8247f96faca59976b8fade8e', class: "card-face card-back" }, this.back != null ? this.back : h("slot", { name: "back" })))));
|
|
389
424
|
}
|
|
390
425
|
static get is() { return "lido-flash-card"; }
|
|
391
426
|
static get originalStyleUrls() {
|
|
@@ -752,7 +787,7 @@ export class LidoFlash {
|
|
|
752
787
|
"optional": false,
|
|
753
788
|
"docs": {
|
|
754
789
|
"tags": [],
|
|
755
|
-
"text": "The number of child elements that should be displayed inside the row.\nThis value is dynamically adjusted based on `minLength` and `maxLength`."
|
|
790
|
+
"text": "The number of child elements that should be displayed inside the row.\r\nThis value is dynamically adjusted based on `minLength` and `maxLength`."
|
|
756
791
|
},
|
|
757
792
|
"getter": false,
|
|
758
793
|
"setter": false,
|
|
@@ -828,7 +863,7 @@ export class LidoFlash {
|
|
|
828
863
|
"optional": false,
|
|
829
864
|
"docs": {
|
|
830
865
|
"tags": [],
|
|
831
|
-
"text": "Whether the card is flipped (back side visible).\n`mutable` lets the component toggle itself on click;\n`reflect` keeps the `<lido-flash-card flipped>` attribute in sync."
|
|
866
|
+
"text": "Whether the card is flipped (back side visible).\r\n`mutable` lets the component toggle itself on click;\r\n`reflect` keeps the `<lido-flash-card flipped>` attribute in sync."
|
|
832
867
|
},
|
|
833
868
|
"getter": false,
|
|
834
869
|
"setter": false,
|
|
@@ -868,7 +903,7 @@ export class LidoFlash {
|
|
|
868
903
|
"optional": false,
|
|
869
904
|
"docs": {
|
|
870
905
|
"tags": [],
|
|
871
|
-
"text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
906
|
+
"text": "CSS margin value applied to each child element inside the container.\r\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
872
907
|
},
|
|
873
908
|
"getter": false,
|
|
874
909
|
"setter": false,
|
|
@@ -923,6 +958,31 @@ export class LidoFlash {
|
|
|
923
958
|
"style": {}
|
|
924
959
|
};
|
|
925
960
|
}
|
|
961
|
+
static get methods() {
|
|
962
|
+
return {
|
|
963
|
+
"replayGoodJobAudio": {
|
|
964
|
+
"complexType": {
|
|
965
|
+
"signature": "() => Promise<void>",
|
|
966
|
+
"parameters": [],
|
|
967
|
+
"references": {
|
|
968
|
+
"Promise": {
|
|
969
|
+
"location": "global",
|
|
970
|
+
"id": "global::Promise"
|
|
971
|
+
},
|
|
972
|
+
"HTMLElement": {
|
|
973
|
+
"location": "global",
|
|
974
|
+
"id": "global::HTMLElement"
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
"return": "Promise<void>"
|
|
978
|
+
},
|
|
979
|
+
"docs": {
|
|
980
|
+
"text": "",
|
|
981
|
+
"tags": []
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
};
|
|
985
|
+
}
|
|
926
986
|
static get elementRef() { return "el"; }
|
|
927
987
|
static get watchers() {
|
|
928
988
|
return [{
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
.lido-float {
|
|
2
|
-
position: relative;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.lido-float > * {
|
|
6
|
-
position: absolute;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@keyframes float-up {
|
|
11
|
-
from {
|
|
12
|
-
top: var(--el-top);
|
|
13
|
-
}
|
|
14
|
-
to {
|
|
15
|
-
top: -500px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
#removeShadow {
|
|
20
|
-
box-shadow: unset !important;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@keyframes float-lr {
|
|
24
|
-
from {
|
|
25
|
-
right: var(--el-left);
|
|
26
|
-
}
|
|
27
|
-
to {
|
|
28
|
-
right: -500px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
.lido-float {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.lido-float > * {
|
|
6
|
+
position: absolute;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@keyframes float-up {
|
|
11
|
+
from {
|
|
12
|
+
top: var(--el-top);
|
|
13
|
+
}
|
|
14
|
+
to {
|
|
15
|
+
top: -500px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#removeShadow {
|
|
20
|
+
box-shadow: unset !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@keyframes float-lr {
|
|
24
|
+
from {
|
|
25
|
+
right: var(--el-left);
|
|
26
|
+
}
|
|
27
|
+
to {
|
|
28
|
+
right: -500px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -85,7 +85,7 @@ export class LidoFloat {
|
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: 'c461f1142dd6addd9ceb41ade183b044b875681f', class: "lido-float", "float-direction": this.floatDirection, id: this.id, "tab-index": this.tabIndex, style: this.style, onEntry: this.onEntry }, h("slot", { key: '240439bfda6a9e4e2d67e6ae2b5c878d99e632b3' })));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "lido-float"; }
|
|
91
91
|
static get originalStyleUrls() {
|
|
@@ -328,7 +328,7 @@ export class LidoFloat {
|
|
|
328
328
|
"optional": false,
|
|
329
329
|
"docs": {
|
|
330
330
|
"tags": [],
|
|
331
|
-
"text": "Direction of the float element's movement (e.g., 'leftToRight', 'bottomToTop').\nThis can be used to control the animation or positioning of the float elements."
|
|
331
|
+
"text": "Direction of the float element's movement (e.g., 'leftToRight', 'bottomToTop').\r\nThis can be used to control the animation or positioning of the float elements."
|
|
332
332
|
},
|
|
333
333
|
"getter": false,
|
|
334
334
|
"setter": false,
|