@salla.sa/twilight-components 1.6.2 → 1.6.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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-button_27.cjs.entry.js +27879 -0
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +26 -0
- package/dist/cjs/salla-scopes.cjs.entry.js +9 -6
- package/dist/cjs/salla-select.cjs.entry.js +159 -0
- package/dist/cjs/twilight-components.cjs.js +1 -1
- package/dist/collection/assets/svg/caret-down.svg +0 -1
- package/dist/collection/assets/svg/images.svg +0 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/salla-datetime-picker/interfaces.js +4 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.css +13 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1374 -0
- package/dist/collection/components/salla-file-upload/interfaces.js +42 -0
- package/dist/collection/components/salla-file-upload/salla-file-upload.css +219 -0
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +1435 -0
- package/dist/collection/components/salla-gifting/gift-schema.js +4 -0
- package/dist/collection/components/salla-gifting/intefaces.js +4 -0
- package/dist/collection/components/salla-gifting/salla-gifting.css +20 -0
- package/dist/collection/components/salla-gifting/salla-gifting.js +564 -0
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +23 -13
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +46 -28
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.css +3 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +69 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty.css +0 -4
- package/dist/collection/components/salla-loyalty/salla-loyalty.js +29 -16
- package/dist/collection/components/salla-modal/salla-modal.css +6 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +37 -13
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +23 -8
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +87 -64
- package/dist/collection/components/salla-scopes/salla-scopes.js +11 -7
- package/dist/collection/components/salla-search/salla-search.js +1 -1
- package/dist/collection/components/salla-select/salla-select.css +86 -0
- package/dist/collection/components/salla-select/salla-select.js +610 -0
- package/dist/collection/components/salla-tel-input/interfaces.js +4 -0
- package/dist/collection/components/salla-tel-input/salla-tel-input.css +1 -2
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +32 -3
- package/dist/collection/components/salla-verify/salla-verify.js +1 -1
- package/dist/collection/global/app.js +15 -12
- package/dist/components/_commonjsHelpers.js +24 -0
- package/dist/{esm/salla-social-share.entry.js → components/anime.es.js} +1 -132
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +5 -0
- package/dist/components/salla-datetime-picker.d.ts +11 -0
- package/dist/components/salla-datetime-picker.js +9 -0
- package/dist/components/salla-datetime-picker2.js +2876 -0
- package/dist/components/salla-file-upload.d.ts +11 -0
- package/dist/components/salla-file-upload.js +9 -0
- package/dist/components/salla-file-upload2.js +14623 -0
- package/dist/components/salla-gifting.d.ts +11 -0
- package/dist/components/salla-gifting.js +499 -0
- package/dist/components/salla-localization-modal.js +31 -16
- package/dist/components/salla-login-modal.js +35 -19
- package/dist/components/salla-loyalty-prize-item.d.ts +11 -0
- package/dist/components/salla-loyalty-prize-item.js +42 -0
- package/dist/components/salla-loyalty.js +28 -17
- package/dist/components/salla-modal2.js +1 -1
- package/dist/components/salla-offer-modal.js +42 -12
- package/dist/components/salla-product-size-guide.js +21 -6
- package/dist/components/salla-rating-modal.js +47 -19
- package/dist/components/salla-scopes.js +10 -6
- package/dist/components/salla-search.js +1 -1
- package/dist/components/salla-select.d.ts +11 -0
- package/dist/components/salla-select.js +199 -0
- package/dist/components/salla-social-share.js +1 -1308
- package/dist/components/salla-swiper2.js +9 -9
- package/dist/components/salla-tel-input2.js +15 -18
- package/dist/components/salla-verify2.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/salla-button_27.entry.js +27849 -0
- package/dist/esm/salla-loyalty-prize-item.entry.js +22 -0
- package/dist/esm/salla-scopes.entry.js +9 -6
- package/dist/esm/salla-select.entry.js +155 -0
- package/dist/esm/twilight-components.js +1 -1
- package/dist/twilight-components/p-49125b6a.entry.js +4 -0
- package/dist/twilight-components/p-9a25753c.entry.js +4 -0
- package/dist/twilight-components/p-b7b9439d.entry.js +22 -0
- package/dist/twilight-components/p-df1eb1e5.entry.js +4 -0
- package/dist/twilight-components/twilight-components.esm.js +1 -1
- package/dist/types/components/salla-datetime-picker/interfaces.d.ts +8 -0
- package/dist/types/components/salla-datetime-picker/salla-datetime-picker.d.ts +250 -0
- package/dist/types/components/salla-file-upload/interfaces.d.ts +766 -0
- package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +267 -0
- package/dist/types/components/salla-gifting/gift-schema.d.ts +20 -0
- package/dist/types/components/salla-gifting/intefaces.d.ts +18 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +98 -0
- package/dist/types/components/salla-localization-modal/salla-localization-modal.d.ts +3 -2
- package/dist/types/components/salla-login-modal/salla-login-modal.d.ts +13 -3
- package/dist/types/components/salla-loyalty/salla-loyalty-prize-item.d.ts +8 -0
- package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +2 -0
- package/dist/types/components/salla-offer-modal/salla-offer-modal.d.ts +3 -1
- package/dist/types/components/salla-product-size-guide/salla-product-size-guide.d.ts +4 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +3 -2
- package/dist/types/components/salla-scopes/salla-scopes.d.ts +1 -0
- package/dist/types/components/salla-select/salla-select.d.ts +110 -0
- package/dist/types/components/salla-tel-input/interfaces.d.ts +4 -0
- package/dist/types/components/salla-tel-input/salla-tel-input.d.ts +3 -0
- package/dist/types/components.d.ts +1253 -10
- package/package.json +9 -3
- package/dist/cjs/Helper-8ae6a805.js +0 -28
- package/dist/cjs/arrow-right-3d137e4c.js +0 -13
- package/dist/cjs/cancel-ae668d91.js +0 -13
- package/dist/cjs/check-circle2-1aac98d1.js +0 -13
- package/dist/cjs/mail-2db058ee.js +0 -13
- package/dist/cjs/salla-button_10.cjs.entry.js +0 -2584
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +0 -93
- package/dist/cjs/salla-list-tile_2.cjs.entry.js +0 -80
- package/dist/cjs/salla-loyalty.cjs.entry.js +0 -229
- package/dist/cjs/salla-product-availability.cjs.entry.js +0 -128
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +0 -52
- package/dist/cjs/salla-quantity-input.cjs.entry.js +0 -101
- package/dist/cjs/salla-rating-modal.cjs.entry.js +0 -169
- package/dist/cjs/salla-rating-stars.cjs.entry.js +0 -83
- package/dist/cjs/salla-social-share.cjs.entry.js +0 -1447
- package/dist/cjs/salla-swiper.cjs.entry.js +0 -5023
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +0 -159
- package/dist/cjs/star2-8288e6e1.js +0 -13
- package/dist/esm/Helper-e1d414a5.js +0 -26
- package/dist/esm/arrow-right-1c3e04f2.js +0 -11
- package/dist/esm/cancel-41a92070.js +0 -11
- package/dist/esm/check-circle2-f6e5f685.js +0 -11
- package/dist/esm/mail-9d5204c6.js +0 -11
- package/dist/esm/salla-button_10.entry.js +0 -2571
- package/dist/esm/salla-infinite-scroll.entry.js +0 -89
- package/dist/esm/salla-list-tile_2.entry.js +0 -75
- package/dist/esm/salla-loyalty.entry.js +0 -225
- package/dist/esm/salla-product-availability.entry.js +0 -124
- package/dist/esm/salla-product-size-guide.entry.js +0 -48
- package/dist/esm/salla-quantity-input.entry.js +0 -97
- package/dist/esm/salla-rating-modal.entry.js +0 -165
- package/dist/esm/salla-rating-stars.entry.js +0 -79
- package/dist/esm/salla-swiper.entry.js +0 -5019
- package/dist/esm/salla-tab-content_3.entry.js +0 -153
- package/dist/esm/star2-b134fc74.js +0 -11
- package/dist/twilight-components/p-0d498694.entry.js +0 -4
- package/dist/twilight-components/p-14f0ff17.entry.js +0 -4
- package/dist/twilight-components/p-335abbbb.entry.js +0 -4
- package/dist/twilight-components/p-4cafb11b.entry.js +0 -4
- package/dist/twilight-components/p-5e63e308.entry.js +0 -4
- package/dist/twilight-components/p-5fb32395.entry.js +0 -4
- package/dist/twilight-components/p-648e74e5.entry.js +0 -4
- package/dist/twilight-components/p-6a3adf55.entry.js +0 -4
- package/dist/twilight-components/p-6da4bb74.entry.js +0 -4
- package/dist/twilight-components/p-897b2018.js +0 -4
- package/dist/twilight-components/p-93708e1e.js +0 -4
- package/dist/twilight-components/p-9d236cf4.entry.js +0 -4
- package/dist/twilight-components/p-9d2ca9c8.js +0 -4
- package/dist/twilight-components/p-af7d5660.js +0 -4
- package/dist/twilight-components/p-bdbd2386.entry.js +0 -4
- package/dist/twilight-components/p-cac3db69.entry.js +0 -4
- package/dist/twilight-components/p-d914a212.js +0 -4
- package/dist/twilight-components/p-dace8e6d.js +0 -4
- package/dist/twilight-components/p-f9253fda.entry.js +0 -4
|
@@ -0,0 +1,1435 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Prop, State, h, Method, Host, Event } from '@stencil/core';
|
|
5
|
+
import * as FilePond from 'filepond';
|
|
6
|
+
import FilePondPluginFileValidateSize from 'filepond-plugin-file-validate-size';
|
|
7
|
+
import FilePondPluginImageExifOrientation from 'filepond-plugin-image-exif-orientation';
|
|
8
|
+
import FilePondPluginImagePreview from 'filepond-plugin-image-preview';
|
|
9
|
+
import FilePondPluginImageEdit from 'filepond-plugin-image-edit';
|
|
10
|
+
export class SallaFileUpload {
|
|
11
|
+
constructor() {
|
|
12
|
+
/**
|
|
13
|
+
* Sets the required attribute to the output field
|
|
14
|
+
*/
|
|
15
|
+
this.required = false;
|
|
16
|
+
/**
|
|
17
|
+
* Sets the disabled attribute to the output field
|
|
18
|
+
*/
|
|
19
|
+
this.disabled = false;
|
|
20
|
+
/**
|
|
21
|
+
* Enable or disable drag n' drop
|
|
22
|
+
*/
|
|
23
|
+
this.allowDrop = true;
|
|
24
|
+
/**
|
|
25
|
+
* Enable or disable file browser
|
|
26
|
+
*/
|
|
27
|
+
this.allowBrowse = true;
|
|
28
|
+
/**
|
|
29
|
+
* Enable or disable pasting of files. Pasting files is not supported on all browesrs.
|
|
30
|
+
*/
|
|
31
|
+
this.allowPaste = true;
|
|
32
|
+
/**
|
|
33
|
+
* Enable or disable adding multiple files
|
|
34
|
+
*/
|
|
35
|
+
this.allowMultiple = false;
|
|
36
|
+
/**
|
|
37
|
+
* Allow drop to replace a file, only works when allowMultiple is false
|
|
38
|
+
*/
|
|
39
|
+
this.allowReplace = true;
|
|
40
|
+
/**
|
|
41
|
+
* Enable or disable the revert processing button
|
|
42
|
+
*/
|
|
43
|
+
this.allowRevert = true;
|
|
44
|
+
/**
|
|
45
|
+
* When set to false the remove button is hidden and disabled
|
|
46
|
+
*/
|
|
47
|
+
this.allowRemove = true;
|
|
48
|
+
/**
|
|
49
|
+
* Enable or disable the process button
|
|
50
|
+
*/
|
|
51
|
+
this.allowProcess = true;
|
|
52
|
+
/**
|
|
53
|
+
* Allow users to reorder files with drag and drop interaction.
|
|
54
|
+
* Note that this only works in single column mode.
|
|
55
|
+
* It also only works on browsers that support pointer events.
|
|
56
|
+
*/
|
|
57
|
+
this.allowReorder = false;
|
|
58
|
+
/**
|
|
59
|
+
* Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post.
|
|
60
|
+
* This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer),
|
|
61
|
+
* this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
|
|
62
|
+
*/
|
|
63
|
+
this.storeAsFile = false;
|
|
64
|
+
/**
|
|
65
|
+
* Set to true to require the file to be successfully reverted before continuing.
|
|
66
|
+
*/
|
|
67
|
+
this.forceRevert = false;
|
|
68
|
+
/**
|
|
69
|
+
* The maximum number of files that the pond can handle
|
|
70
|
+
*/
|
|
71
|
+
this.maxFilesCount = null;
|
|
72
|
+
/**
|
|
73
|
+
* The maxmimum number of files that can be uploaded in parallel
|
|
74
|
+
*/
|
|
75
|
+
this.maxParallelUploads = 2;
|
|
76
|
+
/**
|
|
77
|
+
* Set to true to enable custom validity messages.
|
|
78
|
+
* FilePond will throw an error when a parent form is submitted and it contains invalid files.
|
|
79
|
+
*/
|
|
80
|
+
this.checkValidity = false;
|
|
81
|
+
/**
|
|
82
|
+
* Set to 'after' to add files to end of list (when dropped at the top of the list or added using browse or paste),
|
|
83
|
+
* set to 'before' to add files at start of list.
|
|
84
|
+
* Set to a compare function to automatically sort items when added
|
|
85
|
+
*/
|
|
86
|
+
this.itemInsertLocation = 'after';
|
|
87
|
+
/**
|
|
88
|
+
* The interval to use before showing each item being added to the list
|
|
89
|
+
*/
|
|
90
|
+
this.itemInsertInterval = 75;
|
|
91
|
+
/**
|
|
92
|
+
* Show credits at the bottom of the upload element.
|
|
93
|
+
* Structure is like [{label,url}]
|
|
94
|
+
*/
|
|
95
|
+
this.credits = false;
|
|
96
|
+
/// DRAG and DROP Props
|
|
97
|
+
/**
|
|
98
|
+
* FilePond will catch all files dropped on the webpage
|
|
99
|
+
*/
|
|
100
|
+
this.dropOnPage = false;
|
|
101
|
+
/**
|
|
102
|
+
* Require drop on the FilePond element itself to catch the file.
|
|
103
|
+
*/
|
|
104
|
+
this.dropOnElement = true;
|
|
105
|
+
/**
|
|
106
|
+
* When enabled, files are validated before they are dropped. A file is not added when it's invalid.
|
|
107
|
+
*/
|
|
108
|
+
this.dropValidation = false;
|
|
109
|
+
/**
|
|
110
|
+
* Ignored file names when handling dropped directories. Dropping directories is not supported on all browsers.
|
|
111
|
+
*/
|
|
112
|
+
this.ignoredFiles = ['.ds_store', 'thumbs.db', 'desktop.ini'];
|
|
113
|
+
/// SERVER Configuration props
|
|
114
|
+
/**
|
|
115
|
+
* A server configuration object describing how FilePond should interact with the server.
|
|
116
|
+
*/
|
|
117
|
+
this.serverConfig = null;
|
|
118
|
+
/**
|
|
119
|
+
* Immediately upload new files to the server
|
|
120
|
+
*/
|
|
121
|
+
this.instantUpload = false;
|
|
122
|
+
/**
|
|
123
|
+
* Enable chunked uploads, when enabled will automatically cut up files in chunkSize chunks before upload.
|
|
124
|
+
*/
|
|
125
|
+
this.chunkUploads = false;
|
|
126
|
+
/**
|
|
127
|
+
* Force chunks even for files smaller than the set chunkSize
|
|
128
|
+
*/
|
|
129
|
+
this.chunkForce = false;
|
|
130
|
+
/**
|
|
131
|
+
* The size of a chunk in bytes
|
|
132
|
+
*/
|
|
133
|
+
this.chunkSize = 5000000;
|
|
134
|
+
/**
|
|
135
|
+
* Amount of times, and delayes, between retried uploading of a chunk
|
|
136
|
+
*/
|
|
137
|
+
this.chunkRetryDelays = [500, 1000, 3000];
|
|
138
|
+
/// Labels Props
|
|
139
|
+
/**
|
|
140
|
+
* The decimal separator used to render numbers. By default this is determined automatically.
|
|
141
|
+
*/
|
|
142
|
+
this.labelDecimalSeparator = undefined;
|
|
143
|
+
/**
|
|
144
|
+
* The thousdands separator used to render numbers. By default this is determined automatically.
|
|
145
|
+
*/
|
|
146
|
+
this.labelThousandsSeparator = undefined;
|
|
147
|
+
/**
|
|
148
|
+
* Default label shown to indicate this is a drop area.
|
|
149
|
+
* FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
|
|
150
|
+
*/
|
|
151
|
+
this.labelIdle = `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`;
|
|
152
|
+
/**
|
|
153
|
+
* Label shown when the field contains invalid files and is validated by the parent form.
|
|
154
|
+
*/
|
|
155
|
+
this.labelInvalidField = salla.lang.get("common.uploader.invalid_field");
|
|
156
|
+
/**
|
|
157
|
+
* Label used while waiting for file size information.
|
|
158
|
+
*/
|
|
159
|
+
this.labelFileWaitingForSize = salla.lang.get('common.uploader.waiting_file_info');
|
|
160
|
+
/**
|
|
161
|
+
* Label used when no file size information was received
|
|
162
|
+
*/
|
|
163
|
+
this.labelFileSizeNotAvailable = salla.lang.get('common.uploader.size_not_available');
|
|
164
|
+
/**
|
|
165
|
+
* Label used while loading a file
|
|
166
|
+
*/
|
|
167
|
+
this.labelFileLoading = salla.lang.get('common.elements.loading');
|
|
168
|
+
/**
|
|
169
|
+
* Label used when file load failed
|
|
170
|
+
*/
|
|
171
|
+
this.labelFileLoadError = salla.lang.get('common.uploader.failed_to_load');
|
|
172
|
+
/**
|
|
173
|
+
* Label used when uploading a file
|
|
174
|
+
*/
|
|
175
|
+
this.labelFileProcessing = salla.lang.get('common.uploader.uploading');
|
|
176
|
+
/**
|
|
177
|
+
* Label used when file upload has completed
|
|
178
|
+
*/
|
|
179
|
+
this.labelFileProcessingComplete = salla.lang.get('common.uploader.upload_completed');
|
|
180
|
+
/**
|
|
181
|
+
* Label used when upload was cancelled
|
|
182
|
+
*/
|
|
183
|
+
this.labelFileProcessingAborted = salla.lang.get('common.uploader.upload_cancelled');
|
|
184
|
+
/**
|
|
185
|
+
* Label used when something went wrong during file upload
|
|
186
|
+
*/
|
|
187
|
+
this.labelFileProcessingError = salla.lang.get('common.uploader.error_uploading');
|
|
188
|
+
/**
|
|
189
|
+
* Label used when something went wrong during reverting the file upload
|
|
190
|
+
*/
|
|
191
|
+
this.labelFileProcessingRevertError = salla.lang.get('common.uploader.error_reverting');
|
|
192
|
+
/**
|
|
193
|
+
* Label used to indicate something went wrong when removing the file
|
|
194
|
+
*/
|
|
195
|
+
this.labelFileRemoveError = salla.lang.get('common.uploader.error_removing');
|
|
196
|
+
/**
|
|
197
|
+
* Label used to indicate to the user that an action can be cancelled.
|
|
198
|
+
*/
|
|
199
|
+
this.labelTapToCancel = salla.lang.get("common.elements.cancel");
|
|
200
|
+
/**
|
|
201
|
+
* Label used to indicate to the user that an action can be retried.
|
|
202
|
+
*/
|
|
203
|
+
this.labelTapToRetry = salla.lang.get("common.elements.retry");
|
|
204
|
+
/**
|
|
205
|
+
* Label used to indicate to the user that an action can be undone.
|
|
206
|
+
*/
|
|
207
|
+
this.labelTapToUndo = salla.lang.get("common.uploader.revert");
|
|
208
|
+
/**
|
|
209
|
+
* Label used for remove button
|
|
210
|
+
*/
|
|
211
|
+
this.labelButtonRemoveItem = salla.lang.get("common.elements.remove");
|
|
212
|
+
/**
|
|
213
|
+
* Label used for abort load button
|
|
214
|
+
*/
|
|
215
|
+
this.labelButtonAbortItemLoad = salla.lang.get("common.elements.abort");
|
|
216
|
+
/**
|
|
217
|
+
* Label used for retry load button
|
|
218
|
+
*/
|
|
219
|
+
this.labelButtonRetryItemLoad = salla.lang.get("common.elements.retry");
|
|
220
|
+
/**
|
|
221
|
+
* Label used for abort upload button
|
|
222
|
+
*/
|
|
223
|
+
this.labelButtonAbortItemProcessing = salla.lang.get("common.uploader.abort_upload");
|
|
224
|
+
/**
|
|
225
|
+
* Label used for undo upload button
|
|
226
|
+
*/
|
|
227
|
+
this.labelButtonUndoItemProcessing = salla.lang.get("common.elements.undo");
|
|
228
|
+
/**
|
|
229
|
+
* Label used for retry upload button
|
|
230
|
+
*/
|
|
231
|
+
this.labelButtonRetryItemProcessing = `${salla.lang.get("common.elements.retry")} ${salla.lang.get("common.uploader.upload")}`;
|
|
232
|
+
/**
|
|
233
|
+
* Label used for upload button
|
|
234
|
+
*/
|
|
235
|
+
this.labelButtonProcessItem = salla.lang.get("common.uploader.upload");
|
|
236
|
+
/// SVG Icons
|
|
237
|
+
/**
|
|
238
|
+
* The icon used for remove actions
|
|
239
|
+
*/
|
|
240
|
+
this.iconRemove = '<svg>...</svg>';
|
|
241
|
+
/**
|
|
242
|
+
* The icon used for process actions
|
|
243
|
+
*/
|
|
244
|
+
this.iconProcess = '<svg>...</svg>';
|
|
245
|
+
/**
|
|
246
|
+
* The icon used for retry actions
|
|
247
|
+
*/
|
|
248
|
+
this.iconRetry = '<svg>...</svg>';
|
|
249
|
+
/**
|
|
250
|
+
* The icon used for undo actions
|
|
251
|
+
*/
|
|
252
|
+
this.iconUndo = '<svg>...</svg>';
|
|
253
|
+
/**
|
|
254
|
+
* The array of file references
|
|
255
|
+
*/
|
|
256
|
+
this.files = [];
|
|
257
|
+
}
|
|
258
|
+
;
|
|
259
|
+
/**
|
|
260
|
+
* Append intial file
|
|
261
|
+
*/
|
|
262
|
+
async appendFile(file) {
|
|
263
|
+
return this.pond.files = [file];
|
|
264
|
+
}
|
|
265
|
+
/// Hooks
|
|
266
|
+
/// Styles
|
|
267
|
+
componentDidLoad() {
|
|
268
|
+
this.pond = this.intiFilePond();
|
|
269
|
+
}
|
|
270
|
+
intiFilePond() {
|
|
271
|
+
FilePond.registerPlugin(FilePondPluginImagePreview, FilePondPluginImageExifOrientation, FilePondPluginFileValidateSize, FilePondPluginImageEdit);
|
|
272
|
+
return FilePond.create(document.querySelector('.filepond'), {
|
|
273
|
+
files: this.files,
|
|
274
|
+
required: this.required,
|
|
275
|
+
disabled: this.disabled,
|
|
276
|
+
allowDrop: this.allowDrop,
|
|
277
|
+
allowBrowse: this.allowBrowse,
|
|
278
|
+
allowPaste: this.allowPaste,
|
|
279
|
+
allowMultiple: this.allowMultiple,
|
|
280
|
+
allowReplace: this.allowReplace,
|
|
281
|
+
allowRevert: this.allowRevert,
|
|
282
|
+
allowProcess: this.allowProcess,
|
|
283
|
+
allowReorder: this.allowReorder,
|
|
284
|
+
storeAsFile: this.storeAsFile,
|
|
285
|
+
forceRevert: this.forceRevert,
|
|
286
|
+
maxFiles: this.maxFilesCount,
|
|
287
|
+
maxParallelUploads: this.maxParallelUploads,
|
|
288
|
+
checkValidity: this.checkValidity,
|
|
289
|
+
itemInsertLocation: this.itemInsertLocation,
|
|
290
|
+
itemInsertInterval: this.itemInsertInterval,
|
|
291
|
+
credits: this.credits,
|
|
292
|
+
dropOnPage: this.dropOnPage,
|
|
293
|
+
dropOnElement: this.dropOnElement,
|
|
294
|
+
dropValidation: this.dropValidation,
|
|
295
|
+
ignoredFiles: this.ignoredFiles,
|
|
296
|
+
server: this.serverConfig,
|
|
297
|
+
instantUpload: this.instantUpload,
|
|
298
|
+
chunkUploads: this.chunkUploads,
|
|
299
|
+
chunkForce: this.chunkForce,
|
|
300
|
+
chunkSize: this.chunkSize,
|
|
301
|
+
chunkRetryDelays: this.chunkRetryDelays,
|
|
302
|
+
labelDecimalSeparator: this.labelDecimalSeparator,
|
|
303
|
+
labelThousandsSeparator: this.labelThousandsSeparator,
|
|
304
|
+
labelIdle: this.labelIdle,
|
|
305
|
+
labelInvalidField: this.labelInvalidField,
|
|
306
|
+
labelFileWaitingForSize: this.labelFileWaitingForSize,
|
|
307
|
+
beforeRemoveFile: (file_deleted) => new Promise((resolve) => {
|
|
308
|
+
this.remove.emit(file_deleted);
|
|
309
|
+
resolve(true);
|
|
310
|
+
}),
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
render() {
|
|
314
|
+
return (h(Host, { lass: "s-file-upload" },
|
|
315
|
+
h("input", { type: "file", class: "s-file-upload-wrapper filepond", name: "filepond" })));
|
|
316
|
+
}
|
|
317
|
+
static get is() { return "salla-file-upload"; }
|
|
318
|
+
static get originalStyleUrls() { return {
|
|
319
|
+
"$": ["salla-file-upload.scss"]
|
|
320
|
+
}; }
|
|
321
|
+
static get styleUrls() { return {
|
|
322
|
+
"$": ["salla-file-upload.css"]
|
|
323
|
+
}; }
|
|
324
|
+
static get properties() { return {
|
|
325
|
+
"required": {
|
|
326
|
+
"type": "boolean",
|
|
327
|
+
"mutable": false,
|
|
328
|
+
"complexType": {
|
|
329
|
+
"original": "boolean",
|
|
330
|
+
"resolved": "boolean",
|
|
331
|
+
"references": {}
|
|
332
|
+
},
|
|
333
|
+
"required": false,
|
|
334
|
+
"optional": false,
|
|
335
|
+
"docs": {
|
|
336
|
+
"tags": [],
|
|
337
|
+
"text": "Sets the required attribute to the output field"
|
|
338
|
+
},
|
|
339
|
+
"attribute": "required",
|
|
340
|
+
"reflect": false,
|
|
341
|
+
"defaultValue": "false"
|
|
342
|
+
},
|
|
343
|
+
"disabled": {
|
|
344
|
+
"type": "boolean",
|
|
345
|
+
"mutable": false,
|
|
346
|
+
"complexType": {
|
|
347
|
+
"original": "boolean",
|
|
348
|
+
"resolved": "boolean",
|
|
349
|
+
"references": {}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": false,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": "Sets the disabled attribute to the output field"
|
|
356
|
+
},
|
|
357
|
+
"attribute": "disabled",
|
|
358
|
+
"reflect": false,
|
|
359
|
+
"defaultValue": "false"
|
|
360
|
+
},
|
|
361
|
+
"allowDrop": {
|
|
362
|
+
"type": "boolean",
|
|
363
|
+
"mutable": false,
|
|
364
|
+
"complexType": {
|
|
365
|
+
"original": "boolean",
|
|
366
|
+
"resolved": "boolean",
|
|
367
|
+
"references": {}
|
|
368
|
+
},
|
|
369
|
+
"required": false,
|
|
370
|
+
"optional": false,
|
|
371
|
+
"docs": {
|
|
372
|
+
"tags": [],
|
|
373
|
+
"text": "Enable or disable drag n' drop"
|
|
374
|
+
},
|
|
375
|
+
"attribute": "allow-drop",
|
|
376
|
+
"reflect": false,
|
|
377
|
+
"defaultValue": "true"
|
|
378
|
+
},
|
|
379
|
+
"allowBrowse": {
|
|
380
|
+
"type": "boolean",
|
|
381
|
+
"mutable": false,
|
|
382
|
+
"complexType": {
|
|
383
|
+
"original": "boolean",
|
|
384
|
+
"resolved": "boolean",
|
|
385
|
+
"references": {}
|
|
386
|
+
},
|
|
387
|
+
"required": false,
|
|
388
|
+
"optional": false,
|
|
389
|
+
"docs": {
|
|
390
|
+
"tags": [],
|
|
391
|
+
"text": "Enable or disable file browser"
|
|
392
|
+
},
|
|
393
|
+
"attribute": "allow-browse",
|
|
394
|
+
"reflect": false,
|
|
395
|
+
"defaultValue": "true"
|
|
396
|
+
},
|
|
397
|
+
"allowPaste": {
|
|
398
|
+
"type": "boolean",
|
|
399
|
+
"mutable": false,
|
|
400
|
+
"complexType": {
|
|
401
|
+
"original": "boolean",
|
|
402
|
+
"resolved": "boolean",
|
|
403
|
+
"references": {}
|
|
404
|
+
},
|
|
405
|
+
"required": false,
|
|
406
|
+
"optional": false,
|
|
407
|
+
"docs": {
|
|
408
|
+
"tags": [],
|
|
409
|
+
"text": "Enable or disable pasting of files. Pasting files is not supported on all browesrs."
|
|
410
|
+
},
|
|
411
|
+
"attribute": "allow-paste",
|
|
412
|
+
"reflect": false,
|
|
413
|
+
"defaultValue": "true"
|
|
414
|
+
},
|
|
415
|
+
"allowMultiple": {
|
|
416
|
+
"type": "boolean",
|
|
417
|
+
"mutable": false,
|
|
418
|
+
"complexType": {
|
|
419
|
+
"original": "boolean",
|
|
420
|
+
"resolved": "boolean",
|
|
421
|
+
"references": {}
|
|
422
|
+
},
|
|
423
|
+
"required": false,
|
|
424
|
+
"optional": false,
|
|
425
|
+
"docs": {
|
|
426
|
+
"tags": [],
|
|
427
|
+
"text": "Enable or disable adding multiple files"
|
|
428
|
+
},
|
|
429
|
+
"attribute": "allow-multiple",
|
|
430
|
+
"reflect": false,
|
|
431
|
+
"defaultValue": "false"
|
|
432
|
+
},
|
|
433
|
+
"allowReplace": {
|
|
434
|
+
"type": "boolean",
|
|
435
|
+
"mutable": false,
|
|
436
|
+
"complexType": {
|
|
437
|
+
"original": "boolean",
|
|
438
|
+
"resolved": "boolean",
|
|
439
|
+
"references": {}
|
|
440
|
+
},
|
|
441
|
+
"required": false,
|
|
442
|
+
"optional": false,
|
|
443
|
+
"docs": {
|
|
444
|
+
"tags": [],
|
|
445
|
+
"text": "Allow drop to replace a file, only works when allowMultiple is false"
|
|
446
|
+
},
|
|
447
|
+
"attribute": "allow-replace",
|
|
448
|
+
"reflect": false,
|
|
449
|
+
"defaultValue": "true"
|
|
450
|
+
},
|
|
451
|
+
"allowRevert": {
|
|
452
|
+
"type": "boolean",
|
|
453
|
+
"mutable": false,
|
|
454
|
+
"complexType": {
|
|
455
|
+
"original": "boolean",
|
|
456
|
+
"resolved": "boolean",
|
|
457
|
+
"references": {}
|
|
458
|
+
},
|
|
459
|
+
"required": false,
|
|
460
|
+
"optional": false,
|
|
461
|
+
"docs": {
|
|
462
|
+
"tags": [],
|
|
463
|
+
"text": "Enable or disable the revert processing button"
|
|
464
|
+
},
|
|
465
|
+
"attribute": "allow-revert",
|
|
466
|
+
"reflect": false,
|
|
467
|
+
"defaultValue": "true"
|
|
468
|
+
},
|
|
469
|
+
"allowRemove": {
|
|
470
|
+
"type": "boolean",
|
|
471
|
+
"mutable": false,
|
|
472
|
+
"complexType": {
|
|
473
|
+
"original": "boolean",
|
|
474
|
+
"resolved": "boolean",
|
|
475
|
+
"references": {}
|
|
476
|
+
},
|
|
477
|
+
"required": false,
|
|
478
|
+
"optional": false,
|
|
479
|
+
"docs": {
|
|
480
|
+
"tags": [],
|
|
481
|
+
"text": "When set to false the remove button is hidden and disabled"
|
|
482
|
+
},
|
|
483
|
+
"attribute": "allow-remove",
|
|
484
|
+
"reflect": false,
|
|
485
|
+
"defaultValue": "true"
|
|
486
|
+
},
|
|
487
|
+
"allowProcess": {
|
|
488
|
+
"type": "boolean",
|
|
489
|
+
"mutable": false,
|
|
490
|
+
"complexType": {
|
|
491
|
+
"original": "boolean",
|
|
492
|
+
"resolved": "boolean",
|
|
493
|
+
"references": {}
|
|
494
|
+
},
|
|
495
|
+
"required": false,
|
|
496
|
+
"optional": false,
|
|
497
|
+
"docs": {
|
|
498
|
+
"tags": [],
|
|
499
|
+
"text": "Enable or disable the process button"
|
|
500
|
+
},
|
|
501
|
+
"attribute": "allow-process",
|
|
502
|
+
"reflect": false,
|
|
503
|
+
"defaultValue": "true"
|
|
504
|
+
},
|
|
505
|
+
"allowReorder": {
|
|
506
|
+
"type": "boolean",
|
|
507
|
+
"mutable": false,
|
|
508
|
+
"complexType": {
|
|
509
|
+
"original": "boolean",
|
|
510
|
+
"resolved": "boolean",
|
|
511
|
+
"references": {}
|
|
512
|
+
},
|
|
513
|
+
"required": false,
|
|
514
|
+
"optional": false,
|
|
515
|
+
"docs": {
|
|
516
|
+
"tags": [],
|
|
517
|
+
"text": "Allow users to reorder files with drag and drop interaction. \nNote that this only works in single column mode. \nIt also only works on browsers that support pointer events."
|
|
518
|
+
},
|
|
519
|
+
"attribute": "allow-reorder",
|
|
520
|
+
"reflect": false,
|
|
521
|
+
"defaultValue": "false"
|
|
522
|
+
},
|
|
523
|
+
"storeAsFile": {
|
|
524
|
+
"type": "boolean",
|
|
525
|
+
"mutable": false,
|
|
526
|
+
"complexType": {
|
|
527
|
+
"original": "boolean",
|
|
528
|
+
"resolved": "boolean",
|
|
529
|
+
"references": {}
|
|
530
|
+
},
|
|
531
|
+
"required": false,
|
|
532
|
+
"optional": false,
|
|
533
|
+
"docs": {
|
|
534
|
+
"tags": [],
|
|
535
|
+
"text": "Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post. \nThis only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer), \nthis is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher."
|
|
536
|
+
},
|
|
537
|
+
"attribute": "store-as-file",
|
|
538
|
+
"reflect": false,
|
|
539
|
+
"defaultValue": "false"
|
|
540
|
+
},
|
|
541
|
+
"forceRevert": {
|
|
542
|
+
"type": "boolean",
|
|
543
|
+
"mutable": false,
|
|
544
|
+
"complexType": {
|
|
545
|
+
"original": "boolean",
|
|
546
|
+
"resolved": "boolean",
|
|
547
|
+
"references": {}
|
|
548
|
+
},
|
|
549
|
+
"required": false,
|
|
550
|
+
"optional": false,
|
|
551
|
+
"docs": {
|
|
552
|
+
"tags": [],
|
|
553
|
+
"text": "Set to true to require the file to be successfully reverted before continuing."
|
|
554
|
+
},
|
|
555
|
+
"attribute": "force-revert",
|
|
556
|
+
"reflect": false,
|
|
557
|
+
"defaultValue": "false"
|
|
558
|
+
},
|
|
559
|
+
"maxFilesCount": {
|
|
560
|
+
"type": "number",
|
|
561
|
+
"mutable": false,
|
|
562
|
+
"complexType": {
|
|
563
|
+
"original": "number",
|
|
564
|
+
"resolved": "number",
|
|
565
|
+
"references": {}
|
|
566
|
+
},
|
|
567
|
+
"required": false,
|
|
568
|
+
"optional": false,
|
|
569
|
+
"docs": {
|
|
570
|
+
"tags": [],
|
|
571
|
+
"text": "The maximum number of files that the pond can handle"
|
|
572
|
+
},
|
|
573
|
+
"attribute": "max-files-count",
|
|
574
|
+
"reflect": false,
|
|
575
|
+
"defaultValue": "null"
|
|
576
|
+
},
|
|
577
|
+
"maxParallelUploads": {
|
|
578
|
+
"type": "number",
|
|
579
|
+
"mutable": false,
|
|
580
|
+
"complexType": {
|
|
581
|
+
"original": "number",
|
|
582
|
+
"resolved": "number",
|
|
583
|
+
"references": {}
|
|
584
|
+
},
|
|
585
|
+
"required": false,
|
|
586
|
+
"optional": false,
|
|
587
|
+
"docs": {
|
|
588
|
+
"tags": [],
|
|
589
|
+
"text": "The maxmimum number of files that can be uploaded in parallel"
|
|
590
|
+
},
|
|
591
|
+
"attribute": "max-parallel-uploads",
|
|
592
|
+
"reflect": false,
|
|
593
|
+
"defaultValue": "2"
|
|
594
|
+
},
|
|
595
|
+
"checkValidity": {
|
|
596
|
+
"type": "boolean",
|
|
597
|
+
"mutable": false,
|
|
598
|
+
"complexType": {
|
|
599
|
+
"original": "boolean",
|
|
600
|
+
"resolved": "boolean",
|
|
601
|
+
"references": {}
|
|
602
|
+
},
|
|
603
|
+
"required": false,
|
|
604
|
+
"optional": false,
|
|
605
|
+
"docs": {
|
|
606
|
+
"tags": [],
|
|
607
|
+
"text": "Set to true to enable custom validity messages. \nFilePond will throw an error when a parent form is submitted and it contains invalid files."
|
|
608
|
+
},
|
|
609
|
+
"attribute": "check-validity",
|
|
610
|
+
"reflect": false,
|
|
611
|
+
"defaultValue": "false"
|
|
612
|
+
},
|
|
613
|
+
"itemInsertLocation": {
|
|
614
|
+
"type": "string",
|
|
615
|
+
"mutable": false,
|
|
616
|
+
"complexType": {
|
|
617
|
+
"original": "'before' | 'after' | ((a: FilePondFile, b: FilePondFile) => number)",
|
|
618
|
+
"resolved": "\"after\" | \"before\" | ((a: FilePondFile, b: FilePondFile) => number)",
|
|
619
|
+
"references": {
|
|
620
|
+
"FilePondFile": {
|
|
621
|
+
"location": "import",
|
|
622
|
+
"path": "./interfaces"
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
"required": false,
|
|
627
|
+
"optional": false,
|
|
628
|
+
"docs": {
|
|
629
|
+
"tags": [],
|
|
630
|
+
"text": "Set to 'after' to add files to end of list (when dropped at the top of the list or added using browse or paste), \nset to 'before' to add files at start of list. \nSet to a compare function to automatically sort items when added"
|
|
631
|
+
},
|
|
632
|
+
"attribute": "item-insert-location",
|
|
633
|
+
"reflect": false,
|
|
634
|
+
"defaultValue": "'after'"
|
|
635
|
+
},
|
|
636
|
+
"itemInsertInterval": {
|
|
637
|
+
"type": "number",
|
|
638
|
+
"mutable": false,
|
|
639
|
+
"complexType": {
|
|
640
|
+
"original": "number",
|
|
641
|
+
"resolved": "number",
|
|
642
|
+
"references": {}
|
|
643
|
+
},
|
|
644
|
+
"required": false,
|
|
645
|
+
"optional": false,
|
|
646
|
+
"docs": {
|
|
647
|
+
"tags": [],
|
|
648
|
+
"text": "The interval to use before showing each item being added to the list"
|
|
649
|
+
},
|
|
650
|
+
"attribute": "item-insert-interval",
|
|
651
|
+
"reflect": false,
|
|
652
|
+
"defaultValue": "75"
|
|
653
|
+
},
|
|
654
|
+
"credits": {
|
|
655
|
+
"type": "boolean",
|
|
656
|
+
"mutable": false,
|
|
657
|
+
"complexType": {
|
|
658
|
+
"original": "false",
|
|
659
|
+
"resolved": "boolean",
|
|
660
|
+
"references": {}
|
|
661
|
+
},
|
|
662
|
+
"required": false,
|
|
663
|
+
"optional": true,
|
|
664
|
+
"docs": {
|
|
665
|
+
"tags": [],
|
|
666
|
+
"text": "Show credits at the bottom of the upload element.\nStructure is like [{label,url}]"
|
|
667
|
+
},
|
|
668
|
+
"attribute": "credits",
|
|
669
|
+
"reflect": false,
|
|
670
|
+
"defaultValue": "false"
|
|
671
|
+
},
|
|
672
|
+
"dropOnPage": {
|
|
673
|
+
"type": "boolean",
|
|
674
|
+
"mutable": false,
|
|
675
|
+
"complexType": {
|
|
676
|
+
"original": "boolean",
|
|
677
|
+
"resolved": "boolean",
|
|
678
|
+
"references": {}
|
|
679
|
+
},
|
|
680
|
+
"required": false,
|
|
681
|
+
"optional": false,
|
|
682
|
+
"docs": {
|
|
683
|
+
"tags": [],
|
|
684
|
+
"text": "FilePond will catch all files dropped on the webpage"
|
|
685
|
+
},
|
|
686
|
+
"attribute": "drop-on-page",
|
|
687
|
+
"reflect": false,
|
|
688
|
+
"defaultValue": "false"
|
|
689
|
+
},
|
|
690
|
+
"dropOnElement": {
|
|
691
|
+
"type": "boolean",
|
|
692
|
+
"mutable": false,
|
|
693
|
+
"complexType": {
|
|
694
|
+
"original": "boolean",
|
|
695
|
+
"resolved": "boolean",
|
|
696
|
+
"references": {}
|
|
697
|
+
},
|
|
698
|
+
"required": false,
|
|
699
|
+
"optional": false,
|
|
700
|
+
"docs": {
|
|
701
|
+
"tags": [],
|
|
702
|
+
"text": "Require drop on the FilePond element itself to catch the file."
|
|
703
|
+
},
|
|
704
|
+
"attribute": "drop-on-element",
|
|
705
|
+
"reflect": false,
|
|
706
|
+
"defaultValue": "true"
|
|
707
|
+
},
|
|
708
|
+
"dropValidation": {
|
|
709
|
+
"type": "boolean",
|
|
710
|
+
"mutable": false,
|
|
711
|
+
"complexType": {
|
|
712
|
+
"original": "boolean",
|
|
713
|
+
"resolved": "boolean",
|
|
714
|
+
"references": {}
|
|
715
|
+
},
|
|
716
|
+
"required": false,
|
|
717
|
+
"optional": false,
|
|
718
|
+
"docs": {
|
|
719
|
+
"tags": [],
|
|
720
|
+
"text": "When enabled, files are validated before they are dropped. A file is not added when it's invalid."
|
|
721
|
+
},
|
|
722
|
+
"attribute": "drop-validation",
|
|
723
|
+
"reflect": false,
|
|
724
|
+
"defaultValue": "false"
|
|
725
|
+
},
|
|
726
|
+
"ignoredFiles": {
|
|
727
|
+
"type": "unknown",
|
|
728
|
+
"mutable": false,
|
|
729
|
+
"complexType": {
|
|
730
|
+
"original": "Array<any>",
|
|
731
|
+
"resolved": "any[]",
|
|
732
|
+
"references": {
|
|
733
|
+
"Array": {
|
|
734
|
+
"location": "global"
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
"required": false,
|
|
739
|
+
"optional": false,
|
|
740
|
+
"docs": {
|
|
741
|
+
"tags": [],
|
|
742
|
+
"text": "Ignored file names when handling dropped directories. Dropping directories is not supported on all browsers."
|
|
743
|
+
},
|
|
744
|
+
"defaultValue": "['.ds_store', 'thumbs.db', 'desktop.ini']"
|
|
745
|
+
},
|
|
746
|
+
"serverConfig": {
|
|
747
|
+
"type": "string",
|
|
748
|
+
"mutable": false,
|
|
749
|
+
"complexType": {
|
|
750
|
+
"original": "string | {\n url?: string\n timeout?: number\n headers?: { [key: string]: string | boolean | number };\n process?: string | ServerUrl | ProcessServerConfigFunction | null;\n revert?: string | ServerUrl | RevertServerConfigFunction | null;\n restore?: string | ServerUrl | RestoreServerConfigFunction | null;\n load?: string | ServerUrl | LoadServerConfigFunction | null;\n fetch?: string | ServerUrl | FetchServerConfigFunction | null;\n remove?: RemoveServerConfigFunction | null;\n } | null",
|
|
751
|
+
"resolved": "string | { url?: string; timeout?: number; headers?: { [key: string]: string | number | boolean; }; process?: string | ServerUrl | ProcessServerConfigFunction; revert?: string | ServerUrl | RevertServerConfigFunction; restore?: string | ServerUrl | RestoreServerConfigFunction; load?: string | ServerUrl | LoadServerConfigFunction; fetch?: string | ServerUrl | FetchServerConfigFunction; remove?: RemoveServerConfigFunction; }",
|
|
752
|
+
"references": {
|
|
753
|
+
"ServerUrl": {
|
|
754
|
+
"location": "import",
|
|
755
|
+
"path": "./interfaces"
|
|
756
|
+
},
|
|
757
|
+
"ProcessServerConfigFunction": {
|
|
758
|
+
"location": "import",
|
|
759
|
+
"path": "./interfaces"
|
|
760
|
+
},
|
|
761
|
+
"RevertServerConfigFunction": {
|
|
762
|
+
"location": "import",
|
|
763
|
+
"path": "./interfaces"
|
|
764
|
+
},
|
|
765
|
+
"RestoreServerConfigFunction": {
|
|
766
|
+
"location": "import",
|
|
767
|
+
"path": "./interfaces"
|
|
768
|
+
},
|
|
769
|
+
"LoadServerConfigFunction": {
|
|
770
|
+
"location": "import",
|
|
771
|
+
"path": "./interfaces"
|
|
772
|
+
},
|
|
773
|
+
"FetchServerConfigFunction": {
|
|
774
|
+
"location": "import",
|
|
775
|
+
"path": "./interfaces"
|
|
776
|
+
},
|
|
777
|
+
"RemoveServerConfigFunction": {
|
|
778
|
+
"location": "import",
|
|
779
|
+
"path": "./interfaces"
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
"required": false,
|
|
784
|
+
"optional": false,
|
|
785
|
+
"docs": {
|
|
786
|
+
"tags": [],
|
|
787
|
+
"text": "A server configuration object describing how FilePond should interact with the server."
|
|
788
|
+
},
|
|
789
|
+
"attribute": "server-config",
|
|
790
|
+
"reflect": false,
|
|
791
|
+
"defaultValue": "null"
|
|
792
|
+
},
|
|
793
|
+
"instantUpload": {
|
|
794
|
+
"type": "boolean",
|
|
795
|
+
"mutable": false,
|
|
796
|
+
"complexType": {
|
|
797
|
+
"original": "boolean",
|
|
798
|
+
"resolved": "boolean",
|
|
799
|
+
"references": {}
|
|
800
|
+
},
|
|
801
|
+
"required": false,
|
|
802
|
+
"optional": false,
|
|
803
|
+
"docs": {
|
|
804
|
+
"tags": [],
|
|
805
|
+
"text": "Immediately upload new files to the server"
|
|
806
|
+
},
|
|
807
|
+
"attribute": "instant-upload",
|
|
808
|
+
"reflect": false,
|
|
809
|
+
"defaultValue": "false"
|
|
810
|
+
},
|
|
811
|
+
"chunkUploads": {
|
|
812
|
+
"type": "boolean",
|
|
813
|
+
"mutable": false,
|
|
814
|
+
"complexType": {
|
|
815
|
+
"original": "boolean",
|
|
816
|
+
"resolved": "boolean",
|
|
817
|
+
"references": {}
|
|
818
|
+
},
|
|
819
|
+
"required": false,
|
|
820
|
+
"optional": false,
|
|
821
|
+
"docs": {
|
|
822
|
+
"tags": [],
|
|
823
|
+
"text": "Enable chunked uploads, when enabled will automatically cut up files in chunkSize chunks before upload."
|
|
824
|
+
},
|
|
825
|
+
"attribute": "chunk-uploads",
|
|
826
|
+
"reflect": false,
|
|
827
|
+
"defaultValue": "false"
|
|
828
|
+
},
|
|
829
|
+
"chunkForce": {
|
|
830
|
+
"type": "boolean",
|
|
831
|
+
"mutable": false,
|
|
832
|
+
"complexType": {
|
|
833
|
+
"original": "boolean",
|
|
834
|
+
"resolved": "boolean",
|
|
835
|
+
"references": {}
|
|
836
|
+
},
|
|
837
|
+
"required": false,
|
|
838
|
+
"optional": false,
|
|
839
|
+
"docs": {
|
|
840
|
+
"tags": [],
|
|
841
|
+
"text": "Force chunks even for files smaller than the set chunkSize"
|
|
842
|
+
},
|
|
843
|
+
"attribute": "chunk-force",
|
|
844
|
+
"reflect": false,
|
|
845
|
+
"defaultValue": "false"
|
|
846
|
+
},
|
|
847
|
+
"chunkSize": {
|
|
848
|
+
"type": "number",
|
|
849
|
+
"mutable": false,
|
|
850
|
+
"complexType": {
|
|
851
|
+
"original": "number",
|
|
852
|
+
"resolved": "number",
|
|
853
|
+
"references": {}
|
|
854
|
+
},
|
|
855
|
+
"required": false,
|
|
856
|
+
"optional": false,
|
|
857
|
+
"docs": {
|
|
858
|
+
"tags": [],
|
|
859
|
+
"text": "The size of a chunk in bytes"
|
|
860
|
+
},
|
|
861
|
+
"attribute": "chunk-size",
|
|
862
|
+
"reflect": false,
|
|
863
|
+
"defaultValue": "5000000"
|
|
864
|
+
},
|
|
865
|
+
"chunkRetryDelays": {
|
|
866
|
+
"type": "unknown",
|
|
867
|
+
"mutable": false,
|
|
868
|
+
"complexType": {
|
|
869
|
+
"original": "Array<number>",
|
|
870
|
+
"resolved": "number[]",
|
|
871
|
+
"references": {
|
|
872
|
+
"Array": {
|
|
873
|
+
"location": "global"
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
"required": false,
|
|
878
|
+
"optional": false,
|
|
879
|
+
"docs": {
|
|
880
|
+
"tags": [],
|
|
881
|
+
"text": "Amount of times, and delayes, between retried uploading of a chunk"
|
|
882
|
+
},
|
|
883
|
+
"defaultValue": "[500, 1000, 3000]"
|
|
884
|
+
},
|
|
885
|
+
"labelDecimalSeparator": {
|
|
886
|
+
"type": "string",
|
|
887
|
+
"mutable": false,
|
|
888
|
+
"complexType": {
|
|
889
|
+
"original": "string",
|
|
890
|
+
"resolved": "string",
|
|
891
|
+
"references": {}
|
|
892
|
+
},
|
|
893
|
+
"required": false,
|
|
894
|
+
"optional": false,
|
|
895
|
+
"docs": {
|
|
896
|
+
"tags": [],
|
|
897
|
+
"text": "The decimal separator used to render numbers. By default this is determined automatically."
|
|
898
|
+
},
|
|
899
|
+
"attribute": "label-decimal-separator",
|
|
900
|
+
"reflect": false,
|
|
901
|
+
"defaultValue": "undefined"
|
|
902
|
+
},
|
|
903
|
+
"labelThousandsSeparator": {
|
|
904
|
+
"type": "string",
|
|
905
|
+
"mutable": false,
|
|
906
|
+
"complexType": {
|
|
907
|
+
"original": "string",
|
|
908
|
+
"resolved": "string",
|
|
909
|
+
"references": {}
|
|
910
|
+
},
|
|
911
|
+
"required": false,
|
|
912
|
+
"optional": false,
|
|
913
|
+
"docs": {
|
|
914
|
+
"tags": [],
|
|
915
|
+
"text": "The thousdands separator used to render numbers. By default this is determined automatically."
|
|
916
|
+
},
|
|
917
|
+
"attribute": "label-thousands-separator",
|
|
918
|
+
"reflect": false,
|
|
919
|
+
"defaultValue": "undefined"
|
|
920
|
+
},
|
|
921
|
+
"labelIdle": {
|
|
922
|
+
"type": "string",
|
|
923
|
+
"mutable": false,
|
|
924
|
+
"complexType": {
|
|
925
|
+
"original": "string",
|
|
926
|
+
"resolved": "string",
|
|
927
|
+
"references": {}
|
|
928
|
+
},
|
|
929
|
+
"required": false,
|
|
930
|
+
"optional": false,
|
|
931
|
+
"docs": {
|
|
932
|
+
"tags": [],
|
|
933
|
+
"text": "Default label shown to indicate this is a drop area. \nFilePond will automatically bind browse file events to the element with CSS class .filepond--label-action"
|
|
934
|
+
},
|
|
935
|
+
"attribute": "label-idle",
|
|
936
|
+
"reflect": false,
|
|
937
|
+
"defaultValue": "`${salla.lang.get('common.uploader.drag_and_drop')}<span class=\"filepond--label-action\"> ${salla.lang.get('common.uploader.browse')} </span>`"
|
|
938
|
+
},
|
|
939
|
+
"labelInvalidField": {
|
|
940
|
+
"type": "string",
|
|
941
|
+
"mutable": false,
|
|
942
|
+
"complexType": {
|
|
943
|
+
"original": "string",
|
|
944
|
+
"resolved": "string",
|
|
945
|
+
"references": {}
|
|
946
|
+
},
|
|
947
|
+
"required": false,
|
|
948
|
+
"optional": false,
|
|
949
|
+
"docs": {
|
|
950
|
+
"tags": [],
|
|
951
|
+
"text": "Label shown when the field contains invalid files and is validated by the parent form."
|
|
952
|
+
},
|
|
953
|
+
"attribute": "label-invalid-field",
|
|
954
|
+
"reflect": false,
|
|
955
|
+
"defaultValue": "salla.lang.get(\"common.uploader.invalid_field\")"
|
|
956
|
+
},
|
|
957
|
+
"labelFileWaitingForSize": {
|
|
958
|
+
"type": "string",
|
|
959
|
+
"mutable": false,
|
|
960
|
+
"complexType": {
|
|
961
|
+
"original": "string",
|
|
962
|
+
"resolved": "string",
|
|
963
|
+
"references": {}
|
|
964
|
+
},
|
|
965
|
+
"required": false,
|
|
966
|
+
"optional": false,
|
|
967
|
+
"docs": {
|
|
968
|
+
"tags": [],
|
|
969
|
+
"text": "Label used while waiting for file size information."
|
|
970
|
+
},
|
|
971
|
+
"attribute": "label-file-waiting-for-size",
|
|
972
|
+
"reflect": false,
|
|
973
|
+
"defaultValue": "salla.lang.get('common.uploader.waiting_file_info')"
|
|
974
|
+
},
|
|
975
|
+
"labelFileSizeNotAvailable": {
|
|
976
|
+
"type": "string",
|
|
977
|
+
"mutable": false,
|
|
978
|
+
"complexType": {
|
|
979
|
+
"original": "string",
|
|
980
|
+
"resolved": "string",
|
|
981
|
+
"references": {}
|
|
982
|
+
},
|
|
983
|
+
"required": false,
|
|
984
|
+
"optional": false,
|
|
985
|
+
"docs": {
|
|
986
|
+
"tags": [],
|
|
987
|
+
"text": "Label used when no file size information was received"
|
|
988
|
+
},
|
|
989
|
+
"attribute": "label-file-size-not-available",
|
|
990
|
+
"reflect": false,
|
|
991
|
+
"defaultValue": "salla.lang.get('common.uploader.size_not_available')"
|
|
992
|
+
},
|
|
993
|
+
"labelFileLoading": {
|
|
994
|
+
"type": "string",
|
|
995
|
+
"mutable": false,
|
|
996
|
+
"complexType": {
|
|
997
|
+
"original": "string",
|
|
998
|
+
"resolved": "string",
|
|
999
|
+
"references": {}
|
|
1000
|
+
},
|
|
1001
|
+
"required": false,
|
|
1002
|
+
"optional": false,
|
|
1003
|
+
"docs": {
|
|
1004
|
+
"tags": [],
|
|
1005
|
+
"text": "Label used while loading a file"
|
|
1006
|
+
},
|
|
1007
|
+
"attribute": "label-file-loading",
|
|
1008
|
+
"reflect": false,
|
|
1009
|
+
"defaultValue": "salla.lang.get('common.elements.loading')"
|
|
1010
|
+
},
|
|
1011
|
+
"labelFileLoadError": {
|
|
1012
|
+
"type": "string",
|
|
1013
|
+
"mutable": false,
|
|
1014
|
+
"complexType": {
|
|
1015
|
+
"original": "string",
|
|
1016
|
+
"resolved": "string",
|
|
1017
|
+
"references": {}
|
|
1018
|
+
},
|
|
1019
|
+
"required": false,
|
|
1020
|
+
"optional": false,
|
|
1021
|
+
"docs": {
|
|
1022
|
+
"tags": [],
|
|
1023
|
+
"text": "Label used when file load failed"
|
|
1024
|
+
},
|
|
1025
|
+
"attribute": "label-file-load-error",
|
|
1026
|
+
"reflect": false,
|
|
1027
|
+
"defaultValue": "salla.lang.get('common.uploader.failed_to_load')"
|
|
1028
|
+
},
|
|
1029
|
+
"labelFileProcessing": {
|
|
1030
|
+
"type": "string",
|
|
1031
|
+
"mutable": false,
|
|
1032
|
+
"complexType": {
|
|
1033
|
+
"original": "string",
|
|
1034
|
+
"resolved": "string",
|
|
1035
|
+
"references": {}
|
|
1036
|
+
},
|
|
1037
|
+
"required": false,
|
|
1038
|
+
"optional": false,
|
|
1039
|
+
"docs": {
|
|
1040
|
+
"tags": [],
|
|
1041
|
+
"text": "Label used when uploading a file"
|
|
1042
|
+
},
|
|
1043
|
+
"attribute": "label-file-processing",
|
|
1044
|
+
"reflect": false,
|
|
1045
|
+
"defaultValue": "salla.lang.get('common.uploader.uploading')"
|
|
1046
|
+
},
|
|
1047
|
+
"labelFileProcessingComplete": {
|
|
1048
|
+
"type": "string",
|
|
1049
|
+
"mutable": false,
|
|
1050
|
+
"complexType": {
|
|
1051
|
+
"original": "string",
|
|
1052
|
+
"resolved": "string",
|
|
1053
|
+
"references": {}
|
|
1054
|
+
},
|
|
1055
|
+
"required": false,
|
|
1056
|
+
"optional": false,
|
|
1057
|
+
"docs": {
|
|
1058
|
+
"tags": [],
|
|
1059
|
+
"text": "Label used when file upload has completed"
|
|
1060
|
+
},
|
|
1061
|
+
"attribute": "label-file-processing-complete",
|
|
1062
|
+
"reflect": false,
|
|
1063
|
+
"defaultValue": "salla.lang.get('common.uploader.upload_completed')"
|
|
1064
|
+
},
|
|
1065
|
+
"labelFileProcessingAborted": {
|
|
1066
|
+
"type": "string",
|
|
1067
|
+
"mutable": false,
|
|
1068
|
+
"complexType": {
|
|
1069
|
+
"original": "string",
|
|
1070
|
+
"resolved": "string",
|
|
1071
|
+
"references": {}
|
|
1072
|
+
},
|
|
1073
|
+
"required": false,
|
|
1074
|
+
"optional": false,
|
|
1075
|
+
"docs": {
|
|
1076
|
+
"tags": [],
|
|
1077
|
+
"text": "Label used when upload was cancelled"
|
|
1078
|
+
},
|
|
1079
|
+
"attribute": "label-file-processing-aborted",
|
|
1080
|
+
"reflect": false,
|
|
1081
|
+
"defaultValue": "salla.lang.get('common.uploader.upload_cancelled')"
|
|
1082
|
+
},
|
|
1083
|
+
"labelFileProcessingError": {
|
|
1084
|
+
"type": "string",
|
|
1085
|
+
"mutable": false,
|
|
1086
|
+
"complexType": {
|
|
1087
|
+
"original": "string",
|
|
1088
|
+
"resolved": "string",
|
|
1089
|
+
"references": {}
|
|
1090
|
+
},
|
|
1091
|
+
"required": false,
|
|
1092
|
+
"optional": false,
|
|
1093
|
+
"docs": {
|
|
1094
|
+
"tags": [],
|
|
1095
|
+
"text": "Label used when something went wrong during file upload"
|
|
1096
|
+
},
|
|
1097
|
+
"attribute": "label-file-processing-error",
|
|
1098
|
+
"reflect": false,
|
|
1099
|
+
"defaultValue": "salla.lang.get('common.uploader.error_uploading')"
|
|
1100
|
+
},
|
|
1101
|
+
"labelFileProcessingRevertError": {
|
|
1102
|
+
"type": "string",
|
|
1103
|
+
"mutable": false,
|
|
1104
|
+
"complexType": {
|
|
1105
|
+
"original": "string",
|
|
1106
|
+
"resolved": "string",
|
|
1107
|
+
"references": {}
|
|
1108
|
+
},
|
|
1109
|
+
"required": false,
|
|
1110
|
+
"optional": false,
|
|
1111
|
+
"docs": {
|
|
1112
|
+
"tags": [],
|
|
1113
|
+
"text": "Label used when something went wrong during reverting the file upload"
|
|
1114
|
+
},
|
|
1115
|
+
"attribute": "label-file-processing-revert-error",
|
|
1116
|
+
"reflect": false,
|
|
1117
|
+
"defaultValue": "salla.lang.get('common.uploader.error_reverting')"
|
|
1118
|
+
},
|
|
1119
|
+
"labelFileRemoveError": {
|
|
1120
|
+
"type": "string",
|
|
1121
|
+
"mutable": false,
|
|
1122
|
+
"complexType": {
|
|
1123
|
+
"original": "string",
|
|
1124
|
+
"resolved": "string",
|
|
1125
|
+
"references": {}
|
|
1126
|
+
},
|
|
1127
|
+
"required": false,
|
|
1128
|
+
"optional": false,
|
|
1129
|
+
"docs": {
|
|
1130
|
+
"tags": [],
|
|
1131
|
+
"text": "Label used to indicate something went wrong when removing the file"
|
|
1132
|
+
},
|
|
1133
|
+
"attribute": "label-file-remove-error",
|
|
1134
|
+
"reflect": false,
|
|
1135
|
+
"defaultValue": "salla.lang.get('common.uploader.error_removing')"
|
|
1136
|
+
},
|
|
1137
|
+
"labelTapToCancel": {
|
|
1138
|
+
"type": "string",
|
|
1139
|
+
"mutable": false,
|
|
1140
|
+
"complexType": {
|
|
1141
|
+
"original": "string",
|
|
1142
|
+
"resolved": "string",
|
|
1143
|
+
"references": {}
|
|
1144
|
+
},
|
|
1145
|
+
"required": false,
|
|
1146
|
+
"optional": false,
|
|
1147
|
+
"docs": {
|
|
1148
|
+
"tags": [],
|
|
1149
|
+
"text": "Label used to indicate to the user that an action can be cancelled."
|
|
1150
|
+
},
|
|
1151
|
+
"attribute": "label-tap-to-cancel",
|
|
1152
|
+
"reflect": false,
|
|
1153
|
+
"defaultValue": "salla.lang.get(\"common.elements.cancel\")"
|
|
1154
|
+
},
|
|
1155
|
+
"labelTapToRetry": {
|
|
1156
|
+
"type": "string",
|
|
1157
|
+
"mutable": false,
|
|
1158
|
+
"complexType": {
|
|
1159
|
+
"original": "string",
|
|
1160
|
+
"resolved": "string",
|
|
1161
|
+
"references": {}
|
|
1162
|
+
},
|
|
1163
|
+
"required": false,
|
|
1164
|
+
"optional": false,
|
|
1165
|
+
"docs": {
|
|
1166
|
+
"tags": [],
|
|
1167
|
+
"text": "Label used to indicate to the user that an action can be retried."
|
|
1168
|
+
},
|
|
1169
|
+
"attribute": "label-tap-to-retry",
|
|
1170
|
+
"reflect": false,
|
|
1171
|
+
"defaultValue": "salla.lang.get(\"common.elements.retry\")"
|
|
1172
|
+
},
|
|
1173
|
+
"labelTapToUndo": {
|
|
1174
|
+
"type": "string",
|
|
1175
|
+
"mutable": false,
|
|
1176
|
+
"complexType": {
|
|
1177
|
+
"original": "string",
|
|
1178
|
+
"resolved": "string",
|
|
1179
|
+
"references": {}
|
|
1180
|
+
},
|
|
1181
|
+
"required": false,
|
|
1182
|
+
"optional": false,
|
|
1183
|
+
"docs": {
|
|
1184
|
+
"tags": [],
|
|
1185
|
+
"text": "Label used to indicate to the user that an action can be undone."
|
|
1186
|
+
},
|
|
1187
|
+
"attribute": "label-tap-to-undo",
|
|
1188
|
+
"reflect": false,
|
|
1189
|
+
"defaultValue": "salla.lang.get(\"common.uploader.revert\")"
|
|
1190
|
+
},
|
|
1191
|
+
"labelButtonRemoveItem": {
|
|
1192
|
+
"type": "string",
|
|
1193
|
+
"mutable": false,
|
|
1194
|
+
"complexType": {
|
|
1195
|
+
"original": "string",
|
|
1196
|
+
"resolved": "string",
|
|
1197
|
+
"references": {}
|
|
1198
|
+
},
|
|
1199
|
+
"required": false,
|
|
1200
|
+
"optional": false,
|
|
1201
|
+
"docs": {
|
|
1202
|
+
"tags": [],
|
|
1203
|
+
"text": "Label used for remove button"
|
|
1204
|
+
},
|
|
1205
|
+
"attribute": "label-button-remove-item",
|
|
1206
|
+
"reflect": false,
|
|
1207
|
+
"defaultValue": "salla.lang.get(\"common.elements.remove\")"
|
|
1208
|
+
},
|
|
1209
|
+
"labelButtonAbortItemLoad": {
|
|
1210
|
+
"type": "string",
|
|
1211
|
+
"mutable": false,
|
|
1212
|
+
"complexType": {
|
|
1213
|
+
"original": "string",
|
|
1214
|
+
"resolved": "string",
|
|
1215
|
+
"references": {}
|
|
1216
|
+
},
|
|
1217
|
+
"required": false,
|
|
1218
|
+
"optional": false,
|
|
1219
|
+
"docs": {
|
|
1220
|
+
"tags": [],
|
|
1221
|
+
"text": "Label used for abort load button"
|
|
1222
|
+
},
|
|
1223
|
+
"attribute": "label-button-abort-item-load",
|
|
1224
|
+
"reflect": false,
|
|
1225
|
+
"defaultValue": "salla.lang.get(\"common.elements.abort\")"
|
|
1226
|
+
},
|
|
1227
|
+
"labelButtonRetryItemLoad": {
|
|
1228
|
+
"type": "string",
|
|
1229
|
+
"mutable": false,
|
|
1230
|
+
"complexType": {
|
|
1231
|
+
"original": "string",
|
|
1232
|
+
"resolved": "string",
|
|
1233
|
+
"references": {}
|
|
1234
|
+
},
|
|
1235
|
+
"required": false,
|
|
1236
|
+
"optional": false,
|
|
1237
|
+
"docs": {
|
|
1238
|
+
"tags": [],
|
|
1239
|
+
"text": "Label used for retry load button"
|
|
1240
|
+
},
|
|
1241
|
+
"attribute": "label-button-retry-item-load",
|
|
1242
|
+
"reflect": false,
|
|
1243
|
+
"defaultValue": "salla.lang.get(\"common.elements.retry\")"
|
|
1244
|
+
},
|
|
1245
|
+
"labelButtonAbortItemProcessing": {
|
|
1246
|
+
"type": "string",
|
|
1247
|
+
"mutable": false,
|
|
1248
|
+
"complexType": {
|
|
1249
|
+
"original": "string",
|
|
1250
|
+
"resolved": "string",
|
|
1251
|
+
"references": {}
|
|
1252
|
+
},
|
|
1253
|
+
"required": false,
|
|
1254
|
+
"optional": false,
|
|
1255
|
+
"docs": {
|
|
1256
|
+
"tags": [],
|
|
1257
|
+
"text": "Label used for abort upload button"
|
|
1258
|
+
},
|
|
1259
|
+
"attribute": "label-button-abort-item-processing",
|
|
1260
|
+
"reflect": false,
|
|
1261
|
+
"defaultValue": "salla.lang.get(\"common.uploader.abort_upload\")"
|
|
1262
|
+
},
|
|
1263
|
+
"labelButtonUndoItemProcessing": {
|
|
1264
|
+
"type": "string",
|
|
1265
|
+
"mutable": false,
|
|
1266
|
+
"complexType": {
|
|
1267
|
+
"original": "string",
|
|
1268
|
+
"resolved": "string",
|
|
1269
|
+
"references": {}
|
|
1270
|
+
},
|
|
1271
|
+
"required": false,
|
|
1272
|
+
"optional": false,
|
|
1273
|
+
"docs": {
|
|
1274
|
+
"tags": [],
|
|
1275
|
+
"text": "Label used for undo upload button"
|
|
1276
|
+
},
|
|
1277
|
+
"attribute": "label-button-undo-item-processing",
|
|
1278
|
+
"reflect": false,
|
|
1279
|
+
"defaultValue": "salla.lang.get(\"common.elements.undo\")"
|
|
1280
|
+
},
|
|
1281
|
+
"labelButtonRetryItemProcessing": {
|
|
1282
|
+
"type": "string",
|
|
1283
|
+
"mutable": false,
|
|
1284
|
+
"complexType": {
|
|
1285
|
+
"original": "string",
|
|
1286
|
+
"resolved": "string",
|
|
1287
|
+
"references": {}
|
|
1288
|
+
},
|
|
1289
|
+
"required": false,
|
|
1290
|
+
"optional": false,
|
|
1291
|
+
"docs": {
|
|
1292
|
+
"tags": [],
|
|
1293
|
+
"text": "Label used for retry upload button"
|
|
1294
|
+
},
|
|
1295
|
+
"attribute": "label-button-retry-item-processing",
|
|
1296
|
+
"reflect": false,
|
|
1297
|
+
"defaultValue": "`${salla.lang.get(\"common.elements.retry\")} ${salla.lang.get(\"common.uploader.upload\")}`"
|
|
1298
|
+
},
|
|
1299
|
+
"labelButtonProcessItem": {
|
|
1300
|
+
"type": "string",
|
|
1301
|
+
"mutable": false,
|
|
1302
|
+
"complexType": {
|
|
1303
|
+
"original": "string",
|
|
1304
|
+
"resolved": "string",
|
|
1305
|
+
"references": {}
|
|
1306
|
+
},
|
|
1307
|
+
"required": false,
|
|
1308
|
+
"optional": false,
|
|
1309
|
+
"docs": {
|
|
1310
|
+
"tags": [],
|
|
1311
|
+
"text": "Label used for upload button"
|
|
1312
|
+
},
|
|
1313
|
+
"attribute": "label-button-process-item",
|
|
1314
|
+
"reflect": false,
|
|
1315
|
+
"defaultValue": "salla.lang.get(\"common.uploader.upload\")"
|
|
1316
|
+
},
|
|
1317
|
+
"iconRemove": {
|
|
1318
|
+
"type": "string",
|
|
1319
|
+
"mutable": false,
|
|
1320
|
+
"complexType": {
|
|
1321
|
+
"original": "string",
|
|
1322
|
+
"resolved": "string",
|
|
1323
|
+
"references": {}
|
|
1324
|
+
},
|
|
1325
|
+
"required": false,
|
|
1326
|
+
"optional": false,
|
|
1327
|
+
"docs": {
|
|
1328
|
+
"tags": [],
|
|
1329
|
+
"text": "The icon used for remove actions"
|
|
1330
|
+
},
|
|
1331
|
+
"attribute": "icon-remove",
|
|
1332
|
+
"reflect": false,
|
|
1333
|
+
"defaultValue": "'<svg>...</svg>'"
|
|
1334
|
+
},
|
|
1335
|
+
"iconProcess": {
|
|
1336
|
+
"type": "string",
|
|
1337
|
+
"mutable": false,
|
|
1338
|
+
"complexType": {
|
|
1339
|
+
"original": "string",
|
|
1340
|
+
"resolved": "string",
|
|
1341
|
+
"references": {}
|
|
1342
|
+
},
|
|
1343
|
+
"required": false,
|
|
1344
|
+
"optional": false,
|
|
1345
|
+
"docs": {
|
|
1346
|
+
"tags": [],
|
|
1347
|
+
"text": "The icon used for process actions"
|
|
1348
|
+
},
|
|
1349
|
+
"attribute": "icon-process",
|
|
1350
|
+
"reflect": false,
|
|
1351
|
+
"defaultValue": "'<svg>...</svg>'"
|
|
1352
|
+
},
|
|
1353
|
+
"iconRetry": {
|
|
1354
|
+
"type": "string",
|
|
1355
|
+
"mutable": false,
|
|
1356
|
+
"complexType": {
|
|
1357
|
+
"original": "string",
|
|
1358
|
+
"resolved": "string",
|
|
1359
|
+
"references": {}
|
|
1360
|
+
},
|
|
1361
|
+
"required": false,
|
|
1362
|
+
"optional": false,
|
|
1363
|
+
"docs": {
|
|
1364
|
+
"tags": [],
|
|
1365
|
+
"text": "The icon used for retry actions"
|
|
1366
|
+
},
|
|
1367
|
+
"attribute": "icon-retry",
|
|
1368
|
+
"reflect": false,
|
|
1369
|
+
"defaultValue": "'<svg>...</svg>'"
|
|
1370
|
+
},
|
|
1371
|
+
"iconUndo": {
|
|
1372
|
+
"type": "string",
|
|
1373
|
+
"mutable": false,
|
|
1374
|
+
"complexType": {
|
|
1375
|
+
"original": "string",
|
|
1376
|
+
"resolved": "string",
|
|
1377
|
+
"references": {}
|
|
1378
|
+
},
|
|
1379
|
+
"required": false,
|
|
1380
|
+
"optional": false,
|
|
1381
|
+
"docs": {
|
|
1382
|
+
"tags": [],
|
|
1383
|
+
"text": "The icon used for undo actions"
|
|
1384
|
+
},
|
|
1385
|
+
"attribute": "icon-undo",
|
|
1386
|
+
"reflect": false,
|
|
1387
|
+
"defaultValue": "'<svg>...</svg>'"
|
|
1388
|
+
}
|
|
1389
|
+
}; }
|
|
1390
|
+
static get states() { return {
|
|
1391
|
+
"pond": {},
|
|
1392
|
+
"files": {}
|
|
1393
|
+
}; }
|
|
1394
|
+
static get events() { return [{
|
|
1395
|
+
"method": "remove",
|
|
1396
|
+
"name": "remove",
|
|
1397
|
+
"bubbles": true,
|
|
1398
|
+
"cancelable": true,
|
|
1399
|
+
"composed": true,
|
|
1400
|
+
"docs": {
|
|
1401
|
+
"tags": [],
|
|
1402
|
+
"text": ""
|
|
1403
|
+
},
|
|
1404
|
+
"complexType": {
|
|
1405
|
+
"original": "any",
|
|
1406
|
+
"resolved": "any",
|
|
1407
|
+
"references": {}
|
|
1408
|
+
}
|
|
1409
|
+
}]; }
|
|
1410
|
+
static get methods() { return {
|
|
1411
|
+
"appendFile": {
|
|
1412
|
+
"complexType": {
|
|
1413
|
+
"signature": "(file: FilePondInitialFile) => Promise<FilePondInitialFile[]>",
|
|
1414
|
+
"parameters": [{
|
|
1415
|
+
"tags": [],
|
|
1416
|
+
"text": ""
|
|
1417
|
+
}],
|
|
1418
|
+
"references": {
|
|
1419
|
+
"Promise": {
|
|
1420
|
+
"location": "global"
|
|
1421
|
+
},
|
|
1422
|
+
"FilePondInitialFile": {
|
|
1423
|
+
"location": "import",
|
|
1424
|
+
"path": "./interfaces"
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
"return": "Promise<FilePondInitialFile[]>"
|
|
1428
|
+
},
|
|
1429
|
+
"docs": {
|
|
1430
|
+
"text": "Append intial file",
|
|
1431
|
+
"tags": []
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
}; }
|
|
1435
|
+
}
|