lutra 0.0.17 → 0.0.19
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/data/Stat.svelte.d.ts +12 -6
- package/dist/display/Avatar.svelte.d.ts +5 -0
- package/dist/display/Badge.svelte.d.ts +10 -6
- package/dist/display/Callout.svelte +8 -4
- package/dist/display/Callout.svelte.d.ts +11 -9
- package/dist/display/Close.svelte +58 -0
- package/dist/display/Close.svelte.d.ts +21 -0
- package/dist/display/Code.svelte.d.ts +10 -8
- package/dist/display/ContextTip.svelte +1 -2
- package/dist/display/ContextTip.svelte.d.ts +5 -0
- package/dist/display/Details.svelte.d.ts +11 -5
- package/dist/display/Hero.svelte.d.ts +9 -4
- package/dist/display/Icon.svelte +4 -6
- package/dist/display/Icon.svelte.d.ts +6 -0
- package/dist/display/IconButton.svelte +2 -3
- package/dist/display/IconButton.svelte.d.ts +8 -4
- package/dist/display/Image.svelte +63 -13
- package/dist/display/Image.svelte.d.ts +15 -2
- package/dist/display/Indicator.svelte.d.ts +5 -3
- package/dist/display/Inset.svelte.d.ts +5 -0
- package/dist/display/Notification.svelte +104 -0
- package/dist/display/Notification.svelte.d.ts +42 -0
- package/dist/display/Popup.svelte.d.ts +10 -4
- package/dist/display/Table.svelte +3 -0
- package/dist/display/Table.svelte.d.ts +11 -0
- package/dist/display/Tag.svelte.d.ts +11 -7
- package/dist/display/Tooltip.svelte.d.ts +9 -3
- package/dist/display/notifications.svelte.d.ts +21 -0
- package/dist/display/notifications.svelte.js +31 -0
- package/dist/form/Button.svelte.d.ts +12 -0
- package/dist/form/FieldActions.svelte +1 -1
- package/dist/form/FieldActions.svelte.d.ts +6 -0
- package/dist/form/FieldContainer.svelte +5 -0
- package/dist/form/FieldContainer.svelte.d.ts +6 -0
- package/dist/form/FieldContent.svelte +3 -0
- package/dist/form/FieldContent.svelte.d.ts +23 -0
- package/dist/form/FieldError.svelte.d.ts +4 -0
- package/dist/form/FieldSection.svelte +15 -1
- package/dist/form/FieldSection.svelte.d.ts +11 -0
- package/dist/form/Fieldset.svelte.d.ts +15 -7
- package/dist/form/Form.svelte +14 -12
- package/dist/form/Form.svelte.d.ts +10 -0
- package/dist/form/Input.svelte +4 -2
- package/dist/form/Input.svelte.d.ts +66 -55
- package/dist/form/InputLength.svelte.d.ts +4 -2
- package/dist/form/Label.svelte.d.ts +9 -3
- package/dist/form/Select.svelte +0 -1
- package/dist/form/Select.svelte.d.ts +44 -27
- package/dist/form/form.js +1 -1
- package/dist/grid/Column.svelte.d.ts +5 -0
- package/dist/grid/Grid.svelte.d.ts +6 -0
- package/dist/grid/Row.svelte.d.ts +6 -1
- package/dist/layout/Layout.svelte +2 -0
- package/dist/layout/Layout.svelte.d.ts +6 -2
- package/dist/layout/LayoutFooter.svelte.d.ts +3 -1
- package/dist/layout/LayoutGrid.svelte.d.ts +13 -5
- package/dist/layout/LayoutHeader.svelte.d.ts +13 -12
- package/dist/layout/LayoutSideMenu.svelte +54 -0
- package/dist/layout/LayoutSideMenu.svelte.d.ts +25 -0
- package/dist/layout/Overlay.svelte +20 -0
- package/dist/layout/Overlay.svelte.d.ts +35 -0
- package/dist/layout/OverlayContainer.svelte +28 -0
- package/dist/layout/OverlayContainer.svelte.d.ts +16 -0
- package/dist/layout/OverlayLayer.svelte +145 -0
- package/dist/layout/OverlayLayer.svelte.d.ts +22 -0
- package/dist/layout/PageContent.svelte +9 -1
- package/dist/layout/PageContent.svelte.d.ts +8 -3
- package/dist/layout/Theme.svelte +8 -0
- package/dist/layout/Theme.svelte.d.ts +6 -0
- package/dist/layout/UIContent.svelte.d.ts +5 -0
- package/dist/layout/overlays.svelte.d.ts +34 -0
- package/dist/layout/overlays.svelte.js +44 -0
- package/dist/nav/Breadcrumb.svelte.d.ts +9 -5
- package/dist/nav/Menu.svelte +43 -62
- package/dist/nav/Menu.svelte.d.ts +11 -4
- package/dist/nav/MenuItem.svelte +25 -7
- package/dist/nav/MenuItem.svelte.d.ts +9 -0
- package/dist/nav/NavMenu.svelte.d.ts +3 -1
- package/dist/nav/TabbedContent.svelte.d.ts +5 -3
- package/dist/nav/Tabs.svelte.d.ts +6 -4
- package/dist/style.css +74 -36
- package/dist/typo/Clamp.svelte.d.ts +8 -3
- package/dist/typo/H.svelte.d.ts +10 -5
- package/dist/typo/H1.svelte.d.ts +9 -4
- package/dist/typo/H2.svelte.d.ts +9 -4
- package/dist/typo/H3.svelte.d.ts +9 -4
- package/dist/typo/H4.svelte.d.ts +9 -4
- package/dist/typo/H5.svelte.d.ts +9 -4
- package/dist/typo/H6.svelte.d.ts +9 -4
- package/dist/typo/P.svelte.d.ts +9 -4
- package/dist/utils/StringOrComponentOrSnippet.svelte +3 -2
- package/dist/utils/StringOrComponentOrSnippet.svelte.d.ts +7 -0
- package/dist/utils/attr.d.ts +2 -2
- package/dist/utils/attr.js +2 -2
- package/dist/utils/dom.d.ts +15 -0
- package/dist/utils/dom.js +74 -0
- package/dist/utils/keyboard.svelte.d.ts +19 -0
- package/dist/utils/keyboard.svelte.js +22 -3
- package/dist/utils/transitions.d.ts +1 -0
- package/dist/utils/transitions.js +9 -2
- package/package.json +11 -9
@@ -2,120 +2,67 @@ import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { Autocomplete } from "./types.js";
|
3
3
|
declare const __propDef: {
|
4
4
|
props: {
|
5
|
-
/** alt attribute for the image type. Required for accessibility */
|
6
5
|
alt?: string | undefined;
|
7
|
-
/** Additional attributes to add to the input element. */
|
8
6
|
attrs?: Record<string, string> | undefined;
|
9
|
-
/** Whether the input should be autocapitalized. */
|
10
7
|
autocapitalize?: boolean | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
11
|
-
/** Specifies whether autocomplete is enabled for the input. */
|
12
8
|
autocomplete?: Autocomplete | undefined;
|
13
|
-
/** Whether the input should be autocorrected. (Safari only) */
|
14
9
|
autocorrect?: boolean | undefined;
|
15
|
-
/** A hint to the browser for which capture method to use. */
|
16
10
|
capture?: "user" | "environment" | undefined;
|
17
|
-
/** Whether the input should be checked. */
|
18
11
|
checked?: boolean | undefined;
|
19
|
-
/** Whether the input should be contained. */
|
20
12
|
contained?: boolean | undefined;
|
21
|
-
/** Whether the input should be copyable. */
|
22
13
|
copyable?: boolean | undefined;
|
23
|
-
/** The default value of the input element. */
|
24
14
|
defaultValue?: string | undefined;
|
25
|
-
/** Form field name for the directionality of the element's text content during form submission */
|
26
15
|
dirname?: string | undefined;
|
27
|
-
/** Whether the input should be disabled. */
|
28
16
|
disabled?: boolean | undefined;
|
29
|
-
/** A hint to the browser for which enter key to display for the input. */
|
30
17
|
enterkeyhint?: "search" | "done" | "enter" | "go" | "next" | "previous" | "send" | undefined;
|
31
|
-
/** The height of the input element. Valid for image inputs. */
|
32
18
|
height?: number | undefined;
|
33
|
-
/** Help text to display below the input. */
|
34
19
|
help?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
35
20
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
36
21
|
}) | undefined;
|
37
|
-
|
38
|
-
id?: string | undefined;
|
39
|
-
/** Whether the input should be indeterminate. */
|
22
|
+
id?: import("svelte").Bindable<string | undefined>;
|
40
23
|
indeterminate?: boolean | undefined;
|
41
|
-
/** A hint to the browser for which keyboard to display. This is only used for type="text" inputs. Strongly consider using type="email" or type="url" etc. instead */
|
42
24
|
inputmode?: "none" | "search" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
|
43
|
-
/** The label for the input */
|
44
25
|
label?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
45
26
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
46
27
|
}) | undefined;
|
47
|
-
/** Context tooltip for a label. Renders with a questionmark using ContextTip. */
|
48
28
|
labelTip?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
49
29
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
50
30
|
}) | undefined;
|
51
|
-
/** The id of a datalist element that contains pre-defined options for the input element. */
|
52
31
|
list?: string | undefined;
|
53
|
-
/** The maximum number of characters (as UTF-16 code units) the user can enter into the input. Valid for text, search, url, tel, email, and password. */
|
54
32
|
maxlength?: number | undefined;
|
55
|
-
/** The minimum number of characters (as UTF-16 code units) the user can enter into the input. Valid for text, search, url, tel, email, and password. */
|
56
33
|
minlength?: number | undefined;
|
57
|
-
/** Allow multiple f
|
58
|
-
/** The maximum value of the input element. Valid for date, month, week, time, datetime-local, number, and range. */
|
59
34
|
max?: number | undefined;
|
60
|
-
/** The minimum value of the input element. Valid for date, month, week, time, datetime-local, number, and range. */
|
61
35
|
min?: number | undefined;
|
62
|
-
/** Whether the input should allow multiple values. Valid for email and file inputs. */
|
63
36
|
multiple?: boolean | undefined;
|
64
|
-
/** The name of the input element. */
|
65
37
|
name: string;
|
66
|
-
/** The onblur event handler */
|
67
38
|
onblur?: ((e: FocusEvent) => void) | undefined;
|
68
|
-
/** Onchange event handler */
|
69
39
|
onchange?: ((e: Event) => void) | undefined;
|
70
|
-
/** Onclick event handler */
|
71
40
|
onclick?: ((e: MouseEvent) => void) | undefined;
|
72
|
-
/** Onfocus event handler */
|
73
41
|
onfocus?: ((e: FocusEvent) => void) | undefined;
|
74
|
-
/** Keyup event handler */
|
75
42
|
onkeyup?: ((e: KeyboardEvent) => void) | undefined;
|
76
|
-
/** Keydown event handler */
|
77
43
|
onkeydown?: ((e: KeyboardEvent) => void) | undefined;
|
78
|
-
/** Keypress event handler */
|
79
44
|
onkeypress?: ((e: KeyboardEvent) => void) | undefined;
|
80
|
-
/** A regular expression that the input's value is checked against. Valid for text, search, url, tel, email, and password. */
|
81
45
|
pattern?: string | undefined;
|
82
|
-
/** Placeholder text to display when the input is empty. */
|
83
46
|
placeholder?: string | undefined;
|
84
|
-
/** Suffix content, to display after the input. */
|
85
47
|
suffix?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
86
48
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
87
49
|
}) | undefined;
|
88
|
-
/** Prefix content, to display before the input. */
|
89
50
|
prefix?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
90
51
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
91
52
|
}) | undefined;
|
92
|
-
/** Whether the input should be read-only. */
|
93
53
|
readonly?: boolean | undefined;
|
94
|
-
/** Whether the input should be required. */
|
95
54
|
required?: boolean | undefined;
|
96
|
-
/** The maximum number of items that should be displayed in the drop-down list of previous search queries. Safari only. */
|
97
55
|
results?: number | undefined;
|
98
|
-
/** The shape of the input element. */
|
99
56
|
shape?: "default" | "circle" | "rounded" | "pill" | undefined;
|
100
|
-
/** The size of the input element. */
|
101
57
|
size?: number | undefined;
|
102
|
-
/** Source URL for the image type. */
|
103
58
|
src?: string | undefined;
|
104
|
-
/** Spellcheck the input. */
|
105
59
|
spellcheck?: boolean | undefined;
|
106
|
-
/** A number that specifies the granularity that the value must adhere to. Valid for date, month, week, time, datetime-local, number, and range. */
|
107
60
|
step?: number | undefined;
|
108
|
-
/** An integer attribute indicating if the element can take input focus (is focusable), if it should participate to sequential keyboard navigation. */
|
109
61
|
tabindex?: number | undefined;
|
110
|
-
/** A string that defines the title of the input element. */
|
111
62
|
title?: string | undefined;
|
112
|
-
/** The type of input to display. */
|
113
63
|
type?: "number" | "color" | "button" | "search" | "time" | "image" | "text" | "submit" | "email" | "tel" | "url" | "date" | "checkbox" | "radio" | "hidden" | "password" | "file" | "range" | "datetime-local" | "month" | "week" | undefined;
|
114
|
-
|
115
|
-
value?: string | undefined;
|
116
|
-
/** Whether the input should be viewable. Valid for password inputs. */
|
64
|
+
value?: import("svelte").Bindable<string | undefined>;
|
117
65
|
viewable?: boolean | undefined;
|
118
|
-
/** Whether the input should only accept directory uploads. */
|
119
66
|
webkitdirectory?: boolean | undefined;
|
120
67
|
};
|
121
68
|
events: {
|
@@ -127,5 +74,69 @@ export type InputProps = typeof __propDef.props;
|
|
127
74
|
export type InputEvents = typeof __propDef.events;
|
128
75
|
export type InputSlots = typeof __propDef.slots;
|
129
76
|
export default class Input extends SvelteComponent<InputProps, InputEvents, InputSlots> {
|
77
|
+
constructor(options?: import("svelte").ComponentConstructorOptions<{
|
78
|
+
alt?: string | undefined;
|
79
|
+
attrs?: Record<string, string> | undefined;
|
80
|
+
autocapitalize?: boolean | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
81
|
+
autocomplete?: Autocomplete | undefined;
|
82
|
+
autocorrect?: boolean | undefined;
|
83
|
+
capture?: "user" | "environment" | undefined;
|
84
|
+
checked?: boolean | undefined;
|
85
|
+
contained?: boolean | undefined;
|
86
|
+
copyable?: boolean | undefined;
|
87
|
+
defaultValue?: string | undefined;
|
88
|
+
dirname?: string | undefined;
|
89
|
+
disabled?: boolean | undefined;
|
90
|
+
enterkeyhint?: "search" | "done" | "enter" | "go" | "next" | "previous" | "send" | undefined;
|
91
|
+
height?: number | undefined;
|
92
|
+
help?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
93
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
94
|
+
}) | undefined;
|
95
|
+
id?: import("svelte").Bindable<string | undefined>;
|
96
|
+
indeterminate?: boolean | undefined;
|
97
|
+
inputmode?: "none" | "search" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
|
98
|
+
label?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
99
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
100
|
+
}) | undefined;
|
101
|
+
labelTip?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
102
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
103
|
+
}) | undefined;
|
104
|
+
list?: string | undefined;
|
105
|
+
maxlength?: number | undefined;
|
106
|
+
minlength?: number | undefined;
|
107
|
+
max?: number | undefined;
|
108
|
+
min?: number | undefined;
|
109
|
+
multiple?: boolean | undefined;
|
110
|
+
name: string;
|
111
|
+
onblur?: ((e: FocusEvent) => void) | undefined;
|
112
|
+
onchange?: ((e: Event) => void) | undefined;
|
113
|
+
onclick?: ((e: MouseEvent) => void) | undefined;
|
114
|
+
onfocus?: ((e: FocusEvent) => void) | undefined;
|
115
|
+
onkeyup?: ((e: KeyboardEvent) => void) | undefined;
|
116
|
+
onkeydown?: ((e: KeyboardEvent) => void) | undefined;
|
117
|
+
onkeypress?: ((e: KeyboardEvent) => void) | undefined;
|
118
|
+
pattern?: string | undefined;
|
119
|
+
placeholder?: string | undefined;
|
120
|
+
suffix?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
121
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
122
|
+
}) | undefined;
|
123
|
+
prefix?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
124
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
125
|
+
}) | undefined;
|
126
|
+
readonly?: boolean | undefined;
|
127
|
+
required?: boolean | undefined;
|
128
|
+
results?: number | undefined;
|
129
|
+
shape?: "default" | "circle" | "rounded" | "pill" | undefined;
|
130
|
+
size?: number | undefined;
|
131
|
+
src?: string | undefined;
|
132
|
+
spellcheck?: boolean | undefined;
|
133
|
+
step?: number | undefined;
|
134
|
+
tabindex?: number | undefined;
|
135
|
+
title?: string | undefined;
|
136
|
+
type?: "number" | "color" | "button" | "search" | "time" | "image" | "text" | "submit" | "email" | "tel" | "url" | "date" | "checkbox" | "radio" | "hidden" | "password" | "file" | "range" | "datetime-local" | "month" | "week" | undefined;
|
137
|
+
value?: import("svelte").Bindable<string | undefined>;
|
138
|
+
viewable?: boolean | undefined;
|
139
|
+
webkitdirectory?: boolean | undefined;
|
140
|
+
}>);
|
130
141
|
}
|
131
142
|
export {};
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
2
2
|
declare const __propDef: {
|
3
3
|
props: {
|
4
|
-
/** The value of the input. */
|
5
4
|
value: string;
|
6
|
-
/** The maximum length of the input. */
|
7
5
|
maxlength: number;
|
8
6
|
};
|
9
7
|
events: {
|
@@ -15,5 +13,9 @@ export type InputLengthProps = typeof __propDef.props;
|
|
15
13
|
export type InputLengthEvents = typeof __propDef.events;
|
16
14
|
export type InputLengthSlots = typeof __propDef.slots;
|
17
15
|
export default class InputLength extends SvelteComponent<InputLengthProps, InputLengthEvents, InputLengthSlots> {
|
16
|
+
constructor(options?: import("svelte").ComponentConstructorOptions<{
|
17
|
+
value: string;
|
18
|
+
maxlength: number;
|
19
|
+
}>);
|
18
20
|
}
|
19
21
|
export {};
|
@@ -1,13 +1,10 @@
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
2
2
|
declare const __propDef: {
|
3
3
|
props: {
|
4
|
-
/** The id of the input element */
|
5
4
|
id?: string | undefined;
|
6
|
-
/** The label for the input */
|
7
5
|
label?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
8
6
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
9
7
|
}) | undefined;
|
10
|
-
/** The help text for the input */
|
11
8
|
tip?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
12
9
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
13
10
|
}) | undefined;
|
@@ -21,5 +18,14 @@ export type LabelProps = typeof __propDef.props;
|
|
21
18
|
export type LabelEvents = typeof __propDef.events;
|
22
19
|
export type LabelSlots = typeof __propDef.slots;
|
23
20
|
export default class Label extends SvelteComponent<LabelProps, LabelEvents, LabelSlots> {
|
21
|
+
constructor(options?: import("svelte").ComponentConstructorOptions<{
|
22
|
+
id?: string | undefined;
|
23
|
+
label?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
24
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
25
|
+
}) | undefined;
|
26
|
+
tip?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
27
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
28
|
+
}) | undefined;
|
29
|
+
}>);
|
24
30
|
}
|
25
31
|
export {};
|
package/dist/form/Select.svelte
CHANGED
@@ -1,71 +1,46 @@
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
2
2
|
declare const __propDef: {
|
3
3
|
props: {
|
4
|
-
/** Additional attributes to add to the input element. */
|
5
4
|
attrs?: Record<string, string> | undefined;
|
6
|
-
/** Options for the select element. */
|
7
5
|
children?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
8
6
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
9
7
|
}) | undefined;
|
10
|
-
/** Whether the input should be disabled. */
|
11
8
|
disabled?: boolean | undefined;
|
12
|
-
/** Help text to display below the input. */
|
13
9
|
help?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
14
10
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
15
11
|
}) | undefined;
|
16
|
-
|
17
|
-
id?: string | undefined;
|
18
|
-
/** The label for the input */
|
12
|
+
id?: import("svelte").Bindable<string | undefined>;
|
19
13
|
label?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
20
14
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
21
15
|
}) | undefined;
|
22
|
-
/** Context tooltip for a label. Renders with a questionmark using ContextTip. */
|
23
16
|
labelTip?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
24
17
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
25
18
|
}) | undefined;
|
26
|
-
/** The name of the input element. */
|
27
19
|
name: string;
|
28
|
-
/** The onblur event handler */
|
29
20
|
onblur?: ((e: FocusEvent) => void) | undefined;
|
30
|
-
/** Onchange event handler */
|
31
21
|
onchange?: ((e: Event) => void) | undefined;
|
32
|
-
/** Onclick event handler */
|
33
22
|
onclick?: ((e: MouseEvent) => void) | undefined;
|
34
|
-
/** Onfocus event handler */
|
35
23
|
onfocus?: ((e: FocusEvent) => void) | undefined;
|
36
|
-
/** Keyup event handler */
|
37
24
|
onkeyup?: ((e: KeyboardEvent) => void) | undefined;
|
38
|
-
/** Keydown event handler */
|
39
25
|
onkeydown?: ((e: KeyboardEvent) => void) | undefined;
|
40
|
-
/** Keypress event handler */
|
41
26
|
onkeypress?: ((e: KeyboardEvent) => void) | undefined;
|
42
|
-
/** The options for the select element. */
|
43
27
|
options?: string[] | {
|
44
28
|
value: string;
|
45
29
|
label: string;
|
46
30
|
}[] | undefined;
|
47
|
-
/** Placeholder text to display when the input is empty. */
|
48
31
|
placeholder?: string | undefined;
|
49
|
-
/** Suffix content, to display after the input. */
|
50
32
|
suffix?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
51
33
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
52
34
|
}) | undefined;
|
53
|
-
/** Prefix content, to display before the input. */
|
54
35
|
prefix?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
55
36
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
56
37
|
}) | undefined;
|
57
|
-
/** Whether the input should be required. */
|
58
38
|
required?: boolean | undefined;
|
59
|
-
/** The maximum number of items that should be displayed in the drop-down list of previous search queries. Safari only. */
|
60
39
|
results?: number | undefined;
|
61
|
-
/** The shape of the input element. */
|
62
40
|
shape?: "default" | "circle" | "rounded" | "pill" | undefined;
|
63
|
-
/** Source URL for the image type. */
|
64
41
|
src?: string | undefined;
|
65
|
-
/** An integer attribute indicating if the element can take input focus (is focusable), if it should participate to sequential keyboard navigation. */
|
66
42
|
tabindex?: number | undefined;
|
67
|
-
|
68
|
-
value?: string | undefined;
|
43
|
+
value?: import("svelte").Bindable<string | undefined>;
|
69
44
|
};
|
70
45
|
events: {
|
71
46
|
[evt: string]: CustomEvent<any>;
|
@@ -76,5 +51,47 @@ export type SelectProps = typeof __propDef.props;
|
|
76
51
|
export type SelectEvents = typeof __propDef.events;
|
77
52
|
export type SelectSlots = typeof __propDef.slots;
|
78
53
|
export default class Select extends SvelteComponent<SelectProps, SelectEvents, SelectSlots> {
|
54
|
+
constructor(options?: import("svelte").ComponentConstructorOptions<{
|
55
|
+
attrs?: Record<string, string> | undefined;
|
56
|
+
children?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
57
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
58
|
+
}) | undefined;
|
59
|
+
disabled?: boolean | undefined;
|
60
|
+
help?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
61
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
62
|
+
}) | undefined;
|
63
|
+
id?: import("svelte").Bindable<string | undefined>;
|
64
|
+
label?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
65
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
66
|
+
}) | undefined;
|
67
|
+
labelTip?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
68
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
69
|
+
}) | undefined;
|
70
|
+
name: string;
|
71
|
+
onblur?: ((e: FocusEvent) => void) | undefined;
|
72
|
+
onchange?: ((e: Event) => void) | undefined;
|
73
|
+
onclick?: ((e: MouseEvent) => void) | undefined;
|
74
|
+
onfocus?: ((e: FocusEvent) => void) | undefined;
|
75
|
+
onkeyup?: ((e: KeyboardEvent) => void) | undefined;
|
76
|
+
onkeydown?: ((e: KeyboardEvent) => void) | undefined;
|
77
|
+
onkeypress?: ((e: KeyboardEvent) => void) | undefined;
|
78
|
+
options?: string[] | {
|
79
|
+
value: string;
|
80
|
+
label: string;
|
81
|
+
}[] | undefined;
|
82
|
+
placeholder?: string | undefined;
|
83
|
+
suffix?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
84
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
85
|
+
}) | undefined;
|
86
|
+
prefix?: string | ((this: void) => typeof import("svelte").SnippetReturn & {
|
87
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
88
|
+
}) | undefined;
|
89
|
+
required?: boolean | undefined;
|
90
|
+
results?: number | undefined;
|
91
|
+
shape?: "default" | "circle" | "rounded" | "pill" | undefined;
|
92
|
+
src?: string | undefined;
|
93
|
+
tabindex?: number | undefined;
|
94
|
+
value?: import("svelte").Bindable<string | undefined>;
|
95
|
+
}>);
|
79
96
|
}
|
80
97
|
export {};
|
package/dist/form/form.js
CHANGED
@@ -184,7 +184,7 @@ export async function loadForm(schema, event, obj) {
|
|
184
184
|
* @returns {FormIssue[]} - The parsed issues.
|
185
185
|
*/
|
186
186
|
export function parseFormIssues(issues) {
|
187
|
-
return JSON.parse(JSON.stringify(issues.map((issue) => {
|
187
|
+
return JSON.parse(JSON.stringify((issues || []).map((issue) => {
|
188
188
|
return {
|
189
189
|
...issue,
|
190
190
|
name: arrayPathToStringPath(issue.path),
|
@@ -13,5 +13,10 @@ export type ColumnProps = typeof __propDef.props;
|
|
13
13
|
export type ColumnEvents = typeof __propDef.events;
|
14
14
|
export type ColumnSlots = typeof __propDef.slots;
|
15
15
|
export default class Column extends SvelteComponent<ColumnProps, ColumnEvents, ColumnSlots> {
|
16
|
+
constructor(options?: import("svelte").ComponentConstructorOptions<{
|
17
|
+
children: (this: void) => typeof import("svelte").SnippetReturn & {
|
18
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
19
|
+
};
|
20
|
+
}>);
|
16
21
|
}
|
17
22
|
export {};
|
@@ -14,5 +14,11 @@ export type GridProps = typeof __propDef.props;
|
|
14
14
|
export type GridEvents = typeof __propDef.events;
|
15
15
|
export type GridSlots = typeof __propDef.slots;
|
16
16
|
export default class Grid extends SvelteComponent<GridProps, GridEvents, GridSlots> {
|
17
|
+
constructor(options?: import("svelte").ComponentConstructorOptions<{
|
18
|
+
children: (this: void) => typeof import("svelte").SnippetReturn & {
|
19
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
20
|
+
};
|
21
|
+
fullWidth?: boolean | undefined;
|
22
|
+
}>);
|
17
23
|
}
|
18
24
|
export {};
|
@@ -3,7 +3,6 @@ import { type Snippet } from "svelte";
|
|
3
3
|
declare const __propDef: {
|
4
4
|
props: {
|
5
5
|
children: Snippet;
|
6
|
-
/** The number of columns to span. Pass in a number between 1 and 12, or a string with a fraction. To define a span for different viewport sizes, pass in an array of numbers or strings in the order: `small`, `medium`, `large`, `xlarge`. If the array is shorter than 4, the remaining values will be set to the last value. */
|
7
6
|
span?: string | number | [number, number, number, number] | undefined;
|
8
7
|
};
|
9
8
|
events: {
|
@@ -15,5 +14,11 @@ export type RowProps = typeof __propDef.props;
|
|
15
14
|
export type RowEvents = typeof __propDef.events;
|
16
15
|
export type RowSlots = typeof __propDef.slots;
|
17
16
|
export default class Row extends SvelteComponent<RowProps, RowEvents, RowSlots> {
|
17
|
+
constructor(options?: import("svelte").ComponentConstructorOptions<{
|
18
|
+
children: (this: void) => typeof import("svelte").SnippetReturn & {
|
19
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
20
|
+
};
|
21
|
+
span?: string | number | [number, number, number, number] | undefined;
|
22
|
+
}>);
|
18
23
|
}
|
19
24
|
export {};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<script lang="ts">import "../style.css";
|
2
2
|
import Theme from "./Theme.svelte";
|
3
|
+
import OverlayContainer from "./OverlayContainer.svelte";
|
3
4
|
let {
|
4
5
|
theme,
|
5
6
|
children
|
@@ -33,6 +34,7 @@ let {
|
|
33
34
|
<div class="Layout">
|
34
35
|
<Theme theme={theme}>
|
35
36
|
{@render children()}
|
37
|
+
<OverlayContainer />
|
36
38
|
</Theme>
|
37
39
|
</div>
|
38
40
|
|
@@ -3,9 +3,7 @@ import type { Snippet } from "svelte";
|
|
3
3
|
import "../style.css";
|
4
4
|
declare const __propDef: {
|
5
5
|
props: {
|
6
|
-
/** The theme to use for the layout. Leave empty to detect automatically or get from user preferences, if any exist. */
|
7
6
|
theme?: 'light' | 'dark' | undefined;
|
8
|
-
/** The content to display. */
|
9
7
|
children: Snippet;
|
10
8
|
};
|
11
9
|
events: {
|
@@ -17,5 +15,11 @@ export type LayoutProps = typeof __propDef.props;
|
|
17
15
|
export type LayoutEvents = typeof __propDef.events;
|
18
16
|
export type LayoutSlots = typeof __propDef.slots;
|
19
17
|
export default class Layout extends SvelteComponent<LayoutProps, LayoutEvents, LayoutSlots> {
|
18
|
+
constructor(options?: import("svelte").ComponentConstructorOptions<{
|
19
|
+
theme?: "light" | "dark" | undefined;
|
20
|
+
children: (this: void) => typeof import("svelte").SnippetReturn & {
|
21
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
22
|
+
};
|
23
|
+
}>);
|
20
24
|
}
|
21
25
|
export {};
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
2
2
|
declare const __propDef: {
|
3
3
|
props: {
|
4
|
-
/** The copyright text to display. */
|
5
4
|
copyright?: string | undefined;
|
6
5
|
};
|
7
6
|
events: {
|
@@ -13,5 +12,8 @@ export type LayoutFooterProps = typeof __propDef.props;
|
|
13
12
|
export type LayoutFooterEvents = typeof __propDef.events;
|
14
13
|
export type LayoutFooterSlots = typeof __propDef.slots;
|
15
14
|
export default class LayoutFooter extends SvelteComponent<LayoutFooterProps, LayoutFooterEvents, LayoutFooterSlots> {
|
15
|
+
constructor(options?: import("svelte").ComponentConstructorOptions<{
|
16
|
+
copyright?: string | undefined;
|
17
|
+
}>);
|
16
18
|
}
|
17
19
|
export {};
|
@@ -2,19 +2,14 @@ import { SvelteComponent } from "svelte";
|
|
2
2
|
import { type Snippet } from "svelte";
|
3
3
|
declare const __propDef: {
|
4
4
|
props: {
|
5
|
-
/** The header of the grid. */
|
6
5
|
header?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
7
6
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
8
7
|
}) | undefined;
|
9
|
-
/** The footer of the grid. */
|
10
8
|
footer?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
11
9
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
12
10
|
}) | undefined;
|
13
|
-
/** Add a subtle border to the header and footer. */
|
14
11
|
border?: boolean | undefined;
|
15
|
-
/** Make the header sticky. */
|
16
12
|
sticky?: boolean | undefined;
|
17
|
-
/** The main content of the grid. */
|
18
13
|
children: Snippet;
|
19
14
|
};
|
20
15
|
events: {
|
@@ -26,5 +21,18 @@ export type LayoutGridProps = typeof __propDef.props;
|
|
26
21
|
export type LayoutGridEvents = typeof __propDef.events;
|
27
22
|
export type LayoutGridSlots = typeof __propDef.slots;
|
28
23
|
export default class LayoutGrid extends SvelteComponent<LayoutGridProps, LayoutGridEvents, LayoutGridSlots> {
|
24
|
+
constructor(options?: import("svelte").ComponentConstructorOptions<{
|
25
|
+
header?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
26
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
27
|
+
}) | undefined;
|
28
|
+
footer?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
29
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
30
|
+
}) | undefined;
|
31
|
+
border?: boolean | undefined;
|
32
|
+
sticky?: boolean | undefined;
|
33
|
+
children: (this: void) => typeof import("svelte").SnippetReturn & {
|
34
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
35
|
+
};
|
36
|
+
}>);
|
29
37
|
}
|
30
38
|
export {};
|
@@ -4,25 +4,13 @@ declare const __propDef: {
|
|
4
4
|
left?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
5
5
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
6
6
|
}) | undefined;
|
7
|
-
/**
|
8
|
-
* The center of the header (usually a menu), search bar, etc.
|
9
|
-
*/
|
10
7
|
center?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
11
8
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
12
9
|
}) | undefined;
|
13
|
-
/**
|
14
|
-
* The right side of the header (usually user info, settings, etc.)
|
15
|
-
*/
|
16
10
|
right?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
17
11
|
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
18
12
|
}) | undefined;
|
19
|
-
/**
|
20
|
-
* The text to display for the skip to content link
|
21
|
-
*/
|
22
13
|
skipToContentText?: string | undefined;
|
23
|
-
/**
|
24
|
-
* Whether the header should be sticky
|
25
|
-
*/
|
26
14
|
sticky?: boolean | undefined;
|
27
15
|
};
|
28
16
|
events: {
|
@@ -34,5 +22,18 @@ export type LayoutHeaderProps = typeof __propDef.props;
|
|
34
22
|
export type LayoutHeaderEvents = typeof __propDef.events;
|
35
23
|
export type LayoutHeaderSlots = typeof __propDef.slots;
|
36
24
|
export default class LayoutHeader extends SvelteComponent<LayoutHeaderProps, LayoutHeaderEvents, LayoutHeaderSlots> {
|
25
|
+
constructor(options?: import("svelte").ComponentConstructorOptions<{
|
26
|
+
left?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
27
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
28
|
+
}) | undefined;
|
29
|
+
center?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
30
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
31
|
+
}) | undefined;
|
32
|
+
right?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
33
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
34
|
+
}) | undefined;
|
35
|
+
skipToContentText?: string | undefined;
|
36
|
+
sticky?: boolean | undefined;
|
37
|
+
}>);
|
37
38
|
}
|
38
39
|
export {};
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<script lang="ts">import MenuItem from "../nav/MenuItem.svelte";
|
2
|
+
let {
|
3
|
+
items,
|
4
|
+
children
|
5
|
+
} = $props();
|
6
|
+
</script>
|
7
|
+
|
8
|
+
<main>
|
9
|
+
<aside>
|
10
|
+
<nav>
|
11
|
+
<ul>
|
12
|
+
{#each items as item, index}
|
13
|
+
<MenuItem {index} {item} />
|
14
|
+
{/each}
|
15
|
+
</ul>
|
16
|
+
</nav>
|
17
|
+
</aside>
|
18
|
+
{@render children()}
|
19
|
+
</main>
|
20
|
+
|
21
|
+
<style>
|
22
|
+
main {
|
23
|
+
display: grid;
|
24
|
+
grid-template-columns: clamp(10rem, 20%, 20rem) 1fr;
|
25
|
+
}
|
26
|
+
nav {
|
27
|
+
padding: 4rem 0 4rem 2rem;
|
28
|
+
--menu-item-margin: 0;
|
29
|
+
}
|
30
|
+
ul {
|
31
|
+
list-style: none;
|
32
|
+
margin: 0;
|
33
|
+
padding: 0;
|
34
|
+
position: sticky;
|
35
|
+
top: -1rem;
|
36
|
+
border-left: 1px solid var(--border);
|
37
|
+
}
|
38
|
+
@media (max-width: 1280px) {
|
39
|
+
nav {
|
40
|
+
padding: 2rem 0 2rem 1rem;
|
41
|
+
}
|
42
|
+
ul {
|
43
|
+
padding: 0;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
@media(max-width: 800px) {
|
47
|
+
main {
|
48
|
+
grid-template-columns: 1fr;
|
49
|
+
}
|
50
|
+
nav {
|
51
|
+
padding: 0 1rem;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
</style>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
2
|
+
import type { Snippet } from "svelte";
|
3
|
+
import type { MenuItem as Item } from "../nav/MenuTypes.js";
|
4
|
+
declare const __propDef: {
|
5
|
+
props: {
|
6
|
+
items: Item[];
|
7
|
+
children: Snippet;
|
8
|
+
};
|
9
|
+
events: {
|
10
|
+
[evt: string]: CustomEvent<any>;
|
11
|
+
};
|
12
|
+
slots: {};
|
13
|
+
};
|
14
|
+
export type LayoutSideMenuProps = typeof __propDef.props;
|
15
|
+
export type LayoutSideMenuEvents = typeof __propDef.events;
|
16
|
+
export type LayoutSideMenuSlots = typeof __propDef.slots;
|
17
|
+
export default class LayoutSideMenu extends SvelteComponent<LayoutSideMenuProps, LayoutSideMenuEvents, LayoutSideMenuSlots> {
|
18
|
+
constructor(options?: import("svelte").ComponentConstructorOptions<{
|
19
|
+
items: Item[];
|
20
|
+
children: (this: void) => typeof import("svelte").SnippetReturn & {
|
21
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
22
|
+
};
|
23
|
+
}>);
|
24
|
+
}
|
25
|
+
export {};
|