@aurodesignsystem-dev/auro-slideshow 0.0.0-pr21.0 → 0.0.0-pr22.0
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/demo/api.html +1 -1
- package/demo/api.md +23 -0
- package/demo/auro-slideshow.min.js +275 -131
- package/dist/auro-slideshow-CJw31Ppp.js +109 -0
- package/dist/index.d.ts +14 -6
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +10 -8
- package/dist/auro-slideshow-Cmdb_wIX.js +0 -105
package/demo/api.html
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
Prism.highlightAll();
|
|
41
41
|
});
|
|
42
42
|
</script>
|
|
43
|
-
<script type="module" data-demo-script="true" src="
|
|
43
|
+
<script type="module" data-demo-script="true" src="./api.min.js"></script>
|
|
44
44
|
|
|
45
45
|
<!-- If additional elements are needed for the demo, add them here. -->
|
|
46
46
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
|
package/demo/api.md
CHANGED
|
@@ -18,6 +18,29 @@
|
|
|
18
18
|
| [playOnInit](#playOnInit) | `playOnInit` | `boolean` | false | If true, the slideshow will start playing automatically on page load. |
|
|
19
19
|
| [scrollSpeed](#scrollSpeed) | `scrollSpeed` | `number` | 1 | Number of pixels auto scroll should advance per frame. |
|
|
20
20
|
| [startDelay](#startDelay) | `startDelay` | `number` | 1000 | Delay in milliseconds before the auto scroll starts. |
|
|
21
|
+
|
|
22
|
+
## Methods
|
|
23
|
+
|
|
24
|
+
| Method | Type | Description |
|
|
25
|
+
|--------------|------------|--------------------------------|
|
|
26
|
+
| [play](#play) | `(): void` | Starts the slideshow playback. |
|
|
27
|
+
| [scrollNext](#scrollNext) | `(): void` | Scrolls to the next slide. |
|
|
28
|
+
| [scrollPrev](#scrollPrev) | `(): void` | Scrolls to the previous slide. |
|
|
29
|
+
| [stop](#stop) | `(): void` | Stops the slideshow playback. |
|
|
30
|
+
|
|
31
|
+
## Slots
|
|
32
|
+
|
|
33
|
+
| Name | Description |
|
|
34
|
+
|------|--------------------------------------------------|
|
|
35
|
+
| | Default slot for the slides. Each child element will be treated as a slide. |
|
|
36
|
+
|
|
37
|
+
## CSS Shadow Parts
|
|
38
|
+
|
|
39
|
+
| Part | Description |
|
|
40
|
+
|---------------------|---------------------------------------------|
|
|
41
|
+
| `next-button` | Use to style the next button control. |
|
|
42
|
+
| `play-pause-button` | Use to style the play/pause button control. |
|
|
43
|
+
| `prev-button` | Use to style the previous button control. |
|
|
21
44
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
22
45
|
|
|
23
46
|
## API Examples
|