@dosgato/dialog 0.0.20 → 0.0.21

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.
Files changed (71) hide show
  1. package/Button.svelte.d.ts +3 -3
  2. package/ButtonGroup.svelte.d.ts +3 -3
  3. package/Checkbox.svelte.d.ts +3 -3
  4. package/Container.svelte.d.ts +3 -3
  5. package/Dialog.svelte +22 -4
  6. package/Dialog.svelte.d.ts +5 -4
  7. package/FieldAutocomplete.svelte.d.ts +3 -3
  8. package/FieldCheckbox.svelte.d.ts +3 -3
  9. package/FieldChoices.svelte.d.ts +3 -3
  10. package/FieldChooserLink.svelte +14 -12
  11. package/FieldChooserLink.svelte.d.ts +3 -5
  12. package/FieldDate.svelte.d.ts +3 -3
  13. package/FieldDateTime.svelte.d.ts +3 -3
  14. package/FieldDualListbox.svelte.d.ts +3 -3
  15. package/FieldHidden.svelte.d.ts +3 -3
  16. package/FieldIdentifier.svelte.d.ts +3 -3
  17. package/FieldMultiple.svelte.d.ts +3 -3
  18. package/FieldMultiselect.svelte.d.ts +3 -3
  19. package/FieldNumber.svelte.d.ts +3 -3
  20. package/FieldRadio.svelte.d.ts +3 -3
  21. package/FieldSelect.svelte.d.ts +3 -3
  22. package/FieldStandard.svelte.d.ts +3 -3
  23. package/FieldText.svelte.d.ts +3 -3
  24. package/FieldTextArea.svelte.d.ts +3 -3
  25. package/FileIcon.svelte.d.ts +3 -3
  26. package/Form.svelte.d.ts +3 -3
  27. package/FormDialog.svelte.d.ts +3 -3
  28. package/Icon.svelte.d.ts +3 -3
  29. package/InlineMessage.svelte.d.ts +3 -3
  30. package/InlineMessages.svelte.d.ts +3 -3
  31. package/Input.svelte.d.ts +3 -3
  32. package/Listbox.svelte.d.ts +3 -3
  33. package/Radio.svelte.d.ts +3 -3
  34. package/Tab.svelte.d.ts +3 -3
  35. package/TabStore.d.ts +3 -0
  36. package/TabStore.js +12 -0
  37. package/Tabs.svelte +5 -4
  38. package/Tabs.svelte.d.ts +3 -3
  39. package/chooser/Chooser.svelte +76 -99
  40. package/chooser/Chooser.svelte.d.ts +5 -5
  41. package/chooser/ChooserAPI.d.ts +10 -3
  42. package/chooser/ChooserStore.d.ts +15 -33
  43. package/chooser/ChooserStore.js +32 -149
  44. package/chooser/Details.svelte.d.ts +6 -5
  45. package/chooser/Thumbnail.svelte +9 -2
  46. package/chooser/Thumbnail.svelte.d.ts +6 -5
  47. package/colorpicker/FieldColorPicker.svelte +78 -24
  48. package/colorpicker/FieldColorPicker.svelte.d.ts +5 -6
  49. package/iconpicker/FieldIconPicker.svelte +4 -2
  50. package/iconpicker/FieldIconPicker.svelte.d.ts +4 -3
  51. package/index.d.ts +3 -0
  52. package/index.js +3 -0
  53. package/package.json +9 -6
  54. package/tree/LoadIcon.svelte +24 -0
  55. package/tree/LoadIcon.svelte.d.ts +23 -0
  56. package/tree/Tree.svelte +203 -0
  57. package/tree/Tree.svelte.d.ts +28 -0
  58. package/tree/TreeCell.svelte +18 -0
  59. package/tree/TreeCell.svelte.d.ts +18 -0
  60. package/tree/TreeNode.svelte +418 -0
  61. package/tree/TreeNode.svelte.d.ts +30 -0
  62. package/tree/index.d.ts +3 -0
  63. package/tree/index.js +3 -0
  64. package/tree/treestore.d.ts +117 -0
  65. package/tree/treestore.js +336 -0
  66. package/chooser/Asset.svelte +0 -83
  67. package/chooser/Asset.svelte.d.ts +0 -25
  68. package/chooser/AssetFolder.svelte +0 -127
  69. package/chooser/AssetFolder.svelte.d.ts +0 -25
  70. package/chooser/Page.svelte +0 -121
  71. package/chooser/Page.svelte.d.ts +0 -25
@@ -22,9 +22,9 @@ declare const __propDef: {
22
22
  default: {};
23
23
  };
24
24
  };
