@uploadcare/file-uploader 1.13.2 → 1.14.0-alpha.11

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 (287) hide show
  1. package/abstract/ActivityBlock.d.ts +5 -5
  2. package/abstract/ActivityBlock.d.ts.map +1 -1
  3. package/abstract/ActivityBlock.js +10 -15
  4. package/abstract/Block.d.ts +9 -9
  5. package/abstract/Block.d.ts.map +1 -1
  6. package/abstract/Block.js +15 -0
  7. package/abstract/CTX.d.ts +6 -6
  8. package/abstract/CTX.d.ts.map +1 -1
  9. package/abstract/CTX.js +3 -1
  10. package/abstract/LocaleManager.d.ts +3 -3
  11. package/abstract/LocaleManager.d.ts.map +1 -1
  12. package/abstract/ModalManager.d.ts +124 -0
  13. package/abstract/ModalManager.d.ts.map +1 -0
  14. package/abstract/ModalManager.js +227 -0
  15. package/abstract/SecureUploadsManager.d.ts +2 -2
  16. package/abstract/SecureUploadsManager.d.ts.map +1 -1
  17. package/abstract/SolutionBlock.d.ts +2 -2
  18. package/abstract/SolutionBlock.d.ts.map +1 -1
  19. package/abstract/TypedCollection.d.ts.map +1 -1
  20. package/abstract/TypedData.d.ts +1 -1
  21. package/abstract/TypedData.d.ts.map +1 -1
  22. package/abstract/UploaderBlock.d.ts +8 -5
  23. package/abstract/UploaderBlock.d.ts.map +1 -1
  24. package/abstract/UploaderBlock.js +24 -8
  25. package/abstract/UploaderPublicApi.d.ts +25 -23
  26. package/abstract/UploaderPublicApi.d.ts.map +1 -1
  27. package/abstract/UploaderPublicApi.js +48 -10
  28. package/abstract/ValidationManager.d.ts +4 -4
  29. package/abstract/ValidationManager.d.ts.map +1 -1
  30. package/abstract/a11y.d.ts +2 -2
  31. package/abstract/a11y.d.ts.map +1 -1
  32. package/abstract/buildOutputCollectionState.d.ts +1 -1
  33. package/abstract/buildOutputCollectionState.d.ts.map +1 -1
  34. package/abstract/defineComponents.d.ts.map +1 -1
  35. package/abstract/l10nProcessor.d.ts.map +1 -1
  36. package/abstract/loadFileUploaderFrom.d.ts +1 -1
  37. package/abstract/loadFileUploaderFrom.d.ts.map +1 -1
  38. package/abstract/localeRegistry.d.ts.map +1 -1
  39. package/abstract/sharedConfigKey.d.ts.map +1 -1
  40. package/abstract/uploadEntrySchema.d.ts +2 -2
  41. package/abstract/uploadEntrySchema.d.ts.map +1 -1
  42. package/blocks/CameraSource/CameraSource.d.ts +9 -9
  43. package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
  44. package/blocks/CameraSource/CameraSource.js +1 -0
  45. package/blocks/CameraSource/calcCameraModes.d.ts +5 -0
  46. package/blocks/CameraSource/calcCameraModes.d.ts.map +1 -0
  47. package/blocks/CameraSource/calcCameraModes.js +11 -0
  48. package/blocks/CameraSource/constants.d.ts +1 -0
  49. package/blocks/CameraSource/constants.d.ts.map +1 -1
  50. package/blocks/CameraSource/constants.js +2 -0
  51. package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +1 -1
  52. package/blocks/CloudImageEditor/src/CropFrame.d.ts +1 -1
  53. package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +3 -3
  54. package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +1 -1
  55. package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -1
  56. package/blocks/CloudImageEditor/src/EditorSlider.d.ts +1 -1
  57. package/blocks/CloudImageEditor/src/EditorSlider.d.ts.map +1 -1
  58. package/blocks/CloudImageEditor/src/EditorToolbar.d.ts +1 -1
  59. package/blocks/CloudImageEditor/src/crop-utils.d.ts +14 -14
  60. package/blocks/CloudImageEditor/src/crop-utils.d.ts.map +1 -1
  61. package/blocks/CloudImageEditor/src/cropper-constants.d.ts.map +1 -1
  62. package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts +1 -1
  63. package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts.map +1 -1
  64. package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +1 -1
  65. package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +3 -3
  66. package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts.map +1 -1
  67. package/blocks/CloudImageEditor/src/state.d.ts +4 -4
  68. package/blocks/CloudImageEditor/src/svg-sprite.d.ts.map +1 -1
  69. package/blocks/CloudImageEditor/src/types.d.ts +8 -58
  70. package/blocks/CloudImageEditor/src/types.d.ts.map +1 -1
  71. package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +1 -1
  72. package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -1
  73. package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.js +2 -0
  74. package/blocks/Config/Config.d.ts +3 -12
  75. package/blocks/Config/Config.d.ts.map +1 -1
  76. package/blocks/Config/assertions.d.ts +1 -1
  77. package/blocks/Config/initialConfig.d.ts +1 -1
  78. package/blocks/Config/initialConfig.d.ts.map +1 -1
  79. package/blocks/Config/initialConfig.js +4 -0
  80. package/blocks/Config/normalizeConfigValue.d.ts +2 -1
  81. package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
  82. package/blocks/Config/normalizeConfigValue.js +19 -106
  83. package/blocks/Config/side-effects.d.ts.map +1 -1
  84. package/blocks/Config/validatorsType.d.ts +37 -0
  85. package/blocks/Config/validatorsType.d.ts.map +1 -0
  86. package/blocks/Config/validatorsType.js +134 -0
  87. package/blocks/DropArea/DropArea.d.ts +3 -2
  88. package/blocks/DropArea/DropArea.d.ts.map +1 -1
  89. package/blocks/DropArea/DropArea.js +21 -2
  90. package/blocks/DropArea/addDropzone.d.ts.map +1 -1
  91. package/blocks/DropArea/getDropItems.d.ts +2 -2
  92. package/blocks/DropArea/getDropItems.d.ts.map +1 -1
  93. package/blocks/ExternalSource/ExternalSource.d.ts +3 -3
  94. package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -1
  95. package/blocks/ExternalSource/ExternalSource.js +2 -1
  96. package/blocks/ExternalSource/MessageBridge.d.ts +3 -3
  97. package/blocks/ExternalSource/MessageBridge.d.ts.map +1 -1
  98. package/blocks/ExternalSource/query-string.d.ts.map +1 -1
  99. package/blocks/ExternalSource/types.d.ts +64 -64
  100. package/blocks/ExternalSource/types.d.ts.map +1 -1
  101. package/blocks/FileItem/FileItem.d.ts +5 -6
  102. package/blocks/FileItem/FileItem.d.ts.map +1 -1
  103. package/blocks/FileItem/FileItem.js +40 -42
  104. package/blocks/FileItem/file-item.css +90 -0
  105. package/blocks/Img/ImgBase.d.ts +3 -3
  106. package/blocks/Img/ImgBase.d.ts.map +1 -1
  107. package/blocks/Img/ImgConfig.d.ts.map +1 -1
  108. package/blocks/Img/configurations.d.ts.map +1 -1
  109. package/blocks/Modal/Modal.d.ts +21 -2
  110. package/blocks/Modal/Modal.d.ts.map +1 -1
  111. package/blocks/Modal/Modal.js +52 -24
  112. package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -1
  113. package/blocks/ProgressBar/ProgressBar.js +1 -0
  114. package/blocks/ProgressBar/progress-bar.css +1 -0
  115. package/blocks/Range/Range.d.ts.map +1 -1
  116. package/blocks/SimpleBtn/SimpleBtn.d.ts +2 -2
  117. package/blocks/SimpleBtn/SimpleBtn.d.ts.map +1 -1
  118. package/blocks/SimpleBtn/SimpleBtn.js +1 -1
  119. package/blocks/SourceBtn/SourceBtn.d.ts +2 -2
  120. package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
  121. package/blocks/SourceBtn/SourceBtn.js +29 -3
  122. package/blocks/SourceList/SourceList.d.ts.map +1 -1
  123. package/blocks/SourceList/SourceList.js +20 -0
  124. package/blocks/Spinner/Spinner.d.ts.map +1 -1
  125. package/blocks/StartFrom/StartFrom.js +1 -1
  126. package/blocks/Thumb/Thumb.d.ts +48 -0
  127. package/blocks/Thumb/Thumb.d.ts.map +1 -0
  128. package/blocks/Thumb/Thumb.js +169 -0
  129. package/blocks/Thumb/thumb.css +4 -0
  130. package/blocks/UploadCtxProvider/EventEmitter.d.ts +20 -20
  131. package/blocks/UploadCtxProvider/EventEmitter.d.ts.map +1 -1
  132. package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +4 -4
  133. package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts.map +1 -1
  134. package/blocks/UploadList/UploadList.d.ts +4 -2
  135. package/blocks/UploadList/UploadList.d.ts.map +1 -1
  136. package/blocks/UploadList/UploadList.js +16 -1
  137. package/blocks/UploadList/upload-list.css +23 -0
  138. package/blocks/UrlSource/UrlSource.d.ts.map +1 -1
  139. package/blocks/UrlSource/UrlSource.js +1 -0
  140. package/blocks/svg-backgrounds/svg-backgrounds.d.ts +3 -3
  141. package/blocks/svg-backgrounds/svg-backgrounds.d.ts.map +1 -1
  142. package/blocks/themes/uc-basic/common.css +1 -1
  143. package/blocks/themes/uc-basic/index.css +1 -0
  144. package/blocks/themes/uc-basic/svg-sprite.d.ts +1 -1
  145. package/blocks/themes/uc-basic/svg-sprite.d.ts.map +1 -1
  146. package/blocks/themes/uc-basic/svg-sprite.js +1 -1
  147. package/blocks/themes/uc-basic/theme.css +12 -0
  148. package/blocks/utils/UploadSource.d.ts +6 -0
  149. package/blocks/utils/UploadSource.d.ts.map +1 -1
  150. package/blocks/utils/UploadSource.js +7 -0
  151. package/blocks/utils/debounce.d.ts +3 -1
  152. package/blocks/utils/debounce.d.ts.map +1 -1
  153. package/blocks/utils/resizeImage.d.ts +1 -1
  154. package/blocks/utils/resizeImage.d.ts.map +1 -1
  155. package/blocks/utils/supportCapture.d.ts +2 -0
  156. package/blocks/utils/supportCapture.d.ts.map +1 -0
  157. package/blocks/utils/supportCapture.js +3 -0
  158. package/blocks/utils/throttle.d.ts +3 -1
  159. package/blocks/utils/throttle.d.ts.map +1 -1
  160. package/blocks/utils/userAgent.d.ts +1 -1
  161. package/blocks/utils/userAgent.d.ts.map +1 -1
  162. package/env.d.ts +1 -1
  163. package/env.d.ts.map +1 -1
  164. package/env.js +1 -1
  165. package/index.d.ts +2 -0
  166. package/index.js +2 -0
  167. package/index.ssr.d.ts +88 -1
  168. package/index.ssr.d.ts.map +1 -1
  169. package/index.ssr.js +119 -10
  170. package/locales/file-uploader/ar.d.ts +2 -0
  171. package/locales/file-uploader/ar.js +2 -0
  172. package/locales/file-uploader/az.d.ts +2 -0
  173. package/locales/file-uploader/az.js +2 -0
  174. package/locales/file-uploader/ca.d.ts +2 -0
  175. package/locales/file-uploader/ca.js +2 -0
  176. package/locales/file-uploader/cs.d.ts +2 -0
  177. package/locales/file-uploader/cs.js +2 -0
  178. package/locales/file-uploader/da.d.ts +2 -0
  179. package/locales/file-uploader/da.js +2 -0
  180. package/locales/file-uploader/de.d.ts +2 -0
  181. package/locales/file-uploader/de.js +2 -0
  182. package/locales/file-uploader/el.d.ts +2 -0
  183. package/locales/file-uploader/el.js +2 -0
  184. package/locales/file-uploader/en.d.ts +2 -0
  185. package/locales/file-uploader/en.js +2 -0
  186. package/locales/file-uploader/es.d.ts +2 -0
  187. package/locales/file-uploader/es.js +2 -0
  188. package/locales/file-uploader/et.d.ts +2 -0
  189. package/locales/file-uploader/et.js +2 -0
  190. package/locales/file-uploader/fi.d.ts +2 -0
  191. package/locales/file-uploader/fi.js +2 -0
  192. package/locales/file-uploader/fr.d.ts +2 -0
  193. package/locales/file-uploader/fr.js +2 -0
  194. package/locales/file-uploader/he.d.ts +2 -0
  195. package/locales/file-uploader/he.js +2 -0
  196. package/locales/file-uploader/hy.d.ts +2 -0
  197. package/locales/file-uploader/hy.js +2 -0
  198. package/locales/file-uploader/is.d.ts +2 -0
  199. package/locales/file-uploader/is.js +2 -0
  200. package/locales/file-uploader/it.d.ts +2 -0
  201. package/locales/file-uploader/it.js +2 -0
  202. package/locales/file-uploader/ja.d.ts +2 -0
  203. package/locales/file-uploader/ja.js +2 -0
  204. package/locales/file-uploader/ka.d.ts +2 -0
  205. package/locales/file-uploader/ka.js +2 -0
  206. package/locales/file-uploader/kk.d.ts +2 -0
  207. package/locales/file-uploader/kk.js +2 -0
  208. package/locales/file-uploader/ko.d.ts +2 -0
  209. package/locales/file-uploader/ko.js +2 -0
  210. package/locales/file-uploader/lv.d.ts +2 -0
  211. package/locales/file-uploader/lv.js +2 -0
  212. package/locales/file-uploader/nb.d.ts +2 -0
  213. package/locales/file-uploader/nb.js +2 -0
  214. package/locales/file-uploader/nl.d.ts +2 -0
  215. package/locales/file-uploader/nl.js +2 -0
  216. package/locales/file-uploader/pl.d.ts +2 -0
  217. package/locales/file-uploader/pl.js +2 -0
  218. package/locales/file-uploader/pt.d.ts +2 -0
  219. package/locales/file-uploader/pt.js +2 -0
  220. package/locales/file-uploader/ro.d.ts +2 -0
  221. package/locales/file-uploader/ro.js +2 -0
  222. package/locales/file-uploader/ru.d.ts +2 -0
  223. package/locales/file-uploader/ru.js +2 -0
  224. package/locales/file-uploader/sk.d.ts +2 -0
  225. package/locales/file-uploader/sk.js +2 -0
  226. package/locales/file-uploader/sr.d.ts +2 -0
  227. package/locales/file-uploader/sr.js +2 -0
  228. package/locales/file-uploader/sv.d.ts +2 -0
  229. package/locales/file-uploader/sv.js +2 -0
  230. package/locales/file-uploader/tr.d.ts +2 -0
  231. package/locales/file-uploader/tr.js +2 -0
  232. package/locales/file-uploader/uk.d.ts +2 -0
  233. package/locales/file-uploader/uk.js +2 -0
  234. package/locales/file-uploader/vi.d.ts +2 -0
  235. package/locales/file-uploader/vi.js +2 -0
  236. package/locales/file-uploader/zh-TW.d.ts +2 -0
  237. package/locales/file-uploader/zh-TW.js +2 -0
  238. package/locales/file-uploader/zh.d.ts +2 -0
  239. package/locales/file-uploader/zh.js +2 -0
  240. package/package.json +4 -2
  241. package/solutions/file-uploader/inline/FileUploaderInline.d.ts +2 -2
  242. package/solutions/file-uploader/inline/FileUploaderInline.d.ts.map +1 -1
  243. package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts +35 -0
  244. package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -1
  245. package/solutions/file-uploader/minimal/FileUploaderMinimal.js +122 -9
  246. package/solutions/file-uploader/minimal/index.css +25 -24
  247. package/solutions/file-uploader/minimal/index.d.ts +1 -13
  248. package/solutions/file-uploader/minimal/index.js +1 -13
  249. package/solutions/file-uploader/regular/FileUploaderRegular.d.ts +3 -5
  250. package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -1
  251. package/solutions/file-uploader/regular/FileUploaderRegular.js +17 -16
  252. package/types/exported.d.ts +7 -0
  253. package/utils/cdn-utils.d.ts +3 -3
  254. package/utils/cdn-utils.d.ts.map +1 -1
  255. package/utils/fileTypes.d.ts +1 -1
  256. package/utils/fileTypes.d.ts.map +1 -1
  257. package/utils/getPluralForm.d.ts.map +1 -1
  258. package/utils/isSecureTokenExpired.d.ts +1 -1
  259. package/utils/memoize.d.ts.map +1 -1
  260. package/utils/mixinClass.d.ts +3 -1
  261. package/utils/mixinClass.d.ts.map +1 -1
  262. package/utils/prettyBytes.d.ts.map +1 -1
  263. package/utils/template-utils.d.ts +1 -1
  264. package/utils/template-utils.d.ts.map +1 -1
  265. package/utils/toKebabCase.d.ts.map +1 -1
  266. package/utils/transparentPixelSrc.d.ts.map +1 -1
  267. package/utils/uniqueArray.d.ts.map +1 -1
  268. package/utils/validators/collection/validateCollectionUploadError.d.ts +1 -1
  269. package/utils/validators/collection/validateMultiple.d.ts +1 -1
  270. package/utils/validators/file/validateFileType.d.ts +1 -1
  271. package/utils/validators/file/validateIsImage.d.ts +1 -1
  272. package/utils/validators/file/validateMaxSizeLimit.d.ts +1 -1
  273. package/utils/validators/file/validateUploadError.d.ts +1 -1
  274. package/utils/waitForAttribute.d.ts +1 -1
  275. package/utils/waitForAttribute.d.ts.map +1 -1
  276. package/web/file-uploader.iife.min.js +4 -4
  277. package/web/file-uploader.min.js +4 -4
  278. package/web/uc-basic.min.css +1 -1
  279. package/web/uc-cloud-image-editor.min.css +1 -1
  280. package/web/uc-cloud-image-editor.min.js +4 -4
  281. package/web/uc-file-uploader-inline.min.css +1 -1
  282. package/web/uc-file-uploader-inline.min.js +4 -4
  283. package/web/uc-file-uploader-minimal.min.css +1 -1
  284. package/web/uc-file-uploader-minimal.min.js +4 -3
  285. package/web/uc-file-uploader-regular.min.css +1 -1
  286. package/web/uc-file-uploader-regular.min.js +4 -4
  287. package/web/uc-img.min.js +2 -2
