dev-process-kit 0.4.2 → 0.4.4
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/README.md +1 -0
- package/dist/boards.js +1 -1
- package/dist/chunks/shared-B3ddPOb7.js +1 -0
- package/dist/chunks/shared-BEcs-9nd.js +6077 -0
- package/dist/chunks/{shared-CHQBlCl0.js → shared-BIODquqM.js} +4 -4
- package/dist/chunks/{shared-D2fmf6zb.js → shared-BZ0Y7lDS.js} +41 -41
- package/dist/chunks/{shared-CMWEqwI3.js → shared-BncKaYRX.js} +1 -1
- package/dist/chunks/{shared-D1ZujbZA.js → shared-BqjrIOYm.js} +54 -54
- package/dist/chunks/shared-CaQMHNzp.js +3 -0
- package/dist/chunks/shared-Cd0znWBB.js +3545 -0
- package/dist/chunks/shared-Cuc_13rI.js +7378 -0
- package/dist/chunks/shared-D2yn0bY8.js +1883 -0
- package/dist/chunks/{shared-4JaCIu01.js → shared-D5_ZJTgh.js} +152 -46
- package/dist/chunks/shared-DDIKBRRU.js +1 -0
- package/dist/chunks/{shared-D0_BoWj3.js → shared-DbfVyq_3.js} +18 -18
- package/dist/chunks/{shared-D80rPPNF.js → shared-Dha4GwGq.js} +3 -3
- package/dist/chunks/shared-GVsZCCAa.js +4954 -0
- package/dist/chunks/{shared-C-ujfGnT.js → shared-IlpAgOtF.js} +1 -1
- package/dist/chunks/{shared-SjAP9bK0.js → shared-M5nBQyzE.js} +4 -4
- package/dist/chunks/{shared-DErYmK9C.js → shared-lNnnWUPH.js} +14 -14
- package/dist/components.js +1 -1
- package/dist/index.js +1 -1
- package/dist/sync.js +1 -1
- package/dist/views/delegation-poker.js +1 -1
- package/dist/views/plain.js +1 -1
- package/dist/views/prototype.js +1 -1
- package/dist/views/slides.js +1 -1
- package/dist/views/task-board.js +1 -1
- package/dist/views/usm.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/shared-CJZKj_HI.js +0 -3
- package/dist/chunks/shared-CsLKVrK7.js +0 -6912
- package/dist/chunks/shared-DPD_cXES.js +0 -1883
- package/dist/chunks/shared-HkbNG84_.js +0 -1
- package/dist/chunks/shared-JOvfFoxb.js +0 -3645
- package/dist/chunks/shared-KHA87RsJ.js +0 -3360
- package/dist/chunks/shared-_0Ev6y6i.js +0 -5357
- package/dist/chunks/shared-lVXxL9i3.js +0 -1
|
@@ -0,0 +1,3545 @@
|
|
|
1
|
+
import{v as f,O as Ia,j as h,q as K,E as Se,H as Je,n as we,x as Ae,N as Et,R as Aa,F as $t,P as Ma,m as La,B as _,w as S,k as F,h as Y,C as R,d as b,s as Tt,o as g,e as ee,D as V,g as Da,p as Ra,b as Oa,f as v}from"./shared-CaQMHNzp.js";import{bh as xt,ar as Me,a4 as Na,L as I,aC as O,a0 as q,a3 as l,a2 as m,al as X,a1 as Ee,aa as Qe,k as Z,aq as B,as as J,B as et,O as _t,a9 as It,aw as At,i as Mt,az as Le,b4 as Ca,b5 as Ba,aV as Ya,u as Ua,bi as Pa,aL as De,a_ as za,t as Lt,av as Re,A as Fa,bj as Dt,bk as Va,V as Rt,am as Ot,a$ as tt,ax as Ga,ap as Ha,bl as Ka}from"./shared-BEcs-9nd.js";import{h as qa,d as Oe,l as st,a as Nt}from"./shared-Dha4GwGq.js";import{a as at,c as Wa}from"./shared-DbfVyq_3.js";import{w as Ct,C as Bt,h as Yt,q as Ut,r as Pt,g as zt,a as ja,x as Xa}from"./shared-lNnnWUPH.js";import{L as Za}from"./shared-CjW1DhGL.js";import{o as Ne}from"./shared-B3ddPOb7.js";const Ja=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16 9-5.5 5.5L8 12"}]],Qa=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"}]],en=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9"}]],tn=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z"}],["circle",{cx:"12",cy:"12",r:"10"}]],sn=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]],an=[["circle",{cx:"12",cy:"12",r:"10"}]],nn=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]],on=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]],rn=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}],["circle",{cx:"12",cy:"12",r:"3"}]],dn=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528"}]],ln=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"}],["path",{d:"M9 18h6"}],["path",{d:"M10 22h4"}]],pn=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}],["path",{d:"M12 12V8"}]],cn=[["circle",{cx:"6",cy:"19",r:"3"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"}],["circle",{cx:"18",cy:"5",r:"3"}]],un=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"}]],mn=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]],Ft=e=>new Map(e.map(t=>[t.id,t.blockedBy??[]])),nt=(e,t,s)=>{const a=Ft(e),n=new Set,i=[...a.get(t)??[]];for(;i.length>0;){const o=i.pop();if(!(o===void 0||n.has(o))){if(o===s)return!0;n.add(o),i.push(...a.get(o)??[])}}return!1},hn=e=>{const t=Ft(e),s=new Set,a=(n,i)=>{const o=i.indexOf(n);if(o>=0)return[...i.slice(o),n];if(s.has(n))return null;for(const r of t.get(n)??[]){const d=a(r,[...i,n]);if(d)return d}return s.add(n),null};for(const n of e){const i=a(n.id,[]);if(i)return i}return null},Ce=["gray","blue","violet","green","amber","accent"],Vt=["progress","circle","lightbulb","flag","play","clock","eye","pause","check","x"],Be=["estimates","assignees"],Gt=["stories","points","weighted"],Ht=f(h(),Aa(),Et(e=>{const[t=0,s=0,a=0]=e.split("-").map(Number),n=new Date(Date.UTC(t,s-1,a));return n.getUTCMonth()===s-1&&n.getUTCDate()===a},"a due date must be a calendar day")),Kt=f(we(),Je(),Se(0)),it=f(we(),Je(),Se(0)),qt=K({milestoneId:_(f(h(),S(1))),statusId:_(f(h(),S(1))),stories:f(we(),$t(),Se(0)),points:f(we(),Je(),Se(0))}),Ye=f(h(),Ia()),bn=K({id:f(h(),S(1)),name:f(h(),S(1)),questions:Me}),gn=K({id:R,name:f(h(),S(1)),actor:_(h()),steps:F(Y(bn),[]),questions:Me}),fn=K({id:f(h(),S(1)),name:f(h(),S(1)),timeframe:_(h()),description:_(h()),dueDate:_(Ht),questions:Me}),ne=Ae(Ce),ot=Ae(Vt),rt=qa,yn=K({url:rt,label:_(f(h(),S(1)))}),vn=K({id:R,name:f(h(),S(1)),tone:F(ne),icon:F(ot),weight:_(Kt)}),kn=K({id:R,name:f(h(),S(1)),tone:F(ne)}),Wt=f(h(),Et(e=>e.trim()!=="","a comment needs some text")),Sn=K({id:R,body:Wt,createdAt:_(Ye)}),jt=f(we(),$t(),Se(1)),wn=K({id:R,number:_(jt),name:f(h(),S(1)),description:_(h()),activityId:f(h(),S(1)),stepId:f(h(),S(1)),milestoneId:_(h()),statusId:_(h()),links:_(Y(yn)),labelIds:_(Y(f(h(),S(1)))),blockedBy:_(Y(f(h(),S(1)))),estimateId:_(f(h(),S(1))),assigneeId:_(f(h(),S(1))),comments:_(Y(Sn)),questions:Me}),En=K({id:R,name:f(h(),S(1)),tone:F(ne)}),Xt=Ae(Be),Zt=Ae(Gt),$n=K({id:R,name:f(h(),S(1)),points:it}),Tn=K({id:R,at:Ye,tally:Y(qt)}),xn=K({title:_(h()),features:F(Y(Xt),[]),measure:_(Zt),doneStatusId:_(f(h(),S(1))),activities:F(Y(gn),[]),milestones:F(Y(fn),[]),statuses:F(Y(vn),[]),labels:F(Y(kn),[]),members:F(Y(En),[]),estimates:F(Y($n),[]),stories:F(Y(wn),[]),snapshots:F(Y(Tn),[])}),dt=e=>Ce[e%Ce.length]??"gray",Ue=e=>dt(e+1),Jt=e=>{const t=La(xn,e);if(new Set(t.features).size!==t.features.length)throw new Error("the base turns a feature on twice");const s=t.statuses[0]?.id,a=t.stories.flatMap(c=>c.number===void 0?[]:[c.number]),n=a.find((c,x)=>a.indexOf(c)!==x);if(n!==void 0)throw new Error(`two stories share the number ${n}`);let i=Math.max(0,...a);const o={...t,stories:t.stories.map(c=>({...c,number:c.number??++i,...s===void 0||c.statusId!==void 0?{}:{statusId:s}})),statuses:t.statuses.map((c,x)=>({...c,tone:c.tone??dt(x),icon:c.icon??"progress"})),labels:t.labels.map((c,x)=>({...c,tone:c.tone??Ue(x)})),members:t.members.map((c,x)=>({...c,tone:c.tone??Ue(x)})),features:Be.filter(c=>t.features.includes(c))},r=new Map;for(const c of o.activities)for(const x of c.steps)r.set(x.id,c.id);const d=new Set(o.milestones.map(c=>c.id)),p=new Set(o.statuses.map(c=>c.id)),u=new Set(o.labels.map(c=>c.id));if(o.doneStatusId!==void 0&&!p.has(o.doneStatusId))throw new Error(`the base references unknown doneStatusId "${o.doneStatusId}"`);const k=new Set,E=(c,x)=>{if(k.has(x))throw new Error(`duplicate id "${x}" in ${c}`);k.add(x)};for(const c of o.activities){E("activities",c.id);for(const x of c.steps)E("steps",x.id)}for(const c of o.milestones)E("milestones",c.id);for(const c of o.statuses)E("statuses",c.id);for(const c of o.labels)E("labels",c.id);for(const c of o.members)E("members",c.id);for(const c of o.estimates)E("estimates",c.id);for(const c of o.snapshots)E("snapshots",c.id);const w=new Set(o.estimates.map(c=>c.id)),A=new Set(o.members.map(c=>c.id));for(const c of o.stories){E("stories",c.id);for(const ke of c.comments??[])E("story comments",ke.id);const x=r.get(c.stepId);if(x===void 0||x!==c.activityId)throw new Error(`story "${c.id}" references unknown activityId/stepId`);if(c.milestoneId!==void 0&&!d.has(c.milestoneId))throw new Error(`story "${c.id}" references unknown milestoneId "${c.milestoneId}"`);const ye=(c.links??[]).map(ke=>ke.url);if(new Set(ye).size!==ye.length)throw new Error(`story "${c.id}" links the same URL twice`);if(c.statusId!==void 0&&!p.has(c.statusId))throw new Error(`story "${c.id}" references unknown statusId "${c.statusId}"`);const ve=c.labelIds??[];if(new Set(ve).size!==ve.length)throw new Error(`story "${c.id}" has a label twice`);const wt=ve.find(ke=>!u.has(ke));if(wt!==void 0)throw new Error(`story "${c.id}" references unknown labelId "${wt}"`);if(c.estimateId!==void 0&&!w.has(c.estimateId))throw new Error(`story "${c.id}" references unknown estimateId "${c.estimateId}"`);if(c.assigneeId!==void 0&&!A.has(c.assigneeId))throw new Error(`story "${c.id}" references unknown assigneeId "${c.assigneeId}"`)}for(const c of o.snapshots){const x=Qt(o,c.tally);if(x!==null)throw new Error(`snapshot "${c.id}" ${x}`)}const $=new Set(o.stories.map(c=>c.id));for(const c of o.stories){const x=c.blockedBy??[];if(x.includes(c.id))throw new Error(`story "${c.id}" is blocked by itself`);if(new Set(x).size!==x.length)throw new Error(`story "${c.id}" has a blocker twice`);const ye=x.find(ve=>!$.has(ve));if(ye!==void 0)throw new Error(`story "${c.id}" references unknown blocker "${ye}"`)}const L=hn(o.stories);if(L!==null)throw new Error(`stories block one another in a cycle: ${L.join(" \u2192 ")}`);return o},Qt=(e,t)=>{const s=new Set;for(const a of t){if(a.milestoneId!==void 0&&!U(e,a.milestoneId))return`references unknown milestoneId "${a.milestoneId}"`;if(a.statusId!==void 0&&!D(e,a.statusId))return`references unknown statusId "${a.statusId}"`;const n=Pe(a);if(s.has(n))return`tallies "${n}" twice`;s.add(n)}return null},Pe=e=>`${e.milestoneId??""}/${e.statusId??""}`,lt=()=>({features:[],activities:[],milestones:[],statuses:[],labels:[],members:[],estimates:[],stories:[],snapshots:[]}),te=(e,t)=>{if(t!==void 0)return e.activities.find(s=>s.id===t)},ce=(e,t)=>`${e}.${t}`,N=(e,t)=>{if(t===void 0)return;const s=Ma(t,2);if(s){const[a,n]=s;if(a===void 0||n===void 0)return;const i=e.activities.find(r=>r.id===a),o=i?.steps.find(r=>r.id===n);return i&&o?{activity:i,step:o}:void 0}if(!t.includes("."))for(const a of e.activities){const n=a.steps.find(i=>i.id===t);if(n)return{activity:a,step:n}}},U=(e,t)=>{if(t!==void 0)return e.milestones.find(s=>s.id===t)},D=(e,t)=>{if(t!==void 0)return e.statuses.find(s=>s.id===t)},j=(e,t)=>{if(t!==void 0)return e.labels.find(s=>s.id===t)},P=(e,t)=>e.features.includes(t),G=(e,t)=>{if(t!==void 0)return e.members.find(s=>s.id===t)},pt=(e,t)=>G(e,t.assigneeId),z=(e,t)=>{if(t!==void 0)return e.estimates.find(s=>s.id===t)},$e=(e,t)=>{if(t!==void 0)return e.snapshots.find(s=>s.id===t)},ct=(e,t)=>{const s=new Set(t.labelIds??[]);return e.labels.filter(a=>s.has(a.id))},T=(e,t)=>{if(t!==void 0)return e.stories.find(s=>s.id===t)},ze=e=>e.activities.flatMap(t=>t.steps.map(s=>({activity:t,step:s}))),_n=e=>({...e,stories:xt(e.stories,[t=>`${t.activityId}/${t.stepId}/${t.milestoneId??""}`])}),Fe=(e,t,s)=>e.stories.filter(a=>a.stepId===t&&(a.milestoneId??void 0)===s),es=(e,t,s)=>e.stories.filter(a=>a.activityId===t&&(a.milestoneId??void 0)===s),W=e=>[...e.activities.map(t=>t.id),...e.activities.flatMap(t=>t.steps.map(s=>s.id)),...e.milestones.map(t=>t.id),...e.statuses.map(t=>t.id),...e.labels.map(t=>t.id),...e.members.map(t=>t.id),...e.estimates.map(t=>t.id),...e.stories.map(t=>t.id),...e.stories.flatMap(t=>(t.comments??[]).map(s=>s.id)),...e.snapshots.map(t=>t.id)],ts=(e,t)=>e.stories.filter(s=>s.stepId===t).length,ss=g({feature:Xt,enabled:Da()}),y={SET_ACTIVITY_NAME:b("SET_ACTIVITY_NAME","activity",g({name:f(h(),S(1))})),SET_ACTIVITY_ACTOR:b("SET_ACTIVITY_ACTOR","activity",g({actor:h()})),SET_STEP_NAME:b("SET_STEP_NAME","step",g({name:f(h(),S(1))})),REORDER_STEP:b("REORDER_STEP","step",g({after:V(h())}),{mode:"sequence"}),REORDER_ACTIVITY:b("REORDER_ACTIVITY","activity",g({after:V(h())}),{mode:"sequence"}),ADD_ACTIVITY:b("ADD_ACTIVITY","page",g({id:R,name:f(h(),S(1))}),{dedupeKey:ee}),ADD_STEP:b("ADD_STEP","activity",g({id:R,name:f(h(),S(1))}),{dedupeKey:ee}),DELETE_ACTIVITY:b("DELETE_ACTIVITY","activity",g({})),DELETE_STEP:b("DELETE_STEP","step",g({})),SET_STORY_NAME:b("SET_STORY_NAME","story",g({name:f(h(),S(1))})),SET_STORY_DESCRIPTION:b("SET_STORY_DESCRIPTION","story",g({description:h()})),SET_STORY_MILESTONE:b("SET_STORY_MILESTONE","story",g({milestoneId:V(h())})),MOVE_STORY:b("MOVE_STORY","story",g({activityId:f(h(),S(1)),stepId:f(h(),S(1)),milestoneId:V(h()),after:V(h())}),{mode:"sequence"}),REORDER_STORY:b("REORDER_STORY","story",g({after:V(h())}),{mode:"sequence"}),ADD_STORY:b("ADD_STORY","step",g({id:R,name:f(h(),S(1)),activityId:f(h(),S(1)),milestoneId:_(h()),number:_(jt)}),{dedupeKey:ee}),DELETE_STORY:b("DELETE_STORY","story",g({})),ADD_STORY_LINK:b("ADD_STORY_LINK","story",g({url:rt,label:_(f(h(),S(1)))})),REMOVE_STORY_LINK:b("REMOVE_STORY_LINK","story",g({url:h()})),ADD_STORY_COMMENT:b("ADD_STORY_COMMENT","story",g({id:R,body:Wt,createdAt:_(Ye)}),{dedupeKey:ee}),DELETE_STORY_COMMENT:b("DELETE_STORY_COMMENT","story",g({commentId:f(h(),S(1))})),SET_STORY_STATUS:b("SET_STORY_STATUS","story",g({statusId:f(h(),S(1))})),SET_MILESTONE_NAME:b("SET_MILESTONE_NAME","milestone",g({name:f(h(),S(1))})),ADD_MILESTONE:b("ADD_MILESTONE","page",g({id:R,name:f(h(),S(1))}),{dedupeKey:ee}),DELETE_MILESTONE:b("DELETE_MILESTONE","milestone",g({})),REORDER_MILESTONE:b("REORDER_MILESTONE","milestone",g({after:V(h())}),{mode:"sequence"}),SET_MILESTONE_DUE_DATE:b("SET_MILESTONE_DUE_DATE","milestone",g({dueDate:V(Ht)})),ADD_STATUS:b("ADD_STATUS","page",g({id:R,name:f(h(),S(1)),tone:ne,icon:_(ot)}),{dedupeKey:ee}),SET_STATUS_NAME:b("SET_STATUS_NAME","status",g({name:f(h(),S(1))})),SET_STATUS_TONE:b("SET_STATUS_TONE","status",g({tone:ne})),SET_STATUS_ICON:b("SET_STATUS_ICON","status",g({icon:ot})),SET_STATUS_WEIGHT:b("SET_STATUS_WEIGHT","status",g({weight:Kt})),SET_MEASURE:b("SET_MEASURE","page",g({measure:Zt})),SET_DONE_STATUS:b("SET_DONE_STATUS","status",g({})),DELETE_STATUS:b("DELETE_STATUS","status",g({})),REORDER_STATUS:b("REORDER_STATUS","status",g({after:V(h())}),{mode:"sequence"}),ADD_LABEL:b("ADD_LABEL","page",g({id:R,name:f(h(),S(1)),tone:ne}),{dedupeKey:ee}),SET_LABEL_NAME:b("SET_LABEL_NAME","label",g({name:f(h(),S(1))})),SET_LABEL_TONE:b("SET_LABEL_TONE","label",g({tone:ne})),DELETE_LABEL:b("DELETE_LABEL","label",g({})),REORDER_LABEL:b("REORDER_LABEL","label",g({after:V(h())}),{mode:"sequence"}),ADD_STORY_LABEL:b("ADD_STORY_LABEL","story",g({labelId:f(h(),S(1))})),REMOVE_STORY_LABEL:b("REMOVE_STORY_LABEL","story",g({labelId:f(h(),S(1))})),ADD_STORY_BLOCKER:b("ADD_STORY_BLOCKER","story",g({blockerId:f(h(),S(1))})),REMOVE_STORY_BLOCKER:b("REMOVE_STORY_BLOCKER","story",g({blockerId:f(h(),S(1))})),ADD_MEMBER:b("ADD_MEMBER","page",g({id:R,name:f(h(),S(1)),tone:ne}),{dedupeKey:ee}),SET_MEMBER_NAME:b("SET_MEMBER_NAME","member",g({name:f(h(),S(1))})),SET_MEMBER_TONE:b("SET_MEMBER_TONE","member",g({tone:ne})),DELETE_MEMBER:b("DELETE_MEMBER","member",g({})),REORDER_MEMBER:b("REORDER_MEMBER","member",g({after:V(h())}),{mode:"sequence"}),SET_STORY_ASSIGNEE:b("SET_STORY_ASSIGNEE","story",g({memberId:V(f(h(),S(1)))})),ADD_ESTIMATE:b("ADD_ESTIMATE","page",g({id:R,name:f(h(),S(1)),points:it}),{dedupeKey:ee}),SET_ESTIMATE_NAME:b("SET_ESTIMATE_NAME","estimate",g({name:f(h(),S(1))})),SET_ESTIMATE_POINTS:b("SET_ESTIMATE_POINTS","estimate",g({points:it})),DELETE_ESTIMATE:b("DELETE_ESTIMATE","estimate",g({})),REORDER_ESTIMATE:b("REORDER_ESTIMATE","estimate",g({after:V(h())}),{mode:"sequence"}),SET_STORY_ESTIMATE:b("SET_STORY_ESTIMATE","story",g({estimateId:V(f(h(),S(1)))})),RECORD_SNAPSHOT:b("RECORD_SNAPSHOT","page",g({id:R,at:Ye,tally:Y(qt)}),{dedupeKey:ee}),DELETE_SNAPSHOT:b("DELETE_SNAPSHOT","snapshot",g({})),SET_FEATURE:b("SET_FEATURE","page",ss,{dedupeKey:e=>{const t=Tt(ss,e.payload);return`SET_FEATURE|${t.success?t.output.feature:JSON.stringify(e.payload)}`}})},In={setActivityName:(e,t)=>({type:"SET_ACTIVITY_NAME",target:{type:"activity",id:e},payload:{name:t}}),setStepName:(e,t)=>({type:"SET_STEP_NAME",target:{type:"step",id:e},payload:{name:t}})},be=e=>{const t=e.statuses.findIndex(s=>s.id===e.doneStatusId);return t>=0?t:e.statuses.length-1},as=e=>e.statuses[be(e)],ns=(e,t)=>{if(t===void 0)return!1;const s=e.statuses.findIndex(a=>a.id===t);return s>=0&&s>=be(e)},is=e=>e.statuses.slice(0,be(e)+1),An=(e,t)=>e.milestones.find(s=>s.id===t.milestone)??e.milestones.find(s=>s.dueDate!==void 0)??e.milestones[0],ge=e=>P(e,"estimates")?e.measure??(e.estimates.length>0?"points":"stories"):"stories",os=e=>e.weight??1,se=10,rs=e=>{const{statuses:t}=e,s=be(e);if(ge(e)!=="weighted")return t.map((o,r)=>r<s?1:0);const a=t.slice(0,s).map(os),n=Ve(a),i=a.map(o=>n>0?o/n:1/a.length);return t.map((o,r)=>Ve(i.slice(r)))},Mn=1,ds=(e,t)=>z(e,t.estimateId)?.points??Mn,ls=e=>{const t=new Map;for(const n of e.stories){const i={...n.milestoneId===void 0?{}:{milestoneId:n.milestoneId},...n.statusId===void 0?{}:{statusId:n.statusId}},o=Pe(i),r=t.get(o)??{...i,stories:0,points:0};t.set(o,{...r,stories:r.stories+1,points:r.points+ds(e,n)})}const s=[...e.milestones.map(n=>n.id),void 0],a=e.statuses.length===0?[void 0]:e.statuses.map(n=>n.id);return s.flatMap(n=>a.flatMap(i=>{const o=t.get(Pe({milestoneId:n,statusId:i}));return o?[o]:[]}))},Ln=(e,t,s)=>{const a=ge(e),i=[...xt(e.snapshots.map(d=>({at:Date.parse(d.at),tally:d.tally,snapshotId:d.id})),[d=>d.at]),{at:s,tally:ls(e)}].map(d=>({at:d.at,...d.snapshotId===void 0?{}:{snapshotId:d.snapshotId},values:Dn(e.statuses,d.tally,t,a)})),o=rs(e),r=(d,p)=>({at:d.at,value:Math.round(p*100)/100,...d.snapshotId===void 0?{}:{snapshotId:d.snapshotId}});return{due:Rn(e.milestones.find(d=>d.id===t)?.dueDate),combined:i.map(d=>r(d,d.values.reduce((p,u,k)=>p+u*(o[k]??0),0))),byStatus:e.statuses.slice(1).map((d,p)=>({status:d,points:i.map(u=>r(u,Ve(u.values.slice(0,p+1))))}))}},Dn=(e,t,s,a)=>e.map(n=>Ve(t.filter(i=>i.milestoneId===s&&i.statusId===n.id).map(i=>a==="stories"?i.stories:i.points))),Rn=e=>{if(e===void 0)return null;const[t=0,s=1,a=1]=e.split("-").map(Number);return new Date(t,s-1,a,23,59,59).getTime()},ue=e=>{const t=new Date(e),s=a=>String(a).padStart(2,"0");return`${t.getFullYear()}-${s(t.getMonth()+1)}-${s(t.getDate())} ${s(t.getHours())}:${s(t.getMinutes())}`},Ve=e=>e.reduce((t,s)=>t+s,0),ps="STORY-",ie=e=>`${ps}${e.number}`,cs=(...e)=>Math.max(0,...e.flatMap(t=>t.stories.map(s=>s.number)))+1,On=(e,t)=>{if(t===void 0)return;const s=T(e,t);if(s)return s;const a=new RegExp(`^${ps}([1-9]\\d*)$`,"i").exec(t.trim());if(!a)return;const n=Number(a[1]);return e.stories.find(i=>i.number===n)},us=(e,t)=>{const s=Ra(y,t);if(s===null)return null;const a=s.target.id;switch(s.type){case"SET_ACTIVITY_NAME":{const{name:n}=s.payload;return e.activities.some(i=>i.id===a)?{...e,activities:e.activities.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_ACTIVITY_ACTOR":{const n=s.payload.actor.trim();return e.activities.some(i=>i.id===a)?{...e,activities:e.activities.map(i=>{if(i.id!==a)return i;const{actor:o,...r}=i;return n===""?r:{...r,actor:n}})}:null}case"SET_STEP_NAME":{const{name:n}=s.payload,i=N(e,a);return i?{...e,activities:e.activities.map(o=>o.id===i.activity.id?{...o,steps:o.steps.map(r=>r.id===i.step.id?{...r,name:n}:r)}:o)}:null}case"REORDER_STEP":{const{after:n}=s.payload,i=N(e,a);if(!i)return null;const o=n===null?null:N(e,n);if(n!==null&&(!o||o.activity.id!==i.activity.id))return null;const r=me(i.activity.steps,i.step.id,o?.step.id??null);return r===null?null:{...e,activities:e.activities.map(d=>d.id===i.activity.id?{...d,steps:r}:d)}}case"REORDER_ACTIVITY":{const{after:n}=s.payload,i=me(e.activities,a,n);return i===null?null:{...e,activities:i}}case"ADD_ACTIVITY":{const n=s.payload;return e.activities.some(i=>i.id===n.id)?e:{...e,activities:[...e.activities,{id:n.id,name:n.name,steps:[]}]}}case"ADD_STEP":{const n=s.payload,i=e.activities.find(o=>o.id===a);return i?i.steps.some(o=>o.id===n.id)?e:{...e,activities:e.activities.map(o=>o.id===a?{...o,steps:[...o.steps,{id:n.id,name:n.name}]}:o)}:null}case"DELETE_ACTIVITY":{const n=e.activities.find(o=>o.id===a);if(!n)return null;const i=new Set(n.steps.map(o=>o.id));return mt({...e,activities:e.activities.filter(o=>o.id!==a)},o=>o.activityId===a||i.has(o.stepId))}case"DELETE_STEP":{const n=N(e,a);return n?mt({...e,activities:e.activities.map(i=>i.id===n.activity.id?{...i,steps:i.steps.filter(o=>o.id!==n.step.id)}:i)},i=>i.activityId===n.activity.id&&i.stepId===n.step.id):null}case"SET_STORY_NAME":{const{name:n}=s.payload;return H(e,a,i=>({...i,name:n}))}case"SET_STORY_DESCRIPTION":{const{description:n}=s.payload;return H(e,a,i=>({...i,description:n}))}case"SET_STORY_MILESTONE":{const{milestoneId:n}=s.payload;return n!==null&&!U(e,n)?null:H(e,a,i=>n===null?ut(i):{...i,milestoneId:n})}case"MOVE_STORY":{const n=s.payload,i=T(e,a);if(!i)return null;const o=N(e,n.stepId);if(!o||o.activity.id!==n.activityId||n.milestoneId!==null&&!U(e,n.milestoneId))return null;const r=n.milestoneId??void 0,d=r===void 0?{...ut(i),activityId:o.activity.id,stepId:o.step.id}:{...i,activityId:o.activity.id,stepId:o.step.id,milestoneId:r};return bs(e,d,n.after)}case"REORDER_STORY":{const{after:n}=s.payload,i=T(e,a);return i?bs(e,i,n,!0):null}case"ADD_STORY":{const n=s.payload,i=N(e,t.target.id);if(!i||i.activity.id!==n.activityId||n.milestoneId!==void 0&&!U(e,n.milestoneId))return null;if(e.stories.some(d=>d.id===n.id))return e;const o=n.number!==void 0&&e.stories.some(d=>d.number===n.number),r={id:n.id,number:n.number===void 0||o?cs(e):n.number,name:n.name,activityId:n.activityId,stepId:i.step.id,...n.milestoneId===void 0?{}:{milestoneId:n.milestoneId},...e.statuses[0]===void 0?{}:{statusId:e.statuses[0].id}};return{...e,stories:[...e.stories,r]}}case"DELETE_STORY":return e.stories.some(n=>n.id===a)?mt(e,n=>n.id===a):null;case"ADD_STORY_LINK":{const{url:n,label:i}=s.payload,o=T(e,a);if(!o)return null;if(o.links?.some(d=>d.url===n))return e;const r=i===void 0?{url:n}:{url:n,label:i};return H(e,a,d=>({...d,links:[...d.links??[],r]}))}case"REMOVE_STORY_LINK":{const{url:n}=s.payload;return T(e,a)?.links?.some(o=>o.url===n)?H(e,a,o=>{const r=(o.links??[]).filter(u=>u.url!==n),{links:d,...p}=o;return r.length===0?p:{...p,links:r}}):null}case"ADD_STORY_COMMENT":{const{id:n,body:i,createdAt:o}=s.payload,r=T(e,a);if(!r)return null;if(r.comments?.some(p=>p.id===n))return e;if(W(e).includes(n))return null;const d=o===void 0?{id:n,body:i}:{id:n,body:i,createdAt:o};return H(e,a,p=>({...p,comments:[...p.comments??[],d]}))}case"DELETE_STORY_COMMENT":{const{commentId:n}=s.payload;return T(e,a)?.comments?.some(o=>o.id===n)?H(e,a,o=>{const r=(o.comments??[]).filter(u=>u.id!==n),{comments:d,...p}=o;return r.length===0?p:{...p,comments:r}}):null}case"SET_STORY_STATUS":{const{statusId:n}=s.payload;return D(e,n)?H(e,a,i=>({...i,statusId:n})):null}case"SET_MILESTONE_NAME":{const{name:n}=s.payload;return e.milestones.some(i=>i.id===a)?{...e,milestones:e.milestones.map(i=>i.id===a?{...i,name:n}:i)}:null}case"ADD_MILESTONE":{const n=s.payload;return e.milestones.some(i=>i.id===n.id)?e:{...e,milestones:[...e.milestones,{id:n.id,name:n.name}]}}case"DELETE_MILESTONE":return e.milestones.some(n=>n.id===a)?{...e,milestones:e.milestones.filter(n=>n.id!==a),stories:e.stories.map(n=>n.milestoneId===a?ut(n):n),snapshots:ht(e,n=>n.milestoneId===a?le(n,"milestoneId"):n)}:null;case"REORDER_MILESTONE":{const{after:n}=s.payload,i=me(e.milestones,a,n);return i===null?null:{...e,milestones:i}}case"SET_MILESTONE_DUE_DATE":{const{dueDate:n}=s.payload;return U(e,a)?{...e,milestones:e.milestones.map(i=>i.id!==a?i:n===null?le(i,"dueDate"):{...i,dueDate:n})}:null}case"ADD_STATUS":{const{id:n,name:i,tone:o,icon:r}=s.payload;if(e.statuses.some(p=>p.id===n))return e;const d=[...e.statuses,{id:n,name:i,tone:o,icon:r??"progress"}];return e.statuses.length===0?{...e,statuses:d,stories:e.stories.map(p=>({...p,statusId:n})),snapshots:ht(e,p=>({...p,statusId:n}))}:{...e,statuses:d}}case"SET_STATUS_NAME":{const{name:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_STATUS_TONE":{const{tone:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,tone:n}:i)}:null}case"SET_STATUS_ICON":{const{icon:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,icon:n}:i)}:null}case"SET_STATUS_WEIGHT":{const{weight:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,weight:n}:i)}:null}case"SET_MEASURE":{const{measure:n}=s.payload;return ge(e)===n?e:{...e,measure:n}}case"SET_DONE_STATUS":return D(e,a)?e.doneStatusId===a?e:{...e,doneStatusId:a}:null;case"DELETE_STATUS":{if(!D(e,a))return null;const n=e.statuses.filter(o=>o.id!==a),i=n[0]?.id;return{...e.doneStatusId===a?le(e,"doneStatusId"):e,statuses:n,stories:e.stories.map(o=>o.statusId!==a?o:i===void 0?Nn(o):{...o,statusId:i}),snapshots:ht(e,o=>o.statusId!==a?o:i===void 0?le(o,"statusId"):{...o,statusId:i})}}case"REORDER_STATUS":{const{after:n}=s.payload,i=me(e.statuses,a,n);return i===null?null:{...e,statuses:i}}case"ADD_LABEL":{const{id:n,name:i,tone:o}=s.payload;return j(e,n)?e:{...e,labels:[...e.labels,{id:n,name:i,tone:o}]}}case"SET_LABEL_NAME":{const{name:n}=s.payload;return j(e,a)?{...e,labels:e.labels.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_LABEL_TONE":{const{tone:n}=s.payload;return j(e,a)?{...e,labels:e.labels.map(i=>i.id===a?{...i,tone:n}:i)}:null}case"DELETE_LABEL":return j(e,a)?{...e,labels:e.labels.filter(n=>n.id!==a),stories:e.stories.map(n=>n.labelIds?.includes(a)?ms(n,a):n)}:null;case"REORDER_LABEL":{const{after:n}=s.payload,i=me(e.labels,a,n);return i===null?null:{...e,labels:i}}case"ADD_STORY_LABEL":{const{labelId:n}=s.payload,i=T(e,a);return!i||!j(e,n)?null:i.labelIds?.includes(n)?e:H(e,a,o=>({...o,labelIds:[...o.labelIds??[],n]}))}case"REMOVE_STORY_LABEL":{const{labelId:n}=s.payload;return T(e,a)?.labelIds?.includes(n)?H(e,a,i=>ms(i,n)):null}case"ADD_STORY_BLOCKER":{const{blockerId:n}=s.payload,i=T(e,a);return!i||!T(e,n)?null:i.blockedBy?.includes(n)?e:n===a||nt(e.stories,n,a)?null:H(e,a,o=>({...o,blockedBy:[...o.blockedBy??[],n]}))}case"REMOVE_STORY_BLOCKER":{const{blockerId:n}=s.payload;return T(e,a)?.blockedBy?.includes(n)?H(e,a,i=>hs(i,new Set([n]))):null}case"ADD_MEMBER":{const{id:n,name:i,tone:o}=s.payload;return G(e,n)?e:{...e,members:[...e.members,{id:n,name:i,tone:o}]}}case"SET_MEMBER_NAME":{const{name:n}=s.payload;return G(e,a)?{...e,members:e.members.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_MEMBER_TONE":{const{tone:n}=s.payload;return G(e,a)?{...e,members:e.members.map(i=>i.id===a?{...i,tone:n}:i)}:null}case"DELETE_MEMBER":return G(e,a)?{...e,members:e.members.filter(n=>n.id!==a),stories:e.stories.map(n=>n.assigneeId===a?le(n,"assigneeId"):n)}:null;case"REORDER_MEMBER":{const{after:n}=s.payload,i=me(e.members,a,n);return i===null?null:{...e,members:i}}case"SET_STORY_ASSIGNEE":{const{memberId:n}=s.payload;return n!==null&&!G(e,n)?null:H(e,a,i=>n===null?le(i,"assigneeId"):{...i,assigneeId:n})}case"ADD_ESTIMATE":{const{id:n,name:i,points:o}=s.payload;return z(e,n)?e:{...e,estimates:[...e.estimates,{id:n,name:i,points:o}]}}case"SET_ESTIMATE_NAME":{const{name:n}=s.payload;return z(e,a)?{...e,estimates:e.estimates.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_ESTIMATE_POINTS":{const{points:n}=s.payload;return z(e,a)?{...e,estimates:e.estimates.map(i=>i.id===a?{...i,points:n}:i)}:null}case"DELETE_ESTIMATE":return z(e,a)?{...e,estimates:e.estimates.filter(n=>n.id!==a),stories:e.stories.map(n=>n.estimateId===a?le(n,"estimateId"):n)}:null;case"REORDER_ESTIMATE":{const{after:n}=s.payload,i=me(e.estimates,a,n);return i===null?null:{...e,estimates:i}}case"SET_STORY_ESTIMATE":{const{estimateId:n}=s.payload;return n!==null&&!z(e,n)?null:H(e,a,i=>n===null?le(i,"estimateId"):{...i,estimateId:n})}case"RECORD_SNAPSHOT":{const{id:n,at:i,tally:o}=s.payload;return $e(e,n)?e:Qt(e,o)!==null?null:{...e,snapshots:[...e.snapshots,{id:n,at:i,tally:o}]}}case"DELETE_SNAPSHOT":return $e(e,a)?{...e,snapshots:e.snapshots.filter(n=>n.id!==a)}:null;case"SET_FEATURE":{const{feature:n,enabled:i}=s.payload;if(e.features.includes(n)===i)return e;const o=Be.filter(r=>r===n?i:e.features.includes(r));return{...e,features:o}}default:return Oa(s)}},H=(e,t,s)=>e.stories.some(a=>a.id===t)?{...e,stories:e.stories.map(a=>a.id===t?s(a):a)}:null,ut=e=>{const{milestoneId:t,...s}=e;return s},ms=(e,t)=>{const{labelIds:s=[],...a}=e,n=s.filter(i=>i!==t);return n.length===0?a:{...a,labelIds:n}},hs=(e,t)=>{const{blockedBy:s=[],...a}=e,n=s.filter(i=>!t.has(i));return n.length===0?a:{...a,blockedBy:n}},mt=(e,t)=>{const s=new Set(e.stories.filter(t).map(a=>a.id));return{...e,stories:e.stories.filter(a=>!s.has(a.id)).map(a=>a.blockedBy?.some(n=>s.has(n))?hs(a,s):a)}},le=(e,t)=>{const{[t]:s,...a}=e;return a},ht=(e,t)=>e.snapshots.map(s=>{const a=new Map;for(const n of s.tally.map(t)){const i=Pe(n),o=a.get(i);a.set(i,o?{...o,stories:o.stories+n.stories,points:o.points+n.points}:n)}return{...s,tally:[...a.values()]}}),Nn=e=>{const{statusId:t,...s}=e;return s},bs=(e,t,s,a=!1)=>{const n=t.milestoneId??void 0,i=e.stories.filter(w=>w.id!==t.id),o=i.filter(w=>w.stepId===t.stepId&&(w.milestoneId??void 0)===n);if(s!==null){const w=i.find(A=>A.id===s);if(!w||w.stepId!==t.stepId||(w.milestoneId??void 0)!==n)return null;if(a){const A=T(e,t.id);if(!A||w.stepId!==A.stepId||(w.milestoneId??void 0)!==(A.milestoneId??void 0))return null}}const r=s===null?[t,...o]:gs(o,t,s),d=i.findIndex(w=>w.stepId===t.stepId&&(w.milestoneId??void 0)===n),p=new Set(o.map(w=>w.id)),u=i.filter(w=>!p.has(w.id)),k=d<0?u.length:Math.min(d,u.length),E=[...u.slice(0,k),...r,...u.slice(k)];return{...e,stories:E}},me=(e,t,s)=>{if(!e.some(i=>i.id===t)||s!==null&&!e.some(i=>i.id===s))return null;if(s===t)return[...e];const a=e.find(i=>i.id===t);if(a===void 0)return null;const n=e.filter(i=>i.id!==t);return gs(n,a,s)},gs=(e,t,s)=>{const a=[...e],n=s===null?-1:a.findIndex(i=>i.id===s);return a.splice(n+1,0,t),a},ae=Na({en:{renameActivity:"Rename activity",changeActivityActor:"Change whose experience",renameStep:"Rename step",reorderStep:"Reorder step",reorderActivity:"Reorder activity group",addActivity:"Add activity",addStep:"Add step",deleteActivity:"Delete activity",deleteStep:"Delete step",renameStory:"Rename story",updateStoryDescription:"Update story description",changeMilestone:"Change milestone",moveStory:"Move story",reorderStory:"Reorder story",addStory:"Add story",deleteStory:"Delete story",renameMilestone:"Rename milestone",addMilestone:"Add milestone",deleteMilestone:"Delete milestone",reorderMilestone:"Reorder milestone",changeStoryStatus:"Change story status",addStatus:"Add status",renameStatus:"Rename status",changeStatusTone:"Change status color",changeStatusIcon:"Change status icon",addStoryLink:"Link to story",removeStoryLink:"Unlink from story",addStoryComment:"Comment on story",deleteStoryComment:"Delete story comment",deleteStatus:"Delete status",reorderStatus:"Reorder status",addLabel:"Add label",renameLabel:"Rename label",changeLabelTone:"Change label color",deleteLabel:"Delete label",reorderLabel:"Reorder label",addStoryLabel:"Label story",removeStoryLabel:"Unlabel story",addStoryBlocker:"Make story wait on",removeStoryBlocker:"Stop story waiting on",changeMilestoneDueDate:"Change milestone due date",changeStatusWeight:"Change status weight",setDoneStatus:"Change done status",addEstimate:"Add estimate",renameEstimate:"Rename estimate",changeEstimatePoints:"Change estimate points",deleteEstimate:"Delete estimate",reorderEstimate:"Reorder estimate",setStoryEstimate:"Estimate story",recordSnapshot:"Record burndown snapshot",deleteSnapshot:"Delete burndown snapshot",toValue:e=>`\u2192 \u201C${e}\u201D`,fromTo:(e,t)=>`\u201C${e}\u201D \u2192 \u201C${t}\u201D`,added:e=>`+ \u201C${e}\u201D`,removed:e=>`\u2212 \u201C${e}\u201D`,toFront:"\u2192 To the front",afterName:e=>`\u2192 Right after \u201C${e}\u201D`,toUnassigned:"\u2192 Unassigned",toName:e=>`\u2192 ${e}`,snapshotSummary:(e,t)=>`${e} \xB7 ${t===1?"1 story":`${t} stories`}`,activityGroup:"Activity",stepGroup:"Step",storyGroup:"Story",milestoneGroup:"Milestone",statusGroup:"Status",labelGroup:"Label",estimateGroup:"Estimate",snapshotGroup:"Snapshot",mapGroup:"Map",targetLabel:(e,t)=>`${e} \xB7 ${t}`,targetMissing:(e,t)=>`${e} \xB7 ${t} (missing)`,wholeMap:"Whole map",unassigned:"Unassigned",emptyTitle:"No backbone yet",emptyBody:"Add activities and steps, and the story map appears here.",firstActivityButton:"+ First activity",groupingLabel:"Group by",groupViewTab:"Activity group",groupAxisHeader:"Activity group \u2192",activityAxis:"Activity \u2192",milestoneAxis:"Milestone \u2193",stepNameLabel:"Step name",activityNameLabel:"Activity name",milestoneNameLabel:"Milestone name",addStepAria:"Add a step to this activity",newActivityButton:"+ Activity",newMilestoneButton:"+ Milestone",addCellButton:"+ Add",addStoryCellAria:"Add a story to this cell",storyCount:e=>e===1?"1 story":`${e} stories`,pageTabsLabel:"Page",mapTab:"User Story Mapping",tableTab:"Table",milestonesTab:"Milestones",burndownTab:"Burndown",statusesSection:"Statuses",labelsSection:"Labels",membersSection:"Members",shareOfStories:e=>`${e}% of all stories`,coverageLabel:"Backbone coverage",coverage:(e,t)=>`${e} / ${t} steps`,storiesLabel:"Stories",timeframeUnset:"Timing not set",milestoneNoDescription:"No description yet.",noMilestonesTitle:"No milestones yet",noMilestonesBody:"Add a milestone to slice the map into releases.",commentCountAria:e=>e===1?"1 comment":`${e} comments`,reviewCountAria:e=>e===1?"1 review comment":`${e} review comments`,statusNameLabel:"Status name",statusToneLabel:"Color",toneName:e=>({gray:"Gray",blue:"Blue",violet:"Violet",green:"Green",amber:"Amber",accent:"Indigo"})[e],statusIconLabel:"Icon",iconName:e=>({progress:"Progress ring",circle:"Circle",lightbulb:"Light bulb",flag:"Flag",play:"Play",clock:"Clock",eye:"Eye",pause:"Pause",check:"Check",x:"Cross"})[e],statusShare:(e,t)=>`${e===1?"1 story":`${e} stories`} \xB7 ${t}%`,filterLabel:"Filter",filterKeyLabel:e=>({status:"Status",label:"Label",estimate:"Estimate",assignee:"Assignee"})[e],filterAll:"All",noLabel:"No label",unestimatedFilter:"Not estimated",clearFilter:"Clear",showFinished:e=>`Show ${e}`,criticalPathButton:"Critical path",criticalPathHint:"Highlight the chain of waiting stories with the most work left, from their estimates and dependencies. If it slips, the whole map slips.",criticalPathCount:e=>e===1?"1 story":`${e} stories`,progressAria:e=>`Progress: ${e}`,activityActorLabel:"Who",noStatusesTitle:"No statuses yet",noStatusesBody:"Add statuses such as Idea / Ready / Done, and the map colors each story by where it stands.",newStatusButton:"+ Status",moveUpAria:"Move up",moveDownAria:"Move down",deleteStatusAria:"Delete this status",doneStatusMark:"Done",doneStatusAria:e=>`Count ${e} as done`,statusWeightLabel:"Status weights",statusWeightHint:"Counts a story partly done by the statuses it has passed.",weightsNeedStatuses:"With two statuses or more before the done one, a story\u2019s work can be shared out between them.",setMeasure:"Change how the work left is measured",weightLineLabel:(e,t)=>`Between ${e} and ${t}`,weightLineValue:(e,t,s,a)=>`${e} ${t}, ${s} ${a}`,labelNameLabel:"Label name",noLabelsTitle:"No labels yet",noLabelsBody:"You can add labels here.",newLabelButton:"+ Label",deleteLabelAria:"Delete this label",burndownMilestoneLabel:"Milestone",dueDateLabel:"Due",noDueDate:"No due date",measureLabel:"Measure by",measureName:e=>({stories:"Stories",points:"Story points",weighted:"Points \xD7 status"})[e],measureSettingsLabel:"Measure settings",recordSnapshotButton:"Record snapshot",recordSnapshotHint:"Keeps today\u2019s totals per milestone and status, so the lines have a point to start from.",combinedChartTitle:e=>e?"Weighted burndown":"Burndown",combinedChartHint:e=>({stories:"The number of stories not done yet.",points:"The points of the stories not done yet.",weighted:"The points of each story \xD7 the share of it the status weights leave ahead."})[e]+" It reaches 0 when every story is done.",statusChartTitle:e=>`Left to reach \u201C${e}\u201D`,statusChartsLabel:"By status",chartNow:"Now",chartToday:"Today",chartDue:"Due",chartIdeal:"Ideal",chartActual:"Actual",chartAbout:"How this chart is counted",axisDate:(e,t)=>fs("en-US",e,t),chartAria:(e,t)=>`${e}: ${t} now`,chartLatest:e=>`Now ${e}`,chartNeedsSnapshot:"Record a snapshot to draw the line from.",snapshotsLabel:"Snapshots",noSnapshots:"No snapshot yet.",deleteSnapshotAria:e=>`Delete the snapshot of ${e}`,noMilestonesForBurndown:"Add a milestone on the Milestones tab to see its burndown.",unestimatedNote:e=>`${e===1?"1 story has":`${e} stories have`} no estimate and count as 1 point each.`,estimatesLabel:"Estimate scale",estimatesHint:"Name and points of each size a story can be estimated at (1, 2, 3 \u2026 or S, M, L).",estimateNameLabel:"Estimate name",estimatePointsLabel:"Points",newEstimateButton:"+ Estimate",deleteEstimateAria:"Delete this estimate",noEstimates:"No estimate scale yet: the burndown counts stories.",moveDialogLabel:"Step to move to",moveDialogSelectLabel:"Destination",moveConfirm:"Move",moveCancel:"Cancel",storyStatusLabel:"Status",storyDetailKind:"Story",copyStoryKey:e=>`Copy ${e}`,storyKeyCopied:"Copied",storyKeyColumn:"Key",copyId:"Copy ID",copyIdTitle:"Copy ID + title",copyStoryInfo:"Copy card as Markdown",copyInfoStep:"Step",copyInfoBlocks:"Blocks",copyInfoWaitsOn:"Waits on",storyTitleLabel:"Title",storyDescriptionLabel:"Description",storyLinksLabel:"Links",storyLabelsLabel:"Labels",storyNoLabels:"No labels yet.",manageLabels:"Manage labels",storyDependenciesLabel:"Dependencies",storyBlockersLabel:"Waits on",storyDependentsLabel:"Holds up",storyNoBlockers:"Nothing to wait on.",storyNoDependents:"No story waits on this one.",addBlockerPlaceholder:"Search for a story to wait on\u2026",addDependentPlaceholder:"Search for a story to wait on this\u2026",noDependencyMatch:"No story matches.",blockerFinished:"Done",removeBlockerAria:e=>`Stop waiting on ${e}`,removeDependentAria:e=>`Stop ${e} waiting on this`,blocksChip:e=>`Blocks ${e}`,waitsChip:e=>`Waits on ${e}`,blocksChipTitle:e=>`${e} ${e===1?"story waits":"stories wait"} on this one`,waitsChipTitle:e=>`Waits on ${e} unfinished ${e===1?"story":"stories"}`,storyEstimateLabel:"Estimate",unestimated:"None",estimateText:(e,t)=>e===String(t)?e:`${e} (${t} pt)`,estimateChipTitle:e=>`Estimate: ${e}`,manageEstimates:"Manage the scale",linkUrlLabel:"URL",addLinkButton:"Add",removeLinkAria:e=>`Remove ${e}`,deleteStoryButton:"Delete story",storyCommentsLabel:"Comments",storyStatusAria:e=>`Status: ${e}`,addMember:"Add member",renameMember:"Rename member",changeMemberTone:"Change member color",deleteMember:"Delete member",reorderMember:"Reorder member",setStoryAssignee:"Assign story",memberGroup:"Member",memberNameLabel:"Member name",noMembersTitle:"No members yet",noMembersBody:"Add the people on the team, then assign each story to the one who takes it on.",newMemberButton:"+ Member",deleteMemberAria:"Delete this member",storyAssigneeLabel:"Assignee",noAssignee:"No one",storyNoMembers:"No members yet.",manageMembers:"Manage members",assigneeChipTitle:e=>`Assigned to ${e}`,noAssigneeFilter:"Unassigned",moreTabsLabel:"More tabs",enableFeature:"Turn on feature",disableFeature:"Turn off feature",featureName:e=>({estimates:"Estimates & burndown",assignees:"Members & assignees"})[e],featureHint:e=>({estimates:"An estimate scale for the stories and a burndown per milestone.",assignees:"The members of the team and who each story is assigned to."})[e],featuresNote:"Turning a feature off only hides it: what it holds is kept.",newActivityName:"New activity",newStepName:"New step",newMilestoneName:"New milestone",newStoryName:"New story",newStatusName:"New status",newLabelName:"New label",newMemberName:"New member",newEstimateName:"New"},ja:{renameActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u540D\u3092\u5909\u66F4",changeActivityActor:"\u4F53\u9A13\u3059\u308B\u4EBA\u3092\u5909\u66F4",renameStep:"\u30B9\u30C6\u30C3\u30D7\u540D\u3092\u5909\u66F4",reorderStep:"\u30B9\u30C6\u30C3\u30D7\u306E\u9806\u5E8F\u3092\u5909\u66F4",reorderActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7\u306E\u9806\u5E8F\u3092\u5909\u66F4",addActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8FFD\u52A0",addStep:"\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0",deleteActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u524A\u9664",deleteStep:"\u30B9\u30C6\u30C3\u30D7\u3092\u524A\u9664",renameStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u540D\u3092\u5909\u66F4",updateStoryDescription:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u8AAC\u660E\u3092\u66F4\u65B0",changeMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u5909\u66F4",moveStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u79FB\u52D5",reorderStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u9806\u5E8F\u3092\u5909\u66F4",addStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u8FFD\u52A0",deleteStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u524A\u9664",renameMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u540D\u3092\u5909\u66F4",addMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0",deleteMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u524A\u9664",reorderMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u306E\u9806\u5E8F\u3092\u5909\u66F4",changeStoryStatus:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u5909\u66F4",addStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8FFD\u52A0",renameStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u540D\u3092\u5909\u66F4",changeStatusTone:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u8272\u3092\u5909\u66F4",changeStatusIcon:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u30A2\u30A4\u30B3\u30F3\u3092\u5909\u66F4",addStoryLink:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30EA\u30F3\u30AF\u3092\u8FFD\u52A0",removeStoryLink:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30EA\u30F3\u30AF\u3092\u524A\u9664",addStoryComment:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0",deleteStoryComment:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30B3\u30E1\u30F3\u30C8\u3092\u524A\u9664",deleteStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u524A\u9664",reorderStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u9806\u5E8F\u3092\u5909\u66F4",addLabel:"\u30E9\u30D9\u30EB\u3092\u8FFD\u52A0",renameLabel:"\u30E9\u30D9\u30EB\u540D\u3092\u5909\u66F4",changeLabelTone:"\u30E9\u30D9\u30EB\u306E\u8272\u3092\u5909\u66F4",deleteLabel:"\u30E9\u30D9\u30EB\u3092\u524A\u9664",reorderLabel:"\u30E9\u30D9\u30EB\u306E\u9806\u5E8F\u3092\u5909\u66F4",addStoryLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30E9\u30D9\u30EB\u3092\u4ED8\u4E0E",removeStoryLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30E9\u30D9\u30EB\u3092\u5916\u3059",addStoryBlocker:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F9D\u5B58\u5148\u3092\u8FFD\u52A0",removeStoryBlocker:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F9D\u5B58\u5148\u3092\u5916\u3059",changeMilestoneDueDate:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u306E\u671F\u65E5\u3092\u5909\u66F4",changeStatusWeight:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\u3092\u5909\u66F4",setDoneStatus:"\u5B8C\u4E86\u3068\u3059\u308B\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u5909\u66F4",addEstimate:"\u898B\u7A4D\u3082\u308A\u3092\u8FFD\u52A0",renameEstimate:"\u898B\u7A4D\u3082\u308A\u540D\u3092\u5909\u66F4",changeEstimatePoints:"\u898B\u7A4D\u3082\u308A\u306E\u30DD\u30A4\u30F3\u30C8\u3092\u5909\u66F4",deleteEstimate:"\u898B\u7A4D\u3082\u308A\u3092\u524A\u9664",reorderEstimate:"\u898B\u7A4D\u3082\u308A\u306E\u9806\u5E8F\u3092\u5909\u66F4",setStoryEstimate:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u898B\u7A4D\u3082\u308B",recordSnapshot:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332",deleteSnapshot:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u524A\u9664",toValue:e=>`\u2192 \u300C${e}\u300D`,fromTo:(e,t)=>`\u300C${e}\u300D\u2192\u300C${t}\u300D`,added:e=>`+ \u300C${e}\u300D`,removed:e=>`\u2212 \u300C${e}\u300D`,toFront:"\u2192 \u5148\u982D\u3078",afterName:e=>`\u2192 \u300C${e}\u300D\u306E\u76F4\u5F8C\u3078`,toUnassigned:"\u2192 \u672A\u5272\u5F53\u3078",toName:e=>`\u2192 ${e}`,snapshotSummary:(e,t)=>`${e} \xB7 ${t} \u30B9\u30C8\u30FC\u30EA\u30FC`,activityGroup:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",stepGroup:"\u30B9\u30C6\u30C3\u30D7",storyGroup:"\u30B9\u30C8\u30FC\u30EA\u30FC",milestoneGroup:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",statusGroup:"\u30B9\u30C6\u30FC\u30BF\u30B9",labelGroup:"\u30E9\u30D9\u30EB",estimateGroup:"\u898B\u7A4D\u3082\u308A",snapshotGroup:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8",mapGroup:"\u30DE\u30C3\u30D7",targetLabel:(e,t)=>`${e} \xB7 ${t}`,targetMissing:(e,t)=>`${e} \xB7 ${t} (missing)`,wholeMap:"\u30DE\u30C3\u30D7\u5168\u4F53",unassigned:"\u672A\u5272\u5F53",emptyTitle:"\u30D0\u30C3\u30AF\u30DC\u30FC\u30F3\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",emptyBody:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3068\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u3053\u3053\u306B\u30B9\u30C8\u30FC\u30EA\u30FC\u30DE\u30C3\u30D7\u304C\u73FE\u308C\u307E\u3059\u3002",firstActivityButton:"+ \u6700\u521D\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",groupingLabel:"\u307E\u3068\u3081\u308B\u5358\u4F4D",groupViewTab:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7",groupAxisHeader:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7 \u2192",activityAxis:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3 \u2192",milestoneAxis:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3 \u2193",stepNameLabel:"\u30B9\u30C6\u30C3\u30D7\u540D",activityNameLabel:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u540D",milestoneNameLabel:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u540D",addStepAria:"\u3053\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u306B\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0",newActivityButton:"+ \u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",newMilestoneButton:"+ \u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",addCellButton:"+ \u8FFD\u52A0",addStoryCellAria:"\u3053\u306E\u30DE\u30B9\u306B\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u8FFD\u52A0",storyCount:e=>`${e} \u30B9\u30C8\u30FC\u30EA\u30FC`,pageTabsLabel:"\u30DA\u30FC\u30B8",mapTab:"User Story Mapping",tableTab:"\u30C6\u30FC\u30D6\u30EB",milestonesTab:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",burndownTab:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3",statusesSection:"\u30B9\u30C6\u30FC\u30BF\u30B9",labelsSection:"\u30E9\u30D9\u30EB",membersSection:"\u30E1\u30F3\u30D0\u30FC",shareOfStories:e=>`\u5168\u30B9\u30C8\u30FC\u30EA\u30FC\u306E ${e}%`,coverageLabel:"\u30D0\u30C3\u30AF\u30DC\u30FC\u30F3\u306E\u7DB2\u7F85",coverage:(e,t)=>`${e} / ${t} \u30B9\u30C6\u30C3\u30D7`,storiesLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC",timeframeUnset:"\u6642\u671F\u672A\u5B9A",milestoneNoDescription:"\u8AAC\u660E\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",noMilestonesTitle:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noMilestonesBody:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u30DE\u30C3\u30D7\u3092\u30EA\u30EA\u30FC\u30B9\u3054\u3068\u306B\u533A\u5207\u308C\u307E\u3059\u3002",commentCountAria:e=>`\u30B3\u30E1\u30F3\u30C8 ${e} \u4EF6`,reviewCountAria:e=>`\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8 ${e} \u4EF6`,statusNameLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u540D",statusToneLabel:"\u8272",toneName:e=>({gray:"\u30B0\u30EC\u30FC",blue:"\u9752",violet:"\u7D2B",green:"\u7DD1",amber:"\u9EC4",accent:"\u30A4\u30F3\u30C7\u30A3\u30B4"})[e],statusIconLabel:"\u30A2\u30A4\u30B3\u30F3",iconName:e=>({progress:"\u9032\u6357\u30EA\u30F3\u30B0",circle:"\u5186",lightbulb:"\u96FB\u7403",flag:"\u65D7",play:"\u518D\u751F",clock:"\u6642\u8A08",eye:"\u76EE",pause:"\u4E00\u6642\u505C\u6B62",check:"\u30C1\u30A7\u30C3\u30AF",x:"\u30D0\u30C4"})[e],statusShare:(e,t)=>`${e} \u30B9\u30C8\u30FC\u30EA\u30FC \xB7 ${t}%`,filterLabel:"\u30D5\u30A3\u30EB\u30BF\u30FC",filterKeyLabel:e=>({status:"\u30B9\u30C6\u30FC\u30BF\u30B9",label:"\u30E9\u30D9\u30EB",estimate:"\u898B\u7A4D\u3082\u308A",assignee:"\u62C5\u5F53\u8005"})[e],filterAll:"\u3059\u3079\u3066",noLabel:"\u30E9\u30D9\u30EB\u306A\u3057",unestimatedFilter:"\u898B\u7A4D\u3082\u308A\u306A\u3057",clearFilter:"\u30AF\u30EA\u30A2",showFinished:e=>`${e}\u3082\u8868\u793A`,criticalPathButton:"\u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u30D1\u30B9",criticalPathHint:"\u898B\u7A4D\u3082\u308A\u3068\u4F9D\u5B58\u95A2\u4FC2\u304B\u3089\u3001\u6B8B\u308A\u306E\u4F5C\u696D\u304C\u6700\u3082\u591A\u3044\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u9023\u306A\u308A\u3092\u5F37\u8ABF\u3057\u307E\u3059\u3002\u3053\u3053\u304C\u9045\u308C\u308B\u3068\u30DE\u30C3\u30D7\u5168\u4F53\u304C\u9045\u308C\u307E\u3059\u3002",criticalPathCount:e=>`${e} \u4EF6`,progressAria:e=>`\u9032\u307F\u5177\u5408: ${e}`,activityActorLabel:"\u8AB0\u306E\u4F53\u9A13",noStatusesTitle:"\u30B9\u30C6\u30FC\u30BF\u30B9\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noStatusesBody:"Idea / Ready / Done \u306E\u3088\u3046\u306A\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u30DE\u30C3\u30D7\u306E\u30AB\u30FC\u30C9\u304C\u9032\u307F\u5177\u5408\u3067\u8272\u5206\u3051\u3055\u308C\u307E\u3059\u3002",newStatusButton:"+ \u30B9\u30C6\u30FC\u30BF\u30B9",moveUpAria:"\u4E0A\u3078\u79FB\u52D5",moveDownAria:"\u4E0B\u3078\u79FB\u52D5",deleteStatusAria:"\u3053\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u524A\u9664",doneStatusMark:"\u5B8C\u4E86",doneStatusAria:e=>`${e}\u3092\u5B8C\u4E86\u3068\u3059\u308B`,statusWeightLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F",statusWeightHint:"\u901A\u308A\u904E\u304E\u305F\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u5206\u3060\u3051\u3001\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u9014\u4E2D\u307E\u3067\u9032\u3093\u3060\u3082\u306E\u3068\u3057\u3066\u6570\u3048\u307E\u3059\u3002",weightsNeedStatuses:"\u5B8C\u4E86\u3068\u3059\u308B\u30B9\u30C6\u30FC\u30BF\u30B9\u3088\u308A\u524D\u306B\u30B9\u30C6\u30FC\u30BF\u30B9\u304C 2 \u3064\u4EE5\u4E0A\u3042\u308B\u3068\u3001\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F5C\u696D\u3092\u305D\u306E\u9593\u3067\u5206\u3051\u3089\u308C\u307E\u3059\u3002",setMeasure:"\u6B8B\u308A\u306E\u4F5C\u696D\u91CF\u306E\u8A08\u6E2C\u65B9\u6CD5\u3092\u5909\u66F4",weightLineLabel:(e,t)=>`${e}\u3068${t}\u306E\u5883\u76EE`,weightLineValue:(e,t,s,a)=>`${e} ${t}\u3001${s} ${a}`,labelNameLabel:"\u30E9\u30D9\u30EB\u540D",noLabelsTitle:"\u30E9\u30D9\u30EB\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noLabelsBody:"\u30E9\u30D9\u30EB\u3092\u8FFD\u52A0\u3067\u304D\u307E\u3059\u3002",newLabelButton:"+ \u30E9\u30D9\u30EB",deleteLabelAria:"\u3053\u306E\u30E9\u30D9\u30EB\u3092\u524A\u9664",burndownMilestoneLabel:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",dueDateLabel:"\u671F\u65E5",noDueDate:"\u671F\u65E5\u306A\u3057",measureLabel:"\u8A08\u6E2C\u65B9\u6CD5",measureName:e=>({stories:"\u30B9\u30C8\u30FC\u30EA\u30FC\u6570",points:"\u30B9\u30C8\u30FC\u30EA\u30FC\u30DD\u30A4\u30F3\u30C8",weighted:"\u30DD\u30A4\u30F3\u30C8 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9"})[e],measureSettingsLabel:"\u8A08\u6E2C\u306E\u8A2D\u5B9A",recordSnapshotButton:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332",recordSnapshotHint:"\u4ECA\u306E\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9\u3054\u3068\u306E\u96C6\u8A08\u3092\u6B8B\u3057\u3001\u7DDA\u306E\u8D77\u70B9\u306B\u3057\u307E\u3059\u3002",combinedChartTitle:e=>e?"\u91CD\u307F\u4ED8\u304D\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u30C1\u30E3\u30FC\u30C8":"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u30C1\u30E3\u30FC\u30C8",combinedChartHint:e=>({stories:"\u307E\u3060 Done \u3067\u306A\u3044\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u6570\u3002",points:"\u307E\u3060 Done \u3067\u306A\u3044\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30DD\u30A4\u30F3\u30C8\u3002",weighted:"\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30DD\u30A4\u30F3\u30C8 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\u3067\u6C7A\u307E\u308B\u6B8B\u308A\u306E\u5272\u5408\u3002"})[e]+"\u3059\u3079\u3066 Done \u306B\u306A\u308B\u3068 0 \u3067\u3059\u3002",statusChartTitle:e=>`\u300C${e}\u300D\u306B\u5C4A\u304F\u307E\u3067\u306E\u6B8B\u308A`,statusChartsLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u5225",chartNow:"\u73FE\u5728",chartToday:"\u4ECA\u65E5",chartDue:"\u671F\u65E5",chartIdeal:"\u7406\u60F3",chartActual:"\u5B9F\u7E3E",chartAbout:"\u3053\u306E\u30C1\u30E3\u30FC\u30C8\u306E\u6570\u3048\u65B9",axisDate:(e,t)=>fs("ja-JP",e,t),chartAria:(e,t)=>`${e}: \u73FE\u5728 ${t}`,chartLatest:e=>`\u73FE\u5728 ${e}`,chartNeedsSnapshot:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332\u3059\u308B\u3068\u7DDA\u304C\u5F15\u304B\u308C\u307E\u3059\u3002",snapshotsLabel:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8",noSnapshots:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",deleteSnapshotAria:e=>`${e} \u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u524A\u9664`,noMilestonesForBurndown:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u30BF\u30D6\u3067\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u305D\u306E\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u304C\u898B\u3089\u308C\u307E\u3059\u3002",unestimatedNote:e=>`${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u898B\u7A4D\u3082\u308A\u304C\u306A\u304F\u30011 \u4EF6 1 \u30DD\u30A4\u30F3\u30C8\u3068\u3057\u3066\u6570\u3048\u3066\u3044\u307E\u3059\u3002`,estimatesLabel:"\u898B\u7A4D\u3082\u308A\u306E\u76EE\u76DB\u308A",estimatesHint:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u4ED8\u3051\u3089\u308C\u308B\u898B\u7A4D\u3082\u308A\u306E\u540D\u524D\u3068\u30DD\u30A4\u30F3\u30C8\uFF081, 2, 3 \u2026 \u3084 S, M, L\uFF09\u3002",estimateNameLabel:"\u898B\u7A4D\u3082\u308A\u540D",estimatePointsLabel:"\u30DD\u30A4\u30F3\u30C8",newEstimateButton:"+ \u898B\u7A4D\u3082\u308A",deleteEstimateAria:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u3092\u524A\u9664",noEstimates:"\u898B\u7A4D\u3082\u308A\u306E\u76EE\u76DB\u308A\u304C\u307E\u3060\u306A\u3044\u305F\u3081\u3001\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306F\u30B9\u30C8\u30FC\u30EA\u30FC\u6570\u3067\u6570\u3048\u307E\u3059\u3002",moveDialogLabel:"\u79FB\u52D5\u5148\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",moveDialogSelectLabel:"\u79FB\u52D5\u5148",moveConfirm:"\u79FB\u52D5\u3059\u308B",moveCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",storyStatusLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9",storyDetailKind:"\u30B9\u30C8\u30FC\u30EA\u30FC",copyStoryKey:e=>`${e} \u3092\u30B3\u30D4\u30FC`,storyKeyCopied:"\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",storyKeyColumn:"\u30AD\u30FC",copyId:"ID\u3092\u30B3\u30D4\u30FC",copyIdTitle:"ID + Title \u3092\u30B3\u30D4\u30FC",copyStoryInfo:"\u30AB\u30FC\u30C9\u60C5\u5831\u3092\u30B3\u30D4\u30FC",copyInfoStep:"\u30B9\u30C6\u30C3\u30D7",copyInfoBlocks:"\u30D6\u30ED\u30C3\u30AF",copyInfoWaitsOn:"\u4F9D\u5B58\u5148",storyTitleLabel:"\u30BF\u30A4\u30C8\u30EB",storyDescriptionLabel:"\u8AAC\u660E",storyLinksLabel:"\u30EA\u30F3\u30AF",storyLabelsLabel:"\u30E9\u30D9\u30EB",storyNoLabels:"\u30E9\u30D9\u30EB\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",manageLabels:"\u30E9\u30D9\u30EB\u3092\u7BA1\u7406",storyDependenciesLabel:"\u4F9D\u5B58\u95A2\u4FC2",storyBlockersLabel:"\u4F9D\u5B58\u5148\uFF08\u5148\u306B\u7D42\u3048\u308B\uFF09",storyDependentsLabel:"\u4F9D\u5B58\u5143\uFF08\u3053\u308C\u3092\u5F85\u3064\uFF09",storyNoBlockers:"\u5F85\u3063\u3066\u3044\u308B\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u3042\u308A\u307E\u305B\u3093\u3002",storyNoDependents:"\u3053\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F85\u3064\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002",addBlockerPlaceholder:"\u4F9D\u5B58\u5148\u3092\u691C\u7D22\u3057\u3066\u8FFD\u52A0\u2026",addDependentPlaceholder:"\u3053\u308C\u3092\u5F85\u3064\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u691C\u7D22\u3057\u3066\u8FFD\u52A0\u2026",noDependencyMatch:"\u4E00\u81F4\u3059\u308B\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u3042\u308A\u307E\u305B\u3093\u3002",blockerFinished:"\u5B8C\u4E86",removeBlockerAria:e=>`${e} \u3078\u306E\u4F9D\u5B58\u3092\u5916\u3059`,removeDependentAria:e=>`${e} \u304B\u3089\u306E\u4F9D\u5B58\u3092\u5916\u3059`,blocksChip:e=>`${e} \u4EF6\u3092\u30D6\u30ED\u30C3\u30AF`,waitsChip:e=>`${e} \u4EF6\u5F85\u3061`,blocksChipTitle:e=>`${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u304C\u3053\u308C\u3092\u5F85\u3063\u3066\u3044\u307E\u3059`,waitsChipTitle:e=>`\u672A\u5B8C\u4E86\u306E ${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F85\u3063\u3066\u3044\u307E\u3059`,storyEstimateLabel:"\u898B\u7A4D\u3082\u308A",unestimated:"\u306A\u3057",estimateText:(e,t)=>e===String(t)?e:`${e}\uFF08${t} pt\uFF09`,estimateChipTitle:e=>`\u898B\u7A4D\u3082\u308A: ${e}`,manageEstimates:"\u76EE\u76DB\u308A\u3092\u7BA1\u7406",linkUrlLabel:"URL",addLinkButton:"\u8FFD\u52A0",removeLinkAria:e=>`${e} \u3092\u5916\u3059`,deleteStoryButton:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u524A\u9664",storyCommentsLabel:"\u30B3\u30E1\u30F3\u30C8",storyStatusAria:e=>`\u30B9\u30C6\u30FC\u30BF\u30B9: ${e}`,addMember:"\u30E1\u30F3\u30D0\u30FC\u3092\u8FFD\u52A0",renameMember:"\u30E1\u30F3\u30D0\u30FC\u540D\u3092\u5909\u66F4",changeMemberTone:"\u30E1\u30F3\u30D0\u30FC\u306E\u8272\u3092\u5909\u66F4",deleteMember:"\u30E1\u30F3\u30D0\u30FC\u3092\u524A\u9664",reorderMember:"\u30E1\u30F3\u30D0\u30FC\u306E\u9806\u5E8F\u3092\u5909\u66F4",setStoryAssignee:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u62C5\u5F53\u8005\u3092\u5909\u66F4",memberGroup:"\u30E1\u30F3\u30D0\u30FC",memberNameLabel:"\u30E1\u30F3\u30D0\u30FC\u540D",noMembersTitle:"\u30E1\u30F3\u30D0\u30FC\u304C\u307E\u3060\u3044\u307E\u305B\u3093",noMembersBody:"\u30C1\u30FC\u30E0\u306E\u30E1\u30F3\u30D0\u30FC\u3092\u8FFD\u52A0\u3057\u3001\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F15\u304D\u53D7\u3051\u308B\u4EBA\u306B\u5272\u308A\u5F53\u3066\u307E\u3059\u3002",newMemberButton:"+ \u30E1\u30F3\u30D0\u30FC",deleteMemberAria:"\u3053\u306E\u30E1\u30F3\u30D0\u30FC\u3092\u524A\u9664",storyAssigneeLabel:"\u62C5\u5F53\u8005",noAssignee:"\u306A\u3057",storyNoMembers:"\u30E1\u30F3\u30D0\u30FC\u306F\u307E\u3060\u3044\u307E\u305B\u3093\u3002",manageMembers:"\u30E1\u30F3\u30D0\u30FC\u3092\u7BA1\u7406",assigneeChipTitle:e=>`\u62C5\u5F53: ${e}`,noAssigneeFilter:"\u62C5\u5F53\u8005\u306A\u3057",moreTabsLabel:"\u307B\u304B\u306E\u30BF\u30D6",enableFeature:"\u6A5F\u80FD\u3092\u6709\u52B9\u5316",disableFeature:"\u6A5F\u80FD\u3092\u7121\u52B9\u5316",featureName:e=>({estimates:"\u898B\u7A4D\u3082\u308A\u3068\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3",assignees:"\u30E1\u30F3\u30D0\u30FC\u3068\u62C5\u5F53\u8005"})[e],featureHint:e=>({estimates:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u898B\u7A4D\u3082\u308A\u3068\u3001\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3054\u3068\u306E\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u3002",assignees:"\u30C1\u30FC\u30E0\u306E\u30E1\u30F3\u30D0\u30FC\u3068\u3001\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u62C5\u5F53\u8005\u3002"})[e],featuresNote:"\u7121\u52B9\u306B\u3057\u3066\u3082\u96A0\u3059\u3060\u3051\u3067\u3001\u5165\u529B\u3057\u305F\u5185\u5BB9\u306F\u6B8B\u308A\u307E\u3059\u3002",newActivityName:"\u65B0\u3057\u3044\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",newStepName:"\u65B0\u3057\u3044\u30B9\u30C6\u30C3\u30D7",newMilestoneName:"\u65B0\u3057\u3044\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",newStoryName:"\u65B0\u3057\u3044\u30B9\u30C8\u30FC\u30EA\u30FC",newStatusName:"\u65B0\u3057\u3044\u30B9\u30C6\u30FC\u30BF\u30B9",newLabelName:"\u65B0\u3057\u3044\u30E9\u30D9\u30EB",newMemberName:"\u65B0\u3057\u3044\u30E1\u30F3\u30D0\u30FC",newEstimateName:"\u65B0\u898F"}}),fs=(e,t,s)=>{const a=new Date(t);switch(s){case"day":case"week":case"biweek":return`${a.getMonth()+1}/${a.getDate()}`;case"month":case"quarter":return new Intl.DateTimeFormat(e,{month:"short",...a.getMonth()===0?{year:"numeric"}:{}}).format(a);case"year":return new Intl.DateTimeFormat(e,{year:"numeric"}).format(a)}},Cn=["map","table","milestones","burndown"],Bn={burndown:"estimates"},ys=e=>Cn.filter(t=>{const s=Bn[t];return s===void 0||P(e,s)}),vs=(e,t)=>ys(e).find(s=>s===t.tab)??"map",Te=(e,t)=>ns(e,t.statusId),ks=(e,t)=>{const s=T(e,t)?.blockedBy??[];return{blockers:s,openBlockers:s.filter(a=>{const n=T(e,a);return n!==void 0&&!Te(e,n)}).length,dependents:e.stories.filter(a=>a.blockedBy?.includes(t)).map(a=>a.id)}},Yn=(e,t)=>{const s=new Set(T(e,t)?.blockedBy??[]);return e.stories.filter(a=>a.id!==t&&!s.has(a.id)&&!nt(e.stories,a.id,t))},Un=(e,t)=>e.stories.filter(s=>s.id!==t&&!s.blockedBy?.includes(t)&&!nt(e.stories,t,s.id)),Pn=["critical-path"],Ge=e=>Pn.find(t=>t===e.highlight)??null,zn=(e,t)=>{if(Te(e,t))return 0;const s=ge(e)==="stories"?1:ds(e,t),a=Math.max(0,e.statuses.findIndex(n=>n.id===t.statusId));return s*(rs(e)[a]??1)},Fn=(e,t)=>Ge(t)==="critical-path"?Ss(e).ids:null,Vn=1e-9,Ss=e=>{const t=new Map(e.stories.map(d=>[d.id,zn(e,d)]).filter(([,d])=>d>0)),s=new Map,a=new Map;for(const d of e.stories)if(t.has(d.id))for(const p of d.blockedBy??[])t.has(p)&&(s.set(d.id,[...s.get(d.id)??[],p]),a.set(p,[...a.get(p)??[],d.id]));const n=ws(t,s),i=ws(t,a),o=[...t].map(([d,p])=>[d,n(d)+i(d)-p]),r=Math.max(0,...o.map(([,d])=>d));return{ids:new Set(o.filter(([,d])=>r-d<Vn).map(([d])=>d)),work:r}},ws=(e,t)=>{const s=new Map,a=n=>{const i=s.get(n);if(i!==void 0)return i;const o=(e.get(n)??0)+Math.max(0,...(t.get(n)??[]).map(a));return s.set(n,o),o};return a},xe=["status","label","estimate","assignee"],oe="~none",re={key:"done",value:"show"},Es=(e,t)=>t[re.key]===re.value||e.statuses.length<2?new Set:new Set(e.statuses.filter(s=>ns(e,s.id)).map(s=>s.id)),fe=(e,t)=>{switch(t){case"status":return e.statuses.map(s=>s.id);case"label":return e.labels.length===0?[]:[...e.labels.map(s=>s.id),oe];case"estimate":return!P(e,"estimates")||e.estimates.length===0?[]:[...e.estimates.map(s=>s.id),oe];case"assignee":return!P(e,"assignees")||e.members.length===0?[]:[...e.members.map(s=>s.id),oe]}},He=(e,t)=>{const s=Es(e,t),a=n=>{const i=t[n];if(i===void 0||i==="")return new Set;const o=new Set(i.split(","));return new Set(fe(e,n).filter(r=>o.has(r)&&!s.has(r)))};return{status:a("status"),label:a("label"),estimate:a("estimate"),assignee:a("assignee"),hiddenStatusIds:s}},$s=(e,t,s)=>{const a=fe(e,t).filter(n=>s.has(n));return a.length===0?null:a.join(",")},Gn=(e,t)=>{const s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s},Hn=e=>xe.some(t=>e[t].size>0),Ts=(e,t)=>{const s=t.labelIds??[];return(t.statusId===void 0||!e.hiddenStatusIds.has(t.statusId))&&Ke(e.status,t.statusId===void 0?[]:[t.statusId])&&Ke(e.label,s.length===0?[oe]:s)&&Ke(e.estimate,[t.estimateId??oe])&&Ke(e.assignee,[t.assigneeId??oe])},Ke=(e,t)=>e.size===0||t.some(s=>e.has(s)),C=(e,t,s)=>{const a=typeof s=="string"?s:"",n=typeof t=="string"?t:void 0;return n===void 0?e.toValue(a):e.fromTo(n,a)},pe=(e,t)=>typeof t=="string"?e.afterName(t):e.toFront,Kn={SET_ACTIVITY_NAME:(e,t,s)=>({title:e.renameActivity,tone:"update",body:C(e,te(s,t.target.id)?.name,v(y.SET_ACTIVITY_NAME,t).name??"")}),SET_ACTIVITY_ACTOR:(e,t,s)=>{const a=v(y.SET_ACTIVITY_ACTOR,t).actor.trim();return{title:e.changeActivityActor,tone:"update",body:a===""?e.removed(te(s,t.target.id)?.actor??""):C(e,te(s,t.target.id)?.actor,a)}},SET_STEP_NAME:(e,t,s)=>({title:e.renameStep,tone:"update",body:C(e,N(s,t.target.id)?.step.name,v(y.SET_STEP_NAME,t).name??"")}),REORDER_STEP:(e,t)=>({title:e.reorderStep,tone:"move",body:pe(e,v(y.REORDER_STEP,t).after)}),REORDER_ACTIVITY:(e,t,s)=>{const a=v(y.REORDER_ACTIVITY,t).after;return{title:e.reorderActivity,tone:"move",body:pe(e,a===null?null:te(s,a)?.name??a)}},ADD_ACTIVITY:(e,t)=>({title:e.addActivity,tone:"create",body:e.added(String(v(y.ADD_ACTIVITY,t).name??""))}),ADD_STEP:(e,t)=>({title:e.addStep,tone:"create",body:e.added(String(v(y.ADD_STEP,t).name??""))}),DELETE_ACTIVITY:(e,t,s)=>({title:e.deleteActivity,tone:"delete",body:e.removed(te(s,t.target.id)?.name??t.target.id)}),DELETE_STEP:(e,t,s)=>({title:e.deleteStep,tone:"delete",body:e.removed(N(s,t.target.id)?.step.name??t.target.id)}),SET_STORY_NAME:(e,t,s)=>({title:e.renameStory,tone:"update",body:C(e,T(s,t.target.id)?.name,v(y.SET_STORY_NAME,t).name??"")}),SET_STORY_DESCRIPTION:(e,t)=>({title:e.updateStoryDescription,tone:"update",body:e.toValue(String(v(y.SET_STORY_DESCRIPTION,t).description??"").slice(0,90))}),SET_STORY_MILESTONE:(e,t,s)=>{const a=v(y.SET_STORY_MILESTONE,t).milestoneId;return{title:e.changeMilestone,tone:"move",body:a==null?e.toUnassigned:e.toName(U(s,String(a))?.name??String(a))}},MOVE_STORY:(e,t,s)=>({title:e.moveStory,tone:"move",body:e.toName(N(s,String(v(y.MOVE_STORY,t).stepId))?.step.name??String(v(y.MOVE_STORY,t).stepId??""))}),REORDER_STORY:(e,t)=>({title:e.reorderStory,tone:"move",body:pe(e,v(y.REORDER_STORY,t).after)}),ADD_STORY:(e,t)=>({title:e.addStory,tone:"create",body:e.added(String(v(y.ADD_STORY,t).name??""))}),DELETE_STORY:(e,t,s)=>({title:e.deleteStory,tone:"delete",body:e.removed(T(s,t.target.id)?.name??t.target.id)}),SET_MILESTONE_NAME:(e,t,s)=>({title:e.renameMilestone,tone:"update",body:C(e,U(s,t.target.id)?.name,v(y.SET_MILESTONE_NAME,t).name??"")}),ADD_MILESTONE:(e,t)=>({title:e.addMilestone,tone:"create",body:e.added(String(v(y.ADD_MILESTONE,t).name??""))}),DELETE_MILESTONE:(e,t,s)=>({title:e.deleteMilestone,tone:"delete",body:e.removed(U(s,t.target.id)?.name??t.target.id)}),REORDER_MILESTONE:(e,t)=>({title:e.reorderMilestone,tone:"move",body:pe(e,v(y.REORDER_MILESTONE,t).after)}),ADD_STORY_LINK:(e,t)=>{const{url:s,label:a}=v(y.ADD_STORY_LINK,t);return{title:e.addStoryLink,tone:"create",body:e.added(a??Oe(s).title)}},REMOVE_STORY_LINK:(e,t,s)=>{const{url:a}=v(y.REMOVE_STORY_LINK,t),n=T(s,t.target.id)?.links?.find(i=>i.url===a);return{title:e.removeStoryLink,tone:"delete",body:e.removed(n?.label??Oe(a).title)}},ADD_STORY_COMMENT:(e,t)=>({title:e.addStoryComment,tone:"create",body:e.added(v(y.ADD_STORY_COMMENT,t).body)}),DELETE_STORY_COMMENT:(e,t,s)=>{const{commentId:a}=v(y.DELETE_STORY_COMMENT,t),n=T(s,t.target.id)?.comments?.find(i=>i.id===a);return{title:e.deleteStoryComment,tone:"delete",body:e.removed(n?.body??a)}},SET_STORY_STATUS:(e,t,s)=>{const a=v(y.SET_STORY_STATUS,t).statusId;return{title:e.changeStoryStatus,tone:"update",body:e.toName(D(s,a)?.name??a)}},ADD_STATUS:(e,t)=>({title:e.addStatus,tone:"create",body:e.added(v(y.ADD_STATUS,t).name)}),SET_STATUS_NAME:(e,t,s)=>({title:e.renameStatus,tone:"update",body:C(e,D(s,t.target.id)?.name,v(y.SET_STATUS_NAME,t).name)}),SET_STATUS_TONE:(e,t,s)=>{const a=D(s,t.target.id)?.tone,n=v(y.SET_STATUS_TONE,t).tone;return{title:e.changeStatusTone,tone:"update",body:C(e,a===void 0?void 0:e.toneName(a),e.toneName(n))}},SET_STATUS_ICON:(e,t,s)=>{const a=D(s,t.target.id)?.icon,n=v(y.SET_STATUS_ICON,t).icon;return{title:e.changeStatusIcon,tone:"update",body:C(e,a===void 0?void 0:e.iconName(a),e.iconName(n))}},DELETE_STATUS:(e,t,s)=>({title:e.deleteStatus,tone:"delete",body:e.removed(D(s,t.target.id)?.name??t.target.id)}),REORDER_STATUS:(e,t)=>({title:e.reorderStatus,tone:"move",body:pe(e,v(y.REORDER_STATUS,t).after)}),ADD_LABEL:(e,t)=>({title:e.addLabel,tone:"create",body:e.added(v(y.ADD_LABEL,t).name)}),SET_LABEL_NAME:(e,t,s)=>({title:e.renameLabel,tone:"update",body:C(e,j(s,t.target.id)?.name,v(y.SET_LABEL_NAME,t).name)}),SET_LABEL_TONE:(e,t,s)=>{const a=j(s,t.target.id)?.tone,n=v(y.SET_LABEL_TONE,t).tone;return{title:e.changeLabelTone,tone:"update",body:C(e,a===void 0?void 0:e.toneName(a),e.toneName(n))}},DELETE_LABEL:(e,t,s)=>({title:e.deleteLabel,tone:"delete",body:e.removed(j(s,t.target.id)?.name??t.target.id)}),REORDER_LABEL:(e,t)=>({title:e.reorderLabel,tone:"move",body:pe(e,v(y.REORDER_LABEL,t).after)}),ADD_STORY_LABEL:(e,t,s)=>{const a=v(y.ADD_STORY_LABEL,t).labelId;return{title:e.addStoryLabel,tone:"create",body:e.added(j(s,a)?.name??a)}},REMOVE_STORY_LABEL:(e,t,s)=>{const a=v(y.REMOVE_STORY_LABEL,t).labelId;return{title:e.removeStoryLabel,tone:"delete",body:e.removed(j(s,a)?.name??a)}},ADD_STORY_BLOCKER:(e,t,s)=>{const a=v(y.ADD_STORY_BLOCKER,t).blockerId;return{title:e.addStoryBlocker,tone:"create",body:e.added(T(s,a)?.name??a)}},REMOVE_STORY_BLOCKER:(e,t,s)=>{const a=v(y.REMOVE_STORY_BLOCKER,t).blockerId;return{title:e.removeStoryBlocker,tone:"delete",body:e.removed(T(s,a)?.name??a)}},SET_MILESTONE_DUE_DATE:(e,t,s)=>{const a=v(y.SET_MILESTONE_DUE_DATE,t).dueDate;return{title:e.changeMilestoneDueDate,tone:a===null?"delete":"update",body:a===null?e.noDueDate:C(e,U(s,t.target.id)?.dueDate,a)}},SET_STATUS_WEIGHT:(e,t,s)=>{const a=D(s,t.target.id)?.weight,n=v(y.SET_STATUS_WEIGHT,t).weight;return{title:e.changeStatusWeight,tone:"update",body:C(e,a===void 0?void 0:String(a),String(n))}},SET_DONE_STATUS:(e,t,s)=>({title:e.setDoneStatus,tone:"update",body:C(e,as(s)?.name,D(s,t.target.id)?.name??t.target.id)}),SET_MEASURE:(e,t,s)=>({title:e.setMeasure,tone:"update",body:C(e,e.measureName(ge(s)),e.measureName(v(y.SET_MEASURE,t).measure))}),ADD_MEMBER:(e,t)=>({title:e.addMember,tone:"create",body:e.added(v(y.ADD_MEMBER,t).name)}),SET_MEMBER_NAME:(e,t,s)=>({title:e.renameMember,tone:"update",body:C(e,G(s,t.target.id)?.name,v(y.SET_MEMBER_NAME,t).name)}),SET_MEMBER_TONE:(e,t,s)=>{const a=G(s,t.target.id)?.tone,n=v(y.SET_MEMBER_TONE,t).tone;return{title:e.changeMemberTone,tone:"update",body:C(e,a===void 0?void 0:e.toneName(a),e.toneName(n))}},DELETE_MEMBER:(e,t,s)=>({title:e.deleteMember,tone:"delete",body:e.removed(G(s,t.target.id)?.name??t.target.id)}),REORDER_MEMBER:(e,t)=>({title:e.reorderMember,tone:"move",body:pe(e,v(y.REORDER_MEMBER,t).after)}),SET_STORY_ASSIGNEE:(e,t,s)=>{const a=v(y.SET_STORY_ASSIGNEE,t).memberId;if(a===null){const n=G(s,T(s,t.target.id)?.assigneeId);return{title:e.setStoryAssignee,tone:"delete",body:e.removed(n?.name??e.noAssignee)}}return{title:e.setStoryAssignee,tone:"update",body:e.toValue(G(s,a)?.name??a)}},ADD_ESTIMATE:(e,t)=>{const{name:s,points:a}=v(y.ADD_ESTIMATE,t);return{title:e.addEstimate,tone:"create",body:e.added(e.estimateText(s,a))}},SET_ESTIMATE_NAME:(e,t,s)=>({title:e.renameEstimate,tone:"update",body:C(e,z(s,t.target.id)?.name,v(y.SET_ESTIMATE_NAME,t).name)}),SET_ESTIMATE_POINTS:(e,t,s)=>{const a=z(s,t.target.id)?.points,n=v(y.SET_ESTIMATE_POINTS,t).points;return{title:e.changeEstimatePoints,tone:"update",body:C(e,a===void 0?void 0:String(a),String(n))}},DELETE_ESTIMATE:(e,t,s)=>({title:e.deleteEstimate,tone:"delete",body:e.removed(z(s,t.target.id)?.name??t.target.id)}),REORDER_ESTIMATE:(e,t)=>({title:e.reorderEstimate,tone:"move",body:pe(e,v(y.REORDER_ESTIMATE,t).after)}),SET_STORY_ESTIMATE:(e,t,s)=>{const a=v(y.SET_STORY_ESTIMATE,t).estimateId;return a===null?{title:e.setStoryEstimate,tone:"delete",body:e.toValue(e.unestimated)}:{title:e.setStoryEstimate,tone:"update",body:e.toValue(z(s,a)?.name??a)}},RECORD_SNAPSHOT:(e,t)=>{const{at:s,tally:a}=v(y.RECORD_SNAPSHOT,t),n=a.reduce((i,o)=>i+o.stories,0);return{title:e.recordSnapshot,tone:"create",body:e.snapshotSummary(ue(s),n)}},DELETE_SNAPSHOT:(e,t,s)=>{const a=$e(s,t.target.id);return{title:e.deleteSnapshot,tone:"delete",body:e.removed(a?ue(a.at):t.target.id)}},SET_FEATURE:(e,t)=>{const{feature:s,enabled:a}=v(y.SET_FEATURE,t);return{title:a?e.enableFeature:e.disableFeature,tone:a?"create":"delete",body:e.featureName(s)}}},xs=(e,t,s,a)=>{let n;try{const i=Kn[t.type];n=i?i(e,t,a??s):{title:t.type,tone:"meta"}}catch{n={title:t.type,tone:"meta"}}return{title:n.title,targetLabel:Is(e,s,t.target),tone:n.tone,...n.body===void 0?{}:{summary:n.body}}},_s=e=>`${e.type} ${I(e.target)} ${JSON.stringify(e.payload)}`,Is=(e,t,s)=>{try{switch(s.type){case"activity":{const a=te(t,s.id);return a?e.targetLabel(e.activityGroup,a.name):e.targetMissing(e.activityGroup,s.id)}case"step":{const a=N(t,s.id)?.step;return a?e.targetLabel(e.stepGroup,a.name):e.targetMissing(e.stepGroup,s.id)}case"story":{const a=T(t,s.id);return a?e.targetLabel(e.storyGroup,a.name):e.targetMissing(e.storyGroup,s.id)}case"milestone":{const a=U(t,s.id);return a?e.targetLabel(e.milestoneGroup,a.name):e.targetMissing(e.milestoneGroup,s.id)}case"status":{const a=D(t,s.id);return a?e.targetLabel(e.statusGroup,a.name):e.targetMissing(e.statusGroup,s.id)}case"label":{const a=j(t,s.id);return a?e.targetLabel(e.labelGroup,a.name):e.targetMissing(e.labelGroup,s.id)}case"member":{const a=G(t,s.id);return a?e.targetLabel(e.memberGroup,a.name):e.targetMissing(e.memberGroup,s.id)}case"estimate":{const a=z(t,s.id);return a?e.targetLabel(e.estimateGroup,a.name):e.targetMissing(e.estimateGroup,s.id)}case"snapshot":{const a=$e(t,s.id);return a?e.targetLabel(e.snapshotGroup,ue(a.at)):e.targetMissing(e.snapshotGroup,s.id)}case"page":return e.targetLabel(e.mapGroup,bt(t));default:return`${s.type} \xB7 ${s.id}`}}catch{return`${s.type} \xB7 ${s.id}`}},As=(e,t,s)=>{const a=[{value:"page:usm",label:e.wholeMap,group:e.mapGroup}];for(const n of t.activities){a.push({value:I({type:"activity",id:n.id}),label:n.name,group:e.activityGroup});for(const i of n.steps)a.push({value:I({type:"step",id:ce(n.id,i.id)}),label:`${n.name} \u203A ${i.name}`,group:e.stepGroup})}for(const n of t.milestones)a.push({value:I({type:"milestone",id:n.id}),label:n.name,group:e.milestoneGroup});for(const n of t.statuses)a.push({value:I({type:"status",id:n.id}),label:n.name,group:e.statusGroup});for(const n of t.labels)a.push({value:I({type:"label",id:n.id}),label:n.name,group:e.labelGroup});for(const n of t.members)a.push({value:I({type:"member",id:n.id}),label:n.name,group:e.memberGroup});for(const n of t.estimates)a.push({value:I({type:"estimate",id:n.id}),label:e.estimateText(n.name,n.points),group:e.estimateGroup});for(const n of t.snapshots)a.push({value:I({type:"snapshot",id:n.id}),label:ue(n.at),group:e.snapshotGroup});for(const n of t.stories)a.push({value:I({type:"story",id:n.id}),label:n.name,group:e.storyGroup});return a},Ms=(e,t,s)=>{const a=t.stories.find(n=>n.id===s.story);if(a)return{value:I({type:"story",id:a.id}),label:a.name,group:e.storyGroup};for(const n of t.activities){const i=n.steps.find(o=>o.id===s.step);if(i)return{value:I({type:"step",id:ce(n.id,i.id)}),label:i.name,group:e.stepGroup}}return null},bt=e=>e.title??"User Story Mapping",qn=(e,t)=>{switch(t.type){case"story":{const s=T(e,t.id);return{tab:null,highlight:null,...Object.fromEntries(xe.map(a=>[a,null])),...s&&Te(e,s)?{[re.key]:re.value}:{}}}case"step":case"activity":return{tab:null,view:null};case"milestone":return{tab:"milestones"};case"status":case"label":case"member":return null;case"estimate":case"snapshot":return P(e,"estimates")?{tab:"burndown"}:null;default:return null}},Ls=(e,t)=>{const s=N(e,t.step),a=s?.activity??te(e,t.activity)??e.activities[0],n=s?.step??a?.steps.find(u=>u.id===t.step)??a?.steps[0],i=On(e,t.story),o={...t};a?o.activity=a.id:delete o.activity,n?o.step=n.id:delete o.step,i?o.story=i.id:delete o.story,o.view=t.view==="group"?"group":"activity";const r=He(e,t);for(const u of xe){const k=$s(e,u,r[u]);k===null?delete o[u]:o[u]=k}t[re.key]!==re.value&&delete o[re.key];const d=vs(e,t);d==="map"?delete o.tab:o.tab=d,U(e,t.milestone)||delete o.milestone;const p=Ge(t);return p===null?delete o.highlight:o.highlight=p,o},Ds=(e,t)=>{switch(t.type){case"activity":return te(e,t.id)!==void 0;case"step":return N(e,t.id)!==void 0;case"story":return T(e,t.id)!==void 0;case"milestone":return U(e,t.id)!==void 0;case"status":return D(e,t.id)!==void 0;case"label":return j(e,t.id)!==void 0;case"member":return G(e,t.id)!==void 0;case"estimate":return z(e,t.id)!==void 0;case"snapshot":return $e(e,t.id)!==void 0;case"page":return!0;default:return!1}},Rs=e=>{const t=ae(e);return{kind:"view",name:"usm",label:"User Story Mapping",parseBase:Jt,emptyBase:lt,actions:y,apply:us,canonicalState:_n,hasTarget:Ds,canonicalTarget:(s,a)=>{if(a.type!=="step")return a;const n=N(s,a.id);return n?{...a,id:ce(n.activity.id,n.step.id)}:a},describe:(s,a,n)=>xs(t,s,a,n),serialize:_s,resolveNavigation:Ls,navigationFor:qn,commentTargets:(s,a)=>As(t,s),currentTarget:(s,a)=>Ms(t,s,a),settings:s=>({items:Be.map(a=>{const n=P(s,a);return{key:a,label:t.featureName(a),hint:t.featureHint(a),on:n,toggle:{type:"SET_FEATURE",target:{type:"page",id:"usm"},payload:{feature:a,enabled:!n}}}}),note:t.featuresNote}),title:bt}},Os=.5,Wn=({widths:e,available:t,gap:s,moreWidth:a,keep:n})=>{if(e.reduce((u,k)=>u+k,0)+s*Math.max(0,e.length-1)<=t+Os)return[];const o=t-a+Os,r=new Set;let d=0;const p=u=>{d+=(r.size===0?0:s)+(e[u]??0),r.add(u)};n>=0&&n<e.length&&p(n);for(const[u,k]of e.entries())if(!r.has(u)){if(d+(r.size===0?0:s)+k>o)break;p(u)}return e.flatMap((u,k)=>r.has(k)?[]:[k])},Ns=new Set;class jn{#e;#t;#s=Ns;#a=0;#n=null;#i=null;constructor(t,s){this.#e=t,this.#t=s,t.addController(this)}get hidden(){return this.#s}get minimum(){return this.#a}hostConnected(){typeof ResizeObserver>"u"||(this.#n=new ResizeObserver(()=>this.#o()))}hostUpdated(){const t=this.#t.row();t!==this.#i&&(this.#i&&this.#n?.unobserve(this.#i),t&&this.#n?.observe(t),this.#i=t),this.#o()}hostDisconnected(){this.#n?.disconnect(),this.#n=null,this.#i=null}#o(){const t=this.#t.row();if(!t)return;const s=this.#t.items(t),a=s.map(E=>E.getBoundingClientRect().width),n=s.findIndex(E=>this.#t.kept(E)),i=s[0]?.parentElement,o=i?Cs(i):0,r=this.#t.more(t),d=r?r.getBoundingClientRect().width+Cs(t):0,p=Wn({widths:a,available:t.getBoundingClientRect().width,gap:o,moreWidth:d,keep:n}),u=new Set(p.flatMap(E=>{const w=s[E];return w?[this.#t.keyOf(w)]:[]})),k=Math.ceil((a[n]??0)+d);Xn(u,this.#s)&&k===this.#a||(this.#s=u.size===0?Ns:u,this.#a=k,this.#e.requestUpdate())}}const Cs=e=>Number.parseFloat(getComputedStyle(e).columnGap)||0,Xn=(e,t)=>e.size===t.size&&[...e].every(s=>t.has(s)),gt=1440*60*1e3,Zn=48,Jn=8,Qn=(e,t,s,a)=>{const n={left:a.inset.left,top:a.inset.top,right:a.width-a.inset.right,bottom:a.height-a.inset.bottom},i=[...e.map($=>$.at),s,...t===null?[]:[t]];let o=Math.min(...i),r=Math.max(...i);r-o<gt&&(o-=gt/2,r+=gt/2);const d=ei(Math.max(0,...e.map($=>$.value))),p=d.at(-1)??1,u=$=>n.left+($-o)/(r-o)*(n.right-n.left),k=$=>n.bottom-$/p*(n.bottom-n.top),E=e.map($=>({x:u($.at),y:k($.value),at:$.at,value:$.value,...$.snapshotId===void 0?{}:{snapshotId:$.snapshotId}})),w=E[0],A=si(o,r,Math.floor((n.right-n.left)/Zn));return{size:a,plot:n,line:E.map($=>`${_e($.x)},${_e($.y)}`).join(" "),dots:E,ideal:t===null||!w?null:{x1:w.x,y1:w.y,x2:u(t),y2:k(0)},nowX:u(s),dueX:t===null?null:u(t),yTicks:d.map($=>({y:k($),value:$})),valueTop:p,xUnit:A.unit,xTicks:A.ats.map($=>({x:u($),at:$})),domain:{start:o,end:r},idealSpan:t===null||!w?null:{at:w.at,value:w.value,due:t}}},ei=e=>{const t=ti(e/4),s=Math.max(1,Math.ceil(e/t));return Array.from({length:s+1},(a,n)=>n*t)},ti=e=>{if(e<=1)return 1;const t=10**Math.floor(Math.log10(e));return([1,2,2.5,5,10].find(a=>Number.isInteger(a*t)&&a*t>=e)??10)*t},_e=e=>Math.round(e*100)/100,si=(e,t,s)=>{const a=Math.max(1,s),n=["day","week","biweek","month","quarter"];for(const i of n){const o=Bs(i,e,t,a);if(o!==null)return{unit:i,ats:o}}return{unit:"year",ats:Bs("year",e,t,1/0)??[]}},Bs=(e,t,s,a)=>{const n=[];for(let i=ai(e,t);i<=s;i=ni(e,i)){if(n.length===a)return null;n.push(i)}return n},ai=(e,t)=>{const s=new Date(t),[a,n,i]=[s.getFullYear(),s.getMonth(),s.getDate()],o=(r,d)=>r.getTime()>=t?r.getTime():d().getTime();switch(e){case"day":return o(new Date(a,n,i),()=>new Date(a,n,i+1));case"week":case"biweek":{const r=o(new Date(a,n,i),()=>new Date(a,n,i+1)),d=new Date(r),p=(8-d.getDay())%7;return new Date(d.getFullYear(),d.getMonth(),d.getDate()+p).getTime()}case"month":return o(new Date(a,n,1),()=>new Date(a,n+1,1));case"quarter":{const r=n-n%3;return o(new Date(a,r,1),()=>new Date(a,r+3,1))}case"year":return o(new Date(a,0,1),()=>new Date(a+1,0,1))}},ni=(e,t)=>{const s=new Date(t),[a,n,i]=[s.getFullYear(),s.getMonth(),s.getDate()],o={day:1,week:7,biweek:14},r={month:1,quarter:3,year:12};return e==="day"||e==="week"||e==="biweek"?new Date(a,n,i+o[e]).getTime():new Date(a,n+r[e],1).getTime()},Ys=(e,t)=>{const{plot:s,domain:a,dots:n}=e,i=Math.min(s.right,Math.max(s.left,t)),o=n.reduce((E,w)=>E===null||Math.abs(w.x-i)<Math.abs(E.x-i)?w:E,null),r=o!==null&&Math.abs(o.x-i)<=Jn?o:null,d=r?.at??a.start+(i-s.left)/(s.right-s.left)*(a.end-a.start),p=r?.value??ii(n,d),u=oi(e,d),k=E=>E===null?null:_e(s.bottom-E/e.valueTop*(s.bottom-s.top));return{x:r?.x??i,at:d,actual:p,ideal:u,actualY:k(p),idealY:k(u),dot:r}},ii=(e,t)=>{const s=e.findIndex(i=>i.at>=t),a=e[s];if(!a)return null;if(a.at===t)return a.value;const n=e[s-1];return n?_e(n.value+(a.value-n.value)*(t-n.at)/(a.at-n.at)):null},oi=(e,t)=>{const s=e.idealSpan;return s===null||t<s.at||t>s.due?null:_e(s.value*(s.due-t)/(s.due-s.at))},M=e=>`--usm-tone: var(--dpk-${e==null||e==="gray"?"ink-faint":e})`,Us={circle:O(an),lightbulb:O(ln),flag:O(dn),play:O(tn),clock:O(nn),eye:O(rn),pause:O(en),check:O(Ja),x:O(sn)},ri=O(Qa),di=e=>{if(e>=1)return Us.check();const t=2*Math.PI*4.5;return l`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
2
|
+
<circle cx="12" cy="12" r="10"></circle>
|
|
3
|
+
${e>0?X`<circle
|
|
4
|
+
class="si-pie"
|
|
5
|
+
cx="12"
|
|
6
|
+
cy="12"
|
|
7
|
+
r="4.5"
|
|
8
|
+
stroke-dasharray=${`${e*t} ${t}`}
|
|
9
|
+
transform="rotate(-90 12 12)"
|
|
10
|
+
></circle>`:m}
|
|
11
|
+
</svg>`},de=e=>{const t=e===void 0?ri():e.icon==="progress"?di(e.progress??1):Us[e.icon]();return l`<span class="status-icon">${t}</span>`},Ps=(e,t)=>e.length===0?m:l`<span class="status-bar" role="img" aria-label=${t}>
|
|
12
|
+
${e.map(s=>l`<span
|
|
13
|
+
class="status-bar-part"
|
|
14
|
+
data-status=${s.id}
|
|
15
|
+
title=${`${s.name}: ${s.count}`}
|
|
16
|
+
style=${`${M(s.tone)};flex-grow:${s.count}`}
|
|
17
|
+
></span>`)}
|
|
18
|
+
</span>`,Ie=q`
|
|
19
|
+
.status-icon {
|
|
20
|
+
display: block;
|
|
21
|
+
flex: none;
|
|
22
|
+
width: 16px;
|
|
23
|
+
height: 16px;
|
|
24
|
+
color: var(--usm-tone);
|
|
25
|
+
}
|
|
26
|
+
.status-icon svg {
|
|
27
|
+
display: block;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
}
|
|
31
|
+
.status-icon .si-pie {
|
|
32
|
+
stroke-width: 9;
|
|
33
|
+
}
|
|
34
|
+
.status-bar {
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: 2px;
|
|
37
|
+
height: 6px;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
}
|
|
40
|
+
.status-bar-part {
|
|
41
|
+
min-width: 4px;
|
|
42
|
+
border-radius: 3px;
|
|
43
|
+
background: var(--usm-tone);
|
|
44
|
+
}
|
|
45
|
+
.status-bar-part[data-status=''] {
|
|
46
|
+
background: color-mix(in srgb, var(--dpk-ink-faint) 30%, transparent);
|
|
47
|
+
}
|
|
48
|
+
`,li=q`
|
|
49
|
+
:host {
|
|
50
|
+
position: relative;
|
|
51
|
+
display: block;
|
|
52
|
+
}
|
|
53
|
+
.bd-plot {
|
|
54
|
+
position: relative;
|
|
55
|
+
border-radius: var(--dpk-radius-sm);
|
|
56
|
+
outline: none;
|
|
57
|
+
}
|
|
58
|
+
.bd-plot:focus-visible {
|
|
59
|
+
box-shadow: var(--dpk-focus);
|
|
60
|
+
}
|
|
61
|
+
.bd-svg {
|
|
62
|
+
display: block;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: auto;
|
|
65
|
+
overflow: visible;
|
|
66
|
+
touch-action: pan-y;
|
|
67
|
+
}
|
|
68
|
+
.bd-grid-line {
|
|
69
|
+
stroke: var(--dpk-rule);
|
|
70
|
+
stroke-width: 1;
|
|
71
|
+
}
|
|
72
|
+
.bd-grid-line[data-axis='x'] {
|
|
73
|
+
stroke-dasharray: 1 3;
|
|
74
|
+
}
|
|
75
|
+
.bd-tick,
|
|
76
|
+
.bd-marker {
|
|
77
|
+
fill: var(--dpk-ink-faint);
|
|
78
|
+
font-family: var(--dpk-mono);
|
|
79
|
+
font-size: 10px;
|
|
80
|
+
}
|
|
81
|
+
.bd-marker {
|
|
82
|
+
font-weight: 650;
|
|
83
|
+
}
|
|
84
|
+
.bd-marker[data-marker='due'] {
|
|
85
|
+
fill: var(--dpk-amber);
|
|
86
|
+
}
|
|
87
|
+
.bd-marker[data-marker='today'] {
|
|
88
|
+
fill: var(--dpk-blue);
|
|
89
|
+
}
|
|
90
|
+
.bd-due {
|
|
91
|
+
stroke: var(--dpk-amber);
|
|
92
|
+
stroke-width: 1.5;
|
|
93
|
+
}
|
|
94
|
+
.bd-now {
|
|
95
|
+
stroke: var(--dpk-blue);
|
|
96
|
+
stroke-width: 1;
|
|
97
|
+
stroke-dasharray: 2 3;
|
|
98
|
+
}
|
|
99
|
+
.bd-ideal {
|
|
100
|
+
stroke: var(--dpk-ink-faint);
|
|
101
|
+
stroke-width: 1.25;
|
|
102
|
+
stroke-dasharray: 5 4;
|
|
103
|
+
}
|
|
104
|
+
.bd-line {
|
|
105
|
+
fill: none;
|
|
106
|
+
stroke: var(--usm-tone);
|
|
107
|
+
stroke-width: 2.25;
|
|
108
|
+
stroke-linejoin: round;
|
|
109
|
+
stroke-linecap: round;
|
|
110
|
+
}
|
|
111
|
+
.bd-dot {
|
|
112
|
+
fill: var(--dpk-paper-raised);
|
|
113
|
+
stroke: var(--usm-tone);
|
|
114
|
+
stroke-width: 2;
|
|
115
|
+
}
|
|
116
|
+
.bd-dot[data-now] {
|
|
117
|
+
fill: var(--usm-tone);
|
|
118
|
+
}
|
|
119
|
+
.bd-cross {
|
|
120
|
+
stroke: var(--dpk-ink-soft);
|
|
121
|
+
stroke-width: 1;
|
|
122
|
+
pointer-events: none;
|
|
123
|
+
}
|
|
124
|
+
.bd-mark {
|
|
125
|
+
stroke: var(--dpk-paper-raised);
|
|
126
|
+
stroke-width: 2;
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
}
|
|
129
|
+
.bd-mark[data-line='actual'] {
|
|
130
|
+
fill: var(--usm-tone);
|
|
131
|
+
}
|
|
132
|
+
.bd-mark[data-line='ideal'] {
|
|
133
|
+
fill: var(--dpk-ink-faint);
|
|
134
|
+
}
|
|
135
|
+
.bd-tip {
|
|
136
|
+
position: absolute;
|
|
137
|
+
z-index: 1;
|
|
138
|
+
display: grid;
|
|
139
|
+
gap: 3px;
|
|
140
|
+
min-width: 116px;
|
|
141
|
+
padding: 7px 10px;
|
|
142
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
143
|
+
border-radius: var(--dpk-radius-sm);
|
|
144
|
+
background: var(--dpk-paper-raised);
|
|
145
|
+
box-shadow: var(--dpk-shadow-sm);
|
|
146
|
+
font-size: 11.5px;
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
white-space: nowrap;
|
|
149
|
+
transform: translateX(10px);
|
|
150
|
+
}
|
|
151
|
+
.bd-tip[data-side='left'] {
|
|
152
|
+
transform: translateX(calc(-100% - 10px));
|
|
153
|
+
}
|
|
154
|
+
.bd-tip-at {
|
|
155
|
+
color: var(--dpk-ink-soft);
|
|
156
|
+
font-family: var(--dpk-mono);
|
|
157
|
+
font-size: 10.5px;
|
|
158
|
+
}
|
|
159
|
+
.bd-tip-row {
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
gap: 6px;
|
|
163
|
+
color: var(--dpk-ink-soft);
|
|
164
|
+
}
|
|
165
|
+
.bd-tip-row b {
|
|
166
|
+
margin-left: auto;
|
|
167
|
+
padding-left: 12px;
|
|
168
|
+
color: var(--dpk-ink);
|
|
169
|
+
font-family: var(--dpk-mono);
|
|
170
|
+
font-variant-numeric: tabular-nums;
|
|
171
|
+
}
|
|
172
|
+
.bd-swatch {
|
|
173
|
+
flex: none;
|
|
174
|
+
width: 12px;
|
|
175
|
+
height: 0;
|
|
176
|
+
border-top: 2.25px solid var(--usm-tone);
|
|
177
|
+
}
|
|
178
|
+
.bd-swatch[data-line='ideal'] {
|
|
179
|
+
border-top: 1.5px dashed var(--dpk-ink-faint);
|
|
180
|
+
}
|
|
181
|
+
`;class pi extends Ee{static{this.styles=[li]}static{this.properties={points:{attribute:!1},due:{attribute:!1},now:{attribute:!1},size:{attribute:!1},tone:{attribute:!1},label:{attribute:!1},readout:{state:!0}}}#e=new Qe(this);constructor(){super(),this.points=[],this.due=null,this.now=0,this.size={width:320,height:160,inset:{top:12,right:12,bottom:24,left:32}},this.tone="accent",this.label="",this.readout=null}render(){const t=ae(this.#e.locale),s=Qn(this.points,this.due,this.now,this.size),{size:a}=s,n=this.points.at(-1)?.value??0;return l`<div
|
|
182
|
+
class="bd-plot"
|
|
183
|
+
tabindex="0"
|
|
184
|
+
role="img"
|
|
185
|
+
aria-label=${t.chartAria(this.label,n)}
|
|
186
|
+
style=${M(this.tone)}
|
|
187
|
+
@pointermove=${i=>this.#t(s,i)}
|
|
188
|
+
@pointerleave=${()=>this.readout=null}
|
|
189
|
+
@focus=${()=>this.#s(s,s.dots.length-1)}
|
|
190
|
+
@blur=${()=>this.readout=null}
|
|
191
|
+
@keydown=${i=>this.#a(s,i)}
|
|
192
|
+
>
|
|
193
|
+
<svg class="bd-svg" viewBox=${`0 0 ${a.width} ${a.height}`} aria-hidden="true">
|
|
194
|
+
${ci(t,s)} ${ui(s)} ${this.readout?mi(s,this.readout):m}
|
|
195
|
+
</svg>
|
|
196
|
+
${this.readout?hi(t,s,this.readout):m}
|
|
197
|
+
</div>`}#t(t,s){const a=this.renderRoot.querySelector("svg")?.getBoundingClientRect();!a||a.width===0||(this.readout=Ys(t,(s.clientX-a.left)/a.width*t.size.width))}#s(t,s){const a=t.dots[s];this.readout=a?Ys(t,a.x):null}#a(t,s){const a=t.dots.length-1,n=t.dots.findIndex(o=>o===this.readout?.dot),i=(()=>{switch(s.key){case"ArrowLeft":return Math.max(0,(n===-1?a:n)-1);case"ArrowRight":return Math.min(a,(n===-1?a:n)+1);case"Home":return 0;case"End":return a;default:return null}})();i!==null&&(s.preventDefault(),this.#s(t,i))}}const ci=(e,t)=>{const{plot:s,size:a}=t,n=a.height-8;return X`
|
|
198
|
+
${t.yTicks.map(i=>X`<line class="bd-grid-line" x1=${s.left} x2=${s.right} y1=${i.y} y2=${i.y}></line>
|
|
199
|
+
<text class="bd-tick" x=${s.left-6} y=${i.y} text-anchor="end" dominant-baseline="middle">${i.value}</text>`)}
|
|
200
|
+
${t.xTicks.map(i=>X`<line class="bd-grid-line" data-axis="x" x1=${i.x} x2=${i.x} y1=${s.top} y2=${s.bottom}></line>
|
|
201
|
+
<text class="bd-tick" data-axis="x" x=${i.x} y=${n} text-anchor="middle">${e.axisDate(i.at,t.xUnit)}</text>`)}
|
|
202
|
+
${t.dueX===null||t.idealSpan===null?m:X`<line class="bd-due" x1=${t.dueX} x2=${t.dueX} y1=${s.top} y2=${s.bottom}></line>
|
|
203
|
+
<text class="bd-marker" data-marker="due" x=${t.dueX-4} y=${s.top+10} text-anchor="end">${`${e.chartDue} ${e.axisDate(t.idealSpan.due,"day")}`}</text>`}
|
|
204
|
+
<line class="bd-now" x1=${t.nowX} x2=${t.nowX} y1=${s.top} y2=${s.bottom}></line>
|
|
205
|
+
<text class="bd-marker" data-marker="today" x=${t.nowX+4} y=${s.top+10} text-anchor="start">${e.chartToday}</text>
|
|
206
|
+
`},ui=e=>X`
|
|
207
|
+
${e.ideal?X`<line class="bd-ideal" x1=${e.ideal.x1} y1=${e.ideal.y1} x2=${e.ideal.x2} y2=${e.ideal.y2}></line>`:m}
|
|
208
|
+
<polyline class="bd-line" points=${e.line}></polyline>
|
|
209
|
+
${e.dots.map(t=>X`<circle class="bd-dot" data-now=${t.snapshotId===void 0?"true":m} cx=${t.x} cy=${t.y} r="3.5"></circle>`)}
|
|
210
|
+
`,mi=(e,t)=>X`
|
|
211
|
+
<line class="bd-cross" x1=${t.x} x2=${t.x} y1=${e.plot.top} y2=${e.plot.bottom}></line>
|
|
212
|
+
${t.idealY===null?m:X`<circle class="bd-mark" data-line="ideal" cx=${t.x} cy=${t.idealY} r="3.5"></circle>`}
|
|
213
|
+
${t.actualY===null?m:X`<circle class="bd-mark" data-line="actual" cx=${t.x} cy=${t.actualY} r="4.5"></circle>`}
|
|
214
|
+
`,hi=(e,t,s)=>{const{size:a,plot:n}=t,i=s.x>a.width*.6?"left":"right",o=s.dot?s.dot.snapshotId===void 0?`${e.chartNow} \xB7 ${ue(s.dot.at)}`:ue(s.dot.at):e.axisDate(s.at,"day");return l`<div
|
|
215
|
+
class="bd-tip"
|
|
216
|
+
data-testid="usm-chart-readout"
|
|
217
|
+
data-side=${i}
|
|
218
|
+
style=${`left: ${s.x/a.width*100}%; top: calc(${n.top/a.height*100}% + 20px)`}
|
|
219
|
+
>
|
|
220
|
+
<span class="bd-tip-at">${o}</span>
|
|
221
|
+
${s.actual===null?m:l`<span class="bd-tip-row" data-line="actual"
|
|
222
|
+
><span class="bd-swatch" data-line="actual"></span>${e.chartActual}<b>${s.actual}</b></span
|
|
223
|
+
>`}
|
|
224
|
+
${s.ideal===null?m:l`<span class="bd-tip-row" data-line="ideal"
|
|
225
|
+
><span class="bd-swatch" data-line="ideal"></span>${e.chartIdeal}<b>${s.ideal}</b></span
|
|
226
|
+
>`}
|
|
227
|
+
</div>`},bi=()=>{customElements.get("dpk-internal-usm-burndown-chart")||customElements.define("dpk-internal-usm-burndown-chart",pi)},gi=e=>{const t=e.stories.length;return{rows:e.labels.map((a,n)=>{const i=e.stories.filter(o=>o.labelIds?.includes(a.id)).length;return{id:a.id,name:a.name,tone:a.tone,previousId:e.labels[n-1]?.id??null,nextId:e.labels[n+1]?.id??null,storyCount:i,share:t===0?0:i/t}})}},fi=e=>{const t=e.stories.length;return{rows:e.members.map((a,n)=>{const i=e.stories.filter(o=>o.assigneeId===a.id).length;return{id:a.id,name:a.name,tone:a.tone,previousId:e.members[n-1]?.id??null,nextId:e.members[n+1]?.id??null,storyCount:i,share:t===0?0:i/t}})}},zs=(e,t)=>{const s=Z("new-activity",W(t.state));if(!t.dispatch({type:"ADD_ACTIVITY",target:{type:"page",id:"usm"},payload:{id:s,name:e.newActivityName}}).ok)return;const n=Z("new-step",[...W(t.state),s]);t.dispatch({type:"ADD_STEP",target:{type:"activity",id:s},payload:{id:n,name:e.newStepName}}),t.navigate({activity:s,step:null,story:null})},yi=(e,t,s)=>{const a=Z("new-step",W(t.state));t.dispatch({type:"ADD_STEP",target:{type:"activity",id:s},payload:{id:a,name:e.newStepName}})},Fs=(e,t)=>{const s=Z("new-milestone",W(t.state));t.dispatch({type:"ADD_MILESTONE",target:{type:"page",id:"usm"},payload:{id:s,name:e.newMilestoneName}})},Vs=(e,t,s,a,n)=>{const i=Z("new-story",W(t.state));t.dispatch({type:"ADD_STORY",target:{type:"step",id:a},payload:{id:i,name:e.newStoryName,activityId:s,...n===void 0?{}:{milestoneId:n},number:cs(t.base,t.state)}}).ok&&t.navigate({activity:s,step:a,story:i})},vi=(e,t)=>{const s=Z("new-status",W(t.state));t.dispatch({type:"ADD_STATUS",target:{type:"page",id:"usm"},payload:{id:s,name:e.newStatusName,tone:dt(t.state.statuses.length)}})},ki=(e,t)=>{const s=Z("new-label",W(t.state));t.dispatch({type:"ADD_LABEL",target:{type:"page",id:"usm"},payload:{id:s,name:e.newLabelName,tone:Ue(t.state.labels.length)}})},Si=(e,t)=>{const s=Z("new-member",W(t.state));t.dispatch({type:"ADD_MEMBER",target:{type:"page",id:"usm"},payload:{id:s,name:e.newMemberName,tone:Ue(t.state.members.length)}})},wi=(e,t)=>{const s=Z("new-estimate",W(t.state)),a=Math.max(0,...t.state.estimates.map(n=>n.points))+1;t.dispatch({type:"ADD_ESTIMATE",target:{type:"page",id:"usm"},payload:{id:s,name:e.newEstimateName,points:a}})},Ei=(e,t)=>{const s=Z(`snapshot-${t.toISOString().slice(0,10)}`,W(e.state));e.dispatch({type:"RECORD_SNAPSHOT",target:{type:"page",id:"usm"},payload:{id:s,at:t.toISOString(),tally:ls(e.state)}})},$i=(e,t,s,a)=>l`
|
|
228
|
+
<section class="st-overview" data-testid="usm-statuses">
|
|
229
|
+
${s.rows.length===0?l`<div class="empty">
|
|
230
|
+
<h2>${e.noStatusesTitle}</h2>
|
|
231
|
+
<p>${e.noStatusesBody}</p>
|
|
232
|
+
</div>`:m}
|
|
233
|
+
<ol class="st-list">
|
|
234
|
+
${B(s.rows,n=>n.id,n=>Ti(e,t,n,a))}
|
|
235
|
+
</ol>
|
|
236
|
+
<div>
|
|
237
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>vi(e,t)}>
|
|
238
|
+
${e.newStatusButton}
|
|
239
|
+
</button>
|
|
240
|
+
</div>
|
|
241
|
+
</section>
|
|
242
|
+
`,Ti=(e,t,s,a)=>{const n=a.openFor===s.id,i={type:"status",id:s.id},o=r=>{t.dispatch({type:"REORDER_STATUS",target:i,payload:{after:r}})};return l`
|
|
243
|
+
<li
|
|
244
|
+
class="st-row st-row--status"
|
|
245
|
+
data-status=${s.id}
|
|
246
|
+
data-dpk-target=${I(i)}
|
|
247
|
+
style=${M(s.tone)}
|
|
248
|
+
>
|
|
249
|
+
<button
|
|
250
|
+
class="st-icon-trigger"
|
|
251
|
+
type="button"
|
|
252
|
+
data-icon-trigger=${s.id}
|
|
253
|
+
aria-haspopup="menu"
|
|
254
|
+
aria-expanded=${String(n)}
|
|
255
|
+
aria-label=${`${e.statusIconLabel}: ${e.iconName(s.icon)}`}
|
|
256
|
+
title=${e.iconName(s.icon)}
|
|
257
|
+
@click=${()=>a.toggle(s.id)}
|
|
258
|
+
>
|
|
259
|
+
${de(s)}
|
|
260
|
+
</button>
|
|
261
|
+
${n?xi(e,t,s,a):m}
|
|
262
|
+
<span class="st-name">
|
|
263
|
+
<dpk-inline-edit
|
|
264
|
+
.value=${s.name}
|
|
265
|
+
.label=${e.statusNameLabel}
|
|
266
|
+
@dpk-commit=${J(r=>t.dispatch({type:"SET_STATUS_NAME",target:i,payload:{name:r}}))}
|
|
267
|
+
></dpk-inline-edit>
|
|
268
|
+
</span>
|
|
269
|
+
${yt(e,s.storyCount,s.share)}
|
|
270
|
+
${ft(e,s.tone,r=>t.dispatch({type:"SET_STATUS_TONE",target:i,payload:{tone:r}}))}
|
|
271
|
+
<label class="st-done" title=${e.doneStatusAria(s.name)}>
|
|
272
|
+
<input
|
|
273
|
+
type="radio"
|
|
274
|
+
name="usm-done-status"
|
|
275
|
+
data-role="done"
|
|
276
|
+
aria-label=${e.doneStatusAria(s.name)}
|
|
277
|
+
.checked=${s.done}
|
|
278
|
+
@change=${()=>t.dispatch({type:"SET_DONE_STATUS",target:i,payload:{}})}
|
|
279
|
+
/>
|
|
280
|
+
<span aria-hidden="true">${e.doneStatusMark}</span>
|
|
281
|
+
</label>
|
|
282
|
+
${qe(e,{ids:t.state.statuses.map(r=>r.id),row:s,deleteLabel:e.deleteStatusAria,reorder:o,remove:()=>t.dispatch({type:"DELETE_STATUS",target:i,payload:{}})})}
|
|
283
|
+
</li>
|
|
284
|
+
`},xi=(e,t,s,a)=>l`<div
|
|
285
|
+
id="icon-menu"
|
|
286
|
+
class="comment-pop icon-menu"
|
|
287
|
+
popover="manual"
|
|
288
|
+
role="menu"
|
|
289
|
+
aria-label=${e.statusIconLabel}
|
|
290
|
+
style=${M(s.tone)}
|
|
291
|
+
@keydown=${n=>{n.key==="Escape"&&(n.preventDefault(),a.close())}}
|
|
292
|
+
>
|
|
293
|
+
${Vt.map(n=>l`<button
|
|
294
|
+
class="icon-option"
|
|
295
|
+
type="button"
|
|
296
|
+
role="menuitemradio"
|
|
297
|
+
data-icon=${n}
|
|
298
|
+
title=${e.iconName(n)}
|
|
299
|
+
aria-label=${e.iconName(n)}
|
|
300
|
+
aria-checked=${String(n===s.icon)}
|
|
301
|
+
@click=${()=>{n!==s.icon&&t.dispatch({type:"SET_STATUS_ICON",target:{type:"status",id:s.id},payload:{icon:n}}),a.close()}}
|
|
302
|
+
>
|
|
303
|
+
${de({icon:n,progress:s.progress})}
|
|
304
|
+
</button>`)}
|
|
305
|
+
</div>`,ft=(e,t,s)=>l`<span class="st-tones" role="radiogroup" aria-label=${e.statusToneLabel}>
|
|
306
|
+
${Ce.map(a=>l`<button
|
|
307
|
+
class="st-tone"
|
|
308
|
+
type="button"
|
|
309
|
+
role="radio"
|
|
310
|
+
data-tone=${a}
|
|
311
|
+
style=${M(a)}
|
|
312
|
+
title=${e.toneName(a)}
|
|
313
|
+
aria-label=${e.toneName(a)}
|
|
314
|
+
aria-checked=${a===t?"true":"false"}
|
|
315
|
+
@click=${()=>{a!==t&&s(a)}}
|
|
316
|
+
></button>`)}
|
|
317
|
+
</span>`,qe=(e,t)=>l`<span class="st-tools">
|
|
318
|
+
<button
|
|
319
|
+
class="dpk-icon-btn"
|
|
320
|
+
type="button"
|
|
321
|
+
aria-label=${e.moveUpAria}
|
|
322
|
+
?disabled=${t.row.previousId===null}
|
|
323
|
+
@click=${()=>t.reorder(_i(t.ids,t.row.previousId))}
|
|
324
|
+
>
|
|
325
|
+
↑
|
|
326
|
+
</button>
|
|
327
|
+
<button
|
|
328
|
+
class="dpk-icon-btn"
|
|
329
|
+
type="button"
|
|
330
|
+
aria-label=${e.moveDownAria}
|
|
331
|
+
?disabled=${t.row.nextId===null}
|
|
332
|
+
@click=${()=>t.reorder(t.row.nextId)}
|
|
333
|
+
>
|
|
334
|
+
↓
|
|
335
|
+
</button>
|
|
336
|
+
<button class="dpk-icon-btn" type="button" data-role="delete" aria-label=${t.deleteLabel} @click=${t.remove}>
|
|
337
|
+
${et()}
|
|
338
|
+
</button>
|
|
339
|
+
</span>`,_i=(e,t)=>{const s=t===null?-1:e.indexOf(t);return s<=0?null:e[s-1]??null},yt=(e,t,s)=>l`
|
|
340
|
+
<span class="st-share">
|
|
341
|
+
<span class="st-share-text">${e.statusShare(t,Math.round(s*100))}</span>
|
|
342
|
+
<span class="st-meter" aria-hidden="true"><span style=${`width:${s*100}%`}></span></span>
|
|
343
|
+
</span>
|
|
344
|
+
`,Ii=(e,t,s)=>l`
|
|
345
|
+
<section class="st-overview" data-testid="usm-labels">
|
|
346
|
+
${s.rows.length===0?l`<div class="empty">
|
|
347
|
+
<h2>${e.noLabelsTitle}</h2>
|
|
348
|
+
<p>${e.noLabelsBody}</p>
|
|
349
|
+
</div>`:m}
|
|
350
|
+
<ol class="st-list">
|
|
351
|
+
${B(s.rows,a=>a.id,a=>Ai(e,t,a))}
|
|
352
|
+
</ol>
|
|
353
|
+
<div>
|
|
354
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>ki(e,t)}>
|
|
355
|
+
${e.newLabelButton}
|
|
356
|
+
</button>
|
|
357
|
+
</div>
|
|
358
|
+
</section>
|
|
359
|
+
`,Ai=(e,t,s)=>{const a={type:"label",id:s.id};return l`
|
|
360
|
+
<li class="st-row" data-label=${s.id} data-dpk-target=${I(a)} style=${M(s.tone)}>
|
|
361
|
+
<span class="label-swatch" aria-hidden="true"></span>
|
|
362
|
+
<span class="st-name">
|
|
363
|
+
<dpk-inline-edit
|
|
364
|
+
.value=${s.name}
|
|
365
|
+
.label=${e.labelNameLabel}
|
|
366
|
+
@dpk-commit=${J(n=>t.dispatch({type:"SET_LABEL_NAME",target:a,payload:{name:n}}))}
|
|
367
|
+
></dpk-inline-edit>
|
|
368
|
+
</span>
|
|
369
|
+
${yt(e,s.storyCount,s.share)}
|
|
370
|
+
${ft(e,s.tone,n=>t.dispatch({type:"SET_LABEL_TONE",target:a,payload:{tone:n}}))}
|
|
371
|
+
${qe(e,{ids:t.state.labels.map(n=>n.id),row:s,deleteLabel:e.deleteLabelAria,reorder:n=>t.dispatch({type:"REORDER_LABEL",target:a,payload:{after:n}}),remove:()=>t.dispatch({type:"DELETE_LABEL",target:a,payload:{}})})}
|
|
372
|
+
</li>
|
|
373
|
+
`},Mi=new Intl.Segmenter(void 0,{granularity:"grapheme"}),vt=e=>{const[t]=Mi.segment(e.trim());return t?t.segment.toUpperCase():"?"},Li=(e,t,s)=>l`
|
|
374
|
+
<section class="st-overview" data-testid="usm-members">
|
|
375
|
+
${s.rows.length===0?l`<div class="empty">
|
|
376
|
+
<h2>${e.noMembersTitle}</h2>
|
|
377
|
+
<p>${e.noMembersBody}</p>
|
|
378
|
+
</div>`:m}
|
|
379
|
+
<ol class="st-list">
|
|
380
|
+
${B(s.rows,a=>a.id,a=>Di(e,t,a))}
|
|
381
|
+
</ol>
|
|
382
|
+
<div>
|
|
383
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Si(e,t)}>
|
|
384
|
+
${e.newMemberButton}
|
|
385
|
+
</button>
|
|
386
|
+
</div>
|
|
387
|
+
</section>
|
|
388
|
+
`,Di=(e,t,s)=>{const a={type:"member",id:s.id};return l`
|
|
389
|
+
<li class="st-row" data-member=${s.id} data-dpk-target=${I(a)} style=${M(s.tone)}>
|
|
390
|
+
<span class="member-avatar" aria-hidden="true">${vt(s.name)}</span>
|
|
391
|
+
<span class="st-name">
|
|
392
|
+
<dpk-inline-edit
|
|
393
|
+
.value=${s.name}
|
|
394
|
+
.label=${e.memberNameLabel}
|
|
395
|
+
@dpk-commit=${J(n=>t.dispatch({type:"SET_MEMBER_NAME",target:a,payload:{name:n}}))}
|
|
396
|
+
></dpk-inline-edit>
|
|
397
|
+
</span>
|
|
398
|
+
${yt(e,s.storyCount,s.share)}
|
|
399
|
+
${ft(e,s.tone,n=>t.dispatch({type:"SET_MEMBER_TONE",target:a,payload:{tone:n}}))}
|
|
400
|
+
${qe(e,{ids:t.state.members.map(n=>n.id),row:s,deleteLabel:e.deleteMemberAria,reorder:n=>t.dispatch({type:"REORDER_MEMBER",target:a,payload:{after:n}}),remove:()=>t.dispatch({type:"DELETE_MEMBER",target:a,payload:{}})})}
|
|
401
|
+
</li>
|
|
402
|
+
`},he=e=>{const t=be(e);return e.statuses.map((s,a)=>({id:s.id,name:s.name,tone:s.tone,icon:s.icon,progress:Gs(a,t)}))},Gs=(e,t)=>t<=0?1:Math.min(1,e/t),Hs=(e,t)=>e.find(s=>s.id===t.statusId),Ks=(e,t)=>he(e).map(s=>({...s,count:t.filter(a=>a.statusId===s.id).length})).filter(s=>s.count>0),Ri=e=>{const t=e.stories.length,s=o=>t===0?0:o/t,a=o=>e.stories.filter(r=>r.statusId===o).length,n=be(e);return{rows:e.statuses.map((o,r)=>{const d=a(o.id);return{id:o.id,name:o.name,tone:o.tone,icon:o.icon,progress:Gs(r,n),done:r===n,previousId:e.statuses[r-1]?.id??null,nextId:e.statuses[r+1]?.id??null,storyCount:d,share:s(d)}})}},Oi={width:228,height:116},Ni=q`
|
|
403
|
+
:host {
|
|
404
|
+
display: block;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.st-overview {
|
|
408
|
+
display: grid;
|
|
409
|
+
gap: 20px;
|
|
410
|
+
max-width: none;
|
|
411
|
+
padding: 0;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/* The panel already is a frame: the list itself draws none. */
|
|
415
|
+
.st-list {
|
|
416
|
+
display: grid;
|
|
417
|
+
margin: 0;
|
|
418
|
+
padding: 0;
|
|
419
|
+
list-style: none;
|
|
420
|
+
border: 0;
|
|
421
|
+
background: none;
|
|
422
|
+
box-shadow: none;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.st-row {
|
|
426
|
+
display: flex;
|
|
427
|
+
flex-wrap: wrap;
|
|
428
|
+
align-items: center;
|
|
429
|
+
gap: 8px 12px;
|
|
430
|
+
padding: 10px 0;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.st-row + .st-row {
|
|
434
|
+
border-top: 1px solid var(--dpk-rule);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.st-name {
|
|
438
|
+
flex: 1 1 120px;
|
|
439
|
+
min-width: 0;
|
|
440
|
+
font-size: 14px;
|
|
441
|
+
font-weight: 650;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.st-share {
|
|
445
|
+
flex: 1 1 140px;
|
|
446
|
+
display: grid;
|
|
447
|
+
gap: 5px;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.st-share-text {
|
|
451
|
+
color: var(--dpk-ink-faint);
|
|
452
|
+
font-family: var(--dpk-mono);
|
|
453
|
+
font-size: 11px;
|
|
454
|
+
font-variant-numeric: tabular-nums;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.st-meter {
|
|
458
|
+
height: 5px;
|
|
459
|
+
border-radius: 3px;
|
|
460
|
+
background: var(--dpk-paper-sunken);
|
|
461
|
+
overflow: hidden;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.st-meter > span {
|
|
465
|
+
display: block;
|
|
466
|
+
height: 100%;
|
|
467
|
+
border-radius: 3px;
|
|
468
|
+
background: var(--usm-tone);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.st-done {
|
|
472
|
+
display: inline-flex;
|
|
473
|
+
align-items: center;
|
|
474
|
+
gap: 6px;
|
|
475
|
+
color: var(--dpk-ink-faint);
|
|
476
|
+
font-size: 12px;
|
|
477
|
+
font-weight: 600;
|
|
478
|
+
white-space: nowrap;
|
|
479
|
+
cursor: pointer;
|
|
480
|
+
user-select: none;
|
|
481
|
+
transition: color 140ms var(--dpk-ease);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.st-done:hover,
|
|
485
|
+
.st-done:has(:checked) {
|
|
486
|
+
color: var(--dpk-ink);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.st-done input {
|
|
490
|
+
margin: 0;
|
|
491
|
+
accent-color: var(--usm-tone);
|
|
492
|
+
cursor: inherit;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.st-tones {
|
|
496
|
+
display: inline-flex;
|
|
497
|
+
flex-wrap: wrap;
|
|
498
|
+
gap: 5px;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.st-tone {
|
|
502
|
+
width: 18px;
|
|
503
|
+
height: 18px;
|
|
504
|
+
padding: 0;
|
|
505
|
+
border: 2px solid var(--dpk-paper-raised);
|
|
506
|
+
border-radius: 50%;
|
|
507
|
+
background: var(--usm-tone);
|
|
508
|
+
box-shadow: 0 0 0 1px var(--dpk-rule-strong);
|
|
509
|
+
cursor: pointer;
|
|
510
|
+
transition: box-shadow 150ms ease;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.st-tone:hover {
|
|
514
|
+
box-shadow: 0 0 0 1px var(--usm-tone);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.st-tone[aria-checked='true'] {
|
|
518
|
+
box-shadow: 0 0 0 2px var(--usm-tone);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.st-tone:focus-visible {
|
|
522
|
+
outline: none;
|
|
523
|
+
box-shadow: var(--dpk-focus);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/* A status's own icon opens the menu of icons. */
|
|
527
|
+
.st-icon-trigger {
|
|
528
|
+
display: inline-grid;
|
|
529
|
+
place-items: center;
|
|
530
|
+
width: 30px;
|
|
531
|
+
height: 30px;
|
|
532
|
+
margin: -7px;
|
|
533
|
+
padding: 0;
|
|
534
|
+
border: 1px solid transparent;
|
|
535
|
+
border-radius: var(--dpk-radius-sm);
|
|
536
|
+
background: transparent;
|
|
537
|
+
cursor: pointer;
|
|
538
|
+
transition:
|
|
539
|
+
background 140ms var(--dpk-ease),
|
|
540
|
+
border-color 140ms var(--dpk-ease);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.st-icon-trigger:hover,
|
|
544
|
+
.st-icon-trigger[aria-expanded='true'] {
|
|
545
|
+
border-color: var(--dpk-rule-strong);
|
|
546
|
+
background: var(--dpk-paper-raised);
|
|
547
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.st-icon-trigger:focus-visible {
|
|
551
|
+
outline: none;
|
|
552
|
+
box-shadow: var(--dpk-focus);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.comment-pop.icon-menu {
|
|
556
|
+
grid-template-columns: repeat(5, 36px);
|
|
557
|
+
gap: 4px;
|
|
558
|
+
padding: 8px;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.icon-option {
|
|
562
|
+
display: inline-grid;
|
|
563
|
+
place-items: center;
|
|
564
|
+
width: 36px;
|
|
565
|
+
height: 36px;
|
|
566
|
+
padding: 0;
|
|
567
|
+
border: 1px solid transparent;
|
|
568
|
+
border-radius: var(--dpk-radius-sm);
|
|
569
|
+
background: transparent;
|
|
570
|
+
cursor: pointer;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.icon-option .status-icon {
|
|
574
|
+
width: 18px;
|
|
575
|
+
height: 18px;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.icon-option:hover,
|
|
579
|
+
.icon-option:focus-visible {
|
|
580
|
+
outline: none;
|
|
581
|
+
background: var(--dpk-paper-inset);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.icon-option[aria-checked='true'] {
|
|
585
|
+
border-color: color-mix(in oklab, var(--usm-tone) 55%, transparent);
|
|
586
|
+
background: color-mix(in oklab, var(--usm-tone) 12%, transparent);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/* A label's color, where a status shows its icon. */
|
|
590
|
+
.label-swatch {
|
|
591
|
+
width: 12px;
|
|
592
|
+
height: 12px;
|
|
593
|
+
border-radius: 4px;
|
|
594
|
+
background: var(--usm-tone);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/* A member's initial in their color, where a label shows its swatch. */
|
|
598
|
+
.member-avatar {
|
|
599
|
+
display: inline-grid;
|
|
600
|
+
place-items: center;
|
|
601
|
+
width: 22px;
|
|
602
|
+
height: 22px;
|
|
603
|
+
border-radius: 50%;
|
|
604
|
+
background: var(--usm-tone);
|
|
605
|
+
color: var(--dpk-paper-raised);
|
|
606
|
+
font-size: 11px;
|
|
607
|
+
font-weight: 700;
|
|
608
|
+
line-height: 1;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/* The tools stay at the end of whatever line the row's content ends on. */
|
|
612
|
+
.st-tools {
|
|
613
|
+
display: inline-flex;
|
|
614
|
+
gap: 2px;
|
|
615
|
+
margin-left: auto;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.st-tools .dpk-icon-btn {
|
|
619
|
+
width: 26px;
|
|
620
|
+
height: 26px;
|
|
621
|
+
font-size: 13px;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/* The same empty state the map's pages use, repeated here because a section
|
|
625
|
+
does not inherit the page's CSS (see the file header). */
|
|
626
|
+
.empty {
|
|
627
|
+
border: 1px dashed var(--dpk-rule-strong);
|
|
628
|
+
border-radius: var(--dpk-radius-lg);
|
|
629
|
+
padding: 28px 24px;
|
|
630
|
+
background: var(--dpk-dots), var(--dpk-paper-sunken);
|
|
631
|
+
max-width: 620px;
|
|
632
|
+
display: grid;
|
|
633
|
+
gap: 10px;
|
|
634
|
+
}
|
|
635
|
+
`;class Ci extends Ee{static{this.styles=[_t,at,Ie,It,Ni]}static{this.properties={kind:{type:String},locale:{type:String},context:{attribute:!1}}}#e=null;#t=new At(this);render(){const t=this.context;if(t===null)return m;const s=ae(this.locale??"ja"),a=t.state;if(this.kind==="labels")return Ii(s,t,gi(a));if(this.kind==="members")return Li(s,t,fi(a));const n={openFor:this.#e,toggle:i=>{this.#e=this.#e===i?null:i,this.requestUpdate()},close:()=>{this.#e=null,this.requestUpdate()}};return $i(s,t,Ri(a),n)}updated(){const t=this.renderRoot.querySelector("#icon-menu"),s=this.#e===null?null:this.renderRoot.querySelector(`[data-icon-trigger="${CSS.escape(this.#e)}"]`);t===null||s===null||this.#t.open(t,s,Oi)}}const Bi=()=>{customElements.get("dpk-internal-usm-settings-section")||customElements.define("dpk-internal-usm-settings-section",Ci)},kt=e=>`${ie(e)} ${e.name}`,Yi=(e,t)=>{const s=N(e,`${t.activityId}.${t.stepId}`);if(!s)return;const a=U(e,t.milestoneId),n=`${s.activity.name} \u203A ${s.step.name}`;return a?`${n} (${a.name})`:n},Ui=(e,t)=>e.stories.filter(s=>(s.blockedBy??[]).includes(t.id)).map(s=>ie(s)),Pi=(e,t)=>(t.blockedBy??[]).flatMap(s=>{const a=T(e,s);return a?[ie(a)]:[]}),zi=e=>`[${e.label??e.url}](${e.url})`,qs=(e,t,s)=>{const a=[],n=($,L)=>{a.push(`- ${$}: ${L}`)},i=D(t,s.statusId);i&&n(e.storyStatusLabel,i.name);const o=Yi(t,s);o&&n(e.copyInfoStep,o);const r=z(t,s.estimateId);r&&n(e.storyEstimateLabel,`${r.name} (${r.points})`);const d=pt(t,s);d&&n(e.storyAssigneeLabel,d.name);const p=ct(t,s).map($=>$.name);p.length>0&&n(e.storyLabelsLabel,p.join(", "));const u=Ui(t,s);u.length>0&&n(e.copyInfoBlocks,u.join(", "));const k=Pi(t,s);k.length>0&&n(e.copyInfoWaitsOn,k.join(", "));const E=(s.links??[]).map(zi);E.length>0&&n(e.storyLinksLabel,E.join(", "));const w=[`### ${kt(s)}`];a.length>0&&w.push("",...a);const A=(s.description??"").replace(/\s+$/,"");return A!==""&&w.push("",A),`${w.join(`
|
|
636
|
+
`).replace(/[ \t]+$/gm,"").trimEnd()}
|
|
637
|
+
`},Fi=O(pn),Vi=O(Za),Gi=3,Hi=q`
|
|
638
|
+
/*
|
|
639
|
+
* The card is the kit's card atom (it was back-ported from this one); what
|
|
640
|
+
* stays here is the map's own: the status icon, the dependency chips and the
|
|
641
|
+
* host's states mapped onto the card.
|
|
642
|
+
*/
|
|
643
|
+
:host {
|
|
644
|
+
--dpk-card-tone: var(--usm-tone, var(--dpk-ink-faint));
|
|
645
|
+
display: block;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
:host(:focus-visible) {
|
|
649
|
+
outline: none;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/* The card is the button that opens its story; the keyboard ring is the focused look. */
|
|
653
|
+
:host(:focus-visible) .dpk-card {
|
|
654
|
+
border-color: var(--dpk-blue);
|
|
655
|
+
box-shadow: var(--dpk-focus);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
:host(:focus-visible) .dpk-card[data-state~='dimmed'] {
|
|
659
|
+
opacity: 0.85;
|
|
660
|
+
filter: none;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/* With a story open, the cards it waits on and the cards waiting on it stand out. */
|
|
664
|
+
:host([data-relation='blocker']) {
|
|
665
|
+
--dpk-card-mark: var(--dpk-amber);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
:host([data-relation='dependent']) {
|
|
669
|
+
--dpk-card-mark: var(--dpk-violet);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.card-status {
|
|
673
|
+
flex: none;
|
|
674
|
+
display: inline-flex;
|
|
675
|
+
margin-top: 1.5px;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/*
|
|
679
|
+
* Where the story sits among the others. A story that holds others up is
|
|
680
|
+
* work to pull forward (a spike), so its chip is the loud one; one still
|
|
681
|
+
* waiting reads quieter and goes away once its blockers are done.
|
|
682
|
+
*/
|
|
683
|
+
.dep-chip {
|
|
684
|
+
display: inline-flex;
|
|
685
|
+
align-items: center;
|
|
686
|
+
gap: 4px;
|
|
687
|
+
padding: 0 7px;
|
|
688
|
+
border-radius: 6px;
|
|
689
|
+
font-size: 10.5px;
|
|
690
|
+
font-weight: 650;
|
|
691
|
+
line-height: 18px;
|
|
692
|
+
white-space: nowrap;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.dep-chip svg {
|
|
696
|
+
flex: none;
|
|
697
|
+
width: 12px;
|
|
698
|
+
height: 12px;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.dep-chip[data-kind='blocks'] {
|
|
702
|
+
background: var(--dpk-amber);
|
|
703
|
+
color: var(--dpk-paper-raised);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.dep-chip[data-kind='waits'] {
|
|
707
|
+
border: 1px dashed color-mix(in oklab, var(--dpk-ink-faint) 60%, transparent);
|
|
708
|
+
color: var(--dpk-ink-soft);
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.dpk-pill,
|
|
712
|
+
.dpk-avatar {
|
|
713
|
+
--tone: var(--usm-tone);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.card-links .link-chip {
|
|
717
|
+
border-color: color-mix(in oklab, var(--dpk-card-tone) 16%, var(--dpk-rule));
|
|
718
|
+
background: var(--dpk-paper-raised);
|
|
719
|
+
}
|
|
720
|
+
`;class Ki extends Ee{static{this.styles=[Mt,Wa,Ie,st,Hi]}static{this.properties={story:{attribute:!1},map:{attribute:!1},stepName:{attribute:!1},statuses:{attribute:!1},labels:{attribute:!1},reviewCount:{type:Number},estimate:{attribute:!1},assignee:{attribute:!1},blocks:{type:Number},waits:{type:Number},focused:{type:Boolean,reflect:!0},dragging:{type:Boolean,reflect:!0},highlight:{attribute:"data-highlight"},relation:{attribute:"data-relation"}}}#e=new Qe(this);constructor(){super(),this.story=null,this.map=lt(),this.stepName="",this.statuses=[],this.labels=[],this.reviewCount=0,this.estimate=null,this.assignee=null,this.blocks=0,this.waits=0,this.focused=!1,this.dragging=!1,this.highlight=null,this.relation=null}getContextMenuItems(t){const s=this.story;if(!s)return null;const a=ae(this.#e.locale),n=ie(s);return[{id:"usm-story-card",entries:[{kind:"item",id:"copy-story-id",label:a.copyId,run:()=>{Le(n)}},{kind:"item",id:"copy-story-id-title",label:a.copyIdTitle,run:()=>{Le(kt(s))}},{kind:"item",id:"copy-story-info",label:a.copyStoryInfo,run:()=>{Le(qs(a,this.map,s))}}]}]}render(){const t=this.story;if(!t)return m;const s=ae(this.#e.locale),a=t.comments?.length??0;return l`<div class="dpk-card" data-interactive data-state=${this.#t()}>
|
|
721
|
+
<div class="dpk-card-head">
|
|
722
|
+
${this.statuses.length===0?m:this.#s(s,t)}
|
|
723
|
+
<div class="dpk-card-title"><span>${t.name}</span></div>
|
|
724
|
+
${this.estimate||this.assignee?this.#a(s):m}
|
|
725
|
+
</div>
|
|
726
|
+
${t.description?l`<div class="dpk-card-text" @click=${Wi}>
|
|
727
|
+
${Ca(Ba(t.description))}
|
|
728
|
+
</div>`:m}
|
|
729
|
+
${this.blocks>0||this.waits>0?this.#n(s):m}
|
|
730
|
+
${this.labels.length>0?qi(this.labels):m}
|
|
731
|
+
${t.links&&t.links.length>0?this.#i(t.links):m}
|
|
732
|
+
<div class="dpk-card-foot">
|
|
733
|
+
<span class="dpk-card-key">${ie(t)}</span>
|
|
734
|
+
${this.stepName===""?m:l`<span class="dpk-card-chip" data-kind="step"><span>${this.stepName}</span></span>`}
|
|
735
|
+
${a>0?l`<span
|
|
736
|
+
class="dpk-card-chip"
|
|
737
|
+
data-variant="count"
|
|
738
|
+
data-kind="comments"
|
|
739
|
+
aria-label=${s.commentCountAria(a)}
|
|
740
|
+
>
|
|
741
|
+
${Ya()}<span>${a}</span>
|
|
742
|
+
</span>`:m}
|
|
743
|
+
${this.reviewCount>0?l`<span
|
|
744
|
+
class="dpk-card-chip"
|
|
745
|
+
data-variant="count"
|
|
746
|
+
data-tone="accent"
|
|
747
|
+
data-kind="review"
|
|
748
|
+
aria-label=${s.reviewCountAria(this.reviewCount)}
|
|
749
|
+
>
|
|
750
|
+
${Ua()}<span>${this.reviewCount}</span>
|
|
751
|
+
</span>`:m}
|
|
752
|
+
</div>
|
|
753
|
+
</div>`}#t(){const t=[this.focused?"selected":"",this.highlight==="on"?"highlight":this.highlight==="dimmed"?"dimmed":"",this.dragging?"dragging":"",this.relation?"marked":""].filter(s=>s!=="");return t.length===0?m:t.join(" ")}#s(t,s){const a=Hs(this.statuses,s);if(!a)return m;const n=a.name;return l`<span class="card-status" role="img" aria-label=${t.storyStatusAria(n)} title=${n}>
|
|
754
|
+
${de(a)}
|
|
755
|
+
</span>`}#a(t){const{estimate:s,assignee:a}=this;return l`<span class="dpk-card-meta">
|
|
756
|
+
${s?l`<span
|
|
757
|
+
class="dpk-card-chip"
|
|
758
|
+
data-variant="outline"
|
|
759
|
+
data-kind="estimate"
|
|
760
|
+
title=${t.estimateChipTitle(t.estimateText(s.name,s.points))}
|
|
761
|
+
>${s.name}</span
|
|
762
|
+
>`:m}
|
|
763
|
+
${a?l`<span
|
|
764
|
+
class="dpk-avatar"
|
|
765
|
+
data-kind="assignee"
|
|
766
|
+
style=${M(a.tone)}
|
|
767
|
+
title=${t.assigneeChipTitle(a.name)}
|
|
768
|
+
>${vt(a.name)}</span
|
|
769
|
+
>`:m}
|
|
770
|
+
</span>`}#n(t){return l`<div class="dpk-card-row card-deps">
|
|
771
|
+
${this.blocks>0?l`<span class="dep-chip" data-kind="blocks" title=${t.blocksChipTitle(this.blocks)}
|
|
772
|
+
>${Fi()}${t.blocksChip(this.blocks)}</span
|
|
773
|
+
>`:m}
|
|
774
|
+
${this.waits>0?l`<span class="dep-chip" data-kind="waits" title=${t.waitsChipTitle(this.waits)}
|
|
775
|
+
>${Vi()}${t.waitsChip(this.waits)}</span
|
|
776
|
+
>`:m}
|
|
777
|
+
</div>`}#i(t){const s=t.slice(0,Gi);return l`<div class="dpk-card-row card-links">
|
|
778
|
+
${s.map(a=>{const n=Oe(a.url);return l`<a
|
|
779
|
+
class="link-chip"
|
|
780
|
+
data-kind=${n.kind}
|
|
781
|
+
href=${a.url}
|
|
782
|
+
target="_blank"
|
|
783
|
+
rel="noopener noreferrer"
|
|
784
|
+
title=${a.label??n.title}
|
|
785
|
+
draggable="false"
|
|
786
|
+
tabindex="-1"
|
|
787
|
+
@click=${i=>i.stopPropagation()}
|
|
788
|
+
>${Nt(n.kind)}<span>${a.label??n.text}</span></a
|
|
789
|
+
>`})}
|
|
790
|
+
${t.length>s.length?l`<span class="link-chip">+${t.length-s.length}</span>`:m}
|
|
791
|
+
</div>`}}const qi=e=>l`<div class="dpk-card-row card-labels">
|
|
792
|
+
${e.map(t=>l`<span class="dpk-pill" data-label=${t.id} style=${M(t.tone)}>${t.name}</span>`)}
|
|
793
|
+
</div>`,Wi=e=>{e.target instanceof Element&&e.target.closest("a")&&e.stopPropagation()},ji=()=>{customElements.get("dpk-internal-usm-story-card")||customElements.define("dpk-internal-usm-story-card",Ki)},Xi=/[ァ-ヶ]/g,Ws=e=>e.normalize("NFKC").toLowerCase().replace(Xi,t=>String.fromCharCode(t.charCodeAt(0)-96)),Zi=(e,t)=>{const s=Ws(t).split(/\s+/).filter(Boolean),a=Ws(e);return s.every(n=>a.includes(n))},js=(e,t,s,a)=>(s==="blocker"?Yn(e,t):Un(e,t)).flatMap(i=>{const o=N(e,`${i.activityId}.${i.stepId}`),r=o?[o.activity.name,o.step.name]:[];return Zi([ie(i),i.name,...r].join(" "),a)?[{story:i,place:r}]:[]}),Xs=(e,t,s,a,n,i)=>{const{state:o}=t;if(js(o,s,a,"").length===0)return m;const r=n.search?.side===a?n.search:null,d=r?js(o,s,a,r.query):[],p=Math.max(0,Math.min(r?.active??0,d.length-1)),u=r?d[p]:void 0,k=a==="blocker"?e.addBlockerPlaceholder:e.addDependentPlaceholder,E=`dep-${a}-choices`,w=c=>`dep-${a}-${c.story.id}`,A=c=>{r||!(c.currentTarget instanceof HTMLInputElement)||n.set({side:a,query:c.currentTarget.value,active:0})},$=c=>{i(c.story.id),n.set(null)},L=c=>{if(!c.isComposing)switch(Zs(c)){case"ArrowDown":case"ArrowUp":{if(c.preventDefault(),!r){A(c);return}if(d.length===0)return;const x=Zs(c)==="ArrowDown"?1:-1;n.set({...r,active:(p+x+d.length)%d.length});return}case"Enter":if(!u)return;c.preventDefault(),$(u);return;case"Escape":if(!r)return;c.preventDefault(),n.set(null);return}};return l`<div class="sp-dep-picker">
|
|
794
|
+
<input
|
|
795
|
+
class="dpk-input sp-dep-search"
|
|
796
|
+
type="text"
|
|
797
|
+
role="combobox"
|
|
798
|
+
data-role=${`add-${a}`}
|
|
799
|
+
aria-label=${k}
|
|
800
|
+
placeholder=${k}
|
|
801
|
+
autocomplete="off"
|
|
802
|
+
spellcheck="false"
|
|
803
|
+
aria-autocomplete="list"
|
|
804
|
+
aria-expanded=${String(d.length>0)}
|
|
805
|
+
aria-controls=${E}
|
|
806
|
+
aria-activedescendant=${u?w(u):m}
|
|
807
|
+
.value=${r?.query??""}
|
|
808
|
+
@focus=${A}
|
|
809
|
+
@click=${A}
|
|
810
|
+
@input=${c=>{c.currentTarget instanceof HTMLInputElement&&n.set({side:a,query:c.currentTarget.value,active:0})}}
|
|
811
|
+
@keydown=${L}
|
|
812
|
+
@blur=${()=>{r&&n.set(null)}}
|
|
813
|
+
/>
|
|
814
|
+
${r?d.length===0?l`<p class="sp-dep-none" role="status">${e.noDependencyMatch}</p>`:l`<ul id=${E} class="sp-dep-choices" role="listbox" aria-label=${k}>
|
|
815
|
+
${d.map(c=>Ji(o,c,w(c),c===u,$))}
|
|
816
|
+
</ul>`:m}
|
|
817
|
+
</div>`},Zs=e=>!e.ctrlKey||e.altKey||e.metaKey||e.shiftKey?e.key:e.key==="n"?"ArrowDown":e.key==="p"?"ArrowUp":e.key,Ji=(e,t,s,a,n)=>{const i=he(e).find(o=>o.id===t.story.statusId);return l`<li
|
|
818
|
+
id=${s}
|
|
819
|
+
role="option"
|
|
820
|
+
data-story=${t.story.id}
|
|
821
|
+
aria-selected=${String(a)}
|
|
822
|
+
@pointerdown=${o=>o.preventDefault()}
|
|
823
|
+
@click=${()=>n(t)}
|
|
824
|
+
>
|
|
825
|
+
<span class="sp-dep-choice-name" style=${M(i?.tone)}>
|
|
826
|
+
${i?de(i):m}<span>${t.story.name}</span>
|
|
827
|
+
</span>
|
|
828
|
+
${t.place.length===0?m:l`<span class="sp-dep-choice-place">${t.place.map(o=>l`<span>${o}</span>`)}</span>`}
|
|
829
|
+
</li>`},Qi=q`
|
|
830
|
+
.sp-dep-picker {
|
|
831
|
+
display: grid;
|
|
832
|
+
gap: 4px;
|
|
833
|
+
}
|
|
834
|
+
/* The choices push the panel's content down rather than float: the panel
|
|
835
|
+
scrolls, and a list hanging out of it would be cut. */
|
|
836
|
+
.sp-dep-choices {
|
|
837
|
+
display: grid;
|
|
838
|
+
gap: 1px;
|
|
839
|
+
max-height: 240px;
|
|
840
|
+
margin: 0;
|
|
841
|
+
padding: 4px;
|
|
842
|
+
overflow-y: auto;
|
|
843
|
+
overscroll-behavior: contain;
|
|
844
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
845
|
+
border-radius: var(--dpk-radius-sm);
|
|
846
|
+
background: var(--dpk-paper-raised);
|
|
847
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
848
|
+
list-style: none;
|
|
849
|
+
}
|
|
850
|
+
.sp-dep-choices [role='option'] {
|
|
851
|
+
display: grid;
|
|
852
|
+
gap: 1px;
|
|
853
|
+
padding: 5px 8px;
|
|
854
|
+
border-radius: var(--dpk-radius-sm);
|
|
855
|
+
cursor: pointer;
|
|
856
|
+
}
|
|
857
|
+
.sp-dep-choices [role='option']:hover,
|
|
858
|
+
.sp-dep-choices [role='option'][aria-selected='true'] {
|
|
859
|
+
background: var(--dpk-paper-sunken);
|
|
860
|
+
}
|
|
861
|
+
.sp-dep-choice-name {
|
|
862
|
+
display: flex;
|
|
863
|
+
align-items: center;
|
|
864
|
+
gap: 8px;
|
|
865
|
+
min-width: 0;
|
|
866
|
+
color: var(--dpk-ink);
|
|
867
|
+
font-size: 12.5px;
|
|
868
|
+
font-weight: 600;
|
|
869
|
+
}
|
|
870
|
+
.sp-dep-choice-name > span,
|
|
871
|
+
.sp-dep-choice-place {
|
|
872
|
+
overflow: hidden;
|
|
873
|
+
text-overflow: ellipsis;
|
|
874
|
+
white-space: nowrap;
|
|
875
|
+
}
|
|
876
|
+
.sp-dep-choice-place {
|
|
877
|
+
padding-left: 22px;
|
|
878
|
+
color: var(--dpk-ink-faint);
|
|
879
|
+
font-size: 11px;
|
|
880
|
+
}
|
|
881
|
+
.sp-dep-choice-place span + span::before {
|
|
882
|
+
content: ' / ';
|
|
883
|
+
}
|
|
884
|
+
.sp-dep-none {
|
|
885
|
+
margin: 0;
|
|
886
|
+
padding: 6px 2px;
|
|
887
|
+
color: var(--dpk-ink-faint);
|
|
888
|
+
font-size: 12px;
|
|
889
|
+
}
|
|
890
|
+
`,eo=O(un),to=O(Pa),so=e=>T(e.state,e.navigation.story),ao=(e,t,s,a,n,i)=>{const{state:o}=t,r={type:"story",id:s.id},d=N(o,`${s.activityId}.${s.stepId}`),p=U(o,s.milestoneId);return l`<div class="sp-body" data-testid="usm-story-detail" data-story=${s.id}>
|
|
891
|
+
<div class="sp-heading">
|
|
892
|
+
<span class="sp-where">
|
|
893
|
+
${d?l`<span>${d.activity.name}</span><span>${d.step.name}</span>`:m}
|
|
894
|
+
<span>${p?.name??e.unassigned}</span>
|
|
895
|
+
</span>
|
|
896
|
+
<div class="sp-copy-row">
|
|
897
|
+
${no(e,s,n)}
|
|
898
|
+
${Js(e,n,{role:"copy-id-title",label:e.copyIdTitle,text:kt(s),icon:eo})}
|
|
899
|
+
${Js(e,n,{role:"copy-info",label:e.copyStoryInfo,text:qs(e,o,s),icon:to})}
|
|
900
|
+
</div>
|
|
901
|
+
<h3 class="sp-title">
|
|
902
|
+
<dpk-inline-edit
|
|
903
|
+
wrap
|
|
904
|
+
.value=${s.name}
|
|
905
|
+
.label=${e.storyTitleLabel}
|
|
906
|
+
@dpk-commit=${J(u=>t.dispatch({type:"SET_STORY_NAME",target:r,payload:{name:u}}))}
|
|
907
|
+
></dpk-inline-edit>
|
|
908
|
+
</h3>
|
|
909
|
+
</div>
|
|
910
|
+
${o.statuses.length===0?m:io(e,t,s)}
|
|
911
|
+
${P(o,"estimates")?oo(e,t,s):m}
|
|
912
|
+
${P(o,"assignees")?ro(e,t,s,i):m}
|
|
913
|
+
${lo(e,t,s,i)} ${po(e,t,s,a)}
|
|
914
|
+
<section class="sp-field">
|
|
915
|
+
<h3>${e.storyDescriptionLabel}</h3>
|
|
916
|
+
<dpk-inline-edit
|
|
917
|
+
multiline
|
|
918
|
+
markdown
|
|
919
|
+
class="sp-description"
|
|
920
|
+
.value=${s.description??""}
|
|
921
|
+
.label=${e.storyDescriptionLabel}
|
|
922
|
+
@dpk-commit=${J(u=>t.dispatch({type:"SET_STORY_DESCRIPTION",target:r,payload:{description:u}}))}
|
|
923
|
+
></dpk-inline-edit>
|
|
924
|
+
</section>
|
|
925
|
+
${co(e,t,s)} ${uo(e,t,s)}
|
|
926
|
+
<footer class="sp-foot">
|
|
927
|
+
<button
|
|
928
|
+
class="dpk-btn dpk-btn--ghost sp-delete"
|
|
929
|
+
type="button"
|
|
930
|
+
@click=${()=>{t.dispatch({type:"DELETE_STORY",target:r,payload:{}}).ok&&t.navigate({story:null})}}
|
|
931
|
+
>
|
|
932
|
+
${et()}<span>${e.deleteStoryButton}</span>
|
|
933
|
+
</button>
|
|
934
|
+
</footer>
|
|
935
|
+
</div>`},no=(e,t,s)=>{const a=ie(t),n=s.copied===a,i=n?e.storyKeyCopied:e.copyStoryKey(a);return l`<button
|
|
936
|
+
class="sp-key"
|
|
937
|
+
type="button"
|
|
938
|
+
data-role="copy-key"
|
|
939
|
+
data-copied=${n?"true":"false"}
|
|
940
|
+
title=${i}
|
|
941
|
+
aria-label=${i}
|
|
942
|
+
@click=${()=>s.copy(a)}
|
|
943
|
+
>
|
|
944
|
+
<span>${a}</span>${n?De():za()}
|
|
945
|
+
</button>`},Js=(e,t,s)=>{const a=t.copied===s.text,n=a?e.storyKeyCopied:s.label;return l`<button
|
|
946
|
+
class="dpk-icon-btn sp-copy"
|
|
947
|
+
type="button"
|
|
948
|
+
data-role=${s.role}
|
|
949
|
+
data-copied=${a?"true":"false"}
|
|
950
|
+
title=${n}
|
|
951
|
+
aria-label=${n}
|
|
952
|
+
@click=${()=>t.copy(s.text)}
|
|
953
|
+
>
|
|
954
|
+
${a?De():s.icon()}
|
|
955
|
+
</button>`},io=(e,t,s)=>{const a=he(t.state),n=s.statusId;return l`<section class="sp-field">
|
|
956
|
+
<h3 id="sp-status-label">${e.storyStatusLabel}</h3>
|
|
957
|
+
<div class="sp-statuses" role="radiogroup" aria-labelledby="sp-status-label">
|
|
958
|
+
${a.map(i=>l`<button
|
|
959
|
+
class="sp-status"
|
|
960
|
+
type="button"
|
|
961
|
+
role="radio"
|
|
962
|
+
data-status=${i.id}
|
|
963
|
+
aria-checked=${String(i.id===n)}
|
|
964
|
+
style=${M(i.tone)}
|
|
965
|
+
@click=${()=>{i.id!==n&&t.dispatch({type:"SET_STORY_STATUS",target:{type:"story",id:s.id},payload:{statusId:i.id}})}}
|
|
966
|
+
>
|
|
967
|
+
${de(i)}<span>${i.name}</span>
|
|
968
|
+
</button>`)}
|
|
969
|
+
</div>
|
|
970
|
+
</section>`},oo=(e,t,s)=>{const a=s.estimateId??null,n=o=>()=>{o!==a&&t.dispatch({type:"SET_STORY_ESTIMATE",target:{type:"story",id:s.id},payload:{estimateId:o}})},i=[{id:null,name:e.unestimated,title:e.unestimated},...t.state.estimates.map(o=>({id:o.id,name:o.name,title:e.estimateText(o.name,o.points)}))];return l`<section class="sp-field">
|
|
971
|
+
<h3 id="sp-estimate-label" class="sp-field-head">
|
|
972
|
+
<span>${e.storyEstimateLabel}</span>
|
|
973
|
+
<a class="sp-manage" href=${t.hashFor({tab:"burndown",story:null})}>${e.manageEstimates}</a>
|
|
974
|
+
</h3>
|
|
975
|
+
${t.state.estimates.length===0?l`<p class="sp-empty">${e.noEstimates}</p>`:l`<div class="sp-estimates" role="radiogroup" aria-labelledby="sp-estimate-label">
|
|
976
|
+
${i.map(o=>l`<button
|
|
977
|
+
class="sp-estimate"
|
|
978
|
+
type="button"
|
|
979
|
+
role="radio"
|
|
980
|
+
data-estimate=${o.id??""}
|
|
981
|
+
title=${o.title}
|
|
982
|
+
aria-checked=${String(o.id===a)}
|
|
983
|
+
@click=${n(o.id)}
|
|
984
|
+
>
|
|
985
|
+
${o.name}
|
|
986
|
+
</button>`)}
|
|
987
|
+
</div>`}
|
|
988
|
+
</section>`},ro=(e,t,s,a)=>{const n=s.assigneeId??null,i=o=>()=>{o!==n&&t.dispatch({type:"SET_STORY_ASSIGNEE",target:{type:"story",id:s.id},payload:{memberId:o}})};return l`<section class="sp-field">
|
|
989
|
+
<h3 id="sp-assignee-label" class="sp-field-head">
|
|
990
|
+
<span>${e.storyAssigneeLabel}</span>
|
|
991
|
+
<button class="sp-manage" type="button" @click=${()=>a.open("members")}>${e.manageMembers}</button>
|
|
992
|
+
</h3>
|
|
993
|
+
${t.state.members.length===0?l`<p class="sp-empty">${e.storyNoMembers}</p>`:l`<div class="sp-assignees" role="radiogroup" aria-labelledby="sp-assignee-label">
|
|
994
|
+
<button
|
|
995
|
+
class="sp-assignee"
|
|
996
|
+
type="button"
|
|
997
|
+
role="radio"
|
|
998
|
+
data-assignee=""
|
|
999
|
+
aria-checked=${String(n===null)}
|
|
1000
|
+
@click=${i(null)}
|
|
1001
|
+
>
|
|
1002
|
+
${e.noAssignee}
|
|
1003
|
+
</button>
|
|
1004
|
+
${t.state.members.map(o=>l`<button
|
|
1005
|
+
class="sp-assignee"
|
|
1006
|
+
type="button"
|
|
1007
|
+
role="radio"
|
|
1008
|
+
data-assignee=${o.id}
|
|
1009
|
+
aria-checked=${String(o.id===n)}
|
|
1010
|
+
style=${M(o.tone)}
|
|
1011
|
+
@click=${i(o.id)}
|
|
1012
|
+
>
|
|
1013
|
+
<span class="sp-avatar" aria-hidden="true">${vt(o.name)}</span>${o.name}
|
|
1014
|
+
</button>`)}
|
|
1015
|
+
</div>`}
|
|
1016
|
+
</section>`},lo=(e,t,s,a)=>{const n={type:"story",id:s.id},i=new Set(s.labelIds??[]);return l`<section class="sp-field">
|
|
1017
|
+
<h3 id="sp-labels-label" class="sp-field-head">
|
|
1018
|
+
<span>${e.storyLabelsLabel}</span>
|
|
1019
|
+
<button class="sp-manage" type="button" @click=${()=>a.open("labels")}>${e.manageLabels}</button>
|
|
1020
|
+
</h3>
|
|
1021
|
+
${t.state.labels.length===0?l`<p class="sp-empty">${e.storyNoLabels}</p>`:l`<div class="sp-labels" role="group" aria-labelledby="sp-labels-label">
|
|
1022
|
+
${t.state.labels.map(o=>{const r=i.has(o.id);return l`<button
|
|
1023
|
+
class="sp-label"
|
|
1024
|
+
type="button"
|
|
1025
|
+
data-label=${o.id}
|
|
1026
|
+
aria-pressed=${String(r)}
|
|
1027
|
+
style=${M(o.tone)}
|
|
1028
|
+
@click=${()=>t.dispatch({type:r?"REMOVE_STORY_LABEL":"ADD_STORY_LABEL",target:n,payload:{labelId:o.id}})}
|
|
1029
|
+
>
|
|
1030
|
+
<span class="sp-label-dot" aria-hidden="true"></span><span>${o.name}</span>
|
|
1031
|
+
</button>`})}
|
|
1032
|
+
</div>`}
|
|
1033
|
+
</section>`},po=(e,t,s,a)=>{const{state:n}=t,i=ks(n,s.id),o=(d,p,u)=>t.dispatch({type:d,target:{type:"story",id:p},payload:{blockerId:u}}),r=(d,p,u,k)=>{const E=T(n,p);if(!E)return m;const w=he(n).find(A=>A.id===E.statusId);return l`<li
|
|
1034
|
+
data-blocker=${d==="data-blocker"?p:m}
|
|
1035
|
+
data-dependent=${d==="data-dependent"?p:m}
|
|
1036
|
+
data-finished=${String(Te(n,E))}
|
|
1037
|
+
>
|
|
1038
|
+
<a class="sp-dep-name" href=${t.hashFor({story:p})} style=${M(w?.tone)}>
|
|
1039
|
+
${w?de(w):m}<span>${E.name}</span>
|
|
1040
|
+
</a>
|
|
1041
|
+
<button
|
|
1042
|
+
class="dpk-icon-btn"
|
|
1043
|
+
type="button"
|
|
1044
|
+
data-role="remove"
|
|
1045
|
+
aria-label=${u(E.name)}
|
|
1046
|
+
@click=${k}
|
|
1047
|
+
>
|
|
1048
|
+
${Lt()}
|
|
1049
|
+
</button>
|
|
1050
|
+
</li>`};return l`<section class="sp-field sp-deps">
|
|
1051
|
+
<h3>${e.storyDependenciesLabel}</h3>
|
|
1052
|
+
<div class="sp-dep-side">
|
|
1053
|
+
<h4>${e.storyBlockersLabel}</h4>
|
|
1054
|
+
${i.blockers.length===0?l`<p class="sp-empty">${e.storyNoBlockers}</p>`:l`<ul class="sp-dep-list">
|
|
1055
|
+
${i.blockers.map(d=>r("data-blocker",d,e.removeBlockerAria,()=>o("REMOVE_STORY_BLOCKER",s.id,d)))}
|
|
1056
|
+
</ul>`}
|
|
1057
|
+
${Xs(e,t,s.id,"blocker",a,d=>o("ADD_STORY_BLOCKER",s.id,d))}
|
|
1058
|
+
</div>
|
|
1059
|
+
<div class="sp-dep-side">
|
|
1060
|
+
<h4>${e.storyDependentsLabel}</h4>
|
|
1061
|
+
${i.dependents.length===0?l`<p class="sp-empty">${e.storyNoDependents}</p>`:l`<ul class="sp-dep-list">
|
|
1062
|
+
${i.dependents.map(d=>r("data-dependent",d,e.removeDependentAria,()=>o("REMOVE_STORY_BLOCKER",d,s.id)))}
|
|
1063
|
+
</ul>`}
|
|
1064
|
+
${Xs(e,t,s.id,"dependent",a,d=>o("ADD_STORY_BLOCKER",d,s.id))}
|
|
1065
|
+
</div>
|
|
1066
|
+
</section>`},co=(e,t,s)=>{const a={type:"story",id:s.id},n=s.links??[],i=o=>{o.preventDefault();const r=o.currentTarget instanceof HTMLFormElement?o.currentTarget:null,d=r?.querySelector("input");if(!r||!d)return;const p=d.value.trim();if(!Tt(rt,p).success){d.setAttribute("aria-invalid","true");return}t.dispatch({type:"ADD_STORY_LINK",target:a,payload:{url:p}}).ok&&(d.removeAttribute("aria-invalid"),r.reset())};return l`<section class="sp-field">
|
|
1067
|
+
<h3>${e.storyLinksLabel}</h3>
|
|
1068
|
+
${n.length===0?m:l`<ul class="sp-links">
|
|
1069
|
+
${n.map(o=>{const r=Oe(o.url),d=o.label??r.text;return l`<li data-kind=${r.kind}>
|
|
1070
|
+
<a class="sp-link" href=${o.url} target="_blank" rel="noopener noreferrer" title=${o.url}>
|
|
1071
|
+
${Nt(r.kind)}
|
|
1072
|
+
<span class="sp-link-text">${d}</span>
|
|
1073
|
+
<span class="sp-link-url">${r.title===d?o.url:r.title}</span>
|
|
1074
|
+
</a>
|
|
1075
|
+
<button
|
|
1076
|
+
class="dpk-icon-btn"
|
|
1077
|
+
type="button"
|
|
1078
|
+
aria-label=${e.removeLinkAria(d)}
|
|
1079
|
+
@click=${()=>t.dispatch({type:"REMOVE_STORY_LINK",target:a,payload:{url:o.url}})}
|
|
1080
|
+
>
|
|
1081
|
+
${Lt()}
|
|
1082
|
+
</button>
|
|
1083
|
+
</li>`})}
|
|
1084
|
+
</ul>`}
|
|
1085
|
+
<form class="sp-add-link" @submit=${i}>
|
|
1086
|
+
<input
|
|
1087
|
+
class="dpk-input"
|
|
1088
|
+
type="url"
|
|
1089
|
+
inputmode="url"
|
|
1090
|
+
placeholder="https://"
|
|
1091
|
+
aria-label=${e.linkUrlLabel}
|
|
1092
|
+
@input=${o=>{o.currentTarget instanceof HTMLInputElement&&o.currentTarget.removeAttribute("aria-invalid")}}
|
|
1093
|
+
/>
|
|
1094
|
+
<button class="dpk-btn" type="submit">${e.addLinkButton}</button>
|
|
1095
|
+
</form>
|
|
1096
|
+
</section>`},uo=(e,t,s)=>{const a={type:"story",id:s.id};return l`<section class="sp-field sp-comments">
|
|
1097
|
+
<h3>${e.storyCommentsLabel}</h3>
|
|
1098
|
+
<dpk-comment-thread
|
|
1099
|
+
inline
|
|
1100
|
+
.comments=${s.comments??[]}
|
|
1101
|
+
draft-key=${`story-comment:${s.id}`}
|
|
1102
|
+
@dpk-thread-comment-add=${n=>{const i=Z("comment",W(t.state));t.dispatch({type:"ADD_STORY_COMMENT",target:a,payload:{id:i,body:n.detail.body,createdAt:new Date().toISOString()}}).ok&&n.preventDefault()}}
|
|
1103
|
+
@dpk-thread-comment-delete=${n=>{t.dispatch({type:"DELETE_STORY_COMMENT",target:a,payload:{commentId:n.detail.id}})}}
|
|
1104
|
+
></dpk-comment-thread>
|
|
1105
|
+
</section>`},mo=q`
|
|
1106
|
+
.sp-body {
|
|
1107
|
+
display: grid;
|
|
1108
|
+
align-content: start;
|
|
1109
|
+
gap: 22px;
|
|
1110
|
+
}
|
|
1111
|
+
.sp-heading {
|
|
1112
|
+
display: grid;
|
|
1113
|
+
justify-items: start;
|
|
1114
|
+
gap: 6px;
|
|
1115
|
+
}
|
|
1116
|
+
.sp-where {
|
|
1117
|
+
display: flex;
|
|
1118
|
+
flex-wrap: wrap;
|
|
1119
|
+
gap: 2px 0;
|
|
1120
|
+
min-width: 0;
|
|
1121
|
+
color: var(--dpk-ink-faint);
|
|
1122
|
+
font-size: 11.5px;
|
|
1123
|
+
font-weight: 600;
|
|
1124
|
+
}
|
|
1125
|
+
.sp-where > span + span::before {
|
|
1126
|
+
content: '›';
|
|
1127
|
+
margin: 0 6px;
|
|
1128
|
+
color: var(--dpk-rule-strong);
|
|
1129
|
+
}
|
|
1130
|
+
.sp-heading .sp-title {
|
|
1131
|
+
justify-self: stretch;
|
|
1132
|
+
}
|
|
1133
|
+
/* The three copy buttons sit on one line, the key's chip first. */
|
|
1134
|
+
.sp-copy-row {
|
|
1135
|
+
display: flex;
|
|
1136
|
+
align-items: center;
|
|
1137
|
+
gap: 4px;
|
|
1138
|
+
}
|
|
1139
|
+
.sp-copy {
|
|
1140
|
+
width: 22px;
|
|
1141
|
+
height: 22px;
|
|
1142
|
+
}
|
|
1143
|
+
.sp-copy svg {
|
|
1144
|
+
width: 13px;
|
|
1145
|
+
height: 13px;
|
|
1146
|
+
}
|
|
1147
|
+
.sp-copy[data-copied='true'] {
|
|
1148
|
+
color: var(--dpk-green);
|
|
1149
|
+
}
|
|
1150
|
+
.sp-key {
|
|
1151
|
+
display: inline-flex;
|
|
1152
|
+
align-items: center;
|
|
1153
|
+
gap: 5px;
|
|
1154
|
+
padding: 2px 7px;
|
|
1155
|
+
border: 1px solid var(--dpk-rule);
|
|
1156
|
+
border-radius: 6px;
|
|
1157
|
+
background: var(--dpk-paper-sunken);
|
|
1158
|
+
color: var(--dpk-ink-soft);
|
|
1159
|
+
font: inherit;
|
|
1160
|
+
font-family: var(--dpk-mono);
|
|
1161
|
+
font-size: 11px;
|
|
1162
|
+
font-weight: 650;
|
|
1163
|
+
line-height: 18px;
|
|
1164
|
+
font-variant-numeric: tabular-nums;
|
|
1165
|
+
cursor: pointer;
|
|
1166
|
+
}
|
|
1167
|
+
.sp-key:hover {
|
|
1168
|
+
border-color: var(--dpk-rule-strong);
|
|
1169
|
+
color: var(--dpk-ink);
|
|
1170
|
+
}
|
|
1171
|
+
.sp-key:focus-visible {
|
|
1172
|
+
outline: none;
|
|
1173
|
+
box-shadow: var(--dpk-focus);
|
|
1174
|
+
}
|
|
1175
|
+
.sp-key[data-copied='true'] {
|
|
1176
|
+
color: var(--dpk-green);
|
|
1177
|
+
}
|
|
1178
|
+
.sp-key svg {
|
|
1179
|
+
flex: none;
|
|
1180
|
+
width: 12px;
|
|
1181
|
+
height: 12px;
|
|
1182
|
+
}
|
|
1183
|
+
/* A dependency's name is one nowrap line with an ellipsis, and every grid
|
|
1184
|
+
box between it and the panel keeps the default min-width (auto): the line
|
|
1185
|
+
would then become the grid's minimum width and make the whole body scroll
|
|
1186
|
+
sideways instead of cropping the name. Each level opts out. */
|
|
1187
|
+
.sp-body > *,
|
|
1188
|
+
.sp-deps > *,
|
|
1189
|
+
.sp-dep-side > *,
|
|
1190
|
+
.sp-dep-list > li {
|
|
1191
|
+
min-width: 0;
|
|
1192
|
+
}
|
|
1193
|
+
.sp-title {
|
|
1194
|
+
margin: 0;
|
|
1195
|
+
font-size: 19px;
|
|
1196
|
+
font-weight: 700;
|
|
1197
|
+
letter-spacing: -0.015em;
|
|
1198
|
+
line-height: 1.35;
|
|
1199
|
+
}
|
|
1200
|
+
.sp-title dpk-inline-edit {
|
|
1201
|
+
display: block;
|
|
1202
|
+
margin: 0 -4px;
|
|
1203
|
+
}
|
|
1204
|
+
.sp-field {
|
|
1205
|
+
display: grid;
|
|
1206
|
+
gap: 8px;
|
|
1207
|
+
}
|
|
1208
|
+
.sp-field h3 {
|
|
1209
|
+
margin: 0;
|
|
1210
|
+
color: var(--dpk-ink-faint);
|
|
1211
|
+
font-size: 11px;
|
|
1212
|
+
font-weight: 650;
|
|
1213
|
+
letter-spacing: 0.04em;
|
|
1214
|
+
text-transform: uppercase;
|
|
1215
|
+
}
|
|
1216
|
+
.sp-statuses {
|
|
1217
|
+
display: flex;
|
|
1218
|
+
flex-wrap: wrap;
|
|
1219
|
+
gap: 6px;
|
|
1220
|
+
}
|
|
1221
|
+
.sp-status {
|
|
1222
|
+
display: inline-flex;
|
|
1223
|
+
align-items: center;
|
|
1224
|
+
gap: 7px;
|
|
1225
|
+
padding: 5px 12px 5px 9px;
|
|
1226
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
1227
|
+
border-radius: 999px;
|
|
1228
|
+
background: var(--dpk-paper-raised);
|
|
1229
|
+
color: var(--dpk-ink);
|
|
1230
|
+
font: inherit;
|
|
1231
|
+
font-size: 12.5px;
|
|
1232
|
+
font-weight: 600;
|
|
1233
|
+
cursor: pointer;
|
|
1234
|
+
transition:
|
|
1235
|
+
background 140ms var(--dpk-ease),
|
|
1236
|
+
border-color 140ms var(--dpk-ease);
|
|
1237
|
+
}
|
|
1238
|
+
.sp-status:hover {
|
|
1239
|
+
border-color: color-mix(in oklab, var(--usm-tone) 60%, var(--dpk-rule-strong));
|
|
1240
|
+
}
|
|
1241
|
+
.sp-status:focus-visible {
|
|
1242
|
+
outline: none;
|
|
1243
|
+
box-shadow: var(--dpk-focus);
|
|
1244
|
+
}
|
|
1245
|
+
.sp-status[aria-checked='true'] {
|
|
1246
|
+
border-color: var(--usm-tone);
|
|
1247
|
+
background: color-mix(in oklab, var(--usm-tone) 14%, var(--dpk-paper-raised));
|
|
1248
|
+
box-shadow: inset 0 0 0 1px var(--usm-tone);
|
|
1249
|
+
}
|
|
1250
|
+
.sp-estimates {
|
|
1251
|
+
display: flex;
|
|
1252
|
+
flex-wrap: wrap;
|
|
1253
|
+
gap: 4px;
|
|
1254
|
+
}
|
|
1255
|
+
.sp-estimate {
|
|
1256
|
+
min-width: 34px;
|
|
1257
|
+
padding: 4px 10px;
|
|
1258
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
1259
|
+
border-radius: var(--dpk-radius-sm);
|
|
1260
|
+
background: var(--dpk-paper-raised);
|
|
1261
|
+
color: var(--dpk-ink-soft);
|
|
1262
|
+
font: inherit;
|
|
1263
|
+
font-family: var(--dpk-mono);
|
|
1264
|
+
font-size: 12px;
|
|
1265
|
+
font-weight: 650;
|
|
1266
|
+
font-variant-numeric: tabular-nums;
|
|
1267
|
+
cursor: pointer;
|
|
1268
|
+
transition:
|
|
1269
|
+
background 140ms var(--dpk-ease),
|
|
1270
|
+
border-color 140ms var(--dpk-ease);
|
|
1271
|
+
}
|
|
1272
|
+
.sp-estimate[data-estimate=''] {
|
|
1273
|
+
font-family: inherit;
|
|
1274
|
+
font-weight: 550;
|
|
1275
|
+
}
|
|
1276
|
+
.sp-estimate:hover {
|
|
1277
|
+
border-color: var(--dpk-rule-hover);
|
|
1278
|
+
}
|
|
1279
|
+
.sp-estimate:focus-visible {
|
|
1280
|
+
outline: none;
|
|
1281
|
+
box-shadow: var(--dpk-focus);
|
|
1282
|
+
}
|
|
1283
|
+
.sp-estimate[aria-checked='true'] {
|
|
1284
|
+
border-color: var(--dpk-ink);
|
|
1285
|
+
background: var(--dpk-ink);
|
|
1286
|
+
color: var(--dpk-paper-raised);
|
|
1287
|
+
}
|
|
1288
|
+
.sp-assignees {
|
|
1289
|
+
display: flex;
|
|
1290
|
+
flex-wrap: wrap;
|
|
1291
|
+
gap: 4px;
|
|
1292
|
+
}
|
|
1293
|
+
.sp-assignee {
|
|
1294
|
+
display: inline-flex;
|
|
1295
|
+
align-items: center;
|
|
1296
|
+
gap: 6px;
|
|
1297
|
+
padding: 3px 10px 3px 4px;
|
|
1298
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
1299
|
+
border-radius: 999px;
|
|
1300
|
+
background: var(--dpk-paper-raised);
|
|
1301
|
+
color: var(--dpk-ink-soft);
|
|
1302
|
+
font: inherit;
|
|
1303
|
+
font-size: 12px;
|
|
1304
|
+
font-weight: 600;
|
|
1305
|
+
cursor: pointer;
|
|
1306
|
+
transition:
|
|
1307
|
+
background 140ms var(--dpk-ease),
|
|
1308
|
+
border-color 140ms var(--dpk-ease);
|
|
1309
|
+
}
|
|
1310
|
+
.sp-assignee[data-assignee=''] {
|
|
1311
|
+
padding-left: 10px;
|
|
1312
|
+
}
|
|
1313
|
+
.sp-assignee:hover {
|
|
1314
|
+
border-color: var(--dpk-rule-hover);
|
|
1315
|
+
}
|
|
1316
|
+
.sp-assignee:focus-visible {
|
|
1317
|
+
outline: none;
|
|
1318
|
+
box-shadow: var(--dpk-focus);
|
|
1319
|
+
}
|
|
1320
|
+
.sp-assignee[aria-checked='true'] {
|
|
1321
|
+
border-color: var(--usm-tone, var(--dpk-ink));
|
|
1322
|
+
background: color-mix(in oklab, var(--usm-tone, var(--dpk-ink)) 12%, var(--dpk-paper-raised));
|
|
1323
|
+
color: var(--dpk-ink);
|
|
1324
|
+
}
|
|
1325
|
+
.sp-avatar {
|
|
1326
|
+
display: inline-grid;
|
|
1327
|
+
place-items: center;
|
|
1328
|
+
width: 18px;
|
|
1329
|
+
height: 18px;
|
|
1330
|
+
border-radius: 50%;
|
|
1331
|
+
background: var(--usm-tone);
|
|
1332
|
+
color: var(--dpk-paper-raised);
|
|
1333
|
+
font-size: 10px;
|
|
1334
|
+
font-weight: 700;
|
|
1335
|
+
line-height: 1;
|
|
1336
|
+
}
|
|
1337
|
+
.sp-field-head {
|
|
1338
|
+
display: flex;
|
|
1339
|
+
align-items: baseline;
|
|
1340
|
+
justify-content: space-between;
|
|
1341
|
+
gap: 8px;
|
|
1342
|
+
}
|
|
1343
|
+
.sp-manage {
|
|
1344
|
+
/* A button, since it opens the settings rather than moving the page. */
|
|
1345
|
+
padding: 0;
|
|
1346
|
+
border: 0;
|
|
1347
|
+
background: none;
|
|
1348
|
+
color: var(--dpk-ink-faint);
|
|
1349
|
+
font: inherit;
|
|
1350
|
+
font-size: 11px;
|
|
1351
|
+
font-weight: 600;
|
|
1352
|
+
letter-spacing: 0;
|
|
1353
|
+
text-transform: none;
|
|
1354
|
+
cursor: pointer;
|
|
1355
|
+
}
|
|
1356
|
+
.sp-manage:hover {
|
|
1357
|
+
color: var(--dpk-blue);
|
|
1358
|
+
}
|
|
1359
|
+
.sp-empty {
|
|
1360
|
+
margin: 0;
|
|
1361
|
+
color: var(--dpk-ink-faint);
|
|
1362
|
+
font-size: 12.5px;
|
|
1363
|
+
}
|
|
1364
|
+
.sp-labels {
|
|
1365
|
+
display: flex;
|
|
1366
|
+
flex-wrap: wrap;
|
|
1367
|
+
gap: 6px;
|
|
1368
|
+
}
|
|
1369
|
+
.sp-label {
|
|
1370
|
+
display: inline-flex;
|
|
1371
|
+
align-items: center;
|
|
1372
|
+
gap: 6px;
|
|
1373
|
+
padding: 3px 10px 3px 8px;
|
|
1374
|
+
border: 1px dashed var(--dpk-rule-strong);
|
|
1375
|
+
border-radius: 999px;
|
|
1376
|
+
background: transparent;
|
|
1377
|
+
color: var(--dpk-ink-soft);
|
|
1378
|
+
font: inherit;
|
|
1379
|
+
font-size: 12px;
|
|
1380
|
+
font-weight: 600;
|
|
1381
|
+
cursor: pointer;
|
|
1382
|
+
transition:
|
|
1383
|
+
background 140ms var(--dpk-ease),
|
|
1384
|
+
border-color 140ms var(--dpk-ease);
|
|
1385
|
+
}
|
|
1386
|
+
.sp-label:hover {
|
|
1387
|
+
border-color: color-mix(in oklab, var(--usm-tone) 60%, var(--dpk-rule-strong));
|
|
1388
|
+
}
|
|
1389
|
+
.sp-label:focus-visible {
|
|
1390
|
+
outline: none;
|
|
1391
|
+
box-shadow: var(--dpk-focus);
|
|
1392
|
+
}
|
|
1393
|
+
.sp-label[aria-pressed='true'] {
|
|
1394
|
+
border-style: solid;
|
|
1395
|
+
border-color: color-mix(in oklab, var(--usm-tone) 55%, transparent);
|
|
1396
|
+
background: color-mix(in oklab, var(--usm-tone) 14%, var(--dpk-paper-raised));
|
|
1397
|
+
color: var(--dpk-ink);
|
|
1398
|
+
}
|
|
1399
|
+
.sp-label-dot {
|
|
1400
|
+
width: 7px;
|
|
1401
|
+
height: 7px;
|
|
1402
|
+
border-radius: 50%;
|
|
1403
|
+
background: var(--usm-tone);
|
|
1404
|
+
opacity: 0.5;
|
|
1405
|
+
}
|
|
1406
|
+
.sp-label[aria-pressed='true'] .sp-label-dot {
|
|
1407
|
+
opacity: 1;
|
|
1408
|
+
}
|
|
1409
|
+
.sp-deps {
|
|
1410
|
+
gap: 12px;
|
|
1411
|
+
}
|
|
1412
|
+
.sp-dep-side {
|
|
1413
|
+
display: grid;
|
|
1414
|
+
gap: 6px;
|
|
1415
|
+
}
|
|
1416
|
+
.sp-dep-side h4 {
|
|
1417
|
+
margin: 0;
|
|
1418
|
+
color: var(--dpk-ink-soft);
|
|
1419
|
+
font-size: 11.5px;
|
|
1420
|
+
font-weight: 650;
|
|
1421
|
+
}
|
|
1422
|
+
.sp-dep-list {
|
|
1423
|
+
display: grid;
|
|
1424
|
+
gap: 4px;
|
|
1425
|
+
margin: 0;
|
|
1426
|
+
padding: 0;
|
|
1427
|
+
list-style: none;
|
|
1428
|
+
}
|
|
1429
|
+
.sp-dep-list li {
|
|
1430
|
+
display: flex;
|
|
1431
|
+
align-items: center;
|
|
1432
|
+
gap: 4px;
|
|
1433
|
+
border: 1px solid var(--dpk-rule);
|
|
1434
|
+
border-radius: var(--dpk-radius-sm);
|
|
1435
|
+
background: var(--dpk-paper-sunken);
|
|
1436
|
+
}
|
|
1437
|
+
.sp-dep-name {
|
|
1438
|
+
display: flex;
|
|
1439
|
+
align-items: center;
|
|
1440
|
+
gap: 8px;
|
|
1441
|
+
flex: 1 1 auto;
|
|
1442
|
+
min-width: 0;
|
|
1443
|
+
padding: 6px 4px 6px 10px;
|
|
1444
|
+
color: var(--dpk-ink);
|
|
1445
|
+
font-size: 12.5px;
|
|
1446
|
+
font-weight: 600;
|
|
1447
|
+
text-decoration: none;
|
|
1448
|
+
}
|
|
1449
|
+
.sp-dep-name span {
|
|
1450
|
+
overflow: hidden;
|
|
1451
|
+
text-overflow: ellipsis;
|
|
1452
|
+
white-space: nowrap;
|
|
1453
|
+
}
|
|
1454
|
+
.sp-dep-name:hover span {
|
|
1455
|
+
text-decoration: underline;
|
|
1456
|
+
}
|
|
1457
|
+
.sp-dep-list li[data-finished='true'] .sp-dep-name span {
|
|
1458
|
+
color: var(--dpk-ink-faint);
|
|
1459
|
+
text-decoration: line-through;
|
|
1460
|
+
}
|
|
1461
|
+
.sp-description {
|
|
1462
|
+
display: block;
|
|
1463
|
+
margin: 0 -4px;
|
|
1464
|
+
color: var(--dpk-ink-soft);
|
|
1465
|
+
font-size: 13px;
|
|
1466
|
+
line-height: 1.65;
|
|
1467
|
+
}
|
|
1468
|
+
.sp-links {
|
|
1469
|
+
display: grid;
|
|
1470
|
+
gap: 4px;
|
|
1471
|
+
margin: 0;
|
|
1472
|
+
padding: 0;
|
|
1473
|
+
list-style: none;
|
|
1474
|
+
}
|
|
1475
|
+
.sp-links li {
|
|
1476
|
+
display: flex;
|
|
1477
|
+
align-items: center;
|
|
1478
|
+
gap: 4px;
|
|
1479
|
+
border: 1px solid var(--dpk-rule);
|
|
1480
|
+
border-radius: var(--dpk-radius-sm);
|
|
1481
|
+
background: var(--dpk-paper-sunken);
|
|
1482
|
+
}
|
|
1483
|
+
.sp-link {
|
|
1484
|
+
display: grid;
|
|
1485
|
+
grid-template-columns: 16px minmax(0, 1fr);
|
|
1486
|
+
column-gap: 9px;
|
|
1487
|
+
align-items: center;
|
|
1488
|
+
flex: 1 1 auto;
|
|
1489
|
+
min-width: 0;
|
|
1490
|
+
padding: 7px 4px 7px 10px;
|
|
1491
|
+
color: var(--dpk-ink);
|
|
1492
|
+
text-decoration: none;
|
|
1493
|
+
}
|
|
1494
|
+
.sp-link:hover .sp-link-text {
|
|
1495
|
+
text-decoration: underline;
|
|
1496
|
+
}
|
|
1497
|
+
.sp-link svg {
|
|
1498
|
+
grid-row: span 2;
|
|
1499
|
+
width: 16px;
|
|
1500
|
+
height: 16px;
|
|
1501
|
+
color: var(--dpk-ink-soft);
|
|
1502
|
+
}
|
|
1503
|
+
.sp-link-text {
|
|
1504
|
+
overflow: hidden;
|
|
1505
|
+
font-family: var(--dpk-mono);
|
|
1506
|
+
font-size: 12.5px;
|
|
1507
|
+
font-weight: 650;
|
|
1508
|
+
text-overflow: ellipsis;
|
|
1509
|
+
white-space: nowrap;
|
|
1510
|
+
}
|
|
1511
|
+
.sp-link-url {
|
|
1512
|
+
overflow: hidden;
|
|
1513
|
+
color: var(--dpk-ink-faint);
|
|
1514
|
+
font-size: 11px;
|
|
1515
|
+
text-overflow: ellipsis;
|
|
1516
|
+
white-space: nowrap;
|
|
1517
|
+
}
|
|
1518
|
+
.sp-add-link {
|
|
1519
|
+
display: flex;
|
|
1520
|
+
gap: 6px;
|
|
1521
|
+
}
|
|
1522
|
+
.sp-add-link input {
|
|
1523
|
+
flex: 1 1 auto;
|
|
1524
|
+
min-width: 0;
|
|
1525
|
+
}
|
|
1526
|
+
.sp-add-link input[aria-invalid='true'] {
|
|
1527
|
+
border-color: var(--dpk-accent);
|
|
1528
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--dpk-accent) 22%, transparent);
|
|
1529
|
+
}
|
|
1530
|
+
.sp-comments dpk-comment-thread {
|
|
1531
|
+
margin-top: 6px;
|
|
1532
|
+
}
|
|
1533
|
+
.sp-foot {
|
|
1534
|
+
display: flex;
|
|
1535
|
+
justify-content: flex-start;
|
|
1536
|
+
padding-top: 12px;
|
|
1537
|
+
border-top: 1px solid var(--dpk-rule);
|
|
1538
|
+
}
|
|
1539
|
+
.sp-delete {
|
|
1540
|
+
display: inline-flex;
|
|
1541
|
+
align-items: center;
|
|
1542
|
+
gap: 6px;
|
|
1543
|
+
color: var(--dpk-ink-soft);
|
|
1544
|
+
}
|
|
1545
|
+
.sp-delete svg {
|
|
1546
|
+
width: 14px;
|
|
1547
|
+
height: 14px;
|
|
1548
|
+
}
|
|
1549
|
+
`,ho=1500;class bo extends Ee{static{this.styles=[_t,Mt,at,st,Ie,Qi,mo]}static{this.properties={story:{attribute:!1},context:{attribute:!1},messages:{attribute:!1},manage:{attribute:!1},copied:{state:!0},search:{state:!0}}}#e;constructor(){super(),this.story=null,this.context=null,this.messages=null,this.manage=null,this.copied=null,this.search=null}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.#e),this.copied=null}async#t(t){await Le(t)&&(clearTimeout(this.#e),this.copied=t,this.#e=setTimeout(()=>{this.copied=null},ho))}render(){const{story:t,context:s,messages:a,manage:n}=this;if(t===null||s===null||a===null||n===null)return m;const i={search:this.search,set:o=>this.search=o};return ao(a,s,t,i,{copied:this.copied,copy:o=>{this.#t(o)}},n)}updated(){if(this.search===null)return;const t=this.shadowRoot?.activeElement??null;if(!t?.matches(".sp-dep-search")){this.search=null;return}const s=t.getAttribute("aria-activedescendant");s&&this.renderRoot.querySelector(`#${CSS.escape(s)}`)?.scrollIntoView?.({block:"nearest"})}}const go=()=>{customElements.get("dpk-internal-usm-story-detail")||customElements.define("dpk-internal-usm-story-detail",bo)},Qs=e=>{const t=e.slice(0,-1).map(os),s=t.reduce((n,i)=>n+i,0),a=t.map(n=>s>0?n/s*se:se/t.length);return a.slice(0,-1).map((n,i)=>a.slice(0,i+1).reduce((o,r)=>o+r,0))},ea=(e,t,s)=>{if(t<0||t>=e.length)return e;const a=e[t-1]??0,n=e[t+1]??se;return e.map((i,o)=>o===t?Math.min(n,Math.max(a,Math.round(s))):i)},We=e=>[...e,se].map((t,s)=>t-(e[s-1]??0)),fo=(e,t)=>{const s=We(t.map(a=>Math.round(a)));return e.slice(0,-1).flatMap((a,n)=>{const i=s[n]??0;return a.weight===i?[]:[{statusId:a.id,weight:i}]})},yo=q`
|
|
1550
|
+
:host {
|
|
1551
|
+
display: block;
|
|
1552
|
+
}
|
|
1553
|
+
.wb {
|
|
1554
|
+
display: grid;
|
|
1555
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
1556
|
+
column-gap: 10px;
|
|
1557
|
+
row-gap: 4px;
|
|
1558
|
+
align-items: center;
|
|
1559
|
+
}
|
|
1560
|
+
.wb-track {
|
|
1561
|
+
position: relative;
|
|
1562
|
+
height: 36px;
|
|
1563
|
+
border-radius: var(--dpk-radius-sm);
|
|
1564
|
+
background: var(--dpk-paper-sunken);
|
|
1565
|
+
touch-action: none;
|
|
1566
|
+
}
|
|
1567
|
+
.wb-part {
|
|
1568
|
+
position: absolute;
|
|
1569
|
+
top: 0;
|
|
1570
|
+
bottom: 0;
|
|
1571
|
+
display: flex;
|
|
1572
|
+
align-items: center;
|
|
1573
|
+
gap: 6px;
|
|
1574
|
+
min-width: 0;
|
|
1575
|
+
padding: 0 10px;
|
|
1576
|
+
overflow: hidden;
|
|
1577
|
+
background: color-mix(in oklab, var(--usm-tone) 16%, var(--dpk-paper-raised));
|
|
1578
|
+
color: var(--dpk-ink);
|
|
1579
|
+
font-size: 12px;
|
|
1580
|
+
font-weight: 600;
|
|
1581
|
+
white-space: nowrap;
|
|
1582
|
+
transition:
|
|
1583
|
+
left 120ms ease-out,
|
|
1584
|
+
width 120ms ease-out;
|
|
1585
|
+
}
|
|
1586
|
+
.wb-track[data-dragging] .wb-part {
|
|
1587
|
+
transition: none;
|
|
1588
|
+
}
|
|
1589
|
+
.wb-parts {
|
|
1590
|
+
position: absolute;
|
|
1591
|
+
inset: 0;
|
|
1592
|
+
overflow: hidden;
|
|
1593
|
+
border-radius: inherit;
|
|
1594
|
+
}
|
|
1595
|
+
.wb-name {
|
|
1596
|
+
min-width: 0;
|
|
1597
|
+
overflow: hidden;
|
|
1598
|
+
text-overflow: ellipsis;
|
|
1599
|
+
}
|
|
1600
|
+
.wb-value {
|
|
1601
|
+
flex: none;
|
|
1602
|
+
color: var(--usm-tone);
|
|
1603
|
+
font-family: var(--dpk-mono);
|
|
1604
|
+
font-variant-numeric: tabular-nums;
|
|
1605
|
+
}
|
|
1606
|
+
.wb-line {
|
|
1607
|
+
position: absolute;
|
|
1608
|
+
top: -4px;
|
|
1609
|
+
bottom: -4px;
|
|
1610
|
+
z-index: 1;
|
|
1611
|
+
width: 14px;
|
|
1612
|
+
margin-left: -7px;
|
|
1613
|
+
border-radius: var(--dpk-radius-sm);
|
|
1614
|
+
outline: none;
|
|
1615
|
+
cursor: col-resize;
|
|
1616
|
+
}
|
|
1617
|
+
.wb-line::before {
|
|
1618
|
+
content: '';
|
|
1619
|
+
position: absolute;
|
|
1620
|
+
top: 0;
|
|
1621
|
+
bottom: 0;
|
|
1622
|
+
left: 6px;
|
|
1623
|
+
width: 2px;
|
|
1624
|
+
border-radius: 1px;
|
|
1625
|
+
background: var(--dpk-ink-soft);
|
|
1626
|
+
transition: background 120ms ease-out;
|
|
1627
|
+
}
|
|
1628
|
+
/* The grip says the line can be taken hold of. */
|
|
1629
|
+
.wb-line::after {
|
|
1630
|
+
content: '';
|
|
1631
|
+
position: absolute;
|
|
1632
|
+
top: 50%;
|
|
1633
|
+
left: 2px;
|
|
1634
|
+
width: 10px;
|
|
1635
|
+
height: 20px;
|
|
1636
|
+
margin-top: -10px;
|
|
1637
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
1638
|
+
border-radius: 5px;
|
|
1639
|
+
background: var(--dpk-paper-raised);
|
|
1640
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
1641
|
+
transition: border-color 120ms ease-out;
|
|
1642
|
+
}
|
|
1643
|
+
.wb-line:hover::before,
|
|
1644
|
+
.wb-line[data-active]::before {
|
|
1645
|
+
background: var(--dpk-ink);
|
|
1646
|
+
}
|
|
1647
|
+
.wb-line:hover::after,
|
|
1648
|
+
.wb-line[data-active]::after {
|
|
1649
|
+
border-color: var(--dpk-ink-soft);
|
|
1650
|
+
}
|
|
1651
|
+
.wb-line:focus-visible {
|
|
1652
|
+
box-shadow: var(--dpk-focus);
|
|
1653
|
+
}
|
|
1654
|
+
.wb-end {
|
|
1655
|
+
display: flex;
|
|
1656
|
+
align-items: center;
|
|
1657
|
+
gap: 6px;
|
|
1658
|
+
color: var(--dpk-ink-faint);
|
|
1659
|
+
font-size: 12px;
|
|
1660
|
+
font-weight: 600;
|
|
1661
|
+
white-space: nowrap;
|
|
1662
|
+
}
|
|
1663
|
+
.wb-scale {
|
|
1664
|
+
position: relative;
|
|
1665
|
+
height: 12px;
|
|
1666
|
+
color: var(--dpk-ink-faint);
|
|
1667
|
+
font-family: var(--dpk-mono);
|
|
1668
|
+
font-size: 10px;
|
|
1669
|
+
}
|
|
1670
|
+
.wb-tick {
|
|
1671
|
+
position: absolute;
|
|
1672
|
+
top: 0;
|
|
1673
|
+
width: 1px;
|
|
1674
|
+
height: 3px;
|
|
1675
|
+
background: var(--dpk-rule-strong);
|
|
1676
|
+
}
|
|
1677
|
+
.wb-scale-end {
|
|
1678
|
+
position: absolute;
|
|
1679
|
+
top: 0;
|
|
1680
|
+
line-height: 12px;
|
|
1681
|
+
}
|
|
1682
|
+
.wb-scale-end[data-at='0'] {
|
|
1683
|
+
left: 0;
|
|
1684
|
+
}
|
|
1685
|
+
.wb-scale-end[data-at='max'] {
|
|
1686
|
+
right: 0;
|
|
1687
|
+
}
|
|
1688
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1689
|
+
.wb-part,
|
|
1690
|
+
.wb-line::before,
|
|
1691
|
+
.wb-line::after {
|
|
1692
|
+
transition: none;
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
`;class vo extends Ee{static{this.styles=[Ie,yo]}static{this.properties={statuses:{attribute:!1},dividers:{attribute:!1},commit:{attribute:!1},drag:{state:!0}}}#e=new Qe(this);constructor(){super(),this.statuses=[],this.dividers=[],this.commit=()=>{},this.drag=null}disconnectedCallback(){super.disconnectedCallback(),this.#r()}render(){const t=ae(this.#e.locale),s=this.statuses.slice(0,-1),a=this.statuses.at(-1);if(!a||s.length===0)return m;const n=this.drag?.dividers??this.dividers,i=We(n),o=r=>`${r/se*100}%`;return l`<div class="wb">
|
|
1696
|
+
<div class="wb-track" role="group" aria-label=${t.statusWeightLabel} ?data-dragging=${this.drag!==null}>
|
|
1697
|
+
<div class="wb-parts">
|
|
1698
|
+
${s.map((r,d)=>{const p=n[d-1]??0,u=i[d]??0;return l`<span
|
|
1699
|
+
class="wb-part"
|
|
1700
|
+
data-part=${r.id}
|
|
1701
|
+
title=${`${r.name} ${je(u)}`}
|
|
1702
|
+
style=${`${M(r.tone)}; left: ${o(p)}; width: ${o(u)}`}
|
|
1703
|
+
>
|
|
1704
|
+
<span class="wb-name">${r.name}</span><span class="wb-value">${je(u)}</span>
|
|
1705
|
+
</span>`})}
|
|
1706
|
+
</div>
|
|
1707
|
+
${n.map((r,d)=>this.#t(t,s,n,d,o(r)))}
|
|
1708
|
+
</div>
|
|
1709
|
+
<span class="wb-end" data-end style=${M(a.tone)}>${de(a)}${a.name}</span>
|
|
1710
|
+
<div class="wb-scale" aria-hidden="true">
|
|
1711
|
+
${Array.from({length:se-1},(r,d)=>l`<span class="wb-tick" style=${`left: ${o(d+1)}`}></span>`)}
|
|
1712
|
+
<span class="wb-scale-end" data-at="0">0</span>
|
|
1713
|
+
<span class="wb-scale-end" data-at="max">${se}</span>
|
|
1714
|
+
</div>
|
|
1715
|
+
</div>`}#t(t,s,a,n,i){const o=s[n]?.name??"",r=s[n+1]?.name??"",d=We(a),p=a[n]??0;return l`<span
|
|
1716
|
+
class="wb-line"
|
|
1717
|
+
role="slider"
|
|
1718
|
+
tabindex="0"
|
|
1719
|
+
style=${`left: ${i}`}
|
|
1720
|
+
aria-label=${t.weightLineLabel(o,r)}
|
|
1721
|
+
aria-valuemin=${String(a[n-1]??0)}
|
|
1722
|
+
aria-valuemax=${String(a[n+1]??se)}
|
|
1723
|
+
aria-valuenow=${String(p)}
|
|
1724
|
+
aria-valuetext=${t.weightLineValue(o,je(d[n]??0),r,je(d[n+1]??0))}
|
|
1725
|
+
?data-active=${this.drag?.index===n}
|
|
1726
|
+
@keydown=${u=>this.#s(u,n)}
|
|
1727
|
+
@pointerdown=${u=>this.#a(u,n)}
|
|
1728
|
+
></span>`}#s(t,s){const a=this.dividers[s]??0,n=(()=>{switch(t.key){case"ArrowLeft":case"ArrowDown":return a-1;case"ArrowRight":case"ArrowUp":return a+1;case"Home":return 0;case"End":return se;default:return null}})();n!==null&&(t.preventDefault(),this.#d(ea(this.dividers,s,n)))}#a(t,s){t.button===0&&(t.preventDefault(),t.currentTarget instanceof HTMLElement&&t.currentTarget.focus({preventScroll:!0}),this.drag={index:s,dividers:this.dividers},document.addEventListener("pointermove",this.#n),document.addEventListener("pointerup",this.#i),document.addEventListener("pointercancel",this.#o))}#n=t=>{const s=this.renderRoot.querySelector(".wb-track")?.getBoundingClientRect();if(!this.drag||!s||s.width===0)return;const a=(t.clientX-s.left)/s.width*se;this.drag={...this.drag,dividers:ea(this.drag.dividers,this.drag.index,a)}};#i=()=>{const t=this.drag?.dividers;this.#r(),t&&this.#d(t)};#o=()=>this.#r();#r(){this.drag=null,document.removeEventListener("pointermove",this.#n),document.removeEventListener("pointerup",this.#i),document.removeEventListener("pointercancel",this.#o)}#d(t){t.some((s,a)=>s!==this.dividers[a])&&this.commit(t)}}const je=e=>String(Math.round(e*10)/10),ko=()=>{customElements.get("dpk-internal-usm-weight-bar")||customElements.define("dpk-internal-usm-weight-bar",vo)},So=(e,t,s)=>{const a=e.at(-1)??null;if(t===null||s==="end")return a;const n=e.indexOf(t);return n<0?a:s==="after"?t:n===0?null:e.at(n-1)??null},ta=(e,t,s,a,n)=>{const i=Fe(e,t.stepId,t.milestoneId).map(o=>o.id);return{type:"MOVE_STORY",target:{type:"story",id:s},payload:{activityId:t.activityId,stepId:t.stepId,milestoneId:t.milestoneId??null,after:Ct(i,s,a,n)}}},sa=(e,t,s,a,n,i)=>{const o=T(e,a);if(!o||o.activityId!==t)return null;const r=es(e,t,s).map(d=>d.id);return{type:"MOVE_STORY",target:{type:"story",id:a},payload:{activityId:t,stepId:o.stepId,milestoneId:s??null,after:Ct(r,a,n,i)}}},aa=(e,t,s,a,n)=>{const i=Fe(e,a,n).filter(o=>o.id!==t);return{type:"MOVE_STORY",target:{type:"story",id:t},payload:{activityId:s,stepId:a,milestoneId:n??null,after:i.at(-1)?.id??null}}},wo=e=>{const t=e.stories.length,s=ze(e);return e.milestones.map((a,n)=>{const i=e.stories.filter(r=>r.milestoneId===a.id),o=new Set(i.map(r=>r.stepId));return{id:a.id,ordinal:n+1,name:a.name,timeframe:a.timeframe?.trim()??"",description:a.description?.trim()??"",storyCount:i.length,share:t===0?0:i.length/t,coverage:{covered:s.filter(({step:r})=>o.has(r.id)).length,total:s.length},progress:Ks(e,i)}})},Eo="__unassigned__",na="__add-milestone__",Xe="__add-activity__",ia="__add-activity-step__",oa=(e,t)=>{const s=a=>t.stories.filter(n=>n.milestoneId===a).length;return[...t.milestones.map(({id:a,name:n,timeframe:i,questions:o})=>({id:a,name:n,timeframe:i?.trim()??"",storyCount:s(a),...o===void 0?{}:{questions:o}})),{id:void 0,name:e.unassigned,timeframe:"",storyCount:s(void 0)}]},Ze=e=>e.id??Eo,ra=e=>[...e.map(t=>({id:Ze(t),draggable:t.id!==void 0})),{id:na,draggable:!1}],$o=e=>[...e.activities.map(t=>({id:t.id,subColumns:t.steps.map(s=>({id:s.id}))})),{id:Xe,draggable:!1,subColumns:[{id:ia,draggable:!1}]}],To=e=>[...e.activities.map(t=>({id:t.id})),{id:Xe,draggable:!1}],xo=(e,t)=>l`
|
|
1729
|
+
<div class="empty">
|
|
1730
|
+
<h2>${e.emptyTitle}</h2>
|
|
1731
|
+
<p>${e.emptyBody}</p>
|
|
1732
|
+
<button class="dpk-btn dpk-btn--accent" type="button" @click=${()=>zs(e,t)}>
|
|
1733
|
+
${e.firstActivityButton}
|
|
1734
|
+
</button>
|
|
1735
|
+
</div>
|
|
1736
|
+
`,_o=e=>{const{m:t,context:s}=e,a=ze(s.state);return a.length===0?xo(t,s):da(s)==="activity"?Ao(e,a):Mo(e)},da=e=>e.navigation.view==="group"?"group":"activity",Io=(e,t)=>{const s=da(t);return l`<div class="dpk-segmented view-tabs" role="tablist" aria-label=${e.groupingLabel}>
|
|
1737
|
+
${la(t,"activity",s,e.activityGroup)}
|
|
1738
|
+
${la(t,"group",s,e.groupViewTab)}
|
|
1739
|
+
</div>`},la=(e,t,s,a)=>l`<a role="tab" aria-selected=${t===s?"true":"false"} href=${e.hashFor({view:t})}
|
|
1740
|
+
>${a}</a
|
|
1741
|
+
>`,Ao=(e,t)=>{const{m:s,context:a,handlers:n}=e,{state:i}=a,o=oa(s,i);return l`
|
|
1742
|
+
<dpk-matrix
|
|
1743
|
+
data-testid="usm-map"
|
|
1744
|
+
.rows=${ra(o)}
|
|
1745
|
+
.columns=${$o(i)}
|
|
1746
|
+
@dpk-matrix-reorder-row=${r=>n.reorderMilestone(r.detail)}
|
|
1747
|
+
@dpk-matrix-reorder-column=${r=>n.reorderActivity(r.detail)}
|
|
1748
|
+
@dpk-matrix-reorder-sub-column=${r=>n.reorderStep(r.detail)}
|
|
1749
|
+
>
|
|
1750
|
+
<div class="corner" slot=${Bt}><span class="dpk-label">${s.groupAxisHeader}</span></div>
|
|
1751
|
+
${B(i.activities,r=>r.id,r=>ca(e,r.id))}
|
|
1752
|
+
${ua(s,a)} ${pa(s,ja)}
|
|
1753
|
+
${B(t,({activity:r,step:d})=>`${r.id}.${d.id}`,({activity:r,step:d})=>Lo(e,r.id,d))}
|
|
1754
|
+
${Do()}
|
|
1755
|
+
${B(o,r=>r.id,r=>ha(e,r))}
|
|
1756
|
+
${B(o,r=>r.id,r=>l`${B(t,({activity:d,step:p})=>`${d.id}.${p.id}`,({activity:d,step:p})=>Oo(e,Ze(r),{activityId:d.id,stepId:p.id,milestoneId:r.id}))}`)}
|
|
1757
|
+
${ma(s,a)}
|
|
1758
|
+
</dpk-matrix>
|
|
1759
|
+
`},Mo=e=>{const{m:t,context:s,handlers:a}=e,{state:n}=s,i=oa(t,n);return l`
|
|
1760
|
+
<dpk-matrix
|
|
1761
|
+
data-testid="usm-map-group"
|
|
1762
|
+
.rows=${ra(i)}
|
|
1763
|
+
.columns=${To(n)}
|
|
1764
|
+
@dpk-matrix-reorder-row=${o=>a.reorderMilestone(o.detail)}
|
|
1765
|
+
@dpk-matrix-reorder-column=${o=>a.reorderActivity(o.detail)}
|
|
1766
|
+
>
|
|
1767
|
+
${pa(t,Bt)}
|
|
1768
|
+
${B(n.activities,o=>o.id,o=>ca(e,o.id,!0))}
|
|
1769
|
+
${ua(t,s)}
|
|
1770
|
+
${B(i,o=>o.id,o=>ha(e,o))}
|
|
1771
|
+
${B(i,o=>o.id,o=>l`${B(n.activities,r=>r.id,r=>No(e,Ze(o),r.id,o.id))}`)}
|
|
1772
|
+
${ma(t,s)}
|
|
1773
|
+
</dpk-matrix>
|
|
1774
|
+
`},pa=(e,t)=>l`<div class="corner" slot=${t}>
|
|
1775
|
+
<span class="dpk-label">${e.activityAxis}</span>
|
|
1776
|
+
<span class="dpk-label">${e.milestoneAxis}</span>
|
|
1777
|
+
</div>`,ca=(e,t,s=!1)=>{const{m:a,context:n}=e,{state:i}=n,o=i.activities.find(p=>p.id===t);if(!o)return l`<div class="act-head"></div>`;const r=i.stories.filter(p=>p.activityId===o.id),d=Ks(i,r);return l`
|
|
1778
|
+
<div
|
|
1779
|
+
class="act-head"
|
|
1780
|
+
data-activity=${o.id}
|
|
1781
|
+
data-column=${o.id}
|
|
1782
|
+
data-dpk-target=${I({type:"activity",id:o.id})}
|
|
1783
|
+
data-dpk-check="off"
|
|
1784
|
+
data-grill-questions=${Ne(Re(o.questions))}
|
|
1785
|
+
slot=${Yt(o.id)}
|
|
1786
|
+
>
|
|
1787
|
+
<div class="act-title">
|
|
1788
|
+
<span class="act-name">
|
|
1789
|
+
<dpk-inline-edit
|
|
1790
|
+
draggable="false"
|
|
1791
|
+
wrap
|
|
1792
|
+
.value=${o.name}
|
|
1793
|
+
.label=${a.activityNameLabel}
|
|
1794
|
+
@dpk-commit=${J(p=>n.dispatch({type:"SET_ACTIVITY_NAME",target:{type:"activity",id:o.id},payload:{name:p}}))}
|
|
1795
|
+
></dpk-inline-edit>
|
|
1796
|
+
<span class="act-actor" data-empty=${String(o.actor===void 0)}>
|
|
1797
|
+
<dpk-inline-edit
|
|
1798
|
+
draggable="false"
|
|
1799
|
+
truncate
|
|
1800
|
+
.value=${o.actor??""}
|
|
1801
|
+
.label=${a.activityActorLabel}
|
|
1802
|
+
.placeholder=${a.activityActorLabel}
|
|
1803
|
+
@dpk-commit=${J(p=>n.dispatch({type:"SET_ACTIVITY_ACTOR",target:{type:"activity",id:o.id},payload:{actor:p}}))}
|
|
1804
|
+
></dpk-inline-edit>
|
|
1805
|
+
</span>
|
|
1806
|
+
</span>
|
|
1807
|
+
<span class="dpk-count" data-size="sm">${r.length}</span>
|
|
1808
|
+
<button
|
|
1809
|
+
class="dpk-icon-btn"
|
|
1810
|
+
type="button"
|
|
1811
|
+
aria-label=${a.addStepAria}
|
|
1812
|
+
@click=${()=>yi(a,n,o.id)}
|
|
1813
|
+
>
|
|
1814
|
+
${Fa()}
|
|
1815
|
+
</button>
|
|
1816
|
+
</div>
|
|
1817
|
+
${Ps(d,a.progressAria(d.map(p=>`${p.name} ${p.count}`).join(", ")))}
|
|
1818
|
+
${s&&o.steps.length>0?l`<ol class="act-steps">
|
|
1819
|
+
${o.steps.map(p=>l`<li>${p.name}</li>`)}
|
|
1820
|
+
</ol>`:m}
|
|
1821
|
+
</div>
|
|
1822
|
+
`},Lo=(e,t,s)=>{const{m:a,context:n}=e,i=ce(t,s.id);return l`
|
|
1823
|
+
<div
|
|
1824
|
+
class="col-head"
|
|
1825
|
+
data-step=${i}
|
|
1826
|
+
data-column=${t}
|
|
1827
|
+
data-column-step=${s.id}
|
|
1828
|
+
data-current=${String(n.navigation.step===s.id)}
|
|
1829
|
+
data-dpk-target=${I({type:"step",id:i})}
|
|
1830
|
+
data-dpk-check="off"
|
|
1831
|
+
data-grill-questions=${Ne(Re(s.questions))}
|
|
1832
|
+
slot=${Ut(t,s.id)}
|
|
1833
|
+
>
|
|
1834
|
+
<h4>
|
|
1835
|
+
<dpk-inline-edit
|
|
1836
|
+
draggable="false"
|
|
1837
|
+
.value=${s.name}
|
|
1838
|
+
.label=${a.stepNameLabel}
|
|
1839
|
+
@dpk-commit=${J(o=>n.dispatch({type:"SET_STEP_NAME",target:{type:"step",id:s.id},payload:{name:o}}))}
|
|
1840
|
+
@click=${o=>o.stopPropagation()}
|
|
1841
|
+
></dpk-inline-edit>
|
|
1842
|
+
</h4>
|
|
1843
|
+
<span class="dpk-count" data-size="sm">${ts(n.state,s.id)}</span>
|
|
1844
|
+
</div>
|
|
1845
|
+
`},ua=(e,t)=>l`<div class="act-head" slot=${Yt(Xe)}>
|
|
1846
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>zs(e,t)}>
|
|
1847
|
+
${e.newActivityButton}
|
|
1848
|
+
</button>
|
|
1849
|
+
</div>`,Do=()=>l`<div class="corner" slot=${Ut(Xe,ia)}>
|
|
1850
|
+
<span class="dpk-label">—</span>
|
|
1851
|
+
</div>`,ma=(e,t)=>l`<div class="row-lead" slot=${Pt(na)}>
|
|
1852
|
+
<div class="row-head">
|
|
1853
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Fs(e,t)}>
|
|
1854
|
+
${e.newMilestoneButton}
|
|
1855
|
+
</button>
|
|
1856
|
+
</div>
|
|
1857
|
+
</div>`,ha=(e,t)=>{const{m:s,context:a}=e,n=t.id,i=Pt(Ze(t));if(n===void 0)return l`<div class="row-lead" slot=${i}>
|
|
1858
|
+
<div class="row-head" data-unassigned="true" data-milestone=""><span>${t.name}</span></div>
|
|
1859
|
+
${ba(s,t)}
|
|
1860
|
+
</div>`;const o=Ro(s,a,n,t.name);return l`
|
|
1861
|
+
<div class="row-lead" slot=${i}>
|
|
1862
|
+
<div
|
|
1863
|
+
class="row-head"
|
|
1864
|
+
data-milestone=${n}
|
|
1865
|
+
data-dpk-target=${I({type:"milestone",id:n})}
|
|
1866
|
+
data-dpk-check="off"
|
|
1867
|
+
data-grill-questions=${Ne(Re(t.questions))}
|
|
1868
|
+
>
|
|
1869
|
+
${o}
|
|
1870
|
+
</div>
|
|
1871
|
+
${ba(s,t)}
|
|
1872
|
+
</div>
|
|
1873
|
+
`},ba=(e,t)=>l`<div class="row-meta">
|
|
1874
|
+
${t.timeframe===""?m:l`<span class="row-timeframe">${t.timeframe}</span>`}
|
|
1875
|
+
<span class="row-count">${e.storyCount(t.storyCount)}</span>
|
|
1876
|
+
</div>`,Ro=(e,t,s,a)=>l`<dpk-inline-edit
|
|
1877
|
+
draggable="false"
|
|
1878
|
+
.value=${a}
|
|
1879
|
+
.label=${e.milestoneNameLabel}
|
|
1880
|
+
@dpk-commit=${J(n=>t.dispatch({type:"SET_MILESTONE_NAME",target:{type:"milestone",id:s},payload:{name:n}}))}
|
|
1881
|
+
></dpk-inline-edit>`,Oo=(e,t,s)=>{const{m:a,context:n,drag:i,handlers:o}=e,r=He(n.state,n.navigation),d=Fe(n.state,s.stepId,s.milestoneId).filter(k=>Ts(r,k)),p=`cell:${s.stepId}:${s.milestoneId??""}`,u=i.target({key:p,accepts:"story",hovered:fa,onDrop:k=>o.dropOnCell(s,k)});return l`
|
|
1882
|
+
<div
|
|
1883
|
+
class="cell"
|
|
1884
|
+
data-step=${s.stepId}
|
|
1885
|
+
data-milestone=${s.milestoneId??""}
|
|
1886
|
+
data-column=${s.activityId}
|
|
1887
|
+
data-column-step=${s.stepId}
|
|
1888
|
+
data-drop=${String(i.isOver(p))}
|
|
1889
|
+
slot=${zt(t,{columnId:s.activityId,subColumnId:s.stepId})}
|
|
1890
|
+
@dragenter=${u.dragenter}
|
|
1891
|
+
@dragover=${u.dragover}
|
|
1892
|
+
@dragleave=${u.dragleave}
|
|
1893
|
+
@drop=${u.drop}
|
|
1894
|
+
>
|
|
1895
|
+
<div class="card-list" data-testid=${`cell-${s.stepId}-${s.milestoneId??"unassigned"}`}>
|
|
1896
|
+
${B(d,k=>k.id,k=>ga(e,k,""))}
|
|
1897
|
+
</div>
|
|
1898
|
+
<button
|
|
1899
|
+
class="dpk-add add-cell"
|
|
1900
|
+
type="button"
|
|
1901
|
+
title=${a.addStoryCellAria}
|
|
1902
|
+
@click=${()=>Vs(a,n,s.activityId,s.stepId,s.milestoneId)}
|
|
1903
|
+
>
|
|
1904
|
+
${a.addCellButton}
|
|
1905
|
+
</button>
|
|
1906
|
+
</div>
|
|
1907
|
+
`},No=(e,t,s,a)=>{const{m:n,context:i,drag:o,handlers:r}=e,{state:d}=i,p=He(d,i.navigation),u=es(d,s,a).filter(L=>Ts(p,L)),k=d.activities.find(L=>L.id===s)?.steps??[],E=k[0],w=L=>k.find(c=>c.id===L)?.name??"",A=`group:${s}:${a??""}`,$=o.target({key:A,accepts:"story",hovered:fa,onDrop:L=>r.dropOnGroupCell(s,a,L)});return l`
|
|
1908
|
+
<div
|
|
1909
|
+
class="cell"
|
|
1910
|
+
data-activity=${s}
|
|
1911
|
+
data-milestone=${a??""}
|
|
1912
|
+
data-column=${s}
|
|
1913
|
+
data-drop=${String(o.isOver(A))}
|
|
1914
|
+
slot=${zt(t,{columnId:s})}
|
|
1915
|
+
@dragenter=${$.dragenter}
|
|
1916
|
+
@dragover=${$.dragover}
|
|
1917
|
+
@dragleave=${$.dragleave}
|
|
1918
|
+
@drop=${$.drop}
|
|
1919
|
+
>
|
|
1920
|
+
<div class="card-list" data-testid=${`group-cell-${s}-${a??"unassigned"}`}>
|
|
1921
|
+
${B(u,L=>L.id,L=>ga(e,L,w(L.stepId)))}
|
|
1922
|
+
</div>
|
|
1923
|
+
${E?l`<button
|
|
1924
|
+
class="dpk-add add-cell"
|
|
1925
|
+
type="button"
|
|
1926
|
+
aria-label=${n.addStoryCellAria}
|
|
1927
|
+
@click=${()=>Vs(n,i,s,E.id,a)}
|
|
1928
|
+
>
|
|
1929
|
+
${n.addCellButton}
|
|
1930
|
+
</button>`:m}
|
|
1931
|
+
</div>
|
|
1932
|
+
`},ga=(e,t,s)=>{const{context:a,drag:n,handlers:i}=e,o=he(a.state),r=n.source({type:"story",id:t.id}),d=ks(a.state,t.id);return l`<dpk-internal-usm-story-card
|
|
1933
|
+
data-story=${t.id}
|
|
1934
|
+
data-status=${t.statusId??""}
|
|
1935
|
+
data-relation=${Bo(a.state,a.navigation.story,t)??m}
|
|
1936
|
+
data-highlight=${Co(e.highlighted,t.id)??m}
|
|
1937
|
+
data-dpk-target=${I({type:"story",id:t.id})}
|
|
1938
|
+
data-grill-questions=${Ne(Re(t.questions))}
|
|
1939
|
+
draggable="true"
|
|
1940
|
+
tabindex="0"
|
|
1941
|
+
role="button"
|
|
1942
|
+
aria-haspopup="dialog"
|
|
1943
|
+
aria-label=${t.name}
|
|
1944
|
+
style=${M(Hs(o,t)?.tone)}
|
|
1945
|
+
.story=${t}
|
|
1946
|
+
.map=${a.state}
|
|
1947
|
+
.stepName=${s}
|
|
1948
|
+
.statuses=${o}
|
|
1949
|
+
.labels=${ct(a.state,t)}
|
|
1950
|
+
.reviewCount=${a.commentCount({type:"story",id:t.id})}
|
|
1951
|
+
.estimate=${P(a.state,"estimates")?z(a.state,t.estimateId)??null:null}
|
|
1952
|
+
.assignee=${P(a.state,"assignees")?pt(a.state,t)??null:null}
|
|
1953
|
+
.blocks=${d.dependents.length}
|
|
1954
|
+
.waits=${d.openBlockers}
|
|
1955
|
+
@click=${()=>i.selectStory(t.id)}
|
|
1956
|
+
@keydown=${p=>{p.composedPath()[0]!==p.currentTarget||p.key!=="Enter"&&p.key!==" "||(p.preventDefault(),i.selectStory(t.id))}}
|
|
1957
|
+
?focused=${a.navigation.story===t.id}
|
|
1958
|
+
?dragging=${n.isDragging("story",t.id)}
|
|
1959
|
+
@dragstart=${r.dragstart}
|
|
1960
|
+
@dragend=${r.dragend}
|
|
1961
|
+
></dpk-internal-usm-story-card>`},Co=(e,t)=>{if(e!==null)return e.has(t)?"on":"dimmed"},Bo=(e,t,s)=>{if(!(t===void 0||t===s.id))return s.blockedBy?.includes(t)?"dependent":e.stories.find(a=>a.id===t)?.blockedBy?.includes(s.id)?"blocker":void 0},fa=e=>{const t=e.target instanceof Element?e.target.closest("dpk-internal-usm-story-card"):null;return t?{id:t.getAttribute("data-story"),element:t}:null},Yo=(e,t)=>Dt((s,a)=>{const n=s.trim()===""?Number.NaN:Number(s);if(!Number.isFinite(n)||n<0){a.value=String(e);return}n!==e&&t(n)}),Uo=O(Va),Po=O(mn),zo={width:720,height:240,inset:{top:16,right:20,bottom:26,left:40}},Fo={width:340,height:150,inset:{top:12,right:14,bottom:24,left:32}},Vo=(e,t,s,a)=>{const{state:n,navigation:i}=t,o=An(n,i),r=ge(n);return l`
|
|
1962
|
+
<section class="bd-overview" data-testid="usm-burndown">
|
|
1963
|
+
<header class="bd-bar">
|
|
1964
|
+
${o?Go(e,t,o,a):m}
|
|
1965
|
+
${Ho(e,t,r)}
|
|
1966
|
+
${o?l`<span class="bd-record">
|
|
1967
|
+
<button
|
|
1968
|
+
class="dpk-btn dpk-btn--primary"
|
|
1969
|
+
type="button"
|
|
1970
|
+
data-role="record-snapshot"
|
|
1971
|
+
title=${e.recordSnapshotHint}
|
|
1972
|
+
@click=${()=>Ei(t,new Date)}
|
|
1973
|
+
>
|
|
1974
|
+
${e.recordSnapshotButton}
|
|
1975
|
+
</button>
|
|
1976
|
+
</span>`:m}
|
|
1977
|
+
</header>
|
|
1978
|
+
${r==="stories"?m:Ko(e,t,r)}
|
|
1979
|
+
${o?qo(e,t,o,r,s):l`<div class="empty">
|
|
1980
|
+
<h2>${e.burndownTab}</h2>
|
|
1981
|
+
<p>${e.noMilestonesForBurndown}</p>
|
|
1982
|
+
</div>`}
|
|
1983
|
+
<div class="bd-side">${Wo(e,t)}</div>
|
|
1984
|
+
</section>
|
|
1985
|
+
`},Go=(e,t,s,a)=>{const{state:n}=t;return l`<label class="bd-control">
|
|
1986
|
+
<span>${e.burndownMilestoneLabel}</span>
|
|
1987
|
+
${a.render({options:n.milestones.map(i=>({value:i.id,label:i.name})),value:s.id,onChange:i=>t.navigate({milestone:i}),ariaLabel:e.burndownMilestoneLabel,className:"bd-milestone-select"})}
|
|
1988
|
+
</label>
|
|
1989
|
+
<label class="bd-control" data-dpk-target=${I({type:"milestone",id:s.id})}>
|
|
1990
|
+
<span>${e.dueDateLabel}</span>
|
|
1991
|
+
<input
|
|
1992
|
+
class="dpk-input"
|
|
1993
|
+
type="date"
|
|
1994
|
+
data-role="due-date"
|
|
1995
|
+
.value=${s.dueDate??""}
|
|
1996
|
+
@change=${Dt(i=>{const o=i===""?null:i;o!==(s.dueDate??null)&&t.dispatch({type:"SET_MILESTONE_DUE_DATE",target:{type:"milestone",id:s.id},payload:{dueDate:o}})})}
|
|
1997
|
+
/>
|
|
1998
|
+
</label>`},Ho=(e,t,s)=>l`<span class="bd-control">
|
|
1999
|
+
<span id="bd-measure-label">${e.measureLabel}</span>
|
|
2000
|
+
<span class="bd-measures" role="radiogroup" aria-labelledby="bd-measure-label">
|
|
2001
|
+
${Gt.map(a=>l`<label class="bd-measure"
|
|
2002
|
+
><input
|
|
2003
|
+
type="radio"
|
|
2004
|
+
name="bd-measure"
|
|
2005
|
+
value=${a}
|
|
2006
|
+
.checked=${a===s}
|
|
2007
|
+
@change=${()=>t.dispatch({type:"SET_MEASURE",target:{type:"page",id:"usm"},payload:{measure:a}})}
|
|
2008
|
+
/>${e.measureName(a)}</label
|
|
2009
|
+
>`)}
|
|
2010
|
+
</span>
|
|
2011
|
+
</span>`,Ko=(e,t,s)=>{const{state:a}=t,n=is(a),i=Qs(n),o=a.estimates.map(d=>`${d.name} ${d.points}`).join(" \xB7 "),r=We(i).map((d,p)=>`${n[p]?.name??""} ${Math.round(d*10)/10}`).join(" \xB7 ");return l`<details class="bd-settings" data-testid="usm-measure-settings" open>
|
|
2012
|
+
<summary class="bd-settings-summary">
|
|
2013
|
+
<span class="bd-settings-chevron" aria-hidden="true"></span>
|
|
2014
|
+
<span class="bd-settings-title">${e.measureSettingsLabel}</span>
|
|
2015
|
+
<span class="bd-settings-gist">
|
|
2016
|
+
<span>${e.estimatesLabel}: ${o===""?"\u2014":`${o} pt`}</span>
|
|
2017
|
+
${s==="weighted"?l`<span>${e.statusWeightLabel}: ${i.length===0?"\u2014":r}</span>`:m}
|
|
2018
|
+
</span>
|
|
2019
|
+
</summary>
|
|
2020
|
+
<div class="bd-settings-body">
|
|
2021
|
+
${jo(e,t)} ${s==="weighted"?Zo(e,t):m}
|
|
2022
|
+
</div>
|
|
2023
|
+
</details>`},qo=(e,t,s,a,n)=>{const{state:i}=t,o=Ln(i,s.id,n.getTime()),r=a==="weighted",d=i.stories.filter(p=>p.milestoneId===s.id&&p.estimateId===void 0).length;return l`
|
|
2024
|
+
${a!=="stories"&&d>0?l`<p class="bd-warning" role="note" data-testid="usm-unestimated-warning">
|
|
2025
|
+
${Po()}<span>${e.unestimatedNote(d)}</span>
|
|
2026
|
+
</p>`:m}
|
|
2027
|
+
<figure class="bd-chart bd-chart--combined">
|
|
2028
|
+
<figcaption>
|
|
2029
|
+
<span class="bd-chart-title">${e.combinedChartTitle(r)}</span>
|
|
2030
|
+
<span class="bd-about">
|
|
2031
|
+
<button class="bd-about-btn" type="button" aria-label=${e.chartAbout} aria-describedby="bd-about-tip">
|
|
2032
|
+
${Uo()}
|
|
2033
|
+
</button>
|
|
2034
|
+
<span class="bd-about-tip" id="bd-about-tip" role="tooltip">${e.combinedChartHint(a)}</span>
|
|
2035
|
+
</span>
|
|
2036
|
+
<span class="bd-chart-latest">${e.chartLatest(va(o.combined))}</span>
|
|
2037
|
+
</figcaption>
|
|
2038
|
+
${ya({chart:"combined",title:e.combinedChartTitle(r),points:o.combined,due:o.due,now:n.getTime(),size:zo,tone:"accent"})}
|
|
2039
|
+
</figure>
|
|
2040
|
+
${o.byStatus.length===0?m:l`<section class="bd-multiples" aria-label=${e.statusChartsLabel}>
|
|
2041
|
+
<h3>${e.statusChartsLabel}</h3>
|
|
2042
|
+
<div class="bd-grid">
|
|
2043
|
+
${o.byStatus.map(({status:p,points:u})=>l`<figure class="bd-chart" data-status=${p.id}>
|
|
2044
|
+
<figcaption>
|
|
2045
|
+
<span class="bd-chart-title">${e.statusChartTitle(p.name)}</span>
|
|
2046
|
+
<span class="bd-chart-latest">${e.chartLatest(va(u))}</span>
|
|
2047
|
+
</figcaption>
|
|
2048
|
+
${ya({chart:"status",statusId:p.id,title:e.statusChartTitle(p.name),points:u,due:o.due,now:n.getTime(),size:Fo,tone:p.tone})}
|
|
2049
|
+
</figure>`)}
|
|
2050
|
+
</div>
|
|
2051
|
+
</section>`}
|
|
2052
|
+
`},ya=e=>l`<dpk-internal-usm-burndown-chart
|
|
2053
|
+
data-chart=${e.chart}
|
|
2054
|
+
data-status=${e.statusId??m}
|
|
2055
|
+
.points=${e.points}
|
|
2056
|
+
.due=${e.due}
|
|
2057
|
+
.now=${e.now}
|
|
2058
|
+
.size=${e.size}
|
|
2059
|
+
.tone=${e.tone}
|
|
2060
|
+
.label=${e.title}
|
|
2061
|
+
></dpk-internal-usm-burndown-chart>`,Wo=(e,t)=>{const s=[...t.state.snapshots].reverse();return l`<section class="bd-panel">
|
|
2062
|
+
<h3>${e.snapshotsLabel}<span class="bd-count">${s.length}</span></h3>
|
|
2063
|
+
${s.length===0?l`<p class="bd-empty">${e.noSnapshots} ${e.chartNeedsSnapshot}</p>`:l`<ol class="bd-snapshots">
|
|
2064
|
+
${B(s,a=>a.id,a=>{const n={type:"snapshot",id:a.id},i=ue(a.at),o=a.tally.reduce((r,d)=>r+d.stories,0);return l`<li data-snapshot=${a.id} data-dpk-target=${I(n)}>
|
|
2065
|
+
<span class="bd-snapshot-at">${i}</span>
|
|
2066
|
+
<span class="bd-snapshot-sum">${e.storyCount(o)}</span>
|
|
2067
|
+
<button
|
|
2068
|
+
class="dpk-icon-btn"
|
|
2069
|
+
type="button"
|
|
2070
|
+
data-role="delete-snapshot"
|
|
2071
|
+
aria-label=${e.deleteSnapshotAria(i)}
|
|
2072
|
+
@click=${()=>t.dispatch({type:"DELETE_SNAPSHOT",target:n,payload:{}})}
|
|
2073
|
+
>
|
|
2074
|
+
${et()}
|
|
2075
|
+
</button>
|
|
2076
|
+
</li>`})}
|
|
2077
|
+
</ol>`}
|
|
2078
|
+
</section>`},jo=(e,t)=>{const{estimates:s}=t.state;return l`<section class="bd-panel" data-testid="usm-estimates">
|
|
2079
|
+
<h3>${e.estimatesLabel}<span class="bd-count">${s.length}</span></h3>
|
|
2080
|
+
<p class="bd-empty">${e.estimatesHint}</p>
|
|
2081
|
+
${s.length===0?m:l`<ol class="bd-estimates">
|
|
2082
|
+
${B(s,a=>a.id,(a,n)=>Xo(e,t,a,n))}
|
|
2083
|
+
</ol>`}
|
|
2084
|
+
<div>
|
|
2085
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>wi(e,t)}>
|
|
2086
|
+
${e.newEstimateButton}
|
|
2087
|
+
</button>
|
|
2088
|
+
</div>
|
|
2089
|
+
</section>`},Xo=(e,t,s,a)=>{const{estimates:n}=t.state,i={type:"estimate",id:s.id};return l`<li data-estimate=${s.id} data-dpk-target=${I(i)}>
|
|
2090
|
+
<span class="bd-estimate-name">
|
|
2091
|
+
<dpk-inline-edit
|
|
2092
|
+
.value=${s.name}
|
|
2093
|
+
.label=${e.estimateNameLabel}
|
|
2094
|
+
@dpk-commit=${J(o=>t.dispatch({type:"SET_ESTIMATE_NAME",target:i,payload:{name:o}}))}
|
|
2095
|
+
></dpk-inline-edit>
|
|
2096
|
+
</span>
|
|
2097
|
+
<label class="bd-estimate-points">
|
|
2098
|
+
<input
|
|
2099
|
+
class="dpk-input"
|
|
2100
|
+
type="number"
|
|
2101
|
+
min="0"
|
|
2102
|
+
step="any"
|
|
2103
|
+
inputmode="decimal"
|
|
2104
|
+
data-role="points"
|
|
2105
|
+
aria-label=${e.estimatePointsLabel}
|
|
2106
|
+
.value=${String(s.points)}
|
|
2107
|
+
@change=${Yo(s.points,o=>t.dispatch({type:"SET_ESTIMATE_POINTS",target:i,payload:{points:o}}))}
|
|
2108
|
+
/>
|
|
2109
|
+
<span>pt</span>
|
|
2110
|
+
</label>
|
|
2111
|
+
${qe(e,{ids:n.map(o=>o.id),row:{previousId:n[a-1]?.id??null,nextId:n[a+1]?.id??null},deleteLabel:e.deleteEstimateAria,reorder:o=>t.dispatch({type:"REORDER_ESTIMATE",target:i,payload:{after:o}}),remove:()=>t.dispatch({type:"DELETE_ESTIMATE",target:i,payload:{}})})}
|
|
2112
|
+
</li>`},Zo=(e,t)=>{const{state:s}=t,a=is(s),n=Qs(a);return l`<section class="bd-panel" data-testid="usm-weights">
|
|
2113
|
+
<h3>${e.statusWeightLabel}</h3>
|
|
2114
|
+
<p class="bd-empty">${e.statusWeightHint}</p>
|
|
2115
|
+
${n.length>0?l`<dpk-internal-usm-weight-bar
|
|
2116
|
+
.statuses=${he(s).slice(0,a.length)}
|
|
2117
|
+
.dividers=${n}
|
|
2118
|
+
.commit=${i=>{for(const{statusId:o,weight:r}of fo(a,i))t.dispatch({type:"SET_STATUS_WEIGHT",target:{type:"status",id:o},payload:{weight:r}})}}
|
|
2119
|
+
></dpk-internal-usm-weight-bar>`:l`<p class="bd-empty">${e.weightsNeedStatuses}</p>`}
|
|
2120
|
+
</section>`},va=e=>e.at(-1)?.value??0,Jo=q`
|
|
2121
|
+
.bd-overview {
|
|
2122
|
+
display: grid;
|
|
2123
|
+
gap: 18px;
|
|
2124
|
+
max-width: 1040px;
|
|
2125
|
+
padding: 28px 0 40px;
|
|
2126
|
+
}
|
|
2127
|
+
.bd-bar {
|
|
2128
|
+
display: flex;
|
|
2129
|
+
flex-wrap: wrap;
|
|
2130
|
+
align-items: flex-end;
|
|
2131
|
+
gap: 12px 16px;
|
|
2132
|
+
}
|
|
2133
|
+
.bd-control {
|
|
2134
|
+
display: grid;
|
|
2135
|
+
gap: 4px;
|
|
2136
|
+
min-width: 0;
|
|
2137
|
+
}
|
|
2138
|
+
.bd-control > span:first-child {
|
|
2139
|
+
color: var(--dpk-ink-faint);
|
|
2140
|
+
font-size: 11px;
|
|
2141
|
+
font-weight: 600;
|
|
2142
|
+
}
|
|
2143
|
+
.bd-control .dpk-rich-select {
|
|
2144
|
+
min-width: 160px;
|
|
2145
|
+
}
|
|
2146
|
+
.bd-control .dpk-input {
|
|
2147
|
+
width: 160px;
|
|
2148
|
+
font-family: var(--dpk-mono);
|
|
2149
|
+
font-variant-numeric: tabular-nums;
|
|
2150
|
+
}
|
|
2151
|
+
/* One row at any width: on a narrow screen each option wraps its own name instead of the row wrapping. */
|
|
2152
|
+
.bd-measures {
|
|
2153
|
+
display: inline-flex;
|
|
2154
|
+
max-width: 100%;
|
|
2155
|
+
padding: 2px;
|
|
2156
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
2157
|
+
border-radius: var(--dpk-radius-sm);
|
|
2158
|
+
background: var(--dpk-paper-sunken);
|
|
2159
|
+
}
|
|
2160
|
+
.bd-measure {
|
|
2161
|
+
position: relative;
|
|
2162
|
+
display: grid;
|
|
2163
|
+
flex: 1 1 auto;
|
|
2164
|
+
place-items: center;
|
|
2165
|
+
min-width: 0;
|
|
2166
|
+
padding: 4px 12px;
|
|
2167
|
+
text-align: center;
|
|
2168
|
+
border-radius: calc(var(--dpk-radius-sm) - 2px);
|
|
2169
|
+
color: var(--dpk-ink-soft);
|
|
2170
|
+
font-size: 12.5px;
|
|
2171
|
+
font-weight: 600;
|
|
2172
|
+
cursor: pointer;
|
|
2173
|
+
}
|
|
2174
|
+
/* The radio stays in the page for the keyboard and the reader; the label is what shows. */
|
|
2175
|
+
.bd-measure input {
|
|
2176
|
+
position: absolute;
|
|
2177
|
+
inset: 0;
|
|
2178
|
+
margin: 0;
|
|
2179
|
+
opacity: 0;
|
|
2180
|
+
cursor: pointer;
|
|
2181
|
+
}
|
|
2182
|
+
.bd-measure:has(input:checked) {
|
|
2183
|
+
background: var(--dpk-paper-raised);
|
|
2184
|
+
color: var(--dpk-ink);
|
|
2185
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
2186
|
+
}
|
|
2187
|
+
.bd-measure:has(input:focus-visible) {
|
|
2188
|
+
box-shadow: var(--dpk-focus);
|
|
2189
|
+
}
|
|
2190
|
+
.bd-settings {
|
|
2191
|
+
display: grid;
|
|
2192
|
+
gap: 10px;
|
|
2193
|
+
}
|
|
2194
|
+
.bd-settings-summary {
|
|
2195
|
+
display: flex;
|
|
2196
|
+
flex-wrap: wrap;
|
|
2197
|
+
align-items: center;
|
|
2198
|
+
gap: 4px 10px;
|
|
2199
|
+
justify-self: start;
|
|
2200
|
+
padding: 4px 10px 4px 6px;
|
|
2201
|
+
border-radius: var(--dpk-radius-sm);
|
|
2202
|
+
color: var(--dpk-ink-soft);
|
|
2203
|
+
font-size: 12px;
|
|
2204
|
+
list-style: none;
|
|
2205
|
+
cursor: pointer;
|
|
2206
|
+
user-select: none;
|
|
2207
|
+
}
|
|
2208
|
+
.bd-settings-summary::-webkit-details-marker {
|
|
2209
|
+
display: none;
|
|
2210
|
+
}
|
|
2211
|
+
.bd-settings-summary:hover {
|
|
2212
|
+
background: var(--dpk-paper-sunken);
|
|
2213
|
+
color: var(--dpk-ink);
|
|
2214
|
+
}
|
|
2215
|
+
.bd-settings-summary:focus-visible {
|
|
2216
|
+
outline: none;
|
|
2217
|
+
box-shadow: var(--dpk-focus);
|
|
2218
|
+
}
|
|
2219
|
+
.bd-settings-chevron {
|
|
2220
|
+
width: 6px;
|
|
2221
|
+
height: 6px;
|
|
2222
|
+
margin: 0 3px;
|
|
2223
|
+
border-right: 1.5px solid currentColor;
|
|
2224
|
+
border-bottom: 1.5px solid currentColor;
|
|
2225
|
+
transform: rotate(-45deg);
|
|
2226
|
+
transition: transform 160ms var(--dpk-ease);
|
|
2227
|
+
}
|
|
2228
|
+
.bd-settings[open] .bd-settings-chevron {
|
|
2229
|
+
transform: rotate(45deg);
|
|
2230
|
+
}
|
|
2231
|
+
.bd-settings-title {
|
|
2232
|
+
font-weight: 650;
|
|
2233
|
+
}
|
|
2234
|
+
.bd-settings-gist {
|
|
2235
|
+
display: inline-flex;
|
|
2236
|
+
flex-wrap: wrap;
|
|
2237
|
+
gap: 2px 14px;
|
|
2238
|
+
color: var(--dpk-ink-faint);
|
|
2239
|
+
font-family: var(--dpk-mono);
|
|
2240
|
+
font-size: 11.5px;
|
|
2241
|
+
font-variant-numeric: tabular-nums;
|
|
2242
|
+
}
|
|
2243
|
+
/* Side by side while both fit; the scale alone takes the row. */
|
|
2244
|
+
.bd-settings-body {
|
|
2245
|
+
display: grid;
|
|
2246
|
+
grid-template-columns: repeat(auto-fit, minmax(max(300px, calc((100% - 12px) / 2)), 1fr));
|
|
2247
|
+
gap: 12px;
|
|
2248
|
+
align-items: start;
|
|
2249
|
+
}
|
|
2250
|
+
.bd-record {
|
|
2251
|
+
margin-left: auto;
|
|
2252
|
+
}
|
|
2253
|
+
.bd-warning {
|
|
2254
|
+
display: flex;
|
|
2255
|
+
align-items: flex-start;
|
|
2256
|
+
gap: 8px;
|
|
2257
|
+
margin: 0;
|
|
2258
|
+
padding: 8px 12px;
|
|
2259
|
+
border: 1px solid color-mix(in oklab, var(--dpk-amber) 40%, var(--dpk-rule));
|
|
2260
|
+
border-radius: var(--dpk-radius-sm);
|
|
2261
|
+
background: color-mix(in oklab, var(--dpk-amber) 10%, var(--dpk-paper-raised));
|
|
2262
|
+
color: var(--dpk-ink);
|
|
2263
|
+
font-size: 12.5px;
|
|
2264
|
+
line-height: 1.5;
|
|
2265
|
+
}
|
|
2266
|
+
.bd-warning svg {
|
|
2267
|
+
flex: none;
|
|
2268
|
+
width: 15px;
|
|
2269
|
+
height: 15px;
|
|
2270
|
+
margin-top: 2px;
|
|
2271
|
+
color: var(--dpk-amber);
|
|
2272
|
+
}
|
|
2273
|
+
.bd-empty {
|
|
2274
|
+
margin: 0;
|
|
2275
|
+
color: var(--dpk-ink-faint);
|
|
2276
|
+
font-size: 12px;
|
|
2277
|
+
line-height: 1.5;
|
|
2278
|
+
}
|
|
2279
|
+
.bd-chart {
|
|
2280
|
+
display: grid;
|
|
2281
|
+
gap: 8px;
|
|
2282
|
+
margin: 0;
|
|
2283
|
+
padding: 14px 16px 10px;
|
|
2284
|
+
border: 1px solid var(--dpk-rule);
|
|
2285
|
+
border-radius: var(--dpk-radius-lg);
|
|
2286
|
+
background: var(--dpk-paper-raised);
|
|
2287
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
2288
|
+
}
|
|
2289
|
+
.bd-chart figcaption {
|
|
2290
|
+
display: flex;
|
|
2291
|
+
flex-wrap: wrap;
|
|
2292
|
+
align-items: baseline;
|
|
2293
|
+
gap: 4px 12px;
|
|
2294
|
+
}
|
|
2295
|
+
.bd-chart-title {
|
|
2296
|
+
font-size: 13.5px;
|
|
2297
|
+
font-weight: 650;
|
|
2298
|
+
}
|
|
2299
|
+
.bd-chart-latest {
|
|
2300
|
+
margin-left: auto;
|
|
2301
|
+
color: var(--dpk-ink-soft);
|
|
2302
|
+
font-family: var(--dpk-mono);
|
|
2303
|
+
font-size: 12px;
|
|
2304
|
+
font-variant-numeric: tabular-nums;
|
|
2305
|
+
}
|
|
2306
|
+
.bd-about {
|
|
2307
|
+
position: relative;
|
|
2308
|
+
display: inline-flex;
|
|
2309
|
+
align-self: center;
|
|
2310
|
+
}
|
|
2311
|
+
.bd-about-btn {
|
|
2312
|
+
display: inline-grid;
|
|
2313
|
+
place-items: center;
|
|
2314
|
+
width: 20px;
|
|
2315
|
+
height: 20px;
|
|
2316
|
+
padding: 0;
|
|
2317
|
+
border: 0;
|
|
2318
|
+
border-radius: 50%;
|
|
2319
|
+
background: none;
|
|
2320
|
+
color: var(--dpk-ink-faint);
|
|
2321
|
+
cursor: help;
|
|
2322
|
+
}
|
|
2323
|
+
.bd-about-btn:hover,
|
|
2324
|
+
.bd-about-btn:focus-visible {
|
|
2325
|
+
outline: none;
|
|
2326
|
+
color: var(--dpk-ink);
|
|
2327
|
+
}
|
|
2328
|
+
.bd-about-btn:focus-visible {
|
|
2329
|
+
box-shadow: var(--dpk-focus);
|
|
2330
|
+
}
|
|
2331
|
+
.bd-about-btn svg {
|
|
2332
|
+
width: 15px;
|
|
2333
|
+
height: 15px;
|
|
2334
|
+
}
|
|
2335
|
+
.bd-about-tip {
|
|
2336
|
+
position: absolute;
|
|
2337
|
+
top: calc(100% + 6px);
|
|
2338
|
+
left: -8px;
|
|
2339
|
+
z-index: 2;
|
|
2340
|
+
width: max-content;
|
|
2341
|
+
max-width: 360px;
|
|
2342
|
+
padding: 8px 10px;
|
|
2343
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
2344
|
+
border-radius: var(--dpk-radius-sm);
|
|
2345
|
+
background: var(--dpk-paper-raised);
|
|
2346
|
+
box-shadow: var(--dpk-shadow-sm);
|
|
2347
|
+
color: var(--dpk-ink-soft);
|
|
2348
|
+
font-size: 12px;
|
|
2349
|
+
font-weight: 400;
|
|
2350
|
+
line-height: 1.5;
|
|
2351
|
+
visibility: hidden;
|
|
2352
|
+
opacity: 0;
|
|
2353
|
+
transition: opacity 120ms var(--dpk-ease);
|
|
2354
|
+
}
|
|
2355
|
+
.bd-about:hover .bd-about-tip,
|
|
2356
|
+
.bd-about-btn:focus-visible + .bd-about-tip {
|
|
2357
|
+
visibility: visible;
|
|
2358
|
+
opacity: 1;
|
|
2359
|
+
}
|
|
2360
|
+
.bd-multiples {
|
|
2361
|
+
display: grid;
|
|
2362
|
+
gap: 10px;
|
|
2363
|
+
}
|
|
2364
|
+
.bd-multiples h3,
|
|
2365
|
+
.bd-panel h3 {
|
|
2366
|
+
display: flex;
|
|
2367
|
+
align-items: center;
|
|
2368
|
+
gap: 8px;
|
|
2369
|
+
margin: 0;
|
|
2370
|
+
color: var(--dpk-ink-soft);
|
|
2371
|
+
font-size: 12px;
|
|
2372
|
+
font-weight: 650;
|
|
2373
|
+
letter-spacing: 0.02em;
|
|
2374
|
+
}
|
|
2375
|
+
.bd-grid {
|
|
2376
|
+
display: grid;
|
|
2377
|
+
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
2378
|
+
gap: 12px;
|
|
2379
|
+
}
|
|
2380
|
+
.bd-side {
|
|
2381
|
+
display: grid;
|
|
2382
|
+
gap: 12px;
|
|
2383
|
+
align-items: start;
|
|
2384
|
+
}
|
|
2385
|
+
.bd-panel {
|
|
2386
|
+
display: grid;
|
|
2387
|
+
gap: 10px;
|
|
2388
|
+
padding: 14px 16px;
|
|
2389
|
+
border: 1px solid var(--dpk-rule);
|
|
2390
|
+
border-radius: var(--dpk-radius-lg);
|
|
2391
|
+
background: var(--dpk-paper-raised);
|
|
2392
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
2393
|
+
}
|
|
2394
|
+
.bd-count {
|
|
2395
|
+
color: var(--dpk-ink-faint);
|
|
2396
|
+
font-family: var(--dpk-mono);
|
|
2397
|
+
font-weight: 500;
|
|
2398
|
+
}
|
|
2399
|
+
.bd-snapshots,
|
|
2400
|
+
.bd-estimates {
|
|
2401
|
+
display: grid;
|
|
2402
|
+
margin: 0;
|
|
2403
|
+
padding: 0;
|
|
2404
|
+
list-style: none;
|
|
2405
|
+
}
|
|
2406
|
+
.bd-snapshots li,
|
|
2407
|
+
.bd-estimates li {
|
|
2408
|
+
display: grid;
|
|
2409
|
+
align-items: center;
|
|
2410
|
+
gap: 10px;
|
|
2411
|
+
min-height: 34px;
|
|
2412
|
+
}
|
|
2413
|
+
.bd-snapshots li {
|
|
2414
|
+
grid-template-columns: minmax(0, 1fr) auto 26px;
|
|
2415
|
+
}
|
|
2416
|
+
.bd-estimates li {
|
|
2417
|
+
grid-template-columns: minmax(0, 1fr) 96px auto;
|
|
2418
|
+
}
|
|
2419
|
+
.bd-snapshots li + li,
|
|
2420
|
+
.bd-estimates li + li {
|
|
2421
|
+
border-top: 1px solid var(--dpk-rule);
|
|
2422
|
+
}
|
|
2423
|
+
.bd-snapshot-at,
|
|
2424
|
+
.bd-snapshot-sum {
|
|
2425
|
+
font-family: var(--dpk-mono);
|
|
2426
|
+
font-size: 12px;
|
|
2427
|
+
font-variant-numeric: tabular-nums;
|
|
2428
|
+
}
|
|
2429
|
+
.bd-snapshot-sum {
|
|
2430
|
+
color: var(--dpk-ink-faint);
|
|
2431
|
+
}
|
|
2432
|
+
.bd-snapshots .dpk-icon-btn {
|
|
2433
|
+
width: 26px;
|
|
2434
|
+
height: 26px;
|
|
2435
|
+
}
|
|
2436
|
+
.bd-estimate-name {
|
|
2437
|
+
min-width: 0;
|
|
2438
|
+
font-family: var(--dpk-mono);
|
|
2439
|
+
font-size: 13px;
|
|
2440
|
+
font-weight: 650;
|
|
2441
|
+
}
|
|
2442
|
+
.bd-estimate-points {
|
|
2443
|
+
display: inline-flex;
|
|
2444
|
+
align-items: center;
|
|
2445
|
+
gap: 5px;
|
|
2446
|
+
color: var(--dpk-ink-faint);
|
|
2447
|
+
font-size: 11px;
|
|
2448
|
+
}
|
|
2449
|
+
.bd-estimate-points .dpk-input {
|
|
2450
|
+
min-height: 28px;
|
|
2451
|
+
padding: 3px 8px;
|
|
2452
|
+
font-family: var(--dpk-mono);
|
|
2453
|
+
font-size: 12px;
|
|
2454
|
+
font-variant-numeric: tabular-nums;
|
|
2455
|
+
}
|
|
2456
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2457
|
+
.bd-settings-chevron {
|
|
2458
|
+
transition: none;
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
@media (max-width: 640px) {
|
|
2462
|
+
.bd-record {
|
|
2463
|
+
margin-left: 0;
|
|
2464
|
+
}
|
|
2465
|
+
.bd-control .dpk-rich-select,
|
|
2466
|
+
.bd-control .dpk-input {
|
|
2467
|
+
width: 100%;
|
|
2468
|
+
min-width: 0;
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
`,Qo=O(cn),er=(e,t)=>{const s=Ge(t.navigation)==="critical-path",a=s?Ss(t.state).ids.size:null;return l`<button
|
|
2472
|
+
class="dpk-btn dpk-btn--ghost highlight-toggle"
|
|
2473
|
+
type="button"
|
|
2474
|
+
data-highlight-toggle="critical-path"
|
|
2475
|
+
aria-pressed=${String(s)}
|
|
2476
|
+
title=${e.criticalPathHint}
|
|
2477
|
+
@click=${()=>t.navigate({highlight:s?null:"critical-path"})}
|
|
2478
|
+
>
|
|
2479
|
+
${Qo()}<span>${e.criticalPathButton}</span>
|
|
2480
|
+
${a===null?m:l`<span class="highlight-count">${e.criticalPathCount(a)}</span>`}
|
|
2481
|
+
</button>`},tr=q`
|
|
2482
|
+
.highlight-toggle {
|
|
2483
|
+
gap: 6px;
|
|
2484
|
+
margin-left: auto;
|
|
2485
|
+
}
|
|
2486
|
+
.highlight-toggle svg {
|
|
2487
|
+
width: 14px;
|
|
2488
|
+
height: 14px;
|
|
2489
|
+
}
|
|
2490
|
+
.highlight-toggle[aria-pressed='true'] {
|
|
2491
|
+
border-color: color-mix(in oklab, var(--dpk-accent) 55%, var(--dpk-rule-strong));
|
|
2492
|
+
background: color-mix(in oklab, var(--dpk-accent) 12%, var(--dpk-paper-raised));
|
|
2493
|
+
color: var(--dpk-ink);
|
|
2494
|
+
}
|
|
2495
|
+
.highlight-toggle[aria-pressed='true'] svg {
|
|
2496
|
+
color: var(--dpk-accent);
|
|
2497
|
+
}
|
|
2498
|
+
.highlight-count {
|
|
2499
|
+
color: var(--dpk-ink-soft);
|
|
2500
|
+
font-family: var(--dpk-mono);
|
|
2501
|
+
font-size: 10.5px;
|
|
2502
|
+
font-variant-numeric: tabular-nums;
|
|
2503
|
+
}
|
|
2504
|
+
`,sr=(e,t,s)=>{const{state:a}=t,n=xe.filter(r=>fe(a,r).length>0);if(n.length===0)return m;const i=He(a,t.navigation),o=Object.fromEntries(xe.map(r=>[r,null]));return l`<div class="map-filter" role="group" aria-label=${e.filterLabel} data-testid="usm-map-filter">
|
|
2505
|
+
${n.map(r=>nr(e,t,i,r,s))} ${ar(e,t)}
|
|
2506
|
+
${Hn(i)?l`<a class="filter-clear" href=${t.hashFor(o)}>${e.clearFilter}</a>`:m}
|
|
2507
|
+
</div>`},ar=(e,t)=>{const{state:s}=t,a=as(s);if(!a||s.statuses.length<2)return m;const n=Es(s,t.navigation).size===0,i=s.stories.filter(o=>Te(s,o)).length;return l`<label class="show-finished">
|
|
2508
|
+
<input
|
|
2509
|
+
type="checkbox"
|
|
2510
|
+
data-show-finished
|
|
2511
|
+
.checked=${n}
|
|
2512
|
+
@change=${o=>{const r=o.currentTarget instanceof HTMLInputElement&&o.currentTarget.checked;t.navigate({[re.key]:r?re.value:null})}}
|
|
2513
|
+
/>
|
|
2514
|
+
<span>${e.showFinished(a.name)}</span>
|
|
2515
|
+
<span class="show-finished-count">${i}</span>
|
|
2516
|
+
</label>`},nr=(e,t,s,a,n)=>{const i=s[a],o=rr(e,t.state,s.hiddenStatusIds,a),r=o.filter(p=>i.has(p.id)),d=n.openFor===a;return l`<span class="filter-field">
|
|
2517
|
+
<button
|
|
2518
|
+
class="dpk-filter"
|
|
2519
|
+
type="button"
|
|
2520
|
+
data-filter-trigger=${a}
|
|
2521
|
+
data-active=${String(r.length>0)}
|
|
2522
|
+
aria-haspopup="menu"
|
|
2523
|
+
aria-expanded=${String(d)}
|
|
2524
|
+
@click=${()=>n.toggle(a)}
|
|
2525
|
+
>
|
|
2526
|
+
<span class="filter-key">${e.filterKeyLabel(a)}</span>
|
|
2527
|
+
<span class="filter-value">${ir(e,r)}</span>
|
|
2528
|
+
</button>
|
|
2529
|
+
${d?or(e,t,a,i,o,n):m}
|
|
2530
|
+
</span>`},ir=(e,t)=>{const[s]=t;return s?t.length===1?s.name:`${s.name} +${t.length-1}`:e.filterAll},or=(e,t,s,a,n,i)=>l`<div
|
|
2531
|
+
id="filter-menu"
|
|
2532
|
+
class="comment-pop filter-menu"
|
|
2533
|
+
popover="manual"
|
|
2534
|
+
role="menu"
|
|
2535
|
+
aria-label=${e.filterKeyLabel(s)}
|
|
2536
|
+
data-filter=${s}
|
|
2537
|
+
@keydown=${o=>{o.key==="Escape"&&(o.preventDefault(),i.close())}}
|
|
2538
|
+
>
|
|
2539
|
+
<a
|
|
2540
|
+
class="filter-option"
|
|
2541
|
+
role="menuitemcheckbox"
|
|
2542
|
+
data-option=""
|
|
2543
|
+
aria-checked=${String(a.size===0)}
|
|
2544
|
+
href=${t.hashFor({[s]:null})}
|
|
2545
|
+
>
|
|
2546
|
+
<span class="filter-check">${a.size===0?De():m}</span>
|
|
2547
|
+
<span class="filter-name">${e.filterAll}</span>
|
|
2548
|
+
</a>
|
|
2549
|
+
${n.map(o=>{const r=a.has(o.id);return l`<a
|
|
2550
|
+
class="filter-option"
|
|
2551
|
+
role="menuitemcheckbox"
|
|
2552
|
+
data-option=${o.id}
|
|
2553
|
+
data-none=${o.id===oe?"true":m}
|
|
2554
|
+
aria-checked=${String(r)}
|
|
2555
|
+
style=${o.style}
|
|
2556
|
+
href=${t.hashFor({[s]:$s(t.state,s,Gn(a,o.id))})}
|
|
2557
|
+
>
|
|
2558
|
+
<span class="filter-check">${r?De():m}</span>
|
|
2559
|
+
${o.mark}
|
|
2560
|
+
<span class="filter-name" title=${o.name}>${o.name}</span>
|
|
2561
|
+
<span class="filter-count">${o.count}</span>
|
|
2562
|
+
</a>`})}
|
|
2563
|
+
</div>`,rr=(e,t,s,a)=>{const n=i=>t.stories.filter(o=>o.statusId===void 0||!s.has(o.statusId)).filter(i).length;switch(a){case"status":return he(t).filter(i=>!s.has(i.id)).map(i=>({id:i.id,name:i.name,count:n(o=>o.statusId===i.id),mark:de(i),style:M(i.tone)}));case"label":return fe(t,a).map(i=>{const o=t.labels.find(r=>r.id===i);return{id:i,name:o?.name??e.noLabel,count:n(r=>o?(r.labelIds??[]).includes(i):(r.labelIds??[]).length===0),mark:l`<span class="filter-dot"></span>`,style:M(o?.tone)}});case"estimate":return fe(t,a).map(i=>{const o=z(t,i);return{id:i,name:o?.name??e.unestimatedFilter,count:n(r=>(r.estimateId??oe)===i),mark:o?l`<span class="filter-points">${o.points}pt</span>`:m,style:""}});case"assignee":return fe(t,a).map(i=>{const o=G(t,i);return{id:i,name:o?.name??e.noAssigneeFilter,count:n(r=>(r.assigneeId??oe)===i),mark:l`<span class="filter-dot"></span>`,style:M(o?.tone)}})}},dr=q`
|
|
2564
|
+
.show-finished {
|
|
2565
|
+
display: inline-flex;
|
|
2566
|
+
align-items: center;
|
|
2567
|
+
gap: 6px;
|
|
2568
|
+
padding: 0 4px;
|
|
2569
|
+
color: var(--dpk-ink-soft);
|
|
2570
|
+
font-size: 12px;
|
|
2571
|
+
font-weight: 600;
|
|
2572
|
+
cursor: pointer;
|
|
2573
|
+
user-select: none;
|
|
2574
|
+
}
|
|
2575
|
+
.show-finished input {
|
|
2576
|
+
margin: 0;
|
|
2577
|
+
accent-color: var(--dpk-blue);
|
|
2578
|
+
}
|
|
2579
|
+
.show-finished-count {
|
|
2580
|
+
color: var(--dpk-ink-faint);
|
|
2581
|
+
font-family: var(--dpk-mono);
|
|
2582
|
+
font-size: 10.5px;
|
|
2583
|
+
font-variant-numeric: tabular-nums;
|
|
2584
|
+
}
|
|
2585
|
+
.map-filter {
|
|
2586
|
+
display: flex;
|
|
2587
|
+
flex-wrap: wrap;
|
|
2588
|
+
align-items: center;
|
|
2589
|
+
gap: 8px;
|
|
2590
|
+
min-width: 0;
|
|
2591
|
+
}
|
|
2592
|
+
.filter-field {
|
|
2593
|
+
min-width: 0;
|
|
2594
|
+
}
|
|
2595
|
+
.filter-clear {
|
|
2596
|
+
margin-left: 2px;
|
|
2597
|
+
color: var(--dpk-blue);
|
|
2598
|
+
font-size: 12px;
|
|
2599
|
+
font-weight: 600;
|
|
2600
|
+
text-decoration: none;
|
|
2601
|
+
}
|
|
2602
|
+
.filter-clear:hover {
|
|
2603
|
+
text-decoration: underline;
|
|
2604
|
+
}
|
|
2605
|
+
.comment-pop.filter-menu {
|
|
2606
|
+
gap: 1px;
|
|
2607
|
+
padding: 6px;
|
|
2608
|
+
}
|
|
2609
|
+
.filter-option {
|
|
2610
|
+
display: flex;
|
|
2611
|
+
align-items: center;
|
|
2612
|
+
gap: 8px;
|
|
2613
|
+
min-height: 30px;
|
|
2614
|
+
padding: 4px 8px;
|
|
2615
|
+
border-radius: var(--dpk-radius-sm);
|
|
2616
|
+
color: var(--dpk-ink);
|
|
2617
|
+
font-size: 12.5px;
|
|
2618
|
+
font-weight: 550;
|
|
2619
|
+
text-decoration: none;
|
|
2620
|
+
}
|
|
2621
|
+
.filter-option[data-none] .filter-name {
|
|
2622
|
+
color: var(--dpk-ink-soft);
|
|
2623
|
+
font-style: italic;
|
|
2624
|
+
}
|
|
2625
|
+
.filter-option:hover,
|
|
2626
|
+
.filter-option:focus-visible {
|
|
2627
|
+
outline: none;
|
|
2628
|
+
background: var(--dpk-paper-sunken);
|
|
2629
|
+
}
|
|
2630
|
+
.filter-option:focus-visible {
|
|
2631
|
+
box-shadow: var(--dpk-focus);
|
|
2632
|
+
}
|
|
2633
|
+
.filter-check {
|
|
2634
|
+
flex: none;
|
|
2635
|
+
display: inline-grid;
|
|
2636
|
+
place-items: center;
|
|
2637
|
+
width: 16px;
|
|
2638
|
+
height: 16px;
|
|
2639
|
+
color: var(--dpk-blue);
|
|
2640
|
+
}
|
|
2641
|
+
.filter-check svg {
|
|
2642
|
+
width: 14px;
|
|
2643
|
+
height: 14px;
|
|
2644
|
+
}
|
|
2645
|
+
.filter-name {
|
|
2646
|
+
flex: 1;
|
|
2647
|
+
min-width: 0;
|
|
2648
|
+
overflow: hidden;
|
|
2649
|
+
text-overflow: ellipsis;
|
|
2650
|
+
white-space: nowrap;
|
|
2651
|
+
}
|
|
2652
|
+
.filter-dot {
|
|
2653
|
+
flex: none;
|
|
2654
|
+
width: 8px;
|
|
2655
|
+
height: 8px;
|
|
2656
|
+
border-radius: 50%;
|
|
2657
|
+
background: var(--usm-tone, var(--dpk-ink-faint));
|
|
2658
|
+
}
|
|
2659
|
+
.filter-points,
|
|
2660
|
+
.filter-count {
|
|
2661
|
+
color: var(--dpk-ink-faint);
|
|
2662
|
+
font-family: var(--dpk-mono);
|
|
2663
|
+
font-size: 10.5px;
|
|
2664
|
+
font-variant-numeric: tabular-nums;
|
|
2665
|
+
}
|
|
2666
|
+
`,lr=(e,t,s)=>l`<div class="map-toolbar" data-testid="usm-map-toolbar">
|
|
2667
|
+
${sr(e,t,s)} ${er(e,t)}
|
|
2668
|
+
</div>`,pr=q`
|
|
2669
|
+
.map-toolbar {
|
|
2670
|
+
display: flex;
|
|
2671
|
+
flex-wrap: wrap;
|
|
2672
|
+
align-items: center;
|
|
2673
|
+
gap: 8px 12px;
|
|
2674
|
+
padding: 5px 24px;
|
|
2675
|
+
border-bottom: 1px solid var(--dpk-rule);
|
|
2676
|
+
}
|
|
2677
|
+
`,cr=(e,t,s)=>l`
|
|
2678
|
+
<section class="ms-overview" data-testid="usm-milestones">
|
|
2679
|
+
${s.length===0?l`<div class="empty">
|
|
2680
|
+
<h2>${e.noMilestonesTitle}</h2>
|
|
2681
|
+
<p>${e.noMilestonesBody}</p>
|
|
2682
|
+
</div>`:m}
|
|
2683
|
+
<ol class="ms-timeline">
|
|
2684
|
+
${B(s,a=>a.id,a=>ur(e,t,a))}
|
|
2685
|
+
<li class="ms-add">
|
|
2686
|
+
<span class="ms-when" aria-hidden="true"></span>
|
|
2687
|
+
<span class="ms-rail" aria-hidden="true"><span class="ms-node ms-node--add"></span></span>
|
|
2688
|
+
<div class="ms-body">
|
|
2689
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Fs(e,t)}>
|
|
2690
|
+
${e.newMilestoneButton}
|
|
2691
|
+
</button>
|
|
2692
|
+
</div>
|
|
2693
|
+
</li>
|
|
2694
|
+
</ol>
|
|
2695
|
+
</section>
|
|
2696
|
+
`,ur=(e,t,s)=>{const a=s.id;return l`
|
|
2697
|
+
<li class="ms-entry" data-milestone-card=${a} data-dpk-target=${I({type:"milestone",id:a})}>
|
|
2698
|
+
<div class="ms-when">
|
|
2699
|
+
${s.timeframe===""?l`<span class="ms-timeframe" data-empty="true">${e.timeframeUnset}</span>`:l`<span class="ms-timeframe">${s.timeframe}</span>`}
|
|
2700
|
+
</div>
|
|
2701
|
+
<span class="ms-rail" aria-hidden="true"><span class="ms-node">${s.ordinal}</span></span>
|
|
2702
|
+
<article class="ms-body">
|
|
2703
|
+
<h3 class="ms-name">
|
|
2704
|
+
<dpk-inline-edit
|
|
2705
|
+
.value=${s.name}
|
|
2706
|
+
.label=${e.milestoneNameLabel}
|
|
2707
|
+
@dpk-commit=${J(n=>t.dispatch({type:"SET_MILESTONE_NAME",target:{type:"milestone",id:a},payload:{name:n}}))}
|
|
2708
|
+
></dpk-inline-edit>
|
|
2709
|
+
</h3>
|
|
2710
|
+
${s.description===""?l`<p class="ms-description" data-empty="true">${e.milestoneNoDescription}</p>`:l`<p class="ms-description">${s.description}</p>`}
|
|
2711
|
+
<dl class="ms-facts">
|
|
2712
|
+
<div>
|
|
2713
|
+
<dt>${e.storiesLabel}</dt>
|
|
2714
|
+
<dd>
|
|
2715
|
+
<strong>${s.storyCount}</strong>
|
|
2716
|
+
<span>${e.shareOfStories(Math.round(s.share*100))}</span>
|
|
2717
|
+
</dd>
|
|
2718
|
+
</div>
|
|
2719
|
+
<div>
|
|
2720
|
+
<dt>${e.coverageLabel}</dt>
|
|
2721
|
+
<dd>
|
|
2722
|
+
<strong>${e.coverage(s.coverage.covered,s.coverage.total)}</strong>
|
|
2723
|
+
<span class="ms-meter" aria-hidden="true">
|
|
2724
|
+
<span
|
|
2725
|
+
style=${`width:${s.coverage.total===0?0:s.coverage.covered/s.coverage.total*100}%`}
|
|
2726
|
+
></span>
|
|
2727
|
+
</span>
|
|
2728
|
+
</dd>
|
|
2729
|
+
</div>
|
|
2730
|
+
</dl>
|
|
2731
|
+
${s.progress.length===0?m:mr(e,s)}
|
|
2732
|
+
</article>
|
|
2733
|
+
</li>
|
|
2734
|
+
`},mr=(e,t)=>l`
|
|
2735
|
+
<div class="ms-breakdown">
|
|
2736
|
+
${Ps(t.progress,e.progressAria(t.progress.map(s=>`${s.name} ${s.count}`).join(", ")))}
|
|
2737
|
+
<ul class="ms-legend" aria-hidden="true">
|
|
2738
|
+
${t.progress.map(s=>l`<li data-status=${s.id} style=${M(s.tone)}>
|
|
2739
|
+
${de(s)}
|
|
2740
|
+
<span class="ms-breakdown-name">${s.name}</span>
|
|
2741
|
+
<span class="ms-breakdown-count">${s.count}</span>
|
|
2742
|
+
</li>`)}
|
|
2743
|
+
</ul>
|
|
2744
|
+
</div>
|
|
2745
|
+
`,hr=(e,t,s,a,n,i)=>{if(s.kind!=="picking-step")return m;const o=T(t.state,s.storyId),r=te(t.state,s.activityId);if(!o||!r)return m;const d=r.steps[0]?.id??null,p=n??d;return l`<div class="comment-pop move-dialog" id="move-dialog" popover="manual">
|
|
2746
|
+
<span class="dpk-label">${e.moveDialogLabel}</span>
|
|
2747
|
+
${a.render({options:r.steps.map(u=>({value:u.id,label:u.name})),value:p??"",onChange:i.pick,ariaLabel:e.moveDialogSelectLabel})}
|
|
2748
|
+
<div class="pop-actions">
|
|
2749
|
+
<button
|
|
2750
|
+
class="dpk-btn dpk-btn--accent"
|
|
2751
|
+
type="button"
|
|
2752
|
+
@click=${()=>{p?i.confirm(p):i.cancel()}}
|
|
2753
|
+
>
|
|
2754
|
+
${e.moveConfirm}
|
|
2755
|
+
</button>
|
|
2756
|
+
<button class="dpk-btn" type="button" @click=${i.cancel}>${e.moveCancel}</button>
|
|
2757
|
+
</div>
|
|
2758
|
+
</div>`},br=(e,t)=>l`<div class="board-head" data-testid="usm-board-head">${e}${t}</div>`,gr=O(on),fr=(e,t,s,a)=>{const{state:n}=t,i=ys(n),o=i.filter(r=>a.folded.has(r));return l`
|
|
2759
|
+
<div class="board-bar">
|
|
2760
|
+
<div class="page-nav" style=${`min-width: ${a.minimum}px`}>
|
|
2761
|
+
<div class="page-tabs dpk-tabstrip" role="tablist" aria-label=${e.pageTabsLabel}>
|
|
2762
|
+
${i.map(r=>yr(t,r,s,ka(e,r),Sa(n,r),a.folded.has(r)))}
|
|
2763
|
+
</div>
|
|
2764
|
+
<button
|
|
2765
|
+
class="dpk-btn dpk-btn--ghost tabs-more"
|
|
2766
|
+
type="button"
|
|
2767
|
+
data-tabs-more-trigger
|
|
2768
|
+
data-unused=${String(o.length===0)}
|
|
2769
|
+
aria-label=${e.moreTabsLabel}
|
|
2770
|
+
aria-haspopup="menu"
|
|
2771
|
+
aria-expanded=${String(a.open)}
|
|
2772
|
+
@click=${a.toggle}
|
|
2773
|
+
>
|
|
2774
|
+
${gr()}
|
|
2775
|
+
</button>
|
|
2776
|
+
${a.open&&o.length>0?l`<div
|
|
2777
|
+
id="tabs-menu"
|
|
2778
|
+
class="comment-pop tabs-menu"
|
|
2779
|
+
popover="manual"
|
|
2780
|
+
role="menu"
|
|
2781
|
+
aria-label=${e.moreTabsLabel}
|
|
2782
|
+
@keydown=${r=>{r.key==="Escape"&&(r.preventDefault(),a.close())}}
|
|
2783
|
+
>
|
|
2784
|
+
${o.map(r=>l`<a
|
|
2785
|
+
class="tabs-menu-item"
|
|
2786
|
+
role="menuitem"
|
|
2787
|
+
data-tab=${r}
|
|
2788
|
+
href=${t.hashFor({tab:r==="map"?null:r})}
|
|
2789
|
+
@click=${a.close}
|
|
2790
|
+
>${ka(e,r)}<span class="dpk-count">${Sa(n,r)}</span></a
|
|
2791
|
+
>`)}
|
|
2792
|
+
</div>`:m}
|
|
2793
|
+
</div>
|
|
2794
|
+
${s==="map"&&n.activities.some(r=>r.steps.length>0)?Io(e,t):m}
|
|
2795
|
+
</div>
|
|
2796
|
+
`},ka=(e,t)=>{switch(t){case"map":return e.mapTab;case"table":return e.tableTab;case"milestones":return e.milestonesTab;case"burndown":return e.burndownTab}},Sa=(e,t)=>{switch(t){case"map":return e.stories.length;case"table":return e.stories.length;case"milestones":return e.milestones.length;case"burndown":return e.snapshots.length}},yr=(e,t,s,a,n,i)=>l`<a
|
|
2797
|
+
role="tab"
|
|
2798
|
+
data-tab=${t}
|
|
2799
|
+
data-overflow=${i?"":m}
|
|
2800
|
+
aria-hidden=${i?"true":m}
|
|
2801
|
+
tabindex=${i?"-1":m}
|
|
2802
|
+
aria-selected=${t===s?"true":"false"}
|
|
2803
|
+
href=${e.hashFor({tab:t==="map"?null:t})}
|
|
2804
|
+
>${a}<span class="dpk-count">${n}</span></a
|
|
2805
|
+
>`,vr=36,kr=12,Sr=220,wr=q`
|
|
2806
|
+
/* The tabs and their more button share what the bar's line leaves; the line
|
|
2807
|
+
wraps only when even the current tab and the button do not fit. */
|
|
2808
|
+
.page-nav {
|
|
2809
|
+
display: flex;
|
|
2810
|
+
flex: 1 1 0;
|
|
2811
|
+
align-items: center;
|
|
2812
|
+
gap: 4px;
|
|
2813
|
+
max-width: 100%;
|
|
2814
|
+
}
|
|
2815
|
+
/* A folded tab stays laid out, out of sight, so it can still be measured. */
|
|
2816
|
+
.page-tabs [role='tab'][data-overflow] {
|
|
2817
|
+
position: absolute;
|
|
2818
|
+
top: 0;
|
|
2819
|
+
left: 0;
|
|
2820
|
+
visibility: hidden;
|
|
2821
|
+
pointer-events: none;
|
|
2822
|
+
}
|
|
2823
|
+
.tabs-more {
|
|
2824
|
+
flex: none;
|
|
2825
|
+
padding: 6px 8px;
|
|
2826
|
+
}
|
|
2827
|
+
.tabs-more svg {
|
|
2828
|
+
width: 16px;
|
|
2829
|
+
height: 16px;
|
|
2830
|
+
}
|
|
2831
|
+
.tabs-more[aria-expanded='true'] {
|
|
2832
|
+
background: var(--dpk-paper-inset);
|
|
2833
|
+
color: var(--dpk-ink);
|
|
2834
|
+
}
|
|
2835
|
+
.tabs-more[data-unused='true'] {
|
|
2836
|
+
position: absolute;
|
|
2837
|
+
visibility: hidden;
|
|
2838
|
+
pointer-events: none;
|
|
2839
|
+
}
|
|
2840
|
+
.comment-pop.tabs-menu {
|
|
2841
|
+
gap: 2px;
|
|
2842
|
+
padding: 6px;
|
|
2843
|
+
}
|
|
2844
|
+
.tabs-menu-item {
|
|
2845
|
+
display: flex;
|
|
2846
|
+
align-items: center;
|
|
2847
|
+
justify-content: space-between;
|
|
2848
|
+
gap: 10px;
|
|
2849
|
+
padding: 8px 10px;
|
|
2850
|
+
border-radius: var(--dpk-radius-sm);
|
|
2851
|
+
color: var(--dpk-ink);
|
|
2852
|
+
font-size: 13px;
|
|
2853
|
+
font-weight: 600;
|
|
2854
|
+
text-decoration: none;
|
|
2855
|
+
}
|
|
2856
|
+
.tabs-menu-item:hover,
|
|
2857
|
+
.tabs-menu-item:focus-visible {
|
|
2858
|
+
outline: none;
|
|
2859
|
+
background: var(--dpk-paper-sunken);
|
|
2860
|
+
}
|
|
2861
|
+
`,St=(e,t,s,a)=>({id:e,label:t,render:n=>l`<dpk-internal-usm-settings-section
|
|
2862
|
+
.kind=${s}
|
|
2863
|
+
.locale=${a}
|
|
2864
|
+
.context=${n}
|
|
2865
|
+
></dpk-internal-usm-settings-section>`}),Er="usm-story-table",$r=e=>e==="accent"?"violet":e,Tr=(e,t)=>{const s=[{id:"key",label:e.storyKeyColumn,type:"text",sortable:!0},{id:"name",label:e.storyTitleLabel,type:"text",sortable:!0},{id:"activity",label:e.activityNameLabel,type:"text",sortable:!0},{id:"step",label:e.stepNameLabel,type:"text",sortable:!0},{id:"milestone",label:e.burndownMilestoneLabel,type:"text",sortable:!0},...t.statuses.length===0?[]:[{id:"status",label:e.storyStatusLabel,type:"status",sortable:!0}],...P(t,"assignees")?[{id:"assignee",label:e.storyAssigneeLabel,type:"person",sortable:!0}]:[],...P(t,"estimates")?[{id:"estimate",label:e.storyEstimateLabel,type:"number",sortable:!0}]:[],...t.labels.length===0?[]:[{id:"labels",label:e.storyLabelsLabel,type:"tag",sortable:!1}]],a=t.stories.map(n=>{const i=N(t,ce(n.activityId,n.stepId)),o=U(t,n.milestoneId),r=D(t,n.statusId),d=z(t,n.estimateId),p=pt(t,n),u=ct(t,n);return{id:n.id,cells:{key:{type:"text",value:ie(n)},name:{type:"text",value:n.name},activity:{type:"text",value:i?.activity.name??null},step:{type:"text",value:i?.step.name??null},milestone:{type:"text",value:o?.name??null},...r===void 0?{}:{status:{type:"status",value:{label:r.name,tone:$r(r.tone)}}},...P(t,"assignees")?{assignee:{type:"person",value:p?.name??null}}:{},...P(t,"estimates")?{estimate:{type:"number",value:d?.points??null}}:{},...t.labels.length===0?{}:{labels:{type:"tag",value:u.map(k=>k.name)}}},...n.questions===void 0?{}:{questions:n.questions}}});return{columns:s,rows:a}},xr=(e,t,s)=>{const a=Tr(e,t.state);return l`
|
|
2866
|
+
<section class="story-table" data-testid="usm-table">
|
|
2867
|
+
<dpk-table
|
|
2868
|
+
id=${Er}
|
|
2869
|
+
readonly
|
|
2870
|
+
.data=${a}
|
|
2871
|
+
@dpk-table-select=${n=>s(n.detail.id)}
|
|
2872
|
+
></dpk-table>
|
|
2873
|
+
</section>
|
|
2874
|
+
`},_r=q`
|
|
2875
|
+
:host {
|
|
2876
|
+
--dpk-usm-accent: var(--dpk-blue);
|
|
2877
|
+
}
|
|
2878
|
+
/*
|
|
2879
|
+
* A wide table must scroll inside itself and never widen the template shell.
|
|
2880
|
+
* It scrolls both ways so the backbone can stick to its top and the
|
|
2881
|
+
* milestone column to its left: a box that scrolls only sideways still
|
|
2882
|
+
* becomes the sticky ancestor, and its top would never move. It takes the
|
|
2883
|
+
* height left under the board head (tabs and toolbar), down to the page's
|
|
2884
|
+
* bottom edge: the hand-off dock floats over its corner, and the map's own
|
|
2885
|
+
* padding lets the last row scroll clear of it, so the page body keeps no
|
|
2886
|
+
* second clearance under it.
|
|
2887
|
+
*
|
|
2888
|
+
* The map's row is the space that is actually left, never a fixed minimum:
|
|
2889
|
+
* a floor taller than what remains would push the map's last rows off screen,
|
|
2890
|
+
* with nothing left to scroll them into view. The map itself scrolls; it does
|
|
2891
|
+
* not need to be tall.
|
|
2892
|
+
*/
|
|
2893
|
+
.dpk-main-body:has(> dpk-matrix) {
|
|
2894
|
+
flex: 1 1 0;
|
|
2895
|
+
min-height: 0;
|
|
2896
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
2897
|
+
padding-bottom: 16px;
|
|
2898
|
+
}
|
|
2899
|
+
/* The grid, its scroll, its sticky head and lead column are \`<dpk-matrix>\`'s
|
|
2900
|
+
own; this only wires the hand-off dock's clearance through to matrix's
|
|
2901
|
+
own variable, which it does not otherwise know about. Every head here
|
|
2902
|
+
(\`.corner\`, \`.act-head\`, \`.col-head\`, \`.row-lead\`) already carries its
|
|
2903
|
+
own full padding, so matrix's own generic head padding is kept to a
|
|
2904
|
+
small edge buffer rather than stack a second full inset around each
|
|
2905
|
+
one — just enough room that a grip never sits flush against the
|
|
2906
|
+
column/row rule it's next to, the way every head had before this board
|
|
2907
|
+
moved its padding onto \`<dpk-matrix>\`; the cell keeps matrix's own
|
|
2908
|
+
padding and paper surface, now that \`.cell\` no longer sets either
|
|
2909
|
+
itself. */
|
|
2910
|
+
dpk-matrix {
|
|
2911
|
+
--dpk-matrix-dock-clearance: var(--dpk-dock-clearance, 0px);
|
|
2912
|
+
--dpk-matrix-head-pad: 4px;
|
|
2913
|
+
/* A grid item will not shrink below its own content unless told to; the map
|
|
2914
|
+
is a scroll frame, so it may be exactly as tall as the row it was given. */
|
|
2915
|
+
min-height: 0;
|
|
2916
|
+
}
|
|
2917
|
+
.row-lead {
|
|
2918
|
+
display: flex;
|
|
2919
|
+
flex-direction: column;
|
|
2920
|
+
align-items: flex-start;
|
|
2921
|
+
justify-content: center;
|
|
2922
|
+
gap: 2px;
|
|
2923
|
+
min-width: 0;
|
|
2924
|
+
padding: 8px 6px 8px 4px;
|
|
2925
|
+
background: var(--dpk-paper-sunken);
|
|
2926
|
+
}
|
|
2927
|
+
/* Row names and their meta line share one column: past \`<dpk-matrix>\`'s own
|
|
2928
|
+
grip and gap (its exposed span) and the inline edit's own padding (4px). */
|
|
2929
|
+
.row-lead {
|
|
2930
|
+
--usm-row-indent: calc(var(--dpk-matrix-grip-span, 22px) + 4px);
|
|
2931
|
+
}
|
|
2932
|
+
/* \`<dpk-matrix>\`'s own grip bleed (\`margin-inline-start: -grip-span\` plus a
|
|
2933
|
+
matching \`padding-inline-start\`) lands on this box, the slot's direct
|
|
2934
|
+
child — but this box's own left padding above (4px, for the ungripped
|
|
2935
|
+
case) is a physical property on the same side, so it wins the cascade
|
|
2936
|
+
over the matrix's logical one and leaves the title undercompensated,
|
|
2937
|
+
pulled in under the grip instead of past it. Matching the matrix's own
|
|
2938
|
+
target value here, rather than fighting over which side wins, keeps the
|
|
2939
|
+
title's start exactly where the grip's own gap ends (the same inset a
|
|
2940
|
+
column head's flat, ungrouped slot node gets for free). The column heads
|
|
2941
|
+
below carry the identical fix, for the identical reason. */
|
|
2942
|
+
.row-lead[draggable='true'] {
|
|
2943
|
+
padding-inline-start: var(--dpk-matrix-grip-span, 22px);
|
|
2944
|
+
}
|
|
2945
|
+
.row-meta {
|
|
2946
|
+
display: flex;
|
|
2947
|
+
flex-wrap: wrap;
|
|
2948
|
+
gap: 2px 8px;
|
|
2949
|
+
padding-left: var(--usm-row-indent);
|
|
2950
|
+
font-size: 10.5px;
|
|
2951
|
+
color: var(--dpk-ink-faint);
|
|
2952
|
+
}
|
|
2953
|
+
.row-timeframe {
|
|
2954
|
+
color: var(--dpk-ink-soft);
|
|
2955
|
+
font-weight: 600;
|
|
2956
|
+
}
|
|
2957
|
+
.row-count {
|
|
2958
|
+
font-family: var(--dpk-mono);
|
|
2959
|
+
font-variant-numeric: tabular-nums;
|
|
2960
|
+
}
|
|
2961
|
+
.corner {
|
|
2962
|
+
display: grid;
|
|
2963
|
+
gap: 3px;
|
|
2964
|
+
align-content: start;
|
|
2965
|
+
}
|
|
2966
|
+
/* The backbone is read on every scroll, so its rows are kept short: the
|
|
2967
|
+
axis labels sit tight and the step names get a single slim line. */
|
|
2968
|
+
.corner {
|
|
2969
|
+
gap: 1px;
|
|
2970
|
+
padding: 7px 10px;
|
|
2971
|
+
line-height: 1.3;
|
|
2972
|
+
text-wrap: balance;
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
/* Above the content: the page tabs (map / milestones) and, on the map, the
|
|
2976
|
+
unit toggle (group band vs one column per activity). */
|
|
2977
|
+
|
|
2978
|
+
/* The board bar and the map's toolbar stay on top together while a long
|
|
2979
|
+
milestone list or the map scrolls under them. */
|
|
2980
|
+
.board-head {
|
|
2981
|
+
position: sticky;
|
|
2982
|
+
top: 0;
|
|
2983
|
+
z-index: 5;
|
|
2984
|
+
margin: -24px -24px 0;
|
|
2985
|
+
background: var(--dpk-glass);
|
|
2986
|
+
backdrop-filter: saturate(1.6) blur(14px);
|
|
2987
|
+
min-width: 0;
|
|
2988
|
+
}
|
|
2989
|
+
|
|
2990
|
+
.board-bar {
|
|
2991
|
+
--usm-bar-pad: 6px;
|
|
2992
|
+
border-bottom: 1px solid var(--dpk-rule);
|
|
2993
|
+
padding: var(--usm-bar-pad) 24px;
|
|
2994
|
+
display: flex;
|
|
2995
|
+
flex-wrap: wrap;
|
|
2996
|
+
align-items: center;
|
|
2997
|
+
gap: 10px 14px;
|
|
2998
|
+
min-width: 0;
|
|
2999
|
+
}
|
|
3000
|
+
|
|
3001
|
+
/* The pages: an underlined tab strip, heavier than the view toggle. The
|
|
3002
|
+
tabs that do not fit fold behind the more button beside it (\`.page-nav\`);
|
|
3003
|
+
the bottom padding keeps the selected tab's underline, which sits on the
|
|
3004
|
+
bar's bottom rule, inside the clip. */
|
|
3005
|
+
.page-tabs {
|
|
3006
|
+
--dpk-tabstrip-pad: var(--usm-bar-pad);
|
|
3007
|
+
--dpk-tabstrip-accent: var(--dpk-usm-accent);
|
|
3008
|
+
display: inline-flex;
|
|
3009
|
+
margin-bottom: calc(-1 * var(--usm-bar-pad) - 1px);
|
|
3010
|
+
padding-bottom: calc(var(--usm-bar-pad) + 1px);
|
|
3011
|
+
border-bottom: none;
|
|
3012
|
+
overflow: hidden;
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
/* Activity band: raised above the working canvas. A head spans its steps,
|
|
3016
|
+
so its contents stay in view beside the sticky column while the map
|
|
3017
|
+
scrolls sideways. */
|
|
3018
|
+
.act-head {
|
|
3019
|
+
position: relative;
|
|
3020
|
+
/* The head fills its column's head row, so the progress bar at its bottom
|
|
3021
|
+
edge lines up with every other group's, however many steps (and so
|
|
3022
|
+
however tall) a group lists beside it. */
|
|
3023
|
+
align-self: stretch;
|
|
3024
|
+
display: grid;
|
|
3025
|
+
align-content: start;
|
|
3026
|
+
gap: 4px;
|
|
3027
|
+
padding: 7px 10px 11px;
|
|
3028
|
+
background: var(--dpk-paper-raised);
|
|
3029
|
+
box-shadow:
|
|
3030
|
+
var(--dpk-bevel),
|
|
3031
|
+
inset 0 -1px 0 var(--dpk-rule-strong);
|
|
3032
|
+
font-size: 13px;
|
|
3033
|
+
font-weight: 650;
|
|
3034
|
+
letter-spacing: -0.005em;
|
|
3035
|
+
}
|
|
3036
|
+
/* Same undercompensation as \`.row-lead\` above, same fix: this box's own
|
|
3037
|
+
left padding (10px, physical) otherwise wins over \`<dpk-matrix>\`'s grip
|
|
3038
|
+
bleed compensation (logical), leaving the title pulled in under the
|
|
3039
|
+
grip. */
|
|
3040
|
+
.act-head[draggable='true'] {
|
|
3041
|
+
padding-inline-start: var(--dpk-matrix-grip-span, 22px);
|
|
3042
|
+
}
|
|
3043
|
+
.act-title,
|
|
3044
|
+
.act-steps {
|
|
3045
|
+
position: sticky;
|
|
3046
|
+
left: 150px;
|
|
3047
|
+
width: min(100%, 340px);
|
|
3048
|
+
min-width: 0;
|
|
3049
|
+
}
|
|
3050
|
+
.act-title {
|
|
3051
|
+
display: flex;
|
|
3052
|
+
align-items: center;
|
|
3053
|
+
gap: 8px;
|
|
3054
|
+
}
|
|
3055
|
+
/* The name wraps at the column width, and the actor only drops to its own
|
|
3056
|
+
line when the two cannot share one; a long name is then read in full
|
|
3057
|
+
instead of being cut to a stub beside a shrunken actor. */
|
|
3058
|
+
.act-name {
|
|
3059
|
+
display: flex;
|
|
3060
|
+
flex: 1 1 auto;
|
|
3061
|
+
flex-wrap: wrap;
|
|
3062
|
+
align-items: center;
|
|
3063
|
+
gap: 4px 8px;
|
|
3064
|
+
min-width: 0;
|
|
3065
|
+
}
|
|
3066
|
+
.act-name > dpk-inline-edit {
|
|
3067
|
+
flex: 0 1 auto;
|
|
3068
|
+
max-width: 100%;
|
|
3069
|
+
}
|
|
3070
|
+
/* How far the group's stories have come: a strip along the head's bottom
|
|
3071
|
+
edge, as wide as the steps it spans, so it costs the band no line. */
|
|
3072
|
+
.act-head > .status-bar {
|
|
3073
|
+
position: absolute;
|
|
3074
|
+
left: 0;
|
|
3075
|
+
right: 0;
|
|
3076
|
+
bottom: 0;
|
|
3077
|
+
height: 4px;
|
|
3078
|
+
gap: 1px;
|
|
3079
|
+
}
|
|
3080
|
+
.act-head > .status-bar .status-bar-part {
|
|
3081
|
+
border-radius: 0;
|
|
3082
|
+
}
|
|
3083
|
+
/* Whose experience the activity is: a label beside the name, editable in place. */
|
|
3084
|
+
.act-actor {
|
|
3085
|
+
display: flex;
|
|
3086
|
+
flex: 0 1 auto;
|
|
3087
|
+
min-width: 24px;
|
|
3088
|
+
max-width: 100%;
|
|
3089
|
+
padding: 0 4px;
|
|
3090
|
+
border-radius: 999px;
|
|
3091
|
+
background: var(--dpk-blue-soft);
|
|
3092
|
+
color: var(--dpk-blue);
|
|
3093
|
+
font-size: 11px;
|
|
3094
|
+
font-weight: 650;
|
|
3095
|
+
line-height: 20px;
|
|
3096
|
+
}
|
|
3097
|
+
.act-actor > dpk-inline-edit {
|
|
3098
|
+
min-width: 0;
|
|
3099
|
+
}
|
|
3100
|
+
.act-actor[data-empty='true'] {
|
|
3101
|
+
background: transparent;
|
|
3102
|
+
opacity: 0;
|
|
3103
|
+
transition: opacity 150ms ease;
|
|
3104
|
+
}
|
|
3105
|
+
.act-head:hover .act-actor[data-empty='true'],
|
|
3106
|
+
.act-actor[data-empty='true']:focus-within {
|
|
3107
|
+
opacity: 1;
|
|
3108
|
+
}
|
|
3109
|
+
/* The group view gives the steps no columns; the head lists them instead. */
|
|
3110
|
+
.act-steps {
|
|
3111
|
+
display: grid;
|
|
3112
|
+
gap: 3px;
|
|
3113
|
+
margin: 0;
|
|
3114
|
+
padding: 0 0 0 18px;
|
|
3115
|
+
color: var(--dpk-ink-soft);
|
|
3116
|
+
font-size: 11.5px;
|
|
3117
|
+
font-weight: 500;
|
|
3118
|
+
line-height: 1.45;
|
|
3119
|
+
}
|
|
3120
|
+
.act-steps li::marker {
|
|
3121
|
+
color: var(--dpk-ink-faint);
|
|
3122
|
+
font-family: var(--dpk-mono);
|
|
3123
|
+
font-size: 10px;
|
|
3124
|
+
}
|
|
3125
|
+
.col-head {
|
|
3126
|
+
display: flex;
|
|
3127
|
+
align-items: center;
|
|
3128
|
+
gap: 6px;
|
|
3129
|
+
padding: 5px 10px;
|
|
3130
|
+
background: var(--dpk-paper-sunken);
|
|
3131
|
+
transition: background 160ms var(--dpk-ease);
|
|
3132
|
+
}
|
|
3133
|
+
.col-head h4 {
|
|
3134
|
+
flex: 1 1 auto;
|
|
3135
|
+
min-width: 0;
|
|
3136
|
+
}
|
|
3137
|
+
.col-head[data-current='true'] {
|
|
3138
|
+
background: color-mix(in srgb, var(--dpk-usm-accent) 8%, var(--dpk-paper-sunken));
|
|
3139
|
+
}
|
|
3140
|
+
/* Same undercompensation as \`.row-lead\` above, same fix. */
|
|
3141
|
+
.col-head[draggable='true'] {
|
|
3142
|
+
padding-inline-start: var(--dpk-matrix-grip-span, 22px);
|
|
3143
|
+
}
|
|
3144
|
+
.col-head h4 {
|
|
3145
|
+
font-size: 13px;
|
|
3146
|
+
font-weight: 600;
|
|
3147
|
+
margin: 0;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
.row-head {
|
|
3151
|
+
display: flex;
|
|
3152
|
+
align-items: center;
|
|
3153
|
+
gap: 6px;
|
|
3154
|
+
padding: 10px;
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
/* Milestone row label: plain text with a grip, not a chip. The "add
|
|
3158
|
+
milestone" row reuses \`.row-head\` for its ghost button. */
|
|
3159
|
+
.row-head[data-milestone] {
|
|
3160
|
+
align-self: stretch;
|
|
3161
|
+
margin: 0;
|
|
3162
|
+
padding: 0 6px 0 0;
|
|
3163
|
+
color: var(--dpk-ink);
|
|
3164
|
+
font-size: 12.5px;
|
|
3165
|
+
font-weight: 650;
|
|
3166
|
+
max-width: 100%;
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3169
|
+
/* \`<dpk-matrix>\` is the row's drag handle, grip and cursor now; this only
|
|
3170
|
+
keeps a browser-native drag affordance off the name editor inside it. */
|
|
3171
|
+
.row-head dpk-inline-edit {
|
|
3172
|
+
-webkit-user-drag: none;
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
/* Column drag: a group's head or a step's head is its column's handle, the
|
|
3176
|
+
way a row head is a milestone's; \`<dpk-matrix>\` is the handle, grip and
|
|
3177
|
+
cursor now. This only keeps native drag off the editors inside. */
|
|
3178
|
+
.act-head dpk-inline-edit,
|
|
3179
|
+
.col-head dpk-inline-edit {
|
|
3180
|
+
-webkit-user-drag: none;
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
/* Unassigned is a holding area, not a release: its label is quieter. */
|
|
3184
|
+
.row-head[data-unassigned='true'] {
|
|
3185
|
+
padding-left: var(--usm-row-indent);
|
|
3186
|
+
color: var(--dpk-ink-soft);
|
|
3187
|
+
}
|
|
3188
|
+
|
|
3189
|
+
/* Cells are the working canvas: sunken, with a quiet dot lattice, so raised
|
|
3190
|
+
story cards read as things placed on the board. */
|
|
3191
|
+
/* The padding and the sunken dot surface are \`<dpk-matrix>\`'s own now; this
|
|
3192
|
+
only stacks cards inside the cell it already gives us. */
|
|
3193
|
+
.cell {
|
|
3194
|
+
display: flex;
|
|
3195
|
+
flex-direction: column;
|
|
3196
|
+
gap: 8px;
|
|
3197
|
+
min-height: 100px;
|
|
3198
|
+
}
|
|
3199
|
+
.cell[data-drop='true'] {
|
|
3200
|
+
outline: 2px dashed var(--dpk-blue);
|
|
3201
|
+
outline-offset: -2px;
|
|
3202
|
+
}
|
|
3203
|
+
.card-list {
|
|
3204
|
+
display: grid;
|
|
3205
|
+
gap: 10px;
|
|
3206
|
+
align-content: start;
|
|
3207
|
+
flex: 1 1 auto;
|
|
3208
|
+
}
|
|
3209
|
+
/* A grid item keeps the default min-width (auto), so a card whose foot
|
|
3210
|
+
cannot shrink (a long step-name chip in it) would widen the column instead
|
|
3211
|
+
of ellipsis-ing inside it. The card shrinks to the column; its own foot
|
|
3212
|
+
clips. */
|
|
3213
|
+
.card-list > * {
|
|
3214
|
+
min-width: 0;
|
|
3215
|
+
}
|
|
3216
|
+
/* The add button (the kit's add atom) shows on the cell's hover only. */
|
|
3217
|
+
.add-cell {
|
|
3218
|
+
margin-top: auto;
|
|
3219
|
+
opacity: 0;
|
|
3220
|
+
transition:
|
|
3221
|
+
opacity 180ms var(--dpk-ease),
|
|
3222
|
+
background 160ms var(--dpk-ease),
|
|
3223
|
+
border-color 160ms var(--dpk-ease),
|
|
3224
|
+
color 160ms var(--dpk-ease);
|
|
3225
|
+
}
|
|
3226
|
+
.add-cell:focus-visible {
|
|
3227
|
+
opacity: 1;
|
|
3228
|
+
}
|
|
3229
|
+
.cell:hover .add-cell {
|
|
3230
|
+
opacity: 1;
|
|
3231
|
+
}
|
|
3232
|
+
.empty {
|
|
3233
|
+
border: 1px dashed var(--dpk-rule-strong);
|
|
3234
|
+
border-radius: var(--dpk-radius-lg);
|
|
3235
|
+
padding: 28px 24px;
|
|
3236
|
+
background: var(--dpk-dots), var(--dpk-paper-sunken);
|
|
3237
|
+
max-width: 620px;
|
|
3238
|
+
display: grid;
|
|
3239
|
+
gap: 10px;
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
/* ------------------------------------------------------ milestones tab */
|
|
3243
|
+
|
|
3244
|
+
/* The release slices as a timeline, like the experience section of a
|
|
3245
|
+
portfolio: when on the left, one node per slice on a single rail, what
|
|
3246
|
+
and how big on the right. Nothing is boxed; the rail carries the order. */
|
|
3247
|
+
.ms-overview {
|
|
3248
|
+
--ms-node: 30px;
|
|
3249
|
+
--ms-when: 132px;
|
|
3250
|
+
--ms-gap: 44px;
|
|
3251
|
+
display: grid;
|
|
3252
|
+
gap: 28px;
|
|
3253
|
+
max-width: 920px;
|
|
3254
|
+
padding: 28px 0 40px;
|
|
3255
|
+
}
|
|
3256
|
+
.ms-timeline {
|
|
3257
|
+
margin: 0;
|
|
3258
|
+
padding: 0;
|
|
3259
|
+
list-style: none;
|
|
3260
|
+
}
|
|
3261
|
+
.ms-entry,
|
|
3262
|
+
.ms-add {
|
|
3263
|
+
display: grid;
|
|
3264
|
+
grid-template-columns: var(--ms-when) var(--ms-node) minmax(0, 1fr);
|
|
3265
|
+
grid-template-areas: 'when rail body';
|
|
3266
|
+
column-gap: 24px;
|
|
3267
|
+
}
|
|
3268
|
+
.ms-entry {
|
|
3269
|
+
padding-bottom: var(--ms-gap);
|
|
3270
|
+
}
|
|
3271
|
+
.ms-when {
|
|
3272
|
+
grid-area: when;
|
|
3273
|
+
display: flex;
|
|
3274
|
+
justify-content: flex-end;
|
|
3275
|
+
padding-top: 5px;
|
|
3276
|
+
}
|
|
3277
|
+
.ms-timeframe {
|
|
3278
|
+
color: var(--dpk-ink);
|
|
3279
|
+
font-size: 13px;
|
|
3280
|
+
font-weight: 650;
|
|
3281
|
+
font-variant-numeric: tabular-nums;
|
|
3282
|
+
letter-spacing: 0.01em;
|
|
3283
|
+
text-align: right;
|
|
3284
|
+
}
|
|
3285
|
+
.ms-timeframe[data-empty='true'] {
|
|
3286
|
+
color: var(--dpk-ink-faint);
|
|
3287
|
+
font-weight: 500;
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
/* The rail runs through every entry's padding, so the nodes read as one line;
|
|
3291
|
+
it starts at the first node and fades out into the add node. */
|
|
3292
|
+
.ms-rail {
|
|
3293
|
+
grid-area: rail;
|
|
3294
|
+
position: relative;
|
|
3295
|
+
display: flex;
|
|
3296
|
+
justify-content: center;
|
|
3297
|
+
}
|
|
3298
|
+
.ms-rail::before {
|
|
3299
|
+
content: '';
|
|
3300
|
+
position: absolute;
|
|
3301
|
+
top: 0;
|
|
3302
|
+
bottom: calc(-1 * var(--ms-gap));
|
|
3303
|
+
left: calc(50% - 1px);
|
|
3304
|
+
width: 2px;
|
|
3305
|
+
border-radius: 1px;
|
|
3306
|
+
background: var(--dpk-rule-strong);
|
|
3307
|
+
}
|
|
3308
|
+
.ms-entry:first-child .ms-rail::before {
|
|
3309
|
+
top: calc(var(--ms-node) / 2);
|
|
3310
|
+
}
|
|
3311
|
+
.ms-add .ms-rail::before {
|
|
3312
|
+
bottom: auto;
|
|
3313
|
+
height: calc(var(--ms-node) / 2);
|
|
3314
|
+
background: repeating-linear-gradient(to bottom, var(--dpk-rule-strong) 0 3px, transparent 3px 7px);
|
|
3315
|
+
}
|
|
3316
|
+
.ms-node {
|
|
3317
|
+
position: relative;
|
|
3318
|
+
display: grid;
|
|
3319
|
+
place-items: center;
|
|
3320
|
+
width: var(--ms-node);
|
|
3321
|
+
height: var(--ms-node);
|
|
3322
|
+
box-sizing: border-box;
|
|
3323
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
3324
|
+
border-radius: 50%;
|
|
3325
|
+
background: var(--dpk-paper-raised);
|
|
3326
|
+
color: var(--dpk-ink);
|
|
3327
|
+
font-family: var(--dpk-mono);
|
|
3328
|
+
font-size: 12px;
|
|
3329
|
+
font-weight: 700;
|
|
3330
|
+
font-variant-numeric: tabular-nums;
|
|
3331
|
+
/* A ring of page color cuts the rail around the node. */
|
|
3332
|
+
box-shadow:
|
|
3333
|
+
0 0 0 5px var(--dpk-paper),
|
|
3334
|
+
var(--dpk-bevel),
|
|
3335
|
+
var(--dpk-shadow-xs);
|
|
3336
|
+
transition:
|
|
3337
|
+
border-color 160ms var(--dpk-ease),
|
|
3338
|
+
color 160ms var(--dpk-ease);
|
|
3339
|
+
}
|
|
3340
|
+
.ms-entry:hover .ms-node,
|
|
3341
|
+
.ms-entry:focus-within .ms-node {
|
|
3342
|
+
border-color: var(--dpk-blue);
|
|
3343
|
+
color: var(--dpk-blue-strong);
|
|
3344
|
+
}
|
|
3345
|
+
.ms-node--add {
|
|
3346
|
+
border-style: dashed;
|
|
3347
|
+
background: var(--dpk-paper);
|
|
3348
|
+
box-shadow: 0 0 0 5px var(--dpk-paper);
|
|
3349
|
+
}
|
|
3350
|
+
.ms-node--add::before,
|
|
3351
|
+
.ms-node--add::after {
|
|
3352
|
+
content: '';
|
|
3353
|
+
position: absolute;
|
|
3354
|
+
left: 50%;
|
|
3355
|
+
top: 50%;
|
|
3356
|
+
width: 10px;
|
|
3357
|
+
height: 1.5px;
|
|
3358
|
+
border-radius: 1px;
|
|
3359
|
+
background: var(--dpk-ink-faint);
|
|
3360
|
+
transform: translate(-50%, -50%);
|
|
3361
|
+
}
|
|
3362
|
+
.ms-node--add::after {
|
|
3363
|
+
transform: translate(-50%, -50%) rotate(90deg);
|
|
3364
|
+
}
|
|
3365
|
+
.ms-add .ms-body {
|
|
3366
|
+
display: flex;
|
|
3367
|
+
align-items: center;
|
|
3368
|
+
min-height: var(--ms-node);
|
|
3369
|
+
}
|
|
3370
|
+
/* The label lines up with the names above; the button's padding hangs out. */
|
|
3371
|
+
.ms-add .dpk-btn {
|
|
3372
|
+
margin-left: -12px;
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
.ms-body {
|
|
3376
|
+
grid-area: body;
|
|
3377
|
+
display: grid;
|
|
3378
|
+
gap: 10px;
|
|
3379
|
+
min-width: 0;
|
|
3380
|
+
justify-items: start;
|
|
3381
|
+
}
|
|
3382
|
+
.ms-name {
|
|
3383
|
+
justify-self: stretch;
|
|
3384
|
+
min-width: 0;
|
|
3385
|
+
margin: 0;
|
|
3386
|
+
padding-top: 1px;
|
|
3387
|
+
font-size: 19px;
|
|
3388
|
+
font-weight: 700;
|
|
3389
|
+
line-height: 1.4;
|
|
3390
|
+
letter-spacing: -0.015em;
|
|
3391
|
+
}
|
|
3392
|
+
/* The field pads its text by 4px; pull it out by as much so the name lines
|
|
3393
|
+
up with the description and keeps its place when editing starts. */
|
|
3394
|
+
.ms-name dpk-inline-edit {
|
|
3395
|
+
display: block;
|
|
3396
|
+
margin: 0 -4px;
|
|
3397
|
+
}
|
|
3398
|
+
.ms-description {
|
|
3399
|
+
margin: 0;
|
|
3400
|
+
max-width: 64ch;
|
|
3401
|
+
color: var(--dpk-ink-soft);
|
|
3402
|
+
font-size: 14px;
|
|
3403
|
+
line-height: 1.75;
|
|
3404
|
+
white-space: pre-wrap;
|
|
3405
|
+
}
|
|
3406
|
+
.ms-description[data-empty='true'] {
|
|
3407
|
+
color: var(--dpk-ink-faint);
|
|
3408
|
+
font-size: 13px;
|
|
3409
|
+
}
|
|
3410
|
+
.ms-facts {
|
|
3411
|
+
display: flex;
|
|
3412
|
+
flex-wrap: wrap;
|
|
3413
|
+
gap: 10px 36px;
|
|
3414
|
+
margin: 6px 0 0;
|
|
3415
|
+
}
|
|
3416
|
+
.ms-facts dt {
|
|
3417
|
+
margin-bottom: 3px;
|
|
3418
|
+
color: var(--dpk-ink-faint);
|
|
3419
|
+
font-size: 11px;
|
|
3420
|
+
font-weight: 600;
|
|
3421
|
+
letter-spacing: 0.02em;
|
|
3422
|
+
}
|
|
3423
|
+
.ms-facts dd {
|
|
3424
|
+
display: flex;
|
|
3425
|
+
align-items: center;
|
|
3426
|
+
gap: 10px;
|
|
3427
|
+
margin: 0;
|
|
3428
|
+
color: var(--dpk-ink-faint);
|
|
3429
|
+
font-size: 12px;
|
|
3430
|
+
}
|
|
3431
|
+
.ms-facts strong {
|
|
3432
|
+
color: var(--dpk-ink);
|
|
3433
|
+
font-size: 15px;
|
|
3434
|
+
font-weight: 650;
|
|
3435
|
+
font-variant-numeric: tabular-nums;
|
|
3436
|
+
}
|
|
3437
|
+
.ms-meter {
|
|
3438
|
+
display: block;
|
|
3439
|
+
width: 72px;
|
|
3440
|
+
height: 4px;
|
|
3441
|
+
border-radius: 2px;
|
|
3442
|
+
background: var(--dpk-paper-inset);
|
|
3443
|
+
overflow: hidden;
|
|
3444
|
+
}
|
|
3445
|
+
.ms-meter > span {
|
|
3446
|
+
display: block;
|
|
3447
|
+
height: 100%;
|
|
3448
|
+
border-radius: inherit;
|
|
3449
|
+
background: var(--dpk-blue);
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
/* Where the slice's stories sit across the backbone, in activity tones. */
|
|
3453
|
+
.ms-breakdown {
|
|
3454
|
+
display: grid;
|
|
3455
|
+
gap: 10px;
|
|
3456
|
+
width: min(100%, 460px);
|
|
3457
|
+
margin-top: 4px;
|
|
3458
|
+
}
|
|
3459
|
+
.ms-breakdown .status-bar {
|
|
3460
|
+
height: 8px;
|
|
3461
|
+
}
|
|
3462
|
+
.ms-legend {
|
|
3463
|
+
display: flex;
|
|
3464
|
+
flex-wrap: wrap;
|
|
3465
|
+
gap: 6px 16px;
|
|
3466
|
+
margin: 0;
|
|
3467
|
+
padding: 0;
|
|
3468
|
+
list-style: none;
|
|
3469
|
+
}
|
|
3470
|
+
.ms-legend li {
|
|
3471
|
+
display: inline-flex;
|
|
3472
|
+
align-items: center;
|
|
3473
|
+
gap: 6px;
|
|
3474
|
+
color: var(--dpk-ink-soft);
|
|
3475
|
+
font-size: 12px;
|
|
3476
|
+
}
|
|
3477
|
+
.ms-breakdown-count {
|
|
3478
|
+
color: var(--dpk-ink-faint);
|
|
3479
|
+
font-family: var(--dpk-mono);
|
|
3480
|
+
font-size: 11px;
|
|
3481
|
+
font-variant-numeric: tabular-nums;
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3484
|
+
/* Narrow: the date moves above the name, the rail stays on the left. */
|
|
3485
|
+
@media (max-width: 640px) {
|
|
3486
|
+
.ms-overview {
|
|
3487
|
+
--ms-node: 26px;
|
|
3488
|
+
}
|
|
3489
|
+
.ms-entry,
|
|
3490
|
+
.ms-add {
|
|
3491
|
+
grid-template-columns: var(--ms-node) minmax(0, 1fr);
|
|
3492
|
+
grid-template-areas:
|
|
3493
|
+
'rail when'
|
|
3494
|
+
'rail body';
|
|
3495
|
+
column-gap: 16px;
|
|
3496
|
+
}
|
|
3497
|
+
.ms-add {
|
|
3498
|
+
grid-template-areas: 'rail body';
|
|
3499
|
+
}
|
|
3500
|
+
.ms-add .ms-when {
|
|
3501
|
+
display: none;
|
|
3502
|
+
}
|
|
3503
|
+
.ms-when {
|
|
3504
|
+
justify-content: flex-start;
|
|
3505
|
+
padding: 4px 0 2px;
|
|
3506
|
+
}
|
|
3507
|
+
.ms-timeframe {
|
|
3508
|
+
text-align: left;
|
|
3509
|
+
}
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
/*
|
|
3513
|
+
* The statuses, labels and members overviews are no longer styled here: they
|
|
3514
|
+
* are rendered by <dpk-usm-settings-section>, which carries its own copy of
|
|
3515
|
+
* that CSS in its own shadow root, because the settings are drawn
|
|
3516
|
+
* in the side panel's shadow root (see that file).
|
|
3517
|
+
*/
|
|
3518
|
+
|
|
3519
|
+
/* Step picker shown after a cross-activity drop. */
|
|
3520
|
+
.move-dialog {
|
|
3521
|
+
min-width: 220px;
|
|
3522
|
+
}
|
|
3523
|
+
.move-dialog .dpk-rich-select {
|
|
3524
|
+
width: 100%;
|
|
3525
|
+
}
|
|
3526
|
+
|
|
3527
|
+
/* ----------------------------------------------------------- table tab */
|
|
3528
|
+
|
|
3529
|
+
/* The flat view of every story: dpk-table supplies its own
|
|
3530
|
+
chrome, this just gives it the page's margins. */
|
|
3531
|
+
.story-table {
|
|
3532
|
+
display: block;
|
|
3533
|
+
max-width: 1200px;
|
|
3534
|
+
padding: 28px 0 40px;
|
|
3535
|
+
}
|
|
3536
|
+
`,Q={kind:"idle"},Ir={width:300,height:240},wa="statuses",Ea="labels",$a="members",Ar={status:wa,label:Ea,member:$a},Mr=240,Lr=31,Dr=14,Ta=160;class xa extends Rt{static{this.styles=[Rt.styles,at,_r,Ie,st,Jo,pr,dr,tr,wr,It]}definitionFor(t){return Rs(t)}static{this.properties={mode:{state:!0}}}#e=new Xa(this);#t=new At(this);#s=new jn(this,{row:()=>this.renderRoot.querySelector(".page-nav"),items:t=>[...t.querySelectorAll('.page-tabs [role="tab"]')],keyOf:t=>t.getAttribute("data-tab")??"",kept:t=>t.getAttribute("aria-selected")==="true",more:t=>t.querySelector("[data-tabs-more-trigger]")});#a=!1;#n=new Ot(this);#i=new Ot(this);#o=null;constructor(){super(),this.mode=Q,new tt(this,{open:()=>this.navigation.story!==void 0,closesOn:()=>!1,ownsEscape:t=>this.mode.kind==="idle"&&!t.some(s=>s instanceof Element&&s.localName==="dpk-internal-layout-panel")&&(t.includes(this)||t[0]===document.body||t[0]===document.documentElement),dismiss:()=>this.context().navigate({story:null})}),new tt(this,{open:()=>this.mode.kind==="filtering",closesOn:t=>!t.some(s=>s instanceof Element&&(s.id==="filter-menu"||s.hasAttribute("data-filter-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=Q}),new tt(this,{open:()=>this.mode.kind==="choosing-tab",closesOn:t=>!t.some(s=>s instanceof Element&&(s.id==="tabs-menu"||s.hasAttribute("data-tabs-more-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=Q})}renderRegions(t){return{main:this.#d(t)}}renderSettingsSections(t){const s=ae(this.locale),a=[St(wa,s.statusesSection,"statuses",this.locale),St(Ea,s.labelsSection,"labels",this.locale)];return P(t.state,"assignees")&&a.push(St($a,s.membersSection,"members",this.locale)),a}showTarget(t){const s=Ar[t.type];s!==void 0&&(t.type==="member"&&!P(this.context().state,"assignees")||this.openSettings(s))}updated(){if(super.updated(),this.#r(),this.mode.kind==="filtering"){const s=this.renderRoot.querySelector("#filter-menu"),a=this.renderRoot.querySelector(`[data-filter-trigger="${CSS.escape(this.mode.key)}"]`),n=(s?.childElementCount??0)*Lr+Dr;s&&a&&this.#t.open(s,a,{width:Mr,height:n});return}if(this.mode.kind==="choosing-tab"){const s=this.renderRoot.querySelector("#tabs-menu"),a=this.renderRoot.querySelector("[data-tabs-more-trigger]");if(!s){this.mode=Q;return}const n=s.childElementCount*vr+kr;a&&this.#t.open(s,a,{width:Sr,height:n},{placement:"bottom-start"});return}if(this.mode.kind!=="picking-step")return;const t=this.renderRoot.querySelector("#move-dialog");t&&this.#t.open(t,Ga(this.mode.point.x,this.mode.point.y),Ir)}#r(){if(!(Ge(this.navigation)!==null)){this.#a=!1;return}const a=this.renderRoot.querySelector("dpk-matrix")?.shadowRoot?.querySelector(".matrix-scroll")??null,n=this.renderRoot.querySelector('dpk-internal-usm-story-card[data-highlight="on"]');this.#a||!a||!n||(this.#a=!0,Ha(a,n,Ta),Ka(a,n,Ta))}#d(t){const s=ae(this.locale),a=vs(t.state,t.navigation);return l`
|
|
3537
|
+
${br(fr(s,t,a,{folded:this.#s.hidden,minimum:this.#s.minimum,open:this.mode.kind==="choosing-tab",toggle:()=>this.mode=this.mode.kind==="choosing-tab"?Q:{kind:"choosing-tab"},close:()=>this.mode=Q}),this.#p(s,t,a))}
|
|
3538
|
+
${this.#c(s,t,a)}
|
|
3539
|
+
${hr(s,t,this.mode,this.#i,this.#o,{pick:n=>{this.#o=n,this.requestUpdate()},confirm:n=>this.#y(n),cancel:()=>{this.#o=null,this.mode=Q}})}
|
|
3540
|
+
`}#p(t,s,a){return a!=="map"||ze(s.state).length===0?m:lr(t,s,{openFor:this.mode.kind==="filtering"?this.mode.key:null,toggle:n=>{const i=this.mode.kind==="filtering"&&this.mode.key===n;this.mode=i?Q:{kind:"filtering",key:n}},close:()=>this.mode=Q})}#c(t,s,a){switch(a){case"table":return xr(t,s,n=>this.#l(n));case"milestones":return cr(t,s,wo(s.state));case"burndown":return Vo(t,s,new Date,this.#n);case"map":return this.#u(t,s)}}#u(t,s){return _o({m:t,context:s,drag:this.#e,handlers:{selectStory:a=>this.#l(a),dropOnCell:(a,n)=>this.#m(a,n),dropOnGroupCell:(a,n,i)=>this.#h(a,n,i),reorderMilestone:a=>this.#b(a),reorderActivity:a=>this.#g(a),reorderStep:a=>this.#f(a)},highlighted:Fn(s.state,s.navigation)})}#l(t){const s=this.context(),a=T(s.state,t);a&&(s.navigate({step:a.stepId,story:a.id}),this.openPanelDetail())}get providesPanelDetail(){return!0}get panelDetailIntent(){return"open"}renderPanelDetail(t){const s=so(t);if(!s)return null;const a=ae(this.locale),n={open:o=>this.openSettings(o)},i={type:"story",id:s.id};return{key:s.id,kind:a.storyDetailKind,title:ie(s),render:()=>l`<dpk-internal-usm-story-detail
|
|
3541
|
+
.story=${s}
|
|
3542
|
+
.context=${t}
|
|
3543
|
+
.messages=${a}
|
|
3544
|
+
.manage=${n}
|
|
3545
|
+
></dpk-internal-usm-story-detail>`,focus:()=>this.renderRoot.querySelector(`dpk-internal-usm-story-card[data-story="${CSS.escape(s.id)}"]`)?.focus({preventScroll:!0}),comment:()=>t.requestComment(i)}}#m(t,s){const a=this.context();a.dispatch(ta(a.state,t,s.item.id,s.hoveredId,s.place))}#h(t,s,a){const n=this.context(),i=T(n.state,a.item.id);if(!i)return;if(i.activityId!==t){this.#o=null,this.mode={kind:"picking-step",storyId:i.id,activityId:t,milestoneId:s,point:{x:a.event.clientX,y:a.event.clientY}};return}const o=sa(n.state,t,s,i.id,a.hoveredId,a.place);o&&n.dispatch(o)}#b(t){this.context().dispatch({type:"REORDER_MILESTONE",target:{type:"milestone",id:t.rowId},payload:{after:t.after}})}#g(t){this.context().dispatch({type:"REORDER_ACTIVITY",target:{type:"activity",id:t.columnId},payload:{after:t.after}})}#f(t){const s=t.columnId;this.context().dispatch({type:"REORDER_STEP",target:{type:"step",id:ce(s,t.subColumnId)},payload:{after:t.after===null?null:ce(s,t.after)}})}#y(t){const s=this.mode;if(s.kind!=="picking-step")return;const a=this.context();a.dispatch(aa(a.state,s.storyId,s.activityId,t,s.milestoneId)),this.#o=null,this.mode=Q}}const _a=()=>{ji(),go(),Bi(),bi(),ko(),customElements.get("dpk-view-usm")||customElements.define("dpk-view-usm",xa)},Rr=Object.freeze(Object.defineProperty({__proto__:null,DpkViewUsm:xa,IDLE_MODE:Q,allUsmIds:W,applyUsmAction:us,defineUsmElement:_a,describeUsmAction:xs,dropAfter:So,emptyUsmBase:lt,findActivity:te,findMilestone:U,findStep:N,findStory:T,flatSteps:ze,parseUsmBase:Jt,resolveCellDrop:ta,resolveGroupDrop:sa,resolvePickedStepMove:aa,resolveUsmNavigation:Ls,serializeUsmAction:_s,storiesInCell:Fe,storyCountForStep:ts,usmAction:In,usmActions:y,usmCommentTargets:As,usmCurrentTarget:Ms,usmDefinitionFor:Rs,usmHasTarget:Ds,usmMessages:ae,usmTargetLabel:Is,usmTitle:bt},Symbol.toStringTag,{value:"Module"}));export{_a as d,Rr as i};
|