25
- export declare type ButtonProps = typeof __propDef.props;
26
- export declare type ButtonEvents = typeof __propDef.events;
27
- export declare type ButtonSlots = typeof __propDef.slots;
25
+ export type ButtonProps = typeof __propDef.props;
26
+ export type ButtonEvents = typeof __propDef.events;
27
+ export type ButtonSlots = typeof __propDef.slots;
28
28
  export default class Button extends SvelteComponentTyped<ButtonProps, ButtonEvents, ButtonSlots> {
29
29
  }
30
30
  export {};
@@ -20,9 +20,9 @@ declare const __propDef: {
20
20
  };
21
21
  slots: {};
22
22
  };
23
- export declare type ButtonGroupProps = typeof __propDef.props;
24
- export declare type ButtonGroupEvents = typeof __propDef.events;
25
- export declare type ButtonGroupSlots = typeof __propDef.slots;
23
+ export type ButtonGroupProps = typeof __propDef.props;
24
+ export type ButtonGroupEvents = typeof __propDef.events;
25
+ export type ButtonGroupSlots = typeof __propDef.slots;
26
26
  export default class ButtonGroup extends SvelteComponentTyped<ButtonGroupProps, ButtonGroupEvents, ButtonGroupSlots> {
27
27
  }
28
28
  export {};
@@ -19,9 +19,9 @@ declare const __propDef: {
19
19
  };
20
20
  slots: {};
21
21
  };
22
- export declare type CheckboxProps = typeof __propDef.props;
23
- export declare type CheckboxEvents = typeof __propDef.events;
24
- export declare type CheckboxSlots = typeof __propDef.slots;
22
+ export type CheckboxProps = typeof __propDef.props;
23
+ export type CheckboxEvents = typeof __propDef.events;
24
+ export type CheckboxSlots = typeof __propDef.slots;
25
25
  export default class Checkbox extends SvelteComponentTyped<CheckboxProps, CheckboxEvents, CheckboxSlots> {
26
26
  }
27
27
  export {};
@@ -19,9 +19,9 @@ declare const __propDef: {
19
19
  };
20
20
  };
21
21
  };
22
- export declare type ContainerProps = typeof __propDef.props;
23
- export declare type ContainerEvents = typeof __propDef.events;
24
- export declare type ContainerSlots = typeof __propDef.slots;
22
+ export type ContainerProps = typeof __propDef.props;
23
+ export type ContainerEvents = typeof __propDef.events;
24
+ export type ContainerSlots = typeof __propDef.slots;
25
25
  export default class Container extends SvelteComponentTyped<ContainerProps, ContainerEvents, ContainerSlots> {
26
26
  }
27
27
  export {};
package/Dialog.svelte CHANGED
@@ -2,6 +2,7 @@
2
2
  </script>
3
3
  <script>import arrowLeftLight from '@iconify-icons/ph/arrow-left-light';
4
4
  import arrowRightLight from '@iconify-icons/ph/arrow-right-light';
5
+ import xLight from '@iconify-icons/ph/x-light';
5
6
  import { Modal, ScreenReaderOnly } from '@txstate-mws/svelte-components';
6
7
  import { createEventDispatcher, setContext } from 'svelte';
7
8
  import { isNotBlank, randomid } from 'txstate-utils';
@@ -16,6 +17,7 @@ export let continueText = 'Ok';
16
17
  export let continueIcon = undefined;
17
18
  export let escapable = isNotBlank(cancelText);
18
19
  export let disabled = false;
20
+ export let ignoreTabs = false;
19
21
  export let labelid = randomid();
20
22
  export let descid = randomid();
21
23
  const ctx = { change: onTabChange };
