efficient-shell 13.18.1 → 13.20.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 +47 -3
- package/dist/{Browser-45J7LAYQ.js → Browser-XFEOOL5J.js} +12 -12
- package/dist/Calculator-V5SACDGQ.js +29 -0
- package/dist/CurrencyConverter-B3NWE6LM.js +21 -0
- package/dist/{Files-246CTCMQ.js → Files-LRSNSZ5Y.js} +65 -65
- package/dist/Notepad-GGBFJNRE.js +24 -0
- package/dist/PomodoroTimer-XLPBKMWS.js +91 -0
- package/dist/{Preview-GMSWWF4O.js → Preview-CWGCGKR5.js} +24 -24
- package/dist/{Stock-S266KGAF.js → Stock-PRUMXULJ.js} +4 -4
- package/dist/{Weather-TE4TTTQA.js → Weather-FO5DVYQ4.js} +18 -18
- package/dist/{WorldClock-5TPBHBYA.js → WorldClock-BYZ5BNLZ.js} +4 -4
- package/dist/ai/index.js +116 -116
- package/dist/apps/index.d.ts +1 -1
- 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/PieChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/RadialBarChart.js +1 -1
- package/dist/charts/SpecChart.js +1 -1
- package/dist/charts/TimeSeriesChart.js +1 -1
- package/dist/{chunk-UGEA3C5C.js → chunk-23LK4PLJ.js} +5 -5
- package/dist/chunk-2TXQCA4C.js +15 -0
- package/dist/{chunk-SUTABWMQ.js → chunk-5EC62E65.js} +2 -2
- package/dist/{chunk-LGGATDPH.js → chunk-ABPVCVCT.js} +13 -13
- package/dist/{chunk-GEQZUCEO.js → chunk-BVX7LUAW.js} +6 -6
- package/dist/{chunk-5EHIWKUZ.js → chunk-EG5MU7XL.js} +1 -1
- package/dist/{chunk-LUCO5PS6.js → chunk-F3E3CEZM.js} +1 -1
- package/dist/{chunk-KSK4VZIM.js → chunk-FUPU7Z2G.js} +2 -2
- package/dist/{chunk-QTDR2CTB.js → chunk-IUQJGFEO.js} +3 -3
- package/dist/chunk-IXJIHTUI.js +91 -0
- package/dist/{chunk-4SYPNE3P.js → chunk-J4CVYOY3.js} +1 -1
- package/dist/{chunk-GSUWPNX4.js → chunk-JGKUENPD.js} +1 -1
- package/dist/{chunk-LNCAIY64.js → chunk-PBSCF2ML.js} +5 -5
- package/dist/{chunk-ENVANMHI.js → chunk-SHHRC5XK.js} +7 -7
- package/dist/{chunk-EHM3ZVVT.js → chunk-UC5IC3AM.js} +4 -4
- package/dist/chunk-VGUYAVDG.js +1 -0
- package/dist/{chunk-TKCCJRPE.js → chunk-VRJKV44O.js} +1 -1
- package/dist/{chunk-XU4I2DMR.js → chunk-WJTNQ7YD.js} +2 -2
- package/dist/{chunk-34HRPEQD.js → chunk-XOCRRCCP.js} +1 -1
- package/dist/{chunk-S7YUQLBN.js → chunk-XXTAMF3O.js} +6 -6
- package/dist/{chunk-QSJMLHBD.js → chunk-YE2YU526.js} +1 -1
- package/dist/chunk-YI4T5I5D.js +1 -0
- package/dist/data/EntityList.js +1 -1
- package/dist/data/ResizableTable.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +662 -665
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/SidebarLayout.d.ts +5 -2
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/tokens/colour.d.ts +2 -2
- package/dist/{types-ClT92-8Z.d.ts → types-DWIjEVSy.d.ts} +5 -5
- package/dist/ui/index.js +1 -1
- package/dist/ui.css +11 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-4UBMDAJO.js +0 -29
- package/dist/CurrencyConverter-H3HHXXKT.js +0 -21
- package/dist/Notepad-KXIBS5XS.js +0 -24
- package/dist/PomodoroTimer-JVCYYGRD.js +0 -91
- package/dist/chunk-JYESSDBZ.js +0 -1
- package/dist/chunk-U5RG34NE.js +0 -14
- package/dist/chunk-ZI2FDUYJ.js +0 -99
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-ETQ45TBW.js";import"../chunk-IOLUF3UL.js";import"../chunk-3C7JKJGL.js";import"../chunk-
|
|
2
|
+
export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-ETQ45TBW.js";import"../chunk-IOLUF3UL.js";import"../chunk-3C7JKJGL.js";import"../chunk-VQCKMT5F.js";import"../chunk-64ACCUNN.js";import"../chunk-RQGLDRRF.js";import"../chunk-32VV2J22.js";import"../chunk-NI5FXWK5.js";import"../chunk-GEITUFYK.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/SettingRow.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{SettingRow as default}from"../chunk-
|
|
2
|
+
export{SettingRow as default}from"../chunk-UC5IC3AM.js";import"../chunk-5HFKVEWW.js";import"../chunk-HCP7WOAL.js";import"../chunk-2NMW66P5.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -5,8 +5,11 @@ import { ReactNode } from 'react';
|
|
|
5
5
|
* Two-pane layout with a drag-to-resize sidebar (left or right).
|
|
6
6
|
*
|
|
7
7
|
* Renders flush (`h-full w-full`) — pair it with a `flushBody` window so the
|
|
8
|
-
* sidebar runs from
|
|
9
|
-
* surrounding padding.
|
|
8
|
+
* sidebar runs from the very top of the window to the very bottom with no
|
|
9
|
+
* surrounding padding. A desktop window has no title bar: a left sidebar that
|
|
10
|
+
* sits flush in the window's top-left corner carries the window's close,
|
|
11
|
+
* minimise and maximise buttons over a clear strip at its top
|
|
12
|
+
* (`windowInset.ts`), and the top of the page beside it drags the window. The user can drag the sidebar's inner edge to resize
|
|
10
13
|
* it; pass `storageKey` to persist that width across reopens, or double-click
|
|
11
14
|
* the handle to reset to `defaultWidth`. Set `side="right"` to put the sidebar
|
|
12
15
|
* on the right (e.g. a detail-panel layout).
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{SidebarLayout as default}from"../chunk-
|
|
2
|
+
export{SidebarLayout as default}from"../chunk-2TXQCA4C.js";import"../chunk-QWK6DRSN.js";import"../chunk-HMOKKMIV.js";import"../chunk-YI4T5I5D.js";import"../chunk-UGTRSRIW.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-BWJZTHZ6.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{startClientTelemetry}from"../chunk-
|
|
1
|
+
export{startClientTelemetry}from"../chunk-JGKUENPD.js";import"../chunk-KNUR2UEG.js";import"../chunk-VGUYAVDG.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ChatTemplate as default}from"../chunk-
|
|
2
|
+
export{ChatTemplate as default}from"../chunk-F3E3CEZM.js";import"../chunk-2TXQCA4C.js";import"../chunk-QWK6DRSN.js";import"../chunk-HMOKKMIV.js";import"../chunk-W2TPXKCV.js";import"../chunk-3SIRRK3F.js";import"../chunk-EX3DARI3.js";import"../chunk-VQBKRBBR.js";import"../chunk-NWS5G7FE.js";import"../chunk-AYZY3YNC.js";import"../chunk-YI4T5I5D.js";import"../chunk-UGTRSRIW.js";import"../chunk-DWGYC7OD.js";import"../chunk-THAPVKEJ.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DashboardTemplate as default}from"../chunk-
|
|
1
|
+
export{DashboardTemplate as default}from"../chunk-EG5MU7XL.js";import"../chunk-S25KELFW.js";import"../chunk-CKCDGSTC.js";import"../chunk-FUPU7Z2G.js";import"../chunk-W2TPXKCV.js";import"../chunk-VFC6QUEN.js";import"../chunk-G7SILKUY.js";import"../chunk-465RRWBY.js";import"../chunk-ZNV75GAG.js";import"../chunk-CNYAHYE6.js";import"../chunk-YDJ5IZOU.js";import"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";import"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-HC5KQZFG.js";import"../chunk-KNZ7YTFH.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{EmailTemplate as default}from"../chunk-
|
|
2
|
+
export{EmailTemplate as default}from"../chunk-VRJKV44O.js";import"../chunk-2TXQCA4C.js";import"../chunk-QWK6DRSN.js";import"../chunk-HMOKKMIV.js";import"../chunk-W2TPXKCV.js";import"../chunk-YI4T5I5D.js";import"../chunk-SXHV5OLA.js";import"../chunk-UGTRSRIW.js";import"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
package/dist/tokens/colour.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare const FLAT_STATUS_ROLES: readonly ["danger", "warning", "success", "dang
|
|
|
27
27
|
/** The status groups of the soft/solid tier (ui.css "status"). */
|
|
28
28
|
declare const STATUS_GROUPS: readonly ["success", "active", "queued", "info", "pending", "warning", "danger", "draft", "neutral"];
|
|
29
29
|
/** Each group's wash, the ink on that wash, its solid fill, and its border. */
|
|
30
|
-
declare const STATUS_ROLES: readonly [...("status-
|
|
30
|
+
declare const STATUS_ROLES: readonly [...("status-success-soft" | "status-warning-soft" | "status-info-soft" | "status-danger-soft" | "status-active-soft" | "status-draft-soft" | "status-queued-soft" | "status-pending-soft" | "status-neutral-soft" | "status-success-soft-ink" | "status-warning-soft-ink" | "status-info-soft-ink" | "status-danger-soft-ink" | "status-active-soft-ink" | "status-draft-soft-ink" | "status-queued-soft-ink" | "status-pending-soft-ink" | "status-neutral-soft-ink" | "status-success-solid" | "status-warning-solid" | "status-info-solid" | "status-danger-solid" | "status-active-solid" | "status-draft-solid" | "status-queued-solid" | "status-pending-solid" | "status-neutral-solid" | "status-success-line" | "status-warning-line" | "status-info-line" | "status-danger-line" | "status-active-line" | "status-draft-line" | "status-queued-line" | "status-pending-line" | "status-neutral-line")[], "status-on-solid"];
|
|
31
31
|
/** A dark veil over media, in three strengths. */
|
|
32
32
|
declare const SCRIM_ROLES: readonly ["scrim-soft", "scrim-mid", "scrim-strong"];
|
|
33
33
|
/**
|
|
@@ -36,7 +36,7 @@ declare const SCRIM_ROLES: readonly ["scrim-soft", "scrim-mid", "scrim-strong"];
|
|
|
36
36
|
* can share one colour.
|
|
37
37
|
*/
|
|
38
38
|
declare const IDENTITY_ROLES: readonly ["identity-1", "identity-2", "identity-3", "identity-4", "identity-5", "identity-6", "identity-7", "identity-8"];
|
|
39
|
-
declare const COLOUR_ROLES: readonly ["surface", "surface-sunken", "surface-raised", "surface-inverse", "line-subtle", "line", "line-strong", "ink-faintest", "ink-faint", "ink-muted", "ink", "ink-strong", "ink-strongest", "ink-placeholder", "ink-disabled", "ink-on-inverse", "row-hover", "accent-fill", "accent-fill-hover", "accent-tint", "accent-tint-strong", "accent-border", "accent-text", "on-accent", "danger", "warning", "success", "danger-text", "warning-text", "success-text", ...("status-
|
|
39
|
+
declare const COLOUR_ROLES: readonly ["surface", "surface-sunken", "surface-raised", "surface-inverse", "line-subtle", "line", "line-strong", "ink-faintest", "ink-faint", "ink-muted", "ink", "ink-strong", "ink-strongest", "ink-placeholder", "ink-disabled", "ink-on-inverse", "row-hover", "accent-fill", "accent-fill-hover", "accent-tint", "accent-tint-strong", "accent-border", "accent-text", "on-accent", "danger", "warning", "success", "danger-text", "warning-text", "success-text", ...("status-success-soft" | "status-warning-soft" | "status-info-soft" | "status-danger-soft" | "status-active-soft" | "status-draft-soft" | "status-queued-soft" | "status-pending-soft" | "status-neutral-soft" | "status-success-soft-ink" | "status-warning-soft-ink" | "status-info-soft-ink" | "status-danger-soft-ink" | "status-active-soft-ink" | "status-draft-soft-ink" | "status-queued-soft-ink" | "status-pending-soft-ink" | "status-neutral-soft-ink" | "status-success-solid" | "status-warning-solid" | "status-info-solid" | "status-danger-solid" | "status-active-solid" | "status-draft-solid" | "status-queued-solid" | "status-pending-solid" | "status-neutral-solid" | "status-success-line" | "status-warning-line" | "status-info-line" | "status-danger-line" | "status-active-line" | "status-draft-line" | "status-queued-line" | "status-pending-line" | "status-neutral-line")[], "status-on-solid", "scrim-soft", "scrim-mid", "scrim-strong", "identity-1", "identity-2", "identity-3", "identity-4", "identity-5", "identity-6", "identity-7", "identity-8"];
|
|
40
40
|
type ColourRole = (typeof COLOUR_ROLES)[number];
|
|
41
41
|
|
|
42
42
|
export { ACCENT_ROLES, COLOUR_ROLES, type ColourRole, FLAT_STATUS_ROLES, IDENTITY_ROLES, NEUTRAL_ROLES, SCRIM_ROLES, STATUS_GROUPS, STATUS_ROLES };
|
|
@@ -26,12 +26,12 @@ interface PageRegistryEntry {
|
|
|
26
26
|
initialPosition?: 'top-right' | 'top-left';
|
|
27
27
|
/** Widget mode: no title bar, drag via body, right-click context menu. */
|
|
28
28
|
widget?: boolean;
|
|
29
|
-
/** Compact
|
|
29
|
+
/** Compact window: a smaller top row with Close and the title only, no footer. */
|
|
30
30
|
compact?: boolean;
|
|
31
31
|
/** App-style window for self-chromed apps (Preview, Files, Browser, etc.):
|
|
32
|
-
* small
|
|
32
|
+
* small top row with full controls, no body padding, no footer. */
|
|
33
33
|
appStyle?: boolean;
|
|
34
|
-
/** Flush body — keeps the
|
|
34
|
+
/** Flush body — keeps the standard top row and footer, but drops the
|
|
35
35
|
* body padding so the app's content (e.g. a `<SidebarLayout>`) sits flush to
|
|
36
36
|
* the window edges. Implies `bodyScroll: false`; the app manages its own
|
|
37
37
|
* scrolling. Use for two-pane / sidebar apps that want normal window chrome. */
|
|
@@ -108,9 +108,9 @@ interface ModalRegistryEntry {
|
|
|
108
108
|
autoMinHeight?: number;
|
|
109
109
|
/** Fit width to content on open. See PageRegistryEntry.autoWidth. */
|
|
110
110
|
autoWidth?: boolean;
|
|
111
|
-
/** App-style window: small
|
|
111
|
+
/** App-style window: small top row, no body padding, no footer. */
|
|
112
112
|
appStyle?: boolean;
|
|
113
|
-
/** Flush body — keeps the
|
|
113
|
+
/** Flush body — keeps the standard top row and footer, but drops the
|
|
114
114
|
* body padding so the detail content sits flush to the window edges.
|
|
115
115
|
* Implies `bodyScroll: false`; the detail component manages its own
|
|
116
116
|
* scrolling. Use for full-height tabbed / split-pane detail windows.
|
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import"../chunk-7UCZAUAU.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{DashboardTemplate}from"../chunk-5EHIWKUZ.js";export{DataTablePage}from"../chunk-YQ5JHHLE.js";export{EmailTemplate}from"../chunk-TKCCJRPE.js";export{ErrorBoundary}from"../chunk-PPLPDP6D.js";export{ErrorPage}from"../chunk-QNWC3RWK.js";export{FormLayoutPage}from"../chunk-BNPWUCZX.js";export{GalleryTemplate}from"../chunk-4G7PJ325.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-YT5HMLC7.js";export{ChatTemplate}from"../chunk-LUCO5PS6.js";export{CheckoutTemplate}from"../chunk-RDETBXMP.js";export{TopNav}from"../chunk-MZ3JADHG.js";export{Statistic}from"../chunk-IE6TRMIW.js";export{Stepper}from"../chunk-KTO427N3.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-IJ4JX6WP.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-WJMPTW3G.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-U5RG34NE.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-BZRFD4DK.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-KQCJWK55.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-7CBWSLCW.js";export{ResizeHandle}from"../chunk-HMOKKMIV.js";export{SettingReset}from"../chunk-A7VNKVZO.js";export{SettingRow}from"../chunk-EHM3ZVVT.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-ETQ45TBW.js";export{MetricBar}from"../chunk-FBS55WOX.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-KEVJBI5Q.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-FMLUQCFB.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-LKAGXURQ.js";export{fmtSliderDate,toDayMs}from"../chunk-5CFERCYW.js";export{PageHeader}from"../chunk-NILGK2KJ.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-5URXJCNC.js";export{GlobalSearch,openGlobalSearch}from"../chunk-2J3C2RR4.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-HGOWQO63.js";export{HelpCenter}from"../chunk-XAT2MKNU.js";export{IconRail,IconRailButton}from"../chunk-OF5X4HKC.js";import"../chunk-FQEALPZJ.js";export{CountBadge}from"../chunk-5HFKVEWW.js";export{EditableGrid}from"../chunk-SUSJFGXN.js";export{BudgetBar,budgetState}from"../chunk-KYQKMBSY.js";export{Card,StatCard}from"../chunk-S25KELFW.js";export{ContainerFillChart}from"../chunk-HOROMBJB.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-IOLUF3UL.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-FDDM7VMQ.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-7I5RJPY7.js";export{ICON_NAMES,isIconName}from"../chunk-3C7JKJGL.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{BRAND_ICON_NAMES,isBrandIconName}from"../chunk-RQGLDRRF.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-ORV2AVIJ.js";export{WidthsBar}from"../chunk-JB4WXBJB.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-HPZLV3KD.js";export{Slider,SliderGroup}from"../chunk-NY6MLFBX.js";export{Snippet}from"../chunk-JPSWWIBW.js";export{SplitButton_default as SplitButton}from"../chunk-ZISKHQZY.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-ZVDYRXNP.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-KGAYYSFE.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-F4VILY3O.js";export{NumericKeypad}from"../chunk-ENDYHUUR.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PICTURE_TILES_COLUMNS_VAR,PictureTiles}from"../chunk-SLEA47VA.js";export{PositionInput}from"../chunk-P52LXNUU.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-JPE4TYRQ.js";export{SearchableSelect}from"../chunk-G2JPTPRS.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-S7YUQLBN.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-6OGX7V7L.js";import"../chunk-ZCN5BU4U.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{ImageLightbox,lightboxKind}from"../chunk-FXSGIT53.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-LQCNIQ3I.js";export{EmptyState}from"../chunk-VXSYHTBP.js";export{Breadcrumbs}from"../chunk-OZ4R6U2M.js";export{mediaLibraryMenu}from"../chunk-L2WBCXG7.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-ZCGT5YNR.js";export{RenameField}from"../chunk-Q4MOT7TY.js";export{NativeSelect,Select_default as Select}from"../chunk-GEITUFYK.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-TPKNHQIE.js";export{MediaUsedInList}from"../chunk-FFRJ6QZK.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-QBMMORYP.js";export{DisplayChips}from"../chunk-TB2ARUE2.js";export{FilePicker_default as FilePicker}from"../chunk-X4E4RPFE.js";export{FormErrorSummary}from"../chunk-CWVQH2SP.js";export{CornersInput}from"../chunk-BCQSNK2Z.js";export{DatePicker_default as DatePicker}from"../chunk-EZYXY67W.js";export{DateRangePicker,toISODate}from"../chunk-OXWBSZL2.js";export{Calendar}from"../chunk-FZYUTZEV.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{useRootIsDark}from"../chunk-UPXDDO3U.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-JDLJ7DHV.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{AlignmentGrid}from"../chunk-ZYKY4Z7R.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-GNRH43N3.js";export{IconPicker}from"../chunk-L4ZQY4ZG.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-RA2UNNJC.js";export{Popover}from"../chunk-RJVIKGHJ.js";export{InputNumber_default as InputNumber}from"../chunk-25T4YQO7.js";export{UnitMenu}from"../chunk-K42FXX7J.js";export{WidestLabel}from"../chunk-X3LMTOMA.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{BrandAssetEditor}from"../chunk-GEQZUCEO.js";export{MediaUploadField}from"../chunk-QTDR2CTB.js";export{FormField}from"../chunk-6KBDNYRW.js";export{ImageFocusPoint}from"../chunk-5POQCJL6.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{useSort}from"../chunk-XVMCSUAV.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,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,hexToHsv,hexToRgb,hsvToHex,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{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{Gantt}from"../chunk-RDVC32EV.js";export{Segmented}from"../chunk-TNALBYLY.js";import"../chunk-EFKJLUYP.js";export{Kanban}from"../chunk-YCXQDUTW.js";export{statusColumn}from"../chunk-WZWSFYXJ.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";import"../chunk-UVCMV2TL.js";export{DataTable}from"../chunk-CCLK2RPQ.js";export{Pagination}from"../chunk-223XYIIH.js";export{EntityList}from"../chunk-ENVANMHI.js";import"../chunk-UFX7F3KG.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{ListFooter}from"../chunk-DO3DSSAW.js";export{ListLoadError}from"../chunk-MVOYVN3S.js";export{ResizableTable}from"../chunk-4SYPNE3P.js";export{useColumnConfig}from"../chunk-C5OPAULN.js";import"../chunk-ULJQYXHB.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{SunburstChart}from"../chunk-BWQHABH7.js";export{TreemapChart}from"../chunk-XD3M5ZXM.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-EFO72DEI.js";export{RadialBarChart}from"../chunk-UGEA3C5C.js";export{RangeChart}from"../chunk-WPGSU4QG.js";export{RankedBars}from"../chunk-NA4XPE7S.js";export{SankeyChart}from"../chunk-LADP6AJY.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-42DF7CDB.js";export{StatTile}from"../chunk-ELPW25CA.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{FunnelChart}from"../chunk-7SVSHJOO.js";export{HeatmapChart}from"../chunk-QNXTVDIC.js";export{HistogramChart}from"../chunk-CILE3ZCC.js";export{Meter}from"../chunk-U2ZTHOQL.js";export{PieChart}from"../chunk-KSK4VZIM.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-LNCAIY64.js";export{CandlestickChart}from"../chunk-63E4ZZYI.js";export{ChordChart}from"../chunk-SZFULV7I.js";import"../chunk-ZDFMYAQB.js";export{StepChain,StepChainItem}from"../chunk-Z2Z653OO.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-E7BQZL7X.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Avatar,AvatarGroup}from"../chunk-W2TPXKCV.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Z5TE3MEG.js";export{ContextMenu,useContextMenu}from"../chunk-VKZC3NPM.js";export{Banner}from"../chunk-XWJT6TFU.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-6QH7I2V5.js";export{Input_default as Input}from"../chunk-3SIRRK3F.js";export{DropdownMenu}from"../chunk-EX3DARI3.js";import"../chunk-VQBKRBBR.js";export{IconButton_default as IconButton}from"../chunk-NWS5G7FE.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-YWMCW5BN.js";export{TransferProgress}from"../chunk-GUSENWAH.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-VFSAJMNX.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-XU4I2DMR.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-OJI4ROSD.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,dayKeyInZone,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,instantOnDayKey,knownZone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,userToday,userZone}from"../chunk-NHKT5IH6.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{DAY_MS,fromDateKey,toDateKey}from"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-LGGATDPH.js";export{ColumnChart}from"../chunk-G7SILKUY.js";export{DEFAULT_FLOW_CHART_LABELS,FlowChart}from"../chunk-R5WBDXI2.js";export{FLOW_LAYOUT,FLOW_SPEC_LIMITS,layoutFlow,parseFlowSpec}from"../chunk-FAERBT6Y.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartBrush}from"../chunk-MOKABQCY.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-G5UGCAWN.js";export{ChartSkeleton}from"../chunk-ZNV75GAG.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{ImageAnnotator_default as ImageAnnotator}from"../chunk-SM3N5UJ2.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-M2TQOJ3G.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-FBZUEZK7.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-GMLOMLCS.js";export{Dialog}from"../chunk-UTQN5AIO.js";import"../chunk-EIFNESXS.js";export{ItemCount}from"../chunk-SXHV5OLA.js";import"../chunk-SF4IIV5Z.js";import"../chunk-FRCTA5FS.js";import"../chunk-VWGWZY7A.js";import"../chunk-UVHXVSB2.js";export{ColoredBadge}from"../chunk-WRV6QKJN.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-4U5M37SF.js";import"../chunk-F3ZOO23R.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-DPFEQQQU.js";export{VERSION}from"../chunk-JYESSDBZ.js";export{useFocusTrap,useScrollLock}from"../chunk-DWGYC7OD.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,statusLabel,useStatusLabel}from"../chunk-YDJ5IZOU.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-THAPVKEJ.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";export{Icon}from"../chunk-ISVODSRP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-TD3ZQD5R.js";export{Tooltip}from"../chunk-F2RAIGCG.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";export{setShellApiClient}from"../chunk-STKJA4PV.js";export{FitFrame,fitBoxScale,fitFrameStyle,fitScale}from"../chunk-M6UKCZHT.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-VQ35LXDC.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-6OCA7RKQ.js";export{CartesianPlot}from"../chunk-HC5KQZFG.js";import"../chunk-KNZ7YTFH.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{ChartTooltip}from"../chunk-WDQI3FV6.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
|
2
|
+
import"../chunk-7UCZAUAU.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{DashboardTemplate}from"../chunk-EG5MU7XL.js";export{DataTablePage}from"../chunk-YQ5JHHLE.js";export{EmailTemplate}from"../chunk-VRJKV44O.js";export{ErrorBoundary}from"../chunk-PPLPDP6D.js";export{ErrorPage}from"../chunk-QNWC3RWK.js";export{FormLayoutPage}from"../chunk-BNPWUCZX.js";export{GalleryTemplate}from"../chunk-4G7PJ325.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-YT5HMLC7.js";export{ChatTemplate}from"../chunk-F3E3CEZM.js";export{CheckoutTemplate}from"../chunk-RDETBXMP.js";export{TopNav}from"../chunk-MZ3JADHG.js";export{Statistic}from"../chunk-IE6TRMIW.js";export{Stepper}from"../chunk-KTO427N3.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-IJ4JX6WP.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-WJMPTW3G.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-2TXQCA4C.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-BZRFD4DK.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-KQCJWK55.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-7CBWSLCW.js";export{ResizeHandle}from"../chunk-HMOKKMIV.js";export{SettingReset}from"../chunk-A7VNKVZO.js";export{SettingRow}from"../chunk-UC5IC3AM.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-ETQ45TBW.js";export{MetricBar}from"../chunk-FBS55WOX.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-KEVJBI5Q.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-FMLUQCFB.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-LKAGXURQ.js";export{fmtSliderDate,toDayMs}from"../chunk-5CFERCYW.js";export{PageHeader}from"../chunk-NILGK2KJ.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-5URXJCNC.js";export{GlobalSearch,openGlobalSearch}from"../chunk-2J3C2RR4.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-HGOWQO63.js";export{HelpCenter}from"../chunk-XAT2MKNU.js";export{IconRail,IconRailButton}from"../chunk-OF5X4HKC.js";import"../chunk-FQEALPZJ.js";export{CountBadge}from"../chunk-5HFKVEWW.js";export{EditableGrid}from"../chunk-SUSJFGXN.js";export{BudgetBar,budgetState}from"../chunk-KYQKMBSY.js";export{Card,StatCard}from"../chunk-S25KELFW.js";export{ContainerFillChart}from"../chunk-HOROMBJB.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-IOLUF3UL.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-FDDM7VMQ.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-7I5RJPY7.js";export{ICON_NAMES,isIconName}from"../chunk-3C7JKJGL.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useRootIsDark}from"../chunk-UPXDDO3U.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-JDLJ7DHV.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{BRAND_ICON_NAMES,isBrandIconName}from"../chunk-RQGLDRRF.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-KGAYYSFE.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-F4VILY3O.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-ORV2AVIJ.js";export{WidthsBar}from"../chunk-JB4WXBJB.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-HPZLV3KD.js";export{Slider,SliderGroup}from"../chunk-NY6MLFBX.js";export{Snippet}from"../chunk-JPSWWIBW.js";export{SplitButton_default as SplitButton}from"../chunk-ZISKHQZY.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-ZVDYRXNP.js";export{NumericKeypad}from"../chunk-ENDYHUUR.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PICTURE_TILES_COLUMNS_VAR,PictureTiles}from"../chunk-SLEA47VA.js";export{PositionInput}from"../chunk-P52LXNUU.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-JPE4TYRQ.js";export{SearchableSelect}from"../chunk-G2JPTPRS.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-XXTAMF3O.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-6OGX7V7L.js";import"../chunk-ZCN5BU4U.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{ImageLightbox,lightboxKind}from"../chunk-FXSGIT53.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-LQCNIQ3I.js";export{EmptyState}from"../chunk-VXSYHTBP.js";export{Breadcrumbs}from"../chunk-OZ4R6U2M.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-L2WBCXG7.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-ZCGT5YNR.js";export{MediaUsedInList}from"../chunk-FFRJ6QZK.js";export{RenameField}from"../chunk-Q4MOT7TY.js";export{NativeSelect,Select_default as Select}from"../chunk-GEITUFYK.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-TPKNHQIE.js";export{DateRangePicker,toISODate}from"../chunk-OXWBSZL2.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-QBMMORYP.js";export{DisplayChips}from"../chunk-TB2ARUE2.js";export{FilePicker_default as FilePicker}from"../chunk-X4E4RPFE.js";export{FormErrorSummary}from"../chunk-CWVQH2SP.js";export{CornersInput}from"../chunk-BCQSNK2Z.js";export{DatePicker_default as DatePicker}from"../chunk-EZYXY67W.js";export{Calendar}from"../chunk-FZYUTZEV.js";export{useSort}from"../chunk-XVMCSUAV.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,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{AlignmentGrid}from"../chunk-ZYKY4Z7R.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-GNRH43N3.js";export{IconPicker}from"../chunk-L4ZQY4ZG.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-RA2UNNJC.js";export{Popover}from"../chunk-RJVIKGHJ.js";export{InputNumber_default as InputNumber}from"../chunk-25T4YQO7.js";export{UnitMenu}from"../chunk-K42FXX7J.js";export{WidestLabel}from"../chunk-X3LMTOMA.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{BrandAssetEditor}from"../chunk-BVX7LUAW.js";export{MediaUploadField}from"../chunk-IUQJGFEO.js";export{ImageFocusPoint}from"../chunk-5POQCJL6.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{Gantt}from"../chunk-RDVC32EV.js";export{Segmented}from"../chunk-TNALBYLY.js";import"../chunk-EFKJLUYP.js";export{Kanban}from"../chunk-YCXQDUTW.js";export{statusColumn}from"../chunk-WZWSFYXJ.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";import"../chunk-UVCMV2TL.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{DataTable}from"../chunk-CCLK2RPQ.js";export{Pagination}from"../chunk-223XYIIH.js";export{EntityList}from"../chunk-SHHRC5XK.js";import"../chunk-UFX7F3KG.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{ListFooter}from"../chunk-DO3DSSAW.js";export{ListLoadError}from"../chunk-MVOYVN3S.js";export{ResizableTable}from"../chunk-J4CVYOY3.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-C5OPAULN.js";import"../chunk-ULJQYXHB.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{TreemapChart}from"../chunk-XD3M5ZXM.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-EFO72DEI.js";export{RangeChart}from"../chunk-WPGSU4QG.js";export{RankedBars}from"../chunk-NA4XPE7S.js";export{SankeyChart}from"../chunk-LADP6AJY.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-42DF7CDB.js";export{StatTile}from"../chunk-ELPW25CA.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-BWQHABH7.js";export{FunnelChart}from"../chunk-7SVSHJOO.js";export{HeatmapChart}from"../chunk-QNXTVDIC.js";export{HistogramChart}from"../chunk-CILE3ZCC.js";export{Meter}from"../chunk-U2ZTHOQL.js";export{PieChart}from"../chunk-FUPU7Z2G.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-PBSCF2ML.js";export{RadialBarChart}from"../chunk-23LK4PLJ.js";export{ChordChart}from"../chunk-SZFULV7I.js";import"../chunk-ZDFMYAQB.js";export{StepChain,StepChainItem}from"../chunk-Z2Z653OO.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-E7BQZL7X.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Avatar,AvatarGroup}from"../chunk-W2TPXKCV.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Z5TE3MEG.js";export{ContextMenu,useContextMenu}from"../chunk-VKZC3NPM.js";export{Banner}from"../chunk-XWJT6TFU.js";export{Input_default as Input}from"../chunk-3SIRRK3F.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-6QH7I2V5.js";export{DropdownMenu}from"../chunk-EX3DARI3.js";import"../chunk-VQBKRBBR.js";export{IconButton_default as IconButton}from"../chunk-NWS5G7FE.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-YWMCW5BN.js";export{TransferProgress}from"../chunk-GUSENWAH.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-VFSAJMNX.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-WJTNQ7YD.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-OJI4ROSD.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,dayKeyInZone,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,instantOnDayKey,knownZone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,userToday,userZone}from"../chunk-NHKT5IH6.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{DAY_MS,fromDateKey,toDateKey}from"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-ABPVCVCT.js";export{DEFAULT_FLOW_CHART_LABELS,FlowChart}from"../chunk-R5WBDXI2.js";export{FLOW_LAYOUT,FLOW_SPEC_LIMITS,layoutFlow,parseFlowSpec}from"../chunk-FAERBT6Y.js";export{ChartBrush}from"../chunk-MOKABQCY.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-G5UGCAWN.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-G7SILKUY.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-ZNV75GAG.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{ImageAnnotator_default as ImageAnnotator}from"../chunk-SM3N5UJ2.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";import"../chunk-YI4T5I5D.js";export{Result}from"../chunk-M2TQOJ3G.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-FBZUEZK7.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-GMLOMLCS.js";export{Dialog}from"../chunk-UTQN5AIO.js";import"../chunk-EIFNESXS.js";export{ItemCount}from"../chunk-SXHV5OLA.js";import"../chunk-SF4IIV5Z.js";import"../chunk-FRCTA5FS.js";import"../chunk-VWGWZY7A.js";import"../chunk-UVHXVSB2.js";export{ColoredBadge}from"../chunk-WRV6QKJN.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-4U5M37SF.js";import"../chunk-F3ZOO23R.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-DPFEQQQU.js";export{VERSION}from"../chunk-VGUYAVDG.js";export{useFocusTrap,useScrollLock}from"../chunk-DWGYC7OD.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,statusLabel,useStatusLabel}from"../chunk-YDJ5IZOU.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-THAPVKEJ.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";export{Icon}from"../chunk-ISVODSRP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-TD3ZQD5R.js";export{Tooltip}from"../chunk-F2RAIGCG.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";export{setShellApiClient}from"../chunk-STKJA4PV.js";export{FitFrame,fitBoxScale,fitFrameStyle,fitScale}from"../chunk-M6UKCZHT.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-VQ35LXDC.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";export{BoxPlotChart}from"../chunk-6OCA7RKQ.js";export{CandlestickChart}from"../chunk-63E4ZZYI.js";export{CartesianPlot}from"../chunk-HC5KQZFG.js";import"../chunk-KNZ7YTFH.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{ChartTooltip}from"../chunk-WDQI3FV6.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
package/dist/ui.css
CHANGED
|
@@ -3395,6 +3395,17 @@ input.rosh-field-shows-choice::placeholder { color: inherit; opacity: 1; }
|
|
|
3395
3395
|
:is([data-theme="dark"], .dark) :where(:root:not(.rosh-host-elements) *)::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
|
|
3396
3396
|
:is([data-theme="dark"], .dark) :where(:root:not(.rosh-host-elements) *)::-webkit-scrollbar-thumb:hover { background: #585b70; }
|
|
3397
3397
|
|
|
3398
|
+
/* Inside a window a scrollbar is the thumb alone, as on macOS: no track and no
|
|
3399
|
+
frame around it (Victor Mau, 2026-11-18). A window has no title bar and no
|
|
3400
|
+
bottom bar, so a framed track ran the full height of the window's edge and
|
|
3401
|
+
read as a second border. Written with the attribute twice so it outranks
|
|
3402
|
+
the dark rule above; `.grid-scroll` (an editable grid, which forces its
|
|
3403
|
+
bars visible) keeps its own look. */
|
|
3404
|
+
[data-modal-panel][data-modal-panel] :not(.grid-scroll)::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
3405
|
+
[data-modal-panel][data-modal-panel] :not(.grid-scroll)::-webkit-scrollbar-track,
|
|
3406
|
+
[data-modal-panel][data-modal-panel] :not(.grid-scroll)::-webkit-scrollbar-corner { background: transparent; }
|
|
3407
|
+
[data-modal-panel][data-modal-panel] :not(.grid-scroll)::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
|
|
3408
|
+
|
|
3398
3409
|
/* ── Opacity-modified utilities ───────────────────────────────────────────
|
|
3399
3410
|
A Tailwind opacity modifier makes a DIFFERENT class name, so every remap in
|
|
3400
3411
|
this sheet — all written against bare class names — stops at the base. The
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{APP_VERSION,VERSION}from"./chunk-
|
|
1
|
+
export{APP_VERSION,VERSION}from"./chunk-VGUYAVDG.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.20.0",
|
|
4
4
|
"description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Efficient Pty Ltd",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-QSJMLHBD.js";import{useWidgetSettings as n}from"./chunk-ZI2FDUYJ.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-M2TQOJ3G.js";import"./chunk-FBZUEZK7.js";import"./chunk-5A7MWTXX.js";import"./chunk-BG3C4ALM.js";import"./chunk-GMLOMLCS.js";import"./chunk-UTQN5AIO.js";import"./chunk-EIFNESXS.js";import"./chunk-SXHV5OLA.js";import"./chunk-SF4IIV5Z.js";import"./chunk-FRCTA5FS.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-WRV6QKJN.js";import"./chunk-AW7TOB6N.js";import"./chunk-4U5M37SF.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-DPFEQQQU.js";import"./chunk-DWGYC7OD.js";import"./chunk-YDJ5IZOU.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import{Icon as r}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-IUVGHHR3.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as o,useEffect as s}from"react";import{jsxs as l,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[b,g]=c(null),[j,N]=c(!1),[y,C]=c(""),[x,f]=c([]),[v,$]=c(!1),[S,U]=c(()=>e(h)),[F,T]=c(!1),[E,A]=c(S),D=i(null);n(o(()=>{A({...S}),T(!0)},[S]));const W=o(e=>{C(""),k(t=>j||"0"===t?(N(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[j]),Z=o(()=>{k("0"),d(null),g(null),N(!1)},[]),J=o((e,t,n)=>{switch(n){case"+":return e+t;case"-":return e-t;case"×":return e*t;case"÷":return 0===t?0:e/t;default:return t}},[]),R=o(e=>{const t=parseFloat(m);if(null!==p&&b&&!j){const e=J(p,t,b);k(String(e)),d(e),f(n=>[`${p} ${b} ${t} = ${e}`,...n].slice(0,20))}else d(t);g(e),N(!0)},[m,p,b,j,J]),M=o(()=>{if(null===p||!b)return;const e=parseFloat(m),t=J(p,e,b),n=`${p} ${b} ${e} =`;f(e=>[`${n} ${t}`,...e].slice(0,20)),C(n),k(String(t)),d(null),g(null),N(!0)},[m,p,b,J]),Q=o(()=>{k(e=>String(parseFloat(e)/100))},[]),V=o(()=>{k(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);s(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?W(e.key):"."===e.key?W("."):"+"===e.key?R("+"):"-"===e.key?R("-"):"*"===e.key?R("×"):"/"===e.key?(e.preventDefault(),R("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&D.current?.contains(e.target)&&e.preventDefault(),M()):"Escape"===e.key?Z():"Backspace"===e.key?k(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&Q())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[W,R,M,Z,Q]);const w="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",H=`${w} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,O=`${w} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,B=`${w} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,G=`${w} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
|
|
2
|
-
return l(a,{children:[
|
|
3
|
-
/* @__PURE__ */l("div",{ref:D,className:"flex flex-col h-full",style:{opacity:S.activeOpacity/100,backdropFilter:S.activeBlur>0?`blur(${S.activeBlur}px)`:void 0},children:[
|
|
4
|
-
/* @__PURE__ */l("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
|
|
5
|
-
/* @__PURE__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:x.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:e},t))}),(y||b&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:y||`${p} ${b} ${j?"":m}`}),
|
|
6
|
-
/* @__PURE__ */l("div",{className:"flex items-center gap-2",children:[
|
|
7
|
-
/* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(m),$(!0),setTimeout(()=>$(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */u(r,v?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
|
|
8
|
-
/* @__PURE__ */u("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(e=>{const t=parseFloat(e);return isNaN(t)||e.endsWith(".")||e.endsWith(".0")||Math.abs(t)<1e15&&e.length<16?e:t.toExponential(6)})(m)})]})]}),
|
|
9
|
-
/* @__PURE__ */l("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
|
|
10
|
-
/* @__PURE__ */u("button",{onClick:Z,className:B,children:"AC"}),
|
|
11
|
-
/* @__PURE__ */u("button",{onClick:V,className:B,children:"+/−"}),
|
|
12
|
-
/* @__PURE__ */u("button",{onClick:Q,className:B,children:"%"}),
|
|
13
|
-
/* @__PURE__ */u("button",{onClick:()=>R("÷"),className:`${O} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
|
|
14
|
-
/* @__PURE__ */u("button",{onClick:()=>W("7"),className:H,children:"7"}),
|
|
15
|
-
/* @__PURE__ */u("button",{onClick:()=>W("8"),className:H,children:"8"}),
|
|
16
|
-
/* @__PURE__ */u("button",{onClick:()=>W("9"),className:H,children:"9"}),
|
|
17
|
-
/* @__PURE__ */u("button",{onClick:()=>R("×"),className:`${O} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
|
|
18
|
-
/* @__PURE__ */u("button",{onClick:()=>W("4"),className:H,children:"4"}),
|
|
19
|
-
/* @__PURE__ */u("button",{onClick:()=>W("5"),className:H,children:"5"}),
|
|
20
|
-
/* @__PURE__ */u("button",{onClick:()=>W("6"),className:H,children:"6"}),
|
|
21
|
-
/* @__PURE__ */u("button",{onClick:()=>R("-"),className:`${O} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
|
|
22
|
-
/* @__PURE__ */u("button",{onClick:()=>W("1"),className:H,children:"1"}),
|
|
23
|
-
/* @__PURE__ */u("button",{onClick:()=>W("2"),className:H,children:"2"}),
|
|
24
|
-
/* @__PURE__ */u("button",{onClick:()=>W("3"),className:H,children:"3"}),
|
|
25
|
-
/* @__PURE__ */u("button",{onClick:()=>R("+"),className:`${O} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
|
|
26
|
-
/* @__PURE__ */u("button",{onClick:()=>W("0"),className:`${H} col-span-2`,children:"0"}),
|
|
27
|
-
/* @__PURE__ */u("button",{onClick:()=>W("."),className:H,children:"."}),
|
|
28
|
-
/* @__PURE__ */u("button",{onClick:M,className:G,children:"="})]})]}),
|
|
29
|
-
/* @__PURE__ */u(t,{open:F,onClose:()=>T(!1),title:"Calculator Settings",appearance:E,onAppearanceChange:A,onSave:()=>{U(E),localStorage.setItem(h,JSON.stringify(E)),T(!1)}})]})}export{m as default};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{loadAppearance as t,WidgetSettingsModal as e}from"./chunk-QSJMLHBD.js";import{useWidgetSettings as r}from"./chunk-ZI2FDUYJ.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-M2TQOJ3G.js";import"./chunk-FBZUEZK7.js";import"./chunk-5A7MWTXX.js";import"./chunk-BG3C4ALM.js";import"./chunk-GMLOMLCS.js";import"./chunk-UTQN5AIO.js";import"./chunk-EIFNESXS.js";import"./chunk-SXHV5OLA.js";import"./chunk-SF4IIV5Z.js";import"./chunk-FRCTA5FS.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-WRV6QKJN.js";import"./chunk-AW7TOB6N.js";import"./chunk-4U5M37SF.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-DPFEQQQU.js";import"./chunk-DWGYC7OD.js";import"./chunk-YDJ5IZOU.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as n}from"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-IUVGHHR3.js";import"./chunk-C3QOHMR6.js";import{useState as s,useCallback as o,useEffect as c}from"react";import{jsxs as i,Fragment as a,jsx as m}from"react/jsx-runtime";var l=["USD","CNY","AUD","GBP","EUR","JPY","CAD","THB","NZD","SGD","HKD","CHF","KRW","INR","MXN","BRL"],u=[["USD","CNY"],["USD","AUD"],["GBP","USD"],["USD","JPY"]],p="currency_pairs",h="currency_appearance",d="currency_rates_cache";function k(t){try{const e=JSON.parse(localStorage.getItem(d)||"{}")[t];if(e&&Date.now()-e.timestamp<36e5)return e.rates}catch{}return null}function g(t,e){try{const r=JSON.parse(localStorage.getItem(d)||"{}");r[t]={rates:e,timestamp:Date.now()},localStorage.setItem(d,JSON.stringify(r))}catch{}}function j(){try{const t=JSON.parse(localStorage.getItem(p)||"");if(Array.isArray(t)&&t.length)return t.slice(0,4)}catch{}return u}var N={USD:"🇺🇸",CNY:"🇨🇳",AUD:"🇦🇺",GBP:"🇬🇧",JPY:"🇯🇵",CAD:"🇨🇦",EUR:"🇪🇺",THB:"🇹🇭",NZD:"🇳🇿",SGD:"🇸🇬",HKD:"🇭🇰",CHF:"🇨🇭",KRW:"🇰🇷",INR:"🇮🇳",MXN:"🇲🇽",BRL:"🇧🇷"};function f(){const[u,d]=s(j),[f,S]=s(()=>t(h)),[x,y]=s({}),[b,D]=s(!1),[U,C]=s(!1),[v,J]=s([]),[A,R]=s(f),[F,B]=s("USD"),[H,I]=s("CNY");r(o(()=>{J([...u]),R({...f}),C(!0)},[u,f])),c(()=>{const t=[...new Set(u.map(([t])=>t))];let e=!0;return async function(){D(!0);const r={};for(const e of t){const t=k(e);if(t)r[e]=t;else try{const t=await fetch(`https://open.er-api.com/v6/latest/${e}`),n=await t.json();n.rates&&(r[e]=n.rates,g(e,n.rates))}catch{}}e&&(y(r),D(!1))}(),()=>{e=!1}},[u]);/* @__PURE__ */
|
|
2
|
-
return i(a,{children:[
|
|
3
|
-
/* @__PURE__ */m("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${f.activeOpacity/100})`,backdropFilter:f.activeBlur>0?`blur(${f.activeBlur}px)`:void 0},children:/* @__PURE__ */i("div",{className:"px-4 py-3 space-y-1",children:[b&&/* @__PURE__ */m(n,{size:"sm",padding:"py-4",label:"Loading rates"}),u.map(([t,e],r)=>{const n=x[t]?.[e];/* @__PURE__ */
|
|
4
|
-
return i("button",{onClick:()=>{const t=u.map((t,e)=>e===r?[t[1],t[0]]:t);d(t),localStorage.setItem(p,JSON.stringify(t))},className:"flex items-center justify-between px-2 py-2 border-b border-gray-200 last:border-0 w-full hover:bg-gray-100 rounded transition-colors cursor-pointer",children:[
|
|
5
|
-
/* @__PURE__ */i("div",{className:"flex items-center gap-2",children:[
|
|
6
|
-
/* @__PURE__ */m("span",{className:"text-base",children:N[t]||""}),
|
|
7
|
-
/* @__PURE__ */m("span",{className:"text-sm font-semibold text-gray-700",children:t}),
|
|
8
|
-
/* @__PURE__ */m("svg",{className:"h-3 w-3 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 16V4m0 0L3 8m4-4l4 4m6 0v12m0 0l4-4m-4 4l-4-4"})}),
|
|
9
|
-
/* @__PURE__ */m("span",{className:"text-base",children:N[e]||""}),
|
|
10
|
-
/* @__PURE__ */m("span",{className:"text-sm font-semibold text-gray-700",children:e})]}),
|
|
11
|
-
/* @__PURE__ */m("div",{className:"text-base font-mono font-semibold text-gray-900 tabular-nums",children:null!=n?n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:4}):"—"})]},`${t}-${e}-${r}`)})]})}),
|
|
12
|
-
/* @__PURE__ */m(e,{open:U,onClose:()=>C(!1),title:"Currency Settings",appearance:A,onAppearanceChange:R,onSave:()=>{if(0===v.length)return;const t=v.slice(0,4);d(t),S(A),localStorage.setItem(p,JSON.stringify(t)),localStorage.setItem(h,JSON.stringify(A)),C(!1)},children:/* @__PURE__ */i("div",{children:[
|
|
13
|
-
/* @__PURE__ */i("h3",{className:"text-sm font-semibold text-ink mb-2",children:["Currency Pairs ",
|
|
14
|
-
/* @__PURE__ */i("span",{className:"text-2xs font-normal text-ink-faintest",children:["(",v.length,"/",4,")"]})]}),
|
|
15
|
-
/* @__PURE__ */m("div",{className:"space-y-1 mb-2",children:v.map(([t,e],r)=>/* @__PURE__ */i("div",{className:"flex items-center justify-between py-1 px-2 bg-gray-50 rounded",children:[
|
|
16
|
-
/* @__PURE__ */i("span",{className:"text-sm",children:[N[t]||""," ",t," → ",N[e]||""," ",e]}),
|
|
17
|
-
/* @__PURE__ */m("button",{onClick:()=>J(t=>t.filter((t,e)=>e!==r)),className:"text-red-400 hover:text-red-600",children:"×"})]},r))}),v.length<4?/* @__PURE__ */i("div",{className:"flex items-center gap-2",children:[
|
|
18
|
-
/* @__PURE__ */m("select",{value:F,onChange:t=>B(t.target.value),className:"bg-gray-50 border border-gray-200 rounded px-2 py-1 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500",children:l.map(t=>/* @__PURE__ */m("option",{children:t},t))}),
|
|
19
|
-
/* @__PURE__ */m("span",{className:"text-gray-400",children:"→"}),
|
|
20
|
-
/* @__PURE__ */m("select",{value:H,onChange:t=>I(t.target.value),className:"bg-gray-50 border border-gray-200 rounded px-2 py-1 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500",children:l.map(t=>/* @__PURE__ */m("option",{children:t},t))}),
|
|
21
|
-
/* @__PURE__ */m("button",{onClick:()=>{F!==H&&v.length<4&&J(t=>[...t,[F,H]])},className:"text-sm font-medium text-blue-600 hover:text-blue-800 px-2",children:"+ Add"})]}):/* @__PURE__ */i("p",{className:"text-2xs text-ink-faintest italic",children:["Max ",4," pairs — remove one to add another."]})]})})]})}export{f as default};
|
package/dist/Notepad-KXIBS5XS.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{getNumberingConfigs as e}from"./chunk-34HRPEQD.js";import{SidebarLayout as t}from"./chunk-U5RG34NE.js";import"./chunk-QWK6DRSN.js";import"./chunk-HMOKKMIV.js";import{timeAgo as r}from"./chunk-OJI4ROSD.js";import"./chunk-NHKT5IH6.js";import"./chunk-36BRD5J3.js";import"./chunk-JRQMX4PK.js";import"./chunk-LF27WIN2.js";import{AboutApp as n}from"./chunk-SUTABWMQ.js";import{useWindowManager as o,client_default as i}from"./chunk-ZI2FDUYJ.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-M2TQOJ3G.js";import"./chunk-FBZUEZK7.js";import"./chunk-5A7MWTXX.js";import"./chunk-BG3C4ALM.js";import"./chunk-GMLOMLCS.js";import"./chunk-UTQN5AIO.js";import"./chunk-EIFNESXS.js";import"./chunk-SXHV5OLA.js";import"./chunk-SF4IIV5Z.js";import"./chunk-FRCTA5FS.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-WRV6QKJN.js";import"./chunk-AW7TOB6N.js";import"./chunk-4U5M37SF.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as c}from"./chunk-DPFEQQQU.js";import"./chunk-JYESSDBZ.js";import"./chunk-DWGYC7OD.js";import"./chunk-YDJ5IZOU.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import{Icon as s}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import{toast_default as l}from"./chunk-VQ35LXDC.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-IUVGHHR3.js";import"./chunk-C3QOHMR6.js";import{useRef as a,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as g,jsx as x}from"react/jsx-runtime";var k=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var y={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:j,save:N}=c(),{data:v}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),T=a({});p(()=>{if(!v)return;const e={};for(const t of v){const r=y[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}T.current=e},[v]);const w=j.notepad_notes||[],[S,_]=d(null),[C,U]=d(""),[D,W]=d(""),[R,O]=d("yellow"),[F,I]=d(!1),[Q,Z]=d(!1),J=a(null),M=a();p(()=>{if(!S&&w.length>0){const e=w[0];_(e.id),U(e.title),W(e.content),O(e.color)}},[w.length]);const V=m(e=>{N({notepad_notes:e})},[N]),X=m(()=>{if(!S||!F)return;const e=w.map(e=>e.id===S?{...e,title:C,content:D,color:R,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);V(e),I(!1)},[S,F,C,D,R,w,V]);p(()=>{if(F)return M.current&&clearTimeout(M.current),M.current=setTimeout(X,800),()=>{M.current&&clearTimeout(M.current)}},[F,X]),p(()=>()=>{F&&X()},[]);const $=e=>{F&&X(),_(e.id),U(e.title),W(e.content),O(e.color),I(!1),Z(!1)},A=e=>{const t=D.slice(0,e),r=D.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=D.slice(e+r[0].length);W(t+n+o),I(!0)},H=async(e,t)=>{const r=T.current[e];if(!r)return;const n=`${e}#${t}`;try{const{data:e}=await i.get(r.endpoint,{params:{search:n,page_size:1}}),t=(e?.results??e??[])[0];t?f(r.entityType,t.id,t,n):l.error(`${n} not found`)}catch{l.error(`Failed to look up ${n}`)}},E="Start writing...\n\nTips:\n [] Type [] for a checkbox, click to toggle\n SO#35001 Type XX#NNNNN to link entities (SO, PO, CI, VI, PL, etc.)",K=/* @__PURE__ */h(g,{children:[
|
|
2
|
-
/* @__PURE__ */x("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{F&&X();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...w];V(t),_(e.id),U(""),W(""),O("yellow"),I(!1),Z(!0),setTimeout(()=>J.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-accent-fill text-on-accent px-3 min-h-8 py-1 text-sm font-medium hover:bg-accent-fill-hover transition-colors",children:[
|
|
3
|
-
/* @__PURE__ */x(s,{name:"add",className:"h-4 w-4",strokeWidth:2}),"New Note"]})}),
|
|
4
|
-
/* @__PURE__ */x("div",{className:"flex-1 overflow-y-auto",children:0===w.length?/* @__PURE__ */x("p",{className:"text-sm text-gray-400 text-center py-8 px-4",children:"No notes yet. Create one to get started."}):w.map(e=>{const t=(n=e.color,k.find(e=>e.key===n)||k[0]);var n;/* @__PURE__ */
|
|
5
|
-
return h("button",{onClick:()=>$(e),className:"w-full text-left px-3 py-3 border-b border-line-subtle transition-colors "+(S===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
|
|
6
|
-
/* @__PURE__ */h("div",{className:"flex items-center gap-2",children:[
|
|
7
|
-
/* @__PURE__ */x("div",{className:`w-3 h-3 rounded-full shrink-0 ${t.dot}`}),
|
|
8
|
-
/* @__PURE__ */x("span",{className:"text-sm font-medium text-gray-900 truncate flex-1",children:e.title||"Untitled"})]}),
|
|
9
|
-
/* @__PURE__ */x("p",{className:"text-xs text-ink-faintest mt-0.5 truncate ml-5",children:e.content.replace(/\[[ xX]?\]/g,"").slice(0,60)||"Empty note"}),
|
|
10
|
-
/* @__PURE__ */x("p",{className:"text-2xs text-gray-300 mt-0.5 ml-5",children:r(e.updated_at)})]},e.id)})})]});/* @__PURE__ */
|
|
11
|
-
return h("div",{className:"h-full",children:[
|
|
12
|
-
/* @__PURE__ */x(n,{app:"notepad"}),
|
|
13
|
-
/* @__PURE__ */x(t,{sidebar:K,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:S?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
|
|
14
|
-
/* @__PURE__ */h("div",{className:"flex items-center gap-2 px-4 py-2 border-b border-gray-200",children:[
|
|
15
|
-
/* @__PURE__ */x("input",{value:C,onChange:e=>{U(e.target.value),I(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
|
|
16
|
-
/* @__PURE__ */x("div",{className:"flex gap-1",children:k.map(e=>/* @__PURE__ */x("button",{onClick:()=>{O(e.key),I(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${R===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
|
|
17
|
-
/* @__PURE__ */x("button",{onClick:()=>(e=>{const t=w.filter(t=>t.id!==e);if(V(t),S===e){const e=t[0];e?$(e):(_(null),U(""),W(""))}})(S),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */x(s,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),Q?/* @__PURE__ */x("textarea",{ref:J,value:D,onChange:e=>{W(e.target.value),I(!0)},onBlur:()=>{Z(!1),F&&X()},placeholder:E,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */x("div",{onClick:()=>{Z(!0),setTimeout(()=>J.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:D?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],c=/([A-Z]{2,4})#(\d{4,6})/g;let l;for(;null!==(l=c.exec(e));){const e=l[1],t=l[2];if(T.current[e]){const n=l.index,o=l[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */x("button",{onClick:()=>H(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let a=0;for(let e=0;e<r;e++)a+=t[e].length+1;for(;null!==(l=b.exec(e));){const e="x"===l[1]||"X"===l[1],t=l.index,n=a+t;i.push({idx:t,len:l[0].length,render:()=>/* @__PURE__ */x("button",{onClick:()=>A(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */x(s,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */x("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */x("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */x("span",{children:""},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
|
|
18
|
-
return x("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(D):/* @__PURE__ */x("p",{className:"text-gray-300 whitespace-pre-line",children:E})}),
|
|
19
|
-
/* @__PURE__ */h("div",{className:"px-4 min-h-8 py-1 border-t border-line-subtle flex items-center gap-4 text-2xs text-ink-faintest",children:[
|
|
20
|
-
/* @__PURE__ */x("span",{children:"[] checkbox"}),
|
|
21
|
-
/* @__PURE__ */x("span",{children:"SO#35001 entity link"}),
|
|
22
|
-
/* @__PURE__ */x("span",{className:"ml-auto",children:Q?"Editing":"Click to edit"})]})]}):/* @__PURE__ */x("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
|
|
23
|
-
/* @__PURE__ */x(s,{name:"page",className:"h-12 w-12 mx-auto mb-3 text-gray-300",strokeWidth:1}),
|
|
24
|
-
/* @__PURE__ */x("p",{className:"text-sm",children:"Select a note or create a new one"})]})})})]})}export{f as default};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-QSJMLHBD.js";import{subscribePomo as o,getPomoSnapshot as n,setPomoDurations as a,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as i,setPomoFocusSound as l,useTodoTasks as c,pomodoroToday as u,migratePomodoroTasksOnce as d,pomoSwitchMode as m,pomoPause as h,pomoStart as p,ALARM_OPTIONS as g,playAlarm as k,FOCUS_SOUND_OPTIONS as f,previewFocusSound as b}from"./chunk-HPHDLN6E.js";import{PLACEHOLDER_INK as x}from"./chunk-AYZY3YNC.js";import{formatTime as v}from"./chunk-NHKT5IH6.js";import"./chunk-36BRD5J3.js";import"./chunk-JRQMX4PK.js";import{pad2 as y}from"./chunk-LF27WIN2.js";import{useWidgetSettings as N}from"./chunk-ZI2FDUYJ.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-M2TQOJ3G.js";import"./chunk-FBZUEZK7.js";import"./chunk-5A7MWTXX.js";import"./chunk-BG3C4ALM.js";import"./chunk-GMLOMLCS.js";import"./chunk-UTQN5AIO.js";import"./chunk-EIFNESXS.js";import"./chunk-SXHV5OLA.js";import"./chunk-SF4IIV5Z.js";import"./chunk-FRCTA5FS.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-WRV6QKJN.js";import"./chunk-AW7TOB6N.js";import"./chunk-4U5M37SF.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as C}from"./chunk-DPFEQQQU.js";import"./chunk-DWGYC7OD.js";import"./chunk-YDJ5IZOU.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import{Icon as S}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-VQ35LXDC.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-IUVGHHR3.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as j,useEffect as w,useMemo as B,useState as M,useRef as T,useCallback as I}from"react";import{jsxs as P,Fragment as A,jsx as D}from"react/jsx-runtime";var V="pomodoro_appearance",L="pomodoro_active_task_id",R={focus:"Pomodoro",short:"Short Break",long:"Long Break"},F={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var U=25,W=5,$=15,H=!1,J=!1,Z=4,E=!0,Q=!0,O="bell",Y=100,G=1,K="none",X=50,_=(e,t,o,n)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(o,Math.round(e))):n;function z(){const t=j(o,n,n),{prefs:k,save:b}=C(),x=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:_(t.focusMinutes,1,120,U),shortBreakMinutes:_(t.shortBreakMinutes,1,120,W),longBreakMinutes:_(t.longBreakMinutes,1,120,$),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:H,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:J,longBreakInterval:_(t.longBreakInterval,1,20,Z),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:E,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:Q,alarmSound:g.some(e=>e.id===t.alarmSound)?t.alarmSound:O,alarmVolume:_(t.alarmVolume,0,100,Y),alarmRepeat:_(t.alarmRepeat,1,5,G),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:K,focusVolume:_(t.focusVolume,0,100,X)}}(k.pomodoro_settings);w(()=>{a({focus:60*x.focusMinutes,short:60*x.shortBreakMinutes,long:60*x.longBreakMinutes})},[x.focusMinutes,x.shortBreakMinutes,x.longBreakMinutes]),w(()=>{r(x.alarmSound),s(x.alarmVolume,x.alarmRepeat)},[x.alarmSound,x.alarmVolume,x.alarmRepeat]),w(()=>{i({autoStartBreaks:x.autoStartBreaks,autoStartPomodoros:x.autoStartPomodoros,longBreakInterval:x.longBreakInterval})},[x.autoStartBreaks,x.autoStartPomodoros,x.longBreakInterval]),w(()=>{l(x.focusSound,x.focusVolume)},[x.focusSound,x.focusVolume]),w(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const z=c(),ee=z.tasks,te=B(()=>u(),[]),oe=function(e,t){return B(()=>t?(e=>{const t=[],o=[];for(const n of e)(n.done?o:t).push(n);return[...t,...o]})(e):e,[e,t])}(B(()=>ee.filter(e=>!!e.dueDate&&(e.dueDate===te||e.dueDate<te&&!e.done)),[ee,te]),x.checkToBottom),[ne,ae]=M(()=>localStorage.getItem(L)),[re,se]=M(!1),[ie,le]=M(null),ce=T(!1);w(()=>{ce.current||(ce.current=!0,d(ee,z.setAllTasks))},[]),w(()=>{try{ne?localStorage.setItem(L,ne):localStorage.removeItem(L)}catch{}},[ne]),w(()=>{if(!ie)return;const e=()=>le(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[ie]);const ue=T(t.streak);w(()=>{if(t.streak>ue.current&&ne){const e=ee.find(e=>e.id===ne);if(e){const t=(e.completed??0)+1,o=e.estimated??0,n=x.autoCheckTasks&&o>0&&t>=o;z.updateTask(ne,{completed:t,done:e.done||n})}}ue.current=t.streak},[t.streak,ne,x.autoCheckTasks,ee,z]);const me=oe.reduce((e,t)=>e+(t.completed??0),0),he=oe.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),pe=oe.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),ge=t.running&&"focus"===t.mode?t.remaining:0,ke=pe*x.focusMinutes*60+ge,fe=new Date(Date.now()+1e3*ke),be=v(fe.toISOString(),{clock:{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}}),xe=(ke/3600).toFixed(1),ve=ne?ee.find(e=>e.id===ne)??null:null,ye=y(Math.floor(t.remaining/60)),Ne=y(t.remaining%60),[Ce,Se]=M(()=>e(V)),[je,we]=M(!1),[Be,Me]=M(Ce),[Te,Ie]=M(x);N(I(()=>{Me({...Ce}),Ie({...x}),we(!0)},[Ce,x]));const Pe="focus"!==t.mode,Ae=F[t.mode],De=Pe?(Ve=Ae,Le=Ce.activeOpacity/100,`rgba(${parseInt(Ve.slice(1,3),16)}, ${parseInt(Ve.slice(3,5),16)}, ${parseInt(Ve.slice(5,7),16)}, ${Le})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${Ce.activeOpacity/100})`;var Ve,Le;const Re={primary:Pe?"text-white":"text-gray-900",secondary:Pe?"text-white/85":"text-gray-700",muted:Pe?"text-white/65":"text-gray-500",tabActive:Pe?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:Pe?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:Pe?"border-white/30":"border-gray-200",softDivider:Pe?"border-white/20":"border-gray-200",iconBtn:Pe?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:Pe?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},Fe=Pe?Ae:"#0f172a";/* @__PURE__ */
|
|
2
|
-
return P(A,{children:[
|
|
3
|
-
/* @__PURE__ */P("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${Re.primary}`,style:{backgroundColor:De,backdropFilter:Ce.activeBlur>0?`blur(${Ce.activeBlur}px)`:void 0},children:[
|
|
4
|
-
/* @__PURE__ */D("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */D("button",{onClick:()=>m(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?Re.tabActive:Re.tabInactive}`,children:R[e]},e))}),
|
|
5
|
-
/* @__PURE__ */P("div",{className:"text-center font-bold tabular-nums leading-none tracking-tight mt-3",style:{fontSize:"4.5rem"},children:[ye,":",Ne]}),
|
|
6
|
-
/* @__PURE__ */D("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */D("button",{onClick:()=>t.running?h():p(),className:"bg-surface px-12 py-3 rounded-md font-bold text-base shadow-[0_4px_0_rgba(0,0,0,0.12)] hover:shadow-[0_3px_0_rgba(0,0,0,0.12)] active:translate-y-1 active:shadow-none transition-all",style:{color:Fe,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
|
|
7
|
-
/* @__PURE__ */D("div",{className:"px-3 py-3 text-center",children:ve?/* @__PURE__ */P(A,{children:[
|
|
8
|
-
/* @__PURE__ */P("div",{className:`text-xs leading-tight ${Re.muted}`,children:["#",(ve.completed??0)+1]}),
|
|
9
|
-
/* @__PURE__ */D("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${Re.primary}`,children:ve.name})]}):/* @__PURE__ */D("div",{className:`text-xs italic ${Re.muted}`,children:"No task selected"})}),
|
|
10
|
-
/* @__PURE__ */P("div",{className:"px-3 mt-1 flex items-center justify-between",children:[
|
|
11
|
-
/* @__PURE__ */D("h3",{className:`text-base font-bold tracking-tight ${Re.primary}`,children:"Tasks"}),
|
|
12
|
-
/* @__PURE__ */D("button",{className:`rounded p-1 transition-colors ${Re.iconBtn}`,"aria-label":"Tasks menu",tabIndex:-1,children:/* @__PURE__ */D(S,{name:"more-vertical",look:"solid",className:"h-4 w-4"})})]}),
|
|
13
|
-
/* @__PURE__ */D("div",{className:`border-t mx-3 mt-2 ${Re.divider}`}),
|
|
14
|
-
/* @__PURE__ */P("div",{className:"flex-1 px-3 py-3 space-y-2 overflow-y-auto",children:[oe.map(e=>{const t=e.id===ne;/* @__PURE__ */
|
|
15
|
-
return P("div",{onClick:()=>ae(e.id),className:"bg-surface text-ink-strong rounded-md flex items-center pr-2 py-3 shadow-sm cursor-pointer transition-shadow hover:shadow-(--elevation-panel) "+(t?"border-l-4 border-gray-700 pl-2":"pl-3 border-l-4 border-transparent"),children:[
|
|
16
|
-
/* @__PURE__ */D("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,z.toggleDone(o)},className:"shrink-0",children:e.done?/* @__PURE__ */D("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:Fe},children:/* @__PURE__ */D("path",{d:"M10 0a10 10 0 100 20 10 10 0 000-20zm-1 14.5l-4.5-4.5 1.4-1.4 3.1 3.1 6.1-6.1 1.4 1.4z"})}):/* @__PURE__ */D("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */D("circle",{cx:"12",cy:"12",r:"10"})})}),
|
|
17
|
-
/* @__PURE__ */D("span",{className:"ml-3 flex-1 font-semibold truncate "+(e.done?"line-through text-gray-400":"text-gray-800"),children:e.name}),
|
|
18
|
-
/* @__PURE__ */P("span",{className:"text-sm tabular-nums mr-2 shrink-0",children:[
|
|
19
|
-
/* @__PURE__ */D("span",{className:"font-bold text-gray-500",children:e.completed??0}),
|
|
20
|
-
/* @__PURE__ */D("span",{className:"text-gray-400",children:" / "}),
|
|
21
|
-
/* @__PURE__ */D("span",{className:"text-gray-400",children:e.estimated??"–"})]}),
|
|
22
|
-
/* @__PURE__ */P("div",{className:"relative",children:[
|
|
23
|
-
/* @__PURE__ */D("button",{onClick:t=>{t.stopPropagation(),le(ie===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */D(S,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-ink-faint"})}),ie===e.id&&/* @__PURE__ */D("div",{className:"absolute right-0 top-full mt-1 bg-white text-gray-800 rounded shadow-lg border border-gray-200 z-10 min-w-[110px] overflow-hidden",onClick:e=>e.stopPropagation(),children:/* @__PURE__ */D("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,z.removeTask(o),ne===o&&ae(null),le(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),re?/* @__PURE__ */D(de,{onSubmit:(e,t)=>{const o=e.trim();if(!o)return;const n=z.addTask({name:o,estimated:t,completed:0,dueDate:te});ne||ae(n),se(!1)},onCancel:()=>se(!1),accentColor:Fe}):/* @__PURE__ */P("button",{onClick:()=>se(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${Re.addTaskBtn}`,children:[
|
|
24
|
-
/* @__PURE__ */D(S,{name:"add-circle",className:"h-5 w-5",strokeWidth:2}),"Add Task"]})]}),
|
|
25
|
-
/* @__PURE__ */P("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${Re.softDivider}`,children:[
|
|
26
|
-
/* @__PURE__ */P("span",{className:Re.secondary,children:["Pomos: ",
|
|
27
|
-
/* @__PURE__ */D("span",{className:`font-bold ${Re.primary}`,children:me}),
|
|
28
|
-
/* @__PURE__ */D("span",{className:Re.muted,children:" / "}),
|
|
29
|
-
/* @__PURE__ */D("span",{className:`font-bold ${Re.primary}`,children:he})]}),ke>0&&/* @__PURE__ */P("span",{className:Re.secondary,children:["Finish At: ",
|
|
30
|
-
/* @__PURE__ */D("span",{className:`font-bold ${Re.primary}`,children:be}),
|
|
31
|
-
/* @__PURE__ */P("span",{className:Re.muted,children:[" (",xe,"h)"]})]})]})]}),
|
|
32
|
-
/* @__PURE__ */D(q,{open:je,onClose:()=>we(!1),onSave:()=>{Se(Be),localStorage.setItem(V,JSON.stringify(Be)),b({pomodoro_settings:Te}),we(!1)},configAppearance:Be,setConfigAppearance:Me,configPrefs:Te,setConfigPrefs:Ie})]})}function q({open:e,onClose:o,onSave:n,configAppearance:a,setConfigAppearance:r,configPrefs:s,setConfigPrefs:i}){const l=(e,t)=>i(o=>({...o,[e]:t}));/* @__PURE__ */
|
|
33
|
-
return P(t,{open:e,onClose:o,title:"Pomodoro Settings",appearance:a,onAppearanceChange:r,onSave:n,children:[
|
|
34
|
-
/* @__PURE__ */P(ee,{icon:/* @__PURE__ */D(le,{}),label:"TIMER",children:[
|
|
35
|
-
/* @__PURE__ */P("div",{children:[
|
|
36
|
-
/* @__PURE__ */D("p",{className:"text-sm font-bold text-gray-800 mb-2",children:"Time (minutes)"}),
|
|
37
|
-
/* @__PURE__ */P("div",{className:"grid grid-cols-3 gap-3",children:[
|
|
38
|
-
/* @__PURE__ */D(ne,{label:"Pomodoro",value:s.focusMinutes,onChange:e=>l("focusMinutes",e),max:120}),
|
|
39
|
-
/* @__PURE__ */D(ne,{label:"Short Break",value:s.shortBreakMinutes,onChange:e=>l("shortBreakMinutes",e),max:120}),
|
|
40
|
-
/* @__PURE__ */D(ne,{label:"Long Break",value:s.longBreakMinutes,onChange:e=>l("longBreakMinutes",e),max:120})]})]}),
|
|
41
|
-
/* @__PURE__ */D(te,{label:"Auto Start Breaks",children:/* @__PURE__ */D(se,{checked:s.autoStartBreaks,onChange:e=>l("autoStartBreaks",e)})}),
|
|
42
|
-
/* @__PURE__ */D(te,{label:"Auto Start Pomodoros",children:/* @__PURE__ */D(se,{checked:s.autoStartPomodoros,onChange:e=>l("autoStartPomodoros",e)})}),
|
|
43
|
-
/* @__PURE__ */D(te,{label:"Long Break interval",children:/* @__PURE__ */D(ae,{value:s.longBreakInterval,onChange:e=>l("longBreakInterval",e),min:1,max:20,className:"w-14 text-center"})})]}),
|
|
44
|
-
/* @__PURE__ */P(ee,{icon:/* @__PURE__ */D(ce,{}),label:"TASK",children:[
|
|
45
|
-
/* @__PURE__ */D(te,{label:"Auto Check Tasks",info:'If you enable "Auto Check Tasks", the active task will be automatically checked when the actual pomodoro count reaches the estimated count.',children:/* @__PURE__ */D(se,{checked:s.autoCheckTasks,onChange:e=>l("autoCheckTasks",e)})}),
|
|
46
|
-
/* @__PURE__ */D(te,{label:"Check to Bottom",info:'If you enable "Check to Bottom", the checked task will be automatically moved to the bottom of the task list.',children:/* @__PURE__ */D(se,{checked:s.checkToBottom,onChange:e=>l("checkToBottom",e)})})]}),
|
|
47
|
-
/* @__PURE__ */P(ee,{icon:/* @__PURE__ */D(ue,{}),label:"SOUND",children:[
|
|
48
|
-
/* @__PURE__ */D(te,{label:"Alarm Sound",children:/* @__PURE__ */P("div",{className:"flex items-center gap-2",children:[
|
|
49
|
-
/* @__PURE__ */D(re,{value:s.alarmSound,onChange:e=>l("alarmSound",e),options:g.map(e=>({id:e.id,label:e.label}))}),"off"!==s.alarmSound&&/* @__PURE__ */D("button",{type:"button",onClick:()=>k(s.alarmSound,{volume:s.alarmVolume,repeat:1}),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
|
|
50
|
-
/* @__PURE__ */D(oe,{value:s.alarmVolume,onChange:e=>l("alarmVolume",e)}),
|
|
51
|
-
/* @__PURE__ */D(te,{label:"repeat",children:/* @__PURE__ */D(ae,{value:s.alarmRepeat,onChange:e=>l("alarmRepeat",e),min:1,max:5,className:"w-14 text-center"})}),
|
|
52
|
-
/* @__PURE__ */D(te,{label:"Focus Sound",children:/* @__PURE__ */P("div",{className:"flex items-center gap-2",children:[
|
|
53
|
-
/* @__PURE__ */D(re,{value:s.focusSound,onChange:e=>l("focusSound",e),options:f}),"none"!==s.focusSound&&/* @__PURE__ */D("button",{type:"button",onClick:()=>b(s.focusSound,s.focusVolume),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
|
|
54
|
-
/* @__PURE__ */D(oe,{value:s.focusVolume,onChange:e=>l("focusVolume",e)})]})]})}function ee({icon:e,label:t,children:o}){/* @__PURE__ */
|
|
55
|
-
return P("div",{className:"border-t border-gray-200 pt-3 first:border-0 first:pt-0",children:[
|
|
56
|
-
/* @__PURE__ */P("div",{className:"flex items-center gap-2 mb-3 text-ink-faintest",children:[e,
|
|
57
|
-
/* @__PURE__ */D("span",{className:"text-xs font-bold tracking-[0.15em]",children:t})]}),
|
|
58
|
-
/* @__PURE__ */D("div",{className:"space-y-3",children:o})]})}function te({label:e,info:t,children:o}){/* @__PURE__ */
|
|
59
|
-
return P("div",{className:"flex items-center justify-between gap-3",children:[
|
|
60
|
-
/* @__PURE__ */P("div",{className:"flex items-center gap-2 min-w-0",children:[
|
|
61
|
-
/* @__PURE__ */D("span",{className:"text-sm font-semibold text-gray-800",children:e}),t&&/* @__PURE__ */D(ie,{title:t})]}),
|
|
62
|
-
/* @__PURE__ */D("div",{className:"shrink-0",children:o})]})}function oe({value:e,onChange:t}){/* @__PURE__ */
|
|
63
|
-
return P("div",{className:"flex items-center justify-end gap-3",children:[
|
|
64
|
-
/* @__PURE__ */D("span",{className:"text-xs text-gray-400 w-7 text-right tabular-nums",children:e}),
|
|
65
|
-
/* @__PURE__ */D("input",{type:"range",min:0,max:100,value:e,onChange:e=>t(parseInt(e.target.value,10)),className:"w-40 accent-blue-500"})]})}function ne({label:e,value:t,onChange:o,min:n=1,max:a=99}){/* @__PURE__ */
|
|
66
|
-
return P("label",{className:"flex flex-col",children:[
|
|
67
|
-
/* @__PURE__ */D("span",{className:"text-xs font-semibold text-gray-500 mb-1",children:e}),
|
|
68
|
-
/* @__PURE__ */D(ae,{value:t,onChange:o,min:n,max:a})]})}function ae({value:e,onChange:t,min:o=1,max:n=99,className:a=""}){/* @__PURE__ */
|
|
69
|
-
return D("input",{type:"number",min:o,max:n,value:e,onChange:e=>t(Math.max(o,Math.min(n,parseInt(e.target.value,10)||o))),className:`bg-gray-100 border-0 rounded-md px-2 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 w-full ${a}`})}function re({value:e,onChange:t,options:o}){/* @__PURE__ */
|
|
70
|
-
return P("div",{className:"relative",children:[
|
|
71
|
-
/* @__PURE__ */D("select",{value:e,onChange:e=>t(e.target.value),className:"appearance-none bg-gray-100 border-0 rounded-md pl-3 pr-8 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 cursor-pointer",children:o.map(e=>/* @__PURE__ */D("option",{value:e.id,children:e.label},e.id))}),
|
|
72
|
-
/* @__PURE__ */D(S,{name:"chevron-down",className:`absolute right-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 pointer-events-none ${x}`,strokeWidth:2.5})]})}function se({checked:e,onChange:t}){/* @__PURE__ */
|
|
73
|
-
return D("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>t(!e),className:"relative inline-flex h-6 w-11 items-center rounded-full transition-colors "+(e?"bg-emerald-500":"bg-gray-300"),children:/* @__PURE__ */D("span",{className:"absolute h-5 w-5 rounded-full bg-white shadow transition-transform "+(e?"translate-x-[22px]":"translate-x-0.5")})})}function ie({title:e}){/* @__PURE__ */
|
|
74
|
-
return D("span",{title:e,className:"inline-flex items-center justify-center w-4 h-4 rounded-full bg-gray-300 text-on-accent text-3xs font-bold cursor-help",children:"i"})}function le(){/* @__PURE__ */
|
|
75
|
-
return P("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
|
|
76
|
-
/* @__PURE__ */D("circle",{cx:"12",cy:"12",r:"9"}),
|
|
77
|
-
/* @__PURE__ */D("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7v5l3 2"})]})}function ce(){/* @__PURE__ */
|
|
78
|
-
return P("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
|
|
79
|
-
/* @__PURE__ */D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),
|
|
80
|
-
/* @__PURE__ */D("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4"})]})}function ue(){/* @__PURE__ */
|
|
81
|
-
return P("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
|
|
82
|
-
/* @__PURE__ */D("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5L6 9H2v6h4l5 4V5z"}),
|
|
83
|
-
/* @__PURE__ */D("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 8.5a5 5 0 010 7M19 5a9 9 0 010 14"})]})}function de({onSubmit:e,onCancel:t,accentColor:o}){const[n,a]=M(""),[r,s]=M(1),i=()=>e(n,r);/* @__PURE__ */
|
|
84
|
-
return P("div",{className:"bg-surface text-ink-strong rounded-md p-3 shadow-(--elevation-panel)",children:[
|
|
85
|
-
/* @__PURE__ */D("input",{autoFocus:!0,value:n,onChange:e=>a(e.target.value),placeholder:"What are you working on?",onKeyDown:e=>{"Enter"===e.key&&i(),"Escape"===e.key&&t()},className:"w-full text-base font-medium bg-transparent border-0 outline-none placeholder-gray-400"}),
|
|
86
|
-
/* @__PURE__ */P("div",{className:"flex items-center justify-between mt-2",children:[
|
|
87
|
-
/* @__PURE__ */D("span",{className:"text-xs font-semibold text-gray-500",children:"Est Pomodoros"}),
|
|
88
|
-
/* @__PURE__ */D("input",{type:"number",min:1,max:20,value:r,onChange:e=>s(Math.max(1,Math.min(20,parseInt(e.target.value,10)||1))),className:"w-16 bg-gray-100 rounded px-2 py-1 text-sm text-right border-0 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),
|
|
89
|
-
/* @__PURE__ */P("div",{className:"flex gap-2 mt-3 justify-end",children:[
|
|
90
|
-
/* @__PURE__ */D("button",{onClick:t,className:"px-3 py-1 text-sm text-gray-500 hover:bg-gray-100 rounded",children:"Cancel"}),
|
|
91
|
-
/* @__PURE__ */D("button",{onClick:i,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:o},children:"Save"})]})]})}export{z as default};
|
package/dist/chunk-JYESSDBZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="13.18.1",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-U5RG34NE.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{SidebarBarContext as e,SidebarSheetContext as r}from"./chunk-QWK6DRSN.js";import{readStoredWidth as l,ResizeHandle as t}from"./chunk-HMOKKMIV.js";import{useIsPhone as a}from"./chunk-UGTRSRIW.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{PANEL_SURFACE as o}from"./chunk-BWJZTHZ6.js";import{useBrowserState as i}from"./chunk-WCCS4VFE.js";import{useShellStrings as s}from"./chunk-IUVGHHR3.js";import{useState as c,useRef as d,useReducer as h,useMemo as u,Fragment as m,useEffect as f}from"react";import{jsxs as p,jsx as b}from"react/jsx-runtime";var x=(e,r,l)=>Math.min(Math.max(e,r),l);function g({sidebar:e,sidebarTop:r,sidebarBottom:n,children:o,side:m="left",storageKey:f,defaultWidth:g=256,minWidth:k=180,maxWidth:y=480,className:w="",sidebarClassName:C=("right"===m?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:W="bg-white"}){const j="right"===m,I=s().sidebar,O=a(),z=function(){const[e,r]=c(!1),l=d(null),t=d(/* @__PURE__ */new Map),[,a]=h(e=>e+1,0),n=u(()=>({report(e,r,l){const n={label:r,el:l};return t.current.set(e,n),a(),()=>{t.current.get(e)===n&&(t.current.delete(e),a())}}}),[]);return{api:n,open:e,setOpen:r,current:()=>[...t.current.values()].sort((e,r)=>e.el&&r.el&&e.el.compareDocumentPosition(r.el)&Node.DOCUMENT_POSITION_PRECEDING?1:-1).map(e=>e.label()),trigger:l}}(),[P,R]=i(()=>(f?l(f,k,y):null)??x(g,k,y),x(g,k,y)),S=null!=r||null!=n,$=/* @__PURE__ */p("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:P},children:[
|
|
2
|
-
/* @__PURE__ */p("div",{className:`flex h-full flex-col ${S?"overflow-hidden":"overflow-y-auto"} ${C}`,children:[null!=r&&/* @__PURE__ */b("div",{className:"flex shrink-0 flex-col gap-2 px-2 pt-3 pb-2",children:r}),S?/* @__PURE__ */b("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e}):e,null!=n&&/* @__PURE__ */b("div",{className:"mt-auto flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:n})]}),
|
|
3
|
-
/* @__PURE__ */b(t,{side:m,width:P,onResize:R,min:k,max:y,defaultWidth:x(g,k,y),storageKey:f,hint:I.resize})]}),D=/* @__PURE__ */b("div",{className:`flex min-w-0 flex-1 flex-col ${W}`,children:o});/* @__PURE__ */
|
|
4
|
-
return p("div",O?{className:`relative flex h-full w-full flex-col overflow-hidden ${w}`,children:[
|
|
5
|
-
/* @__PURE__ */b(v,{phone:z,top:r,fallback:I.sections}),D,
|
|
6
|
-
/* @__PURE__ */b(N,{phone:z,bottom:n,label:I.sections,closeLabel:I.closeSections,children:e})]}:{className:`flex h-full w-full overflow-hidden ${w}`,children:[j?null:$,D,j?$:null]})}function v({phone:r,top:l,fallback:t}){const a=r.current();/* @__PURE__ */
|
|
7
|
-
return p("div",{"data-sidebar-section-bar":!0,className:"flex h-11 shrink-0 items-center gap-2 border-b border-gray-200 bg-white px-3",children:[
|
|
8
|
-
/* @__PURE__ */p("button",{ref:r.trigger,type:"button","aria-haspopup":"dialog","aria-expanded":r.open,onClick:()=>r.setOpen(!0),className:"flex h-8 min-w-0 flex-1 items-center gap-1 text-left text-sm font-semibold text-gray-900",children:[
|
|
9
|
-
/* @__PURE__ */b("span",{className:"min-w-0 truncate",children:0===a.length?t:a.map((e,r)=>/* @__PURE__ */p(m,{children:[r>0&&" · ",e]},r))}),
|
|
10
|
-
/* @__PURE__ */b(n,{name:"chevron-down",className:"size-4 shrink-0",strokeWidth:2,"aria-hidden":"true"})]}),null!=l&&/* @__PURE__ */b(e.Provider,{value:!0,children:/* @__PURE__ */b("div",{className:"flex min-w-0 max-w-[60%] shrink-0 items-center gap-2",children:l})})]})}function N({phone:e,bottom:l,label:t,closeLabel:a,children:n}){const i=d(null),{open:s,setOpen:c,trigger:h}=e,u=()=>{c(!1),i.current?.contains(document.activeElement)&&h.current?.focus()};return f(()=>{s&&i.current?.focus()},[s]),
|
|
11
|
-
/* @__PURE__ */p(r.Provider,{value:e.api,children:[s&&/* @__PURE__ */b("button",{type:"button","aria-label":a,onClick:u,className:"absolute inset-0 z-(--z-in-box) cursor-default bg-gray-900/40"}),
|
|
12
|
-
/* @__PURE__ */p("div",{ref:i,role:"dialog","aria-modal":"true","aria-label":t,tabIndex:-1,"data-sidebar-section-sheet":!0,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),u())},onClick:e=>{const r=e.target.closest("button, a");!r||r.hasAttribute("aria-expanded")||r.closest("[data-sheet-keep-open]")||u()},className:`${s?"flex":"hidden"} absolute inset-x-0 bottom-0 z-(--z-in-box) max-h-[75%] flex-col rounded-t-2xl pt-2 ${o}`,children:[
|
|
13
|
-
/* @__PURE__ */b("div",{className:"mx-auto mb-2 h-1 w-9 shrink-0 rounded-full bg-gray-300","aria-hidden":"true"}),
|
|
14
|
-
/* @__PURE__ */b("div",{className:"min-h-0 flex-1 overflow-y-auto px-2 pb-3",children:n}),null!=l&&/* @__PURE__ */b("div",{className:"flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:l})]})]})}export{g as SidebarLayout};
|