@salla.sa/twilight-components 2.11.3 → 2.11.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.
Files changed (33) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/salla-button_37.cjs.entry.js +856 -346
  3. package/dist/cjs/twilight.cjs.js +1 -1
  4. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +48 -20
  5. package/dist/collection/components/salla-file-upload/salla-file-upload.js +278 -678
  6. package/dist/collection/components/salla-gifting/salla-gifting.js +24 -43
  7. package/dist/collection/components/salla-login-modal/salla-login-modal.js +21 -39
  8. package/dist/collection/components/salla-product-options/salla-product-options.js +27 -42
  9. package/dist/collection/components/salla-user-menu/salla-user-menu.js +1 -0
  10. package/dist/components/salla-datetime-picker2.js +8 -12
  11. package/dist/components/salla-file-upload2.js +783 -214
  12. package/dist/components/salla-gifting.js +22 -41
  13. package/dist/components/salla-login-modal.js +21 -39
  14. package/dist/components/salla-product-options.js +26 -41
  15. package/dist/components/salla-user-menu.js +1 -0
  16. package/dist/esm/loader.js +1 -1
  17. package/dist/esm/salla-button_37.entry.js +856 -346
  18. package/dist/esm/twilight.js +1 -1
  19. package/dist/esm-es5/loader.js +1 -1
  20. package/dist/esm-es5/salla-button_37.entry.js +11 -5
  21. package/dist/esm-es5/twilight.js +1 -1
  22. package/dist/twilight/p-0a16e246.system.js +1 -1
  23. package/dist/twilight/p-2e7701fe.entry.js +36 -0
  24. package/dist/twilight/{p-5ca2cbe3.system.entry.js → p-3db06115.system.entry.js} +11 -5
  25. package/dist/twilight/twilight.esm.js +1 -1
  26. package/dist/types/components/salla-datetime-picker/salla-datetime-picker.d.ts +9 -3
  27. package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +52 -104
  28. package/dist/types/components/salla-gifting/salla-gifting.d.ts +13 -13
  29. package/dist/types/components/salla-product-options/interfaces.d.ts +1 -0
  30. package/dist/types/components/salla-product-options/salla-product-options.d.ts +3 -4
  31. package/dist/types/components.d.ts +81 -217
  32. package/package.json +5 -4
  33. package/dist/twilight/p-cfe3a7ef.entry.js +0 -30
@@ -1,27 +1,28 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { Component, Prop, State, h, Method, Element, Host, Event } from '@stencil/core';
4
+ import { Component, Prop, State, h, Element, Host, Event } from '@stencil/core';
5
5
  import * as FilePond from 'filepond';
6
6
  import FilePondPluginFileValidateSize from 'filepond-plugin-file-validate-size';
7
7
  import FilePondPluginImageExifOrientation from 'filepond-plugin-image-exif-orientation';
8
8
  import FilePondPluginImagePreview from 'filepond-plugin-image-preview';
9
9
  import FilePondPluginImageEdit from 'filepond-plugin-image-edit';
10
10
  import FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type';
