efficient-shell 8.19.0 → 8.21.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 +4 -3
- package/dist/{Browser-MISWU3ND.js → Browser-WJ7YGO3M.js} +14 -14
- package/dist/Calculator-FHN36ZE3.js +29 -0
- package/dist/{CurrencyConverter-PD2CEL6V.js → CurrencyConverter-ONCRQNI4.js} +9 -9
- package/dist/{Documents-FQ6H7THR.js → Documents-YEMIR4WQ.js} +5 -5
- package/dist/Files-QWSOYRD4.js +87 -0
- package/dist/{Notepad-S3OWN7B7.js → Notepad-MFVUGAGD.js} +10 -10
- package/dist/PdfViewer-ZFZ4PEAV.js +1 -0
- package/dist/{PomodoroTimer-JEQTTMGA.js → PomodoroTimer-JVQ5K7B4.js} +68 -68
- package/dist/{Preview-DR4RDUTU.js → Preview-7G2WM7DN.js} +29 -29
- package/dist/Sidebar-OFRMBB5V.js +43 -0
- package/dist/{Spreadsheet-XJX6HY6R.js → Spreadsheet-VKOS3PUA.js} +14 -14
- package/dist/{Stock-VCMJMUCW.js → Stock-TWJNCTNT.js} +3 -3
- package/dist/{Weather-HF3E3N3M.js → Weather-RM7GPLAH.js} +16 -16
- package/dist/{WorldClock-PM5CJQSL.js → WorldClock-ITJ2MO75.js} +6 -6
- package/dist/ai/index.js +17 -17
- 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-22S6LG6D.js +6 -0
- package/dist/{chunk-CQXKO5PB.js → chunk-24L7NLA3.js} +1 -1
- package/dist/{chunk-O3HXASSH.js → chunk-2BS74SYW.js} +1 -1
- package/dist/chunk-2H6PDKTC.js +8 -0
- package/dist/chunk-36MUTG34.js +1 -0
- package/dist/{chunk-VWVFKMU7.js → chunk-3HNK7IRJ.js} +3 -3
- package/dist/{chunk-Z4BJRPAF.js → chunk-3PQHPFXP.js} +5 -5
- package/dist/{chunk-5TVF4BCM.js → chunk-3Z7LIHMB.js} +1 -1
- package/dist/chunk-4CANQ3B3.js +1 -0
- package/dist/{chunk-UEUCGC6G.js → chunk-4CWKK5HV.js} +4 -4
- package/dist/chunk-4IU5BSVE.js +2 -0
- package/dist/chunk-4PZN25MV.js +20 -0
- package/dist/{chunk-RC5SGXXR.js → chunk-4VK3GJZI.js} +1 -1
- package/dist/chunk-4XOTP5CB.js +2 -0
- package/dist/chunk-4YARHVZH.js +6 -0
- package/dist/{chunk-PXCARPLZ.js → chunk-55WFJELE.js} +1 -1
- package/dist/{chunk-MRBC7GLE.js → chunk-5Z2WLSFM.js} +15 -15
- package/dist/{chunk-KB6BGPQK.js → chunk-6GVJ6IKD.js} +1 -1
- package/dist/{chunk-7T3COEQK.js → chunk-6KO5VTL7.js} +1 -1
- package/dist/{chunk-AZWEWGYG.js → chunk-6V753BUI.js} +3 -3
- package/dist/{chunk-VO3KDIDR.js → chunk-735HKUTV.js} +1 -1
- package/dist/chunk-73DAZUJP.js +14 -0
- package/dist/{chunk-C6LV3HJW.js → chunk-7DKPJUGU.js} +1 -1
- package/dist/{chunk-IGH6DECG.js → chunk-7M7ESM5V.js} +12 -12
- package/dist/{chunk-UEMGH6EO.js → chunk-7S2I6ACG.js} +1 -1
- package/dist/{chunk-RZT7QES5.js → chunk-A4U4BTN3.js} +4 -4
- package/dist/{chunk-HT33WUTK.js → chunk-ACZZXO5S.js} +2 -2
- package/dist/{chunk-5GMWOYTF.js → chunk-AH2AUQYM.js} +1 -1
- package/dist/{chunk-AILWMDWP.js → chunk-AJ42UE53.js} +1 -1
- package/dist/{chunk-XDG2RWUO.js → chunk-AX7KPMDV.js} +2 -2
- package/dist/{chunk-B36HEVMT.js → chunk-AXZEINMF.js} +19 -19
- package/dist/{chunk-OAYHU7YN.js → chunk-B4XPFCCQ.js} +2 -2
- package/dist/{chunk-JSOO4O5K.js → chunk-B55IXYDR.js} +2 -2
- package/dist/chunk-B5VOHZCD.js +1 -0
- package/dist/{chunk-MVCNSGM4.js → chunk-BIS5PHHV.js} +2 -2
- package/dist/chunk-BTWEZX3M.js +5 -0
- package/dist/{chunk-3V6UFR7M.js → chunk-BXM72C73.js} +1 -1
- package/dist/{chunk-X3II54HU.js → chunk-CDRXZBVR.js} +1 -1
- package/dist/{chunk-6SBPGUSR.js → chunk-CFLVEKSH.js} +1 -1
- package/dist/{chunk-FBSQABH2.js → chunk-CMYLTCPA.js} +1 -1
- package/dist/{chunk-YZCRHDOB.js → chunk-CU2B7G5A.js} +1 -1
- package/dist/{chunk-P5QRK7WD.js → chunk-CUT7PAXL.js} +1 -1
- package/dist/{chunk-5SULG7D5.js → chunk-D323R2FT.js} +1 -1
- package/dist/{chunk-AK632G3F.js → chunk-D5HHU5AO.js} +7 -7
- package/dist/{chunk-UELYZT4T.js → chunk-DIKOEJ2Y.js} +1 -1
- package/dist/{chunk-CVNM25BM.js → chunk-DLCIGDKC.js} +6 -6
- package/dist/chunk-DLS2VCBK.js +3 -0
- package/dist/{chunk-QSPW43OC.js → chunk-DMLJOBQS.js} +8 -8
- package/dist/chunk-DNKACLRF.js +11 -0
- package/dist/{chunk-D6FSZBJ5.js → chunk-DO6XTJ77.js} +1 -1
- package/dist/chunk-DZT2O3JD.js +11 -0
- package/dist/{chunk-KZ6P7WC6.js → chunk-EAEUSMYL.js} +1 -1
- package/dist/{chunk-XSFQR374.js → chunk-ECZT7SIE.js} +1 -1
- package/dist/{chunk-VYKITRFG.js → chunk-EDQBTPDF.js} +7 -7
- package/dist/{chunk-XBXEK6XP.js → chunk-EKWSGPJ4.js} +7 -7
- package/dist/{chunk-JJ6IUIYX.js → chunk-EL3O7ZFQ.js} +1 -1
- package/dist/chunk-ERFM5U3M.js +12 -0
- package/dist/{chunk-TLJCUUZU.js → chunk-ET32NQHX.js} +1 -1
- package/dist/chunk-ETSKG62F.js +1 -0
- package/dist/{chunk-YXS67QZO.js → chunk-EXMFUK3A.js} +11 -11
- package/dist/chunk-F2Z6IXMM.js +2 -0
- package/dist/chunk-FPDKMCQH.js +8 -0
- package/dist/{chunk-TF3E5J3Y.js → chunk-GI7FOLDX.js} +1 -1
- package/dist/chunk-GSS4E7X3.js +1 -0
- package/dist/{chunk-DCNXCFAD.js → chunk-H7ZXUGXX.js} +26 -26
- package/dist/{chunk-ZLHF5XRR.js → chunk-HJIBTA6V.js} +9 -9
- package/dist/{chunk-Z6V3EY6F.js → chunk-HVVPBAP5.js} +3 -3
- package/dist/chunk-HXJZ46JT.js +1 -0
- package/dist/chunk-HYFHCPNJ.js +15 -0
- package/dist/{chunk-DBLJIK5J.js → chunk-IAQC775L.js} +1 -1
- package/dist/{chunk-J67YIQEN.js → chunk-IGCXJHAK.js} +1 -1
- package/dist/{chunk-DBDJQVQM.js → chunk-IJA5ZAGL.js} +1 -1
- package/dist/{chunk-YUIWG2QT.js → chunk-IKNNHEVY.js} +1 -1
- package/dist/{chunk-EXVR3BWW.js → chunk-IMF537IJ.js} +9 -9
- package/dist/{chunk-TKBP5HRY.js → chunk-IPOSLLLU.js} +12 -12
- package/dist/{chunk-VXWCX65A.js → chunk-IURSUMDO.js} +8 -8
- package/dist/{chunk-7SPX7DLO.js → chunk-IY3CRZRH.js} +16 -16
- package/dist/chunk-JGE7S7RQ.js +29 -0
- package/dist/{chunk-H5GQWWPA.js → chunk-JYOI66DT.js} +1 -1
- package/dist/chunk-K4DZWCUP.js +8 -0
- package/dist/{chunk-42BBJJDP.js → chunk-KIBL6M3T.js} +10 -5
- package/dist/chunk-KPFOXLN4.js +5 -0
- package/dist/chunk-KZEQJVBO.js +3 -0
- package/dist/chunk-L2HZ7YXS.js +14 -0
- package/dist/chunk-L2YW3END.js +4 -0
- package/dist/chunk-L65EQCZN.js +8 -0
- package/dist/{chunk-KATRRQD5.js → chunk-L6FLPBU2.js} +5 -5
- package/dist/{chunk-3WM23XSR.js → chunk-LDFRVV5R.js} +8 -8
- package/dist/chunk-LKRQXIOG.js +4 -0
- package/dist/{chunk-3KDY6V6I.js → chunk-LMLM4KHQ.js} +8 -8
- package/dist/{chunk-LMOPRRQY.js → chunk-LQQMELJM.js} +12 -12
- package/dist/chunk-LV2YFFA6.js +6 -0
- package/dist/{chunk-CQAXN3HN.js → chunk-LVSPLCGG.js} +1 -1
- package/dist/{chunk-WGSIYW63.js → chunk-M5BFTFBK.js} +15 -15
- package/dist/{chunk-ZDJNTOUS.js → chunk-MEOICYR5.js} +1 -1
- package/dist/{chunk-CDBS47XI.js → chunk-MFEJ6TYE.js} +1 -1
- package/dist/{chunk-U62AWCZR.js → chunk-MHYOQMBV.js} +1 -1
- package/dist/{chunk-RHYMHVFS.js → chunk-MKITHLDU.js} +9 -9
- package/dist/chunk-MOOBUMON.js +9 -0
- package/dist/{chunk-R6L6PKQP.js → chunk-MTSZ66O4.js} +1 -1
- package/dist/{chunk-Q6YPDR7U.js → chunk-MWAYM46R.js} +12 -12
- package/dist/{chunk-CHNYSP6K.js → chunk-N6DTTOB6.js} +1 -1
- package/dist/{chunk-XXBGWT7L.js → chunk-N7VNKAXZ.js} +1 -1
- package/dist/{chunk-F5VXS5JO.js → chunk-NBVF2CXM.js} +1 -1
- package/dist/{chunk-VO3HT6IK.js → chunk-NDTMQRR2.js} +1 -1
- package/dist/{chunk-MQADQ4YF.js → chunk-NKJDOQVW.js} +1 -1
- package/dist/{chunk-QKHTL3FQ.js → chunk-NNKMEF3D.js} +1 -1
- package/dist/{chunk-3AVHOYQZ.js → chunk-NRDO5IHL.js} +1 -1
- package/dist/{chunk-Q2S76TZH.js → chunk-NSCLFAKK.js} +1 -1
- package/dist/{chunk-EVPOZQOI.js → chunk-OCCHDMEV.js} +1 -1
- package/dist/chunk-OF6TUQAL.js +7 -0
- package/dist/{chunk-HFSEPYFH.js → chunk-OSSFYFXO.js} +1 -1
- package/dist/{chunk-F22KWATP.js → chunk-OSVN2UF7.js} +1 -1
- package/dist/{chunk-3RM3D2P3.js → chunk-OTU633XJ.js} +6 -6
- package/dist/{chunk-KE6NYTGF.js → chunk-OZF4QAJT.js} +3 -3
- package/dist/{chunk-HME2P5VX.js → chunk-OZPYTSPD.js} +23 -23
- package/dist/{chunk-MBXTOYMX.js → chunk-P7WUDHIP.js} +6 -6
- package/dist/{chunk-ZNZDV6SN.js → chunk-PG6AVBSR.js} +1 -1
- package/dist/{chunk-UPHXYWL6.js → chunk-PJCVNFWM.js} +11 -11
- package/dist/{chunk-NDOW3VA6.js → chunk-PTDLNTSK.js} +13 -13
- package/dist/{chunk-N7KL336H.js → chunk-PVSGQN5M.js} +6 -6
- package/dist/{chunk-47MFBFIX.js → chunk-PWOFYFMO.js} +6 -6
- package/dist/{chunk-RQ5RVKRO.js → chunk-QEVIQZIE.js} +2 -2
- package/dist/{chunk-4MTC6HA5.js → chunk-RAAUW5OZ.js} +2 -2
- package/dist/{chunk-E2YGQAFU.js → chunk-RAI3GTS6.js} +1 -1
- package/dist/chunk-RAQESAQZ.js +3 -0
- package/dist/{chunk-5JQCPUEO.js → chunk-RCRI6QZV.js} +1 -1
- package/dist/{chunk-G3IG4X4Z.js → chunk-RDPUVCXR.js} +1 -1
- package/dist/{chunk-4TER5BHR.js → chunk-RZBHO74V.js} +1 -1
- package/dist/{chunk-MKTO2FHK.js → chunk-SAKHGHF5.js} +1 -1
- package/dist/{chunk-4G5M752L.js → chunk-SXSMIMFY.js} +3 -3
- package/dist/{chunk-JSB5G2XQ.js → chunk-THDSOVEH.js} +2 -2
- package/dist/{chunk-CHOMUTLT.js → chunk-TT3S2XVQ.js} +1 -1
- package/dist/chunk-TW6WEYGO.js +8 -0
- package/dist/{chunk-XUK35DKG.js → chunk-U5I7IF72.js} +1 -1
- package/dist/{chunk-IM7QHAXT.js → chunk-UFVQ7ZBP.js} +5 -5
- package/dist/{chunk-QSW26NAH.js → chunk-UQBPKZUR.js} +1 -1
- package/dist/{chunk-F4PESM6A.js → chunk-UY47AKZU.js} +6 -6
- package/dist/{chunk-4TL3MRRE.js → chunk-VH6GB73Q.js} +1 -1
- package/dist/{chunk-2GPXC6JX.js → chunk-VHAM5TD2.js} +1 -1
- package/dist/{chunk-5VUVKP55.js → chunk-VOHZQVFK.js} +6 -6
- package/dist/chunk-VT62T6B3.js +19 -0
- package/dist/{chunk-IH4SVMXJ.js → chunk-VX4BNYH3.js} +2 -2
- package/dist/{chunk-O43QLNPL.js → chunk-VY7EPQEG.js} +1 -1
- package/dist/chunk-WBEMN4JG.js +9 -0
- package/dist/{chunk-TQP3L4OC.js → chunk-WDXJWC3Y.js} +5 -5
- package/dist/{chunk-L2XGVLO7.js → chunk-WJEDIAG4.js} +1 -1
- package/dist/{chunk-7HTURXIA.js → chunk-WRJDHFLD.js} +3 -3
- package/dist/chunk-X4EBWJWO.js +1 -0
- package/dist/{chunk-RV6N2Y52.js → chunk-XVJCVYDI.js} +2 -2
- package/dist/{chunk-NGVODCMV.js → chunk-XWH6KVVB.js} +3 -3
- package/dist/chunk-Y2P5HTP5.js +4 -0
- package/dist/chunk-Y5ZWPU4L.js +14 -0
- package/dist/{chunk-7RD623PT.js → chunk-YGEK2Z6P.js} +1 -1
- package/dist/chunk-YKDKVSAL.js +4 -0
- package/dist/{chunk-55DONELU.js → chunk-YSHS6QIY.js} +6 -6
- package/dist/{chunk-ABD5X73I.js → chunk-YTGWIMXB.js} +1 -1
- package/dist/{chunk-2SHDXTB6.js → chunk-YVBFFE4Z.js} +5 -5
- package/dist/{chunk-B5MOPSMW.js → chunk-ZBLNVAZ4.js} +3 -3
- package/dist/{chunk-BIEKHPZ5.js → chunk-ZDK2JYH5.js} +52 -52
- package/dist/{chunk-FFZ7KPIV.js → chunk-ZKOIGLRF.js} +7 -7
- 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/AlignmentGrid.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Button.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/IconButton.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 +157 -0
- package/dist/forms/MediaLibrary.js +2 -0
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.d.ts +54 -3
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/NumericKeypad.js +1 -1
- package/dist/forms/PictureTiles.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/Segmented.js +1 -1
- package/dist/forms/Select.d.ts +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 +64 -0
- package/dist/forms/mediaLibraryMenu.js +2 -0
- package/dist/forms/mediaMoveItems.d.ts +42 -3
- package/dist/forms/mediaMoveItems.js +1 -1
- package/dist/forms/useFileIntake.js +1 -1
- package/dist/icons/efficient-glyphs.d.ts +2 -0
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.d.ts +4 -0
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient-meanings.d.ts +2 -0
- package/dist/icons/efficient-meanings.js +1 -1
- package/dist/icons/efficient.d.ts +2 -0
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/glyphs/DetachIcon.d.ts +8 -0
- package/dist/icons/glyphs/DetachIcon.js +1 -0
- package/dist/icons/glyphs/SharedIcon.d.ts +8 -0
- package/dist/icons/glyphs/SharedIcon.js +1 -0
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/icons/looks/DetachMiniIcon.d.ts +8 -0
- package/dist/icons/looks/DetachMiniIcon.js +1 -0
- package/dist/icons/looks/DetachSolidIcon.d.ts +8 -0
- package/dist/icons/looks/DetachSolidIcon.js +1 -0
- package/dist/icons/looks/SharedMiniIcon.d.ts +8 -0
- package/dist/icons/looks/SharedMiniIcon.js +1 -0
- package/dist/icons/looks/SharedSolidIcon.d.ts +8 -0
- package/dist/icons/looks/SharedSolidIcon.js +1 -0
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +410 -410
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/map/index.js +6 -6
- package/dist/markdown/index.js +1 -1
- package/dist/{names-DcR-HlYV.d.ts → names-DYWfNBkN.d.ts} +1 -1
- 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/StatusBadge.js +1 -1
- package/dist/shell/StepChain.js +1 -1
- package/dist/shell/Stepper.js +1 -1
- package/dist/shell/Tabs.js +1 -1
- package/dist/shell/TimeAgo.js +1 -1
- package/dist/shell/TimelineTrack.js +1 -1
- package/dist/shell/Tooltip.d.ts +9 -1
- package/dist/shell/Tooltip.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.d.ts +10 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/shell/language.js +1 -1
- package/dist/shell/strings.d.ts +88 -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/ui/index.d.ts +5 -3
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-PH6NVEEZ.js +0 -29
- package/dist/Files-R2657GKS.js +0 -87
- package/dist/PdfViewer-GODDA4GG.js +0 -1
- package/dist/Sidebar-SJMMY2Y2.js +0 -43
- package/dist/chunk-2LXTJXWC.js +0 -6
- package/dist/chunk-36DYXGQI.js +0 -7
- package/dist/chunk-3NWCVZRK.js +0 -10
- package/dist/chunk-3P7SBAKK.js +0 -3
- package/dist/chunk-BLO7KTPH.js +0 -1
- package/dist/chunk-BZWTFLQD.js +0 -15
- package/dist/chunk-CIGHIX6Z.js +0 -14
- package/dist/chunk-DAJTVAWO.js +0 -11
- package/dist/chunk-ENVCMR3M.js +0 -5
- package/dist/chunk-F6RM7RLQ.js +0 -1
- package/dist/chunk-GMEOULVW.js +0 -11
- package/dist/chunk-H5VGRHNT.js +0 -9
- package/dist/chunk-HLGE6TVE.js +0 -4
- package/dist/chunk-HMZLRXLA.js +0 -1
- package/dist/chunk-KKZZAK76.js +0 -1
- package/dist/chunk-N7GAQVSH.js +0 -8
- package/dist/chunk-NI76QOA2.js +0 -2
- package/dist/chunk-NZ67C5OK.js +0 -12
- package/dist/chunk-OHSJWKNV.js +0 -14
- package/dist/chunk-PTMPGFUQ.js +0 -8
- package/dist/chunk-Q75PSCZ5.js +0 -20
- package/dist/chunk-R362N2RJ.js +0 -1
- package/dist/chunk-R7XAMDBY.js +0 -2
- package/dist/chunk-SIQSD3QT.js +0 -8
- package/dist/chunk-SXPBOX32.js +0 -1
- package/dist/chunk-TCB2J3PS.js +0 -9
- package/dist/chunk-TMTTEBZV.js +0 -19
- package/dist/chunk-UDD7GB4F.js +0 -2
- package/dist/chunk-WL3AJ2UB.js +0 -8
- package/dist/chunk-WMO2JQNL.js +0 -8
- package/dist/chunk-WOHOIJRZ.js +0 -3
- /package/dist/{chunk-A6L6FYG4.js → chunk-276AUQNN.js} +0 -0
- /package/dist/{chunk-PCGZS6S4.js → chunk-WYHRPXEX.js} +0 -0
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import"../chunk-PCGZS6S4.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-MVP6Q6KV.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{CheckoutTemplate}from"../chunk-O3HXASSH.js";export{DashboardTemplate}from"../chunk-NDOW3VA6.js";export{DataTablePage}from"../chunk-XXBGWT7L.js";export{EmailTemplate}from"../chunk-RC5SGXXR.js";export{ErrorBoundary}from"../chunk-J67YIQEN.js";export{ErrorPage}from"../chunk-YZCRHDOB.js";export{FormLayoutPage}from"../chunk-O43QLNPL.js";export{GalleryTemplate}from"../chunk-JJ6IUIYX.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-XSFQR374.js";export{ChatTemplate}from"../chunk-KZ6P7WC6.js";export{TimeAgo}from"../chunk-CHOMUTLT.js";export{TopNav}from"../chunk-P5QRK7WD.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-YXS67QZO.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-3V6UFR7M.js";export{Stepper}from"../chunk-TF3E5J3Y.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-4G5M752L.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{SettingReset}from"../chunk-2GPXC6JX.js";export{SettingRow}from"../chunk-EXVR3BWW.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-3RM3D2P3.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-AZWEWGYG.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-MBXTOYMX.js";import"../chunk-CQAXN3HN.js";export{MilestoneTimeline}from"../chunk-NI76QOA2.js";export{PageHeader}from"../chunk-EVPOZQOI.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-IGH6DECG.js";import"../chunk-SURSVJA2.js";export{TimelineTrack}from"../chunk-HME2P5VX.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{ResizeHandle}from"../chunk-JSB5G2XQ.js";export{IconRail,IconRailButton}from"../chunk-FBSQABH2.js";import"../chunk-FQEALPZJ.js";export{ImageLightbox,lightboxKind}from"../chunk-DAJTVAWO.js";export{ZoomableImage}from"../chunk-U5KIRPLV.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-UELYZT4T.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{MetricBar}from"../chunk-AK632G3F.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-H5GQWWPA.js";import"../chunk-URBCGEXG.js";export{Drawer}from"../chunk-CVNM25BM.js";export{EditableGrid}from"../chunk-3KDY6V6I.js";import"../chunk-BR22X7E5.js";export{EmptyState}from"../chunk-AILWMDWP.js";export{EmptyValue}from"../chunk-64WSMLXG.js";export{FloatingBar}from"../chunk-EIUCHQI2.js";export{GlobalSearch,openGlobalSearch}from"../chunk-55DONELU.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-VXWCX65A.js";export{ContainerFillChart}from"../chunk-3WM23XSR.js";export{ContextMenu,useContextMenu}from"../chunk-XDG2RWUO.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-Z6V3EY6F.js";export{CountBadge}from"../chunk-7RD623PT.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-UEMGH6EO.js";export{Avatar,AvatarGroup}from"../chunk-D6FSZBJ5.js";export{Breadcrumbs}from"../chunk-4TER5BHR.js";export{BudgetBar,budgetState}from"../chunk-IM7QHAXT.js";export{Card,StatCard}from"../chunk-47MFBFIX.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-Q2S76TZH.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-SXPBOX32.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.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{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-4LXH6DCN.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{mediaMoveItems,useMediaMoveItems}from"../chunk-3P7SBAKK.js";export{TagInput}from"../chunk-SIQSD3QT.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-F4PESM6A.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-6SBPGUSR.js";export{WidthsBar}from"../chunk-XBXEK6XP.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-OAYHU7YN.js";export{Slider,SliderGroup}from"../chunk-ENVCMR3M.js";export{Snippet}from"../chunk-36DYXGQI.js";export{SplitButton_default as SplitButton}from"../chunk-WOHOIJRZ.js";export{DropdownMenu}from"../chunk-TQP3L4OC.js";import"../chunk-JSOO4O5K.js";export{Switch_default as Switch}from"../chunk-STA76WXF.js";export{MediaUploadGrid}from"../chunk-3NWCVZRK.js";export{MediaUsedInList}from"../chunk-5JQCPUEO.js";export{NumericKeypad}from"../chunk-XUK35DKG.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-TLJCUUZU.js";export{PositionInput}from"../chunk-DBDJQVQM.js";export{RadioGroup}from"../chunk-TZSPJIP4.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{IconPicker}from"../chunk-NGVODCMV.js";export{LinkPicker,TextLinkField}from"../chunk-OHSJWKNV.js";export{SearchableSelect}from"../chunk-NZ67C5OK.js";export{NativeSelect,Select_default as Select}from"../chunk-Q75PSCZ5.js";import"../chunk-EO5RLFRX.js";import"../chunk-QSW26NAH.js";export{Input_default as Input}from"../chunk-UNEJ2ABD.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-KATRRQD5.js";export{CornersInput}from"../chunk-RZT7QES5.js";export{DatePicker_default as DatePicker}from"../chunk-QSPW43OC.js";export{DateRangePicker,toISODate}from"../chunk-7SPX7DLO.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-ZDJNTOUS.js";export{DisplayChips}from"../chunk-UEUCGC6G.js";export{FilePicker_default as FilePicker}from"../chunk-ZLHF5XRR.js";export{FormErrorSummary}from"../chunk-VO3HT6IK.js";export{AlignmentGrid}from"../chunk-C6LV3HJW.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-KE6NYTGF.js";export{BrandAssetEditor}from"../chunk-5VUVKP55.js";export{MediaUploadField}from"../chunk-TCB2J3PS.js";export{ImageFocusPoint}from"../chunk-N7KL336H.js";export{FormField}from"../chunk-MVQBVPWP.js";export{mediaFileName}from"../chunk-KB6BGPQK.js";export{TransferProgress}from"../chunk-5TVF4BCM.js";export{Segmented}from"../chunk-CHNYSP6K.js";import"../chunk-4G5VLI7E.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-TKBP5HRY.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-Q6YPDR7U.js";export{hexToHsv,hsvToHex,parseHexColor}from"../chunk-H245LLX4.js";export{Popover}from"../chunk-RNBM5JZI.js";export{InputNumber_default as InputNumber}from"../chunk-IH4SVMXJ.js";export{useInSettingRow,useSettingAuto}from"../chunk-E4Z5OXBI.js";export{DataTable}from"../chunk-WGSIYW63.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-2SHDXTB6.js";export{ListFooter}from"../chunk-MQADQ4YF.js";export{ListLoadError}from"../chunk-YUIWG2QT.js";export{Pagination}from"../chunk-ABD5X73I.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-ZNZDV6SN.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-PTMPGFUQ.js";export{StatTile}from"../chunk-E2YGQAFU.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-HLGE6TVE.js";export{TimeSeriesChart}from"../chunk-TMTTEBZV.js";export{TreemapChart}from"../chunk-FFZ7KPIV.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-VO3KDIDR.js";export{HistogramChart}from"../chunk-R7XAMDBY.js";export{Meter}from"../chunk-VWVFKMU7.js";export{PieChart}from"../chunk-RHYMHVFS.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-BZWTFLQD.js";export{RadialBarChart}from"../chunk-VYKITRFG.js";export{RangeChart}from"../chunk-Z4BJRPAF.js";export{RankedBars}from"../chunk-B5MOPSMW.js";export{SankeyChart}from"../chunk-H5VGRHNT.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-QKHTL3FQ.js";export{ChordChart}from"../chunk-WMO2JQNL.js";import"../chunk-X3II54HU.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-WL3AJ2UB.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-G3IG4X4Z.js";export{FunnelChart}from"../chunk-CIGHIX6Z.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{HeatmapChart}from"../chunk-GMEOULVW.js";export{StepChain,StepChainItem}from"../chunk-MKTO2FHK.js";export{Markdown,Markdown as MarkdownLite}from"../chunk-5GMWOYTF.js";export{Banner}from"../chunk-CQXKO5PB.js";export{Textarea_default as Textarea}from"../chunk-AWY3F6PV.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{IconButton_default as IconButton}from"../chunk-HMZLRXLA.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-JFSYWEHD.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.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-PXCARPLZ.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-Y53KNQKL.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-MRBC7GLE.js";export{Dialog}from"../chunk-MVCNSGM4.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-F22KWATP.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-UPHXYWL6.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{ColoredBadge}from"../chunk-CDBS47XI.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-5SULG7D5.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";import"../chunk-7T3COEQK.js";export{VERSION}from"../chunk-BLO7KTPH.js";export{Button_default as Button}from"../chunk-UDD7GB4F.js";export{buttonClasses,iconButtonClasses}from"../chunk-K7U4RWXJ.js";import"../chunk-4TL3MRRE.js";export{Icon}from"../chunk-42BBJJDP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";export{Tooltip}from"../chunk-2LXTJXWC.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-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{BoxPlotChart}from"../chunk-L2XGVLO7.js";export{CandlestickChart}from"../chunk-RV6N2Y52.js";export{ChartTooltip}from"../chunk-P5BOTIJU.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-DTJRIWFR.js";export{CartesianPlot}from"../chunk-N7GAQVSH.js";import"../chunk-MG7A3R75.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{ChartBrush}from"../chunk-7HTURXIA.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
|
|
2
|
+
import"../chunk-276AUQNN.js";export{FormLayoutPage}from"../chunk-VY7EPQEG.js";export{GalleryTemplate}from"../chunk-EL3O7ZFQ.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-MVP6Q6KV.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{AuthScreen}from"../chunk-ECZT7SIE.js";export{ChatTemplate}from"../chunk-EAEUSMYL.js";export{CheckoutTemplate}from"../chunk-2BS74SYW.js";export{DashboardTemplate}from"../chunk-PTDLNTSK.js";export{DataTablePage}from"../chunk-N7VNKAXZ.js";export{EmailTemplate}from"../chunk-4VK3GJZI.js";export{ErrorBoundary}from"../chunk-IGCXJHAK.js";export{ErrorPage}from"../chunk-CU2B7G5A.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-SXSMIMFY.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-TT3S2XVQ.js";export{TopNav}from"../chunk-CUT7PAXL.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-P7WUDHIP.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-BXM72C73.js";export{Stepper}from"../chunk-GI7FOLDX.js";export{SettingReset}from"../chunk-VHAM5TD2.js";export{SettingRow}from"../chunk-IMF537IJ.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-OTU633XJ.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-6V753BUI.js";import"../chunk-QWK6DRSN.js";export{MetricBar}from"../chunk-D5HHU5AO.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-JYOI66DT.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-F2Z6IXMM.js";export{PageHeader}from"../chunk-OCCHDMEV.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-7M7ESM5V.js";import"../chunk-SURSVJA2.js";export{TimelineTrack}from"../chunk-OZPYTSPD.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{ResizeHandle}from"../chunk-THDSOVEH.js";export{GlobalSearch,openGlobalSearch}from"../chunk-YSHS6QIY.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-IURSUMDO.js";export{IconRail,IconRailButton}from"../chunk-CMYLTCPA.js";import"../chunk-FQEALPZJ.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-DIKOEJ2Y.js";export{Divider}from"../chunk-DFOFEBYX.js";export{EditableGrid}from"../chunk-LMLM4KHQ.js";import"../chunk-BR22X7E5.js";export{EmptyValue}from"../chunk-64WSMLXG.js";export{FloatingBar}from"../chunk-EIUCHQI2.js";export{BudgetBar,budgetState}from"../chunk-UFVQ7ZBP.js";export{Card,StatCard}from"../chunk-PWOFYFMO.js";export{ContainerFillChart}from"../chunk-LDFRVV5R.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-NSCLFAKK.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-HVVPBAP5.js";export{CountBadge}from"../chunk-YGEK2Z6P.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-7S2I6ACG.js";export{Avatar,AvatarGroup}from"../chunk-DO6XTJ77.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-GSS4E7X3.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-CFLVEKSH.js";export{WidthsBar}from"../chunk-EKWSGPJ4.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-B4XPFCCQ.js";export{Slider,SliderGroup}from"../chunk-KPFOXLN4.js";export{Snippet}from"../chunk-OF6TUQAL.js";export{SplitButton_default as SplitButton}from"../chunk-KZEQJVBO.js";export{Switch_default as Switch}from"../chunk-STA76WXF.js";export{TagInput}from"../chunk-K4DZWCUP.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-UY47AKZU.js";export{NumericKeypad}from"../chunk-U5I7IF72.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-ET32NQHX.js";export{PositionInput}from"../chunk-IJA5ZAGL.js";export{RadioGroup}from"../chunk-TZSPJIP4.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-73DAZUJP.js";export{SearchableSelect}from"../chunk-ERFM5U3M.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary}from"../chunk-JGE7S7RQ.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-EXMFUK3A.js";import"../chunk-LVSPLCGG.js";export{ImageLightbox,lightboxKind}from"../chunk-DNKACLRF.js";export{ZoomableImage}from"../chunk-U5KIRPLV.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{Drawer}from"../chunk-DLCIGDKC.js";export{EmptyState}from"../chunk-AJ42UE53.js";export{ContextMenu,useContextMenu}from"../chunk-AX7KPMDV.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Breadcrumbs}from"../chunk-RZBHO74V.js";export{mediaLibraryMenu}from"../chunk-DLS2VCBK.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-RAQESAQZ.js";import"../chunk-36MUTG34.js";export{DropdownMenu}from"../chunk-WDXJWC3Y.js";import"../chunk-B55IXYDR.js";export{MediaUsedInList}from"../chunk-RCRI6QZV.js";export{NativeSelect,Select_default as Select}from"../chunk-4PZN25MV.js";import"../chunk-EO5RLFRX.js";import"../chunk-UQBPKZUR.js";export{Input_default as Input}from"../chunk-UNEJ2ABD.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-Y5ZWPU4L.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-MEOICYR5.js";export{DisplayChips}from"../chunk-4CWKK5HV.js";export{FilePicker_default as FilePicker}from"../chunk-HJIBTA6V.js";export{FormErrorSummary}from"../chunk-NDTMQRR2.js";export{IconPicker}from"../chunk-XWH6KVVB.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-L6FLPBU2.js";export{CornersInput}from"../chunk-A4U4BTN3.js";export{DatePicker_default as DatePicker}from"../chunk-DMLJOBQS.js";export{DateRangePicker,toISODate}from"../chunk-IY3CRZRH.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-IPOSLLLU.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.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{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-4LXH6DCN.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{AlignmentGrid}from"../chunk-7DKPJUGU.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-OZF4QAJT.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-MWAYM46R.js";export{hexToHsv,hsvToHex,parseHexColor}from"../chunk-H245LLX4.js";export{Popover}from"../chunk-RNBM5JZI.js";export{InputNumber_default as InputNumber}from"../chunk-VX4BNYH3.js";export{useInSettingRow,useSettingAuto}from"../chunk-E4Z5OXBI.js";export{BrandAssetEditor}from"../chunk-VOHZQVFK.js";export{MediaUploadField}from"../chunk-WBEMN4JG.js";export{ImageFocusPoint}from"../chunk-PVSGQN5M.js";export{FormField}from"../chunk-MVQBVPWP.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{mediaFileName}from"../chunk-6GVJ6IKD.js";export{TransferProgress}from"../chunk-3Z7LIHMB.js";export{Segmented}from"../chunk-N6DTTOB6.js";import"../chunk-4G5VLI7E.js";export{DataTable}from"../chunk-M5BFTFBK.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-YVBFFE4Z.js";export{ListFooter}from"../chunk-NKJDOQVW.js";export{ListLoadError}from"../chunk-IKNNHEVY.js";export{Pagination}from"../chunk-YTGWIMXB.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-PG6AVBSR.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{SankeyChart}from"../chunk-MOOBUMON.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-2H6PDKTC.js";export{StatTile}from"../chunk-RAI3GTS6.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-L2YW3END.js";export{TimeSeriesChart}from"../chunk-VT62T6B3.js";export{TreemapChart}from"../chunk-ZKOIGLRF.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-735HKUTV.js";export{HeatmapChart}from"../chunk-DZT2O3JD.js";export{HistogramChart}from"../chunk-4XOTP5CB.js";export{Meter}from"../chunk-3HNK7IRJ.js";export{PieChart}from"../chunk-MKITHLDU.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-HYFHCPNJ.js";export{RadialBarChart}from"../chunk-EDQBTPDF.js";export{RangeChart}from"../chunk-3PQHPFXP.js";export{RankedBars}from"../chunk-ZBLNVAZ4.js";export{ChartBrush}from"../chunk-WRJDHFLD.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-NNKMEF3D.js";export{ChordChart}from"../chunk-TW6WEYGO.js";import"../chunk-CDRXZBVR.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-L65EQCZN.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-RDPUVCXR.js";export{FunnelChart}from"../chunk-L2HZ7YXS.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{StepChain,StepChainItem}from"../chunk-SAKHGHF5.js";export{Markdown,Markdown as MarkdownLite}from"../chunk-AH2AUQYM.js";export{Textarea_default as Textarea}from"../chunk-AWY3F6PV.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{Banner}from"../chunk-24L7NLA3.js";export{IconButton_default as IconButton}from"../chunk-4CANQ3B3.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-JFSYWEHD.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.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-KNUR2UEG.js";export{Result}from"../chunk-55WFJELE.js";import"../chunk-5A7MWTXX.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-Y53KNQKL.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-5Z2WLSFM.js";export{Dialog}from"../chunk-BIS5PHHV.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-OSVN2UF7.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-PJCVNFWM.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{ColoredBadge}from"../chunk-MFEJ6TYE.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-D323R2FT.js";import"../chunk-6KO5VTL7.js";export{VERSION}from"../chunk-X4EBWJWO.js";export{Button_default as Button}from"../chunk-4IU5BSVE.js";export{buttonClasses,iconButtonClasses}from"../chunk-K7U4RWXJ.js";export{Icon}from"../chunk-KIBL6M3T.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";export{LoadingSpinner,SpinnerRing}from"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";export{Tooltip}from"../chunk-22S6LG6D.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-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-WJEDIAG4.js";export{CandlestickChart}from"../chunk-XVJCVYDI.js";export{ChartTooltip}from"../chunk-P5BOTIJU.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-DTJRIWFR.js";export{CartesianPlot}from"../chunk-FPDKMCQH.js";import"../chunk-MG7A3R75.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.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{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-ETSKG62F.js";import"../chunk-C3QOHMR6.js";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{APP_VERSION,VERSION}from"./chunk-
|
|
1
|
+
export{APP_VERSION,VERSION}from"./chunk-X4EBWJWO.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.21.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-R6L6PKQP.js";import{useWidgetSettings as n}from"./chunk-BIEKHPZ5.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-PXCARPLZ.js";import"./chunk-Y53KNQKL.js";import"./chunk-5A7MWTXX.js";import"./chunk-3AVHOYQZ.js";import"./chunk-MRBC7GLE.js";import"./chunk-MVCNSGM4.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import"./chunk-KC3EX26K.js";import"./chunk-UPHXYWL6.js";import"./chunk-5QFPTDQF.js";import"./chunk-CDBS47XI.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-5SULG7D5.js";import"./chunk-CDAJKLGL.js";import"./chunk-7T3COEQK.js";import"./chunk-UDD7GB4F.js";import"./chunk-K7U4RWXJ.js";import"./chunk-4TL3MRRE.js";import{Icon as r}from"./chunk-42BBJJDP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-2LXTJXWC.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-KKZZAK76.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as l,useEffect as o}from"react";import{jsxs as s,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),[W,E]=c(()=>e(h)),[R,T]=c(!1),[D,K]=c(W),L=i(null);n(l(()=>{K({...W}),T(!0)},[W]));const w=l(e=>{C(""),k(t=>j||"0"===t?(N(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[j]),J=l(()=>{k("0"),d(null),g(null),N(!1)},[]),S=l((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}},[]),A=l(e=>{const t=parseFloat(m);if(null!==p&&b&&!j){const e=S(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,S]),B=l(()=>{if(null===p||!b)return;const e=parseFloat(m),t=S(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,S]),M=l(()=>{k(e=>String(parseFloat(e)/100))},[]),P=l(()=>{k(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);o(()=>{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?A("+"):"-"===e.key?A("-"):"*"===e.key?A("×"):"/"===e.key?(e.preventDefault(),A("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&L.current?.contains(e.target)&&e.preventDefault(),B()):"Escape"===e.key?J():"Backspace"===e.key?k(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&M())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[w,A,B,J,M]);const Q="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",U=`${Q} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,G=`${Q} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,X=`${Q} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,F=`${Q} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
|
|
2
|
-
return s(a,{children:[
|
|
3
|
-
/* @__PURE__ */s("div",{ref:L,className:"flex flex-col h-full",style:{opacity:W.activeOpacity/100,backdropFilter:W.activeBlur>0?`blur(${W.activeBlur}px)`:void 0},children:[
|
|
4
|
-
/* @__PURE__ */s("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__ */s("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__ */s("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
|
|
10
|
-
/* @__PURE__ */u("button",{onClick:J,className:X,children:"AC"}),
|
|
11
|
-
/* @__PURE__ */u("button",{onClick:P,className:X,children:"+/−"}),
|
|
12
|
-
/* @__PURE__ */u("button",{onClick:M,className:X,children:"%"}),
|
|
13
|
-
/* @__PURE__ */u("button",{onClick:()=>A("÷"),className:`${G} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
|
|
14
|
-
/* @__PURE__ */u("button",{onClick:()=>w("7"),className:U,children:"7"}),
|
|
15
|
-
/* @__PURE__ */u("button",{onClick:()=>w("8"),className:U,children:"8"}),
|
|
16
|
-
/* @__PURE__ */u("button",{onClick:()=>w("9"),className:U,children:"9"}),
|
|
17
|
-
/* @__PURE__ */u("button",{onClick:()=>A("×"),className:`${G} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
|
|
18
|
-
/* @__PURE__ */u("button",{onClick:()=>w("4"),className:U,children:"4"}),
|
|
19
|
-
/* @__PURE__ */u("button",{onClick:()=>w("5"),className:U,children:"5"}),
|
|
20
|
-
/* @__PURE__ */u("button",{onClick:()=>w("6"),className:U,children:"6"}),
|
|
21
|
-
/* @__PURE__ */u("button",{onClick:()=>A("-"),className:`${G} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
|
|
22
|
-
/* @__PURE__ */u("button",{onClick:()=>w("1"),className:U,children:"1"}),
|
|
23
|
-
/* @__PURE__ */u("button",{onClick:()=>w("2"),className:U,children:"2"}),
|
|
24
|
-
/* @__PURE__ */u("button",{onClick:()=>w("3"),className:U,children:"3"}),
|
|
25
|
-
/* @__PURE__ */u("button",{onClick:()=>A("+"),className:`${G} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
|
|
26
|
-
/* @__PURE__ */u("button",{onClick:()=>w("0"),className:`${U} col-span-2`,children:"0"}),
|
|
27
|
-
/* @__PURE__ */u("button",{onClick:()=>w("."),className:U,children:"."}),
|
|
28
|
-
/* @__PURE__ */u("button",{onClick:B,className:F,children:"="})]})]}),
|
|
29
|
-
/* @__PURE__ */u(t,{open:R,onClose:()=>T(!1),title:"Calculator Settings",appearance:D,onAppearanceChange:K,onSave:()=>{E(D),localStorage.setItem(h,JSON.stringify(D)),T(!1)}})]})}export{m as default};
|
package/dist/Files-R2657GKS.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import{openPreviewFile as e}from"./chunk-U62AWCZR.js";import{SidebarLayout as t}from"./chunk-3RM3D2P3.js";import"./chunk-QWK6DRSN.js";import"./chunk-JSB5G2XQ.js";import{Breadcrumbs as r}from"./chunk-4TER5BHR.js";import{formatBytes as a}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{getFilesDemoTree as n}from"./chunk-DBLJIK5J.js";import{AboutApp as s}from"./chunk-HT33WUTK.js";import{peekFilesViewRequest as i,consumeFilesViewRequest as o,FILES_SHOW_TRASH_EVENT as l,FILES_OPEN_DESKTOP_FOLDER_EVENT as c,subscribeDesktopFolders as d,getDesktopFoldersSnapshot as m,FolderGlyph as h,DesktopItemMiniIcon as p,desktopItemTypeLabel as u}from"./chunk-4MTC6HA5.js";import"./chunk-ESL5TDNA.js";import"./chunk-VTVSMRFX.js";import{useWindowManager as f,WindowTitle as x}from"./chunk-BIEKHPZ5.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-PXCARPLZ.js";import"./chunk-Y53KNQKL.js";import"./chunk-5A7MWTXX.js";import"./chunk-3AVHOYQZ.js";import{confirm as g,prompt as y}from"./chunk-MRBC7GLE.js";import"./chunk-MVCNSGM4.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import"./chunk-KC3EX26K.js";import{toast_default as b}from"./chunk-F22KWATP.js";import"./chunk-UPHXYWL6.js";import"./chunk-5QFPTDQF.js";import"./chunk-CDBS47XI.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-5SULG7D5.js";import"./chunk-CDAJKLGL.js";import{TH_ONE_LINE as k}from"./chunk-7T3COEQK.js";import"./chunk-BLO7KTPH.js";import"./chunk-UDD7GB4F.js";import"./chunk-K7U4RWXJ.js";import"./chunk-4TL3MRRE.js";import{Icon as N}from"./chunk-42BBJJDP.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as w}from"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-2LXTJXWC.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-KKZZAK76.js";import"./chunk-C3QOHMR6.js";import{useState as v,useEffect as j,useSyncExternalStore as $,useRef as C,useCallback as D}from"react";import{jsxs as T,jsx as L,Fragment as R}from"react/jsx-runtime";var E="undefined"!=typeof window&&window.__REACT_OS_SHELL_FILE_SERVER__||"http://localhost:4000",W={pdf:"pdf",dxf:"dxf",csv:"csv",jpg:"image",jpeg:"image",png:"image",gif:"image",webp:"image",svg:"image",avif:"image",bmp:"image",stp:"3d",step:"3d",stl:"3d",obj:"3d",gltf:"3d",glb:"3d","3mf":"3d",iges:"3d",igs:"3d",ply:"3d",fbx:"3d"};function P(e,t){return"/"===e||""===e?"/"+t:e.replace(/\/$/,"")+"/"+t}function S(e){if(!e)return"—";try{const t=new Date(e);return isNaN(t.getTime())?"—":t.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}catch{return e}}function M(){const M=E.replace(/\/$/,""),U=null!==n(),[A,F]=v("/"),[I,O]=v([]),[K,B]=v([]),[J,V]=v(null),[H,Q]=v(!0),[X,G]=v(!1),[z,Z]=v(null),[_,Y]=v(!1),[q,ee]=v(()=>{const e=i();return"trash"===e?"trash":e?{desktopFolderId:e.folderId}:"files"});j(()=>{o()},[]);const[te,re]=v([]);j(()=>{const e=()=>{o(),ee("trash")},t=e=>{o();const t=e.detail?.folderId;t&&ee({desktopFolderId:t})};return window.addEventListener(l,e),window.addEventListener(c,t),()=>{window.removeEventListener(l,e),window.removeEventListener(c,t)}},[]);const ae=$(d,m,m),ne="object"==typeof q?q.desktopFolderId:null,se=ne?ae?.folders.find(e=>e.id===ne)??null:null,ie=ne&&ae?.itemsByFolder[ne]||[];j(()=>{ne&&ae&&!ae.folders.some(e=>e.id===ne)&&ee("files")},[ne,ae]);const oe=C(0),le=C(null),{openPage:ce,openEntity:de}=f(),me=t=>{"preview-file"===t.entityType&&t.filePath&&t.fileKind?e({filePath:t.filePath,filename:t.label,kind:t.fileKind,onStaged:e=>ce(e)}):"page"===t.entityType?ce(t.entityId):de(t.entityType,t.entityId,null,t.label)},he=D((e,t={})=>fetch(e,{...t,credentials:"include"}),[]),pe=D(async()=>{try{const e=await he(`${M}/api/quota`);if(e.ok){const t=await e.json();Z({used:t.used,limit:t.limit})}}catch{}},[he,M]),ue=D(async e=>{if(V(null),U){const t=function(e){const t=n();if(!t)return[];let r=t;for(const t of e.split("/").filter(Boolean)){const e=r.find(e=>"folder"===e.kind&&e.name===t);if(!e||!e.children)return[];r=e.children}return r.map(e=>({name:e.name,kind:e.kind,size:e.size??0,modifiedAt:e.modifiedAt??""}))}(e);return O(t),F(e),G(!1),Q(!1),void("/"===e&&B(t.filter(e=>"folder"===e.kind).map(e=>e.name)))}Q(!0);try{const t=await he(`${M}/api/files?path=${encodeURIComponent(e)}`);if(!t.ok){const e=await t.json().catch(()=>({}));return void b.error(e.error||`Failed to list (${t.status})`)}const r=await t.json(),a=r.entries||[];O(a),F(r.path||e),G(!1),"/"===(r.path||e)&&B(a.filter(e=>"folder"===e.kind).map(e=>e.name))}catch(e){G(!0)}finally{Q(!1)}pe()},[he,M,pe,U]),fe=D(async()=>{if(U)return re([]),void Q(!1);Q(!0),V(null);try{const e=await he(`${M}/api/trash`);if(!e.ok){const t=await e.json().catch(()=>({}));return void b.error(t.error||`Failed to list trash (${e.status})`)}const t=await e.json();re(t.entries||[]),G(!1)}catch{G(!0)}finally{Q(!1)}pe()},[he,M,pe,U]);j(()=>{"files"===q?ue(A):"trash"===q&&fe()},[A,q]);const xe=async e=>{const t=P(A,e.name);try{const r=await he(`${M}/api/file?path=${encodeURIComponent(t)}`);if(!r.ok)return void b.error(`Download failed (${r.status})`);const a=await r.blob(),n=URL.createObjectURL(a),s=document.createElement("a");s.href=n,s.download=e.name,s.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}catch(e){b.error(e?.message||"Download failed")}},ge=async e=>{const t=Array.from(e);for(const e of t){const t=new FormData;t.append("file",e);try{const r=await he(`${M}/api/upload?path=${encodeURIComponent(A)}`,{method:"POST",body:t});if(!r.ok){const t=await r.json().catch(()=>({}));if(413===r.status){const r=Math.max(0,(t.limit||0)-(t.used||0));b.error(`Quota exceeded — ${a(r)} free, ${e.name} is ${a(t.attempted||e.size)}`)}else b.error(`Upload ${e.name}: ${t.error||r.status}`)}}catch(t){b.error(`Upload ${e.name}: ${t?.message||"failed"}`)}}ue(A)},ye=()=>{oe.current=0,Y(!1)};if(j(()=>{const e=()=>ye();return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[]),X)/* @__PURE__ */
|
|
2
|
-
return T("div",{className:"flex flex-col h-full bg-white",children:[
|
|
3
|
-
/* @__PURE__ */L(x,{title:"Files - offline"}),
|
|
4
|
-
/* @__PURE__ */L("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:/* @__PURE__ */T("div",{className:"max-w-md",children:[
|
|
5
|
-
/* @__PURE__ */L(N,{name:"close-circle",className:"h-12 w-12 mx-auto text-gray-300 mb-3",strokeWidth:1.4}),
|
|
6
|
-
/* @__PURE__ */L("h3",{className:"text-base font-semibold text-gray-800 mb-1",children:"Can't reach the file server"}),
|
|
7
|
-
/* @__PURE__ */T("p",{className:"text-sm text-gray-500 mb-3",children:["No response from ",
|
|
8
|
-
/* @__PURE__ */L("span",{className:"font-mono",children:M}),". Make sure the server is running — see ",
|
|
9
|
-
/* @__PURE__ */L("span",{className:"font-mono",children:"examples/file-server/README.md"}),"."]}),
|
|
10
|
-
/* @__PURE__ */L("button",{onClick:()=>ue(A),className:"px-3 h-8 text-sm bg-blue-500 text-white rounded hover:bg-blue-600",children:"Retry"})]})})]});const be="/"===A?[]:A.split("/").filter(Boolean),ke=z&&z.limit>0?Math.min(100,Math.round(z.used/z.limit*100)):0,Ne=ke>90?"bg-red-500":ke>75?"bg-amber-500":"bg-blue-500",we=[{label:"My files",onClick:()=>F("/")},...be.map((e,t)=>({label:e,onClick:()=>F("/"+be.slice(0,t+1).join("/"))}))],ve=e=>"flex w-full items-center gap-2 rounded-md px-3 min-h-(--row-height-menu) py-2 text-left text-sm transition-colors "+(e?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),je=e=>/* @__PURE__ */L("svg",{className:"h-4 w-4 shrink-0 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.6,children:/* @__PURE__ */L("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})}),$e=/* @__PURE__ */T("nav",{className:"p-2",children:[
|
|
11
|
-
/* @__PURE__ */L("div",{className:"px-2 py-2 text-2xs font-semibold uppercase tracking-wide text-gray-400",children:"Locations"}),
|
|
12
|
-
/* @__PURE__ */T("button",{onClick:()=>{ee("files"),F("/")},className:ve("files"===q&&"/"===A),children:[je("M2.25 12l8.954-8.955a1.5 1.5 0 012.122 0L21.75 12M4.5 9.75v9.75a.75.75 0 00.75.75H9V15a.75.75 0 01.75-.75h4.5A.75.75 0 0115 15v5.25h3.75a.75.75 0 00.75-.75V9.75"),"My files"]}),K.map(e=>/* @__PURE__ */T("button",{onClick:()=>{ee("files"),F("/"+e)},className:ve("files"===q&&A==="/"+e),children:[je("M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"),
|
|
13
|
-
/* @__PURE__ */L("span",{className:"truncate",children:e})]},e)),!U&&/* @__PURE__ */T("button",{onClick:()=>ee("trash"),className:ve("trash"===q),children:[je("M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79"),"Trash"]}),ae&&ae.folders.length>0&&/* @__PURE__ */T(R,{children:[
|
|
14
|
-
/* @__PURE__ */L("div",{className:"px-2 pt-3 pb-2 text-2xs font-semibold uppercase tracking-wide text-gray-400",children:"Desktop"}),ae.folders.map(e=>/* @__PURE__ */T("button",{onClick:()=>ee({desktopFolderId:e.id}),className:ve(ne===e.id),children:[
|
|
15
|
-
/* @__PURE__ */L(h,{className:"h-4 w-4 shrink-0 text-amber-500"}),
|
|
16
|
-
/* @__PURE__ */L("span",{className:"truncate",children:e.name}),e.itemCount>0&&/* @__PURE__ */L("span",{className:"ml-auto text-2xs text-gray-400 tabular-nums",children:e.itemCount})]},e.id))]})]});/* @__PURE__ */
|
|
17
|
-
return T("div",{className:"relative flex flex-col h-full bg-white",onDragEnter:e=>{U||"object"==typeof q||e.dataTransfer?.types?.includes?.("Files")&&(e.preventDefault(),oe.current++,_||Y(!0))},onDragOver:e=>{e.dataTransfer?.types?.includes?.("Files")&&e.preventDefault()},onDragLeave:()=>{oe.current>0&&oe.current--,0===oe.current&&Y(!1)},onDrop:e=>{e.preventDefault(),ye(),U||"object"==typeof q||e.dataTransfer.files?.length&&ge(e.dataTransfer.files)},children:[
|
|
18
|
-
/* @__PURE__ */L(x,{title:se?`Files - ${se.name}`:"Files"+("/"===A?"":" - "+A)}),
|
|
19
|
-
/* @__PURE__ */L(s,{app:"files"}),
|
|
20
|
-
/* @__PURE__ */L("input",{ref:le,type:"file",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&ge(e.target.files),le.current&&(le.current.value="")}}),
|
|
21
|
-
/* @__PURE__ */L("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */L(t,{sidebar:$e,storageKey:"files.sidebarWidth",defaultWidth:200,minWidth:150,maxWidth:320,children:/* @__PURE__ */T("div",{className:"flex h-full min-w-0 flex-col",children:[
|
|
22
|
-
/* @__PURE__ */T("div",{className:"flex items-center gap-1 px-2 py-2 border-b border-gray-200 bg-gray-50 shrink-0 text-xs",children:[/* @__PURE__ */T(R,"files"===q?{children:[
|
|
23
|
-
/* @__PURE__ */L("button",{onClick:()=>F(function(e){if("/"===e||""===e)return"/";const t=e.replace(/\/$/,""),r=t.lastIndexOf("/");return r<=0?"/":t.slice(0,r)}(A)),disabled:"/"===A,className:"px-2 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",title:"Parent folder",children:/* @__PURE__ */L(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
24
|
-
/* @__PURE__ */L("div",{className:"flex-1 min-w-0",children:/* @__PURE__ */L(r,{items:we,maxItems:5})}),
|
|
25
|
-
/* @__PURE__ */L("button",{onClick:()=>ue(A),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */L(N,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),!U&&/* @__PURE__ */T(R,{children:[
|
|
26
|
-
/* @__PURE__ */T("button",{onClick:()=>ee("trash"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",title:"Open trash",children:[
|
|
27
|
-
/* @__PURE__ */L(N,{name:"trash",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Trash"]}),
|
|
28
|
-
/* @__PURE__ */T("button",{onClick:async()=>{const e=await y({title:"New folder",placeholder:"Folder name",confirmLabel:"Create"});if(!e)return;if(/[\\/]/.test(e))return void b.error("Folder names cannot contain slashes");const t=P(A,e),r=await he(`${M}/api/folder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})});if(!r.ok){const e=await r.json().catch(()=>({}));return void b.error(e.error||`Create folder failed (${r.status})`)}ue(A)},className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",children:[
|
|
29
|
-
/* @__PURE__ */L(N,{name:"folder-plus",className:"h-3.5 w-3.5",strokeWidth:1.5}),"New Folder"]}),
|
|
30
|
-
/* @__PURE__ */T("button",{onClick:()=>le.current?.click(),className:"px-2 py-1 rounded bg-blue-500 text-white hover:bg-blue-600 flex items-center gap-1",children:[
|
|
31
|
-
/* @__PURE__ */L(N,{name:"upload",className:"h-3.5 w-3.5",strokeWidth:1.8}),"Upload"]})]})]}:"trash"===q?{children:[
|
|
32
|
-
/* @__PURE__ */L("button",{onClick:()=>ee("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */L(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
33
|
-
/* @__PURE__ */L("span",{className:"flex-1 text-gray-700 font-medium px-2",children:"Trash"}),
|
|
34
|
-
/* @__PURE__ */L("button",{onClick:fe,className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */L(N,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),
|
|
35
|
-
/* @__PURE__ */L("button",{onClick:async()=>{if(0===te.length)return;if(!await g({title:"Empty trash",message:`${te.length} item${1===te.length?"":"s"} will be permanently removed. This can't be undone.`,confirmLabel:"Empty trash",variant:"danger"}))return;const e=await he(`${M}/api/trash`,{method:"DELETE"});if(!e.ok){const t=await e.json().catch(()=>({}));return void b.error(t.error||`Empty trash failed (${e.status})`)}fe()},disabled:0===te.length,className:"px-2 py-1 rounded text-red-600 hover:bg-red-50 disabled:opacity-30 flex items-center gap-1",children:"Empty trash"})]}:{children:[
|
|
36
|
-
/* @__PURE__ */L("button",{onClick:()=>ee("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */L(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
37
|
-
/* @__PURE__ */L(h,{className:"h-4 w-4 text-amber-500 ml-1"}),
|
|
38
|
-
/* @__PURE__ */L("span",{className:"flex-1 text-gray-700 font-medium px-1 truncate",children:se?.name??"Desktop folder"}),
|
|
39
|
-
/* @__PURE__ */L("span",{className:"text-2xs text-gray-400 px-2",children:"Desktop shortcuts"})]}),z&&/* @__PURE__ */T(R,{children:[
|
|
40
|
-
/* @__PURE__ */L("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
|
|
41
|
-
/* @__PURE__ */T("div",{className:"flex items-center gap-2",title:`${a(z.used)} of ${a(z.limit)} used`,children:[
|
|
42
|
-
/* @__PURE__ */L("div",{className:"w-20 h-1.5 rounded-full bg-gray-200 overflow-hidden",children:/* @__PURE__ */L("div",{className:`h-full ${Ne} transition-all`,style:{width:`${ke}%`}})}),
|
|
43
|
-
/* @__PURE__ */T("span",{className:"text-2xs text-gray-500 tabular-nums whitespace-nowrap",children:[a(z.used)," / ",a(z.limit)]})]})]})]}),
|
|
44
|
-
/* @__PURE__ */L("div",{className:"flex-1 overflow-auto",children:"object"==typeof q?0===ie.length?/* @__PURE__ */L("div",{className:"p-10 text-center text-sm text-gray-400",children:"This desktop folder is empty. Drag shortcuts onto it on the desktop."}):/* @__PURE__ */T("table",{className:"w-full text-sm",children:[
|
|
45
|
-
/* @__PURE__ */L("thead",{className:"bg-gray-50 text-2xs uppercase tracking-wide text-gray-500",children:/* @__PURE__ */T("tr",{children:[
|
|
46
|
-
/* @__PURE__ */L("th",{className:`${k} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
47
|
-
/* @__PURE__ */L("th",{className:`${k} text-left font-medium px-3 h-8 w-28`,children:"Type"}),
|
|
48
|
-
/* @__PURE__ */L("th",{className:`${k} w-56`})]})}),
|
|
49
|
-
/* @__PURE__ */L("tbody",{children:ie.map(e=>{const t=`${e.entityType}|${e.entityId}`;/* @__PURE__ */
|
|
50
|
-
return T("tr",{onClick:()=>V(t),onDoubleClick:()=>me(e),className:"cursor-default border-b border-gray-100 "+(J===t?"bg-blue-50":"hover:bg-gray-50"),children:[
|
|
51
|
-
/* @__PURE__ */T("td",{className:"px-3 h-8 flex items-center gap-2",children:[
|
|
52
|
-
/* @__PURE__ */L(p,{item:e}),
|
|
53
|
-
/* @__PURE__ */L("span",{className:"truncate",title:e.label,children:e.label})]}),
|
|
54
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-xs text-gray-500",children:u(e)}),
|
|
55
|
-
/* @__PURE__ */T("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
|
|
56
|
-
/* @__PURE__ */L("button",{onClick:t=>{t.stopPropagation(),me(e)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Open"}),
|
|
57
|
-
/* @__PURE__ */L("button",{onClick:t=>{t.stopPropagation(),ae?.moveToDesktop([e])},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-gray-500 text-2xs ml-1",children:"Move to desktop"}),
|
|
58
|
-
/* @__PURE__ */L("button",{onClick:t=>{t.stopPropagation(),ae?.removeShortcuts([e])},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Remove"})]})]},t)})})]}):"trash"===q?H&&0===te.length?/* @__PURE__ */L(w,{size:"sm",padding:"p-6",label:"Loading"}):0===te.length?/* @__PURE__ */L("div",{className:"p-10 text-center text-sm text-gray-400",children:"Trash is empty."}):/* @__PURE__ */T("table",{className:"w-full text-sm",children:[
|
|
59
|
-
/* @__PURE__ */L("thead",{className:"bg-gray-50 text-2xs uppercase tracking-wide text-gray-500",children:/* @__PURE__ */T("tr",{children:[
|
|
60
|
-
/* @__PURE__ */L("th",{className:`${k} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
61
|
-
/* @__PURE__ */L("th",{className:`${k} text-left font-medium px-3 h-8`,children:"Original location"}),
|
|
62
|
-
/* @__PURE__ */L("th",{className:`${k} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
|
|
63
|
-
/* @__PURE__ */L("th",{className:`${k} text-right font-medium px-3 h-8 w-40`,children:"Deleted"}),
|
|
64
|
-
/* @__PURE__ */L("th",{className:`${k} w-44`})]})}),
|
|
65
|
-
/* @__PURE__ */L("tbody",{children:te.map(e=>/* @__PURE__ */T("tr",{className:"border-b border-gray-100 hover:bg-gray-50",children:[
|
|
66
|
-
/* @__PURE__ */T("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===e.kind?/* @__PURE__ */L(N,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */L(N,{name:"page",className:"h-4 w-4 text-gray-400 shrink-0",strokeWidth:1.5}),
|
|
67
|
-
/* @__PURE__ */L("span",{className:"truncate",title:e.name,children:e.name})]}),
|
|
68
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-gray-500 text-xs font-mono truncate",title:e.originalPath,children:e.originalPath||"—"}),
|
|
69
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-right tabular-nums text-gray-500",children:a(e.size)}),
|
|
70
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-right text-gray-500 tabular-nums",children:e.deletedAt?S(e.deletedAt):"—"}),
|
|
71
|
-
/* @__PURE__ */T("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
|
|
72
|
-
/* @__PURE__ */L("button",{onClick:()=>(async e=>{const t=await he(`${M}/api/trash/restore`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e.id})});if(!t.ok){const e=await t.json().catch(()=>({}));return void b.error(e.error||`Restore failed (${t.status})`)}b.success(`Restored "${e.name}"`),fe()})(e),className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Restore"}),
|
|
73
|
-
/* @__PURE__ */L("button",{onClick:()=>(async e=>{if(!await g({title:"Permanently delete",message:`"${e.name}" will be permanently removed. This can't be undone.`,confirmLabel:"Delete forever",variant:"danger"}))return;const t=await he(`${M}/api/trash/${encodeURIComponent(e.id)}`,{method:"DELETE"});if(!t.ok){const e=await t.json().catch(()=>({}));return void b.error(e.error||`Delete failed (${t.status})`)}fe()})(e),className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete forever"})]})]},e.id))})]}):H&&0===I.length?/* @__PURE__ */L(w,{size:"sm",padding:"p-6",label:"Loading"}):0===I.length?/* @__PURE__ */T("div",{className:"p-10 text-center text-sm text-gray-400",children:["Empty folder.",!U&&/* @__PURE__ */T(R,{children:[" Drop files here or click ",
|
|
74
|
-
/* @__PURE__ */L("span",{className:"font-medium",children:"Upload"}),"."]})]}):/* @__PURE__ */T("table",{className:"w-full text-sm",children:[
|
|
75
|
-
/* @__PURE__ */L("thead",{className:"bg-gray-50 text-2xs uppercase tracking-wide text-gray-500",children:/* @__PURE__ */T("tr",{children:[
|
|
76
|
-
/* @__PURE__ */L("th",{className:`${k} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
77
|
-
/* @__PURE__ */L("th",{className:`${k} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
|
|
78
|
-
/* @__PURE__ */L("th",{className:`${k} text-right font-medium px-3 h-8 w-40`,children:"Modified"}),
|
|
79
|
-
/* @__PURE__ */L("th",{className:`${k} w-32`})]})}),
|
|
80
|
-
/* @__PURE__ */L("tbody",{children:I.map(t=>/* @__PURE__ */T("tr",{onClick:()=>V(t.name),onDoubleClick:()=>{"folder"===t.kind?F(P(A,t.name)):(async t=>{if(U)return;const r=P(A,t.name),a=(t.name.split(".").pop()||"").toLowerCase(),n=W[a];n?await e({filePath:r,filename:t.name,kind:n,onStaged:e=>ce(e)}):xe(t)})(t)},className:"cursor-default border-b border-gray-100 "+(J===t.name?"bg-blue-50":"hover:bg-gray-50"),children:[
|
|
81
|
-
/* @__PURE__ */T("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===t.kind?/* @__PURE__ */L(N,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */L(N,{name:"page",className:"h-4 w-4 text-gray-400 shrink-0",strokeWidth:1.5}),
|
|
82
|
-
/* @__PURE__ */L("span",{className:"truncate",title:t.name,children:t.name})]}),
|
|
83
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-right tabular-nums text-gray-500",children:"folder"===t.kind?"—":a(t.size)}),
|
|
84
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-right text-gray-500 tabular-nums",children:S(t.modifiedAt)}),
|
|
85
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:!U&&/* @__PURE__ */T(R,{children:["file"===t.kind&&/* @__PURE__ */L("button",{onClick:e=>{e.stopPropagation(),xe(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-gray-500 text-2xs",children:"Download"}),
|
|
86
|
-
/* @__PURE__ */L("button",{onClick:e=>{e.stopPropagation(),(async e=>{const t=await y({title:`Rename ${e.kind}`,defaultValue:e.name,confirmLabel:"Rename"});if(!t||t===e.name)return;if(/[\\/]/.test(t))return void b.error("Names cannot contain slashes");const r=P(A,e.name),a=P(A,t),n=await he(`${M}/api/rename`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:r,to:a})});if(!n.ok){const e=await n.json().catch(()=>({}));return void b.error(e.error||`Rename failed (${n.status})`)}ue(A)})(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-gray-500 text-2xs ml-1",children:"Rename"}),
|
|
87
|
-
/* @__PURE__ */L("button",{onClick:e=>{e.stopPropagation(),(async e=>{if(!await g({title:`Delete ${e.kind}`,message:`"${e.name}"${"folder"===e.kind?" and everything inside":""} will be permanently removed.`,confirmLabel:"Delete",variant:"danger"}))return;const t=P(A,e.name),r=await he(`${M}/api/files?path=${encodeURIComponent(t)}`,{method:"DELETE"});if(!r.ok){const e=await r.json().catch(()=>({}));return void b.error(e.error||`Delete failed (${r.status})`)}ue(A)})(t)},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete"})]})})]},t.name))})]})})]})})}),_&&/* @__PURE__ */L("div",{className:"absolute inset-0 bg-blue-500/15 border-4 border-dashed border-blue-500 pointer-events-none flex items-center justify-center z-20",children:/* @__PURE__ */L("div",{className:"px-4 py-2 rounded-md bg-blue-600 text-white text-sm font-medium shadow-lg",children:"Drop to upload"})})]})}export{M as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-LMOPRRQY.js";import"./chunk-F22KWATP.js";import"./chunk-K7U4RWXJ.js";import"./chunk-42BBJJDP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-KKZZAK76.js";import"./chunk-C3QOHMR6.js";
|
package/dist/Sidebar-SJMMY2Y2.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import{useAuth as e,parseOpenSections as t,readStored as a,RAIL_OPEN_SECTIONS_KEY as r,RAIL_WIDTH_KEY as n,toggleOpenSection as i,writeStored as l}from"./chunk-Y65MPP3M.js";import{ResizeHandle as o}from"./chunk-JSB5G2XQ.js";import{openGlobalSearch as s}from"./chunk-55DONELU.js";import{partitionNav as c,flyoutGroups as d,visibleSectionItems as m,rowsContainRoute as h,visibleNavChildren as u}from"./chunk-WGRS6QBT.js";import{BrandMark as p}from"./chunk-MI67DI3H.js";import{IconButton_default as b}from"./chunk-HMZLRXLA.js";import{RAIL_MENU_GAP as g,navSections as f,startMenuCategories as y,TAB_STRIP_H as x,RAIL_COLLAPSED_INSET as k,RAIL_W as v,RAIL_MAX_W as N,RAIL_MIN_W as j,navIcons as C,sectionIcons as w}from"./chunk-CY5N5OA3.js";import"./chunk-5A7MWTXX.js";import"./chunk-PKXQDCNR.js";import{PopupMenu as L,PopupMenuItem as S,PopupMenuDivider as W,PopupMenuLabel as z}from"./chunk-UPHXYWL6.js";import"./chunk-5QFPTDQF.js";import"./chunk-QR4RM7PO.js";import"./chunk-K7U4RWXJ.js";import"./chunk-4TL3MRRE.js";import{Icon as R}from"./chunk-42BBJJDP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-2LXTJXWC.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{useShellStrings as $}from"./chunk-KKZZAK76.js";import"./chunk-C3QOHMR6.js";import{useMemo as A,useState as M,useRef as I,useEffect as T,isValidElement as J,cloneElement as K}from"react";import{jsx as H,jsxs as D,Fragment as P}from"react/jsx-runtime";var B="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function Q(e,t,a){const r=Math.max(8,a-t.bottom);return{left:e+g,bottom:r,maxHeight:a-r-8,overflowY:"auto"}}var X=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),U="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function O({open:e}){/* @__PURE__ */
|
|
2
|
-
return H(R,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function _({dir:e}){/* @__PURE__ */
|
|
3
|
-
return H(R,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function Y({className:e}){/* @__PURE__ */
|
|
4
|
-
return H(R,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var Z=e=>.75+1.75*e+"rem";function G({width:G,collapsed:E,onToggleCollapsed:F,onResize:V,onHome:q,onOpen:ee,activeRoute:te,profile:ae,user:re,onLogout:ne,onSwitchToDesktop:ie,onReportBug:le,onClose:oe,navSections:se=f,navIcons:ce=C,sectionIcons:de=w,categories:me=y,productName:he,productIcon:ue,tagline:pe,adaptiveLogo:be=!1,logoHasAlpha:ge=null,logoIsLight:fe=null}){const ye=$().layout,{hasAnyPerm:xe}=e(),ke=A(()=>c(se,me,xe),[se,me,xe]),[ve,Ne]=M(()=>t(a(r))),je=e=>Ne(t=>{const a=i(t,e);return l(r,JSON.stringify([...a])),a}),[Ce,we]=M(null),[Le,Se]=M(!1),We=I(null);T(()=>{E||we(null)},[E]);const ze=(e,t)=>{we(null),e.onSelect?e.onSelect():ee(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},Re=(e,t)=>{const a=t[e];/* @__PURE__ */
|
|
5
|
-
return H("span",{className:U,"aria-hidden":"true",children:a&&J(a)?K(a,{className:"size-[18px]"}):a})},$e=(e,t)=>{const a=u(e,xe),r=e.menuLabel??e.label;if(a.length>0){const n=`child:${e.to}`,i=ve.has(n),l=!i&&h(a,te,xe);/* @__PURE__ */
|
|
6
|
-
return D("div",{children:[
|
|
7
|
-
/* @__PURE__ */D("button",{type:"button",onClick:()=>je(n),"aria-expanded":i,className:X(l,!1),style:t>0?{paddingLeft:Z(t)}:void 0,children:[0===t&&Re(e.to,ce),
|
|
8
|
-
/* @__PURE__ */H("span",{className:"min-w-0 flex-1 truncate",children:r}),
|
|
9
|
-
/* @__PURE__ */H(O,{open:i})]}),i&&/* @__PURE__ */H("div",{className:"space-y-0.5 pt-0.5",children:a.map(e=>$e(e,t+1))}),e.dividerAfter&&/* @__PURE__ */H("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:Z(t)},"aria-hidden":"true"})]},e.to)}const n=e.to===te;/* @__PURE__ */
|
|
10
|
-
return D("div",{children:[
|
|
11
|
-
/* @__PURE__ */D("button",{type:"button",onClick:t=>ze(e,t),onAuxClick:t=>{1===t.button&&ze(e,t)},"aria-current":n?"page":void 0,className:X(n,!1),style:t>0?{paddingLeft:Z(t)}:void 0,children:[0===t&&Re(e.to,ce),
|
|
12
|
-
/* @__PURE__ */H("span",{className:"min-w-0 flex-1 truncate",children:r})]}),e.dividerAfter&&/* @__PURE__ */H("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:Z(t)},"aria-hidden":"true"})]},e.to)},Ae=(e,t)=>{const a=t?e.items:m(e,xe);if(0===a.length)return null;const r="icon"in e&&e.icon?/* @__PURE__ */H("span",{className:U,"aria-hidden":"true",children:e.icon}):Re(e.label,de),n=e.menuLabel??e.label,i=h(a,te,xe),l="dividerAfter"in e&&e.dividerAfter;if(E)/* @__PURE__ */
|
|
13
|
-
return D("div",{children:[
|
|
14
|
-
/* @__PURE__ */H("button",{type:"button",title:n,"aria-label":n,"aria-haspopup":"menu","aria-expanded":Ce?.label===e.label,onClick:t=>{const r=t.currentTarget.getBoundingClientRect();we(t=>t?.label===e.label?null:{label:e.label,items:a,top:r.top})},className:X(i||Ce?.label===e.label,!0),children:r}),l&&/* @__PURE__ */H("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.label);const o=ve.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
|
|
15
|
-
return D("div",{children:[
|
|
16
|
-
/* @__PURE__ */D("button",{type:"button",onClick:()=>je(e.label),"aria-expanded":o,"aria-controls":s,className:X(!o&&i,!1),children:[r,
|
|
17
|
-
/* @__PURE__ */H("span",{className:"min-w-0 flex-1 truncate",children:n}),
|
|
18
|
-
/* @__PURE__ */H(O,{open:o})]}),
|
|
19
|
-
/* @__PURE__ */H("div",{id:s,role:"group","aria-label":n,hidden:!o,className:"space-y-0.5 pt-0.5",children:o&&a.map(e=>$e(e,1))}),l&&/* @__PURE__ */H("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.label)},Me=ae?.first_name?`${ae.first_name} ${ae.last_name||""}`.trim():re?.email||"",Ie=(ae?.first_name?.charAt(0)||re?.email?.charAt(0)||"?").toUpperCase(),Te=ae?.avatar_url?/* @__PURE__ */H("img",{src:ae.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */H("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Ie}),Je=Le?We.current?.getBoundingClientRect():void 0,Ke=E?"":"px-3",He=E?{paddingInline:k}:void 0,De=`${E?ye.expandSidebar:ye.collapseSidebar} (${B?"⌘":"Ctrl"} .)`,Pe=q?{run:q,label:ye.goHome,title:ye.goHome}:oe?null:{run:F,label:E?ye.expandSidebar:ye.collapseSidebar,title:De},Be=/* @__PURE__ */D(P,{children:[ue&&/* @__PURE__ */H(p,{src:ue,alt:"",slot:"compact",surface:"light",adaptive:be,hasAlpha:ge,isLight:fe,size:28,decorative:!0}),!E&&/* @__PURE__ */D("span",{className:"min-w-0 text-left leading-tight",children:[
|
|
20
|
-
/* @__PURE__ */H("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:he??"Apps"}),pe&&/* @__PURE__ */H("span",{className:"block truncate text-2xs font-medium text-gray-500",children:pe})]})]}),Qe=ke.erpSections.length>0||ke.systemSections.length>0||ke.virtualSections.length>0;/* @__PURE__ */
|
|
21
|
-
return D("aside",{"aria-label":ye.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-gray-200 bg-white text-gray-800",style:{width:G},children:[
|
|
22
|
-
/* @__PURE__ */D("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(E?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:x},children:[Pe?/* @__PURE__ */H("button",{type:"button",onClick:Pe.run,"aria-label":Pe.label,title:Pe.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(E?"justify-center p-0.5":"-ml-1 p-1"),children:Be}):/* @__PURE__ */H("span",{className:"flex min-w-0 items-center gap-2",children:Be}),oe?/* @__PURE__ */H(b,{onClick:oe,"aria-label":ye.closeMenu,children:/* @__PURE__ */H(R,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!E&&/* @__PURE__ */H("button",{type:"button",onClick:F,"aria-label":ye.collapseSidebar,title:`${ye.collapseSidebar} (${B?"⌘":"Ctrl"} .)`,className:"flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",children:/* @__PURE__ */H(_,{dir:"left"})})]}),
|
|
23
|
-
/* @__PURE__ */H("div",{className:`shrink-0 pt-3 ${Ke}`,style:He,children:E?/* @__PURE__ */H("button",{type:"button",onClick:s,"aria-label":ye.search,title:`${ye.search} (${B?"⌘K":"Ctrl K"})`,className:X(!1,!0),children:/* @__PURE__ */H(Y,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */D("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-gray-200 bg-white px-3 text-left transition-colors hover:bg-gray-100",children:[
|
|
24
|
-
/* @__PURE__ */H(Y,{className:"size-3.5 text-gray-500"}),
|
|
25
|
-
/* @__PURE__ */H("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-500",children:ye.search}),
|
|
26
|
-
/* @__PURE__ */H("kbd",{className:"rounded border border-gray-200 bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-gray-500",children:B?"⌘K":"Ctrl K"})]})}),
|
|
27
|
-
/* @__PURE__ */D("nav",{"aria-label":ye.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Ke} ${E?"space-y-1":"space-y-0.5"}`,style:He,children:[E&&/* @__PURE__ */H("button",{type:"button",onClick:F,"aria-label":ye.expandSidebar,title:`${ye.expandSidebar} (${B?"⌘":"Ctrl"} .)`,className:`${X(!1,!0)} mb-3`,children:/* @__PURE__ */H(_,{dir:"right"})}),ke.topItems.map(e=>{if(!E)return $e(e,0);const t=u(e,xe),a=e.to===te||h(t,te,xe),r=e.menuLabel??e.label;/* @__PURE__ */
|
|
28
|
-
return D("div",{children:[
|
|
29
|
-
/* @__PURE__ */H("button",{type:"button",title:r,"aria-label":r,onClick:a=>{if(0===t.length)return void ze(e,a);const r=a.currentTarget.getBoundingClientRect();we(a=>a?.label===e.to?null:{label:e.to,items:t,top:r.top})},className:X(a,!0),children:Re(e.to,ce)}),e.dividerAfter&&/* @__PURE__ */H("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.to)}),ke.topItems.length>0&&Qe&&!ke.topItems[ke.topItems.length-1].dividerAfter&&/* @__PURE__ */H("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"}),ke.erpSections.map(e=>Ae(e,!1)),ke.systemSections.map(e=>Ae(e,!1)),ke.virtualSections.map(e=>Ae(e,!0)),ke.footerSections.length>0&&/* @__PURE__ */H("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"}),ke.footerSections.map(e=>Ae(e,!1))]}),
|
|
30
|
-
/* @__PURE__ */H("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Ke}`,style:He,children:/* @__PURE__ */D("button",{ref:We,type:"button",onClick:()=>Se(e=>!e),"aria-haspopup":"menu","aria-expanded":Le,"aria-label":E?ye.accountMenu(Me):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(E?"justify-center py-2":"px-2 py-2"),children:[Te,!E&&/* @__PURE__ */D("span",{className:"min-w-0 flex-1 text-left",children:[
|
|
31
|
-
/* @__PURE__ */H("span",{className:"block truncate text-sm font-semibold text-gray-800",children:Me}),re?.email&&Me!==re.email&&/* @__PURE__ */H("span",{className:"block truncate text-2xs text-gray-500",children:re.email})]})]})}),V&&!E&&!oe&&/* @__PURE__ */H(o,{side:"left",width:G,onResize:V,min:j,max:N,defaultWidth:v,storageKey:n,label:ye.resizeSidebar}),Le&&Je&&/* @__PURE__ */D(L,{portal:!0,minWidth:224,onClose:()=>Se(!1),style:Q(G,Je,window.innerHeight),children:[E&&/* @__PURE__ */D("div",{className:"border-b border-gray-200 px-3 py-3",children:[
|
|
32
|
-
/* @__PURE__ */H("p",{className:"truncate text-sm font-semibold text-gray-800",children:Me}),re?.email&&/* @__PURE__ */H("p",{className:"truncate text-xs text-gray-500",children:re.email})]}),
|
|
33
|
-
/* @__PURE__ */D(S,{onClick:()=>{Se(!1),ee("/profile",!1)},children:[
|
|
34
|
-
/* @__PURE__ */H(R,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.profile]}),ke.footerItems.map(e=>/* @__PURE__ */D(S,{onClick:()=>{Se(!1),ze(e)},children:[
|
|
35
|
-
/* @__PURE__ */H("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:ce[e.to]}),e.menuLabel??e.label]},e.to)),le&&/* @__PURE__ */D(S,{onClick:()=>{Se(!1),le()},children:[
|
|
36
|
-
/* @__PURE__ */H(R,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.reportIssue]}),
|
|
37
|
-
/* @__PURE__ */H(W,{}),ie&&/* @__PURE__ */D(P,{children:[
|
|
38
|
-
/* @__PURE__ */D(S,{onClick:()=>{Se(!1),ie()},children:[
|
|
39
|
-
/* @__PURE__ */H(R,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.switchToDesktop]}),
|
|
40
|
-
/* @__PURE__ */H(W,{})]}),
|
|
41
|
-
/* @__PURE__ */D(S,{danger:!0,onClick:()=>{Se(!1),ne()},children:[
|
|
42
|
-
/* @__PURE__ */H(R,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.signOut]})]}),Ce&&E&&/* @__PURE__ */H(L,{portal:!0,minWidth:220,onClose:()=>we(null),style:{left:G+g,top:Math.min(Ce.top,window.innerHeight-48*Math.min(Ce.items.length,10)-16)},children:d(Ce.items,xe).map((e,t)=>/* @__PURE__ */D("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */H(W,{}),e.heading&&/* @__PURE__ */H(z,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */D(S,{onClick:()=>ze(e),children:[Re(e.to,ce),
|
|
43
|
-
/* @__PURE__ */H("span",{className:e.to===te?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{Q as accountMenuPosition,G as default};
|
package/dist/chunk-2LXTJXWC.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{onOverlayOpen as t}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as e}from"./chunk-62LW225J.js";import{followAnchor as r,popupBounds as o,VIEWPORT_MARGIN as n,showingBox as i,placeBeside as a,placeArrow as l}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as c}from"./chunk-D65T4H6J.js";import{solidSurfaceStyle as s}from"./chunk-DTJRIWFR.js";import{registerModalEscapeInterceptor as d,escapeSurfaceAbove as h}from"./chunk-TWVUQUUD.js";import{createContext as m,useContext as u,useState as p,useRef as f,useId as x,useEffect as w,isValidElement as g,cloneElement as b}from"react";import{createPortal as v}from"react-dom";import{jsxs as y,jsx as k}from"react/jsx-runtime";var W=m(!1),j=()=>u(W),H={top:"bottom-full left-1/2 -translate-x-1/2 mb-3",bottom:"top-full left-1/2 -translate-x-1/2 mt-3",left:"right-full top-1/2 -translate-y-1/2 mr-3",right:"left-full top-1/2 -translate-y-1/2 ml-3"};function T({content:m,side:u="top",delay:j=200,children:T,className:B="relative inline-flex",describe:N=!0}){const[M,D]=p(!1),J=M&&!(null==m||!1===m||""===m),[R,U]=p(null),z=f(void 0),C=f(null),E=f(null),L=x(),P=f(!1),$=()=>{window.clearTimeout(z.current),P.current||(z.current=window.setTimeout(()=>D(!0),j))},F=()=>{window.clearTimeout(z.current),D(!1)},G=()=>{P.current=!0,F()},I=()=>{P.current=!1,F()};w(()=>()=>window.clearTimeout(z.current),[]),c(()=>{if(!J)return void U(null);const t=()=>{const t=C.current,e=E.current;if(!t||!e)return;const r=o(t),c=Math.max(0,r.right-r.left-2*n),s=Math.max(0,r.bottom-r.top-2*n);e.style.maxWidth=`${c}px`,e.style.maxHeight=`${s}px`;const d=e.getBoundingClientRect();if(d.width<=0||d.height<=0)return;const h=t.getBoundingClientRect();if(!i(t))return void F();const m=a(h,d,u,r,12),p=l(h,m,d,16,6),f={anchor:{left:h.left,top:h.top,width:h.width,height:h.height},left:m.left-h.left,top:m.top-h.top,maxWidth:c,maxHeight:s,side:m.side,arrow:p&&{left:p.x-h.left,top:p.y-h.top}};U(t=>{return t&&(r=f,(e=t).anchor.left===r.anchor.left&&e.anchor.top===r.anchor.top&&e.anchor.width===r.anchor.width&&e.anchor.height===r.anchor.height&&e.left===r.left&&e.top===r.top&&e.maxWidth===r.maxWidth&&e.maxHeight===r.maxHeight&&e.side===r.side&&e.arrow?.left===r.arrow?.left&&e.arrow?.top===r.arrow?.top)?t:f;var e,r})};return t(),r(()=>C.current,t)},[J,u,m]),w(()=>{if(!J)return;const e=d(t=>"Escape"===t.key&&(F(),!h(C.current))),r=t(F);return()=>{e(),r()}},[J]);const Q=J&&N?L:void 0,S=g(T)?b(T,{"aria-describedby":[T.props["aria-describedby"],Q].filter(Boolean).join(" ")||void 0}):T,V=J?s():void 0;/* @__PURE__ */
|
|
2
|
-
return y("span",{ref:C,className:B,"aria-describedby":g(T)?void 0:Q,onMouseEnter:$,onMouseLeave:I,onFocus:t=>{let e=!0;try{e=t.target.matches(":focus-visible")}catch{}e&&$()},onBlur:I,onPointerDown:G,onClick:G,children:[
|
|
3
|
-
/* @__PURE__ */k(W.Provider,{value:!0,children:S}),J&&v(
|
|
4
|
-
/* @__PURE__ */y("span",{className:"pointer-events-none fixed left-0 top-0",style:{zIndex:e.hint,...R?.anchor},children:[
|
|
5
|
-
/* @__PURE__ */k("span",{ref:E,id:L,role:"tooltip",className:`pointer-events-none absolute z-(--z-hint) box-border w-max overflow-hidden whitespace-normal break-words text-start rounded-md px-2 py-1 text-xs text-gray-800 ${R?"":H[u]}`,style:{...V,...R&&{left:R.left,top:R.top,maxWidth:R.maxWidth,maxHeight:R.maxHeight}},children:m}),(!R||R.arrow)&&
|
|
6
|
-
/* @__PURE__ */k("span",{"aria-hidden":"true",className:"rosh-tooltip-arrow","data-side":R?.side??u,style:{background:V?.background,"--rosh-tooltip-edge":V?.border,...R?.arrow&&{left:R.arrow.left,top:R.arrow.top}}})]}),document.body)]})}export{T as Tooltip,j as useInsideTooltip};
|
package/dist/chunk-36DYXGQI.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{IconButton_default as e}from"./chunk-HMZLRXLA.js";import{toast_default as t}from"./chunk-F22KWATP.js";import{Icon as r}from"./chunk-42BBJJDP.js";import{currentShellStrings as n,useShellStrings as a}from"./chunk-KKZZAK76.js";import{useState as o,useRef as i,useEffect as l,useCallback as c}from"react";import{jsxs as d,jsx as u,Fragment as s}from"react/jsx-runtime";function m(e){let t=null;try{t=window.getSelection()}catch{return null}if(!t||0===t.rangeCount||t.isCollapsed)return null;const r=e;if(r&&"number"==typeof r.nodeType){let e=!1;for(let n=0;n<t.rangeCount&&!e;n++)e=t.getRangeAt(n).intersectsNode(r);if(!e)return null}const n=t.toString();if(!n.trim())return null;const a=document.createElement("div");for(let e=0;e<t.rangeCount;e++)a.appendChild(t.getRangeAt(e).cloneContents());return{text:n,html:a.innerHTML}}async function p(e,t){try{if(t&&"undefined"!=typeof ClipboardItem&&navigator.clipboard?.write)return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})})]),!0;if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}const r=r=>{r.clipboardData?.setData("text/plain",e),t&&r.clipboardData?.setData("text/html",t),r.preventDefault()},n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.opacity="0",document.body.appendChild(n),n.select(),document.addEventListener("copy",r);try{return document.execCommand("copy")}catch{return!1}finally{document.removeEventListener("copy",r),n.remove()}}async function y(e,r,a){const o=await p(r,a),i=n().copy;return o?t.success(i.copiedLabel(e)):t.error(i.failed),o}var b={bordered:"border border-gray-300 bg-white",flat:"bg-gray-100"},f={sm:{box:"gap-2 px-3 py-1 text-xs",button:"-my-1"},md:{box:"gap-2 px-3 min-h-8 py-1 text-sm",button:"-my-0.5"}};function h(){/* @__PURE__ */
|
|
2
|
-
return u(r,{name:"copy",className:"h-4 w-4","aria-hidden":"true"})}function x(){/* @__PURE__ */
|
|
3
|
-
return u(r,{name:"check",className:"h-4 w-4 text-green-600","aria-hidden":"true"})}function g({value:r,children:n,symbol:m,label:y,size:g="md",variant:w="bordered",hideCopyButton:v=!1,onCopy:C,multiline:N=!1,id:k,"aria-describedby":T,className:L=""}){const[j,B]=o(!1),D=i(null),A=a().copy;l(()=>()=>{D.current&&clearTimeout(D.current)},[]);const E=c(async()=>{await p(r)?(B(!0),D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{B(!1),D.current=null},2e3),C?.(r)):t.error(A.failed)},[r,C,A]),{box:K,button:R}=f[g],Z=!v;/* @__PURE__ */
|
|
4
|
-
return d("div",{id:Z?void 0:k,"aria-describedby":Z?void 0:T,className:["inline-flex max-w-full items-center rounded-md",b[w],K,L].filter(Boolean).join(" "),children:[null!=m&&""!==m&&/* @__PURE__ */u("span",{"aria-hidden":"true",className:"shrink-0 select-none font-mono text-gray-400",children:m}),
|
|
5
|
-
/* @__PURE__ */u("span",{className:"min-w-0 font-mono text-gray-800 "+(N?"whitespace-pre-wrap break-all":"truncate"),title:N?void 0:r,children:n??r}),!v&&/* @__PURE__ */d(s,{children:[
|
|
6
|
-
/* @__PURE__ */u(e,{id:k,"aria-label":y?A.copyLabel(y):A.copy,"aria-describedby":T,onClick:E,className:`${R} text-gray-400`,children:/* @__PURE__ */u(j?x:h,{})}),
|
|
7
|
-
/* @__PURE__ */u("span",{"aria-live":"polite",className:"sr-only",children:j?A.copied:""})]})]})}export{g as Snippet,y as copyToClipboard,m as selectionAt};
|
package/dist/chunk-3NWCVZRK.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{FormField as e}from"./chunk-MVQBVPWP.js";import{zoneFocusClass as r,mediaPromptLine as t,UploadGlyph as a,dropzoneClass as o,BusyOverlay as n,isVideoUrl as l,mediaFileName as i,FilenameBadge as s}from"./chunk-KB6BGPQK.js";import{useFileIntake as d,FileIntakeAlert as c}from"./chunk-ZNZDV6SN.js";import{Icon as u}from"./chunk-42BBJJDP.js";import{useShellStrings as p}from"./chunk-KKZZAK76.js";import{useId as m,useState as g,useRef as f}from"react";import{jsxs as h,jsx as b}from"react/jsx-runtime";var v=/* @__PURE__ */b(u,{name:"close",strokeWidth:2,strokeLinecap:"round","aria-hidden":"true",className:"h-3 w-3"});function y({items:u,onPick:y,onFiles:x,onRemove:D,onReorder:k,dragType:N,dropType:w,onDropData:j,label:P,hint:A,error:T,required:B,className:L,accept:S="image/*",maxSizeBytes:F,maxFiles:K,fit:$="cover",thumbSize:z=96,placeholder:C,cta:O,acceptHint:E,showCover:H=!1,coverLabel:I,busy:Z=!1,busyLabel:M,progress:R,disabled:V=!1,readOnly:q=!1}){const J=p().media,Q=O??J.cta,W=I??J.cover,G=M??J.uploading,U=m(),[X,Y]=g(null),_=V||Z,ee=!(!y&&!x||_||q),re=!!D&&!_&&!q,te=!!k&&!_&&!q,ae=!!N&&!V&&!te,oe=!(!w||!j||_||q),ne=r(_),le=C??t(S,J),ie=d({accept:S,maxSizeBytes:F,maxFiles:K,acceptHint:E,multiple:!0,disabled:!ee,currentCount:u.length,onAccept:e=>{if(x)x(e);else for(const r of e)y(r)}}),[se,de]=g(!1),ce=f(0),ue=e=>oe&&Array.from(e.dataTransfer?.types??[]).includes(w),pe=ie.zoneProps,me={onDragEnter:e=>{if(!ue(e))return pe.onDragEnter?.(e);e.preventDefault(),ce.current+=1,de(!0)},onDragOver:e=>{if(!ue(e))return pe.onDragOver?.(e);e.preventDefault(),e.dataTransfer.dropEffect="link",se||de(!0)},onDragLeave:e=>{if(!ue(e))return pe.onDragLeave?.(e);ce.current=Math.max(0,ce.current-1),0===ce.current&&de(!1)},onDrop:e=>{if(!ue(e))return pe.onDrop?.(e);e.preventDefault(),ce.current=0,de(!1);const r=e.dataTransfer.getData(w);r&&j(r)}},ge=ie.dragOver||se,fe=()=>{ee&&(y?y():ie.open())},he={width:z,height:z},be=ee&&/* @__PURE__ */h("button",{type:"button",onClick:()=>fe(),"aria-label":J.addMedia,className:`flex shrink-0 flex-col items-center justify-center gap-1 rounded-md border-2 border-dashed border-gray-300 bg-gray-50 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-500 ${ne}`,style:he,children:[
|
|
2
|
-
/* @__PURE__ */b(a,{className:"h-5 w-5"}),
|
|
3
|
-
/* @__PURE__ */b("span",{className:"text-xs font-medium text-gray-500",children:J.add})]}),ve=ee?/* @__PURE__ */h("button",{type:"button",onClick:()=>fe(),"aria-label":"string"==typeof le?le:J.upload,className:o(ge,!1,ne),style:{minHeight:z+32},children:[
|
|
4
|
-
/* @__PURE__ */b("span",{className:"text-gray-400",children:/* @__PURE__ */b(a,{})}),
|
|
5
|
-
/* @__PURE__ */b("span",{className:"px-3 text-xs text-gray-500",children:le}),
|
|
6
|
-
/* @__PURE__ */b("span",{className:"text-sm font-medium text-blue-600",children:Q}),E&&/* @__PURE__ */b("span",{className:"text-xs text-gray-400",children:E})]}):/* @__PURE__ */b("div",{className:"flex w-full items-center justify-center rounded-lg border border-gray-200 bg-gray-50 px-3 text-xs text-gray-400",style:{minHeight:z+32},children:/* @__PURE__ */b("span",{className:Z?"invisible":void 0,children:J.empty})});/* @__PURE__ */
|
|
7
|
-
return h(e,{label:P,labelId:P?`${U}-label`:void 0,htmlFor:U,hint:A,error:T,required:B,className:L,children:[
|
|
8
|
-
/* @__PURE__ */h("div",{id:U,role:"group","aria-labelledby":P?`${U}-label`:void 0,"aria-describedby":T?`${U}-error`:A?`${U}-hint`:void 0,"aria-busy":Z||void 0,...ie.zoneProps,...oe?me:{},className:"relative rounded-lg transition-colors",style:{..._?{opacity:.6}:{},...ge?{boxShadow:"0 0 0 2px var(--rosh-drop-ring)"}:{}},children:[0===u.length?ve:/* @__PURE__ */h("div",{className:"flex flex-wrap gap-2",children:[u.map((e,r)=>{const t=e.kind?"video"===e.kind:l(e.url,S),a=i(e.url),o=H&&(e.cover??0===r);/* @__PURE__ */
|
|
9
|
-
return h("div",{draggable:te||ae&&!!e.dragData||void 0,onDragStart:te?e=>{e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(r)),Y(r)}:ae&&e.dragData?r=>{r.dataTransfer.effectAllowed="link",r.dataTransfer.setData(N,e.dragData)}:void 0,onDragEnd:te?()=>Y(null):void 0,onDragOver:te?e=>{null!=X&&(e.preventDefault(),e.stopPropagation())}:void 0,onDrop:te?e=>{null!=X&&(e.preventDefault(),e.stopPropagation(),X!==r&&k(X,r),Y(null))}:void 0,tabIndex:te?0:void 0,"aria-label":te?J.reorder(a,r+1,u.length):void 0,onKeyDown:te?e=>{"ArrowLeft"===e.key||"ArrowUp"===e.key?r>0&&(e.preventDefault(),k(r,r-1)):"ArrowRight"!==e.key&&"ArrowDown"!==e.key||r<u.length-1&&(e.preventDefault(),k(r,r+1))}:void 0,className:["relative shrink-0 overflow-hidden rounded-md border border-gray-200 bg-gray-100",ne,X===r?"opacity-50":""].join(" "),style:{...he,cursor:te?"move":void 0},children:[t?/* @__PURE__ */b("video",{src:e.url,muted:!0,playsInline:!0,preload:"metadata","aria-label":a,className:"h-full w-full",style:{objectFit:$}}):/* @__PURE__ */b("img",{src:e.url,alt:a,className:"h-full w-full",style:{objectFit:$}}),o&&/* @__PURE__ */b("span",{className:"absolute left-1 top-1 rounded bg-blue-600 px-2 py-0.5 text-xs font-medium text-white",children:W}),!o&&null!=e.mark&&/* @__PURE__ */b("span",{className:"absolute left-1 top-1 inline-flex items-center gap-1 rounded px-2 py-0.5 text-xs font-medium text-white",style:{background:"var(--rosh-media-scrim)"},children:e.mark}),null!=e.caption&&/* @__PURE__ */b(s,{children:e.caption}),re&&/* @__PURE__ */b("button",{type:"button",onClick:()=>D(e.id),"aria-label":e.removeLabel??J.removeItem(a),className:`absolute right-1 top-1 flex h-5 w-5 items-center justify-center rounded-full text-white ${ne}`,style:{background:"var(--rosh-media-scrim-button)"},children:v})]},e.id)}),be]}),Z&&/* @__PURE__ */b(n,{label:G,progress:R})]}),!y&&x&&/* @__PURE__ */b("input",{...ie.inputProps}),
|
|
10
|
-
/* @__PURE__ */b(c,{rejections:ie.rejections})]})}export{y as MediaUploadGrid};
|
package/dist/chunk-3P7SBAKK.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{optionNoteClass as e}from"./chunk-QR4RM7PO.js";import{DEFAULT_SHELL_STRINGS as o,useShellStrings as t}from"./chunk-KKZZAK76.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";function l(o){const t=o.depth?{paddingInlineStart:16*o.depth+"px"}:{};/* @__PURE__ */
|
|
2
|
-
return n("span",{"data-move-target":"",className:"flex min-w-0 flex-col",style:t,children:[
|
|
3
|
-
/* @__PURE__ */r("span",{children:o.label}),o.disabledReason&&/* @__PURE__ */r("span",{className:e(),children:o.disabledReason})]})}function a({count:e,kind:t="file",targets:n,onPick:r},a=o.media){const s=[{type:"label",key:"move-to",label:a.moveTo(e,t)}];if(!n.length)return s.push({type:"status",key:"move-nowhere",label:a.moveNowhere}),s;let i;return n.forEach((e,o)=>{(o>0&&e.group!==i||0===o&&e.group)&&(o>0&&s.push({type:"divider",key:`group-line:${o}`}),e.group&&s.push({type:"label",key:`group:${o}`,label:e.group})),i=e.group,s.push({key:e.key,label:l(e),disabled:!!e.disabledReason,onSelect:()=>r(e)})}),s}function s(e){return a(e,t().media)}export{a as mediaMoveItems,s as useMediaMoveItems};
|
package/dist/chunk-BLO7KTPH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="8.19.0",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-BZWTFLQD.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{AccessibleTable as e}from"./chunk-X3II54HU.js";import{polygonPoints as t}from"./chunk-VFC6QUEN.js";import{ChartDefs as r,maskId as l}from"./chunk-465RRWBY.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{ChartTooltip as o}from"./chunk-P5BOTIJU.js";import{angleScale as n}from"./chunk-2JWPNR2U.js";import{CHART_INK as i,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{useShellStrings as m,useShellLocale as c}from"./chunk-KKZZAK76.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as p,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var k=3,g=e=>`${e.map(([e,t],r)=>`${0===r?"M":"L"}${e.toFixed(2)},${t.toFixed(2)}`).join(" ")} Z`;function x({axes:k,series:x,size:y=300,mode:b="area",grid:v="polygon",rings:M=4,formatValue:N,animate:j=!0,className:$,emptyLabel:C}){const W=m().charts,F=c(),w=N??(e=>h(e,F)),A=C??W.nothingToCompare,R=p(),[U,L]=u(null),{highlighted:T}=a(),Z=x;if(k.length<3||0===Z.length)/* @__PURE__ */
|
|
2
|
-
return d("p",{className:`text-sm text-gray-500 ${$??""}`,children:A});const z=y/2,B=y/2,E=y/2-46,H=n(k.length),I=k.map((e,t)=>null!=e.max&&Number.isFinite(e.max)&&e.max>0?e.max:Math.max(1,...Z.map(e=>e.values[t]??0).filter(Number.isFinite))),K=(e,t)=>{const r=Math.max(0,Math.min(1,t/I[e])),l=H.center(e)-H.step/2;return[z+E*r*Math.cos(l),B+E*r*Math.sin(l)]},O=(e,t)=>null!==U?U!==e:null!==T&&T!==t,Y=null!==U?Z[U]:void 0;/* @__PURE__ */
|
|
3
|
-
return f("div",{className:`relative ${$??""}`,children:[
|
|
4
|
-
/* @__PURE__ */f("svg",{width:"100%",height:y,viewBox:`0 0 ${y} ${y}`,role:"img","aria-labelledby":R,onMouseLeave:()=>L(null),children:[
|
|
5
|
-
/* @__PURE__ */d("title",{id:R,children:W.acrossMeasures(Z.map(e=>e.label),k.length)}),Array.from({length:M},(e,r)=>{const l=E*(r+1)/M;return"circle"===v?/* @__PURE__ */d("circle",{cx:z,cy:B,r:l,fill:"none",stroke:i.grid,strokeWidth:1},r):/* @__PURE__ */d("path",{d:g(t(z,B,l,k.length)),fill:"none",stroke:i.grid,strokeWidth:1},r)}),k.map((e,t)=>{const[r,l]=K(t,I[t]);/* @__PURE__ */
|
|
6
|
-
return f("g",{children:[
|
|
7
|
-
/* @__PURE__ */d("line",{x1:z,y1:B,x2:r,y2:l,stroke:i.grid,strokeWidth:1}),
|
|
8
|
-
/* @__PURE__ */d("text",{x:z+(E+18)*Math.cos(H.center(t)-H.step/2),y:B+(E+18)*Math.sin(H.center(t)-H.step/2)+4,textAnchor:"middle",fontSize:11,fill:i.label,children:e.label})]},e.key)}),
|
|
9
|
-
/* @__PURE__ */d(r,{id:R,reveal:!!j&&"center-out"}),Z.map((e,t)=>{const r=s(t,3,e.color,e.tone),a=k.map((t,r)=>K(r,e.values[r]??0));/* @__PURE__ */
|
|
10
|
-
return f("g",{opacity:O(t,e.key)?.3:1,onMouseEnter:()=>L(t),mask:j?`url(#${l(R)})`:void 0,children:["area"===b&&/* @__PURE__ */d("path",{d:g(a),fill:r,fillOpacity:.18,stroke:"none"}),
|
|
11
|
-
/* @__PURE__ */d("path",{d:g(a),fill:"none",stroke:r,strokeWidth:2,strokeLinejoin:"round"}),a.map(([e,t],l)=>/* @__PURE__ */d("circle",{cx:e,cy:t,r:3.5,fill:r,stroke:i.surface,strokeWidth:1.5},l))]},e.key)})]}),Y&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(o,{title:Y.label,rows:k.map((e,t)=>({key:e.key,label:e.label,color:s(U,3,Y.color,Y.tone),value:w(Y.values[t]??0)}))})}),
|
|
12
|
-
/* @__PURE__ */d("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(140px,1fr))"},children:Z.map((e,t)=>/* @__PURE__ */f("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
|
|
13
|
-
/* @__PURE__ */d("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:s(t,3,e.color,e.tone)}}),
|
|
14
|
-
/* @__PURE__ */d("span",{className:"flex-1 truncate",children:e.label})]},e.key))}),
|
|
15
|
-
/* @__PURE__ */d(e,{caption:W.acrossMeasures(Z.map(e=>e.label),k.length),head:[W.tableSeries,...k.map(e=>e.label)],rows:Z.map(e=>[e.label,...k.map((t,r)=>w(e.values[r]??0))])})]})}export{k as RADAR_SERIES_CAP,x as RadarChart};
|
package/dist/chunk-CIGHIX6Z.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{useHighlight as e}from"./chunk-CNYAHYE6.js";import{ChartTooltip as t}from"./chunk-P5BOTIJU.js";import{usePlotWidth as l}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as a,CHART_INK as n,STATUS_VARS as r}from"./chunk-TZFACUMR.js";import{useShellStrings as o,useShellLocale as i}from"./chunk-KKZZAK76.js";import{formatPercent as u,formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as c,useState as m,useRef as s}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";function x({stages:x,shape:v="funnel",height:p,width:$,gap:g=4,minBandWidth:M=0,formatValue:y,color:b,className:k,emptyLabel:A}){const N=o().charts,L=i(),S=y??(e=>h(e,L)),j=A??N.noStages,z=c(),[Z,V]=m(null),{highlighted:w}=e(),C=s(null),F=l(C,560),W=$??F;if(0===x.length)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${k??""}`,children:j});const B=b??a(0),E=p??54*x.length,H=Math.max(...x.map(e=>e.value),1),K="bars"===v,U=K?Math.round(Math.min(132,Math.max(80,.24*W))):Math.round(Math.min(168,Math.max(104,.38*W))),O=e=>{const t=x[e-1]?.value;return null!=t&&t>0?100*(1-x[e].value/t):null},P=e=>{const t=O(e);return{count:S(x[e].value),drop:null!=t?`−${u(t,1,L)}`:""}},R=K?Math.ceil(Math.max(...x.map((e,t)=>{const{count:l,drop:a}=P(t);return.62*(l.length+(a?a.length+1:0))*12}))+16):0,T=W-U-R,Y=Math.max(K?2:0,Math.min(M,T)),I=e=>Math.max(Y,T*Math.max(0,e/H)),J=e=>I(e)/2,Q=U+T/2,X=e=>46+e/Math.max(1,x.length-1)*54,q=e=>`color-mix(in oklab, ${B} ${X(e).toFixed(0)}%, ${n.surface})`,D=e=>X(e)>=55?n.surface:n.label,G=(e,t)=>null!==Z?Z!==e:null!==w&&w!==t,_=null!==Z?x[Z]:void 0;/* @__PURE__ */
|
|
2
|
-
return f("div",{className:`relative ${k??""}`,ref:C,children:[
|
|
3
|
-
/* @__PURE__ */f("svg",{width:"100%",height:E,viewBox:`0 0 ${W} ${E}`,role:"img","aria-labelledby":z,onMouseLeave:()=>V(null),children:[
|
|
4
|
-
/* @__PURE__ */d("title",{id:z,children:N.funnel(x.length,S(x[0].value),S(x[x.length-1].value))}),x.map((e,t)=>{const l=t*E/x.length+g/2,a=(t+1)*E/x.length-g/2,r=(l+a)/2,o=u(e.value/(x[0].value||1)*100,0,L),i=.62*o.length*12+12;if(K){const u=U,h=u+I(e.value),{count:c,drop:m}=P(t);/* @__PURE__ */
|
|
5
|
-
return f("g",{opacity:G(t,e.key)?.45:1,onMouseEnter:()=>V(t),children:[
|
|
6
|
-
/* @__PURE__ */d("path",{d:`M${u},${l} L${h},${l} L${h},${a} L${u},${a} Z`,fill:q(t)}),
|
|
7
|
-
/* @__PURE__ */d("text",{x:U-12,y:r+4,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),h-u>=i&&/* @__PURE__ */d("text",{x:u+8,y:r+4,textAnchor:"start",fontSize:12,fontWeight:600,fill:D(t),style:{fontVariantNumeric:"tabular-nums"},children:o}),
|
|
8
|
-
/* @__PURE__ */f("text",{"data-funnel-value":"true",x:h+8,y:r+4,textAnchor:"start",fontSize:12,fill:n.label,style:{fontVariantNumeric:"tabular-nums"},children:[
|
|
9
|
-
/* @__PURE__ */d("tspan",{fontWeight:600,children:c}),m&&/* @__PURE__ */d("tspan",{fill:n.muted,children:` ${m}`})]})]},e.key)}const h=J(e.value),c="cone"===v?J(x[t+1]?.value??e.value):h,m=O(t),s=2*Math.min(h,c)>=i;/* @__PURE__ */
|
|
10
|
-
return f("g",{opacity:G(t,e.key)?.45:1,onMouseEnter:()=>V(t),children:[
|
|
11
|
-
/* @__PURE__ */d("path",{d:`M${Q-h},${l} L${Q+h},${l} L${Q+c},${a} L${Q-c},${a} Z`,fill:q(t)}),
|
|
12
|
-
/* @__PURE__ */d("text",{x:U-14,y:r-2,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),
|
|
13
|
-
/* @__PURE__ */f("text",{x:U-14,y:r+14,textAnchor:"end",fontSize:11,fill:n.muted,style:{fontVariantNumeric:"tabular-nums"},children:[S(e.value),null!=m?` · −${u(m,1,L)}`:""]}),
|
|
14
|
-
/* @__PURE__ */d("text",{x:s?Q:Q+Math.max(h,c)+6,y:r+4,textAnchor:s?"middle":"start",fontSize:12,fontWeight:600,fill:s?D(t):n.label,style:{fontVariantNumeric:"tabular-nums"},children:o})]},e.key)})]}),_&&null!==Z&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(t,{title:_.label,rows:[{key:"value",label:N.count,color:q(Z),value:S(_.value)},{key:"share",label:N.ofFirstStage,color:n.muted,value:u(_.value/(x[0].value||1)*100,0,L)},...Z>0&&x[Z-1].value>0?[{key:"drop",label:N.droppedHere,color:r.critical,value:`−${u(100*(1-_.value/x[Z-1].value),1,L)}`}]:[]]})})]})}export{x as FunnelChart};
|
package/dist/chunk-DAJTVAWO.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{ZoomableImage as e}from"./chunk-U5KIRPLV.js";import{isVideoUrl as t,mediaFileName as r}from"./chunk-KB6BGPQK.js";import{dialogA11y as n}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as o}from"./chunk-PKXQDCNR.js";import{useFocusTrap as l,useScrollLock as i}from"./chunk-CDAJKLGL.js";import{Button_default as a}from"./chunk-UDD7GB4F.js";import{buttonClasses as s}from"./chunk-K7U4RWXJ.js";import{Icon as c}from"./chunk-42BBJJDP.js";import{Z_LAYERS as m}from"./chunk-62LW225J.js";import{useHydrated as d}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as u}from"./chunk-TWVUQUUD.js";import{useShellStrings as h}from"./chunk-KKZZAK76.js";import{useRef as f,useState as p,useCallback as x,useEffect as b}from"react";import{createPortal as g}from"react-dom";import{jsx as k,jsxs as w,Fragment as v}from"react/jsx-runtime";var y=/\.(pdf|docx?|xlsx?|pptx?|csv|txt|zip|rar|7z|dwg|dxf|stp|step|igs|iges)(?:[?#]|$)/i;function N(e){return e.kind?e.kind:t(e.url)?"video":y.test(e.url)?"file":"image"}var j="max-w-[calc(100vw-144px)] max-h-[calc(100vh-128px)]",C="flex items-center justify-center rounded-full bg-black/60 text-white hover:bg-black/80 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",K=e=>e.stopPropagation();function D({images:t,startIndex:y=0,onClose:D,onIndexChange:L,onOpenFile:A}){const J=h().lightbox,U=d(),$=f(null),z=f(null),[B,I]=p(y),P=t.length,R=U&&P>0,W=x(e=>{if(P<2)return;const t=((B+e)%P+P)%P;I(t),L?.(t)},[B,P,L]);if(o(R),l($,R,z),i(R),b(()=>{if(R)return u(()=>(D(),!0),()=>$.current)},[R,D]),b(()=>{if(!R)return;const e=e=>{"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||e.target?.closest?.("video")||(e.preventDefault(),W("ArrowRight"===e.key?1:-1))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[R,W]),!R)return null;const F=t[Math.min(B,P-1)],G=N(F),Q=F.caption||r(F.url);let V;return V="video"===G?/* @__PURE__ */k("video",{src:F.url,controls:!0,playsInline:!0,"aria-label":Q,onClick:K,className:`${j} rounded-lg bg-black`}):"file"===G?/* @__PURE__ */w("div",{onClick:K,className:"flex max-w-[calc(100vw-144px)] flex-col items-center gap-3 rounded-lg bg-white px-10 py-8 text-center text-gray-500",children:[
|
|
2
|
-
/* @__PURE__ */k(c,{name:"document","aria-hidden":"true",className:"h-10 w-10"}),
|
|
3
|
-
/* @__PURE__ */k("span",{className:"max-w-[60ch] break-all text-sm font-medium text-gray-700",children:Q}),A?/* @__PURE__ */k(a,{size:"sm",onClick:()=>A(F),children:J.openFile}):/* @__PURE__ */k("a",{href:F.url,target:"_blank",rel:"noopener noreferrer",className:s({size:"sm"}),children:J.openFile})]}):/* @__PURE__ */k(e,{src:F.url,alt:Q,className:`${j} object-contain`,frameClassName:"rounded-lg"}),g(
|
|
4
|
-
/* @__PURE__ */w("div",{ref:$,...n({role:"dialog",modal:!0,label:J.label}),"data-lightbox-backdrop":"",className:"fixed inset-0 flex items-center justify-center bg-black/80",style:{zIndex:m.overlay},onClick:D,children:[V,
|
|
5
|
-
/* @__PURE__ */w("div",{className:"absolute right-4 top-4 flex items-center gap-2",onClick:K,children:[
|
|
6
|
-
/* @__PURE__ */k("span",{className:"rounded bg-black/60 px-2 py-1 text-xs text-white tabular-nums",children:J.counter(B+1,P)}),
|
|
7
|
-
/* @__PURE__ */k("button",{ref:z,type:"button",onClick:D,"aria-label":J.close,className:`${C} h-8 w-8`,children:/* @__PURE__ */k(c,{name:"close","aria-hidden":"true",className:"h-4 w-4"})})]}),P>1&&/* @__PURE__ */w(v,{children:[
|
|
8
|
-
/* @__PURE__ */k("button",{type:"button",onClick:e=>{K(e),W(-1)},"aria-label":J.previous,className:`${C} absolute left-4 top-1/2 h-10 w-10 -translate-y-1/2`,children:/* @__PURE__ */k(c,{name:"chevron-left","aria-hidden":"true",className:"h-5 w-5"})}),
|
|
9
|
-
/* @__PURE__ */k("button",{type:"button",onClick:e=>{K(e),W(1)},"aria-label":J.next,className:`${C} absolute right-4 top-1/2 h-10 w-10 -translate-y-1/2`,children:/* @__PURE__ */k(c,{name:"chevron-right","aria-hidden":"true",className:"h-5 w-5"})})]}),
|
|
10
|
-
/* @__PURE__ */w("div",{className:"absolute inset-x-18 bottom-4 flex items-center justify-center gap-3",onClick:K,children:[
|
|
11
|
-
/* @__PURE__ */k("span",{className:"min-w-0 break-words text-center text-sm text-white/85",children:Q}),"file"!==G&&/* @__PURE__ */k("a",{href:F.url,target:"_blank",rel:"noopener noreferrer",className:"flex-none text-xs font-medium text-white/70 underline decoration-white/30 underline-offset-2 hover:text-white",children:J.openOriginal})]})]}),document.body)}export{D as ImageLightbox,N as lightboxKind};
|
package/dist/chunk-ENVCMR3M.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{InputNumber_default as e}from"./chunk-IH4SVMXJ.js";import{useSettingAuto as t,useInSettingRow as i}from"./chunk-E4Z5OXBI.js";import{useShellStrings as n}from"./chunk-KKZZAK76.js";import{createContext as r,useState as l,useMemo as a,useId as o,useRef as d,useContext as s,useEffect as u,useLayoutEffect as c}from"react";import{jsx as m,jsxs as f}from"react/jsx-runtime";var p=(e,t,i)=>Math.min(i,Math.max(t,e));function h(e){const t=String(e),i=/e-(\d+)$/.exec(t);return i?Number(i[1]):t.split(".")[1]?.length??0}var v=8,x=40;function b(e){return Math.max(1,...e.map(e=>(e??"").length))}var w="undefined"==typeof window?u:c;function y(e,t,i,n){return Number(p(e,t,i).toFixed(n))}var g=r(null);function S({children:e}){const[t,i]=l({}),n=a(()=>(e,t)=>i(i=>{if(null===t){if(!(e in i))return i;const t={...i};return delete t[e],t}return i[e]===t?i:{...i,[e]:t}}),[]),r=a(()=>{const e=Object.values(t);return{set:n,width:e.length?`max(${e.join(", ")})`:null}},[t,n]);/* @__PURE__ */
|
|
2
|
-
return m(g.Provider,{value:r,children:e})}function z({value:r,onChange:a,min:c,max:S,step:z=1,shiftStep:F,precision:$,inputMin:k,inputMax:K,suffix:N,showInput:j=!0,emptyLabel:L,placeholderValue:M,stepFrom:A,label:C,"aria-labelledby":E,valueText:D,id:I,disabled:R,size:V="md",className:Z="",auto:B}){const O=n(),W=o(),X=t(),q=B??X,H=o(),J=I??W,P=$??h(z),T=k??c,U=K??S,G=void 0!==L||void 0!==M,Q=A??M,Y=p(r??M??c,c,S),_=d(null),[ee,te]=l(null),ie=Boolean(N);w(()=>{const e=()=>{const e=_.current?.querySelector("input");if(!e)return;const t=getComputedStyle(e),i=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"].reduce((e,i)=>e+(parseFloat(t[i])||0),0);i<=0||te(e=>e&&e.frame===i&&e.fontSize===t.fontSize?e:{frame:i,fontSize:t.fontSize})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[ie,j]);const ne=e=>D?D(e):"string"==typeof N?`${e.toFixed(P)} ${N}`:void 0,re=null==r?L??(null!=M?ne(M)??String(M):void 0):ne(r),le=`calc(${b([c.toFixed(P),S.toFixed(P),r?.toFixed(P),L,M?.toFixed(P)])}ch + ${(ee?.frame??10+(ie?x:v))+2}px)`,ae=s(g),oe=o(),de=ae?.set;w(()=>{de&&de(oe,j?le:null)},[de,oe,le,j]),u(()=>()=>de?.(oe,null),[de,oe]);const se=i();/* @__PURE__ */
|
|
3
|
-
return f("div",{"data-slider":"",className:`flex w-full min-w-0 items-center ${se?"flex-wrap gap-2":"gap-3"} ${Z}`.trim(),children:[
|
|
4
|
-
/* @__PURE__ */m("input",{id:J,type:"range",min:c,max:S,step:z,value:Y,disabled:R,"aria-label":E?void 0:C,"aria-labelledby":E,"aria-valuetext":re,"aria-describedby":q?H:void 0,onKeyDown:e=>{const t="ArrowUp"===e.key||"ArrowRight"===e.key?1:"ArrowDown"===e.key||"ArrowLeft"===e.key?-1:0;if(!t||e.altKey||e.ctrlKey||e.metaKey)return;const i=e.shiftKey&&null!=F;if(!i&&!(null==r&&null!=Q))return;e.preventDefault();a(y((r??Q??Y)+t*(i?F??z:z),c,S,P))},onChange:e=>a(y(Number(e.target.value),c,S,P)),className:`min-w-24 flex-1 ${se?"basis-24":""} cursor-pointer accent-blue-600 disabled:cursor-not-allowed disabled:opacity-60 ${"sm"===V?"h-1":"h-1.5"}`}),j&&
|
|
5
|
-
/* @__PURE__ */m("div",{ref:_,"data-slider-box":"",className:se?"ml-auto shrink-0":"shrink-0 text-xs",style:se?void 0:{width:ae?.width??le,...ee?{fontSize:ee.fontSize}:{}},children:/* @__PURE__ */m(e,{value:r,onChange:e=>{null!=e?e<T||e>U||a(e):G&&a(null)},min:T,max:U,step:z,shiftStep:F,stepFrom:Q,precision:P,snap:!0,allowEmpty:G,suffix:N,disabled:R,placeholder:L??(null!=M?M.toFixed(P):void 0),size:se?void 0:"sm",auto:q,"aria-label":C?O.slider.value(C):void 0,"aria-labelledby":C?void 0:E})}),q&&/* @__PURE__ */m("span",{id:H,hidden:!0,children:O.settingView.auto})]})}export{z as Slider,S as SliderGroup,y as settleSliderValue,b as sliderBoxChars,h as stepDecimals};
|