@@ -39,19 +41,22 @@ $: describedby = [title ? labelid : undefined, descid].filter(isNotBlank).join('
39
41
  <Icon width="1.4em" {icon} inline />{title}
40
42
  </header>
41
43
  {/if}
44
+ {#if escapable}
45
+ <button type="button" class="escape" on:click={() => dispatch('escape')}><Icon icon={xLight} width="2em" hiddenLabel="Close Dialog" /></button>
46
+ {/if}
42
47
  <div id={descid} class="content">
43
48
  <slot></slot>
44
49
  </div>
45
50
  <footer class="actions">
46
- <slot name="buttons" {nextTitle} {prevTitle} {hasRequired} onPrev={onPrev} onNext={onNext}>
47
- {#if prevTitle}
51
+ <slot name="buttons" {nextTitle} {prevTitle} hasRequired={hasRequired && !ignoreTabs} onPrev={onPrev} onNext={onNext}>
52
+ {#if prevTitle && !ignoreTabs}
48
53
  <Button class="prev" disabled={!prevTitle} on:click={onPrev}><Icon icon={arrowLeftLight} inline /> Previous<ScreenReaderOnly> Tab ({prevTitle})</ScreenReaderOnly></Button>
49
54
  {/if}
50
55
  {#if isNotBlank(cancelText)}
51
56
  <Button cancel {describedby} on:click={() => dispatch('escape')}>{cancelText}</Button>
52
57
  {/if}
53
- <Button class="primary" disabled={disabled || hasRequired} {describedby} on:click={() => dispatch('continue')}><Icon icon={continueIcon} inline />{continueText}</Button>
54
- {#if nextTitle}
58
+ <Button class="primary" disabled={disabled || (hasRequired && !ignoreTabs)} {describedby} on:click={() => dispatch('continue')}><Icon icon={continueIcon} inline />{continueText}</Button>
59
+ {#if nextTitle && !ignoreTabs}
55
60
  <Button class="next" disabled={!nextTitle} on:click={onNext}>Next<ScreenReaderOnly> Tab ({nextTitle})</ScreenReaderOnly> <Icon width="1.2em" icon={arrowRightLight} inline /></Button>
56
61
  {/if}
57
62
  </slot>
@@ -86,6 +91,10 @@ $: describedby = [title ? labelid : undefined, descid].filter(isNotBlank).join('
86
91
  min-width: 300px;
87
92
  max-width: 1000px;
88
93
  }
94
+ section.xl {
95
+ width: 95vw;
96
+ max-width: 2000px;
97
+ }
89
98
 
90
99
  header {
91
100
  display: flex;
@@ -134,4 +143,13 @@ $: describedby = [title ? labelid : undefined, descid].filter(isNotBlank).join('
134
143
  footer.actions :global(.prev) {
135
144
  margin-right: auto;
136
145
  }
146
+
147
+ .escape {
148
+ position: absolute;
149
+ top: 0.1em;
150
+ right: 0;
151
+ border: 0;
152
+ background: none;
153
+ cursor: pointer;
154
+ }
137
155
  </style>
@@ -15,12 +15,13 @@ declare const __propDef: {
15
15
  initialfocus?: string | undefined;
16
16
  title?: string;
17
17
  icon?: IconifyIcon;
18
- size?: 'tiny' | 'small' | 'normal' | 'large';
18
+ size?: 'tiny' | 'small' | 'normal' | 'large' | 'xl';
19
19
  cancelText?: string | undefined;
20
20
  continueText?: string;
21
21
  continueIcon?: IconifyIcon;
22
22
  escapable?: boolean;
23
23
  disabled?: boolean;
24
+ ignoreTabs?: boolean;
24
25
  labelid?: string;
25
26
  descid?: string;
26
27
  };
@@ -41,9 +42,9 @@ declare const __propDef: {
41
42
  };
42
43
  };
43
44
  };
44
- export declare type DialogProps = typeof __propDef.props;
45
- export declare type DialogEvents = typeof __propDef.events;
46
- export declare type DialogSlots = typeof __propDef.slots;
45
+ export type DialogProps = typeof __propDef.props;
46
+ export type DialogEvents = typeof __propDef.events;
47
+ export type DialogSlots = typeof __propDef.slots;
47
48
  export default class Dialog extends SvelteComponentTyped<DialogProps, DialogEvents, DialogSlots> {
48
49
  }
49
50
  export {};
@@ -24,9 +24,9 @@ declare const __propDef: {
24
24
  };
25
25
  slots: {};
26
26
  };
27
- export declare type FieldAutocompleteProps = typeof __propDef.props;
28
- export declare type FieldAutocompleteEvents = typeof __propDef.events;
29
- export declare type FieldAutocompleteSlots = typeof __propDef.slots;
27
+ export type FieldAutocompleteProps = typeof __propDef.props;
28
+ export type FieldAutocompleteEvents = typeof __propDef.events;
29
+ export type FieldAutocompleteSlots = typeof __propDef.slots;
30
30
  export default class FieldAutocomplete extends SvelteComponentTyped<FieldAutocompleteProps, FieldAutocompleteEvents, FieldAutocompleteSlots> {
31
31
  }
32
32
  export {};
@@ -17,9 +17,9 @@ declare const __propDef: {
17
17
  };
18
18
  slots: {};
19
19
  };
20
- export declare type FieldCheckboxProps = typeof __propDef.props;
21
- export declare type FieldCheckboxEvents = typeof __propDef.events;
22
- export declare type FieldCheckboxSlots = typeof __propDef.slots;
20
+ export type FieldCheckboxProps = typeof __propDef.props;
21
+ export type FieldCheckboxEvents = typeof __propDef.events;
22
+ export type FieldCheckboxSlots = typeof __propDef.slots;
23
23
  export default class FieldCheckbox extends SvelteComponentTyped<FieldCheckboxProps, FieldCheckboxEvents, FieldCheckboxSlots> {
24
24
  }
25
25
  export {};
@@ -21,9 +21,9 @@ declare const __propDef: {
21
21
  };
22
22
  slots: {};
23
23
  };
24
- export declare type FieldChoicesProps = typeof __propDef.props;
25
- export declare type FieldChoicesEvents = typeof __propDef.events;
26
- export declare type FieldChoicesSlots = typeof __propDef.slots;
24
+ export type FieldChoicesProps = typeof __propDef.props;
25
+ export type FieldChoicesEvents = typeof __propDef.events;
26
+ export type FieldChoicesSlots = typeof __propDef.slots;
27
27
  export default class FieldChoices extends SvelteComponentTyped<FieldChoicesProps, FieldChoicesEvents, FieldChoicesSlots> {
28
28
  }
29
29
  export {};
@@ -1,5 +1,3 @@
1
- <script context="module">export {};
2
- </script>
3
1
  <script>import { FORM_CONTEXT } from '@txstate-mws/svelte-forms';
4
2
  import { getContext } from 'svelte';
5
3
  import { randomid } from 'txstate-utils';
@@ -19,7 +17,6 @@ export let pages = false;
19
17
  export let assets = images;
20
18
  export let folders = false;
21
19
  export let urlEntry = false;
22
- export let initialType = undefined;
23
20
  export let initialSource = undefined;
24
21
  export let initialPath = undefined;
25
22
  export let helptext = undefined;
@@ -31,7 +28,7 @@ const descid = randomid();
31
28
  let modalshown = false;
32
29
  async function show() {
33
30
  if (selectedAsset && selectedAsset.type !== 'raw')
34
- store.preview(selectedAsset);
31
+ store.setPreview(selectedAsset);
35
32
  modalshown = true;
36
33
  }
37
34
  function hide() {
@@ -40,7 +37,7 @@ function hide() {
40
37
  function onChange(setVal) {
41
38
  return (e) => {
42
39
  selectedAsset = e.detail;
43
- setVal(e.detail.id);
40
+ setVal(selectedAsset?.id);
44
41
  hide();
45
42
  };
46
43
  }
@@ -49,7 +46,7 @@ async function userUrlEntry() {
49
46
  if (chooserClient.findByUrl) {
50
47
  const item = await chooserClient.findByUrl(url);
51
48
  if (item)
52
- return store.preview(item);
49
+ return store.setPreview(item);
53
50
  }
54
51
  store.clearPreview();
55
52
  const newVal = chooserClient.urlToValue?.(url) ?? url;
@@ -75,12 +72,14 @@ $: updateSelected($value);
75
72
  <Details item={selectedAsset} />
76
73
  </div>
77
74
  {/if}
78
- <button type="button" on:click={show} aria-describedby={getDescribedBy([descid, messagesid, helptextid])}>Select {#if value}New{/if} {#if assets && pages}Link Target{:else if images}Image{:else if assets}Asset{:else}Page{/if}</button>
79
- {#if urlEntry && !folders && selectedAsset?.type !== 'folder'}
80
- <input type="text" value={selectedAsset?.url ?? ''} on:change={userUrlEntry}><br>
81
- {/if}
75
+ <div class="dialog-chooser-entry">
76
+ {#if urlEntry && !folders && selectedAsset?.type !== 'folder'}
77
+ <input type="text" value={selectedAsset?.url ?? ''} on:change={userUrlEntry}>
78
+ {/if}
79
+ <button type="button" on:click={show} aria-describedby={getDescribedBy([descid, messagesid, helptextid])}>Select {#if value}New{/if} {#if assets && pages}Link Target{:else if images}Image{:else if assets}Asset{:else}Page{/if}</button>
80
+ </div>
82
81
  {#if modalshown}
83
- <Chooser {store} {label} {initialType} {pages} {assets} {images} {initialSource} {initialPath} {folders} on:change={onChange(setVal)} on:escape={hide} />
82
+ <Chooser {store} {label} {pages} {assets} {images} {initialSource} {initialPath} {folders} {required} on:change={onChange(setVal)} on:escape={hide} />
84
83
  {/if}
85
84
  </FieldStandard>
86
85
 
@@ -95,7 +94,10 @@ $: updateSelected($value);
95
94
  padding-top: 0;
96
95
  height: 5em;
97
96
  }
97
+ .dialog-chooser-entry {
98
+ display: flex;
99
+ }
98
100
  input {
99
- width: 100%;
101
+ flex-grow: 1;
100
102
  }
101
103
  </style>
@@ -1,5 +1,4 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { ChooserType } from './chooser/ChooserAPI';
3
2
  declare const __propDef: {
4
3
  props: {
5
4
  id?: string | undefined;
@@ -13,7 +12,6 @@ declare const __propDef: {
13
12
  assets?: boolean;
14
13
  folders?: boolean;
15
14
  urlEntry?: boolean;
16
- initialType?: ChooserType | undefined;
17
15
  initialSource?: string | undefined;
18
16
  initialPath?: string | undefined;
19
17
  helptext?: string | undefined;
@@ -23,9 +21,9 @@ declare const __propDef: {
23
21
  };
24
22
  slots: {};
25
23
  };
26
- export declare type FieldChooserLinkProps = typeof __propDef.props;
27
- export declare type FieldChooserLinkEvents = typeof __propDef.events;
28
- export declare type FieldChooserLinkSlots = typeof __propDef.slots;
24
+ export type FieldChooserLinkProps = typeof __propDef.props;
25
+ export type FieldChooserLinkEvents = typeof __propDef.events;
26
+ export type FieldChooserLinkSlots = typeof __propDef.slots;
29
27
  export default class FieldChooserLink extends SvelteComponentTyped<FieldChooserLinkProps, FieldChooserLinkEvents, FieldChooserLinkSlots> {
30
28
  }
31
29
  export {};
@@ -23,9 +23,9 @@ declare const __propDef: {
23
23
  };
24
24
  slots: {};
25
25
  };
26
- export declare type FieldDateProps = typeof __propDef.props;
27
- export declare type FieldDateEvents = typeof __propDef.events;
28
- export declare type FieldDateSlots = typeof __propDef.slots;
26
+ export type FieldDateProps = typeof __propDef.props;
27
+ export type FieldDateEvents = typeof __propDef.events;
28
+ export type FieldDateSlots = typeof __propDef.slots;
29
29
  export default class FieldDate extends SvelteComponentTyped<FieldDateProps, FieldDateEvents, FieldDateSlots> {
30
30
  }
31
31
  export {};
@@ -22,9 +22,9 @@ declare const __propDef: {
22
22
  };
23
23
  slots: {};
24
24
  };
25
- export declare type FieldDateTimeProps = typeof __propDef.props;
26
- export declare type FieldDateTimeEvents = typeof __propDef.events;
27
- export declare type FieldDateTimeSlots = typeof __propDef.slots;
25
+ export type FieldDateTimeProps = typeof __propDef.props;
26
+ export type FieldDateTimeEvents = typeof __propDef.events;
27
+ export type FieldDateTimeSlots = typeof __propDef.slots;
28
28
  export default class FieldDateTime extends SvelteComponentTyped<FieldDateTimeProps, FieldDateTimeEvents, FieldDateTimeSlots> {
29
29
  }
30
30
  export {};
@@ -18,9 +18,9 @@ declare const __propDef: {
18
18
  };
19
19
  slots: {};
20
20
  };
21
- export declare type FieldDualListboxProps = typeof __propDef.props;
22
- export declare type FieldDualListboxEvents = typeof __propDef.events;
23
- export declare type FieldDualListboxSlots = typeof __propDef.slots;
21
+ export type FieldDualListboxProps = typeof __propDef.props;
22
+ export type FieldDualListboxEvents = typeof __propDef.events;
23
+ export type FieldDualListboxSlots = typeof __propDef.slots;
24
24
  export default class FieldDualListbox extends SvelteComponentTyped<FieldDualListboxProps, FieldDualListboxEvents, FieldDualListboxSlots> {
25
25
  }
26
26
  export {};
@@ -12,9 +12,9 @@ declare const __propDef: {
12
12
  };
13
13
  slots: {};
14
14
  };
15
- export declare type FieldHiddenProps = typeof __propDef.props;
16
- export declare type FieldHiddenEvents = typeof __propDef.events;
17
- export declare type FieldHiddenSlots = typeof __propDef.slots;
15
+ export type FieldHiddenProps = typeof __propDef.props;
16
+ export type FieldHiddenEvents = typeof __propDef.events;
17
+ export type FieldHiddenSlots = typeof __propDef.slots;
18
18
  export default class FieldHidden extends SvelteComponentTyped<FieldHiddenProps, FieldHiddenEvents, FieldHiddenSlots> {
19
19
  }
20
20
  export {};
@@ -9,9 +9,9 @@ declare const __propDef: {
9
9
  };
10
10
  slots: {};
11
11
  };
12
- export declare type FieldIdentifierProps = typeof __propDef.props;
13
- export declare type FieldIdentifierEvents = typeof __propDef.events;
14
- export declare type FieldIdentifierSlots = typeof __propDef.slots;
12
+ export type FieldIdentifierProps = typeof __propDef.props;
13
+ export type FieldIdentifierEvents = typeof __propDef.events;
14
+ export type FieldIdentifierSlots = typeof __propDef.slots;
15
15
  export default class FieldIdentifier extends SvelteComponentTyped<FieldIdentifierProps, FieldIdentifierEvents, FieldIdentifierSlots> {
16
16
  }
17
17
  export {};
@@ -28,9 +28,9 @@ declare const __propDef: {
28
28
  };
29
29
  };
30
30
  };
31
- export declare type FieldMultipleProps = typeof __propDef.props;
32
- export declare type FieldMultipleEvents = typeof __propDef.events;
33
- export declare type FieldMultipleSlots = typeof __propDef.slots;
31
+ export type FieldMultipleProps = typeof __propDef.props;
32
+ export type FieldMultipleEvents = typeof __propDef.events;
33
+ export type FieldMultipleSlots = typeof __propDef.slots;
34
34
  export default class FieldMultiple extends SvelteComponentTyped<FieldMultipleProps, FieldMultipleEvents, FieldMultipleSlots> {
35
35
  }
36
36
  export {};
@@ -17,9 +17,9 @@ declare const __propDef: {
17
17
  };
18
18
  slots: {};
19
19
  };
20
- export declare type FieldMultiselectProps = typeof __propDef.props;
21
- export declare type FieldMultiselectEvents = typeof __propDef.events;
22
- export declare type FieldMultiselectSlots = typeof __propDef.slots;
20
+ export type FieldMultiselectProps = typeof __propDef.props;
21
+ export type FieldMultiselectEvents = typeof __propDef.events;
22
+ export type FieldMultiselectSlots = typeof __propDef.slots;
23
23
  export default class FieldMultiselect extends SvelteComponentTyped<FieldMultiselectProps, FieldMultiselectEvents, FieldMultiselectSlots> {
24
24
  }
25
25
  export {};
@@ -20,9 +20,9 @@ declare const __propDef: {
20
20
  };
21
21
  slots: {};
22
22
  };
23
- export declare type FieldNumberProps = typeof __propDef.props;
24
- export declare type FieldNumberEvents = typeof __propDef.events;
25
- export declare type FieldNumberSlots = typeof __propDef.slots;
23
+ export type FieldNumberProps = typeof __propDef.props;
24
+ export type FieldNumberEvents = typeof __propDef.events;
25
+ export type FieldNumberSlots = typeof __propDef.slots;
26
26
  export default class FieldNumber extends SvelteComponentTyped<FieldNumberProps, FieldNumberEvents, FieldNumberSlots> {
27
27
  }
28
28
  export {};
@@ -27,9 +27,9 @@ declare const __propDef: {
27
27
  };
28
28
  slots: {};
29
29
  };
30
- export declare type FieldRadioProps = typeof __propDef.props;
31
- export declare type FieldRadioEvents = typeof __propDef.events;
32
- export declare type FieldRadioSlots = typeof __propDef.slots;
30
+ export type FieldRadioProps = typeof __propDef.props;
31
+ export type FieldRadioEvents = typeof __propDef.events;
32
+ export type FieldRadioSlots = typeof __propDef.slots;
33
33
  export default class FieldRadio extends SvelteComponentTyped<FieldRadioProps, FieldRadioEvents, FieldRadioSlots> {
34
34
  }
35
35
  export {};
@@ -29,9 +29,9 @@ declare const __propDef: {
29
29
  };
30
30
  slots: {};
31
31
  };
32
- export declare type FieldSelectProps = typeof __propDef.props;
33
- export declare type FieldSelectEvents = typeof __propDef.events;
34
- export declare type FieldSelectSlots = typeof __propDef.slots;
32
+ export type FieldSelectProps = typeof __propDef.props;
33
+ export type FieldSelectEvents = typeof __propDef.events;
34
+ export type FieldSelectSlots = typeof __propDef.slots;
35
35
  export default class FieldSelect extends SvelteComponentTyped<FieldSelectProps, FieldSelectEvents, FieldSelectSlots> {
36
36
  }
37
37
  export {};
@@ -34,9 +34,9 @@ declare const __propDef: {
34
34
  };
35
35
  };
36
36
  };
