efficient-shell 13.6.1 → 13.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/dist/{Browser-T2K6P3YU.js → Browser-ATL2PGT2.js} +16 -16
- package/dist/Files-RHEICXXW.js +141 -0
- package/dist/{Notepad-2ULPEDIU.js → Notepad-QL5GJZNS.js} +7 -7
- package/dist/PomodoroTimer-2MFWO3KK.js +91 -0
- package/dist/{Preview-ZBTPZRMP.js → Preview-PP3XS7E7.js} +41 -41
- package/dist/{TimelineTrack-DfU_9eo6.d.ts → TimelineTrack-DCTqfW6Z.d.ts} +13 -0
- package/dist/Weather-377NKPA5.js +60 -0
- package/dist/WorldClock-M6AMXQY2.js +32 -0
- package/dist/ai/index.js +30 -30
- package/dist/apps/index.js +1 -1
- package/dist/bin/browser-check.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/charts/SpecChart.js +1 -1
- package/dist/{chunk-GXVWI3U5.js → chunk-5CFERCYW.js} +1 -1
- package/dist/{chunk-X4EJUQ6I.js → chunk-AEOCSYKL.js} +1 -1
- package/dist/chunk-AJMQ5SHI.js +1 -0
- package/dist/{chunk-PDIGCTZD.js → chunk-BKZOTBDP.js} +19 -19
- package/dist/{chunk-BRZ55H2G.js → chunk-F3G7S5HO.js} +50 -50
- package/dist/chunk-H7CIK74N.js +15 -0
- package/dist/chunk-HYHZEQMG.js +1 -0
- package/dist/{chunk-RI5QSLX3.js → chunk-IOZSLFGR.js} +1 -1
- package/dist/{chunk-H22D2PYM.js → chunk-LOFFHXZ4.js} +9 -9
- package/dist/chunk-NHKT5IH6.js +1 -0
- package/dist/chunk-OAKXWYZD.js +2 -0
- package/dist/{chunk-S6UJKSF3.js → chunk-OJI4ROSD.js} +1 -1
- package/dist/{chunk-7I5GD5IB.js → chunk-RK6X56ZC.js} +2 -2
- package/dist/{chunk-3MIIXPV6.js → chunk-SC3AQXJY.js} +8 -8
- package/dist/chunk-YJGA4LPG.js +2 -0
- package/dist/{chunk-ENCZRE3H.js → chunk-Z62HFEFS.js} +7 -7
- package/dist/{chunk-77HMTXDR.js → chunk-ZJ34FNRC.js} +1 -1
- package/dist/data/Gantt.js +1 -1
- package/dist/format/index.d.ts +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/Calendar.js +1 -1
- package/dist/forms/DatePicker.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +665 -665
- package/dist/shell/MilestoneTimeline.d.ts +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/ProductionTimeline.d.ts +23 -9
- package/dist/shell/ProductionTimeline.js +1 -1
- package/dist/shell/TimeAgo.js +1 -1
- package/dist/shell/TimelineTrack.d.ts +1 -1
- package/dist/shell/TimelineTrack.js +1 -1
- package/dist/shell/timelineDates.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.js +1 -1
- package/dist/utils/date.d.ts +44 -5
- package/dist/utils/date.js +1 -1
- package/dist/utils/format.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Files-ZFH4CV3R.js +0 -141
- package/dist/PomodoroTimer-57XARJRF.js +0 -91
- package/dist/Weather-Y4TMYOQB.js +0 -60
- package/dist/WorldClock-FY3UCIAW.js +0 -32
- package/dist/chunk-7K73G35Z.js +0 -2
- package/dist/chunk-COHFFGFE.js +0 -2
- package/dist/chunk-ECTLJTOE.js +0 -1
- package/dist/chunk-FBDZGO3V.js +0 -1
- package/dist/chunk-R3BLTWKE.js +0 -15
- package/dist/chunk-ZPJTLNKU.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{knownZone as o,formatTime as t}from"./chunk-NHKT5IH6.js";function r(r,a,e=!1){if(!r||!o(r))return{time:"",ampm:""};const n=e?{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}:{hour:"numeric",minute:"2-digit",hour12:!0},i=t(a.toISOString(),{timeZone:r,locale:"en-US",clock:n});if(e)return{time:i,ampm:""};const[l,m=""]=i.split(/\s+/);return{time:l,ampm:m.toUpperCase()}}var a={0:["Clear Sky","☀️","🌙","from-sky-400 to-blue-500","from-indigo-900 to-slate-950"],1:["Mainly Clear","🌤️","🌙","from-sky-400 to-blue-500","from-indigo-900 to-slate-950"],2:["Partly Cloudy","⛅","☁️","from-sky-400 to-blue-400","from-indigo-800 to-slate-900"],3:["Overcast","☁️","☁️","from-gray-400 to-gray-500","from-gray-700 to-slate-900"],45:["Foggy","🌫️","🌫️","from-gray-400 to-gray-500","from-gray-700 to-slate-800"],48:["Foggy","🌫️","🌫️","from-gray-400 to-gray-500","from-gray-700 to-slate-800"],51:["Light Drizzle","🌦️","🌧️","from-gray-400 to-blue-500","from-gray-700 to-indigo-900"],53:["Drizzle","🌧️","🌧️","from-gray-500 to-blue-600","from-gray-700 to-indigo-900"],55:["Heavy Drizzle","🌧️","🌧️","from-gray-500 to-blue-600","from-gray-700 to-indigo-900"],61:["Light Rain","🌦️","🌧️","from-gray-400 to-blue-500","from-gray-700 to-indigo-900"],63:["Rain","🌧️","🌧️","from-gray-500 to-blue-600","from-gray-700 to-indigo-900"],65:["Heavy Rain","🌧️","🌧️","from-gray-600 to-blue-700","from-gray-700 to-indigo-950"],71:["Light Snow","🌨️","🌨️","from-blue-200 to-blue-400","from-blue-800 to-slate-900"],73:["Snow","❄️","❄️","from-blue-300 to-blue-500","from-blue-800 to-slate-900"],75:["Heavy Snow","❄️","❄️","from-blue-400 to-blue-600","from-blue-800 to-slate-900"],80:["Rain Showers","🌧️","🌧️","from-gray-500 to-blue-600","from-gray-700 to-indigo-900"],82:["Heavy Showers","🌧️","🌧️","from-gray-600 to-blue-700","from-gray-700 to-indigo-950"],95:["Thunderstorm","⛈️","⛈️","from-gray-700 to-indigo-800","from-gray-800 to-indigo-950"],96:["Thunderstorm","⛈️","⛈️","from-gray-700 to-indigo-800","from-gray-800 to-indigo-950"],99:["Thunderstorm","⛈️","⛈️","from-gray-700 to-indigo-900","from-gray-800 to-indigo-950"]},e=(o,t=!0)=>{const r=a[o]||["Unknown","❓","❓","from-gray-400 to-gray-500","from-gray-700 to-slate-800"];return[r[0],t?r[1]:r[2],t?r[3]:r[4]]},n={Sydney:{lat:-33.8688,lon:151.2093,tz:"Australia/Sydney"},Melbourne:{lat:-37.8136,lon:144.9631,tz:"Australia/Melbourne"},Auckland:{lat:-36.8485,lon:174.7633,tz:"Pacific/Auckland"},Tokyo:{lat:35.6762,lon:139.6503,tz:"Asia/Tokyo"},Shanghai:{lat:31.2304,lon:121.4737,tz:"Asia/Shanghai"},"Hong Kong":{lat:22.3193,lon:114.1694,tz:"Asia/Hong_Kong"},Singapore:{lat:1.3521,lon:103.8198,tz:"Asia/Singapore"},Bangkok:{lat:13.7563,lon:100.5018,tz:"Asia/Bangkok"},Mumbai:{lat:19.076,lon:72.8777,tz:"Asia/Kolkata"},Dubai:{lat:25.2048,lon:55.2708,tz:"Asia/Dubai"},Berlin:{lat:52.52,lon:13.405,tz:"Europe/Berlin"},Paris:{lat:48.8566,lon:2.3522,tz:"Europe/Paris"},London:{lat:51.5074,lon:-.1278,tz:"Europe/London"},"New York":{lat:40.7128,lon:-74.006,tz:"America/New_York"},Miami:{lat:25.7617,lon:-80.1918,tz:"America/New_York"},Toronto:{lat:43.6532,lon:-79.3832,tz:"America/Toronto"},Chicago:{lat:41.8781,lon:-87.6298,tz:"America/Chicago"},"Los Angeles":{lat:34.0522,lon:-118.2437,tz:"America/Los_Angeles"}},i="weather_local_cache";function l(){try{return JSON.parse(localStorage.getItem(i)||"{}")}catch{return{}}}async function m(o,t=!1){const r=n[o];if(!r)return null;if(!t){const t=l()[o];if(t&&Date.now()-t.ts<18e5)return t.data}try{const t=await fetch(`https://api.open-meteo.com/v1/forecast?latitude=${r.lat}&longitude=${r.lon}¤t=temperature_2m,weather_code,is_day&daily=temperature_2m_max,temperature_2m_min&forecast_days=1&timezone=auto`),a=await t.json(),e={city:o,temp:Math.round(a.current.temperature_2m),code:a.current.weather_code,high:Math.round(a.daily.temperature_2m_max[0]),low:Math.round(a.daily.temperature_2m_min[0]),isDay:1===a.current.is_day,timezone:a.timezone||""},n=l();return n[o]={data:e,ts:Date.now()},function(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}}(n),e}catch{return null}}var g=o=>Math.round(9*o/5+32);export{n as AVAILABLE_CITIES,r as cityClock,m as fetchCityWeather,e as getCondition,g as toFahrenheit};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{EmptyValue as r}from"./chunk-HNQPF5QZ.js";import{toInstant as e,timeAgo as t}from"./chunk-
|
|
1
|
+
import{EmptyValue as r}from"./chunk-HNQPF5QZ.js";import{toInstant as e,timeAgo as t}from"./chunk-OJI4ROSD.js";import{formatDateTime as o}from"./chunk-NHKT5IH6.js";import{useShellLocale as c}from"./chunk-DEJIH3ZQ.js";import{jsx as i}from"react/jsx-runtime";function m({value:m,precise:n,locale:s,className:l}){const a=c(),p=e(m);if(!p)/* @__PURE__ */return i(r,{});const u="string"==typeof m?m:p.toISOString();/* @__PURE__ */
|
|
2
2
|
return i("time",{dateTime:u,title:o(u,{locale:s??a}),className:l,children:t(p,{precise:n,locale:s??a})})}export{m as TimeAgo};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{calendarNames as e,firstDayOfWeek as r,userToday as t}from"./chunk-
|
|
1
|
+
import{calendarNames as e,firstDayOfWeek as r,userToday as t}from"./chunk-NHKT5IH6.js";import{fromDateKey as a,toMonthKey as n,toDateKey as o,fromMonthKey as l,addMonths as i}from"./chunk-JRQMX4PK.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{useBrowserValue as c}from"./chunk-D65T4H6J.js";import{useShellStrings as u,useShellLocale as g}from"./chunk-DEJIH3ZQ.js";import{useMemo as d,useState as h,useRef as m,useEffect as f}from"react";import{jsxs as b,jsx as y,Fragment as v}from"react/jsx-runtime";var p="grid grid-cols-[repeat(7,minmax(0,40px))] sm:grid-cols-[repeat(7,minmax(0,32px))] justify-center gap-1";var x=()=>t();var w=(e,r)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()+r);function N({value:t,endValue:N,mode:k="single",onSelect:D,min:M,max:Y,month:F,defaultMonth:j,onMonthChange:A,weekStartsOn:C,quickJump:S=!0,markedDates:P,readOnly:H=!1,"aria-label":K,className:q=""}){const I=d(()=>new Set(P??[]),[P]),J=a(t),E=c(x,null),O=a(E),R=u().calendar,$=g(),Q=e($),T=c(()=>r($),0),U=C??T,V=()=>{if(!O)return null;const e=n(O);return M&&e<M.slice(0,7)?M.slice(0,7):Y&&e>Y.slice(0,7)?Y.slice(0,7):e},[W,B]=h(()=>j||(J?n(J):V())),L=F??W??V(),X=null===L?null:function(e,r){return l(e)??r}(L,O),[Z,z]=h(()=>t??E),G=m(null),_=m(!1),[ee,re]=h("days"),te=d(()=>X?function(e,r){const t=new Date(e.getFullYear(),e.getMonth(),1),a=(t.getDay()-r+7)%7,n=new Date(t.getFullYear(),t.getMonth(),1-a);return Array.from({length:42},(e,r)=>new Date(n.getFullYear(),n.getMonth(),n.getDate()+r))}(X,U):[],[L,U]),ae=e=>!!M&&e<M||!!Y&&e>Y,ne=Z??E,oe=te.some(e=>o(e)===ne),le=X?te.find(e=>e.getMonth()===X.getMonth())??te[0]:null,ie=oe&&ne?ne:le?o(le):"";if(f(()=>{_.current&&(_.current=!1,G.current?.querySelector('[data-active="true"]')?.focus())},[ie,L]),!X)/* @__PURE__ */
|
|
2
2
|
return b("div",{className:q,"aria-hidden":"true","data-calendar-pending":"",children:[
|
|
3
3
|
/* @__PURE__ */y("div",{className:"mb-2 h-6"}),
|
|
4
|
-
/* @__PURE__ */y("div",{className:"space-y-1",children:Array.from({length:7},(e,r)=>/* @__PURE__ */y("div",0===r?{className:"py-1 text-xs",children:" "}:{className:p,children:/* @__PURE__ */y("span",{className:"aspect-square"})},r))})]});const se=e=>"years"===ee?new Date(
|
|
4
|
+
/* @__PURE__ */y("div",{className:"space-y-1",children:Array.from({length:7},(e,r)=>/* @__PURE__ */y("div",0===r?{className:"py-1 text-xs",children:" "}:{className:p,children:/* @__PURE__ */y("span",{className:"aspect-square"})},r))})]});const se=e=>"years"===ee?new Date(X.getFullYear()+12*e,X.getMonth(),1):"months"===ee?new Date(X.getFullYear()+e,X.getMonth(),1):i(X,e),ce=e=>{const r=n(e);void 0===F&&B(r),A?.(r)},ue=K??Q.monthYear(X.getFullYear(),X.getMonth());/* @__PURE__ */
|
|
5
5
|
return b("div",{className:q,children:[
|
|
6
6
|
/* @__PURE__ */b("div",{className:"mb-2 flex items-center justify-between px-1",children:[
|
|
7
7
|
/* @__PURE__ */y("button",{type:"button","aria-label":"years"===ee?R.previousYears:"months"===ee?R.previousYear:R.previousMonth,onClick:()=>ce(se(-1)),className:"rounded-full p-1 text-gray-600 hover:bg-gray-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */y(s,{name:"chevron-left",className:"h-4 w-4",strokeWidth:"2","aria-hidden":"true"})}),
|
|
8
|
-
/* @__PURE__ */y("div",{"aria-live":"polite",className:"flex items-center gap-1 text-sm font-semibold text-gray-800",children:S?/* @__PURE__ */b(v,{children:["years"!==ee&&/* @__PURE__ */y("button",{type:"button","aria-label":R.chooseMonth(
|
|
9
|
-
/* @__PURE__ */y("button",{type:"button","aria-label":R.chooseYear(
|
|
10
|
-
/* @__PURE__ */y("button",{type:"button","aria-label":"years"===ee?R.nextYears:"months"===ee?R.nextYear:R.nextMonth,onClick:()=>ce(se(1)),className:"rounded-full p-1 text-gray-600 hover:bg-gray-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */y(s,{name:"chevron-right",className:"h-4 w-4",strokeWidth:"2","aria-hidden":"true"})})]}),"months"===ee&&/* @__PURE__ */y("div",{role:"group","aria-label":R.monthPanel,className:"grid grid-cols-3 gap-1 text-center text-sm",children
|
|
11
|
-
/* @__PURE__ */b("div",{ref:G,role:"grid","aria-label":ue,className:"space-y-1","aria-readonly":
|
|
12
|
-
/* @__PURE__ */y("div",{role:"row",className:`${p} text-center text-xs font-medium text-ink-faint`,children:Array.from({length:7},(e,r)=>(r+
|
|
13
|
-
/* @__PURE__ */y("div",{role:"columnheader","aria-label"
|
|
14
|
-
return y("div",{role:"gridcell","aria-selected":n,"aria-label":
|
|
8
|
+
/* @__PURE__ */y("div",{"aria-live":"polite",className:"flex items-center gap-1 text-sm font-semibold text-gray-800",children:S?/* @__PURE__ */b(v,{children:["years"!==ee&&/* @__PURE__ */y("button",{type:"button","aria-label":R.chooseMonth(Q.months[X.getMonth()]),onClick:()=>re(e=>"months"===e?"days":"months"),className:"rounded-md px-2 py-0.5 transition-colors hover:bg-gray-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:Q.months[X.getMonth()]}),
|
|
9
|
+
/* @__PURE__ */y("button",{type:"button","aria-label":R.chooseYear(X.getFullYear()),onClick:()=>re(e=>"years"===e?"days":"years"),className:"rounded-md px-2 py-0.5 transition-colors hover:bg-gray-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:X.getFullYear()})]}):/* @__PURE__ */y("span",{children:Q.monthYear(X.getFullYear(),X.getMonth())})}),
|
|
10
|
+
/* @__PURE__ */y("button",{type:"button","aria-label":"years"===ee?R.nextYears:"months"===ee?R.nextYear:R.nextMonth,onClick:()=>ce(se(1)),className:"rounded-full p-1 text-gray-600 hover:bg-gray-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */y(s,{name:"chevron-right",className:"h-4 w-4",strokeWidth:"2","aria-hidden":"true"})})]}),"months"===ee&&/* @__PURE__ */y("div",{role:"group","aria-label":R.monthPanel,className:"grid grid-cols-3 gap-1 text-center text-sm",children:Q.monthsShort.map((e,r)=>/* @__PURE__ */y("button",{type:"button","aria-pressed":r===X.getMonth(),onClick:()=>{ce(new Date(X.getFullYear(),r,1)),re("days")},className:["rounded-md py-4 transition-colors rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",r===X.getMonth()?"bg-blue-600 font-semibold text-white":O&&r===O.getMonth()&&X.getFullYear()===O.getFullYear()?"font-medium text-blue-600 hover:bg-gray-100":"text-gray-700 hover:bg-gray-100"].join(" "),children:e},e))}),"years"===ee&&/* @__PURE__ */y("div",{role:"group","aria-label":R.yearPanel,className:"grid grid-cols-3 gap-1 text-center text-sm",children:Array.from({length:12},(e,r)=>{return t=X.getFullYear(),12*Math.floor(t/12)+r;var t}).map(e=>/* @__PURE__ */y("button",{type:"button","aria-pressed":e===X.getFullYear(),onClick:()=>{ce(new Date(e,X.getMonth(),1)),re("months")},className:["rounded-md py-4 transition-colors rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",e===X.getFullYear()?"bg-blue-600 font-semibold text-white":e===O?.getFullYear()?"font-medium text-blue-600 hover:bg-gray-100":"text-gray-700 hover:bg-gray-100"].join(" "),children:e},e))}),
|
|
11
|
+
/* @__PURE__ */b("div",{ref:G,role:"grid","aria-label":ue,className:"space-y-1","aria-readonly":H||void 0,onKeyDown:e=>{const r=a(ie)??O??X,t={ArrowLeft:()=>w(r,-1),ArrowRight:()=>w(r,1),ArrowUp:()=>w(r,-7),ArrowDown:()=>w(r,7),Home:()=>w(r,-(r.getDay()-U+7)%7),End:()=>w(r,6-(r.getDay()-U+7)%7),PageUp:()=>i(r,e.shiftKey?-12:-1),PageDown:()=>i(r,e.shiftKey?12:1)};if(t[e.key])return e.preventDefault(),l=t[e.key](),_.current=!0,z(o(l)),void(n(l)!==L&&ce(l));var l;"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),H||ae(ie)||D(ie))},hidden:"days"!==ee,children:[
|
|
12
|
+
/* @__PURE__ */y("div",{role:"row",className:`${p} text-center text-xs font-medium text-ink-faint`,children:Array.from({length:7},(e,r)=>(r+U)%7).map(e=>
|
|
13
|
+
/* @__PURE__ */y("div",{role:"columnheader","aria-label":Q.weekdays[e],className:"py-1",children:/* @__PURE__ */y("abbr",{title:Q.weekdays[e],className:"no-underline",children:Q.weekdaysShort[e]})},e))}),Array.from({length:6},(e,r)=>/* @__PURE__ */y("div",{role:"row",className:`${p} text-center text-sm`,children:te.slice(7*r,7*r+7).map(e=>{const r=o(e),a=e.getMonth()!==X.getMonth(),n=r===t||"range"===k&&r===N,l=(e=>!("range"!==k||!t||!N)&&e>t&&e<N)(r),i=ae(r),s=Q.longDate(e.getFullYear(),e.getMonth(),e.getDate()),c=e=>["relative w-full aspect-square rounded-md transition-colors",e?"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]":"",i?"cursor-not-allowed text-gray-300":n?"bg-accent-fill font-semibold text-on-accent":l?"bg-accent-tint-strong text-blue-800":a?"text-ink-faint"+(e?" hover:bg-gray-100":""):"text-ink"+(e?" hover:bg-gray-100":""),r!==E||n?"":"font-semibold text-blue-600"].filter(Boolean).join(" "),u=I.has(r)&&/* @__PURE__ */y("span",{"data-marked":"","aria-hidden":"true",className:"absolute bottom-1 left-1/2 h-1 w-1 -translate-x-1/2 rounded-full "+(n?"bg-surface":a?"bg-gray-400":"bg-blue-500")});/* @__PURE__ */
|
|
14
|
+
return y("div",{role:"gridcell","aria-selected":n,"aria-label":H?s:void 0,children:H?/* @__PURE__ */b("span",{"aria-hidden":"true",className:`grid place-items-center ${c(!1)}`,children:[e.getDate(),u]}):/* @__PURE__ */b("button",{type:"button","data-active":r===ie,tabIndex:r===ie?0:-1,disabled:i,"aria-label":s,"aria-current":r===E?"date":void 0,onClick:()=>{z(r),D(r)},className:c(!0),children:[e.getDate(),u]})},r)})},r))]})]})}export{N as Calendar};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EMPTY_VALUE as e}from"./chunk-36BRD5J3.js";import{fromDateKey as t,DAY_MS as n}from"./chunk-JRQMX4PK.js";import{pad2 as r}from"./chunk-LF27WIN2.js";var o=[{key:"DD/MM/YYYY",example:"24/04/2026"},{key:"MM/DD/YYYY",example:"04/24/2026"},{key:"YYYY-MM-DD",example:"2026-04-24"},{key:"DD-MM-YYYY",example:"24-04-2026"},{key:"MM-DD-YYYY",example:"04-24-2026"},{key:"DD.MM.YYYY",example:"24.04.2026"},{key:"YYYY.MM.DD",example:"2026.04.24"},{key:"YYYY/MM/DD",example:"2026/04/24"},{key:"DD/MM/YY",example:"24/04/26"},{key:"MM/DD/YY",example:"04/24/26"},{key:"DD/MMM/YYYY",example:"24/Apr/2026"},{key:"DD/MMM/YY",example:"24/Apr/26"},{key:"DD MMM YYYY",example:"24 Apr 2026"},{key:"MMM DD, YYYY",example:"Apr 24, 2026"},{key:"DD MMMM YYYY",example:"24 April 2026"},{key:"MMMM DD, YYYY",example:"April 24, 2026"}],a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],u=["January","February","March","April","May","June","July","August","September","October","November","December"];function i(e){return a[parseInt(e,10)-1]??e}function m(e){return u[parseInt(e,10)-1]??e}function c(){if("undefined"==typeof window)return"DD/MM/YYYY";try{return localStorage.getItem("user_date_format")||"DD/MM/YYYY"}catch{return"DD/MM/YYYY"}}function l(e){localStorage.setItem("user_date_format",e)}var Y="user_timezone",s="auto";function M(){if("undefined"!=typeof window)try{const e=localStorage.getItem(Y);return e&&e!==s?e:void 0}catch{return}}function f(e){e&&e!==s?localStorage.setItem(Y,e):localStorage.removeItem(Y)}function D(e){e&&localStorage.setItem(Y,e)}var y={dateStyle:"medium"},$=/* @__PURE__ */new Map;function d(e,t){const n=`${e}|${JSON.stringify(t)}`;let r=$.get(n);return r||(r=new Intl.DateTimeFormat(e,{...t,timeZone:"UTC",calendar:"gregory"}),$.set(n,r)),r}var h=/* @__PURE__ */new Map;function p(e){const t=e??"";let n=h.get(t);if(void 0===n){try{n=new Intl.DateTimeFormat("en-GB",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23",calendar:"gregory",timeZone:e})}catch{n=null}h.set(t,n)}return n}function g(e){return!!e&&null!==p(e)}function k(){const e=M();return e&&g(e)?e:"undefined"!=typeof window&&p(void 0)?.resolvedOptions().timeZone||void 0}function w(e,t){const n=p(t).formatToParts(e),r=e=>n.find(t=>t.type===e)?.value??"";return{y:r("year"),m:r("month"),d:r("day"),hh:r("hour"),mm:r("minute")}}var S=/^(\d{4})-(\d{1,2})-(\d{1,2})$/;function N(e,t){if(!e)return null;const n=S.exec(e);if(n){const[e,t,o]=n.slice(1).map(Number);return t<1||t>12||o<1||o>31?null:{y:String(e),m:r(t),d:r(o)}}const o=new Date(e);return Number.isNaN(o.getTime())?null:w(o,t)}function v(t,n){const r=t&&S.test(t)?void 0:b(n?.timeZone);if(null===r)return e;const o=N(t,r);return o?n?.locale?d(n.locale,n.style??y).format(new Date(Date.UTC(Number(o.y),Number(o.m)-1,Number(o.d)))):function(e,t,n){switch(c()){case"MM/DD/YYYY":return`${t}/${n}/${e}`;case"YYYY-MM-DD":return`${e}-${t}-${n}`;case"DD-MM-YYYY":return`${n}-${t}-${e}`;case"MM-DD-YYYY":return`${t}-${n}-${e}`;case"DD.MM.YYYY":return`${n}.${t}.${e}`;case"YYYY.MM.DD":return`${e}.${t}.${n}`;case"YYYY/MM/DD":return`${e}/${t}/${n}`;case"DD/MM/YY":return`${n}/${t}/${e.slice(-2)}`;case"MM/DD/YY":return`${t}/${n}/${e.slice(-2)}`;case"DD/MMM/YYYY":return`${n}/${i(t)}/${e}`;case"DD/MMM/YY":return`${n}/${i(t)}/${e.slice(-2)}`;case"DD MMM YYYY":return`${n} ${i(t)} ${e}`;case"MMM DD, YYYY":return`${i(t)} ${n}, ${e}`;case"DD MMMM YYYY":return`${n} ${m(t)} ${e}`;case"MMMM DD, YYYY":return`${m(t)} ${n}, ${e}`;default:return`${n}/${t}/${e}`}}(o.y,o.m,o.d):e}function b(e){return e?g(e)?e:null:"undefined"==typeof window?null:k()}function I(e,n){if(!e)return null;if(t(e))return e;if(S.test(e))return null;const r=b(n);if(null===r)return null;const o=N(e,r);return o?`${o.y}-${o.m}-${o.d}`:null}function T(e=/* @__PURE__ */new Date,t){return Number.isNaN(e.getTime())?null:I(e.toISOString(),t)}function x(e,t){const n=w(new Date(e),t);return Date.UTC(Number(n.y),Number(n.m)-1,Number(n.d),Number(n.hh),Number(n.mm))-6e4*Math.floor(e/6e4)}var Z=(e,t)=>Number.isInteger(e)&&e>=0&&e<=t;function A(e,r){const o=t(e),a=r?.hour??12,u=r?.minute??0;if(!o||!Z(a,23)||!Z(u,59))return null;const i=Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),a,u),m=b(r?.timeZone);if(null===m)return null;const c=i-x(i-n,m),l=i-x(i+n,m),Y=e=>e+x(e,m)===i,s=Y(c)?c:Y(l)?l:I(new Date(c).toISOString(),m)===e?c:l;return new Date(s).toISOString()}var J=["dateStyle","era","year","month","day","weekday"];function F(t,n){if(!t||S.test(t))return e;const r=new Date(t);if(Number.isNaN(r.getTime()))return e;const o=b(n?.timeZone);if(null===o)return e;if(n?.clock){const e=U(n.locale,n.clock,o)??U(void 0,n.clock,o);if(e)return e.format(r)}if(n?.locale)return function(e,t,n){const r={hour:"numeric",minute:"2-digit",timeZone:n};try{return e.toLocaleTimeString(t,r)}catch{return e.toLocaleTimeString(void 0,r)}}(r,n.locale,o);const{hh:a,mm:u}=w(r,o);return function(e,t){const n=Number(e);return`${n%12||12}:${t} ${n<12?"am":"pm"}`}(a,u)}function O(t,n){const r=F(t,n);if(r===e)return e;if(n?.clock&&J.some(e=>e in n.clock))return r;const o=n?.zoneName;if(!o)return`${v(t,n)}, ${r}`;const a=b(n?.timeZone)??void 0,u=new Date(t),i=n?.style;if(n?.locale&&i&&!i.dateStyle&&!i.timeStyle){const e=U(n.locale,{...i,...n.clock??{hour:"numeric",minute:"2-digit"},timeZoneName:o},a);if(e)return e.format(u)}return`${v(t,n)}, ${r} ${function(e,t,n,r){const o=U(r,{timeZoneName:n},t)??U(void 0,{timeZoneName:n},t);return o.formatToParts(e).find(e=>"timeZoneName"===e.type)?.value??""}(u,a,o,n?.locale)}`}var C=/* @__PURE__ */new Map;function U(e,t,n){const r=`${e??""}|${n??""}|${JSON.stringify(t)}`;let o=C.get(r);if(void 0===o){try{o=new Intl.DateTimeFormat(e,{...t,timeZone:n})}catch{o=null}C.set(r,o)}return o}var W={months:u,monthsShort:a,weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"],monthYear:(e,t)=>`${u[t]} ${e}`,shortMonthYear:(e,t)=>`${a[t]} ${e}`,longDate:(e,t,n)=>`${n} ${u[t]} ${e}`},_=/* @__PURE__ */new Map;function L(e){if(!e)return W;const t=_.get(e);if(t)return t;const n=t=>d(e,t),r=(e,t,n=1)=>new Date(Date.UTC(e,t,n)),o=n({month:"long"}),a=n({month:"short"}),u=n({weekday:"long"}),i=n({weekday:"short"}),m=n({month:"long",year:"numeric"}),c=n({month:"short",year:"numeric"}),l=n({day:"numeric",month:"long",year:"numeric"}),Y=Array.from({length:12},(e,t)=>t),s=Array.from({length:7},(e,t)=>t),M={months:Y.map(e=>o.format(r(2e3,e))),monthsShort:Y.map(e=>a.format(r(2e3,e))),weekdays:s.map(e=>u.format(r(2e3,0,2+e))),weekdaysShort:s.map(e=>i.format(r(2e3,0,2+e))),monthYear:(e,t)=>m.format(r(e,t)),shortMonthYear:(e,t)=>c.format(r(e,t)),longDate:(e,t,n)=>l.format(r(e,t,n))};return _.set(e,M),M}var j=/* @__PURE__ */new Map;function P(e){if(!e)return 0;let t=j.get(e);if(void 0===t){t=0;try{const n=new Intl.Locale(e),r="function"==typeof n.getWeekInfo?n.getWeekInfo():n.weekInfo;1===r?.firstDay&&(t=1)}catch{}j.set(e,t)}return t}export{o as DATE_FORMAT_OPTIONS,s as TZ_AUTO,L as calendarNames,I as dayKeyInZone,P as firstDayOfWeek,v as formatDate,O as formatDateTime,F as formatTime,c as getUserDateFormat,M as getUserTimezone,A as instantOnDayKey,g as knownZone,l as setUserDateFormat,f as setUserTimezone,D as syncTimezoneFromProfile,T as userToday,k as userZone};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{userToday as t}from"./chunk-NHKT5IH6.js";import{useShellPrefs as e}from"./chunk-KC3EX26K.js";import{toast_default as n}from"./chunk-TMSSR5UH.js";import{useSyncExternalStore as o,useCallback as a,useMemo as r}from"react";var i=[{id:"bell",label:"Bell",description:"Soft bell with one harmonic"},{id:"chime",label:"Chime",description:"Two-note ascending chime"},{id:"bowl",label:"Singing Bowl",description:"Long-decay meditation tone"},{id:"wind-chimes",label:"Wind Chimes",description:"Four soft tones in succession"},{id:"off",label:"Off (silent)",description:"No sound — only desktop notification"}],c=[{id:"none",label:"None"},{id:"tick-fast",label:"Ticking Fast"},{id:"tick-slow",label:"Ticking Slow"},{id:"rain",label:"Rain"},{id:"fireplace",label:"Fireplace"},{id:"white",label:"White Noise"},{id:"pink",label:"Pink Noise"},{id:"brown",label:"Brown Noise"}];function l(e=/* @__PURE__ */new Date){return t(e)??""}function s(t=/* @__PURE__ */new Date){return`pomodoro-day-${l(t)}`}var u={focus:1500,short:300,long:900},d="bell",f=100,m=1,h="none",g=50,p={autoStartBreaks:!1,autoStartPomodoros:!1,longBreakInterval:4},k={running:!1,remaining:u.focus,mode:"focus",total:u.focus,streak:0,count:"undefined"!=typeof localStorage?function(t=/* @__PURE__ */new Date){const e=l(t);if(!e)return 0;try{const n=localStorage.getItem(s(t)),o=null===n?localStorage.getItem(`pomodoro-${e}`):null;return parseInt(n??o??"0",10)||0}catch{return 0}}():0},w=null,M=/* @__PURE__ */new Set,S=t=>{k={...k,...t},M.forEach(t=>t())};function b(){return k}function y(t){return M.add(t),()=>{M.delete(t)}}function v(t){u=t,k.running||k.remaining!==k.total||S({remaining:t[k.mode],total:t[k.mode]})}function T(t){d=t}function A(t,e){f=Math.max(0,Math.min(100,Math.round(t))),m=Math.max(1,Math.min(5,Math.round(e)))}function I(t){p={autoStartBreaks:!!t.autoStartBreaks,autoStartPomodoros:!!t.autoStartPomodoros,longBreakInterval:Math.max(1,Math.min(20,Math.round(t.longBreakInterval||4)))}}function x(t,e){h=t,g=Math.max(0,Math.min(100,Math.round(e))),k.running&&"focus"===k.mode?(G(),F()):"none"!==t&&0!==g||G()}function B(){k.running||(S({running:!0}),w=setInterval(P,1e3),"focus"===k.mode&&F())}function C(){(k.running||null!==w)&&(null!==w&&(clearInterval(w),w=null),S({running:!1}),G())}function N(t){C(),S({mode:t,remaining:u[t],total:u[t]})}function P(){k.remaining<=1?function(){null!==w&&(clearInterval(w),w=null);G(),D(d,{volume:f,repeat:m});const t="focus"===k.mode?"Pomodoro complete — time for a break! 🍅":"Break's over — back to work!";if("undefined"!=typeof Notification&&"granted"===Notification.permission)try{new Notification(t)}catch{}try{n.info(t)}catch{}if("focus"===k.mode){const t=k.streak+1,e=k.count+1;(t=>{try{l()&&localStorage.setItem(s(),String(t))}catch{}})(e);const n=t%p.longBreakInterval===0?"long":"short";S({running:!1,streak:t,count:e,mode:n,remaining:u[n],total:u[n]}),p.autoStartBreaks&&setTimeout(()=>B(),50)}else S({running:!1,mode:"focus",remaining:u.focus,total:u.focus}),p.autoStartPomodoros&&setTimeout(()=>B(),50)}():S({remaining:k.remaining-1})}function D(t=d,e={}){if("off"===t)return;const n=Math.max(0,Math.min(100,e.volume??100))/100;if(0===n)return;const o=Math.max(1,Math.min(5,e.repeat??1));for(let e=0;e<o;e++)setTimeout(()=>_(t,n),2500*e)}function _(t,e){try{const n=window.AudioContext||window.webkitAudioContext;if(!n)return;const o=new n,a=(t,n,a,r=.22,i="sine")=>{const c=o.createOscillator(),l=o.createGain();c.connect(l),l.connect(o.destination),c.type=i,c.frequency.value=t;const s=o.currentTime+n;l.gain.setValueAtTime(0,s),l.gain.linearRampToValueAtTime(r*e,s+.03),l.gain.exponentialRampToValueAtTime(1e-4,s+a),c.start(s),c.stop(s+a)};let r=2;"bell"===t?(a(880,0,1.8),a(1320,0,1.4,.1),r=2):"chime"===t?(a(659.25,0,.7),a(880,.2,1.3),r=2):"bowl"===t?(a(440,0,3.4,.22),a(660,0,3,.08),a(880,.05,2.8,.05),r=4):"wind-chimes"===t&&(a(1175,0,1.1,.16),a(880,.15,1.3,.16),a(1318,.3,1.5,.16),a(1047,.5,1.7,.13),r=3),setTimeout(()=>{try{o.close()}catch{}},1e3*r+500)}catch{}}var R=null,O={none:0,white:.3,pink:.3,brown:.3,"tick-fast":.6,"tick-slow":.6,rain:.4,fireplace:.5};function j(t,e){if("none"===e)return null;const n=t.sampleRate,o="white"===e||"pink"===e||"brown"===e?2:4,a=n*o,r=t.createBuffer(1,a,n),i=r.getChannelData(0);if("white"===e)for(let t=0;t<a;t++)i[t]=.5*(2*Math.random()-1);else if("pink"===e){let t=0,e=0,n=0,o=0,r=0,c=0,l=0;for(let s=0;s<a;s++){const a=2*Math.random()-1;t=.99886*t+.0555179*a,e=.99332*e+.0750759*a,n=.969*n+.153852*a,o=.8665*o+.3104856*a,r=.55*r+.5329522*a,c=-.7616*c-.016898*a,i[s]=.11*(t+e+n+o+r+c+l+.5362*a)*.55,l=.115926*a}}else if("brown"===e){let t=0;for(let e=0;e<a;e++){t=(t+.02*(2*Math.random()-1))/1.02,i[e]=3.5*t*.5}}else if("tick-fast"===e||"tick-slow"===e){const t="tick-fast"===e?.5:1,r=Math.floor(.045*n);for(let e=0;e<o;e+=t){const t=Math.floor(e*n);for(let e=0;e<r&&t+e<a;e++){const o=Math.exp(-e/n*180),a=2*Math.random()-1,r=Math.sin(2*Math.PI*1100*(e/n));i[t+e]+=(.7*a+.25*r)*o*.55}}}else if("rain"===e){let t=0;for(let e=0;e<a;e++){const o=2*Math.random()-1,a=o-.93*t;t=o;const r=.7+.3*Math.sin(e/n*2*Math.PI*.25);i[e]=a*r*.4}}else if("fireplace"===e){let t=0;for(let e=0;e<a;e++){t=(t+.02*(2*Math.random()-1))/1.02,i[e]=1.6*t}let e=.4*Math.random()*n;for(;e<a;){const t=Math.floor((.012+.05*Math.random())*n),o=.35+.45*Math.random(),r=Math.floor(e);for(let e=0;e<t&&r+e<a;e++){const t=Math.exp(-e/n*90);i[r+e]+=(2*Math.random()-1)*t*o}e+=(.08+.62*Math.random())*n}}return r}function F(){if(!R&&"none"!==h&&0!==g)try{const t=window.AudioContext||window.webkitAudioContext;if(!t)return;const e=new t,n=j(e,h);if(!n){try{e.close()}catch{}return}const o=e.createBufferSource();o.buffer=n,o.loop=!0;const a=e.createGain();a.gain.value=g/100*O[h],o.connect(a).connect(e.destination),o.start(),R={ctx:e,src:o,gain:a}}catch{}}function G(){if(R){try{R.src.stop()}catch{}try{R.ctx.close()}catch{}R=null}}function H(t,e){if("none"!==t&&0!==e)try{const n=window.AudioContext||window.webkitAudioContext;if(!n)return;const o=new n,a=j(o,t);if(!a){try{o.close()}catch{}return}const r=o.createBufferSource();r.buffer=a,r.loop=!0;const i=o.createGain();i.gain.value=e/100*O[t],r.connect(i).connect(o.destination),r.start(),setTimeout(()=>{try{r.stop()}catch{}try{o.close()}catch{}},3e3)}catch{}}var K="pomodoro_tasks",V="pomodoro_tasks_migrated";function E(){return Math.random().toString(36).slice(2,11)}function W(){/* @__PURE__ */
|
|
2
|
+
return(new Date).toISOString()}var $=null,q=[],J=!1,L=null,U=/* @__PURE__ */new Set;function X(){for(const t of U)t()}function z(t){q=t,X()}function Q(){const t=$;return t?L=t.list().then(e=>{$===t&&(q=e,J=!0,X())}).catch(()=>{$===t&&(J=!0,X())}).finally(()=>{L=null}):(q=[],J=!0,X(),Promise.resolve())}function Y(t){$=t,q=[],J=!1,t?Q():X()}function Z(t){return U.add(t),!$||J||L||Q(),()=>{U.delete(t)}}function tt(){return q}function et(){const t=function(){const{prefs:t,save:n}=e(),o=r(()=>{const e=t.todo_tasks;return Array.isArray(e)?e:[]},[t.todo_tasks]),i=a(t=>{n({todo_tasks:t})},[n]),c=a(t=>{const e=E(),n=W(),a={done:!1,...t,name:t.name.trim(),id:e,createdAt:n,updatedAt:n};return i([...o,a]),e},[o,i]),l=a((t,e)=>{i(o.map(n=>n.id===t?{...n,...e,id:n.id,updatedAt:W()}:n))},[o,i]),s=a(t=>{i(o.filter(e=>e.id!==t))},[o,i]),u=a(t=>{const e=o.find(e=>e.id===t);e&&l(t,{done:!e.done})},[o,l]);return{tasks:o,addTask:c,updateTask:l,removeTask:s,toggleDone:u,setAllTasks:i}}(),n=o(Z,tt,tt),i=a(e=>{const n=$;if(!n)return t.addTask(e);const o="tmp-"+E(),a=W(),r={done:!1,...e,name:e.name.trim(),id:o,createdAt:a,updatedAt:a};return z([...q,r]),n.create({...e,name:e.name.trim()}).then(t=>z(q.map(e=>e.id===o?{...r,...t}:e))).catch(()=>z(q.filter(t=>t.id!==o))),o},[t]),c=a((e,n)=>{const o=$;if(!o)return t.updateTask(e,n);z(q.map(t=>t.id===e?{...t,...n,id:e,updatedAt:W()}:t)),o.update(e,n).catch(()=>{Q()})},[t]),l=a(e=>{const n=$;if(!n)return t.removeTask(e);const o=q;z(q.filter(t=>t.id!==e)),n.remove(e).catch(()=>z(o))},[t]),s=a(e=>{if(!$)return t.toggleDone(e);const n=q.find(t=>t.id===e);n&&c(e,{done:!n.done})},[t,c]),u=a(e=>{$||t.setAllTasks(e)},[t]);return null===$?t:{tasks:n,addTask:i,updateTask:c,removeTask:l,toggleDone:s,setAllTasks:u}}function nt(t,e){try{if(localStorage.getItem(V))return;const n=localStorage.getItem(K);if(!n)return void localStorage.setItem(V,"1");const o=JSON.parse(n);if(!Array.isArray(o)||0===o.length)return localStorage.removeItem(K),void localStorage.setItem(V,"1");const a=W(),r=o.filter(t=>"string"==typeof t?.name).map(t=>({id:t.id||E(),name:String(t.name),done:!!t.done,estimated:"number"==typeof t.estimated?t.estimated:void 0,completed:"number"==typeof t.completed?t.completed:void 0,createdAt:a,updatedAt:a})),i=new Set(t.map(t=>t.id));e([...r.filter(t=>!i.has(t.id)),...t]),localStorage.removeItem(K),localStorage.setItem(V,"1")}catch{try{localStorage.setItem(V,"1")}catch{}}}export{i as ALARM_OPTIONS,c as FOCUS_SOUND_OPTIONS,b as getPomoSnapshot,nt as migratePomodoroTasksOnce,D as playAlarm,C as pomoPause,B as pomoStart,N as pomoSwitchMode,l as pomodoroToday,H as previewFocusSound,T as setPomoAlarm,A as setPomoAlarmConfig,I as setPomoBehaviour,v as setPomoDurations,x as setPomoFocusSound,Y as setShellTodoProvider,y as subscribePomo,et as useTodoTasks};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{formatDate as t}from"./chunk-
|
|
1
|
+
import{formatDate as t}from"./chunk-NHKT5IH6.js";import{EMPTY_VALUE as o}from"./chunk-36BRD5J3.js";var r=6e4,n=36e5,e=24*n;function i(t){if(null==t||""===t)return null;const o=t instanceof Date?t:new Date(t);return Number.isNaN(o.getTime())?null:o}function a(a,u){const f=i(a);if(!f)return o;const l=Date.now()-f.getTime();return u?.locale?function(o,i,a,u){const f=new Intl.RelativeTimeFormat(o,{style:"narrow",numeric:"auto"});return i<r?a&&i>=1e3?f.format(-Math.floor(i/1e3),"second"):f.format(0,"second"):i<n?f.format(-Math.floor(i/r),"minute"):i<e?f.format(-Math.floor(i/n),"hour"):i<7*e?f.format(-Math.floor(i/e),"day"):t(u.toISOString(),{locale:o})}(u.locale,Math.max(l,0),u.precise,f):l<0?"just now":l<r?u?.precise&&l>=1e3?`${Math.floor(l/1e3)}s ago`:"just now":l<n?`${Math.floor(l/r)}m ago`:l<e?`${Math.floor(l/n)}h ago`:l<7*e?`${Math.floor(l/e)}d ago`:t(f.toISOString())}var u=null;function f(t){if(!t)return void(u=null);const o={};for(const[r,n]of Object.entries(t))o[r.toUpperCase()]=n;u=o}function l(t){if(!t)return"";const o=t.toUpperCase();return u?.[o]?.symbol||o}function s(t){return t?u?.[t.toUpperCase()]?.decimals??2:2}function c(t,r,n){if(null==t||""===t)return o;const e="string"==typeof t?Number(t):t;if(!Number.isFinite(e))return o;const i=n?.whole?0:s(r),a=Math.abs(e).toLocaleString("en-US",{minimumFractionDigits:i,maximumFractionDigits:i}),u=e<0&&/[1-9]/.test(a)?"-":"";if(!r)return`${u}${a}`;const f=l(r);return`${u}${/^[A-Za-z]+$/.test(f)?`${f} `:f}${a}`}var m=["KB","MB","GB","TB"];function h(t){if(null==t||!Number.isFinite(t)||t<0)return o;if(t<1024)return`${Math.round(t)} B`;let r=t/1024,n=0;for(;n<m.length-1&&Number(r.toFixed(1))>=1024;)r/=1024,n++;return`${r.toFixed(1)} ${m[n]}`}export{s as currencyDecimals,l as currencySymbol,h as formatBytes,c as formatMoney,f as setCurrencyFormats,a as timeAgo,i as toInstant};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{useWindowMenuItem as e,Modal as t}from"./chunk-H4LUHKUJ.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as n}from"./chunk-
|
|
1
|
+
import{useWindowMenuItem as e,Modal as t}from"./chunk-H4LUHKUJ.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as n}from"./chunk-AJMQ5SHI.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.1",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,H]=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"}),
|
|
9
|
+
/* @__PURE__ */d("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),H]}),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};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{Calendar as e}from"./chunk-
|
|
2
|
-
return N("input",{ref:
|
|
1
|
+
import{Calendar as e}from"./chunk-LOFFHXZ4.js";import{inputClasses as r,PLACEHOLDER_INK as t}from"./chunk-AYZY3YNC.js";import{calendarNames as a,userToday as n}from"./chunk-NHKT5IH6.js";import{fromDateKey as i,toDateKey as o}from"./chunk-JRQMX4PK.js";import{Icon as l}from"./chunk-ISVODSRP.js";import{onOverlayOpen as s}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as d}from"./chunk-62LW225J.js";import{useDropdownPosition as u}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as c}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as m}from"./chunk-TWVUQUUD.js";import{useShellStrings as p,useShellLocale as f}from"./chunk-DEJIH3ZQ.js";import{forwardRef as b,useState as h,useRef as v,useId as g,useEffect as y}from"react";import{createPortal as x}from"react-dom";import{jsx as N,jsxs as k}from"react/jsx-runtime";var j=/^\d{4}-\d{2}-\d{2}$/,w=/^(aria|data)-/,D=/* @__PURE__ */new Set(["aria-invalid","aria-required"]);function F(e){if(null==e||""===e)return"";if(e instanceof Date)return Number.isNaN(e.getTime())?"":o(e);if(j.test(e))return e;const r=new Date(e);return Number.isNaN(r.getTime())?"":o(r)}function I(e,r){const t=i(e);return t?r.longDate(t.getFullYear(),t.getMonth(),t.getDate()):""}var S=b(function({value:o,onChange:b,min:j,max:S,invalid:$,size:B,native:C,weekStartsOn:E,className:O="","aria-label":q,"aria-describedby":H,"aria-labelledby":J,id:L,name:T,disabled:W,placeholder:z,required:P,clearable:U,form:Y,title:M,tabIndex:Q,autoFocus:R,onFocus:Z,onBlur:G,formatDisplay:K,...V},X){const A=U??!P,_=F(o),ee=F(j),re=F(S),te=p().datePicker,ae=f(),ne=a(ae),[ie,oe]=h(!1),le=v(null),se=v(null),de=v(null),ue=g(),ce=g(),me=g(),pe=u(se,ie,{popupRef:de}),[fe,be]=h(!1);c(()=>{const e=!!L&&(se.current?.labels?.length??0)>0;e!==fe&&be(e)});const he=!q&&(!!J||fe);if(y(()=>{if(!ie)return;const e=e=>{const r=e.target;le.current?.contains(r)||de.current?.contains(r)||oe(!1)};document.addEventListener("pointerdown",e,!0);const r=s(()=>oe(!1));return()=>{document.removeEventListener("pointerdown",e,!0),r()}},[ie]),y(()=>{if(ie)return m(e=>"Escape"===e.key&&(oe(!1),se.current?.focus(),!0),()=>de.current)},[ie]),C)/* @__PURE__ */
|
|
2
|
+
return N("input",{ref:X,type:"date",lang:ae,id:L,name:T,disabled:W,"aria-label":q,"aria-describedby":H,"aria-invalid":$||void 0,value:_,min:ee||void 0,max:re||void 0,onChange:e=>b?.(i(e.target.value)),className:r({invalid:$,size:B,className:O}),"aria-labelledby":J,required:P,form:Y,title:M,tabIndex:Q,autoFocus:R,onFocus:Z,onBlur:G,...V});const ve=Object.fromEntries(Object.entries(V).filter(([e])=>w.test(e)&&!D.has(e))),ge=V["aria-required"],ye=!!P||!0===ge||"true"===ge,xe=[he?ce:void 0,ye?me:void 0,H].filter(Boolean).join(" ")||void 0,Ne=n(),ke=!!Ne&&(!ee||Ne>=ee)&&(!re||Ne<=re),je=z??te.placeholder;/* @__PURE__ */
|
|
3
3
|
return k("div",{ref:le,className:"relative",children:[
|
|
4
|
-
/* @__PURE__ */N("input",{ref:
|
|
5
|
-
/* @__PURE__ */k("button",{ref:se,type:"button",...ve,id:
|
|
6
|
-
/* @__PURE__ */N("span",{className:`min-w-0 truncate whitespace-nowrap ${_?"text-ink-strongest":t}`,children:_?K?K(_):
|
|
7
|
-
/* @__PURE__ */N(l,{name:"date",className:`h-4 w-4 shrink-0 ${t}`,strokeWidth:"1.75","aria-hidden":"true"})]}),he&&/* @__PURE__ */N("span",{id:ce,className:"sr-only",children:_?
|
|
8
|
-
/* @__PURE__ */k("div",{ref:de,id:ue,role:"dialog","aria-label":
|
|
9
|
-
/* @__PURE__ */N(e,{value:_||null,min:ee||null,max:re||null,weekStartsOn:
|
|
4
|
+
/* @__PURE__ */N("input",{ref:X,type:"hidden",name:T,form:Y,value:_}),
|
|
5
|
+
/* @__PURE__ */k("button",{ref:se,type:"button",...ve,id:L,disabled:W,title:M,tabIndex:Q,autoFocus:R,onFocus:Z,onBlur:G,"aria-haspopup":"dialog","aria-expanded":ie,"aria-controls":ie?ue:void 0,"aria-labelledby":J,"aria-describedby":xe,"aria-label":q?`${q}${_?`, ${I(_,ne)}`:""}`:void 0,onClick:()=>oe(e=>!e),className:`${r({invalid:$,size:B,className:O})} flex items-center justify-between gap-2 text-left`,children:[
|
|
6
|
+
/* @__PURE__ */N("span",{className:`min-w-0 truncate whitespace-nowrap ${_?"text-ink-strongest":t}`,children:_?K?K(_):I(_,ne):je}),
|
|
7
|
+
/* @__PURE__ */N(l,{name:"date",className:`h-4 w-4 shrink-0 ${t}`,strokeWidth:"1.75","aria-hidden":"true"})]}),he&&/* @__PURE__ */N("span",{id:ce,className:"sr-only",children:_?I(_,ne):je}),ye&&/* @__PURE__ */N("span",{id:me,className:"sr-only",children:te.required}),ie&&x(
|
|
8
|
+
/* @__PURE__ */k("div",{ref:de,id:ue,role:"dialog","aria-label":q??te.dialog,className:"fixed w-72 rounded-xl border border-gray-200 bg-white p-3 shadow-lg",style:{zIndex:d.popup,left:pe?.left,right:pe?.right,top:pe?.top,bottom:pe?.bottom,maxWidth:pe?.maxWidth,visibility:pe?void 0:"hidden"},children:[
|
|
9
|
+
/* @__PURE__ */N(e,{value:_||null,min:ee||null,max:re||null,weekStartsOn:E,onSelect:e=>{oe(!1),se.current?.focus(),b?.(i(e))}}),(A||ke)&&/* @__PURE__ */k("div",{className:"mt-2 flex justify-between border-t border-gray-100 pt-2",children:[A&&/* @__PURE__ */N("button",{type:"button",onClick:()=>{oe(!1),se.current?.focus(),b?.(null)},className:"rounded-(--radius-control) px-2 py-1 text-sm text-gray-500 hover:bg-gray-100 hover:text-gray-700",children:te.clear}),ke&&/* @__PURE__ */N("button",{type:"button",onClick:()=>{oe(!1),se.current?.focus(),b?.(i(Ne))},className:"ml-auto rounded-(--radius-control) px-2 py-1 text-sm font-medium text-blue-600 hover:bg-blue-50",children:te.today})]})]}),document.body)]})});export{S as DatePicker_default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{TimelineCard as e}from"./chunk-S4Z657L6.js";import{TimelineTrack as n,TimelineMilestoneIcon as s}from"./chunk-F3G7S5HO.js";import{toDayMs as i,fmtSliderDate as t}from"./chunk-5CFERCYW.js";import{DAY_MS as a}from"./chunk-JRQMX4PK.js";import{useBrowserValueOnce as l}from"./chunk-D65T4H6J.js";import{useShellStrings as o,useShellLocale as r}from"./chunk-DEJIH3ZQ.js";import{jsx as h}from"react/jsx-runtime";function m({title:m,heading:d,subject:c,milestones:p,summary:u,endDate:g,phaseLabels:k,variant:v="card",edgeCaptions:f,highlightKeys:y=null,onHoverChange:b}){const j=l(Date.now,null),M=[],C=[],x=o().timeline,H=r();for(const e of p){const n=i(e.date??null);null===n?C.push({key:e.key,label:e.label,kind:e.kind}):M.push({...e,ms:n})}M.sort((e,n)=>e.ms-n.ms);const D=i(g??null);let O,w,J=!0;0===M.length?(w=D??j??0,O=w-30*a,J=null!==D||null!==j):(O=M[0].ms,w=D??M[M.length-1].ms,w-O<a&&(w=O+a));const K=M.length>0?Math.max(0,Math.round((w-O)/a)):0,L=u??(K>0?x.duration(K):void 0),N=[M.length>0?x.started(t(M[0].ms,H)):void 0,L,C.length>0?x.reached(M.length,p.length):void 0],E=M.map(e=>{return{key:e.key,ms:e.ms,kind:e.kind,label:e.label,detail:e.detail,preview:e.preview,glyph:e.glyph,onClick:e.onClick,onOpen:e.onOpen,priority:(n=e.kind,"dfm"===n?1:0),caption:e.caption,provisional:e.provisional};var n}),F={};for(const e of M)e.phase&&(F[e.phase]=F[e.phase]||[]).push(e.ms);const Q=Object.entries(F).filter(([,e])=>e.length>=2).map(([e,n])=>({key:e,label:k?.[e]??e,minMs:Math.min(...n),maxMs:Math.max(...n)})),R="rail"===v,S=J&&/* @__PURE__ */h("div",{className:"select-none",children:/* @__PURE__ */h(n,{axis:R?"spread":"compressed",labels:R?"none":"lanes",items:E,pending:C,phases:Q,startMs:O,endMs:w,todayMs:j??void 0,edgeCaptions:f,highlightKeys:y,onHoverChange:b,ariaLabel:x.milestones(m)})});/* @__PURE__ */
|
|
2
|
+
return h("div",R?{className:"shrink-0","data-timeline-variant":"rail",children:S}:{className:"shrink-0",children:/* @__PURE__ */h(e,{icon:/* @__PURE__ */h(s,{}),heading:d??m,subject:c,meta:N,children:S})})}export{m as MilestoneTimeline};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{Segmented as e}from"./chunk-HNIIDDLJ.js";import{calendarNames as t,formatDate as n}from"./chunk-
|
|
1
|
+
import{Segmented as e}from"./chunk-HNIIDDLJ.js";import{calendarNames as t,formatDate as n}from"./chunk-NHKT5IH6.js";import{toDateKey as r,fromDateKey as a,DAY_MS as o}from"./chunk-JRQMX4PK.js";import{LoadingSpinner as i}from"./chunk-R2VKEMZH.js";import{useBrowserLayoutEffect as s}from"./chunk-D65T4H6J.js";import{useShellStrings as l,useShellLocale as d}from"./chunk-DEJIH3ZQ.js";import{useState as c,useRef as u,useId as h,useMemo as m}from"react";import{jsx as f,Fragment as p,jsxs as b}from"react/jsx-runtime";var g={day:32,week:16,month:4},y=44;function w(e){const t="string"==typeof e?a(e.slice(0,10)):null;return t?Math.round(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())/o):null}function x(e){return new Date(e*o).toISOString().slice(0,10)}function v(e){return new Date(e*o)}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)/o)}function M(e){const t=v(e);return Math.round(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()+1,1)/o)}function C(e){return Math.round(Date.UTC(v(e).getUTCFullYear(),0,1)/o)}function $(e){return Math.round(Date.UTC(v(e).getUTCFullYear()+1,0,1)/o)}var T={day:3,week:7,month:14},j={day:28,week:84,month:182};function U(e,t,n){return(e-t.startDay)*g[n]}function I(e,t,n){return U(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:U(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:U(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:U(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:U(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 R(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 z(e){return e.map(([e,t],n)=>`${0===n?"M":"L"}${e} ${t}`).join(" ")}function H(e,t,n=5){return`${e},${t} ${e-n},${t-n} ${e-n},${t+n}`}function Y(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 K({rows:a,groups:o=[],dependencies:U=[],scale:K,onScaleChange:L,onRowClick:Q,onRowChange:A,readOnly:E=!1,today:J,isLoading:W=!1,emptyState:O,labelHeader:Z,labelWidth:V=240,className:q=""}){const B=l().gantt,G=d(),_=t(G),ee=!!A&&!E,[te,ne]=c(null),re=u(!1),ae=u(null),oe=h(),ie=w(J)??w(r(/* @__PURE__ */new Date)),se=m(()=>{const e=/* @__PURE__ */new Map;for(const t of a){const n=w(t.start),r=w(t.end);e.set(t.id,te&&te.id===t.id?Y(te.mode,te.start,te.end,te.delta):{start:n,end:r})}return e},[a,te]),le=m(()=>{const e=[ie];for(const t of a){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=j[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,K)},[a,K,ie]),de=m(()=>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,K),[le,K]),ce=function(e,t){return(e.endDay-e.startDay)*g[t]}(le,K),ue=m(()=>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}(a,o),[a,o]),he=m(()=>{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,K),line:n})}),e},[ue,se,le,K]),me=m(()=>{const e=[];for(const t of U){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=R(a.outX,i,o.inX,s);e.push({key:`${t.from}>${t.to}`,d:z(l),head:H(o.inX,s)})}return e},[U,he]),fe=!W&&(a.length>0||o.length>0);s(()=>{const e=ae.current;if(!e)return;const t=e.clientWidth-V;e.scrollLeft=Math.max(0,I(ie,le,K)-t/4)},[K,fe]);if(W)/* @__PURE__ */return f(i,{size:"sm",padding:"p-4",label:B.loading});if(!fe)/* @__PURE__ */return f(p,{children:O??/* @__PURE__ */f("div",{className:"text-sm text-ink-faint p-4",children:B.empty})});const pe=(e,t,n)=>{A?.(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,K);t!==te.delta&&ne({...te,delta:t})},ye=e=>{if(te){if(0!==te.delta){const t=Y(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 Q?.(t);if(!ee||"ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;e.preventDefault();const n="ArrowRight"===e.key?1:-1,r=Y(e.shiftKey?"end":"move",w(t.start),w(t.end),n);pe(t,r.start,r.end)},xe=e=>{re.current?re.current=!1:Q?.(e)},ve=e=>n(x(e),{locale:G}),ke=(e,t)=>{const n=v(e.startDay),r=n.getUTCFullYear(),a=n.getUTCMonth();return"major"===t?"month"===K?String(r):"week"===K?_.shortMonthYear(r,a):_.monthYear(r,a):"month"===K?_.monthsShort[a]:String(n.getUTCDate())},Ne=ue.length*y,De=I(ie,le,K),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
2
|
return b("div",{className:`flex min-h-0 flex-col ${q}`,children:[
|
|
3
3
|
/* @__PURE__ */b("div",{className:"flex items-center justify-end gap-2 pb-2",children:[
|
|
4
|
-
/* @__PURE__ */f("button",{type:"button",onClick:()=>{const e=ae.current;if(!e)return;const t=e.clientWidth-V;e.scrollTo?.({left:Math.max(0,
|
|
4
|
+
/* @__PURE__ */f("button",{type:"button",onClick:()=>{const e=ae.current;if(!e)return;const t=e.clientWidth-V;e.scrollTo?.({left:Math.max(0,I(ie,le,K)-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:B.today}),L&&/* @__PURE__ */f(e,{size:"sm",label:B.scale,value:K,onChange:L,options:[{value:"day",label:B.day},{value:"week",label:B.week},{value:"month",label:B.month}]})]}),
|
|
5
5
|
/* @__PURE__ */f("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__ */b("div",{className:"relative",style:{width:V+ce,minHeight:48+Ne},children:[
|
|
6
6
|
/* @__PURE__ */b("div",{className:"sticky top-0 z-20 flex border-b border-line bg-surface",style:{height:48},children:[
|
|
7
|
-
/* @__PURE__ */f("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:V},children:
|
|
8
|
-
/* @__PURE__ */b("div",{className:"relative shrink-0",style:{width:ce},"aria-hidden":!0,children:[de.major.map(e=>/* @__PURE__ */f("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:
|
|
9
|
-
/* @__PURE__ */b("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:
|
|
7
|
+
/* @__PURE__ */f("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:V},children:Z??B.task}),
|
|
8
|
+
/* @__PURE__ */b("div",{className:"relative shrink-0",style:{width:ce},"aria-hidden":!0,children:[de.major.map(e=>/* @__PURE__ */f("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__ */f("span",{className:"sticky inline-block whitespace-nowrap px-2",style:{left:V},children:ke(e,"major")})},`M${e.startDay}`)),de.minor.map(e=>/* @__PURE__ */f("div",{"data-gantt-tick":"minor",className:`absolute truncate border-l border-line-subtle text-2xs leading-6 text-ink-faint ${"day"===K?"text-center":"px-1"} ${e.startDay===ie&&"day"===K?"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"!==K&&
|
|
9
|
+
/* @__PURE__ */b("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__ */f("span",{className:"invisible shrink-0 whitespace-nowrap px-1",children:ke(Ce,"minor")}),
|
|
10
10
|
/* @__PURE__ */f("span",{className:"min-w-0 flex-1"}),
|
|
11
11
|
/* @__PURE__ */f("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:B.today}),
|
|
12
12
|
/* @__PURE__ */f("span",{className:"min-w-0 flex-1"}),Te&&/* @__PURE__ */f("span",{className:"invisible min-w-0 shrink overflow-hidden",children:/* @__PURE__ */f("span",{className:"inline-block whitespace-nowrap px-1",children:ke(Ce,"minor")})})]})]})]}),
|
|
13
|
-
/* @__PURE__ */b("div",{className:"pointer-events-none absolute",style:{left:V,top:48,width:ce,height:Ne},"aria-hidden":!0,children:["day"===
|
|
13
|
+
/* @__PURE__ */b("div",{className:"pointer-events-none absolute",style:{left:V,top:48,width:ce,height:Ne},"aria-hidden":!0,children:["day"===K&&de.minor.filter(e=>k(e.startDay)>=5).map(e=>/* @__PURE__ */f("div",{className:"absolute inset-y-0 bg-surface-sunken",style:{left:e.x,width:e.width}},`w${e.startDay}`)),de.minor.map(e=>/* @__PURE__ */f("div",{className:"absolute inset-y-0 w-px bg-line-subtle",style:{left:e.x}},`g${e.startDay}`))]}),
|
|
14
14
|
/* @__PURE__ */f("div",{role:"list",children:ue.map(e=>{if("group"===e.kind)/* @__PURE__ */
|
|
15
15
|
return b("div",{role:"listitem",className:"flex",style:{height:y},children:[
|
|
16
16
|
/* @__PURE__ */f("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:V},children:/* @__PURE__ */f("span",{className:"truncate",children:e.group.label})}),
|
|
@@ -26,4 +26,4 @@ return b("div",{role:"listitem",className:"flex",style:{height:y},"data-gantt-ro
|
|
|
26
26
|
/* @__PURE__ */f("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
27
|
/* @__PURE__ */f("svg",{className:"pointer-events-none absolute overflow-visible text-ink-faint",style:{left:V,top:48,width:ce,height:Ne},width:ce,height:Ne,"aria-hidden":!0,children:me.map(e=>/* @__PURE__ */b("g",{"data-gantt-arrow":e.key,children:[
|
|
28
28
|
/* @__PURE__ */f("path",{d:e.d,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinejoin:"round"}),
|
|
29
|
-
/* @__PURE__ */f("polygon",{points:e.head,fill:"currentColor"})]},e.key))}),Me&&/* @__PURE__ */f("div",{"data-gantt-today":"",className:"pointer-events-none absolute z-0 w-0.5 -translate-x-1/2 bg-danger",style:{left:V+De,top:48,height:Ne},"aria-hidden":!0}),ee&&/* @__PURE__ */f("span",{id:oe,hidden:!0,children:B.moveHint})]})})]})}export{
|
|
29
|
+
/* @__PURE__ */f("polygon",{points:e.head,fill:"currentColor"})]},e.key))}),Me&&/* @__PURE__ */f("div",{"data-gantt-today":"",className:"pointer-events-none absolute z-0 w-0.5 -translate-x-1/2 bg-danger",style:{left:V+De,top:48,height:Ne},"aria-hidden":!0}),ee&&/* @__PURE__ */f("span",{id:oe,hidden:!0,children:B.moveHint})]})})]})}export{K as Gantt};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{formatMoney as e}from"./chunk-
|
|
1
|
+
import{formatMoney as e}from"./chunk-OJI4ROSD.js";import{EMPTY_VALUE as r}from"./chunk-36BRD5J3.js";import{TimeSeriesChart as t}from"./chunk-EEFUXXYJ.js";import{ChartFrame as a}from"./chunk-VWYICGVA.js";import{ColumnChart as l}from"./chunk-PA3OU3Y7.js";import{TH_ONE_LINE as s}from"./chunk-G67CJAQ2.js";import{jsxs as o,jsx as i}from"react/jsx-runtime";function n({spec:n,height:c=200,width:m,animate:d=!0,className:h}){const u=function(r){if(r.currency)return t=>e(t,r.currency);const t=r.unit?` ${r.unit}`:"";return e=>`${e.toLocaleString("en-US",{maximumFractionDigits:2})}${t}`}(n),p=n.currency?r=>e(r,n.currency,{whole:!0}):u,b=n.series.map((e,r)=>({key:`s${r}`,label:e.name,data:e.values})),y=n.title??n.series.map(e=>e.name).join(", "),f=/* @__PURE__ */o("table",{className:"w-full border-collapse text-sm",children:[
|
|
2
2
|
/* @__PURE__ */i("thead",{children:/* @__PURE__ */o("tr",{children:[
|
|
3
3
|
/* @__PURE__ */i("td",{className:"border-b border-gray-200"}),n.series.map((e,r)=>/* @__PURE__ */i("th",{scope:"col",className:`${s} border-b border-gray-200 px-2 py-1 text-right font-semibold text-gray-700`,children:e.name},r))]})}),
|
|
4
4
|
/* @__PURE__ */i("tbody",{children:n.x.map((e,t)=>/* @__PURE__ */o("tr",{children:[
|
package/dist/data/Gantt.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Gantt as default}from"../chunk-
|
|
2
|
+
export{Gantt as default}from"../chunk-Z62HFEFS.js";import"../chunk-HNIIDDLJ.js";import"../chunk-EFKJLUYP.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.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";
|
package/dist/format/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DATE_FORMAT_OPTIONS, DateFormatKey, FormatDateOptions, InstantOnDayOptions, TZ_AUTO, dayKeyInZone, formatDate, formatDateTime, formatTime, getUserDateFormat, getUserTimezone, instantOnDayKey, setUserDateFormat, setUserTimezone, syncTimezoneFromProfile, userToday } from '../utils/date.js';
|
|
1
|
+
export { DATE_FORMAT_OPTIONS, DateFormatKey, FormatDateOptions, InstantOnDayOptions, TZ_AUTO, dayKeyInZone, formatDate, formatDateTime, formatTime, getUserDateFormat, getUserTimezone, instantOnDayKey, knownZone, setUserDateFormat, setUserTimezone, syncTimezoneFromProfile, userToday, userZone } from '../utils/date.js';
|
|
2
2
|
export { fromDateKey, toDateKey } from '../utils/dateKey.js';
|
|
3
3
|
export { CurrencyFormat, EMPTY_VALUE, FormatMoneyOptions, TimeAgoOptions, currencyDecimals, currencySymbol, formatBytes, formatMoney, setCurrencyFormats, timeAgo } from '../utils/format.js';
|
|
4
4
|
export { slugify } from '../utils/slugify.js';
|
package/dist/format/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{slugify}from"../chunk-24AL3CDS.js";import{ENTRANCE_ATTR as t}from"../chunk-ZSEB7XW4.js";export{ENTRANCE_ATTR,ENTRANCE_DELAY_VAR,ENTRANCE_DURATION_VAR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-ZSEB7XW4.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{gridColumnCount}from"../chunk-VNNVG4NR.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{contrastRatio,hexToRgb,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-
|
|
1
|
+
export{slugify}from"../chunk-24AL3CDS.js";import{ENTRANCE_ATTR as t}from"../chunk-ZSEB7XW4.js";export{ENTRANCE_ATTR,ENTRANCE_DELAY_VAR,ENTRANCE_DURATION_VAR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-ZSEB7XW4.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{gridColumnCount}from"../chunk-VNNVG4NR.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{contrastRatio,hexToRgb,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-OJI4ROSD.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,dayKeyInZone,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,instantOnDayKey,knownZone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,userToday,userZone}from"../chunk-NHKT5IH6.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{fromDateKey,toDateKey}from"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";export{ROOT_THEME_ATTRIBUTES,rootIsDark,watchRootTheme}from"../chunk-LNXBTK7Q.js";var e=["none","zoom-in","zoom-out","fade-in","fade-out","move-up","move-down","reveal","parallax"],o=["zoom-in","zoom-out"],n=(t,e,o,n)=>({default:t,min:e,max:o,step:n}),r=n(30,0,100,10),i=n(0,0,100,5),s=n(100,0,100,5),a=n(2,0,4,.5),m="data-motion-scroll",u="data-motion-pin",c="data-motion-pin-frame",l="data-motion-pin-above",f="--motion-zoom",h="--motion-origin",p="--motion-scroll-start",d="--motion-scroll-end",T="--motion-p",N="--motion-pin-on",E="--motion-pin-top",y="--motion-pin-length",R="--motion-pin-position",S="--motion-pin-stick",A="--motion-pin-track-position",g="--motion-pin-above-z",w=["track","stick"],x=/^\s*-?\d+(\.\d+)?\s*$/;function O(t,e){const o="number"==typeof e?e:"string"==typeof e&&x.test(e)?Number(e):Number.NaN;if(!Number.isFinite(o))return t.default;const n=Math.min(t.max,Math.max(t.min,o)),r=Math.round(Number((n/t.step).toFixed(6)));return Number((r*t.step).toFixed(3))}function F(t,o,n,a){const m=e.includes(t)?t:"none",u=O(i,n),c=O(s,a);return{effect:m,zoom:O(r,o),start:Math.min(u,c),end:Math.max(u,c)}}function _(t,e){if("none"===t.effect)return{attrs:{},style:{}};const n={};var r;return r=t.effect,o.includes(r)&&(n[f]=String(Number((1+t.zoom/100).toFixed(3))),e&&(n[h]=e)),t.start!==i.default&&(n[p]=String(t.start)),t.end!==s.default&&(n[d]=String(t.end)),{attrs:{[m]:t.effect},style:n}}function k(t,e){return{on:!0===t,length:O(a,e)}}function C(t){return t?{[S]:"1",[A]:"sticky"}:{[S]:"0",[A]:"relative"}}function v(t,e="track",o={}){if(!t.on)return{attrs:{},style:{}};const n=!0===o.above?{[l]:""}:{};if("stick"===e)return{attrs:{[u]:"stick",...n},style:{}};const r=t.length===a.default?{}:{[y]:String(t.length)};return{attrs:{[u]:"",...n},style:!0===o.stick?{...r,...C(!0)}:r}}function D(t,e,o,n){let r;if(e){const t=e.length*e.vh;r=t>0?((e.stop??0)-e.top)/t:1}else r=(t.vh-t.top)/(t.vh+t.height);const i=o/100,s=n/100,a=s>i?(r-i)/(s-i):r>=s?1:0;return Math.min(1,Math.max(0,Number(a.toFixed(4))))}var I=(t,e)=>{const o=Number.parseFloat(t);return Number.isFinite(o)?o:e};function M(e=document){const o=()=>{};if("undefined"==typeof window||"undefined"==typeof CSS)return o;if(CSS.supports("animation-timeline: view()"))return o;let n=0;const r=()=>{n=0;const o=window.innerHeight||document.documentElement.clientHeight,r=[];for(const n of e.querySelectorAll(`[${m}]`)){if(n.hasAttribute(t))continue;const e=getComputedStyle(n),m=n.closest(`[${u}]:not([${u}="stick"])`),l=m?getComputedStyle(m):null,f=!!l&&(0===I(l.getPropertyValue(N),1)||0!==I(l.getPropertyValue(S),0)),h=b(f&&m?m:n,o),T=m?.querySelector(`[${c}]`),E=m&&!f?{...b(m,o),length:I(l.getPropertyValue(y),a.default),stop:T?I(getComputedStyle(T).top,0):0}:null;r.push({el:n,p:D({top:h.top,height:h.height,vh:o},E,I(e.getPropertyValue(p),i.default),I(e.getPropertyValue(d),s.default))})}for(const{el:t,p:e}of r)t.style.setProperty(T,String(e))},l=()=>{n||(n=requestAnimationFrame(r))};return r(),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l,{passive:!0}),()=>{n&&cancelAnimationFrame(n),window.removeEventListener("scroll",l),window.removeEventListener("resize",l)}}function b(t,e,o=("undefined"==typeof window?0:window.scrollY)){let n=0;for(let e=t;e;e=e.offsetParent)n+=e.offsetTop;return{top:n-o,height:t.offsetHeight,vh:e}}var L=["none","nextImage","rotate","zoom","lift","mono"];function W(t){return L.filter(e=>t.includes(e))}export{L as HOVER_KINDS,l as PIN_ABOVE_ATTR,g as PIN_ABOVE_Z_VAR,u as PIN_ATTR,w as PIN_FORMS,c as PIN_FRAME_ATTR,a as PIN_LENGTH,y as PIN_LENGTH_VAR,N as PIN_ON_VAR,R as PIN_POSITION_VAR,S as PIN_STICK_VAR,E as PIN_TOP_VAR,A as PIN_TRACK_POSITION_VAR,m as SCROLL_ATTR,e as SCROLL_EFFECTS,o as SCROLL_EFFECTS_WITH_ZOOM,s as SCROLL_END,d as SCROLL_END_VAR,h as SCROLL_ORIGIN_VAR,T as SCROLL_PROGRESS_VAR,i as SCROLL_START,p as SCROLL_START_VAR,r as SCROLL_ZOOM,f as SCROLL_ZOOM_VAR,M as armScrollProgress,W as hoverKindsOf,b as layoutBox,v as pinAttrs,C as pinStickVars,k as readPin,F as readScroll,_ as scrollAttrs,D as scrollProgress};
|
package/dist/forms/Calendar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Calendar as default}from"../chunk-
|
|
2
|
+
export{Calendar as default}from"../chunk-LOFFHXZ4.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-D65T4H6J.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
|
package/dist/forms/DatePicker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{DatePicker_default as default}from"../chunk-
|
|
2
|
+
export{DatePicker_default as default}from"../chunk-SC3AQXJY.js";import"../chunk-LOFFHXZ4.js";import"../chunk-AYZY3YNC.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-TWVUQUUD.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{DateRangePicker as default,presetRange,toISODate}from"../chunk-
|
|
2
|
+
export{DateRangePicker as default,presetRange,toISODate}from"../chunk-BKZOTBDP.js";import"../chunk-LOFFHXZ4.js";import"../chunk-VNNVG4NR.js";import"../chunk-PT4GMPUB.js";import"../chunk-3DSGJIC7.js";import"../chunk-UZFFSZFI.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-DWGYC7OD.js";import"../chunk-GOAFMGUI.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.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-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export { default as LoadingSpinner, LoadingSpinnerProps, SpinnerRing, SpinnerRin
|
|
|
106
106
|
export { default as MetricBar, MetricBarProps } from './shell/MetricBar.js';
|
|
107
107
|
export { default as MetricBarLegend, MetricBarLegendLink, MetricBarLegendProps } from './shell/MetricBarLegend.js';
|
|
108
108
|
export { default as BudgetBar, BudgetBarProps, BudgetState, budgetState } from './shell/BudgetBar.js';
|
|
109
|
-
export { T as TimelineMarker, a as TimelineMarkerKind, b as TimelineScrubProgress, c as TimelineTrack, d as TimelineTrackItem, e as TimelineTrackKind, f as TimelineTrackPending, g as TimelineTrackPhase, h as TimelineTrackPlayback, i as TimelineTrackProps, j as TimelineTrackThumb } from './TimelineTrack-
|
|
109
|
+
export { T as TimelineMarker, a as TimelineMarkerKind, b as TimelineScrubProgress, c as TimelineTrack, d as TimelineTrackItem, e as TimelineTrackKind, f as TimelineTrackPending, g as TimelineTrackPhase, h as TimelineTrackPlayback, i as TimelineTrackProps, j as TimelineTrackThumb } from './TimelineTrack-DCTqfW6Z.js';
|
|
110
110
|
export { Milestone, MilestoneKind, default as MilestoneTimeline, MilestoneTimelineProps } from './shell/MilestoneTimeline.js';
|
|
111
111
|
export { POST_PRODUCTION_STATUSES, default as ProductionTimeline, ProductionTimelineProps, ProductionTimelineSnapshot, ProgressItem, STAGES, TimelineReport, UseProductionTimelineOpts, calcOverall, calcReportOverall, useProductionTimeline } from './shell/ProductionTimeline.js';
|
|
112
112
|
export { fmtSliderDate, toDayMs } from './shell/timelineDates.js';
|
|
@@ -179,7 +179,7 @@ export { ENGLISH, SHELL_LANGUAGE_STORAGE_KEY, ShellLanguage, ShellLanguageProvid
|
|
|
179
179
|
export { LanguagePanel, LanguagePanelProps, LanguageSelect, LanguageSelectProps, languageSelectWidth } from './shell/LanguageSelect.js';
|
|
180
180
|
export { GLASS_DIVIDER, GLASS_INPUT_BG, GlassOptions, glassStyle, solidSurfaceStyle } from './utils/glass.js';
|
|
181
181
|
export { NEXT_CHUNK_PATH_PREFIX, STALE_CHUNK_RELOAD_COOLDOWN_MS, STALE_CHUNK_RELOAD_KEY, StaleChunkReloadOptions, VITE_PRELOAD_ERROR_EVENT, installStaleChunkReload, isStaleChunkError } from './shell/staleChunk.js';
|
|
182
|
-
export { DATE_FORMAT_OPTIONS, DateFormatKey, FormatDateOptions, InstantOnDayOptions, TZ_AUTO, dayKeyInZone, firstDayOfWeek, formatDate, formatDateTime, formatTime, getUserDateFormat, getUserTimezone, instantOnDayKey, setUserDateFormat, setUserTimezone, syncTimezoneFromProfile, userToday } from './utils/date.js';
|
|
182
|
+
export { DATE_FORMAT_OPTIONS, DateFormatKey, FormatDateOptions, InstantOnDayOptions, TZ_AUTO, dayKeyInZone, firstDayOfWeek, formatDate, formatDateTime, formatTime, getUserDateFormat, getUserTimezone, instantOnDayKey, knownZone, setUserDateFormat, setUserTimezone, syncTimezoneFromProfile, userToday, userZone } from './utils/date.js';
|
|
183
183
|
export { CurrencyFormat, EMPTY_VALUE, FormatMoneyOptions, TimeAgoOptions, currencyDecimals, currencySymbol, formatBytes, formatMoney, setCurrencyFormats, timeAgo } from './utils/format.js';
|
|
184
184
|
export { slugify } from './utils/slugify.js';
|
|
185
185
|
export { escapeHtml } from './utils/escapeHtml.js';
|