@uploadcare/file-uploader 1.13.2 → 1.14.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abstract/ActivityBlock.d.ts +5 -5
- package/abstract/ActivityBlock.d.ts.map +1 -1
- package/abstract/ActivityBlock.js +10 -15
- package/abstract/Block.d.ts +9 -9
- package/abstract/Block.d.ts.map +1 -1
- package/abstract/Block.js +15 -0
- package/abstract/CTX.d.ts +6 -6
- package/abstract/CTX.d.ts.map +1 -1
- package/abstract/CTX.js +3 -1
- package/abstract/LocaleManager.d.ts +3 -3
- package/abstract/LocaleManager.d.ts.map +1 -1
- package/abstract/ModalManager.d.ts +124 -0
- package/abstract/ModalManager.d.ts.map +1 -0
- package/abstract/ModalManager.js +227 -0
- package/abstract/SecureUploadsManager.d.ts +2 -2
- package/abstract/SecureUploadsManager.d.ts.map +1 -1
- package/abstract/SolutionBlock.d.ts +2 -2
- package/abstract/SolutionBlock.d.ts.map +1 -1
- package/abstract/TypedCollection.d.ts.map +1 -1
- package/abstract/TypedData.d.ts +1 -1
- package/abstract/TypedData.d.ts.map +1 -1
- package/abstract/UploaderBlock.d.ts +8 -5
- package/abstract/UploaderBlock.d.ts.map +1 -1
- package/abstract/UploaderBlock.js +24 -8
- package/abstract/UploaderPublicApi.d.ts +25 -23
- package/abstract/UploaderPublicApi.d.ts.map +1 -1
- package/abstract/UploaderPublicApi.js +48 -10
- package/abstract/ValidationManager.d.ts +4 -4
- package/abstract/ValidationManager.d.ts.map +1 -1
- package/abstract/a11y.d.ts +2 -2
- package/abstract/a11y.d.ts.map +1 -1
- package/abstract/buildOutputCollectionState.d.ts +1 -1
- package/abstract/buildOutputCollectionState.d.ts.map +1 -1
- package/abstract/defineComponents.d.ts.map +1 -1
- package/abstract/l10nProcessor.d.ts.map +1 -1
- package/abstract/loadFileUploaderFrom.d.ts +1 -1
- package/abstract/loadFileUploaderFrom.d.ts.map +1 -1
- package/abstract/localeRegistry.d.ts.map +1 -1
- package/abstract/sharedConfigKey.d.ts.map +1 -1
- package/abstract/uploadEntrySchema.d.ts +2 -2
- package/abstract/uploadEntrySchema.d.ts.map +1 -1
- package/blocks/CameraSource/CameraSource.d.ts +9 -9
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
- package/blocks/CameraSource/CameraSource.js +1 -0
- package/blocks/CameraSource/calcCameraModes.d.ts +5 -0
- package/blocks/CameraSource/calcCameraModes.d.ts.map +1 -0
- package/blocks/CameraSource/calcCameraModes.js +11 -0
- package/blocks/CameraSource/constants.d.ts +1 -0
- package/blocks/CameraSource/constants.d.ts.map +1 -1
- package/blocks/CameraSource/constants.js +2 -0
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CropFrame.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +3 -3
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts +1 -1
- package/blocks/CloudImageEditor/src/crop-utils.d.ts +14 -14
- package/blocks/CloudImageEditor/src/crop-utils.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/cropper-constants.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts +1 -1
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +1 -1
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +3 -3
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/state.d.ts +4 -4
- package/blocks/CloudImageEditor/src/svg-sprite.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/types.d.ts +8 -58
- package/blocks/CloudImageEditor/src/types.d.ts.map +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.js +2 -0
- package/blocks/Config/Config.d.ts +3 -12
- package/blocks/Config/Config.d.ts.map +1 -1
- package/blocks/Config/assertions.d.ts +1 -1
- package/blocks/Config/initialConfig.d.ts +1 -1
- package/blocks/Config/initialConfig.d.ts.map +1 -1
- package/blocks/Config/initialConfig.js +4 -0
- package/blocks/Config/normalizeConfigValue.d.ts +2 -1
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
- package/blocks/Config/normalizeConfigValue.js +19 -106
- package/blocks/Config/side-effects.d.ts.map +1 -1
- package/blocks/Config/validatorsType.d.ts +37 -0
- package/blocks/Config/validatorsType.d.ts.map +1 -0
- package/blocks/Config/validatorsType.js +134 -0
- package/blocks/DropArea/DropArea.d.ts +3 -2
- package/blocks/DropArea/DropArea.d.ts.map +1 -1
- package/blocks/DropArea/DropArea.js +21 -2
- package/blocks/DropArea/addDropzone.d.ts.map +1 -1
- package/blocks/DropArea/getDropItems.d.ts +2 -2
- package/blocks/DropArea/getDropItems.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.d.ts +3 -3
- package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.js +2 -1
- package/blocks/ExternalSource/MessageBridge.d.ts +3 -3
- package/blocks/ExternalSource/MessageBridge.d.ts.map +1 -1
- package/blocks/ExternalSource/query-string.d.ts.map +1 -1
- package/blocks/ExternalSource/types.d.ts +64 -64
- package/blocks/ExternalSource/types.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.d.ts +5 -6
- package/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.js +40 -42
- package/blocks/FileItem/file-item.css +90 -0
- package/blocks/Img/ImgBase.d.ts +3 -3
- package/blocks/Img/ImgBase.d.ts.map +1 -1
- package/blocks/Img/ImgConfig.d.ts.map +1 -1
- package/blocks/Img/configurations.d.ts.map +1 -1
- package/blocks/Modal/Modal.d.ts +21 -2
- package/blocks/Modal/Modal.d.ts.map +1 -1
- package/blocks/Modal/Modal.js +52 -24
- package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/blocks/ProgressBar/ProgressBar.js +1 -0
- package/blocks/ProgressBar/progress-bar.css +1 -0
- package/blocks/Range/Range.d.ts.map +1 -1
- package/blocks/SimpleBtn/SimpleBtn.d.ts +2 -2
- package/blocks/SimpleBtn/SimpleBtn.d.ts.map +1 -1
- package/blocks/SimpleBtn/SimpleBtn.js +1 -1
- package/blocks/SourceBtn/SourceBtn.d.ts +2 -2
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
- package/blocks/SourceBtn/SourceBtn.js +29 -3
- package/blocks/SourceList/SourceList.d.ts.map +1 -1
- package/blocks/SourceList/SourceList.js +20 -0
- package/blocks/Spinner/Spinner.d.ts.map +1 -1
- package/blocks/StartFrom/StartFrom.js +1 -1
- package/blocks/Thumb/Thumb.d.ts +48 -0
- package/blocks/Thumb/Thumb.d.ts.map +1 -0
- package/blocks/Thumb/Thumb.js +169 -0
- package/blocks/Thumb/thumb.css +4 -0
- package/blocks/UploadCtxProvider/EventEmitter.d.ts +20 -20
- package/blocks/UploadCtxProvider/EventEmitter.d.ts.map +1 -1
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +4 -4
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts.map +1 -1
- package/blocks/UploadList/UploadList.d.ts +4 -2
- package/blocks/UploadList/UploadList.d.ts.map +1 -1
- package/blocks/UploadList/UploadList.js +16 -1
- package/blocks/UploadList/upload-list.css +23 -0
- package/blocks/UrlSource/UrlSource.d.ts.map +1 -1
- package/blocks/UrlSource/UrlSource.js +1 -0
- package/blocks/svg-backgrounds/svg-backgrounds.d.ts +3 -3
- package/blocks/svg-backgrounds/svg-backgrounds.d.ts.map +1 -1
- package/blocks/themes/uc-basic/common.css +1 -1
- package/blocks/themes/uc-basic/index.css +1 -0
- package/blocks/themes/uc-basic/svg-sprite.d.ts +1 -1
- package/blocks/themes/uc-basic/svg-sprite.d.ts.map +1 -1
- package/blocks/themes/uc-basic/svg-sprite.js +1 -1
- package/blocks/themes/uc-basic/theme.css +12 -0
- package/blocks/utils/UploadSource.d.ts +6 -0
- package/blocks/utils/UploadSource.d.ts.map +1 -1
- package/blocks/utils/UploadSource.js +7 -0
- package/blocks/utils/debounce.d.ts +3 -1
- package/blocks/utils/debounce.d.ts.map +1 -1
- package/blocks/utils/resizeImage.d.ts +1 -1
- package/blocks/utils/resizeImage.d.ts.map +1 -1
- package/blocks/utils/supportCapture.d.ts +2 -0
- package/blocks/utils/supportCapture.d.ts.map +1 -0
- package/blocks/utils/supportCapture.js +3 -0
- package/blocks/utils/throttle.d.ts +3 -1
- package/blocks/utils/throttle.d.ts.map +1 -1
- package/blocks/utils/userAgent.d.ts +1 -1
- package/blocks/utils/userAgent.d.ts.map +1 -1
- package/env.d.ts +1 -1
- package/env.d.ts.map +1 -1
- package/env.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/index.ssr.d.ts +88 -1
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +119 -10
- package/locales/file-uploader/ar.d.ts +2 -0
- package/locales/file-uploader/ar.js +2 -0
- package/locales/file-uploader/az.d.ts +2 -0
- package/locales/file-uploader/az.js +2 -0
- package/locales/file-uploader/ca.d.ts +2 -0
- package/locales/file-uploader/ca.js +2 -0
- package/locales/file-uploader/cs.d.ts +2 -0
- package/locales/file-uploader/cs.js +2 -0
- package/locales/file-uploader/da.d.ts +2 -0
- package/locales/file-uploader/da.js +2 -0
- package/locales/file-uploader/de.d.ts +2 -0
- package/locales/file-uploader/de.js +2 -0
- package/locales/file-uploader/el.d.ts +2 -0
- package/locales/file-uploader/el.js +2 -0
- package/locales/file-uploader/en.d.ts +2 -0
- package/locales/file-uploader/en.js +2 -0
- package/locales/file-uploader/es.d.ts +2 -0
- package/locales/file-uploader/es.js +2 -0
- package/locales/file-uploader/et.d.ts +2 -0
- package/locales/file-uploader/et.js +2 -0
- package/locales/file-uploader/fi.d.ts +2 -0
- package/locales/file-uploader/fi.js +2 -0
- package/locales/file-uploader/fr.d.ts +2 -0
- package/locales/file-uploader/fr.js +2 -0
- package/locales/file-uploader/he.d.ts +2 -0
- package/locales/file-uploader/he.js +2 -0
- package/locales/file-uploader/hy.d.ts +2 -0
- package/locales/file-uploader/hy.js +2 -0
- package/locales/file-uploader/is.d.ts +2 -0
- package/locales/file-uploader/is.js +2 -0
- package/locales/file-uploader/it.d.ts +2 -0
- package/locales/file-uploader/it.js +2 -0
- package/locales/file-uploader/ja.d.ts +2 -0
- package/locales/file-uploader/ja.js +2 -0
- package/locales/file-uploader/ka.d.ts +2 -0
- package/locales/file-uploader/ka.js +2 -0
- package/locales/file-uploader/kk.d.ts +2 -0
- package/locales/file-uploader/kk.js +2 -0
- package/locales/file-uploader/ko.d.ts +2 -0
- package/locales/file-uploader/ko.js +2 -0
- package/locales/file-uploader/lv.d.ts +2 -0
- package/locales/file-uploader/lv.js +2 -0
- package/locales/file-uploader/nb.d.ts +2 -0
- package/locales/file-uploader/nb.js +2 -0
- package/locales/file-uploader/nl.d.ts +2 -0
- package/locales/file-uploader/nl.js +2 -0
- package/locales/file-uploader/pl.d.ts +2 -0
- package/locales/file-uploader/pl.js +2 -0
- package/locales/file-uploader/pt.d.ts +2 -0
- package/locales/file-uploader/pt.js +2 -0
- package/locales/file-uploader/ro.d.ts +2 -0
- package/locales/file-uploader/ro.js +2 -0
- package/locales/file-uploader/ru.d.ts +2 -0
- package/locales/file-uploader/ru.js +2 -0
- package/locales/file-uploader/sk.d.ts +2 -0
- package/locales/file-uploader/sk.js +2 -0
- package/locales/file-uploader/sr.d.ts +2 -0
- package/locales/file-uploader/sr.js +2 -0
- package/locales/file-uploader/sv.d.ts +2 -0
- package/locales/file-uploader/sv.js +2 -0
- package/locales/file-uploader/tr.d.ts +2 -0
- package/locales/file-uploader/tr.js +2 -0
- package/locales/file-uploader/uk.d.ts +2 -0
- package/locales/file-uploader/uk.js +2 -0
- package/locales/file-uploader/vi.d.ts +2 -0
- package/locales/file-uploader/vi.js +2 -0
- package/locales/file-uploader/zh-TW.d.ts +2 -0
- package/locales/file-uploader/zh-TW.js +2 -0
- package/locales/file-uploader/zh.d.ts +2 -0
- package/locales/file-uploader/zh.js +2 -0
- package/package.json +4 -2
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts +2 -2
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts.map +1 -1
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts +35 -0
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -1
- package/solutions/file-uploader/minimal/FileUploaderMinimal.js +122 -9
- package/solutions/file-uploader/minimal/index.css +25 -24
- package/solutions/file-uploader/minimal/index.d.ts +1 -13
- package/solutions/file-uploader/minimal/index.js +1 -13
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts +3 -5
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -1
- package/solutions/file-uploader/regular/FileUploaderRegular.js +17 -16
- package/types/exported.d.ts +7 -0
- package/utils/cdn-utils.d.ts +3 -3
- package/utils/cdn-utils.d.ts.map +1 -1
- package/utils/fileTypes.d.ts +1 -1
- package/utils/fileTypes.d.ts.map +1 -1
- package/utils/getPluralForm.d.ts.map +1 -1
- package/utils/isSecureTokenExpired.d.ts +1 -1
- package/utils/memoize.d.ts.map +1 -1
- package/utils/mixinClass.d.ts +3 -1
- package/utils/mixinClass.d.ts.map +1 -1
- package/utils/prettyBytes.d.ts.map +1 -1
- package/utils/template-utils.d.ts +1 -1
- package/utils/template-utils.d.ts.map +1 -1
- package/utils/toKebabCase.d.ts.map +1 -1
- package/utils/transparentPixelSrc.d.ts.map +1 -1
- package/utils/uniqueArray.d.ts.map +1 -1
- package/utils/validators/collection/validateCollectionUploadError.d.ts +1 -1
- package/utils/validators/collection/validateMultiple.d.ts +1 -1
- package/utils/validators/file/validateFileType.d.ts +1 -1
- package/utils/validators/file/validateIsImage.d.ts +1 -1
- package/utils/validators/file/validateMaxSizeLimit.d.ts +1 -1
- package/utils/validators/file/validateUploadError.d.ts +1 -1
- package/utils/waitForAttribute.d.ts +1 -1
- package/utils/waitForAttribute.d.ts.map +1 -1
- package/web/file-uploader.iife.min.js +4 -4
- package/web/file-uploader.min.js +4 -4
- package/web/uc-basic.min.css +1 -1
- package/web/uc-cloud-image-editor.min.css +1 -1
- package/web/uc-cloud-image-editor.min.js +4 -4
- package/web/uc-file-uploader-inline.min.css +1 -1
- package/web/uc-file-uploader-inline.min.js +4 -4
- package/web/uc-file-uploader-minimal.min.css +1 -1
- package/web/uc-file-uploader-minimal.min.js +4 -3
- package/web/uc-file-uploader-regular.min.css +1 -1
- package/web/uc-file-uploader-regular.min.js +4 -4
- package/web/uc-img.min.js +2 -2
|
@@ -3,12 +3,12 @@ export type DoneSuccessResponse = {
|
|
|
3
3
|
alternatives?: Record<string, string>;
|
|
4
4
|
is_image?: boolean | null;
|
|
5
5
|
filename?: string;
|
|
6
|
-
obj_type:
|
|
6
|
+
obj_type: "selected_file";
|
|
7
7
|
url: string;
|
|
8
8
|
};
|
|
9
9
|
export type InputMessageMap = {
|
|
10
|
-
|
|
11
|
-
type:
|
|
10
|
+
"selected-files-change": {
|
|
11
|
+
type: "selected-files-change";
|
|
12
12
|
total: number;
|
|
13
13
|
selectedCount: number;
|
|
14
14
|
} & ({
|
|
@@ -27,76 +27,76 @@ export type InputMessageMap = {
|
|
|
27
27
|
};
|
|
28
28
|
export type InputMessageType = keyof InputMessageMap;
|
|
29
29
|
export type InputMessage = InputMessageMap[InputMessageType];
|
|
30
|
-
export type InputMessageHandler<T extends "
|
|
30
|
+
export type InputMessageHandler<T extends import("./types").InputMessageType> = (message: import("./types").InputMessageMap[T]) => void;
|
|
31
31
|
export type ThemeDefinition = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
32
|
+
"--uc-font-family": string;
|
|
33
|
+
"--uc-font-size": string;
|
|
34
|
+
"--uc-line-height": string;
|
|
35
|
+
"--uc-button-size": string;
|
|
36
|
+
"--uc-preview-size": string;
|
|
37
|
+
"--uc-input-size": string;
|
|
38
|
+
"--uc-padding": string;
|
|
39
|
+
"--uc-radius": string;
|
|
40
|
+
"--uc-transition": string;
|
|
41
|
+
"--uc-background": string;
|
|
42
|
+
"--uc-foreground": string;
|
|
43
|
+
"--uc-primary": string;
|
|
44
|
+
"--uc-primary-hover": string;
|
|
45
|
+
"--uc-primary-transparent": string;
|
|
46
|
+
"--uc-primary-foreground": string;
|
|
47
|
+
"--uc-secondary": string;
|
|
48
|
+
"--uc-secondary-hover": string;
|
|
49
|
+
"--uc-secondary-foreground": string;
|
|
50
|
+
"--uc-muted": string;
|
|
51
|
+
"--uc-muted-foreground": string;
|
|
52
|
+
"--uc-destructive": string;
|
|
53
|
+
"--uc-destructive-foreground": string;
|
|
54
|
+
"--uc-border": string;
|
|
55
|
+
"--uc-primary-rgb-light": string;
|
|
56
|
+
"--uc-primary-light": string;
|
|
57
|
+
"--uc-primary-hover-light": string;
|
|
58
|
+
"--uc-primary-transparent-light": string;
|
|
59
|
+
"--uc-background-light": string;
|
|
60
|
+
"--uc-foreground-light": string;
|
|
61
|
+
"--uc-primary-foreground-light": string;
|
|
62
|
+
"--uc-secondary-light": string;
|
|
63
|
+
"--uc-secondary-hover-light": string;
|
|
64
|
+
"--uc-secondary-foreground-light": string;
|
|
65
|
+
"--uc-muted-light": string;
|
|
66
|
+
"--uc-muted-foreground-light": string;
|
|
67
|
+
"--uc-destructive-light": string;
|
|
68
|
+
"--uc-destructive-foreground-light": string;
|
|
69
|
+
"--uc-border-light": string;
|
|
70
|
+
"--uc-primary-rgb-dark": string;
|
|
71
|
+
"--uc-primary-dark": string;
|
|
72
|
+
"--uc-primary-hover-dark": string;
|
|
73
|
+
"--uc-primary-transparent-dark": string;
|
|
74
|
+
"--uc-background-dark": string;
|
|
75
|
+
"--uc-foreground-dark": string;
|
|
76
|
+
"--uc-primary-foreground-dark": string;
|
|
77
|
+
"--uc-secondary-dark": string;
|
|
78
|
+
"--uc-secondary-hover-dark": string;
|
|
79
|
+
"--uc-secondary-foreground-dark": string;
|
|
80
|
+
"--uc-muted-dark": string;
|
|
81
|
+
"--uc-muted-foreground-dark": string;
|
|
82
|
+
"--uc-destructive-dark": string;
|
|
83
|
+
"--uc-destructive-foreground-dark": string;
|
|
84
|
+
"--uc-border-dark": string;
|
|
85
|
+
"--uc-primary-oklch-light": string;
|
|
86
|
+
"--uc-primary-oklch-dark": string;
|
|
87
87
|
};
|
|
88
88
|
export type OutputMessage = {
|
|
89
|
-
type:
|
|
89
|
+
type: "select-all";
|
|
90
90
|
} | {
|
|
91
|
-
type:
|
|
91
|
+
type: "deselect-all";
|
|
92
92
|
} | {
|
|
93
|
-
type:
|
|
93
|
+
type: "set-theme-definition";
|
|
94
94
|
theme: Record<string, string>;
|
|
95
95
|
} | {
|
|
96
|
-
type:
|
|
96
|
+
type: "set-locale-definition";
|
|
97
97
|
localeDefinition: string;
|
|
98
98
|
} | {
|
|
99
|
-
type:
|
|
99
|
+
type: "set-embed-css";
|
|
100
100
|
css: string;
|
|
101
101
|
};
|
|
102
102
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"kCAGa;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"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"}
|
|
@@ -7,10 +7,6 @@ export class FileItem extends UploaderBlock {
|
|
|
7
7
|
*/
|
|
8
8
|
private _entry;
|
|
9
9
|
/** @private */
|
|
10
|
-
private _isIntersecting;
|
|
11
|
-
/** @private */
|
|
12
|
-
private _debouncedGenerateThumb;
|
|
13
|
-
/** @private */
|
|
14
10
|
private _debouncedCalculateState;
|
|
15
11
|
/** @private */
|
|
16
12
|
private _renderedOnce;
|
|
@@ -28,6 +24,7 @@ export class FileItem extends UploaderBlock {
|
|
|
28
24
|
isUploading: boolean;
|
|
29
25
|
isFocused: boolean;
|
|
30
26
|
isEditable: boolean;
|
|
27
|
+
showFileNames: boolean;
|
|
31
28
|
state: symbol;
|
|
32
29
|
ariaLabelStatusFile: string;
|
|
33
30
|
onEdit: () => void;
|
|
@@ -36,8 +33,8 @@ export class FileItem extends UploaderBlock {
|
|
|
36
33
|
'*commonProgress': number;
|
|
37
34
|
'*uploadList': never[];
|
|
38
35
|
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
39
|
-
'*collectionErrors':
|
|
40
|
-
'*collectionState': import("../../index.js").OutputCollectionState
|
|
36
|
+
'*collectionErrors': ReturnType<import("../../index.js").OutputErrorCollection>[];
|
|
37
|
+
'*collectionState': import("../../index.js").OutputCollectionState | null;
|
|
41
38
|
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
42
39
|
'*uploadTrigger': Set<string>;
|
|
43
40
|
'*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
@@ -53,6 +50,8 @@ export class FileItem extends UploaderBlock {
|
|
|
53
50
|
* @param {IntersectionObserverEntry[]} entries
|
|
54
51
|
*/
|
|
55
52
|
private _observerCallback;
|
|
53
|
+
_isIntersecting: boolean | undefined;
|
|
54
|
+
_thumbRect: DOMRectReadOnly | undefined;
|
|
56
55
|
/** @private */
|
|
57
56
|
private _calculateState;
|
|
58
57
|
/** @private */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["FileItem.js"],"names":[],"mappings":"AAoBA;IAIE,eAAe;IACf,mBAAuB;IACvB;;;OAGG;IACH,eAAc;
|
|
1
|
+
{"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["FileItem.js"],"names":[],"mappings":"AAoBA;IAIE,eAAe;IACf,mBAAuB;IACvB;;;OAGG;IACH,eAAc;IAEd,eAAe;IACf,iCAA0E;IAE1E,eAAe;IACf,sBAAsB;IAKpB;;;;;;;;;;;;;;;;;;;;;;;+CA9Bc,gBAAU;mCAGV,gBAAU;6BAGX,2BAGF;;wCAOZ,wCACW;;;;;;MA4CT;IAGH,eAQC;IAED;;;OAGG;IACH,0BAUC;IAPC,qCAA2C;IAC3C,wCAA0C;IAQ5C,eAAe;IACf,wBAgBC;IAED,eAAe;IACf,2BAuCC;IAED;;;;OAIG;IACH,kBAUC;IAED;;MAaQ;IAER;;;OAGG;IACH,uBAkCC;IAyDD,wEAAwE;IACxE,oBADY,CAAC,OAAO,aAAa,EAAE,MAAM,OAAO,aAAa,CAAC,QA0B7D;IAaC,eAAe;IACf,kBAEE;IAUJ;;;MAEC;IAED;;;OAGG;IACH,uBAEC;IAED,wBAsFC;CACF;;;;;8BApb6B,iCAAiC;AAS/D;;;;;GAKG"}
|
|
@@ -29,10 +29,7 @@ export class FileItem extends UploaderBlock {
|
|
|
29
29
|
* @type {any} TODO: Add types for upload entry
|
|
30
30
|
*/
|
|
31
31
|
_entry = null;
|
|
32
|
-
|
|
33
|
-
_isIntersecting = false;
|
|
34
|
-
/** @private */
|
|
35
|
-
_debouncedGenerateThumb = debounce(this._generateThumbnail.bind(this), 100);
|
|
32
|
+
|
|
36
33
|
/** @private */
|
|
37
34
|
_debouncedCalculateState = debounce(this._calculateState.bind(this), 100);
|
|
38
35
|
|
|
@@ -57,12 +54,14 @@ export class FileItem extends UploaderBlock {
|
|
|
57
54
|
isUploading: false,
|
|
58
55
|
isFocused: false,
|
|
59
56
|
isEditable: false,
|
|
57
|
+
showFileNames: false,
|
|
60
58
|
state: FileItemState.IDLE,
|
|
61
59
|
ariaLabelStatusFile: '',
|
|
62
60
|
onEdit: () => {
|
|
63
61
|
this.$['*currentActivityParams'] = {
|
|
64
62
|
internalId: this._entry.uid,
|
|
65
63
|
};
|
|
64
|
+
this.modalManager.open(ActivityBlock.activities.CLOUD_IMG_EDIT);
|
|
66
65
|
this.$['*currentActivity'] = ActivityBlock.activities.CLOUD_IMG_EDIT;
|
|
67
66
|
},
|
|
68
67
|
onRemove: () => {
|
|
@@ -79,7 +78,6 @@ export class FileItem extends UploaderBlock {
|
|
|
79
78
|
sub.remove();
|
|
80
79
|
}
|
|
81
80
|
|
|
82
|
-
this._debouncedGenerateThumb.cancel();
|
|
83
81
|
this._debouncedCalculateState.cancel();
|
|
84
82
|
this._entrySubs = new Set();
|
|
85
83
|
this._entry = null;
|
|
@@ -91,17 +89,14 @@ export class FileItem extends UploaderBlock {
|
|
|
91
89
|
*/
|
|
92
90
|
_observerCallback(entries) {
|
|
93
91
|
let [entry] = entries;
|
|
92
|
+
|
|
94
93
|
this._isIntersecting = entry.isIntersecting;
|
|
94
|
+
this._thumbRect = entry.boundingClientRect;
|
|
95
95
|
|
|
96
96
|
if (entry.isIntersecting && !this._renderedOnce) {
|
|
97
97
|
this.render();
|
|
98
98
|
this._renderedOnce = true;
|
|
99
99
|
}
|
|
100
|
-
if (entry.intersectionRatio === 0) {
|
|
101
|
-
this._debouncedGenerateThumb.cancel();
|
|
102
|
-
} else {
|
|
103
|
-
this._debouncedGenerateThumb();
|
|
104
|
-
}
|
|
105
100
|
}
|
|
106
101
|
|
|
107
102
|
/** @private */
|
|
@@ -131,7 +126,12 @@ export class FileItem extends UploaderBlock {
|
|
|
131
126
|
let entry = this._entry;
|
|
132
127
|
|
|
133
128
|
if (entry.getValue('fileInfo') && entry.getValue('isImage')) {
|
|
134
|
-
let size =
|
|
129
|
+
let size = Math.max(
|
|
130
|
+
parseInt(String(this?._thumbRect?.height || 0)),
|
|
131
|
+
parseInt(String(this?._thumbRect?.width || 0)),
|
|
132
|
+
this.cfg.thumbSize,
|
|
133
|
+
);
|
|
134
|
+
|
|
135
135
|
let thumbUrl = await this.proxyUrl(
|
|
136
136
|
createCdnUrl(
|
|
137
137
|
createOriginalUrl(this.cfg.cdnCname, this._entry.getValue('uuid')),
|
|
@@ -146,10 +146,6 @@ export class FileItem extends UploaderBlock {
|
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
if (entry.getValue('thumbUrl')) {
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
149
|
if (entry.getValue('file')?.type.includes('image')) {
|
|
154
150
|
try {
|
|
155
151
|
let thumbUrl = await generateThumb(entry.getValue('file'), this.cfg.thumbSize);
|
|
@@ -225,21 +221,8 @@ export class FileItem extends UploaderBlock {
|
|
|
225
221
|
this.$.itemName = entry.getValue('fileName') || externalUrl || this.l10n('file-no-name');
|
|
226
222
|
});
|
|
227
223
|
|
|
228
|
-
this._subEntry('fileInfo', (
|
|
224
|
+
this._subEntry('fileInfo', () => {
|
|
229
225
|
this._debouncedCalculateState();
|
|
230
|
-
if (fileInfo && this._isIntersecting) {
|
|
231
|
-
this._debouncedGenerateThumb();
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
|
|
235
|
-
this._subEntry('cdnUrlModifiers', () => {
|
|
236
|
-
if (this._isIntersecting) {
|
|
237
|
-
this._debouncedGenerateThumb();
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
|
|
241
|
-
this._subEntry('thumbUrl', (thumbUrl) => {
|
|
242
|
-
this.$.thumbUrl = thumbUrl ? `url(${thumbUrl})` : '';
|
|
243
226
|
});
|
|
244
227
|
|
|
245
228
|
this._subEntry('errors', () => this._debouncedCalculateState());
|
|
@@ -247,10 +230,6 @@ export class FileItem extends UploaderBlock {
|
|
|
247
230
|
this._subEntry('fileSize', () => this._debouncedCalculateState());
|
|
248
231
|
this._subEntry('mimeType', () => this._debouncedCalculateState());
|
|
249
232
|
this._subEntry('isImage', () => this._debouncedCalculateState());
|
|
250
|
-
|
|
251
|
-
if (this._isIntersecting) {
|
|
252
|
-
this._debouncedGenerateThumb();
|
|
253
|
-
}
|
|
254
233
|
}
|
|
255
234
|
|
|
256
235
|
initCallback() {
|
|
@@ -265,6 +244,25 @@ export class FileItem extends UploaderBlock {
|
|
|
265
244
|
});
|
|
266
245
|
|
|
267
246
|
this.subConfigValue('useCloudImageEditor', () => this._debouncedCalculateState());
|
|
247
|
+
this.subConfigValue('filesViewMode', (mode) => {
|
|
248
|
+
if (this.cfg.filesViewMode === 'list') {
|
|
249
|
+
this.$.showFileNames = true;
|
|
250
|
+
}
|
|
251
|
+
if (this.cfg.filesViewMode === 'grid') {
|
|
252
|
+
this.$.showFileNames = this.cfg.gridShowFileNames;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
this.setAttribute('mode', mode);
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
this.subConfigValue('gridShowFileNames', (value) => {
|
|
259
|
+
if (this.cfg.filesViewMode === 'grid') {
|
|
260
|
+
this.$.showFileNames = value;
|
|
261
|
+
}
|
|
262
|
+
if (this.cfg.filesViewMode === 'list') {
|
|
263
|
+
this.$.showFileNames = true;
|
|
264
|
+
}
|
|
265
|
+
});
|
|
268
266
|
|
|
269
267
|
this.onclick = () => {
|
|
270
268
|
FileItem.activeInstances.forEach((inst) => {
|
|
@@ -338,7 +336,6 @@ export class FileItem extends UploaderBlock {
|
|
|
338
336
|
disconnectedCallback() {
|
|
339
337
|
super.disconnectedCallback();
|
|
340
338
|
|
|
341
|
-
this._debouncedGenerateThumb.cancel();
|
|
342
339
|
this._observer?.disconnect();
|
|
343
340
|
}
|
|
344
341
|
|
|
@@ -445,14 +442,11 @@ export class FileItem extends UploaderBlock {
|
|
|
445
442
|
|
|
446
443
|
FileItem.template = /* HTML */ `
|
|
447
444
|
<div class="uc-inner" set="@finished: isFinished; @uploading: isUploading; @failed: isFailed; @focused: isFocused">
|
|
448
|
-
<
|
|
449
|
-
|
|
450
|
-
<uc-icon set="@name: badgeIcon"></uc-icon>
|
|
451
|
-
</div>
|
|
452
|
-
</div>
|
|
445
|
+
<uc-thumb set="uid:uid;badgeIcon:badgeIcon"></uc-thumb>
|
|
446
|
+
|
|
453
447
|
<div aria-atomic="true" aria-live="polite" class="uc-file-name-wrapper" set="@aria-label:ariaLabelStatusFile;">
|
|
454
|
-
<span class="uc-file-name">{{itemName}}</span>
|
|
455
|
-
<span class="uc-file-error" set="@hidden: !errorText">{{errorText}}</span>
|
|
448
|
+
<span class="uc-file-name" set="@hidden: !showFileNames">{{itemName}}</span>
|
|
449
|
+
<span class="uc-file-error" set="@hidden: !errorText;">{{errorText}}</span>
|
|
456
450
|
<span class="uc-file-hint" set="@hidden: !hint">{{hint}}</span>
|
|
457
451
|
</div>
|
|
458
452
|
<div class="uc-file-actions">
|
|
@@ -476,7 +470,11 @@ FileItem.template = /* HTML */ `
|
|
|
476
470
|
<uc-icon name="upload"></uc-icon>
|
|
477
471
|
</button>
|
|
478
472
|
</div>
|
|
479
|
-
<uc-progress-bar
|
|
473
|
+
<uc-progress-bar
|
|
474
|
+
class="uc-progress-bar"
|
|
475
|
+
set="value: progressValue; visible: progressVisible; @hasFileName: showFileNames"
|
|
476
|
+
>
|
|
477
|
+
</uc-progress-bar>
|
|
480
478
|
</div>
|
|
481
479
|
`;
|
|
482
480
|
FileItem.activeInstances = new Set();
|
|
@@ -45,6 +45,7 @@ uc-file-item .uc-thumb {
|
|
|
45
45
|
height: var(--uc-preview-size);
|
|
46
46
|
background-color: var(--uc-secondary);
|
|
47
47
|
background-position: center center;
|
|
48
|
+
background-repeat: no-repeat;
|
|
48
49
|
background-size: cover;
|
|
49
50
|
border-radius: var(--uc-radius);
|
|
50
51
|
}
|
|
@@ -142,3 +143,92 @@ uc-file-item .uc-file-actions {
|
|
|
142
143
|
align-items: center;
|
|
143
144
|
justify-content: center;
|
|
144
145
|
}
|
|
146
|
+
|
|
147
|
+
/* File item in the grid */
|
|
148
|
+
uc-file-item[mode='grid'] {
|
|
149
|
+
overflow: visible;
|
|
150
|
+
min-height: initial;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
uc-file-item[mode='grid'] .uc-inner {
|
|
154
|
+
height: 100%;
|
|
155
|
+
grid-template-columns: 1fr;
|
|
156
|
+
grid-template-rows: 1fr max-content;
|
|
157
|
+
padding: 0;
|
|
158
|
+
background-color: transparent;
|
|
159
|
+
margin-bottom: 0;
|
|
160
|
+
border-radius: 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
uc-file-item[mode='grid'] .uc-inner[failed] .uc-badge {
|
|
164
|
+
display: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
uc-file-item[mode='grid'] .uc-thumb {
|
|
168
|
+
width: 100%;
|
|
169
|
+
height: 100%;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
uc-file-item[mode='grid'] .uc-badge {
|
|
173
|
+
right: var(--uc-padding);
|
|
174
|
+
bottom: var(--uc-padding);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
uc-file-item[mode='grid'] .uc-file-name-wrapper {
|
|
178
|
+
padding: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
uc-file-item[mode='grid'] .uc-file-name:not([hidden]) + .uc-file-error {
|
|
182
|
+
bottom: calc(var(--uc-padding) + var(--uc-font-size));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
uc-file-item[mode='grid'] .uc-file-error {
|
|
186
|
+
position: absolute;
|
|
187
|
+
background-color: var(--uc-destructive-foreground);
|
|
188
|
+
border-radius: var(--uc-radius);
|
|
189
|
+
color: var(--uc-background);
|
|
190
|
+
bottom: var(--uc-padding);
|
|
191
|
+
left: var(--uc-padding);
|
|
192
|
+
right: var(--uc-padding);
|
|
193
|
+
padding: calc(var(--uc-padding) / 2) var(--uc-padding);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
uc-file-item[mode='grid'] .uc-file-actions {
|
|
197
|
+
position: absolute;
|
|
198
|
+
top: var(--uc-padding);
|
|
199
|
+
right: var(--uc-padding);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
uc-file-item[mode='grid'] button {
|
|
203
|
+
background-color: var(--uc-background);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
uc-file-item[mode='grid'] button:hover {
|
|
207
|
+
background-color: var(--uc-muted);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
uc-file-item[mode='grid'] .uc-progress-bar {
|
|
211
|
+
width: initial;
|
|
212
|
+
height: 4px !important;
|
|
213
|
+
opacity: 1;
|
|
214
|
+
top: initial !important;
|
|
215
|
+
bottom: var(--uc-padding);
|
|
216
|
+
left: var(--uc-padding);
|
|
217
|
+
right: var(--uc-padding);
|
|
218
|
+
border-radius: var(--uc-radius);
|
|
219
|
+
background-color: var(--uc-background);
|
|
220
|
+
z-index: 1;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
uc-file-item[mode='grid'] .uc-progress-bar.uc-progress-bar--hidden {
|
|
224
|
+
opacity: 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
uc-file-item[mode='grid'] .uc-progress-bar[hasfilename] {
|
|
228
|
+
bottom: calc(var(--uc-padding) + var(--uc-font-size));
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
uc-file-item[mode='grid'] .uc-progress-bar .uc-progress {
|
|
232
|
+
background-color: var(--uc-primary);
|
|
233
|
+
opacity: 0.7;
|
|
234
|
+
}
|
package/blocks/Img/ImgBase.d.ts
CHANGED
|
@@ -12,14 +12,14 @@ export class ImgBase extends ImgConfig {
|
|
|
12
12
|
* @param {String} [size]
|
|
13
13
|
* @returns {String | Number}
|
|
14
14
|
*/
|
|
15
|
-
_validateSize(size?: string
|
|
15
|
+
_validateSize(size?: string): string | number;
|
|
16
16
|
/**
|
|
17
17
|
* Image operations
|
|
18
18
|
*
|
|
19
19
|
* @param {String} [size]
|
|
20
20
|
* @param {String} [blur]
|
|
21
21
|
*/
|
|
22
|
-
_getCdnModifiers(size?: string
|
|
22
|
+
_getCdnModifiers(size?: string, blur?: string): string;
|
|
23
23
|
/**
|
|
24
24
|
* @private
|
|
25
25
|
* @param {String} [size]
|
|
@@ -38,7 +38,7 @@ export class ImgBase extends ImgConfig {
|
|
|
38
38
|
* @param {Number} [k]
|
|
39
39
|
* @param {Boolean} [wOnly]
|
|
40
40
|
*/
|
|
41
|
-
_getElSize(el: HTMLElement, k?: number
|
|
41
|
+
_getElSize(el: HTMLElement, k?: number, wOnly?: boolean): string | null;
|
|
42
42
|
/** @param {HTMLImageElement} img */
|
|
43
43
|
_setupEventProxy(img: HTMLImageElement): void;
|
|
44
44
|
/** @type {HTMLImageElement} */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImgBase.d.ts","sourceRoot":"","sources":["ImgBase.js"],"names":[],"mappings":"AAgBA;IACE,uBAAmB;IACnB,8BAA0B;IAE1B;;;OAGG;IACH,gBAMC;IAED;;;;;OAKG;IACH,
|
|
1
|
+
{"version":3,"file":"ImgBase.d.ts","sourceRoot":"","sources":["ImgBase.js"],"names":[],"mappings":"AAgBA;IACE,uBAAmB;IACnB,8BAA0B;IAE1B;;;OAGG;IACH,gBAMC;IAED;;;;;OAKG;IACH,8BAFa,eAAe,CAoB3B;IAED;;;;;OAKG;IACH,uDAWC;IAED;;;;;OAKG;IACH,oBA6DC;IAED;;;;OAIG;IACH,kBAUC;IAED;;;;OAIG;IACH,eAJW,WAAW,8CAcrB;IAED,oCAAoC;IACpC,sBADY,gBAAgB,QAY3B;IAED,+BAA+B;IAC/B,WADW,gBAAgB,CAO1B;IAED;;;;;;MAUC;IAED,2BAEC;IAED,sBAEC;IAED,mCAOC;IAED,4BAEC;IAED,8BAA8B;IAC9B,aADY,WAAW,QAgBtB;IAED,oBAsBC;IAED,cAEC;IAED,yBAEC;IAED,yBAUC;IAED;;;;aAQC;IAED;;aAGC;IAED;;;;qBAqBC;IAED,6BA8DC;IAED,aAMC;CACF;0BAlZyB,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImgConfig.d.ts","sourceRoot":"","sources":["ImgConfig.js"],"names":[],"mappings":"AAUA;IAkFE,0CAEC
|
|
1
|
+
{"version":3,"file":"ImgConfig.d.ts","sourceRoot":"","sources":["ImgConfig.js"],"names":[],"mappings":"AAUA;IAkFE,0CAEC;;IAnFD,cAAqB;IAErB;;;OAGG;IACH,iBAFa,GAAG,CAIf;IAED,qDAAqD;IACrD,wBAIC;IAED;;;OAGG;IACH,yBAFW,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,QAW5B;IAED,0BAEC;IAED,8BAMC;IAED;;;OAGG;IACH,qBAHW,WAAW,SACX,MAAM,IAAI,QAsBpB;IAfC,eAAe;IACf,qBAOQ;IAGN,eAAe;IACf,kBAA0B;IAoB9B,oEAIC;CACF;8BArGmC,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurations.d.ts","sourceRoot":"","sources":["configurations.js"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"configurations.d.ts","sourceRoot":"","sources":["configurations.js"],"names":[],"mappings":"AAAA,uBAAwB,WAAW,CAAC;AACpC,8BAA+B,YAAY,CAAC;AAC5C,uBAAwB,CAAC,CAAC;AAC1B,0BAA2B,CAAC,CAAC;AAC7B,+BACuH;AAEvH,wBAAyB,IAAI,CAAC;AAC9B,4BAA6B,IAAI,CAAC;AAElC;;;GAGG"}
|
package/blocks/Modal/Modal.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export class Modal extends Block {
|
|
2
2
|
static StateConsumerScope: string;
|
|
3
3
|
init$: {
|
|
4
|
-
'*modalActive': boolean;
|
|
5
|
-
isOpen: boolean;
|
|
6
4
|
closeClicked: () => void;
|
|
7
5
|
};
|
|
8
6
|
_handleBackdropClick: () => void;
|
|
@@ -16,6 +14,27 @@ export class Modal extends Block {
|
|
|
16
14
|
_handleDialogMouseUp: (e: Event) => void;
|
|
17
15
|
show(): void;
|
|
18
16
|
hide(): void;
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* @type {import('../../abstract/ModalManager.js').ModalCb}
|
|
20
|
+
*/
|
|
21
|
+
private _handleModalOpen;
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
* @type {import('../../abstract/ModalManager.js').ModalCb}
|
|
25
|
+
*/
|
|
26
|
+
private _handleModalClose;
|
|
27
|
+
/** @private */
|
|
28
|
+
private _handleModalCloseAll;
|
|
29
|
+
handleModalOpen: ((data: {
|
|
30
|
+
id: import("../../abstract/ModalManager.js").ModalId;
|
|
31
|
+
modal?: import("../../abstract/ModalManager.js").ModalNode;
|
|
32
|
+
}) => void) | undefined;
|
|
33
|
+
handleModalClose: ((data: {
|
|
34
|
+
id: import("../../abstract/ModalManager.js").ModalId;
|
|
35
|
+
modal?: import("../../abstract/ModalManager.js").ModalNode;
|
|
36
|
+
}) => void) | undefined;
|
|
37
|
+
handleModalCloseAll: (() => void) | undefined;
|
|
19
38
|
}
|
|
20
39
|
export namespace Modal {
|
|
21
40
|
let template: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["Modal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["Modal.js"],"names":[],"mappings":"AAIA;IAEE,kCAAoC;IAIlC;;MAGC;IAGH,iCAEE;IAEF,yBAME;IAEF,+BAEE;IAEF,uBAAuB;IACvB,yBAA0B,GADd,KACe,UAGzB;IAFA,eAAe;IACf,yBAAgC;IAGlC,uBAAuB;IACvB,uBAAwB,GADZ,KACa,UAIvB;IAEF,aAWC;IAED,aAOC;IAED;;;OAGG;IACH,yBAMC;IAED;;;OAGG;IACH,0BAIC;IAED,eAAe;IACf,6BAEC;IAmBC;;aAnGY,CAAC;4BAmG0C;IACvD;;aApGY,CAAC;4BAoG4C;IACzD,8CAA+D;CAmBlE;;;;sBAnIqB,yBAAyB"}
|