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,8 +1,15 @@
1
- import { Component, Prop, h, State } from '@stencil/core';
1
+ import { h } from '@stencil/core';
2
2
  import { BusinessHourStatus } from '../../types/salon';
3
3
  import HttpService from '../../services/services';
4
4
  import { Colors } from '../../constants/colors';
5
5
  export class SalonSchedules {
6
+ constructor() {
7
+ this.salonId = undefined;
8
+ this.salonInfo = undefined;
9
+ this.isLoading = undefined;
10
+ this.withBorder = undefined;
11
+ this.salonInfoState = undefined;
12
+ }
6
13
  componentWillLoad() {
7
14
  if (this.salonInfo) {
8
15
  this.salonInfoState = JSON.parse(this.salonInfo);
@@ -29,161 +36,132 @@ export class SalonSchedules {
29
36
  }
30
37
  render() {
31
38
  if (this.isLoading) {
32
- return (h("div", { class: "view view--salon-contact" },
33
- h("div", { class: "view-content", style: this.withBorder ? { border: `1px solid ${Colors.Gray02}`, borderRadius: '4px' } : { padding: '0px' } },
34
- h("div", { style: {
35
- backgroundColor: Colors.Gray02,
36
- height: '20px',
37
- width: '120px',
38
- } }),
39
- h("div", { style: { marginTop: '24px' } },
40
- h("div", { style: {
41
- backgroundColor: Colors.Gray01,
42
- height: '16px',
43
- width: '30%',
44
- } }),
45
- h("div", { style: {
46
- backgroundColor: Colors.Gray01,
47
- height: '16px',
48
- width: '40%',
49
- marginTop: '8px',
50
- } }),
51
- h("div", { style: {
52
- backgroundColor: Colors.Gray01,
53
- height: '16px',
54
- width: '75%',
55
- marginTop: '12px',
56
- } }),
57
- h("div", { style: {
58
- backgroundColor: Colors.Gray01,
59
- height: '16px',
60
- width: '75%',
61
- marginTop: '8px',
62
- } })),
63
- h("div", { style: { marginTop: '24px' } },
64
- h("div", { style: {
65
- overflow: 'hidden',
66
- marginLeft: '-16px',
67
- marginBottom: '-16px',
68
- } }, [1, 2, 3, 4, 5, 6, 7].map((fakeId, idx) => (h("div", { key: `style-listing--item-${fakeId}-${idx}`, style: {
69
- float: 'left',
70
- paddingLeft: '16px',
71
- marginBottom: '16px',
72
- } },
73
- h("div", { style: {
74
- backgroundColor: Colors.Gray01,
75
- width: '120px',
76
- height: '20px',
77
- } })))))))));
39
+ return (h("div", { class: "view view--salon-contact" }, h("div", { class: "view-content", style: this.withBorder ? { border: `1px solid ${Colors.Gray02}`, borderRadius: '4px' } : { padding: '0px' } }, h("div", { style: {
40
+ backgroundColor: Colors.Gray02,
41
+ height: '20px',
42
+ width: '120px',
43
+ } }), h("div", { style: { marginTop: '24px' } }, h("div", { style: {
44
+ backgroundColor: Colors.Gray01,
45
+ height: '16px',
46
+ width: '30%',
47
+ } }), h("div", { style: {
48
+ backgroundColor: Colors.Gray01,
49
+ height: '16px',
50
+ width: '40%',
51
+ marginTop: '8px',
52
+ } }), h("div", { style: {
53
+ backgroundColor: Colors.Gray01,
54
+ height: '16px',
55
+ width: '75%',
56
+ marginTop: '12px',
57
+ } }), h("div", { style: {
58
+ backgroundColor: Colors.Gray01,
59
+ height: '16px',
60
+ width: '75%',
61
+ marginTop: '8px',
62
+ } })), h("div", { style: { marginTop: '24px' } }, h("div", { style: {
63
+ overflow: 'hidden',
64
+ marginLeft: '-16px',
65
+ marginBottom: '-16px',
66
+ } }, [1, 2, 3, 4, 5, 6, 7].map((fakeId, idx) => (h("div", { key: `style-listing--item-${fakeId}-${idx}`, style: {
67
+ float: 'left',
68
+ paddingLeft: '16px',
69
+ marginBottom: '16px',
70
+ } }, h("div", { style: {
71
+ backgroundColor: Colors.Gray01,
72
+ width: '120px',
73
+ height: '20px',
74
+ } })))))))));
78
75
  }
79
76
  const { about, businessHours, } = (this.salonInfoState || {});
80
- return (h("div", { class: "view view--salon-contact" },
81
- h("div", { class: "view-content", style: this.withBorder ? { border: `1px solid ${Colors.Gray02}`, borderRadius: '4px' } : { padding: '0px' } },
82
- h("div", { style: { fontSize: '18px', fontWeight: 'bold' } }, "About"),
83
- about && (h("div", { class: "salon-contact--info--desc", style: { fontSize: '16px', marginTop: '16px' }, innerHTML: about })),
84
- businessHours && businessHours.length > 0 && (h("div", { class: "salon-schedules", style: { marginTop: '24px' } },
85
- h("div", { class: "salon-schedules--title", style: { fontSize: '16px', fontWeight: 'bold' } }, "Working hours"),
86
- h("div", { class: "salon-schedules--dates" },
87
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
88
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Mon"),
89
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[0]))),
90
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
91
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Tue"),
92
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[1]))),
93
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
94
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Wed"),
95
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[2]))),
96
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
97
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Thur"),
98
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[3]))),
99
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
100
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Fri"),
101
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[4]))),
102
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
103
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Sat"),
104
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[5]))),
105
- h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } },
106
- h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Sun"),
107
- h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[6])))))))));
77
+ return (h("div", { class: "view view--salon-contact" }, h("div", { class: "view-content", style: this.withBorder ? { border: `1px solid ${Colors.Gray02}`, borderRadius: '4px' } : { padding: '0px' } }, h("div", { style: { fontSize: '18px', fontWeight: 'bold' } }, "About"), about && (h("div", { class: "salon-contact--info--desc", style: { fontSize: '16px', marginTop: '16px' }, innerHTML: about })), businessHours && businessHours.length > 0 && (h("div", { class: "salon-schedules", style: { marginTop: '24px' } }, h("div", { class: "salon-schedules--title", style: { fontSize: '16px', fontWeight: 'bold' } }, "Working hours"), h("div", { class: "salon-schedules--dates" }, h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Mon"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[0]))), h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Tue"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[1]))), h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Wed"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[2]))), h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Thur"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[3]))), h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Fri"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[4]))), h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Sat"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[5]))), h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Sun"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[6])))))))));
108
78
  }
