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
package/readme.md
CHANGED
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
[](https://stenciljs.com)
|
|
2
|
-
|
|
3
|
-
# Stencil Component Starter
|
|
4
|
-
|
|
5
|
-
This is a starter project for building a standalone Web Component using Stencil.
|
|
6
|
-
|
|
7
|
-
Stencil is also great for building entire apps. For that, use the [stencil-app-starter](https://github.com/ionic-team/stencil-app-starter) instead.
|
|
8
|
-
|
|
9
|
-
# Stencil
|
|
10
|
-
|
|
11
|
-
Stencil is a compiler for building fast web apps using Web Components.
|
|
12
|
-
|
|
13
|
-
Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than runtime tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.
|
|
14
|
-
|
|
15
|
-
Stencil components are just Web Components, so they work in any major framework or with no framework at all.
|
|
16
|
-
|
|
17
|
-
## Getting Started
|
|
18
|
-
|
|
19
|
-
To start building a new web component using Stencil, clone this repo to a new directory:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
git clone https://github.com/ionic-team/stencil-component-starter.git my-component
|
|
23
|
-
cd my-component
|
|
24
|
-
git remote rm origin
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
and run:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npm install
|
|
31
|
-
npm start
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
To build the component for production, run:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npm run build
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
To run the unit tests for the components, run:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
npm test
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Need help? Check out our docs [here](https://stenciljs.com/docs/my-first-component).
|
|
47
|
-
|
|
48
|
-
## Naming Components
|
|
49
|
-
|
|
50
|
-
When creating new component tags, we recommend _not_ using `stencil` in the component name (ex: `<stencil-datepicker>`). This is because the generated component has little to nothing to do with Stencil; it's just a web component!
|
|
51
|
-
|
|
52
|
-
Instead, use a prefix that fits your company or any name for a group of related components. For example, all of the Ionic-generated web components use the prefix `ion`.
|
|
53
|
-
|
|
54
|
-
## Using this component
|
|
55
|
-
|
|
56
|
-
There are two strategies we recommend for using web components built with Stencil.
|
|
57
|
-
|
|
58
|
-
The first step for all two of these strategies is to [publish to NPM](https://docs.npmjs.com/getting-started/publishing-npm-packages).
|
|
59
|
-
|
|
60
|
-
You can read more about these different approaches in the [Stencil docs](https://stenciljs.com/docs/publishing).
|
|
61
|
-
|
|
62
|
-
### Lazy Loading
|
|
63
|
-
|
|
64
|
-
If your Stencil project is built with the [`dist`](https://stenciljs.com/docs/distribution) output target, you can import a small bootstrap script that registers all components and allows you to load individual component scripts lazily.
|
|
65
|
-
|
|
66
|
-
For example, given your Stencil project namespace is called `my-design-system`, to use `my-component` on any website, inject this into your HTML:
|
|
67
|
-
|
|
68
|
-
```html
|
|
69
|
-
<script type="module" src="https://unpkg.com/my-design-system"></script>
|
|
70
|
-
<!--
|
|
71
|
-
To avoid unpkg.com redirects to the actual file, you can also directly import:
|
|
72
|
-
https://unpkg.com/foobar-design-system@0.0.1/dist/foobar-design-system/foobar-design-system.esm.js
|
|
73
|
-
-->
|
|
74
|
-
<my-component first="Stencil" last="'Don't call me a framework' JS"></my-component>
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
This will only load the necessary scripts needed to render `<my-component />`. Once more components of this package are used, they will automatically be loaded lazily.
|
|
78
|
-
|
|
79
|
-
You can also import the script as part of your `node_modules` in your applications entry file:
|
|
80
|
-
|
|
81
|
-
```tsx
|
|
82
|
-
import 'foobar-design-system/dist/foobar-design-system/foobar-design-system.esm.js';
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
Check out this [Live Demo](https://stackblitz.com/edit/vitejs-vite-y6v26a?file=src%2Fmain.tsx).
|
|
86
|
-
|
|
87
|
-
### Standalone
|
|
88
|
-
|
|
89
|
-
If you are using a Stencil component library with `dist-custom-elements`, we recommend importing Stencil components individually in those files where they are needed.
|
|
90
|
-
|
|
91
|
-
To export Stencil components as standalone components make sure you have the [`dist-custom-elements`](https://stenciljs.com/docs/custom-elements) output target defined in your `stencil.config.ts`.
|
|
92
|
-
|
|
93
|
-
For example, given you'd like to use `<my-component />` as part of a React component, you can import the component directly via:
|
|
94
|
-
|
|
95
|
-
```tsx
|
|
96
|
-
import 'foobar-design-system/my-component';
|
|
97
|
-
|
|
98
|
-
function App() {
|
|
99
|
-
return (
|
|
100
|
-
<>
|
|
101
|
-
<div>
|
|
102
|
-
<my-component
|
|
103
|
-
first="Stencil"
|
|
104
|
-
last="'Don't call me a framework' JS"
|
|
105
|
-
></my-component>
|
|
106
|
-
</div>
|
|
107
|
-
</>
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export default App;
|
|
112
|
-
```
|
|
113
|
-
|
|
1
|
+
[](https://stenciljs.com)
|
|
2
|
+
|
|
3
|
+
# Stencil Component Starter
|
|
4
|
+
|
|
5
|
+
This is a starter project for building a standalone Web Component using Stencil.
|
|
6
|
+
|
|
7
|
+
Stencil is also great for building entire apps. For that, use the [stencil-app-starter](https://github.com/ionic-team/stencil-app-starter) instead.
|
|
8
|
+
|
|
9
|
+
# Stencil
|
|
10
|
+
|
|
11
|
+
Stencil is a compiler for building fast web apps using Web Components.
|
|
12
|
+
|
|
13
|
+
Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than runtime tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.
|
|
14
|
+
|
|
15
|
+
Stencil components are just Web Components, so they work in any major framework or with no framework at all.
|
|
16
|
+
|
|
17
|
+
## Getting Started
|
|
18
|
+
|
|
19
|
+
To start building a new web component using Stencil, clone this repo to a new directory:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
git clone https://github.com/ionic-team/stencil-component-starter.git my-component
|
|
23
|
+
cd my-component
|
|
24
|
+
git remote rm origin
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
and run:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install
|
|
31
|
+
npm start
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
To build the component for production, run:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm run build
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
To run the unit tests for the components, run:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npm test
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Need help? Check out our docs [here](https://stenciljs.com/docs/my-first-component).
|
|
47
|
+
|
|
48
|
+
## Naming Components
|
|
49
|
+
|
|
50
|
+
When creating new component tags, we recommend _not_ using `stencil` in the component name (ex: `<stencil-datepicker>`). This is because the generated component has little to nothing to do with Stencil; it's just a web component!
|
|
51
|
+
|
|
52
|
+
Instead, use a prefix that fits your company or any name for a group of related components. For example, all of the Ionic-generated web components use the prefix `ion`.
|
|
53
|
+
|
|
54
|
+
## Using this component
|
|
55
|
+
|
|
56
|
+
There are two strategies we recommend for using web components built with Stencil.
|
|
57
|
+
|
|
58
|
+
The first step for all two of these strategies is to [publish to NPM](https://docs.npmjs.com/getting-started/publishing-npm-packages).
|
|
59
|
+
|
|
60
|
+
You can read more about these different approaches in the [Stencil docs](https://stenciljs.com/docs/publishing).
|
|
61
|
+
|
|
62
|
+
### Lazy Loading
|
|
63
|
+
|
|
64
|
+
If your Stencil project is built with the [`dist`](https://stenciljs.com/docs/distribution) output target, you can import a small bootstrap script that registers all components and allows you to load individual component scripts lazily.
|
|
65
|
+
|
|
66
|
+
For example, given your Stencil project namespace is called `my-design-system`, to use `my-component` on any website, inject this into your HTML:
|
|
67
|
+
|
|
68
|
+
```html
|
|
69
|
+
<script type="module" src="https://unpkg.com/my-design-system"></script>
|
|
70
|
+
<!--
|
|
71
|
+
To avoid unpkg.com redirects to the actual file, you can also directly import:
|
|
72
|
+
https://unpkg.com/foobar-design-system@0.0.1/dist/foobar-design-system/foobar-design-system.esm.js
|
|
73
|
+
-->
|
|
74
|
+
<my-component first="Stencil" last="'Don't call me a framework' JS"></my-component>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
This will only load the necessary scripts needed to render `<my-component />`. Once more components of this package are used, they will automatically be loaded lazily.
|
|
78
|
+
|
|
79
|
+
You can also import the script as part of your `node_modules` in your applications entry file:
|
|
80
|
+
|
|
81
|
+
```tsx
|
|
82
|
+
import 'foobar-design-system/dist/foobar-design-system/foobar-design-system.esm.js';
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Check out this [Live Demo](https://stackblitz.com/edit/vitejs-vite-y6v26a?file=src%2Fmain.tsx).
|
|
86
|
+
|
|
87
|
+
### Standalone
|
|
88
|
+
|
|
89
|
+
If you are using a Stencil component library with `dist-custom-elements`, we recommend importing Stencil components individually in those files where they are needed.
|
|
90
|
+
|
|
91
|
+
To export Stencil components as standalone components make sure you have the [`dist-custom-elements`](https://stenciljs.com/docs/custom-elements) output target defined in your `stencil.config.ts`.
|
|
92
|
+
|
|
93
|
+
For example, given you'd like to use `<my-component />` as part of a React component, you can import the component directly via:
|
|
94
|
+
|
|
95
|
+
```tsx
|
|
96
|
+
import 'foobar-design-system/my-component';
|
|
97
|
+
|
|
98
|
+
function App() {
|
|
99
|
+
return (
|
|
100
|
+
<>
|
|
101
|
+
<div>
|
|
102
|
+
<my-component
|
|
103
|
+
first="Stencil"
|
|
104
|
+
last="'Don't call me a framework' JS"
|
|
105
|
+
></my-component>
|
|
106
|
+
</div>
|
|
107
|
+
</>
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export default App;
|
|
112
|
+
```
|
|
113
|
+
|
|
114
114
|
Check out this [Live Demo](https://stackblitz.com/edit/vitejs-vite-b6zuds?file=src%2FApp.tsx).
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",f="undefined"!=typeof window?window:{},a=f.document||{head:{}},d={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),m=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,v=[],y=[],$=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&d.l?g(w):d.raf(w))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{b(v),b(y),(p=v.length>0)&&d.raf(w)},g=e=>h().then(e),k=$(y,!0),S=e=>{const t=new URL(e,d.o);return t.origin!==f.location.origin?t.href:t.pathname},j={},O=e=>"object"==(e=typeof e)||"function"===e;function E(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>M,map:()=>x,ok:()=>C,unwrap:()=>T,unwrapErr:()=>A});var C=e=>({isOk:!0,isErr:!1,value:e}),M=e=>({isOk:!1,isErr:!0,value:e});function x(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>C(e))):C(n)}if(e.isErr)return M(e.value);throw"should never get here"}var P,R,T=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},L=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!O(l))&&(l+=""),i&&r?c[c.length-1].i+=l:c.push(i?H(null,l):l),r=i)};if(u(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const f=H(e,null);return f.u=t,c.length>0&&(f.h=c),f.m=o,f.p=s,f},H=(e,t)=>({l:0,v:e,i:t,$:null,h:null,u:null,m:null,p:null}),N={},D=e=>n(e).$hostElement$,F=(e,t,n)=>{const l=D(e);return{emit:e=>U(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},U=(e,t,n)=>{const l=d.ce(t,n);return e.dispatchEvent(l),l},W=new WeakMap,q=e=>"sc-"+e.k,G=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=V(n),s=V(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=O(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(u,t):e.removeAttribute(t)):(!r||4&i||s)&&!o&&(l=!0===l?"":l,f?e.setAttributeNS(u,t,l):e.setAttribute(t,l))}else if(t="-"===t[2]?t.slice(3):o(f,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(_);t=t.replace(z,""),n&&d.rel(e,t,n,o),l&&d.ael(e,t,l,o)}}},I=/\s/,V=e=>e?e.split(I):[],_="Capture",z=RegExp(_+"$"),B=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||j,s=t.u||j;for(const e of J(Object.keys(o)))e in s||G(l,e,o[e],void 0,n,t.l);for(const e of J(Object.keys(s)))G(l,e,o[e],s[e],n,t.l)};function J(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var K=!1,Q=!1,X=!1,Y=!1,Z=(e,t,n)=>{var l;const o=t.h[n];let s,i,r,c=0;if(K||(X=!0,"slot"===o.v&&(o.l|=o.h?2:1)),null!==o.i)s=o.$=a.createTextNode(o.i);else if(1&o.l)s=o.$=a.createTextNode("");else if(s=o.$=a.createElement(!K&&2&o.l?"slot-fb":o.v),B(null,o,Y),s.getRootNode().querySelector("body"),o.h)for(c=0;c<o.h.length;++c)i=Z(e,o,c),i&&s.appendChild(i);return s["s-hn"]=R,3&o.l&&(s["s-sr"]=!0,s["s-cr"]=P,s["s-sn"]=o.p||"",s["s-rf"]=null==(l=o.u)?void 0:l.ref,r=e&&e.h&&e.h[n],r&&r.v===o.v&&e.$&&ee(e.$,!1)),s},ee=(e,t)=>{d.l|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const l=n[e];l["s-hn"]!==R&&l["s-ol"]&&(de(se(l),l,oe(l)),l["s-ol"].remove(),l["s-ol"]=void 0,l["s-sh"]=void 0,X=!0),t&&ee(l,t)}d.l&=-2},te=(e,t,n,l,o,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(;o<=s;++o)l[o]&&(i=Z(null,n,o),i&&(l[o].$=i,de(r,i,oe(t))))},ne=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;ae(t),e&&(Q=!0,e["s-ol"]?e["s-ol"].remove():ee(e,!0),e.remove())}}},le=(e,t,n=!1)=>!(e.v!==t.v||("slot"===e.v?"S"in e&&n&&8!==e.$.nodeType||e.p!==t.p:!n&&e.m!==t.m)),oe=e=>e&&e["s-ol"]||e,se=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ie=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,i=t.i;let r;null===i?(("slot"!==t.v||K)&&B(e,t,Y),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=t.length-1,d=t[0],h=t[a],m=l.length-1,p=l[0],v=l[m];for(;r<=a&&c<=m;)if(null==d)d=t[++r];else if(null==h)h=t[--a];else if(null==p)p=l[++c];else if(null==v)v=l[--m];else if(le(d,p,o))ie(d,p,o),d=t[++r],p=l[++c];else if(le(h,v,o))ie(h,v,o),h=t[--a],v=l[--m];else if(le(d,v,o))"slot"!==d.v&&"slot"!==v.v||ee(d.$.parentNode,!1),ie(d,v,o),de(e,d.$,h.$.nextSibling),d=t[++r],v=l[--m];else if(le(h,p,o))"slot"!==d.v&&"slot"!==v.v||ee(h.$.parentNode,!1),ie(h,p,o),de(e,h.$,d.$),h=t[--a],p=l[++c];else{for(u=-1,f=r;f<=a;++f)if(t[f]&&null!==t[f].m&&t[f].m===p.m){u=f;break}u>=0?(i=t[u],i.v!==p.v?s=Z(t&&t[c],n,u):(ie(i,p,o),t[u]=void 0,s=i.$),p=l[++c]):(s=Z(t&&t[c],n,c),p=l[++c]),s&&de(se(d.$),s,oe(d.$))}r>a?te(e,null==l[m+1]?null:l[m+1].$,n,l,c,m):c>m&&ne(t,r,a)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),te(l,null,t,s,0,s.length-1)):!n&&null!==o&&ne(o,0,o.length-1)):(r=l["s-cr"])?r.parentNode.textContent=i:e.i!==i&&(l.data=i)},re=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const l of t)if(l!==e)if(l["s-hn"]!==e["s-hn"]||""!==n){if(1===l.nodeType&&(n===l.getAttribute("slot")||n===l["s-sn"])||3===l.nodeType&&n===l["s-sn"]){e.hidden=!0;break}}else if(1===l.nodeType||3===l.nodeType&&""!==l.textContent.trim()){e.hidden=!0;break}}re(e)}},ce=[],ue=e=>{let t,n,l;for(const o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=o["s-sn"];for(l=n.length-1;l>=0;l--)if(t=n[l],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"])if(fe(t,e)){let n=ce.find((e=>e.j===t));Q=!0,t["s-sn"]=t["s-sn"]||e,n?(n.j["s-sh"]=o["s-hn"],n.O=o):(t["s-sh"]=o["s-hn"],ce.push({O:o,j:t})),t["s-sr"]&&ce.map((e=>{fe(e.j,t["s-sn"])&&(n=ce.find((e=>e.j===t)),n&&!e.O&&(e.O=n.O))}))}else ce.some((e=>e.j===t))||ce.push({j:t})}1===o.nodeType&&ue(o)}},fe=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,ae=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(ae)},de=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),he=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},me=(e,t)=>{if(e.l|=16,!(4&e.l))return he(e,e.M),k((()=>pe(e,t)));e.l|=512},pe=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=ke(n,"componentWillLoad")),ve(l,(()=>$e(e,n,t)))},ve=(e,t)=>ye(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ye=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,$e=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.P;((e,t)=>{var n;const l=q(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=W.get(e=e.head||e);if(i||W.set(e,i=new Set),!i.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=d.R)?n:E(a);null!=l&&s.setAttribute("nonce",l),(!(1&t.l)||1&t.l&&"HEAD"!==e.nodeName)&&e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o])})(e.$hostElement$.getRootNode(),t)})(e);be(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>we(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},be=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{var l,o,s,i;const r=e.$hostElement$,c=e.P,u=e.T||H(null,null),f=(e=>e&&e.v===N)(t)?t:L(null,null,t);if(R=r.tagName,c.A&&(f.u=f.u||{},c.A.map((([e,t])=>f.u[t]=r[e]))),n&&f.u)for(const e of Object.keys(f.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(f.u[e]=r[e]);if(f.v=null,f.l|=4,e.T=f,f.$=u.$=r,K=!1,P=r["s-cr"],Q=!1,ie(u,f,n),d.l|=1,X){ue(f.$);for(const e of ce){const t=e.j;if(!t["s-ol"]){const e=a.createTextNode("");e["s-nr"]=t,de(t.parentNode,t["s-ol"]=e,t)}}for(const e of ce){const t=e.j,r=e.O;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(l=t["s-ol"])?void 0:l.previousSibling;for(;s;){let l=null!=(o=s["s-nr"])?o:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){for(l=l.nextSibling;l===t||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){n=l;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),de(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}Q&&re(f.$),d.l&=-2,ce.length=0,P=void 0})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},we=e=>{const t=e.$hostElement$,n=e.t,l=e.M;64&e.l||(e.l|=64,Se(t),ke(n,"componentDidLoad"),e.L(t),l||ge()),e.H(t),e.C&&(e.C(),e.C=void 0),512&e.l&&g((()=>me(e,!1))),e.l&=-517},ge=()=>{Se(a.documentElement),g((()=>U(f,"appload",{detail:{namespace:"lido-player"}})))},ke=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},Se=e=>e.classList.add("hydrated"),je=(e,t,l)=>{var o,i;const r=e.prototype;if(t.N||t.D||e.watchers){e.watchers&&!t.D&&(t.D=e.watchers);const c=Object.entries(null!=(o=t.N)?o:{});if(c.map((([e,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(r,e,{get(){return((e,t)=>n(this).F.get(t))(0,e)},set(l){((e,t,l,o)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${o.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.F.get(t),u=i.l,f=i.t;if(l=((e,t)=>null==e||O(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.N[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(i.F.set(t,l),f)){if(o.D&&128&u){const e=o.D[t];e&&e.map((e=>{try{f[e](l,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&me(i,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&o&&Object.defineProperty(r,e,{value(...t){var l;const o=n(this);return null==(l=null==o?void 0:o.U)?void 0:l.then((()=>{var n;return null==(n=o.t)?void 0:n[e](...t)}))}})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){d.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.D)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.D)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.A)||o.push([e,s])),s}))]))}}return e},Oe=e=>{ke(e,"disconnectedCallback")},Ee=(e,l={})=>{var o;const u=[],h=l.exclude||[],p=f.customElements,v=a.head,y=v.querySelector("meta[charset]"),$=a.createElement("style"),b=[];let w,g=!0;Object.assign(d,l),d.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let k=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],k:l[1],N:l[2],W:l[3]};4&c.l&&(k=!0),c.N=l[2],c.A=[],c.D=null!=(o=l[4])?o:{};const f=c.k,v=class extends HTMLElement{constructor(e){super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,P:n,F:new Map};l.U=new Promise((e=>l.H=e)),l.q=new Promise((e=>l.L=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),g?b.push(this):d.jmp((()=>(e=>{if(!(1&d.l)){const t=n(e),l=t.P,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.q)&&t.q.then((()=>{}));else{t.l|=1,12&l.l&&(e=>{const t=e["s-cr"]=a.createComment("");t["s-cn"]=!0,de(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){he(t,t.M=n);break}}l.N&&Object.entries(l.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.G){const e=(e=>{const t=e.k.replace(/-/g,"_"),n=e.G;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.k}#${t.I}" was not found`);l.isProxied||(n.D=l.watchers,je(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=q(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);m&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.M,c=()=>me(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.l)){const e=n(this);(null==e?void 0:e.t)?Oe(e.t):(null==e?void 0:e.q)&&e.q.then((()=>Oe(e.t)))}})()))}componentOnReady(){return n(this).q}};c.G=e[0],h.includes(f)||p.get(f)||(u.push(f),p.define(f,je(v,c,1)))}))})),u.length>0&&(k&&($.textContent+=c),$.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(o=d.R)?o:E(a);null!=e&&$.setAttribute("nonce",e),v.insertBefore($,y?y.nextSibling:v.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):d.jmp((()=>w=setTimeout(ge,30)))},Ce=e=>d.R=e;export{N as H,D as a,Ee as b,F as c,S as g,L as h,h as p,l as r,Ce as s}
|