lido-player 0.0.2-alpha-52-dev → 0.0.2-alpha-55-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 +187 -59
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-ce99b0d0.js → utils-4b44610b.js} +111 -86
- package/dist/collection/components/calculator/lido-calculator.js +4 -2
- package/dist/collection/components/container/lido-container.js +24 -2
- package/dist/collection/components/home/lido-home.css +4 -0
- package/dist/collection/components/home/lido-home.js +27 -3
- package/dist/collection/components/trace/lido-trace.js +122 -47
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +26 -25
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +3 -1
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +1 -1
- package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +1 -1
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +1 -1
- package/dist/collection/stories/Templates/blender/blender.stories.js +1 -1
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +1 -1
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +1 -1
- package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +1 -1
- package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +1 -1
- package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +1 -1
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +1 -1
- package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +1 -1
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +1 -1
- package/dist/collection/stories/Templates/grid/grid.stories.js +5 -1
- package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +1 -1
- package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +4 -2
- package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +1 -1
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +1 -1
- package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +4 -2
- package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +1 -1
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +1 -1
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +1 -1
- package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +1 -1
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +1 -1
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +1 -1
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +2 -2
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +2 -2
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +1 -1
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +1 -1
- package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +1 -1
- package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +5 -1
- package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +1 -1
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +1 -1
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +1 -1
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +1 -1
- package/dist/collection/stories/Templates/reorder/reorder.stories.js +3 -1
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +2 -2
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +6 -6
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +7 -6
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +1 -1
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +25 -21
- package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +1 -1
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +8 -6
- package/dist/collection/stories/Templates/total/total.stories.js +1 -1
- package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +1 -1
- package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +2 -2
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +6 -6
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +1 -1
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +7 -6
- package/dist/collection/utils/customEvents.js +1 -0
- package/dist/collection/utils/utils.js +20 -17
- package/dist/collection/utils/utilsHandlers/animationHandler.js +58 -0
- package/dist/collection/utils/utilsHandlers/clickHandler.js +5 -1
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +19 -60
- package/dist/collection/utils/utilsHandlers/slideHandler.js +7 -6
- package/dist/collection/utils/utilsHandlers/sortHandler.js +3 -5
- 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 +1 -1
- 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 +23 -23
- 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-39a2e638.js → p-0be6b5d5.js} +2 -2
- package/dist/components/{p-11bf64aa.js → p-2c518dbe.js} +1 -1
- package/dist/components/{p-c4abfd0f.js → p-2e023f67.js} +1 -1
- package/dist/components/{p-58c67252.js → p-36c2e21a.js} +110 -87
- package/dist/components/{p-52e77394.js → p-3fc01453.js} +1 -1
- package/dist/components/{p-06171259.js → p-43d79c61.js} +1 -1
- package/dist/components/{p-00777872.js → p-5078599e.js} +26 -4
- package/dist/components/{p-26df0769.js → p-590ce2c9.js} +1 -1
- package/dist/components/{p-5b5f59a8.js → p-67a24ad4.js} +2 -2
- package/dist/components/{p-68112f8c.js → p-72d6a594.js} +1 -1
- package/dist/components/{p-3ce3744c.js → p-73b2bd74.js} +6 -4
- package/dist/components/{p-0fbeb3a1.js → p-73e3f0f4.js} +12 -6
- package/dist/components/{p-0c2aebfb.js → p-9acf0fcc.js} +1 -1
- package/dist/components/{p-a2f96840.js → p-b095de27.js} +1 -1
- package/dist/components/{p-b2125fc9.js → p-b0dbee97.js} +48 -24
- package/dist/components/{p-a516a324.js → p-b847f269.js} +123 -48
- package/dist/components/{p-9d34d59d.js → p-bc5202db.js} +2 -2
- package/dist/components/{p-cb56a853.js → p-c296051d.js} +1 -1
- package/dist/components/{p-8a34b98b.js → p-c69ef266.js} +1 -1
- package/dist/components/{p-2d53e1a5.js → p-ca8aea4b.js} +1 -1
- package/dist/components/{p-3f4d4c0a.js → p-de2193c5.js} +1 -1
- package/dist/components/{p-09f1e2d2.js → p-e534ea52.js} +1 -1
- package/dist/components/{p-8f2ed62f.js → p-f8c00485.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_22.entry.js +187 -59
- package/dist/esm/lido-player.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-107b15a7.js → utils-ae1eb036.js} +110 -87
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/{p-d1251482.js → p-a632e2ce.js} +2 -2
- package/dist/lido-player/p-f1b879f6.entry.js +1 -0
- package/dist/types/components/container/lido-container.d.ts +1 -0
- package/dist/types/components/home/lido-home.d.ts +1 -0
- package/dist/types/components/trace/lido-trace.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -1
- package/dist/types/utils/utilsHandlers/animationHandler.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lido-player/p-606ea279.entry.js +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { calculateScale, countPatternWords, buildDragSelectedMapFromDOM, executeActions, handleShowCheck, handlingElementFlexibleWidth, onActivityComplete, storingEachActivityScore } from "../utils";
|
|
2
2
|
import { updateBalanceOnDrop } from "./lidoBalanceHandler";
|
|
3
3
|
import { AudioPlayer } from "../audioPlayer";
|
|
4
|
-
import { DropLength, SelectedValuesKey, DropMode, DropToAttr, DropTimeAttr, LidoContainer, DropAction,
|
|
4
|
+
import { DropLength, SelectedValuesKey, DropMode, DropToAttr, DropTimeAttr, LidoContainer, DropAction, } from "../constants";
|
|
5
5
|
import { dispatchElementDropEvent } from "../customEvents";
|
|
6
6
|
import { removeHighlight } from "./highlightHandler";
|
|
7
|
+
import { dragDropAnimation } from "./animationHandler";
|
|
7
8
|
export function buildDropHasDragFromDOM() {
|
|
8
9
|
const dropHasDrag = {};
|
|
9
10
|
const dropElements = document.querySelectorAll("[type='drop']");
|
|
@@ -73,7 +74,7 @@ export function enableDraggingWithScaling(element) {
|
|
|
73
74
|
isDragging = false;
|
|
74
75
|
return;
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
AudioPlayer.getI().stop();
|
|
77
78
|
removeHighlight(element);
|
|
78
79
|
isDragging = true;
|
|
79
80
|
isClicked = true;
|
|
@@ -181,6 +182,7 @@ export function enableDraggingWithScaling(element) {
|
|
|
181
182
|
// Start observing the element
|
|
182
183
|
observer.observe(container, observerConfig);
|
|
183
184
|
const onMove = (event) => {
|
|
185
|
+
console.log('moved');
|
|
184
186
|
if (!isDragging)
|
|
185
187
|
return;
|
|
186
188
|
if (isDraggingDisabled) {
|
|
@@ -189,7 +191,7 @@ export function enableDraggingWithScaling(element) {
|
|
|
189
191
|
}
|
|
190
192
|
isClicked = false;
|
|
191
193
|
element.style.transition = 'none';
|
|
192
|
-
const containerScale =
|
|
194
|
+
const containerScale = calculateScale();
|
|
193
195
|
let dx = 0;
|
|
194
196
|
let dy = 0;
|
|
195
197
|
if (event instanceof MouseEvent) {
|
|
@@ -488,7 +490,6 @@ export function handleResetDragElement(dragElement, dropElement, dropHasDrag, se
|
|
|
488
490
|
});
|
|
489
491
|
handleShowCheck();
|
|
490
492
|
}
|
|
491
|
-
const tempVanishedValues = [];
|
|
492
493
|
export async function onElementDropComplete(dragElement, dropElement) {
|
|
493
494
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
494
495
|
const container = document.getElementById(LidoContainer);
|
|
@@ -515,7 +516,6 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
515
516
|
handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData, dropSelectedData);
|
|
516
517
|
return;
|
|
517
518
|
}
|
|
518
|
-
// let isCorrect = dropElement.getAttribute('value').toLowerCase().includes(dragElement.getAttribute('value').toLowerCase());
|
|
519
519
|
let isCorrect;
|
|
520
520
|
const dragValue = ((_c = dragElement.getAttribute('value')) === null || _c === void 0 ? void 0 : _c.trim()) || "";
|
|
521
521
|
const dropValue = ((_d = dropElement.getAttribute('value')) === null || _d === void 0 ? void 0 : _d.trim()) || "";
|
|
@@ -532,7 +532,8 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
else {
|
|
535
|
-
|
|
535
|
+
//strings
|
|
536
|
+
isCorrect = dropValue.toLowerCase().includes(dragValue.toLowerCase());
|
|
536
537
|
}
|
|
537
538
|
if (!isCorrect) {
|
|
538
539
|
const localStorageKey = `${LidoContainer}_dropData`;
|
|
@@ -543,6 +544,7 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
543
544
|
await executeActions(onInCorrect, dropElement, dragElement);
|
|
544
545
|
setTimeout(() => {
|
|
545
546
|
dragElement.style.transform = 'translate(0, 0)';
|
|
547
|
+
storingEachActivityScore(false);
|
|
546
548
|
// const oldDropIndex = dragToDropMap[dragElement.getAttribute('data-id')];
|
|
547
549
|
// if (oldDropIndex !== undefined && dropHasDrag[oldDropIndex]) {
|
|
548
550
|
// dropHasDrag[oldDropIndex].isFull = false;
|
|
@@ -568,61 +570,18 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
568
570
|
else {
|
|
569
571
|
const checkdropAttr = container.getAttribute('dropAttr');
|
|
570
572
|
if (checkdropAttr && checkdropAttr.toLowerCase() === DropMode.EnableAnimation.toLowerCase()) {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
var _a, _b, _c;
|
|
574
|
-
const div = document.createElement('div');
|
|
575
|
-
container.append(div);
|
|
576
|
-
div.classList.add('after-drop-popup-container');
|
|
577
|
-
dragElement.style.scale = `1`;
|
|
578
|
-
dropElement.style.scale = `1`;
|
|
579
|
-
const allDragElements = container.querySelectorAll('[type="drag"]');
|
|
580
|
-
const dragParents = Array.from(allDragElements).map(el => el.parentElement);
|
|
581
|
-
const allSameParent = dragParents.every(parent => parent === dragElement.parentElement);
|
|
582
|
-
const selectedValues = JSON.parse((_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '[]');
|
|
583
|
-
const vanishedValue = (_b = dragElement.getAttribute('value')) !== null && _b !== void 0 ? _b : (_c = dragElement.textContent) === null || _c === void 0 ? void 0 : _c.trim();
|
|
584
|
-
if (vanishedValue) {
|
|
585
|
-
tempVanishedValues.push(vanishedValue);
|
|
586
|
-
}
|
|
587
|
-
// Remove from old parents
|
|
588
|
-
if (allSameParent) {
|
|
589
|
-
dragElement.remove();
|
|
590
|
-
dropElement.remove();
|
|
591
|
-
}
|
|
592
|
-
else {
|
|
593
|
-
dragElement.parentElement.parentElement.remove();
|
|
594
|
-
dropElement.parentElement.parentElement.remove();
|
|
595
|
-
}
|
|
596
|
-
// Add animation and popup classes
|
|
597
|
-
dragElement.classList.add('zoom-fade-in', 'after-drop-popup-drag-element');
|
|
598
|
-
dropElement.classList.add('zoom-fade-in', 'after-drop-popup-drop-element');
|
|
599
|
-
div.appendChild(dragElement);
|
|
600
|
-
div.appendChild(dropElement);
|
|
601
|
-
dropElement.classList.remove('empty');
|
|
602
|
-
setTimeout(() => {
|
|
603
|
-
dragElement.classList.remove('zoom-fade-in');
|
|
604
|
-
dropElement.classList.remove('zoom-fade-in');
|
|
605
|
-
dragElement.classList.add('zoom-fade-out');
|
|
606
|
-
dropElement.classList.add('zoom-fade-out');
|
|
607
|
-
setTimeout(() => {
|
|
608
|
-
div.remove();
|
|
609
|
-
container.style.pointerEvents = 'auto';
|
|
610
|
-
const objective = container.getAttribute('objective');
|
|
611
|
-
if (objective && tempVanishedValues.map(v => v.trim()).sort().join(',') === objective.split(',').map(v => v.trim()).sort().join(',')) {
|
|
612
|
-
(async () => {
|
|
613
|
-
isCorrect = true;
|
|
614
|
-
const onCorrect = (container === null || container === void 0 ? void 0 : container.getAttribute('onCorrect')) || '';
|
|
615
|
-
await executeActions(onCorrect, container);
|
|
616
|
-
window.dispatchEvent(new CustomEvent(NextContainerKey));
|
|
617
|
-
tempVanishedValues.length = 0;
|
|
618
|
-
})();
|
|
619
|
-
}
|
|
620
|
-
}, 800); // match animation duration
|
|
621
|
-
}, 2000); // stay for 2 seconds
|
|
622
|
-
}, 250);
|
|
573
|
+
//This function coming from animationhandler.ts
|
|
574
|
+
dragDropAnimation(container, dragElement, dropElement);
|
|
623
575
|
}
|
|
624
576
|
}
|
|
625
577
|
}
|
|
578
|
+
else {
|
|
579
|
+
const checkdropAttr = container.getAttribute('dropAttr');
|
|
580
|
+
if (checkdropAttr && checkdropAttr.toLowerCase() === DropMode.EnableAnimation.toLowerCase()) {
|
|
581
|
+
//This function coming from animationhandler.ts
|
|
582
|
+
dragDropAnimation(container, dragElement, dropElement);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
626
585
|
if (dropElement) {
|
|
627
586
|
let selectedValues = JSON.parse((_e = container.getAttribute(SelectedValuesKey)) !== null && _e !== void 0 ? _e : "[]");
|
|
628
587
|
const dragValue = dragElement.getAttribute('value');
|
|
@@ -755,11 +714,11 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
755
714
|
// Add pulse and highlight effect for a successful match
|
|
756
715
|
const isCorrect = dropElement['value'].toLowerCase().includes(dragElement['value'].toLowerCase());
|
|
757
716
|
dispatchElementDropEvent(dragElement, dropElement, isCorrect);
|
|
758
|
-
storingEachActivityScore(isCorrect);
|
|
717
|
+
// storingEachActivityScore(isCorrect);
|
|
759
718
|
dragElement.style.opacity = '1';
|
|
760
|
-
await onActivityComplete(dragElement, dropElement);
|
|
761
719
|
const allDropElements = document.querySelectorAll('.drop-element');
|
|
762
720
|
allDropElements.forEach(el => updateDropBorder(el));
|
|
721
|
+
await onActivityComplete(dragElement, dropElement);
|
|
763
722
|
}
|
|
764
723
|
export function updateDropBorder(element) {
|
|
765
724
|
if (!element || !element.classList.contains('drop-element'))
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LidoContainer, SelectedValuesKey } from "../constants";
|
|
2
2
|
import { findMostoverlappedElement, getElementScale } from "./dragDropHandler";
|
|
3
3
|
import { calculateScale, handleShowCheck, matchStringPattern, storingEachActivityScore } from "../utils";
|
|
4
|
-
import { onClickDropOrDragElement } from "./dragDropHandler";
|
|
5
4
|
import { removeHighlight } from "./highlightHandler";
|
|
6
5
|
let numberOfSlides = 0;
|
|
7
6
|
const slideNumbers = (element) => {
|
|
@@ -237,9 +236,6 @@ export function slidingWithScaling(element) {
|
|
|
237
236
|
element.style.transform = 'translate(0, 0)'; // Initialize transform for consistent dragging
|
|
238
237
|
element.addEventListener('mousedown', onStart);
|
|
239
238
|
element.addEventListener('touchstart', onStart);
|
|
240
|
-
element.addEventListener('click', ev => {
|
|
241
|
-
onClickDropOrDragElement(element, 'drag');
|
|
242
|
-
});
|
|
243
239
|
}
|
|
244
240
|
const slideCompleted = (slideElement) => {
|
|
245
241
|
var _a;
|
|
@@ -255,6 +251,11 @@ const slideCompleted = (slideElement) => {
|
|
|
255
251
|
const objectiveArray = objectiveString.split(',');
|
|
256
252
|
const elementIndex = slideArr.indexOf(slideElement['value']);
|
|
257
253
|
const isCorrect = matchStringPattern(slideElement['value'], [objectiveArray[elementIndex].trim()]);
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
if (container.getAttribute('is-continue-on-correct') === 'true') {
|
|
255
|
+
storingEachActivityScore(true);
|
|
256
|
+
handleShowCheck();
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
storingEachActivityScore(isCorrect);
|
|
260
|
+
}
|
|
260
261
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LidoContainer, SelectedValuesKey, DropToAttr } from "../constants";
|
|
2
|
-
import { buildDragSelectedMapFromDOM, executeActions, handleShowCheck, matchStringPattern, onActivityComplete, storingEachActivityScore } from "../utils";
|
|
2
|
+
import { calculateScale, buildDragSelectedMapFromDOM, executeActions, handleShowCheck, matchStringPattern, onActivityComplete, storingEachActivityScore } from "../utils";
|
|
3
3
|
let preOverlap;
|
|
4
4
|
function getElementScale(element) {
|
|
5
5
|
const transform = window.getComputedStyle(element).transform;
|
|
@@ -106,7 +106,7 @@ export function enableReorderDrag(element) {
|
|
|
106
106
|
isClicked = false;
|
|
107
107
|
event.preventDefault();
|
|
108
108
|
const containerRect = container.getBoundingClientRect();
|
|
109
|
-
const containerScale =
|
|
109
|
+
const containerScale = calculateScale();
|
|
110
110
|
const newLeft = (point.clientX - containerRect.left - offsetXInElement) / containerScale;
|
|
111
111
|
const newTop = (point.clientY - containerRect.top - offsetYInElement) / containerScale;
|
|
112
112
|
element.style.left = `${newLeft}px`;
|
|
@@ -173,9 +173,7 @@ export function enableReorderDrag(element) {
|
|
|
173
173
|
else {
|
|
174
174
|
if (element.parentElement['type'] !== 'category') {
|
|
175
175
|
executeActions('this.alignMatch=true', divEl, element);
|
|
176
|
-
|
|
177
|
-
divEl.replaceWith(element);
|
|
178
|
-
}, 500);
|
|
176
|
+
divEl.replaceWith(element);
|
|
179
177
|
}
|
|
180
178
|
else {
|
|
181
179
|
const categoryElement = element.parentElement;
|
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-36c2e21a.js';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-
|
|
2
|
-
import { i as instance } from './p-
|
|
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-
|
|
1
|
+
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-36c2e21a.js';
|
|
2
|
+
import { i as instance } from './p-73e3f0f4.js';
|
|
3
|
+
import { d as defineCustomElement$m } from './p-2c518dbe.js';
|
|
4
|
+
import { d as defineCustomElement$l } from './p-590ce2c9.js';
|
|
5
|
+
import { d as defineCustomElement$k } from './p-73b2bd74.js';
|
|
6
|
+
import { d as defineCustomElement$j } from './p-67a24ad4.js';
|
|
7
|
+
import { d as defineCustomElement$i } from './p-c296051d.js';
|
|
8
|
+
import { d as defineCustomElement$h } from './p-72d6a594.js';
|
|
9
|
+
import { d as defineCustomElement$g } from './p-5078599e.js';
|
|
10
|
+
import { d as defineCustomElement$f } from './p-9acf0fcc.js';
|
|
11
|
+
import { d as defineCustomElement$e } from './p-ca8aea4b.js';
|
|
12
|
+
import { d as defineCustomElement$d } from './p-b0dbee97.js';
|
|
13
|
+
import { d as defineCustomElement$c } from './p-c69ef266.js';
|
|
14
|
+
import { d as defineCustomElement$b } from './p-bc5202db.js';
|
|
15
|
+
import { d as defineCustomElement$a } from './p-e534ea52.js';
|
|
16
|
+
import { d as defineCustomElement$9 } from './p-3fc01453.js';
|
|
17
|
+
import { d as defineCustomElement$8 } from './p-43d79c61.js';
|
|
18
|
+
import { d as defineCustomElement$7 } from './p-de2193c5.js';
|
|
19
|
+
import { d as defineCustomElement$6 } from './p-f8c00485.js';
|
|
20
|
+
import { d as defineCustomElement$5 } from './p-b095de27.js';
|
|
21
|
+
import { d as defineCustomElement$4 } from './p-0be6b5d5.js';
|
|
22
|
+
import { d as defineCustomElement$3 } from './p-b847f269.js';
|
|
23
|
+
import { d as defineCustomElement$2 } from './p-2e023f67.js';
|
|
24
24
|
|
|
25
25
|
const LidoRoot$1 = /*@__PURE__*/ proxyCustomElement(class LidoRoot extends H {
|
|
26
26
|
constructor() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement,
|
|
2
|
-
import { i as instance } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, t as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-36c2e21a.js';
|
|
2
|
+
import { i as instance } from './p-73e3f0f4.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)}}";
|
|
5
5
|
const LidoTextStyle0 = lidoTextCss;
|
|
@@ -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-36c2e21a.js';
|
|
2
2
|
|
|
3
3
|
var rive = {exports: {}};
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement,
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-36c2e21a.js';
|
|
2
2
|
|
|
3
3
|
const lidoWrapCss = ".lido-wrap{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill, minmax(186px, auto))}.lido-wrap>*{padding:10px;background-color:var(--child-bg-color, #f0f0f0);box-sizing:border-box}.lido-flex{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}";
|
|
4
4
|
const LidoWrapStyle0 = lidoWrapCss;
|