lido-player 0.0.2-alpha-49 → 0.0.2-alpha-43-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-fe562525.js → index-6a69c33a.js} +36 -3
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{lido-avatar_19.cjs.entry.js → lido-avatar_21.cjs.entry.js} +431 -180
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-96ce5641.js → utils-079a5e7d.js} +1032 -165
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/calculator/lido-calculator.css +87 -0
- package/dist/collection/components/calculator/lido-calculator.js +321 -0
- package/dist/collection/components/cell/lido-cell.js +1 -1
- package/dist/collection/components/column/lido-col.js +1 -1
- package/dist/collection/components/container/lido-container.js +20 -1
- package/dist/collection/components/flashCard/lido-flash-card.js +1 -1
- package/dist/collection/components/float/lido-float.js +1 -1
- package/dist/collection/components/home/lido-home.js +9 -29
- package/dist/collection/components/keyboard/lido-keyboard.js +2 -2
- package/dist/collection/components/mathMatrix/lido-math-matrix.css +10 -2
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +226 -20
- package/dist/collection/components/position/lido-pos.js +1 -1
- package/dist/collection/components/random/lido-random.js +1 -1
- package/dist/collection/components/row/lido-row.js +1 -1
- package/dist/collection/components/scale/lido-balance.css +114 -0
- package/dist/collection/components/scale/lido-balance.js +549 -0
- package/dist/collection/components/shape/lido-shape.js +1 -1
- package/dist/collection/components/slideFill/lido-slide-fill.js +1 -1
- package/dist/collection/components/text/lido-text.js +1 -1
- package/dist/collection/components/trace/lido-trace.js +49 -128
- package/dist/collection/components/wrap/lido-wrap.js +1 -1
- package/dist/collection/css/animation.css +21 -0
- package/dist/collection/css/index.css +45 -0
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +24 -25
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +0 -3
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +67 -0
- package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +156 -0
- package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +49 -0
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +66 -0
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +65 -0
- package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +105 -0
- package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +92 -0
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +47 -0
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +59 -0
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +93 -0
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +100 -0
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +212 -0
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +6 -7
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +6 -7
- package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +158 -0
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +102 -0
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +94 -0
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +184 -0
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +213 -0
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +109 -0
- package/dist/collection/stories/Templates/total/total.stories.js +59 -0
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +96 -0
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +55 -0
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +5 -6
- package/dist/collection/utils/utils.js +439 -81
- package/dist/collection/utils/utilsHandlers/clickHandler.js +21 -25
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +95 -42
- package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +67 -0
- package/dist/collection/utils/utilsHandlers/lidoCalculatorHandler.js +94 -0
- package/dist/collection/utils/utilsHandlers/matrixHandler.js +298 -0
- package/dist/collection/utils/utilsHandlers/slideHandler.js +4 -2
- package/dist/collection/utils/utilsHandlers/sortHandler.js +21 -12
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-balance.d.ts +11 -0
- package/dist/components/lido-balance.js +6 -0
- package/dist/components/lido-calculator.d.ts +11 -0
- package/dist/components/lido-calculator.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 +32 -20
- 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-08d0deab.js +254 -0
- package/dist/components/{p-b5b6ad27.js → p-15971ede.js} +1 -1
- package/dist/components/{p-0bf92c7f.js → p-1fbdb431.js} +2 -2
- package/dist/components/{p-b43ce4e1.js → p-29bdd953.js} +2 -2
- package/dist/components/{p-b8af26e6.js → p-322acda6.js} +40 -48
- package/dist/components/{p-51943db6.js → p-3f406017.js} +2 -2
- package/dist/components/p-44808985.js +186 -0
- package/dist/components/{p-4cabbf28.js → p-52844fa4.js} +2 -2
- package/dist/components/{p-4882df37.js → p-73e31a86.js} +2 -2
- package/dist/components/{p-af54a485.js → p-74849cdd.js} +4 -4
- package/dist/components/{p-9c56f378.js → p-7f7e5672.js} +2 -2
- package/dist/components/{p-4dbae73b.js → p-835b973d.js} +2 -2
- package/dist/components/{p-b55af747.js → p-90465904.js} +50 -129
- package/dist/components/{p-cae021c6.js → p-904711c8.js} +2 -2
- package/dist/components/{p-e735dce9.js → p-9be56729.js} +5 -3
- package/dist/components/{p-cac6c8bf.js → p-afbc196f.js} +2 -2
- package/dist/components/{p-cfa2aec8.js → p-bed94c37.js} +1047 -164
- package/dist/components/{p-7f11a624.js → p-cbac3cbc.js} +1 -1
- package/dist/components/{p-61d97438.js → p-d37ab4dc.js} +2 -2
- package/dist/components/p-e36ddcc1.js +166 -0
- package/dist/components/{p-03e4cafe.js → p-e4e42677.js} +2 -2
- package/dist/esm/{index-f47852d4.js → index-170e58c7.js} +36 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/{lido-avatar_19.entry.js → lido-avatar_21.entry.js} +430 -181
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-9ce243d8.js → utils-5df09162.js} +1031 -164
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.css +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-137c99ce.js +2 -0
- package/dist/lido-player/p-7556e652.js +9 -0
- package/dist/lido-player/p-eb956325.entry.js +1 -0
- package/dist/types/components/calculator/lido-calculator.d.ts +40 -0
- package/dist/types/components/container/lido-container.d.ts +4 -0
- package/dist/types/components/home/lido-home.d.ts +0 -1
- package/dist/types/components/mathMatrix/lido-math-matrix.d.ts +24 -4
- package/dist/types/components/scale/lido-balance.d.ts +160 -0
- package/dist/types/components/trace/lido-trace.d.ts +0 -1
- package/dist/types/components.d.ts +342 -14
- package/dist/types/stories/Templates/balancing/balancing.stories.d.ts +4 -0
- package/dist/types/stories/Templates/checker-block/checkerBlock.stories.d.ts +4 -0
- package/dist/types/stories/Templates/checkerBlock/checkerBlock.stories.d.ts +4 -0
- package/dist/types/stories/Templates/fillAnswer/fill-answer.stories.d.ts +4 -0
- package/dist/types/stories/Templates/foodJar/food-jar.stories.d.ts +4 -0
- package/dist/types/stories/Templates/matchBox/matchBox.stories.d.ts +4 -0
- package/dist/types/stories/Templates/matchBox/matchBox2.stories.d.ts +4 -0
- package/dist/types/stories/Templates/matchingCard/matching-card.stories.d.ts +4 -0
- package/dist/types/stories/Templates/multiplyBeeds/multiplyBeeds.stories.d.ts +9 -0
- package/dist/types/stories/Templates/nimbleTable/nimbleTable.stories.d.ts +4 -0
- package/dist/types/stories/Templates/numberBoardTwo/numberBoardTwo.stories.d.ts +4 -0
- package/dist/types/stories/Templates/numberPair/numberPair.stories.d.ts +4 -0
- package/dist/types/stories/Templates/questionBoard/questionBoard.stories.d.ts +15 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox1.stories.d.ts +11 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox2.stories.d.ts +11 -0
- package/dist/types/stories/Templates/shapePair/shape-pair.stories.d.ts +4 -0
- package/dist/types/stories/Templates/shapeTractor/shape-tractor.stories.d.ts +12 -0
- package/dist/types/stories/Templates/sumTogether/sumTogether.stories.d.ts +11 -0
- package/dist/types/stories/Templates/total/total.stories.d.ts +4 -0
- package/dist/types/stories/Templates/writeNumber/writeNumber.stories.d.ts +13 -0
- package/dist/types/stories/Templates/writeSet/writeSet.stories.d.ts +4 -0
- package/dist/types/utils/utils.d.ts +8 -2
- package/dist/types/utils/utilsHandlers/dragDropHandler.d.ts +4 -0
- package/dist/types/utils/utilsHandlers/lidoBalanceHandler.d.ts +2 -0
- package/dist/types/utils/utilsHandlers/lidoCalculatorHandler.d.ts +1 -0
- package/dist/types/utils/utilsHandlers/matrixHandler.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/p-a8ab771b.js +0 -160
- package/dist/lido-player/p-90212aa9.js +0 -9
- package/dist/lido-player/p-d3911ee1.entry.js +0 -1
- package/dist/lido-player/p-ddf627b0.js +0 -2
|
@@ -96,6 +96,121 @@ export namespace Components {
|
|
|
96
96
|
*/
|
|
97
97
|
"z": string;
|
|
98
98
|
}
|
|
99
|
+
interface LidoBalance {
|
|
100
|
+
/**
|
|
101
|
+
* Balance symbol shown when `showSymbol` is true. Default: "=".
|
|
102
|
+
*/
|
|
103
|
+
"balanceSymbol": string;
|
|
104
|
+
/**
|
|
105
|
+
* Fill color applied to all loaded SVGs (pivot, scale, handler). Defaults to "brown".
|
|
106
|
+
*/
|
|
107
|
+
"fill": string;
|
|
108
|
+
/**
|
|
109
|
+
* URL of the handler (side stands / hooks) image for the balance.
|
|
110
|
+
*/
|
|
111
|
+
"handlerimage": string;
|
|
112
|
+
/**
|
|
113
|
+
* CSS height of the component (responsive values allowed). Default: "auto".
|
|
114
|
+
*/
|
|
115
|
+
"height": string;
|
|
116
|
+
"hideSymbol": () => Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* CSS margin applied to the outer container.
|
|
119
|
+
*/
|
|
120
|
+
"margin": string;
|
|
121
|
+
/**
|
|
122
|
+
* Maximum allowed tilt angle (in degrees) for the balance bar.
|
|
123
|
+
*/
|
|
124
|
+
"maxTilt": number;
|
|
125
|
+
/**
|
|
126
|
+
* Action(s) to execute when the component enters the DOM. Example: trigger animations or audio cues.
|
|
127
|
+
*/
|
|
128
|
+
"onEntry": string;
|
|
129
|
+
/**
|
|
130
|
+
* Operation type used to calculate balance values. Supported: "count", "add", "subtract", etc.
|
|
131
|
+
*/
|
|
132
|
+
"operation": string;
|
|
133
|
+
/**
|
|
134
|
+
* CSS padding applied to the outer container.
|
|
135
|
+
*/
|
|
136
|
+
"padding": string;
|
|
137
|
+
/**
|
|
138
|
+
* URL of the pivot (base stand) image used in the balance visualization.
|
|
139
|
+
*/
|
|
140
|
+
"pivotimage": string;
|
|
141
|
+
"revealSymbol": () => Promise<void>;
|
|
142
|
+
/**
|
|
143
|
+
* URL of the scale (bar) image that tilts based on the weight difference.
|
|
144
|
+
*/
|
|
145
|
+
"scaleimage": string;
|
|
146
|
+
/**
|
|
147
|
+
* Whether the balance symbol is currently displayed. Can be toggled with `revealSymbol()` and `hideSymbol()`.
|
|
148
|
+
*/
|
|
149
|
+
"showSymbol": boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Initial tilt value of the balance. Negative = tilts left, Positive = tilts right.
|
|
152
|
+
*/
|
|
153
|
+
"tilt": number;
|
|
154
|
+
"updateTilt": (leftVal: number, rightVal: number) => Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* Controls component visibility. Accepts boolean (`true`/`false`) or string ("true"/"false").
|
|
157
|
+
*/
|
|
158
|
+
"visible": boolean | string;
|
|
159
|
+
/**
|
|
160
|
+
* CSS width of the component (responsive values allowed). Default: "auto".
|
|
161
|
+
*/
|
|
162
|
+
"width": string;
|
|
163
|
+
/**
|
|
164
|
+
* Horizontal (X-axis) offset for positioning the component. Default: "0px".
|
|
165
|
+
*/
|
|
166
|
+
"x": string;
|
|
167
|
+
/**
|
|
168
|
+
* Vertical (Y-axis) offset for positioning the component. Default: "0px".
|
|
169
|
+
*/
|
|
170
|
+
"y": string;
|
|
171
|
+
/**
|
|
172
|
+
* Z-index for stacking order of the component. Default: "0".
|
|
173
|
+
*/
|
|
174
|
+
"z": string;
|
|
175
|
+
}
|
|
176
|
+
interface LidoCalculator {
|
|
177
|
+
/**
|
|
178
|
+
* Background color for the calculator container
|
|
179
|
+
*/
|
|
180
|
+
"bgColor": string;
|
|
181
|
+
/**
|
|
182
|
+
* Height of the calculator component (default: '711px')
|
|
183
|
+
*/
|
|
184
|
+
"height": string;
|
|
185
|
+
/**
|
|
186
|
+
* Objective or identifier for activity-based logic or validation
|
|
187
|
+
*/
|
|
188
|
+
"objective": string;
|
|
189
|
+
/**
|
|
190
|
+
* Code or actions to execute when the component is first rendered
|
|
191
|
+
*/
|
|
192
|
+
"onEntry": string;
|
|
193
|
+
/**
|
|
194
|
+
* Icon URL for the pen image shown on the calculator UI
|
|
195
|
+
*/
|
|
196
|
+
"penIcon": string;
|
|
197
|
+
/**
|
|
198
|
+
* Controls component visibility. Accepts boolean (`true`/`false`) or string ("true"/"false").
|
|
199
|
+
*/
|
|
200
|
+
"visible": boolean | string;
|
|
201
|
+
/**
|
|
202
|
+
* Width of the calculator component (default: '479px')
|
|
203
|
+
*/
|
|
204
|
+
"width": string;
|
|
205
|
+
/**
|
|
206
|
+
* X-position of the calculator (can be px, %, etc.)
|
|
207
|
+
*/
|
|
208
|
+
"x": string;
|
|
209
|
+
/**
|
|
210
|
+
* Y-position of the calculator (can be px, %, etc.)
|
|
211
|
+
*/
|
|
212
|
+
"y": string;
|
|
213
|
+
}
|
|
99
214
|
/**
|
|
100
215
|
* @component LidoCell
|
|
101
216
|
* A flexible UI cell component configurable via props like size, position, visibility,
|
|
@@ -409,6 +524,10 @@ export namespace Components {
|
|
|
409
524
|
* Delay in milliseconds to make the cell visible after mount.
|
|
410
525
|
*/
|
|
411
526
|
"delayVisible": string;
|
|
527
|
+
/**
|
|
528
|
+
* When set to true, disables the speak functionality of long press for this component and its children.
|
|
529
|
+
*/
|
|
530
|
+
"disableSpeak": boolean;
|
|
412
531
|
/**
|
|
413
532
|
* Custom URL for the Exit button icon. Falls back to the default icon if not provided or invalid.
|
|
414
533
|
*/
|
|
@@ -965,19 +1084,23 @@ export namespace Components {
|
|
|
965
1084
|
/**
|
|
966
1085
|
* Number of columns in the matrix
|
|
967
1086
|
*/
|
|
968
|
-
"cols":
|
|
1087
|
+
"cols": string;
|
|
1088
|
+
/**
|
|
1089
|
+
* Background color for inactive slots
|
|
1090
|
+
*/
|
|
1091
|
+
"deactiveBgColor": string;
|
|
969
1092
|
/**
|
|
970
1093
|
* Number of slots to pre-fill as active by default
|
|
971
1094
|
*/
|
|
972
1095
|
"defualtFill": number;
|
|
973
1096
|
/**
|
|
974
|
-
*
|
|
1097
|
+
* Font color for the slot text
|
|
975
1098
|
*/
|
|
976
|
-
"
|
|
1099
|
+
"fontColor": string;
|
|
977
1100
|
/**
|
|
978
|
-
*
|
|
1101
|
+
* Height of the slot container
|
|
979
1102
|
*/
|
|
980
|
-
"
|
|
1103
|
+
"height": string;
|
|
981
1104
|
/**
|
|
982
1105
|
* Show row index numbers on the left side
|
|
983
1106
|
*/
|
|
@@ -997,19 +1120,43 @@ export namespace Components {
|
|
|
997
1120
|
/**
|
|
998
1121
|
* Number of rows in the matrix
|
|
999
1122
|
*/
|
|
1000
|
-
"rows":
|
|
1123
|
+
"rows": string;
|
|
1124
|
+
/**
|
|
1125
|
+
* Sets the tab index for keyboard navigation
|
|
1126
|
+
*/
|
|
1127
|
+
"tabIndex": number;
|
|
1128
|
+
/**
|
|
1129
|
+
* The display text or label associated with this matrix element
|
|
1130
|
+
*/
|
|
1131
|
+
"text": string;
|
|
1001
1132
|
/**
|
|
1002
1133
|
* Show column index numbers on the top side
|
|
1003
1134
|
*/
|
|
1004
1135
|
"topIndex": boolean;
|
|
1005
1136
|
/**
|
|
1006
|
-
*
|
|
1137
|
+
* Defines the matrix type (e.g., "drop", "slot", "answer")
|
|
1138
|
+
*/
|
|
1139
|
+
"type": string;
|
|
1140
|
+
/**
|
|
1141
|
+
* The value or data associated with this matrix element
|
|
1142
|
+
*/
|
|
1143
|
+
"value": string;
|
|
1144
|
+
/**
|
|
1145
|
+
* Controls the visibility of the matrix (accepts "true" or "false" as string)
|
|
1007
1146
|
*/
|
|
1008
1147
|
"visible": string;
|
|
1009
1148
|
/**
|
|
1010
1149
|
* Width of the slot container
|
|
1011
1150
|
*/
|
|
1012
1151
|
"width": string;
|
|
1152
|
+
/**
|
|
1153
|
+
* The left coordinate (in pixels or percentage) for matrix positioning
|
|
1154
|
+
*/
|
|
1155
|
+
"x": string;
|
|
1156
|
+
/**
|
|
1157
|
+
* The top coordinate (in pixels or percentage) for matrix positioning
|
|
1158
|
+
*/
|
|
1159
|
+
"y": string;
|
|
1013
1160
|
/**
|
|
1014
1161
|
* Z-index value for the matrix container
|
|
1015
1162
|
*/
|
|
@@ -1903,6 +2050,10 @@ export namespace Components {
|
|
|
1903
2050
|
"z": string;
|
|
1904
2051
|
}
|
|
1905
2052
|
}
|
|
2053
|
+
export interface LidoCalculatorCustomEvent<T> extends CustomEvent<T> {
|
|
2054
|
+
detail: T;
|
|
2055
|
+
target: HTMLLidoCalculatorElement;
|
|
2056
|
+
}
|
|
1906
2057
|
declare global {
|
|
1907
2058
|
/**
|
|
1908
2059
|
* @component LidoAvatar
|
|
@@ -1918,6 +2069,29 @@ declare global {
|
|
|
1918
2069
|
prototype: HTMLLidoAvatarElement;
|
|
1919
2070
|
new (): HTMLLidoAvatarElement;
|
|
1920
2071
|
};
|
|
2072
|
+
interface HTMLLidoBalanceElement extends Components.LidoBalance, HTMLStencilElement {
|
|
2073
|
+
}
|
|
2074
|
+
var HTMLLidoBalanceElement: {
|
|
2075
|
+
prototype: HTMLLidoBalanceElement;
|
|
2076
|
+
new (): HTMLLidoBalanceElement;
|
|
2077
|
+
};
|
|
2078
|
+
interface HTMLLidoCalculatorElementEventMap {
|
|
2079
|
+
"onOk": boolean;
|
|
2080
|
+
}
|
|
2081
|
+
interface HTMLLidoCalculatorElement extends Components.LidoCalculator, HTMLStencilElement {
|
|
2082
|
+
addEventListener<K extends keyof HTMLLidoCalculatorElementEventMap>(type: K, listener: (this: HTMLLidoCalculatorElement, ev: LidoCalculatorCustomEvent<HTMLLidoCalculatorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2083
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2084
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2085
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2086
|
+
removeEventListener<K extends keyof HTMLLidoCalculatorElementEventMap>(type: K, listener: (this: HTMLLidoCalculatorElement, ev: LidoCalculatorCustomEvent<HTMLLidoCalculatorElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2087
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2088
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2089
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2090
|
+
}
|
|
2091
|
+
var HTMLLidoCalculatorElement: {
|
|
2092
|
+
prototype: HTMLLidoCalculatorElement;
|
|
2093
|
+
new (): HTMLLidoCalculatorElement;
|
|
2094
|
+
};
|
|
1921
2095
|
/**
|
|
1922
2096
|
* @component LidoCell
|
|
1923
2097
|
* A flexible UI cell component configurable via props like size, position, visibility,
|
|
@@ -2102,6 +2276,8 @@ declare global {
|
|
|
2102
2276
|
};
|
|
2103
2277
|
interface HTMLElementTagNameMap {
|
|
2104
2278
|
"lido-avatar": HTMLLidoAvatarElement;
|
|
2279
|
+
"lido-balance": HTMLLidoBalanceElement;
|
|
2280
|
+
"lido-calculator": HTMLLidoCalculatorElement;
|
|
2105
2281
|
"lido-cell": HTMLLidoCellElement;
|
|
2106
2282
|
"lido-col": HTMLLidoColElement;
|
|
2107
2283
|
"lido-container": HTMLLidoContainerElement;
|
|
@@ -2213,6 +2389,122 @@ declare namespace LocalJSX {
|
|
|
2213
2389
|
*/
|
|
2214
2390
|
"z"?: string;
|
|
2215
2391
|
}
|
|
2392
|
+
interface LidoBalance {
|
|
2393
|
+
/**
|
|
2394
|
+
* Balance symbol shown when `showSymbol` is true. Default: "=".
|
|
2395
|
+
*/
|
|
2396
|
+
"balanceSymbol"?: string;
|
|
2397
|
+
/**
|
|
2398
|
+
* Fill color applied to all loaded SVGs (pivot, scale, handler). Defaults to "brown".
|
|
2399
|
+
*/
|
|
2400
|
+
"fill"?: string;
|
|
2401
|
+
/**
|
|
2402
|
+
* URL of the handler (side stands / hooks) image for the balance.
|
|
2403
|
+
*/
|
|
2404
|
+
"handlerimage"?: string;
|
|
2405
|
+
/**
|
|
2406
|
+
* CSS height of the component (responsive values allowed). Default: "auto".
|
|
2407
|
+
*/
|
|
2408
|
+
"height"?: string;
|
|
2409
|
+
/**
|
|
2410
|
+
* CSS margin applied to the outer container.
|
|
2411
|
+
*/
|
|
2412
|
+
"margin"?: string;
|
|
2413
|
+
/**
|
|
2414
|
+
* Maximum allowed tilt angle (in degrees) for the balance bar.
|
|
2415
|
+
*/
|
|
2416
|
+
"maxTilt"?: number;
|
|
2417
|
+
/**
|
|
2418
|
+
* Action(s) to execute when the component enters the DOM. Example: trigger animations or audio cues.
|
|
2419
|
+
*/
|
|
2420
|
+
"onEntry"?: string;
|
|
2421
|
+
/**
|
|
2422
|
+
* Operation type used to calculate balance values. Supported: "count", "add", "subtract", etc.
|
|
2423
|
+
*/
|
|
2424
|
+
"operation"?: string;
|
|
2425
|
+
/**
|
|
2426
|
+
* CSS padding applied to the outer container.
|
|
2427
|
+
*/
|
|
2428
|
+
"padding"?: string;
|
|
2429
|
+
/**
|
|
2430
|
+
* URL of the pivot (base stand) image used in the balance visualization.
|
|
2431
|
+
*/
|
|
2432
|
+
"pivotimage"?: string;
|
|
2433
|
+
/**
|
|
2434
|
+
* URL of the scale (bar) image that tilts based on the weight difference.
|
|
2435
|
+
*/
|
|
2436
|
+
"scaleimage"?: string;
|
|
2437
|
+
/**
|
|
2438
|
+
* Whether the balance symbol is currently displayed. Can be toggled with `revealSymbol()` and `hideSymbol()`.
|
|
2439
|
+
*/
|
|
2440
|
+
"showSymbol"?: boolean;
|
|
2441
|
+
/**
|
|
2442
|
+
* Initial tilt value of the balance. Negative = tilts left, Positive = tilts right.
|
|
2443
|
+
*/
|
|
2444
|
+
"tilt"?: number;
|
|
2445
|
+
/**
|
|
2446
|
+
* Controls component visibility. Accepts boolean (`true`/`false`) or string ("true"/"false").
|
|
2447
|
+
*/
|
|
2448
|
+
"visible"?: boolean | string;
|
|
2449
|
+
/**
|
|
2450
|
+
* CSS width of the component (responsive values allowed). Default: "auto".
|
|
2451
|
+
*/
|
|
2452
|
+
"width"?: string;
|
|
2453
|
+
/**
|
|
2454
|
+
* Horizontal (X-axis) offset for positioning the component. Default: "0px".
|
|
2455
|
+
*/
|
|
2456
|
+
"x"?: string;
|
|
2457
|
+
/**
|
|
2458
|
+
* Vertical (Y-axis) offset for positioning the component. Default: "0px".
|
|
2459
|
+
*/
|
|
2460
|
+
"y"?: string;
|
|
2461
|
+
/**
|
|
2462
|
+
* Z-index for stacking order of the component. Default: "0".
|
|
2463
|
+
*/
|
|
2464
|
+
"z"?: string;
|
|
2465
|
+
}
|
|
2466
|
+
interface LidoCalculator {
|
|
2467
|
+
/**
|
|
2468
|
+
* Background color for the calculator container
|
|
2469
|
+
*/
|
|
2470
|
+
"bgColor"?: string;
|
|
2471
|
+
/**
|
|
2472
|
+
* Height of the calculator component (default: '711px')
|
|
2473
|
+
*/
|
|
2474
|
+
"height"?: string;
|
|
2475
|
+
/**
|
|
2476
|
+
* Objective or identifier for activity-based logic or validation
|
|
2477
|
+
*/
|
|
2478
|
+
"objective"?: string;
|
|
2479
|
+
/**
|
|
2480
|
+
* Code or actions to execute when the component is first rendered
|
|
2481
|
+
*/
|
|
2482
|
+
"onEntry"?: string;
|
|
2483
|
+
/**
|
|
2484
|
+
* Event emitted when user confirms or completes an action (e.g., pressing OK)
|
|
2485
|
+
*/
|
|
2486
|
+
"onOnOk"?: (event: LidoCalculatorCustomEvent<boolean>) => void;
|
|
2487
|
+
/**
|
|
2488
|
+
* Icon URL for the pen image shown on the calculator UI
|
|
2489
|
+
*/
|
|
2490
|
+
"penIcon"?: string;
|
|
2491
|
+
/**
|
|
2492
|
+
* Controls component visibility. Accepts boolean (`true`/`false`) or string ("true"/"false").
|
|
2493
|
+
*/
|
|
2494
|
+
"visible"?: boolean | string;
|
|
2495
|
+
/**
|
|
2496
|
+
* Width of the calculator component (default: '479px')
|
|
2497
|
+
*/
|
|
2498
|
+
"width"?: string;
|
|
2499
|
+
/**
|
|
2500
|
+
* X-position of the calculator (can be px, %, etc.)
|
|
2501
|
+
*/
|
|
2502
|
+
"x"?: string;
|
|
2503
|
+
/**
|
|
2504
|
+
* Y-position of the calculator (can be px, %, etc.)
|
|
2505
|
+
*/
|
|
2506
|
+
"y"?: string;
|
|
2507
|
+
}
|
|
2216
2508
|
/**
|
|
2217
2509
|
* @component LidoCell
|
|
2218
2510
|
* A flexible UI cell component configurable via props like size, position, visibility,
|
|
@@ -2526,6 +2818,10 @@ declare namespace LocalJSX {
|
|
|
2526
2818
|
* Delay in milliseconds to make the cell visible after mount.
|
|
2527
2819
|
*/
|
|
2528
2820
|
"delayVisible"?: string;
|
|
2821
|
+
/**
|
|
2822
|
+
* When set to true, disables the speak functionality of long press for this component and its children.
|
|
2823
|
+
*/
|
|
2824
|
+
"disableSpeak"?: boolean;
|
|
2529
2825
|
/**
|
|
2530
2826
|
* Custom URL for the Exit button icon. Falls back to the default icon if not provided or invalid.
|
|
2531
2827
|
*/
|
|
@@ -3082,19 +3378,23 @@ declare namespace LocalJSX {
|
|
|
3082
3378
|
/**
|
|
3083
3379
|
* Number of columns in the matrix
|
|
3084
3380
|
*/
|
|
3085
|
-
"cols"?:
|
|
3381
|
+
"cols"?: string;
|
|
3382
|
+
/**
|
|
3383
|
+
* Background color for inactive slots
|
|
3384
|
+
*/
|
|
3385
|
+
"deactiveBgColor"?: string;
|
|
3086
3386
|
/**
|
|
3087
3387
|
* Number of slots to pre-fill as active by default
|
|
3088
3388
|
*/
|
|
3089
3389
|
"defualtFill"?: number;
|
|
3090
3390
|
/**
|
|
3091
|
-
*
|
|
3391
|
+
* Font color for the slot text
|
|
3092
3392
|
*/
|
|
3093
|
-
"
|
|
3393
|
+
"fontColor"?: string;
|
|
3094
3394
|
/**
|
|
3095
|
-
*
|
|
3395
|
+
* Height of the slot container
|
|
3096
3396
|
*/
|
|
3097
|
-
"
|
|
3397
|
+
"height"?: string;
|
|
3098
3398
|
/**
|
|
3099
3399
|
* Show row index numbers on the left side
|
|
3100
3400
|
*/
|
|
@@ -3114,19 +3414,43 @@ declare namespace LocalJSX {
|
|
|
3114
3414
|
/**
|
|
3115
3415
|
* Number of rows in the matrix
|
|
3116
3416
|
*/
|
|
3117
|
-
"rows"?:
|
|
3417
|
+
"rows"?: string;
|
|
3418
|
+
/**
|
|
3419
|
+
* Sets the tab index for keyboard navigation
|
|
3420
|
+
*/
|
|
3421
|
+
"tabIndex"?: number;
|
|
3422
|
+
/**
|
|
3423
|
+
* The display text or label associated with this matrix element
|
|
3424
|
+
*/
|
|
3425
|
+
"text"?: string;
|
|
3118
3426
|
/**
|
|
3119
3427
|
* Show column index numbers on the top side
|
|
3120
3428
|
*/
|
|
3121
3429
|
"topIndex"?: boolean;
|
|
3122
3430
|
/**
|
|
3123
|
-
*
|
|
3431
|
+
* Defines the matrix type (e.g., "drop", "slot", "answer")
|
|
3432
|
+
*/
|
|
3433
|
+
"type"?: string;
|
|
3434
|
+
/**
|
|
3435
|
+
* The value or data associated with this matrix element
|
|
3436
|
+
*/
|
|
3437
|
+
"value"?: string;
|
|
3438
|
+
/**
|
|
3439
|
+
* Controls the visibility of the matrix (accepts "true" or "false" as string)
|
|
3124
3440
|
*/
|
|
3125
3441
|
"visible"?: string;
|
|
3126
3442
|
/**
|
|
3127
3443
|
* Width of the slot container
|
|
3128
3444
|
*/
|
|
3129
3445
|
"width"?: string;
|
|
3446
|
+
/**
|
|
3447
|
+
* The left coordinate (in pixels or percentage) for matrix positioning
|
|
3448
|
+
*/
|
|
3449
|
+
"x"?: string;
|
|
3450
|
+
/**
|
|
3451
|
+
* The top coordinate (in pixels or percentage) for matrix positioning
|
|
3452
|
+
*/
|
|
3453
|
+
"y"?: string;
|
|
3130
3454
|
/**
|
|
3131
3455
|
* Z-index value for the matrix container
|
|
3132
3456
|
*/
|
|
@@ -4021,6 +4345,8 @@ declare namespace LocalJSX {
|
|
|
4021
4345
|
}
|
|
4022
4346
|
interface IntrinsicElements {
|
|
4023
4347
|
"lido-avatar": LidoAvatar;
|
|
4348
|
+
"lido-balance": LidoBalance;
|
|
4349
|
+
"lido-calculator": LidoCalculator;
|
|
4024
4350
|
"lido-cell": LidoCell;
|
|
4025
4351
|
"lido-col": LidoCol;
|
|
4026
4352
|
"lido-container": LidoContainer;
|
|
@@ -4054,6 +4380,8 @@ declare module "@stencil/core" {
|
|
|
4054
4380
|
* This component initializes and manages a Rive animation inside a canvas element.
|
|
4055
4381
|
*/
|
|
4056
4382
|
"lido-avatar": LocalJSX.LidoAvatar & JSXBase.HTMLAttributes<HTMLLidoAvatarElement>;
|
|
4383
|
+
"lido-balance": LocalJSX.LidoBalance & JSXBase.HTMLAttributes<HTMLLidoBalanceElement>;
|
|
4384
|
+
"lido-calculator": LocalJSX.LidoCalculator & JSXBase.HTMLAttributes<HTMLLidoCalculatorElement>;
|
|
4057
4385
|
/**
|
|
4058
4386
|
* @component LidoCell
|
|
4059
4387
|
* A flexible UI cell component configurable via props like size, position, visibility,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
type MultiplyBeedsArgs = {
|
|
3
|
+
number: string;
|
|
4
|
+
multiplicationFactor: string;
|
|
5
|
+
answer: string;
|
|
6
|
+
};
|
|
7
|
+
declare const meta: Meta<MultiplyBeedsArgs>;
|
|
8
|
+
export default meta;
|
|
9
|
+
export declare const MultiplyBeeds: StoryObj<MultiplyBeedsArgs>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
type QuestionBoardArgs = {
|
|
3
|
+
questionBoardImage: string[];
|
|
4
|
+
questionBoardText: string;
|
|
5
|
+
backgroundImagePlusSign1: string[];
|
|
6
|
+
backgroundImagePlusSign2: string[];
|
|
7
|
+
backgroundImageMultiplicationSign: string[];
|
|
8
|
+
expressionText: string;
|
|
9
|
+
options: object;
|
|
10
|
+
optionText: string;
|
|
11
|
+
objective: string;
|
|
12
|
+
};
|
|
13
|
+
declare const meta: Meta<QuestionBoardArgs>;
|
|
14
|
+
export default meta;
|
|
15
|
+
export declare const QuestionBoard: StoryObj;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
type SequenceBoxArgs = {
|
|
3
|
+
missingNumber: string;
|
|
4
|
+
number1: string;
|
|
5
|
+
number2: string;
|
|
6
|
+
number4: string;
|
|
7
|
+
options: string[];
|
|
8
|
+
};
|
|
9
|
+
declare const meta: Meta<SequenceBoxArgs>;
|
|
10
|
+
export default meta;
|
|
11
|
+
export declare const SequenceBox: StoryObj;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
type SequenceBoxArgs = {
|
|
3
|
+
missingNumber: string;
|
|
4
|
+
number1: string;
|
|
5
|
+
number2: string;
|
|
6
|
+
number4: string;
|
|
7
|
+
options: string[];
|
|
8
|
+
};
|
|
9
|
+
declare const meta: Meta<SequenceBoxArgs>;
|
|
10
|
+
export default meta;
|
|
11
|
+
export declare const SequenceBox: StoryObj;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
type ShapeTractorArgs = {
|
|
3
|
+
blocks: any[];
|
|
4
|
+
options: any[];
|
|
5
|
+
};
|
|
6
|
+
declare const meta: Meta<ShapeTractorArgs>;
|
|
7
|
+
export default meta;
|
|
8
|
+
export declare const ShapeTractor: StoryObj<ShapeTractorArgs>;
|
|
9
|
+
export declare const ShapeTractorOne: StoryObj<ShapeTractorArgs>;
|
|
10
|
+
export declare const ShapeTractorTwo: StoryObj<ShapeTractorArgs>;
|
|
11
|
+
export declare const ShapeTractorThree: StoryObj<ShapeTractorArgs>;
|
|
12
|
+
export declare const ShapeTractorFour: StoryObj<ShapeTractorArgs>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
type SumTogetherArgs = {
|
|
3
|
+
number1: string;
|
|
4
|
+
number2: string;
|
|
5
|
+
answer: string;
|
|
6
|
+
sign: string;
|
|
7
|
+
options: string[];
|
|
8
|
+
};
|
|
9
|
+
declare const meta: Meta<SumTogetherArgs>;
|
|
10
|
+
export default meta;
|
|
11
|
+
export declare const SumTogether: StoryObj<SumTogetherArgs>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
type WriteNumberArgs = {
|
|
3
|
+
traceImage1: string[];
|
|
4
|
+
traceImage2: string[];
|
|
5
|
+
traceMode: 'noFlow' | 'showFlow' | 'freeTrace' | 'blindTracing' | 'blindFreeTrace';
|
|
6
|
+
highlightedText: string;
|
|
7
|
+
textDisplayImage: string[];
|
|
8
|
+
spanType: 'letters' | 'words';
|
|
9
|
+
stars: number;
|
|
10
|
+
};
|
|
11
|
+
declare const meta: Meta<WriteNumberArgs>;
|
|
12
|
+
export default meta;
|
|
13
|
+
export declare const WriteNumber: StoryObj;
|