efficient-shell 12.37.1 → 12.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +8 -2
  2. package/dist/{Browser-L6R53COY.js → Browser-FCT4BT5O.js} +16 -16
  3. package/dist/{Calculator-2N7WJ6NR.js → Calculator-XTG7MO36.js} +22 -22
  4. package/dist/{CurrencyConverter-LJ73P5P7.js → CurrencyConverter-ZYT5HN7A.js} +7 -7
  5. package/dist/{Files-5EL5Q4B7.js → Files-TMESLJMT.js} +127 -127
  6. package/dist/{Notepad-FIHNDNX3.js → Notepad-IBL552IT.js} +9 -9
  7. package/dist/{PomodoroTimer-T34U5BLE.js → PomodoroTimer-BX2GDNXQ.js} +65 -65
  8. package/dist/{Preview-BUCAP4O7.js → Preview-UVVBOT7G.js} +40 -40
  9. package/dist/{Stock-BV36WRZA.js → Stock-HMIUZHYW.js} +2 -2
  10. package/dist/{Weather-YQQT5XYX.js → Weather-3Q5GAAGM.js} +12 -12
  11. package/dist/{WorldClock-WN2X3YIV.js → WorldClock-LS3LEEI4.js} +4 -4
  12. package/dist/ai/index.js +1 -1
  13. package/dist/apps/index.js +1 -1
  14. package/dist/bin/media-host-check.js +1 -1
  15. package/dist/bin/ui-check.js +1 -1
  16. package/dist/brand.css +1 -1
  17. package/dist/charts/PieChart.js +1 -1
  18. package/dist/charts/RadarChart.js +1 -1
  19. package/dist/charts/RadialBarChart.js +1 -1
  20. package/dist/charts/SpecChart.js +1 -1
  21. package/dist/charts/TimeSeriesChart.js +1 -1
  22. package/dist/{chunk-IFLIE3EQ.js → chunk-5RFSFKAV.js} +1 -1
  23. package/dist/{chunk-YHABPVWU.js → chunk-APGIPXR7.js} +2 -2
  24. package/dist/{chunk-OZV5P5A7.js → chunk-DGFFDZCY.js} +5 -5
  25. package/dist/{chunk-CUJA3HBZ.js → chunk-DYOFTZOC.js} +2 -2
  26. package/dist/{chunk-O5UD3ZWM.js → chunk-E6PDAYBR.js} +4 -4
  27. package/dist/{chunk-UF76AFFY.js → chunk-EEFUXXYJ.js} +13 -13
  28. package/dist/{chunk-PK4R5S7U.js → chunk-JNENU4ZI.js} +1 -1
  29. package/dist/{chunk-JZY2RBPX.js → chunk-JTMR3EH3.js} +6 -6
  30. package/dist/{chunk-QDIPNQ6M.js → chunk-KRWHKEGT.js} +1 -1
  31. package/dist/{chunk-TZBNN6HD.js → chunk-KZQRUVII.js} +5 -5
  32. package/dist/{chunk-WAKWESOR.js → chunk-LPAOHDUE.js} +1 -1
  33. package/dist/{chunk-FCILLVVT.js → chunk-PDOPU3KN.js} +83 -83
  34. package/dist/{chunk-YFOSWCXT.js → chunk-TFUN7OEO.js} +2 -2
  35. package/dist/chunk-VNROPHRY.js +29 -0
  36. package/dist/chunk-XM2RTY2R.js +1 -0
  37. package/dist/data/Gantt.d.ts +7 -3
  38. package/dist/data/Gantt.js +1 -1
  39. package/dist/forms/BrandAssetEditor.js +1 -1
  40. package/dist/forms/MediaLibrary.js +1 -1
  41. package/dist/icons/index.js +1 -1
  42. package/dist/index.js +48 -48
  43. package/dist/shell/LanguageSelect.js +1 -1
  44. package/dist/shell/SettingRow.js +1 -1
  45. package/dist/telemetry/index.js +1 -1
  46. package/dist/templates/DashboardTemplate.js +1 -1
  47. package/dist/ui/index.js +1 -1
  48. package/dist/version.js +1 -1
  49. package/package.json +1 -1
  50. package/dist/chunk-3W3FXX42.js +0 -26
  51. package/dist/chunk-BXZTH7RX.js +0 -1
