lido-player 0.0.2-beta-23-dev → 0.0.2-beta-24
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-BDs2S8om.js → decode-BCvdWRyT.js} +1 -1
- package/dist/cjs/{index-DnaH8sO-.js → index-DBCFoh1I.js} +1 -1
- package/dist/cjs/{index-D5olYRJo.js → index-DjM03fsg.js} +151 -82
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/lido-avatar_22.cjs.entry.js +156 -44
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/avatar/lido-avatar.css +4 -4
- package/dist/collection/components/avatar/lido-avatar.js +9 -2
- package/dist/collection/components/avatar/lido-avatar.tsx +214 -207
- 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 +10 -10
- package/dist/collection/components/container/lido-container.js +8 -8
- package/dist/collection/components/flashCard/lido-flash-card.css +72 -46
- package/dist/collection/components/flashCard/lido-flash-card.js +118 -13
- 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 +5 -5
- 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 +5 -5
- 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 +631 -631
- 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 -4
- package/dist/collection/utils/utils.js +70 -14
- package/dist/collection/utils/utilsHandlers/clickHandler.js +4 -3
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +8 -8
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +56 -56
- package/dist/collection/utils/utilsHandlers/slideHandler.js +17 -8
- 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-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-DdQ1eqJr.js → p-B8nzzM8c.js} +1 -1
- package/dist/components/{p-D2GhaM-T.js → p-Bv1hunWk.js} +1 -1
- package/dist/components/{p-DDS30M3y.js → p-C-pHQRbp.js} +1 -1
- package/dist/components/{p-CPYnt0P-.js → p-C5WmmkI6.js} +1 -1
- package/dist/components/{p-useuhkjH.js → p-C70ykycD.js} +1 -1
- package/dist/components/{p-CFzvgrMa.js → p-CFPSty2U.js} +1 -1
- package/dist/components/{p-Lg85waqZ.js → p-CFWohOId.js} +1 -1
- package/dist/components/{p-BfwUqpXc.js → p-CTlcpv4a.js} +1 -1
- package/dist/components/{p-CyGxEcn7.js → p-CXHPZN3m.js} +1 -1
- package/dist/components/{p-Ds-d6wd0.js → p-CgBwmr9A.js} +2 -2
- package/dist/components/{p-Bw-OC9iR.js → p-CgsPIpg0.js} +1 -1
- package/dist/components/p-Ckb8QhUV.js +1 -0
- package/dist/components/{p-ChfVUoX4.js → p-CsDu4kiC.js} +1 -1
- package/dist/components/{p-DZRNZCPt.js → p-DDwqmTYM.js} +1 -1
- package/dist/components/{p-CwDTdXe5.js → p-DG0KR2iN.js} +1 -1
- package/dist/components/p-DLyacZap.js +1 -0
- package/dist/components/{p-BiBt9LGP.js → p-DNo3iX_r.js} +1 -1
- package/dist/components/p-DONbWJGn.js +1 -0
- package/dist/components/p-DXy70SGv.js +1 -0
- package/dist/components/{p-BJiyBHYT.js → p-Gwko4CTL.js} +1 -1
- package/dist/esm/{decode-CAwfe7ub.js → decode-BxzUG5XP.js} +1 -1
- package/dist/esm/{index-bo7729YG.js → index-C_uxZLF-.js} +151 -82
- package/dist/esm/{index-Dvjbti-h.js → index-mMpK8062.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/lido-avatar_22.entry.js +156 -44
- package/dist/esm/lido-player.js +2 -2
- package/dist/esm/loader.js +2 -2
- 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 -207
- package/dist/lido-player/lido-player.css +7 -7
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-00993d1a.entry.js +12 -0
- package/dist/lido-player/{p-D4kAEWCU.js → p-CsCr7DlS.js} +1 -1
- package/dist/lido-player/p-mMpK8062.js +2 -0
- package/dist/lido-player/p-v3GBrpv9.js +1 -0
- package/dist/lido-player/readme.md +49 -49
- package/dist/types/components/flashCard/lido-flash-card.d.ts +13 -0
- package/dist/types/types/json.d.ts +3 -3
- package/dist/types/utils/audioPlayer.d.ts +2 -1
- package/dist/types/utils/utils.d.ts +5 -1
- package/dist/types/utils/utilsHandlers/clickHandler.d.ts +1 -0
- package/dist/types/utils/utilsHandlers/slideHandler.d.ts +1 -1
- package/package.json +73 -74
- package/readme.md +113 -113
- package/dist/components/p-D0cGjo5e.js +0 -1
- package/dist/components/p-DP6jQ5ML.js +0 -1
- package/dist/components/p-DbR5sNOj.js +0 -1
- package/dist/components/p-leIEepjl.js +0 -1
- package/dist/lido-player/p-461a3d23.entry.js +0 -12
- package/dist/lido-player/p-Dvjbti-h.js +0 -2
- package/dist/lido-player/p-VRJMO_sg.js +0 -1
|
@@ -78,7 +78,7 @@ export class LidoCol {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: 'b2ecb19a78feed7275d9e996255db4144d5e0153', id: this.id, class: "lido-col", type: this.type, "tab-index": this.tabIndex, value: this.value, style: this.style, minDrops: this.minDrops, maxDrops: this.maxDrops, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, h("slot", { key: '2d285d2c1557647e05abb470490da6c7c735a39d' })));
|
|
82
82
|
}
|
|
83
83
|
static get is() { return "lido-col"; }
|
|
84
84
|
static get originalStyleUrls() {
|
|
@@ -467,7 +467,7 @@ export class LidoCol {
|
|
|
467
467
|
"optional": false,
|
|
468
468
|
"docs": {
|
|
469
469
|
"tags": [],
|
|
470
|
-
"text": "The number of child elements that should be displayed inside the row.\
|
|
470
|
+
"text": "The number of child elements that should be displayed inside the row.\nThis value is dynamically adjusted based on `minLength` and `maxLength`."
|
|
471
471
|
},
|
|
472
472
|
"getter": false,
|
|
473
473
|
"setter": false,
|
|
@@ -486,7 +486,7 @@ export class LidoCol {
|
|
|
486
486
|
"optional": false,
|
|
487
487
|
"docs": {
|
|
488
488
|
"tags": [],
|
|
489
|
-
"text": "The minimum number of child elements that must be displayed inside the row.\
|
|
489
|
+
"text": "The minimum number of child elements that must be displayed inside the row.\nIf `childElementsLength` is less than this value, additional elements may be shown to meet this minimum."
|
|
490
490
|
},
|
|
491
491
|
"getter": false,
|
|
492
492
|
"setter": false,
|
|
@@ -505,7 +505,7 @@ export class LidoCol {
|
|
|
505
505
|
"optional": false,
|
|
506
506
|
"docs": {
|
|
507
507
|
"tags": [],
|
|
508
|
-
"text": "The maximum number of child elements that can be displayed inside the row.\
|
|
508
|
+
"text": "The maximum number of child elements that can be displayed inside the row.\nIf `childElementsLength` exceeds this value, excess elements will be hidden."
|
|
509
509
|
},
|
|
510
510
|
"getter": false,
|
|
511
511
|
"setter": false,
|
|
@@ -562,7 +562,7 @@ export class LidoCol {
|
|
|
562
562
|
"optional": true,
|
|
563
563
|
"docs": {
|
|
564
564
|
"tags": [],
|
|
565
|
-
"text": "Applies a CSS box-shadow to the component.\
|
|
565
|
+
"text": "Applies a CSS box-shadow to the component.\nAccepts any valid CSS box-shadow value.\nExample: \"0px 4px 10px rgba(0, 0, 0, 0.1)\""
|
|
566
566
|
},
|
|
567
567
|
"getter": false,
|
|
568
568
|
"setter": false,
|
|
@@ -621,7 +621,7 @@ export class LidoCol {
|
|
|
621
621
|
"optional": false,
|
|
622
622
|
"docs": {
|
|
623
623
|
"tags": [],
|
|
624
|
-
"text": "CSS margin value applied to each child element inside the container.\
|
|
624
|
+
"text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
625
625
|
},
|
|
626
626
|
"getter": false,
|
|
627
627
|
"setter": false,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.lido-container {
|
|
2
|
-
position: relative;
|
|
3
|
-
height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
background-color: var(--bgColor, transparent);
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
align-items: center;
|
|
10
|
-
}
|
|
1
|
+
.lido-container {
|
|
2
|
+
position: relative;
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
background-color: var(--bgColor, transparent);
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
}
|
|
@@ -452,7 +452,7 @@ export class LidoContainer {
|
|
|
452
452
|
margin: this.margin,
|
|
453
453
|
userSelect: 'none', // Prevent any field selection
|
|
454
454
|
};
|
|
455
|
-
return (h(Host, { key: '
|
|
455
|
+
return (h(Host, { key: '9dd374c6cdfcc88a5b18e7dc7fec527c853a4719', 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, "highlight-word-by-word": `${this.highlightWordByWord}` }, h("lido-text", { key: '8295782a74ce6ef8ca9a623de8a28b539d9f6d4f', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: 'eb3c995b777986e07dcb6aa935ef38d41aa1e7e7' })));
|
|
456
456
|
}
|
|
457
457
|
static get is() { return "lido-container"; }
|
|
458
458
|
static get originalStyleUrls() {
|
|
@@ -579,7 +579,7 @@ export class LidoContainer {
|
|
|
579
579
|
"optional": false,
|
|
580
580
|
"docs": {
|
|
581
581
|
"tags": [],
|
|
582
|
-
"text": "Custom CSS styles to be applied to the container.\
|
|
582
|
+
"text": "Custom CSS styles to be applied to the container.\nAllows for dynamic styling through inline styles or class names."
|
|
583
583
|
},
|
|
584
584
|
"getter": false,
|
|
585
585
|
"setter": false,
|
|
@@ -1019,7 +1019,7 @@ export class LidoContainer {
|
|
|
1019
1019
|
"optional": false,
|
|
1020
1020
|
"docs": {
|
|
1021
1021
|
"tags": [],
|
|
1022
|
-
"text": "Determines if the activity should proceed automatically only after a correct response.\
|
|
1022
|
+
"text": "Determines if the activity should proceed automatically only after a correct response.\nAcceptable values: \"true\" or \"false\". Defaults to \"false\"."
|
|
1023
1023
|
},
|
|
1024
1024
|
"getter": false,
|
|
1025
1025
|
"setter": false,
|
|
@@ -1059,7 +1059,7 @@ export class LidoContainer {
|
|
|
1059
1059
|
"optional": false,
|
|
1060
1060
|
"docs": {
|
|
1061
1061
|
"tags": [],
|
|
1062
|
-
"text": "CSS margin value applied to each child element inside the container.\
|
|
1062
|
+
"text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
1063
1063
|
},
|
|
1064
1064
|
"getter": false,
|
|
1065
1065
|
"setter": false,
|
|
@@ -1079,7 +1079,7 @@ export class LidoContainer {
|
|
|
1079
1079
|
"optional": false,
|
|
1080
1080
|
"docs": {
|
|
1081
1081
|
"tags": [],
|
|
1082
|
-
"text": "Custom URL for the Exit button icon.\
|
|
1082
|
+
"text": "Custom URL for the Exit button icon.\nFalls back to the default icon if not provided or invalid."
|
|
1083
1083
|
},
|
|
1084
1084
|
"getter": false,
|
|
1085
1085
|
"setter": false,
|
|
@@ -1098,7 +1098,7 @@ export class LidoContainer {
|
|
|
1098
1098
|
"optional": false,
|
|
1099
1099
|
"docs": {
|
|
1100
1100
|
"tags": [],
|
|
1101
|
-
"text": "Custom URL for the Previous button icon.\
|
|
1101
|
+
"text": "Custom URL for the Previous button icon.\nFalls back to the default icon if not provided or invalid."
|
|
1102
1102
|
},
|
|
1103
1103
|
"getter": false,
|
|
1104
1104
|
"setter": false,
|
|
@@ -1117,7 +1117,7 @@ export class LidoContainer {
|
|
|
1117
1117
|
"optional": false,
|
|
1118
1118
|
"docs": {
|
|
1119
1119
|
"tags": [],
|
|
1120
|
-
"text": "Custom URL for the Next button icon.\
|
|
1120
|
+
"text": "Custom URL for the Next button icon.\nFalls back to the default icon if not provided or invalid."
|
|
1121
1121
|
},
|
|
1122
1122
|
"getter": false,
|
|
1123
1123
|
"setter": false,
|
|
@@ -1136,7 +1136,7 @@ export class LidoContainer {
|
|
|
1136
1136
|
"optional": false,
|
|
1137
1137
|
"docs": {
|
|
1138
1138
|
"tags": [],
|
|
1139
|
-
"text": "Custom URL for the Speaker button icon.\
|
|
1139
|
+
"text": "Custom URL for the Speaker button icon.\nFalls back to the default icon if not provided or invalid."
|
|
1140
1140
|
},
|
|
1141
1141
|
"getter": false,
|
|
1142
1142
|
"setter": false,
|
|
@@ -1,46 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
.card {
|
|
4
|
-
position: relative;
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 100%;
|
|
7
|
-
transform-style: preserve-3d;
|
|
8
|
-
transition: transform 0.6s ease;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.card.flipped {
|
|
13
|
-
transform: rotateY(180deg);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.card-face {
|
|
17
|
-
position: absolute;
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: 100%;
|
|
20
|
-
backface-visibility: hidden;
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.card-back {
|
|
27
|
-
transform: rotateY(180deg);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* Flash Card's local next button is positioned against the 1600x900 Lido
|
|
31
|
-
canvas, rather than against the viewport or the global navigation bar. */
|
|
32
|
-
lido-container[template-id="flashcardtemplate"] #arrow {
|
|
33
|
-
position: absolute !important;
|
|
34
|
-
left: auto !important;
|
|
35
|
-
top: 50% !important;
|
|
36
|
-
right: 13.3% !important;
|
|
37
|
-
transform: translateY(-50%);
|
|
38
|
-
z-index: 4 !important;
|
|
39
|
-
overflow: visible;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
.card {
|
|
4
|
+
position: relative;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
transform-style: preserve-3d;
|
|
8
|
+
transition: transform 0.6s ease;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.card.flipped {
|
|
13
|
+
transform: rotateY(180deg);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.card-face {
|
|
17
|
+
position: absolute;
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
backface-visibility: hidden;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.card-back {
|
|
27
|
+
transform: rotateY(180deg);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Flash Card's local next button is positioned against the 1600x900 Lido
|
|
31
|
+
canvas, rather than against the viewport or the global navigation bar. */
|
|
32
|
+
lido-container[template-id="flashcardtemplate"] #arrow {
|
|
33
|
+
position: absolute !important;
|
|
34
|
+
left: auto !important;
|
|
35
|
+
top: 50% !important;
|
|
36
|
+
right: 13.3% !important;
|
|
37
|
+
transform: translateY(-50%);
|
|
38
|
+
z-index: 4 !important;
|
|
39
|
+
overflow: visible;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
border: 10px solid transparent;
|
|
42
|
+
box-shadow: 0px 8px 0px 0px #8b310f !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
lido-container[template-id="flashcardtemplate"] #arrow.flash-card-next-glowing {
|
|
46
|
+
animation: flash-card-next-attention 1.4s ease-in-out infinite;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@keyframes flash-card-next-attention {
|
|
50
|
+
0%,
|
|
51
|
+
100% {
|
|
52
|
+
border-color: #ffc34d;
|
|
53
|
+
filter: drop-shadow(0 0 0 rgba(255, 195, 77, 0));
|
|
54
|
+
}
|
|
55
|
+
50% {
|
|
56
|
+
border-color: #fff1a8;
|
|
57
|
+
filter: drop-shadow(0 0 10px rgba(255, 195, 77, 0.95));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Match the shared top Next arrow's raised press behavior without changing
|
|
62
|
+
the Flash Card arrow's existing size or right-side positioning. */
|
|
63
|
+
lido-container[template-id="flashcardtemplate"] #arrow:active {
|
|
64
|
+
transform: translateY(calc(-50% + 8px)) !important;
|
|
65
|
+
box-shadow: 0px 0px 0px 0px !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media (orientation: portrait) {
|
|
69
|
+
lido-container[template-id="flashcardtemplate"] #arrow {
|
|
70
|
+
right: -4.3% !important;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -84,6 +84,8 @@ export class LidoFlash {
|
|
|
84
84
|
*/
|
|
85
85
|
this.flipped = false;
|
|
86
86
|
this.autoFlipAfter = 4500;
|
|
87
|
+
this.narrationTarget = null;
|
|
88
|
+
this.narrationHandled = false;
|
|
87
89
|
this.instructionDone = false;
|
|
88
90
|
this.instructionStarted = false;
|
|
89
91
|
this.onAudioStarted = (event) => {
|
|
@@ -91,13 +93,37 @@ export class LidoFlash {
|
|
|
91
93
|
const target = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.target;
|
|
92
94
|
if (target === this.instructionText())
|
|
93
95
|
this.instructionStarted = true;
|
|
96
|
+
if (target && target === this.narrationTarget && !this.narrationHandled) {
|
|
97
|
+
if (this.narrationGraceTimer)
|
|
98
|
+
window.clearTimeout(this.narrationGraceTimer);
|
|
99
|
+
this.narrationGraceTimer = undefined;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
this.onAudioPlaying = (event) => {
|
|
103
|
+
const detail = event.detail;
|
|
104
|
+
const target = detail === null || detail === void 0 ? void 0 : detail.target;
|
|
105
|
+
if ((target === null || target === void 0 ? void 0 : target.id) !== 'lido-avatar')
|
|
106
|
+
return;
|
|
107
|
+
if (detail.playbackContext !== this.goodJobPlaybackContext)
|
|
108
|
+
return;
|
|
109
|
+
const arrow = this.nextArrow();
|
|
110
|
+
if (!arrow || !this.flipped)
|
|
111
|
+
return;
|
|
112
|
+
this.goodJobPlaybackId = detail.playbackId;
|
|
113
|
+
arrow.classList.add('flash-card-next-glowing');
|
|
94
114
|
};
|
|
95
115
|
this.onAudioEnded = (event) => {
|
|
96
|
-
var _a;
|
|
116
|
+
var _a, _b, _c, _d;
|
|
97
117
|
const target = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.target;
|
|
98
118
|
const instruction = this.instructionText();
|
|
99
119
|
if (!target || (target !== instruction && target.id !== 'lido-avatar' && !this.el.contains(target)))
|
|
100
120
|
return;
|
|
121
|
+
if (target === this.narrationTarget && !this.narrationHandled) {
|
|
122
|
+
this.finishNarration(target);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (this.narrationHandled && target === this.narrationTarget)
|
|
126
|
+
return;
|
|
101
127
|
if (target === this.instructionText()) {
|
|
102
128
|
this.instructionDone = true;
|
|
103
129
|
this.frontStartTimer = window.setTimeout(() => {
|
|
@@ -119,6 +145,12 @@ export class LidoFlash {
|
|
|
119
145
|
this.showArrow();
|
|
120
146
|
}
|
|
121
147
|
else if (target.id === 'lido-avatar') {
|
|
148
|
+
const playbackId = (_b = event.detail) === null || _b === void 0 ? void 0 : _b.playbackId;
|
|
149
|
+
const playbackContext = (_c = event.detail) === null || _c === void 0 ? void 0 : _c.playbackContext;
|
|
150
|
+
if (playbackContext !== this.goodJobPlaybackContext || playbackId !== this.goodJobPlaybackId)
|
|
151
|
+
return;
|
|
152
|
+
this.goodJobPlaybackId = undefined;
|
|
153
|
+
(_d = this.nextArrow()) === null || _d === void 0 ? void 0 : _d.classList.remove('flash-card-next-glowing');
|
|
122
154
|
executeActions("this.avatarAnimate='Idle'", target);
|
|
123
155
|
}
|
|
124
156
|
};
|
|
@@ -158,13 +190,15 @@ export class LidoFlash {
|
|
|
158
190
|
if (this.autoFlipTimer)
|
|
159
191
|
window.clearTimeout(this.autoFlipTimer);
|
|
160
192
|
AudioPlayer.getI().stop();
|
|
193
|
+
this.clearNarrationTimers();
|
|
161
194
|
const goingBack = !this.flipped;
|
|
162
195
|
this.flipped = !this.flipped;
|
|
196
|
+
this.stopGoodJobGlow();
|
|
163
197
|
this.setArrowVisible(false);
|
|
164
198
|
if (goingBack) {
|
|
165
199
|
const text = this.backText();
|
|
166
200
|
if (text && ((_a = text.textContent) === null || _a === void 0 ? void 0 : _a.trim()))
|
|
167
|
-
|
|
201
|
+
this.startNarration(text);
|
|
168
202
|
else
|
|
169
203
|
this.showArrow();
|
|
170
204
|
}
|
|
@@ -179,37 +213,96 @@ export class LidoFlash {
|
|
|
179
213
|
};
|
|
180
214
|
this.frontText = () => this.el.querySelector('.card-front lido-text');
|
|
181
215
|
this.backText = () => this.el.querySelector('.card-back lido-text');
|
|
216
|
+
this.nextArrow = () => { var _a; return (_a = this.el.closest('lido-container')) === null || _a === void 0 ? void 0 : _a.querySelector('#arrow'); };
|
|
217
|
+
this.stopGoodJobGlow = () => {
|
|
218
|
+
var _a;
|
|
219
|
+
this.goodJobPlaybackId = undefined;
|
|
220
|
+
this.goodJobPlaybackContext = undefined;
|
|
221
|
+
(_a = this.nextArrow()) === null || _a === void 0 ? void 0 : _a.classList.remove('flash-card-next-glowing');
|
|
222
|
+
};
|
|
182
223
|
this.speakFront = () => {
|
|
183
224
|
var _a;
|
|
184
225
|
const text = this.frontText();
|
|
185
226
|
if (this.instructionDone && !this.flipped && text && ((_a = text.textContent) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
186
|
-
|
|
227
|
+
this.startNarration(text);
|
|
187
228
|
}
|
|
188
229
|
};
|
|
230
|
+
this.clearNarrationTimers = () => {
|
|
231
|
+
if (this.narrationGraceTimer)
|
|
232
|
+
window.clearTimeout(this.narrationGraceTimer);
|
|
233
|
+
this.narrationGraceTimer = undefined;
|
|
234
|
+
this.narrationTarget = null;
|
|
235
|
+
this.narrationHandled = false;
|
|
236
|
+
};
|
|
237
|
+
this.continueAfterNarration = (target) => {
|
|
238
|
+
if (target === this.instructionText()) {
|
|
239
|
+
this.instructionDone = true;
|
|
240
|
+
this.frontStartTimer = window.setTimeout(() => this.speakFront(), 1200);
|
|
241
|
+
}
|
|
242
|
+
else if (target === this.frontText()) {
|
|
243
|
+
if (this.flipped)
|
|
244
|
+
return;
|
|
245
|
+
if (this.autoFlipTimer)
|
|
246
|
+
window.clearTimeout(this.autoFlipTimer);
|
|
247
|
+
this.autoFlipTimer = window.setTimeout(() => {
|
|
248
|
+
if (!this.flipped)
|
|
249
|
+
this.handleFlip();
|
|
250
|
+
}, this.autoFlipAfter);
|
|
251
|
+
}
|
|
252
|
+
else if (target === this.backText()) {
|
|
253
|
+
if (this.flipped)
|
|
254
|
+
this.showArrow();
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
this.finishNarration = (target) => {
|
|
258
|
+
if (target !== this.narrationTarget || this.narrationHandled)
|
|
259
|
+
return;
|
|
260
|
+
this.narrationHandled = true;
|
|
261
|
+
if (this.narrationGraceTimer)
|
|
262
|
+
window.clearTimeout(this.narrationGraceTimer);
|
|
263
|
+
this.narrationGraceTimer = undefined;
|
|
264
|
+
this.continueAfterNarration(target);
|
|
265
|
+
};
|
|
266
|
+
this.startNarration = (target) => {
|
|
267
|
+
this.clearNarrationTimers();
|
|
268
|
+
this.narrationTarget = target;
|
|
269
|
+
this.narrationGraceTimer = window.setTimeout(() => {
|
|
270
|
+
if (!this.narrationHandled)
|
|
271
|
+
this.finishNarration(target);
|
|
272
|
+
}, LidoFlash.narrationStartGrace);
|
|
273
|
+
executeActions("this.speak='true'", target);
|
|
274
|
+
};
|
|
189
275
|
this.showArrow = () => {
|
|
190
276
|
if (!this.flipped)
|
|
191
277
|
return;
|
|
192
|
-
const
|
|
278
|
+
const container = this.el.closest('lido-container');
|
|
279
|
+
if ((container === null || container === void 0 ? void 0 : container.getAttribute('template-id')) !== 'flashcardtemplate')
|
|
280
|
+
return;
|
|
281
|
+
const arrow = this.nextArrow();
|
|
193
282
|
if (!arrow)
|
|
194
283
|
return;
|
|
195
284
|
// Existing ZIPs may not have the newer template onTouch action. Reuse
|
|
196
285
|
// the same direct nextBtn action as the shared home arrow for them.
|
|
197
286
|
if (!arrow.getAttribute('onTouch'))
|
|
198
287
|
arrow.setAttribute('onTouch', "this.nextBtn='true';");
|
|
199
|
-
const mascot =
|
|
288
|
+
const mascot = container.querySelector('#lido-avatar');
|
|
200
289
|
const scaffoldAudio = arrow.getAttribute('audio');
|
|
201
290
|
if (mascot && scaffoldAudio) {
|
|
202
291
|
mascot.setAttribute('audio', scaffoldAudio);
|
|
203
|
-
arrow.removeAttribute('audio');
|
|
204
292
|
}
|
|
205
293
|
this.setArrowVisible(true);
|
|
206
294
|
if (mascot) {
|
|
295
|
+
this.goodJobPlaybackContext = {};
|
|
296
|
+
this.goodJobPlaybackId = undefined;
|
|
207
297
|
executeActions("this.avatarAnimate='Idle speak'", mascot);
|
|
208
|
-
AudioPlayer.getI().play(mascot, true);
|
|
298
|
+
AudioPlayer.getI().play(mascot, true, this.goodJobPlaybackContext);
|
|
209
299
|
}
|
|
210
300
|
};
|
|
211
301
|
this.setArrowVisible = (visible) => {
|
|
212
|
-
const
|
|
302
|
+
const container = this.el.closest('lido-container');
|
|
303
|
+
if ((container === null || container === void 0 ? void 0 : container.getAttribute('template-id')) !== 'flashcardtemplate')
|
|
304
|
+
return;
|
|
305
|
+
const arrow = container.querySelector('#arrow');
|
|
213
306
|
if (!arrow)
|
|
214
307
|
return;
|
|
215
308
|
arrow.visible = visible;
|
|
@@ -220,6 +313,7 @@ export class LidoFlash {
|
|
|
220
313
|
arrow.style.display = visible ? 'block' : 'none';
|
|
221
314
|
arrow.style.visibility = visible ? 'visible' : 'hidden';
|
|
222
315
|
arrow.style.opacity = visible ? '1' : '0';
|
|
316
|
+
arrow.style.pointerEvents = visible ? 'auto' : 'none';
|
|
223
317
|
const arrowImage = arrow.querySelector('lido-image');
|
|
224
318
|
if (arrowImage) {
|
|
225
319
|
arrowImage.style.display = visible ? 'flex' : 'none';
|
|
@@ -242,17 +336,20 @@ export class LidoFlash {
|
|
|
242
336
|
window.addEventListener('load', this.updateStyles);
|
|
243
337
|
}
|
|
244
338
|
componentDidLoad() {
|
|
339
|
+
var _a;
|
|
245
340
|
setVisibilityWithDelay(this.el, this.delayVisible);
|
|
246
341
|
initEventsForElement(this.el, this.type);
|
|
247
342
|
window.addEventListener('lidoAudioStarted', this.onAudioStarted);
|
|
343
|
+
window.addEventListener('lidoAudioPlaying', this.onAudioPlaying);
|
|
248
344
|
window.addEventListener('lidoAudioEnded', this.onAudioEnded);
|
|
249
345
|
const container = this.el.closest('lido-container');
|
|
250
346
|
if ((container === null || container === void 0 ? void 0 : container.getAttribute('template-id')) === 'flashcardtemplate') {
|
|
347
|
+
(_a = container.querySelector('#lido-avatar')) === null || _a === void 0 ? void 0 : _a.setAttribute('disable-speak', 'true');
|
|
251
348
|
this.instructionStartTimer = window.setTimeout(() => {
|
|
252
349
|
if (!this.instructionStarted && !this.instructionDone) {
|
|
253
350
|
const instruction = this.instructionText();
|
|
254
351
|
if (instruction)
|
|
255
|
-
|
|
352
|
+
this.startNarration(instruction);
|
|
256
353
|
}
|
|
257
354
|
}, 150);
|
|
258
355
|
}
|
|
@@ -260,6 +357,7 @@ export class LidoFlash {
|
|
|
260
357
|
}
|
|
261
358
|
disconnectedCallback() {
|
|
262
359
|
window.removeEventListener('lidoAudioEnded', this.onAudioEnded);
|
|
360
|
+
window.removeEventListener('lidoAudioPlaying', this.onAudioPlaying);
|
|
263
361
|
window.removeEventListener('lidoAudioStarted', this.onAudioStarted);
|
|
264
362
|
if (this.autoFlipTimer)
|
|
265
363
|
window.clearTimeout(this.autoFlipTimer);
|
|
@@ -267,12 +365,18 @@ export class LidoFlash {
|
|
|
267
365
|
window.clearTimeout(this.instructionStartTimer);
|
|
268
366
|
if (this.frontStartTimer)
|
|
269
367
|
window.clearTimeout(this.frontStartTimer);
|
|
368
|
+
this.clearNarrationTimers();
|
|
270
369
|
window.removeEventListener('resize', this.updateStyles);
|
|
271
370
|
window.removeEventListener('load', this.updateStyles);
|
|
272
371
|
}
|
|
273
372
|
/* ---------- Render ---------- */
|
|
274
373
|
render() {
|
|
275
|
-
return (h(Host, { key: '
|
|
374
|
+
return (h(Host, { key: '9098ad4c1f41ac70e6737438209f2f3027153b3b', 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) => {
|
|
375
|
+
var _a, _b;
|
|
376
|
+
if ((_b = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest) === null || _b === void 0 ? void 0 : _b.call(_a, '#lido-avatar'))
|
|
377
|
+
return;
|
|
378
|
+
this.handleFlip();
|
|
379
|
+
}, "disable-speak": this.disableSpeak }, h("div", { key: 'b235e008f35e29db21991d76bd83fccac471ba75', class: `card ${this.flipped ? 'flipped' : ''}` }, h("div", { key: '7b2306efdc5a4dac6edfe5004ae34ef486b73dd5', class: "card-face card-front" }, this.front != null ? this.front : h("slot", { name: "front" })), h("div", { key: '3d164fa2faa72b7ffcbaf20482bfea2148aeaaf4', class: "card-face card-back" }, this.back != null ? this.back : h("slot", { name: "back" })))));
|
|
276
380
|
}
|
|
277
381
|
static get is() { return "lido-flash-card"; }
|
|
278
382
|
static get originalStyleUrls() {
|
|
@@ -639,7 +743,7 @@ export class LidoFlash {
|
|
|
639
743
|
"optional": false,
|
|
640
744
|
"docs": {
|
|
641
745
|
"tags": [],
|
|
642
|
-
"text": "The number of child elements that should be displayed inside the row.\
|
|
746
|
+
"text": "The number of child elements that should be displayed inside the row.\nThis value is dynamically adjusted based on `minLength` and `maxLength`."
|
|
643
747
|
},
|
|
644
748
|
"getter": false,
|
|
645
749
|
"setter": false,
|
|
@@ -715,7 +819,7 @@ export class LidoFlash {
|
|
|
715
819
|
"optional": false,
|
|
716
820
|
"docs": {
|
|
717
821
|
"tags": [],
|
|
718
|
-
"text": "Whether the card is flipped (back side visible).\
|
|
822
|
+
"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."
|
|
719
823
|
},
|
|
720
824
|
"getter": false,
|
|
721
825
|
"setter": false,
|
|
@@ -755,7 +859,7 @@ export class LidoFlash {
|
|
|
755
859
|
"optional": false,
|
|
756
860
|
"docs": {
|
|
757
861
|
"tags": [],
|
|
758
|
-
"text": "CSS margin value applied to each child element inside the container.\
|
|
862
|
+
"text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
759
863
|
},
|
|
760
864
|
"getter": false,
|
|
761
865
|
"setter": false,
|
|
@@ -818,3 +922,4 @@ export class LidoFlash {
|
|
|
818
922
|
}];
|
|
819
923
|
}
|
|
820
924
|
}
|
|
925
|
+
LidoFlash.narrationStartGrace = 800;
|
|
@@ -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: '26ada4c2834a58fe1f45348a32f9d1dcecb79a14', class: "lido-float", "float-direction": this.floatDirection, id: this.id, "tab-index": this.tabIndex, style: this.style, onEntry: this.onEntry }, h("slot", { key: '6f4ca358f564e268390f221cc1f84af1f303761b' })));
|
|
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').\
|
|
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."
|
|
332
332
|
},
|
|
333
333
|
"getter": false,
|
|
334
334
|
"setter": false,
|