37
- export declare type FieldStandardProps = typeof __propDef.props;
38
- export declare type FieldStandardEvents = typeof __propDef.events;
39
- export declare type FieldStandardSlots = typeof __propDef.slots;
37
+ export type FieldStandardProps = typeof __propDef.props;
38
+ export type FieldStandardEvents = typeof __propDef.events;
39
+ export type FieldStandardSlots = typeof __propDef.slots;
40
40
  export default class FieldStandard extends SvelteComponentTyped<FieldStandardProps, FieldStandardEvents, FieldStandardSlots> {
41
41
  }
42
42
  export {};
@@ -22,9 +22,9 @@ declare const __propDef: {
22
22
  };
23
23
  slots: {};
24
24
  };
25
- export declare type FieldTextProps = typeof __propDef.props;
26
- export declare type FieldTextEvents = typeof __propDef.events;
27
- export declare type FieldTextSlots = typeof __propDef.slots;
25
+ export type FieldTextProps = typeof __propDef.props;
26
+ export type FieldTextEvents = typeof __propDef.events;
27
+ export type FieldTextSlots = typeof __propDef.slots;
28
28
  export default class FieldText extends SvelteComponentTyped<FieldTextProps, FieldTextEvents, FieldTextSlots> {
29
29
  }
30
30
  export {};
