filepond 5.0.0-beta.20 → 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/cdn/assets/index.js +1 -1
- package/cdn/locales/ar-ar.js +1 -1
- package/cdn/locales/bn-bd.js +1 -1
- package/cdn/locales/cs-cz.js +1 -1
- package/cdn/locales/da-dk.js +1 -1
- package/cdn/locales/de-de.js +1 -1
- package/cdn/locales/el-gr.js +1 -1
- package/cdn/locales/en-gb.js +1 -1
- package/cdn/locales/es-es.js +1 -1
- package/cdn/locales/fi-fi.js +1 -1
- package/cdn/locales/fr-fr.js +1 -1
- package/cdn/locales/hi-in.js +1 -1
- package/cdn/locales/hu-hu.js +1 -1
- package/cdn/locales/index.js +1 -1
- package/cdn/locales/is-is.js +1 -1
- package/cdn/locales/it-it.js +1 -1
- package/cdn/locales/ja-jp.js +1 -1
- package/cdn/locales/ko-kr.js +1 -1
- package/cdn/locales/nb-no.js +1 -1
- package/cdn/locales/nl-nl.js +1 -1
- package/cdn/locales/pl-pl.js +1 -1
- package/cdn/locales/pt-pt.js +1 -1
- package/cdn/locales/sv-se.js +1 -1
- package/cdn/locales/tr-tr.js +1 -1
- package/cdn/locales/uk-ua.js +1 -1
- package/cdn/locales/vi-vn.js +1 -1
- package/cdn/locales/zh-cn.js +1 -1
- package/cdn/main.js +2 -2
- 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 +1 -1
- package/esm/core/extensionManager.js +28 -28
- package/esm/core/taskScheduler.js +78 -97
- package/esm/dev/index.js +1 -1
- package/esm/elements/FilePondDefault/index.css.js +1 -1
- package/esm/elements/FilePondDefault/index.js +46 -45
- package/esm/elements/FilePondDropArea/index.css.js +1 -1
- package/esm/elements/FilePondDropArea/index.js +1 -1
- package/esm/elements/FilePondDropArea/index.svelte.js +1 -1
- package/esm/elements/FilePondDropIndicator/index.css.js +1 -1
- package/esm/elements/FilePondDropIndicator/index.js +1 -1
- package/esm/elements/FilePondDropIndicator/index.svelte.js +1 -1
- package/esm/elements/FilePondEntryList/components/Entry/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/Entry/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/Entry/index.svelte.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.svelte.js +80 -80
- 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 +1 -1
- package/esm/elements/FilePondEntryList/components/EntryListItem/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryListItem/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryListItem/index.svelte.js +1 -1
- 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 -1
- package/esm/elements/FilePondEntryList/components/EntryStatus/index.svelte.js +1 -1
- 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 +70 -70
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/esm/elements/FilePondEntryList/index.js +2 -1
- package/esm/elements/FilePondEntryList/index.svelte.js +166 -166
- package/esm/elements/FilePondInput/index.css.js +1 -1
- package/esm/elements/FilePondInput/index.js +15 -11
- package/esm/elements/FilePondSvelteComponent/index.svelte.js +1 -1
- package/esm/elements/attachments/dragarea.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/esm/elements/common/nodeTree.js +9 -9
- package/esm/elements/common/store.svelte.js +1 -1
- package/esm/elements/common/string.js +1 -1
- 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 +1 -1
- package/esm/elements/components/Button/index.css.js +1 -1
- package/esm/elements/components/Button/index.js +1 -1
- package/esm/elements/components/Button/index.svelte.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +70 -70
- package/esm/elements/components/RangeInput/index.css.js +1 -1
- package/esm/elements/components/RangeInput/index.js +1 -1
- package/esm/elements/components/RangeInput/index.svelte.js +1 -1
- package/esm/elements/components/SpringElement/index.svelte.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/esm/extensions/form-post-store.js +1 -1
- package/esm/extensions/image-bitmap-transform.js +56 -54
- package/esm/extensions/index.js +1 -1
- package/esm/extensions/list-count-validator.js +1 -1
- package/esm/extensions/list-size-validator.js +1 -1
- package/esm/extensions/media-resolution-validator.js +1 -1
- 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 +1 -1
- package/esm/locales/bn-bd.js +1 -1
- package/esm/locales/cs-cz.js +1 -1
- package/esm/locales/da-dk.js +1 -1
- package/esm/locales/de-de.js +1 -1
- package/esm/locales/el-gr.js +1 -1
- package/esm/locales/en-gb.js +1 -1
- package/esm/locales/es-es.js +1 -1
- package/esm/locales/fi-fi.js +1 -1
- package/esm/locales/fr-fr.js +1 -1
- package/esm/locales/hi-in.js +1 -1
- package/esm/locales/hu-hu.js +1 -1
- package/esm/locales/index.js +1 -1
- package/esm/locales/is-is.js +1 -1
- package/esm/locales/it-it.js +1 -1
- package/esm/locales/ja-jp.js +1 -1
- package/esm/locales/ko-kr.js +1 -1
- package/esm/locales/nb-no.js +1 -1
- package/esm/locales/nl-nl.js +1 -1
- package/esm/locales/pl-pl.js +1 -1
- package/esm/locales/pt-pt.js +1 -1
- package/esm/locales/sv-se.js +1 -1
- package/esm/locales/tr-tr.js +1 -1
- package/esm/locales/uk-ua.js +1 -1
- package/esm/locales/vi-vn.js +1 -1
- package/esm/locales/zh-cn.js +1 -1
- package/esm/templates/entry.js +2 -2
- package/esm/templates/helpers.js +1 -1
- package/esm/templates/index.js +1 -1
- package/esm/templates/media.js +119 -111
- 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 +1 -1
- package/esm/utils/file.js +1 -1
- package/esm/utils/functionToBlob.js +1 -1
- package/esm/utils/keyboard.js +1 -1
- package/esm/utils/math.js +1 -1
- package/esm/utils/media.js +1 -1
- package/esm/utils/number.js +1 -1
- 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 +1 -1
- package/esm/utils/size.js +1 -1
- package/esm/utils/sleep.js +1 -1
- package/esm/utils/string.js +1 -1
- package/esm/utils/support.js +1 -1
- package/esm/utils/test.js +1 -1
- package/esm/utils/thread.js +47 -42
- package/esm/utils/tree.js +1 -1
- package/esm/utils/url.js +1 -1
- 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 +5 -1
- package/types/core/taskScheduler.d.ts +2 -2
- package/types/elements/FilePondDefault/index.d.ts +2 -0
- package/types/elements/FilePondInput/index.d.ts +2 -0
- package/types/elements/common/nodeTree.d.ts +1 -1
- package/types/extensions/data-url-store.d.ts +2 -0
- package/types/extensions/image-bitmap-transform.d.ts +2 -0
- package/types/extensions/simulated-loader.d.ts +2 -0
- package/types/extensions/url-loader.d.ts +2 -0
- package/types/templates/media.d.ts +14 -0
- package/types/types/index.d.ts +5 -11
- 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
|
@@ -1,14 +1,14 @@
|
|
|
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 { createExtensionManager as
|
|
8
|
-
import { createEntryTree as
|
|
7
|
+
import { createExtensionManager as P } from "../../core/extensionManager.js";
|
|
8
|
+
import { createEntryTree as B } from "../../core/entryTree.js";
|
|
9
9
|
import { setBooleanAttribute as l, setStringAttribute as o, getAttribute as h, getFileSizeAttributeValue as p, createStyleSheet as M, h as f, setAttributes as T, getAttributeFromElements as E, addListener as q, dispatchCustomEvent as g } from "../../utils/dom.js";
|
|
10
|
-
import { isFileEntry as w, isNumber as A, isString as c, isFile as b, isObject as y, isDataTransfer as I, isDirectoryEntry as
|
|
11
|
-
import { stringReplaceVariables as u, statusToLabel as
|
|
10
|
+
import { isFileEntry as w, isNumber as A, isString as c, isFile as b, isObject as y, isDataTransfer as I, isDirectoryEntry as R, isBlobOrFile as D, isCanvas as _ } from "../../utils/test.js";
|
|
11
|
+
import { stringReplaceVariables as u, statusToLabel as j, statusCodeToLocaleKey as U } from "../common/string.js";
|
|
12
12
|
import { toCamelCase as K } from "../../utils/string.js";
|
|
13
13
|
import { debounce as x } from "../../utils/debounce.js";
|
|
14
14
|
import { copyFilePropsToObject as V } from "../../utils/file.js";
|
|
@@ -19,7 +19,7 @@ import { arrayRemoveFalsy as S } from "../../utils/array.js";
|
|
|
19
19
|
import J from "./index.css.js";
|
|
20
20
|
function W(r) {
|
|
21
21
|
const { beforeInsertEntries: t } = r || {};
|
|
22
|
-
return
|
|
22
|
+
return B({
|
|
23
23
|
// allows limiting the total entries added
|
|
24
24
|
beforeInsertEntries: t,
|
|
25
25
|
// formats the entry so all entries in the dataset follow the same data structure
|
|
@@ -51,7 +51,7 @@ const F = [
|
|
|
51
51
|
"valueMissing"
|
|
52
52
|
];
|
|
53
53
|
function X(r) {
|
|
54
|
-
return c(r) ||
|
|
54
|
+
return c(r) || D(r) || _(r) || I(r);
|
|
55
55
|
}
|
|
56
56
|
function z(r) {
|
|
57
57
|
if (c(r) || w(r)) {
|
|
@@ -71,7 +71,7 @@ function C(r) {
|
|
|
71
71
|
const t = X(r) ? { src: r } : { ...r };
|
|
72
72
|
if (t.state = y(t.state) ? t.state : {}, t.extension = y(t.extension) ? t.extension : {}, t.origin = t.origin ?? "api", t.containerId = t.containerId ?? null, I(t.src))
|
|
73
73
|
return t;
|
|
74
|
-
if (t.path = t.path ?? t.src?.path ?? null,
|
|
74
|
+
if (t.path = t.path ?? t.src?.path ?? null, R(t)) {
|
|
75
75
|
const { entries: i } = t;
|
|
76
76
|
return t.entries = i.filter(z).map(C), t;
|
|
77
77
|
}
|
|
@@ -334,6 +334,10 @@ class dt extends G {
|
|
|
334
334
|
set extensions(t) {
|
|
335
335
|
this.#i.extensions = t;
|
|
336
336
|
}
|
|
337
|
+
/** Update worker url */
|
|
338
|
+
set workersURL(t) {
|
|
339
|
+
this.#i.propagateExtensionProperty("workersURL", t);
|
|
340
|
+
}
|
|
337
341
|
//#endregion
|
|
338
342
|
//#region Element methods
|
|
339
343
|
/** Browse files */
|
|
@@ -393,7 +397,7 @@ class dt extends G {
|
|
|
393
397
|
}), this.#n.prepend(this.#s), this.#r = this.attachInternals(), this.#t = W({
|
|
394
398
|
// handles one or multiple files state
|
|
395
399
|
beforeInsertEntries: (i, s) => this.maxFiles < 1 / 0 && s.length + i.length > this.maxFiles ? i.toSpliced(this.maxFiles - s.length) : i
|
|
396
|
-
}), this.#i =
|
|
400
|
+
}), this.#i = P(this.#t), this.#i.on("setExtensions", ({ extensionNames: i }) => {
|
|
397
401
|
this.#m.filter((s) => !i.includes(s)).forEach((s) => {
|
|
398
402
|
delete this[s];
|
|
399
403
|
}), i.forEach((s) => {
|
|
@@ -538,7 +542,7 @@ class dt extends G {
|
|
|
538
542
|
for (const { status: n } of Object.values(i)) {
|
|
539
543
|
if (!n || n.type !== $.Error)
|
|
540
544
|
continue;
|
|
541
|
-
const { flag: m = "customError" } = n?.meta ?? {},
|
|
545
|
+
const { flag: m = "customError" } = n?.meta ?? {}, L = this.#e ? j(
|
|
542
546
|
{
|
|
543
547
|
...n,
|
|
544
548
|
values: {
|
|
@@ -550,7 +554,7 @@ class dt extends G {
|
|
|
550
554
|
},
|
|
551
555
|
this.#e
|
|
552
556
|
) : U(n.code);
|
|
553
|
-
s[m] =
|
|
557
|
+
s[m] = L ?? u(e);
|
|
554
558
|
}
|
|
555
559
|
if (Object.keys(s).length === 0)
|
|
556
560
|
return this.#d();
|
|
@@ -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
|
-
import {
|
|
7
|
+
import { arrayRemoveFalsy as m, arrayInsertAtIndex as p, arrayWrap as a } from "../../utils/array.js";
|
|
8
8
|
import { isArray as c, isFunction as y } from "../../utils/test.js";
|
|
9
9
|
import { hasOwnProp as d } from "../../utils/object.js";
|
|
10
10
|
function u(n) {
|
|
@@ -31,8 +31,8 @@ function u(n) {
|
|
|
31
31
|
return u(void 0);
|
|
32
32
|
const f = i.map(e);
|
|
33
33
|
return h(n, r, (o, l) => {
|
|
34
|
-
const
|
|
35
|
-
return l.splice(
|
|
34
|
+
const g = l.indexOf(o);
|
|
35
|
+
return l.splice(g, 1, ...f), o;
|
|
36
36
|
}), u(n);
|
|
37
37
|
},
|
|
38
38
|
update(r, i) {
|
|
@@ -44,7 +44,7 @@ function u(n) {
|
|
|
44
44
|
append(...r) {
|
|
45
45
|
if (n) {
|
|
46
46
|
let i = N(n);
|
|
47
|
-
s(n, i, r);
|
|
47
|
+
s(n, i, m(r));
|
|
48
48
|
}
|
|
49
49
|
return u(n);
|
|
50
50
|
},
|
|
@@ -74,7 +74,7 @@ function N(n) {
|
|
|
74
74
|
}
|
|
75
75
|
function s(n, t, r) {
|
|
76
76
|
const i = r.map(e);
|
|
77
|
-
return c(n) ? n.splice(t, 0, ...i) :
|
|
77
|
+
return c(n) ? n.splice(t, 0, ...i) : w(n) ? Object.keys(n.if.then).length ? n.if.then.children ? c(n.if.then.children) && (n.if.then.children = p(
|
|
78
78
|
// @ts-ignore
|
|
79
79
|
n.if.then.children,
|
|
80
80
|
t,
|
|
@@ -98,9 +98,9 @@ function h(n, t, r) {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
function v(n) {
|
|
101
|
-
return
|
|
101
|
+
return w(n) ? m([n.if.then, n.elseif?.then, n.else]) : x(n) && n.item ? a(n.item) : n.children ? a(n.children) : [];
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function w(n) {
|
|
104
104
|
return !!(n && d(n, "if"));
|
|
105
105
|
}
|
|
106
106
|
function A(n) {
|
|
@@ -115,7 +115,7 @@ function I(n) {
|
|
|
115
115
|
export {
|
|
116
116
|
x as isComponentNode,
|
|
117
117
|
I as isElementNode,
|
|
118
|
-
|
|
118
|
+
w as isSwitchNode,
|
|
119
119
|
A as isTemplateNode,
|
|
120
120
|
u as nodeTree
|
|
121
121
|
};
|
|
@@ -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
|
};
|