@@ -1,4 +1,4 @@
1
- import{useWindowMenuItem as e,Modal as t}from"./chunk-FCILLVVT.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as n}from"./chunk-BXZTH7RX.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{DEFAULT_SHELL_STRINGS as i,useShellStrings as o,splitAround as a}from"./chunk-DEJIH3ZQ.js";import{useState as l,useCallback as m,isValidElement as c,cloneElement as p}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var h=i.aboutApp,x={notepad:{name:"Notepad",version:"1.1.0",route:"/notepad",description:h.notepad},preview:{name:"Preview",version:"1.5.0",route:"/preview",description:h.preview},files:{name:"Files",version:"2.0.0",route:"/files",description:h.files},browser:{name:"Browser",version:"1.0.3",route:"/browser",description:h.browser}},u=/* @__PURE__ */d(s,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),w=/* @__PURE__ */d(s,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function v({app:s}){const i=x[s],[h,v]=l(!1),N=m(()=>v(!0),[]),b=o().aboutApp,k=b.title(i.name);if(e(k,N,u),!h)return null;const g=r[i.route],y=c(g)?p(g,{className:"h-9 w-9"}):w,[j,C]=a(b.partOf);/* @__PURE__ */
1
+ import{useWindowMenuItem as e,Modal as t}from"./chunk-PDOPU3KN.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as n}from"./chunk-XM2RTY2R.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{DEFAULT_SHELL_STRINGS as i,useShellStrings as o,splitAround as a}from"./chunk-DEJIH3ZQ.js";import{useState as l,useCallback as m,isValidElement as c,cloneElement as p}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var h=i.aboutApp,x={notepad:{name:"Notepad",version:"1.1.0",route:"/notepad",description:h.notepad},preview:{name:"Preview",version:"1.5.0",route:"/preview",description:h.preview},files:{name:"Files",version:"2.0.0",route:"/files",description:h.files},browser:{name:"Browser",version:"1.0.3",route:"/browser",description:h.browser}},u=/* @__PURE__ */d(s,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),w=/* @__PURE__ */d(s,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function v({app:s}){const i=x[s],[h,v]=l(!1),N=m(()=>v(!0),[]),b=o().aboutApp,k=b.title(i.name);if(e(k,N,u),!h)return null;const g=r[i.route],y=c(g)?p(g,{className:"h-9 w-9"}):w,[j,D]=a(b.partOf);/* @__PURE__ */
2
2
  return d(t,{open:!0,onClose:()=>v(!1),title:k,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */f("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
3
3
  /* @__PURE__ */d("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:y}),
4
4
  /* @__PURE__ */d("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:i.name}),
@@ -6,4 +6,4 @@ return d(t,{open:!0,onClose:()=>v(!1),title:k,size:"sm",compact:!0,bodyScroll:!1
6
6
  /* @__PURE__ */d("p",{className:"mt-2 text-xs text-gray-500 leading-relaxed",children:b[s]}),
7
7
  /* @__PURE__ */f("div",{className:"mt-4 pt-3 border-t border-gray-200 w-full",children:[
8
8
  /* @__PURE__ */f("p",{className:"text-2xs text-ink-faint",children:[j,
9
- /* @__PURE__ */d("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),C]}),n&&/* @__PURE__ */d("p",{className:"mt-0.5 text-2xs font-mono text-ink-faintest",children:b.shellVersion(n)})]})]})})}export{v as AboutApp,x as BUILTIN_APP_INFO};
9
+ /* @__PURE__ */d("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),D]}),n&&/* @__PURE__ */d("p",{className:"mt-0.5 text-2xs font-mono text-ink-faintest",children:b.shellVersion(n)})]})]})})}export{v as AboutApp,x as BUILTIN_APP_INFO};
@@ -0,0 +1,29 @@
1
+ import{Segmented as e}from"./chunk-HNIIDDLJ.js";import{toDateKey as t,fromDateKey as n}from"./chunk-3HU63I3K.js";import{calendarNames as r,formatDate as a}from"./chunk-Y3JW2GW5.js";import{LoadingSpinner as o}from"./chunk-R2VKEMZH.js";import{useBrowserLayoutEffect as i}from"./chunk-D65T4H6J.js";import{useShellStrings as s,useShellLocale as l}from"./chunk-DEJIH3ZQ.js";import{useState as d,useRef as c,useId as u,useMemo as h}from"react";import{jsx as m,Fragment as f,jsxs as p}from"react/jsx-runtime";var b=864e5,g={day:32,week:16,month:4},y=44;function w(e){const t="string"==typeof e?n(e.slice(0,10)):null;return t?Math.round(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())/b):null}function x(e){return new Date(e*b).toISOString().slice(0,10)}function v(e){return new Date(e*b)}function k(e){return((e+3)%7+7)%7}function N(e){return e-k(e)}function D(e){const t=v(e);return Math.round(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),1)/b)}function M(e){const t=v(e);return Math.round(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()+1,1)/b)}function C(e){return Math.round(Date.UTC(v(e).getUTCFullYear(),0,1)/b)}function $(e){return Math.round(Date.UTC(v(e).getUTCFullYear()+1,0,1)/b)}var T={day:3,week:7,month:14},U={day:28,week:84,month:182};function j(e,t,n){return(e-t.startDay)*g[n]}function I(e,t,n){return j(e,t,n)+g[n]/2}function P(e,t,n,r){const a=[];let o=e.startDay;if(n(o)!==o){const n=Math.min(r(o),e.endDay);a.push({startDay:o,endDay:n,x:j(o,e,t),width:(n-o)*g[t]}),o=n}for(;o<e.endDay;){const n=Math.min(r(o),e.endDay);a.push({startDay:o,endDay:n,x:j(o,e,t),width:(n-o)*g[t]}),o=n}return a}function S(e,t,n,r){if(null===e&&null===t)return{kind:"none"};if(null===e)return{kind:"milestone",day:t,cx:j(t,n,r)+g[r]/2};const a=null===t?e:Math.min(e,t),o=null===t?e:Math.max(e,t);return{kind:"bar",startDay:a,endDay:o,x:j(a,n,r),width:(o-a+1)*g[r]}}function X(e){return"bar"===e.kind?{inX:e.x,outX:e.x+e.width}:"milestone"===e.kind?{inX:e.cx-9,outX:e.cx+9}:null}function z(e,t,n,r,a=44,o=10){let i;if(n-e>=2*o){const a=e+o;i=[[e,t],[a,t],[a,r],[n,r]]}else{const s=t+(r>=t?1:-1)*a/2,l=e+o,d=n-o;i=[[e,t],[l,t],[l,s],[d,s],[d,r],[n,r]]}return i.filter((e,t)=>0===t||e[0]!==i[t-1][0]||e[1]!==i[t-1][1])}function R(e){return e.map(([e,t],n)=>`${0===n?"M":"L"}${e} ${t}`).join(" ")}function Y(e,t,n=5){return`${e},${t} ${e-n},${t-n} ${e-n},${t+n}`}function H(e,t,n,r){if("move"===e)return{start:null===t?null:t+r,end:null===n?null:n+r};if("start"===e){if(null===t)return{start:t,end:n};const e=t+r;return{start:null===n?e:Math.min(e,n),end:n}}if(null===n)return{start:t,end:n};const a=n+r;return{start:t,end:null===t?a:Math.max(a,t)}}var F=24;function L({rows:n,groups:b=[],dependencies:j=[],scale:L,onScaleChange:W,onRowClick:A,onRowChange:K,readOnly:Q=!1,today:E,isLoading:J=!1,emptyState:O,labelHeader:Z,labelWidth:G=240,className:V=""}){const q=s().gantt,B=l(),_=r(B),ee=!!K&&!Q,[te,ne]=d(null),re=c(!1),ae=c(null),oe=u(),ie=w(E)??w(t(/* @__PURE__ */new Date)),se=h(()=>{const e=/* @__PURE__ */new Map;for(const t of n){const n=w(t.start),r=w(t.end);e.set(t.id,te&&te.id===t.id?H(te.mode,te.start,te.end,te.delta):{start:n,end:r})}return e},[n,te]),le=h(()=>{const e=[ie];for(const t of n){const n=w(t.start),r=w(t.end);null!==n&&e.push(n),null!==r&&e.push(r)}return function(e,t){const n=e.filter(e=>Number.isFinite(e)),r=n.length?Math.min(...n):0,a=n.length?Math.max(...n):0;let o=r-T[t],i=a+1+T[t];const s=U[t]-(i-o);return s>0&&(o-=Math.floor(s/2),i+=Math.ceil(s/2)),"week"===t?(o=N(o),i=N(i-1)+7):"month"===t&&(o=D(o),i=M(i-1)),{startDay:o,endDay:i}}(e,L)},[n,L,ie]),de=h(()=>function(e,t){return"day"===t?{major:P(e,t,D,M),minor:P(e,t,e=>e,e=>e+1)}:"week"===t?{major:P(e,t,D,M),minor:P(e,t,N,e=>N(e)+7)}:{major:P(e,t,C,$),minor:P(e,t,D,M)}}(le,L),[le,L]),ce=function(e,t){return(e.endDay-e.startDay)*g[t]}(le,L),ue=h(()=>function(e,t){const n=new Set(t.map(e=>e.id)),r=/* @__PURE__ */new Map,a=[];for(const t of e)if(null!=t.groupId&&n.has(t.groupId)){const e=r.get(t.groupId)??[];e.push(t),r.set(t.groupId,e)}else a.push(t);const o=a.map(e=>({kind:"row",row:e}));for(const e of t){o.push({kind:"group",group:e});for(const t of r.get(e.id)??[])o.push({kind:"row",row:t})}return o}(n,b),[n,b]),he=h(()=>{const e=/* @__PURE__ */new Map;return ue.forEach((t,n)=>{if("row"!==t.kind)return;const r=se.get(t.row.id);e.set(t.row.id,{shape:S(r.start,r.end,le,L),line:n})}),e},[ue,se,le,L]),me=h(()=>{const e=[];for(const t of j){const n=he.get(t.from),r=he.get(t.to);if(!n||!r)continue;const a=X(n.shape),o=X(r.shape);if(!a||!o)continue;const i=n.line*y+22,s=r.line*y+22,l=z(a.outX,i,o.inX,s);e.push({key:`${t.from}>${t.to}`,d:R(l),head:Y(o.inX,s)})}return e},[j,he]),fe=!J&&(n.length>0||b.length>0);i(()=>{const e=ae.current;if(!e)return;const t=e.clientWidth-G;e.scrollLeft=Math.max(0,I(ie,le,L)-t/4)},[L,fe]);if(J)/* @__PURE__ */return m(o,{size:"sm",padding:"p-4",label:q.loading});if(!fe)/* @__PURE__ */return m(f,{children:O??/* @__PURE__ */m("div",{className:"text-sm text-ink-faint p-4",children:q.empty})});const pe=(e,t,n)=>{K?.(e.id,{start:null===t?null:x(t),end:null===n?null:x(n)})},be=(e,t,n)=>{if(re.current=!1,ee&&0===e.button){e.stopPropagation();try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}ne({id:t.id,mode:n,originX:e.clientX,start:w(t.start),end:w(t.end),delta:0})}},ge=e=>{if(!te)return;const t=function(e,t){const n=Math.round(e/g[t]);return 0===n?0:n}(e.clientX-te.originX,L);t!==te.delta&&ne({...te,delta:t})},ye=e=>{if(te){if(0!==te.delta){const t=H(te.mode,te.start,te.end,te.delta);re.current=!0,pe(e,t.start,t.end)}ne(null)}},we=(e,t)=>{if("Enter"===e.key||" "===e.key)return e.preventDefault(),void A?.(t);if(!ee||"ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;e.preventDefault();const n="ArrowRight"===e.key?1:-1,r=H(e.shiftKey?"end":"move",w(t.start),w(t.end),n);pe(t,r.start,r.end)},xe=e=>{re.current?re.current=!1:A?.(e)},ve=e=>a(x(e),{locale:B}),ke=(e,t)=>{const n=v(e.startDay),r=n.getUTCFullYear(),a=n.getUTCMonth();return"major"===t?"month"===L?String(r):"week"===L?_.shortMonthYear(r,a):_.monthYear(r,a):"month"===L?_.monthsShort[a]:String(n.getUTCDate())},Ne=ue.length*y,De=I(ie,le,L),Me=De>=0&&De<=ce,Ce=de.minor.find(e=>e.startDay<=ie&&ie<e.endDay),$e=Ce?De-Ce.x:0,Te=!!Ce&&$e<=Ce.width/2;/* @__PURE__ */
2
+ return p("div",{className:`flex min-h-0 flex-col ${V}`,children:[
3
+ /* @__PURE__ */p("div",{className:"flex items-center justify-end gap-2 pb-2",children:[
4
+ /* @__PURE__ */m("button",{type:"button",onClick:()=>{const e=ae.current;if(!e)return;const t=e.clientWidth-G;e.scrollTo?.({left:Math.max(0,I(ie,le,L)-t/4),behavior:"smooth"})},className:"min-h-8 rounded-(--radius-control) border border-line bg-surface px-3 text-xs font-medium text-ink hover:bg-row-hover",children:q.today}),W&&/* @__PURE__ */m(e,{size:"sm",label:q.scale,value:L,onChange:W,options:[{value:"day",label:q.day},{value:"week",label:q.week},{value:"month",label:q.month}]})]}),
5
+ /* @__PURE__ */m("div",{ref:ae,"data-gantt-scroller":"",className:"relative min-h-0 flex-1 overflow-auto grid-scroll rounded-(--radius-card) border border-line bg-surface",children:/* @__PURE__ */p("div",{className:"relative",style:{width:G+ce,minHeight:48+Ne},children:[
6
+ /* @__PURE__ */p("div",{className:"sticky top-0 z-20 flex border-b border-line bg-surface",style:{height:48},children:[
7
+ /* @__PURE__ */m("div",{className:"sticky left-0 z-10 flex shrink-0 items-end border-r border-line bg-surface px-3 pb-1 text-xs font-medium text-ink-muted",style:{width:G},children:Z??q.task}),
8
+ /* @__PURE__ */p("div",{className:"relative shrink-0",style:{width:ce},"aria-hidden":!0,children:[de.major.map(e=>/* @__PURE__ */m("div",{className:"absolute top-0 border-l border-line-subtle text-xs font-medium leading-6 text-ink",style:{left:e.x,width:e.width,height:F},children:/* @__PURE__ */m("span",{className:"sticky inline-block whitespace-nowrap px-2",style:{left:G},children:ke(e,"major")})},`M${e.startDay}`)),de.minor.map(e=>/* @__PURE__ */m("div",{"data-gantt-tick":"minor",className:`absolute truncate border-l border-line-subtle text-2xs leading-6 text-ink-faint ${"day"===L?"text-center":"px-1"} ${e.startDay===ie&&"day"===L?"font-semibold text-danger":""}`,style:{left:e.x,width:e.width,top:F,height:F},children:ke(e,"minor")},`m${e.startDay}`)),Me&&Ce&&"day"!==L&&
9
+ /* @__PURE__ */p("div",{className:"pointer-events-none absolute flex items-center text-2xs "+(Te?"":"flex-row-reverse"),style:{left:Te?Ce.x:De-(Ce.width-$e),width:2*(Te?$e:Ce.width-$e),top:F,height:F},children:[Te&&/* @__PURE__ */m("span",{className:"invisible shrink-0 whitespace-nowrap px-1",children:ke(Ce,"minor")}),
10
+ /* @__PURE__ */m("span",{className:"min-w-0 flex-1"}),
11
+ /* @__PURE__ */m("span",{"data-gantt-today-label":"",className:"shrink-0 whitespace-nowrap rounded-(--radius-control) bg-danger px-1 font-medium leading-4 text-on-accent",children:q.today}),
12
+ /* @__PURE__ */m("span",{className:"min-w-0 flex-1"}),Te&&/* @__PURE__ */m("span",{className:"invisible min-w-0 shrink overflow-hidden",children:/* @__PURE__ */m("span",{className:"inline-block whitespace-nowrap px-1",children:ke(Ce,"minor")})})]})]})]}),
13
+ /* @__PURE__ */p("div",{className:"pointer-events-none absolute",style:{left:G,top:48,width:ce,height:Ne},"aria-hidden":!0,children:["day"===L&&de.minor.filter(e=>k(e.startDay)>=5).map(e=>/* @__PURE__ */m("div",{className:"absolute inset-y-0 bg-surface-sunken",style:{left:e.x,width:e.width}},`w${e.startDay}`)),de.minor.map(e=>/* @__PURE__ */m("div",{className:"absolute inset-y-0 w-px bg-line-subtle",style:{left:e.x}},`g${e.startDay}`))]}),
14
+ /* @__PURE__ */m("div",{role:"list",children:ue.map(e=>{if("group"===e.kind)/* @__PURE__ */
15
+ return p("div",{role:"listitem",className:"flex",style:{height:y},children:[
16
+ /* @__PURE__ */m("div",{className:"sticky left-0 z-10 flex shrink-0 items-center border-r border-b border-line bg-surface-sunken px-3 text-sm font-semibold text-ink",style:{width:G},children:/* @__PURE__ */m("span",{className:"truncate",children:e.group.label})}),
17
+ /* @__PURE__ */m("div",{className:"shrink-0 border-b border-line-subtle",style:{width:ce}})]},`g:${e.group.id}`);const t=e.row,n=he.get(t.id).shape,r=function(e,t){return e.done?{className:"border text-ink-muted",style:{background:"var(--status-neutral-soft)",borderColor:"var(--status-neutral-line)"}}:e.tone?{className:"text-on-accent",style:{background:`var(--status-${e.tone}-solid)`}}:{className:t?"bg-identity-3":"bg-accent-fill text-on-accent"}}(t,"milestone"===n.kind),a=te?.id===t.id,o=t.done?`, ${q.done}`:"";/* @__PURE__ */
18
+ return p("div",{role:"listitem",className:"flex",style:{height:y},"data-gantt-row":t.id,children:[
19
+ /* @__PURE__ */m("div",{className:"sticky left-0 z-10 flex shrink-0 border-r border-b border-line-subtle bg-surface",style:{width:G},children:/* @__PURE__ */m("button",{type:"button",tabIndex:"none"===n.kind&&A?0:-1,onClick:()=>A?.(t),className:`flex w-full min-w-0 items-center px-3 text-left text-sm hover:bg-row-hover ${t.done?"text-ink-faint line-through":"text-ink"} ${A?"cursor-pointer":"cursor-default"}`,children:/* @__PURE__ */m("span",{className:"truncate",children:t.label})})}),
20
+ /* @__PURE__ */p("div",{className:"relative shrink-0 border-b border-line-subtle",style:{width:ce},children:["bar"===n.kind&&/* @__PURE__ */p(f,{children:[
21
+ /* @__PURE__ */m("div",{role:"button",tabIndex:0,"data-gantt-bar":t.id,"aria-label":q.barName(t.label,ve(n.startDay),ve(n.endDay))+o,"aria-describedby":ee?oe:void 0,onKeyDown:e=>we(e,t),onClick:()=>xe(t),onPointerDown:e=>be(e,t,"move"),onPointerMove:ge,onPointerUp:()=>ye(t),onPointerCancel:()=>ne(null),className:`group/bar absolute rounded-(--radius-control) shadow-sm rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] ${r.className} ${ee?a?"cursor-grabbing":"cursor-grab":A?"cursor-pointer":""} ${a?"opacity-80":""}`,style:{...r.style,left:n.x,width:n.width,top:10,height:24,touchAction:ee?"none":void 0},children:ee&&/* @__PURE__ */p(f,{children:[
22
+ /* @__PURE__ */m("span",{"aria-hidden":!0,"data-gantt-handle":"start",className:"absolute inset-y-0 left-0 w-2 cursor-ew-resize rounded-l-(--radius-control) group-hover/bar:bg-scrim-soft",onPointerDown:e=>be(e,t,"start")}),
23
+ /* @__PURE__ */m("span",{"aria-hidden":!0,"data-gantt-handle":"end",className:"absolute inset-y-0 right-0 w-2 cursor-ew-resize rounded-r-(--radius-control) group-hover/bar:bg-scrim-soft",onPointerDown:e=>be(e,t,"end")})]})}),
24
+ /* @__PURE__ */m("span",{"aria-hidden":!0,className:"pointer-events-none absolute whitespace-nowrap text-xs leading-none text-ink-muted",style:{left:n.x+n.width+16,top:16},children:t.label})]}),"milestone"===n.kind&&/* @__PURE__ */p(f,{children:[
25
+ /* @__PURE__ */m("div",{role:"button",tabIndex:0,"data-gantt-bar":t.id,"data-gantt-milestone":"","aria-label":q.milestoneName(t.label,ve(n.day))+o,"aria-describedby":ee?oe:void 0,onKeyDown:e=>we(e,t),onClick:()=>xe(t),onPointerDown:e=>be(e,t,"move"),onPointerMove:ge,onPointerUp:()=>ye(t),onPointerCancel:()=>ne(null),className:`absolute rotate-45 rounded-sm shadow-sm rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] ${r.className} ${ee?a?"cursor-grabbing":"cursor-grab":A?"cursor-pointer":""}`,style:{...r.style,left:n.cx-9/Math.SQRT2,top:22-9/Math.SQRT2,width:18/Math.SQRT2,height:18/Math.SQRT2,touchAction:ee?"none":void 0}}),
26
+ /* @__PURE__ */m("span",{"aria-hidden":!0,className:"pointer-events-none absolute whitespace-nowrap text-xs leading-none text-ink-muted",style:{left:n.cx+9+16,top:16},children:t.label})]})]})]},t.id)})}),
27
+ /* @__PURE__ */m("svg",{className:"pointer-events-none absolute overflow-visible text-ink-faint",style:{left:G,top:48,width:ce,height:Ne},width:ce,height:Ne,"aria-hidden":!0,children:me.map(e=>/* @__PURE__ */p("g",{"data-gantt-arrow":e.key,children:[
28
+ /* @__PURE__ */m("path",{d:e.d,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinejoin:"round"}),
29
+ /* @__PURE__ */m("polygon",{points:e.head,fill:"currentColor"})]},e.key))}),Me&&/* @__PURE__ */m("div",{"data-gantt-today":"",className:"pointer-events-none absolute z-0 w-0.5 -translate-x-1/2 bg-danger",style:{left:G+De,top:48,height:Ne},"aria-hidden":!0}),ee&&/* @__PURE__ */m("span",{id:oe,hidden:!0,children:q.moveHint})]})})]})}export{L as Gantt};
@@ -0,0 +1 @@
1
+ var r="12.38.0",a=r;export{a as APP_VERSION,r as VERSION};
@@ -31,10 +31,13 @@ type GanttScale = 'day' | 'week' | 'month';
31
31
  * - A row with a start and an end draws a bar across both days, inclusive. A
32
32
  * row with only an end draws a diamond milestone on that day; a row with no
33
33
  * dates draws nothing on the chart but keeps its label.
34
- * - Done rows draw in a muted tone; a row's `tone` colours its bar otherwise.
34
+ * - Done rows draw in a muted tone; a row's `tone` colours its bar or its
35
+ * diamond otherwise. With no tone a bar is the accent and a milestone is teal.
35
36
  * - Each finish-to-start dependency draws an elbow arrow from the
36
37
  * predecessor's end to the successor's start.
37
- * - A vertical line marks today.
38
+ * - A vertical line marks today, and the chart opens scrolled to it: when it is
39
+ * first drawn (after `isLoading`, if it was mounted loading) and on a new
40
+ * scale, never on a later change of rows.
38
41
  * - With `onRowChange` and without `readOnly`, a bar can be dragged to move it
39
42
  * or by either end to resize it, snapping to whole days; the change is
40
43
  * reported once, on release. From the keyboard, a focused bar moves a day
@@ -58,7 +61,8 @@ interface GanttRow {
58
61
  groupId?: string | null;
59
62
  /** Done rows draw in a muted tone, whatever their `tone`. */
60
63
  done?: boolean;
61
- /** The bar's colour. Default: the accent. */
64
+ /** The bar's or the milestone's colour. Default: the accent for a bar, the
65
+ * kit's teal for a milestone. */
62
66
  tone?: GanttTone;
63
67
  }
64
68
  interface GanttGroup {
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Gantt as default}from"../chunk-3W3FXX42.js";import"../chunk-3HU63I3K.js";import"../chunk-HNIIDDLJ.js";import"../chunk-EFKJLUYP.js";import"../chunk-Y3JW2GW5.js";import"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";import"../chunk-R2VKEMZH.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{Gantt as default}from"../chunk-VNROPHRY.js";import"../chunk-HNIIDDLJ.js";import"../chunk-EFKJLUYP.js";import"../chunk-3HU63I3K.js";import"../chunk-Y3JW2GW5.js";import"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";import"../chunk-R2VKEMZH.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{BrandAssetEditor as default}from"../chunk-QO7UHTUE.js";import"../chunk-UHQBHSWL.js";import"../chunk-6KBDNYRW.js";import"../chunk-YMUHIJDJ.js";import"../chunk-25RR3GQW.js";import"../chunk-MI67DI3H.js";import"../chunk-HNIIDDLJ.js";import"../chunk-EFKJLUYP.js";import"../chunk-CCPUNN4F.js";import"../chunk-ROKUEMAK.js";import"../chunk-ITEOA45V.js";import"../chunk-JMGDGNM7.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{BrandAssetEditor as default}from"../chunk-QO7UHTUE.js";import"../chunk-UHQBHSWL.js";import"../chunk-6KBDNYRW.js";import"../chunk-YMUHIJDJ.js";import"../chunk-MI67DI3H.js";import"../chunk-25RR3GQW.js";import"../chunk-HNIIDDLJ.js";import"../chunk-EFKJLUYP.js";import"../chunk-CCPUNN4F.js";import"../chunk-ROKUEMAK.js";import"../chunk-ITEOA45V.js";import"../chunk-JMGDGNM7.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary as default,readMediaFileDrag}from"../chunk-JZY2RBPX.js";import"../chunk-FCWBO7I3.js";import"../chunk-FXG7TOZN.js";import"../chunk-HWJQLLJA.js";import"../chunk-CGUMJZUB.js";import"../chunk-IC72MGON.js";import"../chunk-3TCGXYUC.js";import"../chunk-SACUSHVN.js";import"../chunk-3RX5KCUH.js";import"../chunk-YM7AWNMY.js";import"../chunk-VLKDWKVR.js";import"../chunk-OLFYNMTD.js";import"../chunk-LACL4MAR.js";import"../chunk-3YCU6V3U.js";import"../chunk-JWUNK2PW.js";import"../chunk-QIPO4EVJ.js";import"../chunk-KITSIQCV.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";import"../chunk-BNPJHOAC.js";import"../chunk-ZDDMFFQK.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-HNIIDDLJ.js";import"../chunk-EFKJLUYP.js";import"../chunk-HTHNDX32.js";import"../chunk-CGZBDI6C.js";import"../chunk-QMBMK6PP.js";import"../chunk-ID35S5Y6.js";import"../chunk-PT4GMPUB.js";import"../chunk-3DSGJIC7.js";import"../chunk-UZFFSZFI.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-CCPUNN4F.js";import"../chunk-ROKUEMAK.js";import"../chunk-ITEOA45V.js";import"../chunk-EIFNESXS.js";import"../chunk-PR6FNBKR.js";import"../chunk-RIG5FEVS.js";import"../chunk-NDWX5Z4D.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";import"../chunk-ZGIAMYTI.js";import"../chunk-F3ZOO23R.js";import"../chunk-UGTRSRIW.js";import"../chunk-DWGYC7OD.js";import"../chunk-JMGDGNM7.js";import"../chunk-GOAFMGUI.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-TMSSR5UH.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary as default,readMediaFileDrag}from"../chunk-JTMR3EH3.js";import"../chunk-FCWBO7I3.js";import"../chunk-FXG7TOZN.js";import"../chunk-HWJQLLJA.js";import"../chunk-CGUMJZUB.js";import"../chunk-IC72MGON.js";import"../chunk-3TCGXYUC.js";import"../chunk-SACUSHVN.js";import"../chunk-3RX5KCUH.js";import"../chunk-YM7AWNMY.js";import"../chunk-3YCU6V3U.js";import"../chunk-JWUNK2PW.js";import"../chunk-QIPO4EVJ.js";import"../chunk-KITSIQCV.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";import"../chunk-BNPJHOAC.js";import"../chunk-ZDDMFFQK.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-VLKDWKVR.js";import"../chunk-OLFYNMTD.js";import"../chunk-LACL4MAR.js";import"../chunk-HNIIDDLJ.js";import"../chunk-EFKJLUYP.js";import"../chunk-HTHNDX32.js";import"../chunk-CGZBDI6C.js";import"../chunk-QMBMK6PP.js";import"../chunk-ID35S5Y6.js";import"../chunk-PT4GMPUB.js";import"../chunk-3DSGJIC7.js";import"../chunk-UZFFSZFI.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-CCPUNN4F.js";import"../chunk-ROKUEMAK.js";import"../chunk-ITEOA45V.js";import"../chunk-EIFNESXS.js";import"../chunk-PR6FNBKR.js";import"../chunk-RIG5FEVS.js";import"../chunk-NDWX5Z4D.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";import"../chunk-ZGIAMYTI.js";import"../chunk-F3ZOO23R.js";import"../chunk-UGTRSRIW.js";import"../chunk-DWGYC7OD.js";import"../chunk-JMGDGNM7.js";import"../chunk-GOAFMGUI.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-TMSSR5UH.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-HNBMBC77.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{Icon}from"../chunk-ISVODSRP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";
2
+ export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-HNBMBC77.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{Icon}from"../chunk-ISVODSRP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";