qlu-20-ui-library 1.10.10 → 1.10.11

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.
@@ -52,6 +52,7 @@ export interface AssignmentIdealProfileCardProps {
52
52
  };
53
53
  };
54
54
  dataCy?: string;
55
+ enrichmentStatus?: "allEnriched" | "someEnriched" | "noneEnriched" | "enriching";
55
56
  }
56
- declare const AssignmentIdealProfileCard: ({ profileIndex, id, profileIconPath, profileIconSize, personName, personDesignation, personRecentCompany, recentCompanyUniversalName, recentCompanyUrn, companyLocation, notes, onCheckboxSelected, onNotesViewAllClick, onAddNotesClick, initialExperienceShow, initialEducationShow, skillsMissingList, skillsMatchingList, industryMissingList, industryMatchingList, experiencesList, educationsList, onViewDetailsClick, onCompanyClick, handleStarClick, starSelected, checkSelected, checkboxTooltipContent, isCheckboxDisabled, isStarIconShown, onCampaignClick, campaign, dataCy, }: AssignmentIdealProfileCardProps) => import("react/jsx-runtime").JSX.Element;
57
+ declare const AssignmentIdealProfileCard: ({ profileIndex, id, profileIconPath, profileIconSize, personName, personDesignation, personRecentCompany, recentCompanyUniversalName, recentCompanyUrn, companyLocation, notes, onCheckboxSelected, onNotesViewAllClick, onAddNotesClick, initialExperienceShow, initialEducationShow, skillsMissingList, skillsMatchingList, industryMissingList, industryMatchingList, experiencesList, educationsList, onViewDetailsClick, onCompanyClick, handleStarClick, starSelected, checkSelected, checkboxTooltipContent, isCheckboxDisabled, isStarIconShown, onCampaignClick, campaign, dataCy, enrichmentStatus, }: AssignmentIdealProfileCardProps) => import("react/jsx-runtime").JSX.Element;
57
58
  export default AssignmentIdealProfileCard;
@@ -53,6 +53,7 @@ export interface AssignmentIdealProfileCardProps {
53
53
  };
54
54
  };
55
55
  dataCy?: string;
56
+ enrichmentStatus?: "allEnriched" | "someEnriched" | "noneEnriched" | "enriching";
56
57
  }
57
- declare const AssignmentIdealProfileCard: ({ profileIndex, id, profileIconPath, profileIconSize, personName, personDesignation, personRecentCompany, recentCompanyUniversalName, recentCompanyUrn, companyLocation, notes, onCheckboxSelected, onNotesViewAllClick, onAddNotesClick, initialExperienceShow, initialEducationShow, skillsMissingList, skillsMatchingList, industryMissingList, industryMatchingList, experiencesList, educationsList, onViewDetailsClick, onCompanyClick, handleStarClick, starSelected, checkSelected, checkboxTooltipContent, isCheckboxDisabled, isStarIconShown, onCampaignClick, campaign, dataCy, }: AssignmentIdealProfileCardProps) => import("react/jsx-runtime").JSX.Element;
58
+ declare const AssignmentIdealProfileCard: ({ profileIndex, id, profileIconPath, profileIconSize, personName, personDesignation, personRecentCompany, recentCompanyUniversalName, recentCompanyUrn, companyLocation, notes, onCheckboxSelected, onNotesViewAllClick, onAddNotesClick, initialExperienceShow, initialEducationShow, skillsMissingList, skillsMatchingList, industryMissingList, industryMatchingList, experiencesList, educationsList, onViewDetailsClick, onCompanyClick, handleStarClick, starSelected, checkSelected, checkboxTooltipContent, isCheckboxDisabled, isStarIconShown, onCampaignClick, campaign, dataCy, enrichmentStatus, }: AssignmentIdealProfileCardProps) => import("react/jsx-runtime").JSX.Element;
58
59
  export default AssignmentIdealProfileCard;
@@ -1,4 +1,4 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CheckboxComponent, IconButton, Tooltip } from "..";
3
3
  import ProfileCardIstSection from "./ProfileIstSection";
4
4
  import ProfileCardSecondSection from "./ProfileSecondSection";
@@ -11,13 +11,31 @@ initialExperienceShow, initialEducationShow, skillsMissingList, skillsMatchingLi
11
11
  // onContextViewAllButton,
12
12
  onViewDetailsClick = (_p) => { }, onCompanyClick,
13
13
  // breadCrumbItemsList,
