Add project with dist
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
import{u as p,r as n,j as e,L as a,f as l}from"./index-kE4_6-nI.js";import{M as r,C as x,P as u}from"./DashboardParts-nkkWHQei.js";import{P as j}from"./PageHeader-BIrj68Xg.js";import{S as m}from"./StatusBadge-B-6mWO83.js";import{R as b,B as f,C as g,X as y,Y as v,T as A,a as R}from"./BarChart-DxUPBeMP.js";const P=[{territorio:"RD",monto:18400},{territorio:"PA",monto:12600},{territorio:"CO",monto:9800},{territorio:"GT",monto:7200},{territorio:"MX",monto:6100}];function k(){const{requisitions:o}=p(),[c,d]=n.useState("Pendientes"),t=n.useMemo(()=>o.filter(s=>s.status==="pendiente_administracion"),[o]),h=t.reduce((s,i)=>s+(i.currency==="USD"||i.currency==="PAB"?i.budget:i.budget/4e3),0);return e.jsxs("div",{className:"page-stack",children:[e.jsx(j,{eyebrow:"Vista financiera · Administración",title:"Decisiones de presupuesto",description:"Revisa el impacto económico y resuelve las solicitudes que ya validó RRHH.",actions:e.jsx(a,{className:"button button--primary",to:"/aprobaciones",children:"Revisar aprobaciones"})}),e.jsxs("section",{className:"metrics-grid metrics-grid--three",children:[e.jsx(r,{label:"Pendientes de decisión",value:t.length,note:"Validadas por RRHH",tone:"orange"}),e.jsx(r,{label:"Impacto estimado",value:l(h,"USD"),note:"Equivalente mensual"}),e.jsx(r,{label:"Tiempo de respuesta",value:"1.8 d",note:"Meta interna: ≤ 2 días",tone:"green"})]}),e.jsxs("div",{className:"dashboard-grid dashboard-grid--lead",children:[e.jsxs("section",{className:"data-panel approval-preview",children:[e.jsxs("header",{children:[e.jsxs("div",{children:[e.jsx("h2",{children:"Cola de aprobación"}),e.jsx("p",{children:"Ordenada por riesgo de SLA"})]}),e.jsx(a,{to:"/aprobaciones",children:"Abrir cola"})]}),e.jsx("div",{className:"table-wrap",children:e.jsxs("table",{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Requisición"}),e.jsx("th",{children:"Presupuesto"}),e.jsx("th",{children:"Estado"}),e.jsx("th",{children:e.jsx("span",{className:"sr-only",children:"Acción"})})]})}),e.jsx("tbody",{children:t.map(s=>e.jsxs("tr",{children:[e.jsx("td",{"data-label":"Requisición",children:e.jsxs(a,{to:`/requisiciones/${s.id}`,children:[e.jsx("strong",{children:s.position}),e.jsxs("small",{children:[s.id," · ",s.country]})]})}),e.jsx("td",{"data-label":"Presupuesto",children:l(s.budget,s.currency)}),e.jsx("td",{"data-label":"Estado",children:e.jsx(m,{status:s.status})}),e.jsx("td",{children:e.jsx(a,{className:"text-link",to:`/requisiciones/${s.id}`,children:"Revisar"})})]},s.id))})]})})]}),e.jsx(x,{title:"Impacto por territorio",description:"Equivalente mensual de paquetes abiertos",filter:e.jsx(u,{label:"Filtrar impacto",value:c,onChange:d,options:["Pendientes","Aprobados","Todos"]}),children:e.jsx("div",{className:"chart-height chart-height--compact",children:e.jsx(b,{width:"100%",height:"100%",children:e.jsxs(f,{data:P,layout:"vertical",margin:{top:8,right:18,bottom:0,left:-10},children:[e.jsx(g,{horizontal:!1,stroke:"#E4E8EA"}),e.jsx(y,{type:"number",axisLine:!1,tickLine:!1,tick:{fill:"#6B7780",fontSize:11}}),e.jsx(v,{type:"category",dataKey:"territorio",axisLine:!1,tickLine:!1,tick:{fill:"#4A4A4A",fontSize:11},width:35}),e.jsx(A,{contentStyle:{border:"1px solid #D0D0D0",borderRadius:4,fontFamily:"Arial"}}),e.jsx(R,{dataKey:"monto",fill:"#4F758B"})]})})})})]}),e.jsxs("section",{className:"policy-strip",children:[e.jsx("span",{children:"REGLA"}),e.jsx("strong",{children:"Administración solo recibe solicitudes aprobadas por RRHH."}),e.jsx("p",{children:"Una decisión actualiza la auditoría y notifica al solicitante."})]})]})}export{k as default};
|
||||
+1
File diff suppressed because one or more lines are too long
Vendored
+55
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{j as e}from"./index-kE4_6-nI.js";function i({label:s,value:a,note:r,tone:n="blue"}){return e.jsxs("article",{className:`metric metric--${n}`,children:[e.jsx("span",{className:"metric__line","aria-hidden":"true"}),e.jsx("p",{children:s}),e.jsx("strong",{children:a}),e.jsx("small",{children:r})]})}function t({title:s,description:a,filter:r,children:n,className:l=""}){return e.jsxs("section",{className:`chart-panel ${l}`,children:[e.jsxs("header",{className:"chart-panel__header",children:[e.jsxs("div",{children:[e.jsx("h2",{children:s}),e.jsx("p",{children:a})]}),e.jsx("div",{className:"chart-panel__filter",children:r})]}),e.jsx("div",{className:"chart-panel__body",children:n})]})}function h({label:s,value:a,onChange:r,options:n}){return e.jsxs("label",{className:"compact-select",children:[e.jsx("span",{className:"sr-only",children:s}),e.jsx("select",{value:a,onChange:l=>r(l.target.value),"aria-label":s,children:n.map(l=>e.jsx("option",{value:l,children:l},l))})]})}function d({title:s,detail:a,action:r}){return e.jsxs("div",{className:"empty-state",children:[e.jsx("span",{"aria-hidden":"true",children:"00"}),e.jsx("h2",{children:s}),e.jsx("p",{children:a}),r]})}export{t as C,d as E,i as M,h as P};
|
||||
+1
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{r as i,j as e}from"./index-kE4_6-nI.js";function m({open:s,title:o,description:l,onClose:a,children:t,footer:n}){return i.useEffect(()=>{if(!s)return;const r=d=>{d.key==="Escape"&&a()};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[s,a]),s?e.jsx("div",{className:"modal-backdrop",role:"presentation",onMouseDown:a,children:e.jsxs("section",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",onMouseDown:r=>r.stopPropagation(),children:[e.jsxs("header",{className:"modal__header",children:[e.jsxs("div",{children:[e.jsx("p",{className:"eyebrow",children:"Acción registrada"}),e.jsx("h2",{id:"modal-title",children:o}),l?e.jsx("p",{children:l}):null]}),e.jsx("button",{className:"icon-button",type:"button",onClick:a,"aria-label":"Cerrar",children:"×"})]}),e.jsx("div",{className:"modal__body",children:t}),n?e.jsx("footer",{className:"modal__footer",children:n}):null]})}):null}export{m as M};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{u as d,r,j as s,L as f}from"./index-kE4_6-nI.js";import{E as u}from"./DashboardParts-nkkWHQei.js";import{P as x}from"./PageHeader-BIrj68Xg.js";function b(){const{notifications:t,markNotification:o}=d(),[a,c]=r.useState("todas"),e=r.useMemo(()=>t.filter(i=>a==="sin_leer"?!i.read:a==="sla"?i.kind==="sla":a==="accion"?i.kind==="accion":!0),[a,t]);return s.jsxs("div",{className:"page-stack",children:[s.jsx(x,{eyebrow:"Centro de actividad",title:"Notificaciones",description:"Todo lo que exige una decisión, sin mezclarlo con ruido operativo."}),s.jsx("div",{className:"status-tabs status-tabs--compact",role:"tablist","aria-label":"Filtrar notificaciones",children:[["todas","Todas"],["sin_leer","Sin leer"],["sla","SLA"],["accion","Acción requerida"]].map(([i,l])=>s.jsxs("button",{type:"button",role:"tab","aria-selected":a===i,className:a===i?"is-active":"",onClick:()=>c(i),children:[l,s.jsx("span",{children:t.filter(n=>i==="todas"||(i==="sin_leer"?!n.read:n.kind===i)).length})]},i))}),e.length===0?s.jsx(u,{title:"No hay notificaciones",detail:"Este filtro está al día."}):s.jsx("section",{className:"notification-list",children:e.map(i=>s.jsxs("article",{className:`notification notification--${i.kind}${i.read?" is-read":""}`,children:[s.jsxs("button",{type:"button",className:"notification__body",onClick:()=>o(i.id),children:[s.jsx("span",{className:"notification__signal","aria-hidden":"true"}),s.jsxs("div",{children:[s.jsxs("p",{children:[i.kind==="sla"?"SLA":i.kind==="accion"?"ACCIÓN":"SISTEMA"," · ",i.at]}),s.jsx("h2",{children:i.title}),s.jsx("span",{children:i.detail})]}),i.read?null:s.jsx("i",{"aria-label":"Sin leer"})]}),i.requisitionId?s.jsx(f,{to:`/requisiciones/${i.requisitionId}`,children:"Abrir caso →"}):null]},i.id))})]})}export{b as default};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{j as e}from"./index-kE4_6-nI.js";function c({eyebrow:a,title:r,description:d,actions:s}){return e.jsxs("header",{className:"page-header",children:[e.jsxs("div",{children:[e.jsx("p",{className:"eyebrow",children:a}),e.jsx("h1",{children:r}),e.jsx("p",{className:"page-header__description",children:d})]}),s?e.jsx("div",{className:"page-header__actions",children:s}):null]})}export{c as P};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{u,r as c,j as e,s as l,e as x,L as j,g}from"./index-kE4_6-nI.js";import{P as y}from"./PageHeader-BIrj68Xg.js";function v(){const{requisitions:r,advanceStage:d}=u(),[i,o]=c.useState("Todos"),p=c.useMemo(()=>r.filter(s=>s.status==="reclutando"&&(i==="Todos"||s.country===i)),[r,i]),h=[...new Set(r.filter(s=>s.status==="reclutando").map(s=>s.country))];return e.jsxs("div",{className:"page-stack pipeline-page",children:[e.jsx(y,{eyebrow:"Coordinación · Casos asignados",title:"Embudo de reclutamiento",description:"Actualiza la etapa; la duración y la auditoría se registran automáticamente.",actions:e.jsxs("label",{className:"header-select",children:[e.jsx("span",{children:"Territorio"}),e.jsxs("select",{value:i,onChange:s=>o(s.target.value),children:[e.jsx("option",{children:"Todos"}),h.map(s=>e.jsx("option",{children:s},s))]})]})}),e.jsx("section",{className:"pipeline","aria-label":"Etapas de reclutamiento",children:l.map((s,n)=>{const t=p.filter(a=>a.stage===s);return e.jsxs("div",{className:"pipeline-lane",children:[e.jsxs("header",{children:[e.jsx("span",{children:String(n+1).padStart(2,"0")}),e.jsx("h2",{children:x[s]}),e.jsx("b",{children:t.length})]}),e.jsxs("div",{className:"pipeline-lane__body",children:[t.map(a=>e.jsxs("article",{className:`pipeline-card signal-${g(a)}`,children:[e.jsxs("p",{children:[a.id," · Tier ",a.tier]}),e.jsx("h3",{children:a.position}),e.jsxs("span",{children:[a.city,", ",a.country]}),e.jsxs("dl",{children:[e.jsxs("div",{children:[e.jsx("dt",{children:"Vacantes"}),e.jsx("dd",{children:a.quantity})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Responsable"}),e.jsx("dd",{children:a.recruiter??"Sin asignar"})]})]}),e.jsxs("div",{children:[e.jsx(j,{to:`/requisiciones/${a.id}`,children:"Ver expediente"}),e.jsx("button",{type:"button",disabled:n===l.length-1,onClick:()=>d(a.id),children:n===l.length-1?"Cerrada":"Avanzar →"})]})]},a.id)),t.length===0?e.jsx("p",{className:"pipeline-empty",children:"Sin casos en esta etapa."}):null]})]},s)})})]})}export{v as default};
|
||||
Vendored
+1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{u as b,r as l,j as s,L as n,c as g,g as m,b as v}from"./index-kE4_6-nI.js";import{E as y}from"./DashboardParts-nkkWHQei.js";import{P as q}from"./PageHeader-BIrj68Xg.js";import{S as f}from"./StatusBadge-B-6mWO83.js";const x=[{label:"Todas",status:"all"},{label:"Borradores",status:"borrador"},{label:"Correcciones",status:"correccion"},{label:"Pendiente de RRHH",status:"pendiente_rrhh"},{label:"Pendiente de Administración",status:"pendiente_administracion"},{label:"Aprobadas",status:"aprobada"},{label:"Reclutamiento activo",status:"reclutando"},{label:"Cerradas",status:"cerrada"}];function E({ownOnly:r=!1}){const{requisitions:o,role:u}=b(),[i,h]=l.useState("all"),[t,j]=l.useState("Todos"),[c,p]=l.useState(""),d=l.useMemo(()=>o.filter(e=>r&&e.requesterEmail!=="laura.medina@gomezleemarketing.com"||i!=="all"&&e.status!==i||t!=="Todos"&&e.country!==t?!1:`${e.id} ${e.position} ${e.city} ${e.country} ${e.client}`.toLowerCase().includes(c.toLowerCase())),[t,r,c,o,i]);return s.jsxs("div",{className:"page-stack",children:[s.jsx(q,{eyebrow:r?"Solicitudes propias · Coordinación":"Registro maestro · Vista global",title:r?"Mis requisiciones":"Requisiciones",description:r?"Consulta borradores, aprobaciones y reclutamientos sin perder el hilo del proceso.":"Explora el registro global con estado, territorio, responsable y señal de SLA.",actions:u==="coordinacion"?s.jsxs(n,{className:"button button--primary",to:"/requisiciones/nueva",children:[s.jsxs("svg",{viewBox:"0 0 24 24",width:"15",height:"15",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{marginRight:"6px",verticalAlign:"middle",flexShrink:0},children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Nueva requisición"]}):void 0}),r?s.jsx("div",{className:"status-tabs",role:"tablist","aria-label":"Filtrar mis requisiciones",children:x.map(e=>s.jsxs("button",{type:"button",role:"tab","aria-selected":i===e.status,className:i===e.status?"is-active":"",onClick:()=>h(e.status),children:[e.label,s.jsx("span",{children:o.filter(a=>a.requesterEmail==="laura.medina@gomezleemarketing.com"&&(e.status==="all"||a.status===e.status)).length})]},e.status))}):null,s.jsxs("section",{className:"list-toolbar","aria-label":"Filtros de requisiciones",children:[s.jsxs("label",{className:"search-field",children:[s.jsx("span",{className:"sr-only",children:"Buscar"}),s.jsx("input",{type:"search",value:c,onChange:e=>p(e.target.value),placeholder:"Buscar por ID, posición, ciudad o proyecto"})]}),r?null:s.jsxs("label",{children:[s.jsx("span",{children:"Estado"}),s.jsxs("select",{value:i,onChange:e=>h(e.target.value),children:[s.jsx("option",{value:"all",children:"Todos"}),x.slice(1).map(e=>s.jsx("option",{value:e.status,children:e.label},e.status))]})]}),s.jsxs("label",{children:[s.jsx("span",{children:"Territorio"}),s.jsxs("select",{value:t,onChange:e=>j(e.target.value),children:[s.jsx("option",{children:"Todos"}),g.map(e=>s.jsx("option",{children:e},e))]})]}),s.jsxs("p",{children:[d.length," resultados"]})]}),d.length===0?s.jsx(y,{title:"No hay requisiciones en esta vista",detail:"Cambia los filtros o crea una nueva requisición.",action:u==="coordinacion"?s.jsx(n,{className:"button button--primary",to:"/requisiciones/nueva",children:"Crear requisición"}):void 0}):s.jsx("section",{className:"requisition-table table-wrap",children:s.jsxs("table",{children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Requisición"}),s.jsx("th",{children:"Territorio"}),s.jsx("th",{children:"Estado"}),s.jsx("th",{children:"Responsable"}),s.jsx("th",{children:"SLA"}),s.jsx("th",{children:"Creada"}),s.jsx("th",{children:s.jsx("span",{className:"sr-only",children:"Abrir"})})]})}),s.jsx("tbody",{children:d.map(e=>{const a=m(e);return s.jsxs("tr",{className:`table-signal table-signal--${a}`,children:[s.jsx("td",{"data-label":"Requisición",children:s.jsxs(n,{to:`/requisiciones/${e.id}`,children:[s.jsx("strong",{children:e.position}),s.jsxs("small",{children:[e.id," · ",e.quantity," ",e.quantity===1?"vacante":"vacantes"," · Tier ",e.tier]})]})}),s.jsxs("td",{"data-label":"Territorio",children:[s.jsx("span",{children:e.country}),s.jsx("small",{children:e.city})]}),s.jsx("td",{"data-label":"Estado",children:s.jsx(f,{status:e.status})}),s.jsx("td",{"data-label":"Responsable",children:e.recruiter??(e.status==="pendiente_administracion"?"Administración":"RRHH")}),s.jsx("td",{"data-label":"SLA",children:s.jsx("span",{className:`sla-label sla-label--${a}`,children:e.slaMode==="cumplimiento"?"Por cumplimiento":a==="late"?"Vencido":a==="risk"?"En riesgo":a==="neutral"?"Sin iniciar":"En tiempo"})}),s.jsx("td",{"data-label":"Creada",children:v(e.createdAt)}),s.jsx("td",{children:s.jsx(n,{className:"row-arrow",to:`/requisiciones/${e.id}`,"aria-label":`Abrir ${e.id}`,children:"→"})})]},e.id)})})]})})]})}export{E as default};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{j as a,i as t,k as e}from"./index-kE4_6-nI.js";function r({status:s}){return a.jsx("span",{className:`status-badge status-badge--${e[s]}`,children:t[s]})}export{r as S};
|
||||
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
+12
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user