@sveltia/ui 0.25.7 → 0.25.9
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/dist/components/alert/alert.svelte +7 -3
- package/dist/components/alert/alert.svelte.d.ts +11 -10
- package/dist/components/alert/infobar.svelte +9 -5
- package/dist/components/alert/infobar.svelte.d.ts +15 -14
- package/dist/components/button/button-group.svelte +6 -2
- package/dist/components/button/button-group.svelte.d.ts +7 -6
- package/dist/components/button/button.svelte +5 -2
- package/dist/components/button/button.svelte.d.ts +2 -1
- package/dist/components/button/select-button-group.svelte +12 -8
- package/dist/components/button/select-button-group.svelte.d.ts +19 -18
- package/dist/components/button/select-button.svelte +6 -3
- package/dist/components/button/select-button.svelte.d.ts +4 -3
- package/dist/components/button/split-button.svelte +10 -7
- package/dist/components/button/split-button.svelte.d.ts +18 -17
- package/dist/components/calendar/calendar.svelte +1 -1
- package/dist/components/calendar/calendar.svelte.d.ts +2 -2
- package/dist/components/checkbox/checkbox-group.svelte +9 -5
- package/dist/components/checkbox/checkbox-group.svelte.d.ts +13 -12
- package/dist/components/checkbox/checkbox.svelte +13 -9
- package/dist/components/checkbox/checkbox.svelte.d.ts +19 -17
- package/dist/components/dialog/alert-dialog.svelte +5 -2
- package/dist/components/dialog/alert-dialog.svelte.d.ts +3 -1
- package/dist/components/dialog/confirmation-dialog.svelte +5 -2
- package/dist/components/dialog/confirmation-dialog.svelte.d.ts +3 -1
- package/dist/components/dialog/dialog.svelte +5 -2
- package/dist/components/dialog/dialog.svelte.d.ts +3 -1
- package/dist/components/dialog/prompt-dialog.svelte +16 -7
- package/dist/components/dialog/prompt-dialog.svelte.d.ts +17 -13
- package/dist/components/disclosure/disclosure.svelte +12 -8
- package/dist/components/disclosure/disclosure.svelte.d.ts +21 -20
- package/dist/components/divider/divider.svelte +3 -3
- package/dist/components/divider/divider.svelte.d.ts +6 -6
- package/dist/components/divider/spacer.svelte +2 -2
- package/dist/components/divider/spacer.svelte.d.ts +4 -4
- package/dist/components/drawer/drawer.svelte +18 -13
- package/dist/components/drawer/drawer.svelte.d.ts +39 -37
- package/dist/components/grid/grid-body.svelte +7 -3
- package/dist/components/grid/grid-body.svelte.d.ts +9 -8
- package/dist/components/grid/grid-cell.svelte +6 -2
- package/dist/components/grid/grid-cell.svelte.d.ts +7 -6
- package/dist/components/grid/grid-col-header.svelte +6 -2
- package/dist/components/grid/grid-col-header.svelte.d.ts +7 -6
- package/dist/components/grid/grid-foot.svelte +6 -2
- package/dist/components/grid/grid-foot.svelte.d.ts +7 -6
- package/dist/components/grid/grid-head.svelte +6 -2
- package/dist/components/grid/grid-head.svelte.d.ts +7 -6
- package/dist/components/grid/grid-row-header.svelte +6 -2
- package/dist/components/grid/grid-row-header.svelte.d.ts +7 -6
- package/dist/components/grid/grid-row.svelte +9 -5
- package/dist/components/grid/grid-row.svelte.d.ts +13 -12
- package/dist/components/grid/grid.svelte +10 -6
- package/dist/components/grid/grid.svelte.d.ts +15 -14
- package/dist/components/icon/icon.svelte +2 -2
- package/dist/components/icon/icon.svelte.d.ts +4 -4
- package/dist/components/listbox/listbox.svelte +18 -13
- package/dist/components/listbox/listbox.svelte.d.ts +27 -26
- package/dist/components/listbox/option-group.svelte +9 -5
- package/dist/components/listbox/option-group.svelte.d.ts +13 -12
- package/dist/components/listbox/option.svelte +12 -8
- package/dist/components/listbox/option.svelte.d.ts +17 -15
- package/dist/components/menu/menu-button.svelte +7 -4
- package/dist/components/menu/menu-button.svelte.d.ts +6 -5
- package/dist/components/menu/menu-item-checkbox.svelte +5 -2
- package/dist/components/menu/menu-item-checkbox.svelte.d.ts +3 -1
- package/dist/components/menu/menu-item-group.svelte +9 -5
- package/dist/components/menu/menu-item-group.svelte.d.ts +8 -8
- package/dist/components/menu/menu-item-radio.svelte +5 -2
- package/dist/components/menu/menu-item-radio.svelte.d.ts +3 -1
- package/dist/components/menu/menu-item.svelte +5 -2
- package/dist/components/menu/menu-item.svelte.d.ts +3 -1
- package/dist/components/menu/menu.svelte +9 -5
- package/dist/components/menu/menu.svelte.d.ts +13 -12
- package/dist/components/progressbar/progressbar.svelte +5 -5
- package/dist/components/progressbar/progressbar.svelte.d.ts +10 -10
- package/dist/components/radio/radio-group.svelte +13 -9
- package/dist/components/radio/radio-group.svelte.d.ts +21 -20
- package/dist/components/radio/radio.svelte +15 -11
- package/dist/components/radio/radio.svelte.d.ts +27 -26
- package/dist/components/select/combobox.svelte +6 -3
- package/dist/components/select/combobox.svelte.d.ts +3 -1
- package/dist/components/select/select-tags.svelte +16 -13
- package/dist/components/select/select-tags.svelte.d.ts +27 -28
- package/dist/components/select/select.svelte +5 -1
- package/dist/components/select/select.svelte.d.ts +2 -1
- package/dist/components/slider/slider.svelte +27 -25
- package/dist/components/slider/slider.svelte.d.ts +35 -34
- package/dist/components/switch/switch.svelte +13 -9
- package/dist/components/switch/switch.svelte.d.ts +21 -20
- package/dist/components/table/table-body.svelte +7 -3
- package/dist/components/table/table-body.svelte.d.ts +9 -8
- package/dist/components/table/table-cell.svelte +6 -2
- package/dist/components/table/table-cell.svelte.d.ts +7 -6
- package/dist/components/table/table-col-header.svelte +6 -2
- package/dist/components/table/table-col-header.svelte.d.ts +7 -6
- package/dist/components/table/table-foot.svelte +6 -2
- package/dist/components/table/table-foot.svelte.d.ts +7 -6
- package/dist/components/table/table-head.svelte +6 -2
- package/dist/components/table/table-head.svelte.d.ts +7 -6
- package/dist/components/table/table-row-header.svelte +6 -2
- package/dist/components/table/table-row-header.svelte.d.ts +7 -6
- package/dist/components/table/table-row.svelte +6 -2
- package/dist/components/table/table-row.svelte.d.ts +7 -6
- package/dist/components/table/table.svelte +6 -2
- package/dist/components/table/table.svelte.d.ts +7 -6
- package/dist/components/tabs/tab-box.svelte +7 -3
- package/dist/components/tabs/tab-box.svelte.d.ts +9 -8
- package/dist/components/tabs/tab-list.svelte +12 -8
- package/dist/components/tabs/tab-list.svelte.d.ts +19 -18
- package/dist/components/tabs/tab-panel.svelte +6 -2
- package/dist/components/tabs/tab-panel.svelte.d.ts +7 -6
- package/dist/components/tabs/tab-panels.svelte +6 -2
- package/dist/components/tabs/tab-panels.svelte.d.ts +7 -6
- package/dist/components/tabs/tab.svelte +6 -3
- package/dist/components/tabs/tab.svelte.d.ts +4 -3
- package/dist/components/text-editor/code-editor.svelte +16 -18
- package/dist/components/text-editor/code-editor.svelte.d.ts +25 -24
- package/dist/components/text-editor/core.d.ts +5 -3
- package/dist/components/text-editor/core.js +26 -15
- package/dist/components/text-editor/index.d.ts +12 -6
- package/dist/components/text-editor/index.js +7 -3
- package/dist/components/text-editor/lexical-root.svelte +27 -30
- package/dist/components/text-editor/lexical-root.svelte.d.ts +17 -16
- package/dist/components/text-editor/store.svelte.d.ts +2 -1
- package/dist/components/text-editor/store.svelte.js +10 -5
- package/dist/components/text-editor/text-editor.svelte +22 -13
- package/dist/components/text-editor/text-editor.svelte.d.ts +37 -32
- package/dist/components/text-editor/toolbar/code-editor-toolbar.svelte +3 -3
- package/dist/components/text-editor/toolbar/code-editor-toolbar.svelte.d.ts +6 -6
- package/dist/components/text-editor/toolbar/code-language-switcher.svelte +6 -2
- package/dist/components/text-editor/toolbar/code-language-switcher.svelte.d.ts +2 -2
- package/dist/components/text-editor/toolbar/format-text-button.svelte +6 -2
- package/dist/components/text-editor/toolbar/format-text-button.svelte.d.ts +5 -4
- package/dist/components/text-editor/toolbar/insert-image-button.svelte +6 -2
- package/dist/components/text-editor/toolbar/insert-image-button.svelte.d.ts +5 -4
- package/dist/components/text-editor/toolbar/insert-link-button.svelte +9 -4
- package/dist/components/text-editor/toolbar/insert-menu-button.svelte +6 -2
- package/dist/components/text-editor/toolbar/insert-menu-button.svelte.d.ts +5 -4
- package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte +10 -6
- package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte.d.ts +6 -6
- package/dist/components/text-editor/toolbar/toggle-block-menu-item.svelte +8 -5
- package/dist/components/text-editor/toolbar/toggle-block-menu-item.svelte.d.ts +5 -4
- package/dist/components/text-editor/toolbar/toolbar-wrapper.svelte +7 -3
- package/dist/components/text-editor/toolbar/toolbar-wrapper.svelte.d.ts +9 -8
- package/dist/components/text-editor/transformers/table.d.ts +3 -2
- package/dist/components/text-editor/transformers/table.js +5 -1
- package/dist/components/text-field/number-input.svelte +12 -8
- package/dist/components/text-field/number-input.svelte.d.ts +20 -17
- package/dist/components/text-field/password-input.svelte +8 -4
- package/dist/components/text-field/password-input.svelte.d.ts +10 -7
- package/dist/components/text-field/search-bar.svelte +9 -5
- package/dist/components/text-field/search-bar.svelte.d.ts +14 -11
- package/dist/components/text-field/text-area.svelte +18 -14
- package/dist/components/text-field/text-area.svelte.d.ts +29 -27
- package/dist/components/text-field/text-input.svelte +7 -3
- package/dist/components/text-field/text-input.svelte.d.ts +5 -3
- package/dist/components/toast/toast.svelte +10 -5
- package/dist/components/toast/toast.svelte.d.ts +16 -14
- package/dist/components/toolbar/toolbar.svelte +11 -7
- package/dist/components/toolbar/toolbar.svelte.d.ts +17 -16
- package/dist/components/util/app-shell.svelte +6 -3
- package/dist/components/util/app-shell.svelte.d.ts +7 -8
- package/dist/components/util/group.svelte +8 -4
- package/dist/components/util/group.svelte.d.ts +11 -10
- package/dist/components/util/modal.svelte +7 -3
- package/dist/components/util/modal.svelte.d.ts +2 -1
- package/dist/components/util/placeholder.svelte +5 -1
- package/dist/components/util/placeholder.svelte.d.ts +5 -4
- package/dist/components/util/popup.svelte +23 -17
- package/dist/components/util/popup.svelte.d.ts +36 -33
- package/dist/index.js +3 -3
- package/dist/services/events.svelte.d.ts +2 -1
- package/dist/services/events.svelte.js +12 -8
- package/dist/services/group.svelte.d.ts +2 -1
- package/dist/services/group.svelte.js +16 -12
- package/dist/services/popup.svelte.d.ts +16 -10
- package/dist/services/popup.svelte.js +14 -13
- package/dist/typedefs.d.ts +191 -189
- package/dist/typedefs.js +168 -164
- package/package.json +18 -18
|
@@ -8,105 +8,107 @@ type Drawer = {
|
|
|
8
8
|
* @see https://w3c.github.io/aria/#dialog
|
|
9
9
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
|
|
10
10
|
*/
|
|
11
|
-
declare const Drawer: import("svelte").Component<
|
|
11
|
+
declare const Drawer: import("svelte").Component<ModalProps & {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the content element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Whether to open the drawer.
|
|
18
18
|
*/
|
|
19
19
|
open?: boolean | undefined;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Title text displayed on the header.
|
|
22
22
|
*/
|
|
23
23
|
title?: string | undefined;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Position of the drawer.
|
|
26
26
|
*/
|
|
27
27
|
position?: "top" | "left" | "right" | "bottom" | undefined;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Width or height of the
|
|
30
30
|
* drawer.
|
|
31
31
|
*/
|
|
32
32
|
size?: "small" | "medium" | "large" | "x-large" | "full" | undefined;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Whether to show the Close button.
|
|
35
35
|
*/
|
|
36
36
|
showClose?: false | "inside" | "outside" | undefined;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Primary slot content.
|
|
39
39
|
*/
|
|
40
|
-
children?:
|
|
40
|
+
children?: Snippet<[]> | undefined;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Header slot content.
|
|
43
43
|
*/
|
|
44
|
-
header?:
|
|
44
|
+
header?: Snippet<[]> | undefined;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Header extra slot content.
|
|
47
47
|
*/
|
|
48
|
-
headerExtra?:
|
|
48
|
+
headerExtra?: Snippet<[]> | undefined;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Footer slot content.
|
|
51
51
|
*/
|
|
52
|
-
footer?:
|
|
52
|
+
footer?: Snippet<[]> | undefined;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Close icon slot content.
|
|
55
55
|
*/
|
|
56
|
-
closeIcon?:
|
|
56
|
+
closeIcon?: Snippet<[]> | undefined;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Extra content slot content.
|
|
59
59
|
*/
|
|
60
|
-
extraContent?:
|
|
60
|
+
extraContent?: Snippet<[]> | undefined;
|
|
61
61
|
} & Record<string, any>, {}, "open">;
|
|
62
62
|
type Props = {
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* The `class` attribute on the content element.
|
|
65
65
|
*/
|
|
66
66
|
class?: string | undefined;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Whether to open the drawer.
|
|
69
69
|
*/
|
|
70
70
|
open?: boolean | undefined;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Title text displayed on the header.
|
|
73
73
|
*/
|
|
74
74
|
title?: string | undefined;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Position of the drawer.
|
|
77
77
|
*/
|
|
78
78
|
position?: "top" | "left" | "right" | "bottom" | undefined;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Width or height of the
|
|
81
81
|
* drawer.
|
|
82
82
|
*/
|
|
83
83
|
size?: "small" | "medium" | "large" | "x-large" | "full" | undefined;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* Whether to show the Close button.
|
|
86
86
|
*/
|
|
87
87
|
showClose?: false | "inside" | "outside" | undefined;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* Primary slot content.
|
|
90
90
|
*/
|
|
91
|
-
children?:
|
|
91
|
+
children?: Snippet<[]> | undefined;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* Header slot content.
|
|
94
94
|
*/
|
|
95
|
-
header?:
|
|
95
|
+
header?: Snippet<[]> | undefined;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Header extra slot content.
|
|
98
98
|
*/
|
|
99
|
-
headerExtra?:
|
|
99
|
+
headerExtra?: Snippet<[]> | undefined;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Footer slot content.
|
|
102
102
|
*/
|
|
103
|
-
footer?:
|
|
103
|
+
footer?: Snippet<[]> | undefined;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Close icon slot content.
|
|
106
106
|
*/
|
|
107
|
-
closeIcon?:
|
|
107
|
+
closeIcon?: Snippet<[]> | undefined;
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* Extra content slot content.
|
|
110
110
|
*/
|
|
111
|
-
extraContent?:
|
|
111
|
+
extraContent?: Snippet<[]> | undefined;
|
|
112
112
|
};
|
|
113
|
+
import type { ModalProps } from '../../typedefs';
|
|
114
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,11 +5,15 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#rowgroup
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [class]
|
|
11
|
-
* @property {string} [label]
|
|
12
|
-
* @property {
|
|
14
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
15
|
+
* @property {string} [label] Display label for the row group.
|
|
16
|
+
* @property {Snippet} [children] Primary slot content.
|
|
13
17
|
*/
|
|
14
18
|
|
|
15
19
|
/**
|
|
@@ -10,29 +10,30 @@ type GridBody = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const GridBody: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the wrapper element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Display label for the row group.
|
|
18
18
|
*/
|
|
19
19
|
label?: string | undefined;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Primary slot content.
|
|
22
22
|
*/
|
|
23
|
-
children?:
|
|
23
|
+
children?: Snippet<[]> | undefined;
|
|
24
24
|
} & Record<string, any>, {}, "">;
|
|
25
25
|
type Props = {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* The `class` attribute on the wrapper element.
|
|
28
28
|
*/
|
|
29
29
|
class?: string | undefined;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Display label for the row group.
|
|
32
32
|
*/
|
|
33
33
|
label?: string | undefined;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Primary slot content.
|
|
36
36
|
*/
|
|
37
|
-
children?:
|
|
37
|
+
children?: Snippet<[]> | undefined;
|
|
38
38
|
};
|
|
39
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#gridcell
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [class]
|
|
11
|
-
* @property {
|
|
14
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
15
|
+
* @property {Snippet} [children] Primary slot content.
|
|
12
16
|
*/
|
|
13
17
|
|
|
14
18
|
/**
|
|
@@ -10,21 +10,22 @@ type GridCell = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const GridCell: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the wrapper element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Primary slot content.
|
|
18
18
|
*/
|
|
19
|
-
children?:
|
|
19
|
+
children?: Snippet<[]> | undefined;
|
|
20
20
|
} & Record<string, any>, {}, "">;
|
|
21
21
|
type Props = {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The `class` attribute on the wrapper element.
|
|
24
24
|
*/
|
|
25
25
|
class?: string | undefined;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Primary slot content.
|
|
28
28
|
*/
|
|
29
|
-
children?:
|
|
29
|
+
children?: Snippet<[]> | undefined;
|
|
30
30
|
};
|
|
31
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#columnheader
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [class]
|
|
11
|
-
* @property {
|
|
14
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
15
|
+
* @property {Snippet} [children] Primary slot content.
|
|
12
16
|
*/
|
|
13
17
|
|
|
14
18
|
/**
|
|
@@ -10,21 +10,22 @@ type GridColHeader = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const GridColHeader: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the wrapper element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Primary slot content.
|
|
18
18
|
*/
|
|
19
|
-
children?:
|
|
19
|
+
children?: Snippet<[]> | undefined;
|
|
20
20
|
} & Record<string, any>, {}, "">;
|
|
21
21
|
type Props = {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The `class` attribute on the wrapper element.
|
|
24
24
|
*/
|
|
25
25
|
class?: string | undefined;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Primary slot content.
|
|
28
28
|
*/
|
|
29
|
-
children?:
|
|
29
|
+
children?: Snippet<[]> | undefined;
|
|
30
30
|
};
|
|
31
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#rowgroup
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [class]
|
|
11
|
-
* @property {
|
|
14
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
15
|
+
* @property {Snippet} [children] Primary slot content.
|
|
12
16
|
*/
|
|
13
17
|
|
|
14
18
|
/**
|
|
@@ -10,21 +10,22 @@ type GridFoot = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const GridFoot: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the wrapper element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Primary slot content.
|
|
18
18
|
*/
|
|
19
|
-
children?:
|
|
19
|
+
children?: Snippet<[]> | undefined;
|
|
20
20
|
} & Record<string, any>, {}, "">;
|
|
21
21
|
type Props = {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The `class` attribute on the wrapper element.
|
|
24
24
|
*/
|
|
25
25
|
class?: string | undefined;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Primary slot content.
|
|
28
28
|
*/
|
|
29
|
-
children?:
|
|
29
|
+
children?: Snippet<[]> | undefined;
|
|
30
30
|
};
|
|
31
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#rowgroup
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [class]
|
|
11
|
-
* @property {
|
|
14
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
15
|
+
* @property {Snippet} [children] Primary slot content.
|
|
12
16
|
*/
|
|
13
17
|
|
|
14
18
|
/**
|
|
@@ -10,21 +10,22 @@ type GridHead = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const GridHead: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the wrapper element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Primary slot content.
|
|
18
18
|
*/
|
|
19
|
-
children?:
|
|
19
|
+
children?: Snippet<[]> | undefined;
|
|
20
20
|
} & Record<string, any>, {}, "">;
|
|
21
21
|
type Props = {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The `class` attribute on the wrapper element.
|
|
24
24
|
*/
|
|
25
25
|
class?: string | undefined;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Primary slot content.
|
|
28
28
|
*/
|
|
29
|
-
children?:
|
|
29
|
+
children?: Snippet<[]> | undefined;
|
|
30
30
|
};
|
|
31
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#rowheader
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [class]
|
|
11
|
-
* @property {
|
|
14
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
15
|
+
* @property {Snippet} [children] Primary slot content.
|
|
12
16
|
*/
|
|
13
17
|
|
|
14
18
|
/**
|
|
@@ -10,21 +10,22 @@ type GridRowHeader = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const GridRowHeader: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the wrapper element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Primary slot content.
|
|
18
18
|
*/
|
|
19
|
-
children?:
|
|
19
|
+
children?: Snippet<[]> | undefined;
|
|
20
20
|
} & Record<string, any>, {}, "">;
|
|
21
21
|
type Props = {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The `class` attribute on the wrapper element.
|
|
24
24
|
*/
|
|
25
25
|
class?: string | undefined;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Primary slot content.
|
|
28
28
|
*/
|
|
29
|
-
children?:
|
|
29
|
+
children?: Snippet<[]> | undefined;
|
|
30
30
|
};
|
|
31
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,14 +5,18 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#row
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [class]
|
|
11
|
-
* @property {boolean} [selected]
|
|
14
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
15
|
+
* @property {boolean} [selected] Whether to select the widget. An alias of the `aria-selected`
|
|
12
16
|
* attribute.
|
|
13
|
-
* @property {
|
|
14
|
-
* @property {(event: CustomEvent) => void} [onChange]
|
|
15
|
-
* @property {(event: CustomEvent) => void} [onSelect]
|
|
17
|
+
* @property {Snippet} [children] Primary slot content.
|
|
18
|
+
* @property {(event: CustomEvent) => void} [onChange] Custom `Change` event handler.
|
|
19
|
+
* @property {(event: CustomEvent) => void} [onSelect] Custom `Select` event handler.
|
|
16
20
|
*/
|
|
17
21
|
|
|
18
22
|
/**
|
|
@@ -10,47 +10,48 @@ type GridRow = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const GridRow: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the wrapper element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Whether to select the widget. An alias of the `aria-selected`
|
|
18
18
|
* attribute.
|
|
19
19
|
*/
|
|
20
20
|
selected?: boolean | undefined;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Primary slot content.
|
|
23
23
|
*/
|
|
24
|
-
children?:
|
|
24
|
+
children?: Snippet<[]> | undefined;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Custom `Change` event handler.
|
|
27
27
|
*/
|
|
28
28
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Custom `Select` event handler.
|
|
31
31
|
*/
|
|
32
32
|
onSelect?: ((event: CustomEvent) => void) | undefined;
|
|
33
33
|
} & Record<string, any>, {}, "">;
|
|
34
34
|
type Props = {
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The `class` attribute on the wrapper element.
|
|
37
37
|
*/
|
|
38
38
|
class?: string | undefined;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Whether to select the widget. An alias of the `aria-selected`
|
|
41
41
|
* attribute.
|
|
42
42
|
*/
|
|
43
43
|
selected?: boolean | undefined;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Primary slot content.
|
|
46
46
|
*/
|
|
47
|
-
children?:
|
|
47
|
+
children?: Snippet<[]> | undefined;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Custom `Change` event handler.
|
|
50
50
|
*/
|
|
51
51
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Custom `Select` event handler.
|
|
54
54
|
*/
|
|
55
55
|
onSelect?: ((event: CustomEvent) => void) | undefined;
|
|
56
56
|
};
|
|
57
|
+
import type { Snippet } from 'svelte';
|
|
@@ -7,15 +7,19 @@
|
|
|
7
7
|
<script>
|
|
8
8
|
import { activateGroup } from '../../services/group.svelte';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* @import { Snippet } from 'svelte';
|
|
12
|
+
*/
|
|
13
|
+
|
|
10
14
|
/**
|
|
11
15
|
* @typedef {object} Props
|
|
12
|
-
* @property {string} [class]
|
|
13
|
-
* @property {boolean} [selected]
|
|
16
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
17
|
+
* @property {boolean} [selected] Whether to allow selecting more than one `<GridRow>` and/or
|
|
14
18
|
* `<GridCell>`. An alias of the `aria-multiselectable` attribute.
|
|
15
|
-
* @property {boolean} [clickToSelect]
|
|
16
|
-
* @property {HTMLElement} [element]
|
|
17
|
-
* @property {
|
|
18
|
-
* @property {(event: CustomEvent) => void} [onChange]
|
|
19
|
+
* @property {boolean} [clickToSelect] Whether to select a row by clicking on it.
|
|
20
|
+
* @property {HTMLElement} [element] A reference to the wrapper element.
|
|
21
|
+
* @property {Snippet} [children] Primary slot content.
|
|
22
|
+
* @property {(event: CustomEvent) => void} [onChange] Custom `Change` event handler.
|
|
19
23
|
*/
|
|
20
24
|
|
|
21
25
|
/**
|
|
@@ -10,55 +10,56 @@ type Grid = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const Grid: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the wrapper element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Whether to allow selecting more than one `<GridRow>` and/or
|
|
18
18
|
* `<GridCell>`. An alias of the `aria-multiselectable` attribute.
|
|
19
19
|
*/
|
|
20
20
|
selected?: boolean | undefined;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Whether to select a row by clicking on it.
|
|
23
23
|
*/
|
|
24
24
|
clickToSelect?: boolean | undefined;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* A reference to the wrapper element.
|
|
27
27
|
*/
|
|
28
28
|
element?: HTMLElement | undefined;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Primary slot content.
|
|
31
31
|
*/
|
|
32
|
-
children?:
|
|
32
|
+
children?: Snippet<[]> | undefined;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Custom `Change` event handler.
|
|
35
35
|
*/
|
|
36
36
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
37
37
|
} & Record<string, any>, {}, "element">;
|
|
38
38
|
type Props = {
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* The `class` attribute on the wrapper element.
|
|
41
41
|
*/
|
|
42
42
|
class?: string | undefined;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Whether to allow selecting more than one `<GridRow>` and/or
|
|
45
45
|
* `<GridCell>`. An alias of the `aria-multiselectable` attribute.
|
|
46
46
|
*/
|
|
47
47
|
selected?: boolean | undefined;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Whether to select a row by clicking on it.
|
|
50
50
|
*/
|
|
51
51
|
clickToSelect?: boolean | undefined;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* A reference to the wrapper element.
|
|
54
54
|
*/
|
|
55
55
|
element?: HTMLElement | undefined;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Primary slot content.
|
|
58
58
|
*/
|
|
59
|
-
children?:
|
|
59
|
+
children?: Snippet<[]> | undefined;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Custom `Change` event handler.
|
|
62
62
|
*/
|
|
63
63
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
64
64
|
};
|
|
65
|
+
import type { Snippet } from 'svelte';
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<script>
|
|
7
7
|
/**
|
|
8
8
|
* @typedef {object} Props
|
|
9
|
-
* @property {string} [class]
|
|
10
|
-
* @property {string} [name]
|
|
9
|
+
* @property {string} [class] The `class` attribute on the `span` element.
|
|
10
|
+
* @property {string} [name] Icon name, e.g. `search`, `expand_more`, `close`, etc.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -9,21 +9,21 @@ type Icon = {
|
|
|
9
9
|
*/
|
|
10
10
|
declare const Icon: import("svelte").Component<{
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* The `class` attribute on the `span` element.
|
|
13
13
|
*/
|
|
14
14
|
class?: string | undefined;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Icon name, e.g. `search`, `expand_more`, `close`, etc.
|
|
17
17
|
*/
|
|
18
18
|
name?: string | undefined;
|
|
19
19
|
} & Record<string, any>, {}, "">;
|
|
20
20
|
type Props = {
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* The `class` attribute on the `span` element.
|
|
23
23
|
*/
|
|
24
24
|
class?: string | undefined;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Icon name, e.g. `search`, `expand_more`, `close`, etc.
|
|
27
27
|
*/
|
|
28
28
|
name?: string | undefined;
|
|
29
29
|
};
|