@skeletonlabs/skeleton 2.5.1-dev.d65b1ca8 → 2.5.1-dev.d9e107cc
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.
|
@@ -34,7 +34,13 @@ function setActive(event) {
|
|
|
34
34
|
}
|
|
35
35
|
function onToggle(event) {
|
|
36
36
|
const currentOpenState = autocollapse ? $active === id : open;
|
|
37
|
-
dispatch("toggle", {
|
|
37
|
+
dispatch("toggle", {
|
|
38
|
+
event,
|
|
39
|
+
id,
|
|
40
|
+
panelId: `accordion-panel-${id}`,
|
|
41
|
+
open: currentOpenState,
|
|
42
|
+
autocollapse
|
|
43
|
+
});
|
|
38
44
|
}
|
|
39
45
|
if (autocollapse && open)
|
|
40
46
|
setActive();
|
|
@@ -62,7 +68,7 @@ $:
|
|
|
62
68
|
<button
|
|
63
69
|
type="button"
|
|
64
70
|
class="accordion-control {classesControl}"
|
|
65
|
-
|
|
71
|
+
{id}
|
|
66
72
|
on:click={setActive}
|
|
67
73
|
on:click
|
|
68
74
|
on:keydown
|
|
@@ -101,7 +107,7 @@ $:
|
|
|
101
107
|
out:dynamicTransition|local={{ transition: transitionOut, params: transitionOutParams, enabled: transitions }}
|
|
102
108
|
role="region"
|
|
103
109
|
aria-hidden={!openState}
|
|
104
|
-
aria-labelledby=
|
|
110
|
+
aria-labelledby={id}
|
|
105
111
|
>
|
|
106
112
|
<slot name="content">(content)</slot>
|
|
107
113
|
</div>
|
|
@@ -32,7 +32,7 @@ $:
|
|
|
32
32
|
aria-valuemax={max - min}
|
|
33
33
|
>
|
|
34
34
|
<!-- Meter -->
|
|
35
|
-
<div class="progress-bar-meter {classesMeter}
|
|
35
|
+
<div class="progress-bar-meter {classesMeter}" style:width="{indeterminate ? 100 : fillPercent}%" />
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
<style>
|