@salla.sa/twilight-components 1.6.3 → 1.6.5

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 (103) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/salla-button_27.cjs.entry.js +27877 -0
  3. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +26 -0
  4. package/dist/cjs/salla-scopes.cjs.entry.js +9 -6
  5. package/dist/cjs/salla-select.cjs.entry.js +159 -0
  6. package/dist/cjs/twilight-components.cjs.js +1 -1
  7. package/dist/collection/assets/svg/caret-down.svg +0 -1
  8. package/dist/collection/assets/svg/images.svg +0 -1
  9. package/dist/collection/collection-manifest.json +5 -0
  10. package/dist/collection/components/salla-datetime-picker/interfaces.js +4 -0
  11. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.css +13 -0
  12. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1374 -0
  13. package/dist/collection/components/salla-file-upload/interfaces.js +42 -0
  14. package/dist/collection/components/salla-file-upload/salla-file-upload.css +219 -0
  15. package/dist/collection/components/salla-file-upload/salla-file-upload.js +1435 -0
  16. package/dist/collection/components/salla-gifting/gift-schema.js +4 -0
  17. package/dist/collection/components/salla-gifting/intefaces.js +4 -0
  18. package/dist/collection/components/salla-gifting/salla-gifting.css +20 -0
  19. package/dist/collection/components/salla-gifting/salla-gifting.js +564 -0
  20. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +23 -13
  21. package/dist/collection/components/salla-login-modal/salla-login-modal.js +48 -29
  22. package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.css +3 -0
  23. package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +69 -0
  24. package/dist/collection/components/salla-loyalty/salla-loyalty.css +0 -4
  25. package/dist/collection/components/salla-loyalty/salla-loyalty.js +29 -16
  26. package/dist/collection/components/salla-modal/salla-modal.css +6 -1
  27. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +37 -13
  28. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +23 -8
  29. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +87 -64
  30. package/dist/collection/components/salla-scopes/salla-scopes.js +11 -7
  31. package/dist/collection/components/salla-search/salla-search.js +1 -1
  32. package/dist/collection/components/salla-select/salla-select.css +86 -0
  33. package/dist/collection/components/salla-select/salla-select.js +610 -0
  34. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -3
  35. package/dist/collection/components/salla-tel-input/interfaces.js +4 -0
  36. package/dist/collection/components/salla-tel-input/salla-tel-input.css +1 -2
  37. package/dist/collection/components/salla-tel-input/salla-tel-input.js +32 -3
  38. package/dist/collection/components/salla-verify/salla-verify.js +1 -1
  39. package/dist/collection/global/app.js +15 -12
  40. package/dist/components/_commonjsHelpers.js +24 -0
  41. package/dist/components/anime.es.js +1312 -0
  42. package/dist/components/index.d.ts +5 -0
  43. package/dist/components/index.js +5 -0
  44. package/dist/components/salla-datetime-picker.d.ts +11 -0
  45. package/dist/components/salla-datetime-picker.js +9 -0
  46. package/dist/components/salla-datetime-picker2.js +2876 -0
  47. package/dist/components/salla-file-upload.d.ts +11 -0
  48. package/dist/components/salla-file-upload.js +9 -0
  49. package/dist/components/salla-file-upload2.js +14623 -0
  50. package/dist/components/salla-gifting.d.ts +11 -0
  51. package/dist/components/salla-gifting.js +499 -0
  52. package/dist/components/salla-localization-modal.js +31 -16
  53. package/dist/components/salla-login-modal.js +37 -20
  54. package/dist/components/salla-loyalty-prize-item.d.ts +11 -0
  55. package/dist/components/salla-loyalty-prize-item.js +42 -0
  56. package/dist/components/salla-loyalty.js +28 -17
  57. package/dist/components/salla-modal2.js +1 -1
  58. package/dist/components/salla-offer-modal.js +42 -12
  59. package/dist/components/salla-product-size-guide.js +21 -6
  60. package/dist/components/salla-rating-modal.js +47 -19
  61. package/dist/components/salla-scopes.js +10 -6
  62. package/dist/components/salla-search.js +1 -1
  63. package/dist/components/salla-select.d.ts +11 -0
  64. package/dist/components/salla-select.js +199 -0
  65. package/dist/components/salla-social-share.js +2 -1311
  66. package/dist/components/salla-swiper2.js +9 -9
  67. package/dist/components/salla-tel-input2.js +15 -18
  68. package/dist/components/salla-verify2.js +1 -1
  69. package/dist/esm/loader.js +1 -1
  70. package/dist/esm/salla-button_27.entry.js +27847 -0
  71. package/dist/esm/salla-loyalty-prize-item.entry.js +22 -0
  72. package/dist/esm/salla-scopes.entry.js +9 -6
  73. package/dist/esm/salla-select.entry.js +155 -0
  74. package/dist/esm/twilight-components.js +1 -1
  75. package/dist/twilight-components/p-49125b6a.entry.js +4 -0
  76. package/dist/twilight-components/p-6087187d.entry.js +22 -0
  77. package/dist/twilight-components/p-9a25753c.entry.js +4 -0
  78. package/dist/twilight-components/p-df1eb1e5.entry.js +4 -0
  79. package/dist/twilight-components/twilight-components.esm.js +1 -1
  80. package/dist/types/components/salla-datetime-picker/interfaces.d.ts +8 -0
  81. package/dist/types/components/salla-datetime-picker/salla-datetime-picker.d.ts +250 -0
  82. package/dist/types/components/salla-file-upload/interfaces.d.ts +766 -0
  83. package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +267 -0
  84. package/dist/types/components/salla-gifting/gift-schema.d.ts +20 -0
  85. package/dist/types/components/salla-gifting/intefaces.d.ts +18 -0
  86. package/dist/types/components/salla-gifting/salla-gifting.d.ts +98 -0
  87. package/dist/types/components/salla-localization-modal/salla-localization-modal.d.ts +3 -2
  88. package/dist/types/components/salla-login-modal/salla-login-modal.d.ts +13 -3
  89. package/dist/types/components/salla-loyalty/salla-loyalty-prize-item.d.ts +8 -0
  90. package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +2 -0
  91. package/dist/types/components/salla-offer-modal/salla-offer-modal.d.ts +3 -1
  92. package/dist/types/components/salla-product-size-guide/salla-product-size-guide.d.ts +4 -0
  93. package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +3 -2
  94. package/dist/types/components/salla-scopes/salla-scopes.d.ts +1 -0
  95. package/dist/types/components/salla-select/salla-select.d.ts +110 -0
  96. package/dist/types/components/salla-tel-input/interfaces.d.ts +4 -0
  97. package/dist/types/components/salla-tel-input/salla-tel-input.d.ts +3 -0
  98. package/dist/types/components.d.ts +1253 -10
  99. package/package.json +3 -3
  100. package/dist/cjs/salla-button_24.cjs.entry.js +0 -10087
  101. package/dist/esm/salla-button_24.entry.js +0 -10060
  102. package/dist/twilight-components/p-30b2c5b0.entry.js +0 -4
  103. package/dist/twilight-components/p-5fb32395.entry.js +0 -4
