favesalon-embed 0.0.4 → 1.0.0

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 (270) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/chat-button.cjs.entry.js +118 -0
  3. package/dist/cjs/colors-38421769.js +69 -0
  4. package/dist/cjs/favesalon-embed.cjs.js +24 -0
  5. package/dist/cjs/google-map_5.cjs.entry.js +310 -0
  6. package/{cjs/index-d5de0b9d.js → dist/cjs/index-47c2a5f6.js} +513 -199
  7. package/{cjs/index-48ac68d0.js → dist/cjs/index-7f190886.js} +1924 -0
  8. package/dist/cjs/loader.cjs.js +23 -0
  9. package/dist/cjs/relativeTime-3721080d.js +9 -0
  10. package/{cjs → dist/cjs}/salon-booking-modal.cjs.entry.js +7 -6
  11. package/{cjs → dist/cjs}/salon-booking.cjs.entry.js +8 -8
  12. package/dist/cjs/salon-gift-card-modal.cjs.entry.js +29 -0
  13. package/{cjs → dist/cjs}/salon-gift-card.cjs.entry.js +9 -8
  14. package/dist/cjs/salon-latest-reviews.cjs.entry.js +97 -0
  15. package/{cjs/salon-lookbook_2.cjs.entry.js → dist/cjs/salon-lookbook.cjs.entry.js} +28 -58
  16. package/{cjs → dist/cjs}/salon-ranking.cjs.entry.js +9 -8
  17. package/dist/cjs/salon-reviews.cjs.entry.js +193 -0
  18. package/dist/cjs/salon-services.cjs.entry.js +81 -0
  19. package/dist/cjs/salon-stylists.cjs.entry.js +118 -0
  20. package/dist/cjs/services-125c82d8.js +21492 -0
  21. package/dist/cjs/style-detail.cjs.entry.js +312 -0
  22. package/dist/cjs/user-avatar.cjs.entry.js +45 -0
  23. package/{collection → dist/collection}/collection-manifest.json +5 -5
  24. package/dist/collection/components/chat-button/index.css +122 -0
  25. package/dist/collection/components/chat-button/index.js +218 -0
  26. package/dist/collection/components/chat-conversation/index.js +103 -0
  27. package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
  28. package/{collection → dist/collection}/components/google-map/index.css +0 -1
  29. package/dist/collection/components/google-map/index.js +90 -0
  30. package/{collection → dist/collection}/components/salon-booking/index.css +11 -20
  31. package/dist/collection/components/salon-booking/index.js +126 -0
  32. package/dist/collection/components/salon-booking/salon-booking-modal.js +92 -0
  33. package/dist/collection/components/salon-gift-card/index.css +30 -0
  34. package/dist/collection/components/salon-gift-card/index.js +126 -0
  35. package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +73 -0
  36. package/dist/collection/components/salon-info/index.js +77 -0
  37. package/dist/collection/components/salon-latest-reviews/index.js +163 -0
  38. package/dist/collection/components/salon-latest-styles/index.css +12 -0
  39. package/dist/collection/components/salon-latest-styles/index.js +183 -0
  40. package/{collection/components/salon-contact → dist/collection/components/salon-locations}/index.css +7 -4
  41. package/dist/collection/components/salon-locations/index.js +143 -0
  42. package/{collection → dist/collection}/components/salon-lookbook/index.css +3 -9
  43. package/dist/collection/components/salon-lookbook/index.js +368 -0
  44. package/dist/collection/components/salon-ranking/index.js +117 -0
  45. package/{collection → dist/collection}/components/salon-reviews/index.css +3 -0
  46. package/dist/collection/components/salon-reviews/index.js +249 -0
  47. package/dist/collection/components/salon-schedules/index.css +18 -0
  48. package/dist/collection/components/salon-schedules/index.js +167 -0
  49. package/dist/collection/components/salon-services/index.css +1 -0
  50. package/dist/collection/components/salon-services/index.js +146 -0
  51. package/dist/collection/components/salon-stylists/index.js +184 -0
  52. package/dist/collection/components/style-detail/index.css +76 -0
  53. package/dist/collection/components/style-detail/index.js +386 -0
  54. package/dist/collection/components/user-avatar/index.js +134 -0
  55. package/dist/collection/constants/colors.js +65 -0
  56. package/dist/collection/mocks/users.js +10 -0
  57. package/dist/collection/services/services.js +295 -0
  58. package/dist/collection/types/chat.js +23 -0
  59. package/dist/collection/types/common.js +11 -0
  60. package/{collection → dist/collection}/types/review.js +9 -5
  61. package/dist/collection/types/salon.js +58 -0
  62. package/dist/collection/types/style.js +128 -0
  63. package/{collection → dist/collection}/types/stylist.js +12 -9
  64. package/dist/collection/types/user.js +10 -0
  65. package/{custom-elements → dist/custom-elements}/index.d.ts +18 -18
  66. package/dist/custom-elements/index.js +28340 -0
  67. package/dist/esm/chat-button.entry.js +114 -0
  68. package/dist/esm/colors-ea36347a.js +67 -0
  69. package/dist/esm/favesalon-embed.js +19 -0
  70. package/dist/esm/google-map_5.entry.js +302 -0
  71. package/{esm/index-0f8eed73.js → dist/esm/index-3fae868e.js} +512 -200
  72. package/{esm/index-67d677ba.js → dist/esm/index-80523fec.js} +1924 -1
  73. package/dist/esm/index.js +1 -0
  74. package/dist/esm/loader.js +19 -0
  75. package/dist/esm/polyfills/css-shim.js +1 -0
  76. package/dist/esm/relativeTime-cd452e6d.js +7 -0
  77. package/{esm → dist/esm}/salon-booking-modal.entry.js +7 -6
  78. package/{esm → dist/esm}/salon-booking.entry.js +7 -7
  79. package/dist/esm/salon-gift-card-modal.entry.js +25 -0
  80. package/{esm → dist/esm}/salon-gift-card.entry.js +8 -7
  81. package/dist/esm/salon-latest-reviews.entry.js +93 -0
  82. package/{esm/salon-lookbook_2.entry.js → dist/esm/salon-lookbook.entry.js} +29 -58
  83. package/{esm → dist/esm}/salon-ranking.entry.js +9 -8
  84. package/dist/esm/salon-reviews.entry.js +189 -0
  85. package/dist/esm/salon-services.entry.js +77 -0
  86. package/dist/esm/salon-stylists.entry.js +114 -0
  87. package/dist/esm/services-40a3e622.js +21485 -0
  88. package/dist/esm/style-detail.entry.js +308 -0
  89. package/dist/esm/user-avatar.entry.js +41 -0
  90. package/dist/favesalon-embed/assets/map--placeholder.jpeg +0 -0
  91. package/{favesalon-embed → dist/favesalon-embed}/favesalon-embed.css +1 -1
  92. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -0
  93. package/dist/favesalon-embed/p-019c5ccd.entry.js +1 -0
  94. package/dist/favesalon-embed/p-083a8821.entry.js +1 -0
  95. package/dist/favesalon-embed/p-0d0ed9ea.entry.js +1 -0
  96. package/dist/favesalon-embed/p-119db8de.entry.js +1 -0
  97. package/dist/favesalon-embed/p-1432c51b.entry.js +1 -0
  98. package/dist/favesalon-embed/p-22093506.entry.js +1 -0
  99. package/dist/favesalon-embed/p-32b314e9.js +2 -0
  100. package/dist/favesalon-embed/p-4a5eca9a.js +6 -0
  101. package/dist/favesalon-embed/p-58d2e9be.js +1 -0
  102. package/dist/favesalon-embed/p-71404b6a.entry.js +1 -0
  103. package/dist/favesalon-embed/p-857c3a61.entry.js +1 -0
  104. package/dist/favesalon-embed/p-99ec77f7.entry.js +1 -0
  105. package/dist/favesalon-embed/p-a33331cc.js +1 -0
  106. package/dist/favesalon-embed/p-b0c3673a.entry.js +1 -0
  107. package/dist/favesalon-embed/p-b287b1ea.entry.js +1 -0
  108. package/dist/favesalon-embed/p-b3af7842.entry.js +1 -0
  109. package/dist/favesalon-embed/p-b630ae68.js +1580 -0
  110. package/dist/favesalon-embed/p-ce2c1c9a.entry.js +1 -0
  111. package/dist/favesalon-embed/p-d9b7ad58.entry.js +1 -0
  112. package/dist/favesalon-embed/p-fc9a5551.js +6 -0
  113. package/dist/types/components/chat-button/index.d.ts +24 -0
  114. package/dist/types/components/google-map/index.d.ts +5 -0
  115. package/{types → dist/types}/components/salon-gift-card/salon-gift-card-modal.d.ts +1 -0
  116. package/{types → dist/types}/components/salon-info/index.d.ts +0 -1
  117. package/{types → dist/types}/components/salon-latest-reviews/index.d.ts +2 -0
  118. package/dist/types/components/salon-latest-styles/index.d.ts +12 -0
  119. package/{types → dist/types}/components/salon-locations/index.d.ts +2 -0
  120. package/{types → dist/types}/components/salon-lookbook/index.d.ts +3 -3
  121. package/dist/types/components/salon-reviews/index.d.ts +24 -0
  122. package/{types → dist/types}/components/salon-schedules/index.d.ts +2 -0
  123. package/{types → dist/types}/components/salon-services/index.d.ts +1 -0
  124. package/{types → dist/types}/components/salon-stylists/index.d.ts +6 -0
  125. package/dist/types/components/style-detail/index.d.ts +24 -0
  126. package/{types → dist/types}/components.d.ts +76 -59
  127. package/dist/types/constants/colors.d.ts +65 -0
  128. package/dist/types/mocks/users.d.ts +10 -0
  129. package/dist/types/services/services.d.ts +75 -0
  130. package/{types → dist/types}/stencil-public-runtime.d.ts +85 -11
  131. package/dist/types/types/chat.d.ts +17 -0
  132. package/dist/types/types/common.d.ts +11 -0
  133. package/{types → dist/types}/types/review.d.ts +4 -0
  134. package/{types → dist/types}/types/salon.d.ts +3 -1
  135. package/dist/types/types/style.d.ts +88 -0
  136. package/{types → dist/types}/types/stylist.d.ts +1 -1
  137. package/{types → dist/types}/types/user.d.ts +2 -2
  138. package/loader/cdn.js +3 -0
  139. package/loader/index.cjs.js +3 -0
  140. package/loader/index.d.ts +21 -0
  141. package/loader/index.es2017.js +3 -0
  142. package/loader/index.js +4 -0
  143. package/loader/package.json +11 -0
  144. package/package.json +19 -14
  145. package/readme.md +24 -7
  146. package/cjs/colors-7f354880.js +0 -95
  147. package/cjs/favesalon-embed.cjs.js +0 -20
  148. package/cjs/google-map.cjs.entry.js +0 -47
  149. package/cjs/index-95daad08.js +0 -1928
  150. package/cjs/loader.cjs.js +0 -22
  151. package/cjs/salon-contact_4.cjs.entry.js +0 -155
  152. package/cjs/salon-gift-card-modal.cjs.entry.js +0 -25
  153. package/cjs/salon-info.cjs.entry.js +0 -35
  154. package/cjs/salon-latest-reviews.cjs.entry.js +0 -58
  155. package/cjs/salon-lookbook-modal.cjs.entry.js +0 -141
  156. package/cjs/salon-reviews.cjs.entry.js +0 -205
  157. package/cjs/salon-services.cjs.entry.js +0 -47
  158. package/cjs/salon-stylists.cjs.entry.js +0 -54
  159. package/cjs/services-f1102d4a.js +0 -5762
  160. package/collection/components/google-map/index.js +0 -97
  161. package/collection/components/salon-booking/index.js +0 -121
  162. package/collection/components/salon-booking/salon-booking-modal.js +0 -88
  163. package/collection/components/salon-contact/index.js +0 -88
  164. package/collection/components/salon-gift-card/index.css +0 -25
  165. package/collection/components/salon-gift-card/index.js +0 -120
  166. package/collection/components/salon-gift-card/salon-gift-card-modal.js +0 -48
  167. package/collection/components/salon-info/index.css +0 -3
  168. package/collection/components/salon-info/index.js +0 -97
  169. package/collection/components/salon-latest-reviews/index.js +0 -108
  170. package/collection/components/salon-locations/index.js +0 -80
  171. package/collection/components/salon-lookbook/index.js +0 -376
  172. package/collection/components/salon-lookbook/lookbook-modal.css +0 -72
  173. package/collection/components/salon-lookbook/salon-lookbook-modal.js +0 -248
  174. package/collection/components/salon-ranking/index.js +0 -114
  175. package/collection/components/salon-reviews/index.js +0 -317
  176. package/collection/components/salon-schedules/index.css +0 -14
  177. package/collection/components/salon-schedules/index.js +0 -103
  178. package/collection/components/salon-services/index.js +0 -113
  179. package/collection/components/salon-styles/index.css +0 -23
  180. package/collection/components/salon-styles/index.js +0 -100
  181. package/collection/components/salon-stylists/index.js +0 -96
  182. package/collection/components/user-avatar/index.css +0 -0
  183. package/collection/components/user-avatar/index.js +0 -127
  184. package/collection/constants/colors.js +0 -91
  185. package/collection/services/services.js +0 -225
  186. package/collection/types/common.js +0 -2
  187. package/collection/types/salon.js +0 -52
  188. package/collection/types/style.js +0 -103
  189. package/collection/types/user.js +0 -10
  190. package/custom-elements/index.js +0 -12125
  191. package/esm/colors-1ec90c5f.js +0 -93
  192. package/esm/favesalon-embed.js +0 -18
  193. package/esm/google-map.entry.js +0 -43
  194. package/esm/index-09d43e3e.js +0 -1926
  195. package/esm/loader.js +0 -18
  196. package/esm/polyfills/css-shim.js +0 -1
  197. package/esm/salon-contact_4.entry.js +0 -148
  198. package/esm/salon-gift-card-modal.entry.js +0 -21
  199. package/esm/salon-info.entry.js +0 -31
  200. package/esm/salon-latest-reviews.entry.js +0 -54
  201. package/esm/salon-lookbook-modal.entry.js +0 -137
  202. package/esm/salon-reviews.entry.js +0 -201
  203. package/esm/salon-services.entry.js +0 -43
  204. package/esm/salon-stylists.entry.js +0 -50
  205. package/esm/services-74d84ca9.js +0 -5756
  206. package/favesalon-embed/favesalon-embed.esm.js +0 -1
  207. package/favesalon-embed/p-0188d4dc.entry.js +0 -1
  208. package/favesalon-embed/p-0318501e.js +0 -1
  209. package/favesalon-embed/p-078f242d.entry.js +0 -1
  210. package/favesalon-embed/p-13e23c61.entry.js +0 -1
  211. package/favesalon-embed/p-17df13ad.js +0 -1
  212. package/favesalon-embed/p-1a3179c8.entry.js +0 -1
  213. package/favesalon-embed/p-20aa75de.js +0 -6
  214. package/favesalon-embed/p-2901a6d6.entry.js +0 -1
  215. package/favesalon-embed/p-2b861430.entry.js +0 -1
  216. package/favesalon-embed/p-44d810a0.js +0 -1
  217. package/favesalon-embed/p-4a5eca9a.js +0 -6
  218. package/favesalon-embed/p-4c68700f.entry.js +0 -1
  219. package/favesalon-embed/p-4e2d7b29.js +0 -1
  220. package/favesalon-embed/p-6b845bf1.entry.js +0 -1
  221. package/favesalon-embed/p-7350f6b5.entry.js +0 -1
  222. package/favesalon-embed/p-897c2b1c.entry.js +0 -1
  223. package/favesalon-embed/p-8e60f56f.entry.js +0 -1
  224. package/favesalon-embed/p-a49afdc1.entry.js +0 -1
  225. package/favesalon-embed/p-c93867c4.entry.js +0 -1
  226. package/favesalon-embed/p-ea6a097f.entry.js +0 -1
  227. package/types/components/google-map/index.d.ts +0 -10
  228. package/types/components/salon-contact/index.d.ts +0 -9
  229. package/types/components/salon-lookbook/salon-lookbook-modal.d.ts +0 -13
  230. package/types/components/salon-reviews/index.d.ts +0 -24
  231. package/types/components/salon-styles/index.d.ts +0 -9
  232. package/types/constants/colors.d.ts +0 -88
  233. package/types/services/services.d.ts +0 -26
  234. package/types/types/common.d.ts +0 -2
  235. package/types/types/style.d.ts +0 -59
  236. /package/{cjs → dist/cjs}/_commonjsHelpers-5cfcba41.js +0 -0
  237. /package/{cjs → dist/cjs}/global-9073d10e.js +0 -0
  238. /package/{cjs → dist/cjs}/index.cjs.js +0 -0
  239. /package/{cjs → dist/cjs}/utils-c5a33b3c.js +0 -0
  240. /package/{esm/index.js → dist/collection/components/salon-info/index.css} +0 -0
  241. /package/{collection → dist/collection}/components/salon-latest-reviews/index.css +0 -0
  242. /package/{collection → dist/collection}/components/salon-ranking/index.css +0 -0
  243. /package/{collection → dist/collection}/components/salon-stylists/index.css +0 -0
  244. /package/{collection/components/salon-locations → dist/collection/components/user-avatar}/index.css +0 -0
  245. /package/{collection → dist/collection}/global/global.js +0 -0
  246. /package/{collection → dist/collection}/index.js +0 -0
  247. /package/{collection → dist/collection}/types/service.js +0 -0
  248. /package/{collection → dist/collection}/utils/utils.js +0 -0
  249. /package/{esm → dist/esm}/_commonjsHelpers-098d5b27.js +0 -0
  250. /package/{esm → dist/esm}/global-e1089ffd.js +0 -0
  251. /package/{esm → dist/esm}/polyfills/core-js.js +0 -0
  252. /package/{esm → dist/esm}/polyfills/dom.js +0 -0
  253. /package/{esm → dist/esm}/polyfills/es5-html-element.js +0 -0
  254. /package/{esm → dist/esm}/polyfills/index.js +0 -0
  255. /package/{esm → dist/esm}/polyfills/system.js +0 -0
  256. /package/{esm → dist/esm}/utils-e97485e0.js +0 -0
  257. /package/{favesalon-embed → dist/favesalon-embed}/index.esm.js +0 -0
  258. /package/{favesalon-embed → dist/favesalon-embed}/p-47e646f8.js +0 -0
  259. /package/{favesalon-embed → dist/favesalon-embed}/p-d6083940.js +0 -0
  260. /package/{index.cjs.js → dist/index.cjs.js} +0 -0
  261. /package/{index.js → dist/index.js} +0 -0
  262. /package/{collection/components/salon-services/index.css → dist/types/components/chat-conversation/index.d.ts} +0 -0
  263. /package/{types → dist/types}/components/salon-booking/index.d.ts +0 -0
  264. /package/{types → dist/types}/components/salon-booking/salon-booking-modal.d.ts +0 -0
  265. /package/{types → dist/types}/components/salon-gift-card/index.d.ts +0 -0
  266. /package/{types → dist/types}/components/salon-ranking/index.d.ts +0 -0
  267. /package/{types → dist/types}/components/user-avatar/index.d.ts +0 -0
  268. /package/{types → dist/types}/index.d.ts +0 -0
  269. /package/{types → dist/types}/types/service.d.ts +0 -0
  270. /package/{types → dist/types}/utils/utils.d.ts +0 -0
