favesalon-embed 0.1.0 → 1.0.1
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/chat-button.cjs.entry.js +118 -0
- package/dist/cjs/favesalon-embed.cjs.js +7 -3
- package/dist/cjs/google-map_5.cjs.entry.js +26 -7
- package/dist/cjs/{index-e6bea8f5.js → index-47c2a5f6.js} +512 -208
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/relativeTime-3721080d.js +9 -0
- package/dist/cjs/salon-booking-modal.cjs.entry.js +3 -2
- package/dist/cjs/salon-booking.cjs.entry.js +3 -2
- package/dist/cjs/salon-gift-card-modal.cjs.entry.js +3 -2
- package/dist/cjs/salon-gift-card.cjs.entry.js +3 -2
- package/dist/cjs/salon-latest-reviews.cjs.entry.js +5 -3
- package/dist/cjs/salon-lookbook.cjs.entry.js +7 -3
- package/dist/cjs/salon-ranking.cjs.entry.js +3 -2
- package/dist/cjs/salon-reviews.cjs.entry.js +10 -3
- package/dist/cjs/salon-services.cjs.entry.js +6 -3
- package/dist/cjs/salon-stylists.cjs.entry.js +9 -3
- package/dist/cjs/services-125c82d8.js +21492 -0
- package/dist/cjs/style-detail.cjs.entry.js +11 -9
- package/dist/cjs/user-avatar.cjs.entry.js +7 -3
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/chat-button/index.css +122 -0
- package/dist/collection/components/chat-button/index.js +218 -0
- package/dist/collection/components/chat-conversation/index.js +103 -0
- package/dist/collection/components/google-map/index.js +72 -68
- package/dist/collection/components/salon-booking/index.css +5 -0
- package/dist/collection/components/salon-booking/index.js +85 -80
- package/dist/collection/components/salon-booking/salon-booking-modal.js +73 -69
- package/dist/collection/components/salon-gift-card/index.css +6 -1
- package/dist/collection/components/salon-gift-card/index.js +85 -80
- package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +56 -52
- package/dist/collection/components/salon-info/index.css +1 -0
- package/dist/collection/components/salon-info/index.js +60 -54
- package/dist/collection/components/salon-latest-reviews/index.css +3 -0
- package/dist/collection/components/salon-latest-reviews/index.js +131 -144
- package/dist/collection/components/salon-latest-styles/index.css +2 -0
- package/dist/collection/components/salon-latest-styles/index.js +143 -138
- package/dist/collection/components/salon-locations/index.css +3 -0
- package/dist/collection/components/salon-locations/index.js +112 -120
- package/dist/collection/components/salon-lookbook/index.css +3 -0
- package/dist/collection/components/salon-lookbook/index.js +182 -190
- package/dist/collection/components/salon-ranking/index.js +68 -65
- package/dist/collection/components/salon-reviews/index.css +3 -0
- package/dist/collection/components/salon-reviews/index.js +146 -183
- package/dist/collection/components/salon-schedules/index.css +3 -0
- package/dist/collection/components/salon-schedules/index.js +129 -151
- package/dist/collection/components/salon-services/index.css +1 -0
- package/dist/collection/components/salon-services/index.js +117 -127
- package/dist/collection/components/salon-stylists/index.css +8 -0
- package/dist/collection/components/salon-stylists/index.js +137 -136
- package/dist/collection/components/style-detail/index.css +14 -0
- package/dist/collection/components/style-detail/index.js +265 -340
- package/dist/collection/components/user-avatar/index.js +119 -112
- package/dist/collection/mocks/users.js +10 -0
- package/dist/collection/services/services.js +121 -0
- package/dist/collection/types/chat.js +23 -0
- package/dist/collection/types/user.js +1 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +24628 -8605
- package/dist/esm/chat-button.entry.js +114 -0
- package/dist/esm/favesalon-embed.js +4 -3
- package/dist/esm/google-map_5.entry.js +26 -7
- package/dist/esm/{index-6af0a03d.js → index-3fae868e.js} +512 -209
- package/dist/esm/loader.js +4 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/relativeTime-cd452e6d.js +7 -0
- package/dist/esm/salon-booking-modal.entry.js +3 -2
- package/dist/esm/salon-booking.entry.js +3 -2
- package/dist/esm/salon-gift-card-modal.entry.js +3 -2
- package/dist/esm/salon-gift-card.entry.js +3 -2
- package/dist/esm/salon-latest-reviews.entry.js +5 -3
- package/dist/esm/salon-lookbook.entry.js +7 -3
- package/dist/esm/salon-ranking.entry.js +3 -2
- package/dist/esm/salon-reviews.entry.js +10 -3
- package/dist/esm/salon-services.entry.js +6 -3
- package/dist/esm/salon-stylists.entry.js +9 -3
- package/dist/esm/services-40a3e622.js +21485 -0
- package/dist/esm/style-detail.entry.js +10 -8
- package/dist/esm/user-avatar.entry.js +7 -3
- package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
- package/dist/favesalon-embed/p-019c5ccd.entry.js +1 -0
- package/dist/favesalon-embed/p-083a8821.entry.js +1 -0
- package/dist/favesalon-embed/p-0d0ed9ea.entry.js +1 -0
- package/dist/favesalon-embed/p-119db8de.entry.js +1 -0
- package/dist/favesalon-embed/p-1432c51b.entry.js +1 -0
- package/dist/favesalon-embed/p-22093506.entry.js +1 -0
- package/dist/favesalon-embed/p-32b314e9.js +2 -0
- package/dist/favesalon-embed/p-4a5eca9a.js +1 -1
- package/dist/favesalon-embed/p-58d2e9be.js +1 -0
- package/dist/favesalon-embed/p-71404b6a.entry.js +1 -0
- package/dist/favesalon-embed/p-857c3a61.entry.js +1 -0
- package/dist/favesalon-embed/p-99ec77f7.entry.js +1 -0
- package/dist/favesalon-embed/p-b0c3673a.entry.js +1 -0
- package/dist/favesalon-embed/p-b287b1ea.entry.js +1 -0
- package/dist/favesalon-embed/p-b3af7842.entry.js +1 -0
- package/dist/favesalon-embed/p-b630ae68.js +1580 -0
- package/dist/favesalon-embed/p-ce2c1c9a.entry.js +1 -0
- package/dist/favesalon-embed/p-d9b7ad58.entry.js +1 -0
- package/dist/favesalon-embed/p-fc9a5551.js +1 -1
- package/dist/types/components/chat-button/index.d.ts +24 -0
- package/dist/types/components.d.ts +22 -0
- package/dist/types/mocks/users.d.ts +10 -0
- package/dist/types/services/services.d.ts +15 -0
- package/dist/types/stencil-public-runtime.d.ts +85 -11
- package/dist/types/types/chat.d.ts +17 -0
- package/loader/index.d.ts +9 -0
- package/loader/package.json +1 -0
- package/package.json +3 -3
- package/readme.md +2 -2
- package/dist/cjs/services-eee8f251.js +0 -5634
- package/dist/esm/services-295247b1.js +0 -5627
- package/dist/favesalon-embed/p-292b97ba.entry.js +0 -1
- package/dist/favesalon-embed/p-4869dfed.entry.js +0 -1
- package/dist/favesalon-embed/p-4aee4fd9.entry.js +0 -1
- package/dist/favesalon-embed/p-5528c705.entry.js +0 -1
- package/dist/favesalon-embed/p-612ad685.entry.js +0 -1
- package/dist/favesalon-embed/p-75aef7e0.entry.js +0 -1
- package/dist/favesalon-embed/p-8c780874.entry.js +0 -1
- package/dist/favesalon-embed/p-8dbf04c5.js +0 -1
- package/dist/favesalon-embed/p-9f31061a.entry.js +0 -1
- package/dist/favesalon-embed/p-a60d78e9.entry.js +0 -1
- package/dist/favesalon-embed/p-a6debdae.entry.js +0 -1
- package/dist/favesalon-embed/p-bad1e9a7.entry.js +0 -1
- package/dist/favesalon-embed/p-c2ecb365.js +0 -1
- package/dist/favesalon-embed/p-c7dea70c.entry.js +0 -1
- package/dist/favesalon-embed/p-f0e14641.entry.js +0 -1
- package/dist/types/types/tmp.d.ts +0 -0
- /package/dist/{collection/types/tmp.js → types/components/chat-conversation/index.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
2
|
import { Colors } from '../../constants/colors';
|
|
3
3
|
import HttpService from '../../services/services';
|
|
4
4
|
const lookbookSortOptions = [{
|
|
@@ -17,13 +17,17 @@ const lookbookFilterOptions = [{
|
|
|
17
17
|
}];
|
|
18
18
|
export class SalonLookbook {
|
|
19
19
|
constructor() {
|
|
20
|
+
this.salonId = undefined;
|
|
20
21
|
this.isLoading = true;
|
|
22
|
+
this.isLoadingMore = undefined;
|
|
23
|
+
this.hideLoadMore = undefined;
|
|
21
24
|
this.currentPage = 1;
|
|
22
25
|
this.totalLookbooks = 0;
|
|
23
26
|
this.salonCategories = [];
|
|
24
27
|
this.salonLookbooks = [];
|
|
25
28
|
this.sortBy = lookbookSortOptions[1].value;
|
|
26
29
|
this.filterBy = lookbookFilterOptions[0].value;
|
|
30
|
+
this.isLayoutSetup = undefined;
|
|
27
31
|
}
|
|
28
32
|
componentWillLoad() {
|
|
29
33
|
this.fetchData();
|
|
@@ -167,210 +171,198 @@ export class SalonLookbook {
|
|
|
167
171
|
justifyContent: 'space-between',
|
|
168
172
|
alignItems: 'center',
|
|
169
173
|
marginBottom: '24px',
|
|
170
|
-
} },
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
marginRight: '16px',
|
|
185
|
-
} },
|
|
186
|
-
h("label", { style: { marginRight: '8px', marginBottom: '0' } }, "Filter by"),
|
|
187
|
-
h("select", { class: "form-select", style: { width: '160px' }, onChange: (evt) => this.onChangeFiltering(evt.target.value) }, allFilterOptions.map(filterOption => (h("option", { value: filterOption.value, selected: String(filterOption.value) === String(this.filterBy) }, filterOption.label))))),
|
|
188
|
-
h("div", { class: "salon-loobook--sort-wrapper", style: {
|
|
189
|
-
display: 'flex',
|
|
190
|
-
flexDirection: 'row',
|
|
191
|
-
alignItems: 'center',
|
|
192
|
-
} },
|
|
193
|
-
h("label", { style: { marginRight: '8px', marginBottom: '0' } }, "Sort by"),
|
|
194
|
-
h("select", { class: "form-select", style: { width: '160px' }, onChange: (evt) => this.onChangeSorting(evt.target.value) }, lookbookSortOptions.map(sortOption => (h("option", { value: sortOption.value, selected: sortOption.value === this.sortBy }, sortOption.label))))))));
|
|
174
|
+
} }, h("div", { class: "salon-loobook--serch-result" }, this.totalLookbooks, " ", this.totalLookbooks === 1 ? 'result' : 'results'), h("div", { style: {
|
|
175
|
+
display: 'flex',
|
|
176
|
+
flexDirection: 'row',
|
|
177
|
+
alignItems: 'center',
|
|
178
|
+
} }, h("div", { class: "salon-loobook--filter-wrapper", style: {
|
|
179
|
+
display: 'flex',
|
|
180
|
+
flexDirection: 'row',
|
|
181
|
+
alignItems: 'center',
|
|
182
|
+
marginRight: '16px',
|
|
183
|
+
} }, h("label", { style: { marginRight: '8px', marginBottom: '0' } }, "Filter by"), h("select", { class: "form-select", style: { width: '160px' }, onChange: (evt) => this.onChangeFiltering(evt.target.value) }, allFilterOptions.map(filterOption => (h("option", { value: filterOption.value, selected: String(filterOption.value) === String(this.filterBy) }, filterOption.label))))), h("div", { class: "salon-loobook--sort-wrapper", style: {
|
|
184
|
+
display: 'flex',
|
|
185
|
+
flexDirection: 'row',
|
|
186
|
+
alignItems: 'center',
|
|
187
|
+
} }, h("label", { style: { marginRight: '8px', marginBottom: '0' } }, "Sort by"), h("select", { class: "form-select", style: { width: '160px' }, onChange: (evt) => this.onChangeSorting(evt.target.value) }, lookbookSortOptions.map(sortOption => (h("option", { value: sortOption.value, selected: sortOption.value === this.sortBy }, sortOption.label))))))));
|
|
195
188
|
}
|
|
196
189
|
render() {
|
|
197
|
-
return (h("div", { class: "salon-loobooks" },
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
owner && (h("div", { class: "card-body", style: { paddingLeft: '0' } },
|
|
217
|
-
h("user-avatar", { name: owner.fullName, shortName: `${(owner.firstName || '').charAt(0)}${(owner.lastName || '').charAt(0)}`, avatar: owner.avatar }))))));
|
|
218
|
-
})))),
|
|
219
|
-
this.salonLookbooks.length > 0 && !this.hideLoadMore && (h("div", { class: "view-footer", style: { paddingTop: '16px', textAlign: 'center' } },
|
|
220
|
-
h("button", { type: "button", class: "btn btn-light btn-lg", onClick: () => this.onLoadMore(), style: {
|
|
221
|
-
background: Colors.White,
|
|
222
|
-
border: `1px solid ${Colors.Gray02}`,
|
|
223
|
-
borderRadius: '4px',
|
|
224
|
-
paddingLeft: '24px',
|
|
225
|
-
paddingRight: '24px',
|
|
226
|
-
} }, this.isLoadingMore ? 'Loading' : 'Load more'))))));
|
|
190
|
+
return (h("div", { class: "salon-loobooks" }, h("div", null, h("div", { class: "view-content" }, this.renderHeader(), this.salonLookbooks.length > 0 && (h("div", { class: "salon-loobooks--grid", id: "salon-loobooks--grid" }, this.salonLookbooks.map(style => {
|
|
191
|
+
const { caption, imageThumbMedium, owner } = style;
|
|
192
|
+
return (h("div", { class: "salon-lookbook salon-loobooks--grid-item", onClick: () => this.onClickLookbook(style) }, h("div", { class: "card", style: {
|
|
193
|
+
background: 'none',
|
|
194
|
+
border: 'none',
|
|
195
|
+
// maxWidth: '200px',
|
|
196
|
+
} }, h("div", { class: "salon-lookbook--image", style: {
|
|
197
|
+
borderRadius: '8px',
|
|
198
|
+
overflow: 'hidden',
|
|
199
|
+
minHeight: '80px',
|
|
200
|
+
background: Colors.Gray01,
|
|
201
|
+
} }, h("img", { src: imageThumbMedium, alt: caption, style: { maxWidth: '100%' } })), owner && (h("div", { class: "card-body", style: { paddingLeft: '0' } }, h("user-avatar", { name: owner.fullName, shortName: `${(owner.firstName || '').charAt(0)}${(owner.lastName || '').charAt(0)}`, avatar: owner.avatar }))))));
|
|
202
|
+
})))), this.salonLookbooks.length > 0 && !this.hideLoadMore && (h("div", { class: "view-footer", style: { paddingTop: '16px', textAlign: 'center' } }, h("button", { type: "button", class: "btn btn-light btn-lg", onClick: () => this.onLoadMore(), style: {
|
|
203
|
+
background: Colors.White,
|
|
204
|
+
border: `1px solid ${Colors.Gray02}`,
|
|
205
|
+
borderRadius: '4px',
|
|
206
|
+
paddingLeft: '24px',
|
|
207
|
+
paddingRight: '24px',
|
|
208
|
+
} }, this.isLoadingMore ? 'Loading' : 'Load more'))))));
|
|
227
209
|
}
|
|
228
210
|
static get is() { return "salon-lookbook"; }
|
|
229
|
-
static get originalStyleUrls() {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
"
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
"text": ""
|
|
249
|
-
},
|
|
250
|
-
"attribute": "salon-id",
|
|
251
|
-
"reflect": false
|
|
252
|
-
}
|
|
253
|
-
}; }
|
|
254
|
-
static get states() { return {
|
|
255
|
-
"isLoading": {},
|
|
256
|
-
"isLoadingMore": {},
|
|
257
|
-
"hideLoadMore": {},
|
|
258
|
-
"currentPage": {},
|
|
259
|
-
"totalLookbooks": {},
|
|
260
|
-
"salonCategories": {},
|
|
261
|
-
"salonLookbooks": {},
|
|
262
|
-
"sortBy": {},
|
|
263
|
-
"filterBy": {},
|
|
264
|
-
"isLayoutSetup": {}
|
|
265
|
-
}; }
|
|
266
|
-
static get methods() { return {
|
|
267
|
-
"fetchData": {
|
|
268
|
-
"complexType": {
|
|
269
|
-
"signature": "() => Promise<any[]>",
|
|
270
|
-
"parameters": [],
|
|
271
|
-
"references": {
|
|
272
|
-
"Promise": {
|
|
273
|
-
"location": "global"
|
|
274
|
-
}
|
|
211
|
+
static get originalStyleUrls() {
|
|
212
|
+
return {
|
|
213
|
+
"$": ["index.css"]
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
static get styleUrls() {
|
|
217
|
+
return {
|
|
218
|
+
"$": ["index.css"]
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
static get properties() {
|
|
222
|
+
return {
|
|
223
|
+
"salonId": {
|
|
224
|
+
"type": "number",
|
|
225
|
+
"mutable": false,
|
|
226
|
+
"complexType": {
|
|
227
|
+
"original": "number",
|
|
228
|
+
"resolved": "number",
|
|
229
|
+
"references": {}
|
|
275
230
|
},
|
|
276
|
-
"
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
231
|
+
"required": false,
|
|
232
|
+
"optional": false,
|
|
233
|
+
"docs": {
|
|
234
|
+
"tags": [],
|
|
235
|
+
"text": ""
|
|
236
|
+
},
|
|
237
|
+
"attribute": "salon-id",
|
|
238
|
+
"reflect": false
|
|
281
239
|
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
static get states() {
|
|
243
|
+
return {
|
|
244
|
+
"isLoading": {},
|
|
245
|
+
"isLoadingMore": {},
|
|
246
|
+
"hideLoadMore": {},
|
|
247
|
+
"currentPage": {},
|
|
248
|
+
"totalLookbooks": {},
|
|
249
|
+
"salonCategories": {},
|
|
250
|
+
"salonLookbooks": {},
|
|
251
|
+
"sortBy": {},
|
|
252
|
+
"filterBy": {},
|
|
253
|
+
"isLayoutSetup": {}
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
static get methods() {
|
|
257
|
+
return {
|
|
258
|
+
"fetchData": {
|
|
259
|
+
"complexType": {
|
|
260
|
+
"signature": "() => Promise<any[]>",
|
|
261
|
+
"parameters": [],
|
|
262
|
+
"references": {
|
|
263
|
+
"Promise": {
|
|
264
|
+
"location": "global"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"return": "Promise<any[]>"
|
|
297
268
|
},
|
|
298
|
-
"
|
|
269
|
+
"docs": {
|
|
270
|
+
"text": "",
|
|
271
|
+
"tags": []
|
|
272
|
+
}
|
|
299
273
|
},
|
|
300
|
-
"
|
|
301
|
-
"
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
274
|
+
"fetchLookbooks": {
|
|
275
|
+
"complexType": {
|
|
276
|
+
"signature": "(options: any, isLoadingMore?: boolean) => Promise<void>",
|
|
277
|
+
"parameters": [{
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": ""
|
|
280
|
+
}, {
|
|
281
|
+
"tags": [],
|
|
282
|
+
"text": ""
|
|
283
|
+
}],
|
|
284
|
+
"references": {
|
|
285
|
+
"Promise": {
|
|
286
|
+
"location": "global"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"return": "Promise<void>"
|
|
316
290
|
},
|
|
317
|
-
"
|
|
291
|
+
"docs": {
|
|
292
|
+
"text": "",
|
|
293
|
+
"tags": []
|
|
294
|
+
}
|
|
318
295
|
},
|
|
319
|
-
"
|
|
320
|
-
"
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
"Promise": {
|
|
333
|
-
"location": "global"
|
|
334
|
-
}
|
|
296
|
+
"onChangeFiltering": {
|
|
297
|
+
"complexType": {
|
|
298
|
+
"signature": "(filterBy: string) => Promise<void>",
|
|
299
|
+
"parameters": [{
|
|
300
|
+
"tags": [],
|
|
301
|
+
"text": ""
|
|
302
|
+
}],
|
|
303
|
+
"references": {
|
|
304
|
+
"Promise": {
|
|
305
|
+
"location": "global"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"return": "Promise<void>"
|
|
335
309
|
},
|
|
336
|
-
"
|
|
310
|
+
"docs": {
|
|
311
|
+
"text": "",
|
|
312
|
+
"tags": []
|
|
313
|
+
}
|
|
337
314
|
},
|
|
338
|
-
"
|
|
339
|
-
"
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
315
|
+
"onChangeSorting": {
|
|
316
|
+
"complexType": {
|
|
317
|
+
"signature": "(sortBy: string) => Promise<void>",
|
|
318
|
+
"parameters": [{
|
|
319
|
+
"tags": [],
|
|
320
|
+
"text": ""
|
|
321
|
+
}],
|
|
322
|
+
"references": {
|
|
323
|
+
"Promise": {
|
|
324
|
+
"location": "global"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"return": "Promise<void>"
|
|
351
328
|
},
|
|
352
|
-
"
|
|
329
|
+
"docs": {
|
|
330
|
+
"text": "",
|
|
331
|
+
"tags": []
|
|
332
|
+
}
|
|
353
333
|
},
|
|
354
|
-
"
|
|
355
|
-
"
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
"Promise": {
|
|
365
|
-
"location": "global"
|
|
366
|
-
}
|
|
334
|
+
"onLoadMore": {
|
|
335
|
+
"complexType": {
|
|
336
|
+
"signature": "() => Promise<void>",
|
|
337
|
+
"parameters": [],
|
|
338
|
+
"references": {
|
|
339
|
+
"Promise": {
|
|
340
|
+
"location": "global"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"return": "Promise<void>"
|
|
367
344
|
},
|
|
368
|
-
"
|
|
345
|
+
"docs": {
|
|
346
|
+
"text": "",
|
|
347
|
+
"tags": []
|
|
348
|
+
}
|
|
369
349
|
},
|
|
370
|
-
"
|
|
371
|
-
"
|
|
372
|
-
|
|
350
|
+
"fetchCategories": {
|
|
351
|
+
"complexType": {
|
|
352
|
+
"signature": "() => Promise<void>",
|
|
353
|
+
"parameters": [],
|
|
354
|
+
"references": {
|
|
355
|
+
"Promise": {
|
|
356
|
+
"location": "global"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"return": "Promise<void>"
|
|
360
|
+
},
|
|
361
|
+
"docs": {
|
|
362
|
+
"text": "",
|
|
363
|
+
"tags": []
|
|
364
|
+
}
|
|
373
365
|
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
366
|
+
};
|
|
367
|
+
}
|
|
376
368
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
2
|
import { Colors } from '../../constants/colors';
|
|
3
3
|
export class SalonRanking {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.ranking = undefined;
|
|
5
6
|
this.height = 16;
|
|
6
7
|
this.width = 16;
|
|
7
8
|
}
|
|
@@ -43,72 +44,74 @@ export class SalonRanking {
|
|
|
43
44
|
justifyContent: 'center',
|
|
44
45
|
width: '100%',
|
|
45
46
|
color: rankingData.color,
|
|
46
|
-
} },
|
|
47
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", width: this.width, height: this.height, viewBox: `0 0 ${this.width} ${this.height}`, style: { maxWidth: `${this.width}px`, height: 'auto', marginRight: '8px' } },
|
|
48
|
-
h("path", { d: "M14.9984 14.1273C15.0188 14.2658 14.8369 14.3204 14.7415 14.2251L8.11345 7.6028C6.41272 5.90355 6.42184 3.19468 8.23887 1.76037C9.63972 0.678363 11.7259 0.753791 13.1793 1.96961C14.1899 2.80207 14.706 3.93808 14.7471 5.07223L14.9984 14.1273Z", fill: "currentColor" }),
|
|
49
|
-
h("path", { d: "M1.74847 8.24513C3.18403 6.42967 5.91004 6.40579 7.61078 8.10504L14.2548 14.7432C14.3501 14.8385 14.2795 15.0043 14.1568 14.9999L5.078 14.7329C3.94287 14.6918 2.78997 14.1604 1.97268 13.1665C0.755801 11.7144 0.680308 9.62998 1.74847 8.24513Z", fill: "currentColor" })),
|
|
50
|
-
rankingData.text));
|
|
47
|
+
} }, h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", width: this.width, height: this.height, viewBox: `0 0 ${this.width} ${this.height}`, style: { maxWidth: `${this.width}px`, height: 'auto', marginRight: '8px' } }, h("path", { d: "M14.9984 14.1273C15.0188 14.2658 14.8369 14.3204 14.7415 14.2251L8.11345 7.6028C6.41272 5.90355 6.42184 3.19468 8.23887 1.76037C9.63972 0.678363 11.7259 0.753791 13.1793 1.96961C14.1899 2.80207 14.706 3.93808 14.7471 5.07223L14.9984 14.1273Z", fill: "currentColor" }), h("path", { d: "M1.74847 8.24513C3.18403 6.42967 5.91004 6.40579 7.61078 8.10504L14.2548 14.7432C14.3501 14.8385 14.2795 15.0043 14.1568 14.9999L5.078 14.7329C3.94287 14.6918 2.78997 14.1604 1.97268 13.1665C0.755801 11.7144 0.680308 9.62998 1.74847 8.24513Z", fill: "currentColor" })), rankingData.text));
|
|
51
48
|
}
|
|
52
49
|
static get is() { return "salon-ranking"; }
|
|
53
|
-
static get originalStyleUrls() {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"original": "number",
|
|
82
|
-
"resolved": "number",
|
|
83
|
-
"references": {}
|
|
84
|
-
},
|
|
85
|
-
"required": false,
|
|
86
|
-
"optional": true,
|
|
87
|
-
"docs": {
|
|
88
|
-
"tags": [],
|
|
89
|
-
"text": ""
|
|
90
|
-
},
|
|
91
|
-
"attribute": "height",
|
|
92
|
-
"reflect": false,
|
|
93
|
-
"defaultValue": "16"
|
|
94
|
-
},
|
|
95
|
-
"width": {
|
|
96
|
-
"type": "number",
|
|
97
|
-
"mutable": false,
|
|
98
|
-
"complexType": {
|
|
99
|
-
"original": "number",
|
|
100
|
-
"resolved": "number",
|
|
101
|
-
"references": {}
|
|
50
|
+
static get originalStyleUrls() {
|
|
51
|
+
return {
|
|
52
|
+
"$": ["index.css"]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static get styleUrls() {
|
|
56
|
+
return {
|
|
57
|
+
"$": ["index.css"]
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
static get properties() {
|
|
61
|
+
return {
|
|
62
|
+
"ranking": {
|
|
63
|
+
"type": "number",
|
|
64
|
+
"mutable": false,
|
|
65
|
+
"complexType": {
|
|
66
|
+
"original": "number",
|
|
67
|
+
"resolved": "number",
|
|
68
|
+
"references": {}
|
|
69
|
+
},
|
|
70
|
+
"required": false,
|
|
71
|
+
"optional": false,
|
|
72
|
+
"docs": {
|
|
73
|
+
"tags": [],
|
|
74
|
+
"text": ""
|
|
75
|
+
},
|
|
76
|
+
"attribute": "ranking",
|
|
77
|
+
"reflect": false
|
|
102
78
|
},
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"
|
|
107
|
-
|
|
79
|
+
"height": {
|
|
80
|
+
"type": "number",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "number",
|
|
84
|
+
"resolved": "number",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": true,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": ""
|
|
92
|
+
},
|
|
93
|
+
"attribute": "height",
|
|
94
|
+
"reflect": false,
|
|
95
|
+
"defaultValue": "16"
|
|
108
96
|
},
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
97
|
+
"width": {
|
|
98
|
+
"type": "number",
|
|
99
|
+
"mutable": false,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "number",
|
|
102
|
+
"resolved": "number",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": true,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": ""
|
|
110
|
+
},
|
|
111
|
+
"attribute": "width",
|
|
112
|
+
"reflect": false,
|
|
113
|
+
"defaultValue": "16"
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
114
117
|
}
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
salon-reviews .salon-reviews {
|
|
3
3
|
flex-direction: column !important;
|
|
4
4
|
}
|
|
5
|
+
|
|
5
6
|
salon-reviews .salon-reviews--filters--options {
|
|
6
7
|
display: none !important;
|
|
7
8
|
}
|
|
9
|
+
|
|
8
10
|
salon-reviews .salon-reviews--list {
|
|
9
11
|
padding-top: 32px !important;
|
|
10
12
|
padding-left: 0px !important;
|
|
11
13
|
}
|
|
14
|
+
|
|
12
15
|
salon-reviews .reviews-list--sorting > label {
|
|
13
16
|
display: none !important;
|
|
14
17
|
}
|