@uploadcare/file-uploader 1.2.0 → 1.3.0-alpha.1
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 +4 -4
- package/abstract/ActivityBlock.d.ts +1 -1
- package/abstract/ActivityBlock.d.ts.map +1 -1
- package/abstract/ActivityBlock.js +2 -0
- package/abstract/Block.d.ts +4 -11
- package/abstract/Block.d.ts.map +1 -1
- package/abstract/Block.js +37 -18
- 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/bindCompatibilityFallbackProcessor.d.ts +3 -0
- package/abstract/bindCompatibilityFallbackProcessor.d.ts.map +1 -0
- package/abstract/bindCompatibilityFallbackProcessor.js +16 -0
- 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 +12 -11
- 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 +3 -2
- package/blocks/CloudImageEditor/src/EditorCropButtonControl.js +1 -1
- package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorFilterControl.js +4 -8
- 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 +3 -2
- 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 +15 -14
- 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 +5 -5
- 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 +3 -2
- 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 +5 -4
- 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 +3 -3
- 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 +5 -5
- 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 +9 -9
- package/blocks/ExternalSource/buildStyles.js +2 -2
- package/blocks/ExternalSource/query-string.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.d.ts +3 -3
- package/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.js +12 -11
- package/blocks/Icon/Icon.d.ts +0 -1
- package/blocks/Icon/Icon.d.ts.map +1 -1
- package/blocks/Icon/Icon.js +3 -5
- 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 +4 -3
- package/blocks/SourceBtn/SourceBtn.d.ts +2 -2
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
- package/blocks/SourceBtn/SourceBtn.js +4 -4
- 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 +10 -11
- package/blocks/UrlSource/UrlSource.d.ts.map +1 -1
- package/blocks/UrlSource/UrlSource.js +7 -6
- 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 +189 -78
- package/package.json +9 -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 -2
- 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 +2 -2
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -1
- package/solutions/file-uploader/regular/FileUploaderRegular.js +4 -3
- 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 +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.js +3 -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 +3 -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/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
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export function getDropItems(dataTransfer: DataTransfer): Promise<DropItem[]>;
|
|
8
8
|
export type DropItem = {
|
|
9
|
-
type:
|
|
9
|
+
type: "file";
|
|
10
10
|
file: File;
|
|
11
11
|
fullPath?: string;
|
|
12
12
|
} | {
|
|
13
|
-
type:
|
|
13
|
+
type: "url";
|
|
14
14
|
url: string;
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=getDropItems.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDropItems.d.ts","sourceRoot":"","sources":["getDropItems.js"],"names":[],"mappings":"AAwGA;;;;;GAKG;AACH,2CAHW,YAAY,GACV,
|
|
1
|
+
{"version":3,"file":"getDropItems.d.ts","sourceRoot":"","sources":["getDropItems.js"],"names":[],"mappings":"AAwGA;;;;;GAKG;AACH,2CAHW,YAAY,GACV,OAAO,CAAC,QAAQ,EAAE,CAAC,CA0D/B;uBAnKY;IACZ,IAAY,EAAE,MAAM,CAAC;IACrB,IAAY,EAAE,IAAI,CAAC;IACnB,QAAgB,CAAC,EAAE,MAAM,CAAC;CACnB,GACD;IACN,IAAY,EAAE,KAAK,CAAC;IACpB,GAAW,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -29,8 +29,8 @@ export class ExternalSource extends UploaderBlock {
|
|
|
29
29
|
'*uploadList': never[];
|
|
30
30
|
'*focusedEntry': null;
|
|
31
31
|
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
32
|
-
'*collectionErrors':
|
|
33
|
-
'*collectionState': import("../../index.js").OutputCollectionState
|
|
32
|
+
'*collectionErrors': import("../../index.js").OutputErrorCollection[];
|
|
33
|
+
'*collectionState': import("../../index.js").OutputCollectionState | null;
|
|
34
34
|
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
35
35
|
'*uploadTrigger': Set<string>;
|
|
36
36
|
'*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
@@ -83,14 +83,14 @@ export type ActivityParams = {
|
|
|
83
83
|
externalSourceType: string;
|
|
84
84
|
};
|
|
85
85
|
export type SelectedFileMessage = {
|
|
86
|
-
type:
|
|
87
|
-
obj_type:
|
|
86
|
+
type: "file-selected";
|
|
87
|
+
obj_type: "selected_file";
|
|
88
88
|
filename: string;
|
|
89
89
|
url: string;
|
|
90
90
|
alternatives?: Record<string, string>;
|
|
91
91
|
};
|
|
92
92
|
export type EmbedCssMessage = {
|
|
93
|
-
type:
|
|
93
|
+
type: "embed-css";
|
|
94
94
|
style: string;
|
|
95
95
|
};
|
|
96
96
|
export type Message = SelectedFileMessage | EmbedCssMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalSource.d.ts","sourceRoot":"","sources":["ExternalSource.js"],"names":[],"mappings":"AAWA,+DAA+D;AAE/D;;;;;;;;GAQG;AAEH;;;;;GAKG;AAEH,+DAA+D;AAE/D;IAEE,yBAAiD;IAK/C
|
|
1
|
+
{"version":3,"file":"ExternalSource.d.ts","sourceRoot":"","sources":["ExternalSource.js"],"names":[],"mappings":"AAWA,+DAA+D;AAE/D;;;;;;;;GAQG;AAEH;;;;;GAKG;AAEH,+DAA+D;AAE/D;IAEE,yBAAiD;IAK/C;;;;;;;;;;;;oCApBC,gBAAS;mCAKF,gBACL;6BAKY,2BAA2B;;wCAIZ,wCAE1B;;;;;;MAuBH;IAGH;;;OAGG;IACH,gBAAe;IA2Cf;;;OAGG;IACH,8BAcC;IAED;;;OAGG;IACH,oBAEC;IAED;;;OAGG;IACH,2BAUC;IAED,eAAe;IACf,yBAEC;IAED;;;OAGG;IACH,oBAGC;IAED,eAAe;IACf,oBAkBC;IAED,eAAe;IACf,kBAcC;IAED,eAAe;IACf,oBAsBC;IAED,eAAe;IACf,sBAMC;CACF;;;;6BAnOa;IAAE,kBAAkB,EAAE,MAAM,CAAA;CAAE;kCAG/B;IACZ,IAAQ,EAAE,eAAe,CAAC;IAC1B,QAAY,EAAE,eAAe,CAAC;IAC9B,QAAY,EAAE,MAAM,CAAC;IACrB,GAAO,EAAE,MAAM,CAAC;IAChB,YAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;8BAIS;IACZ,IAAQ,EAAE,WAAW,CAAC;IACtB,KAAS,EAAE,MAAM,CAAC;CACf;sBAGU,mBAAmB,GAAG,eAAe;8BA1BrB,iCAAiC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
import { create } from '@symbiotejs/symbiote';
|
|
3
|
+
import { create, html } from '@symbiotejs/symbiote';
|
|
4
4
|
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
5
5
|
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
6
6
|
import { stringToArray } from '../../utils/stringToArray.js';
|
|
@@ -87,7 +87,7 @@ export class ExternalSource extends UploaderBlock {
|
|
|
87
87
|
this.mountIframe();
|
|
88
88
|
},
|
|
89
89
|
});
|
|
90
|
-
this.sub('*currentActivityParams', (
|
|
90
|
+
this.sub('*currentActivityParams', () => {
|
|
91
91
|
if (!this.isActivityActive) {
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
@@ -238,29 +238,29 @@ export class ExternalSource extends UploaderBlock {
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
ExternalSource.template =
|
|
241
|
+
ExternalSource.template = html`
|
|
242
242
|
<uc-activity-header>
|
|
243
|
-
<button type="button" class="uc-mini-btn"
|
|
243
|
+
<button type="button" class="uc-mini-btn" bind="onclick: *historyBack">
|
|
244
244
|
<uc-icon name="back"></uc-icon>
|
|
245
245
|
</button>
|
|
246
246
|
<div>
|
|
247
|
-
<uc-icon
|
|
247
|
+
<uc-icon bind="@name: activityIcon"></uc-icon>
|
|
248
248
|
<span>{{activityCaption}}</span>
|
|
249
249
|
</div>
|
|
250
|
-
<button type="button" class="uc-mini-btn uc-close-btn"
|
|
250
|
+
<button type="button" class="uc-mini-btn uc-close-btn" bind="onclick: *historyBack">
|
|
251
251
|
<uc-icon name="close"></uc-icon>
|
|
252
252
|
</button>
|
|
253
253
|
</uc-activity-header>
|
|
254
254
|
<div class="uc-content">
|
|
255
255
|
<div ref="iframeWrapper" class="uc-iframe-wrapper"></div>
|
|
256
256
|
<div class="uc-toolbar">
|
|
257
|
-
<button type="button" class="uc-cancel-btn uc-secondary-btn"
|
|
257
|
+
<button type="button" class="uc-cancel-btn uc-secondary-btn" bind="onclick: onCancel" l10n="cancel"></button>
|
|
258
258
|
<div></div>
|
|
259
|
-
<div
|
|
259
|
+
<div bind="@hidden: !multiple" class="uc-selected-counter"><span l10n="selected-count"></span>{{counter}}</div>
|
|
260
260
|
<button
|
|
261
261
|
type="button"
|
|
262
262
|
class="uc-done-btn uc-primary-btn"
|
|
263
|
-
|
|
263
|
+
bind="onclick: onDone; @disabled: !counter"
|
|
264
264
|
l10n="done"
|
|
265
265
|
></button>
|
|
266
266
|
</div>
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
const styleToCss = (style) => {
|
|
8
8
|
const css = Object.keys(style).reduce((acc, selector) => {
|
|
9
9
|
const propertiesObj = style[selector];
|
|
10
|
-
const propertiesStr = Object.keys(propertiesObj).reduce((
|
|
10
|
+
const propertiesStr = Object.keys(propertiesObj).reduce((innerAcc, prop) => {
|
|
11
11
|
const value = propertiesObj[prop];
|
|
12
|
-
return
|
|
12
|
+
return innerAcc + `${prop}: ${value};`;
|
|
13
13
|
}, '');
|
|
14
14
|
return acc + `${selector}{${propertiesStr}}`;
|
|
15
15
|
}, '');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-string.d.ts","sourceRoot":"","sources":["query-string.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH
|
|
1
|
+
{"version":3,"file":"query-string.d.ts","sourceRoot":"","sources":["query-string.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oCAHW;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,GAC7D,MAAM,CAWlB"}
|
|
@@ -35,10 +35,10 @@ export class FileItem extends UploaderBlock {
|
|
|
35
35
|
'*uploadList': never[];
|
|
36
36
|
'*focusedEntry': null;
|
|
37
37
|
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
38
|
-
'*collectionErrors':
|
|
39
|
-
'*collectionState': import("../../index.js").OutputCollectionState
|
|
38
|
+
'*collectionErrors': import("../../index.js").OutputErrorCollection[];
|
|
39
|
+
'*collectionState': import("../../index.js").OutputCollectionState | null;
|
|
40
40
|
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
41
|
-
'*uploadTrigger': Set<string>;
|
|
41
|
+
'*uploadTrigger': Set<string>;
|
|
42
42
|
'*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
43
43
|
'*currentActivity': null;
|
|
44
44
|
'*currentActivityParams': {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["FileItem.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["FileItem.js"],"names":[],"mappings":"AAmBA;IAIE,eAAe;IACf,mBAAuB;IACvB;;;OAGG;IACH,eAAc;IACd,eAAe;IACf,wBAAwB;IACxB,eAAe;IACf,gCAA4E;IAC5E,eAAe;IACf,iCAA0E;IAE1E,eAAe;IACf,sBAAsB;IAKpB;;;;;;;;;;;;;;;;;;;;;oCA/B+B,gBAC5B;mCAGS,gBAGd;6BAEY,2BAEG;;wCAON,wCACS;;;;;;MA2Cf;IAGH,eASC;IAED;;;OAGG;IACH,0BAaC;IAED,eAAe;IACf,wBAgBC;IAED,eAAe;IACf,2BAsCC;IAED;;;;OAIG;IACH,kBAUC;IAED;;;OAGG;IACH,uBAkDC;IAsCD,wEAAwE;IACxE,oBADY,CAAC,OAAO,aAAa,EAAE,MAAM,OAAO,aAAa,CAAC,QAsB7D;IAaC,eAAe;IACf,kBAEE;IAWJ;;;MAEC;IAED;;;OAGG;IACH,uBAEC;IAED,wBAqFC;CACF;;;;;8BAla6B,iCAAiC;AAO/D;;;;;GAKG"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { html } from '@symbiotejs/symbiote';
|
|
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';
|
|
@@ -293,7 +294,7 @@ export class FileItem extends UploaderBlock {
|
|
|
293
294
|
isFinished: state === FileItemState.FINISHED,
|
|
294
295
|
progressVisible: state === FileItemState.UPLOADING,
|
|
295
296
|
isEditable: this.cfg.useCloudImageEditor && this._entry?.getValue('isImage') && this._entry?.getValue('cdnUrl'),
|
|
296
|
-
errorText: this._entry.getValue('errors')?.[0]?.message,
|
|
297
|
+
errorText: this._entry.getValue('errors')?.[0]?.message ?? '',
|
|
297
298
|
});
|
|
298
299
|
}
|
|
299
300
|
|
|
@@ -422,23 +423,23 @@ export class FileItem extends UploaderBlock {
|
|
|
422
423
|
}
|
|
423
424
|
}
|
|
424
425
|
|
|
425
|
-
FileItem.template =
|
|
426
|
-
<div class="uc-inner"
|
|
427
|
-
<div class="uc-thumb"
|
|
426
|
+
FileItem.template = html`
|
|
427
|
+
<div class="uc-inner" bind="@finished: isFinished; @uploading: isUploading; @failed: isFailed; @focused: isFocused">
|
|
428
|
+
<div class="uc-thumb" bind="style.backgroundImage: thumbUrl">
|
|
428
429
|
<div class="uc-badge">
|
|
429
|
-
<uc-icon
|
|
430
|
+
<uc-icon bind="@name: badgeIcon"></uc-icon>
|
|
430
431
|
</div>
|
|
431
432
|
</div>
|
|
432
433
|
<div class="uc-file-name-wrapper">
|
|
433
|
-
<span class="uc-file-name"
|
|
434
|
-
<span class="uc-file-error"
|
|
434
|
+
<span class="uc-file-name" bind="@title: itemName">{{itemName}}</span>
|
|
435
|
+
<span class="uc-file-error" bind="@hidden: !errorText">{{errorText}}</span>
|
|
435
436
|
</div>
|
|
436
437
|
<div class="uc-file-actions">
|
|
437
438
|
<button
|
|
438
439
|
type="button"
|
|
439
440
|
l10n="@title:file-item-edit-button"
|
|
440
441
|
class="uc-edit-btn uc-mini-btn"
|
|
441
|
-
|
|
442
|
+
bind="onclick: onEdit; @hidden: !isEditable"
|
|
442
443
|
>
|
|
443
444
|
<uc-icon name="edit-file"></uc-icon>
|
|
444
445
|
</button>
|
|
@@ -446,15 +447,15 @@ FileItem.template = /* HTML */ `
|
|
|
446
447
|
type="button"
|
|
447
448
|
l10n="@title:file-item-remove-button"
|
|
448
449
|
class="uc-remove-btn uc-mini-btn"
|
|
449
|
-
|
|
450
|
+
bind="onclick: onRemove;"
|
|
450
451
|
>
|
|
451
452
|
<uc-icon name="remove-file"></uc-icon>
|
|
452
453
|
</button>
|
|
453
|
-
<button type="button" class="uc-upload-btn uc-mini-btn"
|
|
454
|
+
<button type="button" class="uc-upload-btn uc-mini-btn" bind="onclick: onUpload;">
|
|
454
455
|
<uc-icon name="upload"></uc-icon>
|
|
455
456
|
</button>
|
|
456
457
|
</div>
|
|
457
|
-
<uc-progress-bar class="uc-progress-bar"
|
|
458
|
+
<uc-progress-bar class="uc-progress-bar" bind="value: progressValue; visible: progressVisible;"> </uc-progress-bar>
|
|
458
459
|
</div>
|
|
459
460
|
`;
|
|
460
461
|
FileItem.activeInstances = new Set();
|
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 '@symbiotejs/symbiote';
|
|
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
|
-
<
|
|
37
|
-
<use set="@href: href;"></use>
|
|
36
|
+
<use bind="@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 '@symbiotejs/symbiote';
|
|
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,sBAAsB"}
|
package/blocks/Img/ImgConfig.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Symbiote, PubSub } from '@symbiotejs/symbiote';
|
|
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;CAqDF;;;;sBA5GqB,yBAAyB"}
|
package/blocks/Modal/Modal.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { html } from '@symbiotejs/symbiote';
|
|
2
3
|
import { Block } from '../../abstract/Block.js';
|
|
3
4
|
|
|
4
5
|
export class Modal extends Block {
|
|
@@ -109,7 +110,7 @@ export class Modal extends Block {
|
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
|
|
112
|
-
Modal.template =
|
|
113
|
+
Modal.template = html`
|
|
113
114
|
<dialog ref="dialog">
|
|
114
115
|
<slot></slot>
|
|
115
116
|
</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 '@symbiotejs/symbiote';
|
|
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 '@symbiotejs/symbiote';
|
|
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 bind="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 '@symbiotejs/symbiote';
|
|
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" bind="innerHTML: selectHtml; onchange: onSelect"></select> `;
|
|
@@ -7,8 +7,8 @@ export class SimpleBtn extends UploaderBlock {
|
|
|
7
7
|
'*uploadList': never[];
|
|
8
8
|
'*focusedEntry': null;
|
|
9
9
|
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
10
|
-
'*collectionErrors':
|
|
11
|
-
'*collectionState': import("../../index.js").OutputCollectionState
|
|
10
|
+
'*collectionErrors': import("../../index.js").OutputErrorCollection[];
|
|
11
|
+
'*collectionState': import("../../index.js").OutputCollectionState | null;
|
|
12
12
|
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
13
13
|
'*uploadTrigger': Set<string>;
|
|
14
14
|
'*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;;;;;;;;oCAiBgB,gBAAU;mCAGO,gBACpC;6BAGoB,2BAA2B;;wCAO5B,wCAA2B;;;;;;MAxB1C;CAoBJ;;;;8BApC6B,iCAAiC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { html } from '@symbiotejs/symbiote';
|
|
2
3
|
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
3
4
|
import { asBoolean } from '../Config/normalizeConfigValue.js';
|
|
4
5
|
|
|
@@ -37,9 +38,9 @@ export class SimpleBtn extends UploaderBlock {
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
SimpleBtn.template =
|
|
41
|
-
<uc-drop-area
|
|
42
|
-
<button type="button"
|
|
41
|
+
SimpleBtn.template = html`
|
|
42
|
+
<uc-drop-area bind="@disabled: !withDropZone">
|
|
43
|
+
<button type="button" bind="onclick: onClick">
|
|
43
44
|
<uc-icon name="upload"></uc-icon>
|
|
44
45
|
<span l10n="button-text"></span>
|
|
45
46
|
<slot></slot>
|
|
@@ -23,8 +23,8 @@ export class SourceBtn extends UploaderBlock {
|
|
|
23
23
|
'*uploadList': never[];
|
|
24
24
|
'*focusedEntry': null;
|
|
25
25
|
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
26
|
-
'*collectionErrors':
|
|
27
|
-
'*collectionState': import("../../index.js").OutputCollectionState
|
|
26
|
+
'*collectionErrors': import("../../index.js").OutputErrorCollection[];
|
|
27
|
+
'*collectionState': import("../../index.js").OutputCollectionState | null;
|
|
28
28
|
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
29
29
|
'*uploadTrigger': Set<string>;
|
|
30
30
|
'*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;;;;;;;oCAAA,gBAAS;mCAIT,gBAEJ;6BAG0C,2BAE1C;;wCAK+B,wCAChB;;;;;;MAbV;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 '@symbiotejs/symbiote';
|
|
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,10 +133,9 @@ 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
|
-
<uc-icon
|
|
138
|
+
<uc-icon bind="@name: iconName"></uc-icon>
|
|
139
139
|
<div class="uc-txt" l10n="src-type"></div>
|
|
140
140
|
</button>
|
|
141
141
|
`;
|
|
@@ -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 '@symbiotejs/symbiote';
|
|
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 '@symbiotejs/symbiote';
|
|
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> `;
|