@@ -1,4 +1,39 @@
1
1
  export class FileUploaderMinimal extends SolutionBlock {
2
+ init$: {
3
+ singleUpload: boolean;
4
+ isHiddenStartFrom: boolean;
5
+ classUploadList: string;
6
+ classStartFrom: string;
7
+ '*commonProgress': number;
8
+ '*uploadList': never[];
9
+ '*uploadQueue': import("@uploadcare/upload-client").Queue;
10
+ '*collectionErrors': ReturnType<import("./index.js").OutputErrorCollection>[];
11
+ '*collectionState': import("./index.js").OutputCollectionState | null;
12
+ '*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
13
+ '*uploadTrigger': Set<string>;
14
+ '*secureUploadsManager': import("../../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
15
+ '*currentActivity': null;
16
+ '*currentActivityParams': {};
17
+ '*history': never[];
18
+ '*historyBack': null;
19
+ '*closeModal': () => void;
20
+ };
21
+ _handleModalOpen(data: {
22
+ id: import("../../../abstract/ModalManager.js").ModalId;
23
+ modal?: import("../../../abstract/ModalManager.js").ModalNode;
24
+ }): void;
25
+ _handleModalClose(data: {
26
+ id: import("../../../abstract/ModalManager.js").ModalId;
27
+ modal?: import("../../../abstract/ModalManager.js").ModalNode;
28
+ }): void;
29
+ handleModalOpen: ((data: {
30
+ id: import("../../../abstract/ModalManager.js").ModalId;
31
+ modal?: import("../../../abstract/ModalManager.js").ModalNode;
32
+ }) => void) | undefined;
33
+ handleModalClose: ((data: {
34
+ id: import("../../../abstract/ModalManager.js").ModalId;
35
+ modal?: import("../../../abstract/ModalManager.js").ModalNode;
36
+ }) => void) | undefined;
2
37
  }
3
38
  export namespace FileUploaderMinimal {
4
39
  let template: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FileUploaderMinimal.d.ts","sourceRoot":"","sources":["FileUploaderMinimal.js"],"names":[],"mappings":"AAGA;CAkCC;;;;8BApC6B,oCAAoC"}
1
+ {"version":3,"file":"FileUploaderMinimal.d.ts","sourceRoot":"","sources":["FileUploaderMinimal.js"],"names":[],"mappings":"AAQA;IAMI;;;;;;;;+CASqD,YAAU;mCAEf,YAClD;6BAKS,2BAA2B;;wCAIhC,2CAGI;;;;;;MAlBL;;;aAXY,CAAC;;;;aAAD,CAAC;;IAyGd;;aAzGa,CAAC;4BAyGyC;IACvD;;aA1Ga,CAAC;4BA0G2C;CAW5D;;;;8BA5H6B,oCAAoC"}
@@ -1,15 +1,72 @@
1
+ //@ts-check
1
2
  import { ActivityBlock } from '../../../abstract/ActivityBlock.js';
2
3
  import { SolutionBlock } from '../../../abstract/SolutionBlock.js';
4
+ import { ModalEvents } from '../../../abstract/ModalManager.js';
5
+
6
+ const ACTIVE_CLASS = 'active';
7
+ const EMPTY_CLASS = '';
3
8
 
4
9
  export class FileUploaderMinimal extends SolutionBlock {
5
10
  static styleAttrs = [...super.styleAttrs, 'uc-file-uploader-minimal'];
6
11
 
12
+ constructor() {
13
+ super();
14
+
15
+ this.init$ = {
16
+ ...this.init$,
17
+ singleUpload: false,
18
+ isHiddenStartFrom: false,
19
+ classUploadList: EMPTY_CLASS,
20
+ classStartFrom: EMPTY_CLASS,
21
+ };
22
+ }
23
+
24
+ /** @type {import('../../../abstract/ModalManager.js').ModalCb} */
25
+ _handleModalOpen(e) {
26
+ if (e.id === ActivityBlock.activities.CLOUD_IMG_EDIT) {
27
+ this.set$({
28
+ classUploadList: ACTIVE_CLASS,
29
+ });
30
+ }
31
+
32
+ if (this.$['*currentActivity'] === ActivityBlock.activities.UPLOAD_LIST) {
33
+ this.set$({
34
+ classUploadList: ACTIVE_CLASS,
35
+ isHiddenStartFrom: true,
36
+ });
37
+ }
38
+
39
+ if (this.$['*uploadList']?.length <= 0) {
40
+ this.set$({
41
+ classStartFrom: ACTIVE_CLASS,
42
+ });
43
+ }
44
+ }
45
+
46
+ /** @type {import('../../../abstract/ModalManager.js').ModalCb} */
47
+ _handleModalClose(e) {
48
+ if (e.id === this.$['*currentActivity']) {
49
+ this.$['*currentActivity'] = ActivityBlock.activities.UPLOAD_LIST;
50
+ this.set$({
51
+ isHiddenStartFrom: false,
52
+ });
53
+ }
54
+
55
+ if (e.id === ActivityBlock.activities.CLOUD_IMG_EDIT) {
56
+ this.$['*currentActivity'] = ActivityBlock.activities.UPLOAD_LIST;
57
+ }
58
+ }
59
+
7
60
  initCallback() {
8
61
  super.initCallback();
9
62
 
10
63
  /** @type {import('../../../abstract/UploaderBlock.js').UploaderBlock} */
11
64
  const uBlock = this.ref.uBlock;
12
65
  this.sub('*currentActivity', (val) => {
66
+ if (val === ActivityBlock.activities.UPLOAD_LIST) {
67
+ this.modalManager.closeAll();
68
+ }
69
+
13
70
  if (!val) {
14
71
  this.$['*currentActivity'] = uBlock.initActivity || ActivityBlock.activities.START_FROM;
15
72
  }
@@ -18,29 +75,85 @@ export class FileUploaderMinimal extends SolutionBlock {
18
75
  this.sub('*uploadList', (list) => {
19
76
  if (list?.length > 0) {
20
77
  this.$['*currentActivity'] = ActivityBlock.activities.UPLOAD_LIST;
78
+ this.set$({
79
+ classStartFrom: EMPTY_CLASS,
80
+ });
21
81
  } else {
82
+ this.set$({
83
+ classUploadList: EMPTY_CLASS,
84
+ isHiddenStartFrom: false,
85
+ });
22
86
  this.$['*currentActivity'] = uBlock.initActivity || ActivityBlock.activities.START_FROM;
23
87
  }
24
88
  });
25
89
 
26
- this.subConfigValue('sourceList', (sourceList) => {
27
- if (sourceList !== 'local') {
28
- this.cfg.sourceList = 'local';
29
- }
30
- });
31
-
32
90
  this.subConfigValue('confirmUpload', (confirmUpload) => {
33
91
  if (confirmUpload !== false) {
34
92
  this.cfg.confirmUpload = false;
35
93
  }
36
94
  });
95
+
96
+ this.subConfigValue('filesViewMode', (mode) => {
97
+ this.setAttribute('mode', mode);
98
+
99
+ this.subConfigValue('multiple', (multiple) => {
100
+ if (mode === 'grid') {
101
+ if (multiple) {
102
+ this.style.removeProperty('--uc-grid-col');
103
+ } else {
104
+ this.style.setProperty('--uc-grid-col', '1');
105
+ }
106
+
107
+ this.$.singleUpload = !multiple;
108
+ } else {
109
+ this.style.removeProperty('--uc-grid-col');
110
+ this.$.singleUpload = false;
111
+ }
112
+ });
113
+ });
114
+
115
+ this.handleModalOpen = this._handleModalOpen.bind(this);
116
+ this.handleModalClose = this._handleModalClose.bind(this);
117
+
118
+ this.modalManager.subscribe(ModalEvents.OPEN, this.handleModalOpen);
119
+ this.modalManager.subscribe(ModalEvents.CLOSE, this.handleModalClose);
120
+ }
121
+
122
+ destroyCallback() {
123
+ super.destroyCallback();
124
+ this.modalManager.unsubscribe(ModalEvents.OPEN, this.handleModalOpen);
125
+ this.modalManager.unsubscribe(ModalEvents.CLOSE, this.handleModalClose);
37
126
  }
38
127
  }
39
128
 
40
129
  FileUploaderMinimal.template = /* HTML */ `
41
- <uc-start-from>
42
- <uc-drop-area tabindex="0" clickable l10n="choose-file"></uc-drop-area>
130
+ <uc-start-from set="@hidden: isHiddenStartFrom; @class:classStartFrom">
131
+ <uc-drop-area set="@single:singleUpload;" initflow clickable tabindex="0" l10n="choose-file"></uc-drop-area>
43
132
  <uc-copyright></uc-copyright>
44
133
  </uc-start-from>
45
- <uc-upload-list ref="uBlock"></uc-upload-list>
134
+ <uc-upload-list set="@class:classUploadList" ref="uBlock"></uc-upload-list>
135
+
136
+ <uc-modal id="start-from" strokes block-body-scrolling>
137
+ <uc-start-from>
138
+ <uc-drop-area with-icon clickable></uc-drop-area>
139
+ <uc-source-list role="list" wrap></uc-source-list>
140
+ <button type="button" l10n="start-from-cancel" class="uc-secondary-btn" set="onclick: *historyBack"></button>
141
+ </uc-start-from>
142
+ </uc-modal>
143
+
144
+ <uc-modal id="camera" strokes block-body-scrolling>
145
+ <uc-camera-source></uc-camera-source>
146
+ </uc-modal>
147
+
148
+ <uc-modal id="url" strokes block-body-scrolling>
149
+ <uc-url-source></uc-url-source>
150
+ </uc-modal>
151
+
152
+ <uc-modal id="external" strokes block-body-scrolling>
153
+ <uc-external-source></uc-external-source>
154
+ </uc-modal>
155
+
156
+ <uc-modal id="cloud-image-edit" strokes block-body-scrolling>
157
+ <uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>
158
+ </uc-modal>
46
159
  `;
@@ -1,19 +1,4 @@
1
- @import url('../../../blocks/themes/uc-basic/config.css');
2
-
3
- /* COMMON STYLES */
4
- @import url('../../../blocks/themes/uc-basic/common.css');
5
-
6
- /* THEME */
7
- @import url('../../../blocks/themes/uc-basic/theme.css');
8
-
9
- /* BLOCKS: */
10
- @import url('../../../blocks/StartFrom/start-from.css');
11
- @import url('../../../blocks/DropArea/drop-area.css');
12
- @import url('../../../blocks/UploadList/upload-list.css');
13
- @import url('../../../blocks/FileItem/file-item.css');
14
- @import url('../../../blocks/Icon/icon.css');
15
- @import url('../../../blocks/ProgressBar/progress-bar.css');
16
- @import url('../../../blocks/Copyright/copyright.css');
1
+ @import url('../../../blocks/themes/uc-basic/index.css');
17
2
 
18
3
  /* ICONS: */
19
4
  :where([uc-file-uploader-minimal]) {
@@ -24,7 +9,7 @@
24
9
  display: block;
25
10
  }
26
11
 
27
- [uc-file-uploader-minimal] uc-start-from .uc-content {
12
+ [uc-file-uploader-minimal] > uc-start-from .uc-content {
28
13
  display: flex;
29
14
  flex-direction: column;
30
15
  gap: 4px;
@@ -34,7 +19,7 @@
34
19
  background-color: transparent;
35
20
  }
36
21
 
37
- :where([uc-file-uploader-minimal] uc-drop-area) {
22
+ :where([uc-file-uploader-minimal] > uc-start-from uc-drop-area) {
38
23
  display: flex;
39
24
  position: relative;
40
25
  align-items: center;
@@ -47,12 +32,12 @@
47
32
  border-radius: calc(var(--uc-radius) * 1.75);
48
33
  }
49
34
 
50
- :where(.uc-contrast) :where([uc-file-uploader-minimal] uc-drop-area) {
35
+ :where(.uc-contrast) :where([uc-file-uploader-minimal] > uc-start-from uc-drop-area) {
51
36
  background-color: transparent;
52
37
  }
53
38
 
54
39
  /* hack to make transparent :hover colors work in any conditions */
55
- :where([uc-file-uploader-minimal] uc-drop-area)::before {
40
+ :where([uc-file-uploader-minimal] > uc-start-from uc-drop-area)::before {
56
41
  content: '';
57
42
  z-index: -1;
58
43
  width: 100%;
@@ -61,6 +46,10 @@
61
46
  background-color: var(--uc-background);
62
47
  }
63
48
 
49
+ :where([uc-file-uploader-minimal]:has([single]) > uc-start-from uc-drop-area) {
50
+ aspect-ratio: var(--uc-grid-aspect-ratio);
51
+ }
52
+
64
53
  [uc-file-uploader-minimal] uc-upload-list uc-activity-header {
65
54
  display: none;
66
55
  }
@@ -111,10 +100,6 @@
111
100
  display: flex;
112
101
  }
113
102
 
114
- [uc-file-uploader-minimal] uc-file-item .uc-edit-btn {
115
- display: none;
116
- }
117
-
118
103
  [uc-file-uploader-minimal] uc-file-item uc-progress-bar {
119
104
  top: 0 !important;
120
105
  height: 100% !important;
@@ -139,3 +124,19 @@
139
124
  [uc-file-uploader-minimal] uc-copyright .uc-credits {
140
125
  position: static;
141
126
  }
127
+
128
+ [uc-file-uploader-minimal][mode='grid'] uc-upload-list .uc-toolbar .uc-add-more-btn {
129
+ display: none;
130
+ }
131
+
132
+ [uc-file-uploader-minimal][mode='grid'] uc-upload-list .uc-files .uc-add-more-btn {
133
+ display: flex;
134
+ }
135
+
136
+ [uc-file-uploader-minimal][mode='grid'] uc-upload-list .uc-files .uc-add-more-btn > span {
137
+ display: none;
138
+ }
139
+
140
+ [uc-file-uploader-minimal][mode='grid'] uc-upload-list .uc-files .uc-add-more-btn > uc-icon {
141
+ display: flex;
142
+ }
@@ -1,14 +1,2 @@
1
- export { defineComponents } from "../../../abstract/defineComponents.js";
2
- export { defineLocale } from "../../../abstract/localeRegistry.js";
3
- export { FileUploaderMinimal } from "./FileUploaderMinimal.js";
4
- export { StartFrom } from "../../../blocks/StartFrom/StartFrom.js";
5
- export { DropArea } from "../../../blocks/DropArea/DropArea.js";
6
- export { UploadList } from "../../../blocks/UploadList/UploadList.js";
7
- export { FileItem } from "../../../blocks/FileItem/FileItem.js";
8
- export { Icon } from "../../../blocks/Icon/Icon.js";
9
- export { ProgressBar } from "../../../blocks/ProgressBar/ProgressBar.js";
10
- export { Copyright } from "../../../blocks/Copyright/Copyright.js";
11
- export { FormInput } from "../../../blocks/FormInput/FormInput.js";
12
- export { Config } from "../../../blocks/Config/Config.js";
13
- export { UploadCtxProvider } from "../../../blocks/UploadCtxProvider/UploadCtxProvider.js";
1
+ export * from "../../../index.js";
14
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,13 +1 @@
1
- export { defineComponents } from '../../../abstract/defineComponents.js';
2
- export { defineLocale } from '../../../abstract/localeRegistry.js';
3
- export { FileUploaderMinimal } from './FileUploaderMinimal.js';
4
- export { StartFrom } from '../../../blocks/StartFrom/StartFrom.js';
5
- export { DropArea } from '../../../blocks/DropArea/DropArea.js';
6
- export { UploadList } from '../../../blocks/UploadList/UploadList.js';
7
- export { FileItem } from '../../../blocks/FileItem/FileItem.js';
8
- export { Icon } from '../../../blocks/Icon/Icon.js';
9
- export { ProgressBar } from '../../../blocks/ProgressBar/ProgressBar.js';
10
- export { Copyright } from '../../../blocks/Copyright/Copyright.js';
11
- export { FormInput } from '../../../blocks/FormInput/FormInput.js';
12
- export { Config } from '../../../blocks/Config/Config.js';
13
- export { UploadCtxProvider } from '../../../blocks/UploadCtxProvider/UploadCtxProvider.js';
1
+ export * from '../../../index.js';
@@ -4,9 +4,9 @@ export class FileUploaderRegular extends SolutionBlock {
4
4
  '*commonProgress': number;
5
5
  '*uploadList': never[];
6
6
  '*uploadQueue': import("@uploadcare/upload-client").Queue;
7
- '*collectionErrors': any[];
8
- '*collectionState': import("./index.js").OutputCollectionState<import("./index.js").OutputCollectionStatus, "maybe-has-group"> | null;
9
- '*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null; /** @private */
7
+ '*collectionErrors': ReturnType<import("./index.js").OutputErrorCollection>[];
8
+ '*collectionState': import("./index.js").OutputCollectionState | null;
9
+ '*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
10
10
  '*uploadTrigger': Set<string>;
11
11
  '*secureUploadsManager': import("../../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
12
12
  '*currentActivity': null;
@@ -15,8 +15,6 @@ export class FileUploaderRegular extends SolutionBlock {
15
15
  '*historyBack': null;
16
16
  '*closeModal': () => void;
17
17
  };
18
- /** @private */
19
- private _lastModalActive;
20
18
  }
21
19
  export namespace FileUploaderRegular {
22
20
  let template: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FileUploaderRegular.d.ts","sourceRoot":"","sources":["FileUploaderRegular.js"],"names":[],"mappings":"AAKA;IAMI;;;;;;;kFAuBI,eAAe;;;;;;;;MApBlB;IAoBG,eAAe;IACf,yBAAmC;CAK1C;;;;8BAvC6B,oCAAoC"}
1
+ {"version":3,"file":"FileUploaderRegular.d.ts","sourceRoot":"","sources":["FileUploaderRegular.js"],"names":[],"mappings":"AAIA;IAMI;;;;;+CAmBsB,YAAU;mCAEmB,YAChD;6BAEO,2BAA2B;;wCAEnC,2CAAoB;;;;;;MAvBrB;CAaJ;;;;8BAzB6B,oCAAoC"}
@@ -1,7 +1,6 @@
1
1
  // @ts-check
2
2
  import { SolutionBlock } from '../../../abstract/SolutionBlock.js';
3
- import { asBoolean } from '../../../blocks/Config/normalizeConfigValue.js';
4
- import { EventType } from '../../../blocks/UploadCtxProvider/EventEmitter.js';
3
+ import { asBoolean } from '../../../blocks/Config/validatorsType.js';
5
4
 
6
5
  export class FileUploaderRegular extends SolutionBlock {
7
6
  static styleAttrs = [...super.styleAttrs, 'uc-file-uploader-regular'];
@@ -24,36 +23,38 @@ export class FileUploaderRegular extends SolutionBlock {
24
23
  this.set$({ isHidden: asBoolean(value) });
25
24
  },
26
25
  );
27
-
28
- this.sub(
29
- '*modalActive',
30
- (modalActive) => {
31
- if (this._lastModalActive !== modalActive) {
32
- this.emit(modalActive ? EventType.MODAL_OPEN : EventType.MODAL_CLOSE, undefined, { debounce: true });
33
- }
34
-
35
- /** @private */
36
- this._lastModalActive = modalActive;
37
- },
38
- false,
39
- );
40
26
  }
41
27
  }
42
28
 
43
29
  FileUploaderRegular.template = /* HTML */ `
44
30
  <uc-simple-btn set="@hidden: isHidden"></uc-simple-btn>
45
31
 
46
- <uc-modal strokes block-body-scrolling>
32
+ <uc-modal id="start-from" strokes block-body-scrolling>
47
33
  <uc-start-from>
48
34
  <uc-drop-area with-icon clickable></uc-drop-area>
49
35
  <uc-source-list role="list" wrap></uc-source-list>
50
36
  <button type="button" l10n="start-from-cancel" class="uc-secondary-btn" set="onclick: *historyBack"></button>
51
37
  <uc-copyright></uc-copyright>
52
38
  </uc-start-from>
39
+ </uc-modal>
40
+
41
+ <uc-modal id="upload-list" strokes block-body-scrolling>
53
42
  <uc-upload-list></uc-upload-list>
43
+ </uc-modal>
44
+
45
+ <uc-modal id="camera" strokes block-body-scrolling>
54
46
  <uc-camera-source></uc-camera-source>
47
+ </uc-modal>
48
+
49
+ <uc-modal id="url" strokes block-body-scrolling>
55
50
  <uc-url-source></uc-url-source>
51
+ </uc-modal>
52
+
53
+ <uc-modal id="external" strokes block-body-scrolling>
56
54
  <uc-external-source></uc-external-source>
55
+ </uc-modal>
56
+
57
+ <uc-modal id="cloud-image-edit" strokes block-body-scrolling>
57
58
  <uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>
58
59
  </uc-modal>
59
60
  `;
@@ -2,6 +2,7 @@ import type { LocaleDefinition } from '../abstract/localeRegistry';
2
2
  import type { complexConfigKeys } from '../blocks/Config/Config';
3
3
  import type { FuncFileValidator, FuncCollectionValidator } from '../abstract/ValidationManager';
4
4
  import type { CameraMode } from '../blocks/CameraSource/CameraSource';
5
+ import type { FilesViewMode } from '../blocks/UploadList/UploadList';
5
6
 
6
7
  export type { FuncFileValidator, FuncCollectionValidator } from '../abstract/ValidationManager';
7
8
  export type { UploaderPublicApi } from '../abstract/UploaderPublicApi';
@@ -278,6 +279,12 @@ export type ConfigType = {
278
279
  * the following properties from MediaRecorderOptions
279
280
  */
280
281
  mediaRecorderOptions: MediaRecorderOptions | null;
282
+
283
+ filesViewMode: FilesViewMode;
284
+
285
+ gridShowFileNames: boolean;
286
+
287
+ cloudImageEditorAutoOpen: boolean;
281
288
  };
282
289
  export type ConfigComplexType = Pick<ConfigType, (typeof complexConfigKeys)[number]>;
283
290
  export type ConfigPlainType = Omit<ConfigType, keyof ConfigComplexType>;
@@ -52,8 +52,8 @@ export function splitFileUrl(fileUrl: string): {
52
52
  hash: string;
53
53
  };
54
54
  export function normalizeCdnOperation(operation?: string | unknown): string;
55
- export function joinCdnOperations(...operations?: unknown[] | undefined): string;
56
- export function createCdnUrlModifiers(...cdnOperations?: unknown[] | undefined): string;
57
- export function createCdnUrl(baseCdnUrl: string, cdnModifiers?: string | undefined, filename?: string | undefined): string;
55
+ export function joinCdnOperations(...operations?: (string | unknown)[]): string;
56
+ export function createCdnUrlModifiers(...cdnOperations?: (string | unknown)[]): string;
57
+ export function createCdnUrl(baseCdnUrl: string, cdnModifiers?: string, filename?: string): string;
58
58
  export function createOriginalUrl(cdnUrl: string, uuid: string): string;
59
59
  //# sourceMappingURL=cdn-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cdn-utils.d.ts","sourceRoot":"","sources":["cdn-utils.js"],"names":[],"mappings":"AAgDA;;;;;GAKG;AACH,wDAcC;AAED;;;;;GAKG;AACH,oCAHW,MAAM,GACJ,MAAM,CAQlB;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACJ,MAAM,CAYlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACJ,MAAM,EAAE,CASpB;AAED;;;;;GAKG;AACH,qDASC;AAED;;;;;GAKG;AACH,qDAEC;AAED;;;;;GAKG;AACH,+CAFa;IAAE,QAAQ,SAAS;IAAC,MAAM,SAAS;IAAC,IAAI,SAAQ;CAAE,CAS9D;AAvJM,kDAHI,SAAS,OAAO,UAkB1B;AAQM,iFAKN;AASM,wFAGN;AA2HM,2HAgBN;AASM,wEAIN"}
1
+ {"version":3,"file":"cdn-utils.d.ts","sourceRoot":"","sources":["cdn-utils.js"],"names":[],"mappings":"AAgDA;;;;;GAKG;AACH,wDAcC;AAED;;;;;GAKG;AACH,oCAHW,MAAM,GACJ,MAAM,CAQlB;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACJ,MAAM,CAYlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACJ,MAAM,EAAE,CASpB;AAED;;;;;GAKG;AACH,qDASC;AAED;;;;;GAKG;AACH,qDAEC;AAED;;;;;GAKG;AACH,+CAFa;IAAE,QAAQ,SAAS;IAAC,MAAM,SAAS;IAAC,IAAI,SAAQ;CAAE,CAS9D;AAvJM,kDAHI,SAAS,OAAO,UAkB1B;AAQM,kDAHO,CAAC,SAAS,OAAO,CAAC,EAAA,UAQ/B;AASM,yDAHO,CAAC,SAAS,OAAO,CAAC,EAAA,UAM/B;AA2HM,mGAgBN;AASM,wEAIN"}
@@ -1,5 +1,5 @@
1
1
  export const IMAGE_ACCEPT_LIST: string[];
2
- export function mergeFileTypes(fileTypes?: string[] | undefined): string[];
2
+ export function mergeFileTypes(fileTypes?: string[]): string[];
3
3
  export function matchMimeType(mimeType: string, allowedFileTypes: string[]): boolean;
4
4
  export function matchExtension(fileName: string, allowedFileTypes: string[]): boolean;
5
5
  export function fileIsImage(file: File | Blob): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"fileTypes.d.ts","sourceRoot":"","sources":["fileTypes.js"],"names":[],"mappings":"AAGA,yCAcE;AAMK,kEAFM,MAAM,EAAE,CAUpB;AAOM,kEAHI,QAAQ,WAYlB;AAOM,mEAHI,QAAQ,WAWlB;AAMM,kCAHI,IAAI,GAAG,IAAI,WASrB;AAQM,6BAHI,OAAO,GACL,OAAO,CAInB;AAQM,6BAHI,OAAO,GACL,OAAO,CAInB"}
1
+ {"version":3,"file":"fileTypes.d.ts","sourceRoot":"","sources":["fileTypes.js"],"names":[],"mappings":"AAGA,yCAcE;AAMK,2CAHI,MAAM,EAAE,GACN,MAAM,EAAE,CAUpB;AAOM,kEAHI,QAAQ,WAYlB;AAOM,mEAHI,QAAQ,WAWlB;AAMM,kCAHI,IAAI,GAAG,IAAI,WASrB;AAQM,6BAHI,OAAO,GACL,OAAO,CAInB;AAQM,6BAHI,OAAO,GACL,OAAO,CAInB"}
@@ -1 +1 @@
1
- {"version":3,"file":"getPluralForm.d.ts","sourceRoot":"","sources":["getPluralForm.js"],"names":[],"mappings":"AASO,sCAJI,MAAM,SACN,MAAM,GACJ,UAAU,CAKtB;yBAVa,KAAK,cAAc"}
1
+ {"version":3,"file":"getPluralForm.d.ts","sourceRoot":"","sources":["getPluralForm.js"],"names":[],"mappings":"AASO,sCAJI,MAAM,SACN,MAAM,GACJ,UAAU,CAKtB;yBAVa,IAAI,CAAC,cAAc"}
@@ -1,4 +1,4 @@
1
- export function isSecureTokenExpired(secureToken: import('../types').SecureUploadsSignatureAndExpire, { threshold }: {
1
+ export function isSecureTokenExpired(secureToken: import("../types").SecureUploadsSignatureAndExpire, { threshold }: {
2
2
  threshold?: number;
3
3
  }): boolean;
4
4
  //# sourceMappingURL=isSecureTokenExpired.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"memoize.d.ts","sourceRoot":"","sources":["memoize.js"],"names":[],"mappings":"AASO,uHAaN"}
1
+ {"version":3,"file":"memoize.d.ts","sourceRoot":"","sources":["memoize.js"],"names":[],"mappings":"AASO,wBANc,KAAK,SAAZ,GAAG,EAAG,EACD,OAAO,kBACiB,CAAC,SAA/B,CAAE,GAAG,IAAI,EAAE,KAAK,KAAK,OAAQ,MAC/B,CAAC,GACC,CAAC,CAeb"}
@@ -4,5 +4,7 @@ export type GConstructor<T> = new (...args: any[]) => T;
4
4
  * are some dynamic generated properties or native overrides in the class. We're use it to define dynamic access
5
5
  * properties and events to subscribe to.
6
6
  */
7
- export type MixinClass<Base extends GConstructor<HTMLElement>, InstanceProperties extends Record<string, any> = {}> = (new (...args: ConstructorParameters<Base>) => InstanceProperties & InstanceType<Base>) & Omit<Base, "new">;
7
+ export type MixinClass<Base extends GConstructor<HTMLElement>, InstanceProperties extends Record<string, any> = {}> = {
8
+ new (...args: ConstructorParameters<Base>): InstanceProperties & InstanceType<Base>;
9
+ } & Omit<Base, "new">;
8
10
  //# sourceMappingURL=mixinClass.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mixinClass.d.ts","sourceRoot":"","sources":["mixinClass.js"],"names":[],"mappings":"4CAE2B,GAAG,EAAE,KAAK,CAAC;;;;;;qIAWnB,sBAAsB,IAAI,CAAC,KAAG,kBAAkB,GAAG,aAAa,IAAI,CAAC"}
1
+ {"version":3,"file":"mixinClass.d.ts","sourceRoot":"","sources":["mixinClass.js"],"names":[],"mappings":"yBACa,CAAC,IACD,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC;;;;;;uBAQG,IAAI,SAA/B,YAAY,CAAC,WAAW,CAAE,EACJ,kBAAkB,SAAxC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAE,SACrB;IACZ,KAAS,GAAG,IAAI,EAAE,qBAAqB,CAAC,IAAI,CAAC,GAAG,kBAAkB,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;CACrF,GAAG,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"prettyBytes.d.ts","sourceRoot":"","sources":["prettyBytes.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AAiBI,mCAJI,MAAM,SACN,CAAC,mBAAmB,CAAC,CAAC,MAAM,mBAAmB,CAAC,GAC9C,MAAM,CAmClB"}
1
+ {"version":3,"file":"prettyBytes.d.ts","sourceRoot":"","sources":["prettyBytes.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AAiBI,mCAJI,MAAM,SACN,CAAC,OAAO,YAAY,EAAE,MAAM,OAAO,YAAY,CAAC,GAC9C,MAAM,CAmClB"}
@@ -10,7 +10,7 @@
10
10
  * @param {Options} [options={}] Default is `{}`
11
11
  * @returns {String}
12
12
  */
13
- export function applyTemplateData(template: string, data?: InputData | undefined, options?: Options | undefined): string;
13
+ export function applyTemplateData(template: string, data?: InputData, options?: Options): string;
14
14
  /**
15
15
  * @param {String} template
16
16
  * @returns {{ variable: string; pluralKey: string; countVariable: string }[]}
@@ -1 +1 @@
1
- {"version":3,"file":"template-utils.d.ts","sourceRoot":"","sources":["template-utils.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AAEH;;;;;GAKG;AACH,yHAQC;AAED;;;GAGG;AACH,oDAFa;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,CAiB5E"}
1
+ {"version":3,"file":"template-utils.d.ts","sourceRoot":"","sources":["template-utils.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AAEH;;;;;GAKG;AACH,2DAJW,SAAS,YACT,OAAO,UAWjB;AAED;;;GAGG;AACH,oDAFa;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,CAiB5E;;;;;;;;;;;;;;;wBAjDa;IAAE,CAAC,GAAG,QAAQ,GAAG,4BAA4B,SAAS,CAAA;CAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"toKebabCase.d.ts","sourceRoot":"","sources":["toKebabCase.js"],"names":[],"mappings":"AAUO,oEAIO"}
1
+ {"version":3,"file":"toKebabCase.d.ts","sourceRoot":"","sources":["toKebabCase.js"],"names":[],"mappings":"AAUO,4BAJe,CAAC,SAAV,MAAQ,OACV,CAAC,GACC,SAAS,CAAC,CAAC,CAAC,CAMX;sBAbQ,CAAC,SAAV,MAAQ,IACR,CAAC,SAAS,GAAG,MAAM,IAAI,IAAI,MAAM,IAAI,EAAE,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"transparentPixelSrc.d.ts","sourceRoot":"","sources":["transparentPixelSrc.js"],"names":[],"mappings":"AAAA,yJACuH"}
1
+ {"version":3,"file":"transparentPixelSrc.d.ts","sourceRoot":"","sources":["transparentPixelSrc.js"],"names":[],"mappings":"AAAA,oCACE,oHAAoH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"uniqueArray.d.ts","sourceRoot":"","sources":["uniqueArray.js"],"names":[],"mappings":"AAKO,8CAEN"}
1
+ {"version":3,"file":"uniqueArray.d.ts","sourceRoot":"","sources":["uniqueArray.js"],"names":[],"mappings":"AAKO,4BAJM,CAAC,OACH,CAAC,EAAE,GACD,CAAC,EAAE,CAIf"}
@@ -1,3 +1,3 @@
1
1
  /** @type {import('../../../abstract/ValidationManager.js').FuncCollectionValidator} */
2
- export const validateCollectionUploadError: import('../../../abstract/ValidationManager.js').FuncCollectionValidator;
2
+ export const validateCollectionUploadError: import("../../../abstract/ValidationManager.js").FuncCollectionValidator;
3
3
  //# sourceMappingURL=validateCollectionUploadError.d.ts.map
@@ -1,3 +1,3 @@
1
1
  /** @type {import('../../../abstract/ValidationManager.js').FuncCollectionValidator} */
2
- export const validateMultiple: import('../../../abstract/ValidationManager.js').FuncCollectionValidator;
2
+ export const validateMultiple: import("../../../abstract/ValidationManager.js").FuncCollectionValidator;
3
3
  //# sourceMappingURL=validateMultiple.d.ts.map
@@ -1,3 +1,3 @@
1
1
  /** @type {import('../../../abstract/ValidationManager.js').FuncFileValidator} */
2
- export const validateFileType: import('../../../abstract/ValidationManager.js').FuncFileValidator;
2
+ export const validateFileType: import("../../../abstract/ValidationManager.js").FuncFileValidator;
3
3
  //# sourceMappingURL=validateFileType.d.ts.map
@@ -1,3 +1,3 @@
1
1
  /** @type {import('../../../abstract/ValidationManager.js').FuncFileValidator} */
2
- export const validateIsImage: import('../../../abstract/ValidationManager.js').FuncFileValidator;
2
+ export const validateIsImage: import("../../../abstract/ValidationManager.js").FuncFileValidator;
3
3
  //# sourceMappingURL=validateIsImage.d.ts.map
@@ -1,3 +1,3 @@
1
1
  /** @type {import('../../../abstract/ValidationManager.js').FuncFileValidator} */
2
- export const validateMaxSizeLimit: import('../../../abstract/ValidationManager.js').FuncFileValidator;
2
+ export const validateMaxSizeLimit: import("../../../abstract/ValidationManager.js").FuncFileValidator;
3
3
  //# sourceMappingURL=validateMaxSizeLimit.d.ts.map
@@ -1,3 +1,3 @@
1
1
  /** @type {import('../../../abstract/ValidationManager.js').FuncFileValidator} */
2
- export const validateUploadError: import('../../../abstract/ValidationManager.js').FuncFileValidator;
2
+ export const validateUploadError: import("../../../abstract/ValidationManager.js").FuncFileValidator;
3
3
  //# sourceMappingURL=validateUploadError.d.ts.map
@@ -3,6 +3,6 @@ export function waitForAttribute({ element, attribute, onSuccess, onTimeout, tim
3
3
  attribute: string;
4
4
  onSuccess: (value: string) => void;
5
5
  onTimeout: () => void;
6
- timeout?: number | undefined;
6
+ timeout?: number;
7
7
  }): void;
8
8
  //# sourceMappingURL=waitForAttribute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"waitForAttribute.d.ts","sourceRoot":"","sources":["waitForAttribute.js"],"names":[],"mappings":"AAWO;aAPO,WAAW;eACT,MAAM;uBACE,MAAM,KAAK,IAAI;eACvB,MAAM,IAAI;;SAmCzB"}
1
+ {"version":3,"file":"waitForAttribute.d.ts","sourceRoot":"","sources":["waitForAttribute.js"],"names":[],"mappings":"AAWO,wFARI;IACN,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,QAiCH"}