fluent-svelte-extra 1.7.2 → 1.7.3
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.
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script >import Checkbox from "../Checkbox/Checkbox.svelte";
|
|
2
|
+
import { createEventDispatcher } from "svelte";
|
|
3
|
+
const dispatch = createEventDispatcher();
|
|
2
4
|
/** Indicates the selected state of the grid view item. */
|
|
3
5
|
export let selected = false;
|
|
4
6
|
export let singleSelect = false;
|
|
@@ -14,7 +16,10 @@ function setSelected(value) {
|
|
|
14
16
|
<div class="grid-view-item" class:selected {...$$restProps}>
|
|
15
17
|
{#if !singleSelect}
|
|
16
18
|
<div class="item-checkbox">
|
|
17
|
-
<Checkbox
|
|
19
|
+
<Checkbox
|
|
20
|
+
bind:checked={selected}
|
|
21
|
+
on:change={() => dispatch("change", { selected: !selected })}
|
|
22
|
+
></Checkbox>
|
|
18
23
|
</div>
|
|
19
24
|
{/if}
|
|
20
25
|
|
package/package.json
CHANGED