@excom/content-carousel 0.1.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/.rush/temp/chunked-rush-logs/content-carousel.apply-exports.chunks.jsonl +1 -0
- package/.rush/temp/chunked-rush-logs/content-carousel.build_docs.chunks.jsonl +1 -0
- package/.rush/temp/chunked-rush-logs/content-carousel.build_package-metas.chunks.jsonl +1 -0
- package/.rush/temp/operation/apply-exports/all.log +1 -0
- package/.rush/temp/operation/apply-exports/log-chunks.jsonl +1 -0
- package/.rush/temp/operation/apply-exports/state.json +3 -0
- package/.rush/temp/operation/build_docs/all.log +1 -0
- package/.rush/temp/operation/build_docs/log-chunks.jsonl +1 -0
- package/.rush/temp/operation/build_docs/state.json +3 -0
- package/.rush/temp/operation/build_package-metas/all.log +1 -0
- package/.rush/temp/operation/build_package-metas/log-chunks.jsonl +1 -0
- package/.rush/temp/operation/build_package-metas/state.json +3 -0
- package/.rush/temp/shrinkwrap-deps.json +3 -0
- package/config/rig.json +5 -0
- package/content-carousel-slide.ts +19 -0
- package/content-carousel.ts +218 -0
- package/index.css +5 -0
- package/index.ts +24 -0
- package/package.json +43 -0
- package/rush-logs/content-carousel.apply-exports.cache.log +1 -0
- package/rush-logs/content-carousel.apply-exports.log +1 -0
- package/rush-logs/content-carousel.build_docs.cache.log +1 -0
- package/rush-logs/content-carousel.build_docs.log +1 -0
- package/rush-logs/content-carousel.build_package-metas.cache.log +1 -0
- package/rush-logs/content-carousel.build_package-metas.log +1 -0
- package/src/content-carousel.css +239 -0
- package/support/custom-elements.json +398 -0
- package/support/demos/fade.html +7 -0
- package/support/demos/manual.html +9 -0
- package/support/demos/simple.html +7 -0
- package/support/dist-docs/content-carousel-slide.md +20 -0
- package/support/dist-docs/content-carousel.md +184 -0
- package/support/docs/INTERNAL.md +4 -0
- package/support/docs/README.md +66 -0
- package/support/package-meta.json +287 -0
- package/support/tests/content-carousel.test.ts +534 -0
- package/support/tests/fade.view.test.ts +23 -0
- package/support/tests/manual.view.test.ts +34 -0
- package/support/tests/simple.view.test.ts +24 -0
- package/tsconfig.json +5 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# content-carousel
|
|
2
|
+
|
|
3
|
+
Rotate slides on autopilot or on click — galleries, hero banners, walkthroughs.
|
|
4
|
+
|
|
5
|
+
<include-content data-demo="simple"></include-content>
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- **Auto-play** Rotate on a timer via `auto-play`
|
|
10
|
+
- **Manual nav** `--back` / `--next` commands from plain buttons; `rel="prev"` / `rel="next"` positions them
|
|
11
|
+
- **Slide or fade** Choose the transition with `slide-animation`
|
|
12
|
+
- **Swipeable** `slide-animation="track"` wrapped in [`gesture-handler`](/nucleus/packages/gesture-handler): drag and flick between slides
|
|
13
|
+
- **Pauses itself** Manual navigation stops auto-play automatically
|
|
14
|
+
- **Bindable position** `.provision` is `{ index, count, lastMove }` — a
|
|
15
|
+
progress readout is one Quark rule on `prop("provision")`
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
<include-content is-active template-ref="/views/install-section/install-section.html"></include-content>
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
Wrap `<content-carousel-slide>` elements in a `<content-carousel>`. Mark one
|
|
24
|
+
`is-active`, or leave it unset to default to the first.
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<content-carousel auto-play="5">
|
|
28
|
+
<content-carousel-slide is-active>One</content-carousel-slide>
|
|
29
|
+
<content-carousel-slide>Two</content-carousel-slide>
|
|
30
|
+
<content-carousel-slide>Three</content-carousel-slide>
|
|
31
|
+
</content-carousel>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`.provision` is `{ index, count, lastMove }` — set on connect and after
|
|
35
|
+
every move, counting only this carousel's own slides. A "2 / 3" readout:
|
|
36
|
+
|
|
37
|
+
```quark
|
|
38
|
+
content-carousel {
|
|
39
|
+
$slide: prop("provision").index + 1;
|
|
40
|
+
$count: prop("provision").count;
|
|
41
|
+
[bind-progress] { content: "#{$slide} / #{$count}"; }
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### API Reference
|
|
46
|
+
|
|
47
|
+
<include-content is-active template-ref="/views/api-reference/api-reference.html"></include-content>
|
|
48
|
+
|
|
49
|
+
### Examples
|
|
50
|
+
|
|
51
|
+
#### Manual navigation
|
|
52
|
+
|
|
53
|
+
Invoke `--back` / `--next` from a `<button command commandfor>`. A direct
|
|
54
|
+
child with `rel="prev"` / `rel="next"` (or
|
|
55
|
+
`.tag-content-carousel-prev` / `.tag-content-carousel-next`) is
|
|
56
|
+
positioned as the nav control for you. If you want swipeable slides, you
|
|
57
|
+
must use the carousel in conjunction with the [<gesture-handler>](/nucleus/packages/gesture-handler).
|
|
58
|
+
A demo exists on that page.
|
|
59
|
+
|
|
60
|
+
<include-content data-demo="manual"></include-content>
|
|
61
|
+
|
|
62
|
+
#### Fade transition
|
|
63
|
+
|
|
64
|
+
`slide-animation="fade"` crossfades instead of sliding.
|
|
65
|
+
|
|
66
|
+
<include-content data-demo="fade"></include-content>
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
{
|
|
2
|
+
"shortName": "content-carousel",
|
|
3
|
+
"package": {
|
|
4
|
+
"name": "@excom/content-carousel",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"description": "<content-carousel> custom element",
|
|
7
|
+
"peerDependencies": {},
|
|
8
|
+
"excom": {
|
|
9
|
+
"packageType": "kit-element"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"demos": {
|
|
13
|
+
"fade": "<section>\n <content-carousel auto-play=\"1.5\" slide-animation=\"fade\">\n <content-carousel-slide is-active><h2>One</h2></content-carousel-slide>\n <content-carousel-slide><h2>Two</h2></content-carousel-slide>\n <content-carousel-slide><h2>Three</h2></content-carousel-slide>\n </content-carousel>\n</section>\n",
|
|
14
|
+
"manual": "<section>\n <content-carousel id=\"demo-carousel-manual\">\n <button type=\"button\" rel=\"prev\" command=\"--back\" commandfor=\"demo-carousel-manual\">‹</button>\n <button type=\"button\" rel=\"next\" command=\"--next\" commandfor=\"demo-carousel-manual\">›</button>\n <content-carousel-slide is-active><h2>One</h2></content-carousel-slide>\n <content-carousel-slide><h2>Two</h2></content-carousel-slide>\n <content-carousel-slide><h2>Three</h2></content-carousel-slide>\n </content-carousel>\n</section>\n",
|
|
15
|
+
"simple": "<section>\n <content-carousel auto-play=\"1.5\">\n <content-carousel-slide is-active><h2>One</h2></content-carousel-slide>\n <content-carousel-slide><h2>Two</h2></content-carousel-slide>\n <content-carousel-slide><h2>Three</h2></content-carousel-slide>\n </content-carousel>\n</section>"
|
|
16
|
+
},
|
|
17
|
+
"readme": "<h1 id=\"md-content-carousel\">content-carousel</h1>\n<p>Rotate slides on autopilot or on click — galleries, hero banners, walkthroughs.</p>\n<p><include-content data-demo=\"simple\"></include-content></p>\n<h2 id=\"md-features\">Features</h2>\n<ul>\n<li><strong>Auto-play</strong> Rotate on a timer via <code>auto-play</code></li>\n<li><strong>Manual nav</strong> <code>--back</code> / <code>--next</code> commands from plain buttons; <code>rel="prev"</code> / <code>rel="next"</code> positions them</li>\n<li><strong>Slide or fade</strong> Choose the transition with <code>slide-animation</code></li>\n<li><strong>Swipeable</strong> <code>slide-animation="track"</code> wrapped in <spa-a route-href=\"/nucleus/packages/gesture-handler\" role=\"link\"><code>gesture-handler</code></spa-a>: drag and flick between slides</li>\n<li><strong>Pauses itself</strong> Manual navigation stops auto-play automatically</li>\n<li><strong>Bindable position</strong> <code>.provision</code> is <code>{ index, count, lastMove }</code> — a\nprogress readout is one Quark rule on <code>prop("provision")</code></li>\n</ul>\n<h2 id=\"md-installation\">Installation</h2>\n<p><include-content is-active template-ref=\"/views/install-section/install-section.html\"></include-content></p>\n<h2 id=\"md-usage\">Usage</h2>\n<p>Wrap <code><content-carousel-slide></code> elements in a <code><content-carousel></code>. Mark one\n<code>is-active</code>, or leave it unset to default to the first.</p>\n<include-content data-language=\"html\"><template><content-carousel auto-play=\"5\">\n <content-carousel-slide is-active>One</content-carousel-slide>\n <content-carousel-slide>Two</content-carousel-slide>\n <content-carousel-slide>Three</content-carousel-slide>\n</content-carousel></template></include-content>\n<p><code>.provision</code> is <code>{ index, count, lastMove }</code> — set on connect and after\nevery move, counting only this carousel's own slides. A "2 / 3" readout:</p>\n<include-content data-language=\"quark\"><template>content-carousel {\n $slide: prop(\"provision\").index + 1;\n $count: prop(\"provision\").count;\n [bind-progress] { content: \"#{$slide} / #{$count}\"; }\n}</template></include-content>\n<h3 id=\"md-api-reference\">API Reference</h3>\n<p><include-content is-active template-ref=\"/views/api-reference/api-reference.html\"></include-content></p>\n<h3 id=\"md-examples\">Examples</h3>\n<h4 id=\"md-manual-navigation\">Manual navigation</h4>\n<p>Invoke <code>--back</code> / <code>--next</code> from a <code><button command commandfor></code>. A direct\nchild with <code>rel="prev"</code> / <code>rel="next"</code> (or\n<code>.tag-content-carousel-prev</code> / <code>.tag-content-carousel-next</code>) is\npositioned as the nav control for you. If you want swipeable slides, you\nmust use the carousel in conjunction with the <spa-a route-href=\"/nucleus/packages/gesture-handler\" role=\"link\"><gesture-handler></spa-a>.\nA demo exists on that page.</p>\n<p><include-content data-demo=\"manual\"></include-content></p>\n<h4 id=\"md-fade-transition\">Fade transition</h4>\n<p><code>slide-animation="fade"</code> crossfades instead of sliding.</p>\n<p><include-content data-demo=\"fade\"></include-content></p>\n",
|
|
18
|
+
"docs": {
|
|
19
|
+
"readme": "<h1 id=\"md-content-carousel\">content-carousel</h1>\n<p>Rotate slides on autopilot or on click — galleries, hero banners, walkthroughs.</p>\n<p><include-content data-demo=\"simple\"></include-content></p>\n<h2 id=\"md-features\">Features</h2>\n<ul>\n<li><strong>Auto-play</strong> Rotate on a timer via <code>auto-play</code></li>\n<li><strong>Manual nav</strong> <code>--back</code> / <code>--next</code> commands from plain buttons; <code>rel="prev"</code> / <code>rel="next"</code> positions them</li>\n<li><strong>Slide or fade</strong> Choose the transition with <code>slide-animation</code></li>\n<li><strong>Swipeable</strong> <code>slide-animation="track"</code> wrapped in <spa-a route-href=\"/nucleus/packages/gesture-handler\" role=\"link\"><code>gesture-handler</code></spa-a>: drag and flick between slides</li>\n<li><strong>Pauses itself</strong> Manual navigation stops auto-play automatically</li>\n<li><strong>Bindable position</strong> <code>.provision</code> is <code>{ index, count, lastMove }</code> — a\nprogress readout is one Quark rule on <code>prop("provision")</code></li>\n</ul>\n<h2 id=\"md-installation\">Installation</h2>\n<p><include-content is-active template-ref=\"/views/install-section/install-section.html\"></include-content></p>\n<h2 id=\"md-usage\">Usage</h2>\n<p>Wrap <code><content-carousel-slide></code> elements in a <code><content-carousel></code>. Mark one\n<code>is-active</code>, or leave it unset to default to the first.</p>\n<include-content data-language=\"html\"><template><content-carousel auto-play=\"5\">\n <content-carousel-slide is-active>One</content-carousel-slide>\n <content-carousel-slide>Two</content-carousel-slide>\n <content-carousel-slide>Three</content-carousel-slide>\n</content-carousel></template></include-content>\n<p><code>.provision</code> is <code>{ index, count, lastMove }</code> — set on connect and after\nevery move, counting only this carousel's own slides. A "2 / 3" readout:</p>\n<include-content data-language=\"quark\"><template>content-carousel {\n $slide: prop(\"provision\").index + 1;\n $count: prop(\"provision\").count;\n [bind-progress] { content: \"#{$slide} / #{$count}\"; }\n}</template></include-content>\n<h3 id=\"md-api-reference\">API Reference</h3>\n<p><include-content is-active template-ref=\"/views/api-reference/api-reference.html\"></include-content></p>\n<h3 id=\"md-examples\">Examples</h3>\n<h4 id=\"md-manual-navigation\">Manual navigation</h4>\n<p>Invoke <code>--back</code> / <code>--next</code> from a <code><button command commandfor></code>. A direct\nchild with <code>rel="prev"</code> / <code>rel="next"</code> (or\n<code>.tag-content-carousel-prev</code> / <code>.tag-content-carousel-next</code>) is\npositioned as the nav control for you. If you want swipeable slides, you\nmust use the carousel in conjunction with the <spa-a route-href=\"/nucleus/packages/gesture-handler\" role=\"link\"><gesture-handler></spa-a>.\nA demo exists on that page.</p>\n<p><include-content data-demo=\"manual\"></include-content></p>\n<h4 id=\"md-fade-transition\">Fade transition</h4>\n<p><code>slide-animation="fade"</code> crossfades instead of sliding.</p>\n<p><include-content data-demo=\"fade\"></include-content></p>\n"
|
|
20
|
+
},
|
|
21
|
+
"installation": {
|
|
22
|
+
"name": "@excom/content-carousel",
|
|
23
|
+
"shortName": "content-carousel",
|
|
24
|
+
"version": "0.1.0",
|
|
25
|
+
"description": "<content-carousel> custom element",
|
|
26
|
+
"packageType": "kit-element",
|
|
27
|
+
"cdn": "<script src=\"https://unpkg.com/@excom/kit-utils/dist/index.umd.min.js\"></script>\n<script src=\"https://unpkg.com/@excom/neutron/dist/index.umd.min.js\"></script>\n<script src=\"https://unpkg.com/@excom/content-carousel@0.1.0/dist/index.umd.min.js\"></script>\n<link rel=\"stylesheet\" href=\"https://unpkg.com/@excom/content-carousel@0.1.0/dist/index.css\">",
|
|
28
|
+
"install": {
|
|
29
|
+
"npm": "npm install @excom/content-carousel"
|
|
30
|
+
},
|
|
31
|
+
"imports": {
|
|
32
|
+
"js": "import \"@excom/content-carousel\";",
|
|
33
|
+
"css": "@import \"@excom/content-carousel\";",
|
|
34
|
+
"html": "<!-- import path to `node_modules` will depend on your build setup -->\n<script type=\"module\" src=\"/node_modules/@excom/content-carousel\"></script>\n<link rel=\"stylesheet\" href=\"/node_modules/@excom/content-carousel\">"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": []
|
|
37
|
+
},
|
|
38
|
+
"elementApis": [
|
|
39
|
+
{
|
|
40
|
+
"tag": "content-carousel",
|
|
41
|
+
"summary": "Slide rotator — auto-play, manual nav, slide or fade transition.",
|
|
42
|
+
"kind": "class",
|
|
43
|
+
"attributes": [
|
|
44
|
+
{
|
|
45
|
+
"name": "auto-play",
|
|
46
|
+
"type": "number",
|
|
47
|
+
"description": "Seconds between automatic slide advances. Unset disables auto-play.",
|
|
48
|
+
"fieldName": "autoPlay",
|
|
49
|
+
"surface": "option"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "is-scrubbing",
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"description": "Set when the element is being dragged. Used by CSS only to disable <code>transition</code>.",
|
|
55
|
+
"fieldName": "isScrubbing",
|
|
56
|
+
"surface": "option"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "slide-animation",
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "Transition used when the active slide changes.",
|
|
62
|
+
"fieldName": "slideAnimation",
|
|
63
|
+
"surface": "option",
|
|
64
|
+
"default": "\"slide\"",
|
|
65
|
+
"values": "\"slide\" | \"fade\""
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "auto-play-stopped",
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"description": "Set automatically after manual navigation, or when the element leaves the document (a DOM move keeps auto-play running), to pause auto-play. Set it directly to pause / resume auto-play programmatically.",
|
|
71
|
+
"fieldName": "autoPlayStopped",
|
|
72
|
+
"surface": "hybrid"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "last-move",
|
|
76
|
+
"type": "string",
|
|
77
|
+
"description": "Direction of the most recent slide change — drives the CSS animation direction.",
|
|
78
|
+
"fieldName": "lastMove",
|
|
79
|
+
"surface": "state",
|
|
80
|
+
"values": "\"forward\" | \"back\""
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"events": [
|
|
84
|
+
{
|
|
85
|
+
"name": "content-carousel-slide-changed",
|
|
86
|
+
"description": "After any slide change, manual or auto.",
|
|
87
|
+
"type": "ContentCarouselSlideChangedEvent",
|
|
88
|
+
"typeExpanded": "CustomEvent & { type: \"content-carousel-slide-changed\"; detail: { activeSlide: HTMLElement | null; previousSlide: HTMLElement | null; }; bubbles: true; cancelable: true; composed: true }"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"slots": [],
|
|
92
|
+
"cssProperties": [
|
|
93
|
+
{
|
|
94
|
+
"name": "--content-carousel-button-size",
|
|
95
|
+
"description": "Min-width of the nav buttons.",
|
|
96
|
+
"syntax": "<length>",
|
|
97
|
+
"default": "25px"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "--content-carousel-progress",
|
|
101
|
+
"description": "<code>slide-animation="track"</code> only: how far the track is dragged, in slide widths — <code>1</code> shows the next slide, <code>-1</code> the previous. While <code>is-scrubbing</code> it follows a wrapping <code><gesture-handler></code>'s inherited <code>--gesture-progress</code> unless set explicitly — swipeable carousels.",
|
|
102
|
+
"syntax": "<number>",
|
|
103
|
+
"default": "0"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "--content-carousel-slide-animation-duration",
|
|
107
|
+
"description": "Length of the slide / fade transition.",
|
|
108
|
+
"syntax": "<time>",
|
|
109
|
+
"default": "0.25s"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "--content-carousel-transition-ease",
|
|
113
|
+
"description": "Easing used for the fade transition.",
|
|
114
|
+
"syntax": "<easing-function>",
|
|
115
|
+
"default": "ease-out"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"cssClasses": [
|
|
119
|
+
{
|
|
120
|
+
"name": "tag-content-carousel-next",
|
|
121
|
+
"description": "Positions a direct child with <code>rel="next"</code> (or <code>.tag-content-carousel-next</code>) as the "next slide" nav control."
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "tag-content-carousel-prev",
|
|
125
|
+
"description": "Positions a direct child with <code>rel="prev"</code> (or <code>.tag-content-carousel-prev</code>) as the "previous slide" nav control."
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"cssAliases": [
|
|
129
|
+
{
|
|
130
|
+
"name": ":--content-carousel",
|
|
131
|
+
"selectors": [
|
|
132
|
+
"content-carousel",
|
|
133
|
+
".tag-content-carousel"
|
|
134
|
+
],
|
|
135
|
+
"kind": "element",
|
|
136
|
+
"description": ""
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": ":--content-carousel--is-scrubbing",
|
|
140
|
+
"selectors": [
|
|
141
|
+
"[is-scrubbing]",
|
|
142
|
+
"[data-scrubbing]"
|
|
143
|
+
],
|
|
144
|
+
"kind": "state",
|
|
145
|
+
"description": ""
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": ":--content-carousel--last-move",
|
|
149
|
+
"selectors": [
|
|
150
|
+
"[last-move]",
|
|
151
|
+
"[data-last-move]"
|
|
152
|
+
],
|
|
153
|
+
"kind": "state",
|
|
154
|
+
"description": ""
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": ":--content-carousel--last-move-back",
|
|
158
|
+
"selectors": [
|
|
159
|
+
"[last-move=\"back\"]",
|
|
160
|
+
"[data-last-move=\"back\"]"
|
|
161
|
+
],
|
|
162
|
+
"kind": "state",
|
|
163
|
+
"description": ""
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": ":--content-carousel--last-move-forward",
|
|
167
|
+
"selectors": [
|
|
168
|
+
"[last-move=\"forward\"]",
|
|
169
|
+
"[data-last-move=\"forward\"]"
|
|
170
|
+
],
|
|
171
|
+
"kind": "state",
|
|
172
|
+
"description": ""
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": ":--content-carousel--slide-animation",
|
|
176
|
+
"selectors": [
|
|
177
|
+
"[slide-animation]",
|
|
178
|
+
"[data-slide-animation]"
|
|
179
|
+
],
|
|
180
|
+
"kind": "state",
|
|
181
|
+
"description": ""
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": ":--content-carousel--slide-animation-fade",
|
|
185
|
+
"selectors": [
|
|
186
|
+
"[slide-animation=\"fade\"]",
|
|
187
|
+
"[data-slide-animation=\"fade\"]"
|
|
188
|
+
],
|
|
189
|
+
"kind": "state",
|
|
190
|
+
"description": ""
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": ":--content-carousel--slide-animation-slide",
|
|
194
|
+
"selectors": [
|
|
195
|
+
"[slide-animation=\"slide\"]",
|
|
196
|
+
"[data-slide-animation=\"slide\"]"
|
|
197
|
+
],
|
|
198
|
+
"kind": "state",
|
|
199
|
+
"description": ""
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": ":--content-carousel--slide-animation-track",
|
|
203
|
+
"selectors": [
|
|
204
|
+
"[slide-animation=\"track\"]",
|
|
205
|
+
"[data-slide-animation=\"track\"]"
|
|
206
|
+
],
|
|
207
|
+
"kind": "state",
|
|
208
|
+
"description": ""
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"listens": [],
|
|
212
|
+
"commands": [
|
|
213
|
+
{
|
|
214
|
+
"name": "--back",
|
|
215
|
+
"description": "Shows the previous slide (wraps to last). Stops auto-play."
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "--next",
|
|
219
|
+
"description": "Shows the next slide (wraps to first). Stops auto-play."
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"defaultActions": [],
|
|
223
|
+
"expectedChildren": [
|
|
224
|
+
{
|
|
225
|
+
"name": "descendant:content-carousel-slide",
|
|
226
|
+
"relationship": "descendant",
|
|
227
|
+
"selector": "content-carousel-slide",
|
|
228
|
+
"required": true,
|
|
229
|
+
"description": "Slides to rotate through. The first, or whichever has <code>is-active</code>, is shown initially."
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"provisions": [
|
|
233
|
+
{
|
|
234
|
+
"name": "provision",
|
|
235
|
+
"type": "ContentCarouselProvision",
|
|
236
|
+
"typeExpanded": "{ index: number; count: number; lastMove: \"forward\" | \"back\" | null; }",
|
|
237
|
+
"description": "Position: <code>{ index, count, lastMove }</code> — the active slide's index among this carousel's own slides, how many there are, and the direction of the last move. Set on connect and after every slide change. Not reflected as an attribute.",
|
|
238
|
+
"fieldName": "provision"
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"tag": "content-carousel-slide",
|
|
244
|
+
"summary": "One rotating slide of a content-carousel.",
|
|
245
|
+
"kind": "class",
|
|
246
|
+
"attributes": [
|
|
247
|
+
{
|
|
248
|
+
"name": "is-active",
|
|
249
|
+
"type": "boolean",
|
|
250
|
+
"description": "Marks this as the currently shown slide. The parent <code><content-carousel></code> keeps exactly one slide active.",
|
|
251
|
+
"fieldName": "isActive",
|
|
252
|
+
"surface": "hybrid"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"events": [],
|
|
256
|
+
"slots": [],
|
|
257
|
+
"cssProperties": [],
|
|
258
|
+
"cssClasses": [],
|
|
259
|
+
"cssAliases": [
|
|
260
|
+
{
|
|
261
|
+
"name": ":--content-carousel-slide",
|
|
262
|
+
"selectors": [
|
|
263
|
+
"content-carousel-slide",
|
|
264
|
+
".tag-content-carousel-slide"
|
|
265
|
+
],
|
|
266
|
+
"kind": "element",
|
|
267
|
+
"description": ""
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": ":--content-carousel-slide--is-active",
|
|
271
|
+
"selectors": [
|
|
272
|
+
"[is-active]",
|
|
273
|
+
"[aria-current]"
|
|
274
|
+
],
|
|
275
|
+
"kind": "state",
|
|
276
|
+
"description": ""
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"listens": [],
|
|
280
|
+
"commands": [],
|
|
281
|
+
"defaultActions": [],
|
|
282
|
+
"expectedChildren": [],
|
|
283
|
+
"provisions": []
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"exportedFiles": {}
|
|
287
|
+
}
|