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.
Files changed (127) hide show
  1. package/dist/cjs/chat-button.cjs.entry.js +118 -0
  2. package/dist/cjs/favesalon-embed.cjs.js +7 -3
  3. package/dist/cjs/google-map_5.cjs.entry.js +26 -7
  4. package/dist/cjs/{index-e6bea8f5.js → index-47c2a5f6.js} +512 -208
  5. package/dist/cjs/loader.cjs.js +4 -3
  6. package/dist/cjs/relativeTime-3721080d.js +9 -0
  7. package/dist/cjs/salon-booking-modal.cjs.entry.js +3 -2
  8. package/dist/cjs/salon-booking.cjs.entry.js +3 -2
  9. package/dist/cjs/salon-gift-card-modal.cjs.entry.js +3 -2
  10. package/dist/cjs/salon-gift-card.cjs.entry.js +3 -2
  11. package/dist/cjs/salon-latest-reviews.cjs.entry.js +5 -3
  12. package/dist/cjs/salon-lookbook.cjs.entry.js +7 -3
  13. package/dist/cjs/salon-ranking.cjs.entry.js +3 -2
  14. package/dist/cjs/salon-reviews.cjs.entry.js +10 -3
  15. package/dist/cjs/salon-services.cjs.entry.js +6 -3
  16. package/dist/cjs/salon-stylists.cjs.entry.js +9 -3
  17. package/dist/cjs/services-125c82d8.js +21492 -0
  18. package/dist/cjs/style-detail.cjs.entry.js +11 -9
  19. package/dist/cjs/user-avatar.cjs.entry.js +7 -3
  20. package/dist/collection/collection-manifest.json +3 -2
  21. package/dist/collection/components/chat-button/index.css +122 -0
  22. package/dist/collection/components/chat-button/index.js +218 -0
  23. package/dist/collection/components/chat-conversation/index.js +103 -0
  24. package/dist/collection/components/google-map/index.js +72 -68
  25. package/dist/collection/components/salon-booking/index.css +5 -0
  26. package/dist/collection/components/salon-booking/index.js +85 -80
  27. package/dist/collection/components/salon-booking/salon-booking-modal.js +73 -69
  28. package/dist/collection/components/salon-gift-card/index.css +6 -1
  29. package/dist/collection/components/salon-gift-card/index.js +85 -80
  30. package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +56 -52
  31. package/dist/collection/components/salon-info/index.css +1 -0
  32. package/dist/collection/components/salon-info/index.js +60 -54
  33. package/dist/collection/components/salon-latest-reviews/index.css +3 -0
  34. package/dist/collection/components/salon-latest-reviews/index.js +131 -144
  35. package/dist/collection/components/salon-latest-styles/index.css +2 -0
  36. package/dist/collection/components/salon-latest-styles/index.js +143 -138
  37. package/dist/collection/components/salon-locations/index.css +3 -0
  38. package/dist/collection/components/salon-locations/index.js +112 -120
  39. package/dist/collection/components/salon-lookbook/index.css +3 -0
  40. package/dist/collection/components/salon-lookbook/index.js +182 -190
  41. package/dist/collection/components/salon-ranking/index.js +68 -65
  42. package/dist/collection/components/salon-reviews/index.css +3 -0
  43. package/dist/collection/components/salon-reviews/index.js +146 -183
  44. package/dist/collection/components/salon-schedules/index.css +3 -0
  45. package/dist/collection/components/salon-schedules/index.js +129 -151
  46. package/dist/collection/components/salon-services/index.css +1 -0
  47. package/dist/collection/components/salon-services/index.js +117 -127
  48. package/dist/collection/components/salon-stylists/index.css +8 -0
  49. package/dist/collection/components/salon-stylists/index.js +137 -136
  50. package/dist/collection/components/style-detail/index.css +14 -0
  51. package/dist/collection/components/style-detail/index.js +265 -340
  52. package/dist/collection/components/user-avatar/index.js +119 -112
  53. package/dist/collection/mocks/users.js +10 -0
  54. package/dist/collection/services/services.js +121 -0
  55. package/dist/collection/types/chat.js +23 -0
  56. package/dist/collection/types/user.js +1 -1
  57. package/dist/custom-elements/index.d.ts +6 -0
  58. package/dist/custom-elements/index.js +24628 -8605
  59. package/dist/esm/chat-button.entry.js +114 -0
  60. package/dist/esm/favesalon-embed.js +4 -3
  61. package/dist/esm/google-map_5.entry.js +26 -7
  62. package/dist/esm/{index-6af0a03d.js → index-3fae868e.js} +512 -209
  63. package/dist/esm/loader.js +4 -3
  64. package/dist/esm/polyfills/css-shim.js +1 -1
  65. package/dist/esm/relativeTime-cd452e6d.js +7 -0
  66. package/dist/esm/salon-booking-modal.entry.js +3 -2
  67. package/dist/esm/salon-booking.entry.js +3 -2
  68. package/dist/esm/salon-gift-card-modal.entry.js +3 -2
  69. package/dist/esm/salon-gift-card.entry.js +3 -2
  70. package/dist/esm/salon-latest-reviews.entry.js +5 -3
  71. package/dist/esm/salon-lookbook.entry.js +7 -3
  72. package/dist/esm/salon-ranking.entry.js +3 -2
  73. package/dist/esm/salon-reviews.entry.js +10 -3
  74. package/dist/esm/salon-services.entry.js +6 -3
  75. package/dist/esm/salon-stylists.entry.js +9 -3
  76. package/dist/esm/services-40a3e622.js +21485 -0
  77. package/dist/esm/style-detail.entry.js +10 -8
  78. package/dist/esm/user-avatar.entry.js +7 -3
  79. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
  80. package/dist/favesalon-embed/p-019c5ccd.entry.js +1 -0
  81. package/dist/favesalon-embed/p-083a8821.entry.js +1 -0
  82. package/dist/favesalon-embed/p-0d0ed9ea.entry.js +1 -0
  83. package/dist/favesalon-embed/p-119db8de.entry.js +1 -0
  84. package/dist/favesalon-embed/p-1432c51b.entry.js +1 -0
  85. package/dist/favesalon-embed/p-22093506.entry.js +1 -0
  86. package/dist/favesalon-embed/p-32b314e9.js +2 -0
  87. package/dist/favesalon-embed/p-4a5eca9a.js +1 -1
  88. package/dist/favesalon-embed/p-58d2e9be.js +1 -0
  89. package/dist/favesalon-embed/p-71404b6a.entry.js +1 -0
  90. package/dist/favesalon-embed/p-857c3a61.entry.js +1 -0
  91. package/dist/favesalon-embed/p-99ec77f7.entry.js +1 -0
  92. package/dist/favesalon-embed/p-b0c3673a.entry.js +1 -0
  93. package/dist/favesalon-embed/p-b287b1ea.entry.js +1 -0
  94. package/dist/favesalon-embed/p-b3af7842.entry.js +1 -0
  95. package/dist/favesalon-embed/p-b630ae68.js +1580 -0
  96. package/dist/favesalon-embed/p-ce2c1c9a.entry.js +1 -0
  97. package/dist/favesalon-embed/p-d9b7ad58.entry.js +1 -0
  98. package/dist/favesalon-embed/p-fc9a5551.js +1 -1
  99. package/dist/types/components/chat-button/index.d.ts +24 -0
  100. package/dist/types/components.d.ts +22 -0
  101. package/dist/types/mocks/users.d.ts +10 -0
  102. package/dist/types/services/services.d.ts +15 -0
  103. package/dist/types/stencil-public-runtime.d.ts +85 -11
  104. package/dist/types/types/chat.d.ts +17 -0
  105. package/loader/index.d.ts +9 -0
  106. package/loader/package.json +1 -0
  107. package/package.json +3 -3
  108. package/readme.md +2 -2
  109. package/dist/cjs/services-eee8f251.js +0 -5634
  110. package/dist/esm/services-295247b1.js +0 -5627
  111. package/dist/favesalon-embed/p-292b97ba.entry.js +0 -1
  112. package/dist/favesalon-embed/p-4869dfed.entry.js +0 -1
  113. package/dist/favesalon-embed/p-4aee4fd9.entry.js +0 -1
  114. package/dist/favesalon-embed/p-5528c705.entry.js +0 -1
  115. package/dist/favesalon-embed/p-612ad685.entry.js +0 -1
  116. package/dist/favesalon-embed/p-75aef7e0.entry.js +0 -1
  117. package/dist/favesalon-embed/p-8c780874.entry.js +0 -1
  118. package/dist/favesalon-embed/p-8dbf04c5.js +0 -1
  119. package/dist/favesalon-embed/p-9f31061a.entry.js +0 -1
  120. package/dist/favesalon-embed/p-a60d78e9.entry.js +0 -1
  121. package/dist/favesalon-embed/p-a6debdae.entry.js +0 -1
  122. package/dist/favesalon-embed/p-bad1e9a7.entry.js +0 -1
  123. package/dist/favesalon-embed/p-c2ecb365.js +0 -1
  124. package/dist/favesalon-embed/p-c7dea70c.entry.js +0 -1
  125. package/dist/favesalon-embed/p-f0e14641.entry.js +0 -1
  126. package/dist/types/types/tmp.d.ts +0 -0
  127. /package/dist/{collection/types/tmp.js → types/components/chat-conversation/index.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { Component, Prop, h, State } from '@stencil/core';
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("div", { class: "salon-reviews--filters" },
101
- h("div", { class: "salon-reviews--score" },
102
- h("div", { class: "salon-review--rating", style: { display: 'flex', flexDirection: 'row' } }, [1, 2, 3, 4, 5].map(score => {
103
- 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 }) }));
104
- })),
105
- h("div", { class: "salon-review--rating--date", style: {
106
- display: 'flex',
107
- flexDirection: 'row',
108
- alignItems: 'center',
109
- marginTop: '-8px',
110
- } },
111
- h("span", { style: { fontSize: '24px' } },
112
- this.stats.reviewPoint,
113
- "/5"),
114
- " ",
115
- h("span", { style: { color: Colors.Gray04, marginLeft: '8px' } },
116
- "(",
117
- this.stats.totalReviews,
118
- " reviews)"))),
119
- h("div", { class: "salon-reviews--filters--options", style: { marginTop: '24px' } },
120
- h("div", { style: {
121
- background: Colors.Gray01,
122
- display: 'flex',
123
- alignItems: 'center',
124
- borderRadius: '4px',
125
- padding: '16px',
126
- } },
127
- h("div", null,
128
- h("input", { type: "checkbox", checked: this.filterBy.length === 0, onChange: () => {
129
- this.filterBy = [];
130
- this.onChangeFilter([]);
131
- } }),
132
- " ",
133
- h("span", { style: { marginLeft: '4px' } }, "All reviews")),
134
- [5, 4, 3, 2, 1].map(score => {
135
- const isChecked = this.filterBy.indexOf(score) > -1;
136
- return (h("div", { key: `salon-reviews--filters-score--${score}`, style: { display: 'flex', alignItems: 'center', marginLeft: '16px' } },
137
- h("input", { type: "checkbox", checked: isChecked, onChange: () => {
138
- const newFilter = isChecked ? this.filterBy.filter(fs => fs !== score) : this.filterBy.concat([score]);
139
- this.filterBy = newFilter;
140
- this.onChangeFilter(newFilter);
141
- } }),
142
- " ",
143
- h("span", { style: { display: 'flex', alignItems: 'center', marginLeft: '4px' } },
144
- score,
145
- " ",
146
- h("i", { class: "ri-heart-line", style: {
147
- fontSize: '16px',
148
- marginLeft: '4px',
149
- marginRight: '4px',
150
- lineHeight: '1',
151
- } }),
152
- " ",
153
- h("span", { style: { color: Colors.Gray04, fontSize: '12px' } },
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
- justifyContent: 'space-between',
162
- alignItems: 'center',
163
- marginTop: '24px',
164
- } },
165
- h("div", { class: "view--salon-reviews--counter" },
166
- this.totalReviews,
167
- " ",
168
- this.totalReviews === 1 ? `review` : `reviews`),
169
- h("div", { style: { display: 'flex', alignItems: 'center' } },
170
- h("label", { style: { marginRight: '8px', color: Colors.Gray04 } }, "Sort by"),
171
- h("select", { class: "search-filter--select", "place-holder": "Most popular", disabled: this.isLoading, onChange: (evt) => {
172
- this.sortBy = evt.target.value;
173
- this.onChangeSorting(evt.target.value);
174
- }, style: {
175
- display: 'flex',
176
- alignItems: 'center',
177
- backgroundColor: Colors.Gray01,
178
- borderColor: Colors.Gray01,
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() { return {
230
- "$": ["index.less"]
231
- }; }
232
- static get styleUrls() { return {
233
- "$": ["index.css"]
234
- }; }
235
- static get properties() { return {
236
- "salonId": {
237
- "type": "number",
238
- "mutable": false,
239
- "complexType": {
240
- "original": "number",
241
- "resolved": "number",
242
- "references": {}
243
- },
244
- "required": false,
245
- "optional": false,
246
- "docs": {
247
- "tags": [],
248
- "text": ""
249
- },
250
- "attribute": "salon-id",
251
- "reflect": false
252
- },
253
- "primaryColor": {
254
- "type": "string",
255
- "mutable": false,
256
- "complexType": {
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
- "attribute": "primary-color",
268
- "reflect": false,
269
- "defaultValue": "Colors.Primary"
270
- }
271
- }; }
272
- static get states() { return {
273
- "salonInfo": {},
274
- "stats": {},
275
- "totalReviews": {},
276
- "allReviews": {},
277
- "isLoading": {},
278
- "isSorting": {},
279
- "isFiltering": {},
280
- "isLoadingMore": {},
281
- "canLoadMore": {},
282
- "page": {},
283
- "filterBy": {},
284
- "sortBy": {}
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;