lido-player 0.0.2-alpha-51-dev → 0.0.2-alpha-52-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/lido-avatar_22.cjs.entry.js +17 -17
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-dc02d753.js → utils-ce99b0d0.js} +152 -21
- package/dist/collection/components/avatar/lido-avatar.js +1 -1
- package/dist/collection/components/canvas/lido-canvas.css +5 -8
- package/dist/collection/components/canvas/lido-canvas.js +2 -2
- package/dist/collection/components/cell/lido-cell.js +1 -1
- package/dist/collection/components/column/lido-col.js +1 -1
- package/dist/collection/components/flashCard/lido-flash-card.js +1 -1
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +14 -14
- 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/shape/lido-shape.js +1 -1
- package/dist/collection/components/trace/lido-trace.js +1 -1
- package/dist/collection/components/wrap/lido-wrap.js +1 -1
- package/dist/collection/stories/Templates/blender/blender.stories.js +100 -0
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +6 -2
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +3 -2
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +3 -1
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +3 -1
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +6 -4
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +14 -13
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +14 -13
- package/dist/collection/utils/utils.js +142 -15
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +10 -6
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-balance.js +1 -1
- package/dist/components/lido-calculator.js +1 -1
- package/dist/components/lido-canvas.js +2 -2
- 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 +22 -22
- 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-e9548986.js → p-00777872.js} +1 -1
- package/dist/components/{p-b7efadad.js → p-06171259.js} +2 -2
- package/dist/components/{p-74b90a9c.js → p-09f1e2d2.js} +8 -8
- package/dist/components/{p-4fd6b588.js → p-0c2aebfb.js} +2 -2
- package/dist/components/{p-62d2a5b3.js → p-11bf64aa.js} +2 -2
- package/dist/components/{p-6ba0f1af.js → p-26df0769.js} +1 -1
- package/dist/components/{p-12432f23.js → p-2d53e1a5.js} +1 -1
- package/dist/components/{p-bef96764.js → p-39a2e638.js} +1 -1
- package/dist/components/{p-56c8f3da.js → p-3ce3744c.js} +3 -3
- package/dist/components/{p-a8724f06.js → p-3f4d4c0a.js} +2 -2
- package/dist/components/{p-988477ad.js → p-52e77394.js} +2 -2
- package/dist/components/{p-d0131159.js → p-58c67252.js} +152 -21
- package/dist/components/{p-1c84cf65.js → p-5b5f59a8.js} +13 -7
- package/dist/components/{p-6be6c5eb.js → p-68112f8c.js} +2 -2
- package/dist/components/{p-b89371ac.js → p-8a34b98b.js} +1 -1
- package/dist/components/{p-bb907e43.js → p-8f2ed62f.js} +2 -2
- package/dist/components/{p-1f3c2783.js → p-9d34d59d.js} +2 -2
- package/dist/components/{p-04e904b5.js → p-a2f96840.js} +1 -1
- package/dist/components/{p-d7693f47.js → p-a516a324.js} +2 -2
- package/dist/components/{p-c8815e84.js → p-b2125fc9.js} +21 -21
- package/dist/components/{p-caa05d1e.js → p-c4abfd0f.js} +2 -2
- package/dist/components/{p-d3f7d561.js → p-cb56a853.js} +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_22.entry.js +17 -17
- package/dist/esm/lido-player.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-b5eb2360.js → utils-107b15a7.js} +152 -21
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-606ea279.entry.js +1 -0
- package/dist/lido-player/{p-9fd87d44.js → p-d1251482.js} +2 -2
- package/dist/types/components/canvas/lido-canvas.d.ts +1 -1
- package/dist/types/components/mathMatrix/lido-math-matrix.d.ts +0 -1
- package/dist/types/components.d.ts +0 -6
- package/dist/types/stories/Templates/blender/blender.stories.d.ts +4 -0
- package/dist/types/utils/utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/lido-player/p-e1a9c26f.entry.js +0 -1
|
@@ -299,8 +299,51 @@ export const executeActions = async (actionsString, thisElement, element) => {
|
|
|
299
299
|
}
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
|
-
case '
|
|
303
|
-
|
|
302
|
+
case 'disableType': {
|
|
303
|
+
const dragEle = document.querySelector('[type="drag"]');
|
|
304
|
+
dragEle.removeAttribute('type');
|
|
305
|
+
dragEle.style.pointerEvents = 'none';
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
case 'updateCountBlender': {
|
|
309
|
+
const allDrags = document.querySelectorAll('[type="drag"]');
|
|
310
|
+
let units = 0;
|
|
311
|
+
let tens = 0;
|
|
312
|
+
let hundreds = 0;
|
|
313
|
+
allDrags.forEach(el => {
|
|
314
|
+
const dropTo = el.getAttribute("drop-to");
|
|
315
|
+
if (dropTo === "unitsDrop")
|
|
316
|
+
units++;
|
|
317
|
+
if (dropTo === "tensDrop")
|
|
318
|
+
tens++;
|
|
319
|
+
if (dropTo === "hundredsDrop")
|
|
320
|
+
hundreds++;
|
|
321
|
+
});
|
|
322
|
+
const unitsValue = units * 1;
|
|
323
|
+
const tensValue = tens * 10;
|
|
324
|
+
const hundredsValue = hundreds * 100;
|
|
325
|
+
const totalValue = unitsValue + tensValue + hundredsValue;
|
|
326
|
+
// ✅ Update Lido Text Boxes
|
|
327
|
+
const unitsBox = document.getElementById("units");
|
|
328
|
+
const tensBox = document.getElementById("tens");
|
|
329
|
+
const hundredsBox = document.getElementById("hundreds");
|
|
330
|
+
if (unitsBox) {
|
|
331
|
+
unitsBox.setAttribute("string", unitsValue.toString());
|
|
332
|
+
}
|
|
333
|
+
if (tensBox) {
|
|
334
|
+
tensBox.setAttribute("string", tensValue.toString());
|
|
335
|
+
}
|
|
336
|
+
if (hundredsBox) {
|
|
337
|
+
hundredsBox.setAttribute("string", hundredsValue.toString());
|
|
338
|
+
}
|
|
339
|
+
console.log(`Units = ${units} → ${unitsValue}`);
|
|
340
|
+
console.log(`Tens = ${tens} → ${tensValue}`);
|
|
341
|
+
console.log(`Hundreds = ${hundreds} → ${hundredsValue}`);
|
|
342
|
+
console.log(`✅ Total Value = ${totalValue}`);
|
|
343
|
+
break;
|
|
344
|
+
}
|
|
345
|
+
case 'updateCalculatorAnswer': {
|
|
346
|
+
updateCalculatorAnswer();
|
|
304
347
|
break;
|
|
305
348
|
}
|
|
306
349
|
default: {
|
|
@@ -319,6 +362,7 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
319
362
|
const isInfinite = container.getAttribute('drop-action') === DropAction.InfiniteDrop;
|
|
320
363
|
if (isAppend || isInfinite) {
|
|
321
364
|
setTimeout(() => {
|
|
365
|
+
var _a, _b;
|
|
322
366
|
dragElement.style.transform = 'translate(0,0)';
|
|
323
367
|
dragElement.style.transition = '';
|
|
324
368
|
let dummyElement = document.createElement('div');
|
|
@@ -352,6 +396,14 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
352
396
|
dummyElement.style.margin = '0px';
|
|
353
397
|
});
|
|
354
398
|
}
|
|
399
|
+
const orientation = window.innerHeight > window.innerWidth ? 'portrait' : 'landscape';
|
|
400
|
+
const rowAttr = dropElement.getAttribute('dropAttr');
|
|
401
|
+
const dropAttr = parseProp(rowAttr, orientation); // will return stackcascade or verticalstack
|
|
402
|
+
if (((_a = (dropAttr)) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "stackcascade" || ((_b = (dropAttr)) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === "verticalstack") {
|
|
403
|
+
dropElement.append(dragElement);
|
|
404
|
+
placeElementInDropZone(dropElement, dragElement, orientation, dropAttr);
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
355
407
|
dropElement.parentElement.append(element);
|
|
356
408
|
dragElement.style.position = 'absolute';
|
|
357
409
|
dragElement.style.zIndex = '1';
|
|
@@ -364,16 +416,41 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
364
416
|
const scaledLeft = (dropCenterX - dragCenterX) / containerScale;
|
|
365
417
|
const scaledTop = (dropCenterY - dragCenterY) / containerScale;
|
|
366
418
|
dragElement.style.transform = `translate(${scaledLeft}px, ${scaledTop}px)`;
|
|
367
|
-
},
|
|
419
|
+
}, 100);
|
|
368
420
|
}
|
|
369
421
|
};
|
|
422
|
+
// function cloneElementWithComputedStyles(originalEl: HTMLElement): HTMLElement {
|
|
423
|
+
// let clone = document.createElement('div') as HTMLElement;
|
|
424
|
+
// clone.innerHTML = originalEl.outerHTML;
|
|
425
|
+
// clone = clone.firstChild as HTMLElement;
|
|
426
|
+
// clone.setAttribute('height', originalEl.style.height);
|
|
427
|
+
// clone.setAttribute('width', originalEl.style.width);
|
|
428
|
+
// clone.setAttribute('visible', 'true');
|
|
429
|
+
// return clone;
|
|
430
|
+
// }
|
|
370
431
|
function cloneElementWithComputedStyles(originalEl) {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
432
|
+
const tag = originalEl.tagName.toLowerCase();
|
|
433
|
+
if (tag === "lido-text") {
|
|
434
|
+
let clone = document.createElement('div');
|
|
435
|
+
clone.innerHTML = originalEl.outerHTML;
|
|
436
|
+
clone = clone.firstChild;
|
|
437
|
+
clone.setAttribute('height', originalEl.style.height);
|
|
438
|
+
clone.setAttribute('width', originalEl.style.width);
|
|
439
|
+
clone.setAttribute('visible', 'true');
|
|
440
|
+
return clone;
|
|
441
|
+
}
|
|
442
|
+
// ✅ For ALL other types (INCLUDING lido-image & matrix) use your simple logic
|
|
443
|
+
const clone = originalEl.cloneNode(false);
|
|
444
|
+
clone.style.width = originalEl.style.width;
|
|
445
|
+
clone.style.height = originalEl.style.height;
|
|
446
|
+
clone.style.margin = originalEl.style.margin;
|
|
447
|
+
clone.style.opacity = originalEl.style.opacity;
|
|
448
|
+
clone.style.transform = originalEl.style.transform;
|
|
449
|
+
clone.setAttribute("visible", "true");
|
|
450
|
+
clone.setAttribute("data-dummy", "true");
|
|
451
|
+
if (tag === "lido-math-matrix") {
|
|
452
|
+
clone.setAttribute('clickable', "false");
|
|
453
|
+
}
|
|
377
454
|
return clone;
|
|
378
455
|
}
|
|
379
456
|
// Function to parse actions string
|
|
@@ -1257,14 +1334,64 @@ export const SumTogetherAnimation = async (element, value) => {
|
|
|
1257
1334
|
elementAppearance(false);
|
|
1258
1335
|
}
|
|
1259
1336
|
};
|
|
1260
|
-
|
|
1337
|
+
function placeElementInDropZone(dropElement, dragElement, orientation, dropAttr) {
|
|
1338
|
+
const dropRect = dropElement.getBoundingClientRect();
|
|
1339
|
+
const dragRect = dragElement.getBoundingClientRect();
|
|
1340
|
+
const scale = typeof calculateScale === "function" ? calculateScale() : 1;
|
|
1341
|
+
if (!dropElement.dataset.dropCount)
|
|
1342
|
+
dropElement.dataset.dropCount = "0";
|
|
1343
|
+
let dropCount = parseInt(dropElement.dataset.dropCount, 10);
|
|
1344
|
+
// === READ DROP ZONE SIZE ===
|
|
1345
|
+
const dropWidth = dropRect.width;
|
|
1346
|
+
const dropHeight = dropRect.height;
|
|
1347
|
+
let targetX, targetY;
|
|
1348
|
+
// ---------------- LANDSCAPE WATERFALL ----------------
|
|
1349
|
+
if (orientation === "landscape" && dropAttr.toLowerCase() === "stackcascade") {
|
|
1350
|
+
console.log("🌄 Landscape waterfall");
|
|
1351
|
+
const shiftX = dropWidth * 0.02; // proportional (5% of width)
|
|
1352
|
+
const shiftY = dropHeight * 0.02; // proportional (5% of height)
|
|
1353
|
+
const startX = dropRect.left + dropWidth * 0.36; // 10% inside
|
|
1354
|
+
const startY = dropRect.top + dropHeight * -0.09; // slightly above
|
|
1355
|
+
targetX = startX + (dropCount * shiftX);
|
|
1356
|
+
targetY = startY + (dropCount * shiftY);
|
|
1357
|
+
}
|
|
1358
|
+
// ---------------- PORTRAIT VERTICAL ----------------
|
|
1359
|
+
else {
|
|
1360
|
+
console.log("📱 Portrait vertical stack");
|
|
1361
|
+
let startX;
|
|
1362
|
+
const stepY = dropHeight * 0.05; // 8% vertical step
|
|
1363
|
+
if (dropElement.id === "unitsDrop") {
|
|
1364
|
+
startX = dropRect.left + dropWidth * 0.4; // special spacing
|
|
1365
|
+
}
|
|
1366
|
+
else if (dropElement.id === "tensDrop") {
|
|
1367
|
+
startX = dropRect.left + dropWidth * 0.25;
|
|
1368
|
+
}
|
|
1369
|
+
else {
|
|
1370
|
+
startX = dropRect.left + dropWidth * 0.16; // normal spacing
|
|
1371
|
+
}
|
|
1372
|
+
const startY = dropRect.top - dropHeight * 0.25; // above start
|
|
1373
|
+
targetX = startX;
|
|
1374
|
+
targetY = startY + (dropCount * stepY);
|
|
1375
|
+
}
|
|
1376
|
+
// ------------ APPLY TRANSFORM SMOOTHLY --------------
|
|
1377
|
+
const dx = (targetX - dragRect.left) / scale;
|
|
1378
|
+
const dy = (targetY - dragRect.top) / scale;
|
|
1379
|
+
dragElement.style.transition = "transform .2s ease-out";
|
|
1380
|
+
dragElement.style.transform = `translate(${dx}px, ${dy}px)`;
|
|
1381
|
+
dropElement.dataset.dropCount = String(dropCount + 1);
|
|
1382
|
+
// reset size
|
|
1383
|
+
dragElement.style.width = "auto";
|
|
1384
|
+
dragElement.style.height = "auto";
|
|
1385
|
+
}
|
|
1386
|
+
export const updateCalculatorAnswer = () => {
|
|
1261
1387
|
const container = document.getElementById(LidoContainer);
|
|
1262
1388
|
if (!container)
|
|
1263
1389
|
return;
|
|
1264
|
-
const
|
|
1265
|
-
if (!
|
|
1390
|
+
const calci = document.querySelector('#lidoCalculator');
|
|
1391
|
+
if (!calci)
|
|
1266
1392
|
return;
|
|
1267
|
-
const
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1393
|
+
const answerText = container.querySelector('#answer');
|
|
1394
|
+
const value = calci.getAttribute('value');
|
|
1395
|
+
console.log("😀😀😀😀😀😀😀", value);
|
|
1396
|
+
answerText.setAttribute('string', value);
|
|
1270
1397
|
};
|
|
@@ -241,7 +241,9 @@ export function enableDraggingWithScaling(element) {
|
|
|
241
241
|
mostOverlappedElement.style.backgroundColor = 'rgba(255, 0, 0, 0.1)'; // Light red background
|
|
242
242
|
}
|
|
243
243
|
else {
|
|
244
|
-
|
|
244
|
+
if (!document.getElementById('unitsDrop') || !document.getElementById('tensDrop') || !document.getElementById('hundredsDrop')) {
|
|
245
|
+
mostOverlappedElement.style.opacity = '0.3';
|
|
246
|
+
}
|
|
245
247
|
}
|
|
246
248
|
}
|
|
247
249
|
};
|
|
@@ -296,6 +298,7 @@ export function enableDraggingWithScaling(element) {
|
|
|
296
298
|
// Check for overlaps and log the most overlapping element
|
|
297
299
|
let mostOverlappedElement = findMostoverlappedElement(element, 'drop');
|
|
298
300
|
onElementDropComplete(element, mostOverlappedElement);
|
|
301
|
+
executeActions("this.updateCountBlender='true'", container);
|
|
299
302
|
if (((_a = element.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal) {
|
|
300
303
|
if (mostOverlappedElement) {
|
|
301
304
|
if (element) {
|
|
@@ -497,10 +500,10 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
497
500
|
let dropHasDrag = buildDropHasDragFromDOM();
|
|
498
501
|
if (!dropElement) {
|
|
499
502
|
handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData, dropSelectedData);
|
|
500
|
-
return;
|
|
501
503
|
}
|
|
502
504
|
const dropTabIndex = dropElement.getAttribute('tab-index');
|
|
503
|
-
|
|
505
|
+
const isAllowOnlyOneDrop = dropElement.getAttribute('is-allow-only-one-drop') === 'false';
|
|
506
|
+
if (((_b = dropHasDrag[dropTabIndex]) === null || _b === void 0 ? void 0 : _b.isFull) && !isAllowOnlyOneDrop) {
|
|
504
507
|
handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData, dropSelectedData);
|
|
505
508
|
return;
|
|
506
509
|
}
|
|
@@ -637,7 +640,8 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
637
640
|
}
|
|
638
641
|
if (!(((_f = dropElement.getAttribute('dropAttr')) === null || _f === void 0 ? void 0 : _f.toLowerCase()) === DropMode.Diagonal) && (dropElement.getAttribute('minDrops') === '1' || !dropElement.getAttribute('minDrops'))) {
|
|
639
642
|
const isisFull = Object.values(dropHasDrag).find(item => document.getElementById(item.drop) === dropElement);
|
|
640
|
-
|
|
643
|
+
const isAllowOnlyOneDrop = dropElement.getAttribute('is-allow-only-one-drop') === 'true';
|
|
644
|
+
if (isAllowOnlyOneDrop && isisFull) {
|
|
641
645
|
isisFull.isFull = true;
|
|
642
646
|
dropElement.setAttribute('is-full', 'true');
|
|
643
647
|
}
|
|
@@ -672,8 +676,8 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
672
676
|
// Check for overlaps and highlight only the most overlapping element
|
|
673
677
|
if (dropElement && !((_g = dropHasDrag[dropTabIndex]) === null || _g === void 0 ? void 0 : _g.isFull)) {
|
|
674
678
|
let mostOverlappedElement = findMostoverlappedElement(dragElement, 'drag');
|
|
675
|
-
const isAllowOnlyOneDrop = dropElement.getAttribute('is-allow-only-one-drop') === 'true'
|
|
676
|
-
if (
|
|
679
|
+
const isAllowOnlyOneDrop = dropElement.getAttribute('is-allow-only-one-drop') === 'true';
|
|
680
|
+
if (isAllowOnlyOneDrop && mostOverlappedElement) {
|
|
677
681
|
dragElement.style.transform = 'translate(0,0)';
|
|
678
682
|
dragElement.style.transition = 'transform 0.5s ease';
|
|
679
683
|
const allElements = document.querySelectorAll("[type='drop']");
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { f as format, g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-
|
|
1
|
+
export { f as format, g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-58c67252.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as LidoCanvas$1, d as defineCustomElement$1 } from './p-5b5f59a8.js';
|
|
2
2
|
|
|
3
|
-
const LidoCanvas =
|
|
3
|
+
const LidoCanvas = LidoCanvas$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
5
5
|
|
|
6
6
|
export { LidoCanvas, defineCustomElement };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-58c67252.js';
|
|
2
2
|
import { i as instance } from './p-0fbeb3a1.js';
|
|
3
|
-
import { d as defineCustomElement$m } from './p-
|
|
4
|
-
import { d as defineCustomElement$l } from './p-
|
|
5
|
-
import { d as defineCustomElement$k } from './p-
|
|
6
|
-
import { d as defineCustomElement$j } from './p-
|
|
7
|
-
import { d as defineCustomElement$i } from './p-
|
|
8
|
-
import { d as defineCustomElement$h } from './p-
|
|
9
|
-
import { d as defineCustomElement$g } from './p-
|
|
10
|
-
import { d as defineCustomElement$f } from './p-
|
|
11
|
-
import { d as defineCustomElement$e } from './p-
|
|
12
|
-
import { d as defineCustomElement$d } from './p-
|
|
13
|
-
import { d as defineCustomElement$c } from './p-
|
|
14
|
-
import { d as defineCustomElement$b } from './p-
|
|
15
|
-
import { d as defineCustomElement$a } from './p-
|
|
16
|
-
import { d as defineCustomElement$9 } from './p-
|
|
17
|
-
import { d as defineCustomElement$8 } from './p-
|
|
18
|
-
import { d as defineCustomElement$7 } from './p-
|
|
19
|
-
import { d as defineCustomElement$6 } from './p-
|
|
20
|
-
import { d as defineCustomElement$5 } from './p-
|
|
21
|
-
import { d as defineCustomElement$4 } from './p-
|
|
22
|
-
import { d as defineCustomElement$3 } from './p-
|
|
23
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
+
import { d as defineCustomElement$m } from './p-11bf64aa.js';
|
|
4
|
+
import { d as defineCustomElement$l } from './p-26df0769.js';
|
|
5
|
+
import { d as defineCustomElement$k } from './p-3ce3744c.js';
|
|
6
|
+
import { d as defineCustomElement$j } from './p-5b5f59a8.js';
|
|
7
|
+
import { d as defineCustomElement$i } from './p-cb56a853.js';
|
|
8
|
+
import { d as defineCustomElement$h } from './p-68112f8c.js';
|
|
9
|
+
import { d as defineCustomElement$g } from './p-00777872.js';
|
|
10
|
+
import { d as defineCustomElement$f } from './p-0c2aebfb.js';
|
|
11
|
+
import { d as defineCustomElement$e } from './p-2d53e1a5.js';
|
|
12
|
+
import { d as defineCustomElement$d } from './p-b2125fc9.js';
|
|
13
|
+
import { d as defineCustomElement$c } from './p-8a34b98b.js';
|
|
14
|
+
import { d as defineCustomElement$b } from './p-9d34d59d.js';
|
|
15
|
+
import { d as defineCustomElement$a } from './p-09f1e2d2.js';
|
|
16
|
+
import { d as defineCustomElement$9 } from './p-52e77394.js';
|
|
17
|
+
import { d as defineCustomElement$8 } from './p-06171259.js';
|
|
18
|
+
import { d as defineCustomElement$7 } from './p-3f4d4c0a.js';
|
|
19
|
+
import { d as defineCustomElement$6 } from './p-8f2ed62f.js';
|
|
20
|
+
import { d as defineCustomElement$5 } from './p-a2f96840.js';
|
|
21
|
+
import { d as defineCustomElement$4 } from './p-39a2e638.js';
|
|
22
|
+
import { d as defineCustomElement$3 } from './p-a516a324.js';
|
|
23
|
+
import { d as defineCustomElement$2 } from './p-c4abfd0f.js';
|
|
24
24
|
|
|
25
25
|
const LidoRoot$1 = /*@__PURE__*/ proxyCustomElement(class LidoRoot extends H {
|
|
26
26
|
constructor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, t as calculateScale, e as convertUrlToRelative, i as initEventsForElement, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, t as calculateScale, e as convertUrlToRelative, i as initEventsForElement, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
import { i as instance } from './p-0fbeb3a1.js';
|
|
3
3
|
|
|
4
4
|
const lidoContainerCss = ".lido-container{position:relative;height:100%;width:100%;background-color:var(--bgColor, transparent);display:flex;flex-direction:column;justify-content:center;align-items:center}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, r as attachSpeakIcon, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, r as attachSpeakIcon, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
const lidoRandomCss = ".lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}";
|
|
4
4
|
const LidoRandomStyle0 = lidoRandomCss;
|
|
@@ -76,7 +76,7 @@ const LidoRandom = /*@__PURE__*/ proxyCustomElement(class LidoRandom extends H {
|
|
|
76
76
|
backgroundColor: this.bgColor,
|
|
77
77
|
margin: this.margin,
|
|
78
78
|
};
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: 'cc8bb9d31ff6c36201d266f5579288c92c05bf82', 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: 'd91a2403fa78320cbae40456dc0c86b44493bb5a' })));
|
|
80
80
|
}
|
|
81
81
|
get el() { return this; }
|
|
82
82
|
static get style() { return LidoRandomStyle0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, e as convertUrlToRelative, k as parseProp, T as validateObjectiveStatus, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, e as convertUrlToRelative, k as parseProp, T as validateObjectiveStatus, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
const lidoMathMatrixCss = ".math-matrix{width:100%;height:100%;display:flex;justify-content:center}.slot{width:100%;height:100%;text-align:center;align-content:center;font-size:42px;font-weight:800;font-family:'Baloo Bhai 2';box-sizing:content-box}.slot:hover{opacity:0.7}.slot-parent{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.slot-active{background-color:var(--active-bg-color);background-image:var(--bg-image);background-size:contain;background-position:center;background-repeat:no-repeat}.slot-inactive{background-color:var(--deactive-bg-color);background-size:cover;background-position:center;background-repeat:no-repeat}.topIndex,.leftIndex,.bottomIndex{height:100%;width:100%;text-align:center;align-content:center;font-size:30px;font-weight:600;font-family:'Baloo Bhai 2'}";
|
|
4
4
|
const LidoMathMatrixStyle0 = lidoMathMatrixCss;
|
|
@@ -190,7 +190,7 @@ const LidoMathMatrix = /*@__PURE__*/ proxyCustomElement(class LidoMathMatrix ext
|
|
|
190
190
|
render() {
|
|
191
191
|
let slotNumber = 1;
|
|
192
192
|
const slotData = this.getSlotData();
|
|
193
|
-
return (h(Host, { key: '
|
|
193
|
+
return (h(Host, { key: '8232965fc3fb0b298233d21d7f50412508dc2256', class: "math-matrix", style: {
|
|
194
194
|
height: this.style.height,
|
|
195
195
|
width: this.style.width,
|
|
196
196
|
z: this.style.z,
|
|
@@ -211,18 +211,18 @@ const LidoMathMatrix = /*@__PURE__*/ proxyCustomElement(class LidoMathMatrix ext
|
|
|
211
211
|
}, [0, "lido-math-matrix", {
|
|
212
212
|
"rows": [1],
|
|
213
213
|
"cols": [1],
|
|
214
|
-
"defualtFill": [
|
|
214
|
+
"defualtFill": [1538, "defualt-fill"],
|
|
215
215
|
"leftIndex": [4, "left-index"],
|
|
216
216
|
"topIndex": [4, "top-index"],
|
|
217
217
|
"bottomIndex": [4, "bottom-index"],
|
|
218
218
|
"clickable": [4],
|
|
219
219
|
"activeOnlyVisible": [4, "active-only-visible"],
|
|
220
220
|
"matrixImage": [1, "matrix-image"],
|
|
221
|
-
"activeBgColor": [
|
|
222
|
-
"deactiveBgColor": [
|
|
223
|
-
"border": [
|
|
224
|
-
"height": [
|
|
225
|
-
"width": [
|
|
221
|
+
"activeBgColor": [1537, "active-bg-color"],
|
|
222
|
+
"deactiveBgColor": [1537, "deactive-bg-color"],
|
|
223
|
+
"border": [1537],
|
|
224
|
+
"height": [1537],
|
|
225
|
+
"width": [1537],
|
|
226
226
|
"borderRadius": [1, "border-radius"],
|
|
227
227
|
"z": [1],
|
|
228
228
|
"margin": [1],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, k as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, k as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
const lidoFlashCardCss = ".card{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform 0.6s ease;cursor:pointer}.card.flipped{transform:rotateY(180deg)}.card-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;display:flex;align-items:center;justify-content:center}.card-back{transform:rotateY(180deg)}";
|
|
4
4
|
const LidoFlashCardStyle0 = lidoFlashCardCss;
|
|
@@ -76,7 +76,7 @@ const LidoFlash = /*@__PURE__*/ proxyCustomElement(class LidoFlash extends H {
|
|
|
76
76
|
}
|
|
77
77
|
/* ---------- Render ---------- */
|
|
78
78
|
render() {
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: 'b8f000d4e9d04d9954f81dc7e05b109dc16cb223', value: this.value, "tab-index": this.tabIndex, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, type: this.type, onClick: this.handleFlip, "disable-speak": this.disableSpeak }, h("div", { key: 'cea63b67d1b6a925ab0520eaa7c5166288bcd71e', class: `card ${this.flipped ? 'flipped' : ''}` }, h("div", { key: '3517e09bb91ac4c6fb2c066539f2d4f51436938f', class: "card-face card-front" }, this.front != null ? this.front : h("slot", { name: "front" })), h("div", { key: '5a14a4ab70898852046f1128c99e5a285c1c37f7', class: "card-face card-back" }, this.back != null ? this.back : h("slot", { name: "back" })))));
|
|
80
80
|
}
|
|
81
81
|
get el() { return this; }
|
|
82
82
|
static get watchers() { return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, p as proxyCustomElement, H, g as getAssetPath, d as setVisibilityWithDelay, i as initEventsForElement, e as convertUrlToRelative, h, j as Host, R as RiveService } from './p-
|
|
1
|
+
import { c as commonjsGlobal, p as proxyCustomElement, H, g as getAssetPath, d as setVisibilityWithDelay, i as initEventsForElement, e as convertUrlToRelative, h, j as Host, R as RiveService } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
var rive = {exports: {}};
|
|
4
4
|
|
|
@@ -6586,7 +6586,7 @@ const LidoAvatar = /*@__PURE__*/ proxyCustomElement(class LidoAvatar extends H {
|
|
|
6586
6586
|
display: this.visible ? 'flex' : 'none',
|
|
6587
6587
|
zIndex: this.z,
|
|
6588
6588
|
};
|
|
6589
|
-
return (h(Host, { key: '
|
|
6589
|
+
return (h(Host, { key: '8a31ce98213ff51bf7cfc776690b6770bbeae604', id: this.id, 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, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, h("canvas", { key: '922568310a3be177e3185f86c54df95d16a0e42b', class: "lido-canvas" })));
|
|
6590
6590
|
}
|
|
6591
6591
|
get el() { return this; }
|
|
6592
6592
|
static get style() { return LidoAvatarStyle0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
const lidoBalanceCss = "#lido-balance{position:relative;height:500px;width:1205px;top:20%;left:-91px;z-index:0}.lido-balance-symbol{position:absolute;top:64%;left:50%;transform:translate(-50%, -50%);font-size:5vw;font-weight:bold;color:black;pointer-events:none;z-index:999}@media (orientation: portrait){.lido-balance-shadow{height:100px;position:absolute;top:80%;left:28%}}@media (orientation: landscape){.lido-balance-shadow{height:100px;position:absolute;top:90%;left:33%}}@media (orientation: portrait){#pivotimg{position:absolute;height:auto;width:23%;bottom:18%;left:38%;z-index:100}}#pivotimg::after{content:\"\";position:absolute;bottom:-30px;left:50%;transform:translateX(-50%);width:120%;height:60px;background-image:url(\"https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Shadow.svg\");background-size:contain;background-repeat:no-repeat;background-position:center;pointer-events:none;z-index:10}@media (orientation: landscape){#pivotimg{position:absolute;height:auto;width:23%;bottom:8%;left:38%;z-index:100}}.lido-balance .pivot svg{width:100%;height:auto}#scaleimg{position:absolute;width:73%;height:auto;top:61%;left:14%;z-index:90}.lido-balance .scale svg{width:100%;height:auto}@media (orientation: landscape){#handlerimg{position:absolute;width:35%;height:auto;top:49%;left:2%}}@media (orientation:portrait ){#handlerimg{position:absolute;width:35%;height:auto;top:53%;left:2%}}.lido-balance .handler svg{width:100%;height:auto;fill:brown}@media (orientation: landscape){#handimg{position:absolute;width:35%;height:auto;top:49%;right:2%}}@media (orientation:portrait){#handimg{position:absolute;width:35%;height:auto;top:53%;right:2%}}.lido-balance .hand svg{width:100%;height:auto;fill:brown}.pivot svg path:nth-of-type(1){fill:brown}.pivot svg path[d^=\"M78.9414\"]{fill:white}";
|
|
4
4
|
const LidoBalanceStyle0 = lidoBalanceCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, u as handleFloatElementPosition, v as handleElementClick, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, u as handleFloatElementPosition, v as handleElementClick, k as parseProp, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
const lidoFloatCss = ".lido-float{position:relative}.lido-float>*{position:absolute;cursor:pointer}@keyframes float-up{from{top:var(--el-top)}to{top:-500px}}#removeShadow{box-shadow:unset !important}@keyframes float-lr{from{right:var(--el-left)}to{right:-500px}}";
|
|
4
4
|
const LidoFloatStyle0 = lidoFloatCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, r as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, r as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
import { i as instance } from './p-0fbeb3a1.js';
|
|
3
3
|
|
|
4
4
|
const lidoTextCss = ".lido-text{transition:background-color 0.3s ease;user-select:none;align-items:center;justify-content:center;text-align:center;border-radius:24px;color:#333;cursor:pointer;font-family:'Baloo Bhai 2', serif}.text-letters{transition:color 0.3s, text-shadow 0.3s;display:inline-block;padding:0 2px}.text-letters.letter-highlight{color:#8e24aa;background:none;border-radius:0;text-shadow:0 2px 8px #8e24aa88;animation:text-letter-bounce 0.4s}.text-words{transition:color 0.3s, text-shadow 0.3s;display:inline-block;padding:0 2px}.text-words.word-highlight{color:#8e24aa;background:none;border-radius:0;text-shadow:0 2px 8px #8e24aa88;animation:text-word-bounce 0.4s}@keyframes text-letter-bounce{0%{transform:scale(1)}60%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes text-word-bounce{0%{transform:scale(1)}60%{transform:scale(1.3)}100%{transform:scale(1)}}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, l as createEvent, m as equationCheck, n as storingEachActivityScore, o as executeActions, N as NextContainerKey, h, j as Host } from './p-
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, l as createEvent, m as equationCheck, n as storingEachActivityScore, o as executeActions, N as NextContainerKey, h, j as Host } from './p-58c67252.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-cb56a853.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './p-39a2e638.js';
|
|
4
4
|
|
|
5
5
|
const lidoCalculatorCss = "#lidoCalculator{border-radius:19px;border:5px solid #029A9A;position:relative;display:flex;flex-direction:column;padding:2%;box-sizing:border-box}.lido-calculator-btn-special{background-color:#014D4D !important;--btn-shadow-color:#0a2f2f !important}.lido-calculator-btn-default{background-color:#029A9A !important;color:#000;--btn-shadow-color:#0f4242 !important}#lido-calculator-penIcon{--btn-bg-color:#FB7038 !important;--btn-shadow-px:0 8px 0 !important;--btn-shadow-color:#D74B12 !important;border-radius:5px !important}.lido-calculator-displayParent{width:89%;height:107px;background-color:rgb(68, 186, 186);border-radius:5px;margin:14px auto 17px auto;overflow:hidden;display:flex;align-items:end}.lido-calculator-display{width:97%;height:94px;background:#029A9A;color:#fff;text-align:right;display:flex;justify-content:flex-end;align-items:center;font-size:72px;font-weight:700;font-family:'Baloo Bhai 2', serif;border-radius:5px 0px 0px 5px;box-sizing:border-box;margin:0 0px -6px auto}.lido-calculator-buttons{flex:1;display:grid;grid-template-columns:repeat(3, 1fr);grid-auto-rows:1fr;gap:0%;width:100%;justify-items:center;align-items:center;position:relative;top:-1%}.lido-calculator-buttons lido-text{display:flex !important;justify-content:center;align-items:center;width:96px !important;height:80px !important;font-size:72px !important;font-weight:700 !important;color:#fff;border-radius:5px !important;cursor:pointer;text-align:center;line-height:1;box-sizing:border-box;transition:transform 0.1s}.lido-calculator-buttons lido-text:active{transform:scale(0.95)}";
|
|
6
6
|
const LidoCalculatorStyle0 = lidoCalculatorCss;
|