@salla.sa/twilight-components 2.9.7 → 2.9.9
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/{index-538ab976.js → index-2a81e6e4.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-button_30.cjs.entry.js +7 -21
- package/dist/cjs/salla-select.cjs.entry.js +0 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/collection/components/salla-comment-form/salla-comment-form.js +4 -4
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -232
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +1 -3
- package/dist/collection/components/salla-gifting/salla-gifting.js +4 -7
- package/dist/collection/components/salla-list-tile/salla-list-tile.js +6 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +2 -2
- package/dist/collection/components/salla-loyalty/salla-loyalty.js +4 -0
- package/dist/collection/components/salla-modal/salla-modal.js +1 -1
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +4 -0
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +2 -2
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +4 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +3 -0
- package/dist/collection/components/salla-select/salla-select.js +0 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +3 -0
- package/dist/collection/components/salla-swiper/salla-swiper.js +3 -0
- package/dist/collection/components/salla-tabs/salla-tab-content.js +3 -0
- package/dist/collection/components/salla-tabs/salla-tab-header.js +3 -0
- package/dist/collection/components/salla-tabs/salla-tabs.js +4 -0
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -16
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +4 -1
- package/dist/components/index.js +1 -1
- package/dist/components/salla-comment-form.js +2 -2
- package/dist/components/salla-datetime-picker2.js +0 -22
- package/dist/components/salla-file-upload2.js +0 -2
- package/dist/components/salla-gifting.js +2 -4
- package/dist/components/salla-product-size-guide.js +0 -1
- package/dist/components/salla-select.js +0 -1
- package/dist/components/salla-tel-input2.js +0 -1
- package/dist/components/salla-user-settings.js +3 -0
- package/dist/esm/{index-baca3e9b.js → index-535ae6f8.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-button_30.entry.js +7 -21
- package/dist/esm/salla-select.entry.js +0 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm-es5/{index-baca3e9b.js → index-535ae6f8.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/salla-button_30.entry.js +2 -2
- package/dist/esm-es5/salla-select.entry.js +1 -1
- package/dist/esm-es5/twilight.js +1 -1
- package/dist/twilight/{p-f610b6bf.system.entry.js → p-0df01b70.system.entry.js} +1 -1
- package/dist/twilight/{p-95c89288.js → p-11002b35.js} +1 -1
- package/dist/twilight/{p-2c2ee67a.system.js → p-4d9a19dc.system.js} +1 -1
- package/dist/twilight/{p-3c75e374.system.js → p-5c5a3fc1.system.js} +1 -1
- package/dist/twilight/p-af4aa9f9.entry.js +4 -0
- package/dist/twilight/{p-99c87dea.entry.js → p-b101167a.entry.js} +2 -2
- package/dist/twilight/{p-83362f18.system.entry.js → p-d3a6d978.system.entry.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/twilight/twilight.js +1 -1
- package/dist/types/components/salla-comment-form/salla-comment-form.d.ts +2 -2
- package/dist/types/components/salla-datetime-picker/salla-datetime-picker.d.ts +4 -46
- package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +3 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +2 -3
- package/dist/types/components/salla-list-tile/salla-list-tile.d.ts +6 -0
- package/dist/types/components/salla-loyalty/salla-loyalty-prize-item.d.ts +6 -0
- package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +4 -0
- package/dist/types/components/salla-modal/salla-modal.d.ts +3 -0
- package/dist/types/components/salla-placeholder/salla-placeholder.d.ts +4 -0
- package/dist/types/components/salla-product-availability/salla-product-availability.d.ts +1 -1
- package/dist/types/components/salla-product-size-guide/salla-product-size-guide.d.ts +4 -0
- package/dist/types/components/salla-scopes/salla-scopes.d.ts +3 -0
- package/dist/types/components/salla-social-share/salla-social-share.d.ts +3 -0
- package/dist/types/components/salla-swiper/salla-swiper.d.ts +3 -0
- package/dist/types/components/salla-tabs/salla-tab-content.d.ts +3 -0
- package/dist/types/components/salla-tabs/salla-tab-header.d.ts +3 -0
- package/dist/types/components/salla-tabs/salla-tabs.d.ts +4 -0
- package/dist/types/components/salla-tel-input/salla-tel-input.d.ts +1 -2
- package/dist/types/components/salla-user-settings/salla-user-settings.d.ts +3 -0
- package/dist/types/components.d.ts +32 -97
- package/package.json +3 -3
- package/dist/twilight/p-97daba27.entry.js +0 -4
|
@@ -5,11 +5,11 @@ import { Component, Host, State, h, Prop } from '@stencil/core';
|
|
|
5
5
|
export class SallaCommentForm {
|
|
6
6
|
constructor() {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Type of entity the commment is being submitted for. Defaults to `product`
|
|
9
9
|
*/
|
|
10
10
|
this.type = salla.url.is_page('page-single') ? 'page' : 'product';
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* The ID of the item(as defined in the type), where the comment is for.
|
|
13
13
|
*/
|
|
14
14
|
this.itemId = salla.config.get('page.id');
|
|
15
15
|
this.placeholder = salla.lang.get('blocks.comments.placeholder');
|
|
@@ -56,7 +56,7 @@ export class SallaCommentForm {
|
|
|
56
56
|
"optional": false,
|
|
57
57
|
"docs": {
|
|
58
58
|
"tags": [],
|
|
59
|
-
"text": "
|
|
59
|
+
"text": "Type of entity the commment is being submitted for. Defaults to `product`"
|
|
60
60
|
},
|
|
61
61
|
"attribute": "type",
|
|
62
62
|
"reflect": false,
|
|
@@ -74,7 +74,7 @@ export class SallaCommentForm {
|
|
|
74
74
|
"optional": false,
|
|
75
75
|
"docs": {
|
|
76
76
|
"tags": [],
|
|
77
|
-
"text": "
|
|
77
|
+
"text": "The ID of the item(as defined in the type), where the comment is for."
|
|
78
78
|
},
|
|
79
79
|
"attribute": "item-id",
|
|
80
80
|
"reflect": false,
|
|
@@ -217,17 +217,6 @@ export class SallaDatetimePicker {
|
|
|
217
217
|
monthSelectorType: this.monthSelectorType,
|
|
218
218
|
nextArrow: this.nextArrow,
|
|
219
219
|
noCalendar: this.noCalendar,
|
|
220
|
-
onChange: this.onChange,
|
|
221
|
-
onClose: this.onClose,
|
|
222
|
-
onDayCreate: this.onDayCreate,
|
|
223
|
-
onDestroy: this.onDestroy,
|
|
224
|
-
onKeyDown: this.onKeyDown,
|
|
225
|
-
onMonthChange: this.onMonthChange,
|
|
226
|
-
onOpen: this.onOpen,
|
|
227
|
-
onParseConfig: this.onParseConfig,
|
|
228
|
-
onReady: this.onReady,
|
|
229
|
-
onValueUpdate: this.onValueUpdate,
|
|
230
|
-
onYearChange: this.onYearChange,
|
|
231
220
|
parseDate: this.dateParser,
|
|
232
221
|
position: this.position,
|
|
233
222
|
positionElement: this.positionElement,
|
|
@@ -948,226 +937,6 @@ export class SallaDatetimePicker {
|
|
|
948
937
|
"reflect": false,
|
|
949
938
|
"defaultValue": "false"
|
|
950
939
|
},
|
|
951
|
-
"onChange": {
|
|
952
|
-
"type": "unknown",
|
|
953
|
-
"mutable": false,
|
|
954
|
-
"complexType": {
|
|
955
|
-
"original": "Hook | Hook[]",
|
|
956
|
-
"resolved": "((dates: Date[], currentDateString: string, self: any, data?: any) => void) | Hook[]",
|
|
957
|
-
"references": {
|
|
958
|
-
"Hook": {
|
|
959
|
-
"location": "import",
|
|
960
|
-
"path": "./interfaces"
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
},
|
|
964
|
-
"required": false,
|
|
965
|
-
"optional": false,
|
|
966
|
-
"docs": {
|
|
967
|
-
"tags": [],
|
|
968
|
-
"text": "Fires when the selected dates have changed - when a date is picked or cleared, by user or programmatically."
|
|
969
|
-
}
|
|
970
|
-
},
|
|
971
|
-
"onClose": {
|
|
972
|
-
"type": "unknown",
|
|
973
|
-
"mutable": false,
|
|
974
|
-
"complexType": {
|
|
975
|
-
"original": "Hook | Hook[]",
|
|
976
|
-
"resolved": "((dates: Date[], currentDateString: string, self: any, data?: any) => void) | Hook[]",
|
|
977
|
-
"references": {
|
|
978
|
-
"Hook": {
|
|
979
|
-
"location": "import",
|
|
980
|
-
"path": "./interfaces"
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
},
|
|
984
|
-
"required": false,
|
|
985
|
-
"optional": false,
|
|
986
|
-
"docs": {
|
|
987
|
-
"tags": [],
|
|
988
|
-
"text": "Fires when the calendar is closed"
|
|
989
|
-
}
|
|
990
|
-
},
|
|
991
|
-
"onDayCreate": {
|
|
992
|
-
"type": "unknown",
|
|
993
|
-
"mutable": false,
|
|
994
|
-
"complexType": {
|
|
995
|
-
"original": "Hook | Hook[]",
|
|
996
|
-
"resolved": "((dates: Date[], currentDateString: string, self: any, data?: any) => void) | Hook[]",
|
|
997
|
-
"references": {
|
|
998
|
-
"Hook": {
|
|
999
|
-
"location": "import",
|
|
1000
|
-
"path": "./interfaces"
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
},
|
|
1004
|
-
"required": false,
|
|
1005
|
-
"optional": false,
|
|
1006
|
-
"docs": {
|
|
1007
|
-
"tags": [],
|
|
1008
|
-
"text": "Fires for every day cell in the calendar, where the fourth argument is the html element of the cell. \nSee https://chmln.github.io/flatpickr/events/#ondaycreate"
|
|
1009
|
-
}
|
|
1010
|
-
},
|
|
1011
|
-
"onDestroy": {
|
|
1012
|
-
"type": "unknown",
|
|
1013
|
-
"mutable": false,
|
|
1014
|
-
"complexType": {
|
|
1015
|
-
"original": "Hook | Hook[]",
|
|
1016
|
-
"resolved": "((dates: Date[], currentDateString: string, self: any, data?: any) => void) | Hook[]",
|
|
1017
|
-
"references": {
|
|
1018
|
-
"Hook": {
|
|
1019
|
-
"location": "import",
|
|
1020
|
-
"path": "./interfaces"
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
},
|
|
1024
|
-
"required": false,
|
|
1025
|
-
"optional": false,
|
|
1026
|
-
"docs": {
|
|
1027
|
-
"tags": [],
|
|
1028
|
-
"text": "Fires before the calendar instance is destroyed"
|
|
1029
|
-
}
|
|
1030
|
-
},
|
|
1031
|
-
"onKeyDown": {
|
|
1032
|
-
"type": "unknown",
|
|
1033
|
-
"mutable": false,
|
|
1034
|
-
"complexType": {
|
|
1035
|
-
"original": "Hook | Hook[]",
|
|
1036
|
-
"resolved": "((dates: Date[], currentDateString: string, self: any, data?: any) => void) | Hook[]",
|
|
1037
|
-
"references": {
|
|
1038
|
-
"Hook": {
|
|
1039
|
-
"location": "import",
|
|
1040
|
-
"path": "./interfaces"
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
},
|
|
1044
|
-
"required": false,
|
|
1045
|
-
"optional": false,
|
|
1046
|
-
"docs": {
|
|
1047
|
-
"tags": [],
|
|
1048
|
-
"text": "Fires when valid keyboard input for calendar is detected"
|
|
1049
|
-
}
|
|
1050
|
-
},
|
|
1051
|
-
"onMonthChange": {
|
|
1052
|
-
"type": "unknown",
|
|
1053
|
-
"mutable": false,
|
|
1054
|
-
"complexType": {
|
|
1055
|
-
"original": "Hook | Hook[]",
|
|
1056
|
-
"resolved": "((dates: Date[], currentDateString: string, self: any, data?: any) => void) | Hook[]",
|
|
1057
|
-
"references": {
|
|
1058
|
-
"Hook": {
|
|
1059
|
-
"location": "import",
|
|
1060
|
-
"path": "./interfaces"
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
},
|
|
1064
|
-
"required": false,
|
|
1065
|
-
"optional": false,
|
|
1066
|
-
"docs": {
|
|
1067
|
-
"tags": [],
|
|
1068
|
-
"text": "Fires after the month has changed"
|
|
1069
|
-
}
|
|
1070
|
-
},
|
|
1071
|
-
"onOpen": {
|
|
1072
|
-
"type": "unknown",
|
|
1073
|
-
"mutable": false,
|
|
1074
|
-
"complexType": {
|
|
1075
|
-
"original": "Hook | Hook[]",
|
|
1076
|
-
"resolved": "((dates: Date[], currentDateString: string, self: any, data?: any) => void) | Hook[]",
|
|
1077
|
-
"references": {
|
|
1078
|
-
"Hook": {
|
|
1079
|
-
"location": "import",
|
|
1080
|
-
"path": "./interfaces"
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
},
|
|
1084
|
-
"required": false,
|
|
1085
|
-
"optional": false,
|
|
1086
|
-
"docs": {
|
|
1087
|
-
"tags": [],
|
|
1088
|
-
"text": "Fires after the calendar is opened"
|
|
1089
|
-
}
|
|
1090
|
-
},
|
|
1091
|
-
"onParseConfig": {
|
|
1092
|
-
"type": "unknown",
|
|
1093
|
-
"mutable": false,
|
|
1094
|
-
"complexType": {
|
|
1095
|
-
"original": "Hook | Hook[]",
|
|
1096
|
-
"resolved": "((dates: Date[], currentDateString: string, self: any, data?: any) => void) | Hook[]",
|
|
1097
|
-
"references": {
|
|
1098
|
-
"Hook": {
|
|
1099
|
-
"location": "import",
|
|
1100
|
-
"path": "./interfaces"
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
},
|
|
1104
|
-
"required": false,
|
|
1105
|
-
"optional": false,
|
|
1106
|
-
"docs": {
|
|
1107
|
-
"tags": [],
|
|
1108
|
-
"text": "Fires after the configuration for the calendar is parsed"
|
|
1109
|
-
}
|
|
1110
|
-
},
|
|
1111
|
-
"onReady": {
|
|
1112
|
-
"type": "unknown",
|
|
1113
|
-
"mutable": false,
|
|
1114
|
-
"complexType": {
|
|
1115
|
-
"original": "Hook | Hook[]",
|
|
1116
|
-
"resolved": "((dates: Date[], currentDateString: string, self: any, data?: any) => void) | Hook[]",
|
|
1117
|
-
"references": {
|
|
1118
|
-
"Hook": {
|
|
1119
|
-
"location": "import",
|
|
1120
|
-
"path": "./interfaces"
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
},
|
|
1124
|
-
"required": false,
|
|
1125
|
-
"optional": false,
|
|
1126
|
-
"docs": {
|
|
1127
|
-
"tags": [],
|
|
1128
|
-
"text": "Fires once the calendar instance is ready"
|
|
1129
|
-
}
|
|
1130
|
-
},
|
|
1131
|
-
"onValueUpdate": {
|
|
1132
|
-
"type": "unknown",
|
|
1133
|
-
"mutable": false,
|
|
1134
|
-
"complexType": {
|
|
1135
|
-
"original": "Hook | Hook[]",
|
|
1136
|
-
"resolved": "((dates: Date[], currentDateString: string, self: any, data?: any) => void) | Hook[]",
|
|
1137
|
-
"references": {
|
|
1138
|
-
"Hook": {
|
|
1139
|
-
"location": "import",
|
|
1140
|
-
"path": "./interfaces"
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
},
|
|
1144
|
-
"required": false,
|
|
1145
|
-
"optional": false,
|
|
1146
|
-
"docs": {
|
|
1147
|
-
"tags": [],
|
|
1148
|
-
"text": "Like onChange, but fires immediately after any date changes"
|
|
1149
|
-
}
|
|
1150
|
-
},
|
|
1151
|
-
"onYearChange": {
|
|
1152
|
-
"type": "unknown",
|
|
1153
|
-
"mutable": false,
|
|
1154
|
-
"complexType": {
|
|
1155
|
-
"original": "Hook | Hook[]",
|
|
1156
|
-
"resolved": "((dates: Date[], currentDateString: string, self: any, data?: any) => void) | Hook[]",
|
|
1157
|
-
"references": {
|
|
1158
|
-
"Hook": {
|
|
1159
|
-
"location": "import",
|
|
1160
|
-
"path": "./interfaces"
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
},
|
|
1164
|
-
"required": false,
|
|
1165
|
-
"optional": false,
|
|
1166
|
-
"docs": {
|
|
1167
|
-
"tags": [],
|
|
1168
|
-
"text": "Fires after the year has changed"
|
|
1169
|
-
}
|
|
1170
|
-
},
|
|
1171
940
|
"dateParser": {
|
|
1172
941
|
"type": "unknown",
|
|
1173
942
|
"mutable": false,
|
|
@@ -1363,7 +1132,7 @@ export class SallaDatetimePicker {
|
|
|
1363
1132
|
"composed": true,
|
|
1364
1133
|
"docs": {
|
|
1365
1134
|
"tags": [],
|
|
1366
|
-
"text": ""
|
|
1135
|
+
"text": "Event emitted when the file input gets changed by the user when selecting file(s)."
|
|
1367
1136
|
},
|
|
1368
1137
|
"complexType": {
|
|
1369
1138
|
"original": "any",
|
|
@@ -262,8 +262,6 @@ export class SallaFileUpload {
|
|
|
262
262
|
async appendFile(file) {
|
|
263
263
|
return this.pond.files = [file];
|
|
264
264
|
}
|
|
265
|
-
/// Hooks
|
|
266
|
-
/// Styles
|
|
267
265
|
componentDidLoad() {
|
|
268
266
|
this.pond = this.intiFilePond();
|
|
269
267
|
}
|
|
@@ -1399,7 +1397,7 @@ export class SallaFileUpload {
|
|
|
1399
1397
|
"composed": true,
|
|
1400
1398
|
"docs": {
|
|
1401
1399
|
"tags": [],
|
|
1402
|
-
"text": ""
|
|
1400
|
+
"text": "Event emitted when the file is about to be removed. Returns boolean value."
|
|
1403
1401
|
},
|
|
1404
1402
|
"complexType": {
|
|
1405
1403
|
"original": "any",
|
|
@@ -8,7 +8,6 @@ import RightArrow from '../../assets/svg/arrow-right.svg';
|
|
|
8
8
|
import LeftArrow from '../../assets/svg/arrow-left.svg';
|
|
9
9
|
import Cancel from '../../assets/svg/cancel.svg';
|
|
10
10
|
import GiftSharing from '../../assets/svg/gift-sharing.svg';
|
|
11
|
-
//todo:: pass to the placeholder icon sad for no gifting
|
|
12
11
|
export class SallaGifting {
|
|
13
12
|
constructor() {
|
|
14
13
|
this.selectImageForYourGift = salla.lang.get('blocks.buy_as_gift.select_image_or_upload');
|
|
@@ -19,7 +18,6 @@ export class SallaGifting {
|
|
|
19
18
|
this.parentClass = "is-current-step-1";
|
|
20
19
|
this.errors = {};
|
|
21
20
|
this.gift = undefined;
|
|
22
|
-
// @State() selectedImage: GiftImage = undefined;
|
|
23
21
|
this.selectedGiftTextOption = undefined;
|
|
24
22
|
this.showTextArea = false;
|
|
25
23
|
/// Gift Form Data
|
|
@@ -61,7 +59,7 @@ export class SallaGifting {
|
|
|
61
59
|
});
|
|
62
60
|
}
|
|
63
61
|
/**
|
|
64
|
-
* Show the gifting modal window
|
|
62
|
+
* Show / Open the gifting modal window
|
|
65
63
|
*/
|
|
66
64
|
async open() {
|
|
67
65
|
if (salla.config.isGuest()) {
|
|
@@ -83,13 +81,12 @@ export class SallaGifting {
|
|
|
83
81
|
}
|
|
84
82
|
/**
|
|
85
83
|
*
|
|
86
|
-
* Hide the gifting modal window
|
|
84
|
+
* Hide / close the gifting modal window
|
|
87
85
|
*/
|
|
88
86
|
async close() {
|
|
89
87
|
return this.modal.close();
|
|
90
88
|
}
|
|
91
89
|
/**
|
|
92
|
-
*
|
|
93
90
|
* 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
|
|
94
91
|
*/
|
|
95
92
|
async setWrapperHeight(asStep = 1, delay = 250, additionSpace = 0, newHeight = 0) {
|
|
@@ -532,7 +529,7 @@ export class SallaGifting {
|
|
|
532
529
|
"return": "Promise<any>"
|
|
533
530
|
},
|
|
534
531
|
"docs": {
|
|
535
|
-
"text": "Show the gifting modal window",
|
|
532
|
+
"text": "Show / Open the gifting modal window",
|
|
536
533
|
"tags": []
|
|
537
534
|
}
|
|
538
535
|
},
|
|
@@ -551,7 +548,7 @@ export class SallaGifting {
|
|
|
551
548
|
"return": "Promise<HTMLElement>"
|
|
552
549
|
},
|
|
553
550
|
"docs": {
|
|
554
|
-
"text": "\nHide the gifting modal window",
|
|
551
|
+
"text": "\nHide / close the gifting modal window",
|
|
555
552
|
"tags": []
|
|
556
553
|
}
|
|
557
554
|
},
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Host, h, Prop } from '@stencil/core';
|
|
5
|
+
/**
|
|
6
|
+
* @slot icon - An icon to display before the title.
|
|
7
|
+
* @slot title - The primary content of the list tile.
|
|
8
|
+
* @slot subtitle - Additional content displayed below the title.
|
|
9
|
+
* @slot action - An element to display after the title.
|
|
10
|
+
*/
|
|
5
11
|
export class SallaListTile {
|
|
6
12
|
constructor() {
|
|
7
13
|
/**
|
|
@@ -41,7 +41,7 @@ export class SallaLoyaltyPrizeItem {
|
|
|
41
41
|
"optional": false,
|
|
42
42
|
"docs": {
|
|
43
43
|
"tags": [],
|
|
44
|
-
"text": ""
|
|
44
|
+
"text": "Prize item to be displayed in this component."
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}; }
|
|
@@ -53,7 +53,7 @@ export class SallaLoyaltyPrizeItem {
|
|
|
53
53
|
"composed": true,
|
|
54
54
|
"docs": {
|
|
55
55
|
"tags": [],
|
|
56
|
-
"text": ""
|
|
56
|
+
"text": "Event emmited when the user select this item."
|
|
57
57
|
},
|
|
58
58
|
"complexType": {
|
|
59
59
|
"original": "Item",
|
|
@@ -6,6 +6,10 @@ import Star2 from '../../assets/svg/star2.svg';
|
|
|
6
6
|
import Star3 from '../../assets/svg/star3.svg';
|
|
7
7
|
import CancelIcon from '../../assets/svg/cancel.svg';
|
|
8
8
|
import GiftImg from '../../assets/svg/flat.svg';
|
|
9
|
+
/**
|
|
10
|
+
* @slot widget - When used, will activate the component and needs to emit `loyalty::open` event to open the modal. If not provided the default value will be used.
|
|
11
|
+
* @slot points-applied-widget - Widget to show information about the already exchanged points. It should have it's own resetting action and call the `resetExchange` method. If not provided, it will use the default value.
|
|
12
|
+
*/
|
|
9
13
|
export class SallaLoyalty {
|
|
10
14
|
constructor() {
|
|
11
15
|
this.loyaltyProgram = undefined;
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Prop, State, h, Host } from '@stencil/core';
|
|
5
5
|
import Inbox from '../../assets/svg/inbox.svg';
|
|
6
|
+
/**
|
|
7
|
+
* @slot title - The primary content of the placeholder.
|
|
8
|
+
* @slot description - Additional content displayed below the title.
|
|
9
|
+
*/
|
|
6
10
|
export class SallaPlaceholder {
|
|
7
11
|
constructor() {
|
|
8
12
|
this.translationLoaded = false;
|
|
@@ -128,8 +128,8 @@ export class SallaProductAvailability {
|
|
|
128
128
|
"type": "string",
|
|
129
129
|
"mutable": false,
|
|
130
130
|
"complexType": {
|
|
131
|
-
"original": "'sms' | '
|
|
132
|
-
"resolved": "\"
|
|
131
|
+
"original": "'sms' | 'email' | 'sms,email'",
|
|
132
|
+
"resolved": "\"email\" | \"sms\" | \"sms,email\"",
|
|
133
133
|
"references": {}
|
|
134
134
|
},
|
|
135
135
|
"required": false,
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Component, State, Method, Element, h } from '@stencil/core';
|
|
5
5
|
import PencilRuler from "../../assets/svg/pencil-ruler.svg";
|
|
6
|
+
/**
|
|
7
|
+
* @slot header - The upper section of the component.Empty by default.
|
|
8
|
+
* @slot footer - The bottom section of the component.Empty by default.
|
|
9
|
+
*/
|
|
6
10
|
export class SallaProductSizeGuide {
|
|
7
11
|
constructor() {
|
|
8
12
|
this.hasError = false;
|
|
@@ -38,7 +42,6 @@ export class SallaProductSizeGuide {
|
|
|
38
42
|
async close() {
|
|
39
43
|
return this.modal.close();
|
|
40
44
|
}
|
|
41
|
-
// !Todo - Enhance placeholder text
|
|
42
45
|
showPlaceholder() {
|
|
43
46
|
return h("salla-placeholder", { alignment: "center", iconSize: "xl" },
|
|
44
47
|
h("div", { slot: "title" }, this.placeholder_title),
|
|
@@ -5,6 +5,9 @@ import { Component, h, Host, Method, Prop, State } from "@stencil/core";
|
|
|
5
5
|
import StoreAlt from '../../assets/svg/store-alt.svg';
|
|
6
6
|
import Search from '../../assets/svg/search.svg';
|
|
7
7
|
import { ModeType } from './interfaces';
|
|
8
|
+
/**
|
|
9
|
+
* @slot footer - The bottom section of the component, used for form action. Utilizes the `handleSubmit` method to submit the form.
|
|
10
|
+
*/
|
|
8
11
|
export class SallaScopees {
|
|
9
12
|
constructor() {
|
|
10
13
|
this.translationLoaded = false;
|
|
@@ -119,7 +119,6 @@ export class SallaSelect {
|
|
|
119
119
|
}
|
|
120
120
|
let selectedItem = this.items[!!this.placeholder ? selectedIndex - 1 : selectedIndex];
|
|
121
121
|
this.value = this.returnObject ? selectedItem : selectedItem[this.itemValue];
|
|
122
|
-
console.log("🚀 ~ file: salla-select.tsx ~ line 153 ~ SallaSelect ~ onSelectedItemChange ~ this.value", this.value);
|
|
123
122
|
}
|
|
124
123
|
generateHint() {
|
|
125
124
|
if (!this.persistHint && !this.value) {
|
|
@@ -11,6 +11,9 @@ import whatsapp from '../../assets/svg/whatsapp.svg';
|
|
|
11
11
|
import { Socials } from './interfaces';
|
|
12
12
|
import Cancel from "../../assets/svg/cancel.svg";
|
|
13
13
|
import ShareAlt from "../../assets/svg/share-alt.svg";
|
|
14
|
+
/**
|
|
15
|
+
* @slot widget - An action that can be used to activete or open the component by calling the `open` method.
|
|
16
|
+
*/
|
|
14
17
|
export class SallaSocialShare {
|
|
15
18
|
constructor() {
|
|
16
19
|
this.opened = false;
|
|
@@ -5,6 +5,9 @@ import { Component, State, Prop, h } from '@stencil/core';
|
|
|
5
5
|
import Swiper from 'swiper';
|
|
6
6
|
import ArrowRightIcon from "../../assets/svg/arrow-right.svg";
|
|
7
7
|
import ArrowLeftIcon from "../../assets/svg/arrow-left.svg";
|
|
8
|
+
/**
|
|
9
|
+
* @slot The default slot.
|
|
10
|
+
*/
|
|
8
11
|
export class SallaSwiper {
|
|
9
12
|
constructor() {
|
|
10
13
|
/**
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Element, Listen, Prop, h } from '@stencil/core';
|
|
5
|
+
/**
|
|
6
|
+
* @slot header - The tab header section. `salla-tab-header` component is used for this purpose.
|
|
7
|
+
* @slot content - The active tab content section. `salla-tab-content` component is used for this purpose.
|
|
8
|
+
*/
|
|
5
9
|
export class SallaTabs {
|
|
6
10
|
constructor() {
|
|
7
11
|
/**
|
|
@@ -178,21 +178,6 @@ export class SallaTelInput {
|
|
|
178
178
|
"errorMap": {}
|
|
179
179
|
}; }
|
|
180
180
|
static get events() { return [{
|
|
181
|
-
"method": "enterClicked",
|
|
182
|
-
"name": "enterClicked",
|
|
183
|
-
"bubbles": true,
|
|
184
|
-
"cancelable": true,
|
|
185
|
-
"composed": true,
|
|
186
|
-
"docs": {
|
|
187
|
-
"tags": [],
|
|
188
|
-
"text": "Event Emitter"
|
|
189
|
-
},
|
|
190
|
-
"complexType": {
|
|
191
|
-
"original": "any",
|
|
192
|
-
"resolved": "any",
|
|
193
|
-
"references": {}
|
|
194
|
-
}
|
|
195
|
-
}, {
|
|
196
181
|
"method": "phoneEntered",
|
|
197
182
|
"name": "phoneEntered",
|
|
198
183
|
"bubbles": true,
|
|
@@ -200,7 +185,7 @@ export class SallaTelInput {
|
|
|
200
185
|
"composed": true,
|
|
201
186
|
"docs": {
|
|
202
187
|
"tags": [],
|
|
203
|
-
"text": ""
|
|
188
|
+
"text": "Event emmitted when user enters a phone number."
|
|
204
189
|
},
|
|
205
190
|
"complexType": {
|
|
206
191
|
"original": "Phone",
|
|
@@ -15,6 +15,9 @@ export class SallaUserSettings {
|
|
|
15
15
|
this.warningText = salla.lang.get('pages.profile.sorry_for_leaving');
|
|
16
16
|
this.keepAccount = salla.lang.get('pages.profile.keep_account');
|
|
17
17
|
this.buttonLoading = false;
|
|
18
|
+
/**
|
|
19
|
+
* Value used for handling notification toggle check box.
|
|
20
|
+
*/
|
|
18
21
|
this.isNotifiable = false;
|
|
19
22
|
salla.lang.onLoaded(() => {
|
|
20
23
|
this.deactivateAccount = salla.lang.get('pages.profile.deactivate_account');
|
|
@@ -87,7 +90,7 @@ export class SallaUserSettings {
|
|
|
87
90
|
"optional": false,
|
|
88
91
|
"docs": {
|
|
89
92
|
"tags": [],
|
|
90
|
-
"text": ""
|
|
93
|
+
"text": "Value used for handling notification toggle check box."
|
|
91
94
|
},
|
|
92
95
|
"attribute": "is-notifiable",
|
|
93
96
|
"reflect": true,
|