@@ -1,14 +0,0 @@
1
- @media (min-width: 768px) {
2
- .salon-schedules--dates {
3
- overflow: hidden;
4
- margin-left: -32px;
5
- }
6
-
7
- .salon-schedules--dates .salon-schedules--day {
8
- float: left;
9
- display: flex;
10
- flex-direction: row;
11
- min-width: 240px;
12
- padding-left: 32px;
13
- }
14
- }
@@ -1,103 +0,0 @@
1
- import { Component, Prop, h, State } from '@stencil/core';
2
- import { BusinessHourStatus } from '../../types/salon';
3
- import HttpService from '../../services/services';
4
- export class SalonSchedules {
5
- componentWillLoad() {
6
- if (this.salonInfo) {
7
- this.salonInfoState = JSON.parse(this.salonInfo);
8
- }
9
- else {
10
- this.fetchData();
11
- }
12
- }
13
- fetchData() {
14
- try {
15
- HttpService().fetchSalonInfo(this.salonId)
16
- .then(salonInfo => this.salonInfoState = salonInfo);
17
- }
18
- catch (e) { }
19
- }
20
- renderBusinessHour(businessHour) {
21
- if (businessHour.status === BusinessHourStatus.ByAppointment) {
22
- return 'By Appointment';
23
- }
24
- if (businessHour.status === BusinessHourStatus.Close) {
25
- return 'Close';
26
- }
27
- return `${businessHour.openTime} - ${businessHour.closeTime}`;
28
- }
29
- render() {
30
- const businessHours = (this.salonInfoState && this.salonInfoState.businessHours) || [];
31
- return (h("div", { class: "view view--salon-schedules" },
32
- h("div", { class: "view-content" }, businessHours.length > 0 && (h("div", { class: "salon-schedules" },
33
- h("div", { class: "salon-schedules--title", style: { fontSize: '16px', fontWeight: 'bold' } }, "Working hours"),
34
- h("div", { class: "salon-schedules--dates" },
35
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
36
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Mon"),
37
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[0]))),
38
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
39
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Tue"),
40
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[1]))),
41
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
42
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Wed"),
43
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[2]))),
44
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
45
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Thur"),
46
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[3]))),
47
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
48
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Fri"),
49
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[4]))),
50
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
51
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Sat"),
52
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[5]))),
53
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
54
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Sun"),
55
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[6])))))))));
56
- }
57
- static get is() { return "salon-schedules"; }
58
- static get originalStyleUrls() { return {
59
- "$": ["index.css"]
60
- }; }
61
- static get styleUrls() { return {
62
- "$": ["index.css"]
63
- }; }
64
- static get properties() { return {
65
- "salonId": {
66
- "type": "number",
67
- "mutable": false,
68
- "complexType": {
69
- "original": "number",
70
- "resolved": "number",
71
- "references": {}
72
- },
73
- "required": false,
74
- "optional": false,
75
- "docs": {
76
- "tags": [],
77
- "text": ""
78
- },
79
- "attribute": "salon-id",
80
- "reflect": false
81
- },
82
- "salonInfo": {
83
- "type": "string",
84
- "mutable": false,
85
- "complexType": {
86
- "original": "string",
87
- "resolved": "string",
88
- "references": {}
89
- },
90
- "required": false,
91
- "optional": true,
92
- "docs": {
93
- "tags": [],
94
- "text": ""
95
- },
96
- "attribute": "salon-info",
97
- "reflect": false
98
- }
99
- }; }
100
- static get states() { return {
101
- "salonInfoState": {}
102
- }; }
103
- }
@@ -1,113 +0,0 @@
1
- import { Component, Prop, h, Method, State } from '@stencil/core';
2
- import sortBy from 'lodash/sortBy';
3
- import { Colors } from '../../constants/colors';
4
- import HttpService from '../../services/services';
5
- export class SalonServices {
6
- constructor() {
7
- this.buttonClass = 'btn btn-light';
8
- }
9
- componentWillLoad() {
10
- this.fetchData();
11
- }
12
- async fetchData() {
13
- try {
14
- this.salonServices = await HttpService().fetchSalonServices(this.salonId);
15
- }
16
- catch (e) { }
17
- }
18
- render() {
19
- return (h("div", { class: "salon-services--container" },
20
- h("div", { class: "view view--salon-services--header", style: { border: `1px solid ${Colors.Gray05}` } },
21
- h("div", { class: "view-content", style: { overflowX: 'auto' } },
22
- h("div", { style: { whiteSpace: 'nowrap' } }, sortBy(this.salonServices || [], (['order', 'name'])).map((serviceGroup, index) => (h("a", { href: `#service-group--${serviceGroup.id}` },
23
- h("button", { type: "button", class: this.buttonClass, style: index > 0 ? { marginLeft: '12px' } : {} }, serviceGroup.name))))))),
24
- sortBy(this.salonServices || [], (['order', 'name'])).map(serviceGroup => {
25
- const hasMultipleCates = (serviceGroup.data || []).length > 1;
26
- return (h("div", { id: `service-group--${serviceGroup.id}`, style: { marginTop: '32px' } },
27
- h("h3", { style: { fontSize: '24px', marginBottom: '12px' } }, serviceGroup.name),
28
- h("div", { class: "view view--salon-service-type", style: { border: `1px solid ${Colors.Gray05}` } },
29
- h("div", { class: "view-content" }, (serviceGroup.data || []).map((subGroup, subGroupIndex) => (h("div", { class: "salon-service-category" },
30
- hasMultipleCates && (h("h4", { style: Object.assign({ fontSize: '20px', marginBottom: '12px', paddingBottom: '12px', borderBottom: `1px solid ${Colors.Gray06}` }, subGroupIndex > 0 ? { marginTop: '32px' } : {}) }, subGroup.name)),
31
- (subGroup.data || []).map((service, serviceIndex) => (h("div", { class: "salon-service" },
32
- h("div", { class: "salon-service--name", style: Object.assign({ fontSize: '16px', fontWeight: '500' }, serviceIndex > 0 ? {
33
- marginTop: '12px',
34
- paddingTop: '12px',
35
- borderTop: `1px solid ${Colors.Gray06}`,
36
- } : {}) }, service.name),
37
- (!service.hideDuration || !service.hidePrice) && (h("div", { style: {
38
- display: 'block',
39
- marginTop: '4px',
40
- fontSize: '90%',
41
- color: Colors.Gray03,
42
- } }, [
43
- !service.hideDuration ? `${service.duration} mins` : '',
44
- !service.hidePrice ? `$${service.price}` : '',
45
- ].filter(field => !!field).join(' · ')))))))))))));
46
- })));
47
- }
48
- static get is() { return "salon-services"; }
49
- static get originalStyleUrls() { return {
50
- "$": ["index.css"]
51
- }; }
52
- static get styleUrls() { return {
53
- "$": ["index.css"]
54
- }; }
55
- static get properties() { return {
56
- "salonId": {
57
- "type": "number",
58
- "mutable": false,
59
- "complexType": {
60
- "original": "number",
61
- "resolved": "number",
62
- "references": {}
63
- },
64
- "required": false,
65
- "optional": false,
66
- "docs": {
67
- "tags": [],
68
- "text": ""
69
- },
70
- "attribute": "salon-id",
71
- "reflect": false
72
- },
73
- "buttonClass": {
74
- "type": "string",
75
- "mutable": false,
76
- "complexType": {
77
- "original": "string",
78
- "resolved": "string",
79
- "references": {}
80
- },
81
- "required": false,
82
- "optional": false,
83
- "docs": {
84
- "tags": [],
85
- "text": ""
86
- },
87
- "attribute": "button-class",
88
- "reflect": false,
89
- "defaultValue": "'btn btn-light'"
90
- }
91
- }; }
92
- static get states() { return {
93
- "salonServices": {}
94
- }; }
95
- static get methods() { return {
96
- "fetchData": {
97
- "complexType": {
98
- "signature": "() => Promise<void>",
99
- "parameters": [],
100
- "references": {
101
- "Promise": {
102
- "location": "global"
103
- }
104
- },
105
- "return": "Promise<void>"
106
- },
107
- "docs": {
108
- "text": "",
109
- "tags": []
110
- }
111
- }
112
- }; }
113
- }
@@ -1,23 +0,0 @@
1
- .salon-styles--item-background {
2
- -moz-filter: blur(32px);
3
- -webkit-filter: blur(32px);
4
- filter: blur(32px);
5
- }
6
-
7
- .salon-styles--item .salon-styles--item-background {
8
- z-index: 1;
9
- }
10
-
11
- .salon-styles--item .salon-styles--item-image {
12
- position: relative;
13
- z-index: 2;
14
- }
15
-
16
- .salon-styles--item .carousel-caption {
17
- padding-bottom: 0;
18
- z-index: 2;
19
- }
20
-
21
- .salon-styles--slides .carousel-control-prev {
22
- z-index: 2;
23
- }
@@ -1,100 +0,0 @@
1
- import { Component, Prop, h, Method, State } from '@stencil/core';
2
- import { Colors } from '../../constants/colors';
3
- import HttpService from '../../services/services';
4
- export class SalonStyles {
5
- componentDidLoad() {
6
- this.fetchData();
7
- }
8
- async fetchData() {
9
- try {
10
- const promises = [
11
- HttpService().fetchSalonPhotos(this.salonId).then(salonStyles => this.firstPageStyles = salonStyles),
12
- HttpService().fetchAllSalonPhotos(this.salonId, { page: 2 }).then(nestPageStyles => this.nestPageStyles = nestPageStyles),
13
- ];
14
- return Promise.all(promises);
15
- }
16
- catch (e) { }
17
- }
18
- render() {
19
- return (h("div", { class: "view view--salon-styles" },
20
- h("div", { class: "view-content" },
21
- h("div", { class: "salon-styles--slides" },
22
- h("div", { id: "salon-styles-carousel", class: "carousel slide", "data-bs-ride": "carousel" },
23
- h("div", { class: "carousel-inner" }, (this.firstPageStyles || []).concat(this.nestPageStyles || []).map((photo, index) => {
24
- const { caption, description,
25
- // mediaType,
26
- fullImageUrl, fullImageUrlThumb, fullImageUrlMedium, imgWidth, imgHeight, } = photo;
27
- const isLandscape = imgWidth >= imgHeight;
28
- return (h("div", { class: `carousel-item ${index === 0 ? 'active' : ''}` },
29
- h("div", { class: "salon-styles--item", style: {
30
- flexDirection: isLandscape ? 'column' : 'row',
31
- justifyContent: 'center',
32
- alignItems: 'center',
33
- overflow: 'hidden',
34
- position: 'relative',
35
- display: 'flex',
36
- height: '380px',
37
- borderRadius: '8px',
38
- } },
39
- h("div", { class: "salon-styles--item-background", style: Object.assign(Object.assign({}, fullImageUrlThumb ? { backgroundImage: `url(${fullImageUrlThumb})` } : {}), { backgroundColor: Colors.Gray06, backgroundPosition: 'center', backgroundRepeat: 'no-repeat', backgroundSize: 'cover', position: 'absolute', bottom: '0px', right: '0px', left: '0px', top: '0px' }) }),
40
- h("img", { alt: caption, class: "salon-styles--item-image", src: fullImageUrlMedium || fullImageUrl, style: Object.assign({ display: 'inline-block' }, isLandscape ? { width: '100%' } : { height: '100%' }) }),
41
- h("div", { class: "carousel-caption d-none d-md-block" },
42
- caption && h("h5", null, caption),
43
- description && h("p", null, description)))));
44
- })),
45
- h("button", { type: "button", "data-bs-slide": "prev", class: "carousel-control-prev", "data-bs-target": "#salon-styles-carousel" },
46
- h("span", { class: "carousel-control-prev-icon", "aria-hidden": "true" }),
47
- h("span", { class: "visually-hidden" }, "Previous")),
48
- h("button", { type: "button", "data-bs-slide": "next", class: "carousel-control-next", "data-bs-target": "#salon-styles-carousel" },
49
- h("span", { class: "carousel-control-next-icon", "aria-hidden": "true" }),
50
- h("span", { class: "visually-hidden" }, "Next")))))));
51
- }
52
- static get is() { return "salon-styles"; }
53
- static get originalStyleUrls() { return {
54
- "$": ["index.css"]
55
- }; }
56
- static get styleUrls() { return {
57
- "$": ["index.css"]
58
- }; }
59
- static get properties() { return {
60
- "salonId": {
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": "salon-id",
75
- "reflect": false
76
- }
77
- }; }
78
- static get states() { return {
79
- "firstPageStyles": {},
80
- "nestPageStyles": {}
81
- }; }
82
- static get methods() { return {
83
- "fetchData": {
84
- "complexType": {
85
- "signature": "() => Promise<any[]>",
86
- "parameters": [],
87
- "references": {
88
- "Promise": {
89
- "location": "global"
90
- }
91
- },
92
- "return": "Promise<any[]>"
93
- },
94
- "docs": {
95
- "text": "",
96
- "tags": []
97
- }
98
- }
99
- }; }
100
- }
@@ -1,96 +0,0 @@
1
- import { Component, Prop, h, Method, State } from '@stencil/core';
2
- import { Colors } from '../../constants/colors';
3
- import HttpService from '../../services/services';
4
- export class SalonStylists {
5
- componentWillLoad() {
6
- this.fetchData();
7
- }
8
- async fetchData() {
9
- try {
10
- this.salonStylists = await HttpService().fetchSalonStylists(this.salonId);
11
- }
12
- catch (e) { }
13
- }
14
- render() {
15
- return (h("div", { class: "view--salon-stylists" }, (this.salonStylists || []).map(stylist => (h("div", { class: "salon-stylist" },
16
- h("div", { class: "card", style: {
17
- border: `1px solid ${Colors.Gray05}`,
18
- borderRadius: '8px',
19
- overflow: 'hidden',
20
- } },
21
- h("div", { class: "salon-stylist--avatar", style: {
22
- backgroundImage: `url("${stylist.avatar}")`,
23
- backgroundColor: Colors.Gray06,
24
- backgroundRepeat: 'no-repeat',
25
- backgroundPosition: 'center top',
26
- backgroundSize: 'cover',
27
- position: 'relative',
28
- display: 'flex',
29
- width: '100%',
30
- alignItems: 'center',
31
- justifyContent: 'center',
32
- } }, !stylist.avatar && (h("span", { style: {
33
- fontSize: '32px',
34
- fontWeight: 'bold',
35
- textTransform: 'uppercase',
36
- } },
37
- (stylist.firstName || '').charAt(0),
38
- " ",
39
- (stylist.lastName || '').charAt(0)))),
40
- h("div", { class: "card-body" },
41
- h("div", { style: {
42
- fontSize: '16px',
43
- fontWeight: 'bold',
44
- textAlign: 'center',
45
- } }, stylist.name),
46
- h("div", { style: { marginTop: '4px' } },
47
- h("salon-ranking", { ranking: stylist.rating })))))))));
48
- }
49
- static get is() { return "salon-stylists"; }
50
- static get originalStyleUrls() { return {
51
- "$": ["index.css"]
52
- }; }
53
- static get styleUrls() { return {
54
- "$": ["index.css"]
55
- }; }
56
- static get properties() { return {
57
- "salonId": {
58
- "type": "number",
59
- "mutable": false,
60
- "complexType": {
61
- "original": "number",
62
- "resolved": "number",
63
- "references": {}
64
- },
65
- "required": false,
66
- "optional": false,
67
- "docs": {
68
- "tags": [],
69
- "text": ""
70
- },
71
- "attribute": "salon-id",
72
- "reflect": false
73
- }
74
- }; }
75
- static get states() { return {
76
- "salonStylists": {}
77
- }; }
78
- static get methods() { return {
79
- "fetchData": {
80
- "complexType": {
81
- "signature": "() => Promise<void>",
82
- "parameters": [],
83
- "references": {
84
- "Promise": {
85
- "location": "global"
86
- }
87
- },
88
- "return": "Promise<void>"
89
- },
90
- "docs": {
91
- "text": "",
92
- "tags": []
93
- }
94
- }
95
- }; }
96
- }
File without changes
@@ -1,127 +0,0 @@
1
- import { Component, Prop, h } from '@stencil/core';
2
- import { Colors } from '../../constants/colors';
3
- export class UserAvatar {
4
- constructor() {
5
- this.size = 24;
6
- }
7
- render() {
8
- return (h("div", { style: { display: "flex", alignItems: "center" } },
9
- this.avatar && (h("div", { style: {
10
- backgroundImage: `url("${this.avatar}")`,
11
- backgroundColor: Colors.Gray06,
12
- backgroundPosition: 'center center',
13
- backgroundSize: 'cover',
14
- borderRadius: '50%',
15
- height: `${this.size}px`,
16
- width: `${this.size}px`,
17
- minWidth: `${this.size}px`,
18
- } })),
19
- !this.avatar && (h("div", { style: {
20
- backgroundColor: Colors.Gray06,
21
- backgroundPosition: 'center center',
22
- backgroundSize: 'cover',
23
- borderRadius: '50%',
24
- display: 'flex',
25
- alignItems: 'center',
26
- justifyContent: 'center',
27
- height: `${this.size}px`,
28
- width: `${this.size}px`,
29
- minWidth: `${this.size}px`,
30
- } }, this.shortName)),
31
- h("div", { style: Object.assign({ flexShrink: '1', flexGrow: '1', marginLeft: '12px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' }, this.nameStyle) }, this.name)));
32
- }
33
- static get is() { return "user-avatar"; }
34
- static get originalStyleUrls() { return {
35
- "$": ["index.css"]
36
- }; }
37
- static get styleUrls() { return {
38
- "$": ["index.css"]
39
- }; }
40
- static get properties() { return {
41
- "size": {
42
- "type": "number",
43
- "mutable": false,
44
- "complexType": {
45
- "original": "number",
46
- "resolved": "number",
47
- "references": {}
48
- },
49
- "required": false,
50
- "optional": false,
51
- "docs": {
52
- "tags": [],
53
- "text": ""
54
- },
55
- "attribute": "size",
56
- "reflect": false,
57
- "defaultValue": "24"
58
- },
59
- "name": {
60
- "type": "string",
61
- "mutable": false,
62
- "complexType": {
63
- "original": "string",
64
- "resolved": "string",
65
- "references": {}
66
- },
67
- "required": false,
68
- "optional": false,
69
- "docs": {
70
- "tags": [],
71
- "text": ""
72
- },
73
- "attribute": "name",
74
- "reflect": false
75
- },
76
- "nameStyle": {
77
- "type": "unknown",
78
- "mutable": false,
79
- "complexType": {
80
- "original": "object",
81
- "resolved": "object",
82
- "references": {}
83
- },
84
- "required": false,
85
- "optional": true,
86
- "docs": {
87
- "tags": [],
88
- "text": ""
89
- }
90
- },
91
- "shortName": {
92
- "type": "string",
93
- "mutable": false,
94
- "complexType": {
95
- "original": "string",
96
- "resolved": "string",
97
- "references": {}
98
- },
99
- "required": false,
100
- "optional": false,
101
- "docs": {
102
- "tags": [],
103
- "text": ""
104
- },
105
- "attribute": "short-name",
106
- "reflect": false
107
- },
108
- "avatar": {
109
- "type": "string",
110
- "mutable": false,
111
- "complexType": {
112
- "original": "string",
113
- "resolved": "string",
114
- "references": {}
115
- },
116
- "required": false,
117
- "optional": false,
118
- "docs": {
119
- "tags": [],
120
- "text": ""
121
- },
122
- "attribute": "avatar",
123
- "reflect": false
124
- }
125
- }; }
126
- }
127
- ;
@@ -1,91 +0,0 @@
1
- export const Colors = {
2
- // Neutral Color
3
- Black: '#000000',
4
- White: '#ffffff',
5
- Primary: '#5C1973',
6
- Danger: '#E92626',
7
- Success: '#3FB34F',
8
- Warning: '#F17714',
9
- Info: '#013385',
10
- Black01: '#141414',
11
- Black02: '#1f1f1f',
12
- Black03: '#262626',
13
- Gray01: '#333333',
14
- Gray02: '#666666',
15
- Gray03: '#999999',
16
- Gray04: '#DBDBDB',
17
- Gray05: '#EFEFEF',
18
- Gray06: '#F5F5F5',
19
- // Accent Colors
20
- DarkBlue01: '#E8E8EF',
21
- DarkBlue02: '#7674A0',
22
- DarkBlue03: '#1B1761',
23
- DarkBlue04: '#100E3A',
24
- DarkBlue05: '#08071D',
25
- Violet01: '#EFE8F1',
26
- Violet02: '#9D75AB',
27
- Violet03: '#5C1973',
28
- Violet04: '#370F45',
29
- Violet05: '#1C0722',
30
- Pink01: '#FDE9F2',
31
- Pink02: '#F27DAF',
32
- Pink03: '#E9267A',
33
- Pink04: '#8C1749',
34
- Pink05: '#2F0818',
35
- Blue01: '#E6EBF3',
36
- Blue02: '#6785B6',
37
- Blue03: '#013385',
38
- Blue04: '#011F50',
39
- Blue05: '#000F28',
40
- Green01: '#ECF7ED',
41
- Green02: '#8CD195',
42
- Green03: '#3FB34F',
43
- Green04: '#266B2F',
44
- Green05: '#0D2410',
45
- Orange01: '#FEF1E8',
46
- Orange02: '#F7AD72',
47
- Orange03: '#F17714',
48
- Orange04: '#91470C',
49
- Orange05: '#301804',
50
- Yellow01: '#FFFAED',
51
- Yellow02: '#FDE392',
52
- Yellow03: '#FCD14A',
53
- Yellow04: '#977D2C',
54
- Yellow05: '#322A0F',
55
- Red01: '#FD2727',
56
- Red02: '#FF4D4F',
57
- Red03: '#FFA39E',
58
- Red04: '#FFCCC7',
59
- Red05: '#FFF1F0',
60
- // deprecated
61
- BluePurple01: '#2D3B8A',
62
- BluePurple02: '#36459D',
63
- BluePurple03: '#5760A1',
64
- BluePurple04: '#828AB9',
65
- BluePurple05: '#ABB0D0',
66
- Coral01: '#F16B68',
67
- Coral02: '#F68A87',
68
- Coral03: '#F7A6A3',
69
- Coral04: '#FAC4C2',
70
- Coral05: '#FCE0DF',
71
- YellowLight01: '#F0E902',
72
- YellowLight02: '#F5ED33',
73
- YellowLight03: '#F8F266',
74
- YellowLight04: '#FAF599',
75
- YellowLight05: '#FCF9CC',
76
- YellowCyber01: '#FDCF00',
77
- YellowCyber02: '#FCD932',
78
- YellowCyber03: '#FFE365',
79
- YellowCyber04: '#FFED99',
80
- YellowCyber05: '#FFF5CC',
81
- Turquoise01: '#00E4CB',
82
- Turquoise02: '#33E8D6',
83
- Turquoise03: '#67F0DF',
84
- Turquoise04: '#99F4EB',
85
- Turquoise05: '#CCFAF5',
86
- Purple01: '#8A5BED',
87
- Purple02: '#9970F0',
88
- Purple03: '#B394F2',
89
- Purple04: '#CCB8F7',
90
- Purple05: '#E6DBFA',
91
- };