@sveltia/ui 0.8.3 → 0.10.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/package/components/alert/alert.svelte +2 -4
- package/package/components/alert/alert.svelte.d.ts +2 -2
- package/package/components/button/button.svelte +78 -26
- package/package/components/button/button.svelte.d.ts +73 -63
- package/package/components/button/select-button-group.svelte +6 -1
- package/package/components/button/select-button-group.svelte.d.ts +13 -13
- package/package/components/button/select-button.svelte +2 -1
- package/package/components/button/select-button.svelte.d.ts +19 -19
- package/package/components/button/split-button.svelte +111 -0
- package/package/components/button/split-button.svelte.d.ts +69 -0
- package/package/components/calendar/calendar.svelte +2 -2
- package/package/components/calendar/calendar.svelte.d.ts +2 -2
- package/package/components/checkbox/checkbox-group.svelte.d.ts +7 -7
- package/package/components/checkbox/checkbox.svelte +8 -6
- package/package/components/checkbox/checkbox.svelte.d.ts +22 -16
- package/package/components/dialog/alert-dialog.svelte.d.ts +6 -6
- package/package/components/dialog/confirmation-dialog.svelte.d.ts +8 -8
- package/package/components/dialog/dialog.svelte +17 -15
- package/package/components/dialog/dialog.svelte.d.ts +30 -24
- package/package/components/dialog/prompt-dialog.svelte +1 -1
- package/package/components/dialog/prompt-dialog.svelte.d.ts +12 -12
- package/package/components/disclosure/disclosure.svelte +6 -1
- package/package/components/disclosure/disclosure.svelte.d.ts +29 -19
- package/package/components/divider/divider.svelte.d.ts +5 -5
- package/package/components/divider/spacer.svelte.d.ts +4 -4
- package/package/components/drawer/drawer.svelte +34 -16
- package/package/components/drawer/drawer.svelte.d.ts +22 -16
- package/package/components/grid/grid-body.svelte.d.ts +4 -4
- package/package/components/grid/grid-cell.svelte.d.ts +2 -2
- package/package/components/grid/grid-col-header.svelte.d.ts +2 -2
- package/package/components/grid/grid-foot.svelte.d.ts +2 -2
- package/package/components/grid/grid-head.svelte.d.ts +2 -2
- package/package/components/grid/grid-row-header.svelte.d.ts +2 -2
- package/package/components/grid/grid-row.svelte +10 -2
- package/package/components/grid/grid-row.svelte.d.ts +8 -8
- package/package/components/grid/grid.svelte +7 -2
- package/package/components/grid/grid.svelte.d.ts +8 -8
- package/package/components/icon/icon.svelte.d.ts +4 -4
- package/package/components/listbox/listbox.svelte +11 -5
- package/package/components/listbox/listbox.svelte.d.ts +15 -15
- package/package/components/listbox/option-group.svelte.d.ts +7 -7
- package/package/components/listbox/option.svelte +4 -2
- package/package/components/listbox/option.svelte.d.ts +15 -13
- package/package/components/menu/menu-button.svelte +18 -2
- package/package/components/menu/menu-button.svelte.d.ts +20 -16
- package/package/components/menu/menu-item-checkbox.svelte +1 -1
- package/package/components/menu/menu-item-checkbox.svelte.d.ts +16 -16
- package/package/components/menu/menu-item-group.svelte +1 -1
- package/package/components/menu/menu-item-group.svelte.d.ts +7 -7
- package/package/components/menu/menu-item-radio.svelte +1 -1
- package/package/components/menu/menu-item-radio.svelte.d.ts +16 -16
- package/package/components/menu/menu-item.svelte +32 -19
- package/package/components/menu/menu-item.svelte.d.ts +32 -18
- package/package/components/menu/menu.svelte +13 -7
- package/package/components/menu/menu.svelte.d.ts +7 -7
- package/package/components/radio/radio-group.svelte +6 -1
- package/package/components/radio/radio-group.svelte.d.ts +15 -15
- package/package/components/radio/radio.svelte +1 -1
- package/package/components/radio/radio.svelte.d.ts +14 -14
- package/package/components/select/combobox.svelte +10 -8
- package/package/components/select/combobox.svelte.d.ts +22 -16
- package/package/components/select/select.svelte.d.ts +12 -12
- package/package/components/slider/slider.svelte +26 -22
- package/package/components/slider/slider.svelte.d.ts +23 -23
- package/package/components/switch/switch.svelte +5 -0
- package/package/components/switch/switch.svelte.d.ts +18 -14
- package/package/components/table/table-body.svelte.d.ts +4 -4
- package/package/components/table/table-cell.svelte.d.ts +2 -2
- package/package/components/table/table-col-header.svelte.d.ts +2 -2
- package/package/components/table/table-foot.svelte.d.ts +2 -2
- package/package/components/table/table-head.svelte.d.ts +2 -2
- package/package/components/table/table-row-header.svelte.d.ts +2 -2
- package/package/components/table/table-row.svelte.d.ts +2 -2
- package/package/components/table/table.svelte.d.ts +2 -2
- package/package/components/tabs/tab-box.svelte +30 -0
- package/package/components/tabs/tab-box.svelte.d.ts +33 -0
- package/package/components/tabs/tab-list.svelte +105 -22
- package/package/components/tabs/tab-list.svelte.d.ts +10 -10
- package/package/components/tabs/tab-panel.svelte +6 -2
- package/package/components/tabs/tab-panel.svelte.d.ts +2 -2
- package/package/components/tabs/tab-panels.svelte +32 -0
- package/package/components/tabs/tab-panels.svelte.d.ts +31 -0
- package/package/components/tabs/tab.svelte.d.ts +11 -11
- package/package/components/text-field/markdown-editor.svelte.d.ts +12 -12
- package/package/components/text-field/number-input.svelte +11 -4
- package/package/components/text-field/number-input.svelte.d.ts +40 -20
- package/package/components/text-field/password-input.svelte +7 -3
- package/package/components/text-field/password-input.svelte.d.ts +30 -18
- package/package/components/text-field/search-bar.svelte +7 -3
- package/package/components/text-field/search-bar.svelte.d.ts +46 -36
- package/package/components/text-field/text-area.svelte +4 -2
- package/package/components/text-field/text-area.svelte.d.ts +25 -21
- package/package/components/text-field/text-input.svelte +17 -2
- package/package/components/text-field/text-input.svelte.d.ts +53 -53
- package/package/components/toast/toast.svelte +16 -12
- package/package/components/toast/toast.svelte.d.ts +8 -8
- package/package/components/toolbar/toolbar.svelte.d.ts +8 -8
- package/package/components/util/app-shell.svelte +162 -74
- package/package/components/util/app-shell.svelte.d.ts +2 -0
- package/package/components/util/group.svelte.d.ts +5 -5
- package/package/components/util/modal.svelte +26 -9
- package/package/components/util/modal.svelte.d.ts +34 -34
- package/package/components/util/popup.svelte +58 -32
- package/package/components/util/popup.svelte.d.ts +34 -24
- package/package/components/util/portal.svelte +5 -3
- package/package/components/util/portal.svelte.d.ts +2 -2
- package/package/index.d.ts +6 -3
- package/package/index.js +7 -4
- package/package/locales/en.d.ts +4 -0
- package/package/locales/en.js +4 -0
- package/package/locales/ja.d.ts +4 -0
- package/package/locales/ja.js +4 -0
- package/package/services/events.d.ts +1 -1
- package/package/services/events.js +11 -8
- package/package/services/group.js +73 -30
- package/package/services/popup.d.ts +28 -11
- package/package/services/popup.js +27 -10
- package/package/services/util.d.ts +2 -2
- package/package/services/util.js +5 -5
- package/package/styles/core.scss +1 -0
- package/package/styles/variables.scss +24 -4
- package/package.json +49 -25
|
@@ -8,31 +8,36 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export default class Disclosure extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
-
class?: string;
|
|
12
|
-
label?: string;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
hidden?: boolean;
|
|
15
|
-
expanded?: boolean;
|
|
11
|
+
class?: string | undefined;
|
|
12
|
+
label?: string | undefined;
|
|
13
|
+
disabled?: boolean | undefined;
|
|
14
|
+
hidden?: boolean | undefined;
|
|
15
|
+
expanded?: boolean | undefined;
|
|
16
16
|
}, {
|
|
17
|
+
change: CustomEvent<any>;
|
|
18
|
+
} & {
|
|
17
19
|
[evt: string]: CustomEvent<any>;
|
|
18
20
|
}, {
|
|
21
|
+
'chevron-icon': {
|
|
22
|
+
slot: string;
|
|
23
|
+
};
|
|
19
24
|
default: {};
|
|
20
25
|
}> {
|
|
21
26
|
/**accessor*/
|
|
22
|
-
set class(arg: string);
|
|
23
|
-
get class(): string;
|
|
27
|
+
set class(arg: string | undefined);
|
|
28
|
+
get class(): string | undefined;
|
|
24
29
|
/**accessor*/
|
|
25
|
-
set hidden(arg: boolean);
|
|
26
|
-
get hidden(): boolean;
|
|
30
|
+
set hidden(arg: boolean | undefined);
|
|
31
|
+
get hidden(): boolean | undefined;
|
|
27
32
|
/**accessor*/
|
|
28
|
-
set disabled(arg: boolean);
|
|
29
|
-
get disabled(): boolean;
|
|
33
|
+
set disabled(arg: boolean | undefined);
|
|
34
|
+
get disabled(): boolean | undefined;
|
|
30
35
|
/**accessor*/
|
|
31
|
-
set expanded(arg: boolean);
|
|
32
|
-
get expanded(): boolean;
|
|
36
|
+
set expanded(arg: boolean | undefined);
|
|
37
|
+
get expanded(): boolean | undefined;
|
|
33
38
|
/**accessor*/
|
|
34
|
-
set label(arg: string);
|
|
35
|
-
get label(): string;
|
|
39
|
+
set label(arg: string | undefined);
|
|
40
|
+
get label(): string | undefined;
|
|
36
41
|
}
|
|
37
42
|
export type DisclosureProps = typeof __propDef.props;
|
|
38
43
|
export type DisclosureEvents = typeof __propDef.events;
|
|
@@ -41,16 +46,21 @@ import { SvelteComponent } from "svelte";
|
|
|
41
46
|
declare const __propDef: {
|
|
42
47
|
props: {
|
|
43
48
|
[x: string]: any;
|
|
44
|
-
class?: string;
|
|
45
|
-
label?: string;
|
|
46
|
-
disabled?: boolean;
|
|
49
|
+
class?: string | undefined;
|
|
50
|
+
label?: string | undefined;
|
|
51
|
+
disabled?: boolean | undefined;
|
|
47
52
|
hidden?: boolean | undefined;
|
|
48
|
-
expanded?: boolean;
|
|
53
|
+
expanded?: boolean | undefined;
|
|
49
54
|
};
|
|
50
55
|
events: {
|
|
56
|
+
change: CustomEvent<any>;
|
|
57
|
+
} & {
|
|
51
58
|
[evt: string]: CustomEvent<any>;
|
|
52
59
|
};
|
|
53
60
|
slots: {
|
|
61
|
+
'chevron-icon': {
|
|
62
|
+
slot: string;
|
|
63
|
+
};
|
|
54
64
|
default: {};
|
|
55
65
|
};
|
|
56
66
|
};
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export default class Divider extends SvelteComponent<{
|
|
9
9
|
[x: string]: any;
|
|
10
|
-
class?: string;
|
|
11
|
-
hidden?: boolean;
|
|
12
|
-
orientation?: "vertical" | "horizontal";
|
|
10
|
+
class?: string | undefined;
|
|
11
|
+
hidden?: boolean | undefined;
|
|
12
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
[evt: string]: CustomEvent<any>;
|
|
15
15
|
}, {}> {
|
|
@@ -21,9 +21,9 @@ import { SvelteComponent } from "svelte";
|
|
|
21
21
|
declare const __propDef: {
|
|
22
22
|
props: {
|
|
23
23
|
[x: string]: any;
|
|
24
|
-
class?: string;
|
|
24
|
+
class?: string | undefined;
|
|
25
25
|
hidden?: boolean | undefined;
|
|
26
|
-
orientation?:
|
|
26
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
27
27
|
};
|
|
28
28
|
events: {
|
|
29
29
|
[evt: string]: CustomEvent<any>;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/** A content divider with no line. It can be flexible. */
|
|
5
5
|
export default class Spacer extends SvelteComponent<{
|
|
6
6
|
[x: string]: any;
|
|
7
|
-
class?: string;
|
|
8
|
-
flex?: boolean;
|
|
7
|
+
class?: string | undefined;
|
|
8
|
+
flex?: boolean | undefined;
|
|
9
9
|
}, {
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
}, {}> {
|
|
@@ -17,8 +17,8 @@ import { SvelteComponent } from "svelte";
|
|
|
17
17
|
declare const __propDef: {
|
|
18
18
|
props: {
|
|
19
19
|
[x: string]: any;
|
|
20
|
-
class?: string;
|
|
21
|
-
flex?: boolean;
|
|
20
|
+
class?: string | undefined;
|
|
21
|
+
flex?: boolean | undefined;
|
|
22
22
|
};
|
|
23
23
|
events: {
|
|
24
24
|
[evt: string]: CustomEvent<any>;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
export let position = 'right';
|
|
36
36
|
/**
|
|
37
37
|
* Width or height of the drawer.
|
|
38
|
-
* @type {'small' | 'medium' | 'large' | 'x-large'}
|
|
38
|
+
* @type {'small' | 'medium' | 'large' | 'x-large' | 'full'}
|
|
39
39
|
*/
|
|
40
40
|
export let size = 'small';
|
|
41
41
|
/**
|
|
@@ -97,15 +97,17 @@
|
|
|
97
97
|
modal.close('close');
|
|
98
98
|
}}
|
|
99
99
|
>
|
|
100
|
-
<
|
|
100
|
+
<slot name="close-button" slot="start-icon">
|
|
101
|
+
<Icon name="close" />
|
|
102
|
+
</slot>
|
|
101
103
|
</Button>
|
|
102
104
|
{/if}
|
|
103
105
|
</div>
|
|
104
106
|
{#if title || showClose === 'inside' || $$slots.header || $$slots['header-extra']}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
{#if $$slots.header}
|
|
108
|
+
<slot name="header" />
|
|
109
|
+
{:else}
|
|
110
|
+
<div role="none" class="header">
|
|
109
111
|
<div role="none" class="title">
|
|
110
112
|
{title}
|
|
111
113
|
</div>
|
|
@@ -124,11 +126,13 @@
|
|
|
124
126
|
modal.close('close');
|
|
125
127
|
}}
|
|
126
128
|
>
|
|
127
|
-
<
|
|
129
|
+
<slot name="close-button" slot="start-icon">
|
|
130
|
+
<Icon name="close" />
|
|
131
|
+
</slot>
|
|
128
132
|
</Button>
|
|
129
133
|
{/if}
|
|
130
|
-
|
|
131
|
-
|
|
134
|
+
</div>
|
|
135
|
+
{/if}
|
|
132
136
|
{/if}
|
|
133
137
|
<div role="none" class="main">
|
|
134
138
|
<slot />
|
|
@@ -145,7 +149,6 @@
|
|
|
145
149
|
position: absolute;
|
|
146
150
|
display: flex;
|
|
147
151
|
flex-direction: column;
|
|
148
|
-
border-radius: 4px;
|
|
149
152
|
max-width: 100dvw;
|
|
150
153
|
max-height: 100dvh;
|
|
151
154
|
background-color: var(--sui-secondary-background-color-translucent);
|
|
@@ -169,6 +172,7 @@
|
|
|
169
172
|
}
|
|
170
173
|
.content.right {
|
|
171
174
|
inset: 0 0 0 auto;
|
|
175
|
+
border-radius: var(--sui-drawer-right-content-border-radius, var(--sui-drawer-content-border-radius, 4px 0 0 4px));
|
|
172
176
|
}
|
|
173
177
|
.content.right .extra-control {
|
|
174
178
|
inset: 0 100% auto auto;
|
|
@@ -178,6 +182,7 @@
|
|
|
178
182
|
}
|
|
179
183
|
.content.left {
|
|
180
184
|
inset: 0 auto 0 0;
|
|
185
|
+
border-radius: var(--sui-drawer-left-content-border-radius, var(--sui-drawer-content-border-radius, 0 4px 4px 0));
|
|
181
186
|
}
|
|
182
187
|
.content.left .extra-control {
|
|
183
188
|
inset: 0 auto auto 100%;
|
|
@@ -205,8 +210,14 @@
|
|
|
205
210
|
.content.vertical.x-large {
|
|
206
211
|
width: 1000px;
|
|
207
212
|
}
|
|
213
|
+
.content.vertical.full {
|
|
214
|
+
border-radius: 0 !important;
|
|
215
|
+
width: 100dvw;
|
|
216
|
+
max-width: none !important;
|
|
217
|
+
}
|
|
208
218
|
.content.top {
|
|
209
219
|
inset: 0 0 auto 0;
|
|
220
|
+
border-radius: var(--sui-drawer-top-content-border-radius, var(--sui-drawer-content-border-radius, 0 0 4px 4px));
|
|
210
221
|
}
|
|
211
222
|
.content.top .extra-control {
|
|
212
223
|
inset: 100% 0 auto auto;
|
|
@@ -216,6 +227,7 @@
|
|
|
216
227
|
}
|
|
217
228
|
.content.bottom {
|
|
218
229
|
inset: auto 0 0 0;
|
|
230
|
+
border-radius: var(--sui-drawer-bottom-content-border-radius, var(--sui-drawer-content-border-radius, 4px 4px 0 0));
|
|
219
231
|
}
|
|
220
232
|
.content.bottom .extra-control {
|
|
221
233
|
inset: auto 0 100% auto;
|
|
@@ -243,6 +255,11 @@
|
|
|
243
255
|
.content.horizontal.x-large {
|
|
244
256
|
height: 1000px;
|
|
245
257
|
}
|
|
258
|
+
.content.horizontal.full {
|
|
259
|
+
border-radius: 0 !important;
|
|
260
|
+
height: 100dvh;
|
|
261
|
+
max-height: none !important;
|
|
262
|
+
}
|
|
246
263
|
|
|
247
264
|
.header,
|
|
248
265
|
.footer {
|
|
@@ -252,12 +269,13 @@
|
|
|
252
269
|
}
|
|
253
270
|
|
|
254
271
|
.header {
|
|
272
|
+
flex-direction: var(--sui-drawer-header-flex-direction, row);
|
|
255
273
|
box-sizing: content-box;
|
|
256
|
-
margin: 0 16px;
|
|
257
|
-
border-width: 0 0 1px;
|
|
258
|
-
border-color: var(--sui-secondary-border-color);
|
|
259
|
-
padding: 16px 8px;
|
|
260
|
-
height: 32px;
|
|
274
|
+
margin: var(--sui-drawer-header-margin, 0 16px);
|
|
275
|
+
border-width: var(--sui-drawer-header-border-width, 0 0 1px);
|
|
276
|
+
border-color: var(--sui-drawer-header-border-color, var(--sui-secondary-border-color));
|
|
277
|
+
padding: var(--sui-drawer-header-padding, 16px 8px);
|
|
278
|
+
height: var(--sui-drawer-header-height, 32px);
|
|
261
279
|
}
|
|
262
280
|
.header .title {
|
|
263
281
|
font-size: var(--sui-font-size-large);
|
|
@@ -270,6 +288,6 @@
|
|
|
270
288
|
.main {
|
|
271
289
|
flex: auto;
|
|
272
290
|
overflow: auto;
|
|
273
|
-
padding: 24px;
|
|
291
|
+
padding: var(--sui-drawer-main-padding, 24px);
|
|
274
292
|
white-space: normal;
|
|
275
293
|
}</style>
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export default class Drawer extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
-
class?: string;
|
|
12
|
-
title?: string;
|
|
13
|
-
size?: "small" | "medium" | "large" | "x-large";
|
|
14
|
-
position?: "top" | "right" | "bottom" | "left";
|
|
15
|
-
open?: boolean;
|
|
16
|
-
lightDismiss?: boolean;
|
|
17
|
-
keepContent?: boolean;
|
|
18
|
-
showClose?: false | "inside" | "outside";
|
|
11
|
+
class?: string | undefined;
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
size?: "small" | "medium" | "large" | "x-large" | "full" | undefined;
|
|
14
|
+
position?: "top" | "right" | "bottom" | "left" | undefined;
|
|
15
|
+
open?: boolean | undefined;
|
|
16
|
+
lightDismiss?: boolean | undefined;
|
|
17
|
+
keepContent?: boolean | undefined;
|
|
18
|
+
showClose?: false | "inside" | "outside" | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
opening: CustomEvent<any>;
|
|
21
21
|
open: CustomEvent<any>;
|
|
@@ -26,6 +26,9 @@ export default class Drawer extends SvelteComponent<{
|
|
|
26
26
|
} & {
|
|
27
27
|
[evt: string]: CustomEvent<any>;
|
|
28
28
|
}, {
|
|
29
|
+
'close-button': {
|
|
30
|
+
slot: string;
|
|
31
|
+
};
|
|
29
32
|
header: {};
|
|
30
33
|
'header-extra': {};
|
|
31
34
|
default: {};
|
|
@@ -39,14 +42,14 @@ import { SvelteComponent } from "svelte";
|
|
|
39
42
|
declare const __propDef: {
|
|
40
43
|
props: {
|
|
41
44
|
[x: string]: any;
|
|
42
|
-
class?: string;
|
|
43
|
-
title?: string;
|
|
44
|
-
size?:
|
|
45
|
-
position?:
|
|
46
|
-
open?: boolean;
|
|
47
|
-
lightDismiss?: boolean;
|
|
48
|
-
keepContent?: boolean;
|
|
49
|
-
showClose?:
|
|
45
|
+
class?: string | undefined;
|
|
46
|
+
title?: string | undefined;
|
|
47
|
+
size?: "small" | "medium" | "large" | "x-large" | "full" | undefined;
|
|
48
|
+
position?: "top" | "right" | "bottom" | "left" | undefined;
|
|
49
|
+
open?: boolean | undefined;
|
|
50
|
+
lightDismiss?: boolean | undefined;
|
|
51
|
+
keepContent?: boolean | undefined;
|
|
52
|
+
showClose?: false | "inside" | "outside" | undefined;
|
|
50
53
|
};
|
|
51
54
|
events: {
|
|
52
55
|
opening: CustomEvent<any>;
|
|
@@ -59,6 +62,9 @@ declare const __propDef: {
|
|
|
59
62
|
[evt: string]: CustomEvent<any>;
|
|
60
63
|
};
|
|
61
64
|
slots: {
|
|
65
|
+
'close-button': {
|
|
66
|
+
slot: string;
|
|
67
|
+
};
|
|
62
68
|
header: {};
|
|
63
69
|
'header-extra': {};
|
|
64
70
|
default: {};
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export default class GridBody extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
-
class?: string;
|
|
12
|
-
label?: string;
|
|
11
|
+
class?: string | undefined;
|
|
12
|
+
label?: string | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
[evt: string]: CustomEvent<any>;
|
|
15
15
|
}, {
|
|
@@ -23,8 +23,8 @@ import { SvelteComponent } from "svelte";
|
|
|
23
23
|
declare const __propDef: {
|
|
24
24
|
props: {
|
|
25
25
|
[x: string]: any;
|
|
26
|
-
class?: string;
|
|
27
|
-
label?: string;
|
|
26
|
+
class?: string | undefined;
|
|
27
|
+
label?: string | undefined;
|
|
28
28
|
};
|
|
29
29
|
events: {
|
|
30
30
|
[evt: string]: CustomEvent<any>;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export default class GridCell extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
-
class?: string;
|
|
11
|
+
class?: string | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
}, {
|
|
@@ -22,7 +22,7 @@ import { SvelteComponent } from "svelte";
|
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
24
|
[x: string]: any;
|
|
25
|
-
class?: string;
|
|
25
|
+
class?: string | undefined;
|
|
26
26
|
};
|
|
27
27
|
events: {
|
|
28
28
|
[evt: string]: CustomEvent<any>;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export default class GridColHeader extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
-
class?: string;
|
|
11
|
+
class?: string | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
}, {
|
|
@@ -22,7 +22,7 @@ import { SvelteComponent } from "svelte";
|
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
24
|
[x: string]: any;
|
|
25
|
-
class?: string;
|
|
25
|
+
class?: string | undefined;
|
|
26
26
|
};
|
|
27
27
|
events: {
|
|
28
28
|
[evt: string]: CustomEvent<any>;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export default class GridFoot extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
-
class?: string;
|
|
11
|
+
class?: string | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
}, {
|
|
@@ -22,7 +22,7 @@ import { SvelteComponent } from "svelte";
|
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
24
|
[x: string]: any;
|
|
25
|
-
class?: string;
|
|
25
|
+
class?: string | undefined;
|
|
26
26
|
};
|
|
27
27
|
events: {
|
|
28
28
|
[evt: string]: CustomEvent<any>;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export default class GridHead extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
-
class?: string;
|
|
11
|
+
class?: string | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
}, {
|
|
@@ -22,7 +22,7 @@ import { SvelteComponent } from "svelte";
|
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
24
|
[x: string]: any;
|
|
25
|
-
class?: string;
|
|
25
|
+
class?: string | undefined;
|
|
26
26
|
};
|
|
27
27
|
events: {
|
|
28
28
|
[evt: string]: CustomEvent<any>;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export default class GridRowHeader extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
-
class?: string;
|
|
11
|
+
class?: string | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
}, {
|
|
@@ -22,7 +22,7 @@ import { SvelteComponent } from "svelte";
|
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
24
|
[x: string]: any;
|
|
25
|
-
class?: string;
|
|
25
|
+
class?: string | undefined;
|
|
26
26
|
};
|
|
27
27
|
events: {
|
|
28
28
|
[evt: string]: CustomEvent<any>;
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#row
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
import { createEventDispatcher } from 'svelte';
|
|
9
|
+
|
|
8
10
|
/**
|
|
9
11
|
* The `class` attribute on the wrapper element.
|
|
10
12
|
* @type {string}
|
|
@@ -16,6 +18,8 @@
|
|
|
16
18
|
* @type {boolean}
|
|
17
19
|
*/
|
|
18
20
|
export let selected = false;
|
|
21
|
+
|
|
22
|
+
const dispatch = createEventDispatcher();
|
|
19
23
|
</script>
|
|
20
24
|
|
|
21
25
|
<div
|
|
@@ -25,8 +29,12 @@
|
|
|
25
29
|
aria-selected={selected}
|
|
26
30
|
{...$$restProps}
|
|
27
31
|
on:click
|
|
28
|
-
on:select
|
|
29
|
-
|
|
32
|
+
on:select={(/** @type {any} */ event) => {
|
|
33
|
+
dispatch('select', /** @type {CustomEvent} */ (event).detail);
|
|
34
|
+
}}
|
|
35
|
+
on:change={(/** @type {any} */ event) => {
|
|
36
|
+
dispatch('change', /** @type {CustomEvent} */ (event).detail);
|
|
37
|
+
}}
|
|
30
38
|
>
|
|
31
39
|
<slot />
|
|
32
40
|
</div>
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export default class GridRow extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
-
class?: string;
|
|
12
|
-
selected?: boolean;
|
|
11
|
+
class?: string | undefined;
|
|
12
|
+
selected?: boolean | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
click: MouseEvent;
|
|
15
|
-
select:
|
|
16
|
-
change:
|
|
15
|
+
select: CustomEvent<any>;
|
|
16
|
+
change: CustomEvent<any>;
|
|
17
17
|
} & {
|
|
18
18
|
[evt: string]: CustomEvent<any>;
|
|
19
19
|
}, {
|
|
@@ -27,13 +27,13 @@ import { SvelteComponent } from "svelte";
|
|
|
27
27
|
declare const __propDef: {
|
|
28
28
|
props: {
|
|
29
29
|
[x: string]: any;
|
|
30
|
-
class?: string;
|
|
31
|
-
selected?: boolean;
|
|
30
|
+
class?: string | undefined;
|
|
31
|
+
selected?: boolean | undefined;
|
|
32
32
|
};
|
|
33
33
|
events: {
|
|
34
34
|
click: MouseEvent;
|
|
35
|
-
select:
|
|
36
|
-
change:
|
|
35
|
+
select: CustomEvent<any>;
|
|
36
|
+
change: CustomEvent<any>;
|
|
37
37
|
} & {
|
|
38
38
|
[evt: string]: CustomEvent<any>;
|
|
39
39
|
};
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#grid
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
import { createEventDispatcher } from 'svelte';
|
|
8
9
|
import { activateGroup } from '../../services/group';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -20,8 +21,10 @@
|
|
|
20
21
|
*/
|
|
21
22
|
export let multiple = false;
|
|
22
23
|
|
|
23
|
-
/** @type {HTMLElement
|
|
24
|
+
/** @type {HTMLElement | undefined} */
|
|
24
25
|
export let element = undefined;
|
|
26
|
+
|
|
27
|
+
const dispatch = createEventDispatcher();
|
|
25
28
|
</script>
|
|
26
29
|
|
|
27
30
|
<div
|
|
@@ -31,7 +34,9 @@
|
|
|
31
34
|
{...$$restProps}
|
|
32
35
|
bind:this={element}
|
|
33
36
|
use:activateGroup
|
|
34
|
-
on:change
|
|
37
|
+
on:change={(/** @type {CustomEvent} */ event) => {
|
|
38
|
+
dispatch('change', event.detail);
|
|
39
|
+
}}
|
|
35
40
|
>
|
|
36
41
|
<slot />
|
|
37
42
|
</div>
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export default class Grid extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
-
class?: string;
|
|
12
|
-
multiple?: boolean;
|
|
13
|
-
element?: HTMLElement;
|
|
11
|
+
class?: string | undefined;
|
|
12
|
+
multiple?: boolean | undefined;
|
|
13
|
+
element?: HTMLElement | undefined;
|
|
14
14
|
}, {
|
|
15
|
-
change:
|
|
15
|
+
change: CustomEvent<any>;
|
|
16
16
|
} & {
|
|
17
17
|
[evt: string]: CustomEvent<any>;
|
|
18
18
|
}, {
|
|
@@ -26,12 +26,12 @@ import { SvelteComponent } from "svelte";
|
|
|
26
26
|
declare const __propDef: {
|
|
27
27
|
props: {
|
|
28
28
|
[x: string]: any;
|
|
29
|
-
class?: string;
|
|
30
|
-
multiple?: boolean;
|
|
31
|
-
element?: HTMLElement |
|
|
29
|
+
class?: string | undefined;
|
|
30
|
+
multiple?: boolean | undefined;
|
|
31
|
+
element?: HTMLElement | undefined;
|
|
32
32
|
};
|
|
33
33
|
events: {
|
|
34
|
-
change:
|
|
34
|
+
change: CustomEvent<any>;
|
|
35
35
|
} & {
|
|
36
36
|
[evt: string]: CustomEvent<any>;
|
|
37
37
|
};
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export default class Icon extends SvelteComponent<{
|
|
9
9
|
[x: string]: any;
|
|
10
|
-
class?: string;
|
|
11
|
-
name?: string;
|
|
10
|
+
class?: string | undefined;
|
|
11
|
+
name?: string | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
}, {}> {
|
|
@@ -20,8 +20,8 @@ import { SvelteComponent } from "svelte";
|
|
|
20
20
|
declare const __propDef: {
|
|
21
21
|
props: {
|
|
22
22
|
[x: string]: any;
|
|
23
|
-
class?: string;
|
|
24
|
-
name?: string;
|
|
23
|
+
class?: string | undefined;
|
|
24
|
+
name?: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
events: {
|
|
27
27
|
[evt: string]: CustomEvent<any>;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@see https://www.w3.org/WAI/ARIA/apg/patterns/listbox/
|
|
7
7
|
-->
|
|
8
8
|
<script>
|
|
9
|
+
import { createEventDispatcher } from 'svelte';
|
|
9
10
|
import { activateGroup } from '../../services/group';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
* @type {boolean}
|
|
46
47
|
*/
|
|
47
48
|
export let multiple = false;
|
|
49
|
+
|
|
50
|
+
const dispatch = createEventDispatcher();
|
|
48
51
|
</script>
|
|
49
52
|
|
|
50
53
|
<div
|
|
@@ -61,7 +64,9 @@
|
|
|
61
64
|
{...$$restProps}
|
|
62
65
|
use:activateGroup
|
|
63
66
|
on:click
|
|
64
|
-
on:change
|
|
67
|
+
on:change={(/** @type {CustomEvent} */ event) => {
|
|
68
|
+
dispatch('change', event.detail);
|
|
69
|
+
}}
|
|
65
70
|
>
|
|
66
71
|
<div role="none" class="inner" inert={disabled}>
|
|
67
72
|
<slot />
|
|
@@ -72,10 +77,11 @@
|
|
|
72
77
|
display: flex;
|
|
73
78
|
flex-direction: column;
|
|
74
79
|
margin: var(--sui-focus-ring-width);
|
|
75
|
-
border-width: 1px;
|
|
76
|
-
border-
|
|
77
|
-
border-
|
|
78
|
-
|
|
80
|
+
border-width: var(--sui-listbox-border-width, 1px);
|
|
81
|
+
border-style: var(--sui-listbox-border-style, solid);
|
|
82
|
+
border-color: var(--sui-listbox-border-width, var(--sui-secondary-border-color));
|
|
83
|
+
border-radius: var(--sui-listbox-border-radius, 4px);
|
|
84
|
+
padding: var(--sui-listbox-padding, 4px);
|
|
79
85
|
min-width: var(--sui-listbox-min-width, calc(var(--sui-option-height) * 5));
|
|
80
86
|
color: var(--sui-listbox-foreground-color);
|
|
81
87
|
background-color: var(--sui-listbox-background-color);
|