@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.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-button_27.cjs.entry.js +27877 -0
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +26 -0
- package/dist/cjs/salla-scopes.cjs.entry.js +9 -6
- package/dist/cjs/salla-select.cjs.entry.js +159 -0
- package/dist/cjs/twilight-components.cjs.js +1 -1
- package/dist/collection/assets/svg/caret-down.svg +0 -1
- package/dist/collection/assets/svg/images.svg +0 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/salla-datetime-picker/interfaces.js +4 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.css +13 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1374 -0
- package/dist/collection/components/salla-file-upload/interfaces.js +42 -0
- package/dist/collection/components/salla-file-upload/salla-file-upload.css +219 -0
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +1435 -0
- package/dist/collection/components/salla-gifting/gift-schema.js +4 -0
- package/dist/collection/components/salla-gifting/intefaces.js +4 -0
- package/dist/collection/components/salla-gifting/salla-gifting.css +20 -0
- package/dist/collection/components/salla-gifting/salla-gifting.js +564 -0
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +23 -13
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +48 -29
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.css +3 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +69 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty.css +0 -4
- package/dist/collection/components/salla-loyalty/salla-loyalty.js +29 -16
- package/dist/collection/components/salla-modal/salla-modal.css +6 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +37 -13
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +23 -8
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +87 -64
- package/dist/collection/components/salla-scopes/salla-scopes.js +11 -7
- package/dist/collection/components/salla-search/salla-search.js +1 -1
- package/dist/collection/components/salla-select/salla-select.css +86 -0
- package/dist/collection/components/salla-select/salla-select.js +610 -0
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -3
- package/dist/collection/components/salla-tel-input/interfaces.js +4 -0
- package/dist/collection/components/salla-tel-input/salla-tel-input.css +1 -2
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +32 -3
- package/dist/collection/components/salla-verify/salla-verify.js +1 -1
- package/dist/collection/global/app.js +15 -12
- package/dist/components/_commonjsHelpers.js +24 -0
- package/dist/components/anime.es.js +1312 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +5 -0
- package/dist/components/salla-datetime-picker.d.ts +11 -0
- package/dist/components/salla-datetime-picker.js +9 -0
- package/dist/components/salla-datetime-picker2.js +2876 -0
- package/dist/components/salla-file-upload.d.ts +11 -0
- package/dist/components/salla-file-upload.js +9 -0
- package/dist/components/salla-file-upload2.js +14623 -0
- package/dist/components/salla-gifting.d.ts +11 -0
- package/dist/components/salla-gifting.js +499 -0
- package/dist/components/salla-localization-modal.js +31 -16
- package/dist/components/salla-login-modal.js +37 -20
- package/dist/components/salla-loyalty-prize-item.d.ts +11 -0
- package/dist/components/salla-loyalty-prize-item.js +42 -0
- package/dist/components/salla-loyalty.js +28 -17
- package/dist/components/salla-modal2.js +1 -1
- package/dist/components/salla-offer-modal.js +42 -12
- package/dist/components/salla-product-size-guide.js +21 -6
- package/dist/components/salla-rating-modal.js +47 -19
- package/dist/components/salla-scopes.js +10 -6
- package/dist/components/salla-search.js +1 -1
- package/dist/components/salla-select.d.ts +11 -0
- package/dist/components/salla-select.js +199 -0
- package/dist/components/salla-social-share.js +2 -1311
- package/dist/components/salla-swiper2.js +9 -9
- package/dist/components/salla-tel-input2.js +15 -18
- package/dist/components/salla-verify2.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/salla-button_27.entry.js +27847 -0
- package/dist/esm/salla-loyalty-prize-item.entry.js +22 -0
- package/dist/esm/salla-scopes.entry.js +9 -6
- package/dist/esm/salla-select.entry.js +155 -0
- package/dist/esm/twilight-components.js +1 -1
- package/dist/twilight-components/p-49125b6a.entry.js +4 -0
- package/dist/twilight-components/p-6087187d.entry.js +22 -0
- package/dist/twilight-components/p-9a25753c.entry.js +4 -0
- package/dist/twilight-components/p-df1eb1e5.entry.js +4 -0
- package/dist/twilight-components/twilight-components.esm.js +1 -1
- package/dist/types/components/salla-datetime-picker/interfaces.d.ts +8 -0
- package/dist/types/components/salla-datetime-picker/salla-datetime-picker.d.ts +250 -0
- package/dist/types/components/salla-file-upload/interfaces.d.ts +766 -0
- package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +267 -0
- package/dist/types/components/salla-gifting/gift-schema.d.ts +20 -0
- package/dist/types/components/salla-gifting/intefaces.d.ts +18 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +98 -0
- package/dist/types/components/salla-localization-modal/salla-localization-modal.d.ts +3 -2
- package/dist/types/components/salla-login-modal/salla-login-modal.d.ts +13 -3
- package/dist/types/components/salla-loyalty/salla-loyalty-prize-item.d.ts +8 -0
- package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +2 -0
- package/dist/types/components/salla-offer-modal/salla-offer-modal.d.ts +3 -1
- package/dist/types/components/salla-product-size-guide/salla-product-size-guide.d.ts +4 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +3 -2
- package/dist/types/components/salla-scopes/salla-scopes.d.ts +1 -0
- package/dist/types/components/salla-select/salla-select.d.ts +110 -0
- package/dist/types/components/salla-tel-input/interfaces.d.ts +4 -0
- package/dist/types/components/salla-tel-input/salla-tel-input.d.ts +3 -0
- package/dist/types/components.d.ts +1253 -10
- package/package.json +3 -3
- package/dist/cjs/salla-button_24.cjs.entry.js +0 -10087
- package/dist/esm/salla-button_24.entry.js +0 -10060
- package/dist/twilight-components/p-30b2c5b0.entry.js +0 -4
- package/dist/twilight-components/p-5fb32395.entry.js +0 -4
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import * as FilePond from 'filepond';
|
|
3
|
+
import { ServerUrl, ProcessServerConfigFunction, RevertServerConfigFunction, RestoreServerConfigFunction, LoadServerConfigFunction, FetchServerConfigFunction, RemoveServerConfigFunction, FilePondFile, FilePondInitialFile } from './interfaces';
|
|
4
|
+
export declare class SallaFileUpload {
|
|
5
|
+
/**
|
|
6
|
+
* Sets the required attribute to the output field
|
|
7
|
+
*/
|
|
8
|
+
required: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Sets the disabled attribute to the output field
|
|
11
|
+
*/
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Enable or disable drag n' drop
|
|
15
|
+
*/
|
|
16
|
+
allowDrop: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Enable or disable file browser
|
|
19
|
+
*/
|
|
20
|
+
allowBrowse: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Enable or disable pasting of files. Pasting files is not supported on all browesrs.
|
|
23
|
+
*/
|
|
24
|
+
allowPaste: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Enable or disable adding multiple files
|
|
27
|
+
*/
|
|
28
|
+
allowMultiple: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Allow drop to replace a file, only works when allowMultiple is false
|
|
31
|
+
*/
|
|
32
|
+
allowReplace: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Enable or disable the revert processing button
|
|
35
|
+
*/
|
|
36
|
+
allowRevert: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* When set to false the remove button is hidden and disabled
|
|
39
|
+
*/
|
|
40
|
+
allowRemove: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Enable or disable the process button
|
|
43
|
+
*/
|
|
44
|
+
allowProcess: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Allow users to reorder files with drag and drop interaction.
|
|
47
|
+
* Note that this only works in single column mode.
|
|
48
|
+
* It also only works on browsers that support pointer events.
|
|
49
|
+
*/
|
|
50
|
+
allowReorder: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post.
|
|
53
|
+
* This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer),
|
|
54
|
+
* this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
|
|
55
|
+
*/
|
|
56
|
+
storeAsFile: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Set to true to require the file to be successfully reverted before continuing.
|
|
59
|
+
*/
|
|
60
|
+
forceRevert: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The maximum number of files that the pond can handle
|
|
63
|
+
*/
|
|
64
|
+
maxFilesCount: number;
|
|
65
|
+
/**
|
|
66
|
+
* The maxmimum number of files that can be uploaded in parallel
|
|
67
|
+
*/
|
|
68
|
+
maxParallelUploads: number;
|
|
69
|
+
/**
|
|
70
|
+
* Set to true to enable custom validity messages.
|
|
71
|
+
* FilePond will throw an error when a parent form is submitted and it contains invalid files.
|
|
72
|
+
*/
|
|
73
|
+
checkValidity: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Set to 'after' to add files to end of list (when dropped at the top of the list or added using browse or paste),
|
|
76
|
+
* set to 'before' to add files at start of list.
|
|
77
|
+
* Set to a compare function to automatically sort items when added
|
|
78
|
+
*/
|
|
79
|
+
itemInsertLocation: 'before' | 'after' | ((a: FilePondFile, b: FilePondFile) => number);
|
|
80
|
+
/**
|
|
81
|
+
* The interval to use before showing each item being added to the list
|
|
82
|
+
*/
|
|
83
|
+
itemInsertInterval: number;
|
|
84
|
+
/**
|
|
85
|
+
* Show credits at the bottom of the upload element.
|
|
86
|
+
* Structure is like [{label,url}]
|
|
87
|
+
*/
|
|
88
|
+
credits?: false;
|
|
89
|
+
/**
|
|
90
|
+
* FilePond will catch all files dropped on the webpage
|
|
91
|
+
*/
|
|
92
|
+
dropOnPage: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Require drop on the FilePond element itself to catch the file.
|
|
95
|
+
*/
|
|
96
|
+
dropOnElement: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* When enabled, files are validated before they are dropped. A file is not added when it's invalid.
|
|
99
|
+
*/
|
|
100
|
+
dropValidation: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Ignored file names when handling dropped directories. Dropping directories is not supported on all browsers.
|
|
103
|
+
*/
|
|
104
|
+
ignoredFiles: Array<any>;
|
|
105
|
+
/**
|
|
106
|
+
* A server configuration object describing how FilePond should interact with the server.
|
|
107
|
+
*/
|
|
108
|
+
serverConfig: string | {
|
|
109
|
+
url?: string;
|
|
110
|
+
timeout?: number;
|
|
111
|
+
headers?: {
|
|
112
|
+
[key: string]: string | boolean | number;
|
|
113
|
+
};
|
|
114
|
+
process?: string | ServerUrl | ProcessServerConfigFunction | null;
|
|
115
|
+
revert?: string | ServerUrl | RevertServerConfigFunction | null;
|
|
116
|
+
restore?: string | ServerUrl | RestoreServerConfigFunction | null;
|
|
117
|
+
load?: string | ServerUrl | LoadServerConfigFunction | null;
|
|
118
|
+
fetch?: string | ServerUrl | FetchServerConfigFunction | null;
|
|
119
|
+
remove?: RemoveServerConfigFunction | null;
|
|
120
|
+
} | null;
|
|
121
|
+
/**
|
|
122
|
+
* Immediately upload new files to the server
|
|
123
|
+
*/
|
|
124
|
+
instantUpload: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Enable chunked uploads, when enabled will automatically cut up files in chunkSize chunks before upload.
|
|
127
|
+
*/
|
|
128
|
+
chunkUploads: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Force chunks even for files smaller than the set chunkSize
|
|
131
|
+
*/
|
|
132
|
+
chunkForce: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* The size of a chunk in bytes
|
|
135
|
+
*/
|
|
136
|
+
chunkSize: number;
|
|
137
|
+
/**
|
|
138
|
+
* Amount of times, and delayes, between retried uploading of a chunk
|
|
139
|
+
*/
|
|
140
|
+
chunkRetryDelays: Array<number>;
|
|
141
|
+
/**
|
|
142
|
+
* The decimal separator used to render numbers. By default this is determined automatically.
|
|
143
|
+
*/
|
|
144
|
+
labelDecimalSeparator: string;
|
|
145
|
+
/**
|
|
146
|
+
* The thousdands separator used to render numbers. By default this is determined automatically.
|
|
147
|
+
*/
|
|
148
|
+
labelThousandsSeparator: string;
|
|
149
|
+
/**
|
|
150
|
+
* Default label shown to indicate this is a drop area.
|
|
151
|
+
* FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
|
|
152
|
+
*/
|
|
153
|
+
labelIdle: string;
|
|
154
|
+
/**
|
|
155
|
+
* Label shown when the field contains invalid files and is validated by the parent form.
|
|
156
|
+
*/
|
|
157
|
+
labelInvalidField: string;
|
|
158
|
+
/**
|
|
159
|
+
* Label used while waiting for file size information.
|
|
160
|
+
*/
|
|
161
|
+
labelFileWaitingForSize: string;
|
|
162
|
+
/**
|
|
163
|
+
* Label used when no file size information was received
|
|
164
|
+
*/
|
|
165
|
+
labelFileSizeNotAvailable: string;
|
|
166
|
+
/**
|
|
167
|
+
* Label used while loading a file
|
|
168
|
+
*/
|
|
169
|
+
labelFileLoading: string;
|
|
170
|
+
/**
|
|
171
|
+
* Label used when file load failed
|
|
172
|
+
*/
|
|
173
|
+
labelFileLoadError: string;
|
|
174
|
+
/**
|
|
175
|
+
* Label used when uploading a file
|
|
176
|
+
*/
|
|
177
|
+
labelFileProcessing: string;
|
|
178
|
+
/**
|
|
179
|
+
* Label used when file upload has completed
|
|
180
|
+
*/
|
|
181
|
+
labelFileProcessingComplete: string;
|
|
182
|
+
/**
|
|
183
|
+
* Label used when upload was cancelled
|
|
184
|
+
*/
|
|
185
|
+
labelFileProcessingAborted: string;
|
|
186
|
+
/**
|
|
187
|
+
* Label used when something went wrong during file upload
|
|
188
|
+
*/
|
|
189
|
+
labelFileProcessingError: string;
|
|
190
|
+
/**
|
|
191
|
+
* Label used when something went wrong during reverting the file upload
|
|
192
|
+
*/
|
|
193
|
+
labelFileProcessingRevertError: string;
|
|
194
|
+
/**
|
|
195
|
+
* Label used to indicate something went wrong when removing the file
|
|
196
|
+
*/
|
|
197
|
+
labelFileRemoveError: string;
|
|
198
|
+
/**
|
|
199
|
+
* Label used to indicate to the user that an action can be cancelled.
|
|
200
|
+
*/
|
|
201
|
+
labelTapToCancel: string;
|
|
202
|
+
/**
|
|
203
|
+
* Label used to indicate to the user that an action can be retried.
|
|
204
|
+
*/
|
|
205
|
+
labelTapToRetry: string;
|
|
206
|
+
/**
|
|
207
|
+
* Label used to indicate to the user that an action can be undone.
|
|
208
|
+
*/
|
|
209
|
+
labelTapToUndo: string;
|
|
210
|
+
/**
|
|
211
|
+
* Label used for remove button
|
|
212
|
+
*/
|
|
213
|
+
labelButtonRemoveItem: string;
|
|
214
|
+
/**
|
|
215
|
+
* Label used for abort load button
|
|
216
|
+
*/
|
|
217
|
+
labelButtonAbortItemLoad: string;
|
|
218
|
+
/**
|
|
219
|
+
* Label used for retry load button
|
|
220
|
+
*/
|
|
221
|
+
labelButtonRetryItemLoad: string;
|
|
222
|
+
/**
|
|
223
|
+
* Label used for abort upload button
|
|
224
|
+
*/
|
|
225
|
+
labelButtonAbortItemProcessing: string;
|
|
226
|
+
/**
|
|
227
|
+
* Label used for undo upload button
|
|
228
|
+
*/
|
|
229
|
+
labelButtonUndoItemProcessing: string;
|
|
230
|
+
/**
|
|
231
|
+
* Label used for retry upload button
|
|
232
|
+
*/
|
|
233
|
+
labelButtonRetryItemProcessing: string;
|
|
234
|
+
/**
|
|
235
|
+
* Label used for upload button
|
|
236
|
+
*/
|
|
237
|
+
labelButtonProcessItem: string;
|
|
238
|
+
/**
|
|
239
|
+
* The icon used for remove actions
|
|
240
|
+
*/
|
|
241
|
+
iconRemove: string;
|
|
242
|
+
/**
|
|
243
|
+
* The icon used for process actions
|
|
244
|
+
*/
|
|
245
|
+
iconProcess: string;
|
|
246
|
+
/**
|
|
247
|
+
* The icon used for retry actions
|
|
248
|
+
*/
|
|
249
|
+
iconRetry: string;
|
|
250
|
+
/**
|
|
251
|
+
* The icon used for undo actions
|
|
252
|
+
*/
|
|
253
|
+
iconUndo: string;
|
|
254
|
+
pond: any;
|
|
255
|
+
/**
|
|
256
|
+
* The array of file references
|
|
257
|
+
*/
|
|
258
|
+
files: FilePondInitialFile[];
|
|
259
|
+
/**
|
|
260
|
+
* Append intial file
|
|
261
|
+
*/
|
|
262
|
+
appendFile(file: FilePondInitialFile): Promise<FilePondInitialFile[]>;
|
|
263
|
+
remove: EventEmitter<any>;
|
|
264
|
+
componentDidLoad(): void;
|
|
265
|
+
intiFilePond(): FilePond.FilePond;
|
|
266
|
+
render(): any;
|
|
267
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface GiftResponse {
|
|
2
|
+
quantity: number;
|
|
3
|
+
product: Product;
|
|
4
|
+
sender_name: string;
|
|
5
|
+
gift_images: GiftImage[];
|
|
6
|
+
gift_texts: GiftText[];
|
|
7
|
+
}
|
|
8
|
+
export interface Product {
|
|
9
|
+
id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GiftImage {
|
|
14
|
+
id: number;
|
|
15
|
+
url: string;
|
|
16
|
+
}
|
|
17
|
+
export interface GiftText {
|
|
18
|
+
id: number;
|
|
19
|
+
text: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface GiftToCardDTO {
|
|
2
|
+
text: string;
|
|
3
|
+
sender_name: string;
|
|
4
|
+
receiver: Receiver;
|
|
5
|
+
quantity: number;
|
|
6
|
+
deliver_at: string;
|
|
7
|
+
image_url: string;
|
|
8
|
+
time_zone?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Receiver {
|
|
11
|
+
name: string;
|
|
12
|
+
country_code?: string;
|
|
13
|
+
mobile: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Phone {
|
|
16
|
+
country_code: string;
|
|
17
|
+
number: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { GiftResponse, GiftImage } from './gift-schema';
|
|
2
|
+
export declare class SallaGifting {
|
|
3
|
+
constructor();
|
|
4
|
+
private modal;
|
|
5
|
+
sectionTitle: string;
|
|
6
|
+
sectionSubtitle: string;
|
|
7
|
+
sectionBtnText: string;
|
|
8
|
+
giftDetails: string;
|
|
9
|
+
selectImageForYourGift: string;
|
|
10
|
+
selectImageOrUpload: string;
|
|
11
|
+
selectGiftMessage: string;
|
|
12
|
+
giftCustomText: string;
|
|
13
|
+
textId: string;
|
|
14
|
+
incorrectGiftText: string;
|
|
15
|
+
nextStep: string;
|
|
16
|
+
senderNameLabel: string;
|
|
17
|
+
receiverNameFieldLabel: string;
|
|
18
|
+
receiverMobileFieldLabel: string;
|
|
19
|
+
receiverEmailFieldLabel: string;
|
|
20
|
+
emailPlaceholder: string;
|
|
21
|
+
sendLater: string;
|
|
22
|
+
selectSendDateAndTime: string;
|
|
23
|
+
canNotEditOrderAfterSelectDate: string;
|
|
24
|
+
sendGift: string;
|
|
25
|
+
donationRequired: string;
|
|
26
|
+
step1Elems: NodeListOf<Element>;
|
|
27
|
+
step2Elems: NodeListOf<Element>;
|
|
28
|
+
stepsWrapper: HTMLElement;
|
|
29
|
+
imageCover: HTMLElement;
|
|
30
|
+
textSelect: HTMLElement;
|
|
31
|
+
customTextArea: HTMLElement;
|
|
32
|
+
calendarFormGroup: HTMLElement;
|
|
33
|
+
currentStep: number;
|
|
34
|
+
showCalendar: boolean;
|
|
35
|
+
showGiftText: boolean;
|
|
36
|
+
currentLang: string;
|
|
37
|
+
parentClass: string;
|
|
38
|
+
errors: object;
|
|
39
|
+
gift: GiftResponse;
|
|
40
|
+
selectedGiftTextOption: string;
|
|
41
|
+
showTextArea: boolean;
|
|
42
|
+
selectedImage: string;
|
|
43
|
+
uploadedImage: string;
|
|
44
|
+
selectedText: string;
|
|
45
|
+
senderName: string;
|
|
46
|
+
errorMessage: string;
|
|
47
|
+
hasError: boolean;
|
|
48
|
+
quantity: number;
|
|
49
|
+
deliveryDate: string;
|
|
50
|
+
timeZone?: string;
|
|
51
|
+
receiverName: string;
|
|
52
|
+
receiverMobile: string;
|
|
53
|
+
receiverCountryCode: string;
|
|
54
|
+
receiverEmail: string;
|
|
55
|
+
/**
|
|
56
|
+
* The product id for which the gifting system is required.
|
|
57
|
+
*/
|
|
58
|
+
productId: number;
|
|
59
|
+
/**
|
|
60
|
+
* Show the gifting modal window
|
|
61
|
+
*/
|
|
62
|
+
open(): Promise<any>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* Hide the gifting modal window
|
|
66
|
+
*/
|
|
67
|
+
close(): Promise<HTMLElement>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* Update the modal height based on the changes on the inner elements height for a specific step OR just a pass a new fixed height
|
|
71
|
+
*/
|
|
72
|
+
private setWrapperHeight;
|
|
73
|
+
private toggleCalendar;
|
|
74
|
+
private toggleGiftText;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* Go to the step 2
|
|
78
|
+
*/
|
|
79
|
+
goToStep2(): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* Go to the step 1
|
|
83
|
+
*/
|
|
84
|
+
goToStep1(): void;
|
|
85
|
+
private getFilepondPlaceholder;
|
|
86
|
+
setPreview(image: GiftImage): void;
|
|
87
|
+
removePreview(): void;
|
|
88
|
+
private handleTextAreaChange;
|
|
89
|
+
private handleSenderName;
|
|
90
|
+
private handleReceiverName;
|
|
91
|
+
private handleRemoveImage;
|
|
92
|
+
private handlePhoneInputChange;
|
|
93
|
+
private handleDateTimePicker;
|
|
94
|
+
private getCalendarClasses;
|
|
95
|
+
private getServerConfig;
|
|
96
|
+
private submitForm;
|
|
97
|
+
render(): any[];
|
|
98
|
+
}
|
|
@@ -13,7 +13,8 @@ export declare class SallaLocalizationModal {
|
|
|
13
13
|
translationLoaded: boolean;
|
|
14
14
|
languages: Array<any>;
|
|
15
15
|
currencies: Array<any>;
|
|
16
|
-
|
|
16
|
+
hasError: boolean;
|
|
17
|
+
errorMessage: string;
|
|
17
18
|
/**
|
|
18
19
|
* Current language (existing or newly selected)
|
|
19
20
|
*/
|
|
@@ -26,7 +27,7 @@ export declare class SallaLocalizationModal {
|
|
|
26
27
|
/**
|
|
27
28
|
* open the component
|
|
28
29
|
*/
|
|
29
|
-
open(): Promise<
|
|
30
|
+
open(): Promise<any>;
|
|
30
31
|
/**
|
|
31
32
|
* Hide the component
|
|
32
33
|
*/
|
|
@@ -32,16 +32,15 @@ export declare class SallaLoginModal {
|
|
|
32
32
|
private registrationTab;
|
|
33
33
|
private regTelInput;
|
|
34
34
|
private regEmail;
|
|
35
|
-
private regMobileBlock;
|
|
36
|
-
private regEmailBlock;
|
|
37
35
|
private loginTelInput;
|
|
38
36
|
private loginEmail;
|
|
39
37
|
private firstName;
|
|
40
38
|
private lastName;
|
|
41
|
-
private regType;
|
|
42
39
|
private smsBtn;
|
|
43
40
|
private emailBtn;
|
|
44
41
|
private regBtn;
|
|
42
|
+
currentTabName: string;
|
|
43
|
+
regType: 'phone' | 'email';
|
|
45
44
|
translationLoaded: boolean;
|
|
46
45
|
title: string;
|
|
47
46
|
emailErrorMsg: string;
|
|
@@ -64,5 +63,16 @@ export declare class SallaLoginModal {
|
|
|
64
63
|
private newUser;
|
|
65
64
|
private newUserValidation;
|
|
66
65
|
validateField(field: HTMLInputElement, errorMsg: string): void;
|
|
66
|
+
generateTabClasses(tabName: any): {
|
|
67
|
+
's-login-modal-tab': boolean;
|
|
68
|
+
"s-hidden": boolean;
|
|
69
|
+
"s-show": boolean;
|
|
70
|
+
's-login-modal-unactive': boolean;
|
|
71
|
+
's-login-modal-active': boolean;
|
|
72
|
+
};
|
|
73
|
+
generateRegClasses(regType: any): {
|
|
74
|
+
"mb-1.5": boolean;
|
|
75
|
+
"s-hidden": boolean;
|
|
76
|
+
};
|
|
67
77
|
render(): any;
|
|
68
78
|
}
|
|
@@ -12,6 +12,8 @@ export declare class SallaOfferModal {
|
|
|
12
12
|
offer: null | Offer;
|
|
13
13
|
offer_name: string;
|
|
14
14
|
offer_message: string;
|
|
15
|
+
hasError: boolean;
|
|
16
|
+
errorMessage: string;
|
|
15
17
|
constructor();
|
|
16
18
|
translationLoaded: boolean;
|
|
17
19
|
/**
|
|
@@ -23,7 +25,7 @@ export declare class SallaOfferModal {
|
|
|
23
25
|
* Show offer details
|
|
24
26
|
* @param {Offer} offer
|
|
25
27
|
*/
|
|
26
|
-
showOffer(offer: any): Promise<
|
|
28
|
+
showOffer(offer: any): Promise<void>;
|
|
27
29
|
private rememberMe;
|
|
28
30
|
private addItem;
|
|
29
31
|
private defaultProductSlot;
|
|
@@ -7,6 +7,10 @@ export declare class SallaProductSizeGuide {
|
|
|
7
7
|
private modal;
|
|
8
8
|
guides: Array<SizeGuide> | [];
|
|
9
9
|
productId: number;
|
|
10
|
+
placeholder_title: string;
|
|
11
|
+
placeholder_description: string;
|
|
12
|
+
modal_title: string;
|
|
13
|
+
hasError: boolean;
|
|
10
14
|
host: HTMLElement;
|
|
11
15
|
/**
|
|
12
16
|
* Show the size-guide modal window
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import OrderFeedbackResponse from "./order-feedback-response";
|
|
3
2
|
export declare class SallaRatingModal {
|
|
4
3
|
constructor();
|
|
5
4
|
order: OrderFeedbackResponse | undefined;
|
|
5
|
+
hasError: boolean;
|
|
6
|
+
errorMessage: string;
|
|
6
7
|
private stepsCount;
|
|
7
8
|
private nextBtn;
|
|
8
9
|
private backBtn;
|
|
@@ -24,7 +25,7 @@ export declare class SallaRatingModal {
|
|
|
24
25
|
/**
|
|
25
26
|
* Show the rating modal
|
|
26
27
|
*/
|
|
27
|
-
open(): Promise<
|
|
28
|
+
open(): Promise<any>;
|
|
28
29
|
/**
|
|
29
30
|
* Show the rating modal
|
|
30
31
|
*/
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export declare class SallaSelect {
|
|
2
|
+
/**
|
|
3
|
+
* Sets label
|
|
4
|
+
*/
|
|
5
|
+
label: string;
|
|
6
|
+
/**
|
|
7
|
+
* Can be an array of objects or array of strings.
|
|
8
|
+
* When using objects, will look for a text, value and disabled keys.
|
|
9
|
+
*/
|
|
10
|
+
items: any[];
|
|
11
|
+
/**
|
|
12
|
+
* Set property of items’s text value
|
|
13
|
+
*/
|
|
14
|
+
itemText: string;
|
|
15
|
+
/**
|
|
16
|
+
* Set property of items’s value - must be primitive.
|
|
17
|
+
* Dot notation is supported.
|
|
18
|
+
*/
|
|
19
|
+
itemValue: string;
|
|
20
|
+
/**
|
|
21
|
+
* Set property of items’s disabled value
|
|
22
|
+
*/
|
|
23
|
+
itemDisabled: string;
|
|
24
|
+
/**
|
|
25
|
+
* Sizing options
|
|
26
|
+
*/
|
|
27
|
+
size: 'x-large' | 'large' | 'normal' | 'small' | 'x-small';
|
|
28
|
+
/**
|
|
29
|
+
* The selected value
|
|
30
|
+
*/
|
|
31
|
+
value: any;
|
|
32
|
+
/**
|
|
33
|
+
* Enable autofocus
|
|
34
|
+
*/
|
|
35
|
+
autofocus: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Add input clear functionality, default icon is `sicon-cancel`
|
|
38
|
+
*/
|
|
39
|
+
clearable: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Applied when using clearable and the input is dirty
|
|
42
|
+
*/
|
|
43
|
+
clearIcon: string;
|
|
44
|
+
/**
|
|
45
|
+
* Applies specified color to the control.
|
|
46
|
+
*/
|
|
47
|
+
color: 'primary' | 'success' | 'warning' | 'danger' | 'light' | 'gray' | 'dark';
|
|
48
|
+
/**
|
|
49
|
+
* Remove elevation or box shadow.
|
|
50
|
+
*/
|
|
51
|
+
flat: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Disable the input
|
|
54
|
+
*/
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Displays linear progress bar.
|
|
58
|
+
*/
|
|
59
|
+
loading: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Specifies which color is applied to the progress bar.
|
|
62
|
+
*/
|
|
63
|
+
loadingColor: string;
|
|
64
|
+
/**
|
|
65
|
+
* Hint text
|
|
66
|
+
*/
|
|
67
|
+
hint: string;
|
|
68
|
+
/**
|
|
69
|
+
* Forces hint to always be visible.
|
|
70
|
+
*/
|
|
71
|
+
persistHint: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Sets the input’s placeholder text.
|
|
74
|
+
*/
|
|
75
|
+
placeholder: string;
|
|
76
|
+
/**
|
|
77
|
+
* Enable multiple item selection
|
|
78
|
+
*/
|
|
79
|
+
multiple: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Enable multiple item selection
|
|
82
|
+
*/
|
|
83
|
+
autocomplete: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Enable multiple item selection
|
|
86
|
+
*/
|
|
87
|
+
required: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Changes display of selections to chips
|
|
90
|
+
*/
|
|
91
|
+
chips: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Define appearance of the component
|
|
94
|
+
*/
|
|
95
|
+
shape: 'underline' | 'outlined';
|
|
96
|
+
/**
|
|
97
|
+
* Changes the selection behavior to return the object directly
|
|
98
|
+
* rather than the value specified with item-value
|
|
99
|
+
*/
|
|
100
|
+
returnObject: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Hides hint if any
|
|
103
|
+
*/
|
|
104
|
+
hideDetail: boolean;
|
|
105
|
+
private selectClass;
|
|
106
|
+
private onSelectedItemChange;
|
|
107
|
+
private generateHint;
|
|
108
|
+
private checkForSelected;
|
|
109
|
+
render(): any;
|
|
110
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Phone } from './interfaces';
|
|
2
3
|
export declare class SallaTelInput {
|
|
3
4
|
constructor();
|
|
4
5
|
/**
|
|
@@ -17,6 +18,7 @@ export declare class SallaTelInput {
|
|
|
17
18
|
* Event Emitter
|
|
18
19
|
*/
|
|
19
20
|
enterClicked: EventEmitter;
|
|
21
|
+
phoneEntered: EventEmitter<Phone>;
|
|
20
22
|
host: HTMLElement;
|
|
21
23
|
mobileRequired: string;
|
|
22
24
|
countryCodeLabel: string;
|
|
@@ -45,6 +47,7 @@ export declare class SallaTelInput {
|
|
|
45
47
|
isValid(): Promise<boolean>;
|
|
46
48
|
private initTelInput;
|
|
47
49
|
private reset;
|
|
50
|
+
private handleCountryInput;
|
|
48
51
|
render(): any;
|
|
49
52
|
componentDidLoad(): void;
|
|
50
53
|
}
|