@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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { BaseComponent } from '@symbiotejs/symbiote';
|
|
2
|
+
|
|
3
|
+
export class Range extends BaseComponent {
|
|
4
|
+
init$ = {
|
|
5
|
+
cssLeft: '50%',
|
|
6
|
+
barActive: false,
|
|
7
|
+
value: 50,
|
|
8
|
+
onChange: (e) => {
|
|
9
|
+
e.preventDefault();
|
|
10
|
+
e.stopPropagation();
|
|
11
|
+
this.$.value = parseFloat(this._range.value);
|
|
12
|
+
this.dispatchEvent(new Event('change'));
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
initCallback() {
|
|
17
|
+
super.initCallback();
|
|
18
|
+
/** @type {HTMLInputElement} */
|
|
19
|
+
this._range = this.ref.range;
|
|
20
|
+
[...this.attributes].forEach((attr) => {
|
|
21
|
+
let exclude = ['style', 'ref'];
|
|
22
|
+
if (!exclude.includes(attr.name)) {
|
|
23
|
+
this.ref.range.setAttribute(attr.name, attr.value);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
this.sub('value', (val) => {
|
|
27
|
+
let pcnt = (val / 100) * 100;
|
|
28
|
+
this.$.cssLeft = `${pcnt}%`;
|
|
29
|
+
});
|
|
30
|
+
this.defineAccessor('value', (val) => {
|
|
31
|
+
this.$.value = val;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
Range.template = /* HTML */ `
|
|
37
|
+
<div class="uc-track-wrapper">
|
|
38
|
+
<div class="uc-track"></div>
|
|
39
|
+
<div class="uc-bar" set -style.width="cssLeft" -@active="barActive"></div>
|
|
40
|
+
<div class="uc-slider" set -style.left="cssLeft"></div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<input type="range" ref="range" set -@value="value" -oninput="onChange" />
|
|
44
|
+
`;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
uc-range {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
height: var(--uc-button-size);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
uc-range datalist {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
uc-range input {
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
opacity: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
uc-range .uc-track-wrapper {
|
|
20
|
+
position: absolute;
|
|
21
|
+
right: 10px;
|
|
22
|
+
left: 10px;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
height: 2px;
|
|
27
|
+
user-select: none;
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
uc-range .uc-track {
|
|
32
|
+
position: absolute;
|
|
33
|
+
right: 0;
|
|
34
|
+
left: 0;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
height: 2px;
|
|
39
|
+
background-color: currentColor;
|
|
40
|
+
border-radius: 2px;
|
|
41
|
+
opacity: 0.5;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
uc-range .uc-slider {
|
|
45
|
+
position: absolute;
|
|
46
|
+
width: 16px;
|
|
47
|
+
height: 16px;
|
|
48
|
+
background-color: currentColor;
|
|
49
|
+
border-radius: 100%;
|
|
50
|
+
transform: translateX(-50%);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
uc-range .uc-bar {
|
|
54
|
+
position: absolute;
|
|
55
|
+
left: 0;
|
|
56
|
+
height: 100%;
|
|
57
|
+
background-color: currentColor;
|
|
58
|
+
border-radius: 2px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
uc-range .uc-caption {
|
|
62
|
+
position: absolute;
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["Select.js"],"names":[],"mappings":"AAEA;IACE,WAeE;IAPE,WAAkC;CAqBvC;;;;sBAhCqB,yBAAyB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Block } from '../../abstract/Block.js';
|
|
2
|
+
|
|
3
|
+
export class Select extends Block {
|
|
4
|
+
init$ = {
|
|
5
|
+
...this.init$,
|
|
6
|
+
currentText: '',
|
|
7
|
+
options: [],
|
|
8
|
+
selectHtml: '',
|
|
9
|
+
onSelect: (e) => {
|
|
10
|
+
e.preventDefault();
|
|
11
|
+
e.stopPropagation();
|
|
12
|
+
this.value = this.ref.select.value;
|
|
13
|
+
this.$.currentText =
|
|
14
|
+
this.$.options.find((opt) => {
|
|
15
|
+
return opt.value == this.value;
|
|
16
|
+
})?.text || '';
|
|
17
|
+
this.dispatchEvent(new Event('change'));
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
initCallback() {
|
|
22
|
+
super.initCallback();
|
|
23
|
+
|
|
24
|
+
this.sub('options', (/** @type {{ text: String; value: String }[]} */ options) => {
|
|
25
|
+
this.$.currentText = options?.[0]?.text || '';
|
|
26
|
+
let html = '';
|
|
27
|
+
options?.forEach((opt) => {
|
|
28
|
+
html += /* HTML */ `<option value="${opt.value}">${opt.text}</option>`;
|
|
29
|
+
});
|
|
30
|
+
this.$.selectHtml = html;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
Select.template = /* HTML */ ` <select ref="select" set="innerHTML: selectHtml; onchange: onSelect"></select> `;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
uc-select {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
uc-select select {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
height: var(--uc-button-size);
|
|
11
|
+
padding: 0 14px;
|
|
12
|
+
font-size: 1em;
|
|
13
|
+
font-family: inherit;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
border: none;
|
|
16
|
+
border-radius: var(--uc-radius);
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
user-select: none;
|
|
19
|
+
transition: background-color var(--uc-transition);
|
|
20
|
+
color: var(--uc-secondary-foreground);
|
|
21
|
+
background-color: var(--uc-secondary);
|
|
22
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export class SimpleBtn extends UploaderBlock {
|
|
2
|
+
init$: {
|
|
3
|
+
withDropZone: boolean;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
'button-text': string;
|
|
6
|
+
'*commonProgress': number;
|
|
7
|
+
'*uploadList': never[];
|
|
8
|
+
'*focusedEntry': null;
|
|
9
|
+
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
10
|
+
'*collectionErrors': any[];
|
|
11
|
+
'*collectionState': import("../../index.js").OutputCollectionState<import("../../index.js").OutputCollectionStatus, "maybe-has-group"> | null;
|
|
12
|
+
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
13
|
+
'*uploadTrigger': Set<string>;
|
|
14
|
+
'*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
15
|
+
'*currentActivity': null;
|
|
16
|
+
'*currentActivityParams': {};
|
|
17
|
+
'*history': never[];
|
|
18
|
+
'*historyBack': null;
|
|
19
|
+
'*closeModal': () => void;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export namespace SimpleBtn {
|
|
23
|
+
let template: string;
|
|
24
|
+
}
|
|
25
|
+
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
26
|
+
//# sourceMappingURL=SimpleBtn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleBtn.d.ts","sourceRoot":"","sources":["SimpleBtn.js"],"names":[],"mappings":"AAIA;IAMI;;;;;;;;;;;;;;;;;;MAOC;CAoBJ;;;;8BApC6B,iCAAiC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
3
|
+
import { asBoolean } from '../Config/normalizeConfigValue.js';
|
|
4
|
+
|
|
5
|
+
export class SimpleBtn extends UploaderBlock {
|
|
6
|
+
static styleAttrs = [...super.styleAttrs, 'uc-simple-btn'];
|
|
7
|
+
couldBeCtxOwner = true;
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
|
|
11
|
+
this.init$ = {
|
|
12
|
+
...this.init$,
|
|
13
|
+
withDropZone: true,
|
|
14
|
+
onClick: () => {
|
|
15
|
+
this.api.initFlow();
|
|
16
|
+
},
|
|
17
|
+
'button-text': '',
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
initCallback() {
|
|
22
|
+
super.initCallback();
|
|
23
|
+
|
|
24
|
+
this.defineAccessor(
|
|
25
|
+
'dropzone',
|
|
26
|
+
/** @param {unknown} val */
|
|
27
|
+
(val) => {
|
|
28
|
+
if (typeof val === 'undefined') {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
this.$.withDropZone = asBoolean(val);
|
|
32
|
+
},
|
|
33
|
+
);
|
|
34
|
+
this.subConfigValue('multiple', (val) => {
|
|
35
|
+
this.$['button-text'] = val ? 'upload-files' : 'upload-file';
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
SimpleBtn.template = /* HTML */ `
|
|
41
|
+
<uc-drop-area set="@disabled: !withDropZone">
|
|
42
|
+
<button type="button" set="onclick: onClick">
|
|
43
|
+
<uc-icon name="upload"></uc-icon>
|
|
44
|
+
<span l10n="button-text"></span>
|
|
45
|
+
<slot></slot>
|
|
46
|
+
<div class="uc-visual-drop-area" l10n="drop-files-here"></div>
|
|
47
|
+
</button>
|
|
48
|
+
</uc-drop-area>
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
SimpleBtn.bindAttributes({
|
|
52
|
+
// @ts-expect-error TODO: we need to update symbiote types
|
|
53
|
+
dropzone: null,
|
|
54
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
:where([uc-simple-btn]) {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:where([uc-simple-btn]) button {
|
|
7
|
+
height: auto;
|
|
8
|
+
gap: 0.5em;
|
|
9
|
+
padding: var(--uc-simple-btn-padding);
|
|
10
|
+
background-color: var(--uc-simple-btn);
|
|
11
|
+
color: var(--uc-simple-btn-foreground);
|
|
12
|
+
font-size: var(--uc-simple-btn-font-size);
|
|
13
|
+
font-family: var(--uc-simple-btn-font-family);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where([uc-simple-btn]) button uc-icon {
|
|
17
|
+
width: auto;
|
|
18
|
+
height: auto;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where([uc-simple-btn]) button uc-icon svg {
|
|
22
|
+
width: 0.9em;
|
|
23
|
+
height: 0.9em;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where([uc-simple-btn]) button:hover {
|
|
27
|
+
background-color: var(--uc-simple-btn-hover);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where([uc-simple-btn]) > uc-drop-area {
|
|
31
|
+
display: contents;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where([uc-simple-btn]) .uc-visual-drop-area {
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 0px;
|
|
37
|
+
left: 0px;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: 100%;
|
|
43
|
+
padding: var(--uc-simple-btn-padding);
|
|
44
|
+
background-color: transparent;
|
|
45
|
+
color: transparent;
|
|
46
|
+
font-size: var(--uc-simple-btn-font-size);
|
|
47
|
+
border: 1px dashed var(--uc-simple-btn-foreground);
|
|
48
|
+
border-radius: inherit;
|
|
49
|
+
opacity: 0;
|
|
50
|
+
transition: opacity var(--uc-transition);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:where([uc-simple-btn]) > uc-drop-area[drag-state='active'] .uc-visual-drop-area {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
}
|
|
56
|
+
:where([uc-simple-btn]) > uc-drop-area[drag-state='inactive'] .uc-visual-drop-area {
|
|
57
|
+
opacity: 0;
|
|
58
|
+
}
|
|
59
|
+
:where([uc-simple-btn]) > uc-drop-area[drag-state='near'] .uc-visual-drop-area {
|
|
60
|
+
opacity: 1;
|
|
61
|
+
}
|
|
62
|
+
:where([uc-simple-btn]) > uc-drop-area[drag-state='over'] .uc-visual-drop-area {
|
|
63
|
+
opacity: 1;
|
|
64
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {{
|
|
3
|
+
* type: string;
|
|
4
|
+
* activity?: string;
|
|
5
|
+
* textKey?: string;
|
|
6
|
+
* icon?: string;
|
|
7
|
+
* activate?: () => boolean;
|
|
8
|
+
* activityParams?: Record<string, unknown>;
|
|
9
|
+
* }} TConfig
|
|
10
|
+
*/
|
|
11
|
+
export class SourceBtn extends UploaderBlock {
|
|
12
|
+
/** @type {string | undefined} */
|
|
13
|
+
type: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* @private
|
|
16
|
+
* @type {Record<string, TConfig>}
|
|
17
|
+
*/
|
|
18
|
+
private _registeredTypes;
|
|
19
|
+
init$: {
|
|
20
|
+
iconName: string;
|
|
21
|
+
'src-type': string;
|
|
22
|
+
'*commonProgress': number;
|
|
23
|
+
'*uploadList': never[];
|
|
24
|
+
'*focusedEntry': null;
|
|
25
|
+
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
26
|
+
'*collectionErrors': any[];
|
|
27
|
+
'*collectionState': import("../../index.js").OutputCollectionState<import("../../index.js").OutputCollectionStatus, "maybe-has-group"> | null;
|
|
28
|
+
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
29
|
+
'*uploadTrigger': Set<string>;
|
|
30
|
+
'*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
31
|
+
'*currentActivity': null;
|
|
32
|
+
'*currentActivityParams': {};
|
|
33
|
+
'*history': never[];
|
|
34
|
+
'*historyBack': null;
|
|
35
|
+
'*closeModal': () => void;
|
|
36
|
+
};
|
|
37
|
+
initTypes(): void;
|
|
38
|
+
/** @param {TConfig} typeConfig */
|
|
39
|
+
registerType(typeConfig: TConfig): void;
|
|
40
|
+
/** @param {string} type */
|
|
41
|
+
getType(type: string): TConfig;
|
|
42
|
+
activate(): void;
|
|
43
|
+
/** @param {string} type */
|
|
44
|
+
applyType(type: string): void;
|
|
45
|
+
}
|
|
46
|
+
export namespace SourceBtn {
|
|
47
|
+
let template: string;
|
|
48
|
+
}
|
|
49
|
+
export type TConfig = {
|
|
50
|
+
type: string;
|
|
51
|
+
activity?: string;
|
|
52
|
+
textKey?: string;
|
|
53
|
+
icon?: string;
|
|
54
|
+
activate?: () => boolean;
|
|
55
|
+
activityParams?: Record<string, unknown>;
|
|
56
|
+
};
|
|
57
|
+
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
58
|
+
//# sourceMappingURL=SourceBtn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceBtn.d.ts","sourceRoot":"","sources":["SourceBtn.js"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AAEH;IAEE,iCAAiC;IACjC,MADW,MAAM,GAAG,SAAS,CACZ;IACjB;;;OAGG;IACH,yBAAsB;IAKpB;;;;;;;;;;;;;;;;;MAIC;IAGH,kBAuCC;IAkBD,kCAAkC;IAClC,yBADY,OAAO,QAGlB;IAED,2BAA2B;IAC3B,cADY,MAAM,WAGjB;IAED,iBAYC;IAED,2BAA2B;IAC3B,gBADY,MAAM,QAcjB;CACF;;;;sBA9HY;IACZ,IAAQ,EAAE,MAAM,CAAC;IACjB,QAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAY,CAAC,EAAE,MAAM,OAAO,CAAC;IAC7B,cAAkB,CAAC,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C;8BAb0B,iCAAiC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
3
|
+
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
4
|
+
|
|
5
|
+
const L10N_PREFIX = 'src-type-';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {{
|
|
9
|
+
* type: string;
|
|
10
|
+
* activity?: string;
|
|
11
|
+
* textKey?: string;
|
|
12
|
+
* icon?: string;
|
|
13
|
+
* activate?: () => boolean;
|
|
14
|
+
* activityParams?: Record<string, unknown>;
|
|
15
|
+
* }} TConfig
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export class SourceBtn extends UploaderBlock {
|
|
19
|
+
couldBeCtxOwner = true;
|
|
20
|
+
/** @type {string | undefined} */
|
|
21
|
+
type = undefined;
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
* @type {Record<string, TConfig>}
|
|
25
|
+
*/
|
|
26
|
+
_registeredTypes = {};
|
|
27
|
+
|
|
28
|
+
constructor() {
|
|
29
|
+
super();
|
|
30
|
+
|
|
31
|
+
this.init$ = {
|
|
32
|
+
...this.init$,
|
|
33
|
+
iconName: 'default',
|
|
34
|
+
'src-type': '',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
initTypes() {
|
|
39
|
+
this.registerType({
|
|
40
|
+
type: UploaderBlock.sourceTypes.LOCAL,
|
|
41
|
+
activate: () => {
|
|
42
|
+
this.api.openSystemDialog();
|
|
43
|
+
return false;
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
this.registerType({
|
|
47
|
+
type: UploaderBlock.sourceTypes.URL,
|
|
48
|
+
activity: ActivityBlock.activities.URL,
|
|
49
|
+
textKey: 'from-url',
|
|
50
|
+
});
|
|
51
|
+
this.registerType({
|
|
52
|
+
type: UploaderBlock.sourceTypes.CAMERA,
|
|
53
|
+
activity: ActivityBlock.activities.CAMERA,
|
|
54
|
+
activate: () => {
|
|
55
|
+
const supportsCapture = 'capture' in document.createElement('input');
|
|
56
|
+
if (supportsCapture) {
|
|
57
|
+
this.api.openSystemDialog({ captureCamera: true });
|
|
58
|
+
}
|
|
59
|
+
return !supportsCapture;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
this.registerType({
|
|
63
|
+
type: 'draw',
|
|
64
|
+
activity: ActivityBlock.activities.DRAW,
|
|
65
|
+
icon: 'edit-draw',
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
for (let externalSourceType of Object.values(UploaderBlock.extSrcList)) {
|
|
69
|
+
this.registerType({
|
|
70
|
+
type: externalSourceType,
|
|
71
|
+
activity: ActivityBlock.activities.EXTERNAL,
|
|
72
|
+
activityParams: {
|
|
73
|
+
externalSourceType: externalSourceType,
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
initCallback() {
|
|
80
|
+
super.initCallback();
|
|
81
|
+
this.initTypes();
|
|
82
|
+
|
|
83
|
+
this.defineAccessor(
|
|
84
|
+
'type',
|
|
85
|
+
/** @param {string} val */
|
|
86
|
+
(val) => {
|
|
87
|
+
if (!val) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
this.applyType(val);
|
|
91
|
+
},
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** @param {TConfig} typeConfig */
|
|
96
|
+
registerType(typeConfig) {
|
|
97
|
+
this._registeredTypes[typeConfig.type] = typeConfig;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** @param {string} type */
|
|
101
|
+
getType(type) {
|
|
102
|
+
return this._registeredTypes[type];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
activate() {
|
|
106
|
+
if (!this.type) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const configType = this._registeredTypes[this.type];
|
|
110
|
+
const { activity, activate, activityParams = {} } = configType;
|
|
111
|
+
const showActivity = activate ? activate() : !!activity;
|
|
112
|
+
showActivity &&
|
|
113
|
+
this.set$({
|
|
114
|
+
'*currentActivityParams': activityParams,
|
|
115
|
+
'*currentActivity': activity,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** @param {string} type */
|
|
120
|
+
applyType(type) {
|
|
121
|
+
const configType = this._registeredTypes[type];
|
|
122
|
+
if (!configType) {
|
|
123
|
+
console.warn('Unsupported source type: ' + type);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const { textKey = type, icon = type } = configType;
|
|
127
|
+
|
|
128
|
+
this.$['src-type'] = `${L10N_PREFIX}${textKey}`;
|
|
129
|
+
this.$.iconName = icon;
|
|
130
|
+
this.onclick = () => {
|
|
131
|
+
this.activate();
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
SourceBtn.template = /* HTML */ `
|
|
137
|
+
<button type="button">
|
|
138
|
+
<uc-icon set="@name: iconName"></uc-icon>
|
|
139
|
+
<div class="uc-txt" l10n="src-type"></div>
|
|
140
|
+
</button>
|
|
141
|
+
`;
|
|
142
|
+
SourceBtn.bindAttributes({
|
|
143
|
+
// @ts-expect-error symbiote types bug
|
|
144
|
+
type: null,
|
|
145
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
uc-source-btn > button {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
margin-bottom: 2px;
|
|
5
|
+
padding: 2px var(--uc-padding);
|
|
6
|
+
color: var(--uc-foreground);
|
|
7
|
+
border-radius: var(--uc-radius);
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
transition:
|
|
10
|
+
background-color var(--uc-transition),
|
|
11
|
+
color var(--uc-transition);
|
|
12
|
+
user-select: none;
|
|
13
|
+
width: 100%;
|
|
14
|
+
background-color: unset;
|
|
15
|
+
height: unset;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
uc-source-btn:last-child > button {
|
|
19
|
+
margin-bottom: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
uc-source-btn > button:hover {
|
|
23
|
+
color: var(--uc-primary);
|
|
24
|
+
background-color: var(--uc-primary-transparent);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
uc-source-btn uc-icon {
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
flex-grow: 1;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
min-width: var(--uc-button-size);
|
|
32
|
+
margin-right: var(--uc-padding);
|
|
33
|
+
opacity: 0.8;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
uc-source-btn .uc-txt {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: var(--uc-button-size);
|
|
42
|
+
padding: 0;
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
border: none;
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceList.d.ts","sourceRoot":"","sources":["SourceList.js"],"names":[],"mappings":"AAGA;CAgBC;sBAnBqB,yBAAyB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Block } from '../../abstract/Block.js';
|
|
2
|
+
import { stringToArray } from '../../utils/stringToArray.js';
|
|
3
|
+
|
|
4
|
+
export class SourceList extends Block {
|
|
5
|
+
initCallback() {
|
|
6
|
+
super.initCallback();
|
|
7
|
+
this.subConfigValue('sourceList', (/** @type {String} */ val) => {
|
|
8
|
+
let list = stringToArray(val);
|
|
9
|
+
let html = '';
|
|
10
|
+
list.forEach((srcName) => {
|
|
11
|
+
html += /* HTML */ `<uc-source-btn type="${srcName}"></uc-source-btn>`;
|
|
12
|
+
});
|
|
13
|
+
if (this.cfg.sourceListWrap) {
|
|
14
|
+
this.innerHTML = html;
|
|
15
|
+
} else {
|
|
16
|
+
this.outerHTML = html;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StartFrom.d.ts","sourceRoot":"","sources":["StartFrom.js"],"names":[],"mappings":"AAEA;CASC;;;;8BAX6B,iCAAiC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
2
|
+
|
|
3
|
+
export class StartFrom extends ActivityBlock {
|
|
4
|
+
historyTracked = true;
|
|
5
|
+
/** @type {import('../../abstract/ActivityBlock.js').ActivityType} */
|
|
6
|
+
activityType = 'start-from';
|
|
7
|
+
|
|
8
|
+
initCallback() {
|
|
9
|
+
super.initCallback();
|
|
10
|
+
this.registerActivity(this.activityType);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
StartFrom.template = /* HTML */ ` <div class="uc-content"><slot></slot></div> `;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
uc-start-from {
|
|
2
|
+
display: block;
|
|
3
|
+
overflow-y: auto;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
uc-start-from .uc-content {
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-auto-flow: row;
|
|
9
|
+
gap: calc(var(--uc-padding) * 2);
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
padding: calc(var(--uc-padding) * 2);
|
|
13
|
+
background-color: var(--uc-background);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[uc-modal] uc-start-from {
|
|
17
|
+
width: min(
|
|
18
|
+
calc(var(--uc-dialog-width) - var(--uc-padding) * 2),
|
|
19
|
+
calc(var(--uc-dialog-max-width) - var(--uc-padding) * 2),
|
|
20
|
+
calc(100vw - var(--uc-padding) * 2)
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[uc-modal] uc-start-from uc-drop-area {
|
|
25
|
+
border-radius: var(--uc-radius);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media only screen and (max-width: 430px) {
|
|
29
|
+
[uc-modal] uc-start-from uc-drop-area {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
}
|