@uploadcare/file-uploader 1.25.0-alpha.9 → 1.25.0
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/dist/abstract/loadFileUploaderFrom.js +75 -4
- package/dist/env.js +33 -4
- package/dist/index.css +2660 -5
- package/dist/index.d.ts +976 -1316
- package/dist/index.js +12012 -6
- package/dist/index.layered.css +2716 -4
- package/dist/index.ssr.js +768 -549
- package/dist/locales/file-uploader/ar.js +165 -4
- package/dist/locales/file-uploader/az.js +157 -4
- package/dist/locales/file-uploader/ca.js +159 -4
- package/dist/locales/file-uploader/cs.js +161 -4
- package/dist/locales/file-uploader/da.js +157 -4
- package/dist/locales/file-uploader/de.js +157 -4
- package/dist/locales/file-uploader/el.js +157 -4
- package/dist/locales/file-uploader/en.js +157 -4
- package/dist/locales/file-uploader/es.js +159 -4
- package/dist/locales/file-uploader/et.js +157 -4
- package/dist/locales/file-uploader/fi.js +157 -4
- package/dist/locales/file-uploader/fr.js +159 -4
- package/dist/locales/file-uploader/he.js +159 -4
- package/dist/locales/file-uploader/hy.js +157 -4
- package/dist/locales/file-uploader/is.js +157 -4
- package/dist/locales/file-uploader/it.js +159 -4
- package/dist/locales/file-uploader/ja.js +157 -4
- package/dist/locales/file-uploader/ka.js +157 -4
- package/dist/locales/file-uploader/kk.js +157 -4
- package/dist/locales/file-uploader/ko.js +157 -4
- package/dist/locales/file-uploader/lv.js +159 -4
- package/dist/locales/file-uploader/nb.js +157 -4
- package/dist/locales/file-uploader/nl.js +157 -4
- package/dist/locales/file-uploader/pl.js +161 -4
- package/dist/locales/file-uploader/pt.js +159 -4
- package/dist/locales/file-uploader/ro.js +159 -4
- package/dist/locales/file-uploader/ru.js +161 -4
- package/dist/locales/file-uploader/sk.js +161 -4
- package/dist/locales/file-uploader/sr.js +159 -4
- package/dist/locales/file-uploader/sv.js +157 -4
- package/dist/locales/file-uploader/tr.js +157 -4
- package/dist/locales/file-uploader/uk.js +161 -4
- package/dist/locales/file-uploader/vi.js +157 -4
- package/dist/locales/file-uploader/zh-TW.js +157 -4
- package/dist/locales/file-uploader/zh.js +157 -4
- package/package.json +31 -36
- package/types/jsx.d.ts +48 -75
- package/web/file-uploader.iife.min.d.ts +987 -1327
- package/web/file-uploader.iife.min.js +27 -6
- package/web/file-uploader.min.d.ts +987 -1327
- package/web/file-uploader.min.js +26 -5
- package/web/uc-basic.layered.min.css +23 -4
- package/web/uc-basic.min.css +23 -4
- package/web/uc-cloud-image-editor.layered.min.css +23 -4
- package/web/uc-cloud-image-editor.min.css +23 -4
- package/web/uc-cloud-image-editor.min.d.ts +550 -756
- package/web/uc-cloud-image-editor.min.js +26 -5
- package/web/uc-file-uploader-inline.layered.min.css +23 -4
- package/web/uc-file-uploader-inline.min.css +23 -4
- package/web/uc-file-uploader-inline.min.d.ts +987 -1327
- package/web/uc-file-uploader-inline.min.js +26 -5
- package/web/uc-file-uploader-minimal.layered.min.css +23 -4
- package/web/uc-file-uploader-minimal.min.css +23 -4
- package/web/uc-file-uploader-minimal.min.d.ts +987 -1327
- package/web/uc-file-uploader-minimal.min.js +26 -5
- package/web/uc-file-uploader-regular.layered.min.css +23 -4
- package/web/uc-file-uploader-regular.min.css +23 -4
- package/web/uc-file-uploader-regular.min.d.ts +987 -1327
- package/web/uc-file-uploader-regular.min.js +26 -5
- package/web/uc-img.min.d.ts +100 -55
- package/web/uc-img.min.js +25 -5
- package/web/file-uploader.iife.min.js.LEGAL.txt +0 -71
- package/web/file-uploader.min.js.LEGAL.txt +0 -71
- package/web/uc-cloud-image-editor.min.js.LEGAL.txt +0 -70
- package/web/uc-file-uploader-inline.min.js.LEGAL.txt +0 -71
- package/web/uc-file-uploader-minimal.min.js.LEGAL.txt +0 -71
- package/web/uc-file-uploader-regular.min.js.LEGAL.txt +0 -71
- package/web/uc-img.min.js.LEGAL.txt +0 -24
package/dist/index.ssr.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export const ActivityBlock = class {
|
|
2
|
-
static qt = {};
|
|
3
2
|
static activities = {
|
|
4
3
|
START_FROM: "start-from",
|
|
5
4
|
CAMERA: "camera",
|
|
@@ -9,21 +8,12 @@ export const ActivityBlock = class {
|
|
|
9
8
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
10
9
|
EXTERNAL: "external",
|
|
11
10
|
};
|
|
12
|
-
static finalized = {};
|
|
13
|
-
static elementProperties = {};
|
|
14
|
-
static elementStyles = [];
|
|
15
|
-
static styleAttrs = [];
|
|
16
11
|
static reg = () => {};
|
|
17
|
-
static
|
|
18
|
-
static
|
|
19
|
-
static
|
|
20
|
-
static getPropertyOptions = () => {};
|
|
21
|
-
static finalize = () => {};
|
|
22
|
-
static finalizeStyles = () => {};
|
|
23
|
-
static shadowRootOptions = { mode: "open" };
|
|
12
|
+
static styleAttrs = [];
|
|
13
|
+
static is = `sym-1`;
|
|
14
|
+
static bindAttributes = () => {};
|
|
24
15
|
};
|
|
25
16
|
export const ActivityHeader = class {
|
|
26
|
-
static qt = {};
|
|
27
17
|
static activities = {
|
|
28
18
|
START_FROM: "start-from",
|
|
29
19
|
CAMERA: "camera",
|
|
@@ -33,62 +23,162 @@ export const ActivityHeader = class {
|
|
|
33
23
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
34
24
|
EXTERNAL: "external",
|
|
35
25
|
};
|
|
36
|
-
static finalized = {};
|
|
37
|
-
static elementProperties = {};
|
|
38
|
-
static elementStyles = [];
|
|
39
|
-
static styleAttrs = [];
|
|
40
26
|
static reg = () => {};
|
|
41
|
-
static
|
|
42
|
-
static
|
|
43
|
-
static
|
|
44
|
-
static getPropertyOptions = () => {};
|
|
45
|
-
static finalize = () => {};
|
|
46
|
-
static finalizeStyles = () => {};
|
|
47
|
-
static shadowRootOptions = { mode: "open" };
|
|
27
|
+
static styleAttrs = [];
|
|
28
|
+
static is = `sym-1`;
|
|
29
|
+
static bindAttributes = () => {};
|
|
48
30
|
};
|
|
49
31
|
export const BaseComponent = class {
|
|
50
32
|
static reg = () => {};
|
|
51
|
-
static
|
|
52
|
-
static
|
|
53
|
-
static elementStyles = [];
|
|
54
|
-
static addInitializer = () => {};
|
|
55
|
-
static createProperty = () => {};
|
|
56
|
-
static getPropertyDescriptor = () => {};
|
|
57
|
-
static getPropertyOptions = () => {};
|
|
58
|
-
static finalize = () => {};
|
|
59
|
-
static finalizeStyles = () => {};
|
|
60
|
-
static shadowRootOptions = { mode: "open" };
|
|
33
|
+
static is = `sym-1`;
|
|
34
|
+
static bindAttributes = () => {};
|
|
61
35
|
};
|
|
62
36
|
export const Block = class {
|
|
63
|
-
static styleAttrs = [];
|
|
64
|
-
static finalized = {};
|
|
65
|
-
static elementProperties = {};
|
|
66
|
-
static elementStyles = [];
|
|
67
37
|
static reg = () => {};
|
|
68
|
-
static
|
|
69
|
-
static
|
|
70
|
-
static
|
|
71
|
-
static getPropertyOptions = () => {};
|
|
72
|
-
static finalize = () => {};
|
|
73
|
-
static finalizeStyles = () => {};
|
|
74
|
-
static shadowRootOptions = { mode: "open" };
|
|
38
|
+
static styleAttrs = [];
|
|
39
|
+
static is = `sym-1`;
|
|
40
|
+
static bindAttributes = () => {};
|
|
75
41
|
};
|
|
76
42
|
export const BtnUi = class {
|
|
77
|
-
static
|
|
78
|
-
static
|
|
79
|
-
|
|
80
|
-
|
|
43
|
+
static observedAttributes = ["text", "icon", "reverse", "theme"];
|
|
44
|
+
static template = `
|
|
45
|
+
<button
|
|
46
|
+
type="button"
|
|
47
|
+
set="@role:aria-role; @aria-controls: aria-controls; @aria-label:title-prop"
|
|
48
|
+
l10n="@title:title-prop;"
|
|
49
|
+
>
|
|
50
|
+
<uc-icon set="className: iconCss; @name: icon; @hidden: !icon"></uc-icon>
|
|
51
|
+
<div class="uc-text">{{text}}</div>
|
|
52
|
+
</button>
|
|
53
|
+
`;
|
|
81
54
|
static reg = () => {};
|
|
82
|
-
static
|
|
83
|
-
static
|
|
84
|
-
static
|
|
85
|
-
static getPropertyOptions = () => {};
|
|
86
|
-
static finalize = () => {};
|
|
87
|
-
static finalizeStyles = () => {};
|
|
88
|
-
static shadowRootOptions = { mode: "open" };
|
|
55
|
+
static styleAttrs = [];
|
|
56
|
+
static is = `sym-1`;
|
|
57
|
+
static bindAttributes = () => {};
|
|
89
58
|
};
|
|
90
59
|
export const CameraSource = class {
|
|
91
|
-
static
|
|
60
|
+
static template = `
|
|
61
|
+
<uc-activity-header>
|
|
62
|
+
<button
|
|
63
|
+
type="button"
|
|
64
|
+
class="uc-mini-btn"
|
|
65
|
+
set="onclick: *historyBack"
|
|
66
|
+
l10n="@title:back"
|
|
67
|
+
>
|
|
68
|
+
<uc-icon name="back"></uc-icon>
|
|
69
|
+
</button>
|
|
70
|
+
<div set="@hidden: !cameraSelectHidden">
|
|
71
|
+
<uc-icon name="camera"></uc-icon>
|
|
72
|
+
<span l10n="caption-camera"></span>
|
|
73
|
+
</div>
|
|
74
|
+
<uc-select
|
|
75
|
+
class="uc-camera-select"
|
|
76
|
+
set="$.options: cameraSelectOptions; @hidden: cameraSelectHidden; onchange: onCameraSelectChange"
|
|
77
|
+
>
|
|
78
|
+
</uc-select>
|
|
79
|
+
<button
|
|
80
|
+
type="button"
|
|
81
|
+
class="uc-mini-btn uc-close-btn"
|
|
82
|
+
set="onclick: *closeModal"
|
|
83
|
+
l10n="@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close"
|
|
84
|
+
>
|
|
85
|
+
<uc-icon name="close"></uc-icon>
|
|
86
|
+
</button>
|
|
87
|
+
</uc-activity-header>
|
|
88
|
+
<div class="uc-content">
|
|
89
|
+
<video
|
|
90
|
+
muted
|
|
91
|
+
autoplay
|
|
92
|
+
playsinline
|
|
93
|
+
set="srcObject: video; style.transform: videoTransformCss; @hidden: videoHidden"
|
|
94
|
+
ref="video"
|
|
95
|
+
></video>
|
|
96
|
+
<div class="uc-message-box" set="@hidden: messageHidden">
|
|
97
|
+
<span l10n="l10nMessage"></span>
|
|
98
|
+
<button
|
|
99
|
+
type="button"
|
|
100
|
+
set="onclick: onRequestPermissions; @hidden: requestBtnHidden"
|
|
101
|
+
l10n="camera-permissions-request"
|
|
102
|
+
></button>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div class="uc-controls">
|
|
107
|
+
<div ref="switcher" class="uc-switcher" set="@hidden:!timerHidden">
|
|
108
|
+
<button
|
|
109
|
+
data-id="photo"
|
|
110
|
+
type="button"
|
|
111
|
+
class="uc-switch uc-mini-btn"
|
|
112
|
+
set="onclick: onClickTab; @hidden: tabCameraHidden"
|
|
113
|
+
data-testid="tab-photo"
|
|
114
|
+
>
|
|
115
|
+
<uc-icon name="camera"></uc-icon>
|
|
116
|
+
</button>
|
|
117
|
+
<button
|
|
118
|
+
data-id="video"
|
|
119
|
+
type="button"
|
|
120
|
+
class="uc-switch uc-mini-btn"
|
|
121
|
+
set="onclick: onClickTab; @hidden: tabVideoHidden"
|
|
122
|
+
data-testid="tab-video"
|
|
123
|
+
>
|
|
124
|
+
<uc-icon name="video-camera"></uc-icon>
|
|
125
|
+
</button>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
<button
|
|
129
|
+
class="uc-secondary-btn uc-recording-timer"
|
|
130
|
+
set="@hidden:timerHidden; onclick: onToggleRecording"
|
|
131
|
+
data-testid="recording-timer"
|
|
132
|
+
>
|
|
133
|
+
<uc-icon set="@name: currentTimelineIcon"></uc-icon>
|
|
134
|
+
<span ref="timer"> 00:00 </span>
|
|
135
|
+
<span ref="line" class="uc-line"></span>
|
|
136
|
+
</button>
|
|
137
|
+
|
|
138
|
+
<div
|
|
139
|
+
class="uc-camera-actions uc-camera-action"
|
|
140
|
+
set="@hidden: cameraActionsHidden"
|
|
141
|
+
>
|
|
142
|
+
<button type="button" class="uc-secondary-btn" set="onclick: onRetake" data-testid="retake">
|
|
143
|
+
Retake
|
|
144
|
+
</button>
|
|
145
|
+
<button
|
|
146
|
+
type="button"
|
|
147
|
+
class="uc-primary-btn"
|
|
148
|
+
set="onclick: onAccept"
|
|
149
|
+
data-testid="accept"
|
|
150
|
+
>
|
|
151
|
+
Accept
|
|
152
|
+
</button>
|
|
153
|
+
</div>
|
|
154
|
+
|
|
155
|
+
<button
|
|
156
|
+
type="button"
|
|
157
|
+
class="uc-shot-btn uc-camera-action"
|
|
158
|
+
data-testid="shot"
|
|
159
|
+
set="onclick: onStartCamera; @class: mutableClassButton; @hidden: cameraHidden;"
|
|
160
|
+
>
|
|
161
|
+
<uc-icon set="@name: currentIcon"></uc-icon>
|
|
162
|
+
</button>
|
|
163
|
+
|
|
164
|
+
<div class="uc-select">
|
|
165
|
+
<button
|
|
166
|
+
class="uc-mini-btn uc-btn-microphone"
|
|
167
|
+
set="onclick: onToggleAudio; @hidden: audioToggleMicrophoneHidden;"
|
|
168
|
+
data-testid="toggle-microphone"
|
|
169
|
+
>
|
|
170
|
+
<uc-icon set="@name:toggleMicrophoneIcon"></uc-icon>
|
|
171
|
+
</button>
|
|
172
|
+
|
|
173
|
+
<uc-select
|
|
174
|
+
class="uc-audio-select"
|
|
175
|
+
set="$.options: audioSelectOptions; onchange: onAudioSelectChange; @hidden: audioSelectHidden; @disabled: audioSelectDisabled"
|
|
176
|
+
data-testid="audio-select"
|
|
177
|
+
>
|
|
178
|
+
</uc-select>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
`;
|
|
92
182
|
static extSrcList = {
|
|
93
183
|
FACEBOOK: "facebook",
|
|
94
184
|
DROPBOX: "dropbox",
|
|
@@ -122,9 +212,6 @@ export const CameraSource = class {
|
|
|
122
212
|
ONEDRIVE: "onedrive",
|
|
123
213
|
HUDDLE: "huddle",
|
|
124
214
|
};
|
|
125
|
-
static finalized = {};
|
|
126
|
-
static elementStyles = [];
|
|
127
|
-
static qt = {};
|
|
128
215
|
static activities = {
|
|
129
216
|
START_FROM: "start-from",
|
|
130
217
|
CAMERA: "camera",
|
|
@@ -134,32 +221,52 @@ export const CameraSource = class {
|
|
|
134
221
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
135
222
|
EXTERNAL: "external",
|
|
136
223
|
};
|
|
137
|
-
static styleAttrs = [];
|
|
138
224
|
static reg = () => {};
|
|
139
|
-
static
|
|
140
|
-
static
|
|
141
|
-
static
|
|
142
|
-
static getPropertyOptions = () => {};
|
|
143
|
-
static finalize = () => {};
|
|
144
|
-
static finalizeStyles = () => {};
|
|
145
|
-
static shadowRootOptions = { mode: "open" };
|
|
225
|
+
static styleAttrs = [];
|
|
226
|
+
static is = `sym-1`;
|
|
227
|
+
static bindAttributes = () => {};
|
|
146
228
|
};
|
|
147
229
|
export const CloudImageEditor = class {
|
|
148
230
|
static styleAttrs = [];
|
|
149
|
-
static
|
|
150
|
-
static finalized = {};
|
|
151
|
-
|
|
231
|
+
static template = `
|
|
232
|
+
<svg width='0' height='0' style='position:absolute'><symbol fill='none' viewBox='0 0 9 6' id='uc-icon-arrow-dropdown' xmlns='http://www.w3.org/2000/svg'><path stroke='currentColor' d='m1.5 1.667 3 2.666 3-2.666' opacity='.5'/></symbol><symbol viewBox='0 0 24 24' id='uc-icon-aspect-ratio' xmlns='http://www.w3.org/2000/svg'/><symbol viewBox='0 0 20 20' id='uc-icon-brightness' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M15 10a5 5 0 0 1-5 5m5-5a5 5 0 0 0-5-5m5 5h-5m0 5a5 5 0 0 1 0-10m0 10V5m0 15v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05m-.626 2.45H10m4.324 5H10'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-closeMax' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M8.232 10 3.585 5.353l1.768-1.768L10 8.232l4.648-4.647 1.767 1.768L11.768 10l4.647 4.648-1.767 1.767L10 11.768l-4.647 4.647-1.768-1.767L8.232 10Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-contrast' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 10a8 8 0 1 0 16 0 8 8 0 1 0-16 0m8-8v16m8-8h-8m7.598 2.5H10m6.24 2.5H10m7.6-7.5H10M16.242 5H10'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-crop' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M20 14H7.005C6.45 14 6 13.55 6 12.995V0M0 6h13.067c.515 0 .933.418.933.933V20M14.5.4 13 2l1.5 1.6M13 2h2a3 3 0 0 1 3 3v2M5.5 19.6 7 18l-1.5-1.6M7 18H5a3 3 0 0 1-3-3v-2'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-done' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='m18.057 6.333-9.365 9.125a1.25 1.25 0 0 1-1.768-.023L1.92 10.296l1.791-1.744 4.132 4.243 8.47-8.253 1.744 1.79Z' clip-rule='evenodd'/></symbol><symbol fill='currentColor' viewBox='0 0 25 24' id='uc-icon-edit-file' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M18.558 2.804a.78.78 0 0 0-.557.235l-.008.007-2.472 2.46 3.847 3.848 2.46-2.473.004-.003a.78.78 0 0 0 0-1.108l-.004-.003-2.712-2.728a.78.78 0 0 0-.558-.235Zm-.248 7.613-3.852-3.852-8.93 8.887-1.516 5.41 5.41-1.515 8.888-8.93Zm-.636-8.934a2.28 2.28 0 0 1 2.512.505l2.702 2.717.002.002a2.278 2.278 0 0 1 0 3.234l-.002.002-12.541 12.602a.75.75 0 0 1-.33.193l-6.884 1.928a.75.75 0 0 1-.925-.924l1.928-6.885a.75.75 0 0 1 .193-.33l12.603-12.54a2.28 2.28 0 0 1 .742-.504Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-enhance' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19 13h-2m0 0a4 4 0 0 1-4-4m4 4a4 4 0 0 0-4 4m0-8V7m0 2a4 4 0 0 1-4 4m-2 0h2m0 0a4 4 0 0 1 4 4m0 0v2M8 8.5H6.5m0 0a2 2 0 0 1-2-2m2 2a2 2 0 0 0-2 2m0-4V5m0 1.5a2 2 0 0 1-2 2M1 8.5h1.5m0 0a2 2 0 0 1 2 2m0 0V12M12 3h-1m0 0a1 1 0 0 1-1-1m1 1a1 1 0 0 0-1 1m0-2V1m0 1a1 1 0 0 1-1 1M8 3h1m0 0a1 1 0 0 1 1 1m0 0v1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-exposure' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M10 20v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05M5 10a5 5 0 1 0 10 0 5 5 0 1 0-10 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-filters' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M4.5 6.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m-3.5 6a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m7 0a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-flip' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19.6 5 18 3.5 16.4 5m3.2 10L18 16.5 16.4 15M18 3.523v12.954M3.3 8.5h10.654c.301 0 .415-.395.159-.554L3.459 1.286A.3.3 0 0 0 3 1.542V8.2a.3.3 0 0 0 .3.3zm0 3h10.654c.301 0 .415.395.159.554l-10.654 6.66A.3.3 0 0 1 3 18.458v-6.66a.3.3 0 0 1 .3-.3z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-gamma' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M17 3C9 6 2.5 11.5 2.5 17.5m0 0h1m-1 0v-1m14 1h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3-14v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-mirror' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M5 .4 3.5 2 5 3.6M15 .4 16.5 2 15 3.6M3.52 2h12.957M8.5 16.7V6.046c0-.301-.394-.415-.554-.159L1.287 16.541a.3.3 0 0 0 .255.459H8.2a.3.3 0 0 0 .3-.3zm3 0V6.046c0-.301.395-.415.555-.159l6.659 10.654a.3.3 0 0 1-.255.459H11.8a.3.3 0 0 1-.3-.3z'/></symbol><symbol viewBox='0 0 40 40' id='uc-icon-original' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.5' d='M0 40 40 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-rotate' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M13.5.4 12 2l1.5 1.6M12.023 2H14.4A3.6 3.6 0 0 1 18 5.6V8M4 17h9a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-sad' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 17c4.418-4 11.582-4 16 0M16.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-11 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-saturation' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient id='ruc-icon-id__a' x1='10.001' y1='1' x2='10.001' y2='19' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs><circle cx='10.001' cy='10' r='9' transform='rotate(90 10 10)' fill='url(#ruc-icon-id__a)'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-slider' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M0 10h11m0 0a2 2 0 1 0 4 0m-4 0a2 2 0 1 1 4 0m0 0h5'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-tuning' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M8 10h11M1 10h4M1 4.5h11m3 0h4m-18 11h11m3 0h4m-7-11a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0m7 5.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-vibrance' xmlns='http://www.w3.org/2000/svg'><path d='M2.125 5.64A8.96 8.96 0 0 0 1.001 10a8.96 8.96 0 0 0 1.124 4.36V5.64z' fill='url(#uuc-icon-id__a)'/><path d='M2.875 15.499V4.502a9.053 9.053 0 0 1 1.75-1.72v14.437a9.05 9.05 0 0 1-1.75-1.72z' fill='url(#uuc-icon-id__b)'/><path d='M5.375 17.722c.548.33 1.134.601 1.75.809V1.469a8.956 8.956 0 0 0-1.75.81v15.443z' fill='url(#uuc-icon-id__c)'/><path d='M7.875 1.253v17.495c.564.136 1.15.22 1.75.244V1.008a9 9 0 0 0-1.75.245z' fill='url(#uuc-icon-id__d)'/><path d='M10.375 1.008v17.984a9 9 0 0 0 1.75-.244V1.252a9 9 0 0 0-1.75-.244z' fill='url(#uuc-icon-id__e)'/><path d='M12.875 1.469V18.53a8.957 8.957 0 0 0 1.75-.808V2.277a8.957 8.957 0 0 0-1.75-.808z' fill='url(#uuc-icon-id__f)'/><path d='M15.375 2.78v14.44a9.053 9.053 0 0 0 1.75-1.72v-11a9.054 9.054 0 0 0-1.75-1.72z' fill='url(#uuc-icon-id__g)'/><path d='M17.875 5.638v8.724A8.959 8.959 0 0 0 19.001 10a8.96 8.96 0 0 0-1.126-4.362z' fill='url(#uuc-icon-id__h)'/><defs><linearGradient id='uuc-icon-id__a' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__b' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__c' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__d' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__e' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__f' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__g' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__h' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs></symbol><symbol viewBox='0 0 20 20' id='uc-icon-warmth' xmlns='http://www.w3.org/2000/svg'><path d='m7.5 13.05.429.42.171-.175v-.244h-.6zm5 0h-.6v.245l.172.175.428-.42zM8.1 3.5c0-1.05.85-1.9 1.9-1.9V.4a3.1 3.1 0 0 0-3.1 3.1h1.2zm0 9.55V3.5H6.9v9.55h1.2zm-1 2.45c0-.79.315-1.506.829-2.03l-.858-.84A4.088 4.088 0 0 0 5.9 15.5h1.2zm2.9 2.9a2.9 2.9 0 0 1-2.9-2.9H5.9a4.1 4.1 0 0 0 4.1 4.1v-1.2zm2.9-2.9a2.9 2.9 0 0 1-2.9 2.9v1.2a4.1 4.1 0 0 0 4.1-4.1h-1.2zm-.829-2.03c.514.524.829 1.24.829 2.03h1.2c0-1.117-.447-2.13-1.171-2.87l-.858.84zM11.9 3.5v9.55h1.2V3.5h-1.2zM10 1.6c1.05 0 1.9.85 1.9 1.9h1.2A3.1 3.1 0 0 0 10 .4v1.2z' fill='currentColor'/><path d='M10 14V8' stroke='currentColor' stroke-width='1.2' stroke-linecap='round'/><path d='M14 3h3m-3 3h3m-3 3h3m-8 6.5a1 1 0 1 0 2 0 1 1 0 1 0-2 0' stroke='currentColor' stroke-width='1.2'/></symbol></svg>
|
|
233
|
+
<div class="uc-wrapper uc-wrapper_desktop">
|
|
234
|
+
<uc-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
|
|
235
|
+
<div class="uc-network_problems_content">
|
|
236
|
+
<div class="uc-network_problems_icon">
|
|
237
|
+
<uc-icon name="sad"></uc-icon>
|
|
238
|
+
</div>
|
|
239
|
+
<div class="uc-network_problems_text">Network error</div>
|
|
240
|
+
</div>
|
|
241
|
+
<div class="uc-network_problems_footer">
|
|
242
|
+
<uc-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></uc-btn-ui>
|
|
243
|
+
</div>
|
|
244
|
+
</uc-presence-toggle>
|
|
245
|
+
<div class="uc-viewport">
|
|
246
|
+
<div class="uc-file_type_outer">
|
|
247
|
+
<div class="uc-file_type">{{fileType}}</div>
|
|
248
|
+
</div>
|
|
249
|
+
<div class="uc-image_container" ref="img-container-el">
|
|
250
|
+
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" class="uc-image uc-image_visible_from_editor" ref="img-el" />
|
|
251
|
+
<uc-editor-image-cropper ref="cropper-el"></uc-editor-image-cropper>
|
|
252
|
+
<uc-editor-image-fader ref="fader-el"></uc-editor-image-fader>
|
|
253
|
+
</div>
|
|
254
|
+
<div class="uc-info_pan">{{msg}}</div>
|
|
255
|
+
</div>
|
|
256
|
+
<div class="uc-toolbar">
|
|
257
|
+
<uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
|
|
258
|
+
<div class="uc-toolbar_content uc-toolbar_content__editor">
|
|
259
|
+
<uc-editor-toolbar></uc-editor-toolbar>
|
|
260
|
+
</div>
|
|
261
|
+
</div>
|
|
262
|
+
</div>
|
|
263
|
+
`;
|
|
264
|
+
static observedAttributes = ["uuid", "cdn-url", "crop-preset", "tabs"];
|
|
152
265
|
static reg = () => {};
|
|
153
|
-
static
|
|
154
|
-
static
|
|
155
|
-
static getPropertyDescriptor = () => {};
|
|
156
|
-
static getPropertyOptions = () => {};
|
|
157
|
-
static finalize = () => {};
|
|
158
|
-
static finalizeStyles = () => {};
|
|
159
|
-
static shadowRootOptions = { mode: "open" };
|
|
266
|
+
static is = `sym-1`;
|
|
267
|
+
static bindAttributes = () => {};
|
|
160
268
|
};
|
|
161
269
|
export const CloudImageEditorActivity = class {
|
|
162
|
-
static elementProperties = {};
|
|
163
270
|
static extSrcList = {
|
|
164
271
|
FACEBOOK: "facebook",
|
|
165
272
|
DROPBOX: "dropbox",
|
|
@@ -193,9 +300,6 @@ export const CloudImageEditorActivity = class {
|
|
|
193
300
|
ONEDRIVE: "onedrive",
|
|
194
301
|
HUDDLE: "huddle",
|
|
195
302
|
};
|
|
196
|
-
static finalized = {};
|
|
197
|
-
static elementStyles = [];
|
|
198
|
-
static qt = {};
|
|
199
303
|
static activities = {
|
|
200
304
|
START_FROM: "start-from",
|
|
201
305
|
CAMERA: "camera",
|
|
@@ -205,33 +309,53 @@ export const CloudImageEditorActivity = class {
|
|
|
205
309
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
206
310
|
EXTERNAL: "external",
|
|
207
311
|
};
|
|
208
|
-
static styleAttrs = [];
|
|
209
312
|
static reg = () => {};
|
|
210
|
-
static
|
|
211
|
-
static
|
|
212
|
-
static
|
|
213
|
-
static getPropertyOptions = () => {};
|
|
214
|
-
static finalize = () => {};
|
|
215
|
-
static finalizeStyles = () => {};
|
|
216
|
-
static shadowRootOptions = { mode: "open" };
|
|
313
|
+
static styleAttrs = [];
|
|
314
|
+
static is = `sym-1`;
|
|
315
|
+
static bindAttributes = () => {};
|
|
217
316
|
};
|
|
218
317
|
export const CloudImageEditorBlock = class {
|
|
219
318
|
static styleAttrs = [];
|
|
220
|
-
static
|
|
221
|
-
static finalized = {};
|
|
222
|
-
|
|
319
|
+
static template = `
|
|
320
|
+
<svg width='0' height='0' style='position:absolute'><symbol fill='none' viewBox='0 0 9 6' id='uc-icon-arrow-dropdown' xmlns='http://www.w3.org/2000/svg'><path stroke='currentColor' d='m1.5 1.667 3 2.666 3-2.666' opacity='.5'/></symbol><symbol viewBox='0 0 24 24' id='uc-icon-aspect-ratio' xmlns='http://www.w3.org/2000/svg'/><symbol viewBox='0 0 20 20' id='uc-icon-brightness' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M15 10a5 5 0 0 1-5 5m5-5a5 5 0 0 0-5-5m5 5h-5m0 5a5 5 0 0 1 0-10m0 10V5m0 15v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05m-.626 2.45H10m4.324 5H10'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-closeMax' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M8.232 10 3.585 5.353l1.768-1.768L10 8.232l4.648-4.647 1.767 1.768L11.768 10l4.647 4.648-1.767 1.767L10 11.768l-4.647 4.647-1.768-1.767L8.232 10Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-contrast' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 10a8 8 0 1 0 16 0 8 8 0 1 0-16 0m8-8v16m8-8h-8m7.598 2.5H10m6.24 2.5H10m7.6-7.5H10M16.242 5H10'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-crop' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M20 14H7.005C6.45 14 6 13.55 6 12.995V0M0 6h13.067c.515 0 .933.418.933.933V20M14.5.4 13 2l1.5 1.6M13 2h2a3 3 0 0 1 3 3v2M5.5 19.6 7 18l-1.5-1.6M7 18H5a3 3 0 0 1-3-3v-2'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-done' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='m18.057 6.333-9.365 9.125a1.25 1.25 0 0 1-1.768-.023L1.92 10.296l1.791-1.744 4.132 4.243 8.47-8.253 1.744 1.79Z' clip-rule='evenodd'/></symbol><symbol fill='currentColor' viewBox='0 0 25 24' id='uc-icon-edit-file' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M18.558 2.804a.78.78 0 0 0-.557.235l-.008.007-2.472 2.46 3.847 3.848 2.46-2.473.004-.003a.78.78 0 0 0 0-1.108l-.004-.003-2.712-2.728a.78.78 0 0 0-.558-.235Zm-.248 7.613-3.852-3.852-8.93 8.887-1.516 5.41 5.41-1.515 8.888-8.93Zm-.636-8.934a2.28 2.28 0 0 1 2.512.505l2.702 2.717.002.002a2.278 2.278 0 0 1 0 3.234l-.002.002-12.541 12.602a.75.75 0 0 1-.33.193l-6.884 1.928a.75.75 0 0 1-.925-.924l1.928-6.885a.75.75 0 0 1 .193-.33l12.603-12.54a2.28 2.28 0 0 1 .742-.504Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-enhance' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19 13h-2m0 0a4 4 0 0 1-4-4m4 4a4 4 0 0 0-4 4m0-8V7m0 2a4 4 0 0 1-4 4m-2 0h2m0 0a4 4 0 0 1 4 4m0 0v2M8 8.5H6.5m0 0a2 2 0 0 1-2-2m2 2a2 2 0 0 0-2 2m0-4V5m0 1.5a2 2 0 0 1-2 2M1 8.5h1.5m0 0a2 2 0 0 1 2 2m0 0V12M12 3h-1m0 0a1 1 0 0 1-1-1m1 1a1 1 0 0 0-1 1m0-2V1m0 1a1 1 0 0 1-1 1M8 3h1m0 0a1 1 0 0 1 1 1m0 0v1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-exposure' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M10 20v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05M5 10a5 5 0 1 0 10 0 5 5 0 1 0-10 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-filters' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M4.5 6.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m-3.5 6a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m7 0a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-flip' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19.6 5 18 3.5 16.4 5m3.2 10L18 16.5 16.4 15M18 3.523v12.954M3.3 8.5h10.654c.301 0 .415-.395.159-.554L3.459 1.286A.3.3 0 0 0 3 1.542V8.2a.3.3 0 0 0 .3.3zm0 3h10.654c.301 0 .415.395.159.554l-10.654 6.66A.3.3 0 0 1 3 18.458v-6.66a.3.3 0 0 1 .3-.3z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-gamma' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M17 3C9 6 2.5 11.5 2.5 17.5m0 0h1m-1 0v-1m14 1h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3-14v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-mirror' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M5 .4 3.5 2 5 3.6M15 .4 16.5 2 15 3.6M3.52 2h12.957M8.5 16.7V6.046c0-.301-.394-.415-.554-.159L1.287 16.541a.3.3 0 0 0 .255.459H8.2a.3.3 0 0 0 .3-.3zm3 0V6.046c0-.301.395-.415.555-.159l6.659 10.654a.3.3 0 0 1-.255.459H11.8a.3.3 0 0 1-.3-.3z'/></symbol><symbol viewBox='0 0 40 40' id='uc-icon-original' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.5' d='M0 40 40 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-rotate' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M13.5.4 12 2l1.5 1.6M12.023 2H14.4A3.6 3.6 0 0 1 18 5.6V8M4 17h9a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-sad' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 17c4.418-4 11.582-4 16 0M16.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-11 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-saturation' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient id='ruc-icon-id__a' x1='10.001' y1='1' x2='10.001' y2='19' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs><circle cx='10.001' cy='10' r='9' transform='rotate(90 10 10)' fill='url(#ruc-icon-id__a)'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-slider' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M0 10h11m0 0a2 2 0 1 0 4 0m-4 0a2 2 0 1 1 4 0m0 0h5'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-tuning' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M8 10h11M1 10h4M1 4.5h11m3 0h4m-18 11h11m3 0h4m-7-11a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0m7 5.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-vibrance' xmlns='http://www.w3.org/2000/svg'><path d='M2.125 5.64A8.96 8.96 0 0 0 1.001 10a8.96 8.96 0 0 0 1.124 4.36V5.64z' fill='url(#uuc-icon-id__a)'/><path d='M2.875 15.499V4.502a9.053 9.053 0 0 1 1.75-1.72v14.437a9.05 9.05 0 0 1-1.75-1.72z' fill='url(#uuc-icon-id__b)'/><path d='M5.375 17.722c.548.33 1.134.601 1.75.809V1.469a8.956 8.956 0 0 0-1.75.81v15.443z' fill='url(#uuc-icon-id__c)'/><path d='M7.875 1.253v17.495c.564.136 1.15.22 1.75.244V1.008a9 9 0 0 0-1.75.245z' fill='url(#uuc-icon-id__d)'/><path d='M10.375 1.008v17.984a9 9 0 0 0 1.75-.244V1.252a9 9 0 0 0-1.75-.244z' fill='url(#uuc-icon-id__e)'/><path d='M12.875 1.469V18.53a8.957 8.957 0 0 0 1.75-.808V2.277a8.957 8.957 0 0 0-1.75-.808z' fill='url(#uuc-icon-id__f)'/><path d='M15.375 2.78v14.44a9.053 9.053 0 0 0 1.75-1.72v-11a9.054 9.054 0 0 0-1.75-1.72z' fill='url(#uuc-icon-id__g)'/><path d='M17.875 5.638v8.724A8.959 8.959 0 0 0 19.001 10a8.96 8.96 0 0 0-1.126-4.362z' fill='url(#uuc-icon-id__h)'/><defs><linearGradient id='uuc-icon-id__a' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__b' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__c' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__d' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__e' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__f' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__g' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__h' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs></symbol><symbol viewBox='0 0 20 20' id='uc-icon-warmth' xmlns='http://www.w3.org/2000/svg'><path d='m7.5 13.05.429.42.171-.175v-.244h-.6zm5 0h-.6v.245l.172.175.428-.42zM8.1 3.5c0-1.05.85-1.9 1.9-1.9V.4a3.1 3.1 0 0 0-3.1 3.1h1.2zm0 9.55V3.5H6.9v9.55h1.2zm-1 2.45c0-.79.315-1.506.829-2.03l-.858-.84A4.088 4.088 0 0 0 5.9 15.5h1.2zm2.9 2.9a2.9 2.9 0 0 1-2.9-2.9H5.9a4.1 4.1 0 0 0 4.1 4.1v-1.2zm2.9-2.9a2.9 2.9 0 0 1-2.9 2.9v1.2a4.1 4.1 0 0 0 4.1-4.1h-1.2zm-.829-2.03c.514.524.829 1.24.829 2.03h1.2c0-1.117-.447-2.13-1.171-2.87l-.858.84zM11.9 3.5v9.55h1.2V3.5h-1.2zM10 1.6c1.05 0 1.9.85 1.9 1.9h1.2A3.1 3.1 0 0 0 10 .4v1.2z' fill='currentColor'/><path d='M10 14V8' stroke='currentColor' stroke-width='1.2' stroke-linecap='round'/><path d='M14 3h3m-3 3h3m-3 3h3m-8 6.5a1 1 0 1 0 2 0 1 1 0 1 0-2 0' stroke='currentColor' stroke-width='1.2'/></symbol></svg>
|
|
321
|
+
<div class="uc-wrapper uc-wrapper_desktop">
|
|
322
|
+
<uc-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
|
|
323
|
+
<div class="uc-network_problems_content">
|
|
324
|
+
<div class="uc-network_problems_icon">
|
|
325
|
+
<uc-icon name="sad"></uc-icon>
|
|
326
|
+
</div>
|
|
327
|
+
<div class="uc-network_problems_text">Network error</div>
|
|
328
|
+
</div>
|
|
329
|
+
<div class="uc-network_problems_footer">
|
|
330
|
+
<uc-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></uc-btn-ui>
|
|
331
|
+
</div>
|
|
332
|
+
</uc-presence-toggle>
|
|
333
|
+
<div class="uc-viewport">
|
|
334
|
+
<div class="uc-file_type_outer">
|
|
335
|
+
<div class="uc-file_type">{{fileType}}</div>
|
|
336
|
+
</div>
|
|
337
|
+
<div class="uc-image_container" ref="img-container-el">
|
|
338
|
+
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" class="uc-image uc-image_visible_from_editor" ref="img-el" />
|
|
339
|
+
<uc-editor-image-cropper ref="cropper-el"></uc-editor-image-cropper>
|
|
340
|
+
<uc-editor-image-fader ref="fader-el"></uc-editor-image-fader>
|
|
341
|
+
</div>
|
|
342
|
+
<div class="uc-info_pan">{{msg}}</div>
|
|
343
|
+
</div>
|
|
344
|
+
<div class="uc-toolbar">
|
|
345
|
+
<uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
|
|
346
|
+
<div class="uc-toolbar_content uc-toolbar_content__editor">
|
|
347
|
+
<uc-editor-toolbar></uc-editor-toolbar>
|
|
348
|
+
</div>
|
|
349
|
+
</div>
|
|
350
|
+
</div>
|
|
351
|
+
`;
|
|
352
|
+
static observedAttributes = ["uuid", "cdn-url", "crop-preset", "tabs"];
|
|
223
353
|
static reg = () => {};
|
|
224
|
-
static
|
|
225
|
-
static
|
|
226
|
-
static getPropertyDescriptor = () => {};
|
|
227
|
-
static getPropertyOptions = () => {};
|
|
228
|
-
static finalize = () => {};
|
|
229
|
-
static finalizeStyles = () => {};
|
|
230
|
-
static shadowRootOptions = { mode: "open" };
|
|
354
|
+
static is = `sym-1`;
|
|
355
|
+
static bindAttributes = () => {};
|
|
231
356
|
};
|
|
232
357
|
export const Config = class {
|
|
233
358
|
static observedAttributes = [
|
|
234
|
-
"ctx-name",
|
|
235
359
|
"debug",
|
|
236
360
|
"pubkey",
|
|
237
361
|
"multiple",
|
|
@@ -350,52 +474,39 @@ export const Config = class {
|
|
|
350
474
|
"testmode",
|
|
351
475
|
"qualityinsights",
|
|
352
476
|
];
|
|
353
|
-
static styleAttrs = [];
|
|
354
|
-
static finalized = {};
|
|
355
|
-
static elementProperties = {};
|
|
356
|
-
static elementStyles = [];
|
|
357
477
|
static reg = () => {};
|
|
358
|
-
static
|
|
359
|
-
static
|
|
360
|
-
static
|
|
361
|
-
static getPropertyOptions = () => {};
|
|
362
|
-
static finalize = () => {};
|
|
363
|
-
static finalizeStyles = () => {};
|
|
364
|
-
static shadowRootOptions = { mode: "open" };
|
|
478
|
+
static styleAttrs = [];
|
|
479
|
+
static is = `sym-1`;
|
|
480
|
+
static bindAttributes = () => {};
|
|
365
481
|
};
|
|
366
482
|
export const Copyright = class {
|
|
367
|
-
static
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
483
|
+
static template = `
|
|
484
|
+
<a
|
|
485
|
+
href="https://uploadcare.com/?utm_source=copyright&utm_medium=referral&utm_campaign=v4"
|
|
486
|
+
target="_blank noopener"
|
|
487
|
+
class="uc-credits"
|
|
488
|
+
>Powered by Uploadcare</a
|
|
489
|
+
>
|
|
490
|
+
`;
|
|
371
491
|
static reg = () => {};
|
|
372
|
-
static
|
|
373
|
-
static
|
|
374
|
-
static
|
|
375
|
-
static getPropertyOptions = () => {};
|
|
376
|
-
static finalize = () => {};
|
|
377
|
-
static finalizeStyles = () => {};
|
|
378
|
-
static shadowRootOptions = { mode: "open" };
|
|
492
|
+
static styleAttrs = [];
|
|
493
|
+
static is = `sym-1`;
|
|
494
|
+
static bindAttributes = () => {};
|
|
379
495
|
};
|
|
380
496
|
export const CropFrame = class {
|
|
381
|
-
static
|
|
382
|
-
|
|
383
|
-
static finalized = {};
|
|
384
|
-
static elementStyles = [];
|
|
497
|
+
static template =
|
|
498
|
+
` <svg class="uc-svg" ref="svg-el" xmlns="http://www.w3.org/2000/svg"></svg> `;
|
|
385
499
|
static reg = () => {};
|
|
386
|
-
static
|
|
387
|
-
static
|
|
388
|
-
static
|
|
389
|
-
static getPropertyOptions = () => {};
|
|
390
|
-
static finalize = () => {};
|
|
391
|
-
static finalizeStyles = () => {};
|
|
392
|
-
static shadowRootOptions = { mode: "open" };
|
|
500
|
+
static styleAttrs = [];
|
|
501
|
+
static is = `sym-1`;
|
|
502
|
+
static bindAttributes = () => {};
|
|
393
503
|
};
|
|
394
504
|
export const Data = class {
|
|
505
|
+
static warn = () => {};
|
|
395
506
|
static registerCtx = () => {};
|
|
396
507
|
static deleteCtx = () => {};
|
|
397
508
|
static getCtx = () => {};
|
|
398
|
-
static
|
|
509
|
+
static globalStore = {};
|
|
399
510
|
static apply = () => {};
|
|
400
511
|
static bind = () => {};
|
|
401
512
|
static call = () => {};
|
|
@@ -408,7 +519,26 @@ export const Data = class {
|
|
|
408
519
|
};
|
|
409
520
|
export const DropArea = class {
|
|
410
521
|
static styleAttrs = [];
|
|
411
|
-
static
|
|
522
|
+
static template = `
|
|
523
|
+
<slot>
|
|
524
|
+
<div data-default-slot hidden></div>
|
|
525
|
+
<div ref="content-wrapper" class="uc-content-wrapper" set="@hidden: !isVisible">
|
|
526
|
+
<div class="uc-icon-container" set="@hidden: !withIcon">
|
|
527
|
+
<uc-icon name="default"></uc-icon>
|
|
528
|
+
<uc-icon name="arrow-down"></uc-icon>
|
|
529
|
+
</div>
|
|
530
|
+
<span class="uc-text">{{text}}</span>
|
|
531
|
+
</div>
|
|
532
|
+
</slot>
|
|
533
|
+
`;
|
|
534
|
+
static observedAttributes = [
|
|
535
|
+
"with-icon",
|
|
536
|
+
"clickable",
|
|
537
|
+
"text",
|
|
538
|
+
"fullscreen",
|
|
539
|
+
"disabled",
|
|
540
|
+
"initflow",
|
|
541
|
+
];
|
|
412
542
|
static extSrcList = {
|
|
413
543
|
FACEBOOK: "facebook",
|
|
414
544
|
DROPBOX: "dropbox",
|
|
@@ -442,9 +572,6 @@ export const DropArea = class {
|
|
|
442
572
|
ONEDRIVE: "onedrive",
|
|
443
573
|
HUDDLE: "huddle",
|
|
444
574
|
};
|
|
445
|
-
static finalized = {};
|
|
446
|
-
static elementStyles = [];
|
|
447
|
-
static qt = {};
|
|
448
575
|
static activities = {
|
|
449
576
|
START_FROM: "start-from",
|
|
450
577
|
CAMERA: "camera",
|
|
@@ -455,156 +582,280 @@ export const DropArea = class {
|
|
|
455
582
|
EXTERNAL: "external",
|
|
456
583
|
};
|
|
457
584
|
static reg = () => {};
|
|
458
|
-
static
|
|
459
|
-
static
|
|
460
|
-
static getPropertyDescriptor = () => {};
|
|
461
|
-
static getPropertyOptions = () => {};
|
|
462
|
-
static finalize = () => {};
|
|
463
|
-
static finalizeStyles = () => {};
|
|
464
|
-
static shadowRootOptions = { mode: "open" };
|
|
585
|
+
static is = `sym-1`;
|
|
586
|
+
static bindAttributes = () => {};
|
|
465
587
|
};
|
|
466
588
|
export const EditorAspectRatioButtonControl = class {
|
|
467
|
-
static
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
589
|
+
static template = `
|
|
590
|
+
<button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
|
|
591
|
+
<uc-icon ref="icon-el" set="@name: icon;"></uc-icon>
|
|
592
|
+
<div class="uc-title" ref="title-el">{{title}}</div>
|
|
593
|
+
</button>
|
|
594
|
+
`;
|
|
471
595
|
static reg = () => {};
|
|
472
|
-
static
|
|
473
|
-
static
|
|
474
|
-
static
|
|
475
|
-
static getPropertyOptions = () => {};
|
|
476
|
-
static finalize = () => {};
|
|
477
|
-
static finalizeStyles = () => {};
|
|
478
|
-
static shadowRootOptions = { mode: "open" };
|
|
596
|
+
static styleAttrs = [];
|
|
597
|
+
static is = `sym-1`;
|
|
598
|
+
static bindAttributes = () => {};
|
|
479
599
|
};
|
|
480
600
|
export const EditorCropButtonControl = class {
|
|
481
|
-
static
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
601
|
+
static template = `
|
|
602
|
+
<button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
|
|
603
|
+
<uc-icon ref="icon-el" set="@name: icon;"></uc-icon>
|
|
604
|
+
<div class="uc-title" ref="title-el">{{title}}</div>
|
|
605
|
+
</button>
|
|
606
|
+
`;
|
|
485
607
|
static reg = () => {};
|
|
486
|
-
static
|
|
487
|
-
static
|
|
488
|
-
static
|
|
489
|
-
static getPropertyOptions = () => {};
|
|
490
|
-
static finalize = () => {};
|
|
491
|
-
static finalizeStyles = () => {};
|
|
492
|
-
static shadowRootOptions = { mode: "open" };
|
|
608
|
+
static styleAttrs = [];
|
|
609
|
+
static is = `sym-1`;
|
|
610
|
+
static bindAttributes = () => {};
|
|
493
611
|
};
|
|
494
612
|
export const EditorFilterControl = class {
|
|
495
|
-
static
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
613
|
+
static template = `
|
|
614
|
+
<button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
|
|
615
|
+
<uc-icon ref="icon-el" set="@name: icon;"></uc-icon>
|
|
616
|
+
<div class="uc-title" ref="title-el">{{title}}</div>
|
|
617
|
+
</button>
|
|
618
|
+
`;
|
|
499
619
|
static reg = () => {};
|
|
500
|
-
static
|
|
501
|
-
static
|
|
502
|
-
static
|
|
503
|
-
static getPropertyOptions = () => {};
|
|
504
|
-
static finalize = () => {};
|
|
505
|
-
static finalizeStyles = () => {};
|
|
506
|
-
static shadowRootOptions = { mode: "open" };
|
|
620
|
+
static styleAttrs = [];
|
|
621
|
+
static is = `sym-1`;
|
|
622
|
+
static bindAttributes = () => {};
|
|
507
623
|
};
|
|
508
624
|
export const EditorFreeformButtonControl = class {
|
|
509
|
-
static
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
625
|
+
static template = `
|
|
626
|
+
<button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
|
|
627
|
+
<uc-icon ref="icon-el" set="@name: icon;"></uc-icon>
|
|
628
|
+
<div class="uc-title" ref="title-el">{{title}}</div>
|
|
629
|
+
</button>
|
|
630
|
+
`;
|
|
513
631
|
static reg = () => {};
|
|
514
|
-
static
|
|
515
|
-
static
|
|
516
|
-
static
|
|
517
|
-
static getPropertyOptions = () => {};
|
|
518
|
-
static finalize = () => {};
|
|
519
|
-
static finalizeStyles = () => {};
|
|
520
|
-
static shadowRootOptions = { mode: "open" };
|
|
632
|
+
static styleAttrs = [];
|
|
633
|
+
static is = `sym-1`;
|
|
634
|
+
static bindAttributes = () => {};
|
|
521
635
|
};
|
|
522
636
|
export const EditorImageCropper = class {
|
|
523
|
-
static
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
637
|
+
static template = `
|
|
638
|
+
<canvas class="uc-canvas" ref="canvas-el"></canvas>
|
|
639
|
+
<uc-crop-frame ref="frame-el"></uc-crop-frame>
|
|
640
|
+
`;
|
|
527
641
|
static reg = () => {};
|
|
528
|
-
static
|
|
529
|
-
static
|
|
530
|
-
static
|
|
531
|
-
static getPropertyOptions = () => {};
|
|
532
|
-
static finalize = () => {};
|
|
533
|
-
static finalizeStyles = () => {};
|
|
534
|
-
static shadowRootOptions = { mode: "open" };
|
|
642
|
+
static styleAttrs = [];
|
|
643
|
+
static is = `sym-1`;
|
|
644
|
+
static bindAttributes = () => {};
|
|
535
645
|
};
|
|
536
646
|
export const EditorImageFader = class {
|
|
537
|
-
static styleAttrs = [];
|
|
538
|
-
static finalized = {};
|
|
539
|
-
static elementProperties = {};
|
|
540
|
-
static elementStyles = [];
|
|
541
647
|
static reg = () => {};
|
|
542
|
-
static
|
|
543
|
-
static
|
|
544
|
-
static
|
|
545
|
-
static getPropertyOptions = () => {};
|
|
546
|
-
static finalize = () => {};
|
|
547
|
-
static finalizeStyles = () => {};
|
|
548
|
-
static shadowRootOptions = { mode: "open" };
|
|
648
|
+
static styleAttrs = [];
|
|
649
|
+
static is = `sym-1`;
|
|
650
|
+
static bindAttributes = () => {};
|
|
549
651
|
};
|
|
550
652
|
export const EditorOperationControl = class {
|
|
551
|
-
static
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
653
|
+
static template = `
|
|
654
|
+
<button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
|
|
655
|
+
<uc-icon ref="icon-el" set="@name: icon;"></uc-icon>
|
|
656
|
+
<div class="uc-title" ref="title-el">{{title}}</div>
|
|
657
|
+
</button>
|
|
658
|
+
`;
|
|
555
659
|
static reg = () => {};
|
|
556
|
-
static
|
|
557
|
-
static
|
|
558
|
-
static
|
|
559
|
-
static getPropertyOptions = () => {};
|
|
560
|
-
static finalize = () => {};
|
|
561
|
-
static finalizeStyles = () => {};
|
|
562
|
-
static shadowRootOptions = { mode: "open" };
|
|
660
|
+
static styleAttrs = [];
|
|
661
|
+
static is = `sym-1`;
|
|
662
|
+
static bindAttributes = () => {};
|
|
563
663
|
};
|
|
564
664
|
export const EditorScroller = class {
|
|
565
|
-
static
|
|
566
|
-
static finalized = {};
|
|
567
|
-
static elementProperties = {};
|
|
568
|
-
static elementStyles = [];
|
|
665
|
+
static template = ` <slot></slot> `;
|
|
569
666
|
static reg = () => {};
|
|
570
|
-
static
|
|
571
|
-
static
|
|
572
|
-
static
|
|
573
|
-
static getPropertyOptions = () => {};
|
|
574
|
-
static finalize = () => {};
|
|
575
|
-
static finalizeStyles = () => {};
|
|
576
|
-
static shadowRootOptions = { mode: "open" };
|
|
667
|
+
static styleAttrs = [];
|
|
668
|
+
static is = `sym-1`;
|
|
669
|
+
static bindAttributes = () => {};
|
|
577
670
|
};
|
|
578
671
|
export const EditorSlider = class {
|
|
579
|
-
static
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
672
|
+
static template = `
|
|
673
|
+
<uc-slider-ui
|
|
674
|
+
ref="slider-el"
|
|
675
|
+
set="disabled: disabled; min: min; max: max; defaultValue: defaultValue; zero: zero; onInput: on.input;"
|
|
676
|
+
></uc-slider-ui>
|
|
677
|
+
`;
|
|
583
678
|
static reg = () => {};
|
|
584
|
-
static
|
|
585
|
-
static
|
|
586
|
-
static
|
|
587
|
-
static getPropertyOptions = () => {};
|
|
588
|
-
static finalize = () => {};
|
|
589
|
-
static finalizeStyles = () => {};
|
|
590
|
-
static shadowRootOptions = { mode: "open" };
|
|
679
|
+
static styleAttrs = [];
|
|
680
|
+
static is = `sym-1`;
|
|
681
|
+
static bindAttributes = () => {};
|
|
591
682
|
};
|
|
592
683
|
export const EditorToolbar = class {
|
|
593
|
-
static
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
684
|
+
static template = `
|
|
685
|
+
<uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
|
|
686
|
+
<div class="uc-info-tooltip_container">
|
|
687
|
+
<div class="uc-info-tooltip_wrapper">
|
|
688
|
+
<div ref="tooltip-el" class="uc-info-tooltip uc-info-tooltip_hidden">{{*operationTooltip}}</div>
|
|
689
|
+
</div>
|
|
690
|
+
</div>
|
|
691
|
+
<div class="uc-toolbar-container">
|
|
692
|
+
<uc-presence-toggle
|
|
693
|
+
role="tablist"
|
|
694
|
+
class="uc-sub-toolbar"
|
|
695
|
+
set="visible: presence.mainToolbar; styles: presence.subTopToolbarStyles"
|
|
696
|
+
>
|
|
697
|
+
<div class="uc-tab-content-row">
|
|
698
|
+
<uc-presence-toggle
|
|
699
|
+
id="tab_crop"
|
|
700
|
+
class="uc-tab-content"
|
|
701
|
+
set="visible: presence.tabContent.crop; styles: presence.tabContentStyles"
|
|
702
|
+
>
|
|
703
|
+
<uc-editor-scroller hidden-scrollbar>
|
|
704
|
+
<div class="uc-controls-list_align">
|
|
705
|
+
<div
|
|
706
|
+
role="listbox"
|
|
707
|
+
aria-orientation="horizontal"
|
|
708
|
+
class="uc-controls-list_inner"
|
|
709
|
+
ref="controls-list-crop"
|
|
710
|
+
></div>
|
|
711
|
+
</div>
|
|
712
|
+
</uc-editor-scroller>
|
|
713
|
+
</uc-presence-toggle>
|
|
714
|
+
|
|
715
|
+
<uc-presence-toggle
|
|
716
|
+
id="tab_tuning"
|
|
717
|
+
class="uc-tab-content"
|
|
718
|
+
set="visible: presence.tabContent.tuning; styles: presence.tabContentStyles"
|
|
719
|
+
>
|
|
720
|
+
<uc-editor-scroller hidden-scrollbar>
|
|
721
|
+
<div class="uc-controls-list_align">
|
|
722
|
+
<div
|
|
723
|
+
role="listbox"
|
|
724
|
+
aria-orientation="horizontal"
|
|
725
|
+
class="uc-controls-list_inner"
|
|
726
|
+
ref="controls-list-tuning"
|
|
727
|
+
></div>
|
|
728
|
+
</div>
|
|
729
|
+
</uc-editor-scroller>
|
|
730
|
+
</uc-presence-toggle>
|
|
731
|
+
|
|
732
|
+
<uc-presence-toggle
|
|
733
|
+
id="tab_filters"
|
|
734
|
+
class="uc-tab-content"
|
|
735
|
+
set="visible: presence.tabContent.filters; styles: presence.tabContentStyles"
|
|
736
|
+
>
|
|
737
|
+
<uc-editor-scroller hidden-scrollbar>
|
|
738
|
+
<div class="uc-controls-list_align">
|
|
739
|
+
<div
|
|
740
|
+
role="listbox"
|
|
741
|
+
aria-orientation="horizontal"
|
|
742
|
+
class="uc-controls-list_inner"
|
|
743
|
+
ref="controls-list-filters"
|
|
744
|
+
></div>
|
|
745
|
+
</div>
|
|
746
|
+
</uc-editor-scroller>
|
|
747
|
+
</uc-presence-toggle>
|
|
748
|
+
</div>
|
|
749
|
+
<div class="uc-controls-row">
|
|
750
|
+
<uc-presence-toggle
|
|
751
|
+
class="uc-tab-toggles"
|
|
752
|
+
set="visible: presence.tabToggles; styles: presence.tabTogglesStyles"
|
|
753
|
+
>
|
|
754
|
+
<div ref="tabs-indicator" class="uc-tab-toggles_indicator"></div>
|
|
755
|
+
|
|
756
|
+
<uc-presence-toggle
|
|
757
|
+
class="uc-tab-toggle"
|
|
758
|
+
set="visible: presence.tabToggle.crop; styles: presence.tabToggleStyles;"
|
|
759
|
+
>
|
|
760
|
+
<uc-btn-ui
|
|
761
|
+
theme="tab"
|
|
762
|
+
ref="tab-toggle-crop"
|
|
763
|
+
data-id="crop"
|
|
764
|
+
icon="crop"
|
|
765
|
+
set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_crop; title-prop: a11y-editor-tab-crop"
|
|
766
|
+
>
|
|
767
|
+
</uc-btn-ui>
|
|
768
|
+
</uc-presence-toggle>
|
|
769
|
+
|
|
770
|
+
<uc-presence-toggle
|
|
771
|
+
class="uc-tab-toggle"
|
|
772
|
+
set="visible: presence.tabToggle.tuning; styles: presence.tabToggleStyles;"
|
|
773
|
+
>
|
|
774
|
+
<uc-btn-ui
|
|
775
|
+
theme="tab"
|
|
776
|
+
ref="tab-toggle-tuning"
|
|
777
|
+
data-id="tuning"
|
|
778
|
+
icon="tuning"
|
|
779
|
+
set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_tuning; title-prop: a11y-editor-tab-tuning"
|
|
780
|
+
>
|
|
781
|
+
</uc-btn-ui>
|
|
782
|
+
</uc-presence-toggle>
|
|
783
|
+
|
|
784
|
+
<uc-presence-toggle
|
|
785
|
+
class="uc-tab-toggle"
|
|
786
|
+
set="visible: presence.tabToggle.filters; styles: presence.tabToggleStyles;"
|
|
787
|
+
>
|
|
788
|
+
<uc-btn-ui
|
|
789
|
+
theme="tab"
|
|
790
|
+
ref="tab-toggle-filters"
|
|
791
|
+
data-id="filters"
|
|
792
|
+
icon="filters"
|
|
793
|
+
set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_filters; title-prop: a11y-editor-tab-filters"
|
|
794
|
+
>
|
|
795
|
+
</uc-btn-ui>
|
|
796
|
+
</uc-presence-toggle>
|
|
797
|
+
|
|
798
|
+
</uc-presence-toggle>
|
|
799
|
+
<uc-btn-ui style="order: -1" theme="secondary-icon" icon="closeMax" set="onclick: on.cancel; title-prop:cancel">
|
|
800
|
+
</uc-btn-ui>
|
|
801
|
+
<uc-btn-ui theme="primary-icon" icon="done" set="onclick: on.apply; title-prop:apply"> </uc-btn-ui>
|
|
802
|
+
</div>
|
|
803
|
+
</uc-presence-toggle>
|
|
804
|
+
<uc-presence-toggle
|
|
805
|
+
class="uc-sub-toolbar"
|
|
806
|
+
set="visible: presence.subToolbar; styles: presence.subBottomToolbarStyles"
|
|
807
|
+
>
|
|
808
|
+
<div class="uc-slider" set="@hidden:!hideSliderOrList">
|
|
809
|
+
<uc-editor-slider ref="slider-el"></uc-editor-slider>
|
|
810
|
+
</div>
|
|
811
|
+
|
|
812
|
+
<div set="@hidden:hideSliderOrList" class="uc-list-aspect-ratio-container">
|
|
813
|
+
<div class="uc-list-aspect-ratio" ref="list-el"></div>
|
|
814
|
+
</div>
|
|
815
|
+
<div class="uc-controls-row">
|
|
816
|
+
<uc-btn-ui theme="secondary" set="onclick: on.cancelSlider; title-prop:cancel" l10n="@text:cancel"> </uc-btn-ui>
|
|
817
|
+
<uc-btn-ui theme="primary" set="onclick: on.applySlider; title-prop:apply" l10n="@text:apply"> </uc-btn-ui>
|
|
818
|
+
</div>
|
|
819
|
+
</uc-presence-toggle>
|
|
820
|
+
</div>
|
|
821
|
+
`;
|
|
597
822
|
static reg = () => {};
|
|
598
|
-
static
|
|
599
|
-
static
|
|
600
|
-
static
|
|
601
|
-
static getPropertyOptions = () => {};
|
|
602
|
-
static finalize = () => {};
|
|
603
|
-
static finalizeStyles = () => {};
|
|
604
|
-
static shadowRootOptions = { mode: "open" };
|
|
823
|
+
static styleAttrs = [];
|
|
824
|
+
static is = `sym-1`;
|
|
825
|
+
static bindAttributes = () => {};
|
|
605
826
|
};
|
|
606
827
|
export const ExternalSource = class {
|
|
607
|
-
static
|
|
828
|
+
static template = `
|
|
829
|
+
<uc-activity-header>
|
|
830
|
+
<button
|
|
831
|
+
type="button"
|
|
832
|
+
class="uc-mini-btn uc-close-btn"
|
|
833
|
+
set="onclick: *historyBack"
|
|
834
|
+
l10n="@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close"
|
|
835
|
+
>
|
|
836
|
+
<uc-icon name="close"></uc-icon>
|
|
837
|
+
</button>
|
|
838
|
+
</uc-activity-header>
|
|
839
|
+
<div class="uc-content">
|
|
840
|
+
<div ref="iframeWrapper" class="uc-iframe-wrapper"></div>
|
|
841
|
+
<div class="uc-toolbar" set="@hidden: !toolbarVisible">
|
|
842
|
+
<button type="button" class="uc-cancel-btn uc-secondary-btn" set="onclick: onCancel" l10n="cancel"></button>
|
|
843
|
+
<div set="@hidden: !showSelectionStatus" class="uc-selection-status-box">
|
|
844
|
+
<span>{{counterText}}</span>
|
|
845
|
+
<button type="button" set="onclick: onSelectAll; @hidden: !couldSelectAll" l10n="select-all"></button>
|
|
846
|
+
<button type="button" set="onclick: onDeselectAll; @hidden: !couldDeselectAll" l10n="deselect-all"></button>
|
|
847
|
+
</div>
|
|
848
|
+
<button
|
|
849
|
+
type="button"
|
|
850
|
+
class="uc-done-btn uc-primary-btn"
|
|
851
|
+
set="onclick: onDone; @disabled: !isDoneBtnEnabled; @hidden: !showDoneBtn"
|
|
852
|
+
>
|
|
853
|
+
<uc-spinner set="@hidden: isSelectionReady"></uc-spinner>
|
|
854
|
+
<span l10n="done" set="@class: doneBtnTextClass"></span>
|
|
855
|
+
</button>
|
|
856
|
+
</div>
|
|
857
|
+
</div>
|
|
858
|
+
`;
|
|
608
859
|
static extSrcList = {
|
|
609
860
|
FACEBOOK: "facebook",
|
|
610
861
|
DROPBOX: "dropbox",
|
|
@@ -638,9 +889,6 @@ export const ExternalSource = class {
|
|
|
638
889
|
ONEDRIVE: "onedrive",
|
|
639
890
|
HUDDLE: "huddle",
|
|
640
891
|
};
|
|
641
|
-
static finalized = {};
|
|
642
|
-
static elementStyles = [];
|
|
643
|
-
static qt = {};
|
|
644
892
|
static activities = {
|
|
645
893
|
START_FROM: "start-from",
|
|
646
894
|
CAMERA: "camera",
|
|
@@ -650,15 +898,10 @@ export const ExternalSource = class {
|
|
|
650
898
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
651
899
|
EXTERNAL: "external",
|
|
652
900
|
};
|
|
653
|
-
static styleAttrs = [];
|
|
654
901
|
static reg = () => {};
|
|
655
|
-
static
|
|
656
|
-
static
|
|
657
|
-
static
|
|
658
|
-
static getPropertyOptions = () => {};
|
|
659
|
-
static finalize = () => {};
|
|
660
|
-
static finalizeStyles = () => {};
|
|
661
|
-
static shadowRootOptions = { mode: "open" };
|
|
902
|
+
static styleAttrs = [];
|
|
903
|
+
static is = `sym-1`;
|
|
904
|
+
static bindAttributes = () => {};
|
|
662
905
|
};
|
|
663
906
|
export const ExternalUploadSource = {
|
|
664
907
|
FACEBOOK: "facebook",
|
|
@@ -673,10 +916,45 @@ export const ExternalUploadSource = {
|
|
|
673
916
|
HUDDLE: "huddle",
|
|
674
917
|
};
|
|
675
918
|
export const FileItem = class {
|
|
919
|
+
static template = `
|
|
920
|
+
<div class="uc-inner" set="@finished: isFinished; @uploading: isUploading; @failed: isFailed; @focused: isFocused">
|
|
921
|
+
<uc-thumb set="uid:uid;badgeIcon:badgeIcon"></uc-thumb>
|
|
922
|
+
|
|
923
|
+
<div aria-atomic="true" aria-live="polite" class="uc-file-name-wrapper" set="@aria-label:ariaLabelStatusFile;">
|
|
924
|
+
<span class="uc-file-name" set="@hidden: !showFileNames">{{itemName}}</span>
|
|
925
|
+
<span class="uc-file-error" set="@hidden: !errorText;">{{errorText}}</span>
|
|
926
|
+
<span class="uc-file-hint" set="@hidden: !hint">{{hint}}</span>
|
|
927
|
+
</div>
|
|
928
|
+
<div class="uc-file-actions">
|
|
929
|
+
<button
|
|
930
|
+
type="button"
|
|
931
|
+
l10n="@title:file-item-edit-button;@aria-label:file-item-edit-button"
|
|
932
|
+
class="uc-edit-btn uc-mini-btn"
|
|
933
|
+
set="onclick: onEdit; @hidden: !isEditable"
|
|
934
|
+
data-testid="edit"
|
|
935
|
+
>
|
|
936
|
+
<uc-icon name="edit-file"></uc-icon>
|
|
937
|
+
</button>
|
|
938
|
+
<button
|
|
939
|
+
type="button"
|
|
940
|
+
l10n="@title:file-item-remove-button;@aria-label:file-item-remove-button"
|
|
941
|
+
class="uc-remove-btn uc-mini-btn"
|
|
942
|
+
set="onclick: onRemove;"
|
|
943
|
+
>
|
|
944
|
+
<uc-icon name="remove-file"></uc-icon>
|
|
945
|
+
</button>
|
|
946
|
+
<button type="button" class="uc-upload-btn uc-mini-btn" set="onclick: onUpload;">
|
|
947
|
+
<uc-icon name="upload"></uc-icon>
|
|
948
|
+
</button>
|
|
949
|
+
</div>
|
|
950
|
+
<uc-progress-bar
|
|
951
|
+
class="uc-progress-bar"
|
|
952
|
+
set="value: progressValue; visible: progressVisible; @hasFileName: showFileNames;"
|
|
953
|
+
>
|
|
954
|
+
</uc-progress-bar>
|
|
955
|
+
</div>
|
|
956
|
+
`;
|
|
676
957
|
static activeInstances = {};
|
|
677
|
-
static elementProperties = {};
|
|
678
|
-
static finalized = {};
|
|
679
|
-
static elementStyles = [];
|
|
680
958
|
static extSrcList = {
|
|
681
959
|
FACEBOOK: "facebook",
|
|
682
960
|
DROPBOX: "dropbox",
|
|
@@ -710,7 +988,6 @@ export const FileItem = class {
|
|
|
710
988
|
ONEDRIVE: "onedrive",
|
|
711
989
|
HUDDLE: "huddle",
|
|
712
990
|
};
|
|
713
|
-
static qt = {};
|
|
714
991
|
static activities = {
|
|
715
992
|
START_FROM: "start-from",
|
|
716
993
|
CAMERA: "camera",
|
|
@@ -720,57 +997,29 @@ export const FileItem = class {
|
|
|
720
997
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
721
998
|
EXTERNAL: "external",
|
|
722
999
|
};
|
|
723
|
-
static styleAttrs = [];
|
|
724
1000
|
static reg = () => {};
|
|
725
|
-
static
|
|
726
|
-
static
|
|
727
|
-
static
|
|
728
|
-
static getPropertyOptions = () => {};
|
|
729
|
-
static finalize = () => {};
|
|
730
|
-
static finalizeStyles = () => {};
|
|
731
|
-
static shadowRootOptions = { mode: "open" };
|
|
1001
|
+
static styleAttrs = [];
|
|
1002
|
+
static is = `sym-1`;
|
|
1003
|
+
static bindAttributes = () => {};
|
|
732
1004
|
};
|
|
733
1005
|
export const FileUploaderInline = class {
|
|
734
1006
|
static styleAttrs = [];
|
|
735
|
-
static elementProperties = {};
|
|
736
|
-
static finalized = {};
|
|
737
|
-
static elementStyles = [];
|
|
738
1007
|
static reg = () => {};
|
|
739
|
-
static
|
|
740
|
-
static
|
|
741
|
-
static getPropertyDescriptor = () => {};
|
|
742
|
-
static getPropertyOptions = () => {};
|
|
743
|
-
static finalize = () => {};
|
|
744
|
-
static finalizeStyles = () => {};
|
|
745
|
-
static shadowRootOptions = { mode: "open" };
|
|
1008
|
+
static is = `sym-1`;
|
|
1009
|
+
static bindAttributes = () => {};
|
|
746
1010
|
};
|
|
747
1011
|
export const FileUploaderMinimal = class {
|
|
748
1012
|
static styleAttrs = [];
|
|
749
|
-
static elementProperties = {};
|
|
750
|
-
static finalized = {};
|
|
751
|
-
static elementStyles = [];
|
|
752
1013
|
static reg = () => {};
|
|
753
|
-
static
|
|
754
|
-
static
|
|
755
|
-
static getPropertyDescriptor = () => {};
|
|
756
|
-
static getPropertyOptions = () => {};
|
|
757
|
-
static finalize = () => {};
|
|
758
|
-
static finalizeStyles = () => {};
|
|
759
|
-
static shadowRootOptions = { mode: "open" };
|
|
1014
|
+
static is = `sym-1`;
|
|
1015
|
+
static bindAttributes = () => {};
|
|
760
1016
|
};
|
|
761
1017
|
export const FileUploaderRegular = class {
|
|
762
1018
|
static styleAttrs = [];
|
|
763
|
-
static
|
|
764
|
-
static finalized = {};
|
|
765
|
-
static elementStyles = [];
|
|
1019
|
+
static observedAttributes = ["headless"];
|
|
766
1020
|
static reg = () => {};
|
|
767
|
-
static
|
|
768
|
-
static
|
|
769
|
-
static getPropertyDescriptor = () => {};
|
|
770
|
-
static getPropertyOptions = () => {};
|
|
771
|
-
static finalize = () => {};
|
|
772
|
-
static finalizeStyles = () => {};
|
|
773
|
-
static shadowRootOptions = { mode: "open" };
|
|
1021
|
+
static is = `sym-1`;
|
|
1022
|
+
static bindAttributes = () => {};
|
|
774
1023
|
};
|
|
775
1024
|
export const FormInput = class {
|
|
776
1025
|
static extSrcList = {
|
|
@@ -806,10 +1055,6 @@ export const FormInput = class {
|
|
|
806
1055
|
ONEDRIVE: "onedrive",
|
|
807
1056
|
HUDDLE: "huddle",
|
|
808
1057
|
};
|
|
809
|
-
static finalized = {};
|
|
810
|
-
static elementProperties = {};
|
|
811
|
-
static elementStyles = [];
|
|
812
|
-
static qt = {};
|
|
813
1058
|
static activities = {
|
|
814
1059
|
START_FROM: "start-from",
|
|
815
1060
|
CAMERA: "camera",
|
|
@@ -819,29 +1064,22 @@ export const FormInput = class {
|
|
|
819
1064
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
820
1065
|
EXTERNAL: "external",
|
|
821
1066
|
};
|
|
822
|
-
static styleAttrs = [];
|
|
823
1067
|
static reg = () => {};
|
|
824
|
-
static
|
|
825
|
-
static
|
|
826
|
-
static
|
|
827
|
-
static getPropertyOptions = () => {};
|
|
828
|
-
static finalize = () => {};
|
|
829
|
-
static finalizeStyles = () => {};
|
|
830
|
-
static shadowRootOptions = { mode: "open" };
|
|
1068
|
+
static styleAttrs = [];
|
|
1069
|
+
static is = `sym-1`;
|
|
1070
|
+
static bindAttributes = () => {};
|
|
831
1071
|
};
|
|
832
1072
|
export const Icon = class {
|
|
833
|
-
static
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
1073
|
+
static template = `
|
|
1074
|
+
<svg ref="svg" xmlns="http://www.w3.org/2000/svg">
|
|
1075
|
+
<use set="@href: href;"></use>
|
|
1076
|
+
</svg>
|
|
1077
|
+
`;
|
|
1078
|
+
static observedAttributes = ["name"];
|
|
837
1079
|
static reg = () => {};
|
|
838
|
-
static
|
|
839
|
-
static
|
|
840
|
-
static
|
|
841
|
-
static getPropertyOptions = () => {};
|
|
842
|
-
static finalize = () => {};
|
|
843
|
-
static finalizeStyles = () => {};
|
|
844
|
-
static shadowRootOptions = { mode: "open" };
|
|
1080
|
+
static styleAttrs = [];
|
|
1081
|
+
static is = `sym-1`;
|
|
1082
|
+
static bindAttributes = () => {};
|
|
845
1083
|
};
|
|
846
1084
|
export const Img = class {
|
|
847
1085
|
static observedAttributes = [
|
|
@@ -865,44 +1103,31 @@ export const Img = class {
|
|
|
865
1103
|
"is-preview-blur",
|
|
866
1104
|
];
|
|
867
1105
|
static reg = () => {};
|
|
868
|
-
static
|
|
869
|
-
static
|
|
870
|
-
static createProperty = () => {};
|
|
871
|
-
static getPropertyDescriptor = () => {};
|
|
872
|
-
static getPropertyOptions = () => {};
|
|
873
|
-
static finalize = () => {};
|
|
874
|
-
static finalizeStyles = () => {};
|
|
875
|
-
static elementStyles = [];
|
|
876
|
-
static shadowRootOptions = { mode: "open" };
|
|
877
|
-
static elementProperties = {};
|
|
1106
|
+
static is = `sym-1`;
|
|
1107
|
+
static bindAttributes = () => {};
|
|
878
1108
|
};
|
|
879
1109
|
export const LineLoaderUi = class {
|
|
880
|
-
static
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
1110
|
+
static template = `
|
|
1111
|
+
<div class="uc-inner">
|
|
1112
|
+
<div class="uc-line" ref="line-el"></div>
|
|
1113
|
+
</div>
|
|
1114
|
+
`;
|
|
884
1115
|
static reg = () => {};
|
|
885
|
-
static
|
|
886
|
-
static
|
|
887
|
-
static
|
|
888
|
-
static getPropertyOptions = () => {};
|
|
889
|
-
static finalize = () => {};
|
|
890
|
-
static finalizeStyles = () => {};
|
|
891
|
-
static shadowRootOptions = { mode: "open" };
|
|
1116
|
+
static styleAttrs = [];
|
|
1117
|
+
static is = `sym-1`;
|
|
1118
|
+
static bindAttributes = () => {};
|
|
892
1119
|
};
|
|
893
1120
|
export const Modal = class {
|
|
894
1121
|
static styleAttrs = [];
|
|
895
|
-
static
|
|
896
|
-
static
|
|
897
|
-
|
|
1122
|
+
static StateConsumerScope = `modal`;
|
|
1123
|
+
static template = `
|
|
1124
|
+
<dialog ref="dialog">
|
|
1125
|
+
<slot></slot>
|
|
1126
|
+
</dialog>
|
|
1127
|
+
`;
|
|
898
1128
|
static reg = () => {};
|
|
899
|
-
static
|
|
900
|
-
static
|
|
901
|
-
static getPropertyDescriptor = () => {};
|
|
902
|
-
static getPropertyOptions = () => {};
|
|
903
|
-
static finalize = () => {};
|
|
904
|
-
static finalizeStyles = () => {};
|
|
905
|
-
static shadowRootOptions = { mode: "open" };
|
|
1129
|
+
static is = `sym-1`;
|
|
1130
|
+
static bindAttributes = () => {};
|
|
906
1131
|
};
|
|
907
1132
|
export const ModalEvents = {
|
|
908
1133
|
ADD: "modal:add",
|
|
@@ -913,37 +1138,27 @@ export const ModalEvents = {
|
|
|
913
1138
|
DESTROY: "modal:destroy",
|
|
914
1139
|
};
|
|
915
1140
|
export const PACKAGE_NAME = `blocks`;
|
|
916
|
-
export const PACKAGE_VERSION = `1.25.0
|
|
1141
|
+
export const PACKAGE_VERSION = `1.25.0`;
|
|
917
1142
|
export const PresenceToggle = class {
|
|
918
|
-
static
|
|
919
|
-
static styleAttrs = [];
|
|
920
|
-
static finalized = {};
|
|
921
|
-
static elementStyles = [];
|
|
1143
|
+
static template = `<slot></slot> `;
|
|
922
1144
|
static reg = () => {};
|
|
923
|
-
static
|
|
924
|
-
static
|
|
925
|
-
static
|
|
926
|
-
static getPropertyOptions = () => {};
|
|
927
|
-
static finalize = () => {};
|
|
928
|
-
static finalizeStyles = () => {};
|
|
929
|
-
static shadowRootOptions = { mode: "open" };
|
|
1145
|
+
static styleAttrs = [];
|
|
1146
|
+
static is = `sym-1`;
|
|
1147
|
+
static bindAttributes = () => {};
|
|
930
1148
|
};
|
|
931
1149
|
export const ProgressBar = class {
|
|
932
|
-
static
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
1150
|
+
static template = `
|
|
1151
|
+
<div ref="fakeProgressLine" class="uc-fake-progress"></div>
|
|
1152
|
+
<div ref="realProgressLine" class="uc-progress"></div>
|
|
1153
|
+
`;
|
|
936
1154
|
static reg = () => {};
|
|
937
|
-
static
|
|
938
|
-
static
|
|
939
|
-
static
|
|
940
|
-
static getPropertyOptions = () => {};
|
|
941
|
-
static finalize = () => {};
|
|
942
|
-
static finalizeStyles = () => {};
|
|
943
|
-
static shadowRootOptions = { mode: "open" };
|
|
1155
|
+
static styleAttrs = [];
|
|
1156
|
+
static is = `sym-1`;
|
|
1157
|
+
static bindAttributes = () => {};
|
|
944
1158
|
};
|
|
945
1159
|
export const ProgressBarCommon = class {
|
|
946
|
-
static
|
|
1160
|
+
static template =
|
|
1161
|
+
` <uc-progress-bar set="visible: visible; value: value"></uc-progress-bar> `;
|
|
947
1162
|
static extSrcList = {
|
|
948
1163
|
FACEBOOK: "facebook",
|
|
949
1164
|
DROPBOX: "dropbox",
|
|
@@ -977,9 +1192,6 @@ export const ProgressBarCommon = class {
|
|
|
977
1192
|
ONEDRIVE: "onedrive",
|
|
978
1193
|
HUDDLE: "huddle",
|
|
979
1194
|
};
|
|
980
|
-
static finalized = {};
|
|
981
|
-
static elementStyles = [];
|
|
982
|
-
static qt = {};
|
|
983
1195
|
static activities = {
|
|
984
1196
|
START_FROM: "start-from",
|
|
985
1197
|
CAMERA: "camera",
|
|
@@ -989,33 +1201,32 @@ export const ProgressBarCommon = class {
|
|
|
989
1201
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
990
1202
|
EXTERNAL: "external",
|
|
991
1203
|
};
|
|
992
|
-
static styleAttrs = [];
|
|
993
1204
|
static reg = () => {};
|
|
994
|
-
static
|
|
995
|
-
static
|
|
996
|
-
static
|
|
997
|
-
static getPropertyOptions = () => {};
|
|
998
|
-
static finalize = () => {};
|
|
999
|
-
static finalizeStyles = () => {};
|
|
1000
|
-
static shadowRootOptions = { mode: "open" };
|
|
1205
|
+
static styleAttrs = [];
|
|
1206
|
+
static is = `sym-1`;
|
|
1207
|
+
static bindAttributes = () => {};
|
|
1001
1208
|
};
|
|
1002
1209
|
export const Select = class {
|
|
1003
|
-
static
|
|
1004
|
-
|
|
1005
|
-
static finalized = {};
|
|
1006
|
-
static elementStyles = [];
|
|
1210
|
+
static template =
|
|
1211
|
+
` <select ref="select" set="innerHTML: selectHtml; onchange: onSelect"></select> `;
|
|
1007
1212
|
static reg = () => {};
|
|
1008
|
-
static
|
|
1009
|
-
static
|
|
1010
|
-
static
|
|
1011
|
-
static getPropertyOptions = () => {};
|
|
1012
|
-
static finalize = () => {};
|
|
1013
|
-
static finalizeStyles = () => {};
|
|
1014
|
-
static shadowRootOptions = { mode: "open" };
|
|
1213
|
+
static styleAttrs = [];
|
|
1214
|
+
static is = `sym-1`;
|
|
1215
|
+
static bindAttributes = () => {};
|
|
1015
1216
|
};
|
|
1016
1217
|
export const SimpleBtn = class {
|
|
1017
1218
|
static styleAttrs = [];
|
|
1018
|
-
static
|
|
1219
|
+
static template = `
|
|
1220
|
+
<uc-drop-area set="@disabled: !withDropZone">
|
|
1221
|
+
<button type="button" set="onclick: onClick">
|
|
1222
|
+
<uc-icon name="upload"></uc-icon>
|
|
1223
|
+
<span l10n="button-text"></span>
|
|
1224
|
+
<slot></slot>
|
|
1225
|
+
<div class="uc-visual-drop-area" l10n="drop-files-here"></div>
|
|
1226
|
+
</button>
|
|
1227
|
+
</uc-drop-area>
|
|
1228
|
+
`;
|
|
1229
|
+
static observedAttributes = ["dropzone"];
|
|
1019
1230
|
static extSrcList = {
|
|
1020
1231
|
FACEBOOK: "facebook",
|
|
1021
1232
|
DROPBOX: "dropbox",
|
|
@@ -1049,9 +1260,6 @@ export const SimpleBtn = class {
|
|
|
1049
1260
|
ONEDRIVE: "onedrive",
|
|
1050
1261
|
HUDDLE: "huddle",
|
|
1051
1262
|
};
|
|
1052
|
-
static finalized = {};
|
|
1053
|
-
static elementStyles = [];
|
|
1054
|
-
static qt = {};
|
|
1055
1263
|
static activities = {
|
|
1056
1264
|
START_FROM: "start-from",
|
|
1057
1265
|
CAMERA: "camera",
|
|
@@ -1062,44 +1270,39 @@ export const SimpleBtn = class {
|
|
|
1062
1270
|
EXTERNAL: "external",
|
|
1063
1271
|
};
|
|
1064
1272
|
static reg = () => {};
|
|
1065
|
-
static
|
|
1066
|
-
static
|
|
1067
|
-
static getPropertyDescriptor = () => {};
|
|
1068
|
-
static getPropertyOptions = () => {};
|
|
1069
|
-
static finalize = () => {};
|
|
1070
|
-
static finalizeStyles = () => {};
|
|
1071
|
-
static shadowRootOptions = { mode: "open" };
|
|
1273
|
+
static is = `sym-1`;
|
|
1274
|
+
static bindAttributes = () => {};
|
|
1072
1275
|
};
|
|
1073
1276
|
export const SliderUi = class {
|
|
1074
|
-
static
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1277
|
+
static template = `
|
|
1278
|
+
<div class="uc-steps" ref="steps-el"></div>
|
|
1279
|
+
<div ref="thumb-el" class="uc-thumb"></div>
|
|
1280
|
+
<input
|
|
1281
|
+
class="uc-input"
|
|
1282
|
+
type="range"
|
|
1283
|
+
ref="input-el"
|
|
1284
|
+
set="oninput: on.sliderInput; onchange: on.sliderChange; @min: min; @max: max; @value: defaultValue;"
|
|
1285
|
+
/>
|
|
1286
|
+
`;
|
|
1078
1287
|
static reg = () => {};
|
|
1079
|
-
static
|
|
1080
|
-
static
|
|
1081
|
-
static
|
|
1082
|
-
static getPropertyOptions = () => {};
|
|
1083
|
-
static finalize = () => {};
|
|
1084
|
-
static finalizeStyles = () => {};
|
|
1085
|
-
static shadowRootOptions = { mode: "open" };
|
|
1288
|
+
static styleAttrs = [];
|
|
1289
|
+
static is = `sym-1`;
|
|
1290
|
+
static bindAttributes = () => {};
|
|
1086
1291
|
};
|
|
1087
1292
|
export const SolutionBlock = class {
|
|
1088
1293
|
static styleAttrs = [];
|
|
1089
|
-
static finalized = {};
|
|
1090
|
-
static elementProperties = {};
|
|
1091
|
-
static elementStyles = [];
|
|
1092
1294
|
static reg = () => {};
|
|
1093
|
-
static
|
|
1094
|
-
static
|
|
1095
|
-
static getPropertyDescriptor = () => {};
|
|
1096
|
-
static getPropertyOptions = () => {};
|
|
1097
|
-
static finalize = () => {};
|
|
1098
|
-
static finalizeStyles = () => {};
|
|
1099
|
-
static shadowRootOptions = { mode: "open" };
|
|
1295
|
+
static is = `sym-1`;
|
|
1296
|
+
static bindAttributes = () => {};
|
|
1100
1297
|
};
|
|
1101
1298
|
export const SourceBtn = class {
|
|
1102
|
-
static
|
|
1299
|
+
static template = `
|
|
1300
|
+
<button type="button">
|
|
1301
|
+
<uc-icon set="@name: iconName"></uc-icon>
|
|
1302
|
+
<div class="uc-txt" l10n="src-type"></div>
|
|
1303
|
+
</button>
|
|
1304
|
+
`;
|
|
1305
|
+
static observedAttributes = ["type"];
|
|
1103
1306
|
static extSrcList = {
|
|
1104
1307
|
FACEBOOK: "facebook",
|
|
1105
1308
|
DROPBOX: "dropbox",
|
|
@@ -1133,9 +1336,6 @@ export const SourceBtn = class {
|
|
|
1133
1336
|
ONEDRIVE: "onedrive",
|
|
1134
1337
|
HUDDLE: "huddle",
|
|
1135
1338
|
};
|
|
1136
|
-
static finalized = {};
|
|
1137
|
-
static elementStyles = [];
|
|
1138
|
-
static qt = {};
|
|
1139
1339
|
static activities = {
|
|
1140
1340
|
START_FROM: "start-from",
|
|
1141
1341
|
CAMERA: "camera",
|
|
@@ -1145,46 +1345,25 @@ export const SourceBtn = class {
|
|
|
1145
1345
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1146
1346
|
EXTERNAL: "external",
|
|
1147
1347
|
};
|
|
1148
|
-
static styleAttrs = [];
|
|
1149
1348
|
static reg = () => {};
|
|
1150
|
-
static
|
|
1151
|
-
static
|
|
1152
|
-
static
|
|
1153
|
-
static getPropertyOptions = () => {};
|
|
1154
|
-
static finalize = () => {};
|
|
1155
|
-
static finalizeStyles = () => {};
|
|
1156
|
-
static shadowRootOptions = { mode: "open" };
|
|
1349
|
+
static styleAttrs = [];
|
|
1350
|
+
static is = `sym-1`;
|
|
1351
|
+
static bindAttributes = () => {};
|
|
1157
1352
|
};
|
|
1158
1353
|
export const SourceList = class {
|
|
1159
|
-
static elementProperties = {};
|
|
1160
|
-
static styleAttrs = [];
|
|
1161
|
-
static finalized = {};
|
|
1162
|
-
static elementStyles = [];
|
|
1163
1354
|
static reg = () => {};
|
|
1164
|
-
static
|
|
1165
|
-
static
|
|
1166
|
-
static
|
|
1167
|
-
static getPropertyOptions = () => {};
|
|
1168
|
-
static finalize = () => {};
|
|
1169
|
-
static finalizeStyles = () => {};
|
|
1170
|
-
static shadowRootOptions = { mode: "open" };
|
|
1355
|
+
static styleAttrs = [];
|
|
1356
|
+
static is = `sym-1`;
|
|
1357
|
+
static bindAttributes = () => {};
|
|
1171
1358
|
};
|
|
1172
1359
|
export const Spinner = class {
|
|
1173
|
-
static
|
|
1174
|
-
static finalized = {};
|
|
1175
|
-
static elementProperties = {};
|
|
1176
|
-
static elementStyles = [];
|
|
1360
|
+
static template = ` <div class="uc-spinner"></div> `;
|
|
1177
1361
|
static reg = () => {};
|
|
1178
|
-
static
|
|
1179
|
-
static
|
|
1180
|
-
static getPropertyDescriptor = () => {};
|
|
1181
|
-
static getPropertyOptions = () => {};
|
|
1182
|
-
static finalize = () => {};
|
|
1183
|
-
static finalizeStyles = () => {};
|
|
1184
|
-
static shadowRootOptions = { mode: "open" };
|
|
1362
|
+
static is = `sym-1`;
|
|
1363
|
+
static bindAttributes = () => {};
|
|
1185
1364
|
};
|
|
1186
1365
|
export const StartFrom = class {
|
|
1187
|
-
static
|
|
1366
|
+
static template = ` <div class="uc-content"><slot></slot></div> `;
|
|
1188
1367
|
static activities = {
|
|
1189
1368
|
START_FROM: "start-from",
|
|
1190
1369
|
CAMERA: "camera",
|
|
@@ -1194,23 +1373,20 @@ export const StartFrom = class {
|
|
|
1194
1373
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1195
1374
|
EXTERNAL: "external",
|
|
1196
1375
|
};
|
|
1197
|
-
static finalized = {};
|
|
1198
|
-
static elementProperties = {};
|
|
1199
|
-
static elementStyles = [];
|
|
1200
|
-
static styleAttrs = [];
|
|
1201
1376
|
static reg = () => {};
|
|
1202
|
-
static
|
|
1203
|
-
static
|
|
1204
|
-
static
|
|
1205
|
-
static getPropertyOptions = () => {};
|
|
1206
|
-
static finalize = () => {};
|
|
1207
|
-
static finalizeStyles = () => {};
|
|
1208
|
-
static shadowRootOptions = { mode: "open" };
|
|
1377
|
+
static styleAttrs = [];
|
|
1378
|
+
static is = `sym-1`;
|
|
1379
|
+
static bindAttributes = () => {};
|
|
1209
1380
|
};
|
|
1210
1381
|
export const Thumb = class {
|
|
1211
|
-
static
|
|
1212
|
-
|
|
1213
|
-
|
|
1382
|
+
static template = `
|
|
1383
|
+
<div class="uc-thumb" set="style.backgroundImage: thumbUrl">
|
|
1384
|
+
<div class="uc-badge">
|
|
1385
|
+
<uc-icon set="@name: badgeIcon"></uc-icon>
|
|
1386
|
+
</div>
|
|
1387
|
+
</div>
|
|
1388
|
+
`;
|
|
1389
|
+
static observedAttributes = ["badgeIcon", "uid"];
|
|
1214
1390
|
static extSrcList = {
|
|
1215
1391
|
FACEBOOK: "facebook",
|
|
1216
1392
|
DROPBOX: "dropbox",
|
|
@@ -1244,7 +1420,6 @@ export const Thumb = class {
|
|
|
1244
1420
|
ONEDRIVE: "onedrive",
|
|
1245
1421
|
HUDDLE: "huddle",
|
|
1246
1422
|
};
|
|
1247
|
-
static qt = {};
|
|
1248
1423
|
static activities = {
|
|
1249
1424
|
START_FROM: "start-from",
|
|
1250
1425
|
CAMERA: "camera",
|
|
@@ -1254,19 +1429,13 @@ export const Thumb = class {
|
|
|
1254
1429
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1255
1430
|
EXTERNAL: "external",
|
|
1256
1431
|
};
|
|
1257
|
-
static styleAttrs = [];
|
|
1258
1432
|
static reg = () => {};
|
|
1259
|
-
static
|
|
1260
|
-
static
|
|
1261
|
-
static
|
|
1262
|
-
static getPropertyOptions = () => {};
|
|
1263
|
-
static finalize = () => {};
|
|
1264
|
-
static finalizeStyles = () => {};
|
|
1265
|
-
static shadowRootOptions = { mode: "open" };
|
|
1433
|
+
static styleAttrs = [];
|
|
1434
|
+
static is = `sym-1`;
|
|
1435
|
+
static bindAttributes = () => {};
|
|
1266
1436
|
};
|
|
1267
1437
|
export const UID = class {
|
|
1268
|
-
static
|
|
1269
|
-
static generateRandomUUID = () => {};
|
|
1438
|
+
static generate = () => {};
|
|
1270
1439
|
static apply = () => {};
|
|
1271
1440
|
static bind = () => {};
|
|
1272
1441
|
static call = () => {};
|
|
@@ -1332,10 +1501,6 @@ export const UploadCtxProvider = class {
|
|
|
1332
1501
|
ONEDRIVE: "onedrive",
|
|
1333
1502
|
HUDDLE: "huddle",
|
|
1334
1503
|
};
|
|
1335
|
-
static finalized = {};
|
|
1336
|
-
static elementProperties = {};
|
|
1337
|
-
static elementStyles = [];
|
|
1338
|
-
static qt = {};
|
|
1339
1504
|
static activities = {
|
|
1340
1505
|
START_FROM: "start-from",
|
|
1341
1506
|
CAMERA: "camera",
|
|
@@ -1346,16 +1511,66 @@ export const UploadCtxProvider = class {
|
|
|
1346
1511
|
EXTERNAL: "external",
|
|
1347
1512
|
};
|
|
1348
1513
|
static reg = () => {};
|
|
1349
|
-
static
|
|
1350
|
-
static
|
|
1351
|
-
static getPropertyDescriptor = () => {};
|
|
1352
|
-
static getPropertyOptions = () => {};
|
|
1353
|
-
static finalize = () => {};
|
|
1354
|
-
static finalizeStyles = () => {};
|
|
1355
|
-
static shadowRootOptions = { mode: "open" };
|
|
1514
|
+
static is = `sym-1`;
|
|
1515
|
+
static bindAttributes = () => {};
|
|
1356
1516
|
};
|
|
1357
1517
|
export const UploadList = class {
|
|
1358
|
-
static
|
|
1518
|
+
static template = `
|
|
1519
|
+
<uc-activity-header>
|
|
1520
|
+
<span aria-live="polite" class="uc-header-text">{{headerText}}</span>
|
|
1521
|
+
<button
|
|
1522
|
+
type="button"
|
|
1523
|
+
class="uc-mini-btn uc-close-btn"
|
|
1524
|
+
set="onclick: *closeModal"
|
|
1525
|
+
l10n="@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close"
|
|
1526
|
+
>
|
|
1527
|
+
<uc-icon name="close"></uc-icon>
|
|
1528
|
+
</button>
|
|
1529
|
+
</uc-activity-header>
|
|
1530
|
+
|
|
1531
|
+
<div class="uc-no-files" set="@hidden: hasFiles">
|
|
1532
|
+
<slot name="empty"><span l10n="no-files"></span></slot>
|
|
1533
|
+
</div>
|
|
1534
|
+
|
|
1535
|
+
<div class="uc-files">
|
|
1536
|
+
<div class="uc-files-wrapper" repeat="*uploadList" repeat-item-tag="uc-file-item"></div>
|
|
1537
|
+
<button
|
|
1538
|
+
type="button"
|
|
1539
|
+
class="uc-add-more-btn uc-secondary-btn"
|
|
1540
|
+
set="onclick: onAdd; @disabled: !addMoreBtnEnabled; @hidden: !addMoreBtnVisible"
|
|
1541
|
+
>
|
|
1542
|
+
<uc-icon name="add"></uc-icon><span l10n="add-more"></span>
|
|
1543
|
+
</button>
|
|
1544
|
+
</div>
|
|
1545
|
+
|
|
1546
|
+
<div class="uc-common-error" set="@hidden: !commonErrorMessage; textContent: commonErrorMessage;"></div>
|
|
1547
|
+
|
|
1548
|
+
<div class="uc-toolbar">
|
|
1549
|
+
<button type="button" class="uc-cancel-btn uc-secondary-btn" set="onclick: onCancel;" l10n="clear"></button>
|
|
1550
|
+
<div class="uc-toolbar-spacer"></div>
|
|
1551
|
+
<button
|
|
1552
|
+
type="button"
|
|
1553
|
+
class="uc-add-more-btn uc-secondary-btn"
|
|
1554
|
+
set="onclick: onAdd; @disabled: !addMoreBtnEnabled; @hidden: !addMoreBtnVisible"
|
|
1555
|
+
>
|
|
1556
|
+
<uc-icon name="add"></uc-icon><span l10n="add-more"></span>
|
|
1557
|
+
</button>
|
|
1558
|
+
<button
|
|
1559
|
+
type="button"
|
|
1560
|
+
class="uc-upload-btn uc-primary-btn"
|
|
1561
|
+
set="@hidden: !uploadBtnVisible; onclick: onUpload;"
|
|
1562
|
+
l10n="upload"
|
|
1563
|
+
></button>
|
|
1564
|
+
<button
|
|
1565
|
+
type="button"
|
|
1566
|
+
class="uc-done-btn uc-primary-btn"
|
|
1567
|
+
set="@hidden: !doneBtnVisible; onclick: onDone; @disabled: !doneBtnEnabled"
|
|
1568
|
+
l10n="done"
|
|
1569
|
+
></button>
|
|
1570
|
+
</div>
|
|
1571
|
+
|
|
1572
|
+
<uc-drop-area ghost></uc-drop-area>
|
|
1573
|
+
`;
|
|
1359
1574
|
static extSrcList = {
|
|
1360
1575
|
FACEBOOK: "facebook",
|
|
1361
1576
|
DROPBOX: "dropbox",
|
|
@@ -1389,9 +1604,6 @@ export const UploadList = class {
|
|
|
1389
1604
|
ONEDRIVE: "onedrive",
|
|
1390
1605
|
HUDDLE: "huddle",
|
|
1391
1606
|
};
|
|
1392
|
-
static finalized = {};
|
|
1393
|
-
static elementStyles = [];
|
|
1394
|
-
static qt = {};
|
|
1395
1607
|
static activities = {
|
|
1396
1608
|
START_FROM: "start-from",
|
|
1397
1609
|
CAMERA: "camera",
|
|
@@ -1401,15 +1613,10 @@ export const UploadList = class {
|
|
|
1401
1613
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1402
1614
|
EXTERNAL: "external",
|
|
1403
1615
|
};
|
|
1404
|
-
static styleAttrs = [];
|
|
1405
1616
|
static reg = () => {};
|
|
1406
|
-
static
|
|
1407
|
-
static
|
|
1408
|
-
static
|
|
1409
|
-
static getPropertyOptions = () => {};
|
|
1410
|
-
static finalize = () => {};
|
|
1411
|
-
static finalizeStyles = () => {};
|
|
1412
|
-
static shadowRootOptions = { mode: "open" };
|
|
1617
|
+
static styleAttrs = [];
|
|
1618
|
+
static is = `sym-1`;
|
|
1619
|
+
static bindAttributes = () => {};
|
|
1413
1620
|
};
|
|
1414
1621
|
export const UploadSource = {
|
|
1415
1622
|
LOCAL: "local",
|
|
@@ -1466,10 +1673,6 @@ export const UploaderBlock = class {
|
|
|
1466
1673
|
ONEDRIVE: "onedrive",
|
|
1467
1674
|
HUDDLE: "huddle",
|
|
1468
1675
|
};
|
|
1469
|
-
static finalized = {};
|
|
1470
|
-
static elementProperties = {};
|
|
1471
|
-
static elementStyles = [];
|
|
1472
|
-
static qt = {};
|
|
1473
1676
|
static activities = {
|
|
1474
1677
|
START_FROM: "start-from",
|
|
1475
1678
|
CAMERA: "camera",
|
|
@@ -1479,18 +1682,42 @@ export const UploaderBlock = class {
|
|
|
1479
1682
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1480
1683
|
EXTERNAL: "external",
|
|
1481
1684
|
};
|
|
1482
|
-
static styleAttrs = [];
|
|
1483
1685
|
static reg = () => {};
|
|
1484
|
-
static
|
|
1485
|
-
static
|
|
1486
|
-
static
|
|
1487
|
-
static getPropertyOptions = () => {};
|
|
1488
|
-
static finalize = () => {};
|
|
1489
|
-
static finalizeStyles = () => {};
|
|
1490
|
-
static shadowRootOptions = { mode: "open" };
|
|
1686
|
+
static styleAttrs = [];
|
|
1687
|
+
static is = `sym-1`;
|
|
1688
|
+
static bindAttributes = () => {};
|
|
1491
1689
|
};
|
|
1492
1690
|
export const UrlSource = class {
|
|
1493
|
-
static
|
|
1691
|
+
static template = `
|
|
1692
|
+
<uc-activity-header>
|
|
1693
|
+
<button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back;@aria-label:back">
|
|
1694
|
+
<uc-icon name="back"></uc-icon>
|
|
1695
|
+
</button>
|
|
1696
|
+
<div>
|
|
1697
|
+
<uc-icon name="url"></uc-icon>
|
|
1698
|
+
<span l10n="caption-from-url"></span>
|
|
1699
|
+
</div>
|
|
1700
|
+
<button
|
|
1701
|
+
type="button"
|
|
1702
|
+
class="uc-mini-btn uc-close-btn"
|
|
1703
|
+
set="onclick: *closeModal"
|
|
1704
|
+
l10n="@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close"
|
|
1705
|
+
>
|
|
1706
|
+
<uc-icon name="close"></uc-icon>
|
|
1707
|
+
</button>
|
|
1708
|
+
</uc-activity-header>
|
|
1709
|
+
<form class="uc-content">
|
|
1710
|
+
<label>
|
|
1711
|
+
<input placeholder="https://" class="uc-url-input" type="text" ref="input" set="oninput: onInput" />
|
|
1712
|
+
</label>
|
|
1713
|
+
<button
|
|
1714
|
+
type="submit"
|
|
1715
|
+
class="uc-url-upload-btn uc-primary-btn"
|
|
1716
|
+
set="onclick: onUpload; @disabled: importDisabled"
|
|
1717
|
+
l10n="upload-url"
|
|
1718
|
+
></button>
|
|
1719
|
+
</form>
|
|
1720
|
+
`;
|
|
1494
1721
|
static extSrcList = {
|
|
1495
1722
|
FACEBOOK: "facebook",
|
|
1496
1723
|
DROPBOX: "dropbox",
|
|
@@ -1524,9 +1751,6 @@ export const UrlSource = class {
|
|
|
1524
1751
|
ONEDRIVE: "onedrive",
|
|
1525
1752
|
HUDDLE: "huddle",
|
|
1526
1753
|
};
|
|
1527
|
-
static finalized = {};
|
|
1528
|
-
static elementStyles = [];
|
|
1529
|
-
static qt = {};
|
|
1530
1754
|
static activities = {
|
|
1531
1755
|
START_FROM: "start-from",
|
|
1532
1756
|
CAMERA: "camera",
|
|
@@ -1536,15 +1760,10 @@ export const UrlSource = class {
|
|
|
1536
1760
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1537
1761
|
EXTERNAL: "external",
|
|
1538
1762
|
};
|
|
1539
|
-
static styleAttrs = [];
|
|
1540
1763
|
static reg = () => {};
|
|
1541
|
-
static
|
|
1542
|
-
static
|
|
1543
|
-
static
|
|
1544
|
-
static getPropertyOptions = () => {};
|
|
1545
|
-
static finalize = () => {};
|
|
1546
|
-
static finalizeStyles = () => {};
|
|
1547
|
-
static shadowRootOptions = { mode: "open" };
|
|
1764
|
+
static styleAttrs = [];
|
|
1765
|
+
static is = `sym-1`;
|
|
1766
|
+
static bindAttributes = () => {};
|
|
1548
1767
|
};
|
|
1549
1768
|
export const defineComponents = () => {};
|
|
1550
1769
|
export const defineLocale = () => {};
|