lido-player 0.0.2-beta-19-dev → 0.0.2-beta-22-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.
Files changed (237) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{decode-Bny56MQ9.js → decode-Cr5DANqc.js} +1 -1
  3. package/dist/cjs/{index-BY9fvbr8.js → index-0BvcfeCt.js} +144 -68
  4. package/dist/cjs/{index-DjsCseV8.js → index-DnaH8sO-.js} +20 -67
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/lido-avatar_22.cjs.entry.js +279 -66
  7. package/dist/cjs/lido-player.cjs.js +3 -3
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/collection/collection-manifest.json +1 -1
  10. package/dist/collection/components/avatar/lido-avatar.css +4 -4
  11. package/dist/collection/components/avatar/lido-avatar.js +1 -1
  12. package/dist/collection/components/avatar/lido-avatar.tsx +207 -207
  13. package/dist/collection/components/avatar/readme.md +49 -49
  14. package/dist/collection/components/calculator/lido-calculator.css +89 -89
  15. package/dist/collection/components/calculator/lido-calculator.js +2 -2
  16. package/dist/collection/components/canvas/lido-canvas.css +33 -33
  17. package/dist/collection/components/canvas/lido-canvas.js +1 -1
  18. package/dist/collection/components/cell/lido-cell.css +100 -100
  19. package/dist/collection/components/cell/lido-cell.js +12 -12
  20. package/dist/collection/components/column/lido-col.css +19 -19
  21. package/dist/collection/components/column/lido-col.js +6 -6
  22. package/dist/collection/components/container/lido-container.css +10 -10
  23. package/dist/collection/components/container/lido-container.js +8 -8
  24. package/dist/collection/components/flashCard/lido-flash-card.css +46 -28
  25. package/dist/collection/components/flashCard/lido-flash-card.js +131 -14
  26. package/dist/collection/components/float/lido-float.css +30 -30
  27. package/dist/collection/components/float/lido-float.js +2 -2
  28. package/dist/collection/components/home/lido-home.css +309 -309
  29. package/dist/collection/components/home/lido-home.js +9 -6
  30. package/dist/collection/components/image/lido-image.css +17 -17
  31. package/dist/collection/components/image/lido-image.js +6 -6
  32. package/dist/collection/components/keyboard/lido-keyboard.css +38 -38
  33. package/dist/collection/components/keyboard/lido-keyboard.js +3 -3
  34. package/dist/collection/components/mathMatrix/lido-math-matrix.css +56 -56
  35. package/dist/collection/components/mathMatrix/lido-math-matrix.js +1 -1
  36. package/dist/collection/components/position/lido-pos.css +16 -16
  37. package/dist/collection/components/position/lido-pos.js +2 -2
  38. package/dist/collection/components/random/lido-random.css +8 -8
  39. package/dist/collection/components/random/lido-random.js +2 -2
  40. package/dist/collection/components/root/lido-root.js +5 -5
  41. package/dist/collection/components/row/lido-row.css +10 -10
  42. package/dist/collection/components/row/lido-row.js +6 -6
  43. package/dist/collection/components/scale/assets/Shadow.svg +9 -9
  44. package/dist/collection/components/scale/lido-balance.css +174 -145
  45. package/dist/collection/components/scale/lido-balance.js +54 -14
  46. package/dist/collection/components/shape/lido-shape.css +216 -216
  47. package/dist/collection/components/shape/lido-shape.js +6 -6
  48. package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
  49. package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
  50. package/dist/collection/components/text/lido-text.css +53 -53
  51. package/dist/collection/components/text/lido-text.js +5 -5
  52. package/dist/collection/components/trace/assets/Tracing-hand.svg +8 -8
  53. package/dist/collection/components/trace/lido-trace.css +97 -97
  54. package/dist/collection/components/trace/lido-trace.js +119 -23
  55. package/dist/collection/components/wrap/lido-wrap.css +18 -18
  56. package/dist/collection/components/wrap/lido-wrap.js +6 -6
  57. package/dist/collection/css/animation.css +211 -211
  58. package/dist/collection/css/index.css +323 -323
  59. package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +61 -61
  60. package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
  61. package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +48 -48
  62. package/dist/collection/stories/Templates/Tag/tagGame.stories.js +39 -39
  63. package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +44 -44
  64. package/dist/collection/stories/Templates/balancing/balancing.stories.js +35 -35
  65. package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
  66. package/dist/collection/stories/Templates/blender/blender.stories.js +59 -59
  67. package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
  68. package/dist/collection/stories/Templates/calculator/calculator.stories.js +28 -28
  69. package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
  70. package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
  71. package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +29 -29
  72. package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
  73. package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
  74. package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
  75. package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +43 -43
  76. package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
  77. package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
  78. package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
  79. package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
  80. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +44 -44
  81. package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
  82. package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
  83. package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
  84. package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
  85. package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +84 -84
  86. package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +31 -31
  87. package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
  88. package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
  89. package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +57 -57
  90. package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +53 -53
  91. package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +46 -46
  92. package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +45 -45
  93. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +56 -56
  94. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +53 -53
  95. package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +127 -127
  96. package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +47 -47
  97. package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +38 -38
  98. package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +97 -97
  99. package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
  100. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +63 -63
  101. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +45 -45
  102. package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +63 -63
  103. package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +79 -79
  104. package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +32 -32
  105. package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +42 -42
  106. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +63 -63
  107. package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +44 -44
  108. package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +34 -34
  109. package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +52 -52
  110. package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +33 -33
  111. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +40 -40
  112. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +48 -48
  113. package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +48 -48
  114. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +18 -18
  115. package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +44 -44
  116. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +34 -34
  117. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +36 -36
  118. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +30 -30
  119. package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
  120. package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
  121. package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +58 -58
  122. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
  123. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
  124. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
  125. package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +631 -631
  126. package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
  127. package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +47 -47
  128. package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +29 -29
  129. package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +64 -64
  130. package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -62
  131. package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +106 -106
  132. package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +50 -50
  133. package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
  134. package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
  135. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +62 -62
  136. package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +42 -42
  137. package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +50 -50
  138. package/dist/collection/stories/Templates/tenBox/tenBox.stories.js +88 -88
  139. package/dist/collection/stories/Templates/total/total.stories.js +28 -28
  140. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +35 -35
  141. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +34 -34
  142. package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +31 -31
  143. package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +58 -58
  144. package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -44
  145. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +31 -31
  146. package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +34 -34
  147. package/dist/collection/stories/components/flash-card.stories.js +48 -48
  148. package/dist/collection/stories/components/keyboard.stories.js +10 -10
  149. package/dist/collection/stories/components/slider.stories.js +4 -4
  150. package/dist/collection/stories/components/trace.stories.js +5 -5
  151. package/dist/collection/utils/audioPlayer.js +9 -12
  152. package/dist/collection/utils/utils.js +24 -8
  153. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +16 -10
  154. package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
  155. package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +58 -1
  156. package/dist/collection/utils/utilsHandlers/sortHandler.js +10 -10
  157. package/dist/components/index.js +1 -1
  158. package/dist/components/lido-avatar.js +1 -1
  159. package/dist/components/lido-balance.js +1 -1
  160. package/dist/components/lido-calculator.js +1 -1
  161. package/dist/components/lido-canvas.js +1 -1
  162. package/dist/components/lido-cell.js +1 -1
  163. package/dist/components/lido-col.js +1 -1
  164. package/dist/components/lido-container.js +1 -1
  165. package/dist/components/lido-flash-card.js +1 -1
  166. package/dist/components/lido-float.js +1 -1
  167. package/dist/components/lido-home.js +1 -1
  168. package/dist/components/lido-keyboard.js +1 -1
  169. package/dist/components/lido-math-matrix.js +1 -1
  170. package/dist/components/lido-pos.js +1 -1
  171. package/dist/components/lido-random.js +1 -1
  172. package/dist/components/lido-root.js +1 -1
  173. package/dist/components/lido-row.js +1 -1
  174. package/dist/components/lido-shape.js +1 -1
  175. package/dist/components/lido-slide-fill.js +1 -1
  176. package/dist/components/lido-text.js +1 -1
  177. package/dist/components/lido-trace.js +1 -1
  178. package/dist/components/lido-wrap.js +1 -1
  179. package/dist/components/{p-BOQDbCrm.js → p-BJiyBHYT.js} +1 -1
  180. package/dist/components/p-BUfCIPRa.js +1 -0
  181. package/dist/components/{p-CTlcpv4a.js → p-BfwUqpXc.js} +1 -1
  182. package/dist/components/p-BiBt9LGP.js +1 -0
  183. package/dist/components/{p-CgsPIpg0.js → p-Bw-OC9iR.js} +1 -1
  184. package/dist/components/{p-B4YAipq-.js → p-CFzvgrMa.js} +1 -1
  185. package/dist/components/{p-C5WmmkI6.js → p-CPYnt0P-.js} +1 -1
  186. package/dist/components/{p-CCR42e0i.js → p-ChfVUoX4.js} +1 -1
  187. package/dist/components/{p-CWwymnbk.js → p-CkxAm8rY.js} +2 -2
  188. package/dist/components/{p-BeRr8u5m.js → p-CwDTdXe5.js} +1 -1
  189. package/dist/components/{p-CXHPZN3m.js → p-CyGxEcn7.js} +1 -1
  190. package/dist/components/{p-BJMjg5wu.js → p-D2GhaM-T.js} +1 -1
  191. package/dist/components/{p-BBHM059l.js → p-DDS30M3y.js} +1 -1
  192. package/dist/components/p-DP6jQ5ML.js +1 -0
  193. package/dist/components/{p-CljvnHkI.js → p-DZRNZCPt.js} +1 -1
  194. package/dist/components/p-DbR5sNOj.js +1 -0
  195. package/dist/components/{p-B8nzzM8c.js → p-DdQ1eqJr.js} +1 -1
  196. package/dist/components/p-leIEepjl.js +1 -0
  197. package/dist/components/p-u3czV7QM.js +1 -0
  198. package/dist/components/{p-C70ykycD.js → p-useuhkjH.js} +1 -1
  199. package/dist/esm/{decode-Buyq-Iy5.js → decode-DkSXjv7K.js} +1 -1
  200. package/dist/esm/{index-CQXciux9.js → index-D9-TTsdZ.js} +144 -68
  201. package/dist/esm/{index-DQZfuGjI.js → index-Dvjbti-h.js} +20 -67
  202. package/dist/esm/index.js +2 -2
  203. package/dist/esm/lido-avatar_22.entry.js +279 -66
  204. package/dist/esm/lido-player.js +4 -4
  205. package/dist/esm/loader.js +3 -3
  206. package/dist/lido-player/assets/Shadow.svg +9 -9
  207. package/dist/lido-player/assets/Tracing-hand.svg +8 -8
  208. package/dist/lido-player/index.esm.js +1 -1
  209. package/dist/lido-player/lido-avatar.css +4 -4
  210. package/dist/lido-player/lido-avatar.tsx +207 -207
  211. package/dist/lido-player/lido-player.css +7 -7
  212. package/dist/lido-player/lido-player.esm.js +1 -1
  213. package/dist/lido-player/p-35fa0b8b.entry.js +12 -0
  214. package/dist/lido-player/p-D2iINRNN.js +1 -0
  215. package/dist/lido-player/{p-CFtq4Thh.js → p-Dc8j8Hxw.js} +1 -1
  216. package/dist/lido-player/p-Dvjbti-h.js +2 -0
  217. package/dist/lido-player/readme.md +49 -49
  218. package/dist/types/components/flashCard/lido-flash-card.d.ts +10 -0
  219. package/dist/types/components/scale/lido-balance.d.ts +5 -0
  220. package/dist/types/components/trace/lido-trace.d.ts +9 -1
  221. package/dist/types/components.d.ts +10 -0
  222. package/dist/types/stencil-public-runtime.d.ts +55 -73
  223. package/dist/types/types/json.d.ts +3 -3
  224. package/dist/types/utils/audioPlayer.d.ts +1 -1
  225. package/dist/types/utils/utilsHandlers/lidoBalanceHandler.d.ts +10 -0
  226. package/loader/index.d.ts +1 -1
  227. package/package.json +74 -74
  228. package/readme.md +113 -113
  229. package/dist/components/p-BfqihbR6.js +0 -1
  230. package/dist/components/p-CwIlwnQk.js +0 -1
  231. package/dist/components/p-DLyacZap.js +0 -1
  232. package/dist/components/p-DONbWJGn.js +0 -1
  233. package/dist/components/p-DVTigdH_.js +0 -1
  234. package/dist/components/p-DYFVwyRr.js +0 -1
  235. package/dist/lido-player/p-37736e11.entry.js +0 -12
  236. package/dist/lido-player/p-3Ry570XH.js +0 -1
  237. package/dist/lido-player/p-DQZfuGjI.js +0 -3
