filepond 5.0.0-beta.2 → 5.0.0-beta.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.
- package/README.md +27 -4
- package/cdn/assets/index.js +1 -1
- package/cdn/dev/index.js +1 -0
- package/cdn/extensions/blob-loader.js +1 -1
- package/cdn/extensions/canvas-loader.js +1 -1
- package/cdn/extensions/chunked-upload-store.js +1 -1
- package/cdn/extensions/clipboard-source.js +1 -1
- package/cdn/extensions/console-view.js +1 -1
- package/cdn/extensions/data-transfer-loader.js +1 -1
- package/cdn/extensions/data-url-store.js +1 -1
- package/cdn/extensions/drag-drop-source.js +1 -1
- package/cdn/extensions/dropbox-source.js +1 -1
- package/cdn/extensions/entry-list-view.js +1 -1
- package/cdn/extensions/file-extension-validator.js +1 -1
- package/cdn/extensions/file-input-source.js +1 -1
- package/cdn/extensions/file-input-store.js +1 -1
- package/cdn/extensions/file-mime-type-validator.js +1 -1
- package/cdn/extensions/file-name-transform.js +1 -1
- package/cdn/extensions/file-name-validator.js +1 -1
- package/cdn/extensions/file-size-validator.js +1 -1
- package/cdn/extensions/form-post-store.js +1 -1
- package/cdn/extensions/image-bitmap-transform.js +1 -0
- package/cdn/extensions/index.js +1 -1
- package/cdn/extensions/list-count-validator.js +1 -1
- package/cdn/extensions/list-size-validator.js +1 -1
- package/cdn/extensions/media-resolution-validator.js +1 -1
- package/cdn/extensions/object-url-store.js +1 -1
- package/cdn/extensions/simulated-loader.js +1 -1
- package/cdn/extensions/simulated-store.js +1 -1
- package/cdn/extensions/text-input-store.js +1 -1
- package/cdn/extensions/url-loader.js +1 -1
- package/cdn/extensions/value-callback-store.js +1 -1
- package/cdn/index.js +1 -7
- package/cdn/locales/ar-ar.js +72 -48
- package/cdn/locales/bn-bd.js +72 -48
- package/cdn/locales/cs-cz.js +83 -59
- package/cdn/locales/da-dk.js +74 -50
- package/cdn/locales/de-de.js +72 -42
- package/cdn/locales/el-gr.js +72 -48
- package/cdn/locales/en-gb.js +85 -62
- package/cdn/locales/es-es.js +69 -39
- package/cdn/locales/fi-fi.js +69 -45
- package/cdn/locales/fr-fr.js +78 -48
- package/cdn/locales/hi-in.js +72 -42
- package/cdn/locales/hu-hu.js +66 -42
- package/cdn/locales/index.js +1 -1
- package/cdn/locales/is-is.js +71 -47
- package/cdn/locales/it-it.js +73 -43
- package/cdn/locales/ja-jp.js +72 -42
- package/cdn/locales/ko-kr.js +72 -42
- package/cdn/locales/nb-no.js +74 -44
- package/cdn/locales/nl-nl.js +71 -48
- package/cdn/locales/pl-pl.js +76 -52
- package/cdn/locales/pt-pt.js +71 -41
- package/cdn/locales/sv-se.js +73 -43
- package/cdn/locales/tr-tr.js +83 -59
- package/cdn/locales/uk-ua.js +72 -48
- package/cdn/locales/vi-vn.js +82 -58
- package/cdn/locales/zh-cn.js +72 -42
- package/cdn/main.js +7 -0
- package/cdn/templates/entry.js +1 -1
- package/cdn/templates/helpers.js +1 -1
- package/cdn/templates/index.js +1 -1
- package/cdn/templates/media.js +1 -1
- package/cdn/workers/httpRequest.js +45 -0
- package/cdn/workers/httpRequestWorker.js +37 -0
- package/cdn/workers/readFile.js +14 -0
- package/cdn/workers/readFileWorker.js +6 -0
- package/cdn/workers/transformImage.js +16 -0
- package/cdn/workers/transformImageWorker.js +8 -0
- package/esm/assets/index.js +1 -1
- package/esm/common/console.js +1 -1
- package/esm/common/entry.js +1 -1
- package/esm/common/perceivedPerformanceProxy.js +1 -1
- package/esm/common/readEntriesFromDataTransfer.js +1 -1
- package/esm/common/ssr.js +1 -1
- package/esm/common/status.js +1 -1
- package/esm/core/entryTree.js +142 -133
- package/esm/core/extensionManager.js +89 -86
- package/esm/core/taskScheduler.js +78 -97
- package/esm/dev/index.js +122 -0
- package/esm/elements/FilePondDefault/index.css.js +2 -2
- package/esm/elements/FilePondDefault/index.js +164 -125
- package/esm/elements/FilePondDropArea/index.css.js +1 -1
- package/esm/elements/FilePondDropArea/index.js +1 -1
- package/esm/elements/FilePondDropArea/index.svelte.js +38 -40
- package/esm/elements/FilePondDropIndicator/index.css.js +1 -1
- package/esm/elements/FilePondDropIndicator/index.js +1 -1
- package/esm/elements/FilePondDropIndicator/index.svelte.js +65 -67
- package/esm/elements/FilePondEntryList/components/Entry/index.css.js +2 -2
- package/esm/elements/FilePondEntryList/components/Entry/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/Entry/index.svelte.js +37 -37
- package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.css.js +2 -2
- package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.js +1 -2
- package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.svelte.js +115 -86
- package/esm/elements/FilePondEntryList/components/EntryList/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryList/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryList/index.svelte.js +159 -154
- package/esm/elements/FilePondEntryList/components/EntryListItem/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryListItem/index.js +1 -2
- package/esm/elements/FilePondEntryList/components/EntryListItem/index.svelte.js +70 -46
- package/esm/elements/FilePondEntryList/components/EntryListItemPlaceholder/index.svelte.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryStatus/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryStatus/index.js +1 -2
- package/esm/elements/FilePondEntryList/components/EntryStatus/index.svelte.js +62 -62
- package/esm/elements/FilePondEntryList/components/MediaImage/components/BitmapRenderer.svelte.js +65 -60
- package/esm/elements/FilePondEntryList/components/MediaImage/components/BitmapRendererCache.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaImage/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaImage/index.js +2 -1
- package/esm/elements/FilePondEntryList/components/MediaImage/index.svelte.js +91 -83
- package/esm/elements/FilePondEntryList/components/MediaPane/index.css.js +2 -2
- package/esm/elements/FilePondEntryList/components/MediaPane/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaPane/index.svelte.js +33 -35
- package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.svelte.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaVideo/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaVideo/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaVideo/index.svelte.js +88 -88
- package/esm/elements/FilePondEntryList/contexts/appContext.js +1 -1
- package/esm/elements/FilePondEntryList/contexts/dragContext.js +1 -1
- package/esm/elements/FilePondEntryList/contexts/dropContext.js +1 -1
- package/esm/elements/FilePondEntryList/contexts/entryContext.js +1 -1
- package/esm/elements/FilePondEntryList/contexts/springElementTreeContext.js +1 -1
- package/esm/elements/FilePondEntryList/index.css.js +2 -2
- package/esm/elements/FilePondEntryList/index.js +11 -14
- package/esm/elements/FilePondEntryList/index.svelte.js +351 -271
- package/esm/elements/FilePondInput/index.css.js +3 -3
- package/esm/elements/FilePondInput/index.js +252 -191
- package/esm/elements/FilePondSvelteComponent/index.svelte.js +11 -11
- package/esm/elements/attachments/dragarea.js +62 -63
- package/esm/elements/attachments/droparea.js +1 -1
- package/esm/elements/attachments/measurable.js +1 -1
- package/esm/elements/attachments/resizable.js +1 -1
- package/esm/elements/attachments/transitions.js +1 -1
- package/esm/elements/common/animationGuard.js +1 -1
- package/esm/elements/common/animationPreference.svelte.js +35 -41
- package/esm/elements/common/dragDrop.js +1 -1
- package/esm/elements/common/event.js +1 -1
- package/esm/elements/common/extendStyles.js +1 -1
- package/esm/elements/common/getClosestElement.js +1 -1
- package/esm/elements/common/html.js +4 -4
- package/esm/elements/common/nodeTree.js +9 -9
- package/esm/elements/common/store.svelte.js +1 -1
- package/esm/elements/common/string.js +75 -55
- package/esm/elements/common/transition.js +1 -1
- package/esm/elements/components/BooleanInput/index.css.js +1 -1
- package/esm/elements/components/BooleanInput/index.js +1 -1
- package/esm/elements/components/BooleanInput/index.svelte.js +31 -33
- package/esm/elements/components/Button/index.css.js +2 -2
- package/esm/elements/components/Button/index.js +1 -1
- package/esm/elements/components/Button/index.svelte.js +49 -49
- package/esm/elements/components/ElementPane/index.css.js +1 -1
- package/esm/elements/components/ElementPane/index.js +1 -1
- package/esm/elements/components/ElementPane/index.svelte.js +1 -1
- package/esm/elements/components/ElementSkeleton/index.css.js +1 -1
- package/esm/elements/components/ElementSkeleton/index.js +1 -1
- package/esm/elements/components/ElementSkeleton/index.svelte.js +1 -1
- package/esm/elements/components/FilenameInput/index.css.js +2 -2
- package/esm/elements/components/FilenameInput/index.js +1 -1
- package/esm/elements/components/FilenameInput/index.svelte.js +1 -1
- package/esm/elements/components/NodeList/index.svelte.js +174 -200
- package/esm/elements/components/ProgressIndicator/index.css.js +2 -2
- package/esm/elements/components/ProgressIndicator/index.js +1 -1
- package/esm/elements/components/ProgressIndicator/index.svelte.js +98 -124
- package/esm/elements/components/RangeInput/index.css.js +2 -2
- package/esm/elements/components/RangeInput/index.js +1 -1
- package/esm/elements/components/RangeInput/index.svelte.js +86 -85
- package/esm/elements/components/SpringElement/index.svelte.js +91 -90
- package/esm/elements/components/TextInput/index.css.js +1 -1
- package/esm/elements/components/TextInput/index.js +1 -1
- package/esm/elements/components/TextInput/index.svelte.js +25 -27
- package/esm/extensions/blob-loader.js +1 -1
- package/esm/extensions/canvas-loader.js +1 -1
- package/esm/extensions/chunked-upload-store.js +1 -1
- package/esm/extensions/clipboard-source.js +1 -1
- package/esm/extensions/common/createExtension.js +38 -37
- package/esm/extensions/common/createStoreExtension.js +1 -1
- package/esm/extensions/common/createTransformExtension.js +1 -1
- package/esm/extensions/common/createValidatorExtension.js +1 -1
- package/esm/extensions/console-view.js +36 -33
- package/esm/extensions/data-transfer-loader.js +1 -1
- package/esm/extensions/data-url-store.js +24 -19
- package/esm/extensions/drag-drop-source.js +1 -1
- package/esm/extensions/dropbox-source.js +1 -1
- package/esm/extensions/entry-list-view.js +35 -29
- package/esm/extensions/file-extension-validator.js +1 -1
- package/esm/extensions/file-input-source.js +1 -1
- package/esm/extensions/file-input-store.js +1 -1
- package/esm/extensions/file-mime-type-validator.js +21 -17
- package/esm/extensions/file-name-transform.js +1 -1
- package/esm/extensions/file-name-validator.js +1 -1
- package/esm/extensions/file-size-validator.js +33 -22
- package/esm/extensions/form-post-store.js +1 -1
- package/esm/extensions/image-bitmap-transform.js +109 -0
- package/esm/extensions/index.js +23 -21
- package/esm/extensions/list-count-validator.js +21 -21
- package/esm/extensions/list-size-validator.js +42 -31
- package/esm/extensions/media-resolution-validator.js +57 -47
- package/esm/extensions/object-url-store.js +1 -1
- package/esm/extensions/simulated-loader.js +74 -65
- package/esm/extensions/simulated-store.js +1 -1
- package/esm/extensions/text-input-store.js +1 -1
- package/esm/extensions/url-loader.js +74 -71
- package/esm/extensions/value-callback-store.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locales/ar-ar.js +72 -48
- package/esm/locales/bn-bd.js +72 -48
- package/esm/locales/cs-cz.js +83 -59
- package/esm/locales/da-dk.js +74 -50
- package/esm/locales/de-de.js +72 -42
- package/esm/locales/el-gr.js +72 -48
- package/esm/locales/en-gb.js +85 -62
- package/esm/locales/es-es.js +69 -39
- package/esm/locales/fi-fi.js +69 -45
- package/esm/locales/fr-fr.js +78 -48
- package/esm/locales/hi-in.js +72 -42
- package/esm/locales/hu-hu.js +66 -42
- package/esm/locales/index.js +1 -1
- package/esm/locales/is-is.js +71 -47
- package/esm/locales/it-it.js +73 -43
- package/esm/locales/ja-jp.js +72 -42
- package/esm/locales/ko-kr.js +72 -42
- package/esm/locales/nb-no.js +74 -44
- package/esm/locales/nl-nl.js +71 -48
- package/esm/locales/pl-pl.js +76 -52
- package/esm/locales/pt-pt.js +71 -41
- package/esm/locales/sv-se.js +73 -43
- package/esm/locales/tr-tr.js +83 -59
- package/esm/locales/uk-ua.js +72 -48
- package/esm/locales/vi-vn.js +82 -58
- package/esm/locales/zh-cn.js +72 -42
- package/esm/svelte/svelte/src/constants.js +13 -12
- package/esm/svelte/svelte/src/internal/client/constants.js +29 -24
- package/esm/svelte/svelte/src/internal/client/context.js +33 -28
- package/esm/svelte/svelte/src/internal/client/dom/blocks/boundary.js +185 -126
- package/esm/svelte/svelte/src/internal/client/dom/blocks/branches.js +42 -43
- package/esm/svelte/svelte/src/internal/client/dom/blocks/each.js +175 -150
- package/esm/svelte/svelte/src/internal/client/dom/blocks/html.js +55 -32
- package/esm/svelte/svelte/src/internal/client/dom/blocks/if.js +12 -12
- package/esm/svelte/svelte/src/internal/client/dom/blocks/svelte-element.js +17 -17
- package/esm/svelte/svelte/src/internal/client/dom/elements/attributes.js +111 -113
- package/esm/svelte/svelte/src/internal/client/dom/elements/bindings/this.js +29 -16
- package/esm/svelte/svelte/src/internal/client/dom/elements/events.js +65 -60
- package/esm/svelte/svelte/src/internal/client/dom/elements/transitions.js +54 -54
- package/esm/svelte/svelte/src/internal/client/dom/operations.js +30 -22
- package/esm/svelte/svelte/src/internal/client/dom/reconciler.js +19 -4
- package/esm/svelte/svelte/src/internal/client/error-handling.js +17 -17
- package/esm/svelte/svelte/src/internal/client/errors.js +24 -20
- package/esm/svelte/svelte/src/internal/client/proxy.js +1 -1
- package/esm/svelte/svelte/src/internal/client/reactivity/async.js +60 -40
- package/esm/svelte/svelte/src/internal/client/reactivity/batch.js +273 -236
- package/esm/svelte/svelte/src/internal/client/reactivity/deriveds.js +110 -84
- package/esm/svelte/svelte/src/internal/client/reactivity/effects.js +160 -157
- package/esm/svelte/svelte/src/internal/client/reactivity/props.js +2 -1
- package/esm/svelte/svelte/src/internal/client/reactivity/sources.js +69 -70
- package/esm/svelte/svelte/src/internal/client/reactivity/status.js +12 -0
- package/esm/svelte/svelte/src/internal/client/reactivity/utils.js +16 -0
- package/esm/svelte/svelte/src/internal/client/render.js +68 -64
- package/esm/svelte/svelte/src/internal/client/runtime.js +174 -170
- package/esm/svelte/svelte/src/internal/shared/attributes.js +32 -32
- package/esm/svelte/svelte/src/internal/shared/utils.js +16 -15
- package/esm/svelte/svelte/src/motion/spring.js +7 -7
- package/esm/svelte/svelte/src/reactivity/map.js +17 -21
- package/esm/templates/entry.js +194 -159
- package/esm/templates/helpers.js +85 -75
- package/esm/templates/index.js +1 -1
- package/esm/templates/media.js +163 -131
- package/esm/utils/array.js +1 -1
- package/esm/utils/bounds.js +1 -1
- package/esm/utils/cache.js +1 -1
- package/esm/utils/canvasToBlob.js +1 -1
- package/esm/utils/date.js +1 -1
- package/esm/utils/debounce.js +1 -1
- package/esm/utils/dom.js +84 -74
- package/esm/utils/file.js +82 -69
- package/esm/utils/functionToBlob.js +1 -1
- package/esm/utils/keyboard.js +34 -0
- package/esm/utils/math.js +14 -7
- package/esm/utils/media.js +1 -1
- package/esm/utils/number.js +11 -16
- package/esm/utils/object.js +1 -1
- package/esm/utils/objectURL.js +1 -1
- package/esm/utils/placeholder.js +1 -1
- package/esm/utils/poly.js +1 -1
- package/esm/utils/pubsub.js +1 -1
- package/esm/utils/rect.js +39 -30
- package/esm/utils/size.js +1 -1
- package/esm/utils/sleep.js +1 -1
- package/esm/utils/string.js +25 -21
- package/esm/utils/support.js +5 -6
- package/esm/utils/test.js +1 -1
- package/esm/utils/thread.js +50 -43
- package/esm/utils/tree.js +1 -1
- package/esm/utils/url.js +2 -2
- package/esm/utils/vector.js +1 -1
- package/esm/utils/window.js +1 -1
- package/esm/utils/xhr.js +88 -113
- package/esm/workers/httpRequest.js +45 -0
- package/esm/workers/httpRequestWorker.js +37 -0
- package/esm/workers/readFile.js +14 -0
- package/esm/workers/readFileWorker.js +6 -0
- package/esm/workers/transformImage.js +16 -0
- package/esm/workers/transformImageWorker.js +8 -0
- package/package.json +17 -12
- package/types/core/entryTree.d.ts +6 -2
- package/types/core/extensionManager.d.ts +16 -2
- package/types/core/taskScheduler.d.ts +2 -2
- package/types/dev/index.d.ts +11 -3
- package/types/elements/FilePondDefault/index.d.ts +15 -5
- package/types/elements/FilePondEntryList/components/MediaImage/index.d.ts +1 -1
- package/types/elements/FilePondEntryList/components/MediaVideo/index.d.ts +1 -1
- package/types/elements/FilePondEntryList/contexts/appContext.d.ts +1 -0
- package/types/elements/FilePondEntryList/contexts/entryContext.d.ts +1 -0
- package/types/elements/FilePondEntryList/index.d.ts +10 -11
- package/types/elements/FilePondInput/index.d.ts +22 -11
- package/types/elements/common/animationPreference.svelte.d.ts +6 -3
- package/types/elements/common/nodeTree.d.ts +1 -1
- package/types/elements/common/string.d.ts +1 -1
- package/types/extensions/common/createTransformExtension.d.ts +1 -1
- package/types/extensions/data-url-store.d.ts +2 -0
- package/types/extensions/file-name-transform.d.ts +1 -1
- package/types/extensions/file-size-validator.d.ts +2 -0
- package/types/extensions/image-bitmap-transform.d.ts +32 -0
- package/types/extensions/index.d.ts +1 -0
- package/types/extensions/list-size-validator.d.ts +2 -0
- package/types/extensions/simulated-loader.d.ts +2 -0
- package/types/extensions/simulated-store.d.ts +1 -1
- package/types/extensions/url-loader.d.ts +2 -0
- package/types/locales/ar-ar.d.ts +101 -76
- package/types/locales/bn-bd.d.ts +101 -76
- package/types/locales/cs-cz.d.ts +101 -76
- package/types/locales/da-dk.d.ts +101 -76
- package/types/locales/de-de.d.ts +101 -76
- package/types/locales/el-gr.d.ts +101 -76
- package/types/locales/en-gb.d.ts +102 -82
- package/types/locales/es-es.d.ts +101 -76
- package/types/locales/fi-fi.d.ts +101 -76
- package/types/locales/fr-fr.d.ts +101 -76
- package/types/locales/hi-in.d.ts +101 -76
- package/types/locales/hu-hu.d.ts +101 -76
- package/types/locales/is-is.d.ts +101 -76
- package/types/locales/it-it.d.ts +101 -76
- package/types/locales/ja-jp.d.ts +101 -76
- package/types/locales/ko-kr.d.ts +101 -76
- package/types/locales/nb-no.d.ts +101 -76
- package/types/locales/nl-nl.d.ts +101 -76
- package/types/locales/pl-pl.d.ts +101 -76
- package/types/locales/pt-pt.d.ts +101 -76
- package/types/locales/sv-se.d.ts +101 -76
- package/types/locales/tr-tr.d.ts +101 -76
- package/types/locales/uk-ua.d.ts +101 -76
- package/types/locales/vi-vn.d.ts +101 -76
- package/types/locales/zh-cn.d.ts +101 -76
- package/types/templates/entry.d.ts +15 -16
- package/types/templates/helpers.d.ts +5 -1
- package/types/templates/media.d.ts +43 -6
- package/types/types/index.d.ts +9 -15
- package/types/utils/file.d.ts +7 -15
- package/types/utils/keyboard.d.ts +5 -0
- package/types/utils/rect.d.ts +5 -0
- package/types/utils/string.d.ts +1 -0
- package/types/utils/thread.d.ts +6 -0
- package/types/utils/xhr.d.ts +1 -0
- package/types/workers/httpRequest.d.ts +23 -0
- package/types/workers/readFile.d.ts +9 -0
- package/types/workers/transformImage.d.ts +6 -0
- package/types/elements/FilePondEntryList/components/EntryContext/index.d.ts +0 -1
package/esm/templates/entry.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* FilePond v5.0.0-beta.
|
|
2
|
+
* FilePond v5.0.0-beta.21
|
|
3
3
|
* Copyright (c) 2017-2026 Pqina B.V.
|
|
4
4
|
* Released under the MIT License
|
|
5
5
|
* https://filepond.com
|
|
6
6
|
*/
|
|
7
|
-
import { nodeTree as
|
|
8
|
-
import { isDataTransferEntry as
|
|
9
|
-
import { bytesToNaturalFileSize as
|
|
10
|
-
import { fade as
|
|
11
|
-
import { quadInOut as
|
|
12
|
-
import { hasExtensionWithStatusCode as s, getExtensionStatusWithCode as
|
|
13
|
-
import { cache as
|
|
7
|
+
import { nodeTree as y } from "../elements/common/nodeTree.js";
|
|
8
|
+
import { isDataTransferEntry as p, isFileEntry as _, isString as b, isNumber as g } from "../utils/test.js";
|
|
9
|
+
import { bytesToNaturalFileSize as U } from "../utils/file.js";
|
|
10
|
+
import { fade as A } from "../elements/common/transition.js";
|
|
11
|
+
import { quadInOut as D } from "../svelte/svelte/src/easing/index.js";
|
|
12
|
+
import { hasExtensionWithStatusCode as s, getExtensionStatusWithCode as S, createButton as i, hasExtensionWithAction as L } from "./helpers.js";
|
|
13
|
+
import { cache as B } from "../utils/cache.js";
|
|
14
14
|
import "../elements/components/BooleanInput/index.js";
|
|
15
15
|
import "../elements/components/ElementSkeleton/index.js";
|
|
16
16
|
import "../elements/components/FilenameInput/index.js";
|
|
17
|
-
import
|
|
17
|
+
import f from "../elements/components/SpringElement/index.svelte.js";
|
|
18
18
|
import "../elements/FilePondEntryList/components/EntryActivityIndicator/index.js";
|
|
19
19
|
import "../elements/FilePondEntryList/components/EntryStatus/index.js";
|
|
20
20
|
import "../elements/FilePondEntryList/components/EntryList/index.js";
|
|
21
21
|
import "../elements/FilePondEntryList/components/EntryListItem/index.js";
|
|
22
22
|
import "../elements/FilePondEntryList/components/Entry/index.js";
|
|
23
|
-
import
|
|
24
|
-
import { toSpaceSeparatedString as
|
|
25
|
-
import
|
|
23
|
+
import Y from "../elements/FilePondEntryList/components/EntryListItemPlaceholder/index.svelte.js";
|
|
24
|
+
import { toSpaceSeparatedString as l } from "../elements/common/string.js";
|
|
25
|
+
import $ from "../elements/FilePondEntryList/components/EntryListItem/index.svelte.js";
|
|
26
26
|
import F from "../elements/FilePondEntryList/components/EntryList/index.svelte.js";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
function
|
|
27
|
+
import v from "../elements/FilePondEntryList/components/Entry/index.svelte.js";
|
|
28
|
+
import P from "../elements/FilePondEntryList/components/EntryStatus/index.svelte.js";
|
|
29
|
+
import E from "../elements/components/ElementSkeleton/index.svelte.js";
|
|
30
|
+
import R from "../elements/FilePondEntryList/components/EntryActivityIndicator/index.svelte.js";
|
|
31
|
+
import M from "../elements/components/BooleanInput/index.svelte.js";
|
|
32
|
+
import C from "../elements/components/FilenameInput/index.svelte.js";
|
|
33
|
+
function Ot() {
|
|
34
34
|
return [
|
|
35
35
|
{
|
|
36
36
|
key: "entry-list",
|
|
@@ -43,7 +43,7 @@ function bt(e) {
|
|
|
43
43
|
if: {
|
|
44
44
|
test: ({ isPlaceholder: t }) => t,
|
|
45
45
|
then: {
|
|
46
|
-
component:
|
|
46
|
+
component: Y,
|
|
47
47
|
props: ({ onmeasureitem: t }) => ({
|
|
48
48
|
part: "entry-list-item-placeholder",
|
|
49
49
|
onmeasureitem: t
|
|
@@ -52,20 +52,21 @@ function bt(e) {
|
|
|
52
52
|
},
|
|
53
53
|
else: {
|
|
54
54
|
key: "entry-list-item",
|
|
55
|
-
component:
|
|
55
|
+
component: $,
|
|
56
56
|
props: ({
|
|
57
57
|
entry: t,
|
|
58
|
+
ariaId: e,
|
|
58
59
|
spring: r,
|
|
59
60
|
isDetached: n,
|
|
60
61
|
isRemoving: o,
|
|
61
62
|
isDraggable: a,
|
|
62
63
|
isDragging: c,
|
|
63
|
-
isLastDraggedItem:
|
|
64
|
-
translation:
|
|
65
|
-
springAnimation:
|
|
66
|
-
onmeasureitem:
|
|
64
|
+
isLastDraggedItem: O,
|
|
65
|
+
translation: T,
|
|
66
|
+
springAnimation: h,
|
|
67
|
+
onmeasureitem: k
|
|
67
68
|
}) => ({
|
|
68
|
-
part:
|
|
69
|
+
part: p(t) ? "entry-list-item data-transfer-item" : "entry-list-item file-item",
|
|
69
70
|
class: "entry-list-item",
|
|
70
71
|
entry: t,
|
|
71
72
|
spring: r,
|
|
@@ -73,54 +74,59 @@ function bt(e) {
|
|
|
73
74
|
isRemoving: o,
|
|
74
75
|
isDraggable: a,
|
|
75
76
|
isDragging: c,
|
|
76
|
-
isLastDraggedItem:
|
|
77
|
-
springAnimation:
|
|
78
|
-
translation:
|
|
79
|
-
onmeasureitem:
|
|
77
|
+
isLastDraggedItem: O,
|
|
78
|
+
springAnimation: h,
|
|
79
|
+
translation: T,
|
|
80
|
+
onmeasureitem: k,
|
|
81
|
+
ariaDescribedby: l(
|
|
82
|
+
`${e}-status`,
|
|
83
|
+
`${e}-store-info`
|
|
84
|
+
)
|
|
80
85
|
}),
|
|
81
|
-
children:
|
|
86
|
+
children: x()
|
|
82
87
|
}
|
|
83
88
|
}
|
|
84
89
|
}
|
|
85
90
|
];
|
|
86
91
|
}
|
|
87
|
-
function
|
|
92
|
+
function x() {
|
|
88
93
|
return {
|
|
89
94
|
key: "entry",
|
|
90
|
-
component:
|
|
91
|
-
props: ({ entry: t }) => ({
|
|
92
|
-
|
|
95
|
+
component: v,
|
|
96
|
+
props: ({ entry: t, ariaId: e }) => ({
|
|
97
|
+
nameId: `${e}-name`,
|
|
98
|
+
part: p(t) ? "entry entry-data-transfer" : "entry"
|
|
93
99
|
}),
|
|
94
100
|
children: [
|
|
95
|
-
|
|
101
|
+
q(),
|
|
96
102
|
{
|
|
97
103
|
if: {
|
|
98
|
-
test: ({ entry: t }) =>
|
|
99
|
-
then:
|
|
104
|
+
test: ({ entry: t }) => p(t),
|
|
105
|
+
then: I()
|
|
100
106
|
},
|
|
101
107
|
elseif: {
|
|
102
|
-
test: ({ entry: t }) =>
|
|
103
|
-
then:
|
|
108
|
+
test: ({ entry: t }) => _(t),
|
|
109
|
+
then: z()
|
|
104
110
|
}
|
|
105
111
|
},
|
|
106
112
|
Z(),
|
|
107
|
-
|
|
113
|
+
N()
|
|
108
114
|
]
|
|
109
115
|
};
|
|
110
116
|
}
|
|
111
|
-
function
|
|
117
|
+
function u(t, e, { main: r, sub: n }) {
|
|
112
118
|
return {
|
|
113
119
|
if: {
|
|
114
|
-
test: ({ entry: o }) => s(o,
|
|
120
|
+
test: ({ entry: o }) => s(o, e),
|
|
115
121
|
then: {
|
|
116
|
-
key:
|
|
122
|
+
key: t,
|
|
117
123
|
tag: "element-stack",
|
|
118
124
|
attrs: {
|
|
119
125
|
layout: "col"
|
|
120
126
|
},
|
|
121
127
|
children: [
|
|
122
|
-
|
|
123
|
-
key: `${
|
|
128
|
+
b(r) ? {
|
|
129
|
+
key: `${t}-main`,
|
|
124
130
|
tag: "div",
|
|
125
131
|
attrs: {
|
|
126
132
|
class: "entry-info-main"
|
|
@@ -128,7 +134,7 @@ function l(e, t, { main: r, sub: n }) {
|
|
|
128
134
|
children: r
|
|
129
135
|
} : r,
|
|
130
136
|
{
|
|
131
|
-
key: `${
|
|
137
|
+
key: `${t}-sub`,
|
|
132
138
|
tag: "div",
|
|
133
139
|
attrs: {
|
|
134
140
|
class: "entry-info-sub"
|
|
@@ -140,10 +146,10 @@ function l(e, t, { main: r, sub: n }) {
|
|
|
140
146
|
}
|
|
141
147
|
};
|
|
142
148
|
}
|
|
143
|
-
function
|
|
149
|
+
function z() {
|
|
144
150
|
return {
|
|
145
151
|
key: "entry-info",
|
|
146
|
-
component:
|
|
152
|
+
component: f,
|
|
147
153
|
props: {
|
|
148
154
|
class: "entry-info",
|
|
149
155
|
part: "entry-info",
|
|
@@ -152,13 +158,13 @@ function x() {
|
|
|
152
158
|
layout: "split"
|
|
153
159
|
}
|
|
154
160
|
},
|
|
155
|
-
children: [
|
|
161
|
+
children: [Q(), W()]
|
|
156
162
|
};
|
|
157
163
|
}
|
|
158
|
-
function
|
|
164
|
+
function I() {
|
|
159
165
|
return {
|
|
160
166
|
key: "data-transfer-info",
|
|
161
|
-
component:
|
|
167
|
+
component: f,
|
|
162
168
|
props: {
|
|
163
169
|
class: "entry-info",
|
|
164
170
|
part: "entry-info data-transfer-info",
|
|
@@ -167,11 +173,11 @@ function N() {
|
|
|
167
173
|
layout: "col"
|
|
168
174
|
}
|
|
169
175
|
},
|
|
170
|
-
context: ({ entry:
|
|
171
|
-
const
|
|
176
|
+
context: ({ entry: t }) => {
|
|
177
|
+
const e = S(t, "LOAD_BUSY");
|
|
172
178
|
return {
|
|
173
|
-
processedFiles:
|
|
174
|
-
totalFiles:
|
|
179
|
+
processedFiles: e?.values?.processed,
|
|
180
|
+
totalFiles: e?.values?.total
|
|
175
181
|
};
|
|
176
182
|
},
|
|
177
183
|
children: [
|
|
@@ -194,68 +200,74 @@ function N() {
|
|
|
194
200
|
]
|
|
195
201
|
};
|
|
196
202
|
}
|
|
197
|
-
function
|
|
203
|
+
function N() {
|
|
198
204
|
return {
|
|
199
205
|
key: "entry-status",
|
|
200
|
-
component:
|
|
201
|
-
props: {
|
|
206
|
+
component: P,
|
|
207
|
+
props: ({ ariaId: t }) => ({
|
|
202
208
|
part: "entry-status",
|
|
203
|
-
class: "entry-status"
|
|
204
|
-
|
|
209
|
+
class: "entry-status",
|
|
210
|
+
id: `${t}-status`
|
|
211
|
+
})
|
|
205
212
|
};
|
|
206
213
|
}
|
|
207
|
-
function
|
|
214
|
+
function Q() {
|
|
208
215
|
return {
|
|
209
216
|
key: "file-info",
|
|
210
217
|
tag: "element-stack",
|
|
211
218
|
attrs: {
|
|
212
219
|
layout: "col"
|
|
213
220
|
},
|
|
214
|
-
context: ({ entry:
|
|
215
|
-
const
|
|
221
|
+
context: ({ entry: t }) => {
|
|
222
|
+
const e = s(t, [
|
|
216
223
|
"LOAD_QUEUED",
|
|
217
224
|
"LOAD_BUSY",
|
|
218
225
|
"RESTORE_BUSY"
|
|
219
|
-
]), r = s(
|
|
226
|
+
]), r = s(t, ["LOAD_ERROR", "RESTORE_ERROR"]);
|
|
220
227
|
return {
|
|
221
|
-
isWaiting:
|
|
228
|
+
isWaiting: e,
|
|
222
229
|
isFrozen: r
|
|
223
230
|
};
|
|
224
231
|
},
|
|
225
232
|
children: [
|
|
226
233
|
{
|
|
227
234
|
key: "file-info-main",
|
|
228
|
-
component:
|
|
229
|
-
props: ({ isWaiting:
|
|
235
|
+
component: E,
|
|
236
|
+
props: ({ isWaiting: t, isFrozen: e }) => ({
|
|
230
237
|
class: "entry-info-main",
|
|
231
|
-
isWaiting:
|
|
232
|
-
isFrozen:
|
|
238
|
+
isWaiting: t,
|
|
239
|
+
isFrozen: e
|
|
233
240
|
}),
|
|
234
241
|
children: "{{entry.name}}"
|
|
235
242
|
},
|
|
236
243
|
{
|
|
237
244
|
key: "file-info-sub",
|
|
238
|
-
component:
|
|
239
|
-
props: ({ isWaiting:
|
|
245
|
+
component: E,
|
|
246
|
+
props: ({ isWaiting: t, isFrozen: e }) => ({
|
|
240
247
|
class: "entry-info-sub",
|
|
241
|
-
isWaiting:
|
|
242
|
-
isFrozen:
|
|
248
|
+
isWaiting: t,
|
|
249
|
+
isFrozen: e
|
|
243
250
|
}),
|
|
244
|
-
context: ({ entry: e }) =>
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
+
context: ({ entry: t, byteUnits: e }) => {
|
|
252
|
+
const r = g(t.size) ? B(U, [t.size, { byteUnits: e }]) : null, [n, o] = r === null ? [] : r.split(" ");
|
|
253
|
+
return {
|
|
254
|
+
size: n,
|
|
255
|
+
sizeUnit: `unit${o}`
|
|
256
|
+
};
|
|
257
|
+
},
|
|
258
|
+
children: "{{size}} {{sizeUnit}}"
|
|
251
259
|
}
|
|
252
260
|
]
|
|
253
261
|
};
|
|
254
262
|
}
|
|
255
|
-
|
|
263
|
+
const m = ({ ariaId: t }) => ({
|
|
264
|
+
id: `${t}-store-info`,
|
|
265
|
+
class: "entry-info-main"
|
|
266
|
+
});
|
|
267
|
+
function W() {
|
|
256
268
|
return {
|
|
257
269
|
key: "file-store-spring",
|
|
258
|
-
component:
|
|
270
|
+
component: f,
|
|
259
271
|
props: {
|
|
260
272
|
subtag: "element-stack",
|
|
261
273
|
subattrs: {
|
|
@@ -263,34 +275,36 @@ function $() {
|
|
|
263
275
|
}
|
|
264
276
|
},
|
|
265
277
|
transition: {
|
|
266
|
-
fn:
|
|
278
|
+
fn: A,
|
|
267
279
|
duration: 150,
|
|
268
|
-
easing:
|
|
269
|
-
when: ({ entry:
|
|
280
|
+
easing: D,
|
|
281
|
+
when: ({ entry: t }) => s(t, [
|
|
270
282
|
"STORE_QUEUED",
|
|
271
283
|
"STORE_BUSY",
|
|
272
284
|
"STORE_COMPLETE"
|
|
273
285
|
])
|
|
274
286
|
},
|
|
275
287
|
children: [
|
|
276
|
-
|
|
277
|
-
main:
|
|
288
|
+
u("file-store-queued-info", ["STORE_QUEUED"], {
|
|
289
|
+
main: {
|
|
290
|
+
key: "file-store-queued-info-main",
|
|
291
|
+
tag: "div",
|
|
292
|
+
attrs: m,
|
|
293
|
+
children: "storeStorageQueued"
|
|
294
|
+
},
|
|
278
295
|
sub: "assistAbort"
|
|
279
296
|
}),
|
|
280
|
-
|
|
297
|
+
u("file-store-busy-info", ["STORE_BUSY"], {
|
|
281
298
|
sub: "assistAbort",
|
|
282
299
|
main: {
|
|
283
300
|
key: "file-store-busy-info-main",
|
|
284
301
|
tag: "div",
|
|
285
|
-
attrs:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
spring: ({ entry: e }) => {
|
|
289
|
-
const { progress: t } = y(e, "STORE_BUSY") ?? {};
|
|
302
|
+
attrs: m,
|
|
303
|
+
spring: ({ entry: t }) => {
|
|
304
|
+
const { progress: e } = S(t, "STORE_BUSY") ?? {};
|
|
290
305
|
return {
|
|
291
306
|
progress: {
|
|
292
|
-
|
|
293
|
-
value: t === 1 / 0 ? 0 : t,
|
|
307
|
+
value: e === 1 / 0 ? 0 : e,
|
|
294
308
|
transform: (r) => Math.round(r * 100)
|
|
295
309
|
}
|
|
296
310
|
};
|
|
@@ -298,18 +312,23 @@ function $() {
|
|
|
298
312
|
children: "storeStorageProgress"
|
|
299
313
|
}
|
|
300
314
|
}),
|
|
301
|
-
|
|
302
|
-
main:
|
|
315
|
+
u("file-store-complete-info", ["STORE_COMPLETE"], {
|
|
316
|
+
main: {
|
|
317
|
+
key: "file-store-complete-info-main",
|
|
318
|
+
tag: "div",
|
|
319
|
+
attrs: m,
|
|
320
|
+
children: "storeStorageComplete"
|
|
321
|
+
},
|
|
303
322
|
sub: "assistUndo"
|
|
304
323
|
})
|
|
305
324
|
]
|
|
306
325
|
};
|
|
307
326
|
}
|
|
308
|
-
function
|
|
327
|
+
function q() {
|
|
309
328
|
return {
|
|
310
329
|
key: "entry-load-state",
|
|
311
|
-
component:
|
|
312
|
-
props: ({ id: e, entry:
|
|
330
|
+
component: R,
|
|
331
|
+
props: ({ id: t, ariaId: e, entry: r }, { updateEntryState: n, removeEntries: o }) => ({
|
|
313
332
|
class: "entry-load-state",
|
|
314
333
|
part: "entry-load-state",
|
|
315
334
|
buttonPart: "entry-button",
|
|
@@ -320,8 +339,9 @@ function W() {
|
|
|
320
339
|
button: i("button-load-abort", {
|
|
321
340
|
title: "abort",
|
|
322
341
|
icon: "remove",
|
|
323
|
-
disabled: s(
|
|
324
|
-
onclick: () =>
|
|
342
|
+
disabled: s(r, ["TRANSFORM_BUSY"]),
|
|
343
|
+
onclick: () => n(t, { abort: !0 }),
|
|
344
|
+
ariaDescribedby: `${e}-name`
|
|
325
345
|
})
|
|
326
346
|
},
|
|
327
347
|
{
|
|
@@ -335,8 +355,12 @@ function W() {
|
|
|
335
355
|
],
|
|
336
356
|
button: i("button-entry-remove", {
|
|
337
357
|
icon: "remove",
|
|
338
|
-
disabled: s(
|
|
339
|
-
onclick: () =>
|
|
358
|
+
disabled: s(r, ["TRANSFORM_BUSY"]),
|
|
359
|
+
onclick: () => o(t),
|
|
360
|
+
ariaDescribedby: l(
|
|
361
|
+
`${e}-name`,
|
|
362
|
+
`${e}-status`
|
|
363
|
+
)
|
|
340
364
|
})
|
|
341
365
|
}
|
|
342
366
|
]
|
|
@@ -346,8 +370,8 @@ function W() {
|
|
|
346
370
|
function Z() {
|
|
347
371
|
return {
|
|
348
372
|
key: "entry-store-state",
|
|
349
|
-
component:
|
|
350
|
-
props: ({ id: e, entry:
|
|
373
|
+
component: R,
|
|
374
|
+
props: ({ id: t, ariaId: e, entry: r }, { updateEntryState: n }) => ({
|
|
351
375
|
class: "entry-store-state",
|
|
352
376
|
part: "entry-store-state",
|
|
353
377
|
buttonPart: "entry-button",
|
|
@@ -362,15 +386,16 @@ function Z() {
|
|
|
362
386
|
],
|
|
363
387
|
button: i("button-store-idle", {
|
|
364
388
|
icon: "store",
|
|
365
|
-
disabled: s(
|
|
366
|
-
styles:
|
|
389
|
+
disabled: s(r, ["TRANSFORM_BUSY"]),
|
|
390
|
+
styles: d({
|
|
367
391
|
intro: "translateY(0.125em)",
|
|
368
392
|
idle: "translateY(0)",
|
|
369
393
|
outro: "translateY(-0.125em)"
|
|
370
394
|
}),
|
|
371
|
-
onclick: () =>
|
|
395
|
+
onclick: () => n(t, {
|
|
372
396
|
store: !0
|
|
373
|
-
})
|
|
397
|
+
}),
|
|
398
|
+
ariaDescribedby: `${e}-name`
|
|
374
399
|
})
|
|
375
400
|
},
|
|
376
401
|
{
|
|
@@ -378,10 +403,14 @@ function Z() {
|
|
|
378
403
|
progress: !0,
|
|
379
404
|
button: i("button-store-busy", {
|
|
380
405
|
icon: "abort",
|
|
381
|
-
disabled: s(
|
|
382
|
-
onclick: () =>
|
|
406
|
+
disabled: s(r, ["TRANSFORM_BUSY"]),
|
|
407
|
+
onclick: () => n(t, {
|
|
383
408
|
abort: !0
|
|
384
|
-
})
|
|
409
|
+
}),
|
|
410
|
+
ariaDescribedby: l(
|
|
411
|
+
`${e}-name`,
|
|
412
|
+
`${e}-store-info`
|
|
413
|
+
)
|
|
385
414
|
})
|
|
386
415
|
},
|
|
387
416
|
{
|
|
@@ -391,47 +420,53 @@ function Z() {
|
|
|
391
420
|
},
|
|
392
421
|
button: i("button-store-busy", {
|
|
393
422
|
icon: "abort",
|
|
394
|
-
disabled: s(
|
|
395
|
-
onclick: () =>
|
|
423
|
+
disabled: s(r, ["TRANSFORM_BUSY"]),
|
|
424
|
+
onclick: () => n(t, {
|
|
396
425
|
abort: !0
|
|
397
|
-
})
|
|
426
|
+
}),
|
|
427
|
+
ariaDescribedby: `${e}-name`
|
|
398
428
|
})
|
|
399
429
|
},
|
|
400
430
|
{
|
|
401
431
|
codes: ["STORE_COMPLETE", "RESTORE_COMPLETE", "RELEASE_ABORT"],
|
|
402
432
|
button: i("button-store-complete", {
|
|
403
433
|
icon: "revert",
|
|
404
|
-
styles:
|
|
434
|
+
styles: d({
|
|
405
435
|
intro: "rotateZ(45deg)",
|
|
406
436
|
idle: "rotateZ(0)",
|
|
407
437
|
outro: "rotaetZ(-45deg)"
|
|
408
438
|
}),
|
|
409
|
-
disabled: s(
|
|
410
|
-
onclick: () =>
|
|
439
|
+
disabled: s(r, ["TRANSFORM_BUSY"]),
|
|
440
|
+
onclick: () => n(t, {
|
|
411
441
|
store: !1
|
|
412
|
-
})
|
|
442
|
+
}),
|
|
443
|
+
ariaDescribedby: l(
|
|
444
|
+
`${e}-name`,
|
|
445
|
+
`${e}-status`,
|
|
446
|
+
`${e}-store-info`
|
|
447
|
+
)
|
|
413
448
|
})
|
|
414
449
|
}
|
|
415
450
|
]
|
|
416
451
|
})
|
|
417
452
|
};
|
|
418
453
|
}
|
|
419
|
-
function
|
|
454
|
+
function d({ intro: t, idle: e, outro: r }) {
|
|
420
455
|
const n = "--indicator-button-";
|
|
421
456
|
return {
|
|
422
|
-
[`${n}intro`]:
|
|
423
|
-
[`${n}idle`]:
|
|
457
|
+
[`${n}intro`]: t,
|
|
458
|
+
[`${n}idle`]: e,
|
|
424
459
|
[`${n}outro`]: r
|
|
425
460
|
};
|
|
426
461
|
}
|
|
427
|
-
function
|
|
428
|
-
const { key:
|
|
462
|
+
function w(t) {
|
|
463
|
+
const { key: e = "entry-checkbox", stateKey: r = "checked" } = t ?? {};
|
|
429
464
|
return {
|
|
430
|
-
key:
|
|
431
|
-
component:
|
|
465
|
+
key: e,
|
|
466
|
+
component: M,
|
|
432
467
|
props: ({ id: n, entry: o }, { updateEntryState: a }) => ({
|
|
433
|
-
class:
|
|
434
|
-
part:
|
|
468
|
+
class: e,
|
|
469
|
+
part: e,
|
|
435
470
|
icon: "check",
|
|
436
471
|
label: "Select",
|
|
437
472
|
labelIsImplicit: !0,
|
|
@@ -444,14 +479,14 @@ function q(e) {
|
|
|
444
479
|
})
|
|
445
480
|
};
|
|
446
481
|
}
|
|
447
|
-
function
|
|
448
|
-
const { key:
|
|
482
|
+
function K(t) {
|
|
483
|
+
const { key: e = "file-rename", extensionAction: r = "renameFile" } = t ?? {};
|
|
449
484
|
return {
|
|
450
485
|
if: {
|
|
451
|
-
test: ({ entry: n }) =>
|
|
486
|
+
test: ({ entry: n }) => b(n.name) && L(n, r),
|
|
452
487
|
then: {
|
|
453
|
-
key:
|
|
454
|
-
component:
|
|
488
|
+
key: e,
|
|
489
|
+
component: C,
|
|
455
490
|
props: ({ id: n, entry: o }, { updateEntryState: a }) => ({
|
|
456
491
|
disabled: s(o, ["STORE_QUEUED", "STORE_BUSY"]),
|
|
457
492
|
value: o.name,
|
|
@@ -464,45 +499,45 @@ function w(e) {
|
|
|
464
499
|
}
|
|
465
500
|
},
|
|
466
501
|
else: {
|
|
467
|
-
key:
|
|
502
|
+
key: e,
|
|
468
503
|
tag: "span",
|
|
469
504
|
children: "{{entry.name}}"
|
|
470
505
|
}
|
|
471
506
|
};
|
|
472
507
|
}
|
|
473
|
-
function
|
|
474
|
-
|
|
475
|
-
const r =
|
|
476
|
-
|
|
508
|
+
function Tt(t) {
|
|
509
|
+
return y(t).remove("entry-store-state").replace("entry-load-state", w()).update("entry-list-item", (e) => {
|
|
510
|
+
const r = e.props;
|
|
511
|
+
e.props = (n) => {
|
|
477
512
|
const o = r(n);
|
|
478
513
|
return {
|
|
479
514
|
...o,
|
|
480
|
-
part:
|
|
515
|
+
part: l(
|
|
481
516
|
o.part,
|
|
482
517
|
n.entry.state.checked ? "selected" : void 0
|
|
483
518
|
)
|
|
484
519
|
};
|
|
485
520
|
};
|
|
486
|
-
});
|
|
521
|
+
}), t;
|
|
487
522
|
}
|
|
488
|
-
function
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
});
|
|
523
|
+
function ht(t) {
|
|
524
|
+
return y(t).update("file-info-main", (e) => {
|
|
525
|
+
e.children = K();
|
|
526
|
+
}), t;
|
|
492
527
|
}
|
|
493
528
|
export {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
529
|
+
Tt as appendEntryCheckbox,
|
|
530
|
+
ht as appendEntryRenameInput,
|
|
531
|
+
w as createEntryCheckbox,
|
|
532
|
+
I as createEntryDataTransferInfo,
|
|
533
|
+
z as createEntryInfo,
|
|
534
|
+
u as createEntryInfoBlock,
|
|
535
|
+
q as createEntryLoadState,
|
|
536
|
+
N as createEntryStatus,
|
|
502
537
|
Z as createEntryStoreState,
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
538
|
+
Q as createFileLoadInfo,
|
|
539
|
+
x as createFilePondEntry,
|
|
540
|
+
Ot as createFilePondEntryList,
|
|
541
|
+
K as createFileRenameInput,
|
|
542
|
+
W as createFileStoreInfo
|
|
508
543
|
};
|