@sveltia/ui 0.12.0 → 0.12.1
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/button/button.svelte.d.ts +10 -10
- package/package/components/button/select-button-group.svelte.d.ts +2 -2
- package/package/components/button/select-button.svelte.d.ts +2 -2
- package/package/components/button/split-button.svelte.d.ts +2 -2
- package/package/components/checkbox/checkbox-group.svelte.d.ts +2 -2
- package/package/components/checkbox/checkbox.svelte +2 -2
- package/package/components/checkbox/checkbox.svelte.d.ts +4 -4
- package/package/components/dialog/dialog.svelte +2 -2
- package/package/components/dialog/prompt-dialog.svelte.d.ts +2 -2
- package/package/components/disclosure/disclosure.svelte +2 -2
- package/package/components/disclosure/disclosure.svelte.d.ts +2 -2
- package/package/components/drawer/drawer.svelte +2 -2
- package/package/components/drawer/drawer.svelte.d.ts +4 -4
- package/package/components/grid/grid-body.svelte +2 -2
- package/package/components/listbox/listbox.svelte.d.ts +4 -4
- package/package/components/listbox/option-group.svelte +2 -2
- package/package/components/listbox/option-group.svelte.d.ts +2 -2
- package/package/components/listbox/option.svelte.d.ts +2 -2
- package/package/components/menu/menu-button.svelte.d.ts +4 -4
- package/package/components/menu/menu-item-checkbox.svelte.d.ts +2 -2
- package/package/components/menu/menu-item-group.svelte +2 -2
- package/package/components/menu/menu-item-group.svelte.d.ts +2 -2
- package/package/components/menu/menu-item-radio.svelte.d.ts +2 -2
- package/package/components/menu/menu-item.svelte.d.ts +4 -4
- package/package/components/menu/menu.svelte.d.ts +2 -2
- package/package/components/radio/radio-group.svelte.d.ts +2 -2
- package/package/components/radio/radio.svelte +2 -2
- package/package/components/radio/radio.svelte.d.ts +2 -2
- package/package/components/select/combobox.svelte +2 -2
- package/package/components/select/combobox.svelte.d.ts +4 -4
- package/package/components/select/select.svelte.d.ts +2 -2
- package/package/components/slider/slider.svelte.d.ts +2 -2
- package/package/components/switch/switch.svelte.d.ts +4 -4
- package/package/components/table/table-body.svelte +2 -2
- package/package/components/tabs/tab-list.svelte.d.ts +2 -2
- package/package/components/tabs/tab.svelte.d.ts +2 -2
- package/package/components/text-editor/text-editor.svelte +2 -2
- package/package/components/text-editor/text-editor.svelte.d.ts +2 -2
- package/package/components/text-editor/toolbar/insert-link-button.svelte +1 -1
- package/package/components/text-field/number-input.svelte +2 -2
- package/package/components/text-field/number-input.svelte.d.ts +2 -2
- package/package/components/text-field/password-input.svelte +2 -2
- package/package/components/text-field/password-input.svelte.d.ts +2 -2
- package/package/components/text-field/search-bar.svelte +2 -2
- package/package/components/text-field/search-bar.svelte.d.ts +2 -2
- package/package/components/text-field/text-area.svelte.d.ts +2 -2
- package/package/components/text-field/text-input.svelte +2 -2
- package/package/components/text-field/text-input.svelte.d.ts +6 -6
- package/package/components/toast/toast.svelte.d.ts +2 -2
- package/package/components/toolbar/toolbar.svelte.d.ts +2 -2
- package/package/components/util/group.svelte.d.ts +2 -2
- package/package/components/util/modal.svelte +1 -1
- package/package/components/util/modal.svelte.d.ts +2 -2
- package/package/components/util/popup.svelte +2 -2
- package/package/components/util/popup.svelte.d.ts +3 -6
- package/package/index.d.ts +0 -1
- package/package/index.js +8 -3
- package/package/services/group.js +3 -2
- package/package/services/popup.js +2 -2
- package/package.json +5 -11
- package/package/services/util.d.ts +0 -4
- package/package/services/util.js +0 -56
|
@@ -10,13 +10,13 @@ export default class Button extends SvelteComponent<{
|
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string | undefined;
|
|
12
12
|
name?: string | undefined;
|
|
13
|
-
role?: string | undefined;
|
|
14
13
|
label?: string | undefined;
|
|
15
|
-
hidden?: boolean | undefined;
|
|
16
14
|
disabled?: boolean | undefined;
|
|
17
|
-
|
|
18
|
-
type?: "button" | "reset" | "submit" | undefined;
|
|
15
|
+
type?: "reset" | "submit" | "button" | undefined;
|
|
19
16
|
value?: string | undefined;
|
|
17
|
+
role?: string | undefined;
|
|
18
|
+
hidden?: boolean | undefined;
|
|
19
|
+
element?: HTMLButtonElement | undefined;
|
|
20
20
|
readonly?: boolean | undefined;
|
|
21
21
|
pressed?: boolean | "mixed" | undefined;
|
|
22
22
|
keyShortcuts?: string | undefined;
|
|
@@ -59,8 +59,8 @@ export default class Button extends SvelteComponent<{
|
|
|
59
59
|
set class(arg: string | undefined);
|
|
60
60
|
get class(): string | undefined;
|
|
61
61
|
/**accessor*/
|
|
62
|
-
set type(arg: "
|
|
63
|
-
get type(): "
|
|
62
|
+
set type(arg: "reset" | "submit" | "button" | undefined);
|
|
63
|
+
get type(): "reset" | "submit" | "button" | undefined;
|
|
64
64
|
/**accessor*/
|
|
65
65
|
set role(arg: string | undefined);
|
|
66
66
|
get role(): string | undefined;
|
|
@@ -119,13 +119,13 @@ declare const __propDef: {
|
|
|
119
119
|
[x: string]: any;
|
|
120
120
|
class?: string | undefined;
|
|
121
121
|
name?: string | undefined;
|
|
122
|
-
role?: string | undefined;
|
|
123
122
|
label?: string | undefined;
|
|
124
|
-
hidden?: boolean | undefined;
|
|
125
123
|
disabled?: boolean | undefined;
|
|
126
|
-
|
|
127
|
-
type?: "button" | "reset" | "submit" | undefined;
|
|
124
|
+
type?: "reset" | "submit" | "button" | undefined;
|
|
128
125
|
value?: string | undefined;
|
|
126
|
+
role?: string | undefined;
|
|
127
|
+
hidden?: boolean | undefined;
|
|
128
|
+
element?: HTMLButtonElement | undefined;
|
|
129
129
|
readonly?: boolean | undefined;
|
|
130
130
|
pressed?: boolean | 'mixed' | undefined;
|
|
131
131
|
keyShortcuts?: string | undefined;
|
|
@@ -10,8 +10,8 @@ export default class SelectButtonGroup extends SvelteComponent<{
|
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string | undefined;
|
|
12
12
|
invalid?: boolean | undefined;
|
|
13
|
-
hidden?: boolean | undefined;
|
|
14
13
|
disabled?: boolean | undefined;
|
|
14
|
+
hidden?: boolean | undefined;
|
|
15
15
|
readonly?: boolean | undefined;
|
|
16
16
|
required?: boolean | undefined;
|
|
17
17
|
}, {
|
|
@@ -31,8 +31,8 @@ declare const __propDef: {
|
|
|
31
31
|
[x: string]: any;
|
|
32
32
|
class?: string | undefined;
|
|
33
33
|
invalid?: boolean | undefined;
|
|
34
|
-
hidden?: boolean | undefined;
|
|
35
34
|
disabled?: boolean | undefined;
|
|
35
|
+
hidden?: boolean | undefined;
|
|
36
36
|
readonly?: boolean | undefined;
|
|
37
37
|
required?: boolean | undefined;
|
|
38
38
|
};
|
|
@@ -10,9 +10,9 @@ export default class SelectButton extends SvelteComponent<{
|
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string | undefined;
|
|
12
12
|
label?: string | undefined;
|
|
13
|
-
hidden?: boolean | undefined;
|
|
14
13
|
disabled?: boolean | undefined;
|
|
15
14
|
value?: string | undefined;
|
|
15
|
+
hidden?: boolean | undefined;
|
|
16
16
|
variant?: "link" | "primary" | "secondary" | "tertiary" | "ghost" | undefined;
|
|
17
17
|
size?: "small" | "medium" | "large" | undefined;
|
|
18
18
|
iconic?: boolean | undefined;
|
|
@@ -43,9 +43,9 @@ declare const __propDef: {
|
|
|
43
43
|
[x: string]: any;
|
|
44
44
|
class?: string | undefined;
|
|
45
45
|
label?: string | undefined;
|
|
46
|
-
hidden?: boolean | undefined;
|
|
47
46
|
disabled?: boolean | undefined;
|
|
48
47
|
value?: string | undefined;
|
|
48
|
+
hidden?: boolean | undefined;
|
|
49
49
|
variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'link' | undefined;
|
|
50
50
|
size?: "small" | "medium" | "large" | undefined;
|
|
51
51
|
iconic?: boolean | undefined;
|
|
@@ -11,8 +11,8 @@ export default class SplitButton extends SvelteComponent<{
|
|
|
11
11
|
[x: string]: any;
|
|
12
12
|
class?: string | undefined;
|
|
13
13
|
label?: string | undefined;
|
|
14
|
-
hidden?: boolean | undefined;
|
|
15
14
|
disabled?: boolean | undefined;
|
|
15
|
+
hidden?: boolean | undefined;
|
|
16
16
|
variant?: "primary" | "secondary" | "tertiary" | "ghost" | undefined;
|
|
17
17
|
size?: "small" | "medium" | "large" | undefined;
|
|
18
18
|
popupPosition?: PopupPosition | undefined;
|
|
@@ -42,8 +42,8 @@ declare const __propDef: {
|
|
|
42
42
|
[x: string]: any;
|
|
43
43
|
class?: string | undefined;
|
|
44
44
|
label?: string | undefined;
|
|
45
|
-
hidden?: boolean | undefined;
|
|
46
45
|
disabled?: boolean | undefined;
|
|
46
|
+
hidden?: boolean | undefined;
|
|
47
47
|
variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | undefined;
|
|
48
48
|
size?: 'small' | 'medium' | 'large' | undefined;
|
|
49
49
|
popupPosition?: PopupPosition | undefined;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
export default class CheckboxGroup extends SvelteComponent<{
|
|
6
6
|
[x: string]: any;
|
|
7
7
|
class?: string | undefined;
|
|
8
|
-
hidden?: boolean | undefined;
|
|
9
8
|
disabled?: boolean | undefined;
|
|
9
|
+
hidden?: boolean | undefined;
|
|
10
10
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
11
11
|
}, {
|
|
12
12
|
[evt: string]: CustomEvent<any>;
|
|
@@ -22,8 +22,8 @@ declare const __propDef: {
|
|
|
22
22
|
props: {
|
|
23
23
|
[x: string]: any;
|
|
24
24
|
class?: string | undefined;
|
|
25
|
-
hidden?: boolean | undefined;
|
|
26
25
|
disabled?: boolean | undefined;
|
|
26
|
+
hidden?: boolean | undefined;
|
|
27
27
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
28
28
|
};
|
|
29
29
|
events: {
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
@see https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/
|
|
7
7
|
-->
|
|
8
8
|
<script>
|
|
9
|
+
import { generateElementId } from '@sveltia/utils/element';
|
|
9
10
|
import { createEventDispatcher } from 'svelte';
|
|
10
11
|
import Button from '../button/button.svelte';
|
|
11
12
|
import Icon from '../icon/icon.svelte';
|
|
12
|
-
import { getRandomId } from '../../services/util';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* The `class` attribute on the wrapper element.
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
export let label = undefined;
|
|
65
65
|
|
|
66
66
|
const dispatch = createEventDispatcher();
|
|
67
|
-
const id =
|
|
67
|
+
const id = generateElementId('checkbox');
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Reference to the `Button` component.
|
|
@@ -11,11 +11,11 @@ export default class Checkbox extends SvelteComponent<{
|
|
|
11
11
|
[x: string]: any;
|
|
12
12
|
class?: string | undefined;
|
|
13
13
|
name?: string | undefined;
|
|
14
|
-
label?: string | undefined;
|
|
15
14
|
invalid?: boolean | undefined;
|
|
16
|
-
|
|
15
|
+
label?: string | undefined;
|
|
17
16
|
disabled?: boolean | undefined;
|
|
18
17
|
value?: string | undefined;
|
|
18
|
+
hidden?: boolean | undefined;
|
|
19
19
|
readonly?: boolean | undefined;
|
|
20
20
|
required?: boolean | undefined;
|
|
21
21
|
checked?: boolean | "mixed" | undefined;
|
|
@@ -39,11 +39,11 @@ declare const __propDef: {
|
|
|
39
39
|
[x: string]: any;
|
|
40
40
|
class?: string | undefined;
|
|
41
41
|
name?: string | undefined;
|
|
42
|
-
label?: string | undefined;
|
|
43
42
|
invalid?: boolean | undefined;
|
|
44
|
-
|
|
43
|
+
label?: string | undefined;
|
|
45
44
|
disabled?: boolean | undefined;
|
|
46
45
|
value?: string | undefined;
|
|
46
|
+
hidden?: boolean | undefined;
|
|
47
47
|
readonly?: boolean | undefined;
|
|
48
48
|
required?: boolean | undefined;
|
|
49
49
|
checked?: boolean | "mixed" | undefined;
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
@see https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
import { generateElementId } from '@sveltia/utils/element';
|
|
8
9
|
import { _ } from 'svelte-i18n';
|
|
9
10
|
import Button from '../button/button.svelte';
|
|
10
11
|
import Spacer from '../divider/spacer.svelte';
|
|
11
12
|
import Icon from '../icon/icon.svelte';
|
|
12
13
|
import Modal from '../util/modal.svelte';
|
|
13
|
-
import { getRandomId } from '../../services/util';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* The `class` attribute on the content element.
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
* The ID of the drawer.
|
|
84
84
|
* @type {string}
|
|
85
85
|
*/
|
|
86
|
-
const id =
|
|
86
|
+
const id = generateElementId('dialog');
|
|
87
87
|
/**
|
|
88
88
|
* A reference to the modal component.
|
|
89
89
|
* @type {Modal}
|
|
@@ -12,8 +12,8 @@ export default class PromptDialog extends SvelteComponent<{
|
|
|
12
12
|
[x: string]: any;
|
|
13
13
|
title: string;
|
|
14
14
|
class?: string | undefined;
|
|
15
|
-
open?: boolean | undefined;
|
|
16
15
|
value?: string | undefined;
|
|
16
|
+
open?: boolean | undefined;
|
|
17
17
|
okLabel?: string | undefined;
|
|
18
18
|
okDisabled?: boolean | undefined;
|
|
19
19
|
cancelLabel?: string | undefined;
|
|
@@ -45,8 +45,8 @@ declare const __propDef: {
|
|
|
45
45
|
[x: string]: any;
|
|
46
46
|
title: string;
|
|
47
47
|
class?: string | undefined;
|
|
48
|
-
open?: boolean | undefined;
|
|
49
48
|
value?: string | undefined;
|
|
49
|
+
open?: boolean | undefined;
|
|
50
50
|
okLabel?: string | undefined;
|
|
51
51
|
okDisabled?: boolean | undefined;
|
|
52
52
|
cancelLabel?: string | undefined;
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
<svelte:options accessors={true} />
|
|
8
8
|
|
|
9
9
|
<script>
|
|
10
|
+
import { generateElementId } from '@sveltia/utils/element';
|
|
10
11
|
import { createEventDispatcher } from 'svelte';
|
|
11
12
|
import Button from '../button/button.svelte';
|
|
12
13
|
import Icon from '../icon/icon.svelte';
|
|
13
|
-
import { getRandomId } from '../../services/util';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* The `class` attribute on the wrapper element.
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
export let label = '';
|
|
41
41
|
|
|
42
42
|
const dispatch = createEventDispatcher();
|
|
43
|
-
const id =
|
|
43
|
+
const id = generateElementId('disclosure');
|
|
44
44
|
</script>
|
|
45
45
|
|
|
46
46
|
<div
|
|
@@ -10,8 +10,8 @@ export default class Disclosure extends SvelteComponent<{
|
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string | undefined;
|
|
12
12
|
label?: string | undefined;
|
|
13
|
-
hidden?: boolean | undefined;
|
|
14
13
|
disabled?: boolean | undefined;
|
|
14
|
+
hidden?: boolean | undefined;
|
|
15
15
|
expanded?: boolean | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
change: CustomEvent<any>;
|
|
@@ -48,8 +48,8 @@ declare const __propDef: {
|
|
|
48
48
|
[x: string]: any;
|
|
49
49
|
class?: string | undefined;
|
|
50
50
|
label?: string | undefined;
|
|
51
|
-
hidden?: boolean | undefined;
|
|
52
51
|
disabled?: boolean | undefined;
|
|
52
|
+
hidden?: boolean | undefined;
|
|
53
53
|
expanded?: boolean | undefined;
|
|
54
54
|
};
|
|
55
55
|
events: {
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
@see https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
import { generateElementId } from '@sveltia/utils/element';
|
|
8
9
|
import { _ } from 'svelte-i18n';
|
|
9
10
|
import Button from '../button/button.svelte';
|
|
10
11
|
import Spacer from '../divider/spacer.svelte';
|
|
11
12
|
import Icon from '../icon/icon.svelte';
|
|
12
13
|
import Modal from '../util/modal.svelte';
|
|
13
|
-
import { getRandomId } from '../../services/util';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* The `class` attribute on the content element.
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
* The ID of the drawer.
|
|
59
59
|
* @type {string}
|
|
60
60
|
*/
|
|
61
|
-
const id =
|
|
61
|
+
const id = generateElementId('drawer');
|
|
62
62
|
/**
|
|
63
63
|
* A reference to the modal component.
|
|
64
64
|
* @type {Modal}
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
export default class Drawer extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string | undefined;
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
position?: "top" | "left" | "right" | "bottom" | undefined;
|
|
12
14
|
open?: boolean | undefined;
|
|
13
15
|
lightDismiss?: boolean | undefined;
|
|
14
16
|
keepContent?: boolean | undefined;
|
|
15
|
-
title?: string | undefined;
|
|
16
|
-
position?: "top" | "left" | "right" | "bottom" | undefined;
|
|
17
17
|
size?: "small" | "medium" | "large" | "x-large" | "full" | undefined;
|
|
18
18
|
showClose?: false | "inside" | "outside" | undefined;
|
|
19
19
|
}, {
|
|
@@ -46,11 +46,11 @@ declare const __propDef: {
|
|
|
46
46
|
props: {
|
|
47
47
|
[x: string]: any;
|
|
48
48
|
class?: string | undefined;
|
|
49
|
+
title?: string | undefined;
|
|
50
|
+
position?: "top" | "left" | "right" | "bottom" | undefined;
|
|
49
51
|
open?: boolean | undefined;
|
|
50
52
|
lightDismiss?: boolean | undefined;
|
|
51
53
|
keepContent?: boolean | undefined;
|
|
52
|
-
title?: string | undefined;
|
|
53
|
-
position?: "top" | "left" | "right" | "bottom" | undefined;
|
|
54
54
|
size?: "small" | "medium" | "large" | "x-large" | "full" | undefined;
|
|
55
55
|
showClose?: false | "inside" | "outside" | undefined;
|
|
56
56
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#rowgroup
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
-
import {
|
|
8
|
+
import { generateElementId } from '@sveltia/utils/element';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* The `class` attribute on the wrapper element.
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
export let label = '';
|
|
22
22
|
|
|
23
|
-
const id =
|
|
23
|
+
const id = generateElementId('tbody');
|
|
24
24
|
</script>
|
|
25
25
|
|
|
26
26
|
<div
|
|
@@ -11,15 +11,15 @@ export default class Listbox extends SvelteComponent<{
|
|
|
11
11
|
[x: string]: any;
|
|
12
12
|
class?: string | undefined;
|
|
13
13
|
invalid?: boolean | undefined;
|
|
14
|
-
hidden?: boolean | undefined;
|
|
15
14
|
disabled?: boolean | undefined;
|
|
15
|
+
hidden?: boolean | undefined;
|
|
16
16
|
readonly?: boolean | undefined;
|
|
17
17
|
searchTerms?: string | undefined;
|
|
18
18
|
required?: boolean | undefined;
|
|
19
19
|
multiple?: boolean | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
click: MouseEvent;
|
|
22
|
-
filter: Event |
|
|
22
|
+
filter: Event | MouseEvent | UIEvent | KeyboardEvent | ErrorEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ClipboardEvent | DragEvent | FormDataEvent | PointerEvent | ProgressEvent<EventTarget> | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
|
|
23
23
|
change: CustomEvent<any>;
|
|
24
24
|
} & {
|
|
25
25
|
[evt: string]: CustomEvent<any>;
|
|
@@ -36,8 +36,8 @@ declare const __propDef: {
|
|
|
36
36
|
[x: string]: any;
|
|
37
37
|
class?: string | undefined;
|
|
38
38
|
invalid?: boolean | undefined;
|
|
39
|
-
hidden?: boolean | undefined;
|
|
40
39
|
disabled?: boolean | undefined;
|
|
40
|
+
hidden?: boolean | undefined;
|
|
41
41
|
readonly?: boolean | undefined;
|
|
42
42
|
searchTerms?: string | undefined;
|
|
43
43
|
required?: boolean | undefined;
|
|
@@ -45,7 +45,7 @@ declare const __propDef: {
|
|
|
45
45
|
};
|
|
46
46
|
events: {
|
|
47
47
|
click: MouseEvent;
|
|
48
|
-
filter: Event |
|
|
48
|
+
filter: Event | MouseEvent | UIEvent | KeyboardEvent | ErrorEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ClipboardEvent | DragEvent | FormDataEvent | PointerEvent | ProgressEvent<EventTarget> | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
|
|
49
49
|
change: CustomEvent<any>;
|
|
50
50
|
} & {
|
|
51
51
|
[evt: string]: CustomEvent<any>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
@see https://www.w3.org/WAI/ARIA/apg/patterns/listbox/examples/listbox-grouped/
|
|
8
8
|
-->
|
|
9
9
|
<script>
|
|
10
|
-
import {
|
|
10
|
+
import { generateElementId } from '@sveltia/utils/element';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* The `class` attribute on the wrapper element.
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
*/
|
|
31
31
|
export let label = '';
|
|
32
32
|
|
|
33
|
-
const id =
|
|
33
|
+
const id = generateElementId('optgroup');
|
|
34
34
|
</script>
|
|
35
35
|
|
|
36
36
|
<div
|
|
@@ -12,8 +12,8 @@ export default class OptionGroup extends SvelteComponent<{
|
|
|
12
12
|
[x: string]: any;
|
|
13
13
|
class?: string | undefined;
|
|
14
14
|
label?: string | undefined;
|
|
15
|
-
hidden?: boolean | undefined;
|
|
16
15
|
disabled?: boolean | undefined;
|
|
16
|
+
hidden?: boolean | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
[evt: string]: CustomEvent<any>;
|
|
19
19
|
}, {
|
|
@@ -29,8 +29,8 @@ declare const __propDef: {
|
|
|
29
29
|
[x: string]: any;
|
|
30
30
|
class?: string | undefined;
|
|
31
31
|
label?: string | undefined;
|
|
32
|
-
hidden?: boolean | undefined;
|
|
33
32
|
disabled?: boolean | undefined;
|
|
33
|
+
hidden?: boolean | undefined;
|
|
34
34
|
};
|
|
35
35
|
events: {
|
|
36
36
|
[evt: string]: CustomEvent<any>;
|
|
@@ -10,9 +10,9 @@ export default class Option extends SvelteComponent<{
|
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
label: string;
|
|
12
12
|
class?: string | undefined;
|
|
13
|
-
hidden?: boolean | undefined;
|
|
14
13
|
disabled?: boolean | undefined;
|
|
15
14
|
value?: string | undefined;
|
|
15
|
+
hidden?: boolean | undefined;
|
|
16
16
|
selected?: boolean | undefined;
|
|
17
17
|
searchValue?: string | undefined;
|
|
18
18
|
}, {
|
|
@@ -48,9 +48,9 @@ declare const __propDef: {
|
|
|
48
48
|
[x: string]: any;
|
|
49
49
|
label: string;
|
|
50
50
|
class?: string | undefined;
|
|
51
|
-
hidden?: boolean | undefined;
|
|
52
51
|
disabled?: boolean | undefined;
|
|
53
52
|
value?: string | undefined;
|
|
53
|
+
hidden?: boolean | undefined;
|
|
54
54
|
selected?: boolean | undefined;
|
|
55
55
|
searchValue?: string | undefined;
|
|
56
56
|
};
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
export default class MenuButton extends SvelteComponent<{
|
|
9
9
|
[x: string]: any;
|
|
10
10
|
class?: string | undefined;
|
|
11
|
-
label?: string | undefined;
|
|
12
11
|
focus?: (() => void) | undefined;
|
|
13
|
-
|
|
12
|
+
label?: string | undefined;
|
|
14
13
|
disabled?: boolean | undefined;
|
|
14
|
+
hidden?: boolean | undefined;
|
|
15
15
|
variant?: "link" | "primary" | "secondary" | "tertiary" | "ghost" | undefined;
|
|
16
16
|
size?: "small" | "medium" | "large" | undefined;
|
|
17
17
|
iconic?: boolean | undefined;
|
|
@@ -40,10 +40,10 @@ declare const __propDef: {
|
|
|
40
40
|
props: {
|
|
41
41
|
[x: string]: any;
|
|
42
42
|
class?: string | undefined;
|
|
43
|
-
label?: string | undefined;
|
|
44
43
|
focus?: (() => void) | undefined;
|
|
45
|
-
|
|
44
|
+
label?: string | undefined;
|
|
46
45
|
disabled?: boolean | undefined;
|
|
46
|
+
hidden?: boolean | undefined;
|
|
47
47
|
variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'link' | undefined;
|
|
48
48
|
size?: "small" | "medium" | "large" | undefined;
|
|
49
49
|
iconic?: boolean | undefined;
|
|
@@ -9,8 +9,8 @@ export default class MenuItemCheckbox extends SvelteComponent<{
|
|
|
9
9
|
[x: string]: any;
|
|
10
10
|
class?: string | undefined;
|
|
11
11
|
label?: string | undefined;
|
|
12
|
-
hidden?: boolean | undefined;
|
|
13
12
|
disabled?: boolean | undefined;
|
|
13
|
+
hidden?: boolean | undefined;
|
|
14
14
|
checked?: boolean | undefined;
|
|
15
15
|
iconName?: string | undefined;
|
|
16
16
|
iconLabel?: string | undefined;
|
|
@@ -33,8 +33,8 @@ declare const __propDef: {
|
|
|
33
33
|
[x: string]: any;
|
|
34
34
|
class?: string | undefined;
|
|
35
35
|
label?: string | undefined;
|
|
36
|
-
hidden?: boolean | undefined;
|
|
37
36
|
disabled?: boolean | undefined;
|
|
37
|
+
hidden?: boolean | undefined;
|
|
38
38
|
checked?: boolean | undefined;
|
|
39
39
|
iconName?: string | undefined;
|
|
40
40
|
iconLabel?: string | undefined;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
A menu item group.
|
|
4
4
|
-->
|
|
5
5
|
<script>
|
|
6
|
-
import {
|
|
6
|
+
import { generateElementId } from '@sveltia/utils/element';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The `class` attribute on the wrapper element.
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
*/
|
|
27
27
|
export let title = '';
|
|
28
28
|
|
|
29
|
-
const id =
|
|
29
|
+
const id = generateElementId('group');
|
|
30
30
|
</script>
|
|
31
31
|
|
|
32
32
|
<div
|
|
@@ -6,8 +6,8 @@ export default class MenuItemGroup extends SvelteComponent<{
|
|
|
6
6
|
[x: string]: any;
|
|
7
7
|
class?: string | undefined;
|
|
8
8
|
title?: string | undefined;
|
|
9
|
-
hidden?: boolean | undefined;
|
|
10
9
|
disabled?: boolean | undefined;
|
|
10
|
+
hidden?: boolean | undefined;
|
|
11
11
|
}, {
|
|
12
12
|
[evt: string]: CustomEvent<any>;
|
|
13
13
|
}, {
|
|
@@ -23,8 +23,8 @@ declare const __propDef: {
|
|
|
23
23
|
[x: string]: any;
|
|
24
24
|
class?: string | undefined;
|
|
25
25
|
title?: string | undefined;
|
|
26
|
-
hidden?: boolean | undefined;
|
|
27
26
|
disabled?: boolean | undefined;
|
|
27
|
+
hidden?: boolean | undefined;
|
|
28
28
|
};
|
|
29
29
|
events: {
|
|
30
30
|
[evt: string]: CustomEvent<any>;
|
|
@@ -10,8 +10,8 @@ export default class MenuItemRadio extends SvelteComponent<{
|
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string | undefined;
|
|
12
12
|
label?: string | undefined;
|
|
13
|
-
hidden?: boolean | undefined;
|
|
14
13
|
disabled?: boolean | undefined;
|
|
14
|
+
hidden?: boolean | undefined;
|
|
15
15
|
checked?: boolean | undefined;
|
|
16
16
|
iconName?: string | undefined;
|
|
17
17
|
iconLabel?: string | undefined;
|
|
@@ -34,8 +34,8 @@ declare const __propDef: {
|
|
|
34
34
|
[x: string]: any;
|
|
35
35
|
class?: string | undefined;
|
|
36
36
|
label?: string | undefined;
|
|
37
|
-
hidden?: boolean | undefined;
|
|
38
37
|
disabled?: boolean | undefined;
|
|
38
|
+
hidden?: boolean | undefined;
|
|
39
39
|
checked?: boolean | undefined;
|
|
40
40
|
iconName?: string | undefined;
|
|
41
41
|
iconLabel?: string | undefined;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
export default class MenuItem extends SvelteComponent<{
|
|
9
9
|
[x: string]: any;
|
|
10
10
|
class?: string | undefined;
|
|
11
|
-
role?: "menuitem" | "menuitemcheckbox" | "menuitemradio" | undefined;
|
|
12
11
|
label?: string | undefined;
|
|
13
|
-
hidden?: boolean | undefined;
|
|
14
12
|
disabled?: boolean | undefined;
|
|
13
|
+
role?: "menuitem" | "menuitemcheckbox" | "menuitemradio" | undefined;
|
|
14
|
+
hidden?: boolean | undefined;
|
|
15
15
|
iconName?: string | undefined;
|
|
16
16
|
iconLabel?: string | undefined;
|
|
17
17
|
}, {
|
|
@@ -42,10 +42,10 @@ declare const __propDef: {
|
|
|
42
42
|
props: {
|
|
43
43
|
[x: string]: any;
|
|
44
44
|
class?: string | undefined;
|
|
45
|
-
role?: "menuitem" | "menuitemcheckbox" | "menuitemradio" | undefined;
|
|
46
45
|
label?: string | undefined;
|
|
47
|
-
hidden?: boolean | undefined;
|
|
48
46
|
disabled?: boolean | undefined;
|
|
47
|
+
role?: "menuitem" | "menuitemcheckbox" | "menuitemradio" | undefined;
|
|
48
|
+
hidden?: boolean | undefined;
|
|
49
49
|
iconName?: string | undefined;
|
|
50
50
|
iconLabel?: string | undefined;
|
|
51
51
|
};
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
export default class Menu extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string | undefined;
|
|
12
|
-
hidden?: boolean | undefined;
|
|
13
12
|
disabled?: boolean | undefined;
|
|
13
|
+
hidden?: boolean | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
change: CustomEvent<any>;
|
|
16
16
|
} & {
|
|
@@ -27,8 +27,8 @@ declare const __propDef: {
|
|
|
27
27
|
props: {
|
|
28
28
|
[x: string]: any;
|
|
29
29
|
class?: string | undefined;
|
|
30
|
-
hidden?: boolean | undefined;
|
|
31
30
|
disabled?: boolean | undefined;
|
|
31
|
+
hidden?: boolean | undefined;
|
|
32
32
|
};
|
|
33
33
|
events: {
|
|
34
34
|
change: CustomEvent<any>;
|
|
@@ -10,8 +10,8 @@ export default class RadioGroup extends SvelteComponent<{
|
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string | undefined;
|
|
12
12
|
invalid?: boolean | undefined;
|
|
13
|
-
hidden?: boolean | undefined;
|
|
14
13
|
disabled?: boolean | undefined;
|
|
14
|
+
hidden?: boolean | undefined;
|
|
15
15
|
readonly?: boolean | undefined;
|
|
16
16
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
17
17
|
required?: boolean | undefined;
|
|
@@ -32,8 +32,8 @@ declare const __propDef: {
|
|
|
32
32
|
[x: string]: any;
|
|
33
33
|
class?: string | undefined;
|
|
34
34
|
invalid?: boolean | undefined;
|
|
35
|
-
hidden?: boolean | undefined;
|
|
36
35
|
disabled?: boolean | undefined;
|
|
36
|
+
hidden?: boolean | undefined;
|
|
37
37
|
readonly?: boolean | undefined;
|
|
38
38
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
39
39
|
required?: boolean | undefined;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
@see https://www.w3.org/WAI/ARIA/apg/patterns/radio/
|
|
7
7
|
-->
|
|
8
8
|
<script>
|
|
9
|
+
import { generateElementId } from '@sveltia/utils/element';
|
|
9
10
|
import Button from '../button/button.svelte';
|
|
10
|
-
import { getRandomId } from '../../services/util';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* The `class` attribute on the wrapper element.
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
*/
|
|
47
47
|
export let label = undefined;
|
|
48
48
|
|
|
49
|
-
const id =
|
|
49
|
+
const id = generateElementId('checkbox');
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* Reference to the `Button` component.
|
|
@@ -12,9 +12,9 @@ export default class Radio extends SvelteComponent<{
|
|
|
12
12
|
class?: string | undefined;
|
|
13
13
|
name?: string | undefined;
|
|
14
14
|
label?: string | undefined;
|
|
15
|
-
hidden?: boolean | undefined;
|
|
16
15
|
disabled?: boolean | undefined;
|
|
17
16
|
value?: string | undefined;
|
|
17
|
+
hidden?: boolean | undefined;
|
|
18
18
|
checked?: boolean | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
focus: FocusEvent;
|
|
@@ -37,9 +37,9 @@ declare const __propDef: {
|
|
|
37
37
|
class?: string | undefined;
|
|
38
38
|
name?: string | undefined;
|
|
39
39
|
label?: string | undefined;
|
|
40
|
-
hidden?: boolean | undefined;
|
|
41
40
|
disabled?: boolean | undefined;
|
|
42
41
|
value?: string | undefined;
|
|
42
|
+
hidden?: boolean | undefined;
|
|
43
43
|
checked?: boolean | undefined;
|
|
44
44
|
};
|
|
45
45
|
events: {
|