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
|
@@ -1,190 +1,164 @@
|
|
|
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
7
|
import { get as r, untrack as H } from "../../../svelte/svelte/src/internal/client/runtime.js";
|
|
8
|
-
import { noop as
|
|
9
|
-
import { push as
|
|
10
|
-
import { first_child as
|
|
11
|
-
import { template_effect as
|
|
12
|
-
import { proxy as
|
|
13
|
-
import { user_derived as
|
|
14
|
-
import { set_text as
|
|
15
|
-
import { comment as
|
|
16
|
-
import { if_block as
|
|
17
|
-
import { each as
|
|
18
|
-
import { component as
|
|
8
|
+
import { noop as b } from "../../../svelte/svelte/src/internal/shared/utils.js";
|
|
9
|
+
import { push as dt, pop as gt } from "../../../svelte/svelte/src/internal/client/context.js";
|
|
10
|
+
import { first_child as O } from "../../../svelte/svelte/src/internal/client/dom/operations.js";
|
|
11
|
+
import { template_effect as ht } from "../../../svelte/svelte/src/internal/client/reactivity/effects.js";
|
|
12
|
+
import { proxy as xt } from "../../../svelte/svelte/src/internal/client/proxy.js";
|
|
13
|
+
import { user_derived as c } from "../../../svelte/svelte/src/internal/client/reactivity/deriveds.js";
|
|
14
|
+
import { set_text as vt } from "../../../svelte/svelte/src/internal/client/render.js";
|
|
15
|
+
import { comment as w, append as k, text as _t } from "../../../svelte/svelte/src/internal/client/dom/template.js";
|
|
16
|
+
import { if_block as V } from "../../../svelte/svelte/src/internal/client/dom/blocks/if.js";
|
|
17
|
+
import { each as bt } from "../../../svelte/svelte/src/internal/client/dom/blocks/each.js";
|
|
18
|
+
import { component as Ct } from "../../../svelte/svelte/src/internal/client/dom/blocks/svelte-component.js";
|
|
19
19
|
import { element as et } from "../../../svelte/svelte/src/internal/client/dom/blocks/svelte-element.js";
|
|
20
|
-
import { attribute_effect as
|
|
21
|
-
import { transition as
|
|
20
|
+
import { attribute_effect as Rt } from "../../../svelte/svelte/src/internal/client/dom/elements/attributes.js";
|
|
21
|
+
import { transition as Nt } from "../../../svelte/svelte/src/internal/client/dom/elements/transitions.js";
|
|
22
22
|
import { bind_this as rt } from "../../../svelte/svelte/src/internal/client/dom/elements/bindings/this.js";
|
|
23
|
-
import { prop as I, spread_props as
|
|
24
|
-
import { isSwitchNode as ot, isTemplateNode as nt, isComponentNode as
|
|
25
|
-
import { isString as J, isFunction as
|
|
26
|
-
import { withResources as st, stringReplaceVariables as
|
|
27
|
-
import { getAppContext as
|
|
23
|
+
import { prop as I, spread_props as St } from "../../../svelte/svelte/src/internal/client/reactivity/props.js";
|
|
24
|
+
import { isSwitchNode as ot, isTemplateNode as nt, isComponentNode as kt, isElementNode as yt } from "../../common/nodeTree.js";
|
|
25
|
+
import { isString as J, isFunction as B } from "../../../utils/test.js";
|
|
26
|
+
import { withResources as st, stringReplaceVariables as Ot } from "../../common/string.js";
|
|
27
|
+
import { getAppContext as wt } from "../../FilePondEntryList/contexts/appContext.js";
|
|
28
28
|
import { passthrough as Q, noop as it } from "../../../utils/placeholder.js";
|
|
29
|
-
import { Spring as
|
|
30
|
-
import { arrayWrap as
|
|
31
|
-
function at
|
|
32
|
-
|
|
33
|
-
const U = (e, t =
|
|
34
|
-
var
|
|
29
|
+
import { Spring as jt } from "../../../svelte/svelte/src/motion/spring.js";
|
|
30
|
+
import { arrayWrap as F } from "../../../utils/array.js";
|
|
31
|
+
function ft(at, i) {
|
|
32
|
+
dt(i, !0);
|
|
33
|
+
const U = (e, t = b, n = b, o = b, p = b, C = b, m = b, h = b, l = b, x = b) => {
|
|
34
|
+
var d = w(), R = O(d);
|
|
35
35
|
{
|
|
36
|
-
var
|
|
37
|
-
var
|
|
36
|
+
var f = (a) => {
|
|
37
|
+
var s = w(), N = O(s);
|
|
38
38
|
{
|
|
39
|
-
const
|
|
39
|
+
const y = (_, S = b) => {
|
|
40
40
|
{
|
|
41
|
-
let
|
|
42
|
-
|
|
41
|
+
let g = c(() => x() ? [x()] : m()), D = c(() => A()(x() ? S() : { ...h(), ...S() })), G = c(() => x() ? {} : j());
|
|
42
|
+
ft(_, {
|
|
43
43
|
get nodes() {
|
|
44
|
-
return r(
|
|
44
|
+
return r(g);
|
|
45
45
|
},
|
|
46
46
|
get context() {
|
|
47
|
-
return r(
|
|
47
|
+
return r(D);
|
|
48
48
|
},
|
|
49
49
|
get routes() {
|
|
50
|
-
return r(
|
|
50
|
+
return r(G);
|
|
51
51
|
},
|
|
52
52
|
get sharedContext() {
|
|
53
|
-
return
|
|
53
|
+
return i.sharedContext;
|
|
54
54
|
},
|
|
55
55
|
get beforeSetProps() {
|
|
56
|
-
return
|
|
56
|
+
return A();
|
|
57
57
|
},
|
|
58
58
|
get beforeRenderNode() {
|
|
59
|
-
return
|
|
59
|
+
return E();
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
let
|
|
65
|
-
context:
|
|
66
|
-
routes:
|
|
67
|
-
sharedContext:
|
|
68
|
-
beforeSetProps:
|
|
69
|
-
beforeRenderNode:
|
|
64
|
+
let P = c(() => A()(C())), W = c(() => ({
|
|
65
|
+
context: h(),
|
|
66
|
+
routes: j(),
|
|
67
|
+
sharedContext: i.sharedContext,
|
|
68
|
+
beforeSetProps: A(),
|
|
69
|
+
beforeRenderNode: E()
|
|
70
70
|
}));
|
|
71
|
-
|
|
71
|
+
Ct(N, p, (_, S) => {
|
|
72
72
|
rt(
|
|
73
|
-
|
|
73
|
+
S(_, St(() => r(P), l, {
|
|
74
74
|
get nodeContext() {
|
|
75
|
-
return r(
|
|
75
|
+
return r(W);
|
|
76
76
|
},
|
|
77
|
-
children:
|
|
77
|
+
children: y,
|
|
78
78
|
_$slots: { default: !0 }
|
|
79
79
|
})),
|
|
80
|
-
function(
|
|
81
|
-
|
|
80
|
+
function(g) {
|
|
81
|
+
K[t()] = g;
|
|
82
82
|
},
|
|
83
83
|
it
|
|
84
84
|
);
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
var
|
|
90
|
-
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
87
|
+
k(a, s);
|
|
88
|
+
}, u = (a) => {
|
|
89
|
+
var s = w(), N = O(s);
|
|
90
|
+
et(N, n, !1, (y, P) => {
|
|
91
|
+
rt(
|
|
92
|
+
y,
|
|
93
|
+
function(g) {
|
|
94
|
+
K[t()] = g;
|
|
95
|
+
},
|
|
96
|
+
it
|
|
97
|
+
), Rt(y, () => ({ ...o(), ...l() }));
|
|
98
|
+
var W = w(), _ = O(W);
|
|
99
|
+
{
|
|
100
|
+
var S = (g) => {
|
|
101
|
+
ft(g, {
|
|
102
|
+
get nodes() {
|
|
103
|
+
return m();
|
|
98
104
|
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
var P = k(), dt = S(P);
|
|
102
|
-
{
|
|
103
|
-
var gt = (B) => {
|
|
104
|
-
at(B, {
|
|
105
|
-
get nodes() {
|
|
106
|
-
return m();
|
|
107
|
-
},
|
|
108
|
-
get context() {
|
|
109
|
-
return b();
|
|
110
|
-
},
|
|
111
|
-
get routes() {
|
|
112
|
-
return W();
|
|
113
|
-
},
|
|
114
|
-
get sharedContext() {
|
|
115
|
-
return s.sharedContext;
|
|
116
|
-
},
|
|
117
|
-
get beforeSetProps() {
|
|
118
|
-
return F();
|
|
119
|
-
},
|
|
120
|
-
get beforeRenderNode() {
|
|
121
|
-
return T();
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
};
|
|
125
|
-
E(dt, (B) => {
|
|
126
|
-
m() && B(gt);
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
_(j, P);
|
|
130
|
-
}), _(p, u);
|
|
131
|
-
}, A = (p) => {
|
|
132
|
-
var u = k(), l = S(u);
|
|
133
|
-
{
|
|
134
|
-
var R = (j) => {
|
|
135
|
-
var P = Ct();
|
|
136
|
-
vt(() => bt(P, m())), _(j, P);
|
|
137
|
-
};
|
|
138
|
-
E(
|
|
139
|
-
l,
|
|
140
|
-
(j) => {
|
|
141
|
-
m() && j(R);
|
|
105
|
+
get context() {
|
|
106
|
+
return h();
|
|
142
107
|
},
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
108
|
+
get routes() {
|
|
109
|
+
return j();
|
|
110
|
+
},
|
|
111
|
+
get sharedContext() {
|
|
112
|
+
return i.sharedContext;
|
|
113
|
+
},
|
|
114
|
+
get beforeSetProps() {
|
|
115
|
+
return A();
|
|
116
|
+
},
|
|
117
|
+
get beforeRenderNode() {
|
|
118
|
+
return E();
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
V(_, (g) => {
|
|
123
|
+
m() && g(S);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
k(P, W);
|
|
127
|
+
}), k(a, s);
|
|
128
|
+
}, v = (a) => {
|
|
129
|
+
var s = _t();
|
|
130
|
+
ht(() => vt(s, m())), k(a, s);
|
|
157
131
|
};
|
|
158
|
-
|
|
159
|
-
|
|
132
|
+
V(R, (a) => {
|
|
133
|
+
p() ? a(f) : n() ? a(u, 1) : m() && a(v, 2);
|
|
160
134
|
});
|
|
161
135
|
}
|
|
162
|
-
|
|
136
|
+
k(e, d);
|
|
163
137
|
};
|
|
164
|
-
let
|
|
165
|
-
const
|
|
138
|
+
let j = I(i, "routes", 19, () => ({})), A = I(i, "beforeSetProps", 3, Q), E = I(i, "beforeRenderNode", 3, Q);
|
|
139
|
+
const K = {}, L = c(wt), q = c(() => r(L).resources), X = c(() => r(L).propResourceMap), ut = c(() => r(L).enableAnimations), T = xt({}), Y = c(() => T ? Object.entries(T).reduce(
|
|
166
140
|
(e, [t, { spring: n, transform: o }]) => (e[t] = o(n.current), e),
|
|
167
141
|
{}
|
|
168
|
-
) : null),
|
|
169
|
-
function
|
|
170
|
-
return e &&
|
|
142
|
+
) : null), M = c(() => r(Y) === null ? i.context : { ...i.context, ...r(Y) });
|
|
143
|
+
function z(e, t) {
|
|
144
|
+
return e && B(e) ? e(t, i.sharedContext) : e;
|
|
171
145
|
}
|
|
172
146
|
function Z(e, t, n) {
|
|
173
147
|
if (!e)
|
|
174
148
|
return;
|
|
175
|
-
const o =
|
|
149
|
+
const o = z(e, t);
|
|
176
150
|
return st(o, r(X), n);
|
|
177
151
|
}
|
|
178
152
|
function ct(e, t, n) {
|
|
179
153
|
let { label: o } = st({ label: e }, r(X), n);
|
|
180
|
-
if (o.includes("{")) {
|
|
181
|
-
const
|
|
182
|
-
return
|
|
154
|
+
if (o.includes("{{")) {
|
|
155
|
+
const p = t ? z(t, { ...r(M) }) : r(M);
|
|
156
|
+
return Ot(o, p, n.locale);
|
|
183
157
|
}
|
|
184
158
|
return o;
|
|
185
159
|
}
|
|
186
160
|
function mt(e, t) {
|
|
187
|
-
return
|
|
161
|
+
return B(e.if.test) && e.if.test(t) ? F(e.if.then) : e.elseif && B(e.elseif.test) && e.elseif.test(t) ? F(e.elseif.then) : nt(e.else) ? F(e.else) : [];
|
|
188
162
|
}
|
|
189
163
|
function $(e, t) {
|
|
190
164
|
let n = [];
|
|
@@ -192,12 +166,12 @@ function at(ft, s) {
|
|
|
192
166
|
ot(o) ? n.push(...$(o, t)) : n.push(o);
|
|
193
167
|
return n;
|
|
194
168
|
}
|
|
195
|
-
const pt =
|
|
169
|
+
const pt = c(() => {
|
|
196
170
|
const e = [];
|
|
197
|
-
for (const t of
|
|
171
|
+
for (const t of F(i.nodes))
|
|
198
172
|
if (t) {
|
|
199
173
|
if (ot(t)) {
|
|
200
|
-
const n = $(t,
|
|
174
|
+
const n = $(t, i.context);
|
|
201
175
|
e.push(...n);
|
|
202
176
|
continue;
|
|
203
177
|
}
|
|
@@ -210,80 +184,80 @@ function at(ft, s) {
|
|
|
210
184
|
return e.map((t, n) => {
|
|
211
185
|
if (J(t))
|
|
212
186
|
return { key: n, content: t };
|
|
213
|
-
if (nt(t) &&
|
|
214
|
-
const
|
|
187
|
+
if (nt(t) && B(t.spring)) {
|
|
188
|
+
const f = Object.entries(t.spring(i.context));
|
|
215
189
|
H(() => {
|
|
216
|
-
|
|
217
|
-
|
|
190
|
+
f.forEach(([u, { value: v, config: a, transform: s = Q }]) => {
|
|
191
|
+
T[u] ? T[u].spring.set(v, { instant: !r(ut) }) : T[u] = { transform: s, spring: new jt(v, a) };
|
|
218
192
|
});
|
|
219
193
|
});
|
|
220
194
|
}
|
|
221
195
|
const {
|
|
222
196
|
key: o,
|
|
223
|
-
routes:
|
|
224
|
-
children:
|
|
197
|
+
routes: p,
|
|
198
|
+
children: C,
|
|
225
199
|
transition: m,
|
|
226
|
-
context:
|
|
200
|
+
context: h
|
|
227
201
|
} = t;
|
|
228
|
-
|
|
229
|
-
Object.assign(
|
|
230
|
-
(
|
|
231
|
-
const [
|
|
232
|
-
return
|
|
233
|
-
[`on${
|
|
234
|
-
|
|
202
|
+
p && H(() => {
|
|
203
|
+
Object.assign(j(), Object.entries(p).reduce(
|
|
204
|
+
(f, [u, v]) => {
|
|
205
|
+
const [a, s] = u.split(":"), [N, y] = v.split(".");
|
|
206
|
+
return f[N] = {}, f[a] = {
|
|
207
|
+
[`on${s}`]: (...P) => {
|
|
208
|
+
f[N].getRoot()[y]?.(...P);
|
|
235
209
|
}
|
|
236
|
-
},
|
|
210
|
+
}, f;
|
|
237
211
|
},
|
|
238
212
|
{}
|
|
239
213
|
));
|
|
240
214
|
});
|
|
241
|
-
let
|
|
215
|
+
let l = {};
|
|
242
216
|
H(() => {
|
|
243
|
-
o &&
|
|
217
|
+
o && j()?.[o] && (Object.assign(j()[o], {
|
|
244
218
|
getRoot() {
|
|
245
|
-
return
|
|
219
|
+
return K[o];
|
|
246
220
|
}
|
|
247
|
-
}),
|
|
221
|
+
}), l = { ...j()[o] });
|
|
248
222
|
});
|
|
249
|
-
const
|
|
250
|
-
if (
|
|
251
|
-
const { component:
|
|
252
|
-
return
|
|
223
|
+
const x = h ? z(h, r(M)) : r(M), d = { ...r(M), ...x }, R = J(C) ? ct(C, d, r(q)) : C;
|
|
224
|
+
if (kt(t)) {
|
|
225
|
+
const { component: f, item: u, props: v } = t;
|
|
226
|
+
return E()(
|
|
253
227
|
{
|
|
254
228
|
key: o ?? n,
|
|
255
|
-
Component:
|
|
256
|
-
props: Z(
|
|
257
|
-
item:
|
|
258
|
-
content:
|
|
259
|
-
context:
|
|
229
|
+
Component: f,
|
|
230
|
+
props: Z(v, d, r(q)),
|
|
231
|
+
item: u,
|
|
232
|
+
content: R,
|
|
233
|
+
context: d,
|
|
260
234
|
transition: m,
|
|
261
|
-
routes:
|
|
235
|
+
routes: l
|
|
262
236
|
},
|
|
263
|
-
|
|
264
|
-
|
|
237
|
+
i.context,
|
|
238
|
+
i.sharedContext
|
|
265
239
|
);
|
|
266
240
|
}
|
|
267
|
-
if (
|
|
268
|
-
const { attrs:
|
|
269
|
-
return
|
|
241
|
+
if (yt(t)) {
|
|
242
|
+
const { attrs: f, tag: u } = t;
|
|
243
|
+
return E()(
|
|
270
244
|
{
|
|
271
245
|
key: o ?? n,
|
|
272
|
-
tag:
|
|
273
|
-
attrs: Z(
|
|
274
|
-
content:
|
|
275
|
-
context:
|
|
246
|
+
tag: u,
|
|
247
|
+
attrs: Z(f, d, r(q)),
|
|
248
|
+
content: R,
|
|
249
|
+
context: d,
|
|
276
250
|
transition: m,
|
|
277
|
-
routes:
|
|
251
|
+
routes: l
|
|
278
252
|
},
|
|
279
|
-
|
|
280
|
-
|
|
253
|
+
i.context,
|
|
254
|
+
i.sharedContext
|
|
281
255
|
);
|
|
282
256
|
}
|
|
283
257
|
}).filter(Boolean);
|
|
284
258
|
});
|
|
285
|
-
var tt =
|
|
286
|
-
|
|
259
|
+
var tt = w(), lt = O(tt);
|
|
260
|
+
bt(
|
|
287
261
|
lt,
|
|
288
262
|
17,
|
|
289
263
|
() => r(pt),
|
|
@@ -292,42 +266,42 @@ function at(ft, s) {
|
|
|
292
266
|
tag: t,
|
|
293
267
|
attrs: n,
|
|
294
268
|
Component: o,
|
|
295
|
-
props:
|
|
296
|
-
content:
|
|
269
|
+
props: p,
|
|
270
|
+
content: C,
|
|
297
271
|
context: m,
|
|
298
|
-
routes:
|
|
299
|
-
item:
|
|
300
|
-
transition:
|
|
272
|
+
routes: h,
|
|
273
|
+
item: l,
|
|
274
|
+
transition: x
|
|
301
275
|
}) => e,
|
|
302
276
|
(e, t) => {
|
|
303
|
-
let n = () => r(t).key, o = () => r(t).tag,
|
|
304
|
-
var
|
|
277
|
+
let n = () => r(t).key, o = () => r(t).tag, p = () => r(t).attrs, C = () => r(t).Component, m = () => r(t).props, h = () => r(t).content, l = () => r(t).context, x = () => r(t).routes, d = () => r(t).item, R = () => r(t).transition;
|
|
278
|
+
var f = w(), u = O(f);
|
|
305
279
|
{
|
|
306
|
-
var
|
|
307
|
-
var
|
|
280
|
+
var v = (s) => {
|
|
281
|
+
var N = w(), y = O(N);
|
|
308
282
|
{
|
|
309
|
-
var
|
|
310
|
-
var
|
|
311
|
-
et(
|
|
312
|
-
|
|
313
|
-
}), _
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
|
|
283
|
+
var P = (_) => {
|
|
284
|
+
var S = w(), g = O(S);
|
|
285
|
+
et(g, () => "div", !1, (D, G) => {
|
|
286
|
+
Nt(3, D, () => R().fn, R), U(G, n, o, p, C, m, h, l, x, d);
|
|
287
|
+
}), k(_, S);
|
|
288
|
+
}, W = c(() => R().when(l()));
|
|
289
|
+
V(y, (_) => {
|
|
290
|
+
r(W) && _(P);
|
|
317
291
|
});
|
|
318
292
|
}
|
|
319
|
-
|
|
320
|
-
},
|
|
321
|
-
U(
|
|
293
|
+
k(s, N);
|
|
294
|
+
}, a = (s) => {
|
|
295
|
+
U(s, n, o, p, C, m, h, l, x, d);
|
|
322
296
|
};
|
|
323
|
-
|
|
324
|
-
|
|
297
|
+
V(u, (s) => {
|
|
298
|
+
R() ? s(v) : s(a, -1);
|
|
325
299
|
});
|
|
326
300
|
}
|
|
327
|
-
|
|
301
|
+
k(e, f);
|
|
328
302
|
}
|
|
329
|
-
),
|
|
303
|
+
), k(at, tt), gt();
|
|
330
304
|
}
|
|
331
305
|
export {
|
|
332
|
-
|
|
306
|
+
ft as default
|
|
333
307
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
const r = 'progress-indicator{--progress-color: var(--progress-color, currentColor);--track-color: color-mix(in srgb, var(--progress-color) 25%, transparent);--track-size: var(--size, 1.5em);--track-border-radius: var(--border-radius, 0);--progress-cap: round;--_stroke-width: var(--progress-stroke, 1.75);display:block;background:transparent;pointer-events:none;overflow:hidden;border-radius:var(--track-border-radius)}progress-indicator div,progress-indicator svg{display:block;width:100%;height:100%}progress-indicator progress{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}progress-indicator[shape=line]{width:100%;height:calc(var(--_stroke-width) * 1px)}progress-indicator[shape=line] rect{x:0;y:calc(50% - (var(--_stroke-width) * .5px));width:100%;height:calc(var(--_stroke-width) * 1px);rx:calc(var(--_stroke-width) * .5px);fill:var(--progress-color);transition:width .5s linear}progress-indicator[shape=line] rect:first-of-type{fill:var(--track-color)}progress-indicator[shape=line] progress:not(:indeterminate)~div rect:last-of-type{x:calc(var(--_offset) * 1px);width:calc(var(--_progress) * 100%);transition:none}progress-indicator[shape=line] progress:indeterminate~div{--_f: max(0, var(--_flip));--_from: translateX(calc(75% - (var(--_f) * 75%)));--_to: translateX(calc(var(--_f) * 75%))}progress-indicator[shape=line] progress:indeterminate~div rect:last-of-type{--_flip: 1;animation:progress-indicator-busy .75s infinite alternate ease-in-out;width:25%}progress-indicator[shape=circle],progress-indicator[shape=rectangle]{width:var(--track-size);height:var(--track-size)}:is(progress-indicator[shape=circle],progress-indicator[shape=rectangle]) div{transform-origin:center center}:is(progress-indicator[shape=circle],progress-indicator[shape=rectangle]) g rect,:is(progress-indicator[shape=circle],progress-indicator[shape=rectangle]) g circle{fill:none;stroke:var(--progress-color);stroke-width:var(--_stroke-width);stroke-linecap:var(--progress-cap)}:is(progress-indicator[shape=circle],progress-indicator[shape=rectangle]) g rect:first-of-type,:is(progress-indicator[shape=circle],progress-indicator[shape=rectangle]) g circle:first-of-type{stroke:var(--track-color)}progress-indicator[shape=circle] g circle{--r: calc(var(--_size) * .5);r:calc((var(--r) - var(--_stroke-width) * .5) * 1px);cx:calc(var(--r) * 1px);cy:calc(var(--r) * 1px)}progress-indicator[shape=circle] progress:not(:indeterminate)~div{transform:scaleX(var(--_flip)) rotate(calc(var(--_offset) * 1rad))}progress-indicator[shape=circle] progress:not(:indeterminate)~div g circle:last-of-type{stroke-dashoffset:calc(1 - var(--_progress));stroke-dasharray:1}progress-indicator[shape=circle] progress:indeterminate~div{--_from: rotate(0deg);--_to: rotate(360deg);animation:progress-indicator-busy .5s infinite linear}progress-indicator[shape=circle] progress:indeterminate~div g circle:last-of-type{transition:stroke-dashoffset .5s ease-out,stroke-dasharray .5s ease-out;stroke-dashoffset:-1;stroke-dasharray:.5}progress-indicator[shape=rectangle] div{transform:scaleX(var(--_flip))}progress-indicator[shape=rectangle] mask rect:last-of-type{stroke-width:var(--_stroke-width)}progress-indicator[shape=rectangle] mask rect:last-of-type,progress-indicator[shape=rectangle] g rect{--_o: calc(var(--_stroke-width) * .5px);x:var(--_o);y:var(--_o);--_s: calc((var(--_size) - var(--_stroke-width)) * 1px);width:var(--_s);height:var(--_s);rx:var(--_border-radius)}progress-indicator[shape=rectangle] progress:not(:indeterminate)~div{mask:none!important}progress-indicator[shape=rectangle] progress:not(:indeterminate)~div g rect:last-of-type{stroke-dashoffset:calc(var(--_offset) + var(--_center));stroke-dasharray:var(--_progress) calc(1 - var(--_progress))}progress-indicator[shape=rectangle] progress:indeterminate~div g rect:last-of-type{display:none}progress-indicator[shape=rectangle] progress:indeterminate~div:before{--_from: rotate(-220deg);--_to: rotate(140deg);content:"";position:absolute;inset:-25% 50% -25% -25%;background:var(--progress-color);transform-origin:100% center;animation:progress-indicator-busy .5s infinite linear}@keyframes progress-indicator-busy{0%{transform:scaleX(var(--_flip)) var(--_from)}to{transform:scaleX(var(--_flip)) var(--_to)}}@keyframes progress-indicator-loop{0%{stroke-dashoffset:1}to{stroke-dashoffset:0}}';
|
|
7
|
+
const r = 'progress-indicator{--progress-color: var(--progress-color, currentColor);--track-color: color-mix(in srgb, var(--progress-color) 25%, transparent);--track-size: var(--size, 1.5em);--track-border-radius: var(--border-radius, 0);--progress-cap: round;--_stroke-width: var(--progress-stroke, 1.75);display:block;background:transparent;pointer-events:none;overflow:hidden;border-radius:var(--track-border-radius)}progress-indicator div,progress-indicator svg{display:block;width:100%;height:100%}progress-indicator progress{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}progress-indicator[shape=line]{width:100%;height:calc(var(--_stroke-width) * 1px)}progress-indicator[shape=line] rect{x:0;y:calc(50% - (var(--_stroke-width) * .5px));width:100%;height:calc(var(--_stroke-width) * 1px);rx:calc(var(--_stroke-width) * .5px);fill:var(--progress-color);transition:width .5s linear}progress-indicator[shape=line] rect:first-of-type{fill:var(--track-color)}progress-indicator[shape=line] progress:not(:indeterminate)~div rect:last-of-type{x:calc(var(--_offset) * 1px);width:calc(var(--_progress) * 100%);transition:none}progress-indicator[shape=line] progress:indeterminate~div{--_f: max(0, var(--_flip));--_from: translateX(calc(75% - (var(--_f) * 75%)));--_to: translateX(calc(var(--_f) * 75%))}progress-indicator[shape=line] progress:indeterminate~div rect:last-of-type{--_flip: 1;animation:progress-indicator-busy .75s infinite alternate ease-in-out;width:25%}progress-indicator[shape=circle],progress-indicator[shape=rectangle]{width:var(--track-size);height:var(--track-size)}:is(progress-indicator[shape=circle],progress-indicator[shape=rectangle]) div{transform-origin:center center}:is(progress-indicator[shape=circle],progress-indicator[shape=rectangle]) g rect,:is(progress-indicator[shape=circle],progress-indicator[shape=rectangle]) g circle{fill:none;stroke:var(--progress-color);stroke-width:var(--_stroke-width);stroke-linecap:var(--progress-cap)}:is(progress-indicator[shape=circle],progress-indicator[shape=rectangle]) g rect:first-of-type,:is(progress-indicator[shape=circle],progress-indicator[shape=rectangle]) g circle:first-of-type{stroke:var(--track-color)}progress-indicator[shape=circle] g circle{--r: calc(var(--_size) * .5);r:calc((var(--r) - var(--_stroke-width) * .5) * 1px);cx:calc(var(--r) * 1px);cy:calc(var(--r) * 1px)}progress-indicator[shape=circle] progress:not(:indeterminate)~div{transform:scaleX(var(--_flip)) rotate(calc(var(--_offset) * 1rad))}progress-indicator[shape=circle] progress:not(:indeterminate)~div g circle:last-of-type{stroke-dashoffset:calc(1 - var(--_progress));stroke-dasharray:1}progress-indicator[shape=circle] progress:indeterminate~div{--_from: rotate(0deg);--_to: rotate(360deg);animation:progress-indicator-busy .5s infinite linear}progress-indicator[shape=circle] progress:indeterminate~div g circle:last-of-type{transition:stroke-dashoffset .5s ease-out,stroke-dasharray .5s ease-out;stroke-dashoffset:-1;stroke-dasharray:.5}progress-indicator[shape=rectangle] div{transform:scaleX(var(--_flip))}progress-indicator[shape=rectangle] mask rect:last-of-type{stroke-width:var(--_stroke-width)}progress-indicator[shape=rectangle] mask rect:last-of-type,progress-indicator[shape=rectangle] g rect{--_o: calc(var(--_stroke-width) * .5px);x:var(--_o);y:var(--_o);--_s: calc((var(--_size) - var(--_stroke-width)) * 1px);width:var(--_s);height:var(--_s);rx:calc(var(--_border-radius) * 1px)}progress-indicator[shape=rectangle] progress:not(:indeterminate)~div{mask:none!important}progress-indicator[shape=rectangle] progress:not(:indeterminate)~div g rect:last-of-type{stroke-dashoffset:calc((var(--_offset) + var(--_center)) * 1px);stroke-dasharray:calc(var(--_progress) * 1px) calc((1 - var(--_progress)) * 1px)}progress-indicator[shape=rectangle] progress:indeterminate~div g rect:last-of-type{display:none}progress-indicator[shape=rectangle] progress:indeterminate~div:before{--_from: rotate(-220deg);--_to: rotate(140deg);content:"";position:absolute;inset:-25% 50% -25% -25%;background:var(--progress-color);transform-origin:100% center;animation:progress-indicator-busy .5s infinite linear}@keyframes progress-indicator-busy{0%{transform:scaleX(var(--_flip)) var(--_from)}to{transform:scaleX(var(--_flip)) var(--_to)}}@keyframes progress-indicator-loop{0%{stroke-dashoffset:1}to{stroke-dashoffset:0}}';
|
|
8
8
|
export {
|
|
9
9
|
r as default
|
|
10
10
|
};
|