@admin-layout/tailwind-design-pro 10.0.9-alpha.26 → 10.0.9-alpha.28
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/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts +1 -14
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +1 -7
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Logo.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +2 -29
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -13
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +1 -18
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.d.ts +1 -31
- package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +1 -8
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +1 -12
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -1
- package/lib/components/Layout/getPageTitle.d.ts +1 -16
- package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +2 -13
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +2 -1
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/components/ThemeProvider/index.d.ts +1 -1
- package/lib/components/ThemeProvider/index.d.ts.map +1 -1
- package/lib/components/ThemeProvider/types.d.ts +12 -0
- package/lib/components/ThemeProvider/types.d.ts.map +1 -1
- package/lib/components/UI/Pagination.d.ts +6 -0
- package/lib/components/UI/Pagination.d.ts.map +1 -0
- package/lib/components/UI/Pagination.js +59 -0
- package/lib/components/UI/Pagination.js.map +1 -0
- package/lib/components/UI/ParamSearchResultContainer.d.ts +90 -0
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +1 -0
- package/lib/components/UI/ParamSearchResultContainer.js +80 -0
- package/lib/components/UI/ParamSearchResultContainer.js.map +1 -0
- package/lib/components/UI/PropertyCard.d.ts +24 -0
- package/lib/components/UI/PropertyCard.d.ts.map +1 -0
- package/lib/components/UI/PropertyCard.js +377 -0
- package/lib/components/UI/PropertyCard.js.map +1 -0
- package/lib/components/UI/PropertyCardList.d.ts +93 -0
- package/lib/components/UI/PropertyCardList.d.ts.map +1 -0
- package/lib/components/UI/PropertyCardList.js +41 -0
- package/lib/components/UI/PropertyCardList.js.map +1 -0
- package/lib/components/UI/icons/LocationIcon.d.ts +7 -0
- package/lib/components/UI/icons/LocationIcon.d.ts.map +1 -0
- package/lib/components/UI/icons/LocationIcon.js +18 -0
- package/lib/components/UI/icons/LocationIcon.js.map +1 -0
- package/lib/components/UI/icons/index.d.ts +2 -0
- package/lib/components/UI/icons/index.d.ts.map +1 -0
- package/lib/components/UI/index.d.ts +4 -0
- package/lib/components/UI/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/typings.d.ts +121 -51
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/config/env-config.d.ts +1 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +5 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/helpers/DynamicIcon.d.ts +7 -4
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +11 -15
- package/lib/helpers/DynamicIcon.js.map +1 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/use-get-current-lat-long.d.ts +18 -0
- package/lib/hooks/use-get-current-lat-long.d.ts.map +1 -0
- package/lib/hooks/use-get-current-lat-long.js +29 -0
- package/lib/hooks/use-get-current-lat-long.js.map +1 -0
- package/lib/hooks/useTailwindTheme.js +82 -0
- package/lib/hooks/useTailwindTheme.js.map +1 -0
- package/package.json +2 -2
- package/lib/components/Layout/typings.d.ts +0 -77
- package/lib/components/Layout/typings.d.ts.map +0 -1
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProperty {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
types: string[];
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
introduction?: string;
|
|
9
|
+
address: any;
|
|
10
|
+
location: string;
|
|
11
|
+
images: any;
|
|
12
|
+
thumbnailUrl?: string;
|
|
13
|
+
thumbnailAlt?: string;
|
|
14
|
+
verificationDocuments?: any;
|
|
15
|
+
info?: any;
|
|
16
|
+
user: any;
|
|
17
|
+
status?: any;
|
|
18
|
+
errors?: any;
|
|
19
|
+
preferences?: any;
|
|
20
|
+
orgName?: string;
|
|
21
|
+
serviceConfiguration?: any;
|
|
22
|
+
totalReview?: number;
|
|
23
|
+
totalStar?: number;
|
|
24
|
+
reviews?: any;
|
|
25
|
+
comments?: any;
|
|
26
|
+
userLikes?: any;
|
|
27
|
+
calendarEvents?: any[];
|
|
28
|
+
isUserLike?: boolean;
|
|
29
|
+
formattedPrice?: number;
|
|
30
|
+
timeZone: string;
|
|
31
|
+
createdAt: any;
|
|
32
|
+
updatedAt?: any;
|
|
33
|
+
stats?: any;
|
|
34
|
+
guideBookId?: string;
|
|
35
|
+
guestSharing?: any;
|
|
36
|
+
}
|
|
37
|
+
interface IAirbnbProperty {
|
|
38
|
+
id: string;
|
|
39
|
+
title: string;
|
|
40
|
+
types: string[];
|
|
41
|
+
name: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
introduction?: string;
|
|
44
|
+
address: any;
|
|
45
|
+
location: string;
|
|
46
|
+
images: any;
|
|
47
|
+
thumbnailUrl?: string;
|
|
48
|
+
thumbnailAlt?: string;
|
|
49
|
+
verificationDocuments?: any;
|
|
50
|
+
info?: any;
|
|
51
|
+
user: any;
|
|
52
|
+
status?: any;
|
|
53
|
+
errors?: any;
|
|
54
|
+
preferences?: any;
|
|
55
|
+
orgName?: string;
|
|
56
|
+
serviceConfiguration?: any;
|
|
57
|
+
totalReview?: number;
|
|
58
|
+
totalStar?: number;
|
|
59
|
+
reviews?: any;
|
|
60
|
+
comments?: any;
|
|
61
|
+
userLikes?: any;
|
|
62
|
+
calendarEvents?: any[];
|
|
63
|
+
isUserLike?: boolean;
|
|
64
|
+
formattedPrice?: number;
|
|
65
|
+
timeZone: string;
|
|
66
|
+
createdAt: any;
|
|
67
|
+
updatedAt?: any;
|
|
68
|
+
stats?: any;
|
|
69
|
+
guideBookId?: string;
|
|
70
|
+
guestSharing?: any;
|
|
71
|
+
}
|
|
72
|
+
interface IPropertyType {
|
|
73
|
+
id: string;
|
|
74
|
+
icon: string;
|
|
75
|
+
description: string;
|
|
76
|
+
category: string;
|
|
77
|
+
name: string;
|
|
78
|
+
imageKey: string;
|
|
79
|
+
created_at: string;
|
|
80
|
+
}
|
|
81
|
+
type PropertyCardListProps = {
|
|
82
|
+
rooms?: IProperty[] | IAirbnbProperty[];
|
|
83
|
+
setFocus: (index: number) => void;
|
|
84
|
+
setBlur: (index: number) => void;
|
|
85
|
+
handleLike: (index: number) => void;
|
|
86
|
+
likeBtnLoading: boolean;
|
|
87
|
+
propertyTypes: IPropertyType[];
|
|
88
|
+
extraIcons?: any;
|
|
89
|
+
className?: string;
|
|
90
|
+
};
|
|
91
|
+
export declare const PropertyCardList: React.FC<PropertyCardListProps>;
|
|
92
|
+
export {};
|
|
93
|
+
//# sourceMappingURL=PropertyCardList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyCardList.d.ts","sourceRoot":"","sources":["../../../src/components/UI/PropertyCardList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,SAAS;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,IAAI,CAAC,EAAE,GAAG,C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C,EAAE,GAAG,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6B5D,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {isEmpty}from'lodash-es';import {PropertyCard}from'./PropertyCard.js';import {isUserAuthenticated}from'@adminide-stack/user-auth0-client';const PropertyCardList = props => {
|
|
2
|
+
// rooms = defaultRooms;
|
|
3
|
+
const {
|
|
4
|
+
setBlur,
|
|
5
|
+
setFocus,
|
|
6
|
+
rooms,
|
|
7
|
+
handleLike,
|
|
8
|
+
likeBtnLoading,
|
|
9
|
+
propertyTypes,
|
|
10
|
+
extraIcons,
|
|
11
|
+
className = ''
|
|
12
|
+
} = props;
|
|
13
|
+
const {
|
|
14
|
+
t
|
|
15
|
+
} = useTranslation();
|
|
16
|
+
const {
|
|
17
|
+
authenticated
|
|
18
|
+
} = isUserAuthenticated();
|
|
19
|
+
if (isEmpty(rooms)) {
|
|
20
|
+
return jsx("div", {
|
|
21
|
+
className: "text-base",
|
|
22
|
+
children: t('property.not_found_any_room')
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return jsx("div", {
|
|
26
|
+
className: `flex flex-wrap justify-evenly ${className}`,
|
|
27
|
+
children: rooms?.map((r, index) => {
|
|
28
|
+
return jsx(PropertyCard, {
|
|
29
|
+
room: r,
|
|
30
|
+
isSaved: false,
|
|
31
|
+
setFocus: () => setFocus(index),
|
|
32
|
+
setBlur: setBlur,
|
|
33
|
+
handleLike: handleLike,
|
|
34
|
+
likeBtnLoading: likeBtnLoading,
|
|
35
|
+
propertyTypes: propertyTypes,
|
|
36
|
+
authenticated: authenticated,
|
|
37
|
+
extraIcons: extraIcons
|
|
38
|
+
}, index);
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
};export{PropertyCardList};//# sourceMappingURL=PropertyCardList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyCardList.js","sources":["../../../src/components/UI/PropertyCardList.tsx"],"sourcesContent":[null],"names":[],"mappings":"gOAiGa,MAAA,gBAAgB,GAAoC,KAAC,IAAS;;QAEjE;AACN,IAAA;AACA,IAAA,QAAQ;AAER,IAAA,KAAW;cACA;IACX,cAAC;AACD,IAAA,aACS;cAEU;aAeT,GACR;AACN,GAAE,GAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/UI/icons/LocationIcon.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;6CAYxB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';const LocationIcon = ({
|
|
2
|
+
className = '',
|
|
3
|
+
w,
|
|
4
|
+
h,
|
|
5
|
+
...props
|
|
6
|
+
}) => jsx("svg", {
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
className: `inline-block ${className}`,
|
|
9
|
+
style: {
|
|
10
|
+
width: w || '1em',
|
|
11
|
+
height: h || '1em'
|
|
12
|
+
},
|
|
13
|
+
...props,
|
|
14
|
+
children: jsx("path", {
|
|
15
|
+
d: "M12.0001 1.49866C7.85965 1.49866 4.50012 4.52256 4.50012 8.24865C4.50012 14.2487 12.0001 22.4986 12.0001 22.4986C12.0001 22.4986 19.5001 14.2487 19.5001 8.24865C19.5001 4.52256 16.1406 1.49866 12.0001 1.49866ZM12.0001 11.9987C11.4068 11.9987 10.8268 11.8227 10.3334 11.4931C9.84006 11.1634 9.45554 10.6949 9.22848 10.1467C9.00142 9.59853 8.94201 8.99533 9.05776 8.41338C9.17352 7.83144 9.45924 7.29689 9.8788 6.87733C10.2984 6.45778 10.8329 6.17205 11.4148 6.0563C11.9968 5.94054 12.6 5.99995 13.1482 6.22702C13.6963 6.45408 14.1649 6.8386 14.4945 7.33194C14.8242 7.82529 15.0001 8.40531 15.0001 8.99865C14.9992 9.79404 14.6829 10.5566 14.1205 11.119C13.5581 11.6814 12.7955 11.9978 12.0001 11.9987Z",
|
|
16
|
+
fill: "currentColor"
|
|
17
|
+
})
|
|
18
|
+
});export{LocationIcon};//# sourceMappingURL=LocationIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationIcon.js","sources":["../../../../src/components/UI/icons/LocationIcon.tsx"],"sourcesContent":[null],"names":[],"mappings":"oCAEO,MAAM,YAAY,GAAG,CAAC;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/UI/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export * from './CategoriesTypeList';
|
|
2
2
|
export * from './PropertyCardOnMap';
|
|
3
3
|
export * from './LazyLoadingGoogleMarker';
|
|
4
|
+
export * from './ParamSearchResultContainer';
|
|
5
|
+
export * from './PropertyCardList';
|
|
6
|
+
export * from './PropertyCard';
|
|
7
|
+
export * from './Pagination';
|
|
4
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UI/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UI/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
|
package/lib/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CategoriesTypeList}from'./UI/CategoriesTypeList.js';export{PropertyCardOnMap}from'./UI/PropertyCardOnMap.js';export{LazyLoadingGoogleMarker}from'./UI/LazyLoadingGoogleMarker.js';export{MainHeader,defaultRenderLogo,defaultRenderLogoAndTitle}from'./Layout/GlobalHeader/MainHeader.js';export{Logo}from'./Layout/GlobalHeader/Logo.js';export{RightMenu}from'./Layout/GlobalHeader/RightMenu.js';export{ThemeContext,ThemeProvider,useTheme}from'./ThemeProvider/ThemeProvider.js';export{ThemeToggle}from'./ThemeProvider/ThemeToggle.js';export{applyTheme,generateColorPalette,hslToHex}from'./ThemeProvider/themeUtils.js';export{themeRegistry}from'./ThemeProvider/themeRegistry.js';//# sourceMappingURL=index.js.map
|
|
1
|
+
export{CategoriesTypeList}from'./UI/CategoriesTypeList.js';export{PropertyCardOnMap}from'./UI/PropertyCardOnMap.js';export{LazyLoadingGoogleMarker}from'./UI/LazyLoadingGoogleMarker.js';export{ParamSearchResultContainer}from'./UI/ParamSearchResultContainer.js';export{PropertyCardList}from'./UI/PropertyCardList.js';export{PropertyCard}from'./UI/PropertyCard.js';export{Pagination}from'./UI/Pagination.js';export{MainHeader,defaultRenderLogo,defaultRenderLogoAndTitle}from'./Layout/GlobalHeader/MainHeader.js';export{Logo}from'./Layout/GlobalHeader/Logo.js';export{RightMenu}from'./Layout/GlobalHeader/RightMenu.js';export{ThemeContext,ThemeProvider,useTheme}from'./ThemeProvider/ThemeProvider.js';export{ThemeToggle}from'./ThemeProvider/ThemeToggle.js';export{applyTheme,generateColorPalette,hslToHex}from'./ThemeProvider/themeUtils.js';export{themeRegistry}from'./ThemeProvider/themeRegistry.js';//# sourceMappingURL=index.js.map
|
|
@@ -1,66 +1,24 @@
|
|
|
1
1
|
import * as H from 'history';
|
|
2
2
|
import { RouterProps as BasicRouteProps } from 'react-router-dom';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import { GlobalHeaderProps, MenuDataItem, ProSettings, SeparateMenusTypes } from '@admin-layout/client';
|
|
5
|
+
import { PermissionType } from 'common';
|
|
4
6
|
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
5
7
|
to: H.Location;
|
|
6
8
|
replace?: boolean;
|
|
7
9
|
innerRef?: React.Ref<HTMLAnchorElement>;
|
|
8
10
|
}
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* @name Hidden subtots in the menu
|
|
16
|
-
*/
|
|
17
|
-
hideChildrenInMenu?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* @name Hide you and child nodes in the menu
|
|
20
|
-
*/
|
|
21
|
-
hideInMenu?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* @name Icon
|
|
24
|
-
*/
|
|
25
|
-
icon?: React.ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* @name Custom menu International KEY
|
|
28
|
-
*/
|
|
29
|
-
locale?: string | false;
|
|
30
|
-
/**
|
|
31
|
-
* @name Name of the menu
|
|
32
|
-
*/
|
|
33
|
-
name?: string;
|
|
34
|
-
/**
|
|
35
|
-
* @name Used to calibrate the selected value, the default is `path`
|
|
36
|
-
*/
|
|
37
|
-
key?: string;
|
|
38
|
-
/**
|
|
39
|
-
* @name disable menu option
|
|
40
|
-
*/
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* @name 路径
|
|
44
|
-
*/
|
|
45
|
-
path?: string;
|
|
46
|
-
/**
|
|
47
|
-
* @name Custom parent node
|
|
48
|
-
* @description When this node is selected, the node of ParentKeys will be selected.
|
|
49
|
-
*/
|
|
50
|
-
parentKeys?: string[];
|
|
51
|
-
/**
|
|
52
|
-
* @name Hide yourself and upgrade the child node to your own
|
|
53
|
-
*/
|
|
54
|
-
flatMenu?: boolean;
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
}
|
|
57
|
-
export interface Route extends MenuDataItem {
|
|
58
|
-
routes?: Route[];
|
|
11
|
+
export type MergerSettingsType<T> = Partial<T> & {
|
|
12
|
+
primaryColor?: string;
|
|
13
|
+
colorWeak?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export interface IRoute extends MenuDataItem {
|
|
16
|
+
routes?: IRoute[];
|
|
59
17
|
}
|
|
60
18
|
export type WithFalse<T> = T | false;
|
|
61
19
|
export interface RouterTypes<P> extends Omit<BasicRouteProps, 'location'> {
|
|
62
20
|
computedMatch?: any;
|
|
63
|
-
route?:
|
|
21
|
+
route?: IRoute;
|
|
64
22
|
location: BasicRouteProps['location'] | {
|
|
65
23
|
pathname?: string;
|
|
66
24
|
};
|
|
@@ -78,4 +36,116 @@ export interface SidebarMenuProps {
|
|
|
78
36
|
};
|
|
79
37
|
collapsed: boolean;
|
|
80
38
|
}
|
|
39
|
+
export interface SidebarProps {
|
|
40
|
+
isSideMenuOpen: boolean;
|
|
41
|
+
closeSideMenu: () => void;
|
|
42
|
+
menuData: any;
|
|
43
|
+
collapsed: boolean;
|
|
44
|
+
setCollapsed: (collapsed: boolean) => void;
|
|
45
|
+
routeParams: {
|
|
46
|
+
orgName?: string;
|
|
47
|
+
[key: string]: string;
|
|
48
|
+
};
|
|
49
|
+
settings?: any;
|
|
50
|
+
}
|
|
51
|
+
export interface BottomMenuDropDownProps {
|
|
52
|
+
menus: any;
|
|
53
|
+
collapsed: boolean;
|
|
54
|
+
routeParams: {
|
|
55
|
+
orgName?: string;
|
|
56
|
+
[key: string]: string;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export interface GlobalHeaderRightProps {
|
|
60
|
+
theme?: string;
|
|
61
|
+
layout?: any;
|
|
62
|
+
upperMenus: any;
|
|
63
|
+
routeParams: {
|
|
64
|
+
orgName?: string;
|
|
65
|
+
[key: string]: string;
|
|
66
|
+
};
|
|
67
|
+
formatMessage?: any;
|
|
68
|
+
collapsed?: boolean;
|
|
69
|
+
settings?: ProSettings;
|
|
70
|
+
toggleSideMenu?: any;
|
|
71
|
+
}
|
|
72
|
+
export interface ILogoProps {
|
|
73
|
+
logo: any;
|
|
74
|
+
settings: any;
|
|
75
|
+
scrolled: any;
|
|
76
|
+
location: any;
|
|
77
|
+
}
|
|
78
|
+
export type PrivateHeaderProps = {
|
|
79
|
+
scrolled?: boolean;
|
|
80
|
+
drawerRef?: any;
|
|
81
|
+
setSettingToggle?: any;
|
|
82
|
+
settingToggle?: any;
|
|
83
|
+
navTheme?: any;
|
|
84
|
+
location?: any;
|
|
85
|
+
layout?: any;
|
|
86
|
+
title?: any;
|
|
87
|
+
menuData?: IRoute[];
|
|
88
|
+
routeParams?: any;
|
|
89
|
+
settings?: any;
|
|
90
|
+
transition?: any;
|
|
91
|
+
onSettingChange?: (settings: MergerSettingsType<ProSettings>) => void;
|
|
92
|
+
pageTitleInfo?: any;
|
|
93
|
+
searchOptionsShown?: boolean;
|
|
94
|
+
setSearchOptionsShown?: (optionsShown: boolean) => void;
|
|
95
|
+
authorities: Record<string, PermissionType>;
|
|
96
|
+
picture?: string;
|
|
97
|
+
};
|
|
98
|
+
export interface MainHeaderProps extends Partial<GlobalHeaderProps> {
|
|
99
|
+
rightContentRender?: WithFalse<(props: any) => React.ReactNode>;
|
|
100
|
+
showSettings?: boolean;
|
|
101
|
+
}
|
|
102
|
+
export type IRightMenuProps = {
|
|
103
|
+
match?: any;
|
|
104
|
+
menuData?: IRoute[];
|
|
105
|
+
scrolled?: boolean;
|
|
106
|
+
navTheme?: string;
|
|
107
|
+
getMenuSeparation?: (menuData: [] | any) => SeparateMenusTypes;
|
|
108
|
+
routeParams: {
|
|
109
|
+
orgName?: string;
|
|
110
|
+
};
|
|
111
|
+
settings?: Partial<ProSettings>;
|
|
112
|
+
authorities: Record<string, PermissionType>;
|
|
113
|
+
picture?: string;
|
|
114
|
+
};
|
|
115
|
+
export interface DividerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
116
|
+
/**
|
|
117
|
+
* Text to display in the middle of the divider
|
|
118
|
+
*/
|
|
119
|
+
children?: React.ReactNode;
|
|
120
|
+
/**
|
|
121
|
+
* Direction of the divider
|
|
122
|
+
* @default "horizontal"
|
|
123
|
+
*/
|
|
124
|
+
orientation?: 'horizontal' | 'vertical';
|
|
125
|
+
/**
|
|
126
|
+
* Whether the divider text is less emphasized
|
|
127
|
+
* @default false
|
|
128
|
+
*/
|
|
129
|
+
plain?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Custom className for the divider
|
|
132
|
+
*/
|
|
133
|
+
className?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Custom style for the divider
|
|
136
|
+
*/
|
|
137
|
+
style?: React.CSSProperties;
|
|
138
|
+
/**
|
|
139
|
+
* Text alignment
|
|
140
|
+
* @default "center"
|
|
141
|
+
*/
|
|
142
|
+
align?: 'left' | 'right' | 'center';
|
|
143
|
+
}
|
|
144
|
+
export interface DynamicTypeIconsProps {
|
|
145
|
+
icon: any;
|
|
146
|
+
iconColor?: string;
|
|
147
|
+
w?: any;
|
|
148
|
+
h?: any;
|
|
149
|
+
iconStyle?: any;
|
|
150
|
+
}
|
|
81
151
|
//# sourceMappingURL=typings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../src/components/typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../src/components/typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,kBAAkB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EAAE,EAAE,GAAG,GAAG,KAAK,kBAAkB,CAAC;IAC/D,WAAW,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;CACvC;AAED,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,GAAG,CAAC;IACR,CAAC,CAAC,EAAE,GAAG,CAAC;IACR,SAAS,CAAC,EAAE,GAAG,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM;;;0CAGjB,CAAC"}
|
package/lib/config/env-config.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {cleanEnv,str}from'envalid';import {getEnvironment}from'@common-stack/core';const env = getEnvironment();
|
|
1
|
+
import {cleanEnv,str,bool}from'envalid';import {getEnvironment}from'@common-stack/core';const env = getEnvironment();
|
|
2
2
|
const config = cleanEnv(env, {
|
|
3
3
|
LAYOUT_ROOT: str({
|
|
4
4
|
default: '/o/:orgName',
|
|
5
5
|
desc: 'Layout parent route'
|
|
6
|
+
}),
|
|
7
|
+
ENABLE_PROPERTY_PRICE_COMPARISON: bool({
|
|
8
|
+
default: false,
|
|
9
|
+
desc: 'Enable property price comparison section'
|
|
6
10
|
})
|
|
7
11
|
});export{config};//# sourceMappingURL=env-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-config.js","sources":["../../src/config/env-config.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"env-config.js","sources":["../../src/config/env-config.ts"],"sourcesContent":[null],"names":[],"mappings":"wFAGA,MAAM,GAAG,GAAG,cAAc,EAAE;AAEf,MAAA,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE;AAChC,EAAA,WAAA,EAAW,GAAE,CAAA;AACb,IAAA,OAAA,EAAA,aAAA;AACH,IAAE,IAAA,EAAA;;;;;;"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
interface DynamicTypeIconsProps {
|
|
3
3
|
icon: any;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
iconStyle?: {
|
|
5
|
+
iconColor?: string;
|
|
6
|
+
w?: string;
|
|
7
|
+
h?: string;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
[key: string]: any;
|
|
8
11
|
}
|
|
9
12
|
export declare const DynamicIcon: React.FC<DynamicTypeIconsProps>;
|
|
10
13
|
export declare const renderDynamicIcon: (icon: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicIcon.d.ts","sourceRoot":"","sources":["../../src/helpers/DynamicIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DynamicIcon.d.ts","sourceRoot":"","sources":["../../src/helpers/DynamicIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,UAAU,qBAAqB;IAC3B,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,CAAC,EAAE;QACR,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAyCvD,CAAC;AAEF,eAAO,MAAM,iBAAiB,wDAQ7B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {jsx}from'react/jsx-runtime';import*as React from'react';import {useState,useEffect}from'react';import
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import*as React from'react';import {useState,useEffect}from'react';import selectiveIcons from'@app/selectiveIcons';const DynamicIcon = React.memo(({
|
|
2
2
|
icon,
|
|
3
3
|
iconStyle,
|
|
4
4
|
...props
|
|
@@ -20,20 +20,16 @@ import {jsx}from'react/jsx-runtime';import*as React from'react';import {useState
|
|
|
20
20
|
loadIcon();
|
|
21
21
|
}, [icon]);
|
|
22
22
|
if (!IconComponent) return null;
|
|
23
|
-
return jsx(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
h: {
|
|
35
|
-
base: iconStyle?.h ?? '16px',
|
|
36
|
-
md: iconStyle?.h ?? '16px'
|
|
23
|
+
return jsx("div", {
|
|
24
|
+
className: "m-0 flex",
|
|
25
|
+
children: jsx(IconComponent, {
|
|
26
|
+
className: "textCurrent",
|
|
27
|
+
style: {
|
|
28
|
+
color: iconStyle?.iconColor,
|
|
29
|
+
stroke: iconStyle?.iconColor,
|
|
30
|
+
width: iconStyle?.w || '16px',
|
|
31
|
+
height: iconStyle?.h || '16px',
|
|
32
|
+
...props.style
|
|
37
33
|
},
|
|
38
34
|
...props
|
|
39
35
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicIcon.js","sources":["../../src/helpers/DynamicIcon.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DynamicIcon.js","sources":["../../src/helpers/DynamicIcon.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"uJAgBa,MAAA,WAAW,GAAoC,KAAK,CAAC,IAAI,CAClE,CAAC;MACS;WACG;;AAED,CAAA,KAAA;sBACY,EAAA,gBAAA,CAAA,GAAA,QAAA,CAAA,IAAA,CAAA;AACP,EAAA,SAAA,CAAA,MAAA;AACG,IAAA,MAAA,QAAA,SAAW;wBACS,GAAA,cAAI,CAAE,IAAC,CAAA;kBAC1B,CAAA,IAAA,CAAA,MAAA,IAAA;yBAAO,CAAA,OAAA,KAAA,QAAA,EAAA;0BACY,CAAA,MAAA,OAAI,YAAU,CAAA,CAAA;;AAEtC,UAAA,gBAAE,CAAA,MAAA,MAAA,CAAA,OAAA,CAAA;AACD;kBACmB,IAAA;AACpB,QAAA,gBAAG,CAAA,IAAA,CAAA;AACX,OAAA,CAAA;AACA,KAAA;AACJ,IAAA,QAAQ,EAAE;AAEV,GAAA,EAAA,CAAA,IAAkB,CAAA,CAAA;AAAE,EAAA,IAAA,CAAA,aAAY,EAAA,OAAA,IAAA;AAEhC,EAAA,OAAAA,GACI,CAAA,KAAA,EAAA;yBAI4B;iBACV,CAAA,aAAW,EAAA;AACjB,MAAA,SAAA,EAAA,aAAO;AACP,MAAA,KAAA,EAAA;wBACQ,EAAM,SAAA;AACjB,QAAA,MAAA,EAAA,SACQ,EAEX,SACR;AACN,QACU,KAAA,EAAE,SAAS,EAAE,CAAE,IACZ,MAAA;AAGjB,QAAa,MAAA,EAAA,SAAA,EAAA,CAAA,UAAyB;AAClC,QAAI,GAAO,KAAA,CAAA;AACP,OAAA;MACH,GAAA;AAAM,KAAA;AACH,GAAA,CAAA;IACJ,SAAC,EAAA,SAAA,KAAA,SAAA,CAAA,IAAA,KAAA,SAAA,CAAA,IAAA,IAAA,SAAA,CAAA,SAAA,EAAA,SAAA,KAAA,SAAA,CAAA,SAAA,EAAA,SAAA;AAAO,MAAA,iBAAA,GAAA,IAAA,IAAA;AACJ,EAAA,IAAA,OAAA,SAAY,QAAA,EAAA;IAChB,OAACA,GAAA,CAAA,WAAA,EAAA;AACL,MAAE,IAAA,EAAA,IAAA,CAAA,IAAA;;;;;;;;;;"}
|
package/lib/hooks/index.d.ts
CHANGED
package/lib/hooks/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Gets the current Ip address details of user by calling the geolocation
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
interface CurrentLocationLongLatInterface {
|
|
7
|
+
loading: boolean;
|
|
8
|
+
error: Error;
|
|
9
|
+
fetchCurrentLatLong: () => void;
|
|
10
|
+
permissionDenied: boolean;
|
|
11
|
+
location: {
|
|
12
|
+
latitude: number;
|
|
13
|
+
longitude: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare function useGetCurrentLongLat(): CurrentLocationLongLatInterface;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=use-get-current-lat-long.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-get-current-lat-long.d.ts","sourceRoot":"","sources":["../../src/hooks/use-get-current-lat-long.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,UAAU,+BAA+B;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACrB,CAAC;CACL;AAED,wBAAgB,oBAAoB,IAAI,+BAA+B,CA6BtE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {reject}from'lodash-es';import originalAsyncFunc from'react-use/lib/useAsyncFn.js';import {useState}from'react';const useAsyncFn = originalAsyncFunc?.default || originalAsyncFunc;
|
|
2
|
+
function useGetCurrentLongLat() {
|
|
3
|
+
const [permissionDenied, setPermissionDenied] = useState(false);
|
|
4
|
+
// const { toastError } = Toast();
|
|
5
|
+
const [state, fetchCurrentLatLong] = useAsyncFn(() => new Promise(resolve => {
|
|
6
|
+
navigator.geolocation.getCurrentPosition(position => {
|
|
7
|
+
setPermissionDenied(false);
|
|
8
|
+
resolve({
|
|
9
|
+
latitude: position.coords.latitude,
|
|
10
|
+
longitude: position.coords.longitude
|
|
11
|
+
});
|
|
12
|
+
}, err => {
|
|
13
|
+
setPermissionDenied(true);
|
|
14
|
+
// toastError(err.message);
|
|
15
|
+
reject(err);
|
|
16
|
+
}, {
|
|
17
|
+
maximumAge: 60000,
|
|
18
|
+
timeout: 5000,
|
|
19
|
+
enableHighAccuracy: true
|
|
20
|
+
});
|
|
21
|
+
}));
|
|
22
|
+
return {
|
|
23
|
+
loading: state.loading,
|
|
24
|
+
location: state.value,
|
|
25
|
+
error: state.error,
|
|
26
|
+
permissionDenied,
|
|
27
|
+
fetchCurrentLatLong
|
|
28
|
+
};
|
|
29
|
+
}export{useGetCurrentLongLat};//# sourceMappingURL=use-get-current-lat-long.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-get-current-lat-long.js","sources":["../../src/hooks/use-get-current-lat-long.ts"],"sourcesContent":[null],"names":[],"mappings":"uHAIA,MAAM,UAAU,GAAI,iBAAyB,EAAE,OAAO,IAAI,iBAAiB;SAiB3D,oBAAoB,GAAA;QAC1B,CAAA,gBAAiB,EAAA,mBAAqB,CAAA,WAAY,CAAA,KAAM,CAAA;;AAG9D,EAAA,MAAA,CAAA,KAAY,EAAA,mBAAqB,CAAA,aAAc,CAAA,MACxC,IACK,OAAA,CAAA,OAAS;aACA,CAAA,8BAAa,CAAA,QACjB,IAAA;yBACsB,CAAA,KAAA,CAAC;AACpB,MAAA,OAAA,CAAA;AACJ,QAAA,QACI,EAAI,QAAA,CAAA,MAAA,CAAA,QAAA;iBACe,EAAA,QAAA,CAAA,MAAK,CAAA;;cAElB;AACV,MAAA,mBACc,KAAK,CAAE;;MAK9B,MAAA,CAAA,GAAA,CAAA;;gBAEK,EAAE,KAAK;aACV,EAAE,IAAK;wBACI,EAAA;;KAEnB;AACL,EAAC,OAAA;;;;;;;"}
|