@@ -23,9 +23,9 @@ declare const __propDef: {
23
23
  };
24
24
  slots: {};
25
25
  };
26
- export declare type FieldTextAreaProps = typeof __propDef.props;
27
- export declare type FieldTextAreaEvents = typeof __propDef.events;
28
- export declare type FieldTextAreaSlots = typeof __propDef.slots;
26
+ export type FieldTextAreaProps = typeof __propDef.props;
27
+ export type FieldTextAreaEvents = typeof __propDef.events;
28
+ export type FieldTextAreaSlots = typeof __propDef.slots;
29
29
  export default class FieldTextArea extends SvelteComponentTyped<FieldTextAreaProps, FieldTextAreaEvents, FieldTextAreaSlots> {
30
30
  }
31
31
  export {};
@@ -13,9 +13,9 @@ declare const __propDef: {
13
13
  };
14
14
  slots: {};
15
15
  };
16
- export declare type FileIconProps = typeof __propDef.props;
17
- export declare type FileIconEvents = typeof __propDef.events;
18
- export declare type FileIconSlots = typeof __propDef.slots;
16
+ export type FileIconProps = typeof __propDef.props;
17
+ export type FileIconEvents = typeof __propDef.events;
18
+ export type FileIconSlots = typeof __propDef.slots;
19
19
  export default class FileIcon extends SvelteComponentTyped<FileIconProps, FileIconEvents, FileIconSlots> {
20
20
  }
