favesalon-embed 0.1.0 → 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 (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,10 +1,16 @@
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 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
- 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" },
42
- h("div", { class: "card", style: {
43
- background: 'none',
44
- border: 'none',
45
- overflow: 'hidden',
46
- } },
47
- h("div", { class: "salon-stylist--avatar", style: {
48
- backgroundColor: Colors.Gray01,
49
- backgroundRepeat: 'no-repeat',
50
- backgroundPosition: 'center top',
51
- backgroundSize: 'cover',
52
- border: `1px solid ${Colors.Gray01}`,
53
- borderRadius: '8px',
54
- position: 'relative',
55
- display: 'flex',
56
- width: '100%',
57
- alignItems: 'center',
58
- justifyContent: 'center',
59
- } }),
60
- h("div", { class: "card-body" },
61
- h("div", { key: `stylist--${fakeId}--${index}`, style: {
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
- h("div", { class: "view--salon-stylists" }, (this.salonStylists || []).map(stylist => (h("div", { class: "salon-stylist" },
70
- h("div", { class: "card", style: {
71
- background: 'none',
72
- border: 'none',
73
- overflow: 'hidden',
74
- } },
75
- h("div", { class: "salon-stylist--avatar", style: {
76
- backgroundImage: `url("${stylist.avatar}")`,
77
- backgroundColor: Colors.Gray01,
78
- backgroundRepeat: 'no-repeat',
79
- backgroundPosition: 'center top',
80
- backgroundSize: 'cover',
81
- border: `1px solid ${Colors.Gray01}`,
82
- borderRadius: '8px',
83
- position: 'relative',
84
- display: 'flex',
85
- width: '100%',
86
- alignItems: 'center',
87
- justifyContent: 'center',
88
- } }, !stylist.avatar && (h("span", { style: {
89
- fontSize: '32px',
90
- fontWeight: 'bold',
91
- textTransform: 'uppercase',
92
- } },
93
- (stylist.firstName || '').charAt(0),
94
- " ",
95
- (stylist.lastName || '').charAt(0)))),
96
- h("div", { class: "card-body" },
97
- h("div", { style: {
98
- fontSize: '18px',
99
- fontWeight: '600',
100
- textAlign: 'center',
101
- } }, stylist.fullName))))))),
102
- this.canLoadMore && (h("div", { class: "view-footer", style: {
103
- textAlign: 'center',
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() { return {
117
- "$": ["index.less"]
118
- }; }
119
- static get styleUrls() { return {
120
- "$": ["index.css"]
121
- }; }
122
- static get properties() { return {
123
- "salonId": {
124
- "type": "number",
125
- "mutable": false,
126
- "complexType": {
127
- "original": "number",
128
- "resolved": "number",
129
- "references": {}
130
- },
131
- "required": false,
132
- "optional": false,
133
- "docs": {
134
- "tags": [],
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
- "return": "Promise<void>"
160
- },
161
- "docs": {
162
- "text": "",
163
- "tags": []
127
+ "required": false,
128
+ "optional": false,
129
+ "docs": {
130
+ "tags": [],
131
+ "text": ""
132
+ },
133
+ "attribute": "salon-id",
134
+ "reflect": false
164
135
  }
165
- },
166
- "onLoadMore": {
167
- "complexType": {
168
- "signature": "() => Promise<void>",
169
- "parameters": [],
170
- "references": {
171
- "Promise": {
172
- "location": "global"
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
- "return": "Promise<void>"
161
+ "docs": {
162
+ "text": "",
163
+ "tags": []
164
+ }
176
165
  },
177
- "docs": {
178
- "text": "",
179
- "tags": []
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;