11
+ import FilePondPluginFilePoster from 'filepond-plugin-file-poster';
11
12
  export class SallaFileUpload {
12
13
  constructor() {
13
14
  /**
14
- * The uploaded image link or URL
15
+ * File input name for the native formData
15
16
  */
16
- this.uploadedImage = undefined;
17
+ this.name = 'file';
17
18
  /**
18
- * Sets the required attribute to the output field
19
+ * The submit request method.
19
20
  */
20
- this.required = false;
21
+ this.method = 'POST';
21
22
  /**
22
- * Sets the disabled attribute to the output field
23
+ * json formData to be injected in the submit request
23
24
  */
24
- this.disabled = false;
25
+ this.formData = "{}";
25
26
  /**
26
27
  * Enable or disable drag n' drop
27
28
  */
@@ -30,14 +31,6 @@ export class SallaFileUpload {
30
31
  * Enable or disable file browser
31
32
  */
32
33
  this.allowBrowse = true;
33
- /**
34
- * Enable or disable pasting of files. Pasting files is not supported on all browesrs.
35
- */
36
- this.allowPaste = true;
37
- /**
38
- * Enable or disable adding multiple files
39
- */
40
- this.allowMultiple = false;
41
34
  /**
42
35
  * Allow drop to replace a file, only works when allowMultiple is false
43
36
  */
@@ -50,26 +43,6 @@ export class SallaFileUpload {
50
43
  * When set to false the remove button is hidden and disabled
51
44
  */
52
45
  this.allowRemove = true;
53
- /**
54
- * Enable or disable the process button
55
- */
56
- this.allowProcess = true;
57
- /**
58
- * Allow users to reorder files with drag and drop interaction.
59
- * Note that this only works in single column mode.
60
- * It also only works on browsers that support pointer events.
61
- */
62
- this.allowReorder = false;
63
- /**
64
- * Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post.
65
- * This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer),
66
- * this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
67
- */
68
- this.storeAsFile = false;
69
- /**
70
- * Set to true to require the file to be successfully reverted before continuing.
71
- */
72
- this.forceRevert = false;
73
46
  /**
74
47
  * The maximum number of files that the pond can handle
75
48
  */
@@ -78,11 +51,6 @@ export class SallaFileUpload {
78
51
  * The maxmimum number of files that can be uploaded in parallel
79
52
  */
80
53
  this.maxParallelUploads = 2;
81
- /**
82
- * Set to true to enable custom validity messages.
83
- * FilePond will throw an error when a parent form is submitted and it contains invalid files.
84
- */
85
- this.checkValidity = false;
86
54
  /**
87
55
  * Set to 'after' to add files to end of list (when dropped at the top of the list or added using browse or paste),
88
56
  * set to 'before' to add files at start of list.
@@ -93,66 +61,14 @@ export class SallaFileUpload {
93
61
  * The interval to use before showing each item being added to the list
94
62
  */
95
63
  this.itemInsertInterval = 75;
96
- /**
97
- * Show credits at the bottom of the upload element.
98
- * Structure is like [{label,url}]
99
- */
100
- this.credits = false;
101
- /// DRAG and DROP Props
102
- /**
103
- * FilePond will catch all files dropped on the webpage
104
- */
105
- this.dropOnPage = false;
106
64
  /**
107
65
  * Require drop on the FilePond element itself to catch the file.
108
66
  */
109
67
  this.dropOnElement = true;
110
- /**
111
- * When enabled, files are validated before they are dropped. A file is not added when it's invalid.
112
- */
113
- this.dropValidation = false;
114
68
  /**
115
69
  * Ignored file names when handling dropped directories. Dropping directories is not supported on all browsers.
116
70
  */
117
71
  this.ignoredFiles = ['.ds_store', 'thumbs.db', 'desktop.ini'];
118
- /// SERVER Configuration props
119
- /**
120
- * A server configuration object describing how FilePond should interact with the server.
121
- */
122
- this.serverConfig = {
123
- process: async (_fieldName, file, _metadata, load, error, _progress, abort, _transfer, _options) => {
124
- const formData = new FormData();
125
- formData.append("image_url", file, file.name);
126
- return await salla.product.uploadGiftImage(formData)
127
- .then((resp) => {
128
- this.uploadedImage = resp.data.url;
129
- this.uploaded.emit(resp.data.url);
130
- load('success');
131
- }).catch(e => {
132
- console.log(e);
133
- error('error');
134
- })
135
- .finally(() => {
136
- return {
137
- abort: () => {
138
- abort();
139
- },
140
- };
141
- });
142
- }
143
- };
144
- /**
145
- * Immediately upload new files to the server
146
- */
147
- this.instantUpload = false;
148
- /**
149
- * Enable chunked uploads, when enabled will automatically cut up files in chunkSize chunks before upload.
150
- */
151
- this.chunkUploads = false;
152
- /**
153
- * Force chunks even for files smaller than the set chunkSize
154
- */
155
- this.chunkForce = false;
156
72
  /**
157
73
  * The size of a chunk in bytes
158
74
  */
@@ -176,131 +92,126 @@ export class SallaFileUpload {
176
92
  * @default `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`
177
93
  */
178
94
  this.labelIdle = this.getLabel();
95
+ /// SVG Icons
179
96
  /**
180
- * Label shown when the field contains invalid files and is validated by the parent form.
97
+ * The icon used for remove actions
181
98
  */
182
- this.labelInvalidField = salla.lang.get("common.uploader.invalid_field");
99
+ this.iconRemove = '<svg>...</svg>';
183
100
  /**
184
- * Label used while waiting for file size information.
101
+ * The icon used for process actions
185
102
  */
186
- this.labelFileWaitingForSize = salla.lang.get('common.uploader.waiting_file_info');
103
+ this.iconProcess = '<svg>...</svg>';
187
104
  /**
188
- * Label used when no file size information was received
105
+ * The icon used for retry actions
189
106
  */
190
- this.labelFileSizeNotAvailable = salla.lang.get('common.uploader.size_not_available');
107
+ this.iconRetry = '<svg>...</svg>';
191
108
  /**
192
- * Label used while loading a file
109
+ * The icon used for undo actions
193
110
  */
194
- this.labelFileLoading = salla.lang.get('common.elements.loading');
111
+ this.iconUndo = '<svg>...</svg>';
112
+ /// STATES
195
113
  /**
196
- * Label used when file load failed
114
+ * The array of file references
197
115
  */
198
- this.labelFileLoadError = salla.lang.get('common.uploader.failed_to_load');
116
+ this.files = [];
199
117
  /**
200
- * Label used when uploading a file
118
+ * Translations
201
119
  */
120
+ this.labelInvalidField = salla.lang.get("common.uploader.invalid_field");
121
+ this.labelFileWaitingForSize = salla.lang.get('common.uploader.waiting_file_info');
122
+ this.labelFileSizeNotAvailable = salla.lang.get('common.uploader.size_not_available');
123
+ this.labelFileLoading = salla.lang.get('common.elements.loading');
124
+ this.labelFileLoadError = salla.lang.get('common.uploader.failed_to_load');
202
125
  this.labelFileProcessing = salla.lang.get('common.uploader.uploading');
203
- /**
204
- * Label used when file upload has completed
205
- */
206
126
  this.labelFileProcessingComplete = salla.lang.get('common.uploader.upload_completed');
207
- /**
208
- * Label used when upload was cancelled
209
- */
210
127
  this.labelFileProcessingAborted = salla.lang.get('common.uploader.upload_cancelled');
211
- /**
212
- * Label used when something went wrong during file upload
213
- */
214
128
  this.labelFileProcessingError = salla.lang.get('common.uploader.error_uploading');
215
- /**
216
- * Label used when something went wrong during reverting the file upload
217
- */
218
129
  this.labelFileProcessingRevertError = salla.lang.get('common.uploader.error_reverting');
219
- /**
220
- * Label used to indicate something went wrong when removing the file
221
- */
222
130
  this.labelFileRemoveError = salla.lang.get('common.uploader.error_removing');
223
- /**
224
- * Label used to indicate to the user that an action can be cancelled.
225
- */
226
131
  this.labelTapToCancel = salla.lang.get("common.elements.cancel");
227
- /**
228
- * Label used to indicate to the user that an action can be retried.
229
- */
230
132
  this.labelTapToRetry = salla.lang.get("common.elements.retry");
231
- /**
232
- * Label used to indicate to the user that an action can be undone.
233
- */
234
133
  this.labelTapToUndo = salla.lang.get("common.uploader.revert");
235
- /**
236
- * Label used for remove button
237
- */
238
134
  this.labelButtonRemoveItem = salla.lang.get("common.elements.remove");
239
- /**
240
- * Label used for abort load button
241
- */
242
135
  this.labelButtonAbortItemLoad = salla.lang.get("common.elements.abort");
243
- /**
244
- * Label used for retry load button
245
- */
246
136
  this.labelButtonRetryItemLoad = salla.lang.get("common.elements.retry");
247
- /**
248
- * Label used for abort upload button
249
- */
250
137
  this.labelButtonAbortItemProcessing = salla.lang.get("common.uploader.abort_upload");
251
- /**
252
- * Label used for undo upload button
253
- */
254
138
  this.labelButtonUndoItemProcessing = salla.lang.get("common.elements.undo");
255
- /**
256
- * Label used for retry upload button
257
- */
258
139
  this.labelButtonRetryItemProcessing = `${salla.lang.get("common.elements.retry")} ${salla.lang.get("common.uploader.upload")}`;
259
- /**
260
- * Label used for upload button
261
- */
262
140
  this.labelButtonProcessItem = salla.lang.get("common.uploader.upload");
263
- /// SVG Icons
264
- /**
265
- * The icon used for remove actions
266
- */
267
- this.iconRemove = '<svg>...</svg>';
268
- /**
269
- * The icon used for process actions
270
- */
271
- this.iconProcess = '<svg>...</svg>';
272
- /**
273
- * The icon used for retry actions
274
- */
275
- this.iconRetry = '<svg>...</svg>';
276
- /**
277
- * The icon used for undo actions
278
- */
279
- this.iconUndo = '<svg>...</svg>';
280
- /**
281
- * The array of file references
282
- */
283
- this.files = [];
141
+ FilePond.registerPlugin(FilePondPluginImagePreview, FilePondPluginImageExifOrientation, FilePondPluginFileValidateSize, FilePondPluginImageEdit, FilePondPluginFileValidateType, FilePondPluginFilePoster);
284
142
  salla.lang.onLoaded(() => {
285
143
  this.host.querySelectorAll('.filepond--drop-label>label').forEach(label => label.innerHTML = this.getLabel());
144
+ this.labelInvalidField = salla.lang.get("common.uploader.invalid_field");
145
+ this.labelFileWaitingForSize = salla.lang.get('common.uploader.waiting_file_info');
146
+ this.labelFileSizeNotAvailable = salla.lang.get('common.uploader.size_not_available');
147
+ this.labelFileLoading = salla.lang.get('common.elements.loading');
148
+ this.labelFileLoadError = salla.lang.get('common.uploader.failed_to_load');
149
+ this.labelFileProcessing = salla.lang.get('common.uploader.uploading');
150
+ this.labelFileProcessingComplete = salla.lang.get('common.uploader.upload_completed');
151
+ this.labelFileProcessingAborted = salla.lang.get('common.uploader.upload_cancelled');
152
+ this.labelFileProcessingError = salla.lang.get('common.uploader.error_uploading');
153
+ this.labelFileProcessingRevertError = salla.lang.get('common.uploader.error_reverting');
154
+ this.labelFileRemoveError = salla.lang.get('common.uploader.error_removing');
155
+ this.labelTapToCancel = salla.lang.get("common.elements.cancel");
156
+ this.labelTapToRetry = salla.lang.get("common.elements.retry");
157
+ this.labelTapToUndo = salla.lang.get("common.uploader.revert");
158
+ this.labelButtonRemoveItem = salla.lang.get("common.elements.remove");
159
+ this.labelButtonAbortItemLoad = salla.lang.get("common.elements.abort");
160
+ this.labelButtonRetryItemLoad = salla.lang.get("common.elements.retry");
161
+ this.labelButtonAbortItemProcessing = salla.lang.get("common.uploader.abort_upload");
162
+ this.labelButtonUndoItemProcessing = salla.lang.get("common.elements.undo");
163
+ this.labelButtonRetryItemProcessing = `${salla.lang.get("common.elements.retry")} ${salla.lang.get("common.uploader.upload")}`;
164
+ this.labelButtonProcessItem = salla.lang.get("common.uploader.upload");
286
165
  });
287
166
  }
167
+ getLabel() {
168
+ return this.host.getAttribute('label-idle') || `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`;
169
+ }
288
170
  /**
289
- * Append intial file
171
+ *
172
+ * This method will fire head request to get the file size, it's head request,so it will be too fast.
290
173
  */
291
- async appendFile(file) {
292
- return this.pond.files = [file];
174
+ getFileSize(url) {
175
+ let http = new XMLHttpRequest();
176
+ http.open('HEAD', url, false); // false = Synchronous
177
+ http.send(null); // it will stop here until this http request is complete
178
+ return http.status === 200 ? http.getResponseHeader('content-length') : '';
293
179
  }
294
- getLabel() {
295
- return this.host.getAttribute('label-idle') || `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`;
180
+ getFiles() {
181
+ if (!this.value) {
182
+ return [];
183
+ }
184
+ try {
185
+ let files = [this.value];
186
+ return files.map(file => {
187
+ let metadata = { poster: file, name: file };
188
+ return {
189
+ source: this.fileId ? `${this.fileId}` : this.value,
190
+ options: {
191
+ type: 'local',
192
+ file: {
193
+ name: this.value.substring(this.value.lastIndexOf('/') + 1),
194
+ size: this.getFileSize(this.value)
195
+ },
196
+ metadata: metadata,
197
+ },
198
+ };
199
+ });
200
+ }
201
+ catch (e) {
202
+ salla.log('failed To get files from: ' + (this.value || this.fileId));
203
+ }
204
+ return [];
296
205
  }
297
- componentDidLoad() {
298
- this.pond = this.intiFilePond();
206
+ render() {
207
+ return (h(Host, { class: "s-file-upload" },
208
+ h("input", { type: "file", name: this.name, value: this.value, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: "image/png, image/jpeg, image/jpg, image/gif" })));
299
209
  }
300
- intiFilePond() {
301
- FilePond.registerPlugin(FilePondPluginImagePreview, FilePondPluginImageExifOrientation, FilePondPluginFileValidateSize, FilePondPluginImageEdit, FilePondPluginFileValidateType);
302
- return FilePond.create(this.fileUploader, {
303
- files: this.files,
210
+ componentDidLoad() {
211
+ this.pond = FilePond.create(this.fileUploader, {
212
+ name: this.payloadName || this.name,
213
+ //@ts-ignore
214
+ files: this.getFiles(),
304
215
  required: this.required,
305
216
  disabled: this.disabled,
306
217
  allowDrop: this.allowDrop,
@@ -323,7 +234,43 @@ export class SallaFileUpload {
323
234
  dropOnElement: this.dropOnElement,
324
235
  dropValidation: this.dropValidation,
325
236
  ignoredFiles: this.ignoredFiles,
326
- server: this.serverConfig,
237
+ server: {
238
+ url: this.url,
239
+ method: this.method,
240
+ // @ts-ignore
241
+ process: {
242
+ onload: response => {
243
+ let url = JSON.parse(response).data;
244
+ this.uploaded.emit(this.value = url.filePath || url.url);
245
+ return this.value;
246
+ },
247
+ headers: salla.api.getHeaders(),
248
+ onerror: response => {
249
+ try {
250
+ let field = JSON.parse(response).error.fields;
251
+ field = field[this.payloadName || this.name];
252
+ return (field && field[0]) || salla.lang.get('common.errors.error_occurred');
253
+ }
254
+ catch (e) {
255
+ salla.log('FileUpload:: Error', e);
256
+ return salla.lang.get('common.errors.error_occurred');
257
+ }
258
+ },
259
+ ondata: formData => {
260
+ if (this.payloadName && this.payloadName != this.name) {
261
+ formData.append(this.payloadName, this.pond.getFile(0).file);
262
+ formData.delete(this.name);
263
+ }
264
+ try {
265
+ Object.entries(JSON.parse(this.formData)).forEach((value) => value[1] && formData.append(value[0], value[1]));
266
+ }
267
+ catch (e) {
268
+ salla.log('Error to inject formData', e);
269
+ }
270
+ return formData;
271
+ }
272
+ },
273
+ },
327
274
  instantUpload: this.instantUpload,
328
275
  chunkUploads: this.chunkUploads,
329
276
  chunkForce: this.chunkForce,
@@ -332,23 +279,17 @@ export class SallaFileUpload {
332
279
  labelDecimalSeparator: this.labelDecimalSeparator,
333
280
  labelThousandsSeparator: this.labelThousandsSeparator,
334
281
  labelIdle: this.labelIdle,
282
+ //todo:: pass support types from props
335
283
  acceptedFileTypes: ['image/jpg', 'image/png', 'image/jpeg', 'image/gif', 'video/*'],
336
284
  labelInvalidField: this.labelInvalidField,
337
285
  labelFileWaitingForSize: this.labelFileWaitingForSize,
286
+ // onprocessfile: (error, file) =>salla.log(error, JSON.parse(file.serverId)),
338
287
  beforeRemoveFile: (file_deleted) => new Promise((resolve) => {
339
- this.remove.emit(file_deleted);
340
- setTimeout(() => {
341
- // TODO: needs a better way
342
- this.host.style.height = '120px !important';
343
- }, 1000);
288
+ this.removed.emit(file_deleted);
344
289
  resolve(true);
345
290
  }),
346
291
  });
347
292
  }
348
- render() {
349
- return (h(Host, { class: "s-file-upload" },
350
- h("input", { type: "file", name: "filepond", ref: ele => this.fileUploader = ele, class: "s-file-upload-wrapper s-file-upload-input", accept: "image/png, image/jpeg, image/jpg, image/gif" })));
351
- }
352
293
  static get is() { return "salla-file-upload"; }
353
294
  static get originalStyleUrls() { return {
354
295
  "$": ["salla-file-upload.scss"]
@@ -357,7 +298,7 @@ export class SallaFileUpload {
357
298
  "$": ["salla-file-upload.css"]
358
299
  }; }
359
300
  static get properties() { return {
360
- "uploadedImage": {
301
+ "value": {
361
302
  "type": "string",
362
303
  "mutable": true,
363
304
  "complexType": {
@@ -371,9 +312,113 @@ export class SallaFileUpload {
371
312
  "tags": [],
372
313
  "text": "The uploaded image link or URL"
373
314
  },
374
- "attribute": "uploaded-image",
315
+ "attribute": "value",
316
+ "reflect": true
317
+ },
318
+ "name": {
319
+ "type": "string",
320
+ "mutable": false,
321
+ "complexType": {
322
+ "original": "string",
323
+ "resolved": "string",
324
+ "references": {}
325
+ },
326
+ "required": false,
327
+ "optional": false,
328
+ "docs": {
329
+ "tags": [],
330
+ "text": "File input name for the native formData"
331
+ },
332
+ "attribute": "name",
375
333
  "reflect": false,
376
- "defaultValue": "undefined"
334
+ "defaultValue": "'file'"
335
+ },
336
+ "payloadName": {
337
+ "type": "string",
338
+ "mutable": false,
339
+ "complexType": {
340
+ "original": "string",
341
+ "resolved": "string",
342
+ "references": {}
343
+ },
344
+ "required": false,
345
+ "optional": false,
346
+ "docs": {
347
+ "tags": [],
348
+ "text": "File input name in the request payload"
349
+ },
350
+ "attribute": "payload-name",
351
+ "reflect": false
352
+ },
353
+ "fileId": {
354
+ "type": "number",
355
+ "mutable": false,
356
+ "complexType": {
357
+ "original": "number",
358
+ "resolved": "number",
359
+ "references": {}
360
+ },
361
+ "required": false,
362
+ "optional": true,
363
+ "docs": {
364
+ "tags": [],
365
+ "text": "If current file has id, pass it here, to be passed back in the `removed` event"
366
+ },
367
+ "attribute": "file-id",
368
+ "reflect": false
369
+ },
370
+ "url": {
371
+ "type": "string",
372
+ "mutable": false,
373
+ "complexType": {
374
+ "original": "string",
375
+ "resolved": "string",
376
+ "references": {}
377
+ },
378
+ "required": false,
379
+ "optional": false,
380
+ "docs": {
381
+ "tags": [],
382
+ "text": "The url to submit the image into."
383
+ },
384
+ "attribute": "url",
385
+ "reflect": false
386
+ },
387
+ "method": {
388
+ "type": "string",
389
+ "mutable": false,
390
+ "complexType": {
391
+ "original": "string",
392
+ "resolved": "string",
393
+ "references": {}
394
+ },
395
+ "required": false,
396
+ "optional": false,
397
+ "docs": {
398
+ "tags": [],
399
+ "text": "The submit request method."
400
+ },
401
+ "attribute": "method",
402
+ "reflect": false,
403
+ "defaultValue": "'POST'"
404
+ },
405
+ "formData": {
406
+ "type": "string",
407
+ "mutable": false,
408
+ "complexType": {
409
+ "original": "string",
410
+ "resolved": "string",
411
+ "references": {}
412
+ },
413
+ "required": false,
414
+ "optional": false,
415
+ "docs": {
416
+ "tags": [],
417
+ "text": "json formData to be injected in the submit request"
418
+ },
419
+ "attribute": "form-data",
420
+ "reflect": false,
421
+ "defaultValue": "\"{}\""
377
422
  },
378
423
  "required": {
379
424
  "type": "boolean",
@@ -390,8 +435,7 @@ export class SallaFileUpload {
390
435
  "text": "Sets the required attribute to the output field"
391
436
  },
392
437
  "attribute": "required",
393
- "reflect": false,
394
- "defaultValue": "false"
438
+ "reflect": false
395
439
  },
396
440
  "disabled": {
397
441
  "type": "boolean",
@@ -408,8 +452,7 @@ export class SallaFileUpload {
408
452
  "text": "Sets the disabled attribute to the output field"
409
453
  },
410
454
  "attribute": "disabled",
411
- "reflect": false,
412
- "defaultValue": "false"
455
+ "reflect": false
413
456
  },
414
457
  "allowDrop": {
415
458
  "type": "boolean",
@@ -462,8 +505,7 @@ export class SallaFileUpload {
462
505
  "text": "Enable or disable pasting of files. Pasting files is not supported on all browesrs."
463
506
  },
464
507
  "attribute": "allow-paste",
465
- "reflect": false,
466
- "defaultValue": "true"
508
+ "reflect": false
467
509
  },
468
510
  "allowMultiple": {
469
511
  "type": "boolean",
@@ -480,8 +522,7 @@ export class SallaFileUpload {
480
522
  "text": "Enable or disable adding multiple files"
481
523
  },
482
524
  "attribute": "allow-multiple",
483
- "reflect": false,
484
- "defaultValue": "false"
525
+ "reflect": false
485
526
  },
486
527
  "allowReplace": {
487
528
  "type": "boolean",
@@ -552,8 +593,7 @@ export class SallaFileUpload {
552
593
  "text": "Enable or disable the process button"
553
594
  },
554
595
  "attribute": "allow-process",
555
- "reflect": false,
556
- "defaultValue": "true"
596
+ "reflect": false
557
597
  },
558
598
  "allowReorder": {
559
599
  "type": "boolean",
@@ -570,8 +610,7 @@ export class SallaFileUpload {
570
610
  "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."
571
611
  },
572
612
  "attribute": "allow-reorder",
573
- "reflect": false,
574
- "defaultValue": "false"
613
+ "reflect": false
575
614
  },
576
615
  "storeAsFile": {
577
616
  "type": "boolean",
@@ -588,8 +627,7 @@ export class SallaFileUpload {
588
627
  "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."
589
628
  },
590
629
  "attribute": "store-as-file",
591
- "reflect": false,
592
- "defaultValue": "false"
630
+ "reflect": false
593
631
  },
594
632
  "forceRevert": {
595
633
  "type": "boolean",
@@ -606,8 +644,7 @@ export class SallaFileUpload {
606
644
  "text": "Set to true to require the file to be successfully reverted before continuing."
607
645
  },
608
646
  "attribute": "force-revert",
609
- "reflect": false,
610
- "defaultValue": "false"
647
+ "reflect": false
611
648
  },
612
649
  "maxFilesCount": {
613
650
  "type": "number",
@@ -660,8 +697,7 @@ export class SallaFileUpload {
660
697
  "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."
661
698
  },
662
699
  "attribute": "check-validity",
663
- "reflect": false,
664
- "defaultValue": "false"
700
+ "reflect": false
665
701
  },
666
702
  "itemInsertLocation": {
667
703
  "type": "string",
@@ -713,14 +749,13 @@ export class SallaFileUpload {
713
749
  "references": {}
714
750
  },
715
751
  "required": false,
716
- "optional": true,
752
+ "optional": false,
717
753
  "docs": {
718
754
  "tags": [],
719
755
  "text": "Show credits at the bottom of the upload element.\nStructure is like [{label,url}]"
720
756
  },
721
757
  "attribute": "credits",
722
- "reflect": false,
723
- "defaultValue": "false"
758
+ "reflect": false
724
759
  },
725
760
  "dropOnPage": {
726
761
  "type": "boolean",
@@ -737,8 +772,7 @@ export class SallaFileUpload {
737
772
  "text": "FilePond will catch all files dropped on the webpage"
738
773
  },
739
774
  "attribute": "drop-on-page",
740
- "reflect": false,
741
- "defaultValue": "false"
775
+ "reflect": false
742
776
  },
743
777
  "dropOnElement": {
744
778
  "type": "boolean",
@@ -773,8 +807,7 @@ export class SallaFileUpload {
773
807
  "text": "When enabled, files are validated before they are dropped. A file is not added when it's invalid."
774
808
  },
775
809
  "attribute": "drop-validation",
776
- "reflect": false,
777
- "defaultValue": "false"
810
+ "reflect": false
778
811
  },
779
812
  "ignoredFiles": {
780
813
  "type": "unknown",
@@ -796,53 +829,6 @@ export class SallaFileUpload {
796
829
  },
797
830
  "defaultValue": "['.ds_store', 'thumbs.db', 'desktop.ini']"
798
831
  },
799
- "serverConfig": {
800
- "type": "string",
801
- "mutable": false,
802
- "complexType": {
803
- "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 }",
804
- "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; }",
805
- "references": {
806
- "ServerUrl": {
807
- "location": "import",
808
- "path": "./interfaces"
809
- },
810
- "ProcessServerConfigFunction": {
811
- "location": "import",
812
- "path": "./interfaces"
813
- },
814
- "RevertServerConfigFunction": {
815
- "location": "import",
816
- "path": "./interfaces"
817
- },
818
- "RestoreServerConfigFunction": {
819
- "location": "import",
820
- "path": "./interfaces"
821
- },
822
- "LoadServerConfigFunction": {
823
- "location": "import",
824
- "path": "./interfaces"
825
- },
826
- "FetchServerConfigFunction": {
827
- "location": "import",
828
- "path": "./interfaces"
829
- },
830
- "RemoveServerConfigFunction": {
831
- "location": "import",
832
- "path": "./interfaces"
833
- }
834
- }
835
- },
836
- "required": false,
837
- "optional": false,
838
- "docs": {
839
- "tags": [],
840
- "text": "A server configuration object describing how FilePond should interact with the server."
841
- },
842
- "attribute": "server-config",
843
- "reflect": false,
844
- "defaultValue": "{\n process: async (_fieldName, file, _metadata, load, error, _progress, abort, _transfer, _options) => {\n const formData = new FormData();\n formData.append(\"image_url\", file, file.name);\n return await salla.product.uploadGiftImage(formData)\n .then((resp) => {\n this.uploadedImage = resp.data.url\n this.uploaded.emit(resp.data.url);\n load('success')\n }).catch(e => {\n console.log(e)\n error('error')\n })\n .finally(() => {\n return {\n abort: () => {\n abort();\n },\n };\n })\n }\n }"
845
- },
846
832
  "instantUpload": {
847
833
  "type": "boolean",
848
834
  "mutable": false,
@@ -858,8 +844,7 @@ export class SallaFileUpload {
858
844
  "text": "Immediately upload new files to the server"
859
845
  },
860
846
  "attribute": "instant-upload",
861
- "reflect": false,
862
- "defaultValue": "false"
847
+ "reflect": false
863
848
  },
864
849
  "chunkUploads": {
865
850
  "type": "boolean",
@@ -876,8 +861,7 @@ export class SallaFileUpload {
876
861
  "text": "Enable chunked uploads, when enabled will automatically cut up files in chunkSize chunks before upload."
877
862
  },
878
863
  "attribute": "chunk-uploads",
879
- "reflect": false,
880
- "defaultValue": "false"
864
+ "reflect": false
881
865
  },
882
866
  "chunkForce": {
883
867
  "type": "boolean",
@@ -894,8 +878,7 @@ export class SallaFileUpload {
894
878
  "text": "Force chunks even for files smaller than the set chunkSize"
895
879
  },
896
880
  "attribute": "chunk-force",
897
- "reflect": false,
898
- "defaultValue": "false"
881
+ "reflect": false
899
882
  },
900
883
  "chunkSize": {
901
884
  "type": "number",
@@ -992,384 +975,6 @@ export class SallaFileUpload {
992
975
  "reflect": false,
993
976
  "defaultValue": "this.getLabel()"
994
977
  },
995
- "labelInvalidField": {
996
- "type": "string",
997
- "mutable": false,
998
- "complexType": {
999
- "original": "string",
1000
- "resolved": "string",
1001
- "references": {}
1002
- },
1003
- "required": false,
1004
- "optional": false,
1005
- "docs": {
1006
- "tags": [],
1007
- "text": "Label shown when the field contains invalid files and is validated by the parent form."
1008
- },
1009
- "attribute": "label-invalid-field",
1010
- "reflect": false,
1011
- "defaultValue": "salla.lang.get(\"common.uploader.invalid_field\")"
1012
- },
1013
- "labelFileWaitingForSize": {
1014
- "type": "string",
1015
- "mutable": false,
1016
- "complexType": {
1017
- "original": "string",
1018
- "resolved": "string",
1019
- "references": {}
1020
- },
1021
- "required": false,
1022
- "optional": false,
1023
- "docs": {
1024
- "tags": [],
1025
- "text": "Label used while waiting for file size information."
1026
- },
1027
- "attribute": "label-file-waiting-for-size",
1028
- "reflect": false,
1029
- "defaultValue": "salla.lang.get('common.uploader.waiting_file_info')"
1030
- },
1031
- "labelFileSizeNotAvailable": {
1032
- "type": "string",
1033
- "mutable": false,
1034
- "complexType": {
1035
- "original": "string",
1036
- "resolved": "string",
1037
- "references": {}
1038
- },
1039
- "required": false,
1040
- "optional": false,
1041
- "docs": {
1042
- "tags": [],
1043
- "text": "Label used when no file size information was received"
1044
- },
1045
- "attribute": "label-file-size-not-available",
1046
- "reflect": false,
1047
- "defaultValue": "salla.lang.get('common.uploader.size_not_available')"
1048
- },
1049
- "labelFileLoading": {
1050
- "type": "string",
1051
- "mutable": false,
1052
- "complexType": {
1053
- "original": "string",
1054
- "resolved": "string",
1055
- "references": {}
1056
- },
1057
- "required": false,
1058
- "optional": false,
1059
- "docs": {
1060
- "tags": [],
1061
- "text": "Label used while loading a file"
1062
- },
1063
- "attribute": "label-file-loading",
1064
- "reflect": false,
1065
- "defaultValue": "salla.lang.get('common.elements.loading')"
1066
- },
1067
- "labelFileLoadError": {
1068
- "type": "string",
1069
- "mutable": false,
1070
- "complexType": {
1071
- "original": "string",
1072
- "resolved": "string",
1073
- "references": {}
1074
- },
1075
- "required": false,
1076
- "optional": false,
1077
- "docs": {
1078
- "tags": [],
1079
- "text": "Label used when file load failed"
1080
- },
1081
- "attribute": "label-file-load-error",
1082
- "reflect": false,
1083
- "defaultValue": "salla.lang.get('common.uploader.failed_to_load')"
1084
- },
1085
- "labelFileProcessing": {
1086
- "type": "string",
1087
- "mutable": false,
1088
- "complexType": {
1089
- "original": "string",
1090
- "resolved": "string",
1091
- "references": {}
1092
- },
1093
- "required": false,
1094
- "optional": false,
1095
- "docs": {
1096
- "tags": [],
1097
- "text": "Label used when uploading a file"
1098
- },
1099
- "attribute": "label-file-processing",
1100
- "reflect": false,
1101
- "defaultValue": "salla.lang.get('common.uploader.uploading')"
1102
- },
1103
- "labelFileProcessingComplete": {
1104
- "type": "string",
1105
- "mutable": false,
1106
- "complexType": {
1107
- "original": "string",
1108
- "resolved": "string",
1109
- "references": {}
1110
- },
1111
- "required": false,
1112
- "optional": false,
1113
- "docs": {
1114
- "tags": [],
1115
- "text": "Label used when file upload has completed"
1116
- },
1117
- "attribute": "label-file-processing-complete",
1118
- "reflect": false,
1119
- "defaultValue": "salla.lang.get('common.uploader.upload_completed')"
1120
- },
1121
- "labelFileProcessingAborted": {
1122
- "type": "string",
1123
- "mutable": false,
1124
- "complexType": {
1125
- "original": "string",
1126
- "resolved": "string",
1127
- "references": {}
1128
- },
1129
- "required": false,
1130
- "optional": false,
1131
- "docs": {
1132
- "tags": [],
1133
- "text": "Label used when upload was cancelled"
1134
- },
1135
- "attribute": "label-file-processing-aborted",
1136
- "reflect": false,
1137
- "defaultValue": "salla.lang.get('common.uploader.upload_cancelled')"
1138
- },
1139
- "labelFileProcessingError": {
1140
- "type": "string",
1141
- "mutable": false,
1142
- "complexType": {
1143
- "original": "string",
1144
- "resolved": "string",
1145
- "references": {}
1146
- },
1147
- "required": false,
1148
- "optional": false,
1149
- "docs": {
1150
- "tags": [],
1151
- "text": "Label used when something went wrong during file upload"
1152
- },
1153
- "attribute": "label-file-processing-error",
1154
- "reflect": false,
1155
- "defaultValue": "salla.lang.get('common.uploader.error_uploading')"
1156
- },
1157
- "labelFileProcessingRevertError": {
1158
- "type": "string",
1159
- "mutable": false,
1160
- "complexType": {
1161
- "original": "string",
1162
- "resolved": "string",
1163
- "references": {}
1164
- },
1165
- "required": false,
1166
- "optional": false,
1167
- "docs": {
1168
- "tags": [],
1169
- "text": "Label used when something went wrong during reverting the file upload"
1170
- },
1171
- "attribute": "label-file-processing-revert-error",
1172
- "reflect": false,
1173
- "defaultValue": "salla.lang.get('common.uploader.error_reverting')"
1174
- },
1175
- "labelFileRemoveError": {
1176
- "type": "string",
1177
- "mutable": false,
1178
- "complexType": {
1179
- "original": "string",
1180
- "resolved": "string",
1181
- "references": {}
1182
- },
1183
- "required": false,
1184
- "optional": false,
1185
- "docs": {
1186
- "tags": [],
1187
- "text": "Label used to indicate something went wrong when removing the file"
1188
- },
1189
- "attribute": "label-file-remove-error",
1190
- "reflect": false,
1191
- "defaultValue": "salla.lang.get('common.uploader.error_removing')"
1192
- },
1193
- "labelTapToCancel": {
1194
- "type": "string",
1195
- "mutable": false,
1196
- "complexType": {
1197
- "original": "string",
1198
- "resolved": "string",
1199
- "references": {}
1200
- },
1201
- "required": false,
1202
- "optional": false,
1203
- "docs": {
1204
- "tags": [],
1205
- "text": "Label used to indicate to the user that an action can be cancelled."
1206
- },
1207
- "attribute": "label-tap-to-cancel",
1208
- "reflect": false,
1209
- "defaultValue": "salla.lang.get(\"common.elements.cancel\")"
1210
- },
1211
- "labelTapToRetry": {
1212
- "type": "string",
1213
- "mutable": false,
1214
- "complexType": {
1215
- "original": "string",
1216
- "resolved": "string",
1217
- "references": {}
1218
- },
1219
- "required": false,
1220
- "optional": false,
1221
- "docs": {
1222
- "tags": [],
1223
- "text": "Label used to indicate to the user that an action can be retried."
1224
- },
1225
- "attribute": "label-tap-to-retry",
1226
- "reflect": false,
1227
- "defaultValue": "salla.lang.get(\"common.elements.retry\")"
1228
- },
1229
- "labelTapToUndo": {
1230
- "type": "string",
1231
- "mutable": false,
1232
- "complexType": {
1233
- "original": "string",
1234
- "resolved": "string",
1235
- "references": {}
1236
- },
1237
- "required": false,
1238
- "optional": false,
1239
- "docs": {
1240
- "tags": [],
1241
- "text": "Label used to indicate to the user that an action can be undone."
1242
- },
1243
- "attribute": "label-tap-to-undo",
1244
- "reflect": false,
1245
- "defaultValue": "salla.lang.get(\"common.uploader.revert\")"
1246
- },
1247
- "labelButtonRemoveItem": {
1248
- "type": "string",
1249
- "mutable": false,
1250
- "complexType": {
1251
- "original": "string",
1252
- "resolved": "string",
1253
- "references": {}
1254
- },
1255
- "required": false,
1256
- "optional": false,
1257
- "docs": {
1258
- "tags": [],
1259
- "text": "Label used for remove button"
1260
- },
1261
- "attribute": "label-button-remove-item",
1262
- "reflect": false,
1263
- "defaultValue": "salla.lang.get(\"common.elements.remove\")"
1264
- },
1265
- "labelButtonAbortItemLoad": {
1266
- "type": "string",
1267
- "mutable": false,
1268
- "complexType": {
1269
- "original": "string",
1270
- "resolved": "string",
1271
- "references": {}
1272
- },
1273
- "required": false,
1274
- "optional": false,
1275
- "docs": {
1276
- "tags": [],
1277
- "text": "Label used for abort load button"
1278
- },
1279
- "attribute": "label-button-abort-item-load",
1280
- "reflect": false,
1281
- "defaultValue": "salla.lang.get(\"common.elements.abort\")"
1282
- },
1283
- "labelButtonRetryItemLoad": {
1284
- "type": "string",
1285
- "mutable": false,
1286
- "complexType": {
1287
- "original": "string",
1288
- "resolved": "string",
1289
- "references": {}
1290
- },
1291
- "required": false,
1292
- "optional": false,
1293
- "docs": {
1294
- "tags": [],
1295
- "text": "Label used for retry load button"
1296
- },
1297
- "attribute": "label-button-retry-item-load",
1298
- "reflect": false,
1299
- "defaultValue": "salla.lang.get(\"common.elements.retry\")"
1300
- },
1301
- "labelButtonAbortItemProcessing": {
1302
- "type": "string",
1303
- "mutable": false,
1304
- "complexType": {
1305
- "original": "string",
1306
- "resolved": "string",
1307
- "references": {}
1308
- },
1309
- "required": false,
1310
- "optional": false,
1311
- "docs": {
1312
- "tags": [],
1313
- "text": "Label used for abort upload button"
1314
- },
1315
- "attribute": "label-button-abort-item-processing",
1316
- "reflect": false,
1317
- "defaultValue": "salla.lang.get(\"common.uploader.abort_upload\")"
1318
- },
1319
- "labelButtonUndoItemProcessing": {
1320
- "type": "string",
1321
- "mutable": false,
1322
- "complexType": {
1323
- "original": "string",
1324
- "resolved": "string",
1325
- "references": {}
1326
- },
1327
- "required": false,
1328
- "optional": false,
1329
- "docs": {
1330
- "tags": [],
1331
- "text": "Label used for undo upload button"
1332
- },
1333
- "attribute": "label-button-undo-item-processing",
1334
- "reflect": false,
1335
- "defaultValue": "salla.lang.get(\"common.elements.undo\")"
1336
- },
1337
- "labelButtonRetryItemProcessing": {
1338
- "type": "string",
1339
- "mutable": false,
1340
- "complexType": {
1341
- "original": "string",
1342
- "resolved": "string",
1343
- "references": {}
1344
- },
1345
- "required": false,
1346
- "optional": false,
1347
- "docs": {
1348
- "tags": [],
1349
- "text": "Label used for retry upload button"
1350
- },
1351
- "attribute": "label-button-retry-item-processing",
1352
- "reflect": false,
1353
- "defaultValue": "`${salla.lang.get(\"common.elements.retry\")} ${salla.lang.get(\"common.uploader.upload\")}`"
1354
- },
1355
- "labelButtonProcessItem": {
1356
- "type": "string",
1357
- "mutable": false,
1358
- "complexType": {
1359
- "original": "string",
1360
- "resolved": "string",
1361
- "references": {}
1362
- },
1363
- "required": false,
1364
- "optional": false,
1365
- "docs": {
1366
- "tags": [],
1367
- "text": "Label used for upload button"
1368
- },
1369
- "attribute": "label-button-process-item",
1370
- "reflect": false,
1371
- "defaultValue": "salla.lang.get(\"common.uploader.upload\")"
1372
- },
1373
978
  "iconRemove": {
1374
979
  "type": "string",
1375
980
  "mutable": false,
@@ -1444,8 +1049,28 @@ export class SallaFileUpload {
1444
1049
  }
1445
1050
  }; }
1446
1051
  static get states() { return {
1447
- "pond": {},
1448
- "files": {}
1052
+ "files": {},
1053
+ "labelInvalidField": {},
1054
+ "labelFileWaitingForSize": {},
1055
+ "labelFileSizeNotAvailable": {},
1056
+ "labelFileLoading": {},
1057
+ "labelFileLoadError": {},
1058
+ "labelFileProcessing": {},
1059
+ "labelFileProcessingComplete": {},
1060
+ "labelFileProcessingAborted": {},
1061
+ "labelFileProcessingError": {},
1062
+ "labelFileProcessingRevertError": {},
1063
+ "labelFileRemoveError": {},
1064
+ "labelTapToCancel": {},
1065
+ "labelTapToRetry": {},
1066
+ "labelTapToUndo": {},
1067
+ "labelButtonRemoveItem": {},
1068
+ "labelButtonAbortItemLoad": {},
1069
+ "labelButtonRetryItemLoad": {},
1070
+ "labelButtonAbortItemProcessing": {},
1071
+ "labelButtonUndoItemProcessing": {},
1072
+ "labelButtonRetryItemProcessing": {},
1073
+ "labelButtonProcessItem": {}
1449
1074
  }; }
1450
1075
  static get events() { return [{
1451
1076
  "method": "uploaded",
@@ -1463,8 +1088,8 @@ export class SallaFileUpload {
1463
1088
  "references": {}
1464
1089
  }
1465
1090
  }, {
1466
- "method": "remove",
1467
- "name": "remove",
1091
+ "method": "removed",
1092
+ "name": "removed",
1468
1093
  "bubbles": true,
1469
1094
  "cancelable": true,
1470
1095
  "composed": true,
@@ -1478,30 +1103,5 @@ export class SallaFileUpload {
1478
1103
  "references": {}
1479
1104
  }
1480
1105
  }]; }
1481
- static get methods() { return {
1482
- "appendFile": {
1483
- "complexType": {
1484
- "signature": "(file: FilePondInitialFile) => Promise<FilePondInitialFile[]>",
1485
- "parameters": [{
1486
- "tags": [],
1487
- "text": ""
1488
- }],
1489
- "references": {
1490
- "Promise": {
1491
- "location": "global"
1492
- },
1493
- "FilePondInitialFile": {
1494
- "location": "import",
1495
- "path": "./interfaces"
1496
- }
1497
- },
1498
- "return": "Promise<FilePondInitialFile[]>"
1499
- },
1500
- "docs": {
1501
- "text": "Append intial file",
1502
- "tags": []
1503
- }
1504
- }
1505
- }; }
1506
1106
  static get elementRef() { return "host"; }
1507
1107
  }