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.
Files changed (252) hide show
  1. package/cdn/assets/index.js +1 -1
  2. package/cdn/locales/ar-ar.js +1 -1
  3. package/cdn/locales/bn-bd.js +1 -1
  4. package/cdn/locales/cs-cz.js +1 -1
  5. package/cdn/locales/da-dk.js +1 -1
  6. package/cdn/locales/de-de.js +1 -1
  7. package/cdn/locales/el-gr.js +1 -1
  8. package/cdn/locales/en-gb.js +1 -1
  9. package/cdn/locales/es-es.js +1 -1
  10. package/cdn/locales/fi-fi.js +1 -1
  11. package/cdn/locales/fr-fr.js +1 -1
  12. package/cdn/locales/hi-in.js +1 -1
  13. package/cdn/locales/hu-hu.js +1 -1
  14. package/cdn/locales/index.js +1 -1
  15. package/cdn/locales/is-is.js +1 -1
  16. package/cdn/locales/it-it.js +1 -1
  17. package/cdn/locales/ja-jp.js +1 -1
  18. package/cdn/locales/ko-kr.js +1 -1
  19. package/cdn/locales/nb-no.js +1 -1
  20. package/cdn/locales/nl-nl.js +1 -1
  21. package/cdn/locales/pl-pl.js +1 -1
  22. package/cdn/locales/pt-pt.js +1 -1
  23. package/cdn/locales/sv-se.js +1 -1
  24. package/cdn/locales/tr-tr.js +1 -1
  25. package/cdn/locales/uk-ua.js +1 -1
  26. package/cdn/locales/vi-vn.js +1 -1
  27. package/cdn/locales/zh-cn.js +1 -1
  28. package/cdn/main.js +2 -2
  29. package/cdn/workers/httpRequest.js +45 -0
  30. package/cdn/workers/httpRequestWorker.js +37 -0
  31. package/cdn/workers/readFile.js +14 -0
  32. package/cdn/workers/readFileWorker.js +6 -0
  33. package/cdn/workers/transformImage.js +16 -0
  34. package/cdn/workers/transformImageWorker.js +8 -0
  35. package/esm/assets/index.js +1 -1
  36. package/esm/common/console.js +1 -1
  37. package/esm/common/entry.js +1 -1
  38. package/esm/common/perceivedPerformanceProxy.js +1 -1
  39. package/esm/common/readEntriesFromDataTransfer.js +1 -1
  40. package/esm/common/ssr.js +1 -1
  41. package/esm/common/status.js +1 -1
  42. package/esm/core/entryTree.js +1 -1
  43. package/esm/core/extensionManager.js +28 -28
  44. package/esm/core/taskScheduler.js +78 -97
  45. package/esm/dev/index.js +1 -1
  46. package/esm/elements/FilePondDefault/index.css.js +1 -1
  47. package/esm/elements/FilePondDefault/index.js +46 -45
  48. package/esm/elements/FilePondDropArea/index.css.js +1 -1
  49. package/esm/elements/FilePondDropArea/index.js +1 -1
  50. package/esm/elements/FilePondDropArea/index.svelte.js +1 -1
  51. package/esm/elements/FilePondDropIndicator/index.css.js +1 -1
  52. package/esm/elements/FilePondDropIndicator/index.js +1 -1
  53. package/esm/elements/FilePondDropIndicator/index.svelte.js +1 -1
  54. package/esm/elements/FilePondEntryList/components/Entry/index.css.js +1 -1
  55. package/esm/elements/FilePondEntryList/components/Entry/index.js +1 -1
  56. package/esm/elements/FilePondEntryList/components/Entry/index.svelte.js +1 -1
  57. package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.css.js +1 -1
  58. package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.js +1 -1
  59. package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.svelte.js +80 -80
  60. package/esm/elements/FilePondEntryList/components/EntryList/index.css.js +1 -1
  61. package/esm/elements/FilePondEntryList/components/EntryList/index.js +1 -1
  62. package/esm/elements/FilePondEntryList/components/EntryList/index.svelte.js +1 -1
  63. package/esm/elements/FilePondEntryList/components/EntryListItem/index.css.js +1 -1
  64. package/esm/elements/FilePondEntryList/components/EntryListItem/index.js +1 -1
  65. package/esm/elements/FilePondEntryList/components/EntryListItem/index.svelte.js +1 -1
  66. package/esm/elements/FilePondEntryList/components/EntryListItemPlaceholder/index.svelte.js +1 -1
  67. package/esm/elements/FilePondEntryList/components/EntryStatus/index.css.js +1 -1
  68. package/esm/elements/FilePondEntryList/components/EntryStatus/index.js +1 -1
  69. package/esm/elements/FilePondEntryList/components/EntryStatus/index.svelte.js +1 -1
  70. package/esm/elements/FilePondEntryList/components/MediaImage/components/BitmapRenderer.svelte.js +65 -60
  71. package/esm/elements/FilePondEntryList/components/MediaImage/components/BitmapRendererCache.js +1 -1
  72. package/esm/elements/FilePondEntryList/components/MediaImage/index.css.js +1 -1
  73. package/esm/elements/FilePondEntryList/components/MediaImage/index.js +2 -1
  74. package/esm/elements/FilePondEntryList/components/MediaImage/index.svelte.js +70 -70
  75. package/esm/elements/FilePondEntryList/components/MediaPane/index.css.js +2 -2
  76. package/esm/elements/FilePondEntryList/components/MediaPane/index.js +1 -1
  77. package/esm/elements/FilePondEntryList/components/MediaPane/index.svelte.js +1 -1
  78. package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.css.js +1 -1
  79. package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.js +1 -1
  80. package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.svelte.js +1 -1
  81. package/esm/elements/FilePondEntryList/components/MediaVideo/index.css.js +1 -1
  82. package/esm/elements/FilePondEntryList/components/MediaVideo/index.js +1 -1
  83. package/esm/elements/FilePondEntryList/components/MediaVideo/index.svelte.js +1 -1
  84. package/esm/elements/FilePondEntryList/contexts/appContext.js +1 -1
  85. package/esm/elements/FilePondEntryList/contexts/dragContext.js +1 -1
  86. package/esm/elements/FilePondEntryList/contexts/dropContext.js +1 -1
  87. package/esm/elements/FilePondEntryList/contexts/entryContext.js +1 -1
  88. package/esm/elements/FilePondEntryList/contexts/springElementTreeContext.js +1 -1
  89. package/esm/elements/FilePondEntryList/index.css.js +1 -1
  90. package/esm/elements/FilePondEntryList/index.js +2 -1
  91. package/esm/elements/FilePondEntryList/index.svelte.js +166 -166
  92. package/esm/elements/FilePondInput/index.css.js +1 -1
  93. package/esm/elements/FilePondInput/index.js +15 -11
  94. package/esm/elements/FilePondSvelteComponent/index.svelte.js +1 -1
  95. package/esm/elements/attachments/dragarea.js +1 -1
  96. package/esm/elements/attachments/droparea.js +1 -1
  97. package/esm/elements/attachments/measurable.js +1 -1
  98. package/esm/elements/attachments/resizable.js +1 -1
  99. package/esm/elements/attachments/transitions.js +1 -1
  100. package/esm/elements/common/animationGuard.js +1 -1
  101. package/esm/elements/common/animationPreference.svelte.js +1 -1
  102. package/esm/elements/common/dragDrop.js +1 -1
  103. package/esm/elements/common/event.js +1 -1
  104. package/esm/elements/common/extendStyles.js +1 -1
  105. package/esm/elements/common/getClosestElement.js +1 -1
  106. package/esm/elements/common/html.js +1 -1
  107. package/esm/elements/common/nodeTree.js +9 -9
  108. package/esm/elements/common/store.svelte.js +1 -1
  109. package/esm/elements/common/string.js +1 -1
  110. package/esm/elements/common/transition.js +1 -1
  111. package/esm/elements/components/BooleanInput/index.css.js +1 -1
  112. package/esm/elements/components/BooleanInput/index.js +1 -1
  113. package/esm/elements/components/BooleanInput/index.svelte.js +1 -1
  114. package/esm/elements/components/Button/index.css.js +1 -1
  115. package/esm/elements/components/Button/index.js +1 -1
  116. package/esm/elements/components/Button/index.svelte.js +1 -1
  117. package/esm/elements/components/ElementPane/index.css.js +1 -1
  118. package/esm/elements/components/ElementPane/index.js +1 -1
  119. package/esm/elements/components/ElementPane/index.svelte.js +1 -1
  120. package/esm/elements/components/ElementSkeleton/index.css.js +1 -1
  121. package/esm/elements/components/ElementSkeleton/index.js +1 -1
  122. package/esm/elements/components/ElementSkeleton/index.svelte.js +1 -1
  123. package/esm/elements/components/FilenameInput/index.css.js +1 -1
  124. package/esm/elements/components/FilenameInput/index.js +1 -1
  125. package/esm/elements/components/FilenameInput/index.svelte.js +1 -1
  126. package/esm/elements/components/NodeList/index.svelte.js +1 -1
  127. package/esm/elements/components/ProgressIndicator/index.css.js +2 -2
  128. package/esm/elements/components/ProgressIndicator/index.js +1 -1
  129. package/esm/elements/components/ProgressIndicator/index.svelte.js +70 -70
  130. package/esm/elements/components/RangeInput/index.css.js +1 -1
  131. package/esm/elements/components/RangeInput/index.js +1 -1
  132. package/esm/elements/components/RangeInput/index.svelte.js +1 -1
  133. package/esm/elements/components/SpringElement/index.svelte.js +1 -1
  134. package/esm/elements/components/TextInput/index.css.js +1 -1
  135. package/esm/elements/components/TextInput/index.js +1 -1
  136. package/esm/elements/components/TextInput/index.svelte.js +1 -1
  137. package/esm/extensions/blob-loader.js +1 -1
  138. package/esm/extensions/canvas-loader.js +1 -1
  139. package/esm/extensions/chunked-upload-store.js +1 -1
  140. package/esm/extensions/clipboard-source.js +1 -1
  141. package/esm/extensions/common/createExtension.js +1 -1
  142. package/esm/extensions/common/createStoreExtension.js +1 -1
  143. package/esm/extensions/common/createTransformExtension.js +1 -1
  144. package/esm/extensions/common/createValidatorExtension.js +1 -1
  145. package/esm/extensions/console-view.js +1 -1
  146. package/esm/extensions/data-transfer-loader.js +1 -1
  147. package/esm/extensions/data-url-store.js +24 -19
  148. package/esm/extensions/drag-drop-source.js +1 -1
  149. package/esm/extensions/dropbox-source.js +1 -1
  150. package/esm/extensions/entry-list-view.js +1 -1
  151. package/esm/extensions/file-extension-validator.js +1 -1
  152. package/esm/extensions/file-input-source.js +1 -1
  153. package/esm/extensions/file-input-store.js +1 -1
  154. package/esm/extensions/file-mime-type-validator.js +1 -1
  155. package/esm/extensions/file-name-transform.js +1 -1
  156. package/esm/extensions/file-name-validator.js +1 -1
  157. package/esm/extensions/file-size-validator.js +1 -1
  158. package/esm/extensions/form-post-store.js +1 -1
  159. package/esm/extensions/image-bitmap-transform.js +56 -54
  160. package/esm/extensions/index.js +1 -1
  161. package/esm/extensions/list-count-validator.js +1 -1
  162. package/esm/extensions/list-size-validator.js +1 -1
  163. package/esm/extensions/media-resolution-validator.js +1 -1
  164. package/esm/extensions/object-url-store.js +1 -1
  165. package/esm/extensions/simulated-loader.js +74 -65
  166. package/esm/extensions/simulated-store.js +1 -1
  167. package/esm/extensions/text-input-store.js +1 -1
  168. package/esm/extensions/url-loader.js +74 -71
  169. package/esm/extensions/value-callback-store.js +1 -1
  170. package/esm/index.js +1 -1
  171. package/esm/locales/ar-ar.js +1 -1
  172. package/esm/locales/bn-bd.js +1 -1
  173. package/esm/locales/cs-cz.js +1 -1
  174. package/esm/locales/da-dk.js +1 -1
  175. package/esm/locales/de-de.js +1 -1
  176. package/esm/locales/el-gr.js +1 -1
  177. package/esm/locales/en-gb.js +1 -1
  178. package/esm/locales/es-es.js +1 -1
  179. package/esm/locales/fi-fi.js +1 -1
  180. package/esm/locales/fr-fr.js +1 -1
  181. package/esm/locales/hi-in.js +1 -1
  182. package/esm/locales/hu-hu.js +1 -1
  183. package/esm/locales/index.js +1 -1
  184. package/esm/locales/is-is.js +1 -1
  185. package/esm/locales/it-it.js +1 -1
  186. package/esm/locales/ja-jp.js +1 -1
  187. package/esm/locales/ko-kr.js +1 -1
  188. package/esm/locales/nb-no.js +1 -1
  189. package/esm/locales/nl-nl.js +1 -1
  190. package/esm/locales/pl-pl.js +1 -1
  191. package/esm/locales/pt-pt.js +1 -1
  192. package/esm/locales/sv-se.js +1 -1
  193. package/esm/locales/tr-tr.js +1 -1
  194. package/esm/locales/uk-ua.js +1 -1
  195. package/esm/locales/vi-vn.js +1 -1
  196. package/esm/locales/zh-cn.js +1 -1
  197. package/esm/templates/entry.js +2 -2
  198. package/esm/templates/helpers.js +1 -1
  199. package/esm/templates/index.js +1 -1
  200. package/esm/templates/media.js +119 -111
  201. package/esm/utils/array.js +1 -1
  202. package/esm/utils/bounds.js +1 -1
  203. package/esm/utils/cache.js +1 -1
  204. package/esm/utils/canvasToBlob.js +1 -1
  205. package/esm/utils/date.js +1 -1
  206. package/esm/utils/debounce.js +1 -1
  207. package/esm/utils/dom.js +1 -1
  208. package/esm/utils/file.js +1 -1
  209. package/esm/utils/functionToBlob.js +1 -1
  210. package/esm/utils/keyboard.js +1 -1
  211. package/esm/utils/math.js +1 -1
  212. package/esm/utils/media.js +1 -1
  213. package/esm/utils/number.js +1 -1
  214. package/esm/utils/object.js +1 -1
  215. package/esm/utils/objectURL.js +1 -1
  216. package/esm/utils/placeholder.js +1 -1
  217. package/esm/utils/poly.js +1 -1
  218. package/esm/utils/pubsub.js +1 -1
  219. package/esm/utils/rect.js +1 -1
  220. package/esm/utils/size.js +1 -1
  221. package/esm/utils/sleep.js +1 -1
  222. package/esm/utils/string.js +1 -1
  223. package/esm/utils/support.js +1 -1
  224. package/esm/utils/test.js +1 -1
  225. package/esm/utils/thread.js +47 -42
  226. package/esm/utils/tree.js +1 -1
  227. package/esm/utils/url.js +1 -1
  228. package/esm/utils/vector.js +1 -1
  229. package/esm/utils/window.js +1 -1
  230. package/esm/utils/xhr.js +88 -113
  231. package/esm/workers/httpRequest.js +45 -0
  232. package/esm/workers/httpRequestWorker.js +37 -0
  233. package/esm/workers/readFile.js +14 -0
  234. package/esm/workers/readFileWorker.js +6 -0
  235. package/esm/workers/transformImage.js +16 -0
  236. package/esm/workers/transformImageWorker.js +8 -0
  237. package/package.json +5 -1
  238. package/types/core/taskScheduler.d.ts +2 -2
  239. package/types/elements/FilePondDefault/index.d.ts +2 -0
  240. package/types/elements/FilePondInput/index.d.ts +2 -0
  241. package/types/elements/common/nodeTree.d.ts +1 -1
  242. package/types/extensions/data-url-store.d.ts +2 -0
  243. package/types/extensions/image-bitmap-transform.d.ts +2 -0
  244. package/types/extensions/simulated-loader.d.ts +2 -0
  245. package/types/extensions/url-loader.d.ts +2 -0
  246. package/types/templates/media.d.ts +14 -0
  247. package/types/types/index.d.ts +5 -11
  248. package/types/utils/thread.d.ts +6 -0
  249. package/types/utils/xhr.d.ts +1 -0
  250. package/types/workers/httpRequest.d.ts +23 -0
  251. package/types/workers/readFile.d.ts +9 -0
  252. package/types/workers/transformImage.d.ts +6 -0
