@abcagency/hc-ui-components 1.3.58 → 1.3.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/components/HireControlMap.js +11 -1
  2. package/dist/components/HireControlMap.js.map +1 -1
  3. package/dist/components/containers/accordions/filter-item-container.js.map +1 -1
  4. package/dist/components/containers/filter/commute-container.js +1 -1
  5. package/dist/components/containers/filter/commute-container.js.map +1 -1
  6. package/dist/components/containers/filter/filter-container.js.map +1 -1
  7. package/dist/components/containers/filter/filter-item-container.js.map +1 -1
  8. package/dist/components/containers/filter/location-container.js.map +1 -1
  9. package/dist/components/containers/filter/points-of-interest-container.js.map +1 -1
  10. package/dist/components/containers/filter/points-of-interest-radio-item-container.js.map +1 -1
  11. package/dist/components/containers/filter/search-container.js.map +1 -1
  12. package/dist/components/containers/jobListing/listing-details-container.js +5 -1
  13. package/dist/components/containers/jobListing/listing-details-container.js.map +1 -1
  14. package/dist/components/containers/list/item-list-container.js.map +1 -1
  15. package/dist/components/containers/maps/info-window-content-container.js.map +1 -1
  16. package/dist/components/containers/maps/map-container.js +1 -1
  17. package/dist/components/containers/maps/map-list-container.js.map +1 -1
  18. package/dist/components/containers/maps/map-marker-container.js +1 -1
  19. package/dist/components/containers/maps/map-marker-container.js.map +1 -1
  20. package/dist/components/modules/accordions/default.js +2 -2
  21. package/dist/components/modules/accordions/filterItem.js.map +1 -1
  22. package/dist/components/modules/accordions/filters.js.map +1 -1
  23. package/dist/components/modules/buttons/button-group-apply.js +48 -54
  24. package/dist/components/modules/buttons/button-group-apply.js.map +1 -1
  25. package/dist/components/modules/buttons/default.js +2 -2
  26. package/dist/components/modules/cards/default.js +2 -2
  27. package/dist/components/modules/dialogs/apply-dialog.js +1 -1
  28. package/dist/components/modules/dialogs/apply-dialog.js.map +1 -1
  29. package/dist/components/modules/filter/commute.js +2 -2
  30. package/dist/components/modules/filter/commute.js.map +1 -1
  31. package/dist/components/modules/filter/index.js.map +1 -1
  32. package/dist/components/modules/filter/location.js.map +1 -1
  33. package/dist/components/modules/filter/radio-item.js.map +1 -1
  34. package/dist/components/modules/filter/search.js.map +1 -1
  35. package/dist/components/modules/filter/sort.js +2 -2
  36. package/dist/components/modules/grid.js +1 -1
  37. package/dist/components/modules/icon.js +1 -1
  38. package/dist/components/modules/jobListing/listing-details.js +8 -7
  39. package/dist/components/modules/jobListing/listing-details.js.map +1 -1
  40. package/dist/components/modules/list/field-mapper.js.map +1 -1
  41. package/dist/components/modules/list/header-item.js.map +1 -1
  42. package/dist/components/modules/list/header.js +1 -1
  43. package/dist/components/modules/list/item-expand-card/index.js +1 -1
  44. package/dist/components/modules/list/item-expand-card/index.js.map +1 -1
  45. package/dist/components/modules/list/item-expand-card/recruiter-contact-nav.js +38 -38
  46. package/dist/components/modules/list/item-expand-card/recruiter-details.js +40 -40
  47. package/dist/components/modules/list/item-expand-card/recruiter-headshot.js +20 -20
  48. package/dist/components/modules/list/item-list.js +3 -3
  49. package/dist/components/modules/list/item-list.js.map +1 -1
  50. package/dist/components/modules/list/list-item/list-item.js.map +1 -1
  51. package/dist/components/modules/maps/info-window-content.js.map +1 -1
  52. package/dist/components/modules/maps/map-list.js.map +1 -1
  53. package/dist/components/modules/maps/map-marker.js +1 -1
  54. package/dist/components/modules/maps/map-marker.js.map +1 -1
  55. package/dist/components/modules/maps/map.js +1 -1
  56. package/dist/components/modules/maps/place-marker.js +1 -1
  57. package/dist/components/modules/maps/tabs.js +1 -1
  58. package/dist/constants/eventTypes.js +1 -0
  59. package/dist/constants/eventTypes.js.map +1 -1
  60. package/dist/contexts/mapContext.js.map +1 -1
  61. package/dist/contexts/mapListContext.js +3 -1
  62. package/dist/contexts/mapListContext.js.map +1 -1
  63. package/dist/contexts/placesContext.js.map +1 -1
  64. package/dist/contexts/themeContext.js.map +1 -1
  65. package/dist/services/configService.js.map +1 -1
  66. package/dist/services/listingEntityService.js.map +1 -1
  67. package/dist/services/listingService.js.map +1 -1
  68. package/dist/services/recruiterService.js.map +1 -1
  69. package/dist/types/components/modules/buttons/button-group-apply.d.ts +4 -4
  70. package/dist/types/components/modules/jobListing/listing-details.d.ts +3 -1
  71. package/dist/types/constants/eventTypes.d.ts +1 -0
  72. package/dist/types/contexts/mapListContext.d.ts +4 -0
  73. package/dist/util/filterUtil.js +3 -3
  74. package/dist/util/filterUtil.js.map +1 -1
  75. package/dist/util/mapIconUtil.js.map +1 -1
  76. package/dist/util/mapUtil.js.map +1 -1
  77. package/package.json +90 -90
  78. package/src/.editorconfig +12 -12
  79. package/src/bundleIndex.js +14 -14
  80. package/src/components/HireControlMap.js +148 -142
  81. package/src/components/containers/accordions/filter-item-container.js +83 -83
  82. package/src/components/containers/filter/commute-container.js +89 -89
  83. package/src/components/containers/filter/filter-container.js +76 -76
  84. package/src/components/containers/filter/filter-item-container.js +117 -117
  85. package/src/components/containers/filter/location-container.js +45 -45
  86. package/src/components/containers/filter/points-of-interest-container.js +33 -33
  87. package/src/components/containers/filter/points-of-interest-radio-item-container.js +35 -35
  88. package/src/components/containers/filter/search-container.js +61 -61
  89. package/src/components/containers/jobListing/listing-details-container.js +3 -1
  90. package/src/components/containers/list/item-list-container.tsx +81 -81
  91. package/src/components/containers/maps/info-window-content-container.js +53 -53
  92. package/src/components/containers/maps/map-list-container.js +50 -50
  93. package/src/components/containers/maps/map-marker-container.js +78 -78
  94. package/src/components/modules/accordions/filterItem.js +27 -27
  95. package/src/components/modules/accordions/filters.js +32 -32
  96. package/src/components/modules/buttons/button-group-apply.js +115 -135
  97. package/src/components/modules/dialogs/apply-dialog.js +48 -48
  98. package/src/components/modules/filter/commute.js +108 -108
  99. package/src/components/modules/filter/index.js +55 -55
  100. package/src/components/modules/filter/location.js +51 -51
  101. package/src/components/modules/filter/radio-item.js +42 -42
  102. package/src/components/modules/filter/search.js +79 -79
  103. package/src/components/modules/jobListing/listing-details.js +110 -108
  104. package/src/components/modules/list/field-mapper.js +130 -130
  105. package/src/components/modules/list/header-item.js +92 -92
  106. package/src/components/modules/list/item-expand-card/index.js +22 -22
  107. package/src/components/modules/list/item-list.tsx +117 -117
  108. package/src/components/modules/list/list-item/list-item.js +130 -130
  109. package/src/components/modules/maps/info-window-content.js +64 -64
  110. package/src/components/modules/maps/map-list.js +38 -38
  111. package/src/components/modules/maps/map-marker.js +29 -29
  112. package/src/constants/eventTypes.js +15 -14
  113. package/src/contexts/mapContext.tsx +129 -129
  114. package/src/contexts/mapListContext.tsx +326 -318
  115. package/src/contexts/placesContext.js +102 -102
  116. package/src/contexts/themeContext.js +40 -40
  117. package/src/services/configService.ts +16 -16
  118. package/src/services/listingEntityService.ts +16 -16
  119. package/src/services/listingService.ts +40 -40
  120. package/src/services/recruiterService.ts +18 -18
  121. package/src/styles/bundle.css +268 -268
  122. package/src/styles/index.css +33 -33
  123. package/src/types/Address.ts +7 -7
  124. package/src/types/ContentSection.ts +9 -9
  125. package/src/types/GetListingParams.ts +8 -8
  126. package/src/types/LatLng.ts +4 -4
  127. package/src/types/ListingEntity.ts +11 -11
  128. package/src/types/ListingFields.ts +25 -25
  129. package/src/types/Listings.ts +32 -32
  130. package/src/types/Recruiter.ts +9 -9
  131. package/src/types/SimilarListing.ts +24 -24
  132. package/src/types/config/Colors.ts +8 -8
  133. package/src/types/config/MapConfig.ts +31 -31
  134. package/src/types/config/PointsOfInterestConfig.ts +13 -13
  135. package/src/types/config/SearchConfig.ts +4 -4
  136. package/src/util/filterUtil.js +2 -1
  137. package/src/util/mapIconUtil.js +180 -180
  138. package/src/util/mapUtil.js +92 -92
  139. package/dist/types/contexts/themeContext.d.ts +0 -11
