lido-player 0.0.2-alpha-50-dev → 0.0.2-alpha-52-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/{index-6a69c33a.js → index-baff5c15.js} +48 -14
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{lido-avatar_21.cjs.entry.js → lido-avatar_22.cjs.entry.js} +3043 -162
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-079a5e7d.js → utils-ce99b0d0.js} +294 -108
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/avatar/lido-avatar.css +4 -4
- package/dist/collection/components/avatar/lido-avatar.js +1 -1
- package/dist/collection/components/calculator/lido-calculator.css +87 -87
- package/dist/collection/components/calculator/lido-calculator.js +14 -8
- package/dist/collection/components/canvas/lido-canvas.css +35 -0
- package/dist/collection/components/canvas/lido-canvas.js +220 -0
- 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 +70 -8
- package/dist/collection/components/flashCard/lido-flash-card.css +28 -28
- package/dist/collection/components/flashCard/lido-flash-card.js +4 -4
- 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 +278 -278
- package/dist/collection/components/home/lido-home.js +92 -12
- 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 +69 -15
- 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 +42 -6
- 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/lido-balance.css +145 -114
- package/dist/collection/components/scale/lido-balance.js +17 -17
- package/dist/collection/components/shape/lido-shape.css +96 -96
- package/dist/collection/components/shape/lido-shape.js +5 -5
- 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 -5
- 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 +194 -194
- package/dist/collection/css/index.css +277 -277
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +60 -60
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +55 -48
- package/dist/collection/stories/Templates/Tag/tagGame.stories.js +29 -29
- package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +42 -42
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +37 -31
- package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
- package/dist/collection/stories/Templates/blender/blender.stories.js +100 -0
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +52 -0
- 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 +28 -22
- 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 +39 -38
- package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +37 -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/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 +54 -54
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +25 -23
- 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 +32 -28
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +56 -54
- package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +56 -45
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +41 -39
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +131 -127
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +53 -49
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +44 -40
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +98 -97
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +92 -91
- package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +47 -45
- 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 +62 -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/reorder/reorder.stories.js +63 -63
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +52 -48
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +65 -61
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -58
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +111 -107
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +46 -46
- 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/sumTogether/sumTogether.stories.js +51 -47
- package/dist/collection/stories/Templates/total/total.stories.js +27 -27
- package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +35 -31
- package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +62 -58
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -40
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +36 -32
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +37 -33
- 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 +43 -6
- package/dist/collection/utils/constants.js +1 -0
- package/dist/collection/utils/i18n.js +36 -0
- package/dist/collection/utils/utils.js +170 -36
- package/dist/collection/utils/utilsHandlers/clickHandler.js +5 -1
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +27 -15
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
- package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +2 -2
- package/dist/collection/utils/utilsHandlers/lidoCalculatorHandler.js +9 -9
- 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.d.ts +11 -0
- package/dist/components/lido-canvas.js +6 -0
- 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 +49 -25
- 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-9be56729.js → p-00777872.js} +46 -2
- package/dist/components/{p-3f406017.js → p-06171259.js} +2 -2
- package/dist/components/{p-08d0deab.js → p-09f1e2d2.js} +15 -9
- package/dist/components/{p-e4e42677.js → p-0c2aebfb.js} +2 -2
- package/dist/components/p-0fbeb3a1.js +2700 -0
- package/dist/components/{p-cbac3cbc.js → p-11bf64aa.js} +2 -2
- package/dist/components/{p-44808985.js → p-26df0769.js} +7 -7
- package/dist/components/{p-1fbdb431.js → p-2d53e1a5.js} +2 -2
- package/dist/components/{p-afbc196f.js → p-39a2e638.js} +3 -2
- package/dist/components/{p-e36ddcc1.js → p-3ce3744c.js} +14 -11
- package/dist/components/{p-7f7e5672.js → p-3f4d4c0a.js} +2 -2
- package/dist/components/{p-d37ab4dc.js → p-52e77394.js} +2 -2
- package/dist/components/{p-bed94c37.js → p-58c67252.js} +331 -118
- package/dist/components/p-5b5f59a8.js +129 -0
- package/dist/components/{p-52844fa4.js → p-68112f8c.js} +2 -2
- package/dist/components/{p-15971ede.js → p-8a34b98b.js} +1 -1
- package/dist/components/{p-904711c8.js → p-8f2ed62f.js} +2 -2
- package/dist/components/{p-74849cdd.js → p-9d34d59d.js} +4 -4
- package/dist/components/{p-73e31a86.js → p-a2f96840.js} +8 -8
- package/dist/components/{p-90465904.js → p-a516a324.js} +2 -2
- package/dist/components/{p-322acda6.js → p-b2125fc9.js} +67 -31
- package/dist/components/{p-835b973d.js → p-c4abfd0f.js} +2 -2
- package/dist/components/{p-29bdd953.js → p-cb56a853.js} +2 -2
- package/dist/esm/{index-170e58c7.js → index-37c2ad2d.js} +48 -14
- package/dist/esm/index.js +2 -2
- package/dist/esm/{lido-avatar_21.entry.js → lido-avatar_22.entry.js} +3043 -163
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-5df09162.js → utils-107b15a7.js} +294 -108
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-606ea279.entry.js +1 -0
- package/dist/lido-player/p-9a9d5339.js +2 -0
- package/dist/lido-player/{p-7556e652.js → p-d1251482.js} +2 -2
- package/dist/types/components/canvas/lido-canvas.d.ts +27 -0
- package/dist/types/components/container/lido-container.d.ts +6 -0
- package/dist/types/components/home/lido-home.d.ts +8 -0
- package/dist/types/components/mathMatrix/lido-math-matrix.d.ts +3 -1
- package/dist/types/components/root/lido-root.d.ts +5 -0
- package/dist/types/components.d.ts +71 -6
- package/dist/types/stories/Templates/RocketGame/rocketGame.stories.d.ts +1 -0
- package/dist/types/stories/Templates/blender/blender.stories.d.ts +4 -0
- package/dist/types/stories/Templates/calculator/calculator.stories.d.ts +4 -0
- package/dist/types/stories/Templates/multiplyBeeds/multiplyBeeds.stories.d.ts +1 -0
- package/dist/types/stories/Templates/openwindow/openwindow.stories.d.ts +1 -0
- package/dist/types/stories/Templates/openwindow/openwindow2.stories.d.ts +1 -0
- package/dist/types/stories/Templates/questionBoard/questionBoard.stories.d.ts +1 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox1.stories.d.ts +1 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox2.stories.d.ts +1 -0
- package/dist/types/stories/Templates/shapePair/shape-pair.stories.d.ts +1 -1
- package/dist/types/stories/Templates/sumTogether/sumTogether.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeCard/writeCard.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeLetter/writeLetter.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeNumber/writeNumber.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeWord/writeWord.stories.d.ts +1 -0
- package/dist/types/types/json.d.ts +4 -0
- package/dist/types/utils/audioPlayer.d.ts +2 -0
- package/dist/types/utils/constants.d.ts +1 -0
- package/dist/types/utils/i18n.d.ts +5 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +71 -69
- package/readme.md +113 -113
- package/dist/lido-player/p-137c99ce.js +0 -2
- package/dist/lido-player/p-eb956325.entry.js +0 -1
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
.lido-col {
|
|
2
|
-
/* position: absolute; */
|
|
3
|
-
top: var(--y, 0);
|
|
4
|
-
left: var(--x, 0);
|
|
5
|
-
height: var(--height, 100%);
|
|
6
|
-
width: var(--width, 100%);
|
|
7
|
-
background-color: var(--bgColor, #eeeeee);
|
|
8
|
-
/* position: relative; */
|
|
9
|
-
padding: 15px;
|
|
10
|
-
border-radius: 10px;
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: space-around;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
align-items: center;
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.lido-col > * {
|
|
19
|
-
/* position: relative; */
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.lido-row {
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: space-around;
|
|
25
|
-
align-items: center;
|
|
26
|
-
/* position: absolute; */
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.lido-row > * {
|
|
30
|
-
/* position: relative; */
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.lido-wrap {
|
|
34
|
-
display: grid;
|
|
35
|
-
grid-gap: 10px;
|
|
36
|
-
grid-template-columns: repeat(auto-fill, minmax(186px, auto));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.lido-wrap > * {
|
|
40
|
-
padding: 10px;
|
|
41
|
-
/* background-color: var(--child-bg-color, #f0f0f0); */
|
|
42
|
-
box-sizing: border-box;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.lido-flex {
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-wrap: wrap;
|
|
48
|
-
align-content: flex-start;
|
|
49
|
-
gap: 10px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.lido-pos {
|
|
53
|
-
top: var(--y, 0);
|
|
54
|
-
left: var(--x, 0);
|
|
55
|
-
height: var(--height, 100%);
|
|
56
|
-
width: var(--width, 100%);
|
|
57
|
-
background-color: var(--bgColor, #eeeeee);
|
|
58
|
-
display: flex;
|
|
59
|
-
justify-content: space-around;
|
|
60
|
-
flex-direction: column;
|
|
61
|
-
position: fixed;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.lido-pos > * {
|
|
65
|
-
position: absolute;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.lido-random {
|
|
69
|
-
position: relative; /* Ensures children position within this box */
|
|
70
|
-
width: 100%;
|
|
71
|
-
height: 100%;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.lido-random > * {
|
|
75
|
-
position: absolute;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/*Scrollbar Width */
|
|
79
|
-
.lido-col::-webkit-scrollbar,
|
|
80
|
-
.lido-wrap::-webkit-scrollbar,
|
|
81
|
-
.lido-flex::-webkit-scrollbar {
|
|
82
|
-
width: var(--scrollbar-width);
|
|
83
|
-
height: var(--scrollbar-width);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.lido-col::-webkit-scrollbar-thumb,
|
|
87
|
-
.lido-wrap::-webkit-scrollbar-thumb,
|
|
88
|
-
.lido-flex::-webkit-scrollbar-thumb {
|
|
89
|
-
background-color: #888;
|
|
90
|
-
border-radius: 10px;
|
|
91
|
-
border: 3px solid transparent;
|
|
92
|
-
background-clip: content-box;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.lido-col::-webkit-scrollbar-track,
|
|
96
|
-
.lido-wrap::-webkit-scrollbar-track,
|
|
97
|
-
.lido-flex::-webkit-scrollbar-track {
|
|
98
|
-
background: #f1f1f1;
|
|
99
|
-
}
|
|
100
|
-
|
|
1
|
+
.lido-col {
|
|
2
|
+
/* position: absolute; */
|
|
3
|
+
top: var(--y, 0);
|
|
4
|
+
left: var(--x, 0);
|
|
5
|
+
height: var(--height, 100%);
|
|
6
|
+
width: var(--width, 100%);
|
|
7
|
+
background-color: var(--bgColor, #eeeeee);
|
|
8
|
+
/* position: relative; */
|
|
9
|
+
padding: 15px;
|
|
10
|
+
border-radius: 10px;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-around;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
align-items: center;
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.lido-col > * {
|
|
19
|
+
/* position: relative; */
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.lido-row {
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: space-around;
|
|
25
|
+
align-items: center;
|
|
26
|
+
/* position: absolute; */
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.lido-row > * {
|
|
30
|
+
/* position: relative; */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.lido-wrap {
|
|
34
|
+
display: grid;
|
|
35
|
+
grid-gap: 10px;
|
|
36
|
+
grid-template-columns: repeat(auto-fill, minmax(186px, auto));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.lido-wrap > * {
|
|
40
|
+
padding: 10px;
|
|
41
|
+
/* background-color: var(--child-bg-color, #f0f0f0); */
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.lido-flex {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-wrap: wrap;
|
|
48
|
+
align-content: flex-start;
|
|
49
|
+
gap: 10px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.lido-pos {
|
|
53
|
+
top: var(--y, 0);
|
|
54
|
+
left: var(--x, 0);
|
|
55
|
+
height: var(--height, 100%);
|
|
56
|
+
width: var(--width, 100%);
|
|
57
|
+
background-color: var(--bgColor, #eeeeee);
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: space-around;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
position: fixed;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.lido-pos > * {
|
|
65
|
+
position: absolute;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.lido-random {
|
|
69
|
+
position: relative; /* Ensures children position within this box */
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 100%;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.lido-random > * {
|
|
75
|
+
position: absolute;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/*Scrollbar Width */
|
|
79
|
+
.lido-col::-webkit-scrollbar,
|
|
80
|
+
.lido-wrap::-webkit-scrollbar,
|
|
81
|
+
.lido-flex::-webkit-scrollbar {
|
|
82
|
+
width: var(--scrollbar-width);
|
|
83
|
+
height: var(--scrollbar-width);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.lido-col::-webkit-scrollbar-thumb,
|
|
87
|
+
.lido-wrap::-webkit-scrollbar-thumb,
|
|
88
|
+
.lido-flex::-webkit-scrollbar-thumb {
|
|
89
|
+
background-color: #888;
|
|
90
|
+
border-radius: 10px;
|
|
91
|
+
border: 3px solid transparent;
|
|
92
|
+
background-clip: content-box;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.lido-col::-webkit-scrollbar-track,
|
|
96
|
+
.lido-wrap::-webkit-scrollbar-track,
|
|
97
|
+
.lido-flex::-webkit-scrollbar-track {
|
|
98
|
+
background: #f1f1f1;
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -131,7 +131,7 @@ export class LidoCell {
|
|
|
131
131
|
this.el.className = `lido-${parseProp(this.layout, orientation)}`;
|
|
132
132
|
}
|
|
133
133
|
render() {
|
|
134
|
-
return (h(Host, { key: '
|
|
134
|
+
return (h(Host, { key: '0f7d35324da319917dec546cbb1f25065897bb02', id: this.id, class: "lido-cell", value: this.value, type: this.type, "tab-index": this.tabIndex, 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, "flex-direction": this.flexDirection, "disable-speak": this.disableSpeak }, h("slot", { key: '2a337b5fae7641bbe78c5f1aa1c96e12c1281f4a' })));
|
|
135
135
|
}
|
|
136
136
|
static get is() { return "lido-cell"; }
|
|
137
137
|
static get originalStyleUrls() {
|
|
@@ -176,7 +176,7 @@ export class LidoCell {
|
|
|
176
176
|
"optional": false,
|
|
177
177
|
"docs": {
|
|
178
178
|
"tags": [],
|
|
179
|
-
"text": "Defines the width of the scrollbar within the cell (e.g., '14px').\nDefaults to '0px' if not specified, effectively hiding the scrollbar."
|
|
179
|
+
"text": "Defines the width of the scrollbar within the cell (e.g., '14px').\r\nDefaults to '0px' if not specified, effectively hiding the scrollbar."
|
|
180
180
|
},
|
|
181
181
|
"attribute": "scrollbar-width",
|
|
182
182
|
"reflect": false,
|
|
@@ -356,7 +356,7 @@ export class LidoCell {
|
|
|
356
356
|
"optional": false,
|
|
357
357
|
"docs": {
|
|
358
358
|
"tags": [],
|
|
359
|
-
"text": "The gap between child elements inside the column (CSS value, e.g., '10px', '5px 10px').\nThis is applicable when the layout is set to `wrap` or `flex`."
|
|
359
|
+
"text": "The gap between child elements inside the column (CSS value, e.g., '10px', '5px 10px').\r\nThis is applicable when the layout is set to `wrap` or `flex`."
|
|
360
360
|
},
|
|
361
361
|
"attribute": "gap",
|
|
362
362
|
"reflect": false,
|
|
@@ -536,7 +536,7 @@ export class LidoCell {
|
|
|
536
536
|
"optional": false,
|
|
537
537
|
"docs": {
|
|
538
538
|
"tags": [],
|
|
539
|
-
"text": "The number of child elements that should be displayed inside the row.\nThis value is dynamically adjusted based on `minLength` and `maxLength`."
|
|
539
|
+
"text": "The number of child elements that should be displayed inside the row.\r\nThis value is dynamically adjusted based on `minLength` and `maxLength`."
|
|
540
540
|
},
|
|
541
541
|
"attribute": "child-elements-length",
|
|
542
542
|
"reflect": false,
|
|
@@ -554,7 +554,7 @@ export class LidoCell {
|
|
|
554
554
|
"optional": false,
|
|
555
555
|
"docs": {
|
|
556
556
|
"tags": [],
|
|
557
|
-
"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."
|
|
557
|
+
"text": "The minimum number of child elements that must be displayed inside the row.\r\nIf `childElementsLength` is less than this value, additional elements may be shown to meet this minimum."
|
|
558
558
|
},
|
|
559
559
|
"attribute": "min-length",
|
|
560
560
|
"reflect": false,
|
|
@@ -572,7 +572,7 @@ export class LidoCell {
|
|
|
572
572
|
"optional": false,
|
|
573
573
|
"docs": {
|
|
574
574
|
"tags": [],
|
|
575
|
-
"text": "The maximum number of child elements that can be displayed inside the row.\nIf `childElementsLength` exceeds this value, excess elements will be hidden."
|
|
575
|
+
"text": "The maximum number of child elements that can be displayed inside the row.\r\nIf `childElementsLength` exceeds this value, excess elements will be hidden."
|
|
576
576
|
},
|
|
577
577
|
"attribute": "max-length",
|
|
578
578
|
"reflect": false,
|
|
@@ -590,7 +590,7 @@ export class LidoCell {
|
|
|
590
590
|
"optional": false,
|
|
591
591
|
"docs": {
|
|
592
592
|
"tags": [],
|
|
593
|
-
"text": "Determines the layout behavior of the component's children.\n\n- `wrap`: Applies a grid layout to the children, allowing them to wrap automatically in a grid format.\n- `flex`: Applies a flex layout with wrapping behavior (`flex-wrap`).\n- `col`: Arranges children in a single column using a vertical flex direction.\n- `row`: Arranges children in a single row using a horizontal flex direction.\n- `pos`: Applies absolute positioning to children, allowing manual placement using `x` and `y` values.\n- `random`: Positions child elements randomly within the container using absolute positioning.\n\nDefault: `'wrap'`"
|
|
593
|
+
"text": "Determines the layout behavior of the component's children.\r\n\r\n- `wrap`: Applies a grid layout to the children, allowing them to wrap automatically in a grid format.\r\n- `flex`: Applies a flex layout with wrapping behavior (`flex-wrap`).\r\n- `col`: Arranges children in a single column using a vertical flex direction.\r\n- `row`: Arranges children in a single row using a horizontal flex direction.\r\n- `pos`: Applies absolute positioning to children, allowing manual placement using `x` and `y` values.\r\n- `random`: Positions child elements randomly within the container using absolute positioning.\r\n\r\nDefault: `'wrap'`"
|
|
594
594
|
},
|
|
595
595
|
"attribute": "layout",
|
|
596
596
|
"reflect": false,
|
|
@@ -644,7 +644,7 @@ export class LidoCell {
|
|
|
644
644
|
"optional": false,
|
|
645
645
|
"docs": {
|
|
646
646
|
"tags": [],
|
|
647
|
-
"text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
647
|
+
"text": "CSS margin value applied to each child element inside the container.\r\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
648
648
|
},
|
|
649
649
|
"attribute": "margin",
|
|
650
650
|
"reflect": false,
|
|
@@ -662,7 +662,7 @@ export class LidoCell {
|
|
|
662
662
|
"optional": false,
|
|
663
663
|
"docs": {
|
|
664
664
|
"tags": [],
|
|
665
|
-
"text": "CSS padding value applied to each child element inside the container.\nAccepts standard CSS padding formats (e.g., '10px', '5px 10px', etc.)."
|
|
665
|
+
"text": "CSS padding value applied to each child element inside the container.\r\nAccepts standard CSS padding formats (e.g., '10px', '5px 10px', etc.)."
|
|
666
666
|
},
|
|
667
667
|
"attribute": "padding",
|
|
668
668
|
"reflect": false,
|
|
@@ -680,7 +680,7 @@ export class LidoCell {
|
|
|
680
680
|
"optional": false,
|
|
681
681
|
"docs": {
|
|
682
682
|
"tags": [],
|
|
683
|
-
"text": "CSS align-items property to control the alignment of flex items.\nExample: 'flex-start', 'flex-end', 'center', 'baseline', 'stretch'."
|
|
683
|
+
"text": "CSS align-items property to control the alignment of flex items.\r\nExample: 'flex-start', 'flex-end', 'center', 'baseline', 'stretch'."
|
|
684
684
|
},
|
|
685
685
|
"attribute": "align-items",
|
|
686
686
|
"reflect": false,
|
|
@@ -698,7 +698,7 @@ export class LidoCell {
|
|
|
698
698
|
"optional": false,
|
|
699
699
|
"docs": {
|
|
700
700
|
"tags": [],
|
|
701
|
-
"text": "CSS filter to apply border radius to the image.\nExample: '10px' for images."
|
|
701
|
+
"text": "CSS filter to apply border radius to the image.\r\nExample: '10px' for images."
|
|
702
702
|
},
|
|
703
703
|
"attribute": "border-radius",
|
|
704
704
|
"reflect": false,
|
|
@@ -716,7 +716,7 @@ export class LidoCell {
|
|
|
716
716
|
"optional": false,
|
|
717
717
|
"docs": {
|
|
718
718
|
"tags": [],
|
|
719
|
-
"text": "CSS flex direction for the component, which can be used to control the layout of child elements.\nAccepts values like 'row', 'column', etc."
|
|
719
|
+
"text": "CSS flex direction for the component, which can be used to control the layout of child elements.\r\nAccepts values like 'row', 'column', etc."
|
|
720
720
|
},
|
|
721
721
|
"attribute": "flex-direction",
|
|
722
722
|
"reflect": false,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
.lido-col {
|
|
2
|
-
/* position: absolute; */
|
|
3
|
-
top: var(--y, 0);
|
|
4
|
-
left: var(--x, 0);
|
|
5
|
-
height: var(--height, 100%);
|
|
6
|
-
width: var(--width, 100%);
|
|
7
|
-
background-color: var(--bgColor, #eeeeee);
|
|
8
|
-
/* position: relative; */
|
|
9
|
-
padding: 15px;
|
|
10
|
-
border-radius: 10px;
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: space-around;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
align-items: center;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.lido-col > * {
|
|
18
|
-
/* position: relative; */
|
|
19
|
-
}
|
|
1
|
+
.lido-col {
|
|
2
|
+
/* position: absolute; */
|
|
3
|
+
top: var(--y, 0);
|
|
4
|
+
left: var(--x, 0);
|
|
5
|
+
height: var(--height, 100%);
|
|
6
|
+
width: var(--width, 100%);
|
|
7
|
+
background-color: var(--bgColor, #eeeeee);
|
|
8
|
+
/* position: relative; */
|
|
9
|
+
padding: 15px;
|
|
10
|
+
border-radius: 10px;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-around;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
align-items: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.lido-col > * {
|
|
18
|
+
/* position: relative; */
|
|
19
|
+
}
|
|
@@ -84,7 +84,7 @@ export class LidoCol {
|
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: '7845d3364dd13cb42959f67610254ee892119c39', 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: '09a68a30534c5ea83d7166acd720b4b8f23f494e' })));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "lido-col"; }
|
|
90
90
|
static get originalStyleUrls() {
|
|
@@ -435,7 +435,7 @@ export class LidoCol {
|
|
|
435
435
|
"optional": false,
|
|
436
436
|
"docs": {
|
|
437
437
|
"tags": [],
|
|
438
|
-
"text": "The number of child elements that should be displayed inside the row.\nThis value is dynamically adjusted based on `minLength` and `maxLength`."
|
|
438
|
+
"text": "The number of child elements that should be displayed inside the row.\r\nThis value is dynamically adjusted based on `minLength` and `maxLength`."
|
|
439
439
|
},
|
|
440
440
|
"attribute": "child-elements-length",
|
|
441
441
|
"reflect": false
|
|
@@ -452,7 +452,7 @@ export class LidoCol {
|
|
|
452
452
|
"optional": false,
|
|
453
453
|
"docs": {
|
|
454
454
|
"tags": [],
|
|
455
|
-
"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."
|
|
455
|
+
"text": "The minimum number of child elements that must be displayed inside the row.\r\nIf `childElementsLength` is less than this value, additional elements may be shown to meet this minimum."
|
|
456
456
|
},
|
|
457
457
|
"attribute": "min-length",
|
|
458
458
|
"reflect": false
|
|
@@ -469,7 +469,7 @@ export class LidoCol {
|
|
|
469
469
|
"optional": false,
|
|
470
470
|
"docs": {
|
|
471
471
|
"tags": [],
|
|
472
|
-
"text": "The maximum number of child elements that can be displayed inside the row.\nIf `childElementsLength` exceeds this value, excess elements will be hidden."
|
|
472
|
+
"text": "The maximum number of child elements that can be displayed inside the row.\r\nIf `childElementsLength` exceeds this value, excess elements will be hidden."
|
|
473
473
|
},
|
|
474
474
|
"attribute": "max-length",
|
|
475
475
|
"reflect": false
|
|
@@ -520,7 +520,7 @@ export class LidoCol {
|
|
|
520
520
|
"optional": true,
|
|
521
521
|
"docs": {
|
|
522
522
|
"tags": [],
|
|
523
|
-
"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)\""
|
|
523
|
+
"text": "Applies a CSS box-shadow to the component.\r\nAccepts any valid CSS box-shadow value.\r\nExample: \"0px 4px 10px rgba(0, 0, 0, 0.1)\""
|
|
524
524
|
},
|
|
525
525
|
"attribute": "box-shadow",
|
|
526
526
|
"reflect": false
|
|
@@ -573,7 +573,7 @@ export class LidoCol {
|
|
|
573
573
|
"optional": false,
|
|
574
574
|
"docs": {
|
|
575
575
|
"tags": [],
|
|
576
|
-
"text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
576
|
+
"text": "CSS margin value applied to each child element inside the container.\r\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
577
577
|
},
|
|
578
578
|
"attribute": "margin",
|
|
579
579
|
"reflect": 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
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { convertUrlToRelative, initEventsForElement, calculateScale } from "../../utils/utils";
|
|
3
|
+
import i18next from "../../utils/i18n";
|
|
3
4
|
/**
|
|
4
5
|
* @component LidoContainer
|
|
5
6
|
*
|
|
@@ -9,6 +10,7 @@ import { convertUrlToRelative, initEventsForElement, calculateScale } from "../.
|
|
|
9
10
|
*/
|
|
10
11
|
export class LidoContainer {
|
|
11
12
|
constructor() {
|
|
13
|
+
this.locale = '';
|
|
12
14
|
this.showDropBorder = true;
|
|
13
15
|
this.appendToDropOnCompletion = false;
|
|
14
16
|
this.id = '';
|
|
@@ -47,6 +49,31 @@ export class LidoContainer {
|
|
|
47
49
|
this.delayVisible = '';
|
|
48
50
|
this.disableSpeak = false;
|
|
49
51
|
}
|
|
52
|
+
languageChanged(newLang) {
|
|
53
|
+
const langToApply = newLang || this.resolveLanguage();
|
|
54
|
+
this.updateChildTextLanguage(langToApply);
|
|
55
|
+
}
|
|
56
|
+
componentWillLoad() {
|
|
57
|
+
const langToApply = this.resolveLanguage();
|
|
58
|
+
this.updateChildTextLanguage(langToApply);
|
|
59
|
+
}
|
|
60
|
+
resolveLanguage() {
|
|
61
|
+
var _a, _b;
|
|
62
|
+
const rootEl = this.el.closest('lido-root');
|
|
63
|
+
const rootLang = (rootEl === null || rootEl === void 0 ? void 0 : rootEl.locale) || '';
|
|
64
|
+
if (rootLang === null || rootLang === void 0 ? void 0 : rootLang.trim())
|
|
65
|
+
return rootLang;
|
|
66
|
+
const homeEl = this.el.closest('lido-home');
|
|
67
|
+
const homeLang = (homeEl === null || homeEl === void 0 ? void 0 : homeEl.locale) || '';
|
|
68
|
+
if (homeLang === null || homeLang === void 0 ? void 0 : homeLang.trim())
|
|
69
|
+
return homeLang;
|
|
70
|
+
if ((_a = this.locale) === null || _a === void 0 ? void 0 : _a.trim())
|
|
71
|
+
return this.locale;
|
|
72
|
+
const xmlLang = this.el.getAttribute('locale');
|
|
73
|
+
if (xmlLang === null || xmlLang === void 0 ? void 0 : xmlLang.trim())
|
|
74
|
+
return xmlLang;
|
|
75
|
+
return (_b = this.el.textContent) === null || _b === void 0 ? void 0 : _b.trim();
|
|
76
|
+
}
|
|
50
77
|
convertToPixels(height, parentElement = document.body) {
|
|
51
78
|
if (!height)
|
|
52
79
|
return 0; // Handle empty or invalid input
|
|
@@ -88,6 +115,15 @@ export class LidoContainer {
|
|
|
88
115
|
this.el.style.width = '1600px';
|
|
89
116
|
}
|
|
90
117
|
}
|
|
118
|
+
updateChildTextLanguage(lang) {
|
|
119
|
+
const appliedLang = lang || i18next.language || 'en';
|
|
120
|
+
i18next.changeLanguage(appliedLang);
|
|
121
|
+
const texts = this.el.querySelectorAll('lido-text');
|
|
122
|
+
texts.forEach((textEl) => {
|
|
123
|
+
textEl.locale = appliedLang;
|
|
124
|
+
textEl.dispatchEvent(new CustomEvent('languageChanged', { bubbles: true }));
|
|
125
|
+
});
|
|
126
|
+
}
|
|
91
127
|
/**
|
|
92
128
|
* Lifecycle hook that runs after the component is loaded.
|
|
93
129
|
* - It scales the container.
|
|
@@ -109,6 +145,8 @@ export class LidoContainer {
|
|
|
109
145
|
styleElement.innerHTML = this.customStyle;
|
|
110
146
|
document.head.appendChild(styleElement);
|
|
111
147
|
}
|
|
148
|
+
const langToApply = this.resolveLanguage();
|
|
149
|
+
this.updateChildTextLanguage(langToApply);
|
|
112
150
|
}
|
|
113
151
|
disconnectedCallback() {
|
|
114
152
|
window.removeEventListener('resize', () => this.scaleContainer(this.el));
|
|
@@ -128,7 +166,7 @@ export class LidoContainer {
|
|
|
128
166
|
userSelect: 'none', // Prevent any field selection
|
|
129
167
|
};
|
|
130
168
|
console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
|
|
131
|
-
return (h(Host, { key: '
|
|
169
|
+
return (h(Host, { key: '5d7f2f02c5a231a18897942ea0d2f3a200efa502', 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 }, h("slot", { key: 'b82aff47d621fc4f9d6abe5b7add974853f69219' })));
|
|
132
170
|
}
|
|
133
171
|
static get is() { return "lido-container"; }
|
|
134
172
|
static get originalStyleUrls() {
|
|
@@ -143,6 +181,24 @@ export class LidoContainer {
|
|
|
143
181
|
}
|
|
144
182
|
static get properties() {
|
|
145
183
|
return {
|
|
184
|
+
"locale": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"mutable": false,
|
|
187
|
+
"complexType": {
|
|
188
|
+
"original": "string",
|
|
189
|
+
"resolved": "string",
|
|
190
|
+
"references": {}
|
|
191
|
+
},
|
|
192
|
+
"required": false,
|
|
193
|
+
"optional": false,
|
|
194
|
+
"docs": {
|
|
195
|
+
"tags": [],
|
|
196
|
+
"text": "Language to apply to all texts"
|
|
197
|
+
},
|
|
198
|
+
"attribute": "locale",
|
|
199
|
+
"reflect": false,
|
|
200
|
+
"defaultValue": "''"
|
|
201
|
+
},
|
|
146
202
|
"showDropBorder": {
|
|
147
203
|
"type": "boolean",
|
|
148
204
|
"mutable": false,
|
|
@@ -227,7 +283,7 @@ export class LidoContainer {
|
|
|
227
283
|
"optional": false,
|
|
228
284
|
"docs": {
|
|
229
285
|
"tags": [],
|
|
230
|
-
"text": "Custom CSS styles to be applied to the container.\nAllows for dynamic styling through inline styles or class names."
|
|
286
|
+
"text": "Custom CSS styles to be applied to the container.\r\nAllows for dynamic styling through inline styles or class names."
|
|
231
287
|
},
|
|
232
288
|
"attribute": "custom-style",
|
|
233
289
|
"reflect": false,
|
|
@@ -623,7 +679,7 @@ export class LidoContainer {
|
|
|
623
679
|
"optional": false,
|
|
624
680
|
"docs": {
|
|
625
681
|
"tags": [],
|
|
626
|
-
"text": "Determines if the activity should proceed automatically only after a correct response.\nAcceptable values: \"true\" or \"false\". Defaults to \"false\"."
|
|
682
|
+
"text": "Determines if the activity should proceed automatically only after a correct response.\r\nAcceptable values: \"true\" or \"false\". Defaults to \"false\"."
|
|
627
683
|
},
|
|
628
684
|
"attribute": "is-allow-only-correct",
|
|
629
685
|
"reflect": false,
|
|
@@ -659,7 +715,7 @@ export class LidoContainer {
|
|
|
659
715
|
"optional": false,
|
|
660
716
|
"docs": {
|
|
661
717
|
"tags": [],
|
|
662
|
-
"text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
718
|
+
"text": "CSS margin value applied to each child element inside the container.\r\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
663
719
|
},
|
|
664
720
|
"attribute": "margin",
|
|
665
721
|
"reflect": false,
|
|
@@ -677,7 +733,7 @@ export class LidoContainer {
|
|
|
677
733
|
"optional": false,
|
|
678
734
|
"docs": {
|
|
679
735
|
"tags": [],
|
|
680
|
-
"text": "Custom URL for the Exit button icon.\nFalls back to the default icon if not provided or invalid."
|
|
736
|
+
"text": "Custom URL for the Exit button icon.\r\nFalls back to the default icon if not provided or invalid."
|
|
681
737
|
},
|
|
682
738
|
"attribute": "exit-button-url",
|
|
683
739
|
"reflect": false
|
|
@@ -694,7 +750,7 @@ export class LidoContainer {
|
|
|
694
750
|
"optional": false,
|
|
695
751
|
"docs": {
|
|
696
752
|
"tags": [],
|
|
697
|
-
"text": "Custom URL for the Previous button icon.\nFalls back to the default icon if not provided or invalid."
|
|
753
|
+
"text": "Custom URL for the Previous button icon.\r\nFalls back to the default icon if not provided or invalid."
|
|
698
754
|
},
|
|
699
755
|
"attribute": "prev-button-url",
|
|
700
756
|
"reflect": false
|
|
@@ -711,7 +767,7 @@ export class LidoContainer {
|
|
|
711
767
|
"optional": false,
|
|
712
768
|
"docs": {
|
|
713
769
|
"tags": [],
|
|
714
|
-
"text": "Custom URL for the Next button icon.\nFalls back to the default icon if not provided or invalid."
|
|
770
|
+
"text": "Custom URL for the Next button icon.\r\nFalls back to the default icon if not provided or invalid."
|
|
715
771
|
},
|
|
716
772
|
"attribute": "next-button-url",
|
|
717
773
|
"reflect": false
|
|
@@ -728,7 +784,7 @@ export class LidoContainer {
|
|
|
728
784
|
"optional": false,
|
|
729
785
|
"docs": {
|
|
730
786
|
"tags": [],
|
|
731
|
-
"text": "Custom URL for the Speaker button icon.\nFalls back to the default icon if not provided or invalid."
|
|
787
|
+
"text": "Custom URL for the Speaker button icon.\r\nFalls back to the default icon if not provided or invalid."
|
|
732
788
|
},
|
|
733
789
|
"attribute": "speaker-button-url",
|
|
734
790
|
"reflect": false
|
|
@@ -808,4 +864,10 @@ export class LidoContainer {
|
|
|
808
864
|
};
|
|
809
865
|
}
|
|
810
866
|
static get elementRef() { return "el"; }
|
|
867
|
+
static get watchers() {
|
|
868
|
+
return [{
|
|
869
|
+
"propName": "locale",
|
|
870
|
+
"methodName": "languageChanged"
|
|
871
|
+
}];
|
|
872
|
+
}
|
|
811
873
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
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
|
-
}
|
|
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
|
+
}
|