dev-process-kit 0.2.1 → 0.3.0-beta.1
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 +178 -60
- package/dist/boards.js +1 -0
- package/dist/chunks/shared-BX1EnRfr.js +1 -0
- package/dist/chunks/shared-C-M2Nfmu.js +686 -0
- package/dist/chunks/shared-Cas88qVh.js +2165 -0
- package/dist/chunks/{shared-DeXM1v86.js → shared-Cejw83eH.js} +21 -29
- package/dist/chunks/shared-CfVpKPRY.js +1844 -0
- package/dist/chunks/shared-CnPCm4bJ.js +31 -0
- package/dist/chunks/shared-D1iBuYZV.js +6208 -0
- package/dist/chunks/shared-D7VtCoY6.js +3586 -0
- package/dist/chunks/{shared-zZF1zU0o.js → shared-DHVDag3x.js} +25 -56
- package/dist/chunks/shared-DdpMqkAH.js +4928 -0
- package/dist/chunks/shared-EYOAbLSo.js +1 -0
- package/dist/chunks/shared-TrlnHjrJ.js +1 -0
- package/dist/chunks/shared-a9QCZpxj.js +574 -0
- package/dist/chunks/shared-df9XN7ns.js +904 -0
- package/dist/chunks/shared-dnY35u9q.js +2530 -0
- package/dist/chunks/shared-e9ia12Uz.js +1636 -0
- package/dist/chunks/shared-qk9TB_UM.js +705 -0
- package/dist/components.js +1 -1
- package/dist/index.js +1 -1
- package/dist/views/delegation-poker.js +1 -0
- package/dist/views/plain.js +1 -0
- package/dist/views/prototype.js +1 -0
- package/dist/views/slides.js +1 -0
- package/dist/views/task-board.js +1 -0
- package/dist/views/usm.js +1 -0
- package/package.json +8 -10
- package/dist/chunks/shared-B5lBiq5s.js +0 -1
- package/dist/chunks/shared-BjyoXjSO.js +0 -1
- package/dist/chunks/shared-C-d71uRP.js +0 -573
- package/dist/chunks/shared-C5n6LBUz.js +0 -1105
- package/dist/chunks/shared-CAWKGcWJ.js +0 -1053
- package/dist/chunks/shared-CdZhkPto.js +0 -1
- package/dist/chunks/shared-DB_C1Mdu.js +0 -1
- package/dist/chunks/shared-DDOpqbVL.js +0 -49
- package/dist/chunks/shared-DehzCTC2.js +0 -1616
- package/dist/chunks/shared-Dfj6O0K4.js +0 -2774
- package/dist/chunks/shared-DiFAX1_p.js +0 -3780
- package/dist/chunks/shared-DkPo0jX3.js +0 -4214
- package/dist/chunks/shared-GL2Z98Cz.js +0 -4206
- package/dist/chunks/shared-cMhjZGRs.js +0 -301
- package/dist/templates/delegation-poker.js +0 -1
- package/dist/templates/event-storming.js +0 -1
- package/dist/templates/example-mapping.js +0 -1
- package/dist/templates/plain.js +0 -1
- package/dist/templates/prototype.js +0 -1
- package/dist/templates/slides.js +0 -1
- package/dist/templates/task-board.js +0 -1
- package/dist/templates/usm.js +0 -1
- package/dist/templates/whiteboard.js +0 -1
|
@@ -0,0 +1,3586 @@
|
|
|
1
|
+
import{ax as f,bj as va,ac as h,av as W,aU as we,a_ as We,ad as Ee,az as _e,bi as je,bD as ka,bE as wa,aV as yt,bF as vt,au as Ea,bk as Sa,aL as _,ay as k,aw as G,aa as Y,aM as L,aN as Ae,p as b,a8 as kt,a9 as g,t as ee,aO as H,aB as $a,N as xa,e as Ta,a5 as _a,S as A,P as v,a$ as U,ah as j,as as l,ai as m,aj as N,ak as Xe,al as Ze,B as Aa,j as Ia,b9 as wt,bm as Ma,bn as La,bp as Da,z as Et,l as J,aH as C,aS as Ie,aP as Q,H as Ra,bG as St,I as Je,bH as Oa,bc as Qe,y as et,bd as Na,V as $t,ag as Ca,aE as Ba,aF as xt,aG as tt,aT as Ya,aK as Ua,bI as Pa}from"./shared-DdpMqkAH.js";import{c as za,a as Fa}from"./shared-qk9TB_UM.js";import{w as Tt,C as _t,h as At,q as It,r as Mt,g as Lt,a as Va,x as Ga}from"./shared-df9XN7ns.js";import{L as Ha}from"./shared-CjW1DhGL.js";import{o as Me}from"./shared-EYOAbLSo.js";const Ka=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16 9-5.5 5.5L8 12"}]],qa=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"}]],Wa=[["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"}]],ja=[["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"}]],Xa=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]],Za=[["circle",{cx:"12",cy:"12",r:"10"}]],Ja=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]],Qa=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]],en=[["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"}]],tn=[["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"}]],sn=[["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"}]],an=[["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"}]],nn=[["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"}]],rn=[["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"}]],Dt=e=>new Map(e.map(t=>[t.id,t.blockedBy??[]])),st=(e,t,s)=>{const a=Dt(e),n=new Set,i=[...a.get(t)??[]];for(;i.length>0;){const r=i.pop();if(!(r===void 0||n.has(r))){if(r===s)return!0;n.add(r),i.push(...a.get(r)??[])}}return!1},on=e=>{const t=Dt(e),s=new Set,a=(n,i)=>{const r=i.indexOf(n);if(r>=0)return[...i.slice(r),n];if(s.has(n))return null;for(const o of t.get(n)??[]){const d=a(o,[...i,n]);if(d)return d}return s.add(n),null};for(const n of e){const i=a(n.id,[]);if(i)return i}return null},Le=["gray","blue","violet","green","amber","accent"],Rt=["progress","circle","lightbulb","flag","play","clock","eye","pause","check","x"],De=["estimates","assignees"],Ot=["stories","points","weighted"],Nt=f(h(),ka(),je(e=>{const[t=0,s=0,a=0]=e.split("-").map(Number),n=new Date(Date.UTC(t,s-1,a));return n.getUTCMonth()===s-1&&n.getUTCDate()===a},"a due date must be a calendar day")),Ct=f(Ee(),We(),we(0)),at=f(Ee(),We(),we(0)),Bt=W({milestoneId:_(f(h(),k(1))),statusId:_(f(h(),k(1))),stories:f(Ee(),yt(),we(0)),points:f(Ee(),We(),we(0))}),Re=f(h(),va()),dn=W({id:f(h(),k(1)),name:f(h(),k(1)),questions:Ae}),ln=W({id:L,name:f(h(),k(1)),actor:_(h()),steps:G(Y(dn),[]),questions:Ae}),pn=W({id:f(h(),k(1)),name:f(h(),k(1)),timeframe:_(h()),description:_(h()),dueDate:_(Nt),questions:Ae}),ae=_e(Le),nt=_e(Rt),it=f(h(),wa(),je(e=>/^https?:\/\//i.test(e),"a link must be an http(s) URL")),cn=W({url:it,label:_(f(h(),k(1)))}),un=W({id:L,name:f(h(),k(1)),tone:G(ae),icon:G(nt),weight:_(Ct)}),mn=W({id:L,name:f(h(),k(1)),tone:G(ae)}),Yt=f(h(),je(e=>e.trim()!=="","a comment needs some text")),hn=W({id:L,body:Yt,createdAt:_(Re)}),Ut=f(Ee(),yt(),we(1)),bn=W({id:L,number:_(Ut),name:f(h(),k(1)),description:_(h()),activityId:f(h(),k(1)),stepId:f(h(),k(1)),milestoneId:_(h()),statusId:_(h()),links:_(Y(cn)),labelIds:_(Y(f(h(),k(1)))),blockedBy:_(Y(f(h(),k(1)))),estimateId:_(f(h(),k(1))),assigneeId:_(f(h(),k(1))),comments:_(Y(hn)),questions:Ae}),gn=W({id:L,name:f(h(),k(1)),tone:G(ae)}),Pt=_e(De),zt=_e(Ot),fn=W({id:L,name:f(h(),k(1)),points:at}),yn=W({id:L,at:Re,tally:Y(Bt)}),vn=W({title:_(h()),features:G(Y(Pt),[]),measure:_(zt),doneStatusId:_(f(h(),k(1))),activities:G(Y(ln),[]),milestones:G(Y(pn),[]),statuses:G(Y(un),[]),labels:G(Y(mn),[]),members:G(Y(gn),[]),estimates:G(Y(fn),[]),stories:G(Y(bn),[]),snapshots:G(Y(yn),[])}),rt=e=>Le[e%Le.length]??"gray",Oe=e=>rt(e+1),Ft=e=>{const t=Ea(vn,e);if(new Set(t.features).size!==t.features.length)throw new Error("the base turns a feature on twice");const s=t.statuses[0]?.id,a=t.stories.flatMap(c=>c.number===void 0?[]:[c.number]),n=a.find((c,T)=>a.indexOf(c)!==T);if(n!==void 0)throw new Error(`two stories share the number ${n}`);let i=Math.max(0,...a);const r={...t,stories:t.stories.map(c=>({...c,number:c.number??++i,...s===void 0||c.statusId!==void 0?{}:{statusId:s}})),statuses:t.statuses.map((c,T)=>({...c,tone:c.tone??rt(T),icon:c.icon??"progress"})),labels:t.labels.map((c,T)=>({...c,tone:c.tone??Oe(T)})),members:t.members.map((c,T)=>({...c,tone:c.tone??Oe(T)})),features:De.filter(c=>t.features.includes(c))},o=new Map;for(const c of r.activities)for(const T of c.steps)o.set(T.id,c.id);const d=new Set(r.milestones.map(c=>c.id)),p=new Set(r.statuses.map(c=>c.id)),u=new Set(r.labels.map(c=>c.id));if(r.doneStatusId!==void 0&&!p.has(r.doneStatusId))throw new Error(`the base references unknown doneStatusId "${r.doneStatusId}"`);const w=new Set,E=(c,T)=>{if(w.has(T))throw new Error(`duplicate id "${T}" in ${c}`);w.add(T)};for(const c of r.activities){E("activities",c.id);for(const T of c.steps)E("steps",T.id)}for(const c of r.milestones)E("milestones",c.id);for(const c of r.statuses)E("statuses",c.id);for(const c of r.labels)E("labels",c.id);for(const c of r.members)E("members",c.id);for(const c of r.estimates)E("estimates",c.id);for(const c of r.snapshots)E("snapshots",c.id);const S=new Set(r.estimates.map(c=>c.id)),M=new Set(r.members.map(c=>c.id));for(const c of r.stories){E("stories",c.id);for(const ke of c.comments??[])E("story comments",ke.id);const T=o.get(c.stepId);if(T===void 0||T!==c.activityId)throw new Error(`story "${c.id}" references unknown activityId/stepId`);if(c.milestoneId!==void 0&&!d.has(c.milestoneId))throw new Error(`story "${c.id}" references unknown milestoneId "${c.milestoneId}"`);const ye=(c.links??[]).map(ke=>ke.url);if(new Set(ye).size!==ye.length)throw new Error(`story "${c.id}" links the same URL twice`);if(c.statusId!==void 0&&!p.has(c.statusId))throw new Error(`story "${c.id}" references unknown statusId "${c.statusId}"`);const ve=c.labelIds??[];if(new Set(ve).size!==ve.length)throw new Error(`story "${c.id}" has a label twice`);const ft=ve.find(ke=>!u.has(ke));if(ft!==void 0)throw new Error(`story "${c.id}" references unknown labelId "${ft}"`);if(c.estimateId!==void 0&&!S.has(c.estimateId))throw new Error(`story "${c.id}" references unknown estimateId "${c.estimateId}"`);if(c.assigneeId!==void 0&&!M.has(c.assigneeId))throw new Error(`story "${c.id}" references unknown assigneeId "${c.assigneeId}"`)}for(const c of r.snapshots){const T=Vt(r,c.tally);if(T!==null)throw new Error(`snapshot "${c.id}" ${T}`)}const $=new Set(r.stories.map(c=>c.id));for(const c of r.stories){const T=c.blockedBy??[];if(T.includes(c.id))throw new Error(`story "${c.id}" is blocked by itself`);if(new Set(T).size!==T.length)throw new Error(`story "${c.id}" has a blocker twice`);const ye=T.find(ve=>!$.has(ve));if(ye!==void 0)throw new Error(`story "${c.id}" references unknown blocker "${ye}"`)}const O=on(r.stories);if(O!==null)throw new Error(`stories block one another in a cycle: ${O.join(" \u2192 ")}`);return r},Vt=(e,t)=>{const s=new Set;for(const a of t){if(a.milestoneId!==void 0&&!P(e,a.milestoneId))return`references unknown milestoneId "${a.milestoneId}"`;if(a.statusId!==void 0&&!D(e,a.statusId))return`references unknown statusId "${a.statusId}"`;const n=Ne(a);if(s.has(n))return`tallies "${n}" twice`;s.add(n)}return null},Ne=e=>`${e.milestoneId??""}/${e.statusId??""}`,Gt=()=>({features:[],activities:[],milestones:[],statuses:[],labels:[],members:[],estimates:[],stories:[],snapshots:[]}),te=(e,t)=>{if(t!==void 0)return e.activities.find(s=>s.id===t)},le=(e,t)=>`${e}.${t}`,B=(e,t)=>{if(t===void 0)return;const s=Sa(t,2);if(s){const[a,n]=s;if(a===void 0||n===void 0)return;const i=e.activities.find(o=>o.id===a),r=i?.steps.find(o=>o.id===n);return i&&r?{activity:i,step:r}:void 0}if(!t.includes("."))for(const a of e.activities){const n=a.steps.find(i=>i.id===t);if(n)return{activity:a,step:n}}},P=(e,t)=>{if(t!==void 0)return e.milestones.find(s=>s.id===t)},D=(e,t)=>{if(t!==void 0)return e.statuses.find(s=>s.id===t)},Z=(e,t)=>{if(t!==void 0)return e.labels.find(s=>s.id===t)},z=(e,t)=>e.features.includes(t),K=(e,t)=>{if(t!==void 0)return e.members.find(s=>s.id===t)},Ht=(e,t)=>K(e,t.assigneeId),F=(e,t)=>{if(t!==void 0)return e.estimates.find(s=>s.id===t)},Se=(e,t)=>{if(t!==void 0)return e.snapshots.find(s=>s.id===t)},Kt=(e,t)=>{const s=new Set(t.labelIds??[]);return e.labels.filter(a=>s.has(a.id))},x=(e,t)=>{if(t!==void 0)return e.stories.find(s=>s.id===t)},Ce=e=>e.activities.flatMap(t=>t.steps.map(s=>({activity:t,step:s}))),kn=e=>({...e,stories:vt(e.stories,[t=>`${t.activityId}/${t.stepId}/${t.milestoneId??""}`])}),Be=(e,t,s)=>e.stories.filter(a=>a.stepId===t&&(a.milestoneId??void 0)===s),qt=(e,t,s)=>e.stories.filter(a=>a.activityId===t&&(a.milestoneId??void 0)===s),X=e=>[...e.activities.map(t=>t.id),...e.activities.flatMap(t=>t.steps.map(s=>s.id)),...e.milestones.map(t=>t.id),...e.statuses.map(t=>t.id),...e.labels.map(t=>t.id),...e.members.map(t=>t.id),...e.estimates.map(t=>t.id),...e.stories.map(t=>t.id),...e.stories.flatMap(t=>(t.comments??[]).map(s=>s.id)),...e.snapshots.map(t=>t.id)],Wt=(e,t)=>e.stories.filter(s=>s.stepId===t).length,jt=g({feature:Pt,enabled:$a()}),y={SET_ACTIVITY_NAME:b("SET_ACTIVITY_NAME","activity",g({name:f(h(),k(1))})),SET_ACTIVITY_ACTOR:b("SET_ACTIVITY_ACTOR","activity",g({actor:h()})),SET_STEP_NAME:b("SET_STEP_NAME","step",g({name:f(h(),k(1))})),REORDER_STEP:b("REORDER_STEP","step",g({after:H(h())}),{mode:"sequence"}),REORDER_ACTIVITY:b("REORDER_ACTIVITY","activity",g({after:H(h())}),{mode:"sequence"}),ADD_ACTIVITY:b("ADD_ACTIVITY","page",g({id:L,name:f(h(),k(1))}),{dedupeKey:ee}),ADD_STEP:b("ADD_STEP","activity",g({id:L,name:f(h(),k(1))}),{dedupeKey:ee}),DELETE_ACTIVITY:b("DELETE_ACTIVITY","activity",g({})),DELETE_STEP:b("DELETE_STEP","step",g({})),SET_STORY_NAME:b("SET_STORY_NAME","story",g({name:f(h(),k(1))})),SET_STORY_DESCRIPTION:b("SET_STORY_DESCRIPTION","story",g({description:h()})),SET_STORY_MILESTONE:b("SET_STORY_MILESTONE","story",g({milestoneId:H(h())})),MOVE_STORY:b("MOVE_STORY","story",g({activityId:f(h(),k(1)),stepId:f(h(),k(1)),milestoneId:H(h()),after:H(h())}),{mode:"sequence"}),REORDER_STORY:b("REORDER_STORY","story",g({after:H(h())}),{mode:"sequence"}),ADD_STORY:b("ADD_STORY","step",g({id:L,name:f(h(),k(1)),activityId:f(h(),k(1)),milestoneId:_(h()),number:_(Ut)}),{dedupeKey:ee}),DELETE_STORY:b("DELETE_STORY","story",g({})),ADD_STORY_LINK:b("ADD_STORY_LINK","story",g({url:it,label:_(f(h(),k(1)))})),REMOVE_STORY_LINK:b("REMOVE_STORY_LINK","story",g({url:h()})),ADD_STORY_COMMENT:b("ADD_STORY_COMMENT","story",g({id:L,body:Yt,createdAt:_(Re)}),{dedupeKey:ee}),DELETE_STORY_COMMENT:b("DELETE_STORY_COMMENT","story",g({commentId:f(h(),k(1))})),SET_STORY_STATUS:b("SET_STORY_STATUS","story",g({statusId:f(h(),k(1))})),SET_MILESTONE_NAME:b("SET_MILESTONE_NAME","milestone",g({name:f(h(),k(1))})),ADD_MILESTONE:b("ADD_MILESTONE","page",g({id:L,name:f(h(),k(1))}),{dedupeKey:ee}),DELETE_MILESTONE:b("DELETE_MILESTONE","milestone",g({})),REORDER_MILESTONE:b("REORDER_MILESTONE","milestone",g({after:H(h())}),{mode:"sequence"}),SET_MILESTONE_DUE_DATE:b("SET_MILESTONE_DUE_DATE","milestone",g({dueDate:H(Nt)})),ADD_STATUS:b("ADD_STATUS","page",g({id:L,name:f(h(),k(1)),tone:ae,icon:_(nt)}),{dedupeKey:ee}),SET_STATUS_NAME:b("SET_STATUS_NAME","status",g({name:f(h(),k(1))})),SET_STATUS_TONE:b("SET_STATUS_TONE","status",g({tone:ae})),SET_STATUS_ICON:b("SET_STATUS_ICON","status",g({icon:nt})),SET_STATUS_WEIGHT:b("SET_STATUS_WEIGHT","status",g({weight:Ct})),SET_MEASURE:b("SET_MEASURE","page",g({measure:zt})),SET_DONE_STATUS:b("SET_DONE_STATUS","status",g({})),DELETE_STATUS:b("DELETE_STATUS","status",g({})),REORDER_STATUS:b("REORDER_STATUS","status",g({after:H(h())}),{mode:"sequence"}),ADD_LABEL:b("ADD_LABEL","page",g({id:L,name:f(h(),k(1)),tone:ae}),{dedupeKey:ee}),SET_LABEL_NAME:b("SET_LABEL_NAME","label",g({name:f(h(),k(1))})),SET_LABEL_TONE:b("SET_LABEL_TONE","label",g({tone:ae})),DELETE_LABEL:b("DELETE_LABEL","label",g({})),REORDER_LABEL:b("REORDER_LABEL","label",g({after:H(h())}),{mode:"sequence"}),ADD_STORY_LABEL:b("ADD_STORY_LABEL","story",g({labelId:f(h(),k(1))})),REMOVE_STORY_LABEL:b("REMOVE_STORY_LABEL","story",g({labelId:f(h(),k(1))})),ADD_STORY_BLOCKER:b("ADD_STORY_BLOCKER","story",g({blockerId:f(h(),k(1))})),REMOVE_STORY_BLOCKER:b("REMOVE_STORY_BLOCKER","story",g({blockerId:f(h(),k(1))})),ADD_MEMBER:b("ADD_MEMBER","page",g({id:L,name:f(h(),k(1)),tone:ae}),{dedupeKey:ee}),SET_MEMBER_NAME:b("SET_MEMBER_NAME","member",g({name:f(h(),k(1))})),SET_MEMBER_TONE:b("SET_MEMBER_TONE","member",g({tone:ae})),DELETE_MEMBER:b("DELETE_MEMBER","member",g({})),REORDER_MEMBER:b("REORDER_MEMBER","member",g({after:H(h())}),{mode:"sequence"}),SET_STORY_ASSIGNEE:b("SET_STORY_ASSIGNEE","story",g({memberId:H(f(h(),k(1)))})),ADD_ESTIMATE:b("ADD_ESTIMATE","page",g({id:L,name:f(h(),k(1)),points:at}),{dedupeKey:ee}),SET_ESTIMATE_NAME:b("SET_ESTIMATE_NAME","estimate",g({name:f(h(),k(1))})),SET_ESTIMATE_POINTS:b("SET_ESTIMATE_POINTS","estimate",g({points:at})),DELETE_ESTIMATE:b("DELETE_ESTIMATE","estimate",g({})),REORDER_ESTIMATE:b("REORDER_ESTIMATE","estimate",g({after:H(h())}),{mode:"sequence"}),SET_STORY_ESTIMATE:b("SET_STORY_ESTIMATE","story",g({estimateId:H(f(h(),k(1)))})),RECORD_SNAPSHOT:b("RECORD_SNAPSHOT","page",g({id:L,at:Re,tally:Y(Bt)}),{dedupeKey:ee}),DELETE_SNAPSHOT:b("DELETE_SNAPSHOT","snapshot",g({})),SET_FEATURE:b("SET_FEATURE","page",jt,{dedupeKey:e=>{const t=kt(jt,e.payload);return`SET_FEATURE|${t.success?t.output.feature:JSON.stringify(e.payload)}`}})},wn={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}})},he=e=>{const t=e.statuses.findIndex(s=>s.id===e.doneStatusId);return t>=0?t:e.statuses.length-1},Xt=e=>e.statuses[he(e)],Zt=(e,t)=>{if(t===void 0)return!1;const s=e.statuses.findIndex(a=>a.id===t);return s>=0&&s>=he(e)},Jt=e=>e.statuses.slice(0,he(e)+1),En=(e,t)=>e.milestones.find(s=>s.id===t.milestone)??e.milestones.find(s=>s.dueDate!==void 0)??e.milestones[0],be=e=>z(e,"estimates")?e.measure??(e.estimates.length>0?"points":"stories"):"stories",Qt=e=>e.weight??1,se=10,es=e=>{const{statuses:t}=e,s=he(e);if(be(e)!=="weighted")return t.map((r,o)=>o<s?1:0);const a=t.slice(0,s).map(Qt),n=Ye(a),i=a.map(r=>n>0?r/n:1/a.length);return t.map((r,o)=>Ye(i.slice(o)))},Sn=1,ts=(e,t)=>F(e,t.estimateId)?.points??Sn,ss=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=Ne(i),o=t.get(r)??{...i,stories:0,points:0};t.set(r,{...o,stories:o.stories+1,points:o.points+ts(e,n)})}const s=[...e.milestones.map(n=>n.id),void 0],a=e.statuses.length===0?[void 0]:e.statuses.map(n=>n.id);return s.flatMap(n=>a.flatMap(i=>{const r=t.get(Ne({milestoneId:n,statusId:i}));return r?[r]:[]}))},$n=(e,t,s)=>{const a=be(e),i=[...vt(e.snapshots.map(d=>({at:Date.parse(d.at),tally:d.tally,snapshotId:d.id})),[d=>d.at]),{at:s,tally:ss(e)}].map(d=>({at:d.at,...d.snapshotId===void 0?{}:{snapshotId:d.snapshotId},values:xn(e.statuses,d.tally,t,a)})),r=es(e),o=(d,p)=>({at:d.at,value:Math.round(p*100)/100,...d.snapshotId===void 0?{}:{snapshotId:d.snapshotId}});return{due:Tn(e.milestones.find(d=>d.id===t)?.dueDate),combined:i.map(d=>o(d,d.values.reduce((p,u,w)=>p+u*(r[w]??0),0))),byStatus:e.statuses.slice(1).map((d,p)=>({status:d,points:i.map(u=>o(u,Ye(u.values.slice(0,p+1))))}))}},xn=(e,t,s,a)=>e.map(n=>Ye(t.filter(i=>i.milestoneId===s&&i.statusId===n.id).map(i=>a==="stories"?i.stories:i.points))),Tn=e=>{if(e===void 0)return null;const[t=0,s=1,a=1]=e.split("-").map(Number);return new Date(t,s-1,a,23,59,59).getTime()},pe=e=>{const t=new Date(e),s=a=>String(a).padStart(2,"0");return`${t.getFullYear()}-${s(t.getMonth()+1)}-${s(t.getDate())} ${s(t.getHours())}:${s(t.getMinutes())}`},Ye=e=>e.reduce((t,s)=>t+s,0),as="STORY-",ge=e=>`${as}${e.number}`,ns=(...e)=>Math.max(0,...e.flatMap(t=>t.stories.map(s=>s.number)))+1,_n=(e,t)=>{if(t===void 0)return;const s=x(e,t);if(s)return s;const a=new RegExp(`^${as}([1-9]\\d*)$`,"i").exec(t.trim());if(!a)return;const n=Number(a[1]);return e.stories.find(i=>i.number===n)},is=(e,t)=>{const s=xa(y,t);if(s===null)return null;const a=s.target.id;switch(s.type){case"SET_ACTIVITY_NAME":{const{name:n}=s.payload;return e.activities.some(i=>i.id===a)?{...e,activities:e.activities.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_ACTIVITY_ACTOR":{const n=s.payload.actor.trim();return e.activities.some(i=>i.id===a)?{...e,activities:e.activities.map(i=>{if(i.id!==a)return i;const{actor:r,...o}=i;return n===""?o:{...o,actor:n}})}:null}case"SET_STEP_NAME":{const{name:n}=s.payload,i=B(e,a);return i?{...e,activities:e.activities.map(r=>r.id===i.activity.id?{...r,steps:r.steps.map(o=>o.id===i.step.id?{...o,name:n}:o)}:r)}:null}case"REORDER_STEP":{const{after:n}=s.payload,i=B(e,a);if(!i)return null;const r=n===null?null:B(e,n);if(n!==null&&(!r||r.activity.id!==i.activity.id))return null;const o=ce(i.activity.steps,i.step.id,r?.step.id??null);return o===null?null:{...e,activities:e.activities.map(d=>d.id===i.activity.id?{...d,steps:o}:d)}}case"REORDER_ACTIVITY":{const{after:n}=s.payload,i=ce(e.activities,a,n);return i===null?null:{...e,activities:i}}case"ADD_ACTIVITY":{const n=s.payload;return e.activities.some(i=>i.id===n.id)?e:{...e,activities:[...e.activities,{id:n.id,name:n.name,steps:[]}]}}case"ADD_STEP":{const n=s.payload,i=e.activities.find(r=>r.id===a);return i?i.steps.some(r=>r.id===n.id)?e:{...e,activities:e.activities.map(r=>r.id===a?{...r,steps:[...r.steps,{id:n.id,name:n.name}]}:r)}:null}case"DELETE_ACTIVITY":{const n=e.activities.find(r=>r.id===a);if(!n)return null;const i=new Set(n.steps.map(r=>r.id));return dt({...e,activities:e.activities.filter(r=>r.id!==a)},r=>r.activityId===a||i.has(r.stepId))}case"DELETE_STEP":{const n=B(e,a);return n?dt({...e,activities:e.activities.map(i=>i.id===n.activity.id?{...i,steps:i.steps.filter(r=>r.id!==n.step.id)}:i)},i=>i.activityId===n.activity.id&&i.stepId===n.step.id):null}case"SET_STORY_NAME":{const{name:n}=s.payload;return q(e,a,i=>({...i,name:n}))}case"SET_STORY_DESCRIPTION":{const{description:n}=s.payload;return q(e,a,i=>({...i,description:n}))}case"SET_STORY_MILESTONE":{const{milestoneId:n}=s.payload;return n!==null&&!P(e,n)?null:q(e,a,i=>n===null?ot(i):{...i,milestoneId:n})}case"MOVE_STORY":{const n=s.payload,i=x(e,a);if(!i)return null;const r=B(e,n.stepId);if(!r||r.activity.id!==n.activityId||n.milestoneId!==null&&!P(e,n.milestoneId))return null;const o=n.milestoneId??void 0,d=o===void 0?{...ot(i),activityId:r.activity.id,stepId:r.step.id}:{...i,activityId:r.activity.id,stepId:r.step.id,milestoneId:o};return ds(e,d,n.after)}case"REORDER_STORY":{const{after:n}=s.payload,i=x(e,a);return i?ds(e,i,n,!0):null}case"ADD_STORY":{const n=s.payload,i=B(e,t.target.id);if(!i||i.activity.id!==n.activityId||n.milestoneId!==void 0&&!P(e,n.milestoneId))return null;if(e.stories.some(d=>d.id===n.id))return e;const r=n.number!==void 0&&e.stories.some(d=>d.number===n.number),o={id:n.id,number:n.number===void 0||r?ns(e):n.number,name:n.name,activityId:n.activityId,stepId:i.step.id,...n.milestoneId===void 0?{}:{milestoneId:n.milestoneId},...e.statuses[0]===void 0?{}:{statusId:e.statuses[0].id}};return{...e,stories:[...e.stories,o]}}case"DELETE_STORY":return e.stories.some(n=>n.id===a)?dt(e,n=>n.id===a):null;case"ADD_STORY_LINK":{const{url:n,label:i}=s.payload,r=x(e,a);if(!r)return null;if(r.links?.some(d=>d.url===n))return e;const o=i===void 0?{url:n}:{url:n,label:i};return q(e,a,d=>({...d,links:[...d.links??[],o]}))}case"REMOVE_STORY_LINK":{const{url:n}=s.payload;return x(e,a)?.links?.some(r=>r.url===n)?q(e,a,r=>{const o=(r.links??[]).filter(u=>u.url!==n),{links:d,...p}=r;return o.length===0?p:{...p,links:o}}):null}case"ADD_STORY_COMMENT":{const{id:n,body:i,createdAt:r}=s.payload,o=x(e,a);if(!o)return null;if(o.comments?.some(p=>p.id===n))return e;if(X(e).includes(n))return null;const d=r===void 0?{id:n,body:i}:{id:n,body:i,createdAt:r};return q(e,a,p=>({...p,comments:[...p.comments??[],d]}))}case"DELETE_STORY_COMMENT":{const{commentId:n}=s.payload;return x(e,a)?.comments?.some(r=>r.id===n)?q(e,a,r=>{const o=(r.comments??[]).filter(u=>u.id!==n),{comments:d,...p}=r;return o.length===0?p:{...p,comments:o}}):null}case"SET_STORY_STATUS":{const{statusId:n}=s.payload;return D(e,n)?q(e,a,i=>({...i,statusId:n})):null}case"SET_MILESTONE_NAME":{const{name:n}=s.payload;return e.milestones.some(i=>i.id===a)?{...e,milestones:e.milestones.map(i=>i.id===a?{...i,name:n}:i)}:null}case"ADD_MILESTONE":{const n=s.payload;return e.milestones.some(i=>i.id===n.id)?e:{...e,milestones:[...e.milestones,{id:n.id,name:n.name}]}}case"DELETE_MILESTONE":return e.milestones.some(n=>n.id===a)?{...e,milestones:e.milestones.filter(n=>n.id!==a),stories:e.stories.map(n=>n.milestoneId===a?ot(n):n),snapshots:lt(e,n=>n.milestoneId===a?oe(n,"milestoneId"):n)}:null;case"REORDER_MILESTONE":{const{after:n}=s.payload,i=ce(e.milestones,a,n);return i===null?null:{...e,milestones:i}}case"SET_MILESTONE_DUE_DATE":{const{dueDate:n}=s.payload;return P(e,a)?{...e,milestones:e.milestones.map(i=>i.id!==a?i:n===null?oe(i,"dueDate"):{...i,dueDate:n})}:null}case"ADD_STATUS":{const{id:n,name:i,tone:r,icon:o}=s.payload;if(e.statuses.some(p=>p.id===n))return e;const d=[...e.statuses,{id:n,name:i,tone:r,icon:o??"progress"}];return e.statuses.length===0?{...e,statuses:d,stories:e.stories.map(p=>({...p,statusId:n})),snapshots:lt(e,p=>({...p,statusId:n}))}:{...e,statuses:d}}case"SET_STATUS_NAME":{const{name:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_STATUS_TONE":{const{tone:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,tone:n}:i)}:null}case"SET_STATUS_ICON":{const{icon:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,icon:n}:i)}:null}case"SET_STATUS_WEIGHT":{const{weight:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,weight:n}:i)}:null}case"SET_MEASURE":{const{measure:n}=s.payload;return be(e)===n?e:{...e,measure:n}}case"SET_DONE_STATUS":return D(e,a)?e.doneStatusId===a?e:{...e,doneStatusId:a}:null;case"DELETE_STATUS":{if(!D(e,a))return null;const n=e.statuses.filter(r=>r.id!==a),i=n[0]?.id;return{...e.doneStatusId===a?oe(e,"doneStatusId"):e,statuses:n,stories:e.stories.map(r=>r.statusId!==a?r:i===void 0?An(r):{...r,statusId:i}),snapshots:lt(e,r=>r.statusId!==a?r:i===void 0?oe(r,"statusId"):{...r,statusId:i})}}case"REORDER_STATUS":{const{after:n}=s.payload,i=ce(e.statuses,a,n);return i===null?null:{...e,statuses:i}}case"ADD_LABEL":{const{id:n,name:i,tone:r}=s.payload;return Z(e,n)?e:{...e,labels:[...e.labels,{id:n,name:i,tone:r}]}}case"SET_LABEL_NAME":{const{name:n}=s.payload;return Z(e,a)?{...e,labels:e.labels.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_LABEL_TONE":{const{tone:n}=s.payload;return Z(e,a)?{...e,labels:e.labels.map(i=>i.id===a?{...i,tone:n}:i)}:null}case"DELETE_LABEL":return Z(e,a)?{...e,labels:e.labels.filter(n=>n.id!==a),stories:e.stories.map(n=>n.labelIds?.includes(a)?rs(n,a):n)}:null;case"REORDER_LABEL":{const{after:n}=s.payload,i=ce(e.labels,a,n);return i===null?null:{...e,labels:i}}case"ADD_STORY_LABEL":{const{labelId:n}=s.payload,i=x(e,a);return!i||!Z(e,n)?null:i.labelIds?.includes(n)?e:q(e,a,r=>({...r,labelIds:[...r.labelIds??[],n]}))}case"REMOVE_STORY_LABEL":{const{labelId:n}=s.payload;return x(e,a)?.labelIds?.includes(n)?q(e,a,i=>rs(i,n)):null}case"ADD_STORY_BLOCKER":{const{blockerId:n}=s.payload,i=x(e,a);return!i||!x(e,n)?null:i.blockedBy?.includes(n)?e:n===a||st(e.stories,n,a)?null:q(e,a,r=>({...r,blockedBy:[...r.blockedBy??[],n]}))}case"REMOVE_STORY_BLOCKER":{const{blockerId:n}=s.payload;return x(e,a)?.blockedBy?.includes(n)?q(e,a,i=>os(i,new Set([n]))):null}case"ADD_MEMBER":{const{id:n,name:i,tone:r}=s.payload;return K(e,n)?e:{...e,members:[...e.members,{id:n,name:i,tone:r}]}}case"SET_MEMBER_NAME":{const{name:n}=s.payload;return K(e,a)?{...e,members:e.members.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_MEMBER_TONE":{const{tone:n}=s.payload;return K(e,a)?{...e,members:e.members.map(i=>i.id===a?{...i,tone:n}:i)}:null}case"DELETE_MEMBER":return K(e,a)?{...e,members:e.members.filter(n=>n.id!==a),stories:e.stories.map(n=>n.assigneeId===a?oe(n,"assigneeId"):n)}:null;case"REORDER_MEMBER":{const{after:n}=s.payload,i=ce(e.members,a,n);return i===null?null:{...e,members:i}}case"SET_STORY_ASSIGNEE":{const{memberId:n}=s.payload;return n!==null&&!K(e,n)?null:q(e,a,i=>n===null?oe(i,"assigneeId"):{...i,assigneeId:n})}case"ADD_ESTIMATE":{const{id:n,name:i,points:r}=s.payload;return F(e,n)?e:{...e,estimates:[...e.estimates,{id:n,name:i,points:r}]}}case"SET_ESTIMATE_NAME":{const{name:n}=s.payload;return F(e,a)?{...e,estimates:e.estimates.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_ESTIMATE_POINTS":{const{points:n}=s.payload;return F(e,a)?{...e,estimates:e.estimates.map(i=>i.id===a?{...i,points:n}:i)}:null}case"DELETE_ESTIMATE":return F(e,a)?{...e,estimates:e.estimates.filter(n=>n.id!==a),stories:e.stories.map(n=>n.estimateId===a?oe(n,"estimateId"):n)}:null;case"REORDER_ESTIMATE":{const{after:n}=s.payload,i=ce(e.estimates,a,n);return i===null?null:{...e,estimates:i}}case"SET_STORY_ESTIMATE":{const{estimateId:n}=s.payload;return n!==null&&!F(e,n)?null:q(e,a,i=>n===null?oe(i,"estimateId"):{...i,estimateId:n})}case"RECORD_SNAPSHOT":{const{id:n,at:i,tally:r}=s.payload;return Se(e,n)?e:Vt(e,r)!==null?null:{...e,snapshots:[...e.snapshots,{id:n,at:i,tally:r}]}}case"DELETE_SNAPSHOT":return Se(e,a)?{...e,snapshots:e.snapshots.filter(n=>n.id!==a)}:null;case"SET_FEATURE":{const{feature:n,enabled:i}=s.payload;if(e.features.includes(n)===i)return e;const r=De.filter(o=>o===n?i:e.features.includes(o));return{...e,features:r}}default:return Ta(s)}},q=(e,t,s)=>e.stories.some(a=>a.id===t)?{...e,stories:e.stories.map(a=>a.id===t?s(a):a)}:null,ot=e=>{const{milestoneId:t,...s}=e;return s},rs=(e,t)=>{const{labelIds:s=[],...a}=e,n=s.filter(i=>i!==t);return n.length===0?a:{...a,labelIds:n}},os=(e,t)=>{const{blockedBy:s=[],...a}=e,n=s.filter(i=>!t.has(i));return n.length===0?a:{...a,blockedBy:n}},dt=(e,t)=>{const s=new Set(e.stories.filter(t).map(a=>a.id));return{...e,stories:e.stories.filter(a=>!s.has(a.id)).map(a=>a.blockedBy?.some(n=>s.has(n))?os(a,s):a)}},oe=(e,t)=>{const{[t]:s,...a}=e;return a},lt=(e,t)=>e.snapshots.map(s=>{const a=new Map;for(const n of s.tally.map(t)){const i=Ne(n),r=a.get(i);a.set(i,r?{...r,stories:r.stories+n.stories,points:r.points+n.points}:n)}return{...s,tally:[...a.values()]}}),An=e=>{const{statusId:t,...s}=e;return s},ds=(e,t,s,a=!1)=>{const n=t.milestoneId??void 0,i=e.stories.filter(S=>S.id!==t.id),r=i.filter(S=>S.stepId===t.stepId&&(S.milestoneId??void 0)===n);if(s!==null){const S=i.find(M=>M.id===s);if(!S||S.stepId!==t.stepId||(S.milestoneId??void 0)!==n)return null;if(a){const M=x(e,t.id);if(!M||S.stepId!==M.stepId||(S.milestoneId??void 0)!==(M.milestoneId??void 0))return null}}const o=s===null?[t,...r]:ls(r,t,s),d=i.findIndex(S=>S.stepId===t.stepId&&(S.milestoneId??void 0)===n),p=new Set(r.map(S=>S.id)),u=i.filter(S=>!p.has(S.id)),w=d<0?u.length:Math.min(d,u.length),E=[...u.slice(0,w),...o,...u.slice(w)];return{...e,stories:E}},ce=(e,t,s)=>{if(!e.some(i=>i.id===t)||s!==null&&!e.some(i=>i.id===s))return null;if(s===t)return[...e];const a=e.find(i=>i.id===t);if(a===void 0)return null;const n=e.filter(i=>i.id!==t);return ls(n,a,s)},ls=(e,t,s)=>{const a=[...e],n=s===null?-1:a.findIndex(i=>i.id===s);return a.splice(n+1,0,t),a},ue=_a({en:{renameActivity:"Rename activity",changeActivityActor:"Change whose experience",renameStep:"Rename step",reorderStep:"Reorder step",reorderActivity:"Reorder activity group",addActivity:"Add activity",addStep:"Add step",deleteActivity:"Delete activity",deleteStep:"Delete step",renameStory:"Rename story",updateStoryDescription:"Update story description",changeMilestone:"Change milestone",moveStory:"Move story",reorderStory:"Reorder story",addStory:"Add story",deleteStory:"Delete story",renameMilestone:"Rename milestone",addMilestone:"Add milestone",deleteMilestone:"Delete milestone",reorderMilestone:"Reorder milestone",changeStoryStatus:"Change story status",addStatus:"Add status",renameStatus:"Rename status",changeStatusTone:"Change status color",changeStatusIcon:"Change status icon",addStoryLink:"Link to story",removeStoryLink:"Unlink from story",addStoryComment:"Comment on story",deleteStoryComment:"Delete story comment",deleteStatus:"Delete status",reorderStatus:"Reorder status",addLabel:"Add label",renameLabel:"Rename label",changeLabelTone:"Change label color",deleteLabel:"Delete label",reorderLabel:"Reorder label",addStoryLabel:"Label story",removeStoryLabel:"Unlabel story",addStoryBlocker:"Make story wait on",removeStoryBlocker:"Stop story waiting on",changeMilestoneDueDate:"Change milestone due date",changeStatusWeight:"Change status weight",setDoneStatus:"Change done status",addEstimate:"Add estimate",renameEstimate:"Rename estimate",changeEstimatePoints:"Change estimate points",deleteEstimate:"Delete estimate",reorderEstimate:"Reorder estimate",setStoryEstimate:"Estimate story",recordSnapshot:"Record burndown snapshot",deleteSnapshot:"Delete burndown snapshot",toValue:e=>`\u2192 \u201C${e}\u201D`,fromTo:(e,t)=>`\u201C${e}\u201D \u2192 \u201C${t}\u201D`,added:e=>`+ \u201C${e}\u201D`,removed:e=>`\u2212 \u201C${e}\u201D`,toFront:"\u2192 To the front",afterName:e=>`\u2192 Right after \u201C${e}\u201D`,toUnassigned:"\u2192 Unassigned",toName:e=>`\u2192 ${e}`,snapshotSummary:(e,t)=>`${e} \xB7 ${t===1?"1 story":`${t} stories`}`,activityGroup:"Activity",stepGroup:"Step",storyGroup:"Story",milestoneGroup:"Milestone",statusGroup:"Status",labelGroup:"Label",estimateGroup:"Estimate",snapshotGroup:"Snapshot",mapGroup:"Map",targetLabel:(e,t)=>`${e} \xB7 ${t}`,targetMissing:(e,t)=>`${e} \xB7 ${t} (missing)`,wholeMap:"Whole map",unassigned:"Unassigned",emptyTitle:"No backbone yet",emptyBody:"Add activities and steps, and the story map appears here.",firstActivityButton:"+ First activity",groupingLabel:"Group by",groupViewTab:"Activity group",groupAxisHeader:"Activity group \u2192",activityAxis:"Activity \u2192",milestoneAxis:"Milestone \u2193",stepNameLabel:"Step name",activityNameLabel:"Activity name",milestoneNameLabel:"Milestone name",addStepAria:"Add a step to this activity",newActivityButton:"+ Activity",newMilestoneButton:"+ Milestone",addCellButton:"+ Add",addStoryCellAria:"Add a story to this cell",storyCount:e=>e===1?"1 story":`${e} stories`,pageTabsLabel:"Page",mapTab:"User Story Mapping",tableTab:"Table",milestonesTab:"Milestones",statusesTab:"Statuses",labelsTab:"Labels",burndownTab:"Burndown",shareOfStories:e=>`${e}% of all stories`,coverageLabel:"Backbone coverage",coverage:(e,t)=>`${e} / ${t} steps`,storiesLabel:"Stories",timeframeUnset:"Timing not set",milestoneNoDescription:"No description yet.",noMilestonesTitle:"No milestones yet",noMilestonesBody:"Add a milestone to slice the map into releases.",commentCountAria:e=>e===1?"1 comment":`${e} comments`,reviewCountAria:e=>e===1?"1 review comment":`${e} review comments`,statusNameLabel:"Status name",statusToneLabel:"Color",toneName:e=>({gray:"Gray",blue:"Blue",violet:"Violet",green:"Green",amber:"Amber",accent:"Indigo"})[e],statusIconLabel:"Icon",iconName:e=>({progress:"Progress ring",circle:"Circle",lightbulb:"Light bulb",flag:"Flag",play:"Play",clock:"Clock",eye:"Eye",pause:"Pause",check:"Check",x:"Cross"})[e],statusShare:(e,t)=>`${e===1?"1 story":`${e} stories`} \xB7 ${t}%`,filterLabel:"Filter",filterKeyLabel:e=>({status:"Status",label:"Label",estimate:"Estimate",assignee:"Assignee"})[e],filterAll:"All",noLabel:"No label",unestimatedFilter:"Not estimated",clearFilter:"Clear",showFinished:e=>`Show ${e}`,criticalPathButton:"Critical path",criticalPathHint:"Highlight the chain of waiting stories with the most work left, from their estimates and dependencies. If it slips, the whole map slips.",criticalPathCount:e=>e===1?"1 story":`${e} stories`,progressAria:e=>`Progress: ${e}`,activityActorLabel:"Who",noStatusesTitle:"No statuses yet",noStatusesBody:"Add statuses such as Idea / Ready / Done, and the map colors each story by where it stands.",newStatusButton:"+ Status",moveUpAria:"Move up",moveDownAria:"Move down",deleteStatusAria:"Delete this status",doneStatusMark:"Done",doneStatusAria:e=>`Count ${e} as done`,statusWeightLabel:"Status weights",statusWeightHint:"Counts a story partly done by the statuses it has passed.",weightsNeedStatuses:"With two statuses or more before the done one, a story\u2019s work can be shared out between them.",setMeasure:"Change how the work left is measured",weightLineLabel:(e,t)=>`Between ${e} and ${t}`,weightLineValue:(e,t,s,a)=>`${e} ${t}, ${s} ${a}`,labelNameLabel:"Label name",noLabelsTitle:"No labels yet",noLabelsBody:"You can add labels here.",newLabelButton:"+ Label",deleteLabelAria:"Delete this label",burndownMilestoneLabel:"Milestone",dueDateLabel:"Due",noDueDate:"No due date",measureLabel:"Measure by",measureName:e=>({stories:"Stories",points:"Story points",weighted:"Points \xD7 status"})[e],measureSettingsLabel:"Measure settings",recordSnapshotButton:"Record snapshot",recordSnapshotHint:"Keeps today\u2019s totals per milestone and status, so the lines have a point to start from.",combinedChartTitle:e=>e?"Weighted burndown":"Burndown",combinedChartHint:e=>({stories:"The number of stories not done yet.",points:"The points of the stories not done yet.",weighted:"The points of each story \xD7 the share of it the status weights leave ahead."})[e]+" It reaches 0 when every story is done.",statusChartTitle:e=>`Left to reach \u201C${e}\u201D`,statusChartsLabel:"By status",chartNow:"Now",chartToday:"Today",chartDue:"Due",chartIdeal:"Ideal",chartActual:"Actual",chartAbout:"How this chart is counted",axisDate:(e,t)=>ps("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",copyStoryKey:e=>`Copy ${e}`,storyKeyCopied:"Copied",storyKeyColumn:"Key",copyId:"Copy ID",storyTitleLabel:"Title",storyDescriptionLabel:"Description",storyLinksLabel:"Links",storyLabelsLabel:"Labels",storyNoLabels:"No labels yet.",manageLabels:"Manage labels",storyDependenciesLabel:"Dependencies",storyBlockersLabel:"Waits on",storyDependentsLabel:"Holds up",storyNoBlockers:"Nothing to wait on.",storyNoDependents:"No story waits on this one.",addBlockerPlaceholder:"Search for a story to wait on\u2026",addDependentPlaceholder:"Search for a story to wait on this\u2026",noDependencyMatch:"No story matches.",blockerFinished:"Done",removeBlockerAria:e=>`Stop waiting on ${e}`,removeDependentAria:e=>`Stop ${e} waiting on this`,blocksChip:e=>`Blocks ${e}`,waitsChip:e=>`Waits on ${e}`,blocksChipTitle:e=>`${e} ${e===1?"story waits":"stories wait"} on this one`,waitsChipTitle:e=>`Waits on ${e} unfinished ${e===1?"story":"stories"}`,storyEstimateLabel:"Estimate",unestimated:"None",estimateText:(e,t)=>e===String(t)?e:`${e} (${t} pt)`,estimateChipTitle:e=>`Estimate: ${e}`,manageEstimates:"Manage the scale",linkUrlLabel:"URL",addLinkButton:"Add",removeLinkAria:e=>`Remove ${e}`,deleteStoryButton:"Delete story",storyCommentsLabel:"Comments",reviewStoryButton:"Review comment",reviewStoryTitle:"Write a review comment on this story, asking the agent for a change",storyStatusAria:e=>`Status: ${e}`,addMember:"Add member",renameMember:"Rename member",changeMemberTone:"Change member color",deleteMember:"Delete member",reorderMember:"Reorder member",setStoryAssignee:"Assign story",memberGroup:"Member",membersTab:"Members",memberNameLabel:"Member name",noMembersTitle:"No members yet",noMembersBody:"Add the people on the team, then assign each story to the one who takes it on.",newMemberButton:"+ Member",deleteMemberAria:"Delete this member",storyAssigneeLabel:"Assignee",noAssignee:"No one",storyNoMembers:"No members yet.",manageMembers:"Manage members",assigneeChipTitle:e=>`Assigned to ${e}`,noAssigneeFilter:"Unassigned",moreTabsLabel:"More tabs",enableFeature:"Turn on feature",disableFeature:"Turn off feature",featureName:e=>({estimates:"Estimates & burndown",assignees:"Members & assignees"})[e],featureHint:e=>({estimates:"An estimate scale for the stories and a burndown per milestone.",assignees:"The members of the team and who each story is assigned to."})[e],featuresNote:"Turning a feature off only hides it: what it holds is kept.",newActivityName:"New activity",newStepName:"New step",newMilestoneName:"New milestone",newStoryName:"New story",newStatusName:"New status",newLabelName:"New label",newMemberName:"New member",newEstimateName:"New"},ja:{renameActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u540D\u3092\u5909\u66F4",changeActivityActor:"\u4F53\u9A13\u3059\u308B\u4EBA\u3092\u5909\u66F4",renameStep:"\u30B9\u30C6\u30C3\u30D7\u540D\u3092\u5909\u66F4",reorderStep:"\u30B9\u30C6\u30C3\u30D7\u306E\u9806\u5E8F\u3092\u5909\u66F4",reorderActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7\u306E\u9806\u5E8F\u3092\u5909\u66F4",addActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8FFD\u52A0",addStep:"\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0",deleteActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u524A\u9664",deleteStep:"\u30B9\u30C6\u30C3\u30D7\u3092\u524A\u9664",renameStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u540D\u3092\u5909\u66F4",updateStoryDescription:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u8AAC\u660E\u3092\u66F4\u65B0",changeMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u5909\u66F4",moveStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u79FB\u52D5",reorderStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u9806\u5E8F\u3092\u5909\u66F4",addStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u8FFD\u52A0",deleteStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u524A\u9664",renameMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u540D\u3092\u5909\u66F4",addMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0",deleteMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u524A\u9664",reorderMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u306E\u9806\u5E8F\u3092\u5909\u66F4",changeStoryStatus:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u5909\u66F4",addStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8FFD\u52A0",renameStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u540D\u3092\u5909\u66F4",changeStatusTone:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u8272\u3092\u5909\u66F4",changeStatusIcon:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u30A2\u30A4\u30B3\u30F3\u3092\u5909\u66F4",addStoryLink:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30EA\u30F3\u30AF\u3092\u8FFD\u52A0",removeStoryLink:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30EA\u30F3\u30AF\u3092\u524A\u9664",addStoryComment:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0",deleteStoryComment:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30B3\u30E1\u30F3\u30C8\u3092\u524A\u9664",deleteStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u524A\u9664",reorderStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u9806\u5E8F\u3092\u5909\u66F4",addLabel:"\u30E9\u30D9\u30EB\u3092\u8FFD\u52A0",renameLabel:"\u30E9\u30D9\u30EB\u540D\u3092\u5909\u66F4",changeLabelTone:"\u30E9\u30D9\u30EB\u306E\u8272\u3092\u5909\u66F4",deleteLabel:"\u30E9\u30D9\u30EB\u3092\u524A\u9664",reorderLabel:"\u30E9\u30D9\u30EB\u306E\u9806\u5E8F\u3092\u5909\u66F4",addStoryLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30E9\u30D9\u30EB\u3092\u4ED8\u4E0E",removeStoryLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30E9\u30D9\u30EB\u3092\u5916\u3059",addStoryBlocker:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F9D\u5B58\u5148\u3092\u8FFD\u52A0",removeStoryBlocker:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F9D\u5B58\u5148\u3092\u5916\u3059",changeMilestoneDueDate:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u306E\u671F\u65E5\u3092\u5909\u66F4",changeStatusWeight:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\u3092\u5909\u66F4",setDoneStatus:"\u5B8C\u4E86\u3068\u3059\u308B\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u5909\u66F4",addEstimate:"\u898B\u7A4D\u3082\u308A\u3092\u8FFD\u52A0",renameEstimate:"\u898B\u7A4D\u3082\u308A\u540D\u3092\u5909\u66F4",changeEstimatePoints:"\u898B\u7A4D\u3082\u308A\u306E\u30DD\u30A4\u30F3\u30C8\u3092\u5909\u66F4",deleteEstimate:"\u898B\u7A4D\u3082\u308A\u3092\u524A\u9664",reorderEstimate:"\u898B\u7A4D\u3082\u308A\u306E\u9806\u5E8F\u3092\u5909\u66F4",setStoryEstimate:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u898B\u7A4D\u3082\u308B",recordSnapshot:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332",deleteSnapshot:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u524A\u9664",toValue:e=>`\u2192 \u300C${e}\u300D`,fromTo:(e,t)=>`\u300C${e}\u300D\u2192\u300C${t}\u300D`,added:e=>`+ \u300C${e}\u300D`,removed:e=>`\u2212 \u300C${e}\u300D`,toFront:"\u2192 \u5148\u982D\u3078",afterName:e=>`\u2192 \u300C${e}\u300D\u306E\u76F4\u5F8C\u3078`,toUnassigned:"\u2192 \u672A\u5272\u5F53\u3078",toName:e=>`\u2192 ${e}`,snapshotSummary:(e,t)=>`${e} \xB7 ${t} \u30B9\u30C8\u30FC\u30EA\u30FC`,activityGroup:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",stepGroup:"\u30B9\u30C6\u30C3\u30D7",storyGroup:"\u30B9\u30C8\u30FC\u30EA\u30FC",milestoneGroup:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",statusGroup:"\u30B9\u30C6\u30FC\u30BF\u30B9",labelGroup:"\u30E9\u30D9\u30EB",estimateGroup:"\u898B\u7A4D\u3082\u308A",snapshotGroup:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8",mapGroup:"\u30DE\u30C3\u30D7",targetLabel:(e,t)=>`${e} \xB7 ${t}`,targetMissing:(e,t)=>`${e} \xB7 ${t} (missing)`,wholeMap:"\u30DE\u30C3\u30D7\u5168\u4F53",unassigned:"\u672A\u5272\u5F53",emptyTitle:"\u30D0\u30C3\u30AF\u30DC\u30FC\u30F3\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",emptyBody:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3068\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u3053\u3053\u306B\u30B9\u30C8\u30FC\u30EA\u30FC\u30DE\u30C3\u30D7\u304C\u73FE\u308C\u307E\u3059\u3002",firstActivityButton:"+ \u6700\u521D\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",groupingLabel:"\u307E\u3068\u3081\u308B\u5358\u4F4D",groupViewTab:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7",groupAxisHeader:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7 \u2192",activityAxis:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3 \u2192",milestoneAxis:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3 \u2193",stepNameLabel:"\u30B9\u30C6\u30C3\u30D7\u540D",activityNameLabel:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u540D",milestoneNameLabel:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u540D",addStepAria:"\u3053\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u306B\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0",newActivityButton:"+ \u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",newMilestoneButton:"+ \u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",addCellButton:"+ \u8FFD\u52A0",addStoryCellAria:"\u3053\u306E\u30DE\u30B9\u306B\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u8FFD\u52A0",storyCount:e=>`${e} \u30B9\u30C8\u30FC\u30EA\u30FC`,pageTabsLabel:"\u30DA\u30FC\u30B8",mapTab:"User Story Mapping",tableTab:"\u30C6\u30FC\u30D6\u30EB",milestonesTab:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",statusesTab:"\u30B9\u30C6\u30FC\u30BF\u30B9",labelsTab:"\u30E9\u30D9\u30EB",burndownTab:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3",shareOfStories:e=>`\u5168\u30B9\u30C8\u30FC\u30EA\u30FC\u306E ${e}%`,coverageLabel:"\u30D0\u30C3\u30AF\u30DC\u30FC\u30F3\u306E\u7DB2\u7F85",coverage:(e,t)=>`${e} / ${t} \u30B9\u30C6\u30C3\u30D7`,storiesLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC",timeframeUnset:"\u6642\u671F\u672A\u5B9A",milestoneNoDescription:"\u8AAC\u660E\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",noMilestonesTitle:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noMilestonesBody:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u30DE\u30C3\u30D7\u3092\u30EA\u30EA\u30FC\u30B9\u3054\u3068\u306B\u533A\u5207\u308C\u307E\u3059\u3002",commentCountAria:e=>`\u30B3\u30E1\u30F3\u30C8 ${e} \u4EF6`,reviewCountAria:e=>`\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8 ${e} \u4EF6`,statusNameLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u540D",statusToneLabel:"\u8272",toneName:e=>({gray:"\u30B0\u30EC\u30FC",blue:"\u9752",violet:"\u7D2B",green:"\u7DD1",amber:"\u9EC4",accent:"\u30A4\u30F3\u30C7\u30A3\u30B4"})[e],statusIconLabel:"\u30A2\u30A4\u30B3\u30F3",iconName:e=>({progress:"\u9032\u6357\u30EA\u30F3\u30B0",circle:"\u5186",lightbulb:"\u96FB\u7403",flag:"\u65D7",play:"\u518D\u751F",clock:"\u6642\u8A08",eye:"\u76EE",pause:"\u4E00\u6642\u505C\u6B62",check:"\u30C1\u30A7\u30C3\u30AF",x:"\u30D0\u30C4"})[e],statusShare:(e,t)=>`${e} \u30B9\u30C8\u30FC\u30EA\u30FC \xB7 ${t}%`,filterLabel:"\u30D5\u30A3\u30EB\u30BF\u30FC",filterKeyLabel:e=>({status:"\u30B9\u30C6\u30FC\u30BF\u30B9",label:"\u30E9\u30D9\u30EB",estimate:"\u898B\u7A4D\u3082\u308A",assignee:"\u62C5\u5F53\u8005"})[e],filterAll:"\u3059\u3079\u3066",noLabel:"\u30E9\u30D9\u30EB\u306A\u3057",unestimatedFilter:"\u898B\u7A4D\u3082\u308A\u306A\u3057",clearFilter:"\u30AF\u30EA\u30A2",showFinished:e=>`${e}\u3082\u8868\u793A`,criticalPathButton:"\u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u30D1\u30B9",criticalPathHint:"\u898B\u7A4D\u3082\u308A\u3068\u4F9D\u5B58\u95A2\u4FC2\u304B\u3089\u3001\u6B8B\u308A\u306E\u4F5C\u696D\u304C\u6700\u3082\u591A\u3044\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u9023\u306A\u308A\u3092\u5F37\u8ABF\u3057\u307E\u3059\u3002\u3053\u3053\u304C\u9045\u308C\u308B\u3068\u30DE\u30C3\u30D7\u5168\u4F53\u304C\u9045\u308C\u307E\u3059\u3002",criticalPathCount:e=>`${e} \u4EF6`,progressAria:e=>`\u9032\u307F\u5177\u5408: ${e}`,activityActorLabel:"\u8AB0\u306E\u4F53\u9A13",noStatusesTitle:"\u30B9\u30C6\u30FC\u30BF\u30B9\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noStatusesBody:"Idea / Ready / Done \u306E\u3088\u3046\u306A\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u30DE\u30C3\u30D7\u306E\u30AB\u30FC\u30C9\u304C\u9032\u307F\u5177\u5408\u3067\u8272\u5206\u3051\u3055\u308C\u307E\u3059\u3002",newStatusButton:"+ \u30B9\u30C6\u30FC\u30BF\u30B9",moveUpAria:"\u4E0A\u3078\u79FB\u52D5",moveDownAria:"\u4E0B\u3078\u79FB\u52D5",deleteStatusAria:"\u3053\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u524A\u9664",doneStatusMark:"\u5B8C\u4E86",doneStatusAria:e=>`${e}\u3092\u5B8C\u4E86\u3068\u3059\u308B`,statusWeightLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F",statusWeightHint:"\u901A\u308A\u904E\u304E\u305F\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u5206\u3060\u3051\u3001\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u9014\u4E2D\u307E\u3067\u9032\u3093\u3060\u3082\u306E\u3068\u3057\u3066\u6570\u3048\u307E\u3059\u3002",weightsNeedStatuses:"\u5B8C\u4E86\u3068\u3059\u308B\u30B9\u30C6\u30FC\u30BF\u30B9\u3088\u308A\u524D\u306B\u30B9\u30C6\u30FC\u30BF\u30B9\u304C 2 \u3064\u4EE5\u4E0A\u3042\u308B\u3068\u3001\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F5C\u696D\u3092\u305D\u306E\u9593\u3067\u5206\u3051\u3089\u308C\u307E\u3059\u3002",setMeasure:"\u6B8B\u308A\u306E\u4F5C\u696D\u91CF\u306E\u8A08\u6E2C\u65B9\u6CD5\u3092\u5909\u66F4",weightLineLabel:(e,t)=>`${e}\u3068${t}\u306E\u5883\u76EE`,weightLineValue:(e,t,s,a)=>`${e} ${t}\u3001${s} ${a}`,labelNameLabel:"\u30E9\u30D9\u30EB\u540D",noLabelsTitle:"\u30E9\u30D9\u30EB\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noLabelsBody:"\u30E9\u30D9\u30EB\u3092\u8FFD\u52A0\u3067\u304D\u307E\u3059\u3002",newLabelButton:"+ \u30E9\u30D9\u30EB",deleteLabelAria:"\u3053\u306E\u30E9\u30D9\u30EB\u3092\u524A\u9664",burndownMilestoneLabel:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",dueDateLabel:"\u671F\u65E5",noDueDate:"\u671F\u65E5\u306A\u3057",measureLabel:"\u8A08\u6E2C\u65B9\u6CD5",measureName:e=>({stories:"\u30B9\u30C8\u30FC\u30EA\u30FC\u6570",points:"\u30B9\u30C8\u30FC\u30EA\u30FC\u30DD\u30A4\u30F3\u30C8",weighted:"\u30DD\u30A4\u30F3\u30C8 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9"})[e],measureSettingsLabel:"\u8A08\u6E2C\u306E\u8A2D\u5B9A",recordSnapshotButton:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332",recordSnapshotHint:"\u4ECA\u306E\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9\u3054\u3068\u306E\u96C6\u8A08\u3092\u6B8B\u3057\u3001\u7DDA\u306E\u8D77\u70B9\u306B\u3057\u307E\u3059\u3002",combinedChartTitle:e=>e?"\u91CD\u307F\u4ED8\u304D\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u30C1\u30E3\u30FC\u30C8":"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u30C1\u30E3\u30FC\u30C8",combinedChartHint:e=>({stories:"\u307E\u3060 Done \u3067\u306A\u3044\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u6570\u3002",points:"\u307E\u3060 Done \u3067\u306A\u3044\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30DD\u30A4\u30F3\u30C8\u3002",weighted:"\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30DD\u30A4\u30F3\u30C8 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\u3067\u6C7A\u307E\u308B\u6B8B\u308A\u306E\u5272\u5408\u3002"})[e]+"\u3059\u3079\u3066 Done \u306B\u306A\u308B\u3068 0 \u3067\u3059\u3002",statusChartTitle:e=>`\u300C${e}\u300D\u306B\u5C4A\u304F\u307E\u3067\u306E\u6B8B\u308A`,statusChartsLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u5225",chartNow:"\u73FE\u5728",chartToday:"\u4ECA\u65E5",chartDue:"\u671F\u65E5",chartIdeal:"\u7406\u60F3",chartActual:"\u5B9F\u7E3E",chartAbout:"\u3053\u306E\u30C1\u30E3\u30FC\u30C8\u306E\u6570\u3048\u65B9",axisDate:(e,t)=>ps("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",copyStoryKey:e=>`${e} \u3092\u30B3\u30D4\u30FC`,storyKeyCopied:"\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",storyKeyColumn:"\u30AD\u30FC",copyId:"ID\u3092\u30B3\u30D4\u30FC",storyTitleLabel:"\u30BF\u30A4\u30C8\u30EB",storyDescriptionLabel:"\u8AAC\u660E",storyLinksLabel:"\u30EA\u30F3\u30AF",storyLabelsLabel:"\u30E9\u30D9\u30EB",storyNoLabels:"\u30E9\u30D9\u30EB\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",manageLabels:"\u30E9\u30D9\u30EB\u3092\u7BA1\u7406",storyDependenciesLabel:"\u4F9D\u5B58\u95A2\u4FC2",storyBlockersLabel:"\u4F9D\u5B58\u5148\uFF08\u5148\u306B\u7D42\u3048\u308B\uFF09",storyDependentsLabel:"\u4F9D\u5B58\u5143\uFF08\u3053\u308C\u3092\u5F85\u3064\uFF09",storyNoBlockers:"\u5F85\u3063\u3066\u3044\u308B\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u3042\u308A\u307E\u305B\u3093\u3002",storyNoDependents:"\u3053\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F85\u3064\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002",addBlockerPlaceholder:"\u4F9D\u5B58\u5148\u3092\u691C\u7D22\u3057\u3066\u8FFD\u52A0\u2026",addDependentPlaceholder:"\u3053\u308C\u3092\u5F85\u3064\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u691C\u7D22\u3057\u3066\u8FFD\u52A0\u2026",noDependencyMatch:"\u4E00\u81F4\u3059\u308B\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u3042\u308A\u307E\u305B\u3093\u3002",blockerFinished:"\u5B8C\u4E86",removeBlockerAria:e=>`${e} \u3078\u306E\u4F9D\u5B58\u3092\u5916\u3059`,removeDependentAria:e=>`${e} \u304B\u3089\u306E\u4F9D\u5B58\u3092\u5916\u3059`,blocksChip:e=>`${e} \u4EF6\u3092\u30D6\u30ED\u30C3\u30AF`,waitsChip:e=>`${e} \u4EF6\u5F85\u3061`,blocksChipTitle:e=>`${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u304C\u3053\u308C\u3092\u5F85\u3063\u3066\u3044\u307E\u3059`,waitsChipTitle:e=>`\u672A\u5B8C\u4E86\u306E ${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F85\u3063\u3066\u3044\u307E\u3059`,storyEstimateLabel:"\u898B\u7A4D\u3082\u308A",unestimated:"\u306A\u3057",estimateText:(e,t)=>e===String(t)?e:`${e}\uFF08${t} pt\uFF09`,estimateChipTitle:e=>`\u898B\u7A4D\u3082\u308A: ${e}`,manageEstimates:"\u76EE\u76DB\u308A\u3092\u7BA1\u7406",linkUrlLabel:"URL",addLinkButton:"\u8FFD\u52A0",removeLinkAria:e=>`${e} \u3092\u5916\u3059`,deleteStoryButton:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u524A\u9664",storyCommentsLabel:"\u30B3\u30E1\u30F3\u30C8",reviewStoryButton:"\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8",reviewStoryTitle:"\u3053\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u3064\u3044\u3066 Agent \u306B\u76F4\u3057\u3066\u307B\u3057\u3044\u3053\u3068\u3092\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8\u306B\u66F8\u304F",storyStatusAria:e=>`\u30B9\u30C6\u30FC\u30BF\u30B9: ${e}`,addMember:"\u30E1\u30F3\u30D0\u30FC\u3092\u8FFD\u52A0",renameMember:"\u30E1\u30F3\u30D0\u30FC\u540D\u3092\u5909\u66F4",changeMemberTone:"\u30E1\u30F3\u30D0\u30FC\u306E\u8272\u3092\u5909\u66F4",deleteMember:"\u30E1\u30F3\u30D0\u30FC\u3092\u524A\u9664",reorderMember:"\u30E1\u30F3\u30D0\u30FC\u306E\u9806\u5E8F\u3092\u5909\u66F4",setStoryAssignee:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u62C5\u5F53\u8005\u3092\u5909\u66F4",memberGroup:"\u30E1\u30F3\u30D0\u30FC",membersTab:"\u30E1\u30F3\u30D0\u30FC",memberNameLabel:"\u30E1\u30F3\u30D0\u30FC\u540D",noMembersTitle:"\u30E1\u30F3\u30D0\u30FC\u304C\u307E\u3060\u3044\u307E\u305B\u3093",noMembersBody:"\u30C1\u30FC\u30E0\u306E\u30E1\u30F3\u30D0\u30FC\u3092\u8FFD\u52A0\u3057\u3001\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F15\u304D\u53D7\u3051\u308B\u4EBA\u306B\u5272\u308A\u5F53\u3066\u307E\u3059\u3002",newMemberButton:"+ \u30E1\u30F3\u30D0\u30FC",deleteMemberAria:"\u3053\u306E\u30E1\u30F3\u30D0\u30FC\u3092\u524A\u9664",storyAssigneeLabel:"\u62C5\u5F53\u8005",noAssignee:"\u306A\u3057",storyNoMembers:"\u30E1\u30F3\u30D0\u30FC\u306F\u307E\u3060\u3044\u307E\u305B\u3093\u3002",manageMembers:"\u30E1\u30F3\u30D0\u30FC\u3092\u7BA1\u7406",assigneeChipTitle:e=>`\u62C5\u5F53: ${e}`,noAssigneeFilter:"\u62C5\u5F53\u8005\u306A\u3057",moreTabsLabel:"\u307B\u304B\u306E\u30BF\u30D6",enableFeature:"\u6A5F\u80FD\u3092\u6709\u52B9\u5316",disableFeature:"\u6A5F\u80FD\u3092\u7121\u52B9\u5316",featureName:e=>({estimates:"\u898B\u7A4D\u3082\u308A\u3068\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3",assignees:"\u30E1\u30F3\u30D0\u30FC\u3068\u62C5\u5F53\u8005"})[e],featureHint:e=>({estimates:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u898B\u7A4D\u3082\u308A\u3068\u3001\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3054\u3068\u306E\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u3002",assignees:"\u30C1\u30FC\u30E0\u306E\u30E1\u30F3\u30D0\u30FC\u3068\u3001\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u62C5\u5F53\u8005\u3002"})[e],featuresNote:"\u7121\u52B9\u306B\u3057\u3066\u3082\u96A0\u3059\u3060\u3051\u3067\u3001\u5165\u529B\u3057\u305F\u5185\u5BB9\u306F\u6B8B\u308A\u307E\u3059\u3002",newActivityName:"\u65B0\u3057\u3044\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",newStepName:"\u65B0\u3057\u3044\u30B9\u30C6\u30C3\u30D7",newMilestoneName:"\u65B0\u3057\u3044\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",newStoryName:"\u65B0\u3057\u3044\u30B9\u30C8\u30FC\u30EA\u30FC",newStatusName:"\u65B0\u3057\u3044\u30B9\u30C6\u30FC\u30BF\u30B9",newLabelName:"\u65B0\u3057\u3044\u30E9\u30D9\u30EB",newMemberName:"\u65B0\u3057\u3044\u30E1\u30F3\u30D0\u30FC",newEstimateName:"\u65B0\u898F"}}),ps=(e,t,s)=>{const a=new Date(t);switch(s){case"day":case"week":case"biweek":return`${a.getMonth()+1}/${a.getDate()}`;case"month":case"quarter":return new Intl.DateTimeFormat(e,{month:"short",...a.getMonth()===0?{year:"numeric"}:{}}).format(a);case"year":return new Intl.DateTimeFormat(e,{year:"numeric"}).format(a)}},pt=/^[A-Z][A-Z0-9]+-\d+$/,cs=e=>{let t=e;try{t=decodeURIComponent(e)}catch{}return t.replace(/[-_+]+/g," ").trim()},In=(e,t)=>{if(e!=="github.com")return null;const[s,a,n,i]=t;if(s===void 0)return{kind:"github",text:"GitHub",title:"github.com"};if(a===void 0)return{kind:"github",text:s,title:s};const r=`${s}/${a}`;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}},Mn=(e,t)=>{if(e!=="gitlab.com")return null;const s=t.indexOf("-"),a=(s<0?t:t.slice(0,s)).join("/"),n=s<0?void 0:t[s+1],i=s<0?void 0:t[s+2];if(i&&/^\d+$/.test(i)){if(n==="issues")return{kind:"gitlab",text:`#${i}`,title:`${a}#${i}`};if(n==="merge_requests")return{kind:"gitlab",text:`!${i}`,title:`${a}!${i}`}}return{kind:"gitlab",text:a||"GitLab",title:a||e}},Ln=(e,t,s)=>{if(!t.endsWith(".atlassian.net")&&!t.startsWith("jira."))return null;const a=(s[0]==="browse"?s[1]:void 0)??e.searchParams.get("selectedIssue")??s.find(n=>pt.test(n));return a&&pt.test(a)?{kind:"jira",text:a,title:`${t} ${a}`}:{kind:"jira",text:"Jira",title:t}},Dn=(e,t)=>{if(e!=="linear.app")return null;const s=t[1]==="issue"?t[2]?.toUpperCase():void 0;return s&&pt.test(s)?{kind:"linear",text:s,title:s}:{kind:"linear",text:"Linear",title:e}},Rn=(e,t)=>{if(e!=="figma.com")return null;const[s,,a]=t;if((s==="file"||s==="design"||s==="proto"||s==="board")&&a){const n=cs(a);return{kind:"figma",text:n,title:n}}return{kind:"figma",text:"Figma",title:e}},On=(e,t)=>{if(e!=="notion.so"&&!e.endsWith(".notion.site"))return null;const a=(t.at(-1)??"").replace(/-?[0-9a-f]{32}$/i,""),n=a===""?"Notion":cs(a);return{kind:"notion",text:n,title:n}},Ue=e=>{let t;try{t=new URL(e)}catch{return{kind:"web",text:e,title:e}}const s=t.hostname.replace(/^www\./,""),a=t.pathname.split("/").filter(n=>n!=="");return In(s,a)??Mn(s,a)??Ln(t,s,a)??Dn(s,a)??Rn(s,a)??On(s,a)??{kind:"web",text:s,title:e}},Nn=["map","table","milestones","statuses","labels","members","burndown"],Cn={members:"assignees",burndown:"estimates"},us=e=>Nn.filter(t=>{const s=Cn[t];return s===void 0||z(e,s)}),ms=(e,t)=>us(e).find(s=>s===t.tab)??"map",$e=(e,t)=>Zt(e,t.statusId),hs=(e,t)=>{const s=x(e,t)?.blockedBy??[];return{blockers:s,openBlockers:s.filter(a=>{const n=x(e,a);return n!==void 0&&!$e(e,n)}).length,dependents:e.stories.filter(a=>a.blockedBy?.includes(t)).map(a=>a.id)}},Bn=(e,t)=>{const s=new Set(x(e,t)?.blockedBy??[]);return e.stories.filter(a=>a.id!==t&&!s.has(a.id)&&!st(e.stories,a.id,t))},Yn=(e,t)=>e.stories.filter(s=>s.id!==t&&!s.blockedBy?.includes(t)&&!st(e.stories,t,s.id)),Un=["critical-path"],Pe=e=>Un.find(t=>t===e.highlight)??null,Pn=(e,t)=>{if($e(e,t))return 0;const s=be(e)==="stories"?1:ts(e,t),a=Math.max(0,e.statuses.findIndex(n=>n.id===t.statusId));return s*(es(e)[a]??1)},zn=(e,t)=>Pe(t)==="critical-path"?bs(e).ids:null,Fn=1e-9,bs=e=>{const t=new Map(e.stories.map(d=>[d.id,Pn(e,d)]).filter(([,d])=>d>0)),s=new Map,a=new Map;for(const d of e.stories)if(t.has(d.id))for(const p of d.blockedBy??[])t.has(p)&&(s.set(d.id,[...s.get(d.id)??[],p]),a.set(p,[...a.get(p)??[],d.id]));const n=gs(t,s),i=gs(t,a),r=[...t].map(([d,p])=>[d,n(d)+i(d)-p]),o=Math.max(0,...r.map(([,d])=>d));return{ids:new Set(r.filter(([,d])=>o-d<Fn).map(([d])=>d)),work:o}},gs=(e,t)=>{const s=new Map,a=n=>{const i=s.get(n);if(i!==void 0)return i;const r=(e.get(n)??0)+Math.max(0,...(t.get(n)??[]).map(a));return s.set(n,r),r};return a},xe=["status","label","estimate","assignee"],ne="~none",ie={key:"done",value:"show"},fs=(e,t)=>t[ie.key]===ie.value||e.statuses.length<2?new Set:new Set(e.statuses.filter(s=>Zt(e,s.id)).map(s=>s.id)),fe=(e,t)=>{switch(t){case"status":return e.statuses.map(s=>s.id);case"label":return e.labels.length===0?[]:[...e.labels.map(s=>s.id),ne];case"estimate":return!z(e,"estimates")||e.estimates.length===0?[]:[...e.estimates.map(s=>s.id),ne];case"assignee":return!z(e,"assignees")||e.members.length===0?[]:[...e.members.map(s=>s.id),ne]}},ze=(e,t)=>{const s=fs(e,t),a=n=>{const i=t[n];if(i===void 0||i==="")return new Set;const r=new Set(i.split(","));return new Set(fe(e,n).filter(o=>r.has(o)&&!s.has(o)))};return{status:a("status"),label:a("label"),estimate:a("estimate"),assignee:a("assignee"),hiddenStatusIds:s}},ys=(e,t,s)=>{const a=fe(e,t).filter(n=>s.has(n));return a.length===0?null:a.join(",")},Vn=(e,t)=>{const s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s},Gn=e=>xe.some(t=>e[t].size>0),vs=(e,t)=>{const s=t.labelIds??[];return(t.statusId===void 0||!e.hiddenStatusIds.has(t.statusId))&&Fe(e.status,t.statusId===void 0?[]:[t.statusId])&&Fe(e.label,s.length===0?[ne]:s)&&Fe(e.estimate,[t.estimateId??ne])&&Fe(e.assignee,[t.assigneeId??ne])},Fe=(e,t)=>e.size===0||t.some(s=>e.has(s)),R=(e,t,s)=>{const a=typeof s=="string"?s:"",n=typeof t=="string"?t:void 0;return n===void 0?e.toValue(a):e.fromTo(n,a)},de=(e,t)=>typeof t=="string"?e.afterName(t):e.toFront,Hn={SET_ACTIVITY_NAME:(e,t,s)=>({title:e.renameActivity,tone:"update",body:R(e,te(s,t.target.id)?.name,v(y.SET_ACTIVITY_NAME,t).name??"")}),SET_ACTIVITY_ACTOR:(e,t,s)=>{const a=v(y.SET_ACTIVITY_ACTOR,t).actor.trim();return{title:e.changeActivityActor,tone:"update",body:a===""?e.removed(te(s,t.target.id)?.actor??""):R(e,te(s,t.target.id)?.actor,a)}},SET_STEP_NAME:(e,t,s)=>({title:e.renameStep,tone:"update",body:R(e,B(s,t.target.id)?.step.name,v(y.SET_STEP_NAME,t).name??"")}),REORDER_STEP:(e,t)=>({title:e.reorderStep,tone:"move",body:de(e,v(y.REORDER_STEP,t).after)}),REORDER_ACTIVITY:(e,t,s)=>{const a=v(y.REORDER_ACTIVITY,t).after;return{title:e.reorderActivity,tone:"move",body:de(e,a===null?null:te(s,a)?.name??a)}},ADD_ACTIVITY:(e,t)=>({title:e.addActivity,tone:"create",body:e.added(String(v(y.ADD_ACTIVITY,t).name??""))}),ADD_STEP:(e,t)=>({title:e.addStep,tone:"create",body:e.added(String(v(y.ADD_STEP,t).name??""))}),DELETE_ACTIVITY:(e,t,s)=>({title:e.deleteActivity,tone:"delete",body:e.removed(te(s,t.target.id)?.name??t.target.id)}),DELETE_STEP:(e,t,s)=>({title:e.deleteStep,tone:"delete",body:e.removed(B(s,t.target.id)?.step.name??t.target.id)}),SET_STORY_NAME:(e,t,s)=>({title:e.renameStory,tone:"update",body:R(e,x(s,t.target.id)?.name,v(y.SET_STORY_NAME,t).name??"")}),SET_STORY_DESCRIPTION:(e,t)=>({title:e.updateStoryDescription,tone:"update",body:e.toValue(String(v(y.SET_STORY_DESCRIPTION,t).description??"").slice(0,90))}),SET_STORY_MILESTONE:(e,t,s)=>{const a=v(y.SET_STORY_MILESTONE,t).milestoneId;return{title:e.changeMilestone,tone:"move",body:a==null?e.toUnassigned:e.toName(P(s,String(a))?.name??String(a))}},MOVE_STORY:(e,t,s)=>({title:e.moveStory,tone:"move",body:e.toName(B(s,String(v(y.MOVE_STORY,t).stepId))?.step.name??String(v(y.MOVE_STORY,t).stepId??""))}),REORDER_STORY:(e,t)=>({title:e.reorderStory,tone:"move",body:de(e,v(y.REORDER_STORY,t).after)}),ADD_STORY:(e,t)=>({title:e.addStory,tone:"create",body:e.added(String(v(y.ADD_STORY,t).name??""))}),DELETE_STORY:(e,t,s)=>({title:e.deleteStory,tone:"delete",body:e.removed(x(s,t.target.id)?.name??t.target.id)}),SET_MILESTONE_NAME:(e,t,s)=>({title:e.renameMilestone,tone:"update",body:R(e,P(s,t.target.id)?.name,v(y.SET_MILESTONE_NAME,t).name??"")}),ADD_MILESTONE:(e,t)=>({title:e.addMilestone,tone:"create",body:e.added(String(v(y.ADD_MILESTONE,t).name??""))}),DELETE_MILESTONE:(e,t,s)=>({title:e.deleteMilestone,tone:"delete",body:e.removed(P(s,t.target.id)?.name??t.target.id)}),REORDER_MILESTONE:(e,t)=>({title:e.reorderMilestone,tone:"move",body:de(e,v(y.REORDER_MILESTONE,t).after)}),ADD_STORY_LINK:(e,t)=>{const{url:s,label:a}=v(y.ADD_STORY_LINK,t);return{title:e.addStoryLink,tone:"create",body:e.added(a??Ue(s).title)}},REMOVE_STORY_LINK:(e,t,s)=>{const{url:a}=v(y.REMOVE_STORY_LINK,t),n=x(s,t.target.id)?.links?.find(i=>i.url===a);return{title:e.removeStoryLink,tone:"delete",body:e.removed(n?.label??Ue(a).title)}},ADD_STORY_COMMENT:(e,t)=>({title:e.addStoryComment,tone:"create",body:e.added(v(y.ADD_STORY_COMMENT,t).body)}),DELETE_STORY_COMMENT:(e,t,s)=>{const{commentId:a}=v(y.DELETE_STORY_COMMENT,t),n=x(s,t.target.id)?.comments?.find(i=>i.id===a);return{title:e.deleteStoryComment,tone:"delete",body:e.removed(n?.body??a)}},SET_STORY_STATUS:(e,t,s)=>{const a=v(y.SET_STORY_STATUS,t).statusId;return{title:e.changeStoryStatus,tone:"update",body:e.toName(D(s,a)?.name??a)}},ADD_STATUS:(e,t)=>({title:e.addStatus,tone:"create",body:e.added(v(y.ADD_STATUS,t).name)}),SET_STATUS_NAME:(e,t,s)=>({title:e.renameStatus,tone:"update",body:R(e,D(s,t.target.id)?.name,v(y.SET_STATUS_NAME,t).name)}),SET_STATUS_TONE:(e,t,s)=>{const a=D(s,t.target.id)?.tone,n=v(y.SET_STATUS_TONE,t).tone;return{title:e.changeStatusTone,tone:"update",body:R(e,a===void 0?void 0:e.toneName(a),e.toneName(n))}},SET_STATUS_ICON:(e,t,s)=>{const a=D(s,t.target.id)?.icon,n=v(y.SET_STATUS_ICON,t).icon;return{title:e.changeStatusIcon,tone:"update",body:R(e,a===void 0?void 0:e.iconName(a),e.iconName(n))}},DELETE_STATUS:(e,t,s)=>({title:e.deleteStatus,tone:"delete",body:e.removed(D(s,t.target.id)?.name??t.target.id)}),REORDER_STATUS:(e,t)=>({title:e.reorderStatus,tone:"move",body:de(e,v(y.REORDER_STATUS,t).after)}),ADD_LABEL:(e,t)=>({title:e.addLabel,tone:"create",body:e.added(v(y.ADD_LABEL,t).name)}),SET_LABEL_NAME:(e,t,s)=>({title:e.renameLabel,tone:"update",body:R(e,Z(s,t.target.id)?.name,v(y.SET_LABEL_NAME,t).name)}),SET_LABEL_TONE:(e,t,s)=>{const a=Z(s,t.target.id)?.tone,n=v(y.SET_LABEL_TONE,t).tone;return{title:e.changeLabelTone,tone:"update",body:R(e,a===void 0?void 0:e.toneName(a),e.toneName(n))}},DELETE_LABEL:(e,t,s)=>({title:e.deleteLabel,tone:"delete",body:e.removed(Z(s,t.target.id)?.name??t.target.id)}),REORDER_LABEL:(e,t)=>({title:e.reorderLabel,tone:"move",body:de(e,v(y.REORDER_LABEL,t).after)}),ADD_STORY_LABEL:(e,t,s)=>{const a=v(y.ADD_STORY_LABEL,t).labelId;return{title:e.addStoryLabel,tone:"create",body:e.added(Z(s,a)?.name??a)}},REMOVE_STORY_LABEL:(e,t,s)=>{const a=v(y.REMOVE_STORY_LABEL,t).labelId;return{title:e.removeStoryLabel,tone:"delete",body:e.removed(Z(s,a)?.name??a)}},ADD_STORY_BLOCKER:(e,t,s)=>{const a=v(y.ADD_STORY_BLOCKER,t).blockerId;return{title:e.addStoryBlocker,tone:"create",body:e.added(x(s,a)?.name??a)}},REMOVE_STORY_BLOCKER:(e,t,s)=>{const a=v(y.REMOVE_STORY_BLOCKER,t).blockerId;return{title:e.removeStoryBlocker,tone:"delete",body:e.removed(x(s,a)?.name??a)}},SET_MILESTONE_DUE_DATE:(e,t,s)=>{const a=v(y.SET_MILESTONE_DUE_DATE,t).dueDate;return{title:e.changeMilestoneDueDate,tone:a===null?"delete":"update",body:a===null?e.noDueDate:R(e,P(s,t.target.id)?.dueDate,a)}},SET_STATUS_WEIGHT:(e,t,s)=>{const a=D(s,t.target.id)?.weight,n=v(y.SET_STATUS_WEIGHT,t).weight;return{title:e.changeStatusWeight,tone:"update",body:R(e,a===void 0?void 0:String(a),String(n))}},SET_DONE_STATUS:(e,t,s)=>({title:e.setDoneStatus,tone:"update",body:R(e,Xt(s)?.name,D(s,t.target.id)?.name??t.target.id)}),SET_MEASURE:(e,t,s)=>({title:e.setMeasure,tone:"update",body:R(e,e.measureName(be(s)),e.measureName(v(y.SET_MEASURE,t).measure))}),ADD_MEMBER:(e,t)=>({title:e.addMember,tone:"create",body:e.added(v(y.ADD_MEMBER,t).name)}),SET_MEMBER_NAME:(e,t,s)=>({title:e.renameMember,tone:"update",body:R(e,K(s,t.target.id)?.name,v(y.SET_MEMBER_NAME,t).name)}),SET_MEMBER_TONE:(e,t,s)=>{const a=K(s,t.target.id)?.tone,n=v(y.SET_MEMBER_TONE,t).tone;return{title:e.changeMemberTone,tone:"update",body:R(e,a===void 0?void 0:e.toneName(a),e.toneName(n))}},DELETE_MEMBER:(e,t,s)=>({title:e.deleteMember,tone:"delete",body:e.removed(K(s,t.target.id)?.name??t.target.id)}),REORDER_MEMBER:(e,t)=>({title:e.reorderMember,tone:"move",body:de(e,v(y.REORDER_MEMBER,t).after)}),SET_STORY_ASSIGNEE:(e,t,s)=>{const a=v(y.SET_STORY_ASSIGNEE,t).memberId;if(a===null){const n=K(s,x(s,t.target.id)?.assigneeId);return{title:e.setStoryAssignee,tone:"delete",body:e.removed(n?.name??e.noAssignee)}}return{title:e.setStoryAssignee,tone:"update",body:e.toValue(K(s,a)?.name??a)}},ADD_ESTIMATE:(e,t)=>{const{name:s,points:a}=v(y.ADD_ESTIMATE,t);return{title:e.addEstimate,tone:"create",body:e.added(e.estimateText(s,a))}},SET_ESTIMATE_NAME:(e,t,s)=>({title:e.renameEstimate,tone:"update",body:R(e,F(s,t.target.id)?.name,v(y.SET_ESTIMATE_NAME,t).name)}),SET_ESTIMATE_POINTS:(e,t,s)=>{const a=F(s,t.target.id)?.points,n=v(y.SET_ESTIMATE_POINTS,t).points;return{title:e.changeEstimatePoints,tone:"update",body:R(e,a===void 0?void 0:String(a),String(n))}},DELETE_ESTIMATE:(e,t,s)=>({title:e.deleteEstimate,tone:"delete",body:e.removed(F(s,t.target.id)?.name??t.target.id)}),REORDER_ESTIMATE:(e,t)=>({title:e.reorderEstimate,tone:"move",body:de(e,v(y.REORDER_ESTIMATE,t).after)}),SET_STORY_ESTIMATE:(e,t,s)=>{const a=v(y.SET_STORY_ESTIMATE,t).estimateId;return a===null?{title:e.setStoryEstimate,tone:"delete",body:e.toValue(e.unestimated)}:{title:e.setStoryEstimate,tone:"update",body:e.toValue(F(s,a)?.name??a)}},RECORD_SNAPSHOT:(e,t)=>{const{at:s,tally:a}=v(y.RECORD_SNAPSHOT,t),n=a.reduce((i,r)=>i+r.stories,0);return{title:e.recordSnapshot,tone:"create",body:e.snapshotSummary(pe(s),n)}},DELETE_SNAPSHOT:(e,t,s)=>{const a=Se(s,t.target.id);return{title:e.deleteSnapshot,tone:"delete",body:e.removed(a?pe(a.at):t.target.id)}},SET_FEATURE:(e,t)=>{const{feature:s,enabled:a}=v(y.SET_FEATURE,t);return{title:a?e.enableFeature:e.disableFeature,tone:a?"create":"delete",body:e.featureName(s)}}},ks=(e,t,s,a)=>{let n;try{const i=Hn[t.type];n=i?i(e,t,a??s):{title:t.type,tone:"meta"}}catch{n={title:t.type,tone:"meta"}}return{title:n.title,targetLabel:Es(e,s,t.target),tone:n.tone,...n.body===void 0?{}:{summary:n.body}}},ws=e=>`${e.type} ${A(e.target)} ${JSON.stringify(e.payload)}`,Es=(e,t,s)=>{try{switch(s.type){case"activity":{const a=te(t,s.id);return a?e.targetLabel(e.activityGroup,a.name):e.targetMissing(e.activityGroup,s.id)}case"step":{const a=B(t,s.id)?.step;return a?e.targetLabel(e.stepGroup,a.name):e.targetMissing(e.stepGroup,s.id)}case"story":{const a=x(t,s.id);return a?e.targetLabel(e.storyGroup,a.name):e.targetMissing(e.storyGroup,s.id)}case"milestone":{const a=P(t,s.id);return a?e.targetLabel(e.milestoneGroup,a.name):e.targetMissing(e.milestoneGroup,s.id)}case"status":{const a=D(t,s.id);return a?e.targetLabel(e.statusGroup,a.name):e.targetMissing(e.statusGroup,s.id)}case"label":{const a=Z(t,s.id);return a?e.targetLabel(e.labelGroup,a.name):e.targetMissing(e.labelGroup,s.id)}case"member":{const a=K(t,s.id);return a?e.targetLabel(e.memberGroup,a.name):e.targetMissing(e.memberGroup,s.id)}case"estimate":{const a=F(t,s.id);return a?e.targetLabel(e.estimateGroup,a.name):e.targetMissing(e.estimateGroup,s.id)}case"snapshot":{const a=Se(t,s.id);return a?e.targetLabel(e.snapshotGroup,pe(a.at)):e.targetMissing(e.snapshotGroup,s.id)}case"page":return e.targetLabel(e.mapGroup,ct(t));default:return`${s.type} \xB7 ${s.id}`}}catch{return`${s.type} \xB7 ${s.id}`}},Ss=(e,t,s)=>{const a=[{value:"page:usm",label:e.wholeMap,group:e.mapGroup}];for(const n of t.activities){a.push({value:A({type:"activity",id:n.id}),label:n.name,group:e.activityGroup});for(const i of n.steps)a.push({value:A({type:"step",id:le(n.id,i.id)}),label:`${n.name} \u203A ${i.name}`,group:e.stepGroup})}for(const n of t.milestones)a.push({value:A({type:"milestone",id:n.id}),label:n.name,group:e.milestoneGroup});for(const n of t.statuses)a.push({value:A({type:"status",id:n.id}),label:n.name,group:e.statusGroup});for(const n of t.labels)a.push({value:A({type:"label",id:n.id}),label:n.name,group:e.labelGroup});for(const n of t.members)a.push({value:A({type:"member",id:n.id}),label:n.name,group:e.memberGroup});for(const n of t.estimates)a.push({value:A({type:"estimate",id:n.id}),label:e.estimateText(n.name,n.points),group:e.estimateGroup});for(const n of t.snapshots)a.push({value:A({type:"snapshot",id:n.id}),label:pe(n.at),group:e.snapshotGroup});for(const n of t.stories)a.push({value:A({type:"story",id:n.id}),label:n.name,group:e.storyGroup});return a},$s=(e,t,s)=>{const a=t.stories.find(n=>n.id===s.story);if(a)return{value:A({type:"story",id:a.id}),label:a.name,group:e.storyGroup};for(const n of t.activities){const i=n.steps.find(r=>r.id===s.step);if(i)return{value:A({type:"step",id:le(n.id,i.id)}),label:i.name,group:e.stepGroup}}return null},ct=e=>e.title??"User Story Mapping",Kn=(e,t)=>{switch(t.type){case"story":{const s=x(e,t.id);return{tab:null,highlight:null,...Object.fromEntries(xe.map(a=>[a,null])),...s&&$e(e,s)?{[ie.key]:ie.value}:{}}}case"step":case"activity":return{tab:null,view:null};case"milestone":return{tab:"milestones"};case"status":return{tab:"statuses"};case"label":return{tab:"labels"};case"member":return z(e,"assignees")?{tab:"members"}:null;case"estimate":case"snapshot":return z(e,"estimates")?{tab:"burndown"}:null;default:return null}},xs=(e,t)=>{const s=B(e,t.step),a=s?.activity??te(e,t.activity)??e.activities[0],n=s?.step??a?.steps.find(u=>u.id===t.step)??a?.steps[0],i=_n(e,t.story),r={...t};a?r.activity=a.id:delete r.activity,n?r.step=n.id:delete r.step,i?r.story=i.id:delete r.story,r.view=t.view==="group"?"group":"activity";const o=ze(e,t);for(const u of xe){const w=ys(e,u,o[u]);w===null?delete r[u]:r[u]=w}t[ie.key]!==ie.value&&delete r[ie.key];const d=ms(e,t);d==="map"?delete r.tab:r.tab=d,P(e,t.milestone)||delete r.milestone;const p=Pe(t);return p===null?delete r.highlight:r.highlight=p,r},Ts=(e,t)=>{switch(t.type){case"activity":return te(e,t.id)!==void 0;case"step":return B(e,t.id)!==void 0;case"story":return x(e,t.id)!==void 0;case"milestone":return P(e,t.id)!==void 0;case"status":return D(e,t.id)!==void 0;case"label":return Z(e,t.id)!==void 0;case"member":return K(e,t.id)!==void 0;case"estimate":return F(e,t.id)!==void 0;case"snapshot":return Se(e,t.id)!==void 0;case"page":return!0;default:return!1}},_s=e=>{const t=ue(e);return{kind:"view",name:"usm",label:"User Story Mapping",parseBase:Ft,emptyBase:Gt,actions:y,apply:is,canonicalState:kn,hasTarget:Ts,canonicalTarget:(s,a)=>{if(a.type!=="step")return a;const n=B(s,a.id);return n?{...a,id:le(n.activity.id,n.step.id)}:a},describe:(s,a,n)=>ks(t,s,a,n),serialize:ws,resolveNavigation:xs,navigationFor:Kn,commentTargets:(s,a)=>Ss(t,s),currentTarget:(s,a)=>$s(t,s,a),settings:s=>({items:De.map(a=>{const n=z(s,a);return{key:a,label:t.featureName(a),hint:t.featureHint(a),on:n,toggle:{type:"SET_FEATURE",target:{type:"page",id:"usm"},payload:{feature:a,enabled:!n}}}}),note:t.featuresNote}),title:ct}},As=.5,qn=({widths:e,available:t,gap:s,moreWidth:a,keep:n})=>{if(e.reduce((u,w)=>u+w,0)+s*Math.max(0,e.length-1)<=t+As)return[];const r=t-a+As,o=new Set;let d=0;const p=u=>{d+=(o.size===0?0:s)+(e[u]??0),o.add(u)};n>=0&&n<e.length&&p(n);for(const[u,w]of e.entries())if(!o.has(u)){if(d+(o.size===0?0:s)+w>r)break;p(u)}return e.flatMap((u,w)=>o.has(w)?[]:[w])},Is=new Set;class Wn{#i;#e;#a=Is;#n=0;#s=null;#t=null;constructor(t,s){this.#i=t,this.#e=s,t.addController(this)}get hidden(){return this.#a}get minimum(){return this.#n}hostConnected(){typeof ResizeObserver>"u"||(this.#s=new ResizeObserver(()=>this.#r()))}hostUpdated(){const t=this.#e.row();t!==this.#t&&(this.#t&&this.#s?.unobserve(this.#t),t&&this.#s?.observe(t),this.#t=t),this.#r()}hostDisconnected(){this.#s?.disconnect(),this.#s=null,this.#t=null}#r(){const t=this.#e.row();if(!t)return;const s=this.#e.items(t),a=s.map(E=>E.getBoundingClientRect().width),n=s.findIndex(E=>this.#e.kept(E)),i=s[0]?.parentElement,r=i?Ms(i):0,o=this.#e.more(t),d=o?o.getBoundingClientRect().width+Ms(t):0,p=qn({widths:a,available:t.getBoundingClientRect().width,gap:r,moreWidth:d,keep:n}),u=new Set(p.flatMap(E=>{const S=s[E];return S?[this.#e.keyOf(S)]:[]})),w=Math.ceil((a[n]??0)+d);jn(u,this.#a)&&w===this.#n||(this.#a=u.size===0?Is:u,this.#n=w,this.#i.requestUpdate())}}const Ms=e=>Number.parseFloat(getComputedStyle(e).columnGap)||0,jn=(e,t)=>e.size===t.size&&[...e].every(s=>t.has(s)),ut=1440*60*1e3,Xn=48,Zn=8,Jn=(e,t,s,a)=>{const n={left:a.inset.left,top:a.inset.top,right:a.width-a.inset.right,bottom:a.height-a.inset.bottom},i=[...e.map($=>$.at),s,...t===null?[]:[t]];let r=Math.min(...i),o=Math.max(...i);o-r<ut&&(r-=ut/2,o+=ut/2);const d=Qn(Math.max(0,...e.map($=>$.value))),p=d.at(-1)??1,u=$=>n.left+($-r)/(o-r)*(n.right-n.left),w=$=>n.bottom-$/p*(n.bottom-n.top),E=e.map($=>({x:u($.at),y:w($.value),at:$.at,value:$.value,...$.snapshotId===void 0?{}:{snapshotId:$.snapshotId}})),S=E[0],M=ti(r,o,Math.floor((n.right-n.left)/Xn));return{size:a,plot:n,line:E.map($=>`${Te($.x)},${Te($.y)}`).join(" "),dots:E,ideal:t===null||!S?null:{x1:S.x,y1:S.y,x2:u(t),y2:w(0)},nowX:u(s),dueX:t===null?null:u(t),yTicks:d.map($=>({y:w($),value:$})),valueTop:p,xUnit:M.unit,xTicks:M.ats.map($=>({x:u($),at:$})),domain:{start:r,end:o},idealSpan:t===null||!S?null:{at:S.at,value:S.value,due:t}}},Qn=e=>{const t=ei(e/4),s=Math.max(1,Math.ceil(e/t));return Array.from({length:s+1},(a,n)=>n*t)},ei=e=>{if(e<=1)return 1;const t=10**Math.floor(Math.log10(e));return([1,2,2.5,5,10].find(a=>Number.isInteger(a*t)&&a*t>=e)??10)*t},Te=e=>Math.round(e*100)/100,ti=(e,t,s)=>{const a=Math.max(1,s),n=["day","week","biweek","month","quarter"];for(const i of n){const r=Ls(i,e,t,a);if(r!==null)return{unit:i,ats:r}}return{unit:"year",ats:Ls("year",e,t,1/0)??[]}},Ls=(e,t,s,a)=>{const n=[];for(let i=si(e,t);i<=s;i=ai(e,i)){if(n.length===a)return null;n.push(i)}return n},si=(e,t)=>{const s=new Date(t),[a,n,i]=[s.getFullYear(),s.getMonth(),s.getDate()],r=(o,d)=>o.getTime()>=t?o.getTime():d().getTime();switch(e){case"day":return r(new Date(a,n,i),()=>new Date(a,n,i+1));case"week":case"biweek":{const o=r(new Date(a,n,i),()=>new Date(a,n,i+1)),d=new Date(o),p=(8-d.getDay())%7;return new Date(d.getFullYear(),d.getMonth(),d.getDate()+p).getTime()}case"month":return r(new Date(a,n,1),()=>new Date(a,n+1,1));case"quarter":{const o=n-n%3;return r(new Date(a,o,1),()=>new Date(a,o+3,1))}case"year":return r(new Date(a,0,1),()=>new Date(a+1,0,1))}},ai=(e,t)=>{const s=new Date(t),[a,n,i]=[s.getFullYear(),s.getMonth(),s.getDate()],r={day:1,week:7,biweek:14},o={month:1,quarter:3,year:12};return e==="day"||e==="week"||e==="biweek"?new Date(a,n,i+r[e]).getTime():new Date(a,n+o[e],1).getTime()},Ds=(e,t)=>{const{plot:s,domain:a,dots:n}=e,i=Math.min(s.right,Math.max(s.left,t)),r=n.reduce((E,S)=>E===null||Math.abs(S.x-i)<Math.abs(E.x-i)?S:E,null),o=r!==null&&Math.abs(r.x-i)<=Zn?r:null,d=o?.at??a.start+(i-s.left)/(s.right-s.left)*(a.end-a.start),p=o?.value??ni(n,d),u=ii(e,d),w=E=>E===null?null:Te(s.bottom-E/e.valueTop*(s.bottom-s.top));return{x:o?.x??i,at:d,actual:p,ideal:u,actualY:w(p),idealY:w(u),dot:o}},ni=(e,t)=>{const s=e.findIndex(i=>i.at>=t),a=e[s];if(!a)return null;if(a.at===t)return a.value;const n=e[s-1];return n?Te(n.value+(a.value-n.value)*(t-n.at)/(a.at-n.at)):null},ii=(e,t)=>{const s=e.idealSpan;return s===null||t<s.at||t>s.due?null:Te(s.value*(s.due-t)/(s.due-s.at))},I=e=>`--usm-tone: var(--dpk-${e==null||e==="gray"?"ink-faint":e})`,Rs={circle:U(Za),lightbulb:U(sn),flag:U(tn),play:U(ja),clock:U(Ja),eye:U(en),pause:U(Wa),check:U(Ka),x:U(Xa)},ri=U(qa),oi=e=>{if(e>=1)return Rs.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?N`<circle
|
|
4
|
+
class="si-pie"
|
|
5
|
+
cx="12"
|
|
6
|
+
cy="12"
|
|
7
|
+
r="4.5"
|
|
8
|
+
stroke-dasharray=${`${e*t} ${t}`}
|
|
9
|
+
transform="rotate(-90 12 12)"
|
|
10
|
+
></circle>`:m}
|
|
11
|
+
</svg>`},re=e=>{const t=e===void 0?ri():e.icon==="progress"?oi(e.progress??1):Rs[e.icon]();return l`<span class="status-icon">${t}</span>`},Os=(e,t)=>e.length===0?m:l`<span class="status-bar" role="img" aria-label=${t}>
|
|
12
|
+
${e.map(s=>l`<span
|
|
13
|
+
class="status-bar-part"
|
|
14
|
+
data-status=${s.id}
|
|
15
|
+
title=${`${s.name}: ${s.count}`}
|
|
16
|
+
style=${`${I(s.tone)};flex-grow:${s.count}`}
|
|
17
|
+
></span>`)}
|
|
18
|
+
</span>`,mt=j`
|
|
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
|
+
`,di=j`
|
|
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 li extends Xe{static{this.styles=[di]}static{this.properties={points:{attribute:!1},due:{attribute:!1},now:{attribute:!1},size:{attribute:!1},tone:{attribute:!1},label:{attribute:!1},readout:{state:!0}}}#i=new Ze(this);constructor(){super(),this.points=[],this.due=null,this.now=0,this.size={width:320,height:160,inset:{top:12,right:12,bottom:24,left:32}},this.tone="accent",this.label="",this.readout=null}render(){const t=ue(this.#i.locale),s=Jn(this.points,this.due,this.now,this.size),{size:a}=s,n=this.points.at(-1)?.value??0;return l`<div
|
|
182
|
+
class="bd-plot"
|
|
183
|
+
tabindex="0"
|
|
184
|
+
role="img"
|
|
185
|
+
aria-label=${t.chartAria(this.label,n)}
|
|
186
|
+
style=${I(this.tone)}
|
|
187
|
+
@pointermove=${i=>this.#e(s,i)}
|
|
188
|
+
@pointerleave=${()=>this.readout=null}
|
|
189
|
+
@focus=${()=>this.#a(s,s.dots.length-1)}
|
|
190
|
+
@blur=${()=>this.readout=null}
|
|
191
|
+
@keydown=${i=>this.#n(s,i)}
|
|
192
|
+
>
|
|
193
|
+
<svg class="bd-svg" viewBox=${`0 0 ${a.width} ${a.height}`} aria-hidden="true">
|
|
194
|
+
${pi(t,s)} ${ci(s)} ${this.readout?ui(s,this.readout):m}
|
|
195
|
+
</svg>
|
|
196
|
+
${this.readout?mi(t,s,this.readout):m}
|
|
197
|
+
</div>`}#e(t,s){const a=this.renderRoot.querySelector("svg")?.getBoundingClientRect();!a||a.width===0||(this.readout=Ds(t,(s.clientX-a.left)/a.width*t.size.width))}#a(t,s){const a=t.dots[s];this.readout=a?Ds(t,a.x):null}#n(t,s){const a=t.dots.length-1,n=t.dots.findIndex(r=>r===this.readout?.dot),i=(()=>{switch(s.key){case"ArrowLeft":return Math.max(0,(n===-1?a:n)-1);case"ArrowRight":return Math.min(a,(n===-1?a:n)+1);case"Home":return 0;case"End":return a;default:return null}})();i!==null&&(s.preventDefault(),this.#a(t,i))}}const pi=(e,t)=>{const{plot:s,size:a}=t,n=a.height-8;return N`
|
|
198
|
+
${t.yTicks.map(i=>N`<line class="bd-grid-line" x1=${s.left} x2=${s.right} y1=${i.y} y2=${i.y}></line>
|
|
199
|
+
<text class="bd-tick" x=${s.left-6} y=${i.y} text-anchor="end" dominant-baseline="middle">${i.value}</text>`)}
|
|
200
|
+
${t.xTicks.map(i=>N`<line class="bd-grid-line" data-axis="x" x1=${i.x} x2=${i.x} y1=${s.top} y2=${s.bottom}></line>
|
|
201
|
+
<text class="bd-tick" data-axis="x" x=${i.x} y=${n} text-anchor="middle">${e.axisDate(i.at,t.xUnit)}</text>`)}
|
|
202
|
+
${t.dueX===null||t.idealSpan===null?m:N`<line class="bd-due" x1=${t.dueX} x2=${t.dueX} y1=${s.top} y2=${s.bottom}></line>
|
|
203
|
+
<text class="bd-marker" data-marker="due" x=${t.dueX-4} y=${s.top+10} text-anchor="end">${`${e.chartDue} ${e.axisDate(t.idealSpan.due,"day")}`}</text>`}
|
|
204
|
+
<line class="bd-now" x1=${t.nowX} x2=${t.nowX} y1=${s.top} y2=${s.bottom}></line>
|
|
205
|
+
<text class="bd-marker" data-marker="today" x=${t.nowX+4} y=${s.top+10} text-anchor="start">${e.chartToday}</text>
|
|
206
|
+
`},ci=e=>N`
|
|
207
|
+
${e.ideal?N`<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=>N`<circle class="bd-dot" data-now=${t.snapshotId===void 0?"true":m} cx=${t.x} cy=${t.y} r="3.5"></circle>`)}
|
|
210
|
+
`,ui=(e,t)=>N`
|
|
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:N`<circle class="bd-mark" data-line="ideal" cx=${t.x} cy=${t.idealY} r="3.5"></circle>`}
|
|
213
|
+
${t.actualY===null?m:N`<circle class="bd-mark" data-line="actual" cx=${t.x} cy=${t.actualY} r="4.5"></circle>`}
|
|
214
|
+
`,mi=(e,t,s)=>{const{size:a,plot:n}=t,i=s.x>a.width*.6?"left":"right",r=s.dot?s.dot.snapshotId===void 0?`${e.chartNow} \xB7 ${pe(s.dot.at)}`:pe(s.dot.at):e.axisDate(s.at,"day");return l`<div
|
|
215
|
+
class="bd-tip"
|
|
216
|
+
data-testid="usm-chart-readout"
|
|
217
|
+
data-side=${i}
|
|
218
|
+
style=${`left: ${s.x/a.width*100}%; top: calc(${n.top/a.height*100}% + 20px)`}
|
|
219
|
+
>
|
|
220
|
+
<span class="bd-tip-at">${r}</span>
|
|
221
|
+
${s.actual===null?m:l`<span class="bd-tip-row" data-line="actual"
|
|
222
|
+
><span class="bd-swatch" data-line="actual"></span>${e.chartActual}<b>${s.actual}</b></span
|
|
223
|
+
>`}
|
|
224
|
+
${s.ideal===null?m:l`<span class="bd-tip-row" data-line="ideal"
|
|
225
|
+
><span class="bd-swatch" data-line="ideal"></span>${e.chartIdeal}<b>${s.ideal}</b></span
|
|
226
|
+
>`}
|
|
227
|
+
</div>`},hi=()=>{customElements.get("dpk-internal-usm-burndown-chart")||customElements.define("dpk-internal-usm-burndown-chart",li)},bi=new Intl.Segmenter(void 0,{granularity:"grapheme"}),ht=e=>{const[t]=bi.segment(e.trim());return t?t.segment.toUpperCase():"?"},gi={github:N`<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:N`<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:N`<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:N`<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:N`<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:N`<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>`},Ns=e=>e==="web"?Aa():l`<svg class="link-mark" viewBox="0 0 16 16" aria-hidden="true">${gi[e]}</svg>`,Cs=j`
|
|
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
|
+
`,me=e=>{const t=he(e);return e.statuses.map((s,a)=>({id:s.id,name:s.name,tone:s.tone,icon:s.icon,progress:Bs(a,t)}))},Bs=(e,t)=>t<=0?1:Math.min(1,e/t),Ys=(e,t)=>e.find(s=>s.id===t.statusId),Us=(e,t)=>me(e).map(s=>({...s,count:t.filter(a=>a.statusId===s.id).length})).filter(s=>s.count>0),fi=U(an),yi=U(Ha),vi=3,ki=j`
|
|
270
|
+
/*
|
|
271
|
+
* The card is the kit's card atom (it was back-ported from this one); what
|
|
272
|
+
* stays here is the map's own: the status icon, the dependency chips and the
|
|
273
|
+
* host's states mapped onto the card.
|
|
274
|
+
*/
|
|
275
|
+
:host {
|
|
276
|
+
--dpk-card-tone: var(--usm-tone, var(--dpk-ink-faint));
|
|
277
|
+
display: block;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
:host(:focus-visible) {
|
|
281
|
+
outline: none;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* The card is the button that opens its story; the keyboard ring is the focused look. */
|
|
285
|
+
:host(:focus-visible) .dpk-card {
|
|
286
|
+
border-color: var(--dpk-blue);
|
|
287
|
+
box-shadow: var(--dpk-focus);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
:host(:focus-visible) .dpk-card[data-state~='dimmed'] {
|
|
291
|
+
opacity: 0.85;
|
|
292
|
+
filter: none;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* With a story open, the cards it waits on and the cards waiting on it stand out. */
|
|
296
|
+
:host([data-relation='blocker']) {
|
|
297
|
+
--dpk-card-mark: var(--dpk-amber);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
:host([data-relation='dependent']) {
|
|
301
|
+
--dpk-card-mark: var(--dpk-violet);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.card-status {
|
|
305
|
+
flex: none;
|
|
306
|
+
display: inline-flex;
|
|
307
|
+
margin-top: 1.5px;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/*
|
|
311
|
+
* Where the story sits among the others. A story that holds others up is
|
|
312
|
+
* work to pull forward (a spike), so its chip is the loud one; one still
|
|
313
|
+
* waiting reads quieter and goes away once its blockers are done.
|
|
314
|
+
*/
|
|
315
|
+
.dep-chip {
|
|
316
|
+
display: inline-flex;
|
|
317
|
+
align-items: center;
|
|
318
|
+
gap: 4px;
|
|
319
|
+
padding: 0 7px;
|
|
320
|
+
border-radius: 6px;
|
|
321
|
+
font-size: 10.5px;
|
|
322
|
+
font-weight: 650;
|
|
323
|
+
line-height: 18px;
|
|
324
|
+
white-space: nowrap;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.dep-chip svg {
|
|
328
|
+
flex: none;
|
|
329
|
+
width: 12px;
|
|
330
|
+
height: 12px;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.dep-chip[data-kind='blocks'] {
|
|
334
|
+
background: var(--dpk-amber);
|
|
335
|
+
color: var(--dpk-paper-raised);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.dep-chip[data-kind='waits'] {
|
|
339
|
+
border: 1px dashed color-mix(in oklab, var(--dpk-ink-faint) 60%, transparent);
|
|
340
|
+
color: var(--dpk-ink-soft);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.dpk-pill,
|
|
344
|
+
.dpk-avatar {
|
|
345
|
+
--tone: var(--usm-tone);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.card-links .link-chip {
|
|
349
|
+
border-color: color-mix(in oklab, var(--dpk-card-tone) 16%, var(--dpk-rule));
|
|
350
|
+
background: var(--dpk-paper-raised);
|
|
351
|
+
}
|
|
352
|
+
`;class wi extends Xe{static{this.styles=[Ia,za,mt,Cs,ki]}static{this.properties={story:{attribute:!1},stepName:{attribute:!1},statuses:{attribute:!1},labels:{attribute:!1},reviewCount:{type:Number},estimate:{attribute:!1},assignee:{attribute:!1},blocks:{type:Number},waits:{type:Number},focused:{type:Boolean,reflect:!0},dragging:{type:Boolean,reflect:!0},highlight:{attribute:"data-highlight"},relation:{attribute:"data-relation"}}}#i=new Ze(this);constructor(){super(),this.story=null,this.stepName="",this.statuses=[],this.labels=[],this.reviewCount=0,this.estimate=null,this.assignee=null,this.blocks=0,this.waits=0,this.focused=!1,this.dragging=!1,this.highlight=null,this.relation=null}getContextMenuItems(t){const s=this.story;if(!s)return null;const a=ue(this.#i.locale),n=ge(s);return[{id:"usm-story-card",entries:[{kind:"item",id:"copy-story-id",label:a.copyId,run:()=>{wt(n)}}]}]}render(){const t=this.story;if(!t)return m;const s=ue(this.#i.locale),a=t.comments?.length??0;return l`<div class="dpk-card" data-interactive data-state=${this.#e()}>
|
|
353
|
+
<div class="dpk-card-head">
|
|
354
|
+
${this.statuses.length===0?m:this.#a(s,t)}
|
|
355
|
+
<div class="dpk-card-title"><span>${t.name}</span></div>
|
|
356
|
+
${this.estimate||this.assignee?this.#n(s):m}
|
|
357
|
+
</div>
|
|
358
|
+
${t.description?l`<div class="dpk-card-text" @click=${Si}>
|
|
359
|
+
${Ma(La(t.description))}
|
|
360
|
+
</div>`:m}
|
|
361
|
+
${this.blocks>0||this.waits>0?this.#s(s):m}
|
|
362
|
+
${this.labels.length>0?Ei(this.labels):m}
|
|
363
|
+
${t.links&&t.links.length>0?this.#t(t.links):m}
|
|
364
|
+
<div class="dpk-card-foot">
|
|
365
|
+
<span class="dpk-card-key">${ge(t)}</span>
|
|
366
|
+
${this.stepName===""?m:l`<span class="dpk-card-chip" data-kind="step"><span>${this.stepName}</span></span>`}
|
|
367
|
+
${a>0?l`<span
|
|
368
|
+
class="dpk-card-chip"
|
|
369
|
+
data-variant="count"
|
|
370
|
+
data-kind="comments"
|
|
371
|
+
aria-label=${s.commentCountAria(a)}
|
|
372
|
+
>
|
|
373
|
+
${Da()}<span>${a}</span>
|
|
374
|
+
</span>`:m}
|
|
375
|
+
${this.reviewCount>0?l`<span
|
|
376
|
+
class="dpk-card-chip"
|
|
377
|
+
data-variant="count"
|
|
378
|
+
data-tone="accent"
|
|
379
|
+
data-kind="review"
|
|
380
|
+
aria-label=${s.reviewCountAria(this.reviewCount)}
|
|
381
|
+
>
|
|
382
|
+
${Et()}<span>${this.reviewCount}</span>
|
|
383
|
+
</span>`:m}
|
|
384
|
+
</div>
|
|
385
|
+
</div>`}#e(){const t=[this.focused?"selected":"",this.highlight==="on"?"highlight":this.highlight==="dimmed"?"dimmed":"",this.dragging?"dragging":"",this.relation?"marked":""].filter(s=>s!=="");return t.length===0?m:t.join(" ")}#a(t,s){const a=Ys(this.statuses,s);if(!a)return m;const n=a.name;return l`<span class="card-status" role="img" aria-label=${t.storyStatusAria(n)} title=${n}>
|
|
386
|
+
${re(a)}
|
|
387
|
+
</span>`}#n(t){const{estimate:s,assignee:a}=this;return l`<span class="dpk-card-meta">
|
|
388
|
+
${s?l`<span
|
|
389
|
+
class="dpk-card-chip"
|
|
390
|
+
data-variant="outline"
|
|
391
|
+
data-kind="estimate"
|
|
392
|
+
title=${t.estimateChipTitle(t.estimateText(s.name,s.points))}
|
|
393
|
+
>${s.name}</span
|
|
394
|
+
>`:m}
|
|
395
|
+
${a?l`<span
|
|
396
|
+
class="dpk-avatar"
|
|
397
|
+
data-kind="assignee"
|
|
398
|
+
style=${I(a.tone)}
|
|
399
|
+
title=${t.assigneeChipTitle(a.name)}
|
|
400
|
+
>${ht(a.name)}</span
|
|
401
|
+
>`:m}
|
|
402
|
+
</span>`}#s(t){return l`<div class="dpk-card-row card-deps">
|
|
403
|
+
${this.blocks>0?l`<span class="dep-chip" data-kind="blocks" title=${t.blocksChipTitle(this.blocks)}
|
|
404
|
+
>${fi()}${t.blocksChip(this.blocks)}</span
|
|
405
|
+
>`:m}
|
|
406
|
+
${this.waits>0?l`<span class="dep-chip" data-kind="waits" title=${t.waitsChipTitle(this.waits)}
|
|
407
|
+
>${yi()}${t.waitsChip(this.waits)}</span
|
|
408
|
+
>`:m}
|
|
409
|
+
</div>`}#t(t){const s=t.slice(0,vi);return l`<div class="dpk-card-row card-links">
|
|
410
|
+
${s.map(a=>{const n=Ue(a.url);return l`<a
|
|
411
|
+
class="link-chip"
|
|
412
|
+
data-kind=${n.kind}
|
|
413
|
+
href=${a.url}
|
|
414
|
+
target="_blank"
|
|
415
|
+
rel="noopener noreferrer"
|
|
416
|
+
title=${a.label??n.title}
|
|
417
|
+
draggable="false"
|
|
418
|
+
tabindex="-1"
|
|
419
|
+
@click=${i=>i.stopPropagation()}
|
|
420
|
+
>${Ns(n.kind)}<span>${a.label??n.text}</span></a
|
|
421
|
+
>`})}
|
|
422
|
+
${t.length>s.length?l`<span class="link-chip">+${t.length-s.length}</span>`:m}
|
|
423
|
+
</div>`}}const Ei=e=>l`<div class="dpk-card-row card-labels">
|
|
424
|
+
${e.map(t=>l`<span class="dpk-pill" data-label=${t.id} style=${I(t.tone)}>${t.name}</span>`)}
|
|
425
|
+
</div>`,Si=e=>{e.target instanceof Element&&e.target.closest("a")&&e.stopPropagation()},$i=()=>{customElements.get("dpk-internal-usm-story-card")||customElements.define("dpk-internal-usm-story-card",wi)},Ps=e=>{const t=e.slice(0,-1).map(Qt),s=t.reduce((n,i)=>n+i,0),a=t.map(n=>s>0?n/s*se:se/t.length);return a.slice(0,-1).map((n,i)=>a.slice(0,i+1).reduce((r,o)=>r+o,0))},zs=(e,t,s)=>{if(t<0||t>=e.length)return e;const a=e[t-1]??0,n=e[t+1]??se;return e.map((i,r)=>r===t?Math.min(n,Math.max(a,Math.round(s))):i)},Ve=e=>[...e,se].map((t,s)=>t-(e[s-1]??0)),xi=(e,t)=>{const s=Ve(t.map(a=>Math.round(a)));return e.slice(0,-1).flatMap((a,n)=>{const i=s[n]??0;return a.weight===i?[]:[{statusId:a.id,weight:i}]})},Ti=j`
|
|
426
|
+
:host {
|
|
427
|
+
display: block;
|
|
428
|
+
}
|
|
429
|
+
.wb {
|
|
430
|
+
display: grid;
|
|
431
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
432
|
+
column-gap: 10px;
|
|
433
|
+
row-gap: 4px;
|
|
434
|
+
align-items: center;
|
|
435
|
+
}
|
|
436
|
+
.wb-track {
|
|
437
|
+
position: relative;
|
|
438
|
+
height: 36px;
|
|
439
|
+
border-radius: var(--dpk-radius-sm);
|
|
440
|
+
background: var(--dpk-paper-sunken);
|
|
441
|
+
touch-action: none;
|
|
442
|
+
}
|
|
443
|
+
.wb-part {
|
|
444
|
+
position: absolute;
|
|
445
|
+
top: 0;
|
|
446
|
+
bottom: 0;
|
|
447
|
+
display: flex;
|
|
448
|
+
align-items: center;
|
|
449
|
+
gap: 6px;
|
|
450
|
+
min-width: 0;
|
|
451
|
+
padding: 0 10px;
|
|
452
|
+
overflow: hidden;
|
|
453
|
+
background: color-mix(in oklab, var(--usm-tone) 16%, var(--dpk-paper-raised));
|
|
454
|
+
color: var(--dpk-ink);
|
|
455
|
+
font-size: 12px;
|
|
456
|
+
font-weight: 600;
|
|
457
|
+
white-space: nowrap;
|
|
458
|
+
transition:
|
|
459
|
+
left 120ms ease-out,
|
|
460
|
+
width 120ms ease-out;
|
|
461
|
+
}
|
|
462
|
+
.wb-track[data-dragging] .wb-part {
|
|
463
|
+
transition: none;
|
|
464
|
+
}
|
|
465
|
+
.wb-parts {
|
|
466
|
+
position: absolute;
|
|
467
|
+
inset: 0;
|
|
468
|
+
overflow: hidden;
|
|
469
|
+
border-radius: inherit;
|
|
470
|
+
}
|
|
471
|
+
.wb-name {
|
|
472
|
+
min-width: 0;
|
|
473
|
+
overflow: hidden;
|
|
474
|
+
text-overflow: ellipsis;
|
|
475
|
+
}
|
|
476
|
+
.wb-value {
|
|
477
|
+
flex: none;
|
|
478
|
+
color: var(--usm-tone);
|
|
479
|
+
font-family: var(--dpk-mono);
|
|
480
|
+
font-variant-numeric: tabular-nums;
|
|
481
|
+
}
|
|
482
|
+
.wb-line {
|
|
483
|
+
position: absolute;
|
|
484
|
+
top: -4px;
|
|
485
|
+
bottom: -4px;
|
|
486
|
+
z-index: 1;
|
|
487
|
+
width: 14px;
|
|
488
|
+
margin-left: -7px;
|
|
489
|
+
border-radius: var(--dpk-radius-sm);
|
|
490
|
+
outline: none;
|
|
491
|
+
cursor: col-resize;
|
|
492
|
+
}
|
|
493
|
+
.wb-line::before {
|
|
494
|
+
content: '';
|
|
495
|
+
position: absolute;
|
|
496
|
+
top: 0;
|
|
497
|
+
bottom: 0;
|
|
498
|
+
left: 6px;
|
|
499
|
+
width: 2px;
|
|
500
|
+
border-radius: 1px;
|
|
501
|
+
background: var(--dpk-ink-soft);
|
|
502
|
+
transition: background 120ms ease-out;
|
|
503
|
+
}
|
|
504
|
+
/* The grip says the line can be taken hold of. */
|
|
505
|
+
.wb-line::after {
|
|
506
|
+
content: '';
|
|
507
|
+
position: absolute;
|
|
508
|
+
top: 50%;
|
|
509
|
+
left: 2px;
|
|
510
|
+
width: 10px;
|
|
511
|
+
height: 20px;
|
|
512
|
+
margin-top: -10px;
|
|
513
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
514
|
+
border-radius: 5px;
|
|
515
|
+
background: var(--dpk-paper-raised);
|
|
516
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
517
|
+
transition: border-color 120ms ease-out;
|
|
518
|
+
}
|
|
519
|
+
.wb-line:hover::before,
|
|
520
|
+
.wb-line[data-active]::before {
|
|
521
|
+
background: var(--dpk-ink);
|
|
522
|
+
}
|
|
523
|
+
.wb-line:hover::after,
|
|
524
|
+
.wb-line[data-active]::after {
|
|
525
|
+
border-color: var(--dpk-ink-soft);
|
|
526
|
+
}
|
|
527
|
+
.wb-line:focus-visible {
|
|
528
|
+
box-shadow: var(--dpk-focus);
|
|
529
|
+
}
|
|
530
|
+
.wb-end {
|
|
531
|
+
display: flex;
|
|
532
|
+
align-items: center;
|
|
533
|
+
gap: 6px;
|
|
534
|
+
color: var(--dpk-ink-faint);
|
|
535
|
+
font-size: 12px;
|
|
536
|
+
font-weight: 600;
|
|
537
|
+
white-space: nowrap;
|
|
538
|
+
}
|
|
539
|
+
.wb-scale {
|
|
540
|
+
position: relative;
|
|
541
|
+
height: 12px;
|
|
542
|
+
color: var(--dpk-ink-faint);
|
|
543
|
+
font-family: var(--dpk-mono);
|
|
544
|
+
font-size: 10px;
|
|
545
|
+
}
|
|
546
|
+
.wb-tick {
|
|
547
|
+
position: absolute;
|
|
548
|
+
top: 0;
|
|
549
|
+
width: 1px;
|
|
550
|
+
height: 3px;
|
|
551
|
+
background: var(--dpk-rule-strong);
|
|
552
|
+
}
|
|
553
|
+
.wb-scale-end {
|
|
554
|
+
position: absolute;
|
|
555
|
+
top: 0;
|
|
556
|
+
line-height: 12px;
|
|
557
|
+
}
|
|
558
|
+
.wb-scale-end[data-at='0'] {
|
|
559
|
+
left: 0;
|
|
560
|
+
}
|
|
561
|
+
.wb-scale-end[data-at='max'] {
|
|
562
|
+
right: 0;
|
|
563
|
+
}
|
|
564
|
+
@media (prefers-reduced-motion: reduce) {
|
|
565
|
+
.wb-part,
|
|
566
|
+
.wb-line::before,
|
|
567
|
+
.wb-line::after {
|
|
568
|
+
transition: none;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
`;class _i extends Xe{static{this.styles=[mt,Ti]}static{this.properties={statuses:{attribute:!1},dividers:{attribute:!1},commit:{attribute:!1},drag:{state:!0}}}#i=new Ze(this);constructor(){super(),this.statuses=[],this.dividers=[],this.commit=()=>{},this.drag=null}disconnectedCallback(){super.disconnectedCallback(),this.#o()}render(){const t=ue(this.#i.locale),s=this.statuses.slice(0,-1),a=this.statuses.at(-1);if(!a||s.length===0)return m;const n=this.drag?.dividers??this.dividers,i=Ve(n),r=o=>`${o/se*100}%`;return l`<div class="wb">
|
|
572
|
+
<div class="wb-track" role="group" aria-label=${t.statusWeightLabel} ?data-dragging=${this.drag!==null}>
|
|
573
|
+
<div class="wb-parts">
|
|
574
|
+
${s.map((o,d)=>{const p=n[d-1]??0,u=i[d]??0;return l`<span
|
|
575
|
+
class="wb-part"
|
|
576
|
+
data-part=${o.id}
|
|
577
|
+
title=${`${o.name} ${Ge(u)}`}
|
|
578
|
+
style=${`${I(o.tone)}; left: ${r(p)}; width: ${r(u)}`}
|
|
579
|
+
>
|
|
580
|
+
<span class="wb-name">${o.name}</span><span class="wb-value">${Ge(u)}</span>
|
|
581
|
+
</span>`})}
|
|
582
|
+
</div>
|
|
583
|
+
${n.map((o,d)=>this.#e(t,s,n,d,r(o)))}
|
|
584
|
+
</div>
|
|
585
|
+
<span class="wb-end" data-end style=${I(a.tone)}>${re(a)}${a.name}</span>
|
|
586
|
+
<div class="wb-scale" aria-hidden="true">
|
|
587
|
+
${Array.from({length:se-1},(o,d)=>l`<span class="wb-tick" style=${`left: ${r(d+1)}`}></span>`)}
|
|
588
|
+
<span class="wb-scale-end" data-at="0">0</span>
|
|
589
|
+
<span class="wb-scale-end" data-at="max">${se}</span>
|
|
590
|
+
</div>
|
|
591
|
+
</div>`}#e(t,s,a,n,i){const r=s[n]?.name??"",o=s[n+1]?.name??"",d=Ve(a),p=a[n]??0;return l`<span
|
|
592
|
+
class="wb-line"
|
|
593
|
+
role="slider"
|
|
594
|
+
tabindex="0"
|
|
595
|
+
style=${`left: ${i}`}
|
|
596
|
+
aria-label=${t.weightLineLabel(r,o)}
|
|
597
|
+
aria-valuemin=${String(a[n-1]??0)}
|
|
598
|
+
aria-valuemax=${String(a[n+1]??se)}
|
|
599
|
+
aria-valuenow=${String(p)}
|
|
600
|
+
aria-valuetext=${t.weightLineValue(r,Ge(d[n]??0),o,Ge(d[n+1]??0))}
|
|
601
|
+
?data-active=${this.drag?.index===n}
|
|
602
|
+
@keydown=${u=>this.#a(u,n)}
|
|
603
|
+
@pointerdown=${u=>this.#n(u,n)}
|
|
604
|
+
></span>`}#a(t,s){const a=this.dividers[s]??0,n=(()=>{switch(t.key){case"ArrowLeft":case"ArrowDown":return a-1;case"ArrowRight":case"ArrowUp":return a+1;case"Home":return 0;case"End":return se;default:return null}})();n!==null&&(t.preventDefault(),this.#l(zs(this.dividers,s,n)))}#n(t,s){t.button===0&&(t.preventDefault(),t.currentTarget instanceof HTMLElement&&t.currentTarget.focus({preventScroll:!0}),this.drag={index:s,dividers:this.dividers},document.addEventListener("pointermove",this.#s),document.addEventListener("pointerup",this.#t),document.addEventListener("pointercancel",this.#r))}#s=t=>{const s=this.renderRoot.querySelector(".wb-track")?.getBoundingClientRect();if(!this.drag||!s||s.width===0)return;const a=(t.clientX-s.left)/s.width*se;this.drag={...this.drag,dividers:zs(this.drag.dividers,this.drag.index,a)}};#t=()=>{const t=this.drag?.dividers;this.#o(),t&&this.#l(t)};#r=()=>this.#o();#o(){this.drag=null,document.removeEventListener("pointermove",this.#s),document.removeEventListener("pointerup",this.#t),document.removeEventListener("pointercancel",this.#r)}#l(t){t.some((s,a)=>s!==this.dividers[a])&&this.commit(t)}}const Ge=e=>String(Math.round(e*10)/10),Ai=()=>{customElements.get("dpk-internal-usm-weight-bar")||customElements.define("dpk-internal-usm-weight-bar",_i)},Ii=(e,t,s)=>{const a=e.at(-1)??null;if(t===null||s==="end")return a;const n=e.indexOf(t);return n<0?a:s==="after"?t:n===0?null:e.at(n-1)??null},Fs=(e,t,s,a,n)=>{const i=Be(e,t.stepId,t.milestoneId).map(r=>r.id);return{type:"MOVE_STORY",target:{type:"story",id:s},payload:{activityId:t.activityId,stepId:t.stepId,milestoneId:t.milestoneId??null,after:Tt(i,s,a,n)}}},Vs=(e,t,s,a,n,i)=>{const r=x(e,a);if(!r||r.activityId!==t)return null;const o=qt(e,t,s).map(d=>d.id);return{type:"MOVE_STORY",target:{type:"story",id:a},payload:{activityId:t,stepId:r.stepId,milestoneId:s??null,after:Tt(o,a,n,i)}}},Gs=(e,t,s,a,n)=>{const i=Be(e,a,n).filter(r=>r.id!==t);return{type:"MOVE_STORY",target:{type:"story",id:t},payload:{activityId:s,stepId:a,milestoneId:n??null,after:i.at(-1)?.id??null}}},Mi=e=>{const t=e.stories.length;return{rows:e.labels.map((a,n)=>{const i=e.stories.filter(r=>r.labelIds?.includes(a.id)).length;return{id:a.id,name:a.name,tone:a.tone,previousId:e.labels[n-1]?.id??null,nextId:e.labels[n+1]?.id??null,storyCount:i,share:t===0?0:i/t}})}},Li=e=>{const t=e.stories.length;return{rows:e.members.map((a,n)=>{const i=e.stories.filter(r=>r.assigneeId===a.id).length;return{id:a.id,name:a.name,tone:a.tone,previousId:e.members[n-1]?.id??null,nextId:e.members[n+1]?.id??null,storyCount:i,share:t===0?0:i/t}})}},Di=e=>{const t=e.stories.length,s=Ce(e);return e.milestones.map((a,n)=>{const i=e.stories.filter(o=>o.milestoneId===a.id),r=new Set(i.map(o=>o.stepId));return{id:a.id,ordinal:n+1,name:a.name,timeframe:a.timeframe?.trim()??"",description:a.description?.trim()??"",storyCount:i.length,share:t===0?0:i.length/t,coverage:{covered:s.filter(({step:o})=>r.has(o.id)).length,total:s.length},progress:Us(e,i)}})},Hs=(e,t)=>{const s=J("new-activity",X(t.state));if(!t.dispatch({type:"ADD_ACTIVITY",target:{type:"page",id:"usm"},payload:{id:s,name:e.newActivityName}}).ok)return;const n=J("new-step",[...X(t.state),s]);t.dispatch({type:"ADD_STEP",target:{type:"activity",id:s},payload:{id:n,name:e.newStepName}}),t.navigate({activity:s,step:null,story:null})},Ri=(e,t,s)=>{const a=J("new-step",X(t.state));t.dispatch({type:"ADD_STEP",target:{type:"activity",id:s},payload:{id:a,name:e.newStepName}})},Ks=(e,t)=>{const s=J("new-milestone",X(t.state));t.dispatch({type:"ADD_MILESTONE",target:{type:"page",id:"usm"},payload:{id:s,name:e.newMilestoneName}})},qs=(e,t,s,a,n)=>{const i=J("new-story",X(t.state));t.dispatch({type:"ADD_STORY",target:{type:"step",id:a},payload:{id:i,name:e.newStoryName,activityId:s,...n===void 0?{}:{milestoneId:n},number:ns(t.base,t.state)}}).ok&&t.navigate({activity:s,step:a,story:i})},Oi=(e,t)=>{const s=J("new-status",X(t.state));t.dispatch({type:"ADD_STATUS",target:{type:"page",id:"usm"},payload:{id:s,name:e.newStatusName,tone:rt(t.state.statuses.length)}})},Ni=(e,t)=>{const s=J("new-label",X(t.state));t.dispatch({type:"ADD_LABEL",target:{type:"page",id:"usm"},payload:{id:s,name:e.newLabelName,tone:Oe(t.state.labels.length)}})},Ci=(e,t)=>{const s=J("new-member",X(t.state));t.dispatch({type:"ADD_MEMBER",target:{type:"page",id:"usm"},payload:{id:s,name:e.newMemberName,tone:Oe(t.state.members.length)}})},Bi=(e,t)=>{const s=J("new-estimate",X(t.state)),a=Math.max(0,...t.state.estimates.map(n=>n.points))+1;t.dispatch({type:"ADD_ESTIMATE",target:{type:"page",id:"usm"},payload:{id:s,name:e.newEstimateName,points:a}})},Yi=(e,t)=>{const s=J(`snapshot-${t.toISOString().slice(0,10)}`,X(e.state));e.dispatch({type:"RECORD_SNAPSHOT",target:{type:"page",id:"usm"},payload:{id:s,at:t.toISOString(),tally:ss(e.state)}})},Ui="__unassigned__",Ws="__add-milestone__",He="__add-activity__",js="__add-activity-step__",Xs=(e,t)=>{const s=a=>t.stories.filter(n=>n.milestoneId===a).length;return[...t.milestones.map(({id:a,name:n,timeframe:i,questions:r})=>({id:a,name:n,timeframe:i?.trim()??"",storyCount:s(a),...r===void 0?{}:{questions:r}})),{id:void 0,name:e.unassigned,timeframe:"",storyCount:s(void 0)}]},Ke=e=>e.id??Ui,Zs=e=>[...e.map(t=>({id:Ke(t),draggable:t.id!==void 0})),{id:Ws,draggable:!1}],Pi=e=>[...e.activities.map(t=>({id:t.id,subColumns:t.steps.map(s=>({id:s.id}))})),{id:He,draggable:!1,subColumns:[{id:js,draggable:!1}]}],zi=e=>[...e.activities.map(t=>({id:t.id})),{id:He,draggable:!1}],Fi=(e,t)=>l`
|
|
605
|
+
<div class="empty">
|
|
606
|
+
<h2>${e.emptyTitle}</h2>
|
|
607
|
+
<p>${e.emptyBody}</p>
|
|
608
|
+
<button class="dpk-btn dpk-btn--accent" type="button" @click=${()=>Hs(e,t)}>
|
|
609
|
+
${e.firstActivityButton}
|
|
610
|
+
</button>
|
|
611
|
+
</div>
|
|
612
|
+
`,Vi=e=>{const{m:t,context:s}=e,a=Ce(s.state);return a.length===0?Fi(t,s):Js(s)==="activity"?Hi(e,a):Ki(e)},Js=e=>e.navigation.view==="group"?"group":"activity",Gi=(e,t)=>{const s=Js(t);return l`<div class="dpk-segmented view-tabs" role="tablist" aria-label=${e.groupingLabel}>
|
|
613
|
+
${Qs(t,"activity",s,e.activityGroup)}
|
|
614
|
+
${Qs(t,"group",s,e.groupViewTab)}
|
|
615
|
+
</div>`},Qs=(e,t,s,a)=>l`<a role="tab" aria-selected=${t===s?"true":"false"} href=${e.hashFor({view:t})}
|
|
616
|
+
>${a}</a
|
|
617
|
+
>`,Hi=(e,t)=>{const{m:s,context:a,handlers:n}=e,{state:i}=a,r=Xs(s,i);return l`
|
|
618
|
+
<dpk-matrix
|
|
619
|
+
data-testid="usm-map"
|
|
620
|
+
.rows=${Zs(r)}
|
|
621
|
+
.columns=${Pi(i)}
|
|
622
|
+
@dpk-matrix-reorder-row=${o=>n.reorderMilestone(o.detail)}
|
|
623
|
+
@dpk-matrix-reorder-column=${o=>n.reorderActivity(o.detail)}
|
|
624
|
+
@dpk-matrix-reorder-sub-column=${o=>n.reorderStep(o.detail)}
|
|
625
|
+
>
|
|
626
|
+
<div class="corner" slot=${_t}><span class="dpk-label">${s.groupAxisHeader}</span></div>
|
|
627
|
+
${C(i.activities,o=>o.id,o=>ta(e,o.id))}
|
|
628
|
+
${sa(s,a)} ${ea(s,Va)}
|
|
629
|
+
${C(t,({activity:o,step:d})=>`${o.id}.${d.id}`,({activity:o,step:d})=>qi(e,o.id,d))}
|
|
630
|
+
${Wi()}
|
|
631
|
+
${C(r,o=>o.id,o=>na(e,o))}
|
|
632
|
+
${C(r,o=>o.id,o=>l`${C(t,({activity:d,step:p})=>`${d.id}.${p.id}`,({activity:d,step:p})=>Xi(e,Ke(o),{activityId:d.id,stepId:p.id,milestoneId:o.id}))}`)}
|
|
633
|
+
${aa(s,a)}
|
|
634
|
+
</dpk-matrix>
|
|
635
|
+
`},Ki=e=>{const{m:t,context:s,handlers:a}=e,{state:n}=s,i=Xs(t,n);return l`
|
|
636
|
+
<dpk-matrix
|
|
637
|
+
data-testid="usm-map-group"
|
|
638
|
+
.rows=${Zs(i)}
|
|
639
|
+
.columns=${zi(n)}
|
|
640
|
+
@dpk-matrix-reorder-row=${r=>a.reorderMilestone(r.detail)}
|
|
641
|
+
@dpk-matrix-reorder-column=${r=>a.reorderActivity(r.detail)}
|
|
642
|
+
>
|
|
643
|
+
${ea(t,_t)}
|
|
644
|
+
${C(n.activities,r=>r.id,r=>ta(e,r.id,!0))}
|
|
645
|
+
${sa(t,s)}
|
|
646
|
+
${C(i,r=>r.id,r=>na(e,r))}
|
|
647
|
+
${C(i,r=>r.id,r=>l`${C(n.activities,o=>o.id,o=>Zi(e,Ke(r),o.id,r.id))}`)}
|
|
648
|
+
${aa(t,s)}
|
|
649
|
+
</dpk-matrix>
|
|
650
|
+
`},ea=(e,t)=>l`<div class="corner" slot=${t}>
|
|
651
|
+
<span class="dpk-label">${e.activityAxis}</span>
|
|
652
|
+
<span class="dpk-label">${e.milestoneAxis}</span>
|
|
653
|
+
</div>`,ta=(e,t,s=!1)=>{const{m:a,context:n}=e,{state:i}=n,r=i.activities.find(p=>p.id===t);if(!r)return l`<div class="act-head"></div>`;const o=i.stories.filter(p=>p.activityId===r.id),d=Us(i,o);return l`
|
|
654
|
+
<div
|
|
655
|
+
class="act-head"
|
|
656
|
+
data-activity=${r.id}
|
|
657
|
+
data-column=${r.id}
|
|
658
|
+
data-dpk-target=${A({type:"activity",id:r.id})}
|
|
659
|
+
data-dpk-check="off"
|
|
660
|
+
data-grill-questions=${Me(Ie(r.questions))}
|
|
661
|
+
slot=${At(r.id)}
|
|
662
|
+
>
|
|
663
|
+
<div class="act-title">
|
|
664
|
+
<span class="act-name">
|
|
665
|
+
<dpk-inline-edit
|
|
666
|
+
draggable="false"
|
|
667
|
+
.value=${r.name}
|
|
668
|
+
.label=${a.activityNameLabel}
|
|
669
|
+
@dpk-commit=${Q(p=>n.dispatch({type:"SET_ACTIVITY_NAME",target:{type:"activity",id:r.id},payload:{name:p}}))}
|
|
670
|
+
></dpk-inline-edit>
|
|
671
|
+
<span class="act-actor" data-empty=${String(r.actor===void 0)}>
|
|
672
|
+
<dpk-inline-edit
|
|
673
|
+
draggable="false"
|
|
674
|
+
truncate
|
|
675
|
+
.value=${r.actor??""}
|
|
676
|
+
.label=${a.activityActorLabel}
|
|
677
|
+
.placeholder=${a.activityActorLabel}
|
|
678
|
+
@dpk-commit=${Q(p=>n.dispatch({type:"SET_ACTIVITY_ACTOR",target:{type:"activity",id:r.id},payload:{actor:p}}))}
|
|
679
|
+
></dpk-inline-edit>
|
|
680
|
+
</span>
|
|
681
|
+
</span>
|
|
682
|
+
<span class="dpk-count" data-size="sm">${o.length}</span>
|
|
683
|
+
<button
|
|
684
|
+
class="dpk-icon-btn"
|
|
685
|
+
type="button"
|
|
686
|
+
aria-label=${a.addStepAria}
|
|
687
|
+
@click=${()=>Ri(a,n,r.id)}
|
|
688
|
+
>
|
|
689
|
+
${Ra()}
|
|
690
|
+
</button>
|
|
691
|
+
</div>
|
|
692
|
+
${Os(d,a.progressAria(d.map(p=>`${p.name} ${p.count}`).join(", ")))}
|
|
693
|
+
${s&&r.steps.length>0?l`<ol class="act-steps">
|
|
694
|
+
${r.steps.map(p=>l`<li>${p.name}</li>`)}
|
|
695
|
+
</ol>`:m}
|
|
696
|
+
</div>
|
|
697
|
+
`},qi=(e,t,s)=>{const{m:a,context:n}=e,i=le(t,s.id);return l`
|
|
698
|
+
<div
|
|
699
|
+
class="col-head"
|
|
700
|
+
data-step=${i}
|
|
701
|
+
data-column=${t}
|
|
702
|
+
data-column-step=${s.id}
|
|
703
|
+
data-current=${String(n.navigation.step===s.id)}
|
|
704
|
+
data-dpk-target=${A({type:"step",id:i})}
|
|
705
|
+
data-dpk-check="off"
|
|
706
|
+
data-grill-questions=${Me(Ie(s.questions))}
|
|
707
|
+
slot=${It(t,s.id)}
|
|
708
|
+
>
|
|
709
|
+
<h4>
|
|
710
|
+
<dpk-inline-edit
|
|
711
|
+
draggable="false"
|
|
712
|
+
.value=${s.name}
|
|
713
|
+
.label=${a.stepNameLabel}
|
|
714
|
+
@dpk-commit=${Q(r=>n.dispatch({type:"SET_STEP_NAME",target:{type:"step",id:s.id},payload:{name:r}}))}
|
|
715
|
+
@click=${r=>r.stopPropagation()}
|
|
716
|
+
></dpk-inline-edit>
|
|
717
|
+
</h4>
|
|
718
|
+
<span class="dpk-count" data-size="sm">${Wt(n.state,s.id)}</span>
|
|
719
|
+
</div>
|
|
720
|
+
`},sa=(e,t)=>l`<div class="act-head" slot=${At(He)}>
|
|
721
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Hs(e,t)}>
|
|
722
|
+
${e.newActivityButton}
|
|
723
|
+
</button>
|
|
724
|
+
</div>`,Wi=()=>l`<div class="corner" slot=${It(He,js)}>
|
|
725
|
+
<span class="dpk-label">—</span>
|
|
726
|
+
</div>`,aa=(e,t)=>l`<div class="row-lead" slot=${Mt(Ws)}>
|
|
727
|
+
<div class="row-head">
|
|
728
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Ks(e,t)}>
|
|
729
|
+
${e.newMilestoneButton}
|
|
730
|
+
</button>
|
|
731
|
+
</div>
|
|
732
|
+
</div>`,na=(e,t)=>{const{m:s,context:a}=e,n=t.id,i=Mt(Ke(t));if(n===void 0)return l`<div class="row-lead" slot=${i}>
|
|
733
|
+
<div class="row-head" data-unassigned="true" data-milestone=""><span>${t.name}</span></div>
|
|
734
|
+
${ia(s,t)}
|
|
735
|
+
</div>`;const r=ji(s,a,n,t.name);return l`
|
|
736
|
+
<div class="row-lead" slot=${i}>
|
|
737
|
+
<div
|
|
738
|
+
class="row-head"
|
|
739
|
+
data-milestone=${n}
|
|
740
|
+
data-dpk-target=${A({type:"milestone",id:n})}
|
|
741
|
+
data-dpk-check="off"
|
|
742
|
+
data-grill-questions=${Me(Ie(t.questions))}
|
|
743
|
+
>
|
|
744
|
+
${r}
|
|
745
|
+
</div>
|
|
746
|
+
${ia(s,t)}
|
|
747
|
+
</div>
|
|
748
|
+
`},ia=(e,t)=>l`<div class="row-meta">
|
|
749
|
+
${t.timeframe===""?m:l`<span class="row-timeframe">${t.timeframe}</span>`}
|
|
750
|
+
<span class="row-count">${e.storyCount(t.storyCount)}</span>
|
|
751
|
+
</div>`,ji=(e,t,s,a)=>l`<dpk-inline-edit
|
|
752
|
+
draggable="false"
|
|
753
|
+
.value=${a}
|
|
754
|
+
.label=${e.milestoneNameLabel}
|
|
755
|
+
@dpk-commit=${Q(n=>t.dispatch({type:"SET_MILESTONE_NAME",target:{type:"milestone",id:s},payload:{name:n}}))}
|
|
756
|
+
></dpk-inline-edit>`,Xi=(e,t,s)=>{const{m:a,context:n,drag:i,handlers:r}=e,o=ze(n.state,n.navigation),d=Be(n.state,s.stepId,s.milestoneId).filter(w=>vs(o,w)),p=`cell:${s.stepId}:${s.milestoneId??""}`,u=i.target({key:p,accepts:"story",hovered:oa,onDrop:w=>r.dropOnCell(s,w)});return l`
|
|
757
|
+
<div
|
|
758
|
+
class="cell"
|
|
759
|
+
data-step=${s.stepId}
|
|
760
|
+
data-milestone=${s.milestoneId??""}
|
|
761
|
+
data-column=${s.activityId}
|
|
762
|
+
data-column-step=${s.stepId}
|
|
763
|
+
data-drop=${String(i.isOver(p))}
|
|
764
|
+
slot=${Lt(t,{columnId:s.activityId,subColumnId:s.stepId})}
|
|
765
|
+
@dragenter=${u.dragenter}
|
|
766
|
+
@dragover=${u.dragover}
|
|
767
|
+
@dragleave=${u.dragleave}
|
|
768
|
+
@drop=${u.drop}
|
|
769
|
+
>
|
|
770
|
+
<div class="card-list" data-testid=${`cell-${s.stepId}-${s.milestoneId??"unassigned"}`}>
|
|
771
|
+
${C(d,w=>w.id,w=>ra(e,w,""))}
|
|
772
|
+
</div>
|
|
773
|
+
<button
|
|
774
|
+
class="dpk-add add-cell"
|
|
775
|
+
type="button"
|
|
776
|
+
title=${a.addStoryCellAria}
|
|
777
|
+
@click=${()=>qs(a,n,s.activityId,s.stepId,s.milestoneId)}
|
|
778
|
+
>
|
|
779
|
+
${a.addCellButton}
|
|
780
|
+
</button>
|
|
781
|
+
</div>
|
|
782
|
+
`},Zi=(e,t,s,a)=>{const{m:n,context:i,drag:r,handlers:o}=e,{state:d}=i,p=ze(d,i.navigation),u=qt(d,s,a).filter(O=>vs(p,O)),w=d.activities.find(O=>O.id===s)?.steps??[],E=w[0],S=O=>w.find(c=>c.id===O)?.name??"",M=`group:${s}:${a??""}`,$=r.target({key:M,accepts:"story",hovered:oa,onDrop:O=>o.dropOnGroupCell(s,a,O)});return l`
|
|
783
|
+
<div
|
|
784
|
+
class="cell"
|
|
785
|
+
data-activity=${s}
|
|
786
|
+
data-milestone=${a??""}
|
|
787
|
+
data-column=${s}
|
|
788
|
+
data-drop=${String(r.isOver(M))}
|
|
789
|
+
slot=${Lt(t,{columnId:s})}
|
|
790
|
+
@dragenter=${$.dragenter}
|
|
791
|
+
@dragover=${$.dragover}
|
|
792
|
+
@dragleave=${$.dragleave}
|
|
793
|
+
@drop=${$.drop}
|
|
794
|
+
>
|
|
795
|
+
<div class="card-list" data-testid=${`group-cell-${s}-${a??"unassigned"}`}>
|
|
796
|
+
${C(u,O=>O.id,O=>ra(e,O,S(O.stepId)))}
|
|
797
|
+
</div>
|
|
798
|
+
${E?l`<button
|
|
799
|
+
class="dpk-add add-cell"
|
|
800
|
+
type="button"
|
|
801
|
+
aria-label=${n.addStoryCellAria}
|
|
802
|
+
@click=${()=>qs(n,i,s,E.id,a)}
|
|
803
|
+
>
|
|
804
|
+
${n.addCellButton}
|
|
805
|
+
</button>`:m}
|
|
806
|
+
</div>
|
|
807
|
+
`},ra=(e,t,s)=>{const{context:a,drag:n,handlers:i}=e,r=me(a.state),o=n.source({type:"story",id:t.id}),d=hs(a.state,t.id);return l`<dpk-internal-usm-story-card
|
|
808
|
+
data-story=${t.id}
|
|
809
|
+
data-status=${t.statusId??""}
|
|
810
|
+
data-relation=${Qi(a.state,a.navigation.story,t)??m}
|
|
811
|
+
data-highlight=${Ji(e.highlighted,t.id)??m}
|
|
812
|
+
data-dpk-target=${A({type:"story",id:t.id})}
|
|
813
|
+
data-grill-questions=${Me(Ie(t.questions))}
|
|
814
|
+
draggable="true"
|
|
815
|
+
tabindex="0"
|
|
816
|
+
role="button"
|
|
817
|
+
aria-haspopup="dialog"
|
|
818
|
+
aria-label=${t.name}
|
|
819
|
+
style=${I(Ys(r,t)?.tone)}
|
|
820
|
+
.story=${t}
|
|
821
|
+
.stepName=${s}
|
|
822
|
+
.statuses=${r}
|
|
823
|
+
.labels=${Kt(a.state,t)}
|
|
824
|
+
.reviewCount=${a.commentCount({type:"story",id:t.id})}
|
|
825
|
+
.estimate=${z(a.state,"estimates")?F(a.state,t.estimateId)??null:null}
|
|
826
|
+
.assignee=${z(a.state,"assignees")?Ht(a.state,t)??null:null}
|
|
827
|
+
.blocks=${d.dependents.length}
|
|
828
|
+
.waits=${d.openBlockers}
|
|
829
|
+
@click=${()=>i.selectStory(t.id)}
|
|
830
|
+
@keydown=${p=>{p.composedPath()[0]!==p.currentTarget||p.key!=="Enter"&&p.key!==" "||(p.preventDefault(),i.selectStory(t.id))}}
|
|
831
|
+
?focused=${a.navigation.story===t.id}
|
|
832
|
+
?dragging=${n.isDragging("story",t.id)}
|
|
833
|
+
@dragstart=${o.dragstart}
|
|
834
|
+
@dragend=${o.dragend}
|
|
835
|
+
></dpk-internal-usm-story-card>`},Ji=(e,t)=>{if(e!==null)return e.has(t)?"on":"dimmed"},Qi=(e,t,s)=>{if(!(t===void 0||t===s.id))return s.blockedBy?.includes(t)?"dependent":e.stories.find(a=>a.id===t)?.blockedBy?.includes(s.id)?"blocker":void 0},oa=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},er=(e,t)=>St((s,a)=>{const n=s.trim()===""?Number.NaN:Number(s);if(!Number.isFinite(n)||n<0){a.value=String(e);return}n!==e&&t(n)}),tr=(e,t,s,a)=>l`
|
|
836
|
+
<section class="st-overview" data-testid="usm-statuses">
|
|
837
|
+
${s.rows.length===0?l`<div class="empty">
|
|
838
|
+
<h2>${e.noStatusesTitle}</h2>
|
|
839
|
+
<p>${e.noStatusesBody}</p>
|
|
840
|
+
</div>`:m}
|
|
841
|
+
<ol class="st-list">
|
|
842
|
+
${C(s.rows,n=>n.id,n=>sr(e,t,n,a))}
|
|
843
|
+
</ol>
|
|
844
|
+
<div>
|
|
845
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Oi(e,t)}>
|
|
846
|
+
${e.newStatusButton}
|
|
847
|
+
</button>
|
|
848
|
+
</div>
|
|
849
|
+
</section>
|
|
850
|
+
`,sr=(e,t,s,a)=>{const n=a.openFor===s.id,i={type:"status",id:s.id},r=o=>{t.dispatch({type:"REORDER_STATUS",target:i,payload:{after:o}})};return l`
|
|
851
|
+
<li
|
|
852
|
+
class="st-row st-row--status"
|
|
853
|
+
data-status=${s.id}
|
|
854
|
+
data-dpk-target=${A(i)}
|
|
855
|
+
style=${I(s.tone)}
|
|
856
|
+
>
|
|
857
|
+
<button
|
|
858
|
+
class="st-icon-trigger"
|
|
859
|
+
type="button"
|
|
860
|
+
data-icon-trigger=${s.id}
|
|
861
|
+
aria-haspopup="menu"
|
|
862
|
+
aria-expanded=${String(n)}
|
|
863
|
+
aria-label=${`${e.statusIconLabel}: ${e.iconName(s.icon)}`}
|
|
864
|
+
title=${e.iconName(s.icon)}
|
|
865
|
+
@click=${()=>a.toggle(s.id)}
|
|
866
|
+
>
|
|
867
|
+
${re(s)}
|
|
868
|
+
</button>
|
|
869
|
+
${n?ar(e,t,s,a):m}
|
|
870
|
+
<span class="st-name">
|
|
871
|
+
<dpk-inline-edit
|
|
872
|
+
.value=${s.name}
|
|
873
|
+
.label=${e.statusNameLabel}
|
|
874
|
+
@dpk-commit=${Q(o=>t.dispatch({type:"SET_STATUS_NAME",target:i,payload:{name:o}}))}
|
|
875
|
+
></dpk-inline-edit>
|
|
876
|
+
</span>
|
|
877
|
+
${gt(e,s.storyCount,s.share)}
|
|
878
|
+
${bt(e,s.tone,o=>t.dispatch({type:"SET_STATUS_TONE",target:i,payload:{tone:o}}))}
|
|
879
|
+
<label class="st-done" title=${e.doneStatusAria(s.name)}>
|
|
880
|
+
<input
|
|
881
|
+
type="radio"
|
|
882
|
+
name="usm-done-status"
|
|
883
|
+
data-role="done"
|
|
884
|
+
aria-label=${e.doneStatusAria(s.name)}
|
|
885
|
+
.checked=${s.done}
|
|
886
|
+
@change=${()=>t.dispatch({type:"SET_DONE_STATUS",target:i,payload:{}})}
|
|
887
|
+
/>
|
|
888
|
+
<span aria-hidden="true">${e.doneStatusMark}</span>
|
|
889
|
+
</label>
|
|
890
|
+
${qe(e,{ids:t.state.statuses.map(o=>o.id),row:s,deleteLabel:e.deleteStatusAria,reorder:r,remove:()=>t.dispatch({type:"DELETE_STATUS",target:i,payload:{}})})}
|
|
891
|
+
</li>
|
|
892
|
+
`},ar=(e,t,s,a)=>l`<div
|
|
893
|
+
id="icon-menu"
|
|
894
|
+
class="comment-pop icon-menu"
|
|
895
|
+
popover="manual"
|
|
896
|
+
role="menu"
|
|
897
|
+
aria-label=${e.statusIconLabel}
|
|
898
|
+
style=${I(s.tone)}
|
|
899
|
+
@keydown=${n=>{n.key==="Escape"&&(n.preventDefault(),a.close())}}
|
|
900
|
+
>
|
|
901
|
+
${Rt.map(n=>l`<button
|
|
902
|
+
class="icon-option"
|
|
903
|
+
type="button"
|
|
904
|
+
role="menuitemradio"
|
|
905
|
+
data-icon=${n}
|
|
906
|
+
title=${e.iconName(n)}
|
|
907
|
+
aria-label=${e.iconName(n)}
|
|
908
|
+
aria-checked=${String(n===s.icon)}
|
|
909
|
+
@click=${()=>{n!==s.icon&&t.dispatch({type:"SET_STATUS_ICON",target:{type:"status",id:s.id},payload:{icon:n}}),a.close()}}
|
|
910
|
+
>
|
|
911
|
+
${re({icon:n,progress:s.progress})}
|
|
912
|
+
</button>`)}
|
|
913
|
+
</div>`,bt=(e,t,s)=>l`<span class="st-tones" role="radiogroup" aria-label=${e.statusToneLabel}>
|
|
914
|
+
${Le.map(a=>l`<button
|
|
915
|
+
class="st-tone"
|
|
916
|
+
type="button"
|
|
917
|
+
role="radio"
|
|
918
|
+
data-tone=${a}
|
|
919
|
+
style=${I(a)}
|
|
920
|
+
title=${e.toneName(a)}
|
|
921
|
+
aria-label=${e.toneName(a)}
|
|
922
|
+
aria-checked=${a===t?"true":"false"}
|
|
923
|
+
@click=${()=>{a!==t&&s(a)}}
|
|
924
|
+
></button>`)}
|
|
925
|
+
</span>`,qe=(e,t)=>l`<span class="st-tools">
|
|
926
|
+
<button
|
|
927
|
+
class="dpk-icon-btn"
|
|
928
|
+
type="button"
|
|
929
|
+
aria-label=${e.moveUpAria}
|
|
930
|
+
?disabled=${t.row.previousId===null}
|
|
931
|
+
@click=${()=>t.reorder(nr(t.ids,t.row.previousId))}
|
|
932
|
+
>
|
|
933
|
+
↑
|
|
934
|
+
</button>
|
|
935
|
+
<button
|
|
936
|
+
class="dpk-icon-btn"
|
|
937
|
+
type="button"
|
|
938
|
+
aria-label=${e.moveDownAria}
|
|
939
|
+
?disabled=${t.row.nextId===null}
|
|
940
|
+
@click=${()=>t.reorder(t.row.nextId)}
|
|
941
|
+
>
|
|
942
|
+
↓
|
|
943
|
+
</button>
|
|
944
|
+
<button class="dpk-icon-btn" type="button" data-role="delete" aria-label=${t.deleteLabel} @click=${t.remove}>
|
|
945
|
+
${Je()}
|
|
946
|
+
</button>
|
|
947
|
+
</span>`,nr=(e,t)=>{const s=t===null?-1:e.indexOf(t);return s<=0?null:e[s-1]??null},gt=(e,t,s)=>l`
|
|
948
|
+
<span class="st-share">
|
|
949
|
+
<span class="st-share-text">${e.statusShare(t,Math.round(s*100))}</span>
|
|
950
|
+
<span class="st-meter" aria-hidden="true"><span style=${`width:${s*100}%`}></span></span>
|
|
951
|
+
</span>
|
|
952
|
+
`,ir=U(Oa),rr=U(rn),or={width:720,height:240,inset:{top:16,right:20,bottom:26,left:40}},dr={width:340,height:150,inset:{top:12,right:14,bottom:24,left:32}},lr=(e,t,s,a)=>{const{state:n,navigation:i}=t,r=En(n,i),o=be(n);return l`
|
|
953
|
+
<section class="bd-overview" data-testid="usm-burndown">
|
|
954
|
+
<header class="bd-bar">
|
|
955
|
+
${r?pr(e,t,r,a):m}
|
|
956
|
+
${cr(e,t,o)}
|
|
957
|
+
${r?l`<span class="bd-record">
|
|
958
|
+
<button
|
|
959
|
+
class="dpk-btn dpk-btn--primary"
|
|
960
|
+
type="button"
|
|
961
|
+
data-role="record-snapshot"
|
|
962
|
+
title=${e.recordSnapshotHint}
|
|
963
|
+
@click=${()=>Yi(t,new Date)}
|
|
964
|
+
>
|
|
965
|
+
${e.recordSnapshotButton}
|
|
966
|
+
</button>
|
|
967
|
+
</span>`:m}
|
|
968
|
+
</header>
|
|
969
|
+
${o==="stories"?m:ur(e,t,o)}
|
|
970
|
+
${r?mr(e,t,r,o,s):l`<div class="empty">
|
|
971
|
+
<h2>${e.burndownTab}</h2>
|
|
972
|
+
<p>${e.noMilestonesForBurndown}</p>
|
|
973
|
+
</div>`}
|
|
974
|
+
<div class="bd-side">${hr(e,t)}</div>
|
|
975
|
+
</section>
|
|
976
|
+
`},pr=(e,t,s,a)=>{const{state:n}=t;return l`<label class="bd-control">
|
|
977
|
+
<span>${e.burndownMilestoneLabel}</span>
|
|
978
|
+
${a.render({options:n.milestones.map(i=>({value:i.id,label:i.name})),value:s.id,onChange:i=>t.navigate({milestone:i}),ariaLabel:e.burndownMilestoneLabel,className:"bd-milestone-select"})}
|
|
979
|
+
</label>
|
|
980
|
+
<label class="bd-control" data-dpk-target=${A({type:"milestone",id:s.id})}>
|
|
981
|
+
<span>${e.dueDateLabel}</span>
|
|
982
|
+
<input
|
|
983
|
+
class="dpk-input"
|
|
984
|
+
type="date"
|
|
985
|
+
data-role="due-date"
|
|
986
|
+
.value=${s.dueDate??""}
|
|
987
|
+
@change=${St(i=>{const r=i===""?null:i;r!==(s.dueDate??null)&&t.dispatch({type:"SET_MILESTONE_DUE_DATE",target:{type:"milestone",id:s.id},payload:{dueDate:r}})})}
|
|
988
|
+
/>
|
|
989
|
+
</label>`},cr=(e,t,s)=>l`<span class="bd-control">
|
|
990
|
+
<span id="bd-measure-label">${e.measureLabel}</span>
|
|
991
|
+
<span class="bd-measures" role="radiogroup" aria-labelledby="bd-measure-label">
|
|
992
|
+
${Ot.map(a=>l`<label class="bd-measure"
|
|
993
|
+
><input
|
|
994
|
+
type="radio"
|
|
995
|
+
name="bd-measure"
|
|
996
|
+
value=${a}
|
|
997
|
+
.checked=${a===s}
|
|
998
|
+
@change=${()=>t.dispatch({type:"SET_MEASURE",target:{type:"page",id:"usm"},payload:{measure:a}})}
|
|
999
|
+
/>${e.measureName(a)}</label
|
|
1000
|
+
>`)}
|
|
1001
|
+
</span>
|
|
1002
|
+
</span>`,ur=(e,t,s)=>{const{state:a}=t,n=Jt(a),i=Ps(n),r=a.estimates.map(d=>`${d.name} ${d.points}`).join(" \xB7 "),o=Ve(i).map((d,p)=>`${n[p]?.name??""} ${Math.round(d*10)/10}`).join(" \xB7 ");return l`<details class="bd-settings" data-testid="usm-measure-settings" open>
|
|
1003
|
+
<summary class="bd-settings-summary">
|
|
1004
|
+
<span class="bd-settings-chevron" aria-hidden="true"></span>
|
|
1005
|
+
<span class="bd-settings-title">${e.measureSettingsLabel}</span>
|
|
1006
|
+
<span class="bd-settings-gist">
|
|
1007
|
+
<span>${e.estimatesLabel}: ${r===""?"\u2014":`${r} pt`}</span>
|
|
1008
|
+
${s==="weighted"?l`<span>${e.statusWeightLabel}: ${i.length===0?"\u2014":o}</span>`:m}
|
|
1009
|
+
</span>
|
|
1010
|
+
</summary>
|
|
1011
|
+
<div class="bd-settings-body">
|
|
1012
|
+
${br(e,t)} ${s==="weighted"?fr(e,t):m}
|
|
1013
|
+
</div>
|
|
1014
|
+
</details>`},mr=(e,t,s,a,n)=>{const{state:i}=t,r=$n(i,s.id,n.getTime()),o=a==="weighted",d=i.stories.filter(p=>p.milestoneId===s.id&&p.estimateId===void 0).length;return l`
|
|
1015
|
+
${a!=="stories"&&d>0?l`<p class="bd-warning" role="note" data-testid="usm-unestimated-warning">
|
|
1016
|
+
${rr()}<span>${e.unestimatedNote(d)}</span>
|
|
1017
|
+
</p>`:m}
|
|
1018
|
+
<figure class="bd-chart bd-chart--combined">
|
|
1019
|
+
<figcaption>
|
|
1020
|
+
<span class="bd-chart-title">${e.combinedChartTitle(o)}</span>
|
|
1021
|
+
<span class="bd-about">
|
|
1022
|
+
<button class="bd-about-btn" type="button" aria-label=${e.chartAbout} aria-describedby="bd-about-tip">
|
|
1023
|
+
${ir()}
|
|
1024
|
+
</button>
|
|
1025
|
+
<span class="bd-about-tip" id="bd-about-tip" role="tooltip">${e.combinedChartHint(a)}</span>
|
|
1026
|
+
</span>
|
|
1027
|
+
<span class="bd-chart-latest">${e.chartLatest(la(r.combined))}</span>
|
|
1028
|
+
</figcaption>
|
|
1029
|
+
${da({chart:"combined",title:e.combinedChartTitle(o),points:r.combined,due:r.due,now:n.getTime(),size:or,tone:"accent"})}
|
|
1030
|
+
</figure>
|
|
1031
|
+
${r.byStatus.length===0?m:l`<section class="bd-multiples" aria-label=${e.statusChartsLabel}>
|
|
1032
|
+
<h3>${e.statusChartsLabel}</h3>
|
|
1033
|
+
<div class="bd-grid">
|
|
1034
|
+
${r.byStatus.map(({status:p,points:u})=>l`<figure class="bd-chart" data-status=${p.id}>
|
|
1035
|
+
<figcaption>
|
|
1036
|
+
<span class="bd-chart-title">${e.statusChartTitle(p.name)}</span>
|
|
1037
|
+
<span class="bd-chart-latest">${e.chartLatest(la(u))}</span>
|
|
1038
|
+
</figcaption>
|
|
1039
|
+
${da({chart:"status",statusId:p.id,title:e.statusChartTitle(p.name),points:u,due:r.due,now:n.getTime(),size:dr,tone:p.tone})}
|
|
1040
|
+
</figure>`)}
|
|
1041
|
+
</div>
|
|
1042
|
+
</section>`}
|
|
1043
|
+
`},da=e=>l`<dpk-internal-usm-burndown-chart
|
|
1044
|
+
data-chart=${e.chart}
|
|
1045
|
+
data-status=${e.statusId??m}
|
|
1046
|
+
.points=${e.points}
|
|
1047
|
+
.due=${e.due}
|
|
1048
|
+
.now=${e.now}
|
|
1049
|
+
.size=${e.size}
|
|
1050
|
+
.tone=${e.tone}
|
|
1051
|
+
.label=${e.title}
|
|
1052
|
+
></dpk-internal-usm-burndown-chart>`,hr=(e,t)=>{const s=[...t.state.snapshots].reverse();return l`<section class="bd-panel">
|
|
1053
|
+
<h3>${e.snapshotsLabel}<span class="bd-count">${s.length}</span></h3>
|
|
1054
|
+
${s.length===0?l`<p class="bd-empty">${e.noSnapshots} ${e.chartNeedsSnapshot}</p>`:l`<ol class="bd-snapshots">
|
|
1055
|
+
${C(s,a=>a.id,a=>{const n={type:"snapshot",id:a.id},i=pe(a.at),r=a.tally.reduce((o,d)=>o+d.stories,0);return l`<li data-snapshot=${a.id} data-dpk-target=${A(n)}>
|
|
1056
|
+
<span class="bd-snapshot-at">${i}</span>
|
|
1057
|
+
<span class="bd-snapshot-sum">${e.storyCount(r)}</span>
|
|
1058
|
+
<button
|
|
1059
|
+
class="dpk-icon-btn"
|
|
1060
|
+
type="button"
|
|
1061
|
+
data-role="delete-snapshot"
|
|
1062
|
+
aria-label=${e.deleteSnapshotAria(i)}
|
|
1063
|
+
@click=${()=>t.dispatch({type:"DELETE_SNAPSHOT",target:n,payload:{}})}
|
|
1064
|
+
>
|
|
1065
|
+
${Je()}
|
|
1066
|
+
</button>
|
|
1067
|
+
</li>`})}
|
|
1068
|
+
</ol>`}
|
|
1069
|
+
</section>`},br=(e,t)=>{const{estimates:s}=t.state;return l`<section class="bd-panel" data-testid="usm-estimates">
|
|
1070
|
+
<h3>${e.estimatesLabel}<span class="bd-count">${s.length}</span></h3>
|
|
1071
|
+
<p class="bd-empty">${e.estimatesHint}</p>
|
|
1072
|
+
${s.length===0?m:l`<ol class="bd-estimates">
|
|
1073
|
+
${C(s,a=>a.id,(a,n)=>gr(e,t,a,n))}
|
|
1074
|
+
</ol>`}
|
|
1075
|
+
<div>
|
|
1076
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Bi(e,t)}>
|
|
1077
|
+
${e.newEstimateButton}
|
|
1078
|
+
</button>
|
|
1079
|
+
</div>
|
|
1080
|
+
</section>`},gr=(e,t,s,a)=>{const{estimates:n}=t.state,i={type:"estimate",id:s.id};return l`<li data-estimate=${s.id} data-dpk-target=${A(i)}>
|
|
1081
|
+
<span class="bd-estimate-name">
|
|
1082
|
+
<dpk-inline-edit
|
|
1083
|
+
.value=${s.name}
|
|
1084
|
+
.label=${e.estimateNameLabel}
|
|
1085
|
+
@dpk-commit=${Q(r=>t.dispatch({type:"SET_ESTIMATE_NAME",target:i,payload:{name:r}}))}
|
|
1086
|
+
></dpk-inline-edit>
|
|
1087
|
+
</span>
|
|
1088
|
+
<label class="bd-estimate-points">
|
|
1089
|
+
<input
|
|
1090
|
+
class="dpk-input"
|
|
1091
|
+
type="number"
|
|
1092
|
+
min="0"
|
|
1093
|
+
step="any"
|
|
1094
|
+
inputmode="decimal"
|
|
1095
|
+
data-role="points"
|
|
1096
|
+
aria-label=${e.estimatePointsLabel}
|
|
1097
|
+
.value=${String(s.points)}
|
|
1098
|
+
@change=${er(s.points,r=>t.dispatch({type:"SET_ESTIMATE_POINTS",target:i,payload:{points:r}}))}
|
|
1099
|
+
/>
|
|
1100
|
+
<span>pt</span>
|
|
1101
|
+
</label>
|
|
1102
|
+
${qe(e,{ids:n.map(r=>r.id),row:{previousId:n[a-1]?.id??null,nextId:n[a+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:{}})})}
|
|
1103
|
+
</li>`},fr=(e,t)=>{const{state:s}=t,a=Jt(s),n=Ps(a);return l`<section class="bd-panel" data-testid="usm-weights">
|
|
1104
|
+
<h3>${e.statusWeightLabel}</h3>
|
|
1105
|
+
<p class="bd-empty">${e.statusWeightHint}</p>
|
|
1106
|
+
${n.length>0?l`<dpk-internal-usm-weight-bar
|
|
1107
|
+
.statuses=${me(s).slice(0,a.length)}
|
|
1108
|
+
.dividers=${n}
|
|
1109
|
+
.commit=${i=>{for(const{statusId:r,weight:o}of xi(a,i))t.dispatch({type:"SET_STATUS_WEIGHT",target:{type:"status",id:r},payload:{weight:o}})}}
|
|
1110
|
+
></dpk-internal-usm-weight-bar>`:l`<p class="bd-empty">${e.weightsNeedStatuses}</p>`}
|
|
1111
|
+
</section>`},la=e=>e.at(-1)?.value??0,yr=j`
|
|
1112
|
+
.bd-overview {
|
|
1113
|
+
display: grid;
|
|
1114
|
+
gap: 18px;
|
|
1115
|
+
max-width: 1040px;
|
|
1116
|
+
padding: 28px 0 40px;
|
|
1117
|
+
}
|
|
1118
|
+
.bd-bar {
|
|
1119
|
+
display: flex;
|
|
1120
|
+
flex-wrap: wrap;
|
|
1121
|
+
align-items: flex-end;
|
|
1122
|
+
gap: 12px 16px;
|
|
1123
|
+
}
|
|
1124
|
+
.bd-control {
|
|
1125
|
+
display: grid;
|
|
1126
|
+
gap: 4px;
|
|
1127
|
+
min-width: 0;
|
|
1128
|
+
}
|
|
1129
|
+
.bd-control > span:first-child {
|
|
1130
|
+
color: var(--dpk-ink-faint);
|
|
1131
|
+
font-size: 11px;
|
|
1132
|
+
font-weight: 600;
|
|
1133
|
+
}
|
|
1134
|
+
.bd-control .dpk-rich-select {
|
|
1135
|
+
min-width: 160px;
|
|
1136
|
+
}
|
|
1137
|
+
.bd-control .dpk-input {
|
|
1138
|
+
width: 160px;
|
|
1139
|
+
font-family: var(--dpk-mono);
|
|
1140
|
+
font-variant-numeric: tabular-nums;
|
|
1141
|
+
}
|
|
1142
|
+
/* One row at any width: on a narrow screen each option wraps its own name instead of the row wrapping. */
|
|
1143
|
+
.bd-measures {
|
|
1144
|
+
display: inline-flex;
|
|
1145
|
+
max-width: 100%;
|
|
1146
|
+
padding: 2px;
|
|
1147
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
1148
|
+
border-radius: var(--dpk-radius-sm);
|
|
1149
|
+
background: var(--dpk-paper-sunken);
|
|
1150
|
+
}
|
|
1151
|
+
.bd-measure {
|
|
1152
|
+
position: relative;
|
|
1153
|
+
display: grid;
|
|
1154
|
+
flex: 1 1 auto;
|
|
1155
|
+
place-items: center;
|
|
1156
|
+
min-width: 0;
|
|
1157
|
+
padding: 4px 12px;
|
|
1158
|
+
text-align: center;
|
|
1159
|
+
border-radius: calc(var(--dpk-radius-sm) - 2px);
|
|
1160
|
+
color: var(--dpk-ink-soft);
|
|
1161
|
+
font-size: 12.5px;
|
|
1162
|
+
font-weight: 600;
|
|
1163
|
+
cursor: pointer;
|
|
1164
|
+
}
|
|
1165
|
+
/* The radio stays in the page for the keyboard and the reader; the label is what shows. */
|
|
1166
|
+
.bd-measure input {
|
|
1167
|
+
position: absolute;
|
|
1168
|
+
inset: 0;
|
|
1169
|
+
margin: 0;
|
|
1170
|
+
opacity: 0;
|
|
1171
|
+
cursor: pointer;
|
|
1172
|
+
}
|
|
1173
|
+
.bd-measure:has(input:checked) {
|
|
1174
|
+
background: var(--dpk-paper-raised);
|
|
1175
|
+
color: var(--dpk-ink);
|
|
1176
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
1177
|
+
}
|
|
1178
|
+
.bd-measure:has(input:focus-visible) {
|
|
1179
|
+
box-shadow: var(--dpk-focus);
|
|
1180
|
+
}
|
|
1181
|
+
.bd-settings {
|
|
1182
|
+
display: grid;
|
|
1183
|
+
gap: 10px;
|
|
1184
|
+
}
|
|
1185
|
+
.bd-settings-summary {
|
|
1186
|
+
display: flex;
|
|
1187
|
+
flex-wrap: wrap;
|
|
1188
|
+
align-items: center;
|
|
1189
|
+
gap: 4px 10px;
|
|
1190
|
+
justify-self: start;
|
|
1191
|
+
padding: 4px 10px 4px 6px;
|
|
1192
|
+
border-radius: var(--dpk-radius-sm);
|
|
1193
|
+
color: var(--dpk-ink-soft);
|
|
1194
|
+
font-size: 12px;
|
|
1195
|
+
list-style: none;
|
|
1196
|
+
cursor: pointer;
|
|
1197
|
+
user-select: none;
|
|
1198
|
+
}
|
|
1199
|
+
.bd-settings-summary::-webkit-details-marker {
|
|
1200
|
+
display: none;
|
|
1201
|
+
}
|
|
1202
|
+
.bd-settings-summary:hover {
|
|
1203
|
+
background: var(--dpk-paper-sunken);
|
|
1204
|
+
color: var(--dpk-ink);
|
|
1205
|
+
}
|
|
1206
|
+
.bd-settings-summary:focus-visible {
|
|
1207
|
+
outline: none;
|
|
1208
|
+
box-shadow: var(--dpk-focus);
|
|
1209
|
+
}
|
|
1210
|
+
.bd-settings-chevron {
|
|
1211
|
+
width: 6px;
|
|
1212
|
+
height: 6px;
|
|
1213
|
+
margin: 0 3px;
|
|
1214
|
+
border-right: 1.5px solid currentColor;
|
|
1215
|
+
border-bottom: 1.5px solid currentColor;
|
|
1216
|
+
transform: rotate(-45deg);
|
|
1217
|
+
transition: transform 160ms var(--dpk-ease);
|
|
1218
|
+
}
|
|
1219
|
+
.bd-settings[open] .bd-settings-chevron {
|
|
1220
|
+
transform: rotate(45deg);
|
|
1221
|
+
}
|
|
1222
|
+
.bd-settings-title {
|
|
1223
|
+
font-weight: 650;
|
|
1224
|
+
}
|
|
1225
|
+
.bd-settings-gist {
|
|
1226
|
+
display: inline-flex;
|
|
1227
|
+
flex-wrap: wrap;
|
|
1228
|
+
gap: 2px 14px;
|
|
1229
|
+
color: var(--dpk-ink-faint);
|
|
1230
|
+
font-family: var(--dpk-mono);
|
|
1231
|
+
font-size: 11.5px;
|
|
1232
|
+
font-variant-numeric: tabular-nums;
|
|
1233
|
+
}
|
|
1234
|
+
/* Side by side while both fit; the scale alone takes the row. */
|
|
1235
|
+
.bd-settings-body {
|
|
1236
|
+
display: grid;
|
|
1237
|
+
grid-template-columns: repeat(auto-fit, minmax(max(300px, calc((100% - 12px) / 2)), 1fr));
|
|
1238
|
+
gap: 12px;
|
|
1239
|
+
align-items: start;
|
|
1240
|
+
}
|
|
1241
|
+
.bd-record {
|
|
1242
|
+
margin-left: auto;
|
|
1243
|
+
}
|
|
1244
|
+
.bd-warning {
|
|
1245
|
+
display: flex;
|
|
1246
|
+
align-items: flex-start;
|
|
1247
|
+
gap: 8px;
|
|
1248
|
+
margin: 0;
|
|
1249
|
+
padding: 8px 12px;
|
|
1250
|
+
border: 1px solid color-mix(in oklab, var(--dpk-amber) 40%, var(--dpk-rule));
|
|
1251
|
+
border-radius: var(--dpk-radius-sm);
|
|
1252
|
+
background: color-mix(in oklab, var(--dpk-amber) 10%, var(--dpk-paper-raised));
|
|
1253
|
+
color: var(--dpk-ink);
|
|
1254
|
+
font-size: 12.5px;
|
|
1255
|
+
line-height: 1.5;
|
|
1256
|
+
}
|
|
1257
|
+
.bd-warning svg {
|
|
1258
|
+
flex: none;
|
|
1259
|
+
width: 15px;
|
|
1260
|
+
height: 15px;
|
|
1261
|
+
margin-top: 2px;
|
|
1262
|
+
color: var(--dpk-amber);
|
|
1263
|
+
}
|
|
1264
|
+
.bd-empty {
|
|
1265
|
+
margin: 0;
|
|
1266
|
+
color: var(--dpk-ink-faint);
|
|
1267
|
+
font-size: 12px;
|
|
1268
|
+
line-height: 1.5;
|
|
1269
|
+
}
|
|
1270
|
+
.bd-chart {
|
|
1271
|
+
display: grid;
|
|
1272
|
+
gap: 8px;
|
|
1273
|
+
margin: 0;
|
|
1274
|
+
padding: 14px 16px 10px;
|
|
1275
|
+
border: 1px solid var(--dpk-rule);
|
|
1276
|
+
border-radius: var(--dpk-radius-lg);
|
|
1277
|
+
background: var(--dpk-paper-raised);
|
|
1278
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
1279
|
+
}
|
|
1280
|
+
.bd-chart figcaption {
|
|
1281
|
+
display: flex;
|
|
1282
|
+
flex-wrap: wrap;
|
|
1283
|
+
align-items: baseline;
|
|
1284
|
+
gap: 4px 12px;
|
|
1285
|
+
}
|
|
1286
|
+
.bd-chart-title {
|
|
1287
|
+
font-size: 13.5px;
|
|
1288
|
+
font-weight: 650;
|
|
1289
|
+
}
|
|
1290
|
+
.bd-chart-latest {
|
|
1291
|
+
margin-left: auto;
|
|
1292
|
+
color: var(--dpk-ink-soft);
|
|
1293
|
+
font-family: var(--dpk-mono);
|
|
1294
|
+
font-size: 12px;
|
|
1295
|
+
font-variant-numeric: tabular-nums;
|
|
1296
|
+
}
|
|
1297
|
+
.bd-about {
|
|
1298
|
+
position: relative;
|
|
1299
|
+
display: inline-flex;
|
|
1300
|
+
align-self: center;
|
|
1301
|
+
}
|
|
1302
|
+
.bd-about-btn {
|
|
1303
|
+
display: inline-grid;
|
|
1304
|
+
place-items: center;
|
|
1305
|
+
width: 20px;
|
|
1306
|
+
height: 20px;
|
|
1307
|
+
padding: 0;
|
|
1308
|
+
border: 0;
|
|
1309
|
+
border-radius: 50%;
|
|
1310
|
+
background: none;
|
|
1311
|
+
color: var(--dpk-ink-faint);
|
|
1312
|
+
cursor: help;
|
|
1313
|
+
}
|
|
1314
|
+
.bd-about-btn:hover,
|
|
1315
|
+
.bd-about-btn:focus-visible {
|
|
1316
|
+
outline: none;
|
|
1317
|
+
color: var(--dpk-ink);
|
|
1318
|
+
}
|
|
1319
|
+
.bd-about-btn:focus-visible {
|
|
1320
|
+
box-shadow: var(--dpk-focus);
|
|
1321
|
+
}
|
|
1322
|
+
.bd-about-btn svg {
|
|
1323
|
+
width: 15px;
|
|
1324
|
+
height: 15px;
|
|
1325
|
+
}
|
|
1326
|
+
.bd-about-tip {
|
|
1327
|
+
position: absolute;
|
|
1328
|
+
top: calc(100% + 6px);
|
|
1329
|
+
left: -8px;
|
|
1330
|
+
z-index: 2;
|
|
1331
|
+
width: max-content;
|
|
1332
|
+
max-width: 360px;
|
|
1333
|
+
padding: 8px 10px;
|
|
1334
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
1335
|
+
border-radius: var(--dpk-radius-sm);
|
|
1336
|
+
background: var(--dpk-paper-raised);
|
|
1337
|
+
box-shadow: var(--dpk-shadow-sm);
|
|
1338
|
+
color: var(--dpk-ink-soft);
|
|
1339
|
+
font-size: 12px;
|
|
1340
|
+
font-weight: 400;
|
|
1341
|
+
line-height: 1.5;
|
|
1342
|
+
visibility: hidden;
|
|
1343
|
+
opacity: 0;
|
|
1344
|
+
transition: opacity 120ms var(--dpk-ease);
|
|
1345
|
+
}
|
|
1346
|
+
.bd-about:hover .bd-about-tip,
|
|
1347
|
+
.bd-about-btn:focus-visible + .bd-about-tip {
|
|
1348
|
+
visibility: visible;
|
|
1349
|
+
opacity: 1;
|
|
1350
|
+
}
|
|
1351
|
+
.bd-multiples {
|
|
1352
|
+
display: grid;
|
|
1353
|
+
gap: 10px;
|
|
1354
|
+
}
|
|
1355
|
+
.bd-multiples h3,
|
|
1356
|
+
.bd-panel h3 {
|
|
1357
|
+
display: flex;
|
|
1358
|
+
align-items: center;
|
|
1359
|
+
gap: 8px;
|
|
1360
|
+
margin: 0;
|
|
1361
|
+
color: var(--dpk-ink-soft);
|
|
1362
|
+
font-size: 12px;
|
|
1363
|
+
font-weight: 650;
|
|
1364
|
+
letter-spacing: 0.02em;
|
|
1365
|
+
}
|
|
1366
|
+
.bd-grid {
|
|
1367
|
+
display: grid;
|
|
1368
|
+
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
1369
|
+
gap: 12px;
|
|
1370
|
+
}
|
|
1371
|
+
.bd-side {
|
|
1372
|
+
display: grid;
|
|
1373
|
+
gap: 12px;
|
|
1374
|
+
align-items: start;
|
|
1375
|
+
}
|
|
1376
|
+
.bd-panel {
|
|
1377
|
+
display: grid;
|
|
1378
|
+
gap: 10px;
|
|
1379
|
+
padding: 14px 16px;
|
|
1380
|
+
border: 1px solid var(--dpk-rule);
|
|
1381
|
+
border-radius: var(--dpk-radius-lg);
|
|
1382
|
+
background: var(--dpk-paper-raised);
|
|
1383
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
1384
|
+
}
|
|
1385
|
+
.bd-count {
|
|
1386
|
+
color: var(--dpk-ink-faint);
|
|
1387
|
+
font-family: var(--dpk-mono);
|
|
1388
|
+
font-weight: 500;
|
|
1389
|
+
}
|
|
1390
|
+
.bd-snapshots,
|
|
1391
|
+
.bd-estimates {
|
|
1392
|
+
display: grid;
|
|
1393
|
+
margin: 0;
|
|
1394
|
+
padding: 0;
|
|
1395
|
+
list-style: none;
|
|
1396
|
+
}
|
|
1397
|
+
.bd-snapshots li,
|
|
1398
|
+
.bd-estimates li {
|
|
1399
|
+
display: grid;
|
|
1400
|
+
align-items: center;
|
|
1401
|
+
gap: 10px;
|
|
1402
|
+
min-height: 34px;
|
|
1403
|
+
}
|
|
1404
|
+
.bd-snapshots li {
|
|
1405
|
+
grid-template-columns: minmax(0, 1fr) auto 26px;
|
|
1406
|
+
}
|
|
1407
|
+
.bd-estimates li {
|
|
1408
|
+
grid-template-columns: minmax(0, 1fr) 96px auto;
|
|
1409
|
+
}
|
|
1410
|
+
.bd-snapshots li + li,
|
|
1411
|
+
.bd-estimates li + li {
|
|
1412
|
+
border-top: 1px solid var(--dpk-rule);
|
|
1413
|
+
}
|
|
1414
|
+
.bd-snapshot-at,
|
|
1415
|
+
.bd-snapshot-sum {
|
|
1416
|
+
font-family: var(--dpk-mono);
|
|
1417
|
+
font-size: 12px;
|
|
1418
|
+
font-variant-numeric: tabular-nums;
|
|
1419
|
+
}
|
|
1420
|
+
.bd-snapshot-sum {
|
|
1421
|
+
color: var(--dpk-ink-faint);
|
|
1422
|
+
}
|
|
1423
|
+
.bd-snapshots .dpk-icon-btn {
|
|
1424
|
+
width: 26px;
|
|
1425
|
+
height: 26px;
|
|
1426
|
+
}
|
|
1427
|
+
.bd-estimate-name {
|
|
1428
|
+
min-width: 0;
|
|
1429
|
+
font-family: var(--dpk-mono);
|
|
1430
|
+
font-size: 13px;
|
|
1431
|
+
font-weight: 650;
|
|
1432
|
+
}
|
|
1433
|
+
.bd-estimate-points {
|
|
1434
|
+
display: inline-flex;
|
|
1435
|
+
align-items: center;
|
|
1436
|
+
gap: 5px;
|
|
1437
|
+
color: var(--dpk-ink-faint);
|
|
1438
|
+
font-size: 11px;
|
|
1439
|
+
}
|
|
1440
|
+
.bd-estimate-points .dpk-input {
|
|
1441
|
+
min-height: 28px;
|
|
1442
|
+
padding: 3px 8px;
|
|
1443
|
+
font-family: var(--dpk-mono);
|
|
1444
|
+
font-size: 12px;
|
|
1445
|
+
font-variant-numeric: tabular-nums;
|
|
1446
|
+
}
|
|
1447
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1448
|
+
.bd-settings-chevron {
|
|
1449
|
+
transition: none;
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
@media (max-width: 640px) {
|
|
1453
|
+
.bd-record {
|
|
1454
|
+
margin-left: 0;
|
|
1455
|
+
}
|
|
1456
|
+
.bd-control .dpk-rich-select,
|
|
1457
|
+
.bd-control .dpk-input {
|
|
1458
|
+
width: 100%;
|
|
1459
|
+
min-width: 0;
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
`,vr=/[ァ-ヶ]/g,pa=e=>e.normalize("NFKC").toLowerCase().replace(vr,t=>String.fromCharCode(t.charCodeAt(0)-96)),kr=(e,t)=>{const s=pa(t).split(/\s+/).filter(Boolean),a=pa(e);return s.every(n=>a.includes(n))},ca=(e,t,s,a)=>(s==="blocker"?Bn(e,t):Yn(e,t)).flatMap(i=>{const r=B(e,`${i.activityId}.${i.stepId}`),o=r?[r.activity.name,r.step.name]:[];return kr([ge(i),i.name,...o].join(" "),a)?[{story:i,place:o}]:[]}),ua=(e,t,s,a,n,i)=>{const{state:r}=t;if(ca(r,s,a,"").length===0)return m;const o=n.search?.side===a?n.search:null,d=o?ca(r,s,a,o.query):[],p=Math.max(0,Math.min(o?.active??0,d.length-1)),u=o?d[p]:void 0,w=a==="blocker"?e.addBlockerPlaceholder:e.addDependentPlaceholder,E=`dep-${a}-choices`,S=c=>`dep-${a}-${c.story.id}`,M=c=>{o||!(c.currentTarget instanceof HTMLInputElement)||n.set({side:a,query:c.currentTarget.value,active:0})},$=c=>{i(c.story.id),n.set(null)},O=c=>{if(!c.isComposing)switch(ma(c)){case"ArrowDown":case"ArrowUp":{if(c.preventDefault(),!o){M(c);return}if(d.length===0)return;const T=ma(c)==="ArrowDown"?1:-1;n.set({...o,active:(p+T+d.length)%d.length});return}case"Enter":if(!u)return;c.preventDefault(),$(u);return;case"Escape":if(!o)return;c.preventDefault(),n.set(null);return}};return l`<div class="sp-dep-picker">
|
|
1463
|
+
<input
|
|
1464
|
+
class="dpk-input sp-dep-search"
|
|
1465
|
+
type="text"
|
|
1466
|
+
role="combobox"
|
|
1467
|
+
data-role=${`add-${a}`}
|
|
1468
|
+
aria-label=${w}
|
|
1469
|
+
placeholder=${w}
|
|
1470
|
+
autocomplete="off"
|
|
1471
|
+
spellcheck="false"
|
|
1472
|
+
aria-autocomplete="list"
|
|
1473
|
+
aria-expanded=${String(d.length>0)}
|
|
1474
|
+
aria-controls=${E}
|
|
1475
|
+
aria-activedescendant=${u?S(u):m}
|
|
1476
|
+
.value=${o?.query??""}
|
|
1477
|
+
@focus=${M}
|
|
1478
|
+
@click=${M}
|
|
1479
|
+
@input=${c=>{c.currentTarget instanceof HTMLInputElement&&n.set({side:a,query:c.currentTarget.value,active:0})}}
|
|
1480
|
+
@keydown=${O}
|
|
1481
|
+
@blur=${()=>{o&&n.set(null)}}
|
|
1482
|
+
/>
|
|
1483
|
+
${o?d.length===0?l`<p class="sp-dep-none" role="status">${e.noDependencyMatch}</p>`:l`<ul id=${E} class="sp-dep-choices" role="listbox" aria-label=${w}>
|
|
1484
|
+
${d.map(c=>wr(r,c,S(c),c===u,$))}
|
|
1485
|
+
</ul>`:m}
|
|
1486
|
+
</div>`},ma=e=>!e.ctrlKey||e.altKey||e.metaKey||e.shiftKey?e.key:e.key==="n"?"ArrowDown":e.key==="p"?"ArrowUp":e.key,wr=(e,t,s,a,n)=>{const i=me(e).find(r=>r.id===t.story.statusId);return l`<li
|
|
1487
|
+
id=${s}
|
|
1488
|
+
role="option"
|
|
1489
|
+
data-story=${t.story.id}
|
|
1490
|
+
aria-selected=${String(a)}
|
|
1491
|
+
@pointerdown=${r=>r.preventDefault()}
|
|
1492
|
+
@click=${()=>n(t)}
|
|
1493
|
+
>
|
|
1494
|
+
<span class="sp-dep-choice-name" style=${I(i?.tone)}>
|
|
1495
|
+
${i?re(i):m}<span>${t.story.name}</span>
|
|
1496
|
+
</span>
|
|
1497
|
+
${t.place.length===0?m:l`<span class="sp-dep-choice-place">${t.place.map(r=>l`<span>${r}</span>`)}</span>`}
|
|
1498
|
+
</li>`},Er=j`
|
|
1499
|
+
.sp-dep-picker {
|
|
1500
|
+
display: grid;
|
|
1501
|
+
gap: 4px;
|
|
1502
|
+
}
|
|
1503
|
+
/* The choices push the panel's content down rather than float: the panel
|
|
1504
|
+
scrolls, and a list hanging out of it would be cut. */
|
|
1505
|
+
.sp-dep-choices {
|
|
1506
|
+
display: grid;
|
|
1507
|
+
gap: 1px;
|
|
1508
|
+
max-height: 240px;
|
|
1509
|
+
margin: 0;
|
|
1510
|
+
padding: 4px;
|
|
1511
|
+
overflow-y: auto;
|
|
1512
|
+
overscroll-behavior: contain;
|
|
1513
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
1514
|
+
border-radius: var(--dpk-radius-sm);
|
|
1515
|
+
background: var(--dpk-paper-raised);
|
|
1516
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
1517
|
+
list-style: none;
|
|
1518
|
+
}
|
|
1519
|
+
.sp-dep-choices [role='option'] {
|
|
1520
|
+
display: grid;
|
|
1521
|
+
gap: 1px;
|
|
1522
|
+
padding: 5px 8px;
|
|
1523
|
+
border-radius: var(--dpk-radius-sm);
|
|
1524
|
+
cursor: pointer;
|
|
1525
|
+
}
|
|
1526
|
+
.sp-dep-choices [role='option']:hover,
|
|
1527
|
+
.sp-dep-choices [role='option'][aria-selected='true'] {
|
|
1528
|
+
background: var(--dpk-paper-sunken);
|
|
1529
|
+
}
|
|
1530
|
+
.sp-dep-choice-name {
|
|
1531
|
+
display: flex;
|
|
1532
|
+
align-items: center;
|
|
1533
|
+
gap: 8px;
|
|
1534
|
+
min-width: 0;
|
|
1535
|
+
color: var(--dpk-ink);
|
|
1536
|
+
font-size: 12.5px;
|
|
1537
|
+
font-weight: 600;
|
|
1538
|
+
}
|
|
1539
|
+
.sp-dep-choice-name > span,
|
|
1540
|
+
.sp-dep-choice-place {
|
|
1541
|
+
overflow: hidden;
|
|
1542
|
+
text-overflow: ellipsis;
|
|
1543
|
+
white-space: nowrap;
|
|
1544
|
+
}
|
|
1545
|
+
.sp-dep-choice-place {
|
|
1546
|
+
padding-left: 22px;
|
|
1547
|
+
color: var(--dpk-ink-faint);
|
|
1548
|
+
font-size: 11px;
|
|
1549
|
+
}
|
|
1550
|
+
.sp-dep-choice-place span + span::before {
|
|
1551
|
+
content: ' / ';
|
|
1552
|
+
}
|
|
1553
|
+
.sp-dep-none {
|
|
1554
|
+
margin: 0;
|
|
1555
|
+
padding: 6px 2px;
|
|
1556
|
+
color: var(--dpk-ink-faint);
|
|
1557
|
+
font-size: 12px;
|
|
1558
|
+
}
|
|
1559
|
+
`,Sr=U(nn),$r=(e,t)=>{const s=Pe(t.navigation)==="critical-path",a=s?bs(t.state).ids.size:null;return l`<button
|
|
1560
|
+
class="dpk-btn dpk-btn--ghost highlight-toggle"
|
|
1561
|
+
type="button"
|
|
1562
|
+
data-highlight-toggle="critical-path"
|
|
1563
|
+
aria-pressed=${String(s)}
|
|
1564
|
+
title=${e.criticalPathHint}
|
|
1565
|
+
@click=${()=>t.navigate({highlight:s?null:"critical-path"})}
|
|
1566
|
+
>
|
|
1567
|
+
${Sr()}<span>${e.criticalPathButton}</span>
|
|
1568
|
+
${a===null?m:l`<span class="highlight-count">${e.criticalPathCount(a)}</span>`}
|
|
1569
|
+
</button>`},xr=j`
|
|
1570
|
+
.highlight-toggle {
|
|
1571
|
+
gap: 6px;
|
|
1572
|
+
margin-left: auto;
|
|
1573
|
+
}
|
|
1574
|
+
.highlight-toggle svg {
|
|
1575
|
+
width: 14px;
|
|
1576
|
+
height: 14px;
|
|
1577
|
+
}
|
|
1578
|
+
.highlight-toggle[aria-pressed='true'] {
|
|
1579
|
+
border-color: color-mix(in oklab, var(--dpk-accent) 55%, var(--dpk-rule-strong));
|
|
1580
|
+
background: color-mix(in oklab, var(--dpk-accent) 12%, var(--dpk-paper-raised));
|
|
1581
|
+
color: var(--dpk-ink);
|
|
1582
|
+
}
|
|
1583
|
+
.highlight-toggle[aria-pressed='true'] svg {
|
|
1584
|
+
color: var(--dpk-accent);
|
|
1585
|
+
}
|
|
1586
|
+
.highlight-count {
|
|
1587
|
+
color: var(--dpk-ink-soft);
|
|
1588
|
+
font-family: var(--dpk-mono);
|
|
1589
|
+
font-size: 10.5px;
|
|
1590
|
+
font-variant-numeric: tabular-nums;
|
|
1591
|
+
}
|
|
1592
|
+
`,Tr=(e,t,s)=>l`
|
|
1593
|
+
<section class="st-overview" data-testid="usm-labels">
|
|
1594
|
+
${s.rows.length===0?l`<div class="empty">
|
|
1595
|
+
<h2>${e.noLabelsTitle}</h2>
|
|
1596
|
+
<p>${e.noLabelsBody}</p>
|
|
1597
|
+
</div>`:m}
|
|
1598
|
+
<ol class="st-list">
|
|
1599
|
+
${C(s.rows,a=>a.id,a=>_r(e,t,a))}
|
|
1600
|
+
</ol>
|
|
1601
|
+
<div>
|
|
1602
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Ni(e,t)}>
|
|
1603
|
+
${e.newLabelButton}
|
|
1604
|
+
</button>
|
|
1605
|
+
</div>
|
|
1606
|
+
</section>
|
|
1607
|
+
`,_r=(e,t,s)=>{const a={type:"label",id:s.id};return l`
|
|
1608
|
+
<li class="st-row" data-label=${s.id} data-dpk-target=${A(a)} style=${I(s.tone)}>
|
|
1609
|
+
<span class="label-swatch" aria-hidden="true"></span>
|
|
1610
|
+
<span class="st-name">
|
|
1611
|
+
<dpk-inline-edit
|
|
1612
|
+
.value=${s.name}
|
|
1613
|
+
.label=${e.labelNameLabel}
|
|
1614
|
+
@dpk-commit=${Q(n=>t.dispatch({type:"SET_LABEL_NAME",target:a,payload:{name:n}}))}
|
|
1615
|
+
></dpk-inline-edit>
|
|
1616
|
+
</span>
|
|
1617
|
+
${gt(e,s.storyCount,s.share)}
|
|
1618
|
+
${bt(e,s.tone,n=>t.dispatch({type:"SET_LABEL_TONE",target:a,payload:{tone:n}}))}
|
|
1619
|
+
${qe(e,{ids:t.state.labels.map(n=>n.id),row:s,deleteLabel:e.deleteLabelAria,reorder:n=>t.dispatch({type:"REORDER_LABEL",target:a,payload:{after:n}}),remove:()=>t.dispatch({type:"DELETE_LABEL",target:a,payload:{}})})}
|
|
1620
|
+
</li>
|
|
1621
|
+
`},Ar=(e,t,s)=>{const{state:a}=t,n=xe.filter(o=>fe(a,o).length>0);if(n.length===0)return m;const i=ze(a,t.navigation),r=Object.fromEntries(xe.map(o=>[o,null]));return l`<div class="map-filter" role="group" aria-label=${e.filterLabel} data-testid="usm-map-filter">
|
|
1622
|
+
${n.map(o=>Mr(e,t,i,o,s))} ${Ir(e,t)}
|
|
1623
|
+
${Gn(i)?l`<a class="filter-clear" href=${t.hashFor(r)}>${e.clearFilter}</a>`:m}
|
|
1624
|
+
</div>`},Ir=(e,t)=>{const{state:s}=t,a=Xt(s);if(!a||s.statuses.length<2)return m;const n=fs(s,t.navigation).size===0,i=s.stories.filter(r=>$e(s,r)).length;return l`<label class="show-finished">
|
|
1625
|
+
<input
|
|
1626
|
+
type="checkbox"
|
|
1627
|
+
data-show-finished
|
|
1628
|
+
.checked=${n}
|
|
1629
|
+
@change=${r=>{const o=r.currentTarget instanceof HTMLInputElement&&r.currentTarget.checked;t.navigate({[ie.key]:o?ie.value:null})}}
|
|
1630
|
+
/>
|
|
1631
|
+
<span>${e.showFinished(a.name)}</span>
|
|
1632
|
+
<span class="show-finished-count">${i}</span>
|
|
1633
|
+
</label>`},Mr=(e,t,s,a,n)=>{const i=s[a],r=Rr(e,t.state,s.hiddenStatusIds,a),o=r.filter(p=>i.has(p.id)),d=n.openFor===a;return l`<span class="filter-field">
|
|
1634
|
+
<button
|
|
1635
|
+
class="dpk-filter"
|
|
1636
|
+
type="button"
|
|
1637
|
+
data-filter-trigger=${a}
|
|
1638
|
+
data-active=${String(o.length>0)}
|
|
1639
|
+
aria-haspopup="menu"
|
|
1640
|
+
aria-expanded=${String(d)}
|
|
1641
|
+
@click=${()=>n.toggle(a)}
|
|
1642
|
+
>
|
|
1643
|
+
<span class="filter-key">${e.filterKeyLabel(a)}</span>
|
|
1644
|
+
<span class="filter-value">${Lr(e,o)}</span>
|
|
1645
|
+
</button>
|
|
1646
|
+
${d?Dr(e,t,a,i,r,n):m}
|
|
1647
|
+
</span>`},Lr=(e,t)=>{const[s]=t;return s?t.length===1?s.name:`${s.name} +${t.length-1}`:e.filterAll},Dr=(e,t,s,a,n,i)=>l`<div
|
|
1648
|
+
id="filter-menu"
|
|
1649
|
+
class="comment-pop filter-menu"
|
|
1650
|
+
popover="manual"
|
|
1651
|
+
role="menu"
|
|
1652
|
+
aria-label=${e.filterKeyLabel(s)}
|
|
1653
|
+
data-filter=${s}
|
|
1654
|
+
@keydown=${r=>{r.key==="Escape"&&(r.preventDefault(),i.close())}}
|
|
1655
|
+
>
|
|
1656
|
+
<a
|
|
1657
|
+
class="filter-option"
|
|
1658
|
+
role="menuitemcheckbox"
|
|
1659
|
+
data-option=""
|
|
1660
|
+
aria-checked=${String(a.size===0)}
|
|
1661
|
+
href=${t.hashFor({[s]:null})}
|
|
1662
|
+
>
|
|
1663
|
+
<span class="filter-check">${a.size===0?Qe():m}</span>
|
|
1664
|
+
<span class="filter-name">${e.filterAll}</span>
|
|
1665
|
+
</a>
|
|
1666
|
+
${n.map(r=>{const o=a.has(r.id);return l`<a
|
|
1667
|
+
class="filter-option"
|
|
1668
|
+
role="menuitemcheckbox"
|
|
1669
|
+
data-option=${r.id}
|
|
1670
|
+
data-none=${r.id===ne?"true":m}
|
|
1671
|
+
aria-checked=${String(o)}
|
|
1672
|
+
style=${r.style}
|
|
1673
|
+
href=${t.hashFor({[s]:ys(t.state,s,Vn(a,r.id))})}
|
|
1674
|
+
>
|
|
1675
|
+
<span class="filter-check">${o?Qe():m}</span>
|
|
1676
|
+
${r.mark}
|
|
1677
|
+
<span class="filter-name" title=${r.name}>${r.name}</span>
|
|
1678
|
+
<span class="filter-count">${r.count}</span>
|
|
1679
|
+
</a>`})}
|
|
1680
|
+
</div>`,Rr=(e,t,s,a)=>{const n=i=>t.stories.filter(r=>r.statusId===void 0||!s.has(r.statusId)).filter(i).length;switch(a){case"status":return me(t).filter(i=>!s.has(i.id)).map(i=>({id:i.id,name:i.name,count:n(r=>r.statusId===i.id),mark:re(i),style:I(i.tone)}));case"label":return fe(t,a).map(i=>{const r=t.labels.find(o=>o.id===i);return{id:i,name:r?.name??e.noLabel,count:n(o=>r?(o.labelIds??[]).includes(i):(o.labelIds??[]).length===0),mark:l`<span class="filter-dot"></span>`,style:I(r?.tone)}});case"estimate":return fe(t,a).map(i=>{const r=F(t,i);return{id:i,name:r?.name??e.unestimatedFilter,count:n(o=>(o.estimateId??ne)===i),mark:r?l`<span class="filter-points">${r.points}pt</span>`:m,style:""}});case"assignee":return fe(t,a).map(i=>{const r=K(t,i);return{id:i,name:r?.name??e.noAssigneeFilter,count:n(o=>(o.assigneeId??ne)===i),mark:l`<span class="filter-dot"></span>`,style:I(r?.tone)}})}},Or=j`
|
|
1681
|
+
.show-finished {
|
|
1682
|
+
display: inline-flex;
|
|
1683
|
+
align-items: center;
|
|
1684
|
+
gap: 6px;
|
|
1685
|
+
padding: 0 4px;
|
|
1686
|
+
color: var(--dpk-ink-soft);
|
|
1687
|
+
font-size: 12px;
|
|
1688
|
+
font-weight: 600;
|
|
1689
|
+
cursor: pointer;
|
|
1690
|
+
user-select: none;
|
|
1691
|
+
}
|
|
1692
|
+
.show-finished input {
|
|
1693
|
+
margin: 0;
|
|
1694
|
+
accent-color: var(--dpk-blue);
|
|
1695
|
+
}
|
|
1696
|
+
.show-finished-count {
|
|
1697
|
+
color: var(--dpk-ink-faint);
|
|
1698
|
+
font-family: var(--dpk-mono);
|
|
1699
|
+
font-size: 10.5px;
|
|
1700
|
+
font-variant-numeric: tabular-nums;
|
|
1701
|
+
}
|
|
1702
|
+
.map-filter {
|
|
1703
|
+
display: flex;
|
|
1704
|
+
flex-wrap: wrap;
|
|
1705
|
+
align-items: center;
|
|
1706
|
+
gap: 8px;
|
|
1707
|
+
min-width: 0;
|
|
1708
|
+
}
|
|
1709
|
+
.filter-field {
|
|
1710
|
+
min-width: 0;
|
|
1711
|
+
}
|
|
1712
|
+
.filter-clear {
|
|
1713
|
+
margin-left: 2px;
|
|
1714
|
+
color: var(--dpk-blue);
|
|
1715
|
+
font-size: 12px;
|
|
1716
|
+
font-weight: 600;
|
|
1717
|
+
text-decoration: none;
|
|
1718
|
+
}
|
|
1719
|
+
.filter-clear:hover {
|
|
1720
|
+
text-decoration: underline;
|
|
1721
|
+
}
|
|
1722
|
+
.comment-pop.filter-menu {
|
|
1723
|
+
gap: 1px;
|
|
1724
|
+
padding: 6px;
|
|
1725
|
+
}
|
|
1726
|
+
.filter-option {
|
|
1727
|
+
display: flex;
|
|
1728
|
+
align-items: center;
|
|
1729
|
+
gap: 8px;
|
|
1730
|
+
min-height: 30px;
|
|
1731
|
+
padding: 4px 8px;
|
|
1732
|
+
border-radius: var(--dpk-radius-sm);
|
|
1733
|
+
color: var(--dpk-ink);
|
|
1734
|
+
font-size: 12.5px;
|
|
1735
|
+
font-weight: 550;
|
|
1736
|
+
text-decoration: none;
|
|
1737
|
+
}
|
|
1738
|
+
.filter-option[data-none] .filter-name {
|
|
1739
|
+
color: var(--dpk-ink-soft);
|
|
1740
|
+
font-style: italic;
|
|
1741
|
+
}
|
|
1742
|
+
.filter-option:hover,
|
|
1743
|
+
.filter-option:focus-visible {
|
|
1744
|
+
outline: none;
|
|
1745
|
+
background: var(--dpk-paper-sunken);
|
|
1746
|
+
}
|
|
1747
|
+
.filter-option:focus-visible {
|
|
1748
|
+
box-shadow: var(--dpk-focus);
|
|
1749
|
+
}
|
|
1750
|
+
.filter-check {
|
|
1751
|
+
flex: none;
|
|
1752
|
+
display: inline-grid;
|
|
1753
|
+
place-items: center;
|
|
1754
|
+
width: 16px;
|
|
1755
|
+
height: 16px;
|
|
1756
|
+
color: var(--dpk-blue);
|
|
1757
|
+
}
|
|
1758
|
+
.filter-check svg {
|
|
1759
|
+
width: 14px;
|
|
1760
|
+
height: 14px;
|
|
1761
|
+
}
|
|
1762
|
+
.filter-name {
|
|
1763
|
+
flex: 1;
|
|
1764
|
+
min-width: 0;
|
|
1765
|
+
overflow: hidden;
|
|
1766
|
+
text-overflow: ellipsis;
|
|
1767
|
+
white-space: nowrap;
|
|
1768
|
+
}
|
|
1769
|
+
.filter-dot {
|
|
1770
|
+
flex: none;
|
|
1771
|
+
width: 8px;
|
|
1772
|
+
height: 8px;
|
|
1773
|
+
border-radius: 50%;
|
|
1774
|
+
background: var(--usm-tone, var(--dpk-ink-faint));
|
|
1775
|
+
}
|
|
1776
|
+
.filter-points,
|
|
1777
|
+
.filter-count {
|
|
1778
|
+
color: var(--dpk-ink-faint);
|
|
1779
|
+
font-family: var(--dpk-mono);
|
|
1780
|
+
font-size: 10.5px;
|
|
1781
|
+
font-variant-numeric: tabular-nums;
|
|
1782
|
+
}
|
|
1783
|
+
`,Nr=(e,t,s)=>l`<div class="map-toolbar" data-testid="usm-map-toolbar">
|
|
1784
|
+
${Ar(e,t,s)} ${$r(e,t)}
|
|
1785
|
+
</div>`,Cr=j`
|
|
1786
|
+
.map-toolbar {
|
|
1787
|
+
display: flex;
|
|
1788
|
+
flex-wrap: wrap;
|
|
1789
|
+
align-items: center;
|
|
1790
|
+
gap: 8px 12px;
|
|
1791
|
+
padding: 5px 24px;
|
|
1792
|
+
border-bottom: 1px solid var(--dpk-rule);
|
|
1793
|
+
}
|
|
1794
|
+
`,Br=(e,t,s)=>l`
|
|
1795
|
+
<section class="st-overview" data-testid="usm-members">
|
|
1796
|
+
${s.rows.length===0?l`<div class="empty">
|
|
1797
|
+
<h2>${e.noMembersTitle}</h2>
|
|
1798
|
+
<p>${e.noMembersBody}</p>
|
|
1799
|
+
</div>`:m}
|
|
1800
|
+
<ol class="st-list">
|
|
1801
|
+
${C(s.rows,a=>a.id,a=>Yr(e,t,a))}
|
|
1802
|
+
</ol>
|
|
1803
|
+
<div>
|
|
1804
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Ci(e,t)}>
|
|
1805
|
+
${e.newMemberButton}
|
|
1806
|
+
</button>
|
|
1807
|
+
</div>
|
|
1808
|
+
</section>
|
|
1809
|
+
`,Yr=(e,t,s)=>{const a={type:"member",id:s.id};return l`
|
|
1810
|
+
<li class="st-row" data-member=${s.id} data-dpk-target=${A(a)} style=${I(s.tone)}>
|
|
1811
|
+
<span class="member-avatar" aria-hidden="true">${ht(s.name)}</span>
|
|
1812
|
+
<span class="st-name">
|
|
1813
|
+
<dpk-inline-edit
|
|
1814
|
+
.value=${s.name}
|
|
1815
|
+
.label=${e.memberNameLabel}
|
|
1816
|
+
@dpk-commit=${Q(n=>t.dispatch({type:"SET_MEMBER_NAME",target:a,payload:{name:n}}))}
|
|
1817
|
+
></dpk-inline-edit>
|
|
1818
|
+
</span>
|
|
1819
|
+
${gt(e,s.storyCount,s.share)}
|
|
1820
|
+
${bt(e,s.tone,n=>t.dispatch({type:"SET_MEMBER_TONE",target:a,payload:{tone:n}}))}
|
|
1821
|
+
${qe(e,{ids:t.state.members.map(n=>n.id),row:s,deleteLabel:e.deleteMemberAria,reorder:n=>t.dispatch({type:"REORDER_MEMBER",target:a,payload:{after:n}}),remove:()=>t.dispatch({type:"DELETE_MEMBER",target:a,payload:{}})})}
|
|
1822
|
+
</li>
|
|
1823
|
+
`},Ur=(e,t,s)=>l`
|
|
1824
|
+
<section class="ms-overview" data-testid="usm-milestones">
|
|
1825
|
+
${s.length===0?l`<div class="empty">
|
|
1826
|
+
<h2>${e.noMilestonesTitle}</h2>
|
|
1827
|
+
<p>${e.noMilestonesBody}</p>
|
|
1828
|
+
</div>`:m}
|
|
1829
|
+
<ol class="ms-timeline">
|
|
1830
|
+
${C(s,a=>a.id,a=>Pr(e,t,a))}
|
|
1831
|
+
<li class="ms-add">
|
|
1832
|
+
<span class="ms-when" aria-hidden="true"></span>
|
|
1833
|
+
<span class="ms-rail" aria-hidden="true"><span class="ms-node ms-node--add"></span></span>
|
|
1834
|
+
<div class="ms-body">
|
|
1835
|
+
<button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Ks(e,t)}>
|
|
1836
|
+
${e.newMilestoneButton}
|
|
1837
|
+
</button>
|
|
1838
|
+
</div>
|
|
1839
|
+
</li>
|
|
1840
|
+
</ol>
|
|
1841
|
+
</section>
|
|
1842
|
+
`,Pr=(e,t,s)=>{const a=s.id;return l`
|
|
1843
|
+
<li class="ms-entry" data-milestone-card=${a} data-dpk-target=${A({type:"milestone",id:a})}>
|
|
1844
|
+
<div class="ms-when">
|
|
1845
|
+
${s.timeframe===""?l`<span class="ms-timeframe" data-empty="true">${e.timeframeUnset}</span>`:l`<span class="ms-timeframe">${s.timeframe}</span>`}
|
|
1846
|
+
</div>
|
|
1847
|
+
<span class="ms-rail" aria-hidden="true"><span class="ms-node">${s.ordinal}</span></span>
|
|
1848
|
+
<article class="ms-body">
|
|
1849
|
+
<h3 class="ms-name">
|
|
1850
|
+
<dpk-inline-edit
|
|
1851
|
+
.value=${s.name}
|
|
1852
|
+
.label=${e.milestoneNameLabel}
|
|
1853
|
+
@dpk-commit=${Q(n=>t.dispatch({type:"SET_MILESTONE_NAME",target:{type:"milestone",id:a},payload:{name:n}}))}
|
|
1854
|
+
></dpk-inline-edit>
|
|
1855
|
+
</h3>
|
|
1856
|
+
${s.description===""?l`<p class="ms-description" data-empty="true">${e.milestoneNoDescription}</p>`:l`<p class="ms-description">${s.description}</p>`}
|
|
1857
|
+
<dl class="ms-facts">
|
|
1858
|
+
<div>
|
|
1859
|
+
<dt>${e.storiesLabel}</dt>
|
|
1860
|
+
<dd>
|
|
1861
|
+
<strong>${s.storyCount}</strong>
|
|
1862
|
+
<span>${e.shareOfStories(Math.round(s.share*100))}</span>
|
|
1863
|
+
</dd>
|
|
1864
|
+
</div>
|
|
1865
|
+
<div>
|
|
1866
|
+
<dt>${e.coverageLabel}</dt>
|
|
1867
|
+
<dd>
|
|
1868
|
+
<strong>${e.coverage(s.coverage.covered,s.coverage.total)}</strong>
|
|
1869
|
+
<span class="ms-meter" aria-hidden="true">
|
|
1870
|
+
<span
|
|
1871
|
+
style=${`width:${s.coverage.total===0?0:s.coverage.covered/s.coverage.total*100}%`}
|
|
1872
|
+
></span>
|
|
1873
|
+
</span>
|
|
1874
|
+
</dd>
|
|
1875
|
+
</div>
|
|
1876
|
+
</dl>
|
|
1877
|
+
${s.progress.length===0?m:zr(e,s)}
|
|
1878
|
+
</article>
|
|
1879
|
+
</li>
|
|
1880
|
+
`},zr=(e,t)=>l`
|
|
1881
|
+
<div class="ms-breakdown">
|
|
1882
|
+
${Os(t.progress,e.progressAria(t.progress.map(s=>`${s.name} ${s.count}`).join(", ")))}
|
|
1883
|
+
<ul class="ms-legend" aria-hidden="true">
|
|
1884
|
+
${t.progress.map(s=>l`<li data-status=${s.id} style=${I(s.tone)}>
|
|
1885
|
+
${re(s)}
|
|
1886
|
+
<span class="ms-breakdown-name">${s.name}</span>
|
|
1887
|
+
<span class="ms-breakdown-count">${s.count}</span>
|
|
1888
|
+
</li>`)}
|
|
1889
|
+
</ul>
|
|
1890
|
+
</div>
|
|
1891
|
+
`,Fr=(e,t,s,a,n,i)=>{if(s.kind!=="picking-step")return m;const r=x(t.state,s.storyId),o=te(t.state,s.activityId);if(!r||!o)return m;const d=o.steps[0]?.id??null,p=n??d;return l`<div class="comment-pop move-dialog" id="move-dialog" popover="manual">
|
|
1892
|
+
<span class="dpk-label">${e.moveDialogLabel}</span>
|
|
1893
|
+
${a.render({options:o.steps.map(u=>({value:u.id,label:u.name})),value:p??"",onChange:i.pick,ariaLabel:e.moveDialogSelectLabel})}
|
|
1894
|
+
<div class="pop-actions">
|
|
1895
|
+
<button
|
|
1896
|
+
class="dpk-btn dpk-btn--accent"
|
|
1897
|
+
type="button"
|
|
1898
|
+
@click=${()=>{p?i.confirm(p):i.cancel()}}
|
|
1899
|
+
>
|
|
1900
|
+
${e.moveConfirm}
|
|
1901
|
+
</button>
|
|
1902
|
+
<button class="dpk-btn" type="button" @click=${i.cancel}>${e.moveCancel}</button>
|
|
1903
|
+
</div>
|
|
1904
|
+
</div>`},Vr=(e,t)=>l`<div class="board-head" data-testid="usm-board-head">${e}${t}</div>`,Gr=U(Qa),Hr=(e,t,s,a)=>{const{state:n}=t,i=us(n),r=i.filter(o=>a.folded.has(o));return l`
|
|
1905
|
+
<div class="board-bar">
|
|
1906
|
+
<div class="page-nav" style=${`min-width: ${a.minimum}px`}>
|
|
1907
|
+
<div class="page-tabs dpk-tabstrip" role="tablist" aria-label=${e.pageTabsLabel}>
|
|
1908
|
+
${i.map(o=>Kr(t,o,s,ha(e,o),ba(n,o),a.folded.has(o)))}
|
|
1909
|
+
</div>
|
|
1910
|
+
<button
|
|
1911
|
+
class="dpk-btn dpk-btn--ghost tabs-more"
|
|
1912
|
+
type="button"
|
|
1913
|
+
data-tabs-more-trigger
|
|
1914
|
+
data-unused=${String(r.length===0)}
|
|
1915
|
+
aria-label=${e.moreTabsLabel}
|
|
1916
|
+
aria-haspopup="menu"
|
|
1917
|
+
aria-expanded=${String(a.open)}
|
|
1918
|
+
@click=${a.toggle}
|
|
1919
|
+
>
|
|
1920
|
+
${Gr()}
|
|
1921
|
+
</button>
|
|
1922
|
+
${a.open&&r.length>0?l`<div
|
|
1923
|
+
id="tabs-menu"
|
|
1924
|
+
class="comment-pop tabs-menu"
|
|
1925
|
+
popover="manual"
|
|
1926
|
+
role="menu"
|
|
1927
|
+
aria-label=${e.moreTabsLabel}
|
|
1928
|
+
@keydown=${o=>{o.key==="Escape"&&(o.preventDefault(),a.close())}}
|
|
1929
|
+
>
|
|
1930
|
+
${r.map(o=>l`<a
|
|
1931
|
+
class="tabs-menu-item"
|
|
1932
|
+
role="menuitem"
|
|
1933
|
+
data-tab=${o}
|
|
1934
|
+
href=${t.hashFor({tab:o==="map"?null:o})}
|
|
1935
|
+
@click=${a.close}
|
|
1936
|
+
>${ha(e,o)}<span class="dpk-count">${ba(n,o)}</span></a
|
|
1937
|
+
>`)}
|
|
1938
|
+
</div>`:m}
|
|
1939
|
+
</div>
|
|
1940
|
+
${s==="map"&&n.activities.some(o=>o.steps.length>0)?Gi(e,t):m}
|
|
1941
|
+
</div>
|
|
1942
|
+
`},ha=(e,t)=>{switch(t){case"map":return e.mapTab;case"table":return e.tableTab;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}},ba=(e,t)=>{switch(t){case"map":return e.stories.length;case"table":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}},Kr=(e,t,s,a,n,i)=>l`<a
|
|
1943
|
+
role="tab"
|
|
1944
|
+
data-tab=${t}
|
|
1945
|
+
data-overflow=${i?"":m}
|
|
1946
|
+
aria-hidden=${i?"true":m}
|
|
1947
|
+
tabindex=${i?"-1":m}
|
|
1948
|
+
aria-selected=${t===s?"true":"false"}
|
|
1949
|
+
href=${e.hashFor({tab:t==="map"?null:t})}
|
|
1950
|
+
>${a}<span class="dpk-count">${n}</span></a
|
|
1951
|
+
>`,qr=36,Wr=12,jr=220,Xr=j`
|
|
1952
|
+
/* The tabs and their more button share what the bar's line leaves; the line
|
|
1953
|
+
wraps only when even the current tab and the button do not fit. */
|
|
1954
|
+
.page-nav {
|
|
1955
|
+
display: flex;
|
|
1956
|
+
flex: 1 1 0;
|
|
1957
|
+
align-items: center;
|
|
1958
|
+
gap: 4px;
|
|
1959
|
+
max-width: 100%;
|
|
1960
|
+
}
|
|
1961
|
+
/* A folded tab stays laid out, out of sight, so it can still be measured. */
|
|
1962
|
+
.page-tabs [role='tab'][data-overflow] {
|
|
1963
|
+
position: absolute;
|
|
1964
|
+
top: 0;
|
|
1965
|
+
left: 0;
|
|
1966
|
+
visibility: hidden;
|
|
1967
|
+
pointer-events: none;
|
|
1968
|
+
}
|
|
1969
|
+
.tabs-more {
|
|
1970
|
+
flex: none;
|
|
1971
|
+
padding: 6px 8px;
|
|
1972
|
+
}
|
|
1973
|
+
.tabs-more svg {
|
|
1974
|
+
width: 16px;
|
|
1975
|
+
height: 16px;
|
|
1976
|
+
}
|
|
1977
|
+
.tabs-more[aria-expanded='true'] {
|
|
1978
|
+
background: var(--dpk-paper-inset);
|
|
1979
|
+
color: var(--dpk-ink);
|
|
1980
|
+
}
|
|
1981
|
+
.tabs-more[data-unused='true'] {
|
|
1982
|
+
position: absolute;
|
|
1983
|
+
visibility: hidden;
|
|
1984
|
+
pointer-events: none;
|
|
1985
|
+
}
|
|
1986
|
+
.comment-pop.tabs-menu {
|
|
1987
|
+
gap: 2px;
|
|
1988
|
+
padding: 6px;
|
|
1989
|
+
}
|
|
1990
|
+
.tabs-menu-item {
|
|
1991
|
+
display: flex;
|
|
1992
|
+
align-items: center;
|
|
1993
|
+
justify-content: space-between;
|
|
1994
|
+
gap: 10px;
|
|
1995
|
+
padding: 8px 10px;
|
|
1996
|
+
border-radius: var(--dpk-radius-sm);
|
|
1997
|
+
color: var(--dpk-ink);
|
|
1998
|
+
font-size: 13px;
|
|
1999
|
+
font-weight: 600;
|
|
2000
|
+
text-decoration: none;
|
|
2001
|
+
}
|
|
2002
|
+
.tabs-menu-item:hover,
|
|
2003
|
+
.tabs-menu-item:focus-visible {
|
|
2004
|
+
outline: none;
|
|
2005
|
+
background: var(--dpk-paper-sunken);
|
|
2006
|
+
}
|
|
2007
|
+
`,Zr=e=>x(e.state,e.navigation.story),Jr=(e,t,s,a,n)=>{const{state:i}=t,r={type:"story",id:s.id},o=()=>t.navigate({story:null}),d=B(i,`${s.activityId}.${s.stepId}`),p=P(i,s.milestoneId);return l`<aside
|
|
2008
|
+
class="story-panel"
|
|
2009
|
+
role="dialog"
|
|
2010
|
+
aria-label=${e.panelLabel(s.name)}
|
|
2011
|
+
data-testid="usm-story-panel"
|
|
2012
|
+
data-story=${s.id}
|
|
2013
|
+
tabindex="-1"
|
|
2014
|
+
>
|
|
2015
|
+
<header class="sp-head">
|
|
2016
|
+
<span class="sp-where">
|
|
2017
|
+
${d?l`<span>${d.activity.name}</span><span>${d.step.name}</span>`:m}
|
|
2018
|
+
<span>${p?.name??e.unassigned}</span>
|
|
2019
|
+
</span>
|
|
2020
|
+
${ro(e,t,s)}
|
|
2021
|
+
<button class="dpk-icon-btn" type="button" data-role="close" aria-label=${e.closePanelAria} @click=${o}>
|
|
2022
|
+
${et()}
|
|
2023
|
+
</button>
|
|
2024
|
+
</header>
|
|
2025
|
+
<div class="sp-body">
|
|
2026
|
+
<div class="sp-heading">
|
|
2027
|
+
${Qr(e,ge(s),n)}
|
|
2028
|
+
<h2 class="sp-title">
|
|
2029
|
+
<dpk-inline-edit
|
|
2030
|
+
wrap
|
|
2031
|
+
.value=${s.name}
|
|
2032
|
+
.label=${e.storyTitleLabel}
|
|
2033
|
+
@dpk-commit=${Q(u=>t.dispatch({type:"SET_STORY_NAME",target:r,payload:{name:u}}))}
|
|
2034
|
+
></dpk-inline-edit>
|
|
2035
|
+
</h2>
|
|
2036
|
+
</div>
|
|
2037
|
+
${i.statuses.length===0?m:eo(e,t,s)}
|
|
2038
|
+
${z(i,"estimates")?to(e,t,s):m}
|
|
2039
|
+
${z(i,"assignees")?so(e,t,s):m}
|
|
2040
|
+
${ao(e,t,s)} ${no(e,t,s,a)}
|
|
2041
|
+
<section class="sp-field">
|
|
2042
|
+
<h3>${e.storyDescriptionLabel}</h3>
|
|
2043
|
+
<dpk-inline-edit
|
|
2044
|
+
multiline
|
|
2045
|
+
markdown
|
|
2046
|
+
class="sp-description"
|
|
2047
|
+
.value=${s.description??""}
|
|
2048
|
+
.label=${e.storyDescriptionLabel}
|
|
2049
|
+
@dpk-commit=${Q(u=>t.dispatch({type:"SET_STORY_DESCRIPTION",target:r,payload:{description:u}}))}
|
|
2050
|
+
></dpk-inline-edit>
|
|
2051
|
+
</section>
|
|
2052
|
+
${io(e,t,s)} ${oo(e,t,s)}
|
|
2053
|
+
</div>
|
|
2054
|
+
<footer class="sp-foot">
|
|
2055
|
+
<button
|
|
2056
|
+
class="dpk-btn dpk-btn--ghost sp-delete"
|
|
2057
|
+
type="button"
|
|
2058
|
+
@click=${()=>{t.dispatch({type:"DELETE_STORY",target:r,payload:{}}).ok&&o()}}
|
|
2059
|
+
>
|
|
2060
|
+
${Je()}<span>${e.deleteStoryButton}</span>
|
|
2061
|
+
</button>
|
|
2062
|
+
</footer>
|
|
2063
|
+
</aside>`},Qr=(e,t,s)=>{const a=s.copied?e.storyKeyCopied:e.copyStoryKey(t);return l`<button
|
|
2064
|
+
class="sp-key"
|
|
2065
|
+
type="button"
|
|
2066
|
+
data-role="copy-key"
|
|
2067
|
+
data-copied=${s.copied?"true":"false"}
|
|
2068
|
+
title=${a}
|
|
2069
|
+
aria-label=${a}
|
|
2070
|
+
@click=${()=>s.copy(t)}
|
|
2071
|
+
>
|
|
2072
|
+
<span>${t}</span>${s.copied?Qe():Na()}
|
|
2073
|
+
</button>`},eo=(e,t,s)=>{const a=me(t.state),n=s.statusId;return l`<section class="sp-field">
|
|
2074
|
+
<h3 id="sp-status-label">${e.storyStatusLabel}</h3>
|
|
2075
|
+
<div class="sp-statuses" role="radiogroup" aria-labelledby="sp-status-label">
|
|
2076
|
+
${a.map(i=>l`<button
|
|
2077
|
+
class="sp-status"
|
|
2078
|
+
type="button"
|
|
2079
|
+
role="radio"
|
|
2080
|
+
data-status=${i.id}
|
|
2081
|
+
aria-checked=${String(i.id===n)}
|
|
2082
|
+
style=${I(i.tone)}
|
|
2083
|
+
@click=${()=>{i.id!==n&&t.dispatch({type:"SET_STORY_STATUS",target:{type:"story",id:s.id},payload:{statusId:i.id}})}}
|
|
2084
|
+
>
|
|
2085
|
+
${re(i)}<span>${i.name}</span>
|
|
2086
|
+
</button>`)}
|
|
2087
|
+
</div>
|
|
2088
|
+
</section>`},to=(e,t,s)=>{const a=s.estimateId??null,n=r=>()=>{r!==a&&t.dispatch({type:"SET_STORY_ESTIMATE",target:{type:"story",id:s.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">
|
|
2089
|
+
<h3 id="sp-estimate-label" class="sp-field-head">
|
|
2090
|
+
<span>${e.storyEstimateLabel}</span>
|
|
2091
|
+
<a class="sp-manage" href=${t.hashFor({tab:"burndown",story:null})}>${e.manageEstimates}</a>
|
|
2092
|
+
</h3>
|
|
2093
|
+
${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">
|
|
2094
|
+
${i.map(r=>l`<button
|
|
2095
|
+
class="sp-estimate"
|
|
2096
|
+
type="button"
|
|
2097
|
+
role="radio"
|
|
2098
|
+
data-estimate=${r.id??""}
|
|
2099
|
+
title=${r.title}
|
|
2100
|
+
aria-checked=${String(r.id===a)}
|
|
2101
|
+
@click=${n(r.id)}
|
|
2102
|
+
>
|
|
2103
|
+
${r.name}
|
|
2104
|
+
</button>`)}
|
|
2105
|
+
</div>`}
|
|
2106
|
+
</section>`},so=(e,t,s)=>{const a=s.assigneeId??null,n=i=>()=>{i!==a&&t.dispatch({type:"SET_STORY_ASSIGNEE",target:{type:"story",id:s.id},payload:{memberId:i}})};return l`<section class="sp-field">
|
|
2107
|
+
<h3 id="sp-assignee-label" class="sp-field-head">
|
|
2108
|
+
<span>${e.storyAssigneeLabel}</span>
|
|
2109
|
+
<a class="sp-manage" href=${t.hashFor({tab:"members",story:null})}>${e.manageMembers}</a>
|
|
2110
|
+
</h3>
|
|
2111
|
+
${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">
|
|
2112
|
+
<button
|
|
2113
|
+
class="sp-assignee"
|
|
2114
|
+
type="button"
|
|
2115
|
+
role="radio"
|
|
2116
|
+
data-assignee=""
|
|
2117
|
+
aria-checked=${String(a===null)}
|
|
2118
|
+
@click=${n(null)}
|
|
2119
|
+
>
|
|
2120
|
+
${e.noAssignee}
|
|
2121
|
+
</button>
|
|
2122
|
+
${t.state.members.map(i=>l`<button
|
|
2123
|
+
class="sp-assignee"
|
|
2124
|
+
type="button"
|
|
2125
|
+
role="radio"
|
|
2126
|
+
data-assignee=${i.id}
|
|
2127
|
+
aria-checked=${String(i.id===a)}
|
|
2128
|
+
style=${I(i.tone)}
|
|
2129
|
+
@click=${n(i.id)}
|
|
2130
|
+
>
|
|
2131
|
+
<span class="sp-avatar" aria-hidden="true">${ht(i.name)}</span>${i.name}
|
|
2132
|
+
</button>`)}
|
|
2133
|
+
</div>`}
|
|
2134
|
+
</section>`},ao=(e,t,s)=>{const a={type:"story",id:s.id},n=new Set(s.labelIds??[]);return l`<section class="sp-field">
|
|
2135
|
+
<h3 id="sp-labels-label" class="sp-field-head">
|
|
2136
|
+
<span>${e.storyLabelsLabel}</span>
|
|
2137
|
+
<a class="sp-manage" href=${t.hashFor({tab:"labels",story:null})}>${e.manageLabels}</a>
|
|
2138
|
+
</h3>
|
|
2139
|
+
${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">
|
|
2140
|
+
${t.state.labels.map(i=>{const r=n.has(i.id);return l`<button
|
|
2141
|
+
class="sp-label"
|
|
2142
|
+
type="button"
|
|
2143
|
+
data-label=${i.id}
|
|
2144
|
+
aria-pressed=${String(r)}
|
|
2145
|
+
style=${I(i.tone)}
|
|
2146
|
+
@click=${()=>t.dispatch({type:r?"REMOVE_STORY_LABEL":"ADD_STORY_LABEL",target:a,payload:{labelId:i.id}})}
|
|
2147
|
+
>
|
|
2148
|
+
<span class="sp-label-dot" aria-hidden="true"></span><span>${i.name}</span>
|
|
2149
|
+
</button>`})}
|
|
2150
|
+
</div>`}
|
|
2151
|
+
</section>`},no=(e,t,s,a)=>{const{state:n}=t,i=hs(n,s.id),r=(d,p,u)=>t.dispatch({type:d,target:{type:"story",id:p},payload:{blockerId:u}}),o=(d,p,u,w)=>{const E=x(n,p);if(!E)return m;const S=me(n).find(M=>M.id===E.statusId);return l`<li
|
|
2152
|
+
data-blocker=${d==="data-blocker"?p:m}
|
|
2153
|
+
data-dependent=${d==="data-dependent"?p:m}
|
|
2154
|
+
data-finished=${String($e(n,E))}
|
|
2155
|
+
>
|
|
2156
|
+
<a class="sp-dep-name" href=${t.hashFor({story:p})} style=${I(S?.tone)}>
|
|
2157
|
+
${S?re(S):m}<span>${E.name}</span>
|
|
2158
|
+
</a>
|
|
2159
|
+
<button
|
|
2160
|
+
class="dpk-icon-btn"
|
|
2161
|
+
type="button"
|
|
2162
|
+
data-role="remove"
|
|
2163
|
+
aria-label=${u(E.name)}
|
|
2164
|
+
@click=${w}
|
|
2165
|
+
>
|
|
2166
|
+
${et()}
|
|
2167
|
+
</button>
|
|
2168
|
+
</li>`};return l`<section class="sp-field sp-deps">
|
|
2169
|
+
<h3>${e.storyDependenciesLabel}</h3>
|
|
2170
|
+
<div class="sp-dep-side">
|
|
2171
|
+
<h4>${e.storyBlockersLabel}</h4>
|
|
2172
|
+
${i.blockers.length===0?l`<p class="sp-empty">${e.storyNoBlockers}</p>`:l`<ul class="sp-dep-list">
|
|
2173
|
+
${i.blockers.map(d=>o("data-blocker",d,e.removeBlockerAria,()=>r("REMOVE_STORY_BLOCKER",s.id,d)))}
|
|
2174
|
+
</ul>`}
|
|
2175
|
+
${ua(e,t,s.id,"blocker",a,d=>r("ADD_STORY_BLOCKER",s.id,d))}
|
|
2176
|
+
</div>
|
|
2177
|
+
<div class="sp-dep-side">
|
|
2178
|
+
<h4>${e.storyDependentsLabel}</h4>
|
|
2179
|
+
${i.dependents.length===0?l`<p class="sp-empty">${e.storyNoDependents}</p>`:l`<ul class="sp-dep-list">
|
|
2180
|
+
${i.dependents.map(d=>o("data-dependent",d,e.removeDependentAria,()=>r("REMOVE_STORY_BLOCKER",d,s.id)))}
|
|
2181
|
+
</ul>`}
|
|
2182
|
+
${ua(e,t,s.id,"dependent",a,d=>r("ADD_STORY_BLOCKER",d,s.id))}
|
|
2183
|
+
</div>
|
|
2184
|
+
</section>`},io=(e,t,s)=>{const a={type:"story",id:s.id},n=s.links??[],i=r=>{r.preventDefault();const o=r.currentTarget instanceof HTMLFormElement?r.currentTarget:null,d=o?.querySelector("input");if(!o||!d)return;const p=d.value.trim();if(!kt(it,p).success){d.setAttribute("aria-invalid","true");return}t.dispatch({type:"ADD_STORY_LINK",target:a,payload:{url:p}}).ok&&(d.removeAttribute("aria-invalid"),o.reset())};return l`<section class="sp-field">
|
|
2185
|
+
<h3>${e.storyLinksLabel}</h3>
|
|
2186
|
+
${n.length===0?m:l`<ul class="sp-links">
|
|
2187
|
+
${n.map(r=>{const o=Ue(r.url),d=r.label??o.text;return l`<li data-kind=${o.kind}>
|
|
2188
|
+
<a class="sp-link" href=${r.url} target="_blank" rel="noopener noreferrer" title=${r.url}>
|
|
2189
|
+
${Ns(o.kind)}
|
|
2190
|
+
<span class="sp-link-text">${d}</span>
|
|
2191
|
+
<span class="sp-link-url">${o.title===d?r.url:o.title}</span>
|
|
2192
|
+
</a>
|
|
2193
|
+
<button
|
|
2194
|
+
class="dpk-icon-btn"
|
|
2195
|
+
type="button"
|
|
2196
|
+
aria-label=${e.removeLinkAria(d)}
|
|
2197
|
+
@click=${()=>t.dispatch({type:"REMOVE_STORY_LINK",target:a,payload:{url:r.url}})}
|
|
2198
|
+
>
|
|
2199
|
+
${et()}
|
|
2200
|
+
</button>
|
|
2201
|
+
</li>`})}
|
|
2202
|
+
</ul>`}
|
|
2203
|
+
<form class="sp-add-link" @submit=${i}>
|
|
2204
|
+
<input
|
|
2205
|
+
class="dpk-input"
|
|
2206
|
+
type="url"
|
|
2207
|
+
inputmode="url"
|
|
2208
|
+
placeholder="https://"
|
|
2209
|
+
aria-label=${e.linkUrlLabel}
|
|
2210
|
+
@input=${r=>{r.currentTarget instanceof HTMLInputElement&&r.currentTarget.removeAttribute("aria-invalid")}}
|
|
2211
|
+
/>
|
|
2212
|
+
<button class="dpk-btn" type="submit">${e.addLinkButton}</button>
|
|
2213
|
+
</form>
|
|
2214
|
+
</section>`},ro=(e,t,s)=>{const a=t.commentCount({type:"story",id:s.id});return l`<button
|
|
2215
|
+
class="sp-review"
|
|
2216
|
+
type="button"
|
|
2217
|
+
data-role="review-story"
|
|
2218
|
+
title=${e.reviewStoryTitle}
|
|
2219
|
+
aria-label=${a>0?`${e.reviewStoryButton} (${a})`:e.reviewStoryButton}
|
|
2220
|
+
@click=${()=>t.requestComment({type:"story",id:s.id})}
|
|
2221
|
+
>
|
|
2222
|
+
${Et()}<span>${e.reviewStoryButton}</span>${a>0?l`<span class="sp-review-count">${a}</span>`:m}
|
|
2223
|
+
</button>`},oo=(e,t,s)=>{const a={type:"story",id:s.id};return l`<section class="sp-field sp-comments">
|
|
2224
|
+
<h3>${e.storyCommentsLabel}</h3>
|
|
2225
|
+
<dpk-comment-thread
|
|
2226
|
+
inline
|
|
2227
|
+
.comments=${s.comments??[]}
|
|
2228
|
+
draft-key=${`story-comment:${s.id}`}
|
|
2229
|
+
@dpk-thread-comment-add=${n=>{const i=J("comment",X(t.state));t.dispatch({type:"ADD_STORY_COMMENT",target:a,payload:{id:i,body:n.detail.body,createdAt:new Date().toISOString()}}).ok&&n.preventDefault()}}
|
|
2230
|
+
@dpk-thread-comment-delete=${n=>{t.dispatch({type:"DELETE_STORY_COMMENT",target:a,payload:{commentId:n.detail.id}})}}
|
|
2231
|
+
></dpk-comment-thread>
|
|
2232
|
+
</section>`},lo=j`
|
|
2233
|
+
/* Over the main column's edge, below the header: the page's own controls stay in reach. */
|
|
2234
|
+
.story-panel {
|
|
2235
|
+
position: absolute;
|
|
2236
|
+
top: 0;
|
|
2237
|
+
right: 0;
|
|
2238
|
+
bottom: 0;
|
|
2239
|
+
z-index: 20;
|
|
2240
|
+
display: grid;
|
|
2241
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
2242
|
+
width: min(420px, 100%);
|
|
2243
|
+
border-left: 1px solid var(--dpk-rule-strong);
|
|
2244
|
+
background: var(--dpk-paper-raised);
|
|
2245
|
+
box-shadow: var(--dpk-shadow-lg);
|
|
2246
|
+
animation: sp-slide-in 220ms var(--dpk-ease);
|
|
2247
|
+
}
|
|
2248
|
+
/* The panel takes the focus when it opens; the ring belongs to its controls. */
|
|
2249
|
+
.story-panel:focus {
|
|
2250
|
+
outline: none;
|
|
2251
|
+
}
|
|
2252
|
+
@keyframes sp-slide-in {
|
|
2253
|
+
from {
|
|
2254
|
+
opacity: 0;
|
|
2255
|
+
transform: translateX(24px);
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
.sp-head {
|
|
2259
|
+
display: flex;
|
|
2260
|
+
align-items: center;
|
|
2261
|
+
gap: 10px;
|
|
2262
|
+
padding: 14px 22px 12px;
|
|
2263
|
+
min-height: 60px;
|
|
2264
|
+
box-sizing: border-box;
|
|
2265
|
+
border-bottom: 1px solid var(--dpk-rule);
|
|
2266
|
+
}
|
|
2267
|
+
.sp-heading {
|
|
2268
|
+
display: grid;
|
|
2269
|
+
justify-items: start;
|
|
2270
|
+
gap: 6px;
|
|
2271
|
+
}
|
|
2272
|
+
.sp-heading .sp-title {
|
|
2273
|
+
justify-self: stretch;
|
|
2274
|
+
}
|
|
2275
|
+
.sp-key {
|
|
2276
|
+
display: inline-flex;
|
|
2277
|
+
align-items: center;
|
|
2278
|
+
gap: 5px;
|
|
2279
|
+
padding: 2px 7px;
|
|
2280
|
+
border: 1px solid var(--dpk-rule);
|
|
2281
|
+
border-radius: 6px;
|
|
2282
|
+
background: var(--dpk-paper-sunken);
|
|
2283
|
+
color: var(--dpk-ink-soft);
|
|
2284
|
+
font: inherit;
|
|
2285
|
+
font-family: var(--dpk-mono);
|
|
2286
|
+
font-size: 11px;
|
|
2287
|
+
font-weight: 650;
|
|
2288
|
+
line-height: 18px;
|
|
2289
|
+
font-variant-numeric: tabular-nums;
|
|
2290
|
+
cursor: pointer;
|
|
2291
|
+
}
|
|
2292
|
+
.sp-key:hover {
|
|
2293
|
+
border-color: var(--dpk-rule-strong);
|
|
2294
|
+
color: var(--dpk-ink);
|
|
2295
|
+
}
|
|
2296
|
+
.sp-key:focus-visible {
|
|
2297
|
+
outline: none;
|
|
2298
|
+
box-shadow: var(--dpk-focus);
|
|
2299
|
+
}
|
|
2300
|
+
.sp-key[data-copied='true'] {
|
|
2301
|
+
color: var(--dpk-green);
|
|
2302
|
+
}
|
|
2303
|
+
.sp-key svg {
|
|
2304
|
+
flex: none;
|
|
2305
|
+
width: 12px;
|
|
2306
|
+
height: 12px;
|
|
2307
|
+
}
|
|
2308
|
+
.sp-where {
|
|
2309
|
+
display: flex;
|
|
2310
|
+
flex-wrap: wrap;
|
|
2311
|
+
gap: 2px 0;
|
|
2312
|
+
flex: 1 1 auto;
|
|
2313
|
+
min-width: 0;
|
|
2314
|
+
color: var(--dpk-ink-faint);
|
|
2315
|
+
font-size: 11.5px;
|
|
2316
|
+
font-weight: 600;
|
|
2317
|
+
}
|
|
2318
|
+
.sp-where > span + span::before {
|
|
2319
|
+
content: '›';
|
|
2320
|
+
margin: 0 6px;
|
|
2321
|
+
color: var(--dpk-rule-strong);
|
|
2322
|
+
}
|
|
2323
|
+
.sp-body {
|
|
2324
|
+
display: grid;
|
|
2325
|
+
align-content: start;
|
|
2326
|
+
gap: 22px;
|
|
2327
|
+
overflow: auto;
|
|
2328
|
+
padding: 18px 22px 24px;
|
|
2329
|
+
}
|
|
2330
|
+
.sp-title {
|
|
2331
|
+
margin: 0;
|
|
2332
|
+
font-size: 19px;
|
|
2333
|
+
font-weight: 700;
|
|
2334
|
+
letter-spacing: -0.015em;
|
|
2335
|
+
line-height: 1.35;
|
|
2336
|
+
}
|
|
2337
|
+
.sp-title dpk-inline-edit {
|
|
2338
|
+
display: block;
|
|
2339
|
+
margin: 0 -4px;
|
|
2340
|
+
}
|
|
2341
|
+
.sp-field {
|
|
2342
|
+
display: grid;
|
|
2343
|
+
gap: 8px;
|
|
2344
|
+
}
|
|
2345
|
+
.sp-field h3 {
|
|
2346
|
+
margin: 0;
|
|
2347
|
+
color: var(--dpk-ink-faint);
|
|
2348
|
+
font-size: 11px;
|
|
2349
|
+
font-weight: 650;
|
|
2350
|
+
letter-spacing: 0.04em;
|
|
2351
|
+
text-transform: uppercase;
|
|
2352
|
+
}
|
|
2353
|
+
.sp-statuses {
|
|
2354
|
+
display: flex;
|
|
2355
|
+
flex-wrap: wrap;
|
|
2356
|
+
gap: 6px;
|
|
2357
|
+
}
|
|
2358
|
+
.sp-status {
|
|
2359
|
+
display: inline-flex;
|
|
2360
|
+
align-items: center;
|
|
2361
|
+
gap: 7px;
|
|
2362
|
+
padding: 5px 12px 5px 9px;
|
|
2363
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
2364
|
+
border-radius: 999px;
|
|
2365
|
+
background: var(--dpk-paper-raised);
|
|
2366
|
+
color: var(--dpk-ink);
|
|
2367
|
+
font: inherit;
|
|
2368
|
+
font-size: 12.5px;
|
|
2369
|
+
font-weight: 600;
|
|
2370
|
+
cursor: pointer;
|
|
2371
|
+
transition:
|
|
2372
|
+
background 140ms var(--dpk-ease),
|
|
2373
|
+
border-color 140ms var(--dpk-ease);
|
|
2374
|
+
}
|
|
2375
|
+
.sp-status:hover {
|
|
2376
|
+
border-color: color-mix(in oklab, var(--usm-tone) 60%, var(--dpk-rule-strong));
|
|
2377
|
+
}
|
|
2378
|
+
.sp-status:focus-visible {
|
|
2379
|
+
outline: none;
|
|
2380
|
+
box-shadow: var(--dpk-focus);
|
|
2381
|
+
}
|
|
2382
|
+
.sp-status[aria-checked='true'] {
|
|
2383
|
+
border-color: var(--usm-tone);
|
|
2384
|
+
background: color-mix(in oklab, var(--usm-tone) 14%, var(--dpk-paper-raised));
|
|
2385
|
+
box-shadow: inset 0 0 0 1px var(--usm-tone);
|
|
2386
|
+
}
|
|
2387
|
+
.sp-estimates {
|
|
2388
|
+
display: flex;
|
|
2389
|
+
flex-wrap: wrap;
|
|
2390
|
+
gap: 4px;
|
|
2391
|
+
}
|
|
2392
|
+
.sp-estimate {
|
|
2393
|
+
min-width: 34px;
|
|
2394
|
+
padding: 4px 10px;
|
|
2395
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
2396
|
+
border-radius: var(--dpk-radius-sm);
|
|
2397
|
+
background: var(--dpk-paper-raised);
|
|
2398
|
+
color: var(--dpk-ink-soft);
|
|
2399
|
+
font: inherit;
|
|
2400
|
+
font-family: var(--dpk-mono);
|
|
2401
|
+
font-size: 12px;
|
|
2402
|
+
font-weight: 650;
|
|
2403
|
+
font-variant-numeric: tabular-nums;
|
|
2404
|
+
cursor: pointer;
|
|
2405
|
+
transition:
|
|
2406
|
+
background 140ms var(--dpk-ease),
|
|
2407
|
+
border-color 140ms var(--dpk-ease);
|
|
2408
|
+
}
|
|
2409
|
+
.sp-estimate[data-estimate=''] {
|
|
2410
|
+
font-family: inherit;
|
|
2411
|
+
font-weight: 550;
|
|
2412
|
+
}
|
|
2413
|
+
.sp-estimate:hover {
|
|
2414
|
+
border-color: var(--dpk-rule-hover);
|
|
2415
|
+
}
|
|
2416
|
+
.sp-estimate:focus-visible {
|
|
2417
|
+
outline: none;
|
|
2418
|
+
box-shadow: var(--dpk-focus);
|
|
2419
|
+
}
|
|
2420
|
+
.sp-estimate[aria-checked='true'] {
|
|
2421
|
+
border-color: var(--dpk-ink);
|
|
2422
|
+
background: var(--dpk-ink);
|
|
2423
|
+
color: var(--dpk-paper-raised);
|
|
2424
|
+
}
|
|
2425
|
+
.sp-assignees {
|
|
2426
|
+
display: flex;
|
|
2427
|
+
flex-wrap: wrap;
|
|
2428
|
+
gap: 4px;
|
|
2429
|
+
}
|
|
2430
|
+
.sp-assignee {
|
|
2431
|
+
display: inline-flex;
|
|
2432
|
+
align-items: center;
|
|
2433
|
+
gap: 6px;
|
|
2434
|
+
padding: 3px 10px 3px 4px;
|
|
2435
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
2436
|
+
border-radius: 999px;
|
|
2437
|
+
background: var(--dpk-paper-raised);
|
|
2438
|
+
color: var(--dpk-ink-soft);
|
|
2439
|
+
font: inherit;
|
|
2440
|
+
font-size: 12px;
|
|
2441
|
+
font-weight: 600;
|
|
2442
|
+
cursor: pointer;
|
|
2443
|
+
transition:
|
|
2444
|
+
background 140ms var(--dpk-ease),
|
|
2445
|
+
border-color 140ms var(--dpk-ease);
|
|
2446
|
+
}
|
|
2447
|
+
.sp-assignee[data-assignee=''] {
|
|
2448
|
+
padding-left: 10px;
|
|
2449
|
+
}
|
|
2450
|
+
.sp-assignee:hover {
|
|
2451
|
+
border-color: var(--dpk-rule-hover);
|
|
2452
|
+
}
|
|
2453
|
+
.sp-assignee:focus-visible {
|
|
2454
|
+
outline: none;
|
|
2455
|
+
box-shadow: var(--dpk-focus);
|
|
2456
|
+
}
|
|
2457
|
+
.sp-assignee[aria-checked='true'] {
|
|
2458
|
+
border-color: var(--usm-tone, var(--dpk-ink));
|
|
2459
|
+
background: color-mix(in oklab, var(--usm-tone, var(--dpk-ink)) 12%, var(--dpk-paper-raised));
|
|
2460
|
+
color: var(--dpk-ink);
|
|
2461
|
+
}
|
|
2462
|
+
.sp-avatar {
|
|
2463
|
+
display: inline-grid;
|
|
2464
|
+
place-items: center;
|
|
2465
|
+
width: 18px;
|
|
2466
|
+
height: 18px;
|
|
2467
|
+
border-radius: 50%;
|
|
2468
|
+
background: var(--usm-tone);
|
|
2469
|
+
color: var(--dpk-paper-raised);
|
|
2470
|
+
font-size: 10px;
|
|
2471
|
+
font-weight: 700;
|
|
2472
|
+
line-height: 1;
|
|
2473
|
+
}
|
|
2474
|
+
.sp-field-head {
|
|
2475
|
+
display: flex;
|
|
2476
|
+
align-items: baseline;
|
|
2477
|
+
justify-content: space-between;
|
|
2478
|
+
gap: 8px;
|
|
2479
|
+
}
|
|
2480
|
+
.sp-manage {
|
|
2481
|
+
color: var(--dpk-ink-faint);
|
|
2482
|
+
font-size: 11px;
|
|
2483
|
+
font-weight: 600;
|
|
2484
|
+
letter-spacing: 0;
|
|
2485
|
+
text-transform: none;
|
|
2486
|
+
}
|
|
2487
|
+
.sp-manage:hover {
|
|
2488
|
+
color: var(--dpk-blue);
|
|
2489
|
+
}
|
|
2490
|
+
.sp-empty {
|
|
2491
|
+
margin: 0;
|
|
2492
|
+
color: var(--dpk-ink-faint);
|
|
2493
|
+
font-size: 12.5px;
|
|
2494
|
+
}
|
|
2495
|
+
.sp-labels {
|
|
2496
|
+
display: flex;
|
|
2497
|
+
flex-wrap: wrap;
|
|
2498
|
+
gap: 6px;
|
|
2499
|
+
}
|
|
2500
|
+
.sp-label {
|
|
2501
|
+
display: inline-flex;
|
|
2502
|
+
align-items: center;
|
|
2503
|
+
gap: 6px;
|
|
2504
|
+
padding: 3px 10px 3px 8px;
|
|
2505
|
+
border: 1px dashed var(--dpk-rule-strong);
|
|
2506
|
+
border-radius: 999px;
|
|
2507
|
+
background: transparent;
|
|
2508
|
+
color: var(--dpk-ink-soft);
|
|
2509
|
+
font: inherit;
|
|
2510
|
+
font-size: 12px;
|
|
2511
|
+
font-weight: 600;
|
|
2512
|
+
cursor: pointer;
|
|
2513
|
+
transition:
|
|
2514
|
+
background 140ms var(--dpk-ease),
|
|
2515
|
+
border-color 140ms var(--dpk-ease);
|
|
2516
|
+
}
|
|
2517
|
+
.sp-label:hover {
|
|
2518
|
+
border-color: color-mix(in oklab, var(--usm-tone) 60%, var(--dpk-rule-strong));
|
|
2519
|
+
}
|
|
2520
|
+
.sp-label:focus-visible {
|
|
2521
|
+
outline: none;
|
|
2522
|
+
box-shadow: var(--dpk-focus);
|
|
2523
|
+
}
|
|
2524
|
+
.sp-label[aria-pressed='true'] {
|
|
2525
|
+
border-style: solid;
|
|
2526
|
+
border-color: color-mix(in oklab, var(--usm-tone) 55%, transparent);
|
|
2527
|
+
background: color-mix(in oklab, var(--usm-tone) 14%, var(--dpk-paper-raised));
|
|
2528
|
+
color: var(--dpk-ink);
|
|
2529
|
+
}
|
|
2530
|
+
.sp-label-dot {
|
|
2531
|
+
width: 7px;
|
|
2532
|
+
height: 7px;
|
|
2533
|
+
border-radius: 50%;
|
|
2534
|
+
background: var(--usm-tone);
|
|
2535
|
+
opacity: 0.5;
|
|
2536
|
+
}
|
|
2537
|
+
.sp-label[aria-pressed='true'] .sp-label-dot {
|
|
2538
|
+
opacity: 1;
|
|
2539
|
+
}
|
|
2540
|
+
.sp-deps {
|
|
2541
|
+
gap: 12px;
|
|
2542
|
+
}
|
|
2543
|
+
.sp-dep-side {
|
|
2544
|
+
display: grid;
|
|
2545
|
+
gap: 6px;
|
|
2546
|
+
}
|
|
2547
|
+
.sp-dep-side h4 {
|
|
2548
|
+
margin: 0;
|
|
2549
|
+
color: var(--dpk-ink-soft);
|
|
2550
|
+
font-size: 11.5px;
|
|
2551
|
+
font-weight: 650;
|
|
2552
|
+
}
|
|
2553
|
+
.sp-dep-list {
|
|
2554
|
+
display: grid;
|
|
2555
|
+
gap: 4px;
|
|
2556
|
+
margin: 0;
|
|
2557
|
+
padding: 0;
|
|
2558
|
+
list-style: none;
|
|
2559
|
+
}
|
|
2560
|
+
.sp-dep-list li {
|
|
2561
|
+
display: flex;
|
|
2562
|
+
align-items: center;
|
|
2563
|
+
gap: 4px;
|
|
2564
|
+
border: 1px solid var(--dpk-rule);
|
|
2565
|
+
border-radius: var(--dpk-radius-sm);
|
|
2566
|
+
background: var(--dpk-paper-sunken);
|
|
2567
|
+
}
|
|
2568
|
+
.sp-dep-name {
|
|
2569
|
+
display: flex;
|
|
2570
|
+
align-items: center;
|
|
2571
|
+
gap: 8px;
|
|
2572
|
+
flex: 1 1 auto;
|
|
2573
|
+
min-width: 0;
|
|
2574
|
+
padding: 6px 4px 6px 10px;
|
|
2575
|
+
color: var(--dpk-ink);
|
|
2576
|
+
font-size: 12.5px;
|
|
2577
|
+
font-weight: 600;
|
|
2578
|
+
text-decoration: none;
|
|
2579
|
+
}
|
|
2580
|
+
.sp-dep-name span {
|
|
2581
|
+
overflow: hidden;
|
|
2582
|
+
text-overflow: ellipsis;
|
|
2583
|
+
white-space: nowrap;
|
|
2584
|
+
}
|
|
2585
|
+
.sp-dep-name:hover span {
|
|
2586
|
+
text-decoration: underline;
|
|
2587
|
+
}
|
|
2588
|
+
.sp-dep-list li[data-finished='true'] .sp-dep-name span {
|
|
2589
|
+
color: var(--dpk-ink-faint);
|
|
2590
|
+
text-decoration: line-through;
|
|
2591
|
+
}
|
|
2592
|
+
.sp-description {
|
|
2593
|
+
display: block;
|
|
2594
|
+
margin: 0 -4px;
|
|
2595
|
+
color: var(--dpk-ink-soft);
|
|
2596
|
+
font-size: 13px;
|
|
2597
|
+
line-height: 1.65;
|
|
2598
|
+
}
|
|
2599
|
+
.sp-links {
|
|
2600
|
+
display: grid;
|
|
2601
|
+
gap: 4px;
|
|
2602
|
+
margin: 0;
|
|
2603
|
+
padding: 0;
|
|
2604
|
+
list-style: none;
|
|
2605
|
+
}
|
|
2606
|
+
.sp-links li {
|
|
2607
|
+
display: flex;
|
|
2608
|
+
align-items: center;
|
|
2609
|
+
gap: 4px;
|
|
2610
|
+
border: 1px solid var(--dpk-rule);
|
|
2611
|
+
border-radius: var(--dpk-radius-sm);
|
|
2612
|
+
background: var(--dpk-paper-sunken);
|
|
2613
|
+
}
|
|
2614
|
+
.sp-link {
|
|
2615
|
+
display: grid;
|
|
2616
|
+
grid-template-columns: 16px minmax(0, 1fr);
|
|
2617
|
+
column-gap: 9px;
|
|
2618
|
+
align-items: center;
|
|
2619
|
+
flex: 1 1 auto;
|
|
2620
|
+
min-width: 0;
|
|
2621
|
+
padding: 7px 4px 7px 10px;
|
|
2622
|
+
color: var(--dpk-ink);
|
|
2623
|
+
text-decoration: none;
|
|
2624
|
+
}
|
|
2625
|
+
.sp-link:hover .sp-link-text {
|
|
2626
|
+
text-decoration: underline;
|
|
2627
|
+
}
|
|
2628
|
+
.sp-link svg {
|
|
2629
|
+
grid-row: span 2;
|
|
2630
|
+
width: 16px;
|
|
2631
|
+
height: 16px;
|
|
2632
|
+
color: var(--dpk-ink-soft);
|
|
2633
|
+
}
|
|
2634
|
+
.sp-link-text {
|
|
2635
|
+
overflow: hidden;
|
|
2636
|
+
font-family: var(--dpk-mono);
|
|
2637
|
+
font-size: 12.5px;
|
|
2638
|
+
font-weight: 650;
|
|
2639
|
+
text-overflow: ellipsis;
|
|
2640
|
+
white-space: nowrap;
|
|
2641
|
+
}
|
|
2642
|
+
.sp-link-url {
|
|
2643
|
+
overflow: hidden;
|
|
2644
|
+
color: var(--dpk-ink-faint);
|
|
2645
|
+
font-size: 11px;
|
|
2646
|
+
text-overflow: ellipsis;
|
|
2647
|
+
white-space: nowrap;
|
|
2648
|
+
}
|
|
2649
|
+
.sp-add-link {
|
|
2650
|
+
display: flex;
|
|
2651
|
+
gap: 6px;
|
|
2652
|
+
}
|
|
2653
|
+
.sp-add-link input {
|
|
2654
|
+
flex: 1 1 auto;
|
|
2655
|
+
min-width: 0;
|
|
2656
|
+
}
|
|
2657
|
+
.sp-add-link input[aria-invalid='true'] {
|
|
2658
|
+
border-color: var(--dpk-accent);
|
|
2659
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--dpk-accent) 22%, transparent);
|
|
2660
|
+
}
|
|
2661
|
+
.sp-comments dpk-comment-thread {
|
|
2662
|
+
margin-top: 6px;
|
|
2663
|
+
}
|
|
2664
|
+
/* A request to the agent, not part of the story: it carries the review rail's comment icon. */
|
|
2665
|
+
.sp-review {
|
|
2666
|
+
display: inline-flex;
|
|
2667
|
+
flex: none;
|
|
2668
|
+
align-items: center;
|
|
2669
|
+
gap: 6px;
|
|
2670
|
+
height: 28px;
|
|
2671
|
+
padding: 0 10px;
|
|
2672
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
2673
|
+
border-radius: 999px;
|
|
2674
|
+
background: var(--dpk-paper-raised);
|
|
2675
|
+
color: var(--dpk-ink-soft);
|
|
2676
|
+
font: inherit;
|
|
2677
|
+
font-size: 11.5px;
|
|
2678
|
+
font-weight: 600;
|
|
2679
|
+
cursor: pointer;
|
|
2680
|
+
}
|
|
2681
|
+
.sp-review:hover {
|
|
2682
|
+
color: var(--dpk-accent);
|
|
2683
|
+
border-color: color-mix(in srgb, var(--dpk-accent) 45%, transparent);
|
|
2684
|
+
}
|
|
2685
|
+
.sp-review:focus-visible {
|
|
2686
|
+
outline: none;
|
|
2687
|
+
box-shadow: var(--dpk-focus);
|
|
2688
|
+
}
|
|
2689
|
+
.sp-review svg {
|
|
2690
|
+
width: 14px;
|
|
2691
|
+
height: 14px;
|
|
2692
|
+
}
|
|
2693
|
+
.sp-review-count {
|
|
2694
|
+
min-width: 16px;
|
|
2695
|
+
padding: 0 4px;
|
|
2696
|
+
border-radius: 999px;
|
|
2697
|
+
background: var(--dpk-accent-soft);
|
|
2698
|
+
color: var(--dpk-accent);
|
|
2699
|
+
font-family: var(--dpk-mono);
|
|
2700
|
+
font-size: 10px;
|
|
2701
|
+
line-height: 16px;
|
|
2702
|
+
text-align: center;
|
|
2703
|
+
}
|
|
2704
|
+
.sp-foot {
|
|
2705
|
+
display: flex;
|
|
2706
|
+
justify-content: flex-start;
|
|
2707
|
+
padding: 12px 22px;
|
|
2708
|
+
border-top: 1px solid var(--dpk-rule);
|
|
2709
|
+
}
|
|
2710
|
+
.sp-delete {
|
|
2711
|
+
display: inline-flex;
|
|
2712
|
+
align-items: center;
|
|
2713
|
+
gap: 6px;
|
|
2714
|
+
color: var(--dpk-ink-soft);
|
|
2715
|
+
}
|
|
2716
|
+
.sp-delete svg {
|
|
2717
|
+
width: 14px;
|
|
2718
|
+
height: 14px;
|
|
2719
|
+
}
|
|
2720
|
+
`,po="usm-story-table",co=e=>e==="accent"?"violet":e,uo=(e,t)=>{const s=[{id:"key",label:e.storyKeyColumn,type:"text",sortable:!0},{id:"name",label:e.storyTitleLabel,type:"text",sortable:!0},{id:"activity",label:e.activityNameLabel,type:"text",sortable:!0},{id:"step",label:e.stepNameLabel,type:"text",sortable:!0},{id:"milestone",label:e.burndownMilestoneLabel,type:"text",sortable:!0},...t.statuses.length===0?[]:[{id:"status",label:e.storyStatusLabel,type:"status",sortable:!0}],...z(t,"assignees")?[{id:"assignee",label:e.storyAssigneeLabel,type:"person",sortable:!0}]:[],...z(t,"estimates")?[{id:"estimate",label:e.storyEstimateLabel,type:"number",sortable:!0}]:[],...t.labels.length===0?[]:[{id:"labels",label:e.storyLabelsLabel,type:"tag",sortable:!1}]],a=t.stories.map(n=>{const i=B(t,le(n.activityId,n.stepId)),r=P(t,n.milestoneId),o=D(t,n.statusId),d=F(t,n.estimateId),p=Ht(t,n),u=Kt(t,n);return{id:n.id,cells:{key:{type:"text",value:ge(n)},name:{type:"text",value:n.name},activity:{type:"text",value:i?.activity.name??null},step:{type:"text",value:i?.step.name??null},milestone:{type:"text",value:r?.name??null},...o===void 0?{}:{status:{type:"status",value:{label:o.name,tone:co(o.tone)}}},...z(t,"assignees")?{assignee:{type:"person",value:p?.name??null}}:{},...z(t,"estimates")?{estimate:{type:"number",value:d?.points??null}}:{},...t.labels.length===0?{}:{labels:{type:"tag",value:u.map(w=>w.name)}}},...n.questions===void 0?{}:{questions:n.questions}}});return{columns:s,rows:a}},mo=(e,t)=>{const s=uo(e,t.state);return l`
|
|
2721
|
+
<section class="story-table" data-testid="usm-table">
|
|
2722
|
+
<dpk-table
|
|
2723
|
+
id=${po}
|
|
2724
|
+
readonly
|
|
2725
|
+
.data=${s}
|
|
2726
|
+
@dpk-table-select=${a=>{const n=t.state.stories.find(i=>i.id===a.detail.id);n&&t.navigate({step:n.stepId,story:n.id})}}
|
|
2727
|
+
></dpk-table>
|
|
2728
|
+
</section>
|
|
2729
|
+
`},ho=e=>{const t=e.stories.length,s=r=>t===0?0:r/t,a=r=>e.stories.filter(o=>o.statusId===r).length,n=he(e);return{rows:e.statuses.map((r,o)=>{const d=a(r.id);return{id:r.id,name:r.name,tone:r.tone,icon:r.icon,progress:Bs(o,n),done:o===n,previousId:e.statuses[o-1]?.id??null,nextId:e.statuses[o+1]?.id??null,storyCount:d,share:s(d)}})}},bo=j`
|
|
2730
|
+
:host {
|
|
2731
|
+
--dpk-usm-accent: var(--dpk-blue);
|
|
2732
|
+
}
|
|
2733
|
+
/*
|
|
2734
|
+
* A wide table must scroll inside itself and never widen the template shell.
|
|
2735
|
+
* It scrolls both ways so the backbone can stick to its top and the
|
|
2736
|
+
* milestone column to its left: a box that scrolls only sideways still
|
|
2737
|
+
* becomes the sticky ancestor, and its top would never move. It takes the
|
|
2738
|
+
* height left under the board head (tabs and toolbar), down to the page's
|
|
2739
|
+
* bottom edge: the hand-off dock floats over its corner, and the map's own
|
|
2740
|
+
* padding lets the last row scroll clear of it, so the page body keeps no
|
|
2741
|
+
* second clearance under it.
|
|
2742
|
+
*
|
|
2743
|
+
* The map's row is the space that is actually left, never a fixed minimum:
|
|
2744
|
+
* the supplements bar at the foot of the column is sticky and takes its own
|
|
2745
|
+
* height out of the column, so a floor taller than what remains would push the
|
|
2746
|
+
* map's last rows under that bar — off screen, with nothing left to scroll
|
|
2747
|
+
* them into view. The map itself scrolls; it does not need to be tall.
|
|
2748
|
+
*/
|
|
2749
|
+
.dpk-main-body:has(> dpk-matrix) {
|
|
2750
|
+
flex: 1 1 0;
|
|
2751
|
+
min-height: 0;
|
|
2752
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
2753
|
+
padding-bottom: 16px;
|
|
2754
|
+
}
|
|
2755
|
+
/* The grid, its scroll, its sticky head and lead column are \`<dpk-matrix>\`'s
|
|
2756
|
+
own; this only wires the hand-off dock's clearance through to matrix's
|
|
2757
|
+
own variable, which it does not otherwise know about. Every head here
|
|
2758
|
+
(\`.corner\`, \`.act-head\`, \`.col-head\`, \`.row-lead\`) already carries its
|
|
2759
|
+
own full padding, so matrix's own generic head padding is kept to a
|
|
2760
|
+
small edge buffer rather than stack a second full inset around each
|
|
2761
|
+
one — just enough room that a grip never sits flush against the
|
|
2762
|
+
column/row rule it's next to, the way every head had before this board
|
|
2763
|
+
moved its padding onto \`<dpk-matrix>\`; the cell keeps matrix's own
|
|
2764
|
+
padding and paper surface, now that \`.cell\` no longer sets either
|
|
2765
|
+
itself. */
|
|
2766
|
+
dpk-matrix {
|
|
2767
|
+
--dpk-matrix-dock-clearance: var(--dpk-dock-clearance, 0px);
|
|
2768
|
+
--dpk-matrix-head-pad: 4px;
|
|
2769
|
+
/* A grid item will not shrink below its own content unless told to; the map
|
|
2770
|
+
is a scroll frame, so it may be exactly as tall as the row it was given. */
|
|
2771
|
+
min-height: 0;
|
|
2772
|
+
}
|
|
2773
|
+
.row-lead {
|
|
2774
|
+
display: flex;
|
|
2775
|
+
flex-direction: column;
|
|
2776
|
+
align-items: flex-start;
|
|
2777
|
+
justify-content: center;
|
|
2778
|
+
gap: 2px;
|
|
2779
|
+
min-width: 0;
|
|
2780
|
+
padding: 8px 6px 8px 4px;
|
|
2781
|
+
background: var(--dpk-paper-sunken);
|
|
2782
|
+
}
|
|
2783
|
+
/* Row names and their meta line share one column: past \`<dpk-matrix>\`'s own
|
|
2784
|
+
grip and gap (its exposed span) and the inline edit's own padding (4px). */
|
|
2785
|
+
.row-lead {
|
|
2786
|
+
--usm-row-indent: calc(var(--dpk-matrix-grip-span, 22px) + 4px);
|
|
2787
|
+
}
|
|
2788
|
+
/* \`<dpk-matrix>\`'s own grip bleed (\`margin-inline-start: -grip-span\` plus a
|
|
2789
|
+
matching \`padding-inline-start\`) lands on this box, the slot's direct
|
|
2790
|
+
child — but this box's own left padding above (4px, for the ungripped
|
|
2791
|
+
case) is a physical property on the same side, so it wins the cascade
|
|
2792
|
+
over the matrix's logical one and leaves the title undercompensated,
|
|
2793
|
+
pulled in under the grip instead of past it. Matching the matrix's own
|
|
2794
|
+
target value here, rather than fighting over which side wins, keeps the
|
|
2795
|
+
title's start exactly where the grip's own gap ends (the same inset a
|
|
2796
|
+
column head's flat, ungrouped slot node gets for free). The column heads
|
|
2797
|
+
below carry the identical fix, for the identical reason. */
|
|
2798
|
+
.row-lead[draggable='true'] {
|
|
2799
|
+
padding-inline-start: var(--dpk-matrix-grip-span, 22px);
|
|
2800
|
+
}
|
|
2801
|
+
.row-meta {
|
|
2802
|
+
display: flex;
|
|
2803
|
+
flex-wrap: wrap;
|
|
2804
|
+
gap: 2px 8px;
|
|
2805
|
+
padding-left: var(--usm-row-indent);
|
|
2806
|
+
font-size: 10.5px;
|
|
2807
|
+
color: var(--dpk-ink-faint);
|
|
2808
|
+
}
|
|
2809
|
+
.row-timeframe {
|
|
2810
|
+
color: var(--dpk-ink-soft);
|
|
2811
|
+
font-weight: 600;
|
|
2812
|
+
}
|
|
2813
|
+
.row-count {
|
|
2814
|
+
font-family: var(--dpk-mono);
|
|
2815
|
+
font-variant-numeric: tabular-nums;
|
|
2816
|
+
}
|
|
2817
|
+
.corner {
|
|
2818
|
+
display: grid;
|
|
2819
|
+
gap: 3px;
|
|
2820
|
+
align-content: start;
|
|
2821
|
+
}
|
|
2822
|
+
/* The backbone is read on every scroll, so its rows are kept short: the
|
|
2823
|
+
axis labels sit tight and the step names get a single slim line. */
|
|
2824
|
+
.corner {
|
|
2825
|
+
gap: 1px;
|
|
2826
|
+
padding: 7px 10px;
|
|
2827
|
+
line-height: 1.3;
|
|
2828
|
+
text-wrap: balance;
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
/* Above the content: the page tabs (map / milestones) and, on the map, the
|
|
2832
|
+
unit toggle (group band vs one column per activity). */
|
|
2833
|
+
|
|
2834
|
+
/* The board bar and the map's toolbar stay on top together while a long
|
|
2835
|
+
milestone list or the map scrolls under them. */
|
|
2836
|
+
.board-head {
|
|
2837
|
+
position: sticky;
|
|
2838
|
+
top: 0;
|
|
2839
|
+
z-index: 5;
|
|
2840
|
+
margin: -24px -24px 0;
|
|
2841
|
+
background: var(--dpk-glass);
|
|
2842
|
+
backdrop-filter: saturate(1.6) blur(14px);
|
|
2843
|
+
min-width: 0;
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
.board-bar {
|
|
2847
|
+
--usm-bar-pad: 6px;
|
|
2848
|
+
border-bottom: 1px solid var(--dpk-rule);
|
|
2849
|
+
padding: var(--usm-bar-pad) 24px;
|
|
2850
|
+
display: flex;
|
|
2851
|
+
flex-wrap: wrap;
|
|
2852
|
+
align-items: center;
|
|
2853
|
+
gap: 10px 14px;
|
|
2854
|
+
min-width: 0;
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
/* The pages: an underlined tab strip, heavier than the view toggle. The
|
|
2858
|
+
tabs that do not fit fold behind the more button beside it (\`.page-nav\`);
|
|
2859
|
+
the bottom padding keeps the selected tab's underline, which sits on the
|
|
2860
|
+
bar's bottom rule, inside the clip. */
|
|
2861
|
+
.page-tabs {
|
|
2862
|
+
--dpk-tabstrip-pad: var(--usm-bar-pad);
|
|
2863
|
+
--dpk-tabstrip-accent: var(--dpk-usm-accent);
|
|
2864
|
+
display: inline-flex;
|
|
2865
|
+
margin-bottom: calc(-1 * var(--usm-bar-pad) - 1px);
|
|
2866
|
+
padding-bottom: calc(var(--usm-bar-pad) + 1px);
|
|
2867
|
+
border-bottom: none;
|
|
2868
|
+
overflow: hidden;
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2871
|
+
/* Activity band: raised above the working canvas. A head spans its steps,
|
|
2872
|
+
so its contents stay in view beside the sticky column while the map
|
|
2873
|
+
scrolls sideways. */
|
|
2874
|
+
.act-head {
|
|
2875
|
+
position: relative;
|
|
2876
|
+
display: grid;
|
|
2877
|
+
align-content: start;
|
|
2878
|
+
gap: 4px;
|
|
2879
|
+
padding: 7px 10px 11px;
|
|
2880
|
+
background: var(--dpk-paper-raised);
|
|
2881
|
+
box-shadow:
|
|
2882
|
+
var(--dpk-bevel),
|
|
2883
|
+
inset 0 -1px 0 var(--dpk-rule-strong);
|
|
2884
|
+
font-size: 13px;
|
|
2885
|
+
font-weight: 650;
|
|
2886
|
+
letter-spacing: -0.005em;
|
|
2887
|
+
}
|
|
2888
|
+
/* Same undercompensation as \`.row-lead\` above, same fix: this box's own
|
|
2889
|
+
left padding (10px, physical) otherwise wins over \`<dpk-matrix>\`'s grip
|
|
2890
|
+
bleed compensation (logical), leaving the title pulled in under the
|
|
2891
|
+
grip. */
|
|
2892
|
+
.act-head[draggable='true'] {
|
|
2893
|
+
padding-inline-start: var(--dpk-matrix-grip-span, 22px);
|
|
2894
|
+
}
|
|
2895
|
+
.act-title,
|
|
2896
|
+
.act-steps {
|
|
2897
|
+
position: sticky;
|
|
2898
|
+
left: 150px;
|
|
2899
|
+
width: min(100%, 340px);
|
|
2900
|
+
min-width: 0;
|
|
2901
|
+
}
|
|
2902
|
+
.act-title {
|
|
2903
|
+
display: flex;
|
|
2904
|
+
align-items: center;
|
|
2905
|
+
gap: 8px;
|
|
2906
|
+
}
|
|
2907
|
+
/* The name keeps its whole line while it fits; the actor beside it gives
|
|
2908
|
+
way (truncates) first, down to an ellipsis. */
|
|
2909
|
+
.act-name {
|
|
2910
|
+
display: flex;
|
|
2911
|
+
flex: 1 1 auto;
|
|
2912
|
+
align-items: center;
|
|
2913
|
+
gap: 8px;
|
|
2914
|
+
min-width: 0;
|
|
2915
|
+
}
|
|
2916
|
+
.act-name > dpk-inline-edit {
|
|
2917
|
+
flex: none;
|
|
2918
|
+
max-width: calc(100% - 32px);
|
|
2919
|
+
}
|
|
2920
|
+
/* How far the group's stories have come: a strip along the head's bottom
|
|
2921
|
+
edge, as wide as the steps it spans, so it costs the band no line. */
|
|
2922
|
+
.act-head > .status-bar {
|
|
2923
|
+
position: absolute;
|
|
2924
|
+
left: 0;
|
|
2925
|
+
right: 0;
|
|
2926
|
+
bottom: 0;
|
|
2927
|
+
height: 4px;
|
|
2928
|
+
gap: 1px;
|
|
2929
|
+
}
|
|
2930
|
+
.act-head > .status-bar .status-bar-part {
|
|
2931
|
+
border-radius: 0;
|
|
2932
|
+
}
|
|
2933
|
+
/* Whose experience the activity is: a label beside the name, editable in place. */
|
|
2934
|
+
.act-actor {
|
|
2935
|
+
display: flex;
|
|
2936
|
+
flex: 0 1 auto;
|
|
2937
|
+
min-width: 24px;
|
|
2938
|
+
max-width: 60%;
|
|
2939
|
+
padding: 0 4px;
|
|
2940
|
+
border-radius: 999px;
|
|
2941
|
+
background: var(--dpk-blue-soft);
|
|
2942
|
+
color: var(--dpk-blue);
|
|
2943
|
+
font-size: 11px;
|
|
2944
|
+
font-weight: 650;
|
|
2945
|
+
line-height: 20px;
|
|
2946
|
+
}
|
|
2947
|
+
.act-actor > dpk-inline-edit {
|
|
2948
|
+
min-width: 0;
|
|
2949
|
+
}
|
|
2950
|
+
.act-actor[data-empty='true'] {
|
|
2951
|
+
background: transparent;
|
|
2952
|
+
opacity: 0;
|
|
2953
|
+
transition: opacity 150ms ease;
|
|
2954
|
+
}
|
|
2955
|
+
.act-head:hover .act-actor[data-empty='true'],
|
|
2956
|
+
.act-actor[data-empty='true']:focus-within {
|
|
2957
|
+
opacity: 1;
|
|
2958
|
+
}
|
|
2959
|
+
/* The group view gives the steps no columns; the head lists them instead. */
|
|
2960
|
+
.act-steps {
|
|
2961
|
+
display: grid;
|
|
2962
|
+
gap: 3px;
|
|
2963
|
+
margin: 0;
|
|
2964
|
+
padding: 0 0 0 18px;
|
|
2965
|
+
color: var(--dpk-ink-soft);
|
|
2966
|
+
font-size: 11.5px;
|
|
2967
|
+
font-weight: 500;
|
|
2968
|
+
line-height: 1.45;
|
|
2969
|
+
}
|
|
2970
|
+
.act-steps li::marker {
|
|
2971
|
+
color: var(--dpk-ink-faint);
|
|
2972
|
+
font-family: var(--dpk-mono);
|
|
2973
|
+
font-size: 10px;
|
|
2974
|
+
}
|
|
2975
|
+
.col-head {
|
|
2976
|
+
display: flex;
|
|
2977
|
+
align-items: center;
|
|
2978
|
+
gap: 6px;
|
|
2979
|
+
padding: 5px 10px;
|
|
2980
|
+
background: var(--dpk-paper-sunken);
|
|
2981
|
+
transition: background 160ms var(--dpk-ease);
|
|
2982
|
+
}
|
|
2983
|
+
.col-head h4 {
|
|
2984
|
+
flex: 1 1 auto;
|
|
2985
|
+
min-width: 0;
|
|
2986
|
+
}
|
|
2987
|
+
.col-head[data-current='true'] {
|
|
2988
|
+
background: color-mix(in srgb, var(--dpk-usm-accent) 8%, var(--dpk-paper-sunken));
|
|
2989
|
+
}
|
|
2990
|
+
/* Same undercompensation as \`.row-lead\` above, same fix. */
|
|
2991
|
+
.col-head[draggable='true'] {
|
|
2992
|
+
padding-inline-start: var(--dpk-matrix-grip-span, 22px);
|
|
2993
|
+
}
|
|
2994
|
+
.col-head h4 {
|
|
2995
|
+
font-size: 13px;
|
|
2996
|
+
font-weight: 600;
|
|
2997
|
+
margin: 0;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
.row-head {
|
|
3001
|
+
display: flex;
|
|
3002
|
+
align-items: center;
|
|
3003
|
+
gap: 6px;
|
|
3004
|
+
padding: 10px;
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
/* Milestone row label: plain text with a grip, not a chip. The "add
|
|
3008
|
+
milestone" row reuses \`.row-head\` for its ghost button. */
|
|
3009
|
+
.row-head[data-milestone] {
|
|
3010
|
+
align-self: stretch;
|
|
3011
|
+
margin: 0;
|
|
3012
|
+
padding: 0 6px 0 0;
|
|
3013
|
+
color: var(--dpk-ink);
|
|
3014
|
+
font-size: 12.5px;
|
|
3015
|
+
font-weight: 650;
|
|
3016
|
+
max-width: 100%;
|
|
3017
|
+
}
|
|
3018
|
+
|
|
3019
|
+
/* \`<dpk-matrix>\` is the row's drag handle, grip and cursor now; this only
|
|
3020
|
+
keeps a browser-native drag affordance off the name editor inside it. */
|
|
3021
|
+
.row-head dpk-inline-edit {
|
|
3022
|
+
-webkit-user-drag: none;
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
/* Column drag: a group's head or a step's head is its column's handle, the
|
|
3026
|
+
way a row head is a milestone's; \`<dpk-matrix>\` is the handle, grip and
|
|
3027
|
+
cursor now. This only keeps native drag off the editors inside. */
|
|
3028
|
+
.act-head dpk-inline-edit,
|
|
3029
|
+
.col-head dpk-inline-edit {
|
|
3030
|
+
-webkit-user-drag: none;
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
/* Unassigned is a holding area, not a release: its label is quieter. */
|
|
3034
|
+
.row-head[data-unassigned='true'] {
|
|
3035
|
+
padding-left: var(--usm-row-indent);
|
|
3036
|
+
color: var(--dpk-ink-soft);
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
/* Cells are the working canvas: sunken, with a quiet dot lattice, so raised
|
|
3040
|
+
story cards read as things placed on the board. */
|
|
3041
|
+
/* The padding and the sunken dot surface are \`<dpk-matrix>\`'s own now; this
|
|
3042
|
+
only stacks cards inside the cell it already gives us. */
|
|
3043
|
+
.cell {
|
|
3044
|
+
display: flex;
|
|
3045
|
+
flex-direction: column;
|
|
3046
|
+
gap: 8px;
|
|
3047
|
+
min-height: 100px;
|
|
3048
|
+
}
|
|
3049
|
+
.cell[data-drop='true'] {
|
|
3050
|
+
outline: 2px dashed var(--dpk-blue);
|
|
3051
|
+
outline-offset: -2px;
|
|
3052
|
+
}
|
|
3053
|
+
.card-list {
|
|
3054
|
+
display: grid;
|
|
3055
|
+
gap: 10px;
|
|
3056
|
+
align-content: start;
|
|
3057
|
+
flex: 1 1 auto;
|
|
3058
|
+
}
|
|
3059
|
+
/* The add button (the kit's add atom) shows on the cell's hover only. */
|
|
3060
|
+
.add-cell {
|
|
3061
|
+
margin-top: auto;
|
|
3062
|
+
opacity: 0;
|
|
3063
|
+
transition:
|
|
3064
|
+
opacity 180ms var(--dpk-ease),
|
|
3065
|
+
background 160ms var(--dpk-ease),
|
|
3066
|
+
border-color 160ms var(--dpk-ease),
|
|
3067
|
+
color 160ms var(--dpk-ease);
|
|
3068
|
+
}
|
|
3069
|
+
.add-cell:focus-visible {
|
|
3070
|
+
opacity: 1;
|
|
3071
|
+
}
|
|
3072
|
+
.cell:hover .add-cell {
|
|
3073
|
+
opacity: 1;
|
|
3074
|
+
}
|
|
3075
|
+
.empty {
|
|
3076
|
+
border: 1px dashed var(--dpk-rule-strong);
|
|
3077
|
+
border-radius: var(--dpk-radius-lg);
|
|
3078
|
+
padding: 28px 24px;
|
|
3079
|
+
background: var(--dpk-dots), var(--dpk-paper-sunken);
|
|
3080
|
+
max-width: 620px;
|
|
3081
|
+
display: grid;
|
|
3082
|
+
gap: 10px;
|
|
3083
|
+
}
|
|
3084
|
+
|
|
3085
|
+
/* ------------------------------------------------------ milestones tab */
|
|
3086
|
+
|
|
3087
|
+
/* The release slices as a timeline, like the experience section of a
|
|
3088
|
+
portfolio: when on the left, one node per slice on a single rail, what
|
|
3089
|
+
and how big on the right. Nothing is boxed; the rail carries the order. */
|
|
3090
|
+
.ms-overview {
|
|
3091
|
+
--ms-node: 30px;
|
|
3092
|
+
--ms-when: 132px;
|
|
3093
|
+
--ms-gap: 44px;
|
|
3094
|
+
display: grid;
|
|
3095
|
+
gap: 28px;
|
|
3096
|
+
max-width: 920px;
|
|
3097
|
+
padding: 28px 0 40px;
|
|
3098
|
+
}
|
|
3099
|
+
.ms-timeline {
|
|
3100
|
+
margin: 0;
|
|
3101
|
+
padding: 0;
|
|
3102
|
+
list-style: none;
|
|
3103
|
+
}
|
|
3104
|
+
.ms-entry,
|
|
3105
|
+
.ms-add {
|
|
3106
|
+
display: grid;
|
|
3107
|
+
grid-template-columns: var(--ms-when) var(--ms-node) minmax(0, 1fr);
|
|
3108
|
+
grid-template-areas: 'when rail body';
|
|
3109
|
+
column-gap: 24px;
|
|
3110
|
+
}
|
|
3111
|
+
.ms-entry {
|
|
3112
|
+
padding-bottom: var(--ms-gap);
|
|
3113
|
+
}
|
|
3114
|
+
.ms-when {
|
|
3115
|
+
grid-area: when;
|
|
3116
|
+
display: flex;
|
|
3117
|
+
justify-content: flex-end;
|
|
3118
|
+
padding-top: 5px;
|
|
3119
|
+
}
|
|
3120
|
+
.ms-timeframe {
|
|
3121
|
+
color: var(--dpk-ink);
|
|
3122
|
+
font-size: 13px;
|
|
3123
|
+
font-weight: 650;
|
|
3124
|
+
font-variant-numeric: tabular-nums;
|
|
3125
|
+
letter-spacing: 0.01em;
|
|
3126
|
+
text-align: right;
|
|
3127
|
+
}
|
|
3128
|
+
.ms-timeframe[data-empty='true'] {
|
|
3129
|
+
color: var(--dpk-ink-faint);
|
|
3130
|
+
font-weight: 500;
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3133
|
+
/* The rail runs through every entry's padding, so the nodes read as one line;
|
|
3134
|
+
it starts at the first node and fades out into the add node. */
|
|
3135
|
+
.ms-rail {
|
|
3136
|
+
grid-area: rail;
|
|
3137
|
+
position: relative;
|
|
3138
|
+
display: flex;
|
|
3139
|
+
justify-content: center;
|
|
3140
|
+
}
|
|
3141
|
+
.ms-rail::before {
|
|
3142
|
+
content: '';
|
|
3143
|
+
position: absolute;
|
|
3144
|
+
top: 0;
|
|
3145
|
+
bottom: calc(-1 * var(--ms-gap));
|
|
3146
|
+
left: calc(50% - 1px);
|
|
3147
|
+
width: 2px;
|
|
3148
|
+
border-radius: 1px;
|
|
3149
|
+
background: var(--dpk-rule-strong);
|
|
3150
|
+
}
|
|
3151
|
+
.ms-entry:first-child .ms-rail::before {
|
|
3152
|
+
top: calc(var(--ms-node) / 2);
|
|
3153
|
+
}
|
|
3154
|
+
.ms-add .ms-rail::before {
|
|
3155
|
+
bottom: auto;
|
|
3156
|
+
height: calc(var(--ms-node) / 2);
|
|
3157
|
+
background: repeating-linear-gradient(to bottom, var(--dpk-rule-strong) 0 3px, transparent 3px 7px);
|
|
3158
|
+
}
|
|
3159
|
+
.ms-node {
|
|
3160
|
+
position: relative;
|
|
3161
|
+
display: grid;
|
|
3162
|
+
place-items: center;
|
|
3163
|
+
width: var(--ms-node);
|
|
3164
|
+
height: var(--ms-node);
|
|
3165
|
+
box-sizing: border-box;
|
|
3166
|
+
border: 1px solid var(--dpk-rule-strong);
|
|
3167
|
+
border-radius: 50%;
|
|
3168
|
+
background: var(--dpk-paper-raised);
|
|
3169
|
+
color: var(--dpk-ink);
|
|
3170
|
+
font-family: var(--dpk-mono);
|
|
3171
|
+
font-size: 12px;
|
|
3172
|
+
font-weight: 700;
|
|
3173
|
+
font-variant-numeric: tabular-nums;
|
|
3174
|
+
/* A ring of page color cuts the rail around the node. */
|
|
3175
|
+
box-shadow:
|
|
3176
|
+
0 0 0 5px var(--dpk-paper),
|
|
3177
|
+
var(--dpk-bevel),
|
|
3178
|
+
var(--dpk-shadow-xs);
|
|
3179
|
+
transition:
|
|
3180
|
+
border-color 160ms var(--dpk-ease),
|
|
3181
|
+
color 160ms var(--dpk-ease);
|
|
3182
|
+
}
|
|
3183
|
+
.ms-entry:hover .ms-node,
|
|
3184
|
+
.ms-entry:focus-within .ms-node {
|
|
3185
|
+
border-color: var(--dpk-blue);
|
|
3186
|
+
color: var(--dpk-blue-strong);
|
|
3187
|
+
}
|
|
3188
|
+
.ms-node--add {
|
|
3189
|
+
border-style: dashed;
|
|
3190
|
+
background: var(--dpk-paper);
|
|
3191
|
+
box-shadow: 0 0 0 5px var(--dpk-paper);
|
|
3192
|
+
}
|
|
3193
|
+
.ms-node--add::before,
|
|
3194
|
+
.ms-node--add::after {
|
|
3195
|
+
content: '';
|
|
3196
|
+
position: absolute;
|
|
3197
|
+
left: 50%;
|
|
3198
|
+
top: 50%;
|
|
3199
|
+
width: 10px;
|
|
3200
|
+
height: 1.5px;
|
|
3201
|
+
border-radius: 1px;
|
|
3202
|
+
background: var(--dpk-ink-faint);
|
|
3203
|
+
transform: translate(-50%, -50%);
|
|
3204
|
+
}
|
|
3205
|
+
.ms-node--add::after {
|
|
3206
|
+
transform: translate(-50%, -50%) rotate(90deg);
|
|
3207
|
+
}
|
|
3208
|
+
.ms-add .ms-body {
|
|
3209
|
+
display: flex;
|
|
3210
|
+
align-items: center;
|
|
3211
|
+
min-height: var(--ms-node);
|
|
3212
|
+
}
|
|
3213
|
+
/* The label lines up with the names above; the button's padding hangs out. */
|
|
3214
|
+
.ms-add .dpk-btn {
|
|
3215
|
+
margin-left: -12px;
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3218
|
+
.ms-body {
|
|
3219
|
+
grid-area: body;
|
|
3220
|
+
display: grid;
|
|
3221
|
+
gap: 10px;
|
|
3222
|
+
min-width: 0;
|
|
3223
|
+
justify-items: start;
|
|
3224
|
+
}
|
|
3225
|
+
.ms-name {
|
|
3226
|
+
justify-self: stretch;
|
|
3227
|
+
min-width: 0;
|
|
3228
|
+
margin: 0;
|
|
3229
|
+
padding-top: 1px;
|
|
3230
|
+
font-size: 19px;
|
|
3231
|
+
font-weight: 700;
|
|
3232
|
+
line-height: 1.4;
|
|
3233
|
+
letter-spacing: -0.015em;
|
|
3234
|
+
}
|
|
3235
|
+
/* The field pads its text by 4px; pull it out by as much so the name lines
|
|
3236
|
+
up with the description and keeps its place when editing starts. */
|
|
3237
|
+
.ms-name dpk-inline-edit {
|
|
3238
|
+
display: block;
|
|
3239
|
+
margin: 0 -4px;
|
|
3240
|
+
}
|
|
3241
|
+
.ms-description {
|
|
3242
|
+
margin: 0;
|
|
3243
|
+
max-width: 64ch;
|
|
3244
|
+
color: var(--dpk-ink-soft);
|
|
3245
|
+
font-size: 14px;
|
|
3246
|
+
line-height: 1.75;
|
|
3247
|
+
white-space: pre-wrap;
|
|
3248
|
+
}
|
|
3249
|
+
.ms-description[data-empty='true'] {
|
|
3250
|
+
color: var(--dpk-ink-faint);
|
|
3251
|
+
font-size: 13px;
|
|
3252
|
+
}
|
|
3253
|
+
.ms-facts {
|
|
3254
|
+
display: flex;
|
|
3255
|
+
flex-wrap: wrap;
|
|
3256
|
+
gap: 10px 36px;
|
|
3257
|
+
margin: 6px 0 0;
|
|
3258
|
+
}
|
|
3259
|
+
.ms-facts dt {
|
|
3260
|
+
margin-bottom: 3px;
|
|
3261
|
+
color: var(--dpk-ink-faint);
|
|
3262
|
+
font-size: 11px;
|
|
3263
|
+
font-weight: 600;
|
|
3264
|
+
letter-spacing: 0.02em;
|
|
3265
|
+
}
|
|
3266
|
+
.ms-facts dd {
|
|
3267
|
+
display: flex;
|
|
3268
|
+
align-items: center;
|
|
3269
|
+
gap: 10px;
|
|
3270
|
+
margin: 0;
|
|
3271
|
+
color: var(--dpk-ink-faint);
|
|
3272
|
+
font-size: 12px;
|
|
3273
|
+
}
|
|
3274
|
+
.ms-facts strong {
|
|
3275
|
+
color: var(--dpk-ink);
|
|
3276
|
+
font-size: 15px;
|
|
3277
|
+
font-weight: 650;
|
|
3278
|
+
font-variant-numeric: tabular-nums;
|
|
3279
|
+
}
|
|
3280
|
+
.ms-meter {
|
|
3281
|
+
display: block;
|
|
3282
|
+
width: 72px;
|
|
3283
|
+
height: 4px;
|
|
3284
|
+
border-radius: 2px;
|
|
3285
|
+
background: var(--dpk-paper-inset);
|
|
3286
|
+
overflow: hidden;
|
|
3287
|
+
}
|
|
3288
|
+
.ms-meter > span {
|
|
3289
|
+
display: block;
|
|
3290
|
+
height: 100%;
|
|
3291
|
+
border-radius: inherit;
|
|
3292
|
+
background: var(--dpk-blue);
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
/* Where the slice's stories sit across the backbone, in activity tones. */
|
|
3296
|
+
.ms-breakdown {
|
|
3297
|
+
display: grid;
|
|
3298
|
+
gap: 10px;
|
|
3299
|
+
width: min(100%, 460px);
|
|
3300
|
+
margin-top: 4px;
|
|
3301
|
+
}
|
|
3302
|
+
.ms-breakdown .status-bar {
|
|
3303
|
+
height: 8px;
|
|
3304
|
+
}
|
|
3305
|
+
.ms-legend {
|
|
3306
|
+
display: flex;
|
|
3307
|
+
flex-wrap: wrap;
|
|
3308
|
+
gap: 6px 16px;
|
|
3309
|
+
margin: 0;
|
|
3310
|
+
padding: 0;
|
|
3311
|
+
list-style: none;
|
|
3312
|
+
}
|
|
3313
|
+
.ms-legend li {
|
|
3314
|
+
display: inline-flex;
|
|
3315
|
+
align-items: center;
|
|
3316
|
+
gap: 6px;
|
|
3317
|
+
color: var(--dpk-ink-soft);
|
|
3318
|
+
font-size: 12px;
|
|
3319
|
+
}
|
|
3320
|
+
.ms-breakdown-count {
|
|
3321
|
+
color: var(--dpk-ink-faint);
|
|
3322
|
+
font-family: var(--dpk-mono);
|
|
3323
|
+
font-size: 11px;
|
|
3324
|
+
font-variant-numeric: tabular-nums;
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3327
|
+
/* Narrow: the date moves above the name, the rail stays on the left. */
|
|
3328
|
+
@media (max-width: 640px) {
|
|
3329
|
+
.ms-overview {
|
|
3330
|
+
--ms-node: 26px;
|
|
3331
|
+
}
|
|
3332
|
+
.ms-entry,
|
|
3333
|
+
.ms-add {
|
|
3334
|
+
grid-template-columns: var(--ms-node) minmax(0, 1fr);
|
|
3335
|
+
grid-template-areas:
|
|
3336
|
+
'rail when'
|
|
3337
|
+
'rail body';
|
|
3338
|
+
column-gap: 16px;
|
|
3339
|
+
}
|
|
3340
|
+
.ms-add {
|
|
3341
|
+
grid-template-areas: 'rail body';
|
|
3342
|
+
}
|
|
3343
|
+
.ms-add .ms-when {
|
|
3344
|
+
display: none;
|
|
3345
|
+
}
|
|
3346
|
+
.ms-when {
|
|
3347
|
+
justify-content: flex-start;
|
|
3348
|
+
padding: 4px 0 2px;
|
|
3349
|
+
}
|
|
3350
|
+
.ms-timeframe {
|
|
3351
|
+
text-align: left;
|
|
3352
|
+
}
|
|
3353
|
+
}
|
|
3354
|
+
|
|
3355
|
+
/* ------------------------------------------------------- statuses tab */
|
|
3356
|
+
|
|
3357
|
+
/* The statuses in order, one row each: color, name, how many stories stand
|
|
3358
|
+
there, the palette to recolor it, and the order / delete tools. */
|
|
3359
|
+
.st-overview {
|
|
3360
|
+
display: grid;
|
|
3361
|
+
gap: 20px;
|
|
3362
|
+
max-width: 1040px;
|
|
3363
|
+
padding: 28px 0 40px;
|
|
3364
|
+
}
|
|
3365
|
+
.st-list {
|
|
3366
|
+
display: grid;
|
|
3367
|
+
margin: 0;
|
|
3368
|
+
padding: 0;
|
|
3369
|
+
list-style: none;
|
|
3370
|
+
border: 1px solid var(--dpk-rule);
|
|
3371
|
+
border-radius: var(--dpk-radius-lg);
|
|
3372
|
+
background: var(--dpk-paper-raised);
|
|
3373
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
3374
|
+
}
|
|
3375
|
+
.st-row {
|
|
3376
|
+
display: grid;
|
|
3377
|
+
/* Fixed tool columns keep the unset row, which has no tools, in line. */
|
|
3378
|
+
grid-template-columns: 16px minmax(120px, 1fr) minmax(140px, 200px) 150px 84px;
|
|
3379
|
+
align-items: center;
|
|
3380
|
+
gap: 14px;
|
|
3381
|
+
padding: 12px 16px;
|
|
3382
|
+
}
|
|
3383
|
+
/* A status also says whether stories are done there, before its tools. */
|
|
3384
|
+
.st-row--status {
|
|
3385
|
+
grid-template-columns: 16px minmax(120px, 1fr) minmax(140px, 200px) 150px auto 84px;
|
|
3386
|
+
}
|
|
3387
|
+
.st-row + .st-row {
|
|
3388
|
+
border-top: 1px solid var(--dpk-rule);
|
|
3389
|
+
}
|
|
3390
|
+
.st-done {
|
|
3391
|
+
display: inline-flex;
|
|
3392
|
+
align-items: center;
|
|
3393
|
+
gap: 6px;
|
|
3394
|
+
color: var(--dpk-ink-faint);
|
|
3395
|
+
font-size: 12px;
|
|
3396
|
+
font-weight: 600;
|
|
3397
|
+
white-space: nowrap;
|
|
3398
|
+
cursor: pointer;
|
|
3399
|
+
user-select: none;
|
|
3400
|
+
transition: color 140ms var(--dpk-ease);
|
|
3401
|
+
}
|
|
3402
|
+
.st-done:hover,
|
|
3403
|
+
.st-done:has(:checked) {
|
|
3404
|
+
color: var(--dpk-ink);
|
|
3405
|
+
}
|
|
3406
|
+
.st-done input {
|
|
3407
|
+
margin: 0;
|
|
3408
|
+
accent-color: var(--usm-tone);
|
|
3409
|
+
cursor: inherit;
|
|
3410
|
+
}
|
|
3411
|
+
.st-name {
|
|
3412
|
+
min-width: 0;
|
|
3413
|
+
font-size: 14px;
|
|
3414
|
+
font-weight: 650;
|
|
3415
|
+
}
|
|
3416
|
+
.st-share {
|
|
3417
|
+
display: grid;
|
|
3418
|
+
gap: 5px;
|
|
3419
|
+
}
|
|
3420
|
+
.st-share-text {
|
|
3421
|
+
color: var(--dpk-ink-faint);
|
|
3422
|
+
font-family: var(--dpk-mono);
|
|
3423
|
+
font-size: 11px;
|
|
3424
|
+
font-variant-numeric: tabular-nums;
|
|
3425
|
+
}
|
|
3426
|
+
.st-meter {
|
|
3427
|
+
height: 5px;
|
|
3428
|
+
border-radius: 3px;
|
|
3429
|
+
background: var(--dpk-paper-sunken);
|
|
3430
|
+
overflow: hidden;
|
|
3431
|
+
}
|
|
3432
|
+
.st-meter > span {
|
|
3433
|
+
display: block;
|
|
3434
|
+
height: 100%;
|
|
3435
|
+
border-radius: 3px;
|
|
3436
|
+
background: var(--usm-tone);
|
|
3437
|
+
}
|
|
3438
|
+
.st-tones {
|
|
3439
|
+
display: inline-flex;
|
|
3440
|
+
flex-wrap: wrap;
|
|
3441
|
+
gap: 5px;
|
|
3442
|
+
}
|
|
3443
|
+
/* The status's own icon opens the menu of icons. */
|
|
3444
|
+
.st-icon-trigger {
|
|
3445
|
+
display: inline-grid;
|
|
3446
|
+
place-items: center;
|
|
3447
|
+
width: 30px;
|
|
3448
|
+
height: 30px;
|
|
3449
|
+
margin: -7px;
|
|
3450
|
+
padding: 0;
|
|
3451
|
+
border: 1px solid transparent;
|
|
3452
|
+
border-radius: var(--dpk-radius-sm);
|
|
3453
|
+
background: transparent;
|
|
3454
|
+
cursor: pointer;
|
|
3455
|
+
transition:
|
|
3456
|
+
background 140ms var(--dpk-ease),
|
|
3457
|
+
border-color 140ms var(--dpk-ease);
|
|
3458
|
+
}
|
|
3459
|
+
.st-icon-trigger:hover,
|
|
3460
|
+
.st-icon-trigger[aria-expanded='true'] {
|
|
3461
|
+
border-color: var(--dpk-rule-strong);
|
|
3462
|
+
background: var(--dpk-paper-raised);
|
|
3463
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
3464
|
+
}
|
|
3465
|
+
.st-icon-trigger:focus-visible {
|
|
3466
|
+
outline: none;
|
|
3467
|
+
box-shadow: var(--dpk-focus);
|
|
3468
|
+
}
|
|
3469
|
+
.comment-pop.icon-menu {
|
|
3470
|
+
grid-template-columns: repeat(5, 36px);
|
|
3471
|
+
gap: 4px;
|
|
3472
|
+
padding: 8px;
|
|
3473
|
+
}
|
|
3474
|
+
.icon-option {
|
|
3475
|
+
display: inline-grid;
|
|
3476
|
+
place-items: center;
|
|
3477
|
+
width: 36px;
|
|
3478
|
+
height: 36px;
|
|
3479
|
+
padding: 0;
|
|
3480
|
+
border: 1px solid transparent;
|
|
3481
|
+
border-radius: var(--dpk-radius-sm);
|
|
3482
|
+
background: transparent;
|
|
3483
|
+
cursor: pointer;
|
|
3484
|
+
}
|
|
3485
|
+
.icon-option .status-icon {
|
|
3486
|
+
width: 18px;
|
|
3487
|
+
height: 18px;
|
|
3488
|
+
}
|
|
3489
|
+
.icon-option:hover,
|
|
3490
|
+
.icon-option:focus-visible {
|
|
3491
|
+
outline: none;
|
|
3492
|
+
background: var(--dpk-paper-inset);
|
|
3493
|
+
}
|
|
3494
|
+
.icon-option[aria-checked='true'] {
|
|
3495
|
+
border-color: color-mix(in oklab, var(--usm-tone) 55%, transparent);
|
|
3496
|
+
background: color-mix(in oklab, var(--usm-tone) 12%, transparent);
|
|
3497
|
+
}
|
|
3498
|
+
.st-tone {
|
|
3499
|
+
width: 18px;
|
|
3500
|
+
height: 18px;
|
|
3501
|
+
padding: 0;
|
|
3502
|
+
border: 2px solid var(--dpk-paper-raised);
|
|
3503
|
+
border-radius: 50%;
|
|
3504
|
+
background: var(--usm-tone);
|
|
3505
|
+
box-shadow: 0 0 0 1px var(--dpk-rule-strong);
|
|
3506
|
+
cursor: pointer;
|
|
3507
|
+
transition: box-shadow 150ms ease;
|
|
3508
|
+
}
|
|
3509
|
+
.st-tone:hover {
|
|
3510
|
+
box-shadow: 0 0 0 1px var(--usm-tone);
|
|
3511
|
+
}
|
|
3512
|
+
.st-tone[aria-checked='true'] {
|
|
3513
|
+
box-shadow: 0 0 0 2px var(--usm-tone);
|
|
3514
|
+
}
|
|
3515
|
+
.st-tone:focus-visible {
|
|
3516
|
+
outline: none;
|
|
3517
|
+
box-shadow: var(--dpk-focus);
|
|
3518
|
+
}
|
|
3519
|
+
/* A label's color, where a status shows its icon. */
|
|
3520
|
+
.label-swatch {
|
|
3521
|
+
width: 12px;
|
|
3522
|
+
height: 12px;
|
|
3523
|
+
border-radius: 4px;
|
|
3524
|
+
background: var(--usm-tone);
|
|
3525
|
+
}
|
|
3526
|
+
/* A member's initial in their color, where a label shows its swatch. */
|
|
3527
|
+
.member-avatar {
|
|
3528
|
+
display: inline-grid;
|
|
3529
|
+
place-items: center;
|
|
3530
|
+
width: 22px;
|
|
3531
|
+
height: 22px;
|
|
3532
|
+
border-radius: 50%;
|
|
3533
|
+
background: var(--usm-tone);
|
|
3534
|
+
color: var(--dpk-paper-raised);
|
|
3535
|
+
font-size: 11px;
|
|
3536
|
+
font-weight: 700;
|
|
3537
|
+
line-height: 1;
|
|
3538
|
+
}
|
|
3539
|
+
.st-tools {
|
|
3540
|
+
display: inline-flex;
|
|
3541
|
+
gap: 2px;
|
|
3542
|
+
}
|
|
3543
|
+
.st-tools .dpk-icon-btn {
|
|
3544
|
+
width: 26px;
|
|
3545
|
+
height: 26px;
|
|
3546
|
+
font-size: 13px;
|
|
3547
|
+
}
|
|
3548
|
+
@media (max-width: 640px) {
|
|
3549
|
+
.st-row {
|
|
3550
|
+
grid-template-columns: 16px minmax(0, 1fr) auto;
|
|
3551
|
+
row-gap: 8px;
|
|
3552
|
+
}
|
|
3553
|
+
.st-share,
|
|
3554
|
+
.st-tones,
|
|
3555
|
+
.st-done {
|
|
3556
|
+
grid-column: 2 / -1;
|
|
3557
|
+
}
|
|
3558
|
+
/* The tools stay on the name's row, so the rows below are the name's width. */
|
|
3559
|
+
.st-tools {
|
|
3560
|
+
grid-column: 3;
|
|
3561
|
+
grid-row: 1;
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
|
|
3565
|
+
/* Step picker shown after a cross-activity drop. */
|
|
3566
|
+
.move-dialog {
|
|
3567
|
+
min-width: 220px;
|
|
3568
|
+
}
|
|
3569
|
+
.move-dialog .dpk-rich-select {
|
|
3570
|
+
width: 100%;
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
/* ----------------------------------------------------------- table tab */
|
|
3574
|
+
|
|
3575
|
+
/* The flat view of every story: dpk-table supplies its own
|
|
3576
|
+
chrome, this just gives it the page's margins. */
|
|
3577
|
+
.story-table {
|
|
3578
|
+
display: block;
|
|
3579
|
+
max-width: 1200px;
|
|
3580
|
+
padding: 28px 0 40px;
|
|
3581
|
+
}
|
|
3582
|
+
`,V={kind:"idle"},go={width:300,height:240},fo={width:228,height:116},yo=240,vo=31,ko=14,ga=160,wo=1500;class fa extends $t{static{this.styles=[$t.styles,Fa,bo,mt,Cs,lo,Er,yr,Cr,Or,xr,Xr,Ca]}definitionFor(t){return _s(t)}static{this.properties={mode:{state:!0}}}#i=new Ga(this);#e=new Ba(this);#a=null;#n=new Wn(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]")});#s=!1;#t=null;#r;#o=new xt(this);#l=new xt(this);#d=null;constructor(){super(),this.mode=V,new tt(this,{open:()=>this.#p()!==null,closesOn:t=>this.#u(t),ownsEscape:t=>this.mode.kind==="idle"&&(t.includes(this)||t[0]===document.body||t[0]===document.documentElement),dismiss:()=>this.context().navigate({story:null})}),new tt(this,{open:()=>this.mode.kind==="filtering",closesOn:t=>!t.some(s=>s instanceof Element&&(s.id==="filter-menu"||s.hasAttribute("data-filter-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=V}),new tt(this,{open:()=>this.mode.kind==="choosing-tab",closesOn:t=>!t.some(s=>s instanceof Element&&(s.id==="tabs-menu"||s.hasAttribute("data-tabs-more-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=V})}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.#r),this.#t=null}renderRegions(t){return{main:this.#b(t)}}updated(){if(super.updated(),this.#h(),this.#m(),this.mode.kind==="picking-dependency"){this.#c();return}if(this.mode.kind==="picking-icon"){const s=this.renderRoot.querySelector("#icon-menu"),a=this.renderRoot.querySelector(`[data-icon-trigger="${CSS.escape(this.mode.statusId)}"]`);s&&a&&this.#e.open(s,a,fo);return}if(this.mode.kind==="filtering"){const s=this.renderRoot.querySelector("#filter-menu"),a=this.renderRoot.querySelector(`[data-filter-trigger="${CSS.escape(this.mode.key)}"]`),n=(s?.childElementCount??0)*vo+ko;s&&a&&this.#e.open(s,a,{width:yo,height:n});return}if(this.mode.kind==="choosing-tab"){const s=this.renderRoot.querySelector("#tabs-menu"),a=this.renderRoot.querySelector("[data-tabs-more-trigger]");if(!s){this.mode=V;return}const n=s.childElementCount*qr+Wr;a&&this.#e.open(s,a,{width:jr,height:n},{placement:"bottom-start"});return}if(this.mode.kind!=="picking-step")return;const t=this.renderRoot.querySelector("#move-dialog");t&&this.#e.open(t,Ya(this.mode.point.x,this.mode.point.y),go)}#c(){const t=this.renderRoot instanceof ShadowRoot?this.renderRoot.activeElement:null;if(!t?.matches(".sp-dep-search")){this.mode=V;return}const s=t.getAttribute("aria-activedescendant");s&&this.renderRoot.querySelector(`#${CSS.escape(s)}`)?.scrollIntoView?.({block:"nearest"})}#p(){return this.renderRoot.querySelector(".story-panel")}#u(t){const s=this.#p(),a=this.renderRoot.querySelector(".dpk-main");return!s||!a||t.includes(s)||!t.includes(a)?!1:!t.some(n=>n instanceof Element&&(n.localName==="dpk-internal-usm-story-card"||n.hasAttribute("popover")))}#m(){const t=this.#p(),s=t?.dataset.story??null,a=this.#a;if(s===a)return;this.#a=s;const n=this.shadowRoot?.activeElement??null;if(t){(!n||!t.contains(n))&&t.focus({preventScroll:!0});return}a===null||n!==null&&n.isConnected||this.renderRoot.querySelector(`dpk-internal-usm-story-card[data-story="${CSS.escape(a)}"]`)?.focus({preventScroll:!0})}#h(){if(!(Pe(this.navigation)!==null)){this.#s=!1;return}const a=this.renderRoot.querySelector("dpk-matrix")?.shadowRoot?.querySelector(".matrix-scroll")??null,n=this.renderRoot.querySelector('dpk-internal-usm-story-card[data-highlight="on"]');this.#s||!a||!n||(this.#s=!0,Ua(a,n,ga),Pa(a,n,ga))}#b(t){const s=ue(this.locale),a=ms(t.state,t.navigation);return l`
|
|
3583
|
+
${Vr(Hr(s,t,a,{folded:this.#n.hidden,minimum:this.#n.minimum,open:this.mode.kind==="choosing-tab",toggle:()=>this.mode=this.mode.kind==="choosing-tab"?V:{kind:"choosing-tab"},close:()=>this.mode=V}),this.#g(s,t,a))}
|
|
3584
|
+
${this.#v(s,t,a)} ${this.#f(s,t,a)}
|
|
3585
|
+
${Fr(s,t,this.mode,this.#l,this.#d,{pick:n=>{this.#d=n,this.requestUpdate()},confirm:n=>this.#_(n),cancel:()=>{this.#d=null,this.mode=V}})}
|
|
3586
|
+
`}#g(t,s,a){return a!=="map"||Ce(s.state).length===0?m:Nr(t,s,{openFor:this.mode.kind==="filtering"?this.mode.key:null,toggle:n=>{const i=this.mode.kind==="filtering"&&this.mode.key===n;this.mode=i?V:{kind:"filtering",key:n}},close:()=>this.mode=V})}#f(t,s,a){if(a!=="map"&&a!=="table")return m;const n=Zr(s);if(!n)return m;const i={search:this.mode.kind==="picking-dependency"?this.mode.search:null,set:o=>this.mode=o?{kind:"picking-dependency",search:o}:V},r={copied:this.#t===ge(n),copy:o=>{this.#y(o)}};return Jr(t,s,n,i,r)}async#y(t){await wt(t)&&(clearTimeout(this.#r),this.#t=t,this.requestUpdate(),this.#r=setTimeout(()=>{this.#t=null,this.requestUpdate()},wo))}#v(t,s,a){switch(a){case"table":return mo(t,s);case"milestones":return Ur(t,s,Di(s.state));case"statuses":return tr(t,s,ho(s.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?V:{kind:"picking-icon",statusId:n}},close:()=>this.mode=V});case"labels":return Tr(t,s,Mi(s.state));case"members":return Br(t,s,Li(s.state));case"burndown":return lr(t,s,new Date,this.#o);case"map":return this.#k(t,s)}}#k(t,s){return Vi({m:t,context:s,drag:this.#i,handlers:{selectStory:a=>this.#w(a),dropOnCell:(a,n)=>this.#E(a,n),dropOnGroupCell:(a,n,i)=>this.#S(a,n,i),reorderMilestone:a=>this.#$(a),reorderActivity:a=>this.#x(a),reorderStep:a=>this.#T(a)},highlighted:zn(s.state,s.navigation)})}#w(t){const s=this.context(),a=x(s.state,t);a&&s.navigate({step:a.stepId,story:a.id})}#E(t,s){const a=this.context();a.dispatch(Fs(a.state,t,s.item.id,s.hoveredId,s.place))}#S(t,s,a){const n=this.context(),i=x(n.state,a.item.id);if(!i)return;if(i.activityId!==t){this.#d=null,this.mode={kind:"picking-step",storyId:i.id,activityId:t,milestoneId:s,point:{x:a.event.clientX,y:a.event.clientY}};return}const r=Vs(n.state,t,s,i.id,a.hoveredId,a.place);r&&n.dispatch(r)}#$(t){this.context().dispatch({type:"REORDER_MILESTONE",target:{type:"milestone",id:t.rowId},payload:{after:t.after}})}#x(t){this.context().dispatch({type:"REORDER_ACTIVITY",target:{type:"activity",id:t.columnId},payload:{after:t.after}})}#T(t){const s=t.columnId;this.context().dispatch({type:"REORDER_STEP",target:{type:"step",id:le(s,t.subColumnId)},payload:{after:t.after===null?null:le(s,t.after)}})}#_(t){const s=this.mode;if(s.kind!=="picking-step")return;const a=this.context();a.dispatch(Gs(a.state,s.storyId,s.activityId,t,s.milestoneId)),this.#d=null,this.mode=V}}const ya=()=>{$i(),hi(),Ai(),customElements.get("dpk-view-usm")||customElements.define("dpk-view-usm",fa)},Eo=Object.freeze(Object.defineProperty({__proto__:null,DpkViewUsm:fa,IDLE_MODE:V,allUsmIds:X,applyUsmAction:is,defineUsmElement:ya,describeUsmAction:ks,dropAfter:Ii,emptyUsmBase:Gt,findActivity:te,findMilestone:P,findStep:B,findStory:x,flatSteps:Ce,parseUsmBase:Ft,resolveCellDrop:Fs,resolveGroupDrop:Vs,resolvePickedStepMove:Gs,resolveUsmNavigation:xs,serializeUsmAction:ws,storiesInCell:Be,storyCountForStep:Wt,usmAction:wn,usmActions:y,usmCommentTargets:Ss,usmCurrentTarget:$s,usmDefinitionFor:_s,usmHasTarget:Ts,usmMessages:ue,usmTargetLabel:Es,usmTitle:ct},Symbol.toStringTag,{value:"Module"}));export{ya as d,Eo as i};
|