@@ -1,11 +1,11 @@
1
- import { Address } from './Address';
2
-
3
- export type ListingEntity = {
4
- id: number;
5
- listingId: number;
6
- latitude: number;
7
- longitude: number;
8
- entityDisplayName?: string;
9
- address?: Address;
10
- travelTime?: string;
11
- }
1
+ import { Address } from './Address';
2
+
3
+ export type ListingEntity = {
4
+ id: number;
5
+ listingId: number;
6
+ latitude: number;
7
+ longitude: number;
8
+ entityDisplayName?: string;
9
+ address?: Address;
10
+ travelTime?: string;
11
+ }
@@ -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,32 +1,32 @@
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
-
7
- export type Listing = {
8
- id: number;
9
- fields?: ListingFields;
10
- entityId?: number;
11
- applyUrl?: string;
12
- applyOnline?: number;
13
- detailsUrl?: string;
14
- displayOnSite: number;
15
- displayRecruiter: number;
16
- recruiterId?: number;
17
- description1?: string;
18
- description2?: string;
19
- description3?: string;
20
- description4?: string;
21
- custom1: string;
22
- custom2: string;
23
- custom3: string;
24
- custom4: string;
25
- custom5: string;
26
- customFlag1: number;
27
- slug?: string;
28
- recruiter?: Recruiter;
29
- entity?: ListingEntity;
30
- contentSections?: ContentSection[];
31
- similarListings?: SimilarListing[];
32
- }
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
+
7
+ export type Listing = {
8
+ id: number;
9
+ fields?: ListingFields;
10
+ entityId?: number;
11
+ applyUrl?: string;
12
+ applyOnline?: number;
13
+ detailsUrl?: string;
14
+ displayOnSite: number;
15
+ displayRecruiter: number;
16
+ recruiterId?: number;
17
+ description1?: string;
18
+ description2?: string;
19
+ description3?: string;
20
+ description4?: string;
21
+ custom1: string;
22
+ custom2: string;
23
+ custom3: string;
24
+ custom4: string;
25
+ custom5: string;
26
+ customFlag1: number;
27
+ slug?: string;
28
+ recruiter?: Recruiter;
29
+ entity?: ListingEntity;
30
+ contentSections?: ContentSection[];
31
+ similarListings?: SimilarListing[];
32
+ }
@@ -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,31 +1,31 @@
1
- import { Colors } from "./Colors";
2
- import { PointsOfInterestConfig } from "./PointsOfInterestConfig";
3
- import { SearchConfig } from "./SearchConfig";
4
-
5
- export type MapConfig = {
6
- title: string;
7
- titleShort: string;
8
- description: string;
9
- jobsDomain: string;
10
- useDetailsPostMessage: boolean;
11
- author: string;
12
- url: string;
13
- logo: string;
14
- companyName: string;
15
- shareImage: string;
16
- clientAuthKey: string;
17
- colors: Colors;
18
- hideLocations: boolean;
19
- fieldsShown: string[];
20
- fieldFiltersShown: string[];
21
- locationFiltersShown: string[];
22
- fieldNames: Record<string, string>;
23
- specialFeatures: Record<string, string>;
24
- searchConfig: SearchConfig;
25
- internalApplyLink: string;
26
- useApplyDialog: boolean;
27
- pointsOfInterestConfig: PointsOfInterestConfig;
28
- showMap: boolean;
29
- companyId: string;
30
- SubcategoryRequireCategory:boolean;
31
- }
1
+ import { Colors } from "./Colors";
2
+ import { PointsOfInterestConfig } from "./PointsOfInterestConfig";
3
+ import { SearchConfig } from "./SearchConfig";
4
+
5
+ export type MapConfig = {
6
+ title: string;
7
+ titleShort: string;
8
+ description: string;
9
+ jobsDomain: string;
10
+ useDetailsPostMessage: boolean;
11
+ author: string;
12
+ url: string;
13
+ logo: string;
14
+ companyName: string;
15
+ shareImage: string;
16
+ clientAuthKey: string;
17
+ colors: Colors;
18
+ hideLocations: boolean;
19
+ fieldsShown: string[];
20
+ fieldFiltersShown: string[];
21
+ locationFiltersShown: string[];
22
+ fieldNames: Record<string, string>;
23
+ specialFeatures: Record<string, string>;
24
+ searchConfig: SearchConfig;
25
+ internalApplyLink: string;
26
+ useApplyDialog: boolean;
27
+ pointsOfInterestConfig: PointsOfInterestConfig;
28
+ showMap: boolean;
29
+ companyId: string;
30
+ SubcategoryRequireCategory:boolean;
31
+ }
@@ -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
+ }
@@ -251,6 +251,7 @@ export const applyFilters = (
251
251
  function searchResults(results, query) {
252
252
  const fields = [
253
253
  'id',
254
+ 'uniqueId',
254
255
  'fields.posted',
255
256
  'fields.subtitle',
256
257
  'fields.education',
@@ -280,7 +281,7 @@ function searchResults(results, query) {
280
281
  const lowerCaseQuery = query.toLowerCase();
281
282
  const queryTerms = lowerCaseQuery.split(' ');
282
283
 
283
- const exactIdMatch = results.find(result => result.id.toString() === query);
284
+ const exactIdMatch = results.find(result => result.id.toString() === query || result.uniqueId === query);
284
285
  if (exactIdMatch) {
285
286
  return [exactIdMatch];
286
287
  }