@dosgato/dialog 0.0.71 → 0.0.72
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<script>import
|
|
1
|
+
<script>import browserIcon from '@iconify-icons/ph/browser';
|
|
2
2
|
import folderIcon from '@iconify-icons/ph/folder';
|
|
3
3
|
import folderNotchOpen from '@iconify-icons/ph/folder-notch-open';
|
|
4
4
|
import { createEventDispatcher, getContext, onMount, setContext } from 'svelte';
|
|
5
|
-
import { isNotBlank, randomid
|
|
5
|
+
import { isNotBlank, randomid } from 'txstate-utils';
|
|
6
6
|
import { Button, Dialog, iconForMime, Tabs, Tree, UploadUI } from '..';
|
|
7
7
|
import { CHOOSER_API_CONTEXT } from './ChooserAPI';
|
|
8
8
|
import { CHOOSER_STORE_CONTEXT, ChooserStore } from './ChooserStore';
|
|
@@ -90,7 +90,7 @@ const previewId = randomid();
|
|
|
90
90
|
<section class="dialog-chooser-chooser">
|
|
91
91
|
{#if $store.initialized}
|
|
92
92
|
<Tree headers={[
|
|
93
|
-
{ label: 'Path', id: 'name', grow: 4, icon: item => ({ icon: item.type === 'asset' ? iconForMime(item.mime) : (item.type === 'folder' ? (item.open ? folderNotchOpen : folderIcon) :
|
|
93
|
+
{ label: 'Path', id: 'name', grow: 4, icon: item => ({ icon: item.type === 'asset' ? iconForMime(item.mime) : (item.type === 'folder' ? (item.open ? folderNotchOpen : folderIcon) : browserIcon) }), get: 'name' }
|
|
94
94
|
]} singleSelect store={treeStore} on:deselect={onDeselect} on:choose={onChoose} />
|
|
95
95
|
{/if}
|
|
96
96
|
</section>
|
package/package.json
CHANGED