21
21
  export {};
package/Form.svelte.d.ts CHANGED
@@ -6,9 +6,9 @@ declare class __sveltets_Render<T, F> {
6
6
  };
7
7
  slots(): any;
8
8
  }
9
- export declare type FormProps<T, F> = ReturnType<__sveltets_Render<T, F>['props']>;
10
- export declare type FormEvents<T, F> = ReturnType<__sveltets_Render<T, F>['events']>;
11
- export declare type FormSlots<T, F> = ReturnType<__sveltets_Render<T, F>['slots']>;
9
+ export type FormProps<T, F> = ReturnType<__sveltets_Render<T, F>['props']>;
10
+ export type FormEvents<T, F> = ReturnType<__sveltets_Render<T, F>['events']>;
11
+ export type FormSlots<T, F> = ReturnType<__sveltets_Render<T, F>['slots']>;
12
12
  export default class Form<T, F> extends SvelteComponentTyped<FormProps<T, F>, FormEvents<T, F>, FormSlots<T, F>> {
13
13
  }
14
14
  export {};
@@ -30,9 +30,9 @@ declare class __sveltets_Render<T> {
30
30
  };
31
31
  };
32
32
  }
33
- export declare type FormDialogProps<T> = ReturnType<__sveltets_Render<T>['props']>;
34
- export declare type FormDialogEvents<T> = ReturnType<__sveltets_Render<T>['events']>;
35
- export declare type FormDialogSlots<T> = ReturnType<__sveltets_Render<T>['slots']>;
33
+ export type FormDialogProps<T> = ReturnType<__sveltets_Render<T>['props']>;
34
+ export type FormDialogEvents<T> = ReturnType<__sveltets_Render<T>['events']>;
35
+ export type FormDialogSlots<T> = ReturnType<__sveltets_Render<T>['slots']>;
36
36
  export default class FormDialog<T> extends SvelteComponentTyped<FormDialogProps<T>, FormDialogEvents<T>, FormDialogSlots<T>> {
37
37
  }
