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 dayjs from 'dayjs';
|
|
3
3
|
import { Colors } from '../../constants/colors';
|
|
4
4
|
import { shortDateYearFormat } from '../../types/common';
|
|
@@ -19,10 +19,17 @@ const sortOptions = [{
|
|
|
19
19
|
}];
|
|
20
20
|
export class SalonReviews {
|
|
21
21
|
constructor() {
|
|
22
|
+
this.salonId = undefined;
|
|
22
23
|
this.primaryColor = Colors.Primary;
|
|
24
|
+
this.salonInfo = undefined;
|
|
23
25
|
this.stats = {};
|
|
24
26
|
this.totalReviews = 0;
|
|
25
27
|
this.allReviews = [];
|
|
28
|
+
this.isLoading = undefined;
|
|
29
|
+
this.isSorting = undefined;
|
|
30
|
+
this.isFiltering = undefined;
|
|
31
|
+
this.isLoadingMore = undefined;
|
|
32
|
+
this.canLoadMore = undefined;
|
|
26
33
|
this.page = 1;
|
|
27
34
|
this.filterBy = [];
|
|
28
35
|
this.sortBy = sortOptions[0].value;
|
|
@@ -96,191 +103,147 @@ export class SalonReviews {
|
|
|
96
103
|
}
|
|
97
104
|
render() {
|
|
98
105
|
const ratingTexts = ['', 'Poor', 'Sufficient', 'Average', 'Well', 'Very good'];
|
|
99
|
-
return (h("div", { class: "view view--salon-reviews" },
|
|
100
|
-
h("
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
this.stats[String(score)] || 0,
|
|
156
|
-
")"))));
|
|
157
|
-
})))),
|
|
158
|
-
h("div", { class: "salon-reviews--list-header", style: {
|
|
106
|
+
return (h("div", { class: "view view--salon-reviews" }, h("div", { class: "salon-reviews--filters" }, h("div", { class: "salon-reviews--score" }, h("div", { class: "salon-review--rating", style: { display: 'flex', flexDirection: 'row' } }, [1, 2, 3, 4, 5].map(score => {
|
|
107
|
+
return (h("i", { class: score <= this.stats.reviewPoint ? 'ri-heart-fill' : 'ri-heart-line', style: Object.assign({ fontSize: '32px', marginRight: '4px' }, score <= this.stats.reviewPoint ? { color: this.primaryColor } : { color: Colors.Gray04 }) }));
|
|
108
|
+
})), h("div", { class: "salon-review--rating--date", style: {
|
|
109
|
+
display: 'flex',
|
|
110
|
+
flexDirection: 'row',
|
|
111
|
+
alignItems: 'center',
|
|
112
|
+
marginTop: '-8px',
|
|
113
|
+
} }, h("span", { style: { fontSize: '24px' } }, this.stats.reviewPoint, "/5"), " ", h("span", { style: { color: Colors.Gray04, marginLeft: '8px' } }, "(", this.stats.totalReviews, " reviews)"))), h("div", { class: "salon-reviews--filters--options", style: { marginTop: '24px' } }, h("div", { style: {
|
|
114
|
+
background: Colors.Gray01,
|
|
115
|
+
display: 'flex',
|
|
116
|
+
alignItems: 'center',
|
|
117
|
+
borderRadius: '4px',
|
|
118
|
+
padding: '16px',
|
|
119
|
+
} }, h("div", null, h("input", { type: "checkbox", checked: this.filterBy.length === 0, onChange: () => {
|
|
120
|
+
this.filterBy = [];
|
|
121
|
+
this.onChangeFilter([]);
|
|
122
|
+
} }), " ", h("span", { style: { marginLeft: '4px' } }, "All reviews")), [5, 4, 3, 2, 1].map(score => {
|
|
123
|
+
const isChecked = this.filterBy.indexOf(score) > -1;
|
|
124
|
+
return (h("div", { key: `salon-reviews--filters-score--${score}`, style: { display: 'flex', alignItems: 'center', marginLeft: '16px' } }, h("input", { type: "checkbox", checked: isChecked, onChange: () => {
|
|
125
|
+
const newFilter = isChecked ? this.filterBy.filter(fs => fs !== score) : this.filterBy.concat([score]);
|
|
126
|
+
this.filterBy = newFilter;
|
|
127
|
+
this.onChangeFilter(newFilter);
|
|
128
|
+
} }), " ", h("span", { style: { display: 'flex', alignItems: 'center', marginLeft: '4px' } }, score, " ", h("i", { class: "ri-heart-line", style: {
|
|
129
|
+
fontSize: '16px',
|
|
130
|
+
marginLeft: '4px',
|
|
131
|
+
marginRight: '4px',
|
|
132
|
+
lineHeight: '1',
|
|
133
|
+
} }), " ", h("span", { style: { color: Colors.Gray04, fontSize: '12px' } }, "(", this.stats[String(score)] || 0, ")"))));
|
|
134
|
+
})))), h("div", { class: "salon-reviews--list-header", style: {
|
|
135
|
+
display: 'flex',
|
|
136
|
+
flexDirection: 'row',
|
|
137
|
+
justifyContent: 'space-between',
|
|
138
|
+
alignItems: 'center',
|
|
139
|
+
marginTop: '24px',
|
|
140
|
+
} }, h("div", { class: "view--salon-reviews--counter" }, this.totalReviews, " ", this.totalReviews === 1 ? `review` : `reviews`), h("div", { style: { display: 'flex', alignItems: 'center' } }, h("label", { style: { marginRight: '8px', color: Colors.Gray04 } }, "Sort by"), h("select", { class: "search-filter--select", "place-holder": "Most popular", disabled: this.isLoading, onChange: (evt) => {
|
|
141
|
+
this.sortBy = evt.target.value;
|
|
142
|
+
this.onChangeSorting(evt.target.value);
|
|
143
|
+
}, style: {
|
|
144
|
+
display: 'flex',
|
|
145
|
+
alignItems: 'center',
|
|
146
|
+
backgroundColor: Colors.Gray01,
|
|
147
|
+
borderColor: Colors.Gray01,
|
|
148
|
+
borderRadius: '4px',
|
|
149
|
+
height: '40px',
|
|
150
|
+
width: '130px',
|
|
151
|
+
} }, sortOptions.map(sortOption => (h("option", { value: sortOption.value, selected: sortOption.value === this.sortBy, key: `search-filter--select-option--${sortOption.value}` }, sortOption.label)))))), h("div", { class: "salon-reviews--list-content", style: { marginTop: '24px' } }, this.allReviews.map((review, idx) => {
|
|
152
|
+
const user = review.user || {};
|
|
153
|
+
return (h("div", { class: "salon-review", key: `salon-review--${idx}`, style: {
|
|
154
|
+
borderBottom: `1px solid ${Colors.Gray02}`,
|
|
155
|
+
marginBottom: '24px',
|
|
156
|
+
paddingBottom: '24px',
|
|
157
|
+
} }, h("div", { class: "salon-review--user", style: { marginBottom: '16px', overflow: 'hidden' } }, h("user-avatar", { size: 48, avatar: user.avatar, name: h("span", { style: { fontSize: '18px', fontWeight: '600', color: Colors.TextColor } }, (user.firstName || user.lastName) ? `${user.firstName || ''} ${user.lastName || ''}` : ''), shortName: `${(user.firstName || '').charAt(0)}${(user.lastName || '').charAt(0)}`, nameStyle: { fontWeight: 'bold' } })), h("div", { class: "salon-review--rating", style: { display: 'flex', flexDirection: 'row', marginBottom: '4px' } }, [1, 2, 3, 4, 5].map(score => (h("i", { key: `salon-review--rating--item--score--${score}`, class: score <= review.point ? 'ri-heart-fill' : 'ri-heart-line', style: {
|
|
158
|
+
color: score <= review.point ? this.primaryColor : Colors.Gray04,
|
|
159
|
+
fontSize: '16px',
|
|
160
|
+
marginRight: '4px',
|
|
161
|
+
} }))), review.createdDate && (h("div", { class: "salon-review--rating--date", style: { fontSize: '14px', color: Colors.Gray04, marginLeft: '16px', position: 'relative', top: '2px' } }, dayjs(review.createdDate).format(shortDateYearFormat)))), h("div", { class: "salon-review--rating-text", style: { fontSize: '16px', fontWeight: '600' } }, ratingTexts[review.point]), (review.title || review.description) && (h("div", { class: "salon-review--detail", style: { marginTop: '16px' } }, h("div", { class: "salon-review--title", style: { fontSize: '18px', fontWeight: 'bold' }, innerHTML: review.title }), h("div", { class: "salon-review--description", style: { fontSize: '16px' }, innerHTML: review.description }))), review.photos.length > 0 && (h("div", { style: {
|
|
159
162
|
display: 'flex',
|
|
160
163
|
flexDirection: 'row',
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
borderRadius: '4px',
|
|
180
|
-
height: '40px',
|
|
181
|
-
width: '130px',
|
|
182
|
-
} }, sortOptions.map(sortOption => (h("option", { value: sortOption.value, selected: sortOption.value === this.sortBy, key: `search-filter--select-option--${sortOption.value}` }, sortOption.label)))))),
|
|
183
|
-
h("div", { class: "salon-reviews--list-content", style: { marginTop: '24px' } }, this.allReviews.map((review, idx) => {
|
|
184
|
-
const user = review.user || {};
|
|
185
|
-
return (h("div", { class: "salon-review", key: `salon-review--${idx}`, style: {
|
|
186
|
-
borderBottom: `1px solid ${Colors.Gray02}`,
|
|
187
|
-
marginBottom: '24px',
|
|
188
|
-
paddingBottom: '24px',
|
|
189
|
-
} },
|
|
190
|
-
h("div", { class: "salon-review--user", style: { marginBottom: '16px', overflow: 'hidden' } },
|
|
191
|
-
h("user-avatar", { size: 48, avatar: user.avatar, name: h("span", { style: { fontSize: '18px', fontWeight: '600', color: Colors.TextColor } }, (user.firstName || user.lastName) ? `${user.firstName || ''} ${user.lastName || ''}` : ''), shortName: `${(user.firstName || '').charAt(0)}${(user.lastName || '').charAt(0)}`, nameStyle: { fontWeight: 'bold' } })),
|
|
192
|
-
h("div", { class: "salon-review--rating", style: { display: 'flex', flexDirection: 'row', marginBottom: '4px' } },
|
|
193
|
-
[1, 2, 3, 4, 5].map(score => (h("i", { key: `salon-review--rating--item--score--${score}`, class: score <= review.point ? 'ri-heart-fill' : 'ri-heart-line', style: {
|
|
194
|
-
color: score <= review.point ? this.primaryColor : Colors.Gray04,
|
|
195
|
-
fontSize: '16px',
|
|
196
|
-
marginRight: '4px',
|
|
197
|
-
} }))),
|
|
198
|
-
review.createdDate && (h("div", { class: "salon-review--rating--date", style: { fontSize: '14px', color: Colors.Gray04, marginLeft: '16px', position: 'relative', top: '2px' } }, dayjs(review.createdDate).format(shortDateYearFormat)))),
|
|
199
|
-
h("div", { class: "salon-review--rating-text", style: { fontSize: '16px', fontWeight: '600' } }, ratingTexts[review.point]),
|
|
200
|
-
(review.title || review.description) && (h("div", { class: "salon-review--detail", style: { marginTop: '16px' } },
|
|
201
|
-
h("div", { class: "salon-review--title", style: { fontSize: '18px', fontWeight: 'bold' }, innerHTML: review.title }),
|
|
202
|
-
h("div", { class: "salon-review--description", style: { fontSize: '16px' }, innerHTML: review.description }))),
|
|
203
|
-
review.photos.length > 0 && (h("div", { style: {
|
|
204
|
-
display: 'flex',
|
|
205
|
-
flexDirection: 'row',
|
|
206
|
-
overflowX: 'auto',
|
|
207
|
-
} }, review.photos.map(fileObj => (h("div", { key: `upload-file--${fileObj.id}`, class: "review--photo", style: {
|
|
208
|
-
position: 'relative',
|
|
209
|
-
cursor: 'pointer',
|
|
210
|
-
marginTop: '16px',
|
|
211
|
-
marginRight: '12px',
|
|
212
|
-
} },
|
|
213
|
-
h("img", { width: 72, src: fileObj.imageUrlThumb, style: { display: 'block' } }))))))));
|
|
214
|
-
})),
|
|
215
|
-
h("div", { class: "salon-reviews--list-footer", style: {
|
|
216
|
-
textAlign: 'center',
|
|
217
|
-
paddingTop: '16px',
|
|
218
|
-
paddingBottom: '16px',
|
|
219
|
-
} },
|
|
220
|
-
h("button", { class: "btn btn-light btn-lg", style: {
|
|
221
|
-
background: Colors.White,
|
|
222
|
-
border: `1px solid ${Colors.Gray02}`,
|
|
223
|
-
borderRadius: '4px',
|
|
224
|
-
paddingLeft: '24px',
|
|
225
|
-
paddingRight: '24px',
|
|
226
|
-
}, onClick: () => this.onLoadMore() }, "Load more"))));
|
|
164
|
+
overflowX: 'auto',
|
|
165
|
+
} }, review.photos.map(fileObj => (h("div", { key: `upload-file--${fileObj.id}`, class: "review--photo", style: {
|
|
166
|
+
position: 'relative',
|
|
167
|
+
cursor: 'pointer',
|
|
168
|
+
marginTop: '16px',
|
|
169
|
+
marginRight: '12px',
|
|
170
|
+
} }, h("img", { width: 72, src: fileObj.imageUrlThumb, style: { display: 'block' } }))))))));
|
|
171
|
+
})), h("div", { class: "salon-reviews--list-footer", style: {
|
|
172
|
+
textAlign: 'center',
|
|
173
|
+
paddingTop: '16px',
|
|
174
|
+
paddingBottom: '16px',
|
|
175
|
+
} }, h("button", { class: "btn btn-light btn-lg", style: {
|
|
176
|
+
background: Colors.White,
|
|
177
|
+
border: `1px solid ${Colors.Gray02}`,
|
|
178
|
+
borderRadius: '4px',
|
|
179
|
+
paddingLeft: '24px',
|
|
180
|
+
paddingRight: '24px',
|
|
181
|
+
}, onClick: () => this.onLoadMore() }, "Load more"))));
|
|
227
182
|
}
|
|
228
183
|
static get is() { return "salon-reviews"; }
|
|
229
|
-
static get originalStyleUrls() {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
"
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
"original": "string",
|
|
258
|
-
"resolved": "string",
|
|
259
|
-
"references": {}
|
|
260
|
-
},
|
|
261
|
-
"required": false,
|
|
262
|
-
"optional": false,
|
|
263
|
-
"docs": {
|
|
264
|
-
"tags": [],
|
|
265
|
-
"text": ""
|
|
184
|
+
static get originalStyleUrls() {
|
|
185
|
+
return {
|
|
186
|
+
"$": ["index.css"]
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
static get styleUrls() {
|
|
190
|
+
return {
|
|
191
|
+
"$": ["index.css"]
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
static get properties() {
|
|
195
|
+
return {
|
|
196
|
+
"salonId": {
|
|
197
|
+
"type": "number",
|
|
198
|
+
"mutable": false,
|
|
199
|
+
"complexType": {
|
|
200
|
+
"original": "number",
|
|
201
|
+
"resolved": "number",
|
|
202
|
+
"references": {}
|
|
203
|
+
},
|
|
204
|
+
"required": false,
|
|
205
|
+
"optional": false,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": ""
|
|
209
|
+
},
|
|
210
|
+
"attribute": "salon-id",
|
|
211
|
+
"reflect": false
|
|
266
212
|
},
|
|
267
|
-
"
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
213
|
+
"primaryColor": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "string",
|
|
218
|
+
"resolved": "string",
|
|
219
|
+
"references": {}
|
|
220
|
+
},
|
|
221
|
+
"required": false,
|
|
222
|
+
"optional": false,
|
|
223
|
+
"docs": {
|
|
224
|
+
"tags": [],
|
|
225
|
+
"text": ""
|
|
226
|
+
},
|
|
227
|
+
"attribute": "primary-color",
|
|
228
|
+
"reflect": false,
|
|
229
|
+
"defaultValue": "Colors.Primary"
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
static get states() {
|
|
234
|
+
return {
|
|
235
|
+
"salonInfo": {},
|
|
236
|
+
"stats": {},
|
|
237
|
+
"totalReviews": {},
|
|
238
|
+
"allReviews": {},
|
|
239
|
+
"isLoading": {},
|
|
240
|
+
"isSorting": {},
|
|
241
|
+
"isFiltering": {},
|
|
242
|
+
"isLoadingMore": {},
|
|
243
|
+
"canLoadMore": {},
|
|
244
|
+
"page": {},
|
|
245
|
+
"filterBy": {},
|
|
246
|
+
"sortBy": {}
|
|
247
|
+
};
|
|
248
|
+
}
|
|
286
249
|
}
|
|
@@ -3,11 +3,14 @@ salon-schedules .salon-schedules--day {
|
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
min-width: 240px;
|
|
5
5
|
}
|
|
6
|
+
|
|
7
|
+
|
|
6
8
|
@media (min-width: 768px) {
|
|
7
9
|
salon-schedules .salon-schedules--dates {
|
|
8
10
|
overflow: hidden;
|
|
9
11
|
margin-left: -32px;
|
|
10
12
|
}
|
|
13
|
+
|
|
11
14
|
salon-schedules .salon-schedules--day {
|
|
12
15
|
float: left;
|
|
13
16
|
padding-left: 32px;
|