favesalon-embed 0.1.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/chat-button.cjs.entry.js +118 -0
- package/dist/cjs/favesalon-embed.cjs.js +7 -3
- package/dist/cjs/google-map_5.cjs.entry.js +26 -7
- package/dist/cjs/{index-e6bea8f5.js → index-47c2a5f6.js} +512 -208
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/relativeTime-3721080d.js +9 -0
- package/dist/cjs/salon-booking-modal.cjs.entry.js +3 -2
- package/dist/cjs/salon-booking.cjs.entry.js +3 -2
- package/dist/cjs/salon-gift-card-modal.cjs.entry.js +3 -2
- package/dist/cjs/salon-gift-card.cjs.entry.js +3 -2
- package/dist/cjs/salon-latest-reviews.cjs.entry.js +5 -3
- package/dist/cjs/salon-lookbook.cjs.entry.js +7 -3
- package/dist/cjs/salon-ranking.cjs.entry.js +3 -2
- package/dist/cjs/salon-reviews.cjs.entry.js +10 -3
- package/dist/cjs/salon-services.cjs.entry.js +6 -3
- package/dist/cjs/salon-stylists.cjs.entry.js +9 -3
- package/dist/cjs/services-125c82d8.js +21492 -0
- package/dist/cjs/style-detail.cjs.entry.js +11 -9
- package/dist/cjs/user-avatar.cjs.entry.js +7 -3
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/chat-button/index.css +122 -0
- package/dist/collection/components/chat-button/index.js +218 -0
- package/dist/collection/components/chat-conversation/index.js +103 -0
- package/dist/collection/components/google-map/index.js +72 -68
- package/dist/collection/components/salon-booking/index.css +5 -0
- package/dist/collection/components/salon-booking/index.js +85 -80
- package/dist/collection/components/salon-booking/salon-booking-modal.js +73 -69
- package/dist/collection/components/salon-gift-card/index.css +6 -1
- package/dist/collection/components/salon-gift-card/index.js +85 -80
- package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +56 -52
- package/dist/collection/components/salon-info/index.css +1 -0
- package/dist/collection/components/salon-info/index.js +60 -54
- package/dist/collection/components/salon-latest-reviews/index.css +3 -0
- package/dist/collection/components/salon-latest-reviews/index.js +131 -144
- package/dist/collection/components/salon-latest-styles/index.css +2 -0
- package/dist/collection/components/salon-latest-styles/index.js +143 -138
- package/dist/collection/components/salon-locations/index.css +3 -0
- package/dist/collection/components/salon-locations/index.js +112 -120
- package/dist/collection/components/salon-lookbook/index.css +3 -0
- package/dist/collection/components/salon-lookbook/index.js +182 -190
- package/dist/collection/components/salon-ranking/index.js +68 -65
- package/dist/collection/components/salon-reviews/index.css +3 -0
- package/dist/collection/components/salon-reviews/index.js +146 -183
- package/dist/collection/components/salon-schedules/index.css +3 -0
- package/dist/collection/components/salon-schedules/index.js +129 -151
- package/dist/collection/components/salon-services/index.css +1 -0
- package/dist/collection/components/salon-services/index.js +117 -127
- package/dist/collection/components/salon-stylists/index.css +8 -0
- package/dist/collection/components/salon-stylists/index.js +137 -136
- package/dist/collection/components/style-detail/index.css +14 -0
- package/dist/collection/components/style-detail/index.js +265 -340
- package/dist/collection/components/user-avatar/index.js +119 -112
- package/dist/collection/mocks/users.js +10 -0
- package/dist/collection/services/services.js +121 -0
- package/dist/collection/types/chat.js +23 -0
- package/dist/collection/types/user.js +1 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +24628 -8605
- package/dist/esm/chat-button.entry.js +114 -0
- package/dist/esm/favesalon-embed.js +4 -3
- package/dist/esm/google-map_5.entry.js +26 -7
- package/dist/esm/{index-6af0a03d.js → index-3fae868e.js} +512 -209
- package/dist/esm/loader.js +4 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/relativeTime-cd452e6d.js +7 -0
- package/dist/esm/salon-booking-modal.entry.js +3 -2
- package/dist/esm/salon-booking.entry.js +3 -2
- package/dist/esm/salon-gift-card-modal.entry.js +3 -2
- package/dist/esm/salon-gift-card.entry.js +3 -2
- package/dist/esm/salon-latest-reviews.entry.js +5 -3
- package/dist/esm/salon-lookbook.entry.js +7 -3
- package/dist/esm/salon-ranking.entry.js +3 -2
- package/dist/esm/salon-reviews.entry.js +10 -3
- package/dist/esm/salon-services.entry.js +6 -3
- package/dist/esm/salon-stylists.entry.js +9 -3
- package/dist/esm/services-40a3e622.js +21485 -0
- package/dist/esm/style-detail.entry.js +10 -8
- package/dist/esm/user-avatar.entry.js +7 -3
- package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
- package/dist/favesalon-embed/p-019c5ccd.entry.js +1 -0
- package/dist/favesalon-embed/p-083a8821.entry.js +1 -0
- package/dist/favesalon-embed/p-0d0ed9ea.entry.js +1 -0
- package/dist/favesalon-embed/p-119db8de.entry.js +1 -0
- package/dist/favesalon-embed/p-1432c51b.entry.js +1 -0
- package/dist/favesalon-embed/p-22093506.entry.js +1 -0
- package/dist/favesalon-embed/p-32b314e9.js +2 -0
- package/dist/favesalon-embed/p-4a5eca9a.js +1 -1
- package/dist/favesalon-embed/p-58d2e9be.js +1 -0
- package/dist/favesalon-embed/p-71404b6a.entry.js +1 -0
- package/dist/favesalon-embed/p-857c3a61.entry.js +1 -0
- package/dist/favesalon-embed/p-99ec77f7.entry.js +1 -0
- package/dist/favesalon-embed/p-b0c3673a.entry.js +1 -0
- package/dist/favesalon-embed/p-b287b1ea.entry.js +1 -0
- package/dist/favesalon-embed/p-b3af7842.entry.js +1 -0
- package/dist/favesalon-embed/p-b630ae68.js +1580 -0
- package/dist/favesalon-embed/p-ce2c1c9a.entry.js +1 -0
- package/dist/favesalon-embed/p-d9b7ad58.entry.js +1 -0
- package/dist/favesalon-embed/p-fc9a5551.js +1 -1
- package/dist/types/components/chat-button/index.d.ts +24 -0
- package/dist/types/components.d.ts +22 -0
- package/dist/types/mocks/users.d.ts +10 -0
- package/dist/types/services/services.d.ts +15 -0
- package/dist/types/stencil-public-runtime.d.ts +85 -11
- package/dist/types/types/chat.d.ts +17 -0
- package/loader/index.d.ts +9 -0
- package/loader/package.json +1 -0
- package/package.json +3 -3
- package/readme.md +2 -2
- package/dist/cjs/services-eee8f251.js +0 -5634
- package/dist/esm/services-295247b1.js +0 -5627
- package/dist/favesalon-embed/p-292b97ba.entry.js +0 -1
- package/dist/favesalon-embed/p-4869dfed.entry.js +0 -1
- package/dist/favesalon-embed/p-4aee4fd9.entry.js +0 -1
- package/dist/favesalon-embed/p-5528c705.entry.js +0 -1
- package/dist/favesalon-embed/p-612ad685.entry.js +0 -1
- package/dist/favesalon-embed/p-75aef7e0.entry.js +0 -1
- package/dist/favesalon-embed/p-8c780874.entry.js +0 -1
- package/dist/favesalon-embed/p-8dbf04c5.js +0 -1
- package/dist/favesalon-embed/p-9f31061a.entry.js +0 -1
- package/dist/favesalon-embed/p-a60d78e9.entry.js +0 -1
- package/dist/favesalon-embed/p-a6debdae.entry.js +0 -1
- package/dist/favesalon-embed/p-bad1e9a7.entry.js +0 -1
- package/dist/favesalon-embed/p-c2ecb365.js +0 -1
- package/dist/favesalon-embed/p-c7dea70c.entry.js +0 -1
- package/dist/favesalon-embed/p-f0e14641.entry.js +0 -1
- package/dist/types/types/tmp.d.ts +0 -0
- /package/dist/{collection/types/tmp.js → types/components/chat-conversation/index.d.ts} +0 -0
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
2
|
import { Colors } from '../../constants/colors';
|
|
3
3
|
import HttpService from '../../services/services';
|
|
4
4
|
const pageLimit = 20;
|
|
5
5
|
export class SalonStylists {
|
|
6
6
|
constructor() {
|
|
7
|
+
this.salonId = undefined;
|
|
8
|
+
this.salonStylists = undefined;
|
|
9
|
+
this.totalStylists = undefined;
|
|
7
10
|
this.page = 1;
|
|
11
|
+
this.isLoading = undefined;
|
|
12
|
+
this.isLoadingMore = undefined;
|
|
13
|
+
this.canLoadMore = undefined;
|
|
8
14
|
}
|
|
9
15
|
componentWillLoad() {
|
|
10
16
|
this.fetchData();
|
|
@@ -37,147 +43,142 @@ export class SalonStylists {
|
|
|
37
43
|
}
|
|
38
44
|
render() {
|
|
39
45
|
if (this.isLoading) {
|
|
40
|
-
return (h("div", null,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
backgroundColor: Colors.Gray01,
|
|
63
|
-
height: '16px',
|
|
64
|
-
width: '120px',
|
|
65
|
-
margin: 'auto',
|
|
66
|
-
} })))))))));
|
|
46
|
+
return (h("div", null, h("div", { class: "view--salon-stylists" }, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map((fakeId, index) => (h("div", { class: "salon-stylist" }, h("div", { class: "card", style: {
|
|
47
|
+
background: 'none',
|
|
48
|
+
border: 'none',
|
|
49
|
+
overflow: 'hidden',
|
|
50
|
+
} }, h("div", { class: "salon-stylist--avatar", style: {
|
|
51
|
+
backgroundColor: Colors.Gray01,
|
|
52
|
+
backgroundRepeat: 'no-repeat',
|
|
53
|
+
backgroundPosition: 'center top',
|
|
54
|
+
backgroundSize: 'cover',
|
|
55
|
+
border: `1px solid ${Colors.Gray01}`,
|
|
56
|
+
borderRadius: '8px',
|
|
57
|
+
position: 'relative',
|
|
58
|
+
display: 'flex',
|
|
59
|
+
width: '100%',
|
|
60
|
+
alignItems: 'center',
|
|
61
|
+
justifyContent: 'center',
|
|
62
|
+
} }), h("div", { class: "card-body" }, h("div", { key: `stylist--${fakeId}--${index}`, style: {
|
|
63
|
+
backgroundColor: Colors.Gray01,
|
|
64
|
+
height: '16px',
|
|
65
|
+
width: '120px',
|
|
66
|
+
margin: 'auto',
|
|
67
|
+
} })))))))));
|
|
67
68
|
}
|
|
68
|
-
return (h("div", null,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
paddingTop: '32px',
|
|
105
|
-
paddingBottom: '16px',
|
|
106
|
-
} },
|
|
107
|
-
h("button", { type: "button", class: "btn btn-lg", disabled: this.isLoadingMore, style: {
|
|
108
|
-
background: Colors.White,
|
|
109
|
-
border: `1px solid ${Colors.Gray02}`,
|
|
110
|
-
borderRadius: '4px',
|
|
111
|
-
paddingLeft: '24px',
|
|
112
|
-
paddingRight: '24px',
|
|
113
|
-
}, onClick: () => this.onLoadMore() }, "Load more")))));
|
|
69
|
+
return (h("div", null, h("div", { class: "view--salon-stylists" }, (this.salonStylists || []).map(stylist => (h("div", { class: "salon-stylist" }, h("div", { class: "card", style: {
|
|
70
|
+
background: 'none',
|
|
71
|
+
border: 'none',
|
|
72
|
+
overflow: 'hidden',
|
|
73
|
+
} }, h("div", { class: "salon-stylist--avatar", style: {
|
|
74
|
+
backgroundImage: `url("${stylist.avatar}")`,
|
|
75
|
+
backgroundColor: Colors.Gray01,
|
|
76
|
+
backgroundRepeat: 'no-repeat',
|
|
77
|
+
backgroundPosition: 'center top',
|
|
78
|
+
backgroundSize: 'cover',
|
|
79
|
+
border: `1px solid ${Colors.Gray01}`,
|
|
80
|
+
borderRadius: '8px',
|
|
81
|
+
position: 'relative',
|
|
82
|
+
display: 'flex',
|
|
83
|
+
width: '100%',
|
|
84
|
+
alignItems: 'center',
|
|
85
|
+
justifyContent: 'center',
|
|
86
|
+
} }, !stylist.avatar && (h("span", { style: {
|
|
87
|
+
fontSize: '32px',
|
|
88
|
+
fontWeight: 'bold',
|
|
89
|
+
textTransform: 'uppercase',
|
|
90
|
+
} }, (stylist.firstName || '').charAt(0), " ", (stylist.lastName || '').charAt(0)))), h("div", { class: "card-body" }, h("div", { style: {
|
|
91
|
+
fontSize: '18px',
|
|
92
|
+
fontWeight: '600',
|
|
93
|
+
textAlign: 'center',
|
|
94
|
+
} }, stylist.fullName))))))), this.canLoadMore && (h("div", { class: "view-footer", style: {
|
|
95
|
+
textAlign: 'center',
|
|
96
|
+
paddingTop: '32px',
|
|
97
|
+
paddingBottom: '16px',
|
|
98
|
+
} }, h("button", { type: "button", class: "btn btn-lg", disabled: this.isLoadingMore, style: {
|
|
99
|
+
background: Colors.White,
|
|
100
|
+
border: `1px solid ${Colors.Gray02}`,
|
|
101
|
+
borderRadius: '4px',
|
|
102
|
+
paddingLeft: '24px',
|
|
103
|
+
paddingRight: '24px',
|
|
104
|
+
}, onClick: () => this.onLoadMore() }, "Load more")))));
|
|
114
105
|
}
|
|
115
106
|
static get is() { return "salon-stylists"; }
|
|
116
|
-
static get originalStyleUrls() {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"text": ""
|
|
136
|
-
},
|
|
137
|
-
"attribute": "salon-id",
|
|
138
|
-
"reflect": false
|
|
139
|
-
}
|
|
140
|
-
}; }
|
|
141
|
-
static get states() { return {
|
|
142
|
-
"salonStylists": {},
|
|
143
|
-
"totalStylists": {},
|
|
144
|
-
"page": {},
|
|
145
|
-
"isLoading": {},
|
|
146
|
-
"isLoadingMore": {},
|
|
147
|
-
"canLoadMore": {}
|
|
148
|
-
}; }
|
|
149
|
-
static get methods() { return {
|
|
150
|
-
"fetchData": {
|
|
151
|
-
"complexType": {
|
|
152
|
-
"signature": "() => Promise<void>",
|
|
153
|
-
"parameters": [],
|
|
154
|
-
"references": {
|
|
155
|
-
"Promise": {
|
|
156
|
-
"location": "global"
|
|
157
|
-
}
|
|
107
|
+
static get originalStyleUrls() {
|
|
108
|
+
return {
|
|
109
|
+
"$": ["index.css"]
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
static get styleUrls() {
|
|
113
|
+
return {
|
|
114
|
+
"$": ["index.css"]
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
static get properties() {
|
|
118
|
+
return {
|
|
119
|
+
"salonId": {
|
|
120
|
+
"type": "number",
|
|
121
|
+
"mutable": false,
|
|
122
|
+
"complexType": {
|
|
123
|
+
"original": "number",
|
|
124
|
+
"resolved": "number",
|
|
125
|
+
"references": {}
|
|
158
126
|
},
|
|
159
|
-
"
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": false,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": ""
|
|
132
|
+
},
|
|
133
|
+
"attribute": "salon-id",
|
|
134
|
+
"reflect": false
|
|
164
135
|
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
static get states() {
|
|
139
|
+
return {
|
|
140
|
+
"salonStylists": {},
|
|
141
|
+
"totalStylists": {},
|
|
142
|
+
"page": {},
|
|
143
|
+
"isLoading": {},
|
|
144
|
+
"isLoadingMore": {},
|
|
145
|
+
"canLoadMore": {}
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
static get methods() {
|
|
149
|
+
return {
|
|
150
|
+
"fetchData": {
|
|
151
|
+
"complexType": {
|
|
152
|
+
"signature": "() => Promise<void>",
|
|
153
|
+
"parameters": [],
|
|
154
|
+
"references": {
|
|
155
|
+
"Promise": {
|
|
156
|
+
"location": "global"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"return": "Promise<void>"
|
|
174
160
|
},
|
|
175
|
-
"
|
|
161
|
+
"docs": {
|
|
162
|
+
"text": "",
|
|
163
|
+
"tags": []
|
|
164
|
+
}
|
|
176
165
|
},
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
|
|
166
|
+
"onLoadMore": {
|
|
167
|
+
"complexType": {
|
|
168
|
+
"signature": "() => Promise<void>",
|
|
169
|
+
"parameters": [],
|
|
170
|
+
"references": {
|
|
171
|
+
"Promise": {
|
|
172
|
+
"location": "global"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"return": "Promise<void>"
|
|
176
|
+
},
|
|
177
|
+
"docs": {
|
|
178
|
+
"text": "",
|
|
179
|
+
"tags": []
|
|
180
|
+
}
|
|
180
181
|
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
182
|
+
};
|
|
183
|
+
}
|
|
183
184
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.salon-modal.salon-modal--lookbook-detail .salon-modal--close {
|
|
2
2
|
display: none !important;
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
.salon-modal.salon-modal--lookbook-detail .salon-modal--content {
|
|
5
6
|
background-color: #fff;
|
|
6
7
|
position: fixed;
|
|
@@ -13,12 +14,15 @@
|
|
|
13
14
|
z-index: 1000;
|
|
14
15
|
overflow-y: auto;
|
|
15
16
|
}
|
|
17
|
+
|
|
16
18
|
.salon-modal.salon-modal--lookbook-detail .style-detail--slides--image {
|
|
17
19
|
height: 240px !important;
|
|
18
20
|
}
|
|
21
|
+
|
|
19
22
|
.salon-modal.salon-modal--lookbook-detail .style-detail--slides--thumbnails {
|
|
20
23
|
text-align: center;
|
|
21
24
|
}
|
|
25
|
+
|
|
22
26
|
.salon-modal.salon-modal--lookbook-detail .style-detail--slides--thumbnail {
|
|
23
27
|
display: inline-block;
|
|
24
28
|
margin-top: 12px;
|
|
@@ -26,6 +30,7 @@
|
|
|
26
30
|
height: 40px;
|
|
27
31
|
width: 60px;
|
|
28
32
|
}
|
|
33
|
+
|
|
29
34
|
.salon-modal.salon-modal--lookbook-detail .style-detail--slides--button {
|
|
30
35
|
border: none;
|
|
31
36
|
position: absolute;
|
|
@@ -33,28 +38,37 @@
|
|
|
33
38
|
z-index: 20;
|
|
34
39
|
height: 40px;
|
|
35
40
|
width: 40px;
|
|
41
|
+
|
|
36
42
|
-moz-border-radius: 50px;
|
|
37
43
|
-webkit-border-radius: 50px;
|
|
38
44
|
border-radius: 50px;
|
|
45
|
+
|
|
39
46
|
-moz-transform: translate(0, -50%);
|
|
40
47
|
-webkit-transform: translate(0, -50%);
|
|
41
48
|
transform: translate(0, -50%);
|
|
42
49
|
}
|
|
50
|
+
|
|
43
51
|
.salon-modal.salon-modal--lookbook-detail .style-detail--slides--prev {
|
|
44
52
|
left: 24px;
|
|
45
53
|
}
|
|
54
|
+
|
|
46
55
|
.salon-modal.salon-modal--lookbook-detail .style-detail--slides--next {
|
|
47
56
|
right: 24px;
|
|
48
57
|
}
|
|
58
|
+
|
|
59
|
+
|
|
49
60
|
@media (min-width: 768px) {
|
|
50
61
|
.salon-modal.salon-modal--lookbook-detail .style-detail--slides--image {
|
|
51
62
|
height: 360px !important;
|
|
52
63
|
}
|
|
53
64
|
}
|
|
65
|
+
|
|
66
|
+
|
|
54
67
|
@media (min-width: 992px) {
|
|
55
68
|
.salon-modal.salon-modal--lookbook-detail .style-detail--slides--image {
|
|
56
69
|
height: 480px !important;
|
|
57
70
|
}
|
|
71
|
+
|
|
58
72
|
.salon-modal.salon-modal--lookbook-detail .style-detail--slides--thumbnail {
|
|
59
73
|
height: 56px;
|
|
60
74
|
width: 72px;
|