@uploadcare/file-uploader 1.13.3-alpha.0 → 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.
- package/abstract/ActivityBlock.d.ts +5 -5
- package/abstract/ActivityBlock.d.ts.map +1 -1
- package/abstract/ActivityBlock.js +10 -15
- package/abstract/Block.d.ts +9 -9
- package/abstract/Block.d.ts.map +1 -1
- package/abstract/Block.js +15 -0
- package/abstract/CTX.d.ts +6 -6
- package/abstract/CTX.d.ts.map +1 -1
- package/abstract/CTX.js +3 -1
- package/abstract/LocaleManager.d.ts +3 -3
- package/abstract/LocaleManager.d.ts.map +1 -1
- package/abstract/ModalManager.d.ts +124 -0
- package/abstract/ModalManager.d.ts.map +1 -0
- package/abstract/ModalManager.js +227 -0
- 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.map +1 -1
- package/abstract/TypedData.d.ts +1 -1
- package/abstract/TypedData.d.ts.map +1 -1
- package/abstract/UploaderBlock.d.ts +8 -6
- package/abstract/UploaderBlock.d.ts.map +1 -1
- package/abstract/UploaderBlock.js +24 -8
- package/abstract/UploaderPublicApi.d.ts +24 -23
- package/abstract/UploaderPublicApi.d.ts.map +1 -1
- package/abstract/UploaderPublicApi.js +39 -9
- package/abstract/ValidationManager.d.ts +4 -4
- 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/l10nProcessor.d.ts.map +1 -1
- package/abstract/loadFileUploaderFrom.d.ts +1 -1
- 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/blocks/CameraSource/CameraSource.d.ts +9 -9
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
- package/blocks/CameraSource/CameraSource.js +1 -0
- package/blocks/CameraSource/calcCameraModes.d.ts +1 -1
- package/blocks/CameraSource/constants.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CropFrame.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +3 -3
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts +1 -1
- 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/cropper-constants.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts +1 -1
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts.map +1 -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/svg-sprite.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/types.d.ts +8 -58
- 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 -0
- package/blocks/Config/Config.d.ts +3 -12
- package/blocks/Config/Config.d.ts.map +1 -1
- package/blocks/Config/assertions.d.ts +1 -1
- package/blocks/Config/initialConfig.d.ts +1 -1
- package/blocks/Config/initialConfig.d.ts.map +1 -1
- package/blocks/Config/initialConfig.js +4 -0
- package/blocks/Config/normalizeConfigValue.d.ts +2 -1
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
- package/blocks/Config/normalizeConfigValue.js +19 -106
- package/blocks/Config/side-effects.d.ts.map +1 -1
- package/blocks/Config/validatorsType.d.ts +37 -0
- package/blocks/Config/validatorsType.d.ts.map +1 -0
- package/blocks/Config/validatorsType.js +134 -0
- package/blocks/DropArea/DropArea.d.ts +3 -2
- package/blocks/DropArea/DropArea.d.ts.map +1 -1
- package/blocks/DropArea/DropArea.js +21 -2
- 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 +3 -3
- package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.js +2 -1
- package/blocks/ExternalSource/MessageBridge.d.ts +3 -3
- package/blocks/ExternalSource/MessageBridge.d.ts.map +1 -1
- package/blocks/ExternalSource/query-string.d.ts.map +1 -1
- package/blocks/ExternalSource/types.d.ts +64 -64
- package/blocks/ExternalSource/types.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.d.ts +5 -6
- package/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.js +40 -42
- package/blocks/FileItem/file-item.css +90 -0
- package/blocks/Img/ImgBase.d.ts +3 -3
- package/blocks/Img/ImgBase.d.ts.map +1 -1
- package/blocks/Img/ImgConfig.d.ts.map +1 -1
- package/blocks/Img/configurations.d.ts.map +1 -1
- package/blocks/Modal/Modal.d.ts +21 -2
- package/blocks/Modal/Modal.d.ts.map +1 -1
- package/blocks/Modal/Modal.js +52 -24
- package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/blocks/ProgressBar/ProgressBar.js +1 -0
- package/blocks/ProgressBar/progress-bar.css +1 -0
- package/blocks/Range/Range.d.ts.map +1 -1
- package/blocks/SimpleBtn/SimpleBtn.d.ts +2 -2
- package/blocks/SimpleBtn/SimpleBtn.d.ts.map +1 -1
- package/blocks/SimpleBtn/SimpleBtn.js +1 -1
- package/blocks/SourceBtn/SourceBtn.d.ts +3 -3
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
- package/blocks/SourceBtn/SourceBtn.js +29 -15
- package/blocks/SourceList/SourceList.d.ts.map +1 -1
- package/blocks/SourceList/SourceList.js +17 -11
- package/blocks/Spinner/Spinner.d.ts.map +1 -1
- package/blocks/StartFrom/StartFrom.js +1 -1
- package/blocks/Thumb/Thumb.d.ts +48 -0
- package/blocks/Thumb/Thumb.d.ts.map +1 -0
- package/blocks/Thumb/Thumb.js +169 -0
- package/blocks/Thumb/thumb.css +4 -0
- package/blocks/UploadCtxProvider/EventEmitter.d.ts +20 -20
- 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 +4 -2
- package/blocks/UploadList/UploadList.d.ts.map +1 -1
- package/blocks/UploadList/UploadList.js +16 -1
- package/blocks/UploadList/upload-list.css +23 -0
- package/blocks/UrlSource/UrlSource.d.ts.map +1 -1
- package/blocks/UrlSource/UrlSource.js +1 -0
- package/blocks/svg-backgrounds/svg-backgrounds.d.ts +3 -3
- package/blocks/svg-backgrounds/svg-backgrounds.d.ts.map +1 -1
- package/blocks/themes/uc-basic/common.css +1 -1
- package/blocks/themes/uc-basic/index.css +1 -0
- package/blocks/themes/uc-basic/svg-sprite.d.ts +1 -1
- package/blocks/themes/uc-basic/svg-sprite.d.ts.map +1 -1
- package/blocks/themes/uc-basic/svg-sprite.js +1 -1
- package/blocks/themes/uc-basic/theme.css +12 -0
- package/blocks/utils/UploadSource.d.ts +6 -1
- package/blocks/utils/UploadSource.d.ts.map +1 -1
- package/blocks/utils/UploadSource.js +7 -1
- package/blocks/utils/debounce.d.ts +3 -1
- package/blocks/utils/debounce.d.ts.map +1 -1
- package/blocks/utils/resizeImage.d.ts +1 -1
- package/blocks/utils/resizeImage.d.ts.map +1 -1
- package/blocks/utils/supportCapture.d.ts +2 -0
- package/blocks/utils/supportCapture.d.ts.map +1 -0
- package/blocks/utils/supportCapture.js +3 -0
- 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/env.d.ts +1 -1
- package/env.d.ts.map +1 -1
- package/env.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/index.ssr.d.ts +88 -15
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +119 -24
- package/locales/file-uploader/ar.d.ts +2 -0
- package/locales/file-uploader/ar.js +2 -0
- package/locales/file-uploader/az.d.ts +2 -0
- package/locales/file-uploader/az.js +2 -0
- package/locales/file-uploader/ca.d.ts +2 -0
- package/locales/file-uploader/ca.js +2 -0
- package/locales/file-uploader/cs.d.ts +2 -0
- package/locales/file-uploader/cs.js +2 -0
- package/locales/file-uploader/da.d.ts +2 -0
- package/locales/file-uploader/da.js +2 -0
- package/locales/file-uploader/de.d.ts +2 -0
- package/locales/file-uploader/de.js +2 -0
- package/locales/file-uploader/el.d.ts +2 -0
- package/locales/file-uploader/el.js +2 -0
- package/locales/file-uploader/en.d.ts +2 -1
- package/locales/file-uploader/en.js +2 -1
- package/locales/file-uploader/es.d.ts +2 -0
- package/locales/file-uploader/es.js +2 -0
- package/locales/file-uploader/et.d.ts +2 -0
- package/locales/file-uploader/et.js +2 -0
- package/locales/file-uploader/fi.d.ts +2 -0
- package/locales/file-uploader/fi.js +2 -0
- package/locales/file-uploader/fr.d.ts +2 -0
- package/locales/file-uploader/fr.js +2 -0
- package/locales/file-uploader/he.d.ts +2 -0
- package/locales/file-uploader/he.js +2 -0
- package/locales/file-uploader/hy.d.ts +2 -0
- package/locales/file-uploader/hy.js +2 -0
- package/locales/file-uploader/is.d.ts +2 -0
- package/locales/file-uploader/is.js +2 -0
- package/locales/file-uploader/it.d.ts +2 -0
- package/locales/file-uploader/it.js +2 -0
- package/locales/file-uploader/ja.d.ts +2 -0
- package/locales/file-uploader/ja.js +2 -0
- package/locales/file-uploader/ka.d.ts +2 -0
- package/locales/file-uploader/ka.js +2 -0
- package/locales/file-uploader/kk.d.ts +2 -0
- package/locales/file-uploader/kk.js +2 -0
- package/locales/file-uploader/ko.d.ts +2 -0
- package/locales/file-uploader/ko.js +2 -0
- package/locales/file-uploader/lv.d.ts +2 -0
- package/locales/file-uploader/lv.js +2 -0
- package/locales/file-uploader/nb.d.ts +2 -0
- package/locales/file-uploader/nb.js +2 -0
- package/locales/file-uploader/nl.d.ts +2 -0
- package/locales/file-uploader/nl.js +2 -0
- package/locales/file-uploader/pl.d.ts +2 -0
- package/locales/file-uploader/pl.js +2 -0
- package/locales/file-uploader/pt.d.ts +2 -0
- package/locales/file-uploader/pt.js +2 -0
- package/locales/file-uploader/ro.d.ts +2 -0
- package/locales/file-uploader/ro.js +2 -0
- package/locales/file-uploader/ru.d.ts +2 -0
- package/locales/file-uploader/ru.js +2 -0
- package/locales/file-uploader/sk.d.ts +2 -0
- package/locales/file-uploader/sk.js +2 -0
- package/locales/file-uploader/sr.d.ts +2 -0
- package/locales/file-uploader/sr.js +2 -0
- package/locales/file-uploader/sv.d.ts +2 -0
- package/locales/file-uploader/sv.js +2 -0
- package/locales/file-uploader/tr.d.ts +2 -0
- package/locales/file-uploader/tr.js +2 -0
- package/locales/file-uploader/uk.d.ts +2 -0
- package/locales/file-uploader/uk.js +2 -0
- package/locales/file-uploader/vi.d.ts +2 -0
- package/locales/file-uploader/vi.js +2 -0
- package/locales/file-uploader/zh-TW.d.ts +2 -0
- package/locales/file-uploader/zh-TW.js +2 -0
- package/locales/file-uploader/zh.d.ts +2 -0
- package/locales/file-uploader/zh.js +2 -0
- package/package.json +4 -2
- 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/minimal/FileUploaderMinimal.d.ts +35 -0
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -1
- package/solutions/file-uploader/minimal/FileUploaderMinimal.js +122 -9
- package/solutions/file-uploader/minimal/index.css +25 -24
- package/solutions/file-uploader/minimal/index.d.ts +1 -13
- package/solutions/file-uploader/minimal/index.js +1 -13
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts +3 -5
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -1
- package/solutions/file-uploader/regular/FileUploaderRegular.js +17 -16
- package/types/exported.d.ts +7 -0
- package/utils/cdn-utils.d.ts +3 -3
- package/utils/cdn-utils.d.ts.map +1 -1
- package/utils/fileTypes.d.ts +1 -1
- package/utils/fileTypes.d.ts.map +1 -1
- 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 +1 -1
- package/utils/template-utils.d.ts.map +1 -1
- package/utils/toKebabCase.d.ts.map +1 -1
- package/utils/transparentPixelSrc.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 +1 -1
- package/utils/waitForAttribute.d.ts.map +1 -1
- package/web/file-uploader.iife.min.js +4 -4
- package/web/file-uploader.min.js +4 -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 +4 -4
- package/web/uc-file-uploader-inline.min.css +1 -1
- package/web/uc-file-uploader-inline.min.js +4 -4
- package/web/uc-file-uploader-minimal.min.css +1 -1
- 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 +4 -4
- package/web/uc-img.min.js +2 -2
- package/blocks/utils/checkDevice.d.ts +0 -9
- package/blocks/utils/checkDevice.d.ts.map +0 -1
- package/blocks/utils/checkDevice.js +0 -34
package/index.ssr.d.ts
CHANGED
|
@@ -71,11 +71,12 @@ export const CameraSource: {
|
|
|
71
71
|
LOCAL: string;
|
|
72
72
|
DROP_AREA: string;
|
|
73
73
|
CAMERA: string;
|
|
74
|
-
VIDEO_CAMERA: string;
|
|
75
74
|
EXTERNAL: string;
|
|
76
75
|
API: string;
|
|
77
76
|
URL: string;
|
|
78
77
|
DRAW: string;
|
|
78
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
79
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
79
80
|
FACEBOOK: string;
|
|
80
81
|
DROPBOX: string;
|
|
81
82
|
GDRIVE: string;
|
|
@@ -128,11 +129,12 @@ export const CloudImageEditorActivity: {
|
|
|
128
129
|
LOCAL: string;
|
|
129
130
|
DROP_AREA: string;
|
|
130
131
|
CAMERA: string;
|
|
131
|
-
VIDEO_CAMERA: string;
|
|
132
132
|
EXTERNAL: string;
|
|
133
133
|
API: string;
|
|
134
134
|
URL: string;
|
|
135
135
|
DRAW: string;
|
|
136
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
137
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
136
138
|
FACEBOOK: string;
|
|
137
139
|
DROPBOX: string;
|
|
138
140
|
GDRIVE: string;
|
|
@@ -229,11 +231,12 @@ export const DropArea: {
|
|
|
229
231
|
LOCAL: string;
|
|
230
232
|
DROP_AREA: string;
|
|
231
233
|
CAMERA: string;
|
|
232
|
-
VIDEO_CAMERA: string;
|
|
233
234
|
EXTERNAL: string;
|
|
234
235
|
API: string;
|
|
235
236
|
URL: string;
|
|
236
237
|
DRAW: string;
|
|
238
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
239
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
237
240
|
FACEBOOK: string;
|
|
238
241
|
DROPBOX: string;
|
|
239
242
|
GDRIVE: string;
|
|
@@ -340,11 +343,12 @@ export const ExternalSource: {
|
|
|
340
343
|
LOCAL: string;
|
|
341
344
|
DROP_AREA: string;
|
|
342
345
|
CAMERA: string;
|
|
343
|
-
VIDEO_CAMERA: string;
|
|
344
346
|
EXTERNAL: string;
|
|
345
347
|
API: string;
|
|
346
348
|
URL: string;
|
|
347
349
|
DRAW: string;
|
|
350
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
351
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
348
352
|
FACEBOOK: string;
|
|
349
353
|
DROPBOX: string;
|
|
350
354
|
GDRIVE: string;
|
|
@@ -402,11 +406,12 @@ export const FileItem: {
|
|
|
402
406
|
LOCAL: string;
|
|
403
407
|
DROP_AREA: string;
|
|
404
408
|
CAMERA: string;
|
|
405
|
-
VIDEO_CAMERA: string;
|
|
406
409
|
EXTERNAL: string;
|
|
407
410
|
API: string;
|
|
408
411
|
URL: string;
|
|
409
412
|
DRAW: string;
|
|
413
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
414
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
410
415
|
FACEBOOK: string;
|
|
411
416
|
DROPBOX: string;
|
|
412
417
|
GDRIVE: string;
|
|
@@ -472,11 +477,12 @@ export const FormInput: {
|
|
|
472
477
|
LOCAL: string;
|
|
473
478
|
DROP_AREA: string;
|
|
474
479
|
CAMERA: string;
|
|
475
|
-
VIDEO_CAMERA: string;
|
|
476
480
|
EXTERNAL: string;
|
|
477
481
|
API: string;
|
|
478
482
|
URL: string;
|
|
479
483
|
DRAW: string;
|
|
484
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
485
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
480
486
|
FACEBOOK: string;
|
|
481
487
|
DROPBOX: string;
|
|
482
488
|
GDRIVE: string;
|
|
@@ -535,8 +541,16 @@ export const Modal: {
|
|
|
535
541
|
is: string;
|
|
536
542
|
bindAttributes: () => void;
|
|
537
543
|
};
|
|
544
|
+
export namespace ModalEvents {
|
|
545
|
+
let ADD: string;
|
|
546
|
+
let DELETE: string;
|
|
547
|
+
let OPEN: string;
|
|
548
|
+
let CLOSE: string;
|
|
549
|
+
let CLOSE_ALL: string;
|
|
550
|
+
let DESTROY: string;
|
|
551
|
+
}
|
|
538
552
|
export const PACKAGE_NAME: "blocks";
|
|
539
|
-
export const PACKAGE_VERSION: "1.
|
|
553
|
+
export const PACKAGE_VERSION: "1.14.0";
|
|
540
554
|
export const PresenceToggle: {
|
|
541
555
|
new (): {};
|
|
542
556
|
template: string;
|
|
@@ -572,11 +586,12 @@ export const ProgressBarCommon: {
|
|
|
572
586
|
LOCAL: string;
|
|
573
587
|
DROP_AREA: string;
|
|
574
588
|
CAMERA: string;
|
|
575
|
-
VIDEO_CAMERA: string;
|
|
576
589
|
EXTERNAL: string;
|
|
577
590
|
API: string;
|
|
578
591
|
URL: string;
|
|
579
592
|
DRAW: string;
|
|
593
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
594
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
580
595
|
FACEBOOK: string;
|
|
581
596
|
DROPBOX: string;
|
|
582
597
|
GDRIVE: string;
|
|
@@ -631,11 +646,12 @@ export const SimpleBtn: {
|
|
|
631
646
|
LOCAL: string;
|
|
632
647
|
DROP_AREA: string;
|
|
633
648
|
CAMERA: string;
|
|
634
|
-
VIDEO_CAMERA: string;
|
|
635
649
|
EXTERNAL: string;
|
|
636
650
|
API: string;
|
|
637
651
|
URL: string;
|
|
638
652
|
DRAW: string;
|
|
653
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
654
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
639
655
|
FACEBOOK: string;
|
|
640
656
|
DROPBOX: string;
|
|
641
657
|
GDRIVE: string;
|
|
@@ -695,11 +711,12 @@ export const SourceBtn: {
|
|
|
695
711
|
LOCAL: string;
|
|
696
712
|
DROP_AREA: string;
|
|
697
713
|
CAMERA: string;
|
|
698
|
-
VIDEO_CAMERA: string;
|
|
699
714
|
EXTERNAL: string;
|
|
700
715
|
API: string;
|
|
701
716
|
URL: string;
|
|
702
717
|
DRAW: string;
|
|
718
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
719
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
703
720
|
FACEBOOK: string;
|
|
704
721
|
DROPBOX: string;
|
|
705
722
|
GDRIVE: string;
|
|
@@ -756,6 +773,57 @@ export const StartFrom: {
|
|
|
756
773
|
is: string;
|
|
757
774
|
bindAttributes: () => void;
|
|
758
775
|
};
|
|
776
|
+
export const Thumb: {
|
|
777
|
+
new (): {};
|
|
778
|
+
template: string;
|
|
779
|
+
observedAttributes: string[];
|
|
780
|
+
extSrcList: {
|
|
781
|
+
FACEBOOK: string;
|
|
782
|
+
DROPBOX: string;
|
|
783
|
+
GDRIVE: string;
|
|
784
|
+
GPHOTOS: string;
|
|
785
|
+
FLICKR: string;
|
|
786
|
+
VK: string;
|
|
787
|
+
EVERNOTE: string;
|
|
788
|
+
BOX: string;
|
|
789
|
+
ONEDRIVE: string;
|
|
790
|
+
HUDDLE: string;
|
|
791
|
+
};
|
|
792
|
+
sourceTypes: {
|
|
793
|
+
LOCAL: string;
|
|
794
|
+
DROP_AREA: string;
|
|
795
|
+
CAMERA: string;
|
|
796
|
+
EXTERNAL: string;
|
|
797
|
+
API: string;
|
|
798
|
+
URL: string;
|
|
799
|
+
DRAW: string;
|
|
800
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
801
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
802
|
+
FACEBOOK: string;
|
|
803
|
+
DROPBOX: string;
|
|
804
|
+
GDRIVE: string;
|
|
805
|
+
GPHOTOS: string;
|
|
806
|
+
FLICKR: string;
|
|
807
|
+
VK: string;
|
|
808
|
+
EVERNOTE: string;
|
|
809
|
+
BOX: string;
|
|
810
|
+
ONEDRIVE: string;
|
|
811
|
+
HUDDLE: string;
|
|
812
|
+
};
|
|
813
|
+
activities: {
|
|
814
|
+
START_FROM: string;
|
|
815
|
+
CAMERA: string;
|
|
816
|
+
DRAW: string;
|
|
817
|
+
UPLOAD_LIST: string;
|
|
818
|
+
URL: string;
|
|
819
|
+
CLOUD_IMG_EDIT: string;
|
|
820
|
+
EXTERNAL: string;
|
|
821
|
+
};
|
|
822
|
+
reg: () => void;
|
|
823
|
+
styleAttrs: any[];
|
|
824
|
+
is: string;
|
|
825
|
+
bindAttributes: () => void;
|
|
826
|
+
};
|
|
759
827
|
export const UID: {
|
|
760
828
|
new (): {};
|
|
761
829
|
generate: () => void;
|
|
@@ -807,11 +875,12 @@ export const UploadCtxProvider: {
|
|
|
807
875
|
LOCAL: string;
|
|
808
876
|
DROP_AREA: string;
|
|
809
877
|
CAMERA: string;
|
|
810
|
-
VIDEO_CAMERA: string;
|
|
811
878
|
EXTERNAL: string;
|
|
812
879
|
API: string;
|
|
813
880
|
URL: string;
|
|
814
881
|
DRAW: string;
|
|
882
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
883
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
815
884
|
FACEBOOK: string;
|
|
816
885
|
DROPBOX: string;
|
|
817
886
|
GDRIVE: string;
|
|
@@ -856,11 +925,12 @@ export const UploadList: {
|
|
|
856
925
|
LOCAL: string;
|
|
857
926
|
DROP_AREA: string;
|
|
858
927
|
CAMERA: string;
|
|
859
|
-
VIDEO_CAMERA: string;
|
|
860
928
|
EXTERNAL: string;
|
|
861
929
|
API: string;
|
|
862
930
|
URL: string;
|
|
863
931
|
DRAW: string;
|
|
932
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
933
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
864
934
|
FACEBOOK: string;
|
|
865
935
|
DROPBOX: string;
|
|
866
936
|
GDRIVE: string;
|
|
@@ -890,11 +960,12 @@ export namespace UploadSource {
|
|
|
890
960
|
export let LOCAL: string;
|
|
891
961
|
export let DROP_AREA: string;
|
|
892
962
|
export let CAMERA: string;
|
|
893
|
-
export let VIDEO_CAMERA: string;
|
|
894
963
|
export let EXTERNAL: string;
|
|
895
964
|
export let API: string;
|
|
896
965
|
export let URL: string;
|
|
897
966
|
export let DRAW: string;
|
|
967
|
+
export let MOBILE_VIDEO_CAMERA: string;
|
|
968
|
+
export let MOBILE_PHOTO_CAMERA: string;
|
|
898
969
|
let FACEBOOK_1: string;
|
|
899
970
|
export { FACEBOOK_1 as FACEBOOK };
|
|
900
971
|
let DROPBOX_1: string;
|
|
@@ -934,11 +1005,12 @@ export const UploaderBlock: {
|
|
|
934
1005
|
LOCAL: string;
|
|
935
1006
|
DROP_AREA: string;
|
|
936
1007
|
CAMERA: string;
|
|
937
|
-
VIDEO_CAMERA: string;
|
|
938
1008
|
EXTERNAL: string;
|
|
939
1009
|
API: string;
|
|
940
1010
|
URL: string;
|
|
941
1011
|
DRAW: string;
|
|
1012
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
1013
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
942
1014
|
FACEBOOK: string;
|
|
943
1015
|
DROPBOX: string;
|
|
944
1016
|
GDRIVE: string;
|
|
@@ -983,11 +1055,12 @@ export const UrlSource: {
|
|
|
983
1055
|
LOCAL: string;
|
|
984
1056
|
DROP_AREA: string;
|
|
985
1057
|
CAMERA: string;
|
|
986
|
-
VIDEO_CAMERA: string;
|
|
987
1058
|
EXTERNAL: string;
|
|
988
1059
|
API: string;
|
|
989
1060
|
URL: string;
|
|
990
1061
|
DRAW: string;
|
|
1062
|
+
MOBILE_VIDEO_CAMERA: string;
|
|
1063
|
+
MOBILE_PHOTO_CAMERA: string;
|
|
991
1064
|
FACEBOOK: string;
|
|
992
1065
|
DROPBOX: string;
|
|
993
1066
|
GDRIVE: string;
|
package/index.ssr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ssr.d.ts","sourceRoot":"","sources":["index.ssr.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;EAcE;AACF;;;;;;;;;;;;;;;EAcE;AACF;;;;;EAIE;AACF;;;;;;EAKE;AACF;;;;;;;;EAgBE;AACF
|
|
1
|
+
{"version":3,"file":"index.ssr.d.ts","sourceRoot":"","sources":["index.ssr.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;EAcE;AACF;;;;;;;;;;;;;;;EAcE;AACF;;;;;EAIE;AACF;;;;;;EAKE;AACF;;;;;;;;EAgBE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4IE;AACF;;;;;;;;EAuCE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;EAuCE;AACF;;;;;;;EA4GE;AACF;;;;;;;EAaE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;EAeE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEE;AACF;;;;;;;EAWE;AACF;;;;;;;EAWE;AACF;;;;;;;EASE;AACF;;;;;;EAKE;AACF;;;;;;;EAWE;AACF;;;;;;;EAME;AACF;;;;;;;EAWE;AACF;;;;;;;EA2IE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0EE;;;;;;;;;;;;;AAaF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqFE;AACF;;;;;;EAKE;AACF;;;;;;EAKE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;EAWE;AACF;;;;;;EAwBE;AACF;;;;;;;EAUE;AACF;;;;;;;;EAWE;;;;;;;;;AASF,oCAAqC;AACrC,uCAAwC;AACxC;;;;;;;EAME;AACF;;;;;;;EASE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DE;AACF;;;;;;;EAeE;AACF;;;;;;EAKE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDE;AACF;;;;;;EAKE;AACF;;;;;;EAKE;AACF;;;;;;;;;;;;;;;;EAeE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDE;AACF;;;;;;;;;;;;EAWE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2EE;AACK,yCAAiC;AACjC,qCAA6B;AAC7B,6CAAqC;AACrC,oCAA4B"}
|
package/index.ssr.js
CHANGED
|
@@ -166,11 +166,12 @@ export const CameraSource = class {
|
|
|
166
166
|
LOCAL: "local",
|
|
167
167
|
DROP_AREA: "drop-area",
|
|
168
168
|
CAMERA: "camera",
|
|
169
|
-
VIDEO_CAMERA: "video-camera",
|
|
170
169
|
EXTERNAL: "external",
|
|
171
170
|
API: "js-api",
|
|
172
171
|
URL: "url",
|
|
173
172
|
DRAW: "draw",
|
|
173
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
174
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
174
175
|
FACEBOOK: "facebook",
|
|
175
176
|
DROPBOX: "dropbox",
|
|
176
177
|
GDRIVE: "gdrive",
|
|
@@ -253,11 +254,12 @@ export const CloudImageEditorActivity = class {
|
|
|
253
254
|
LOCAL: "local",
|
|
254
255
|
DROP_AREA: "drop-area",
|
|
255
256
|
CAMERA: "camera",
|
|
256
|
-
VIDEO_CAMERA: "video-camera",
|
|
257
257
|
EXTERNAL: "external",
|
|
258
258
|
API: "js-api",
|
|
259
259
|
URL: "url",
|
|
260
260
|
DRAW: "draw",
|
|
261
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
262
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
261
263
|
FACEBOOK: "facebook",
|
|
262
264
|
DROPBOX: "dropbox",
|
|
263
265
|
GDRIVE: "gdrive",
|
|
@@ -375,6 +377,9 @@ export const Config = class {
|
|
|
375
377
|
"enable-audio-recording",
|
|
376
378
|
"enable-video-recording",
|
|
377
379
|
"max-video-recording-duration",
|
|
380
|
+
"files-view-mode",
|
|
381
|
+
"grid-show-file-names",
|
|
382
|
+
"cloud-image-editor-auto-open",
|
|
378
383
|
"multiplemin",
|
|
379
384
|
"multiplemax",
|
|
380
385
|
"confirmupload",
|
|
@@ -420,6 +425,9 @@ export const Config = class {
|
|
|
420
425
|
"enableaudiorecording",
|
|
421
426
|
"enablevideorecording",
|
|
422
427
|
"maxvideorecordingduration",
|
|
428
|
+
"filesviewmode",
|
|
429
|
+
"gridshowfilenames",
|
|
430
|
+
"cloudimageeditorautoopen",
|
|
423
431
|
];
|
|
424
432
|
static reg = () => {};
|
|
425
433
|
static styleAttrs = [];
|
|
@@ -483,6 +491,7 @@ export const DropArea = class {
|
|
|
483
491
|
"text",
|
|
484
492
|
"fullscreen",
|
|
485
493
|
"disabled",
|
|
494
|
+
"initflow",
|
|
486
495
|
];
|
|
487
496
|
static extSrcList = {
|
|
488
497
|
FACEBOOK: "facebook",
|
|
@@ -500,11 +509,12 @@ export const DropArea = class {
|
|
|
500
509
|
LOCAL: "local",
|
|
501
510
|
DROP_AREA: "drop-area",
|
|
502
511
|
CAMERA: "camera",
|
|
503
|
-
VIDEO_CAMERA: "video-camera",
|
|
504
512
|
EXTERNAL: "external",
|
|
505
513
|
API: "js-api",
|
|
506
514
|
URL: "url",
|
|
507
515
|
DRAW: "draw",
|
|
516
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
517
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
508
518
|
FACEBOOK: "facebook",
|
|
509
519
|
DROPBOX: "dropbox",
|
|
510
520
|
GDRIVE: "gdrive",
|
|
@@ -784,11 +794,12 @@ export const ExternalSource = class {
|
|
|
784
794
|
LOCAL: "local",
|
|
785
795
|
DROP_AREA: "drop-area",
|
|
786
796
|
CAMERA: "camera",
|
|
787
|
-
VIDEO_CAMERA: "video-camera",
|
|
788
797
|
EXTERNAL: "external",
|
|
789
798
|
API: "js-api",
|
|
790
799
|
URL: "url",
|
|
791
800
|
DRAW: "draw",
|
|
801
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
802
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
792
803
|
FACEBOOK: "facebook",
|
|
793
804
|
DROPBOX: "dropbox",
|
|
794
805
|
GDRIVE: "gdrive",
|
|
@@ -829,14 +840,11 @@ export const ExternalUploadSource = {
|
|
|
829
840
|
export const FileItem = class {
|
|
830
841
|
static template = `
|
|
831
842
|
<div class="uc-inner" set="@finished: isFinished; @uploading: isUploading; @failed: isFailed; @focused: isFocused">
|
|
832
|
-
<
|
|
833
|
-
|
|
834
|
-
<uc-icon set="@name: badgeIcon"></uc-icon>
|
|
835
|
-
</div>
|
|
836
|
-
</div>
|
|
843
|
+
<uc-thumb set="uid:uid;badgeIcon:badgeIcon"></uc-thumb>
|
|
844
|
+
|
|
837
845
|
<div aria-atomic="true" aria-live="polite" class="uc-file-name-wrapper" set="@aria-label:ariaLabelStatusFile;">
|
|
838
|
-
<span class="uc-file-name">{{itemName}}</span>
|
|
839
|
-
<span class="uc-file-error" set="@hidden: !errorText">{{errorText}}</span>
|
|
846
|
+
<span class="uc-file-name" set="@hidden: !showFileNames">{{itemName}}</span>
|
|
847
|
+
<span class="uc-file-error" set="@hidden: !errorText;">{{errorText}}</span>
|
|
840
848
|
<span class="uc-file-hint" set="@hidden: !hint">{{hint}}</span>
|
|
841
849
|
</div>
|
|
842
850
|
<div class="uc-file-actions">
|
|
@@ -860,7 +868,11 @@ export const FileItem = class {
|
|
|
860
868
|
<uc-icon name="upload"></uc-icon>
|
|
861
869
|
</button>
|
|
862
870
|
</div>
|
|
863
|
-
<uc-progress-bar
|
|
871
|
+
<uc-progress-bar
|
|
872
|
+
class="uc-progress-bar"
|
|
873
|
+
set="value: progressValue; visible: progressVisible; @hasFileName: showFileNames"
|
|
874
|
+
>
|
|
875
|
+
</uc-progress-bar>
|
|
864
876
|
</div>
|
|
865
877
|
`;
|
|
866
878
|
static activeInstances = {};
|
|
@@ -880,11 +892,12 @@ export const FileItem = class {
|
|
|
880
892
|
LOCAL: "local",
|
|
881
893
|
DROP_AREA: "drop-area",
|
|
882
894
|
CAMERA: "camera",
|
|
883
|
-
VIDEO_CAMERA: "video-camera",
|
|
884
895
|
EXTERNAL: "external",
|
|
885
896
|
API: "js-api",
|
|
886
897
|
URL: "url",
|
|
887
898
|
DRAW: "draw",
|
|
899
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
900
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
888
901
|
FACEBOOK: "facebook",
|
|
889
902
|
DROPBOX: "dropbox",
|
|
890
903
|
GDRIVE: "gdrive",
|
|
@@ -946,11 +959,12 @@ export const FormInput = class {
|
|
|
946
959
|
LOCAL: "local",
|
|
947
960
|
DROP_AREA: "drop-area",
|
|
948
961
|
CAMERA: "camera",
|
|
949
|
-
VIDEO_CAMERA: "video-camera",
|
|
950
962
|
EXTERNAL: "external",
|
|
951
963
|
API: "js-api",
|
|
952
964
|
URL: "url",
|
|
953
965
|
DRAW: "draw",
|
|
966
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
967
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
954
968
|
FACEBOOK: "facebook",
|
|
955
969
|
DROPBOX: "dropbox",
|
|
956
970
|
GDRIVE: "gdrive",
|
|
@@ -1036,8 +1050,16 @@ export const Modal = class {
|
|
|
1036
1050
|
static is = `sym-1`;
|
|
1037
1051
|
static bindAttributes = () => {};
|
|
1038
1052
|
};
|
|
1053
|
+
export const ModalEvents = {
|
|
1054
|
+
ADD: "modal:add",
|
|
1055
|
+
DELETE: "modal:delete",
|
|
1056
|
+
OPEN: "modal:open",
|
|
1057
|
+
CLOSE: "modal:close",
|
|
1058
|
+
CLOSE_ALL: "modal:closeAll",
|
|
1059
|
+
DESTROY: "modal:destroy",
|
|
1060
|
+
};
|
|
1039
1061
|
export const PACKAGE_NAME = `blocks`;
|
|
1040
|
-
export const PACKAGE_VERSION = `1.
|
|
1062
|
+
export const PACKAGE_VERSION = `1.14.0`;
|
|
1041
1063
|
export const PresenceToggle = class {
|
|
1042
1064
|
static template = `<slot></slot> `;
|
|
1043
1065
|
static reg = () => {};
|
|
@@ -1073,11 +1095,12 @@ export const ProgressBarCommon = class {
|
|
|
1073
1095
|
LOCAL: "local",
|
|
1074
1096
|
DROP_AREA: "drop-area",
|
|
1075
1097
|
CAMERA: "camera",
|
|
1076
|
-
VIDEO_CAMERA: "video-camera",
|
|
1077
1098
|
EXTERNAL: "external",
|
|
1078
1099
|
API: "js-api",
|
|
1079
1100
|
URL: "url",
|
|
1080
1101
|
DRAW: "draw",
|
|
1102
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
1103
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
1081
1104
|
FACEBOOK: "facebook",
|
|
1082
1105
|
DROPBOX: "dropbox",
|
|
1083
1106
|
GDRIVE: "gdrive",
|
|
@@ -1139,11 +1162,12 @@ export const SimpleBtn = class {
|
|
|
1139
1162
|
LOCAL: "local",
|
|
1140
1163
|
DROP_AREA: "drop-area",
|
|
1141
1164
|
CAMERA: "camera",
|
|
1142
|
-
VIDEO_CAMERA: "video-camera",
|
|
1143
1165
|
EXTERNAL: "external",
|
|
1144
1166
|
API: "js-api",
|
|
1145
1167
|
URL: "url",
|
|
1146
1168
|
DRAW: "draw",
|
|
1169
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
1170
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
1147
1171
|
FACEBOOK: "facebook",
|
|
1148
1172
|
DROPBOX: "dropbox",
|
|
1149
1173
|
GDRIVE: "gdrive",
|
|
@@ -1214,11 +1238,12 @@ export const SourceBtn = class {
|
|
|
1214
1238
|
LOCAL: "local",
|
|
1215
1239
|
DROP_AREA: "drop-area",
|
|
1216
1240
|
CAMERA: "camera",
|
|
1217
|
-
VIDEO_CAMERA: "video-camera",
|
|
1218
1241
|
EXTERNAL: "external",
|
|
1219
1242
|
API: "js-api",
|
|
1220
1243
|
URL: "url",
|
|
1221
1244
|
DRAW: "draw",
|
|
1245
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
1246
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
1222
1247
|
FACEBOOK: "facebook",
|
|
1223
1248
|
DROPBOX: "dropbox",
|
|
1224
1249
|
GDRIVE: "gdrive",
|
|
@@ -1272,6 +1297,62 @@ export const StartFrom = class {
|
|
|
1272
1297
|
static is = `sym-1`;
|
|
1273
1298
|
static bindAttributes = () => {};
|
|
1274
1299
|
};
|
|
1300
|
+
export const Thumb = class {
|
|
1301
|
+
static template = `
|
|
1302
|
+
<div class="uc-thumb" set="style.backgroundImage: thumbUrl">
|
|
1303
|
+
<div class="uc-badge">
|
|
1304
|
+
<uc-icon set="@name: badgeIcon"></uc-icon>
|
|
1305
|
+
</div>
|
|
1306
|
+
</div>
|
|
1307
|
+
`;
|
|
1308
|
+
static observedAttributes = ["badgeIcon", "uid"];
|
|
1309
|
+
static extSrcList = {
|
|
1310
|
+
FACEBOOK: "facebook",
|
|
1311
|
+
DROPBOX: "dropbox",
|
|
1312
|
+
GDRIVE: "gdrive",
|
|
1313
|
+
GPHOTOS: "gphotos",
|
|
1314
|
+
FLICKR: "flickr",
|
|
1315
|
+
VK: "vk",
|
|
1316
|
+
EVERNOTE: "evernote",
|
|
1317
|
+
BOX: "box",
|
|
1318
|
+
ONEDRIVE: "onedrive",
|
|
1319
|
+
HUDDLE: "huddle",
|
|
1320
|
+
};
|
|
1321
|
+
static sourceTypes = {
|
|
1322
|
+
LOCAL: "local",
|
|
1323
|
+
DROP_AREA: "drop-area",
|
|
1324
|
+
CAMERA: "camera",
|
|
1325
|
+
EXTERNAL: "external",
|
|
1326
|
+
API: "js-api",
|
|
1327
|
+
URL: "url",
|
|
1328
|
+
DRAW: "draw",
|
|
1329
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
1330
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
1331
|
+
FACEBOOK: "facebook",
|
|
1332
|
+
DROPBOX: "dropbox",
|
|
1333
|
+
GDRIVE: "gdrive",
|
|
1334
|
+
GPHOTOS: "gphotos",
|
|
1335
|
+
FLICKR: "flickr",
|
|
1336
|
+
VK: "vk",
|
|
1337
|
+
EVERNOTE: "evernote",
|
|
1338
|
+
BOX: "box",
|
|
1339
|
+
ONEDRIVE: "onedrive",
|
|
1340
|
+
HUDDLE: "huddle",
|
|
1341
|
+
};
|
|
1342
|
+
static activities = {
|
|
1343
|
+
START_FROM: "start-from",
|
|
1344
|
+
CAMERA: "camera",
|
|
1345
|
+
DRAW: "draw",
|
|
1346
|
+
UPLOAD_LIST: "upload-list",
|
|
1347
|
+
URL: "url",
|
|
1348
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1349
|
+
EXTERNAL: "external",
|
|
1350
|
+
};
|
|
1351
|
+
static reg = () => {};
|
|
1352
|
+
static styleAttrs = [];
|
|
1353
|
+
static is = `sym-1`;
|
|
1354
|
+
static bindAttributes = () => {};
|
|
1355
|
+
};
|
|
1275
1356
|
export const UID = class {
|
|
1276
1357
|
static generate = () => {};
|
|
1277
1358
|
static apply = () => {};
|
|
@@ -1321,11 +1402,12 @@ export const UploadCtxProvider = class {
|
|
|
1321
1402
|
LOCAL: "local",
|
|
1322
1403
|
DROP_AREA: "drop-area",
|
|
1323
1404
|
CAMERA: "camera",
|
|
1324
|
-
VIDEO_CAMERA: "video-camera",
|
|
1325
1405
|
EXTERNAL: "external",
|
|
1326
1406
|
API: "js-api",
|
|
1327
1407
|
URL: "url",
|
|
1328
1408
|
DRAW: "draw",
|
|
1409
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
1410
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
1329
1411
|
FACEBOOK: "facebook",
|
|
1330
1412
|
DROPBOX: "dropbox",
|
|
1331
1413
|
GDRIVE: "gdrive",
|
|
@@ -1369,7 +1451,16 @@ export const UploadList = class {
|
|
|
1369
1451
|
<slot name="empty"><span l10n="no-files"></span></slot>
|
|
1370
1452
|
</div>
|
|
1371
1453
|
|
|
1372
|
-
<div class="uc-files"
|
|
1454
|
+
<div class="uc-files">
|
|
1455
|
+
<div class="uc-files-wrapper" repeat="*uploadList" repeat-item-tag="uc-file-item"></div>
|
|
1456
|
+
<button
|
|
1457
|
+
type="button"
|
|
1458
|
+
class="uc-add-more-btn uc-secondary-btn"
|
|
1459
|
+
set="onclick: onAdd; @disabled: !addMoreBtnEnabled; @hidden: !addMoreBtnVisible"
|
|
1460
|
+
>
|
|
1461
|
+
<uc-icon name="add"></uc-icon><span l10n="add-more"></span>
|
|
1462
|
+
</button>
|
|
1463
|
+
</div>
|
|
1373
1464
|
|
|
1374
1465
|
<div class="uc-common-error" set="@hidden: !commonErrorMessage; textContent: commonErrorMessage;"></div>
|
|
1375
1466
|
|
|
@@ -1415,11 +1506,12 @@ export const UploadList = class {
|
|
|
1415
1506
|
LOCAL: "local",
|
|
1416
1507
|
DROP_AREA: "drop-area",
|
|
1417
1508
|
CAMERA: "camera",
|
|
1418
|
-
VIDEO_CAMERA: "video-camera",
|
|
1419
1509
|
EXTERNAL: "external",
|
|
1420
1510
|
API: "js-api",
|
|
1421
1511
|
URL: "url",
|
|
1422
1512
|
DRAW: "draw",
|
|
1513
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
1514
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
1423
1515
|
FACEBOOK: "facebook",
|
|
1424
1516
|
DROPBOX: "dropbox",
|
|
1425
1517
|
GDRIVE: "gdrive",
|
|
@@ -1449,11 +1541,12 @@ export const UploadSource = {
|
|
|
1449
1541
|
LOCAL: "local",
|
|
1450
1542
|
DROP_AREA: "drop-area",
|
|
1451
1543
|
CAMERA: "camera",
|
|
1452
|
-
VIDEO_CAMERA: "video-camera",
|
|
1453
1544
|
EXTERNAL: "external",
|
|
1454
1545
|
API: "js-api",
|
|
1455
1546
|
URL: "url",
|
|
1456
1547
|
DRAW: "draw",
|
|
1548
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
1549
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
1457
1550
|
FACEBOOK: "facebook",
|
|
1458
1551
|
DROPBOX: "dropbox",
|
|
1459
1552
|
GDRIVE: "gdrive",
|
|
@@ -1482,11 +1575,12 @@ export const UploaderBlock = class {
|
|
|
1482
1575
|
LOCAL: "local",
|
|
1483
1576
|
DROP_AREA: "drop-area",
|
|
1484
1577
|
CAMERA: "camera",
|
|
1485
|
-
VIDEO_CAMERA: "video-camera",
|
|
1486
1578
|
EXTERNAL: "external",
|
|
1487
1579
|
API: "js-api",
|
|
1488
1580
|
URL: "url",
|
|
1489
1581
|
DRAW: "draw",
|
|
1582
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
1583
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
1490
1584
|
FACEBOOK: "facebook",
|
|
1491
1585
|
DROPBOX: "dropbox",
|
|
1492
1586
|
GDRIVE: "gdrive",
|
|
@@ -1557,11 +1651,12 @@ export const UrlSource = class {
|
|
|
1557
1651
|
LOCAL: "local",
|
|
1558
1652
|
DROP_AREA: "drop-area",
|
|
1559
1653
|
CAMERA: "camera",
|
|
1560
|
-
VIDEO_CAMERA: "video-camera",
|
|
1561
1654
|
EXTERNAL: "external",
|
|
1562
1655
|
API: "js-api",
|
|
1563
1656
|
URL: "url",
|
|
1564
1657
|
DRAW: "draw",
|
|
1658
|
+
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
1659
|
+
MOBILE_PHOTO_CAMERA: "mobile-photo-camera",
|
|
1565
1660
|
FACEBOOK: "facebook",
|
|
1566
1661
|
DROPBOX: "dropbox",
|
|
1567
1662
|
GDRIVE: "gdrive",
|
|
@@ -65,6 +65,8 @@ declare const _default: {
|
|
|
65
65
|
'src-type-onedrive': string;
|
|
66
66
|
'src-type-huddle': string;
|
|
67
67
|
'src-type-other': string;
|
|
68
|
+
'src-type-mobile-video-camera': string;
|
|
69
|
+
'src-type-mobile-photo-camera': string;
|
|
68
70
|
'caption-from-url': string;
|
|
69
71
|
'caption-camera': string;
|
|
70
72
|
'caption-draw': string;
|
|
@@ -65,6 +65,8 @@ export default {
|
|
|
65
65
|
'src-type-onedrive': 'Onedrive',
|
|
66
66
|
'src-type-huddle': 'Huddle',
|
|
67
67
|
'src-type-other': 'أخرى',
|
|
68
|
+
'src-type-mobile-video-camera': 'فيديو',
|
|
69
|
+
'src-type-mobile-photo-camera': 'صورة',
|
|
68
70
|
'caption-from-url': 'استيراد من رابط',
|
|
69
71
|
'caption-camera': 'كاميرا',
|
|
70
72
|
'caption-draw': 'رسم',
|
|
@@ -57,6 +57,8 @@ declare const _default: {
|
|
|
57
57
|
'src-type-onedrive': string;
|
|
58
58
|
'src-type-huddle': string;
|
|
59
59
|
'src-type-other': string;
|
|
60
|
+
'src-type-mobile-video-camera': string;
|
|
61
|
+
'src-type-mobile-photo-camera': string;
|
|
60
62
|
'caption-from-url': string;
|
|
61
63
|
'caption-camera': string;
|
|
62
64
|
'caption-draw': string;
|
|
@@ -57,6 +57,8 @@ export default {
|
|
|
57
57
|
'src-type-onedrive': 'Onedrive',
|
|
58
58
|
'src-type-huddle': 'Huddle',
|
|
59
59
|
'src-type-other': 'Digər',
|
|
60
|
+
'src-type-mobile-video-camera': 'Video',
|
|
61
|
+
'src-type-mobile-photo-camera': 'Foto',
|
|
60
62
|
'caption-from-url': 'Linkdən import et',
|
|
61
63
|
'caption-camera': 'Kamera',
|
|
62
64
|
'caption-draw': 'Çək',
|
|
@@ -59,6 +59,8 @@ declare const _default: {
|
|
|
59
59
|
'src-type-onedrive': string;
|
|
60
60
|
'src-type-huddle': string;
|
|
61
61
|
'src-type-other': string;
|
|
62
|
+
'src-type-mobile-video-camera': string;
|
|
63
|
+
'src-type-mobile-photo-camera': string;
|
|
62
64
|
'caption-from-url': string;
|
|
63
65
|
'caption-camera': string;
|
|
64
66
|
'caption-draw': string;
|
|
@@ -59,6 +59,8 @@ export default {
|
|
|
59
59
|
'src-type-onedrive': 'Onedrive',
|
|
60
60
|
'src-type-huddle': 'Huddle',
|
|
61
61
|
'src-type-other': 'Altres',
|
|
62
|
+
'src-type-mobile-video-camera': 'Vídeo',
|
|
63
|
+
'src-type-mobile-photo-camera': 'Foto',
|
|
62
64
|
'caption-from-url': "Importar des d'enllaç",
|
|
63
65
|
'caption-camera': 'Càmera',
|
|
64
66
|
'caption-draw': 'Dibuix',
|
|
@@ -61,6 +61,8 @@ declare const _default: {
|
|
|
61
61
|
'src-type-onedrive': string;
|
|
62
62
|
'src-type-huddle': string;
|
|
63
63
|
'src-type-other': string;
|
|
64
|
+
'src-type-mobile-video-camera': string;
|
|
65
|
+
'src-type-mobile-photo-camera': string;
|
|
64
66
|
'caption-from-url': string;
|
|
65
67
|
'caption-camera': string;
|
|
66
68
|
'caption-draw': string;
|