@dosgato/dialog 1.1.21 → 1.1.22
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/Button.svelte.d.ts +6 -6
- package/dist/ButtonGroup.svelte.d.ts +4 -4
- package/dist/Checkbox.svelte.d.ts +4 -4
- package/dist/Container.svelte.d.ts +2 -2
- package/dist/Dialog.svelte.d.ts +9 -9
- package/dist/FieldAutocomplete.svelte.d.ts +8 -8
- package/dist/FieldCheckbox.svelte.d.ts +5 -5
- package/dist/FieldChoices.svelte.d.ts +5 -5
- package/dist/FieldChooserLink.svelte.d.ts +8 -8
- package/dist/FieldDate.svelte.d.ts +5 -5
- package/dist/FieldDateTime.svelte.d.ts +5 -5
- package/dist/FieldDualListbox.svelte.d.ts +7 -7
- package/dist/FieldHidden.svelte.d.ts +4 -4
- package/dist/FieldIdentifier.svelte.d.ts +1 -1
- package/dist/FieldMultiple.svelte.d.ts +7 -7
- package/dist/FieldMultiselect.svelte.d.ts +8 -8
- package/dist/FieldNumber.svelte.d.ts +6 -6
- package/dist/FieldRadio.svelte.d.ts +10 -10
- package/dist/FieldSelect.svelte.d.ts +12 -12
- package/dist/FieldStandard.svelte.d.ts +8 -8
- package/dist/FieldText.svelte.d.ts +10 -10
- package/dist/FieldTextArea.svelte.d.ts +7 -7
- package/dist/FileIcon.svelte.d.ts +3 -3
- package/dist/Form.svelte.d.ts +41 -7
- package/dist/FormDialog.svelte.d.ts +8 -8
- package/dist/Icon.svelte.d.ts +1 -1
- package/dist/Input.svelte.d.ts +9 -9
- package/dist/Listbox.svelte.d.ts +6 -6
- package/dist/Radio.svelte.d.ts +4 -4
- package/dist/Switcher.svelte.d.ts +10 -10
- package/dist/Tabs.svelte.d.ts +3 -3
- package/dist/Tooltip.svelte.d.ts +5 -5
- package/dist/chooser/Chooser.svelte.d.ts +5 -5
- package/dist/chooser/Details.svelte.d.ts +1 -1
- package/dist/chooser/Thumbnail.svelte.d.ts +3 -3
- package/dist/chooser/UploadUI.svelte.d.ts +5 -5
- package/dist/code/CodeEditor.svelte.d.ts +4 -4
- package/dist/code/FieldCodeEditor.svelte.d.ts +9 -9
- package/dist/colorpicker/FieldColorPicker.svelte.d.ts +5 -5
- package/dist/cropper/FieldCropper.svelte.d.ts +4 -4
- package/dist/iconpicker/FieldIconPicker.svelte +7 -3
- package/dist/iconpicker/FieldIconPicker.svelte.d.ts +3 -3
- package/dist/imageposition/FieldImagePosition.svelte +35 -31
- package/dist/imageposition/FieldImagePosition.svelte.d.ts +3 -3
- package/dist/tree/Tree.svelte.d.ts +2 -2
- package/package.json +7 -8
package/dist/Button.svelte.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import type { IconifyIcon } from '@iconify/svelte';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
type?: "button" | "submit"
|
|
6
|
-
disabled?: boolean
|
|
7
|
-
compact?: boolean
|
|
8
|
-
cancel?: boolean
|
|
9
|
-
destructive?: boolean
|
|
10
|
-
secondary?: boolean
|
|
5
|
+
type?: "button" | "submit";
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
compact?: boolean;
|
|
8
|
+
cancel?: boolean;
|
|
9
|
+
destructive?: boolean;
|
|
10
|
+
secondary?: boolean;
|
|
11
11
|
describedby?: string | undefined;
|
|
12
12
|
element?: HTMLElement | undefined;
|
|
13
13
|
icon?: IconifyIcon | undefined;
|
|
@@ -4,13 +4,13 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
name?: string | undefined;
|
|
6
6
|
choices: PopupMenuItem[];
|
|
7
|
-
value?: string
|
|
7
|
+
value?: string;
|
|
8
8
|
groupid?: string | undefined;
|
|
9
9
|
messagesid?: string | undefined;
|
|
10
10
|
ariaControls?: string | undefined;
|
|
11
|
-
disabled?: boolean
|
|
12
|
-
valid?: boolean
|
|
13
|
-
invalid?: boolean
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
valid?: boolean;
|
|
13
|
+
invalid?: boolean;
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
16
16
|
blur: FocusEvent;
|
|
@@ -7,10 +7,10 @@ declare const __propDef: {
|
|
|
7
7
|
onChange?: any;
|
|
8
8
|
onBlur?: any;
|
|
9
9
|
descid?: string | undefined;
|
|
10
|
-
disabled?: boolean
|
|
11
|
-
valid?: boolean
|
|
12
|
-
invalid?: boolean
|
|
13
|
-
inputelement?: HTMLInputElement
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
valid?: boolean;
|
|
12
|
+
invalid?: boolean;
|
|
13
|
+
inputelement?: HTMLInputElement;
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
@@ -9,8 +9,8 @@ declare const __propDef: {
|
|
|
9
9
|
/** If `descid` is defined then this assumes you've made an outside label referenced to by descid `<div id={descid}`.
|
|
10
10
|
Useful for things like checkboxes and radio buttons that have their own individual labels. */ descid?: string | undefined;
|
|
11
11
|
helptext?: string | undefined;
|
|
12
|
-
/** Syntactic sugar that toggles a '*' to be appended to label. */ required?: boolean
|
|
13
|
-
related?:
|
|
12
|
+
/** Syntactic sugar that toggles a '*' to be appended to label. */ required?: boolean;
|
|
13
|
+
related?: true | number;
|
|
14
14
|
conditional?: boolean | undefined;
|
|
15
15
|
};
|
|
16
16
|
events: {
|
package/dist/Dialog.svelte.d.ts
CHANGED
|
@@ -13,18 +13,18 @@ import type { IconifyIcon } from '@iconify/svelte';
|
|
|
13
13
|
declare const __propDef: {
|
|
14
14
|
props: {
|
|
15
15
|
initialfocus?: string | undefined;
|
|
16
|
-
title?: string
|
|
16
|
+
title?: string;
|
|
17
17
|
icon?: IconifyIcon | undefined;
|
|
18
|
-
size?: "
|
|
18
|
+
size?: "tiny" | "small" | "normal" | "large" | "xl";
|
|
19
19
|
cancelText?: string | undefined;
|
|
20
|
-
continueText?: string
|
|
20
|
+
continueText?: string;
|
|
21
21
|
continueIcon?: IconifyIcon | undefined;
|
|
22
|
-
escapable?: boolean
|
|
23
|
-
expandable?: boolean
|
|
24
|
-
disabled?: boolean
|
|
25
|
-
ignoreTabs?: boolean
|
|
26
|
-
labelid?: string
|
|
27
|
-
descid?: string
|
|
22
|
+
escapable?: boolean;
|
|
23
|
+
expandable?: boolean;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
ignoreTabs?: boolean;
|
|
26
|
+
labelid?: string;
|
|
27
|
+
descid?: string;
|
|
28
28
|
};
|
|
29
29
|
events: {
|
|
30
30
|
escape: CustomEvent<any>;
|
|
@@ -3,11 +3,11 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
id?: string | undefined;
|
|
5
5
|
path: string;
|
|
6
|
-
label?: string
|
|
7
|
-
placeholder?: string
|
|
8
|
-
class?: string
|
|
9
|
-
notNull?: boolean
|
|
10
|
-
disabled?: boolean
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
class?: string;
|
|
9
|
+
notNull?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
11
|
choices: {
|
|
12
12
|
label?: string;
|
|
13
13
|
value: string;
|
|
@@ -15,9 +15,9 @@ declare const __propDef: {
|
|
|
15
15
|
}[];
|
|
16
16
|
defaultValue?: string | undefined;
|
|
17
17
|
conditional?: boolean | undefined;
|
|
18
|
-
required?: boolean
|
|
19
|
-
inputelement?: HTMLInputElement
|
|
20
|
-
related?:
|
|
18
|
+
required?: boolean;
|
|
19
|
+
inputelement?: HTMLInputElement;
|
|
20
|
+
related?: true | number;
|
|
21
21
|
extradescid?: string | undefined;
|
|
22
22
|
helptext?: string | undefined;
|
|
23
23
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
class?: string
|
|
4
|
+
class?: string;
|
|
5
5
|
id?: string | undefined;
|
|
6
6
|
path: string;
|
|
7
|
-
label?: string
|
|
7
|
+
label?: string;
|
|
8
8
|
boxLabel: string;
|
|
9
9
|
defaultValue?: boolean | undefined;
|
|
10
10
|
conditional?: boolean | undefined;
|
|
11
|
-
required?: boolean
|
|
12
|
-
inputelement?: HTMLInputElement
|
|
13
|
-
related?:
|
|
11
|
+
required?: boolean;
|
|
12
|
+
inputelement?: HTMLInputElement;
|
|
13
|
+
related?: true | number;
|
|
14
14
|
extradescid?: string | undefined;
|
|
15
15
|
helptext?: string | undefined;
|
|
16
16
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
class?: string
|
|
4
|
+
class?: string;
|
|
5
5
|
id?: string | undefined;
|
|
6
6
|
path: string;
|
|
7
|
-
label?: string
|
|
7
|
+
label?: string;
|
|
8
8
|
choices: {
|
|
9
9
|
label?: string;
|
|
10
10
|
value: any;
|
|
@@ -12,9 +12,9 @@ declare const __propDef: {
|
|
|
12
12
|
}[];
|
|
13
13
|
defaultValue?: any;
|
|
14
14
|
conditional?: boolean | undefined;
|
|
15
|
-
maxwidth?: number
|
|
16
|
-
leftToRight?: boolean
|
|
17
|
-
related?:
|
|
15
|
+
maxwidth?: number;
|
|
16
|
+
leftToRight?: boolean;
|
|
17
|
+
related?: true | number;
|
|
18
18
|
extradescid?: string | undefined;
|
|
19
19
|
helptext?: string | undefined;
|
|
20
20
|
};
|
|
@@ -5,18 +5,18 @@ declare const __propDef: {
|
|
|
5
5
|
props: {
|
|
6
6
|
id?: string | undefined;
|
|
7
7
|
path: string;
|
|
8
|
-
label?: string
|
|
8
|
+
label?: string;
|
|
9
9
|
defaultValue?: boolean | undefined;
|
|
10
10
|
conditional?: boolean | undefined;
|
|
11
|
-
required?: boolean
|
|
12
|
-
images?: boolean
|
|
13
|
-
pages?: boolean
|
|
14
|
-
assets?: boolean
|
|
15
|
-
folders?: boolean
|
|
16
|
-
urlEntry?: boolean
|
|
11
|
+
required?: boolean;
|
|
12
|
+
images?: boolean;
|
|
13
|
+
pages?: boolean;
|
|
14
|
+
assets?: boolean;
|
|
15
|
+
folders?: boolean;
|
|
16
|
+
urlEntry?: boolean;
|
|
17
17
|
initialSource?: string | undefined;
|
|
18
18
|
initialPath?: string | undefined;
|
|
19
|
-
related?:
|
|
19
|
+
related?: true | number;
|
|
20
20
|
extradescid?: string | undefined;
|
|
21
21
|
helptext?: string | undefined;
|
|
22
22
|
selectedAsset?: AnyItem | RawURL | BrokenURL | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
class?: string
|
|
4
|
+
class?: string;
|
|
5
5
|
id?: string | undefined;
|
|
6
6
|
path: string;
|
|
7
|
-
label?: string
|
|
7
|
+
label?: string;
|
|
8
8
|
defaultValue?: any;
|
|
9
9
|
min?: Date | {
|
|
10
10
|
toJSDate: () => Date;
|
|
@@ -14,9 +14,9 @@ declare const __propDef: {
|
|
|
14
14
|
} | undefined;
|
|
15
15
|
step?: number | undefined;
|
|
16
16
|
conditional?: boolean | undefined;
|
|
17
|
-
required?: boolean
|
|
18
|
-
inputelement?: HTMLInputElement
|
|
19
|
-
related?:
|
|
17
|
+
required?: boolean;
|
|
18
|
+
inputelement?: HTMLInputElement;
|
|
19
|
+
related?: true | number;
|
|
20
20
|
extradescid?: string | undefined;
|
|
21
21
|
helptext?: string | undefined;
|
|
22
22
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
class?: string
|
|
4
|
+
class?: string;
|
|
5
5
|
id?: string | undefined;
|
|
6
6
|
path: string;
|
|
7
|
-
label?: string
|
|
7
|
+
label?: string;
|
|
8
8
|
defaultValue?: any;
|
|
9
9
|
min?: Date | {
|
|
10
10
|
toJSDate: () => Date;
|
|
@@ -14,11 +14,11 @@ declare const __propDef: {
|
|
|
14
14
|
} | undefined;
|
|
15
15
|
step?: number | undefined;
|
|
16
16
|
conditional?: boolean | undefined;
|
|
17
|
-
required?: boolean
|
|
18
|
-
related?:
|
|
17
|
+
required?: boolean;
|
|
18
|
+
related?: true | number;
|
|
19
19
|
extradescid?: string | undefined;
|
|
20
20
|
helptext?: string | undefined;
|
|
21
|
-
inputelement?: HTMLInputElement
|
|
21
|
+
inputelement?: HTMLInputElement;
|
|
22
22
|
};
|
|
23
23
|
events: {
|
|
24
24
|
[evt: string]: CustomEvent<any>;
|
|
@@ -4,15 +4,15 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
id?: string | undefined;
|
|
6
6
|
path: string;
|
|
7
|
-
label?: string
|
|
8
|
-
sourceLabel?: string
|
|
9
|
-
selectedLabel?: string
|
|
10
|
-
multiselect?: boolean
|
|
7
|
+
label?: string;
|
|
8
|
+
sourceLabel?: string;
|
|
9
|
+
selectedLabel?: string;
|
|
10
|
+
multiselect?: boolean;
|
|
11
11
|
choices: PopupMenuItem[];
|
|
12
|
-
defaultValue?: string[]
|
|
12
|
+
defaultValue?: string[];
|
|
13
13
|
conditional?: boolean | undefined;
|
|
14
|
-
required?: boolean
|
|
15
|
-
related?:
|
|
14
|
+
required?: boolean;
|
|
15
|
+
related?: true | number;
|
|
16
16
|
extradescid?: string | undefined;
|
|
17
17
|
helptext?: string | undefined;
|
|
18
18
|
};
|
|
@@ -3,10 +3,10 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
id?: string | undefined;
|
|
5
5
|
path: string;
|
|
6
|
-
value?: string |
|
|
7
|
-
notNull?: boolean
|
|
8
|
-
boolean?: boolean
|
|
9
|
-
number?: boolean
|
|
6
|
+
value?: string | boolean | number;
|
|
7
|
+
notNull?: boolean;
|
|
8
|
+
boolean?: boolean;
|
|
9
|
+
number?: boolean;
|
|
10
10
|
conditional?: boolean | undefined;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
@@ -5,16 +5,16 @@ declare const __propDef: {
|
|
|
5
5
|
path: string;
|
|
6
6
|
label: string;
|
|
7
7
|
initialState?: any | ((index: number) => any);
|
|
8
|
-
minLength?: number
|
|
8
|
+
minLength?: number;
|
|
9
9
|
maxLength?: number | undefined;
|
|
10
|
-
compact?: boolean
|
|
11
|
-
removable?: boolean
|
|
12
|
-
reorder?: boolean
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
removable?: boolean;
|
|
12
|
+
reorder?: boolean;
|
|
13
13
|
conditional?: boolean | undefined;
|
|
14
|
-
addMoreText?: string
|
|
15
|
-
maxedText?: string
|
|
14
|
+
addMoreText?: string;
|
|
15
|
+
maxedText?: string;
|
|
16
16
|
addMoreClass?: string | undefined;
|
|
17
|
-
related?:
|
|
17
|
+
related?: true | number;
|
|
18
18
|
helptext?: string | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* If you want to ask users if they're sure before removing an array element, fill this
|
|
@@ -9,15 +9,15 @@ declare const __propDef: {
|
|
|
9
9
|
tracked and automatically filtered from the popup if returned as one of the
|
|
10
10
|
`PopupMenuItem[]` by `getOptions`. */ getOptions: (search: string) => Promise<PopupMenuItem[]>;
|
|
11
11
|
id?: string | undefined;
|
|
12
|
-
label?: string
|
|
13
|
-
/** Text to display in the text input when it's empty. */ placeholder?: string
|
|
14
|
-
disabled?: boolean
|
|
15
|
-
defaultValue?: string[]
|
|
12
|
+
label?: string;
|
|
13
|
+
/** Text to display in the text input when it's empty. */ placeholder?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
defaultValue?: string[];
|
|
16
16
|
conditional?: boolean | undefined;
|
|
17
|
-
required?: boolean
|
|
18
|
-
/** Max number of selections to be allowed before disabling the input - 0 for unlimited. */ maxSelections?: number
|
|
19
|
-
lookupByValue?: (
|
|
20
|
-
related?:
|
|
17
|
+
required?: boolean;
|
|
18
|
+
/** Max number of selections to be allowed before disabling the input - 0 for unlimited. */ maxSelections?: number;
|
|
19
|
+
lookupByValue?: (val: string) => Promise<PopupMenuItem | undefined>;
|
|
20
|
+
related?: true | number;
|
|
21
21
|
extradescid?: string | undefined;
|
|
22
22
|
helptext?: string | undefined;
|
|
23
23
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
class?: string
|
|
4
|
+
class?: string;
|
|
5
5
|
id?: string | undefined;
|
|
6
6
|
path: string;
|
|
7
|
-
label?: string
|
|
7
|
+
label?: string;
|
|
8
8
|
defaultValue?: number | undefined;
|
|
9
|
-
nullable?: boolean
|
|
9
|
+
nullable?: boolean;
|
|
10
10
|
min?: number | undefined;
|
|
11
11
|
max?: number | undefined;
|
|
12
12
|
step?: number | undefined;
|
|
13
13
|
conditional?: boolean | undefined;
|
|
14
|
-
required?: boolean
|
|
15
|
-
inputelement?: HTMLInputElement
|
|
16
|
-
related?:
|
|
14
|
+
required?: boolean;
|
|
15
|
+
inputelement?: HTMLInputElement;
|
|
16
|
+
related?: true | number;
|
|
17
17
|
extradescid?: string | undefined;
|
|
18
18
|
helptext?: string | undefined;
|
|
19
19
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
class?: string
|
|
4
|
+
class?: string;
|
|
5
5
|
id?: string | undefined;
|
|
6
6
|
path: string;
|
|
7
|
-
label?: string
|
|
8
|
-
notNull?: boolean
|
|
7
|
+
label?: string;
|
|
8
|
+
notNull?: boolean;
|
|
9
9
|
choices: {
|
|
10
10
|
label?: string;
|
|
11
11
|
value: any;
|
|
@@ -13,15 +13,15 @@ declare const __propDef: {
|
|
|
13
13
|
}[];
|
|
14
14
|
defaultValue?: any;
|
|
15
15
|
conditional?: boolean | undefined;
|
|
16
|
-
required?: boolean
|
|
17
|
-
horizontal?: boolean
|
|
18
|
-
related?:
|
|
16
|
+
required?: boolean;
|
|
17
|
+
horizontal?: boolean;
|
|
18
|
+
related?: true | number;
|
|
19
19
|
extradescid?: string | undefined;
|
|
20
20
|
helptext?: string | undefined;
|
|
21
|
-
number?: boolean
|
|
22
|
-
date?: boolean
|
|
23
|
-
datetime?: boolean
|
|
24
|
-
boolean?: boolean
|
|
21
|
+
number?: boolean;
|
|
22
|
+
date?: boolean;
|
|
23
|
+
datetime?: boolean;
|
|
24
|
+
boolean?: boolean;
|
|
25
25
|
serialize?: ((value: any) => string) | undefined;
|
|
26
26
|
deserialize?: ((value: string) => any) | undefined;
|
|
27
27
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
class?: string
|
|
4
|
+
class?: string;
|
|
5
5
|
id?: string | undefined;
|
|
6
6
|
path: string;
|
|
7
|
-
label?: string
|
|
8
|
-
placeholder?: string
|
|
9
|
-
notNull?: boolean
|
|
10
|
-
disabled?: boolean
|
|
7
|
+
label?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
notNull?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
11
|
choices: {
|
|
12
12
|
label?: string;
|
|
13
13
|
value: any;
|
|
@@ -15,15 +15,15 @@ declare const __propDef: {
|
|
|
15
15
|
}[];
|
|
16
16
|
defaultValue?: any;
|
|
17
17
|
conditional?: boolean | undefined;
|
|
18
|
-
required?: boolean
|
|
19
|
-
inputelement?: HTMLSelectElement
|
|
20
|
-
related?:
|
|
18
|
+
required?: boolean;
|
|
19
|
+
inputelement?: HTMLSelectElement;
|
|
20
|
+
related?: true | number;
|
|
21
21
|
extradescid?: string | undefined;
|
|
22
22
|
helptext?: string | undefined;
|
|
23
|
-
number?: boolean
|
|
24
|
-
date?: boolean
|
|
25
|
-
datetime?: boolean
|
|
26
|
-
boolean?: boolean
|
|
23
|
+
number?: boolean;
|
|
24
|
+
date?: boolean;
|
|
25
|
+
datetime?: boolean;
|
|
26
|
+
boolean?: boolean;
|
|
27
27
|
serialize?: ((value: any) => string) | undefined;
|
|
28
28
|
deserialize?: ((value: string) => any) | undefined;
|
|
29
29
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
/** If the input that's being built has an id pass it here so the label can point at it. */ id?: string
|
|
4
|
+
/** If the input that's being built has an id pass it here so the label can point at it. */ id?: string;
|
|
5
5
|
/** If `descid` is defined then this assumes you've made an outside label referenced to by descid `<div id={descid}`.
|
|
6
6
|
Useful for things like checkboxes and radio buttons that have their own individual labels. */ descid?: string | undefined;
|
|
7
7
|
path: string;
|
|
8
8
|
defaultValue?: any;
|
|
9
9
|
/** A label for the Container `<div>`. */ label: string;
|
|
10
|
-
notNull?: boolean
|
|
11
|
-
number?: boolean
|
|
12
|
-
date?: boolean
|
|
13
|
-
datetime?: boolean
|
|
14
|
-
boolean?: boolean
|
|
10
|
+
notNull?: boolean;
|
|
11
|
+
number?: boolean;
|
|
12
|
+
date?: boolean;
|
|
13
|
+
datetime?: boolean;
|
|
14
|
+
boolean?: boolean;
|
|
15
15
|
serialize?: ((value: any) => string) | undefined;
|
|
16
16
|
deserialize?: ((value: string) => any) | undefined;
|
|
17
17
|
/** If you need to do some processing just before submit or validate define that processing here. */ finalize?: ((value: any, isSubmit: boolean) => any) | undefined;
|
|
18
18
|
/** If you specified a finalize, you probably need an initialize to invert it. */ initialize?: ((value: any) => any) | undefined;
|
|
19
19
|
conditional?: boolean | undefined;
|
|
20
|
-
required?: boolean
|
|
21
|
-
related?:
|
|
20
|
+
required?: boolean;
|
|
21
|
+
related?: true | number;
|
|
22
22
|
helptext?: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
events: {
|
|
@@ -2,21 +2,21 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import type { HTMLActionEntry } from '@txstate-mws/svelte-components';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
class?: string
|
|
5
|
+
class?: string;
|
|
6
6
|
id?: string | undefined;
|
|
7
7
|
path: string;
|
|
8
|
-
label?: string
|
|
9
|
-
notNull?: boolean
|
|
8
|
+
label?: string;
|
|
9
|
+
notNull?: boolean;
|
|
10
10
|
defaultValue?: any;
|
|
11
|
-
type?: string
|
|
12
|
-
allowlastpass?: boolean
|
|
11
|
+
type?: string;
|
|
12
|
+
allowlastpass?: boolean;
|
|
13
13
|
maxlength?: number | undefined;
|
|
14
14
|
conditional?: boolean | undefined;
|
|
15
|
-
required?: boolean
|
|
16
|
-
use?: HTMLActionEntry[]
|
|
17
|
-
inputelement?: HTMLInputElement
|
|
18
|
-
related?:
|
|
19
|
-
autocomplete?: string
|
|
15
|
+
required?: boolean;
|
|
16
|
+
use?: HTMLActionEntry[];
|
|
17
|
+
inputelement?: HTMLInputElement;
|
|
18
|
+
related?: true | number;
|
|
19
|
+
autocomplete?: string;
|
|
20
20
|
extradescid?: string | undefined;
|
|
21
21
|
helptext?: string | undefined;
|
|
22
22
|
};
|
|
@@ -2,19 +2,19 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import { type HTMLActionEntry } from '@txstate-mws/svelte-components';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
class?: string
|
|
5
|
+
class?: string;
|
|
6
6
|
id?: string | undefined;
|
|
7
7
|
path: string;
|
|
8
|
-
label?: string
|
|
9
|
-
notNull?: boolean
|
|
8
|
+
label?: string;
|
|
9
|
+
notNull?: boolean;
|
|
10
10
|
defaultValue?: any;
|
|
11
11
|
maxlength?: number | undefined;
|
|
12
12
|
rows?: number | undefined;
|
|
13
13
|
conditional?: boolean | undefined;
|
|
14
|
-
required?: boolean
|
|
15
|
-
use?: HTMLActionEntry[]
|
|
16
|
-
inputelement?: HTMLTextAreaElement
|
|
17
|
-
related?:
|
|
14
|
+
required?: boolean;
|
|
15
|
+
use?: HTMLActionEntry[];
|
|
16
|
+
inputelement?: HTMLTextAreaElement;
|
|
17
|
+
related?: true | number;
|
|
18
18
|
extradescid?: string | undefined;
|
|
19
19
|
helptext?: string | undefined;
|
|
20
20
|
};
|
|
@@ -3,9 +3,9 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
mime: string;
|
|
5
5
|
hiddenLabel?: string | undefined;
|
|
6
|
-
inline?: boolean
|
|
7
|
-
width?: string | number
|
|
8
|
-
height?: string | number
|
|
6
|
+
inline?: boolean;
|
|
7
|
+
width?: string | number;
|
|
8
|
+
height?: string | number;
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
package/dist/Form.svelte.d.ts
CHANGED
|
@@ -1,14 +1,48 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { type FormStore, type Feedback, type SubmitResponse } from '@txstate-mws/svelte-forms';
|
|
3
|
+
import { type Client } from './';
|
|
4
|
+
declare class __sveltets_Render<T extends Record<string, any>, F extends any> {
|
|
5
|
+
props(): {
|
|
6
|
+
class?: string;
|
|
7
|
+
submit?: ((state: T) => Promise<SubmitResponse<T>>) | undefined;
|
|
8
|
+
validate?: ((state: T) => Promise<Feedback[]>) | undefined;
|
|
9
|
+
store?: FormStore<T> | undefined;
|
|
10
|
+
chooserClient?: Client<F> | undefined;
|
|
11
|
+
autocomplete?: string | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
preload?: T | undefined;
|
|
14
|
+
};
|
|
4
15
|
events(): {
|
|
16
|
+
saved: any;
|
|
17
|
+
} & {
|
|
5
18
|
[evt: string]: CustomEvent<any>;
|
|
6
19
|
};
|
|
7
|
-
slots():
|
|
20
|
+
slots(): {
|
|
21
|
+
default: {
|
|
22
|
+
messages: Feedback[];
|
|
23
|
+
allMessages: Feedback[];
|
|
24
|
+
saved: boolean;
|
|
25
|
+
validating: boolean;
|
|
26
|
+
submitting: boolean;
|
|
27
|
+
valid: boolean;
|
|
28
|
+
invalid: boolean;
|
|
29
|
+
showingInlineErrors: boolean;
|
|
30
|
+
data: Partial<T>;
|
|
31
|
+
};
|
|
32
|
+
submit: {
|
|
33
|
+
saved: boolean;
|
|
34
|
+
validating: boolean;
|
|
35
|
+
submitting: boolean;
|
|
36
|
+
allMessages: Feedback[];
|
|
37
|
+
valid: boolean;
|
|
38
|
+
invalid: boolean;
|
|
39
|
+
showingInlineErrors: boolean;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
8
42
|
}
|
|
9
|
-
export type FormProps<T extends
|
|
10
|
-
export type FormEvents<T extends
|
|
11
|
-
export type FormSlots<T extends
|
|
12
|
-
export default class Form<T extends
|
|
43
|
+
export type FormProps<T extends Record<string, any>, F extends any> = ReturnType<__sveltets_Render<T, F>['props']>;
|
|
44
|
+
export type FormEvents<T extends Record<string, any>, F extends any> = ReturnType<__sveltets_Render<T, F>['events']>;
|
|
45
|
+
export type FormSlots<T extends Record<string, any>, F extends any> = ReturnType<__sveltets_Render<T, F>['slots']>;
|
|
46
|
+
export default class Form<T extends Record<string, any>, F extends any> extends SvelteComponentTyped<FormProps<T, F>, FormEvents<T, F>, FormSlots<T, F>> {
|
|
13
47
|
}
|
|
14
48
|
export {};
|
|
@@ -2,17 +2,17 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import type { IconifyIcon } from '@iconify/svelte';
|
|
3
3
|
import type { Feedback, FormStore, SubmitResponse } from '@txstate-mws/svelte-forms';
|
|
4
4
|
import { type Client } from './';
|
|
5
|
-
declare class __sveltets_Render<T extends any
|
|
5
|
+
declare class __sveltets_Render<T extends Record<string, any>> {
|
|
6
6
|
props(): {
|
|
7
7
|
submit: (state: T) => Promise<SubmitResponse<T>>;
|
|
8
8
|
validate?: ((state: T) => Promise<Feedback[]>) | undefined;
|
|
9
9
|
store?: FormStore<T> | undefined;
|
|
10
|
-
chooserClient?: Client
|
|
10
|
+
chooserClient?: Client | undefined;
|
|
11
11
|
autocomplete?: string | undefined;
|
|
12
12
|
name?: string | undefined;
|
|
13
|
-
title?: string
|
|
13
|
+
title?: string;
|
|
14
14
|
icon?: IconifyIcon | undefined;
|
|
15
|
-
size?: "
|
|
15
|
+
size?: "tiny" | "small" | "normal" | "large";
|
|
16
16
|
preload?: T | undefined;
|
|
17
17
|
};
|
|
18
18
|
events(): {
|
|
@@ -33,9 +33,9 @@ declare class __sveltets_Render<T extends any> {
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
export type FormDialogProps<T extends any
|
|
37
|
-
export type FormDialogEvents<T extends any
|
|
38
|
-
export type FormDialogSlots<T extends any
|
|
39
|
-
export default class FormDialog<T extends any
|
|
36
|
+
export type FormDialogProps<T extends Record<string, any>> = ReturnType<__sveltets_Render<T>['props']>;
|
|
37
|
+
export type FormDialogEvents<T extends Record<string, any>> = ReturnType<__sveltets_Render<T>['events']>;
|
|
38
|
+
export type FormDialogSlots<T extends Record<string, any>> = ReturnType<__sveltets_Render<T>['slots']>;
|
|
39
|
+
export default class FormDialog<T extends Record<string, any>> extends SvelteComponentTyped<FormDialogProps<T>, FormDialogEvents<T>, FormDialogSlots<T>> {
|
|
40
40
|
}
|
|
41
41
|
export {};
|
package/dist/Icon.svelte.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
icon: IconifyIcon | undefined;
|
|
6
6
|
/** Label used in a `<ScreenReaderOnly>`. */ hiddenLabel?: string | undefined;
|
|
7
|
-
inline?: boolean
|
|
7
|
+
inline?: boolean;
|
|
8
8
|
width?: string | number | undefined;
|
|
9
9
|
height?: string | number | undefined;
|
|
10
10
|
tooltip?: string | undefined;
|
package/dist/Input.svelte.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import { type HTMLActionEntry } from '@txstate-mws/svelte-components';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
class?: string
|
|
5
|
+
class?: string;
|
|
6
6
|
name: string;
|
|
7
7
|
value: string;
|
|
8
|
-
type?: string
|
|
9
|
-
allowlastpass?: boolean
|
|
8
|
+
type?: string;
|
|
9
|
+
allowlastpass?: boolean;
|
|
10
10
|
maxlength?: number | undefined;
|
|
11
11
|
min?: string | Date | {
|
|
12
12
|
toJSDate: () => Date;
|
|
@@ -16,18 +16,18 @@ declare const __propDef: {
|
|
|
16
16
|
} | number | undefined;
|
|
17
17
|
step?: number | undefined;
|
|
18
18
|
id?: string | undefined;
|
|
19
|
-
disabled?: boolean
|
|
20
|
-
autocomplete?: string
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
autocomplete?: string;
|
|
21
21
|
extradescid?: string | undefined;
|
|
22
22
|
messagesid?: string | undefined;
|
|
23
23
|
helptextid?: string | undefined;
|
|
24
|
-
valid?: boolean
|
|
25
|
-
invalid?: boolean
|
|
24
|
+
valid?: boolean;
|
|
25
|
+
invalid?: boolean;
|
|
26
26
|
onChange: any;
|
|
27
27
|
onBlur: any;
|
|
28
28
|
onSelect?: any;
|
|
29
|
-
use?: HTMLActionEntry[]
|
|
30
|
-
inputelement?: HTMLInputElement
|
|
29
|
+
use?: HTMLActionEntry[];
|
|
30
|
+
inputelement?: HTMLInputElement;
|
|
31
31
|
};
|
|
32
32
|
events: {
|
|
33
33
|
[evt: string]: CustomEvent<any>;
|
package/dist/Listbox.svelte.d.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import { type PopupMenuItem } from '@txstate-mws/svelte-components';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
items?: PopupMenuItem[]
|
|
5
|
+
items?: PopupMenuItem[];
|
|
6
6
|
label: string;
|
|
7
|
-
multiselect?: boolean
|
|
7
|
+
multiselect?: boolean;
|
|
8
8
|
selected?: {
|
|
9
9
|
value: string;
|
|
10
|
-
label?: string
|
|
11
|
-
}[]
|
|
10
|
+
label?: string;
|
|
11
|
+
}[];
|
|
12
12
|
descid?: string | undefined;
|
|
13
|
-
valid?: boolean
|
|
14
|
-
invalid?: boolean
|
|
13
|
+
valid?: boolean;
|
|
14
|
+
invalid?: boolean;
|
|
15
15
|
};
|
|
16
16
|
events: {
|
|
17
17
|
change: CustomEvent<any>;
|
package/dist/Radio.svelte.d.ts
CHANGED
|
@@ -4,15 +4,15 @@ declare const __propDef: {
|
|
|
4
4
|
id?: string | undefined;
|
|
5
5
|
name: string;
|
|
6
6
|
value: string;
|
|
7
|
-
selected?: boolean
|
|
7
|
+
selected?: boolean;
|
|
8
8
|
onChange?: any;
|
|
9
9
|
onBlur?: any;
|
|
10
10
|
messagesid?: string | undefined;
|
|
11
11
|
helptextid?: string | undefined;
|
|
12
12
|
extradescid?: string | undefined;
|
|
13
|
-
disabled?: boolean
|
|
14
|
-
valid?: boolean
|
|
15
|
-
invalid?: boolean
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
valid?: boolean;
|
|
15
|
+
invalid?: boolean;
|
|
16
16
|
};
|
|
17
17
|
events: {
|
|
18
18
|
[evt: string]: CustomEvent<any>;
|
|
@@ -2,25 +2,25 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import type { Feedback } from '@txstate-mws/svelte-forms';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
class?: string
|
|
5
|
+
class?: string;
|
|
6
6
|
id?: string | undefined;
|
|
7
|
-
path?: string
|
|
8
|
-
name?: string
|
|
7
|
+
path?: string;
|
|
8
|
+
name?: string;
|
|
9
9
|
choices: {
|
|
10
10
|
label?: string;
|
|
11
11
|
value: string;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
}[];
|
|
14
|
-
horizontal?: boolean
|
|
14
|
+
horizontal?: boolean;
|
|
15
15
|
label: string;
|
|
16
|
-
required?: boolean
|
|
17
|
-
related?:
|
|
16
|
+
required?: boolean;
|
|
17
|
+
related?: true | number;
|
|
18
18
|
extradescid?: string | undefined;
|
|
19
19
|
helptext?: string | undefined;
|
|
20
|
-
messages?: Feedback[]
|
|
21
|
-
iptValue?: string
|
|
22
|
-
valid?: boolean
|
|
23
|
-
invalid?: boolean
|
|
20
|
+
messages?: Feedback[];
|
|
21
|
+
iptValue?: string;
|
|
22
|
+
valid?: boolean;
|
|
23
|
+
invalid?: boolean;
|
|
24
24
|
onBlur?: (() => void | Promise<void>) | undefined;
|
|
25
25
|
};
|
|
26
26
|
events: {
|
package/dist/Tabs.svelte.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
tabs: TabDef[];
|
|
6
6
|
active?: string | undefined;
|
|
7
|
-
store?: TabStore
|
|
8
|
-
disableDialogControl?: boolean
|
|
9
|
-
accordionOnMobile?: boolean
|
|
7
|
+
store?: TabStore;
|
|
8
|
+
disableDialogControl?: boolean;
|
|
9
|
+
accordionOnMobile?: boolean;
|
|
10
10
|
/**
|
|
11
11
|
* Takes the width of the tabs area, in pixels, and returns the number of tabs that should be
|
|
12
12
|
* displayed at that width.
|
package/dist/Tooltip.svelte.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
tip?: string | undefined;
|
|
5
|
-
top?: boolean
|
|
6
|
-
right?: boolean
|
|
7
|
-
bottom?: boolean
|
|
8
|
-
left?: boolean
|
|
9
|
-
active?: boolean
|
|
5
|
+
top?: boolean;
|
|
6
|
+
right?: boolean;
|
|
7
|
+
bottom?: boolean;
|
|
8
|
+
left?: boolean;
|
|
9
|
+
active?: boolean;
|
|
10
10
|
};
|
|
11
11
|
events: {
|
|
12
12
|
[evt: string]: CustomEvent<any>;
|
|
@@ -4,11 +4,11 @@ import { ChooserStore } from './ChooserStore';
|
|
|
4
4
|
declare class __sveltets_Render<F> {
|
|
5
5
|
props(): {
|
|
6
6
|
label?: string | undefined;
|
|
7
|
-
images?: boolean
|
|
8
|
-
pages?: boolean
|
|
9
|
-
assets?: boolean
|
|
10
|
-
folders?: boolean
|
|
11
|
-
required?: boolean
|
|
7
|
+
images?: boolean;
|
|
8
|
+
pages?: boolean;
|
|
9
|
+
assets?: boolean;
|
|
10
|
+
folders?: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
12
|
initialSource?: string | undefined;
|
|
13
13
|
initialPath?: string | undefined;
|
|
14
14
|
activeSources?: string[] | undefined;
|
|
@@ -4,9 +4,9 @@ import type { BrokenURL, RawURL } from './ChooserStore';
|
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: {
|
|
6
6
|
item: AnyItem | RawURL | BrokenURL;
|
|
7
|
-
larger?: boolean
|
|
8
|
-
expandable?: boolean
|
|
9
|
-
expanded?: boolean
|
|
7
|
+
larger?: boolean;
|
|
8
|
+
expandable?: boolean;
|
|
9
|
+
expanded?: boolean;
|
|
10
10
|
};
|
|
11
11
|
events: {
|
|
12
12
|
thumbnailsizechange: CustomEvent<any>;
|
|
@@ -4,11 +4,11 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
title: string;
|
|
6
6
|
folder: Folder;
|
|
7
|
-
maxFiles?: number
|
|
8
|
-
escapable?: boolean
|
|
9
|
-
mimeWhitelist?: string[]
|
|
10
|
-
mimeBlacklist?: string[]
|
|
11
|
-
uploader: NonNullable<Client[
|
|
7
|
+
maxFiles?: number;
|
|
8
|
+
escapable?: boolean;
|
|
9
|
+
mimeWhitelist?: string[];
|
|
10
|
+
mimeBlacklist?: string[];
|
|
11
|
+
uploader: NonNullable<Client["upload"]>;
|
|
12
12
|
};
|
|
13
13
|
events: {
|
|
14
14
|
saved: CustomEvent<any>;
|
|
@@ -2,11 +2,11 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import { type HTMLActionEntry } from '@txstate-mws/svelte-components';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
class?: string
|
|
5
|
+
class?: string;
|
|
6
6
|
id?: string | undefined;
|
|
7
|
-
rows?: number
|
|
8
|
-
language:
|
|
9
|
-
use?: HTMLActionEntry[]
|
|
7
|
+
rows?: number;
|
|
8
|
+
language: "js" | "css" | "html";
|
|
9
|
+
use?: HTMLActionEntry[];
|
|
10
10
|
inputelement?: HTMLElement | undefined;
|
|
11
11
|
extradescid?: string | undefined;
|
|
12
12
|
helptextid?: string | undefined;
|
|
@@ -2,21 +2,21 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import type { HTMLActionEntry } from '@txstate-mws/svelte-components';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
class?: string
|
|
5
|
+
class?: string;
|
|
6
6
|
id?: string | undefined;
|
|
7
7
|
path: string;
|
|
8
|
-
label?: string
|
|
9
|
-
notNull?: boolean
|
|
8
|
+
label?: string;
|
|
9
|
+
notNull?: boolean;
|
|
10
10
|
defaultValue?: any;
|
|
11
|
-
rows?: number
|
|
11
|
+
rows?: number;
|
|
12
12
|
conditional?: boolean | undefined;
|
|
13
|
-
required?: boolean
|
|
14
|
-
use?: HTMLActionEntry[]
|
|
15
|
-
inputelement?: HTMLElement
|
|
16
|
-
related?:
|
|
13
|
+
required?: boolean;
|
|
14
|
+
use?: HTMLActionEntry[];
|
|
15
|
+
inputelement?: HTMLElement;
|
|
16
|
+
related?: true | number;
|
|
17
17
|
extradescid?: string | undefined;
|
|
18
18
|
helptext?: string | undefined;
|
|
19
|
-
language:
|
|
19
|
+
language: "js" | "css" | "html";
|
|
20
20
|
};
|
|
21
21
|
events: {
|
|
22
22
|
paste: ClipboardEvent;
|
|
@@ -3,13 +3,13 @@ import type { ColorPickerOption } from './colorpicker';
|
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
id?: string | undefined;
|
|
6
|
-
class?: string
|
|
6
|
+
class?: string;
|
|
7
7
|
path: string;
|
|
8
8
|
options: ColorPickerOption[];
|
|
9
|
-
addAllOption?: boolean
|
|
10
|
-
label?: string
|
|
11
|
-
required?: boolean
|
|
12
|
-
notNull?: boolean
|
|
9
|
+
addAllOption?: boolean;
|
|
10
|
+
label?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
notNull?: boolean;
|
|
13
13
|
defaultValue?: any;
|
|
14
14
|
conditional?: boolean | undefined;
|
|
15
15
|
helptext?: string | undefined;
|
|
@@ -4,10 +4,10 @@ declare const __propDef: {
|
|
|
4
4
|
id?: string | undefined;
|
|
5
5
|
path: string;
|
|
6
6
|
imageSrc: string | undefined;
|
|
7
|
-
selectionAspectRatio?: number
|
|
8
|
-
minSelection?: number
|
|
9
|
-
label?: string
|
|
10
|
-
required?: boolean
|
|
7
|
+
selectionAspectRatio?: number;
|
|
8
|
+
minSelection?: number;
|
|
9
|
+
label?: string;
|
|
10
|
+
required?: boolean;
|
|
11
11
|
conditional?: boolean | undefined;
|
|
12
12
|
helptext?: string | undefined;
|
|
13
13
|
};
|
|
@@ -48,10 +48,11 @@ function onCancel(val) {
|
|
|
48
48
|
}
|
|
49
49
|
function onSearch() {
|
|
50
50
|
visibleIcons = FontAwesomeIcons.filter(i => {
|
|
51
|
-
|
|
51
|
+
const searchValLC = searchVal.toLowerCase();
|
|
52
|
+
if (i.class.toLowerCase().includes(searchValLC))
|
|
52
53
|
return true;
|
|
53
54
|
for (const term of i.search.terms) {
|
|
54
|
-
if (term.includes(
|
|
55
|
+
if (term.toLowerCase().includes(searchValLC))
|
|
55
56
|
return true;
|
|
56
57
|
}
|
|
57
58
|
return false;
|
|
@@ -128,7 +129,7 @@ function onKeyDown(e) {
|
|
|
128
129
|
</div>
|
|
129
130
|
<fieldset>
|
|
130
131
|
<ScreenReaderOnly><legend class="sr-only">Icons</legend></ScreenReaderOnly>
|
|
131
|
-
<div class="icon-picker-items" role="radiogroup">
|
|
132
|
+
<div class="icon-picker-items" role="radiogroup" class:empty={visibleIcons.length === 0}>
|
|
132
133
|
{#each visibleIcons as icon, idx (icon.class)}
|
|
133
134
|
|
|
134
135
|
<div bind:this={iconElements[idx]} id={icon.class} class="icon-picker-item" role="radio" aria-checked={icon.class === selected.icon} tabindex={icon.class === selected.icon ? 0 : -1} data-index={idx} on:click={() => onSelectIcon(icon.class)} on:keydown={onKeyDown}>
|
|
@@ -244,6 +245,9 @@ function onKeyDown(e) {
|
|
|
244
245
|
justify-items: center;
|
|
245
246
|
align-items: center;
|
|
246
247
|
}
|
|
248
|
+
.icon-picker-items.empty {
|
|
249
|
+
display: block;
|
|
250
|
+
}
|
|
247
251
|
|
|
248
252
|
@media (max-width: 800px) {
|
|
249
253
|
.icon-picker-items {
|
|
@@ -3,12 +3,12 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
id?: string | undefined;
|
|
5
5
|
path: string;
|
|
6
|
-
label?: string
|
|
7
|
-
required?: boolean
|
|
6
|
+
label?: string;
|
|
7
|
+
required?: boolean;
|
|
8
8
|
defaultValue?: {
|
|
9
9
|
icon: string;
|
|
10
10
|
prefix: string;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
conditional?: boolean | undefined;
|
|
13
13
|
helptext?: string | undefined;
|
|
14
14
|
};
|
|
@@ -3,7 +3,6 @@ import FieldStandard from '../FieldStandard.svelte';
|
|
|
3
3
|
import Button from '../Button.svelte';
|
|
4
4
|
import arrowsIn from '@iconify-icons/ph/arrows-in';
|
|
5
5
|
import { Dialog } from '..';
|
|
6
|
-
import { onMount } from 'svelte';
|
|
7
6
|
import { modifierKey, ScreenReaderOnly } from '@txstate-mws/svelte-components';
|
|
8
7
|
export let id = undefined;
|
|
9
8
|
export let path;
|
|
@@ -34,10 +33,6 @@ function hideModal() {
|
|
|
34
33
|
modalOpen = false;
|
|
35
34
|
}
|
|
36
35
|
let x, y;
|
|
37
|
-
onMount(() => {
|
|
38
|
-
x = initialVal?.x / 25;
|
|
39
|
-
y = initialVal?.y / 25;
|
|
40
|
-
});
|
|
41
36
|
function onSave(setVal) {
|
|
42
37
|
setVal({ x: x * 25, y: y * 25 });
|
|
43
38
|
hideModal();
|
|
@@ -105,44 +100,53 @@ const positionText = {
|
|
|
105
100
|
4: 'Bottom Right Corner'
|
|
106
101
|
}
|
|
107
102
|
};
|
|
103
|
+
let dialogWasOpened = false;
|
|
104
|
+
function onDialogOpen() {
|
|
105
|
+
if (!dialogWasOpened) {
|
|
106
|
+
x = (initialVal.x ?? 50) / 25;
|
|
107
|
+
y = (initialVal.y ?? 50) / 25;
|
|
108
|
+
dialogWasOpened = true;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
108
111
|
</script>
|
|
109
112
|
|
|
110
113
|
<FieldStandard bind:id {label} {path} {required} {defaultValue} conditional={conditional && isNotBlank(imageSrc)} {helptext} {descid} let:value let:setVal let:helptextid>
|
|
111
114
|
{@const _ = init(value)}
|
|
112
115
|
{#if isNotBlank(imageSrc)}
|
|
113
116
|
<Button icon={arrowsIn} on:click={showModal}>Adjust Image Position</Button>
|
|
114
|
-
|
|
115
|
-
|
|
117
|
+
{#if modalOpen}
|
|
118
|
+
<Dialog size="large" title={label} on:escape={hideModal} continueText="Save" cancelText="Cancel" on:continue={() => onSave(setVal)} {labelid}>
|
|
119
|
+
{@const _dialogopen = onDialogOpen()}
|
|
116
120
|
{#if info}
|
|
117
121
|
<section class="info">
|
|
118
122
|
{info}
|
|
119
123
|
</section>
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
124
|
+
{/if}
|
|
125
|
+
<section class="position">
|
|
126
|
+
<p>
|
|
127
|
+
Using the grid overlays, select a focal point in your image to determine how Gato will align, position, and scale your image
|
|
128
|
+
in the section. This will help ensure the focal point of your image is always in frame. By default, Gato will
|
|
129
|
+
use the center of the image.
|
|
130
|
+
</p>
|
|
131
|
+
<div class="image-container">
|
|
132
|
+
<img class="crop-image" src={imageSrc} alt="" />
|
|
133
|
+
<div class="overlay" role="radiogroup" aria-labelledby={labelid}>
|
|
134
|
+
{#each Array.from(Array(5).keys()) as col}
|
|
135
|
+
{#each Array.from(Array(5).keys()) as row}
|
|
136
|
+
<div
|
|
137
|
+
bind:this={boxes[col + row * 5]}
|
|
138
|
+
class="box"
|
|
139
|
+
class:side={row === 4}
|
|
140
|
+
class:bottom={col === 4}
|
|
141
|
+
role="radio"
|
|
142
|
+
aria-checked={row === x && col === y}
|
|
143
|
+
tabindex={row === x && col === y ? 0 : -1}
|
|
144
|
+
on:click={() => onSelectBox(row, col)} on:keydown={onKeyDown}><ScreenReaderOnly>{positionText[row][col]}</ScreenReaderOnly></div>
|
|
141
145
|
{/each}
|
|
142
|
-
|
|
146
|
+
{/each}
|
|
143
147
|
</div>
|
|
144
|
-
</
|
|
145
|
-
|
|
148
|
+
</div>
|
|
149
|
+
</section>
|
|
146
150
|
</Dialog>
|
|
147
151
|
{/if}
|
|
148
152
|
{/if}
|
|
@@ -5,12 +5,12 @@ declare const __propDef: {
|
|
|
5
5
|
id?: string | undefined;
|
|
6
6
|
path: string;
|
|
7
7
|
imageSrc: string | undefined;
|
|
8
|
-
label?: string
|
|
9
|
-
required?: boolean
|
|
8
|
+
label?: string;
|
|
9
|
+
required?: boolean;
|
|
10
10
|
conditional?: boolean | undefined;
|
|
11
11
|
helptext?: string | undefined;
|
|
12
12
|
info?: string | undefined;
|
|
13
|
-
defaultValue?: ImagePositionOutput
|
|
13
|
+
defaultValue?: ImagePositionOutput;
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
@@ -6,10 +6,10 @@ declare class __sveltets_Render<T extends TreeItemFromDB> {
|
|
|
6
6
|
headers: TreeHeader<T>[];
|
|
7
7
|
searchable?: SearchableType<T>;
|
|
8
8
|
filterable?: SearchableType<T>;
|
|
9
|
-
filter?: string
|
|
9
|
+
filter?: string;
|
|
10
10
|
nodeClass?: ((itm: T) => string) | undefined;
|
|
11
11
|
singleSelect?: boolean | undefined;
|
|
12
|
-
enableResize?: boolean
|
|
12
|
+
enableResize?: boolean;
|
|
13
13
|
/**
|
|
14
14
|
* Takes the width of the tree, in pixels, and returns an array of TreeHeader IDs that should be
|
|
15
15
|
* displayed at that screen width. Any headers whose ID is not returned will be added to a dropdown, which allows
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dosgato/dialog",
|
|
3
3
|
"description": "A component library for building forms that edit a JSON document.",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.22",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "svelte-package",
|
|
7
7
|
"dev": "vite dev --force",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@codemirror/lang-javascript": "^6.1.7",
|
|
24
24
|
"@codemirror/lang-css": "^6.2.1",
|
|
25
25
|
"@codemirror/lang-html": "^6.4.3",
|
|
26
|
-
"@iconify/svelte": "^
|
|
26
|
+
"@iconify/svelte": "^4.0.0",
|
|
27
27
|
"@iconify-icons/mdi": "^1.2.22",
|
|
28
28
|
"@iconify-icons/ph": "^1.2.2",
|
|
29
29
|
"@txstate-mws/svelte-components": "^1.6.2",
|
|
@@ -32,19 +32,18 @@
|
|
|
32
32
|
"txstate-utils": "^1.8.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@sveltejs/adapter-auto": "^
|
|
36
|
-
"@sveltejs/kit": "^
|
|
35
|
+
"@sveltejs/adapter-auto": "^3.0.0",
|
|
36
|
+
"@sveltejs/kit": "^2.0.1",
|
|
37
37
|
"@sveltejs/package": "^2.0.1",
|
|
38
|
-
"eslint-config-standard-with-typescript": "^
|
|
38
|
+
"eslint-config-standard-with-typescript": "^43.0.0",
|
|
39
39
|
"eslint-plugin-svelte": "^2.0.0",
|
|
40
40
|
"svelte-check": "^3.0.1",
|
|
41
|
-
"svelte
|
|
42
|
-
"svelte2tsx": "^0.6.0",
|
|
41
|
+
"svelte": "^4.0.0",
|
|
43
42
|
"tslib": "^2.3.1",
|
|
44
43
|
"typescript": "^5.0.2"
|
|
45
44
|
},
|
|
46
45
|
"peerDependencies": {
|
|
47
|
-
"svelte": "^3.53.1 || ^4.0.0"
|
|
46
|
+
"svelte": "^3.53.1 || ^4.0.0 || ^5.0.0"
|
|
48
47
|
},
|
|
49
48
|
"files": ["dist"],
|
|
50
49
|
"type": "module"
|