@dosgato/dialog 0.0.13 → 0.0.15

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/FieldText.svelte CHANGED
@@ -13,8 +13,9 @@ export let allowlastpass = false;
13
13
  export let maxlength = undefined;
14
14
  export let conditional = undefined;
15
15
  export let required = false;
16
+ export let use = [];
16
17
  </script>
17
18
 
18
19
  <FieldStandard bind:id {label} {path} {required} {defaultValue} {conditional} serialize={!notNull && nullableSerialize} deserialize={!notNull && nullableDeserialize} let:value let:valid let:invalid let:id let:onBlur let:onChange let:messagesid>
19
- <Input {type} name={path} {value} {id} class="dialog-input {className}" {allowlastpass} {onChange} {onBlur} {valid} {invalid} {maxlength} {messagesid}></Input>
20
+ <Input {type} name={path} {value} {id} class="dialog-input {className}" {allowlastpass} {onChange} {onBlur} {valid} {invalid} {maxlength} {messagesid} {use}></Input>
20
21
  </FieldStandard>
@@ -1,4 +1,5 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
+ import type { HTMLActionEntry } from '@txstate-mws/svelte-components';
2
3
  declare const __propDef: {
3
4
  props: {
4
5
  class?: string;
@@ -12,6 +13,7 @@ declare const __propDef: {
12
13
  maxlength?: number | undefined;
13
14
  conditional?: boolean | undefined;
14
15
  required?: boolean;
16
+ use?: HTMLActionEntry[];
15
17
  };
16
18
  events: {
17
19
  [evt: string]: CustomEvent<any>;
@@ -1,4 +1,5 @@
1
- <script>import { nullableSerialize, nullableDeserialize } from '@txstate-mws/svelte-forms';
1
+ <script>import { passActions } from '@txstate-mws/svelte-components';
2
+ import { nullableSerialize, nullableDeserialize } from '@txstate-mws/svelte-forms';
2
3
  import FieldStandard from './FieldStandard.svelte';
3
4
  let className = '';
4
5
  export { className as class };
@@ -11,10 +12,11 @@ export let maxlength = undefined;
11
12
  export let rows = undefined;
12
13
  export let conditional = undefined;
13
14
  export let required = false;
15
+ export let use = [];
14
16
  </script>
15
17
 
16
18
  <FieldStandard bind:id {label} {path} {required} {defaultValue} {conditional} serialize={!notNull && nullableSerialize} deserialize={!notNull && nullableDeserialize} let:value let:valid let:invalid let:id let:onBlur let:onChange let:messagesid>
17
- <textarea name={path} {value} {id} {rows} class="dialog-input dialog-textarea {className}" class:valid class:invalid aria-invalid={invalid} aria-describedby={messagesid} on:change={onChange} on:blur={onBlur} on:keyup={onChange} {maxlength}></textarea>
19
+ <textarea name={path} {value} {id} {rows} class="dialog-input dialog-textarea {className}" class:valid class:invalid aria-invalid={invalid} aria-describedby={messagesid} on:change={onChange} on:blur={onBlur} on:keyup={onChange} on:paste {maxlength} use:passActions={use}></textarea>
18
20
  </FieldStandard>
19
21
 
20
22
  <style>
@@ -1,4 +1,5 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
+ import { type HTMLActionEntry } from '@txstate-mws/svelte-components';
2
3
  declare const __propDef: {
3
4
  props: {
4
5
  class?: string;
@@ -11,8 +12,11 @@ declare const __propDef: {
11
12
  rows?: number | undefined;
12
13
  conditional?: boolean | undefined;
13
14
  required?: boolean;
15
+ use?: HTMLActionEntry[];
14
16
  };
15
17
  events: {
18
+ paste: ClipboardEvent;
19
+ } & {
16
20
  [evt: string]: CustomEvent<any>;
17
21
  };
18
22
  slots: {};
package/Input.svelte CHANGED
@@ -1,4 +1,5 @@
1
- <script>import { dateSerialize, datetimeSerialize } from '@txstate-mws/svelte-forms';
1
+ <script>import { passActions } from '@txstate-mws/svelte-components';
2
+ import { dateSerialize, datetimeSerialize } from '@txstate-mws/svelte-forms';
2
3
  let className = '';
3
4
  export { className as class };
4
5
  export let name;
@@ -17,6 +18,7 @@ export let invalid = false;
17
18
  export let onChange;
18
19
  export let onBlur;
19
20
  export let onSelect = undefined;
21
+ export let use = [];
20
22
  function resolveMinMax(dt) {
21
23
  if (typeof dt === 'undefined')
22
24
  return undefined;
@@ -30,4 +32,4 @@ $: minStr = resolveMinMax(min);
30
32
  $: maxStr = resolveMinMax(max);
31
33
  </script>
32
34
 
33
- <input {type} {id} class={className} autocomplete="off" data-lpignore={!allowlastpass} {name} {value} {disabled} {maxlength} min={minStr} max={maxStr} {step} class:valid class:invalid aria-invalid={invalid} aria-describedby={messagesid} on:change={onChange} on:select={onSelect} on:blur={onBlur} on:keyup={onChange}>
35
+ <input {type} {id} class={className} autocomplete="off" data-lpignore={!allowlastpass} {name} {value} {disabled} {maxlength} min={minStr} max={maxStr} {step} class:valid class:invalid aria-invalid={invalid} aria-describedby={messagesid} on:change={onChange} on:select={onSelect} on:blur={onBlur} on:keyup={onChange} use:passActions={use}>
package/Input.svelte.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
+ import { type HTMLActionEntry } from '@txstate-mws/svelte-components';
2
3
  declare const __propDef: {
3
4
  props: {
4
5
  class?: string;
@@ -22,6 +23,7 @@ declare const __propDef: {
22
23
  onChange: any;
23
24
  onBlur: any;
24
25
  onSelect?: any;
26
+ use?: HTMLActionEntry[];
25
27
  };
26
28
  events: {
27
29
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,9 +1,9 @@
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.13",
4
+ "version": "0.0.15",
5
5
  "dependencies": {
6
- "@txstate-mws/svelte-components": "^1.2.11",
6
+ "@txstate-mws/svelte-components": "^1.3.0",
7
7
  "@txstate-mws/svelte-forms": "^0.0.21",
8
8
  "@iconify/svelte": "^2.2.1",
9
9
  "@iconify-icons/mdi": "^1.2.22",