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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
const lidoRowCss = ".lido-row{display:flex;justify-content:space-around;align-items:center;}.lido-row>*{}";
|
|
4
4
|
const LidoRowStyle0 = lidoRowCss;
|
|
@@ -77,7 +77,7 @@ const LidoRow = /*@__PURE__*/ proxyCustomElement(class LidoRow extends H {
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '2d2f701dda922276d2485e91f15c8912c90d7b8d', 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: 'b00002ecc9d5de422094beffc33ae5137b958fa3' })));
|
|
81
81
|
}
|
|
82
82
|
get el() { return this; }
|
|
83
83
|
static get style() { return LidoRowStyle0; }
|
|
@@ -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 lidoPosCss = ".lido-pos{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);display:flex;justify-content:space-around;flex-direction:column;position:fixed}.lido-pos>*{position:absolute}";
|
|
4
4
|
const LidoPosStyle0 = lidoPosCss;
|
|
@@ -64,7 +64,7 @@ const LidoPos = /*@__PURE__*/ proxyCustomElement(class LidoPos extends H {
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '0eea8147ee3845668e83bed01164dce740aae785', 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: 'ca9378dc185eeb4d495ab3045d6b17424de908dc' })));
|
|
68
68
|
}
|
|
69
69
|
get el() { return this; }
|
|
70
70
|
static get style() { return LidoPosStyle0; }
|
|
@@ -1895,7 +1895,9 @@ function enableDraggingWithScaling(element) {
|
|
|
1895
1895
|
mostOverlappedElement.style.backgroundColor = 'rgba(255, 0, 0, 0.1)'; // Light red background
|
|
1896
1896
|
}
|
|
1897
1897
|
else {
|
|
1898
|
-
|
|
1898
|
+
if (!document.getElementById('unitsDrop') || !document.getElementById('tensDrop') || !document.getElementById('hundredsDrop')) {
|
|
1899
|
+
mostOverlappedElement.style.opacity = '0.3';
|
|
1900
|
+
}
|
|
1899
1901
|
}
|
|
1900
1902
|
}
|
|
1901
1903
|
};
|
|
@@ -1950,6 +1952,7 @@ function enableDraggingWithScaling(element) {
|
|
|
1950
1952
|
// Check for overlaps and log the most overlapping element
|
|
1951
1953
|
let mostOverlappedElement = findMostoverlappedElement$1(element, 'drop');
|
|
1952
1954
|
onElementDropComplete(element, mostOverlappedElement);
|
|
1955
|
+
executeActions("this.updateCountBlender='true'", container);
|
|
1953
1956
|
if (((_a = element.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal) {
|
|
1954
1957
|
if (mostOverlappedElement) {
|
|
1955
1958
|
if (element) {
|
|
@@ -2151,10 +2154,10 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
2151
2154
|
let dropHasDrag = buildDropHasDragFromDOM();
|
|
2152
2155
|
if (!dropElement) {
|
|
2153
2156
|
handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData);
|
|
2154
|
-
return;
|
|
2155
2157
|
}
|
|
2156
2158
|
const dropTabIndex = dropElement.getAttribute('tab-index');
|
|
2157
|
-
|
|
2159
|
+
const isAllowOnlyOneDrop = dropElement.getAttribute('is-allow-only-one-drop') === 'false';
|
|
2160
|
+
if (((_b = dropHasDrag[dropTabIndex]) === null || _b === void 0 ? void 0 : _b.isFull) && !isAllowOnlyOneDrop) {
|
|
2158
2161
|
handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData);
|
|
2159
2162
|
return;
|
|
2160
2163
|
}
|
|
@@ -2290,7 +2293,8 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
2290
2293
|
}
|
|
2291
2294
|
if (!(((_f = dropElement.getAttribute('dropAttr')) === null || _f === void 0 ? void 0 : _f.toLowerCase()) === DropMode.Diagonal) && (dropElement.getAttribute('minDrops') === '1' || !dropElement.getAttribute('minDrops'))) {
|
|
2292
2295
|
const isisFull = Object.values(dropHasDrag).find(item => document.getElementById(item.drop) === dropElement);
|
|
2293
|
-
|
|
2296
|
+
const isAllowOnlyOneDrop = dropElement.getAttribute('is-allow-only-one-drop') === 'true';
|
|
2297
|
+
if (isAllowOnlyOneDrop && isisFull) {
|
|
2294
2298
|
isisFull.isFull = true;
|
|
2295
2299
|
dropElement.setAttribute('is-full', 'true');
|
|
2296
2300
|
}
|
|
@@ -2325,8 +2329,8 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
2325
2329
|
// Check for overlaps and highlight only the most overlapping element
|
|
2326
2330
|
if (dropElement && !((_g = dropHasDrag[dropTabIndex]) === null || _g === void 0 ? void 0 : _g.isFull)) {
|
|
2327
2331
|
let mostOverlappedElement = findMostoverlappedElement$1(dragElement, 'drag');
|
|
2328
|
-
const isAllowOnlyOneDrop = dropElement.getAttribute('is-allow-only-one-drop') === 'true'
|
|
2329
|
-
if (
|
|
2332
|
+
const isAllowOnlyOneDrop = dropElement.getAttribute('is-allow-only-one-drop') === 'true';
|
|
2333
|
+
if (isAllowOnlyOneDrop && mostOverlappedElement) {
|
|
2330
2334
|
dragElement.style.transform = 'translate(0,0)';
|
|
2331
2335
|
dragElement.style.transition = 'transform 0.5s ease';
|
|
2332
2336
|
const allElements = document.querySelectorAll("[type='drop']");
|
|
@@ -70213,8 +70217,51 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
70213
70217
|
}
|
|
70214
70218
|
break;
|
|
70215
70219
|
}
|
|
70216
|
-
case '
|
|
70217
|
-
|
|
70220
|
+
case 'disableType': {
|
|
70221
|
+
const dragEle = document.querySelector('[type="drag"]');
|
|
70222
|
+
dragEle.removeAttribute('type');
|
|
70223
|
+
dragEle.style.pointerEvents = 'none';
|
|
70224
|
+
break;
|
|
70225
|
+
}
|
|
70226
|
+
case 'updateCountBlender': {
|
|
70227
|
+
const allDrags = document.querySelectorAll('[type="drag"]');
|
|
70228
|
+
let units = 0;
|
|
70229
|
+
let tens = 0;
|
|
70230
|
+
let hundreds = 0;
|
|
70231
|
+
allDrags.forEach(el => {
|
|
70232
|
+
const dropTo = el.getAttribute("drop-to");
|
|
70233
|
+
if (dropTo === "unitsDrop")
|
|
70234
|
+
units++;
|
|
70235
|
+
if (dropTo === "tensDrop")
|
|
70236
|
+
tens++;
|
|
70237
|
+
if (dropTo === "hundredsDrop")
|
|
70238
|
+
hundreds++;
|
|
70239
|
+
});
|
|
70240
|
+
const unitsValue = units * 1;
|
|
70241
|
+
const tensValue = tens * 10;
|
|
70242
|
+
const hundredsValue = hundreds * 100;
|
|
70243
|
+
const totalValue = unitsValue + tensValue + hundredsValue;
|
|
70244
|
+
// ✅ Update Lido Text Boxes
|
|
70245
|
+
const unitsBox = document.getElementById("units");
|
|
70246
|
+
const tensBox = document.getElementById("tens");
|
|
70247
|
+
const hundredsBox = document.getElementById("hundreds");
|
|
70248
|
+
if (unitsBox) {
|
|
70249
|
+
unitsBox.setAttribute("string", unitsValue.toString());
|
|
70250
|
+
}
|
|
70251
|
+
if (tensBox) {
|
|
70252
|
+
tensBox.setAttribute("string", tensValue.toString());
|
|
70253
|
+
}
|
|
70254
|
+
if (hundredsBox) {
|
|
70255
|
+
hundredsBox.setAttribute("string", hundredsValue.toString());
|
|
70256
|
+
}
|
|
70257
|
+
console.log(`Units = ${units} → ${unitsValue}`);
|
|
70258
|
+
console.log(`Tens = ${tens} → ${tensValue}`);
|
|
70259
|
+
console.log(`Hundreds = ${hundreds} → ${hundredsValue}`);
|
|
70260
|
+
console.log(`✅ Total Value = ${totalValue}`);
|
|
70261
|
+
break;
|
|
70262
|
+
}
|
|
70263
|
+
case 'updateCalculatorAnswer': {
|
|
70264
|
+
updateCalculatorAnswer();
|
|
70218
70265
|
break;
|
|
70219
70266
|
}
|
|
70220
70267
|
default: {
|
|
@@ -70233,6 +70280,7 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
70233
70280
|
const isInfinite = container.getAttribute('drop-action') === DropAction.InfiniteDrop;
|
|
70234
70281
|
if (isAppend || isInfinite) {
|
|
70235
70282
|
setTimeout(() => {
|
|
70283
|
+
var _a, _b;
|
|
70236
70284
|
dragElement.style.transform = 'translate(0,0)';
|
|
70237
70285
|
dragElement.style.transition = '';
|
|
70238
70286
|
let dummyElement = document.createElement('div');
|
|
@@ -70266,6 +70314,14 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
70266
70314
|
dummyElement.style.margin = '0px';
|
|
70267
70315
|
});
|
|
70268
70316
|
}
|
|
70317
|
+
const orientation = window.innerHeight > window.innerWidth ? 'portrait' : 'landscape';
|
|
70318
|
+
const rowAttr = dropElement.getAttribute('dropAttr');
|
|
70319
|
+
const dropAttr = parseProp(rowAttr, orientation); // will return stackcascade or verticalstack
|
|
70320
|
+
if (((_a = (dropAttr)) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "stackcascade" || ((_b = (dropAttr)) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === "verticalstack") {
|
|
70321
|
+
dropElement.append(dragElement);
|
|
70322
|
+
placeElementInDropZone(dropElement, dragElement, orientation, dropAttr);
|
|
70323
|
+
return;
|
|
70324
|
+
}
|
|
70269
70325
|
dropElement.parentElement.append(element);
|
|
70270
70326
|
dragElement.style.position = 'absolute';
|
|
70271
70327
|
dragElement.style.zIndex = '1';
|
|
@@ -70278,16 +70334,41 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
70278
70334
|
const scaledLeft = (dropCenterX - dragCenterX) / containerScale;
|
|
70279
70335
|
const scaledTop = (dropCenterY - dragCenterY) / containerScale;
|
|
70280
70336
|
dragElement.style.transform = `translate(${scaledLeft}px, ${scaledTop}px)`;
|
|
70281
|
-
},
|
|
70337
|
+
}, 100);
|
|
70282
70338
|
}
|
|
70283
70339
|
};
|
|
70340
|
+
// function cloneElementWithComputedStyles(originalEl: HTMLElement): HTMLElement {
|
|
70341
|
+
// let clone = document.createElement('div') as HTMLElement;
|
|
70342
|
+
// clone.innerHTML = originalEl.outerHTML;
|
|
70343
|
+
// clone = clone.firstChild as HTMLElement;
|
|
70344
|
+
// clone.setAttribute('height', originalEl.style.height);
|
|
70345
|
+
// clone.setAttribute('width', originalEl.style.width);
|
|
70346
|
+
// clone.setAttribute('visible', 'true');
|
|
70347
|
+
// return clone;
|
|
70348
|
+
// }
|
|
70284
70349
|
function cloneElementWithComputedStyles(originalEl) {
|
|
70285
|
-
|
|
70286
|
-
|
|
70287
|
-
|
|
70288
|
-
|
|
70289
|
-
|
|
70290
|
-
|
|
70350
|
+
const tag = originalEl.tagName.toLowerCase();
|
|
70351
|
+
if (tag === "lido-text") {
|
|
70352
|
+
let clone = document.createElement('div');
|
|
70353
|
+
clone.innerHTML = originalEl.outerHTML;
|
|
70354
|
+
clone = clone.firstChild;
|
|
70355
|
+
clone.setAttribute('height', originalEl.style.height);
|
|
70356
|
+
clone.setAttribute('width', originalEl.style.width);
|
|
70357
|
+
clone.setAttribute('visible', 'true');
|
|
70358
|
+
return clone;
|
|
70359
|
+
}
|
|
70360
|
+
// ✅ For ALL other types (INCLUDING lido-image & matrix) use your simple logic
|
|
70361
|
+
const clone = originalEl.cloneNode(false);
|
|
70362
|
+
clone.style.width = originalEl.style.width;
|
|
70363
|
+
clone.style.height = originalEl.style.height;
|
|
70364
|
+
clone.style.margin = originalEl.style.margin;
|
|
70365
|
+
clone.style.opacity = originalEl.style.opacity;
|
|
70366
|
+
clone.style.transform = originalEl.style.transform;
|
|
70367
|
+
clone.setAttribute("visible", "true");
|
|
70368
|
+
clone.setAttribute("data-dummy", "true");
|
|
70369
|
+
if (tag === "lido-math-matrix") {
|
|
70370
|
+
clone.setAttribute('clickable', "false");
|
|
70371
|
+
}
|
|
70291
70372
|
return clone;
|
|
70292
70373
|
}
|
|
70293
70374
|
// Function to parse actions string
|
|
@@ -71170,16 +71251,66 @@ const SumTogetherAnimation = async (element, value) => {
|
|
|
71170
71251
|
elementAppearance(false);
|
|
71171
71252
|
}
|
|
71172
71253
|
};
|
|
71173
|
-
|
|
71254
|
+
function placeElementInDropZone(dropElement, dragElement, orientation, dropAttr) {
|
|
71255
|
+
const dropRect = dropElement.getBoundingClientRect();
|
|
71256
|
+
const dragRect = dragElement.getBoundingClientRect();
|
|
71257
|
+
const scale = typeof calculateScale === "function" ? calculateScale() : 1;
|
|
71258
|
+
if (!dropElement.dataset.dropCount)
|
|
71259
|
+
dropElement.dataset.dropCount = "0";
|
|
71260
|
+
let dropCount = parseInt(dropElement.dataset.dropCount, 10);
|
|
71261
|
+
// === READ DROP ZONE SIZE ===
|
|
71262
|
+
const dropWidth = dropRect.width;
|
|
71263
|
+
const dropHeight = dropRect.height;
|
|
71264
|
+
let targetX, targetY;
|
|
71265
|
+
// ---------------- LANDSCAPE WATERFALL ----------------
|
|
71266
|
+
if (orientation === "landscape" && dropAttr.toLowerCase() === "stackcascade") {
|
|
71267
|
+
console.log("🌄 Landscape waterfall");
|
|
71268
|
+
const shiftX = dropWidth * 0.02; // proportional (5% of width)
|
|
71269
|
+
const shiftY = dropHeight * 0.02; // proportional (5% of height)
|
|
71270
|
+
const startX = dropRect.left + dropWidth * 0.36; // 10% inside
|
|
71271
|
+
const startY = dropRect.top + dropHeight * -0.09; // slightly above
|
|
71272
|
+
targetX = startX + (dropCount * shiftX);
|
|
71273
|
+
targetY = startY + (dropCount * shiftY);
|
|
71274
|
+
}
|
|
71275
|
+
// ---------------- PORTRAIT VERTICAL ----------------
|
|
71276
|
+
else {
|
|
71277
|
+
console.log("📱 Portrait vertical stack");
|
|
71278
|
+
let startX;
|
|
71279
|
+
const stepY = dropHeight * 0.05; // 8% vertical step
|
|
71280
|
+
if (dropElement.id === "unitsDrop") {
|
|
71281
|
+
startX = dropRect.left + dropWidth * 0.4; // special spacing
|
|
71282
|
+
}
|
|
71283
|
+
else if (dropElement.id === "tensDrop") {
|
|
71284
|
+
startX = dropRect.left + dropWidth * 0.25;
|
|
71285
|
+
}
|
|
71286
|
+
else {
|
|
71287
|
+
startX = dropRect.left + dropWidth * 0.16; // normal spacing
|
|
71288
|
+
}
|
|
71289
|
+
const startY = dropRect.top - dropHeight * 0.25; // above start
|
|
71290
|
+
targetX = startX;
|
|
71291
|
+
targetY = startY + (dropCount * stepY);
|
|
71292
|
+
}
|
|
71293
|
+
// ------------ APPLY TRANSFORM SMOOTHLY --------------
|
|
71294
|
+
const dx = (targetX - dragRect.left) / scale;
|
|
71295
|
+
const dy = (targetY - dragRect.top) / scale;
|
|
71296
|
+
dragElement.style.transition = "transform .2s ease-out";
|
|
71297
|
+
dragElement.style.transform = `translate(${dx}px, ${dy}px)`;
|
|
71298
|
+
dropElement.dataset.dropCount = String(dropCount + 1);
|
|
71299
|
+
// reset size
|
|
71300
|
+
dragElement.style.width = "auto";
|
|
71301
|
+
dragElement.style.height = "auto";
|
|
71302
|
+
}
|
|
71303
|
+
const updateCalculatorAnswer = () => {
|
|
71174
71304
|
const container = document.getElementById(LidoContainer);
|
|
71175
71305
|
if (!container)
|
|
71176
71306
|
return;
|
|
71177
|
-
const
|
|
71178
|
-
if (!
|
|
71307
|
+
const calci = document.querySelector('#lidoCalculator');
|
|
71308
|
+
if (!calci)
|
|
71179
71309
|
return;
|
|
71180
|
-
const
|
|
71181
|
-
const
|
|
71182
|
-
|
|
71310
|
+
const answerText = container.querySelector('#answer');
|
|
71311
|
+
const value = calci.getAttribute('value');
|
|
71312
|
+
console.log("😀😀😀😀😀😀😀", value);
|
|
71313
|
+
answerText.setAttribute('string', value);
|
|
71183
71314
|
};
|
|
71184
71315
|
|
|
71185
71316
|
export { ActivityScoreKey as A, generateUUIDFallback as B, exitUrl as C, prevUrl as D, nextUrl as E, speakUrl as F, getCancelBtnPopup as G, H, triggerPrevcontainer as I, setCancelBtnPopup as J, getDefaultExportFromCjs as K, LidoContainer as L, tinyColor as M, NextContainerKey as N, triggerNextContainer as O, PrevContainerKey as P, DropAction as Q, RiveService as R, SelectedValuesKey as S, validateObjectiveStatus as T, fraction as U, TraceMode as V, speakIcon as W, fingerUrl as X, setNonce as a, setPlatformOptions as b, commonjsGlobal as c, setVisibilityWithDelay as d, convertUrlToRelative as e, format as f, getAssetPath$1 as g, h, initEventsForElement as i, Host as j, parseProp as k, createEvent as l, equationCheck as m, storingEachActivityScore as n, executeActions as o, proxyCustomElement as p, handlingChildElements as q, attachSpeakIcon as r, setAssetPath as s, calculateScale as t, handleFloatElementPosition as u, handleElementClick as v, dispatchActivityChangeEvent as w, dispatchGameCompletedEvent as x, dispatchGameExitEvent as y, AudioPlayer as z };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, k as parseProp, h, j as Host } from './p-58c67252.js';
|
|
2
|
+
import { d as defineCustomElement$1 } from './p-39a2e638.js';
|
|
2
3
|
|
|
3
|
-
const lidoCanvasCss = ":host{display:flex;justify-content:center;align-items:center}.lido-
|
|
4
|
+
const lidoCanvasCss = ":host{display:flex;justify-content:center;align-items:center}.lido-canvas{background:red;border:2px solid #ccc;border-radius:8px;display:flex;flex-direction:column;overflow:hidden;position:relative}#lido-exit-button{padding:6px 14px;border:none;background:transparent;color:#fff;border-radius:6px;cursor:pointer;font-size:14px;position:relative;top:-43%;left:18%;z-index:10}canvas{touch-action:none;display:block}";
|
|
4
5
|
const LidoCanvasStyle0 = lidoCanvasCss;
|
|
5
6
|
|
|
6
|
-
const
|
|
7
|
+
const LidoCanvas = /*@__PURE__*/ proxyCustomElement(class LidoCanvas extends H {
|
|
7
8
|
constructor() {
|
|
8
9
|
super();
|
|
9
10
|
this.__registerHost();
|
|
@@ -92,7 +93,7 @@ const WritingPad = /*@__PURE__*/ proxyCustomElement(class WritingPad extends H {
|
|
|
92
93
|
this.loadBackground();
|
|
93
94
|
}
|
|
94
95
|
render() {
|
|
95
|
-
return (h(Host, { key: '
|
|
96
|
+
return (h(Host, { key: '6768ff870d132528267f2e824fdc6edf5a5fa2be', id: "lido-canvas", class: "lido-canvas", style: this.style }, h("button", { key: 'ba3d5456edfa4618b6c3f57b97fa18cef45f7ae9', id: "lido-exit-button", onClick: () => this.clearCanvas() }, h("lido-text", { key: '3484c9005819e3d08adf8d36b247d3c45610d0b5', visible: "true", height: "92px", width: "43px", id: "lido-exit-icon", "font-color": "white", onEntry: "this.font-weight='900';", "font-size": "96px", string: 'X' })), h("canvas", { key: 'cd4167cefde8d4cf159779c46283cafbc3b0afcc', id: "lido-canvas", style: { width: this.style.width, height: this.style.height, } })));
|
|
96
97
|
}
|
|
97
98
|
get el() { return this; }
|
|
98
99
|
static get style() { return LidoCanvasStyle0; }
|
|
@@ -109,15 +110,20 @@ function defineCustomElement() {
|
|
|
109
110
|
if (typeof customElements === "undefined") {
|
|
110
111
|
return;
|
|
111
112
|
}
|
|
112
|
-
const components = ["lido-canvas"];
|
|
113
|
+
const components = ["lido-canvas", "lido-text"];
|
|
113
114
|
components.forEach(tagName => { switch (tagName) {
|
|
114
115
|
case "lido-canvas":
|
|
115
116
|
if (!customElements.get(tagName)) {
|
|
116
|
-
customElements.define(tagName,
|
|
117
|
+
customElements.define(tagName, LidoCanvas);
|
|
118
|
+
}
|
|
119
|
+
break;
|
|
120
|
+
case "lido-text":
|
|
121
|
+
if (!customElements.get(tagName)) {
|
|
122
|
+
defineCustomElement$1();
|
|
117
123
|
}
|
|
118
124
|
break;
|
|
119
125
|
} });
|
|
120
126
|
}
|
|
121
127
|
defineCustomElement();
|
|
122
128
|
|
|
123
|
-
export {
|
|
129
|
+
export { LidoCanvas as L, defineCustomElement as d };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
const lidoColCss = ".lido-col{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);padding:15px;border-radius:10px;display:flex;justify-content:space-around;flex-direction:column;align-items:center}.lido-col>*{}";
|
|
4
4
|
const LidoColStyle0 = lidoColCss;
|
|
@@ -80,7 +80,7 @@ const LidoCol = /*@__PURE__*/ proxyCustomElement(class LidoCol extends H {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '7845d3364dd13cb42959f67610254ee892119c39', id: this.id, class: "lido-col", type: this.type, "tab-index": this.tabIndex, value: this.value, style: this.style, minDrops: this.minDrops, maxDrops: this.maxDrops, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, h("slot", { key: '09a68a30534c5ea83d7166acd720b4b8f23f494e' })));
|
|
84
84
|
}
|
|
85
85
|
get el() { return this; }
|
|
86
86
|
static get style() { return LidoColStyle0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, K as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, M as tinyColor, r as attachSpeakIcon, k as parseProp, e as convertUrlToRelative, h, j as Host } from './p-
|
|
1
|
+
import { c as commonjsGlobal, K as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, M as tinyColor, r as attachSpeakIcon, k as parseProp, e as convertUrlToRelative, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
var lib = {exports: {}};
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
const lidoShapeCss = ".lido-shape{position:absolute;top:var(--y);left:var(--x);display:var(--display);z-index:var(--z)}.lido-rectangle{border-radius:0}.lido-circle{width:var(--width);height:var(--width);border-radius:50%;background-color:var(--bgColor)}.lido-ellipse{width:var(--width);height:var(--height);border-radius:50%;background-color:var(--bgColor)}.lido-triangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(50% 0%, 100% 100%, 0% 100%)}.lido-rightTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(100% 0%, 100% 100%, 0% 100%)}.lido-leftTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--triangleBgColor);clip-path:polygon(0% 0%, 100% 100%, 0% 100%)}.lido-parallelogram{width:var(--paralleWidth);height:var(--paralleHeight);transform:skew(20deg)}.lido-star{width:var(--starWidth);height:var(--starHeight);background-color:var(--starBgColor);clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)}.lido-pentagon{width:var(--pentagonWidth);height:var(--pentagonHeight);background-color:var(--pentagonBgColor);clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)}.lido-heptagon{width:var(--heptagonWidth);height:var(--heptagonHeight);background-color:var(--heptagonBgColor);clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)}.lido-octagon{width:var(--octagonWidth);height:var(--octagonHeight);background-color:var(--octagonBgColor);clip-path:polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%)}.lido-rhombus{width:var(--rhombusWidth);height:var(--rhombusHeight);background-color:var(--rhombusBgColor);clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)}.lido-heart{height:var(--heartHeight);width:var(--heartWidth);border-image:radial-gradient(var(--heartBgColor) 69%, #0000 70%) 84.5%/50%;clip-path:polygon(-41% 0, 50% 91%, 141% 0)}";
|
|
4
4
|
const LidoShapeStyle0 = lidoShapeCss;
|
|
@@ -52,7 +52,7 @@ const LidoShape = /*@__PURE__*/ proxyCustomElement(class LidoShape extends H {
|
|
|
52
52
|
backgroundColor: this.shapeType !== 'polygon' ? this.bgColor : 'transparent', // Apply background only if not a polygon
|
|
53
53
|
margin: this.margin,
|
|
54
54
|
};
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '7a626d9f00854cf190c08524153086d0e9f139af', class: `lido-shape ${this.shapeType}`, value: this.value, type: this.type, "tab-index": this.tabIndex, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, minDrops: this.minDrops, maxDrops: this.maxDrops, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, "disable-speak": this.disableSpeak }));
|
|
56
56
|
}
|
|
57
57
|
get el() { return this; }
|
|
58
58
|
static get style() { return LidoShapeStyle0; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, S as SelectedValuesKey, L as LidoContainer, o as executeActions, O as triggerNextContainer, u as handleFloatElementPosition, n as storingEachActivityScore, Q as DropAction, k as parseProp, h, j as Host } from './p-
|
|
2
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, S as SelectedValuesKey, L as LidoContainer, o as executeActions, O as triggerNextContainer, u as handleFloatElementPosition, n as storingEachActivityScore, Q as DropAction, k as parseProp, h, j as Host } from './p-58c67252.js';
|
|
2
|
+
import { d as defineCustomElement$1 } from './p-39a2e638.js';
|
|
3
3
|
|
|
4
4
|
const lidoKeyboardCss = ".lido-keyboard{display:flex;flex-direction:column;align-items:center;gap:30px}.input-area{display:flex;gap:15px}input[type=\"text\"]{font-size:30px;font-weight:600;padding-left:20px;width:300px;height:70px;border:2px solid;background:whitesmoke;border-radius:20px;text-align:center}.keyboard-wrapper{justify-content:center;width:700px}.disabled{opacity:0.5;pointer-events:none}.key-button{background:aquamarine;font-weight:600}";
|
|
5
5
|
const LidoKeyboardStyle0 = lidoKeyboardCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, e as convertUrlToRelative, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, U as fraction, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, e as convertUrlToRelative, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, U as fraction, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
const lidoSlideFillCss = ".svg-element,svg{width:100%;height:100%}";
|
|
4
4
|
const LidoSlideFillStyle0 = lidoSlideFillCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, V as TraceMode, e as convertUrlToRelative, d as setVisibilityWithDelay, W as speakIcon, o as executeActions, O as triggerNextContainer, L as LidoContainer, k as parseProp, h, j as Host, X as fingerUrl } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, V as TraceMode, e as convertUrlToRelative, d as setVisibilityWithDelay, W as speakIcon, o as executeActions, O as triggerNextContainer, L as LidoContainer, k as parseProp, h, j as Host, X as fingerUrl } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
const lidoTraceCss = ":host{display:block;position:relative}#lido-svgContainer{display:flex;justify-content:center;align-items:center;overflow:hidden}svg{width:100%;height:100%;touch-action:none}#lido-draggableCircle{cursor:pointer;fill:#CF1565;transition:fill 0.2s, r 0.2s}.lido-blindTracing{stroke:none !important}.lido-blindFreeTrace{stroke:none !important}.lido-hovered{cursor:grab;fill:darkred}#lido-controls{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-between;padding:10px;background-color:#f0f0f0;border-top:1px solid #ccc}button{padding:10px;font-size:16px}@media (max-width: 600px){button{padding:8px;font-size:14px}}.lido-trace-path-green{}.lido-flow-indicator{stroke:blue;stroke-width:2;stroke-dasharray:6, 6;fill:none}.lido-trace{height:700px;width:700px;z-index:1;justify-items:center;align-content:center}.trace-animate{animation:trace-bounce 0.5s}@keyframes trace-bounce{0%{transform:scale(1)}30%{transform:scale(1.05)}60%{transform:scale(0.95)}100%{transform:scale(1)}}";
|
|
4
4
|
const LidoTraceStyle0 = lidoTraceCss;
|
|
@@ -715,7 +715,7 @@ const LidoTrace = /*@__PURE__*/ proxyCustomElement(class LidoTrace extends H {
|
|
|
715
715
|
};
|
|
716
716
|
}
|
|
717
717
|
render() {
|
|
718
|
-
return (h(Host, { key: '
|
|
718
|
+
return (h(Host, { key: '204d2999e3d6f0c36c991566e19608870e287d7a', class: "lido-trace", id: this.id, audio: this.audio, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, tabindex: this.tabIndex, "disable-speak": this.disableSpeak }, h("div", { key: '9c97878119641e2efc26fa7d711c7639276417ac', style: this.style, id: "lido-svgContainer" })));
|
|
719
719
|
}
|
|
720
720
|
static get assetsDirs() { return ["svg", "images"]; }
|
|
721
721
|
get el() { return this; }
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, w as dispatchActivityChangeEvent, A as ActivityScoreKey, x as dispatchGameCompletedEvent, y as dispatchGameExitEvent, z as AudioPlayer, B as generateUUIDFallback, C as exitUrl, D as prevUrl, E as nextUrl, F as speakUrl, N as NextContainerKey, P as PrevContainerKey, L as LidoContainer, h, G as getCancelBtnPopup, t as calculateScale, I as triggerPrevcontainer, o as executeActions, j as Host, e as convertUrlToRelative, J as setCancelBtnPopup } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, w as dispatchActivityChangeEvent, A as ActivityScoreKey, x as dispatchGameCompletedEvent, y as dispatchGameExitEvent, z as AudioPlayer, B as generateUUIDFallback, C as exitUrl, D as prevUrl, E as nextUrl, F as speakUrl, N as NextContainerKey, P as PrevContainerKey, L as LidoContainer, h, G as getCancelBtnPopup, t as calculateScale, I as triggerPrevcontainer, o as executeActions, j as Host, e as convertUrlToRelative, J as setCancelBtnPopup } from './p-58c67252.js';
|
|
2
2
|
import { i as instance } from './p-0fbeb3a1.js';
|
|
3
|
-
import { d as defineCustomElement$k } from './p-
|
|
4
|
-
import { d as defineCustomElement$j } from './p-
|
|
5
|
-
import { d as defineCustomElement$i } from './p-
|
|
6
|
-
import { d as defineCustomElement$h } from './p-
|
|
7
|
-
import { d as defineCustomElement$g } from './p-
|
|
8
|
-
import { d as defineCustomElement$f } from './p-
|
|
9
|
-
import { d as defineCustomElement$e } from './p-
|
|
10
|
-
import { d as defineCustomElement$d } from './p-
|
|
11
|
-
import { d as defineCustomElement$c } from './p-
|
|
12
|
-
import { d as defineCustomElement$b } from './p-
|
|
13
|
-
import { d as defineCustomElement$a } from './p-
|
|
14
|
-
import { d as defineCustomElement$9 } from './p-
|
|
15
|
-
import { d as defineCustomElement$8 } from './p-
|
|
16
|
-
import { d as defineCustomElement$7 } from './p-
|
|
17
|
-
import { d as defineCustomElement$6 } from './p-
|
|
18
|
-
import { d as defineCustomElement$5 } from './p-
|
|
19
|
-
import { d as defineCustomElement$4 } from './p-
|
|
20
|
-
import { d as defineCustomElement$3 } from './p-
|
|
21
|
-
import { d as defineCustomElement$2 } from './p-
|
|
22
|
-
import { d as defineCustomElement$1 } from './p-
|
|
3
|
+
import { d as defineCustomElement$k } from './p-11bf64aa.js';
|
|
4
|
+
import { d as defineCustomElement$j } from './p-26df0769.js';
|
|
5
|
+
import { d as defineCustomElement$i } from './p-3ce3744c.js';
|
|
6
|
+
import { d as defineCustomElement$h } from './p-5b5f59a8.js';
|
|
7
|
+
import { d as defineCustomElement$g } from './p-cb56a853.js';
|
|
8
|
+
import { d as defineCustomElement$f } from './p-68112f8c.js';
|
|
9
|
+
import { d as defineCustomElement$e } from './p-00777872.js';
|
|
10
|
+
import { d as defineCustomElement$d } from './p-0c2aebfb.js';
|
|
11
|
+
import { d as defineCustomElement$c } from './p-2d53e1a5.js';
|
|
12
|
+
import { d as defineCustomElement$b } from './p-8a34b98b.js';
|
|
13
|
+
import { d as defineCustomElement$a } from './p-9d34d59d.js';
|
|
14
|
+
import { d as defineCustomElement$9 } from './p-09f1e2d2.js';
|
|
15
|
+
import { d as defineCustomElement$8 } from './p-52e77394.js';
|
|
16
|
+
import { d as defineCustomElement$7 } from './p-06171259.js';
|
|
17
|
+
import { d as defineCustomElement$6 } from './p-3f4d4c0a.js';
|
|
18
|
+
import { d as defineCustomElement$5 } from './p-8f2ed62f.js';
|
|
19
|
+
import { d as defineCustomElement$4 } from './p-a2f96840.js';
|
|
20
|
+
import { d as defineCustomElement$3 } from './p-39a2e638.js';
|
|
21
|
+
import { d as defineCustomElement$2 } from './p-a516a324.js';
|
|
22
|
+
import { d as defineCustomElement$1 } from './p-c4abfd0f.js';
|
|
23
23
|
|
|
24
24
|
const indexCss = "@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&display=swap'); body{overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;height:100vh}*{user-select:none}.lido-disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}.lido-element-selected{border:2px solid;background-color:#ffdf7d !important}.diagonal-target,.diagonal-drop *{transform:scale(0.8) !important;opacity:1 !important}.cloned-element{display:flex !important;position:absolute !important;filter:grayscale(100%);pointer-events:none}.removeShadow{box-shadow:0px 0px 0px 0px #ff8900 !important}.highlight-element{border:2px solid white;box-shadow:0 2px 4px rgba(151, 150, 150, 0.1) !important}.drop-element.empty{border:4px dashed #f34d08 !important}.drop-element.filled{border:'none' !important}.drag-element{box-shadow:0px 15px 11px rgba(43, 0, 0, 0.3) !important}.drag-element.dropped{box-shadow:none !important}.click-element{background-color:var(--btn-bg-color, rgba(255, 172, 76, 1)) !important;box-shadow:var(--btn-shadow-px) var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;cursor:pointer;transition:box-shadow 0.1s ease-out, transform 0.2s ease-out;}.click-element:active{box-shadow:0px 0px 0px var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;transform:translateY(var(--btn-active));}.click-element:focus{outline:2px solid dodgerblue;outline-offset:3px}.after-drop-popup-container{width:200%;height:200%;background-color:rgba(0, 0, 0, 0.8);position:absolute;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center !important;gap:80px}.after-drop-popup-drag-element{scale:1.5;border-radius:8px;transform:none !important;position:unset !important}.after-drop-popup-drop-element{scale:1.5;border:unset;border-radius:8px;transform:none !important;position:unset !important}@keyframes zoomFadeIn{0%{transform:scale(0.6);opacity:0}100%{transform:scale(1);opacity:1}}.zoom-fade-in{animation:zoomFadeIn 0.8s ease-out forwards}@keyframes zoomFadeOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0.6);opacity:0}}.zoom-fade-out{animation:zoomFadeOut 0.8s ease-in forwards}.slide-numbers{width:70px;height:70px;border:1px solid #f57139;background-color:white;font-weight:500;color:#f57139;font-size:44px;border-radius:40px;display:flex;align-items:center;justify-content:center;font-family:'Baloo Bhai 2', serif}.slide-numbers-bottom{position:absolute;display:flex;justify-content:space-around;align-items:center;bottom:-25px;width:100%;height:50px}.slide-numbers-left{position:absolute;display:flex;flex-direction:column;justify-content:space-around;height:100%;width:50px;left:-25px;bottom:0px}.lido-speak-icon{width:56px;height:56px;position:absolute;top:-25px;right:-25px;z-index:10;background-image:url(\"https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/template/audioIcon.png\");background-color:white;border:4px solid #F34D08;border-radius:16px;box-shadow:0px 4px 0px 0px #F34D08;background-size:contain;background-repeat:no-repeat;cursor:pointer}.lido-speak-icon:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px !important}.lido-strong-shake{animation:strongShake 0.3s ease}.lido-scaled-shake{animation:scaledShake 0.6s ease-in-out}.lido-horizontal-shake{animation:horizontalShake 0.6s ease-in-out;border-radius:20px}.lido-vertical-shake{animation:verticalShake 0.6s ease-in-out;border-radius:20px}.lido-diagonal-shake{animation:diagonalShake 0.5s ease-in-out;border-radius:20px;will-change:transform}.lido-glow{animation:glowPulse 1s infinite alternate;transition:opacity 0.5s ease-in-out}.lido-box-highlight{animation:topToPlace 0.3s linear}.lido-display-hiddenvalue{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:80px;font-weight:1000;color:brown;-webkit-text-stroke:2px white;font-family:'Baloo Bhai 2', sans-serif;pointer-events:none}.lido-image-colorize{position:relative;display:inline-block}.lido-image-colorize::after{content:'';position:absolute;inset:0;background:var(--tint-color);mix-blend-mode:multiply;opacity:0.8;pointer-events:none;mask-image:var(--mask-url);mask-size:cover;mask-repeat:no-repeat;mask-position:center}";
|
|
25
25
|
const LidoHomeStyle0 = indexCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-58c67252.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;
|
|
@@ -78,7 +78,7 @@ const LidoWrap = /*@__PURE__*/ proxyCustomElement(class LidoWrap extends H {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '50bc5770105477d0ef7cb080957c8d00198c8b09', class: "lido-wrap", value: this.value, type: this.type, "tab-index": this.tabIndex, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, minDrops: this.minDrops, maxDrops: this.maxDrops, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, disableSpeak: this.disableSpeak }, h("slot", { key: 'fcd1f5801e34171d1925e39f6c543f229a5d42bd' })));
|
|
82
82
|
}
|
|
83
83
|
get el() { return this; }
|
|
84
84
|
static get style() { return LidoWrapStyle0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-58c67252.js';
|
|
2
2
|
|
|
3
3
|
const lidoCellCss = ".lido-col{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);padding:15px;border-radius:10px;display:flex;justify-content:space-around;flex-direction:column;align-items:center}.lido-col>*{}.lido-row{display:flex;justify-content:space-around;align-items:center;}.lido-row>*{}.lido-wrap{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill, minmax(186px, auto))}.lido-wrap>*{padding:10px;box-sizing:border-box}.lido-flex{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}.lido-pos{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);display:flex;justify-content:space-around;flex-direction:column;position:fixed}.lido-pos>*{position:absolute}.lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}.lido-col::-webkit-scrollbar,.lido-wrap::-webkit-scrollbar,.lido-flex::-webkit-scrollbar{width:var(--scrollbar-width);height:var(--scrollbar-width)}.lido-col::-webkit-scrollbar-thumb,.lido-wrap::-webkit-scrollbar-thumb,.lido-flex::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px;border:3px solid transparent;background-clip:content-box}.lido-col::-webkit-scrollbar-track,.lido-wrap::-webkit-scrollbar-track,.lido-flex::-webkit-scrollbar-track{background:#f1f1f1}";
|
|
4
4
|
const LidoCellStyle0 = lidoCellCss;
|
|
@@ -129,7 +129,7 @@ const LidoCell = /*@__PURE__*/ proxyCustomElement(class LidoCell extends H {
|
|
|
129
129
|
this.el.className = `lido-${parseProp(this.layout, orientation)}`;
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
|
-
return (h(Host, { key: '
|
|
132
|
+
return (h(Host, { key: '0f7d35324da319917dec546cbb1f25065897bb02', id: this.id, class: "lido-cell", value: this.value, type: this.type, "tab-index": this.tabIndex, style: this.style, minDrops: this.minDrops, maxDrops: this.maxDrops, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, "flex-direction": this.flexDirection, "disable-speak": this.disableSpeak }, h("slot", { key: '2a337b5fae7641bbe78c5f1aa1c96e12c1281f4a' })));
|
|
133
133
|
}
|
|
134
134
|
get el() { return this; }
|
|
135
135
|
static get style() { return LidoCellStyle0; }
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { f as format } from './utils-
|
|
1
|
+
export { f as format } from './utils-107b15a7.js';
|
|
2
2
|
import './index-37c2ad2d.js';
|