dev-process-kit 0.0.18 → 0.2.0
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 -1
- package/dist/chunks/shared-Ae8HmujL.js +49 -0
- package/dist/chunks/{shared-DEjjuQMh.js → shared-BCmqTEeQ.js} +9 -7
- package/dist/chunks/shared-BkM7jfZs.js +1104 -0
- package/dist/chunks/shared-Bo8OdTee.js +4206 -0
- package/dist/chunks/shared-C-7mxPbV.js +301 -0
- package/dist/chunks/shared-C-Os1zsf.js +572 -0
- package/dist/chunks/{shared-CWKqlSx3.js → shared-C02b6b2m.js} +1 -1
- package/dist/chunks/shared-CjW1DhGL.js +1 -0
- package/dist/chunks/{shared-8NAMqG0U.js → shared-DJruxrrR.js} +32 -50
- package/dist/chunks/{shared-DzxR5Yzc.js → shared-DLdJfSN-.js} +1 -1
- package/dist/chunks/{shared-CUPe-wfx.js → shared-DYKbMmHn.js} +8 -8
- package/dist/chunks/{shared-DRvgJdY6.js → shared-DbBoZvUP.js} +173 -203
- package/dist/chunks/shared-DbnPOaXf.js +4210 -0
- package/dist/chunks/shared-DnJBtKmH.js +3769 -0
- package/dist/chunks/shared-v63w_5VP.js +2774 -0
- package/dist/components.js +1 -1
- package/dist/index.js +1 -1
- package/dist/templates/delegation-poker.js +1 -1
- package/dist/templates/event-storming.js +1 -1
- package/dist/templates/example-mapping.js +1 -1
- package/dist/templates/plain.js +1 -1
- package/dist/templates/prototype.js +1 -1
- package/dist/templates/slides.js +1 -1
- package/dist/templates/task-board.js +1 -1
- package/dist/templates/usm.js +1 -1
- package/dist/templates/whiteboard.js +1 -1
- package/package.json +1 -2
- package/dist/chunks/shared-B00JP4in.js +0 -572
- package/dist/chunks/shared-BtN-8ibq.js +0 -30
- package/dist/chunks/shared-C6QYWD8M.js +0 -2560
- package/dist/chunks/shared-CpTDkEui.js +0 -3751
- package/dist/chunks/shared-CtHWU02m.js +0 -1
- package/dist/chunks/shared-D4K7KsfJ.js +0 -1
- package/dist/chunks/shared-DWY93NpU.js +0 -3598
- package/dist/chunks/shared-DXaIVZ_z.js +0 -2766
- package/dist/chunks/shared-Ezic-gbC.js +0 -1104
- package/dist/chunks/shared-IQ2sflGo.js +0 -1027
- package/dist/chunks/shared-ml5h7U5L.js +0 -1
- package/dist/templates/grill.js +0 -1
|
@@ -0,0 +1,4210 @@
|
|
|
1
|
+
import{ak as y,aT as ms,ai as h,af as K,aE as ke,bc as We,am as we,aj as Ae,aS as je,bd as hs,be as gs,aF as yt,aR as kt,ae as bs,aU as fs,aH as A,al as $,ag as z,ah as C,aG as D,p as g,at as wt,au as b,w as Q,aD as P,aq as vs,P as ys,e as ks,a0 as ws,V as _,R as w,aZ as B,a2 as q,a4 as l,a3 as m,a7 as O,a9 as Xe,ab as Ze,G as xs,j as $s,aX as Ss,aY as Es,b2 as Ts,B as xt,l as X,a5 as Y,F as Je,aK as Z,J as As,bf as $t,K as _e,bg as _s,aL as Is,b9 as Qe,aO as Ms,A as et,ba as Ls,T as St,a1 as Ds,aa as Rs,ax as tt,aP as Os,aB as Ns,bh as Cs,bb as Bs}from"./shared-DnJBtKmH.js";import{r as xe,D as Ys}from"./shared-B5lBiq5s.js";import{L as Us}from"./shared-CjW1DhGL.js";const zs=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16 9-5.5 5.5L8 12"}]],Ps=[["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"}]],Fs=[["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"}]],Gs=[["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"}]],Hs=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]],Vs=[["circle",{cx:"12",cy:"12",r:"10"}]],Ks=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]],qs=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]],Ws=[["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"}]],js=[["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"}]],Xs=[["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"}]],Zs=[["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"}]],Js=[["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"}]],Qs=[["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"}]],Et=e=>new Map(e.map(t=>[t.id,t.blockedBy??[]])),at=(e,t,a)=>{const s=Et(e),n=new Set,i=[...s.get(t)??[]];for(;i.length>0;){const r=i.pop();if(!(r===void 0||n.has(r))){if(r===a)return!0;n.add(r),i.push(...s.get(r)??[])}}return!1},en=e=>{const t=Et(e),a=new Set,s=(n,i)=>{const r=i.indexOf(n);if(r>=0)return[...i.slice(r),n];if(a.has(n))return null;for(const o of t.get(n)??[]){const d=s(o,[...i,n]);if(d)return d}return a.add(n),null};for(const n of e){const i=s(n.id,[]);if(i)return i}return null},Ie=["gray","blue","violet","green","amber","accent"],Tt=["progress","circle","lightbulb","flag","play","clock","eye","pause","check","x"],Me=["estimates","assignees"],At=["stories","points","weighted"],_t=y(h(),hs(),je(e=>{const[t=0,a=0,s=0]=e.split("-").map(Number),n=new Date(Date.UTC(t,a-1,s));return n.getUTCMonth()===a-1&&n.getUTCDate()===s},"a due date must be a calendar day")),It=y(we(),We(),ke(0)),st=y(we(),We(),ke(0)),Mt=K({milestoneId:A(y(h(),$(1))),statusId:A(y(h(),$(1))),stories:y(we(),yt(),ke(0)),points:y(we(),We(),ke(0))}),Le=y(h(),ms()),tn=K({id:y(h(),$(1)),name:y(h(),$(1))}),an=K({id:D,name:y(h(),$(1)),actor:A(h()),steps:z(C(tn),[])}),sn=K({id:y(h(),$(1)),name:y(h(),$(1)),timeframe:A(h()),description:A(h()),dueDate:A(_t)}),se=Ae(Ie),nt=Ae(Tt),it=y(h(),gs(),je(e=>/^https?:\/\//i.test(e),"a link must be an http(s) URL")),nn=K({url:it,label:A(y(h(),$(1)))}),rn=K({id:D,name:y(h(),$(1)),tone:z(se),icon:z(nt),weight:A(It)}),on=K({id:D,name:y(h(),$(1)),tone:z(se)}),Lt=y(h(),je(e=>e.trim()!=="","a comment needs some text")),dn=K({id:D,body:Lt,createdAt:A(Le)}),Dt=y(we(),yt(),ke(1)),ln=K({id:D,number:A(Dt),name:y(h(),$(1)),description:A(h()),activityId:y(h(),$(1)),stepId:y(h(),$(1)),milestoneId:A(h()),statusId:A(h()),links:A(C(nn)),labelIds:A(C(y(h(),$(1)))),blockedBy:A(C(y(h(),$(1)))),estimateId:A(y(h(),$(1))),assigneeId:A(y(h(),$(1))),comments:A(C(dn))}),pn=K({id:D,name:y(h(),$(1)),tone:z(se)}),Rt=Ae(Me),Ot=Ae(At),cn=K({id:D,name:y(h(),$(1)),points:st}),un=K({id:D,at:Le,tally:C(Mt)}),mn=K({title:A(h()),features:z(C(Rt),[]),measure:A(Ot),doneStatusId:A(y(h(),$(1))),activities:z(C(an),[]),milestones:z(C(sn),[]),statuses:z(C(rn),[]),labels:z(C(on),[]),members:z(C(pn),[]),estimates:z(C(cn),[]),stories:z(C(ln),[]),snapshots:z(C(un),[])}),rt=e=>Ie[e%Ie.length]??"gray",De=e=>rt(e+1),Nt=e=>{const t=bs(mn,e);if(new Set(t.features).size!==t.features.length)throw new Error("the base turns a feature on twice");const a=t.statuses[0]?.id,s=t.stories.flatMap(c=>c.number===void 0?[]:[c.number]),n=s.find((c,T)=>s.indexOf(c)!==T);if(n!==void 0)throw new Error(`two stories share the number ${n}`);let i=Math.max(0,...s);const r={...t,stories:t.stories.map(c=>({...c,number:c.number??++i,...a===void 0||c.statusId!==void 0?{}:{statusId:a}})),statuses:t.statuses.map((c,T)=>({...c,tone:c.tone??rt(T),icon:c.icon??"progress"})),labels:t.labels.map((c,T)=>({...c,tone:c.tone??De(T)})),members:t.members.map((c,T)=>({...c,tone:c.tone??De(T)})),features:Me.filter(c=>t.features.includes(c))},o=new Map;for(const c of r.activities)for(const T of c.steps)o.set(T.id,c.id);const d=new Set(r.milestones.map(c=>c.id)),p=new Set(r.statuses.map(c=>c.id)),u=new Set(r.labels.map(c=>c.id));if(r.doneStatusId!==void 0&&!p.has(r.doneStatusId))throw new Error(`the base references unknown doneStatusId "${r.doneStatusId}"`);const f=new Set,x=(c,T)=>{if(f.has(T))throw new Error(`duplicate id "${T}" in ${c}`);f.add(T)};for(const c of r.activities){x("activities",c.id);for(const T of c.steps)x("steps",T.id)}for(const c of r.milestones)x("milestones",c.id);for(const c of r.statuses)x("statuses",c.id);for(const c of r.labels)x("labels",c.id);for(const c of r.members)x("members",c.id);for(const c of r.estimates)x("estimates",c.id);for(const c of r.snapshots)x("snapshots",c.id);const v=new Set(r.estimates.map(c=>c.id)),I=new Set(r.members.map(c=>c.id));for(const c of r.stories){x("stories",c.id);for(const ye of c.comments??[])x("story comments",ye.id);const T=o.get(c.stepId);if(T===void 0||T!==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 fe=(c.links??[]).map(ye=>ye.url);if(new Set(fe).size!==fe.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 vt=ve.find(ye=>!u.has(ye));if(vt!==void 0)throw new Error(`story "${c.id}" references unknown labelId "${vt}"`);if(c.estimateId!==void 0&&!v.has(c.estimateId))throw new Error(`story "${c.id}" references unknown estimateId "${c.estimateId}"`);if(c.assigneeId!==void 0&&!I.has(c.assigneeId))throw new Error(`story "${c.id}" references unknown assigneeId "${c.assigneeId}"`)}for(const c of r.snapshots){const T=Ct(r,c.tally);if(T!==null)throw new Error(`snapshot "${c.id}" ${T}`)}const S=new Set(r.stories.map(c=>c.id));for(const c of r.stories){const T=c.blockedBy??[];if(T.includes(c.id))throw new Error(`story "${c.id}" is blocked by itself`);if(new Set(T).size!==T.length)throw new Error(`story "${c.id}" has a blocker twice`);const fe=T.find(ve=>!S.has(ve));if(fe!==void 0)throw new Error(`story "${c.id}" references unknown blocker "${fe}"`)}const ue=en(r.stories);if(ue!==null)throw new Error(`stories block one another in a cycle: ${ue.join(" \u2192 ")}`);return r},Ct=(e,t)=>{const a=new Set;for(const s of t){if(s.milestoneId!==void 0&&!F(e,s.milestoneId))return`references unknown milestoneId "${s.milestoneId}"`;if(s.statusId!==void 0&&!N(e,s.statusId))return`references unknown statusId "${s.statusId}"`;const n=Re(s);if(a.has(n))return`tallies "${n}" twice`;a.add(n)}return null},Re=e=>`${e.milestoneId??""}/${e.statusId??""}`,Bt=()=>({features:[],activities:[],milestones:[],statuses:[],labels:[],members:[],estimates:[],stories:[],snapshots:[]}),ee=(e,t)=>{if(t!==void 0)return e.activities.find(a=>a.id===t)},te=(e,t)=>`${e}.${t}`,L=(e,t)=>{if(t===void 0)return;const a=fs(t,2);if(a){const[s,n]=a;if(s===void 0||n===void 0)return;const i=e.activities.find(o=>o.id===s),r=i?.steps.find(o=>o.id===n);return i&&r?{activity:i,step:r}:void 0}if(!t.includes("."))for(const s of e.activities){const n=s.steps.find(i=>i.id===t);if(n)return{activity:s,step:n}}},F=(e,t)=>{if(t!==void 0)return e.milestones.find(a=>a.id===t)},N=(e,t)=>{if(t!==void 0)return e.statuses.find(a=>a.id===t)},j=(e,t)=>{if(t!==void 0)return e.labels.find(a=>a.id===t)},J=(e,t)=>e.features.includes(t),G=(e,t)=>{if(t!==void 0)return e.members.find(a=>a.id===t)},hn=(e,t)=>G(e,t.assigneeId),H=(e,t)=>{if(t!==void 0)return e.estimates.find(a=>a.id===t)},$e=(e,t)=>{if(t!==void 0)return e.snapshots.find(a=>a.id===t)},gn=(e,t)=>{const a=new Set(t.labelIds??[]);return e.labels.filter(s=>a.has(s.id))},E=(e,t)=>{if(t!==void 0)return e.stories.find(a=>a.id===t)},Oe=e=>e.activities.flatMap(t=>t.steps.map(a=>({activity:t,step:a}))),bn=e=>({...e,stories:kt(e.stories,[t=>`${t.activityId}/${t.stepId}/${t.milestoneId??""}`])}),Ne=(e,t,a)=>e.stories.filter(s=>s.stepId===t&&(s.milestoneId??void 0)===a),Yt=(e,t,a)=>e.stories.filter(s=>s.activityId===t&&(s.milestoneId??void 0)===a),W=e=>[...e.activities.map(t=>t.id),...e.activities.flatMap(t=>t.steps.map(a=>a.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(a=>a.id)),...e.snapshots.map(t=>t.id)],Ut=(e,t)=>e.stories.filter(a=>a.stepId===t).length,zt=b({feature:Rt,enabled:vs()}),k={SET_ACTIVITY_NAME:g("SET_ACTIVITY_NAME","activity",b({name:y(h(),$(1))})),SET_ACTIVITY_ACTOR:g("SET_ACTIVITY_ACTOR","activity",b({actor:h()})),SET_STEP_NAME:g("SET_STEP_NAME","step",b({name:y(h(),$(1))})),REORDER_STEP:g("REORDER_STEP","step",b({after:P(h())}),{mode:"sequence"}),REORDER_ACTIVITY:g("REORDER_ACTIVITY","activity",b({after:P(h())}),{mode:"sequence"}),ADD_ACTIVITY:g("ADD_ACTIVITY","page",b({id:D,name:y(h(),$(1))}),{dedupeKey:Q}),ADD_STEP:g("ADD_STEP","activity",b({id:D,name:y(h(),$(1))}),{dedupeKey:Q}),DELETE_ACTIVITY:g("DELETE_ACTIVITY","activity",b({})),DELETE_STEP:g("DELETE_STEP","step",b({})),SET_STORY_NAME:g("SET_STORY_NAME","story",b({name:y(h(),$(1))})),SET_STORY_DESCRIPTION:g("SET_STORY_DESCRIPTION","story",b({description:h()})),SET_STORY_MILESTONE:g("SET_STORY_MILESTONE","story",b({milestoneId:P(h())})),MOVE_STORY:g("MOVE_STORY","story",b({activityId:y(h(),$(1)),stepId:y(h(),$(1)),milestoneId:P(h()),after:P(h())}),{mode:"sequence"}),REORDER_STORY:g("REORDER_STORY","story",b({after:P(h())}),{mode:"sequence"}),ADD_STORY:g("ADD_STORY","step",b({id:D,name:y(h(),$(1)),activityId:y(h(),$(1)),milestoneId:A(h()),number:A(Dt)}),{dedupeKey:Q}),DELETE_STORY:g("DELETE_STORY","story",b({})),ADD_STORY_LINK:g("ADD_STORY_LINK","story",b({url:it,label:A(y(h(),$(1)))})),REMOVE_STORY_LINK:g("REMOVE_STORY_LINK","story",b({url:h()})),ADD_STORY_COMMENT:g("ADD_STORY_COMMENT","story",b({id:D,body:Lt,createdAt:A(Le)}),{dedupeKey:Q}),DELETE_STORY_COMMENT:g("DELETE_STORY_COMMENT","story",b({commentId:y(h(),$(1))})),SET_STORY_STATUS:g("SET_STORY_STATUS","story",b({statusId:y(h(),$(1))})),SET_MILESTONE_NAME:g("SET_MILESTONE_NAME","milestone",b({name:y(h(),$(1))})),ADD_MILESTONE:g("ADD_MILESTONE","page",b({id:D,name:y(h(),$(1))}),{dedupeKey:Q}),DELETE_MILESTONE:g("DELETE_MILESTONE","milestone",b({})),REORDER_MILESTONE:g("REORDER_MILESTONE","milestone",b({after:P(h())}),{mode:"sequence"}),SET_MILESTONE_DUE_DATE:g("SET_MILESTONE_DUE_DATE","milestone",b({dueDate:P(_t)})),ADD_STATUS:g("ADD_STATUS","page",b({id:D,name:y(h(),$(1)),tone:se,icon:A(nt)}),{dedupeKey:Q}),SET_STATUS_NAME:g("SET_STATUS_NAME","status",b({name:y(h(),$(1))})),SET_STATUS_TONE:g("SET_STATUS_TONE","status",b({tone:se})),SET_STATUS_ICON:g("SET_STATUS_ICON","status",b({icon:nt})),SET_STATUS_WEIGHT:g("SET_STATUS_WEIGHT","status",b({weight:It})),SET_MEASURE:g("SET_MEASURE","page",b({measure:Ot})),SET_DONE_STATUS:g("SET_DONE_STATUS","status",b({})),DELETE_STATUS:g("DELETE_STATUS","status",b({})),REORDER_STATUS:g("REORDER_STATUS","status",b({after:P(h())}),{mode:"sequence"}),ADD_LABEL:g("ADD_LABEL","page",b({id:D,name:y(h(),$(1)),tone:se}),{dedupeKey:Q}),SET_LABEL_NAME:g("SET_LABEL_NAME","label",b({name:y(h(),$(1))})),SET_LABEL_TONE:g("SET_LABEL_TONE","label",b({tone:se})),DELETE_LABEL:g("DELETE_LABEL","label",b({})),REORDER_LABEL:g("REORDER_LABEL","label",b({after:P(h())}),{mode:"sequence"}),ADD_STORY_LABEL:g("ADD_STORY_LABEL","story",b({labelId:y(h(),$(1))})),REMOVE_STORY_LABEL:g("REMOVE_STORY_LABEL","story",b({labelId:y(h(),$(1))})),ADD_STORY_BLOCKER:g("ADD_STORY_BLOCKER","story",b({blockerId:y(h(),$(1))})),REMOVE_STORY_BLOCKER:g("REMOVE_STORY_BLOCKER","story",b({blockerId:y(h(),$(1))})),ADD_MEMBER:g("ADD_MEMBER","page",b({id:D,name:y(h(),$(1)),tone:se}),{dedupeKey:Q}),SET_MEMBER_NAME:g("SET_MEMBER_NAME","member",b({name:y(h(),$(1))})),SET_MEMBER_TONE:g("SET_MEMBER_TONE","member",b({tone:se})),DELETE_MEMBER:g("DELETE_MEMBER","member",b({})),REORDER_MEMBER:g("REORDER_MEMBER","member",b({after:P(h())}),{mode:"sequence"}),SET_STORY_ASSIGNEE:g("SET_STORY_ASSIGNEE","story",b({memberId:P(y(h(),$(1)))})),ADD_ESTIMATE:g("ADD_ESTIMATE","page",b({id:D,name:y(h(),$(1)),points:st}),{dedupeKey:Q}),SET_ESTIMATE_NAME:g("SET_ESTIMATE_NAME","estimate",b({name:y(h(),$(1))})),SET_ESTIMATE_POINTS:g("SET_ESTIMATE_POINTS","estimate",b({points:st})),DELETE_ESTIMATE:g("DELETE_ESTIMATE","estimate",b({})),REORDER_ESTIMATE:g("REORDER_ESTIMATE","estimate",b({after:P(h())}),{mode:"sequence"}),SET_STORY_ESTIMATE:g("SET_STORY_ESTIMATE","story",b({estimateId:P(y(h(),$(1)))})),RECORD_SNAPSHOT:g("RECORD_SNAPSHOT","page",b({id:D,at:Le,tally:C(Mt)}),{dedupeKey:Q}),DELETE_SNAPSHOT:g("DELETE_SNAPSHOT","snapshot",b({})),SET_FEATURE:g("SET_FEATURE","page",zt,{dedupeKey:e=>{const t=wt(zt,e.payload);return`SET_FEATURE|${t.success?t.output.feature:JSON.stringify(e.payload)}`}})},fn={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}})},me=e=>{const t=e.statuses.findIndex(a=>a.id===e.doneStatusId);return t>=0?t:e.statuses.length-1},Pt=e=>e.statuses[me(e)],Ft=(e,t)=>{if(t===void 0)return!1;const a=e.statuses.findIndex(s=>s.id===t);return a>=0&&a>=me(e)},Gt=e=>e.statuses.slice(0,me(e)+1),vn=(e,t)=>e.milestones.find(a=>a.id===t.milestone)??e.milestones.find(a=>a.dueDate!==void 0)??e.milestones[0],he=e=>J(e,"estimates")?e.measure??(e.estimates.length>0?"points":"stories"):"stories",Ht=e=>e.weight??1,ae=10,Vt=e=>{const{statuses:t}=e,a=me(e);if(he(e)!=="weighted")return t.map((r,o)=>o<a?1:0);const s=t.slice(0,a).map(Ht),n=Ce(s),i=s.map(r=>n>0?r/n:1/s.length);return t.map((r,o)=>Ce(i.slice(o)))},yn=1,Kt=(e,t)=>H(e,t.estimateId)?.points??yn,qt=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}},r=Re(i),o=t.get(r)??{...i,stories:0,points:0};t.set(r,{...o,stories:o.stories+1,points:o.points+Kt(e,n)})}const a=[...e.milestones.map(n=>n.id),void 0],s=e.statuses.length===0?[void 0]:e.statuses.map(n=>n.id);return a.flatMap(n=>s.flatMap(i=>{const r=t.get(Re({milestoneId:n,statusId:i}));return r?[r]:[]}))},kn=(e,t,a)=>{const s=he(e),i=[...kt(e.snapshots.map(d=>({at:Date.parse(d.at),tally:d.tally,snapshotId:d.id})),[d=>d.at]),{at:a,tally:qt(e)}].map(d=>({at:d.at,...d.snapshotId===void 0?{}:{snapshotId:d.snapshotId},values:wn(e.statuses,d.tally,t,s)})),r=Vt(e),o=(d,p)=>({at:d.at,value:Math.round(p*100)/100,...d.snapshotId===void 0?{}:{snapshotId:d.snapshotId}});return{due:xn(e.milestones.find(d=>d.id===t)?.dueDate),combined:i.map(d=>o(d,d.values.reduce((p,u,f)=>p+u*(r[f]??0),0))),byStatus:e.statuses.slice(1).map((d,p)=>({status:d,points:i.map(u=>o(u,Ce(u.values.slice(0,p+1))))}))}},wn=(e,t,a,s)=>e.map(n=>Ce(t.filter(i=>i.milestoneId===a&&i.statusId===n.id).map(i=>s==="stories"?i.stories:i.points))),xn=e=>{if(e===void 0)return null;const[t=0,a=1,s=1]=e.split("-").map(Number);return new Date(t,a-1,s,23,59,59).getTime()},le=e=>{const t=new Date(e),a=s=>String(s).padStart(2,"0");return`${t.getFullYear()}-${a(t.getMonth()+1)}-${a(t.getDate())} ${a(t.getHours())}:${a(t.getMinutes())}`},Ce=e=>e.reduce((t,a)=>t+a,0),Wt="STORY-",Be=e=>`${Wt}${e.number}`,jt=(...e)=>Math.max(0,...e.flatMap(t=>t.stories.map(a=>a.number)))+1,$n=(e,t)=>{if(t===void 0)return;const a=E(e,t);if(a)return a;const s=new RegExp(`^${Wt}([1-9]\\d*)$`,"i").exec(t.trim());if(!s)return;const n=Number(s[1]);return e.stories.find(i=>i.number===n)},Xt=(e,t)=>{const a=ys(k,t);if(a===null)return null;const s=a.target.id;switch(a.type){case"SET_ACTIVITY_NAME":{const{name:n}=a.payload;return e.activities.some(i=>i.id===s)?{...e,activities:e.activities.map(i=>i.id===s?{...i,name:n}:i)}:null}case"SET_ACTIVITY_ACTOR":{const n=a.payload.actor.trim();return e.activities.some(i=>i.id===s)?{...e,activities:e.activities.map(i=>{if(i.id!==s)return i;const{actor:r,...o}=i;return n===""?o:{...o,actor:n}})}:null}case"SET_STEP_NAME":{const{name:n}=a.payload,i=L(e,s);return i?{...e,activities:e.activities.map(r=>r.id===i.activity.id?{...r,steps:r.steps.map(o=>o.id===i.step.id?{...o,name:n}:o)}:r)}:null}case"REORDER_STEP":{const{after:n}=a.payload,i=L(e,s);if(!i)return null;const r=n===null?null:L(e,n);if(n!==null&&(!r||r.activity.id!==i.activity.id))return null;const o=pe(i.activity.steps,i.step.id,r?.step.id??null);return o===null?null:{...e,activities:e.activities.map(d=>d.id===i.activity.id?{...d,steps:o}:d)}}case"REORDER_ACTIVITY":{const{after:n}=a.payload,i=pe(e.activities,s,n);return i===null?null:{...e,activities:i}}case"ADD_ACTIVITY":{const n=a.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=a.payload,i=e.activities.find(r=>r.id===s);return i?i.steps.some(r=>r.id===n.id)?e:{...e,activities:e.activities.map(r=>r.id===s?{...r,steps:[...r.steps,{id:n.id,name:n.name}]}:r)}:null}case"DELETE_ACTIVITY":{const n=e.activities.find(r=>r.id===s);if(!n)return null;const i=new Set(n.steps.map(r=>r.id));return dt({...e,activities:e.activities.filter(r=>r.id!==s)},r=>r.activityId===s||i.has(r.stepId))}case"DELETE_STEP":{const n=L(e,s);return n?dt({...e,activities:e.activities.map(i=>i.id===n.activity.id?{...i,steps:i.steps.filter(r=>r.id!==n.step.id)}:i)},i=>i.activityId===n.activity.id&&i.stepId===n.step.id):null}case"SET_STORY_NAME":{const{name:n}=a.payload;return V(e,s,i=>({...i,name:n}))}case"SET_STORY_DESCRIPTION":{const{description:n}=a.payload;return V(e,s,i=>({...i,description:n}))}case"SET_STORY_MILESTONE":{const{milestoneId:n}=a.payload;return n!==null&&!F(e,n)?null:V(e,s,i=>n===null?ot(i):{...i,milestoneId:n})}case"MOVE_STORY":{const n=a.payload,i=E(e,s);if(!i)return null;const r=L(e,n.stepId);if(!r||r.activity.id!==n.activityId||n.milestoneId!==null&&!F(e,n.milestoneId))return null;const o=n.milestoneId??void 0,d=o===void 0?{...ot(i),activityId:r.activity.id,stepId:r.step.id}:{...i,activityId:r.activity.id,stepId:r.step.id,milestoneId:o};return Qt(e,d,n.after)}case"REORDER_STORY":{const{after:n}=a.payload,i=E(e,s);return i?Qt(e,i,n,!0):null}case"ADD_STORY":{const n=a.payload,i=L(e,t.target.id);if(!i||i.activity.id!==n.activityId||n.milestoneId!==void 0&&!F(e,n.milestoneId))return null;if(e.stories.some(d=>d.id===n.id))return e;const r=n.number!==void 0&&e.stories.some(d=>d.number===n.number),o={id:n.id,number:n.number===void 0||r?jt(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,o]}}case"DELETE_STORY":return e.stories.some(n=>n.id===s)?dt(e,n=>n.id===s):null;case"ADD_STORY_LINK":{const{url:n,label:i}=a.payload,r=E(e,s);if(!r)return null;if(r.links?.some(d=>d.url===n))return e;const o=i===void 0?{url:n}:{url:n,label:i};return V(e,s,d=>({...d,links:[...d.links??[],o]}))}case"REMOVE_STORY_LINK":{const{url:n}=a.payload;return E(e,s)?.links?.some(r=>r.url===n)?V(e,s,r=>{const o=(r.links??[]).filter(u=>u.url!==n),{links:d,...p}=r;return o.length===0?p:{...p,links:o}}):null}case"ADD_STORY_COMMENT":{const{id:n,body:i,createdAt:r}=a.payload,o=E(e,s);if(!o)return null;if(o.comments?.some(p=>p.id===n))return e;if(W(e).includes(n))return null;const d=r===void 0?{id:n,body:i}:{id:n,body:i,createdAt:r};return V(e,s,p=>({...p,comments:[...p.comments??[],d]}))}case"DELETE_STORY_COMMENT":{const{commentId:n}=a.payload;return E(e,s)?.comments?.some(r=>r.id===n)?V(e,s,r=>{const o=(r.comments??[]).filter(u=>u.id!==n),{comments:d,...p}=r;return o.length===0?p:{...p,comments:o}}):null}case"SET_STORY_STATUS":{const{statusId:n}=a.payload;return N(e,n)?V(e,s,i=>({...i,statusId:n})):null}case"SET_MILESTONE_NAME":{const{name:n}=a.payload;return e.milestones.some(i=>i.id===s)?{...e,milestones:e.milestones.map(i=>i.id===s?{...i,name:n}:i)}:null}case"ADD_MILESTONE":{const n=a.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===s)?{...e,milestones:e.milestones.filter(n=>n.id!==s),stories:e.stories.map(n=>n.milestoneId===s?ot(n):n),snapshots:lt(e,n=>n.milestoneId===s?oe(n,"milestoneId"):n)}:null;case"REORDER_MILESTONE":{const{after:n}=a.payload,i=pe(e.milestones,s,n);return i===null?null:{...e,milestones:i}}case"SET_MILESTONE_DUE_DATE":{const{dueDate:n}=a.payload;return F(e,s)?{...e,milestones:e.milestones.map(i=>i.id!==s?i:n===null?oe(i,"dueDate"):{...i,dueDate:n})}:null}case"ADD_STATUS":{const{id:n,name:i,tone:r,icon:o}=a.payload;if(e.statuses.some(p=>p.id===n))return e;const d=[...e.statuses,{id:n,name:i,tone:r,icon:o??"progress"}];return e.statuses.length===0?{...e,statuses:d,stories:e.stories.map(p=>({...p,statusId:n})),snapshots:lt(e,p=>({...p,statusId:n}))}:{...e,statuses:d}}case"SET_STATUS_NAME":{const{name:n}=a.payload;return N(e,s)?{...e,statuses:e.statuses.map(i=>i.id===s?{...i,name:n}:i)}:null}case"SET_STATUS_TONE":{const{tone:n}=a.payload;return N(e,s)?{...e,statuses:e.statuses.map(i=>i.id===s?{...i,tone:n}:i)}:null}case"SET_STATUS_ICON":{const{icon:n}=a.payload;return N(e,s)?{...e,statuses:e.statuses.map(i=>i.id===s?{...i,icon:n}:i)}:null}case"SET_STATUS_WEIGHT":{const{weight:n}=a.payload;return N(e,s)?{...e,statuses:e.statuses.map(i=>i.id===s?{...i,weight:n}:i)}:null}case"SET_MEASURE":{const{measure:n}=a.payload;return he(e)===n?e:{...e,measure:n}}case"SET_DONE_STATUS":return N(e,s)?e.doneStatusId===s?e:{...e,doneStatusId:s}:null;case"DELETE_STATUS":{if(!N(e,s))return null;const n=e.statuses.filter(r=>r.id!==s),i=n[0]?.id;return{...e.doneStatusId===s?oe(e,"doneStatusId"):e,statuses:n,stories:e.stories.map(r=>r.statusId!==s?r:i===void 0?Sn(r):{...r,statusId:i}),snapshots:lt(e,r=>r.statusId!==s?r:i===void 0?oe(r,"statusId"):{...r,statusId:i})}}case"REORDER_STATUS":{const{after:n}=a.payload,i=pe(e.statuses,s,n);return i===null?null:{...e,statuses:i}}case"ADD_LABEL":{const{id:n,name:i,tone:r}=a.payload;return j(e,n)?e:{...e,labels:[...e.labels,{id:n,name:i,tone:r}]}}case"SET_LABEL_NAME":{const{name:n}=a.payload;return j(e,s)?{...e,labels:e.labels.map(i=>i.id===s?{...i,name:n}:i)}:null}case"SET_LABEL_TONE":{const{tone:n}=a.payload;return j(e,s)?{...e,labels:e.labels.map(i=>i.id===s?{...i,tone:n}:i)}:null}case"DELETE_LABEL":return j(e,s)?{...e,labels:e.labels.filter(n=>n.id!==s),stories:e.stories.map(n=>n.labelIds?.includes(s)?Zt(n,s):n)}:null;case"REORDER_LABEL":{const{after:n}=a.payload,i=pe(e.labels,s,n);return i===null?null:{...e,labels:i}}case"ADD_STORY_LABEL":{const{labelId:n}=a.payload,i=E(e,s);return!i||!j(e,n)?null:i.labelIds?.includes(n)?e:V(e,s,r=>({...r,labelIds:[...r.labelIds??[],n]}))}case"REMOVE_STORY_LABEL":{const{labelId:n}=a.payload;return E(e,s)?.labelIds?.includes(n)?V(e,s,i=>Zt(i,n)):null}case"ADD_STORY_BLOCKER":{const{blockerId:n}=a.payload,i=E(e,s);return!i||!E(e,n)?null:i.blockedBy?.includes(n)?e:n===s||at(e.stories,n,s)?null:V(e,s,r=>({...r,blockedBy:[...r.blockedBy??[],n]}))}case"REMOVE_STORY_BLOCKER":{const{blockerId:n}=a.payload;return E(e,s)?.blockedBy?.includes(n)?V(e,s,i=>Jt(i,new Set([n]))):null}case"ADD_MEMBER":{const{id:n,name:i,tone:r}=a.payload;return G(e,n)?e:{...e,members:[...e.members,{id:n,name:i,tone:r}]}}case"SET_MEMBER_NAME":{const{name:n}=a.payload;return G(e,s)?{...e,members:e.members.map(i=>i.id===s?{...i,name:n}:i)}:null}case"SET_MEMBER_TONE":{const{tone:n}=a.payload;return G(e,s)?{...e,members:e.members.map(i=>i.id===s?{...i,tone:n}:i)}:null}case"DELETE_MEMBER":return G(e,s)?{...e,members:e.members.filter(n=>n.id!==s),stories:e.stories.map(n=>n.assigneeId===s?oe(n,"assigneeId"):n)}:null;case"REORDER_MEMBER":{const{after:n}=a.payload,i=pe(e.members,s,n);return i===null?null:{...e,members:i}}case"SET_STORY_ASSIGNEE":{const{memberId:n}=a.payload;return n!==null&&!G(e,n)?null:V(e,s,i=>n===null?oe(i,"assigneeId"):{...i,assigneeId:n})}case"ADD_ESTIMATE":{const{id:n,name:i,points:r}=a.payload;return H(e,n)?e:{...e,estimates:[...e.estimates,{id:n,name:i,points:r}]}}case"SET_ESTIMATE_NAME":{const{name:n}=a.payload;return H(e,s)?{...e,estimates:e.estimates.map(i=>i.id===s?{...i,name:n}:i)}:null}case"SET_ESTIMATE_POINTS":{const{points:n}=a.payload;return H(e,s)?{...e,estimates:e.estimates.map(i=>i.id===s?{...i,points:n}:i)}:null}case"DELETE_ESTIMATE":return H(e,s)?{...e,estimates:e.estimates.filter(n=>n.id!==s),stories:e.stories.map(n=>n.estimateId===s?oe(n,"estimateId"):n)}:null;case"REORDER_ESTIMATE":{const{after:n}=a.payload,i=pe(e.estimates,s,n);return i===null?null:{...e,estimates:i}}case"SET_STORY_ESTIMATE":{const{estimateId:n}=a.payload;return n!==null&&!H(e,n)?null:V(e,s,i=>n===null?oe(i,"estimateId"):{...i,estimateId:n})}case"RECORD_SNAPSHOT":{const{id:n,at:i,tally:r}=a.payload;return $e(e,n)?e:Ct(e,r)!==null?null:{...e,snapshots:[...e.snapshots,{id:n,at:i,tally:r}]}}case"DELETE_SNAPSHOT":return $e(e,s)?{...e,snapshots:e.snapshots.filter(n=>n.id!==s)}:null;case"SET_FEATURE":{const{feature:n,enabled:i}=a.payload;if(e.features.includes(n)===i)return e;const r=Me.filter(o=>o===n?i:e.features.includes(o));return{...e,features:r}}default:return ks(a)}},V=(e,t,a)=>e.stories.some(s=>s.id===t)?{...e,stories:e.stories.map(s=>s.id===t?a(s):s)}:null,ot=e=>{const{milestoneId:t,...a}=e;return a},Zt=(e,t)=>{const{labelIds:a=[],...s}=e,n=a.filter(i=>i!==t);return n.length===0?s:{...s,labelIds:n}},Jt=(e,t)=>{const{blockedBy:a=[],...s}=e,n=a.filter(i=>!t.has(i));return n.length===0?s:{...s,blockedBy:n}},dt=(e,t)=>{const a=new Set(e.stories.filter(t).map(s=>s.id));return{...e,stories:e.stories.filter(s=>!a.has(s.id)).map(s=>s.blockedBy?.some(n=>a.has(n))?Jt(s,a):s)}},oe=(e,t)=>{const{[t]:a,...s}=e;return s},lt=(e,t)=>e.snapshots.map(a=>{const s=new Map;for(const n of a.tally.map(t)){const i=Re(n),r=s.get(i);s.set(i,r?{...r,stories:r.stories+n.stories,points:r.points+n.points}:n)}return{...a,tally:[...s.values()]}}),Sn=e=>{const{statusId:t,...a}=e;return a},Qt=(e,t,a,s=!1)=>{const n=t.milestoneId??void 0,i=e.stories.filter(v=>v.id!==t.id),r=i.filter(v=>v.stepId===t.stepId&&(v.milestoneId??void 0)===n);if(a!==null){const v=i.find(I=>I.id===a);if(!v||v.stepId!==t.stepId||(v.milestoneId??void 0)!==n)return null;if(s){const I=E(e,t.id);if(!I||v.stepId!==I.stepId||(v.milestoneId??void 0)!==(I.milestoneId??void 0))return null}}const o=a===null?[t,...r]:ea(r,t,a),d=i.findIndex(v=>v.stepId===t.stepId&&(v.milestoneId??void 0)===n),p=new Set(r.map(v=>v.id)),u=i.filter(v=>!p.has(v.id)),f=d<0?u.length:Math.min(d,u.length),x=[...u.slice(0,f),...o,...u.slice(f)];return{...e,stories:x}},pe=(e,t,a)=>{if(!e.some(i=>i.id===t)||a!==null&&!e.some(i=>i.id===a))return null;if(a===t)return[...e];const s=e.find(i=>i.id===t);if(s===void 0)return null;const n=e.filter(i=>i.id!==t);return ea(n,s,a)},ea=(e,t,a)=>{const s=[...e],n=a===null?-1:s.findIndex(i=>i.id===a);return s.splice(n+1,0,t),s},ge=ws({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",milestonesTab:"Milestones",statusesTab:"Statuses",labelsTab:"Labels",burndownTab:"Burndown",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:"Orange"})[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,a,s)=>`${e} ${t}, ${a} ${s}`,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)=>aa("en-US",e,t),commentDate:e=>ta("en-US",e),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",panelLabel:e=>`Story: ${e}`,closePanelAria:"Close",copyStoryKey:e=>`Copy ${e}`,storyKeyCopied:"Copied",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",storyCommentsHint:"Kept on the story as part of the map. To ask the agent for a change, write a review comment.",commentSubmit:"Add comment",deleteStoryCommentAria:"Delete comment",reviewStoryButton:"Review comment",reviewStoryTitle:"Write a review comment on this story, asking the agent for a change",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",membersTab:"Members",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",milestonesTab:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",statusesTab:"\u30B9\u30C6\u30FC\u30BF\u30B9",labelsTab:"\u30E9\u30D9\u30EB",burndownTab:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3",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:"\u30AA\u30EC\u30F3\u30B8"})[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,a,s)=>`${e} ${t}\u3001${a} ${s}`,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)=>aa("ja-JP",e,t),commentDate:e=>ta("ja-JP",e),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",panelLabel:e=>`\u30B9\u30C8\u30FC\u30EA\u30FC: ${e}`,closePanelAria:"\u9589\u3058\u308B",copyStoryKey:e=>`${e} \u3092\u30B3\u30D4\u30FC`,storyKeyCopied:"\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",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",storyCommentsHint:"\u30DE\u30C3\u30D7\u306E\u4E00\u90E8\u3068\u3057\u3066\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u6B8B\u308A\u307E\u3059\u3002Agent \u306B\u76F4\u3057\u3066\u307B\u3057\u3044\u3053\u3068\u306F\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8\u306B\u66F8\u304D\u307E\u3059\u3002",commentSubmit:"\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0",deleteStoryCommentAria:"\u30B3\u30E1\u30F3\u30C8\u3092\u524A\u9664",reviewStoryButton:"\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8",reviewStoryTitle:"\u3053\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u3064\u3044\u3066 Agent \u306B\u76F4\u3057\u3066\u307B\u3057\u3044\u3053\u3068\u3092\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8\u306B\u66F8\u304F",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",membersTab:"\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"}}),ta=(e,t)=>new Intl.DateTimeFormat(e,{dateStyle:"medium",timeStyle:"short"}).format(new Date(t)),aa=(e,t,a)=>{const s=new Date(t);switch(a){case"day":case"week":case"biweek":return`${s.getMonth()+1}/${s.getDate()}`;case"month":case"quarter":return new Intl.DateTimeFormat(e,{month:"short",...s.getMonth()===0?{year:"numeric"}:{}}).format(s);case"year":return new Intl.DateTimeFormat(e,{year:"numeric"}).format(s)}},pt=/^[A-Z][A-Z0-9]+-\d+$/,sa=e=>{let t=e;try{t=decodeURIComponent(e)}catch{}return t.replace(/[-_+]+/g," ").trim()},En=(e,t)=>{if(e!=="github.com")return null;const[a,s,n,i]=t;if(a===void 0)return{kind:"github",text:"GitHub",title:"github.com"};if(s===void 0)return{kind:"github",text:a,title:a};const r=`${a}/${s}`;return(n==="issues"||n==="pull"||n==="discussions")&&i&&/^\d+$/.test(i)?{kind:"github",text:`#${i}`,title:`${r}#${i}`}:n==="commit"&&i?{kind:"github",text:i.slice(0,7),title:`${r}@${i}`}:{kind:"github",text:r,title:r}},Tn=(e,t)=>{if(e!=="gitlab.com")return null;const a=t.indexOf("-"),s=(a<0?t:t.slice(0,a)).join("/"),n=a<0?void 0:t[a+1],i=a<0?void 0:t[a+2];if(i&&/^\d+$/.test(i)){if(n==="issues")return{kind:"gitlab",text:`#${i}`,title:`${s}#${i}`};if(n==="merge_requests")return{kind:"gitlab",text:`!${i}`,title:`${s}!${i}`}}return{kind:"gitlab",text:s||"GitLab",title:s||e}},An=(e,t,a)=>{if(!t.endsWith(".atlassian.net")&&!t.startsWith("jira."))return null;const s=(a[0]==="browse"?a[1]:void 0)??e.searchParams.get("selectedIssue")??a.find(n=>pt.test(n));return s&&pt.test(s)?{kind:"jira",text:s,title:`${t} ${s}`}:{kind:"jira",text:"Jira",title:t}},_n=(e,t)=>{if(e!=="linear.app")return null;const a=t[1]==="issue"?t[2]?.toUpperCase():void 0;return a&&pt.test(a)?{kind:"linear",text:a,title:a}:{kind:"linear",text:"Linear",title:e}},In=(e,t)=>{if(e!=="figma.com")return null;const[a,,s]=t;if((a==="file"||a==="design"||a==="proto"||a==="board")&&s){const n=sa(s);return{kind:"figma",text:n,title:n}}return{kind:"figma",text:"Figma",title:e}},Mn=(e,t)=>{if(e!=="notion.so"&&!e.endsWith(".notion.site"))return null;const s=(t.at(-1)??"").replace(/-?[0-9a-f]{32}$/i,""),n=s===""?"Notion":sa(s);return{kind:"notion",text:n,title:n}},Ye=e=>{let t;try{t=new URL(e)}catch{return{kind:"web",text:e,title:e}}const a=t.hostname.replace(/^www\./,""),s=t.pathname.split("/").filter(n=>n!=="");return En(a,s)??Tn(a,s)??An(t,a,s)??_n(a,s)??In(a,s)??Mn(a,s)??{kind:"web",text:a,title:e}},Ln=["map","milestones","statuses","labels","members","burndown"],Dn={members:"assignees",burndown:"estimates"},na=e=>Ln.filter(t=>{const a=Dn[t];return a===void 0||J(e,a)}),ia=(e,t)=>na(e).find(a=>a===t.tab)??"map",Se=(e,t)=>Ft(e,t.statusId),ra=(e,t)=>{const a=E(e,t)?.blockedBy??[];return{blockers:a,openBlockers:a.filter(s=>{const n=E(e,s);return n!==void 0&&!Se(e,n)}).length,dependents:e.stories.filter(s=>s.blockedBy?.includes(t)).map(s=>s.id)}},Rn=(e,t)=>{const a=new Set(E(e,t)?.blockedBy??[]);return e.stories.filter(s=>s.id!==t&&!a.has(s.id)&&!at(e.stories,s.id,t))},On=(e,t)=>e.stories.filter(a=>a.id!==t&&!a.blockedBy?.includes(t)&&!at(e.stories,t,a.id)),Nn=["critical-path"],Ue=e=>Nn.find(t=>t===e.highlight)??null,Cn=(e,t)=>{if(Se(e,t))return 0;const a=he(e)==="stories"?1:Kt(e,t),s=Math.max(0,e.statuses.findIndex(n=>n.id===t.statusId));return a*(Vt(e)[s]??1)},Bn=(e,t)=>Ue(t)==="critical-path"?oa(e).ids:null,Yn=1e-9,oa=e=>{const t=new Map(e.stories.map(d=>[d.id,Cn(e,d)]).filter(([,d])=>d>0)),a=new Map,s=new Map;for(const d of e.stories)if(t.has(d.id))for(const p of d.blockedBy??[])t.has(p)&&(a.set(d.id,[...a.get(d.id)??[],p]),s.set(p,[...s.get(p)??[],d.id]));const n=da(t,a),i=da(t,s),r=[...t].map(([d,p])=>[d,n(d)+i(d)-p]),o=Math.max(0,...r.map(([,d])=>d));return{ids:new Set(r.filter(([,d])=>o-d<Yn).map(([d])=>d)),work:o}},da=(e,t)=>{const a=new Map,s=n=>{const i=a.get(n);if(i!==void 0)return i;const r=(e.get(n)??0)+Math.max(0,...(t.get(n)??[]).map(s));return a.set(n,r),r};return s},Ee=["status","label","estimate","assignee"],ne="~none",ie={key:"done",value:"show"},la=(e,t)=>t[ie.key]===ie.value||e.statuses.length<2?new Set:new Set(e.statuses.filter(a=>Ft(e,a.id)).map(a=>a.id)),be=(e,t)=>{switch(t){case"status":return e.statuses.map(a=>a.id);case"label":return e.labels.length===0?[]:[...e.labels.map(a=>a.id),ne];case"estimate":return!J(e,"estimates")||e.estimates.length===0?[]:[...e.estimates.map(a=>a.id),ne];case"assignee":return!J(e,"assignees")||e.members.length===0?[]:[...e.members.map(a=>a.id),ne]}},ze=(e,t)=>{const a=la(e,t),s=n=>{const i=t[n];if(i===void 0||i==="")return new Set;const r=new Set(i.split(","));return new Set(be(e,n).filter(o=>r.has(o)&&!a.has(o)))};return{status:s("status"),label:s("label"),estimate:s("estimate"),assignee:s("assignee"),hiddenStatusIds:a}},pa=(e,t,a)=>{const s=be(e,t).filter(n=>a.has(n));return s.length===0?null:s.join(",")},Un=(e,t)=>{const a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a},zn=e=>Ee.some(t=>e[t].size>0),ca=(e,t)=>{const a=t.labelIds??[];return(t.statusId===void 0||!e.hiddenStatusIds.has(t.statusId))&&Pe(e.status,t.statusId===void 0?[]:[t.statusId])&&Pe(e.label,a.length===0?[ne]:a)&&Pe(e.estimate,[t.estimateId??ne])&&Pe(e.assignee,[t.assigneeId??ne])},Pe=(e,t)=>e.size===0||t.some(a=>e.has(a)),R=(e,t,a)=>{const s=typeof a=="string"?a:"",n=typeof t=="string"?t:void 0;return n===void 0?e.toValue(s):e.fromTo(n,s)},de=(e,t)=>typeof t=="string"?e.afterName(t):e.toFront,Pn={SET_ACTIVITY_NAME:(e,t,a)=>({title:e.renameActivity,tone:"update",body:R(e,ee(a,t.target.id)?.name,w(k.SET_ACTIVITY_NAME,t).name??"")}),SET_ACTIVITY_ACTOR:(e,t,a)=>{const s=w(k.SET_ACTIVITY_ACTOR,t).actor.trim();return{title:e.changeActivityActor,tone:"update",body:s===""?e.removed(ee(a,t.target.id)?.actor??""):R(e,ee(a,t.target.id)?.actor,s)}},SET_STEP_NAME:(e,t,a)=>({title:e.renameStep,tone:"update",body:R(e,L(a,t.target.id)?.step.name,w(k.SET_STEP_NAME,t).name??"")}),REORDER_STEP:(e,t)=>({title:e.reorderStep,tone:"move",body:de(e,w(k.REORDER_STEP,t).after)}),REORDER_ACTIVITY:(e,t,a)=>{const s=w(k.REORDER_ACTIVITY,t).after;return{title:e.reorderActivity,tone:"move",body:de(e,s===null?null:ee(a,s)?.name??s)}},ADD_ACTIVITY:(e,t)=>({title:e.addActivity,tone:"create",body:e.added(String(w(k.ADD_ACTIVITY,t).name??""))}),ADD_STEP:(e,t)=>({title:e.addStep,tone:"create",body:e.added(String(w(k.ADD_STEP,t).name??""))}),DELETE_ACTIVITY:(e,t,a)=>({title:e.deleteActivity,tone:"delete",body:e.removed(ee(a,t.target.id)?.name??t.target.id)}),DELETE_STEP:(e,t,a)=>({title:e.deleteStep,tone:"delete",body:e.removed(L(a,t.target.id)?.step.name??t.target.id)}),SET_STORY_NAME:(e,t,a)=>({title:e.renameStory,tone:"update",body:R(e,E(a,t.target.id)?.name,w(k.SET_STORY_NAME,t).name??"")}),SET_STORY_DESCRIPTION:(e,t)=>({title:e.updateStoryDescription,tone:"update",body:e.toValue(String(w(k.SET_STORY_DESCRIPTION,t).description??"").slice(0,90))}),SET_STORY_MILESTONE:(e,t,a)=>{const s=w(k.SET_STORY_MILESTONE,t).milestoneId;return{title:e.changeMilestone,tone:"move",body:s==null?e.toUnassigned:e.toName(F(a,String(s))?.name??String(s))}},MOVE_STORY:(e,t,a)=>({title:e.moveStory,tone:"move",body:e.toName(L(a,String(w(k.MOVE_STORY,t).stepId))?.step.name??String(w(k.MOVE_STORY,t).stepId??""))}),REORDER_STORY:(e,t)=>({title:e.reorderStory,tone:"move",body:de(e,w(k.REORDER_STORY,t).after)}),ADD_STORY:(e,t)=>({title:e.addStory,tone:"create",body:e.added(String(w(k.ADD_STORY,t).name??""))}),DELETE_STORY:(e,t,a)=>({title:e.deleteStory,tone:"delete",body:e.removed(E(a,t.target.id)?.name??t.target.id)}),SET_MILESTONE_NAME:(e,t,a)=>({title:e.renameMilestone,tone:"update",body:R(e,F(a,t.target.id)?.name,w(k.SET_MILESTONE_NAME,t).name??"")}),ADD_MILESTONE:(e,t)=>({title:e.addMilestone,tone:"create",body:e.added(String(w(k.ADD_MILESTONE,t).name??""))}),DELETE_MILESTONE:(e,t,a)=>({title:e.deleteMilestone,tone:"delete",body:e.removed(F(a,t.target.id)?.name??t.target.id)}),REORDER_MILESTONE:(e,t)=>({title:e.reorderMilestone,tone:"move",body:de(e,w(k.REORDER_MILESTONE,t).after)}),ADD_STORY_LINK:(e,t)=>{const{url:a,label:s}=w(k.ADD_STORY_LINK,t);return{title:e.addStoryLink,tone:"create",body:e.added(s??Ye(a).title)}},REMOVE_STORY_LINK:(e,t,a)=>{const{url:s}=w(k.REMOVE_STORY_LINK,t),n=E(a,t.target.id)?.links?.find(i=>i.url===s);return{title:e.removeStoryLink,tone:"delete",body:e.removed(n?.label??Ye(s).title)}},ADD_STORY_COMMENT:(e,t)=>({title:e.addStoryComment,tone:"create",body:e.added(w(k.ADD_STORY_COMMENT,t).body)}),DELETE_STORY_COMMENT:(e,t,a)=>{const{commentId:s}=w(k.DELETE_STORY_COMMENT,t),n=E(a,t.target.id)?.comments?.find(i=>i.id===s);return{title:e.deleteStoryComment,tone:"delete",body:e.removed(n?.body??s)}},SET_STORY_STATUS:(e,t,a)=>{const s=w(k.SET_STORY_STATUS,t).statusId;return{title:e.changeStoryStatus,tone:"update",body:e.toName(N(a,s)?.name??s)}},ADD_STATUS:(e,t)=>({title:e.addStatus,tone:"create",body:e.added(w(k.ADD_STATUS,t).name)}),SET_STATUS_NAME:(e,t,a)=>({title:e.renameStatus,tone:"update",body:R(e,N(a,t.target.id)?.name,w(k.SET_STATUS_NAME,t).name)}),SET_STATUS_TONE:(e,t,a)=>{const s=N(a,t.target.id)?.tone,n=w(k.SET_STATUS_TONE,t).tone;return{title:e.changeStatusTone,tone:"update",body:R(e,s===void 0?void 0:e.toneName(s),e.toneName(n))}},SET_STATUS_ICON:(e,t,a)=>{const s=N(a,t.target.id)?.icon,n=w(k.SET_STATUS_ICON,t).icon;return{title:e.changeStatusIcon,tone:"update",body:R(e,s===void 0?void 0:e.iconName(s),e.iconName(n))}},DELETE_STATUS:(e,t,a)=>({title:e.deleteStatus,tone:"delete",body:e.removed(N(a,t.target.id)?.name??t.target.id)}),REORDER_STATUS:(e,t)=>({title:e.reorderStatus,tone:"move",body:de(e,w(k.REORDER_STATUS,t).after)}),ADD_LABEL:(e,t)=>({title:e.addLabel,tone:"create",body:e.added(w(k.ADD_LABEL,t).name)}),SET_LABEL_NAME:(e,t,a)=>({title:e.renameLabel,tone:"update",body:R(e,j(a,t.target.id)?.name,w(k.SET_LABEL_NAME,t).name)}),SET_LABEL_TONE:(e,t,a)=>{const s=j(a,t.target.id)?.tone,n=w(k.SET_LABEL_TONE,t).tone;return{title:e.changeLabelTone,tone:"update",body:R(e,s===void 0?void 0:e.toneName(s),e.toneName(n))}},DELETE_LABEL:(e,t,a)=>({title:e.deleteLabel,tone:"delete",body:e.removed(j(a,t.target.id)?.name??t.target.id)}),REORDER_LABEL:(e,t)=>({title:e.reorderLabel,tone:"move",body:de(e,w(k.REORDER_LABEL,t).after)}),ADD_STORY_LABEL:(e,t,a)=>{const s=w(k.ADD_STORY_LABEL,t).labelId;return{title:e.addStoryLabel,tone:"create",body:e.added(j(a,s)?.name??s)}},REMOVE_STORY_LABEL:(e,t,a)=>{const s=w(k.REMOVE_STORY_LABEL,t).labelId;return{title:e.removeStoryLabel,tone:"delete",body:e.removed(j(a,s)?.name??s)}},ADD_STORY_BLOCKER:(e,t,a)=>{const s=w(k.ADD_STORY_BLOCKER,t).blockerId;return{title:e.addStoryBlocker,tone:"create",body:e.added(E(a,s)?.name??s)}},REMOVE_STORY_BLOCKER:(e,t,a)=>{const s=w(k.REMOVE_STORY_BLOCKER,t).blockerId;return{title:e.removeStoryBlocker,tone:"delete",body:e.removed(E(a,s)?.name??s)}},SET_MILESTONE_DUE_DATE:(e,t,a)=>{const s=w(k.SET_MILESTONE_DUE_DATE,t).dueDate;return{title:e.changeMilestoneDueDate,tone:s===null?"delete":"update",body:s===null?e.noDueDate:R(e,F(a,t.target.id)?.dueDate,s)}},SET_STATUS_WEIGHT:(e,t,a)=>{const s=N(a,t.target.id)?.weight,n=w(k.SET_STATUS_WEIGHT,t).weight;return{title:e.changeStatusWeight,tone:"update",body:R(e,s===void 0?void 0:String(s),String(n))}},SET_DONE_STATUS:(e,t,a)=>({title:e.setDoneStatus,tone:"update",body:R(e,Pt(a)?.name,N(a,t.target.id)?.name??t.target.id)}),SET_MEASURE:(e,t,a)=>({title:e.setMeasure,tone:"update",body:R(e,e.measureName(he(a)),e.measureName(w(k.SET_MEASURE,t).measure))}),ADD_MEMBER:(e,t)=>({title:e.addMember,tone:"create",body:e.added(w(k.ADD_MEMBER,t).name)}),SET_MEMBER_NAME:(e,t,a)=>({title:e.renameMember,tone:"update",body:R(e,G(a,t.target.id)?.name,w(k.SET_MEMBER_NAME,t).name)}),SET_MEMBER_TONE:(e,t,a)=>{const s=G(a,t.target.id)?.tone,n=w(k.SET_MEMBER_TONE,t).tone;return{title:e.changeMemberTone,tone:"update",body:R(e,s===void 0?void 0:e.toneName(s),e.toneName(n))}},DELETE_MEMBER:(e,t,a)=>({title:e.deleteMember,tone:"delete",body:e.removed(G(a,t.target.id)?.name??t.target.id)}),REORDER_MEMBER:(e,t)=>({title:e.reorderMember,tone:"move",body:de(e,w(k.REORDER_MEMBER,t).after)}),SET_STORY_ASSIGNEE:(e,t,a)=>{const s=w(k.SET_STORY_ASSIGNEE,t).memberId;if(s===null){const n=G(a,E(a,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(a,s)?.name??s)}},ADD_ESTIMATE:(e,t)=>{const{name:a,points:s}=w(k.ADD_ESTIMATE,t);return{title:e.addEstimate,tone:"create",body:e.added(e.estimateText(a,s))}},SET_ESTIMATE_NAME:(e,t,a)=>({title:e.renameEstimate,tone:"update",body:R(e,H(a,t.target.id)?.name,w(k.SET_ESTIMATE_NAME,t).name)}),SET_ESTIMATE_POINTS:(e,t,a)=>{const s=H(a,t.target.id)?.points,n=w(k.SET_ESTIMATE_POINTS,t).points;return{title:e.changeEstimatePoints,tone:"update",body:R(e,s===void 0?void 0:String(s),String(n))}},DELETE_ESTIMATE:(e,t,a)=>({title:e.deleteEstimate,tone:"delete",body:e.removed(H(a,t.target.id)?.name??t.target.id)}),REORDER_ESTIMATE:(e,t)=>({title:e.reorderEstimate,tone:"move",body:de(e,w(k.REORDER_ESTIMATE,t).after)}),SET_STORY_ESTIMATE:(e,t,a)=>{const s=w(k.SET_STORY_ESTIMATE,t).estimateId;return s===null?{title:e.setStoryEstimate,tone:"delete",body:e.toValue(e.unestimated)}:{title:e.setStoryEstimate,tone:"update",body:e.toValue(H(a,s)?.name??s)}},RECORD_SNAPSHOT:(e,t)=>{const{at:a,tally:s}=w(k.RECORD_SNAPSHOT,t),n=s.reduce((i,r)=>i+r.stories,0);return{title:e.recordSnapshot,tone:"create",body:e.snapshotSummary(le(a),n)}},DELETE_SNAPSHOT:(e,t,a)=>{const s=$e(a,t.target.id);return{title:e.deleteSnapshot,tone:"delete",body:e.removed(s?le(s.at):t.target.id)}},SET_FEATURE:(e,t)=>{const{feature:a,enabled:s}=w(k.SET_FEATURE,t);return{title:s?e.enableFeature:e.disableFeature,tone:s?"create":"delete",body:e.featureName(a)}}},ua=(e,t,a,s)=>{let n;try{const i=Pn[t.type];n=i?i(e,t,s??a):{title:t.type,tone:"meta"}}catch{n={title:t.type,tone:"meta"}}return{title:n.title,targetLabel:ha(e,a,t.target),tone:n.tone,...n.body===void 0?{}:{summary:n.body}}},ma=e=>`${e.type} ${_(e.target)} ${JSON.stringify(e.payload)}`,ha=(e,t,a)=>{try{switch(a.type){case"activity":{const s=ee(t,a.id);return s?e.targetLabel(e.activityGroup,s.name):e.targetMissing(e.activityGroup,a.id)}case"step":{const s=L(t,a.id)?.step;return s?e.targetLabel(e.stepGroup,s.name):e.targetMissing(e.stepGroup,a.id)}case"story":{const s=E(t,a.id);return s?e.targetLabel(e.storyGroup,s.name):e.targetMissing(e.storyGroup,a.id)}case"milestone":{const s=F(t,a.id);return s?e.targetLabel(e.milestoneGroup,s.name):e.targetMissing(e.milestoneGroup,a.id)}case"status":{const s=N(t,a.id);return s?e.targetLabel(e.statusGroup,s.name):e.targetMissing(e.statusGroup,a.id)}case"label":{const s=j(t,a.id);return s?e.targetLabel(e.labelGroup,s.name):e.targetMissing(e.labelGroup,a.id)}case"member":{const s=G(t,a.id);return s?e.targetLabel(e.memberGroup,s.name):e.targetMissing(e.memberGroup,a.id)}case"estimate":{const s=H(t,a.id);return s?e.targetLabel(e.estimateGroup,s.name):e.targetMissing(e.estimateGroup,a.id)}case"snapshot":{const s=$e(t,a.id);return s?e.targetLabel(e.snapshotGroup,le(s.at)):e.targetMissing(e.snapshotGroup,a.id)}case"page":return e.targetLabel(e.mapGroup,ct(t));default:return`${a.type} \xB7 ${a.id}`}}catch{return`${a.type} \xB7 ${a.id}`}},ga=(e,t,a)=>{const s=[{value:"page:usm",label:e.wholeMap,group:e.mapGroup}];for(const n of t.activities){s.push({value:_({type:"activity",id:n.id}),label:n.name,group:e.activityGroup});for(const i of n.steps)s.push({value:_({type:"step",id:te(n.id,i.id)}),label:`${n.name} \u203A ${i.name}`,group:e.stepGroup})}for(const n of t.milestones)s.push({value:_({type:"milestone",id:n.id}),label:n.name,group:e.milestoneGroup});for(const n of t.statuses)s.push({value:_({type:"status",id:n.id}),label:n.name,group:e.statusGroup});for(const n of t.labels)s.push({value:_({type:"label",id:n.id}),label:n.name,group:e.labelGroup});for(const n of t.members)s.push({value:_({type:"member",id:n.id}),label:n.name,group:e.memberGroup});for(const n of t.estimates)s.push({value:_({type:"estimate",id:n.id}),label:e.estimateText(n.name,n.points),group:e.estimateGroup});for(const n of t.snapshots)s.push({value:_({type:"snapshot",id:n.id}),label:le(n.at),group:e.snapshotGroup});for(const n of t.stories)s.push({value:_({type:"story",id:n.id}),label:n.name,group:e.storyGroup});return s},ba=(e,t,a)=>{const s=t.stories.find(n=>n.id===a.story);if(s)return{value:_({type:"story",id:s.id}),label:s.name,group:e.storyGroup};for(const n of t.activities){const i=n.steps.find(r=>r.id===a.step);if(i)return{value:_({type:"step",id:te(n.id,i.id)}),label:i.name,group:e.stepGroup}}return null},ct=e=>e.title??"User Story Mapping",Fn=(e,t)=>{switch(t.type){case"story":{const a=E(e,t.id);return{tab:null,highlight:null,...Object.fromEntries(Ee.map(s=>[s,null])),...a&&Se(e,a)?{[ie.key]:ie.value}:{}}}case"step":case"activity":return{tab:null,view:null};case"milestone":return{tab:"milestones"};case"status":return{tab:"statuses"};case"label":return{tab:"labels"};case"member":return J(e,"assignees")?{tab:"members"}:null;case"estimate":case"snapshot":return J(e,"estimates")?{tab:"burndown"}:null;default:return null}},fa=(e,t)=>{const a=L(e,t.step),s=a?.activity??ee(e,t.activity)??e.activities[0],n=a?.step??s?.steps.find(u=>u.id===t.step)??s?.steps[0],i=$n(e,t.story),r={...t};s?r.activity=s.id:delete r.activity,n?r.step=n.id:delete r.step,i?r.story=i.id:delete r.story,r.view=t.view==="group"?"group":"activity";const o=ze(e,t);for(const u of Ee){const f=pa(e,u,o[u]);f===null?delete r[u]:r[u]=f}t[ie.key]!==ie.value&&delete r[ie.key];const d=ia(e,t);d==="map"?delete r.tab:r.tab=d,F(e,t.milestone)||delete r.milestone;const p=Ue(t);return p===null?delete r.highlight:r.highlight=p,r},va=(e,t)=>{switch(t.type){case"activity":return ee(e,t.id)!==void 0;case"step":return L(e,t.id)!==void 0;case"story":return E(e,t.id)!==void 0;case"milestone":return F(e,t.id)!==void 0;case"status":return N(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 H(e,t.id)!==void 0;case"snapshot":return $e(e,t.id)!==void 0;case"page":return!0;default:return!1}},ya=e=>{const t=ge(e);return{name:"usm",label:"User Story Mapping",parseBase:Nt,emptyBase:Bt,actions:k,apply:Xt,canonicalState:bn,hasTarget:va,canonicalTarget:(a,s)=>{if(s.type!=="step")return s;const n=L(a,s.id);return n?{...s,id:te(n.activity.id,n.step.id)}:s},describe:(a,s,n)=>ua(t,a,s,n),serialize:ma,resolveNavigation:fa,navigationFor:Fn,commentTargets:(a,s)=>ga(t,a),currentTarget:(a,s)=>ba(t,a,s),settings:a=>({items:Me.map(s=>{const n=J(a,s);return{key:s,label:t.featureName(s),hint:t.featureHint(s),on:n,toggle:{type:"SET_FEATURE",target:{type:"page",id:"usm"},payload:{feature:s,enabled:!n}}}}),note:t.featuresNote}),title:ct}},ka=.5,Gn=({widths:e,available:t,gap:a,moreWidth:s,keep:n})=>{if(e.reduce((u,f)=>u+f,0)+a*Math.max(0,e.length-1)<=t+ka)return[];const r=t-s+ka,o=new Set;let d=0;const p=u=>{d+=(o.size===0?0:a)+(e[u]??0),o.add(u)};n>=0&&n<e.length&&p(n);for(const[u,f]of e.entries())if(!o.has(u)){if(d+(o.size===0?0:a)+f>r)break;p(u)}return e.flatMap((u,f)=>o.has(f)?[]:[f])},wa=new Set;class Hn{#i;#e;#a=wa;#n=0;#t=null;#s=null;constructor(t,a){this.#i=t,this.#e=a,t.addController(this)}get hidden(){return this.#a}get minimum(){return this.#n}hostConnected(){typeof ResizeObserver>"u"||(this.#t=new ResizeObserver(()=>this.#r()))}hostUpdated(){const t=this.#e.row();t!==this.#s&&(this.#s&&this.#t?.unobserve(this.#s),t&&this.#t?.observe(t),this.#s=t),this.#r()}hostDisconnected(){this.#t?.disconnect(),this.#t=null,this.#s=null}#r(){const t=this.#e.row();if(!t)return;const a=this.#e.items(t),s=a.map(x=>x.getBoundingClientRect().width),n=a.findIndex(x=>this.#e.kept(x)),i=a[0]?.parentElement,r=i?xa(i):0,o=this.#e.more(t),d=o?o.getBoundingClientRect().width+xa(t):0,p=Gn({widths:s,available:t.getBoundingClientRect().width,gap:r,moreWidth:d,keep:n}),u=new Set(p.flatMap(x=>{const v=a[x];return v?[this.#e.keyOf(v)]:[]})),f=Math.ceil((s[n]??0)+d);Vn(u,this.#a)&&f===this.#n||(this.#a=u.size===0?wa:u,this.#n=f,this.#i.requestUpdate())}}const xa=e=>Number.parseFloat(getComputedStyle(e).columnGap)||0,Vn=(e,t)=>e.size===t.size&&[...e].every(a=>t.has(a)),ut=1440*60*1e3,Kn=48,qn=8,Wn=(e,t,a,s)=>{const n={left:s.inset.left,top:s.inset.top,right:s.width-s.inset.right,bottom:s.height-s.inset.bottom},i=[...e.map(S=>S.at),a,...t===null?[]:[t]];let r=Math.min(...i),o=Math.max(...i);o-r<ut&&(r-=ut/2,o+=ut/2);const d=jn(Math.max(0,...e.map(S=>S.value))),p=d.at(-1)??1,u=S=>n.left+(S-r)/(o-r)*(n.right-n.left),f=S=>n.bottom-S/p*(n.bottom-n.top),x=e.map(S=>({x:u(S.at),y:f(S.value),at:S.at,value:S.value,...S.snapshotId===void 0?{}:{snapshotId:S.snapshotId}})),v=x[0],I=Zn(r,o,Math.floor((n.right-n.left)/Kn));return{size:s,plot:n,line:x.map(S=>`${Te(S.x)},${Te(S.y)}`).join(" "),dots:x,ideal:t===null||!v?null:{x1:v.x,y1:v.y,x2:u(t),y2:f(0)},nowX:u(a),dueX:t===null?null:u(t),yTicks:d.map(S=>({y:f(S),value:S})),valueTop:p,xUnit:I.unit,xTicks:I.ats.map(S=>({x:u(S),at:S})),domain:{start:r,end:o},idealSpan:t===null||!v?null:{at:v.at,value:v.value,due:t}}},jn=e=>{const t=Xn(e/4),a=Math.max(1,Math.ceil(e/t));return Array.from({length:a+1},(s,n)=>n*t)},Xn=e=>{if(e<=1)return 1;const t=10**Math.floor(Math.log10(e));return([1,2,2.5,5,10].find(s=>Number.isInteger(s*t)&&s*t>=e)??10)*t},Te=e=>Math.round(e*100)/100,Zn=(e,t,a)=>{const s=Math.max(1,a),n=["day","week","biweek","month","quarter"];for(const i of n){const r=$a(i,e,t,s);if(r!==null)return{unit:i,ats:r}}return{unit:"year",ats:$a("year",e,t,1/0)??[]}},$a=(e,t,a,s)=>{const n=[];for(let i=Jn(e,t);i<=a;i=Qn(e,i)){if(n.length===s)return null;n.push(i)}return n},Jn=(e,t)=>{const a=new Date(t),[s,n,i]=[a.getFullYear(),a.getMonth(),a.getDate()],r=(o,d)=>o.getTime()>=t?o.getTime():d().getTime();switch(e){case"day":return r(new Date(s,n,i),()=>new Date(s,n,i+1));case"week":case"biweek":{const o=r(new Date(s,n,i),()=>new Date(s,n,i+1)),d=new Date(o),p=(8-d.getDay())%7;return new Date(d.getFullYear(),d.getMonth(),d.getDate()+p).getTime()}case"month":return r(new Date(s,n,1),()=>new Date(s,n+1,1));case"quarter":{const o=n-n%3;return r(new Date(s,o,1),()=>new Date(s,o+3,1))}case"year":return r(new Date(s,0,1),()=>new Date(s+1,0,1))}},Qn=(e,t)=>{const a=new Date(t),[s,n,i]=[a.getFullYear(),a.getMonth(),a.getDate()],r={day:1,week:7,biweek:14},o={month:1,quarter:3,year:12};return e==="day"||e==="week"||e==="biweek"?new Date(s,n,i+r[e]).getTime():new Date(s,n+o[e],1).getTime()},Sa=(e,t)=>{const{plot:a,domain:s,dots:n}=e,i=Math.min(a.right,Math.max(a.left,t)),r=n.reduce((x,v)=>x===null||Math.abs(v.x-i)<Math.abs(x.x-i)?v:x,null),o=r!==null&&Math.abs(r.x-i)<=qn?r:null,d=o?.at??s.start+(i-a.left)/(a.right-a.left)*(s.end-s.start),p=o?.value??ei(n,d),u=ti(e,d),f=x=>x===null?null:Te(a.bottom-x/e.valueTop*(a.bottom-a.top));return{x:o?.x??i,at:d,actual:p,ideal:u,actualY:f(p),idealY:f(u),dot:o}},ei=(e,t)=>{const a=e.findIndex(i=>i.at>=t),s=e[a];if(!s)return null;if(s.at===t)return s.value;const n=e[a-1];return n?Te(n.value+(s.value-n.value)*(t-n.at)/(s.at-n.at)):null},ti=(e,t)=>{const a=e.idealSpan;return a===null||t<a.at||t>a.due?null:Te(a.value*(a.due-t)/(a.due-a.at))},M=e=>`--usm-tone: var(--dpk-${e==null||e==="gray"?"ink-faint":e})`,Ea={circle:B(Vs),lightbulb:B(Xs),flag:B(js),play:B(Gs),clock:B(Ks),eye:B(Ws),pause:B(Fs),check:B(zs),x:B(Hs)},ai=B(Ps),si=e=>{if(e>=1)return Ea.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?O`<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>`},re=e=>{const t=e===void 0?ai():e.icon==="progress"?si(e.progress??1):Ea[e.icon]();return l`<span class="status-icon">${t}</span>`},Ta=(e,t)=>e.length===0?m:l`<span class="status-bar" role="img" aria-label=${t}>
|
|
12
|
+
${e.map(a=>l`<span
|
|
13
|
+
class="status-bar-part"
|
|
14
|
+
data-status=${a.id}
|
|
15
|
+
title=${`${a.name}: ${a.count}`}
|
|
16
|
+
style=${`${M(a.tone)};flex-grow:${a.count}`}
|
|
17
|
+
></span>`)}
|
|
18
|
+
</span>`,mt=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
|
+
`,ni=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 ii extends Xe{static{this.styles=[ni]}static{this.properties={points:{attribute:!1},due:{attribute:!1},now:{attribute:!1},size:{attribute:!1},tone:{attribute:!1},label:{attribute:!1},readout:{state:!0}}}#i=new Ze(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=ge(this.#i.locale),a=Wn(this.points,this.due,this.now,this.size),{size:s}=a,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.#e(a,i)}
|
|
188
|
+
@pointerleave=${()=>this.readout=null}
|
|
189
|
+
@focus=${()=>this.#a(a,a.dots.length-1)}
|
|
190
|
+
@blur=${()=>this.readout=null}
|
|
191
|
+
@keydown=${i=>this.#n(a,i)}
|
|
192
|
+
>
|
|
193
|
+
<svg class="bd-svg" viewBox=${`0 0 ${s.width} ${s.height}`} aria-hidden="true">
|
|
194
|
+
${ri(t,a)} ${oi(a)} ${this.readout?di(a,this.readout):m}
|
|
195
|
+
</svg>
|
|
196
|
+
${this.readout?li(t,a,this.readout):m}
|
|
197
|
+
</div>`}#e(t,a){const s=this.renderRoot.querySelector("svg")?.getBoundingClientRect();!s||s.width===0||(this.readout=Sa(t,(a.clientX-s.left)/s.width*t.size.width))}#a(t,a){const s=t.dots[a];this.readout=s?Sa(t,s.x):null}#n(t,a){const s=t.dots.length-1,n=t.dots.findIndex(r=>r===this.readout?.dot),i=(()=>{switch(a.key){case"ArrowLeft":return Math.max(0,(n===-1?s:n)-1);case"ArrowRight":return Math.min(s,(n===-1?s:n)+1);case"Home":return 0;case"End":return s;default:return null}})();i!==null&&(a.preventDefault(),this.#a(t,i))}}const ri=(e,t)=>{const{plot:a,size:s}=t,n=s.height-8;return O`
|
|
198
|
+
${t.yTicks.map(i=>O`<line class="bd-grid-line" x1=${a.left} x2=${a.right} y1=${i.y} y2=${i.y}></line>
|
|
199
|
+
<text class="bd-tick" x=${a.left-6} y=${i.y} text-anchor="end" dominant-baseline="middle">${i.value}</text>`)}
|
|
200
|
+
${t.xTicks.map(i=>O`<line class="bd-grid-line" data-axis="x" x1=${i.x} x2=${i.x} y1=${a.top} y2=${a.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:O`<line class="bd-due" x1=${t.dueX} x2=${t.dueX} y1=${a.top} y2=${a.bottom}></line>
|
|
203
|
+
<text class="bd-marker" data-marker="due" x=${t.dueX-4} y=${a.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=${a.top} y2=${a.bottom}></line>
|
|
205
|
+
<text class="bd-marker" data-marker="today" x=${t.nowX+4} y=${a.top+10} text-anchor="start">${e.chartToday}</text>
|
|
206
|
+
`},oi=e=>O`
|
|
207
|
+
${e.ideal?O`<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=>O`<circle class="bd-dot" data-now=${t.snapshotId===void 0?"true":m} cx=${t.x} cy=${t.y} r="3.5"></circle>`)}
|
|
210
|
+
`,di=(e,t)=>O`
|
|
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:O`<circle class="bd-mark" data-line="ideal" cx=${t.x} cy=${t.idealY} r="3.5"></circle>`}
|
|
213
|
+
${t.actualY===null?m:O`<circle class="bd-mark" data-line="actual" cx=${t.x} cy=${t.actualY} r="4.5"></circle>`}
|
|
214
|
+
`,li=(e,t,a)=>{const{size:s,plot:n}=t,i=a.x>s.width*.6?"left":"right",r=a.dot?a.dot.snapshotId===void 0?`${e.chartNow} \xB7 ${le(a.dot.at)}`:le(a.dot.at):e.axisDate(a.at,"day");return l`<div
|
|
215
|
+
class="bd-tip"
|
|
216
|
+
data-testid="usm-chart-readout"
|
|
217
|
+
data-side=${i}
|
|
218
|
+
style=${`left: ${a.x/s.width*100}%; top: calc(${n.top/s.height*100}% + 20px)`}
|
|
219
|
+
>
|
|
220
|
+
<span class="bd-tip-at">${r}</span>
|
|
221
|
+
${a.actual===null?m:l`<span class="bd-tip-row" data-line="actual"
|
|
222
|
+
><span class="bd-swatch" data-line="actual"></span>${e.chartActual}<b>${a.actual}</b></span
|
|
223
|
+
>`}
|
|
224
|
+
${a.ideal===null?m:l`<span class="bd-tip-row" data-line="ideal"
|
|
225
|
+
><span class="bd-swatch" data-line="ideal"></span>${e.chartIdeal}<b>${a.ideal}</b></span
|
|
226
|
+
>`}
|
|
227
|
+
</div>`},pi=()=>{customElements.get("dpk-internal-usm-burndown-chart")||customElements.define("dpk-internal-usm-burndown-chart",ii)},ci=new Intl.Segmenter(void 0,{granularity:"grapheme"}),ht=e=>{const[t]=ci.segment(e.trim());return t?t.segment.toUpperCase():"?"},ui={github:O`<path fill-rule="evenodd" d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"></path>`,gitlab:O`<path d="M8 15 1.2 9.9a.7.7 0 0 1-.25-.78L2.7 2.6a.35.35 0 0 1 .66 0L5.1 7.6h5.8l1.74-5a.35.35 0 0 1 .66 0l1.75 6.52a.7.7 0 0 1-.25.78z"></path>`,jira:O`<path d="M14.6 7.4 8.6 1.4 8 .8 3.5 5.3 1.4 7.4a.85.85 0 0 0 0 1.2l4.1 4.1L8 15.2l4.5-4.5.07-.07 2.03-2.03a.85.85 0 0 0 0-1.2zM8 9.9 5.9 8 8 5.9 10.1 8z"></path>`,linear:O`<path d="M1.2 9.4a6.9 6.9 0 0 0 5.4 5.4zM1 7.3l7.7 7.7a7 7 0 0 0 1.9-.5L1.5 5.4a7 7 0 0 0-.5 1.9zm1.2-3.1 9.6 9.6a7 7 0 0 0 1.2-1.1L3.3 3a7 7 0 0 0-1.1 1.2zM4.3 2.3a7 7 0 1 1 9.4 9.4z"></path>`,figma:O`<path d="M5.5 1h2.3v4.6H5.5a2.3 2.3 0 1 1 0-4.6zm2.3 0h2.3a2.3 2.3 0 1 1 0 4.6H7.8zm2.3 4.6a2.3 2.3 0 1 1 0 4.6 2.3 2.3 0 0 1 0-4.6zM5.5 5.6h2.3v4.6H5.5a2.3 2.3 0 1 1 0-4.6zm0 4.6h2.3v2.3a2.3 2.3 0 1 1-2.3-2.3z"></path>`,notion:O`<path fill-rule="evenodd" d="M2.5 1.6 11 1c1 0 1.3.1 2 .6l2.1 1.5c.4.3.5.4.5.7v9.6c0 .7-.3 1.1-1.1 1.2l-9.4.6c-.6 0-.9-.1-1.2-.5L1.9 12c-.3-.5-.5-.8-.5-1.3V2.8c0-.6.3-1.1 1.1-1.2zM5 4.4v8.9l8.6-.5V4zm1 1.2 2.9-.2 3 4.7V5.6l-.8-.1v-.5l2-.1v.6l-.6.1v6.1l-.9.1-3.5-5.4v4.9l.8.2v.5l-2.3.1v-.5l.6-.2V6.4l-.8-.1z"></path>`},Aa=e=>e==="web"?xs():l`<svg class="link-mark" viewBox="0 0 16 16" aria-hidden="true">${ui[e]}</svg>`,_a=q`
|
|
228
|
+
.link-mark {
|
|
229
|
+
fill: currentColor;
|
|
230
|
+
}
|
|
231
|
+
.link-chip {
|
|
232
|
+
display: inline-flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
gap: 5px;
|
|
235
|
+
min-width: 0;
|
|
236
|
+
max-width: 100%;
|
|
237
|
+
padding: 1px 8px 1px 6px;
|
|
238
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
239
|
+
border-radius: 999px;
|
|
240
|
+
background: var(--dpk-paper-raised);
|
|
241
|
+
color: var(--dpk-ink-soft);
|
|
242
|
+
font-family: var(--dpk-mono);
|
|
243
|
+
font-size: 10.5px;
|
|
244
|
+
font-weight: 600;
|
|
245
|
+
line-height: 18px;
|
|
246
|
+
text-decoration: none;
|
|
247
|
+
transition:
|
|
248
|
+
color 140ms var(--dpk-ease),
|
|
249
|
+
border-color 140ms var(--dpk-ease);
|
|
250
|
+
}
|
|
251
|
+
.link-chip:hover {
|
|
252
|
+
border-color: var(--dpk-ink-faint);
|
|
253
|
+
color: var(--dpk-ink);
|
|
254
|
+
}
|
|
255
|
+
.link-chip:focus-visible {
|
|
256
|
+
outline: none;
|
|
257
|
+
box-shadow: var(--dpk-focus);
|
|
258
|
+
}
|
|
259
|
+
.link-chip svg {
|
|
260
|
+
flex: none;
|
|
261
|
+
width: 12px;
|
|
262
|
+
height: 12px;
|
|
263
|
+
}
|
|
264
|
+
.link-chip span {
|
|
265
|
+
overflow: hidden;
|
|
266
|
+
text-overflow: ellipsis;
|
|
267
|
+
white-space: nowrap;
|
|
268
|
+
}
|
|
269
|
+
`,ce=e=>{const t=me(e);return e.statuses.map((a,s)=>({id:a.id,name:a.name,tone:a.tone,icon:a.icon,progress:Ia(s,t)}))},Ia=(e,t)=>t<=0?1:Math.min(1,e/t),Ma=(e,t)=>e.find(a=>a.id===t.statusId),La=(e,t)=>ce(e).map(a=>({...a,count:t.filter(s=>s.statusId===a.id).length})).filter(a=>a.count>0),mi=B(Zs),hi=B(Us),gi=3,bi=q`
|
|
270
|
+
/*
|
|
271
|
+
* The card wears its status's color the way a modern board does: a flat,
|
|
272
|
+
* barely tinted face and a hairline edge in that hue, with a neutral, soft
|
|
273
|
+
* elevation. Tints are mixed in OKLab so every hue stays clean instead of
|
|
274
|
+
* turning muddy.
|
|
275
|
+
*/
|
|
276
|
+
:host {
|
|
277
|
+
--card-tone: var(--usm-tone, var(--dpk-ink-faint));
|
|
278
|
+
position: relative;
|
|
279
|
+
display: grid;
|
|
280
|
+
gap: 8px;
|
|
281
|
+
padding: 12px 13px;
|
|
282
|
+
border: 1px solid color-mix(in oklab, var(--card-tone) 24%, var(--dpk-rule));
|
|
283
|
+
border-radius: 12px;
|
|
284
|
+
background: color-mix(in oklab, var(--card-tone) 6%, var(--dpk-paper-raised));
|
|
285
|
+
box-shadow:
|
|
286
|
+
0 1px 1px var(--dpk-shade-1),
|
|
287
|
+
0 2px 6px -3px var(--dpk-shade-2);
|
|
288
|
+
cursor: pointer;
|
|
289
|
+
transition:
|
|
290
|
+
box-shadow 180ms var(--dpk-ease),
|
|
291
|
+
transform 180ms var(--dpk-ease),
|
|
292
|
+
border-color 180ms var(--dpk-ease),
|
|
293
|
+
opacity 180ms var(--dpk-ease),
|
|
294
|
+
filter 180ms var(--dpk-ease);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
:host(:hover) {
|
|
298
|
+
border-color: color-mix(in oklab, var(--card-tone) 45%, var(--dpk-rule));
|
|
299
|
+
box-shadow:
|
|
300
|
+
0 1px 2px var(--dpk-shade-1),
|
|
301
|
+
0 8px 20px -10px var(--dpk-shade-3);
|
|
302
|
+
transform: translateY(-1px);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
:host([focused]) {
|
|
306
|
+
border-color: var(--dpk-blue);
|
|
307
|
+
box-shadow:
|
|
308
|
+
0 0 0 3px color-mix(in oklab, var(--dpk-blue) 20%, transparent),
|
|
309
|
+
0 8px 20px -10px var(--dpk-shade-3);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/* The card is the button that opens its story; the keyboard ring is the focused look. */
|
|
313
|
+
:host(:focus-visible) {
|
|
314
|
+
outline: none;
|
|
315
|
+
border-color: var(--dpk-blue);
|
|
316
|
+
box-shadow: var(--dpk-focus);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* A highlight on the map (the critical path): the cards on it stand out, the rest step back. */
|
|
320
|
+
:host([data-highlight='on']) {
|
|
321
|
+
border-color: color-mix(in oklab, var(--dpk-accent) 70%, var(--dpk-rule));
|
|
322
|
+
box-shadow:
|
|
323
|
+
0 0 0 2px color-mix(in oklab, var(--dpk-accent) 28%, transparent),
|
|
324
|
+
0 8px 20px -10px var(--dpk-shade-3);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
:host([data-highlight='dimmed']) {
|
|
328
|
+
opacity: 0.4;
|
|
329
|
+
filter: saturate(0.4);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
:host([data-highlight='dimmed']:hover),
|
|
333
|
+
:host([data-highlight='dimmed']:focus-visible),
|
|
334
|
+
:host([data-highlight='dimmed'][focused]) {
|
|
335
|
+
opacity: 0.85;
|
|
336
|
+
filter: none;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
:host([dragging]) {
|
|
340
|
+
opacity: 0.45;
|
|
341
|
+
transform: none;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.card-head {
|
|
345
|
+
display: flex;
|
|
346
|
+
align-items: flex-start;
|
|
347
|
+
gap: 8px;
|
|
348
|
+
min-width: 0;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/* The estimate and the assignee sit at the end of the head, small, like a ticket's size and owner. */
|
|
352
|
+
.card-meta {
|
|
353
|
+
flex: none;
|
|
354
|
+
display: inline-flex;
|
|
355
|
+
align-items: center;
|
|
356
|
+
gap: 4px;
|
|
357
|
+
margin-left: auto;
|
|
358
|
+
}
|
|
359
|
+
.estimate-chip {
|
|
360
|
+
padding: 0 6px;
|
|
361
|
+
border: 1px solid color-mix(in oklab, var(--card-tone) 30%, var(--dpk-rule-strong));
|
|
362
|
+
border-radius: 5px;
|
|
363
|
+
background: var(--dpk-paper-raised);
|
|
364
|
+
color: var(--dpk-ink-soft);
|
|
365
|
+
font-family: var(--dpk-mono);
|
|
366
|
+
font-size: 10.5px;
|
|
367
|
+
font-weight: 650;
|
|
368
|
+
line-height: 17px;
|
|
369
|
+
font-variant-numeric: tabular-nums;
|
|
370
|
+
white-space: nowrap;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.assignee-avatar {
|
|
374
|
+
display: inline-grid;
|
|
375
|
+
place-items: center;
|
|
376
|
+
width: 18px;
|
|
377
|
+
height: 18px;
|
|
378
|
+
border-radius: 50%;
|
|
379
|
+
background: var(--usm-tone);
|
|
380
|
+
color: var(--dpk-paper-raised);
|
|
381
|
+
font-size: 10px;
|
|
382
|
+
font-weight: 700;
|
|
383
|
+
line-height: 1;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.card-status {
|
|
387
|
+
flex: none;
|
|
388
|
+
display: inline-flex;
|
|
389
|
+
margin-top: 1.5px;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.card-name {
|
|
393
|
+
flex: 1 1 auto;
|
|
394
|
+
min-width: 0;
|
|
395
|
+
color: var(--dpk-ink);
|
|
396
|
+
font-size: 13px;
|
|
397
|
+
font-weight: 600;
|
|
398
|
+
letter-spacing: -0.01em;
|
|
399
|
+
line-height: 1.45;
|
|
400
|
+
overflow-wrap: anywhere;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/* The description, rendered from Markdown and cut after three lines. */
|
|
404
|
+
.card-text {
|
|
405
|
+
display: -webkit-box;
|
|
406
|
+
-webkit-box-orient: vertical;
|
|
407
|
+
-webkit-line-clamp: 3;
|
|
408
|
+
overflow: hidden;
|
|
409
|
+
color: var(--dpk-ink-soft);
|
|
410
|
+
font-size: 12px;
|
|
411
|
+
line-height: 1.55;
|
|
412
|
+
overflow-wrap: anywhere;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.card-text > * {
|
|
416
|
+
margin: 0;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* A heading in the description reads as a line of the preview, not a title over the card. */
|
|
420
|
+
.card-text :is(h1, h2, h3, h4, h5, h6) {
|
|
421
|
+
font-size: inherit;
|
|
422
|
+
font-weight: 650;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.card-text ul,
|
|
426
|
+
.card-text ol {
|
|
427
|
+
padding-left: 1.2em;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.card-text code {
|
|
431
|
+
padding: 0 3px;
|
|
432
|
+
border-radius: 4px;
|
|
433
|
+
background: var(--dpk-paper-inset);
|
|
434
|
+
font-family: var(--dpk-mono);
|
|
435
|
+
font-size: 0.92em;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.card-text a {
|
|
439
|
+
color: var(--dpk-blue);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/* Where the story sits and what was said about it. */
|
|
443
|
+
.card-foot {
|
|
444
|
+
display: flex;
|
|
445
|
+
align-items: center;
|
|
446
|
+
gap: 6px;
|
|
447
|
+
min-width: 0;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/* The key people call the story by, quiet like a ticket number. */
|
|
451
|
+
.card-key {
|
|
452
|
+
flex: none;
|
|
453
|
+
color: var(--dpk-ink-faint);
|
|
454
|
+
font-family: var(--dpk-mono);
|
|
455
|
+
font-size: 10.5px;
|
|
456
|
+
font-weight: 600;
|
|
457
|
+
line-height: 18px;
|
|
458
|
+
font-variant-numeric: tabular-nums;
|
|
459
|
+
white-space: nowrap;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.card-chip {
|
|
463
|
+
display: inline-flex;
|
|
464
|
+
align-items: center;
|
|
465
|
+
gap: 4px;
|
|
466
|
+
min-width: 0;
|
|
467
|
+
padding: 1px 7px;
|
|
468
|
+
border-radius: 6px;
|
|
469
|
+
background: color-mix(in oklab, var(--card-tone) 10%, var(--dpk-paper-sunken));
|
|
470
|
+
color: var(--dpk-ink-soft);
|
|
471
|
+
font-size: 10.5px;
|
|
472
|
+
font-weight: 600;
|
|
473
|
+
line-height: 18px;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.card-chip span {
|
|
477
|
+
overflow: hidden;
|
|
478
|
+
text-overflow: ellipsis;
|
|
479
|
+
white-space: nowrap;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.card-chip[data-kind='comments'],
|
|
483
|
+
.card-chip[data-kind='review'] {
|
|
484
|
+
background: transparent;
|
|
485
|
+
color: var(--dpk-ink-faint);
|
|
486
|
+
font-family: var(--dpk-mono);
|
|
487
|
+
font-variant-numeric: tabular-nums;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/* The counts sit at the right end of the foot, the kept comments first. */
|
|
491
|
+
.card-chip[data-kind='comments'],
|
|
492
|
+
.card-chip:not([data-kind='comments']) + .card-chip[data-kind='review'],
|
|
493
|
+
.card-key + .card-chip[data-kind='review'] {
|
|
494
|
+
margin-left: auto;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/* Review comments ask the agent for a change: they take the accent, like the header's toggle. */
|
|
498
|
+
.card-chip[data-kind='review'] {
|
|
499
|
+
color: var(--dpk-accent);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.card-chip svg {
|
|
503
|
+
flex: none;
|
|
504
|
+
width: 12px;
|
|
505
|
+
height: 12px;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/* The labels the story carries, each in its own color. */
|
|
509
|
+
.card-labels {
|
|
510
|
+
display: flex;
|
|
511
|
+
flex-wrap: wrap;
|
|
512
|
+
gap: 4px;
|
|
513
|
+
min-width: 0;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.label-chip {
|
|
517
|
+
display: inline-flex;
|
|
518
|
+
align-items: center;
|
|
519
|
+
gap: 5px;
|
|
520
|
+
min-width: 0;
|
|
521
|
+
max-width: 100%;
|
|
522
|
+
padding: 0 7px;
|
|
523
|
+
border: 1px solid color-mix(in oklab, var(--usm-tone) 35%, transparent);
|
|
524
|
+
border-radius: 999px;
|
|
525
|
+
background: color-mix(in oklab, var(--usm-tone) 12%, var(--dpk-paper-raised));
|
|
526
|
+
color: var(--dpk-ink);
|
|
527
|
+
font-size: 10.5px;
|
|
528
|
+
font-weight: 600;
|
|
529
|
+
line-height: 17px;
|
|
530
|
+
overflow: hidden;
|
|
531
|
+
text-overflow: ellipsis;
|
|
532
|
+
white-space: nowrap;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.label-chip::before {
|
|
536
|
+
content: '';
|
|
537
|
+
flex: none;
|
|
538
|
+
width: 6px;
|
|
539
|
+
height: 6px;
|
|
540
|
+
border-radius: 50%;
|
|
541
|
+
background: var(--usm-tone);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/*
|
|
545
|
+
* Where the story sits among the others. A story that holds others up is
|
|
546
|
+
* work to pull forward (a spike), so its chip is the loud one; one still
|
|
547
|
+
* waiting reads quieter and goes away once its blockers are done.
|
|
548
|
+
*/
|
|
549
|
+
.card-deps {
|
|
550
|
+
display: flex;
|
|
551
|
+
flex-wrap: wrap;
|
|
552
|
+
gap: 4px;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.dep-chip {
|
|
556
|
+
display: inline-flex;
|
|
557
|
+
align-items: center;
|
|
558
|
+
gap: 4px;
|
|
559
|
+
padding: 0 7px;
|
|
560
|
+
border-radius: 6px;
|
|
561
|
+
font-size: 10.5px;
|
|
562
|
+
font-weight: 650;
|
|
563
|
+
line-height: 18px;
|
|
564
|
+
white-space: nowrap;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.dep-chip svg {
|
|
568
|
+
flex: none;
|
|
569
|
+
width: 12px;
|
|
570
|
+
height: 12px;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.dep-chip[data-kind='blocks'] {
|
|
574
|
+
background: var(--dpk-amber);
|
|
575
|
+
color: var(--dpk-paper-raised);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.dep-chip[data-kind='waits'] {
|
|
579
|
+
border: 1px dashed color-mix(in oklab, var(--dpk-ink-faint) 60%, transparent);
|
|
580
|
+
color: var(--dpk-ink-soft);
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/* With a story open, the cards it waits on and the cards waiting on it stand out. */
|
|
584
|
+
:host([data-relation]) {
|
|
585
|
+
outline: 2px dashed var(--relation-tone);
|
|
586
|
+
outline-offset: 2px;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
:host([data-relation='blocker']) {
|
|
590
|
+
--relation-tone: var(--dpk-amber);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
:host([data-relation='dependent']) {
|
|
594
|
+
--relation-tone: var(--dpk-violet);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.card-links {
|
|
598
|
+
display: flex;
|
|
599
|
+
flex-wrap: wrap;
|
|
600
|
+
gap: 4px;
|
|
601
|
+
min-width: 0;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.card-links .link-chip {
|
|
605
|
+
border-color: color-mix(in oklab, var(--card-tone) 16%, var(--dpk-rule));
|
|
606
|
+
background: var(--dpk-paper-raised);
|
|
607
|
+
}
|
|
608
|
+
`;class fi extends Xe{static{this.styles=[$s,mt,_a,bi]}static{this.properties={story:{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}}}#i=new Ze(this);constructor(){super(),this.story=null,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}render(){const t=this.story;if(!t)return m;const a=ge(this.#i.locale),s=t.comments?.length??0;return l`
|
|
609
|
+
<div class="card-head">
|
|
610
|
+
${this.statuses.length===0?m:this.#e(a,t)}
|
|
611
|
+
<div class="card-name"><span>${t.name}</span></div>
|
|
612
|
+
${this.estimate||this.assignee?this.#a(a):m}
|
|
613
|
+
</div>
|
|
614
|
+
${t.description?l`<div class="card-text" @click=${yi}>${Ss(Es(t.description))}</div>`:m}
|
|
615
|
+
${this.blocks>0||this.waits>0?this.#n(a):m}
|
|
616
|
+
${this.labels.length>0?vi(this.labels):m}
|
|
617
|
+
${t.links&&t.links.length>0?this.#t(t.links):m}
|
|
618
|
+
<div class="card-foot">
|
|
619
|
+
<span class="card-key">${Be(t)}</span>
|
|
620
|
+
${this.stepName===""?m:l`<span class="card-chip" data-kind="step"><span>${this.stepName}</span></span>`}
|
|
621
|
+
${s>0?l`<span class="card-chip" data-kind="comments" aria-label=${a.commentCountAria(s)}>
|
|
622
|
+
${Ts()}<span>${s}</span>
|
|
623
|
+
</span>`:m}
|
|
624
|
+
${this.reviewCount>0?l`<span class="card-chip" data-kind="review" aria-label=${a.reviewCountAria(this.reviewCount)}>
|
|
625
|
+
${xt()}<span>${this.reviewCount}</span>
|
|
626
|
+
</span>`:m}
|
|
627
|
+
</div>
|
|
628
|
+
`}#e(t,a){const s=Ma(this.statuses,a);if(!s)return m;const n=s.name;return l`<span class="card-status" role="img" aria-label=${t.storyStatusAria(n)} title=${n}>
|
|
629
|
+
${re(s)}
|
|
630
|
+
</span>`}#a(t){const{estimate:a,assignee:s}=this;return l`<span class="card-meta">
|
|
631
|
+
${a?l`<span
|
|
632
|
+
class="estimate-chip"
|
|
633
|
+
title=${t.estimateChipTitle(t.estimateText(a.name,a.points))}
|
|
634
|
+
>${a.name}</span
|
|
635
|
+
>`:m}
|
|
636
|
+
${s?l`<span
|
|
637
|
+
class="assignee-avatar"
|
|
638
|
+
style=${M(s.tone)}
|
|
639
|
+
title=${t.assigneeChipTitle(s.name)}
|
|
640
|
+
>${ht(s.name)}</span
|
|
641
|
+
>`:m}
|
|
642
|
+
</span>`}#n(t){return l`<div class="card-deps">
|
|
643
|
+
${this.blocks>0?l`<span class="dep-chip" data-kind="blocks" title=${t.blocksChipTitle(this.blocks)}
|
|
644
|
+
>${mi()}${t.blocksChip(this.blocks)}</span
|
|
645
|
+
>`:m}
|
|
646
|
+
${this.waits>0?l`<span class="dep-chip" data-kind="waits" title=${t.waitsChipTitle(this.waits)}
|
|
647
|
+
>${hi()}${t.waitsChip(this.waits)}</span
|
|
648
|
+
>`:m}
|
|
649
|
+
</div>`}#t(t){const a=t.slice(0,gi);return l`<div class="card-links">
|
|
650
|
+
${a.map(s=>{const n=Ye(s.url);return l`<a
|
|
651
|
+
class="link-chip"
|
|
652
|
+
data-kind=${n.kind}
|
|
653
|
+
href=${s.url}
|
|
654
|
+
target="_blank"
|
|
655
|
+
rel="noopener noreferrer"
|
|
656
|
+
title=${s.label??n.title}
|
|
657
|
+
draggable="false"
|
|
658
|
+
tabindex="-1"
|
|
659
|
+
@click=${i=>i.stopPropagation()}
|
|
660
|
+
>${Aa(n.kind)}<span>${s.label??n.text}</span></a
|
|
661
|
+
>`})}
|
|
662
|
+
${t.length>a.length?l`<span class="link-chip">+${t.length-a.length}</span>`:m}
|
|
663
|
+
</div>`}}const vi=e=>l`<div class="card-labels">
|
|
664
|
+
${e.map(t=>l`<span class="label-chip" data-label=${t.id} style=${M(t.tone)}>${t.name}</span>`)}
|
|
665
|
+
</div>`,yi=e=>{e.target instanceof Element&&e.target.closest("a")&&e.stopPropagation()},ki=()=>{customElements.get("dpk-internal-usm-story-card")||customElements.define("dpk-internal-usm-story-card",fi)},Da=e=>{const t=e.slice(0,-1).map(Ht),a=t.reduce((n,i)=>n+i,0),s=t.map(n=>a>0?n/a*ae:ae/t.length);return s.slice(0,-1).map((n,i)=>s.slice(0,i+1).reduce((r,o)=>r+o,0))},Ra=(e,t,a)=>{if(t<0||t>=e.length)return e;const s=e[t-1]??0,n=e[t+1]??ae;return e.map((i,r)=>r===t?Math.min(n,Math.max(s,Math.round(a))):i)},Fe=e=>[...e,ae].map((t,a)=>t-(e[a-1]??0)),wi=(e,t)=>{const a=Fe(t.map(s=>Math.round(s)));return e.slice(0,-1).flatMap((s,n)=>{const i=a[n]??0;return s.weight===i?[]:[{statusId:s.id,weight:i}]})},xi=q`
|
|
666
|
+
:host {
|
|
667
|
+
display: block;
|
|
668
|
+
}
|
|
669
|
+
.wb {
|
|
670
|
+
display: grid;
|
|
671
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
672
|
+
column-gap: 10px;
|
|
673
|
+
row-gap: 4px;
|
|
674
|
+
align-items: center;
|
|
675
|
+
}
|
|
676
|
+
.wb-track {
|
|
677
|
+
position: relative;
|
|
678
|
+
height: 36px;
|
|
679
|
+
border-radius: var(--dpk-radius-sm);
|
|
680
|
+
background: var(--dpk-paper-sunken);
|
|
681
|
+
touch-action: none;
|
|
682
|
+
}
|
|
683
|
+
.wb-part {
|
|
684
|
+
position: absolute;
|
|
685
|
+
top: 0;
|
|
686
|
+
bottom: 0;
|
|
687
|
+
display: flex;
|
|
688
|
+
align-items: center;
|
|
689
|
+
gap: 6px;
|
|
690
|
+
min-width: 0;
|
|
691
|
+
padding: 0 10px;
|
|
692
|
+
overflow: hidden;
|
|
693
|
+
background: color-mix(in oklab, var(--usm-tone) 16%, var(--dpk-paper-raised));
|
|
694
|
+
color: var(--dpk-ink);
|
|
695
|
+
font-size: 12px;
|
|
696
|
+
font-weight: 600;
|
|
697
|
+
white-space: nowrap;
|
|
698
|
+
transition:
|
|
699
|
+
left 120ms ease-out,
|
|
700
|
+
width 120ms ease-out;
|
|
701
|
+
}
|
|
702
|
+
.wb-track[data-dragging] .wb-part {
|
|
703
|
+
transition: none;
|
|
704
|
+
}
|
|
705
|
+
.wb-parts {
|
|
706
|
+
position: absolute;
|
|
707
|
+
inset: 0;
|
|
708
|
+
overflow: hidden;
|
|
709
|
+
border-radius: inherit;
|
|
710
|
+
}
|
|
711
|
+
.wb-name {
|
|
712
|
+
min-width: 0;
|
|
713
|
+
overflow: hidden;
|
|
714
|
+
text-overflow: ellipsis;
|
|
715
|
+
}
|
|
716
|
+
.wb-value {
|
|
717
|
+
flex: none;
|
|
718
|
+
color: var(--usm-tone);
|
|
719
|
+
font-family: var(--dpk-mono);
|
|
720
|
+
font-variant-numeric: tabular-nums;
|
|
721
|
+
}
|
|
722
|
+
.wb-line {
|
|
723
|
+
position: absolute;
|
|
724
|
+
top: -4px;
|
|
725
|
+
bottom: -4px;
|
|
726
|
+
z-index: 1;
|
|
727
|
+
width: 14px;
|
|
728
|
+
margin-left: -7px;
|
|
729
|
+
border-radius: var(--dpk-radius-sm);
|
|
730
|
+
outline: none;
|
|
731
|
+
cursor: col-resize;
|
|
732
|
+
}
|
|
733
|
+
.wb-line::before {
|
|
734
|
+
content: '';
|
|
735
|
+
position: absolute;
|
|
736
|
+
top: 0;
|
|
737
|
+
bottom: 0;
|
|
738
|
+
left: 6px;
|
|
739
|
+
width: 2px;
|
|
740
|
+
border-radius: 1px;
|
|
741
|
+
background: var(--dpk-ink-soft);
|
|
742
|
+
transition: background 120ms ease-out;
|
|
743
|
+
}
|
|
744
|
+
/* The grip says the line can be taken hold of. */
|
|
745
|
+
.wb-line::after {
|
|
746
|
+
content: '';
|
|
747
|
+
position: absolute;
|
|
748
|
+
top: 50%;
|
|
749
|
+
left: 2px;
|
|
750
|
+
width: 10px;
|
|
751
|
+
height: 20px;
|
|
752
|
+
margin-top: -10px;
|
|
753
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
754
|
+
border-radius: 5px;
|
|
755
|
+
background: var(--dpk-paper-raised);
|
|
756
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
757
|
+
transition: border-color 120ms ease-out;
|
|
758
|
+
}
|
|
759
|
+
.wb-line:hover::before,
|
|
760
|
+
.wb-line[data-active]::before {
|
|
761
|
+
background: var(--dpk-ink);
|
|
762
|
+
}
|
|
763
|
+
.wb-line:hover::after,
|
|
764
|
+
.wb-line[data-active]::after {
|
|
765
|
+
border-color: var(--dpk-ink-soft);
|
|
766
|
+
}
|
|
767
|
+
.wb-line:focus-visible {
|
|
768
|
+
box-shadow: var(--dpk-focus);
|
|
769
|
+
}
|
|
770
|
+
.wb-end {
|
|
771
|
+
display: flex;
|
|
772
|
+
align-items: center;
|
|
773
|
+
gap: 6px;
|
|
774
|
+
color: var(--dpk-ink-faint);
|
|
775
|
+
font-size: 12px;
|
|
776
|
+
font-weight: 600;
|
|
777
|
+
white-space: nowrap;
|
|
778
|
+
}
|
|
779
|
+
.wb-scale {
|
|
780
|
+
position: relative;
|
|
781
|
+
height: 12px;
|
|
782
|
+
color: var(--dpk-ink-faint);
|
|
783
|
+
font-family: var(--dpk-mono);
|
|
784
|
+
font-size: 10px;
|
|
785
|
+
}
|
|
786
|
+
.wb-tick {
|
|
787
|
+
position: absolute;
|
|
788
|
+
top: 0;
|
|
789
|
+
width: 1px;
|
|
790
|
+
height: 3px;
|
|
791
|
+
background: var(--dpk-rule-strong);
|
|
792
|
+
}
|
|
793
|
+
.wb-scale-end {
|
|
794
|
+
position: absolute;
|
|
795
|
+
top: 0;
|
|
796
|
+
line-height: 12px;
|
|
797
|
+
}
|
|
798
|
+
.wb-scale-end[data-at='0'] {
|
|
799
|
+
left: 0;
|
|
800
|
+
}
|
|
801
|
+
.wb-scale-end[data-at='max'] {
|
|
802
|
+
right: 0;
|
|
803
|
+
}
|
|
804
|
+
@media (prefers-reduced-motion: reduce) {
|
|
805
|
+
.wb-part,
|
|
806
|
+
.wb-line::before,
|
|
807
|
+
.wb-line::after {
|
|
808
|
+
transition: none;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
`;class $i extends Xe{static{this.styles=[mt,xi]}static{this.properties={statuses:{attribute:!1},dividers:{attribute:!1},commit:{attribute:!1},drag:{state:!0}}}#i=new Ze(this);constructor(){super(),this.statuses=[],this.dividers=[],this.commit=()=>{},this.drag=null}disconnectedCallback(){super.disconnectedCallback(),this.#d()}render(){const t=ge(this.#i.locale),a=this.statuses.slice(0,-1),s=this.statuses.at(-1);if(!s||a.length===0)return m;const n=this.drag?.dividers??this.dividers,i=Fe(n),r=o=>`${o/ae*100}%`;return l`<div class="wb">
|
|
812
|
+
<div class="wb-track" role="group" aria-label=${t.statusWeightLabel} ?data-dragging=${this.drag!==null}>
|
|
813
|
+
<div class="wb-parts">
|
|
814
|
+
${a.map((o,d)=>{const p=n[d-1]??0,u=i[d]??0;return l`<span
|
|
815
|
+
class="wb-part"
|
|
816
|
+
data-part=${o.id}
|
|
817
|
+
title=${`${o.name} ${Ge(u)}`}
|
|
818
|
+
style=${`${M(o.tone)}; left: ${r(p)}; width: ${r(u)}`}
|
|
819
|
+
>
|
|
820
|
+
<span class="wb-name">${o.name}</span><span class="wb-value">${Ge(u)}</span>
|
|
821
|
+
</span>`})}
|
|
822
|
+
</div>
|
|
823
|
+
${n.map((o,d)=>this.#e(t,a,n,d,r(o)))}
|
|
824
|
+
</div>
|
|
825
|
+
<span class="wb-end" data-end style=${M(s.tone)}>${re(s)}${s.name}</span>
|
|
826
|
+
<div class="wb-scale" aria-hidden="true">
|
|
827
|
+
${Array.from({length:ae-1},(o,d)=>l`<span class="wb-tick" style=${`left: ${r(d+1)}`}></span>`)}
|
|
828
|
+
<span class="wb-scale-end" data-at="0">0</span>
|
|
829
|
+
<span class="wb-scale-end" data-at="max">${ae}</span>
|
|
830
|
+
</div>
|
|
831
|
+
</div>`}#e(t,a,s,n,i){const r=a[n]?.name??"",o=a[n+1]?.name??"",d=Fe(s),p=s[n]??0;return l`<span
|
|
832
|
+
class="wb-line"
|
|
833
|
+
role="slider"
|
|
834
|
+
tabindex="0"
|
|
835
|
+
style=${`left: ${i}`}
|
|
836
|
+
aria-label=${t.weightLineLabel(r,o)}
|
|
837
|
+
aria-valuemin=${String(s[n-1]??0)}
|
|
838
|
+
aria-valuemax=${String(s[n+1]??ae)}
|
|
839
|
+
aria-valuenow=${String(p)}
|
|
840
|
+
aria-valuetext=${t.weightLineValue(r,Ge(d[n]??0),o,Ge(d[n+1]??0))}
|
|
841
|
+
?data-active=${this.drag?.index===n}
|
|
842
|
+
@keydown=${u=>this.#a(u,n)}
|
|
843
|
+
@pointerdown=${u=>this.#n(u,n)}
|
|
844
|
+
></span>`}#a(t,a){const s=this.dividers[a]??0,n=(()=>{switch(t.key){case"ArrowLeft":case"ArrowDown":return s-1;case"ArrowRight":case"ArrowUp":return s+1;case"Home":return 0;case"End":return ae;default:return null}})();n!==null&&(t.preventDefault(),this.#o(Ra(this.dividers,a,n)))}#n(t,a){t.button===0&&(t.preventDefault(),t.currentTarget instanceof HTMLElement&&t.currentTarget.focus({preventScroll:!0}),this.drag={index:a,dividers:this.dividers},document.addEventListener("pointermove",this.#t),document.addEventListener("pointerup",this.#s),document.addEventListener("pointercancel",this.#r))}#t=t=>{const a=this.renderRoot.querySelector(".wb-track")?.getBoundingClientRect();if(!this.drag||!a||a.width===0)return;const s=(t.clientX-a.left)/a.width*ae;this.drag={...this.drag,dividers:Ra(this.drag.dividers,this.drag.index,s)}};#s=()=>{const t=this.drag?.dividers;this.#d(),t&&this.#o(t)};#r=()=>this.#d();#d(){this.drag=null,document.removeEventListener("pointermove",this.#t),document.removeEventListener("pointerup",this.#s),document.removeEventListener("pointercancel",this.#r)}#o(t){t.some((a,s)=>a!==this.dividers[s])&&this.commit(t)}}const Ge=e=>String(Math.round(e*10)/10),Si=()=>{customElements.get("dpk-internal-usm-weight-bar")||customElements.define("dpk-internal-usm-weight-bar",$i)},Ei=(e,t,a)=>{const s=e.at(-1)??null;if(t===null||a==="end")return s;const n=e.indexOf(t);return n<0?s:a==="after"?t:n===0?null:e.at(n-1)??null},Oa=(e,t,a,s,n)=>{const i=Ne(e,t.stepId,t.milestoneId).map(r=>r.id);return{type:"MOVE_STORY",target:{type:"story",id:a},payload:{activityId:t.activityId,stepId:t.stepId,milestoneId:t.milestoneId??null,after:xe(i,a,s,n)}}},Na=(e,t,a,s,n,i)=>{const r=E(e,s);if(!r||r.activityId!==t)return null;const o=Yt(e,t,a).map(d=>d.id);return{type:"MOVE_STORY",target:{type:"story",id:s},payload:{activityId:t,stepId:r.stepId,milestoneId:a??null,after:xe(o,s,n,i)}}},Ca=(e,t,a,s,n)=>{const i=Ne(e,s,n).filter(r=>r.id!==t);return{type:"MOVE_STORY",target:{type:"story",id:t},payload:{activityId:a,stepId:s,milestoneId:n??null,after:i.at(-1)?.id??null}}},Ba=(e,t,a,s)=>e.includes(t)?{type:"REORDER_MILESTONE",target:{type:"milestone",id:t},payload:{after:xe(e,t,a,s)}}:null,Ti=(e,t,a,s)=>e.includes(t)?{type:"REORDER_ACTIVITY",target:{type:"activity",id:t},payload:{after:xe(e,t,a,s)}}:null,Ai=(e,t,a,s)=>{const n=L(e,t);if(!n)return null;const i=a===null?void 0:L(e,a);if(a!==null&&i?.activity.id!==n.activity.id)return null;const r=n.activity.id,o=n.activity.steps.map(u=>te(r,u.id)),d=te(r,n.step.id),p=i?te(r,i.step.id):null;return{type:"REORDER_STEP",target:{type:"step",id:d},payload:{after:xe(o,d,p,s)}}},_i=e=>{const t=e.stories.length;return{rows:e.labels.map((s,n)=>{const i=e.stories.filter(r=>r.labelIds?.includes(s.id)).length;return{id:s.id,name:s.name,tone:s.tone,previousId:e.labels[n-1]?.id??null,nextId:e.labels[n+1]?.id??null,storyCount:i,share:t===0?0:i/t}})}},Ii=e=>{const t=e.stories.length;return{rows:e.members.map((s,n)=>{const i=e.stories.filter(r=>r.assigneeId===s.id).length;return{id:s.id,name:s.name,tone:s.tone,previousId:e.members[n-1]?.id??null,nextId:e.members[n+1]?.id??null,storyCount:i,share:t===0?0:i/t}})}},Mi=e=>{const t=e.stories.length,a=Oe(e);return e.milestones.map((s,n)=>{const i=e.stories.filter(o=>o.milestoneId===s.id),r=new Set(i.map(o=>o.stepId));return{id:s.id,ordinal:n+1,name:s.name,timeframe:s.timeframe?.trim()??"",description:s.description?.trim()??"",storyCount:i.length,share:t===0?0:i.length/t,coverage:{covered:a.filter(({step:o})=>r.has(o.id)).length,total:a.length},progress:La(e,i)}})},Ya=(e,t)=>{const a=Math.max(e.left,t.left),s=Math.max(e.top,t.top),n=Math.min(e.left+e.width,t.left+t.width),i=Math.min(e.top+e.height,t.top+t.height);return n>a&&i>s?{left:a,top:s,width:n-a,height:i-s}:null},Li=(e,t)=>{const a=t.flatMap(d=>{const p=Ya(e,d);return p?[p]:[]});if(!a[0])return null;const n=Math.min(...a.map(d=>d.left)),i=Math.min(...a.map(d=>d.top)),r=Math.max(...a.map(d=>d.left+d.width)),o=Math.max(...a.map(d=>d.top+d.height));return{box:{left:n,top:i,width:r-n,height:o-i},parts:t.map(d=>Ya(e,d)?{left:d.left-n,top:d.top-i,width:d.width,height:d.height}:null)}},Di=(e,t,a)=>{const s=e.dataTransfer;if(!s)return;const n=Li(a.getBoundingClientRect(),t.map(d=>d.getBoundingClientRect()));if(!n)return;const{box:i}=n,r=document.createElement("div");r.style.cssText=["position: fixed",`left: ${i.left}px`,`top: ${i.top}px`,`width: ${i.width}px`,`height: ${i.height}px`,"overflow: hidden","pointer-events: none","z-index: 2147483647",`background: ${getComputedStyle(a).backgroundColor}`].join("; ");for(const[d,p]of t.entries()){const u=n.parts[d],f=He(p);!u||!(f instanceof HTMLElement)||(f.style.position="absolute",f.style.left=`${u.left}px`,f.style.top=`${u.top}px`,f.style.width=`${u.width}px`,f.style.height=`${u.height}px`,f.style.margin="0",f.style.boxSizing="border-box",r.append(f))}const o=a.getRootNode();(o instanceof ShadowRoot?o:document.body).append(r),s.setDragImage(r,e.clientX-i.left,e.clientY-i.top),setTimeout(()=>r.remove(),0)},He=e=>{if(e instanceof Element&&e.shadowRoot)return Ri(e,e.shadowRoot);const t=e.cloneNode(!1);t instanceof Element&&t.removeAttribute("id");for(const a of e.childNodes)t.appendChild(He(a));return t},Ri=(e,t)=>{const a=document.createElement("span");for(const r of e.attributes)r.name!=="id"&&a.setAttribute(r.name,r.value);const s=getComputedStyle(e),n=e.getBoundingClientRect();a.style.display=s.display==="inline"?"inline-block":s.display,a.style.width=`${n.width}px`,a.style.height=`${n.height}px`,a.style.boxSizing="border-box",a.style.flex="none",a.style.verticalAlign=s.verticalAlign;const i=a.attachShadow({mode:"open"});"adoptedStyleSheets"in t&&(i.adoptedStyleSheets=t.adoptedStyleSheets);for(const r of t.childNodes)i.appendChild(He(r));for(const r of e.childNodes)a.appendChild(He(r));return a},Ua=(e,t)=>{const a=X("new-activity",W(t.state));if(!t.dispatch({type:"ADD_ACTIVITY",target:{type:"page",id:"usm"},payload:{id:a,name:e.newActivityName}}).ok)return;const n=X("new-step",[...W(t.state),a]);t.dispatch({type:"ADD_STEP",target:{type:"activity",id:a},payload:{id:n,name:e.newStepName}}),t.navigate({activity:a,step:null,story:null})},Oi=(e,t,a)=>{const s=X("new-step",W(t.state));t.dispatch({type:"ADD_STEP",target:{type:"activity",id:a},payload:{id:s,name:e.newStepName}})},za=(e,t)=>{const a=X("new-milestone",W(t.state));t.dispatch({type:"ADD_MILESTONE",target:{type:"page",id:"usm"},payload:{id:a,name:e.newMilestoneName}})},Pa=(e,t,a,s,n)=>{const i=X("new-story",W(t.state));t.dispatch({type:"ADD_STORY",target:{type:"step",id:s},payload:{id:i,name:e.newStoryName,activityId:a,...n===void 0?{}:{milestoneId:n},number:jt(t.base,t.state)}}).ok&&t.navigate({activity:a,step:s,story:i})},Ni=(e,t)=>{const a=X("new-status",W(t.state));t.dispatch({type:"ADD_STATUS",target:{type:"page",id:"usm"},payload:{id:a,name:e.newStatusName,tone:rt(t.state.statuses.length)}})},Ci=(e,t)=>{const a=X("new-label",W(t.state));t.dispatch({type:"ADD_LABEL",target:{type:"page",id:"usm"},payload:{id:a,name:e.newLabelName,tone:De(t.state.labels.length)}})},Bi=(e,t)=>{const a=X("new-member",W(t.state));t.dispatch({type:"ADD_MEMBER",target:{type:"page",id:"usm"},payload:{id:a,name:e.newMemberName,tone:De(t.state.members.length)}})},Yi=(e,t)=>{const a=X("new-estimate",W(t.state)),s=Math.max(0,...t.state.estimates.map(n=>n.points))+1;t.dispatch({type:"ADD_ESTIMATE",target:{type:"page",id:"usm"},payload:{id:a,name:e.newEstimateName,points:s}})},Ui=(e,t)=>{const a=X(`snapshot-${t.toISOString().slice(0,10)}`,W(e.state));e.dispatch({type:"RECORD_SNAPSHOT",target:{type:"page",id:"usm"},payload:{id:a,at:t.toISOString(),tally:qt(e.state)}})},Fa=(e,t)=>{const a=s=>t.stories.filter(n=>n.milestoneId===s).length;return[...t.milestones.map(({id:s,name:n,timeframe:i})=>({id:s,name:n,timeframe:i?.trim()??"",storyCount:a(s)})),{id:void 0,name:e.unassigned,timeframe:"",storyCount:a(void 0)}]},zi=(e,t)=>l`
|
|
845
|
+
<div class="empty">
|
|
846
|
+
<h2>${e.emptyTitle}</h2>
|
|
847
|
+
<p>${e.emptyBody}</p>
|
|
848
|
+
<button class="dpk-btn dpk-btn--accent" type="button" @click=${()=>Ua(e,t)}>
|
|
849
|
+
${e.firstActivityButton}
|
|
850
|
+
</button>
|
|
851
|
+
</div>
|
|
852
|
+
`,Pi=e=>{const{m:t,context:a}=e,s=Oe(a.state);return s.length===0?zi(t,a):Ga(a)==="activity"?Gi(e,s):Hi(e)},Ga=e=>e.navigation.view==="group"?"group":"activity",Fi=(e,t)=>{const a=Ga(t);return l`<div class="segmented view-tabs" role="tablist" aria-label=${e.groupingLabel}>
|
|
853
|
+
${Ha(t,"activity",a,e.activityGroup)}
|
|
854
|
+
${Ha(t,"group",a,e.groupViewTab)}
|
|
855
|
+
</div>`},Ha=(e,t,a,s)=>{const n=t===a;return l`<a
|
|
856
|
+
class="tab"
|
|
857
|
+
role="tab"
|
|
858
|
+
data-current=${String(n)}
|
|
859
|
+
aria-selected=${n?"true":"false"}
|
|
860
|
+
href=${e.hashFor({view:t})}
|
|
861
|
+
>${s}</a
|
|
862
|
+
>`},Gi=(e,t)=>{const{m:a,context:s}=e,{state:n}=s,i=Fa(a,n);return l`
|
|
863
|
+
<div class="map-scroll">
|
|
864
|
+
<div class="map" style=${`--cols:${t.length+1}`} data-testid="usm-map">
|
|
865
|
+
<div class="map-head">
|
|
866
|
+
<div class="map-row">
|
|
867
|
+
<div class="corner">
|
|
868
|
+
<span class="dpk-label">${a.groupAxisHeader}</span>
|
|
869
|
+
</div>
|
|
870
|
+
${Y(n.activities,r=>r.id,r=>Ka(e,r.id,`grid-column: span ${Math.max(r.steps.length,1)}`))}
|
|
871
|
+
${Wa(a,s)}
|
|
872
|
+
</div>
|
|
873
|
+
<div class="map-row">
|
|
874
|
+
${Va(a)}
|
|
875
|
+
${Y(t,({activity:r,step:o})=>`${r.id}.${o.id}`,({activity:r,step:o})=>Vi(e,r.id,o))}
|
|
876
|
+
<div class="corner"><span class="dpk-label">—</span></div>
|
|
877
|
+
</div>
|
|
878
|
+
</div>
|
|
879
|
+
${Y(i,r=>r.id,r=>Xa(e,r,l`${Y(t,({activity:o,step:d})=>`${o.id}.${d.id}`,({activity:o,step:d})=>qi(e,{activityId:o.id,stepId:d.id,milestoneId:r.id}))}`))}
|
|
880
|
+
${ja(a,s,t.length)}
|
|
881
|
+
</div>
|
|
882
|
+
</div>
|
|
883
|
+
`},Hi=e=>{const{m:t,context:a}=e,{state:s}=a,n=Fa(t,s);return l`
|
|
884
|
+
<div class="map-scroll">
|
|
885
|
+
<div class="map" style=${`--cols:${s.activities.length+1}`} data-testid="usm-map-group">
|
|
886
|
+
<div class="map-head">
|
|
887
|
+
<div class="map-row">
|
|
888
|
+
${Va(t)}
|
|
889
|
+
${Y(s.activities,i=>i.id,i=>Ka(e,i.id,void 0,!0))}
|
|
890
|
+
${Wa(t,a)}
|
|
891
|
+
</div>
|
|
892
|
+
</div>
|
|
893
|
+
${Y(n,i=>i.id,i=>Xa(e,i,l`${Y(s.activities,r=>r.id,r=>Wi(e,r.id,i.id))}`))}
|
|
894
|
+
${ja(t,a,s.activities.length)}
|
|
895
|
+
</div>
|
|
896
|
+
</div>
|
|
897
|
+
`},Va=e=>l`<div class="corner">
|
|
898
|
+
<span class="dpk-label">${e.activityAxis}</span>
|
|
899
|
+
<span class="dpk-label">${e.milestoneAxis}</span>
|
|
900
|
+
</div>`,Ka=(e,t,a,s=!1)=>{const{m:n,context:i,drag:r}=e,{state:o}=i,d=o.activities.find(v=>v.id===t);if(!d)return l`<div class="act-head"></div>`;const p=o.stories.filter(v=>v.activityId===d.id),u=La(o,p),f=r.combine("activity",Ve(e,d.id)),x=r.source({type:"activity",id:d.id});return l`
|
|
901
|
+
<div
|
|
902
|
+
class="act-head"
|
|
903
|
+
style=${a??""}
|
|
904
|
+
data-activity=${d.id}
|
|
905
|
+
data-column=${d.id}
|
|
906
|
+
data-dpk-target=${_({type:"activity",id:d.id})}
|
|
907
|
+
draggable="true"
|
|
908
|
+
data-col-dragging=${String(r.isDragging("activity",d.id))}
|
|
909
|
+
data-col-drop=${Ke(r,d.id)}
|
|
910
|
+
@dragstart=${v=>{ts(v,d.id),x.dragstart(v)}}
|
|
911
|
+
@dragend=${x.dragend}
|
|
912
|
+
@dragenter=${f.dragenter}
|
|
913
|
+
@dragover=${f.dragover}
|
|
914
|
+
@dragleave=${f.dragleave}
|
|
915
|
+
@drop=${f.drop}
|
|
916
|
+
>
|
|
917
|
+
<div class="act-title">
|
|
918
|
+
<span class="col-grip" aria-hidden="true">${Je()}</span>
|
|
919
|
+
<span class="act-name">
|
|
920
|
+
<dpk-component-inline-edit
|
|
921
|
+
draggable="false"
|
|
922
|
+
.value=${d.name}
|
|
923
|
+
.label=${n.activityNameLabel}
|
|
924
|
+
@dpk-commit=${Z(v=>i.dispatch({type:"SET_ACTIVITY_NAME",target:{type:"activity",id:d.id},payload:{name:v}}))}
|
|
925
|
+
></dpk-component-inline-edit>
|
|
926
|
+
<span class="act-actor" data-empty=${String(d.actor===void 0)}>
|
|
927
|
+
<dpk-component-inline-edit
|
|
928
|
+
draggable="false"
|
|
929
|
+
truncate
|
|
930
|
+
.value=${d.actor??""}
|
|
931
|
+
.label=${n.activityActorLabel}
|
|
932
|
+
.placeholder=${n.activityActorLabel}
|
|
933
|
+
@dpk-commit=${Z(v=>i.dispatch({type:"SET_ACTIVITY_ACTOR",target:{type:"activity",id:d.id},payload:{actor:v}}))}
|
|
934
|
+
></dpk-component-inline-edit>
|
|
935
|
+
</span>
|
|
936
|
+
</span>
|
|
937
|
+
<span class="count">${p.length}</span>
|
|
938
|
+
<button
|
|
939
|
+
class="dpk-icon-btn"
|
|
940
|
+
type="button"
|
|
941
|
+
aria-label=${n.addStepAria}
|
|
942
|
+
@click=${()=>Oi(n,i,d.id)}
|
|
943
|
+
>
|
|
944
|
+
${As()}
|
|
945
|
+
</button>
|
|
946
|
+
</div>
|
|
947
|
+
${Ta(u,n.progressAria(u.map(v=>`${v.name} ${v.count}`).join(", ")))}
|
|
948
|
+
${s&&d.steps.length>0?l`<ol class="act-steps">
|
|
949
|
+
${d.steps.map(v=>l`<li>${v.name}</li>`)}
|
|
950
|
+
</ol>`:m}
|
|
951
|
+
</div>
|
|
952
|
+
`},Vi=(e,t,a)=>{const{m:s,context:n,drag:i}=e,r=te(t,a.id),o=i.combine("step",Ve(e,t,a.id)),d=i.source({type:"step",id:r});return l`
|
|
953
|
+
<div
|
|
954
|
+
class="col-head"
|
|
955
|
+
data-step=${r}
|
|
956
|
+
data-column=${t}
|
|
957
|
+
data-column-step=${a.id}
|
|
958
|
+
data-current=${String(n.navigation.step===a.id)}
|
|
959
|
+
data-dpk-target=${_({type:"step",id:r})}
|
|
960
|
+
draggable="true"
|
|
961
|
+
data-col-dragging=${String(gt(i,t,a.id))}
|
|
962
|
+
data-col-drop=${Ke(i,t,a.id)}
|
|
963
|
+
data-step-edge=${qa(n.state,t,a.id)}
|
|
964
|
+
@dragstart=${p=>{ts(p,t,a.id),d.dragstart(p)}}
|
|
965
|
+
@dragend=${d.dragend}
|
|
966
|
+
@dragenter=${o.dragenter}
|
|
967
|
+
@dragover=${o.dragover}
|
|
968
|
+
@dragleave=${o.dragleave}
|
|
969
|
+
@drop=${o.drop}
|
|
970
|
+
>
|
|
971
|
+
<span class="col-grip" aria-hidden="true">${Je()}</span>
|
|
972
|
+
<h4>
|
|
973
|
+
<dpk-component-inline-edit
|
|
974
|
+
draggable="false"
|
|
975
|
+
.value=${a.name}
|
|
976
|
+
.label=${s.stepNameLabel}
|
|
977
|
+
@dpk-commit=${Z(p=>n.dispatch({type:"SET_STEP_NAME",target:{type:"step",id:a.id},payload:{name:p}}))}
|
|
978
|
+
@click=${p=>p.stopPropagation()}
|
|
979
|
+
></dpk-component-inline-edit>
|
|
980
|
+
</h4>
|
|
981
|
+
<span class="count">${Ut(n.state,a.id)}</span>
|
|
982
|
+
</div>
|
|
983
|
+
`},Ve=(e,t,a)=>{const{context:s,drag:n,handlers:i}=e,r=n.target({key:`activity:${t}`,accepts:"activity",hovered:es(t),onDrop:f=>i.dropOnActivity(f)});if(a===void 0)return[["activity",r]];const o=n.item;if(o?.type==="step"&&L(s.state,o.id)?.activity.id!==t)return[["activity",r]];const p=te(t,a),u=n.target({key:`step:${p}`,accepts:"step",hovered:es(p),onDrop:f=>i.dropOnStep(f)});return[["activity",r],["step",u]]},Ke=(e,t,a)=>e.isOver(`activity:${t}`)?"activity":a!==void 0&&e.isOver(`step:${te(t,a)}`)?"step":"none",qa=(e,t,a)=>{const s=e.activities.find(n=>n.id===t)?.steps??[];return[s[0]?.id===a?"first":"",s.at(-1)?.id===a?"last":""].filter(n=>n!=="").join(" ")},gt=(e,t,a)=>e.isDragging("activity",t)||a!==void 0&&e.isDragging("step",te(t,a)),Wa=(e,t)=>l`<div class="act-head">
|
|
984
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Ua(e,t)}>
|
|
985
|
+
${e.newActivityButton}
|
|
986
|
+
</button>
|
|
987
|
+
</div>`,ja=(e,t,a)=>l`<div class="map-row">
|
|
988
|
+
<div class="row-lead">
|
|
989
|
+
<div class="row-head">
|
|
990
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>za(e,t)}>
|
|
991
|
+
${e.newMilestoneButton}
|
|
992
|
+
</button>
|
|
993
|
+
</div>
|
|
994
|
+
</div>
|
|
995
|
+
${Array.from({length:a+1},()=>l`<div class="cell"></div>`)}
|
|
996
|
+
</div>`,Xa=(e,t,a)=>{const{m:s,context:n,drag:i,handlers:r}=e,o=t.id;if(o===void 0)return l`<div
|
|
997
|
+
class="map-row"
|
|
998
|
+
data-unassigned="true"
|
|
999
|
+
data-draggable="false"
|
|
1000
|
+
data-row-dragging="false"
|
|
1001
|
+
data-row-drop="false"
|
|
1002
|
+
>
|
|
1003
|
+
<div class="row-lead">
|
|
1004
|
+
<div class="row-head" data-milestone="" draggable="false"><span>${t.name}</span></div>
|
|
1005
|
+
${Za(s,t)}
|
|
1006
|
+
</div>
|
|
1007
|
+
${a}
|
|
1008
|
+
<div class="cell"></div>
|
|
1009
|
+
</div>`;const d=Ki(s,n,o,t.name),p=`row:${o}`,u=i.target({key:p,accepts:"milestone",hovered:Ji,onDrop:x=>r.dropOnMilestoneRow(o,x)}),f=i.source({type:"milestone",id:o});return l`
|
|
1010
|
+
<div
|
|
1011
|
+
class="map-row"
|
|
1012
|
+
data-draggable="true"
|
|
1013
|
+
data-row-dragging=${String(i.isDragging("milestone",o))}
|
|
1014
|
+
data-row-drop=${String(i.isOver(p))}
|
|
1015
|
+
@dragenter=${u.dragenter}
|
|
1016
|
+
@dragover=${u.dragover}
|
|
1017
|
+
@dragleave=${u.dragleave}
|
|
1018
|
+
@drop=${u.drop}
|
|
1019
|
+
>
|
|
1020
|
+
<div class="row-lead">
|
|
1021
|
+
<div
|
|
1022
|
+
class="row-head"
|
|
1023
|
+
data-milestone=${o}
|
|
1024
|
+
data-dpk-target=${_({type:"milestone",id:o})}
|
|
1025
|
+
draggable="true"
|
|
1026
|
+
@dragstart=${x=>{Zi(x),f.dragstart(x)}}
|
|
1027
|
+
@dragend=${f.dragend}
|
|
1028
|
+
>
|
|
1029
|
+
<span class="row-grip" aria-hidden="true">${Je()}</span>${d}
|
|
1030
|
+
</div>
|
|
1031
|
+
${Za(s,t)}
|
|
1032
|
+
</div>
|
|
1033
|
+
${a}
|
|
1034
|
+
<div class="cell"></div>
|
|
1035
|
+
</div>
|
|
1036
|
+
`},Za=(e,t)=>l`<div class="row-meta">
|
|
1037
|
+
${t.timeframe===""?m:l`<span class="row-timeframe">${t.timeframe}</span>`}
|
|
1038
|
+
<span class="row-count">${e.storyCount(t.storyCount)}</span>
|
|
1039
|
+
</div>`,Ki=(e,t,a,s)=>l`<dpk-component-inline-edit
|
|
1040
|
+
draggable="false"
|
|
1041
|
+
.value=${s}
|
|
1042
|
+
.label=${e.milestoneNameLabel}
|
|
1043
|
+
@dpk-commit=${Z(n=>t.dispatch({type:"SET_MILESTONE_NAME",target:{type:"milestone",id:a},payload:{name:n}}))}
|
|
1044
|
+
></dpk-component-inline-edit>`,qi=(e,t)=>{const{m:a,context:s,drag:n,handlers:i}=e,r=ze(s.state,s.navigation),o=Ne(s.state,t.stepId,t.milestoneId).filter(u=>ca(r,u)),d=`cell:${t.stepId}:${t.milestoneId??""}`,p=n.combine("story",[["story",n.target({key:d,accepts:"story",hovered:Qa,onDrop:u=>i.dropOnCell(t,u)})],...Ve(e,t.activityId,t.stepId)]);return l`
|
|
1045
|
+
<div
|
|
1046
|
+
class="cell"
|
|
1047
|
+
data-step=${t.stepId}
|
|
1048
|
+
data-milestone=${t.milestoneId??""}
|
|
1049
|
+
data-column=${t.activityId}
|
|
1050
|
+
data-column-step=${t.stepId}
|
|
1051
|
+
data-drop=${String(n.isOver(d))}
|
|
1052
|
+
data-col-dragging=${String(gt(n,t.activityId,t.stepId))}
|
|
1053
|
+
data-col-drop=${Ke(n,t.activityId,t.stepId)}
|
|
1054
|
+
data-step-edge=${qa(s.state,t.activityId,t.stepId)}
|
|
1055
|
+
@dragenter=${p.dragenter}
|
|
1056
|
+
@dragover=${p.dragover}
|
|
1057
|
+
@dragleave=${p.dragleave}
|
|
1058
|
+
@drop=${p.drop}
|
|
1059
|
+
>
|
|
1060
|
+
<div class="card-list" data-testid=${`cell-${t.stepId}-${t.milestoneId??"unassigned"}`}>
|
|
1061
|
+
${Y(o,u=>u.id,u=>Ja(e,u,""))}
|
|
1062
|
+
</div>
|
|
1063
|
+
<button
|
|
1064
|
+
class="dpk-btn dpk-btn--ghost add-cell"
|
|
1065
|
+
type="button"
|
|
1066
|
+
title=${a.addStoryCellAria}
|
|
1067
|
+
@click=${()=>Pa(a,s,t.activityId,t.stepId,t.milestoneId)}
|
|
1068
|
+
>
|
|
1069
|
+
${a.addCellButton}
|
|
1070
|
+
</button>
|
|
1071
|
+
</div>
|
|
1072
|
+
`},Wi=(e,t,a)=>{const{m:s,context:n,drag:i,handlers:r}=e,{state:o}=n,d=ze(o,n.navigation),p=Yt(o,t,a).filter(S=>ca(d,S)),u=o.activities.find(S=>S.id===t)?.steps??[],f=u[0],x=S=>u.find(ue=>ue.id===S)?.name??"",v=`group:${t}:${a??""}`,I=i.combine("story",[["story",i.target({key:v,accepts:"story",hovered:Qa,onDrop:S=>r.dropOnGroupCell(t,a,S)})],...Ve(e,t)]);return l`
|
|
1073
|
+
<div
|
|
1074
|
+
class="cell"
|
|
1075
|
+
data-activity=${t}
|
|
1076
|
+
data-milestone=${a??""}
|
|
1077
|
+
data-column=${t}
|
|
1078
|
+
data-drop=${String(i.isOver(v))}
|
|
1079
|
+
data-col-dragging=${String(gt(i,t))}
|
|
1080
|
+
data-col-drop=${Ke(i,t)}
|
|
1081
|
+
@dragenter=${I.dragenter}
|
|
1082
|
+
@dragover=${I.dragover}
|
|
1083
|
+
@dragleave=${I.dragleave}
|
|
1084
|
+
@drop=${I.drop}
|
|
1085
|
+
>
|
|
1086
|
+
<div class="card-list" data-testid=${`group-cell-${t}-${a??"unassigned"}`}>
|
|
1087
|
+
${Y(p,S=>S.id,S=>Ja(e,S,x(S.stepId)))}
|
|
1088
|
+
</div>
|
|
1089
|
+
${f?l`<button
|
|
1090
|
+
class="dpk-btn dpk-btn--ghost add-cell"
|
|
1091
|
+
type="button"
|
|
1092
|
+
aria-label=${s.addStoryCellAria}
|
|
1093
|
+
@click=${()=>Pa(s,n,t,f.id,a)}
|
|
1094
|
+
>
|
|
1095
|
+
${s.addCellButton}
|
|
1096
|
+
</button>`:m}
|
|
1097
|
+
</div>
|
|
1098
|
+
`},Ja=(e,t,a)=>{const{context:s,drag:n,handlers:i}=e,r=ce(s.state),o=n.source({type:"story",id:t.id}),d=ra(s.state,t.id);return l`<dpk-internal-usm-story-card
|
|
1099
|
+
data-story=${t.id}
|
|
1100
|
+
data-status=${t.statusId??""}
|
|
1101
|
+
data-relation=${Xi(s.state,s.navigation.story,t)??m}
|
|
1102
|
+
data-highlight=${ji(e.highlighted,t.id)??m}
|
|
1103
|
+
data-dpk-target=${_({type:"story",id:t.id})}
|
|
1104
|
+
draggable="true"
|
|
1105
|
+
tabindex="0"
|
|
1106
|
+
role="button"
|
|
1107
|
+
aria-haspopup="dialog"
|
|
1108
|
+
aria-label=${t.name}
|
|
1109
|
+
style=${M(Ma(r,t)?.tone)}
|
|
1110
|
+
.story=${t}
|
|
1111
|
+
.stepName=${a}
|
|
1112
|
+
.statuses=${r}
|
|
1113
|
+
.labels=${gn(s.state,t)}
|
|
1114
|
+
.reviewCount=${s.commentCount({type:"story",id:t.id})}
|
|
1115
|
+
.estimate=${J(s.state,"estimates")?H(s.state,t.estimateId)??null:null}
|
|
1116
|
+
.assignee=${J(s.state,"assignees")?hn(s.state,t)??null:null}
|
|
1117
|
+
.blocks=${d.dependents.length}
|
|
1118
|
+
.waits=${d.openBlockers}
|
|
1119
|
+
@click=${()=>i.selectStory(t.id)}
|
|
1120
|
+
@keydown=${p=>{p.composedPath()[0]!==p.currentTarget||p.key!=="Enter"&&p.key!==" "||(p.preventDefault(),i.selectStory(t.id))}}
|
|
1121
|
+
?focused=${s.navigation.story===t.id}
|
|
1122
|
+
?dragging=${n.isDragging("story",t.id)}
|
|
1123
|
+
@dragstart=${o.dragstart}
|
|
1124
|
+
@dragend=${o.dragend}
|
|
1125
|
+
></dpk-internal-usm-story-card>`},ji=(e,t)=>{if(e!==null)return e.has(t)?"on":"dimmed"},Xi=(e,t,a)=>{if(!(t===void 0||t===a.id))return a.blockedBy?.includes(t)?"dependent":e.stories.find(s=>s.id===t)?.blockedBy?.includes(a.id)?"blocker":void 0},Qa=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},Zi=e=>{const a=(e.currentTarget instanceof Element?e.currentTarget:null)?.closest(".map-row");if(!a||!e.dataTransfer)return;const s=a.getBoundingClientRect();e.dataTransfer.setDragImage(a,e.clientX-s.left,e.clientY-s.top)},es=e=>t=>t.currentTarget instanceof Element?{id:e,element:t.currentTarget}:null,ts=(e,t,a)=>{const n=(e.currentTarget instanceof Element?e.currentTarget:null)?.closest(".map-scroll");if(!n)return;const i=[...n.querySelectorAll("[data-column]")].filter(d=>d.getAttribute("data-column")===t&&(a===void 0||d.getAttribute("data-column-step")===a)),r=i.filter(d=>d.closest(".map-head")),o=i.filter(d=>!d.closest(".map-head"));Di(e,[...o,...r],n)},Ji=e=>{const t=e.target instanceof Element?e.target.closest(".map-row"):null,a=t?.querySelector(".row-head[data-milestone]");if(!t||!a)return null;const s=a.getAttribute("data-milestone");return{id:s===""?null:s,element:t}},Qi=(e,t)=>$t((a,s)=>{const n=a.trim()===""?Number.NaN:Number(a);if(!Number.isFinite(n)||n<0){s.value=String(e);return}n!==e&&t(n)}),er=(e,t,a,s)=>l`
|
|
1126
|
+
<section class="st-overview" data-testid="usm-statuses">
|
|
1127
|
+
${a.rows.length===0?l`<div class="empty">
|
|
1128
|
+
<h2>${e.noStatusesTitle}</h2>
|
|
1129
|
+
<p>${e.noStatusesBody}</p>
|
|
1130
|
+
</div>`:m}
|
|
1131
|
+
<ol class="st-list">
|
|
1132
|
+
${Y(a.rows,n=>n.id,n=>tr(e,t,n,s))}
|
|
1133
|
+
</ol>
|
|
1134
|
+
<div>
|
|
1135
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Ni(e,t)}>
|
|
1136
|
+
${e.newStatusButton}
|
|
1137
|
+
</button>
|
|
1138
|
+
</div>
|
|
1139
|
+
</section>
|
|
1140
|
+
`,tr=(e,t,a,s)=>{const n=s.openFor===a.id,i={type:"status",id:a.id},r=o=>{t.dispatch({type:"REORDER_STATUS",target:i,payload:{after:o}})};return l`
|
|
1141
|
+
<li
|
|
1142
|
+
class="st-row st-row--status"
|
|
1143
|
+
data-status=${a.id}
|
|
1144
|
+
data-dpk-target=${_(i)}
|
|
1145
|
+
style=${M(a.tone)}
|
|
1146
|
+
>
|
|
1147
|
+
<button
|
|
1148
|
+
class="st-icon-trigger"
|
|
1149
|
+
type="button"
|
|
1150
|
+
data-icon-trigger=${a.id}
|
|
1151
|
+
aria-haspopup="menu"
|
|
1152
|
+
aria-expanded=${String(n)}
|
|
1153
|
+
aria-label=${`${e.statusIconLabel}: ${e.iconName(a.icon)}`}
|
|
1154
|
+
title=${e.iconName(a.icon)}
|
|
1155
|
+
@click=${()=>s.toggle(a.id)}
|
|
1156
|
+
>
|
|
1157
|
+
${re(a)}
|
|
1158
|
+
</button>
|
|
1159
|
+
${n?ar(e,t,a,s):m}
|
|
1160
|
+
<span class="st-name">
|
|
1161
|
+
<dpk-component-inline-edit
|
|
1162
|
+
.value=${a.name}
|
|
1163
|
+
.label=${e.statusNameLabel}
|
|
1164
|
+
@dpk-commit=${Z(o=>t.dispatch({type:"SET_STATUS_NAME",target:i,payload:{name:o}}))}
|
|
1165
|
+
></dpk-component-inline-edit>
|
|
1166
|
+
</span>
|
|
1167
|
+
${ft(e,a.storyCount,a.share)}
|
|
1168
|
+
${bt(e,a.tone,o=>t.dispatch({type:"SET_STATUS_TONE",target:i,payload:{tone:o}}))}
|
|
1169
|
+
<label class="st-done" title=${e.doneStatusAria(a.name)}>
|
|
1170
|
+
<input
|
|
1171
|
+
type="radio"
|
|
1172
|
+
name="usm-done-status"
|
|
1173
|
+
data-role="done"
|
|
1174
|
+
aria-label=${e.doneStatusAria(a.name)}
|
|
1175
|
+
.checked=${a.done}
|
|
1176
|
+
@change=${()=>t.dispatch({type:"SET_DONE_STATUS",target:i,payload:{}})}
|
|
1177
|
+
/>
|
|
1178
|
+
<span aria-hidden="true">${e.doneStatusMark}</span>
|
|
1179
|
+
</label>
|
|
1180
|
+
${qe(e,{ids:t.state.statuses.map(o=>o.id),row:a,deleteLabel:e.deleteStatusAria,reorder:r,remove:()=>t.dispatch({type:"DELETE_STATUS",target:i,payload:{}})})}
|
|
1181
|
+
</li>
|
|
1182
|
+
`},ar=(e,t,a,s)=>l`<div
|
|
1183
|
+
id="icon-menu"
|
|
1184
|
+
class="comment-pop icon-menu"
|
|
1185
|
+
popover="manual"
|
|
1186
|
+
role="menu"
|
|
1187
|
+
aria-label=${e.statusIconLabel}
|
|
1188
|
+
style=${M(a.tone)}
|
|
1189
|
+
@keydown=${n=>{n.key==="Escape"&&(n.preventDefault(),s.close())}}
|
|
1190
|
+
>
|
|
1191
|
+
${Tt.map(n=>l`<button
|
|
1192
|
+
class="icon-option"
|
|
1193
|
+
type="button"
|
|
1194
|
+
role="menuitemradio"
|
|
1195
|
+
data-icon=${n}
|
|
1196
|
+
title=${e.iconName(n)}
|
|
1197
|
+
aria-label=${e.iconName(n)}
|
|
1198
|
+
aria-checked=${String(n===a.icon)}
|
|
1199
|
+
@click=${()=>{n!==a.icon&&t.dispatch({type:"SET_STATUS_ICON",target:{type:"status",id:a.id},payload:{icon:n}}),s.close()}}
|
|
1200
|
+
>
|
|
1201
|
+
${re({icon:n,progress:a.progress})}
|
|
1202
|
+
</button>`)}
|
|
1203
|
+
</div>`,bt=(e,t,a)=>l`<span class="st-tones" role="radiogroup" aria-label=${e.statusToneLabel}>
|
|
1204
|
+
${Ie.map(s=>l`<button
|
|
1205
|
+
class="st-tone"
|
|
1206
|
+
type="button"
|
|
1207
|
+
role="radio"
|
|
1208
|
+
data-tone=${s}
|
|
1209
|
+
style=${M(s)}
|
|
1210
|
+
title=${e.toneName(s)}
|
|
1211
|
+
aria-label=${e.toneName(s)}
|
|
1212
|
+
aria-checked=${s===t?"true":"false"}
|
|
1213
|
+
@click=${()=>{s!==t&&a(s)}}
|
|
1214
|
+
></button>`)}
|
|
1215
|
+
</span>`,qe=(e,t)=>l`<span class="st-tools">
|
|
1216
|
+
<button
|
|
1217
|
+
class="dpk-icon-btn"
|
|
1218
|
+
type="button"
|
|
1219
|
+
aria-label=${e.moveUpAria}
|
|
1220
|
+
?disabled=${t.row.previousId===null}
|
|
1221
|
+
@click=${()=>t.reorder(sr(t.ids,t.row.previousId))}
|
|
1222
|
+
>
|
|
1223
|
+
↑
|
|
1224
|
+
</button>
|
|
1225
|
+
<button
|
|
1226
|
+
class="dpk-icon-btn"
|
|
1227
|
+
type="button"
|
|
1228
|
+
aria-label=${e.moveDownAria}
|
|
1229
|
+
?disabled=${t.row.nextId===null}
|
|
1230
|
+
@click=${()=>t.reorder(t.row.nextId)}
|
|
1231
|
+
>
|
|
1232
|
+
↓
|
|
1233
|
+
</button>
|
|
1234
|
+
<button class="dpk-icon-btn" type="button" data-role="delete" aria-label=${t.deleteLabel} @click=${t.remove}>
|
|
1235
|
+
${_e()}
|
|
1236
|
+
</button>
|
|
1237
|
+
</span>`,sr=(e,t)=>{const a=t===null?-1:e.indexOf(t);return a<=0?null:e[a-1]??null},ft=(e,t,a)=>l`
|
|
1238
|
+
<span class="st-share">
|
|
1239
|
+
<span class="st-share-text">${e.statusShare(t,Math.round(a*100))}</span>
|
|
1240
|
+
<span class="st-meter" aria-hidden="true"><span style=${`width:${a*100}%`}></span></span>
|
|
1241
|
+
</span>
|
|
1242
|
+
`,nr=B(_s),ir=B(Qs),rr={width:720,height:240,inset:{top:16,right:20,bottom:26,left:40}},or={width:340,height:150,inset:{top:12,right:14,bottom:24,left:32}},dr=(e,t,a)=>{const{state:s,navigation:n}=t,i=vn(s,n),r=he(s);return l`
|
|
1243
|
+
<section class="bd-overview" data-testid="usm-burndown">
|
|
1244
|
+
<header class="bd-bar">
|
|
1245
|
+
${i?lr(e,t,i):m} ${pr(e,t,r)}
|
|
1246
|
+
${i?l`<span class="bd-record">
|
|
1247
|
+
<button
|
|
1248
|
+
class="dpk-btn dpk-btn--primary"
|
|
1249
|
+
type="button"
|
|
1250
|
+
data-role="record-snapshot"
|
|
1251
|
+
title=${e.recordSnapshotHint}
|
|
1252
|
+
@click=${()=>Ui(t,new Date)}
|
|
1253
|
+
>
|
|
1254
|
+
${e.recordSnapshotButton}
|
|
1255
|
+
</button>
|
|
1256
|
+
</span>`:m}
|
|
1257
|
+
</header>
|
|
1258
|
+
${r==="stories"?m:cr(e,t,r)}
|
|
1259
|
+
${i?ur(e,t,i,r,a):l`<div class="empty">
|
|
1260
|
+
<h2>${e.burndownTab}</h2>
|
|
1261
|
+
<p>${e.noMilestonesForBurndown}</p>
|
|
1262
|
+
</div>`}
|
|
1263
|
+
<div class="bd-side">${mr(e,t)}</div>
|
|
1264
|
+
</section>
|
|
1265
|
+
`},lr=(e,t,a)=>{const{state:s}=t;return l`<label class="bd-control">
|
|
1266
|
+
<span>${e.burndownMilestoneLabel}</span>
|
|
1267
|
+
<select
|
|
1268
|
+
class="dpk-select"
|
|
1269
|
+
data-role="milestone"
|
|
1270
|
+
@change=${Is(n=>t.navigate({milestone:n}))}
|
|
1271
|
+
>
|
|
1272
|
+
${s.milestones.map(n=>l`<option value=${n.id} ?selected=${n.id===a.id}>${n.name}</option>`)}
|
|
1273
|
+
</select>
|
|
1274
|
+
</label>
|
|
1275
|
+
<label class="bd-control" data-dpk-target=${_({type:"milestone",id:a.id})}>
|
|
1276
|
+
<span>${e.dueDateLabel}</span>
|
|
1277
|
+
<input
|
|
1278
|
+
class="dpk-input"
|
|
1279
|
+
type="date"
|
|
1280
|
+
data-role="due-date"
|
|
1281
|
+
.value=${a.dueDate??""}
|
|
1282
|
+
@change=${$t(n=>{const i=n===""?null:n;i!==(a.dueDate??null)&&t.dispatch({type:"SET_MILESTONE_DUE_DATE",target:{type:"milestone",id:a.id},payload:{dueDate:i}})})}
|
|
1283
|
+
/>
|
|
1284
|
+
</label>`},pr=(e,t,a)=>l`<span class="bd-control">
|
|
1285
|
+
<span id="bd-measure-label">${e.measureLabel}</span>
|
|
1286
|
+
<span class="bd-measures" role="radiogroup" aria-labelledby="bd-measure-label">
|
|
1287
|
+
${At.map(s=>l`<label class="bd-measure"
|
|
1288
|
+
><input
|
|
1289
|
+
type="radio"
|
|
1290
|
+
name="bd-measure"
|
|
1291
|
+
value=${s}
|
|
1292
|
+
.checked=${s===a}
|
|
1293
|
+
@change=${()=>t.dispatch({type:"SET_MEASURE",target:{type:"page",id:"usm"},payload:{measure:s}})}
|
|
1294
|
+
/>${e.measureName(s)}</label
|
|
1295
|
+
>`)}
|
|
1296
|
+
</span>
|
|
1297
|
+
</span>`,cr=(e,t,a)=>{const{state:s}=t,n=Gt(s),i=Da(n),r=s.estimates.map(d=>`${d.name} ${d.points}`).join(" \xB7 "),o=Fe(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>
|
|
1298
|
+
<summary class="bd-settings-summary">
|
|
1299
|
+
<span class="bd-settings-chevron" aria-hidden="true"></span>
|
|
1300
|
+
<span class="bd-settings-title">${e.measureSettingsLabel}</span>
|
|
1301
|
+
<span class="bd-settings-gist">
|
|
1302
|
+
<span>${e.estimatesLabel}: ${r===""?"\u2014":`${r} pt`}</span>
|
|
1303
|
+
${a==="weighted"?l`<span>${e.statusWeightLabel}: ${i.length===0?"\u2014":o}</span>`:m}
|
|
1304
|
+
</span>
|
|
1305
|
+
</summary>
|
|
1306
|
+
<div class="bd-settings-body">
|
|
1307
|
+
${hr(e,t)} ${a==="weighted"?br(e,t):m}
|
|
1308
|
+
</div>
|
|
1309
|
+
</details>`},ur=(e,t,a,s,n)=>{const{state:i}=t,r=kn(i,a.id,n.getTime()),o=s==="weighted",d=i.stories.filter(p=>p.milestoneId===a.id&&p.estimateId===void 0).length;return l`
|
|
1310
|
+
${s!=="stories"&&d>0?l`<p class="bd-warning" role="note" data-testid="usm-unestimated-warning">
|
|
1311
|
+
${ir()}<span>${e.unestimatedNote(d)}</span>
|
|
1312
|
+
</p>`:m}
|
|
1313
|
+
<figure class="bd-chart bd-chart--combined">
|
|
1314
|
+
<figcaption>
|
|
1315
|
+
<span class="bd-chart-title">${e.combinedChartTitle(o)}</span>
|
|
1316
|
+
<span class="bd-about">
|
|
1317
|
+
<button class="bd-about-btn" type="button" aria-label=${e.chartAbout} aria-describedby="bd-about-tip">
|
|
1318
|
+
${nr()}
|
|
1319
|
+
</button>
|
|
1320
|
+
<span class="bd-about-tip" id="bd-about-tip" role="tooltip">${e.combinedChartHint(s)}</span>
|
|
1321
|
+
</span>
|
|
1322
|
+
<span class="bd-chart-latest">${e.chartLatest(ss(r.combined))}</span>
|
|
1323
|
+
</figcaption>
|
|
1324
|
+
${as({chart:"combined",title:e.combinedChartTitle(o),points:r.combined,due:r.due,now:n.getTime(),size:rr,tone:"accent"})}
|
|
1325
|
+
</figure>
|
|
1326
|
+
${r.byStatus.length===0?m:l`<section class="bd-multiples" aria-label=${e.statusChartsLabel}>
|
|
1327
|
+
<h3>${e.statusChartsLabel}</h3>
|
|
1328
|
+
<div class="bd-grid">
|
|
1329
|
+
${r.byStatus.map(({status:p,points:u})=>l`<figure class="bd-chart" data-status=${p.id}>
|
|
1330
|
+
<figcaption>
|
|
1331
|
+
<span class="bd-chart-title">${e.statusChartTitle(p.name)}</span>
|
|
1332
|
+
<span class="bd-chart-latest">${e.chartLatest(ss(u))}</span>
|
|
1333
|
+
</figcaption>
|
|
1334
|
+
${as({chart:"status",statusId:p.id,title:e.statusChartTitle(p.name),points:u,due:r.due,now:n.getTime(),size:or,tone:p.tone})}
|
|
1335
|
+
</figure>`)}
|
|
1336
|
+
</div>
|
|
1337
|
+
</section>`}
|
|
1338
|
+
`},as=e=>l`<dpk-internal-usm-burndown-chart
|
|
1339
|
+
data-chart=${e.chart}
|
|
1340
|
+
data-status=${e.statusId??m}
|
|
1341
|
+
.points=${e.points}
|
|
1342
|
+
.due=${e.due}
|
|
1343
|
+
.now=${e.now}
|
|
1344
|
+
.size=${e.size}
|
|
1345
|
+
.tone=${e.tone}
|
|
1346
|
+
.label=${e.title}
|
|
1347
|
+
></dpk-internal-usm-burndown-chart>`,mr=(e,t)=>{const a=[...t.state.snapshots].reverse();return l`<section class="bd-panel">
|
|
1348
|
+
<h3>${e.snapshotsLabel}<span class="bd-count">${a.length}</span></h3>
|
|
1349
|
+
${a.length===0?l`<p class="bd-empty">${e.noSnapshots} ${e.chartNeedsSnapshot}</p>`:l`<ol class="bd-snapshots">
|
|
1350
|
+
${Y(a,s=>s.id,s=>{const n={type:"snapshot",id:s.id},i=le(s.at),r=s.tally.reduce((o,d)=>o+d.stories,0);return l`<li data-snapshot=${s.id} data-dpk-target=${_(n)}>
|
|
1351
|
+
<span class="bd-snapshot-at">${i}</span>
|
|
1352
|
+
<span class="bd-snapshot-sum">${e.storyCount(r)}</span>
|
|
1353
|
+
<button
|
|
1354
|
+
class="dpk-icon-btn"
|
|
1355
|
+
type="button"
|
|
1356
|
+
data-role="delete-snapshot"
|
|
1357
|
+
aria-label=${e.deleteSnapshotAria(i)}
|
|
1358
|
+
@click=${()=>t.dispatch({type:"DELETE_SNAPSHOT",target:n,payload:{}})}
|
|
1359
|
+
>
|
|
1360
|
+
${_e()}
|
|
1361
|
+
</button>
|
|
1362
|
+
</li>`})}
|
|
1363
|
+
</ol>`}
|
|
1364
|
+
</section>`},hr=(e,t)=>{const{estimates:a}=t.state;return l`<section class="bd-panel" data-testid="usm-estimates">
|
|
1365
|
+
<h3>${e.estimatesLabel}<span class="bd-count">${a.length}</span></h3>
|
|
1366
|
+
<p class="bd-empty">${e.estimatesHint}</p>
|
|
1367
|
+
${a.length===0?m:l`<ol class="bd-estimates">
|
|
1368
|
+
${Y(a,s=>s.id,(s,n)=>gr(e,t,s,n))}
|
|
1369
|
+
</ol>`}
|
|
1370
|
+
<div>
|
|
1371
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Yi(e,t)}>
|
|
1372
|
+
${e.newEstimateButton}
|
|
1373
|
+
</button>
|
|
1374
|
+
</div>
|
|
1375
|
+
</section>`},gr=(e,t,a,s)=>{const{estimates:n}=t.state,i={type:"estimate",id:a.id};return l`<li data-estimate=${a.id} data-dpk-target=${_(i)}>
|
|
1376
|
+
<span class="bd-estimate-name">
|
|
1377
|
+
<dpk-component-inline-edit
|
|
1378
|
+
.value=${a.name}
|
|
1379
|
+
.label=${e.estimateNameLabel}
|
|
1380
|
+
@dpk-commit=${Z(r=>t.dispatch({type:"SET_ESTIMATE_NAME",target:i,payload:{name:r}}))}
|
|
1381
|
+
></dpk-component-inline-edit>
|
|
1382
|
+
</span>
|
|
1383
|
+
<label class="bd-estimate-points">
|
|
1384
|
+
<input
|
|
1385
|
+
class="dpk-input"
|
|
1386
|
+
type="number"
|
|
1387
|
+
min="0"
|
|
1388
|
+
step="any"
|
|
1389
|
+
inputmode="decimal"
|
|
1390
|
+
data-role="points"
|
|
1391
|
+
aria-label=${e.estimatePointsLabel}
|
|
1392
|
+
.value=${String(a.points)}
|
|
1393
|
+
@change=${Qi(a.points,r=>t.dispatch({type:"SET_ESTIMATE_POINTS",target:i,payload:{points:r}}))}
|
|
1394
|
+
/>
|
|
1395
|
+
<span>pt</span>
|
|
1396
|
+
</label>
|
|
1397
|
+
${qe(e,{ids:n.map(r=>r.id),row:{previousId:n[s-1]?.id??null,nextId:n[s+1]?.id??null},deleteLabel:e.deleteEstimateAria,reorder:r=>t.dispatch({type:"REORDER_ESTIMATE",target:i,payload:{after:r}}),remove:()=>t.dispatch({type:"DELETE_ESTIMATE",target:i,payload:{}})})}
|
|
1398
|
+
</li>`},br=(e,t)=>{const{state:a}=t,s=Gt(a),n=Da(s);return l`<section class="bd-panel" data-testid="usm-weights">
|
|
1399
|
+
<h3>${e.statusWeightLabel}</h3>
|
|
1400
|
+
<p class="bd-empty">${e.statusWeightHint}</p>
|
|
1401
|
+
${n.length>0?l`<dpk-internal-usm-weight-bar
|
|
1402
|
+
.statuses=${ce(a).slice(0,s.length)}
|
|
1403
|
+
.dividers=${n}
|
|
1404
|
+
.commit=${i=>{for(const{statusId:r,weight:o}of wi(s,i))t.dispatch({type:"SET_STATUS_WEIGHT",target:{type:"status",id:r},payload:{weight:o}})}}
|
|
1405
|
+
></dpk-internal-usm-weight-bar>`:l`<p class="bd-empty">${e.weightsNeedStatuses}</p>`}
|
|
1406
|
+
</section>`},ss=e=>e.at(-1)?.value??0,fr=q`
|
|
1407
|
+
.bd-overview {
|
|
1408
|
+
display: grid;
|
|
1409
|
+
gap: 18px;
|
|
1410
|
+
max-width: 1040px;
|
|
1411
|
+
padding: 28px 0 40px;
|
|
1412
|
+
}
|
|
1413
|
+
.bd-bar {
|
|
1414
|
+
display: flex;
|
|
1415
|
+
flex-wrap: wrap;
|
|
1416
|
+
align-items: flex-end;
|
|
1417
|
+
gap: 12px 16px;
|
|
1418
|
+
}
|
|
1419
|
+
.bd-control {
|
|
1420
|
+
display: grid;
|
|
1421
|
+
gap: 4px;
|
|
1422
|
+
min-width: 0;
|
|
1423
|
+
}
|
|
1424
|
+
.bd-control > span:first-child {
|
|
1425
|
+
color: var(--dpk-ink-faint);
|
|
1426
|
+
font-size: 11px;
|
|
1427
|
+
font-weight: 600;
|
|
1428
|
+
}
|
|
1429
|
+
.bd-control .dpk-select {
|
|
1430
|
+
min-width: 160px;
|
|
1431
|
+
}
|
|
1432
|
+
.bd-control .dpk-input {
|
|
1433
|
+
width: 160px;
|
|
1434
|
+
font-family: var(--dpk-mono);
|
|
1435
|
+
font-variant-numeric: tabular-nums;
|
|
1436
|
+
}
|
|
1437
|
+
/* One row at any width: on a narrow screen each option wraps its own name instead of the row wrapping. */
|
|
1438
|
+
.bd-measures {
|
|
1439
|
+
display: inline-flex;
|
|
1440
|
+
max-width: 100%;
|
|
1441
|
+
padding: 2px;
|
|
1442
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
1443
|
+
border-radius: var(--dpk-radius-sm);
|
|
1444
|
+
background: var(--dpk-paper-sunken);
|
|
1445
|
+
}
|
|
1446
|
+
.bd-measure {
|
|
1447
|
+
position: relative;
|
|
1448
|
+
display: grid;
|
|
1449
|
+
flex: 1 1 auto;
|
|
1450
|
+
place-items: center;
|
|
1451
|
+
min-width: 0;
|
|
1452
|
+
padding: 4px 12px;
|
|
1453
|
+
text-align: center;
|
|
1454
|
+
border-radius: calc(var(--dpk-radius-sm) - 2px);
|
|
1455
|
+
color: var(--dpk-ink-soft);
|
|
1456
|
+
font-size: 12.5px;
|
|
1457
|
+
font-weight: 600;
|
|
1458
|
+
cursor: pointer;
|
|
1459
|
+
}
|
|
1460
|
+
/* The radio stays in the page for the keyboard and the reader; the label is what shows. */
|
|
1461
|
+
.bd-measure input {
|
|
1462
|
+
position: absolute;
|
|
1463
|
+
inset: 0;
|
|
1464
|
+
margin: 0;
|
|
1465
|
+
opacity: 0;
|
|
1466
|
+
cursor: pointer;
|
|
1467
|
+
}
|
|
1468
|
+
.bd-measure:has(input:checked) {
|
|
1469
|
+
background: var(--dpk-paper-raised);
|
|
1470
|
+
color: var(--dpk-ink);
|
|
1471
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
1472
|
+
}
|
|
1473
|
+
.bd-measure:has(input:focus-visible) {
|
|
1474
|
+
box-shadow: var(--dpk-focus);
|
|
1475
|
+
}
|
|
1476
|
+
.bd-settings {
|
|
1477
|
+
display: grid;
|
|
1478
|
+
gap: 10px;
|
|
1479
|
+
}
|
|
1480
|
+
.bd-settings-summary {
|
|
1481
|
+
display: flex;
|
|
1482
|
+
flex-wrap: wrap;
|
|
1483
|
+
align-items: center;
|
|
1484
|
+
gap: 4px 10px;
|
|
1485
|
+
justify-self: start;
|
|
1486
|
+
padding: 4px 10px 4px 6px;
|
|
1487
|
+
border-radius: var(--dpk-radius-sm);
|
|
1488
|
+
color: var(--dpk-ink-soft);
|
|
1489
|
+
font-size: 12px;
|
|
1490
|
+
list-style: none;
|
|
1491
|
+
cursor: pointer;
|
|
1492
|
+
user-select: none;
|
|
1493
|
+
}
|
|
1494
|
+
.bd-settings-summary::-webkit-details-marker {
|
|
1495
|
+
display: none;
|
|
1496
|
+
}
|
|
1497
|
+
.bd-settings-summary:hover {
|
|
1498
|
+
background: var(--dpk-paper-sunken);
|
|
1499
|
+
color: var(--dpk-ink);
|
|
1500
|
+
}
|
|
1501
|
+
.bd-settings-summary:focus-visible {
|
|
1502
|
+
outline: none;
|
|
1503
|
+
box-shadow: var(--dpk-focus);
|
|
1504
|
+
}
|
|
1505
|
+
.bd-settings-chevron {
|
|
1506
|
+
width: 6px;
|
|
1507
|
+
height: 6px;
|
|
1508
|
+
margin: 0 3px;
|
|
1509
|
+
border-right: 1.5px solid currentColor;
|
|
1510
|
+
border-bottom: 1.5px solid currentColor;
|
|
1511
|
+
transform: rotate(-45deg);
|
|
1512
|
+
transition: transform 160ms var(--dpk-ease);
|
|
1513
|
+
}
|
|
1514
|
+
.bd-settings[open] .bd-settings-chevron {
|
|
1515
|
+
transform: rotate(45deg);
|
|
1516
|
+
}
|
|
1517
|
+
.bd-settings-title {
|
|
1518
|
+
font-weight: 650;
|
|
1519
|
+
}
|
|
1520
|
+
.bd-settings-gist {
|
|
1521
|
+
display: inline-flex;
|
|
1522
|
+
flex-wrap: wrap;
|
|
1523
|
+
gap: 2px 14px;
|
|
1524
|
+
color: var(--dpk-ink-faint);
|
|
1525
|
+
font-family: var(--dpk-mono);
|
|
1526
|
+
font-size: 11.5px;
|
|
1527
|
+
font-variant-numeric: tabular-nums;
|
|
1528
|
+
}
|
|
1529
|
+
/* Side by side while both fit; the scale alone takes the row. */
|
|
1530
|
+
.bd-settings-body {
|
|
1531
|
+
display: grid;
|
|
1532
|
+
grid-template-columns: repeat(auto-fit, minmax(max(300px, calc((100% - 12px) / 2)), 1fr));
|
|
1533
|
+
gap: 12px;
|
|
1534
|
+
align-items: start;
|
|
1535
|
+
}
|
|
1536
|
+
.bd-record {
|
|
1537
|
+
margin-left: auto;
|
|
1538
|
+
}
|
|
1539
|
+
.bd-warning {
|
|
1540
|
+
display: flex;
|
|
1541
|
+
align-items: flex-start;
|
|
1542
|
+
gap: 8px;
|
|
1543
|
+
margin: 0;
|
|
1544
|
+
padding: 8px 12px;
|
|
1545
|
+
border: 1px solid color-mix(in oklab, var(--dpk-amber) 40%, var(--dpk-rule));
|
|
1546
|
+
border-radius: var(--dpk-radius-sm);
|
|
1547
|
+
background: color-mix(in oklab, var(--dpk-amber) 10%, var(--dpk-paper-raised));
|
|
1548
|
+
color: var(--dpk-ink);
|
|
1549
|
+
font-size: 12.5px;
|
|
1550
|
+
line-height: 1.5;
|
|
1551
|
+
}
|
|
1552
|
+
.bd-warning svg {
|
|
1553
|
+
flex: none;
|
|
1554
|
+
width: 15px;
|
|
1555
|
+
height: 15px;
|
|
1556
|
+
margin-top: 2px;
|
|
1557
|
+
color: var(--dpk-amber);
|
|
1558
|
+
}
|
|
1559
|
+
.bd-empty {
|
|
1560
|
+
margin: 0;
|
|
1561
|
+
color: var(--dpk-ink-faint);
|
|
1562
|
+
font-size: 12px;
|
|
1563
|
+
line-height: 1.5;
|
|
1564
|
+
}
|
|
1565
|
+
.bd-chart {
|
|
1566
|
+
display: grid;
|
|
1567
|
+
gap: 8px;
|
|
1568
|
+
margin: 0;
|
|
1569
|
+
padding: 14px 16px 10px;
|
|
1570
|
+
border: 1px solid var(--dpk-rule);
|
|
1571
|
+
border-radius: var(--dpk-radius-lg);
|
|
1572
|
+
background: var(--dpk-paper-raised);
|
|
1573
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
1574
|
+
}
|
|
1575
|
+
.bd-chart figcaption {
|
|
1576
|
+
display: flex;
|
|
1577
|
+
flex-wrap: wrap;
|
|
1578
|
+
align-items: baseline;
|
|
1579
|
+
gap: 4px 12px;
|
|
1580
|
+
}
|
|
1581
|
+
.bd-chart-title {
|
|
1582
|
+
font-size: 13.5px;
|
|
1583
|
+
font-weight: 650;
|
|
1584
|
+
}
|
|
1585
|
+
.bd-chart-latest {
|
|
1586
|
+
margin-left: auto;
|
|
1587
|
+
color: var(--dpk-ink-soft);
|
|
1588
|
+
font-family: var(--dpk-mono);
|
|
1589
|
+
font-size: 12px;
|
|
1590
|
+
font-variant-numeric: tabular-nums;
|
|
1591
|
+
}
|
|
1592
|
+
.bd-about {
|
|
1593
|
+
position: relative;
|
|
1594
|
+
display: inline-flex;
|
|
1595
|
+
align-self: center;
|
|
1596
|
+
}
|
|
1597
|
+
.bd-about-btn {
|
|
1598
|
+
display: inline-grid;
|
|
1599
|
+
place-items: center;
|
|
1600
|
+
width: 20px;
|
|
1601
|
+
height: 20px;
|
|
1602
|
+
padding: 0;
|
|
1603
|
+
border: 0;
|
|
1604
|
+
border-radius: 50%;
|
|
1605
|
+
background: none;
|
|
1606
|
+
color: var(--dpk-ink-faint);
|
|
1607
|
+
cursor: help;
|
|
1608
|
+
}
|
|
1609
|
+
.bd-about-btn:hover,
|
|
1610
|
+
.bd-about-btn:focus-visible {
|
|
1611
|
+
outline: none;
|
|
1612
|
+
color: var(--dpk-ink);
|
|
1613
|
+
}
|
|
1614
|
+
.bd-about-btn:focus-visible {
|
|
1615
|
+
box-shadow: var(--dpk-focus);
|
|
1616
|
+
}
|
|
1617
|
+
.bd-about-btn svg {
|
|
1618
|
+
width: 15px;
|
|
1619
|
+
height: 15px;
|
|
1620
|
+
}
|
|
1621
|
+
.bd-about-tip {
|
|
1622
|
+
position: absolute;
|
|
1623
|
+
top: calc(100% + 6px);
|
|
1624
|
+
left: -8px;
|
|
1625
|
+
z-index: 2;
|
|
1626
|
+
width: max-content;
|
|
1627
|
+
max-width: 360px;
|
|
1628
|
+
padding: 8px 10px;
|
|
1629
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
1630
|
+
border-radius: var(--dpk-radius-sm);
|
|
1631
|
+
background: var(--dpk-paper-raised);
|
|
1632
|
+
box-shadow: var(--dpk-shadow-sm);
|
|
1633
|
+
color: var(--dpk-ink-soft);
|
|
1634
|
+
font-size: 12px;
|
|
1635
|
+
font-weight: 400;
|
|
1636
|
+
line-height: 1.5;
|
|
1637
|
+
visibility: hidden;
|
|
1638
|
+
opacity: 0;
|
|
1639
|
+
transition: opacity 120ms var(--dpk-ease);
|
|
1640
|
+
}
|
|
1641
|
+
.bd-about:hover .bd-about-tip,
|
|
1642
|
+
.bd-about-btn:focus-visible + .bd-about-tip {
|
|
1643
|
+
visibility: visible;
|
|
1644
|
+
opacity: 1;
|
|
1645
|
+
}
|
|
1646
|
+
.bd-multiples {
|
|
1647
|
+
display: grid;
|
|
1648
|
+
gap: 10px;
|
|
1649
|
+
}
|
|
1650
|
+
.bd-multiples h3,
|
|
1651
|
+
.bd-panel h3 {
|
|
1652
|
+
display: flex;
|
|
1653
|
+
align-items: center;
|
|
1654
|
+
gap: 8px;
|
|
1655
|
+
margin: 0;
|
|
1656
|
+
color: var(--dpk-ink-soft);
|
|
1657
|
+
font-size: 12px;
|
|
1658
|
+
font-weight: 650;
|
|
1659
|
+
letter-spacing: 0.02em;
|
|
1660
|
+
}
|
|
1661
|
+
.bd-grid {
|
|
1662
|
+
display: grid;
|
|
1663
|
+
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
1664
|
+
gap: 12px;
|
|
1665
|
+
}
|
|
1666
|
+
.bd-side {
|
|
1667
|
+
display: grid;
|
|
1668
|
+
gap: 12px;
|
|
1669
|
+
align-items: start;
|
|
1670
|
+
}
|
|
1671
|
+
.bd-panel {
|
|
1672
|
+
display: grid;
|
|
1673
|
+
gap: 10px;
|
|
1674
|
+
padding: 14px 16px;
|
|
1675
|
+
border: 1px solid var(--dpk-rule);
|
|
1676
|
+
border-radius: var(--dpk-radius-lg);
|
|
1677
|
+
background: var(--dpk-paper-raised);
|
|
1678
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
1679
|
+
}
|
|
1680
|
+
.bd-count {
|
|
1681
|
+
color: var(--dpk-ink-faint);
|
|
1682
|
+
font-family: var(--dpk-mono);
|
|
1683
|
+
font-weight: 500;
|
|
1684
|
+
}
|
|
1685
|
+
.bd-snapshots,
|
|
1686
|
+
.bd-estimates {
|
|
1687
|
+
display: grid;
|
|
1688
|
+
margin: 0;
|
|
1689
|
+
padding: 0;
|
|
1690
|
+
list-style: none;
|
|
1691
|
+
}
|
|
1692
|
+
.bd-snapshots li,
|
|
1693
|
+
.bd-estimates li {
|
|
1694
|
+
display: grid;
|
|
1695
|
+
align-items: center;
|
|
1696
|
+
gap: 10px;
|
|
1697
|
+
min-height: 34px;
|
|
1698
|
+
}
|
|
1699
|
+
.bd-snapshots li {
|
|
1700
|
+
grid-template-columns: minmax(0, 1fr) auto 26px;
|
|
1701
|
+
}
|
|
1702
|
+
.bd-estimates li {
|
|
1703
|
+
grid-template-columns: minmax(0, 1fr) 96px auto;
|
|
1704
|
+
}
|
|
1705
|
+
.bd-snapshots li + li,
|
|
1706
|
+
.bd-estimates li + li {
|
|
1707
|
+
border-top: 1px solid var(--dpk-rule);
|
|
1708
|
+
}
|
|
1709
|
+
.bd-snapshot-at,
|
|
1710
|
+
.bd-snapshot-sum {
|
|
1711
|
+
font-family: var(--dpk-mono);
|
|
1712
|
+
font-size: 12px;
|
|
1713
|
+
font-variant-numeric: tabular-nums;
|
|
1714
|
+
}
|
|
1715
|
+
.bd-snapshot-sum {
|
|
1716
|
+
color: var(--dpk-ink-faint);
|
|
1717
|
+
}
|
|
1718
|
+
.bd-snapshots .dpk-icon-btn {
|
|
1719
|
+
width: 26px;
|
|
1720
|
+
height: 26px;
|
|
1721
|
+
}
|
|
1722
|
+
.bd-estimate-name {
|
|
1723
|
+
min-width: 0;
|
|
1724
|
+
font-family: var(--dpk-mono);
|
|
1725
|
+
font-size: 13px;
|
|
1726
|
+
font-weight: 650;
|
|
1727
|
+
}
|
|
1728
|
+
.bd-estimate-points {
|
|
1729
|
+
display: inline-flex;
|
|
1730
|
+
align-items: center;
|
|
1731
|
+
gap: 5px;
|
|
1732
|
+
color: var(--dpk-ink-faint);
|
|
1733
|
+
font-size: 11px;
|
|
1734
|
+
}
|
|
1735
|
+
.bd-estimate-points .dpk-input {
|
|
1736
|
+
min-height: 28px;
|
|
1737
|
+
padding: 3px 8px;
|
|
1738
|
+
font-family: var(--dpk-mono);
|
|
1739
|
+
font-size: 12px;
|
|
1740
|
+
font-variant-numeric: tabular-nums;
|
|
1741
|
+
}
|
|
1742
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1743
|
+
.bd-settings-chevron {
|
|
1744
|
+
transition: none;
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
@media (max-width: 640px) {
|
|
1748
|
+
.bd-record {
|
|
1749
|
+
margin-left: 0;
|
|
1750
|
+
}
|
|
1751
|
+
.bd-control .dpk-select,
|
|
1752
|
+
.bd-control .dpk-input {
|
|
1753
|
+
width: 100%;
|
|
1754
|
+
min-width: 0;
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
`,vr=/[ァ-ヶ]/g,ns=e=>e.normalize("NFKC").toLowerCase().replace(vr,t=>String.fromCharCode(t.charCodeAt(0)-96)),yr=(e,t)=>{const a=ns(t).split(/\s+/).filter(Boolean),s=ns(e);return a.every(n=>s.includes(n))},is=(e,t,a,s)=>(a==="blocker"?Rn(e,t):On(e,t)).flatMap(i=>{const r=L(e,`${i.activityId}.${i.stepId}`),o=r?[r.activity.name,r.step.name]:[];return yr([Be(i),i.name,...o].join(" "),s)?[{story:i,place:o}]:[]}),rs=(e,t,a,s,n,i)=>{const{state:r}=t;if(is(r,a,s,"").length===0)return m;const o=n.search?.side===s?n.search:null,d=o?is(r,a,s,o.query):[],p=Math.max(0,Math.min(o?.active??0,d.length-1)),u=o?d[p]:void 0,f=s==="blocker"?e.addBlockerPlaceholder:e.addDependentPlaceholder,x=`dep-${s}-choices`,v=c=>`dep-${s}-${c.story.id}`,I=c=>{o||!(c.currentTarget instanceof HTMLInputElement)||n.set({side:s,query:c.currentTarget.value,active:0})},S=c=>{i(c.story.id),n.set(null)},ue=c=>{if(!c.isComposing)switch(os(c)){case"ArrowDown":case"ArrowUp":{if(c.preventDefault(),!o){I(c);return}if(d.length===0)return;const T=os(c)==="ArrowDown"?1:-1;n.set({...o,active:(p+T+d.length)%d.length});return}case"Enter":if(!u)return;c.preventDefault(),S(u);return;case"Escape":if(!o)return;c.preventDefault(),n.set(null);return}};return l`<div class="sp-dep-picker">
|
|
1758
|
+
<input
|
|
1759
|
+
class="dpk-input sp-dep-search"
|
|
1760
|
+
type="text"
|
|
1761
|
+
role="combobox"
|
|
1762
|
+
data-role=${`add-${s}`}
|
|
1763
|
+
aria-label=${f}
|
|
1764
|
+
placeholder=${f}
|
|
1765
|
+
autocomplete="off"
|
|
1766
|
+
spellcheck="false"
|
|
1767
|
+
aria-autocomplete="list"
|
|
1768
|
+
aria-expanded=${String(d.length>0)}
|
|
1769
|
+
aria-controls=${x}
|
|
1770
|
+
aria-activedescendant=${u?v(u):m}
|
|
1771
|
+
.value=${o?.query??""}
|
|
1772
|
+
@focus=${I}
|
|
1773
|
+
@click=${I}
|
|
1774
|
+
@input=${c=>{c.currentTarget instanceof HTMLInputElement&&n.set({side:s,query:c.currentTarget.value,active:0})}}
|
|
1775
|
+
@keydown=${ue}
|
|
1776
|
+
@blur=${()=>{o&&n.set(null)}}
|
|
1777
|
+
/>
|
|
1778
|
+
${o?d.length===0?l`<p class="sp-dep-none" role="status">${e.noDependencyMatch}</p>`:l`<ul id=${x} class="sp-dep-choices" role="listbox" aria-label=${f}>
|
|
1779
|
+
${d.map(c=>kr(r,c,v(c),c===u,S))}
|
|
1780
|
+
</ul>`:m}
|
|
1781
|
+
</div>`},os=e=>!e.ctrlKey||e.altKey||e.metaKey||e.shiftKey?e.key:e.key==="n"?"ArrowDown":e.key==="p"?"ArrowUp":e.key,kr=(e,t,a,s,n)=>{const i=ce(e).find(r=>r.id===t.story.statusId);return l`<li
|
|
1782
|
+
id=${a}
|
|
1783
|
+
role="option"
|
|
1784
|
+
data-story=${t.story.id}
|
|
1785
|
+
aria-selected=${String(s)}
|
|
1786
|
+
@pointerdown=${r=>r.preventDefault()}
|
|
1787
|
+
@click=${()=>n(t)}
|
|
1788
|
+
>
|
|
1789
|
+
<span class="sp-dep-choice-name" style=${M(i?.tone)}>
|
|
1790
|
+
${i?re(i):m}<span>${t.story.name}</span>
|
|
1791
|
+
</span>
|
|
1792
|
+
${t.place.length===0?m:l`<span class="sp-dep-choice-place">${t.place.map(r=>l`<span>${r}</span>`)}</span>`}
|
|
1793
|
+
</li>`},wr=q`
|
|
1794
|
+
.sp-dep-picker {
|
|
1795
|
+
display: grid;
|
|
1796
|
+
gap: 4px;
|
|
1797
|
+
}
|
|
1798
|
+
/* The choices push the panel's content down rather than float: the panel
|
|
1799
|
+
scrolls, and a list hanging out of it would be cut. */
|
|
1800
|
+
.sp-dep-choices {
|
|
1801
|
+
display: grid;
|
|
1802
|
+
gap: 1px;
|
|
1803
|
+
max-height: 240px;
|
|
1804
|
+
margin: 0;
|
|
1805
|
+
padding: 4px;
|
|
1806
|
+
overflow-y: auto;
|
|
1807
|
+
overscroll-behavior: contain;
|
|
1808
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
1809
|
+
border-radius: var(--dpk-radius-sm);
|
|
1810
|
+
background: var(--dpk-paper-raised);
|
|
1811
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
1812
|
+
list-style: none;
|
|
1813
|
+
}
|
|
1814
|
+
.sp-dep-choices [role='option'] {
|
|
1815
|
+
display: grid;
|
|
1816
|
+
gap: 1px;
|
|
1817
|
+
padding: 5px 8px;
|
|
1818
|
+
border-radius: var(--dpk-radius-sm);
|
|
1819
|
+
cursor: pointer;
|
|
1820
|
+
}
|
|
1821
|
+
.sp-dep-choices [role='option']:hover,
|
|
1822
|
+
.sp-dep-choices [role='option'][aria-selected='true'] {
|
|
1823
|
+
background: var(--dpk-paper-sunken);
|
|
1824
|
+
}
|
|
1825
|
+
.sp-dep-choice-name {
|
|
1826
|
+
display: flex;
|
|
1827
|
+
align-items: center;
|
|
1828
|
+
gap: 8px;
|
|
1829
|
+
min-width: 0;
|
|
1830
|
+
color: var(--dpk-ink);
|
|
1831
|
+
font-size: 12.5px;
|
|
1832
|
+
font-weight: 600;
|
|
1833
|
+
}
|
|
1834
|
+
.sp-dep-choice-name > span,
|
|
1835
|
+
.sp-dep-choice-place {
|
|
1836
|
+
overflow: hidden;
|
|
1837
|
+
text-overflow: ellipsis;
|
|
1838
|
+
white-space: nowrap;
|
|
1839
|
+
}
|
|
1840
|
+
.sp-dep-choice-place {
|
|
1841
|
+
padding-left: 22px;
|
|
1842
|
+
color: var(--dpk-ink-faint);
|
|
1843
|
+
font-size: 11px;
|
|
1844
|
+
}
|
|
1845
|
+
.sp-dep-choice-place span + span::before {
|
|
1846
|
+
content: ' / ';
|
|
1847
|
+
}
|
|
1848
|
+
.sp-dep-none {
|
|
1849
|
+
margin: 0;
|
|
1850
|
+
padding: 6px 2px;
|
|
1851
|
+
color: var(--dpk-ink-faint);
|
|
1852
|
+
font-size: 12px;
|
|
1853
|
+
}
|
|
1854
|
+
`,xr=B(Js),$r=(e,t)=>{const a=Ue(t.navigation)==="critical-path",s=a?oa(t.state).ids.size:null;return l`<button
|
|
1855
|
+
class="dpk-btn dpk-btn--ghost highlight-toggle"
|
|
1856
|
+
type="button"
|
|
1857
|
+
data-highlight-toggle="critical-path"
|
|
1858
|
+
aria-pressed=${String(a)}
|
|
1859
|
+
title=${e.criticalPathHint}
|
|
1860
|
+
@click=${()=>t.navigate({highlight:a?null:"critical-path"})}
|
|
1861
|
+
>
|
|
1862
|
+
${xr()}<span>${e.criticalPathButton}</span>
|
|
1863
|
+
${s===null?m:l`<span class="highlight-count">${e.criticalPathCount(s)}</span>`}
|
|
1864
|
+
</button>`},Sr=q`
|
|
1865
|
+
.highlight-toggle {
|
|
1866
|
+
gap: 6px;
|
|
1867
|
+
margin-left: auto;
|
|
1868
|
+
}
|
|
1869
|
+
.highlight-toggle svg {
|
|
1870
|
+
width: 14px;
|
|
1871
|
+
height: 14px;
|
|
1872
|
+
}
|
|
1873
|
+
.highlight-toggle[aria-pressed='true'] {
|
|
1874
|
+
border-color: color-mix(in oklab, var(--dpk-accent) 55%, var(--dpk-rule-strong));
|
|
1875
|
+
background: color-mix(in oklab, var(--dpk-accent) 12%, var(--dpk-paper-raised));
|
|
1876
|
+
color: var(--dpk-ink);
|
|
1877
|
+
}
|
|
1878
|
+
.highlight-toggle[aria-pressed='true'] svg {
|
|
1879
|
+
color: var(--dpk-accent);
|
|
1880
|
+
}
|
|
1881
|
+
.highlight-count {
|
|
1882
|
+
color: var(--dpk-ink-soft);
|
|
1883
|
+
font-family: var(--dpk-mono);
|
|
1884
|
+
font-size: 10.5px;
|
|
1885
|
+
font-variant-numeric: tabular-nums;
|
|
1886
|
+
}
|
|
1887
|
+
`,Er=(e,t,a)=>l`
|
|
1888
|
+
<section class="st-overview" data-testid="usm-labels">
|
|
1889
|
+
${a.rows.length===0?l`<div class="empty">
|
|
1890
|
+
<h2>${e.noLabelsTitle}</h2>
|
|
1891
|
+
<p>${e.noLabelsBody}</p>
|
|
1892
|
+
</div>`:m}
|
|
1893
|
+
<ol class="st-list">
|
|
1894
|
+
${Y(a.rows,s=>s.id,s=>Tr(e,t,s))}
|
|
1895
|
+
</ol>
|
|
1896
|
+
<div>
|
|
1897
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Ci(e,t)}>
|
|
1898
|
+
${e.newLabelButton}
|
|
1899
|
+
</button>
|
|
1900
|
+
</div>
|
|
1901
|
+
</section>
|
|
1902
|
+
`,Tr=(e,t,a)=>{const s={type:"label",id:a.id};return l`
|
|
1903
|
+
<li class="st-row" data-label=${a.id} data-dpk-target=${_(s)} style=${M(a.tone)}>
|
|
1904
|
+
<span class="label-swatch" aria-hidden="true"></span>
|
|
1905
|
+
<span class="st-name">
|
|
1906
|
+
<dpk-component-inline-edit
|
|
1907
|
+
.value=${a.name}
|
|
1908
|
+
.label=${e.labelNameLabel}
|
|
1909
|
+
@dpk-commit=${Z(n=>t.dispatch({type:"SET_LABEL_NAME",target:s,payload:{name:n}}))}
|
|
1910
|
+
></dpk-component-inline-edit>
|
|
1911
|
+
</span>
|
|
1912
|
+
${ft(e,a.storyCount,a.share)}
|
|
1913
|
+
${bt(e,a.tone,n=>t.dispatch({type:"SET_LABEL_TONE",target:s,payload:{tone:n}}))}
|
|
1914
|
+
${qe(e,{ids:t.state.labels.map(n=>n.id),row:a,deleteLabel:e.deleteLabelAria,reorder:n=>t.dispatch({type:"REORDER_LABEL",target:s,payload:{after:n}}),remove:()=>t.dispatch({type:"DELETE_LABEL",target:s,payload:{}})})}
|
|
1915
|
+
</li>
|
|
1916
|
+
`},Ar=(e,t,a)=>{const{state:s}=t,n=Ee.filter(o=>be(s,o).length>0);if(n.length===0)return m;const i=ze(s,t.navigation),r=Object.fromEntries(Ee.map(o=>[o,null]));return l`<div class="map-filter" role="group" aria-label=${e.filterLabel} data-testid="usm-map-filter">
|
|
1917
|
+
${n.map(o=>Ir(e,t,i,o,a))} ${_r(e,t)}
|
|
1918
|
+
${zn(i)?l`<a class="filter-clear" href=${t.hashFor(r)}>${e.clearFilter}</a>`:m}
|
|
1919
|
+
</div>`},_r=(e,t)=>{const{state:a}=t,s=Pt(a);if(!s||a.statuses.length<2)return m;const n=la(a,t.navigation).size===0,i=a.stories.filter(r=>Se(a,r)).length;return l`<label class="show-finished">
|
|
1920
|
+
<input
|
|
1921
|
+
type="checkbox"
|
|
1922
|
+
data-show-finished
|
|
1923
|
+
.checked=${n}
|
|
1924
|
+
@change=${r=>{const o=r.currentTarget instanceof HTMLInputElement&&r.currentTarget.checked;t.navigate({[ie.key]:o?ie.value:null})}}
|
|
1925
|
+
/>
|
|
1926
|
+
<span>${e.showFinished(s.name)}</span>
|
|
1927
|
+
<span class="show-finished-count">${i}</span>
|
|
1928
|
+
</label>`},Ir=(e,t,a,s,n)=>{const i=a[s],r=Dr(e,t.state,a.hiddenStatusIds,s),o=r.filter(p=>i.has(p.id)),d=n.openFor===s;return l`<span class="filter-field">
|
|
1929
|
+
<button
|
|
1930
|
+
class="dpk-select filter-select"
|
|
1931
|
+
type="button"
|
|
1932
|
+
data-filter-trigger=${s}
|
|
1933
|
+
data-active=${String(o.length>0)}
|
|
1934
|
+
aria-haspopup="menu"
|
|
1935
|
+
aria-expanded=${String(d)}
|
|
1936
|
+
@click=${()=>n.toggle(s)}
|
|
1937
|
+
>
|
|
1938
|
+
<span class="filter-key">${e.filterKeyLabel(s)}</span>
|
|
1939
|
+
<span class="filter-value">${Mr(e,o)}</span>
|
|
1940
|
+
</button>
|
|
1941
|
+
${d?Lr(e,t,s,i,r,n):m}
|
|
1942
|
+
</span>`},Mr=(e,t)=>{const[a]=t;return a?t.length===1?a.name:`${a.name} +${t.length-1}`:e.filterAll},Lr=(e,t,a,s,n,i)=>l`<div
|
|
1943
|
+
id="filter-menu"
|
|
1944
|
+
class="comment-pop filter-menu"
|
|
1945
|
+
popover="manual"
|
|
1946
|
+
role="menu"
|
|
1947
|
+
aria-label=${e.filterKeyLabel(a)}
|
|
1948
|
+
data-filter=${a}
|
|
1949
|
+
@keydown=${r=>{r.key==="Escape"&&(r.preventDefault(),i.close())}}
|
|
1950
|
+
>
|
|
1951
|
+
<a
|
|
1952
|
+
class="filter-option"
|
|
1953
|
+
role="menuitemcheckbox"
|
|
1954
|
+
data-option=""
|
|
1955
|
+
aria-checked=${String(s.size===0)}
|
|
1956
|
+
href=${t.hashFor({[a]:null})}
|
|
1957
|
+
>
|
|
1958
|
+
<span class="filter-check">${s.size===0?Qe():m}</span>
|
|
1959
|
+
<span class="filter-name">${e.filterAll}</span>
|
|
1960
|
+
</a>
|
|
1961
|
+
${n.map(r=>{const o=s.has(r.id);return l`<a
|
|
1962
|
+
class="filter-option"
|
|
1963
|
+
role="menuitemcheckbox"
|
|
1964
|
+
data-option=${r.id}
|
|
1965
|
+
data-none=${r.id===ne?"true":m}
|
|
1966
|
+
aria-checked=${String(o)}
|
|
1967
|
+
style=${r.style}
|
|
1968
|
+
href=${t.hashFor({[a]:pa(t.state,a,Un(s,r.id))})}
|
|
1969
|
+
>
|
|
1970
|
+
<span class="filter-check">${o?Qe():m}</span>
|
|
1971
|
+
${r.mark}
|
|
1972
|
+
<span class="filter-name" title=${r.name}>${r.name}</span>
|
|
1973
|
+
<span class="filter-count">${r.count}</span>
|
|
1974
|
+
</a>`})}
|
|
1975
|
+
</div>`,Dr=(e,t,a,s)=>{const n=i=>t.stories.filter(r=>r.statusId===void 0||!a.has(r.statusId)).filter(i).length;switch(s){case"status":return ce(t).filter(i=>!a.has(i.id)).map(i=>({id:i.id,name:i.name,count:n(r=>r.statusId===i.id),mark:re(i),style:M(i.tone)}));case"label":return be(t,s).map(i=>{const r=t.labels.find(o=>o.id===i);return{id:i,name:r?.name??e.noLabel,count:n(o=>r?(o.labelIds??[]).includes(i):(o.labelIds??[]).length===0),mark:l`<span class="filter-dot"></span>`,style:M(r?.tone)}});case"estimate":return be(t,s).map(i=>{const r=H(t,i);return{id:i,name:r?.name??e.unestimatedFilter,count:n(o=>(o.estimateId??ne)===i),mark:r?l`<span class="filter-points">${r.points}pt</span>`:m,style:""}});case"assignee":return be(t,s).map(i=>{const r=G(t,i);return{id:i,name:r?.name??e.noAssigneeFilter,count:n(o=>(o.assigneeId??ne)===i),mark:l`<span class="filter-dot"></span>`,style:M(r?.tone)}})}},Rr=q`
|
|
1976
|
+
.show-finished {
|
|
1977
|
+
display: inline-flex;
|
|
1978
|
+
align-items: center;
|
|
1979
|
+
gap: 6px;
|
|
1980
|
+
padding: 0 4px;
|
|
1981
|
+
color: var(--dpk-ink-soft);
|
|
1982
|
+
font-size: 12px;
|
|
1983
|
+
font-weight: 600;
|
|
1984
|
+
cursor: pointer;
|
|
1985
|
+
user-select: none;
|
|
1986
|
+
}
|
|
1987
|
+
.show-finished input {
|
|
1988
|
+
margin: 0;
|
|
1989
|
+
accent-color: var(--dpk-blue);
|
|
1990
|
+
}
|
|
1991
|
+
.show-finished-count {
|
|
1992
|
+
color: var(--dpk-ink-faint);
|
|
1993
|
+
font-family: var(--dpk-mono);
|
|
1994
|
+
font-size: 10.5px;
|
|
1995
|
+
font-variant-numeric: tabular-nums;
|
|
1996
|
+
}
|
|
1997
|
+
.map-filter {
|
|
1998
|
+
display: flex;
|
|
1999
|
+
flex-wrap: wrap;
|
|
2000
|
+
align-items: center;
|
|
2001
|
+
gap: 8px;
|
|
2002
|
+
min-width: 0;
|
|
2003
|
+
}
|
|
2004
|
+
.filter-field {
|
|
2005
|
+
min-width: 0;
|
|
2006
|
+
}
|
|
2007
|
+
.filter-select {
|
|
2008
|
+
display: inline-flex;
|
|
2009
|
+
align-items: baseline;
|
|
2010
|
+
gap: 6px;
|
|
2011
|
+
width: auto;
|
|
2012
|
+
max-width: 260px;
|
|
2013
|
+
text-align: left;
|
|
2014
|
+
}
|
|
2015
|
+
.filter-select[data-active='true'] {
|
|
2016
|
+
border-color: color-mix(in oklab, var(--dpk-blue) 55%, var(--dpk-rule-strong));
|
|
2017
|
+
background-color: color-mix(in oklab, var(--dpk-blue) 8%, var(--dpk-paper-raised));
|
|
2018
|
+
}
|
|
2019
|
+
.filter-key {
|
|
2020
|
+
flex: none;
|
|
2021
|
+
color: var(--dpk-ink-faint);
|
|
2022
|
+
font-size: 11.5px;
|
|
2023
|
+
font-weight: 600;
|
|
2024
|
+
}
|
|
2025
|
+
.filter-value {
|
|
2026
|
+
min-width: 0;
|
|
2027
|
+
overflow: hidden;
|
|
2028
|
+
color: var(--dpk-ink);
|
|
2029
|
+
font-weight: 600;
|
|
2030
|
+
text-overflow: ellipsis;
|
|
2031
|
+
white-space: nowrap;
|
|
2032
|
+
}
|
|
2033
|
+
.filter-clear {
|
|
2034
|
+
margin-left: 2px;
|
|
2035
|
+
color: var(--dpk-blue);
|
|
2036
|
+
font-size: 12px;
|
|
2037
|
+
font-weight: 600;
|
|
2038
|
+
text-decoration: none;
|
|
2039
|
+
}
|
|
2040
|
+
.filter-clear:hover {
|
|
2041
|
+
text-decoration: underline;
|
|
2042
|
+
}
|
|
2043
|
+
.comment-pop.filter-menu {
|
|
2044
|
+
gap: 1px;
|
|
2045
|
+
padding: 6px;
|
|
2046
|
+
}
|
|
2047
|
+
.filter-option {
|
|
2048
|
+
display: flex;
|
|
2049
|
+
align-items: center;
|
|
2050
|
+
gap: 8px;
|
|
2051
|
+
min-height: 30px;
|
|
2052
|
+
padding: 4px 8px;
|
|
2053
|
+
border-radius: var(--dpk-radius-sm);
|
|
2054
|
+
color: var(--dpk-ink);
|
|
2055
|
+
font-size: 12.5px;
|
|
2056
|
+
font-weight: 550;
|
|
2057
|
+
text-decoration: none;
|
|
2058
|
+
}
|
|
2059
|
+
.filter-option[data-none] .filter-name {
|
|
2060
|
+
color: var(--dpk-ink-soft);
|
|
2061
|
+
font-style: italic;
|
|
2062
|
+
}
|
|
2063
|
+
.filter-option:hover,
|
|
2064
|
+
.filter-option:focus-visible {
|
|
2065
|
+
outline: none;
|
|
2066
|
+
background: var(--dpk-paper-sunken);
|
|
2067
|
+
}
|
|
2068
|
+
.filter-option:focus-visible {
|
|
2069
|
+
box-shadow: var(--dpk-focus);
|
|
2070
|
+
}
|
|
2071
|
+
.filter-check {
|
|
2072
|
+
flex: none;
|
|
2073
|
+
display: inline-grid;
|
|
2074
|
+
place-items: center;
|
|
2075
|
+
width: 16px;
|
|
2076
|
+
height: 16px;
|
|
2077
|
+
color: var(--dpk-blue);
|
|
2078
|
+
}
|
|
2079
|
+
.filter-check svg {
|
|
2080
|
+
width: 14px;
|
|
2081
|
+
height: 14px;
|
|
2082
|
+
}
|
|
2083
|
+
.filter-name {
|
|
2084
|
+
flex: 1;
|
|
2085
|
+
min-width: 0;
|
|
2086
|
+
overflow: hidden;
|
|
2087
|
+
text-overflow: ellipsis;
|
|
2088
|
+
white-space: nowrap;
|
|
2089
|
+
}
|
|
2090
|
+
.filter-dot {
|
|
2091
|
+
flex: none;
|
|
2092
|
+
width: 8px;
|
|
2093
|
+
height: 8px;
|
|
2094
|
+
border-radius: 50%;
|
|
2095
|
+
background: var(--usm-tone, var(--dpk-ink-faint));
|
|
2096
|
+
}
|
|
2097
|
+
.filter-points,
|
|
2098
|
+
.filter-count {
|
|
2099
|
+
color: var(--dpk-ink-faint);
|
|
2100
|
+
font-family: var(--dpk-mono);
|
|
2101
|
+
font-size: 10.5px;
|
|
2102
|
+
font-variant-numeric: tabular-nums;
|
|
2103
|
+
}
|
|
2104
|
+
`,Or=(e,t,a)=>l`<div class="map-toolbar" data-testid="usm-map-toolbar">
|
|
2105
|
+
${Ar(e,t,a)} ${$r(e,t)}
|
|
2106
|
+
</div>`,Nr=q`
|
|
2107
|
+
.map-toolbar {
|
|
2108
|
+
display: flex;
|
|
2109
|
+
flex-wrap: wrap;
|
|
2110
|
+
align-items: center;
|
|
2111
|
+
gap: 8px 12px;
|
|
2112
|
+
padding: 5px 24px;
|
|
2113
|
+
border-bottom: 1px solid var(--dpk-rule);
|
|
2114
|
+
}
|
|
2115
|
+
`,Cr=(e,t,a)=>l`
|
|
2116
|
+
<section class="st-overview" data-testid="usm-members">
|
|
2117
|
+
${a.rows.length===0?l`<div class="empty">
|
|
2118
|
+
<h2>${e.noMembersTitle}</h2>
|
|
2119
|
+
<p>${e.noMembersBody}</p>
|
|
2120
|
+
</div>`:m}
|
|
2121
|
+
<ol class="st-list">
|
|
2122
|
+
${Y(a.rows,s=>s.id,s=>Br(e,t,s))}
|
|
2123
|
+
</ol>
|
|
2124
|
+
<div>
|
|
2125
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Bi(e,t)}>
|
|
2126
|
+
${e.newMemberButton}
|
|
2127
|
+
</button>
|
|
2128
|
+
</div>
|
|
2129
|
+
</section>
|
|
2130
|
+
`,Br=(e,t,a)=>{const s={type:"member",id:a.id};return l`
|
|
2131
|
+
<li class="st-row" data-member=${a.id} data-dpk-target=${_(s)} style=${M(a.tone)}>
|
|
2132
|
+
<span class="member-avatar" aria-hidden="true">${ht(a.name)}</span>
|
|
2133
|
+
<span class="st-name">
|
|
2134
|
+
<dpk-component-inline-edit
|
|
2135
|
+
.value=${a.name}
|
|
2136
|
+
.label=${e.memberNameLabel}
|
|
2137
|
+
@dpk-commit=${Z(n=>t.dispatch({type:"SET_MEMBER_NAME",target:s,payload:{name:n}}))}
|
|
2138
|
+
></dpk-component-inline-edit>
|
|
2139
|
+
</span>
|
|
2140
|
+
${ft(e,a.storyCount,a.share)}
|
|
2141
|
+
${bt(e,a.tone,n=>t.dispatch({type:"SET_MEMBER_TONE",target:s,payload:{tone:n}}))}
|
|
2142
|
+
${qe(e,{ids:t.state.members.map(n=>n.id),row:a,deleteLabel:e.deleteMemberAria,reorder:n=>t.dispatch({type:"REORDER_MEMBER",target:s,payload:{after:n}}),remove:()=>t.dispatch({type:"DELETE_MEMBER",target:s,payload:{}})})}
|
|
2143
|
+
</li>
|
|
2144
|
+
`},Yr=(e,t,a)=>l`
|
|
2145
|
+
<section class="ms-overview" data-testid="usm-milestones">
|
|
2146
|
+
${a.length===0?l`<div class="empty">
|
|
2147
|
+
<h2>${e.noMilestonesTitle}</h2>
|
|
2148
|
+
<p>${e.noMilestonesBody}</p>
|
|
2149
|
+
</div>`:m}
|
|
2150
|
+
<ol class="ms-timeline">
|
|
2151
|
+
${Y(a,s=>s.id,s=>Ur(e,t,s))}
|
|
2152
|
+
<li class="ms-add">
|
|
2153
|
+
<span class="ms-when" aria-hidden="true"></span>
|
|
2154
|
+
<span class="ms-rail" aria-hidden="true"><span class="ms-node ms-node--add"></span></span>
|
|
2155
|
+
<div class="ms-body">
|
|
2156
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>za(e,t)}>
|
|
2157
|
+
${e.newMilestoneButton}
|
|
2158
|
+
</button>
|
|
2159
|
+
</div>
|
|
2160
|
+
</li>
|
|
2161
|
+
</ol>
|
|
2162
|
+
</section>
|
|
2163
|
+
`,Ur=(e,t,a)=>{const s=a.id;return l`
|
|
2164
|
+
<li class="ms-entry" data-milestone-card=${s} data-dpk-target=${_({type:"milestone",id:s})}>
|
|
2165
|
+
<div class="ms-when">
|
|
2166
|
+
${a.timeframe===""?l`<span class="ms-timeframe" data-empty="true">${e.timeframeUnset}</span>`:l`<span class="ms-timeframe">${a.timeframe}</span>`}
|
|
2167
|
+
</div>
|
|
2168
|
+
<span class="ms-rail" aria-hidden="true"><span class="ms-node">${a.ordinal}</span></span>
|
|
2169
|
+
<article class="ms-body">
|
|
2170
|
+
<h3 class="ms-name">
|
|
2171
|
+
<dpk-component-inline-edit
|
|
2172
|
+
.value=${a.name}
|
|
2173
|
+
.label=${e.milestoneNameLabel}
|
|
2174
|
+
@dpk-commit=${Z(n=>t.dispatch({type:"SET_MILESTONE_NAME",target:{type:"milestone",id:s},payload:{name:n}}))}
|
|
2175
|
+
></dpk-component-inline-edit>
|
|
2176
|
+
</h3>
|
|
2177
|
+
${a.description===""?l`<p class="ms-description" data-empty="true">${e.milestoneNoDescription}</p>`:l`<p class="ms-description">${a.description}</p>`}
|
|
2178
|
+
<dl class="ms-facts">
|
|
2179
|
+
<div>
|
|
2180
|
+
<dt>${e.storiesLabel}</dt>
|
|
2181
|
+
<dd>
|
|
2182
|
+
<strong>${a.storyCount}</strong>
|
|
2183
|
+
<span>${e.shareOfStories(Math.round(a.share*100))}</span>
|
|
2184
|
+
</dd>
|
|
2185
|
+
</div>
|
|
2186
|
+
<div>
|
|
2187
|
+
<dt>${e.coverageLabel}</dt>
|
|
2188
|
+
<dd>
|
|
2189
|
+
<strong>${e.coverage(a.coverage.covered,a.coverage.total)}</strong>
|
|
2190
|
+
<span class="ms-meter" aria-hidden="true">
|
|
2191
|
+
<span
|
|
2192
|
+
style=${`width:${a.coverage.total===0?0:a.coverage.covered/a.coverage.total*100}%`}
|
|
2193
|
+
></span>
|
|
2194
|
+
</span>
|
|
2195
|
+
</dd>
|
|
2196
|
+
</div>
|
|
2197
|
+
</dl>
|
|
2198
|
+
${a.progress.length===0?m:zr(e,a)}
|
|
2199
|
+
</article>
|
|
2200
|
+
</li>
|
|
2201
|
+
`},zr=(e,t)=>l`
|
|
2202
|
+
<div class="ms-breakdown">
|
|
2203
|
+
${Ta(t.progress,e.progressAria(t.progress.map(a=>`${a.name} ${a.count}`).join(", ")))}
|
|
2204
|
+
<ul class="ms-legend" aria-hidden="true">
|
|
2205
|
+
${t.progress.map(a=>l`<li data-status=${a.id} style=${M(a.tone)}>
|
|
2206
|
+
${re(a)}
|
|
2207
|
+
<span class="ms-breakdown-name">${a.name}</span>
|
|
2208
|
+
<span class="ms-breakdown-count">${a.count}</span>
|
|
2209
|
+
</li>`)}
|
|
2210
|
+
</ul>
|
|
2211
|
+
</div>
|
|
2212
|
+
`,Pr=(e,t,a,s)=>{if(a.kind!=="picking-step")return m;const n=E(t.state,a.storyId),i=ee(t.state,a.activityId);if(!n||!i)return m;const r=i.steps[0]?.id;return l`<div class="comment-pop move-dialog" id="move-dialog" popover="manual">
|
|
2213
|
+
<span class="dpk-label">${e.moveDialogLabel}</span>
|
|
2214
|
+
<select class="dpk-select" aria-label=${e.moveDialogSelectLabel} data-move-dialog>
|
|
2215
|
+
${i.steps.map(o=>l`<option value=${o.id} ?selected=${o.id===r}>${o.name}</option>`)}
|
|
2216
|
+
</select>
|
|
2217
|
+
<div class="pop-actions">
|
|
2218
|
+
<button
|
|
2219
|
+
class="dpk-btn dpk-btn--accent"
|
|
2220
|
+
type="button"
|
|
2221
|
+
@click=${o=>{const p=(Ms(o.currentTarget,HTMLElement)?.closest("#move-dialog")??null)?.querySelector("select")?.value??r;p?s.confirm(p):s.cancel()}}
|
|
2222
|
+
>
|
|
2223
|
+
${e.moveConfirm}
|
|
2224
|
+
</button>
|
|
2225
|
+
<button class="dpk-btn" type="button" @click=${s.cancel}>${e.moveCancel}</button>
|
|
2226
|
+
</div>
|
|
2227
|
+
</div>`},Fr=(e,t)=>l`<div class="board-head" data-testid="usm-board-head">${e}${t}</div>`,Gr=B(qs),Hr=(e,t,a,s)=>{const{state:n}=t,i=na(n),r=i.filter(o=>s.folded.has(o));return l`
|
|
2228
|
+
<div class="board-bar">
|
|
2229
|
+
<div class="page-nav" style=${`min-width: ${s.minimum}px`}>
|
|
2230
|
+
<div class="page-tabs" role="tablist" aria-label=${e.pageTabsLabel}>
|
|
2231
|
+
${i.map(o=>Vr(t,o,a,ds(e,o),ls(n,o),s.folded.has(o)))}
|
|
2232
|
+
</div>
|
|
2233
|
+
<button
|
|
2234
|
+
class="dpk-btn dpk-btn--ghost tabs-more"
|
|
2235
|
+
type="button"
|
|
2236
|
+
data-tabs-more-trigger
|
|
2237
|
+
data-unused=${String(r.length===0)}
|
|
2238
|
+
aria-label=${e.moreTabsLabel}
|
|
2239
|
+
aria-haspopup="menu"
|
|
2240
|
+
aria-expanded=${String(s.open)}
|
|
2241
|
+
@click=${s.toggle}
|
|
2242
|
+
>
|
|
2243
|
+
${Gr()}
|
|
2244
|
+
</button>
|
|
2245
|
+
${s.open&&r.length>0?l`<div
|
|
2246
|
+
id="tabs-menu"
|
|
2247
|
+
class="comment-pop tabs-menu"
|
|
2248
|
+
popover="manual"
|
|
2249
|
+
role="menu"
|
|
2250
|
+
aria-label=${e.moreTabsLabel}
|
|
2251
|
+
@keydown=${o=>{o.key==="Escape"&&(o.preventDefault(),s.close())}}
|
|
2252
|
+
>
|
|
2253
|
+
${r.map(o=>l`<a
|
|
2254
|
+
class="tabs-menu-item"
|
|
2255
|
+
role="menuitem"
|
|
2256
|
+
data-tab=${o}
|
|
2257
|
+
href=${t.hashFor({tab:o==="map"?null:o})}
|
|
2258
|
+
@click=${s.close}
|
|
2259
|
+
>${ds(e,o)}<span class="page-tab-count">${ls(n,o)}</span></a
|
|
2260
|
+
>`)}
|
|
2261
|
+
</div>`:m}
|
|
2262
|
+
</div>
|
|
2263
|
+
${a==="map"&&n.activities.some(o=>o.steps.length>0)?Fi(e,t):m}
|
|
2264
|
+
</div>
|
|
2265
|
+
`},ds=(e,t)=>{switch(t){case"map":return e.mapTab;case"milestones":return e.milestonesTab;case"statuses":return e.statusesTab;case"labels":return e.labelsTab;case"members":return e.membersTab;case"burndown":return e.burndownTab}},ls=(e,t)=>{switch(t){case"map":return e.stories.length;case"milestones":return e.milestones.length;case"statuses":return e.statuses.length;case"labels":return e.labels.length;case"members":return e.members.length;case"burndown":return e.snapshots.length}},Vr=(e,t,a,s,n,i)=>l`<a
|
|
2266
|
+
role="tab"
|
|
2267
|
+
data-tab=${t}
|
|
2268
|
+
data-overflow=${i?"":m}
|
|
2269
|
+
aria-hidden=${i?"true":m}
|
|
2270
|
+
tabindex=${i?"-1":m}
|
|
2271
|
+
aria-selected=${t===a?"true":"false"}
|
|
2272
|
+
href=${e.hashFor({tab:t==="map"?null:t})}
|
|
2273
|
+
>${s}<span class="page-tab-count">${n}</span></a
|
|
2274
|
+
>`,Kr=36,qr=12,Wr=220,jr=q`
|
|
2275
|
+
/* The tabs and their more button share what the bar's line leaves; the line
|
|
2276
|
+
wraps only when even the current tab and the button do not fit. */
|
|
2277
|
+
.page-nav {
|
|
2278
|
+
display: flex;
|
|
2279
|
+
flex: 1 1 0;
|
|
2280
|
+
align-items: center;
|
|
2281
|
+
gap: 4px;
|
|
2282
|
+
max-width: 100%;
|
|
2283
|
+
}
|
|
2284
|
+
/* A folded tab stays laid out, out of sight, so it can still be measured. */
|
|
2285
|
+
.page-tabs [role='tab'][data-overflow] {
|
|
2286
|
+
position: absolute;
|
|
2287
|
+
top: 0;
|
|
2288
|
+
left: 0;
|
|
2289
|
+
visibility: hidden;
|
|
2290
|
+
pointer-events: none;
|
|
2291
|
+
}
|
|
2292
|
+
.tabs-more {
|
|
2293
|
+
flex: none;
|
|
2294
|
+
padding: 6px 8px;
|
|
2295
|
+
}
|
|
2296
|
+
.tabs-more svg {
|
|
2297
|
+
width: 16px;
|
|
2298
|
+
height: 16px;
|
|
2299
|
+
}
|
|
2300
|
+
.tabs-more[aria-expanded='true'] {
|
|
2301
|
+
background: var(--dpk-paper-inset);
|
|
2302
|
+
color: var(--dpk-ink);
|
|
2303
|
+
}
|
|
2304
|
+
.tabs-more[data-unused='true'] {
|
|
2305
|
+
position: absolute;
|
|
2306
|
+
visibility: hidden;
|
|
2307
|
+
pointer-events: none;
|
|
2308
|
+
}
|
|
2309
|
+
.comment-pop.tabs-menu {
|
|
2310
|
+
gap: 2px;
|
|
2311
|
+
padding: 6px;
|
|
2312
|
+
}
|
|
2313
|
+
.tabs-menu-item {
|
|
2314
|
+
display: flex;
|
|
2315
|
+
align-items: center;
|
|
2316
|
+
justify-content: space-between;
|
|
2317
|
+
gap: 10px;
|
|
2318
|
+
padding: 8px 10px;
|
|
2319
|
+
border-radius: var(--dpk-radius-sm);
|
|
2320
|
+
color: var(--dpk-ink);
|
|
2321
|
+
font-size: 13px;
|
|
2322
|
+
font-weight: 600;
|
|
2323
|
+
text-decoration: none;
|
|
2324
|
+
}
|
|
2325
|
+
.tabs-menu-item:hover,
|
|
2326
|
+
.tabs-menu-item:focus-visible {
|
|
2327
|
+
outline: none;
|
|
2328
|
+
background: var(--dpk-paper-sunken);
|
|
2329
|
+
}
|
|
2330
|
+
`,Xr=e=>E(e.state,e.navigation.story),Zr=(e,t,a,s,n)=>{const{state:i}=t,r={type:"story",id:a.id},o=()=>t.navigate({story:null}),d=L(i,`${a.activityId}.${a.stepId}`),p=F(i,a.milestoneId);return l`<aside
|
|
2331
|
+
class="story-panel"
|
|
2332
|
+
role="dialog"
|
|
2333
|
+
aria-label=${e.panelLabel(a.name)}
|
|
2334
|
+
data-testid="usm-story-panel"
|
|
2335
|
+
data-story=${a.id}
|
|
2336
|
+
tabindex="-1"
|
|
2337
|
+
>
|
|
2338
|
+
<header class="sp-head">
|
|
2339
|
+
<span class="sp-where">
|
|
2340
|
+
${d?l`<span>${d.activity.name}</span><span>${d.step.name}</span>`:m}
|
|
2341
|
+
<span>${p?.name??e.unassigned}</span>
|
|
2342
|
+
</span>
|
|
2343
|
+
${io(e,t,a)}
|
|
2344
|
+
<button class="dpk-icon-btn" type="button" data-role="close" aria-label=${e.closePanelAria} @click=${o}>
|
|
2345
|
+
${et()}
|
|
2346
|
+
</button>
|
|
2347
|
+
</header>
|
|
2348
|
+
<div class="sp-body">
|
|
2349
|
+
<div class="sp-heading">
|
|
2350
|
+
${Jr(e,Be(a),n)}
|
|
2351
|
+
<h2 class="sp-title">
|
|
2352
|
+
<dpk-component-inline-edit
|
|
2353
|
+
wrap
|
|
2354
|
+
.value=${a.name}
|
|
2355
|
+
.label=${e.storyTitleLabel}
|
|
2356
|
+
@dpk-commit=${Z(u=>t.dispatch({type:"SET_STORY_NAME",target:r,payload:{name:u}}))}
|
|
2357
|
+
></dpk-component-inline-edit>
|
|
2358
|
+
</h2>
|
|
2359
|
+
</div>
|
|
2360
|
+
${i.statuses.length===0?m:Qr(e,t,a)}
|
|
2361
|
+
${J(i,"estimates")?eo(e,t,a):m}
|
|
2362
|
+
${J(i,"assignees")?to(e,t,a):m}
|
|
2363
|
+
${ao(e,t,a)} ${so(e,t,a,s)}
|
|
2364
|
+
<section class="sp-field">
|
|
2365
|
+
<h3>${e.storyDescriptionLabel}</h3>
|
|
2366
|
+
<dpk-component-inline-edit
|
|
2367
|
+
multiline
|
|
2368
|
+
markdown
|
|
2369
|
+
class="sp-description"
|
|
2370
|
+
.value=${a.description??""}
|
|
2371
|
+
.label=${e.storyDescriptionLabel}
|
|
2372
|
+
@dpk-commit=${Z(u=>t.dispatch({type:"SET_STORY_DESCRIPTION",target:r,payload:{description:u}}))}
|
|
2373
|
+
></dpk-component-inline-edit>
|
|
2374
|
+
</section>
|
|
2375
|
+
${no(e,t,a)} ${ro(e,t,a)}
|
|
2376
|
+
</div>
|
|
2377
|
+
<footer class="sp-foot">
|
|
2378
|
+
<button
|
|
2379
|
+
class="dpk-btn dpk-btn--ghost sp-delete"
|
|
2380
|
+
type="button"
|
|
2381
|
+
@click=${()=>{t.dispatch({type:"DELETE_STORY",target:r,payload:{}}).ok&&o()}}
|
|
2382
|
+
>
|
|
2383
|
+
${_e()}<span>${e.deleteStoryButton}</span>
|
|
2384
|
+
</button>
|
|
2385
|
+
</footer>
|
|
2386
|
+
</aside>`},Jr=(e,t,a)=>{const s=a.copied?e.storyKeyCopied:e.copyStoryKey(t);return l`<button
|
|
2387
|
+
class="sp-key"
|
|
2388
|
+
type="button"
|
|
2389
|
+
data-role="copy-key"
|
|
2390
|
+
data-copied=${a.copied?"true":"false"}
|
|
2391
|
+
title=${s}
|
|
2392
|
+
aria-label=${s}
|
|
2393
|
+
@click=${()=>a.copy(t)}
|
|
2394
|
+
>
|
|
2395
|
+
<span>${t}</span>${a.copied?Qe():Ls()}
|
|
2396
|
+
</button>`},Qr=(e,t,a)=>{const s=ce(t.state),n=a.statusId;return l`<section class="sp-field">
|
|
2397
|
+
<h3 id="sp-status-label">${e.storyStatusLabel}</h3>
|
|
2398
|
+
<div class="sp-statuses" role="radiogroup" aria-labelledby="sp-status-label">
|
|
2399
|
+
${s.map(i=>l`<button
|
|
2400
|
+
class="sp-status"
|
|
2401
|
+
type="button"
|
|
2402
|
+
role="radio"
|
|
2403
|
+
data-status=${i.id}
|
|
2404
|
+
aria-checked=${String(i.id===n)}
|
|
2405
|
+
style=${M(i.tone)}
|
|
2406
|
+
@click=${()=>{i.id!==n&&t.dispatch({type:"SET_STORY_STATUS",target:{type:"story",id:a.id},payload:{statusId:i.id}})}}
|
|
2407
|
+
>
|
|
2408
|
+
${re(i)}<span>${i.name}</span>
|
|
2409
|
+
</button>`)}
|
|
2410
|
+
</div>
|
|
2411
|
+
</section>`},eo=(e,t,a)=>{const s=a.estimateId??null,n=r=>()=>{r!==s&&t.dispatch({type:"SET_STORY_ESTIMATE",target:{type:"story",id:a.id},payload:{estimateId:r}})},i=[{id:null,name:e.unestimated,title:e.unestimated},...t.state.estimates.map(r=>({id:r.id,name:r.name,title:e.estimateText(r.name,r.points)}))];return l`<section class="sp-field">
|
|
2412
|
+
<h3 id="sp-estimate-label" class="sp-field-head">
|
|
2413
|
+
<span>${e.storyEstimateLabel}</span>
|
|
2414
|
+
<a class="sp-manage" href=${t.hashFor({tab:"burndown",story:null})}>${e.manageEstimates}</a>
|
|
2415
|
+
</h3>
|
|
2416
|
+
${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">
|
|
2417
|
+
${i.map(r=>l`<button
|
|
2418
|
+
class="sp-estimate"
|
|
2419
|
+
type="button"
|
|
2420
|
+
role="radio"
|
|
2421
|
+
data-estimate=${r.id??""}
|
|
2422
|
+
title=${r.title}
|
|
2423
|
+
aria-checked=${String(r.id===s)}
|
|
2424
|
+
@click=${n(r.id)}
|
|
2425
|
+
>
|
|
2426
|
+
${r.name}
|
|
2427
|
+
</button>`)}
|
|
2428
|
+
</div>`}
|
|
2429
|
+
</section>`},to=(e,t,a)=>{const s=a.assigneeId??null,n=i=>()=>{i!==s&&t.dispatch({type:"SET_STORY_ASSIGNEE",target:{type:"story",id:a.id},payload:{memberId:i}})};return l`<section class="sp-field">
|
|
2430
|
+
<h3 id="sp-assignee-label" class="sp-field-head">
|
|
2431
|
+
<span>${e.storyAssigneeLabel}</span>
|
|
2432
|
+
<a class="sp-manage" href=${t.hashFor({tab:"members",story:null})}>${e.manageMembers}</a>
|
|
2433
|
+
</h3>
|
|
2434
|
+
${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">
|
|
2435
|
+
<button
|
|
2436
|
+
class="sp-assignee"
|
|
2437
|
+
type="button"
|
|
2438
|
+
role="radio"
|
|
2439
|
+
data-assignee=""
|
|
2440
|
+
aria-checked=${String(s===null)}
|
|
2441
|
+
@click=${n(null)}
|
|
2442
|
+
>
|
|
2443
|
+
${e.noAssignee}
|
|
2444
|
+
</button>
|
|
2445
|
+
${t.state.members.map(i=>l`<button
|
|
2446
|
+
class="sp-assignee"
|
|
2447
|
+
type="button"
|
|
2448
|
+
role="radio"
|
|
2449
|
+
data-assignee=${i.id}
|
|
2450
|
+
aria-checked=${String(i.id===s)}
|
|
2451
|
+
style=${M(i.tone)}
|
|
2452
|
+
@click=${n(i.id)}
|
|
2453
|
+
>
|
|
2454
|
+
<span class="sp-avatar" aria-hidden="true">${ht(i.name)}</span>${i.name}
|
|
2455
|
+
</button>`)}
|
|
2456
|
+
</div>`}
|
|
2457
|
+
</section>`},ao=(e,t,a)=>{const s={type:"story",id:a.id},n=new Set(a.labelIds??[]);return l`<section class="sp-field">
|
|
2458
|
+
<h3 id="sp-labels-label" class="sp-field-head">
|
|
2459
|
+
<span>${e.storyLabelsLabel}</span>
|
|
2460
|
+
<a class="sp-manage" href=${t.hashFor({tab:"labels",story:null})}>${e.manageLabels}</a>
|
|
2461
|
+
</h3>
|
|
2462
|
+
${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">
|
|
2463
|
+
${t.state.labels.map(i=>{const r=n.has(i.id);return l`<button
|
|
2464
|
+
class="sp-label"
|
|
2465
|
+
type="button"
|
|
2466
|
+
data-label=${i.id}
|
|
2467
|
+
aria-pressed=${String(r)}
|
|
2468
|
+
style=${M(i.tone)}
|
|
2469
|
+
@click=${()=>t.dispatch({type:r?"REMOVE_STORY_LABEL":"ADD_STORY_LABEL",target:s,payload:{labelId:i.id}})}
|
|
2470
|
+
>
|
|
2471
|
+
<span class="sp-label-dot" aria-hidden="true"></span><span>${i.name}</span>
|
|
2472
|
+
</button>`})}
|
|
2473
|
+
</div>`}
|
|
2474
|
+
</section>`},so=(e,t,a,s)=>{const{state:n}=t,i=ra(n,a.id),r=(d,p,u)=>t.dispatch({type:d,target:{type:"story",id:p},payload:{blockerId:u}}),o=(d,p,u,f)=>{const x=E(n,p);if(!x)return m;const v=ce(n).find(I=>I.id===x.statusId);return l`<li
|
|
2475
|
+
data-blocker=${d==="data-blocker"?p:m}
|
|
2476
|
+
data-dependent=${d==="data-dependent"?p:m}
|
|
2477
|
+
data-finished=${String(Se(n,x))}
|
|
2478
|
+
>
|
|
2479
|
+
<a class="sp-dep-name" href=${t.hashFor({story:p})} style=${M(v?.tone)}>
|
|
2480
|
+
${v?re(v):m}<span>${x.name}</span>
|
|
2481
|
+
</a>
|
|
2482
|
+
<button
|
|
2483
|
+
class="dpk-icon-btn"
|
|
2484
|
+
type="button"
|
|
2485
|
+
data-role="remove"
|
|
2486
|
+
aria-label=${u(x.name)}
|
|
2487
|
+
@click=${f}
|
|
2488
|
+
>
|
|
2489
|
+
${et()}
|
|
2490
|
+
</button>
|
|
2491
|
+
</li>`};return l`<section class="sp-field sp-deps">
|
|
2492
|
+
<h3>${e.storyDependenciesLabel}</h3>
|
|
2493
|
+
<div class="sp-dep-side">
|
|
2494
|
+
<h4>${e.storyBlockersLabel}</h4>
|
|
2495
|
+
${i.blockers.length===0?l`<p class="sp-empty">${e.storyNoBlockers}</p>`:l`<ul class="sp-dep-list">
|
|
2496
|
+
${i.blockers.map(d=>o("data-blocker",d,e.removeBlockerAria,()=>r("REMOVE_STORY_BLOCKER",a.id,d)))}
|
|
2497
|
+
</ul>`}
|
|
2498
|
+
${rs(e,t,a.id,"blocker",s,d=>r("ADD_STORY_BLOCKER",a.id,d))}
|
|
2499
|
+
</div>
|
|
2500
|
+
<div class="sp-dep-side">
|
|
2501
|
+
<h4>${e.storyDependentsLabel}</h4>
|
|
2502
|
+
${i.dependents.length===0?l`<p class="sp-empty">${e.storyNoDependents}</p>`:l`<ul class="sp-dep-list">
|
|
2503
|
+
${i.dependents.map(d=>o("data-dependent",d,e.removeDependentAria,()=>r("REMOVE_STORY_BLOCKER",d,a.id)))}
|
|
2504
|
+
</ul>`}
|
|
2505
|
+
${rs(e,t,a.id,"dependent",s,d=>r("ADD_STORY_BLOCKER",d,a.id))}
|
|
2506
|
+
</div>
|
|
2507
|
+
</section>`},no=(e,t,a)=>{const s={type:"story",id:a.id},n=a.links??[],i=r=>{r.preventDefault();const o=r.currentTarget instanceof HTMLFormElement?r.currentTarget:null,d=o?.querySelector("input");if(!o||!d)return;const p=d.value.trim();if(!wt(it,p).success){d.setAttribute("aria-invalid","true");return}t.dispatch({type:"ADD_STORY_LINK",target:s,payload:{url:p}}).ok&&(d.removeAttribute("aria-invalid"),o.reset())};return l`<section class="sp-field">
|
|
2508
|
+
<h3>${e.storyLinksLabel}</h3>
|
|
2509
|
+
${n.length===0?m:l`<ul class="sp-links">
|
|
2510
|
+
${n.map(r=>{const o=Ye(r.url),d=r.label??o.text;return l`<li data-kind=${o.kind}>
|
|
2511
|
+
<a class="sp-link" href=${r.url} target="_blank" rel="noopener noreferrer" title=${r.url}>
|
|
2512
|
+
${Aa(o.kind)}
|
|
2513
|
+
<span class="sp-link-text">${d}</span>
|
|
2514
|
+
<span class="sp-link-url">${o.title===d?r.url:o.title}</span>
|
|
2515
|
+
</a>
|
|
2516
|
+
<button
|
|
2517
|
+
class="dpk-icon-btn"
|
|
2518
|
+
type="button"
|
|
2519
|
+
aria-label=${e.removeLinkAria(d)}
|
|
2520
|
+
@click=${()=>t.dispatch({type:"REMOVE_STORY_LINK",target:s,payload:{url:r.url}})}
|
|
2521
|
+
>
|
|
2522
|
+
${et()}
|
|
2523
|
+
</button>
|
|
2524
|
+
</li>`})}
|
|
2525
|
+
</ul>`}
|
|
2526
|
+
<form class="sp-add-link" @submit=${i}>
|
|
2527
|
+
<input
|
|
2528
|
+
class="dpk-input"
|
|
2529
|
+
type="url"
|
|
2530
|
+
inputmode="url"
|
|
2531
|
+
placeholder="https://"
|
|
2532
|
+
aria-label=${e.linkUrlLabel}
|
|
2533
|
+
@input=${r=>{r.currentTarget instanceof HTMLInputElement&&r.currentTarget.removeAttribute("aria-invalid")}}
|
|
2534
|
+
/>
|
|
2535
|
+
<button class="dpk-btn" type="submit">${e.addLinkButton}</button>
|
|
2536
|
+
</form>
|
|
2537
|
+
</section>`},io=(e,t,a)=>{const s=t.commentCount({type:"story",id:a.id});return l`<button
|
|
2538
|
+
class="sp-review"
|
|
2539
|
+
type="button"
|
|
2540
|
+
data-role="review-story"
|
|
2541
|
+
title=${e.reviewStoryTitle}
|
|
2542
|
+
aria-label=${s>0?`${e.reviewStoryButton} (${s})`:e.reviewStoryButton}
|
|
2543
|
+
@click=${()=>t.requestComment({type:"story",id:a.id})}
|
|
2544
|
+
>
|
|
2545
|
+
${xt()}<span>${e.reviewStoryButton}</span>${s>0?l`<span class="sp-review-count">${s}</span>`:m}
|
|
2546
|
+
</button>`},ro=(e,t,a)=>{const s={type:"story",id:a.id},n=a.comments??[],i=r=>{const o=r.querySelector("textarea"),d=o?.value.trim()??"";if(!o||d==="")return;const p=X("comment",W(t.state));t.dispatch({type:"ADD_STORY_COMMENT",target:s,payload:{id:p,body:d,createdAt:new Date().toISOString()}}).ok&&(o.value="")};return l`<section class="sp-field sp-comments">
|
|
2547
|
+
<h3>
|
|
2548
|
+
${e.storyCommentsLabel}${n.length>0?l`<span class="sp-count">${n.length}</span>`:m}
|
|
2549
|
+
</h3>
|
|
2550
|
+
${n.length===0?m:l`<ol class="sp-comment-list">
|
|
2551
|
+
${n.map(r=>l`<li data-id=${r.id}>
|
|
2552
|
+
<div class="sp-comment-main">
|
|
2553
|
+
<p class="sp-comment-body">${r.body}</p>
|
|
2554
|
+
${r.createdAt===void 0?m:l`<time class="sp-comment-time" datetime=${r.createdAt}
|
|
2555
|
+
>${e.commentDate(r.createdAt)}</time
|
|
2556
|
+
>`}
|
|
2557
|
+
</div>
|
|
2558
|
+
<button
|
|
2559
|
+
class="dpk-icon-btn"
|
|
2560
|
+
type="button"
|
|
2561
|
+
data-role="delete-comment"
|
|
2562
|
+
aria-label=${e.deleteStoryCommentAria}
|
|
2563
|
+
@click=${()=>t.dispatch({type:"DELETE_STORY_COMMENT",target:s,payload:{commentId:r.id}})}
|
|
2564
|
+
>
|
|
2565
|
+
${_e()}
|
|
2566
|
+
</button>
|
|
2567
|
+
</li>`)}
|
|
2568
|
+
</ol>`}
|
|
2569
|
+
<form
|
|
2570
|
+
class="sp-comment-form"
|
|
2571
|
+
@submit=${r=>{r.preventDefault(),r.currentTarget instanceof HTMLFormElement&&i(r.currentTarget)}}
|
|
2572
|
+
>
|
|
2573
|
+
<textarea
|
|
2574
|
+
class="dpk-textarea"
|
|
2575
|
+
rows="3"
|
|
2576
|
+
aria-label=${e.storyCommentsLabel}
|
|
2577
|
+
aria-describedby="sp-comments-hint"
|
|
2578
|
+
data-dpk-text-key=${`story-comment:${a.id}`}
|
|
2579
|
+
@keydown=${r=>{if(r.isComposing||r.key!=="Enter"||!(r.ctrlKey||r.metaKey))return;r.preventDefault();const o=r.currentTarget instanceof HTMLElement?r.currentTarget.closest("form"):null;o&&i(o)}}
|
|
2580
|
+
></textarea>
|
|
2581
|
+
<div class="sp-comment-actions">
|
|
2582
|
+
<span class="sp-comment-hint" id="sp-comments-hint">${e.storyCommentsHint}</span>
|
|
2583
|
+
<button class="dpk-btn dpk-btn--accent" type="submit">${e.commentSubmit}</button>
|
|
2584
|
+
</div>
|
|
2585
|
+
</form>
|
|
2586
|
+
</section>`},oo=q`
|
|
2587
|
+
/* Over the main column's edge, below the header: the page's own controls stay in reach. */
|
|
2588
|
+
.story-panel {
|
|
2589
|
+
position: absolute;
|
|
2590
|
+
top: 0;
|
|
2591
|
+
right: 0;
|
|
2592
|
+
bottom: 0;
|
|
2593
|
+
z-index: 20;
|
|
2594
|
+
display: grid;
|
|
2595
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
2596
|
+
width: min(420px, 100%);
|
|
2597
|
+
border-left: 1px solid var(--dpk-rule-strong);
|
|
2598
|
+
background: var(--dpk-paper-raised);
|
|
2599
|
+
box-shadow: var(--dpk-shadow-lg);
|
|
2600
|
+
animation: sp-slide-in 220ms var(--dpk-ease);
|
|
2601
|
+
}
|
|
2602
|
+
/* The panel takes the focus when it opens; the ring belongs to its controls. */
|
|
2603
|
+
.story-panel:focus {
|
|
2604
|
+
outline: none;
|
|
2605
|
+
}
|
|
2606
|
+
@keyframes sp-slide-in {
|
|
2607
|
+
from {
|
|
2608
|
+
opacity: 0;
|
|
2609
|
+
transform: translateX(24px);
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
.sp-head {
|
|
2613
|
+
display: flex;
|
|
2614
|
+
align-items: center;
|
|
2615
|
+
gap: 10px;
|
|
2616
|
+
padding: 14px 22px 12px;
|
|
2617
|
+
min-height: 60px;
|
|
2618
|
+
box-sizing: border-box;
|
|
2619
|
+
border-bottom: 1px solid var(--dpk-rule);
|
|
2620
|
+
}
|
|
2621
|
+
.sp-heading {
|
|
2622
|
+
display: grid;
|
|
2623
|
+
justify-items: start;
|
|
2624
|
+
gap: 6px;
|
|
2625
|
+
}
|
|
2626
|
+
.sp-heading .sp-title {
|
|
2627
|
+
justify-self: stretch;
|
|
2628
|
+
}
|
|
2629
|
+
.sp-key {
|
|
2630
|
+
display: inline-flex;
|
|
2631
|
+
align-items: center;
|
|
2632
|
+
gap: 5px;
|
|
2633
|
+
padding: 2px 7px;
|
|
2634
|
+
border: 1px solid var(--dpk-rule);
|
|
2635
|
+
border-radius: 6px;
|
|
2636
|
+
background: var(--dpk-paper-sunken);
|
|
2637
|
+
color: var(--dpk-ink-soft);
|
|
2638
|
+
font: inherit;
|
|
2639
|
+
font-family: var(--dpk-mono);
|
|
2640
|
+
font-size: 11px;
|
|
2641
|
+
font-weight: 650;
|
|
2642
|
+
line-height: 18px;
|
|
2643
|
+
font-variant-numeric: tabular-nums;
|
|
2644
|
+
cursor: pointer;
|
|
2645
|
+
}
|
|
2646
|
+
.sp-key:hover {
|
|
2647
|
+
border-color: var(--dpk-rule-strong);
|
|
2648
|
+
color: var(--dpk-ink);
|
|
2649
|
+
}
|
|
2650
|
+
.sp-key:focus-visible {
|
|
2651
|
+
outline: none;
|
|
2652
|
+
box-shadow: var(--dpk-focus);
|
|
2653
|
+
}
|
|
2654
|
+
.sp-key[data-copied='true'] {
|
|
2655
|
+
color: var(--dpk-green);
|
|
2656
|
+
}
|
|
2657
|
+
.sp-key svg {
|
|
2658
|
+
flex: none;
|
|
2659
|
+
width: 12px;
|
|
2660
|
+
height: 12px;
|
|
2661
|
+
}
|
|
2662
|
+
.sp-where {
|
|
2663
|
+
display: flex;
|
|
2664
|
+
flex-wrap: wrap;
|
|
2665
|
+
gap: 2px 0;
|
|
2666
|
+
flex: 1 1 auto;
|
|
2667
|
+
min-width: 0;
|
|
2668
|
+
color: var(--dpk-ink-faint);
|
|
2669
|
+
font-size: 11.5px;
|
|
2670
|
+
font-weight: 600;
|
|
2671
|
+
}
|
|
2672
|
+
.sp-where > span + span::before {
|
|
2673
|
+
content: '›';
|
|
2674
|
+
margin: 0 6px;
|
|
2675
|
+
color: var(--dpk-rule-strong);
|
|
2676
|
+
}
|
|
2677
|
+
.sp-body {
|
|
2678
|
+
display: grid;
|
|
2679
|
+
align-content: start;
|
|
2680
|
+
gap: 22px;
|
|
2681
|
+
overflow: auto;
|
|
2682
|
+
padding: 18px 22px 24px;
|
|
2683
|
+
}
|
|
2684
|
+
.sp-title {
|
|
2685
|
+
margin: 0;
|
|
2686
|
+
font-size: 19px;
|
|
2687
|
+
font-weight: 700;
|
|
2688
|
+
letter-spacing: -0.015em;
|
|
2689
|
+
line-height: 1.35;
|
|
2690
|
+
}
|
|
2691
|
+
.sp-title dpk-component-inline-edit {
|
|
2692
|
+
display: block;
|
|
2693
|
+
margin: 0 -4px;
|
|
2694
|
+
}
|
|
2695
|
+
.sp-field {
|
|
2696
|
+
display: grid;
|
|
2697
|
+
gap: 8px;
|
|
2698
|
+
}
|
|
2699
|
+
.sp-field h3 {
|
|
2700
|
+
margin: 0;
|
|
2701
|
+
color: var(--dpk-ink-faint);
|
|
2702
|
+
font-size: 11px;
|
|
2703
|
+
font-weight: 650;
|
|
2704
|
+
letter-spacing: 0.04em;
|
|
2705
|
+
text-transform: uppercase;
|
|
2706
|
+
}
|
|
2707
|
+
.sp-statuses {
|
|
2708
|
+
display: flex;
|
|
2709
|
+
flex-wrap: wrap;
|
|
2710
|
+
gap: 6px;
|
|
2711
|
+
}
|
|
2712
|
+
.sp-status {
|
|
2713
|
+
display: inline-flex;
|
|
2714
|
+
align-items: center;
|
|
2715
|
+
gap: 7px;
|
|
2716
|
+
padding: 5px 12px 5px 9px;
|
|
2717
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
2718
|
+
border-radius: 999px;
|
|
2719
|
+
background: var(--dpk-paper-raised);
|
|
2720
|
+
color: var(--dpk-ink);
|
|
2721
|
+
font: inherit;
|
|
2722
|
+
font-size: 12.5px;
|
|
2723
|
+
font-weight: 600;
|
|
2724
|
+
cursor: pointer;
|
|
2725
|
+
transition:
|
|
2726
|
+
background 140ms var(--dpk-ease),
|
|
2727
|
+
border-color 140ms var(--dpk-ease);
|
|
2728
|
+
}
|
|
2729
|
+
.sp-status:hover {
|
|
2730
|
+
border-color: color-mix(in oklab, var(--usm-tone) 60%, var(--dpk-rule-strong));
|
|
2731
|
+
}
|
|
2732
|
+
.sp-status:focus-visible {
|
|
2733
|
+
outline: none;
|
|
2734
|
+
box-shadow: var(--dpk-focus);
|
|
2735
|
+
}
|
|
2736
|
+
.sp-status[aria-checked='true'] {
|
|
2737
|
+
border-color: var(--usm-tone);
|
|
2738
|
+
background: color-mix(in oklab, var(--usm-tone) 14%, var(--dpk-paper-raised));
|
|
2739
|
+
box-shadow: inset 0 0 0 1px var(--usm-tone);
|
|
2740
|
+
}
|
|
2741
|
+
.sp-estimates {
|
|
2742
|
+
display: flex;
|
|
2743
|
+
flex-wrap: wrap;
|
|
2744
|
+
gap: 4px;
|
|
2745
|
+
}
|
|
2746
|
+
.sp-estimate {
|
|
2747
|
+
min-width: 34px;
|
|
2748
|
+
padding: 4px 10px;
|
|
2749
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
2750
|
+
border-radius: var(--dpk-radius-sm);
|
|
2751
|
+
background: var(--dpk-paper-raised);
|
|
2752
|
+
color: var(--dpk-ink-soft);
|
|
2753
|
+
font: inherit;
|
|
2754
|
+
font-family: var(--dpk-mono);
|
|
2755
|
+
font-size: 12px;
|
|
2756
|
+
font-weight: 650;
|
|
2757
|
+
font-variant-numeric: tabular-nums;
|
|
2758
|
+
cursor: pointer;
|
|
2759
|
+
transition:
|
|
2760
|
+
background 140ms var(--dpk-ease),
|
|
2761
|
+
border-color 140ms var(--dpk-ease);
|
|
2762
|
+
}
|
|
2763
|
+
.sp-estimate[data-estimate=''] {
|
|
2764
|
+
font-family: inherit;
|
|
2765
|
+
font-weight: 550;
|
|
2766
|
+
}
|
|
2767
|
+
.sp-estimate:hover {
|
|
2768
|
+
border-color: var(--dpk-rule-hover);
|
|
2769
|
+
}
|
|
2770
|
+
.sp-estimate:focus-visible {
|
|
2771
|
+
outline: none;
|
|
2772
|
+
box-shadow: var(--dpk-focus);
|
|
2773
|
+
}
|
|
2774
|
+
.sp-estimate[aria-checked='true'] {
|
|
2775
|
+
border-color: var(--dpk-ink);
|
|
2776
|
+
background: var(--dpk-ink);
|
|
2777
|
+
color: var(--dpk-paper-raised);
|
|
2778
|
+
}
|
|
2779
|
+
.sp-assignees {
|
|
2780
|
+
display: flex;
|
|
2781
|
+
flex-wrap: wrap;
|
|
2782
|
+
gap: 4px;
|
|
2783
|
+
}
|
|
2784
|
+
.sp-assignee {
|
|
2785
|
+
display: inline-flex;
|
|
2786
|
+
align-items: center;
|
|
2787
|
+
gap: 6px;
|
|
2788
|
+
padding: 3px 10px 3px 4px;
|
|
2789
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
2790
|
+
border-radius: 999px;
|
|
2791
|
+
background: var(--dpk-paper-raised);
|
|
2792
|
+
color: var(--dpk-ink-soft);
|
|
2793
|
+
font: inherit;
|
|
2794
|
+
font-size: 12px;
|
|
2795
|
+
font-weight: 600;
|
|
2796
|
+
cursor: pointer;
|
|
2797
|
+
transition:
|
|
2798
|
+
background 140ms var(--dpk-ease),
|
|
2799
|
+
border-color 140ms var(--dpk-ease);
|
|
2800
|
+
}
|
|
2801
|
+
.sp-assignee[data-assignee=''] {
|
|
2802
|
+
padding-left: 10px;
|
|
2803
|
+
}
|
|
2804
|
+
.sp-assignee:hover {
|
|
2805
|
+
border-color: var(--dpk-rule-hover);
|
|
2806
|
+
}
|
|
2807
|
+
.sp-assignee:focus-visible {
|
|
2808
|
+
outline: none;
|
|
2809
|
+
box-shadow: var(--dpk-focus);
|
|
2810
|
+
}
|
|
2811
|
+
.sp-assignee[aria-checked='true'] {
|
|
2812
|
+
border-color: var(--usm-tone, var(--dpk-ink));
|
|
2813
|
+
background: color-mix(in oklab, var(--usm-tone, var(--dpk-ink)) 12%, var(--dpk-paper-raised));
|
|
2814
|
+
color: var(--dpk-ink);
|
|
2815
|
+
}
|
|
2816
|
+
.sp-avatar {
|
|
2817
|
+
display: inline-grid;
|
|
2818
|
+
place-items: center;
|
|
2819
|
+
width: 18px;
|
|
2820
|
+
height: 18px;
|
|
2821
|
+
border-radius: 50%;
|
|
2822
|
+
background: var(--usm-tone);
|
|
2823
|
+
color: var(--dpk-paper-raised);
|
|
2824
|
+
font-size: 10px;
|
|
2825
|
+
font-weight: 700;
|
|
2826
|
+
line-height: 1;
|
|
2827
|
+
}
|
|
2828
|
+
.sp-field-head {
|
|
2829
|
+
display: flex;
|
|
2830
|
+
align-items: baseline;
|
|
2831
|
+
justify-content: space-between;
|
|
2832
|
+
gap: 8px;
|
|
2833
|
+
}
|
|
2834
|
+
.sp-manage {
|
|
2835
|
+
color: var(--dpk-ink-faint);
|
|
2836
|
+
font-size: 11px;
|
|
2837
|
+
font-weight: 600;
|
|
2838
|
+
letter-spacing: 0;
|
|
2839
|
+
text-transform: none;
|
|
2840
|
+
}
|
|
2841
|
+
.sp-manage:hover {
|
|
2842
|
+
color: var(--dpk-blue);
|
|
2843
|
+
}
|
|
2844
|
+
.sp-empty {
|
|
2845
|
+
margin: 0;
|
|
2846
|
+
color: var(--dpk-ink-faint);
|
|
2847
|
+
font-size: 12.5px;
|
|
2848
|
+
}
|
|
2849
|
+
.sp-labels {
|
|
2850
|
+
display: flex;
|
|
2851
|
+
flex-wrap: wrap;
|
|
2852
|
+
gap: 6px;
|
|
2853
|
+
}
|
|
2854
|
+
.sp-label {
|
|
2855
|
+
display: inline-flex;
|
|
2856
|
+
align-items: center;
|
|
2857
|
+
gap: 6px;
|
|
2858
|
+
padding: 3px 10px 3px 8px;
|
|
2859
|
+
border: 1px dashed var(--dpk-rule-strong);
|
|
2860
|
+
border-radius: 999px;
|
|
2861
|
+
background: transparent;
|
|
2862
|
+
color: var(--dpk-ink-soft);
|
|
2863
|
+
font: inherit;
|
|
2864
|
+
font-size: 12px;
|
|
2865
|
+
font-weight: 600;
|
|
2866
|
+
cursor: pointer;
|
|
2867
|
+
transition:
|
|
2868
|
+
background 140ms var(--dpk-ease),
|
|
2869
|
+
border-color 140ms var(--dpk-ease);
|
|
2870
|
+
}
|
|
2871
|
+
.sp-label:hover {
|
|
2872
|
+
border-color: color-mix(in oklab, var(--usm-tone) 60%, var(--dpk-rule-strong));
|
|
2873
|
+
}
|
|
2874
|
+
.sp-label:focus-visible {
|
|
2875
|
+
outline: none;
|
|
2876
|
+
box-shadow: var(--dpk-focus);
|
|
2877
|
+
}
|
|
2878
|
+
.sp-label[aria-pressed='true'] {
|
|
2879
|
+
border-style: solid;
|
|
2880
|
+
border-color: color-mix(in oklab, var(--usm-tone) 55%, transparent);
|
|
2881
|
+
background: color-mix(in oklab, var(--usm-tone) 14%, var(--dpk-paper-raised));
|
|
2882
|
+
color: var(--dpk-ink);
|
|
2883
|
+
}
|
|
2884
|
+
.sp-label-dot {
|
|
2885
|
+
width: 7px;
|
|
2886
|
+
height: 7px;
|
|
2887
|
+
border-radius: 50%;
|
|
2888
|
+
background: var(--usm-tone);
|
|
2889
|
+
opacity: 0.5;
|
|
2890
|
+
}
|
|
2891
|
+
.sp-label[aria-pressed='true'] .sp-label-dot {
|
|
2892
|
+
opacity: 1;
|
|
2893
|
+
}
|
|
2894
|
+
.sp-deps {
|
|
2895
|
+
gap: 12px;
|
|
2896
|
+
}
|
|
2897
|
+
.sp-dep-side {
|
|
2898
|
+
display: grid;
|
|
2899
|
+
gap: 6px;
|
|
2900
|
+
}
|
|
2901
|
+
.sp-dep-side h4 {
|
|
2902
|
+
margin: 0;
|
|
2903
|
+
color: var(--dpk-ink-soft);
|
|
2904
|
+
font-size: 11.5px;
|
|
2905
|
+
font-weight: 650;
|
|
2906
|
+
}
|
|
2907
|
+
.sp-dep-list {
|
|
2908
|
+
display: grid;
|
|
2909
|
+
gap: 4px;
|
|
2910
|
+
margin: 0;
|
|
2911
|
+
padding: 0;
|
|
2912
|
+
list-style: none;
|
|
2913
|
+
}
|
|
2914
|
+
.sp-dep-list li {
|
|
2915
|
+
display: flex;
|
|
2916
|
+
align-items: center;
|
|
2917
|
+
gap: 4px;
|
|
2918
|
+
border: 1px solid var(--dpk-rule);
|
|
2919
|
+
border-radius: var(--dpk-radius-sm);
|
|
2920
|
+
background: var(--dpk-paper-sunken);
|
|
2921
|
+
}
|
|
2922
|
+
.sp-dep-name {
|
|
2923
|
+
display: flex;
|
|
2924
|
+
align-items: center;
|
|
2925
|
+
gap: 8px;
|
|
2926
|
+
flex: 1 1 auto;
|
|
2927
|
+
min-width: 0;
|
|
2928
|
+
padding: 6px 4px 6px 10px;
|
|
2929
|
+
color: var(--dpk-ink);
|
|
2930
|
+
font-size: 12.5px;
|
|
2931
|
+
font-weight: 600;
|
|
2932
|
+
text-decoration: none;
|
|
2933
|
+
}
|
|
2934
|
+
.sp-dep-name span {
|
|
2935
|
+
overflow: hidden;
|
|
2936
|
+
text-overflow: ellipsis;
|
|
2937
|
+
white-space: nowrap;
|
|
2938
|
+
}
|
|
2939
|
+
.sp-dep-name:hover span {
|
|
2940
|
+
text-decoration: underline;
|
|
2941
|
+
}
|
|
2942
|
+
.sp-dep-list li[data-finished='true'] .sp-dep-name span {
|
|
2943
|
+
color: var(--dpk-ink-faint);
|
|
2944
|
+
text-decoration: line-through;
|
|
2945
|
+
}
|
|
2946
|
+
.sp-description {
|
|
2947
|
+
display: block;
|
|
2948
|
+
margin: 0 -4px;
|
|
2949
|
+
color: var(--dpk-ink-soft);
|
|
2950
|
+
font-size: 13px;
|
|
2951
|
+
line-height: 1.65;
|
|
2952
|
+
}
|
|
2953
|
+
.sp-links {
|
|
2954
|
+
display: grid;
|
|
2955
|
+
gap: 4px;
|
|
2956
|
+
margin: 0;
|
|
2957
|
+
padding: 0;
|
|
2958
|
+
list-style: none;
|
|
2959
|
+
}
|
|
2960
|
+
.sp-links li {
|
|
2961
|
+
display: flex;
|
|
2962
|
+
align-items: center;
|
|
2963
|
+
gap: 4px;
|
|
2964
|
+
border: 1px solid var(--dpk-rule);
|
|
2965
|
+
border-radius: var(--dpk-radius-sm);
|
|
2966
|
+
background: var(--dpk-paper-sunken);
|
|
2967
|
+
}
|
|
2968
|
+
.sp-link {
|
|
2969
|
+
display: grid;
|
|
2970
|
+
grid-template-columns: 16px minmax(0, 1fr);
|
|
2971
|
+
column-gap: 9px;
|
|
2972
|
+
align-items: center;
|
|
2973
|
+
flex: 1 1 auto;
|
|
2974
|
+
min-width: 0;
|
|
2975
|
+
padding: 7px 4px 7px 10px;
|
|
2976
|
+
color: var(--dpk-ink);
|
|
2977
|
+
text-decoration: none;
|
|
2978
|
+
}
|
|
2979
|
+
.sp-link:hover .sp-link-text {
|
|
2980
|
+
text-decoration: underline;
|
|
2981
|
+
}
|
|
2982
|
+
.sp-link svg {
|
|
2983
|
+
grid-row: span 2;
|
|
2984
|
+
width: 16px;
|
|
2985
|
+
height: 16px;
|
|
2986
|
+
color: var(--dpk-ink-soft);
|
|
2987
|
+
}
|
|
2988
|
+
.sp-link-text {
|
|
2989
|
+
overflow: hidden;
|
|
2990
|
+
font-family: var(--dpk-mono);
|
|
2991
|
+
font-size: 12.5px;
|
|
2992
|
+
font-weight: 650;
|
|
2993
|
+
text-overflow: ellipsis;
|
|
2994
|
+
white-space: nowrap;
|
|
2995
|
+
}
|
|
2996
|
+
.sp-link-url {
|
|
2997
|
+
overflow: hidden;
|
|
2998
|
+
color: var(--dpk-ink-faint);
|
|
2999
|
+
font-size: 11px;
|
|
3000
|
+
text-overflow: ellipsis;
|
|
3001
|
+
white-space: nowrap;
|
|
3002
|
+
}
|
|
3003
|
+
.sp-add-link {
|
|
3004
|
+
display: flex;
|
|
3005
|
+
gap: 6px;
|
|
3006
|
+
}
|
|
3007
|
+
.sp-add-link input {
|
|
3008
|
+
flex: 1 1 auto;
|
|
3009
|
+
min-width: 0;
|
|
3010
|
+
}
|
|
3011
|
+
.sp-add-link input[aria-invalid='true'] {
|
|
3012
|
+
border-color: var(--dpk-accent);
|
|
3013
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--dpk-accent) 22%, transparent);
|
|
3014
|
+
}
|
|
3015
|
+
/* The handoff dock floats at the bottom right, so the footer keeps left. */
|
|
3016
|
+
.sp-field h3 .sp-count {
|
|
3017
|
+
margin-left: 6px;
|
|
3018
|
+
font-family: var(--dpk-mono);
|
|
3019
|
+
letter-spacing: 0;
|
|
3020
|
+
}
|
|
3021
|
+
.sp-comment-list {
|
|
3022
|
+
display: grid;
|
|
3023
|
+
gap: 6px;
|
|
3024
|
+
margin: 0;
|
|
3025
|
+
padding: 0;
|
|
3026
|
+
list-style: none;
|
|
3027
|
+
}
|
|
3028
|
+
.sp-comment-list li {
|
|
3029
|
+
display: flex;
|
|
3030
|
+
align-items: flex-start;
|
|
3031
|
+
gap: 4px;
|
|
3032
|
+
padding: 8px 4px 8px 11px;
|
|
3033
|
+
border: 1px solid var(--dpk-rule);
|
|
3034
|
+
border-radius: var(--dpk-radius-sm);
|
|
3035
|
+
background: var(--dpk-paper-sunken);
|
|
3036
|
+
}
|
|
3037
|
+
.sp-comment-main {
|
|
3038
|
+
display: grid;
|
|
3039
|
+
gap: 2px;
|
|
3040
|
+
flex: 1 1 auto;
|
|
3041
|
+
min-width: 0;
|
|
3042
|
+
}
|
|
3043
|
+
.sp-comment-body {
|
|
3044
|
+
margin: 0;
|
|
3045
|
+
color: var(--dpk-ink);
|
|
3046
|
+
font-size: 12.5px;
|
|
3047
|
+
line-height: 1.6;
|
|
3048
|
+
white-space: pre-wrap;
|
|
3049
|
+
overflow-wrap: anywhere;
|
|
3050
|
+
}
|
|
3051
|
+
.sp-comment-time {
|
|
3052
|
+
color: var(--dpk-ink-faint);
|
|
3053
|
+
font-family: var(--dpk-mono);
|
|
3054
|
+
font-size: 10.5px;
|
|
3055
|
+
}
|
|
3056
|
+
.sp-comment-form {
|
|
3057
|
+
display: grid;
|
|
3058
|
+
gap: 6px;
|
|
3059
|
+
}
|
|
3060
|
+
.sp-comment-form textarea {
|
|
3061
|
+
resize: vertical;
|
|
3062
|
+
min-height: 64px;
|
|
3063
|
+
}
|
|
3064
|
+
.sp-comment-actions {
|
|
3065
|
+
display: flex;
|
|
3066
|
+
align-items: flex-start;
|
|
3067
|
+
justify-content: space-between;
|
|
3068
|
+
gap: 10px;
|
|
3069
|
+
}
|
|
3070
|
+
.sp-comment-hint {
|
|
3071
|
+
color: var(--dpk-ink-faint);
|
|
3072
|
+
font-size: 11px;
|
|
3073
|
+
line-height: 1.5;
|
|
3074
|
+
}
|
|
3075
|
+
.sp-comment-actions .dpk-btn {
|
|
3076
|
+
flex: none;
|
|
3077
|
+
}
|
|
3078
|
+
/* A request to the agent, not part of the story: it carries the review rail's comment icon. */
|
|
3079
|
+
.sp-review {
|
|
3080
|
+
display: inline-flex;
|
|
3081
|
+
flex: none;
|
|
3082
|
+
align-items: center;
|
|
3083
|
+
gap: 6px;
|
|
3084
|
+
height: 28px;
|
|
3085
|
+
padding: 0 10px;
|
|
3086
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
3087
|
+
border-radius: 999px;
|
|
3088
|
+
background: var(--dpk-paper-raised);
|
|
3089
|
+
color: var(--dpk-ink-soft);
|
|
3090
|
+
font: inherit;
|
|
3091
|
+
font-size: 11.5px;
|
|
3092
|
+
font-weight: 600;
|
|
3093
|
+
cursor: pointer;
|
|
3094
|
+
}
|
|
3095
|
+
.sp-review:hover {
|
|
3096
|
+
color: var(--dpk-accent);
|
|
3097
|
+
border-color: color-mix(in srgb, var(--dpk-accent) 45%, transparent);
|
|
3098
|
+
}
|
|
3099
|
+
.sp-review:focus-visible {
|
|
3100
|
+
outline: none;
|
|
3101
|
+
box-shadow: var(--dpk-focus);
|
|
3102
|
+
}
|
|
3103
|
+
.sp-review svg {
|
|
3104
|
+
width: 14px;
|
|
3105
|
+
height: 14px;
|
|
3106
|
+
}
|
|
3107
|
+
.sp-review-count {
|
|
3108
|
+
min-width: 16px;
|
|
3109
|
+
padding: 0 4px;
|
|
3110
|
+
border-radius: 999px;
|
|
3111
|
+
background: var(--dpk-accent-soft);
|
|
3112
|
+
color: var(--dpk-accent);
|
|
3113
|
+
font-family: var(--dpk-mono);
|
|
3114
|
+
font-size: 10px;
|
|
3115
|
+
line-height: 16px;
|
|
3116
|
+
text-align: center;
|
|
3117
|
+
}
|
|
3118
|
+
.sp-foot {
|
|
3119
|
+
display: flex;
|
|
3120
|
+
justify-content: flex-start;
|
|
3121
|
+
padding: 12px 22px;
|
|
3122
|
+
border-top: 1px solid var(--dpk-rule);
|
|
3123
|
+
}
|
|
3124
|
+
.sp-delete {
|
|
3125
|
+
display: inline-flex;
|
|
3126
|
+
align-items: center;
|
|
3127
|
+
gap: 6px;
|
|
3128
|
+
color: var(--dpk-ink-soft);
|
|
3129
|
+
}
|
|
3130
|
+
.sp-delete svg {
|
|
3131
|
+
width: 14px;
|
|
3132
|
+
height: 14px;
|
|
3133
|
+
}
|
|
3134
|
+
`,lo=e=>{const t=e.stories.length,a=r=>t===0?0:r/t,s=r=>e.stories.filter(o=>o.statusId===r).length,n=me(e);return{rows:e.statuses.map((r,o)=>{const d=s(r.id);return{id:r.id,name:r.name,tone:r.tone,icon:r.icon,progress:Ia(o,n),done:o===n,previousId:e.statuses[o-1]?.id??null,nextId:e.statuses[o+1]?.id??null,storyCount:d,share:a(d)}})}},po=q`
|
|
3135
|
+
:host {
|
|
3136
|
+
--dpk-usm-accent: var(--dpk-blue);
|
|
3137
|
+
}
|
|
3138
|
+
/*
|
|
3139
|
+
* A wide table must scroll inside itself and never widen the template shell.
|
|
3140
|
+
* It scrolls both ways so the backbone can stick to its top and the
|
|
3141
|
+
* milestone column to its left: a box that scrolls only sideways still
|
|
3142
|
+
* becomes the sticky ancestor, and its top would never move. It takes the
|
|
3143
|
+
* height left under the board head (tabs and toolbar), down to the page's
|
|
3144
|
+
* bottom edge: the hand-off dock floats over its corner, and the map's own
|
|
3145
|
+
* padding lets the last row scroll clear of it, so the page body keeps no
|
|
3146
|
+
* second clearance under it. On a short screen it keeps 320px and the page
|
|
3147
|
+
* scrolls instead.
|
|
3148
|
+
*/
|
|
3149
|
+
.dpk-main-body:has(> .map-scroll) {
|
|
3150
|
+
flex: 1 1 0;
|
|
3151
|
+
min-height: 0;
|
|
3152
|
+
grid-template-rows: auto minmax(320px, 1fr);
|
|
3153
|
+
padding-bottom: 16px;
|
|
3154
|
+
}
|
|
3155
|
+
.map-scroll {
|
|
3156
|
+
min-width: 0;
|
|
3157
|
+
max-width: 100%;
|
|
3158
|
+
overflow: auto;
|
|
3159
|
+
overscroll-behavior-x: contain;
|
|
3160
|
+
border: 1px solid var(--dpk-rule);
|
|
3161
|
+
border-radius: var(--dpk-radius-lg);
|
|
3162
|
+
background: var(--dpk-paper-sunken);
|
|
3163
|
+
box-shadow: var(--dpk-shadow);
|
|
3164
|
+
}
|
|
3165
|
+
.map {
|
|
3166
|
+
display: grid;
|
|
3167
|
+
gap: 0;
|
|
3168
|
+
min-width: max-content;
|
|
3169
|
+
/* The map scrolls on its own: its last row clears the hand-off dock at the end of that scroll. */
|
|
3170
|
+
padding-bottom: var(--dpk-dock-clearance, 0px);
|
|
3171
|
+
}
|
|
3172
|
+
.map-row {
|
|
3173
|
+
display: grid;
|
|
3174
|
+
grid-template-columns: 140px repeat(var(--cols), minmax(180px, 240px));
|
|
3175
|
+
}
|
|
3176
|
+
.map-row + .map-row {
|
|
3177
|
+
border-top: 1px solid var(--dpk-rule);
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
/* The backbone (activities and steps) stays at the top while the rows scroll. */
|
|
3181
|
+
.map-head {
|
|
3182
|
+
position: sticky;
|
|
3183
|
+
top: 0;
|
|
3184
|
+
z-index: 3;
|
|
3185
|
+
border-bottom: 1px solid var(--dpk-rule-strong);
|
|
3186
|
+
box-shadow: 0 8px 14px -12px var(--dpk-shade-3);
|
|
3187
|
+
}
|
|
3188
|
+
|
|
3189
|
+
/* The leading column (axis corners and milestone labels) stays at the left
|
|
3190
|
+
while the steps scroll sideways; it is opaque so cards pass under it. */
|
|
3191
|
+
.corner:first-child,
|
|
3192
|
+
.row-lead {
|
|
3193
|
+
position: sticky;
|
|
3194
|
+
left: 0;
|
|
3195
|
+
z-index: 2;
|
|
3196
|
+
box-shadow: 1px 0 0 var(--dpk-rule);
|
|
3197
|
+
}
|
|
3198
|
+
.row-lead {
|
|
3199
|
+
display: flex;
|
|
3200
|
+
flex-direction: column;
|
|
3201
|
+
align-items: flex-start;
|
|
3202
|
+
justify-content: center;
|
|
3203
|
+
gap: 2px;
|
|
3204
|
+
min-width: 0;
|
|
3205
|
+
padding: 8px 6px 8px 4px;
|
|
3206
|
+
background: var(--dpk-paper-sunken);
|
|
3207
|
+
}
|
|
3208
|
+
/* Row names and their meta line share one column: past the grip (15px), its
|
|
3209
|
+
gap (6px) and the inline edit's own padding (4px). */
|
|
3210
|
+
.row-lead {
|
|
3211
|
+
--usm-row-indent: 25px;
|
|
3212
|
+
}
|
|
3213
|
+
.row-meta {
|
|
3214
|
+
display: flex;
|
|
3215
|
+
flex-wrap: wrap;
|
|
3216
|
+
gap: 2px 8px;
|
|
3217
|
+
padding-left: var(--usm-row-indent);
|
|
3218
|
+
font-size: 10.5px;
|
|
3219
|
+
color: var(--dpk-ink-faint);
|
|
3220
|
+
}
|
|
3221
|
+
.row-timeframe {
|
|
3222
|
+
color: var(--dpk-ink-soft);
|
|
3223
|
+
font-weight: 600;
|
|
3224
|
+
}
|
|
3225
|
+
.row-count {
|
|
3226
|
+
font-family: var(--dpk-mono);
|
|
3227
|
+
font-variant-numeric: tabular-nums;
|
|
3228
|
+
}
|
|
3229
|
+
.corner,
|
|
3230
|
+
.act-head,
|
|
3231
|
+
.col-head,
|
|
3232
|
+
.row-head,
|
|
3233
|
+
.cell {
|
|
3234
|
+
padding: 10px;
|
|
3235
|
+
}
|
|
3236
|
+
.corner {
|
|
3237
|
+
background: var(--dpk-paper-sunken);
|
|
3238
|
+
display: grid;
|
|
3239
|
+
gap: 3px;
|
|
3240
|
+
align-content: start;
|
|
3241
|
+
}
|
|
3242
|
+
/* The backbone is read on every scroll, so its rows are kept short: the
|
|
3243
|
+
axis labels sit tight and the step names get a single slim line. */
|
|
3244
|
+
.map-head .corner {
|
|
3245
|
+
gap: 1px;
|
|
3246
|
+
padding: 7px 10px;
|
|
3247
|
+
line-height: 1.3;
|
|
3248
|
+
text-wrap: balance;
|
|
3249
|
+
}
|
|
3250
|
+
|
|
3251
|
+
/* Above the content: the page tabs (map / milestones) and, on the map, the
|
|
3252
|
+
unit toggle (group band vs one column per activity). */
|
|
3253
|
+
|
|
3254
|
+
/* The board bar and the map's toolbar stay on top together while a long
|
|
3255
|
+
milestone list or the map scrolls under them. */
|
|
3256
|
+
.board-head {
|
|
3257
|
+
position: sticky;
|
|
3258
|
+
top: 0;
|
|
3259
|
+
z-index: 5;
|
|
3260
|
+
margin: -24px -24px 0;
|
|
3261
|
+
background: var(--dpk-glass);
|
|
3262
|
+
backdrop-filter: saturate(1.6) blur(14px);
|
|
3263
|
+
min-width: 0;
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3266
|
+
.board-bar {
|
|
3267
|
+
--usm-bar-pad: 6px;
|
|
3268
|
+
border-bottom: 1px solid var(--dpk-rule);
|
|
3269
|
+
padding: var(--usm-bar-pad) 24px;
|
|
3270
|
+
display: flex;
|
|
3271
|
+
flex-wrap: wrap;
|
|
3272
|
+
align-items: center;
|
|
3273
|
+
gap: 10px 14px;
|
|
3274
|
+
min-width: 0;
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
/* The pages: an underlined tab strip, heavier than the view toggle. The
|
|
3278
|
+
tabs that do not fit fold behind the more button beside it (\`.page-nav\`);
|
|
3279
|
+
the bottom padding keeps the selected tab's underline, which sits on the
|
|
3280
|
+
bar's bottom rule, inside the clip. */
|
|
3281
|
+
.page-tabs {
|
|
3282
|
+
position: relative;
|
|
3283
|
+
display: inline-flex;
|
|
3284
|
+
gap: 4px;
|
|
3285
|
+
min-width: 0;
|
|
3286
|
+
margin-bottom: calc(-1 * var(--usm-bar-pad) - 1px);
|
|
3287
|
+
padding-bottom: calc(var(--usm-bar-pad) + 1px);
|
|
3288
|
+
overflow: hidden;
|
|
3289
|
+
}
|
|
3290
|
+
.page-tabs [role='tab'] {
|
|
3291
|
+
position: relative;
|
|
3292
|
+
display: inline-flex;
|
|
3293
|
+
align-items: center;
|
|
3294
|
+
gap: 8px;
|
|
3295
|
+
padding: 5px 10px;
|
|
3296
|
+
border-radius: var(--dpk-radius-sm);
|
|
3297
|
+
color: var(--dpk-ink-soft);
|
|
3298
|
+
font-size: 13.5px;
|
|
3299
|
+
font-weight: 600;
|
|
3300
|
+
letter-spacing: -0.005em;
|
|
3301
|
+
text-decoration: none;
|
|
3302
|
+
white-space: nowrap;
|
|
3303
|
+
transition:
|
|
3304
|
+
color 160ms var(--dpk-ease),
|
|
3305
|
+
background 160ms var(--dpk-ease);
|
|
3306
|
+
}
|
|
3307
|
+
.page-tabs [role='tab']:hover {
|
|
3308
|
+
color: var(--dpk-ink);
|
|
3309
|
+
background: var(--dpk-paper-inset);
|
|
3310
|
+
}
|
|
3311
|
+
.page-tabs [role='tab']:focus-visible {
|
|
3312
|
+
outline: none;
|
|
3313
|
+
box-shadow: var(--dpk-focus);
|
|
3314
|
+
}
|
|
3315
|
+
.page-tabs [role='tab'][aria-selected='true'] {
|
|
3316
|
+
color: var(--dpk-ink);
|
|
3317
|
+
font-weight: 700;
|
|
3318
|
+
}
|
|
3319
|
+
.page-tabs [role='tab'][aria-selected='true']::after {
|
|
3320
|
+
content: '';
|
|
3321
|
+
position: absolute;
|
|
3322
|
+
left: 10px;
|
|
3323
|
+
right: 10px;
|
|
3324
|
+
bottom: calc(-1 * var(--usm-bar-pad) - 1px);
|
|
3325
|
+
height: 2px;
|
|
3326
|
+
border-radius: 2px;
|
|
3327
|
+
background: var(--dpk-usm-accent);
|
|
3328
|
+
}
|
|
3329
|
+
.page-tab-count {
|
|
3330
|
+
min-width: 18px;
|
|
3331
|
+
padding: 0 6px;
|
|
3332
|
+
border-radius: 999px;
|
|
3333
|
+
background: var(--dpk-rule);
|
|
3334
|
+
color: var(--dpk-ink-soft);
|
|
3335
|
+
font-family: var(--dpk-mono);
|
|
3336
|
+
font-size: 10.5px;
|
|
3337
|
+
font-weight: 650;
|
|
3338
|
+
font-variant-numeric: tabular-nums;
|
|
3339
|
+
line-height: 17px;
|
|
3340
|
+
text-align: center;
|
|
3341
|
+
}
|
|
3342
|
+
[role='tab'][aria-selected='true'] .page-tab-count {
|
|
3343
|
+
background: var(--dpk-blue-soft);
|
|
3344
|
+
color: var(--dpk-blue);
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
/* A sunken track with the selected segment raised on top of it. */
|
|
3348
|
+
.segmented {
|
|
3349
|
+
display: inline-flex;
|
|
3350
|
+
gap: 2px;
|
|
3351
|
+
padding: 2px;
|
|
3352
|
+
max-width: 100%;
|
|
3353
|
+
overflow-x: auto;
|
|
3354
|
+
scrollbar-width: none;
|
|
3355
|
+
border: 1px solid var(--dpk-rule);
|
|
3356
|
+
border-radius: 999px;
|
|
3357
|
+
background: var(--dpk-paper-sunken);
|
|
3358
|
+
box-shadow: inset 0 1px 3px var(--dpk-shade-1);
|
|
3359
|
+
}
|
|
3360
|
+
|
|
3361
|
+
.tab {
|
|
3362
|
+
padding: 4px 12px;
|
|
3363
|
+
border-radius: 999px;
|
|
3364
|
+
font-size: 12px;
|
|
3365
|
+
font-weight: 550;
|
|
3366
|
+
text-decoration: none;
|
|
3367
|
+
color: var(--dpk-ink-soft);
|
|
3368
|
+
white-space: nowrap;
|
|
3369
|
+
transition:
|
|
3370
|
+
background 160ms var(--dpk-ease),
|
|
3371
|
+
color 160ms var(--dpk-ease),
|
|
3372
|
+
box-shadow 160ms var(--dpk-ease);
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
.tab:hover {
|
|
3376
|
+
color: var(--dpk-ink);
|
|
3377
|
+
background: var(--dpk-paper-inset);
|
|
3378
|
+
}
|
|
3379
|
+
|
|
3380
|
+
.tab[data-current='true'] {
|
|
3381
|
+
background: var(--dpk-paper-raised);
|
|
3382
|
+
color: var(--dpk-ink);
|
|
3383
|
+
font-weight: 650;
|
|
3384
|
+
box-shadow: var(--dpk-bevel), var(--dpk-shadow-xs);
|
|
3385
|
+
}
|
|
3386
|
+
|
|
3387
|
+
/* Activity band: raised above the working canvas. A head spans its steps,
|
|
3388
|
+
so its contents stay in view beside the sticky column while the map
|
|
3389
|
+
scrolls sideways. */
|
|
3390
|
+
.act-head {
|
|
3391
|
+
position: relative;
|
|
3392
|
+
display: grid;
|
|
3393
|
+
align-content: start;
|
|
3394
|
+
gap: 4px;
|
|
3395
|
+
padding: 7px 10px 11px;
|
|
3396
|
+
border-left: 1px solid var(--dpk-rule);
|
|
3397
|
+
background: var(--dpk-paper-raised);
|
|
3398
|
+
box-shadow:
|
|
3399
|
+
var(--dpk-bevel),
|
|
3400
|
+
inset 0 -1px 0 var(--dpk-rule-strong);
|
|
3401
|
+
font-size: 13px;
|
|
3402
|
+
font-weight: 650;
|
|
3403
|
+
letter-spacing: -0.005em;
|
|
3404
|
+
}
|
|
3405
|
+
.act-title,
|
|
3406
|
+
.act-steps {
|
|
3407
|
+
position: sticky;
|
|
3408
|
+
left: 150px;
|
|
3409
|
+
width: min(100%, 340px);
|
|
3410
|
+
min-width: 0;
|
|
3411
|
+
}
|
|
3412
|
+
.act-title {
|
|
3413
|
+
display: flex;
|
|
3414
|
+
align-items: center;
|
|
3415
|
+
gap: 8px;
|
|
3416
|
+
}
|
|
3417
|
+
/* The name keeps its whole line while it fits; the actor beside it gives
|
|
3418
|
+
way (truncates) first, down to an ellipsis. */
|
|
3419
|
+
.act-name {
|
|
3420
|
+
display: flex;
|
|
3421
|
+
flex: 1 1 auto;
|
|
3422
|
+
align-items: center;
|
|
3423
|
+
gap: 8px;
|
|
3424
|
+
min-width: 0;
|
|
3425
|
+
}
|
|
3426
|
+
.act-name > dpk-component-inline-edit {
|
|
3427
|
+
flex: none;
|
|
3428
|
+
max-width: calc(100% - 32px);
|
|
3429
|
+
}
|
|
3430
|
+
/* How far the group's stories have come: a strip along the head's bottom
|
|
3431
|
+
edge, as wide as the steps it spans, so it costs the band no line. */
|
|
3432
|
+
.act-head > .status-bar {
|
|
3433
|
+
position: absolute;
|
|
3434
|
+
left: 0;
|
|
3435
|
+
right: 0;
|
|
3436
|
+
bottom: 0;
|
|
3437
|
+
height: 4px;
|
|
3438
|
+
gap: 1px;
|
|
3439
|
+
}
|
|
3440
|
+
.act-head > .status-bar .status-bar-part {
|
|
3441
|
+
border-radius: 0;
|
|
3442
|
+
}
|
|
3443
|
+
/* Whose experience the activity is: a label beside the name, editable in place. */
|
|
3444
|
+
.act-actor {
|
|
3445
|
+
display: flex;
|
|
3446
|
+
flex: 0 1 auto;
|
|
3447
|
+
min-width: 24px;
|
|
3448
|
+
max-width: 60%;
|
|
3449
|
+
padding: 0 4px;
|
|
3450
|
+
border-radius: 999px;
|
|
3451
|
+
background: var(--dpk-blue-soft);
|
|
3452
|
+
color: var(--dpk-blue);
|
|
3453
|
+
font-size: 11px;
|
|
3454
|
+
font-weight: 650;
|
|
3455
|
+
line-height: 20px;
|
|
3456
|
+
}
|
|
3457
|
+
.act-actor > dpk-component-inline-edit {
|
|
3458
|
+
min-width: 0;
|
|
3459
|
+
}
|
|
3460
|
+
.act-actor[data-empty='true'] {
|
|
3461
|
+
background: transparent;
|
|
3462
|
+
opacity: 0;
|
|
3463
|
+
transition: opacity 150ms ease;
|
|
3464
|
+
}
|
|
3465
|
+
.act-head:hover .act-actor[data-empty='true'],
|
|
3466
|
+
.act-actor[data-empty='true']:focus-within {
|
|
3467
|
+
opacity: 1;
|
|
3468
|
+
}
|
|
3469
|
+
/* The group view gives the steps no columns; the head lists them instead. */
|
|
3470
|
+
.act-steps {
|
|
3471
|
+
display: grid;
|
|
3472
|
+
gap: 3px;
|
|
3473
|
+
margin: 0;
|
|
3474
|
+
padding: 0 0 0 18px;
|
|
3475
|
+
color: var(--dpk-ink-soft);
|
|
3476
|
+
font-size: 11.5px;
|
|
3477
|
+
font-weight: 500;
|
|
3478
|
+
line-height: 1.45;
|
|
3479
|
+
}
|
|
3480
|
+
.act-steps li::marker {
|
|
3481
|
+
color: var(--dpk-ink-faint);
|
|
3482
|
+
font-family: var(--dpk-mono);
|
|
3483
|
+
font-size: 10px;
|
|
3484
|
+
}
|
|
3485
|
+
.act-head .count,
|
|
3486
|
+
.col-head .count {
|
|
3487
|
+
flex: 0 0 auto;
|
|
3488
|
+
padding: 0 6px;
|
|
3489
|
+
border-radius: 999px;
|
|
3490
|
+
background: var(--dpk-rule);
|
|
3491
|
+
line-height: 16px;
|
|
3492
|
+
}
|
|
3493
|
+
.col-head {
|
|
3494
|
+
display: flex;
|
|
3495
|
+
align-items: center;
|
|
3496
|
+
gap: 6px;
|
|
3497
|
+
padding-block: 5px;
|
|
3498
|
+
border-left: 1px solid var(--dpk-rule);
|
|
3499
|
+
background: var(--dpk-paper-sunken);
|
|
3500
|
+
transition: background 160ms var(--dpk-ease);
|
|
3501
|
+
}
|
|
3502
|
+
.col-head h4 {
|
|
3503
|
+
flex: 1 1 auto;
|
|
3504
|
+
min-width: 0;
|
|
3505
|
+
}
|
|
3506
|
+
.col-head[data-current='true'] {
|
|
3507
|
+
background: color-mix(in srgb, var(--dpk-usm-accent) 8%, var(--dpk-paper-sunken));
|
|
3508
|
+
}
|
|
3509
|
+
.col-head h4 {
|
|
3510
|
+
font-size: 13px;
|
|
3511
|
+
font-weight: 600;
|
|
3512
|
+
margin: 0;
|
|
3513
|
+
}
|
|
3514
|
+
|
|
3515
|
+
.row-head {
|
|
3516
|
+
display: flex;
|
|
3517
|
+
align-items: center;
|
|
3518
|
+
gap: 6px;
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3521
|
+
/* Milestone row label: plain text with a grip, not a chip. The "add
|
|
3522
|
+
milestone" row reuses \`.row-head\` for its ghost button. */
|
|
3523
|
+
.row-head[data-milestone] {
|
|
3524
|
+
align-self: stretch;
|
|
3525
|
+
margin: 0;
|
|
3526
|
+
padding: 0 6px 0 0;
|
|
3527
|
+
color: var(--dpk-ink);
|
|
3528
|
+
font-size: 12.5px;
|
|
3529
|
+
font-weight: 650;
|
|
3530
|
+
max-width: 100%;
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
.row-head[draggable='true'] {
|
|
3534
|
+
cursor: grab;
|
|
3535
|
+
-webkit-user-select: none;
|
|
3536
|
+
user-select: none;
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
.row-head[draggable='true'] dpk-component-inline-edit {
|
|
3540
|
+
-webkit-user-drag: none;
|
|
3541
|
+
}
|
|
3542
|
+
|
|
3543
|
+
.row-head[draggable='true']:active {
|
|
3544
|
+
cursor: grabbing;
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3547
|
+
.row-grip {
|
|
3548
|
+
flex: 0 0 auto;
|
|
3549
|
+
display: inline-flex;
|
|
3550
|
+
color: var(--dpk-ink-faint);
|
|
3551
|
+
}
|
|
3552
|
+
|
|
3553
|
+
.row-grip svg {
|
|
3554
|
+
display: block;
|
|
3555
|
+
width: 15px;
|
|
3556
|
+
height: 15px;
|
|
3557
|
+
}
|
|
3558
|
+
|
|
3559
|
+
/* Row-level drag affordance: only the grip answers the hover. */
|
|
3560
|
+
.map-row[data-draggable='true']:hover .row-grip {
|
|
3561
|
+
color: var(--dpk-blue);
|
|
3562
|
+
}
|
|
3563
|
+
.map-row[data-draggable='true'] {
|
|
3564
|
+
cursor: grab;
|
|
3565
|
+
}
|
|
3566
|
+
.map-row[data-draggable='true']:active {
|
|
3567
|
+
cursor: grabbing;
|
|
3568
|
+
}
|
|
3569
|
+
|
|
3570
|
+
/*
|
|
3571
|
+
* Dragging state: entire row fades. Never disable pointer events on the
|
|
3572
|
+
* source here: Lit applies this state in the microtask right after
|
|
3573
|
+
* \`dragstart\`, and Blink then re-hit-tests the pointer and aborts the drag
|
|
3574
|
+
* when the source is no longer under it.
|
|
3575
|
+
*/
|
|
3576
|
+
.map-row[data-row-dragging='true'] {
|
|
3577
|
+
opacity: 0.45;
|
|
3578
|
+
}
|
|
3579
|
+
|
|
3580
|
+
/* Drop target: entire row highlights. */
|
|
3581
|
+
.map-row[data-row-drop='true'] {
|
|
3582
|
+
outline: 2px dashed var(--dpk-blue);
|
|
3583
|
+
outline-offset: -2px;
|
|
3584
|
+
}
|
|
3585
|
+
|
|
3586
|
+
/* Column drag: a group's head or a step's head is its column's handle, the
|
|
3587
|
+
way a row head is a milestone's. The grip answers the hover. */
|
|
3588
|
+
.act-head[draggable='true'],
|
|
3589
|
+
.col-head[draggable='true'] {
|
|
3590
|
+
cursor: grab;
|
|
3591
|
+
-webkit-user-select: none;
|
|
3592
|
+
user-select: none;
|
|
3593
|
+
}
|
|
3594
|
+
.act-head[draggable='true']:active,
|
|
3595
|
+
.col-head[draggable='true']:active {
|
|
3596
|
+
cursor: grabbing;
|
|
3597
|
+
}
|
|
3598
|
+
.act-head[draggable='true'] dpk-component-inline-edit,
|
|
3599
|
+
.col-head[draggable='true'] dpk-component-inline-edit {
|
|
3600
|
+
-webkit-user-drag: none;
|
|
3601
|
+
}
|
|
3602
|
+
.col-grip {
|
|
3603
|
+
flex: none;
|
|
3604
|
+
display: inline-flex;
|
|
3605
|
+
color: var(--dpk-ink-faint);
|
|
3606
|
+
}
|
|
3607
|
+
.col-grip svg {
|
|
3608
|
+
display: block;
|
|
3609
|
+
width: 13px;
|
|
3610
|
+
height: 13px;
|
|
3611
|
+
}
|
|
3612
|
+
.act-head[draggable='true']:hover .col-grip,
|
|
3613
|
+
.col-head[draggable='true']:hover .col-grip {
|
|
3614
|
+
color: var(--dpk-blue);
|
|
3615
|
+
}
|
|
3616
|
+
/* The dragged column fades from head to last cell, like a dragged row. */
|
|
3617
|
+
.act-head[data-col-dragging='true'],
|
|
3618
|
+
.col-head[data-col-dragging='true'],
|
|
3619
|
+
.cell[data-col-dragging='true'] {
|
|
3620
|
+
opacity: 0.45;
|
|
3621
|
+
}
|
|
3622
|
+
/* The column a dragged one would land in lights up from head to last cell,
|
|
3623
|
+
the way a row does: its sides run down every part and its head caps it.
|
|
3624
|
+
A group's column spans its steps, so only its outer steps draw its sides. */
|
|
3625
|
+
.act-head:is([data-col-drop='activity'], [data-col-drop='step']),
|
|
3626
|
+
.col-head:is([data-col-drop='activity'], [data-col-drop='step']),
|
|
3627
|
+
.cell:is([data-col-drop='activity'], [data-col-drop='step']) {
|
|
3628
|
+
--usm-col-left: 2px;
|
|
3629
|
+
--usm-col-right: 2px;
|
|
3630
|
+
--usm-col-top: 0px;
|
|
3631
|
+
box-shadow:
|
|
3632
|
+
inset var(--usm-col-left) 0 0 var(--dpk-blue),
|
|
3633
|
+
inset calc(var(--usm-col-right) * -1) 0 0 var(--dpk-blue),
|
|
3634
|
+
inset 0 var(--usm-col-top) 0 var(--dpk-blue);
|
|
3635
|
+
}
|
|
3636
|
+
[data-col-drop='activity'][data-step-edge]:not([data-step-edge~='first']) {
|
|
3637
|
+
--usm-col-left: 0px;
|
|
3638
|
+
}
|
|
3639
|
+
[data-col-drop='activity'][data-step-edge]:not([data-step-edge~='last']) {
|
|
3640
|
+
--usm-col-right: 0px;
|
|
3641
|
+
}
|
|
3642
|
+
.act-head[data-col-drop='activity'],
|
|
3643
|
+
.col-head[data-col-drop='step'] {
|
|
3644
|
+
--usm-col-top: 2px;
|
|
3645
|
+
}
|
|
3646
|
+
.cell:is([data-col-drop='activity'], [data-col-drop='step']) {
|
|
3647
|
+
background: linear-gradient(var(--dpk-blue-soft), var(--dpk-blue-soft)), var(--dpk-dots), var(--dpk-paper-sunken);
|
|
3648
|
+
}
|
|
3649
|
+
/* The heads stay opaque: the cells scroll under them. */
|
|
3650
|
+
.act-head:is([data-col-drop='activity'], [data-col-drop='step']),
|
|
3651
|
+
.col-head:is([data-col-drop='activity'], [data-col-drop='step']) {
|
|
3652
|
+
background-image: linear-gradient(var(--dpk-blue-soft), var(--dpk-blue-soft));
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3655
|
+
/* Unassigned is a holding area, not a release: its label is quieter. */
|
|
3656
|
+
.map-row[data-unassigned='true'] .row-head {
|
|
3657
|
+
padding-left: var(--usm-row-indent);
|
|
3658
|
+
color: var(--dpk-ink-soft);
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3661
|
+
/* Cells are the working canvas: sunken, with a quiet dot lattice, so raised
|
|
3662
|
+
story cards read as things placed on the board. */
|
|
3663
|
+
.cell {
|
|
3664
|
+
border-left: 1px solid var(--dpk-rule);
|
|
3665
|
+
border-top: 1px solid var(--dpk-rule);
|
|
3666
|
+
display: flex;
|
|
3667
|
+
flex-direction: column;
|
|
3668
|
+
gap: 8px;
|
|
3669
|
+
min-height: 100px;
|
|
3670
|
+
background: var(--dpk-dots), var(--dpk-paper-sunken);
|
|
3671
|
+
transition: background 160ms var(--dpk-ease);
|
|
3672
|
+
}
|
|
3673
|
+
.cell[data-drop='true'] {
|
|
3674
|
+
outline: 2px dashed var(--dpk-blue);
|
|
3675
|
+
outline-offset: -2px;
|
|
3676
|
+
}
|
|
3677
|
+
.card-list {
|
|
3678
|
+
display: grid;
|
|
3679
|
+
gap: 10px;
|
|
3680
|
+
align-content: start;
|
|
3681
|
+
flex: 1 1 auto;
|
|
3682
|
+
}
|
|
3683
|
+
.add-cell {
|
|
3684
|
+
margin-top: auto;
|
|
3685
|
+
opacity: 0;
|
|
3686
|
+
transition:
|
|
3687
|
+
opacity 180ms var(--dpk-ease),
|
|
3688
|
+
background 160ms var(--dpk-ease),
|
|
3689
|
+
border-color 160ms var(--dpk-ease),
|
|
3690
|
+
color 160ms var(--dpk-ease);
|
|
3691
|
+
border: 1px dashed var(--dpk-rule-strong);
|
|
3692
|
+
border-radius: var(--dpk-radius-sm);
|
|
3693
|
+
background: transparent;
|
|
3694
|
+
color: var(--dpk-ink-faint);
|
|
3695
|
+
padding: 4px 8px;
|
|
3696
|
+
font-size: 11.5px;
|
|
3697
|
+
}
|
|
3698
|
+
.add-cell:hover {
|
|
3699
|
+
background: var(--dpk-blue-soft);
|
|
3700
|
+
border-color: var(--dpk-blue);
|
|
3701
|
+
color: var(--dpk-blue);
|
|
3702
|
+
}
|
|
3703
|
+
.cell:hover .add-cell {
|
|
3704
|
+
opacity: 1;
|
|
3705
|
+
}
|
|
3706
|
+
.empty {
|
|
3707
|
+
border: 1px dashed var(--dpk-rule-strong);
|
|
3708
|
+
border-radius: var(--dpk-radius-lg);
|
|
3709
|
+
padding: 28px 24px;
|
|
3710
|
+
background: var(--dpk-dots), var(--dpk-paper-sunken);
|
|
3711
|
+
max-width: 620px;
|
|
3712
|
+
display: grid;
|
|
3713
|
+
gap: 10px;
|
|
3714
|
+
}
|
|
3715
|
+
.count {
|
|
3716
|
+
font-family: var(--dpk-mono);
|
|
3717
|
+
font-variant-numeric: tabular-nums;
|
|
3718
|
+
font-size: 10px;
|
|
3719
|
+
color: var(--dpk-ink-faint);
|
|
3720
|
+
}
|
|
3721
|
+
|
|
3722
|
+
/* ------------------------------------------------------ milestones tab */
|
|
3723
|
+
|
|
3724
|
+
/* The release slices as a timeline, like the experience section of a
|
|
3725
|
+
portfolio: when on the left, one node per slice on a single rail, what
|
|
3726
|
+
and how big on the right. Nothing is boxed; the rail carries the order. */
|
|
3727
|
+
.ms-overview {
|
|
3728
|
+
--ms-node: 30px;
|
|
3729
|
+
--ms-when: 132px;
|
|
3730
|
+
--ms-gap: 44px;
|
|
3731
|
+
display: grid;
|
|
3732
|
+
gap: 28px;
|
|
3733
|
+
max-width: 920px;
|
|
3734
|
+
padding: 28px 0 40px;
|
|
3735
|
+
}
|
|
3736
|
+
.ms-timeline {
|
|
3737
|
+
margin: 0;
|
|
3738
|
+
padding: 0;
|
|
3739
|
+
list-style: none;
|
|
3740
|
+
}
|
|
3741
|
+
.ms-entry,
|
|
3742
|
+
.ms-add {
|
|
3743
|
+
display: grid;
|
|
3744
|
+
grid-template-columns: var(--ms-when) var(--ms-node) minmax(0, 1fr);
|
|
3745
|
+
grid-template-areas: 'when rail body';
|
|
3746
|
+
column-gap: 24px;
|
|
3747
|
+
}
|
|
3748
|
+
.ms-entry {
|
|
3749
|
+
padding-bottom: var(--ms-gap);
|
|
3750
|
+
}
|
|
3751
|
+
.ms-when {
|
|
3752
|
+
grid-area: when;
|
|
3753
|
+
display: flex;
|
|
3754
|
+
justify-content: flex-end;
|
|
3755
|
+
padding-top: 5px;
|
|
3756
|
+
}
|
|
3757
|
+
.ms-timeframe {
|
|
3758
|
+
color: var(--dpk-ink);
|
|
3759
|
+
font-size: 13px;
|
|
3760
|
+
font-weight: 650;
|
|
3761
|
+
font-variant-numeric: tabular-nums;
|
|
3762
|
+
letter-spacing: 0.01em;
|
|
3763
|
+
text-align: right;
|
|
3764
|
+
}
|
|
3765
|
+
.ms-timeframe[data-empty='true'] {
|
|
3766
|
+
color: var(--dpk-ink-faint);
|
|
3767
|
+
font-weight: 500;
|
|
3768
|
+
}
|
|
3769
|
+
|
|
3770
|
+
/* The rail runs through every entry's padding, so the nodes read as one line;
|
|
3771
|
+
it starts at the first node and fades out into the add node. */
|
|
3772
|
+
.ms-rail {
|
|
3773
|
+
grid-area: rail;
|
|
3774
|
+
position: relative;
|
|
3775
|
+
display: flex;
|
|
3776
|
+
justify-content: center;
|
|
3777
|
+
}
|
|
3778
|
+
.ms-rail::before {
|
|
3779
|
+
content: '';
|
|
3780
|
+
position: absolute;
|
|
3781
|
+
top: 0;
|
|
3782
|
+
bottom: calc(-1 * var(--ms-gap));
|
|
3783
|
+
left: calc(50% - 1px);
|
|
3784
|
+
width: 2px;
|
|
3785
|
+
border-radius: 1px;
|
|
3786
|
+
background: var(--dpk-rule-strong);
|
|
3787
|
+
}
|
|
3788
|
+
.ms-entry:first-child .ms-rail::before {
|
|
3789
|
+
top: calc(var(--ms-node) / 2);
|
|
3790
|
+
}
|
|
3791
|
+
.ms-add .ms-rail::before {
|
|
3792
|
+
bottom: auto;
|
|
3793
|
+
height: calc(var(--ms-node) / 2);
|
|
3794
|
+
background: repeating-linear-gradient(to bottom, var(--dpk-rule-strong) 0 3px, transparent 3px 7px);
|
|
3795
|
+
}
|
|
3796
|
+
.ms-node {
|
|
3797
|
+
position: relative;
|
|
3798
|
+
display: grid;
|
|
3799
|
+
place-items: center;
|
|
3800
|
+
width: var(--ms-node);
|
|
3801
|
+
height: var(--ms-node);
|
|
3802
|
+
box-sizing: border-box;
|
|
3803
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
3804
|
+
border-radius: 50%;
|
|
3805
|
+
background: var(--dpk-paper-raised);
|
|
3806
|
+
color: var(--dpk-ink);
|
|
3807
|
+
font-family: var(--dpk-mono);
|
|
3808
|
+
font-size: 12px;
|
|
3809
|
+
font-weight: 700;
|
|
3810
|
+
font-variant-numeric: tabular-nums;
|
|
3811
|
+
/* A ring of page color cuts the rail around the node. */
|
|
3812
|
+
box-shadow:
|
|
3813
|
+
0 0 0 5px var(--dpk-paper),
|
|
3814
|
+
var(--dpk-bevel),
|
|
3815
|
+
var(--dpk-shadow-xs);
|
|
3816
|
+
transition:
|
|
3817
|
+
border-color 160ms var(--dpk-ease),
|
|
3818
|
+
color 160ms var(--dpk-ease);
|
|
3819
|
+
}
|
|
3820
|
+
.ms-entry:hover .ms-node,
|
|
3821
|
+
.ms-entry:focus-within .ms-node {
|
|
3822
|
+
border-color: var(--dpk-blue);
|
|
3823
|
+
color: var(--dpk-blue-strong);
|
|
3824
|
+
}
|
|
3825
|
+
.ms-node--add {
|
|
3826
|
+
border-style: dashed;
|
|
3827
|
+
background: var(--dpk-paper);
|
|
3828
|
+
box-shadow: 0 0 0 5px var(--dpk-paper);
|
|
3829
|
+
}
|
|
3830
|
+
.ms-node--add::before,
|
|
3831
|
+
.ms-node--add::after {
|
|
3832
|
+
content: '';
|
|
3833
|
+
position: absolute;
|
|
3834
|
+
left: 50%;
|
|
3835
|
+
top: 50%;
|
|
3836
|
+
width: 10px;
|
|
3837
|
+
height: 1.5px;
|
|
3838
|
+
border-radius: 1px;
|
|
3839
|
+
background: var(--dpk-ink-faint);
|
|
3840
|
+
transform: translate(-50%, -50%);
|
|
3841
|
+
}
|
|
3842
|
+
.ms-node--add::after {
|
|
3843
|
+
transform: translate(-50%, -50%) rotate(90deg);
|
|
3844
|
+
}
|
|
3845
|
+
.ms-add .ms-body {
|
|
3846
|
+
display: flex;
|
|
3847
|
+
align-items: center;
|
|
3848
|
+
min-height: var(--ms-node);
|
|
3849
|
+
}
|
|
3850
|
+
/* The label lines up with the names above; the button's padding hangs out. */
|
|
3851
|
+
.ms-add .dpk-btn {
|
|
3852
|
+
margin-left: -12px;
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3855
|
+
.ms-body {
|
|
3856
|
+
grid-area: body;
|
|
3857
|
+
display: grid;
|
|
3858
|
+
gap: 10px;
|
|
3859
|
+
min-width: 0;
|
|
3860
|
+
justify-items: start;
|
|
3861
|
+
}
|
|
3862
|
+
.ms-name {
|
|
3863
|
+
justify-self: stretch;
|
|
3864
|
+
min-width: 0;
|
|
3865
|
+
margin: 0;
|
|
3866
|
+
padding-top: 1px;
|
|
3867
|
+
font-size: 19px;
|
|
3868
|
+
font-weight: 700;
|
|
3869
|
+
line-height: 1.4;
|
|
3870
|
+
letter-spacing: -0.015em;
|
|
3871
|
+
}
|
|
3872
|
+
/* The field pads its text by 4px; pull it out by as much so the name lines
|
|
3873
|
+
up with the description and keeps its place when editing starts. */
|
|
3874
|
+
.ms-name dpk-component-inline-edit {
|
|
3875
|
+
display: block;
|
|
3876
|
+
margin: 0 -4px;
|
|
3877
|
+
}
|
|
3878
|
+
.ms-description {
|
|
3879
|
+
margin: 0;
|
|
3880
|
+
max-width: 64ch;
|
|
3881
|
+
color: var(--dpk-ink-soft);
|
|
3882
|
+
font-size: 14px;
|
|
3883
|
+
line-height: 1.75;
|
|
3884
|
+
white-space: pre-wrap;
|
|
3885
|
+
}
|
|
3886
|
+
.ms-description[data-empty='true'] {
|
|
3887
|
+
color: var(--dpk-ink-faint);
|
|
3888
|
+
font-size: 13px;
|
|
3889
|
+
}
|
|
3890
|
+
.ms-facts {
|
|
3891
|
+
display: flex;
|
|
3892
|
+
flex-wrap: wrap;
|
|
3893
|
+
gap: 10px 36px;
|
|
3894
|
+
margin: 6px 0 0;
|
|
3895
|
+
}
|
|
3896
|
+
.ms-facts dt {
|
|
3897
|
+
margin-bottom: 3px;
|
|
3898
|
+
color: var(--dpk-ink-faint);
|
|
3899
|
+
font-size: 11px;
|
|
3900
|
+
font-weight: 600;
|
|
3901
|
+
letter-spacing: 0.02em;
|
|
3902
|
+
}
|
|
3903
|
+
.ms-facts dd {
|
|
3904
|
+
display: flex;
|
|
3905
|
+
align-items: center;
|
|
3906
|
+
gap: 10px;
|
|
3907
|
+
margin: 0;
|
|
3908
|
+
color: var(--dpk-ink-faint);
|
|
3909
|
+
font-size: 12px;
|
|
3910
|
+
}
|
|
3911
|
+
.ms-facts strong {
|
|
3912
|
+
color: var(--dpk-ink);
|
|
3913
|
+
font-size: 15px;
|
|
3914
|
+
font-weight: 650;
|
|
3915
|
+
font-variant-numeric: tabular-nums;
|
|
3916
|
+
}
|
|
3917
|
+
.ms-meter {
|
|
3918
|
+
display: block;
|
|
3919
|
+
width: 72px;
|
|
3920
|
+
height: 4px;
|
|
3921
|
+
border-radius: 2px;
|
|
3922
|
+
background: var(--dpk-paper-inset);
|
|
3923
|
+
overflow: hidden;
|
|
3924
|
+
}
|
|
3925
|
+
.ms-meter > span {
|
|
3926
|
+
display: block;
|
|
3927
|
+
height: 100%;
|
|
3928
|
+
border-radius: inherit;
|
|
3929
|
+
background: var(--dpk-blue);
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3932
|
+
/* Where the slice's stories sit across the backbone, in activity tones. */
|
|
3933
|
+
.ms-breakdown {
|
|
3934
|
+
display: grid;
|
|
3935
|
+
gap: 10px;
|
|
3936
|
+
width: min(100%, 460px);
|
|
3937
|
+
margin-top: 4px;
|
|
3938
|
+
}
|
|
3939
|
+
.ms-breakdown .status-bar {
|
|
3940
|
+
height: 8px;
|
|
3941
|
+
}
|
|
3942
|
+
.ms-legend {
|
|
3943
|
+
display: flex;
|
|
3944
|
+
flex-wrap: wrap;
|
|
3945
|
+
gap: 6px 16px;
|
|
3946
|
+
margin: 0;
|
|
3947
|
+
padding: 0;
|
|
3948
|
+
list-style: none;
|
|
3949
|
+
}
|
|
3950
|
+
.ms-legend li {
|
|
3951
|
+
display: inline-flex;
|
|
3952
|
+
align-items: center;
|
|
3953
|
+
gap: 6px;
|
|
3954
|
+
color: var(--dpk-ink-soft);
|
|
3955
|
+
font-size: 12px;
|
|
3956
|
+
}
|
|
3957
|
+
.ms-breakdown-count {
|
|
3958
|
+
color: var(--dpk-ink-faint);
|
|
3959
|
+
font-family: var(--dpk-mono);
|
|
3960
|
+
font-size: 11px;
|
|
3961
|
+
font-variant-numeric: tabular-nums;
|
|
3962
|
+
}
|
|
3963
|
+
|
|
3964
|
+
/* Narrow: the date moves above the name, the rail stays on the left. */
|
|
3965
|
+
@media (max-width: 640px) {
|
|
3966
|
+
.ms-overview {
|
|
3967
|
+
--ms-node: 26px;
|
|
3968
|
+
}
|
|
3969
|
+
.ms-entry,
|
|
3970
|
+
.ms-add {
|
|
3971
|
+
grid-template-columns: var(--ms-node) minmax(0, 1fr);
|
|
3972
|
+
grid-template-areas:
|
|
3973
|
+
'rail when'
|
|
3974
|
+
'rail body';
|
|
3975
|
+
column-gap: 16px;
|
|
3976
|
+
}
|
|
3977
|
+
.ms-add {
|
|
3978
|
+
grid-template-areas: 'rail body';
|
|
3979
|
+
}
|
|
3980
|
+
.ms-add .ms-when {
|
|
3981
|
+
display: none;
|
|
3982
|
+
}
|
|
3983
|
+
.ms-when {
|
|
3984
|
+
justify-content: flex-start;
|
|
3985
|
+
padding: 4px 0 2px;
|
|
3986
|
+
}
|
|
3987
|
+
.ms-timeframe {
|
|
3988
|
+
text-align: left;
|
|
3989
|
+
}
|
|
3990
|
+
}
|
|
3991
|
+
|
|
3992
|
+
/* ------------------------------------------------------- statuses tab */
|
|
3993
|
+
|
|
3994
|
+
/* The statuses in order, one row each: color, name, how many stories stand
|
|
3995
|
+
there, the palette to recolor it, and the order / delete tools. */
|
|
3996
|
+
.st-overview {
|
|
3997
|
+
display: grid;
|
|
3998
|
+
gap: 20px;
|
|
3999
|
+
max-width: 1040px;
|
|
4000
|
+
padding: 28px 0 40px;
|
|
4001
|
+
}
|
|
4002
|
+
.st-list {
|
|
4003
|
+
display: grid;
|
|
4004
|
+
margin: 0;
|
|
4005
|
+
padding: 0;
|
|
4006
|
+
list-style: none;
|
|
4007
|
+
border: 1px solid var(--dpk-rule);
|
|
4008
|
+
border-radius: var(--dpk-radius-lg);
|
|
4009
|
+
background: var(--dpk-paper-raised);
|
|
4010
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
4011
|
+
}
|
|
4012
|
+
.st-row {
|
|
4013
|
+
display: grid;
|
|
4014
|
+
/* Fixed tool columns keep the unset row, which has no tools, in line. */
|
|
4015
|
+
grid-template-columns: 16px minmax(120px, 1fr) minmax(140px, 200px) 150px 84px;
|
|
4016
|
+
align-items: center;
|
|
4017
|
+
gap: 14px;
|
|
4018
|
+
padding: 12px 16px;
|
|
4019
|
+
}
|
|
4020
|
+
/* A status also says whether stories are done there, before its tools. */
|
|
4021
|
+
.st-row--status {
|
|
4022
|
+
grid-template-columns: 16px minmax(120px, 1fr) minmax(140px, 200px) 150px auto 84px;
|
|
4023
|
+
}
|
|
4024
|
+
.st-row + .st-row {
|
|
4025
|
+
border-top: 1px solid var(--dpk-rule);
|
|
4026
|
+
}
|
|
4027
|
+
.st-done {
|
|
4028
|
+
display: inline-flex;
|
|
4029
|
+
align-items: center;
|
|
4030
|
+
gap: 6px;
|
|
4031
|
+
color: var(--dpk-ink-faint);
|
|
4032
|
+
font-size: 12px;
|
|
4033
|
+
font-weight: 600;
|
|
4034
|
+
white-space: nowrap;
|
|
4035
|
+
cursor: pointer;
|
|
4036
|
+
user-select: none;
|
|
4037
|
+
transition: color 140ms var(--dpk-ease);
|
|
4038
|
+
}
|
|
4039
|
+
.st-done:hover,
|
|
4040
|
+
.st-done:has(:checked) {
|
|
4041
|
+
color: var(--dpk-ink);
|
|
4042
|
+
}
|
|
4043
|
+
.st-done input {
|
|
4044
|
+
margin: 0;
|
|
4045
|
+
accent-color: var(--usm-tone);
|
|
4046
|
+
cursor: inherit;
|
|
4047
|
+
}
|
|
4048
|
+
.st-name {
|
|
4049
|
+
min-width: 0;
|
|
4050
|
+
font-size: 14px;
|
|
4051
|
+
font-weight: 650;
|
|
4052
|
+
}
|
|
4053
|
+
.st-share {
|
|
4054
|
+
display: grid;
|
|
4055
|
+
gap: 5px;
|
|
4056
|
+
}
|
|
4057
|
+
.st-share-text {
|
|
4058
|
+
color: var(--dpk-ink-faint);
|
|
4059
|
+
font-family: var(--dpk-mono);
|
|
4060
|
+
font-size: 11px;
|
|
4061
|
+
font-variant-numeric: tabular-nums;
|
|
4062
|
+
}
|
|
4063
|
+
.st-meter {
|
|
4064
|
+
height: 5px;
|
|
4065
|
+
border-radius: 3px;
|
|
4066
|
+
background: var(--dpk-paper-sunken);
|
|
4067
|
+
overflow: hidden;
|
|
4068
|
+
}
|
|
4069
|
+
.st-meter > span {
|
|
4070
|
+
display: block;
|
|
4071
|
+
height: 100%;
|
|
4072
|
+
border-radius: 3px;
|
|
4073
|
+
background: var(--usm-tone);
|
|
4074
|
+
}
|
|
4075
|
+
.st-tones {
|
|
4076
|
+
display: inline-flex;
|
|
4077
|
+
flex-wrap: wrap;
|
|
4078
|
+
gap: 5px;
|
|
4079
|
+
}
|
|
4080
|
+
/* The status's own icon opens the menu of icons. */
|
|
4081
|
+
.st-icon-trigger {
|
|
4082
|
+
display: inline-grid;
|
|
4083
|
+
place-items: center;
|
|
4084
|
+
width: 30px;
|
|
4085
|
+
height: 30px;
|
|
4086
|
+
margin: -7px;
|
|
4087
|
+
padding: 0;
|
|
4088
|
+
border: 1px solid transparent;
|
|
4089
|
+
border-radius: var(--dpk-radius-sm);
|
|
4090
|
+
background: transparent;
|
|
4091
|
+
cursor: pointer;
|
|
4092
|
+
transition:
|
|
4093
|
+
background 140ms var(--dpk-ease),
|
|
4094
|
+
border-color 140ms var(--dpk-ease);
|
|
4095
|
+
}
|
|
4096
|
+
.st-icon-trigger:hover,
|
|
4097
|
+
.st-icon-trigger[aria-expanded='true'] {
|
|
4098
|
+
border-color: var(--dpk-rule-strong);
|
|
4099
|
+
background: var(--dpk-paper-raised);
|
|
4100
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
4101
|
+
}
|
|
4102
|
+
.st-icon-trigger:focus-visible {
|
|
4103
|
+
outline: none;
|
|
4104
|
+
box-shadow: var(--dpk-focus);
|
|
4105
|
+
}
|
|
4106
|
+
.comment-pop.icon-menu {
|
|
4107
|
+
grid-template-columns: repeat(5, 36px);
|
|
4108
|
+
gap: 4px;
|
|
4109
|
+
padding: 8px;
|
|
4110
|
+
}
|
|
4111
|
+
.icon-option {
|
|
4112
|
+
display: inline-grid;
|
|
4113
|
+
place-items: center;
|
|
4114
|
+
width: 36px;
|
|
4115
|
+
height: 36px;
|
|
4116
|
+
padding: 0;
|
|
4117
|
+
border: 1px solid transparent;
|
|
4118
|
+
border-radius: var(--dpk-radius-sm);
|
|
4119
|
+
background: transparent;
|
|
4120
|
+
cursor: pointer;
|
|
4121
|
+
}
|
|
4122
|
+
.icon-option .status-icon {
|
|
4123
|
+
width: 18px;
|
|
4124
|
+
height: 18px;
|
|
4125
|
+
}
|
|
4126
|
+
.icon-option:hover,
|
|
4127
|
+
.icon-option:focus-visible {
|
|
4128
|
+
outline: none;
|
|
4129
|
+
background: var(--dpk-paper-inset);
|
|
4130
|
+
}
|
|
4131
|
+
.icon-option[aria-checked='true'] {
|
|
4132
|
+
border-color: color-mix(in oklab, var(--usm-tone) 55%, transparent);
|
|
4133
|
+
background: color-mix(in oklab, var(--usm-tone) 12%, transparent);
|
|
4134
|
+
}
|
|
4135
|
+
.st-tone {
|
|
4136
|
+
width: 18px;
|
|
4137
|
+
height: 18px;
|
|
4138
|
+
padding: 0;
|
|
4139
|
+
border: 2px solid var(--dpk-paper-raised);
|
|
4140
|
+
border-radius: 50%;
|
|
4141
|
+
background: var(--usm-tone);
|
|
4142
|
+
box-shadow: 0 0 0 1px var(--dpk-rule-strong);
|
|
4143
|
+
cursor: pointer;
|
|
4144
|
+
transition: box-shadow 150ms ease;
|
|
4145
|
+
}
|
|
4146
|
+
.st-tone:hover {
|
|
4147
|
+
box-shadow: 0 0 0 1px var(--usm-tone);
|
|
4148
|
+
}
|
|
4149
|
+
.st-tone[aria-checked='true'] {
|
|
4150
|
+
box-shadow: 0 0 0 2px var(--usm-tone);
|
|
4151
|
+
}
|
|
4152
|
+
.st-tone:focus-visible {
|
|
4153
|
+
outline: none;
|
|
4154
|
+
box-shadow: var(--dpk-focus);
|
|
4155
|
+
}
|
|
4156
|
+
/* A label's color, where a status shows its icon. */
|
|
4157
|
+
.label-swatch {
|
|
4158
|
+
width: 12px;
|
|
4159
|
+
height: 12px;
|
|
4160
|
+
border-radius: 4px;
|
|
4161
|
+
background: var(--usm-tone);
|
|
4162
|
+
}
|
|
4163
|
+
/* A member's initial in their color, where a label shows its swatch. */
|
|
4164
|
+
.member-avatar {
|
|
4165
|
+
display: inline-grid;
|
|
4166
|
+
place-items: center;
|
|
4167
|
+
width: 22px;
|
|
4168
|
+
height: 22px;
|
|
4169
|
+
border-radius: 50%;
|
|
4170
|
+
background: var(--usm-tone);
|
|
4171
|
+
color: var(--dpk-paper-raised);
|
|
4172
|
+
font-size: 11px;
|
|
4173
|
+
font-weight: 700;
|
|
4174
|
+
line-height: 1;
|
|
4175
|
+
}
|
|
4176
|
+
.st-tools {
|
|
4177
|
+
display: inline-flex;
|
|
4178
|
+
gap: 2px;
|
|
4179
|
+
}
|
|
4180
|
+
.st-tools .dpk-icon-btn {
|
|
4181
|
+
width: 26px;
|
|
4182
|
+
height: 26px;
|
|
4183
|
+
font-size: 13px;
|
|
4184
|
+
}
|
|
4185
|
+
@media (max-width: 640px) {
|
|
4186
|
+
.st-row {
|
|
4187
|
+
grid-template-columns: 16px minmax(0, 1fr) auto;
|
|
4188
|
+
row-gap: 8px;
|
|
4189
|
+
}
|
|
4190
|
+
.st-share,
|
|
4191
|
+
.st-tones,
|
|
4192
|
+
.st-done {
|
|
4193
|
+
grid-column: 2 / -1;
|
|
4194
|
+
}
|
|
4195
|
+
/* The tools stay on the name's row, so the rows below are the name's width. */
|
|
4196
|
+
.st-tools {
|
|
4197
|
+
grid-column: 3;
|
|
4198
|
+
grid-row: 1;
|
|
4199
|
+
}
|
|
4200
|
+
}
|
|
4201
|
+
|
|
4202
|
+
/* Step picker shown after a cross-activity drop. */
|
|
4203
|
+
.move-dialog {
|
|
4204
|
+
min-width: 220px;
|
|
4205
|
+
}
|
|
4206
|
+
`,U={kind:"idle"},co={width:300,height:240},uo={width:228,height:116},mo=240,ho=31,go=14,ps=160,bo=1500;class cs extends St{static{this.styles=[St.styles,po,mt,_a,oo,wr,fr,Nr,Rr,Sr,jr,Ds]}definitionFor(t){return ya(t)}static{this.properties={mode:{state:!0}}}#i=new Ys(this);#e=new Rs(this);#a=null;#n=new Hn(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]")});#t=!1;#s=null;#r;constructor(){super(),this.mode=U,new tt(this,{open:()=>this.#o()!==null,closesOn:t=>this.#l(t),ownsEscape:t=>this.mode.kind==="idle"&&(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(a=>a instanceof Element&&(a.id==="filter-menu"||a.hasAttribute("data-filter-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=U}),new tt(this,{open:()=>this.mode.kind==="choosing-tab",closesOn:t=>!t.some(a=>a instanceof Element&&(a.id==="tabs-menu"||a.hasAttribute("data-tabs-more-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=U})}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.#r),this.#s=null}renderRegions(t){return{main:this.#u(t)}}updated(){if(super.updated(),this.#c(),this.#p(),this.mode.kind==="picking-dependency"){this.#d();return}if(this.mode.kind==="picking-icon"){const a=this.renderRoot.querySelector("#icon-menu"),s=this.renderRoot.querySelector(`[data-icon-trigger="${CSS.escape(this.mode.statusId)}"]`);a&&s&&this.#e.open(a,s,uo);return}if(this.mode.kind==="filtering"){const a=this.renderRoot.querySelector("#filter-menu"),s=this.renderRoot.querySelector(`[data-filter-trigger="${CSS.escape(this.mode.key)}"]`),n=(a?.childElementCount??0)*ho+go;a&&s&&this.#e.open(a,s,{width:mo,height:n});return}if(this.mode.kind==="choosing-tab"){const a=this.renderRoot.querySelector("#tabs-menu"),s=this.renderRoot.querySelector("[data-tabs-more-trigger]");if(!a){this.mode=U;return}const n=a.childElementCount*Kr+qr;s&&this.#e.open(a,s,{width:Wr,height:n},{placement:"bottom-start"});return}if(this.mode.kind!=="picking-step")return;const t=this.renderRoot.querySelector("#move-dialog");t&&this.#e.open(t,Os(this.mode.point.x,this.mode.point.y),co)}#d(){const t=this.renderRoot instanceof ShadowRoot?this.renderRoot.activeElement:null;if(!t?.matches(".sp-dep-search")){this.mode=U;return}const a=t.getAttribute("aria-activedescendant");a&&this.renderRoot.querySelector(`#${CSS.escape(a)}`)?.scrollIntoView?.({block:"nearest"})}#o(){return this.renderRoot.querySelector(".story-panel")}#l(t){const a=this.#o(),s=this.renderRoot.querySelector(".dpk-main");return!a||!s||t.includes(a)||!t.includes(s)?!1:!t.some(n=>n instanceof Element&&(n.localName==="dpk-internal-usm-story-card"||n.hasAttribute("popover")))}#p(){const t=this.#o(),a=t?.dataset.story??null,s=this.#a;if(a===s)return;this.#a=a;const n=this.shadowRoot?.activeElement??null;if(t){(!n||!t.contains(n))&&t.focus({preventScroll:!0});return}s===null||n!==null&&n.isConnected||this.renderRoot.querySelector(`dpk-internal-usm-story-card[data-story="${CSS.escape(s)}"]`)?.focus({preventScroll:!0})}#c(){if(!(Ue(this.navigation)!==null)){this.#t=!1;return}const a=this.renderRoot.querySelector(".map-scroll"),s=a?.querySelector('dpk-internal-usm-story-card[data-highlight="on"]');this.#t||!a||!s||(this.#t=!0,Ns(a,s,ps),Cs(a,s,ps))}#u(t){const a=ge(this.locale),s=ia(t.state,t.navigation);return l`
|
|
4207
|
+
${Fr(Hr(a,t,s,{folded:this.#n.hidden,minimum:this.#n.minimum,open:this.mode.kind==="choosing-tab",toggle:()=>this.mode=this.mode.kind==="choosing-tab"?U:{kind:"choosing-tab"},close:()=>this.mode=U}),this.#m(a,t,s))}
|
|
4208
|
+
${this.#b(a,t,s)} ${this.#h(a,t,s)}
|
|
4209
|
+
${Pr(a,t,this.mode,{confirm:n=>this.#S(n),cancel:()=>this.mode=U})}
|
|
4210
|
+
`}#m(t,a,s){return s!=="map"||Oe(a.state).length===0?m:Or(t,a,{openFor:this.mode.kind==="filtering"?this.mode.key:null,toggle:n=>{const i=this.mode.kind==="filtering"&&this.mode.key===n;this.mode=i?U:{kind:"filtering",key:n}},close:()=>this.mode=U})}#h(t,a,s){if(s!=="map")return m;const n=Xr(a);if(!n)return m;const i={search:this.mode.kind==="picking-dependency"?this.mode.search:null,set:o=>this.mode=o?{kind:"picking-dependency",search:o}:U},r={copied:this.#s===Be(n),copy:o=>{this.#g(o)}};return Zr(t,a,n,i,r)}async#g(t){await Bs(t)&&(clearTimeout(this.#r),this.#s=t,this.requestUpdate(),this.#r=setTimeout(()=>{this.#s=null,this.requestUpdate()},bo))}#b(t,a,s){switch(s){case"milestones":return Yr(t,a,Mi(a.state));case"statuses":return er(t,a,lo(a.state),{openFor:this.mode.kind==="picking-icon"?this.mode.statusId:null,toggle:n=>{const i=this.mode.kind==="picking-icon"&&this.mode.statusId===n;this.mode=i?U:{kind:"picking-icon",statusId:n}},close:()=>this.mode=U});case"labels":return Er(t,a,_i(a.state));case"members":return Cr(t,a,Ii(a.state));case"burndown":return dr(t,a,new Date);case"map":return this.#f(t,a)}}#f(t,a){return Pi({m:t,context:a,drag:this.#i,handlers:{selectStory:s=>this.#v(s),dropOnCell:(s,n)=>this.#y(s,n),dropOnGroupCell:(s,n,i)=>this.#k(s,n,i),dropOnMilestoneRow:(s,n)=>this.#w(s,n),dropOnActivity:s=>this.#x(s),dropOnStep:s=>this.#$(s)},highlighted:Bn(a.state,a.navigation)})}#v(t){const a=this.context(),s=E(a.state,t);s&&a.navigate({step:s.stepId,story:s.id})}#y(t,a){const s=this.context();s.dispatch(Oa(s.state,t,a.item.id,a.hoveredId,a.place))}#k(t,a,s){const n=this.context(),i=E(n.state,s.item.id);if(!i)return;if(i.activityId!==t){this.mode={kind:"picking-step",storyId:i.id,activityId:t,milestoneId:a,point:{x:s.event.clientX,y:s.event.clientY}};return}const r=Na(n.state,t,a,i.id,s.hoveredId,s.place);r&&n.dispatch(r)}#w(t,a){const s=this.context(),n=s.state.milestones.map(r=>r.id),i=Ba(n,a.item.id,a.hoveredId,a.place);i&&s.dispatch(i)}#x(t){const a=this.context(),s=a.state.activities.map(i=>i.id),n=Ti(s,t.item.id,t.hoveredId,t.place);n&&a.dispatch(n)}#$(t){const a=this.context(),s=Ai(a.state,t.item.id,t.hoveredId,t.place);s&&a.dispatch(s)}#S(t){const a=this.mode;if(a.kind!=="picking-step")return;const s=this.context();s.dispatch(Ca(s.state,a.storyId,a.activityId,t,a.milestoneId)),this.mode=U}}const us=()=>{ki(),pi(),Si(),customElements.get("dpk-template-usm")||customElements.define("dpk-template-usm",cs)},fo=Object.freeze(Object.defineProperty({__proto__:null,DpkTemplateUsm:cs,IDLE_MODE:U,allUsmIds:W,applyUsmAction:Xt,defineUsmElement:us,describeUsmAction:ua,dropAfter:Ei,emptyUsmBase:Bt,findActivity:ee,findMilestone:F,findStep:L,findStory:E,flatSteps:Oe,parseUsmBase:Nt,resolveCellDrop:Oa,resolveGroupDrop:Na,resolveMilestoneDrop:Ba,resolvePickedStepMove:Ca,resolveUsmNavigation:fa,serializeUsmAction:ma,storiesInCell:Ne,storyCountForStep:Ut,usmAction:fn,usmActions:k,usmCommentTargets:ga,usmCurrentTarget:ba,usmDefinitionFor:ya,usmHasTarget:va,usmMessages:ge,usmTargetLabel:ha,usmTitle:ct},Symbol.toStringTag,{value:"Module"}));export{us as d,fo as i};
|