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
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
.slot {
|
|
9
9
|
width: 100%;
|
|
10
10
|
height: 100%;
|
|
11
|
+
text-align: center;
|
|
12
|
+
align-content: center;
|
|
13
|
+
font-size: 42px;
|
|
14
|
+
font-weight: 800;
|
|
15
|
+
font-family: 'Baloo Bhai 2';
|
|
16
|
+
box-sizing: content-box;
|
|
11
17
|
}
|
|
12
18
|
|
|
13
19
|
.slot:hover {
|
|
@@ -27,13 +33,13 @@
|
|
|
27
33
|
.slot-active {
|
|
28
34
|
background-color: var(--active-bg-color);
|
|
29
35
|
background-image: var(--bg-image);
|
|
30
|
-
background-size:
|
|
36
|
+
background-size: contain;
|
|
31
37
|
background-position: center;
|
|
32
38
|
background-repeat: no-repeat;
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
.slot-inactive {
|
|
36
|
-
background-color: var(--
|
|
42
|
+
background-color: var(--deactive-bg-color);
|
|
37
43
|
background-size: cover;
|
|
38
44
|
background-position: center;
|
|
39
45
|
background-repeat: no-repeat;
|
|
@@ -45,4 +51,6 @@
|
|
|
45
51
|
text-align: center;
|
|
46
52
|
align-content: center;
|
|
47
53
|
font-size: 30px;
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
font-family: 'Baloo Bhai 2';
|
|
48
56
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { convertUrlToRelative, parseProp } from "../../utils/utils";
|
|
2
|
+
import { convertUrlToRelative, initEventsForElement, parseProp, validateObjectiveStatus } from "../../utils/utils";
|
|
3
3
|
export class LidoMathMatrix {
|
|
4
4
|
constructor() {
|
|
5
|
-
this.rows = 7;
|
|
6
|
-
this.cols = 5;
|
|
5
|
+
this.rows = "7";
|
|
6
|
+
this.cols = "5";
|
|
7
7
|
this.defualtFill = 0;
|
|
8
8
|
this.leftIndex = false;
|
|
9
9
|
this.topIndex = false;
|
|
@@ -11,8 +11,8 @@ export class LidoMathMatrix {
|
|
|
11
11
|
this.clickable = true;
|
|
12
12
|
this.activeOnlyVisible = false;
|
|
13
13
|
this.matrixImage = undefined;
|
|
14
|
-
this.activeBgColor = '
|
|
15
|
-
this.
|
|
14
|
+
this.activeBgColor = 'transparent';
|
|
15
|
+
this.deactiveBgColor = 'transparent';
|
|
16
16
|
this.border = '2px solid green';
|
|
17
17
|
this.height = '100%';
|
|
18
18
|
this.width = '100%';
|
|
@@ -21,16 +21,30 @@ export class LidoMathMatrix {
|
|
|
21
21
|
this.margin = undefined;
|
|
22
22
|
this.padding = undefined;
|
|
23
23
|
this.visible = 'false';
|
|
24
|
+
this.text = undefined;
|
|
25
|
+
this.type = undefined;
|
|
26
|
+
this.value = undefined;
|
|
27
|
+
this.tabIndex = undefined;
|
|
28
|
+
this.x = undefined;
|
|
29
|
+
this.y = undefined;
|
|
30
|
+
this.fontColor = undefined;
|
|
31
|
+
this.previousFilledSlot = -1;
|
|
32
|
+
this.previousFilledSlotElement = null;
|
|
24
33
|
this.style = {};
|
|
25
34
|
}
|
|
35
|
+
updateValue(index) {
|
|
36
|
+
this.el.setAttribute('value', index);
|
|
37
|
+
}
|
|
26
38
|
componentDidLoad() {
|
|
27
39
|
const slotElements = this.el.querySelectorAll('.slot');
|
|
40
|
+
initEventsForElement(this.el, this.type);
|
|
28
41
|
slotElements.forEach((el, i) => {
|
|
29
42
|
const slot = el;
|
|
30
43
|
slot.style.setProperty('--active-bg-color', this.activeBgColor);
|
|
31
|
-
slot.style.setProperty('--
|
|
44
|
+
slot.style.setProperty('--deactive-bg-color', this.deactiveBgColor);
|
|
32
45
|
this.clickable ? (slot.style.pointerEvents = '') : (slot.style.pointerEvents = 'none');
|
|
33
46
|
slot.style.border = this.border;
|
|
47
|
+
slot.style.color = this.fontColor;
|
|
34
48
|
if (slot.className.includes('slot-active')) {
|
|
35
49
|
slot.style.visibility = 'visible';
|
|
36
50
|
if (this.matrixImage) {
|
|
@@ -71,6 +85,10 @@ export class LidoMathMatrix {
|
|
|
71
85
|
const item = el;
|
|
72
86
|
item.style.width = `${slotMaxValues}px`;
|
|
73
87
|
item.style.height = `${slotMaxValues}px`;
|
|
88
|
+
if (this.type === 'drop' || this.type === 'drag' || this.type === 'checkerBlock') {
|
|
89
|
+
this.el.style.width = 'auto';
|
|
90
|
+
this.el.style.height = 'auto';
|
|
91
|
+
}
|
|
74
92
|
if ((!this.topIndex && item.classList.contains('topIndex')) ||
|
|
75
93
|
(!this.leftIndex && item.classList.contains('leftIndex')) ||
|
|
76
94
|
(!this.bottomIndex && item.classList.contains('bottomIndex'))) {
|
|
@@ -89,11 +107,16 @@ export class LidoMathMatrix {
|
|
|
89
107
|
zIndex: this.z,
|
|
90
108
|
display: parseProp(`${this.visible}`, orientation) === 'true' ? 'flex' : 'none',
|
|
91
109
|
borderRadius: parseProp(this.borderRadius, orientation),
|
|
110
|
+
left: parseProp(this.x, orientation),
|
|
111
|
+
top: parseProp(this.y, orientation),
|
|
112
|
+
cols: parseProp(`${this.cols}`, orientation),
|
|
113
|
+
rows: parseProp(`${this.rows}`, orientation),
|
|
92
114
|
};
|
|
115
|
+
// console.log("cols and rows : ", );
|
|
93
116
|
}
|
|
94
117
|
handleClickSlot(element) {
|
|
95
118
|
const index = parseInt(element.className.split(' ')[1].split('-')[1]);
|
|
96
|
-
const slotElements =
|
|
119
|
+
const slotElements = this.el.querySelectorAll('.slot');
|
|
97
120
|
slotElements.forEach((el, i) => {
|
|
98
121
|
const slotEl = el;
|
|
99
122
|
if (i < index) {
|
|
@@ -108,10 +131,72 @@ export class LidoMathMatrix {
|
|
|
108
131
|
slotEl.classList.add('slot-inactive');
|
|
109
132
|
}
|
|
110
133
|
});
|
|
134
|
+
if (this.previousFilledSlot !== -1) {
|
|
135
|
+
// Clear the text from the previously filled slot
|
|
136
|
+
if (this.previousFilledSlotElement !== null) {
|
|
137
|
+
this.previousFilledSlotElement.textContent = '';
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
// Display the slot value/text on the clicked slot itself
|
|
141
|
+
element.textContent = index.toString();
|
|
142
|
+
// Track this slot as the previously filled slot for next click
|
|
143
|
+
this.previousFilledSlot = index;
|
|
144
|
+
this.previousFilledSlotElement = element;
|
|
145
|
+
// If the slot is the bottom-most slot for this matrix, dispatch a generic event
|
|
146
|
+
// so templates or global handlers can handle bottom-slot behaviour (e.g., MultiplyBeadsAnimation).
|
|
147
|
+
if (index === slotElements.length) {
|
|
148
|
+
try {
|
|
149
|
+
const event = new CustomEvent('math-matrix-bottom-click', {
|
|
150
|
+
detail: {
|
|
151
|
+
matrix: this.el,
|
|
152
|
+
cols: this.style.cols,
|
|
153
|
+
rows: this.style.rows,
|
|
154
|
+
},
|
|
155
|
+
bubbles: true,
|
|
156
|
+
composed: true,
|
|
157
|
+
});
|
|
158
|
+
// dispatch from the host so listeners on container or document receive it
|
|
159
|
+
this.el.dispatchEvent(event);
|
|
160
|
+
}
|
|
161
|
+
catch (err) {
|
|
162
|
+
console.warn('Error dispatching math-matrix-bottom-click from handleClickSlot', err);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
this.updateValue(index.toString());
|
|
166
|
+
// trigger the next container if right slot was clicked
|
|
167
|
+
validateObjectiveStatus();
|
|
168
|
+
}
|
|
169
|
+
getSlotData() {
|
|
170
|
+
const data = {};
|
|
171
|
+
if (!this.text)
|
|
172
|
+
return data;
|
|
173
|
+
this.text.split(',').forEach((item, index) => {
|
|
174
|
+
const [rawText, rawColor] = item.split('-');
|
|
175
|
+
const num = parseInt(rawText.trim());
|
|
176
|
+
if (!isNaN(num)) {
|
|
177
|
+
data[index] = { text: rawText.trim(), color: rawColor === null || rawColor === void 0 ? void 0 : rawColor.trim() };
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
return data;
|
|
111
181
|
}
|
|
112
182
|
render() {
|
|
113
183
|
let slotNumber = 1;
|
|
114
|
-
|
|
184
|
+
const slotData = this.getSlotData();
|
|
185
|
+
return (h(Host, { key: '66d627c33553f3f6473c6d1b465c9af7cc6741d3', class: "math-matrix", style: {
|
|
186
|
+
height: this.style.height,
|
|
187
|
+
width: this.style.width,
|
|
188
|
+
z: this.style.z,
|
|
189
|
+
display: this.style.display,
|
|
190
|
+
top: this.style.top,
|
|
191
|
+
left: this.style.left,
|
|
192
|
+
}, type: this.type, value: this.value, "tab-index": this.tabIndex, rows: this.style.rows, cols: this.style.cols, text: this.text }, Array.from({ length: parseInt(this.style.rows) + 1 }, (_, rowIndex) => (h("div", { class: "slot-parent", key: `row-${rowIndex}` }, h("div", { style: rowIndex === 0 && { visibility: 'hidden' }, class: "topIndex" }, rowIndex), Array.from({ length: parseInt(this.style.cols) }, (_, colIndex) => {
|
|
193
|
+
var _a, _b;
|
|
194
|
+
return rowIndex === 0 ? (h("div", { class: "leftIndex" }, ++colIndex)) : (h("div", { class: `slot slot-${slotNumber} ${this.defualtFill >= slotNumber ? 'slot-active' : 'slot-inactive'}`, onClick: (ev) => this.handleClickSlot(ev.currentTarget), key: `slot-${rowIndex}-${colIndex}`, style: {
|
|
195
|
+
borderRadius: this.style.borderRadius,
|
|
196
|
+
backgroundColor: ((_a = slotData[slotNumber - 1]) === null || _a === void 0 ? void 0 : _a.color) || '',
|
|
197
|
+
} }, (_b = slotData[slotNumber - 1]) === null || _b === void 0 ? void 0 :
|
|
198
|
+
_b.text, slotNumber++ && null));
|
|
199
|
+
}), h("div", { style: rowIndex === 0 && { visibility: 'hidden' }, class: "bottomIndex" }, parseInt(this.style.cols) * rowIndex))))));
|
|
115
200
|
}
|
|
116
201
|
static get is() { return "lido-math-matrix"; }
|
|
117
202
|
static get originalStyleUrls() {
|
|
@@ -127,11 +212,11 @@ export class LidoMathMatrix {
|
|
|
127
212
|
static get properties() {
|
|
128
213
|
return {
|
|
129
214
|
"rows": {
|
|
130
|
-
"type": "
|
|
215
|
+
"type": "string",
|
|
131
216
|
"mutable": false,
|
|
132
217
|
"complexType": {
|
|
133
|
-
"original": "
|
|
134
|
-
"resolved": "
|
|
218
|
+
"original": "string",
|
|
219
|
+
"resolved": "string",
|
|
135
220
|
"references": {}
|
|
136
221
|
},
|
|
137
222
|
"required": false,
|
|
@@ -142,14 +227,14 @@ export class LidoMathMatrix {
|
|
|
142
227
|
},
|
|
143
228
|
"attribute": "rows",
|
|
144
229
|
"reflect": false,
|
|
145
|
-
"defaultValue": "7"
|
|
230
|
+
"defaultValue": "\"7\""
|
|
146
231
|
},
|
|
147
232
|
"cols": {
|
|
148
|
-
"type": "
|
|
233
|
+
"type": "string",
|
|
149
234
|
"mutable": false,
|
|
150
235
|
"complexType": {
|
|
151
|
-
"original": "
|
|
152
|
-
"resolved": "
|
|
236
|
+
"original": "string",
|
|
237
|
+
"resolved": "string",
|
|
153
238
|
"references": {}
|
|
154
239
|
},
|
|
155
240
|
"required": false,
|
|
@@ -160,7 +245,7 @@ export class LidoMathMatrix {
|
|
|
160
245
|
},
|
|
161
246
|
"attribute": "cols",
|
|
162
247
|
"reflect": false,
|
|
163
|
-
"defaultValue": "5"
|
|
248
|
+
"defaultValue": "\"5\""
|
|
164
249
|
},
|
|
165
250
|
"defualtFill": {
|
|
166
251
|
"type": "number",
|
|
@@ -303,9 +388,9 @@ export class LidoMathMatrix {
|
|
|
303
388
|
},
|
|
304
389
|
"attribute": "active-bg-color",
|
|
305
390
|
"reflect": false,
|
|
306
|
-
"defaultValue": "'
|
|
391
|
+
"defaultValue": "'transparent'"
|
|
307
392
|
},
|
|
308
|
-
"
|
|
393
|
+
"deactiveBgColor": {
|
|
309
394
|
"type": "string",
|
|
310
395
|
"mutable": false,
|
|
311
396
|
"complexType": {
|
|
@@ -319,7 +404,7 @@ export class LidoMathMatrix {
|
|
|
319
404
|
"tags": [],
|
|
320
405
|
"text": "Background color for inactive slots"
|
|
321
406
|
},
|
|
322
|
-
"attribute": "
|
|
407
|
+
"attribute": "deactive-bg-color",
|
|
323
408
|
"reflect": false,
|
|
324
409
|
"defaultValue": "'transparent'"
|
|
325
410
|
},
|
|
@@ -458,16 +543,137 @@ export class LidoMathMatrix {
|
|
|
458
543
|
"optional": false,
|
|
459
544
|
"docs": {
|
|
460
545
|
"tags": [],
|
|
461
|
-
"text": "Controls visibility of the matrix (
|
|
546
|
+
"text": "Controls the visibility of the matrix (accepts \"true\" or \"false\" as string)"
|
|
462
547
|
},
|
|
463
548
|
"attribute": "visible",
|
|
464
549
|
"reflect": false,
|
|
465
550
|
"defaultValue": "'false'"
|
|
551
|
+
},
|
|
552
|
+
"text": {
|
|
553
|
+
"type": "string",
|
|
554
|
+
"mutable": false,
|
|
555
|
+
"complexType": {
|
|
556
|
+
"original": "string",
|
|
557
|
+
"resolved": "string",
|
|
558
|
+
"references": {}
|
|
559
|
+
},
|
|
560
|
+
"required": false,
|
|
561
|
+
"optional": false,
|
|
562
|
+
"docs": {
|
|
563
|
+
"tags": [],
|
|
564
|
+
"text": "The display text or label associated with this matrix element"
|
|
565
|
+
},
|
|
566
|
+
"attribute": "text",
|
|
567
|
+
"reflect": false
|
|
568
|
+
},
|
|
569
|
+
"type": {
|
|
570
|
+
"type": "string",
|
|
571
|
+
"mutable": false,
|
|
572
|
+
"complexType": {
|
|
573
|
+
"original": "string",
|
|
574
|
+
"resolved": "string",
|
|
575
|
+
"references": {}
|
|
576
|
+
},
|
|
577
|
+
"required": false,
|
|
578
|
+
"optional": false,
|
|
579
|
+
"docs": {
|
|
580
|
+
"tags": [],
|
|
581
|
+
"text": "Defines the matrix type (e.g., \"drop\", \"slot\", \"answer\")"
|
|
582
|
+
},
|
|
583
|
+
"attribute": "type",
|
|
584
|
+
"reflect": false
|
|
585
|
+
},
|
|
586
|
+
"value": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"mutable": false,
|
|
589
|
+
"complexType": {
|
|
590
|
+
"original": "string",
|
|
591
|
+
"resolved": "string",
|
|
592
|
+
"references": {}
|
|
593
|
+
},
|
|
594
|
+
"required": false,
|
|
595
|
+
"optional": false,
|
|
596
|
+
"docs": {
|
|
597
|
+
"tags": [],
|
|
598
|
+
"text": "The value or data associated with this matrix element"
|
|
599
|
+
},
|
|
600
|
+
"attribute": "value",
|
|
601
|
+
"reflect": false
|
|
602
|
+
},
|
|
603
|
+
"tabIndex": {
|
|
604
|
+
"type": "number",
|
|
605
|
+
"mutable": false,
|
|
606
|
+
"complexType": {
|
|
607
|
+
"original": "number",
|
|
608
|
+
"resolved": "number",
|
|
609
|
+
"references": {}
|
|
610
|
+
},
|
|
611
|
+
"required": false,
|
|
612
|
+
"optional": false,
|
|
613
|
+
"docs": {
|
|
614
|
+
"tags": [],
|
|
615
|
+
"text": "Sets the tab index for keyboard navigation"
|
|
616
|
+
},
|
|
617
|
+
"attribute": "tab-index",
|
|
618
|
+
"reflect": false
|
|
619
|
+
},
|
|
620
|
+
"x": {
|
|
621
|
+
"type": "string",
|
|
622
|
+
"mutable": false,
|
|
623
|
+
"complexType": {
|
|
624
|
+
"original": "string",
|
|
625
|
+
"resolved": "string",
|
|
626
|
+
"references": {}
|
|
627
|
+
},
|
|
628
|
+
"required": false,
|
|
629
|
+
"optional": false,
|
|
630
|
+
"docs": {
|
|
631
|
+
"tags": [],
|
|
632
|
+
"text": "The left coordinate (in pixels or percentage) for matrix positioning"
|
|
633
|
+
},
|
|
634
|
+
"attribute": "x",
|
|
635
|
+
"reflect": false
|
|
636
|
+
},
|
|
637
|
+
"y": {
|
|
638
|
+
"type": "string",
|
|
639
|
+
"mutable": false,
|
|
640
|
+
"complexType": {
|
|
641
|
+
"original": "string",
|
|
642
|
+
"resolved": "string",
|
|
643
|
+
"references": {}
|
|
644
|
+
},
|
|
645
|
+
"required": false,
|
|
646
|
+
"optional": false,
|
|
647
|
+
"docs": {
|
|
648
|
+
"tags": [],
|
|
649
|
+
"text": "The top coordinate (in pixels or percentage) for matrix positioning"
|
|
650
|
+
},
|
|
651
|
+
"attribute": "y",
|
|
652
|
+
"reflect": false
|
|
653
|
+
},
|
|
654
|
+
"fontColor": {
|
|
655
|
+
"type": "string",
|
|
656
|
+
"mutable": false,
|
|
657
|
+
"complexType": {
|
|
658
|
+
"original": "string",
|
|
659
|
+
"resolved": "string",
|
|
660
|
+
"references": {}
|
|
661
|
+
},
|
|
662
|
+
"required": false,
|
|
663
|
+
"optional": false,
|
|
664
|
+
"docs": {
|
|
665
|
+
"tags": [],
|
|
666
|
+
"text": "Font color for the slot text"
|
|
667
|
+
},
|
|
668
|
+
"attribute": "font-color",
|
|
669
|
+
"reflect": false
|
|
466
670
|
}
|
|
467
671
|
};
|
|
468
672
|
}
|
|
469
673
|
static get states() {
|
|
470
674
|
return {
|
|
675
|
+
"previousFilledSlot": {},
|
|
676
|
+
"previousFilledSlotElement": {},
|
|
471
677
|
"style": {}
|
|
472
678
|
};
|
|
473
679
|
}
|
|
@@ -66,7 +66,7 @@ export class LidoPos {
|
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: '20b34af6af7a1f061789d00ade88dc79eec595ef', id: this.id, class: "lido-pos", type: this.type, "tab-index": this.tabIndex, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, minDrops: this.minDrops, maxDrops: this.maxDrops, value: this.value, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, h("slot", { key: 'dae7759306330a01ecfb66be08debe8ec1f97d6e' })));
|
|
70
70
|
}
|
|
71
71
|
static get is() { return "lido-pos"; }
|
|
72
72
|
static get originalStyleUrls() {
|
|
@@ -78,7 +78,7 @@ export class LidoRandom {
|
|
|
78
78
|
backgroundColor: this.bgColor,
|
|
79
79
|
margin: this.margin,
|
|
80
80
|
};
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '328c7a0533a52a1be5cee0d71fc7a43338e5290f', class: "lido-random", type: this.type, "tab-index": this.tabIndex, value: this.value, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, minDrops: this.minDrops, maxDrops: this.maxDrops, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, h("slot", { key: 'c1a93405cbbd2a06a92134c4ff5853204215c317' })));
|
|
82
82
|
}
|
|
83
83
|
static get is() { return "lido-random"; }
|
|
84
84
|
static get originalStyleUrls() {
|
|
@@ -78,7 +78,7 @@ export class LidoRow {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '4c1f45afe8866df81a6a798afe348e03fa1f4292', class: "lido-row", type: this.type, "tab-index": this.tabIndex, value: this.value, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, minDrops: this.minDrops, maxDrops: this.maxDrops, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, "disable-speak": this.disableSpeak }, h("slot", { key: '194de56621025a4b1a4fdb6ccae347f34dc19fdb' })));
|
|
82
82
|
}
|
|
83
83
|
static get is() { return "lido-row"; }
|
|
84
84
|
static get originalStyleUrls() {
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
|
|
22
|
+
@media (orientation: portrait) {
|
|
23
|
+
#pivotimg {
|
|
24
|
+
position: absolute;
|
|
25
|
+
height:auto;
|
|
26
|
+
width: 23%;
|
|
27
|
+
bottom: 18%;
|
|
28
|
+
left: 38%;
|
|
29
|
+
z-index: 100;
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@media (orientation: landscape) {
|
|
36
|
+
#pivotimg {
|
|
37
|
+
position: absolute;
|
|
38
|
+
height:auto;
|
|
39
|
+
width: 23%;
|
|
40
|
+
bottom: 8%;
|
|
41
|
+
left: 38%;
|
|
42
|
+
z-index: 100;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.lido-balance .pivot svg {
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: auto;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
#scaleimg {
|
|
53
|
+
position: absolute;
|
|
54
|
+
width: 73%;
|
|
55
|
+
height: auto;
|
|
56
|
+
top: 61%;
|
|
57
|
+
left: 14%;
|
|
58
|
+
z-index: 90;
|
|
59
|
+
}
|
|
60
|
+
.lido-balance .scale svg {
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: auto;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (orientation: landscape) {
|
|
66
|
+
#handlerimg {
|
|
67
|
+
position: absolute;
|
|
68
|
+
width: 35%;
|
|
69
|
+
height: auto;
|
|
70
|
+
top:49%;
|
|
71
|
+
left: 2%;
|
|
72
|
+
}}
|
|
73
|
+
@media (orientation:portrait ) {
|
|
74
|
+
#handlerimg {
|
|
75
|
+
position: absolute;
|
|
76
|
+
width: 35%;
|
|
77
|
+
height: auto;
|
|
78
|
+
top:53%;
|
|
79
|
+
left: 2%;
|
|
80
|
+
}}
|
|
81
|
+
.lido-balance .handler svg {
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: auto;
|
|
84
|
+
fill: brown;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (orientation: landscape) {
|
|
88
|
+
#handimg {
|
|
89
|
+
position: absolute;
|
|
90
|
+
width: 35%;
|
|
91
|
+
height: auto;
|
|
92
|
+
top: 49%;
|
|
93
|
+
right: 2%;
|
|
94
|
+
}}
|
|
95
|
+
@media (orientation:portrait) {
|
|
96
|
+
#handimg {
|
|
97
|
+
position: absolute;
|
|
98
|
+
width: 35%;
|
|
99
|
+
height: auto;
|
|
100
|
+
top: 53%;
|
|
101
|
+
right: 2%;
|
|
102
|
+
}}
|
|
103
|
+
.lido-balance .hand svg {
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: auto;
|
|
106
|
+
fill: brown;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.pivot svg path:nth-of-type(1) {
|
|
110
|
+
fill: brown;
|
|
111
|
+
}
|
|
112
|
+
.pivot svg path[d^="M78.9414"] {
|
|
113
|
+
fill: white;
|
|
114
|
+
}
|