favesalon-embed 0.0.2 → 0.1.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.
- package/LICENSE +21 -0
- package/dist/cjs/_commonjsHelpers-5cfcba41.js +36 -0
- package/dist/cjs/colors-38421769.js +69 -0
- package/dist/cjs/favesalon-embed.cjs.js +20 -0
- package/{cjs → dist/cjs}/global-9073d10e.js +0 -0
- package/dist/cjs/google-map_5.cjs.entry.js +291 -0
- package/dist/cjs/index-7f190886.js +4396 -0
- package/{cjs/index-7d179a70.js → dist/cjs/index-e6bea8f5.js} +87 -3
- package/{cjs → dist/cjs}/index.cjs.js +0 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/dist/cjs/salon-booking-modal.cjs.entry.js +29 -0
- package/dist/cjs/salon-booking.cjs.entry.js +50 -0
- package/dist/cjs/salon-gift-card-modal.cjs.entry.js +28 -0
- package/dist/cjs/salon-gift-card.cjs.entry.js +50 -0
- package/dist/cjs/salon-latest-reviews.cjs.entry.js +95 -0
- package/dist/cjs/salon-lookbook.cjs.entry.js +218 -0
- package/{cjs → dist/cjs}/salon-ranking.cjs.entry.js +7 -7
- package/dist/cjs/salon-reviews.cjs.entry.js +186 -0
- package/dist/cjs/salon-services.cjs.entry.js +78 -0
- package/dist/cjs/salon-stylists.cjs.entry.js +112 -0
- package/{cjs/services-d6f8214c.js → dist/cjs/services-eee8f251.js} +317 -361
- package/dist/cjs/style-detail.cjs.entry.js +310 -0
- package/{cjs → dist/cjs}/user-avatar.cjs.entry.js +4 -4
- package/{cjs → dist/cjs}/utils-c5a33b3c.js +0 -0
- package/{collection → dist/collection}/collection-manifest.json +2 -2
- package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
- package/{collection → dist/collection}/components/google-map/index.css +0 -1
- package/dist/collection/components/google-map/index.js +86 -0
- package/{collection → dist/collection}/components/salon-booking/index.css +10 -24
- package/{collection → dist/collection}/components/salon-booking/index.js +29 -11
- package/{collection → dist/collection}/components/salon-booking/salon-booking-modal.js +12 -6
- package/dist/collection/components/salon-gift-card/index.css +25 -0
- package/{collection → dist/collection}/components/salon-gift-card/index.js +44 -6
- package/{collection → dist/collection}/components/salon-gift-card/salon-gift-card-modal.js +30 -4
- package/{collection/components/salon-locations → dist/collection/components/salon-info}/index.css +0 -0
- package/{collection → dist/collection}/components/salon-info/index.js +6 -32
- package/{collection → dist/collection}/components/salon-latest-reviews/index.css +0 -3
- package/dist/collection/components/salon-latest-reviews/index.js +176 -0
- package/dist/collection/components/salon-latest-styles/index.css +10 -0
- package/dist/collection/components/salon-latest-styles/index.js +178 -0
- package/{collection/components/salon-contact → dist/collection/components/salon-locations}/index.css +6 -6
- package/dist/collection/components/salon-locations/index.js +151 -0
- package/dist/collection/components/salon-lookbook/index.css +12 -0
- package/{collection → dist/collection}/components/salon-lookbook/index.js +122 -49
- package/{collection → dist/collection}/components/salon-ranking/index.css +0 -0
- package/{collection → dist/collection}/components/salon-ranking/index.js +5 -5
- package/dist/collection/components/salon-reviews/index.css +15 -0
- package/dist/collection/components/salon-reviews/index.js +286 -0
- package/dist/collection/components/salon-schedules/index.css +15 -0
- package/dist/collection/components/salon-schedules/index.js +189 -0
- package/{collection/components/salon-reviews → dist/collection/components/salon-services}/index.css +0 -0
- package/dist/collection/components/salon-services/index.js +156 -0
- package/{collection → dist/collection}/components/salon-stylists/index.css +0 -8
- package/dist/collection/components/salon-stylists/index.js +183 -0
- package/dist/collection/components/style-detail/index.css +62 -0
- package/dist/collection/components/style-detail/index.js +461 -0
- package/{collection/components/salon-services → dist/collection/components/user-avatar}/index.css +0 -0
- package/{collection → dist/collection}/components/user-avatar/index.js +2 -2
- package/dist/collection/constants/colors.js +65 -0
- package/{collection → dist/collection}/global/global.js +0 -0
- package/{collection → dist/collection}/index.js +0 -0
- package/dist/collection/services/services.js +174 -0
- package/dist/collection/types/common.js +11 -0
- package/{collection → dist/collection}/types/review.js +9 -5
- package/dist/collection/types/salon.js +58 -0
- package/{collection → dist/collection}/types/service.js +0 -0
- package/dist/collection/types/style.js +128 -0
- package/dist/collection/types/stylist.js +30 -0
- package/{collection/components/user-avatar/index.css → dist/collection/types/tmp.js} +0 -0
- package/{collection → dist/collection}/types/user.js +2 -2
- package/{collection → dist/collection}/utils/utils.js +0 -0
- package/{custom-elements → dist/custom-elements}/index.d.ts +12 -12
- package/{custom-elements → dist/custom-elements}/index.js +5783 -870
- package/dist/esm/_commonjsHelpers-098d5b27.js +32 -0
- package/dist/esm/colors-ea36347a.js +67 -0
- package/dist/esm/favesalon-embed.js +18 -0
- package/{esm → dist/esm}/global-e1089ffd.js +0 -0
- package/dist/esm/google-map_5.entry.js +283 -0
- package/{esm/index-2160b80b.js → dist/esm/index-6af0a03d.js} +87 -4
- package/dist/esm/index-80523fec.js +4393 -0
- package/{esm → dist/esm}/index.js +0 -0
- package/dist/esm/loader.js +18 -0
- package/{esm → dist/esm}/polyfills/core-js.js +0 -0
- package/{esm → dist/esm}/polyfills/css-shim.js +0 -0
- package/{esm → dist/esm}/polyfills/dom.js +0 -0
- package/{esm → dist/esm}/polyfills/es5-html-element.js +0 -0
- package/{esm → dist/esm}/polyfills/index.js +0 -0
- package/{esm → dist/esm}/polyfills/system.js +0 -0
- package/dist/esm/salon-booking-modal.entry.js +25 -0
- package/dist/esm/salon-booking.entry.js +46 -0
- package/dist/esm/salon-gift-card-modal.entry.js +24 -0
- package/dist/esm/salon-gift-card.entry.js +46 -0
- package/dist/esm/salon-latest-reviews.entry.js +91 -0
- package/dist/esm/salon-lookbook.entry.js +214 -0
- package/{esm → dist/esm}/salon-ranking.entry.js +7 -7
- package/dist/esm/salon-reviews.entry.js +182 -0
- package/dist/esm/salon-services.entry.js +74 -0
- package/dist/esm/salon-stylists.entry.js +108 -0
- package/{esm/services-57fadd0a.js → dist/esm/services-295247b1.js} +310 -355
- package/dist/esm/style-detail.entry.js +306 -0
- package/{esm → dist/esm}/user-avatar.entry.js +4 -4
- package/{esm → dist/esm}/utils-e97485e0.js +0 -0
- package/dist/favesalon-embed/assets/map--placeholder.jpeg +0 -0
- package/{favesalon-embed → dist/favesalon-embed}/favesalon-embed.css +1 -1
- package/dist/favesalon-embed/favesalon-embed.esm.js +1 -0
- package/{favesalon-embed → dist/favesalon-embed}/index.esm.js +0 -0
- package/dist/favesalon-embed/p-292b97ba.entry.js +1 -0
- package/{favesalon-embed → dist/favesalon-embed}/p-47e646f8.js +0 -0
- package/dist/favesalon-embed/p-4869dfed.entry.js +1 -0
- package/{favesalon-embed → dist/favesalon-embed}/p-4a5eca9a.js +0 -0
- package/dist/favesalon-embed/p-4aee4fd9.entry.js +1 -0
- package/dist/favesalon-embed/p-5528c705.entry.js +1 -0
- package/dist/favesalon-embed/p-612ad685.entry.js +1 -0
- package/dist/favesalon-embed/p-75aef7e0.entry.js +1 -0
- package/dist/favesalon-embed/p-8c780874.entry.js +1 -0
- package/dist/favesalon-embed/p-8dbf04c5.js +1 -0
- package/dist/favesalon-embed/p-9f31061a.entry.js +1 -0
- package/dist/favesalon-embed/p-a33331cc.js +1 -0
- package/dist/favesalon-embed/p-a60d78e9.entry.js +1 -0
- package/dist/favesalon-embed/p-a6debdae.entry.js +1 -0
- package/dist/favesalon-embed/p-bad1e9a7.entry.js +1 -0
- package/dist/favesalon-embed/p-c2ecb365.js +1 -0
- package/dist/favesalon-embed/p-c7dea70c.entry.js +1 -0
- package/dist/favesalon-embed/p-d6083940.js +1 -0
- package/dist/favesalon-embed/p-f0e14641.entry.js +1 -0
- package/dist/favesalon-embed/p-fc9a5551.js +6 -0
- package/{index.cjs.js → dist/index.cjs.js} +0 -0
- package/{index.js → dist/index.js} +0 -0
- package/dist/types/components/google-map/index.d.ts +5 -0
- package/{types → dist/types}/components/salon-booking/index.d.ts +1 -1
- package/{types → dist/types}/components/salon-booking/salon-booking-modal.d.ts +1 -0
- package/{types → dist/types}/components/salon-gift-card/index.d.ts +2 -1
- package/{types → dist/types}/components/salon-gift-card/salon-gift-card-modal.d.ts +2 -0
- package/{types → dist/types}/components/salon-info/index.d.ts +0 -1
- package/{types → dist/types}/components/salon-latest-reviews/index.d.ts +2 -0
- package/dist/types/components/salon-latest-styles/index.d.ts +12 -0
- package/{types → dist/types}/components/salon-locations/index.d.ts +2 -0
- package/{types → dist/types}/components/salon-lookbook/index.d.ts +7 -2
- package/{types → dist/types}/components/salon-ranking/index.d.ts +0 -0
- package/dist/types/components/salon-reviews/index.d.ts +24 -0
- package/{types → dist/types}/components/salon-schedules/index.d.ts +2 -0
- package/{types → dist/types}/components/salon-services/index.d.ts +2 -0
- package/{types → dist/types}/components/salon-stylists/index.d.ts +6 -0
- package/dist/types/components/style-detail/index.d.ts +24 -0
- package/{types → dist/types}/components/user-avatar/index.d.ts +0 -0
- package/{types → dist/types}/components.d.ts +62 -41
- package/dist/types/constants/colors.d.ts +65 -0
- package/{types → dist/types}/index.d.ts +0 -0
- package/dist/types/services/services.d.ts +60 -0
- package/{types → dist/types}/stencil-public-runtime.d.ts +0 -0
- package/dist/types/types/common.d.ts +11 -0
- package/{types → dist/types}/types/review.d.ts +4 -0
- package/{types → dist/types}/types/salon.d.ts +3 -1
- package/{types → dist/types}/types/service.d.ts +0 -0
- package/dist/types/types/style.d.ts +88 -0
- package/{types → dist/types}/types/stylist.d.ts +2 -1
- package/dist/types/types/tmp.d.ts +0 -0
- package/{types → dist/types}/types/user.d.ts +2 -2
- package/{types → dist/types}/utils/utils.d.ts +0 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +18 -13
- package/readme.md +23 -2
- package/cjs/colors-7f354880.js +0 -95
- package/cjs/favesalon-embed.cjs.js +0 -20
- package/cjs/google-map.cjs.entry.js +0 -47
- package/cjs/loader.cjs.js +0 -22
- package/cjs/salon-booking-modal.cjs.entry.js +0 -23
- package/cjs/salon-booking_2.cjs.entry.js +0 -56
- package/cjs/salon-contact_4.cjs.entry.js +0 -154
- package/cjs/salon-gift-card-modal.cjs.entry.js +0 -20
- package/cjs/salon-info.cjs.entry.js +0 -34
- package/cjs/salon-latest-reviews.cjs.entry.js +0 -57
- package/cjs/salon-lookbook.cjs.entry.js +0 -187
- package/cjs/salon-reviews.cjs.entry.js +0 -196
- package/cjs/salon-services.cjs.entry.js +0 -40
- package/cjs/salon-stylists.cjs.entry.js +0 -53
- package/collection/components/google-map/index.js +0 -97
- package/collection/components/salon-contact/index.js +0 -88
- package/collection/components/salon-gift-card/index.css +0 -25
- package/collection/components/salon-info/index.css +0 -3
- package/collection/components/salon-latest-reviews/index.js +0 -108
- package/collection/components/salon-locations/index.js +0 -80
- package/collection/components/salon-lookbook/index.css +0 -12
- package/collection/components/salon-reviews/index.js +0 -291
- package/collection/components/salon-schedules/index.css +0 -14
- package/collection/components/salon-schedules/index.js +0 -103
- package/collection/components/salon-services/index.js +0 -86
- package/collection/components/salon-styles/index.css +0 -23
- package/collection/components/salon-styles/index.js +0 -100
- package/collection/components/salon-stylists/index.js +0 -96
- package/collection/constants/colors.js +0 -91
- package/collection/services/services.js +0 -203
- package/collection/types/common.js +0 -2
- package/collection/types/salon.js +0 -52
- package/collection/types/style.js +0 -28
- package/collection/types/stylist.js +0 -13
- package/esm/colors-1ec90c5f.js +0 -93
- package/esm/favesalon-embed.js +0 -18
- package/esm/google-map.entry.js +0 -43
- package/esm/loader.js +0 -18
- package/esm/salon-booking-modal.entry.js +0 -19
- package/esm/salon-booking_2.entry.js +0 -51
- package/esm/salon-contact_4.entry.js +0 -147
- package/esm/salon-gift-card-modal.entry.js +0 -16
- package/esm/salon-info.entry.js +0 -30
- package/esm/salon-latest-reviews.entry.js +0 -53
- package/esm/salon-lookbook.entry.js +0 -183
- package/esm/salon-reviews.entry.js +0 -192
- package/esm/salon-services.entry.js +0 -36
- package/esm/salon-stylists.entry.js +0 -49
- package/favesalon-embed/favesalon-embed.esm.js +0 -1
- package/favesalon-embed/p-14a46adf.entry.js +0 -1
- package/favesalon-embed/p-2da2ed75.js +0 -1
- package/favesalon-embed/p-3712d9ab.entry.js +0 -1
- package/favesalon-embed/p-38066f9f.entry.js +0 -1
- package/favesalon-embed/p-4e2d7b29.js +0 -1
- package/favesalon-embed/p-520c8ffb.entry.js +0 -1
- package/favesalon-embed/p-54a1c294.entry.js +0 -1
- package/favesalon-embed/p-762520f2.js +0 -1
- package/favesalon-embed/p-94a0991e.entry.js +0 -1
- package/favesalon-embed/p-94b179eb.entry.js +0 -1
- package/favesalon-embed/p-977bd8bc.entry.js +0 -1
- package/favesalon-embed/p-bc363938.entry.js +0 -1
- package/favesalon-embed/p-bf9c83a3.entry.js +0 -1
- package/favesalon-embed/p-c5ebd3c9.entry.js +0 -1
- package/favesalon-embed/p-d84b61b0.entry.js +0 -1
- package/favesalon-embed/p-f15bcb43.entry.js +0 -1
- package/types/components/google-map/index.d.ts +0 -10
- package/types/components/salon-contact/index.d.ts +0 -9
- package/types/components/salon-reviews/index.d.ts +0 -23
- package/types/components/salon-styles/index.d.ts +0 -9
- package/types/constants/colors.d.ts +0 -88
- package/types/services/services.d.ts +0 -24
- package/types/types/common.d.ts +0 -2
- package/types/types/style.d.ts +0 -49
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FaveStyle } from '../../types/style';
|
|
2
|
+
export declare class SalonLatestStyles {
|
|
3
|
+
salonId: number;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
withBorder?: boolean;
|
|
6
|
+
isLoadingState: boolean;
|
|
7
|
+
latestStyles: FaveStyle[];
|
|
8
|
+
componentDidLoad(): void;
|
|
9
|
+
fetchData(): Promise<boolean>;
|
|
10
|
+
onClickLookbook(style: FaveStyle): void;
|
|
11
|
+
render(): any;
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FaveStyle } from '../../types/style';
|
|
2
2
|
export declare class SalonLookbook {
|
|
3
3
|
salonId: number;
|
|
4
4
|
isLoading: boolean;
|
|
@@ -7,7 +7,9 @@ export declare class SalonLookbook {
|
|
|
7
7
|
currentPage: number;
|
|
8
8
|
totalLookbooks: number;
|
|
9
9
|
salonCategories: any[];
|
|
10
|
-
salonLookbooks:
|
|
10
|
+
salonLookbooks: FaveStyle[];
|
|
11
|
+
sortBy: string;
|
|
12
|
+
filterBy: string;
|
|
11
13
|
isLayoutSetup: boolean;
|
|
12
14
|
componentWillLoad(): void;
|
|
13
15
|
componentDidRender(): void;
|
|
@@ -15,8 +17,11 @@ export declare class SalonLookbook {
|
|
|
15
17
|
setupGridLayout(): void;
|
|
16
18
|
fetchData(): Promise<any[]>;
|
|
17
19
|
fetchLookbooks(options: any, isLoadingMore?: boolean): Promise<void>;
|
|
20
|
+
onChangeFiltering(filterBy: string): Promise<void>;
|
|
21
|
+
onChangeSorting(sortBy: string): Promise<void>;
|
|
18
22
|
onLoadMore(): Promise<void>;
|
|
19
23
|
fetchCategories(): Promise<void>;
|
|
24
|
+
onClickLookbook(style: FaveStyle): void;
|
|
20
25
|
renderHeader(): any;
|
|
21
26
|
render(): any;
|
|
22
27
|
}
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Review } from '../../types/review';
|
|
2
|
+
import { Salon } from '../../types/salon';
|
|
3
|
+
export declare class SalonReviews {
|
|
4
|
+
salonId: number;
|
|
5
|
+
primaryColor: string;
|
|
6
|
+
salonInfo: Salon;
|
|
7
|
+
stats: any;
|
|
8
|
+
totalReviews: number;
|
|
9
|
+
allReviews: Review[];
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
isSorting: boolean;
|
|
12
|
+
isFiltering: boolean;
|
|
13
|
+
isLoadingMore: boolean;
|
|
14
|
+
canLoadMore: boolean;
|
|
15
|
+
page: number;
|
|
16
|
+
filterBy: any[];
|
|
17
|
+
sortBy: string;
|
|
18
|
+
componentWillLoad(): void;
|
|
19
|
+
fetchData(): void;
|
|
20
|
+
onLoadMore(): void;
|
|
21
|
+
onChangeFilter(filterBy: any): void;
|
|
22
|
+
onChangeSorting(sortBy: any): void;
|
|
23
|
+
render(): any;
|
|
24
|
+
}
|
|
@@ -2,7 +2,13 @@ import { Stylist } from '../../types/stylist';
|
|
|
2
2
|
export declare class SalonStylists {
|
|
3
3
|
salonId: number;
|
|
4
4
|
salonStylists: Stylist[];
|
|
5
|
+
totalStylists: number;
|
|
6
|
+
page: number;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
isLoadingMore?: boolean;
|
|
9
|
+
canLoadMore?: boolean;
|
|
5
10
|
componentWillLoad(): void;
|
|
6
11
|
fetchData(): Promise<void>;
|
|
12
|
+
onLoadMore(): Promise<void>;
|
|
7
13
|
render(): any;
|
|
8
14
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AlbumMedia, FaveStyle, FaveStyleComment } from '../../types/style';
|
|
2
|
+
export declare class StyleDetail {
|
|
3
|
+
salonId: number;
|
|
4
|
+
salonLookbook: string;
|
|
5
|
+
lookbookInfo: FaveStyle;
|
|
6
|
+
isModalOpen: boolean;
|
|
7
|
+
currentMediaIdx?: number;
|
|
8
|
+
currentMedia?: AlbumMedia;
|
|
9
|
+
albumMedias?: AlbumMedia[];
|
|
10
|
+
similarStyles?: FaveStyle[];
|
|
11
|
+
totalComments?: number;
|
|
12
|
+
lookbookComments?: FaveStyleComment[];
|
|
13
|
+
isLayoutSetup?: boolean;
|
|
14
|
+
componentWillLoad(): void;
|
|
15
|
+
componentDidRender(): void;
|
|
16
|
+
injectSDK(): Promise<any>;
|
|
17
|
+
setupGridLayout(): void;
|
|
18
|
+
fetchData(): Promise<any[]>;
|
|
19
|
+
closeModal(): void;
|
|
20
|
+
onClickLookbook(style: FaveStyle): void;
|
|
21
|
+
onClickPrev(): void;
|
|
22
|
+
onClickNext(): void;
|
|
23
|
+
render(): any;
|
|
24
|
+
}
|
|
File without changes
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
export namespace Components {
|
|
9
9
|
interface GoogleMap {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"lng": number;
|
|
10
|
+
"locationAddress"?: string;
|
|
11
|
+
"locationName"?: string;
|
|
13
12
|
}
|
|
14
13
|
interface SalonBooking {
|
|
15
14
|
"buttonClass": string;
|
|
@@ -22,35 +21,43 @@ export namespace Components {
|
|
|
22
21
|
"redirectUrl": string;
|
|
23
22
|
"salonId": number;
|
|
24
23
|
}
|
|
25
|
-
interface SalonContact {
|
|
26
|
-
"salonId": number;
|
|
27
|
-
"salonInfo"?: string;
|
|
28
|
-
}
|
|
29
24
|
interface SalonGiftCard {
|
|
30
25
|
"buttonClass": string;
|
|
31
26
|
"buttonText": string;
|
|
27
|
+
"primaryColor": string;
|
|
32
28
|
"salonId": number;
|
|
33
29
|
}
|
|
34
30
|
interface SalonGiftCardModal {
|
|
31
|
+
"primaryColor": string;
|
|
35
32
|
"salonId": number;
|
|
36
33
|
}
|
|
37
34
|
interface SalonInfo {
|
|
38
|
-
"backgroundColor": string;
|
|
39
35
|
"fetchData": () => Promise<void>;
|
|
40
36
|
"salonId": number;
|
|
41
37
|
}
|
|
42
38
|
interface SalonLatestReviews {
|
|
43
39
|
"fetchData": () => Promise<void>;
|
|
40
|
+
"primaryColor": string;
|
|
41
|
+
"salonId": number;
|
|
42
|
+
}
|
|
43
|
+
interface SalonLatestStyles {
|
|
44
|
+
"fetchData": () => Promise<boolean>;
|
|
45
|
+
"isLoading"?: boolean;
|
|
44
46
|
"salonId": number;
|
|
47
|
+
"withBorder"?: boolean;
|
|
45
48
|
}
|
|
46
49
|
interface SalonLocations {
|
|
50
|
+
"isLoading"?: boolean;
|
|
47
51
|
"salonId": number;
|
|
48
52
|
"salonInfo"?: string;
|
|
53
|
+
"withBorder"?: boolean;
|
|
49
54
|
}
|
|
50
55
|
interface SalonLookbook {
|
|
51
56
|
"fetchCategories": () => Promise<void>;
|
|
52
57
|
"fetchData": () => Promise<any[]>;
|
|
53
58
|
"fetchLookbooks": (options: any, isLoadingMore?: boolean) => Promise<void>;
|
|
59
|
+
"onChangeFiltering": (filterBy: string) => Promise<void>;
|
|
60
|
+
"onChangeSorting": (sortBy: string) => Promise<void>;
|
|
54
61
|
"onLoadMore": () => Promise<void>;
|
|
55
62
|
"salonId": number;
|
|
56
63
|
}
|
|
@@ -60,25 +67,30 @@ export namespace Components {
|
|
|
60
67
|
"width"?: number;
|
|
61
68
|
}
|
|
62
69
|
interface SalonReviews {
|
|
63
|
-
"
|
|
70
|
+
"primaryColor": string;
|
|
64
71
|
"salonId": number;
|
|
65
72
|
}
|
|
66
73
|
interface SalonSchedules {
|
|
74
|
+
"isLoading"?: boolean;
|
|
67
75
|
"salonId": number;
|
|
68
76
|
"salonInfo"?: string;
|
|
77
|
+
"withBorder"?: boolean;
|
|
69
78
|
}
|
|
70
79
|
interface SalonServices {
|
|
80
|
+
"buttonClass": string;
|
|
71
81
|
"fetchData": () => Promise<void>;
|
|
72
82
|
"salonId": number;
|
|
73
83
|
}
|
|
74
|
-
interface SalonStyles {
|
|
75
|
-
"fetchData": () => Promise<any[]>;
|
|
76
|
-
"salonId": number;
|
|
77
|
-
}
|
|
78
84
|
interface SalonStylists {
|
|
79
85
|
"fetchData": () => Promise<void>;
|
|
86
|
+
"onLoadMore": () => Promise<void>;
|
|
80
87
|
"salonId": number;
|
|
81
88
|
}
|
|
89
|
+
interface StyleDetail {
|
|
90
|
+
"fetchData": () => Promise<any[]>;
|
|
91
|
+
"salonId": number;
|
|
92
|
+
"salonLookbook": string;
|
|
93
|
+
}
|
|
82
94
|
interface UserAvatar {
|
|
83
95
|
"avatar": string;
|
|
84
96
|
"name": string;
|
|
@@ -106,12 +118,6 @@ declare global {
|
|
|
106
118
|
prototype: HTMLSalonBookingModalElement;
|
|
107
119
|
new (): HTMLSalonBookingModalElement;
|
|
108
120
|
};
|
|
109
|
-
interface HTMLSalonContactElement extends Components.SalonContact, HTMLStencilElement {
|
|
110
|
-
}
|
|
111
|
-
var HTMLSalonContactElement: {
|
|
112
|
-
prototype: HTMLSalonContactElement;
|
|
113
|
-
new (): HTMLSalonContactElement;
|
|
114
|
-
};
|
|
115
121
|
interface HTMLSalonGiftCardElement extends Components.SalonGiftCard, HTMLStencilElement {
|
|
116
122
|
}
|
|
117
123
|
var HTMLSalonGiftCardElement: {
|
|
@@ -136,6 +142,12 @@ declare global {
|
|
|
136
142
|
prototype: HTMLSalonLatestReviewsElement;
|
|
137
143
|
new (): HTMLSalonLatestReviewsElement;
|
|
138
144
|
};
|
|
145
|
+
interface HTMLSalonLatestStylesElement extends Components.SalonLatestStyles, HTMLStencilElement {
|
|
146
|
+
}
|
|
147
|
+
var HTMLSalonLatestStylesElement: {
|
|
148
|
+
prototype: HTMLSalonLatestStylesElement;
|
|
149
|
+
new (): HTMLSalonLatestStylesElement;
|
|
150
|
+
};
|
|
139
151
|
interface HTMLSalonLocationsElement extends Components.SalonLocations, HTMLStencilElement {
|
|
140
152
|
}
|
|
141
153
|
var HTMLSalonLocationsElement: {
|
|
@@ -172,18 +184,18 @@ declare global {
|
|
|
172
184
|
prototype: HTMLSalonServicesElement;
|
|
173
185
|
new (): HTMLSalonServicesElement;
|
|
174
186
|
};
|
|
175
|
-
interface HTMLSalonStylesElement extends Components.SalonStyles, HTMLStencilElement {
|
|
176
|
-
}
|
|
177
|
-
var HTMLSalonStylesElement: {
|
|
178
|
-
prototype: HTMLSalonStylesElement;
|
|
179
|
-
new (): HTMLSalonStylesElement;
|
|
180
|
-
};
|
|
181
187
|
interface HTMLSalonStylistsElement extends Components.SalonStylists, HTMLStencilElement {
|
|
182
188
|
}
|
|
183
189
|
var HTMLSalonStylistsElement: {
|
|
184
190
|
prototype: HTMLSalonStylistsElement;
|
|
185
191
|
new (): HTMLSalonStylistsElement;
|
|
186
192
|
};
|
|
193
|
+
interface HTMLStyleDetailElement extends Components.StyleDetail, HTMLStencilElement {
|
|
194
|
+
}
|
|
195
|
+
var HTMLStyleDetailElement: {
|
|
196
|
+
prototype: HTMLStyleDetailElement;
|
|
197
|
+
new (): HTMLStyleDetailElement;
|
|
198
|
+
};
|
|
187
199
|
interface HTMLUserAvatarElement extends Components.UserAvatar, HTMLStencilElement {
|
|
188
200
|
}
|
|
189
201
|
var HTMLUserAvatarElement: {
|
|
@@ -194,27 +206,26 @@ declare global {
|
|
|
194
206
|
"google-map": HTMLGoogleMapElement;
|
|
195
207
|
"salon-booking": HTMLSalonBookingElement;
|
|
196
208
|
"salon-booking-modal": HTMLSalonBookingModalElement;
|
|
197
|
-
"salon-contact": HTMLSalonContactElement;
|
|
198
209
|
"salon-gift-card": HTMLSalonGiftCardElement;
|
|
199
210
|
"salon-gift-card-modal": HTMLSalonGiftCardModalElement;
|
|
200
211
|
"salon-info": HTMLSalonInfoElement;
|
|
201
212
|
"salon-latest-reviews": HTMLSalonLatestReviewsElement;
|
|
213
|
+
"salon-latest-styles": HTMLSalonLatestStylesElement;
|
|
202
214
|
"salon-locations": HTMLSalonLocationsElement;
|
|
203
215
|
"salon-lookbook": HTMLSalonLookbookElement;
|
|
204
216
|
"salon-ranking": HTMLSalonRankingElement;
|
|
205
217
|
"salon-reviews": HTMLSalonReviewsElement;
|
|
206
218
|
"salon-schedules": HTMLSalonSchedulesElement;
|
|
207
219
|
"salon-services": HTMLSalonServicesElement;
|
|
208
|
-
"salon-styles": HTMLSalonStylesElement;
|
|
209
220
|
"salon-stylists": HTMLSalonStylistsElement;
|
|
221
|
+
"style-detail": HTMLStyleDetailElement;
|
|
210
222
|
"user-avatar": HTMLUserAvatarElement;
|
|
211
223
|
}
|
|
212
224
|
}
|
|
213
225
|
declare namespace LocalJSX {
|
|
214
226
|
interface GoogleMap {
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"lng"?: number;
|
|
227
|
+
"locationAddress"?: string;
|
|
228
|
+
"locationName"?: string;
|
|
218
229
|
}
|
|
219
230
|
interface SalonBooking {
|
|
220
231
|
"buttonClass"?: string;
|
|
@@ -227,28 +238,33 @@ declare namespace LocalJSX {
|
|
|
227
238
|
"redirectUrl"?: string;
|
|
228
239
|
"salonId"?: number;
|
|
229
240
|
}
|
|
230
|
-
interface SalonContact {
|
|
231
|
-
"salonId"?: number;
|
|
232
|
-
"salonInfo"?: string;
|
|
233
|
-
}
|
|
234
241
|
interface SalonGiftCard {
|
|
235
242
|
"buttonClass"?: string;
|
|
236
243
|
"buttonText"?: string;
|
|
244
|
+
"primaryColor"?: string;
|
|
237
245
|
"salonId"?: number;
|
|
238
246
|
}
|
|
239
247
|
interface SalonGiftCardModal {
|
|
248
|
+
"primaryColor"?: string;
|
|
240
249
|
"salonId"?: number;
|
|
241
250
|
}
|
|
242
251
|
interface SalonInfo {
|
|
243
|
-
"backgroundColor"?: string;
|
|
244
252
|
"salonId"?: number;
|
|
245
253
|
}
|
|
246
254
|
interface SalonLatestReviews {
|
|
255
|
+
"primaryColor"?: string;
|
|
256
|
+
"salonId"?: number;
|
|
257
|
+
}
|
|
258
|
+
interface SalonLatestStyles {
|
|
259
|
+
"isLoading"?: boolean;
|
|
247
260
|
"salonId"?: number;
|
|
261
|
+
"withBorder"?: boolean;
|
|
248
262
|
}
|
|
249
263
|
interface SalonLocations {
|
|
264
|
+
"isLoading"?: boolean;
|
|
250
265
|
"salonId"?: number;
|
|
251
266
|
"salonInfo"?: string;
|
|
267
|
+
"withBorder"?: boolean;
|
|
252
268
|
}
|
|
253
269
|
interface SalonLookbook {
|
|
254
270
|
"salonId"?: number;
|
|
@@ -259,20 +275,25 @@ declare namespace LocalJSX {
|
|
|
259
275
|
"width"?: number;
|
|
260
276
|
}
|
|
261
277
|
interface SalonReviews {
|
|
278
|
+
"primaryColor"?: string;
|
|
262
279
|
"salonId"?: number;
|
|
263
280
|
}
|
|
264
281
|
interface SalonSchedules {
|
|
282
|
+
"isLoading"?: boolean;
|
|
265
283
|
"salonId"?: number;
|
|
266
284
|
"salonInfo"?: string;
|
|
285
|
+
"withBorder"?: boolean;
|
|
267
286
|
}
|
|
268
287
|
interface SalonServices {
|
|
288
|
+
"buttonClass"?: string;
|
|
269
289
|
"salonId"?: number;
|
|
270
290
|
}
|
|
271
|
-
interface
|
|
291
|
+
interface SalonStylists {
|
|
272
292
|
"salonId"?: number;
|
|
273
293
|
}
|
|
274
|
-
interface
|
|
294
|
+
interface StyleDetail {
|
|
275
295
|
"salonId"?: number;
|
|
296
|
+
"salonLookbook"?: string;
|
|
276
297
|
}
|
|
277
298
|
interface UserAvatar {
|
|
278
299
|
"avatar"?: string;
|
|
@@ -285,19 +306,19 @@ declare namespace LocalJSX {
|
|
|
285
306
|
"google-map": GoogleMap;
|
|
286
307
|
"salon-booking": SalonBooking;
|
|
287
308
|
"salon-booking-modal": SalonBookingModal;
|
|
288
|
-
"salon-contact": SalonContact;
|
|
289
309
|
"salon-gift-card": SalonGiftCard;
|
|
290
310
|
"salon-gift-card-modal": SalonGiftCardModal;
|
|
291
311
|
"salon-info": SalonInfo;
|
|
292
312
|
"salon-latest-reviews": SalonLatestReviews;
|
|
313
|
+
"salon-latest-styles": SalonLatestStyles;
|
|
293
314
|
"salon-locations": SalonLocations;
|
|
294
315
|
"salon-lookbook": SalonLookbook;
|
|
295
316
|
"salon-ranking": SalonRanking;
|
|
296
317
|
"salon-reviews": SalonReviews;
|
|
297
318
|
"salon-schedules": SalonSchedules;
|
|
298
319
|
"salon-services": SalonServices;
|
|
299
|
-
"salon-styles": SalonStyles;
|
|
300
320
|
"salon-stylists": SalonStylists;
|
|
321
|
+
"style-detail": StyleDetail;
|
|
301
322
|
"user-avatar": UserAvatar;
|
|
302
323
|
}
|
|
303
324
|
}
|
|
@@ -308,19 +329,19 @@ declare module "@stencil/core" {
|
|
|
308
329
|
"google-map": LocalJSX.GoogleMap & JSXBase.HTMLAttributes<HTMLGoogleMapElement>;
|
|
309
330
|
"salon-booking": LocalJSX.SalonBooking & JSXBase.HTMLAttributes<HTMLSalonBookingElement>;
|
|
310
331
|
"salon-booking-modal": LocalJSX.SalonBookingModal & JSXBase.HTMLAttributes<HTMLSalonBookingModalElement>;
|
|
311
|
-
"salon-contact": LocalJSX.SalonContact & JSXBase.HTMLAttributes<HTMLSalonContactElement>;
|
|
312
332
|
"salon-gift-card": LocalJSX.SalonGiftCard & JSXBase.HTMLAttributes<HTMLSalonGiftCardElement>;
|
|
313
333
|
"salon-gift-card-modal": LocalJSX.SalonGiftCardModal & JSXBase.HTMLAttributes<HTMLSalonGiftCardModalElement>;
|
|
314
334
|
"salon-info": LocalJSX.SalonInfo & JSXBase.HTMLAttributes<HTMLSalonInfoElement>;
|
|
315
335
|
"salon-latest-reviews": LocalJSX.SalonLatestReviews & JSXBase.HTMLAttributes<HTMLSalonLatestReviewsElement>;
|
|
336
|
+
"salon-latest-styles": LocalJSX.SalonLatestStyles & JSXBase.HTMLAttributes<HTMLSalonLatestStylesElement>;
|
|
316
337
|
"salon-locations": LocalJSX.SalonLocations & JSXBase.HTMLAttributes<HTMLSalonLocationsElement>;
|
|
317
338
|
"salon-lookbook": LocalJSX.SalonLookbook & JSXBase.HTMLAttributes<HTMLSalonLookbookElement>;
|
|
318
339
|
"salon-ranking": LocalJSX.SalonRanking & JSXBase.HTMLAttributes<HTMLSalonRankingElement>;
|
|
319
340
|
"salon-reviews": LocalJSX.SalonReviews & JSXBase.HTMLAttributes<HTMLSalonReviewsElement>;
|
|
320
341
|
"salon-schedules": LocalJSX.SalonSchedules & JSXBase.HTMLAttributes<HTMLSalonSchedulesElement>;
|
|
321
342
|
"salon-services": LocalJSX.SalonServices & JSXBase.HTMLAttributes<HTMLSalonServicesElement>;
|
|
322
|
-
"salon-styles": LocalJSX.SalonStyles & JSXBase.HTMLAttributes<HTMLSalonStylesElement>;
|
|
323
343
|
"salon-stylists": LocalJSX.SalonStylists & JSXBase.HTMLAttributes<HTMLSalonStylistsElement>;
|
|
344
|
+
"style-detail": LocalJSX.StyleDetail & JSXBase.HTMLAttributes<HTMLStyleDetailElement>;
|
|
324
345
|
"user-avatar": LocalJSX.UserAvatar & JSXBase.HTMLAttributes<HTMLUserAvatarElement>;
|
|
325
346
|
}
|
|
326
347
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const Colors: {
|
|
2
|
+
TextColor: string;
|
|
3
|
+
Black: string;
|
|
4
|
+
White: string;
|
|
5
|
+
Primary: string;
|
|
6
|
+
Secondary: string;
|
|
7
|
+
Black01: string;
|
|
8
|
+
Black02: string;
|
|
9
|
+
Black03: string;
|
|
10
|
+
Gray01: string;
|
|
11
|
+
Gray02: string;
|
|
12
|
+
Gray03: string;
|
|
13
|
+
Gray04: string;
|
|
14
|
+
Gray05: string;
|
|
15
|
+
Red01: string;
|
|
16
|
+
Red02: string;
|
|
17
|
+
Red03: string;
|
|
18
|
+
Red04: string;
|
|
19
|
+
Red05: string;
|
|
20
|
+
Orange01: string;
|
|
21
|
+
Orange02: string;
|
|
22
|
+
Orange03: string;
|
|
23
|
+
Orange04: string;
|
|
24
|
+
Orange05: string;
|
|
25
|
+
Yellow01: string;
|
|
26
|
+
Yellow02: string;
|
|
27
|
+
Yellow03: string;
|
|
28
|
+
Yellow04: string;
|
|
29
|
+
Yellow05: string;
|
|
30
|
+
Lilac01: string;
|
|
31
|
+
Lilac02: string;
|
|
32
|
+
Lilac03: string;
|
|
33
|
+
Lilac04: string;
|
|
34
|
+
Lilac05: string;
|
|
35
|
+
Blue01: string;
|
|
36
|
+
Blue02: string;
|
|
37
|
+
Blue03: string;
|
|
38
|
+
Blue04: string;
|
|
39
|
+
Blue05: string;
|
|
40
|
+
Green01: string;
|
|
41
|
+
Green02: string;
|
|
42
|
+
Green03: string;
|
|
43
|
+
Green04: string;
|
|
44
|
+
Green05: string;
|
|
45
|
+
Success01: string;
|
|
46
|
+
Success02: string;
|
|
47
|
+
Success03: string;
|
|
48
|
+
Success04: string;
|
|
49
|
+
Success05: string;
|
|
50
|
+
Error01: string;
|
|
51
|
+
Error02: string;
|
|
52
|
+
Error03: string;
|
|
53
|
+
Error04: string;
|
|
54
|
+
Error05: string;
|
|
55
|
+
Warning01: string;
|
|
56
|
+
Warning02: string;
|
|
57
|
+
Warning03: string;
|
|
58
|
+
Warning04: string;
|
|
59
|
+
Warning05: string;
|
|
60
|
+
Info01: string;
|
|
61
|
+
Info02: string;
|
|
62
|
+
Info03: string;
|
|
63
|
+
Info04: string;
|
|
64
|
+
Info05: string;
|
|
65
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
declare class HttpService {
|
|
3
|
+
http: AxiosInstance;
|
|
4
|
+
constructor();
|
|
5
|
+
fetchStyleDetail(styleId: number): Promise<{
|
|
6
|
+
styleInfo: any;
|
|
7
|
+
similarStyles: any[];
|
|
8
|
+
} | {
|
|
9
|
+
styleInfo: any;
|
|
10
|
+
similarStyles: any[];
|
|
11
|
+
}>;
|
|
12
|
+
fetchSalonInfo(salonId: number): Promise<any>;
|
|
13
|
+
fetchSalonLatestStyles(salonId: number, options: any): Promise<any>;
|
|
14
|
+
decorateServiceGroups(groups: any): any;
|
|
15
|
+
fetchSalonServices(salonId: number): Promise<any>;
|
|
16
|
+
fetchSalonStylists(salonId: number, options?: {
|
|
17
|
+
page: number;
|
|
18
|
+
limit: number;
|
|
19
|
+
}): Promise<{
|
|
20
|
+
total: any;
|
|
21
|
+
data: any;
|
|
22
|
+
} | {
|
|
23
|
+
total: number;
|
|
24
|
+
data: any[];
|
|
25
|
+
}>;
|
|
26
|
+
fetchSalonReviews(salonId: number, options?: any): Promise<{
|
|
27
|
+
total: any;
|
|
28
|
+
stats: {
|
|
29
|
+
totalReviews: any;
|
|
30
|
+
reviewPoint: number;
|
|
31
|
+
'1': number;
|
|
32
|
+
'2': number;
|
|
33
|
+
'3': number;
|
|
34
|
+
'4': number;
|
|
35
|
+
'5': number;
|
|
36
|
+
};
|
|
37
|
+
data: any;
|
|
38
|
+
} | {
|
|
39
|
+
total: number;
|
|
40
|
+
stats: {};
|
|
41
|
+
data: any[];
|
|
42
|
+
}>;
|
|
43
|
+
fetchSalonCategories(): Promise<any>;
|
|
44
|
+
fetchSalonLookbooks(salonId: number, options: any): Promise<{
|
|
45
|
+
total: number;
|
|
46
|
+
allLookbooks: any[];
|
|
47
|
+
} | {
|
|
48
|
+
total: any;
|
|
49
|
+
allLookbooks: any;
|
|
50
|
+
}>;
|
|
51
|
+
fetchStyleComments(styleId: number): Promise<{
|
|
52
|
+
total: any;
|
|
53
|
+
data: any;
|
|
54
|
+
} | {
|
|
55
|
+
total: number;
|
|
56
|
+
data: any[];
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
declare const _default: () => HttpService;
|
|
60
|
+
export default _default;
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const timeFormat = "HH:mm:ss";
|
|
2
|
+
export declare const timeFormatAmPm = "hh:mm A";
|
|
3
|
+
export declare const dateName = "dddd";
|
|
4
|
+
export declare const dateFormat = "YYYY-MM-DD";
|
|
5
|
+
export declare const dateTimeFormat = "YYYY-MM-DD HH:mm:ss";
|
|
6
|
+
export declare const dateTimeFormatAmPm = "YYYY-MM-DD hh:mm A";
|
|
7
|
+
export declare const shortDateFormat = "ddd, MMM DD";
|
|
8
|
+
export declare const shortDateYearFormat = "ddd, MMM DD YYYY";
|
|
9
|
+
export declare const apiV1Prefix = "api";
|
|
10
|
+
export declare const apiV2Prefix = "api-ver2";
|
|
11
|
+
export declare const defaultImage = "https://res.cloudinary.com/reckon-mini-sites/image/upload/v1636477599/FaveSalon%20Social%20Website/default/default--picture_w3jvfh.png";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Salon } from "./salon";
|
|
2
|
+
import { Stylist } from "./stylist";
|
|
1
3
|
import { User } from "./user";
|
|
2
4
|
interface ReviewPhoto {
|
|
3
5
|
id: number;
|
|
@@ -20,6 +22,8 @@ export declare class Review {
|
|
|
20
22
|
helpful: number;
|
|
21
23
|
recommend: number;
|
|
22
24
|
user: User;
|
|
25
|
+
salon: Salon;
|
|
26
|
+
stylist: Stylist;
|
|
23
27
|
photos: ReviewPhoto[];
|
|
24
28
|
}
|
|
25
29
|
export declare function createReview(blob: any): Review;
|
|
@@ -13,9 +13,9 @@ export interface Salon {
|
|
|
13
13
|
id: number;
|
|
14
14
|
about: string;
|
|
15
15
|
email: string;
|
|
16
|
+
ownerName: string;
|
|
16
17
|
fullProfileImage: string;
|
|
17
18
|
fullCoverImage: string;
|
|
18
|
-
ownerName: string;
|
|
19
19
|
subdomain: string;
|
|
20
20
|
website: string;
|
|
21
21
|
businessName: string;
|
|
@@ -29,5 +29,7 @@ export interface Salon {
|
|
|
29
29
|
businessHours: BusinessHour[];
|
|
30
30
|
rating: number;
|
|
31
31
|
primaryColor: string;
|
|
32
|
+
salonImages: string[];
|
|
32
33
|
}
|
|
33
34
|
export declare function createSalon(blob: any): Salon;
|
|
35
|
+
export declare function getSalonImage({ salonImages, fullProfileImage }: Salon): string;
|
|
File without changes
|