@abcagency/hc-ui-components 1.3.57 → 1.3.59
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/apis/hcApi.js +85 -85
- package/dist/apis/hcApi.js.map +1 -1
- package/dist/clientToken.js.map +1 -1
- package/dist/components/containers/accordions/filter-container.js.map +1 -1
- package/dist/components/containers/accordions/filter-item-container.js +4 -2
- package/dist/components/containers/accordions/filter-item-container.js.map +1 -1
- package/dist/components/containers/accordions/map-accordion-item-container.js.map +1 -1
- package/dist/components/containers/filter/filter-item-container.js +4 -2
- package/dist/components/containers/filter/filter-item-container.js.map +1 -1
- package/dist/components/containers/jobListing/listing-details-container.js.map +1 -1
- package/dist/components/containers/list/item-list-container.js +21 -21
- package/dist/components/containers/list/list-item/list-item-container.js.map +1 -1
- package/dist/components/containers/maps/map-container.js.map +1 -1
- package/dist/components/modules/accordions/MapAccordionItem.js.map +1 -1
- package/dist/components/modules/accordions/default.js.map +1 -1
- package/dist/components/modules/buttons/commute-pill.js.map +1 -1
- package/dist/components/modules/buttons/default.js.map +1 -1
- package/dist/components/modules/buttons/items-pill.js.map +1 -1
- package/dist/components/modules/buttons/pill-wrapper.js.map +1 -1
- package/dist/components/modules/buttons/show-all-button.js.map +1 -1
- package/dist/components/modules/cards/default.js.map +1 -1
- package/dist/components/modules/cards/filter.js.map +1 -1
- package/dist/components/modules/filter/item.js.map +1 -1
- package/dist/components/modules/filter/sort.js.map +1 -1
- package/dist/components/modules/grid.js.map +1 -1
- package/dist/components/modules/icon.js.map +1 -1
- package/dist/components/modules/list/header.js.map +1 -1
- package/dist/components/modules/list/item-list.js +40 -40
- package/dist/components/modules/maps/info-window-card.js.map +1 -1
- package/dist/components/modules/maps/map.js.map +1 -1
- package/dist/components/modules/maps/place-marker.js.map +1 -1
- package/dist/components/modules/maps/tabs.js.map +1 -1
- package/dist/constants/placeTypes.js.map +1 -1
- package/dist/contexts/mapContext.js +83 -83
- package/dist/contexts/mapListContext.js +190 -190
- package/dist/contexts/trackEventContext.js.map +1 -1
- package/dist/hooks/useList.js.map +1 -1
- package/dist/services/configService.js +9 -9
- package/dist/services/googlePlacesNearbyService.js +32 -32
- package/dist/services/googlePlacesNearbyService.js.map +1 -1
- package/dist/services/listingAggregatorService.js +34 -34
- package/dist/services/listingAggregatorService.js.map +1 -1
- package/dist/services/listingEntityService.js +9 -9
- package/dist/services/listingService.js +24 -24
- package/dist/services/recruiterService.js +10 -10
- package/dist/types/apis/hcApi.d.ts +5 -5
- package/dist/types/clientToken.d.ts +2 -2
- package/dist/types/components/containers/accordions/map-accordion-item-container.d.ts +12 -12
- package/dist/types/components/containers/jobListing/listing-details-container.d.ts +6 -6
- package/dist/types/components/containers/list/item-list-container.d.ts +9 -9
- package/dist/types/components/containers/list/list-item/list-item-container.d.ts +14 -14
- package/dist/types/components/modules/accordions/MapAccordionItem.d.ts +10 -10
- package/dist/types/components/modules/accordions/default.d.ts +19 -19
- package/dist/types/components/modules/buttons/button-group-apply.d.ts +24 -24
- package/dist/types/components/modules/buttons/commute-pill.d.ts +5 -5
- package/dist/types/components/modules/buttons/default.d.ts +48 -48
- package/dist/types/components/modules/buttons/pill-wrapper.d.ts +3 -3
- package/dist/types/components/modules/dialogs/apply-dialog.d.ts +8 -8
- package/dist/types/components/modules/filter/sort.d.ts +8 -8
- package/dist/types/components/modules/grid.d.ts +8 -8
- package/dist/types/components/modules/icon.d.ts +10 -10
- package/dist/types/components/modules/jobListing/listing-details.d.ts +18 -18
- package/dist/types/components/modules/list/field-mapper.d.ts +10 -10
- package/dist/types/components/modules/list/header-item.d.ts +11 -11
- package/dist/types/components/modules/list/header.d.ts +12 -12
- package/dist/types/components/modules/list/item-expand-card/index.d.ts +7 -7
- package/dist/types/components/modules/list/item-expand-card/recruiter-contact-nav.d.ts +17 -17
- package/dist/types/components/modules/list/item-expand-card/recruiter-details.d.ts +21 -21
- package/dist/types/components/modules/list/item-expand-card/recruiter-headshot.d.ts +8 -8
- package/dist/types/components/modules/list/item-list.d.ts +20 -20
- package/dist/types/components/modules/list/list-item/list-item.d.ts +3 -3
- package/dist/types/constants/eventTypes.d.ts +14 -14
- package/dist/types/contexts/mapContext.d.ts +29 -29
- package/dist/types/contexts/mapListContext.d.ts +61 -61
- package/dist/types/contexts/trackEventContext.d.ts +6 -6
- package/dist/types/enums/SectionType.d.ts +9 -9
- package/dist/types/hooks/useList.d.ts +13 -13
- package/dist/types/services/configService.d.ts +6 -6
- package/dist/types/services/googlePlacesNearbyService.d.ts +5 -5
- package/dist/types/services/listingAggregatorService.d.ts +12 -12
- package/dist/types/services/listingEntityService.d.ts +6 -6
- package/dist/types/services/listingService.d.ts +9 -9
- package/dist/types/services/recruiterService.d.ts +6 -6
- package/dist/types/types/Address.d.ts +7 -7
- package/dist/types/types/ContentSection.d.ts +8 -8
- package/dist/types/types/GetListingParams.d.ts +8 -8
- package/dist/types/types/LatLng.d.ts +4 -4
- package/dist/types/types/ListingEntity.d.ts +10 -10
- package/dist/types/types/ListingFields.d.ts +25 -25
- package/dist/types/types/Listings.d.ts +31 -31
- package/dist/types/types/Recruiter.d.ts +9 -9
- package/dist/types/types/SimilarListing.d.ts +24 -24
- package/dist/types/types/config/Colors.d.ts +8 -8
- package/dist/types/types/config/MapConfig.d.ts +30 -30
- package/dist/types/types/config/PointsOfInterestConfig.d.ts +13 -13
- package/dist/types/types/config/SearchConfig.d.ts +4 -4
- package/dist/types/util/filterUtil.d.ts +28 -28
- package/dist/types/util/loading.d.ts +3 -3
- package/dist/types/util/localStorageUtil.d.ts +3 -3
- package/dist/types/util/mapUtil.d.ts +16 -16
- package/dist/types/util/sortUtil.d.ts +1 -1
- package/dist/types/util/stringUtils.d.ts +1 -1
- package/dist/types/util/urlFilterUtil.d.ts +8 -8
- package/dist/util/filterUtil.js +2 -2
- package/dist/util/filterUtil.js.map +1 -1
- package/dist/util/loading.js.map +1 -1
- package/dist/util/localStorageUtil.js +37 -37
- package/dist/util/localStorageUtil.js.map +1 -1
- package/dist/util/sortUtil.js.map +1 -1
- package/dist/util/stringUtils.js.map +1 -1
- package/dist/util/urlFilterUtil.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/hcApi.ts +109 -109
- package/src/clientToken.js +9 -9
- package/src/components/containers/accordions/filter-container.js +48 -48
- package/src/components/containers/accordions/filter-item-container.js +2 -0
- package/src/components/containers/accordions/map-accordion-item-container.js +70 -70
- package/src/components/containers/filter/filter-item-container.js +2 -1
- package/src/components/containers/jobListing/listing-details-container.js +40 -40
- package/src/components/containers/list/list-item/list-item-container.js +43 -43
- package/src/components/containers/maps/map-container.js +249 -249
- package/src/components/modules/accordions/MapAccordionItem.js +30 -30
- package/src/components/modules/accordions/default.js +171 -171
- package/src/components/modules/buttons/commute-pill.js +22 -22
- package/src/components/modules/buttons/default.js +194 -194
- package/src/components/modules/buttons/items-pill.js +35 -35
- package/src/components/modules/buttons/pill-wrapper.js +27 -27
- package/src/components/modules/buttons/show-all-button.js +19 -19
- package/src/components/modules/cards/default.js +167 -167
- package/src/components/modules/cards/filter.js +56 -56
- package/src/components/modules/filter/item.js +69 -69
- package/src/components/modules/filter/sort.js +83 -83
- package/src/components/modules/grid.js +54 -54
- package/src/components/modules/icon.js +33 -33
- package/src/components/modules/list/header.js +51 -51
- package/src/components/modules/list/item-expand-card/recruiter-contact-nav.js +50 -50
- package/src/components/modules/list/item-expand-card/recruiter-details.js +68 -68
- package/src/components/modules/list/item-expand-card/recruiter-headshot.js +22 -22
- package/src/components/modules/maps/info-window-card.js +17 -17
- package/src/components/modules/maps/map.js +64 -64
- package/src/components/modules/maps/place-marker.js +41 -41
- package/src/components/modules/maps/tabs.js +81 -81
- package/src/constants/placeTypes.js +8 -8
- package/src/contexts/trackEventContext.js +14 -14
- package/src/enums/SectionType.ts +9 -9
- package/src/hooks/useList.js +89 -89
- package/src/index.js +3 -3
- package/src/services/googlePlacesNearbyService.ts +42 -42
- package/src/services/listingAggregatorService.ts +76 -76
- package/src/util/arrayUtil.js +3 -3
- package/src/util/fieldMapper.js +22 -22
- package/src/util/filterUtil.js +311 -310
- package/src/util/loading.js +17 -17
- package/src/util/localStorageUtil.ts +34 -34
- package/src/util/sortUtil.js +32 -32
- package/src/util/stringUtils.js +6 -6
- package/src/util/urlFilterUtil.js +85 -85
- package/dist/types/contexts/themeContext.d.ts +0 -11
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Listing } from '~/types/Listings';
|
|
2
|
-
import { Recruiter } from '~/types/Recruiter';
|
|
3
|
-
import { ListingEntity } from '~/types/ListingEntity';
|
|
4
|
-
import { MapConfig } from '~/types/config/MapConfig';
|
|
5
|
-
interface FetchListingsResult {
|
|
6
|
-
listingsResult: Listing[];
|
|
7
|
-
fetchedRecruiters: Recruiter[];
|
|
8
|
-
fetchedEntities: Record<number, ListingEntity>;
|
|
9
|
-
distinctItems: any;
|
|
10
|
-
}
|
|
11
|
-
declare const fetchListings: (query: string, siteConfig: MapConfig, commuteLocation?: any | null) => Promise<FetchListingsResult>;
|
|
12
|
-
export default fetchListings;
|
|
1
|
+
import { Listing } from '~/types/Listings';
|
|
2
|
+
import { Recruiter } from '~/types/Recruiter';
|
|
3
|
+
import { ListingEntity } from '~/types/ListingEntity';
|
|
4
|
+
import { MapConfig } from '~/types/config/MapConfig';
|
|
5
|
+
interface FetchListingsResult {
|
|
6
|
+
listingsResult: Listing[];
|
|
7
|
+
fetchedRecruiters: Recruiter[];
|
|
8
|
+
fetchedEntities: Record<number, ListingEntity>;
|
|
9
|
+
distinctItems: any;
|
|
10
|
+
}
|
|
11
|
+
declare const fetchListings: (query: string, siteConfig: MapConfig, commuteLocation?: any | null) => Promise<FetchListingsResult>;
|
|
12
|
+
export default fetchListings;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ListingEntity } from '~/types/ListingEntity';
|
|
2
|
-
export declare const getListingEntities: (entityIds: number[], origin?: string) => Promise<ListingEntity[]>;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
getListingEntities: (entityIds: number[], origin?: string) => Promise<ListingEntity[]>;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
1
|
+
import { ListingEntity } from '~/types/ListingEntity';
|
|
2
|
+
export declare const getListingEntities: (entityIds: number[], origin?: string) => Promise<ListingEntity[]>;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
getListingEntities: (entityIds: number[], origin?: string) => Promise<ListingEntity[]>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { GetListingsParams } from '~/types/GetListingParams';
|
|
2
|
-
import { Listing } from '../types/Listings';
|
|
3
|
-
export declare const getListings: (params?: GetListingsParams) => Promise<Listing[]>;
|
|
4
|
-
export declare const getListingDetails: (listingId: string) => Promise<unknown>;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
getListings: (params?: GetListingsParams | undefined) => Promise<Listing[]>;
|
|
7
|
-
getListingDetails: (listingId: string) => Promise<unknown>;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
1
|
+
import { GetListingsParams } from '~/types/GetListingParams';
|
|
2
|
+
import { Listing } from '../types/Listings';
|
|
3
|
+
export declare const getListings: (params?: GetListingsParams) => Promise<Listing[]>;
|
|
4
|
+
export declare const getListingDetails: (listingId: string) => Promise<unknown>;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
getListings: (params?: GetListingsParams | undefined) => Promise<Listing[]>;
|
|
7
|
+
getListingDetails: (listingId: string) => Promise<unknown>;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Recruiter } from '~/types/Recruiter';
|
|
2
|
-
export declare const getRecruiters: (recruiterIds: number[]) => Promise<Recruiter[]>;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
getRecruiters: (recruiterIds: number[]) => Promise<Recruiter[]>;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
1
|
+
import { Recruiter } from '~/types/Recruiter';
|
|
2
|
+
export declare const getRecruiters: (recruiterIds: number[]) => Promise<Recruiter[]>;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
getRecruiters: (recruiterIds: number[]) => Promise<Recruiter[]>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type Address = {
|
|
2
|
-
location?: string;
|
|
3
|
-
street?: string;
|
|
4
|
-
city?: string;
|
|
5
|
-
state?: string;
|
|
6
|
-
zip?: string;
|
|
7
|
-
};
|
|
1
|
+
export type Address = {
|
|
2
|
+
location?: string;
|
|
3
|
+
street?: string;
|
|
4
|
+
city?: string;
|
|
5
|
+
state?: string;
|
|
6
|
+
zip?: string;
|
|
7
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SectionType } from '../enums/SectionType';
|
|
2
|
-
export type ContentSection = {
|
|
3
|
-
title?: string;
|
|
4
|
-
contentFormatted?: string;
|
|
5
|
-
contentRaw?: string;
|
|
6
|
-
sectionType: SectionType;
|
|
7
|
-
sortIndex: number;
|
|
8
|
-
};
|
|
1
|
+
import { SectionType } from '../enums/SectionType';
|
|
2
|
+
export type ContentSection = {
|
|
3
|
+
title?: string;
|
|
4
|
+
contentFormatted?: string;
|
|
5
|
+
contentRaw?: string;
|
|
6
|
+
sectionType: SectionType;
|
|
7
|
+
sortIndex: number;
|
|
8
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type GetListingsParams = {
|
|
2
|
-
location?: string[];
|
|
3
|
-
category?: string[];
|
|
4
|
-
categoryClass?: string[];
|
|
5
|
-
education?: string[];
|
|
6
|
-
city?: string[];
|
|
7
|
-
state?: string[];
|
|
8
|
-
};
|
|
1
|
+
export type GetListingsParams = {
|
|
2
|
+
location?: string[];
|
|
3
|
+
category?: string[];
|
|
4
|
+
categoryClass?: string[];
|
|
5
|
+
education?: string[];
|
|
6
|
+
city?: string[];
|
|
7
|
+
state?: string[];
|
|
8
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type LatLng = {
|
|
2
|
-
lat: number;
|
|
3
|
-
lng: number;
|
|
4
|
-
};
|
|
1
|
+
export type LatLng = {
|
|
2
|
+
lat: number;
|
|
3
|
+
lng: number;
|
|
4
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Address } from './Address';
|
|
2
|
-
export type ListingEntity = {
|
|
3
|
-
id: number;
|
|
4
|
-
listingId: number;
|
|
5
|
-
latitude: number;
|
|
6
|
-
longitude: number;
|
|
7
|
-
entityDisplayName?: string;
|
|
8
|
-
address?: Address;
|
|
9
|
-
travelTime?: string;
|
|
10
|
-
};
|
|
1
|
+
import { Address } from './Address';
|
|
2
|
+
export type ListingEntity = {
|
|
3
|
+
id: number;
|
|
4
|
+
listingId: number;
|
|
5
|
+
latitude: number;
|
|
6
|
+
longitude: number;
|
|
7
|
+
entityDisplayName?: string;
|
|
8
|
+
address?: Address;
|
|
9
|
+
travelTime?: string;
|
|
10
|
+
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export type ListingFields = {
|
|
2
|
-
posted?: string;
|
|
3
|
-
subTitle?: string;
|
|
4
|
-
education?: string;
|
|
5
|
-
position?: string;
|
|
6
|
-
category?: string;
|
|
7
|
-
categoryClass?: string;
|
|
8
|
-
shift?: string;
|
|
9
|
-
custom1?: string;
|
|
10
|
-
custom2?: string;
|
|
11
|
-
custom3?: string;
|
|
12
|
-
custom4?: string;
|
|
13
|
-
custom5?: string;
|
|
14
|
-
cityState?: string;
|
|
15
|
-
city?: string;
|
|
16
|
-
state?: string;
|
|
17
|
-
schedule?: string;
|
|
18
|
-
customFlag1?: number;
|
|
19
|
-
bonus?: number;
|
|
20
|
-
remote?: number;
|
|
21
|
-
useClientJobUrl?: boolean;
|
|
22
|
-
dateCreated: Date;
|
|
23
|
-
dateLastEdited?: Date;
|
|
24
|
-
travelTime?: string;
|
|
25
|
-
};
|
|
1
|
+
export type ListingFields = {
|
|
2
|
+
posted?: string;
|
|
3
|
+
subTitle?: string;
|
|
4
|
+
education?: string;
|
|
5
|
+
position?: string;
|
|
6
|
+
category?: string;
|
|
7
|
+
categoryClass?: string;
|
|
8
|
+
shift?: string;
|
|
9
|
+
custom1?: string;
|
|
10
|
+
custom2?: string;
|
|
11
|
+
custom3?: string;
|
|
12
|
+
custom4?: string;
|
|
13
|
+
custom5?: string;
|
|
14
|
+
cityState?: string;
|
|
15
|
+
city?: string;
|
|
16
|
+
state?: string;
|
|
17
|
+
schedule?: string;
|
|
18
|
+
customFlag1?: number;
|
|
19
|
+
bonus?: number;
|
|
20
|
+
remote?: number;
|
|
21
|
+
useClientJobUrl?: boolean;
|
|
22
|
+
dateCreated: Date;
|
|
23
|
+
dateLastEdited?: Date;
|
|
24
|
+
travelTime?: string;
|
|
25
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { ListingFields } from './ListingFields';
|
|
2
|
-
import { Recruiter } from './Recruiter';
|
|
3
|
-
import { ListingEntity } from './ListingEntity';
|
|
4
|
-
import { ContentSection } from './ContentSection';
|
|
5
|
-
import { SimilarListing } from './SimilarListing';
|
|
6
|
-
export type Listing = {
|
|
7
|
-
id: number;
|
|
8
|
-
fields?: ListingFields;
|
|
9
|
-
entityId?: number;
|
|
10
|
-
applyUrl?: string;
|
|
11
|
-
applyOnline?: number;
|
|
12
|
-
detailsUrl?: string;
|
|
13
|
-
displayOnSite: number;
|
|
14
|
-
displayRecruiter: number;
|
|
15
|
-
recruiterId?: number;
|
|
16
|
-
description1?: string;
|
|
17
|
-
description2?: string;
|
|
18
|
-
description3?: string;
|
|
19
|
-
description4?: string;
|
|
20
|
-
custom1: string;
|
|
21
|
-
custom2: string;
|
|
22
|
-
custom3: string;
|
|
23
|
-
custom4: string;
|
|
24
|
-
custom5: string;
|
|
25
|
-
customFlag1: number;
|
|
26
|
-
slug?: string;
|
|
27
|
-
recruiter?: Recruiter;
|
|
28
|
-
entity?: ListingEntity;
|
|
29
|
-
contentSections?: ContentSection[];
|
|
30
|
-
similarListings?: SimilarListing[];
|
|
31
|
-
};
|
|
1
|
+
import { ListingFields } from './ListingFields';
|
|
2
|
+
import { Recruiter } from './Recruiter';
|
|
3
|
+
import { ListingEntity } from './ListingEntity';
|
|
4
|
+
import { ContentSection } from './ContentSection';
|
|
5
|
+
import { SimilarListing } from './SimilarListing';
|
|
6
|
+
export type Listing = {
|
|
7
|
+
id: number;
|
|
8
|
+
fields?: ListingFields;
|
|
9
|
+
entityId?: number;
|
|
10
|
+
applyUrl?: string;
|
|
11
|
+
applyOnline?: number;
|
|
12
|
+
detailsUrl?: string;
|
|
13
|
+
displayOnSite: number;
|
|
14
|
+
displayRecruiter: number;
|
|
15
|
+
recruiterId?: number;
|
|
16
|
+
description1?: string;
|
|
17
|
+
description2?: string;
|
|
18
|
+
description3?: string;
|
|
19
|
+
description4?: string;
|
|
20
|
+
custom1: string;
|
|
21
|
+
custom2: string;
|
|
22
|
+
custom3: string;
|
|
23
|
+
custom4: string;
|
|
24
|
+
custom5: string;
|
|
25
|
+
customFlag1: number;
|
|
26
|
+
slug?: string;
|
|
27
|
+
recruiter?: Recruiter;
|
|
28
|
+
entity?: ListingEntity;
|
|
29
|
+
contentSections?: ContentSection[];
|
|
30
|
+
similarListings?: SimilarListing[];
|
|
31
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type Recruiter = {
|
|
2
|
-
id?: number;
|
|
3
|
-
email?: string;
|
|
4
|
-
firstName?: string;
|
|
5
|
-
lastName?: string;
|
|
6
|
-
linkedInUrl?: string;
|
|
7
|
-
mobilePhone?: string;
|
|
8
|
-
headshot?: string;
|
|
9
|
-
};
|
|
1
|
+
export type Recruiter = {
|
|
2
|
+
id?: number;
|
|
3
|
+
email?: string;
|
|
4
|
+
firstName?: string;
|
|
5
|
+
lastName?: string;
|
|
6
|
+
linkedInUrl?: string;
|
|
7
|
+
mobilePhone?: string;
|
|
8
|
+
headshot?: string;
|
|
9
|
+
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export type SimilarListing = {
|
|
2
|
-
id: number;
|
|
3
|
-
city: string;
|
|
4
|
-
companyName: string;
|
|
5
|
-
companyId: number;
|
|
6
|
-
domain: string;
|
|
7
|
-
refreshedPubDate?: Date;
|
|
8
|
-
clientJobUrl: string;
|
|
9
|
-
refreshNum: number;
|
|
10
|
-
requestURI: string;
|
|
11
|
-
schedule: string;
|
|
12
|
-
scheduleId?: number;
|
|
13
|
-
shift: string;
|
|
14
|
-
sponsored: boolean;
|
|
15
|
-
stateAbbrev: string;
|
|
16
|
-
subTitle: string;
|
|
17
|
-
title: string;
|
|
18
|
-
uniqueId: string;
|
|
19
|
-
zip: string;
|
|
20
|
-
slug?: string;
|
|
21
|
-
dateCreated: Date;
|
|
22
|
-
categoryId: number;
|
|
23
|
-
categoryClassId: number;
|
|
24
|
-
};
|
|
1
|
+
export type SimilarListing = {
|
|
2
|
+
id: number;
|
|
3
|
+
city: string;
|
|
4
|
+
companyName: string;
|
|
5
|
+
companyId: number;
|
|
6
|
+
domain: string;
|
|
7
|
+
refreshedPubDate?: Date;
|
|
8
|
+
clientJobUrl: string;
|
|
9
|
+
refreshNum: number;
|
|
10
|
+
requestURI: string;
|
|
11
|
+
schedule: string;
|
|
12
|
+
scheduleId?: number;
|
|
13
|
+
shift: string;
|
|
14
|
+
sponsored: boolean;
|
|
15
|
+
stateAbbrev: string;
|
|
16
|
+
subTitle: string;
|
|
17
|
+
title: string;
|
|
18
|
+
uniqueId: string;
|
|
19
|
+
zip: string;
|
|
20
|
+
slug?: string;
|
|
21
|
+
dateCreated: Date;
|
|
22
|
+
categoryId: number;
|
|
23
|
+
categoryClassId: number;
|
|
24
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type Colors = {
|
|
2
|
-
uiText: string;
|
|
3
|
-
uiAccent: string;
|
|
4
|
-
primary: string;
|
|
5
|
-
primaryDark: string;
|
|
6
|
-
secondary: string;
|
|
7
|
-
secondaryDark: string;
|
|
8
|
-
};
|
|
1
|
+
export type Colors = {
|
|
2
|
+
uiText: string;
|
|
3
|
+
uiAccent: string;
|
|
4
|
+
primary: string;
|
|
5
|
+
primaryDark: string;
|
|
6
|
+
secondary: string;
|
|
7
|
+
secondaryDark: string;
|
|
8
|
+
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { Colors } from "./Colors";
|
|
2
|
-
import { PointsOfInterestConfig } from "./PointsOfInterestConfig";
|
|
3
|
-
import { SearchConfig } from "./SearchConfig";
|
|
4
|
-
export type MapConfig = {
|
|
5
|
-
title: string;
|
|
6
|
-
titleShort: string;
|
|
7
|
-
description: string;
|
|
8
|
-
jobsDomain: string;
|
|
9
|
-
useDetailsPostMessage: boolean;
|
|
10
|
-
author: string;
|
|
11
|
-
url: string;
|
|
12
|
-
logo: string;
|
|
13
|
-
companyName: string;
|
|
14
|
-
shareImage: string;
|
|
15
|
-
clientAuthKey: string;
|
|
16
|
-
colors: Colors;
|
|
17
|
-
hideLocations: boolean;
|
|
18
|
-
fieldsShown: string[];
|
|
19
|
-
fieldFiltersShown: string[];
|
|
20
|
-
locationFiltersShown: string[];
|
|
21
|
-
fieldNames: Record<string, string>;
|
|
22
|
-
specialFeatures: Record<string, string>;
|
|
23
|
-
searchConfig: SearchConfig;
|
|
24
|
-
internalApplyLink: string;
|
|
25
|
-
useApplyDialog: boolean;
|
|
26
|
-
pointsOfInterestConfig: PointsOfInterestConfig;
|
|
27
|
-
showMap: boolean;
|
|
28
|
-
companyId: string;
|
|
29
|
-
SubcategoryRequireCategory: boolean;
|
|
30
|
-
};
|
|
1
|
+
import { Colors } from "./Colors";
|
|
2
|
+
import { PointsOfInterestConfig } from "./PointsOfInterestConfig";
|
|
3
|
+
import { SearchConfig } from "./SearchConfig";
|
|
4
|
+
export type MapConfig = {
|
|
5
|
+
title: string;
|
|
6
|
+
titleShort: string;
|
|
7
|
+
description: string;
|
|
8
|
+
jobsDomain: string;
|
|
9
|
+
useDetailsPostMessage: boolean;
|
|
10
|
+
author: string;
|
|
11
|
+
url: string;
|
|
12
|
+
logo: string;
|
|
13
|
+
companyName: string;
|
|
14
|
+
shareImage: string;
|
|
15
|
+
clientAuthKey: string;
|
|
16
|
+
colors: Colors;
|
|
17
|
+
hideLocations: boolean;
|
|
18
|
+
fieldsShown: string[];
|
|
19
|
+
fieldFiltersShown: string[];
|
|
20
|
+
locationFiltersShown: string[];
|
|
21
|
+
fieldNames: Record<string, string>;
|
|
22
|
+
specialFeatures: Record<string, string>;
|
|
23
|
+
searchConfig: SearchConfig;
|
|
24
|
+
internalApplyLink: string;
|
|
25
|
+
useApplyDialog: boolean;
|
|
26
|
+
pointsOfInterestConfig: PointsOfInterestConfig;
|
|
27
|
+
showMap: boolean;
|
|
28
|
+
companyId: string;
|
|
29
|
+
SubcategoryRequireCategory: boolean;
|
|
30
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export type PointsOfInterestConfig = {
|
|
2
|
-
title: string;
|
|
3
|
-
pointsOfInterestNames: Record<string, string>;
|
|
4
|
-
pointsOfInterestIcons: Record<string, string>;
|
|
5
|
-
placeMarkerColors: {
|
|
6
|
-
innerFillColor: string;
|
|
7
|
-
innerStrokeColor: string;
|
|
8
|
-
outerFillColor: string;
|
|
9
|
-
outerStrokeColor: string;
|
|
10
|
-
};
|
|
11
|
-
placeMarkerSize: number;
|
|
12
|
-
placeMappings: Record<string, string[]>;
|
|
13
|
-
};
|
|
1
|
+
export type PointsOfInterestConfig = {
|
|
2
|
+
title: string;
|
|
3
|
+
pointsOfInterestNames: Record<string, string>;
|
|
4
|
+
pointsOfInterestIcons: Record<string, string>;
|
|
5
|
+
placeMarkerColors: {
|
|
6
|
+
innerFillColor: string;
|
|
7
|
+
innerStrokeColor: string;
|
|
8
|
+
outerFillColor: string;
|
|
9
|
+
outerStrokeColor: string;
|
|
10
|
+
};
|
|
11
|
+
placeMarkerSize: number;
|
|
12
|
+
placeMappings: Record<string, string[]>;
|
|
13
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SearchConfig = {
|
|
2
|
-
label: string;
|
|
3
|
-
placeholder: string;
|
|
4
|
-
};
|
|
1
|
+
export type SearchConfig = {
|
|
2
|
+
label: string;
|
|
3
|
+
placeholder: string;
|
|
4
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export function getFilterOptions(listings: any, filteredListings: any, field: any, excludeZeroCount?: null): {
|
|
2
|
-
name: any;
|
|
3
|
-
count: any;
|
|
4
|
-
}[];
|
|
5
|
-
export function getSpecialFeatureOptions(listings: any, filteredListings: any, siteConfig: any, favorites: any): {
|
|
6
|
-
name: string;
|
|
7
|
-
count: any;
|
|
8
|
-
}[];
|
|
9
|
-
export function generateFilterOptions(filteredListings: any, allListings: any, siteConfig: any, filterOptions: any, parentField: any, favorites: any, selectedFilters: any): {
|
|
10
|
-
filters: any;
|
|
11
|
-
locations: any;
|
|
12
|
-
pointsOfInterest: {
|
|
13
|
-
id: string;
|
|
14
|
-
title: any;
|
|
15
|
-
items: {
|
|
16
|
-
key: string;
|
|
17
|
-
name: any;
|
|
18
|
-
}[];
|
|
19
|
-
};
|
|
20
|
-
} | null;
|
|
21
|
-
export function applyFilters(allListings: any, selectedFilters: any, query: any, listingEntities: any, favorites: any, siteConfig: any): {
|
|
22
|
-
filteredListings: any;
|
|
23
|
-
mapItems: any[];
|
|
24
|
-
};
|
|
25
|
-
export function filterListingsByLocation(allListings: any, selectedLocation: any, listingEntities: any): {
|
|
26
|
-
filteredListings: any;
|
|
27
|
-
mapItems: any[];
|
|
28
|
-
};
|
|
1
|
+
export function getFilterOptions(listings: any, filteredListings: any, field: any, excludeZeroCount?: null): {
|
|
2
|
+
name: any;
|
|
3
|
+
count: any;
|
|
4
|
+
}[];
|
|
5
|
+
export function getSpecialFeatureOptions(listings: any, filteredListings: any, siteConfig: any, favorites: any): {
|
|
6
|
+
name: string;
|
|
7
|
+
count: any;
|
|
8
|
+
}[];
|
|
9
|
+
export function generateFilterOptions(filteredListings: any, allListings: any, siteConfig: any, filterOptions: any, parentField: any, favorites: any, selectedFilters: any): {
|
|
10
|
+
filters: any;
|
|
11
|
+
locations: any;
|
|
12
|
+
pointsOfInterest: {
|
|
13
|
+
id: string;
|
|
14
|
+
title: any;
|
|
15
|
+
items: {
|
|
16
|
+
key: string;
|
|
17
|
+
name: any;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
} | null;
|
|
21
|
+
export function applyFilters(allListings: any, selectedFilters: any, query: any, listingEntities: any, favorites: any, siteConfig: any): {
|
|
22
|
+
filteredListings: any;
|
|
23
|
+
mapItems: any[];
|
|
24
|
+
};
|
|
25
|
+
export function filterListingsByLocation(allListings: any, selectedLocation: any, listingEntities: any): {
|
|
26
|
+
filteredListings: any;
|
|
27
|
+
mapItems: any[];
|
|
28
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default Loading;
|
|
2
|
-
declare function Loading(): React.JSX.Element;
|
|
3
|
-
import React from "react";
|
|
1
|
+
export default Loading;
|
|
2
|
+
declare function Loading(): React.JSX.Element;
|
|
3
|
+
import React from "react";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const getStorageObject: <T>(item: string, defaultItem?: T | null) => T | null;
|
|
2
|
-
export declare const getStorageItem: (item: string, defaultItem?: string | null) => string | null;
|
|
3
|
-
export declare const setStorageObject: (key: string, item: any) => void;
|
|
1
|
+
export declare const getStorageObject: <T>(item: string, defaultItem?: T | null) => T | null;
|
|
2
|
+
export declare const getStorageItem: (item: string, defaultItem?: string | null) => string | null;
|
|
3
|
+
export declare const setStorageObject: (key: string, item: any) => void;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export function getDistinctItemsByProximity(items: any, listingEntitiesDetails: any): any[];
|
|
2
|
-
export function findCloseItems(itemsObj: any): {
|
|
3
|
-
item1: any;
|
|
4
|
-
item2: any;
|
|
5
|
-
}[];
|
|
6
|
-
export function adjustItemPositions(itemsObj: any, closeItemPairs: any): any;
|
|
7
|
-
export function clusterOptions(clusterGridSize: any, fillColor: any): {
|
|
8
|
-
gridSize: any;
|
|
9
|
-
maxZoom: number;
|
|
10
|
-
styles: {
|
|
11
|
-
url: string;
|
|
12
|
-
textColor: string;
|
|
13
|
-
height: number;
|
|
14
|
-
width: number;
|
|
15
|
-
}[];
|
|
16
|
-
};
|
|
1
|
+
export function getDistinctItemsByProximity(items: any, listingEntitiesDetails: any): any[];
|
|
2
|
+
export function findCloseItems(itemsObj: any): {
|
|
3
|
+
item1: any;
|
|
4
|
+
item2: any;
|
|
5
|
+
}[];
|
|
6
|
+
export function adjustItemPositions(itemsObj: any, closeItemPairs: any): any;
|
|
7
|
+
export function clusterOptions(clusterGridSize: any, fillColor: any): {
|
|
8
|
+
gridSize: any;
|
|
9
|
+
maxZoom: number;
|
|
10
|
+
styles: {
|
|
11
|
+
url: string;
|
|
12
|
+
textColor: string;
|
|
13
|
+
height: number;
|
|
14
|
+
width: number;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function dynamicSort(items: any, fieldName: any, order?: string): any;
|
|
1
|
+
export function dynamicSort(items: any, fieldName: any, order?: string): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function capitalize(str: any): any;
|
|
1
|
+
export function capitalize(str: any): any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export function updateURLWithFilters(filters: any, location: any, query: any, handleUrlUpdate: any): void;
|
|
2
|
-
export function parseQueryParams(search: any): {};
|
|
3
|
-
export function filtersFromURL(location: any): {
|
|
4
|
-
filters: {};
|
|
5
|
-
query: null;
|
|
6
|
-
} | undefined;
|
|
7
|
-
export function hasFiltersInURL(location: any): boolean | undefined;
|
|
8
|
-
export function hasQueryInUrl(location: any): boolean | undefined;
|
|
1
|
+
export function updateURLWithFilters(filters: any, location: any, query: any, handleUrlUpdate: any): void;
|
|
2
|
+
export function parseQueryParams(search: any): {};
|
|
3
|
+
export function filtersFromURL(location: any): {
|
|
4
|
+
filters: {};
|
|
5
|
+
query: null;
|
|
6
|
+
} | undefined;
|
|
7
|
+
export function hasFiltersInURL(location: any): boolean | undefined;
|
|
8
|
+
export function hasQueryInUrl(location: any): boolean | undefined;
|
package/dist/util/filterUtil.js
CHANGED
|
@@ -264,7 +264,7 @@ var applyFilters = function applyFilters(allListings, selectedFilters, query, li
|
|
|
264
264
|
};
|
|
265
265
|
};
|
|
266
266
|
function searchResults(results, query) {
|
|
267
|
-
var fields = ['id', 'fields.posted', 'fields.subtitle', 'fields.education', 'fields.position', 'fields.category', 'fields.categoryclass', 'fields.shift', 'fields.citystate', 'fields.city', 'fields.state', 'fields.schedule', 'fields.customflag1', 'fields.bonus', 'fields.remote', 'fields.useclientjoburl', 'fields.datecreated', 'fields.datelastedited'];
|
|
267
|
+
var fields = ['id', 'uniqueId', 'fields.posted', 'fields.subtitle', 'fields.education', 'fields.position', 'fields.category', 'fields.categoryclass', 'fields.shift', 'fields.citystate', 'fields.city', 'fields.state', 'fields.schedule', 'fields.customflag1', 'fields.bonus', 'fields.remote', 'fields.useclientjoburl', 'fields.datecreated', 'fields.datelastedited'];
|
|
268
268
|
var options = {
|
|
269
269
|
includeScore: true,
|
|
270
270
|
threshold: 0.3,
|
|
@@ -274,7 +274,7 @@ function searchResults(results, query) {
|
|
|
274
274
|
var lowerCaseQuery = query.toLowerCase();
|
|
275
275
|
var queryTerms = lowerCaseQuery.split(' ');
|
|
276
276
|
var exactIdMatch = results.find(function (result) {
|
|
277
|
-
return result.id.toString() === query;
|
|
277
|
+
return result.id.toString() === query || result.uniqueId === query;
|
|
278
278
|
});
|
|
279
279
|
if (exactIdMatch) {
|
|
280
280
|
return [exactIdMatch];
|