@uploadcare/file-uploader 0.50.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +165 -0
- package/abstract/ActivityBlock.d.ts +68 -0
- package/abstract/ActivityBlock.d.ts.map +1 -0
- package/abstract/ActivityBlock.js +207 -0
- package/abstract/Block.d.ts +99 -0
- package/abstract/Block.d.ts.map +1 -0
- package/abstract/Block.js +349 -0
- package/abstract/CTX.d.ts +31 -0
- package/abstract/CTX.d.ts.map +1 -0
- package/abstract/CTX.js +38 -0
- package/abstract/LocaleManager.d.ts +38 -0
- package/abstract/LocaleManager.d.ts.map +1 -0
- package/abstract/LocaleManager.js +127 -0
- package/abstract/SecureUploadsManager.d.ts +22 -0
- package/abstract/SecureUploadsManager.d.ts.map +1 -0
- package/abstract/SecureUploadsManager.js +87 -0
- package/abstract/SolutionBlock.d.ts +23 -0
- package/abstract/SolutionBlock.d.ts.map +1 -0
- package/abstract/SolutionBlock.js +23 -0
- package/abstract/TypedCollection.d.ts +127 -0
- package/abstract/TypedCollection.d.ts.map +1 -0
- package/abstract/TypedCollection.js +245 -0
- package/abstract/TypedData.d.ts +47 -0
- package/abstract/TypedData.d.ts.map +1 -0
- package/abstract/TypedData.js +77 -0
- package/abstract/UploaderBlock.d.ts +114 -0
- package/abstract/UploaderBlock.d.ts.map +1 -0
- package/abstract/UploaderBlock.js +444 -0
- package/abstract/UploaderPublicApi.d.ts +90 -0
- package/abstract/UploaderPublicApi.d.ts.map +1 -0
- package/abstract/UploaderPublicApi.js +316 -0
- package/abstract/ValidationManager.d.ts +31 -0
- package/abstract/ValidationManager.d.ts.map +1 -0
- package/abstract/ValidationManager.js +162 -0
- package/abstract/a11y.d.ts +20 -0
- package/abstract/a11y.d.ts.map +1 -0
- package/abstract/a11y.js +118 -0
- package/abstract/buildOutputCollectionState.d.ts +8 -0
- package/abstract/buildOutputCollectionState.d.ts.map +1 -0
- package/abstract/buildOutputCollectionState.js +136 -0
- package/abstract/connectBlocksFrom.d.ts +8 -0
- package/abstract/connectBlocksFrom.d.ts.map +1 -0
- package/abstract/connectBlocksFrom.js +34 -0
- package/abstract/l10nProcessor.d.ts +7 -0
- package/abstract/l10nProcessor.d.ts.map +1 -0
- package/abstract/l10nProcessor.js +80 -0
- package/abstract/localeRegistry.d.ts +5 -0
- package/abstract/localeRegistry.d.ts.map +1 -0
- package/abstract/localeRegistry.js +63 -0
- package/abstract/registerBlocks.d.ts +5 -0
- package/abstract/registerBlocks.d.ts.map +1 -0
- package/abstract/registerBlocks.js +31 -0
- package/abstract/sharedConfigKey.d.ts +2 -0
- package/abstract/sharedConfigKey.d.ts.map +1 -0
- package/abstract/sharedConfigKey.js +8 -0
- package/abstract/uploadEntrySchema.d.ts +64 -0
- package/abstract/uploadEntrySchema.d.ts.map +1 -0
- package/abstract/uploadEntrySchema.js +138 -0
- package/blocks/ActivityHeader/ActivityHeader.d.ts +4 -0
- package/blocks/ActivityHeader/ActivityHeader.d.ts.map +1 -0
- package/blocks/ActivityHeader/ActivityHeader.js +3 -0
- package/blocks/ActivityHeader/activity-header.css +14 -0
- package/blocks/CameraSource/CameraSource.d.ts +39 -0
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -0
- package/blocks/CameraSource/CameraSource.js +253 -0
- package/blocks/CameraSource/camera-source.css +107 -0
- package/blocks/CloudImageEditor/index.css +1 -0
- package/blocks/CloudImageEditor/index.d.ts +2 -0
- package/blocks/CloudImageEditor/index.d.ts.map +1 -0
- package/blocks/CloudImageEditor/index.js +1 -0
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts +58 -0
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.js +228 -0
- package/blocks/CloudImageEditor/src/CropFrame.d.ts +146 -0
- package/blocks/CloudImageEditor/src/CropFrame.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/CropFrame.js +511 -0
- package/blocks/CloudImageEditor/src/EditorButtonControl.d.ts +10 -0
- package/blocks/CloudImageEditor/src/EditorButtonControl.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorButtonControl.js +44 -0
- package/blocks/CloudImageEditor/src/EditorCropButtonControl.d.ts +6 -0
- package/blocks/CloudImageEditor/src/EditorCropButtonControl.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorCropButtonControl.js +39 -0
- package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts +18 -0
- package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorFilterControl.js +155 -0
- package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +106 -0
- package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorImageCropper.js +551 -0
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +132 -0
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorImageFader.js +454 -0
- package/blocks/CloudImageEditor/src/EditorOperationControl.d.ts +9 -0
- package/blocks/CloudImageEditor/src/EditorOperationControl.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorOperationControl.js +39 -0
- package/blocks/CloudImageEditor/src/EditorScroller.d.ts +7 -0
- package/blocks/CloudImageEditor/src/EditorScroller.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorScroller.js +33 -0
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts +24 -0
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorSlider.js +118 -0
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts +104 -0
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorToolbar.js +441 -0
- package/blocks/CloudImageEditor/src/crop-utils.d.ts +123 -0
- package/blocks/CloudImageEditor/src/crop-utils.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/crop-utils.js +729 -0
- package/blocks/CloudImageEditor/src/cropper-constants.d.ts +11 -0
- package/blocks/CloudImageEditor/src/cropper-constants.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/cropper-constants.js +11 -0
- package/blocks/CloudImageEditor/src/css/common.css +1157 -0
- package/blocks/CloudImageEditor/src/css/icons.css +12 -0
- package/blocks/CloudImageEditor/src/css/index.css +2 -0
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts +20 -0
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.js +90 -0
- package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts +11 -0
- package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.js +52 -0
- package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts +17 -0
- package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.js +71 -0
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts +16 -0
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.js +178 -0
- package/blocks/CloudImageEditor/src/index.d.ts +15 -0
- package/blocks/CloudImageEditor/src/index.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/index.js +14 -0
- package/blocks/CloudImageEditor/src/lib/FocusVisible.d.ts +15 -0
- package/blocks/CloudImageEditor/src/lib/FocusVisible.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/FocusVisible.js +33 -0
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts +10 -0
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.js +256 -0
- package/blocks/CloudImageEditor/src/lib/classNames.d.ts +3 -0
- package/blocks/CloudImageEditor/src/lib/classNames.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/classNames.js +34 -0
- package/blocks/CloudImageEditor/src/lib/linspace.d.ts +8 -0
- package/blocks/CloudImageEditor/src/lib/linspace.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/linspace.js +14 -0
- package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +2 -0
- package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/parseCropPreset.js +14 -0
- package/blocks/CloudImageEditor/src/lib/parseTabs.d.ts +2 -0
- package/blocks/CloudImageEditor/src/lib/parseTabs.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/parseTabs.js +14 -0
- package/blocks/CloudImageEditor/src/lib/pick.d.ts +7 -0
- package/blocks/CloudImageEditor/src/lib/pick.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/pick.js +15 -0
- package/blocks/CloudImageEditor/src/lib/preloadImage.d.ts +11 -0
- package/blocks/CloudImageEditor/src/lib/preloadImage.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/preloadImage.js +38 -0
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +14 -0
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/transformationUtils.js +167 -0
- package/blocks/CloudImageEditor/src/state.d.ts +38 -0
- package/blocks/CloudImageEditor/src/state.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/state.js +92 -0
- package/blocks/CloudImageEditor/src/svg-sprite.d.ts +3 -0
- package/blocks/CloudImageEditor/src/svg-sprite.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/svg-sprite.js +1 -0
- package/blocks/CloudImageEditor/src/template.d.ts +2 -0
- package/blocks/CloudImageEditor/src/template.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/template.js +36 -0
- package/blocks/CloudImageEditor/src/toolbar-constants.d.ts +58 -0
- package/blocks/CloudImageEditor/src/toolbar-constants.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/toolbar-constants.js +114 -0
- package/blocks/CloudImageEditor/src/types.d.ts +58 -0
- package/blocks/CloudImageEditor/src/types.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/types.js +61 -0
- package/blocks/CloudImageEditor/src/util.d.ts +2 -0
- package/blocks/CloudImageEditor/src/util.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/util.js +19 -0
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +31 -0
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -0
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.js +113 -0
- package/blocks/CloudImageEditorActivity/index.css +13 -0
- package/blocks/CloudImageEditorActivity/test.d.ts +2 -0
- package/blocks/CloudImageEditorActivity/test.d.ts.map +1 -0
- package/blocks/CloudImageEditorActivity/test.js +9 -0
- package/blocks/Config/Config.d.ts +67 -0
- package/blocks/Config/Config.d.ts.map +1 -0
- package/blocks/Config/Config.js +246 -0
- package/blocks/Config/config.css +3 -0
- package/blocks/Config/initialConfig.d.ts +6 -0
- package/blocks/Config/initialConfig.d.ts.map +1 -0
- package/blocks/Config/initialConfig.js +69 -0
- package/blocks/Config/normalizeConfigValue.d.ts +3 -0
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -0
- package/blocks/Config/normalizeConfigValue.js +177 -0
- package/blocks/Copyright/Copyright.d.ts +4 -0
- package/blocks/Copyright/Copyright.d.ts.map +1 -0
- package/blocks/Copyright/Copyright.js +24 -0
- package/blocks/Copyright/copyright.css +31 -0
- package/blocks/DropArea/DropArea.d.ts +49 -0
- package/blocks/DropArea/DropArea.d.ts.map +1 -0
- package/blocks/DropArea/DropArea.js +273 -0
- package/blocks/DropArea/addDropzone.d.ts +21 -0
- package/blocks/DropArea/addDropzone.d.ts.map +1 -0
- package/blocks/DropArea/addDropzone.js +137 -0
- package/blocks/DropArea/drop-area.css +188 -0
- package/blocks/DropArea/getDropItems.d.ts +16 -0
- package/blocks/DropArea/getDropItems.d.ts.map +1 -0
- package/blocks/DropArea/getDropItems.js +167 -0
- package/blocks/ExternalSource/ExternalSource.d.ts +98 -0
- package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -0
- package/blocks/ExternalSource/ExternalSource.js +268 -0
- package/blocks/ExternalSource/buildStyles.d.ts +27 -0
- package/blocks/ExternalSource/buildStyles.d.ts.map +1 -0
- package/blocks/ExternalSource/buildStyles.js +133 -0
- package/blocks/ExternalSource/external-source.css +65 -0
- package/blocks/ExternalSource/messages.d.ts +3 -0
- package/blocks/ExternalSource/messages.d.ts.map +1 -0
- package/blocks/ExternalSource/messages.js +35 -0
- package/blocks/ExternalSource/query-string.d.ts +8 -0
- package/blocks/ExternalSource/query-string.d.ts.map +1 -0
- package/blocks/ExternalSource/query-string.js +14 -0
- package/blocks/FileItem/FileItem.d.ts +97 -0
- package/blocks/FileItem/FileItem.d.ts.map +1 -0
- package/blocks/FileItem/FileItem.js +460 -0
- package/blocks/FileItem/file-item.css +140 -0
- package/blocks/FormInput/FormInput.d.ts +7 -0
- package/blocks/FormInput/FormInput.d.ts.map +1 -0
- package/blocks/FormInput/FormInput.js +92 -0
- package/blocks/Icon/Icon.d.ts +12 -0
- package/blocks/Icon/Icon.d.ts.map +1 -0
- package/blocks/Icon/Icon.js +44 -0
- package/blocks/Icon/icon.css +12 -0
- package/blocks/Img/Img.d.ts +4 -0
- package/blocks/Img/Img.d.ts.map +1 -0
- package/blocks/Img/Img.js +21 -0
- package/blocks/Img/ImgBase.d.ts +80 -0
- package/blocks/Img/ImgBase.d.ts.map +1 -0
- package/blocks/Img/ImgBase.js +408 -0
- package/blocks/Img/ImgConfig.d.ts +31 -0
- package/blocks/Img/ImgConfig.d.ts.map +1 -0
- package/blocks/Img/ImgConfig.js +102 -0
- package/blocks/Img/configurations.d.ts +12 -0
- package/blocks/Img/configurations.d.ts.map +1 -0
- package/blocks/Img/configurations.js +14 -0
- package/blocks/Img/props-map.d.ts +29 -0
- package/blocks/Img/props-map.d.ts.map +1 -0
- package/blocks/Img/props-map.js +34 -0
- package/blocks/Img/test.css +16 -0
- package/blocks/Img/utils/parseObjectToString.d.ts +2 -0
- package/blocks/Img/utils/parseObjectToString.d.ts.map +1 -0
- package/blocks/Img/utils/parseObjectToString.js +13 -0
- package/blocks/Modal/Modal.d.ts +24 -0
- package/blocks/Modal/Modal.d.ts.map +1 -0
- package/blocks/Modal/Modal.js +116 -0
- package/blocks/Modal/modal.css +92 -0
- package/blocks/ProgressBar/ProgressBar.d.ts +10 -0
- package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/blocks/ProgressBar/ProgressBar.js +38 -0
- package/blocks/ProgressBar/progress-bar.css +25 -0
- package/blocks/ProgressBarCommon/ProgressBarCommon.d.ts +8 -0
- package/blocks/ProgressBarCommon/ProgressBarCommon.d.ts.map +1 -0
- package/blocks/ProgressBarCommon/ProgressBarCommon.js +44 -0
- package/blocks/ProgressBarCommon/progress-bar-common.css +16 -0
- package/blocks/Range/Range.d.ts +16 -0
- package/blocks/Range/Range.d.ts.map +1 -0
- package/blocks/Range/Range.js +44 -0
- package/blocks/Range/range.css +65 -0
- package/blocks/Select/Select.d.ts +9 -0
- package/blocks/Select/Select.d.ts.map +1 -0
- package/blocks/Select/Select.js +35 -0
- package/blocks/Select/select.css +22 -0
- package/blocks/SimpleBtn/SimpleBtn.d.ts +26 -0
- package/blocks/SimpleBtn/SimpleBtn.d.ts.map +1 -0
- package/blocks/SimpleBtn/SimpleBtn.js +54 -0
- package/blocks/SimpleBtn/simple-btn.css +64 -0
- package/blocks/SourceBtn/SourceBtn.d.ts +58 -0
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -0
- package/blocks/SourceBtn/SourceBtn.js +145 -0
- package/blocks/SourceBtn/source-btn.css +45 -0
- package/blocks/SourceList/SourceList.d.ts +4 -0
- package/blocks/SourceList/SourceList.d.ts.map +1 -0
- package/blocks/SourceList/SourceList.js +20 -0
- package/blocks/StartFrom/StartFrom.d.ts +7 -0
- package/blocks/StartFrom/StartFrom.d.ts.map +1 -0
- package/blocks/StartFrom/StartFrom.js +14 -0
- package/blocks/StartFrom/start-from.css +32 -0
- package/blocks/UploadCtxProvider/EventEmitter.d.ts +107 -0
- package/blocks/UploadCtxProvider/EventEmitter.d.ts.map +1 -0
- package/blocks/UploadCtxProvider/EventEmitter.js +132 -0
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +35 -0
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts.map +1 -0
- package/blocks/UploadCtxProvider/UploadCtxProvider.js +45 -0
- package/blocks/UploadList/UploadList.d.ts +59 -0
- package/blocks/UploadList/UploadList.d.ts.map +1 -0
- package/blocks/UploadList/UploadList.js +237 -0
- package/blocks/UploadList/upload-list.css +74 -0
- package/blocks/UrlSource/UrlSource.d.ts +9 -0
- package/blocks/UrlSource/UrlSource.d.ts.map +1 -0
- package/blocks/UrlSource/UrlSource.js +61 -0
- package/blocks/UrlSource/url-source.css +24 -0
- package/blocks/svg-backgrounds/svg-backgrounds.d.ts +17 -0
- package/blocks/svg-backgrounds/svg-backgrounds.d.ts.map +1 -0
- package/blocks/svg-backgrounds/svg-backgrounds.js +45 -0
- package/blocks/themes/uc-basic/common.css +116 -0
- package/blocks/themes/uc-basic/config.css +4 -0
- package/blocks/themes/uc-basic/index.css +32 -0
- package/blocks/themes/uc-basic/svg-sprite.d.ts +3 -0
- package/blocks/themes/uc-basic/svg-sprite.d.ts.map +1 -0
- package/blocks/themes/uc-basic/svg-sprite.js +1 -0
- package/blocks/themes/uc-basic/theme.css +232 -0
- package/blocks/utils/UploadSource.d.ts +9 -0
- package/blocks/utils/UploadSource.d.ts.map +1 -0
- package/blocks/utils/UploadSource.js +8 -0
- package/blocks/utils/abilities.d.ts +2 -0
- package/blocks/utils/abilities.d.ts.map +1 -0
- package/blocks/utils/abilities.js +3 -0
- package/blocks/utils/comma-separated.d.ts +3 -0
- package/blocks/utils/comma-separated.d.ts.map +1 -0
- package/blocks/utils/comma-separated.js +19 -0
- package/blocks/utils/debounce.d.ts +10 -0
- package/blocks/utils/debounce.d.ts.map +1 -0
- package/blocks/utils/debounce.js +22 -0
- package/blocks/utils/resizeImage.d.ts +6 -0
- package/blocks/utils/resizeImage.d.ts.map +1 -0
- package/blocks/utils/resizeImage.js +40 -0
- package/blocks/utils/throttle.d.ts +4 -0
- package/blocks/utils/throttle.d.ts.map +1 -0
- package/blocks/utils/throttle.js +45 -0
- package/blocks/utils/userAgent.d.ts +6 -0
- package/blocks/utils/userAgent.d.ts.map +1 -0
- package/blocks/utils/userAgent.js +14 -0
- package/env.d.ts +4 -0
- package/env.d.ts.map +1 -0
- package/env.js +3 -0
- package/index.d.ts +39 -0
- package/index.d.ts.map +1 -0
- package/index.js +51 -0
- package/index.ssr.d.ts +961 -0
- package/index.ssr.d.ts.map +1 -0
- package/index.ssr.js +1461 -0
- package/locales/file-uploader/ar.d.ts +114 -0
- package/locales/file-uploader/ar.d.ts.map +1 -0
- package/locales/file-uploader/ar.js +113 -0
- package/locales/file-uploader/az.d.ts +106 -0
- package/locales/file-uploader/az.d.ts.map +1 -0
- package/locales/file-uploader/az.js +105 -0
- package/locales/file-uploader/ca.d.ts +108 -0
- package/locales/file-uploader/ca.d.ts.map +1 -0
- package/locales/file-uploader/ca.js +108 -0
- package/locales/file-uploader/cs.d.ts +110 -0
- package/locales/file-uploader/cs.d.ts.map +1 -0
- package/locales/file-uploader/cs.js +110 -0
- package/locales/file-uploader/da.d.ts +106 -0
- package/locales/file-uploader/da.d.ts.map +1 -0
- package/locales/file-uploader/da.js +106 -0
- package/locales/file-uploader/de.d.ts +106 -0
- package/locales/file-uploader/de.d.ts.map +1 -0
- package/locales/file-uploader/de.js +107 -0
- package/locales/file-uploader/el.d.ts +106 -0
- package/locales/file-uploader/el.d.ts.map +1 -0
- package/locales/file-uploader/el.js +107 -0
- package/locales/file-uploader/en.d.ts +106 -0
- package/locales/file-uploader/en.d.ts.map +1 -0
- package/locales/file-uploader/en.js +105 -0
- package/locales/file-uploader/es.d.ts +108 -0
- package/locales/file-uploader/es.d.ts.map +1 -0
- package/locales/file-uploader/es.js +108 -0
- package/locales/file-uploader/et.d.ts +106 -0
- package/locales/file-uploader/et.d.ts.map +1 -0
- package/locales/file-uploader/et.js +105 -0
- package/locales/file-uploader/fr.d.ts +108 -0
- package/locales/file-uploader/fr.d.ts.map +1 -0
- package/locales/file-uploader/fr.js +108 -0
- package/locales/file-uploader/he.d.ts +108 -0
- package/locales/file-uploader/he.d.ts.map +1 -0
- package/locales/file-uploader/he.js +107 -0
- package/locales/file-uploader/hy.d.ts +106 -0
- package/locales/file-uploader/hy.d.ts.map +1 -0
- package/locales/file-uploader/hy.js +105 -0
- package/locales/file-uploader/is.d.ts +106 -0
- package/locales/file-uploader/is.d.ts.map +1 -0
- package/locales/file-uploader/is.js +105 -0
- package/locales/file-uploader/it.d.ts +108 -0
- package/locales/file-uploader/it.d.ts.map +1 -0
- package/locales/file-uploader/it.js +108 -0
- package/locales/file-uploader/ja.d.ts +106 -0
- package/locales/file-uploader/ja.d.ts.map +1 -0
- package/locales/file-uploader/ja.js +105 -0
- package/locales/file-uploader/ka.d.ts +106 -0
- package/locales/file-uploader/ka.d.ts.map +1 -0
- package/locales/file-uploader/ka.js +105 -0
- package/locales/file-uploader/kk.d.ts +106 -0
- package/locales/file-uploader/kk.d.ts.map +1 -0
- package/locales/file-uploader/kk.js +105 -0
- package/locales/file-uploader/ko.d.ts +106 -0
- package/locales/file-uploader/ko.d.ts.map +1 -0
- package/locales/file-uploader/ko.js +104 -0
- package/locales/file-uploader/lv.d.ts +108 -0
- package/locales/file-uploader/lv.d.ts.map +1 -0
- package/locales/file-uploader/lv.js +107 -0
- package/locales/file-uploader/nb.d.ts +106 -0
- package/locales/file-uploader/nb.d.ts.map +1 -0
- package/locales/file-uploader/nb.js +105 -0
- package/locales/file-uploader/nl.d.ts +106 -0
- package/locales/file-uploader/nl.d.ts.map +1 -0
- package/locales/file-uploader/nl.js +106 -0
- package/locales/file-uploader/pl.d.ts +110 -0
- package/locales/file-uploader/pl.d.ts.map +1 -0
- package/locales/file-uploader/pl.js +109 -0
- package/locales/file-uploader/pt.d.ts +108 -0
- package/locales/file-uploader/pt.d.ts.map +1 -0
- package/locales/file-uploader/pt.js +108 -0
- package/locales/file-uploader/ro.d.ts +108 -0
- package/locales/file-uploader/ro.d.ts.map +1 -0
- package/locales/file-uploader/ro.js +108 -0
- package/locales/file-uploader/ru.d.ts +110 -0
- package/locales/file-uploader/ru.d.ts.map +1 -0
- package/locales/file-uploader/ru.js +109 -0
- package/locales/file-uploader/sk.d.ts +110 -0
- package/locales/file-uploader/sk.d.ts.map +1 -0
- package/locales/file-uploader/sk.js +109 -0
- package/locales/file-uploader/sr.d.ts +108 -0
- package/locales/file-uploader/sr.d.ts.map +1 -0
- package/locales/file-uploader/sr.js +107 -0
- package/locales/file-uploader/sv.d.ts +106 -0
- package/locales/file-uploader/sv.d.ts.map +1 -0
- package/locales/file-uploader/sv.js +105 -0
- package/locales/file-uploader/tr.d.ts +106 -0
- package/locales/file-uploader/tr.d.ts.map +1 -0
- package/locales/file-uploader/tr.js +105 -0
- package/locales/file-uploader/uk.d.ts +110 -0
- package/locales/file-uploader/uk.d.ts.map +1 -0
- package/locales/file-uploader/uk.js +109 -0
- package/locales/file-uploader/vi.d.ts +106 -0
- package/locales/file-uploader/vi.d.ts.map +1 -0
- package/locales/file-uploader/vi.js +105 -0
- package/locales/file-uploader/zh-TW.d.ts +106 -0
- package/locales/file-uploader/zh-TW.d.ts.map +1 -0
- package/locales/file-uploader/zh-TW.js +105 -0
- package/locales/file-uploader/zh.d.ts +106 -0
- package/locales/file-uploader/zh.d.ts.map +1 -0
- package/locales/file-uploader/zh.js +105 -0
- package/package.json +142 -0
- package/solutions/adaptive-image/index.d.ts +3 -0
- package/solutions/adaptive-image/index.d.ts.map +1 -0
- package/solutions/adaptive-image/index.js +5 -0
- package/solutions/cloud-image-editor/CloudImageEditor.d.ts +4 -0
- package/solutions/cloud-image-editor/CloudImageEditor.d.ts.map +1 -0
- package/solutions/cloud-image-editor/CloudImageEditor.js +12 -0
- package/solutions/cloud-image-editor/index.css +2 -0
- package/solutions/cloud-image-editor/index.d.ts +6 -0
- package/solutions/cloud-image-editor/index.d.ts.map +1 -0
- package/solutions/cloud-image-editor/index.js +11 -0
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts +27 -0
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts.map +1 -0
- package/solutions/file-uploader/inline/FileUploaderInline.js +75 -0
- package/solutions/file-uploader/inline/index.css +54 -0
- package/solutions/file-uploader/inline/index.d.ts +2 -0
- package/solutions/file-uploader/inline/index.d.ts.map +1 -0
- package/solutions/file-uploader/inline/index.js +1 -0
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts +7 -0
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -0
- package/solutions/file-uploader/minimal/FileUploaderMinimal.js +46 -0
- package/solutions/file-uploader/minimal/index.css +137 -0
- package/solutions/file-uploader/minimal/index.d.ts +14 -0
- package/solutions/file-uploader/minimal/index.d.ts.map +1 -0
- package/solutions/file-uploader/minimal/index.js +13 -0
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts +26 -0
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -0
- package/solutions/file-uploader/regular/FileUploaderRegular.js +66 -0
- package/solutions/file-uploader/regular/index.css +1 -0
- package/solutions/file-uploader/regular/index.d.ts +2 -0
- package/solutions/file-uploader/regular/index.d.ts.map +1 -0
- package/solutions/file-uploader/regular/index.js +1 -0
- package/types/events.d.ts +5 -0
- package/types/events.js +1 -0
- package/types/exported.d.ts +295 -0
- package/types/exported.js +1 -0
- package/types/global.d.ts +8 -0
- package/types/https.d.ts +1 -0
- package/types/index.d.ts +2 -0
- package/types/index.js +3 -0
- package/types/jsx.d.ts +63 -0
- package/types/jsx.js +1 -0
- package/utils/WindowHeightTracker.d.ts +24 -0
- package/utils/WindowHeightTracker.d.ts.map +1 -0
- package/utils/WindowHeightTracker.js +51 -0
- package/utils/cdn-utils.d.ts +59 -0
- package/utils/cdn-utils.d.ts.map +1 -0
- package/utils/cdn-utils.js +201 -0
- package/utils/cdn-utils.test.d.ts +2 -0
- package/utils/cdn-utils.test.d.ts.map +1 -0
- package/utils/cdn-utils.test.js +227 -0
- package/utils/delay.d.ts +2 -0
- package/utils/delay.d.ts.map +1 -0
- package/utils/delay.js +4 -0
- package/utils/fileTypes.d.ts +8 -0
- package/utils/fileTypes.d.ts.map +1 -0
- package/utils/fileTypes.js +95 -0
- package/utils/fileTypes.test.d.ts +2 -0
- package/utils/fileTypes.test.d.ts.map +1 -0
- package/utils/fileTypes.test.js +89 -0
- package/utils/getLocaleDirection.d.ts +2 -0
- package/utils/getLocaleDirection.d.ts.map +1 -0
- package/utils/getLocaleDirection.js +18 -0
- package/utils/getPluralForm.d.ts +3 -0
- package/utils/getPluralForm.d.ts.map +1 -0
- package/utils/getPluralForm.js +13 -0
- package/utils/getPluralForm.test.d.ts +2 -0
- package/utils/getPluralForm.test.d.ts.map +1 -0
- package/utils/getPluralForm.test.js +16 -0
- package/utils/ifRef.d.ts +7 -0
- package/utils/ifRef.d.ts.map +1 -0
- package/utils/ifRef.js +9 -0
- package/utils/isSecureTokenExpired.d.ts +4 -0
- package/utils/isSecureTokenExpired.d.ts.map +1 -0
- package/utils/isSecureTokenExpired.js +17 -0
- package/utils/isSecureTokenExpired.test.d.ts +2 -0
- package/utils/isSecureTokenExpired.test.d.ts.map +1 -0
- package/utils/isSecureTokenExpired.test.js +33 -0
- package/utils/memoize.d.ts +2 -0
- package/utils/memoize.d.ts.map +1 -0
- package/utils/memoize.js +23 -0
- package/utils/memoize.test.d.ts +2 -0
- package/utils/memoize.test.d.ts.map +1 -0
- package/utils/memoize.test.js +38 -0
- package/utils/mixinClass.d.ts +8 -0
- package/utils/mixinClass.d.ts.map +1 -0
- package/utils/mixinClass.js +18 -0
- package/utils/parseCdnUrl.d.ts +9 -0
- package/utils/parseCdnUrl.d.ts.map +1 -0
- package/utils/parseCdnUrl.js +20 -0
- package/utils/parseCdnUrl.test.d.ts +2 -0
- package/utils/parseCdnUrl.test.d.ts.map +1 -0
- package/utils/parseCdnUrl.test.js +78 -0
- package/utils/parseShrink.d.ts +5 -0
- package/utils/parseShrink.d.ts.map +1 -0
- package/utils/parseShrink.js +34 -0
- package/utils/parseShrink.test.d.ts +2 -0
- package/utils/parseShrink.test.d.ts.map +1 -0
- package/utils/parseShrink.test.js +26 -0
- package/utils/prettyBytes.d.ts +11 -0
- package/utils/prettyBytes.d.ts.map +1 -0
- package/utils/prettyBytes.js +64 -0
- package/utils/prettyBytes.test.d.ts +2 -0
- package/utils/prettyBytes.test.d.ts.map +1 -0
- package/utils/prettyBytes.test.js +99 -0
- package/utils/stringToArray.d.ts +2 -0
- package/utils/stringToArray.d.ts.map +1 -0
- package/utils/stringToArray.js +11 -0
- package/utils/stringToArray.test.d.ts +2 -0
- package/utils/stringToArray.test.d.ts.map +1 -0
- package/utils/stringToArray.test.js +20 -0
- package/utils/template-utils.d.ts +40 -0
- package/utils/template-utils.d.ts.map +1 -0
- package/utils/template-utils.js +50 -0
- package/utils/template-utils.test.d.ts +2 -0
- package/utils/template-utils.test.d.ts.map +1 -0
- package/utils/template-utils.test.js +56 -0
- package/utils/toKebabCase.d.ts +3 -0
- package/utils/toKebabCase.d.ts.map +1 -0
- package/utils/toKebabCase.js +15 -0
- package/utils/toKebabCase.test.d.ts +2 -0
- package/utils/toKebabCase.test.d.ts.map +1 -0
- package/utils/toKebabCase.test.js +11 -0
- package/utils/transparentPixelSrc.d.ts +2 -0
- package/utils/transparentPixelSrc.d.ts.map +1 -0
- package/utils/transparentPixelSrc.js +2 -0
- package/utils/uniqueArray.d.ts +2 -0
- package/utils/uniqueArray.d.ts.map +1 -0
- package/utils/uniqueArray.js +8 -0
- package/utils/uniqueArray.test.d.ts +2 -0
- package/utils/uniqueArray.test.d.ts.map +1 -0
- package/utils/uniqueArray.test.js +8 -0
- package/utils/validators/collection/index.d.ts +3 -0
- package/utils/validators/collection/index.d.ts.map +1 -0
- package/utils/validators/collection/index.js +2 -0
- package/utils/validators/collection/validateCollectionUploadError.d.ts +3 -0
- package/utils/validators/collection/validateCollectionUploadError.d.ts.map +1 -0
- package/utils/validators/collection/validateCollectionUploadError.js +11 -0
- package/utils/validators/collection/validateMultiple.d.ts +3 -0
- package/utils/validators/collection/validateMultiple.d.ts.map +1 -0
- package/utils/validators/collection/validateMultiple.js +43 -0
- package/utils/validators/file/index.d.ts +5 -0
- package/utils/validators/file/index.d.ts.map +1 -0
- package/utils/validators/file/index.js +4 -0
- package/utils/validators/file/validateFileType.d.ts +3 -0
- package/utils/validators/file/validateFileType.d.ts.map +1 -0
- package/utils/validators/file/validateFileType.js +30 -0
- package/utils/validators/file/validateIsImage.d.ts +3 -0
- package/utils/validators/file/validateIsImage.d.ts.map +1 -0
- package/utils/validators/file/validateIsImage.js +25 -0
- package/utils/validators/file/validateMaxSizeLimit.d.ts +3 -0
- package/utils/validators/file/validateMaxSizeLimit.d.ts.map +1 -0
- package/utils/validators/file/validateMaxSizeLimit.js +15 -0
- package/utils/validators/file/validateUploadError.d.ts +3 -0
- package/utils/validators/file/validateUploadError.d.ts.map +1 -0
- package/utils/validators/file/validateUploadError.js +48 -0
- package/utils/waitForAttribute.d.ts +8 -0
- package/utils/waitForAttribute.d.ts.map +1 -0
- package/utils/waitForAttribute.js +43 -0
- package/utils/waitForAttribute.test.d.ts +2 -0
- package/utils/waitForAttribute.test.d.ts.map +1 -0
- package/utils/waitForAttribute.test.js +78 -0
- package/utils/warnOnce.d.ts +3 -0
- package/utils/warnOnce.d.ts.map +1 -0
- package/utils/warnOnce.js +11 -0
- package/utils/wildcardRegexp.d.ts +2 -0
- package/utils/wildcardRegexp.d.ts.map +1 -0
- package/utils/wildcardRegexp.js +17 -0
- package/utils/wildcardRegexp.test.d.ts +2 -0
- package/utils/wildcardRegexp.test.d.ts.map +1 -0
- package/utils/wildcardRegexp.test.js +19 -0
- package/web/blocks.iife.min.js +29 -0
- package/web/blocks.min.js +29 -0
- package/web/lr-basic.min.css +1 -0
- package/web/lr-cloud-image-editor.min.css +1 -0
- package/web/lr-cloud-image-editor.min.js +29 -0
- package/web/lr-file-uploader-inline.min.css +1 -0
- package/web/lr-file-uploader-inline.min.js +29 -0
- package/web/lr-file-uploader-minimal.min.css +1 -0
- package/web/lr-file-uploader-minimal.min.js +28 -0
- package/web/lr-file-uploader-regular.min.css +1 -0
- package/web/lr-file-uploader-regular.min.js +29 -0
- package/web/lr-img.min.js +28 -0
- package/web/uc-basic.min.css +1 -0
- package/web/uc-cloud-image-editor.min.css +1 -0
- package/web/uc-cloud-image-editor.min.js +29 -0
- package/web/uc-file-uploader-inline.min.css +1 -0
- package/web/uc-file-uploader-inline.min.js +29 -0
- package/web/uc-file-uploader-minimal.min.css +1 -0
- package/web/uc-file-uploader-minimal.min.js +28 -0
- package/web/uc-file-uploader-regular.min.css +1 -0
- package/web/uc-file-uploader-regular.min.js +29 -0
- package/web/uc-img.min.js +28 -0
package/index.ssr.js
ADDED
|
@@ -0,0 +1,1461 @@
|
|
|
1
|
+
export const ActivityBlock = class {
|
|
2
|
+
static activities = {
|
|
3
|
+
START_FROM: "start-from",
|
|
4
|
+
CAMERA: "camera",
|
|
5
|
+
DRAW: "draw",
|
|
6
|
+
UPLOAD_LIST: "upload-list",
|
|
7
|
+
URL: "url",
|
|
8
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
9
|
+
EXTERNAL: "external",
|
|
10
|
+
DETAILS: "details",
|
|
11
|
+
};
|
|
12
|
+
static reg = () => {};
|
|
13
|
+
static styleAttrs = [];
|
|
14
|
+
static is = `sym-1`;
|
|
15
|
+
static bindAttributes = () => {};
|
|
16
|
+
};
|
|
17
|
+
export const ActivityHeader = class {
|
|
18
|
+
static activities = {
|
|
19
|
+
START_FROM: "start-from",
|
|
20
|
+
CAMERA: "camera",
|
|
21
|
+
DRAW: "draw",
|
|
22
|
+
UPLOAD_LIST: "upload-list",
|
|
23
|
+
URL: "url",
|
|
24
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
25
|
+
EXTERNAL: "external",
|
|
26
|
+
DETAILS: "details",
|
|
27
|
+
};
|
|
28
|
+
static reg = () => {};
|
|
29
|
+
static styleAttrs = [];
|
|
30
|
+
static is = `sym-1`;
|
|
31
|
+
static bindAttributes = () => {};
|
|
32
|
+
};
|
|
33
|
+
export const BaseComponent = class {
|
|
34
|
+
static reg = () => {};
|
|
35
|
+
static is = `sym-1`;
|
|
36
|
+
static bindAttributes = () => {};
|
|
37
|
+
};
|
|
38
|
+
export const Block = class {
|
|
39
|
+
static reg = () => {};
|
|
40
|
+
static styleAttrs = [];
|
|
41
|
+
static is = `sym-1`;
|
|
42
|
+
static bindAttributes = () => {};
|
|
43
|
+
};
|
|
44
|
+
export const BtnUi = class {
|
|
45
|
+
static observedAttributes = ["text", "icon", "reverse", "theme"];
|
|
46
|
+
static template = `
|
|
47
|
+
<button type="button" set="@role:aria-role; @aria-controls: aria-controls">
|
|
48
|
+
<uc-icon set="className: iconCss; @name: icon; @hidden: !icon"></uc-icon>
|
|
49
|
+
<div class="uc-text">{{text}}</div>
|
|
50
|
+
</button>
|
|
51
|
+
`;
|
|
52
|
+
static reg = () => {};
|
|
53
|
+
static styleAttrs = [];
|
|
54
|
+
static is = `sym-1`;
|
|
55
|
+
static bindAttributes = () => {};
|
|
56
|
+
};
|
|
57
|
+
export const CameraSource = class {
|
|
58
|
+
static template = `
|
|
59
|
+
<uc-activity-header>
|
|
60
|
+
<button type="button" class="uc-mini-btn" set="onclick: *historyBack">
|
|
61
|
+
<uc-icon name="back"></uc-icon>
|
|
62
|
+
</button>
|
|
63
|
+
<div set="@hidden: !cameraSelectHidden">
|
|
64
|
+
<uc-icon name="camera"></uc-icon>
|
|
65
|
+
<span l10n="caption-camera"></span>
|
|
66
|
+
</div>
|
|
67
|
+
<uc-select
|
|
68
|
+
class="uc-camera-select"
|
|
69
|
+
set="$.options: cameraSelectOptions; @hidden: cameraSelectHidden; onchange: onCameraSelectChange"
|
|
70
|
+
>
|
|
71
|
+
</uc-select>
|
|
72
|
+
<button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
|
|
73
|
+
<uc-icon name="close"></uc-icon>
|
|
74
|
+
</button>
|
|
75
|
+
</uc-activity-header>
|
|
76
|
+
<div class="uc-content">
|
|
77
|
+
<video
|
|
78
|
+
autoplay
|
|
79
|
+
playsinline
|
|
80
|
+
set="srcObject: video; style.transform: videoTransformCss; @hidden: videoHidden"
|
|
81
|
+
ref="video"
|
|
82
|
+
></video>
|
|
83
|
+
<div class="uc-message-box" set="@hidden: messageHidden">
|
|
84
|
+
<span l10n="l10nMessage"></span>
|
|
85
|
+
<button
|
|
86
|
+
type="button"
|
|
87
|
+
set="onclick: onRequestPermissions; @hidden: requestBtnHidden"
|
|
88
|
+
l10n="camera-permissions-request"
|
|
89
|
+
></button>
|
|
90
|
+
</div>
|
|
91
|
+
<button type="button" class="uc-shot-btn" set="onclick: onShot; @disabled: shotBtnDisabled">
|
|
92
|
+
<uc-icon name="camera"></uc-icon>
|
|
93
|
+
</button>
|
|
94
|
+
</div>
|
|
95
|
+
`;
|
|
96
|
+
static extSrcList = {
|
|
97
|
+
FACEBOOK: "facebook",
|
|
98
|
+
DROPBOX: "dropbox",
|
|
99
|
+
GDRIVE: "gdrive",
|
|
100
|
+
GPHOTOS: "gphotos",
|
|
101
|
+
INSTAGRAM: "instagram",
|
|
102
|
+
FLICKR: "flickr",
|
|
103
|
+
VK: "vk",
|
|
104
|
+
EVERNOTE: "evernote",
|
|
105
|
+
BOX: "box",
|
|
106
|
+
ONEDRIVE: "onedrive",
|
|
107
|
+
HUDDLE: "huddle",
|
|
108
|
+
};
|
|
109
|
+
static sourceTypes = {
|
|
110
|
+
LOCAL: "local",
|
|
111
|
+
URL: "url",
|
|
112
|
+
CAMERA: "camera",
|
|
113
|
+
DRAW: "draw",
|
|
114
|
+
FACEBOOK: "facebook",
|
|
115
|
+
DROPBOX: "dropbox",
|
|
116
|
+
GDRIVE: "gdrive",
|
|
117
|
+
GPHOTOS: "gphotos",
|
|
118
|
+
INSTAGRAM: "instagram",
|
|
119
|
+
FLICKR: "flickr",
|
|
120
|
+
VK: "vk",
|
|
121
|
+
EVERNOTE: "evernote",
|
|
122
|
+
BOX: "box",
|
|
123
|
+
ONEDRIVE: "onedrive",
|
|
124
|
+
HUDDLE: "huddle",
|
|
125
|
+
};
|
|
126
|
+
static activities = {
|
|
127
|
+
START_FROM: "start-from",
|
|
128
|
+
CAMERA: "camera",
|
|
129
|
+
DRAW: "draw",
|
|
130
|
+
UPLOAD_LIST: "upload-list",
|
|
131
|
+
URL: "url",
|
|
132
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
133
|
+
EXTERNAL: "external",
|
|
134
|
+
DETAILS: "details",
|
|
135
|
+
};
|
|
136
|
+
static reg = () => {};
|
|
137
|
+
static styleAttrs = [];
|
|
138
|
+
static is = `sym-1`;
|
|
139
|
+
static bindAttributes = () => {};
|
|
140
|
+
};
|
|
141
|
+
export const CloudImageEditor = class {
|
|
142
|
+
static styleAttrs = [];
|
|
143
|
+
static template = `
|
|
144
|
+
<svg width='0' height='0' style='position:absolute'><symbol viewBox='0 0 20 20' id='uc-icon-brightness' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M15 10a5 5 0 0 1-5 5m5-5a5 5 0 0 0-5-5m5 5h-5m0 5a5 5 0 0 1 0-10m0 10V5m0 15v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05m-.626 2.45H10m4.324 5H10'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-closeMax' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M8.232 10 3.585 5.353l1.768-1.768L10 8.232l4.648-4.647 1.767 1.768L11.768 10l4.647 4.648-1.767 1.767L10 11.768l-4.647 4.647-1.768-1.767L8.232 10Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-contrast' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 10a8 8 0 1 0 16 0 8 8 0 1 0-16 0m8-8v16m8-8h-8m7.598 2.5H10m6.24 2.5H10m7.6-7.5H10M16.242 5H10'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-crop' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M20 14H7.005C6.45 14 6 13.55 6 12.995V0M0 6h13.067c.515 0 .933.418.933.933V20M14.5.4 13 2l1.5 1.6M13 2h2a3 3 0 0 1 3 3v2M5.5 19.6 7 18l-1.5-1.6M7 18H5a3 3 0 0 1-3-3v-2'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-done' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='m18.057 6.333-9.365 9.125a1.25 1.25 0 0 1-1.768-.023L1.92 10.296l1.791-1.744 4.132 4.243 8.47-8.253 1.744 1.79Z' clip-rule='evenodd'/></symbol><symbol fill='currentColor' viewBox='0 0 25 24' id='uc-icon-edit-file' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M18.558 2.804a.78.78 0 0 0-.557.235l-.008.007-2.472 2.46 3.847 3.848 2.46-2.473.004-.003a.78.78 0 0 0 0-1.108l-.004-.003-2.712-2.728a.78.78 0 0 0-.558-.235Zm-.248 7.613-3.852-3.852-8.93 8.887-1.516 5.41 5.41-1.515 8.888-8.93Zm-.636-8.934a2.28 2.28 0 0 1 2.512.505l2.702 2.717.002.002a2.278 2.278 0 0 1 0 3.234l-.002.002-12.541 12.602a.75.75 0 0 1-.33.193l-6.884 1.928a.75.75 0 0 1-.925-.924l1.928-6.885a.75.75 0 0 1 .193-.33l12.603-12.54a2.28 2.28 0 0 1 .742-.504Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-enhance' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19 13h-2m0 0a4 4 0 0 1-4-4m4 4a4 4 0 0 0-4 4m0-8V7m0 2a4 4 0 0 1-4 4m-2 0h2m0 0a4 4 0 0 1 4 4m0 0v2M8 8.5H6.5m0 0a2 2 0 0 1-2-2m2 2a2 2 0 0 0-2 2m0-4V5m0 1.5a2 2 0 0 1-2 2M1 8.5h1.5m0 0a2 2 0 0 1 2 2m0 0V12M12 3h-1m0 0a1 1 0 0 1-1-1m1 1a1 1 0 0 0-1 1m0-2V1m0 1a1 1 0 0 1-1 1M8 3h1m0 0a1 1 0 0 1 1 1m0 0v1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-exposure' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M10 20v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05M5 10a5 5 0 1 0 10 0 5 5 0 1 0-10 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-filters' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M4.5 6.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m-3.5 6a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m7 0a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-flip' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19.6 5 18 3.5 16.4 5m3.2 10L18 16.5 16.4 15M18 3.523v12.954M3.3 8.5h10.654c.301 0 .415-.395.159-.554L3.459 1.286A.3.3 0 0 0 3 1.542V8.2a.3.3 0 0 0 .3.3zm0 3h10.654c.301 0 .415.395.159.554l-10.654 6.66A.3.3 0 0 1 3 18.458v-6.66a.3.3 0 0 1 .3-.3z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-gamma' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M17 3C9 6 2.5 11.5 2.5 17.5m0 0h1m-1 0v-1m14 1h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3-14v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-mirror' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M5 .4 3.5 2 5 3.6M15 .4 16.5 2 15 3.6M3.52 2h12.957M8.5 16.7V6.046c0-.301-.394-.415-.554-.159L1.287 16.541a.3.3 0 0 0 .255.459H8.2a.3.3 0 0 0 .3-.3zm3 0V6.046c0-.301.395-.415.555-.159l6.659 10.654a.3.3 0 0 1-.255.459H11.8a.3.3 0 0 1-.3-.3z'/></symbol><symbol viewBox='0 0 40 40' id='uc-icon-original' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.5' d='M0 40 40 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-rotate' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M13.5.4 12 2l1.5 1.6M12.023 2H14.4A3.6 3.6 0 0 1 18 5.6V8M4 17h9a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-sad' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 17c4.418-4 11.582-4 16 0M16.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-11 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-saturation' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient id='puc-icon-id__a' x1='10.001' y1='1' x2='10.001' y2='19' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs><circle cx='10.001' cy='10' r='9' transform='rotate(90 10 10)' fill='url(#puc-icon-id__a)'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-slider' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M0 10h11m0 0a2 2 0 1 0 4 0m-4 0a2 2 0 1 1 4 0m0 0h5'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-tuning' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M8 10h11M1 10h4M1 4.5h11m3 0h4m-18 11h11m3 0h4m-7-11a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0m7 5.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-vibrance' xmlns='http://www.w3.org/2000/svg'><path d='M2.125 5.64A8.96 8.96 0 0 0 1.001 10a8.96 8.96 0 0 0 1.124 4.36V5.64z' fill='url(#suc-icon-id__a)'/><path d='M2.875 15.499V4.502a9.053 9.053 0 0 1 1.75-1.72v14.437a9.05 9.05 0 0 1-1.75-1.72z' fill='url(#suc-icon-id__b)'/><path d='M5.375 17.722c.548.33 1.134.601 1.75.809V1.469a8.956 8.956 0 0 0-1.75.81v15.443z' fill='url(#suc-icon-id__c)'/><path d='M7.875 1.253v17.495c.564.136 1.15.22 1.75.244V1.008a9 9 0 0 0-1.75.245z' fill='url(#suc-icon-id__d)'/><path d='M10.375 1.008v17.984a9 9 0 0 0 1.75-.244V1.252a9 9 0 0 0-1.75-.244z' fill='url(#suc-icon-id__e)'/><path d='M12.875 1.469V18.53a8.957 8.957 0 0 0 1.75-.808V2.277a8.957 8.957 0 0 0-1.75-.808z' fill='url(#suc-icon-id__f)'/><path d='M15.375 2.78v14.44a9.053 9.053 0 0 0 1.75-1.72v-11a9.054 9.054 0 0 0-1.75-1.72z' fill='url(#suc-icon-id__g)'/><path d='M17.875 5.638v8.724A8.959 8.959 0 0 0 19.001 10a8.96 8.96 0 0 0-1.126-4.362z' fill='url(#suc-icon-id__h)'/><defs><linearGradient id='suc-icon-id__a' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__b' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__c' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__d' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__e' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__f' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__g' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__h' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs></symbol><symbol viewBox='0 0 20 20' id='uc-icon-warmth' xmlns='http://www.w3.org/2000/svg'><path d='m7.5 13.05.429.42.171-.175v-.244h-.6zm5 0h-.6v.245l.172.175.428-.42zM8.1 3.5c0-1.05.85-1.9 1.9-1.9V.4a3.1 3.1 0 0 0-3.1 3.1h1.2zm0 9.55V3.5H6.9v9.55h1.2zm-1 2.45c0-.79.315-1.506.829-2.03l-.858-.84A4.088 4.088 0 0 0 5.9 15.5h1.2zm2.9 2.9a2.9 2.9 0 0 1-2.9-2.9H5.9a4.1 4.1 0 0 0 4.1 4.1v-1.2zm2.9-2.9a2.9 2.9 0 0 1-2.9 2.9v1.2a4.1 4.1 0 0 0 4.1-4.1h-1.2zm-.829-2.03c.514.524.829 1.24.829 2.03h1.2c0-1.117-.447-2.13-1.171-2.87l-.858.84zM11.9 3.5v9.55h1.2V3.5h-1.2zM10 1.6c1.05 0 1.9.85 1.9 1.9h1.2A3.1 3.1 0 0 0 10 .4v1.2z' fill='currentColor'/><path d='M10 14V8' stroke='currentColor' stroke-width='1.2' stroke-linecap='round'/><path d='M14 3h3m-3 3h3m-3 3h3m-8 6.5a1 1 0 1 0 2 0 1 1 0 1 0-2 0' stroke='currentColor' stroke-width='1.2'/></symbol></svg>
|
|
145
|
+
<div class="uc-wrapper uc-wrapper_desktop">
|
|
146
|
+
<uc-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
|
|
147
|
+
<div class="uc-network_problems_content">
|
|
148
|
+
<div class="uc-network_problems_icon">
|
|
149
|
+
<uc-icon name="sad"></uc-icon>
|
|
150
|
+
</div>
|
|
151
|
+
<div class="uc-network_problems_text">Network error</div>
|
|
152
|
+
</div>
|
|
153
|
+
<div class="uc-network_problems_footer">
|
|
154
|
+
<uc-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></uc-btn-ui>
|
|
155
|
+
</div>
|
|
156
|
+
</uc-presence-toggle>
|
|
157
|
+
<div class="uc-viewport">
|
|
158
|
+
<div class="uc-file_type_outer">
|
|
159
|
+
<div class="uc-file_type">{{fileType}}</div>
|
|
160
|
+
</div>
|
|
161
|
+
<div class="uc-image_container" ref="img-container-el">
|
|
162
|
+
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" class="uc-image uc-image_visible_from_editor" ref="img-el" />
|
|
163
|
+
<uc-editor-image-cropper ref="cropper-el"></uc-editor-image-cropper>
|
|
164
|
+
<uc-editor-image-fader ref="fader-el"></uc-editor-image-fader>
|
|
165
|
+
</div>
|
|
166
|
+
<div class="uc-info_pan">{{msg}}</div>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="uc-toolbar">
|
|
169
|
+
<uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
|
|
170
|
+
<div class="uc-toolbar_content uc-toolbar_content__editor">
|
|
171
|
+
<uc-editor-toolbar></uc-editor-toolbar>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
`;
|
|
176
|
+
static observedAttributes = ["uuid", "cdn-url", "crop-preset", "tabs"];
|
|
177
|
+
static reg = () => {};
|
|
178
|
+
static is = `sym-1`;
|
|
179
|
+
static bindAttributes = () => {};
|
|
180
|
+
};
|
|
181
|
+
export const CloudImageEditorActivity = class {
|
|
182
|
+
static extSrcList = {
|
|
183
|
+
FACEBOOK: "facebook",
|
|
184
|
+
DROPBOX: "dropbox",
|
|
185
|
+
GDRIVE: "gdrive",
|
|
186
|
+
GPHOTOS: "gphotos",
|
|
187
|
+
INSTAGRAM: "instagram",
|
|
188
|
+
FLICKR: "flickr",
|
|
189
|
+
VK: "vk",
|
|
190
|
+
EVERNOTE: "evernote",
|
|
191
|
+
BOX: "box",
|
|
192
|
+
ONEDRIVE: "onedrive",
|
|
193
|
+
HUDDLE: "huddle",
|
|
194
|
+
};
|
|
195
|
+
static sourceTypes = {
|
|
196
|
+
LOCAL: "local",
|
|
197
|
+
URL: "url",
|
|
198
|
+
CAMERA: "camera",
|
|
199
|
+
DRAW: "draw",
|
|
200
|
+
FACEBOOK: "facebook",
|
|
201
|
+
DROPBOX: "dropbox",
|
|
202
|
+
GDRIVE: "gdrive",
|
|
203
|
+
GPHOTOS: "gphotos",
|
|
204
|
+
INSTAGRAM: "instagram",
|
|
205
|
+
FLICKR: "flickr",
|
|
206
|
+
VK: "vk",
|
|
207
|
+
EVERNOTE: "evernote",
|
|
208
|
+
BOX: "box",
|
|
209
|
+
ONEDRIVE: "onedrive",
|
|
210
|
+
HUDDLE: "huddle",
|
|
211
|
+
};
|
|
212
|
+
static activities = {
|
|
213
|
+
START_FROM: "start-from",
|
|
214
|
+
CAMERA: "camera",
|
|
215
|
+
DRAW: "draw",
|
|
216
|
+
UPLOAD_LIST: "upload-list",
|
|
217
|
+
URL: "url",
|
|
218
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
219
|
+
EXTERNAL: "external",
|
|
220
|
+
DETAILS: "details",
|
|
221
|
+
};
|
|
222
|
+
static reg = () => {};
|
|
223
|
+
static styleAttrs = [];
|
|
224
|
+
static is = `sym-1`;
|
|
225
|
+
static bindAttributes = () => {};
|
|
226
|
+
};
|
|
227
|
+
export const CloudImageEditorBlock = class {
|
|
228
|
+
static styleAttrs = [];
|
|
229
|
+
static template = `
|
|
230
|
+
<svg width='0' height='0' style='position:absolute'><symbol viewBox='0 0 20 20' id='uc-icon-brightness' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M15 10a5 5 0 0 1-5 5m5-5a5 5 0 0 0-5-5m5 5h-5m0 5a5 5 0 0 1 0-10m0 10V5m0 15v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05m-.626 2.45H10m4.324 5H10'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-closeMax' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M8.232 10 3.585 5.353l1.768-1.768L10 8.232l4.648-4.647 1.767 1.768L11.768 10l4.647 4.648-1.767 1.767L10 11.768l-4.647 4.647-1.768-1.767L8.232 10Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-contrast' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 10a8 8 0 1 0 16 0 8 8 0 1 0-16 0m8-8v16m8-8h-8m7.598 2.5H10m6.24 2.5H10m7.6-7.5H10M16.242 5H10'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-crop' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M20 14H7.005C6.45 14 6 13.55 6 12.995V0M0 6h13.067c.515 0 .933.418.933.933V20M14.5.4 13 2l1.5 1.6M13 2h2a3 3 0 0 1 3 3v2M5.5 19.6 7 18l-1.5-1.6M7 18H5a3 3 0 0 1-3-3v-2'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-done' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='m18.057 6.333-9.365 9.125a1.25 1.25 0 0 1-1.768-.023L1.92 10.296l1.791-1.744 4.132 4.243 8.47-8.253 1.744 1.79Z' clip-rule='evenodd'/></symbol><symbol fill='currentColor' viewBox='0 0 25 24' id='uc-icon-edit-file' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M18.558 2.804a.78.78 0 0 0-.557.235l-.008.007-2.472 2.46 3.847 3.848 2.46-2.473.004-.003a.78.78 0 0 0 0-1.108l-.004-.003-2.712-2.728a.78.78 0 0 0-.558-.235Zm-.248 7.613-3.852-3.852-8.93 8.887-1.516 5.41 5.41-1.515 8.888-8.93Zm-.636-8.934a2.28 2.28 0 0 1 2.512.505l2.702 2.717.002.002a2.278 2.278 0 0 1 0 3.234l-.002.002-12.541 12.602a.75.75 0 0 1-.33.193l-6.884 1.928a.75.75 0 0 1-.925-.924l1.928-6.885a.75.75 0 0 1 .193-.33l12.603-12.54a2.28 2.28 0 0 1 .742-.504Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-enhance' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19 13h-2m0 0a4 4 0 0 1-4-4m4 4a4 4 0 0 0-4 4m0-8V7m0 2a4 4 0 0 1-4 4m-2 0h2m0 0a4 4 0 0 1 4 4m0 0v2M8 8.5H6.5m0 0a2 2 0 0 1-2-2m2 2a2 2 0 0 0-2 2m0-4V5m0 1.5a2 2 0 0 1-2 2M1 8.5h1.5m0 0a2 2 0 0 1 2 2m0 0V12M12 3h-1m0 0a1 1 0 0 1-1-1m1 1a1 1 0 0 0-1 1m0-2V1m0 1a1 1 0 0 1-1 1M8 3h1m0 0a1 1 0 0 1 1 1m0 0v1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-exposure' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M10 20v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05M5 10a5 5 0 1 0 10 0 5 5 0 1 0-10 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-filters' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M4.5 6.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m-3.5 6a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m7 0a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-flip' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19.6 5 18 3.5 16.4 5m3.2 10L18 16.5 16.4 15M18 3.523v12.954M3.3 8.5h10.654c.301 0 .415-.395.159-.554L3.459 1.286A.3.3 0 0 0 3 1.542V8.2a.3.3 0 0 0 .3.3zm0 3h10.654c.301 0 .415.395.159.554l-10.654 6.66A.3.3 0 0 1 3 18.458v-6.66a.3.3 0 0 1 .3-.3z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-gamma' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M17 3C9 6 2.5 11.5 2.5 17.5m0 0h1m-1 0v-1m14 1h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3-14v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-mirror' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M5 .4 3.5 2 5 3.6M15 .4 16.5 2 15 3.6M3.52 2h12.957M8.5 16.7V6.046c0-.301-.394-.415-.554-.159L1.287 16.541a.3.3 0 0 0 .255.459H8.2a.3.3 0 0 0 .3-.3zm3 0V6.046c0-.301.395-.415.555-.159l6.659 10.654a.3.3 0 0 1-.255.459H11.8a.3.3 0 0 1-.3-.3z'/></symbol><symbol viewBox='0 0 40 40' id='uc-icon-original' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.5' d='M0 40 40 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-rotate' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M13.5.4 12 2l1.5 1.6M12.023 2H14.4A3.6 3.6 0 0 1 18 5.6V8M4 17h9a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-sad' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 17c4.418-4 11.582-4 16 0M16.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-11 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-saturation' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient id='puc-icon-id__a' x1='10.001' y1='1' x2='10.001' y2='19' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs><circle cx='10.001' cy='10' r='9' transform='rotate(90 10 10)' fill='url(#puc-icon-id__a)'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-slider' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M0 10h11m0 0a2 2 0 1 0 4 0m-4 0a2 2 0 1 1 4 0m0 0h5'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-tuning' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M8 10h11M1 10h4M1 4.5h11m3 0h4m-18 11h11m3 0h4m-7-11a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0m7 5.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-vibrance' xmlns='http://www.w3.org/2000/svg'><path d='M2.125 5.64A8.96 8.96 0 0 0 1.001 10a8.96 8.96 0 0 0 1.124 4.36V5.64z' fill='url(#suc-icon-id__a)'/><path d='M2.875 15.499V4.502a9.053 9.053 0 0 1 1.75-1.72v14.437a9.05 9.05 0 0 1-1.75-1.72z' fill='url(#suc-icon-id__b)'/><path d='M5.375 17.722c.548.33 1.134.601 1.75.809V1.469a8.956 8.956 0 0 0-1.75.81v15.443z' fill='url(#suc-icon-id__c)'/><path d='M7.875 1.253v17.495c.564.136 1.15.22 1.75.244V1.008a9 9 0 0 0-1.75.245z' fill='url(#suc-icon-id__d)'/><path d='M10.375 1.008v17.984a9 9 0 0 0 1.75-.244V1.252a9 9 0 0 0-1.75-.244z' fill='url(#suc-icon-id__e)'/><path d='M12.875 1.469V18.53a8.957 8.957 0 0 0 1.75-.808V2.277a8.957 8.957 0 0 0-1.75-.808z' fill='url(#suc-icon-id__f)'/><path d='M15.375 2.78v14.44a9.053 9.053 0 0 0 1.75-1.72v-11a9.054 9.054 0 0 0-1.75-1.72z' fill='url(#suc-icon-id__g)'/><path d='M17.875 5.638v8.724A8.959 8.959 0 0 0 19.001 10a8.96 8.96 0 0 0-1.126-4.362z' fill='url(#suc-icon-id__h)'/><defs><linearGradient id='suc-icon-id__a' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__b' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__c' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__d' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__e' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__f' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__g' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__h' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs></symbol><symbol viewBox='0 0 20 20' id='uc-icon-warmth' xmlns='http://www.w3.org/2000/svg'><path d='m7.5 13.05.429.42.171-.175v-.244h-.6zm5 0h-.6v.245l.172.175.428-.42zM8.1 3.5c0-1.05.85-1.9 1.9-1.9V.4a3.1 3.1 0 0 0-3.1 3.1h1.2zm0 9.55V3.5H6.9v9.55h1.2zm-1 2.45c0-.79.315-1.506.829-2.03l-.858-.84A4.088 4.088 0 0 0 5.9 15.5h1.2zm2.9 2.9a2.9 2.9 0 0 1-2.9-2.9H5.9a4.1 4.1 0 0 0 4.1 4.1v-1.2zm2.9-2.9a2.9 2.9 0 0 1-2.9 2.9v1.2a4.1 4.1 0 0 0 4.1-4.1h-1.2zm-.829-2.03c.514.524.829 1.24.829 2.03h1.2c0-1.117-.447-2.13-1.171-2.87l-.858.84zM11.9 3.5v9.55h1.2V3.5h-1.2zM10 1.6c1.05 0 1.9.85 1.9 1.9h1.2A3.1 3.1 0 0 0 10 .4v1.2z' fill='currentColor'/><path d='M10 14V8' stroke='currentColor' stroke-width='1.2' stroke-linecap='round'/><path d='M14 3h3m-3 3h3m-3 3h3m-8 6.5a1 1 0 1 0 2 0 1 1 0 1 0-2 0' stroke='currentColor' stroke-width='1.2'/></symbol></svg>
|
|
231
|
+
<div class="uc-wrapper uc-wrapper_desktop">
|
|
232
|
+
<uc-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
|
|
233
|
+
<div class="uc-network_problems_content">
|
|
234
|
+
<div class="uc-network_problems_icon">
|
|
235
|
+
<uc-icon name="sad"></uc-icon>
|
|
236
|
+
</div>
|
|
237
|
+
<div class="uc-network_problems_text">Network error</div>
|
|
238
|
+
</div>
|
|
239
|
+
<div class="uc-network_problems_footer">
|
|
240
|
+
<uc-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></uc-btn-ui>
|
|
241
|
+
</div>
|
|
242
|
+
</uc-presence-toggle>
|
|
243
|
+
<div class="uc-viewport">
|
|
244
|
+
<div class="uc-file_type_outer">
|
|
245
|
+
<div class="uc-file_type">{{fileType}}</div>
|
|
246
|
+
</div>
|
|
247
|
+
<div class="uc-image_container" ref="img-container-el">
|
|
248
|
+
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" class="uc-image uc-image_visible_from_editor" ref="img-el" />
|
|
249
|
+
<uc-editor-image-cropper ref="cropper-el"></uc-editor-image-cropper>
|
|
250
|
+
<uc-editor-image-fader ref="fader-el"></uc-editor-image-fader>
|
|
251
|
+
</div>
|
|
252
|
+
<div class="uc-info_pan">{{msg}}</div>
|
|
253
|
+
</div>
|
|
254
|
+
<div class="uc-toolbar">
|
|
255
|
+
<uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
|
|
256
|
+
<div class="uc-toolbar_content uc-toolbar_content__editor">
|
|
257
|
+
<uc-editor-toolbar></uc-editor-toolbar>
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
</div>
|
|
261
|
+
`;
|
|
262
|
+
static observedAttributes = ["uuid", "cdn-url", "crop-preset", "tabs"];
|
|
263
|
+
static reg = () => {};
|
|
264
|
+
static is = `sym-1`;
|
|
265
|
+
static bindAttributes = () => {};
|
|
266
|
+
};
|
|
267
|
+
export const Config = class {
|
|
268
|
+
static observedAttributes = [
|
|
269
|
+
"debug",
|
|
270
|
+
"pubkey",
|
|
271
|
+
"multiple",
|
|
272
|
+
"multiple-min",
|
|
273
|
+
"multiple-max",
|
|
274
|
+
"confirm-upload",
|
|
275
|
+
"img-only",
|
|
276
|
+
"accept",
|
|
277
|
+
"external-sources-preferred-types",
|
|
278
|
+
"store",
|
|
279
|
+
"camera-mirror",
|
|
280
|
+
"camera-capture",
|
|
281
|
+
"source-list",
|
|
282
|
+
"cloud-image-editor-tabs",
|
|
283
|
+
"max-local-file-size-bytes",
|
|
284
|
+
"thumb-size",
|
|
285
|
+
"show-empty-list",
|
|
286
|
+
"use-local-image-editor",
|
|
287
|
+
"use-cloud-image-editor",
|
|
288
|
+
"remove-copyright",
|
|
289
|
+
"crop-preset",
|
|
290
|
+
"image-shrink",
|
|
291
|
+
"modal-scroll-lock",
|
|
292
|
+
"modal-backdrop-strokes",
|
|
293
|
+
"source-list-wrap",
|
|
294
|
+
"remote-tab-session-key",
|
|
295
|
+
"cdn-cname",
|
|
296
|
+
"base-url",
|
|
297
|
+
"social-base-url",
|
|
298
|
+
"secure-signature",
|
|
299
|
+
"secure-expire",
|
|
300
|
+
"secure-delivery-proxy",
|
|
301
|
+
"retry-throttled-request-max-times",
|
|
302
|
+
"multipart-min-file-size",
|
|
303
|
+
"multipart-chunk-size",
|
|
304
|
+
"max-concurrent-requests",
|
|
305
|
+
"multipart-max-concurrent-requests",
|
|
306
|
+
"multipart-max-attempts",
|
|
307
|
+
"check-for-url-duplicates",
|
|
308
|
+
"save-url-for-recurrent-uploads",
|
|
309
|
+
"group-output",
|
|
310
|
+
"user-agent-integration",
|
|
311
|
+
"locale-name",
|
|
312
|
+
"secure-uploads-expire-threshold",
|
|
313
|
+
"multiplemin",
|
|
314
|
+
"multiplemax",
|
|
315
|
+
"confirmupload",
|
|
316
|
+
"imgonly",
|
|
317
|
+
"externalsourcespreferredtypes",
|
|
318
|
+
"cameramirror",
|
|
319
|
+
"cameracapture",
|
|
320
|
+
"sourcelist",
|
|
321
|
+
"cloudimageeditortabs",
|
|
322
|
+
"maxlocalfilesizebytes",
|
|
323
|
+
"thumbsize",
|
|
324
|
+
"showemptylist",
|
|
325
|
+
"uselocalimageeditor",
|
|
326
|
+
"usecloudimageeditor",
|
|
327
|
+
"removecopyright",
|
|
328
|
+
"croppreset",
|
|
329
|
+
"imageshrink",
|
|
330
|
+
"modalscrolllock",
|
|
331
|
+
"modalbackdropstrokes",
|
|
332
|
+
"sourcelistwrap",
|
|
333
|
+
"remotetabsessionkey",
|
|
334
|
+
"cdncname",
|
|
335
|
+
"baseurl",
|
|
336
|
+
"socialbaseurl",
|
|
337
|
+
"securesignature",
|
|
338
|
+
"secureexpire",
|
|
339
|
+
"securedeliveryproxy",
|
|
340
|
+
"retrythrottledrequestmaxtimes",
|
|
341
|
+
"multipartminfilesize",
|
|
342
|
+
"multipartchunksize",
|
|
343
|
+
"maxconcurrentrequests",
|
|
344
|
+
"multipartmaxconcurrentrequests",
|
|
345
|
+
"multipartmaxattempts",
|
|
346
|
+
"checkforurlduplicates",
|
|
347
|
+
"saveurlforrecurrentuploads",
|
|
348
|
+
"groupoutput",
|
|
349
|
+
"useragentintegration",
|
|
350
|
+
"localename",
|
|
351
|
+
"secureuploadsexpirethreshold",
|
|
352
|
+
];
|
|
353
|
+
static reg = () => {};
|
|
354
|
+
static styleAttrs = [];
|
|
355
|
+
static is = `sym-1`;
|
|
356
|
+
static bindAttributes = () => {};
|
|
357
|
+
};
|
|
358
|
+
export const Copyright = class {
|
|
359
|
+
static template = `
|
|
360
|
+
<a
|
|
361
|
+
href="https://uploadcare.com/?utm_source=copyright&utm_medium=referral&utm_campaign=v4"
|
|
362
|
+
target="_blank noopener"
|
|
363
|
+
class="uc-credits"
|
|
364
|
+
>Powered by Uploadcare</a
|
|
365
|
+
>
|
|
366
|
+
`;
|
|
367
|
+
static reg = () => {};
|
|
368
|
+
static styleAttrs = [];
|
|
369
|
+
static is = `sym-1`;
|
|
370
|
+
static bindAttributes = () => {};
|
|
371
|
+
};
|
|
372
|
+
export const CropFrame = class {
|
|
373
|
+
static template = ` <svg class="uc-svg" ref="svg-el" xmlns="http://www.w3.org/2000/svg"></svg> `;
|
|
374
|
+
static reg = () => {};
|
|
375
|
+
static styleAttrs = [];
|
|
376
|
+
static is = `sym-1`;
|
|
377
|
+
static bindAttributes = () => {};
|
|
378
|
+
};
|
|
379
|
+
export const Data = class {
|
|
380
|
+
static warn = () => {};
|
|
381
|
+
static registerCtx = () => {};
|
|
382
|
+
static deleteCtx = () => {};
|
|
383
|
+
static getCtx = () => {};
|
|
384
|
+
static globalStore = {};
|
|
385
|
+
static apply = () => {};
|
|
386
|
+
static bind = () => {};
|
|
387
|
+
static call = () => {};
|
|
388
|
+
static toString = () => {};
|
|
389
|
+
static hasOwnProperty = () => {};
|
|
390
|
+
static isPrototypeOf = () => {};
|
|
391
|
+
static propertyIsEnumerable = () => {};
|
|
392
|
+
static valueOf = () => {};
|
|
393
|
+
static toLocaleString = () => {};
|
|
394
|
+
};
|
|
395
|
+
export const DropArea = class {
|
|
396
|
+
static styleAttrs = [];
|
|
397
|
+
static template = `
|
|
398
|
+
<slot>
|
|
399
|
+
<div data-default-slot hidden></div>
|
|
400
|
+
<div ref="content-wrapper" class="uc-content-wrapper" set="@hidden: !isVisible">
|
|
401
|
+
<div class="uc-icon-container" set="@hidden: !withIcon">
|
|
402
|
+
<uc-icon name="default"></uc-icon>
|
|
403
|
+
<uc-icon name="arrow-down"></uc-icon>
|
|
404
|
+
</div>
|
|
405
|
+
<span class="uc-text">{{text}}</span>
|
|
406
|
+
</div>
|
|
407
|
+
</slot>
|
|
408
|
+
`;
|
|
409
|
+
static observedAttributes = [
|
|
410
|
+
"with-icon",
|
|
411
|
+
"clickable",
|
|
412
|
+
"text",
|
|
413
|
+
"fullscreen",
|
|
414
|
+
"disabled",
|
|
415
|
+
];
|
|
416
|
+
static extSrcList = {
|
|
417
|
+
FACEBOOK: "facebook",
|
|
418
|
+
DROPBOX: "dropbox",
|
|
419
|
+
GDRIVE: "gdrive",
|
|
420
|
+
GPHOTOS: "gphotos",
|
|
421
|
+
INSTAGRAM: "instagram",
|
|
422
|
+
FLICKR: "flickr",
|
|
423
|
+
VK: "vk",
|
|
424
|
+
EVERNOTE: "evernote",
|
|
425
|
+
BOX: "box",
|
|
426
|
+
ONEDRIVE: "onedrive",
|
|
427
|
+
HUDDLE: "huddle",
|
|
428
|
+
};
|
|
429
|
+
static sourceTypes = {
|
|
430
|
+
LOCAL: "local",
|
|
431
|
+
URL: "url",
|
|
432
|
+
CAMERA: "camera",
|
|
433
|
+
DRAW: "draw",
|
|
434
|
+
FACEBOOK: "facebook",
|
|
435
|
+
DROPBOX: "dropbox",
|
|
436
|
+
GDRIVE: "gdrive",
|
|
437
|
+
GPHOTOS: "gphotos",
|
|
438
|
+
INSTAGRAM: "instagram",
|
|
439
|
+
FLICKR: "flickr",
|
|
440
|
+
VK: "vk",
|
|
441
|
+
EVERNOTE: "evernote",
|
|
442
|
+
BOX: "box",
|
|
443
|
+
ONEDRIVE: "onedrive",
|
|
444
|
+
HUDDLE: "huddle",
|
|
445
|
+
};
|
|
446
|
+
static activities = {
|
|
447
|
+
START_FROM: "start-from",
|
|
448
|
+
CAMERA: "camera",
|
|
449
|
+
DRAW: "draw",
|
|
450
|
+
UPLOAD_LIST: "upload-list",
|
|
451
|
+
URL: "url",
|
|
452
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
453
|
+
EXTERNAL: "external",
|
|
454
|
+
DETAILS: "details",
|
|
455
|
+
};
|
|
456
|
+
static reg = () => {};
|
|
457
|
+
static is = `sym-1`;
|
|
458
|
+
static bindAttributes = () => {};
|
|
459
|
+
};
|
|
460
|
+
export const EditorCropButtonControl = class {
|
|
461
|
+
static template = `
|
|
462
|
+
<button type="button" role="option">
|
|
463
|
+
<uc-icon set="@name: icon;"></uc-icon>
|
|
464
|
+
<div class="uc-title" ref="title-el">{{title}}</div>
|
|
465
|
+
</button>
|
|
466
|
+
`;
|
|
467
|
+
static reg = () => {};
|
|
468
|
+
static styleAttrs = [];
|
|
469
|
+
static is = `sym-1`;
|
|
470
|
+
static bindAttributes = () => {};
|
|
471
|
+
};
|
|
472
|
+
export const EditorFilterControl = class {
|
|
473
|
+
static template = `
|
|
474
|
+
<button type="button" role="option">
|
|
475
|
+
<uc-icon set="@name: icon;"></uc-icon>
|
|
476
|
+
<div class="uc-title" ref="title-el">{{title}}</div>
|
|
477
|
+
</button>
|
|
478
|
+
`;
|
|
479
|
+
static reg = () => {};
|
|
480
|
+
static styleAttrs = [];
|
|
481
|
+
static is = `sym-1`;
|
|
482
|
+
static bindAttributes = () => {};
|
|
483
|
+
};
|
|
484
|
+
export const EditorImageCropper = class {
|
|
485
|
+
static template = `
|
|
486
|
+
<canvas class="uc-canvas" ref="canvas-el"></canvas>
|
|
487
|
+
<uc-crop-frame ref="frame-el"></uc-crop-frame>
|
|
488
|
+
`;
|
|
489
|
+
static reg = () => {};
|
|
490
|
+
static styleAttrs = [];
|
|
491
|
+
static is = `sym-1`;
|
|
492
|
+
static bindAttributes = () => {};
|
|
493
|
+
};
|
|
494
|
+
export const EditorImageFader = class {
|
|
495
|
+
static reg = () => {};
|
|
496
|
+
static styleAttrs = [];
|
|
497
|
+
static is = `sym-1`;
|
|
498
|
+
static bindAttributes = () => {};
|
|
499
|
+
};
|
|
500
|
+
export const EditorOperationControl = class {
|
|
501
|
+
static template = `
|
|
502
|
+
<button type="button" role="option">
|
|
503
|
+
<uc-icon set="@name: icon;"></uc-icon>
|
|
504
|
+
<div class="uc-title" ref="title-el">{{title}}</div>
|
|
505
|
+
</button>
|
|
506
|
+
`;
|
|
507
|
+
static reg = () => {};
|
|
508
|
+
static styleAttrs = [];
|
|
509
|
+
static is = `sym-1`;
|
|
510
|
+
static bindAttributes = () => {};
|
|
511
|
+
};
|
|
512
|
+
export const EditorScroller = class {
|
|
513
|
+
static template = ` <slot></slot> `;
|
|
514
|
+
static reg = () => {};
|
|
515
|
+
static styleAttrs = [];
|
|
516
|
+
static is = `sym-1`;
|
|
517
|
+
static bindAttributes = () => {};
|
|
518
|
+
};
|
|
519
|
+
export const EditorSlider = class {
|
|
520
|
+
static template = `
|
|
521
|
+
<uc-slider-ui
|
|
522
|
+
ref="slider-el"
|
|
523
|
+
set="disabled: disabled; min: min; max: max; defaultValue: defaultValue; zero: zero; onInput: on.input;"
|
|
524
|
+
></uc-slider-ui>
|
|
525
|
+
`;
|
|
526
|
+
static reg = () => {};
|
|
527
|
+
static styleAttrs = [];
|
|
528
|
+
static is = `sym-1`;
|
|
529
|
+
static bindAttributes = () => {};
|
|
530
|
+
};
|
|
531
|
+
export const EditorToolbar = class {
|
|
532
|
+
static template = `
|
|
533
|
+
<uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
|
|
534
|
+
<div class="uc-info-tooltip_container">
|
|
535
|
+
<div class="uc-info-tooltip_wrapper">
|
|
536
|
+
<div ref="tooltip-el" class="uc-info-tooltip uc-info-tooltip_hidden">{{*operationTooltip}}</div>
|
|
537
|
+
</div>
|
|
538
|
+
</div>
|
|
539
|
+
<div class="uc-toolbar-container">
|
|
540
|
+
<uc-presence-toggle
|
|
541
|
+
role="tablist"
|
|
542
|
+
class="uc-sub-toolbar"
|
|
543
|
+
set="visible: presence.mainToolbar; styles: presence.subTopToolbarStyles"
|
|
544
|
+
>
|
|
545
|
+
<div class="uc-tab-content-row">
|
|
546
|
+
<uc-presence-toggle
|
|
547
|
+
id="tab_crop"
|
|
548
|
+
class="uc-tab-content"
|
|
549
|
+
set="visible: presence.tabContent.crop; styles: presence.tabContentStyles"
|
|
550
|
+
>
|
|
551
|
+
<uc-editor-scroller hidden-scrollbar>
|
|
552
|
+
<div class="uc-controls-list_align">
|
|
553
|
+
<div
|
|
554
|
+
role="listbox"
|
|
555
|
+
aria-orientation="horizontal"
|
|
556
|
+
class="uc-controls-list_inner"
|
|
557
|
+
ref="controls-list-crop"
|
|
558
|
+
></div>
|
|
559
|
+
</div>
|
|
560
|
+
</uc-editor-scroller>
|
|
561
|
+
</uc-presence-toggle>
|
|
562
|
+
|
|
563
|
+
<uc-presence-toggle
|
|
564
|
+
id="tab_tuning"
|
|
565
|
+
class="uc-tab-content"
|
|
566
|
+
set="visible: presence.tabContent.tuning; styles: presence.tabContentStyles"
|
|
567
|
+
>
|
|
568
|
+
<uc-editor-scroller hidden-scrollbar>
|
|
569
|
+
<div class="uc-controls-list_align">
|
|
570
|
+
<div
|
|
571
|
+
role="listbox"
|
|
572
|
+
aria-orientation="horizontal"
|
|
573
|
+
class="uc-controls-list_inner"
|
|
574
|
+
ref="controls-list-tuning"
|
|
575
|
+
></div>
|
|
576
|
+
</div>
|
|
577
|
+
</uc-editor-scroller>
|
|
578
|
+
</uc-presence-toggle>
|
|
579
|
+
|
|
580
|
+
<uc-presence-toggle
|
|
581
|
+
id="tab_filters"
|
|
582
|
+
class="uc-tab-content"
|
|
583
|
+
set="visible: presence.tabContent.filters; styles: presence.tabContentStyles"
|
|
584
|
+
>
|
|
585
|
+
<uc-editor-scroller hidden-scrollbar>
|
|
586
|
+
<div class="uc-controls-list_align">
|
|
587
|
+
<div
|
|
588
|
+
role="listbox"
|
|
589
|
+
aria-orientation="horizontal"
|
|
590
|
+
class="uc-controls-list_inner"
|
|
591
|
+
ref="controls-list-filters"
|
|
592
|
+
></div>
|
|
593
|
+
</div>
|
|
594
|
+
</uc-editor-scroller>
|
|
595
|
+
</uc-presence-toggle>
|
|
596
|
+
</div>
|
|
597
|
+
<div class="uc-controls-row">
|
|
598
|
+
<uc-presence-toggle
|
|
599
|
+
class="uc-tab-toggles"
|
|
600
|
+
set="visible: presence.tabToggles; styles: presence.tabTogglesStyles"
|
|
601
|
+
>
|
|
602
|
+
<div ref="tabs-indicator" class="uc-tab-toggles_indicator"></div>
|
|
603
|
+
|
|
604
|
+
<uc-presence-toggle
|
|
605
|
+
class="uc-tab-toggle"
|
|
606
|
+
set="visible: presence.tabToggle.crop; styles: presence.tabToggleStyles;"
|
|
607
|
+
>
|
|
608
|
+
<uc-btn-ui
|
|
609
|
+
theme="tab"
|
|
610
|
+
ref="tab-toggle-crop"
|
|
611
|
+
data-id="crop"
|
|
612
|
+
icon="crop"
|
|
613
|
+
set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_crop"
|
|
614
|
+
>
|
|
615
|
+
</uc-btn-ui>
|
|
616
|
+
</uc-presence-toggle>
|
|
617
|
+
|
|
618
|
+
<uc-presence-toggle
|
|
619
|
+
class="uc-tab-toggle"
|
|
620
|
+
set="visible: presence.tabToggle.tuning; styles: presence.tabToggleStyles;"
|
|
621
|
+
>
|
|
622
|
+
<uc-btn-ui
|
|
623
|
+
theme="tab"
|
|
624
|
+
ref="tab-toggle-tuning"
|
|
625
|
+
data-id="tuning"
|
|
626
|
+
icon="tuning"
|
|
627
|
+
set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_tuning"
|
|
628
|
+
>
|
|
629
|
+
</uc-btn-ui>
|
|
630
|
+
</uc-presence-toggle>
|
|
631
|
+
|
|
632
|
+
<uc-presence-toggle
|
|
633
|
+
class="uc-tab-toggle"
|
|
634
|
+
set="visible: presence.tabToggle.filters; styles: presence.tabToggleStyles;"
|
|
635
|
+
>
|
|
636
|
+
<uc-btn-ui
|
|
637
|
+
theme="tab"
|
|
638
|
+
ref="tab-toggle-filters"
|
|
639
|
+
data-id="filters"
|
|
640
|
+
icon="filters"
|
|
641
|
+
set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_filters"
|
|
642
|
+
>
|
|
643
|
+
</uc-btn-ui>
|
|
644
|
+
</uc-presence-toggle>
|
|
645
|
+
|
|
646
|
+
</uc-presence-toggle>
|
|
647
|
+
<uc-btn-ui style="order: -1" theme="secondary-icon" icon="closeMax" set="onclick: on.cancel"> </uc-btn-ui>
|
|
648
|
+
<uc-btn-ui theme="primary-icon" icon="done" set="onclick: on.apply"> </uc-btn-ui>
|
|
649
|
+
</div>
|
|
650
|
+
</uc-presence-toggle>
|
|
651
|
+
<uc-presence-toggle
|
|
652
|
+
class="uc-sub-toolbar"
|
|
653
|
+
set="visible: presence.subToolbar; styles: presence.subBottomToolbarStyles"
|
|
654
|
+
>
|
|
655
|
+
<div class="uc-slider">
|
|
656
|
+
<uc-editor-slider ref="slider-el"></uc-editor-slider>
|
|
657
|
+
</div>
|
|
658
|
+
<div class="uc-controls-row">
|
|
659
|
+
<uc-btn-ui theme="secondary" set="onclick: on.cancelSlider;" l10n="@text:cancel"> </uc-btn-ui>
|
|
660
|
+
<uc-btn-ui theme="primary" set="onclick: on.applySlider;" l10n="@text:apply"> </uc-btn-ui>
|
|
661
|
+
</div>
|
|
662
|
+
</uc-presence-toggle>
|
|
663
|
+
</div>
|
|
664
|
+
`;
|
|
665
|
+
static reg = () => {};
|
|
666
|
+
static styleAttrs = [];
|
|
667
|
+
static is = `sym-1`;
|
|
668
|
+
static bindAttributes = () => {};
|
|
669
|
+
};
|
|
670
|
+
export const ExternalSource = class {
|
|
671
|
+
static template = `
|
|
672
|
+
<uc-activity-header>
|
|
673
|
+
<button type="button" class="uc-mini-btn" set="onclick: *historyBack">
|
|
674
|
+
<uc-icon name="back"></uc-icon>
|
|
675
|
+
</button>
|
|
676
|
+
<div>
|
|
677
|
+
<uc-icon set="@name: activityIcon"></uc-icon>
|
|
678
|
+
<span>{{activityCaption}}</span>
|
|
679
|
+
</div>
|
|
680
|
+
<button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *historyBack">
|
|
681
|
+
<uc-icon name="close"></uc-icon>
|
|
682
|
+
</button>
|
|
683
|
+
</uc-activity-header>
|
|
684
|
+
<div class="uc-content">
|
|
685
|
+
<div ref="iframeWrapper" class="uc-iframe-wrapper"></div>
|
|
686
|
+
<div class="uc-toolbar">
|
|
687
|
+
<button type="button" class="uc-cancel-btn uc-secondary-btn" set="onclick: onCancel" l10n="cancel"></button>
|
|
688
|
+
<div></div>
|
|
689
|
+
<div set="@hidden: !multiple" class="uc-selected-counter"><span l10n="selected-count"></span>{{counter}}</div>
|
|
690
|
+
<button
|
|
691
|
+
type="button"
|
|
692
|
+
class="uc-done-btn uc-primary-btn"
|
|
693
|
+
set="onclick: onDone; @disabled: !counter"
|
|
694
|
+
l10n="done"
|
|
695
|
+
></button>
|
|
696
|
+
</div>
|
|
697
|
+
</div>
|
|
698
|
+
`;
|
|
699
|
+
static extSrcList = {
|
|
700
|
+
FACEBOOK: "facebook",
|
|
701
|
+
DROPBOX: "dropbox",
|
|
702
|
+
GDRIVE: "gdrive",
|
|
703
|
+
GPHOTOS: "gphotos",
|
|
704
|
+
INSTAGRAM: "instagram",
|
|
705
|
+
FLICKR: "flickr",
|
|
706
|
+
VK: "vk",
|
|
707
|
+
EVERNOTE: "evernote",
|
|
708
|
+
BOX: "box",
|
|
709
|
+
ONEDRIVE: "onedrive",
|
|
710
|
+
HUDDLE: "huddle",
|
|
711
|
+
};
|
|
712
|
+
static sourceTypes = {
|
|
713
|
+
LOCAL: "local",
|
|
714
|
+
URL: "url",
|
|
715
|
+
CAMERA: "camera",
|
|
716
|
+
DRAW: "draw",
|
|
717
|
+
FACEBOOK: "facebook",
|
|
718
|
+
DROPBOX: "dropbox",
|
|
719
|
+
GDRIVE: "gdrive",
|
|
720
|
+
GPHOTOS: "gphotos",
|
|
721
|
+
INSTAGRAM: "instagram",
|
|
722
|
+
FLICKR: "flickr",
|
|
723
|
+
VK: "vk",
|
|
724
|
+
EVERNOTE: "evernote",
|
|
725
|
+
BOX: "box",
|
|
726
|
+
ONEDRIVE: "onedrive",
|
|
727
|
+
HUDDLE: "huddle",
|
|
728
|
+
};
|
|
729
|
+
static activities = {
|
|
730
|
+
START_FROM: "start-from",
|
|
731
|
+
CAMERA: "camera",
|
|
732
|
+
DRAW: "draw",
|
|
733
|
+
UPLOAD_LIST: "upload-list",
|
|
734
|
+
URL: "url",
|
|
735
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
736
|
+
EXTERNAL: "external",
|
|
737
|
+
DETAILS: "details",
|
|
738
|
+
};
|
|
739
|
+
static reg = () => {};
|
|
740
|
+
static styleAttrs = [];
|
|
741
|
+
static is = `sym-1`;
|
|
742
|
+
static bindAttributes = () => {};
|
|
743
|
+
};
|
|
744
|
+
export const FileItem = class {
|
|
745
|
+
static template = `
|
|
746
|
+
<div class="uc-inner" set="@finished: isFinished; @uploading: isUploading; @failed: isFailed; @focused: isFocused">
|
|
747
|
+
<div class="uc-thumb" set="style.backgroundImage: thumbUrl">
|
|
748
|
+
<div class="uc-badge">
|
|
749
|
+
<uc-icon set="@name: badgeIcon"></uc-icon>
|
|
750
|
+
</div>
|
|
751
|
+
</div>
|
|
752
|
+
<div class="uc-file-name-wrapper">
|
|
753
|
+
<span class="uc-file-name" set="@title: itemName">{{itemName}}</span>
|
|
754
|
+
<span class="uc-file-error" set="@hidden: !errorText">{{errorText}}</span>
|
|
755
|
+
</div>
|
|
756
|
+
<div class="uc-file-actions">
|
|
757
|
+
<button
|
|
758
|
+
type="button"
|
|
759
|
+
l10n="@title:file-item-edit-button"
|
|
760
|
+
class="uc-edit-btn uc-mini-btn"
|
|
761
|
+
set="onclick: onEdit; @hidden: !isEditable"
|
|
762
|
+
>
|
|
763
|
+
<uc-icon name="edit-file"></uc-icon>
|
|
764
|
+
</button>
|
|
765
|
+
<button
|
|
766
|
+
type="button"
|
|
767
|
+
l10n="@title:file-item-remove-button"
|
|
768
|
+
class="uc-remove-btn uc-mini-btn"
|
|
769
|
+
set="onclick: onRemove;"
|
|
770
|
+
>
|
|
771
|
+
<uc-icon name="remove-file"></uc-icon>
|
|
772
|
+
</button>
|
|
773
|
+
<button type="button" class="uc-upload-btn uc-mini-btn" set="onclick: onUpload;">
|
|
774
|
+
<uc-icon name="upload"></uc-icon>
|
|
775
|
+
</button>
|
|
776
|
+
</div>
|
|
777
|
+
<uc-progress-bar class="uc-progress-bar" set="value: progressValue; visible: progressVisible;"> </uc-progress-bar>
|
|
778
|
+
</div>
|
|
779
|
+
`;
|
|
780
|
+
static activeInstances = {};
|
|
781
|
+
static extSrcList = {
|
|
782
|
+
FACEBOOK: "facebook",
|
|
783
|
+
DROPBOX: "dropbox",
|
|
784
|
+
GDRIVE: "gdrive",
|
|
785
|
+
GPHOTOS: "gphotos",
|
|
786
|
+
INSTAGRAM: "instagram",
|
|
787
|
+
FLICKR: "flickr",
|
|
788
|
+
VK: "vk",
|
|
789
|
+
EVERNOTE: "evernote",
|
|
790
|
+
BOX: "box",
|
|
791
|
+
ONEDRIVE: "onedrive",
|
|
792
|
+
HUDDLE: "huddle",
|
|
793
|
+
};
|
|
794
|
+
static sourceTypes = {
|
|
795
|
+
LOCAL: "local",
|
|
796
|
+
URL: "url",
|
|
797
|
+
CAMERA: "camera",
|
|
798
|
+
DRAW: "draw",
|
|
799
|
+
FACEBOOK: "facebook",
|
|
800
|
+
DROPBOX: "dropbox",
|
|
801
|
+
GDRIVE: "gdrive",
|
|
802
|
+
GPHOTOS: "gphotos",
|
|
803
|
+
INSTAGRAM: "instagram",
|
|
804
|
+
FLICKR: "flickr",
|
|
805
|
+
VK: "vk",
|
|
806
|
+
EVERNOTE: "evernote",
|
|
807
|
+
BOX: "box",
|
|
808
|
+
ONEDRIVE: "onedrive",
|
|
809
|
+
HUDDLE: "huddle",
|
|
810
|
+
};
|
|
811
|
+
static activities = {
|
|
812
|
+
START_FROM: "start-from",
|
|
813
|
+
CAMERA: "camera",
|
|
814
|
+
DRAW: "draw",
|
|
815
|
+
UPLOAD_LIST: "upload-list",
|
|
816
|
+
URL: "url",
|
|
817
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
818
|
+
EXTERNAL: "external",
|
|
819
|
+
DETAILS: "details",
|
|
820
|
+
};
|
|
821
|
+
static reg = () => {};
|
|
822
|
+
static styleAttrs = [];
|
|
823
|
+
static is = `sym-1`;
|
|
824
|
+
static bindAttributes = () => {};
|
|
825
|
+
};
|
|
826
|
+
export const FileUploaderInline = class {
|
|
827
|
+
static styleAttrs = [];
|
|
828
|
+
static reg = () => {};
|
|
829
|
+
static is = `sym-1`;
|
|
830
|
+
static bindAttributes = () => {};
|
|
831
|
+
};
|
|
832
|
+
export const FileUploaderMinimal = class {
|
|
833
|
+
static styleAttrs = [];
|
|
834
|
+
static reg = () => {};
|
|
835
|
+
static is = `sym-1`;
|
|
836
|
+
static bindAttributes = () => {};
|
|
837
|
+
};
|
|
838
|
+
export const FileUploaderRegular = class {
|
|
839
|
+
static styleAttrs = [];
|
|
840
|
+
static observedAttributes = ["headless"];
|
|
841
|
+
static reg = () => {};
|
|
842
|
+
static is = `sym-1`;
|
|
843
|
+
static bindAttributes = () => {};
|
|
844
|
+
};
|
|
845
|
+
export const FormInput = class {
|
|
846
|
+
static extSrcList = {
|
|
847
|
+
FACEBOOK: "facebook",
|
|
848
|
+
DROPBOX: "dropbox",
|
|
849
|
+
GDRIVE: "gdrive",
|
|
850
|
+
GPHOTOS: "gphotos",
|
|
851
|
+
INSTAGRAM: "instagram",
|
|
852
|
+
FLICKR: "flickr",
|
|
853
|
+
VK: "vk",
|
|
854
|
+
EVERNOTE: "evernote",
|
|
855
|
+
BOX: "box",
|
|
856
|
+
ONEDRIVE: "onedrive",
|
|
857
|
+
HUDDLE: "huddle",
|
|
858
|
+
};
|
|
859
|
+
static sourceTypes = {
|
|
860
|
+
LOCAL: "local",
|
|
861
|
+
URL: "url",
|
|
862
|
+
CAMERA: "camera",
|
|
863
|
+
DRAW: "draw",
|
|
864
|
+
FACEBOOK: "facebook",
|
|
865
|
+
DROPBOX: "dropbox",
|
|
866
|
+
GDRIVE: "gdrive",
|
|
867
|
+
GPHOTOS: "gphotos",
|
|
868
|
+
INSTAGRAM: "instagram",
|
|
869
|
+
FLICKR: "flickr",
|
|
870
|
+
VK: "vk",
|
|
871
|
+
EVERNOTE: "evernote",
|
|
872
|
+
BOX: "box",
|
|
873
|
+
ONEDRIVE: "onedrive",
|
|
874
|
+
HUDDLE: "huddle",
|
|
875
|
+
};
|
|
876
|
+
static activities = {
|
|
877
|
+
START_FROM: "start-from",
|
|
878
|
+
CAMERA: "camera",
|
|
879
|
+
DRAW: "draw",
|
|
880
|
+
UPLOAD_LIST: "upload-list",
|
|
881
|
+
URL: "url",
|
|
882
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
883
|
+
EXTERNAL: "external",
|
|
884
|
+
DETAILS: "details",
|
|
885
|
+
};
|
|
886
|
+
static reg = () => {};
|
|
887
|
+
static styleAttrs = [];
|
|
888
|
+
static is = `sym-1`;
|
|
889
|
+
static bindAttributes = () => {};
|
|
890
|
+
};
|
|
891
|
+
export const Icon = class {
|
|
892
|
+
static template = `
|
|
893
|
+
<svg ref="svg" xmlns="http://www.w3.org/2000/svg">
|
|
894
|
+
<title>{{title}}</title>
|
|
895
|
+
<use set="@href: href;"></use>
|
|
896
|
+
</svg>
|
|
897
|
+
`;
|
|
898
|
+
static observedAttributes = ["name", "title"];
|
|
899
|
+
static reg = () => {};
|
|
900
|
+
static styleAttrs = [];
|
|
901
|
+
static is = `sym-1`;
|
|
902
|
+
static bindAttributes = () => {};
|
|
903
|
+
};
|
|
904
|
+
export const Img = class {
|
|
905
|
+
static observedAttributes = [
|
|
906
|
+
"dev-mode",
|
|
907
|
+
"pubkey",
|
|
908
|
+
"uuid",
|
|
909
|
+
"src",
|
|
910
|
+
"lazy",
|
|
911
|
+
"intersection",
|
|
912
|
+
"breakpoints",
|
|
913
|
+
"cdn-cname",
|
|
914
|
+
"proxy-cname",
|
|
915
|
+
"secure-delivery-proxy",
|
|
916
|
+
"hi-res-support",
|
|
917
|
+
"ultra-res-support",
|
|
918
|
+
"format",
|
|
919
|
+
"cdn-operations",
|
|
920
|
+
"progressive",
|
|
921
|
+
"quality",
|
|
922
|
+
"is-background-for",
|
|
923
|
+
"is-preview-blur",
|
|
924
|
+
];
|
|
925
|
+
static reg = () => {};
|
|
926
|
+
static is = `sym-1`;
|
|
927
|
+
static bindAttributes = () => {};
|
|
928
|
+
};
|
|
929
|
+
export const LineLoaderUi = class {
|
|
930
|
+
static template = `
|
|
931
|
+
<div class="uc-inner">
|
|
932
|
+
<div class="uc-line" ref="line-el"></div>
|
|
933
|
+
</div>
|
|
934
|
+
`;
|
|
935
|
+
static reg = () => {};
|
|
936
|
+
static styleAttrs = [];
|
|
937
|
+
static is = `sym-1`;
|
|
938
|
+
static bindAttributes = () => {};
|
|
939
|
+
};
|
|
940
|
+
export const Modal = class {
|
|
941
|
+
static styleAttrs = [];
|
|
942
|
+
static StateConsumerScope = `modal`;
|
|
943
|
+
static template = `
|
|
944
|
+
<dialog ref="dialog">
|
|
945
|
+
<slot></slot>
|
|
946
|
+
</dialog>
|
|
947
|
+
`;
|
|
948
|
+
static reg = () => {};
|
|
949
|
+
static is = `sym-1`;
|
|
950
|
+
static bindAttributes = () => {};
|
|
951
|
+
};
|
|
952
|
+
export const PACKAGE_NAME = `blocks`;
|
|
953
|
+
export const PACKAGE_VERSION = `0.49.0`;
|
|
954
|
+
export const PresenceToggle = class {
|
|
955
|
+
static template = `<slot></slot> `;
|
|
956
|
+
static reg = () => {};
|
|
957
|
+
static styleAttrs = [];
|
|
958
|
+
static is = `sym-1`;
|
|
959
|
+
static bindAttributes = () => {};
|
|
960
|
+
};
|
|
961
|
+
export const ProgressBar = class {
|
|
962
|
+
static template = ` <div ref="line" class="uc-progress"></div> `;
|
|
963
|
+
static reg = () => {};
|
|
964
|
+
static styleAttrs = [];
|
|
965
|
+
static is = `sym-1`;
|
|
966
|
+
static bindAttributes = () => {};
|
|
967
|
+
};
|
|
968
|
+
export const ProgressBarCommon = class {
|
|
969
|
+
static template = ` <uc-progress-bar set="visible: visible; value: value"></uc-progress-bar> `;
|
|
970
|
+
static extSrcList = {
|
|
971
|
+
FACEBOOK: "facebook",
|
|
972
|
+
DROPBOX: "dropbox",
|
|
973
|
+
GDRIVE: "gdrive",
|
|
974
|
+
GPHOTOS: "gphotos",
|
|
975
|
+
INSTAGRAM: "instagram",
|
|
976
|
+
FLICKR: "flickr",
|
|
977
|
+
VK: "vk",
|
|
978
|
+
EVERNOTE: "evernote",
|
|
979
|
+
BOX: "box",
|
|
980
|
+
ONEDRIVE: "onedrive",
|
|
981
|
+
HUDDLE: "huddle",
|
|
982
|
+
};
|
|
983
|
+
static sourceTypes = {
|
|
984
|
+
LOCAL: "local",
|
|
985
|
+
URL: "url",
|
|
986
|
+
CAMERA: "camera",
|
|
987
|
+
DRAW: "draw",
|
|
988
|
+
FACEBOOK: "facebook",
|
|
989
|
+
DROPBOX: "dropbox",
|
|
990
|
+
GDRIVE: "gdrive",
|
|
991
|
+
GPHOTOS: "gphotos",
|
|
992
|
+
INSTAGRAM: "instagram",
|
|
993
|
+
FLICKR: "flickr",
|
|
994
|
+
VK: "vk",
|
|
995
|
+
EVERNOTE: "evernote",
|
|
996
|
+
BOX: "box",
|
|
997
|
+
ONEDRIVE: "onedrive",
|
|
998
|
+
HUDDLE: "huddle",
|
|
999
|
+
};
|
|
1000
|
+
static activities = {
|
|
1001
|
+
START_FROM: "start-from",
|
|
1002
|
+
CAMERA: "camera",
|
|
1003
|
+
DRAW: "draw",
|
|
1004
|
+
UPLOAD_LIST: "upload-list",
|
|
1005
|
+
URL: "url",
|
|
1006
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1007
|
+
EXTERNAL: "external",
|
|
1008
|
+
DETAILS: "details",
|
|
1009
|
+
};
|
|
1010
|
+
static reg = () => {};
|
|
1011
|
+
static styleAttrs = [];
|
|
1012
|
+
static is = `sym-1`;
|
|
1013
|
+
static bindAttributes = () => {};
|
|
1014
|
+
};
|
|
1015
|
+
export const Select = class {
|
|
1016
|
+
static template = ` <select ref="select" set="innerHTML: selectHtml; onchange: onSelect"></select> `;
|
|
1017
|
+
static reg = () => {};
|
|
1018
|
+
static styleAttrs = [];
|
|
1019
|
+
static is = `sym-1`;
|
|
1020
|
+
static bindAttributes = () => {};
|
|
1021
|
+
};
|
|
1022
|
+
export const SimpleBtn = class {
|
|
1023
|
+
static styleAttrs = [];
|
|
1024
|
+
static template = `
|
|
1025
|
+
<uc-drop-area set="@disabled: !withDropZone">
|
|
1026
|
+
<button type="button" set="onclick: onClick">
|
|
1027
|
+
<uc-icon name="upload"></uc-icon>
|
|
1028
|
+
<span l10n="button-text"></span>
|
|
1029
|
+
<slot></slot>
|
|
1030
|
+
<div class="uc-visual-drop-area" l10n="drop-files-here"></div>
|
|
1031
|
+
</button>
|
|
1032
|
+
</uc-drop-area>
|
|
1033
|
+
`;
|
|
1034
|
+
static observedAttributes = ["dropzone"];
|
|
1035
|
+
static extSrcList = {
|
|
1036
|
+
FACEBOOK: "facebook",
|
|
1037
|
+
DROPBOX: "dropbox",
|
|
1038
|
+
GDRIVE: "gdrive",
|
|
1039
|
+
GPHOTOS: "gphotos",
|
|
1040
|
+
INSTAGRAM: "instagram",
|
|
1041
|
+
FLICKR: "flickr",
|
|
1042
|
+
VK: "vk",
|
|
1043
|
+
EVERNOTE: "evernote",
|
|
1044
|
+
BOX: "box",
|
|
1045
|
+
ONEDRIVE: "onedrive",
|
|
1046
|
+
HUDDLE: "huddle",
|
|
1047
|
+
};
|
|
1048
|
+
static sourceTypes = {
|
|
1049
|
+
LOCAL: "local",
|
|
1050
|
+
URL: "url",
|
|
1051
|
+
CAMERA: "camera",
|
|
1052
|
+
DRAW: "draw",
|
|
1053
|
+
FACEBOOK: "facebook",
|
|
1054
|
+
DROPBOX: "dropbox",
|
|
1055
|
+
GDRIVE: "gdrive",
|
|
1056
|
+
GPHOTOS: "gphotos",
|
|
1057
|
+
INSTAGRAM: "instagram",
|
|
1058
|
+
FLICKR: "flickr",
|
|
1059
|
+
VK: "vk",
|
|
1060
|
+
EVERNOTE: "evernote",
|
|
1061
|
+
BOX: "box",
|
|
1062
|
+
ONEDRIVE: "onedrive",
|
|
1063
|
+
HUDDLE: "huddle",
|
|
1064
|
+
};
|
|
1065
|
+
static activities = {
|
|
1066
|
+
START_FROM: "start-from",
|
|
1067
|
+
CAMERA: "camera",
|
|
1068
|
+
DRAW: "draw",
|
|
1069
|
+
UPLOAD_LIST: "upload-list",
|
|
1070
|
+
URL: "url",
|
|
1071
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1072
|
+
EXTERNAL: "external",
|
|
1073
|
+
DETAILS: "details",
|
|
1074
|
+
};
|
|
1075
|
+
static reg = () => {};
|
|
1076
|
+
static is = `sym-1`;
|
|
1077
|
+
static bindAttributes = () => {};
|
|
1078
|
+
};
|
|
1079
|
+
export const SliderUi = class {
|
|
1080
|
+
static template = `
|
|
1081
|
+
<div class="uc-steps" ref="steps-el"></div>
|
|
1082
|
+
<div ref="thumb-el" class="uc-thumb"></div>
|
|
1083
|
+
<input
|
|
1084
|
+
class="uc-input"
|
|
1085
|
+
type="range"
|
|
1086
|
+
ref="input-el"
|
|
1087
|
+
set="oninput: on.sliderInput; onchange: on.sliderChange; @min: min; @max: max; @value: defaultValue;"
|
|
1088
|
+
/>
|
|
1089
|
+
`;
|
|
1090
|
+
static reg = () => {};
|
|
1091
|
+
static styleAttrs = [];
|
|
1092
|
+
static is = `sym-1`;
|
|
1093
|
+
static bindAttributes = () => {};
|
|
1094
|
+
};
|
|
1095
|
+
export const SolutionBlock = class {
|
|
1096
|
+
static styleAttrs = [];
|
|
1097
|
+
static reg = () => {};
|
|
1098
|
+
static is = `sym-1`;
|
|
1099
|
+
static bindAttributes = () => {};
|
|
1100
|
+
};
|
|
1101
|
+
export const SourceBtn = class {
|
|
1102
|
+
static template = `
|
|
1103
|
+
<button type="button">
|
|
1104
|
+
<uc-icon set="@name: iconName"></uc-icon>
|
|
1105
|
+
<div class="uc-txt" l10n="src-type"></div>
|
|
1106
|
+
</button>
|
|
1107
|
+
`;
|
|
1108
|
+
static observedAttributes = ["type"];
|
|
1109
|
+
static extSrcList = {
|
|
1110
|
+
FACEBOOK: "facebook",
|
|
1111
|
+
DROPBOX: "dropbox",
|
|
1112
|
+
GDRIVE: "gdrive",
|
|
1113
|
+
GPHOTOS: "gphotos",
|
|
1114
|
+
INSTAGRAM: "instagram",
|
|
1115
|
+
FLICKR: "flickr",
|
|
1116
|
+
VK: "vk",
|
|
1117
|
+
EVERNOTE: "evernote",
|
|
1118
|
+
BOX: "box",
|
|
1119
|
+
ONEDRIVE: "onedrive",
|
|
1120
|
+
HUDDLE: "huddle",
|
|
1121
|
+
};
|
|
1122
|
+
static sourceTypes = {
|
|
1123
|
+
LOCAL: "local",
|
|
1124
|
+
URL: "url",
|
|
1125
|
+
CAMERA: "camera",
|
|
1126
|
+
DRAW: "draw",
|
|
1127
|
+
FACEBOOK: "facebook",
|
|
1128
|
+
DROPBOX: "dropbox",
|
|
1129
|
+
GDRIVE: "gdrive",
|
|
1130
|
+
GPHOTOS: "gphotos",
|
|
1131
|
+
INSTAGRAM: "instagram",
|
|
1132
|
+
FLICKR: "flickr",
|
|
1133
|
+
VK: "vk",
|
|
1134
|
+
EVERNOTE: "evernote",
|
|
1135
|
+
BOX: "box",
|
|
1136
|
+
ONEDRIVE: "onedrive",
|
|
1137
|
+
HUDDLE: "huddle",
|
|
1138
|
+
};
|
|
1139
|
+
static activities = {
|
|
1140
|
+
START_FROM: "start-from",
|
|
1141
|
+
CAMERA: "camera",
|
|
1142
|
+
DRAW: "draw",
|
|
1143
|
+
UPLOAD_LIST: "upload-list",
|
|
1144
|
+
URL: "url",
|
|
1145
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1146
|
+
EXTERNAL: "external",
|
|
1147
|
+
DETAILS: "details",
|
|
1148
|
+
};
|
|
1149
|
+
static reg = () => {};
|
|
1150
|
+
static styleAttrs = [];
|
|
1151
|
+
static is = `sym-1`;
|
|
1152
|
+
static bindAttributes = () => {};
|
|
1153
|
+
};
|
|
1154
|
+
export const SourceList = class {
|
|
1155
|
+
static reg = () => {};
|
|
1156
|
+
static styleAttrs = [];
|
|
1157
|
+
static is = `sym-1`;
|
|
1158
|
+
static bindAttributes = () => {};
|
|
1159
|
+
};
|
|
1160
|
+
export const StartFrom = class {
|
|
1161
|
+
static template = ` <div class="uc-content"><slot></slot></div> `;
|
|
1162
|
+
static activities = {
|
|
1163
|
+
START_FROM: "start-from",
|
|
1164
|
+
CAMERA: "camera",
|
|
1165
|
+
DRAW: "draw",
|
|
1166
|
+
UPLOAD_LIST: "upload-list",
|
|
1167
|
+
URL: "url",
|
|
1168
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1169
|
+
EXTERNAL: "external",
|
|
1170
|
+
DETAILS: "details",
|
|
1171
|
+
};
|
|
1172
|
+
static reg = () => {};
|
|
1173
|
+
static styleAttrs = [];
|
|
1174
|
+
static is = `sym-1`;
|
|
1175
|
+
static bindAttributes = () => {};
|
|
1176
|
+
};
|
|
1177
|
+
export const UID = class {
|
|
1178
|
+
static generate = () => {};
|
|
1179
|
+
static apply = () => {};
|
|
1180
|
+
static bind = () => {};
|
|
1181
|
+
static call = () => {};
|
|
1182
|
+
static toString = () => {};
|
|
1183
|
+
static hasOwnProperty = () => {};
|
|
1184
|
+
static isPrototypeOf = () => {};
|
|
1185
|
+
static propertyIsEnumerable = () => {};
|
|
1186
|
+
static valueOf = () => {};
|
|
1187
|
+
static toLocaleString = () => {};
|
|
1188
|
+
};
|
|
1189
|
+
export const UploadCtxProvider = class {
|
|
1190
|
+
static EventType = {
|
|
1191
|
+
FILE_ADDED: "file-added",
|
|
1192
|
+
FILE_REMOVED: "file-removed",
|
|
1193
|
+
FILE_UPLOAD_START: "file-upload-start",
|
|
1194
|
+
FILE_UPLOAD_PROGRESS: "file-upload-progress",
|
|
1195
|
+
FILE_UPLOAD_SUCCESS: "file-upload-success",
|
|
1196
|
+
FILE_UPLOAD_FAILED: "file-upload-failed",
|
|
1197
|
+
FILE_URL_CHANGED: "file-url-changed",
|
|
1198
|
+
MODAL_OPEN: "modal-open",
|
|
1199
|
+
MODAL_CLOSE: "modal-close",
|
|
1200
|
+
DONE_CLICK: "done-click",
|
|
1201
|
+
UPLOAD_CLICK: "upload-click",
|
|
1202
|
+
ACTIVITY_CHANGE: "activity-change",
|
|
1203
|
+
COMMON_UPLOAD_START: "common-upload-start",
|
|
1204
|
+
COMMON_UPLOAD_PROGRESS: "common-upload-progress",
|
|
1205
|
+
COMMON_UPLOAD_SUCCESS: "common-upload-success",
|
|
1206
|
+
COMMON_UPLOAD_FAILED: "common-upload-failed",
|
|
1207
|
+
CHANGE: "change",
|
|
1208
|
+
GROUP_CREATED: "group-created",
|
|
1209
|
+
};
|
|
1210
|
+
static extSrcList = {
|
|
1211
|
+
FACEBOOK: "facebook",
|
|
1212
|
+
DROPBOX: "dropbox",
|
|
1213
|
+
GDRIVE: "gdrive",
|
|
1214
|
+
GPHOTOS: "gphotos",
|
|
1215
|
+
INSTAGRAM: "instagram",
|
|
1216
|
+
FLICKR: "flickr",
|
|
1217
|
+
VK: "vk",
|
|
1218
|
+
EVERNOTE: "evernote",
|
|
1219
|
+
BOX: "box",
|
|
1220
|
+
ONEDRIVE: "onedrive",
|
|
1221
|
+
HUDDLE: "huddle",
|
|
1222
|
+
};
|
|
1223
|
+
static sourceTypes = {
|
|
1224
|
+
LOCAL: "local",
|
|
1225
|
+
URL: "url",
|
|
1226
|
+
CAMERA: "camera",
|
|
1227
|
+
DRAW: "draw",
|
|
1228
|
+
FACEBOOK: "facebook",
|
|
1229
|
+
DROPBOX: "dropbox",
|
|
1230
|
+
GDRIVE: "gdrive",
|
|
1231
|
+
GPHOTOS: "gphotos",
|
|
1232
|
+
INSTAGRAM: "instagram",
|
|
1233
|
+
FLICKR: "flickr",
|
|
1234
|
+
VK: "vk",
|
|
1235
|
+
EVERNOTE: "evernote",
|
|
1236
|
+
BOX: "box",
|
|
1237
|
+
ONEDRIVE: "onedrive",
|
|
1238
|
+
HUDDLE: "huddle",
|
|
1239
|
+
};
|
|
1240
|
+
static activities = {
|
|
1241
|
+
START_FROM: "start-from",
|
|
1242
|
+
CAMERA: "camera",
|
|
1243
|
+
DRAW: "draw",
|
|
1244
|
+
UPLOAD_LIST: "upload-list",
|
|
1245
|
+
URL: "url",
|
|
1246
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1247
|
+
EXTERNAL: "external",
|
|
1248
|
+
DETAILS: "details",
|
|
1249
|
+
};
|
|
1250
|
+
static reg = () => {};
|
|
1251
|
+
static styleAttrs = [];
|
|
1252
|
+
static is = `sym-1`;
|
|
1253
|
+
static bindAttributes = () => {};
|
|
1254
|
+
};
|
|
1255
|
+
export const UploadList = class {
|
|
1256
|
+
static template = `
|
|
1257
|
+
<uc-activity-header>
|
|
1258
|
+
<span class="uc-header-text">{{headerText}}</span>
|
|
1259
|
+
<button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
|
|
1260
|
+
<uc-icon name="close"></uc-icon>
|
|
1261
|
+
</button>
|
|
1262
|
+
</uc-activity-header>
|
|
1263
|
+
|
|
1264
|
+
<div class="uc-no-files" set="@hidden: hasFiles">
|
|
1265
|
+
<slot name="empty"><span l10n="no-files"></span></slot>
|
|
1266
|
+
</div>
|
|
1267
|
+
|
|
1268
|
+
<div class="uc-files" repeat="*uploadList" repeat-item-tag="uc-file-item"></div>
|
|
1269
|
+
|
|
1270
|
+
<div class="uc-common-error" set="@hidden: !commonErrorMessage; textContent: commonErrorMessage;"></div>
|
|
1271
|
+
|
|
1272
|
+
<div class="uc-toolbar">
|
|
1273
|
+
<button type="button" class="uc-cancel-btn uc-secondary-btn" set="onclick: onCancel;" l10n="clear"></button>
|
|
1274
|
+
<div class="uc-toolbar-spacer"></div>
|
|
1275
|
+
<button
|
|
1276
|
+
type="button"
|
|
1277
|
+
class="uc-add-more-btn uc-secondary-btn"
|
|
1278
|
+
set="onclick: onAdd; @disabled: !addMoreBtnEnabled; @hidden: !addMoreBtnVisible"
|
|
1279
|
+
>
|
|
1280
|
+
<uc-icon name="add"></uc-icon><span l10n="add-more"></span>
|
|
1281
|
+
</button>
|
|
1282
|
+
<button
|
|
1283
|
+
type="button"
|
|
1284
|
+
class="uc-upload-btn uc-primary-btn"
|
|
1285
|
+
set="@hidden: !uploadBtnVisible; onclick: onUpload;"
|
|
1286
|
+
l10n="upload"
|
|
1287
|
+
></button>
|
|
1288
|
+
<button
|
|
1289
|
+
type="button"
|
|
1290
|
+
class="uc-done-btn uc-primary-btn"
|
|
1291
|
+
set="@hidden: !doneBtnVisible; onclick: onDone; @disabled: !doneBtnEnabled"
|
|
1292
|
+
l10n="done"
|
|
1293
|
+
></button>
|
|
1294
|
+
</div>
|
|
1295
|
+
|
|
1296
|
+
<uc-drop-area ghost></uc-drop-area>
|
|
1297
|
+
`;
|
|
1298
|
+
static extSrcList = {
|
|
1299
|
+
FACEBOOK: "facebook",
|
|
1300
|
+
DROPBOX: "dropbox",
|
|
1301
|
+
GDRIVE: "gdrive",
|
|
1302
|
+
GPHOTOS: "gphotos",
|
|
1303
|
+
INSTAGRAM: "instagram",
|
|
1304
|
+
FLICKR: "flickr",
|
|
1305
|
+
VK: "vk",
|
|
1306
|
+
EVERNOTE: "evernote",
|
|
1307
|
+
BOX: "box",
|
|
1308
|
+
ONEDRIVE: "onedrive",
|
|
1309
|
+
HUDDLE: "huddle",
|
|
1310
|
+
};
|
|
1311
|
+
static sourceTypes = {
|
|
1312
|
+
LOCAL: "local",
|
|
1313
|
+
URL: "url",
|
|
1314
|
+
CAMERA: "camera",
|
|
1315
|
+
DRAW: "draw",
|
|
1316
|
+
FACEBOOK: "facebook",
|
|
1317
|
+
DROPBOX: "dropbox",
|
|
1318
|
+
GDRIVE: "gdrive",
|
|
1319
|
+
GPHOTOS: "gphotos",
|
|
1320
|
+
INSTAGRAM: "instagram",
|
|
1321
|
+
FLICKR: "flickr",
|
|
1322
|
+
VK: "vk",
|
|
1323
|
+
EVERNOTE: "evernote",
|
|
1324
|
+
BOX: "box",
|
|
1325
|
+
ONEDRIVE: "onedrive",
|
|
1326
|
+
HUDDLE: "huddle",
|
|
1327
|
+
};
|
|
1328
|
+
static activities = {
|
|
1329
|
+
START_FROM: "start-from",
|
|
1330
|
+
CAMERA: "camera",
|
|
1331
|
+
DRAW: "draw",
|
|
1332
|
+
UPLOAD_LIST: "upload-list",
|
|
1333
|
+
URL: "url",
|
|
1334
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1335
|
+
EXTERNAL: "external",
|
|
1336
|
+
DETAILS: "details",
|
|
1337
|
+
};
|
|
1338
|
+
static reg = () => {};
|
|
1339
|
+
static styleAttrs = [];
|
|
1340
|
+
static is = `sym-1`;
|
|
1341
|
+
static bindAttributes = () => {};
|
|
1342
|
+
};
|
|
1343
|
+
export const UploaderBlock = class {
|
|
1344
|
+
static extSrcList = {
|
|
1345
|
+
FACEBOOK: "facebook",
|
|
1346
|
+
DROPBOX: "dropbox",
|
|
1347
|
+
GDRIVE: "gdrive",
|
|
1348
|
+
GPHOTOS: "gphotos",
|
|
1349
|
+
INSTAGRAM: "instagram",
|
|
1350
|
+
FLICKR: "flickr",
|
|
1351
|
+
VK: "vk",
|
|
1352
|
+
EVERNOTE: "evernote",
|
|
1353
|
+
BOX: "box",
|
|
1354
|
+
ONEDRIVE: "onedrive",
|
|
1355
|
+
HUDDLE: "huddle",
|
|
1356
|
+
};
|
|
1357
|
+
static sourceTypes = {
|
|
1358
|
+
LOCAL: "local",
|
|
1359
|
+
URL: "url",
|
|
1360
|
+
CAMERA: "camera",
|
|
1361
|
+
DRAW: "draw",
|
|
1362
|
+
FACEBOOK: "facebook",
|
|
1363
|
+
DROPBOX: "dropbox",
|
|
1364
|
+
GDRIVE: "gdrive",
|
|
1365
|
+
GPHOTOS: "gphotos",
|
|
1366
|
+
INSTAGRAM: "instagram",
|
|
1367
|
+
FLICKR: "flickr",
|
|
1368
|
+
VK: "vk",
|
|
1369
|
+
EVERNOTE: "evernote",
|
|
1370
|
+
BOX: "box",
|
|
1371
|
+
ONEDRIVE: "onedrive",
|
|
1372
|
+
HUDDLE: "huddle",
|
|
1373
|
+
};
|
|
1374
|
+
static activities = {
|
|
1375
|
+
START_FROM: "start-from",
|
|
1376
|
+
CAMERA: "camera",
|
|
1377
|
+
DRAW: "draw",
|
|
1378
|
+
UPLOAD_LIST: "upload-list",
|
|
1379
|
+
URL: "url",
|
|
1380
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1381
|
+
EXTERNAL: "external",
|
|
1382
|
+
DETAILS: "details",
|
|
1383
|
+
};
|
|
1384
|
+
static reg = () => {};
|
|
1385
|
+
static styleAttrs = [];
|
|
1386
|
+
static is = `sym-1`;
|
|
1387
|
+
static bindAttributes = () => {};
|
|
1388
|
+
};
|
|
1389
|
+
export const UrlSource = class {
|
|
1390
|
+
static template = `
|
|
1391
|
+
<uc-activity-header>
|
|
1392
|
+
<button type="button" class="uc-mini-btn" set="onclick: *historyBack">
|
|
1393
|
+
<uc-icon name="back"></uc-icon>
|
|
1394
|
+
</button>
|
|
1395
|
+
<div>
|
|
1396
|
+
<uc-icon name="url"></uc-icon>
|
|
1397
|
+
<span l10n="caption-from-url"></span>
|
|
1398
|
+
</div>
|
|
1399
|
+
<button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
|
|
1400
|
+
<uc-icon name="close"></uc-icon>
|
|
1401
|
+
</button>
|
|
1402
|
+
</uc-activity-header>
|
|
1403
|
+
<form class="uc-content">
|
|
1404
|
+
<input placeholder="https://" class="uc-url-input" type="text" ref="input" set="oninput: onInput" />
|
|
1405
|
+
<button
|
|
1406
|
+
type="submit"
|
|
1407
|
+
class="uc-url-upload-btn uc-primary-btn"
|
|
1408
|
+
set="onclick: onUpload; @disabled: importDisabled"
|
|
1409
|
+
l10n="upload-url"
|
|
1410
|
+
></button>
|
|
1411
|
+
</form>
|
|
1412
|
+
`;
|
|
1413
|
+
static extSrcList = {
|
|
1414
|
+
FACEBOOK: "facebook",
|
|
1415
|
+
DROPBOX: "dropbox",
|
|
1416
|
+
GDRIVE: "gdrive",
|
|
1417
|
+
GPHOTOS: "gphotos",
|
|
1418
|
+
INSTAGRAM: "instagram",
|
|
1419
|
+
FLICKR: "flickr",
|
|
1420
|
+
VK: "vk",
|
|
1421
|
+
EVERNOTE: "evernote",
|
|
1422
|
+
BOX: "box",
|
|
1423
|
+
ONEDRIVE: "onedrive",
|
|
1424
|
+
HUDDLE: "huddle",
|
|
1425
|
+
};
|
|
1426
|
+
static sourceTypes = {
|
|
1427
|
+
LOCAL: "local",
|
|
1428
|
+
URL: "url",
|
|
1429
|
+
CAMERA: "camera",
|
|
1430
|
+
DRAW: "draw",
|
|
1431
|
+
FACEBOOK: "facebook",
|
|
1432
|
+
DROPBOX: "dropbox",
|
|
1433
|
+
GDRIVE: "gdrive",
|
|
1434
|
+
GPHOTOS: "gphotos",
|
|
1435
|
+
INSTAGRAM: "instagram",
|
|
1436
|
+
FLICKR: "flickr",
|
|
1437
|
+
VK: "vk",
|
|
1438
|
+
EVERNOTE: "evernote",
|
|
1439
|
+
BOX: "box",
|
|
1440
|
+
ONEDRIVE: "onedrive",
|
|
1441
|
+
HUDDLE: "huddle",
|
|
1442
|
+
};
|
|
1443
|
+
static activities = {
|
|
1444
|
+
START_FROM: "start-from",
|
|
1445
|
+
CAMERA: "camera",
|
|
1446
|
+
DRAW: "draw",
|
|
1447
|
+
UPLOAD_LIST: "upload-list",
|
|
1448
|
+
URL: "url",
|
|
1449
|
+
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1450
|
+
EXTERNAL: "external",
|
|
1451
|
+
DETAILS: "details",
|
|
1452
|
+
};
|
|
1453
|
+
static reg = () => {};
|
|
1454
|
+
static styleAttrs = [];
|
|
1455
|
+
static is = `sym-1`;
|
|
1456
|
+
static bindAttributes = () => {};
|
|
1457
|
+
};
|
|
1458
|
+
export const connectBlocksFrom = () => {};
|
|
1459
|
+
export const defineLocale = () => {};
|
|
1460
|
+
export const registerBlocks = () => {};
|
|
1461
|
+
export const toKebabCase = () => {};
|