@@ -5,6 +5,10 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { DateLimit, DateOption, Hook, LocaleKey } from "./components/salla-datetime-picker/interfaces";
9
+ import { FetchServerConfigFunction, FilePondFile, FilePondInitialFile, LoadServerConfigFunction, ProcessServerConfigFunction, RemoveServerConfigFunction, RestoreServerConfigFunction, RevertServerConfigFunction, ServerUrl } from "./components/salla-file-upload/interfaces";
10
+ import { Item } from "./components/salla-loyalty/loyalty-schema";
11
+ import { Phone } from "./components/salla-tel-input/interfaces";
8
12
  export namespace Components {
9
13
  interface SallaAddProductButton {
10
14
  /**
@@ -93,6 +97,498 @@ export namespace Components {
93
97
  }
94
98
  interface SallaConditionalFields {
95
99
  }
100
+ interface SallaDatetimePicker {
101
+ /**
102
+ * Allows the user to enter a date directly into the input field. By default, direct entry is disabled.
103
+ */
104
+ "allowInput": boolean;
105
+ /**
106
+ * Allows the preloading of an invalid date. When disabled, the field will be cleared if the provided date is invalid
107
+ */
108
+ "allowInvalidPreload": boolean;
109
+ /**
110
+ * Exactly the same as date format, but for the altInput field.
111
+ */
112
+ "altFormat": string;
113
+ /**
114
+ * Show the user a readable date (as per altFormat), but return something totally different to the server.
115
+ */
116
+ "altInput": boolean;
117
+ /**
118
+ * This class will be added to the input element created by the altInput option. Note that altInput already inherits classes from the original input.
119
+ */
120
+ "altInputClass": string;
121
+ /**
122
+ * Instead of body, appends the calendar to the specified node instead.
123
+ */
124
+ "appendTo": HTMLElement;
125
+ /**
126
+ * Defines how the date will be formatted in the aria-label for calendar days, using the same tokens as dateFormat. If you change this, you should choose a value that will make sense if a screen reader reads it out loud.
127
+ */
128
+ "ariaDateFormat": string;
129
+ /**
130
+ * Whether the default time should be auto-filled when the input is empty and gains or loses focus.
131
+ */
132
+ "autoFillDefaultTime": boolean;
133
+ /**
134
+ * Whether clicking on the input should open the picker. Set it to false if you only want to open the calendar programmatically with [open()]
135
+ */
136
+ "clickOpens": boolean;
137
+ /**
138
+ * Whether calendar should close after date selection or not
139
+ */
140
+ "closeOnSelect": boolean;
141
+ /**
142
+ * When in "multiple" mode, conjunction is used to separate dates in the entry field.
143
+ */
144
+ "conjunction"?: string;
145
+ /**
146
+ * A string of characters which are used to define how the date will be displayed in the input box. The supported characters are defined in the table below.
147
+ */
148
+ "dateFormat": string;
149
+ /**
150
+ * A custom datestring parser
151
+ */
152
+ "dateParser": (date: string, format: string) => Date;
153
+ /**
154
+ * Sets the initial selected date(s). If you're using mode: "multiple" or a range calendar supply an Array of Date objects or an Array of date strings which follow your dateFormat. Otherwise, you can supply a single Date object or a date string.
155
+ */
156
+ "defaultDate": DateOption | DateOption[];
157
+ /**
158
+ * Initial value of the hour element, when no date is selected
159
+ */
160
+ "defaultHour": number;
161
+ /**
162
+ * Initial value of the minute element, when no date is selected
163
+ */
164
+ "defaultMinute": number;
165
+ /**
166
+ * Initial value of the seconds element, when no date is selected
167
+ */
168
+ "defaultSeconds": number;
169
+ /**
170
+ * Disables certain dates, preventing them from being selected. See https://chmln.github.io/flatpickr/examples/#disabling-specific-dates
171
+ */
172
+ "disable": DateLimit<DateOption>[];
173
+ /**
174
+ * Set this to true to always use the non-native picker on mobile devices. By default, Flatpickr utilizes native datetime widgets unless certain options (e.g. disable) are used.
175
+ */
176
+ "disableMobile": boolean;
177
+ /**
178
+ * Disables all dates except these specified. See https://chmln.github.io/flatpickr/examples/#disabling-all-dates-except-select-few
179
+ */
180
+ "enable": DateLimit<DateOption>[];
181
+ /**
182
+ * Enables seconds selection in the time picker.
183
+ */
184
+ "enableSeconds": boolean;
185
+ /**
186
+ * Enables the time picker
187
+ */
188
+ "enableTime": boolean;
189
+ /**
190
+ * Allows using a custom date formatting function instead of the built-in handling for date formats using dateFormat, altFormat, etc.
191
+ */
192
+ "formatDate": (date: Date, format: string, locale: Object) => string;
193
+ /**
194
+ * Adjusts the step for the hour input (incl. scrolling)
195
+ */
196
+ "hourIncrement": number;
197
+ /**
198
+ * Displays the calendar inline
199
+ */
200
+ "inline": boolean;
201
+ /**
202
+ * The locale, either as a string (e.g. "ar", "en") or as an object. See https://chmln.github.io/flatpickr/localization/
203
+ */
204
+ "locale": LocaleKey;
205
+ /**
206
+ * The maximum date that a user can pick to (inclusive).
207
+ */
208
+ "maxDate": DateOption;
209
+ /**
210
+ * The minimum date that a user can start picking from (inclusive).
211
+ */
212
+ "maxTime": DateOption;
213
+ /**
214
+ * The minimum date that a user can start picking from (inclusive).
215
+ */
216
+ "minDate": DateOption;
217
+ /**
218
+ * The minimum time that a user can start picking from (inclusive).
219
+ */
220
+ "minTime": DateOption;
221
+ /**
222
+ * Adjusts the step for the minute input (incl. scrolling) Defaults to 5
223
+ */
224
+ "minuteIncrement": number;
225
+ /**
226
+ * Date selection mode, defaults to "single"
227
+ */
228
+ "mode": "single" | "multiple" | "range" | "time";
229
+ /**
230
+ * How the month should be displayed in the header of the calendar. If showMonths has a value greater than 1, the month is always shown as static.
231
+ */
232
+ "monthSelectorType": "dropdown" | "static";
233
+ /**
234
+ * HTML for the arrow icon, used to switch months.
235
+ */
236
+ "nextArrow": string;
237
+ /**
238
+ * Hides the day selection in calendar. Use it along with enableTime to create a time picker.
239
+ */
240
+ "noCalendar": boolean;
241
+ /**
242
+ * Fires when the selected dates have changed - when a date is picked or cleared, by user or programmatically.
243
+ */
244
+ "onChange": Hook | Hook[];
245
+ /**
246
+ * Fires when the calendar is closed
247
+ */
248
+ "onClose": Hook | Hook[];
249
+ /**
250
+ * Fires for every day cell in the calendar, where the fourth argument is the html element of the cell. See https://chmln.github.io/flatpickr/events/#ondaycreate
251
+ */
252
+ "onDayCreate": Hook | Hook[];
253
+ /**
254
+ * Fires before the calendar instance is destroyed
255
+ */
256
+ "onDestroy": Hook | Hook[];
257
+ /**
258
+ * Fires when valid keyboard input for calendar is detected
259
+ */
260
+ "onKeyDown": Hook | Hook[];
261
+ /**
262
+ * Fires after the month has changed
263
+ */
264
+ "onMonthChange": Hook | Hook[];
265
+ /**
266
+ * Fires after the calendar is opened
267
+ */
268
+ "onOpen": Hook | Hook[];
269
+ /**
270
+ * Fires after the configuration for the calendar is parsed
271
+ */
272
+ "onParseConfig": Hook | Hook[];
273
+ /**
274
+ * Fires once the calendar instance is ready
275
+ */
276
+ "onReady": Hook | Hook[];
277
+ /**
278
+ * Like onChange, but fires immediately after any date changes
279
+ */
280
+ "onValueUpdate": Hook | Hook[];
281
+ /**
282
+ * Fires after the year has changed
283
+ */
284
+ "onYearChange": Hook | Hook[];
285
+ /**
286
+ * Placeholder text to show on the input element
287
+ */
288
+ "placeholder": string;
289
+ /**
290
+ * How the calendar should be positioned with regards to the input. Defaults to "auto"
291
+ */
292
+ "position": "auto" | "above" | "below" | "auto left" | "auto center" | "auto right" | "above left" | "above center" | "above right" | "below left" | "below center" | "below right" | ((self: any, customElement: HTMLElement | undefined) => void);
293
+ /**
294
+ * The element off of which the calendar will be positioned. Defaults to the date input
295
+ */
296
+ "positionElement": HTMLElement;
297
+ /**
298
+ * HTML for the left arrow icon, used to switch months.
299
+ */
300
+ "prevArrow": string;
301
+ /**
302
+ * Whether to display the current month name in shorthand mode, e.g. "Sep" instead "September"
303
+ */
304
+ "shorthandCurrentMonth": boolean;
305
+ /**
306
+ * The number of months to be shown at the same time when displaying the calendar.
307
+ */
308
+ "showMonths": number;
309
+ /**
310
+ * Position the calendar inside the wrapper and next to the input element*.
311
+ */
312
+ "static": boolean;
313
+ /**
314
+ * Displays time picker in 24 hour mode without AM/PM selection when enabled.
315
+ */
316
+ "time_24hr": boolean;
317
+ /**
318
+ * Two way data binding to retrieve the selected date[time] value
319
+ */
320
+ "value": string;
321
+ /**
322
+ * Enables display of week numbers in calendar.
323
+ */
324
+ "weekNumbers": boolean;
325
+ /**
326
+ * See https://chmln.github.io/flatpickr/examples/#flatpickr-external-elements
327
+ */
328
+ "wrap": boolean;
329
+ }
330
+ interface SallaFileUpload {
331
+ /**
332
+ * Enable or disable file browser
333
+ */
334
+ "allowBrowse": boolean;
335
+ /**
336
+ * Enable or disable drag n' drop
337
+ */
338
+ "allowDrop": boolean;
339
+ /**
340
+ * Enable or disable adding multiple files
341
+ */
342
+ "allowMultiple": boolean;
343
+ /**
344
+ * Enable or disable pasting of files. Pasting files is not supported on all browesrs.
345
+ */
346
+ "allowPaste": boolean;
347
+ /**
348
+ * Enable or disable the process button
349
+ */
350
+ "allowProcess": boolean;
351
+ /**
352
+ * When set to false the remove button is hidden and disabled
353
+ */
354
+ "allowRemove": boolean;
355
+ /**
356
+ * Allow users to reorder files with drag and drop interaction. Note that this only works in single column mode. It also only works on browsers that support pointer events.
357
+ */
358
+ "allowReorder": boolean;
359
+ /**
360
+ * Allow drop to replace a file, only works when allowMultiple is false
361
+ */
362
+ "allowReplace": boolean;
363
+ /**
364
+ * Enable or disable the revert processing button
365
+ */
366
+ "allowRevert": boolean;
367
+ /**
368
+ * Append intial file
369
+ */
370
+ "appendFile": (file: FilePondInitialFile) => Promise<FilePondInitialFile[]>;
371
+ /**
372
+ * Set to true to enable custom validity messages. FilePond will throw an error when a parent form is submitted and it contains invalid files.
373
+ */
374
+ "checkValidity": boolean;
375
+ /**
376
+ * Force chunks even for files smaller than the set chunkSize
377
+ */
378
+ "chunkForce": boolean;
379
+ /**
380
+ * Amount of times, and delayes, between retried uploading of a chunk
381
+ */
382
+ "chunkRetryDelays": Array<number>;
383
+ /**
384
+ * The size of a chunk in bytes
385
+ */
386
+ "chunkSize": number;
387
+ /**
388
+ * Enable chunked uploads, when enabled will automatically cut up files in chunkSize chunks before upload.
389
+ */
390
+ "chunkUploads": boolean;
391
+ /**
392
+ * Show credits at the bottom of the upload element. Structure is like [{label,url}]
393
+ */
394
+ "credits"?: false;
395
+ /**
396
+ * Sets the disabled attribute to the output field
397
+ */
398
+ "disabled": boolean;
399
+ /**
400
+ * Require drop on the FilePond element itself to catch the file.
401
+ */
402
+ "dropOnElement": boolean;
403
+ /**
404
+ * FilePond will catch all files dropped on the webpage
405
+ */
406
+ "dropOnPage": boolean;
407
+ /**
408
+ * When enabled, files are validated before they are dropped. A file is not added when it's invalid.
409
+ */
410
+ "dropValidation": boolean;
411
+ /**
412
+ * Set to true to require the file to be successfully reverted before continuing.
413
+ */
414
+ "forceRevert": boolean;
415
+ /**
416
+ * The icon used for process actions
417
+ */
418
+ "iconProcess": string;
419
+ /**
420
+ * The icon used for remove actions
421
+ */
422
+ "iconRemove": string;
423
+ /**
424
+ * The icon used for retry actions
425
+ */
426
+ "iconRetry": string;
427
+ /**
428
+ * The icon used for undo actions
429
+ */
430
+ "iconUndo": string;
431
+ /**
432
+ * Ignored file names when handling dropped directories. Dropping directories is not supported on all browsers.
433
+ */
434
+ "ignoredFiles": Array<any>;
435
+ /**
436
+ * Immediately upload new files to the server
437
+ */
438
+ "instantUpload": boolean;
439
+ /**
440
+ * The interval to use before showing each item being added to the list
441
+ */
442
+ "itemInsertInterval": number;
443
+ /**
444
+ * Set to 'after' to add files to end of list (when dropped at the top of the list or added using browse or paste), set to 'before' to add files at start of list. Set to a compare function to automatically sort items when added
445
+ */
446
+ "itemInsertLocation": 'before' | 'after' | ((a: FilePondFile, b: FilePondFile) => number);
447
+ /**
448
+ * Label used for abort load button
449
+ */
450
+ "labelButtonAbortItemLoad": string;
451
+ /**
452
+ * Label used for abort upload button
453
+ */
454
+ "labelButtonAbortItemProcessing": string;
455
+ /**
456
+ * Label used for upload button
457
+ */
458
+ "labelButtonProcessItem": string;
459
+ /**
460
+ * Label used for remove button
461
+ */
462
+ "labelButtonRemoveItem": string;
463
+ /**
464
+ * Label used for retry load button
465
+ */
466
+ "labelButtonRetryItemLoad": string;
467
+ /**
468
+ * Label used for retry upload button
469
+ */
470
+ "labelButtonRetryItemProcessing": string;
471
+ /**
472
+ * Label used for undo upload button
473
+ */
474
+ "labelButtonUndoItemProcessing": string;
475
+ /**
476
+ * The decimal separator used to render numbers. By default this is determined automatically.
477
+ */
478
+ "labelDecimalSeparator": string;
479
+ /**
480
+ * Label used when file load failed
481
+ */
482
+ "labelFileLoadError": string;
483
+ /**
484
+ * Label used while loading a file
485
+ */
486
+ "labelFileLoading": string;
487
+ /**
488
+ * Label used when uploading a file
489
+ */
490
+ "labelFileProcessing": string;
491
+ /**
492
+ * Label used when upload was cancelled
493
+ */
494
+ "labelFileProcessingAborted": string;
495
+ /**
496
+ * Label used when file upload has completed
497
+ */
498
+ "labelFileProcessingComplete": string;
499
+ /**
500
+ * Label used when something went wrong during file upload
501
+ */
502
+ "labelFileProcessingError": string;
503
+ /**
504
+ * Label used when something went wrong during reverting the file upload
505
+ */
506
+ "labelFileProcessingRevertError": string;
507
+ /**
508
+ * Label used to indicate something went wrong when removing the file
509
+ */
510
+ "labelFileRemoveError": string;
511
+ /**
512
+ * Label used when no file size information was received
513
+ */
514
+ "labelFileSizeNotAvailable": string;
515
+ /**
516
+ * Label used while waiting for file size information.
517
+ */
518
+ "labelFileWaitingForSize": string;
519
+ /**
520
+ * Default label shown to indicate this is a drop area. FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
521
+ */
522
+ "labelIdle": string;
523
+ /**
524
+ * Label shown when the field contains invalid files and is validated by the parent form.
525
+ */
526
+ "labelInvalidField": string;
527
+ /**
528
+ * Label used to indicate to the user that an action can be cancelled.
529
+ */
530
+ "labelTapToCancel": string;
531
+ /**
532
+ * Label used to indicate to the user that an action can be retried.
533
+ */
534
+ "labelTapToRetry": string;
535
+ /**
536
+ * Label used to indicate to the user that an action can be undone.
537
+ */
538
+ "labelTapToUndo": string;
539
+ /**
540
+ * The thousdands separator used to render numbers. By default this is determined automatically.
541
+ */
542
+ "labelThousandsSeparator": string;
543
+ /**
544
+ * The maximum number of files that the pond can handle
545
+ */
546
+ "maxFilesCount": number;
547
+ /**
548
+ * The maxmimum number of files that can be uploaded in parallel
549
+ */
550
+ "maxParallelUploads": number;
551
+ /**
552
+ * Sets the required attribute to the output field
553
+ */
554
+ "required": boolean;
555
+ /**
556
+ * A server configuration object describing how FilePond should interact with the server.
557
+ */
558
+ "serverConfig": string | {
559
+ url?: string
560
+ timeout?: number
561
+ headers?: { [key: string]: string | boolean | number };
562
+ process?: string | ServerUrl | ProcessServerConfigFunction | null;
563
+ revert?: string | ServerUrl | RevertServerConfigFunction | null;
564
+ restore?: string | ServerUrl | RestoreServerConfigFunction | null;
565
+ load?: string | ServerUrl | LoadServerConfigFunction | null;
566
+ fetch?: string | ServerUrl | FetchServerConfigFunction | null;
567
+ remove?: RemoveServerConfigFunction | null;
568
+ } | null;
569
+ /**
570
+ * Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post. This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer), this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
571
+ */
572
+ "storeAsFile": boolean;
573
+ }
574
+ interface SallaGifting {
575
+ /**
576
+ * Hide the gifting modal window
577
+ */
578
+ "close": () => Promise<HTMLElement>;
579
+ /**
580
+ * Go to the step 2
581
+ */
582
+ "goToStep2": () => Promise<void>;
583
+ /**
584
+ * Show the gifting modal window
585
+ */
586
+ "open": () => Promise<any>;
587
+ /**
588
+ * The product id for which the gifting system is required.
589
+ */
590
+ "productId": number;
591
+ }
96
592
  interface SallaInfiniteScroll {
97
593
  /**
98
594
  * Is there is need to autoload next page when scroll `next-page-autoload|next-page.autoload`
@@ -169,7 +665,7 @@ export namespace Components {
169
665
  /**
170
666
  * open the component
171
667
  */
172
- "open": () => Promise<boolean>;
668
+ "open": () => Promise<any>;
173
669
  /**
174
670
  * Change currency and language to the selected ones.
175
671
  */
@@ -240,6 +736,9 @@ export namespace Components {
240
736
  */
241
737
  "resetExchange": () => Promise<any>;
242
738
  }
739
+ interface SallaLoyaltyPrizeItem {
740
+ "item": Item;
741
+ }
243
742
  interface SallaModal {
244
743
  /**
245
744
  * Align modal content to center, defaults to `false`
@@ -317,7 +816,7 @@ export namespace Components {
317
816
  * Show offer details
318
817
  * @param offer
319
818
  */
320
- "showOffer": (offer: any) => Promise<HTMLElement>;
819
+ "showOffer": (offer: any) => Promise<void>;
321
820
  }
322
821
  interface SallaPlaceholder {
323
822
  /**
@@ -382,7 +881,7 @@ export namespace Components {
382
881
  /**
383
882
  * Show the rating modal
384
883
  */
385
- "open": () => Promise<NodeJS.Timeout>;
884
+ "open": () => Promise<any>;
386
885
  /**
387
886
  * The order id, to rate on its products & shipping
388
887
  */
@@ -438,19 +937,121 @@ export namespace Components {
438
937
  */
439
938
  "oval": boolean;
440
939
  }
441
- interface SallaSkeleton {
940
+ interface SallaSelect {
442
941
  /**
443
- * Set the skeleton height
942
+ * Enable multiple item selection
444
943
  */
445
- "height": string;
944
+ "autocomplete": boolean;
446
945
  /**
447
- * Set the shape type of the skeleton is it circle or normal
946
+ * Enable autofocus
448
947
  */
449
- "type": 'circle' | 'normal';
948
+ "autofocus": boolean;
450
949
  /**
451
- * Set the skeleton width
950
+ * Changes display of selections to chips
452
951
  */
453
- "width": string;
952
+ "chips": boolean;
953
+ /**
954
+ * Applied when using clearable and the input is dirty
955
+ */
956
+ "clearIcon": string;
957
+ /**
958
+ * Add input clear functionality, default icon is `sicon-cancel`
959
+ */
960
+ "clearable": boolean;
961
+ /**
962
+ * Applies specified color to the control.
963
+ */
964
+ "color": 'primary' | 'success' | 'warning' | 'danger' | 'light' | 'gray' | 'dark';
965
+ /**
966
+ * Disable the input
967
+ */
968
+ "disabled": boolean;
969
+ /**
970
+ * Remove elevation or box shadow.
971
+ */
972
+ "flat": boolean;
973
+ /**
974
+ * Hides hint if any
975
+ */
976
+ "hideDetail": boolean;
977
+ /**
978
+ * Hint text
979
+ */
980
+ "hint": string;
981
+ /**
982
+ * Set property of items’s disabled value
983
+ */
984
+ "itemDisabled": string;
985
+ /**
986
+ * Set property of items’s text value
987
+ */
988
+ "itemText": string;
989
+ /**
990
+ * Set property of items’s value - must be primitive. Dot notation is supported.
991
+ */
992
+ "itemValue": string;
993
+ /**
994
+ * Can be an array of objects or array of strings. When using objects, will look for a text, value and disabled keys.
995
+ */
996
+ "items": any[];
997
+ /**
998
+ * Sets label
999
+ */
1000
+ "label": string;
1001
+ /**
1002
+ * Displays linear progress bar.
1003
+ */
1004
+ "loading": boolean;
1005
+ /**
1006
+ * Specifies which color is applied to the progress bar.
1007
+ */
1008
+ "loadingColor": string;
1009
+ /**
1010
+ * Enable multiple item selection
1011
+ */
1012
+ "multiple": boolean;
1013
+ /**
1014
+ * Forces hint to always be visible.
1015
+ */
1016
+ "persistHint": boolean;
1017
+ /**
1018
+ * Sets the input’s placeholder text.
1019
+ */
1020
+ "placeholder": string;
1021
+ /**
1022
+ * Enable multiple item selection
1023
+ */
1024
+ "required": boolean;
1025
+ /**
1026
+ * Changes the selection behavior to return the object directly rather than the value specified with item-value
1027
+ */
1028
+ "returnObject": boolean;
1029
+ /**
1030
+ * Define appearance of the component
1031
+ */
1032
+ "shape": 'underline' | 'outlined';
1033
+ /**
1034
+ * Sizing options
1035
+ */
1036
+ "size": 'x-large' | 'large' | 'normal' | 'small' | 'x-small';
1037
+ /**
1038
+ * The selected value
1039
+ */
1040
+ "value": any;
1041
+ }
1042
+ interface SallaSkeleton {
1043
+ /**
1044
+ * Set the skeleton height
1045
+ */
1046
+ "height": string;
1047
+ /**
1048
+ * Set the shape type of the skeleton is it circle or normal
1049
+ */
1050
+ "type": 'circle' | 'normal';
1051
+ /**
1052
+ * Set the skeleton width
1053
+ */
1054
+ "width": string;
454
1055
  }
455
1056
  interface SallaSocialShare {
456
1057
  /**
@@ -583,6 +1184,18 @@ export interface SallaAddProductButtonCustomEvent<T> extends CustomEvent<T> {
583
1184
  detail: T;
584
1185
  target: HTMLSallaAddProductButtonElement;
585
1186
  }
1187
+ export interface SallaDatetimePickerCustomEvent<T> extends CustomEvent<T> {
1188
+ detail: T;
1189
+ target: HTMLSallaDatetimePickerElement;
1190
+ }
1191
+ export interface SallaFileUploadCustomEvent<T> extends CustomEvent<T> {
1192
+ detail: T;
1193
+ target: HTMLSallaFileUploadElement;
1194
+ }
1195
+ export interface SallaLoyaltyPrizeItemCustomEvent<T> extends CustomEvent<T> {
1196
+ detail: T;
1197
+ target: HTMLSallaLoyaltyPrizeItemElement;
1198
+ }
586
1199
  export interface SallaTabHeaderCustomEvent<T> extends CustomEvent<T> {
587
1200
  detail: T;
588
1201
  target: HTMLSallaTabHeaderElement;
@@ -614,6 +1227,24 @@ declare global {
614
1227
  prototype: HTMLSallaConditionalFieldsElement;
615
1228
  new (): HTMLSallaConditionalFieldsElement;
616
1229
  };
1230
+ interface HTMLSallaDatetimePickerElement extends Components.SallaDatetimePicker, HTMLStencilElement {
1231
+ }
1232
+ var HTMLSallaDatetimePickerElement: {
1233
+ prototype: HTMLSallaDatetimePickerElement;
1234
+ new (): HTMLSallaDatetimePickerElement;
1235
+ };
1236
+ interface HTMLSallaFileUploadElement extends Components.SallaFileUpload, HTMLStencilElement {
1237
+ }
1238
+ var HTMLSallaFileUploadElement: {
1239
+ prototype: HTMLSallaFileUploadElement;
1240
+ new (): HTMLSallaFileUploadElement;
1241
+ };
1242
+ interface HTMLSallaGiftingElement extends Components.SallaGifting, HTMLStencilElement {
1243
+ }
1244
+ var HTMLSallaGiftingElement: {
1245
+ prototype: HTMLSallaGiftingElement;
1246
+ new (): HTMLSallaGiftingElement;
1247
+ };
617
1248
  interface HTMLSallaInfiniteScrollElement extends Components.SallaInfiniteScroll, HTMLStencilElement {
618
1249
  }
619
1250
  var HTMLSallaInfiniteScrollElement: {
@@ -656,6 +1287,12 @@ declare global {
656
1287
  prototype: HTMLSallaLoyaltyElement;
657
1288
  new (): HTMLSallaLoyaltyElement;
658
1289
  };
1290
+ interface HTMLSallaLoyaltyPrizeItemElement extends Components.SallaLoyaltyPrizeItem, HTMLStencilElement {
1291
+ }
1292
+ var HTMLSallaLoyaltyPrizeItemElement: {
1293
+ prototype: HTMLSallaLoyaltyPrizeItemElement;
1294
+ new (): HTMLSallaLoyaltyPrizeItemElement;
1295
+ };
659
1296
  interface HTMLSallaModalElement extends Components.SallaModal, HTMLStencilElement {
660
1297
  }
661
1298
  var HTMLSallaModalElement: {
@@ -716,6 +1353,12 @@ declare global {
716
1353
  prototype: HTMLSallaSearchElement;
717
1354
  new (): HTMLSallaSearchElement;
718
1355
  };
1356
+ interface HTMLSallaSelectElement extends Components.SallaSelect, HTMLStencilElement {
1357
+ }
1358
+ var HTMLSallaSelectElement: {
1359
+ prototype: HTMLSallaSelectElement;
1360
+ new (): HTMLSallaSelectElement;
1361
+ };
719
1362
  interface HTMLSallaSkeletonElement extends Components.SallaSkeleton, HTMLStencilElement {
720
1363
  }
721
1364
  var HTMLSallaSkeletonElement: {
@@ -768,6 +1411,9 @@ declare global {
768
1411
  "salla-add-product-button": HTMLSallaAddProductButtonElement;
769
1412
  "salla-button": HTMLSallaButtonElement;
770
1413
  "salla-conditional-fields": HTMLSallaConditionalFieldsElement;
1414
+ "salla-datetime-picker": HTMLSallaDatetimePickerElement;
1415
+ "salla-file-upload": HTMLSallaFileUploadElement;
1416
+ "salla-gifting": HTMLSallaGiftingElement;
771
1417
  "salla-infinite-scroll": HTMLSallaInfiniteScrollElement;
772
1418
  "salla-installment": HTMLSallaInstallmentElement;
773
1419
  "salla-list-tile": HTMLSallaListTileElement;
@@ -775,6 +1421,7 @@ declare global {
775
1421
  "salla-localization-modal": HTMLSallaLocalizationModalElement;
776
1422
  "salla-login-modal": HTMLSallaLoginModalElement;
777
1423
  "salla-loyalty": HTMLSallaLoyaltyElement;
1424
+ "salla-loyalty-prize-item": HTMLSallaLoyaltyPrizeItemElement;
778
1425
  "salla-modal": HTMLSallaModalElement;
779
1426
  "salla-offer-modal": HTMLSallaOfferModalElement;
780
1427
  "salla-placeholder": HTMLSallaPlaceholderElement;
@@ -785,6 +1432,7 @@ declare global {
785
1432
  "salla-rating-stars": HTMLSallaRatingStarsElement;
786
1433
  "salla-scopes": HTMLSallaScopesElement;
787
1434
  "salla-search": HTMLSallaSearchElement;
1435
+ "salla-select": HTMLSallaSelectElement;
788
1436
  "salla-skeleton": HTMLSallaSkeletonElement;
789
1437
  "salla-social-share": HTMLSallaSocialShareElement;
790
1438
  "salla-swiper": HTMLSallaSwiperElement;
@@ -870,6 +1518,484 @@ declare namespace LocalJSX {
870
1518
  }
871
1519
  interface SallaConditionalFields {
872
1520
  }
1521
+ interface SallaDatetimePicker {
1522
+ /**
1523
+ * Allows the user to enter a date directly into the input field. By default, direct entry is disabled.
1524
+ */
1525
+ "allowInput"?: boolean;
1526
+ /**
1527
+ * Allows the preloading of an invalid date. When disabled, the field will be cleared if the provided date is invalid
1528
+ */
1529
+ "allowInvalidPreload"?: boolean;
1530
+ /**
1531
+ * Exactly the same as date format, but for the altInput field.
1532
+ */
1533
+ "altFormat"?: string;
1534
+ /**
1535
+ * Show the user a readable date (as per altFormat), but return something totally different to the server.
1536
+ */
1537
+ "altInput"?: boolean;
1538
+ /**
1539
+ * This class will be added to the input element created by the altInput option. Note that altInput already inherits classes from the original input.
1540
+ */
1541
+ "altInputClass"?: string;
1542
+ /**
1543
+ * Instead of body, appends the calendar to the specified node instead.
1544
+ */
1545
+ "appendTo"?: HTMLElement;
1546
+ /**
1547
+ * Defines how the date will be formatted in the aria-label for calendar days, using the same tokens as dateFormat. If you change this, you should choose a value that will make sense if a screen reader reads it out loud.
1548
+ */
1549
+ "ariaDateFormat"?: string;
1550
+ /**
1551
+ * Whether the default time should be auto-filled when the input is empty and gains or loses focus.
1552
+ */
1553
+ "autoFillDefaultTime"?: boolean;
1554
+ /**
1555
+ * Whether clicking on the input should open the picker. Set it to false if you only want to open the calendar programmatically with [open()]
1556
+ */
1557
+ "clickOpens"?: boolean;
1558
+ /**
1559
+ * Whether calendar should close after date selection or not
1560
+ */
1561
+ "closeOnSelect"?: boolean;
1562
+ /**
1563
+ * When in "multiple" mode, conjunction is used to separate dates in the entry field.
1564
+ */
1565
+ "conjunction"?: string;
1566
+ /**
1567
+ * A string of characters which are used to define how the date will be displayed in the input box. The supported characters are defined in the table below.
1568
+ */
1569
+ "dateFormat"?: string;
1570
+ /**
1571
+ * A custom datestring parser
1572
+ */
1573
+ "dateParser"?: (date: string, format: string) => Date;
1574
+ /**
1575
+ * Sets the initial selected date(s). If you're using mode: "multiple" or a range calendar supply an Array of Date objects or an Array of date strings which follow your dateFormat. Otherwise, you can supply a single Date object or a date string.
1576
+ */
1577
+ "defaultDate"?: DateOption | DateOption[];
1578
+ /**
1579
+ * Initial value of the hour element, when no date is selected
1580
+ */
1581
+ "defaultHour"?: number;
1582
+ /**
1583
+ * Initial value of the minute element, when no date is selected
1584
+ */
1585
+ "defaultMinute"?: number;
1586
+ /**
1587
+ * Initial value of the seconds element, when no date is selected
1588
+ */
1589
+ "defaultSeconds"?: number;
1590
+ /**
1591
+ * Disables certain dates, preventing them from being selected. See https://chmln.github.io/flatpickr/examples/#disabling-specific-dates
1592
+ */
1593
+ "disable"?: DateLimit<DateOption>[];
1594
+ /**
1595
+ * Set this to true to always use the non-native picker on mobile devices. By default, Flatpickr utilizes native datetime widgets unless certain options (e.g. disable) are used.
1596
+ */
1597
+ "disableMobile"?: boolean;
1598
+ /**
1599
+ * Disables all dates except these specified. See https://chmln.github.io/flatpickr/examples/#disabling-all-dates-except-select-few
1600
+ */
1601
+ "enable"?: DateLimit<DateOption>[];
1602
+ /**
1603
+ * Enables seconds selection in the time picker.
1604
+ */
1605
+ "enableSeconds"?: boolean;
1606
+ /**
1607
+ * Enables the time picker
1608
+ */
1609
+ "enableTime"?: boolean;
1610
+ /**
1611
+ * Allows using a custom date formatting function instead of the built-in handling for date formats using dateFormat, altFormat, etc.
1612
+ */
1613
+ "formatDate"?: (date: Date, format: string, locale: Object) => string;
1614
+ /**
1615
+ * Adjusts the step for the hour input (incl. scrolling)
1616
+ */
1617
+ "hourIncrement"?: number;
1618
+ /**
1619
+ * Displays the calendar inline
1620
+ */
1621
+ "inline"?: boolean;
1622
+ /**
1623
+ * The locale, either as a string (e.g. "ar", "en") or as an object. See https://chmln.github.io/flatpickr/localization/
1624
+ */
1625
+ "locale"?: LocaleKey;
1626
+ /**
1627
+ * The maximum date that a user can pick to (inclusive).
1628
+ */
1629
+ "maxDate"?: DateOption;
1630
+ /**
1631
+ * The minimum date that a user can start picking from (inclusive).
1632
+ */
1633
+ "maxTime"?: DateOption;
1634
+ /**
1635
+ * The minimum date that a user can start picking from (inclusive).
1636
+ */
1637
+ "minDate"?: DateOption;
1638
+ /**
1639
+ * The minimum time that a user can start picking from (inclusive).
1640
+ */
1641
+ "minTime"?: DateOption;
1642
+ /**
1643
+ * Adjusts the step for the minute input (incl. scrolling) Defaults to 5
1644
+ */
1645
+ "minuteIncrement"?: number;
1646
+ /**
1647
+ * Date selection mode, defaults to "single"
1648
+ */
1649
+ "mode"?: "single" | "multiple" | "range" | "time";
1650
+ /**
1651
+ * How the month should be displayed in the header of the calendar. If showMonths has a value greater than 1, the month is always shown as static.
1652
+ */
1653
+ "monthSelectorType"?: "dropdown" | "static";
1654
+ /**
1655
+ * HTML for the arrow icon, used to switch months.
1656
+ */
1657
+ "nextArrow"?: string;
1658
+ /**
1659
+ * Hides the day selection in calendar. Use it along with enableTime to create a time picker.
1660
+ */
1661
+ "noCalendar"?: boolean;
1662
+ /**
1663
+ * Fires when the selected dates have changed - when a date is picked or cleared, by user or programmatically.
1664
+ */
1665
+ "onChange"?: Hook | Hook[];
1666
+ /**
1667
+ * Fires when the calendar is closed
1668
+ */
1669
+ "onClose"?: Hook | Hook[];
1670
+ /**
1671
+ * Fires for every day cell in the calendar, where the fourth argument is the html element of the cell. See https://chmln.github.io/flatpickr/events/#ondaycreate
1672
+ */
1673
+ "onDayCreate"?: Hook | Hook[];
1674
+ /**
1675
+ * Fires before the calendar instance is destroyed
1676
+ */
1677
+ "onDestroy"?: Hook | Hook[];
1678
+ /**
1679
+ * Fires when valid keyboard input for calendar is detected
1680
+ */
1681
+ "onKeyDown"?: Hook | Hook[];
1682
+ /**
1683
+ * Fires after the month has changed
1684
+ */
1685
+ "onMonthChange"?: Hook | Hook[];
1686
+ /**
1687
+ * Fires after the calendar is opened
1688
+ */
1689
+ "onOpen"?: Hook | Hook[];
1690
+ /**
1691
+ * Fires after the configuration for the calendar is parsed
1692
+ */
1693
+ "onParseConfig"?: Hook | Hook[];
1694
+ "onPicked"?: (event: SallaDatetimePickerCustomEvent<any>) => void;
1695
+ /**
1696
+ * Fires once the calendar instance is ready
1697
+ */
1698
+ "onReady"?: Hook | Hook[];
1699
+ /**
1700
+ * Like onChange, but fires immediately after any date changes
1701
+ */
1702
+ "onValueUpdate"?: Hook | Hook[];
1703
+ /**
1704
+ * Fires after the year has changed
1705
+ */
1706
+ "onYearChange"?: Hook | Hook[];
1707
+ /**
1708
+ * Placeholder text to show on the input element
1709
+ */
1710
+ "placeholder"?: string;
1711
+ /**
1712
+ * How the calendar should be positioned with regards to the input. Defaults to "auto"
1713
+ */
1714
+ "position"?: "auto" | "above" | "below" | "auto left" | "auto center" | "auto right" | "above left" | "above center" | "above right" | "below left" | "below center" | "below right" | ((self: any, customElement: HTMLElement | undefined) => void);
1715
+ /**
1716
+ * The element off of which the calendar will be positioned. Defaults to the date input
1717
+ */
1718
+ "positionElement"?: HTMLElement;
1719
+ /**
1720
+ * HTML for the left arrow icon, used to switch months.
1721
+ */
1722
+ "prevArrow"?: string;
1723
+ /**
1724
+ * Whether to display the current month name in shorthand mode, e.g. "Sep" instead "September"
1725
+ */
1726
+ "shorthandCurrentMonth"?: boolean;
1727
+ /**
1728
+ * The number of months to be shown at the same time when displaying the calendar.
1729
+ */
1730
+ "showMonths"?: number;
1731
+ /**
1732
+ * Position the calendar inside the wrapper and next to the input element*.
1733
+ */
1734
+ "static"?: boolean;
1735
+ /**
1736
+ * Displays time picker in 24 hour mode without AM/PM selection when enabled.
1737
+ */
1738
+ "time_24hr"?: boolean;
1739
+ /**
1740
+ * Two way data binding to retrieve the selected date[time] value
1741
+ */
1742
+ "value"?: string;
1743
+ /**
1744
+ * Enables display of week numbers in calendar.
1745
+ */
1746
+ "weekNumbers"?: boolean;
1747
+ /**
1748
+ * See https://chmln.github.io/flatpickr/examples/#flatpickr-external-elements
1749
+ */
1750
+ "wrap"?: boolean;
1751
+ }
1752
+ interface SallaFileUpload {
1753
+ /**
1754
+ * Enable or disable file browser
1755
+ */
1756
+ "allowBrowse"?: boolean;
1757
+ /**
1758
+ * Enable or disable drag n' drop
1759
+ */
1760
+ "allowDrop"?: boolean;
1761
+ /**
1762
+ * Enable or disable adding multiple files
1763
+ */
1764
+ "allowMultiple"?: boolean;
1765
+ /**
1766
+ * Enable or disable pasting of files. Pasting files is not supported on all browesrs.
1767
+ */
1768
+ "allowPaste"?: boolean;
1769
+ /**
1770
+ * Enable or disable the process button
1771
+ */
1772
+ "allowProcess"?: boolean;
1773
+ /**
1774
+ * When set to false the remove button is hidden and disabled
1775
+ */
1776
+ "allowRemove"?: boolean;
1777
+ /**
1778
+ * Allow users to reorder files with drag and drop interaction. Note that this only works in single column mode. It also only works on browsers that support pointer events.
1779
+ */
1780
+ "allowReorder"?: boolean;
1781
+ /**
1782
+ * Allow drop to replace a file, only works when allowMultiple is false
1783
+ */
1784
+ "allowReplace"?: boolean;
1785
+ /**
1786
+ * Enable or disable the revert processing button
1787
+ */
1788
+ "allowRevert"?: boolean;
1789
+ /**
1790
+ * Set to true to enable custom validity messages. FilePond will throw an error when a parent form is submitted and it contains invalid files.
1791
+ */
1792
+ "checkValidity"?: boolean;
1793
+ /**
1794
+ * Force chunks even for files smaller than the set chunkSize
1795
+ */
1796
+ "chunkForce"?: boolean;
1797
+ /**
1798
+ * Amount of times, and delayes, between retried uploading of a chunk
1799
+ */
1800
+ "chunkRetryDelays"?: Array<number>;
1801
+ /**
1802
+ * The size of a chunk in bytes
1803
+ */
1804
+ "chunkSize"?: number;
1805
+ /**
1806
+ * Enable chunked uploads, when enabled will automatically cut up files in chunkSize chunks before upload.
1807
+ */
1808
+ "chunkUploads"?: boolean;
1809
+ /**
1810
+ * Show credits at the bottom of the upload element. Structure is like [{label,url}]
1811
+ */
1812
+ "credits"?: false;
1813
+ /**
1814
+ * Sets the disabled attribute to the output field
1815
+ */
1816
+ "disabled"?: boolean;
1817
+ /**
1818
+ * Require drop on the FilePond element itself to catch the file.
1819
+ */
1820
+ "dropOnElement"?: boolean;
1821
+ /**
1822
+ * FilePond will catch all files dropped on the webpage
1823
+ */
1824
+ "dropOnPage"?: boolean;
1825
+ /**
1826
+ * When enabled, files are validated before they are dropped. A file is not added when it's invalid.
1827
+ */
1828
+ "dropValidation"?: boolean;
1829
+ /**
1830
+ * Set to true to require the file to be successfully reverted before continuing.
1831
+ */
1832
+ "forceRevert"?: boolean;
1833
+ /**
1834
+ * The icon used for process actions
1835
+ */
1836
+ "iconProcess"?: string;
1837
+ /**
1838
+ * The icon used for remove actions
1839
+ */
1840
+ "iconRemove"?: string;
1841
+ /**
1842
+ * The icon used for retry actions
1843
+ */
1844
+ "iconRetry"?: string;
1845
+ /**
1846
+ * The icon used for undo actions
1847
+ */
1848
+ "iconUndo"?: string;
1849
+ /**
1850
+ * Ignored file names when handling dropped directories. Dropping directories is not supported on all browsers.
1851
+ */
1852
+ "ignoredFiles"?: Array<any>;
1853
+ /**
1854
+ * Immediately upload new files to the server
1855
+ */
1856
+ "instantUpload"?: boolean;
1857
+ /**
1858
+ * The interval to use before showing each item being added to the list
1859
+ */
1860
+ "itemInsertInterval"?: number;
1861
+ /**
1862
+ * Set to 'after' to add files to end of list (when dropped at the top of the list or added using browse or paste), set to 'before' to add files at start of list. Set to a compare function to automatically sort items when added
1863
+ */
1864
+ "itemInsertLocation"?: 'before' | 'after' | ((a: FilePondFile, b: FilePondFile) => number);
1865
+ /**
1866
+ * Label used for abort load button
1867
+ */
1868
+ "labelButtonAbortItemLoad"?: string;
1869
+ /**
1870
+ * Label used for abort upload button
1871
+ */
1872
+ "labelButtonAbortItemProcessing"?: string;
1873
+ /**
1874
+ * Label used for upload button
1875
+ */
1876
+ "labelButtonProcessItem"?: string;
1877
+ /**
1878
+ * Label used for remove button
1879
+ */
1880
+ "labelButtonRemoveItem"?: string;
1881
+ /**
1882
+ * Label used for retry load button
1883
+ */
1884
+ "labelButtonRetryItemLoad"?: string;
1885
+ /**
1886
+ * Label used for retry upload button
1887
+ */
1888
+ "labelButtonRetryItemProcessing"?: string;
1889
+ /**
1890
+ * Label used for undo upload button
1891
+ */
1892
+ "labelButtonUndoItemProcessing"?: string;
1893
+ /**
1894
+ * The decimal separator used to render numbers. By default this is determined automatically.
1895
+ */
1896
+ "labelDecimalSeparator"?: string;
1897
+ /**
1898
+ * Label used when file load failed
1899
+ */
1900
+ "labelFileLoadError"?: string;
1901
+ /**
1902
+ * Label used while loading a file
1903
+ */
1904
+ "labelFileLoading"?: string;
1905
+ /**
1906
+ * Label used when uploading a file
1907
+ */
1908
+ "labelFileProcessing"?: string;
1909
+ /**
1910
+ * Label used when upload was cancelled
1911
+ */
1912
+ "labelFileProcessingAborted"?: string;
1913
+ /**
1914
+ * Label used when file upload has completed
1915
+ */
1916
+ "labelFileProcessingComplete"?: string;
1917
+ /**
1918
+ * Label used when something went wrong during file upload
1919
+ */
1920
+ "labelFileProcessingError"?: string;
1921
+ /**
1922
+ * Label used when something went wrong during reverting the file upload
1923
+ */
1924
+ "labelFileProcessingRevertError"?: string;
1925
+ /**
1926
+ * Label used to indicate something went wrong when removing the file
1927
+ */
1928
+ "labelFileRemoveError"?: string;
1929
+ /**
1930
+ * Label used when no file size information was received
1931
+ */
1932
+ "labelFileSizeNotAvailable"?: string;
1933
+ /**
1934
+ * Label used while waiting for file size information.
1935
+ */
1936
+ "labelFileWaitingForSize"?: string;
1937
+ /**
1938
+ * Default label shown to indicate this is a drop area. FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
1939
+ */
1940
+ "labelIdle"?: string;
1941
+ /**
1942
+ * Label shown when the field contains invalid files and is validated by the parent form.
1943
+ */
1944
+ "labelInvalidField"?: string;
1945
+ /**
1946
+ * Label used to indicate to the user that an action can be cancelled.
1947
+ */
1948
+ "labelTapToCancel"?: string;
1949
+ /**
1950
+ * Label used to indicate to the user that an action can be retried.
1951
+ */
1952
+ "labelTapToRetry"?: string;
1953
+ /**
1954
+ * Label used to indicate to the user that an action can be undone.
1955
+ */
1956
+ "labelTapToUndo"?: string;
1957
+ /**
1958
+ * The thousdands separator used to render numbers. By default this is determined automatically.
1959
+ */
1960
+ "labelThousandsSeparator"?: string;
1961
+ /**
1962
+ * The maximum number of files that the pond can handle
1963
+ */
1964
+ "maxFilesCount"?: number;
1965
+ /**
1966
+ * The maxmimum number of files that can be uploaded in parallel
1967
+ */
1968
+ "maxParallelUploads"?: number;
1969
+ "onRemove"?: (event: SallaFileUploadCustomEvent<any>) => void;
1970
+ /**
1971
+ * Sets the required attribute to the output field
1972
+ */
1973
+ "required"?: boolean;
1974
+ /**
1975
+ * A server configuration object describing how FilePond should interact with the server.
1976
+ */
1977
+ "serverConfig"?: string | {
1978
+ url?: string
1979
+ timeout?: number
1980
+ headers?: { [key: string]: string | boolean | number };
1981
+ process?: string | ServerUrl | ProcessServerConfigFunction | null;
1982
+ revert?: string | ServerUrl | RevertServerConfigFunction | null;
1983
+ restore?: string | ServerUrl | RestoreServerConfigFunction | null;
1984
+ load?: string | ServerUrl | LoadServerConfigFunction | null;
1985
+ fetch?: string | ServerUrl | FetchServerConfigFunction | null;
1986
+ remove?: RemoveServerConfigFunction | null;
1987
+ } | null;
1988
+ /**
1989
+ * Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post. This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer), this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
1990
+ */
1991
+ "storeAsFile"?: boolean;
1992
+ }
1993
+ interface SallaGifting {
1994
+ /**
1995
+ * The product id for which the gifting system is required.
1996
+ */
1997
+ "productId"?: number;
1998
+ }
873
1999
  interface SallaInfiniteScroll {
874
2000
  /**
875
2001
  * Is there is need to autoload next page when scroll `next-page-autoload|next-page.autoload`
@@ -984,6 +2110,10 @@ declare namespace LocalJSX {
984
2110
  */
985
2111
  "requireEmail"?: boolean;
986
2112
  }
2113
+ interface SallaLoyaltyPrizeItem {
2114
+ "item"?: Item;
2115
+ "onPrizeItemSelected"?: (event: SallaLoyaltyPrizeItemCustomEvent<Item>) => void;
2116
+ }
987
2117
  interface SallaModal {
988
2118
  /**
989
2119
  * Align modal content to center, defaults to `false`
@@ -1108,6 +2238,108 @@ declare namespace LocalJSX {
1108
2238
  */
1109
2239
  "oval"?: boolean;
1110
2240
  }
2241
+ interface SallaSelect {
2242
+ /**
2243
+ * Enable multiple item selection
2244
+ */
2245
+ "autocomplete"?: boolean;
2246
+ /**
2247
+ * Enable autofocus
2248
+ */
2249
+ "autofocus"?: boolean;
2250
+ /**
2251
+ * Changes display of selections to chips
2252
+ */
2253
+ "chips"?: boolean;
2254
+ /**
2255
+ * Applied when using clearable and the input is dirty
2256
+ */
2257
+ "clearIcon"?: string;
2258
+ /**
2259
+ * Add input clear functionality, default icon is `sicon-cancel`
2260
+ */
2261
+ "clearable"?: boolean;
2262
+ /**
2263
+ * Applies specified color to the control.
2264
+ */
2265
+ "color"?: 'primary' | 'success' | 'warning' | 'danger' | 'light' | 'gray' | 'dark';
2266
+ /**
2267
+ * Disable the input
2268
+ */
2269
+ "disabled"?: boolean;
2270
+ /**
2271
+ * Remove elevation or box shadow.
2272
+ */
2273
+ "flat"?: boolean;
2274
+ /**
2275
+ * Hides hint if any
2276
+ */
2277
+ "hideDetail"?: boolean;
2278
+ /**
2279
+ * Hint text
2280
+ */
2281
+ "hint"?: string;
2282
+ /**
2283
+ * Set property of items’s disabled value
2284
+ */
2285
+ "itemDisabled"?: string;
2286
+ /**
2287
+ * Set property of items’s text value
2288
+ */
2289
+ "itemText"?: string;
2290
+ /**
2291
+ * Set property of items’s value - must be primitive. Dot notation is supported.
2292
+ */
2293
+ "itemValue"?: string;
2294
+ /**
2295
+ * Can be an array of objects or array of strings. When using objects, will look for a text, value and disabled keys.
2296
+ */
2297
+ "items"?: any[];
2298
+ /**
2299
+ * Sets label
2300
+ */
2301
+ "label"?: string;
2302
+ /**
2303
+ * Displays linear progress bar.
2304
+ */
2305
+ "loading"?: boolean;
2306
+ /**
2307
+ * Specifies which color is applied to the progress bar.
2308
+ */
2309
+ "loadingColor"?: string;
2310
+ /**
2311
+ * Enable multiple item selection
2312
+ */
2313
+ "multiple"?: boolean;
2314
+ /**
2315
+ * Forces hint to always be visible.
2316
+ */
2317
+ "persistHint"?: boolean;
2318
+ /**
2319
+ * Sets the input’s placeholder text.
2320
+ */
2321
+ "placeholder"?: string;
2322
+ /**
2323
+ * Enable multiple item selection
2324
+ */
2325
+ "required"?: boolean;
2326
+ /**
2327
+ * Changes the selection behavior to return the object directly rather than the value specified with item-value
2328
+ */
2329
+ "returnObject"?: boolean;
2330
+ /**
2331
+ * Define appearance of the component
2332
+ */
2333
+ "shape"?: 'underline' | 'outlined';
2334
+ /**
2335
+ * Sizing options
2336
+ */
2337
+ "size"?: 'x-large' | 'large' | 'normal' | 'small' | 'x-small';
2338
+ /**
2339
+ * The selected value
2340
+ */
2341
+ "value"?: any;
2342
+ }
1111
2343
  interface SallaSkeleton {
1112
2344
  /**
1113
2345
  * Set the skeleton height
@@ -1205,6 +2437,7 @@ declare namespace LocalJSX {
1205
2437
  * Event Emitter
1206
2438
  */
1207
2439
  "onEnterClicked"?: (event: SallaTelInputCustomEvent<any>) => void;
2440
+ "onPhoneEntered"?: (event: SallaTelInputCustomEvent<Phone>) => void;
1208
2441
  /**
1209
2442
  * Current mobile number
1210
2443
  */
@@ -1232,6 +2465,9 @@ declare namespace LocalJSX {
1232
2465
  "salla-add-product-button": SallaAddProductButton;
1233
2466
  "salla-button": SallaButton;
1234
2467
  "salla-conditional-fields": SallaConditionalFields;
2468
+ "salla-datetime-picker": SallaDatetimePicker;
2469
+ "salla-file-upload": SallaFileUpload;
2470
+ "salla-gifting": SallaGifting;
1235
2471
  "salla-infinite-scroll": SallaInfiniteScroll;
1236
2472
  "salla-installment": SallaInstallment;
1237
2473
  "salla-list-tile": SallaListTile;
@@ -1239,6 +2475,7 @@ declare namespace LocalJSX {
1239
2475
  "salla-localization-modal": SallaLocalizationModal;
1240
2476
  "salla-login-modal": SallaLoginModal;
1241
2477
  "salla-loyalty": SallaLoyalty;
2478
+ "salla-loyalty-prize-item": SallaLoyaltyPrizeItem;
1242
2479
  "salla-modal": SallaModal;
1243
2480
  "salla-offer-modal": SallaOfferModal;
1244
2481
  "salla-placeholder": SallaPlaceholder;
@@ -1249,6 +2486,7 @@ declare namespace LocalJSX {
1249
2486
  "salla-rating-stars": SallaRatingStars;
1250
2487
  "salla-scopes": SallaScopes;
1251
2488
  "salla-search": SallaSearch;
2489
+ "salla-select": SallaSelect;
1252
2490
  "salla-skeleton": SallaSkeleton;
1253
2491
  "salla-social-share": SallaSocialShare;
1254
2492
  "salla-swiper": SallaSwiper;
@@ -1266,6 +2504,9 @@ declare module "@stencil/core" {
1266
2504
  "salla-add-product-button": LocalJSX.SallaAddProductButton & JSXBase.HTMLAttributes<HTMLSallaAddProductButtonElement>;
1267
2505
  "salla-button": LocalJSX.SallaButton & JSXBase.HTMLAttributes<HTMLSallaButtonElement>;
1268
2506
  "salla-conditional-fields": LocalJSX.SallaConditionalFields & JSXBase.HTMLAttributes<HTMLSallaConditionalFieldsElement>;
2507
+ "salla-datetime-picker": LocalJSX.SallaDatetimePicker & JSXBase.HTMLAttributes<HTMLSallaDatetimePickerElement>;
2508
+ "salla-file-upload": LocalJSX.SallaFileUpload & JSXBase.HTMLAttributes<HTMLSallaFileUploadElement>;
2509
+ "salla-gifting": LocalJSX.SallaGifting & JSXBase.HTMLAttributes<HTMLSallaGiftingElement>;
1269
2510
  "salla-infinite-scroll": LocalJSX.SallaInfiniteScroll & JSXBase.HTMLAttributes<HTMLSallaInfiniteScrollElement>;
1270
2511
  "salla-installment": LocalJSX.SallaInstallment & JSXBase.HTMLAttributes<HTMLSallaInstallmentElement>;
1271
2512
  "salla-list-tile": LocalJSX.SallaListTile & JSXBase.HTMLAttributes<HTMLSallaListTileElement>;
@@ -1273,6 +2514,7 @@ declare module "@stencil/core" {
1273
2514
  "salla-localization-modal": LocalJSX.SallaLocalizationModal & JSXBase.HTMLAttributes<HTMLSallaLocalizationModalElement>;
1274
2515
  "salla-login-modal": LocalJSX.SallaLoginModal & JSXBase.HTMLAttributes<HTMLSallaLoginModalElement>;
1275
2516
  "salla-loyalty": LocalJSX.SallaLoyalty & JSXBase.HTMLAttributes<HTMLSallaLoyaltyElement>;
2517
+ "salla-loyalty-prize-item": LocalJSX.SallaLoyaltyPrizeItem & JSXBase.HTMLAttributes<HTMLSallaLoyaltyPrizeItemElement>;
1276
2518
  "salla-modal": LocalJSX.SallaModal & JSXBase.HTMLAttributes<HTMLSallaModalElement>;
1277
2519
  "salla-offer-modal": LocalJSX.SallaOfferModal & JSXBase.HTMLAttributes<HTMLSallaOfferModalElement>;
1278
2520
  "salla-placeholder": LocalJSX.SallaPlaceholder & JSXBase.HTMLAttributes<HTMLSallaPlaceholderElement>;
@@ -1283,6 +2525,7 @@ declare module "@stencil/core" {
1283
2525
  "salla-rating-stars": LocalJSX.SallaRatingStars & JSXBase.HTMLAttributes<HTMLSallaRatingStarsElement>;
1284
2526
  "salla-scopes": LocalJSX.SallaScopes & JSXBase.HTMLAttributes<HTMLSallaScopesElement>;
1285
2527
  "salla-search": LocalJSX.SallaSearch & JSXBase.HTMLAttributes<HTMLSallaSearchElement>;
2528
+ "salla-select": LocalJSX.SallaSelect & JSXBase.HTMLAttributes<HTMLSallaSelectElement>;
1286
2529
  "salla-skeleton": LocalJSX.SallaSkeleton & JSXBase.HTMLAttributes<HTMLSallaSkeletonElement>;
1287
2530
  "salla-social-share": LocalJSX.SallaSocialShare & JSXBase.HTMLAttributes<HTMLSallaSocialShareElement>;
1288
2531
  "salla-swiper": LocalJSX.SallaSwiper & JSXBase.HTMLAttributes<HTMLSallaSwiperElement>;