lido-player 0.0.2-alpha-50-dev → 0.0.2-alpha-51-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/LICENSE +21 -21
- package/dist/cjs/{index-6a69c33a.js → index-baff5c15.js} +48 -14
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{lido-avatar_21.cjs.entry.js → lido-avatar_22.cjs.entry.js} +3043 -162
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-079a5e7d.js → utils-dc02d753.js} +150 -95
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/avatar/lido-avatar.css +4 -4
- package/dist/collection/components/avatar/lido-avatar.js +1 -1
- package/dist/collection/components/calculator/lido-calculator.css +87 -87
- package/dist/collection/components/calculator/lido-calculator.js +14 -8
- package/dist/collection/components/canvas/lido-canvas.css +38 -0
- package/dist/collection/components/canvas/lido-canvas.js +220 -0
- package/dist/collection/components/cell/lido-cell.css +100 -100
- package/dist/collection/components/cell/lido-cell.js +12 -12
- package/dist/collection/components/column/lido-col.css +19 -19
- package/dist/collection/components/column/lido-col.js +6 -6
- package/dist/collection/components/container/lido-container.css +10 -10
- package/dist/collection/components/container/lido-container.js +70 -8
- package/dist/collection/components/flashCard/lido-flash-card.css +28 -28
- package/dist/collection/components/flashCard/lido-flash-card.js +4 -4
- package/dist/collection/components/float/lido-float.css +30 -30
- package/dist/collection/components/float/lido-float.js +2 -2
- package/dist/collection/components/home/lido-home.css +278 -278
- package/dist/collection/components/home/lido-home.js +92 -12
- package/dist/collection/components/image/lido-image.css +17 -17
- package/dist/collection/components/image/lido-image.js +6 -6
- package/dist/collection/components/keyboard/lido-keyboard.css +38 -38
- package/dist/collection/components/keyboard/lido-keyboard.js +3 -3
- package/dist/collection/components/mathMatrix/lido-math-matrix.css +56 -56
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +56 -2
- package/dist/collection/components/position/lido-pos.css +16 -16
- package/dist/collection/components/position/lido-pos.js +2 -2
- package/dist/collection/components/random/lido-random.css +8 -8
- package/dist/collection/components/random/lido-random.js +2 -2
- package/dist/collection/components/root/lido-root.js +42 -6
- package/dist/collection/components/row/lido-row.css +10 -10
- package/dist/collection/components/row/lido-row.js +6 -6
- package/dist/collection/components/scale/lido-balance.css +145 -114
- package/dist/collection/components/scale/lido-balance.js +17 -17
- package/dist/collection/components/shape/lido-shape.css +96 -96
- package/dist/collection/components/shape/lido-shape.js +5 -5
- package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
- package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
- package/dist/collection/components/text/lido-text.css +53 -53
- package/dist/collection/components/text/lido-text.js +6 -5
- package/dist/collection/components/trace/lido-trace.css +97 -97
- package/dist/collection/components/trace/lido-trace.js +2 -2
- package/dist/collection/components/wrap/lido-wrap.css +18 -18
- package/dist/collection/components/wrap/lido-wrap.js +6 -6
- package/dist/collection/css/animation.css +194 -194
- package/dist/collection/css/index.css +277 -277
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +60 -60
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +55 -48
- package/dist/collection/stories/Templates/Tag/tagGame.stories.js +29 -29
- package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +42 -42
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +37 -31
- package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +48 -0
- package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
- package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
- package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +28 -22
- package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
- package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
- package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +37 -37
- package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
- package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
- package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
- package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
- package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
- package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
- package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
- package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +54 -54
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +23 -23
- package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
- package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +32 -28
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +56 -54
- package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +56 -45
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +38 -38
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +131 -127
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +53 -49
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +44 -40
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +96 -96
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
- package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +47 -45
- package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
- package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
- package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +62 -58
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
- package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +52 -48
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +65 -61
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -58
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +111 -107
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +46 -46
- package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
- package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +51 -47
- package/dist/collection/stories/Templates/total/total.stories.js +27 -27
- package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +35 -31
- package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +62 -58
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -40
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +36 -32
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +37 -33
- package/dist/collection/stories/components/flash-card.stories.js +48 -48
- package/dist/collection/stories/components/keyboard.stories.js +10 -10
- package/dist/collection/stories/components/slider.stories.js +4 -4
- package/dist/collection/stories/components/trace.stories.js +5 -5
- package/dist/collection/utils/audioPlayer.js +43 -6
- package/dist/collection/utils/constants.js +1 -0
- package/dist/collection/utils/i18n.js +36 -0
- package/dist/collection/utils/utils.js +36 -29
- package/dist/collection/utils/utilsHandlers/clickHandler.js +5 -1
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +17 -9
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
- package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +2 -2
- package/dist/collection/utils/utilsHandlers/lidoCalculatorHandler.js +9 -9
- package/dist/collection/utils/utilsHandlers/sortHandler.js +10 -10
- 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.d.ts +11 -0
- package/dist/components/lido-canvas.js +6 -0
- package/dist/components/lido-cell.js +1 -1
- package/dist/components/lido-col.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-flash-card.js +1 -1
- package/dist/components/lido-float.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-image.js +1 -1
- package/dist/components/lido-keyboard.js +1 -1
- package/dist/components/lido-math-matrix.js +1 -1
- package/dist/components/lido-pos.js +1 -1
- package/dist/components/lido-random.js +1 -1
- package/dist/components/lido-root.js +49 -25
- 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-73e31a86.js → p-04e904b5.js} +8 -8
- package/dist/components/p-0fbeb3a1.js +2700 -0
- package/dist/components/{p-1fbdb431.js → p-12432f23.js} +2 -2
- package/dist/components/p-1c84cf65.js +123 -0
- package/dist/components/{p-74849cdd.js → p-1f3c2783.js} +4 -4
- package/dist/components/{p-e4e42677.js → p-4fd6b588.js} +2 -2
- package/dist/components/{p-e36ddcc1.js → p-56c8f3da.js} +14 -11
- package/dist/components/{p-cbac3cbc.js → p-62d2a5b3.js} +2 -2
- package/dist/components/{p-44808985.js → p-6ba0f1af.js} +7 -7
- package/dist/components/{p-52844fa4.js → p-6be6c5eb.js} +2 -2
- package/dist/components/{p-08d0deab.js → p-74b90a9c.js} +9 -3
- package/dist/components/{p-d37ab4dc.js → p-988477ad.js} +2 -2
- package/dist/components/{p-7f7e5672.js → p-a8724f06.js} +2 -2
- package/dist/components/{p-3f406017.js → p-b7efadad.js} +2 -2
- package/dist/components/{p-15971ede.js → p-b89371ac.js} +1 -1
- package/dist/components/{p-904711c8.js → p-bb907e43.js} +2 -2
- package/dist/components/{p-afbc196f.js → p-bef96764.js} +3 -2
- package/dist/components/{p-322acda6.js → p-c8815e84.js} +67 -31
- package/dist/components/{p-835b973d.js → p-caa05d1e.js} +2 -2
- package/dist/components/{p-bed94c37.js → p-d0131159.js} +187 -105
- package/dist/components/{p-29bdd953.js → p-d3f7d561.js} +2 -2
- package/dist/components/{p-90465904.js → p-d7693f47.js} +2 -2
- package/dist/components/{p-9be56729.js → p-e9548986.js} +46 -2
- package/dist/esm/{index-170e58c7.js → index-37c2ad2d.js} +48 -14
- package/dist/esm/index.js +2 -2
- package/dist/esm/{lido-avatar_21.entry.js → lido-avatar_22.entry.js} +3043 -163
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-5df09162.js → utils-b5eb2360.js} +150 -95
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-9a9d5339.js +2 -0
- package/dist/lido-player/{p-7556e652.js → p-9fd87d44.js} +2 -2
- package/dist/lido-player/p-e1a9c26f.entry.js +1 -0
- package/dist/types/components/canvas/lido-canvas.d.ts +27 -0
- package/dist/types/components/container/lido-container.d.ts +6 -0
- package/dist/types/components/home/lido-home.d.ts +8 -0
- package/dist/types/components/mathMatrix/lido-math-matrix.d.ts +3 -0
- package/dist/types/components/root/lido-root.d.ts +5 -0
- package/dist/types/components.d.ts +71 -0
- package/dist/types/stories/Templates/RocketGame/rocketGame.stories.d.ts +1 -0
- package/dist/types/stories/Templates/calculator/calculator.stories.d.ts +4 -0
- package/dist/types/stories/Templates/multiplyBeeds/multiplyBeeds.stories.d.ts +1 -0
- package/dist/types/stories/Templates/openwindow/openwindow.stories.d.ts +1 -0
- package/dist/types/stories/Templates/openwindow/openwindow2.stories.d.ts +1 -0
- package/dist/types/stories/Templates/questionBoard/questionBoard.stories.d.ts +1 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox1.stories.d.ts +1 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox2.stories.d.ts +1 -0
- package/dist/types/stories/Templates/shapePair/shape-pair.stories.d.ts +1 -1
- package/dist/types/stories/Templates/sumTogether/sumTogether.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeCard/writeCard.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeLetter/writeLetter.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeNumber/writeNumber.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeWord/writeWord.stories.d.ts +1 -0
- package/dist/types/types/json.d.ts +4 -0
- package/dist/types/utils/audioPlayer.d.ts +2 -0
- package/dist/types/utils/constants.d.ts +1 -0
- package/dist/types/utils/i18n.d.ts +5 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +71 -69
- package/readme.md +113 -113
- package/dist/lido-player/p-137c99ce.js +0 -2
- package/dist/lido-player/p-eb956325.entry.js +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
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-d0131159.js';
|
|
2
|
+
import { i as instance } from './p-0fbeb3a1.js';
|
|
2
3
|
|
|
3
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}";
|
|
4
5
|
const LidoContainerStyle0 = lidoContainerCss;
|
|
@@ -7,6 +8,7 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
|
|
|
7
8
|
constructor() {
|
|
8
9
|
super();
|
|
9
10
|
this.__registerHost();
|
|
11
|
+
this.locale = '';
|
|
10
12
|
this.showDropBorder = true;
|
|
11
13
|
this.appendToDropOnCompletion = false;
|
|
12
14
|
this.id = '';
|
|
@@ -45,6 +47,31 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
|
|
|
45
47
|
this.delayVisible = '';
|
|
46
48
|
this.disableSpeak = false;
|
|
47
49
|
}
|
|
50
|
+
languageChanged(newLang) {
|
|
51
|
+
const langToApply = newLang || this.resolveLanguage();
|
|
52
|
+
this.updateChildTextLanguage(langToApply);
|
|
53
|
+
}
|
|
54
|
+
componentWillLoad() {
|
|
55
|
+
const langToApply = this.resolveLanguage();
|
|
56
|
+
this.updateChildTextLanguage(langToApply);
|
|
57
|
+
}
|
|
58
|
+
resolveLanguage() {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
const rootEl = this.el.closest('lido-root');
|
|
61
|
+
const rootLang = (rootEl === null || rootEl === void 0 ? void 0 : rootEl.locale) || '';
|
|
62
|
+
if (rootLang === null || rootLang === void 0 ? void 0 : rootLang.trim())
|
|
63
|
+
return rootLang;
|
|
64
|
+
const homeEl = this.el.closest('lido-home');
|
|
65
|
+
const homeLang = (homeEl === null || homeEl === void 0 ? void 0 : homeEl.locale) || '';
|
|
66
|
+
if (homeLang === null || homeLang === void 0 ? void 0 : homeLang.trim())
|
|
67
|
+
return homeLang;
|
|
68
|
+
if ((_a = this.locale) === null || _a === void 0 ? void 0 : _a.trim())
|
|
69
|
+
return this.locale;
|
|
70
|
+
const xmlLang = this.el.getAttribute('locale');
|
|
71
|
+
if (xmlLang === null || xmlLang === void 0 ? void 0 : xmlLang.trim())
|
|
72
|
+
return xmlLang;
|
|
73
|
+
return (_b = this.el.textContent) === null || _b === void 0 ? void 0 : _b.trim();
|
|
74
|
+
}
|
|
48
75
|
convertToPixels(height, parentElement = document.body) {
|
|
49
76
|
if (!height)
|
|
50
77
|
return 0; // Handle empty or invalid input
|
|
@@ -86,6 +113,15 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
|
|
|
86
113
|
this.el.style.width = '1600px';
|
|
87
114
|
}
|
|
88
115
|
}
|
|
116
|
+
updateChildTextLanguage(lang) {
|
|
117
|
+
const appliedLang = lang || instance.language || 'en';
|
|
118
|
+
instance.changeLanguage(appliedLang);
|
|
119
|
+
const texts = this.el.querySelectorAll('lido-text');
|
|
120
|
+
texts.forEach((textEl) => {
|
|
121
|
+
textEl.locale = appliedLang;
|
|
122
|
+
textEl.dispatchEvent(new CustomEvent('languageChanged', { bubbles: true }));
|
|
123
|
+
});
|
|
124
|
+
}
|
|
89
125
|
/**
|
|
90
126
|
* Lifecycle hook that runs after the component is loaded.
|
|
91
127
|
* - It scales the container.
|
|
@@ -107,6 +143,8 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
|
|
|
107
143
|
styleElement.innerHTML = this.customStyle;
|
|
108
144
|
document.head.appendChild(styleElement);
|
|
109
145
|
}
|
|
146
|
+
const langToApply = this.resolveLanguage();
|
|
147
|
+
this.updateChildTextLanguage(langToApply);
|
|
110
148
|
}
|
|
111
149
|
disconnectedCallback() {
|
|
112
150
|
window.removeEventListener('resize', () => this.scaleContainer(this.el));
|
|
@@ -126,11 +164,15 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
|
|
|
126
164
|
userSelect: 'none', // Prevent any field selection
|
|
127
165
|
};
|
|
128
166
|
console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
|
|
129
|
-
return (h(Host, { key: '
|
|
167
|
+
return (h(Host, { key: '5d7f2f02c5a231a18897942ea0d2f3a200efa502', id: "lido-container", locale: this.locale, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak }, h("slot", { key: 'b82aff47d621fc4f9d6abe5b7add974853f69219' })));
|
|
130
168
|
}
|
|
131
169
|
get el() { return this; }
|
|
170
|
+
static get watchers() { return {
|
|
171
|
+
"locale": ["languageChanged"]
|
|
172
|
+
}; }
|
|
132
173
|
static get style() { return LidoContainerStyle0; }
|
|
133
174
|
}, [4, "lido-container", {
|
|
175
|
+
"locale": [1],
|
|
134
176
|
"showDropBorder": [4, "show-drop-border"],
|
|
135
177
|
"appendToDropOnCompletion": [4, "append-to-drop-on-completion"],
|
|
136
178
|
"id": [1],
|
|
@@ -168,6 +210,8 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
|
|
|
168
210
|
"showNextButton": [1, "show-next-button"],
|
|
169
211
|
"delayVisible": [1, "delay-visible"],
|
|
170
212
|
"disableSpeak": [4, "disable-speak"]
|
|
213
|
+
}, undefined, {
|
|
214
|
+
"locale": ["languageChanged"]
|
|
171
215
|
}]);
|
|
172
216
|
function defineCustomElement() {
|
|
173
217
|
if (typeof customElements === "undefined") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'lido-player';
|
|
2
|
-
const BUILD = /* lido-player */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback:
|
|
2
|
+
const BUILD = /* lido-player */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -52,10 +52,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
52
52
|
}
|
|
53
53
|
switch(bundleId) {
|
|
54
54
|
|
|
55
|
-
case 'lido-
|
|
55
|
+
case 'lido-avatar_22':
|
|
56
56
|
return import(
|
|
57
57
|
/* webpackMode: "lazy" */
|
|
58
|
-
'./lido-
|
|
58
|
+
'./lido-avatar_22.entry.js').then(processMod, consoleError);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
return import(
|
|
@@ -88,7 +88,6 @@ var plt = {
|
|
|
88
88
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
89
89
|
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
90
90
|
};
|
|
91
|
-
var supportsShadow = BUILD.shadowDom;
|
|
92
91
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
93
92
|
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
94
93
|
try {
|
|
@@ -393,10 +392,15 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
393
392
|
var attachStyles = (hostRef) => {
|
|
394
393
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
395
394
|
const elm = hostRef.$hostElement$;
|
|
395
|
+
const flags = cmpMeta.$flags$;
|
|
396
396
|
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
397
|
-
addStyle(
|
|
398
|
-
elm.getRootNode(),
|
|
397
|
+
const scopeId2 = addStyle(
|
|
398
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
399
399
|
cmpMeta);
|
|
400
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
401
|
+
elm["s-sc"] = scopeId2;
|
|
402
|
+
elm.classList.add(scopeId2 + "-h");
|
|
403
|
+
}
|
|
400
404
|
endAttachStyles();
|
|
401
405
|
};
|
|
402
406
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
@@ -545,6 +549,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
545
549
|
if (!useNativeShadowDom) {
|
|
546
550
|
checkSlotRelocate = true;
|
|
547
551
|
if (newVNode2.$tag$ === "slot") {
|
|
552
|
+
if (scopeId) {
|
|
553
|
+
parentElm.classList.add(scopeId + "-s");
|
|
554
|
+
}
|
|
548
555
|
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
549
556
|
// slot element has fallback content
|
|
550
557
|
// still create an element that "mocks" the slot element
|
|
@@ -575,7 +582,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
575
582
|
}
|
|
576
583
|
if (newVNode2.$children$) {
|
|
577
584
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
578
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
585
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
579
586
|
if (childNode) {
|
|
580
587
|
elm.appendChild(childNode);
|
|
581
588
|
}
|
|
@@ -628,9 +635,12 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
628
635
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
629
636
|
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
630
637
|
let childNode;
|
|
638
|
+
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
639
|
+
containerElm = containerElm.shadowRoot;
|
|
640
|
+
}
|
|
631
641
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
632
642
|
if (vnodes[startIdx]) {
|
|
633
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
643
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
634
644
|
if (childNode) {
|
|
635
645
|
vnodes[startIdx].$elm$ = childNode;
|
|
636
646
|
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
@@ -717,7 +727,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
717
727
|
if (idxInOld >= 0) {
|
|
718
728
|
elmToMove = oldCh[idxInOld];
|
|
719
729
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
720
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
730
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
721
731
|
} else {
|
|
722
732
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
723
733
|
oldCh[idxInOld] = void 0;
|
|
@@ -725,7 +735,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
725
735
|
}
|
|
726
736
|
newStartVnode = newCh[++newStartIdx];
|
|
727
737
|
} else {
|
|
728
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
738
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
729
739
|
newStartVnode = newCh[++newStartIdx];
|
|
730
740
|
}
|
|
731
741
|
if (node) {
|
|
@@ -929,8 +939,11 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
929
939
|
rootVnode.$tag$ = null;
|
|
930
940
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
931
941
|
hostRef.$vnode$ = rootVnode;
|
|
932
|
-
rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
|
|
933
|
-
|
|
942
|
+
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
943
|
+
{
|
|
944
|
+
scopeId = hostElm["s-sc"];
|
|
945
|
+
}
|
|
946
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
934
947
|
{
|
|
935
948
|
contentRef = hostElm["s-cr"];
|
|
936
949
|
checkSlotFallbackVisibility = false;
|
|
@@ -1314,6 +1327,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1314
1327
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1315
1328
|
}
|
|
1316
1329
|
endNewInstance();
|
|
1330
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1317
1331
|
} else {
|
|
1318
1332
|
Cstr = elm.constructor;
|
|
1319
1333
|
const cmpTag = elm.localName;
|
|
@@ -1341,6 +1355,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1341
1355
|
}
|
|
1342
1356
|
};
|
|
1343
1357
|
var fireConnectedCallback = (instance) => {
|
|
1358
|
+
{
|
|
1359
|
+
safeCall(instance, "connectedCallback");
|
|
1360
|
+
}
|
|
1344
1361
|
};
|
|
1345
1362
|
|
|
1346
1363
|
// src/runtime/connected-callback.ts
|
|
@@ -1379,8 +1396,10 @@ var connectedCallback = (elm) => {
|
|
|
1379
1396
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1380
1397
|
}
|
|
1381
1398
|
} else {
|
|
1382
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1383
|
-
hostRef.$
|
|
1399
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1400
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1401
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1402
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1384
1403
|
}
|
|
1385
1404
|
}
|
|
1386
1405
|
endConnected();
|
|
@@ -1454,6 +1473,21 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1454
1473
|
this.hasRegisteredEventListeners = false;
|
|
1455
1474
|
self = this;
|
|
1456
1475
|
registerHost(self, cmpMeta);
|
|
1476
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1477
|
+
{
|
|
1478
|
+
if (!self.shadowRoot) {
|
|
1479
|
+
{
|
|
1480
|
+
self.attachShadow({ mode: "open" });
|
|
1481
|
+
}
|
|
1482
|
+
} else {
|
|
1483
|
+
if (self.shadowRoot.mode !== "open") {
|
|
1484
|
+
throw new Error(
|
|
1485
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
1486
|
+
);
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1457
1491
|
}
|
|
1458
1492
|
connectedCallback() {
|
|
1459
1493
|
getHostRef(this);
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { f as format } from './utils-
|
|
2
|
-
import './index-
|
|
1
|
+
export { f as format } from './utils-b5eb2360.js';
|
|
2
|
+
import './index-37c2ad2d.js';
|