@@ -1,14 +1,14 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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 B } from "../../core/extensionManager.js";
8
- import { createEntryTree as L } from "../../core/entryTree.js";
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 D, isBlobOrFile as _, isCanvas as j } from "../../utils/test.js";
11
- import { stringReplaceVariables as u, statusToLabel as R, statusCodeToLocaleKey as U } from "../common/string.js";
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 L({
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) || _(r) || j(r) || I(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, D(t)) {
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 = B(this.#t), this.#i.on("setExtensions", ({ extensionNames: 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 ?? {}, P = this.#e ? R(
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] = P ?? u(e);
557
+ s[m] = L ?? u(e);
554
558
  }
555
559
  if (Object.keys(s).length === 0)
556
560
  return this.#d();
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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 { arrayInsertAtIndex as p, arrayRemoveFalsy as g, arrayWrap as a } from "../../utils/array.js";
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 w = l.indexOf(o);
35
- return l.splice(w, 1, ...f), o;
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) : m(n) ? Object.keys(n.if.then).length ? n.if.then.children ? c(n.if.then.children) && (n.if.then.children = p(
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 m(n) ? g([n.if.then, n.elseif?.then, n.else]) : x(n) && n.item ? a(n.item) : n.children ? a(n.children) : [];
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 m(n) {
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
- m as isSwitchNode,
118
+ w as isSwitchNode,
119
119
  A as isTemplateNode,
120
120
  u as nodeTree
121
121
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.20
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