efficient-shell 8.21.1 → 8.23.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 +33 -2
- package/dist/{Browser-33BAOVZA.js → Browser-6DBCKZYW.js} +14 -14
- package/dist/Calculator-WZIBSVDK.js +29 -0
- package/dist/{CurrencyConverter-ONCRQNI4.js → CurrencyConverter-BX5HDEX6.js} +7 -7
- package/dist/{Documents-LE46Z6RO.js → Documents-YPOCP5OP.js} +23 -23
- package/dist/Files-33ONRECZ.js +87 -0
- package/dist/{Notepad-NYFR5HWW.js → Notepad-MOWWMSOT.js} +9 -9
- package/dist/{PdfViewer-ZFZ4PEAV.js → PdfViewer-67VBUIRD.js} +1 -1
- package/dist/{PomodoroTimer-JVQ5K7B4.js → PomodoroTimer-LBFYGZHA.js} +68 -68
- package/dist/{Preview-CPT6HLMR.js → Preview-OUCMOCOE.js} +27 -27
- package/dist/Sidebar-OIWVKYUU.js +43 -0
- package/dist/{Spreadsheet-BEIPEEOO.js → Spreadsheet-GC7GNZ7C.js} +11 -11
- package/dist/{Stock-TWJNCTNT.js → Stock-5TKATE4I.js} +3 -3
- package/dist/{Weather-RM7GPLAH.js → Weather-NQJCUUUN.js} +16 -16
- package/dist/{WorldClock-ITJ2MO75.js → WorldClock-QYZF2JCO.js} +4 -4
- package/dist/ai/index.js +13 -13
- package/dist/apps/index.d.ts +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/charts/BoxPlotChart.js +1 -1
- package/dist/charts/CandlestickChart.js +1 -1
- package/dist/charts/CartesianPlot.js +1 -1
- package/dist/charts/ChartBrush.js +1 -1
- package/dist/charts/ChartFrame.js +1 -1
- package/dist/charts/ChartSkeleton.js +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/ColumnChart.js +1 -1
- package/dist/charts/FunnelChart.js +1 -1
- package/dist/charts/HeatmapChart.js +1 -1
- package/dist/charts/HistogramChart.js +1 -1
- package/dist/charts/Meter.js +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/RangeChart.js +1 -1
- package/dist/charts/RankedBars.js +1 -1
- package/dist/charts/SankeyChart.js +1 -1
- package/dist/charts/ScatterChart.js +1 -1
- package/dist/charts/StatTile.js +1 -1
- package/dist/charts/SunburstChart.js +1 -1
- package/dist/charts/TimeSeriesChart.js +1 -1
- package/dist/charts/TreemapChart.js +1 -1
- package/dist/charts/WaterfallChart.js +1 -1
- package/dist/chunk-255BENW2.js +7 -0
- package/dist/chunk-3EKWDVBV.js +29 -0
- package/dist/{chunk-EXMFUK3A.js → chunk-3GHBY2FP.js} +8 -8
- package/dist/{chunk-LVSPLCGG.js → chunk-3PGK3VFS.js} +1 -1
- package/dist/{chunk-VOHZQVFK.js → chunk-3PNKI44X.js} +6 -6
- package/dist/{chunk-IPOSLLLU.js → chunk-3V5Z2BJY.js} +12 -12
- package/dist/chunk-3WC6ITJ3.js +11 -0
- package/dist/{chunk-NBVF2CXM.js → chunk-3XQGEILM.js} +1 -1
- package/dist/{chunk-EDQBTPDF.js → chunk-4CFOKYVR.js} +7 -7
- package/dist/{chunk-P7WUDHIP.js → chunk-4F3IKYUO.js} +6 -6
- package/dist/{chunk-OSVN2UF7.js → chunk-4NXMMWL6.js} +1 -1
- package/dist/{chunk-NDTMQRR2.js → chunk-4VLKDANH.js} +1 -1
- package/dist/{chunk-4CWKK5HV.js → chunk-4YUCXIRP.js} +4 -4
- package/dist/{chunk-B55IXYDR.js → chunk-53ROHXAV.js} +2 -2
- package/dist/{chunk-AXZEINMF.js → chunk-5FTHHLJH.js} +18 -18
- package/dist/{chunk-36MUTG34.js → chunk-5PY4H4ZJ.js} +1 -1
- package/dist/{chunk-DMLJOBQS.js → chunk-64FIE4SX.js} +8 -8
- package/dist/chunk-6NMDKOQA.js +7 -0
- package/dist/{chunk-73DAZUJP.js → chunk-6WSTN5A3.js} +9 -9
- package/dist/{chunk-MEOICYR5.js → chunk-72YFU346.js} +1 -1
- package/dist/{chunk-K4DZWCUP.js → chunk-77FLITYM.js} +6 -6
- package/dist/chunk-7CFH6Y4T.js +3 -0
- package/dist/{chunk-D5HHU5AO.js → chunk-BI6ZLD4X.js} +7 -7
- package/dist/chunk-BIYL7CEI.js +2 -0
- package/dist/{chunk-RCRI6QZV.js → chunk-BMZSMXE6.js} +1 -1
- package/dist/chunk-BOBUSE33.js +2 -0
- package/dist/{chunk-NNKMEF3D.js → chunk-BRHIRE4D.js} +4 -4
- package/dist/{chunk-IGCXJHAK.js → chunk-BSNWVZHW.js} +1 -1
- package/dist/{chunk-MFEJ6TYE.js → chunk-BY2OWWKC.js} +1 -1
- package/dist/chunk-CGUMJZUB.js +2 -0
- package/dist/chunk-CRLSG5AY.js +9 -0
- package/dist/{chunk-TT3S2XVQ.js → chunk-CZ25A5RS.js} +1 -1
- package/dist/{chunk-BXM72C73.js → chunk-D2AUUIKG.js} +1 -1
- package/dist/{chunk-YVBFFE4Z.js → chunk-D7FT2PXG.js} +5 -5
- package/dist/{chunk-RAQESAQZ.js → chunk-DFDDRKIJ.js} +1 -1
- package/dist/{chunk-MWAYM46R.js → chunk-DISSJYKV.js} +10 -10
- package/dist/chunk-DITCVBR7.js +15 -0
- package/dist/chunk-DODH46ZQ.js +8 -0
- package/dist/{chunk-6GVJ6IKD.js → chunk-DTSCO7VM.js} +1 -1
- package/dist/{chunk-OZPYTSPD.js → chunk-DZNG34DC.js} +8 -8
- package/dist/{chunk-3HNK7IRJ.js → chunk-E5ALJIXV.js} +4 -4
- package/dist/chunk-E6UCGCOC.js +1 -0
- package/dist/{chunk-AJD24TNB.js → chunk-ECWSWLQR.js} +1 -1
- package/dist/{chunk-MTSZ66O4.js → chunk-EJUR35JG.js} +1 -1
- package/dist/{chunk-OCCHDMEV.js → chunk-ERMZ75FO.js} +1 -1
- package/dist/{chunk-WRJDHFLD.js → chunk-EYKUKN32.js} +2 -2
- package/dist/{chunk-N65HZ3TK.js → chunk-EYX6KLCZ.js} +1 -1
- package/dist/{chunk-LDFRVV5R.js → chunk-EZ3BQ6PK.js} +6 -6
- package/dist/{chunk-NRDO5IHL.js → chunk-FL2PUQX7.js} +1 -1
- package/dist/{chunk-KZEQJVBO.js → chunk-FLQIF7HC.js} +3 -3
- package/dist/chunk-FRPNTDP4.js +8 -0
- package/dist/{chunk-PVSGQN5M.js → chunk-GATKJSGL.js} +6 -6
- package/dist/{chunk-4VK3GJZI.js → chunk-GIM2422N.js} +1 -1
- package/dist/{chunk-IY3CRZRH.js → chunk-GQACKEKW.js} +21 -21
- package/dist/{chunk-A4U4BTN3.js → chunk-GWIPZKZJ.js} +3 -3
- package/dist/{chunk-IKNNHEVY.js → chunk-H3BC4KDE.js} +1 -1
- package/dist/{chunk-55WFJELE.js → chunk-HVX37PKU.js} +1 -1
- package/dist/{chunk-CU2B7G5A.js → chunk-IHQX4GYD.js} +1 -1
- package/dist/{chunk-7S2I6ACG.js → chunk-IZCODCSC.js} +1 -1
- package/dist/{chunk-ECZT7SIE.js → chunk-JEXXJK7H.js} +1 -1
- package/dist/{chunk-OZF4QAJT.js → chunk-JNDBRSYZ.js} +3 -3
- package/dist/{chunk-L2YW3END.js → chunk-JPP7UWQA.js} +3 -3
- package/dist/{chunk-IURSUMDO.js → chunk-JWIKHVF4.js} +8 -8
- package/dist/{chunk-YSHS6QIY.js → chunk-K7KQDPLW.js} +5 -5
- package/dist/{chunk-AJ42UE53.js → chunk-KDZUWQEG.js} +1 -1
- package/dist/{chunk-OTU633XJ.js → chunk-KKSW5IZ7.js} +6 -6
- package/dist/{chunk-THDSOVEH.js → chunk-KZHPX4FM.js} +2 -2
- package/dist/{chunk-AVOVYKVL.js → chunk-LBLV64XG.js} +2 -2
- package/dist/{chunk-CFLVEKSH.js → chunk-LK2SICMI.js} +1 -1
- package/dist/{chunk-IJA5ZAGL.js → chunk-LLLAIPFX.js} +1 -1
- package/dist/{chunk-YTGWIMXB.js → chunk-M5P6A7KS.js} +1 -1
- package/dist/{chunk-YGEK2Z6P.js → chunk-MAOJENIB.js} +1 -1
- package/dist/{chunk-UFVQ7ZBP.js → chunk-MEYYQC43.js} +5 -5
- package/dist/{chunk-DO6XTJ77.js → chunk-MMFJBWJC.js} +1 -1
- package/dist/{chunk-VX4BNYH3.js → chunk-MTXTJLFK.js} +2 -2
- package/dist/{chunk-HVVPBAP5.js → chunk-MXHEREC6.js} +3 -3
- package/dist/chunk-N3GETPME.js +1 -0
- package/dist/{chunk-VY7EPQEG.js → chunk-NHCRQ7SW.js} +1 -1
- package/dist/{chunk-MKITHLDU.js → chunk-NID6MGGC.js} +7 -7
- package/dist/chunk-NMK4UQXZ.js +12 -0
- package/dist/chunk-NT26CWMZ.js +5 -0
- package/dist/{chunk-Y5ZWPU4L.js → chunk-NVE6L27I.js} +8 -8
- package/dist/{chunk-HJIBTA6V.js → chunk-NWP6IJYK.js} +9 -9
- package/dist/{chunk-PJCVNFWM.js → chunk-O6JX6RDX.js} +7 -7
- package/dist/{chunk-M5BFTFBK.js → chunk-OFOLUFNB.js} +14 -14
- package/dist/chunk-OSA24YH6.js +19 -0
- package/dist/{chunk-IMF537IJ.js → chunk-OVVXSAGE.js} +9 -9
- package/dist/{chunk-VHAM5TD2.js → chunk-PDXD6DT7.js} +1 -1
- package/dist/{chunk-UY47AKZU.js → chunk-PNGL4ZW2.js} +6 -6
- package/dist/{chunk-6V753BUI.js → chunk-PNQ4EYYM.js} +3 -3
- package/dist/{chunk-LMLM4KHQ.js → chunk-PPFMXLEX.js} +8 -8
- package/dist/{chunk-NKJDOQVW.js → chunk-Q3OCGLW7.js} +2 -2
- package/dist/{chunk-B4XPFCCQ.js → chunk-QFA5COE6.js} +2 -2
- package/dist/{chunk-NSCLFAKK.js → chunk-QQCHLRKG.js} +1 -1
- package/dist/{chunk-LQQMELJM.js → chunk-QQK3XS6H.js} +8 -8
- package/dist/{chunk-N7VNKAXZ.js → chunk-R6DGLGB3.js} +1 -1
- package/dist/chunk-RGBX3EVC.js +11 -0
- package/dist/{chunk-6WNQ5ENK.js → chunk-RSO67DWS.js} +7 -7
- package/dist/{chunk-XWH6KVVB.js → chunk-RUQEB2ZC.js} +3 -3
- package/dist/{chunk-JYOI66DT.js → chunk-RYBJ6MMM.js} +1 -1
- package/dist/{chunk-3Z7LIHMB.js → chunk-S7VSXUKS.js} +3 -3
- package/dist/{chunk-H7ZXUGXX.js → chunk-SB7OTZI4.js} +15 -15
- package/dist/{chunk-U5I7IF72.js → chunk-SBHFEWR6.js} +1 -1
- package/dist/chunk-SG2MTCA2.js +100 -0
- package/dist/chunk-SXORVKIZ.js +9 -0
- package/dist/{chunk-EL3O7ZFQ.js → chunk-TW7TA2AB.js} +1 -1
- package/dist/{chunk-DIKOEJ2Y.js → chunk-TXS6JKFV.js} +1 -1
- package/dist/{chunk-L6FLPBU2.js → chunk-UB4BTRSB.js} +1 -1
- package/dist/{chunk-AH2AUQYM.js → chunk-UKB2I3UK.js} +1 -1
- package/dist/{chunk-QJPLM2KQ.js → chunk-UQZWPA5M.js} +2 -2
- package/dist/{chunk-CMYLTCPA.js → chunk-UVUBZL7K.js} +1 -1
- package/dist/{chunk-EKWSGPJ4.js → chunk-UX6HNRFV.js} +7 -7
- package/dist/{chunk-4PZN25MV.js → chunk-VTVOQS5L.js} +15 -15
- package/dist/{chunk-PWOFYFMO.js → chunk-VU6VPKM3.js} +5 -5
- package/dist/chunk-W5M6P4DZ.js +8 -0
- package/dist/{chunk-ES3WKDZC.js → chunk-WGSK7HEY.js} +1 -1
- package/dist/{chunk-RZBHO74V.js → chunk-WJ3XSJ6B.js} +1 -1
- package/dist/{chunk-AX7KPMDV.js → chunk-WSODT2L5.js} +2 -2
- package/dist/{chunk-24L7NLA3.js → chunk-WTY3SXO7.js} +1 -1
- package/dist/{chunk-ZBLNVAZ4.js → chunk-WYN5KVU4.js} +3 -3
- package/dist/chunk-X6PPP6NX.js +14 -0
- package/dist/{chunk-CUT7PAXL.js → chunk-XFBXKKOB.js} +1 -1
- package/dist/{chunk-2BS74SYW.js → chunk-XHBQPVNG.js} +1 -1
- package/dist/{chunk-7M7ESM5V.js → chunk-Y2D2YMFY.js} +9 -9
- package/dist/{chunk-RDPUVCXR.js → chunk-Y4MI6NRI.js} +1 -1
- package/dist/{chunk-RAI3GTS6.js → chunk-Y5T257HX.js} +3 -3
- package/dist/{chunk-BIS5PHHV.js → chunk-YCQVEJOT.js} +2 -2
- package/dist/{chunk-PG6AVBSR.js → chunk-YDYDR72S.js} +1 -1
- package/dist/{chunk-OF6TUQAL.js → chunk-YSFLXPUS.js} +5 -5
- package/dist/{chunk-DLCIGDKC.js → chunk-YW2DH6YQ.js} +3 -3
- package/dist/{chunk-NL6VHSUN.js → chunk-Z2YGQBLZ.js} +1 -1
- package/dist/{chunk-QEVIQZIE.js → chunk-ZEKM6HAA.js} +2 -2
- package/dist/{chunk-5Z2WLSFM.js → chunk-ZN3O2KJ7.js} +15 -15
- package/dist/{chunk-GNXTOUPJ.js → chunk-ZOSIPTXM.js} +5 -5
- package/dist/{chunk-EAEUSMYL.js → chunk-ZSRRV44J.js} +1 -1
- package/dist/{chunk-MHYOQMBV.js → chunk-ZTB6EMC7.js} +1 -1
- package/dist/data/DataTable.js +1 -1
- package/dist/data/Kanban.js +1 -1
- package/dist/data/ListFooter.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/data/Pagination.js +1 -1
- package/dist/file-intake/index.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Calendar.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DatePicker.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/DateTimePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/FormErrorSummary.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/ImageFocusPoint.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.d.ts +11 -0
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/NumericKeypad.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/Select.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TagInput.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/TimePicker.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/mediaLibraryMenu.d.ts +5 -1
- package/dist/forms/mediaLibraryMenu.js +1 -1
- package/dist/forms/mediaMoveItems.js +1 -1
- package/dist/forms/useFileIntake.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +19 -5
- package/dist/index.js +180 -180
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/map/index.js +5 -5
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/shell/Accordion.js +1 -1
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/Avatar.js +1 -1
- package/dist/shell/Banner.js +1 -1
- package/dist/shell/Breadcrumbs.js +1 -1
- package/dist/shell/BudgetBar.js +1 -1
- package/dist/shell/Card.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContainerFillChart.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/CountBadge.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/EmptyState.js +1 -1
- package/dist/shell/GlobalSearch.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/IconRail.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/MetricBar.js +1 -1
- package/dist/shell/MetricBarLegend.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/PageHeader.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ProductionTimeline.js +1 -1
- package/dist/shell/ResizeHandle.js +1 -1
- package/dist/shell/Result.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/shell/SidebarNav.js +1 -1
- package/dist/shell/SortableList.js +1 -1
- package/dist/shell/Statistic.js +1 -1
- package/dist/shell/TimeAgo.js +1 -1
- package/dist/shell/TimelineTrack.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/shell/ZoomableImage.d.ts +9 -1
- package/dist/shell/ZoomableImage.js +1 -1
- package/dist/shell/language.js +1 -1
- package/dist/shell/strings.d.ts +9 -0
- package/dist/shell/strings.js +1 -1
- package/dist/shell/toast.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/ErrorBoundary.js +1 -1
- package/dist/templates/ErrorPage.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/{types-BOinJXUf.d.ts → types-ClT92-8Z.d.ts} +13 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-FHN36ZE3.js +0 -29
- package/dist/Files-PD7KZM2Y.js +0 -87
- package/dist/Sidebar-OFRMBB5V.js +0 -43
- package/dist/chunk-5U3WEVZL.js +0 -19
- package/dist/chunk-DLS2VCBK.js +0 -3
- package/dist/chunk-DNCII5C4.js +0 -8
- package/dist/chunk-DNKACLRF.js +0 -11
- package/dist/chunk-ERFM5U3M.js +0 -12
- package/dist/chunk-ETSKG62F.js +0 -1
- package/dist/chunk-F2Z6IXMM.js +0 -2
- package/dist/chunk-HYFHCPNJ.js +0 -15
- package/dist/chunk-JGE7S7RQ.js +0 -29
- package/dist/chunk-K7Y6VDCC.js +0 -11
- package/dist/chunk-KPFOXLN4.js +0 -5
- package/dist/chunk-L2HZ7YXS.js +0 -14
- package/dist/chunk-MOOBUMON.js +0 -9
- package/dist/chunk-TW6WEYGO.js +0 -8
- package/dist/chunk-U5KIRPLV.js +0 -2
- package/dist/chunk-UBVFIIXS.js +0 -8
- package/dist/chunk-WBEMN4JG.js +0 -9
- package/dist/chunk-WDXJWC3Y.js +0 -7
- package/dist/chunk-Y7V7CMKP.js +0 -2
- package/dist/chunk-YUIY7QOR.js +0 -1
- package/dist/chunk-ZDK2JYH5.js +0 -99
- package/dist/chunk-ZKOIGLRF.js +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{getNumberingConfigs as e}from"./chunk-
|
|
2
|
-
/* @__PURE__ */g("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{
|
|
1
|
+
import{getNumberingConfigs as e}from"./chunk-3XQGEILM.js";import{SidebarLayout as t}from"./chunk-KKSW5IZ7.js";import"./chunk-QWK6DRSN.js";import"./chunk-KZHPX4FM.js";import{timeAgo as r}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{AboutApp as n}from"./chunk-UQZWPA5M.js";import{useWindowManager as o,client_default as i}from"./chunk-SG2MTCA2.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-JDCM2VHG.js";import"./chunk-KNUR2UEG.js";import"./chunk-HVX37PKU.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-FL2PUQX7.js";import"./chunk-ZN3O2KJ7.js";import"./chunk-YCQVEJOT.js";import{useShellPrefs as s}from"./chunk-KC3EX26K.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{toast_default as c}from"./chunk-4NXMMWL6.js";import"./chunk-O6JX6RDX.js";import"./chunk-5QFPTDQF.js";import"./chunk-BY2OWWKC.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-D323R2FT.js";import"./chunk-CDAJKLGL.js";import"./chunk-6KO5VTL7.js";import"./chunk-N3GETPME.js";import"./chunk-4IU5BSVE.js";import"./chunk-K7U4RWXJ.js";import"./chunk-VH6GB73Q.js";import{Icon as a}from"./chunk-KIBL6M3T.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-22S6LG6D.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-E6UCGCOC.js";import"./chunk-C3QOHMR6.js";import{useRef as l,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 y,jsx as g}from"react/jsx-runtime";var x=[{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 k={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:v,save:N}=s(),{data:j}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),w=l({});p(()=>{if(!j)return;const e={};for(const t of j){const r=k[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})}}w.current=e},[j]);const T=v.notepad_notes||[],[_,C]=d(null),[W,X]=d(""),[K,S]=d(""),[$,D]=d("yellow"),[M,O]=d(!1),[R,U]=d(!1),Q=l(null),G=l(),J=T.find(e=>e.id===_);p(()=>{if(!_&&T.length>0){const e=T[0];C(e.id),X(e.title),S(e.content),D(e.color)}},[T.length]);const P=m(e=>{N({notepad_notes:e})},[N]),E=m(()=>{if(!_||!M)return;const e=T.map(e=>e.id===_?{...e,title:W,content:K,color:$,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);P(e),O(!1)},[_,M,W,K,$,T,P]);p(()=>{if(M)return G.current&&clearTimeout(G.current),G.current=setTimeout(E,800),()=>{G.current&&clearTimeout(G.current)}},[M,E]),p(()=>()=>{M&&E()},[]);const I=e=>{M&&E(),C(e.id),X(e.title),S(e.content),D(e.color),O(!1),U(!1)},L=e=>{const t=K.slice(0,e),r=K.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=K.slice(e+r[0].length);S(t+n+o),O(!0)},V=async(e,t)=>{const r=w.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):c.error(`${n} not found`)}catch{c.error(`Failed to look up ${n}`)}},B="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.)",Z=/* @__PURE__ */h(y,{children:[
|
|
2
|
+
/* @__PURE__ */g("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{M&&E();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",sticky:!1,updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...T];P(t),C(e.id),X(""),S(""),D("yellow"),O(!1),U(!0),setTimeout(()=>Q.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-blue-600 text-white px-3 min-h-8 py-1 text-sm font-medium hover:bg-blue-700 transition-colors",children:[
|
|
3
3
|
/* @__PURE__ */g(a,{name:"add",className:"h-4 w-4",strokeWidth:2}),"New Note"]})}),
|
|
4
4
|
/* @__PURE__ */g("div",{className:"flex-1 overflow-y-auto",children:0===T.length?/* @__PURE__ */g("p",{className:"text-sm text-gray-400 text-center py-8 px-4",children:"No notes yet. Create one to get started."}):T.map(e=>{const t=(n=e.color,x.find(e=>e.key===n)||x[0]);var n;/* @__PURE__ */
|
|
5
5
|
return h("button",{onClick:()=>I(e),className:"w-full text-left px-3 py-3 border-b border-gray-100 transition-colors "+(_===e.id?"bg-blue-50":"hover:bg-gray-50"),children:[
|
|
@@ -10,16 +10,16 @@ return h("button",{onClick:()=>I(e),className:"w-full text-left px-3 py-3 border
|
|
|
10
10
|
/* @__PURE__ */g("p",{className:"text-2xs text-gray-300 mt-0.5 ml-5",children:r(e.updated_at)})]},e.id)})})]});/* @__PURE__ */
|
|
11
11
|
return h("div",{className:"h-full",children:[
|
|
12
12
|
/* @__PURE__ */g(n,{app:"notepad"}),
|
|
13
|
-
/* @__PURE__ */g(t,{sidebar:
|
|
13
|
+
/* @__PURE__ */g(t,{sidebar:Z,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:_?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
|
|
14
14
|
/* @__PURE__ */h("div",{className:"flex items-center gap-2 px-4 py-2 border-b border-gray-200",children:[
|
|
15
|
-
/* @__PURE__ */g("input",{value:W,onChange:e=>{
|
|
16
|
-
/* @__PURE__ */g("div",{className:"flex gap-1",children:x.map(e=>/* @__PURE__ */g("button",{onClick:()=>{
|
|
17
|
-
/* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.map(t=>t.id===e?{...t,sticky:!t.sticky}:t);
|
|
18
|
-
/* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(
|
|
19
|
-
return g("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(
|
|
15
|
+
/* @__PURE__ */g("input",{value:W,onChange:e=>{X(e.target.value),O(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
|
|
16
|
+
/* @__PURE__ */g("div",{className:"flex gap-1",children:x.map(e=>/* @__PURE__ */g("button",{onClick:()=>{D(e.key),O(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${$===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
|
|
17
|
+
/* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.map(t=>t.id===e?{...t,sticky:!t.sticky}:t);P(t);const r=t.find(t=>t.id===e);c.success(r?.sticky?"Pinned to desktop":"Removed from desktop")})(_),title:J?.sticky?"Remove from desktop":"Pin to desktop",className:"p-1 rounded transition-colors "+(J?.sticky?"text-amber-500 hover:text-amber-600":"text-gray-300 hover:text-amber-400"),children:/* @__PURE__ */g(a,{name:"bookmark",className:"h-4 w-4",fill:J?.sticky?"currentColor":"none",strokeWidth:1.5})}),
|
|
18
|
+
/* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(P(t),_===e){const e=t[0];e?I(e):(C(null),X(""),S(""))}})(_),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */g(a,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),R?/* @__PURE__ */g("textarea",{ref:Q,value:K,onChange:e=>{S(e.target.value),O(!0)},onBlur:()=>{U(!1),M&&E()},placeholder:B,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__ */g("div",{onClick:()=>{U(!0),setTimeout(()=>Q.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:K?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],s=/([A-Z]{2,4})#(\d{4,6})/g;let c;for(;null!==(c=s.exec(e));){const e=c[1],t=c[2];if(w.current[e]){const n=c.index,o=c[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */g("button",{onClick:()=>V(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 l=0;for(let e=0;e<r;e++)l+=t[e].length+1;for(;null!==(c=b.exec(e));){const e="x"===c[1]||"X"===c[1],t=c.index,n=l+t;i.push({idx:t,len:c[0].length,render:()=>/* @__PURE__ */g("button",{onClick:()=>L(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__ */g(a,{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__ */g("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__ */g("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */g("span",{children:""},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
|
|
19
|
+
return g("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(K):/* @__PURE__ */g("p",{className:"text-gray-300 whitespace-pre-line",children:B})}),
|
|
20
20
|
/* @__PURE__ */h("div",{className:"px-4 min-h-8 py-1 border-t border-gray-100 flex items-center gap-4 text-2xs text-gray-400",children:[
|
|
21
21
|
/* @__PURE__ */g("span",{children:"[] checkbox"}),
|
|
22
22
|
/* @__PURE__ */g("span",{children:"SO#35001 entity link"}),
|
|
23
|
-
/* @__PURE__ */g("span",{className:"ml-auto",children:
|
|
23
|
+
/* @__PURE__ */g("span",{className:"ml-auto",children:R?"Editing":"Click to edit"})]})]}):/* @__PURE__ */g("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
|
|
24
24
|
/* @__PURE__ */g(a,{name:"page",className:"h-12 w-12 mx-auto mb-3 text-gray-300",strokeWidth:1}),
|
|
25
25
|
/* @__PURE__ */g("p",{className:"text-sm",children:"Select a note or create a new one"})]})})})]})}export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-
|
|
1
|
+
export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-QQK3XS6H.js";import"./chunk-4NXMMWL6.js";import"./chunk-K7U4RWXJ.js";import"./chunk-KIBL6M3T.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-E6UCGCOC.js";import"./chunk-C3QOHMR6.js";
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-
|
|
1
|
+
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-EJUR35JG.js";import{subscribePomo as a,getPomoSnapshot as o,setPomoDurations as n,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as l,setPomoFocusSound as i,useTodoTasks as c,migratePomodoroTasksOnce as d,pomoSwitchMode as u,pomoPause as m,pomoStart as h,ALARM_OPTIONS as p,playAlarm as g,FOCUS_SOUND_OPTIONS as f,previewFocusSound as k}from"./chunk-ZEKM6HAA.js";import{PLACEHOLDER_INK as b}from"./chunk-JFSYWEHD.js";import{useWidgetSettings as x}from"./chunk-SG2MTCA2.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-JDCM2VHG.js";import"./chunk-KNUR2UEG.js";import"./chunk-HVX37PKU.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-FL2PUQX7.js";import"./chunk-ZN3O2KJ7.js";import"./chunk-YCQVEJOT.js";import{useShellPrefs as v}from"./chunk-KC3EX26K.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import"./chunk-4NXMMWL6.js";import"./chunk-O6JX6RDX.js";import"./chunk-5QFPTDQF.js";import"./chunk-BY2OWWKC.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-D323R2FT.js";import"./chunk-CDAJKLGL.js";import"./chunk-6KO5VTL7.js";import"./chunk-4IU5BSVE.js";import"./chunk-K7U4RWXJ.js";import"./chunk-VH6GB73Q.js";import{Icon as y}from"./chunk-KIBL6M3T.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-22S6LG6D.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-E6UCGCOC.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as N,useEffect as C,useMemo as w,useState as S,useRef as B,useCallback as j}from"react";import{jsxs as M,Fragment as T,jsx as P}from"react/jsx-runtime";var I="pomodoro_appearance",A="pomodoro_active_task_id",D={focus:"Pomodoro",short:"Short Break",long:"Long Break"},L={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var V=25,R=5,W=15,$=!1,J=!1,K=4,E=!0,O=!0,U="bell",F=100,G=1,Q="none",_=50,X=(e,t,a,o)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(a,Math.round(e))):o;function H(){const t=N(a,o,o),{prefs:g,save:k}=v(),b=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:X(t.focusMinutes,1,120,V),shortBreakMinutes:X(t.shortBreakMinutes,1,120,R),longBreakMinutes:X(t.longBreakMinutes,1,120,W),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:$,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:J,longBreakInterval:X(t.longBreakInterval,1,20,K),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:E,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:O,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:U,alarmVolume:X(t.alarmVolume,0,100,F),alarmRepeat:X(t.alarmRepeat,1,5,G),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:Q,focusVolume:X(t.focusVolume,0,100,_)}}(g.pomodoro_settings);C(()=>{n({focus:60*b.focusMinutes,short:60*b.shortBreakMinutes,long:60*b.longBreakMinutes})},[b.focusMinutes,b.shortBreakMinutes,b.longBreakMinutes]),C(()=>{r(b.alarmSound),s(b.alarmVolume,b.alarmRepeat)},[b.alarmSound,b.alarmVolume,b.alarmRepeat]),C(()=>{l({autoStartBreaks:b.autoStartBreaks,autoStartPomodoros:b.autoStartPomodoros,longBreakInterval:b.longBreakInterval})},[b.autoStartBreaks,b.autoStartPomodoros,b.longBreakInterval]),C(()=>{i(b.focusSound,b.focusVolume)},[b.focusSound,b.focusVolume]),C(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const H=c(),z=H.tasks,Z=w(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),q=function(e,t){return w(()=>t?(e=>{const t=[],a=[];for(const o of e)(o.done?a:t).push(o);return[...t,...a]})(e):e,[e,t])}(w(()=>z.filter(e=>!!e.dueDate&&(e.dueDate===Z||e.dueDate<Z&&!e.done)),[z,Z]),b.checkToBottom),[ee,te]=S(()=>localStorage.getItem(A)),[ae,oe]=S(!1),[ne,re]=S(null),se=B(!1);C(()=>{se.current||(se.current=!0,d(z,H.setAllTasks))},[]),C(()=>{try{ee?localStorage.setItem(A,ee):localStorage.removeItem(A)}catch{}},[ee]),C(()=>{if(!ne)return;const e=()=>re(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[ne]);const le=B(t.streak);C(()=>{if(t.streak>le.current&&ee){const e=z.find(e=>e.id===ee);if(e){const t=(e.completed??0)+1,a=e.estimated??0,o=b.autoCheckTasks&&a>0&&t>=a;H.updateTask(ee,{completed:t,done:e.done||o})}}le.current=t.streak},[t.streak,ee,b.autoCheckTasks,z,H]);const ce=q.reduce((e,t)=>e+(t.completed??0),0),de=q.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),ue=q.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),me=t.running&&"focus"===t.mode?t.remaining:0,he=ue*b.focusMinutes*60+me,pe=new Date(Date.now()+1e3*he).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),ge=(he/3600).toFixed(1),fe=ee?z.find(e=>e.id===ee)??null:null,ke=String(Math.floor(t.remaining/60)).padStart(2,"0"),be=String(t.remaining%60).padStart(2,"0"),[xe,ve]=S(()=>e(I)),[ye,Ne]=S(!1),[Ce,we]=S(xe),[Se,Be]=S(b);x(j(()=>{we({...xe}),Be({...b}),Ne(!0)},[xe,b]));const je="focus"!==t.mode,Me=L[t.mode],Te=je?(Pe=Me,Ie=xe.activeOpacity/100,`rgba(${parseInt(Pe.slice(1,3),16)}, ${parseInt(Pe.slice(3,5),16)}, ${parseInt(Pe.slice(5,7),16)}, ${Ie})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${xe.activeOpacity/100})`;var Pe,Ie;const Ae={primary:je?"text-white":"text-gray-900",secondary:je?"text-white/85":"text-gray-700",muted:je?"text-white/65":"text-gray-500",tabActive:je?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:je?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:je?"border-white/30":"border-gray-200",softDivider:je?"border-white/20":"border-gray-200",iconBtn:je?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:je?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},De=je?Me:"#0f172a";/* @__PURE__ */
|
|
2
2
|
return M(T,{children:[
|
|
3
|
-
/* @__PURE__ */M("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${
|
|
4
|
-
/* @__PURE__ */
|
|
3
|
+
/* @__PURE__ */M("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${Ae.primary}`,style:{backgroundColor:Te,backdropFilter:xe.activeBlur>0?`blur(${xe.activeBlur}px)`:void 0},children:[
|
|
4
|
+
/* @__PURE__ */P("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */P("button",{onClick:()=>u(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?Ae.tabActive:Ae.tabInactive}`,children:D[e]},e))}),
|
|
5
5
|
/* @__PURE__ */M("div",{className:"text-center font-bold tabular-nums leading-none tracking-tight mt-3",style:{fontSize:"4.5rem"},children:[ke,":",be]}),
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */M("div",{className:`text-xs leading-tight ${
|
|
9
|
-
/* @__PURE__ */
|
|
6
|
+
/* @__PURE__ */P("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */P("button",{onClick:()=>t.running?m():h(),className:"bg-white 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:De,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
|
|
7
|
+
/* @__PURE__ */P("div",{className:"px-3 py-3 text-center",children:fe?/* @__PURE__ */M(T,{children:[
|
|
8
|
+
/* @__PURE__ */M("div",{className:`text-xs leading-tight ${Ae.muted}`,children:["#",(fe.completed??0)+1]}),
|
|
9
|
+
/* @__PURE__ */P("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${Ae.primary}`,children:fe.name})]}):/* @__PURE__ */P("div",{className:`text-xs italic ${Ae.muted}`,children:"No task selected"})}),
|
|
10
10
|
/* @__PURE__ */M("div",{className:"px-3 mt-1 flex items-center justify-between",children:[
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
11
|
+
/* @__PURE__ */P("h3",{className:`text-base font-bold tracking-tight ${Ae.primary}`,children:"Tasks"}),
|
|
12
|
+
/* @__PURE__ */P("button",{className:`rounded p-1 transition-colors ${Ae.iconBtn}`,"aria-label":"Tasks menu",tabIndex:-1,children:/* @__PURE__ */P(y,{name:"more-vertical",look:"solid",className:"h-4 w-4"})})]}),
|
|
13
|
+
/* @__PURE__ */P("div",{className:`border-t mx-3 mt-2 ${Ae.divider}`}),
|
|
14
14
|
/* @__PURE__ */M("div",{className:"flex-1 px-3 py-3 space-y-2 overflow-y-auto",children:[q.map(e=>{const t=e.id===ee;/* @__PURE__ */
|
|
15
15
|
return M("div",{onClick:()=>te(e.id),className:"bg-white text-gray-800 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__ */
|
|
17
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,H.toggleDone(a)},className:"shrink-0",children:e.done?/* @__PURE__ */P("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:De},children:/* @__PURE__ */P("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__ */P("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */P("circle",{cx:"12",cy:"12",r:"10"})})}),
|
|
17
|
+
/* @__PURE__ */P("span",{className:"ml-3 flex-1 font-semibold truncate "+(e.done?"line-through text-gray-400":"text-gray-800"),children:e.name}),
|
|
18
18
|
/* @__PURE__ */M("span",{className:"text-sm tabular-nums mr-2 shrink-0",children:[
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */P("span",{className:"font-bold text-gray-500",children:e.completed??0}),
|
|
20
|
+
/* @__PURE__ */P("span",{className:"text-gray-400",children:" / "}),
|
|
21
|
+
/* @__PURE__ */P("span",{className:"text-gray-400",children:e.estimated??"–"})]}),
|
|
22
22
|
/* @__PURE__ */M("div",{className:"relative",children:[
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */M("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${
|
|
26
|
-
/* @__PURE__ */M("span",{className:
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */M("span",{className:
|
|
32
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */P("button",{onClick:t=>{t.stopPropagation(),re(ne===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */P(y,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-gray-500"})}),ne===e.id&&/* @__PURE__ */P("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__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,H.removeTask(a),ee===a&&te(null),re(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),ae?/* @__PURE__ */P(ie,{onSubmit:(e,t)=>{const a=e.trim();if(!a)return;const o=H.addTask({name:a,estimated:t,completed:0,dueDate:Z});ee||te(o),oe(!1)},onCancel:()=>oe(!1),accentColor:De}):/* @__PURE__ */M("button",{onClick:()=>oe(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${Ae.addTaskBtn}`,children:[
|
|
24
|
+
/* @__PURE__ */P(y,{name:"add-circle",className:"h-5 w-5",strokeWidth:2}),"Add Task"]})]}),
|
|
25
|
+
/* @__PURE__ */M("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${Ae.softDivider}`,children:[
|
|
26
|
+
/* @__PURE__ */M("span",{className:Ae.secondary,children:["Pomos: ",
|
|
27
|
+
/* @__PURE__ */P("span",{className:`font-bold ${Ae.primary}`,children:ce}),
|
|
28
|
+
/* @__PURE__ */P("span",{className:Ae.muted,children:" / "}),
|
|
29
|
+
/* @__PURE__ */P("span",{className:`font-bold ${Ae.primary}`,children:de})]}),he>0&&/* @__PURE__ */M("span",{className:Ae.secondary,children:["Finish At: ",
|
|
30
|
+
/* @__PURE__ */P("span",{className:`font-bold ${Ae.primary}`,children:pe}),
|
|
31
|
+
/* @__PURE__ */M("span",{className:Ae.muted,children:[" (",ge,"h)"]})]})]})]}),
|
|
32
|
+
/* @__PURE__ */P(Y,{open:ye,onClose:()=>Ne(!1),onSave:()=>{ve(Ce),localStorage.setItem(I,JSON.stringify(Ce)),k({pomodoro_settings:Se}),Ne(!1)},configAppearance:Ce,setConfigAppearance:we,configPrefs:Se,setConfigPrefs:Be})]})}function Y({open:e,onClose:a,onSave:o,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:l}){const i=(e,t)=>l(a=>({...a,[e]:t}));/* @__PURE__ */
|
|
33
33
|
return M(t,{open:e,onClose:a,title:"Pomodoro Settings",appearance:n,onAppearanceChange:r,onSave:o,children:[
|
|
34
|
-
/* @__PURE__ */M(z,{icon:/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */M(z,{icon:/* @__PURE__ */P(re,{}),label:"TIMER",children:[
|
|
35
35
|
/* @__PURE__ */M("div",{children:[
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */P("p",{className:"text-sm font-bold text-gray-800 mb-2",children:"Time (minutes)"}),
|
|
37
37
|
/* @__PURE__ */M("div",{className:"grid grid-cols-3 gap-3",children:[
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */M(z,{icon:/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */M(z,{icon:/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */P(ee,{label:"Pomodoro",value:s.focusMinutes,onChange:e=>i("focusMinutes",e),max:120}),
|
|
39
|
+
/* @__PURE__ */P(ee,{label:"Short Break",value:s.shortBreakMinutes,onChange:e=>i("shortBreakMinutes",e),max:120}),
|
|
40
|
+
/* @__PURE__ */P(ee,{label:"Long Break",value:s.longBreakMinutes,onChange:e=>i("longBreakMinutes",e),max:120})]})]}),
|
|
41
|
+
/* @__PURE__ */P(Z,{label:"Auto Start Breaks",children:/* @__PURE__ */P(oe,{checked:s.autoStartBreaks,onChange:e=>i("autoStartBreaks",e)})}),
|
|
42
|
+
/* @__PURE__ */P(Z,{label:"Auto Start Pomodoros",children:/* @__PURE__ */P(oe,{checked:s.autoStartPomodoros,onChange:e=>i("autoStartPomodoros",e)})}),
|
|
43
|
+
/* @__PURE__ */P(Z,{label:"Long Break interval",children:/* @__PURE__ */P(te,{value:s.longBreakInterval,onChange:e=>i("longBreakInterval",e),min:1,max:20,className:"w-14 text-center"})})]}),
|
|
44
|
+
/* @__PURE__ */M(z,{icon:/* @__PURE__ */P(se,{}),label:"TASK",children:[
|
|
45
|
+
/* @__PURE__ */P(Z,{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__ */P(oe,{checked:s.autoCheckTasks,onChange:e=>i("autoCheckTasks",e)})}),
|
|
46
|
+
/* @__PURE__ */P(Z,{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__ */P(oe,{checked:s.checkToBottom,onChange:e=>i("checkToBottom",e)})})]}),
|
|
47
|
+
/* @__PURE__ */M(z,{icon:/* @__PURE__ */P(le,{}),label:"SOUND",children:[
|
|
48
|
+
/* @__PURE__ */P(Z,{label:"Alarm Sound",children:/* @__PURE__ */M("div",{className:"flex items-center gap-2",children:[
|
|
49
|
+
/* @__PURE__ */P(ae,{value:s.alarmSound,onChange:e=>i("alarmSound",e),options:p.map(e=>({id:e.id,label:e.label}))}),"off"!==s.alarmSound&&/* @__PURE__ */P("button",{type:"button",onClick:()=>g(s.alarmSound,{volume:s.alarmVolume,repeat:1}),className:"px-2 py-1 text-2xs rounded border border-gray-300 text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
|
|
50
|
+
/* @__PURE__ */P(q,{value:s.alarmVolume,onChange:e=>i("alarmVolume",e)}),
|
|
51
|
+
/* @__PURE__ */P(Z,{label:"repeat",children:/* @__PURE__ */P(te,{value:s.alarmRepeat,onChange:e=>i("alarmRepeat",e),min:1,max:5,className:"w-14 text-center"})}),
|
|
52
|
+
/* @__PURE__ */P(Z,{label:"Focus Sound",children:/* @__PURE__ */M("div",{className:"flex items-center gap-2",children:[
|
|
53
|
+
/* @__PURE__ */P(ae,{value:s.focusSound,onChange:e=>i("focusSound",e),options:f}),"none"!==s.focusSound&&/* @__PURE__ */P("button",{type:"button",onClick:()=>k(s.focusSound,s.focusVolume),className:"px-2 py-1 text-2xs rounded border border-gray-300 text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
|
|
54
|
+
/* @__PURE__ */P(q,{value:s.focusVolume,onChange:e=>i("focusVolume",e)})]})]})}function z({icon:e,label:t,children:a}){/* @__PURE__ */
|
|
55
55
|
return M("div",{className:"border-t border-gray-200 pt-3 first:border-0 first:pt-0",children:[
|
|
56
56
|
/* @__PURE__ */M("div",{className:"flex items-center gap-2 mb-3 text-gray-400",children:[e,
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */P("span",{className:"text-xs font-bold tracking-[0.15em]",children:t})]}),
|
|
58
|
+
/* @__PURE__ */P("div",{className:"space-y-3",children:a})]})}function Z({label:e,info:t,children:a}){/* @__PURE__ */
|
|
59
59
|
return M("div",{className:"flex items-center justify-between gap-3",children:[
|
|
60
60
|
/* @__PURE__ */M("div",{className:"flex items-center gap-2 min-w-0",children:[
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */P("span",{className:"text-sm font-semibold text-gray-800",children:e}),t&&/* @__PURE__ */P(ne,{title:t})]}),
|
|
62
|
+
/* @__PURE__ */P("div",{className:"shrink-0",children:a})]})}function q({value:e,onChange:t}){/* @__PURE__ */
|
|
63
63
|
return M("div",{className:"flex items-center justify-end gap-3",children:[
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */P("span",{className:"text-xs text-gray-400 w-7 text-right tabular-nums",children:e}),
|
|
65
|
+
/* @__PURE__ */P("input",{type:"range",min:0,max:100,value:e,onChange:e=>t(parseInt(e.target.value,10)),className:"w-40 accent-blue-500"})]})}function ee({label:e,value:t,onChange:a,min:o=1,max:n=99}){/* @__PURE__ */
|
|
66
66
|
return M("label",{className:"flex flex-col",children:[
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
return
|
|
67
|
+
/* @__PURE__ */P("span",{className:"text-xs font-semibold text-gray-500 mb-1",children:e}),
|
|
68
|
+
/* @__PURE__ */P(te,{value:t,onChange:a,min:o,max:n})]})}function te({value:e,onChange:t,min:a=1,max:o=99,className:n=""}){/* @__PURE__ */
|
|
69
|
+
return P("input",{type:"number",min:a,max:o,value:e,onChange:e=>t(Math.max(a,Math.min(o,parseInt(e.target.value,10)||a))),className:`bg-gray-100 border-0 rounded-md px-2 h-8 text-sm font-medium text-gray-800 focus:outline-none focus:ring-2 focus:ring-blue-500 w-full ${n}`})}function ae({value:e,onChange:t,options:a}){/* @__PURE__ */
|
|
70
70
|
return M("div",{className:"relative",children:[
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
return
|
|
74
|
-
return
|
|
71
|
+
/* @__PURE__ */P("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-gray-800 focus:outline-none focus:ring-2 focus:ring-blue-500 cursor-pointer",children:a.map(e=>/* @__PURE__ */P("option",{value:e.id,children:e.label},e.id))}),
|
|
72
|
+
/* @__PURE__ */P(y,{name:"chevron-down",className:`absolute right-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 pointer-events-none ${b}`,strokeWidth:2.5})]})}function oe({checked:e,onChange:t}){/* @__PURE__ */
|
|
73
|
+
return P("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__ */P("span",{className:"absolute h-5 w-5 rounded-full bg-white shadow transition-transform "+(e?"translate-x-[22px]":"translate-x-0.5")})})}function ne({title:e}){/* @__PURE__ */
|
|
74
|
+
return P("span",{title:e,className:"inline-flex items-center justify-center w-4 h-4 rounded-full bg-gray-300 text-white text-3xs font-bold cursor-help",children:"i"})}function re(){/* @__PURE__ */
|
|
75
75
|
return M("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */P("circle",{cx:"12",cy:"12",r:"9"}),
|
|
77
|
+
/* @__PURE__ */P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7v5l3 2"})]})}function se(){/* @__PURE__ */
|
|
78
78
|
return M("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */P("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),
|
|
80
|
+
/* @__PURE__ */P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4"})]})}function le(){/* @__PURE__ */
|
|
81
81
|
return M("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5L6 9H2v6h4l5 4V5z"}),
|
|
83
|
+
/* @__PURE__ */P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 8.5a5 5 0 010 7M19 5a9 9 0 010 14"})]})}function ie({onSubmit:e,onCancel:t,accentColor:a}){const[o,n]=S(""),[r,s]=S(1),l=()=>e(o,r);/* @__PURE__ */
|
|
84
84
|
return M("div",{className:"bg-white text-gray-800 rounded-md p-3 shadow-(--elevation-panel)",children:[
|
|
85
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */P("input",{autoFocus:!0,value:o,onChange:e=>n(e.target.value),placeholder:"What are you working on?",onKeyDown:e=>{"Enter"===e.key&&l(),"Escape"===e.key&&t()},className:"w-full text-base font-medium bg-transparent border-0 outline-none placeholder-gray-400"}),
|
|
86
86
|
/* @__PURE__ */M("div",{className:"flex items-center justify-between mt-2",children:[
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */P("span",{className:"text-xs font-semibold text-gray-500",children:"Est Pomodoros"}),
|
|
88
|
+
/* @__PURE__ */P("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
89
|
/* @__PURE__ */M("div",{className:"flex gap-2 mt-3 justify-end",children:[
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */P("button",{onClick:t,className:"px-3 py-1 text-sm text-gray-500 hover:bg-gray-100 rounded",children:"Cancel"}),
|
|
91
|
+
/* @__PURE__ */P("button",{onClick:l,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:a},children:"Save"})]})]})}export{H as default};
|