@viswa-test/creative-workspace-ui-component 0.0.13 → 0.0.14
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/cjs/components/AssignReminders/AssignLevelAccordions.js +1 -1
- package/dist/cjs/components/AssignReminders/AssignReminderLevels.js +1 -1
- package/dist/cjs/components/AssignReminders/AssignReminderWrapper.js +1 -1
- package/dist/cjs/components/AssignReminders/components/CustomCheckbox.js +1 -1
- package/dist/cjs/components/AssignReminders/components/LevelData.js +1 -1
- package/dist/cjs/components/AssignReminders/styles/AssignReminderStyles.js +1 -1
- package/dist/components/AssignReminders/AssignLevelAccordions.js +1 -1
- package/dist/components/AssignReminders/AssignReminderLevels.js +1 -1
- package/dist/components/AssignReminders/AssignReminderWrapper.js +1 -1
- package/dist/components/AssignReminders/components/CustomCheckbox.js +1 -1
- package/dist/components/AssignReminders/components/LevelData.js +1 -1
- package/dist/components/AssignReminders/styles/AssignReminderStyles.js +1 -1
- package/dist/types/App.d.ts +0 -2
- package/dist/types/App.d.ts.map +1 -1
- package/dist/types/components/AssignReminders/AssignLevelAccordions.d.ts.map +1 -1
- package/dist/types/components/AssignReminders/AssignReminderLevels.d.ts +1 -1
- package/dist/types/components/AssignReminders/AssignReminderLevels.d.ts.map +1 -1
- package/dist/types/components/AssignReminders/AssignReminderWrapper.d.ts +1 -1
- package/dist/types/components/AssignReminders/AssignReminderWrapper.d.ts.map +1 -1
- package/dist/types/components/AssignReminders/components/CustomCheckbox.d.ts.map +1 -1
- package/dist/types/components/AssignReminders/types/types.d.ts +2 -0
- package/dist/types/components/AssignReminders/types/types.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),s=require("react"),t=require("lucide-react"),i=require("./utils/generateRandomColorsPair.js"),o=require("./assets/VerticalLine.js"),r=require("./components/AssignLevelsDatePicker.js"),a=require("./components/LevelData.js");exports.default=function(l){var d,p,u=l.level,c=l.id,g=l.accessLevelOptions,x=l.fetchUsers,h=l.onToggleMandatory,f=l.onDueDateChange,y=l.onAssigneesChange,_=l.onTitleChange
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),s=require("react"),t=require("lucide-react"),i=require("./utils/generateRandomColorsPair.js"),o=require("./assets/VerticalLine.js"),r=require("./components/AssignLevelsDatePicker.js"),a=require("./components/LevelData.js");exports.default=function(l){var d,p,u=l.level,c=l.id,g=l.accessLevelOptions,x=l.fetchUsers,h=l.onToggleMandatory,f=l.onDueDateChange,y=l.onAssigneesChange,_=l.onTitleChange;l.onDeleteLevel;var j=s.useMemo(function(){return i.getRandomColorPair()},[]),b=s.useState(!1),v=b[0],m=b[1],C=s.useState(!1),k=C[0],D=C[1];return n.jsxs("div",e.__assign({style:{width:"100%",border:"1.5px solid #E2E8F0",borderRadius:"5px"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#F8FAFC",padding:"0px 10px",minHeight:"48px"}},{children:[n.jsxs("span",e.__assign({style:{display:"flex",alignItems:"center",gap:10,paddingLeft:"20px"}},{children:[n.jsx("span",e.__assign({style:{backgroundColor:j.backgroundColor,borderRadius:"10px",padding:"3px 12px",color:j.color,fontSize:"13px",fontWeight:500}},{children:u.headerName})),k?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx("input",{type:"text",value:u.title||"",onChange:function(e){return null==_?void 0:_(e.target.value)},onBlur:function(){return D(!1)},onKeyDown:function(e){return"Enter"===e.key&&D(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"13px",fontWeight:500,color:"#374151",background:"transparent",padding:"0 2px",width:"150px"}}),n.jsx("button",e.__assign({type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),D(!1)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"}},{children:n.jsx(t.Check,{size:16,color:"#10B981"})}))]})):n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx("span",e.__assign({style:{fontSize:"13px",fontWeight:500,color:"#374151"}},{children:u.title})),n.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),D(!0)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"},title:"Edit Title"},{children:n.jsx(t.Edit2,{size:14,color:"#6B7280"})}))]}))]})),n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:16,marginLeft:"auto"}},{children:[v&&u.hasDueDate&&n.jsxs(n.Fragment,{children:[n.jsxs("span",e.__assign({style:{color:"#6B7280"}},{children:["Due Date: ",u.isMandatory&&n.jsx("sup",e.__assign({style:{color:"red"}},{children:"*"}))]})),n.jsx(r.default,{value:null!==(d=u.dueDate)&&void 0!==d?d:null,onSet:f,id:c}),n.jsx(o.default,{})]}),n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center"}},{children:n.jsxs("button",e.__assign({type:"button",onClick:h,disabled:"0"===c,style:{position:"relative",width:"88px",height:"26px",border:"none",borderRadius:"999px",backgroundColor:u.isMandatory?"#5B4FE9":"#D1D5DB",cursor:"pointer",opacity:"0"===c?"50%":"100%",display:"flex",alignItems:"center",padding:"0 10px",transition:"all 0.2s ease",flexShrink:0}},{children:[n.jsx("span",{style:{position:"absolute",top:"3px",left:u.isMandatory?"65px":"3px",width:"20px",height:"20px",borderRadius:"50%",background:"#FFF",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.15)"}}),n.jsx("span",e.__assign({style:{color:"#FFF",fontSize:"10px",fontWeight:500,userSelect:"none",paddingLeft:u.isMandatory?"0":"18px",paddingRight:u.isMandatory?"18px":"0"}},{children:"Required"}))]}))})),n.jsx(t.ChevronDown,{size:20,onClick:function(e){e.stopPropagation(),m(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:v?"rotate(180deg)":"rotate(0deg)"}})]}))]})),v&&n.jsx("div",e.__assign({style:{width:"100%",height:"auto"}},{children:n.jsx(a.default,{assignees:null!==(p=u.assignees)&&void 0!==p?p:[],onAssigneeChange:y,accessLevelOptions:g,fetchUsers:x})}))]}))};
|
|
2
2
|
//# sourceMappingURL=AssignLevelAccordions.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),s=require("react"),i=require("lucide-react"),t=require("./AssignLevelAccordions.js"),r=require("./components/CustomCheckbox.js"),l=require("./assets/FileCheckCorner.js"),a=require("./styles/AssignReminderStyles.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(s),c=function(e){switch(e){case 0:return n.jsx(i.Edit2,{size:16});case 1:return n.jsx(i.FileCheck,{size:16});case 2:return n.jsx(i.User,{size:16});default:return n.jsx(i.CheckSquare,{size:16})}},d=[{label:"Edit",icon:n.jsx(i.PenLine,{size:14})},{label:"Approve",icon:n.jsx(i.UserRoundCheck,{size:14})},{label:"Edit & Approve",icon:n.jsx(l.default,{})},{label:"Notify",icon:n.jsx(i.Bell,{size:14})}];exports.AssignReminderLevels=function(s){var l=s.title,o=s.levels,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),s=require("react"),i=require("lucide-react"),t=require("./AssignLevelAccordions.js"),r=require("./components/CustomCheckbox.js"),l=require("./assets/FileCheckCorner.js"),a=require("./styles/AssignReminderStyles.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(s),c=function(e){switch(e){case 0:return n.jsx(i.Edit2,{size:16});case 1:return n.jsx(i.FileCheck,{size:16});case 2:return n.jsx(i.User,{size:16});default:return n.jsx(i.CheckSquare,{size:16})}},d=[{label:"Edit",icon:n.jsx(i.PenLine,{size:14})},{label:"Approve",icon:n.jsx(i.UserRoundCheck,{size:14})},{label:"Edit & Approve",icon:n.jsx(l.default,{})},{label:"Notify",icon:n.jsx(i.Bell,{size:14})}];exports.AssignReminderLevels=function(s){var l=s.title,o=s.levels,f=void 0===o?[]:o,_=s.requireFinalApproval,p=void 0!==_&&_,g=s.additionalInfo,v=s.setLevels,x=s.setRequireFinalApproval,h=s.fetchUsers,j=s.accessLevelOptions,S=void 0===j?d:j,A=s.customInfoIcon,y=s.onValidationError,E=s.customStyles,L=s.totalLevels,m=u.default.useState(!1),D=m[0],I=m[1],b=u.default.useMemo(function(){return Array.from({length:null!=L?L:3},function(e,n){var s;return null!==(s=f[n])&&void 0!==s?s:{title:"Level ".concat(n+1),headerName:"L ".concat(n+1),isMandatory:!1,dueDate:null,assignees:[],hasDueDate:!0}})},[f,L]);return n.jsxs("div",e.__assign({style:{padding:"8px",display:"flex",flexDirection:"column",gap:"18px"}},{children:[n.jsxs("span",e.__assign({style:e.__assign(e.__assign({},a.DEFAULT_ASSIGN_REMINDER_STYLES.header),null==E?void 0:E.header)},{children:[n.jsx("span",{children:null!=l?l:"Assignee Levels"}),n.jsxs("div",e.__assign({style:a.DEFAULT_ASSIGN_REMINDER_STYLES.infoIconWrapper,onMouseEnter:function(){return I(!0)},onMouseLeave:function(){return I(!1)}},{children:[null!=A?A:n.jsx(i.InfoIcon,{width:18,height:18}),n.jsx("div",e.__assign({style:e.__assign(e.__assign({},a.DEFAULT_ASSIGN_REMINDER_STYLES.tooltip),D?a.DEFAULT_ASSIGN_REMINDER_STYLES.tooltipVisible:{})},{children:g||n.jsxs("span",{children:[n.jsx("b",{children:"How it works:"}),n.jsx("br",{}),"Level 1 is required by default, Enable Level 2 and Level 3 to add sequential approval steps for the review"]})}))]}))]})),n.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"16px"}},{children:(f.length>0?f:b).map(function(s,i){return n.jsx(t.default,{level:s,id:String(i),accessLevelOptions:S,fetchUsers:h,onToggleMandatory:function(){return n=i,void(null==v||v(function(s){return s.map(function(s,i){return i===n?e.__assign(e.__assign({},s),{isMandatory:!s.isMandatory}):s})}));var n},onDueDateChange:function(n){return function(n,s){var i;if(n>0&&s){var t=null===(i=f[n-1])||void 0===i?void 0:i.dueDate;if(t&&s<t)return void(null==y||y("Level ".concat(n+1," due date cannot be before Level ").concat(n," due date")))}null==v||v(function(i){return i.map(function(i,t){return t===n?e.__assign(e.__assign({},i),{dueDate:s}):i})})}(i,n)},onAssigneesChange:function(n){return s=i,t=n,void(null==v||v(function(n){return n.map(function(n,i){return i===s?e.__assign(e.__assign({},n),{assignees:t}):n})}));var s,t},onTitleChange:function(n){return function(n,s){null==v||v(function(i){return i.map(function(i,t){return t===n?e.__assign(e.__assign({},i),{title:s}):i})})}(i,n)}},i)})})),n.jsxs("div",e.__assign({style:a.DEFAULT_ASSIGN_REMINDER_STYLES.finalApprovalBox},{children:[n.jsx(r.default,{getter:p,setter:null!=x?x:function(){}}),n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",alignItems:"baseline",fontSize:"14px",fontWeight:400}},{children:[n.jsx("span",e.__assign({style:{fontWeight:500}},{children:"Require Final Approval"})),n.jsx("span",{children:"After all assignees approve, you (the owner) will be notified to give final sign-off before the redline is settled."})]}))]})),n.jsxs("div",e.__assign({style:a.DEFAULT_ASSIGN_REMINDER_STYLES.currentApprovalFlow},{children:[n.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:600}},{children:"Current Approval Flow"})),n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginTop:"4px"}},{children:f.map(function(s,t){var r,l=(null===(r=s.assignees)||void 0===r?void 0:r.map(function(e){return e.name}).join(", "))||"No users assigned",a=s.title||"Level ".concat(t+1);return n.jsxs(u.default.Fragment,{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",fontWeight:500,color:"#374151"},title:a},{children:[c(t),n.jsx("span",{children:l})]})),t<f.length-1&&n.jsx(i.ArrowRight,{size:16,color:"#9CA3AF"})]},t)})}))]}))]}))};
|
|
2
2
|
//# sourceMappingURL=AssignReminderLevels.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),i=require("lucide-react"),r=require("react"),a=require("./AssignReminderLevels.js"),n=require("./AssignReminderTest.js"),t=require("./components/ReviewStatus.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),i=require("lucide-react"),r=require("react"),a=require("./AssignReminderLevels.js"),n=require("./AssignReminderTest.js"),t=require("./components/ReviewStatus.js"),l=require("./components/CustomDatePicker.js"),_=require("./styles/AssignReminderWrapperStyles.js"),E=[{tabName:"Assignees & Approvers",tabIcon:s.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2"},{children:[s.jsx("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),s.jsx("circle",{cx:"9",cy:"7",r:"4"}),s.jsx("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),s.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}))},{tabName:"Manage Reminders",tabIcon:s.jsx(i.Bell,{size:15})},{tabName:"Review Status",tabIcon:s.jsx(i.ClipboardList,{size:15})}];exports.AssignReminderWrapper=function(o){var S,R,d=o.metadata,A=void 0===d?{}:d,c=o.reviewData,u=void 0===c?{}:c,D=o.levels,v=o.setLevels,L=o.requireFinalApproval,p=o.setRequireFinalApproval,g=o.approvalDueDate,I=o.setApprovalDueDate,N=o.onClose,T=o.fetchUsers,P=o.onSave,j=o.onValidationError,h=o.totalLevels,x=(null===(S=A.tabData)||void 0===S?void 0:S.length)?A.tabData:E,m=r.useState(x[0].tabName),y=m[0],F=m[1],b=(R=y.toLowerCase()).includes("reminder")?"reminders":R.includes("review")?"review":"assignees",M=r.useState(D||n.INITIAL_LEVELS),W=M[0],U=M[1],G=r.useState(L||!1),Y=G[0],C=G[1],f=r.useState(g||null),q=f[0],w=f[1],B=v&&D?D:W,k=v||U,z=p&&void 0!==L?L:Y,V=p||C,H=I&&void 0!==g?g:q,O=I||w,X=A.wrapperTitle||"Assign Redline and Manage Reminders",J=A.wrapperSubTitle||"Sec 4.1 - Technical Security Information",K=A.wrapperPriority||"High",Q=A.wrapperPriorityStyles||{backgroundColor:"#DC262618",color:"#DC2626",border:"1px solid #DC262640"};return s.jsx("div",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.overlay},{children:s.jsxs("div",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.modal},{children:[s.jsxs("div",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.header},{children:[s.jsxs("div",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.headerLeft},{children:[s.jsx("span",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.modalTitle},{children:X})),s.jsxs("div",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.redlineRow},{children:[s.jsx("span",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.redlineName},{children:J})),s.jsx("span",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.redlineBadge),Q)},{children:K}))]}))]})),s.jsx("button",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.closeBtn,onClick:N},{children:s.jsx(i.X,{size:20,color:"#6B7280"})}))]})),s.jsx("div",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.tabBar},{children:x.map(function(i){return s.jsxs("button",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.tab),y===i.tabName?_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.tabActive:{}),onClick:function(){return F(i.tabName)}},{children:[i.tabIcon," ",i.tabName]}),i.tabName)})})),s.jsxs("div",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.body},{children:["assignees"===b&&s.jsxs(s.Fragment,{children:[!1!==A.showFinalApprovalDueDate&&s.jsxs("div",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.dueDateBar},{children:[s.jsxs("span",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.dueDateLabel},{children:["Final Approval due date ",s.jsx("sup",e.__assign({style:{color:"#DC2626",marginLeft:2}},{children:"*"}))]})),s.jsx("div",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.dueDateInputWrap},{children:s.jsx(l.default,{value:H?H.toISOString().slice(0,10):"",onChange:O})})),s.jsxs("span",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.requiredToProceeed},{children:[s.jsx(i.CircleAlert,{size:14,color:"#6B7280"})," Required to proceed"]}))]})),s.jsx(a.AssignReminderLevels,{levels:B,totalLevels:h,requireFinalApproval:z,setLevels:k,setRequireFinalApproval:V,fetchUsers:T||n.mockFetchUsers,onValidationError:j})]}),"reminders"===b&&s.jsxs("div",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.reminderPlaceholder},{children:[s.jsx(i.Bell,{size:32,color:"#D1D5DB"}),s.jsx("p",e.__assign({style:{color:"#9CA3AF",marginTop:12,fontSize:14}},{children:"Reminder settings coming soon…"}))]})),"review"===b&&s.jsx(t.default,{levels:B,reviewData:u})]})),s.jsxs("div",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.footer},{children:[s.jsx("button",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.clearBtn,onClick:function(){k(n.INITIAL_LEVELS.map(function(s){return e.__assign(e.__assign({},s),{assignees:[],dueDate:null})})),V(!1),O(null),null==N||N()}},{children:"Clear"})),s.jsx("button",e.__assign({style:_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.saveBtn,onClick:function(){null==P||P({levels:B,requireFinalApproval:z,finalApprovalDueDate:H,activeTab:b})}},{children:"Save Changes"}))]}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=AssignReminderWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),r=require("lucide-react");exports.default=function(i){var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),r=require("lucide-react");exports.default=function(i){var s=i.getter,n=i.setter;return t.jsxs("label",e.__assign({style:{width:"28px",height:"18px",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center"}},{children:[t.jsx("input",{type:"checkbox",checked:s,onChange:function(e){return n(e.target.checked)},style:{display:"none"}}),t.jsx("span",e.__assign({style:{width:"18px",height:"18px",border:"2px solid ".concat(s?"#7C3AED":"#CBD5E1"),borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#fff"}},{children:s&&t.jsx(r.Check,{size:12,color:"#7C3AED",strokeWidth:3})}))]}))};
|
|
2
2
|
//# sourceMappingURL=CustomCheckbox.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),r=require("react"),i=require("./CustomDropdown.js");exports.default=function(s){var t=this,a=s.assignees,o=s.onAssigneeChange,l=s.accessLevelOptions,d=s.fetchUsers,u=r.useState(""),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),r=require("react"),i=require("./CustomDropdown.js");exports.default=function(s){var t=this,a=s.assignees,o=s.onAssigneeChange,l=s.accessLevelOptions,d=s.fetchUsers,u=r.useState(""),p=u[0],c=u[1],x=r.useState([]),f=x[0],g=x[1];return r.useEffect(function(){if(p.trim()){var n=setTimeout(function(){return e.__awaiter(t,void 0,void 0,function(){var n,r,i;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d(p)];case 1:return n=e.sent(),r=new Set(a.map(function(e){return e.id})),g(n.filter(function(e){return!r.has(e.id)})),[3,3];case 2:return i=e.sent(),console.error("[LevelData]: fetchUser error:",i),g([]),[3,3];case 3:return[2]}})})},300);return function(){return clearTimeout(n)}}g([])},[p,a]),n.jsxs("div",e.__assign({style:{borderTop:"1px solid #CBD5E1",padding:"20px"}},{children:[n.jsx("span",e.__assign({style:{fontWeight:600,marginBottom:"8px",fontSize:"14px"}},{children:"Assignee Emails"})),n.jsxs("div",e.__assign({style:{border:"1px solid #CBD5E1",borderRadius:"8px",padding:"8px",marginTop:"10px",display:"flex",flexWrap:"wrap",gap:"8px",alignItems:"center"}},{children:[a.map(function(r){var s,t,d;return n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px",background:"#E9D5FF",borderRadius:"10px",padding:"2px 8px",fontSize:"12px"}},{children:[n.jsx("span",e.__assign({style:{padding:"4px"}},{children:r.name})),n.jsx(i.default,{value:null!==(d=null!==(s=r.accessLevel)&&void 0!==s?s:null===(t=l[0])||void 0===t?void 0:t.label)&&void 0!==d?d:"",options:l,onChange:function(n){return i=r.id,s=n,void o(a.map(function(n){return n.id===i?e.__assign(e.__assign({},n),{accessLevel:s}):n}));var i,s}}),n.jsx("button",e.__assign({style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",fontSize:"12px"},onClick:function(){return e=r.id,void o(a.filter(function(n){return n.id!==e}));var e}},{children:"✕"}))]}),r.id)}),n.jsx("input",{type:"text",value:p,placeholder:"Search users...",onChange:function(e){return c(e.target.value)},style:{border:"none",outline:"none",flex:1,minWidth:"150px",fontSize:"12px"}})]})),f.length>0&&n.jsx("div",e.__assign({style:{border:"1px solid #CBD5E1",borderRadius:"8px",marginTop:"8px"}},{children:f.map(function(r){return n.jsxs("div",e.__assign({style:{padding:"8px",cursor:"pointer"},onClick:function(){return function(n){var r,i;a.some(function(e){return e.id===n.id})||(o(e.__spreadArray(e.__spreadArray([],a,!0),[e.__assign(e.__assign({},n),{accessLevel:null!==(i=null===(r=l[0])||void 0===r?void 0:r.label)&&void 0!==i?i:""})],!1)),c(""),g([]))}(r)}},{children:[r.name,r.email&&n.jsx("span",e.__assign({style:{marginLeft:"8px",color:"#6B7280",fontSize:"11px"}},{children:r.email}))]}),r.id)})}))]}))};
|
|
2
2
|
//# sourceMappingURL=LevelData.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.DEFAULT_ASSIGN_REMINDER_STYLES={header:{display:"flex",fontSize:"
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.DEFAULT_ASSIGN_REMINDER_STYLES={header:{display:"flex",fontSize:"17px",alignItems:"center",gap:10},finalApprovalBox:{display:"flex",padding:"15px",border:"1px solid #F3F4F6",backgroundColor:"#FFFFFF",alignItems:"center"},currentApprovalFlow:{backgroundColor:"#F9FAFB",border:"1px solid #E5E7EB",borderRadius:"10px",padding:"12px",display:"flex",flexDirection:"column",gap:"8px"},addLevelBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"10px",backgroundColor:"#F3F4F6",color:"#374151",border:"1px dashed #D1D5DB",borderRadius:"8px",cursor:"pointer",fontSize:"14px",fontWeight:500,transition:"all 0.2s ease"},dateInputWrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"110px",height:"30px",padding:"0 12px",border:"2px solid #cfd6df",borderRadius:"8px",position:"relative"},dateInput:{position:"absolute",inset:0,opacity:0,cursor:"pointer",zIndex:100},requiredToggle:{position:"relative",width:"110px",height:"28px",border:"none",borderRadius:"999px",background:"#e2e8f0",cursor:"pointer",transition:"all 0.2s ease",display:"flex",alignItems:"center",padding:0},requiredToggleActive:{background:"#eef2ff"},toggleThumb:{position:"absolute",left:"4px",width:"20px",height:"20px",borderRadius:"50%",background:"#fff",transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.15)"},toggleThumbActive:{transform:"translateX(82px)"},toggleLabel:{width:"100%",textAlign:"center",fontSize:"12px",fontWeight:500,color:"#64748b",transition:"color 0.2s ease"},toggleLabelActive:{color:"#4F46E5"},infoIconWrapper:{position:"relative",display:"inline-flex",alignItems:"center",cursor:"pointer"},tooltip:{position:"absolute",bottom:"125%",left:"50%",transform:"translateX(-30%)",background:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",whiteSpace:"nowrap",fontSize:"12px",opacity:0,visibility:"hidden",transition:"opacity 0.2s ease",zIndex:1e3},tooltipVisible:{opacity:1,visibility:"visible"}};
|
|
2
2
|
//# sourceMappingURL=AssignReminderStyles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as n,Fragment as o}from"react/jsx-runtime";import{useMemo as i,useState as r}from"react";import{Check as
|
|
1
|
+
import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as n,Fragment as o}from"react/jsx-runtime";import{useMemo as i,useState as r}from"react";import{Check as a,Edit2 as l,ChevronDown as s}from"lucide-react";import{getRandomColorPair as d}from"./utils/generateRandomColorsPair.js";import p from"./assets/VerticalLine.js";import c from"./components/AssignLevelsDatePicker.js";import u from"./components/LevelData.js";function g(g){var f,h,x=g.level,y=g.id,m=g.accessLevelOptions,b=g.fetchUsers,v=g.onToggleMandatory,k=g.onDueDateChange,C=g.onAssigneesChange,D=g.onTitleChange;g.onDeleteLevel;var F=i(function(){return d()},[]),w=r(!1),L=w[0],S=w[1],B=r(!1),j=B[0],z=B[1];return t("div",e({style:{width:"100%",border:"1.5px solid #E2E8F0",borderRadius:"5px"}},{children:[t("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#F8FAFC",padding:"0px 10px",minHeight:"48px"}},{children:[t("span",e({style:{display:"flex",alignItems:"center",gap:10,paddingLeft:"20px"}},{children:[n("span",e({style:{backgroundColor:F.backgroundColor,borderRadius:"10px",padding:"3px 12px",color:F.color,fontSize:"13px",fontWeight:500}},{children:x.headerName})),t("div",e({style:{display:"flex",alignItems:"center",gap:"6px"}},j?{children:[n("input",{type:"text",value:x.title||"",onChange:function(e){return null==D?void 0:D(e.target.value)},onBlur:function(){return z(!1)},onKeyDown:function(e){return"Enter"===e.key&&z(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"13px",fontWeight:500,color:"#374151",background:"transparent",padding:"0 2px",width:"150px"}}),n("button",e({type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),z(!1)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"}},{children:n(a,{size:16,color:"#10B981"})}))]}:{children:[n("span",e({style:{fontSize:"13px",fontWeight:500,color:"#374151"}},{children:x.title})),n("button",e({type:"button",onClick:function(e){e.stopPropagation(),z(!0)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"},title:"Edit Title"},{children:n(l,{size:14,color:"#6B7280"})}))]}))]})),t("div",e({style:{display:"flex",alignItems:"center",gap:16,marginLeft:"auto"}},{children:[L&&x.hasDueDate&&t(o,{children:[t("span",e({style:{color:"#6B7280"}},{children:["Due Date: ",x.isMandatory&&n("sup",e({style:{color:"red"}},{children:"*"}))]})),n(c,{value:null!==(f=x.dueDate)&&void 0!==f?f:null,onSet:k,id:y}),n(p,{})]}),n("div",e({style:{display:"flex",alignItems:"center"}},{children:t("button",e({type:"button",onClick:v,disabled:"0"===y,style:{position:"relative",width:"88px",height:"26px",border:"none",borderRadius:"999px",backgroundColor:x.isMandatory?"#5B4FE9":"#D1D5DB",cursor:"pointer",opacity:"0"===y?"50%":"100%",display:"flex",alignItems:"center",padding:"0 10px",transition:"all 0.2s ease",flexShrink:0}},{children:[n("span",{style:{position:"absolute",top:"3px",left:x.isMandatory?"65px":"3px",width:"20px",height:"20px",borderRadius:"50%",background:"#FFF",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.15)"}}),n("span",e({style:{color:"#FFF",fontSize:"10px",fontWeight:500,userSelect:"none",paddingLeft:x.isMandatory?"0":"18px",paddingRight:x.isMandatory?"18px":"0"}},{children:"Required"}))]}))})),n(s,{size:20,onClick:function(e){e.stopPropagation(),S(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:L?"rotate(180deg)":"rotate(0deg)"}})]}))]})),L&&n("div",e({style:{width:"100%",height:"auto"}},{children:n(u,{assignees:null!==(h=x.assignees)&&void 0!==h?h:[],onAssigneeChange:C,accessLevelOptions:m,fetchUsers:b})}))]}))}export{g as default};
|
|
2
2
|
//# sourceMappingURL=AssignLevelAccordions.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e
|
|
1
|
+
import{__assign as e}from"../../_virtual/_tslib.js";import{jsx as n,jsxs as t}from"react/jsx-runtime";import i from"react";import{PenLine as r,UserRoundCheck as l,Bell as o,InfoIcon as a,ArrowRight as s,CheckSquare as u,User as c,FileCheck as d,Edit2 as p}from"lucide-react";import f from"./AssignLevelAccordions.js";import v from"./components/CustomCheckbox.js";import h from"./assets/FileCheckCorner.js";import{DEFAULT_ASSIGN_REMINDER_STYLES as m}from"./styles/AssignReminderStyles.js";var g=function(e){switch(e){case 0:return n(p,{size:16});case 1:return n(d,{size:16});case 2:return n(c,{size:16});default:return n(u,{size:16})}},y=[{label:"Edit",icon:n(r,{size:14})},{label:"Approve",icon:n(l,{size:14})},{label:"Edit & Approve",icon:n(h,{})},{label:"Notify",icon:n(o,{size:14})}];function x(r){var l=r.title,o=r.levels,u=void 0===o?[]:o,c=r.requireFinalApproval,d=void 0!==c&&c,p=r.additionalInfo,h=r.setLevels,x=r.setRequireFinalApproval,A=r.fetchUsers,b=r.accessLevelOptions,L=void 0===b?y:b,z=r.customInfoIcon,w=r.onValidationError,D=r.customStyles,C=r.totalLevels,F=i.useState(!1),j=F[0],I=F[1],M=i.useMemo(function(){return Array.from({length:null!=C?C:3},function(e,n){var t;return null!==(t=u[n])&&void 0!==t?t:{title:"Level ".concat(n+1),headerName:"L ".concat(n+1),isMandatory:!1,dueDate:null,assignees:[],hasDueDate:!0}})},[u,C]);return t("div",e({style:{padding:"8px",display:"flex",flexDirection:"column",gap:"18px"}},{children:[t("span",e({style:e(e({},m.header),null==D?void 0:D.header)},{children:[n("span",{children:null!=l?l:"Assignee Levels"}),t("div",e({style:m.infoIconWrapper,onMouseEnter:function(){return I(!0)},onMouseLeave:function(){return I(!1)}},{children:[null!=z?z:n(a,{width:18,height:18}),n("div",e({style:e(e({},m.tooltip),j?m.tooltipVisible:{})},{children:p||t("span",{children:[n("b",{children:"How it works:"}),n("br",{}),"Level 1 is required by default, Enable Level 2 and Level 3 to add sequential approval steps for the review"]})}))]}))]})),n("div",e({style:{display:"flex",flexDirection:"column",gap:"16px"}},{children:(u.length>0?u:M).map(function(t,i){return n(f,{level:t,id:String(i),accessLevelOptions:L,fetchUsers:A,onToggleMandatory:function(){return n=i,void(null==h||h(function(t){return t.map(function(t,i){return i===n?e(e({},t),{isMandatory:!t.isMandatory}):t})}));var n},onDueDateChange:function(n){return function(n,t){var i;if(n>0&&t){var r=null===(i=u[n-1])||void 0===i?void 0:i.dueDate;if(r&&t<r)return void(null==w||w("Level ".concat(n+1," due date cannot be before Level ").concat(n," due date")))}null==h||h(function(i){return i.map(function(i,r){return r===n?e(e({},i),{dueDate:t}):i})})}(i,n)},onAssigneesChange:function(n){return t=i,r=n,void(null==h||h(function(n){return n.map(function(n,i){return i===t?e(e({},n),{assignees:r}):n})}));var t,r},onTitleChange:function(n){return function(n,t){null==h||h(function(i){return i.map(function(i,r){return r===n?e(e({},i),{title:t}):i})})}(i,n)}},i)})})),t("div",e({style:m.finalApprovalBox},{children:[n(v,{getter:d,setter:null!=x?x:function(){}}),t("div",e({style:{display:"flex",flexDirection:"column",alignItems:"baseline",fontSize:"14px",fontWeight:400}},{children:[n("span",e({style:{fontWeight:500}},{children:"Require Final Approval"})),n("span",{children:"After all assignees approve, you (the owner) will be notified to give final sign-off before the redline is settled."})]}))]})),t("div",e({style:m.currentApprovalFlow},{children:[n("span",e({style:{fontSize:"14px",fontWeight:600}},{children:"Current Approval Flow"})),n("div",e({style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginTop:"4px"}},{children:u.map(function(r,l){var o,a=(null===(o=r.assignees)||void 0===o?void 0:o.map(function(e){return e.name}).join(", "))||"No users assigned",c=r.title||"Level ".concat(l+1);return t(i.Fragment,{children:[t("div",e({style:{display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",fontWeight:500,color:"#374151"},title:c},{children:[g(l),n("span",{children:a})]})),l<u.length-1&&n(s,{size:16,color:"#9CA3AF"})]},l)})}))]}))]}))}export{x as AssignReminderLevels};
|
|
2
2
|
//# sourceMappingURL=AssignReminderLevels.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as r,jsx as i,Fragment as t}from"react/jsx-runtime";import{Bell as l,ClipboardList as a,X as n,CircleAlert as o}from"lucide-react";import{useState as s}from"react";import{AssignReminderLevels as d}from"./AssignReminderLevels.js";import{INITIAL_LEVELS as c,mockFetchUsers as p}from"./AssignReminderTest.js";import v from"./components/ReviewStatus.js";import u from"./components/CustomDatePicker.js";import{DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES as m}from"./styles/AssignReminderWrapperStyles.js";var h=[{tabName:"Assignees & Approvers",tabIcon:r("svg",e({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2"},{children:[i("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),i("circle",{cx:"9",cy:"7",r:"4"}),i("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),i("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}))},{tabName:"Manage Reminders",tabIcon:i(l,{size:15})},{tabName:"Review Status",tabIcon:i(a,{size:15})}];function y(a){var y,b,f=a.metadata,D=void 0===f?{}:f,g=a.reviewData,A=void 0===g?{}:g,C=a.levels,w=a.setLevels,R=a.requireFinalApproval,S=a.setRequireFinalApproval,B=a.approvalDueDate,
|
|
1
|
+
import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as r,jsx as i,Fragment as t}from"react/jsx-runtime";import{Bell as l,ClipboardList as a,X as n,CircleAlert as o}from"lucide-react";import{useState as s}from"react";import{AssignReminderLevels as d}from"./AssignReminderLevels.js";import{INITIAL_LEVELS as c,mockFetchUsers as p}from"./AssignReminderTest.js";import v from"./components/ReviewStatus.js";import u from"./components/CustomDatePicker.js";import{DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES as m}from"./styles/AssignReminderWrapperStyles.js";var h=[{tabName:"Assignees & Approvers",tabIcon:r("svg",e({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2"},{children:[i("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),i("circle",{cx:"9",cy:"7",r:"4"}),i("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),i("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}))},{tabName:"Manage Reminders",tabIcon:i(l,{size:15})},{tabName:"Review Status",tabIcon:i(a,{size:15})}];function y(a){var y,b,f=a.metadata,D=void 0===f?{}:f,g=a.reviewData,A=void 0===g?{}:g,C=a.levels,w=a.setLevels,R=a.requireFinalApproval,S=a.setRequireFinalApproval,B=a.approvalDueDate,L=a.setApprovalDueDate,N=a.onClose,k=a.fetchUsers,F=a.onSave,T=a.onValidationError,j=a.totalLevels,q=(null===(y=D.tabData)||void 0===y?void 0:y.length)?D.tabData:h,I=s(q[0].tabName),z=I[0],x=I[1],M=(b=z.toLowerCase()).includes("reminder")?"reminders":b.includes("review")?"review":"assignees",P=s(C||c),W=P[0],E=P[1],H=s(R||!1),U=H[0],V=H[1],_=s(B||null),O=_[0],G=_[1],J=w&&C?C:W,K=w||E,Q=S&&void 0!==R?R:U,X=S||V,Y=L&&void 0!==B?B:O,Z=L||G,$=D.wrapperTitle||"Assign Redline and Manage Reminders",ee=D.wrapperSubTitle||"Sec 4.1 - Technical Security Information",re=D.wrapperPriority||"High",ie=D.wrapperPriorityStyles||{backgroundColor:"#DC262618",color:"#DC2626",border:"1px solid #DC262640"};return i("div",e({style:m.overlay},{children:r("div",e({style:m.modal},{children:[r("div",e({style:m.header},{children:[r("div",e({style:m.headerLeft},{children:[i("span",e({style:m.modalTitle},{children:$})),r("div",e({style:m.redlineRow},{children:[i("span",e({style:m.redlineName},{children:ee})),i("span",e({style:e(e({},m.redlineBadge),ie)},{children:re}))]}))]})),i("button",e({style:m.closeBtn,onClick:N},{children:i(n,{size:20,color:"#6B7280"})}))]})),i("div",e({style:m.tabBar},{children:q.map(function(i){return r("button",e({style:e(e({},m.tab),z===i.tabName?m.tabActive:{}),onClick:function(){return x(i.tabName)}},{children:[i.tabIcon," ",i.tabName]}),i.tabName)})})),r("div",e({style:m.body},{children:["assignees"===M&&r(t,{children:[!1!==D.showFinalApprovalDueDate&&r("div",e({style:m.dueDateBar},{children:[r("span",e({style:m.dueDateLabel},{children:["Final Approval due date ",i("sup",e({style:{color:"#DC2626",marginLeft:2}},{children:"*"}))]})),i("div",e({style:m.dueDateInputWrap},{children:i(u,{value:Y?Y.toISOString().slice(0,10):"",onChange:Z})})),r("span",e({style:m.requiredToProceeed},{children:[i(o,{size:14,color:"#6B7280"})," Required to proceed"]}))]})),i(d,{levels:J,totalLevels:j,requireFinalApproval:Q,setLevels:K,setRequireFinalApproval:X,fetchUsers:k||p,onValidationError:T})]}),"reminders"===M&&r("div",e({style:m.reminderPlaceholder},{children:[i(l,{size:32,color:"#D1D5DB"}),i("p",e({style:{color:"#9CA3AF",marginTop:12,fontSize:14}},{children:"Reminder settings coming soon…"}))]})),"review"===M&&i(v,{levels:J,reviewData:A})]})),r("div",e({style:m.footer},{children:[i("button",e({style:m.clearBtn,onClick:function(){K(c.map(function(r){return e(e({},r),{assignees:[],dueDate:null})})),X(!1),Z(null),null==N||N()}},{children:"Clear"})),i("button",e({style:m.saveBtn,onClick:function(){null==F||F({levels:J,requireFinalApproval:Q,finalApprovalDueDate:Y,activeTab:M})}},{children:"Save Changes"}))]}))]}))}))}export{y as AssignReminderWrapper};
|
|
2
2
|
//# sourceMappingURL=AssignReminderWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{Check as i}from"lucide-react";function n(n){var o=n.getter,c=n.setter;return t("label",e({style:{width:"28px",height:"18px",cursor:"pointer",display:"inline-flex",
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{Check as i}from"lucide-react";function n(n){var o=n.getter,c=n.setter;return t("label",e({style:{width:"28px",height:"18px",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center"}},{children:[r("input",{type:"checkbox",checked:o,onChange:function(e){return c(e.target.checked)},style:{display:"none"}}),r("span",e({style:{width:"18px",height:"18px",border:"2px solid ".concat(o?"#7C3AED":"#CBD5E1"),borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#fff"}},{children:o&&r(i,{size:12,color:"#7C3AED",strokeWidth:3})}))]}))}export{n as default};
|
|
2
2
|
//# sourceMappingURL=CustomCheckbox.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as n,__assign as r,__spreadArray as i}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as a,useEffect as l}from"react";import s from"./CustomDropdown.js";function d(d){var u=this,p=d.assignees,c=d.onAssigneeChange,f=d.accessLevelOptions,x=d.fetchUsers,m=a(""),v=m[0],g=m[1],h=a([]),b=h[0],y=h[1];l(function(){if(v.trim()){var r=setTimeout(function(){return e(u,void 0,void 0,function(){var e,r,i;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,x(v)];case 1:return e=n.sent(),r=new Set(p.map(function(e){return e.id})),y(e.filter(function(e){return!r.has(e.id)})),[3,3];case 2:return i=n.sent(),console.error("[LevelData]: fetchUser error:
|
|
1
|
+
import{__awaiter as e,__generator as n,__assign as r,__spreadArray as i}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as a,useEffect as l}from"react";import s from"./CustomDropdown.js";function d(d){var u=this,p=d.assignees,c=d.onAssigneeChange,f=d.accessLevelOptions,x=d.fetchUsers,m=a(""),v=m[0],g=m[1],h=a([]),b=h[0],y=h[1];l(function(){if(v.trim()){var r=setTimeout(function(){return e(u,void 0,void 0,function(){var e,r,i;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,x(v)];case 1:return e=n.sent(),r=new Set(p.map(function(e){return e.id})),y(e.filter(function(e){return!r.has(e.id)})),[3,3];case 2:return i=n.sent(),console.error("[LevelData]: fetchUser error:",i),y([]),[3,3];case 3:return[2]}})})},300);return function(){return clearTimeout(r)}}y([])},[v,p]);return t("div",r({style:{borderTop:"1px solid #CBD5E1",padding:"20px"}},{children:[o("span",r({style:{fontWeight:600,marginBottom:"8px",fontSize:"14px"}},{children:"Assignee Emails"})),t("div",r({style:{border:"1px solid #CBD5E1",borderRadius:"8px",padding:"8px",marginTop:"10px",display:"flex",flexWrap:"wrap",gap:"8px",alignItems:"center"}},{children:[p.map(function(e){var n,i,a;return t("div",r({style:{display:"flex",alignItems:"center",gap:"6px",background:"#E9D5FF",borderRadius:"10px",padding:"2px 8px",fontSize:"12px"}},{children:[o("span",r({style:{padding:"4px"}},{children:e.name})),o(s,{value:null!==(a=null!==(n=e.accessLevel)&&void 0!==n?n:null===(i=f[0])||void 0===i?void 0:i.label)&&void 0!==a?a:"",options:f,onChange:function(n){return i=e.id,t=n,void c(p.map(function(e){return e.id===i?r(r({},e),{accessLevel:t}):e}));var i,t}}),o("button",r({style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",fontSize:"12px"},onClick:function(){return n=e.id,void c(p.filter(function(e){return e.id!==n}));var n}},{children:"✕"}))]}),e.id)}),o("input",{type:"text",value:v,placeholder:"Search users...",onChange:function(e){return g(e.target.value)},style:{border:"none",outline:"none",flex:1,minWidth:"150px",fontSize:"12px"}})]})),b.length>0&&o("div",r({style:{border:"1px solid #CBD5E1",borderRadius:"8px",marginTop:"8px"}},{children:b.map(function(e){return t("div",r({style:{padding:"8px",cursor:"pointer"},onClick:function(){return function(e){var n,t;p.some(function(n){return n.id===e.id})||(c(i(i([],p,!0),[r(r({},e),{accessLevel:null!==(t=null===(n=f[0])||void 0===n?void 0:n.label)&&void 0!==t?t:""})],!1)),g(""),y([]))}(e)}},{children:[e.name,e.email&&o("span",r({style:{marginLeft:"8px",color:"#6B7280",fontSize:"11px"}},{children:e.email}))]}),e.id)})}))]}))}export{d as default};
|
|
2
2
|
//# sourceMappingURL=LevelData.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={header:{display:"flex",fontSize:"
|
|
1
|
+
var e={header:{display:"flex",fontSize:"17px",alignItems:"center",gap:10},finalApprovalBox:{display:"flex",padding:"15px",border:"1px solid #F3F4F6",backgroundColor:"#FFFFFF",alignItems:"center"},currentApprovalFlow:{backgroundColor:"#F9FAFB",border:"1px solid #E5E7EB",borderRadius:"10px",padding:"12px",display:"flex",flexDirection:"column",gap:"8px"},addLevelBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"10px",backgroundColor:"#F3F4F6",color:"#374151",border:"1px dashed #D1D5DB",borderRadius:"8px",cursor:"pointer",fontSize:"14px",fontWeight:500,transition:"all 0.2s ease"},dateInputWrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"110px",height:"30px",padding:"0 12px",border:"2px solid #cfd6df",borderRadius:"8px",position:"relative"},dateInput:{position:"absolute",inset:0,opacity:0,cursor:"pointer",zIndex:100},requiredToggle:{position:"relative",width:"110px",height:"28px",border:"none",borderRadius:"999px",background:"#e2e8f0",cursor:"pointer",transition:"all 0.2s ease",display:"flex",alignItems:"center",padding:0},requiredToggleActive:{background:"#eef2ff"},toggleThumb:{position:"absolute",left:"4px",width:"20px",height:"20px",borderRadius:"50%",background:"#fff",transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.15)"},toggleThumbActive:{transform:"translateX(82px)"},toggleLabel:{width:"100%",textAlign:"center",fontSize:"12px",fontWeight:500,color:"#64748b",transition:"color 0.2s ease"},toggleLabelActive:{color:"#4F46E5"},infoIconWrapper:{position:"relative",display:"inline-flex",alignItems:"center",cursor:"pointer"},tooltip:{position:"absolute",bottom:"125%",left:"50%",transform:"translateX(-30%)",background:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",whiteSpace:"nowrap",fontSize:"12px",opacity:0,visibility:"hidden",transition:"opacity 0.2s ease",zIndex:1e3},tooltipVisible:{opacity:1,visibility:"visible"}};export{e as DEFAULT_ASSIGN_REMINDER_STYLES};
|
|
2
2
|
//# sourceMappingURL=AssignReminderStyles.js.map
|
package/dist/types/App.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AssigneeUser } from './components/AssignReminders/types/types';
|
|
3
|
-
export declare const mockFetchUsers: (query: string) => Promise<AssigneeUser[]>;
|
|
4
2
|
declare function App(): React.JSX.Element;
|
|
5
3
|
export default App;
|
|
6
4
|
//# sourceMappingURL=App.d.ts.map
|
package/dist/types/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAyE1B,iBAAS,GAAG,sBAeX;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssignLevelAccordions.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignLevelAccordions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAKpD,UAAU,2BAA4B,SAAQ,mBAAmB;IAC7D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACnC,KAAK,EACL,EAAE,EACF,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,aAAa,EAChB,EAAE,2BAA2B,
|
|
1
|
+
{"version":3,"file":"AssignLevelAccordions.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignLevelAccordions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAKpD,UAAU,2BAA4B,SAAQ,mBAAmB;IAC7D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACnC,KAAK,EACL,EAAE,EACF,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,aAAa,EAChB,EAAE,2BAA2B,qBAyJ7B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AssignReminderLevelsProps } from "./types/types";
|
|
3
|
-
declare function AssignReminderLevels({ title, levels, requireFinalApproval, additionalInfo, setLevels, setRequireFinalApproval, fetchUsers, accessLevelOptions, customInfoIcon, onValidationError, customStyles }: AssignReminderLevelsProps): React.JSX.Element;
|
|
3
|
+
declare function AssignReminderLevels({ title, levels, requireFinalApproval, additionalInfo, setLevels, setRequireFinalApproval, fetchUsers, accessLevelOptions, customInfoIcon, onValidationError, customStyles, totalLevels, }: AssignReminderLevelsProps): React.JSX.Element;
|
|
4
4
|
export { AssignReminderLevels };
|
|
5
5
|
//# sourceMappingURL=AssignReminderLevels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssignReminderLevels.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderLevels.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,yBAAyB,EAAS,MAAM,eAAe,CAAC;AAqBjE,iBAAS,oBAAoB,CAAC,EAC1B,KAAK,EACL,MAAW,EACX,oBAA4B,EAC5B,cAAc,EACd,SAAS,EACT,uBAAuB,EACvB,UAAU,EACV,kBAAiD,EACjD,cAAc,EACd,iBAAiB,EACjB,YAAY,
|
|
1
|
+
{"version":3,"file":"AssignReminderLevels.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderLevels.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,yBAAyB,EAAS,MAAM,eAAe,CAAC;AAqBjE,iBAAS,oBAAoB,CAAC,EAC1B,KAAK,EACL,MAAW,EACX,oBAA4B,EAC5B,cAAc,EACd,SAAS,EACT,uBAAuB,EACvB,UAAU,EACV,kBAAiD,EACjD,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,WAAW,GACd,EAAE,yBAAyB,qBA+M3B;AAED,OAAO,EAAC,oBAAoB,EAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AssignReminderWrapperProps } from "./types/types";
|
|
3
|
-
declare function AssignReminderWrapper({ metadata, reviewData, levels, setLevels, requireFinalApproval, setRequireFinalApproval, approvalDueDate, setApprovalDueDate, onClose, fetchUsers, onSave, onValidationError, }: AssignReminderWrapperProps): React.JSX.Element;
|
|
3
|
+
declare function AssignReminderWrapper({ metadata, reviewData, levels, setLevels, requireFinalApproval, setRequireFinalApproval, approvalDueDate, setApprovalDueDate, onClose, fetchUsers, onSave, onValidationError, totalLevels, }: AssignReminderWrapperProps): React.JSX.Element;
|
|
4
4
|
export { AssignReminderWrapper };
|
|
5
5
|
//# sourceMappingURL=AssignReminderWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssignReminderWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAE,0BAA0B,EAAyB,MAAM,eAAe,CAAC;AAmBlF,iBAAS,qBAAqB,CAAC,EAC3B,QAAa,EACb,UAAe,EACf,MAAM,EACN,SAAS,EACT,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,UAAU,EACV,MAAM,EACN,iBAAiB,
|
|
1
|
+
{"version":3,"file":"AssignReminderWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAE,0BAA0B,EAAyB,MAAM,eAAe,CAAC;AAmBlF,iBAAS,qBAAqB,CAAC,EAC3B,QAAa,EACb,UAAe,EACf,MAAM,EACN,SAAS,EACT,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,UAAU,EACV,MAAM,EACN,iBAAiB,EACjB,WAAW,GACd,EAAE,0BAA0B,qBA6I5B;AAED,OAAO,EAAC,qBAAqB,EAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomCheckbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/CustomCheckbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,mBAAmB;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACnC,MAAM,EACN,MAAM,GACT,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"CustomCheckbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/CustomCheckbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,mBAAmB;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACnC,MAAM,EACN,MAAM,GACT,EAAE,mBAAmB,qBAyCrB"}
|
|
@@ -44,6 +44,7 @@ export interface AssignReminderWrapperProps {
|
|
|
44
44
|
metadata?: MetaData;
|
|
45
45
|
reviewData?: Record<number, Record<string, boolean>>;
|
|
46
46
|
levels?: Level[];
|
|
47
|
+
totalLevels?: number;
|
|
47
48
|
requireFinalApproval?: boolean;
|
|
48
49
|
approvalDueDate?: Date | null;
|
|
49
50
|
fetchUsers: FetchUsersFunction;
|
|
@@ -66,6 +67,7 @@ export interface AssignReminderLevelsProps {
|
|
|
66
67
|
onValidationError?: (message: string) => void;
|
|
67
68
|
customInfoIcon?: React.ReactNode;
|
|
68
69
|
customStyles?: CustomStyle;
|
|
70
|
+
totalLevels?: number;
|
|
69
71
|
}
|
|
70
72
|
export interface LevelAccordionProps {
|
|
71
73
|
level: Level;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEzD,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,GAAG,CAAC;IACR,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,KAAK;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC9B;AAED,MAAM,MAAM,cAAc,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,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,cAAc,EAAE,CAAC;IACtC,iBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,EAAE,cAAc,EAAE,CAAC;IACrC,UAAU,EAAE,kBAAkB,CAAC;IAC/B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,eAAe,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,iBAAiB,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;CAC1D;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,gBAAgB,EAAE,sBAAsB,EAAE,CAAC;IAC3C,MAAM,EAAE,cAAc,CAAC;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACxD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viswa-test/creative-workspace-ui-component",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"author": "Viswa Koduru",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"start": "
|
|
27
|
+
"start": "craco start",
|
|
28
28
|
"build": "rollup -c && npm run copy:styles",
|
|
29
29
|
"copy:styles": "mkdir -p dist/features/lsc-guidelines dist/cjs/features/lsc-guidelines && cp src/features/lsc-guidelines/theme.css dist/features/lsc-guidelines/theme.css && cp src/features/lsc-guidelines/theme.css dist/cjs/features/lsc-guidelines/theme.css",
|
|
30
30
|
"tsupBuild": "tsup src/index.ts",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@babel/plugin-transform-runtime": "^7.25.9",
|
|
96
96
|
"@babel/preset-react": "7.26.3",
|
|
97
97
|
"@babel/preset-typescript": "7.26.0",
|
|
98
|
-
"@e-llm-studio/requirement-ai": "^0.0.
|
|
98
|
+
"@e-llm-studio/requirement-ai": "^0.0.173",
|
|
99
99
|
"@rollup/plugin-commonjs": "28.0.2",
|
|
100
100
|
"@rollup/plugin-json": "6.1.0",
|
|
101
101
|
"@rollup/plugin-node-resolve": "13.3.0",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"typescript": "4.9.5"
|
|
123
123
|
},
|
|
124
124
|
"peerDependencies": {
|
|
125
|
-
"@e-llm-studio/requirement-ai": "^0.0.
|
|
125
|
+
"@e-llm-studio/requirement-ai": "^0.0.173",
|
|
126
126
|
"lucide-react": "^0.474.0",
|
|
127
127
|
"primeicons": "^7.0.0",
|
|
128
128
|
"primereact": "^10.9.7",
|