@dosgato/dialog 0.0.79 → 0.0.80
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/FieldChoices.svelte
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
The value of the field will be an array corresponding to the values of the checkboxes that are checked.
|
|
6
6
|
-->
|
|
7
7
|
<script>import { getContext, onMount } from 'svelte';
|
|
8
|
-
import { Field, FORM_CONTEXT } from '@txstate-mws/svelte-forms';
|
|
8
|
+
import { Field, FORM_CONTEXT, arraySerialize } from '@txstate-mws/svelte-forms';
|
|
9
9
|
import { derivedStore } from '@txstate-mws/svelte-store';
|
|
10
10
|
import { randomid } from 'txstate-utils';
|
|
11
11
|
import Container from './Container.svelte';
|
|
@@ -63,7 +63,7 @@ $: reactToChoices(choices);
|
|
|
63
63
|
onMount(reactToChoices);
|
|
64
64
|
</script>
|
|
65
65
|
|
|
66
|
-
<Field {path} {defaultValue} {conditional} let:path let:value let:onBlur let:setVal let:messages let:valid let:invalid>
|
|
66
|
+
<Field {path} {defaultValue} {conditional} let:path let:value let:onBlur let:setVal let:messages let:valid let:invalid serialize={arraySerialize}>
|
|
67
67
|
{@const _ = updateValue(value, setVal)}
|
|
68
68
|
<Container {id} {label} {messages} {descid} {related} {helptext} let:messagesid let:helptextid>
|
|
69
69
|
<div class="dialog-choices {className}" class:valid class:invalid>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script>import menuRight from '@iconify-icons/mdi/menu-right.js';
|
|
2
2
|
import menuLeft from '@iconify-icons/mdi/menu-left.js';
|
|
3
3
|
import { ScreenReaderOnly, modifierKey } from '@txstate-mws/svelte-components';
|
|
4
|
+
import { arraySerialize } from '@txstate-mws/svelte-forms';
|
|
4
5
|
import { randomid } from 'txstate-utils';
|
|
5
6
|
import FieldStandard from './FieldStandard.svelte';
|
|
6
7
|
import Icon from './Icon.svelte';
|
|
@@ -83,7 +84,7 @@ function onkeydown(value, setVal) {
|
|
|
83
84
|
}
|
|
84
85
|
</script>
|
|
85
86
|
|
|
86
|
-
<FieldStandard bind:id {label} {path} {required} {defaultValue} {conditional} {descid} {related} {helptext} let:value let:valid let:invalid let:id let:onBlur let:setVal let:helptextid let:messagesid>
|
|
87
|
+
<FieldStandard bind:id {label} {path} {required} {defaultValue} {conditional} {descid} {related} {helptext} let:value let:valid let:invalid let:id let:onBlur let:setVal let:helptextid let:messagesid serialize={arraySerialize}>
|
|
87
88
|
<div {id} role="group" class="dual-list-container" on:keydown={onkeydown(value, setVal)}>
|
|
88
89
|
<ScreenReaderOnly>
|
|
89
90
|
<span aria-live="polite">{instructions}</span>
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
debounced callback on the contents of the text input.
|
|
8
8
|
-->
|
|
9
9
|
<script>import { MultiSelect } from '@txstate-mws/svelte-components';
|
|
10
|
+
import { arraySerialize } from '@txstate-mws/svelte-forms';
|
|
10
11
|
import { Store } from '@txstate-mws/svelte-store';
|
|
11
12
|
import { onMount } from 'svelte';
|
|
12
13
|
import { isNotBlank } from 'txstate-utils';
|
|
@@ -68,7 +69,7 @@ async function reactToValue(value) {
|
|
|
68
69
|
|
|
69
70
|
<div bind:this={inputelement}></div>
|
|
70
71
|
{#if hasInit}
|
|
71
|
-
<FieldStandard bind:id {label} {path} {required} {defaultValue} {conditional} {related} {helptext} let:value let:valid let:invalid let:id let:onBlur let:setVal let:messagesid let:helptextid>
|
|
72
|
+
<FieldStandard bind:id {label} {path} {required} {defaultValue} {conditional} {related} {helptext} let:value let:valid let:invalid let:id let:onBlur let:setVal let:messagesid let:helptextid serialize={arraySerialize}>
|
|
72
73
|
{@const _ = reactToValue(value)}
|
|
73
74
|
<div class:valid class:invalid>
|
|
74
75
|
<MultiSelect {id} name={path} descid={getDescribedBy([messagesid, helptextid, extradescid])}
|
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": "0.0.
|
|
4
|
+
"version": "0.0.80",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "svelte-package",
|
|
7
7
|
"dev": "vite dev --force",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@iconify-icons/mdi": "^1.2.22",
|
|
28
28
|
"@iconify-icons/ph": "^1.2.2",
|
|
29
29
|
"@txstate-mws/svelte-components": "^1.5.3",
|
|
30
|
-
"@txstate-mws/svelte-forms": "^1.3.
|
|
30
|
+
"@txstate-mws/svelte-forms": "^1.3.15",
|
|
31
31
|
"codemirror": "^6.0.1",
|
|
32
32
|
"txstate-utils": "^1.8.0"
|
|
33
33
|
},
|