38
38
  export {};
package/Icon.svelte.d.ts CHANGED
@@ -14,9 +14,9 @@ declare const __propDef: {
14
14
  };
15
15
  slots: {};
16
16
  };
17
- export declare type IconProps = typeof __propDef.props;
18
- export declare type IconEvents = typeof __propDef.events;
19
- export declare type IconSlots = typeof __propDef.slots;
17
+ export type IconProps = typeof __propDef.props;
18
+ export type IconEvents = typeof __propDef.events;
19
+ export type IconSlots = typeof __propDef.slots;
20
20
  export default class Icon extends SvelteComponentTyped<IconProps, IconEvents, IconSlots> {
21
21
  }
22
22
  export {};
@@ -9,9 +9,9 @@ declare const __propDef: {
9
9
  };
10
10
  slots: {};
11
11
  };
12
- export declare type InlineMessageProps = typeof __propDef.props;
13
- export declare type InlineMessageEvents = typeof __propDef.events;
14
- export declare type InlineMessageSlots = typeof __propDef.slots;
12
+ export type InlineMessageProps = typeof __propDef.props;
13
+ export type InlineMessageEvents = typeof __propDef.events;
14
+ export type InlineMessageSlots = typeof __propDef.slots;
15
15
  export default class InlineMessage extends SvelteComponentTyped<InlineMessageProps, InlineMessageEvents, InlineMessageSlots> {
16
16
  }
17
17
  export {};
@@ -10,9 +10,9 @@ declare const __propDef: {
10
10
  };
11
11
  slots: {};
12
12
  };
