@uploadcare/file-uploader 1.15.0-alpha.2 → 1.15.0-alpha.20
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/Block.d.ts +3 -9
- package/abstract/Block.d.ts.map +1 -1
- package/abstract/Block.js +1 -1
- package/abstract/CTX.d.ts +6 -6
- package/abstract/CTX.d.ts.map +1 -1
- package/abstract/LocaleManager.d.ts +3 -3
- package/abstract/LocaleManager.d.ts.map +1 -1
- package/abstract/ModalManager.d.ts +26 -17
- package/abstract/ModalManager.d.ts.map +1 -1
- package/abstract/ModalManager.js +32 -18
- 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 +44 -44
- package/abstract/TypedCollection.d.ts.map +1 -1
- package/abstract/TypedCollection.js +53 -33
- package/abstract/TypedData.d.ts +71 -25
- package/abstract/TypedData.d.ts.map +1 -1
- package/abstract/TypedData.js +74 -17
- package/abstract/UploaderBlock.d.ts +10 -10
- package/abstract/UploaderBlock.d.ts.map +1 -1
- package/abstract/UploaderBlock.js +23 -11
- package/abstract/UploaderPublicApi.d.ts +24 -23
- package/abstract/UploaderPublicApi.d.ts.map +1 -1
- package/abstract/UploaderPublicApi.js +21 -10
- package/abstract/ValidationManager.d.ts +125 -6
- package/abstract/ValidationManager.d.ts.map +1 -1
- package/abstract/ValidationManager.js +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 +123 -63
- package/abstract/uploadEntrySchema.d.ts.map +1 -1
- package/abstract/uploadEntrySchema.js +66 -81
- package/blocks/CameraSource/CameraSource.d.ts +9 -9
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
- 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/EditorFilterControl.js +1 -1
- package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +3 -3
- package/blocks/CloudImageEditor/src/EditorImageCropper.js +1 -1
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorImageFader.js +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/EditorToolbar.js +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 +5 -2
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.js +7 -3
- 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 -4
- package/blocks/Config/normalizeConfigValue.d.ts +2 -1
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
- package/blocks/Config/normalizeConfigValue.js +18 -109
- 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 +20 -2
- package/blocks/DropArea/addDropzone.d.ts.map +1 -1
- package/blocks/DropArea/drop-area.css +4 -2
- 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 +0 -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 +13 -40
- package/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.js +126 -179
- package/blocks/FileItem/FileItemConfig.d.ts +28 -0
- package/blocks/FileItem/FileItemConfig.d.ts.map +1 -0
- package/blocks/FileItem/FileItemConfig.js +74 -0
- package/blocks/FileItem/file-item.css +39 -0
- package/blocks/Img/ImgBase.d.ts +3 -3
- package/blocks/Img/ImgBase.d.ts.map +1 -1
- package/blocks/Img/ImgBase.js +9 -9
- 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 +37 -18
- package/blocks/ProgressBar/ProgressBar.d.ts +6 -1
- package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/blocks/ProgressBar/ProgressBar.js +41 -44
- package/blocks/ProgressBar/progress-bar.css +9 -6
- 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 +2 -5
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
- package/blocks/SourceBtn/SourceBtn.js +5 -5
- package/blocks/SourceList/SourceList.js +2 -2
- package/blocks/Spinner/Spinner.d.ts.map +1 -1
- package/blocks/Thumb/Thumb.d.ts +51 -0
- package/blocks/Thumb/Thumb.d.ts.map +1 -0
- package/blocks/Thumb/Thumb.js +220 -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 +3 -1
- 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.map +1 -1
- package/blocks/utils/UploadSource.d.ts.map +1 -1
- package/blocks/utils/debounce.d.ts +3 -1
- package/blocks/utils/debounce.d.ts.map +1 -1
- package/blocks/{CloudImageEditor/src/lib → utils}/preloadImage.js +1 -1
- package/blocks/utils/resizeImage.d.ts +1 -1
- package/blocks/utils/resizeImage.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/env.d.ts.map +1 -1
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/index.ssr.d.ts +59 -0
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +79 -13
- package/locales/file-uploader/ar.d.ts +1 -0
- package/locales/file-uploader/ar.js +1 -0
- package/locales/file-uploader/az.d.ts +1 -0
- package/locales/file-uploader/az.js +1 -0
- package/locales/file-uploader/ca.d.ts +1 -0
- package/locales/file-uploader/ca.js +1 -0
- package/locales/file-uploader/cs.d.ts +1 -0
- package/locales/file-uploader/cs.js +1 -0
- package/locales/file-uploader/da.d.ts +1 -0
- package/locales/file-uploader/da.js +1 -0
- package/locales/file-uploader/de.d.ts +1 -0
- package/locales/file-uploader/de.js +1 -0
- package/locales/file-uploader/el.d.ts +1 -0
- package/locales/file-uploader/el.js +1 -0
- package/locales/file-uploader/en.d.ts +1 -0
- package/locales/file-uploader/en.js +1 -0
- package/locales/file-uploader/es.d.ts +1 -0
- package/locales/file-uploader/es.js +1 -0
- package/locales/file-uploader/et.d.ts +1 -0
- package/locales/file-uploader/et.js +1 -0
- package/locales/file-uploader/fi.d.ts +1 -0
- package/locales/file-uploader/fi.js +1 -0
- package/locales/file-uploader/fr.d.ts +1 -0
- package/locales/file-uploader/fr.js +1 -0
- package/locales/file-uploader/he.d.ts +1 -0
- package/locales/file-uploader/he.js +1 -0
- package/locales/file-uploader/hy.d.ts +1 -0
- package/locales/file-uploader/hy.js +1 -0
- package/locales/file-uploader/is.d.ts +1 -0
- package/locales/file-uploader/is.js +1 -0
- package/locales/file-uploader/it.d.ts +1 -0
- package/locales/file-uploader/it.js +1 -0
- package/locales/file-uploader/ja.d.ts +1 -0
- package/locales/file-uploader/ja.js +1 -0
- package/locales/file-uploader/ka.d.ts +1 -0
- package/locales/file-uploader/ka.js +1 -0
- package/locales/file-uploader/kk.d.ts +1 -0
- package/locales/file-uploader/kk.js +1 -0
- package/locales/file-uploader/ko.d.ts +1 -0
- package/locales/file-uploader/ko.js +1 -0
- package/locales/file-uploader/lv.d.ts +1 -0
- package/locales/file-uploader/lv.js +1 -0
- package/locales/file-uploader/nb.d.ts +1 -0
- package/locales/file-uploader/nb.js +1 -0
- package/locales/file-uploader/nl.d.ts +1 -0
- package/locales/file-uploader/nl.js +1 -0
- package/locales/file-uploader/pl.d.ts +1 -0
- package/locales/file-uploader/pl.js +1 -0
- package/locales/file-uploader/pt.d.ts +1 -0
- package/locales/file-uploader/pt.js +1 -0
- package/locales/file-uploader/ro.d.ts +1 -0
- package/locales/file-uploader/ro.js +1 -0
- package/locales/file-uploader/ru.d.ts +1 -0
- package/locales/file-uploader/ru.js +1 -0
- package/locales/file-uploader/sk.d.ts +1 -0
- package/locales/file-uploader/sk.js +1 -0
- package/locales/file-uploader/sr.d.ts +1 -0
- package/locales/file-uploader/sr.js +1 -0
- package/locales/file-uploader/sv.d.ts +1 -0
- package/locales/file-uploader/sv.js +1 -0
- package/locales/file-uploader/tr.d.ts +1 -0
- package/locales/file-uploader/tr.js +1 -0
- package/locales/file-uploader/uk.d.ts +1 -0
- package/locales/file-uploader/uk.js +1 -0
- package/locales/file-uploader/vi.d.ts +1 -0
- package/locales/file-uploader/vi.js +1 -0
- package/locales/file-uploader/zh-TW.d.ts +1 -0
- package/locales/file-uploader/zh-TW.js +1 -0
- package/locales/file-uploader/zh.d.ts +1 -0
- package/locales/file-uploader/zh.js +1 -0
- package/package.json +6 -5
- 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 +21 -2
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -1
- package/solutions/file-uploader/minimal/FileUploaderMinimal.js +102 -23
- package/solutions/file-uploader/minimal/index.css +11 -28
- package/solutions/file-uploader/minimal/index.d.ts +1 -16
- package/solutions/file-uploader/minimal/index.js +1 -18
- 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 +1 -15
- package/types/exported.d.ts +4 -3
- package/types/jsx.d.ts +1 -1
- package/utils/browser-info.d.ts +13 -0
- package/utils/browser-info.d.ts.map +1 -0
- package/utils/browser-info.js +22 -0
- package/utils/browser-info.test.d.ts +2 -0
- package/utils/browser-info.test.d.ts.map +1 -0
- package/utils/browser-info.test.js +109 -0
- package/utils/cdn-utils.d.ts +3 -3
- package/utils/cdn-utils.d.ts.map +1 -1
- package/utils/fileTypes.d.ts +5 -1
- package/utils/fileTypes.d.ts.map +1 -1
- package/utils/fileTypes.js +18 -2
- 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.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 -4
- 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 +1 -1
- package/blocks/utils/supportCapture.d.ts +0 -2
- package/blocks/utils/supportCapture.d.ts.map +0 -1
- package/blocks/utils/supportCapture.js +0 -3
- /package/blocks/{CloudImageEditor/src/lib → utils}/preloadImage.d.ts +0 -0
- /package/blocks/{CloudImageEditor/src/lib → utils}/preloadImage.d.ts.map +0 -0
package/blocks/Img/ImgBase.d.ts
CHANGED
|
@@ -12,14 +12,14 @@ export class ImgBase extends ImgConfig {
|
|
|
12
12
|
* @param {String} [size]
|
|
13
13
|
* @returns {String | Number}
|
|
14
14
|
*/
|
|
15
|
-
_validateSize(size?: string
|
|
15
|
+
_validateSize(size?: string): string | number;
|
|
16
16
|
/**
|
|
17
17
|
* Image operations
|
|
18
18
|
*
|
|
19
19
|
* @param {String} [size]
|
|
20
20
|
* @param {String} [blur]
|
|
21
21
|
*/
|
|
22
|
-
_getCdnModifiers(size?: string
|
|
22
|
+
_getCdnModifiers(size?: string, blur?: string): string;
|
|
23
23
|
/**
|
|
24
24
|
* @private
|
|
25
25
|
* @param {String} [size]
|
|
@@ -38,7 +38,7 @@ export class ImgBase extends ImgConfig {
|
|
|
38
38
|
* @param {Number} [k]
|
|
39
39
|
* @param {Boolean} [wOnly]
|
|
40
40
|
*/
|
|
41
|
-
_getElSize(el: HTMLElement, k?: number
|
|
41
|
+
_getElSize(el: HTMLElement, k?: number, wOnly?: boolean): string | null;
|
|
42
42
|
/** @param {HTMLImageElement} img */
|
|
43
43
|
_setupEventProxy(img: HTMLImageElement): void;
|
|
44
44
|
/** @type {HTMLImageElement} */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImgBase.d.ts","sourceRoot":"","sources":["ImgBase.js"],"names":[],"mappings":"AAgBA;IACE,uBAAmB;IACnB,8BAA0B;IAE1B;;;OAGG;IACH,gBAMC;IAED;;;;;OAKG;IACH,
|
|
1
|
+
{"version":3,"file":"ImgBase.d.ts","sourceRoot":"","sources":["ImgBase.js"],"names":[],"mappings":"AAgBA;IACE,uBAAmB;IACnB,8BAA0B;IAE1B;;;OAGG;IACH,gBAMC;IAED;;;;;OAKG;IACH,8BAFa,eAAe,CAoB3B;IAED;;;;;OAKG;IACH,uDAWC;IAED;;;;;OAKG;IACH,oBA6DC;IAED;;;;OAIG;IACH,kBAUC;IAED;;;;OAIG;IACH,eAJW,WAAW,8CAcrB;IAED,oCAAoC;IACpC,sBADY,gBAAgB,QAY3B;IAED,+BAA+B;IAC/B,WADW,gBAAgB,CAO1B;IAED;;;;;;MAUC;IAED,2BAEC;IAED,sBAEC;IAED,mCAOC;IAED,4BAEC;IAED,8BAA8B;IAC9B,aADY,WAAW,QAgBtB;IAED,oBAsBC;IAED,cAEC;IAED,yBAEC;IAED,yBAUC;IAED;;;;aAQC;IAED;;aAGC;IAED;;;;qBAqBC;IAED,6BA8DC;IAED,aAMC;CACF;0BAlZyB,gBAAgB"}
|
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 +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;8BArGmC,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurations.d.ts","sourceRoot":"","sources":["configurations.js"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"configurations.d.ts","sourceRoot":"","sources":["configurations.js"],"names":[],"mappings":"AAAA,uBAAwB,WAAW,CAAC;AACpC,8BAA+B,YAAY,CAAC;AAC5C,uBAAwB,CAAC,CAAC;AAC1B,0BAA2B,CAAC,CAAC;AAC7B,+BACuH;AAEvH,wBAAyB,IAAI,CAAC;AAC9B,4BAA6B,IAAI,CAAC;AAElC;;;GAGG"}
|
package/blocks/Modal/Modal.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export class Modal extends Block {
|
|
2
2
|
static StateConsumerScope: string;
|
|
3
3
|
init$: {
|
|
4
|
-
'*modalActive': boolean;
|
|
5
|
-
isOpen: boolean;
|
|
6
4
|
closeClicked: () => void;
|
|
7
5
|
};
|
|
8
6
|
_handleBackdropClick: () => void;
|
|
@@ -16,6 +14,27 @@ export class Modal extends Block {
|
|
|
16
14
|
_handleDialogMouseUp: (e: Event) => void;
|
|
17
15
|
show(): void;
|
|
18
16
|
hide(): void;
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* @type {import('../../abstract/ModalManager.js').ModalCb}
|
|
20
|
+
*/
|
|
21
|
+
private _handleModalOpen;
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
* @type {import('../../abstract/ModalManager.js').ModalCb}
|
|
25
|
+
*/
|
|
26
|
+
private _handleModalClose;
|
|
27
|
+
/** @private */
|
|
28
|
+
private _handleModalCloseAll;
|
|
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;
|
|
37
|
+
handleModalCloseAll: (() => void) | undefined;
|
|
19
38
|
}
|
|
20
39
|
export namespace Modal {
|
|
21
40
|
let template: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["Modal.js"],"names":[],"mappings":"AAIA;IAEE,kCAAoC;IAIlC
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["Modal.js"],"names":[],"mappings":"AAIA;IAEE,kCAAoC;IAIlC;;MAGC;IAGH,iCAEE;IAEF,yBAME;IAEF,+BAEE;IAEF,uBAAuB;IACvB,yBAA0B,GADd,KACe,UAGzB;IAFA,eAAe;IACf,yBAAgC;IAGlC,uBAAuB;IACvB,uBAAwB,GADZ,KACa,UAIvB;IAEF,aAWC;IAED,aAOC;IAED;;;OAGG;IACH,yBAMC;IAED;;;OAGG;IACH,0BAIC;IAED,eAAe;IACf,6BAEC;IAmBC;;;4BAAuD;IACvD;;;4BAAyD;IACzD,8CAA+D;CAmBlE;;;;sBAnIqB,yBAAyB"}
|
package/blocks/Modal/Modal.js
CHANGED
|
@@ -10,8 +10,6 @@ export class Modal extends Block {
|
|
|
10
10
|
super();
|
|
11
11
|
this.init$ = {
|
|
12
12
|
...this.init$,
|
|
13
|
-
'*modalActive': false,
|
|
14
|
-
isOpen: false,
|
|
15
13
|
closeClicked: this._handleDialogClose,
|
|
16
14
|
};
|
|
17
15
|
}
|
|
@@ -67,6 +65,33 @@ export class Modal extends Block {
|
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
|
|
68
|
+
/**
|
|
69
|
+
* @private
|
|
70
|
+
* @type {import('../../abstract/ModalManager.js').ModalCb}
|
|
71
|
+
*/
|
|
72
|
+
_handleModalOpen({ id }) {
|
|
73
|
+
if (id === this.id) {
|
|
74
|
+
this.show();
|
|
75
|
+
} else {
|
|
76
|
+
this.hide();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @private
|
|
82
|
+
* @type {import('../../abstract/ModalManager.js').ModalCb}
|
|
83
|
+
*/
|
|
84
|
+
_handleModalClose({ id }) {
|
|
85
|
+
if (id === this.id) {
|
|
86
|
+
this.hide();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** @private */
|
|
91
|
+
_handleModalCloseAll() {
|
|
92
|
+
this.hide();
|
|
93
|
+
}
|
|
94
|
+
|
|
70
95
|
initCallback() {
|
|
71
96
|
super.initCallback();
|
|
72
97
|
|
|
@@ -84,23 +109,13 @@ export class Modal extends Block {
|
|
|
84
109
|
}
|
|
85
110
|
});
|
|
86
111
|
|
|
87
|
-
this.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
} else {
|
|
91
|
-
this.hide();
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
this.modalManager.subscribe(ModalEvents.CLOSE, (/** @type {{ id: string }} */ { id }) => {
|
|
96
|
-
if (id === this.id) {
|
|
97
|
-
this.hide();
|
|
98
|
-
}
|
|
99
|
-
});
|
|
112
|
+
this.handleModalOpen = this._handleModalOpen.bind(this);
|
|
113
|
+
this.handleModalClose = this._handleModalClose.bind(this);
|
|
114
|
+
this.handleModalCloseAll = this._handleModalCloseAll.bind(this);
|
|
100
115
|
|
|
101
|
-
this.modalManager.subscribe(ModalEvents.
|
|
102
|
-
|
|
103
|
-
|
|
116
|
+
this.modalManager.subscribe(ModalEvents.OPEN, this.handleModalOpen);
|
|
117
|
+
this.modalManager.subscribe(ModalEvents.CLOSE, this.handleModalClose);
|
|
118
|
+
this.modalManager.subscribe(ModalEvents.CLOSE_ALL, this.handleModalCloseAll);
|
|
104
119
|
}
|
|
105
120
|
|
|
106
121
|
destroyCallback() {
|
|
@@ -110,6 +125,10 @@ export class Modal extends Block {
|
|
|
110
125
|
this.ref.dialog.removeEventListener('close', this._handleDialogClose);
|
|
111
126
|
this.ref.dialog.removeEventListener('mousedown', this._handleDialogMouseDown);
|
|
112
127
|
this.ref.dialog.removeEventListener('mouseup', this._handleDialogMouseUp);
|
|
128
|
+
|
|
129
|
+
this.modalManager.unsubscribe(ModalEvents.OPEN, this.handleModalOpen);
|
|
130
|
+
this.modalManager.unsubscribe(ModalEvents.CLOSE, this.handleModalClose);
|
|
131
|
+
this.modalManager.unsubscribe(ModalEvents.CLOSE_ALL, this.handleModalCloseAll);
|
|
113
132
|
}
|
|
114
133
|
}
|
|
115
134
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
export class ProgressBar extends Block {
|
|
2
2
|
/** @type {Number} */
|
|
3
3
|
_value: number;
|
|
4
|
+
/** @type {Number} */
|
|
5
|
+
_prevValue: number;
|
|
4
6
|
/** @type {Boolean} */
|
|
5
7
|
_visible: boolean;
|
|
6
|
-
init$:
|
|
8
|
+
init$: {
|
|
9
|
+
width: number;
|
|
10
|
+
opacity: number;
|
|
11
|
+
};
|
|
7
12
|
}
|
|
8
13
|
export namespace ProgressBar {
|
|
9
14
|
let template: string;
|
|
@@ -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,qBAAqB;IACrB,mBAAe;IAEf,sBAAsB;IACtB,kBAAgB;IAId;;;MAIC;CAqCJ;;;;sBAvDqB,yBAAyB"}
|
|
@@ -1,61 +1,58 @@
|
|
|
1
|
+
// @ts-check
|
|
1
2
|
import { Block } from '../../abstract/Block.js';
|
|
2
3
|
|
|
3
4
|
export class ProgressBar extends Block {
|
|
4
5
|
/** @type {Number} */
|
|
5
6
|
_value = 0;
|
|
6
7
|
|
|
8
|
+
/** @type {Number} */
|
|
9
|
+
_prevValue = 0;
|
|
10
|
+
|
|
7
11
|
/** @type {Boolean} */
|
|
8
12
|
_visible = true;
|
|
9
13
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
this.init$ = {
|
|
17
|
+
...this.init$,
|
|
18
|
+
width: 0,
|
|
19
|
+
opacity: 0,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
15
22
|
|
|
16
23
|
initCallback() {
|
|
17
24
|
super.initCallback();
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if (!this._visible) return;
|
|
23
|
-
if (value === 100) {
|
|
24
|
-
this.ref.realProgressLine.addEventListener(
|
|
25
|
-
'transitionend',
|
|
26
|
-
() => {
|
|
27
|
-
this.ref.realProgressLine.classList.toggle('uc-progress--hidden', true);
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
once: true,
|
|
31
|
-
},
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
this.ref.fakeProgressLine.classList.toggle('uc-fake-progress--hidden', value !== 0);
|
|
36
|
-
|
|
37
|
-
if (value === 0 && prevValue > 0) {
|
|
38
|
-
this.ref.realProgressLine.addEventListener(
|
|
39
|
-
'transitionend',
|
|
40
|
-
() => {
|
|
41
|
-
this.style.setProperty('--l-progress-value', this._value.toString());
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
once: true,
|
|
45
|
-
},
|
|
46
|
-
);
|
|
25
|
+
const handleFakeProgressAnimation = () => {
|
|
26
|
+
const fakeProgressLine = this.ref.fakeProgressLine;
|
|
27
|
+
if (!this._visible) {
|
|
28
|
+
fakeProgressLine.classList.add('uc-fake-progress--hidden');
|
|
47
29
|
return;
|
|
48
30
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
31
|
+
if (this._value > 0) {
|
|
32
|
+
fakeProgressLine.classList.add('uc-fake-progress--hidden');
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
this.ref.fakeProgressLine.addEventListener('animationiteration', handleFakeProgressAnimation);
|
|
37
|
+
|
|
38
|
+
this.defineAccessor(
|
|
39
|
+
'value',
|
|
40
|
+
/** @param {number} value */ (value) => {
|
|
41
|
+
if (value === undefined || value === null) return;
|
|
42
|
+
this._prevValue = this._value;
|
|
43
|
+
this._value = value;
|
|
44
|
+
if (!this._visible) return;
|
|
45
|
+
this.style.setProperty('--l-progress-value', this._value.toString());
|
|
46
|
+
},
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
this.defineAccessor(
|
|
50
|
+
'visible',
|
|
51
|
+
/** @param {boolean} visible */ (visible) => {
|
|
52
|
+
this._visible = visible;
|
|
53
|
+
this.classList.toggle('uc-progress-bar--hidden', !visible);
|
|
54
|
+
},
|
|
55
|
+
);
|
|
59
56
|
}
|
|
60
57
|
}
|
|
61
58
|
|
|
@@ -9,6 +9,12 @@ uc-progress-bar {
|
|
|
9
9
|
height: 100%;
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
pointer-events: none;
|
|
12
|
+
transition: opacity 0.3s;
|
|
13
|
+
opacity: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
uc-progress-bar.uc-progress-bar--hidden {
|
|
17
|
+
opacity: 0;
|
|
12
18
|
}
|
|
13
19
|
|
|
14
20
|
uc-progress-bar .uc-progress {
|
|
@@ -36,16 +42,13 @@ uc-progress-bar .uc-fake-progress {
|
|
|
36
42
|
background-color: var(--uc-primary);
|
|
37
43
|
animation: fake-progress-animation 1s ease-in-out infinite;
|
|
38
44
|
opacity: 1;
|
|
39
|
-
transition:
|
|
40
|
-
|
|
41
|
-
display 1s;
|
|
42
|
-
/* stylelint-disable-next-line property-no-unknown */
|
|
43
|
-
transition-behavior: allow-discrete;
|
|
45
|
+
transition: opacity 0.3s;
|
|
46
|
+
z-index: 1;
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
uc-progress-bar .uc-fake-progress--hidden {
|
|
47
50
|
opacity: 0;
|
|
48
|
-
|
|
51
|
+
animation: none;
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
@keyframes fake-progress-animation {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["Range.js"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["Range.js"],"names":[],"mappings":"AAEA;;IACE;;;;;MAUE;IAIA,+BAA+B;IAC/B,qCAA4B;CAe/B;;;;8BAjC6B,sBAAsB"}
|
|
@@ -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': ReturnType<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":"AAIA;IAMI
|
|
1
|
+
{"version":3,"file":"SimpleBtn.d.ts","sourceRoot":"","sources":["SimpleBtn.js"],"names":[],"mappings":"AAIA;IAMI;;;;;;;+CAmBI,gBACH;mCAGgB,gBAAU;6BAE3B,2BAIO;;wCAGD,wCAA2B;;;;;;MAzBhC;CAoBJ;;;;8BApC6B,iCAAiC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
3
|
-
import { asBoolean } from '../Config/
|
|
3
|
+
import { asBoolean } from '../Config/validatorsType.js';
|
|
4
4
|
|
|
5
5
|
export class SimpleBtn extends UploaderBlock {
|
|
6
6
|
static styleAttrs = [...super.styleAttrs, 'uc-simple-btn'];
|
|
@@ -22,11 +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
|
-
|
|
27
|
-
* @type {Record<string, TConfig>}
|
|
28
|
-
*/
|
|
29
|
-
'*collectionState': import("../../index.js").OutputCollectionState<import("../../index.js").OutputCollectionStatus, "maybe-has-group"> | null;
|
|
25
|
+
'*collectionErrors': ReturnType<import("../../index.js" /** @type {string | undefined} */).OutputErrorCollection>[];
|
|
26
|
+
'*collectionState': import("../../index.js").OutputCollectionState | null;
|
|
30
27
|
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
31
28
|
'*uploadTrigger': Set<string>;
|
|
32
29
|
'*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceBtn.d.ts","sourceRoot":"","sources":["SourceBtn.js"],"names":[],"mappings":"AASA;;;;;;;;;GASG;AAEH;IAEE,iCAAiC;IACjC,MADW,MAAM,GAAG,SAAS,CACZ;IACjB;;;OAGG;IACH,yBAAsB;IAKpB;;;;;;
|
|
1
|
+
{"version":3,"file":"SourceBtn.d.ts","sourceRoot":"","sources":["SourceBtn.js"],"names":[],"mappings":"AASA;;;;;;;;;GASG;AAEH;IAEE,iCAAiC;IACjC,MADW,MAAM,GAAG,SAAS,CACZ;IACjB;;;OAGG;IACH,yBAAsB;IAKpB;;;;;;+CAZc,gBACjB,CAAC,iCAAiC;mCAIhC,gBAAU;6BAKJ,2BAGN;;wCAQS,wCACL;;;;;;MANF;IAGH,kBA2DC;IAkBD,kCAAkC;IAClC,yBADY,OAAO,QAGlB;IAED,2BAA2B;IAC3B,cADY,MAAM,WAGjB;IAED,iBAgBC;IAED,2BAA2B;IAC3B,gBADY,MAAM,QAcjB;CACF;;;;sBAtJY;IACR,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C;8BAf0B,iCAAiC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
3
2
|
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
4
|
-
import {
|
|
3
|
+
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
4
|
+
import { browserFeatures } from '../../utils/browser-info.js';
|
|
5
5
|
import { CameraSourceTypes } from '../CameraSource/constants.js';
|
|
6
|
-
import {
|
|
6
|
+
import { ExternalUploadSource, UploadSource, UploadSourceMobile } from '../utils/UploadSource.js';
|
|
7
7
|
|
|
8
8
|
const L10N_PREFIX = 'src-type-';
|
|
9
9
|
|
|
@@ -55,7 +55,7 @@ export class SourceBtn extends UploaderBlock {
|
|
|
55
55
|
type: UploadSource.CAMERA,
|
|
56
56
|
activity: ActivityBlock.activities.CAMERA,
|
|
57
57
|
activate: () => {
|
|
58
|
-
const supportsCapture =
|
|
58
|
+
const supportsCapture = browserFeatures.htmlMediaCapture;
|
|
59
59
|
|
|
60
60
|
if (supportsCapture) {
|
|
61
61
|
this.api.openSystemDialog({ captureCamera: true });
|
|
@@ -75,7 +75,7 @@ export class SourceBtn extends UploaderBlock {
|
|
|
75
75
|
type: mobileSourceType,
|
|
76
76
|
activity: ActivityBlock.activities.CAMERA,
|
|
77
77
|
activate: () => {
|
|
78
|
-
const supportsCapture =
|
|
78
|
+
const supportsCapture = browserFeatures.htmlMediaCapture;
|
|
79
79
|
if (supportsCapture) {
|
|
80
80
|
this.api.openSystemDialog({
|
|
81
81
|
captureCamera: true,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
import { Block } from '../../abstract/Block.js';
|
|
3
|
+
import { browserFeatures } from '../../utils/browser-info.js';
|
|
3
4
|
import { stringToArray } from '../../utils/stringToArray.js';
|
|
4
5
|
import { deserializeCsv } from '../utils/comma-separated.js';
|
|
5
|
-
import { isSupportCapture } from '../utils/supportCapture.js';
|
|
6
6
|
|
|
7
7
|
export class SourceList extends Block {
|
|
8
8
|
initCallback() {
|
|
@@ -22,7 +22,7 @@ export class SourceList extends Block {
|
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
if (srcName === 'camera' &&
|
|
25
|
+
if (srcName === 'camera' && browserFeatures.htmlMediaCapture) {
|
|
26
26
|
this.subConfigValue('cameraModes', (/** @type {String} */ val) => {
|
|
27
27
|
const cameraModes = deserializeCsv(val);
|
|
28
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["Spinner.js"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["Spinner.js"],"names":[],"mappings":"AAEA;;CAA6C;;;;8BAFf,sBAAsB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export class Thumb extends FileItemConfig {
|
|
2
|
+
/** @private */
|
|
3
|
+
private _renderedGridOnce;
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* @type {IntersectionObserverEntry['boundingClientRect'] | null}
|
|
7
|
+
*/
|
|
8
|
+
private _thumbRect;
|
|
9
|
+
_isIntersecting: boolean;
|
|
10
|
+
_firstViewMode: import("../UploadList/UploadList.js").FilesViewMode;
|
|
11
|
+
init$: {
|
|
12
|
+
thumbUrl: string;
|
|
13
|
+
badgeIcon: string;
|
|
14
|
+
uid: string;
|
|
15
|
+
'*commonProgress': number;
|
|
16
|
+
'*uploadList': never[];
|
|
17
|
+
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
18
|
+
'*collectionErrors': ReturnType<import("../../index.js").OutputErrorCollection>[];
|
|
19
|
+
'*collectionState': import("../../index.js").OutputCollectionState | null;
|
|
20
|
+
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
21
|
+
'*uploadTrigger': Set<string>;
|
|
22
|
+
'*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
23
|
+
'*currentActivity': null;
|
|
24
|
+
'*currentActivityParams': {};
|
|
25
|
+
'*history': never[];
|
|
26
|
+
'*historyBack': null;
|
|
27
|
+
'*closeModal': () => void;
|
|
28
|
+
};
|
|
29
|
+
_calculateThumbSize(force?: boolean): number;
|
|
30
|
+
/** @private */
|
|
31
|
+
private _generateThumbnail;
|
|
32
|
+
_debouncedGenerateThumb: ((...args: any[]) => Promise<void>) & {
|
|
33
|
+
cancel: () => void;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @private
|
|
37
|
+
* @param {IntersectionObserverEntry[]} entries
|
|
38
|
+
*/
|
|
39
|
+
private _observerCallback;
|
|
40
|
+
/**
|
|
41
|
+
* @private
|
|
42
|
+
* @param {String} id
|
|
43
|
+
*/
|
|
44
|
+
private _handleEntryId;
|
|
45
|
+
_observer: IntersectionObserver | undefined;
|
|
46
|
+
}
|
|
47
|
+
export namespace Thumb {
|
|
48
|
+
let template: string;
|
|
49
|
+
}
|
|
50
|
+
import { FileItemConfig } from '../FileItem/FileItemConfig.js';
|
|
51
|
+
//# sourceMappingURL=Thumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Thumb.d.ts","sourceRoot":"","sources":["Thumb.js"],"names":[],"mappings":"AAUA;IACE,eAAe;IACf,0BAA0B;IAE1B;;;OAGG;IACH,mBAAkB;IAElB,yBAAwB;IAExB,oEAAwC;IAKtC;;;;;;;+CAPc,gBAElB;mCAKI,gBAAQ;6BAKR,2BAGU;;wCAMR,wCAAwB;;;;;;MATzB;IAGH,6CAgBC;IAED,eAAe;IACf,2BA+CG;IAEH;;MAA4E;IAE5E;;;OAGG;IACH,0BAaC;IAOD;;;OAGG;IACH,uBA6BC;IA8BC,4CAAuG;CAY1G;;;;+BAxM8B,+BAA+B"}
|