@dosgato/dialog 1.3.1 → 1.3.3

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.
@@ -14,7 +14,7 @@ declare const __propDef: {
14
14
  class?: string | undefined;
15
15
  };
16
16
  events: {
17
- click: MouseEvent;
17
+ click: PointerEvent;
18
18
  } & {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
@@ -13,7 +13,7 @@
13
13
  const valueStore = store.getField<string | null>(finalPath)
14
14
 
15
15
  onMount(() => {
16
- if (!$valueStore) store.setField(finalPath, randomid(length))
16
+ if (!$valueStore) store.setField(finalPath, randomid(length), { notDirty: true })
17
17
  })
18
18
  </script>
19
19
 
@@ -35,10 +35,10 @@
35
35
  async function reactToChoices (..._: any[]) {
36
36
  if (!finalDeserialize) return
37
37
  if (!choices.length) {
38
- return await store.setField(finalPath, finalDeserialize(''))
38
+ return await store.setField(finalPath, finalDeserialize(''), { notDirty: true })
39
39
  }
40
40
  const val = get($store.data, finalPath)
41
- if (!choices.some(o => equal(o.value, val))) await store.setField(finalPath, notNull ? defaultValue : finalDeserialize(''))
41
+ if (!choices.some(o => equal(o.value, val))) await store.setField(finalPath, notNull ? defaultValue : finalDeserialize(''), { notDirty: true })
42
42
  }
43
43
  $: reactToChoices(choices).catch(console.error)
44
44
  onMount(reactToChoices)
@@ -38,10 +38,10 @@
38
38
  async function reactToChoices (..._: any[]) {
39
39
  if (!finalDeserialize) return
40
40
  if (!choices.length) {
41
- return await store.setField(finalPath, finalDeserialize(''))
41
+ return await store.setField(finalPath, finalDeserialize(''), { notDirty: true })
42
42
  }
43
43
  const val = get($store.data, finalPath)
44
- if (!choices.some(o => equal(o.value, val))) await store.setField(finalPath, notNull ? defaultValue : finalDeserialize(''))
44
+ if (!choices.some(o => equal(o.value, val))) await store.setField(finalPath, notNull ? defaultValue : finalDeserialize(''), { notDirty: true })
45
45
  }
46
46
  $: reactToChoices(choices).catch(console.error)
47
47
  onMount(reactToChoices)
@@ -18,9 +18,9 @@ declare const __propDef: {
18
18
  };
19
19
  slots: {};
20
20
  };
21
- export type UploadUiProps = typeof __propDef.props;
22
- export type UploadUiEvents = typeof __propDef.events;
23
- export type UploadUiSlots = typeof __propDef.slots;
24
- export default class UploadUi extends SvelteComponentTyped<UploadUiProps, UploadUiEvents, UploadUiSlots> {
21
+ export type UploadUIProps = typeof __propDef.props;
22
+ export type UploadUIEvents = typeof __propDef.events;
23
+ export type UploadUISlots = typeof __propDef.slots;
24
+ export default class UploadUI extends SvelteComponentTyped<UploadUIProps, UploadUIEvents, UploadUISlots> {
25
25
  }
26
26
  export {};
@@ -27,8 +27,8 @@
27
27
  async function reactToOptions (..._: any[]) {
28
28
  const val = get($store.data, finalPath)
29
29
  if (!val) return
30
- if (!options.length) await store.setField(finalPath, addAllOption ? 'alternating' : undefined)
31
- else if (val !== 'alternating' && !options.some(o => o.value === val)) await store.setField(finalPath, notNull ? options[0].value : (addAllOption ? 'alternating' : undefined))
30
+ if (!options.length) await store.setField(finalPath, addAllOption ? 'alternating' : undefined, { notDirty: true })
31
+ else if (val !== 'alternating' && !options.some(o => o.value === val)) await store.setField(finalPath, notNull ? options[0].value : (addAllOption ? 'alternating' : undefined), { notDirty: true })
32
32
  }
33
33
  $: reactToOptions(options).catch(console.error)
34
34
  onMount(reactToOptions)
@@ -67,7 +67,7 @@
67
67
 
68
68
  </script>
69
69
 
70
- <FieldMultiselect {path} {label} {getOptions} {lookupByValue} {conditional} {required} {extradescid} {helptext} {emptyText} {placeholder} {menuClass} {menuContainerClass} {menuItemClass} {menuItemHilitedClass} {menuCategoryClass} selectedItemLabel={showTitleInDialog ? selectedItemLabel : undefined} includeDeleteAll confirmDelete="Are you sure you want remove all tag selections?">
70
+ <FieldMultiselect {path} {label} {getOptions} {lookupByValue} {conditional} {required} {extradescid} {helptext} {emptyText} {placeholder} {menuClass} {menuContainerClass} {menuItemClass} {menuItemHilitedClass} {menuCategoryClass} selectedItemLabel={showTitleInDialog ? selectedItemLabel : undefined} includeDeleteAll confirmDelete="Are you sure you want to remove all tag selections?">
71
71
  <svelte:fragment slot="deleteall"><span class="delete-button-text">Delete All <Icon icon={trashIcon}/></span></svelte:fragment>
72
72
  </FieldMultiselect>
73
73
 
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.3.1",
4
+ "version": "1.3.3",
5
5
  "scripts": {
6
6
  "prepublishOnly": "svelte-package",
7
7
  "dev": "vite dev --force",
@@ -35,12 +35,13 @@
35
35
  "@sveltejs/adapter-auto": "^6.0.0",
36
36
  "@sveltejs/kit": "^2.0.1",
37
37
  "@sveltejs/package": "^2.0.1",
38
- "@sveltejs/vite-plugin-svelte": "^5.0.0",
38
+ "@sveltejs/vite-plugin-svelte": "^6.0.0",
39
39
  "eslint-config-standard-with-typescript": "^43.0.0",
40
40
  "eslint-plugin-svelte": "^3.0.0",
41
41
  "svelte-check": "^4.0.0",
42
42
  "svelte": "^5.0.0",
43
- "typescript": "^5.0.2"
43
+ "typescript": "^5.0.2",
44
+ "vite": "^7.0.0"
44
45
  },
45
46
  "peerDependencies": {
46
47
  "svelte": "^3.53.1 || ^4.0.0 || ^5.0.0"