109
79
  static get is() { return "salon-schedules"; }
110
- static get originalStyleUrls() { return {
111
- "$": ["index.less"]
112
- }; }
113
- static get styleUrls() { return {
114
- "$": ["index.css"]
115
- }; }
116
- static get properties() { return {
117
- "salonId": {
118
- "type": "number",
119
- "mutable": false,
120
- "complexType": {
121
- "original": "number",
122
- "resolved": "number",
123
- "references": {}
124
- },
125
- "required": false,
126
- "optional": false,
127
- "docs": {
128
- "tags": [],
129
- "text": ""
130
- },
131
- "attribute": "salon-id",
132
- "reflect": false
133
- },
134
- "salonInfo": {
135
- "type": "string",
136
- "mutable": false,
137
- "complexType": {
138
- "original": "string",
139
- "resolved": "string",
140
- "references": {}
141
- },
142
- "required": false,
143
- "optional": true,
144
- "docs": {
145
- "tags": [],
146
- "text": ""
147
- },
148
- "attribute": "salon-info",
149
- "reflect": false
150
- },
151
- "isLoading": {
152
- "type": "boolean",
153
- "mutable": false,
154
- "complexType": {
155
- "original": "boolean",
156
- "resolved": "boolean",
157
- "references": {}
158
- },
159
- "required": false,
160
- "optional": true,
161
- "docs": {
162
- "tags": [],
163
- "text": ""
80
+ static get originalStyleUrls() {
81
+ return {
82
+ "$": ["index.css"]
83
+ };
84
+ }
85
+ static get styleUrls() {
86
+ return {
87
+ "$": ["index.css"]
88
+ };
89
+ }
90
+ static get properties() {
91
+ return {
92
+ "salonId": {
93
+ "type": "number",
94
+ "mutable": false,
95
+ "complexType": {
96
+ "original": "number",
97
+ "resolved": "number",
98
+ "references": {}
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": ""
105
+ },
106
+ "attribute": "salon-id",
107
+ "reflect": false
164
108
  },
165
- "attribute": "is-loading",
166
- "reflect": false
167
- },
168
- "withBorder": {
169
- "type": "boolean",
170
- "mutable": false,
171
- "complexType": {
172
- "original": "boolean",
173
- "resolved": "boolean",
174
- "references": {}
109
+ "salonInfo": {
110
+ "type": "string",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "string",
114
+ "resolved": "string",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": true,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": ""
122
+ },
123
+ "attribute": "salon-info",
124
+ "reflect": false
175
125
  },
176
- "required": false,
177
- "optional": true,
178
- "docs": {
179
- "tags": [],
180
- "text": ""
126
+ "isLoading": {
127
+ "type": "boolean",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "boolean",
131
+ "resolved": "boolean",
132
+ "references": {}
133
+ },
134
+ "required": false,
135
+ "optional": true,
136
+ "docs": {
137
+ "tags": [],
138
+ "text": ""
139
+ },
140
+ "attribute": "is-loading",
141
+ "reflect": false
181
142
  },
182
- "attribute": "with-border",
183
- "reflect": false
184
- }
185
- }; }
186
- static get states() { return {
187
- "salonInfoState": {}
188
- }; }
143
+ "withBorder": {
144
+ "type": "boolean",
145
+ "mutable": false,
146
+ "complexType": {
147
+ "original": "boolean",
148
+ "resolved": "boolean",
149
+ "references": {}
150
+ },
151
+ "required": false,
152
+ "optional": true,
153
+ "docs": {
154
+ "tags": [],
155
+ "text": ""
156
+ },
157
+ "attribute": "with-border",
158
+ "reflect": false
159
+ }
160
+ };
161
+ }
162
+ static get states() {
163
+ return {
164
+ "salonInfoState": {}
165
+ };
166
+ }
189
167
  }
