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, Method, State } from '@stencil/core';
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
- h("div", { class: "salon-loobook--serch-result" },
172
- this.totalLookbooks,
173
- " ",
174
- this.totalLookbooks === 1 ? 'result' : 'results'),
175
- h("div", { style: {
176
- display: 'flex',
177
- flexDirection: 'row',
178
- alignItems: 'center',
179
- } },
180
- h("div", { class: "salon-loobook--filter-wrapper", style: {
181
- display: 'flex',
182
- flexDirection: 'row',
183
- alignItems: 'center',
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
- h("div", null,
199
- h("div", { class: "view-content" },
200
- this.renderHeader(),
201
- this.salonLookbooks.length > 0 && (h("div", { class: "salon-loobooks--grid", id: "salon-loobooks--grid" }, this.salonLookbooks.map(style => {
202
- const { caption, imageThumbMedium, owner } = style;
203
- return (h("div", { class: "salon-lookbook salon-loobooks--grid-item", onClick: () => this.onClickLookbook(style) },
204
- h("div", { class: "card", style: {
205
- background: 'none',
206
- border: 'none',
207
- // maxWidth: '200px',
208
- } },
209
- h("div", { class: "salon-lookbook--image", style: {
210
- borderRadius: '8px',
211
- overflow: 'hidden',
212
- minHeight: '80px',
213
- background: Colors.Gray01,
214
- } },
215
- h("img", { src: imageThumbMedium, alt: caption, style: { maxWidth: '100%' } })),
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() { 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
- }; }
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
- "return": "Promise<any[]>"
277
- },
278
- "docs": {
279
- "text": "",
280
- "tags": []
231
+ "required": false,
232
+ "optional": false,
233
+ "docs": {
234
+ "tags": [],
235
+ "text": ""
236
+ },
237
+ "attribute": "salon-id",
238
+ "reflect": false
281
239
  }
282
- },
283
- "fetchLookbooks": {
284
- "complexType": {
285
- "signature": "(options: any, isLoadingMore?: boolean) => Promise<void>",
286
- "parameters": [{
287
- "tags": [],
288
- "text": ""
289
- }, {
290
- "tags": [],
291
- "text": ""
292
- }],
293
- "references": {
294
- "Promise": {
295
- "location": "global"
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
- "return": "Promise<void>"
269
+ "docs": {
270
+ "text": "",
271
+ "tags": []
272
+ }
299
273
  },
300
- "docs": {
301
- "text": "",
302
- "tags": []
303
- }
304
- },
305
- "onChangeFiltering": {
306
- "complexType": {
307
- "signature": "(filterBy: string) => Promise<void>",
308
- "parameters": [{
309
- "tags": [],
310
- "text": ""
311
- }],
312
- "references": {
313
- "Promise": {
314
- "location": "global"
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
- "return": "Promise<void>"
291
+ "docs": {
292
+ "text": "",
293
+ "tags": []
294
+ }
318
295
  },
319
- "docs": {
320
- "text": "",
321
- "tags": []
322
- }
323
- },
324
- "onChangeSorting": {
325
- "complexType": {
326
- "signature": "(sortBy: string) => Promise<void>",
327
- "parameters": [{
328
- "tags": [],
329
- "text": ""
330
- }],
331
- "references": {
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
- "return": "Promise<void>"
310
+ "docs": {
311
+ "text": "",
312
+ "tags": []
313
+ }
337
314
  },
338
- "docs": {
339
- "text": "",
340
- "tags": []
341
- }
342
- },
343
- "onLoadMore": {
344
- "complexType": {
345
- "signature": "() => Promise<void>",
346
- "parameters": [],
347
- "references": {
348
- "Promise": {
349
- "location": "global"
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
- "return": "Promise<void>"
329
+ "docs": {
330
+ "text": "",
331
+ "tags": []
332
+ }
353
333
  },
354
- "docs": {
355
- "text": "",
356
- "tags": []
357
- }
358
- },
359
- "fetchCategories": {
360
- "complexType": {
361
- "signature": "() => Promise<void>",
362
- "parameters": [],
363
- "references": {
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
- "return": "Promise<void>"
345
+ "docs": {
346
+ "text": "",
347
+ "tags": []
348
+ }
369
349
  },
370
- "docs": {
371
- "text": "",
372
- "tags": []
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 { Component, Prop, h } from '@stencil/core';
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() { return {
54
- "$": ["index.css"]
55
- }; }
56
- static get styleUrls() { return {
57
- "$": ["index.css"]
58
- }; }
59
- static get properties() { return {
60
- "ranking": {
61
- "type": "number",
62
- "mutable": false,
63
- "complexType": {
64
- "original": "number",
65
- "resolved": "number",
66
- "references": {}
67
- },
68
- "required": false,
69
- "optional": false,
70
- "docs": {
71
- "tags": [],
72
- "text": ""
73
- },
74
- "attribute": "ranking",
75
- "reflect": false
76
- },
77
- "height": {
78
- "type": "number",
79
- "mutable": false,
80
- "complexType": {
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
- "required": false,
104
- "optional": true,
105
- "docs": {
106
- "tags": [],
107
- "text": ""
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
- "attribute": "width",
110
- "reflect": false,
111
- "defaultValue": "16"
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
  }