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
|
@@ -1,3751 +0,0 @@
|
|
|
1
|
-
import{ad as Ua,aP as za,ae as G,af as Y,ag as N,aB as A,ah as h,aA as D,aj as k,ak as E,ai as Oe,aO as it,b5 as Pa,b6 as Fa,ax as be,b7 as Ne,al as fe,ay as Ga,b8 as Va,p as v,at as rt,au as y,v as Q,ap as Ha,az as U,P as Ka,e as qa,a0 as Wa,V as T,R as w,aU as M,a2 as V,a4 as l,a3 as m,a7 as L,a8 as ot,aa as dt,G as ja,j as Xa,aS as Za,aT as Ja,A as Qa,l as X,a5 as C,B as Ce,aE as W,J as es,b9 as lt,K as Be,aF as ts,b3 as Ye,aI as as,z as Ue,h as ss,T as pt,a1 as ns,a9 as is,aJ as rs,aN as os,ba as ds}from"./shared-DXaIVZ_z.js";import{s as ct}from"./shared-D4K7KsfJ.js";import{L as ls,D as ve}from"./shared-CtHWU02m.js";import{r as pe,D as ps}from"./shared-B5lBiq5s.js";const cs=[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1"}]],us=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16 9-5.5 5.5L8 12"}]],ms=[["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"}]],hs=[["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"}]],bs=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]],fs=[["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"}]],ys=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]],ks=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]],xs=[["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"}]],ws=[["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"}]],Es=[["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"}]],$s=[["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"}]],Ss=[["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"}]],Ts=[["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"}]],ut=e=>new Map(e.map(t=>[t.id,t.blockedBy??[]])),ze=(e,t,a)=>{const s=ut(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},As=e=>{const t=ut(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 d of t.get(n)??[]){const o=s(d,[...i,n]);if(o)return o}return a.add(n),null};for(const n of e){const i=s(n.id,[]);if(i)return i}return null},ye=["gray","blue","violet","green","amber","accent"],mt=["progress","circle","lightbulb","flag","play","clock","eye","pause","check","x"],ke=["estimates","assignees"],ht=k(h(),Va(),it(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")),gt=k(fe(),Ne(),be(0)),Pe=k(fe(),Ne(),be(0)),bt=G({milestoneId:A(k(h(),E(1))),statusId:A(k(h(),E(1))),stories:k(fe(),Ga(),be(0)),points:k(fe(),Ne(),be(0))}),ft=k(h(),Fa()),_s=G({id:k(h(),E(1)),name:k(h(),E(1))}),Is=G({id:D,name:k(h(),E(1)),actor:A(h()),steps:Y(N(_s),[])}),Ms=G({id:k(h(),E(1)),name:k(h(),E(1)),timeframe:A(h()),description:A(h()),dueDate:A(ht)}),ee=Oe(ye),Fe=Oe(mt),Ge=k(h(),Pa(),it(e=>/^https?:\/\//i.test(e),"a link must be an http(s) URL")),Ls=G({url:Ge,label:A(k(h(),E(1)))}),Ds=G({id:D,name:k(h(),E(1)),tone:Y(ee),icon:Y(Fe),weight:A(gt)}),Rs=G({id:D,name:k(h(),E(1)),tone:Y(ee)}),Os=G({id:D,name:k(h(),E(1)),description:A(h()),activityId:k(h(),E(1)),stepId:k(h(),E(1)),milestoneId:A(h()),statusId:A(h()),links:A(N(Ls)),labelIds:A(N(k(h(),E(1)))),blockedBy:A(N(k(h(),E(1)))),estimateId:A(k(h(),E(1))),assigneeId:A(k(h(),E(1)))}),Ns=G({id:D,name:k(h(),E(1)),tone:Y(ee)}),vt=Oe(ke),Cs=G({id:D,name:k(h(),E(1)),points:Pe}),Bs=G({id:D,at:ft,tally:N(bt)}),Ys=G({title:A(h()),features:Y(N(vt),[]),activities:Y(N(Is),[]),milestones:Y(N(Ms),[]),statuses:Y(N(Ds),[]),labels:Y(N(Rs),[]),members:Y(N(Ns),[]),estimates:Y(N(Cs),[]),stories:Y(N(Os),[]),snapshots:Y(N(Bs),[])}),Ve=e=>ye[e%ye.length]??"gray",xe=e=>Ve(e+1),yt=e=>{const t=Ua(Ys,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:a===void 0?t.stories:t.stories.map(c=>c.statusId===void 0?{...c,statusId:a}:c),statuses:t.statuses.map((c,b)=>({...c,tone:c.tone??Ve(b),icon:c.icon??"progress"})),labels:t.labels.map((c,b)=>({...c,tone:c.tone??xe(b)})),members:t.members.map((c,b)=>({...c,tone:c.tone??xe(b)})),features:ke.filter(c=>t.features.includes(c))},n=new Map;for(const c of s.activities)for(const b of c.steps)n.set(b.id,c.id);const i=new Set(s.milestones.map(c=>c.id)),r=new Set(s.statuses.map(c=>c.id)),d=new Set(s.labels.map(c=>c.id)),o=new Set,p=(c,b)=>{if(o.has(b))throw new Error(`duplicate id "${b}" in ${c}`);o.add(b)};for(const c of s.activities){p("activities",c.id);for(const b of c.steps)p("steps",b.id)}for(const c of s.milestones)p("milestones",c.id);for(const c of s.statuses)p("statuses",c.id);for(const c of s.labels)p("labels",c.id);for(const c of s.members)p("members",c.id);for(const c of s.estimates)p("estimates",c.id);for(const c of s.snapshots)p("snapshots",c.id);const u=new Set(s.estimates.map(c=>c.id)),f=new Set(s.members.map(c=>c.id));for(const c of s.stories){p("stories",c.id);const b=n.get(c.stepId);if(b===void 0||b!==c.activityId)throw new Error(`story "${c.id}" references unknown activityId/stepId`);if(c.milestoneId!==void 0&&!i.has(c.milestoneId))throw new Error(`story "${c.id}" references unknown milestoneId "${c.milestoneId}"`);const se=(c.links??[]).map(Re=>Re.url);if(new Set(se).size!==se.length)throw new Error(`story "${c.id}" links the same URL twice`);if(c.statusId!==void 0&&!r.has(c.statusId))throw new Error(`story "${c.id}" references unknown statusId "${c.statusId}"`);const le=c.labelIds??[];if(new Set(le).size!==le.length)throw new Error(`story "${c.id}" has a label twice`);const nt=le.find(Re=>!d.has(Re));if(nt!==void 0)throw new Error(`story "${c.id}" references unknown labelId "${nt}"`);if(c.estimateId!==void 0&&!u.has(c.estimateId))throw new Error(`story "${c.id}" references unknown estimateId "${c.estimateId}"`);if(c.assigneeId!==void 0&&!f.has(c.assigneeId))throw new Error(`story "${c.id}" references unknown assigneeId "${c.assigneeId}"`)}for(const c of s.snapshots){const b=kt(s,c.tally);if(b!==null)throw new Error(`snapshot "${c.id}" ${b}`)}const $=new Set(s.stories.map(c=>c.id));for(const c of s.stories){const b=c.blockedBy??[];if(b.includes(c.id))throw new Error(`story "${c.id}" is blocked by itself`);if(new Set(b).size!==b.length)throw new Error(`story "${c.id}" has a blocker twice`);const se=b.find(le=>!$.has(le));if(se!==void 0)throw new Error(`story "${c.id}" references unknown blocker "${se}"`)}const g=As(s.stories);if(g!==null)throw new Error(`stories block one another in a cycle: ${g.join(" \u2192 ")}`);return s},kt=(e,t)=>{const a=new Set;for(const s of t){if(s.milestoneId!==void 0&&!z(e,s.milestoneId))return`references unknown milestoneId "${s.milestoneId}"`;if(s.statusId!==void 0&&!B(e,s.statusId))return`references unknown statusId "${s.statusId}"`;const n=we(s);if(a.has(n))return`tallies "${n}" twice`;a.add(n)}return null},we=e=>`${e.milestoneId??""}/${e.statusId??""}`,xt=()=>({features:[],activities:[],milestones:[],statuses:[],labels:[],members:[],estimates:[],stories:[],snapshots:[]}),Z=(e,t)=>{if(t!==void 0)return e.activities.find(a=>a.id===t)},J=(e,t)=>`${e}.${t}`,_=(e,t)=>{if(t===void 0)return;const a=za(t,2);if(a){const[s,n]=a;if(s===void 0||n===void 0)return;const i=e.activities.find(d=>d.id===s),r=i?.steps.find(d=>d.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}}},z=(e,t)=>{if(t!==void 0)return e.milestones.find(a=>a.id===t)},B=(e,t)=>{if(t!==void 0)return e.statuses.find(a=>a.id===t)},H=(e,t)=>{if(t!==void 0)return e.labels.find(a=>a.id===t)},K=(e,t)=>e.features.includes(t),P=(e,t)=>{if(t!==void 0)return e.members.find(a=>a.id===t)},Us=(e,t)=>P(e,t.assigneeId),F=(e,t)=>{if(t!==void 0)return e.estimates.find(a=>a.id===t)},ce=(e,t)=>{if(t!==void 0)return e.snapshots.find(a=>a.id===t)},zs=(e,t)=>{const a=new Set(t.labelIds??[]);return e.labels.filter(s=>a.has(s.id))},S=(e,t)=>{if(t!==void 0)return e.stories.find(a=>a.id===t)},Ee=e=>e.activities.flatMap(t=>t.steps.map(a=>({activity:t,step:a}))),Ps=e=>({...e,stories:ct(e.stories,[t=>`${t.activityId}/${t.stepId}/${t.milestoneId??""}`])}),$e=(e,t,a)=>e.stories.filter(s=>s.stepId===t&&(s.milestoneId??void 0)===a),wt=(e,t,a)=>e.stories.filter(s=>s.activityId===t&&(s.milestoneId??void 0)===a),j=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.snapshots.map(t=>t.id)],Et=(e,t)=>e.stories.filter(a=>a.stepId===t).length,$t=y({feature:vt,enabled:Ha()}),x={SET_ACTIVITY_NAME:v("SET_ACTIVITY_NAME","activity",y({name:k(h(),E(1))})),SET_ACTIVITY_ACTOR:v("SET_ACTIVITY_ACTOR","activity",y({actor:h()})),SET_STEP_NAME:v("SET_STEP_NAME","step",y({name:k(h(),E(1))})),REORDER_STEP:v("REORDER_STEP","step",y({after:U(h())}),{mode:"sequence"}),REORDER_ACTIVITY:v("REORDER_ACTIVITY","activity",y({after:U(h())}),{mode:"sequence"}),ADD_ACTIVITY:v("ADD_ACTIVITY","page",y({id:D,name:k(h(),E(1))}),{dedupeKey:Q}),ADD_STEP:v("ADD_STEP","activity",y({id:D,name:k(h(),E(1))}),{dedupeKey:Q}),DELETE_ACTIVITY:v("DELETE_ACTIVITY","activity",y({})),DELETE_STEP:v("DELETE_STEP","step",y({})),SET_STORY_NAME:v("SET_STORY_NAME","story",y({name:k(h(),E(1))})),SET_STORY_DESCRIPTION:v("SET_STORY_DESCRIPTION","story",y({description:h()})),SET_STORY_MILESTONE:v("SET_STORY_MILESTONE","story",y({milestoneId:U(h())})),MOVE_STORY:v("MOVE_STORY","story",y({activityId:k(h(),E(1)),stepId:k(h(),E(1)),milestoneId:U(h()),after:U(h())}),{mode:"sequence"}),REORDER_STORY:v("REORDER_STORY","story",y({after:U(h())}),{mode:"sequence"}),ADD_STORY:v("ADD_STORY","step",y({id:D,name:k(h(),E(1)),activityId:k(h(),E(1)),milestoneId:A(h())}),{dedupeKey:Q}),DELETE_STORY:v("DELETE_STORY","story",y({})),ADD_STORY_LINK:v("ADD_STORY_LINK","story",y({url:Ge,label:A(k(h(),E(1)))})),REMOVE_STORY_LINK:v("REMOVE_STORY_LINK","story",y({url:h()})),SET_STORY_STATUS:v("SET_STORY_STATUS","story",y({statusId:k(h(),E(1))})),SET_MILESTONE_NAME:v("SET_MILESTONE_NAME","milestone",y({name:k(h(),E(1))})),ADD_MILESTONE:v("ADD_MILESTONE","page",y({id:D,name:k(h(),E(1))}),{dedupeKey:Q}),DELETE_MILESTONE:v("DELETE_MILESTONE","milestone",y({})),REORDER_MILESTONE:v("REORDER_MILESTONE","milestone",y({after:U(h())}),{mode:"sequence"}),SET_MILESTONE_DUE_DATE:v("SET_MILESTONE_DUE_DATE","milestone",y({dueDate:U(ht)})),ADD_STATUS:v("ADD_STATUS","page",y({id:D,name:k(h(),E(1)),tone:ee,icon:A(Fe)}),{dedupeKey:Q}),SET_STATUS_NAME:v("SET_STATUS_NAME","status",y({name:k(h(),E(1))})),SET_STATUS_TONE:v("SET_STATUS_TONE","status",y({tone:ee})),SET_STATUS_ICON:v("SET_STATUS_ICON","status",y({icon:Fe})),SET_STATUS_WEIGHT:v("SET_STATUS_WEIGHT","status",y({weight:gt})),DELETE_STATUS:v("DELETE_STATUS","status",y({})),REORDER_STATUS:v("REORDER_STATUS","status",y({after:U(h())}),{mode:"sequence"}),ADD_LABEL:v("ADD_LABEL","page",y({id:D,name:k(h(),E(1)),tone:ee}),{dedupeKey:Q}),SET_LABEL_NAME:v("SET_LABEL_NAME","label",y({name:k(h(),E(1))})),SET_LABEL_TONE:v("SET_LABEL_TONE","label",y({tone:ee})),DELETE_LABEL:v("DELETE_LABEL","label",y({})),REORDER_LABEL:v("REORDER_LABEL","label",y({after:U(h())}),{mode:"sequence"}),ADD_STORY_LABEL:v("ADD_STORY_LABEL","story",y({labelId:k(h(),E(1))})),REMOVE_STORY_LABEL:v("REMOVE_STORY_LABEL","story",y({labelId:k(h(),E(1))})),ADD_STORY_BLOCKER:v("ADD_STORY_BLOCKER","story",y({blockerId:k(h(),E(1))})),REMOVE_STORY_BLOCKER:v("REMOVE_STORY_BLOCKER","story",y({blockerId:k(h(),E(1))})),ADD_MEMBER:v("ADD_MEMBER","page",y({id:D,name:k(h(),E(1)),tone:ee}),{dedupeKey:Q}),SET_MEMBER_NAME:v("SET_MEMBER_NAME","member",y({name:k(h(),E(1))})),SET_MEMBER_TONE:v("SET_MEMBER_TONE","member",y({tone:ee})),DELETE_MEMBER:v("DELETE_MEMBER","member",y({})),REORDER_MEMBER:v("REORDER_MEMBER","member",y({after:U(h())}),{mode:"sequence"}),SET_STORY_ASSIGNEE:v("SET_STORY_ASSIGNEE","story",y({memberId:U(k(h(),E(1)))})),ADD_ESTIMATE:v("ADD_ESTIMATE","page",y({id:D,name:k(h(),E(1)),points:Pe}),{dedupeKey:Q}),SET_ESTIMATE_NAME:v("SET_ESTIMATE_NAME","estimate",y({name:k(h(),E(1))})),SET_ESTIMATE_POINTS:v("SET_ESTIMATE_POINTS","estimate",y({points:Pe})),DELETE_ESTIMATE:v("DELETE_ESTIMATE","estimate",y({})),REORDER_ESTIMATE:v("REORDER_ESTIMATE","estimate",y({after:U(h())}),{mode:"sequence"}),SET_STORY_ESTIMATE:v("SET_STORY_ESTIMATE","story",y({estimateId:U(k(h(),E(1)))})),RECORD_SNAPSHOT:v("RECORD_SNAPSHOT","page",y({id:D,at:ft,tally:N(bt)}),{dedupeKey:Q}),DELETE_SNAPSHOT:v("DELETE_SNAPSHOT","snapshot",y({})),SET_FEATURE:v("SET_FEATURE","page",$t,{dedupeKey:e=>{const t=rt($t,e.payload);return`SET_FEATURE|${t.success?t.output.feature:JSON.stringify(e.payload)}`}})},Fs={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}})},St=(e,t)=>{const a=Ka(x,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,...d}=i;return n===""?d:{...d,actor:n}})}:null}case"SET_STEP_NAME":{const{name:n}=a.payload,i=_(e,s);return i?{...e,activities:e.activities.map(r=>r.id===i.activity.id?{...r,steps:r.steps.map(d=>d.id===i.step.id?{...d,name:n}:d)}:r)}:null}case"REORDER_STEP":{const{after:n}=a.payload,i=_(e,s);if(!i)return null;const r=n===null?null:_(e,n);if(n!==null&&(!r||r.activity.id!==i.activity.id))return null;const d=ie(i.activity.steps,i.step.id,r?.step.id??null);return d===null?null:{...e,activities:e.activities.map(o=>o.id===i.activity.id?{...o,steps:d}:o)}}case"REORDER_ACTIVITY":{const{after:n}=a.payload,i=ie(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 Ke({...e,activities:e.activities.filter(r=>r.id!==s)},r=>r.activityId===s||i.has(r.stepId))}case"DELETE_STEP":{const n=_(e,s);return n?Ke({...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 q(e,s,i=>({...i,name:n}))}case"SET_STORY_DESCRIPTION":{const{description:n}=a.payload;return q(e,s,i=>({...i,description:n}))}case"SET_STORY_MILESTONE":{const{milestoneId:n}=a.payload;return n!==null&&!z(e,n)?null:q(e,s,i=>n===null?He(i):{...i,milestoneId:n})}case"MOVE_STORY":{const n=a.payload,i=S(e,s);if(!i)return null;const r=_(e,n.stepId);if(!r||r.activity.id!==n.activityId||n.milestoneId!==null&&!z(e,n.milestoneId))return null;const d=n.milestoneId??void 0,o=d===void 0?{...He(i),activityId:r.activity.id,stepId:r.step.id}:{...i,activityId:r.activity.id,stepId:r.step.id,milestoneId:d};return _t(e,o,n.after)}case"REORDER_STORY":{const{after:n}=a.payload,i=S(e,s);return i?_t(e,i,n,!0):null}case"ADD_STORY":{const n=a.payload,i=_(e,t.target.id);if(!i||i.activity.id!==n.activityId||n.milestoneId!==void 0&&!z(e,n.milestoneId))return null;if(e.stories.some(d=>d.id===n.id))return e;const r={id:n.id,name:n.name,activityId:n.activityId,stepId:i.step.id,...n.milestoneId===void 0?{}:{milestoneId:n.milestoneId},...e.statuses[0]===void 0?{}:{statusId:e.statuses[0].id}};return{...e,stories:[...e.stories,r]}}case"DELETE_STORY":return e.stories.some(n=>n.id===s)?Ke(e,n=>n.id===s):null;case"ADD_STORY_LINK":{const{url:n,label:i}=a.payload,r=S(e,s);if(!r)return null;if(r.links?.some(o=>o.url===n))return e;const d=i===void 0?{url:n}:{url:n,label:i};return q(e,s,o=>({...o,links:[...o.links??[],d]}))}case"REMOVE_STORY_LINK":{const{url:n}=a.payload;return S(e,s)?.links?.some(r=>r.url===n)?q(e,s,r=>{const d=(r.links??[]).filter(u=>u.url!==n),{links:o,...p}=r;return d.length===0?p:{...p,links:d}}):null}case"SET_STORY_STATUS":{const{statusId:n}=a.payload;return B(e,n)?q(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?He(n):n),snapshots:qe(e,n=>n.milestoneId===s?ne(n,"milestoneId"):n)}:null;case"REORDER_MILESTONE":{const{after:n}=a.payload,i=ie(e.milestones,s,n);return i===null?null:{...e,milestones:i}}case"SET_MILESTONE_DUE_DATE":{const{dueDate:n}=a.payload;return z(e,s)?{...e,milestones:e.milestones.map(i=>i.id!==s?i:n===null?ne(i,"dueDate"):{...i,dueDate:n})}:null}case"ADD_STATUS":{const{id:n,name:i,tone:r,icon:d}=a.payload;if(e.statuses.some(p=>p.id===n))return e;const o=[...e.statuses,{id:n,name:i,tone:r,icon:d??"progress"}];return e.statuses.length===0?{...e,statuses:o,stories:e.stories.map(p=>({...p,statusId:n})),snapshots:qe(e,p=>({...p,statusId:n}))}:{...e,statuses:o}}case"SET_STATUS_NAME":{const{name:n}=a.payload;return B(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 B(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 B(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 B(e,s)?{...e,statuses:e.statuses.map(i=>i.id===s?{...i,weight:n}:i)}:null}case"DELETE_STATUS":{if(!B(e,s))return null;const n=e.statuses.filter(r=>r.id!==s),i=n[0]?.id;return{...e,statuses:n,stories:e.stories.map(r=>r.statusId!==s?r:i===void 0?Gs(r):{...r,statusId:i}),snapshots:qe(e,r=>r.statusId!==s?r:i===void 0?ne(r,"statusId"):{...r,statusId:i})}}case"REORDER_STATUS":{const{after:n}=a.payload,i=ie(e.statuses,s,n);return i===null?null:{...e,statuses:i}}case"ADD_LABEL":{const{id:n,name:i,tone:r}=a.payload;return H(e,n)?e:{...e,labels:[...e.labels,{id:n,name:i,tone:r}]}}case"SET_LABEL_NAME":{const{name:n}=a.payload;return H(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 H(e,s)?{...e,labels:e.labels.map(i=>i.id===s?{...i,tone:n}:i)}:null}case"DELETE_LABEL":return H(e,s)?{...e,labels:e.labels.filter(n=>n.id!==s),stories:e.stories.map(n=>n.labelIds?.includes(s)?Tt(n,s):n)}:null;case"REORDER_LABEL":{const{after:n}=a.payload,i=ie(e.labels,s,n);return i===null?null:{...e,labels:i}}case"ADD_STORY_LABEL":{const{labelId:n}=a.payload,i=S(e,s);return!i||!H(e,n)?null:i.labelIds?.includes(n)?e:q(e,s,r=>({...r,labelIds:[...r.labelIds??[],n]}))}case"REMOVE_STORY_LABEL":{const{labelId:n}=a.payload;return S(e,s)?.labelIds?.includes(n)?q(e,s,i=>Tt(i,n)):null}case"ADD_STORY_BLOCKER":{const{blockerId:n}=a.payload,i=S(e,s);return!i||!S(e,n)?null:i.blockedBy?.includes(n)?e:n===s||ze(e.stories,n,s)?null:q(e,s,r=>({...r,blockedBy:[...r.blockedBy??[],n]}))}case"REMOVE_STORY_BLOCKER":{const{blockerId:n}=a.payload;return S(e,s)?.blockedBy?.includes(n)?q(e,s,i=>At(i,new Set([n]))):null}case"ADD_MEMBER":{const{id:n,name:i,tone:r}=a.payload;return P(e,n)?e:{...e,members:[...e.members,{id:n,name:i,tone:r}]}}case"SET_MEMBER_NAME":{const{name:n}=a.payload;return P(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 P(e,s)?{...e,members:e.members.map(i=>i.id===s?{...i,tone:n}:i)}:null}case"DELETE_MEMBER":return P(e,s)?{...e,members:e.members.filter(n=>n.id!==s),stories:e.stories.map(n=>n.assigneeId===s?ne(n,"assigneeId"):n)}:null;case"REORDER_MEMBER":{const{after:n}=a.payload,i=ie(e.members,s,n);return i===null?null:{...e,members:i}}case"SET_STORY_ASSIGNEE":{const{memberId:n}=a.payload;return n!==null&&!P(e,n)?null:q(e,s,i=>n===null?ne(i,"assigneeId"):{...i,assigneeId:n})}case"ADD_ESTIMATE":{const{id:n,name:i,points:r}=a.payload;return F(e,n)?e:{...e,estimates:[...e.estimates,{id:n,name:i,points:r}]}}case"SET_ESTIMATE_NAME":{const{name:n}=a.payload;return F(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 F(e,s)?{...e,estimates:e.estimates.map(i=>i.id===s?{...i,points:n}:i)}:null}case"DELETE_ESTIMATE":return F(e,s)?{...e,estimates:e.estimates.filter(n=>n.id!==s),stories:e.stories.map(n=>n.estimateId===s?ne(n,"estimateId"):n)}:null;case"REORDER_ESTIMATE":{const{after:n}=a.payload,i=ie(e.estimates,s,n);return i===null?null:{...e,estimates:i}}case"SET_STORY_ESTIMATE":{const{estimateId:n}=a.payload;return n!==null&&!F(e,n)?null:q(e,s,i=>n===null?ne(i,"estimateId"):{...i,estimateId:n})}case"RECORD_SNAPSHOT":{const{id:n,at:i,tally:r}=a.payload;return ce(e,n)?e:kt(e,r)!==null?null:{...e,snapshots:[...e.snapshots,{id:n,at:i,tally:r}]}}case"DELETE_SNAPSHOT":return ce(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=ke.filter(d=>d===n?i:e.features.includes(d));return{...e,features:r}}default:return qa(a)}},q=(e,t,a)=>e.stories.some(s=>s.id===t)?{...e,stories:e.stories.map(s=>s.id===t?a(s):s)}:null,He=e=>{const{milestoneId:t,...a}=e;return a},Tt=(e,t)=>{const{labelIds:a=[],...s}=e,n=a.filter(i=>i!==t);return n.length===0?s:{...s,labelIds:n}},At=(e,t)=>{const{blockedBy:a=[],...s}=e,n=a.filter(i=>!t.has(i));return n.length===0?s:{...s,blockedBy:n}},Ke=(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))?At(s,a):s)}},ne=(e,t)=>{const{[t]:a,...s}=e;return s},qe=(e,t)=>e.snapshots.map(a=>{const s=new Map;for(const n of a.tally.map(t)){const i=we(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()]}}),Gs=e=>{const{statusId:t,...a}=e;return a},_t=(e,t,a,s=!1)=>{const n=t.milestoneId??void 0,i=e.stories.filter(g=>g.id!==t.id),r=i.filter(g=>g.stepId===t.stepId&&(g.milestoneId??void 0)===n);if(a!==null){const g=i.find(c=>c.id===a);if(!g||g.stepId!==t.stepId||(g.milestoneId??void 0)!==n)return null;if(s){const c=S(e,t.id);if(!c||g.stepId!==c.stepId||(g.milestoneId??void 0)!==(c.milestoneId??void 0))return null}}const d=a===null?[t,...r]:It(r,t,a),o=i.findIndex(g=>g.stepId===t.stepId&&(g.milestoneId??void 0)===n),p=new Set(r.map(g=>g.id)),u=i.filter(g=>!p.has(g.id)),f=o<0?u.length:Math.min(o,u.length),$=[...u.slice(0,f),...d,...u.slice(f)];return{...e,stories:$}},ie=(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 It(n,s,a)},It=(e,t,a)=>{const s=[...e],n=a===null?-1:s.findIndex(i=>i.id===a);return s.splice(n+1,0,t),s},ue=Wa({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",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",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`,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",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",statusWeightLabel:"Weight to next",statusWeightHint:"The effort of moving a story on to the next status. The burndown weighs the work left by it.",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",unitLabel:"Count",unitName:e=>({points:"Points",stories:"Stories"})[e],recordSnapshotButton:"Record snapshot",recordSnapshotHint:"Keeps today\u2019s totals per milestone and status, so the lines have a point to start from.",combinedChartTitle:"Weighted burndown",combinedChartHint:e=>`${e} of each story \xD7 the status weights it still has ahead of it. 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)=>Mt("en-US",e,t),chartAria:(e,t)=>`${e}: ${t} now`,chartLatest:e=>`Now ${e}`,chartNeedsSnapshot:"Record a snapshot to draw the line from.",snapshotsLabel:"Snapshots",noSnapshots:"No snapshot yet.",deleteSnapshotAria:e=>`Delete the snapshot of ${e}`,noMilestonesForBurndown:"Add a milestone on the Milestones tab to see its burndown.",unestimatedNote:e=>`${e===1?"1 story has":`${e} stories have`} no estimate and count as 1 point each.`,estimatesLabel:"Estimate scale",estimatesHint:"Name and points of each size a story can be estimated at (1, 2, 3 \u2026 or S, M, L).",estimateNameLabel:"Estimate name",estimatePointsLabel:"Points",newEstimateButton:"+ Estimate",deleteEstimateAria:"Delete this estimate",noEstimates:"No estimate scale yet: the burndown counts stories.",moveDialogLabel:"Step to move to",moveDialogSelectLabel:"Destination",moveConfirm:"Move",moveCancel:"Cancel",storyStatusLabel:"Status",panelLabel:e=>`Story: ${e}`,closePanelAria:"Close",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:"+ Wait on a story\u2026",addDependentPlaceholder:"+ Make a story wait on this\u2026",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",commentSubmit:"Comment",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",featuresButton:"Features",moreTabsLabel:"More tabs",featuresMenuLabel:"Optional features",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, status weights 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",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",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`,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",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",statusWeightLabel:"\u6B21\u3078\u306E\u91CD\u307F",statusWeightHint:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u6B21\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3078\u9032\u3081\u308B\u624B\u9593\u3067\u3059\u3002\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306F\u6B8B\u4F5C\u696D\u3092\u3053\u306E\u91CD\u307F\u3067\u91CF\u308A\u307E\u3059\u3002",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",unitLabel:"\u6570\u3048\u308B\u5358\u4F4D",unitName:e=>({points:"\u30DD\u30A4\u30F3\u30C8",stories:"\u30B9\u30C8\u30FC\u30EA\u30FC\u6570"})[e],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:"\u91CD\u307F\u4ED8\u304D\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u30C1\u30E3\u30FC\u30C8",combinedChartHint:e=>`\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u306E${e} \xD7 \u305D\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u304C\u3053\u306E\u5148\u901A\u308B\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\u3002\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)=>Mt("ja-JP",e,t),chartAria:(e,t)=>`${e}: \u73FE\u5728 ${t}`,chartLatest:e=>`\u73FE\u5728 ${e}`,chartNeedsSnapshot:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332\u3059\u308B\u3068\u7DDA\u304C\u5F15\u304B\u308C\u307E\u3059\u3002",snapshotsLabel:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8",noSnapshots:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",deleteSnapshotAria:e=>`${e} \u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u524A\u9664`,noMilestonesForBurndown:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u30BF\u30D6\u3067\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u305D\u306E\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u304C\u898B\u3089\u308C\u307E\u3059\u3002",unestimatedNote:e=>`${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u898B\u7A4D\u3082\u308A\u304C\u306A\u304F\u30011 \u4EF6 1 \u30DD\u30A4\u30F3\u30C8\u3068\u3057\u3066\u6570\u3048\u3066\u3044\u307E\u3059\u3002`,estimatesLabel:"\u898B\u7A4D\u3082\u308A\u306E\u76EE\u76DB\u308A",estimatesHint:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u4ED8\u3051\u3089\u308C\u308B\u898B\u7A4D\u3082\u308A\u306E\u540D\u524D\u3068\u30DD\u30A4\u30F3\u30C8\uFF081, 2, 3 \u2026 \u3084 S, M, L\uFF09\u3002",estimateNameLabel:"\u898B\u7A4D\u3082\u308A\u540D",estimatePointsLabel:"\u30DD\u30A4\u30F3\u30C8",newEstimateButton:"+ \u898B\u7A4D\u3082\u308A",deleteEstimateAria:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u3092\u524A\u9664",noEstimates:"\u898B\u7A4D\u3082\u308A\u306E\u76EE\u76DB\u308A\u304C\u307E\u3060\u306A\u3044\u305F\u3081\u3001\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306F\u30B9\u30C8\u30FC\u30EA\u30FC\u6570\u3067\u6570\u3048\u307E\u3059\u3002",moveDialogLabel:"\u79FB\u52D5\u5148\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",moveDialogSelectLabel:"\u79FB\u52D5\u5148",moveConfirm:"\u79FB\u52D5\u3059\u308B",moveCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",storyStatusLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9",panelLabel:e=>`\u30B9\u30C8\u30FC\u30EA\u30FC: ${e}`,closePanelAria:"\u9589\u3058\u308B",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\u8FFD\u52A0\u2026",addDependentPlaceholder:"+ \u3053\u308C\u3092\u5F85\u3064\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u8FFD\u52A0\u2026",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",commentSubmit:"\u30B3\u30E1\u30F3\u30C8\u3059\u308B",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",featuresButton:"\u6A5F\u80FD",moreTabsLabel:"\u307B\u304B\u306E\u30BF\u30D6",featuresMenuLabel:"\u8FFD\u52A0\u3067\u304D\u308B\u6A5F\u80FD",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\u3001\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\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"}}),Mt=(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)}},We=/^[A-Z][A-Z0-9]+-\d+$/,Lt=e=>{let t=e;try{t=decodeURIComponent(e)}catch{}return t.replace(/[-_+]+/g," ").trim()},Vs=(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}},Hs=(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}},Ks=(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=>We.test(n));return s&&We.test(s)?{kind:"jira",text:s,title:`${t} ${s}`}:{kind:"jira",text:"Jira",title:t}},qs=(e,t)=>{if(e!=="linear.app")return null;const a=t[1]==="issue"?t[2]?.toUpperCase():void 0;return a&&We.test(a)?{kind:"linear",text:a,title:a}:{kind:"linear",text:"Linear",title:e}},Ws=(e,t)=>{if(e!=="figma.com")return null;const[a,,s]=t;if((a==="file"||a==="design"||a==="proto"||a==="board")&&s){const n=Lt(s);return{kind:"figma",text:n,title:n}}return{kind:"figma",text:"Figma",title:e}},js=(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":Lt(s);return{kind:"notion",text:n,title:n}},Se=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 Vs(a,s)??Hs(a,s)??Ks(t,a,s)??qs(a,s)??Ws(a,s)??js(a,s)??{kind:"web",text:a,title:e}},Xs=["map","milestones","statuses","labels","members","burndown"],Zs={members:"assignees",burndown:"estimates"},Dt=e=>Xs.filter(t=>{const a=Zs[t];return a===void 0||K(e,a)}),Rt=(e,t)=>Dt(e).find(a=>a===t.tab)??"map",je=["points","stories"],Js=(e,t)=>e.milestones.find(a=>a.id===t.milestone)??e.milestones.find(a=>a.dueDate!==void 0)??e.milestones[0],Qs=(e,t)=>je.find(a=>a===t.unit)??(e.estimates.length>0?"points":"stories"),Ot=e=>e.weight??1,en=1,Nt=(e,t)=>F(e,t.estimateId)?.points??en,Ct=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=we(i),d=t.get(r)??{...i,stories:0,points:0};t.set(r,{...d,stories:d.stories+1,points:d.points+Nt(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(we({milestoneId:n,statusId:i}));return r?[r]:[]}))},tn=(e,t,a,s)=>{const i=[...ct(e.snapshots.map(o=>({at:Date.parse(o.at),tally:o.tally,snapshotId:o.id})),[o=>o.at]),{at:s,tally:Ct(e)}].map(o=>({at:o.at,...o.snapshotId===void 0?{}:{snapshotId:o.snapshotId},values:an(e.statuses,o.tally,t,a)})),r=Bt(e.statuses),d=(o,p)=>({at:o.at,value:p,...o.snapshotId===void 0?{}:{snapshotId:o.snapshotId}});return{due:sn(e.milestones.find(o=>o.id===t)?.dueDate),combined:i.map(o=>d(o,o.values.reduce((p,u,f)=>p+u*(r[f]??0),0))),byStatus:e.statuses.slice(1).map((o,p)=>({status:o,points:i.map(u=>d(u,Xe(u.values.slice(0,p+1))))}))}},an=(e,t,a,s)=>e.map(n=>Xe(t.filter(i=>i.milestoneId===a&&i.statusId===n.id).map(i=>s==="points"?i.points:i.stories))),Bt=e=>e.map((t,a)=>Xe(e.slice(a,-1).map(Ot))),sn=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()},re=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())}`},Xe=e=>e.reduce((t,a)=>t+a,0),Ze=(e,t)=>{const a=e.statuses.at(-1);return a!==void 0&&t.statusId===a.id},Yt=(e,t)=>{const a=S(e,t)?.blockedBy??[];return{blockers:a,openBlockers:a.filter(s=>{const n=S(e,s);return n!==void 0&&!Ze(e,n)}).length,dependents:e.stories.filter(s=>s.blockedBy?.includes(t)).map(s=>s.id)}},nn=(e,t)=>{const a=new Set(S(e,t)?.blockedBy??[]);return e.stories.filter(s=>s.id!==t&&!a.has(s.id)&&!ze(e.stories,s.id,t))},rn=(e,t)=>e.stories.filter(a=>a.id!==t&&!a.blockedBy?.includes(t)&&!ze(e.stories,t,a.id)),on=["critical-path"],Te=e=>on.find(t=>t===e.highlight)??null,dn=(e,t)=>{if(Ze(e,t))return 0;if(!K(e,"estimates"))return 1;const a=Math.max(0,e.statuses.findIndex(s=>s.id===t.statusId));return Nt(e,t)*(Bt(e.statuses)[a]??1)},ln=(e,t)=>Te(t)==="critical-path"?Ut(e).ids:null,pn=1e-9,Ut=e=>{const t=new Map(e.stories.map(o=>[o.id,dn(e,o)]).filter(([,o])=>o>0)),a=new Map,s=new Map;for(const o of e.stories)if(t.has(o.id))for(const p of o.blockedBy??[])t.has(p)&&(a.set(o.id,[...a.get(o.id)??[],p]),s.set(p,[...s.get(p)??[],o.id]));const n=zt(t,a),i=zt(t,s),r=[...t].map(([o,p])=>[o,n(o)+i(o)-p]),d=Math.max(0,...r.map(([,o])=>o));return{ids:new Set(r.filter(([,o])=>d-o<pn).map(([o])=>o)),work:d}},zt=(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},me=["status","label","estimate","assignee"],te="~none",de=(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),te];case"estimate":return!K(e,"estimates")||e.estimates.length===0?[]:[...e.estimates.map(a=>a.id),te];case"assignee":return!K(e,"assignees")||e.members.length===0?[]:[...e.members.map(a=>a.id),te]}},Ae=(e,t)=>{const a=s=>{const n=t[s];if(n===void 0||n==="")return new Set;const i=new Set(n.split(","));return new Set(de(e,s).filter(r=>i.has(r)))};return{status:a("status"),label:a("label"),estimate:a("estimate"),assignee:a("assignee")}},Pt=(e,t,a)=>{const s=de(e,t).filter(n=>a.has(n));return s.length===0?null:s.join(",")},cn=(e,t)=>{const a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a},un=e=>me.some(t=>e[t].size>0),Ft=(e,t)=>{const a=t.labelIds??[];return _e(e.status,t.statusId===void 0?[]:[t.statusId])&&_e(e.label,a.length===0?[te]:a)&&_e(e.estimate,[t.estimateId??te])&&_e(e.assignee,[t.assigneeId??te])},_e=(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)},ae=(e,t)=>typeof t=="string"?e.afterName(t):e.toFront,mn={SET_ACTIVITY_NAME:(e,t,a)=>({title:e.renameActivity,tone:"update",body:R(e,Z(a,t.target.id)?.name,w(x.SET_ACTIVITY_NAME,t).name??"")}),SET_ACTIVITY_ACTOR:(e,t,a)=>{const s=w(x.SET_ACTIVITY_ACTOR,t).actor.trim();return{title:e.changeActivityActor,tone:"update",body:s===""?e.removed(Z(a,t.target.id)?.actor??""):R(e,Z(a,t.target.id)?.actor,s)}},SET_STEP_NAME:(e,t,a)=>({title:e.renameStep,tone:"update",body:R(e,_(a,t.target.id)?.step.name,w(x.SET_STEP_NAME,t).name??"")}),REORDER_STEP:(e,t)=>({title:e.reorderStep,tone:"move",body:ae(e,w(x.REORDER_STEP,t).after)}),REORDER_ACTIVITY:(e,t,a)=>{const s=w(x.REORDER_ACTIVITY,t).after;return{title:e.reorderActivity,tone:"move",body:ae(e,s===null?null:Z(a,s)?.name??s)}},ADD_ACTIVITY:(e,t)=>({title:e.addActivity,tone:"create",body:e.added(String(w(x.ADD_ACTIVITY,t).name??""))}),ADD_STEP:(e,t)=>({title:e.addStep,tone:"create",body:e.added(String(w(x.ADD_STEP,t).name??""))}),DELETE_ACTIVITY:(e,t,a)=>({title:e.deleteActivity,tone:"delete",body:e.removed(Z(a,t.target.id)?.name??t.target.id)}),DELETE_STEP:(e,t,a)=>({title:e.deleteStep,tone:"delete",body:e.removed(_(a,t.target.id)?.step.name??t.target.id)}),SET_STORY_NAME:(e,t,a)=>({title:e.renameStory,tone:"update",body:R(e,S(a,t.target.id)?.name,w(x.SET_STORY_NAME,t).name??"")}),SET_STORY_DESCRIPTION:(e,t)=>({title:e.updateStoryDescription,tone:"update",body:e.toValue(String(w(x.SET_STORY_DESCRIPTION,t).description??"").slice(0,90))}),SET_STORY_MILESTONE:(e,t,a)=>{const s=w(x.SET_STORY_MILESTONE,t).milestoneId;return{title:e.changeMilestone,tone:"move",body:s==null?e.toUnassigned:e.toName(z(a,String(s))?.name??String(s))}},MOVE_STORY:(e,t,a)=>({title:e.moveStory,tone:"move",body:e.toName(_(a,String(w(x.MOVE_STORY,t).stepId))?.step.name??String(w(x.MOVE_STORY,t).stepId??""))}),REORDER_STORY:(e,t)=>({title:e.reorderStory,tone:"move",body:ae(e,w(x.REORDER_STORY,t).after)}),ADD_STORY:(e,t)=>({title:e.addStory,tone:"create",body:e.added(String(w(x.ADD_STORY,t).name??""))}),DELETE_STORY:(e,t,a)=>({title:e.deleteStory,tone:"delete",body:e.removed(S(a,t.target.id)?.name??t.target.id)}),SET_MILESTONE_NAME:(e,t,a)=>({title:e.renameMilestone,tone:"update",body:R(e,z(a,t.target.id)?.name,w(x.SET_MILESTONE_NAME,t).name??"")}),ADD_MILESTONE:(e,t)=>({title:e.addMilestone,tone:"create",body:e.added(String(w(x.ADD_MILESTONE,t).name??""))}),DELETE_MILESTONE:(e,t,a)=>({title:e.deleteMilestone,tone:"delete",body:e.removed(z(a,t.target.id)?.name??t.target.id)}),REORDER_MILESTONE:(e,t)=>({title:e.reorderMilestone,tone:"move",body:ae(e,w(x.REORDER_MILESTONE,t).after)}),ADD_STORY_LINK:(e,t)=>{const{url:a,label:s}=w(x.ADD_STORY_LINK,t);return{title:e.addStoryLink,tone:"create",body:e.added(s??Se(a).title)}},REMOVE_STORY_LINK:(e,t,a)=>{const{url:s}=w(x.REMOVE_STORY_LINK,t),n=S(a,t.target.id)?.links?.find(i=>i.url===s);return{title:e.removeStoryLink,tone:"delete",body:e.removed(n?.label??Se(s).title)}},SET_STORY_STATUS:(e,t,a)=>{const s=w(x.SET_STORY_STATUS,t).statusId;return{title:e.changeStoryStatus,tone:"update",body:e.toName(B(a,s)?.name??s)}},ADD_STATUS:(e,t)=>({title:e.addStatus,tone:"create",body:e.added(w(x.ADD_STATUS,t).name)}),SET_STATUS_NAME:(e,t,a)=>({title:e.renameStatus,tone:"update",body:R(e,B(a,t.target.id)?.name,w(x.SET_STATUS_NAME,t).name)}),SET_STATUS_TONE:(e,t,a)=>{const s=B(a,t.target.id)?.tone,n=w(x.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=B(a,t.target.id)?.icon,n=w(x.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(B(a,t.target.id)?.name??t.target.id)}),REORDER_STATUS:(e,t)=>({title:e.reorderStatus,tone:"move",body:ae(e,w(x.REORDER_STATUS,t).after)}),ADD_LABEL:(e,t)=>({title:e.addLabel,tone:"create",body:e.added(w(x.ADD_LABEL,t).name)}),SET_LABEL_NAME:(e,t,a)=>({title:e.renameLabel,tone:"update",body:R(e,H(a,t.target.id)?.name,w(x.SET_LABEL_NAME,t).name)}),SET_LABEL_TONE:(e,t,a)=>{const s=H(a,t.target.id)?.tone,n=w(x.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(H(a,t.target.id)?.name??t.target.id)}),REORDER_LABEL:(e,t)=>({title:e.reorderLabel,tone:"move",body:ae(e,w(x.REORDER_LABEL,t).after)}),ADD_STORY_LABEL:(e,t,a)=>{const s=w(x.ADD_STORY_LABEL,t).labelId;return{title:e.addStoryLabel,tone:"create",body:e.added(H(a,s)?.name??s)}},REMOVE_STORY_LABEL:(e,t,a)=>{const s=w(x.REMOVE_STORY_LABEL,t).labelId;return{title:e.removeStoryLabel,tone:"delete",body:e.removed(H(a,s)?.name??s)}},ADD_STORY_BLOCKER:(e,t,a)=>{const s=w(x.ADD_STORY_BLOCKER,t).blockerId;return{title:e.addStoryBlocker,tone:"create",body:e.added(S(a,s)?.name??s)}},REMOVE_STORY_BLOCKER:(e,t,a)=>{const s=w(x.REMOVE_STORY_BLOCKER,t).blockerId;return{title:e.removeStoryBlocker,tone:"delete",body:e.removed(S(a,s)?.name??s)}},SET_MILESTONE_DUE_DATE:(e,t,a)=>{const s=w(x.SET_MILESTONE_DUE_DATE,t).dueDate;return{title:e.changeMilestoneDueDate,tone:s===null?"delete":"update",body:s===null?e.noDueDate:R(e,z(a,t.target.id)?.dueDate,s)}},SET_STATUS_WEIGHT:(e,t,a)=>{const s=B(a,t.target.id)?.weight,n=w(x.SET_STATUS_WEIGHT,t).weight;return{title:e.changeStatusWeight,tone:"update",body:R(e,s===void 0?void 0:String(s),String(n))}},ADD_MEMBER:(e,t)=>({title:e.addMember,tone:"create",body:e.added(w(x.ADD_MEMBER,t).name)}),SET_MEMBER_NAME:(e,t,a)=>({title:e.renameMember,tone:"update",body:R(e,P(a,t.target.id)?.name,w(x.SET_MEMBER_NAME,t).name)}),SET_MEMBER_TONE:(e,t,a)=>{const s=P(a,t.target.id)?.tone,n=w(x.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(P(a,t.target.id)?.name??t.target.id)}),REORDER_MEMBER:(e,t)=>({title:e.reorderMember,tone:"move",body:ae(e,w(x.REORDER_MEMBER,t).after)}),SET_STORY_ASSIGNEE:(e,t,a)=>{const s=w(x.SET_STORY_ASSIGNEE,t).memberId;if(s===null){const n=P(a,S(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(P(a,s)?.name??s)}},ADD_ESTIMATE:(e,t)=>{const{name:a,points:s}=w(x.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,F(a,t.target.id)?.name,w(x.SET_ESTIMATE_NAME,t).name)}),SET_ESTIMATE_POINTS:(e,t,a)=>{const s=F(a,t.target.id)?.points,n=w(x.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(F(a,t.target.id)?.name??t.target.id)}),REORDER_ESTIMATE:(e,t)=>({title:e.reorderEstimate,tone:"move",body:ae(e,w(x.REORDER_ESTIMATE,t).after)}),SET_STORY_ESTIMATE:(e,t,a)=>{const s=w(x.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(F(a,s)?.name??s)}},RECORD_SNAPSHOT:(e,t)=>{const{at:a,tally:s}=w(x.RECORD_SNAPSHOT,t),n=s.reduce((i,r)=>i+r.stories,0);return{title:e.recordSnapshot,tone:"create",body:e.snapshotSummary(re(a),n)}},DELETE_SNAPSHOT:(e,t,a)=>{const s=ce(a,t.target.id);return{title:e.deleteSnapshot,tone:"delete",body:e.removed(s?re(s.at):t.target.id)}},SET_FEATURE:(e,t)=>{const{feature:a,enabled:s}=w(x.SET_FEATURE,t);return{title:s?e.enableFeature:e.disableFeature,tone:s?"create":"delete",body:e.featureName(a)}}},Gt=(e,t,a,s)=>{let n;try{const i=mn[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:Ht(e,a,t.target),tone:n.tone,...n.body===void 0?{}:{summary:n.body}}},Vt=e=>`${e.type} ${T(e.target)} ${JSON.stringify(e.payload)}`,Ht=(e,t,a)=>{try{switch(a.type){case"activity":{const s=Z(t,a.id);return s?e.targetLabel(e.activityGroup,s.name):e.targetMissing(e.activityGroup,a.id)}case"step":{const s=_(t,a.id)?.step;return s?e.targetLabel(e.stepGroup,s.name):e.targetMissing(e.stepGroup,a.id)}case"story":{const s=S(t,a.id);return s?e.targetLabel(e.storyGroup,s.name):e.targetMissing(e.storyGroup,a.id)}case"milestone":{const s=z(t,a.id);return s?e.targetLabel(e.milestoneGroup,s.name):e.targetMissing(e.milestoneGroup,a.id)}case"status":{const s=B(t,a.id);return s?e.targetLabel(e.statusGroup,s.name):e.targetMissing(e.statusGroup,a.id)}case"label":{const s=H(t,a.id);return s?e.targetLabel(e.labelGroup,s.name):e.targetMissing(e.labelGroup,a.id)}case"member":{const s=P(t,a.id);return s?e.targetLabel(e.memberGroup,s.name):e.targetMissing(e.memberGroup,a.id)}case"estimate":{const s=F(t,a.id);return s?e.targetLabel(e.estimateGroup,s.name):e.targetMissing(e.estimateGroup,a.id)}case"snapshot":{const s=ce(t,a.id);return s?e.targetLabel(e.snapshotGroup,re(s.at)):e.targetMissing(e.snapshotGroup,a.id)}case"page":return e.targetLabel(e.mapGroup,Je(t));default:return`${a.type} \xB7 ${a.id}`}}catch{return`${a.type} \xB7 ${a.id}`}},Kt=(e,t,a)=>{const s=[{value:"page:usm",label:e.wholeMap,group:e.mapGroup}];for(const n of t.activities){s.push({value:T({type:"activity",id:n.id}),label:n.name,group:e.activityGroup});for(const i of n.steps)s.push({value:T({type:"step",id:J(n.id,i.id)}),label:`${n.name} \u203A ${i.name}`,group:e.stepGroup})}for(const n of t.milestones)s.push({value:T({type:"milestone",id:n.id}),label:n.name,group:e.milestoneGroup});for(const n of t.statuses)s.push({value:T({type:"status",id:n.id}),label:n.name,group:e.statusGroup});for(const n of t.labels)s.push({value:T({type:"label",id:n.id}),label:n.name,group:e.labelGroup});for(const n of t.members)s.push({value:T({type:"member",id:n.id}),label:n.name,group:e.memberGroup});for(const n of t.estimates)s.push({value:T({type:"estimate",id:n.id}),label:e.estimateText(n.name,n.points),group:e.estimateGroup});for(const n of t.snapshots)s.push({value:T({type:"snapshot",id:n.id}),label:re(n.at),group:e.snapshotGroup});for(const n of t.stories)s.push({value:T({type:"story",id:n.id}),label:n.name,group:e.storyGroup});return s},qt=(e,t,a)=>{const s=t.stories.find(n=>n.id===a.story);if(s)return{value:T({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:T({type:"step",id:J(n.id,i.id)}),label:i.name,group:e.stepGroup}}return null},Je=e=>e.title??"User Story Mapping",hn=(e,t)=>{switch(t.type){case"story":return{tab:null,highlight:null,...Object.fromEntries(me.map(a=>[a,null]))};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 K(e,"assignees")?{tab:"members"}:null;case"estimate":case"snapshot":return K(e,"estimates")?{tab:"burndown"}:null;default:return null}},Wt=(e,t)=>{const a=_(e,t.step),s=a?.activity??Z(e,t.activity)??e.activities[0],n=a?.step??s?.steps.find(u=>u.id===t.step)??s?.steps[0],i=S(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 d=Ae(e,t);for(const u of me){const f=Pt(e,u,d[u]);f===null?delete r[u]:r[u]=f}const o=Rt(e,t);o==="map"?delete r.tab:r.tab=o,z(e,t.milestone)||delete r.milestone,je.some(u=>u===t.unit)||delete r.unit;const p=Te(t);return p===null?delete r.highlight:r.highlight=p,r},jt=(e,t)=>{switch(t.type){case"activity":return Z(e,t.id)!==void 0;case"step":return _(e,t.id)!==void 0;case"story":return S(e,t.id)!==void 0;case"milestone":return z(e,t.id)!==void 0;case"status":return B(e,t.id)!==void 0;case"label":return H(e,t.id)!==void 0;case"member":return P(e,t.id)!==void 0;case"estimate":return F(e,t.id)!==void 0;case"snapshot":return ce(e,t.id)!==void 0;case"page":return!0;default:return!1}},Xt=e=>{const t=ue(e);return{name:"usm",label:"User Story Mapping",parseBase:yt,emptyBase:xt,actions:x,apply:St,canonicalState:Ps,hasTarget:jt,canonicalTarget:(a,s)=>{if(s.type!=="step")return s;const n=_(a,s.id);return n?{...s,id:J(n.activity.id,n.step.id)}:s},describe:(a,s,n)=>Gt(t,a,s,n),serialize:Vt,resolveNavigation:Wt,navigationFor:hn,commentTargets:(a,s)=>Kt(t,a),currentTarget:(a,s)=>qt(t,a,s),title:Je}},Zt=.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+Zt)return[];const r=t-s+Zt,d=new Set;let o=0;const p=u=>{o+=(d.size===0?0:a)+(e[u]??0),d.add(u)};n>=0&&n<e.length&&p(n);for(const[u,f]of e.entries())if(!d.has(u)){if(o+(d.size===0?0:a)+f>r)break;p(u)}return e.flatMap((u,f)=>d.has(f)?[]:[f])},Jt=new Set;class bn{#i;#e;#t=Jt;#s=0;#a=null;#n=null;constructor(t,a){this.#i=t,this.#e=a,t.addController(this)}get hidden(){return this.#t}get minimum(){return this.#s}hostConnected(){typeof ResizeObserver>"u"||(this.#a=new ResizeObserver(()=>this.#r()))}hostUpdated(){const t=this.#e.row();t!==this.#n&&(this.#n&&this.#a?.unobserve(this.#n),t&&this.#a?.observe(t),this.#n=t),this.#r()}hostDisconnected(){this.#a?.disconnect(),this.#a=null,this.#n=null}#r(){const t=this.#e.row();if(!t)return;const a=this.#e.items(t),s=a.map($=>$.getBoundingClientRect().width),n=a.findIndex($=>this.#e.kept($)),i=a[0]?.parentElement,r=i?Qt(i):0,d=this.#e.more(t),o=d?d.getBoundingClientRect().width+Qt(t):0,p=gn({widths:s,available:t.getBoundingClientRect().width,gap:r,moreWidth:o,keep:n}),u=new Set(p.flatMap($=>{const g=a[$];return g?[this.#e.keyOf(g)]:[]})),f=Math.ceil((s[n]??0)+o);fn(u,this.#t)&&f===this.#s||(this.#t=u.size===0?Jt:u,this.#s=f,this.#i.requestUpdate())}}const Qt=e=>Number.parseFloat(getComputedStyle(e).columnGap)||0,fn=(e,t)=>e.size===t.size&&[...e].every(a=>t.has(a)),Qe=1440*60*1e3,vn=48,yn=8,kn=(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(b=>b.at),a,...t===null?[]:[t]];let r=Math.min(...i),d=Math.max(...i);d-r<Qe&&(r-=Qe/2,d+=Qe/2);const o=xn(Math.max(0,...e.map(b=>b.value))),p=o.at(-1)??1,u=b=>n.left+(b-r)/(d-r)*(n.right-n.left),f=b=>n.bottom-b/p*(n.bottom-n.top),$=e.map(b=>({x:u(b.at),y:f(b.value),at:b.at,value:b.value,...b.snapshotId===void 0?{}:{snapshotId:b.snapshotId}})),g=$[0],c=En(r,d,Math.floor((n.right-n.left)/vn));return{size:s,plot:n,line:$.map(b=>`${he(b.x)},${he(b.y)}`).join(" "),dots:$,ideal:t===null||!g?null:{x1:g.x,y1:g.y,x2:u(t),y2:f(0)},nowX:u(a),dueX:t===null?null:u(t),yTicks:o.map(b=>({y:f(b),value:b})),valueTop:p,xUnit:c.unit,xTicks:c.ats.map(b=>({x:u(b),at:b})),domain:{start:r,end:d},idealSpan:t===null||!g?null:{at:g.at,value:g.value,due:t}}},xn=e=>{const t=wn(e/4),a=Math.max(1,Math.ceil(e/t));return Array.from({length:a+1},(s,n)=>n*t)},wn=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},he=e=>Math.round(e*100)/100,En=(e,t,a)=>{const s=Math.max(1,a),n=["day","week","biweek","month","quarter"];for(const i of n){const r=ea(i,e,t,s);if(r!==null)return{unit:i,ats:r}}return{unit:"year",ats:ea("year",e,t,1/0)??[]}},ea=(e,t,a,s)=>{const n=[];for(let i=$n(e,t);i<=a;i=Sn(e,i)){if(n.length===s)return null;n.push(i)}return n},$n=(e,t)=>{const a=new Date(t),[s,n,i]=[a.getFullYear(),a.getMonth(),a.getDate()],r=(d,o)=>d.getTime()>=t?d.getTime():o().getTime();switch(e){case"day":return r(new Date(s,n,i),()=>new Date(s,n,i+1));case"week":case"biweek":{const d=r(new Date(s,n,i),()=>new Date(s,n,i+1)),o=new Date(d),p=(8-o.getDay())%7;return new Date(o.getFullYear(),o.getMonth(),o.getDate()+p).getTime()}case"month":return r(new Date(s,n,1),()=>new Date(s,n+1,1));case"quarter":{const d=n-n%3;return r(new Date(s,d,1),()=>new Date(s,d+3,1))}case"year":return r(new Date(s,0,1),()=>new Date(s+1,0,1))}},Sn=(e,t)=>{const a=new Date(t),[s,n,i]=[a.getFullYear(),a.getMonth(),a.getDate()],r={day:1,week:7,biweek:14},d={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+d[e],1).getTime()},ta=(e,t)=>{const{plot:a,domain:s,dots:n}=e,i=Math.min(a.right,Math.max(a.left,t)),r=n.reduce(($,g)=>$===null||Math.abs(g.x-i)<Math.abs($.x-i)?g:$,null),d=r!==null&&Math.abs(r.x-i)<=yn?r:null,o=d?.at??s.start+(i-a.left)/(a.right-a.left)*(s.end-s.start),p=d?.value??Tn(n,o),u=An(e,o),f=$=>$===null?null:he(a.bottom-$/e.valueTop*(a.bottom-a.top));return{x:d?.x??i,at:o,actual:p,ideal:u,actualY:f(p),idealY:f(u),dot:d}},Tn=(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?he(n.value+(s.value-n.value)*(t-n.at)/(s.at-n.at)):null},An=(e,t)=>{const a=e.idealSpan;return a===null||t<a.at||t>a.due?null:he(a.value*(a.due-t)/(a.due-a.at))},I=e=>`--usm-tone: var(--dpk-${e==null||e==="gray"?"ink-faint":e})`,aa={circle:M(vs),lightbulb:M(Es),flag:M(ws),play:M(gs),clock:M(ys),eye:M(xs),pause:M(hs),check:M(us),x:M(fs)},_n=M(ms),In=e=>{if(e>=1)return aa.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?L`<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>`},oe=e=>{const t=e===void 0?_n():e.icon==="progress"?In(e.progress??1):aa[e.icon]();return l`<span class="status-icon">${t}</span>`},sa=(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=${`${I(a.tone)};flex-grow:${a.count}`}
|
|
17
|
-
></span>`)}
|
|
18
|
-
</span>`,na=V`
|
|
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
|
-
`,Mn=V`
|
|
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 Ln extends ot{static{this.styles=[Mn]}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 dt(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=ue(this.#i.locale),a=kn(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=${I(this.tone)}
|
|
187
|
-
@pointermove=${i=>this.#e(a,i)}
|
|
188
|
-
@pointerleave=${()=>this.readout=null}
|
|
189
|
-
@focus=${()=>this.#t(a,a.dots.length-1)}
|
|
190
|
-
@blur=${()=>this.readout=null}
|
|
191
|
-
@keydown=${i=>this.#s(a,i)}
|
|
192
|
-
>
|
|
193
|
-
<svg class="bd-svg" viewBox=${`0 0 ${s.width} ${s.height}`} aria-hidden="true">
|
|
194
|
-
${Dn(t,a)} ${Rn(a)} ${this.readout?On(a,this.readout):m}
|
|
195
|
-
</svg>
|
|
196
|
-
${this.readout?Nn(t,a,this.readout):m}
|
|
197
|
-
</div>`}#e(t,a){const s=this.renderRoot.querySelector("svg")?.getBoundingClientRect();!s||s.width===0||(this.readout=ta(t,(a.clientX-s.left)/s.width*t.size.width))}#t(t,a){const s=t.dots[a];this.readout=s?ta(t,s.x):null}#s(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.#t(t,i))}}const Dn=(e,t)=>{const{plot:a,size:s}=t,n=s.height-8;return L`
|
|
198
|
-
${t.yTicks.map(i=>L`<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=>L`<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:L`<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
|
-
`},Rn=e=>L`
|
|
207
|
-
${e.ideal?L`<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=>L`<circle class="bd-dot" data-now=${t.snapshotId===void 0?"true":m} cx=${t.x} cy=${t.y} r="3.5"></circle>`)}
|
|
210
|
-
`,On=(e,t)=>L`
|
|
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:L`<circle class="bd-mark" data-line="ideal" cx=${t.x} cy=${t.idealY} r="3.5"></circle>`}
|
|
213
|
-
${t.actualY===null?m:L`<circle class="bd-mark" data-line="actual" cx=${t.x} cy=${t.actualY} r="4.5"></circle>`}
|
|
214
|
-
`,Nn=(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 ${re(a.dot.at)}`:re(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>`},Cn=()=>{customElements.get("dpk-internal-usm-burndown-chart")||customElements.define("dpk-internal-usm-burndown-chart",Ln)},Bn=new Intl.Segmenter(void 0,{granularity:"grapheme"}),et=e=>{const[t]=Bn.segment(e.trim());return t?t.segment.toUpperCase():"?"},Yn={github:L`<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:L`<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:L`<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:L`<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:L`<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:L`<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>`},ia=e=>e==="web"?ja():l`<svg class="link-mark" viewBox="0 0 16 16" aria-hidden="true">${Yn[e]}</svg>`,ra=V`
|
|
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
|
-
`,ge=e=>{const t=e.statuses.length-1;return e.statuses.map((a,s)=>({id:a.id,name:a.name,tone:a.tone,icon:a.icon,progress:t<=0?1:s/t}))},oa=(e,t)=>e.find(a=>a.id===t.statusId),da=(e,t)=>ge(e).map(a=>({...a,count:t.filter(s=>s.statusId===a.id).length})).filter(a=>a.count>0),Un=M($s),zn=M(ls),Pn=3,Fn=V`
|
|
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
|
-
.card-chip {
|
|
451
|
-
display: inline-flex;
|
|
452
|
-
align-items: center;
|
|
453
|
-
gap: 4px;
|
|
454
|
-
min-width: 0;
|
|
455
|
-
padding: 1px 7px;
|
|
456
|
-
border-radius: 6px;
|
|
457
|
-
background: color-mix(in oklab, var(--card-tone) 10%, var(--dpk-paper-sunken));
|
|
458
|
-
color: var(--dpk-ink-soft);
|
|
459
|
-
font-size: 10.5px;
|
|
460
|
-
font-weight: 600;
|
|
461
|
-
line-height: 18px;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
.card-chip span {
|
|
465
|
-
overflow: hidden;
|
|
466
|
-
text-overflow: ellipsis;
|
|
467
|
-
white-space: nowrap;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.card-chip[data-kind='comments'] {
|
|
471
|
-
margin-left: auto;
|
|
472
|
-
background: transparent;
|
|
473
|
-
color: var(--dpk-ink-faint);
|
|
474
|
-
font-family: var(--dpk-mono);
|
|
475
|
-
font-variant-numeric: tabular-nums;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
.card-chip svg {
|
|
479
|
-
flex: none;
|
|
480
|
-
width: 12px;
|
|
481
|
-
height: 12px;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
/* The labels the story carries, each in its own color. */
|
|
485
|
-
.card-labels {
|
|
486
|
-
display: flex;
|
|
487
|
-
flex-wrap: wrap;
|
|
488
|
-
gap: 4px;
|
|
489
|
-
min-width: 0;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
.label-chip {
|
|
493
|
-
display: inline-flex;
|
|
494
|
-
align-items: center;
|
|
495
|
-
gap: 5px;
|
|
496
|
-
min-width: 0;
|
|
497
|
-
max-width: 100%;
|
|
498
|
-
padding: 0 7px;
|
|
499
|
-
border: 1px solid color-mix(in oklab, var(--usm-tone) 35%, transparent);
|
|
500
|
-
border-radius: 999px;
|
|
501
|
-
background: color-mix(in oklab, var(--usm-tone) 12%, var(--dpk-paper-raised));
|
|
502
|
-
color: var(--dpk-ink);
|
|
503
|
-
font-size: 10.5px;
|
|
504
|
-
font-weight: 600;
|
|
505
|
-
line-height: 17px;
|
|
506
|
-
overflow: hidden;
|
|
507
|
-
text-overflow: ellipsis;
|
|
508
|
-
white-space: nowrap;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
.label-chip::before {
|
|
512
|
-
content: '';
|
|
513
|
-
flex: none;
|
|
514
|
-
width: 6px;
|
|
515
|
-
height: 6px;
|
|
516
|
-
border-radius: 50%;
|
|
517
|
-
background: var(--usm-tone);
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
/*
|
|
521
|
-
* Where the story sits among the others. A story that holds others up is
|
|
522
|
-
* work to pull forward (a spike), so its chip is the loud one; one still
|
|
523
|
-
* waiting reads quieter and goes away once its blockers are done.
|
|
524
|
-
*/
|
|
525
|
-
.card-deps {
|
|
526
|
-
display: flex;
|
|
527
|
-
flex-wrap: wrap;
|
|
528
|
-
gap: 4px;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
.dep-chip {
|
|
532
|
-
display: inline-flex;
|
|
533
|
-
align-items: center;
|
|
534
|
-
gap: 4px;
|
|
535
|
-
padding: 0 7px;
|
|
536
|
-
border-radius: 6px;
|
|
537
|
-
font-size: 10.5px;
|
|
538
|
-
font-weight: 650;
|
|
539
|
-
line-height: 18px;
|
|
540
|
-
white-space: nowrap;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
.dep-chip svg {
|
|
544
|
-
flex: none;
|
|
545
|
-
width: 12px;
|
|
546
|
-
height: 12px;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
.dep-chip[data-kind='blocks'] {
|
|
550
|
-
background: var(--dpk-amber);
|
|
551
|
-
color: var(--dpk-paper-raised);
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
.dep-chip[data-kind='waits'] {
|
|
555
|
-
border: 1px dashed color-mix(in oklab, var(--dpk-ink-faint) 60%, transparent);
|
|
556
|
-
color: var(--dpk-ink-soft);
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
/* With a story open, the cards it waits on and the cards waiting on it stand out. */
|
|
560
|
-
:host([data-relation]) {
|
|
561
|
-
outline: 2px dashed var(--relation-tone);
|
|
562
|
-
outline-offset: 2px;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
:host([data-relation='blocker']) {
|
|
566
|
-
--relation-tone: var(--dpk-amber);
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
:host([data-relation='dependent']) {
|
|
570
|
-
--relation-tone: var(--dpk-violet);
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
.card-links {
|
|
574
|
-
display: flex;
|
|
575
|
-
flex-wrap: wrap;
|
|
576
|
-
gap: 4px;
|
|
577
|
-
min-width: 0;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
.card-links .link-chip {
|
|
581
|
-
border-color: color-mix(in oklab, var(--card-tone) 16%, var(--dpk-rule));
|
|
582
|
-
background: var(--dpk-paper-raised);
|
|
583
|
-
}
|
|
584
|
-
`;class Gn extends ot{static{this.styles=[Xa,na,ra,Fn]}static{this.properties={story:{attribute:!1},stepName:{attribute:!1},statuses:{attribute:!1},labels:{attribute:!1},notes:{attribute:!1},estimate:{attribute:!1},assignee:{attribute:!1},blocks:{type:Number},waits:{type:Number},focused:{type:Boolean,reflect:!0},dragging:{type:Boolean,reflect:!0}}}#i=new dt(this);constructor(){super(),this.story=null,this.stepName="",this.statuses=[],this.labels=[],this.notes=[],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=ue(this.#i.locale),s=this.stepName!==""||this.notes.length>0;return l`
|
|
585
|
-
<div class="card-head">
|
|
586
|
-
${this.statuses.length===0?m:this.#e(a,t)}
|
|
587
|
-
<div class="card-name"><span>${t.name}</span></div>
|
|
588
|
-
${this.estimate||this.assignee?this.#t(a):m}
|
|
589
|
-
</div>
|
|
590
|
-
${t.description?l`<div class="card-text" @click=${Hn}>${Za(Ja(t.description))}</div>`:m}
|
|
591
|
-
${this.blocks>0||this.waits>0?this.#s(a):m}
|
|
592
|
-
${this.labels.length>0?Vn(this.labels):m}
|
|
593
|
-
${t.links&&t.links.length>0?this.#a(t.links):m}
|
|
594
|
-
${s?l`<div class="card-foot">
|
|
595
|
-
${this.stepName===""?m:l`<span class="card-chip" data-kind="step"><span>${this.stepName}</span></span>`}
|
|
596
|
-
${this.notes.length>0?l`<span
|
|
597
|
-
class="card-chip"
|
|
598
|
-
data-kind="comments"
|
|
599
|
-
aria-label=${a.commentCountAria(this.notes.length)}
|
|
600
|
-
>
|
|
601
|
-
${Qa()}<span>${this.notes.length}</span>
|
|
602
|
-
</span>`:m}
|
|
603
|
-
</div>`:m}
|
|
604
|
-
`}#e(t,a){const s=oa(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}>
|
|
605
|
-
${oe(s)}
|
|
606
|
-
</span>`}#t(t){const{estimate:a,assignee:s}=this;return l`<span class="card-meta">
|
|
607
|
-
${a?l`<span
|
|
608
|
-
class="estimate-chip"
|
|
609
|
-
title=${t.estimateChipTitle(t.estimateText(a.name,a.points))}
|
|
610
|
-
>${a.name}</span
|
|
611
|
-
>`:m}
|
|
612
|
-
${s?l`<span
|
|
613
|
-
class="assignee-avatar"
|
|
614
|
-
style=${I(s.tone)}
|
|
615
|
-
title=${t.assigneeChipTitle(s.name)}
|
|
616
|
-
>${et(s.name)}</span
|
|
617
|
-
>`:m}
|
|
618
|
-
</span>`}#s(t){return l`<div class="card-deps">
|
|
619
|
-
${this.blocks>0?l`<span class="dep-chip" data-kind="blocks" title=${t.blocksChipTitle(this.blocks)}
|
|
620
|
-
>${Un()}${t.blocksChip(this.blocks)}</span
|
|
621
|
-
>`:m}
|
|
622
|
-
${this.waits>0?l`<span class="dep-chip" data-kind="waits" title=${t.waitsChipTitle(this.waits)}
|
|
623
|
-
>${zn()}${t.waitsChip(this.waits)}</span
|
|
624
|
-
>`:m}
|
|
625
|
-
</div>`}#a(t){const a=t.slice(0,Pn);return l`<div class="card-links">
|
|
626
|
-
${a.map(s=>{const n=Se(s.url);return l`<a
|
|
627
|
-
class="link-chip"
|
|
628
|
-
data-kind=${n.kind}
|
|
629
|
-
href=${s.url}
|
|
630
|
-
target="_blank"
|
|
631
|
-
rel="noopener noreferrer"
|
|
632
|
-
title=${s.label??n.title}
|
|
633
|
-
draggable="false"
|
|
634
|
-
tabindex="-1"
|
|
635
|
-
@click=${i=>i.stopPropagation()}
|
|
636
|
-
>${ia(n.kind)}<span>${s.label??n.text}</span></a
|
|
637
|
-
>`})}
|
|
638
|
-
${t.length>a.length?l`<span class="link-chip">+${t.length-a.length}</span>`:m}
|
|
639
|
-
</div>`}}const Vn=e=>l`<div class="card-labels">
|
|
640
|
-
${e.map(t=>l`<span class="label-chip" data-label=${t.id} style=${I(t.tone)}>${t.name}</span>`)}
|
|
641
|
-
</div>`,Hn=e=>{e.target instanceof Element&&e.target.closest("a")&&e.stopPropagation()},Kn=()=>{customElements.get("dpk-internal-usm-story-card")||customElements.define("dpk-internal-usm-story-card",Gn)},qn=(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},la=(e,t,a,s,n)=>{const i=$e(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:pe(i,a,s,n)}}},pa=(e,t,a,s,n,i)=>{const r=S(e,s);if(!r||r.activityId!==t)return null;const d=wt(e,t,a).map(o=>o.id);return{type:"MOVE_STORY",target:{type:"story",id:s},payload:{activityId:t,stepId:r.stepId,milestoneId:a??null,after:pe(d,s,n,i)}}},ca=(e,t,a,s,n)=>{const i=$e(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}}},ua=(e,t,a,s)=>e.includes(t)?{type:"REORDER_MILESTONE",target:{type:"milestone",id:t},payload:{after:pe(e,t,a,s)}}:null,Wn=(e,t,a,s)=>e.includes(t)?{type:"REORDER_ACTIVITY",target:{type:"activity",id:t},payload:{after:pe(e,t,a,s)}}:null,jn=(e,t,a,s)=>{const n=_(e,t);if(!n)return null;const i=a===null?void 0:_(e,a);if(a!==null&&i?.activity.id!==n.activity.id)return null;const r=n.activity.id,d=n.activity.steps.map(u=>J(r,u.id)),o=J(r,n.step.id),p=i?J(r,i.step.id):null;return{type:"REORDER_STEP",target:{type:"step",id:o},payload:{after:pe(d,o,p,s)}}},Xn=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}})}},Zn=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}})}},Jn=e=>{const t=e.stories.length,a=Ee(e);return e.milestones.map((s,n)=>{const i=e.stories.filter(d=>d.milestoneId===s.id),r=new Set(i.map(d=>d.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:d})=>r.has(d.id)).length,total:a.length},progress:da(e,i)}})},ma=(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},Qn=(e,t)=>{const a=t.flatMap(o=>{const p=ma(e,o);return p?[p]:[]});if(!a[0])return null;const n=Math.min(...a.map(o=>o.left)),i=Math.min(...a.map(o=>o.top)),r=Math.max(...a.map(o=>o.left+o.width)),d=Math.max(...a.map(o=>o.top+o.height));return{box:{left:n,top:i,width:r-n,height:d-i},parts:t.map(o=>ma(e,o)?{left:o.left-n,top:o.top-i,width:o.width,height:o.height}:null)}},ei=(e,t,a)=>{const s=e.dataTransfer;if(!s)return;const n=Qn(a.getBoundingClientRect(),t.map(o=>o.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[o,p]of t.entries()){const u=n.parts[o],f=Ie(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 d=a.getRootNode();(d instanceof ShadowRoot?d:document.body).append(r),s.setDragImage(r,e.clientX-i.left,e.clientY-i.top),setTimeout(()=>r.remove(),0)},Ie=e=>{if(e instanceof Element&&e.shadowRoot)return ti(e,e.shadowRoot);const t=e.cloneNode(!1);t instanceof Element&&t.removeAttribute("id");for(const a of e.childNodes)t.appendChild(Ie(a));return t},ti=(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(Ie(r));for(const r of e.childNodes)a.appendChild(Ie(r));return a},ha=(e,t)=>{const a=X("new-activity",j(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",[...j(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})},ai=(e,t,a)=>{const s=X("new-step",j(t.state));t.dispatch({type:"ADD_STEP",target:{type:"activity",id:a},payload:{id:s,name:e.newStepName}})},ga=(e,t)=>{const a=X("new-milestone",j(t.state));t.dispatch({type:"ADD_MILESTONE",target:{type:"page",id:"usm"},payload:{id:a,name:e.newMilestoneName}})},ba=(e,t,a,s,n)=>{const i=X("new-story",j(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}}}).ok&&t.navigate({activity:a,step:s,story:i})},si=(e,t)=>{const a=X("new-status",j(t.state));t.dispatch({type:"ADD_STATUS",target:{type:"page",id:"usm"},payload:{id:a,name:e.newStatusName,tone:Ve(t.state.statuses.length)}})},ni=(e,t)=>{const a=X("new-label",j(t.state));t.dispatch({type:"ADD_LABEL",target:{type:"page",id:"usm"},payload:{id:a,name:e.newLabelName,tone:xe(t.state.labels.length)}})},ii=(e,t)=>{const a=X("new-member",j(t.state));t.dispatch({type:"ADD_MEMBER",target:{type:"page",id:"usm"},payload:{id:a,name:e.newMemberName,tone:xe(t.state.members.length)}})},ri=(e,t)=>{const a=X("new-estimate",j(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}})},oi=(e,t)=>{const a=X(`snapshot-${t.toISOString().slice(0,10)}`,j(e.state));e.dispatch({type:"RECORD_SNAPSHOT",target:{type:"page",id:"usm"},payload:{id:a,at:t.toISOString(),tally:Ct(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)}]},di=(e,t)=>l`
|
|
642
|
-
<div class="empty">
|
|
643
|
-
<h2>${e.emptyTitle}</h2>
|
|
644
|
-
<p>${e.emptyBody}</p>
|
|
645
|
-
<button class="dpk-btn dpk-btn--accent" type="button" @click=${()=>ha(e,t)}>
|
|
646
|
-
${e.firstActivityButton}
|
|
647
|
-
</button>
|
|
648
|
-
</div>
|
|
649
|
-
`,li=e=>{const{m:t,context:a}=e,s=Ee(a.state);return s.length===0?di(t,a):va(a)==="activity"?ci(e,s):ui(e)},va=e=>e.navigation.view==="group"?"group":"activity",pi=(e,t)=>{const a=va(t);return l`<div class="segmented view-tabs" role="tablist" aria-label=${e.groupingLabel}>
|
|
650
|
-
${ya(t,"activity",a,e.activityGroup)}
|
|
651
|
-
${ya(t,"group",a,e.groupViewTab)}
|
|
652
|
-
</div>`},ya=(e,t,a,s)=>{const n=t===a;return l`<a
|
|
653
|
-
class="tab"
|
|
654
|
-
role="tab"
|
|
655
|
-
data-current=${String(n)}
|
|
656
|
-
aria-selected=${n?"true":"false"}
|
|
657
|
-
href=${e.hashFor({view:t})}
|
|
658
|
-
>${s}</a
|
|
659
|
-
>`},ci=(e,t)=>{const{m:a,context:s}=e,{state:n}=s,i=fa(a,n);return l`
|
|
660
|
-
<div class="map-scroll">
|
|
661
|
-
<div class="map" style=${`--cols:${t.length+1}`} data-testid="usm-map">
|
|
662
|
-
<div class="map-head">
|
|
663
|
-
<div class="map-row">
|
|
664
|
-
<div class="corner">
|
|
665
|
-
<span class="dpk-label">${a.groupAxisHeader}</span>
|
|
666
|
-
</div>
|
|
667
|
-
${C(n.activities,r=>r.id,r=>xa(e,r.id,`grid-column: span ${Math.max(r.steps.length,1)}`))}
|
|
668
|
-
${Ea(a,s)}
|
|
669
|
-
</div>
|
|
670
|
-
<div class="map-row">
|
|
671
|
-
${ka(a)}
|
|
672
|
-
${C(t,({activity:r,step:d})=>`${r.id}.${d.id}`,({activity:r,step:d})=>mi(e,r.id,d))}
|
|
673
|
-
<div class="corner"><span class="dpk-label">—</span></div>
|
|
674
|
-
</div>
|
|
675
|
-
</div>
|
|
676
|
-
${C(i,r=>r.id,r=>Sa(e,r,l`${C(t,({activity:d,step:o})=>`${d.id}.${o.id}`,({activity:d,step:o})=>gi(e,{activityId:d.id,stepId:o.id,milestoneId:r.id}))}`))}
|
|
677
|
-
${$a(a,s,t.length)}
|
|
678
|
-
</div>
|
|
679
|
-
</div>
|
|
680
|
-
`},ui=e=>{const{m:t,context:a}=e,{state:s}=a,n=fa(t,s);return l`
|
|
681
|
-
<div class="map-scroll">
|
|
682
|
-
<div class="map" style=${`--cols:${s.activities.length+1}`} data-testid="usm-map-group">
|
|
683
|
-
<div class="map-head">
|
|
684
|
-
<div class="map-row">
|
|
685
|
-
${ka(t)}
|
|
686
|
-
${C(s.activities,i=>i.id,i=>xa(e,i.id,void 0,!0))}
|
|
687
|
-
${Ea(t,a)}
|
|
688
|
-
</div>
|
|
689
|
-
</div>
|
|
690
|
-
${C(n,i=>i.id,i=>Sa(e,i,l`${C(s.activities,r=>r.id,r=>bi(e,r.id,i.id))}`))}
|
|
691
|
-
${$a(t,a,s.activities.length)}
|
|
692
|
-
</div>
|
|
693
|
-
</div>
|
|
694
|
-
`},ka=e=>l`<div class="corner">
|
|
695
|
-
<span class="dpk-label">${e.activityAxis}</span>
|
|
696
|
-
<span class="dpk-label">${e.milestoneAxis}</span>
|
|
697
|
-
</div>`,xa=(e,t,a,s=!1)=>{const{m:n,context:i,drag:r}=e,{state:d}=i,o=d.activities.find(g=>g.id===t);if(!o)return l`<div class="act-head"></div>`;const p=d.stories.filter(g=>g.activityId===o.id),u=da(d,p),f=r.combine("activity",Me(e,o.id)),$=r.source({type:"activity",id:o.id});return l`
|
|
698
|
-
<div
|
|
699
|
-
class="act-head"
|
|
700
|
-
style=${a??""}
|
|
701
|
-
data-activity=${o.id}
|
|
702
|
-
data-column=${o.id}
|
|
703
|
-
data-dpk-target=${T({type:"activity",id:o.id})}
|
|
704
|
-
draggable="true"
|
|
705
|
-
data-col-dragging=${String(r.isDragging("activity",o.id))}
|
|
706
|
-
data-col-drop=${Le(r,o.id)}
|
|
707
|
-
@dragstart=${g=>{Ma(g,o.id),$.dragstart(g)}}
|
|
708
|
-
@dragend=${$.dragend}
|
|
709
|
-
@dragenter=${f.dragenter}
|
|
710
|
-
@dragover=${f.dragover}
|
|
711
|
-
@dragleave=${f.dragleave}
|
|
712
|
-
@drop=${f.drop}
|
|
713
|
-
>
|
|
714
|
-
<div class="act-title">
|
|
715
|
-
<span class="col-grip" aria-hidden="true">${Ce()}</span>
|
|
716
|
-
<span class="act-name">
|
|
717
|
-
<dpk-component-inline-edit
|
|
718
|
-
draggable="false"
|
|
719
|
-
.value=${o.name}
|
|
720
|
-
.label=${n.activityNameLabel}
|
|
721
|
-
@dpk-commit=${W(g=>i.dispatch({type:"SET_ACTIVITY_NAME",target:{type:"activity",id:o.id},payload:{name:g}}))}
|
|
722
|
-
></dpk-component-inline-edit>
|
|
723
|
-
<span class="act-actor" data-empty=${String(o.actor===void 0)}>
|
|
724
|
-
<dpk-component-inline-edit
|
|
725
|
-
draggable="false"
|
|
726
|
-
truncate
|
|
727
|
-
.value=${o.actor??""}
|
|
728
|
-
.label=${n.activityActorLabel}
|
|
729
|
-
.placeholder=${n.activityActorLabel}
|
|
730
|
-
@dpk-commit=${W(g=>i.dispatch({type:"SET_ACTIVITY_ACTOR",target:{type:"activity",id:o.id},payload:{actor:g}}))}
|
|
731
|
-
></dpk-component-inline-edit>
|
|
732
|
-
</span>
|
|
733
|
-
</span>
|
|
734
|
-
<span class="count">${p.length}</span>
|
|
735
|
-
<button
|
|
736
|
-
class="dpk-icon-btn"
|
|
737
|
-
type="button"
|
|
738
|
-
aria-label=${n.addStepAria}
|
|
739
|
-
@click=${()=>ai(n,i,o.id)}
|
|
740
|
-
>
|
|
741
|
-
${es()}
|
|
742
|
-
</button>
|
|
743
|
-
</div>
|
|
744
|
-
${sa(u,n.progressAria(u.map(g=>`${g.name} ${g.count}`).join(", ")))}
|
|
745
|
-
${s&&o.steps.length>0?l`<ol class="act-steps">
|
|
746
|
-
${o.steps.map(g=>l`<li>${g.name}</li>`)}
|
|
747
|
-
</ol>`:m}
|
|
748
|
-
</div>
|
|
749
|
-
`},mi=(e,t,a)=>{const{m:s,context:n,drag:i}=e,r=J(t,a.id),d=i.combine("step",Me(e,t,a.id)),o=i.source({type:"step",id:r});return l`
|
|
750
|
-
<div
|
|
751
|
-
class="col-head"
|
|
752
|
-
data-step=${r}
|
|
753
|
-
data-column=${t}
|
|
754
|
-
data-column-step=${a.id}
|
|
755
|
-
data-current=${String(n.navigation.step===a.id)}
|
|
756
|
-
data-dpk-target=${T({type:"step",id:r})}
|
|
757
|
-
draggable="true"
|
|
758
|
-
data-col-dragging=${String(tt(i,t,a.id))}
|
|
759
|
-
data-col-drop=${Le(i,t,a.id)}
|
|
760
|
-
data-step-edge=${wa(n.state,t,a.id)}
|
|
761
|
-
@dragstart=${p=>{Ma(p,t,a.id),o.dragstart(p)}}
|
|
762
|
-
@dragend=${o.dragend}
|
|
763
|
-
@dragenter=${d.dragenter}
|
|
764
|
-
@dragover=${d.dragover}
|
|
765
|
-
@dragleave=${d.dragleave}
|
|
766
|
-
@drop=${d.drop}
|
|
767
|
-
>
|
|
768
|
-
<span class="col-grip" aria-hidden="true">${Ce()}</span>
|
|
769
|
-
<h4>
|
|
770
|
-
<dpk-component-inline-edit
|
|
771
|
-
draggable="false"
|
|
772
|
-
.value=${a.name}
|
|
773
|
-
.label=${s.stepNameLabel}
|
|
774
|
-
@dpk-commit=${W(p=>n.dispatch({type:"SET_STEP_NAME",target:{type:"step",id:a.id},payload:{name:p}}))}
|
|
775
|
-
@click=${p=>p.stopPropagation()}
|
|
776
|
-
></dpk-component-inline-edit>
|
|
777
|
-
</h4>
|
|
778
|
-
<span class="count">${Et(n.state,a.id)}</span>
|
|
779
|
-
</div>
|
|
780
|
-
`},Me=(e,t,a)=>{const{context:s,drag:n,handlers:i}=e,r=n.target({key:`activity:${t}`,accepts:"activity",hovered:Ia(t),onDrop:f=>i.dropOnActivity(f)});if(a===void 0)return[["activity",r]];const d=n.item;if(d?.type==="step"&&_(s.state,d.id)?.activity.id!==t)return[["activity",r]];const p=J(t,a),u=n.target({key:`step:${p}`,accepts:"step",hovered:Ia(p),onDrop:f=>i.dropOnStep(f)});return[["activity",r],["step",u]]},Le=(e,t,a)=>e.isOver(`activity:${t}`)?"activity":a!==void 0&&e.isOver(`step:${J(t,a)}`)?"step":"none",wa=(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(" ")},tt=(e,t,a)=>e.isDragging("activity",t)||a!==void 0&&e.isDragging("step",J(t,a)),Ea=(e,t)=>l`<div class="act-head">
|
|
781
|
-
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>ha(e,t)}>
|
|
782
|
-
${e.newActivityButton}
|
|
783
|
-
</button>
|
|
784
|
-
</div>`,$a=(e,t,a)=>l`<div class="map-row">
|
|
785
|
-
<div class="row-lead">
|
|
786
|
-
<div class="row-head">
|
|
787
|
-
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>ga(e,t)}>
|
|
788
|
-
${e.newMilestoneButton}
|
|
789
|
-
</button>
|
|
790
|
-
</div>
|
|
791
|
-
</div>
|
|
792
|
-
${Array.from({length:a+1},()=>l`<div class="cell"></div>`)}
|
|
793
|
-
</div>`,Sa=(e,t,a)=>{const{m:s,context:n,drag:i,handlers:r}=e,d=t.id;if(d===void 0)return l`<div
|
|
794
|
-
class="map-row"
|
|
795
|
-
data-unassigned="true"
|
|
796
|
-
data-draggable="false"
|
|
797
|
-
data-row-dragging="false"
|
|
798
|
-
data-row-drop="false"
|
|
799
|
-
>
|
|
800
|
-
<div class="row-lead">
|
|
801
|
-
<div class="row-head" data-milestone="" draggable="false"><span>${t.name}</span></div>
|
|
802
|
-
${Ta(s,t)}
|
|
803
|
-
</div>
|
|
804
|
-
${a}
|
|
805
|
-
<div class="cell"></div>
|
|
806
|
-
</div>`;const o=hi(s,n,d,t.name),p=`row:${d}`,u=i.target({key:p,accepts:"milestone",hovered:ki,onDrop:$=>r.dropOnMilestoneRow(d,$)}),f=i.source({type:"milestone",id:d});return l`
|
|
807
|
-
<div
|
|
808
|
-
class="map-row"
|
|
809
|
-
data-draggable="true"
|
|
810
|
-
data-row-dragging=${String(i.isDragging("milestone",d))}
|
|
811
|
-
data-row-drop=${String(i.isOver(p))}
|
|
812
|
-
@dragenter=${u.dragenter}
|
|
813
|
-
@dragover=${u.dragover}
|
|
814
|
-
@dragleave=${u.dragleave}
|
|
815
|
-
@drop=${u.drop}
|
|
816
|
-
>
|
|
817
|
-
<div class="row-lead">
|
|
818
|
-
<div
|
|
819
|
-
class="row-head"
|
|
820
|
-
data-milestone=${d}
|
|
821
|
-
data-dpk-target=${T({type:"milestone",id:d})}
|
|
822
|
-
draggable="true"
|
|
823
|
-
@dragstart=${$=>{yi($),f.dragstart($)}}
|
|
824
|
-
@dragend=${f.dragend}
|
|
825
|
-
>
|
|
826
|
-
<span class="row-grip" aria-hidden="true">${Ce()}</span>${o}
|
|
827
|
-
</div>
|
|
828
|
-
${Ta(s,t)}
|
|
829
|
-
</div>
|
|
830
|
-
${a}
|
|
831
|
-
<div class="cell"></div>
|
|
832
|
-
</div>
|
|
833
|
-
`},Ta=(e,t)=>l`<div class="row-meta">
|
|
834
|
-
${t.timeframe===""?m:l`<span class="row-timeframe">${t.timeframe}</span>`}
|
|
835
|
-
<span class="row-count">${e.storyCount(t.storyCount)}</span>
|
|
836
|
-
</div>`,hi=(e,t,a,s)=>l`<dpk-component-inline-edit
|
|
837
|
-
draggable="false"
|
|
838
|
-
.value=${s}
|
|
839
|
-
.label=${e.milestoneNameLabel}
|
|
840
|
-
@dpk-commit=${W(n=>t.dispatch({type:"SET_MILESTONE_NAME",target:{type:"milestone",id:a},payload:{name:n}}))}
|
|
841
|
-
></dpk-component-inline-edit>`,gi=(e,t)=>{const{m:a,context:s,drag:n,handlers:i}=e,r=Ae(s.state,s.navigation),d=$e(s.state,t.stepId,t.milestoneId).filter(u=>Ft(r,u)),o=`cell:${t.stepId}:${t.milestoneId??""}`,p=n.combine("story",[["story",n.target({key:o,accepts:"story",hovered:_a,onDrop:u=>i.dropOnCell(t,u)})],...Me(e,t.activityId,t.stepId)]);return l`
|
|
842
|
-
<div
|
|
843
|
-
class="cell"
|
|
844
|
-
data-step=${t.stepId}
|
|
845
|
-
data-milestone=${t.milestoneId??""}
|
|
846
|
-
data-column=${t.activityId}
|
|
847
|
-
data-column-step=${t.stepId}
|
|
848
|
-
data-drop=${String(n.isOver(o))}
|
|
849
|
-
data-col-dragging=${String(tt(n,t.activityId,t.stepId))}
|
|
850
|
-
data-col-drop=${Le(n,t.activityId,t.stepId)}
|
|
851
|
-
data-step-edge=${wa(s.state,t.activityId,t.stepId)}
|
|
852
|
-
@dragenter=${p.dragenter}
|
|
853
|
-
@dragover=${p.dragover}
|
|
854
|
-
@dragleave=${p.dragleave}
|
|
855
|
-
@drop=${p.drop}
|
|
856
|
-
>
|
|
857
|
-
<div class="card-list" data-testid=${`cell-${t.stepId}-${t.milestoneId??"unassigned"}`}>
|
|
858
|
-
${C(d,u=>u.id,u=>Aa(e,u,""))}
|
|
859
|
-
</div>
|
|
860
|
-
<button
|
|
861
|
-
class="dpk-btn dpk-btn--ghost add-cell"
|
|
862
|
-
type="button"
|
|
863
|
-
title=${a.addStoryCellAria}
|
|
864
|
-
@click=${()=>ba(a,s,t.activityId,t.stepId,t.milestoneId)}
|
|
865
|
-
>
|
|
866
|
-
${a.addCellButton}
|
|
867
|
-
</button>
|
|
868
|
-
</div>
|
|
869
|
-
`},bi=(e,t,a)=>{const{m:s,context:n,drag:i,handlers:r}=e,{state:d}=n,o=Ae(d,n.navigation),p=wt(d,t,a).filter(b=>Ft(o,b)),u=d.activities.find(b=>b.id===t)?.steps??[],f=u[0],$=b=>u.find(se=>se.id===b)?.name??"",g=`group:${t}:${a??""}`,c=i.combine("story",[["story",i.target({key:g,accepts:"story",hovered:_a,onDrop:b=>r.dropOnGroupCell(t,a,b)})],...Me(e,t)]);return l`
|
|
870
|
-
<div
|
|
871
|
-
class="cell"
|
|
872
|
-
data-activity=${t}
|
|
873
|
-
data-milestone=${a??""}
|
|
874
|
-
data-column=${t}
|
|
875
|
-
data-drop=${String(i.isOver(g))}
|
|
876
|
-
data-col-dragging=${String(tt(i,t))}
|
|
877
|
-
data-col-drop=${Le(i,t)}
|
|
878
|
-
@dragenter=${c.dragenter}
|
|
879
|
-
@dragover=${c.dragover}
|
|
880
|
-
@dragleave=${c.dragleave}
|
|
881
|
-
@drop=${c.drop}
|
|
882
|
-
>
|
|
883
|
-
<div class="card-list" data-testid=${`group-cell-${t}-${a??"unassigned"}`}>
|
|
884
|
-
${C(p,b=>b.id,b=>Aa(e,b,$(b.stepId)))}
|
|
885
|
-
</div>
|
|
886
|
-
${f?l`<button
|
|
887
|
-
class="dpk-btn dpk-btn--ghost add-cell"
|
|
888
|
-
type="button"
|
|
889
|
-
aria-label=${s.addStoryCellAria}
|
|
890
|
-
@click=${()=>ba(s,n,t,f.id,a)}
|
|
891
|
-
>
|
|
892
|
-
${s.addCellButton}
|
|
893
|
-
</button>`:m}
|
|
894
|
-
</div>
|
|
895
|
-
`},Aa=(e,t,a)=>{const{context:s,drag:n,handlers:i}=e,r=ge(s.state),d=s.comments.filter(u=>u.target.type==="story"&&u.target.id===t.id),o=n.source({type:"story",id:t.id}),p=Yt(s.state,t.id);return l`<dpk-internal-usm-story-card
|
|
896
|
-
data-story=${t.id}
|
|
897
|
-
data-status=${t.statusId??""}
|
|
898
|
-
data-relation=${vi(s.state,s.navigation.story,t)??m}
|
|
899
|
-
data-highlight=${fi(e.highlighted,t.id)??m}
|
|
900
|
-
data-dpk-target=${T({type:"story",id:t.id})}
|
|
901
|
-
draggable="true"
|
|
902
|
-
tabindex="0"
|
|
903
|
-
role="button"
|
|
904
|
-
aria-haspopup="dialog"
|
|
905
|
-
aria-label=${t.name}
|
|
906
|
-
style=${I(oa(r,t)?.tone)}
|
|
907
|
-
.story=${t}
|
|
908
|
-
.stepName=${a}
|
|
909
|
-
.statuses=${r}
|
|
910
|
-
.labels=${zs(s.state,t)}
|
|
911
|
-
.notes=${d}
|
|
912
|
-
.estimate=${K(s.state,"estimates")?F(s.state,t.estimateId)??null:null}
|
|
913
|
-
.assignee=${K(s.state,"assignees")?Us(s.state,t)??null:null}
|
|
914
|
-
.blocks=${p.dependents.length}
|
|
915
|
-
.waits=${p.openBlockers}
|
|
916
|
-
@click=${()=>i.selectStory(t.id)}
|
|
917
|
-
@keydown=${u=>{u.composedPath()[0]!==u.currentTarget||u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),i.selectStory(t.id))}}
|
|
918
|
-
?focused=${s.navigation.story===t.id}
|
|
919
|
-
?dragging=${n.isDragging("story",t.id)}
|
|
920
|
-
@dragstart=${o.dragstart}
|
|
921
|
-
@dragend=${o.dragend}
|
|
922
|
-
></dpk-internal-usm-story-card>`},fi=(e,t)=>{if(e!==null)return e.has(t)?"on":"dimmed"},vi=(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},_a=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},yi=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)},Ia=e=>t=>t.currentTarget instanceof Element?{id:e,element:t.currentTarget}:null,Ma=(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(o=>o.getAttribute("data-column")===t&&(a===void 0||o.getAttribute("data-column-step")===a)),r=i.filter(o=>o.closest(".map-head")),d=i.filter(o=>!o.closest(".map-head"));ei(e,[...d,...r],n)},ki=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}},La=(e,t)=>lt((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)}),xi=(e,t,a,s)=>l`
|
|
923
|
-
<section class="st-overview" data-testid="usm-statuses">
|
|
924
|
-
${a.rows.length===0?l`<div class="empty">
|
|
925
|
-
<h2>${e.noStatusesTitle}</h2>
|
|
926
|
-
<p>${e.noStatusesBody}</p>
|
|
927
|
-
</div>`:m}
|
|
928
|
-
<ol class="st-list">
|
|
929
|
-
${C(a.rows,n=>n.id,n=>wi(e,t,n,s))}
|
|
930
|
-
</ol>
|
|
931
|
-
<div>
|
|
932
|
-
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>si(e,t)}>
|
|
933
|
-
${e.newStatusButton}
|
|
934
|
-
</button>
|
|
935
|
-
</div>
|
|
936
|
-
</section>
|
|
937
|
-
`,wi=(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}})},d=K(t.state,"estimates");return l`
|
|
938
|
-
<li
|
|
939
|
-
class=${d?"st-row st-row--weighted":"st-row"}
|
|
940
|
-
data-status=${a.id}
|
|
941
|
-
data-dpk-target=${T(i)}
|
|
942
|
-
style=${I(a.tone)}
|
|
943
|
-
>
|
|
944
|
-
<button
|
|
945
|
-
class="st-icon-trigger"
|
|
946
|
-
type="button"
|
|
947
|
-
data-icon-trigger=${a.id}
|
|
948
|
-
aria-haspopup="menu"
|
|
949
|
-
aria-expanded=${String(n)}
|
|
950
|
-
aria-label=${`${e.statusIconLabel}: ${e.iconName(a.icon)}`}
|
|
951
|
-
title=${e.iconName(a.icon)}
|
|
952
|
-
@click=${()=>s.toggle(a.id)}
|
|
953
|
-
>
|
|
954
|
-
${oe(a)}
|
|
955
|
-
</button>
|
|
956
|
-
${n?$i(e,t,a,s):m}
|
|
957
|
-
<span class="st-name">
|
|
958
|
-
<dpk-component-inline-edit
|
|
959
|
-
.value=${a.name}
|
|
960
|
-
.label=${e.statusNameLabel}
|
|
961
|
-
@dpk-commit=${W(o=>t.dispatch({type:"SET_STATUS_NAME",target:i,payload:{name:o}}))}
|
|
962
|
-
></dpk-component-inline-edit>
|
|
963
|
-
</span>
|
|
964
|
-
${st(e,a.storyCount,a.share)} ${d?Ei(e,t,a):m}
|
|
965
|
-
${at(e,a.tone,o=>t.dispatch({type:"SET_STATUS_TONE",target:i,payload:{tone:o}}))}
|
|
966
|
-
${De(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:{}})})}
|
|
967
|
-
</li>
|
|
968
|
-
`},Ei=(e,t,a)=>{if(a.weight===null)return l`<span class="st-weight" aria-hidden="true"></span>`;const s=a.weight;return l`<label class="st-weight" title=${e.statusWeightHint}>
|
|
969
|
-
<span class="st-weight-label">${e.statusWeightLabel}</span>
|
|
970
|
-
<input
|
|
971
|
-
class="dpk-input"
|
|
972
|
-
type="number"
|
|
973
|
-
min="0"
|
|
974
|
-
step="any"
|
|
975
|
-
inputmode="decimal"
|
|
976
|
-
data-role="weight"
|
|
977
|
-
.value=${String(s)}
|
|
978
|
-
@change=${La(s,n=>t.dispatch({type:"SET_STATUS_WEIGHT",target:{type:"status",id:a.id},payload:{weight:n}}))}
|
|
979
|
-
/>
|
|
980
|
-
</label>`},$i=(e,t,a,s)=>l`<div
|
|
981
|
-
id="icon-menu"
|
|
982
|
-
class="comment-pop icon-menu"
|
|
983
|
-
popover="manual"
|
|
984
|
-
role="menu"
|
|
985
|
-
aria-label=${e.statusIconLabel}
|
|
986
|
-
style=${I(a.tone)}
|
|
987
|
-
@keydown=${n=>{n.key==="Escape"&&(n.preventDefault(),s.close())}}
|
|
988
|
-
>
|
|
989
|
-
${mt.map(n=>l`<button
|
|
990
|
-
class="icon-option"
|
|
991
|
-
type="button"
|
|
992
|
-
role="menuitemradio"
|
|
993
|
-
data-icon=${n}
|
|
994
|
-
title=${e.iconName(n)}
|
|
995
|
-
aria-label=${e.iconName(n)}
|
|
996
|
-
aria-checked=${String(n===a.icon)}
|
|
997
|
-
@click=${()=>{n!==a.icon&&t.dispatch({type:"SET_STATUS_ICON",target:{type:"status",id:a.id},payload:{icon:n}}),s.close()}}
|
|
998
|
-
>
|
|
999
|
-
${oe({icon:n,progress:a.progress})}
|
|
1000
|
-
</button>`)}
|
|
1001
|
-
</div>`,at=(e,t,a)=>l`<span class="st-tones" role="radiogroup" aria-label=${e.statusToneLabel}>
|
|
1002
|
-
${ye.map(s=>l`<button
|
|
1003
|
-
class="st-tone"
|
|
1004
|
-
type="button"
|
|
1005
|
-
role="radio"
|
|
1006
|
-
data-tone=${s}
|
|
1007
|
-
style=${I(s)}
|
|
1008
|
-
title=${e.toneName(s)}
|
|
1009
|
-
aria-label=${e.toneName(s)}
|
|
1010
|
-
aria-checked=${s===t?"true":"false"}
|
|
1011
|
-
@click=${()=>{s!==t&&a(s)}}
|
|
1012
|
-
></button>`)}
|
|
1013
|
-
</span>`,De=(e,t)=>l`<span class="st-tools">
|
|
1014
|
-
<button
|
|
1015
|
-
class="dpk-icon-btn"
|
|
1016
|
-
type="button"
|
|
1017
|
-
aria-label=${e.moveUpAria}
|
|
1018
|
-
?disabled=${t.row.previousId===null}
|
|
1019
|
-
@click=${()=>t.reorder(Si(t.ids,t.row.previousId))}
|
|
1020
|
-
>
|
|
1021
|
-
↑
|
|
1022
|
-
</button>
|
|
1023
|
-
<button
|
|
1024
|
-
class="dpk-icon-btn"
|
|
1025
|
-
type="button"
|
|
1026
|
-
aria-label=${e.moveDownAria}
|
|
1027
|
-
?disabled=${t.row.nextId===null}
|
|
1028
|
-
@click=${()=>t.reorder(t.row.nextId)}
|
|
1029
|
-
>
|
|
1030
|
-
↓
|
|
1031
|
-
</button>
|
|
1032
|
-
<button class="dpk-icon-btn" type="button" data-role="delete" aria-label=${t.deleteLabel} @click=${t.remove}>
|
|
1033
|
-
${Be()}
|
|
1034
|
-
</button>
|
|
1035
|
-
</span>`,Si=(e,t)=>{const a=t===null?-1:e.indexOf(t);return a<=0?null:e[a-1]??null},st=(e,t,a)=>l`
|
|
1036
|
-
<span class="st-share">
|
|
1037
|
-
<span class="st-share-text">${e.statusShare(t,Math.round(a*100))}</span>
|
|
1038
|
-
<span class="st-meter" aria-hidden="true"><span style=${`width:${a*100}%`}></span></span>
|
|
1039
|
-
</span>
|
|
1040
|
-
`,Ti=M(bs),Ai=M(Ts),_i={width:720,height:240,inset:{top:16,right:20,bottom:26,left:40}},Ii={width:340,height:150,inset:{top:12,right:14,bottom:24,left:32}},Mi=(e,t,a)=>{const{state:s,navigation:n}=t,i=Js(s,n);return l`
|
|
1041
|
-
<section class="bd-overview" data-testid="usm-burndown">
|
|
1042
|
-
${i?Li(e,t,i,a):l`<div class="empty">
|
|
1043
|
-
<h2>${e.burndownTab}</h2>
|
|
1044
|
-
<p>${e.noMilestonesForBurndown}</p>
|
|
1045
|
-
</div>`}
|
|
1046
|
-
<div class="bd-side">${Di(e,t)} ${Ri(e,t)}</div>
|
|
1047
|
-
</section>
|
|
1048
|
-
`},Li=(e,t,a,s)=>{const{state:n,navigation:i}=t,r=Qs(n,i),d=tn(n,a.id,r,s.getTime()),o=n.stories.filter(p=>p.milestoneId===a.id&&p.estimateId===void 0).length;return l`
|
|
1049
|
-
<header class="bd-bar">
|
|
1050
|
-
<label class="bd-control">
|
|
1051
|
-
<span>${e.burndownMilestoneLabel}</span>
|
|
1052
|
-
<select
|
|
1053
|
-
class="dpk-select"
|
|
1054
|
-
data-role="milestone"
|
|
1055
|
-
@change=${ts(p=>t.navigate({milestone:p}))}
|
|
1056
|
-
>
|
|
1057
|
-
${n.milestones.map(p=>l`<option value=${p.id} ?selected=${p.id===a.id}>${p.name}</option>`)}
|
|
1058
|
-
</select>
|
|
1059
|
-
</label>
|
|
1060
|
-
<label class="bd-control" data-dpk-target=${T({type:"milestone",id:a.id})}>
|
|
1061
|
-
<span>${e.dueDateLabel}</span>
|
|
1062
|
-
<input
|
|
1063
|
-
class="dpk-input"
|
|
1064
|
-
type="date"
|
|
1065
|
-
data-role="due-date"
|
|
1066
|
-
.value=${a.dueDate??""}
|
|
1067
|
-
@change=${lt(p=>{const u=p===""?null:p;u!==(a.dueDate??null)&&t.dispatch({type:"SET_MILESTONE_DUE_DATE",target:{type:"milestone",id:a.id},payload:{dueDate:u}})})}
|
|
1068
|
-
/>
|
|
1069
|
-
</label>
|
|
1070
|
-
<span class="bd-control">
|
|
1071
|
-
<span id="bd-unit-label">${e.unitLabel}</span>
|
|
1072
|
-
<span class="bd-units" role="radiogroup" aria-labelledby="bd-unit-label">
|
|
1073
|
-
${je.map(p=>l`<a
|
|
1074
|
-
class="bd-unit"
|
|
1075
|
-
role="radio"
|
|
1076
|
-
data-unit=${p}
|
|
1077
|
-
aria-checked=${String(p===r)}
|
|
1078
|
-
href=${t.hashFor({unit:p})}
|
|
1079
|
-
>${e.unitName(p)}</a
|
|
1080
|
-
>`)}
|
|
1081
|
-
</span>
|
|
1082
|
-
</span>
|
|
1083
|
-
<span class="bd-record">
|
|
1084
|
-
<button
|
|
1085
|
-
class="dpk-btn dpk-btn--primary"
|
|
1086
|
-
type="button"
|
|
1087
|
-
data-role="record-snapshot"
|
|
1088
|
-
title=${e.recordSnapshotHint}
|
|
1089
|
-
@click=${()=>oi(t,new Date)}
|
|
1090
|
-
>
|
|
1091
|
-
${e.recordSnapshotButton}
|
|
1092
|
-
</button>
|
|
1093
|
-
</span>
|
|
1094
|
-
</header>
|
|
1095
|
-
${r==="points"&&o>0?l`<p class="bd-warning" role="note" data-testid="usm-unestimated-warning">
|
|
1096
|
-
${Ai()}<span>${e.unestimatedNote(o)}</span>
|
|
1097
|
-
</p>`:m}
|
|
1098
|
-
<figure class="bd-chart bd-chart--combined">
|
|
1099
|
-
<figcaption>
|
|
1100
|
-
<span class="bd-chart-title">${e.combinedChartTitle}</span>
|
|
1101
|
-
<span class="bd-about">
|
|
1102
|
-
<button class="bd-about-btn" type="button" aria-label=${e.chartAbout} aria-describedby="bd-about-tip">
|
|
1103
|
-
${Ti()}
|
|
1104
|
-
</button>
|
|
1105
|
-
<span class="bd-about-tip" id="bd-about-tip" role="tooltip">${e.combinedChartHint(e.unitName(r))}</span>
|
|
1106
|
-
</span>
|
|
1107
|
-
<span class="bd-chart-latest">${e.chartLatest(Ra(d.combined))}</span>
|
|
1108
|
-
</figcaption>
|
|
1109
|
-
${Da({chart:"combined",title:e.combinedChartTitle,points:d.combined,due:d.due,now:s.getTime(),size:_i,tone:"accent"})}
|
|
1110
|
-
</figure>
|
|
1111
|
-
${d.byStatus.length===0?m:l`<section class="bd-multiples" aria-label=${e.statusChartsLabel}>
|
|
1112
|
-
<h3>${e.statusChartsLabel}</h3>
|
|
1113
|
-
<div class="bd-grid">
|
|
1114
|
-
${d.byStatus.map(({status:p,points:u})=>l`<figure class="bd-chart" data-status=${p.id}>
|
|
1115
|
-
<figcaption>
|
|
1116
|
-
<span class="bd-chart-title">${e.statusChartTitle(p.name)}</span>
|
|
1117
|
-
<span class="bd-chart-latest">${e.chartLatest(Ra(u))}</span>
|
|
1118
|
-
</figcaption>
|
|
1119
|
-
${Da({chart:"status",statusId:p.id,title:e.statusChartTitle(p.name),points:u,due:d.due,now:s.getTime(),size:Ii,tone:p.tone})}
|
|
1120
|
-
</figure>`)}
|
|
1121
|
-
</div>
|
|
1122
|
-
</section>`}
|
|
1123
|
-
`},Da=e=>l`<dpk-internal-usm-burndown-chart
|
|
1124
|
-
data-chart=${e.chart}
|
|
1125
|
-
data-status=${e.statusId??m}
|
|
1126
|
-
.points=${e.points}
|
|
1127
|
-
.due=${e.due}
|
|
1128
|
-
.now=${e.now}
|
|
1129
|
-
.size=${e.size}
|
|
1130
|
-
.tone=${e.tone}
|
|
1131
|
-
.label=${e.title}
|
|
1132
|
-
></dpk-internal-usm-burndown-chart>`,Di=(e,t)=>{const a=[...t.state.snapshots].reverse();return l`<section class="bd-panel">
|
|
1133
|
-
<h3>${e.snapshotsLabel}<span class="bd-count">${a.length}</span></h3>
|
|
1134
|
-
${a.length===0?l`<p class="bd-empty">${e.noSnapshots} ${e.chartNeedsSnapshot}</p>`:l`<ol class="bd-snapshots">
|
|
1135
|
-
${C(a,s=>s.id,s=>{const n={type:"snapshot",id:s.id},i=re(s.at),r=s.tally.reduce((d,o)=>d+o.stories,0);return l`<li data-snapshot=${s.id} data-dpk-target=${T(n)}>
|
|
1136
|
-
<span class="bd-snapshot-at">${i}</span>
|
|
1137
|
-
<span class="bd-snapshot-sum">${e.storyCount(r)}</span>
|
|
1138
|
-
<button
|
|
1139
|
-
class="dpk-icon-btn"
|
|
1140
|
-
type="button"
|
|
1141
|
-
data-role="delete-snapshot"
|
|
1142
|
-
aria-label=${e.deleteSnapshotAria(i)}
|
|
1143
|
-
@click=${()=>t.dispatch({type:"DELETE_SNAPSHOT",target:n,payload:{}})}
|
|
1144
|
-
>
|
|
1145
|
-
${Be()}
|
|
1146
|
-
</button>
|
|
1147
|
-
</li>`})}
|
|
1148
|
-
</ol>`}
|
|
1149
|
-
</section>`},Ri=(e,t)=>{const{estimates:a}=t.state;return l`<section class="bd-panel" data-testid="usm-estimates">
|
|
1150
|
-
<h3>${e.estimatesLabel}<span class="bd-count">${a.length}</span></h3>
|
|
1151
|
-
<p class="bd-empty">${e.estimatesHint}</p>
|
|
1152
|
-
${a.length===0?m:l`<ol class="bd-estimates">
|
|
1153
|
-
${C(a,s=>s.id,(s,n)=>Oi(e,t,s,n))}
|
|
1154
|
-
</ol>`}
|
|
1155
|
-
<div>
|
|
1156
|
-
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>ri(e,t)}>
|
|
1157
|
-
${e.newEstimateButton}
|
|
1158
|
-
</button>
|
|
1159
|
-
</div>
|
|
1160
|
-
</section>`},Oi=(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=${T(i)}>
|
|
1161
|
-
<span class="bd-estimate-name">
|
|
1162
|
-
<dpk-component-inline-edit
|
|
1163
|
-
.value=${a.name}
|
|
1164
|
-
.label=${e.estimateNameLabel}
|
|
1165
|
-
@dpk-commit=${W(r=>t.dispatch({type:"SET_ESTIMATE_NAME",target:i,payload:{name:r}}))}
|
|
1166
|
-
></dpk-component-inline-edit>
|
|
1167
|
-
</span>
|
|
1168
|
-
<label class="bd-estimate-points">
|
|
1169
|
-
<input
|
|
1170
|
-
class="dpk-input"
|
|
1171
|
-
type="number"
|
|
1172
|
-
min="0"
|
|
1173
|
-
step="any"
|
|
1174
|
-
inputmode="decimal"
|
|
1175
|
-
data-role="points"
|
|
1176
|
-
aria-label=${e.estimatePointsLabel}
|
|
1177
|
-
.value=${String(a.points)}
|
|
1178
|
-
@change=${La(a.points,r=>t.dispatch({type:"SET_ESTIMATE_POINTS",target:i,payload:{points:r}}))}
|
|
1179
|
-
/>
|
|
1180
|
-
<span>pt</span>
|
|
1181
|
-
</label>
|
|
1182
|
-
${De(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:{}})})}
|
|
1183
|
-
</li>`},Ra=e=>e.at(-1)?.value??0,Ni=V`
|
|
1184
|
-
.bd-overview {
|
|
1185
|
-
display: grid;
|
|
1186
|
-
gap: 18px;
|
|
1187
|
-
max-width: 1040px;
|
|
1188
|
-
padding: 28px 0 40px;
|
|
1189
|
-
}
|
|
1190
|
-
.bd-bar {
|
|
1191
|
-
display: flex;
|
|
1192
|
-
flex-wrap: wrap;
|
|
1193
|
-
align-items: flex-end;
|
|
1194
|
-
gap: 12px 16px;
|
|
1195
|
-
}
|
|
1196
|
-
.bd-control {
|
|
1197
|
-
display: grid;
|
|
1198
|
-
gap: 4px;
|
|
1199
|
-
min-width: 0;
|
|
1200
|
-
}
|
|
1201
|
-
.bd-control > span:first-child {
|
|
1202
|
-
color: var(--dpk-ink-faint);
|
|
1203
|
-
font-size: 11px;
|
|
1204
|
-
font-weight: 600;
|
|
1205
|
-
}
|
|
1206
|
-
.bd-control .dpk-select {
|
|
1207
|
-
min-width: 160px;
|
|
1208
|
-
}
|
|
1209
|
-
.bd-control .dpk-input {
|
|
1210
|
-
width: 160px;
|
|
1211
|
-
font-family: var(--dpk-mono);
|
|
1212
|
-
font-variant-numeric: tabular-nums;
|
|
1213
|
-
}
|
|
1214
|
-
.bd-units {
|
|
1215
|
-
display: inline-flex;
|
|
1216
|
-
padding: 2px;
|
|
1217
|
-
border: 1px solid var(--dpk-rule-strong);
|
|
1218
|
-
border-radius: var(--dpk-radius-sm);
|
|
1219
|
-
background: var(--dpk-paper-sunken);
|
|
1220
|
-
}
|
|
1221
|
-
.bd-unit {
|
|
1222
|
-
padding: 4px 12px;
|
|
1223
|
-
border-radius: calc(var(--dpk-radius-sm) - 2px);
|
|
1224
|
-
color: var(--dpk-ink-soft);
|
|
1225
|
-
font-size: 12.5px;
|
|
1226
|
-
font-weight: 600;
|
|
1227
|
-
text-decoration: none;
|
|
1228
|
-
}
|
|
1229
|
-
.bd-unit[aria-checked='true'] {
|
|
1230
|
-
background: var(--dpk-paper-raised);
|
|
1231
|
-
color: var(--dpk-ink);
|
|
1232
|
-
box-shadow: var(--dpk-shadow-xs);
|
|
1233
|
-
}
|
|
1234
|
-
.bd-unit:focus-visible {
|
|
1235
|
-
outline: none;
|
|
1236
|
-
box-shadow: var(--dpk-focus);
|
|
1237
|
-
}
|
|
1238
|
-
.bd-record {
|
|
1239
|
-
margin-left: auto;
|
|
1240
|
-
}
|
|
1241
|
-
.bd-warning {
|
|
1242
|
-
display: flex;
|
|
1243
|
-
align-items: flex-start;
|
|
1244
|
-
gap: 8px;
|
|
1245
|
-
margin: 0;
|
|
1246
|
-
padding: 8px 12px;
|
|
1247
|
-
border: 1px solid color-mix(in oklab, var(--dpk-amber) 40%, var(--dpk-rule));
|
|
1248
|
-
border-radius: var(--dpk-radius-sm);
|
|
1249
|
-
background: color-mix(in oklab, var(--dpk-amber) 10%, var(--dpk-paper-raised));
|
|
1250
|
-
color: var(--dpk-ink);
|
|
1251
|
-
font-size: 12.5px;
|
|
1252
|
-
line-height: 1.5;
|
|
1253
|
-
}
|
|
1254
|
-
.bd-warning svg {
|
|
1255
|
-
flex: none;
|
|
1256
|
-
width: 15px;
|
|
1257
|
-
height: 15px;
|
|
1258
|
-
margin-top: 2px;
|
|
1259
|
-
color: var(--dpk-amber);
|
|
1260
|
-
}
|
|
1261
|
-
.bd-empty {
|
|
1262
|
-
margin: 0;
|
|
1263
|
-
color: var(--dpk-ink-faint);
|
|
1264
|
-
font-size: 12px;
|
|
1265
|
-
line-height: 1.5;
|
|
1266
|
-
}
|
|
1267
|
-
.bd-chart {
|
|
1268
|
-
display: grid;
|
|
1269
|
-
gap: 8px;
|
|
1270
|
-
margin: 0;
|
|
1271
|
-
padding: 14px 16px 10px;
|
|
1272
|
-
border: 1px solid var(--dpk-rule);
|
|
1273
|
-
border-radius: var(--dpk-radius-lg);
|
|
1274
|
-
background: var(--dpk-paper-raised);
|
|
1275
|
-
box-shadow: var(--dpk-shadow-xs);
|
|
1276
|
-
}
|
|
1277
|
-
.bd-chart figcaption {
|
|
1278
|
-
display: flex;
|
|
1279
|
-
flex-wrap: wrap;
|
|
1280
|
-
align-items: baseline;
|
|
1281
|
-
gap: 4px 12px;
|
|
1282
|
-
}
|
|
1283
|
-
.bd-chart-title {
|
|
1284
|
-
font-size: 13.5px;
|
|
1285
|
-
font-weight: 650;
|
|
1286
|
-
}
|
|
1287
|
-
.bd-chart-latest {
|
|
1288
|
-
margin-left: auto;
|
|
1289
|
-
color: var(--dpk-ink-soft);
|
|
1290
|
-
font-family: var(--dpk-mono);
|
|
1291
|
-
font-size: 12px;
|
|
1292
|
-
font-variant-numeric: tabular-nums;
|
|
1293
|
-
}
|
|
1294
|
-
.bd-about {
|
|
1295
|
-
position: relative;
|
|
1296
|
-
display: inline-flex;
|
|
1297
|
-
align-self: center;
|
|
1298
|
-
}
|
|
1299
|
-
.bd-about-btn {
|
|
1300
|
-
display: inline-grid;
|
|
1301
|
-
place-items: center;
|
|
1302
|
-
width: 20px;
|
|
1303
|
-
height: 20px;
|
|
1304
|
-
padding: 0;
|
|
1305
|
-
border: 0;
|
|
1306
|
-
border-radius: 50%;
|
|
1307
|
-
background: none;
|
|
1308
|
-
color: var(--dpk-ink-faint);
|
|
1309
|
-
cursor: help;
|
|
1310
|
-
}
|
|
1311
|
-
.bd-about-btn:hover,
|
|
1312
|
-
.bd-about-btn:focus-visible {
|
|
1313
|
-
outline: none;
|
|
1314
|
-
color: var(--dpk-ink);
|
|
1315
|
-
}
|
|
1316
|
-
.bd-about-btn:focus-visible {
|
|
1317
|
-
box-shadow: var(--dpk-focus);
|
|
1318
|
-
}
|
|
1319
|
-
.bd-about-btn svg {
|
|
1320
|
-
width: 15px;
|
|
1321
|
-
height: 15px;
|
|
1322
|
-
}
|
|
1323
|
-
.bd-about-tip {
|
|
1324
|
-
position: absolute;
|
|
1325
|
-
top: calc(100% + 6px);
|
|
1326
|
-
left: -8px;
|
|
1327
|
-
z-index: 2;
|
|
1328
|
-
width: max-content;
|
|
1329
|
-
max-width: 360px;
|
|
1330
|
-
padding: 8px 10px;
|
|
1331
|
-
border: 1px solid var(--dpk-rule-strong);
|
|
1332
|
-
border-radius: var(--dpk-radius-sm);
|
|
1333
|
-
background: var(--dpk-paper-raised);
|
|
1334
|
-
box-shadow: var(--dpk-shadow-sm);
|
|
1335
|
-
color: var(--dpk-ink-soft);
|
|
1336
|
-
font-size: 12px;
|
|
1337
|
-
font-weight: 400;
|
|
1338
|
-
line-height: 1.5;
|
|
1339
|
-
visibility: hidden;
|
|
1340
|
-
opacity: 0;
|
|
1341
|
-
transition: opacity 120ms var(--dpk-ease);
|
|
1342
|
-
}
|
|
1343
|
-
.bd-about:hover .bd-about-tip,
|
|
1344
|
-
.bd-about-btn:focus-visible + .bd-about-tip {
|
|
1345
|
-
visibility: visible;
|
|
1346
|
-
opacity: 1;
|
|
1347
|
-
}
|
|
1348
|
-
.bd-multiples {
|
|
1349
|
-
display: grid;
|
|
1350
|
-
gap: 10px;
|
|
1351
|
-
}
|
|
1352
|
-
.bd-multiples h3,
|
|
1353
|
-
.bd-panel h3 {
|
|
1354
|
-
display: flex;
|
|
1355
|
-
align-items: center;
|
|
1356
|
-
gap: 8px;
|
|
1357
|
-
margin: 0;
|
|
1358
|
-
color: var(--dpk-ink-soft);
|
|
1359
|
-
font-size: 12px;
|
|
1360
|
-
font-weight: 650;
|
|
1361
|
-
letter-spacing: 0.02em;
|
|
1362
|
-
}
|
|
1363
|
-
.bd-grid {
|
|
1364
|
-
display: grid;
|
|
1365
|
-
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
1366
|
-
gap: 12px;
|
|
1367
|
-
}
|
|
1368
|
-
.bd-side {
|
|
1369
|
-
display: grid;
|
|
1370
|
-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
1371
|
-
gap: 12px;
|
|
1372
|
-
align-items: start;
|
|
1373
|
-
}
|
|
1374
|
-
.bd-panel {
|
|
1375
|
-
display: grid;
|
|
1376
|
-
gap: 10px;
|
|
1377
|
-
padding: 14px 16px;
|
|
1378
|
-
border: 1px solid var(--dpk-rule);
|
|
1379
|
-
border-radius: var(--dpk-radius-lg);
|
|
1380
|
-
background: var(--dpk-paper-raised);
|
|
1381
|
-
box-shadow: var(--dpk-shadow-xs);
|
|
1382
|
-
}
|
|
1383
|
-
.bd-count {
|
|
1384
|
-
color: var(--dpk-ink-faint);
|
|
1385
|
-
font-family: var(--dpk-mono);
|
|
1386
|
-
font-weight: 500;
|
|
1387
|
-
}
|
|
1388
|
-
.bd-snapshots,
|
|
1389
|
-
.bd-estimates {
|
|
1390
|
-
display: grid;
|
|
1391
|
-
margin: 0;
|
|
1392
|
-
padding: 0;
|
|
1393
|
-
list-style: none;
|
|
1394
|
-
}
|
|
1395
|
-
.bd-snapshots li,
|
|
1396
|
-
.bd-estimates li {
|
|
1397
|
-
display: grid;
|
|
1398
|
-
align-items: center;
|
|
1399
|
-
gap: 10px;
|
|
1400
|
-
min-height: 34px;
|
|
1401
|
-
}
|
|
1402
|
-
.bd-snapshots li {
|
|
1403
|
-
grid-template-columns: minmax(0, 1fr) auto 26px;
|
|
1404
|
-
}
|
|
1405
|
-
.bd-estimates li {
|
|
1406
|
-
grid-template-columns: minmax(0, 1fr) 96px auto;
|
|
1407
|
-
}
|
|
1408
|
-
.bd-snapshots li + li,
|
|
1409
|
-
.bd-estimates li + li {
|
|
1410
|
-
border-top: 1px solid var(--dpk-rule);
|
|
1411
|
-
}
|
|
1412
|
-
.bd-snapshot-at,
|
|
1413
|
-
.bd-snapshot-sum {
|
|
1414
|
-
font-family: var(--dpk-mono);
|
|
1415
|
-
font-size: 12px;
|
|
1416
|
-
font-variant-numeric: tabular-nums;
|
|
1417
|
-
}
|
|
1418
|
-
.bd-snapshot-sum {
|
|
1419
|
-
color: var(--dpk-ink-faint);
|
|
1420
|
-
}
|
|
1421
|
-
.bd-snapshots .dpk-icon-btn {
|
|
1422
|
-
width: 26px;
|
|
1423
|
-
height: 26px;
|
|
1424
|
-
}
|
|
1425
|
-
.bd-estimate-name {
|
|
1426
|
-
min-width: 0;
|
|
1427
|
-
font-family: var(--dpk-mono);
|
|
1428
|
-
font-size: 13px;
|
|
1429
|
-
font-weight: 650;
|
|
1430
|
-
}
|
|
1431
|
-
.bd-estimate-points {
|
|
1432
|
-
display: inline-flex;
|
|
1433
|
-
align-items: center;
|
|
1434
|
-
gap: 5px;
|
|
1435
|
-
color: var(--dpk-ink-faint);
|
|
1436
|
-
font-size: 11px;
|
|
1437
|
-
}
|
|
1438
|
-
.bd-estimate-points .dpk-input {
|
|
1439
|
-
min-height: 28px;
|
|
1440
|
-
padding: 3px 8px;
|
|
1441
|
-
font-family: var(--dpk-mono);
|
|
1442
|
-
font-size: 12px;
|
|
1443
|
-
font-variant-numeric: tabular-nums;
|
|
1444
|
-
}
|
|
1445
|
-
@media (max-width: 640px) {
|
|
1446
|
-
.bd-record {
|
|
1447
|
-
margin-left: 0;
|
|
1448
|
-
}
|
|
1449
|
-
.bd-control .dpk-select,
|
|
1450
|
-
.bd-control .dpk-input {
|
|
1451
|
-
width: 100%;
|
|
1452
|
-
min-width: 0;
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
`,Ci=M(cs),Bi=(e,t,a)=>l`<span class="features-field">
|
|
1456
|
-
<button
|
|
1457
|
-
class="dpk-btn dpk-btn--ghost features-trigger"
|
|
1458
|
-
type="button"
|
|
1459
|
-
data-features-trigger
|
|
1460
|
-
aria-haspopup="menu"
|
|
1461
|
-
aria-expanded=${String(a.open)}
|
|
1462
|
-
@click=${a.toggle}
|
|
1463
|
-
>
|
|
1464
|
-
${Ci()}<span>${e.featuresButton}</span>
|
|
1465
|
-
</button>
|
|
1466
|
-
${a.open?l`<div
|
|
1467
|
-
id="features-menu"
|
|
1468
|
-
class="comment-pop features-menu"
|
|
1469
|
-
popover="manual"
|
|
1470
|
-
role="menu"
|
|
1471
|
-
aria-label=${e.featuresMenuLabel}
|
|
1472
|
-
@keydown=${s=>{s.key==="Escape"&&(s.preventDefault(),a.close())}}
|
|
1473
|
-
>
|
|
1474
|
-
${ke.map(s=>Yi(e,t,s))}
|
|
1475
|
-
<p class="features-note">${e.featuresNote}</p>
|
|
1476
|
-
</div>`:m}
|
|
1477
|
-
</span>`,Yi=(e,t,a)=>{const s=K(t.state,a);return l`<button
|
|
1478
|
-
class="feature-option"
|
|
1479
|
-
type="button"
|
|
1480
|
-
role="menuitemcheckbox"
|
|
1481
|
-
data-feature=${a}
|
|
1482
|
-
aria-checked=${String(s)}
|
|
1483
|
-
@click=${()=>t.dispatch({type:"SET_FEATURE",target:{type:"page",id:"usm"},payload:{feature:a,enabled:!s}})}
|
|
1484
|
-
>
|
|
1485
|
-
<span class="feature-check" aria-hidden="true">${s?Ye():m}</span>
|
|
1486
|
-
<span class="feature-text">
|
|
1487
|
-
<span class="feature-name">${e.featureName(a)}</span>
|
|
1488
|
-
<span class="feature-hint">${e.featureHint(a)}</span>
|
|
1489
|
-
</span>
|
|
1490
|
-
</button>`},Ui=V`
|
|
1491
|
-
.features-field {
|
|
1492
|
-
display: inline-flex;
|
|
1493
|
-
}
|
|
1494
|
-
.features-trigger {
|
|
1495
|
-
gap: 6px;
|
|
1496
|
-
}
|
|
1497
|
-
.features-trigger svg {
|
|
1498
|
-
width: 14px;
|
|
1499
|
-
height: 14px;
|
|
1500
|
-
}
|
|
1501
|
-
.features-trigger[aria-expanded='true'] {
|
|
1502
|
-
background: var(--dpk-paper-inset);
|
|
1503
|
-
color: var(--dpk-ink);
|
|
1504
|
-
}
|
|
1505
|
-
.comment-pop.features-menu {
|
|
1506
|
-
gap: 2px;
|
|
1507
|
-
padding: 6px;
|
|
1508
|
-
}
|
|
1509
|
-
.feature-option {
|
|
1510
|
-
display: flex;
|
|
1511
|
-
align-items: flex-start;
|
|
1512
|
-
gap: 10px;
|
|
1513
|
-
width: 100%;
|
|
1514
|
-
padding: 8px;
|
|
1515
|
-
border: 0;
|
|
1516
|
-
border-radius: var(--dpk-radius-sm);
|
|
1517
|
-
background: none;
|
|
1518
|
-
color: var(--dpk-ink);
|
|
1519
|
-
font: inherit;
|
|
1520
|
-
text-align: left;
|
|
1521
|
-
cursor: pointer;
|
|
1522
|
-
}
|
|
1523
|
-
.feature-option:hover,
|
|
1524
|
-
.feature-option:focus-visible {
|
|
1525
|
-
outline: none;
|
|
1526
|
-
background: var(--dpk-paper-sunken);
|
|
1527
|
-
}
|
|
1528
|
-
.feature-check {
|
|
1529
|
-
flex: none;
|
|
1530
|
-
display: inline-grid;
|
|
1531
|
-
place-items: center;
|
|
1532
|
-
width: 16px;
|
|
1533
|
-
height: 16px;
|
|
1534
|
-
margin-top: 1px;
|
|
1535
|
-
border: 1px solid var(--dpk-rule-strong);
|
|
1536
|
-
border-radius: 4px;
|
|
1537
|
-
background: var(--dpk-paper-raised);
|
|
1538
|
-
}
|
|
1539
|
-
.feature-option[aria-checked='true'] .feature-check {
|
|
1540
|
-
border-color: var(--dpk-usm-accent);
|
|
1541
|
-
background: var(--dpk-usm-accent);
|
|
1542
|
-
color: var(--dpk-paper-raised);
|
|
1543
|
-
}
|
|
1544
|
-
.feature-check svg {
|
|
1545
|
-
width: 12px;
|
|
1546
|
-
height: 12px;
|
|
1547
|
-
stroke-width: 3;
|
|
1548
|
-
}
|
|
1549
|
-
.feature-text {
|
|
1550
|
-
display: grid;
|
|
1551
|
-
gap: 2px;
|
|
1552
|
-
min-width: 0;
|
|
1553
|
-
}
|
|
1554
|
-
.feature-name {
|
|
1555
|
-
font-size: 13px;
|
|
1556
|
-
font-weight: 650;
|
|
1557
|
-
}
|
|
1558
|
-
.feature-hint {
|
|
1559
|
-
color: var(--dpk-ink-soft);
|
|
1560
|
-
font-size: 11.5px;
|
|
1561
|
-
line-height: 1.45;
|
|
1562
|
-
}
|
|
1563
|
-
.features-note {
|
|
1564
|
-
margin: 4px 8px 4px;
|
|
1565
|
-
padding-top: 8px;
|
|
1566
|
-
border-top: 1px solid var(--dpk-rule);
|
|
1567
|
-
color: var(--dpk-ink-faint);
|
|
1568
|
-
font-size: 11px;
|
|
1569
|
-
line-height: 1.45;
|
|
1570
|
-
}
|
|
1571
|
-
`,zi=M(Ss),Pi=(e,t)=>{const a=Te(t.navigation)==="critical-path",s=a?Ut(t.state).ids.size:null;return l`<button
|
|
1572
|
-
class="dpk-btn dpk-btn--ghost highlight-toggle"
|
|
1573
|
-
type="button"
|
|
1574
|
-
data-highlight-toggle="critical-path"
|
|
1575
|
-
aria-pressed=${String(a)}
|
|
1576
|
-
title=${e.criticalPathHint}
|
|
1577
|
-
@click=${()=>t.navigate({highlight:a?null:"critical-path"})}
|
|
1578
|
-
>
|
|
1579
|
-
${zi()}<span>${e.criticalPathButton}</span>
|
|
1580
|
-
${s===null?m:l`<span class="highlight-count">${e.criticalPathCount(s)}</span>`}
|
|
1581
|
-
</button>`},Fi=V`
|
|
1582
|
-
.highlight-toggle {
|
|
1583
|
-
gap: 6px;
|
|
1584
|
-
margin-left: auto;
|
|
1585
|
-
}
|
|
1586
|
-
.highlight-toggle svg {
|
|
1587
|
-
width: 14px;
|
|
1588
|
-
height: 14px;
|
|
1589
|
-
}
|
|
1590
|
-
.highlight-toggle[aria-pressed='true'] {
|
|
1591
|
-
border-color: color-mix(in oklab, var(--dpk-accent) 55%, var(--dpk-rule-strong));
|
|
1592
|
-
background: color-mix(in oklab, var(--dpk-accent) 12%, var(--dpk-paper-raised));
|
|
1593
|
-
color: var(--dpk-ink);
|
|
1594
|
-
}
|
|
1595
|
-
.highlight-toggle[aria-pressed='true'] svg {
|
|
1596
|
-
color: var(--dpk-accent);
|
|
1597
|
-
}
|
|
1598
|
-
.highlight-count {
|
|
1599
|
-
color: var(--dpk-ink-soft);
|
|
1600
|
-
font-family: var(--dpk-mono);
|
|
1601
|
-
font-size: 10.5px;
|
|
1602
|
-
font-variant-numeric: tabular-nums;
|
|
1603
|
-
}
|
|
1604
|
-
`,Gi=(e,t,a)=>l`
|
|
1605
|
-
<section class="st-overview" data-testid="usm-labels">
|
|
1606
|
-
${a.rows.length===0?l`<div class="empty">
|
|
1607
|
-
<h2>${e.noLabelsTitle}</h2>
|
|
1608
|
-
<p>${e.noLabelsBody}</p>
|
|
1609
|
-
</div>`:m}
|
|
1610
|
-
<ol class="st-list">
|
|
1611
|
-
${C(a.rows,s=>s.id,s=>Vi(e,t,s))}
|
|
1612
|
-
</ol>
|
|
1613
|
-
<div>
|
|
1614
|
-
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>ni(e,t)}>
|
|
1615
|
-
${e.newLabelButton}
|
|
1616
|
-
</button>
|
|
1617
|
-
</div>
|
|
1618
|
-
</section>
|
|
1619
|
-
`,Vi=(e,t,a)=>{const s={type:"label",id:a.id};return l`
|
|
1620
|
-
<li class="st-row" data-label=${a.id} data-dpk-target=${T(s)} style=${I(a.tone)}>
|
|
1621
|
-
<span class="label-swatch" aria-hidden="true"></span>
|
|
1622
|
-
<span class="st-name">
|
|
1623
|
-
<dpk-component-inline-edit
|
|
1624
|
-
.value=${a.name}
|
|
1625
|
-
.label=${e.labelNameLabel}
|
|
1626
|
-
@dpk-commit=${W(n=>t.dispatch({type:"SET_LABEL_NAME",target:s,payload:{name:n}}))}
|
|
1627
|
-
></dpk-component-inline-edit>
|
|
1628
|
-
</span>
|
|
1629
|
-
${st(e,a.storyCount,a.share)}
|
|
1630
|
-
${at(e,a.tone,n=>t.dispatch({type:"SET_LABEL_TONE",target:s,payload:{tone:n}}))}
|
|
1631
|
-
${De(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:{}})})}
|
|
1632
|
-
</li>
|
|
1633
|
-
`},Hi=(e,t,a)=>{const{state:s}=t,n=me.filter(d=>de(s,d).length>0);if(n.length===0)return m;const i=Ae(s,t.navigation),r=Object.fromEntries(me.map(d=>[d,null]));return l`<div class="map-filter" role="group" aria-label=${e.filterLabel} data-testid="usm-map-filter">
|
|
1634
|
-
${n.map(d=>Ki(e,t,i,d,a))}
|
|
1635
|
-
${un(i)?l`<a class="filter-clear" href=${t.hashFor(r)}>${e.clearFilter}</a>`:m}
|
|
1636
|
-
</div>`},Ki=(e,t,a,s,n)=>{const i=a[s],r=ji(e,t.state,s),d=r.filter(p=>i.has(p.id)),o=n.openFor===s;return l`<span class="filter-field">
|
|
1637
|
-
<button
|
|
1638
|
-
class="dpk-select filter-select"
|
|
1639
|
-
type="button"
|
|
1640
|
-
data-filter-trigger=${s}
|
|
1641
|
-
data-active=${String(d.length>0)}
|
|
1642
|
-
aria-haspopup="menu"
|
|
1643
|
-
aria-expanded=${String(o)}
|
|
1644
|
-
@click=${()=>n.toggle(s)}
|
|
1645
|
-
>
|
|
1646
|
-
<span class="filter-key">${e.filterKeyLabel(s)}</span>
|
|
1647
|
-
<span class="filter-value">${qi(e,d)}</span>
|
|
1648
|
-
</button>
|
|
1649
|
-
${o?Wi(e,t,s,i,r,n):m}
|
|
1650
|
-
</span>`},qi=(e,t)=>{const[a]=t;return a?t.length===1?a.name:`${a.name} +${t.length-1}`:e.filterAll},Wi=(e,t,a,s,n,i)=>l`<div
|
|
1651
|
-
id="filter-menu"
|
|
1652
|
-
class="comment-pop filter-menu"
|
|
1653
|
-
popover="manual"
|
|
1654
|
-
role="menu"
|
|
1655
|
-
aria-label=${e.filterKeyLabel(a)}
|
|
1656
|
-
data-filter=${a}
|
|
1657
|
-
@keydown=${r=>{r.key==="Escape"&&(r.preventDefault(),i.close())}}
|
|
1658
|
-
>
|
|
1659
|
-
<a
|
|
1660
|
-
class="filter-option"
|
|
1661
|
-
role="menuitemcheckbox"
|
|
1662
|
-
data-option=""
|
|
1663
|
-
aria-checked=${String(s.size===0)}
|
|
1664
|
-
href=${t.hashFor({[a]:null})}
|
|
1665
|
-
>
|
|
1666
|
-
<span class="filter-check">${s.size===0?Ye():m}</span>
|
|
1667
|
-
<span class="filter-name">${e.filterAll}</span>
|
|
1668
|
-
</a>
|
|
1669
|
-
${n.map(r=>{const d=s.has(r.id);return l`<a
|
|
1670
|
-
class="filter-option"
|
|
1671
|
-
role="menuitemcheckbox"
|
|
1672
|
-
data-option=${r.id}
|
|
1673
|
-
data-none=${r.id===te?"true":m}
|
|
1674
|
-
aria-checked=${String(d)}
|
|
1675
|
-
style=${r.style}
|
|
1676
|
-
href=${t.hashFor({[a]:Pt(t.state,a,cn(s,r.id))})}
|
|
1677
|
-
>
|
|
1678
|
-
<span class="filter-check">${d?Ye():m}</span>
|
|
1679
|
-
${r.mark}
|
|
1680
|
-
<span class="filter-name" title=${r.name}>${r.name}</span>
|
|
1681
|
-
<span class="filter-count">${r.count}</span>
|
|
1682
|
-
</a>`})}
|
|
1683
|
-
</div>`,ji=(e,t,a)=>{const s=n=>t.stories.filter(n).length;switch(a){case"status":return ge(t).map(n=>({id:n.id,name:n.name,count:s(i=>i.statusId===n.id),mark:oe(n),style:I(n.tone)}));case"label":return de(t,a).map(n=>{const i=t.labels.find(r=>r.id===n);return{id:n,name:i?.name??e.noLabel,count:s(r=>i?(r.labelIds??[]).includes(n):(r.labelIds??[]).length===0),mark:l`<span class="filter-dot"></span>`,style:I(i?.tone)}});case"estimate":return de(t,a).map(n=>{const i=F(t,n);return{id:n,name:i?.name??e.unestimatedFilter,count:s(r=>(r.estimateId??te)===n),mark:i?l`<span class="filter-points">${i.points}pt</span>`:m,style:""}});case"assignee":return de(t,a).map(n=>{const i=P(t,n);return{id:n,name:i?.name??e.noAssigneeFilter,count:s(r=>(r.assigneeId??te)===n),mark:l`<span class="filter-dot"></span>`,style:I(i?.tone)}})}},Xi=V`
|
|
1684
|
-
.map-filter {
|
|
1685
|
-
display: flex;
|
|
1686
|
-
flex-wrap: wrap;
|
|
1687
|
-
align-items: center;
|
|
1688
|
-
gap: 8px;
|
|
1689
|
-
min-width: 0;
|
|
1690
|
-
}
|
|
1691
|
-
.filter-field {
|
|
1692
|
-
min-width: 0;
|
|
1693
|
-
}
|
|
1694
|
-
.filter-select {
|
|
1695
|
-
display: inline-flex;
|
|
1696
|
-
align-items: baseline;
|
|
1697
|
-
gap: 6px;
|
|
1698
|
-
width: auto;
|
|
1699
|
-
max-width: 260px;
|
|
1700
|
-
text-align: left;
|
|
1701
|
-
}
|
|
1702
|
-
.filter-select[data-active='true'] {
|
|
1703
|
-
border-color: color-mix(in oklab, var(--dpk-blue) 55%, var(--dpk-rule-strong));
|
|
1704
|
-
background-color: color-mix(in oklab, var(--dpk-blue) 8%, var(--dpk-paper-raised));
|
|
1705
|
-
}
|
|
1706
|
-
.filter-key {
|
|
1707
|
-
flex: none;
|
|
1708
|
-
color: var(--dpk-ink-faint);
|
|
1709
|
-
font-size: 11.5px;
|
|
1710
|
-
font-weight: 600;
|
|
1711
|
-
}
|
|
1712
|
-
.filter-value {
|
|
1713
|
-
min-width: 0;
|
|
1714
|
-
overflow: hidden;
|
|
1715
|
-
color: var(--dpk-ink);
|
|
1716
|
-
font-weight: 600;
|
|
1717
|
-
text-overflow: ellipsis;
|
|
1718
|
-
white-space: nowrap;
|
|
1719
|
-
}
|
|
1720
|
-
.filter-clear {
|
|
1721
|
-
margin-left: 2px;
|
|
1722
|
-
color: var(--dpk-blue);
|
|
1723
|
-
font-size: 12px;
|
|
1724
|
-
font-weight: 600;
|
|
1725
|
-
text-decoration: none;
|
|
1726
|
-
}
|
|
1727
|
-
.filter-clear:hover {
|
|
1728
|
-
text-decoration: underline;
|
|
1729
|
-
}
|
|
1730
|
-
.comment-pop.filter-menu {
|
|
1731
|
-
gap: 1px;
|
|
1732
|
-
padding: 6px;
|
|
1733
|
-
}
|
|
1734
|
-
.filter-option {
|
|
1735
|
-
display: flex;
|
|
1736
|
-
align-items: center;
|
|
1737
|
-
gap: 8px;
|
|
1738
|
-
min-height: 30px;
|
|
1739
|
-
padding: 4px 8px;
|
|
1740
|
-
border-radius: var(--dpk-radius-sm);
|
|
1741
|
-
color: var(--dpk-ink);
|
|
1742
|
-
font-size: 12.5px;
|
|
1743
|
-
font-weight: 550;
|
|
1744
|
-
text-decoration: none;
|
|
1745
|
-
}
|
|
1746
|
-
.filter-option[data-none] .filter-name {
|
|
1747
|
-
color: var(--dpk-ink-soft);
|
|
1748
|
-
font-style: italic;
|
|
1749
|
-
}
|
|
1750
|
-
.filter-option:hover,
|
|
1751
|
-
.filter-option:focus-visible {
|
|
1752
|
-
outline: none;
|
|
1753
|
-
background: var(--dpk-paper-sunken);
|
|
1754
|
-
}
|
|
1755
|
-
.filter-option:focus-visible {
|
|
1756
|
-
box-shadow: var(--dpk-focus);
|
|
1757
|
-
}
|
|
1758
|
-
.filter-check {
|
|
1759
|
-
flex: none;
|
|
1760
|
-
display: inline-grid;
|
|
1761
|
-
place-items: center;
|
|
1762
|
-
width: 16px;
|
|
1763
|
-
height: 16px;
|
|
1764
|
-
color: var(--dpk-blue);
|
|
1765
|
-
}
|
|
1766
|
-
.filter-check svg {
|
|
1767
|
-
width: 14px;
|
|
1768
|
-
height: 14px;
|
|
1769
|
-
}
|
|
1770
|
-
.filter-name {
|
|
1771
|
-
flex: 1;
|
|
1772
|
-
min-width: 0;
|
|
1773
|
-
overflow: hidden;
|
|
1774
|
-
text-overflow: ellipsis;
|
|
1775
|
-
white-space: nowrap;
|
|
1776
|
-
}
|
|
1777
|
-
.filter-dot {
|
|
1778
|
-
flex: none;
|
|
1779
|
-
width: 8px;
|
|
1780
|
-
height: 8px;
|
|
1781
|
-
border-radius: 50%;
|
|
1782
|
-
background: var(--usm-tone, var(--dpk-ink-faint));
|
|
1783
|
-
}
|
|
1784
|
-
.filter-points,
|
|
1785
|
-
.filter-count {
|
|
1786
|
-
color: var(--dpk-ink-faint);
|
|
1787
|
-
font-family: var(--dpk-mono);
|
|
1788
|
-
font-size: 10.5px;
|
|
1789
|
-
font-variant-numeric: tabular-nums;
|
|
1790
|
-
}
|
|
1791
|
-
`,Zi=(e,t,a)=>l`<div class="map-toolbar" data-testid="usm-map-toolbar">
|
|
1792
|
-
${Hi(e,t,a)} ${Pi(e,t)}
|
|
1793
|
-
</div>`,Ji=V`
|
|
1794
|
-
.map-toolbar {
|
|
1795
|
-
display: flex;
|
|
1796
|
-
flex-wrap: wrap;
|
|
1797
|
-
align-items: center;
|
|
1798
|
-
gap: 8px 12px;
|
|
1799
|
-
padding: 5px 24px;
|
|
1800
|
-
border-bottom: 1px solid var(--dpk-rule);
|
|
1801
|
-
}
|
|
1802
|
-
`,Qi=(e,t,a)=>l`
|
|
1803
|
-
<section class="st-overview" data-testid="usm-members">
|
|
1804
|
-
${a.rows.length===0?l`<div class="empty">
|
|
1805
|
-
<h2>${e.noMembersTitle}</h2>
|
|
1806
|
-
<p>${e.noMembersBody}</p>
|
|
1807
|
-
</div>`:m}
|
|
1808
|
-
<ol class="st-list">
|
|
1809
|
-
${C(a.rows,s=>s.id,s=>er(e,t,s))}
|
|
1810
|
-
</ol>
|
|
1811
|
-
<div>
|
|
1812
|
-
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>ii(e,t)}>
|
|
1813
|
-
${e.newMemberButton}
|
|
1814
|
-
</button>
|
|
1815
|
-
</div>
|
|
1816
|
-
</section>
|
|
1817
|
-
`,er=(e,t,a)=>{const s={type:"member",id:a.id};return l`
|
|
1818
|
-
<li class="st-row" data-member=${a.id} data-dpk-target=${T(s)} style=${I(a.tone)}>
|
|
1819
|
-
<span class="member-avatar" aria-hidden="true">${et(a.name)}</span>
|
|
1820
|
-
<span class="st-name">
|
|
1821
|
-
<dpk-component-inline-edit
|
|
1822
|
-
.value=${a.name}
|
|
1823
|
-
.label=${e.memberNameLabel}
|
|
1824
|
-
@dpk-commit=${W(n=>t.dispatch({type:"SET_MEMBER_NAME",target:s,payload:{name:n}}))}
|
|
1825
|
-
></dpk-component-inline-edit>
|
|
1826
|
-
</span>
|
|
1827
|
-
${st(e,a.storyCount,a.share)}
|
|
1828
|
-
${at(e,a.tone,n=>t.dispatch({type:"SET_MEMBER_TONE",target:s,payload:{tone:n}}))}
|
|
1829
|
-
${De(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:{}})})}
|
|
1830
|
-
</li>
|
|
1831
|
-
`},tr=(e,t,a)=>l`
|
|
1832
|
-
<section class="ms-overview" data-testid="usm-milestones">
|
|
1833
|
-
${a.length===0?l`<div class="empty">
|
|
1834
|
-
<h2>${e.noMilestonesTitle}</h2>
|
|
1835
|
-
<p>${e.noMilestonesBody}</p>
|
|
1836
|
-
</div>`:m}
|
|
1837
|
-
<ol class="ms-timeline">
|
|
1838
|
-
${C(a,s=>s.id,s=>ar(e,t,s))}
|
|
1839
|
-
<li class="ms-add">
|
|
1840
|
-
<span class="ms-when" aria-hidden="true"></span>
|
|
1841
|
-
<span class="ms-rail" aria-hidden="true"><span class="ms-node ms-node--add"></span></span>
|
|
1842
|
-
<div class="ms-body">
|
|
1843
|
-
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>ga(e,t)}>
|
|
1844
|
-
${e.newMilestoneButton}
|
|
1845
|
-
</button>
|
|
1846
|
-
</div>
|
|
1847
|
-
</li>
|
|
1848
|
-
</ol>
|
|
1849
|
-
</section>
|
|
1850
|
-
`,ar=(e,t,a)=>{const s=a.id;return l`
|
|
1851
|
-
<li class="ms-entry" data-milestone-card=${s} data-dpk-target=${T({type:"milestone",id:s})}>
|
|
1852
|
-
<div class="ms-when">
|
|
1853
|
-
${a.timeframe===""?l`<span class="ms-timeframe" data-empty="true">${e.timeframeUnset}</span>`:l`<span class="ms-timeframe">${a.timeframe}</span>`}
|
|
1854
|
-
</div>
|
|
1855
|
-
<span class="ms-rail" aria-hidden="true"><span class="ms-node">${a.ordinal}</span></span>
|
|
1856
|
-
<article class="ms-body">
|
|
1857
|
-
<h3 class="ms-name">
|
|
1858
|
-
<dpk-component-inline-edit
|
|
1859
|
-
.value=${a.name}
|
|
1860
|
-
.label=${e.milestoneNameLabel}
|
|
1861
|
-
@dpk-commit=${W(n=>t.dispatch({type:"SET_MILESTONE_NAME",target:{type:"milestone",id:s},payload:{name:n}}))}
|
|
1862
|
-
></dpk-component-inline-edit>
|
|
1863
|
-
</h3>
|
|
1864
|
-
${a.description===""?l`<p class="ms-description" data-empty="true">${e.milestoneNoDescription}</p>`:l`<p class="ms-description">${a.description}</p>`}
|
|
1865
|
-
<dl class="ms-facts">
|
|
1866
|
-
<div>
|
|
1867
|
-
<dt>${e.storiesLabel}</dt>
|
|
1868
|
-
<dd>
|
|
1869
|
-
<strong>${a.storyCount}</strong>
|
|
1870
|
-
<span>${e.shareOfStories(Math.round(a.share*100))}</span>
|
|
1871
|
-
</dd>
|
|
1872
|
-
</div>
|
|
1873
|
-
<div>
|
|
1874
|
-
<dt>${e.coverageLabel}</dt>
|
|
1875
|
-
<dd>
|
|
1876
|
-
<strong>${e.coverage(a.coverage.covered,a.coverage.total)}</strong>
|
|
1877
|
-
<span class="ms-meter" aria-hidden="true">
|
|
1878
|
-
<span
|
|
1879
|
-
style=${`width:${a.coverage.total===0?0:a.coverage.covered/a.coverage.total*100}%`}
|
|
1880
|
-
></span>
|
|
1881
|
-
</span>
|
|
1882
|
-
</dd>
|
|
1883
|
-
</div>
|
|
1884
|
-
</dl>
|
|
1885
|
-
${a.progress.length===0?m:sr(e,a)}
|
|
1886
|
-
</article>
|
|
1887
|
-
</li>
|
|
1888
|
-
`},sr=(e,t)=>l`
|
|
1889
|
-
<div class="ms-breakdown">
|
|
1890
|
-
${sa(t.progress,e.progressAria(t.progress.map(a=>`${a.name} ${a.count}`).join(", ")))}
|
|
1891
|
-
<ul class="ms-legend" aria-hidden="true">
|
|
1892
|
-
${t.progress.map(a=>l`<li data-status=${a.id} style=${I(a.tone)}>
|
|
1893
|
-
${oe(a)}
|
|
1894
|
-
<span class="ms-breakdown-name">${a.name}</span>
|
|
1895
|
-
<span class="ms-breakdown-count">${a.count}</span>
|
|
1896
|
-
</li>`)}
|
|
1897
|
-
</ul>
|
|
1898
|
-
</div>
|
|
1899
|
-
`,nr=(e,t,a,s)=>{if(a.kind!=="picking-step")return m;const n=S(t.state,a.storyId),i=Z(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">
|
|
1900
|
-
<span class="dpk-label">${e.moveDialogLabel}</span>
|
|
1901
|
-
<select class="dpk-select" aria-label=${e.moveDialogSelectLabel} data-move-dialog>
|
|
1902
|
-
${i.steps.map(d=>l`<option value=${d.id} ?selected=${d.id===r}>${d.name}</option>`)}
|
|
1903
|
-
</select>
|
|
1904
|
-
<div class="pop-actions">
|
|
1905
|
-
<button
|
|
1906
|
-
class="dpk-btn dpk-btn--accent"
|
|
1907
|
-
type="button"
|
|
1908
|
-
@click=${d=>{const p=(as(d.currentTarget,HTMLElement)?.closest("#move-dialog")??null)?.querySelector("select")?.value??r;p?s.confirm(p):s.cancel()}}
|
|
1909
|
-
>
|
|
1910
|
-
${e.moveConfirm}
|
|
1911
|
-
</button>
|
|
1912
|
-
<button class="dpk-btn" type="button" @click=${s.cancel}>${e.moveCancel}</button>
|
|
1913
|
-
</div>
|
|
1914
|
-
</div>`},ir=(e,t)=>l`<div class="board-head" data-testid="usm-board-head">${e}${t}</div>`,rr=M(ks),or=(e,t,a,s,n)=>{const{state:i}=t,r=Dt(i),d=r.filter(o=>n.folded.has(o));return l`
|
|
1915
|
-
<div class="board-bar">
|
|
1916
|
-
<div class="page-nav" style=${`min-width: ${n.minimum}px`}>
|
|
1917
|
-
<div class="page-tabs" role="tablist" aria-label=${e.pageTabsLabel}>
|
|
1918
|
-
${r.map(o=>dr(t,o,a,Oa(e,o),Na(i,o),n.folded.has(o)))}
|
|
1919
|
-
</div>
|
|
1920
|
-
<button
|
|
1921
|
-
class="dpk-btn dpk-btn--ghost tabs-more"
|
|
1922
|
-
type="button"
|
|
1923
|
-
data-tabs-more-trigger
|
|
1924
|
-
data-unused=${String(d.length===0)}
|
|
1925
|
-
aria-label=${e.moreTabsLabel}
|
|
1926
|
-
aria-haspopup="menu"
|
|
1927
|
-
aria-expanded=${String(n.open)}
|
|
1928
|
-
@click=${n.toggle}
|
|
1929
|
-
>
|
|
1930
|
-
${rr()}
|
|
1931
|
-
</button>
|
|
1932
|
-
${n.open&&d.length>0?l`<div
|
|
1933
|
-
id="tabs-menu"
|
|
1934
|
-
class="comment-pop tabs-menu"
|
|
1935
|
-
popover="manual"
|
|
1936
|
-
role="menu"
|
|
1937
|
-
aria-label=${e.moreTabsLabel}
|
|
1938
|
-
@keydown=${o=>{o.key==="Escape"&&(o.preventDefault(),n.close())}}
|
|
1939
|
-
>
|
|
1940
|
-
${d.map(o=>l`<a
|
|
1941
|
-
class="tabs-menu-item"
|
|
1942
|
-
role="menuitem"
|
|
1943
|
-
data-tab=${o}
|
|
1944
|
-
href=${t.hashFor({tab:o==="map"?null:o})}
|
|
1945
|
-
@click=${n.close}
|
|
1946
|
-
>${Oa(e,o)}<span class="page-tab-count">${Na(i,o)}</span></a
|
|
1947
|
-
>`)}
|
|
1948
|
-
</div>`:m}
|
|
1949
|
-
</div>
|
|
1950
|
-
${a==="map"&&i.activities.some(o=>o.steps.length>0)?pi(e,t):m}
|
|
1951
|
-
${Bi(e,t,s)}
|
|
1952
|
-
</div>
|
|
1953
|
-
`},Oa=(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}},Na=(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}},dr=(e,t,a,s,n,i)=>l`<a
|
|
1954
|
-
role="tab"
|
|
1955
|
-
data-tab=${t}
|
|
1956
|
-
data-overflow=${i?"":m}
|
|
1957
|
-
aria-hidden=${i?"true":m}
|
|
1958
|
-
tabindex=${i?"-1":m}
|
|
1959
|
-
aria-selected=${t===a?"true":"false"}
|
|
1960
|
-
href=${e.hashFor({tab:t==="map"?null:t})}
|
|
1961
|
-
>${s}<span class="page-tab-count">${n}</span></a
|
|
1962
|
-
>`,lr=36,pr=12,cr=220,ur=V`
|
|
1963
|
-
/* The tabs and their more button share what the bar's line leaves; the line
|
|
1964
|
-
wraps only when even the current tab and the button do not fit. */
|
|
1965
|
-
.page-nav {
|
|
1966
|
-
display: flex;
|
|
1967
|
-
flex: 1 1 0;
|
|
1968
|
-
align-items: center;
|
|
1969
|
-
gap: 4px;
|
|
1970
|
-
max-width: 100%;
|
|
1971
|
-
}
|
|
1972
|
-
/* A folded tab stays laid out, out of sight, so it can still be measured. */
|
|
1973
|
-
.page-tabs [role='tab'][data-overflow] {
|
|
1974
|
-
position: absolute;
|
|
1975
|
-
top: 0;
|
|
1976
|
-
left: 0;
|
|
1977
|
-
visibility: hidden;
|
|
1978
|
-
pointer-events: none;
|
|
1979
|
-
}
|
|
1980
|
-
.tabs-more {
|
|
1981
|
-
flex: none;
|
|
1982
|
-
padding: 6px 8px;
|
|
1983
|
-
}
|
|
1984
|
-
.tabs-more svg {
|
|
1985
|
-
width: 16px;
|
|
1986
|
-
height: 16px;
|
|
1987
|
-
}
|
|
1988
|
-
.tabs-more[aria-expanded='true'] {
|
|
1989
|
-
background: var(--dpk-paper-inset);
|
|
1990
|
-
color: var(--dpk-ink);
|
|
1991
|
-
}
|
|
1992
|
-
.tabs-more[data-unused='true'] {
|
|
1993
|
-
position: absolute;
|
|
1994
|
-
visibility: hidden;
|
|
1995
|
-
pointer-events: none;
|
|
1996
|
-
}
|
|
1997
|
-
.comment-pop.tabs-menu {
|
|
1998
|
-
gap: 2px;
|
|
1999
|
-
padding: 6px;
|
|
2000
|
-
}
|
|
2001
|
-
.tabs-menu-item {
|
|
2002
|
-
display: flex;
|
|
2003
|
-
align-items: center;
|
|
2004
|
-
justify-content: space-between;
|
|
2005
|
-
gap: 10px;
|
|
2006
|
-
padding: 8px 10px;
|
|
2007
|
-
border-radius: var(--dpk-radius-sm);
|
|
2008
|
-
color: var(--dpk-ink);
|
|
2009
|
-
font-size: 13px;
|
|
2010
|
-
font-weight: 600;
|
|
2011
|
-
text-decoration: none;
|
|
2012
|
-
}
|
|
2013
|
-
.tabs-menu-item:hover,
|
|
2014
|
-
.tabs-menu-item:focus-visible {
|
|
2015
|
-
outline: none;
|
|
2016
|
-
background: var(--dpk-paper-sunken);
|
|
2017
|
-
}
|
|
2018
|
-
`,mr=e=>S(e.state,e.navigation.story),hr=(e,t,a)=>{const{state:s}=t,n={type:"story",id:a.id},i=()=>t.navigate({story:null}),r=_(s,`${a.activityId}.${a.stepId}`),d=z(s,a.milestoneId);return l`<aside
|
|
2019
|
-
class="story-panel"
|
|
2020
|
-
role="dialog"
|
|
2021
|
-
aria-label=${e.panelLabel(a.name)}
|
|
2022
|
-
data-testid="usm-story-panel"
|
|
2023
|
-
data-story=${a.id}
|
|
2024
|
-
tabindex="-1"
|
|
2025
|
-
>
|
|
2026
|
-
<header class="sp-head">
|
|
2027
|
-
<span class="sp-where">
|
|
2028
|
-
${r?l`<span>${r.activity.name}</span><span>${r.step.name}</span>`:m}
|
|
2029
|
-
<span>${d?.name??e.unassigned}</span>
|
|
2030
|
-
</span>
|
|
2031
|
-
<button class="dpk-icon-btn" type="button" data-role="close" aria-label=${e.closePanelAria} @click=${i}>
|
|
2032
|
-
${Ue()}
|
|
2033
|
-
</button>
|
|
2034
|
-
</header>
|
|
2035
|
-
<div class="sp-body">
|
|
2036
|
-
<h2 class="sp-title">
|
|
2037
|
-
<dpk-component-inline-edit
|
|
2038
|
-
wrap
|
|
2039
|
-
.value=${a.name}
|
|
2040
|
-
.label=${e.storyTitleLabel}
|
|
2041
|
-
@dpk-commit=${W(o=>t.dispatch({type:"SET_STORY_NAME",target:n,payload:{name:o}}))}
|
|
2042
|
-
></dpk-component-inline-edit>
|
|
2043
|
-
</h2>
|
|
2044
|
-
${s.statuses.length===0?m:gr(e,t,a)}
|
|
2045
|
-
${K(s,"estimates")?br(e,t,a):m}
|
|
2046
|
-
${K(s,"assignees")?fr(e,t,a):m}
|
|
2047
|
-
${vr(e,t,a)} ${yr(e,t,a)}
|
|
2048
|
-
<section class="sp-field">
|
|
2049
|
-
<h3>${e.storyDescriptionLabel}</h3>
|
|
2050
|
-
<dpk-component-inline-edit
|
|
2051
|
-
multiline
|
|
2052
|
-
markdown
|
|
2053
|
-
class="sp-description"
|
|
2054
|
-
.value=${a.description??""}
|
|
2055
|
-
.label=${e.storyDescriptionLabel}
|
|
2056
|
-
@dpk-commit=${W(o=>t.dispatch({type:"SET_STORY_DESCRIPTION",target:n,payload:{description:o}}))}
|
|
2057
|
-
></dpk-component-inline-edit>
|
|
2058
|
-
</section>
|
|
2059
|
-
${kr(e,t,a)} ${xr(e,t,a)}
|
|
2060
|
-
</div>
|
|
2061
|
-
<footer class="sp-foot">
|
|
2062
|
-
<button
|
|
2063
|
-
class="dpk-btn dpk-btn--ghost sp-delete"
|
|
2064
|
-
type="button"
|
|
2065
|
-
@click=${()=>{t.dispatch({type:"DELETE_STORY",target:n,payload:{}}).ok&&i()}}
|
|
2066
|
-
>
|
|
2067
|
-
${Be()}<span>${e.deleteStoryButton}</span>
|
|
2068
|
-
</button>
|
|
2069
|
-
</footer>
|
|
2070
|
-
</aside>`},gr=(e,t,a)=>{const s=ge(t.state),n=a.statusId;return l`<section class="sp-field">
|
|
2071
|
-
<h3 id="sp-status-label">${e.storyStatusLabel}</h3>
|
|
2072
|
-
<div class="sp-statuses" role="radiogroup" aria-labelledby="sp-status-label">
|
|
2073
|
-
${s.map(i=>l`<button
|
|
2074
|
-
class="sp-status"
|
|
2075
|
-
type="button"
|
|
2076
|
-
role="radio"
|
|
2077
|
-
data-status=${i.id}
|
|
2078
|
-
aria-checked=${String(i.id===n)}
|
|
2079
|
-
style=${I(i.tone)}
|
|
2080
|
-
@click=${()=>{i.id!==n&&t.dispatch({type:"SET_STORY_STATUS",target:{type:"story",id:a.id},payload:{statusId:i.id}})}}
|
|
2081
|
-
>
|
|
2082
|
-
${oe(i)}<span>${i.name}</span>
|
|
2083
|
-
</button>`)}
|
|
2084
|
-
</div>
|
|
2085
|
-
</section>`},br=(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">
|
|
2086
|
-
<h3 id="sp-estimate-label" class="sp-field-head">
|
|
2087
|
-
<span>${e.storyEstimateLabel}</span>
|
|
2088
|
-
<a class="sp-manage" href=${t.hashFor({tab:"burndown",story:null})}>${e.manageEstimates}</a>
|
|
2089
|
-
</h3>
|
|
2090
|
-
${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">
|
|
2091
|
-
${i.map(r=>l`<button
|
|
2092
|
-
class="sp-estimate"
|
|
2093
|
-
type="button"
|
|
2094
|
-
role="radio"
|
|
2095
|
-
data-estimate=${r.id??""}
|
|
2096
|
-
title=${r.title}
|
|
2097
|
-
aria-checked=${String(r.id===s)}
|
|
2098
|
-
@click=${n(r.id)}
|
|
2099
|
-
>
|
|
2100
|
-
${r.name}
|
|
2101
|
-
</button>`)}
|
|
2102
|
-
</div>`}
|
|
2103
|
-
</section>`},fr=(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">
|
|
2104
|
-
<h3 id="sp-assignee-label" class="sp-field-head">
|
|
2105
|
-
<span>${e.storyAssigneeLabel}</span>
|
|
2106
|
-
<a class="sp-manage" href=${t.hashFor({tab:"members",story:null})}>${e.manageMembers}</a>
|
|
2107
|
-
</h3>
|
|
2108
|
-
${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">
|
|
2109
|
-
<button
|
|
2110
|
-
class="sp-assignee"
|
|
2111
|
-
type="button"
|
|
2112
|
-
role="radio"
|
|
2113
|
-
data-assignee=""
|
|
2114
|
-
aria-checked=${String(s===null)}
|
|
2115
|
-
@click=${n(null)}
|
|
2116
|
-
>
|
|
2117
|
-
${e.noAssignee}
|
|
2118
|
-
</button>
|
|
2119
|
-
${t.state.members.map(i=>l`<button
|
|
2120
|
-
class="sp-assignee"
|
|
2121
|
-
type="button"
|
|
2122
|
-
role="radio"
|
|
2123
|
-
data-assignee=${i.id}
|
|
2124
|
-
aria-checked=${String(i.id===s)}
|
|
2125
|
-
style=${I(i.tone)}
|
|
2126
|
-
@click=${n(i.id)}
|
|
2127
|
-
>
|
|
2128
|
-
<span class="sp-avatar" aria-hidden="true">${et(i.name)}</span>${i.name}
|
|
2129
|
-
</button>`)}
|
|
2130
|
-
</div>`}
|
|
2131
|
-
</section>`},vr=(e,t,a)=>{const s={type:"story",id:a.id},n=new Set(a.labelIds??[]);return l`<section class="sp-field">
|
|
2132
|
-
<h3 id="sp-labels-label" class="sp-field-head">
|
|
2133
|
-
<span>${e.storyLabelsLabel}</span>
|
|
2134
|
-
<a class="sp-manage" href=${t.hashFor({tab:"labels",story:null})}>${e.manageLabels}</a>
|
|
2135
|
-
</h3>
|
|
2136
|
-
${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">
|
|
2137
|
-
${t.state.labels.map(i=>{const r=n.has(i.id);return l`<button
|
|
2138
|
-
class="sp-label"
|
|
2139
|
-
type="button"
|
|
2140
|
-
data-label=${i.id}
|
|
2141
|
-
aria-pressed=${String(r)}
|
|
2142
|
-
style=${I(i.tone)}
|
|
2143
|
-
@click=${()=>t.dispatch({type:r?"REMOVE_STORY_LABEL":"ADD_STORY_LABEL",target:s,payload:{labelId:i.id}})}
|
|
2144
|
-
>
|
|
2145
|
-
<span class="sp-label-dot" aria-hidden="true"></span><span>${i.name}</span>
|
|
2146
|
-
</button>`})}
|
|
2147
|
-
</div>`}
|
|
2148
|
-
</section>`},yr=(e,t,a)=>{const{state:s}=t,n=Yt(s,a.id),i=(o,p,u)=>t.dispatch({type:o,target:{type:"story",id:p},payload:{blockerId:u}}),r=(o,p,u,f)=>{const $=S(s,p);if(!$)return m;const g=ge(s).find(c=>c.id===$.statusId);return l`<li
|
|
2149
|
-
data-blocker=${o==="data-blocker"?p:m}
|
|
2150
|
-
data-dependent=${o==="data-dependent"?p:m}
|
|
2151
|
-
data-finished=${String(Ze(s,$))}
|
|
2152
|
-
>
|
|
2153
|
-
<a class="sp-dep-name" href=${t.hashFor({story:p})} style=${I(g?.tone)}>
|
|
2154
|
-
${g?oe(g):m}<span>${$.name}</span>
|
|
2155
|
-
</a>
|
|
2156
|
-
<button
|
|
2157
|
-
class="dpk-icon-btn"
|
|
2158
|
-
type="button"
|
|
2159
|
-
data-role="remove"
|
|
2160
|
-
aria-label=${u($.name)}
|
|
2161
|
-
@click=${f}
|
|
2162
|
-
>
|
|
2163
|
-
${Ue()}
|
|
2164
|
-
</button>
|
|
2165
|
-
</li>`},d=(o,p,u,f)=>u.length===0?m:l`<select
|
|
2166
|
-
class="dpk-select sp-dep-add"
|
|
2167
|
-
data-role=${o}
|
|
2168
|
-
aria-label=${p}
|
|
2169
|
-
@change=${$=>{const g=$.currentTarget instanceof HTMLSelectElement?$.currentTarget:null;!g||g.value===""||(f(g.value),g.value="")}}
|
|
2170
|
-
>
|
|
2171
|
-
<option value="" selected>${p}</option>
|
|
2172
|
-
${u.map($=>l`<option value=${$.id}>${$.name}</option>`)}
|
|
2173
|
-
</select>`;return l`<section class="sp-field sp-deps">
|
|
2174
|
-
<h3>${e.storyDependenciesLabel}</h3>
|
|
2175
|
-
<div class="sp-dep-side">
|
|
2176
|
-
<h4>${e.storyBlockersLabel}</h4>
|
|
2177
|
-
${n.blockers.length===0?l`<p class="sp-empty">${e.storyNoBlockers}</p>`:l`<ul class="sp-dep-list">
|
|
2178
|
-
${n.blockers.map(o=>r("data-blocker",o,e.removeBlockerAria,()=>i("REMOVE_STORY_BLOCKER",a.id,o)))}
|
|
2179
|
-
</ul>`}
|
|
2180
|
-
${d("add-blocker",e.addBlockerPlaceholder,nn(s,a.id),o=>i("ADD_STORY_BLOCKER",a.id,o))}
|
|
2181
|
-
</div>
|
|
2182
|
-
<div class="sp-dep-side">
|
|
2183
|
-
<h4>${e.storyDependentsLabel}</h4>
|
|
2184
|
-
${n.dependents.length===0?l`<p class="sp-empty">${e.storyNoDependents}</p>`:l`<ul class="sp-dep-list">
|
|
2185
|
-
${n.dependents.map(o=>r("data-dependent",o,e.removeDependentAria,()=>i("REMOVE_STORY_BLOCKER",o,a.id)))}
|
|
2186
|
-
</ul>`}
|
|
2187
|
-
${d("add-dependent",e.addDependentPlaceholder,rn(s,a.id),o=>i("ADD_STORY_BLOCKER",o,a.id))}
|
|
2188
|
-
</div>
|
|
2189
|
-
</section>`},kr=(e,t,a)=>{const s={type:"story",id:a.id},n=a.links??[],i=r=>{r.preventDefault();const d=r.currentTarget instanceof HTMLFormElement?r.currentTarget:null,o=d?.querySelector("input");if(!d||!o)return;const p=o.value.trim();if(!rt(Ge,p).success){o.setAttribute("aria-invalid","true");return}t.dispatch({type:"ADD_STORY_LINK",target:s,payload:{url:p}}).ok&&(o.removeAttribute("aria-invalid"),d.reset())};return l`<section class="sp-field">
|
|
2190
|
-
<h3>${e.storyLinksLabel}</h3>
|
|
2191
|
-
${n.length===0?m:l`<ul class="sp-links">
|
|
2192
|
-
${n.map(r=>{const d=Se(r.url),o=r.label??d.text;return l`<li data-kind=${d.kind}>
|
|
2193
|
-
<a class="sp-link" href=${r.url} target="_blank" rel="noopener noreferrer" title=${r.url}>
|
|
2194
|
-
${ia(d.kind)}
|
|
2195
|
-
<span class="sp-link-text">${o}</span>
|
|
2196
|
-
<span class="sp-link-url">${d.title===o?r.url:d.title}</span>
|
|
2197
|
-
</a>
|
|
2198
|
-
<button
|
|
2199
|
-
class="dpk-icon-btn"
|
|
2200
|
-
type="button"
|
|
2201
|
-
aria-label=${e.removeLinkAria(o)}
|
|
2202
|
-
@click=${()=>t.dispatch({type:"REMOVE_STORY_LINK",target:s,payload:{url:r.url}})}
|
|
2203
|
-
>
|
|
2204
|
-
${Ue()}
|
|
2205
|
-
</button>
|
|
2206
|
-
</li>`})}
|
|
2207
|
-
</ul>`}
|
|
2208
|
-
<form class="sp-add-link" @submit=${i}>
|
|
2209
|
-
<input
|
|
2210
|
-
class="dpk-input"
|
|
2211
|
-
type="url"
|
|
2212
|
-
inputmode="url"
|
|
2213
|
-
placeholder="https://"
|
|
2214
|
-
aria-label=${e.linkUrlLabel}
|
|
2215
|
-
@input=${r=>{r.currentTarget instanceof HTMLInputElement&&r.currentTarget.removeAttribute("aria-invalid")}}
|
|
2216
|
-
/>
|
|
2217
|
-
<button class="dpk-btn" type="submit">${e.addLinkButton}</button>
|
|
2218
|
-
</form>
|
|
2219
|
-
</section>`},xr=(e,t,a)=>{const s=t.comments.filter(i=>i.target.type==="story"&&i.target.id===a.id),n=i=>{const r=i.querySelector("textarea"),d=r?.value.trim()??"";if(!r||d==="")return;t.dispatch({type:"comment",target:`story:${a.id}`,payload:{body:d}}).ok&&(r.value="")};return l`<section class="sp-field sp-comments">
|
|
2220
|
-
<h3>${e.storyCommentsLabel}${s.length>0?l`<span class="sp-count">${s.length}</span>`:m}</h3>
|
|
2221
|
-
${s.length===0?m:l`<ol class="sp-comment-list">
|
|
2222
|
-
${s.map(i=>l`<li>${ss(i)}</li>`)}
|
|
2223
|
-
</ol>`}
|
|
2224
|
-
<form
|
|
2225
|
-
class="sp-comment-form"
|
|
2226
|
-
@submit=${i=>{i.preventDefault(),i.currentTarget instanceof HTMLFormElement&&n(i.currentTarget)}}
|
|
2227
|
-
>
|
|
2228
|
-
<textarea
|
|
2229
|
-
class="dpk-textarea"
|
|
2230
|
-
rows="3"
|
|
2231
|
-
aria-label=${e.storyCommentsLabel}
|
|
2232
|
-
data-dpk-text-key=${`story:${a.id}`}
|
|
2233
|
-
@keydown=${i=>{if(i.isComposing||i.key!=="Enter"||!(i.ctrlKey||i.metaKey))return;i.preventDefault();const r=i.currentTarget instanceof HTMLElement?i.currentTarget.closest("form"):null;r&&n(r)}}
|
|
2234
|
-
></textarea>
|
|
2235
|
-
<div class="sp-comment-actions">
|
|
2236
|
-
<button class="dpk-btn dpk-btn--accent" type="submit">${e.commentSubmit}</button>
|
|
2237
|
-
</div>
|
|
2238
|
-
</form>
|
|
2239
|
-
</section>`},wr=V`
|
|
2240
|
-
/* Over the main column's edge, below the header: the page's own controls stay in reach. */
|
|
2241
|
-
.story-panel {
|
|
2242
|
-
position: absolute;
|
|
2243
|
-
top: 0;
|
|
2244
|
-
right: 0;
|
|
2245
|
-
bottom: 0;
|
|
2246
|
-
z-index: 20;
|
|
2247
|
-
display: grid;
|
|
2248
|
-
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
2249
|
-
width: min(420px, 100%);
|
|
2250
|
-
border-left: 1px solid var(--dpk-rule-strong);
|
|
2251
|
-
background: var(--dpk-paper-raised);
|
|
2252
|
-
box-shadow: var(--dpk-shadow-lg);
|
|
2253
|
-
animation: sp-slide-in 220ms var(--dpk-ease);
|
|
2254
|
-
}
|
|
2255
|
-
/* The panel takes the focus when it opens; the ring belongs to its controls. */
|
|
2256
|
-
.story-panel:focus {
|
|
2257
|
-
outline: none;
|
|
2258
|
-
}
|
|
2259
|
-
@keyframes sp-slide-in {
|
|
2260
|
-
from {
|
|
2261
|
-
opacity: 0;
|
|
2262
|
-
transform: translateX(24px);
|
|
2263
|
-
}
|
|
2264
|
-
}
|
|
2265
|
-
.sp-head {
|
|
2266
|
-
display: flex;
|
|
2267
|
-
align-items: center;
|
|
2268
|
-
gap: 10px;
|
|
2269
|
-
padding: 14px 22px 12px;
|
|
2270
|
-
min-height: 60px;
|
|
2271
|
-
box-sizing: border-box;
|
|
2272
|
-
border-bottom: 1px solid var(--dpk-rule);
|
|
2273
|
-
}
|
|
2274
|
-
.sp-where {
|
|
2275
|
-
display: flex;
|
|
2276
|
-
flex-wrap: wrap;
|
|
2277
|
-
gap: 2px 0;
|
|
2278
|
-
flex: 1 1 auto;
|
|
2279
|
-
min-width: 0;
|
|
2280
|
-
color: var(--dpk-ink-faint);
|
|
2281
|
-
font-size: 11.5px;
|
|
2282
|
-
font-weight: 600;
|
|
2283
|
-
}
|
|
2284
|
-
.sp-where > span + span::before {
|
|
2285
|
-
content: '›';
|
|
2286
|
-
margin: 0 6px;
|
|
2287
|
-
color: var(--dpk-rule-strong);
|
|
2288
|
-
}
|
|
2289
|
-
.sp-body {
|
|
2290
|
-
display: grid;
|
|
2291
|
-
align-content: start;
|
|
2292
|
-
gap: 22px;
|
|
2293
|
-
overflow: auto;
|
|
2294
|
-
padding: 18px 22px 24px;
|
|
2295
|
-
}
|
|
2296
|
-
.sp-title {
|
|
2297
|
-
margin: 0;
|
|
2298
|
-
font-size: 19px;
|
|
2299
|
-
font-weight: 700;
|
|
2300
|
-
letter-spacing: -0.015em;
|
|
2301
|
-
line-height: 1.35;
|
|
2302
|
-
}
|
|
2303
|
-
.sp-title dpk-component-inline-edit {
|
|
2304
|
-
display: block;
|
|
2305
|
-
margin: 0 -4px;
|
|
2306
|
-
}
|
|
2307
|
-
.sp-field {
|
|
2308
|
-
display: grid;
|
|
2309
|
-
gap: 8px;
|
|
2310
|
-
}
|
|
2311
|
-
.sp-field h3 {
|
|
2312
|
-
margin: 0;
|
|
2313
|
-
color: var(--dpk-ink-faint);
|
|
2314
|
-
font-size: 11px;
|
|
2315
|
-
font-weight: 650;
|
|
2316
|
-
letter-spacing: 0.04em;
|
|
2317
|
-
text-transform: uppercase;
|
|
2318
|
-
}
|
|
2319
|
-
.sp-statuses {
|
|
2320
|
-
display: flex;
|
|
2321
|
-
flex-wrap: wrap;
|
|
2322
|
-
gap: 6px;
|
|
2323
|
-
}
|
|
2324
|
-
.sp-status {
|
|
2325
|
-
display: inline-flex;
|
|
2326
|
-
align-items: center;
|
|
2327
|
-
gap: 7px;
|
|
2328
|
-
padding: 5px 12px 5px 9px;
|
|
2329
|
-
border: 1px solid var(--dpk-rule-strong);
|
|
2330
|
-
border-radius: 999px;
|
|
2331
|
-
background: var(--dpk-paper-raised);
|
|
2332
|
-
color: var(--dpk-ink);
|
|
2333
|
-
font: inherit;
|
|
2334
|
-
font-size: 12.5px;
|
|
2335
|
-
font-weight: 600;
|
|
2336
|
-
cursor: pointer;
|
|
2337
|
-
transition:
|
|
2338
|
-
background 140ms var(--dpk-ease),
|
|
2339
|
-
border-color 140ms var(--dpk-ease);
|
|
2340
|
-
}
|
|
2341
|
-
.sp-status:hover {
|
|
2342
|
-
border-color: color-mix(in oklab, var(--usm-tone) 60%, var(--dpk-rule-strong));
|
|
2343
|
-
}
|
|
2344
|
-
.sp-status:focus-visible {
|
|
2345
|
-
outline: none;
|
|
2346
|
-
box-shadow: var(--dpk-focus);
|
|
2347
|
-
}
|
|
2348
|
-
.sp-status[aria-checked='true'] {
|
|
2349
|
-
border-color: var(--usm-tone);
|
|
2350
|
-
background: color-mix(in oklab, var(--usm-tone) 14%, var(--dpk-paper-raised));
|
|
2351
|
-
box-shadow: inset 0 0 0 1px var(--usm-tone);
|
|
2352
|
-
}
|
|
2353
|
-
.sp-estimates {
|
|
2354
|
-
display: flex;
|
|
2355
|
-
flex-wrap: wrap;
|
|
2356
|
-
gap: 4px;
|
|
2357
|
-
}
|
|
2358
|
-
.sp-estimate {
|
|
2359
|
-
min-width: 34px;
|
|
2360
|
-
padding: 4px 10px;
|
|
2361
|
-
border: 1px solid var(--dpk-rule-strong);
|
|
2362
|
-
border-radius: var(--dpk-radius-sm);
|
|
2363
|
-
background: var(--dpk-paper-raised);
|
|
2364
|
-
color: var(--dpk-ink-soft);
|
|
2365
|
-
font: inherit;
|
|
2366
|
-
font-family: var(--dpk-mono);
|
|
2367
|
-
font-size: 12px;
|
|
2368
|
-
font-weight: 650;
|
|
2369
|
-
font-variant-numeric: tabular-nums;
|
|
2370
|
-
cursor: pointer;
|
|
2371
|
-
transition:
|
|
2372
|
-
background 140ms var(--dpk-ease),
|
|
2373
|
-
border-color 140ms var(--dpk-ease);
|
|
2374
|
-
}
|
|
2375
|
-
.sp-estimate[data-estimate=''] {
|
|
2376
|
-
font-family: inherit;
|
|
2377
|
-
font-weight: 550;
|
|
2378
|
-
}
|
|
2379
|
-
.sp-estimate:hover {
|
|
2380
|
-
border-color: var(--dpk-rule-hover);
|
|
2381
|
-
}
|
|
2382
|
-
.sp-estimate:focus-visible {
|
|
2383
|
-
outline: none;
|
|
2384
|
-
box-shadow: var(--dpk-focus);
|
|
2385
|
-
}
|
|
2386
|
-
.sp-estimate[aria-checked='true'] {
|
|
2387
|
-
border-color: var(--dpk-ink);
|
|
2388
|
-
background: var(--dpk-ink);
|
|
2389
|
-
color: var(--dpk-paper-raised);
|
|
2390
|
-
}
|
|
2391
|
-
.sp-assignees {
|
|
2392
|
-
display: flex;
|
|
2393
|
-
flex-wrap: wrap;
|
|
2394
|
-
gap: 4px;
|
|
2395
|
-
}
|
|
2396
|
-
.sp-assignee {
|
|
2397
|
-
display: inline-flex;
|
|
2398
|
-
align-items: center;
|
|
2399
|
-
gap: 6px;
|
|
2400
|
-
padding: 3px 10px 3px 4px;
|
|
2401
|
-
border: 1px solid var(--dpk-rule-strong);
|
|
2402
|
-
border-radius: 999px;
|
|
2403
|
-
background: var(--dpk-paper-raised);
|
|
2404
|
-
color: var(--dpk-ink-soft);
|
|
2405
|
-
font: inherit;
|
|
2406
|
-
font-size: 12px;
|
|
2407
|
-
font-weight: 600;
|
|
2408
|
-
cursor: pointer;
|
|
2409
|
-
transition:
|
|
2410
|
-
background 140ms var(--dpk-ease),
|
|
2411
|
-
border-color 140ms var(--dpk-ease);
|
|
2412
|
-
}
|
|
2413
|
-
.sp-assignee[data-assignee=''] {
|
|
2414
|
-
padding-left: 10px;
|
|
2415
|
-
}
|
|
2416
|
-
.sp-assignee:hover {
|
|
2417
|
-
border-color: var(--dpk-rule-hover);
|
|
2418
|
-
}
|
|
2419
|
-
.sp-assignee:focus-visible {
|
|
2420
|
-
outline: none;
|
|
2421
|
-
box-shadow: var(--dpk-focus);
|
|
2422
|
-
}
|
|
2423
|
-
.sp-assignee[aria-checked='true'] {
|
|
2424
|
-
border-color: var(--usm-tone, var(--dpk-ink));
|
|
2425
|
-
background: color-mix(in oklab, var(--usm-tone, var(--dpk-ink)) 12%, var(--dpk-paper-raised));
|
|
2426
|
-
color: var(--dpk-ink);
|
|
2427
|
-
}
|
|
2428
|
-
.sp-avatar {
|
|
2429
|
-
display: inline-grid;
|
|
2430
|
-
place-items: center;
|
|
2431
|
-
width: 18px;
|
|
2432
|
-
height: 18px;
|
|
2433
|
-
border-radius: 50%;
|
|
2434
|
-
background: var(--usm-tone);
|
|
2435
|
-
color: var(--dpk-paper-raised);
|
|
2436
|
-
font-size: 10px;
|
|
2437
|
-
font-weight: 700;
|
|
2438
|
-
line-height: 1;
|
|
2439
|
-
}
|
|
2440
|
-
.sp-field-head {
|
|
2441
|
-
display: flex;
|
|
2442
|
-
align-items: baseline;
|
|
2443
|
-
justify-content: space-between;
|
|
2444
|
-
gap: 8px;
|
|
2445
|
-
}
|
|
2446
|
-
.sp-manage {
|
|
2447
|
-
color: var(--dpk-ink-faint);
|
|
2448
|
-
font-size: 11px;
|
|
2449
|
-
font-weight: 600;
|
|
2450
|
-
letter-spacing: 0;
|
|
2451
|
-
text-transform: none;
|
|
2452
|
-
}
|
|
2453
|
-
.sp-manage:hover {
|
|
2454
|
-
color: var(--dpk-blue);
|
|
2455
|
-
}
|
|
2456
|
-
.sp-empty {
|
|
2457
|
-
margin: 0;
|
|
2458
|
-
color: var(--dpk-ink-faint);
|
|
2459
|
-
font-size: 12.5px;
|
|
2460
|
-
}
|
|
2461
|
-
.sp-labels {
|
|
2462
|
-
display: flex;
|
|
2463
|
-
flex-wrap: wrap;
|
|
2464
|
-
gap: 6px;
|
|
2465
|
-
}
|
|
2466
|
-
.sp-label {
|
|
2467
|
-
display: inline-flex;
|
|
2468
|
-
align-items: center;
|
|
2469
|
-
gap: 6px;
|
|
2470
|
-
padding: 3px 10px 3px 8px;
|
|
2471
|
-
border: 1px dashed var(--dpk-rule-strong);
|
|
2472
|
-
border-radius: 999px;
|
|
2473
|
-
background: transparent;
|
|
2474
|
-
color: var(--dpk-ink-soft);
|
|
2475
|
-
font: inherit;
|
|
2476
|
-
font-size: 12px;
|
|
2477
|
-
font-weight: 600;
|
|
2478
|
-
cursor: pointer;
|
|
2479
|
-
transition:
|
|
2480
|
-
background 140ms var(--dpk-ease),
|
|
2481
|
-
border-color 140ms var(--dpk-ease);
|
|
2482
|
-
}
|
|
2483
|
-
.sp-label:hover {
|
|
2484
|
-
border-color: color-mix(in oklab, var(--usm-tone) 60%, var(--dpk-rule-strong));
|
|
2485
|
-
}
|
|
2486
|
-
.sp-label:focus-visible {
|
|
2487
|
-
outline: none;
|
|
2488
|
-
box-shadow: var(--dpk-focus);
|
|
2489
|
-
}
|
|
2490
|
-
.sp-label[aria-pressed='true'] {
|
|
2491
|
-
border-style: solid;
|
|
2492
|
-
border-color: color-mix(in oklab, var(--usm-tone) 55%, transparent);
|
|
2493
|
-
background: color-mix(in oklab, var(--usm-tone) 14%, var(--dpk-paper-raised));
|
|
2494
|
-
color: var(--dpk-ink);
|
|
2495
|
-
}
|
|
2496
|
-
.sp-label-dot {
|
|
2497
|
-
width: 7px;
|
|
2498
|
-
height: 7px;
|
|
2499
|
-
border-radius: 50%;
|
|
2500
|
-
background: var(--usm-tone);
|
|
2501
|
-
opacity: 0.5;
|
|
2502
|
-
}
|
|
2503
|
-
.sp-label[aria-pressed='true'] .sp-label-dot {
|
|
2504
|
-
opacity: 1;
|
|
2505
|
-
}
|
|
2506
|
-
.sp-deps {
|
|
2507
|
-
gap: 12px;
|
|
2508
|
-
}
|
|
2509
|
-
.sp-dep-side {
|
|
2510
|
-
display: grid;
|
|
2511
|
-
gap: 6px;
|
|
2512
|
-
}
|
|
2513
|
-
.sp-dep-side h4 {
|
|
2514
|
-
margin: 0;
|
|
2515
|
-
color: var(--dpk-ink-soft);
|
|
2516
|
-
font-size: 11.5px;
|
|
2517
|
-
font-weight: 650;
|
|
2518
|
-
}
|
|
2519
|
-
.sp-dep-list {
|
|
2520
|
-
display: grid;
|
|
2521
|
-
gap: 4px;
|
|
2522
|
-
margin: 0;
|
|
2523
|
-
padding: 0;
|
|
2524
|
-
list-style: none;
|
|
2525
|
-
}
|
|
2526
|
-
.sp-dep-list li {
|
|
2527
|
-
display: flex;
|
|
2528
|
-
align-items: center;
|
|
2529
|
-
gap: 4px;
|
|
2530
|
-
border: 1px solid var(--dpk-rule);
|
|
2531
|
-
border-radius: var(--dpk-radius-sm);
|
|
2532
|
-
background: var(--dpk-paper-sunken);
|
|
2533
|
-
}
|
|
2534
|
-
.sp-dep-name {
|
|
2535
|
-
display: flex;
|
|
2536
|
-
align-items: center;
|
|
2537
|
-
gap: 8px;
|
|
2538
|
-
flex: 1 1 auto;
|
|
2539
|
-
min-width: 0;
|
|
2540
|
-
padding: 6px 4px 6px 10px;
|
|
2541
|
-
color: var(--dpk-ink);
|
|
2542
|
-
font-size: 12.5px;
|
|
2543
|
-
font-weight: 600;
|
|
2544
|
-
text-decoration: none;
|
|
2545
|
-
}
|
|
2546
|
-
.sp-dep-name span {
|
|
2547
|
-
overflow: hidden;
|
|
2548
|
-
text-overflow: ellipsis;
|
|
2549
|
-
white-space: nowrap;
|
|
2550
|
-
}
|
|
2551
|
-
.sp-dep-name:hover span {
|
|
2552
|
-
text-decoration: underline;
|
|
2553
|
-
}
|
|
2554
|
-
.sp-dep-list li[data-finished='true'] .sp-dep-name span {
|
|
2555
|
-
color: var(--dpk-ink-faint);
|
|
2556
|
-
text-decoration: line-through;
|
|
2557
|
-
}
|
|
2558
|
-
.sp-dep-add {
|
|
2559
|
-
width: 100%;
|
|
2560
|
-
}
|
|
2561
|
-
.sp-description {
|
|
2562
|
-
display: block;
|
|
2563
|
-
margin: 0 -4px;
|
|
2564
|
-
color: var(--dpk-ink-soft);
|
|
2565
|
-
font-size: 13px;
|
|
2566
|
-
line-height: 1.65;
|
|
2567
|
-
}
|
|
2568
|
-
.sp-links {
|
|
2569
|
-
display: grid;
|
|
2570
|
-
gap: 4px;
|
|
2571
|
-
margin: 0;
|
|
2572
|
-
padding: 0;
|
|
2573
|
-
list-style: none;
|
|
2574
|
-
}
|
|
2575
|
-
.sp-links li {
|
|
2576
|
-
display: flex;
|
|
2577
|
-
align-items: center;
|
|
2578
|
-
gap: 4px;
|
|
2579
|
-
border: 1px solid var(--dpk-rule);
|
|
2580
|
-
border-radius: var(--dpk-radius-sm);
|
|
2581
|
-
background: var(--dpk-paper-sunken);
|
|
2582
|
-
}
|
|
2583
|
-
.sp-link {
|
|
2584
|
-
display: grid;
|
|
2585
|
-
grid-template-columns: 16px minmax(0, 1fr);
|
|
2586
|
-
column-gap: 9px;
|
|
2587
|
-
align-items: center;
|
|
2588
|
-
flex: 1 1 auto;
|
|
2589
|
-
min-width: 0;
|
|
2590
|
-
padding: 7px 4px 7px 10px;
|
|
2591
|
-
color: var(--dpk-ink);
|
|
2592
|
-
text-decoration: none;
|
|
2593
|
-
}
|
|
2594
|
-
.sp-link:hover .sp-link-text {
|
|
2595
|
-
text-decoration: underline;
|
|
2596
|
-
}
|
|
2597
|
-
.sp-link svg {
|
|
2598
|
-
grid-row: span 2;
|
|
2599
|
-
width: 16px;
|
|
2600
|
-
height: 16px;
|
|
2601
|
-
color: var(--dpk-ink-soft);
|
|
2602
|
-
}
|
|
2603
|
-
.sp-link-text {
|
|
2604
|
-
overflow: hidden;
|
|
2605
|
-
font-family: var(--dpk-mono);
|
|
2606
|
-
font-size: 12.5px;
|
|
2607
|
-
font-weight: 650;
|
|
2608
|
-
text-overflow: ellipsis;
|
|
2609
|
-
white-space: nowrap;
|
|
2610
|
-
}
|
|
2611
|
-
.sp-link-url {
|
|
2612
|
-
overflow: hidden;
|
|
2613
|
-
color: var(--dpk-ink-faint);
|
|
2614
|
-
font-size: 11px;
|
|
2615
|
-
text-overflow: ellipsis;
|
|
2616
|
-
white-space: nowrap;
|
|
2617
|
-
}
|
|
2618
|
-
.sp-add-link {
|
|
2619
|
-
display: flex;
|
|
2620
|
-
gap: 6px;
|
|
2621
|
-
}
|
|
2622
|
-
.sp-add-link input {
|
|
2623
|
-
flex: 1 1 auto;
|
|
2624
|
-
min-width: 0;
|
|
2625
|
-
}
|
|
2626
|
-
.sp-add-link input[aria-invalid='true'] {
|
|
2627
|
-
border-color: var(--dpk-accent);
|
|
2628
|
-
box-shadow: 0 0 0 2px color-mix(in srgb, var(--dpk-accent) 22%, transparent);
|
|
2629
|
-
}
|
|
2630
|
-
/* The handoff dock floats at the bottom right, so the footer keeps left. */
|
|
2631
|
-
.sp-field h3 .sp-count {
|
|
2632
|
-
margin-left: 6px;
|
|
2633
|
-
font-family: var(--dpk-mono);
|
|
2634
|
-
letter-spacing: 0;
|
|
2635
|
-
}
|
|
2636
|
-
.sp-comment-list {
|
|
2637
|
-
display: grid;
|
|
2638
|
-
gap: 6px;
|
|
2639
|
-
margin: 0;
|
|
2640
|
-
padding: 0;
|
|
2641
|
-
list-style: none;
|
|
2642
|
-
}
|
|
2643
|
-
.sp-comment-list li {
|
|
2644
|
-
padding: 8px 11px;
|
|
2645
|
-
border-radius: var(--dpk-radius-sm);
|
|
2646
|
-
background: var(--dpk-paper-sunken);
|
|
2647
|
-
color: var(--dpk-ink);
|
|
2648
|
-
font-size: 12.5px;
|
|
2649
|
-
line-height: 1.6;
|
|
2650
|
-
white-space: pre-wrap;
|
|
2651
|
-
overflow-wrap: anywhere;
|
|
2652
|
-
}
|
|
2653
|
-
.sp-comment-form {
|
|
2654
|
-
display: grid;
|
|
2655
|
-
gap: 6px;
|
|
2656
|
-
}
|
|
2657
|
-
.sp-comment-form textarea {
|
|
2658
|
-
resize: vertical;
|
|
2659
|
-
min-height: 64px;
|
|
2660
|
-
}
|
|
2661
|
-
.sp-comment-actions {
|
|
2662
|
-
display: flex;
|
|
2663
|
-
justify-content: flex-end;
|
|
2664
|
-
}
|
|
2665
|
-
.sp-foot {
|
|
2666
|
-
display: flex;
|
|
2667
|
-
justify-content: flex-start;
|
|
2668
|
-
padding: 12px 22px;
|
|
2669
|
-
border-top: 1px solid var(--dpk-rule);
|
|
2670
|
-
}
|
|
2671
|
-
.sp-delete {
|
|
2672
|
-
display: inline-flex;
|
|
2673
|
-
align-items: center;
|
|
2674
|
-
gap: 6px;
|
|
2675
|
-
color: var(--dpk-ink-soft);
|
|
2676
|
-
}
|
|
2677
|
-
.sp-delete svg {
|
|
2678
|
-
width: 14px;
|
|
2679
|
-
height: 14px;
|
|
2680
|
-
}
|
|
2681
|
-
`,Er=e=>{const t=e.stories.length,a=i=>t===0?0:i/t,s=i=>e.stories.filter(r=>r.statusId===i).length;return{rows:e.statuses.map((i,r)=>{const d=s(i.id);return{id:i.id,name:i.name,tone:i.tone,icon:i.icon,progress:e.statuses.length<=1?1:r/(e.statuses.length-1),previousId:e.statuses[r-1]?.id??null,nextId:e.statuses[r+1]?.id??null,weight:r===e.statuses.length-1?null:Ot(i),storyCount:d,share:a(d)}})}},$r=V`
|
|
2682
|
-
:host {
|
|
2683
|
-
--dpk-usm-accent: var(--dpk-blue);
|
|
2684
|
-
}
|
|
2685
|
-
/*
|
|
2686
|
-
* A wide table must scroll inside itself and never widen the template shell.
|
|
2687
|
-
* It scrolls both ways so the backbone can stick to its top and the
|
|
2688
|
-
* milestone column to its left: a box that scrolls only sideways still
|
|
2689
|
-
* becomes the sticky ancestor, and its top would never move. Capped near the
|
|
2690
|
-
* viewport height, it fits under the board head (tabs and toolbar) once the page brings it up.
|
|
2691
|
-
*/
|
|
2692
|
-
.map-scroll {
|
|
2693
|
-
min-width: 0;
|
|
2694
|
-
max-width: 100%;
|
|
2695
|
-
max-height: max(320px, calc(100dvh - 218px));
|
|
2696
|
-
overflow: auto;
|
|
2697
|
-
overscroll-behavior-x: contain;
|
|
2698
|
-
border: 1px solid var(--dpk-rule);
|
|
2699
|
-
border-radius: var(--dpk-radius-lg);
|
|
2700
|
-
background: var(--dpk-paper-sunken);
|
|
2701
|
-
box-shadow: var(--dpk-shadow);
|
|
2702
|
-
}
|
|
2703
|
-
.map {
|
|
2704
|
-
display: grid;
|
|
2705
|
-
gap: 0;
|
|
2706
|
-
min-width: max-content;
|
|
2707
|
-
/* The map scrolls on its own: its last row clears the hand-off dock at the end of that scroll. */
|
|
2708
|
-
padding-bottom: var(--dpk-dock-clearance, 0px);
|
|
2709
|
-
}
|
|
2710
|
-
.map-row {
|
|
2711
|
-
display: grid;
|
|
2712
|
-
grid-template-columns: 140px repeat(var(--cols), minmax(180px, 240px));
|
|
2713
|
-
}
|
|
2714
|
-
.map-row + .map-row {
|
|
2715
|
-
border-top: 1px solid var(--dpk-rule);
|
|
2716
|
-
}
|
|
2717
|
-
|
|
2718
|
-
/* The backbone (activities and steps) stays at the top while the rows scroll. */
|
|
2719
|
-
.map-head {
|
|
2720
|
-
position: sticky;
|
|
2721
|
-
top: 0;
|
|
2722
|
-
z-index: 3;
|
|
2723
|
-
border-bottom: 1px solid var(--dpk-rule-strong);
|
|
2724
|
-
box-shadow: 0 8px 14px -12px var(--dpk-shade-3);
|
|
2725
|
-
}
|
|
2726
|
-
|
|
2727
|
-
/* The leading column (axis corners and milestone labels) stays at the left
|
|
2728
|
-
while the steps scroll sideways; it is opaque so cards pass under it. */
|
|
2729
|
-
.corner:first-child,
|
|
2730
|
-
.row-lead {
|
|
2731
|
-
position: sticky;
|
|
2732
|
-
left: 0;
|
|
2733
|
-
z-index: 2;
|
|
2734
|
-
box-shadow: 1px 0 0 var(--dpk-rule);
|
|
2735
|
-
}
|
|
2736
|
-
.row-lead {
|
|
2737
|
-
display: flex;
|
|
2738
|
-
flex-direction: column;
|
|
2739
|
-
align-items: flex-start;
|
|
2740
|
-
justify-content: center;
|
|
2741
|
-
gap: 2px;
|
|
2742
|
-
min-width: 0;
|
|
2743
|
-
padding: 8px 6px 8px 4px;
|
|
2744
|
-
background: var(--dpk-paper-sunken);
|
|
2745
|
-
}
|
|
2746
|
-
/* Row names and their meta line share one column: past the grip (15px), its
|
|
2747
|
-
gap (6px) and the inline edit's own padding (4px). */
|
|
2748
|
-
.row-lead {
|
|
2749
|
-
--usm-row-indent: 25px;
|
|
2750
|
-
}
|
|
2751
|
-
.row-meta {
|
|
2752
|
-
display: flex;
|
|
2753
|
-
flex-wrap: wrap;
|
|
2754
|
-
gap: 2px 8px;
|
|
2755
|
-
padding-left: var(--usm-row-indent);
|
|
2756
|
-
font-size: 10.5px;
|
|
2757
|
-
color: var(--dpk-ink-faint);
|
|
2758
|
-
}
|
|
2759
|
-
.row-timeframe {
|
|
2760
|
-
color: var(--dpk-ink-soft);
|
|
2761
|
-
font-weight: 600;
|
|
2762
|
-
}
|
|
2763
|
-
.row-count {
|
|
2764
|
-
font-family: var(--dpk-mono);
|
|
2765
|
-
font-variant-numeric: tabular-nums;
|
|
2766
|
-
}
|
|
2767
|
-
.corner,
|
|
2768
|
-
.act-head,
|
|
2769
|
-
.col-head,
|
|
2770
|
-
.row-head,
|
|
2771
|
-
.cell {
|
|
2772
|
-
padding: 10px;
|
|
2773
|
-
}
|
|
2774
|
-
.corner {
|
|
2775
|
-
background: var(--dpk-paper-sunken);
|
|
2776
|
-
display: grid;
|
|
2777
|
-
gap: 3px;
|
|
2778
|
-
align-content: start;
|
|
2779
|
-
}
|
|
2780
|
-
/* The backbone is read on every scroll, so its rows are kept short: the
|
|
2781
|
-
axis labels sit tight and the step names get a single slim line. */
|
|
2782
|
-
.map-head .corner {
|
|
2783
|
-
gap: 1px;
|
|
2784
|
-
padding: 7px 10px;
|
|
2785
|
-
line-height: 1.3;
|
|
2786
|
-
text-wrap: balance;
|
|
2787
|
-
}
|
|
2788
|
-
|
|
2789
|
-
/* Above the content: the page tabs (map / milestones) and, on the map, the
|
|
2790
|
-
unit toggle (group band vs one column per activity). */
|
|
2791
|
-
|
|
2792
|
-
/* The board bar and the map's toolbar stay on top together while a long
|
|
2793
|
-
milestone list or the map scrolls under them. */
|
|
2794
|
-
.board-head {
|
|
2795
|
-
position: sticky;
|
|
2796
|
-
top: 0;
|
|
2797
|
-
z-index: 5;
|
|
2798
|
-
margin: -24px -24px 0;
|
|
2799
|
-
background: var(--dpk-glass);
|
|
2800
|
-
backdrop-filter: saturate(1.6) blur(14px);
|
|
2801
|
-
min-width: 0;
|
|
2802
|
-
}
|
|
2803
|
-
|
|
2804
|
-
.board-bar {
|
|
2805
|
-
--usm-bar-pad: 6px;
|
|
2806
|
-
border-bottom: 1px solid var(--dpk-rule);
|
|
2807
|
-
padding: var(--usm-bar-pad) 24px;
|
|
2808
|
-
display: flex;
|
|
2809
|
-
flex-wrap: wrap;
|
|
2810
|
-
align-items: center;
|
|
2811
|
-
gap: 10px 14px;
|
|
2812
|
-
min-width: 0;
|
|
2813
|
-
}
|
|
2814
|
-
|
|
2815
|
-
/* The pages: an underlined tab strip, heavier than the view toggle. The
|
|
2816
|
-
tabs that do not fit fold behind the more button beside it (\`.page-nav\`);
|
|
2817
|
-
the bottom padding keeps the selected tab's underline, which sits on the
|
|
2818
|
-
bar's bottom rule, inside the clip. */
|
|
2819
|
-
.page-tabs {
|
|
2820
|
-
position: relative;
|
|
2821
|
-
display: inline-flex;
|
|
2822
|
-
gap: 4px;
|
|
2823
|
-
min-width: 0;
|
|
2824
|
-
margin-bottom: calc(-1 * var(--usm-bar-pad) - 1px);
|
|
2825
|
-
padding-bottom: calc(var(--usm-bar-pad) + 1px);
|
|
2826
|
-
overflow: hidden;
|
|
2827
|
-
}
|
|
2828
|
-
.page-tabs [role='tab'] {
|
|
2829
|
-
position: relative;
|
|
2830
|
-
display: inline-flex;
|
|
2831
|
-
align-items: center;
|
|
2832
|
-
gap: 8px;
|
|
2833
|
-
padding: 5px 10px;
|
|
2834
|
-
border-radius: var(--dpk-radius-sm);
|
|
2835
|
-
color: var(--dpk-ink-soft);
|
|
2836
|
-
font-size: 13.5px;
|
|
2837
|
-
font-weight: 600;
|
|
2838
|
-
letter-spacing: -0.005em;
|
|
2839
|
-
text-decoration: none;
|
|
2840
|
-
white-space: nowrap;
|
|
2841
|
-
transition:
|
|
2842
|
-
color 160ms var(--dpk-ease),
|
|
2843
|
-
background 160ms var(--dpk-ease);
|
|
2844
|
-
}
|
|
2845
|
-
.page-tabs [role='tab']:hover {
|
|
2846
|
-
color: var(--dpk-ink);
|
|
2847
|
-
background: var(--dpk-paper-inset);
|
|
2848
|
-
}
|
|
2849
|
-
.page-tabs [role='tab']:focus-visible {
|
|
2850
|
-
outline: none;
|
|
2851
|
-
box-shadow: var(--dpk-focus);
|
|
2852
|
-
}
|
|
2853
|
-
.page-tabs [role='tab'][aria-selected='true'] {
|
|
2854
|
-
color: var(--dpk-ink);
|
|
2855
|
-
font-weight: 700;
|
|
2856
|
-
}
|
|
2857
|
-
.page-tabs [role='tab'][aria-selected='true']::after {
|
|
2858
|
-
content: '';
|
|
2859
|
-
position: absolute;
|
|
2860
|
-
left: 10px;
|
|
2861
|
-
right: 10px;
|
|
2862
|
-
bottom: calc(-1 * var(--usm-bar-pad) - 1px);
|
|
2863
|
-
height: 2px;
|
|
2864
|
-
border-radius: 2px;
|
|
2865
|
-
background: var(--dpk-usm-accent);
|
|
2866
|
-
}
|
|
2867
|
-
.page-tab-count {
|
|
2868
|
-
min-width: 18px;
|
|
2869
|
-
padding: 0 6px;
|
|
2870
|
-
border-radius: 999px;
|
|
2871
|
-
background: var(--dpk-rule);
|
|
2872
|
-
color: var(--dpk-ink-soft);
|
|
2873
|
-
font-family: var(--dpk-mono);
|
|
2874
|
-
font-size: 10.5px;
|
|
2875
|
-
font-weight: 650;
|
|
2876
|
-
font-variant-numeric: tabular-nums;
|
|
2877
|
-
line-height: 17px;
|
|
2878
|
-
text-align: center;
|
|
2879
|
-
}
|
|
2880
|
-
[role='tab'][aria-selected='true'] .page-tab-count {
|
|
2881
|
-
background: var(--dpk-blue-soft);
|
|
2882
|
-
color: var(--dpk-blue);
|
|
2883
|
-
}
|
|
2884
|
-
|
|
2885
|
-
/* A sunken track with the selected segment raised on top of it. */
|
|
2886
|
-
.segmented {
|
|
2887
|
-
display: inline-flex;
|
|
2888
|
-
gap: 2px;
|
|
2889
|
-
padding: 2px;
|
|
2890
|
-
max-width: 100%;
|
|
2891
|
-
overflow-x: auto;
|
|
2892
|
-
scrollbar-width: none;
|
|
2893
|
-
border: 1px solid var(--dpk-rule);
|
|
2894
|
-
border-radius: 999px;
|
|
2895
|
-
background: var(--dpk-paper-sunken);
|
|
2896
|
-
box-shadow: inset 0 1px 3px var(--dpk-shade-1);
|
|
2897
|
-
}
|
|
2898
|
-
|
|
2899
|
-
.tab {
|
|
2900
|
-
padding: 4px 12px;
|
|
2901
|
-
border-radius: 999px;
|
|
2902
|
-
font-size: 12px;
|
|
2903
|
-
font-weight: 550;
|
|
2904
|
-
text-decoration: none;
|
|
2905
|
-
color: var(--dpk-ink-soft);
|
|
2906
|
-
white-space: nowrap;
|
|
2907
|
-
transition:
|
|
2908
|
-
background 160ms var(--dpk-ease),
|
|
2909
|
-
color 160ms var(--dpk-ease),
|
|
2910
|
-
box-shadow 160ms var(--dpk-ease);
|
|
2911
|
-
}
|
|
2912
|
-
|
|
2913
|
-
.tab:hover {
|
|
2914
|
-
color: var(--dpk-ink);
|
|
2915
|
-
background: var(--dpk-paper-inset);
|
|
2916
|
-
}
|
|
2917
|
-
|
|
2918
|
-
.tab[data-current='true'] {
|
|
2919
|
-
background: var(--dpk-paper-raised);
|
|
2920
|
-
color: var(--dpk-ink);
|
|
2921
|
-
font-weight: 650;
|
|
2922
|
-
box-shadow: var(--dpk-bevel), var(--dpk-shadow-xs);
|
|
2923
|
-
}
|
|
2924
|
-
|
|
2925
|
-
/* Activity band: raised above the working canvas. A head spans its steps,
|
|
2926
|
-
so its contents stay in view beside the sticky column while the map
|
|
2927
|
-
scrolls sideways. */
|
|
2928
|
-
.act-head {
|
|
2929
|
-
position: relative;
|
|
2930
|
-
display: grid;
|
|
2931
|
-
align-content: start;
|
|
2932
|
-
gap: 4px;
|
|
2933
|
-
padding: 7px 10px 11px;
|
|
2934
|
-
border-left: 1px solid var(--dpk-rule);
|
|
2935
|
-
background: var(--dpk-paper-raised);
|
|
2936
|
-
box-shadow:
|
|
2937
|
-
var(--dpk-bevel),
|
|
2938
|
-
inset 0 -1px 0 var(--dpk-rule-strong);
|
|
2939
|
-
font-size: 13px;
|
|
2940
|
-
font-weight: 650;
|
|
2941
|
-
letter-spacing: -0.005em;
|
|
2942
|
-
}
|
|
2943
|
-
.act-title,
|
|
2944
|
-
.act-steps {
|
|
2945
|
-
position: sticky;
|
|
2946
|
-
left: 150px;
|
|
2947
|
-
width: min(100%, 340px);
|
|
2948
|
-
min-width: 0;
|
|
2949
|
-
}
|
|
2950
|
-
.act-title {
|
|
2951
|
-
display: flex;
|
|
2952
|
-
align-items: center;
|
|
2953
|
-
gap: 8px;
|
|
2954
|
-
}
|
|
2955
|
-
/* The name keeps its whole line while it fits; the actor beside it gives
|
|
2956
|
-
way (truncates) first, down to an ellipsis. */
|
|
2957
|
-
.act-name {
|
|
2958
|
-
display: flex;
|
|
2959
|
-
flex: 1 1 auto;
|
|
2960
|
-
align-items: center;
|
|
2961
|
-
gap: 8px;
|
|
2962
|
-
min-width: 0;
|
|
2963
|
-
}
|
|
2964
|
-
.act-name > dpk-component-inline-edit {
|
|
2965
|
-
flex: none;
|
|
2966
|
-
max-width: calc(100% - 32px);
|
|
2967
|
-
}
|
|
2968
|
-
/* How far the group's stories have come: a strip along the head's bottom
|
|
2969
|
-
edge, as wide as the steps it spans, so it costs the band no line. */
|
|
2970
|
-
.act-head > .status-bar {
|
|
2971
|
-
position: absolute;
|
|
2972
|
-
left: 0;
|
|
2973
|
-
right: 0;
|
|
2974
|
-
bottom: 0;
|
|
2975
|
-
height: 4px;
|
|
2976
|
-
gap: 1px;
|
|
2977
|
-
}
|
|
2978
|
-
.act-head > .status-bar .status-bar-part {
|
|
2979
|
-
border-radius: 0;
|
|
2980
|
-
}
|
|
2981
|
-
/* Whose experience the activity is: a label beside the name, editable in place. */
|
|
2982
|
-
.act-actor {
|
|
2983
|
-
display: flex;
|
|
2984
|
-
flex: 0 1 auto;
|
|
2985
|
-
min-width: 24px;
|
|
2986
|
-
max-width: 60%;
|
|
2987
|
-
padding: 0 4px;
|
|
2988
|
-
border-radius: 999px;
|
|
2989
|
-
background: var(--dpk-blue-soft);
|
|
2990
|
-
color: var(--dpk-blue);
|
|
2991
|
-
font-size: 11px;
|
|
2992
|
-
font-weight: 650;
|
|
2993
|
-
line-height: 20px;
|
|
2994
|
-
}
|
|
2995
|
-
.act-actor > dpk-component-inline-edit {
|
|
2996
|
-
min-width: 0;
|
|
2997
|
-
}
|
|
2998
|
-
.act-actor[data-empty='true'] {
|
|
2999
|
-
background: transparent;
|
|
3000
|
-
opacity: 0;
|
|
3001
|
-
transition: opacity 150ms ease;
|
|
3002
|
-
}
|
|
3003
|
-
.act-head:hover .act-actor[data-empty='true'],
|
|
3004
|
-
.act-actor[data-empty='true']:focus-within {
|
|
3005
|
-
opacity: 1;
|
|
3006
|
-
}
|
|
3007
|
-
/* The group view gives the steps no columns; the head lists them instead. */
|
|
3008
|
-
.act-steps {
|
|
3009
|
-
display: grid;
|
|
3010
|
-
gap: 3px;
|
|
3011
|
-
margin: 0;
|
|
3012
|
-
padding: 0 0 0 18px;
|
|
3013
|
-
color: var(--dpk-ink-soft);
|
|
3014
|
-
font-size: 11.5px;
|
|
3015
|
-
font-weight: 500;
|
|
3016
|
-
line-height: 1.45;
|
|
3017
|
-
}
|
|
3018
|
-
.act-steps li::marker {
|
|
3019
|
-
color: var(--dpk-ink-faint);
|
|
3020
|
-
font-family: var(--dpk-mono);
|
|
3021
|
-
font-size: 10px;
|
|
3022
|
-
}
|
|
3023
|
-
.act-head .count,
|
|
3024
|
-
.col-head .count {
|
|
3025
|
-
flex: 0 0 auto;
|
|
3026
|
-
padding: 0 6px;
|
|
3027
|
-
border-radius: 999px;
|
|
3028
|
-
background: var(--dpk-rule);
|
|
3029
|
-
line-height: 16px;
|
|
3030
|
-
}
|
|
3031
|
-
.col-head {
|
|
3032
|
-
display: flex;
|
|
3033
|
-
align-items: center;
|
|
3034
|
-
gap: 6px;
|
|
3035
|
-
padding-block: 5px;
|
|
3036
|
-
border-left: 1px solid var(--dpk-rule);
|
|
3037
|
-
background: var(--dpk-paper-sunken);
|
|
3038
|
-
transition: background 160ms var(--dpk-ease);
|
|
3039
|
-
}
|
|
3040
|
-
.col-head h4 {
|
|
3041
|
-
flex: 1 1 auto;
|
|
3042
|
-
min-width: 0;
|
|
3043
|
-
}
|
|
3044
|
-
.col-head[data-current='true'] {
|
|
3045
|
-
background: color-mix(in srgb, var(--dpk-usm-accent) 8%, var(--dpk-paper-sunken));
|
|
3046
|
-
}
|
|
3047
|
-
.col-head h4 {
|
|
3048
|
-
font-size: 13px;
|
|
3049
|
-
font-weight: 600;
|
|
3050
|
-
margin: 0;
|
|
3051
|
-
}
|
|
3052
|
-
|
|
3053
|
-
.row-head {
|
|
3054
|
-
display: flex;
|
|
3055
|
-
align-items: center;
|
|
3056
|
-
gap: 6px;
|
|
3057
|
-
}
|
|
3058
|
-
|
|
3059
|
-
/* Milestone row label: plain text with a grip, not a chip. The "add
|
|
3060
|
-
milestone" row reuses \`.row-head\` for its ghost button. */
|
|
3061
|
-
.row-head[data-milestone] {
|
|
3062
|
-
align-self: stretch;
|
|
3063
|
-
margin: 0;
|
|
3064
|
-
padding: 0 6px 0 0;
|
|
3065
|
-
color: var(--dpk-ink);
|
|
3066
|
-
font-size: 12.5px;
|
|
3067
|
-
font-weight: 650;
|
|
3068
|
-
max-width: 100%;
|
|
3069
|
-
}
|
|
3070
|
-
|
|
3071
|
-
.row-head[draggable='true'] {
|
|
3072
|
-
cursor: grab;
|
|
3073
|
-
-webkit-user-select: none;
|
|
3074
|
-
user-select: none;
|
|
3075
|
-
}
|
|
3076
|
-
|
|
3077
|
-
.row-head[draggable='true'] dpk-component-inline-edit {
|
|
3078
|
-
-webkit-user-drag: none;
|
|
3079
|
-
}
|
|
3080
|
-
|
|
3081
|
-
.row-head[draggable='true']:active {
|
|
3082
|
-
cursor: grabbing;
|
|
3083
|
-
}
|
|
3084
|
-
|
|
3085
|
-
.row-grip {
|
|
3086
|
-
flex: 0 0 auto;
|
|
3087
|
-
display: inline-flex;
|
|
3088
|
-
color: var(--dpk-ink-faint);
|
|
3089
|
-
}
|
|
3090
|
-
|
|
3091
|
-
.row-grip svg {
|
|
3092
|
-
display: block;
|
|
3093
|
-
width: 15px;
|
|
3094
|
-
height: 15px;
|
|
3095
|
-
}
|
|
3096
|
-
|
|
3097
|
-
/* Row-level drag affordance: only the grip answers the hover. */
|
|
3098
|
-
.map-row[data-draggable='true']:hover .row-grip {
|
|
3099
|
-
color: var(--dpk-blue);
|
|
3100
|
-
}
|
|
3101
|
-
.map-row[data-draggable='true'] {
|
|
3102
|
-
cursor: grab;
|
|
3103
|
-
}
|
|
3104
|
-
.map-row[data-draggable='true']:active {
|
|
3105
|
-
cursor: grabbing;
|
|
3106
|
-
}
|
|
3107
|
-
|
|
3108
|
-
/*
|
|
3109
|
-
* Dragging state: entire row fades. Never disable pointer events on the
|
|
3110
|
-
* source here: Lit applies this state in the microtask right after
|
|
3111
|
-
* \`dragstart\`, and Blink then re-hit-tests the pointer and aborts the drag
|
|
3112
|
-
* when the source is no longer under it.
|
|
3113
|
-
*/
|
|
3114
|
-
.map-row[data-row-dragging='true'] {
|
|
3115
|
-
opacity: 0.45;
|
|
3116
|
-
}
|
|
3117
|
-
|
|
3118
|
-
/* Drop target: entire row highlights. */
|
|
3119
|
-
.map-row[data-row-drop='true'] {
|
|
3120
|
-
outline: 2px dashed var(--dpk-blue);
|
|
3121
|
-
outline-offset: -2px;
|
|
3122
|
-
}
|
|
3123
|
-
|
|
3124
|
-
/* Column drag: a group's head or a step's head is its column's handle, the
|
|
3125
|
-
way a row head is a milestone's. The grip answers the hover. */
|
|
3126
|
-
.act-head[draggable='true'],
|
|
3127
|
-
.col-head[draggable='true'] {
|
|
3128
|
-
cursor: grab;
|
|
3129
|
-
-webkit-user-select: none;
|
|
3130
|
-
user-select: none;
|
|
3131
|
-
}
|
|
3132
|
-
.act-head[draggable='true']:active,
|
|
3133
|
-
.col-head[draggable='true']:active {
|
|
3134
|
-
cursor: grabbing;
|
|
3135
|
-
}
|
|
3136
|
-
.act-head[draggable='true'] dpk-component-inline-edit,
|
|
3137
|
-
.col-head[draggable='true'] dpk-component-inline-edit {
|
|
3138
|
-
-webkit-user-drag: none;
|
|
3139
|
-
}
|
|
3140
|
-
.col-grip {
|
|
3141
|
-
flex: none;
|
|
3142
|
-
display: inline-flex;
|
|
3143
|
-
color: var(--dpk-ink-faint);
|
|
3144
|
-
}
|
|
3145
|
-
.col-grip svg {
|
|
3146
|
-
display: block;
|
|
3147
|
-
width: 13px;
|
|
3148
|
-
height: 13px;
|
|
3149
|
-
}
|
|
3150
|
-
.act-head[draggable='true']:hover .col-grip,
|
|
3151
|
-
.col-head[draggable='true']:hover .col-grip {
|
|
3152
|
-
color: var(--dpk-blue);
|
|
3153
|
-
}
|
|
3154
|
-
/* The dragged column fades from head to last cell, like a dragged row. */
|
|
3155
|
-
.act-head[data-col-dragging='true'],
|
|
3156
|
-
.col-head[data-col-dragging='true'],
|
|
3157
|
-
.cell[data-col-dragging='true'] {
|
|
3158
|
-
opacity: 0.45;
|
|
3159
|
-
}
|
|
3160
|
-
/* The column a dragged one would land in lights up from head to last cell,
|
|
3161
|
-
the way a row does: its sides run down every part and its head caps it.
|
|
3162
|
-
A group's column spans its steps, so only its outer steps draw its sides. */
|
|
3163
|
-
.act-head:is([data-col-drop='activity'], [data-col-drop='step']),
|
|
3164
|
-
.col-head:is([data-col-drop='activity'], [data-col-drop='step']),
|
|
3165
|
-
.cell:is([data-col-drop='activity'], [data-col-drop='step']) {
|
|
3166
|
-
--usm-col-left: 2px;
|
|
3167
|
-
--usm-col-right: 2px;
|
|
3168
|
-
--usm-col-top: 0px;
|
|
3169
|
-
box-shadow:
|
|
3170
|
-
inset var(--usm-col-left) 0 0 var(--dpk-blue),
|
|
3171
|
-
inset calc(var(--usm-col-right) * -1) 0 0 var(--dpk-blue),
|
|
3172
|
-
inset 0 var(--usm-col-top) 0 var(--dpk-blue);
|
|
3173
|
-
}
|
|
3174
|
-
[data-col-drop='activity'][data-step-edge]:not([data-step-edge~='first']) {
|
|
3175
|
-
--usm-col-left: 0px;
|
|
3176
|
-
}
|
|
3177
|
-
[data-col-drop='activity'][data-step-edge]:not([data-step-edge~='last']) {
|
|
3178
|
-
--usm-col-right: 0px;
|
|
3179
|
-
}
|
|
3180
|
-
.act-head[data-col-drop='activity'],
|
|
3181
|
-
.col-head[data-col-drop='step'] {
|
|
3182
|
-
--usm-col-top: 2px;
|
|
3183
|
-
}
|
|
3184
|
-
.cell:is([data-col-drop='activity'], [data-col-drop='step']) {
|
|
3185
|
-
background: linear-gradient(var(--dpk-blue-soft), var(--dpk-blue-soft)), var(--dpk-dots), var(--dpk-paper-sunken);
|
|
3186
|
-
}
|
|
3187
|
-
/* The heads stay opaque: the cells scroll under them. */
|
|
3188
|
-
.act-head:is([data-col-drop='activity'], [data-col-drop='step']),
|
|
3189
|
-
.col-head:is([data-col-drop='activity'], [data-col-drop='step']) {
|
|
3190
|
-
background-image: linear-gradient(var(--dpk-blue-soft), var(--dpk-blue-soft));
|
|
3191
|
-
}
|
|
3192
|
-
|
|
3193
|
-
/* Unassigned is a holding area, not a release: its label is quieter. */
|
|
3194
|
-
.map-row[data-unassigned='true'] .row-head {
|
|
3195
|
-
padding-left: var(--usm-row-indent);
|
|
3196
|
-
color: var(--dpk-ink-soft);
|
|
3197
|
-
}
|
|
3198
|
-
|
|
3199
|
-
/* Cells are the working canvas: sunken, with a quiet dot lattice, so raised
|
|
3200
|
-
story cards read as things placed on the board. */
|
|
3201
|
-
.cell {
|
|
3202
|
-
border-left: 1px solid var(--dpk-rule);
|
|
3203
|
-
border-top: 1px solid var(--dpk-rule);
|
|
3204
|
-
display: flex;
|
|
3205
|
-
flex-direction: column;
|
|
3206
|
-
gap: 8px;
|
|
3207
|
-
min-height: 100px;
|
|
3208
|
-
background: var(--dpk-dots), var(--dpk-paper-sunken);
|
|
3209
|
-
transition: background 160ms var(--dpk-ease);
|
|
3210
|
-
}
|
|
3211
|
-
.cell[data-drop='true'] {
|
|
3212
|
-
outline: 2px dashed var(--dpk-blue);
|
|
3213
|
-
outline-offset: -2px;
|
|
3214
|
-
}
|
|
3215
|
-
.card-list {
|
|
3216
|
-
display: grid;
|
|
3217
|
-
gap: 10px;
|
|
3218
|
-
align-content: start;
|
|
3219
|
-
flex: 1 1 auto;
|
|
3220
|
-
}
|
|
3221
|
-
.add-cell {
|
|
3222
|
-
margin-top: auto;
|
|
3223
|
-
opacity: 0;
|
|
3224
|
-
transition:
|
|
3225
|
-
opacity 180ms var(--dpk-ease),
|
|
3226
|
-
background 160ms var(--dpk-ease),
|
|
3227
|
-
border-color 160ms var(--dpk-ease),
|
|
3228
|
-
color 160ms var(--dpk-ease);
|
|
3229
|
-
border: 1px dashed var(--dpk-rule-strong);
|
|
3230
|
-
border-radius: var(--dpk-radius-sm);
|
|
3231
|
-
background: transparent;
|
|
3232
|
-
color: var(--dpk-ink-faint);
|
|
3233
|
-
padding: 4px 8px;
|
|
3234
|
-
font-size: 11.5px;
|
|
3235
|
-
}
|
|
3236
|
-
.add-cell:hover {
|
|
3237
|
-
background: var(--dpk-blue-soft);
|
|
3238
|
-
border-color: var(--dpk-blue);
|
|
3239
|
-
color: var(--dpk-blue);
|
|
3240
|
-
}
|
|
3241
|
-
.cell:hover .add-cell {
|
|
3242
|
-
opacity: 1;
|
|
3243
|
-
}
|
|
3244
|
-
.empty {
|
|
3245
|
-
border: 1px dashed var(--dpk-rule-strong);
|
|
3246
|
-
border-radius: var(--dpk-radius-lg);
|
|
3247
|
-
padding: 28px 24px;
|
|
3248
|
-
background: var(--dpk-dots), var(--dpk-paper-sunken);
|
|
3249
|
-
max-width: 620px;
|
|
3250
|
-
display: grid;
|
|
3251
|
-
gap: 10px;
|
|
3252
|
-
}
|
|
3253
|
-
.count {
|
|
3254
|
-
font-family: var(--dpk-mono);
|
|
3255
|
-
font-variant-numeric: tabular-nums;
|
|
3256
|
-
font-size: 10px;
|
|
3257
|
-
color: var(--dpk-ink-faint);
|
|
3258
|
-
}
|
|
3259
|
-
|
|
3260
|
-
/* ------------------------------------------------------ milestones tab */
|
|
3261
|
-
|
|
3262
|
-
/* The release slices as a timeline, like the experience section of a
|
|
3263
|
-
portfolio: when on the left, one node per slice on a single rail, what
|
|
3264
|
-
and how big on the right. Nothing is boxed; the rail carries the order. */
|
|
3265
|
-
.ms-overview {
|
|
3266
|
-
--ms-node: 30px;
|
|
3267
|
-
--ms-when: 132px;
|
|
3268
|
-
--ms-gap: 44px;
|
|
3269
|
-
display: grid;
|
|
3270
|
-
gap: 28px;
|
|
3271
|
-
max-width: 920px;
|
|
3272
|
-
padding: 28px 0 40px;
|
|
3273
|
-
}
|
|
3274
|
-
.ms-timeline {
|
|
3275
|
-
margin: 0;
|
|
3276
|
-
padding: 0;
|
|
3277
|
-
list-style: none;
|
|
3278
|
-
}
|
|
3279
|
-
.ms-entry,
|
|
3280
|
-
.ms-add {
|
|
3281
|
-
display: grid;
|
|
3282
|
-
grid-template-columns: var(--ms-when) var(--ms-node) minmax(0, 1fr);
|
|
3283
|
-
grid-template-areas: 'when rail body';
|
|
3284
|
-
column-gap: 24px;
|
|
3285
|
-
}
|
|
3286
|
-
.ms-entry {
|
|
3287
|
-
padding-bottom: var(--ms-gap);
|
|
3288
|
-
}
|
|
3289
|
-
.ms-when {
|
|
3290
|
-
grid-area: when;
|
|
3291
|
-
display: flex;
|
|
3292
|
-
justify-content: flex-end;
|
|
3293
|
-
padding-top: 5px;
|
|
3294
|
-
}
|
|
3295
|
-
.ms-timeframe {
|
|
3296
|
-
color: var(--dpk-ink);
|
|
3297
|
-
font-size: 13px;
|
|
3298
|
-
font-weight: 650;
|
|
3299
|
-
font-variant-numeric: tabular-nums;
|
|
3300
|
-
letter-spacing: 0.01em;
|
|
3301
|
-
text-align: right;
|
|
3302
|
-
}
|
|
3303
|
-
.ms-timeframe[data-empty='true'] {
|
|
3304
|
-
color: var(--dpk-ink-faint);
|
|
3305
|
-
font-weight: 500;
|
|
3306
|
-
}
|
|
3307
|
-
|
|
3308
|
-
/* The rail runs through every entry's padding, so the nodes read as one line;
|
|
3309
|
-
it starts at the first node and fades out into the add node. */
|
|
3310
|
-
.ms-rail {
|
|
3311
|
-
grid-area: rail;
|
|
3312
|
-
position: relative;
|
|
3313
|
-
display: flex;
|
|
3314
|
-
justify-content: center;
|
|
3315
|
-
}
|
|
3316
|
-
.ms-rail::before {
|
|
3317
|
-
content: '';
|
|
3318
|
-
position: absolute;
|
|
3319
|
-
top: 0;
|
|
3320
|
-
bottom: calc(-1 * var(--ms-gap));
|
|
3321
|
-
left: calc(50% - 1px);
|
|
3322
|
-
width: 2px;
|
|
3323
|
-
border-radius: 1px;
|
|
3324
|
-
background: var(--dpk-rule-strong);
|
|
3325
|
-
}
|
|
3326
|
-
.ms-entry:first-child .ms-rail::before {
|
|
3327
|
-
top: calc(var(--ms-node) / 2);
|
|
3328
|
-
}
|
|
3329
|
-
.ms-add .ms-rail::before {
|
|
3330
|
-
bottom: auto;
|
|
3331
|
-
height: calc(var(--ms-node) / 2);
|
|
3332
|
-
background: repeating-linear-gradient(to bottom, var(--dpk-rule-strong) 0 3px, transparent 3px 7px);
|
|
3333
|
-
}
|
|
3334
|
-
.ms-node {
|
|
3335
|
-
position: relative;
|
|
3336
|
-
display: grid;
|
|
3337
|
-
place-items: center;
|
|
3338
|
-
width: var(--ms-node);
|
|
3339
|
-
height: var(--ms-node);
|
|
3340
|
-
box-sizing: border-box;
|
|
3341
|
-
border: 1px solid var(--dpk-rule-strong);
|
|
3342
|
-
border-radius: 50%;
|
|
3343
|
-
background: var(--dpk-paper-raised);
|
|
3344
|
-
color: var(--dpk-ink);
|
|
3345
|
-
font-family: var(--dpk-mono);
|
|
3346
|
-
font-size: 12px;
|
|
3347
|
-
font-weight: 700;
|
|
3348
|
-
font-variant-numeric: tabular-nums;
|
|
3349
|
-
/* A ring of page color cuts the rail around the node. */
|
|
3350
|
-
box-shadow:
|
|
3351
|
-
0 0 0 5px var(--dpk-paper),
|
|
3352
|
-
var(--dpk-bevel),
|
|
3353
|
-
var(--dpk-shadow-xs);
|
|
3354
|
-
transition:
|
|
3355
|
-
border-color 160ms var(--dpk-ease),
|
|
3356
|
-
color 160ms var(--dpk-ease);
|
|
3357
|
-
}
|
|
3358
|
-
.ms-entry:hover .ms-node,
|
|
3359
|
-
.ms-entry:focus-within .ms-node {
|
|
3360
|
-
border-color: var(--dpk-blue);
|
|
3361
|
-
color: var(--dpk-blue-strong);
|
|
3362
|
-
}
|
|
3363
|
-
.ms-node--add {
|
|
3364
|
-
border-style: dashed;
|
|
3365
|
-
background: var(--dpk-paper);
|
|
3366
|
-
box-shadow: 0 0 0 5px var(--dpk-paper);
|
|
3367
|
-
}
|
|
3368
|
-
.ms-node--add::before,
|
|
3369
|
-
.ms-node--add::after {
|
|
3370
|
-
content: '';
|
|
3371
|
-
position: absolute;
|
|
3372
|
-
left: 50%;
|
|
3373
|
-
top: 50%;
|
|
3374
|
-
width: 10px;
|
|
3375
|
-
height: 1.5px;
|
|
3376
|
-
border-radius: 1px;
|
|
3377
|
-
background: var(--dpk-ink-faint);
|
|
3378
|
-
transform: translate(-50%, -50%);
|
|
3379
|
-
}
|
|
3380
|
-
.ms-node--add::after {
|
|
3381
|
-
transform: translate(-50%, -50%) rotate(90deg);
|
|
3382
|
-
}
|
|
3383
|
-
.ms-add .ms-body {
|
|
3384
|
-
display: flex;
|
|
3385
|
-
align-items: center;
|
|
3386
|
-
min-height: var(--ms-node);
|
|
3387
|
-
}
|
|
3388
|
-
/* The label lines up with the names above; the button's padding hangs out. */
|
|
3389
|
-
.ms-add .dpk-btn {
|
|
3390
|
-
margin-left: -12px;
|
|
3391
|
-
}
|
|
3392
|
-
|
|
3393
|
-
.ms-body {
|
|
3394
|
-
grid-area: body;
|
|
3395
|
-
display: grid;
|
|
3396
|
-
gap: 10px;
|
|
3397
|
-
min-width: 0;
|
|
3398
|
-
justify-items: start;
|
|
3399
|
-
}
|
|
3400
|
-
.ms-name {
|
|
3401
|
-
justify-self: stretch;
|
|
3402
|
-
min-width: 0;
|
|
3403
|
-
margin: 0;
|
|
3404
|
-
padding-top: 1px;
|
|
3405
|
-
font-size: 19px;
|
|
3406
|
-
font-weight: 700;
|
|
3407
|
-
line-height: 1.4;
|
|
3408
|
-
letter-spacing: -0.015em;
|
|
3409
|
-
}
|
|
3410
|
-
/* The field pads its text by 4px; pull it out by as much so the name lines
|
|
3411
|
-
up with the description and keeps its place when editing starts. */
|
|
3412
|
-
.ms-name dpk-component-inline-edit {
|
|
3413
|
-
display: block;
|
|
3414
|
-
margin: 0 -4px;
|
|
3415
|
-
}
|
|
3416
|
-
.ms-description {
|
|
3417
|
-
margin: 0;
|
|
3418
|
-
max-width: 64ch;
|
|
3419
|
-
color: var(--dpk-ink-soft);
|
|
3420
|
-
font-size: 14px;
|
|
3421
|
-
line-height: 1.75;
|
|
3422
|
-
white-space: pre-wrap;
|
|
3423
|
-
}
|
|
3424
|
-
.ms-description[data-empty='true'] {
|
|
3425
|
-
color: var(--dpk-ink-faint);
|
|
3426
|
-
font-size: 13px;
|
|
3427
|
-
}
|
|
3428
|
-
.ms-facts {
|
|
3429
|
-
display: flex;
|
|
3430
|
-
flex-wrap: wrap;
|
|
3431
|
-
gap: 10px 36px;
|
|
3432
|
-
margin: 6px 0 0;
|
|
3433
|
-
}
|
|
3434
|
-
.ms-facts dt {
|
|
3435
|
-
margin-bottom: 3px;
|
|
3436
|
-
color: var(--dpk-ink-faint);
|
|
3437
|
-
font-size: 11px;
|
|
3438
|
-
font-weight: 600;
|
|
3439
|
-
letter-spacing: 0.02em;
|
|
3440
|
-
}
|
|
3441
|
-
.ms-facts dd {
|
|
3442
|
-
display: flex;
|
|
3443
|
-
align-items: center;
|
|
3444
|
-
gap: 10px;
|
|
3445
|
-
margin: 0;
|
|
3446
|
-
color: var(--dpk-ink-faint);
|
|
3447
|
-
font-size: 12px;
|
|
3448
|
-
}
|
|
3449
|
-
.ms-facts strong {
|
|
3450
|
-
color: var(--dpk-ink);
|
|
3451
|
-
font-size: 15px;
|
|
3452
|
-
font-weight: 650;
|
|
3453
|
-
font-variant-numeric: tabular-nums;
|
|
3454
|
-
}
|
|
3455
|
-
.ms-meter {
|
|
3456
|
-
display: block;
|
|
3457
|
-
width: 72px;
|
|
3458
|
-
height: 4px;
|
|
3459
|
-
border-radius: 2px;
|
|
3460
|
-
background: var(--dpk-paper-inset);
|
|
3461
|
-
overflow: hidden;
|
|
3462
|
-
}
|
|
3463
|
-
.ms-meter > span {
|
|
3464
|
-
display: block;
|
|
3465
|
-
height: 100%;
|
|
3466
|
-
border-radius: inherit;
|
|
3467
|
-
background: var(--dpk-blue);
|
|
3468
|
-
}
|
|
3469
|
-
|
|
3470
|
-
/* Where the slice's stories sit across the backbone, in activity tones. */
|
|
3471
|
-
.ms-breakdown {
|
|
3472
|
-
display: grid;
|
|
3473
|
-
gap: 10px;
|
|
3474
|
-
width: min(100%, 460px);
|
|
3475
|
-
margin-top: 4px;
|
|
3476
|
-
}
|
|
3477
|
-
.ms-breakdown .status-bar {
|
|
3478
|
-
height: 8px;
|
|
3479
|
-
}
|
|
3480
|
-
.ms-legend {
|
|
3481
|
-
display: flex;
|
|
3482
|
-
flex-wrap: wrap;
|
|
3483
|
-
gap: 6px 16px;
|
|
3484
|
-
margin: 0;
|
|
3485
|
-
padding: 0;
|
|
3486
|
-
list-style: none;
|
|
3487
|
-
}
|
|
3488
|
-
.ms-legend li {
|
|
3489
|
-
display: inline-flex;
|
|
3490
|
-
align-items: center;
|
|
3491
|
-
gap: 6px;
|
|
3492
|
-
color: var(--dpk-ink-soft);
|
|
3493
|
-
font-size: 12px;
|
|
3494
|
-
}
|
|
3495
|
-
.ms-breakdown-count {
|
|
3496
|
-
color: var(--dpk-ink-faint);
|
|
3497
|
-
font-family: var(--dpk-mono);
|
|
3498
|
-
font-size: 11px;
|
|
3499
|
-
font-variant-numeric: tabular-nums;
|
|
3500
|
-
}
|
|
3501
|
-
|
|
3502
|
-
/* Narrow: the date moves above the name, the rail stays on the left. */
|
|
3503
|
-
@media (max-width: 640px) {
|
|
3504
|
-
.ms-overview {
|
|
3505
|
-
--ms-node: 26px;
|
|
3506
|
-
}
|
|
3507
|
-
.ms-entry,
|
|
3508
|
-
.ms-add {
|
|
3509
|
-
grid-template-columns: var(--ms-node) minmax(0, 1fr);
|
|
3510
|
-
grid-template-areas:
|
|
3511
|
-
'rail when'
|
|
3512
|
-
'rail body';
|
|
3513
|
-
column-gap: 16px;
|
|
3514
|
-
}
|
|
3515
|
-
.ms-add {
|
|
3516
|
-
grid-template-areas: 'rail body';
|
|
3517
|
-
}
|
|
3518
|
-
.ms-add .ms-when {
|
|
3519
|
-
display: none;
|
|
3520
|
-
}
|
|
3521
|
-
.ms-when {
|
|
3522
|
-
justify-content: flex-start;
|
|
3523
|
-
padding: 4px 0 2px;
|
|
3524
|
-
}
|
|
3525
|
-
.ms-timeframe {
|
|
3526
|
-
text-align: left;
|
|
3527
|
-
}
|
|
3528
|
-
}
|
|
3529
|
-
|
|
3530
|
-
/* ------------------------------------------------------- statuses tab */
|
|
3531
|
-
|
|
3532
|
-
/* The statuses in order, one row each: color, name, how many stories stand
|
|
3533
|
-
there, the palette to recolor it, and the order / delete tools. */
|
|
3534
|
-
.st-overview {
|
|
3535
|
-
display: grid;
|
|
3536
|
-
gap: 20px;
|
|
3537
|
-
max-width: 1040px;
|
|
3538
|
-
padding: 28px 0 40px;
|
|
3539
|
-
}
|
|
3540
|
-
.st-list {
|
|
3541
|
-
display: grid;
|
|
3542
|
-
margin: 0;
|
|
3543
|
-
padding: 0;
|
|
3544
|
-
list-style: none;
|
|
3545
|
-
border: 1px solid var(--dpk-rule);
|
|
3546
|
-
border-radius: var(--dpk-radius-lg);
|
|
3547
|
-
background: var(--dpk-paper-raised);
|
|
3548
|
-
box-shadow: var(--dpk-shadow-xs);
|
|
3549
|
-
}
|
|
3550
|
-
.st-row {
|
|
3551
|
-
display: grid;
|
|
3552
|
-
/* Fixed tool columns keep the unset row, which has no tools, in line. */
|
|
3553
|
-
grid-template-columns: 16px minmax(120px, 1fr) minmax(140px, 200px) 150px 84px;
|
|
3554
|
-
align-items: center;
|
|
3555
|
-
gap: 14px;
|
|
3556
|
-
padding: 12px 16px;
|
|
3557
|
-
}
|
|
3558
|
-
/* A status also has the weight of the step to the next one. */
|
|
3559
|
-
.st-row--weighted {
|
|
3560
|
-
grid-template-columns: 16px minmax(120px, 1fr) minmax(140px, 200px) 96px 150px 84px;
|
|
3561
|
-
}
|
|
3562
|
-
.st-weight {
|
|
3563
|
-
display: grid;
|
|
3564
|
-
gap: 3px;
|
|
3565
|
-
}
|
|
3566
|
-
.st-weight-label {
|
|
3567
|
-
color: var(--dpk-ink-faint);
|
|
3568
|
-
font-size: 10.5px;
|
|
3569
|
-
font-weight: 600;
|
|
3570
|
-
letter-spacing: 0.02em;
|
|
3571
|
-
}
|
|
3572
|
-
.st-weight .dpk-input {
|
|
3573
|
-
width: 100%;
|
|
3574
|
-
min-height: 28px;
|
|
3575
|
-
padding: 3px 8px;
|
|
3576
|
-
font-family: var(--dpk-mono);
|
|
3577
|
-
font-size: 12px;
|
|
3578
|
-
font-variant-numeric: tabular-nums;
|
|
3579
|
-
}
|
|
3580
|
-
.st-row + .st-row {
|
|
3581
|
-
border-top: 1px solid var(--dpk-rule);
|
|
3582
|
-
}
|
|
3583
|
-
.st-name {
|
|
3584
|
-
min-width: 0;
|
|
3585
|
-
font-size: 14px;
|
|
3586
|
-
font-weight: 650;
|
|
3587
|
-
}
|
|
3588
|
-
.st-share {
|
|
3589
|
-
display: grid;
|
|
3590
|
-
gap: 5px;
|
|
3591
|
-
}
|
|
3592
|
-
.st-share-text {
|
|
3593
|
-
color: var(--dpk-ink-faint);
|
|
3594
|
-
font-family: var(--dpk-mono);
|
|
3595
|
-
font-size: 11px;
|
|
3596
|
-
font-variant-numeric: tabular-nums;
|
|
3597
|
-
}
|
|
3598
|
-
.st-meter {
|
|
3599
|
-
height: 5px;
|
|
3600
|
-
border-radius: 3px;
|
|
3601
|
-
background: var(--dpk-paper-sunken);
|
|
3602
|
-
overflow: hidden;
|
|
3603
|
-
}
|
|
3604
|
-
.st-meter > span {
|
|
3605
|
-
display: block;
|
|
3606
|
-
height: 100%;
|
|
3607
|
-
border-radius: 3px;
|
|
3608
|
-
background: var(--usm-tone);
|
|
3609
|
-
}
|
|
3610
|
-
.st-tones {
|
|
3611
|
-
display: inline-flex;
|
|
3612
|
-
flex-wrap: wrap;
|
|
3613
|
-
gap: 5px;
|
|
3614
|
-
}
|
|
3615
|
-
/* The status's own icon opens the menu of icons. */
|
|
3616
|
-
.st-icon-trigger {
|
|
3617
|
-
display: inline-grid;
|
|
3618
|
-
place-items: center;
|
|
3619
|
-
width: 30px;
|
|
3620
|
-
height: 30px;
|
|
3621
|
-
margin: -7px;
|
|
3622
|
-
padding: 0;
|
|
3623
|
-
border: 1px solid transparent;
|
|
3624
|
-
border-radius: var(--dpk-radius-sm);
|
|
3625
|
-
background: transparent;
|
|
3626
|
-
cursor: pointer;
|
|
3627
|
-
transition:
|
|
3628
|
-
background 140ms var(--dpk-ease),
|
|
3629
|
-
border-color 140ms var(--dpk-ease);
|
|
3630
|
-
}
|
|
3631
|
-
.st-icon-trigger:hover,
|
|
3632
|
-
.st-icon-trigger[aria-expanded='true'] {
|
|
3633
|
-
border-color: var(--dpk-rule-strong);
|
|
3634
|
-
background: var(--dpk-paper-raised);
|
|
3635
|
-
box-shadow: var(--dpk-shadow-xs);
|
|
3636
|
-
}
|
|
3637
|
-
.st-icon-trigger:focus-visible {
|
|
3638
|
-
outline: none;
|
|
3639
|
-
box-shadow: var(--dpk-focus);
|
|
3640
|
-
}
|
|
3641
|
-
.comment-pop.icon-menu {
|
|
3642
|
-
grid-template-columns: repeat(5, 36px);
|
|
3643
|
-
gap: 4px;
|
|
3644
|
-
padding: 8px;
|
|
3645
|
-
}
|
|
3646
|
-
.icon-option {
|
|
3647
|
-
display: inline-grid;
|
|
3648
|
-
place-items: center;
|
|
3649
|
-
width: 36px;
|
|
3650
|
-
height: 36px;
|
|
3651
|
-
padding: 0;
|
|
3652
|
-
border: 1px solid transparent;
|
|
3653
|
-
border-radius: var(--dpk-radius-sm);
|
|
3654
|
-
background: transparent;
|
|
3655
|
-
cursor: pointer;
|
|
3656
|
-
}
|
|
3657
|
-
.icon-option .status-icon {
|
|
3658
|
-
width: 18px;
|
|
3659
|
-
height: 18px;
|
|
3660
|
-
}
|
|
3661
|
-
.icon-option:hover,
|
|
3662
|
-
.icon-option:focus-visible {
|
|
3663
|
-
outline: none;
|
|
3664
|
-
background: var(--dpk-paper-inset);
|
|
3665
|
-
}
|
|
3666
|
-
.icon-option[aria-checked='true'] {
|
|
3667
|
-
border-color: color-mix(in oklab, var(--usm-tone) 55%, transparent);
|
|
3668
|
-
background: color-mix(in oklab, var(--usm-tone) 12%, transparent);
|
|
3669
|
-
}
|
|
3670
|
-
.st-tone {
|
|
3671
|
-
width: 18px;
|
|
3672
|
-
height: 18px;
|
|
3673
|
-
padding: 0;
|
|
3674
|
-
border: 2px solid var(--dpk-paper-raised);
|
|
3675
|
-
border-radius: 50%;
|
|
3676
|
-
background: var(--usm-tone);
|
|
3677
|
-
box-shadow: 0 0 0 1px var(--dpk-rule-strong);
|
|
3678
|
-
cursor: pointer;
|
|
3679
|
-
transition: box-shadow 150ms ease;
|
|
3680
|
-
}
|
|
3681
|
-
.st-tone:hover {
|
|
3682
|
-
box-shadow: 0 0 0 1px var(--usm-tone);
|
|
3683
|
-
}
|
|
3684
|
-
.st-tone[aria-checked='true'] {
|
|
3685
|
-
box-shadow: 0 0 0 2px var(--usm-tone);
|
|
3686
|
-
}
|
|
3687
|
-
.st-tone:focus-visible {
|
|
3688
|
-
outline: none;
|
|
3689
|
-
box-shadow: var(--dpk-focus);
|
|
3690
|
-
}
|
|
3691
|
-
/* A label's color, where a status shows its icon. */
|
|
3692
|
-
.label-swatch {
|
|
3693
|
-
width: 12px;
|
|
3694
|
-
height: 12px;
|
|
3695
|
-
border-radius: 4px;
|
|
3696
|
-
background: var(--usm-tone);
|
|
3697
|
-
}
|
|
3698
|
-
/* A member's initial in their color, where a label shows its swatch. */
|
|
3699
|
-
.member-avatar {
|
|
3700
|
-
display: inline-grid;
|
|
3701
|
-
place-items: center;
|
|
3702
|
-
width: 22px;
|
|
3703
|
-
height: 22px;
|
|
3704
|
-
border-radius: 50%;
|
|
3705
|
-
background: var(--usm-tone);
|
|
3706
|
-
color: var(--dpk-paper-raised);
|
|
3707
|
-
font-size: 11px;
|
|
3708
|
-
font-weight: 700;
|
|
3709
|
-
line-height: 1;
|
|
3710
|
-
}
|
|
3711
|
-
.st-tools {
|
|
3712
|
-
display: inline-flex;
|
|
3713
|
-
gap: 2px;
|
|
3714
|
-
}
|
|
3715
|
-
.st-tools .dpk-icon-btn {
|
|
3716
|
-
width: 26px;
|
|
3717
|
-
height: 26px;
|
|
3718
|
-
font-size: 13px;
|
|
3719
|
-
}
|
|
3720
|
-
@media (max-width: 640px) {
|
|
3721
|
-
.st-row {
|
|
3722
|
-
grid-template-columns: 16px minmax(0, 1fr) auto;
|
|
3723
|
-
row-gap: 8px;
|
|
3724
|
-
}
|
|
3725
|
-
.st-row--weighted {
|
|
3726
|
-
grid-template-columns: 16px minmax(0, 1fr) auto;
|
|
3727
|
-
}
|
|
3728
|
-
.st-share,
|
|
3729
|
-
.st-weight,
|
|
3730
|
-
.st-tones {
|
|
3731
|
-
grid-column: 2 / -1;
|
|
3732
|
-
}
|
|
3733
|
-
.st-weight:empty {
|
|
3734
|
-
display: none;
|
|
3735
|
-
}
|
|
3736
|
-
/* The tools stay on the name's row, so the rows below are the name's width. */
|
|
3737
|
-
.st-tools {
|
|
3738
|
-
grid-column: 3;
|
|
3739
|
-
grid-row: 1;
|
|
3740
|
-
}
|
|
3741
|
-
}
|
|
3742
|
-
|
|
3743
|
-
/* Step picker shown after a cross-activity drop. */
|
|
3744
|
-
.move-dialog {
|
|
3745
|
-
min-width: 220px;
|
|
3746
|
-
}
|
|
3747
|
-
`,O={kind:"idle"},Sr={width:300,height:240},Tr={width:228,height:116},Ar=240,_r=31,Ir=14,Mr={width:320,height:220},Ca=160;class Ba extends pt{static{this.styles=[pt.styles,$r,na,ra,wr,Ni,Ji,Xi,Fi,Ui,ur,ns]}definitionFor(t){return Xt(t)}static{this.properties={mode:{state:!0}}}#i=new ps(this);#e=new is(this);#t=null;#s=new bn(this,{row:()=>this.renderRoot.querySelector(".page-nav"),items:t=>[...t.querySelectorAll('.page-tabs [role="tab"]')],keyOf:t=>t.getAttribute("data-tab")??"",kept:t=>t.getAttribute("aria-selected")==="true",more:t=>t.querySelector("[data-tabs-more-trigger]")});#a=!1;constructor(){super(),this.mode=O,new ve(this,{open:()=>this.#n()!==null,closesOn:t=>this.#r(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 ve(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=O}),new ve(this,{open:()=>this.mode.kind==="choosing-features",closesOn:t=>!t.some(a=>a instanceof Element&&(a.id==="features-menu"||a.hasAttribute("data-features-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=O}),new ve(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=O})}renderRegions(t){return{main:this.#l(t)}}updated(){if(super.updated(),this.#d(),this.#o(),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,Tr);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)*_r+Ir;a&&s&&this.#e.open(a,s,{width:Ar,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=O;return}const n=a.childElementCount*lr+pr;s&&this.#e.open(a,s,{width:cr,height:n},{placement:"bottom-start"});return}if(this.mode.kind==="choosing-features"){const a=this.renderRoot.querySelector("#features-menu"),s=this.renderRoot.querySelector("[data-features-trigger]");a&&s&&this.#e.open(a,s,Mr);return}if(this.mode.kind!=="picking-step")return;const t=this.renderRoot.querySelector("#move-dialog");t&&this.#e.open(t,rs(this.mode.point.x,this.mode.point.y),Sr)}#n(){return this.renderRoot.querySelector(".story-panel")}#r(t){const a=this.#n(),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")))}#o(){const t=this.#n(),a=t?.dataset.story??null,s=this.#t;if(a===s)return;this.#t=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})}#d(){if(!(Te(this.navigation)!==null)){this.#a=!1;return}const a=this.renderRoot.querySelector(".map-scroll"),s=a?.querySelector('dpk-internal-usm-story-card[data-highlight="on"]');this.#a||!a||!s||(this.#a=!0,os(a,s,Ca),ds(a,s,Ca))}#l(t){const a=ue(this.locale),s=Rt(t.state,t.navigation);return l`
|
|
3748
|
-
${ir(or(a,t,s,{open:this.mode.kind==="choosing-features",toggle:()=>this.mode=this.mode.kind==="choosing-features"?O:{kind:"choosing-features"},close:()=>this.mode=O},{folded:this.#s.hidden,minimum:this.#s.minimum,open:this.mode.kind==="choosing-tab",toggle:()=>this.mode=this.mode.kind==="choosing-tab"?O:{kind:"choosing-tab"},close:()=>this.mode=O}),this.#p(a,t,s))}
|
|
3749
|
-
${this.#u(a,t,s)} ${this.#c(a,t,s)}
|
|
3750
|
-
${nr(a,t,this.mode,{confirm:n=>this.#k(n),cancel:()=>this.mode=O})}
|
|
3751
|
-
`}#p(t,a,s){return s!=="map"||Ee(a.state).length===0?m:Zi(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?O:{kind:"filtering",key:n}},close:()=>this.mode=O})}#c(t,a,s){if(s!=="map")return m;const n=mr(a);return n?hr(t,a,n):m}#u(t,a,s){switch(s){case"milestones":return tr(t,a,Jn(a.state));case"statuses":return xi(t,a,Er(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?O:{kind:"picking-icon",statusId:n}},close:()=>this.mode=O});case"labels":return Gi(t,a,Xn(a.state));case"members":return Qi(t,a,Zn(a.state));case"burndown":return Mi(t,a,new Date);case"map":return this.#m(t,a)}}#m(t,a){return li({m:t,context:a,drag:this.#i,handlers:{selectStory:s=>this.#h(s),dropOnCell:(s,n)=>this.#g(s,n),dropOnGroupCell:(s,n,i)=>this.#b(s,n,i),dropOnMilestoneRow:(s,n)=>this.#f(s,n),dropOnActivity:s=>this.#v(s),dropOnStep:s=>this.#y(s)},highlighted:ln(a.state,a.navigation)})}#h(t){const a=this.context(),s=S(a.state,t);s&&a.navigate({step:s.stepId,story:s.id})}#g(t,a){const s=this.context();s.dispatch(la(s.state,t,a.item.id,a.hoveredId,a.place))}#b(t,a,s){const n=this.context(),i=S(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=pa(n.state,t,a,i.id,s.hoveredId,s.place);r&&n.dispatch(r)}#f(t,a){const s=this.context(),n=s.state.milestones.map(r=>r.id),i=ua(n,a.item.id,a.hoveredId,a.place);i&&s.dispatch(i)}#v(t){const a=this.context(),s=a.state.activities.map(i=>i.id),n=Wn(s,t.item.id,t.hoveredId,t.place);n&&a.dispatch(n)}#y(t){const a=this.context(),s=jn(a.state,t.item.id,t.hoveredId,t.place);s&&a.dispatch(s)}#k(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=O}}const Ya=()=>{Kn(),Cn(),customElements.get("dpk-template-usm")||customElements.define("dpk-template-usm",Ba)},Lr=Object.freeze(Object.defineProperty({__proto__:null,DpkTemplateUsm:Ba,IDLE_MODE:O,allUsmIds:j,applyUsmAction:St,defineUsmElement:Ya,describeUsmAction:Gt,dropAfter:qn,emptyUsmBase:xt,findActivity:Z,findMilestone:z,findStep:_,findStory:S,flatSteps:Ee,parseUsmBase:yt,resolveCellDrop:la,resolveGroupDrop:pa,resolveMilestoneDrop:ua,resolvePickedStepMove:ca,resolveUsmNavigation:Wt,serializeUsmAction:Vt,storiesInCell:$e,storyCountForStep:Et,usmAction:Fs,usmActions:x,usmCommentTargets:Kt,usmCurrentTarget:qt,usmDefinitionFor:Xt,usmHasTarget:jt,usmMessages:ue,usmTargetLabel:Ht,usmTitle:Je},Symbol.toStringTag,{value:"Module"}));export{Ya as d,Lr as i};
|