@@ -1,10 +1,13 @@
1
- import { Component, Prop, h, Method, State } from '@stencil/core';
1
+ import { h } from '@stencil/core';
2
2
  import sortBy from 'lodash/sortBy';
3
3
  import { Colors } from '../../constants/colors';
4
4
  import HttpService from '../../services/services';
5
5
  export class SalonServices {
6
6
  constructor() {
7
+ this.salonId = undefined;
7
8
  this.buttonClass = 'btn btn-light';
9
+ this.salonServices = undefined;
10
+ this.isLoading = undefined;
8
11
  }
9
12
  componentWillLoad() {
10
13
  this.fetchData();
@@ -21,136 +24,123 @@ export class SalonServices {
21
24
  }
22
25
  render() {
23
26
  if (this.isLoading) {
24
- return (h("div", { class: "salon-services--container" },
25
- h("div", { class: "view view--salon-services--header", style: { border: `1px solid ${Colors.Gray01}` } },
26
- h("div", { class: "view-content", style: { overflowX: 'auto' } },
27
- h("div", { style: { whiteSpace: 'nowrap', overflow: 'hidden' } }, [1, 2, 3, 4, 5, 6].map((fakeId, index) => (h("div", { key: `service-group--${fakeId}--${index}`, style: {
28
- backgroundColor: Colors.Gray02,
29
- float: 'left',
30
- marginRight: '12px',
31
- height: '30px',
32
- width: '120px',
33
- } })))))),
34
- [1, 2, 3, 4, 5, 6].map((fakeId, index) => {
35
- return (h("div", { id: `service-group--${fakeId}`, style: { marginTop: '32px' } },
36
- h("div", { key: `service-group--${fakeId}--${index}`, style: {
37
- backgroundColor: Colors.Gray03,
38
- height: '20px',
39
- width: '120px',
40
- } }),
41
- h("div", { class: "view view--salon-service-type", style: { border: `1px solid ${Colors.Gray01}`, marginTop: '12px' } },
42
- h("div", { class: "view-content" }, [1, 2, 3].map((fakeGroupId, fakeGroupIndex) => (h("div", { key: `service-group--${fakeId}--service-${fakeGroupId}--${fakeGroupIndex}`, class: "salon-service" },
43
- h("div", { class: "salon-service--name", style: Object.assign({}, fakeGroupIndex > 0 ? {
44
- marginTop: '12px',
45
- paddingTop: '12px',
46
- borderTop: `1px solid ${Colors.Gray01}`,
47
- } : {}) },
48
- h("div", { key: `service-group--${fakeId}--${index}`, style: {
49
- backgroundColor: Colors.Gray01,
50
- height: '16px',
51
- width: '120px',
52
- } })),
53
- h("div", { style: { marginTop: '4px' } },
54
- h("div", { style: {
55
- backgroundColor: Colors.Gray01,
56
- height: '16px',
57
- width: '240px',
58
- } })))))))));
59
- })));
60
- }
61
- return (h("div", { class: "salon-services--container" },
62
- h("div", { class: "view view--salon-services--header", style: { border: `1px solid ${Colors.Gray02}` } },
63
- h("div", { class: "view-content", style: { overflowX: 'auto' } },
64
- h("div", { style: { whiteSpace: 'nowrap' } }, sortBy(this.salonServices || [], (['order', 'name'])).map((serviceGroup, index) => (h("a", { href: `#service-group--${serviceGroup.id}` },
65
- h("button", { type: "button", class: this.buttonClass, style: index > 0 ? { marginLeft: '12px' } : {} }, serviceGroup.name))))))),
66
- sortBy(this.salonServices || [], (['order', 'name'])).map(serviceGroup => {
67
- const hasMultipleCates = (serviceGroup.data || []).length > 1;
68
- return (h("div", { id: `service-group--${serviceGroup.id}`, style: { marginTop: '32px' } },
69
- h("h3", { style: { fontSize: '24px', marginBottom: '12px' } }, serviceGroup.name),
70
- h("div", { class: "view view--salon-service-type", style: { border: `1px solid ${Colors.Gray02}` } },
71
- h("div", { class: "view-content" }, (serviceGroup.data || []).map((subGroup, subGroupIndex) => (h("div", { class: "salon-service-category" },
72
- hasMultipleCates && (h("h4", { style: Object.assign({ fontSize: '20px', marginBottom: '12px', paddingBottom: '12px', borderBottom: `1px solid ${Colors.Gray02}` }, subGroupIndex > 0 ? { marginTop: '32px' } : {}) }, subGroup.name)),
73
- (subGroup.data || []).map((service, serviceIndex) => (h("div", { class: "salon-service" },
74
- h("div", { class: "salon-service--name", style: Object.assign({ fontSize: '16px', fontWeight: '500' }, serviceIndex > 0 ? {
75
- marginTop: '12px',
76
- paddingTop: '12px',
77
- borderTop: `1px solid ${Colors.Gray01}`,
78
- } : {}) }, service.name),
79
- (!service.hideDuration || !service.hidePrice) && (h("div", { style: {
80
- display: 'block',
81
- marginTop: '4px',
82
- fontSize: '90%',
83
- color: Colors.Gray05,
84
- } }, [
85
- !service.hideDuration ? `${service.duration} mins` : '',
86
- !service.hidePrice ? `$${service.price}` : '',
87
- ].filter(field => !!field).join(' · ')))))))))))));
27
+ return (h("div", { class: "salon-services--container" }, h("div", { class: "view view--salon-services--header", style: { border: `1px solid ${Colors.Gray01}` } }, h("div", { class: "view-content", style: { overflowX: 'auto' } }, h("div", { style: { whiteSpace: 'nowrap', overflow: 'hidden' } }, [1, 2, 3, 4, 5, 6].map((fakeId, index) => (h("div", { key: `service-group--${fakeId}--${index}`, style: {
28
+ backgroundColor: Colors.Gray02,
29
+ float: 'left',
30
+ marginRight: '12px',
31
+ height: '30px',
32
+ width: '120px',
33
+ } })))))), [1, 2, 3, 4, 5, 6].map((fakeId, index) => {
34
+ return (h("div", { id: `service-group--${fakeId}`, style: { marginTop: '32px' } }, h("div", { key: `service-group--${fakeId}--${index}`, style: {
35
+ backgroundColor: Colors.Gray03,
36
+ height: '20px',
37
+ width: '120px',
38
+ } }), h("div", { class: "view view--salon-service-type", style: { border: `1px solid ${Colors.Gray01}`, marginTop: '12px' } }, h("div", { class: "view-content" }, [1, 2, 3].map((fakeGroupId, fakeGroupIndex) => (h("div", { key: `service-group--${fakeId}--service-${fakeGroupId}--${fakeGroupIndex}`, class: "salon-service" }, h("div", { class: "salon-service--name", style: Object.assign({}, fakeGroupIndex > 0 ? {
39
+ marginTop: '12px',
40
+ paddingTop: '12px',
41
+ borderTop: `1px solid ${Colors.Gray01}`,
42
+ } : {}) }, h("div", { key: `service-group--${fakeId}--${index}`, style: {
43
+ backgroundColor: Colors.Gray01,
44
+ height: '16px',
45
+ width: '120px',
46
+ } })), h("div", { style: { marginTop: '4px' } }, h("div", { style: {
47
+ backgroundColor: Colors.Gray01,
48
+ height: '16px',
49
+ width: '240px',
50
+ } })))))))));
88
51
  })));
52
+ }
53
+ return (h("div", { class: "salon-services--container" }, h("div", { class: "view view--salon-services--header", style: { border: `1px solid ${Colors.Gray02}` } }, h("div", { class: "view-content", style: { overflowX: 'auto' } }, h("div", { style: { whiteSpace: 'nowrap' } }, sortBy(this.salonServices || [], (['order', 'name'])).map((serviceGroup, index) => (h("a", { href: `#service-group--${serviceGroup.id}` }, h("button", { type: "button", class: this.buttonClass, style: index > 0 ? { marginLeft: '12px' } : {} }, serviceGroup.name))))))), sortBy(this.salonServices || [], (['order', 'name'])).map(serviceGroup => {
54
+ const hasMultipleCates = (serviceGroup.data || []).length > 1;
55
+ return (h("div", { id: `service-group--${serviceGroup.id}`, style: { marginTop: '32px' } }, h("h3", { style: { fontSize: '24px', marginBottom: '12px' } }, serviceGroup.name), h("div", { class: "view view--salon-service-type", style: { border: `1px solid ${Colors.Gray02}` } }, h("div", { class: "view-content" }, (serviceGroup.data || []).map((subGroup, subGroupIndex) => (h("div", { class: "salon-service-category" }, hasMultipleCates && (h("h4", { style: Object.assign({ fontSize: '20px', marginBottom: '12px', paddingBottom: '12px', borderBottom: `1px solid ${Colors.Gray02}` }, subGroupIndex > 0 ? { marginTop: '32px' } : {}) }, subGroup.name)), (subGroup.data || []).map((service, serviceIndex) => (h("div", { class: "salon-service" }, h("div", { class: "salon-service--name", style: Object.assign({ fontSize: '16px', fontWeight: '500' }, serviceIndex > 0 ? {
56
+ marginTop: '12px',
57
+ paddingTop: '12px',
58
+ borderTop: `1px solid ${Colors.Gray01}`,
59
+ } : {}) }, service.name), (!service.hideDuration || !service.hidePrice) && (h("div", { style: {
60
+ display: 'block',
61
+ marginTop: '4px',
62
+ fontSize: '90%',
63
+ color: Colors.Gray05,
64
+ } }, [
65
+ !service.hideDuration ? `${service.duration} mins` : '',
66
+ !service.hidePrice ? `$${service.price}` : '',
67
+ ].filter(field => !!field).join(' · ')))))))))))));
68
+ })));
89
69
  }
90
70
  static get is() { return "salon-services"; }
91
- static get originalStyleUrls() { return {
92
- "$": ["index.less"]
93
- }; }
94
- static get styleUrls() { return {
95
- "$": ["index.css"]
96
- }; }
97
- static get properties() { return {
98
- "salonId": {
99
- "type": "number",
100
- "mutable": false,
101
- "complexType": {
102
- "original": "number",
103
- "resolved": "number",
104
- "references": {}
105
- },
106
- "required": false,
107
- "optional": false,
108
- "docs": {
109
- "tags": [],
110
- "text": ""
111
- },
112
- "attribute": "salon-id",
113
- "reflect": false
114
- },
115
- "buttonClass": {
116
- "type": "string",
117
- "mutable": false,
118
- "complexType": {
119
- "original": "string",
120
- "resolved": "string",
121
- "references": {}
122
- },
123
- "required": false,
124
- "optional": false,
125
- "docs": {
126
- "tags": [],
127
- "text": ""
128
- },
129
- "attribute": "button-class",
130
- "reflect": false,
131
- "defaultValue": "'btn btn-light'"
132
- }
133
- }; }
134
- static get states() { return {
135
- "salonServices": {},
136
- "isLoading": {}
137
- }; }
138
- static get methods() { return {
139
- "fetchData": {
140
- "complexType": {
141
- "signature": "() => Promise<void>",
142
- "parameters": [],
143
- "references": {
144
- "Promise": {
145
- "location": "global"
146
- }
71
+ static get originalStyleUrls() {
72
+ return {
73
+ "$": ["index.css"]
74
+ };
75
+ }
76
+ static get styleUrls() {
77
+ return {
78
+ "$": ["index.css"]
79
+ };
80
+ }
81
+ static get properties() {
82
+ return {
83
+ "salonId": {
84
+ "type": "number",
85
+ "mutable": false,
86
+ "complexType": {
87
+ "original": "number",
88
+ "resolved": "number",
89
+ "references": {}
147
90
  },
148
- "return": "Promise<void>"
91
+ "required": false,
92
+ "optional": false,
93
+ "docs": {
94
+ "tags": [],
95
+ "text": ""
96
+ },
97
+ "attribute": "salon-id",
98
+ "reflect": false
149
99
  },
150
- "docs": {
151
- "text": "",
152
- "tags": []
100
+ "buttonClass": {
101
+ "type": "string",
102
+ "mutable": false,
103
+ "complexType": {
104
+ "original": "string",
105
+ "resolved": "string",
106
+ "references": {}
107
+ },
108
+ "required": false,
109
+ "optional": false,
110
+ "docs": {
111
+ "tags": [],
112
+ "text": ""
113
+ },
114
+ "attribute": "button-class",
115
+ "reflect": false,
116
+ "defaultValue": "'btn btn-light'"
153
117
  }
154
- }
155
- }; }
118
+ };
119
+ }
120
+ static get states() {
121
+ return {
122
+ "salonServices": {},
123
+ "isLoading": {}
124
+ };
125
+ }
126
+ static get methods() {
127
+ return {
128
+ "fetchData": {
129
+ "complexType": {
130
+ "signature": "() => Promise<void>",
131
+ "parameters": [],
132
+ "references": {
133
+ "Promise": {
134
+ "location": "global"
135
+ }
136
+ },
137
+ "return": "Promise<void>"
138
+ },
139
+ "docs": {
140
+ "text": "",
141
+ "tags": []
142
+ }
143
+ }
144
+ };
145
+ }
156
146
  }
@@ -3,32 +3,40 @@
3
3
  margin-left: -12px;
4
4
  margin-top: -12px;
5
5
  }
6
+
6
7
  .view--salon-stylists .salon-stylist {
7
8
  float: left;
8
9
  padding-left: 12px;
9
10
  padding-top: 12px;
10
11
  width: 50%;
11
12
  }
13
+
12
14
  .view--salon-stylists .salon-stylist--avatar {
13
15
  height: 180px;
14
16
  }
17
+
18
+
15
19
  @media (min-width: 576px) {
16
20
  .view--salon-stylists .salon-stylist {
17
21
  width: 33.33%;
18
22
  max-width: 240px;
19
23
  }
20
24
  }
25
+
26
+
21
27
  @media (min-width: 768px) {
22
28
  .view--salon-stylists {
23
29
  margin-left: -24px;
24
30
  margin-top: -24px;
25
31
  }
32
+
26
33
  .view--salon-stylists .salon-stylist {
27
34
  padding-left: 24px;
28
35
  padding-top: 24px;
29
36
  width: 264px;
30
37
  max-width: none;
31
38
  }
39
+
32
40
  .view--salon-stylists .salon-stylist--avatar {
33
41
  height: 240px;
34
42
  }