@@ -1,145 +1,174 @@
1
- #lido-balance {
2
- position: relative;
3
- height: 500px;
4
- width: 1205px;
5
- top: 20%;
6
- left: -91px;
7
- z-index: 0;
8
- }
9
-
10
- .lido-balance-symbol {
11
- position: absolute;
12
- top: 64%;
13
- left: 50%;
14
- transform: translate(-50%, -50%);
15
- font-size: 5vw;
16
- font-weight: bold;
17
- color: black;
18
- pointer-events: none;
19
- z-index: 999;
20
- }
21
- @media (orientation: portrait) {
22
- .lido-balance-shadow {
23
- height: 100px;
24
- position: absolute;
25
- top: 80%;
26
- left: 28%;
27
- }
28
- }
29
-
30
- @media (orientation: landscape) {
31
- .lido-balance-shadow {
32
- height: 100px ;
33
- position: absolute;
34
- top: 90% ;
35
- left: 33% ;
36
- }
37
- }
38
- @media (orientation: portrait) {
39
- #pivotimg {
40
- position: absolute;
41
- height:auto;
42
- width: 23%;
43
- bottom: 18%;
44
- left: 38%;
45
- z-index: 100;
46
-
47
- }
48
- }
49
-
50
- #pivotimg::after {
51
- content: "";
52
- position: absolute;
53
- bottom: -30px;
54
- left: 50%;
55
- transform: translateX(-50%);
56
- width: 120%;
57
- height: 60px;
58
- background-image: var(--lido-balance-shadow-url);
59
- background-size: contain;
60
- background-repeat: no-repeat;
61
- background-position: center;
62
- pointer-events: none;
63
- z-index: 10;
64
- }
65
-
66
- @media (orientation: landscape) {
67
- #pivotimg {
68
- position: absolute;
69
- height:auto;
70
- width: 23%;
71
- bottom: 8%;
72
- left: 38%;
73
- z-index: 100;
74
- }
75
- }
76
-
77
- .lido-balance .pivot svg {
78
- width: 100%;
79
- height: auto;
80
- }
81
-
82
-
83
- #scaleimg {
84
- position: absolute;
85
- width: 73%;
86
- height: auto;
87
- top: 61%;
88
- left: 14%;
89
- z-index: 90;
90
- }
91
- .lido-balance .scale svg {
92
- width: 100%;
93
- height: auto;
94
- }
95
-
96
- @media (orientation: landscape) {
97
- #handlerimg {
98
- position: absolute;
99
- width: 35%;
100
- height: auto;
101
- top:49%;
102
- left: 2%;
103
- }}
104
- @media (orientation:portrait ) {
105
- #handlerimg {
106
- position: absolute;
107
- width: 35%;
108
- height: auto;
109
- top:53%;
110
- left: 2%;
111
- }}
112
- .lido-balance .handler svg {
113
- width: 100%;
114
- height: auto;
115
- fill: brown;
116
- }
117
-
118
- @media (orientation: landscape) {
119
- #handimg {
120
- position: absolute;
121
- width: 35%;
122
- height: auto;
123
- top: 49%;
124
- right: 2%;
125
- }}
126
- @media (orientation:portrait) {
127
- #handimg {
128
- position: absolute;
129
- width: 35%;
130
- height: auto;
131
- top: 53%;
132
- right: 2%;
133
- }}
134
- .lido-balance .hand svg {
135
- width: 100%;
136
- height: auto;
137
- fill: brown;
138
- }
139
-
140
- .pivot svg path:nth-of-type(1) {
141
- fill: brown;
142
- }
143
- .pivot svg path[d^="M78.9414"] {
144
- fill: white;
145
- }
1
+ #lido-balance {
2
+ position: relative;
3
+ height: 500px;
4
+ width: 1205px;
5
+ top: 20%;
6
+ left: -91px;
7
+ z-index: 0;
8
+ }
9
+
10
+ .lido-balance-symbol {
11
+ position: absolute;
12
+ top: 64%;
13
+ left: 50%;
14
+ transform: translate(-50%, -50%);
15
+ font-size: 5vw;
16
+ font-weight: bold;
17
+ color: black;
18
+ pointer-events: none;
19
+ z-index: 999;
20
+ }
21
+ @media (orientation: portrait) {
22
+ .lido-balance-shadow {
23
+ height: 100px;
24
+ position: absolute;
25
+ top: 80%;
26
+ left: 28%;
27
+ }
28
+ }
29
+
30
+ .balance-plate-feedback {
31
+ position: absolute;
32
+ top: 52%;
33
+ width: 34%;
34
+ height: 12px;
35
+ border-radius: 0 0 8px 8px;
36
+ opacity: 0.95;
37
+ box-shadow: 0 9px 10px -2px rgba(70, 0, 0, 0.6);
38
+ pointer-events: none;
39
+ z-index: 95;
40
+ }
41
+
42
+ .balance-plate-feedback[aria-hidden='true'] { display: none; }
43
+ .balance-plate-feedback.left { left: 2.5%; }
44
+ .balance-plate-feedback.right { right: 2.5%; }
45
+ .balance-plate-feedback::after {
46
+ content: '';
47
+ position: absolute;
48
+ top: 100%;
49
+ left: 4%;
50
+ width: 92%;
51
+ height: 11px;
52
+ border-radius: 0 0 8px 8px;
53
+ background: inherit;
54
+ opacity: 0.75;
55
+ filter: blur(5px);
56
+ pointer-events: none;
57
+ }
58
+
59
+ @media (orientation: landscape) {
60
+ .lido-balance-shadow {
61
+ height: 100px ;
62
+ position: absolute;
63
+ top: 90% ;
64
+ left: 33% ;
65
+ }
66
+ }
67
+ @media (orientation: portrait) {
68
+ #pivotimg {
69
+ position: absolute;
70
+ height:auto;
71
+ width: 23%;
72
+ bottom: 18%;
73
+ left: 38%;
74
+ z-index: 100;
75
+
76
+ }
77
+ }
78
+
79
+ #pivotimg::after {
80
+ content: "";
81
+ position: absolute;
82
+ bottom: -30px;
83
+ left: 50%;
84
+ transform: translateX(-50%);
85
+ width: 120%;
86
+ height: 60px;
87
+ background-image: var(--lido-balance-shadow-url);
88
+ background-size: contain;
89
+ background-repeat: no-repeat;
90
+ background-position: center;
91
+ pointer-events: none;
92
+ z-index: 10;
93
+ }
94
+
95
+ @media (orientation: landscape) {
96
+ #pivotimg {
97
+ position: absolute;
98
+ height:auto;
99
+ width: 23%;
100
+ bottom: 8%;
101
+ left: 38%;
102
+ z-index: 100;
103
+ }
104
+ }
105
+
106
+ .lido-balance .pivot svg {
107
+ width: 100%;
108
+ height: auto;
109
+ }
110
+
111
+
112
+ #scaleimg {
113
+ position: absolute;
114
+ width: 73%;
115
+ height: auto;
116
+ top: 61%;
117
+ left: 14%;
118
+ z-index: 90;
119
+ }
120
+ .lido-balance .scale svg {
121
+ width: 100%;
122
+ height: auto;
123
+ }
124
+
125
+ @media (orientation: landscape) {
126
+ #handlerimg {
127
+ position: absolute;
128
+ width: 35%;
129
+ height: auto;
130
+ top:49%;
131
+ left: 2%;
132
+ }}
133
+ @media (orientation:portrait ) {
134
+ #handlerimg {
135
+ position: absolute;
136
+ width: 35%;
137
+ height: auto;
138
+ top:53%;
139
+ left: 2%;
140
+ }}
141
+ .lido-balance .handler svg {
142
+ width: 100%;
143
+ height: auto;
144
+ fill: brown;
145
+ }
146
+
147
+ @media (orientation: landscape) {
148
+ #handimg {
149
+ position: absolute;
150
+ width: 35%;
151
+ height: auto;
152
+ top: 49%;
153
+ right: 2%;
154
+ }}
155
+ @media (orientation:portrait) {
156
+ #handimg {
157
+ position: absolute;
158
+ width: 35%;
159
+ height: auto;
160
+ top: 53%;
161
+ right: 2%;
162
+ }}
163
+ .lido-balance .hand svg {
164
+ width: 100%;
165
+ height: auto;
166
+ fill: brown;
167
+ }
168
+
169
+ .pivot svg path:nth-of-type(1) {
170
+ fill: brown;
171
+ }
172
+ .pivot svg path[d^="M78.9414"] {
173
+ fill: white;
174
+ }
@@ -115,6 +115,7 @@ export class LidoBalance {
115
115
  * Current computed value of the right side of the balance.
116
116
  */
117
117
  this.rightVal = 0;
118
+ this.feedbackColor = '';
118
119
  this.currentAngle = 0;
119
120
  }
