@sveltia/ui 0.15.15 → 0.16.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.d.ts +37 -25
- package/package/components/button/button-group.svelte.d.ts +34 -24
- package/package/components/button/button.svelte.d.ts +118 -119
- package/package/components/button/select-button-group.svelte.d.ts +41 -31
- package/package/components/button/select-button.svelte.d.ts +65 -43
- package/package/components/button/split-button.svelte.d.ts +42 -41
- package/package/components/calendar/calendar.svelte.d.ts +24 -23
- package/package/components/checkbox/checkbox-group.svelte.d.ts +37 -27
- package/package/components/checkbox/checkbox.svelte +1 -1
- package/package/components/checkbox/checkbox.svelte.d.ts +54 -38
- package/package/components/dialog/alert-dialog.svelte.d.ts +44 -34
- package/package/components/dialog/confirmation-dialog.svelte.d.ts +45 -35
- package/package/components/dialog/dialog.svelte.d.ts +83 -53
- package/package/components/dialog/prompt-dialog.svelte.d.ts +55 -43
- package/package/components/disclosure/disclosure.svelte.d.ts +61 -48
- package/package/components/divider/divider.svelte.d.ts +25 -24
- package/package/components/divider/spacer.svelte.d.ts +24 -23
- package/package/components/drawer/drawer.svelte.d.ts +75 -47
- package/package/components/grid/grid-body.svelte.d.ts +35 -25
- package/package/components/grid/grid-cell.svelte.d.ts +34 -24
- package/package/components/grid/grid-col-header.svelte.d.ts +34 -24
- package/package/components/grid/grid-foot.svelte.d.ts +34 -24
- package/package/components/grid/grid-head.svelte.d.ts +34 -24
- package/package/components/grid/grid-row-header.svelte.d.ts +34 -24
- package/package/components/grid/grid-row.svelte.d.ts +42 -32
- package/package/components/grid/grid.svelte.d.ts +39 -29
- package/package/components/icon/icon.svelte.d.ts +24 -23
- package/package/components/listbox/listbox.svelte.d.ts +45 -35
- package/package/components/listbox/option-group.svelte.d.ts +37 -27
- package/package/components/listbox/option.svelte.d.ts +73 -49
- package/package/components/menu/menu-button.svelte.d.ts +69 -42
- package/package/components/menu/menu-item-checkbox.svelte.d.ts +44 -34
- package/package/components/menu/menu-item-group.svelte +1 -1
- package/package/components/menu/menu-item-group.svelte.d.ts +37 -27
- package/package/components/menu/menu-item-radio.svelte.d.ts +44 -34
- package/package/components/menu/menu-item.svelte.d.ts +70 -44
- package/package/components/menu/menu.svelte.d.ts +38 -28
- package/package/components/radio/radio-group.svelte.d.ts +42 -32
- package/package/components/radio/radio.svelte.d.ts +45 -35
- package/package/components/select/combobox.svelte.d.ts +53 -37
- package/package/components/select/select-tags.svelte.d.ts +38 -37
- package/package/components/select/select.svelte +1 -1
- package/package/components/select/select.svelte.d.ts +43 -33
- package/package/components/slider/slider.svelte.d.ts +37 -36
- package/package/components/switch/switch.svelte.d.ts +43 -33
- package/package/components/table/table-body.svelte.d.ts +35 -25
- package/package/components/table/table-cell.svelte.d.ts +34 -24
- package/package/components/table/table-col-header.svelte.d.ts +34 -24
- package/package/components/table/table-foot.svelte.d.ts +34 -24
- package/package/components/table/table-head.svelte.d.ts +34 -24
- package/package/components/table/table-row-header.svelte.d.ts +34 -24
- package/package/components/table/table-row.svelte.d.ts +34 -24
- package/package/components/table/table.svelte.d.ts +34 -24
- package/package/components/tabs/tab-box.svelte.d.ts +34 -24
- package/package/components/tabs/tab-list.svelte.d.ts +40 -30
- package/package/components/tabs/tab-panel.svelte.d.ts +34 -24
- package/package/components/tabs/tab-panels.svelte.d.ts +33 -23
- package/package/components/tabs/tab.svelte.d.ts +60 -38
- package/package/components/text-editor/lexical-root.svelte.d.ts +27 -26
- package/package/components/text-editor/text-editor.svelte.d.ts +31 -30
- package/package/components/text-editor/toolbar/editor-toolbar.svelte.d.ts +23 -22
- package/package/components/text-editor/toolbar/format-text-button.svelte.d.ts +22 -21
- package/package/components/text-editor/toolbar/insert-link-button.svelte.d.ts +22 -21
- package/package/components/text-editor/toolbar/toggle-block-menu-item.svelte.d.ts +22 -21
- package/package/components/text-field/number-input.svelte.d.ts +46 -45
- package/package/components/text-field/password-input.svelte.d.ts +40 -39
- package/package/components/text-field/search-bar.svelte.d.ts +62 -66
- package/package/components/text-field/text-area.svelte.d.ts +38 -37
- package/package/components/text-field/text-input.svelte +1 -1
- package/package/components/text-field/text-input.svelte.d.ts +73 -84
- package/package/components/toast/toast.svelte.d.ts +37 -27
- package/package/components/toolbar/toolbar.svelte.d.ts +38 -28
- package/package/components/util/app-shell.svelte.d.ts +37 -27
- package/package/components/util/group.svelte.d.ts +36 -26
- package/package/components/util/modal.svelte.d.ts +70 -63
- package/package/components/util/popup.svelte.d.ts +75 -65
- package/package/components/util/portal.svelte.d.ts +34 -24
- package/package.json +24 -24
|
@@ -1,13 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default SplitButton;
|
|
2
|
+
type SplitButton = SvelteComponent<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
class?: string | undefined;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
8
|
+
hidden?: boolean | undefined;
|
|
9
|
+
variant?: "primary" | "secondary" | "tertiary" | "ghost" | undefined;
|
|
10
|
+
popupPosition?: PopupPosition | undefined;
|
|
11
|
+
showPopupBackdrop?: boolean | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
click: MouseEvent;
|
|
14
|
+
} & {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {
|
|
17
|
+
'start-icon': {
|
|
18
|
+
slot: string;
|
|
19
|
+
};
|
|
20
|
+
'chevron-icon': {
|
|
21
|
+
slot: string;
|
|
22
|
+
};
|
|
23
|
+
popup: {
|
|
24
|
+
slot: string;
|
|
25
|
+
};
|
|
26
|
+
}> & {
|
|
27
|
+
$$bindings?: string | undefined;
|
|
28
|
+
};
|
|
4
29
|
/**
|
|
5
30
|
* A combination of a normal `<Button>` (default action) and an arrow-only `<MenuButton>` (different
|
|
6
31
|
* actions). For example, Microsoft Word has the Paste button along with the Keep Source Formatting,
|
|
7
32
|
* Match Formatting and Keep Text Only options.
|
|
8
33
|
* @see https://www.google.com/search?q=split+button&tbm=isch
|
|
9
34
|
*/
|
|
10
|
-
|
|
35
|
+
declare const SplitButton: $$__sveltets_2_IsomorphicComponent<{
|
|
11
36
|
[x: string]: any;
|
|
12
37
|
class?: string | undefined;
|
|
13
38
|
disabled?: boolean | undefined;
|
|
@@ -31,41 +56,17 @@ export default class SplitButton extends SvelteComponent<{
|
|
|
31
56
|
popup: {
|
|
32
57
|
slot: string;
|
|
33
58
|
};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
label?: string | undefined;
|
|
46
|
-
size?: "small" | "medium" | "large" | undefined;
|
|
47
|
-
hidden?: boolean | undefined;
|
|
48
|
-
variant?: "primary" | "secondary" | "tertiary" | "ghost" | undefined;
|
|
49
|
-
popupPosition?: import("../../typedefs").PopupPosition | undefined;
|
|
50
|
-
showPopupBackdrop?: boolean | undefined;
|
|
51
|
-
};
|
|
52
|
-
events: {
|
|
53
|
-
click: MouseEvent;
|
|
54
|
-
} & {
|
|
55
|
-
[evt: string]: CustomEvent<any>;
|
|
59
|
+
}, {}, string>;
|
|
60
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
61
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
62
|
+
$$bindings?: Bindings;
|
|
63
|
+
} & Exports;
|
|
64
|
+
(internal: unknown, props: Props & {
|
|
65
|
+
$$events?: Events;
|
|
66
|
+
$$slots?: Slots;
|
|
67
|
+
}): Exports & {
|
|
68
|
+
$set?: any;
|
|
69
|
+
$on?: any;
|
|
56
70
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
slot: string;
|
|
60
|
-
};
|
|
61
|
-
'chevron-icon': {
|
|
62
|
-
slot: string;
|
|
63
|
-
};
|
|
64
|
-
popup: {
|
|
65
|
-
slot: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
exports?: undefined;
|
|
69
|
-
bindings?: undefined;
|
|
70
|
-
};
|
|
71
|
-
export {};
|
|
71
|
+
z_$$bindings?: Bindings;
|
|
72
|
+
}
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default Calendar;
|
|
2
|
+
type Calendar = SvelteComponent<{
|
|
3
|
+
value?: string | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
click: MouseEvent;
|
|
6
|
+
} & {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> & {
|
|
9
|
+
$$bindings?: string | undefined;
|
|
10
|
+
};
|
|
4
11
|
/** A calendar (date picker) widget. */
|
|
5
|
-
|
|
12
|
+
declare const Calendar: $$__sveltets_2_IsomorphicComponent<{
|
|
6
13
|
value?: string | undefined;
|
|
7
14
|
}, {
|
|
8
15
|
click: MouseEvent;
|
|
9
16
|
} & {
|
|
10
17
|
[evt: string]: CustomEvent<any>;
|
|
11
|
-
}, {}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
click: MouseEvent;
|
|
23
|
-
} & {
|
|
24
|
-
[evt: string]: CustomEvent<any>;
|
|
18
|
+
}, {}, {}, string>;
|
|
19
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
20
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
21
|
+
$$bindings?: Bindings;
|
|
22
|
+
} & Exports;
|
|
23
|
+
(internal: unknown, props: Props & {
|
|
24
|
+
$$events?: Events;
|
|
25
|
+
$$slots?: Slots;
|
|
26
|
+
}): Exports & {
|
|
27
|
+
$set?: any;
|
|
28
|
+
$on?: any;
|
|
25
29
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
bindings?: undefined;
|
|
29
|
-
};
|
|
30
|
-
export {};
|
|
30
|
+
z_$$bindings?: Bindings;
|
|
31
|
+
}
|
|
@@ -1,38 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default CheckboxGroup;
|
|
2
|
+
type CheckboxGroup = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
class?: string | undefined;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
hidden?: boolean | undefined;
|
|
7
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}>, {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
}, {
|
|
13
|
+
default: {};
|
|
14
|
+
}> & {
|
|
15
|
+
$$bindings?: string | undefined;
|
|
16
|
+
};
|
|
4
17
|
/** The layout container of `<Checkbox>`es. */
|
|
5
|
-
|
|
18
|
+
declare const CheckboxGroup: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
6
19
|
[x: string]: any;
|
|
7
20
|
class?: string | undefined;
|
|
8
21
|
disabled?: boolean | undefined;
|
|
9
22
|
hidden?: boolean | undefined;
|
|
10
23
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
11
24
|
}, {
|
|
25
|
+
default: {};
|
|
26
|
+
}>, {
|
|
12
27
|
[evt: string]: CustomEvent<any>;
|
|
13
28
|
}, {
|
|
14
29
|
default: {};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
}, {}, string>;
|
|
31
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
32
|
+
default: any;
|
|
33
|
+
} ? Props extends Record<string, never> ? any : {
|
|
34
|
+
children?: any;
|
|
35
|
+
} : {});
|
|
36
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
37
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
38
|
+
$$bindings?: Bindings;
|
|
39
|
+
} & Exports;
|
|
40
|
+
(internal: unknown, props: Props & {
|
|
41
|
+
$$events?: Events;
|
|
42
|
+
$$slots?: Slots;
|
|
43
|
+
}): Exports & {
|
|
44
|
+
$set?: any;
|
|
45
|
+
$on?: any;
|
|
28
46
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
slots: {
|
|
33
|
-
default: {};
|
|
34
|
-
};
|
|
35
|
-
exports?: undefined;
|
|
36
|
-
bindings?: undefined;
|
|
37
|
-
};
|
|
38
|
-
export {};
|
|
47
|
+
z_$$bindings?: Bindings;
|
|
48
|
+
}
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
{invalid}
|
|
104
104
|
aria-checked={checked}
|
|
105
105
|
aria-label={ariaLabel || undefined}
|
|
106
|
-
aria-labelledby={ariaLabel ? undefined :
|
|
106
|
+
aria-labelledby={ariaLabel ? undefined : `${id}-label`}
|
|
107
107
|
{...$$restProps}
|
|
108
108
|
bind:this={buttonComponent}
|
|
109
109
|
on:click={(event) => {
|
|
@@ -1,13 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default Checkbox;
|
|
2
|
+
type Checkbox = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
class?: string | undefined;
|
|
5
|
+
name?: string | undefined;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
invalid?: boolean | undefined;
|
|
8
|
+
label?: string | undefined;
|
|
9
|
+
checked?: boolean | "mixed" | undefined;
|
|
10
|
+
required?: boolean | undefined;
|
|
11
|
+
value?: string | undefined;
|
|
12
|
+
hidden?: boolean | undefined;
|
|
13
|
+
readonly?: boolean | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
'check-icon': {
|
|
16
|
+
slot: string;
|
|
17
|
+
};
|
|
18
|
+
default: {};
|
|
19
|
+
}>, {
|
|
20
|
+
change: CustomEvent<any>;
|
|
21
|
+
} & {
|
|
22
|
+
[evt: string]: CustomEvent<any>;
|
|
23
|
+
}, {
|
|
24
|
+
'check-icon': {
|
|
25
|
+
slot: string;
|
|
26
|
+
};
|
|
27
|
+
default: {};
|
|
28
|
+
}> & {
|
|
29
|
+
$$bindings?: string | undefined;
|
|
30
|
+
};
|
|
4
31
|
/**
|
|
5
32
|
* The equivalent of the HTML `<input type="checkbox">` element.
|
|
6
33
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox
|
|
7
34
|
* @see https://w3c.github.io/aria/#checkbox
|
|
8
35
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/
|
|
9
36
|
*/
|
|
10
|
-
|
|
37
|
+
declare const Checkbox: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
11
38
|
[x: string]: any;
|
|
12
39
|
class?: string | undefined;
|
|
13
40
|
name?: string | undefined;
|
|
@@ -20,6 +47,11 @@ export default class Checkbox extends SvelteComponent<{
|
|
|
20
47
|
hidden?: boolean | undefined;
|
|
21
48
|
readonly?: boolean | undefined;
|
|
22
49
|
}, {
|
|
50
|
+
'check-icon': {
|
|
51
|
+
slot: string;
|
|
52
|
+
};
|
|
53
|
+
default: {};
|
|
54
|
+
}>, {
|
|
23
55
|
change: CustomEvent<any>;
|
|
24
56
|
} & {
|
|
25
57
|
[evt: string]: CustomEvent<any>;
|
|
@@ -28,38 +60,22 @@ export default class Checkbox extends SvelteComponent<{
|
|
|
28
60
|
slot: string;
|
|
29
61
|
};
|
|
30
62
|
default: {};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
value?: string | undefined;
|
|
48
|
-
hidden?: boolean | undefined;
|
|
49
|
-
readonly?: boolean | undefined;
|
|
63
|
+
}, {}, string>;
|
|
64
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
65
|
+
default: any;
|
|
66
|
+
} ? Props extends Record<string, never> ? any : {
|
|
67
|
+
children?: any;
|
|
68
|
+
} : {});
|
|
69
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
70
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
71
|
+
$$bindings?: Bindings;
|
|
72
|
+
} & Exports;
|
|
73
|
+
(internal: unknown, props: Props & {
|
|
74
|
+
$$events?: Events;
|
|
75
|
+
$$slots?: Slots;
|
|
76
|
+
}): Exports & {
|
|
77
|
+
$set?: any;
|
|
78
|
+
$on?: any;
|
|
50
79
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} & {
|
|
54
|
-
[evt: string]: CustomEvent<any>;
|
|
55
|
-
};
|
|
56
|
-
slots: {
|
|
57
|
-
'check-icon': {
|
|
58
|
-
slot: string;
|
|
59
|
-
};
|
|
60
|
-
default: {};
|
|
61
|
-
};
|
|
62
|
-
exports?: undefined;
|
|
63
|
-
bindings?: undefined;
|
|
64
|
-
};
|
|
65
|
-
export {};
|
|
80
|
+
z_$$bindings?: Bindings;
|
|
81
|
+
}
|
|
@@ -1,19 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default AlertDialog;
|
|
2
|
+
type AlertDialog = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
title: string;
|
|
5
|
+
class?: string | undefined;
|
|
6
|
+
open?: boolean | undefined;
|
|
7
|
+
okLabel?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}>, {
|
|
11
|
+
opening: CustomEvent<any>;
|
|
12
|
+
open: CustomEvent<any>;
|
|
13
|
+
ok: CustomEvent<any>;
|
|
14
|
+
cancel: CustomEvent<any>;
|
|
15
|
+
closing: CustomEvent<any>;
|
|
16
|
+
close: CustomEvent<any>;
|
|
17
|
+
} & {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
}, {
|
|
20
|
+
default: {};
|
|
21
|
+
}> & {
|
|
22
|
+
$$bindings?: string | undefined;
|
|
23
|
+
};
|
|
4
24
|
/**
|
|
5
25
|
* A modal alert dialog. It only shows the OK button, just like `window.alert()`.
|
|
6
26
|
* @see https://w3c.github.io/aria/#alertdialog
|
|
7
27
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/alertdialog/
|
|
8
28
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/alert
|
|
9
29
|
*/
|
|
10
|
-
|
|
30
|
+
declare const AlertDialog: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
11
31
|
[x: string]: any;
|
|
12
32
|
title: string;
|
|
13
33
|
class?: string | undefined;
|
|
14
34
|
open?: boolean | undefined;
|
|
15
35
|
okLabel?: string | undefined;
|
|
16
36
|
}, {
|
|
37
|
+
default: {};
|
|
38
|
+
}>, {
|
|
17
39
|
opening: CustomEvent<any>;
|
|
18
40
|
open: CustomEvent<any>;
|
|
19
41
|
ok: CustomEvent<any>;
|
|
@@ -24,34 +46,22 @@ export default class AlertDialog extends SvelteComponent<{
|
|
|
24
46
|
[evt: string]: CustomEvent<any>;
|
|
25
47
|
}, {
|
|
26
48
|
default: {};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
open: CustomEvent<any>;
|
|
44
|
-
ok: CustomEvent<any>;
|
|
45
|
-
cancel: CustomEvent<any>;
|
|
46
|
-
closing: CustomEvent<any>;
|
|
47
|
-
close: CustomEvent<any>;
|
|
48
|
-
} & {
|
|
49
|
-
[evt: string]: CustomEvent<any>;
|
|
49
|
+
}, {}, string>;
|
|
50
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
51
|
+
default: any;
|
|
52
|
+
} ? Props extends Record<string, never> ? any : {
|
|
53
|
+
children?: any;
|
|
54
|
+
} : {});
|
|
55
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
56
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
57
|
+
$$bindings?: Bindings;
|
|
58
|
+
} & Exports;
|
|
59
|
+
(internal: unknown, props: Props & {
|
|
60
|
+
$$events?: Events;
|
|
61
|
+
$$slots?: Slots;
|
|
62
|
+
}): Exports & {
|
|
63
|
+
$set?: any;
|
|
64
|
+
$on?: any;
|
|
50
65
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
exports?: undefined;
|
|
55
|
-
bindings?: undefined;
|
|
56
|
-
};
|
|
57
|
-
export {};
|
|
66
|
+
z_$$bindings?: Bindings;
|
|
67
|
+
}
|
|
@@ -1,13 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default ConfirmationDialog;
|
|
2
|
+
type ConfirmationDialog = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
title: string;
|
|
5
|
+
class?: string | undefined;
|
|
6
|
+
open?: boolean | undefined;
|
|
7
|
+
okLabel?: string | undefined;
|
|
8
|
+
cancelLabel?: string | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
default: {};
|
|
11
|
+
}>, {
|
|
12
|
+
opening: CustomEvent<any>;
|
|
13
|
+
open: CustomEvent<any>;
|
|
14
|
+
ok: CustomEvent<any>;
|
|
15
|
+
cancel: CustomEvent<any>;
|
|
16
|
+
closing: CustomEvent<any>;
|
|
17
|
+
close: CustomEvent<any>;
|
|
18
|
+
} & {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
}, {
|
|
21
|
+
default: {};
|
|
22
|
+
}> & {
|
|
23
|
+
$$bindings?: string | undefined;
|
|
24
|
+
};
|
|
4
25
|
/**
|
|
5
26
|
* A modal confirmation dialog. It shows the OK and Cancel buttons, just like `window.confirm()`.
|
|
6
27
|
* @see https://w3c.github.io/aria/#alertdialog
|
|
7
28
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/alertdialog/
|
|
8
29
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm
|
|
9
30
|
*/
|
|
10
|
-
|
|
31
|
+
declare const ConfirmationDialog: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
11
32
|
[x: string]: any;
|
|
12
33
|
title: string;
|
|
13
34
|
class?: string | undefined;
|
|
@@ -15,6 +36,8 @@ export default class ConfirmationDialog extends SvelteComponent<{
|
|
|
15
36
|
okLabel?: string | undefined;
|
|
16
37
|
cancelLabel?: string | undefined;
|
|
17
38
|
}, {
|
|
39
|
+
default: {};
|
|
40
|
+
}>, {
|
|
18
41
|
opening: CustomEvent<any>;
|
|
19
42
|
open: CustomEvent<any>;
|
|
20
43
|
ok: CustomEvent<any>;
|
|
@@ -25,35 +48,22 @@ export default class ConfirmationDialog extends SvelteComponent<{
|
|
|
25
48
|
[evt: string]: CustomEvent<any>;
|
|
26
49
|
}, {
|
|
27
50
|
default: {};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
opening: CustomEvent<any>;
|
|
45
|
-
open: CustomEvent<any>;
|
|
46
|
-
ok: CustomEvent<any>;
|
|
47
|
-
cancel: CustomEvent<any>;
|
|
48
|
-
closing: CustomEvent<any>;
|
|
49
|
-
close: CustomEvent<any>;
|
|
50
|
-
} & {
|
|
51
|
-
[evt: string]: CustomEvent<any>;
|
|
51
|
+
}, {}, string>;
|
|
52
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
53
|
+
default: any;
|
|
54
|
+
} ? Props extends Record<string, never> ? any : {
|
|
55
|
+
children?: any;
|
|
56
|
+
} : {});
|
|
57
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
58
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
59
|
+
$$bindings?: Bindings;
|
|
60
|
+
} & Exports;
|
|
61
|
+
(internal: unknown, props: Props & {
|
|
62
|
+
$$events?: Events;
|
|
63
|
+
$$slots?: Slots;
|
|
64
|
+
}): Exports & {
|
|
65
|
+
$set?: any;
|
|
66
|
+
$on?: any;
|
|
52
67
|
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
};
|
|
56
|
-
exports?: undefined;
|
|
57
|
-
bindings?: undefined;
|
|
58
|
-
};
|
|
59
|
-
export {};
|
|
68
|
+
z_$$bindings?: Bindings;
|
|
69
|
+
}
|