@uploadcare/file-uploader 1.5.3-alpha.0 → 1.5.3-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/abstract/ActivityBlock.d.ts +3 -3
- package/abstract/ActivityBlock.d.ts.map +1 -1
- package/abstract/Block.d.ts +4 -11
- package/abstract/Block.d.ts.map +1 -1
- package/abstract/Block.js +16 -16
- package/abstract/CTX.d.ts +7 -7
- package/abstract/CTX.d.ts.map +1 -1
- package/abstract/CTX.js +1 -1
- package/abstract/LocaleManager.d.ts +3 -3
- package/abstract/SecureUploadsManager.d.ts +2 -2
- package/abstract/SecureUploadsManager.d.ts.map +1 -1
- package/abstract/SolutionBlock.d.ts +2 -2
- package/abstract/SolutionBlock.d.ts.map +1 -1
- package/abstract/TypedCollection.d.ts +1 -1
- package/abstract/TypedCollection.d.ts.map +1 -1
- package/abstract/TypedCollection.js +4 -4
- package/abstract/TypedData.d.ts +2 -2
- package/abstract/TypedData.d.ts.map +1 -1
- package/abstract/TypedData.js +4 -4
- package/abstract/UploaderBlock.d.ts +5 -5
- package/abstract/UploaderBlock.d.ts.map +1 -1
- package/abstract/UploaderBlock.js +5 -5
- package/abstract/UploaderPublicApi.d.ts +22 -21
- package/abstract/UploaderPublicApi.d.ts.map +1 -1
- package/abstract/UploaderPublicApi.js +3 -3
- package/abstract/ValidationManager.d.ts +3 -3
- package/abstract/ValidationManager.d.ts.map +1 -1
- package/abstract/a11y.d.ts +2 -2
- package/abstract/a11y.d.ts.map +1 -1
- package/abstract/buildOutputCollectionState.d.ts +1 -1
- package/abstract/buildOutputCollectionState.d.ts.map +1 -1
- package/abstract/defineComponents.d.ts.map +1 -1
- package/abstract/defineComponents.js +5 -0
- package/abstract/l10nProcessor.d.ts.map +1 -1
- package/abstract/l10nProcessor.js +3 -3
- package/abstract/loadFileUploaderFrom.d.ts.map +1 -1
- package/abstract/localeRegistry.d.ts.map +1 -1
- package/abstract/sharedConfigKey.d.ts.map +1 -1
- package/abstract/uploadEntrySchema.d.ts +2 -2
- package/abstract/uploadEntrySchema.d.ts.map +1 -1
- package/abstract/uploadEntrySchema.js +1 -1
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
- package/blocks/CameraSource/CameraSource.js +5 -4
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CropFrame.d.ts +11 -11
- package/blocks/CloudImageEditor/src/CropFrame.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CropFrame.js +2 -1
- package/blocks/CloudImageEditor/src/EditorButtonControl.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorButtonControl.js +2 -1
- package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorFilterControl.js +3 -7
- package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +3 -3
- package/blocks/CloudImageEditor/src/EditorImageCropper.js +2 -2
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorOperationControl.js +1 -1
- package/blocks/CloudImageEditor/src/EditorScroller.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorScroller.js +2 -1
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorSlider.js +2 -1
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorToolbar.js +4 -3
- package/blocks/CloudImageEditor/src/crop-utils.d.ts +14 -14
- package/blocks/CloudImageEditor/src/crop-utils.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/css/common.css +2 -2
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.js +3 -3
- package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.js +2 -1
- package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.js +3 -2
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.js +2 -1
- package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +1 -1
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +3 -3
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/state.d.ts +4 -4
- package/blocks/CloudImageEditor/src/template.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/template.js +2 -1
- package/blocks/CloudImageEditor/src/types.d.ts +2 -2
- package/blocks/CloudImageEditor/src/types.d.ts.map +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.js +2 -1
- package/blocks/Config/Config.d.ts +3 -11
- package/blocks/Config/Config.d.ts.map +1 -1
- package/blocks/Config/initialConfig.d.ts +1 -1
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
- package/blocks/Copyright/Copyright.d.ts.map +1 -1
- package/blocks/Copyright/Copyright.js +2 -1
- package/blocks/DropArea/DropArea.d.ts +2 -2
- package/blocks/DropArea/DropArea.d.ts.map +1 -1
- package/blocks/DropArea/DropArea.js +3 -3
- package/blocks/DropArea/addDropzone.d.ts.map +1 -1
- package/blocks/DropArea/getDropItems.d.ts +2 -2
- package/blocks/DropArea/getDropItems.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.d.ts +5 -5
- package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.js +3 -3
- package/blocks/ExternalSource/buildStyles.js +2 -2
- package/blocks/ExternalSource/query-string.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.d.ts +2 -2
- package/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.js +7 -3
- package/blocks/FormInput/FormInput.js +1 -1
- package/blocks/Icon/Icon.d.ts +0 -1
- package/blocks/Icon/Icon.d.ts.map +1 -1
- package/blocks/Icon/Icon.js +2 -4
- package/blocks/Img/ImgBase.js +9 -9
- package/blocks/Img/ImgConfig.d.ts +2 -2
- package/blocks/Img/ImgConfig.d.ts.map +1 -1
- package/blocks/Img/ImgConfig.js +3 -3
- package/blocks/Img/utils/parseObjectToString.js +1 -1
- package/blocks/Modal/Modal.d.ts.map +1 -1
- package/blocks/Modal/Modal.js +2 -1
- package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/blocks/ProgressBar/ProgressBar.js +2 -1
- package/blocks/ProgressBarCommon/ProgressBarCommon.d.ts.map +1 -1
- package/blocks/ProgressBarCommon/ProgressBarCommon.js +2 -1
- package/blocks/Select/Select.d.ts.map +1 -1
- package/blocks/Select/Select.js +14 -9
- package/blocks/SimpleBtn/SimpleBtn.d.ts +2 -2
- package/blocks/SimpleBtn/SimpleBtn.d.ts.map +1 -1
- package/blocks/SimpleBtn/SimpleBtn.js +2 -1
- package/blocks/SourceBtn/SourceBtn.d.ts +2 -2
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
- package/blocks/SourceBtn/SourceBtn.js +3 -3
- package/blocks/SourceList/SourceList.d.ts.map +1 -1
- package/blocks/SourceList/SourceList.js +5 -4
- package/blocks/StartFrom/StartFrom.d.ts.map +1 -1
- package/blocks/StartFrom/StartFrom.js +2 -1
- package/blocks/UploadCtxProvider/EventEmitter.d.ts +19 -19
- package/blocks/UploadCtxProvider/EventEmitter.d.ts.map +1 -1
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +4 -4
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts.map +1 -1
- package/blocks/UploadList/UploadList.d.ts +2 -2
- package/blocks/UploadList/UploadList.d.ts.map +1 -1
- package/blocks/UploadList/UploadList.js +3 -4
- package/blocks/UrlSource/UrlSource.d.ts.map +1 -1
- package/blocks/UrlSource/UrlSource.js +3 -2
- package/blocks/themes/uc-basic/index.css +0 -1
- package/blocks/utils/debounce.d.ts +3 -1
- package/blocks/utils/debounce.d.ts.map +1 -1
- package/blocks/utils/throttle.d.ts +3 -1
- package/blocks/utils/throttle.d.ts.map +1 -1
- package/blocks/utils/userAgent.d.ts +1 -1
- package/blocks/utils/userAgent.d.ts.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.ssr.d.ts +115 -1
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +118 -7
- package/locales/file-uploader/ar.d.ts +5 -0
- package/locales/file-uploader/ar.js +5 -0
- package/locales/file-uploader/az.d.ts +5 -0
- package/locales/file-uploader/az.js +5 -0
- package/locales/file-uploader/ca.d.ts +5 -0
- package/locales/file-uploader/ca.js +5 -0
- package/locales/file-uploader/cs.d.ts +5 -0
- package/locales/file-uploader/cs.js +5 -0
- package/locales/file-uploader/da.d.ts +5 -0
- package/locales/file-uploader/da.js +5 -0
- package/locales/file-uploader/de.d.ts +5 -0
- package/locales/file-uploader/de.js +5 -0
- package/locales/file-uploader/el.d.ts +5 -0
- package/locales/file-uploader/el.js +5 -0
- package/locales/file-uploader/en.d.ts +5 -0
- package/locales/file-uploader/en.js +5 -0
- package/locales/file-uploader/es.d.ts +5 -0
- package/locales/file-uploader/es.js +5 -0
- package/locales/file-uploader/et.d.ts +5 -0
- package/locales/file-uploader/et.js +5 -0
- package/locales/file-uploader/fr.d.ts +5 -0
- package/locales/file-uploader/fr.js +5 -0
- package/locales/file-uploader/he.d.ts +5 -0
- package/locales/file-uploader/he.js +5 -0
- package/locales/file-uploader/hy.d.ts +5 -0
- package/locales/file-uploader/hy.js +5 -0
- package/locales/file-uploader/is.d.ts +5 -0
- package/locales/file-uploader/is.js +5 -0
- package/locales/file-uploader/it.d.ts +5 -0
- package/locales/file-uploader/it.js +5 -0
- package/locales/file-uploader/ja.d.ts +5 -0
- package/locales/file-uploader/ja.js +5 -0
- package/locales/file-uploader/ka.d.ts +5 -0
- package/locales/file-uploader/ka.js +5 -0
- package/locales/file-uploader/kk.d.ts +5 -0
- package/locales/file-uploader/kk.js +5 -0
- package/locales/file-uploader/ko.d.ts +5 -0
- package/locales/file-uploader/ko.js +5 -0
- package/locales/file-uploader/lv.d.ts +5 -0
- package/locales/file-uploader/lv.js +5 -0
- package/locales/file-uploader/nb.d.ts +5 -0
- package/locales/file-uploader/nb.js +5 -0
- package/locales/file-uploader/nl.d.ts +5 -0
- package/locales/file-uploader/nl.js +5 -0
- package/locales/file-uploader/pl.d.ts +5 -0
- package/locales/file-uploader/pl.js +5 -0
- package/locales/file-uploader/pt.d.ts +5 -0
- package/locales/file-uploader/pt.js +5 -0
- package/locales/file-uploader/ro.d.ts +5 -0
- package/locales/file-uploader/ro.js +5 -0
- package/locales/file-uploader/ru.d.ts +5 -0
- package/locales/file-uploader/ru.js +5 -0
- package/locales/file-uploader/sk.d.ts +5 -0
- package/locales/file-uploader/sk.js +5 -0
- package/locales/file-uploader/sr.d.ts +5 -0
- package/locales/file-uploader/sr.js +5 -0
- package/locales/file-uploader/sv.d.ts +5 -0
- package/locales/file-uploader/sv.js +5 -0
- package/locales/file-uploader/tr.d.ts +5 -0
- package/locales/file-uploader/tr.js +5 -0
- package/locales/file-uploader/uk.d.ts +5 -0
- package/locales/file-uploader/uk.js +5 -0
- package/locales/file-uploader/vi.d.ts +5 -0
- package/locales/file-uploader/vi.js +5 -0
- package/locales/file-uploader/zh-TW.d.ts +5 -0
- package/locales/file-uploader/zh-TW.js +5 -0
- package/locales/file-uploader/zh.d.ts +5 -0
- package/locales/file-uploader/zh.js +5 -0
- package/package.json +10 -7
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts +2 -2
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts.map +1 -1
- package/solutions/file-uploader/inline/FileUploaderInline.js +3 -4
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -1
- package/solutions/file-uploader/minimal/FileUploaderMinimal.js +2 -1
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts +3 -3
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -1
- package/solutions/file-uploader/regular/FileUploaderRegular.js +3 -2
- package/symbiote.js +19 -0
- package/types/jsx.d.ts +9 -3
- package/utils/getPluralForm.d.ts.map +1 -1
- package/utils/isSecureTokenExpired.d.ts +1 -1
- package/utils/memoize.d.ts.map +1 -1
- package/utils/mixinClass.d.ts +3 -1
- package/utils/mixinClass.d.ts.map +1 -1
- package/utils/prettyBytes.d.ts.map +1 -1
- package/utils/template-utils.d.ts.map +1 -1
- package/utils/toKebabCase.d.ts.map +1 -1
- package/utils/uniqueArray.d.ts.map +1 -1
- package/utils/validators/collection/validateCollectionUploadError.d.ts +1 -1
- package/utils/validators/collection/validateMultiple.d.ts +1 -1
- package/utils/validators/file/validateFileType.d.ts +1 -1
- package/utils/validators/file/validateIsImage.d.ts +1 -1
- package/utils/validators/file/validateMaxSizeLimit.d.ts +1 -1
- package/utils/validators/file/validateUploadError.d.ts +1 -1
- package/utils/waitForAttribute.d.ts +12 -6
- package/utils/waitForAttribute.d.ts.map +1 -1
- package/utils/waitForAttribute.js +38 -8
- package/utils/waitForAttribute.test.js +10 -47
- package/utils/withResolvers.d.ts +7 -0
- package/utils/withResolvers.d.ts.map +1 -0
- package/utils/withResolvers.js +17 -0
- package/utils/withResolvers.test.d.ts +2 -0
- package/utils/withResolvers.test.d.ts.map +1 -0
- package/utils/withResolvers.test.js +27 -0
- package/web/file-uploader.iife.min.js +5 -4
- package/web/file-uploader.min.js +5 -4
- package/web/uc-basic.min.css +1 -1
- package/web/uc-cloud-image-editor.min.css +1 -1
- package/web/uc-cloud-image-editor.min.js +5 -4
- package/web/uc-file-uploader-inline.min.css +1 -1
- package/web/uc-file-uploader-inline.min.js +5 -4
- package/web/uc-file-uploader-minimal.min.js +4 -3
- package/web/uc-file-uploader-regular.min.css +1 -1
- package/web/uc-file-uploader-regular.min.js +5 -4
- package/web/uc-img.min.js +4 -3
- package/blocks/CloudImageEditor/src/lib/FocusVisible.d.ts +0 -15
- package/blocks/CloudImageEditor/src/lib/FocusVisible.d.ts.map +0 -1
- package/blocks/CloudImageEditor/src/lib/FocusVisible.js +0 -33
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts +0 -10
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts.map +0 -1
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.js +0 -256
- package/blocks/EditorFilerobotImage/EditorFilerobotImage.d.ts +0 -13
- package/blocks/EditorFilerobotImage/EditorFilerobotImage.d.ts.map +0 -1
- package/blocks/EditorFilerobotImage/EditorFilerobotImage.js +0 -59
- package/blocks/Range/Range.d.ts +0 -16
- package/blocks/Range/Range.d.ts.map +0 -1
- package/blocks/Range/Range.js +0 -44
- package/blocks/Range/range.css +0 -65
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { html } from '../../symbiote.js';
|
|
2
3
|
import { CancelError, uploadFile } from '@uploadcare/upload-client';
|
|
3
4
|
import { shrinkFile } from '@uploadcare/image-shrink';
|
|
4
5
|
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
@@ -290,8 +291,11 @@ export class FileItem extends UploaderBlock {
|
|
|
290
291
|
isFinished: state === FileItemState.FINISHED,
|
|
291
292
|
progressVisible: state === FileItemState.UPLOADING,
|
|
292
293
|
isEditable: this.cfg.useCloudImageEditor && this._entry?.getValue('isImage') && this._entry?.getValue('cdnUrl'),
|
|
293
|
-
errorText: this._entry.getValue('errors')?.[0]?.message,
|
|
294
|
-
ariaLabelStatusFile:
|
|
294
|
+
errorText: this._entry.getValue('errors')?.[0]?.message ?? '',
|
|
295
|
+
ariaLabelStatusFile: this.l10n('a11y-file-item-status', {
|
|
296
|
+
fileName: this._entry?.getValue('fileName'),
|
|
297
|
+
status: this.l10n(state?.description?.toLocaleLowerCase() ?? '').toLocaleLowerCase(),
|
|
298
|
+
}),
|
|
295
299
|
});
|
|
296
300
|
}
|
|
297
301
|
|
|
@@ -420,7 +424,7 @@ export class FileItem extends UploaderBlock {
|
|
|
420
424
|
}
|
|
421
425
|
}
|
|
422
426
|
|
|
423
|
-
FileItem.template =
|
|
427
|
+
FileItem.template = html`
|
|
424
428
|
<div class="uc-inner" set="@finished: isFinished; @uploading: isUploading; @failed: isFailed; @focused: isFocused">
|
|
425
429
|
<div class="uc-thumb" set="style.backgroundImage: thumbUrl">
|
|
426
430
|
<div class="uc-badge">
|
package/blocks/Icon/Icon.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["Icon.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["Icon.js"],"names":[],"mappings":"AAIA;IAII;;;MAIC;CAmBJ;;;;sBA7BqB,yBAAyB"}
|
package/blocks/Icon/Icon.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { html } from '../../symbiote.js';
|
|
2
3
|
import { Block } from '../../abstract/Block.js';
|
|
3
4
|
|
|
4
5
|
export class Icon extends Block {
|
|
@@ -9,7 +10,6 @@ export class Icon extends Block {
|
|
|
9
10
|
...this.init$,
|
|
10
11
|
name: '',
|
|
11
12
|
href: '',
|
|
12
|
-
title: '',
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -31,14 +31,12 @@ export class Icon extends Block {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
Icon.template =
|
|
34
|
+
Icon.template = html`
|
|
35
35
|
<svg ref="svg" xmlns="http://www.w3.org/2000/svg">
|
|
36
|
-
<title>{{title}}</title>
|
|
37
36
|
<use set="@href: href;"></use>
|
|
38
37
|
</svg>
|
|
39
38
|
`;
|
|
40
39
|
|
|
41
40
|
Icon.bindAttributes({
|
|
42
41
|
name: 'name',
|
|
43
|
-
title: 'title',
|
|
44
42
|
});
|
package/blocks/Img/ImgBase.js
CHANGED
|
@@ -103,8 +103,8 @@ export class ImgBase extends ImgConfig {
|
|
|
103
103
|
createCdnUrl(
|
|
104
104
|
//
|
|
105
105
|
createOriginalUrl(this.$$('cdn-cname'), this.$$('uuid')),
|
|
106
|
-
cdnModifiers
|
|
107
|
-
)
|
|
106
|
+
cdnModifiers,
|
|
107
|
+
),
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -114,8 +114,8 @@ export class ImgBase extends ImgConfig {
|
|
|
114
114
|
createCdnUrl(
|
|
115
115
|
//
|
|
116
116
|
createOriginalUrl(this.$$('cdn-cname'), this.$$('uuid')),
|
|
117
|
-
cdnModifiers
|
|
118
|
-
)
|
|
117
|
+
cdnModifiers,
|
|
118
|
+
),
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -126,8 +126,8 @@ export class ImgBase extends ImgConfig {
|
|
|
126
126
|
//
|
|
127
127
|
this.$$('proxy-cname'),
|
|
128
128
|
cdnModifiers,
|
|
129
|
-
this._fmtAbs(this.$$('src'))
|
|
130
|
-
)
|
|
129
|
+
this._fmtAbs(this.$$('src')),
|
|
130
|
+
),
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -138,8 +138,8 @@ export class ImgBase extends ImgConfig {
|
|
|
138
138
|
//
|
|
139
139
|
`https://${this.$$('pubkey')}.ucr.io/`,
|
|
140
140
|
cdnModifiers,
|
|
141
|
-
this._fmtAbs(this.$$('src'))
|
|
142
|
-
)
|
|
141
|
+
this._fmtAbs(this.$$('src')),
|
|
142
|
+
),
|
|
143
143
|
);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
@@ -157,7 +157,7 @@ export class ImgBase extends ImgConfig {
|
|
|
157
157
|
return applyTemplateData(
|
|
158
158
|
this.$$('secure-delivery-proxy'),
|
|
159
159
|
{ previewUrl: url },
|
|
160
|
-
{ transform: (value) => window.encodeURIComponent(value) }
|
|
160
|
+
{ transform: (value) => window.encodeURIComponent(value) },
|
|
161
161
|
);
|
|
162
162
|
}
|
|
163
163
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class ImgConfig extends
|
|
1
|
+
export class ImgConfig extends Symbiote<any> {
|
|
2
2
|
static get observedAttributes(): string[];
|
|
3
3
|
constructor();
|
|
4
4
|
cssInit$: any;
|
|
@@ -27,5 +27,5 @@ export class ImgConfig extends BaseComponent<any> {
|
|
|
27
27
|
private _observed;
|
|
28
28
|
attributeChangedCallback(name: any, oldVal: any, newVal: any): void;
|
|
29
29
|
}
|
|
30
|
-
import {
|
|
30
|
+
import { Symbiote } from '../../symbiote.js';
|
|
31
31
|
//# sourceMappingURL=ImgConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImgConfig.d.ts","sourceRoot":"","sources":["ImgConfig.js"],"names":[],"mappings":"AAUA;IAkFE,0CAEC
|
|
1
|
+
{"version":3,"file":"ImgConfig.d.ts","sourceRoot":"","sources":["ImgConfig.js"],"names":[],"mappings":"AAUA;IAkFE,0CAEC;;IAnFD,cAAqB;IAErB;;;OAGG;IACH,iBAFa,GAAG,CAIf;IAED,qDAAqD;IACrD,wBAIC;IAED;;;OAGG;IACH,yBAFW,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,QAW5B;IAED,0BAEC;IAED,8BAMC;IAED;;;OAGG;IACH,qBAHW,WAAW,SACX,MAAM,IAAI,QAsBpB;IAfC,eAAe;IACf,qBAOQ;IAGN,eAAe;IACf,kBAA0B;IAoB9B,oEAIC;CACF;yBArGgC,mBAAmB"}
|
package/blocks/Img/ImgConfig.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Symbiote, PubSub } from '../../symbiote.js';
|
|
2
2
|
import { PROPS_MAP } from './props-map.js';
|
|
3
3
|
import { CSS_PREF } from './configurations.js';
|
|
4
4
|
import { PACKAGE_NAME, PACKAGE_VERSION } from '../../env.js';
|
|
@@ -8,7 +8,7 @@ for (let prop in PROPS_MAP) {
|
|
|
8
8
|
CSS_PROPS[CSS_PREF + prop] = PROPS_MAP[prop]?.default || '';
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export class ImgConfig extends
|
|
11
|
+
export class ImgConfig extends Symbiote {
|
|
12
12
|
cssInit$ = CSS_PROPS;
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -87,7 +87,7 @@ export class ImgConfig extends BaseComponent {
|
|
|
87
87
|
});
|
|
88
88
|
this._isnObserver = null;
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
PubSub.deleteCtx(this);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
static get observedAttributes() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const parseObjectToString = (params) =>
|
|
2
2
|
Object.entries(params)
|
|
3
|
-
.filter(([
|
|
3
|
+
.filter(([, value]) => value !== undefined && value !== '')
|
|
4
4
|
.map(([key, value]) => {
|
|
5
5
|
if (key === 'cdn-operations') {
|
|
6
6
|
return value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["Modal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["Modal.js"],"names":[],"mappings":"AAIA;IAEE,kCAAoC;IAIlC;;;;MAKC;IAGH,iCAEE;IAEF,yBAEE;IAEF,+BAEE;IAEF,uBAAuB;IACvB,4BADY,KAAK,UAIf;IAFA,eAAe;IACf,yBAAgC;IAGlC,uBAAuB;IACvB,0BADY,KAAK,UAKf;IAEF,aAMC;IAED,aAMC;CAuDF;;;;sBA9GqB,yBAAyB"}
|
package/blocks/Modal/Modal.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { html } from '../../symbiote.js';
|
|
2
3
|
import { Block } from '../../abstract/Block.js';
|
|
3
4
|
|
|
4
5
|
export class Modal extends Block {
|
|
@@ -111,7 +112,7 @@ export class Modal extends Block {
|
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
|
|
114
|
-
Modal.template =
|
|
115
|
+
Modal.template = html`
|
|
115
116
|
<dialog ref="dialog">
|
|
116
117
|
<slot></slot>
|
|
117
118
|
</dialog>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["ProgressBar.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["ProgressBar.js"],"names":[],"mappings":"AAGA;IACE,qBAAqB;IACrB,eAAW;IAEX,WAIE;CAyBH;;;;sBAnCqB,yBAAyB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { html } from '../../symbiote.js';
|
|
1
2
|
import { Block } from '../../abstract/Block.js';
|
|
2
3
|
|
|
3
4
|
export class ProgressBar extends Block {
|
|
@@ -35,4 +36,4 @@ export class ProgressBar extends Block {
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
|
|
38
|
-
ProgressBar.template =
|
|
39
|
+
ProgressBar.template = html` <div ref="line" class="uc-progress"></div> `;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBarCommon.d.ts","sourceRoot":"","sources":["ProgressBarCommon.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProgressBarCommon.d.ts","sourceRoot":"","sources":["ProgressBarCommon.js"],"names":[],"mappings":"AAGA;IACE,WAME;CAgCH;;;;8BAzC6B,iCAAiC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { html } from '../../symbiote.js';
|
|
1
2
|
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
2
3
|
|
|
3
4
|
export class ProgressBarCommon extends UploaderBlock {
|
|
@@ -41,4 +42,4 @@ export class ProgressBarCommon extends UploaderBlock {
|
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
ProgressBarCommon.template =
|
|
45
|
+
ProgressBarCommon.template = html` <uc-progress-bar set="visible: visible; value: value"></uc-progress-bar> `;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["Select.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["Select.js"],"names":[],"mappings":"AAGA;IACE,WAeE;IAPE,WAAkC;CAyBvC;;;;sBApCqB,yBAAyB"}
|
package/blocks/Select/Select.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { html } from '../../symbiote.js';
|
|
1
2
|
import { Block } from '../../abstract/Block.js';
|
|
2
3
|
|
|
3
4
|
export class Select extends Block {
|
|
@@ -21,15 +22,19 @@ export class Select extends Block {
|
|
|
21
22
|
initCallback() {
|
|
22
23
|
super.initCallback();
|
|
23
24
|
|
|
24
|
-
this.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
options
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
this.defineAccessor(
|
|
26
|
+
'options',
|
|
27
|
+
/** @param {{ text: String; value: String }[]} options */
|
|
28
|
+
(options) => {
|
|
29
|
+
this.$.currentText = options?.[0]?.text || '';
|
|
30
|
+
let htmlCode = '';
|
|
31
|
+
options?.forEach((opt) => {
|
|
32
|
+
htmlCode += html`<option value="${opt.value}">${opt.text}</option>`;
|
|
33
|
+
});
|
|
34
|
+
this.$.selectHtml = htmlCode;
|
|
35
|
+
},
|
|
36
|
+
);
|
|
32
37
|
}
|
|
33
38
|
}
|
|
34
39
|
|
|
35
|
-
Select.template =
|
|
40
|
+
Select.template = html` <select ref="select" set="innerHTML: selectHtml; onchange: onSelect"></select> `;
|
|
@@ -6,8 +6,8 @@ export class SimpleBtn extends UploaderBlock {
|
|
|
6
6
|
'*commonProgress': number;
|
|
7
7
|
'*uploadList': never[];
|
|
8
8
|
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
9
|
-
'*collectionErrors':
|
|
10
|
-
'*collectionState': import("../../index.js").OutputCollectionState
|
|
9
|
+
'*collectionErrors': import("../../index.js").OutputErrorCollection[];
|
|
10
|
+
'*collectionState': import("../../index.js").OutputCollectionState | null;
|
|
11
11
|
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
12
12
|
'*uploadTrigger': Set<string>;
|
|
13
13
|
'*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleBtn.d.ts","sourceRoot":"","sources":["SimpleBtn.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SimpleBtn.d.ts","sourceRoot":"","sources":["SimpleBtn.js"],"names":[],"mappings":"AAKA;IAMI;;;;;;;oCAgBW,gBACP;mCAGO,gBAAU;6BAInB,2BAAoB;;wCAOtB,wCAAsB;;;;;;MAxBrB;CAoBJ;;;;8BApC6B,iCAAiC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { html } from '../../symbiote.js';
|
|
2
3
|
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
3
4
|
import { asBoolean } from '../Config/normalizeConfigValue.js';
|
|
4
5
|
|
|
@@ -37,7 +38,7 @@ export class SimpleBtn extends UploaderBlock {
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
SimpleBtn.template =
|
|
41
|
+
SimpleBtn.template = html`
|
|
41
42
|
<uc-drop-area set="@disabled: !withDropZone">
|
|
42
43
|
<button type="button" set="onclick: onClick">
|
|
43
44
|
<uc-icon name="upload"></uc-icon>
|
|
@@ -22,8 +22,8 @@ export class SourceBtn extends UploaderBlock {
|
|
|
22
22
|
'*commonProgress': number;
|
|
23
23
|
'*uploadList': never[];
|
|
24
24
|
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
25
|
-
'*collectionErrors':
|
|
26
|
-
'*collectionState': import("../../index.js").OutputCollectionState
|
|
25
|
+
'*collectionErrors': import("../../index.js").OutputErrorCollection[];
|
|
26
|
+
'*collectionState': import("../../index.js").OutputCollectionState | null;
|
|
27
27
|
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
28
28
|
'*uploadTrigger': Set<string>;
|
|
29
29
|
'*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceBtn.d.ts","sourceRoot":"","sources":["SourceBtn.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SourceBtn.d.ts","sourceRoot":"","sources":["SourceBtn.js"],"names":[],"mappings":"AAOA;;;;;;;;;GASG;AAEH;IAEE,iCAAiC;IACjC,MADW,MAAM,GAAG,SAAS,CACZ;IACjB;;;OAGG;IACH,yBAAsB;IAKpB;;;;;;oCAHS,gBACR;mCAKC,gBAAK;6BAMS,2BAClB;;wCAMO,wCAA2B;;;;;;MAZ/B;IAGH,kBAuCC;IAkBD,kCAAkC;IAClC,yBADY,OAAO,QAGlB;IAED,2BAA2B;IAC3B,cADY,MAAM,WAGjB;IAED,iBAYC;IAED,2BAA2B;IAC3B,gBADY,MAAM,QAcjB;CACF;;;;sBA9HY;IACZ,IAAQ,EAAE,MAAM,CAAC;IACjB,QAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAY,CAAC,EAAE,MAAM,OAAO,CAAC;IAC7B,cAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C;8BAZ0B,iCAAiC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
import {
|
|
2
|
+
import { html } from '../../symbiote.js';
|
|
3
3
|
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
4
|
+
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
4
5
|
|
|
5
6
|
const L10N_PREFIX = 'src-type-';
|
|
6
7
|
|
|
@@ -132,8 +133,7 @@ export class SourceBtn extends UploaderBlock {
|
|
|
132
133
|
};
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
|
-
|
|
136
|
-
SourceBtn.template = /* HTML */ `
|
|
136
|
+
SourceBtn.template = html`
|
|
137
137
|
<button type="button">
|
|
138
138
|
<uc-icon set="@name: iconName"></uc-icon>
|
|
139
139
|
<div class="uc-txt" l10n="src-type"></div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceList.d.ts","sourceRoot":"","sources":["SourceList.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SourceList.d.ts","sourceRoot":"","sources":["SourceList.js"],"names":[],"mappings":"AAIA;CAgBC;sBApBqB,yBAAyB"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { Block } from '../../abstract/Block.js';
|
|
2
2
|
import { stringToArray } from '../../utils/stringToArray.js';
|
|
3
|
+
import { html } from '../../symbiote.js';
|
|
3
4
|
|
|
4
5
|
export class SourceList extends Block {
|
|
5
6
|
initCallback() {
|
|
6
7
|
super.initCallback();
|
|
7
8
|
this.subConfigValue('sourceList', (/** @type {String} */ val) => {
|
|
8
9
|
let list = stringToArray(val);
|
|
9
|
-
let
|
|
10
|
+
let htmlContent = '';
|
|
10
11
|
list.forEach((srcName) => {
|
|
11
|
-
|
|
12
|
+
htmlContent += html`<uc-source-btn type="${srcName}"></uc-source-btn>`;
|
|
12
13
|
});
|
|
13
14
|
if (this.cfg.sourceListWrap) {
|
|
14
|
-
this.innerHTML =
|
|
15
|
+
this.innerHTML = htmlContent;
|
|
15
16
|
} else {
|
|
16
|
-
this.outerHTML =
|
|
17
|
+
this.outerHTML = htmlContent;
|
|
17
18
|
}
|
|
18
19
|
});
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StartFrom.d.ts","sourceRoot":"","sources":["StartFrom.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StartFrom.d.ts","sourceRoot":"","sources":["StartFrom.js"],"names":[],"mappings":"AAGA;CASC;;;;8BAX6B,iCAAiC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { html } from '../../symbiote.js';
|
|
1
2
|
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
2
3
|
|
|
3
4
|
export class StartFrom extends ActivityBlock {
|
|
@@ -11,4 +12,4 @@ export class StartFrom extends ActivityBlock {
|
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
StartFrom.template =
|
|
15
|
+
StartFrom.template = html` <div class="uc-content"><slot></slot></div> `;
|
|
@@ -61,9 +61,9 @@ export class EventEmitter {
|
|
|
61
61
|
*/
|
|
62
62
|
private _debugPrint;
|
|
63
63
|
/** @param {import('../../abstract/Block.js').Block} target */
|
|
64
|
-
bindTarget(target: import(
|
|
64
|
+
bindTarget(target: import("../../abstract/Block.js").Block): void;
|
|
65
65
|
/** @param {import('../../abstract/Block.js').Block} target */
|
|
66
|
-
unbindTarget(target: import(
|
|
66
|
+
unbindTarget(target: import("../../abstract/Block.js").Block): void;
|
|
67
67
|
/**
|
|
68
68
|
* @private
|
|
69
69
|
* @template {(typeof EventType)[keyof typeof EventType]} T
|
|
@@ -78,30 +78,30 @@ export class EventEmitter {
|
|
|
78
78
|
* @param {TDebounce extends false | undefined ? unknown : () => unknown} [payload]
|
|
79
79
|
* @param {{ debounce?: TDebounce }} [options]
|
|
80
80
|
*/
|
|
81
|
-
emit<T extends
|
|
82
|
-
debounce?: TDebounce
|
|
81
|
+
emit<T extends (typeof EventType)[keyof typeof EventType], TDebounce extends boolean | number | undefined>(type: T, payload?: (TDebounce extends false | undefined ? unknown : () => unknown) | undefined, { debounce }?: {
|
|
82
|
+
debounce?: TDebounce;
|
|
83
83
|
} | undefined): void;
|
|
84
84
|
}
|
|
85
85
|
export type EventPayload = {
|
|
86
|
-
[EventType.FILE_ADDED]: import(
|
|
87
|
-
[EventType.FILE_REMOVED]: import(
|
|
88
|
-
[EventType.FILE_UPLOAD_START]: import(
|
|
89
|
-
[EventType.FILE_UPLOAD_PROGRESS]: import(
|
|
90
|
-
[EventType.FILE_UPLOAD_SUCCESS]: import(
|
|
91
|
-
[EventType.FILE_UPLOAD_FAILED]: import(
|
|
92
|
-
[EventType.FILE_URL_CHANGED]: import(
|
|
86
|
+
[EventType.FILE_ADDED]: import("../../index.js").OutputFileEntry<"idle">;
|
|
87
|
+
[EventType.FILE_REMOVED]: import("../../index.js").OutputFileEntry<"removed">;
|
|
88
|
+
[EventType.FILE_UPLOAD_START]: import("../../index.js").OutputFileEntry<"uploading">;
|
|
89
|
+
[EventType.FILE_UPLOAD_PROGRESS]: import("../../index.js").OutputFileEntry<"uploading">;
|
|
90
|
+
[EventType.FILE_UPLOAD_SUCCESS]: import("../../index.js").OutputFileEntry<"success">;
|
|
91
|
+
[EventType.FILE_UPLOAD_FAILED]: import("../../index.js").OutputFileEntry<"failed">;
|
|
92
|
+
[EventType.FILE_URL_CHANGED]: import("../../index.js").OutputFileEntry<"success">;
|
|
93
93
|
[EventType.MODAL_OPEN]: void;
|
|
94
94
|
[EventType.MODAL_CLOSE]: void;
|
|
95
95
|
[EventType.ACTIVITY_CHANGE]: {
|
|
96
|
-
activity: import(
|
|
96
|
+
activity: import("../../abstract/ActivityBlock.js").ActivityType;
|
|
97
97
|
};
|
|
98
98
|
[EventType.UPLOAD_CLICK]: void;
|
|
99
|
-
[EventType.DONE_CLICK]: import(
|
|
100
|
-
[EventType.COMMON_UPLOAD_START]: import(
|
|
101
|
-
[EventType.COMMON_UPLOAD_PROGRESS]: import(
|
|
102
|
-
[EventType.COMMON_UPLOAD_SUCCESS]: import(
|
|
103
|
-
[EventType.COMMON_UPLOAD_FAILED]: import(
|
|
104
|
-
[EventType.CHANGE]: import(
|
|
105
|
-
[EventType.GROUP_CREATED]: import(
|
|
99
|
+
[EventType.DONE_CLICK]: import("../../index.js").OutputCollectionState;
|
|
100
|
+
[EventType.COMMON_UPLOAD_START]: import("../../index.js").OutputCollectionState<"uploading">;
|
|
101
|
+
[EventType.COMMON_UPLOAD_PROGRESS]: import("../../index.js").OutputCollectionState<"uploading">;
|
|
102
|
+
[EventType.COMMON_UPLOAD_SUCCESS]: import("../../index.js").OutputCollectionState<"success">;
|
|
103
|
+
[EventType.COMMON_UPLOAD_FAILED]: import("../../index.js").OutputCollectionState<"failed">;
|
|
104
|
+
[EventType.CHANGE]: import("../../index.js").OutputCollectionState;
|
|
105
|
+
[EventType.GROUP_CREATED]: import("../../index.js").OutputCollectionState<"success", "has-group">;
|
|
106
106
|
};
|
|
107
107
|
//# sourceMappingURL=EventEmitter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["EventEmitter.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;IAmBE,uDAAuD;IACvD,
|
|
1
|
+
{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["EventEmitter.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;IAmBE,uDAAuD;IACvD,wBADY,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,EAGvC;IArBD;;;OAGG;IACH,sBAA0B;IAE1B;;;OAGG;IACH,iBAAqB;IAErB;;;OAGG;IACH,oBAAmB;IAOnB,8DAA8D;IAC9D,mBADY,OAAO,yBAAyB,EAAE,KAAK,QAGlD;IAED,8DAA8D;IAC9D,qBADY,OAAO,yBAAyB,EAAE,KAAK,QAGlD;IAED;;;;;OAKG;IACH,kBAaC;IAED;;;;;;OAMG;IACH,KAN0D,CAAC,SAA9C,CAAE,OAAO,SAAS,EAAE,MAAM,OAAO,SAAS,CAAE,EACb,SAAS,SAAvC,OAAO,GAAG,MAAM,GAAG,SAAU,QAChC,CAAC,mEACqD,OAAO;mBAChD,SAAS;yBAiBhC;CACF;2BAtGY;IACZ,CAAK,SAAS,CAAC,UAAU,CAAC,EAAE,OAAO,gBAAgB,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC7E,CAAK,SAAS,CAAC,YAAY,CAAC,EAAE,OAAO,gBAAgB,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IAClF,CAAK,SAAS,CAAC,iBAAiB,CAAC,EAAE,OAAO,gBAAgB,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACzF,CAAK,SAAS,CAAC,oBAAoB,CAAC,EAAE,OAAO,gBAAgB,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IAC5F,CAAK,SAAS,CAAC,mBAAmB,CAAC,EAAE,OAAO,gBAAgB,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACzF,CAAK,SAAS,CAAC,kBAAkB,CAAC,EAAE,OAAO,gBAAgB,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;IACvF,CAAK,SAAS,CAAC,gBAAgB,CAAC,EAAE,OAAO,gBAAgB,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACtF,CAAK,SAAS,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC;IACjC,CAAK,SAAS,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC;IAClC,CAAK,SAAS,CAAC,eAAe,CAAC,EAAE;QACjC,QAAc,EAAE,OAAO,iCAAiC,EAAE,YAAY,CAAC;KAClE,CAAC;IACN,CAAK,SAAS,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC;IACnC,CAAK,SAAS,CAAC,UAAU,CAAC,EAAE,OAAO,gBAAgB,EAAE,qBAAqB,CAAC;IAC3E,CAAK,SAAS,CAAC,mBAAmB,CAAC,EAAE,OAAO,gBAAgB,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAC;IACjG,CAAK,SAAS,CAAC,sBAAsB,CAAC,EAAE,OAAO,gBAAgB,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAC;IACpG,CAAK,SAAS,CAAC,qBAAqB,CAAC,EAAE,OAAO,gBAAgB,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IACjG,CAAK,SAAS,CAAC,oBAAoB,CAAC,EAAE,OAAO,gBAAgB,EAAE,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAC/F,CAAK,SAAS,CAAC,MAAM,CAAC,EAAE,OAAO,gBAAgB,EAAE,qBAAqB,CAAC;IACvE,CAAK,SAAS,CAAC,aAAa,CAAC,EAAE,OAAO,gBAAgB,EAAE,qBAAqB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;CACnG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type UploadCtxProvider = (
|
|
2
|
-
addEventListener<T extends
|
|
3
|
-
removeEventListener<
|
|
4
|
-
}
|
|
1
|
+
export type UploadCtxProvider = import("../../utils/mixinClass.js").MixinClass<typeof UploadCtxProviderClass, {
|
|
2
|
+
addEventListener<T extends (typeof import("./EventEmitter.js").EventType)[keyof typeof import("./EventEmitter.js").EventType]>(type: T, listener: (e: CustomEvent<import("./EventEmitter.js").EventPayload[T]>) => void, options?: boolean | AddEventListenerOptions): void;
|
|
3
|
+
removeEventListener<T extends (typeof import("./EventEmitter.js").EventType)[keyof typeof import("./EventEmitter.js").EventType]>(type: T, listener: (e: CustomEvent<import("./EventEmitter.js").EventPayload[T]>) => void, options?: boolean | EventListenerOptions): void;
|
|
4
|
+
}>;
|
|
5
5
|
/**
|
|
6
6
|
* @typedef {import('../../utils/mixinClass.js').MixinClass<
|
|
7
7
|
* typeof UploadCtxProviderClass,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadCtxProvider.d.ts","sourceRoot":"","sources":["UploadCtxProvider.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"UploadCtxProvider.d.ts","sourceRoot":"","sources":["UploadCtxProvider.js"],"names":[],"mappings":"gCAuBa,OAAO,2BAA2B,EAAE,UAAU,CAC1D,OAAW,sBAAsB,EACjC;IACA,gBAAsB,CACtB,CAAoH,SAAlG,CAAC,cAAc,mBAAmB,EAAE,SAAS,CAAC,CAAC,MAAM,cAAc,mBAAmB,EAAE,SAAS,CAAC,EAE5G,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,OAAO,mBAAmB,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAC/E,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAC;IACd,mBAAyB,CACzB,CAAoH,SAAlG,CAAC,cAAc,mBAAmB,EAAE,SAAS,CAAC,CAAC,MAAM,cAAc,mBAAmB,EAAE,SAAS,CAAC,EAE5G,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,OAAO,mBAAmB,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAC/E,OAAO,CAAC,EAAE,OAAO,GAAG,oBAAoB,GACvC,IAAI,CAAC;CACT,CACF;AAnBJ;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,gCAA4C,iBAAiB,CAAuD;AAxCpH;CAcC;;;;8BAhB6B,iCAAiC;0BACrC,mBAAmB"}
|
|
@@ -24,8 +24,8 @@ export class UploadList extends UploaderBlock {
|
|
|
24
24
|
'*commonProgress': number;
|
|
25
25
|
'*uploadList': never[];
|
|
26
26
|
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
27
|
-
'*collectionErrors':
|
|
28
|
-
'*collectionState': import("../../types").OutputCollectionState
|
|
27
|
+
'*collectionErrors': import("../../types").OutputErrorCollection[];
|
|
28
|
+
'*collectionState': import("../../types").OutputCollectionState | null;
|
|
29
29
|
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
30
30
|
'*uploadTrigger': Set<string>;
|
|
31
31
|
'*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadList.d.ts","sourceRoot":"","sources":["UploadList.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UploadList.d.ts","sourceRoot":"","sources":["UploadList.js"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AAEH;IAGE,4BAAoD;IAKlD;;;;;;;;;;;;;;;;oCAEE,aAAI;mCAEmB,aACrB;6BAGF,2BAEL;;wCAKqB,wCAChB;;;;;;MAUD;IAGH,eAAe;IACf,yCASQ;IAER,eAAe;IACf,4BAuCC;IAED;;;OAGG;IACH,uBAmBC;CAoEF;;;;sBA9LY;IACZ,KAAS,EAAE,MAAM,CAAC;IAClB,OAAW,EAAE,MAAM,CAAC;IACpB,SAAa,EAAE,MAAM,CAAC;IACtB,MAAU,EAAE,MAAM,CAAC;CAChB;8BAV0B,iCAAiC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { html } from '../../symbiote.js';
|
|
2
3
|
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
3
4
|
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
4
5
|
import { EventType } from '../UploadCtxProvider/EventEmitter.js';
|
|
@@ -14,8 +15,6 @@ import { throttle } from '../utils/throttle.js';
|
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
export class UploadList extends UploaderBlock {
|
|
17
|
-
// Context owner should have access to CSS l10n
|
|
18
|
-
// TODO: We need to move away l10n from CSS
|
|
19
18
|
couldBeCtxOwner = true;
|
|
20
19
|
historyTracked = true;
|
|
21
20
|
activityType = ActivityBlock.activities.UPLOAD_LIST;
|
|
@@ -199,7 +198,7 @@ export class UploadList extends UploaderBlock {
|
|
|
199
198
|
}
|
|
200
199
|
}
|
|
201
200
|
|
|
202
|
-
UploadList.template =
|
|
201
|
+
UploadList.template = html`
|
|
203
202
|
<uc-activity-header>
|
|
204
203
|
<span aria-live="polite" class="uc-header-text">{{headerText}}</span>
|
|
205
204
|
<button
|
|
@@ -216,7 +215,7 @@ UploadList.template = /* HTML */ `
|
|
|
216
215
|
<slot name="empty"><span l10n="no-files"></span></slot>
|
|
217
216
|
</div>
|
|
218
217
|
|
|
219
|
-
<div class="uc-files"
|
|
218
|
+
<div class="uc-files" itemize="*uploadList" item-tag="uc-file-item"></div>
|
|
220
219
|
|
|
221
220
|
<div class="uc-common-error" set="@hidden: !commonErrorMessage; textContent: commonErrorMessage;"></div>
|
|
222
221
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UrlSource.d.ts","sourceRoot":"","sources":["UrlSource.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UrlSource.d.ts","sourceRoot":"","sources":["UrlSource.js"],"names":[],"mappings":"AAKA;IAEE,oBAA4C;IAE5C,WAiBE;CAWH;;;;8BAnC6B,iCAAiC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { html } from '../../symbiote.js';
|
|
2
2
|
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
3
|
+
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
3
4
|
import { UploadSource } from '../utils/UploadSource.js';
|
|
4
5
|
|
|
5
6
|
export class UrlSource extends UploaderBlock {
|
|
@@ -36,7 +37,7 @@ export class UrlSource extends UploaderBlock {
|
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
UrlSource.template =
|
|
40
|
+
UrlSource.template = html`
|
|
40
41
|
<uc-activity-header>
|
|
41
42
|
<button type="button" class="uc-mini-btn" set="onclick: *historyBack">
|
|
42
43
|
<uc-icon name="back"></uc-icon>
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
* @param {number} wait
|
|
5
5
|
* @returns {T & { cancel: () => void }} }
|
|
6
6
|
*/
|
|
7
|
-
export function debounce<T extends
|
|
7
|
+
export function debounce<T extends {
|
|
8
|
+
(...args: any[]): any;
|
|
9
|
+
}>(callback: T, wait: number): T & {
|
|
8
10
|
cancel: () => void;
|
|
9
11
|
};
|
|
10
12
|
//# sourceMappingURL=debounce.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["debounce.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["debounce.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,yBALyC,CAAC,SAA7B;IAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAA;CAAG,YAC7B,CAAC,QACD,MAAM,GACJ,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,CAetC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"throttle.d.ts","sourceRoot":"","sources":["throttle.js"],"names":[],"mappings":"AAQO,
|
|
1
|
+
{"version":3,"file":"throttle.d.ts","sourceRoot":"","sources":["throttle.js"],"names":[],"mappings":"AAQO,yBALmC,CAAC,SAA9B;IAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;CAAG,MAC9B,CAAC,QACD,MAAM,GACJ,CAAC,GAAG;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,CAsC/C"}
|