120
121
  async revealSymbol() {
@@ -123,12 +124,24 @@ export class LidoBalance {
123
124
  async hideSymbol() {
124
125
  this.showSymbol = false;
125
126
  }
127
+ async setFeedbackColor(color = '') {
128
+ this.feedbackColor = color;
129
+ }
126
130
  async componentWillLoad() {
131
+ this.initializeInitialSymbol();
127
132
  this.updateStyles();
128
133
  this.pivotSvg = await this.fetchAndApplyFill(convertUrlToRelative(this.pivotimage));
129
134
  this.scaleSvg = await this.fetchAndApplyFill(convertUrlToRelative(this.scaleimage));
130
135
  this.handlerSvg = await this.fetchAndApplyFill(convertUrlToRelative(this.handlerimage));
131
136
  }
137
+ initializeInitialSymbol() {
138
+ var _a, _b;
139
+ const container = (_a = this.el) === null || _a === void 0 ? void 0 : _a.closest('lido-container');
140
+ const objective = (_b = container === null || container === void 0 ? void 0 : container.getAttribute('objective')) === null || _b === void 0 ? void 0 : _b.trim();
141
+ if (objective === '>' || objective === '<' || objective === '=')
142
+ this.balanceSymbol = objective;
143
+ this.showSymbol = true;
144
+ }
132
145
  componentDidLoad() {
133
146
  this.animateBalance();
134
147
  this.leftParentEl = document.getElementById("leftparent");
@@ -193,6 +206,11 @@ export class LidoBalance {
193
206
  const offset = (this.currentAngle / this.maxTilt) * maxOffset;
194
207
  this.leftHandleEl.style.transform = `translateY(${-offset}px)`;
195
208
  this.rightHandleEl.style.transform = `translateY(${offset}px)`;
209
+ const feedbackOffset = (this.currentAngle / this.maxTilt) * maxOffset;
210
+ if (this.leftFeedbackEl)
211
+ this.leftFeedbackEl.style.transform = `translateY(${-feedbackOffset}px)`;
212
+ if (this.rightFeedbackEl)
213
+ this.rightFeedbackEl.style.transform = `translateY(${feedbackOffset}px)`;
196
214
  }
197
215
  this.animationFrameId = requestAnimationFrame(rotate);
198
216
  };
@@ -213,7 +231,7 @@ export class LidoBalance {
213
231
  };
214
232
  }
215
233
  render() {
216
- return (h(Host, { key: 'dea6f583bb2de36cfe7ee5bf401cdcaf975685b8', id: "lido-balance", "bg-color": "red", onEntry: this.onEntry, class: "lido-balance", tilt: this.tilt.toString(), style: this.style, operation: this.operation.toString(), "pivot-image": this.pivotSvg, "scale-image": this.scaleSvg, "handler-image": this.handlerSvg }, h("div", { key: 'da588147b7aeafc8a529c8f8399e5acbabbf3bb7', innerHTML: this.pivotSvg, id: "pivotimg", class: "pivot" }), h("div", { key: 'f1a0aa6b8f080a0db945c44b2a1cbb715541db4f', innerHTML: this.scaleSvg, id: "scaleimg", class: "scale", ref: (el) => (this.scaleEl = el) }), h("div", { key: 'e1c742d85d924a6c24c6c8103dcfcf2d41533b88', innerHTML: this.handlerSvg, id: "handlerimg", class: "handler", ref: (el) => (this.leftHandleEl = el) }), h("div", { key: 'c1ea8165c0d2c590616edee9b189e8a3d4198c1a', innerHTML: this.handlerSvg, id: "handimg", class: "hand", ref: (el) => (this.rightHandleEl = el) }), h("div", { key: 'd666d445b0a5fd04394c335ea1494ac7e80f1b07', id: "balanceSymbol", class: "lido-balance-symbol", "aria-hidden": !this.showSymbol }, this.showSymbol ? this.balanceSymbol : '')));
234
+ return (h(Host, { key: 'b455b2b5d330a2125f7fb8b4e2165d2e6e6bc1a0', id: "lido-balance", "bg-color": "red", onEntry: this.onEntry, class: "lido-balance", tilt: this.tilt.toString(), style: this.style, operation: this.operation.toString(), "pivot-image": this.pivotSvg, "scale-image": this.scaleSvg, "handler-image": this.handlerSvg }, h("div", { key: '657f471d397dd7e3476d5b6e35ee4495c8f2db4c', innerHTML: this.pivotSvg, id: "pivotimg", class: "pivot" }), h("div", { key: '7b91e1919db1fdbcddf79f43a9ad51695b7c806f', innerHTML: this.scaleSvg, id: "scaleimg", class: "scale", ref: (el) => (this.scaleEl = el) }), h("div", { key: '137a1440d55776d0771d8cd71741202c224896db', innerHTML: this.handlerSvg, id: "handlerimg", class: "handler", ref: (el) => (this.leftHandleEl = el) }), h("div", { key: 'd6e0deae63a4e219757240e585d582fb5a72a071', innerHTML: this.handlerSvg, id: "handimg", class: "hand", ref: (el) => (this.rightHandleEl = el) }), h("div", { key: 'ef51f98937cf10c017c8289359c92c24e7316a16', class: "balance-plate-feedback left", ref: (el) => (this.leftFeedbackEl = el), style: { backgroundColor: this.feedbackColor }, "aria-hidden": !this.feedbackColor }), h("div", { key: 'f21aade8543977b657a4d2fbcd623cf8769459a0', class: "balance-plate-feedback right", ref: (el) => (this.rightFeedbackEl = el), style: { backgroundColor: this.feedbackColor }, "aria-hidden": !this.feedbackColor }), h("div", { key: '0470afcef443dbeb69a7d651220d5ff50be3836e', id: "balanceSymbol", class: "lido-balance-symbol", "aria-hidden": !this.showSymbol }, this.showSymbol ? this.balanceSymbol : '')));
217
235
  }
218
236
  static get is() { return "lido-balance"; }
219
237
  static get originalStyleUrls() {
@@ -301,7 +319,7 @@ export class LidoBalance {
301
319
  "optional": false,
302
320
  "docs": {
303
321
  "tags": [],
304
- "text": "Fill color applied to all loaded SVGs (pivot, scale, handler).\nDefaults to \"brown\"."
322
+ "text": "Fill color applied to all loaded SVGs (pivot, scale, handler).\r\nDefaults to \"brown\"."
305
323
  },
306
324
  "getter": false,
307
325
  "setter": false,
@@ -321,7 +339,7 @@ export class LidoBalance {
321
339
  "optional": false,
322
340
  "docs": {
323
341
  "tags": [],
324
- "text": "Initial tilt value of the balance.\nNegative = tilts left, Positive = tilts right."
342
+ "text": "Initial tilt value of the balance.\r\nNegative = tilts left, Positive = tilts right."
325
343
  },
326
344
  "getter": false,
327
345
  "setter": false,
@@ -361,7 +379,7 @@ export class LidoBalance {
361
379
  "optional": false,
362
380
  "docs": {
363
381
  "tags": [],
364
- "text": "Action(s) to execute when the component enters the DOM.\nExample: trigger animations or audio cues."
382
+ "text": "Action(s) to execute when the component enters the DOM.\r\nExample: trigger animations or audio cues."
365
383
  },
366
384
  "getter": false,
367
385
  "setter": false,
@@ -381,7 +399,7 @@ export class LidoBalance {
381
399
  "optional": false,
382
400
  "docs": {
383
401
  "tags": [],
384
- "text": "CSS height of the component (responsive values allowed).\nDefault: \"auto\"."
402
+ "text": "CSS height of the component (responsive values allowed).\r\nDefault: \"auto\"."
385
403
  },
386
404
  "getter": false,
387
405
  "setter": false,
@@ -401,7 +419,7 @@ export class LidoBalance {
401
419
  "optional": false,
402
420
  "docs": {
403
421
  "tags": [],
404
- "text": "CSS width of the component (responsive values allowed).\nDefault: \"auto\"."
422
+ "text": "CSS width of the component (responsive values allowed).\r\nDefault: \"auto\"."
405
423
  },
406
424
  "getter": false,
407
425
  "setter": false,
@@ -421,7 +439,7 @@ export class LidoBalance {
421
439
  "optional": false,
422
440
  "docs": {
423
441
  "tags": [],
424
- "text": "Horizontal (X-axis) offset for positioning the component.\nDefault: \"0px\"."
442
+ "text": "Horizontal (X-axis) offset for positioning the component.\r\nDefault: \"0px\"."
425
443
  },
426
444
  "getter": false,
427
445
  "setter": false,
@@ -441,7 +459,7 @@ export class LidoBalance {
441
459
  "optional": false,
442
460
  "docs": {
443
461
  "tags": [],
444
- "text": "Vertical (Y-axis) offset for positioning the component.\nDefault: \"0px\"."
462
+ "text": "Vertical (Y-axis) offset for positioning the component.\r\nDefault: \"0px\"."
445
463
  },
446
464
  "getter": false,
447
465
  "setter": false,
@@ -461,7 +479,7 @@ export class LidoBalance {
461
479
  "optional": false,
462
480
  "docs": {
463
481
  "tags": [],
464
- "text": "Z-index for stacking order of the component.\nDefault: \"0\"."
482
+ "text": "Z-index for stacking order of the component.\r\nDefault: \"0\"."
465
483
  },
466
484
  "getter": false,
467
485
  "setter": false,
@@ -481,7 +499,7 @@ export class LidoBalance {
481
499
  "optional": false,
482
500
  "docs": {
483
501
  "tags": [],
484
- "text": "Controls component visibility.\nAccepts boolean (`true`/`false`) or string (\"true\"/\"false\")."
502
+ "text": "Controls component visibility.\r\nAccepts boolean (`true`/`false`) or string (\"true\"/\"false\")."
485
503
  },
486
504
  "getter": false,
487
505
  "setter": false,
@@ -541,7 +559,7 @@ export class LidoBalance {
541
559
  "optional": false,
542
560
  "docs": {
543
561
  "tags": [],
544
- "text": "Balance symbol shown when `showSymbol` is true.\nDefault: \"=\"."
562
+ "text": "Balance symbol shown when `showSymbol` is true.\r\nDefault: \"=\"."
545
563
  },
546
564
  "getter": false,
547
565
  "setter": false,
@@ -561,7 +579,7 @@ export class LidoBalance {
561
579
  "optional": false,
562
580
  "docs": {
563
581
  "tags": [],
564
- "text": "Whether the balance symbol is currently displayed.\nCan be toggled with `revealSymbol()` and `hideSymbol()`."
582
+ "text": "Whether the balance symbol is currently displayed.\r\nCan be toggled with `revealSymbol()` and `hideSymbol()`."
565
583
  },
566
584
  "getter": false,
567
585
  "setter": false,
@@ -581,7 +599,7 @@ export class LidoBalance {
581
599
  "optional": false,
582
600
  "docs": {
583
601
  "tags": [],
584
- "text": "Operation type used to calculate balance values.\nSupported: \"count\", \"add\", \"subtract\", etc."
602
+ "text": "Operation type used to calculate balance values.\r\nSupported: \"count\", \"add\", \"subtract\", etc."
585
603
  },
586
604
  "getter": false,
587
605
  "setter": false,
@@ -599,7 +617,8 @@ export class LidoBalance {
599
617
  "style": {},
600
618
  "tiltf": {},
601
619
  "leftVal": {},
602
- "rightVal": {}
620
+ "rightVal": {},
621
+ "feedbackColor": {}
603
622
  };
604
623
  }
605
624
  static get methods() {
@@ -638,6 +657,27 @@ export class LidoBalance {
638
657
  "tags": []
639
658
  }
640
659
  },
660
+ "setFeedbackColor": {
661
+ "complexType": {
662
+ "signature": "(color?: string) => Promise<void>",
663
+ "parameters": [{
664
+ "name": "color",
665
+ "type": "string",
666
+ "docs": ""
667
+ }],
668
+ "references": {
669
+ "Promise": {
670
+ "location": "global",
671
+ "id": "global::Promise"
672
+ }
673
+ },
674
+ "return": "Promise<void>"
675
+ },
676
+ "docs": {
677
+ "text": "",
678
+ "tags": []
679
+ }
680
+ },
641
681
  "updateTilt": {
642
682
  "complexType": {
643
683
  "signature": "(leftVal: number, rightVal: number) => Promise<void>",