@uploadcare/file-uploader 1.25.0-alpha.3 → 1.25.0-alpha.4
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 +4 -79
- package/dist/env.js +4 -33
- package/dist/index.css +5 -2664
- package/dist/index.d.ts +925 -926
- package/dist/index.js +6 -13630
- package/dist/index.layered.css +4 -2720
- package/dist/index.ssr.js +34 -29
- package/dist/locales/file-uploader/ar.js +4 -165
- package/dist/locales/file-uploader/az.js +4 -157
- package/dist/locales/file-uploader/ca.js +4 -159
- package/dist/locales/file-uploader/cs.js +4 -161
- package/dist/locales/file-uploader/da.js +4 -157
- package/dist/locales/file-uploader/de.js +4 -157
- package/dist/locales/file-uploader/el.js +4 -157
- package/dist/locales/file-uploader/en.js +4 -157
- package/dist/locales/file-uploader/es.js +4 -159
- package/dist/locales/file-uploader/et.js +4 -157
- package/dist/locales/file-uploader/fi.js +4 -157
- package/dist/locales/file-uploader/fr.js +4 -159
- package/dist/locales/file-uploader/he.js +4 -159
- package/dist/locales/file-uploader/hy.js +4 -157
- package/dist/locales/file-uploader/is.js +4 -157
- package/dist/locales/file-uploader/it.js +4 -159
- package/dist/locales/file-uploader/ja.js +4 -157
- package/dist/locales/file-uploader/ka.js +4 -157
- package/dist/locales/file-uploader/kk.js +4 -157
- package/dist/locales/file-uploader/ko.js +4 -157
- package/dist/locales/file-uploader/lv.js +4 -159
- package/dist/locales/file-uploader/nb.js +4 -157
- package/dist/locales/file-uploader/nl.js +4 -157
- package/dist/locales/file-uploader/pl.js +4 -161
- package/dist/locales/file-uploader/pt.js +4 -159
- package/dist/locales/file-uploader/ro.js +4 -159
- package/dist/locales/file-uploader/ru.js +4 -161
- package/dist/locales/file-uploader/sk.js +4 -161
- package/dist/locales/file-uploader/sr.js +4 -159
- package/dist/locales/file-uploader/sv.js +4 -157
- package/dist/locales/file-uploader/tr.js +4 -157
- package/dist/locales/file-uploader/uk.js +4 -161
- package/dist/locales/file-uploader/vi.js +4 -157
- package/dist/locales/file-uploader/zh-TW.js +4 -157
- package/dist/locales/file-uploader/zh.js +4 -157
- package/package.json +19 -18
- package/types/jsx.d.ts +75 -48
- package/web/file-uploader.iife.min.d.ts +927 -928
- package/web/file-uploader.iife.min.js +6 -31
- package/web/file-uploader.iife.min.js.LEGAL.txt +71 -0
- package/web/file-uploader.min.d.ts +927 -928
- package/web/file-uploader.min.js +5 -29
- package/web/file-uploader.min.js.LEGAL.txt +71 -0
- package/web/uc-basic.layered.min.css +4 -23
- package/web/uc-basic.min.css +4 -23
- package/web/uc-cloud-image-editor.layered.min.css +4 -23
- package/web/uc-cloud-image-editor.min.css +4 -23
- package/web/uc-cloud-image-editor.min.d.ts +489 -494
- package/web/uc-cloud-image-editor.min.js +5 -29
- package/web/uc-cloud-image-editor.min.js.LEGAL.txt +70 -0
- package/web/uc-file-uploader-inline.layered.min.css +4 -23
- package/web/uc-file-uploader-inline.min.css +4 -23
- package/web/uc-file-uploader-inline.min.d.ts +927 -928
- package/web/uc-file-uploader-inline.min.js +5 -29
- package/web/uc-file-uploader-inline.min.js.LEGAL.txt +71 -0
- package/web/uc-file-uploader-minimal.layered.min.css +4 -23
- package/web/uc-file-uploader-minimal.min.css +4 -23
- package/web/uc-file-uploader-minimal.min.d.ts +927 -928
- package/web/uc-file-uploader-minimal.min.js +5 -29
- package/web/uc-file-uploader-minimal.min.js.LEGAL.txt +71 -0
- package/web/uc-file-uploader-regular.layered.min.css +4 -23
- package/web/uc-file-uploader-regular.min.css +4 -23
- package/web/uc-file-uploader-regular.min.d.ts +927 -928
- package/web/uc-file-uploader-regular.min.js +5 -29
- package/web/uc-file-uploader-regular.min.js.LEGAL.txt +71 -0
- package/web/uc-img.min.d.ts +28 -38
- package/web/uc-img.min.js +5 -25
- package/web/uc-img.min.js.LEGAL.txt +24 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,80 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { PubSub as Data, PubSub, UID } from '@symbiotejs/symbiote';
|
|
1
|
+
import { LitElement, PropertyValues, nothing, TemplateResult } from 'lit';
|
|
3
2
|
export { loadFileUploaderFrom } from './abstract/loadFileUploaderFrom.js';
|
|
4
3
|
import * as lit_html from 'lit-html';
|
|
5
|
-
import * as lit_html_directives_ref_js from 'lit-html/directives/ref.js';
|
|
6
|
-
import { nothing, LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
7
4
|
import { TelemetryRequest } from '@uploadcare/quality-insights';
|
|
8
5
|
import * as _uploadcare_upload_client from '@uploadcare/upload-client';
|
|
9
|
-
import { UploadcareFile, Metadata, UploadError, NetworkError, UploadcareGroup, FileFromOptions } from '@uploadcare/upload-client';
|
|
6
|
+
import { UploadcareFile, Metadata, UploadError, NetworkError, UploadcareGroup, FileFromOptions, Queue } from '@uploadcare/upload-client';
|
|
10
7
|
export { Metadata, NetworkError, UploadError, UploadcareError, UploadcareFile, UploadcareGroup } from '@uploadcare/upload-client';
|
|
11
8
|
import { Ref } from 'lit/directives/ref.js';
|
|
12
9
|
export { PACKAGE_NAME, PACKAGE_VERSION } from './env.js';
|
|
13
10
|
|
|
11
|
+
type Subscription = {
|
|
12
|
+
remove: () => void;
|
|
13
|
+
};
|
|
14
|
+
declare class PubSub<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
15
|
+
private static _contexts;
|
|
16
|
+
private _store;
|
|
17
|
+
private constructor();
|
|
18
|
+
pub<K extends keyof T>(key: K, value: T[K]): void;
|
|
19
|
+
sub<K extends keyof T>(key: K, callback: (value: T[K]) => void, init?: boolean): Subscription;
|
|
20
|
+
read<K extends keyof T>(key: K): T[K];
|
|
21
|
+
add<K extends keyof T>(key: K, value: T[K], rewrite?: boolean): void;
|
|
22
|
+
has(key: keyof T): boolean;
|
|
23
|
+
get store(): T;
|
|
24
|
+
static registerCtx<T extends Record<string, unknown>>(initialValue: T, ctxId: string): PubSub<T>;
|
|
25
|
+
static deleteCtx(ctxId: string): void;
|
|
26
|
+
static getCtx<T extends Record<string, unknown> = Record<string, unknown>>(ctxId: string): PubSub<T> | null;
|
|
27
|
+
static hasCtx(ctxId: string): boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type Constructor<T = unknown> = new (...args: any[]) => T;
|
|
31
|
+
|
|
32
|
+
type SymbioteStateBag<T extends Record<string, unknown>> = T;
|
|
33
|
+
/**
|
|
34
|
+
* Interface for components using SymbioteMixin
|
|
35
|
+
*/
|
|
36
|
+
declare class SymbioteComponent<TState extends Record<string, unknown> = Record<string, unknown>> {
|
|
37
|
+
$: SymbioteStateBag<TState>;
|
|
38
|
+
sub<TKey extends keyof TState>(key: TKey, callback: (value: TState[TKey]) => void, init?: boolean): () => void;
|
|
39
|
+
pub<TKey extends keyof TState>(key: TKey, value: TState[TKey]): void;
|
|
40
|
+
set$<T extends {
|
|
41
|
+
[K in keyof T]: K extends keyof TState ? TState[K] : never;
|
|
42
|
+
}>(obj: T): void;
|
|
43
|
+
has<TKey extends keyof TState>(key: TKey): boolean;
|
|
44
|
+
add<TKey extends keyof TState>(key: TKey, val: TState[TKey], rewrite?: boolean): void;
|
|
45
|
+
add$<T extends {
|
|
46
|
+
[K in keyof T]: K extends keyof TState ? TState[K] : never;
|
|
47
|
+
}>(obj: T, rewrite?: boolean): void;
|
|
48
|
+
initCallback(): void;
|
|
49
|
+
ctxName: string;
|
|
50
|
+
ctxOwner: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare const BaseComponent_base: typeof LitElement & Constructor<{
|
|
54
|
+
willYield: boolean;
|
|
55
|
+
yield(slot: string, defaultContent?: unknown): unknown;
|
|
56
|
+
}> & Constructor<{
|
|
57
|
+
getCssData(propName: string, silentCheck?: boolean): string | number | boolean | null | undefined;
|
|
58
|
+
}> & Constructor<SymbioteComponent<Record<string, unknown>>> & Constructor<LitElement> & {
|
|
59
|
+
reg(tagName: string): void;
|
|
60
|
+
};
|
|
61
|
+
declare class BaseComponent extends BaseComponent_base {
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type Uid = string & {
|
|
65
|
+
__uid: true;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
declare class UID {
|
|
69
|
+
static generate(): Uid;
|
|
70
|
+
}
|
|
71
|
+
|
|
14
72
|
declare function defineComponents(blockExports: Record<string, any>): void;
|
|
15
73
|
|
|
16
74
|
type LocaleDefinition = Record<string, string>;
|
|
17
75
|
type LocaleDefinitionResolver = () => Promise<LocaleDefinition>;
|
|
18
76
|
declare const defineLocale: (localeName: string, definitionOrResolver: LocaleDefinition | LocaleDefinitionResolver) => void;
|
|
19
77
|
|
|
20
|
-
type Constructor$1<T = {}> = new (...args: any[]) => T;
|
|
21
|
-
|
|
22
78
|
declare class A11y {
|
|
23
79
|
private _destroyKeyUX;
|
|
24
80
|
private readonly _scopedWindow;
|
|
@@ -39,165 +95,48 @@ type EventMap = {
|
|
|
39
95
|
|
|
40
96
|
declare function buildOutputCollectionState<TCollectionStatus extends OutputCollectionStatus, TGroupFlag extends GroupFlag = 'maybe-has-group'>(uploaderBlock: LitUploaderBlock): OutputCollectionState<TCollectionStatus, TGroupFlag>;
|
|
41
97
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
};
|
|
52
|
-
type ExtractKeysFromSchema<T extends TypedSchema> = Extract<keyof T, string>;
|
|
53
|
-
declare class TypedData<T extends TypedSchema> {
|
|
54
|
-
private __typedSchema;
|
|
55
|
-
private __ctxId;
|
|
56
|
-
private __schema;
|
|
57
|
-
private __data;
|
|
58
|
-
constructor(typedSchema: T, ctxName?: string);
|
|
59
|
-
get uid(): string;
|
|
60
|
-
setValue<K extends ExtractKeysFromSchema<T>>(prop: K, value: ExtractDataFromSchema<T>[K]): void;
|
|
61
|
-
setMultipleValues(updObj: Partial<ExtractDataFromSchema<T>>): void;
|
|
62
|
-
getValue<K extends ExtractKeysFromSchema<T>>(prop: K): ExtractDataFromSchema<T>[K];
|
|
63
|
-
subscribe<K extends ExtractKeysFromSchema<T>>(prop: K, handler: (newVal: ExtractDataFromSchema<T>[K]) => void): {
|
|
64
|
-
remove: () => void;
|
|
65
|
-
callback: (val: unknown) => void;
|
|
66
|
-
};
|
|
98
|
+
declare class TypedData<T extends Record<string, unknown>> {
|
|
99
|
+
private _ctxId;
|
|
100
|
+
private _data;
|
|
101
|
+
constructor(initialValue: T);
|
|
102
|
+
get uid(): Uid;
|
|
103
|
+
setValue<K extends keyof T>(prop: K, value: T[K]): void;
|
|
104
|
+
setMultipleValues(updObj: Partial<T>): void;
|
|
105
|
+
getValue<K extends keyof T>(prop: K): T[K];
|
|
106
|
+
subscribe<K extends keyof T>(prop: K, handler: (newVal: T[K]) => void): Subscription;
|
|
67
107
|
remove(): void;
|
|
68
108
|
}
|
|
69
109
|
|
|
70
|
-
|
|
71
|
-
file:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
value: 0;
|
|
101
|
-
}>;
|
|
102
|
-
uuid: Readonly<{
|
|
103
|
-
type: StringConstructor;
|
|
104
|
-
value: null;
|
|
105
|
-
nullable: true;
|
|
106
|
-
}>;
|
|
107
|
-
isImage: Readonly<{
|
|
108
|
-
type: BooleanConstructor;
|
|
109
|
-
value: false;
|
|
110
|
-
}>;
|
|
111
|
-
mimeType: Readonly<{
|
|
112
|
-
type: StringConstructor;
|
|
113
|
-
value: null;
|
|
114
|
-
nullable: true;
|
|
115
|
-
}>;
|
|
116
|
-
ctxName: Readonly<{
|
|
117
|
-
type: StringConstructor;
|
|
118
|
-
value: null;
|
|
119
|
-
nullable: true;
|
|
120
|
-
}>;
|
|
121
|
-
cdnUrl: Readonly<{
|
|
122
|
-
type: StringConstructor;
|
|
123
|
-
value: null;
|
|
124
|
-
nullable: true;
|
|
125
|
-
}>;
|
|
126
|
-
cdnUrlModifiers: Readonly<{
|
|
127
|
-
type: StringConstructor;
|
|
128
|
-
value: null;
|
|
129
|
-
nullable: true;
|
|
130
|
-
}>;
|
|
131
|
-
fileInfo: Readonly<{
|
|
132
|
-
type: typeof UploadcareFile;
|
|
133
|
-
value: null;
|
|
134
|
-
nullable: true;
|
|
135
|
-
}>;
|
|
136
|
-
isUploading: Readonly<{
|
|
137
|
-
type: BooleanConstructor;
|
|
138
|
-
value: false;
|
|
139
|
-
}>;
|
|
140
|
-
abortController: Readonly<{
|
|
141
|
-
type: {
|
|
142
|
-
new (): AbortController;
|
|
143
|
-
prototype: AbortController;
|
|
144
|
-
};
|
|
145
|
-
value: null;
|
|
146
|
-
nullable: true;
|
|
147
|
-
}>;
|
|
148
|
-
thumbUrl: Readonly<{
|
|
149
|
-
type: StringConstructor;
|
|
150
|
-
value: null;
|
|
151
|
-
nullable: true;
|
|
152
|
-
}>;
|
|
153
|
-
silent: Readonly<{
|
|
154
|
-
type: BooleanConstructor;
|
|
155
|
-
value: false;
|
|
156
|
-
}>;
|
|
157
|
-
source: Readonly<{
|
|
158
|
-
type: StringConstructor;
|
|
159
|
-
value: null;
|
|
160
|
-
nullable: true;
|
|
161
|
-
}>;
|
|
162
|
-
fullPath: Readonly<{
|
|
163
|
-
type: StringConstructor;
|
|
164
|
-
value: null;
|
|
165
|
-
nullable: true;
|
|
166
|
-
}>;
|
|
167
|
-
metadata: Readonly<{
|
|
168
|
-
type: ObjectConstructor;
|
|
169
|
-
value: null;
|
|
170
|
-
nullable: true;
|
|
171
|
-
}>;
|
|
172
|
-
errors: Readonly<{
|
|
173
|
-
type: ArrayConstructor;
|
|
174
|
-
value: OutputErrorFile[];
|
|
175
|
-
}>;
|
|
176
|
-
uploadError: Readonly<{
|
|
177
|
-
type: ErrorConstructor;
|
|
178
|
-
value: null;
|
|
179
|
-
nullable: true;
|
|
180
|
-
}>;
|
|
181
|
-
isRemoved: Readonly<{
|
|
182
|
-
type: BooleanConstructor;
|
|
183
|
-
value: false;
|
|
184
|
-
}>;
|
|
185
|
-
isQueuedForUploading: Readonly<{
|
|
186
|
-
type: BooleanConstructor;
|
|
187
|
-
value: false;
|
|
188
|
-
}>;
|
|
189
|
-
isValidationPending: Readonly<{
|
|
190
|
-
type: BooleanConstructor;
|
|
191
|
-
value: false;
|
|
192
|
-
}>;
|
|
193
|
-
isQueuedForValidation: Readonly<{
|
|
194
|
-
type: BooleanConstructor;
|
|
195
|
-
value: false;
|
|
196
|
-
}>;
|
|
197
|
-
}>;
|
|
198
|
-
type UploadEntryData = ExtractDataFromSchema<typeof uploadEntrySchema>;
|
|
199
|
-
type UploadEntryTypedData = TypedData<typeof uploadEntrySchema>;
|
|
200
|
-
type UploadEntryKeys = ExtractKeysFromSchema<typeof uploadEntrySchema>;
|
|
110
|
+
interface UploadEntryData extends Record<string, unknown> {
|
|
111
|
+
file: File | null;
|
|
112
|
+
externalUrl: string | null;
|
|
113
|
+
fileName: string | null;
|
|
114
|
+
fileSize: number | null;
|
|
115
|
+
lastModified: number;
|
|
116
|
+
uploadProgress: number;
|
|
117
|
+
uuid: string | null;
|
|
118
|
+
isImage: boolean;
|
|
119
|
+
mimeType: string | null;
|
|
120
|
+
ctxName: string | null;
|
|
121
|
+
cdnUrl: string | null;
|
|
122
|
+
cdnUrlModifiers: string | null;
|
|
123
|
+
fileInfo: UploadcareFile | null;
|
|
124
|
+
isUploading: boolean;
|
|
125
|
+
abortController: AbortController | null;
|
|
126
|
+
thumbUrl: string | null;
|
|
127
|
+
silent: boolean;
|
|
128
|
+
source: string | null;
|
|
129
|
+
fullPath: string | null;
|
|
130
|
+
metadata: Metadata | null;
|
|
131
|
+
errors: OutputErrorFile[];
|
|
132
|
+
uploadError: Error | null;
|
|
133
|
+
isRemoved: boolean;
|
|
134
|
+
isQueuedForUploading: boolean;
|
|
135
|
+
isValidationPending: boolean;
|
|
136
|
+
isQueuedForValidation: boolean;
|
|
137
|
+
}
|
|
138
|
+
type UploadEntryTypedData = TypedData<UploadEntryData>;
|
|
139
|
+
type UploadEntryKeys = keyof UploadEntryData;
|
|
201
140
|
|
|
202
141
|
type FuncFileValidator = (outputEntry: OutputFileEntry, api: UploaderPublicApi, options?: {
|
|
203
142
|
signal?: AbortSignal;
|
|
@@ -217,9 +156,9 @@ declare class ValidationManager {
|
|
|
217
156
|
private _runQueueDebounced;
|
|
218
157
|
private _entryValidationState;
|
|
219
158
|
constructor(blockInstance: LitUploaderBlock);
|
|
220
|
-
runFileValidators(runOn: FileValidatorDescriptor['runOn'], entryIds?:
|
|
159
|
+
runFileValidators(runOn: FileValidatorDescriptor['runOn'], entryIds?: Uid[]): void;
|
|
221
160
|
runCollectionValidators(): void;
|
|
222
|
-
cleanupValidationForEntry(entry: TypedData<
|
|
161
|
+
cleanupValidationForEntry(entry: TypedData<UploadEntryData>): void;
|
|
223
162
|
private _runFileValidatorsForEntry;
|
|
224
163
|
private _addCustomTypeToValidationError;
|
|
225
164
|
private _getEntryValidationState;
|
|
@@ -227,16 +166,7 @@ declare class ValidationManager {
|
|
|
227
166
|
private _getValidatorDescriptorsForEntry;
|
|
228
167
|
}
|
|
229
168
|
|
|
230
|
-
type CameraDeviceOption = {
|
|
231
|
-
text: string;
|
|
232
|
-
value: string;
|
|
233
|
-
};
|
|
234
|
-
type AudioDeviceOption = {
|
|
235
|
-
text: string;
|
|
236
|
-
value: string;
|
|
237
|
-
};
|
|
238
169
|
type CameraMode = 'photo' | 'video';
|
|
239
|
-
type CameraStatus = 'shot' | 'retake' | 'accept' | 'play' | 'stop' | 'pause' | 'resume';
|
|
240
170
|
declare class CameraSource extends LitUploaderBlock {
|
|
241
171
|
couldBeCtxOwner: boolean;
|
|
242
172
|
activityType: "camera";
|
|
@@ -255,36 +185,36 @@ declare class CameraSource extends LitUploaderBlock {
|
|
|
255
185
|
private _audioDevices;
|
|
256
186
|
private _permissionResponses;
|
|
257
187
|
private _permissionCleanupFns;
|
|
188
|
+
private _currentVideoSource;
|
|
258
189
|
private readonly _handlePreviewPlay;
|
|
259
190
|
private readonly _handlePreviewPause;
|
|
260
|
-
private
|
|
261
|
-
private
|
|
262
|
-
private
|
|
263
|
-
private
|
|
191
|
+
private _timerRef;
|
|
192
|
+
private _lineRef;
|
|
193
|
+
private _videoRef;
|
|
194
|
+
private _switcherRef;
|
|
264
195
|
private _startTime;
|
|
265
196
|
private _elapsedTime;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
_chooseActionWithCamera: () => void;
|
|
197
|
+
private _videoTransformCss;
|
|
198
|
+
private _videoHidden;
|
|
199
|
+
private _messageHidden;
|
|
200
|
+
private _requestBtnHidden;
|
|
201
|
+
private _cameraSelectOptions;
|
|
202
|
+
private _cameraSelectHidden;
|
|
203
|
+
private _l10nMessage;
|
|
204
|
+
private _timerHidden;
|
|
205
|
+
private _cameraHidden;
|
|
206
|
+
private _cameraActionsHidden;
|
|
207
|
+
private _audioSelectOptions;
|
|
208
|
+
private _audioSelectHidden;
|
|
209
|
+
private _audioSelectDisabled;
|
|
210
|
+
private _audioToggleMicrophoneHidden;
|
|
211
|
+
private _tabCameraHidden;
|
|
212
|
+
private _tabVideoHidden;
|
|
213
|
+
private _currentIcon;
|
|
214
|
+
private _currentTimelineIcon;
|
|
215
|
+
private _toggleMicrophoneIcon;
|
|
216
|
+
private _mutableClassButton;
|
|
217
|
+
private _chooseActionWithCamera;
|
|
288
218
|
private _handleCameraSelectChange;
|
|
289
219
|
private _handleAudioSelectChange;
|
|
290
220
|
private _handleRequestPermissions;
|
|
@@ -294,52 +224,59 @@ declare class CameraSource extends LitUploaderBlock {
|
|
|
294
224
|
private _handleRetake;
|
|
295
225
|
private _handleAccept;
|
|
296
226
|
private _handleClickTab;
|
|
297
|
-
_updateTimer
|
|
298
|
-
_startTimer
|
|
299
|
-
_stopTimer
|
|
300
|
-
_startTimeline
|
|
301
|
-
_stopTimeline
|
|
302
|
-
_animationFrameId
|
|
303
|
-
_startRecording
|
|
227
|
+
private _updateTimer;
|
|
228
|
+
private _startTimer;
|
|
229
|
+
private _stopTimer;
|
|
230
|
+
private _startTimeline;
|
|
231
|
+
private _stopTimeline;
|
|
232
|
+
private _animationFrameId;
|
|
233
|
+
private _startRecording;
|
|
304
234
|
private _stopRecording;
|
|
305
235
|
/** This method is used to toggle recording pause/resume */
|
|
306
|
-
_toggleRecording
|
|
307
|
-
_toggleEnableAudio
|
|
236
|
+
private _toggleRecording;
|
|
237
|
+
private _toggleEnableAudio;
|
|
308
238
|
/**
|
|
309
239
|
* Previewing the video that was recorded on the camera
|
|
310
240
|
*/
|
|
311
241
|
private _previewVideo;
|
|
312
242
|
private _attachPreviewListeners;
|
|
313
243
|
private _detachPreviewListeners;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
244
|
+
private _setVideoSource;
|
|
245
|
+
/**
|
|
246
|
+
* Do not bind srcObject directly in the template, because it stops video pausing on shot.
|
|
247
|
+
* I really don'y know why but that's how it is. Assigning srcObject manually fixes the issue.
|
|
248
|
+
*/
|
|
249
|
+
private _applyVideoSource;
|
|
250
|
+
private _retake;
|
|
251
|
+
private _accept;
|
|
252
|
+
private _handlePhoto;
|
|
253
|
+
private _handleVideo;
|
|
318
254
|
private _setCameraState;
|
|
319
255
|
private _shot;
|
|
320
256
|
private _handleActiveTab;
|
|
321
257
|
private _createFile;
|
|
322
|
-
_guessExtensionByMime
|
|
258
|
+
private _guessExtensionByMime;
|
|
323
259
|
/**
|
|
324
260
|
* The send file to the server
|
|
325
261
|
*/
|
|
326
|
-
_toSend
|
|
262
|
+
private _toSend;
|
|
327
263
|
private get _cameraModes();
|
|
328
264
|
private _setPermissionsState;
|
|
329
|
-
_makeStreamInactive
|
|
330
|
-
_stopCapture
|
|
331
|
-
_capture
|
|
332
|
-
_handlePermissionsChange
|
|
333
|
-
_permissionAccess
|
|
265
|
+
private _makeStreamInactive;
|
|
266
|
+
private _stopCapture;
|
|
267
|
+
private _capture;
|
|
268
|
+
private _handlePermissionsChange;
|
|
269
|
+
private _permissionAccess;
|
|
334
270
|
private _teardownPermissionListeners;
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
_handleCameraModes: (cameraModes: CameraMode[]) => void;
|
|
271
|
+
private _requestDeviceAccess;
|
|
272
|
+
private _getDevices;
|
|
273
|
+
private _onActivate;
|
|
274
|
+
private _onDeactivate;
|
|
275
|
+
private _handleCameraModes;
|
|
341
276
|
initCallback(): void;
|
|
342
|
-
|
|
277
|
+
firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
278
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
279
|
+
private _destroy;
|
|
343
280
|
disconnectedCallback(): void;
|
|
344
281
|
render(): lit_html.TemplateResult<1>;
|
|
345
282
|
}
|
|
@@ -351,13 +288,16 @@ declare const complexConfigKeys: readonly ["metadata", "localeDefinitionOverride
|
|
|
351
288
|
/** Mapping of attribute names to state */
|
|
352
289
|
declare const attrStateMapping: Record<string, string>;
|
|
353
290
|
declare class Config extends LitBlock {
|
|
291
|
+
attributesMeta: Partial<ConfigPlainType> & {
|
|
292
|
+
'ctx-name': string;
|
|
293
|
+
};
|
|
354
294
|
init$: LitBlock["init$"] & ConfigType;
|
|
355
|
-
private
|
|
295
|
+
private _computationControllers;
|
|
356
296
|
private _flushValueToAttribute;
|
|
357
297
|
private _flushValueToState;
|
|
358
298
|
private _setValue;
|
|
359
299
|
private _getValue;
|
|
360
|
-
_assertSameValueDifferentReference
|
|
300
|
+
private _assertSameValueDifferentReference;
|
|
361
301
|
initCallback(): void;
|
|
362
302
|
attributeChangedCallback(name: keyof typeof attrStateMapping, oldVal: string, newVal: string): void;
|
|
363
303
|
static get observedAttributes(): string[];
|
|
@@ -368,23 +308,23 @@ interface Config extends ConfigType {
|
|
|
368
308
|
type FilesViewMode = 'grid' | 'list';
|
|
369
309
|
declare class UploadList extends LitUploaderBlock {
|
|
370
310
|
couldBeCtxOwner: boolean;
|
|
371
|
-
historyTracked: boolean;
|
|
311
|
+
protected historyTracked: boolean;
|
|
372
312
|
activityType: "upload-list";
|
|
373
|
-
private
|
|
374
|
-
private
|
|
375
|
-
private
|
|
376
|
-
private
|
|
377
|
-
private
|
|
378
|
-
private
|
|
379
|
-
private
|
|
313
|
+
private _doneBtnVisible;
|
|
314
|
+
private _doneBtnEnabled;
|
|
315
|
+
private _uploadBtnVisible;
|
|
316
|
+
private _addMoreBtnVisible;
|
|
317
|
+
private _addMoreBtnEnabled;
|
|
318
|
+
private _commonErrorMessage;
|
|
319
|
+
private _hasFiles;
|
|
380
320
|
private _latestSummary;
|
|
381
|
-
|
|
321
|
+
private get _headerText();
|
|
382
322
|
private _handleAdd;
|
|
383
323
|
private _handleUpload;
|
|
384
324
|
private _handleDone;
|
|
385
325
|
private _handleCancel;
|
|
386
326
|
private _throttledHandleCollectionUpdate;
|
|
387
|
-
|
|
327
|
+
private _updateUploadsState;
|
|
388
328
|
private _getHeaderText;
|
|
389
329
|
get couldOpenActivity(): boolean;
|
|
390
330
|
initCallback(): void;
|
|
@@ -464,7 +404,7 @@ declare class UploaderPublicApi {
|
|
|
464
404
|
getOutputCollectionState<TStatus extends OutputCollectionStatus>(): ReturnType<typeof buildOutputCollectionState<TStatus>>;
|
|
465
405
|
initFlow: (force?: boolean) => void;
|
|
466
406
|
doneFlow: () => void;
|
|
467
|
-
setCurrentActivity: <T extends
|
|
407
|
+
setCurrentActivity: <T extends RegisteredActivityType>(activityType: T, ...params: T extends keyof ActivityParamsMap ? [ActivityParamsMap[T]] : T extends RegisteredActivityType ? [undefined?] : [never]) => void;
|
|
468
408
|
getCurrentActivity: () => ActivityType;
|
|
469
409
|
setModalState: (opened: boolean) => void;
|
|
470
410
|
private get _sourceList();
|
|
@@ -786,7 +726,9 @@ type OutputErrorTypePayload = {
|
|
|
786
726
|
NOT_AN_IMAGE: OutputFileErrorPayload;
|
|
787
727
|
FORBIDDEN_FILE_TYPE: OutputFileErrorPayload;
|
|
788
728
|
FILE_SIZE_EXCEEDED: OutputFileErrorPayload;
|
|
789
|
-
SOME_FILES_HAS_ERRORS: {
|
|
729
|
+
SOME_FILES_HAS_ERRORS: {
|
|
730
|
+
[k: string]: never;
|
|
731
|
+
};
|
|
790
732
|
TOO_MANY_FILES: {
|
|
791
733
|
min: number;
|
|
792
734
|
max: number;
|
|
@@ -944,43 +886,42 @@ declare class SecureUploadsManager {
|
|
|
944
886
|
getSecureToken(): Promise<SecureUploadsSignatureAndExpire | null>;
|
|
945
887
|
}
|
|
946
888
|
|
|
947
|
-
type ChangeMap<T extends
|
|
948
|
-
type TypedCollectionPropertyObserver<T extends
|
|
949
|
-
type TypedCollectionObserverHandler<T extends
|
|
950
|
-
type TypedCollectionOptions<T extends
|
|
951
|
-
|
|
952
|
-
watchList?:
|
|
889
|
+
type ChangeMap<T extends Record<string, unknown>> = Record<keyof T, Set<Uid>>;
|
|
890
|
+
type TypedCollectionPropertyObserver<T extends Record<string, unknown>> = (changeMap: ChangeMap<T>) => void;
|
|
891
|
+
type TypedCollectionObserverHandler<T extends Record<string, unknown>> = (list: Uid[], added: Set<TypedData<T>>, removed: Set<TypedData<T>>) => void;
|
|
892
|
+
type TypedCollectionOptions<T extends Record<string, unknown>> = {
|
|
893
|
+
initialValue: T;
|
|
894
|
+
watchList?: (keyof T)[];
|
|
953
895
|
handler?: TypedCollectionObserverHandler<T>;
|
|
954
|
-
ctxName?: string;
|
|
955
896
|
};
|
|
956
|
-
declare class TypedCollection<T extends
|
|
957
|
-
private
|
|
958
|
-
private
|
|
959
|
-
private
|
|
960
|
-
private
|
|
961
|
-
private
|
|
962
|
-
private
|
|
963
|
-
private
|
|
964
|
-
private
|
|
965
|
-
private
|
|
966
|
-
private
|
|
967
|
-
private
|
|
968
|
-
private
|
|
969
|
-
private
|
|
897
|
+
declare class TypedCollection<T extends Record<string, unknown>> {
|
|
898
|
+
private _ctxId;
|
|
899
|
+
private _data;
|
|
900
|
+
private _watchList;
|
|
901
|
+
private _subsMap;
|
|
902
|
+
private _propertyObservers;
|
|
903
|
+
private _collectionObservers;
|
|
904
|
+
private _items;
|
|
905
|
+
private _removed;
|
|
906
|
+
private _added;
|
|
907
|
+
private _observeTimeout?;
|
|
908
|
+
private _notifyTimeout?;
|
|
909
|
+
private _notifyObservers;
|
|
910
|
+
private _initialValue;
|
|
970
911
|
constructor(options: TypedCollectionOptions<T>);
|
|
971
|
-
|
|
912
|
+
private _notify;
|
|
972
913
|
observeCollection(handler: TypedCollectionObserverHandler<T>): () => void;
|
|
973
914
|
unobserveCollection(handler: TypedCollectionObserverHandler<T>): void;
|
|
974
|
-
add(init: Partial<
|
|
975
|
-
read(id:
|
|
976
|
-
readProp<K extends
|
|
977
|
-
publishProp<K extends
|
|
978
|
-
remove(id:
|
|
915
|
+
add(init: Partial<T>): string;
|
|
916
|
+
read(id: Uid): TypedData<T> | null;
|
|
917
|
+
readProp<K extends keyof T>(id: Uid, propName: K): T[K];
|
|
918
|
+
publishProp<K extends keyof T>(id: Uid, propName: K, value: T[K]): void;
|
|
919
|
+
remove(id: Uid): void;
|
|
979
920
|
clearAll(): void;
|
|
980
921
|
observeProperties(handler: TypedCollectionPropertyObserver<T>): () => void;
|
|
981
922
|
unobserveProperties(handler: TypedCollectionPropertyObserver<T>): void;
|
|
982
|
-
findItems(checkFn: (item: TypedData<T>) => boolean):
|
|
983
|
-
items():
|
|
923
|
+
findItems(checkFn: (item: TypedData<T>) => boolean): Uid[];
|
|
924
|
+
items(): Uid[];
|
|
984
925
|
get size(): number;
|
|
985
926
|
destroy(): void;
|
|
986
927
|
}
|
|
@@ -989,7 +930,7 @@ declare class LitUploaderBlock extends LitActivityBlock {
|
|
|
989
930
|
static extSrcList: Readonly<typeof ExternalUploadSource>;
|
|
990
931
|
static sourceTypes: Readonly<typeof UploadSource>;
|
|
991
932
|
protected couldBeCtxOwner: boolean;
|
|
992
|
-
private
|
|
933
|
+
private _isCtxOwner;
|
|
993
934
|
private _unobserveCollection?;
|
|
994
935
|
private _unobserveCollectionProperties?;
|
|
995
936
|
init$: {
|
|
@@ -1007,13 +948,13 @@ declare class LitUploaderBlock extends LitActivityBlock {
|
|
|
1007
948
|
'*historyBack': null;
|
|
1008
949
|
'*closeModal': () => void;
|
|
1009
950
|
};
|
|
1010
|
-
private get
|
|
951
|
+
private get _hasCtxOwner();
|
|
1011
952
|
initCallback(): void;
|
|
1012
953
|
protected get validationManager(): ValidationManager;
|
|
1013
954
|
get api(): UploaderPublicApi;
|
|
1014
955
|
getAPI(): UploaderPublicApi;
|
|
1015
|
-
get uploadCollection(): TypedCollection<
|
|
1016
|
-
|
|
956
|
+
get uploadCollection(): TypedCollection<UploadEntryData>;
|
|
957
|
+
get secureUploadsManager(): SecureUploadsManager;
|
|
1017
958
|
disconnectedCallback(): void;
|
|
1018
959
|
connectedCallback(): void;
|
|
1019
960
|
private _initCtxOwner;
|
|
@@ -1024,8 +965,8 @@ declare class LitUploaderBlock extends LitActivityBlock {
|
|
|
1024
965
|
private _handleCollectionUpdate;
|
|
1025
966
|
private _handleCollectionPropertiesUpdate;
|
|
1026
967
|
private _flushCommonUploadProgress;
|
|
1027
|
-
|
|
1028
|
-
private
|
|
968
|
+
private _openCloudImageEditor;
|
|
969
|
+
private _setInitialCrop;
|
|
1029
970
|
protected getMetadataFor(entryId: string): Promise<_uploadcare_upload_client.Metadata | undefined>;
|
|
1030
971
|
protected getUploadClientOptions(): Promise<FileFromOptions>;
|
|
1031
972
|
getOutputData(): OutputFileEntry[];
|
|
@@ -1077,6 +1018,7 @@ interface CropAspectRatio {
|
|
|
1077
1018
|
id: string;
|
|
1078
1019
|
hasFreeform?: boolean;
|
|
1079
1020
|
}
|
|
1021
|
+
type CropPresetList = CropAspectRatio[];
|
|
1080
1022
|
|
|
1081
1023
|
type ActivityParams$1 = {
|
|
1082
1024
|
internalId: string;
|
|
@@ -1085,14 +1027,14 @@ declare class CloudImageEditorActivity extends LitUploaderBlock {
|
|
|
1085
1027
|
couldBeCtxOwner: boolean;
|
|
1086
1028
|
activityType: "cloud-image-edit";
|
|
1087
1029
|
private _entry?;
|
|
1088
|
-
private
|
|
1030
|
+
private _editorConfig;
|
|
1089
1031
|
get activityParams(): ActivityParams$1;
|
|
1090
1032
|
initCallback(): void;
|
|
1091
|
-
|
|
1092
|
-
|
|
1033
|
+
private _handleApply;
|
|
1034
|
+
private _handleCancel;
|
|
1093
1035
|
handleChange(event: CustomEvent<ChangeResult>): void;
|
|
1094
|
-
|
|
1095
|
-
|
|
1036
|
+
private _mountEditor;
|
|
1037
|
+
private _unmountEditor;
|
|
1096
1038
|
render(): lit_html.TemplateResult<1> | typeof nothing;
|
|
1097
1039
|
private _createEditorConfig;
|
|
1098
1040
|
}
|
|
@@ -1104,36 +1046,36 @@ declare class ExternalSource extends LitUploaderBlock {
|
|
|
1104
1046
|
couldBeCtxOwner: boolean;
|
|
1105
1047
|
activityType: "external";
|
|
1106
1048
|
private _messageBridge?;
|
|
1107
|
-
private
|
|
1049
|
+
private _iframeRef;
|
|
1108
1050
|
private _latestSelectionSummary;
|
|
1109
|
-
private
|
|
1110
|
-
private
|
|
1111
|
-
private
|
|
1112
|
-
private
|
|
1113
|
-
private
|
|
1114
|
-
private
|
|
1115
|
-
private
|
|
1116
|
-
private
|
|
1117
|
-
private
|
|
1118
|
-
private get
|
|
1051
|
+
private _selectedList;
|
|
1052
|
+
private _isSelectionReady;
|
|
1053
|
+
private _isDoneBtnEnabled;
|
|
1054
|
+
private _couldSelectAll;
|
|
1055
|
+
private _couldDeselectAll;
|
|
1056
|
+
private _showSelectionStatus;
|
|
1057
|
+
private _showDoneBtn;
|
|
1058
|
+
private _doneBtnTextClass;
|
|
1059
|
+
private _toolbarVisible;
|
|
1060
|
+
private get _counterText();
|
|
1119
1061
|
get activityParams(): ActivityParams;
|
|
1120
1062
|
initCallback(): void;
|
|
1121
|
-
private
|
|
1122
|
-
private
|
|
1123
|
-
private
|
|
1124
|
-
private
|
|
1125
|
-
private
|
|
1126
|
-
private
|
|
1127
|
-
private
|
|
1128
|
-
private
|
|
1063
|
+
private _extractUrlFromSelectedFile;
|
|
1064
|
+
private _handleToolbarStateChange;
|
|
1065
|
+
private _handleSelectedFilesChange;
|
|
1066
|
+
private _handleIframeLoad;
|
|
1067
|
+
private _applyTheme;
|
|
1068
|
+
private _applyEmbedCss;
|
|
1069
|
+
private _setupL10n;
|
|
1070
|
+
private _remoteUrl;
|
|
1129
1071
|
private _handleDone;
|
|
1130
1072
|
private _handleCancel;
|
|
1131
1073
|
private _handleSelectAll;
|
|
1132
1074
|
private _handleDeselectAll;
|
|
1133
1075
|
private _setSelectionSummary;
|
|
1134
|
-
private
|
|
1135
|
-
private
|
|
1136
|
-
private
|
|
1076
|
+
private _mountIframe;
|
|
1077
|
+
private _unmountIframe;
|
|
1078
|
+
private _resetSelectionStatus;
|
|
1137
1079
|
disconnectedCallback(): void;
|
|
1138
1080
|
render(): lit_html.TemplateResult<1>;
|
|
1139
1081
|
}
|
|
@@ -1153,9 +1095,7 @@ declare class LitActivityBlock extends LitBlock {
|
|
|
1153
1095
|
'*historyBack': null;
|
|
1154
1096
|
'*closeModal': () => void;
|
|
1155
1097
|
};
|
|
1156
|
-
_debouncedHistoryFlush
|
|
1157
|
-
cancel: () => void;
|
|
1158
|
-
};
|
|
1098
|
+
private _debouncedHistoryFlush;
|
|
1159
1099
|
private _deactivate;
|
|
1160
1100
|
private _activate;
|
|
1161
1101
|
initCallback(): void;
|
|
@@ -1171,16 +1111,15 @@ declare class LitActivityBlock extends LitBlock {
|
|
|
1171
1111
|
CLOUD_IMG_EDIT: 'cloud-image-edit';
|
|
1172
1112
|
EXTERNAL: 'external';
|
|
1173
1113
|
}>;
|
|
1174
|
-
get isActivityActive(): boolean;
|
|
1114
|
+
protected get isActivityActive(): boolean;
|
|
1175
1115
|
get couldOpenActivity(): boolean;
|
|
1176
1116
|
/** TODO: remove name argument */
|
|
1177
|
-
registerActivity(_name: string, options?: {
|
|
1117
|
+
protected registerActivity(_name: string, options?: {
|
|
1178
1118
|
onActivate?: () => void;
|
|
1179
1119
|
onDeactivate?: () => void;
|
|
1180
1120
|
}): void;
|
|
1181
|
-
|
|
1121
|
+
private _unregisterActivity;
|
|
1182
1122
|
disconnectedCallback(): void;
|
|
1183
|
-
get activityKey(): string;
|
|
1184
1123
|
get activityParams(): ActivityParamsMap[keyof ActivityParamsMap];
|
|
1185
1124
|
get initActivity(): string | null;
|
|
1186
1125
|
get doneActivity(): string | null;
|
|
@@ -1249,8 +1188,7 @@ declare class EventEmitter {
|
|
|
1249
1188
|
private _targets;
|
|
1250
1189
|
private _debugPrint;
|
|
1251
1190
|
constructor(debugPrint: (...args: unknown[]) => void);
|
|
1252
|
-
bindTarget(target: LitBlock): void;
|
|
1253
|
-
unbindTarget(target: LitBlock): void;
|
|
1191
|
+
bindTarget(target: LitBlock): () => void;
|
|
1254
1192
|
private _dispatch;
|
|
1255
1193
|
emit<T extends EventKey, TDebounce extends boolean | number | undefined = undefined>(type: T, payload?: TDebounce extends false | undefined ? EventPayload[T] : () => EventPayload[T], options?: {
|
|
1256
1194
|
debounce?: TDebounce;
|
|
@@ -1266,87 +1204,210 @@ type TelemetryEventBody = Partial<Pick<TelemetryState, 'payload' | 'config'>> &
|
|
|
1266
1204
|
modalId?: string;
|
|
1267
1205
|
eventType?: CommonEventType;
|
|
1268
1206
|
};
|
|
1269
|
-
|
|
1270
|
-
private readonly _sessionId;
|
|
1271
|
-
private readonly _telemetryInstance;
|
|
1272
|
-
private readonly _block;
|
|
1273
|
-
private _config;
|
|
1274
|
-
private _initialized;
|
|
1275
|
-
private _lastPayload;
|
|
1276
|
-
private readonly _queue;
|
|
1277
|
-
constructor(block: LitBlock);
|
|
1278
|
-
private _init;
|
|
1279
|
-
private _setConfig;
|
|
1280
|
-
private _formattingPayload;
|
|
1281
|
-
private _excludedEvents;
|
|
1207
|
+
interface ITelemetryManager {
|
|
1282
1208
|
sendEvent(body: TelemetryEventBody): void;
|
|
1283
1209
|
sendEventError(error: unknown, context?: string): void;
|
|
1284
|
-
/**
|
|
1285
|
-
* Method to send telemetry event for Cloud Image Editor.
|
|
1286
|
-
*/
|
|
1287
1210
|
sendEventCloudImageEditor(e: MouseEvent, tabId: string, options?: Record<string, unknown>): void;
|
|
1288
|
-
/**
|
|
1289
|
-
* Deeply compares two objects and returns true if they are equal, false otherwise.
|
|
1290
|
-
*/
|
|
1291
|
-
private _checkObj;
|
|
1292
|
-
private get _timestamp();
|
|
1293
|
-
private get _solution();
|
|
1294
|
-
private get _activity();
|
|
1295
|
-
private get _location();
|
|
1296
1211
|
}
|
|
1297
1212
|
|
|
1298
|
-
declare const
|
|
1213
|
+
declare const TabId: Readonly<{
|
|
1214
|
+
readonly CROP: "crop";
|
|
1215
|
+
readonly TUNING: "tuning";
|
|
1216
|
+
readonly FILTERS: "filters";
|
|
1217
|
+
}>;
|
|
1218
|
+
type TabIdValue$1 = (typeof TabId)[keyof typeof TabId];
|
|
1219
|
+
declare const ALL_COLOR_OPERATIONS: readonly ["brightness", "exposure", "gamma", "contrast", "saturation", "vibrance", "warmth", "enhance"];
|
|
1220
|
+
type ColorOperation = (typeof ALL_COLOR_OPERATIONS)[number];
|
|
1221
|
+
declare const ALL_FILTERS: readonly ["adaris", "briaril", "calarel", "carris", "cynarel", "cyren", "elmet", "elonni", "enzana", "erydark", "fenralan", "ferand", "galen", "gavin", "gethriel", "iorill", "iothari", "iselva", "jadis", "lavra", "misiara", "namala", "nerion", "nethari", "pamaya", "sarnar", "sedis", "sewen", "sorahel", "sorlen", "tarian", "thellassan", "varriel", "varven", "vevera", "virkas", "yedis", "yllara", "zatvel", "zevcen"];
|
|
1222
|
+
type FilterId = (typeof ALL_FILTERS)[number];
|
|
1223
|
+
declare const ALL_CROP_OPERATIONS: readonly ["rotate", "mirror", "flip"];
|
|
1224
|
+
type CropOperation = (typeof ALL_CROP_OPERATIONS)[number];
|
|
1225
|
+
/** KeypointsNumber is the number of keypoints loaded from each side of zero, not total number */
|
|
1226
|
+
declare const COLOR_OPERATIONS_CONFIG: Readonly<{
|
|
1227
|
+
brightness: {
|
|
1228
|
+
zero: number;
|
|
1229
|
+
range: readonly [-100, 100];
|
|
1230
|
+
keypointsNumber: number;
|
|
1231
|
+
};
|
|
1232
|
+
exposure: {
|
|
1233
|
+
zero: number;
|
|
1234
|
+
range: readonly [-500, 500];
|
|
1235
|
+
keypointsNumber: number;
|
|
1236
|
+
};
|
|
1237
|
+
gamma: {
|
|
1238
|
+
zero: number;
|
|
1239
|
+
range: readonly [0, 1000];
|
|
1240
|
+
keypointsNumber: number;
|
|
1241
|
+
};
|
|
1242
|
+
contrast: {
|
|
1243
|
+
zero: number;
|
|
1244
|
+
range: readonly [-100, 500];
|
|
1245
|
+
keypointsNumber: number;
|
|
1246
|
+
};
|
|
1247
|
+
saturation: {
|
|
1248
|
+
zero: number;
|
|
1249
|
+
range: readonly [-100, 500];
|
|
1250
|
+
keypointsNumber: number;
|
|
1251
|
+
};
|
|
1252
|
+
vibrance: {
|
|
1253
|
+
zero: number;
|
|
1254
|
+
range: readonly [-100, 500];
|
|
1255
|
+
keypointsNumber: number;
|
|
1256
|
+
};
|
|
1257
|
+
warmth: {
|
|
1258
|
+
zero: number;
|
|
1259
|
+
range: readonly [-100, 100];
|
|
1260
|
+
keypointsNumber: number;
|
|
1261
|
+
};
|
|
1262
|
+
enhance: {
|
|
1263
|
+
zero: number;
|
|
1264
|
+
range: readonly [0, 100];
|
|
1265
|
+
keypointsNumber: number;
|
|
1266
|
+
};
|
|
1267
|
+
filter: {
|
|
1268
|
+
zero: number;
|
|
1269
|
+
range: readonly [0, 100];
|
|
1270
|
+
keypointsNumber: number;
|
|
1271
|
+
};
|
|
1272
|
+
}>;
|
|
1273
|
+
|
|
1274
|
+
type SharedConfigState = {
|
|
1275
|
+
[K in keyof ConfigType as `*cfg/${K}`]: ConfigType[K];
|
|
1276
|
+
};
|
|
1277
|
+
type BlockCtxState = Record<string, never>;
|
|
1278
|
+
type ActivityBlockCtxState = BlockCtxState & {
|
|
1279
|
+
'*currentActivity': string | null;
|
|
1280
|
+
'*currentActivityParams': Record<string, unknown>;
|
|
1281
|
+
'*history': (string | null)[];
|
|
1282
|
+
'*historyBack': (() => void) | null;
|
|
1283
|
+
'*closeModal': () => void;
|
|
1284
|
+
};
|
|
1285
|
+
type UploaderBlockCtxState = ActivityBlockCtxState & {
|
|
1286
|
+
'*commonProgress': number;
|
|
1287
|
+
'*uploadList': {
|
|
1288
|
+
uid: Uid;
|
|
1289
|
+
}[];
|
|
1290
|
+
'*uploadQueue': Queue;
|
|
1291
|
+
'*collectionErrors': OutputErrorCollection[];
|
|
1292
|
+
'*collectionState': OutputCollectionState | null;
|
|
1293
|
+
'*groupInfo': UploadcareGroup | null;
|
|
1294
|
+
'*uploadTrigger': Set<Uid>;
|
|
1295
|
+
'*secureUploadsManager': SecureUploadsManager;
|
|
1296
|
+
};
|
|
1297
|
+
type SolutionBlockCtxState = UploaderBlockCtxState & {
|
|
1298
|
+
'*solution': string | null;
|
|
1299
|
+
};
|
|
1300
|
+
type CloudImageEditorState = {
|
|
1301
|
+
'*originalUrl': string | null;
|
|
1302
|
+
'*loadingOperations': LoadingOperations;
|
|
1303
|
+
'*faderEl': EditorImageFader | null;
|
|
1304
|
+
'*cropperEl': EditorImageCropper | null;
|
|
1305
|
+
'*imgEl': HTMLImageElement | null;
|
|
1306
|
+
'*imgContainerEl': HTMLElement | null;
|
|
1307
|
+
'*networkProblems': boolean;
|
|
1308
|
+
'*imageSize': {
|
|
1309
|
+
width: number;
|
|
1310
|
+
height: number;
|
|
1311
|
+
} | null;
|
|
1312
|
+
'*editorTransformations': Transformations;
|
|
1313
|
+
'*cropPresetList': CropPresetList;
|
|
1314
|
+
'*currentAspectRatio': CropAspectRatio | null;
|
|
1315
|
+
'*tabList': readonly TabIdValue$1[];
|
|
1316
|
+
'*tabId': TabIdValue$1;
|
|
1317
|
+
'*on.retryNetwork': () => void;
|
|
1318
|
+
'*on.apply': (transformations: Transformations) => void;
|
|
1319
|
+
'*on.cancel': () => void;
|
|
1320
|
+
};
|
|
1321
|
+
type EditorImageCropperState = {
|
|
1322
|
+
'*padding': number;
|
|
1323
|
+
'*operations': {
|
|
1324
|
+
rotate: number;
|
|
1325
|
+
mirror: boolean;
|
|
1326
|
+
flip: boolean;
|
|
1327
|
+
};
|
|
1328
|
+
'*imageBox': {
|
|
1329
|
+
x: number;
|
|
1330
|
+
y: number;
|
|
1331
|
+
width: number;
|
|
1332
|
+
height: number;
|
|
1333
|
+
};
|
|
1334
|
+
'*cropBox': {
|
|
1335
|
+
x: number;
|
|
1336
|
+
y: number;
|
|
1337
|
+
width: number;
|
|
1338
|
+
height: number;
|
|
1339
|
+
};
|
|
1340
|
+
};
|
|
1341
|
+
type EditorToolbarState = {
|
|
1342
|
+
'*showListAspectRatio': boolean;
|
|
1343
|
+
'*sliderEl': EditorSlider | null;
|
|
1344
|
+
'*showSlider': boolean;
|
|
1345
|
+
'*currentFilter': string;
|
|
1346
|
+
'*currentOperation': string | null;
|
|
1347
|
+
'*operationTooltip': string | null;
|
|
1348
|
+
};
|
|
1349
|
+
type DynamicBlockState = {
|
|
1350
|
+
'*blocksRegistry': Set<LitBlock>;
|
|
1351
|
+
'*eventEmitter': EventEmitter;
|
|
1352
|
+
'*localeManager': LocaleManager;
|
|
1353
|
+
'*telemetryManager': ITelemetryManager;
|
|
1354
|
+
'*a11y': A11y;
|
|
1355
|
+
'*modalManager': ModalManager | null;
|
|
1356
|
+
};
|
|
1357
|
+
type DynamicUploaderBlockState = {
|
|
1358
|
+
'*uploadCollection': TypedCollection<UploadEntryData> | null;
|
|
1359
|
+
'*publicApi': UploaderPublicApi;
|
|
1360
|
+
'*validationManager': ValidationManager;
|
|
1361
|
+
};
|
|
1362
|
+
type LocaleState = {
|
|
1363
|
+
[key: `*l10n/${string}`]: string;
|
|
1364
|
+
};
|
|
1365
|
+
type SharedState = SolutionBlockCtxState & SharedConfigState & CloudImageEditorState & EditorImageCropperState & EditorToolbarState & DynamicBlockState & DynamicUploaderBlockState & LocaleState;
|
|
1366
|
+
|
|
1367
|
+
declare const LitBlockBase: typeof LitElement & Constructor<{
|
|
1368
|
+
willYield: boolean;
|
|
1299
1369
|
yield(slot: string, defaultContent?: unknown): unknown;
|
|
1300
|
-
}> & Constructor
|
|
1370
|
+
}> & Constructor<{
|
|
1301
1371
|
getCssData(propName: string, silentCheck?: boolean): string | number | boolean | null | undefined;
|
|
1302
|
-
}> & Constructor
|
|
1303
|
-
$: {
|
|
1304
|
-
[x: string]: any;
|
|
1305
|
-
};
|
|
1306
|
-
sub<T = unknown>(key: string, callback: (value: T) => void, init?: boolean): () => void;
|
|
1307
|
-
pub(key: string, value: unknown): void;
|
|
1308
|
-
set$(obj: {
|
|
1309
|
-
[x: string]: any;
|
|
1310
|
-
}): void;
|
|
1311
|
-
has(key: string): boolean;
|
|
1312
|
-
add(key: string, val: unknown, rewrite?: boolean): void;
|
|
1313
|
-
add$(obj: {
|
|
1314
|
-
[x: string]: any;
|
|
1315
|
-
}, rewrite?: boolean): void;
|
|
1316
|
-
initCallback(): void;
|
|
1317
|
-
sharedCtx: PubSub<Record<string, unknown>>;
|
|
1318
|
-
ctxName: string;
|
|
1319
|
-
}> & Constructor$1<LitElement> & {
|
|
1372
|
+
}> & Constructor<SymbioteComponent<SharedState>> & Constructor<LitElement> & {
|
|
1320
1373
|
reg(tagName: string): void;
|
|
1321
1374
|
};
|
|
1322
1375
|
declare class LitBlock extends LitBlockBase {
|
|
1323
|
-
private
|
|
1376
|
+
private _cfgProxy;
|
|
1377
|
+
private _sharedContextInstances;
|
|
1324
1378
|
static styleAttrs: string[];
|
|
1325
1379
|
activityType: ActivityType;
|
|
1326
1380
|
init$: {};
|
|
1327
1381
|
constructor();
|
|
1328
1382
|
l10n(str: string, variables?: Record<string, string | number>): string;
|
|
1329
|
-
private
|
|
1383
|
+
private _pluralize;
|
|
1330
1384
|
emit(type: Parameters<EventEmitter['emit']>[0], payload?: Parameters<EventEmitter['emit']>[1], options?: Parameters<EventEmitter['emit']>[2]): void;
|
|
1331
1385
|
hasBlockInCtx(callback: (block: LitBlock) => boolean): boolean;
|
|
1332
|
-
setOrAddState(prop: string, newVal: unknown): void;
|
|
1333
1386
|
connectedCallback(): void;
|
|
1334
1387
|
initCallback(): void;
|
|
1335
1388
|
get testId(): string;
|
|
1336
|
-
get modalManager(): ModalManager |
|
|
1337
|
-
get telemetryManager():
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
protected get localeManager(): LocaleManager | null;
|
|
1343
|
-
protected get a11y(): A11y | null;
|
|
1344
|
-
protected get blocksRegistry(): Set<LitBlock>;
|
|
1389
|
+
get modalManager(): ModalManager | null;
|
|
1390
|
+
get telemetryManager(): ITelemetryManager;
|
|
1391
|
+
get localeManager(): LocaleManager;
|
|
1392
|
+
get a11y(): A11y;
|
|
1393
|
+
get blocksRegistry(): Set<LitBlock>;
|
|
1394
|
+
get eventEmitter(): EventEmitter;
|
|
1345
1395
|
disconnectedCallback(): void;
|
|
1346
1396
|
/**
|
|
1347
1397
|
* Called when the last block is removed from the context. Note that inheritors must run their callback before that.
|
|
1348
1398
|
*/
|
|
1349
1399
|
protected destroyCtxCallback(): void;
|
|
1400
|
+
/**
|
|
1401
|
+
* Adds a shared context instance if it does not exist yet.
|
|
1402
|
+
* @param key The shared state key.
|
|
1403
|
+
* @param resolver The resolver function that creates the instance.
|
|
1404
|
+
* @param persist Whether to persist the instance in the context if the creator block is removed. It's usually needed for those instances that depends on the current block. Defaults to false.
|
|
1405
|
+
*/
|
|
1406
|
+
protected addSharedContextInstance<TKey extends keyof SharedState>(key: TKey, resolver: () => SharedState[TKey], { persist }?: {
|
|
1407
|
+
persist?: boolean | undefined;
|
|
1408
|
+
}): void;
|
|
1409
|
+
private _destroySharedContextInstances;
|
|
1410
|
+
protected getSharedContextInstance<TKey extends keyof SharedState, TRequired extends boolean = true>(key: TKey, isRequired?: TRequired): TRequired extends true ? NonNullable<SharedState[TKey]> : SharedState[TKey];
|
|
1350
1411
|
protected proxyUrl(url: string): Promise<string>;
|
|
1351
1412
|
get cfg(): ConfigType;
|
|
1352
1413
|
subConfigValue<T extends keyof ConfigType>(key: T, callback: (value: ConfigType[T]) => void): () => void;
|
|
@@ -1356,15 +1417,11 @@ declare class LitBlock extends LitBlockBase {
|
|
|
1356
1417
|
declare class Modal extends LitBlock {
|
|
1357
1418
|
static styleAttrs: string[];
|
|
1358
1419
|
private _mouseDownTarget;
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
_closeDialog: () => void;
|
|
1365
|
-
_handleDialogClose: () => void;
|
|
1366
|
-
_handleDialogMouseDown: (e: MouseEvent) => void;
|
|
1367
|
-
_handleDialogMouseUp: (e: MouseEvent) => void;
|
|
1420
|
+
private _dialogEl;
|
|
1421
|
+
private _closeDialog;
|
|
1422
|
+
private _handleDialogClose;
|
|
1423
|
+
private _handleDialogMouseDown;
|
|
1424
|
+
private _handleDialogMouseUp;
|
|
1368
1425
|
show(): void;
|
|
1369
1426
|
hide(): void;
|
|
1370
1427
|
private _handleModalOpen;
|
|
@@ -1372,7 +1429,7 @@ declare class Modal extends LitBlock {
|
|
|
1372
1429
|
private _handleModalCloseAll;
|
|
1373
1430
|
initCallback(): void;
|
|
1374
1431
|
disconnectedCallback(): void;
|
|
1375
|
-
private
|
|
1432
|
+
private _handleDialogRef;
|
|
1376
1433
|
render(): lit_html.TemplateResult<1>;
|
|
1377
1434
|
}
|
|
1378
1435
|
|
|
@@ -1430,80 +1487,333 @@ declare class ModalManager {
|
|
|
1430
1487
|
destroy(): void;
|
|
1431
1488
|
}
|
|
1432
1489
|
|
|
1433
|
-
|
|
1490
|
+
type KebabCase<T extends string> = T extends `${infer Head} ${infer Tail}` ? `${Lowercase<Head>}-${KebabCase<Tail>}` : Lowercase<T>;
|
|
1491
|
+
declare const toKebabCase: <T extends string>(str: T) => KebabCase<T>;
|
|
1492
|
+
|
|
1493
|
+
declare class Icon extends LitBlock {
|
|
1494
|
+
name: string;
|
|
1495
|
+
private _resolvedHref;
|
|
1496
|
+
private _iconHrefResolver;
|
|
1497
|
+
initCallback(): void;
|
|
1498
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
1499
|
+
private _updateResolvedHref;
|
|
1500
|
+
render(): lit_html.TemplateResult<1>;
|
|
1434
1501
|
}
|
|
1435
1502
|
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1503
|
+
type CssPropValue = string | number | undefined | null;
|
|
1504
|
+
declare const ImgConfig_base: typeof LitElement & Constructor<LitElement> & {
|
|
1505
|
+
reg(tagName: string): void;
|
|
1506
|
+
} & Constructor<{
|
|
1507
|
+
getCssData(propName: string, silentCheck?: boolean): string | number | boolean | null | undefined;
|
|
1508
|
+
}>;
|
|
1509
|
+
declare class ImgConfig extends ImgConfig_base {
|
|
1510
|
+
private _state;
|
|
1511
|
+
private _subscribers;
|
|
1512
|
+
private _isnObserver;
|
|
1513
|
+
private _observed;
|
|
1514
|
+
createRenderRoot(): HTMLElement | ShadowRoot;
|
|
1515
|
+
constructor();
|
|
1516
|
+
protected $$(key: string): unknown;
|
|
1517
|
+
protected set$$(kvObj: Record<string, CssPropValue>): void;
|
|
1518
|
+
protected sub$$<T = unknown>(key: string, kbFn: (val: T) => void): void;
|
|
1519
|
+
private _notify;
|
|
1520
|
+
protected analyticsParams(): string;
|
|
1521
|
+
protected initAttributes(el: HTMLElement): void;
|
|
1522
|
+
protected initIntersection(el: HTMLElement, cbkFn: () => void): void;
|
|
1523
|
+
connectedCallback(): void;
|
|
1524
|
+
private _initCssProperties;
|
|
1525
|
+
disconnectedCallback(): void;
|
|
1526
|
+
static get observedAttributes(): string[];
|
|
1527
|
+
attributeChangedCallback(name: string, _oldVal: string | null, newVal: string | null): void;
|
|
1528
|
+
}
|
|
1454
1529
|
|
|
1455
|
-
declare class
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
private
|
|
1476
|
-
private
|
|
1477
|
-
private
|
|
1478
|
-
private
|
|
1479
|
-
private
|
|
1480
|
-
private
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1530
|
+
declare class ImgBase extends ImgConfig {
|
|
1531
|
+
private _img;
|
|
1532
|
+
private _imgPreview;
|
|
1533
|
+
private _fmtAbs;
|
|
1534
|
+
private _validateSize;
|
|
1535
|
+
private _getCdnModifiers;
|
|
1536
|
+
private _getTypedCssValue;
|
|
1537
|
+
private _getUrlBase;
|
|
1538
|
+
private _proxyUrl;
|
|
1539
|
+
protected _getElSize(el: HTMLElement, k?: number, wOnly?: boolean): string | null;
|
|
1540
|
+
private _setupEventProxy;
|
|
1541
|
+
protected get img(): HTMLImageElement;
|
|
1542
|
+
private get _currentImg();
|
|
1543
|
+
private get _hasPreviewImage();
|
|
1544
|
+
private get _bgSelector();
|
|
1545
|
+
private get _breakpoints();
|
|
1546
|
+
private get _hasFormatJPG();
|
|
1547
|
+
private _renderBg;
|
|
1548
|
+
private _getSrcset;
|
|
1549
|
+
private _getSrc;
|
|
1550
|
+
private get _srcUrlPreview();
|
|
1551
|
+
private _renderBackground;
|
|
1552
|
+
private _appendURL;
|
|
1553
|
+
private _setupConfigForImage;
|
|
1554
|
+
private _loaderImage;
|
|
1555
|
+
private _renderImage;
|
|
1556
|
+
protected init(): void;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
declare class Img extends ImgBase {
|
|
1560
|
+
attributesMeta: {
|
|
1561
|
+
src: string;
|
|
1562
|
+
} | {
|
|
1563
|
+
uuid: string;
|
|
1564
|
+
};
|
|
1565
|
+
connectedCallback(): void;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
declare class FormInput extends LitUploaderBlock {
|
|
1569
|
+
propertiesMeta: {
|
|
1570
|
+
'ctx-name': string;
|
|
1571
|
+
};
|
|
1572
|
+
private _validationInputElement;
|
|
1573
|
+
private _dynamicInputsContainer;
|
|
1574
|
+
private _createValidationInput;
|
|
1575
|
+
initCallback(): void;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
declare class Copyright extends LitBlock {
|
|
1487
1579
|
initCallback(): void;
|
|
1488
|
-
private assignSharedElements;
|
|
1489
|
-
private attachImageListeners;
|
|
1490
|
-
private detachImageListeners;
|
|
1491
|
-
private get imageClassName();
|
|
1492
|
-
/**
|
|
1493
|
-
* To proper work, we need non-zero size the element. So, we'll wait for it.
|
|
1494
|
-
*/
|
|
1495
|
-
private _waitForSize;
|
|
1496
|
-
firstUpdated(_changedProperties: Map<PropertyKey, unknown>): void;
|
|
1497
|
-
disconnectedCallback(): void;
|
|
1498
1580
|
render(): lit_html.TemplateResult<1>;
|
|
1499
|
-
protected updated(changedProperties: PropertyValues<this>): void;
|
|
1500
|
-
private syncTabListFromProp;
|
|
1501
|
-
private syncCropPresetState;
|
|
1502
|
-
updateImage(): Promise<void>;
|
|
1503
|
-
initEditor(): Promise<void>;
|
|
1504
1581
|
}
|
|
1505
1582
|
|
|
1506
|
-
declare class
|
|
1583
|
+
declare class ProgressBar extends LitBlock {
|
|
1584
|
+
value: number;
|
|
1585
|
+
visible: boolean;
|
|
1586
|
+
private _progressValue;
|
|
1587
|
+
private readonly _fakeProgressLineRef;
|
|
1588
|
+
private readonly _handleFakeProgressAnimation;
|
|
1589
|
+
protected firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
1590
|
+
protected updated(changedProperties: PropertyValues<this>): void;
|
|
1591
|
+
disconnectedCallback(): void;
|
|
1592
|
+
private _normalizeProgressValue;
|
|
1593
|
+
private _updateProgressValueStyle;
|
|
1594
|
+
render(): lit_html.TemplateResult<1>;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
declare class ProgressBarCommon extends LitUploaderBlock {
|
|
1598
|
+
private _unobserveCollectionCb?;
|
|
1599
|
+
private _visible;
|
|
1600
|
+
private _value;
|
|
1601
|
+
constructor();
|
|
1602
|
+
initCallback(): void;
|
|
1603
|
+
protected updated(changedProperties: PropertyValues<this>): void;
|
|
1604
|
+
disconnectedCallback(): void;
|
|
1605
|
+
render(): lit_html.TemplateResult<1>;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
type SelectOption = {
|
|
1609
|
+
text: string;
|
|
1610
|
+
value: string;
|
|
1611
|
+
};
|
|
1612
|
+
declare class Select extends LitBlock {
|
|
1613
|
+
value: string;
|
|
1614
|
+
disabled: boolean;
|
|
1615
|
+
options: SelectOption[];
|
|
1616
|
+
render(): lit_html.TemplateResult<1>;
|
|
1617
|
+
private _handleChange;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
declare class SourceBtn extends LitUploaderBlock {
|
|
1621
|
+
couldBeCtxOwner: boolean;
|
|
1622
|
+
private _registeredTypes;
|
|
1623
|
+
type?: string;
|
|
1624
|
+
private _iconName;
|
|
1625
|
+
private _srcTypeKey;
|
|
1626
|
+
private _initTypes;
|
|
1627
|
+
initCallback(): void;
|
|
1628
|
+
private _registerType;
|
|
1629
|
+
activate(): void;
|
|
1630
|
+
private _applyType;
|
|
1631
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
1632
|
+
render(): lit_html.TemplateResult<1>;
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
declare class SourceList extends LitBlock {
|
|
1636
|
+
private _rawSourceList;
|
|
1637
|
+
private _cameraModes;
|
|
1638
|
+
initCallback(): void;
|
|
1639
|
+
protected updated(changedProperties: PropertyValues<this>): void;
|
|
1640
|
+
private _updateSources;
|
|
1641
|
+
private _sources;
|
|
1642
|
+
render(): lit_html.TemplateResult<1>;
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
declare class Spinner extends LitBlock {
|
|
1646
|
+
render(): lit_html.TemplateResult<1>;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
declare class FileItemConfig extends LitUploaderBlock {
|
|
1650
|
+
private _entrySubs;
|
|
1651
|
+
protected entry: UploadEntryTypedData | null;
|
|
1652
|
+
protected withEntry<A extends unknown[], R>(fn: (entry: UploadEntryTypedData, ...args: A) => R): (...args: A) => R | undefined;
|
|
1653
|
+
protected subEntry<K extends UploadEntryKeys>(prop: K, handler: (value: UploadEntryData[K]) => void): void;
|
|
1654
|
+
protected reset(): void;
|
|
1655
|
+
disconnectedCallback(): void;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
declare class Thumb extends FileItemConfig {
|
|
1659
|
+
badgeIcon: string;
|
|
1660
|
+
uid: Uid;
|
|
1661
|
+
private _thumbUrl;
|
|
1662
|
+
private _renderedGridOnce;
|
|
1663
|
+
private _thumbRect;
|
|
1664
|
+
private _isIntersecting;
|
|
1665
|
+
private _firstViewMode;
|
|
1666
|
+
private _observer?;
|
|
1667
|
+
private _pendingThumbUpdate?;
|
|
1668
|
+
private _calculateThumbSize;
|
|
1669
|
+
private _generateThumbnail;
|
|
1670
|
+
private _debouncedGenerateThumb;
|
|
1671
|
+
private _decodeImage;
|
|
1672
|
+
private _cancelPendingThumbUpdate;
|
|
1673
|
+
private _scheduleThumbUpdate;
|
|
1674
|
+
private _requestThumbGeneration;
|
|
1675
|
+
protected firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
1676
|
+
protected updated(changedProperties: PropertyValues<this>): void;
|
|
1677
|
+
private _observerCallback;
|
|
1678
|
+
protected reset(): void;
|
|
1679
|
+
private _bindToEntry;
|
|
1680
|
+
initCallback(): void;
|
|
1681
|
+
connectedCallback(): void;
|
|
1682
|
+
disconnectedCallback(): void;
|
|
1683
|
+
render(): lit_html.TemplateResult<1>;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
declare class ActivityHeader extends LitActivityBlock {
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
declare class StartFrom extends LitActivityBlock {
|
|
1690
|
+
protected historyTracked: boolean;
|
|
1691
|
+
activityType: ActivityType;
|
|
1692
|
+
initCallback(): void;
|
|
1693
|
+
render(): lit_html.TemplateResult<1>;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
type EventListenerMap = {
|
|
1697
|
+
[K in (typeof EventType)[keyof typeof EventType]]: (e: CustomEvent<EventPayload[K]>) => void;
|
|
1698
|
+
};
|
|
1699
|
+
declare class UploadCtxProvider extends LitUploaderBlock {
|
|
1700
|
+
propertiesMeta: {
|
|
1701
|
+
'ctx-name': string;
|
|
1702
|
+
};
|
|
1703
|
+
static styleAttrs: string[];
|
|
1704
|
+
static EventType: Readonly<{
|
|
1705
|
+
readonly FILE_ADDED: "file-added";
|
|
1706
|
+
readonly FILE_REMOVED: "file-removed";
|
|
1707
|
+
readonly FILE_UPLOAD_START: "file-upload-start";
|
|
1708
|
+
readonly FILE_UPLOAD_PROGRESS: "file-upload-progress";
|
|
1709
|
+
readonly FILE_UPLOAD_SUCCESS: "file-upload-success";
|
|
1710
|
+
readonly FILE_UPLOAD_FAILED: "file-upload-failed";
|
|
1711
|
+
readonly FILE_URL_CHANGED: "file-url-changed";
|
|
1712
|
+
readonly MODAL_OPEN: "modal-open";
|
|
1713
|
+
readonly MODAL_CLOSE: "modal-close";
|
|
1714
|
+
readonly DONE_CLICK: "done-click";
|
|
1715
|
+
readonly UPLOAD_CLICK: "upload-click";
|
|
1716
|
+
readonly ACTIVITY_CHANGE: "activity-change";
|
|
1717
|
+
readonly COMMON_UPLOAD_START: "common-upload-start";
|
|
1718
|
+
readonly COMMON_UPLOAD_PROGRESS: "common-upload-progress";
|
|
1719
|
+
readonly COMMON_UPLOAD_SUCCESS: "common-upload-success";
|
|
1720
|
+
readonly COMMON_UPLOAD_FAILED: "common-upload-failed";
|
|
1721
|
+
readonly CHANGE: "change";
|
|
1722
|
+
readonly GROUP_CREATED: "group-created";
|
|
1723
|
+
}>;
|
|
1724
|
+
private _unbindEventEmitter;
|
|
1725
|
+
initCallback(): void;
|
|
1726
|
+
disconnectedCallback(): void;
|
|
1727
|
+
}
|
|
1728
|
+
interface UploadCtxProvider extends LitUploaderBlock {
|
|
1729
|
+
addEventListener<T extends keyof EventListenerMap>(type: T, listener: EventListenerMap[T], options?: boolean | AddEventListenerOptions): void;
|
|
1730
|
+
removeEventListener<T extends keyof EventListenerMap>(type: T, listener: EventListenerMap[T], options?: boolean | EventListenerOptions): void;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
declare class UrlSource extends LitUploaderBlock {
|
|
1734
|
+
couldBeCtxOwner: boolean;
|
|
1735
|
+
activityType: ActivityType;
|
|
1736
|
+
private _formState;
|
|
1737
|
+
initCallback(): void;
|
|
1738
|
+
private _inputRef;
|
|
1739
|
+
private _handleInput;
|
|
1740
|
+
private _handleUpload;
|
|
1741
|
+
render(): lit_html.TemplateResult<1>;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
declare function initState(fnCtx: CloudImageEditorBlock): {
|
|
1745
|
+
'*originalUrl': null;
|
|
1746
|
+
'*loadingOperations': LoadingOperations;
|
|
1747
|
+
'*faderEl': null;
|
|
1748
|
+
'*cropperEl': null;
|
|
1749
|
+
'*imgEl': null;
|
|
1750
|
+
'*imgContainerEl': null;
|
|
1751
|
+
'*networkProblems': boolean;
|
|
1752
|
+
'*imageSize': null;
|
|
1753
|
+
'*editorTransformations': {};
|
|
1754
|
+
'*cropPresetList': never[];
|
|
1755
|
+
'*currentAspectRatio': null;
|
|
1756
|
+
'*tabList': readonly ["crop", "tuning", "filters"];
|
|
1757
|
+
'*tabId': "crop";
|
|
1758
|
+
'*on.retryNetwork': () => void;
|
|
1759
|
+
'*on.apply': (transformations: Transformations) => void;
|
|
1760
|
+
'*on.cancel': () => void;
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
declare class CloudImageEditorBlock extends LitBlock {
|
|
1764
|
+
attributesMeta: ({
|
|
1765
|
+
uuid: string;
|
|
1766
|
+
} | {
|
|
1767
|
+
'cdn-url': string;
|
|
1768
|
+
}) & Partial<{
|
|
1769
|
+
tabs: string;
|
|
1770
|
+
'crop-preset': string;
|
|
1771
|
+
}> & {
|
|
1772
|
+
'ctx-name': string;
|
|
1773
|
+
};
|
|
1774
|
+
ctxOwner: boolean;
|
|
1775
|
+
static styleAttrs: string[];
|
|
1776
|
+
private _statusMessage;
|
|
1777
|
+
private _imageSrc;
|
|
1778
|
+
private _fileType;
|
|
1779
|
+
private _showLoader;
|
|
1780
|
+
uuid: string | null;
|
|
1781
|
+
cdnUrl: string | null;
|
|
1782
|
+
cropPreset: string;
|
|
1783
|
+
tabs: string | null;
|
|
1784
|
+
private _hasNetworkProblems;
|
|
1785
|
+
private _isInitialized;
|
|
1786
|
+
private _pendingInitUpdate;
|
|
1787
|
+
private readonly _debouncedShowLoader;
|
|
1788
|
+
private readonly _imgRef;
|
|
1789
|
+
private readonly _cropperRef;
|
|
1790
|
+
private readonly _faderRef;
|
|
1791
|
+
private readonly _imgContainerRef;
|
|
1792
|
+
private readonly _handleImageLoad;
|
|
1793
|
+
private readonly _handleImageError;
|
|
1794
|
+
private readonly _handleRetryNetwork;
|
|
1795
|
+
private _scheduleInitialization;
|
|
1796
|
+
init$: ReturnType<typeof initState>;
|
|
1797
|
+
initCallback(): void;
|
|
1798
|
+
private _assignSharedElements;
|
|
1799
|
+
private _attachImageListeners;
|
|
1800
|
+
private _detachImageListeners;
|
|
1801
|
+
private get _imageClassName();
|
|
1802
|
+
/**
|
|
1803
|
+
* To proper work, we need non-zero size the element. So, we'll wait for it.
|
|
1804
|
+
*/
|
|
1805
|
+
private _waitForSize;
|
|
1806
|
+
firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
1807
|
+
disconnectedCallback(): void;
|
|
1808
|
+
render(): lit_html.TemplateResult<1>;
|
|
1809
|
+
protected updated(changedProperties: PropertyValues<this>): void;
|
|
1810
|
+
private _syncTabListFromProp;
|
|
1811
|
+
private _syncCropPresetState;
|
|
1812
|
+
updateImage(): Promise<void>;
|
|
1813
|
+
initEditor(): Promise<void>;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
declare class CropFrame extends LitBlock {
|
|
1507
1817
|
private _backdropMask?;
|
|
1508
1818
|
private _backdropMaskInner?;
|
|
1509
1819
|
private _frameThumbs?;
|
|
@@ -1514,13 +1824,13 @@ declare class CropFrame extends LitBlock {
|
|
|
1514
1824
|
private _dragStartCrop?;
|
|
1515
1825
|
private _frameImage?;
|
|
1516
1826
|
private _guidesHidden;
|
|
1517
|
-
private
|
|
1518
|
-
private readonly
|
|
1827
|
+
private _draggingValue;
|
|
1828
|
+
private readonly _svgRef;
|
|
1519
1829
|
private _svgReady;
|
|
1520
1830
|
private _pendingMaskHref;
|
|
1521
1831
|
private get _svgElement();
|
|
1522
|
-
private get
|
|
1523
|
-
private set
|
|
1832
|
+
private get _dragging();
|
|
1833
|
+
private set _dragging(value);
|
|
1524
1834
|
private _applyGuidesDragState;
|
|
1525
1835
|
private _shouldThumbBeDisabled;
|
|
1526
1836
|
private _createBackdrop;
|
|
@@ -1546,7 +1856,7 @@ declare class CropFrame extends LitBlock {
|
|
|
1546
1856
|
private _render;
|
|
1547
1857
|
toggleThumbs(visible: boolean): void;
|
|
1548
1858
|
initCallback(): void;
|
|
1549
|
-
protected firstUpdated(
|
|
1859
|
+
protected firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
1550
1860
|
private _initializeSvg;
|
|
1551
1861
|
disconnectedCallback(): void;
|
|
1552
1862
|
render(): TemplateResult;
|
|
@@ -1555,97 +1865,37 @@ declare class CropFrame extends LitBlock {
|
|
|
1555
1865
|
declare class EditorButtonControl extends LitBlock {
|
|
1556
1866
|
active: boolean;
|
|
1557
1867
|
title: string;
|
|
1558
|
-
icon: string;
|
|
1559
|
-
titleProp: string;
|
|
1868
|
+
protected icon: string;
|
|
1869
|
+
protected titleProp: string;
|
|
1560
1870
|
protected get buttonClasses(): Record<string, boolean>;
|
|
1561
|
-
private
|
|
1871
|
+
private _updateHostStateClasses;
|
|
1562
1872
|
protected onClick(_event: MouseEvent): void;
|
|
1563
1873
|
connectedCallback(): void;
|
|
1564
|
-
protected updated(changedProperties: PropertyValues): void;
|
|
1874
|
+
protected updated(changedProperties: PropertyValues<this>): void;
|
|
1565
1875
|
render(): lit_html.TemplateResult<1>;
|
|
1566
1876
|
}
|
|
1567
1877
|
|
|
1568
1878
|
declare class EditorFreeformButtonControl extends EditorButtonControl {
|
|
1569
1879
|
initCallback(): void;
|
|
1570
1880
|
onClick(): void;
|
|
1571
|
-
private
|
|
1881
|
+
private _computeTitle;
|
|
1572
1882
|
render(): lit_html.TemplateResult<1>;
|
|
1573
1883
|
}
|
|
1574
1884
|
declare class EditorAspectRatioButtonControl extends EditorButtonControl {
|
|
1575
|
-
private _aspectRatio
|
|
1576
|
-
get aspectRatio(): CropAspectRatio |
|
|
1577
|
-
set aspectRatio(value: CropAspectRatio |
|
|
1885
|
+
private _aspectRatio;
|
|
1886
|
+
get aspectRatio(): CropAspectRatio | null;
|
|
1887
|
+
set aspectRatio(value: CropAspectRatio | null);
|
|
1578
1888
|
initCallback(): void;
|
|
1579
|
-
onClick(): void;
|
|
1580
|
-
private
|
|
1581
|
-
private
|
|
1889
|
+
protected onClick(): void;
|
|
1890
|
+
private _updateAspectRatioPresentation;
|
|
1891
|
+
private _renderIcon;
|
|
1582
1892
|
render(): lit_html.TemplateResult<1>;
|
|
1583
1893
|
}
|
|
1584
1894
|
|
|
1585
|
-
declare const TabId: Readonly<{
|
|
1586
|
-
readonly CROP: "crop";
|
|
1587
|
-
readonly TUNING: "tuning";
|
|
1588
|
-
readonly FILTERS: "filters";
|
|
1589
|
-
}>;
|
|
1590
|
-
declare const ALL_COLOR_OPERATIONS: readonly ["brightness", "exposure", "gamma", "contrast", "saturation", "vibrance", "warmth", "enhance"];
|
|
1591
|
-
type ColorOperation = (typeof ALL_COLOR_OPERATIONS)[number];
|
|
1592
|
-
declare const ALL_FILTERS: readonly ["adaris", "briaril", "calarel", "carris", "cynarel", "cyren", "elmet", "elonni", "enzana", "erydark", "fenralan", "ferand", "galen", "gavin", "gethriel", "iorill", "iothari", "iselva", "jadis", "lavra", "misiara", "namala", "nerion", "nethari", "pamaya", "sarnar", "sedis", "sewen", "sorahel", "sorlen", "tarian", "thellassan", "varriel", "varven", "vevera", "virkas", "yedis", "yllara", "zatvel", "zevcen"];
|
|
1593
|
-
type FilterId = (typeof ALL_FILTERS)[number];
|
|
1594
|
-
declare const ALL_CROP_OPERATIONS: readonly ["rotate", "mirror", "flip"];
|
|
1595
|
-
type CropOperation = (typeof ALL_CROP_OPERATIONS)[number];
|
|
1596
|
-
/** KeypointsNumber is the number of keypoints loaded from each side of zero, not total number */
|
|
1597
|
-
declare const COLOR_OPERATIONS_CONFIG: Readonly<{
|
|
1598
|
-
brightness: {
|
|
1599
|
-
zero: number;
|
|
1600
|
-
range: readonly [-100, 100];
|
|
1601
|
-
keypointsNumber: number;
|
|
1602
|
-
};
|
|
1603
|
-
exposure: {
|
|
1604
|
-
zero: number;
|
|
1605
|
-
range: readonly [-500, 500];
|
|
1606
|
-
keypointsNumber: number;
|
|
1607
|
-
};
|
|
1608
|
-
gamma: {
|
|
1609
|
-
zero: number;
|
|
1610
|
-
range: readonly [0, 1000];
|
|
1611
|
-
keypointsNumber: number;
|
|
1612
|
-
};
|
|
1613
|
-
contrast: {
|
|
1614
|
-
zero: number;
|
|
1615
|
-
range: readonly [-100, 500];
|
|
1616
|
-
keypointsNumber: number;
|
|
1617
|
-
};
|
|
1618
|
-
saturation: {
|
|
1619
|
-
zero: number;
|
|
1620
|
-
range: readonly [-100, 500];
|
|
1621
|
-
keypointsNumber: number;
|
|
1622
|
-
};
|
|
1623
|
-
vibrance: {
|
|
1624
|
-
zero: number;
|
|
1625
|
-
range: readonly [-100, 500];
|
|
1626
|
-
keypointsNumber: number;
|
|
1627
|
-
};
|
|
1628
|
-
warmth: {
|
|
1629
|
-
zero: number;
|
|
1630
|
-
range: readonly [-100, 100];
|
|
1631
|
-
keypointsNumber: number;
|
|
1632
|
-
};
|
|
1633
|
-
enhance: {
|
|
1634
|
-
zero: number;
|
|
1635
|
-
range: readonly [0, 100];
|
|
1636
|
-
keypointsNumber: number;
|
|
1637
|
-
};
|
|
1638
|
-
filter: {
|
|
1639
|
-
zero: number;
|
|
1640
|
-
range: readonly [0, 100];
|
|
1641
|
-
keypointsNumber: number;
|
|
1642
|
-
};
|
|
1643
|
-
}>;
|
|
1644
|
-
|
|
1645
1895
|
declare class EditorCropButtonControl extends EditorButtonControl {
|
|
1646
1896
|
operation: CropOperation | undefined;
|
|
1647
|
-
protected willUpdate(
|
|
1648
|
-
onClick(e: MouseEvent): void;
|
|
1897
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
1898
|
+
protected onClick(e: MouseEvent): void;
|
|
1649
1899
|
}
|
|
1650
1900
|
|
|
1651
1901
|
declare class EditorFilterControl extends EditorButtonControl {
|
|
@@ -1655,12 +1905,12 @@ declare class EditorFilterControl extends EditorButtonControl {
|
|
|
1655
1905
|
private _observer?;
|
|
1656
1906
|
private _cancelPreload?;
|
|
1657
1907
|
private _lastPreviewRequestId;
|
|
1658
|
-
private
|
|
1659
|
-
private
|
|
1660
|
-
private
|
|
1661
|
-
private
|
|
1908
|
+
private _previewVisibilityCheckRaf?;
|
|
1909
|
+
private _previewVisibilityCheckTimeout?;
|
|
1910
|
+
private _previewImage;
|
|
1911
|
+
private _previewLoaded;
|
|
1662
1912
|
isOriginal: boolean;
|
|
1663
|
-
|
|
1913
|
+
private _iconSize;
|
|
1664
1914
|
get filter(): string;
|
|
1665
1915
|
set filter(value: string);
|
|
1666
1916
|
onClick(e: MouseEvent): void;
|
|
@@ -1669,11 +1919,11 @@ declare class EditorFilterControl extends EditorButtonControl {
|
|
|
1669
1919
|
initCallback(): void;
|
|
1670
1920
|
disconnectedCallback(): void;
|
|
1671
1921
|
protected updated(changedProperties: PropertyValues<this>): void;
|
|
1672
|
-
private
|
|
1673
|
-
private
|
|
1674
|
-
private
|
|
1675
|
-
private
|
|
1676
|
-
private get
|
|
1922
|
+
private _updateFilterLabels;
|
|
1923
|
+
private _loadPreview;
|
|
1924
|
+
private _schedulePreviewVisibilityCheck;
|
|
1925
|
+
private _clearPreviewVisibilityChecks;
|
|
1926
|
+
private get _shouldShowPreview();
|
|
1677
1927
|
render(): lit_html.TemplateResult<1>;
|
|
1678
1928
|
}
|
|
1679
1929
|
|
|
@@ -1693,10 +1943,10 @@ declare class EditorImageCropper extends LitBlock {
|
|
|
1693
1943
|
private _observer?;
|
|
1694
1944
|
private _image;
|
|
1695
1945
|
private _cancelPreload?;
|
|
1696
|
-
private readonly
|
|
1697
|
-
private readonly
|
|
1946
|
+
private readonly _canvasRef;
|
|
1947
|
+
private readonly _frameRef;
|
|
1698
1948
|
constructor();
|
|
1699
|
-
protected firstUpdated(
|
|
1949
|
+
protected firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
1700
1950
|
private _syncTransformations;
|
|
1701
1951
|
private _initCanvas;
|
|
1702
1952
|
private _alignImage;
|
|
@@ -1783,13 +2033,13 @@ declare class EditorOperationControl extends EditorButtonControl {
|
|
|
1783
2033
|
private _operation;
|
|
1784
2034
|
get operation(): ColorOperation | '';
|
|
1785
2035
|
set operation(value: ColorOperation | '');
|
|
1786
|
-
private
|
|
2036
|
+
private _updateOperationMetadata;
|
|
1787
2037
|
initCallback(): void;
|
|
1788
|
-
onClick(e: MouseEvent): void;
|
|
2038
|
+
protected onClick(e: MouseEvent): void;
|
|
1789
2039
|
}
|
|
1790
2040
|
|
|
1791
2041
|
declare class EditorScroller extends LitBlock {
|
|
1792
|
-
private readonly
|
|
2042
|
+
private readonly _handleWheel;
|
|
1793
2043
|
connectedCallback(): void;
|
|
1794
2044
|
disconnectedCallback(): void;
|
|
1795
2045
|
}
|
|
@@ -1798,76 +2048,84 @@ type SliderOperation = ColorOperation | 'filter';
|
|
|
1798
2048
|
type SliderFilter = FilterId | typeof FAKE_ORIGINAL_FILTER;
|
|
1799
2049
|
declare const FAKE_ORIGINAL_FILTER = "original";
|
|
1800
2050
|
declare class EditorSlider extends LitBlock {
|
|
1801
|
-
|
|
1802
|
-
|
|
2051
|
+
state: {
|
|
2052
|
+
operation: SliderOperation;
|
|
2053
|
+
filter: SliderFilter | undefined;
|
|
2054
|
+
originalUrl: string;
|
|
2055
|
+
disabled: boolean;
|
|
2056
|
+
min: number;
|
|
2057
|
+
max: number;
|
|
1803
2058
|
value: number;
|
|
1804
|
-
|
|
2059
|
+
defaultValue: number;
|
|
2060
|
+
zero: number;
|
|
2061
|
+
};
|
|
2062
|
+
private _handleInput;
|
|
1805
2063
|
setOperation(operation: SliderOperation, filter?: SliderFilter): void;
|
|
1806
2064
|
private _initializeValues;
|
|
1807
2065
|
apply(): void;
|
|
1808
2066
|
cancel(): void;
|
|
1809
2067
|
initCallback(): void;
|
|
1810
|
-
protected updated(changedProperties:
|
|
2068
|
+
protected updated(changedProperties: PropertyValues<this>): void;
|
|
1811
2069
|
render(): lit_html.TemplateResult<1>;
|
|
1812
2070
|
}
|
|
1813
2071
|
|
|
1814
2072
|
type TabIdValue = (typeof TabId)[keyof typeof TabId];
|
|
1815
2073
|
declare class EditorToolbar extends LitBlock {
|
|
1816
|
-
private
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
private
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
private
|
|
1823
|
-
private
|
|
1824
|
-
private
|
|
1825
|
-
private
|
|
1826
|
-
private
|
|
1827
|
-
private readonly
|
|
1828
|
-
private readonly
|
|
2074
|
+
private _showLoader;
|
|
2075
|
+
showMainToolbar: boolean;
|
|
2076
|
+
showSubToolbar: boolean;
|
|
2077
|
+
private _showTabToggles;
|
|
2078
|
+
tabList: readonly TabIdValue[];
|
|
2079
|
+
activeTab: TabIdValue;
|
|
2080
|
+
private _useSliderPanel;
|
|
2081
|
+
private _tooltipVisible;
|
|
2082
|
+
private _operationTooltip;
|
|
2083
|
+
private _tabIndicatorOffset;
|
|
2084
|
+
private _tabIndicatorWidth;
|
|
2085
|
+
private readonly _sliderRef;
|
|
2086
|
+
private readonly _tabIndicatorRef;
|
|
1829
2087
|
protected readonly tabToggleRefs: Record<TabIdValue, Ref<HTMLElement>>;
|
|
1830
|
-
private readonly
|
|
1831
|
-
private
|
|
2088
|
+
private readonly _handleWindowResize;
|
|
2089
|
+
private _cropPresets;
|
|
1832
2090
|
private _cancelPreload?;
|
|
1833
2091
|
private readonly _debouncedShowLoader;
|
|
1834
2092
|
private readonly _updateInfoTooltip;
|
|
1835
|
-
private readonly
|
|
1836
|
-
private readonly
|
|
1837
|
-
private readonly
|
|
1838
|
-
private readonly
|
|
1839
|
-
private readonly
|
|
2093
|
+
private readonly _subTopToolbarStyles;
|
|
2094
|
+
private readonly _subBottomToolbarStyles;
|
|
2095
|
+
private readonly _tabContentStyles;
|
|
2096
|
+
private readonly _tabToggleStyles;
|
|
2097
|
+
private readonly _tabTogglesStyles;
|
|
1840
2098
|
init$: Record<string, unknown>;
|
|
1841
2099
|
private _onSliderClose;
|
|
1842
2100
|
private _activateTab;
|
|
1843
|
-
private
|
|
2101
|
+
private _applyTabState;
|
|
1844
2102
|
private _syncTabIndicator;
|
|
1845
|
-
private get
|
|
1846
|
-
private
|
|
1847
|
-
private
|
|
1848
|
-
private
|
|
1849
|
-
private
|
|
1850
|
-
private
|
|
1851
|
-
private
|
|
1852
|
-
private
|
|
1853
|
-
private
|
|
1854
|
-
private
|
|
1855
|
-
private
|
|
1856
|
-
private
|
|
2103
|
+
private get _hasAspectRatioPicker();
|
|
2104
|
+
private _renderControlsByTab;
|
|
2105
|
+
private _renderCropTabControls;
|
|
2106
|
+
private _renderFilterTabControls;
|
|
2107
|
+
private _renderTuningTabControls;
|
|
2108
|
+
private _renderControlGroup;
|
|
2109
|
+
private _renderFreeformControl;
|
|
2110
|
+
private _renderAspectRatioControl;
|
|
2111
|
+
private _renderCropOperationControl;
|
|
2112
|
+
private _renderFilterControl;
|
|
2113
|
+
private _renderOperationControl;
|
|
2114
|
+
private _renderAspectRatioList;
|
|
1857
2115
|
private _preloadEditedImage;
|
|
1858
2116
|
initCallback(): void;
|
|
1859
2117
|
connectedCallback(): void;
|
|
1860
|
-
firstUpdated(
|
|
1861
|
-
protected updated(changedProperties: PropertyValues): void;
|
|
2118
|
+
firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
2119
|
+
protected updated(changedProperties: PropertyValues<this>): void;
|
|
1862
2120
|
disconnectedCallback(): void;
|
|
1863
|
-
private
|
|
1864
|
-
private
|
|
1865
|
-
private
|
|
1866
|
-
private
|
|
1867
|
-
private
|
|
1868
|
-
private
|
|
1869
|
-
private
|
|
1870
|
-
private
|
|
2121
|
+
private _assignSharedElements;
|
|
2122
|
+
private readonly _handleCancel;
|
|
2123
|
+
private readonly _handleApply;
|
|
2124
|
+
private readonly _handleApplySlider;
|
|
2125
|
+
private readonly _handleCancelSlider;
|
|
2126
|
+
private readonly _handleTabClick;
|
|
2127
|
+
private _renderTabToggle;
|
|
2128
|
+
private _renderTabContent;
|
|
1871
2129
|
render(): TemplateResult<1>;
|
|
1872
2130
|
}
|
|
1873
2131
|
|
|
@@ -1881,26 +2139,26 @@ declare class BtnUi extends LitBlock {
|
|
|
1881
2139
|
ariaRole: string;
|
|
1882
2140
|
ariaControls: string;
|
|
1883
2141
|
titleProp: string;
|
|
1884
|
-
protected firstUpdated(
|
|
2142
|
+
protected firstUpdated(changed: PropertyValues<this>): void;
|
|
1885
2143
|
protected updated(changed: PropertyValues<this>): void;
|
|
1886
|
-
private
|
|
1887
|
-
private
|
|
1888
|
-
private get
|
|
1889
|
-
private get
|
|
1890
|
-
private get
|
|
2144
|
+
private _applyReverse;
|
|
2145
|
+
private _applyThemeClass;
|
|
2146
|
+
private get _iconClassMap();
|
|
2147
|
+
private get _computedIconHidden();
|
|
2148
|
+
private get _computedIconSingle();
|
|
1891
2149
|
render(): lit_html.TemplateResult<1>;
|
|
1892
2150
|
}
|
|
1893
2151
|
|
|
1894
2152
|
declare class LineLoaderUi extends LitBlock {
|
|
1895
2153
|
active: boolean;
|
|
1896
|
-
private readonly
|
|
2154
|
+
private readonly _lineRef;
|
|
1897
2155
|
private _isAnimating;
|
|
1898
|
-
private readonly
|
|
1899
|
-
protected firstUpdated(
|
|
2156
|
+
private readonly _handleTransitionEndRight;
|
|
2157
|
+
protected firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
1900
2158
|
protected updated(changedProperties: PropertyValues<this>): void;
|
|
1901
|
-
private
|
|
1902
|
-
private
|
|
1903
|
-
private
|
|
2159
|
+
private _start;
|
|
2160
|
+
private _stop;
|
|
2161
|
+
private _resetLine;
|
|
1904
2162
|
render(): lit_html.TemplateResult<1>;
|
|
1905
2163
|
}
|
|
1906
2164
|
|
|
@@ -1915,13 +2173,13 @@ declare class PresenceToggle extends LitBlock {
|
|
|
1915
2173
|
private _visibleStyle;
|
|
1916
2174
|
private _hiddenStyle;
|
|
1917
2175
|
private _externalTransitions;
|
|
1918
|
-
private
|
|
2176
|
+
private _initialRenderComplete;
|
|
1919
2177
|
set visible(value: boolean);
|
|
1920
2178
|
get visible(): boolean;
|
|
1921
2179
|
set styles(styles: PresenceToggleStyle);
|
|
1922
2180
|
get styles(): PresenceToggleStyle;
|
|
1923
2181
|
private _handleVisible;
|
|
1924
|
-
private
|
|
2182
|
+
private _dispatchInitialRenderEvent;
|
|
1925
2183
|
initCallback(): void;
|
|
1926
2184
|
}
|
|
1927
2185
|
|
|
@@ -1930,9 +2188,9 @@ declare class SliderUi extends LitBlock {
|
|
|
1930
2188
|
private _thumbSize;
|
|
1931
2189
|
private _zeroDotEl?;
|
|
1932
2190
|
private _stepsCount?;
|
|
1933
|
-
private readonly
|
|
1934
|
-
private readonly
|
|
1935
|
-
private readonly
|
|
2191
|
+
private readonly _inputRef;
|
|
2192
|
+
private readonly _thumbRef;
|
|
2193
|
+
private readonly _stepsRef;
|
|
1936
2194
|
disabled: boolean;
|
|
1937
2195
|
min: number;
|
|
1938
2196
|
max: number;
|
|
@@ -1940,12 +2198,12 @@ declare class SliderUi extends LitBlock {
|
|
|
1940
2198
|
zero: number;
|
|
1941
2199
|
private _currentValue;
|
|
1942
2200
|
constructor();
|
|
1943
|
-
private
|
|
1944
|
-
private readonly
|
|
1945
|
-
private readonly
|
|
1946
|
-
private readonly
|
|
1947
|
-
private readonly
|
|
1948
|
-
protected firstUpdated(changedProperties:
|
|
2201
|
+
private _emitSliderEvent;
|
|
2202
|
+
private readonly _handleSliderInput;
|
|
2203
|
+
private readonly _handleSliderChange;
|
|
2204
|
+
private readonly _handleInputFocus;
|
|
2205
|
+
private readonly _handleInputBlur;
|
|
2206
|
+
protected firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
1949
2207
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
1950
2208
|
private _updateValue;
|
|
1951
2209
|
private _updateZeroDot;
|
|
@@ -1957,11 +2215,6 @@ declare class SliderUi extends LitBlock {
|
|
|
1957
2215
|
render(): lit_html.TemplateResult<1>;
|
|
1958
2216
|
}
|
|
1959
2217
|
|
|
1960
|
-
declare class Copyright extends LitBlock {
|
|
1961
|
-
initCallback(): void;
|
|
1962
|
-
render(): lit_html.TemplateResult<1>;
|
|
1963
|
-
}
|
|
1964
|
-
|
|
1965
2218
|
declare class DropArea extends LitUploaderBlock {
|
|
1966
2219
|
static styleAttrs: string[];
|
|
1967
2220
|
disabled: boolean;
|
|
@@ -1970,15 +2223,15 @@ declare class DropArea extends LitUploaderBlock {
|
|
|
1970
2223
|
fullscreen: boolean;
|
|
1971
2224
|
initflow: boolean;
|
|
1972
2225
|
text?: string;
|
|
1973
|
-
private
|
|
1974
|
-
private
|
|
1975
|
-
private get
|
|
2226
|
+
private _isEnabled;
|
|
2227
|
+
private _isVisible;
|
|
2228
|
+
private get _localizedText();
|
|
1976
2229
|
private _destroyDropzone;
|
|
1977
2230
|
private _destroyContentWrapperDropzone;
|
|
1978
|
-
private
|
|
1979
|
-
private readonly
|
|
1980
|
-
private
|
|
1981
|
-
private
|
|
2231
|
+
private _contentWrapperRef;
|
|
2232
|
+
private readonly _handleAreaInteraction;
|
|
2233
|
+
private _sourceListAllowsLocal;
|
|
2234
|
+
private _clickableListenersAttached;
|
|
1982
2235
|
isActive(): boolean;
|
|
1983
2236
|
initCallback(): void;
|
|
1984
2237
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
@@ -1986,45 +2239,33 @@ declare class DropArea extends LitUploaderBlock {
|
|
|
1986
2239
|
/** Ignore drop events if there are other visible drop areas on the page. */
|
|
1987
2240
|
private _shouldIgnore;
|
|
1988
2241
|
private _couldHandleFiles;
|
|
1989
|
-
private
|
|
1990
|
-
private
|
|
1991
|
-
private
|
|
1992
|
-
private
|
|
2242
|
+
private _updateIsEnabled;
|
|
2243
|
+
private _updateVisibility;
|
|
2244
|
+
private _updateDragStateAttribute;
|
|
2245
|
+
private _updateClickableListeners;
|
|
1993
2246
|
disconnectedCallback(): void;
|
|
1994
2247
|
render(): lit_html.TemplateResult<1>;
|
|
1995
2248
|
}
|
|
1996
2249
|
|
|
1997
|
-
type EntrySubscription = ReturnType<UploadEntryTypedData['subscribe']>;
|
|
1998
|
-
declare class FileItemConfig extends LitUploaderBlock {
|
|
1999
|
-
protected _entrySubs: Set<EntrySubscription>;
|
|
2000
|
-
protected _entry: UploadEntryTypedData | null;
|
|
2001
|
-
protected _withEntry<A extends unknown[], R>(fn: (entry: UploadEntryTypedData, ...args: A) => R): (...args: A) => R | undefined;
|
|
2002
|
-
protected _subEntry<K extends UploadEntryKeys>(prop: K, handler: (value: UploadEntryData[K]) => void): void;
|
|
2003
|
-
protected _reset(): void;
|
|
2004
|
-
disconnectedCallback(): void;
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
2250
|
declare class FileItem extends FileItemConfig {
|
|
2008
|
-
couldBeCtxOwner: boolean;
|
|
2009
|
-
private
|
|
2010
|
-
uid:
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2251
|
+
protected couldBeCtxOwner: boolean;
|
|
2252
|
+
private _pauseRender;
|
|
2253
|
+
uid: Uid;
|
|
2254
|
+
private _itemName;
|
|
2255
|
+
private _errorText;
|
|
2256
|
+
private _hint;
|
|
2257
|
+
private _progressValue;
|
|
2258
|
+
private _progressVisible;
|
|
2259
|
+
private _badgeIcon;
|
|
2260
|
+
private _isFinished;
|
|
2261
|
+
private _isFailed;
|
|
2262
|
+
private _isUploading;
|
|
2263
|
+
private _isFocused;
|
|
2264
|
+
private _isEditable;
|
|
2265
|
+
private _showFileNames;
|
|
2266
|
+
private _ariaLabelStatusFile;
|
|
2024
2267
|
private _renderedOnce;
|
|
2025
2268
|
private _observer?;
|
|
2026
|
-
protected _isIntersecting: boolean;
|
|
2027
|
-
protected _thumbRect?: DOMRectReadOnly;
|
|
2028
2269
|
private _handleEdit;
|
|
2029
2270
|
private _handleRemove;
|
|
2030
2271
|
private _handleUploadClick;
|
|
@@ -2032,7 +2273,7 @@ declare class FileItem extends FileItemConfig {
|
|
|
2032
2273
|
private _debouncedCalculateState;
|
|
2033
2274
|
private _updateHintAndProgress;
|
|
2034
2275
|
private _handleState;
|
|
2035
|
-
|
|
2276
|
+
protected reset(): void;
|
|
2036
2277
|
private _observerCallback;
|
|
2037
2278
|
private _handleEntryId;
|
|
2038
2279
|
private _updateShowFileNames;
|
|
@@ -2040,266 +2281,19 @@ declare class FileItem extends FileItemConfig {
|
|
|
2040
2281
|
initCallback(): void;
|
|
2041
2282
|
connectedCallback(): void;
|
|
2042
2283
|
disconnectedCallback(): void;
|
|
2043
|
-
|
|
2284
|
+
private _upload;
|
|
2044
2285
|
static activeInstances: Set<FileItem>;
|
|
2045
|
-
protected shouldUpdate(
|
|
2046
|
-
render(): lit_html.TemplateResult<1>;
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
|
-
declare class FormInput extends LitUploaderBlock {
|
|
2050
|
-
_validationInputElement: HTMLInputElement | null;
|
|
2051
|
-
_dynamicInputsContainer: HTMLDivElement | null;
|
|
2052
|
-
_createValidationInput(): HTMLInputElement;
|
|
2053
|
-
initCallback(): void;
|
|
2054
|
-
}
|
|
2055
|
-
|
|
2056
|
-
declare class Icon extends LitBlock {
|
|
2057
|
-
name: string;
|
|
2058
|
-
private resolvedHref;
|
|
2059
|
-
private iconHrefResolver;
|
|
2060
|
-
initCallback(): void;
|
|
2061
|
-
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
2062
|
-
private updateResolvedHref;
|
|
2063
|
-
render(): lit_html.TemplateResult<1>;
|
|
2064
|
-
}
|
|
2065
|
-
|
|
2066
|
-
declare const ImgTypeEnum: Readonly<{
|
|
2067
|
-
PREVIEW: "PREVIEW";
|
|
2068
|
-
MAIN: "MAIN";
|
|
2069
|
-
}>;
|
|
2070
|
-
|
|
2071
|
-
type CssPropValue = string | number | undefined | null;
|
|
2072
|
-
declare const ImgConfig_base: typeof LitElement & Constructor$1<LitElement> & {
|
|
2073
|
-
reg(tagName: string): void;
|
|
2074
|
-
} & Constructor$1<{
|
|
2075
|
-
getCssData(propName: string, silentCheck?: boolean): string | number | boolean | null | undefined;
|
|
2076
|
-
}>;
|
|
2077
|
-
declare class ImgConfig extends ImgConfig_base {
|
|
2078
|
-
private _state;
|
|
2079
|
-
private _subscribers;
|
|
2080
|
-
private _isnObserver;
|
|
2081
|
-
private _observed;
|
|
2082
|
-
createRenderRoot(): HTMLElement | ShadowRoot;
|
|
2083
|
-
constructor();
|
|
2084
|
-
$$(key: string): unknown;
|
|
2085
|
-
set$$(kvObj: Record<string, CssPropValue>): void;
|
|
2086
|
-
sub$$<T = unknown>(key: string, kbFn: (val: T) => void): void;
|
|
2087
|
-
private _notify;
|
|
2088
|
-
analyticsParams(): string;
|
|
2089
|
-
initAttributes(el: HTMLElement): void;
|
|
2090
|
-
initIntersection(el: HTMLElement, cbkFn: () => void): void;
|
|
2091
|
-
connectedCallback(): void;
|
|
2092
|
-
private _initCssProperties;
|
|
2093
|
-
disconnectedCallback(): void;
|
|
2094
|
-
static get observedAttributes(): string[];
|
|
2095
|
-
attributeChangedCallback(name: string, _oldVal: string | null, newVal: string | null): void;
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
type ImgType = (typeof ImgTypeEnum)[keyof typeof ImgTypeEnum];
|
|
2099
|
-
type LoaderParams = {
|
|
2100
|
-
src?: string;
|
|
2101
|
-
srcset?: string;
|
|
2102
|
-
elNode: HTMLImageElement;
|
|
2103
|
-
};
|
|
2104
|
-
type CurrentImg = {
|
|
2105
|
-
type: ImgType;
|
|
2106
|
-
img: HTMLImageElement;
|
|
2107
|
-
};
|
|
2108
|
-
declare class ImgBase extends ImgConfig {
|
|
2109
|
-
protected _img: HTMLImageElement;
|
|
2110
|
-
protected _imgPreview: HTMLImageElement;
|
|
2111
|
-
private _fmtAbs;
|
|
2112
|
-
private _validateSize;
|
|
2113
|
-
private _getCdnModifiers;
|
|
2114
|
-
private _getTypedCssValue;
|
|
2115
|
-
private _getUrlBase;
|
|
2116
|
-
private _proxyUrl;
|
|
2117
|
-
protected _getElSize(el: HTMLElement, k?: number, wOnly?: boolean): string | null;
|
|
2118
|
-
private _setupEventProxy;
|
|
2119
|
-
get img(): HTMLImageElement;
|
|
2120
|
-
get currentImg(): CurrentImg;
|
|
2121
|
-
get hasPreviewImage(): string | number | boolean | undefined;
|
|
2122
|
-
get bgSelector(): string | undefined;
|
|
2123
|
-
get breakpoints(): number[] | null;
|
|
2124
|
-
get hasFormatJPG(): boolean;
|
|
2125
|
-
renderBg(el: HTMLElement): void;
|
|
2126
|
-
getSrcset(): string;
|
|
2127
|
-
getSrc(): string | undefined;
|
|
2128
|
-
get srcUrlPreview(): string | undefined;
|
|
2129
|
-
renderBackground(): void;
|
|
2130
|
-
private _appendURL;
|
|
2131
|
-
private _setupConfigForImage;
|
|
2132
|
-
loaderImage({ src, srcset, elNode }: LoaderParams): Promise<HTMLImageElement>;
|
|
2133
|
-
renderImage(): Promise<void>;
|
|
2134
|
-
init(): void;
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
declare class Img extends ImgBase {
|
|
2138
|
-
connectedCallback(): void;
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
declare class ProgressBar extends LitBlock {
|
|
2142
|
-
value: number;
|
|
2143
|
-
visible: boolean;
|
|
2144
|
-
private _progressValue;
|
|
2145
|
-
private readonly fakeProgressLineRef;
|
|
2146
|
-
private readonly handleFakeProgressAnimation;
|
|
2147
|
-
protected firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
2148
|
-
protected updated(changedProperties: PropertyValues<this>): void;
|
|
2149
|
-
disconnectedCallback(): void;
|
|
2150
|
-
private normalizeProgressValue;
|
|
2151
|
-
private updateProgressValueStyle;
|
|
2286
|
+
protected shouldUpdate(changedProperties: PropertyValues<this>): boolean;
|
|
2152
2287
|
render(): lit_html.TemplateResult<1>;
|
|
2153
2288
|
}
|
|
2154
2289
|
|
|
2155
|
-
declare class ProgressBarCommon extends LitUploaderBlock {
|
|
2156
|
-
private _unobserveCollectionCb?;
|
|
2157
|
-
protected visible: boolean;
|
|
2158
|
-
protected value: number;
|
|
2159
|
-
constructor();
|
|
2160
|
-
initCallback(): void;
|
|
2161
|
-
protected updated(changedProperties: PropertyValues<this>): void;
|
|
2162
|
-
disconnectedCallback(): void;
|
|
2163
|
-
render(): lit_html.TemplateResult<1>;
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
|
-
type SelectOption = {
|
|
2167
|
-
text: string;
|
|
2168
|
-
value: string;
|
|
2169
|
-
};
|
|
2170
|
-
declare class Select extends LitBlock {
|
|
2171
|
-
value: string;
|
|
2172
|
-
disabled: boolean;
|
|
2173
|
-
options: SelectOption[];
|
|
2174
|
-
render(): lit_html.TemplateResult<1>;
|
|
2175
|
-
private _handleChange;
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
2290
|
declare class SimpleBtn extends LitUploaderBlock {
|
|
2179
2291
|
static styleAttrs: string[];
|
|
2180
2292
|
couldBeCtxOwner: boolean;
|
|
2181
2293
|
dropzone: boolean;
|
|
2182
|
-
private
|
|
2183
|
-
private readonly
|
|
2184
|
-
initCallback(): void;
|
|
2185
|
-
render(): lit_html.TemplateResult<1>;
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2188
|
-
type SourceTypeConfig = {
|
|
2189
|
-
type: string;
|
|
2190
|
-
activity?: ActivityType | null;
|
|
2191
|
-
textKey?: string;
|
|
2192
|
-
icon?: string;
|
|
2193
|
-
activate?: () => boolean;
|
|
2194
|
-
activityParams?: Record<string, unknown>;
|
|
2195
|
-
};
|
|
2196
|
-
declare class SourceBtn extends LitUploaderBlock {
|
|
2197
|
-
couldBeCtxOwner: boolean;
|
|
2198
|
-
private _registeredTypes;
|
|
2199
|
-
type?: string;
|
|
2200
|
-
private iconName;
|
|
2201
|
-
private srcTypeKey;
|
|
2202
|
-
initTypes(): void;
|
|
2203
|
-
initCallback(): void;
|
|
2204
|
-
registerType(typeConfig: SourceTypeConfig): void;
|
|
2205
|
-
getType(type: string): SourceTypeConfig | undefined;
|
|
2206
|
-
activate(): void;
|
|
2207
|
-
applyType(type: string): void;
|
|
2208
|
-
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
2209
|
-
render(): lit_html.TemplateResult<1>;
|
|
2210
|
-
}
|
|
2211
|
-
|
|
2212
|
-
declare class SourceList extends LitBlock {
|
|
2213
|
-
private _rawSourceList;
|
|
2214
|
-
private _cameraModes;
|
|
2215
|
-
private _resolvedSources;
|
|
2294
|
+
private _buttonTextKey;
|
|
2295
|
+
private readonly _handleClick;
|
|
2216
2296
|
initCallback(): void;
|
|
2217
|
-
protected updated(changedProperties: PropertyValues): void;
|
|
2218
|
-
private _updateSources;
|
|
2219
|
-
sources: string[];
|
|
2220
|
-
render(): lit_html.TemplateResult<1>;
|
|
2221
|
-
}
|
|
2222
|
-
|
|
2223
|
-
declare class Spinner extends LitBlock {
|
|
2224
|
-
render(): lit_html.TemplateResult<1>;
|
|
2225
|
-
}
|
|
2226
|
-
|
|
2227
|
-
declare class StartFrom extends LitActivityBlock {
|
|
2228
|
-
historyTracked: boolean;
|
|
2229
|
-
activityType: ActivityType;
|
|
2230
|
-
initCallback(): void;
|
|
2231
|
-
render(): lit_html.TemplateResult<1>;
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
declare class Thumb extends FileItemConfig {
|
|
2235
|
-
badgeIcon: string;
|
|
2236
|
-
uid: string;
|
|
2237
|
-
private thumbUrl;
|
|
2238
|
-
private renderedGridOnce;
|
|
2239
|
-
private thumbRect;
|
|
2240
|
-
private isIntersecting;
|
|
2241
|
-
private firstViewMode;
|
|
2242
|
-
private observer?;
|
|
2243
|
-
private pendingThumbUpdate?;
|
|
2244
|
-
private calculateThumbSize;
|
|
2245
|
-
private generateThumbnail;
|
|
2246
|
-
private debouncedGenerateThumb;
|
|
2247
|
-
private decodeImage;
|
|
2248
|
-
private cancelPendingThumbUpdate;
|
|
2249
|
-
private scheduleThumbUpdate;
|
|
2250
|
-
private requestThumbGeneration;
|
|
2251
|
-
protected firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
2252
|
-
protected updated(changedProperties: PropertyValues<this>): void;
|
|
2253
|
-
private _observerCallback;
|
|
2254
|
-
protected _reset(): void;
|
|
2255
|
-
private bindToEntry;
|
|
2256
|
-
initCallback(): void;
|
|
2257
|
-
connectedCallback(): void;
|
|
2258
|
-
disconnectedCallback(): void;
|
|
2259
|
-
render(): lit_html.TemplateResult<1>;
|
|
2260
|
-
}
|
|
2261
|
-
|
|
2262
|
-
type EventListenerMap = {
|
|
2263
|
-
[K in (typeof EventType)[keyof typeof EventType]]: (e: CustomEvent<EventPayload[K]>) => void;
|
|
2264
|
-
};
|
|
2265
|
-
declare class UploadCtxProvider extends LitUploaderBlock {
|
|
2266
|
-
static styleAttrs: string[];
|
|
2267
|
-
static EventType: Readonly<{
|
|
2268
|
-
readonly FILE_ADDED: "file-added";
|
|
2269
|
-
readonly FILE_REMOVED: "file-removed";
|
|
2270
|
-
readonly FILE_UPLOAD_START: "file-upload-start";
|
|
2271
|
-
readonly FILE_UPLOAD_PROGRESS: "file-upload-progress";
|
|
2272
|
-
readonly FILE_UPLOAD_SUCCESS: "file-upload-success";
|
|
2273
|
-
readonly FILE_UPLOAD_FAILED: "file-upload-failed";
|
|
2274
|
-
readonly FILE_URL_CHANGED: "file-url-changed";
|
|
2275
|
-
readonly MODAL_OPEN: "modal-open";
|
|
2276
|
-
readonly MODAL_CLOSE: "modal-close";
|
|
2277
|
-
readonly DONE_CLICK: "done-click";
|
|
2278
|
-
readonly UPLOAD_CLICK: "upload-click";
|
|
2279
|
-
readonly ACTIVITY_CHANGE: "activity-change";
|
|
2280
|
-
readonly COMMON_UPLOAD_START: "common-upload-start";
|
|
2281
|
-
readonly COMMON_UPLOAD_PROGRESS: "common-upload-progress";
|
|
2282
|
-
readonly COMMON_UPLOAD_SUCCESS: "common-upload-success";
|
|
2283
|
-
readonly COMMON_UPLOAD_FAILED: "common-upload-failed";
|
|
2284
|
-
readonly CHANGE: "change";
|
|
2285
|
-
readonly GROUP_CREATED: "group-created";
|
|
2286
|
-
}>;
|
|
2287
|
-
initCallback(): void;
|
|
2288
|
-
disconnectedCallback(): void;
|
|
2289
|
-
}
|
|
2290
|
-
interface UploadCtxProvider extends LitUploaderBlock {
|
|
2291
|
-
addEventListener<T extends keyof EventListenerMap>(type: T, listener: EventListenerMap[T], options?: boolean | AddEventListenerOptions): void;
|
|
2292
|
-
removeEventListener<T extends keyof EventListenerMap>(type: T, listener: EventListenerMap[T], options?: boolean | EventListenerOptions): void;
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
declare class UrlSource extends LitUploaderBlock {
|
|
2296
|
-
couldBeCtxOwner: boolean;
|
|
2297
|
-
activityType: ActivityType;
|
|
2298
|
-
private formState;
|
|
2299
|
-
initCallback(): void;
|
|
2300
|
-
private inputRef;
|
|
2301
|
-
private handleInput;
|
|
2302
|
-
private handleUpload;
|
|
2303
2297
|
render(): lit_html.TemplateResult<1>;
|
|
2304
2298
|
}
|
|
2305
2299
|
|
|
@@ -2325,6 +2319,18 @@ declare class LitSolutionBlock extends LitBlock {
|
|
|
2325
2319
|
render(): lit_html.TemplateResult<1>;
|
|
2326
2320
|
}
|
|
2327
2321
|
|
|
2322
|
+
declare class FileUploaderRegular extends LitSolutionBlock {
|
|
2323
|
+
attributesMeta: {
|
|
2324
|
+
headless?: boolean;
|
|
2325
|
+
'ctx-name': string;
|
|
2326
|
+
};
|
|
2327
|
+
static styleAttrs: string[];
|
|
2328
|
+
headless: boolean;
|
|
2329
|
+
constructor();
|
|
2330
|
+
initCallback(): void;
|
|
2331
|
+
render(): lit_html.TemplateResult<1>;
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2328
2334
|
declare class CloudImageEditor extends CloudImageEditorBlock {
|
|
2329
2335
|
static styleAttrs: string[];
|
|
2330
2336
|
constructor();
|
|
@@ -2332,25 +2338,29 @@ declare class CloudImageEditor extends CloudImageEditorBlock {
|
|
|
2332
2338
|
}
|
|
2333
2339
|
|
|
2334
2340
|
declare class FileUploaderInline extends LitSolutionBlock {
|
|
2341
|
+
propertiesMeta: {
|
|
2342
|
+
'ctx-name': string;
|
|
2343
|
+
};
|
|
2335
2344
|
static styleAttrs: string[];
|
|
2336
|
-
private
|
|
2345
|
+
private _couldCancel;
|
|
2337
2346
|
constructor();
|
|
2338
2347
|
private _handleCancel;
|
|
2339
|
-
get
|
|
2340
|
-
get
|
|
2348
|
+
private get _couldHistoryBack();
|
|
2349
|
+
private get _couldShowList();
|
|
2341
2350
|
private _getInitActivity;
|
|
2342
2351
|
initCallback(): void;
|
|
2343
2352
|
render(): lit_html.TemplateResult<1>;
|
|
2344
2353
|
}
|
|
2345
2354
|
|
|
2346
2355
|
declare class FileUploaderMinimal extends LitSolutionBlock {
|
|
2356
|
+
propertiesMeta: {
|
|
2357
|
+
'ctx-name': string;
|
|
2358
|
+
};
|
|
2347
2359
|
static styleAttrs: string[];
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
private handleModalOpen?;
|
|
2353
|
-
private handleModalClose?;
|
|
2360
|
+
private _singleUpload;
|
|
2361
|
+
private _isHiddenStartFrom;
|
|
2362
|
+
private _classUploadList;
|
|
2363
|
+
private _classStartFrom;
|
|
2354
2364
|
private _getInitActivity;
|
|
2355
2365
|
constructor();
|
|
2356
2366
|
private _handleModalOpen;
|
|
@@ -2360,15 +2370,4 @@ declare class FileUploaderMinimal extends LitSolutionBlock {
|
|
|
2360
2370
|
render(): lit_html.TemplateResult<1>;
|
|
2361
2371
|
}
|
|
2362
2372
|
|
|
2363
|
-
|
|
2364
|
-
static styleAttrs: string[];
|
|
2365
|
-
headless: boolean;
|
|
2366
|
-
constructor();
|
|
2367
|
-
initCallback(): void;
|
|
2368
|
-
render(): lit_html.TemplateResult<1>;
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
|
-
type KebabCase<T extends string> = T extends `${infer Head} ${infer Tail}` ? `${Lowercase<Head>}-${KebabCase<Tail>}` : Lowercase<T>;
|
|
2372
|
-
declare const toKebabCase: <T extends string>(str: T) => KebabCase<T>;
|
|
2373
|
-
|
|
2374
|
-
export { LitActivityBlock as ActivityBlock, ActivityHeader, type ApiAddFileCommonOptions, LitBlock as Block, BtnUi, CameraSource, CloudImageEditor, CloudImageEditorActivity, CloudImageEditorBlock, type CollectionValidators, Config, type ConfigAttributesType, type ConfigComplexType, type ConfigPlainType, type ConfigType, Copyright, CropFrame, DropArea, EditorAspectRatioButtonControl, EditorCropButtonControl, EditorFilterControl, EditorFreeformButtonControl, EditorImageCropper, EditorImageFader, EditorOperationControl, EditorScroller, EditorSlider, EditorToolbar, type EventMap, type EventPayload, EventType, ExternalSource, ExternalUploadSource, FileItem, FileUploaderInline, FileUploaderMinimal, FileUploaderRegular, type FileValidator, type FileValidatorDescriptor, type FileValidators, FormInput, type FuncCollectionValidator, type FuncFileValidator, type GroupFlag, Icon, type IconHrefResolver, Img, type KebabCase$1 as KebabCase, type KebabCaseKeys, LineLoaderUi, type LocaleDefinitionOverride, type LowerCase, type LowerCaseKeys, type MetadataCallback, Modal, ModalEvents, type ModalId, type OutputCollectionErrorType, type OutputCollectionState, type OutputCollectionStatus, type OutputCustomErrorType, type OutputError, type OutputErrorCollection, type OutputErrorFile, type OutputErrorTypePayload, type OutputFileEntry, type OutputFileErrorPayload, type OutputFileErrorType, type OutputFileStatus, PresenceToggle, ProgressBar, ProgressBarCommon, type SecureDeliveryProxyUrlResolver, type SecureUploadsSignatureAndExpire, type SecureUploadsSignatureResolver, Select, SimpleBtn, SliderUi, LitSolutionBlock as SolutionBlock, SourceBtn, SourceList, type SourceTypes, Spinner, StartFrom, Thumb, UploadCtxProvider, UploadList, UploadSource, LitUploaderBlock as UploaderBlock, UploaderPublicApi, UrlSource, defineComponents, defineLocale, toKebabCase };
|
|
2373
|
+
export { LitActivityBlock as ActivityBlock, ActivityHeader, type ApiAddFileCommonOptions, BaseComponent, LitBlock as Block, BtnUi, CameraSource, CloudImageEditor, CloudImageEditorActivity, CloudImageEditorBlock, type CollectionValidators, Config, type ConfigAttributesType, type ConfigComplexType, type ConfigPlainType, type ConfigType, Copyright, CropFrame, PubSub as Data, DropArea, EditorAspectRatioButtonControl, EditorCropButtonControl, EditorFilterControl, EditorFreeformButtonControl, EditorImageCropper, EditorImageFader, EditorOperationControl, EditorScroller, EditorSlider, EditorToolbar, type EventMap, type EventPayload, EventType, ExternalSource, ExternalUploadSource, FileItem, FileUploaderInline, FileUploaderMinimal, FileUploaderRegular, type FileValidator, type FileValidatorDescriptor, type FileValidators, FormInput, type FuncCollectionValidator, type FuncFileValidator, type GroupFlag, Icon, type IconHrefResolver, Img, type KebabCase$1 as KebabCase, type KebabCaseKeys, LineLoaderUi, type LocaleDefinitionOverride, type LowerCase, type LowerCaseKeys, type MetadataCallback, Modal, ModalEvents, type ModalId, type OutputCollectionErrorType, type OutputCollectionState, type OutputCollectionStatus, type OutputCustomErrorType, type OutputError, type OutputErrorCollection, type OutputErrorFile, type OutputErrorTypePayload, type OutputFileEntry, type OutputFileErrorPayload, type OutputFileErrorType, type OutputFileStatus, PresenceToggle, ProgressBar, ProgressBarCommon, type SecureDeliveryProxyUrlResolver, type SecureUploadsSignatureAndExpire, type SecureUploadsSignatureResolver, Select, SimpleBtn, SliderUi, LitSolutionBlock as SolutionBlock, SourceBtn, SourceList, type SourceTypes, Spinner, StartFrom, Thumb, UID, UploadCtxProvider, UploadList, UploadSource, LitUploaderBlock as UploaderBlock, UploaderPublicApi, UrlSource, defineComponents, defineLocale, toKebabCase };
|