@uploadcare/file-uploader 1.11.0-alpha.0 → 1.11.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocks/CameraSource/CameraSource.d.ts +169 -22
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
- package/blocks/CameraSource/CameraSource.js +805 -126
- package/blocks/CameraSource/camera-source.css +105 -7
- package/blocks/CloudImageEditorActivity/index.css +3 -3
- package/blocks/Config/Config.d.ts +4 -2
- package/blocks/Config/Config.d.ts.map +1 -1
- package/blocks/Config/Config.js +2 -0
- package/blocks/Config/initialConfig.d.ts +1 -1
- package/blocks/Config/initialConfig.d.ts.map +1 -1
- package/blocks/Config/initialConfig.js +7 -1
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
- package/blocks/Config/normalizeConfigValue.js +17 -1
- package/blocks/ExternalSource/ExternalSource.d.ts +50 -20
- package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.js +99 -96
- 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 +22 -37
- 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/LocalEditorImage/LocalEditorImage.d.ts +22 -0
- package/blocks/LocalEditorImage/LocalEditorImage.d.ts.map +1 -0
- package/blocks/LocalEditorImage/LocalEditorImage.js +139 -0
- package/blocks/LocalEditorImage/localEditorImage.css +19 -0
- package/blocks/Modal/Modal.d.ts.map +1 -1
- package/blocks/Modal/Modal.js +11 -4
- package/blocks/Modal/modal.css +54 -3
- package/blocks/StartFrom/start-from.css +6 -2
- package/blocks/UploadList/upload-list.css +11 -1
- package/blocks/UrlSource/url-source.css +8 -0
- package/blocks/themes/uc-basic/common.css +5 -0
- package/blocks/themes/uc-basic/svg-sprite.d.ts +1 -1
- package/blocks/themes/uc-basic/svg-sprite.js +1 -1
- package/blocks/themes/uc-basic/theme.css +3 -2
- package/env.d.ts +1 -1
- package/env.d.ts.map +1 -1
- package/env.js +1 -1
- package/index.ssr.d.ts +15 -1
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +82 -9
- package/locales/file-uploader/en.d.ts +0 -2
- package/locales/file-uploader/en.js +1 -3
- package/locales/file-uploader/fi.d.ts +120 -0
- package/locales/file-uploader/fi.d.ts.map +1 -0
- package/locales/file-uploader/fi.js +120 -0
- package/package.json +1 -1
- package/types/exported.d.ts +21 -0
- package/web/file-uploader.iife.min.js +4 -4
- package/web/file-uploader.min.js +4 -4
- package/web/uc-basic.min.css +1 -1
- package/web/uc-cloud-image-editor.min.css +1 -1
- package/web/uc-cloud-image-editor.min.js +4 -4
- package/web/uc-file-uploader-inline.min.css +1 -1
- package/web/uc-file-uploader-inline.min.js +4 -4
- package/web/uc-file-uploader-minimal.min.css +1 -1
- package/web/uc-file-uploader-minimal.min.js +3 -3
- package/web/uc-file-uploader-regular.min.css +1 -1
- package/web/uc-file-uploader-regular.min.js +4 -4
- package/web/uc-img.min.js +1 -1
- package/blocks/ExternalSource/MessageBridge.d.ts +0 -20
- package/blocks/ExternalSource/MessageBridge.d.ts.map +0 -1
- package/blocks/ExternalSource/MessageBridge.js +0 -71
- package/blocks/ExternalSource/buildThemeDefinition.d.ts +0 -3
- package/blocks/ExternalSource/buildThemeDefinition.d.ts.map +0 -1
- package/blocks/ExternalSource/buildThemeDefinition.js +0 -47
- package/blocks/ExternalSource/types.d.ts +0 -113
- package/blocks/ExternalSource/types.d.ts.map +0 -1
- package/blocks/ExternalSource/types.js +0 -143
package/index.ssr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ssr.d.ts","sourceRoot":"","sources":["index.ssr.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;EAcE;AACF;;;;;;;;;;;;;;;EAcE;AACF;;;;;EAIE;AACF;;;;;;EAKE;AACF;;;;;;;;EAYE;AACF
|
|
1
|
+
{"version":3,"file":"index.ssr.d.ts","sourceRoot":"","sources":["index.ssr.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;EAcE;AACF;;;;;;;;;;;;;;;EAcE;AACF;;;;;EAIE;AACF;;;;;;EAKE;AACF;;;;;;;;EAYE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuJE;AACF;;;;;;;;EAuCE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;EAuCE;AACF;;;;;;;EAkGE;AACF;;;;;;;EAaE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;EAeE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEE;AACF;;;;;;;EAWE;AACF;;;;;;;EAWE;AACF;;;;;;;EASE;AACF;;;;;;EAKE;AACF;;;;;;;EAWE;AACF;;;;;;;EAME;AACF;;;;;;;EAWE;AACF;;;;;;;EA2IE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgFE;;;;;;;;;;;;;;AAcF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFE;AACF;;;;;;EAKE;AACF;;;;;;EAKE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;EAWE;AACF;;;;;;EAwBE;AACF;;;;;;;EAUE;AACF;;;;;;;;EAWE;AACF,oCAAqC;AACrC,uCAAwC;AACxC;;;;;;;EAME;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DE;AACF;;;;;;;EAeE;AACF;;;;;;EAKE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDE;AACF;;;;;;EAKE;AACF;;;;;;;;;;;;;;;;EAeE;AACF;;;;;;;;;;;;EAWE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8FE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2EE;AACK,yCAAiC;AACjC,qCAA6B;AAC7B,6CAAqC;AACrC,oCAA4B"}
|
package/index.ssr.js
CHANGED
|
@@ -53,6 +53,17 @@ export const BtnUi = class {
|
|
|
53
53
|
static bindAttributes = () => {};
|
|
54
54
|
};
|
|
55
55
|
export const CameraSource = class {
|
|
56
|
+
static types = { PHOTO: "photo", VIDEO: "video" };
|
|
57
|
+
static events = {
|
|
58
|
+
IDLE: "idle",
|
|
59
|
+
SHOT: "shot",
|
|
60
|
+
PLAY: "play",
|
|
61
|
+
PAUSE: "pause",
|
|
62
|
+
RESUME: "resume",
|
|
63
|
+
STOP: "stop",
|
|
64
|
+
RETAKE: "retake",
|
|
65
|
+
ACCEPT: "accept",
|
|
66
|
+
};
|
|
56
67
|
static template = `
|
|
57
68
|
<uc-activity-header>
|
|
58
69
|
<button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
|
|
@@ -78,6 +89,7 @@ export const CameraSource = class {
|
|
|
78
89
|
</uc-activity-header>
|
|
79
90
|
<div class="uc-content">
|
|
80
91
|
<video
|
|
92
|
+
muted
|
|
81
93
|
autoplay
|
|
82
94
|
playsinline
|
|
83
95
|
set="srcObject: video; style.transform: videoTransformCss; @hidden: videoHidden"
|
|
@@ -91,9 +103,58 @@ export const CameraSource = class {
|
|
|
91
103
|
l10n="camera-permissions-request"
|
|
92
104
|
></button>
|
|
93
105
|
</div>
|
|
94
|
-
|
|
95
|
-
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<div class="uc-controls">
|
|
109
|
+
<div ref="switcher" class="uc-switcher" set="@hidden:!timerHidden">
|
|
110
|
+
<button
|
|
111
|
+
data-id="photo"
|
|
112
|
+
type="button"
|
|
113
|
+
class="uc-switch uc-mini-btn"
|
|
114
|
+
set="onclick: onClickTab; @hidden: tabCameraHidden"
|
|
115
|
+
>
|
|
116
|
+
<uc-icon name="camera"></uc-icon>
|
|
117
|
+
</button>
|
|
118
|
+
<button
|
|
119
|
+
data-id="video"
|
|
120
|
+
type="button"
|
|
121
|
+
class="uc-switch uc-mini-btn"
|
|
122
|
+
set="onclick: onClickTab; @hidden: tabVideoHidden"
|
|
123
|
+
>
|
|
124
|
+
<uc-icon name="video-camera"></uc-icon>
|
|
125
|
+
</button>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
<button class="uc-secondary-btn uc-recording-timer" set="@hidden:timerHidden; onclick: onToggleRecording">
|
|
129
|
+
<uc-icon set="@name: currentTimelineIcon"></uc-icon>
|
|
130
|
+
<span ref="timer"> 00:00 </span>
|
|
131
|
+
<span ref="line" class="uc-line"></span>
|
|
132
|
+
</button>
|
|
133
|
+
|
|
134
|
+
<div class="uc-camera-actions uc-camera-action" set="@hidden: cameraActionsHidden">
|
|
135
|
+
<button type="button" class="uc-secondary-btn" set="onclick: onRetake">Retake</button>
|
|
136
|
+
<button type="button" class="uc-primary-btn" set="onclick: onAccept">Accept</button>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<button
|
|
140
|
+
type="button"
|
|
141
|
+
class="uc-shot-btn uc-camera-action"
|
|
142
|
+
set="onclick: onStartCamera; @class: mutableClassButton; @hidden: cameraHidden;"
|
|
143
|
+
>
|
|
144
|
+
<uc-icon set="@name: currentIcon"></uc-icon>
|
|
96
145
|
</button>
|
|
146
|
+
|
|
147
|
+
<div class="uc-select">
|
|
148
|
+
<button class="uc-mini-btn uc-btn-microphone" set="onclick: onToggleAudio; @hidden: audioToggleMicorphoneHidden;">
|
|
149
|
+
<uc-icon set="@name:toggleMicorphoneIcon"></uc-icon>
|
|
150
|
+
</button>
|
|
151
|
+
|
|
152
|
+
<uc-select
|
|
153
|
+
class="uc-audio-select"
|
|
154
|
+
set="$.options: audioSelectOptions; onchange: onAudioSelectChange; @hidden: audioSelectHidden; @disabled: audioSelectDisabled"
|
|
155
|
+
>
|
|
156
|
+
</uc-select>
|
|
157
|
+
</div>
|
|
97
158
|
</div>
|
|
98
159
|
`;
|
|
99
160
|
static extSrcList = {
|
|
@@ -317,6 +378,10 @@ export const Config = class {
|
|
|
317
378
|
"user-agent-integration",
|
|
318
379
|
"locale-name",
|
|
319
380
|
"secure-uploads-expire-threshold",
|
|
381
|
+
"default-camera-tab",
|
|
382
|
+
"enable-audio-recording",
|
|
383
|
+
"enable-video-recording",
|
|
384
|
+
"max-duration-video-record",
|
|
320
385
|
"multiplemin",
|
|
321
386
|
"multiplemax",
|
|
322
387
|
"confirmupload",
|
|
@@ -356,6 +421,10 @@ export const Config = class {
|
|
|
356
421
|
"useragentintegration",
|
|
357
422
|
"localename",
|
|
358
423
|
"secureuploadsexpirethreshold",
|
|
424
|
+
"defaultcameratab",
|
|
425
|
+
"enableaudiorecording",
|
|
426
|
+
"enablevideorecording",
|
|
427
|
+
"maxdurationvideorecord",
|
|
359
428
|
];
|
|
360
429
|
static reg = () => {};
|
|
361
430
|
static styleAttrs = [];
|
|
@@ -680,6 +749,13 @@ export const EditorToolbar = class {
|
|
|
680
749
|
export const ExternalSource = class {
|
|
681
750
|
static template = `
|
|
682
751
|
<uc-activity-header>
|
|
752
|
+
<button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
|
|
753
|
+
<uc-icon name="back"></uc-icon>
|
|
754
|
+
</button>
|
|
755
|
+
<div>
|
|
756
|
+
<uc-icon set="@name: activityIcon"></uc-icon>
|
|
757
|
+
<span>{{activityCaption}}</span>
|
|
758
|
+
</div>
|
|
683
759
|
<button
|
|
684
760
|
type="button"
|
|
685
761
|
class="uc-mini-btn uc-close-btn"
|
|
@@ -693,15 +769,12 @@ export const ExternalSource = class {
|
|
|
693
769
|
<div ref="iframeWrapper" class="uc-iframe-wrapper"></div>
|
|
694
770
|
<div class="uc-toolbar">
|
|
695
771
|
<button type="button" class="uc-cancel-btn uc-secondary-btn" set="onclick: onCancel" l10n="cancel"></button>
|
|
696
|
-
<div
|
|
697
|
-
|
|
698
|
-
<button type="button" set="onclick: onSelectAll; @hidden: !couldSelectAll" l10n="select-all"></button>
|
|
699
|
-
<button type="button" set="onclick: onDeselectAll; @hidden: !couldDeselectAll" l10n="deselect-all"></button>
|
|
700
|
-
</div>
|
|
772
|
+
<div></div>
|
|
773
|
+
<div set="@hidden: !multiple" class="uc-selected-counter"><span l10n="selected-count"></span>{{counter}}</div>
|
|
701
774
|
<button
|
|
702
775
|
type="button"
|
|
703
776
|
class="uc-done-btn uc-primary-btn"
|
|
704
|
-
set="onclick: onDone; @disabled: !
|
|
777
|
+
set="onclick: onDone; @disabled: !counter"
|
|
705
778
|
l10n="done"
|
|
706
779
|
></button>
|
|
707
780
|
</div>
|
|
@@ -979,7 +1052,7 @@ export const Modal = class {
|
|
|
979
1052
|
static bindAttributes = () => {};
|
|
980
1053
|
};
|
|
981
1054
|
export const PACKAGE_NAME = `blocks`;
|
|
982
|
-
export const PACKAGE_VERSION = `1.
|
|
1055
|
+
export const PACKAGE_VERSION = `1.10.0`;
|
|
983
1056
|
export const PresenceToggle = class {
|
|
984
1057
|
static template = `<slot></slot> `;
|
|
985
1058
|
static reg = () => {};
|
|
@@ -26,9 +26,7 @@ export default {
|
|
|
26
26
|
yes: 'Yes',
|
|
27
27
|
'confirm-your-action': 'Confirm your action',
|
|
28
28
|
'are-you-sure': 'Are you sure?',
|
|
29
|
-
'selected-count': '
|
|
30
|
-
'select-all': 'Select all',
|
|
31
|
-
'deselect-all': 'Deselect all',
|
|
29
|
+
'selected-count': 'Selected:',
|
|
32
30
|
'upload-error': 'Upload error',
|
|
33
31
|
'validation-error': 'Validation error',
|
|
34
32
|
'no-files': 'No files selected',
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'locale-id': string;
|
|
3
|
+
'social-source-lang': string;
|
|
4
|
+
'upload-file': string;
|
|
5
|
+
'upload-files': string;
|
|
6
|
+
'choose-file': string;
|
|
7
|
+
'choose-files': string;
|
|
8
|
+
'drop-files-here': string;
|
|
9
|
+
'select-file-source': string;
|
|
10
|
+
selected: string;
|
|
11
|
+
upload: string;
|
|
12
|
+
'add-more': string;
|
|
13
|
+
cancel: string;
|
|
14
|
+
'start-from-cancel': string;
|
|
15
|
+
clear: string;
|
|
16
|
+
'camera-shot': string;
|
|
17
|
+
'upload-url': string;
|
|
18
|
+
'upload-url-placeholder': string;
|
|
19
|
+
'edit-image': string;
|
|
20
|
+
'edit-detail': string;
|
|
21
|
+
back: string;
|
|
22
|
+
done: string;
|
|
23
|
+
ok: string;
|
|
24
|
+
'remove-from-list': string;
|
|
25
|
+
no: string;
|
|
26
|
+
yes: string;
|
|
27
|
+
'confirm-your-action': string;
|
|
28
|
+
'are-you-sure': string;
|
|
29
|
+
'selected-count': string;
|
|
30
|
+
'upload-error': string;
|
|
31
|
+
'validation-error': string;
|
|
32
|
+
'no-files': string;
|
|
33
|
+
browse: string;
|
|
34
|
+
'not-uploaded-yet': string;
|
|
35
|
+
file__one: string;
|
|
36
|
+
file__other: string;
|
|
37
|
+
error__one: string;
|
|
38
|
+
error__other: string;
|
|
39
|
+
'header-uploading': string;
|
|
40
|
+
'header-failed': string;
|
|
41
|
+
'header-succeed': string;
|
|
42
|
+
'header-total': string;
|
|
43
|
+
'src-type-local': string;
|
|
44
|
+
'src-type-from-url': string;
|
|
45
|
+
'src-type-camera': string;
|
|
46
|
+
'src-type-draw': string;
|
|
47
|
+
'src-type-facebook': string;
|
|
48
|
+
'src-type-dropbox': string;
|
|
49
|
+
'src-type-gdrive': string;
|
|
50
|
+
'src-type-gphotos': string;
|
|
51
|
+
'src-type-instagram': string;
|
|
52
|
+
'src-type-flickr': string;
|
|
53
|
+
'src-type-vk': string;
|
|
54
|
+
'src-type-evernote': string;
|
|
55
|
+
'src-type-box': string;
|
|
56
|
+
'src-type-onedrive': string;
|
|
57
|
+
'src-type-huddle': string;
|
|
58
|
+
'src-type-other': string;
|
|
59
|
+
'caption-from-url': string;
|
|
60
|
+
'caption-camera': string;
|
|
61
|
+
'caption-draw': string;
|
|
62
|
+
'caption-edit-file': string;
|
|
63
|
+
'file-no-name': string;
|
|
64
|
+
'toggle-fullscreen': string;
|
|
65
|
+
'toggle-guides': string;
|
|
66
|
+
rotate: string;
|
|
67
|
+
'flip-vertical': string;
|
|
68
|
+
'flip-horizontal': string;
|
|
69
|
+
apply: string;
|
|
70
|
+
brightness: string;
|
|
71
|
+
contrast: string;
|
|
72
|
+
saturation: string;
|
|
73
|
+
exposure: string;
|
|
74
|
+
gamma: string;
|
|
75
|
+
vibrance: string;
|
|
76
|
+
warmth: string;
|
|
77
|
+
enhance: string;
|
|
78
|
+
original: string;
|
|
79
|
+
resize: string;
|
|
80
|
+
crop: string;
|
|
81
|
+
'select-color': string;
|
|
82
|
+
text: string;
|
|
83
|
+
draw: string;
|
|
84
|
+
'cancel-edit': string;
|
|
85
|
+
'tab-view': string;
|
|
86
|
+
'tab-details': string;
|
|
87
|
+
'file-name': string;
|
|
88
|
+
'file-size': string;
|
|
89
|
+
'cdn-url': string;
|
|
90
|
+
'file-size-unknown': string;
|
|
91
|
+
'camera-permissions-denied': string;
|
|
92
|
+
'camera-permissions-prompt': string;
|
|
93
|
+
'camera-permissions-request': string;
|
|
94
|
+
'files-count-limit-error-title': string;
|
|
95
|
+
'files-count-limit-error-too-few': string;
|
|
96
|
+
'files-count-limit-error-too-many': string;
|
|
97
|
+
'files-max-size-limit-error': string;
|
|
98
|
+
'has-validation-errors': string;
|
|
99
|
+
'images-only-accepted': string;
|
|
100
|
+
'file-type-not-allowed': string;
|
|
101
|
+
'some-files-were-not-uploaded': string;
|
|
102
|
+
'file-item-edit-button': string;
|
|
103
|
+
'file-item-remove-button': string;
|
|
104
|
+
'a11y-editor-tab-filters': string;
|
|
105
|
+
'a11y-editor-tab-tuning': string;
|
|
106
|
+
'a11y-editor-tab-crop': string;
|
|
107
|
+
'a11y-activity-header-button-close': string;
|
|
108
|
+
flip: string;
|
|
109
|
+
mirror: string;
|
|
110
|
+
'a11y-cloud-editor-apply-filter': string;
|
|
111
|
+
'a11y-cloud-editor-apply-crop': string;
|
|
112
|
+
'a11y-cloud-editor-apply-tuning': string;
|
|
113
|
+
finished: string;
|
|
114
|
+
failed: string;
|
|
115
|
+
uploading: string;
|
|
116
|
+
idle: string;
|
|
117
|
+
'a11y-file-item-status': string;
|
|
118
|
+
};
|
|
119
|
+
export default _default;
|
|
120
|
+
//# sourceMappingURL=fi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fi.d.ts","sourceRoot":"","sources":["fi.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
'locale-id': 'fi',
|
|
3
|
+
'social-source-lang': 'fi',
|
|
4
|
+
'upload-file': 'Lataa tiedosto',
|
|
5
|
+
'upload-files': 'Lataa tiedostoja',
|
|
6
|
+
'choose-file': 'Valitse tiedosto',
|
|
7
|
+
'choose-files': 'Valitse tiedostoja',
|
|
8
|
+
'drop-files-here': 'Raahaa tiedostot tänne',
|
|
9
|
+
'select-file-source': 'Valitse tiedoston lähde',
|
|
10
|
+
selected: 'Valittu',
|
|
11
|
+
upload: 'Lataa',
|
|
12
|
+
'add-more': 'Lisää',
|
|
13
|
+
cancel: 'Peruuta',
|
|
14
|
+
'start-from-cancel': 'Peruuta alkuun',
|
|
15
|
+
clear: 'Tyhjennä',
|
|
16
|
+
'camera-shot': 'Kuva',
|
|
17
|
+
'upload-url': 'Tuo',
|
|
18
|
+
'upload-url-placeholder': 'Liitä linkki tähän',
|
|
19
|
+
'edit-image': 'Muokkaa kuvaa',
|
|
20
|
+
'edit-detail': 'Lisätiedot',
|
|
21
|
+
back: 'Takaisin',
|
|
22
|
+
done: 'Valmis',
|
|
23
|
+
ok: 'Ok',
|
|
24
|
+
'remove-from-list': 'Poista',
|
|
25
|
+
no: 'Ei',
|
|
26
|
+
yes: 'Kyllä',
|
|
27
|
+
'confirm-your-action': 'Vahvista toimintosi',
|
|
28
|
+
'are-you-sure': 'Oletko varma?',
|
|
29
|
+
'selected-count': 'Valitut:',
|
|
30
|
+
'upload-error': 'Latausvirhe',
|
|
31
|
+
'validation-error': 'Validointivirhe',
|
|
32
|
+
'no-files': 'Ei tiedostoja valittu',
|
|
33
|
+
browse: 'Selaa',
|
|
34
|
+
'not-uploaded-yet': 'Ei vielä ladattu...',
|
|
35
|
+
file__one: 'tiedosto',
|
|
36
|
+
file__other: 'tiedostot',
|
|
37
|
+
error__one: 'virhe',
|
|
38
|
+
error__other: 'virheitä',
|
|
39
|
+
'header-uploading': 'Ladataan {{count}} {{plural:file(count)}}',
|
|
40
|
+
'header-failed': '{{count}} {{plural:error(count)}}',
|
|
41
|
+
'header-succeed': '{{count}} {{plural:file(count)}} ladattu',
|
|
42
|
+
'header-total': '{{count}} {{plural:file(count)}} valittu',
|
|
43
|
+
'src-type-local': 'Laiteesta',
|
|
44
|
+
'src-type-from-url': 'Linkistä',
|
|
45
|
+
'src-type-camera': 'Kamera',
|
|
46
|
+
'src-type-draw': 'Piirrä',
|
|
47
|
+
'src-type-facebook': 'Facebook',
|
|
48
|
+
'src-type-dropbox': 'Dropbox',
|
|
49
|
+
'src-type-gdrive': 'Google Drive',
|
|
50
|
+
'src-type-gphotos': 'Google Kuvat',
|
|
51
|
+
'src-type-instagram': 'Instagram',
|
|
52
|
+
'src-type-flickr': 'Flickr',
|
|
53
|
+
'src-type-vk': 'VK',
|
|
54
|
+
'src-type-evernote': 'Evernote',
|
|
55
|
+
'src-type-box': 'Box',
|
|
56
|
+
'src-type-onedrive': 'Onedrive',
|
|
57
|
+
'src-type-huddle': 'Huddle',
|
|
58
|
+
'src-type-other': 'Muu',
|
|
59
|
+
'caption-from-url': 'Tuo linkistä',
|
|
60
|
+
'caption-camera': 'Kamera',
|
|
61
|
+
'caption-draw': 'Piirrä',
|
|
62
|
+
'caption-edit-file': 'Muokkaa tiedostoa',
|
|
63
|
+
'file-no-name': 'Ei nimeä...',
|
|
64
|
+
'toggle-fullscreen': 'Vaihda koko näyttöön',
|
|
65
|
+
'toggle-guides': 'Opastus',
|
|
66
|
+
rotate: 'Käännä',
|
|
67
|
+
'flip-vertical': 'Käännä pystysuunnassa',
|
|
68
|
+
'flip-horizontal': 'Käännä vaakasuunnassa',
|
|
69
|
+
apply: 'Käytä',
|
|
70
|
+
brightness: 'Kirkkaus',
|
|
71
|
+
contrast: 'Kontrasti',
|
|
72
|
+
saturation: 'Saturaatio',
|
|
73
|
+
exposure: 'Valotusaika',
|
|
74
|
+
gamma: 'Gamma',
|
|
75
|
+
vibrance: 'Elinvoima',
|
|
76
|
+
warmth: 'Lämpö',
|
|
77
|
+
enhance: 'Paranna',
|
|
78
|
+
original: 'Alkuperäinen',
|
|
79
|
+
resize: 'Muuta kuvan kokoa',
|
|
80
|
+
crop: 'Rajaa',
|
|
81
|
+
'select-color': 'Valitse väri',
|
|
82
|
+
text: 'Teksti',
|
|
83
|
+
draw: 'Piirrä',
|
|
84
|
+
'cancel-edit': 'Peruuta muokkaus',
|
|
85
|
+
'tab-view': 'Esikatselu',
|
|
86
|
+
'tab-details': 'Lisätiedot',
|
|
87
|
+
'file-name': 'Nimi',
|
|
88
|
+
'file-size': 'Koko',
|
|
89
|
+
'cdn-url': 'CDN URL',
|
|
90
|
+
'file-size-unknown': 'Tuntematon',
|
|
91
|
+
'camera-permissions-denied': 'Kameran käyttöoikeus evätty',
|
|
92
|
+
'camera-permissions-prompt': 'Salli kameran käyttö',
|
|
93
|
+
'camera-permissions-request': 'Pyydä käyttöoikeutta',
|
|
94
|
+
'files-count-limit-error-title': 'Tiedostojen lukumäärän ylitys',
|
|
95
|
+
'files-count-limit-error-too-few':
|
|
96
|
+
'Olet valinnut {{total}} {{plural:file(total)}}. Vähintään {{min}} {{plural:file(min)}} vaaditaan.',
|
|
97
|
+
'files-count-limit-error-too-many': 'Olet valinnut liian monta tiedostoa. {{max}} {{plural:file(max)}} on enimmäismäärä.',
|
|
98
|
+
'files-max-size-limit-error': 'Tiedosto on liian suuri. Maksimi tiedostokoko on {{maxFileSize}}.',
|
|
99
|
+
'has-validation-errors': 'Tiedostojen validointivirhe. Tarkista tiedostosi ennen latausta.',
|
|
100
|
+
'images-only-accepted': 'Vain kuvamuotoiset tiedostot hyväksytään.',
|
|
101
|
+
'file-type-not-allowed': 'Näiden tiedostotyyppien lataaminen ei ole sallittua.',
|
|
102
|
+
'some-files-were-not-uploaded': 'Joitain tiedostoja ei ladattu.',
|
|
103
|
+
'file-item-edit-button': 'Muokkaa',
|
|
104
|
+
'file-item-remove-button': 'Poista',
|
|
105
|
+
'a11y-editor-tab-filters': 'Suodattimet',
|
|
106
|
+
'a11y-editor-tab-tuning': 'Säätö',
|
|
107
|
+
'a11y-editor-tab-crop': 'Rajaus',
|
|
108
|
+
'a11y-activity-header-button-close': 'Sulje',
|
|
109
|
+
flip: 'Käännä',
|
|
110
|
+
mirror: 'Peilaa',
|
|
111
|
+
'a11y-cloud-editor-apply-filter': 'Käytä {{name}} suodatin',
|
|
112
|
+
'a11y-cloud-editor-apply-crop': 'Käytä {{name}} rajaus',
|
|
113
|
+
'a11y-cloud-editor-apply-tuning': 'Käytä {{name}} säätö',
|
|
114
|
+
finished: 'Valmis',
|
|
115
|
+
failed: 'Epäonnistui',
|
|
116
|
+
uploading: 'Ladataan',
|
|
117
|
+
idle: 'Toimeton',
|
|
118
|
+
'a11y-file-item-status': 'Tiedosto {{fileName}} tilassa {{status}}',
|
|
119
|
+
};
|
|
120
|
+
|
package/package.json
CHANGED
package/types/exported.d.ts
CHANGED
|
@@ -78,6 +78,27 @@ export type ConfigType = {
|
|
|
78
78
|
|
|
79
79
|
fileValidators: FileValidators;
|
|
80
80
|
collectionValidators: CollectionValidators;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The default tab to open in the camera modal,
|
|
84
|
+
* it is possible to select video or photo capture
|
|
85
|
+
* @default 'photo'
|
|
86
|
+
*/
|
|
87
|
+
defaultCameraTab: 'photo' | 'video';
|
|
88
|
+
enableAudioRecording: boolean;
|
|
89
|
+
enableVideoRecording: boolean;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The maximum duration of the video recording in seconds
|
|
93
|
+
* @default null
|
|
94
|
+
*/
|
|
95
|
+
maxDurationVideoRecord: number | null
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* A dictionary object that can contain
|
|
99
|
+
* the following properties from MediaRecorderOptions
|
|
100
|
+
*/
|
|
101
|
+
optionsMediaRecorder: MediaRecorderOptions | null
|
|
81
102
|
};
|
|
82
103
|
export type ConfigComplexType = Pick<ConfigType, (typeof complexConfigKeys)[number]>;
|
|
83
104
|
export type ConfigPlainType = Omit<ConfigType, keyof ConfigComplexType>;
|