13
- export declare type InlineMessagesProps = typeof __propDef.props;
14
- export declare type InlineMessagesEvents = typeof __propDef.events;
15
- export declare type InlineMessagesSlots = typeof __propDef.slots;
13
+ export type InlineMessagesProps = typeof __propDef.props;
14
+ export type InlineMessagesEvents = typeof __propDef.events;
15
+ export type InlineMessagesSlots = typeof __propDef.slots;
16
16
  export default class InlineMessages extends SvelteComponentTyped<InlineMessagesProps, InlineMessagesEvents, InlineMessagesSlots> {
17
17
  }
18
18
  export {};
package/Input.svelte.d.ts CHANGED
@@ -32,9 +32,9 @@ declare const __propDef: {
32
32
  };
33
33
  slots: {};
34
34
  };
35
- export declare type InputProps = typeof __propDef.props;
36
- export declare type InputEvents = typeof __propDef.events;
37
- export declare type InputSlots = typeof __propDef.slots;
35
+ export type InputProps = typeof __propDef.props;
36
+ export type InputEvents = typeof __propDef.events;
37
+ export type InputSlots = typeof __propDef.slots;
38
38
  export default class Input extends SvelteComponentTyped<InputProps, InputEvents, InputSlots> {
39
39
  }
40
40
  export {};
@@ -20,9 +20,9 @@ declare const __propDef: {
20
20
  };
21
21
  slots: {};
22
22
  };
23
- export declare type ListboxProps = typeof __propDef.props;
24
- export declare type ListboxEvents = typeof __propDef.events;
25
- export declare type ListboxSlots = typeof __propDef.slots;
23
+ export type ListboxProps = typeof __propDef.props;
24
+ export type ListboxEvents = typeof __propDef.events;
25
+ export type ListboxSlots = typeof __propDef.slots;
26
26
  export default class Listbox extends SvelteComponentTyped<ListboxProps, ListboxEvents, ListboxSlots> {
27
27
  }
28
28
  export {};
package/Radio.svelte.d.ts CHANGED
@@ -18,9 +18,9 @@ declare const __propDef: {
18
18
  };
19
19
  slots: {};
20
20
  };
21
- export declare type RadioProps = typeof __propDef.props;
22
- export declare type RadioEvents = typeof __propDef.events;
23
- export declare type RadioSlots = typeof __propDef.slots;
21
+ export type RadioProps = typeof __propDef.props;
22
+ export type RadioEvents = typeof __propDef.events;
23
+ export type RadioSlots = typeof __propDef.slots;
24
24
  export default class Radio extends SvelteComponentTyped<RadioProps, RadioEvents, RadioSlots> {
25
25
  }
26
26
  export {};
package/Tab.svelte.d.ts CHANGED
@@ -10,9 +10,9 @@ declare const __propDef: {
10
10
  default: {};
11
11
  };
12
12
  };
13
- export declare type TabProps = typeof __propDef.props;
14
- export declare type TabEvents = typeof __propDef.events;
15
- export declare type TabSlots = typeof __propDef.slots;
13
+ export type TabProps = typeof __propDef.props;
14
+ export type TabEvents = typeof __propDef.events;
15
+ export type TabSlots = typeof __propDef.slots;
16
16
  export default class Tab extends SvelteComponentTyped<TabProps, TabEvents, TabSlots> {
17
17
  }
18
18
  export {};
package/TabStore.d.ts CHANGED
@@ -3,6 +3,7 @@ import type { ElementSize } from '@txstate-mws/svelte-components';
3
3
  import type { IconifyIcon } from '@iconify/svelte';
4
4
  export declare const TAB_CONTEXT: {};
5
5
  export interface TabDef {
6
+ name?: string;
6
7
  title: string;
7
8
  icon?: IconifyIcon;
8
9
  required?: boolean;
@@ -22,6 +23,7 @@ export declare class TabStore extends Store<ITabStore> {
22
23
  constructor(tabs: TabDef[], initialTab?: string | undefined);
23
24
  set(v: ITabStore): void;
24
25
  currentIdx(): import("@txstate-mws/svelte-store").DerivedStore<number, ITabStore>;
26
+ currentName(): import("@txstate-mws/svelte-store").DerivedStore<string, ITabStore>;
25
27
  currentTitle(): import("@txstate-mws/svelte-store").DerivedStore<string, ITabStore>;
26
28
  currentTabId(): import("@txstate-mws/svelte-store").DerivedStore<string, ITabStore>;
27
29
  currentPanelId(): import("@txstate-mws/svelte-store").DerivedStore<string, ITabStore>;
@@ -31,5 +33,6 @@ export declare class TabStore extends Store<ITabStore> {
31
33
  home(): void;
32
34
  end(): void;
33
35
  activate(idx: number): void;
36
+ activateName(name: string): void;
34
37
  }
35
38
  export {};