14
- handleStarClick, starSelected = false, checkSelected = false, checkboxTooltipContent = "", isCheckboxDisabled = false, isStarIconShown = true, onCampaignClick = () => { }, campaign, dataCy, }) => {
14
+ handleStarClick, starSelected = false, checkSelected = false, checkboxTooltipContent = "", isCheckboxDisabled = false, isStarIconShown = true, onCampaignClick = () => { }, campaign, dataCy, enrichmentStatus = "allEnriched", }) => {
15
15
  const handleSlectedState = () => {
16
16
  onCheckboxSelected(id);
17
17
  };
18
18
  const handleStarState = () => {
19
19
  handleStarClick(id);
20
20
  };
21
- return (_jsxs("span", { className: `assignment-ideal-profile-card--Generic ${checkSelected ? "checkboxChecked" : ""}`, children: [_jsxs("span", { className: "left-component-ideal-profile", children: [_jsxs("span", { className: "profilecard-header-checkboxandstar-emoji", children: [_jsxs("span", { className: "check-box--profilecard", children: [profileIndex && _jsxs("p", { children: [profileIndex, "."] }), _jsx(Tooltip, { content: checkboxTooltipContent, isDisabled: !isCheckboxDisabled, children: _jsx(CheckboxComponent, { checked: checkSelected, onClick: handleSlectedState, isDisabled: isCheckboxDisabled, dataCy: `${dataCy}-checkbox` }) })] }), isStarIconShown && (_jsx("span", { className: `profilecard-header-star ${starSelected ? "" : "starNotChecked"}`, children: _jsx(IconButton, { shape: "circular", iconType: "star", variant: "tertiary", color: "gray", iconSize: "20", sizeVariant: "sm", onClick: handleStarState, "data-cy": `${dataCy}-star` }) }))] }), _jsx(ProfileCardIstSection, { profileIconPath: profileIconPath, profileIconSize: profileIconSize, personName: personName, personDesignation: personDesignation, personRecentCompany: personRecentCompany, companyLocation: companyLocation, universalName: recentCompanyUniversalName, urn: recentCompanyUrn, notes: notes, onNotesViewAllClick: () => onNotesViewAllClick(id), onAddNotesClick: () => onAddNotesClick(id), onViewProfileButtonClick: () => onViewDetailsClick(id), onCompanyNameClick: onCompanyClick, onCampaignClick: onCampaignClick, campaign: campaign, dataCy: dataCy })] }), _jsx(ProfileCardSecondSection, { initialExperienceShow: initialExperienceShow, initialEducationShow: initialEducationShow, skillsMissingList: skillsMissingList, skillsMatchingList: skillsMatchingList, industryMissingList: industryMissingList, industryMatchingList: industryMatchingList, experiencesList: experiencesList, educationsList: educationsList, onExpoerienceCompanyClick: onCompanyClick, dataCy: dataCy })] }));
21
+ let enrichmentStatusText = null;
22
+ let enrichmentStatusColor = null;
23
+ if (enrichmentStatus === "allEnriched") {
24
+ enrichmentStatusText = "Contacts Enriched";
25
+ enrichmentStatusColor = "green";
26
+ }
27
+ else if (enrichmentStatus === "someEnriched") {
28
+ enrichmentStatusText = "Partially Enriched";
29
+ enrichmentStatusColor = "gray";
30
+ }
31
+ else if (enrichmentStatus === "enriching") {
32
+ enrichmentStatusText = "Enriching Contacts...";
33
+ enrichmentStatusColor = "gray";
34
+ }
35
+ else {
36
+ enrichmentStatusText = "";
37
+ }
38
+ const enrichmentStatusClass = `enrichment-status-container ${enrichmentStatusColor}`;
39
+ return (_jsxs("span", { className: `assignment-ideal-profile-card--Generic ${checkSelected ? "checkboxChecked" : ""}`, children: [_jsxs("span", { className: "left-component-ideal-profile", children: [_jsxs("span", { className: "profilecard-header-checkboxandstar-emoji", children: [enrichmentStatus !== "noneEnriched" && (_jsx("div", { className: enrichmentStatusClass, children: enrichmentStatusText })), _jsxs("span", { className: "check-box--profilecard", children: [profileIndex && _jsxs("p", { children: [profileIndex, "."] }), _jsx(Tooltip, { content: checkboxTooltipContent, isDisabled: !isCheckboxDisabled, children: _jsx(CheckboxComponent, { checked: checkSelected, onClick: handleSlectedState, isDisabled: isCheckboxDisabled, dataCy: `${dataCy}-checkbox` }) })] }), isStarIconShown && (_jsx("span", { className: `profilecard-header-star ${starSelected ? "" : "starNotChecked"}`, children: _jsx(IconButton, { shape: "circular", iconType: "star", variant: "tertiary", color: "gray", iconSize: "20", sizeVariant: "sm", onClick: handleStarState, "data-cy": `${dataCy}-star` }) }))] }), _jsx(ProfileCardIstSection, { profileIconPath: profileIconPath, profileIconSize: profileIconSize, personName: personName, personDesignation: personDesignation, personRecentCompany: personRecentCompany, companyLocation: companyLocation, universalName: recentCompanyUniversalName, urn: recentCompanyUrn, notes: notes, onNotesViewAllClick: () => onNotesViewAllClick(id), onAddNotesClick: () => onAddNotesClick(id), onViewProfileButtonClick: () => onViewDetailsClick(id), onCompanyNameClick: onCompanyClick, onCampaignClick: onCampaignClick, campaign: campaign, dataCy: dataCy })] }), _jsx(ProfileCardSecondSection, { initialExperienceShow: initialExperienceShow, initialEducationShow: initialEducationShow, skillsMissingList: skillsMissingList, skillsMatchingList: skillsMatchingList, industryMissingList: industryMissingList, industryMatchingList: industryMatchingList, experiencesList: experiencesList, educationsList: educationsList, onExpoerienceCompanyClick: onCompanyClick, dataCy: dataCy })] }));
22
40
  };
23
41
  export default AssignmentIdealProfileCard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlu-20-ui-library",
3
- "version": "1.10.10",
3
+ "version": "1.10.11",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",