efficient-shell 8.20.0 → 8.21.1
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 +37 -12
- package/dist/{Browser-KK4DSPFA.js → Browser-33BAOVZA.js} +14 -14
- package/dist/Calculator-FHN36ZE3.js +29 -0
- package/dist/{CurrencyConverter-PD2CEL6V.js → CurrencyConverter-ONCRQNI4.js} +9 -9
- package/dist/{Documents-QRU3INP2.js → Documents-LE46Z6RO.js} +5 -5
- package/dist/{Files-NQBM46JA.js → Files-PD7KZM2Y.js} +25 -25
- package/dist/{Notepad-KU2VK5QB.js → Notepad-NYFR5HWW.js} +10 -10
- package/dist/PdfViewer-ZFZ4PEAV.js +1 -0
- package/dist/{PomodoroTimer-JEQTTMGA.js → PomodoroTimer-JVQ5K7B4.js} +68 -68
- package/dist/{Preview-C6VU5P3N.js → Preview-CPT6HLMR.js} +40 -40
- package/dist/Sidebar-OFRMBB5V.js +43 -0
- package/dist/{Spreadsheet-HLH3EHCX.js → Spreadsheet-BEIPEEOO.js} +13 -13
- 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-36MUTG34.js +1 -0
- package/dist/{chunk-VWVFKMU7.js → chunk-3HNK7IRJ.js} +3 -3
- 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-PXCARPLZ.js → chunk-55WFJELE.js} +1 -1
- package/dist/chunk-5U3WEVZL.js +19 -0
- 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-6WNQ5ENK.js +8 -0
- 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-5GMWOYTF.js → chunk-AH2AUQYM.js} +1 -1
- package/dist/{chunk-AILWMDWP.js → chunk-AJ42UE53.js} +1 -1
- package/dist/{chunk-DAV7SMCJ.js → chunk-AJD24TNB.js} +1 -1
- package/dist/{chunk-4FOTTLL7.js → chunk-AVOVYKVL.js} +2 -2
- 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-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-DNCII5C4.js +8 -0
- package/dist/chunk-DNKACLRF.js +11 -0
- package/dist/{chunk-D6FSZBJ5.js → chunk-DO6XTJ77.js} +1 -1
- 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-J324R2BM.js → chunk-ES3WKDZC.js} +13 -13
- package/dist/{chunk-TLJCUUZU.js → chunk-ET32NQHX.js} +1 -1
- package/dist/chunk-ETSKG62F.js +1 -0
- package/dist/{chunk-XDAR2DSX.js → chunk-EXMFUK3A.js} +8 -8
- package/dist/chunk-F2Z6IXMM.js +2 -0
- package/dist/{chunk-TF3E5J3Y.js → chunk-GI7FOLDX.js} +1 -1
- package/dist/{chunk-KSSIZW3C.js → chunk-GNXTOUPJ.js} +5 -5
- 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-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-K7Y6VDCC.js +11 -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-KATRRQD5.js → chunk-L6FLPBU2.js} +5 -5
- package/dist/{chunk-3WM23XSR.js → chunk-LDFRVV5R.js} +8 -8
- package/dist/{chunk-3KDY6V6I.js → chunk-LMLM4KHQ.js} +8 -8
- package/dist/{chunk-LMOPRRQY.js → chunk-LQQMELJM.js} +12 -12
- 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-E4O2ZMXF.js → chunk-N65HZ3TK.js} +1 -1
- 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-FOSCSAJZ.js → chunk-NL6VHSUN.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-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-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-EQZAHIUG.js → chunk-QJPLM2KQ.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-RYC3ZHXM.js → chunk-UBVFIIXS.js} +5 -5
- 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-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-7HTURXIA.js → chunk-WRJDHFLD.js} +3 -3
- package/dist/{chunk-NGVODCMV.js → chunk-XWH6KVVB.js} +3 -3
- package/dist/chunk-Y5ZWPU4L.js +14 -0
- package/dist/chunk-Y7V7CMKP.js +2 -0
- package/dist/{chunk-7RD623PT.js → chunk-YGEK2Z6P.js} +1 -1
- package/dist/{chunk-55DONELU.js → chunk-YSHS6QIY.js} +6 -6
- package/dist/{chunk-ABD5X73I.js → chunk-YTGWIMXB.js} +1 -1
- package/dist/chunk-YUIY7QOR.js +1 -0
- 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.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.js +1 -1
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +425 -425
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/map/index.js +6 -6
- package/dist/markdown/index.js +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.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 +4 -2
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -1
- package/dist/Calculator-PH6NVEEZ.js +0 -29
- 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-6UOMJ7E4.js +0 -2
- package/dist/chunk-ABDT4M5L.js +0 -19
- 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-H5VGRHNT.js +0 -9
- package/dist/chunk-HLGE6TVE.js +0 -4
- package/dist/chunk-HMZLRXLA.js +0 -1
- package/dist/chunk-JH4W3R4Q.js +0 -11
- package/dist/chunk-KKZZAK76.js +0 -1
- package/dist/chunk-KS3AQKHD.js +0 -8
- package/dist/chunk-LYLEH25Y.js +0 -1
- package/dist/chunk-NI76QOA2.js +0 -2
- package/dist/chunk-NZ67C5OK.js +0 -12
- package/dist/chunk-OHSJWKNV.js +0 -14
- package/dist/chunk-Q75PSCZ5.js +0 -20
- package/dist/chunk-SIQSD3QT.js +0 -8
- package/dist/chunk-TCB2J3PS.js +0 -9
- package/dist/chunk-THPTJGV5.js +0 -8
- package/dist/chunk-UDD7GB4F.js +0 -2
- package/dist/chunk-WMO2JQNL.js +0 -8
- package/dist/chunk-WOHOIJRZ.js +0 -3
- package/dist/chunk-X7ZBGXUU.js +0 -1
- /package/dist/{chunk-PCGZS6S4.js → chunk-276AUQNN.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.21.1",
|
|
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",
|
|
@@ -209,6 +209,8 @@
|
|
|
209
209
|
"mammoth": "^1.8.0",
|
|
210
210
|
"maplibre-gl": "6.11.2",
|
|
211
211
|
"online-3d-viewer": "^0.18.0",
|
|
212
|
+
"paper-jsdom": "^0.12.20",
|
|
213
|
+
"paperjs-offset": "^1.0.8",
|
|
212
214
|
"pdfjs-dist": "^6.2.108",
|
|
213
215
|
"playwright": "^1.63.0",
|
|
214
216
|
"react": "^18.2.0",
|
|
@@ -234,6 +236,8 @@
|
|
|
234
236
|
"test:browser": "node scripts/test-browser.mjs",
|
|
235
237
|
"screenshot": "node scripts/screenshot.mjs",
|
|
236
238
|
"icons": "node scripts/icons/generate.mjs",
|
|
239
|
+
"icons:looks": "node scripts/icons/looks.mjs",
|
|
240
|
+
"icons:gaps": "node scripts/icons/gap-check.mjs",
|
|
237
241
|
"clean": "rm -rf dist",
|
|
238
242
|
"build:brand": "tailwindcss -i src/brand.css -o dist/brand.css --minify",
|
|
239
243
|
"build:ai": "tailwindcss -i src/ai.css -o dist/ai.css --minify"
|
|
@@ -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};
|
|
@@ -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-6UOMJ7E4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ChartTooltip as t}from"./chunk-P5BOTIJU.js";import{CartesianPlot as o}from"./chunk-KS3AQKHD.js";import{binValues as r}from"./chunk-2JWPNR2U.js";import{resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as e,useShellLocale as i}from"./chunk-KKZZAK76.js";import{formatPlain as m,formatFixed as n}from"./chunk-C3QOHMR6.js";import{jsx as l}from"react/jsx-runtime";function c({values:c,bins:s=10,precomputed:h,height:u=220,width:p,color:b,tone:f,formatBound:d,formatCount:x,yAxisLabel:g,label:k,className:y,emptyLabel:j}){const A=e().charts,v=i(),w=d??(t=>Number.isInteger(t)?m(t,v):n(t,1,v)),K=x??(t=>m(t,v)),L=g??A.countAxis,M=k??A.distribution,N=h??r(c??[],s),C=a(0,b,f),O=N.map(t=>w(t.from)),P=N.map(t=>t.count);/* @__PURE__ */
|
|
2
|
-
return l(o,{labels:O,values:P,height:u,width:p,bandPadding:0,xTickAnchor:"start",formatValue:K,yAxisLabel:L,className:y,emptyLabel:j,ariaLabel:A.histogram(M,N.length,(c??[]).length),tooltip:o=>/* @__PURE__ */l(t,{title:`${w(N[o].from)} – ${w(N[o].to)}`,rows:[{key:"count",label:A.observations,color:C,value:K(N[o].count)}]}),children:({x:t,y:o,bottom:r,active:a})=>/* @__PURE__ */l("g",{children:N.map((e,i)=>/* @__PURE__ */l("rect",{x:t(i)+.5,y:o(e.count),width:Math.max(1,t.bandwidth-1),height:Math.max(0,r-o(e.count)),fill:C,fillOpacity:null===a||a===i?.85:.42},i))})})}export{c as HistogramChart};
|
package/dist/chunk-ABDT4M5L.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{ChartBrush as t}from"./chunk-7HTURXIA.js";import{ChartDot as e}from"./chunk-CK2YOGUS.js";import{stepPath as a,curvePath as r,areaBetween as l,areaFrom as n}from"./chunk-VFC6QUEN.js";import{ChartDefs as i,MOTION as o,stagger as s,fillFor as c,dashFor as h,maskId as m}from"./chunk-465RRWBY.js";import{ChartSkeleton as d}from"./chunk-G3IG4X4Z.js";import{useHighlight as u,highlightOpacity as f}from"./chunk-CNYAHYE6.js";import{ChartTooltip as p}from"./chunk-P5BOTIJU.js";import{tooltipBesideBand as g}from"./chunk-MG7A3R75.js";import{pairedAxes as k,niceAxis as y,niceMax as x,linearScale as v,axisGutter as b,bandScale as M,ladderScale as N}from"./chunk-2JWPNR2U.js";import{usePlotWidth as j}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as $,CHART_INK as w,STATUS_VARS as A}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as R}from"./chunk-TWVUQUUD.js";import{useShellStrings as V,useShellLocale as L}from"./chunk-KKZZAK76.js";import{formatPercent as W,formatPlain as z}from"./chunk-C3QOHMR6.js";import{useRef as U,useState as C,useId as I,useEffect as S}from"react";import{jsx as D,jsxs as E}from"react/jsx-runtime";var T=12,B=16,F=26,K=52,O=t=>"number"==typeof t&&Number.isFinite(t);function P({series:P,labels:Z,height:G=200,stacked:Y=!1,stackMode:H="value",levels:Q,curve:X="linear",tension:J=0,max:q,yTickCount:_=4,formatValue:tt,formatTooltipValue:et,tooltipLabels:at,yAxisLabel:rt,referenceLines:lt,labelEndpoints:nt=!1,dots:it,dotVariant:ot="border",pulse:st=!1,brush:ct=!1,range:ht,onRangeChange:mt,loading:dt=!1,animate:ut=!0,reveal:ft="left-to-right",fillVariant:pt="gradient",gridStyle:gt="solid",width:kt,className:yt,emptyLabel:xt}){const vt=V().charts,bt=L(),Mt=tt??(t=>z(t,bt)),Nt=et??Mt,jt=xt??vt.noData,$t=U(null),wt=j($t),At=kt??wt,[Rt,Vt]=C(null),[Lt,Wt]=C(null),{highlighted:zt}=u(),Ut=I();if(S(()=>{if(null!==Rt)return R(t=>"Escape"===t.key&&(Vt(null),!0))},[Rt]),dt)/* @__PURE__ */
|
|
2
|
-
return D("div",{className:yt,ref:$t,children:/* @__PURE__ */D(d,{height:G,width:kt??wt})});const Ct=Z,It=ht??Lt??[0,Math.max(0,Ct.length-1)],[St,Dt]=It,Et=t=>ct?t.slice(St,Dt+1):t,Tt=P.map((t,e)=>({...t,slot:e})).filter(t=>t.data.some(O)).map(t=>({...t,data:Et(t.data)}));if(Z=Et(Ct),0===Tt.length||0===Z.length)/* @__PURE__ */
|
|
3
|
-
return D("div",{className:yt,ref:$t,children:/* @__PURE__ */D("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:G},children:jt})});const Bt=Z.map((t,e)=>Tt.reduce((t,a)=>t+(O(a.data[e])?a.data[e]:0),0)),Ft=(t,e)=>Bt[e]>0?t/Bt[e]:null,Kt=[];if(Y){let t=Z.map(()=>0);for(const e of Tt)t=t.map((t,a)=>t+(O(e.data[a])?e.data[a]:0)),Kt.push("percent"===H?t.map((t,e)=>Ft(t,e)):[...t])}const Ot=!!Q&&Q.length>0,Pt=t=>"right"===t.axis,Zt=!Y&&!Ot&&void 0===q&&Tt.some(Pt)&&Tt.some(t=>!Pt(t)),Gt=Zt?Tt.filter(t=>!Pt(t)):Tt,Yt=Zt?Tt.filter(Pt).flatMap(t=>t.data.filter(O)):[],Ht=Y?(Kt.at(-1)??[]).filter(O):Gt.flatMap(t=>t.data.filter(O)),Qt=Zt?k([Math.min(0,...Ht),Math.max(0,...Ht)],[Math.min(0,...Yt),Math.max(0,...Yt)],{intervals:_+1,integerLeft:Ht.every(Number.isInteger),integerRight:Yt.every(Number.isInteger)}):null,Xt=Qt?Qt.left:Y&&"percent"===H||Ot||void 0!==q?null:y(Y?0:Math.min(0,...Ht),Math.max(0,...Ht),{intervals:_+1,integer:Ht.every(Number.isInteger)}),Jt=Xt?Xt.lo:0,qt=Y&&"percent"===H?1:Xt?Xt.hi:q??x(Math.max(...Ht,0)),_t=Y&&"percent"===H?t=>W(Math.round(100*t),0,bt):Mt,te=Ot?Q:Xt?Xt.ticks:v([Jt,qt],{from:0,to:1}).ticks(_+1),ee=b(te.map(_t),K),ae=Qt?b(Qt.right.ticks.map(Mt),B):B,re={left:ee,right:Math.max(ee+1,At-ae),top:T,bottom:G-F},le=M(Z.length,{from:re.left,to:re.right}),ne=Ot?N(Q,{from:re.bottom,to:re.top}):null,ie=v([Jt,qt],{from:re.bottom,to:re.top}),oe=ie(Math.max(Jt,0)),se=t=>ne?ne(t):ie(t),ce=Qt?v([Qt.right.lo,Qt.right.hi],{from:re.bottom,to:re.top}):null,he=t=>ce&&Pt(t)?ce:se,me=ne?ne.levels.map(t=>({value:t,y:ne(t)})):te.map(t=>({value:t,y:ie(t)})),de=t=>e=>{e.preventDefault(),Vt(e=>{const a=(e??0)+t;return Math.min(Z.length-1,Math.max(0,a))})},ue=Math.max(1,Math.ceil(Z.length/Math.max(1,Math.floor(At/96))));/* @__PURE__ */
|
|
4
|
-
return E("div",{className:`relative ${yt??""}`,ref:$t,children:[
|
|
5
|
-
/* @__PURE__ */E("svg",{width:"100%",height:G,viewBox:`0 0 ${At} ${G}`,role:"img","aria-label":vt.overIntervals(Tt.map(t=>t.label),Z.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>Vt(null),onBlur:()=>Vt(null),onKeyDown:t=>{"ArrowRight"===t.key&&de(1)(t),"ArrowLeft"===t.key&&de(-1)(t)},children:[
|
|
6
|
-
/* @__PURE__ */D("defs",{children:/* @__PURE__ */D("clipPath",{id:Ut,children:/* @__PURE__ */D("rect",{x:re.left,y:re.top,width:re.right-re.left,height:re.bottom-re.top})})}),
|
|
7
|
-
/* @__PURE__ */D(i,{id:Ut,fills:Tt.map((t,e)=>({color:$(t.slot,t.color,t.tone),variant:t.fillVariant??pt})),fadeFrom:Y?.42:.3,reveal:!!ut&&ft}),me.map(t=>/* @__PURE__ */D("line",{x1:re.left,y1:t.y,x2:re.right,y2:t.y,stroke:w.grid,strokeWidth:1,shapeRendering:"crispEdges",strokeDasharray:"dashed"===gt?"3 3":void 0},`grid-${t.value}`)),
|
|
8
|
-
/* @__PURE__ */D("line",{x1:re.left,y1:oe,x2:re.right,y2:oe,stroke:w.axis,strokeWidth:1,shapeRendering:"crispEdges"}),me.map(t=>/* @__PURE__ */D("text",{x:re.left-8,y:t.y+4,textAnchor:"end","data-axis-tick":"true",fontSize:11,fill:w.label,style:{fontVariantNumeric:"tabular-nums"},children:_t(t.value)},`ytick-${t.value}`)),Qt&&me.map((t,e)=>/* @__PURE__ */D("text",{x:re.right+8,y:t.y+4,textAnchor:"start","data-axis-tick":"true",fontSize:11,fill:w.label,style:{fontVariantNumeric:"tabular-nums"},children:Mt(Qt.right.ticks[e])},`ytick-r-${t.value}`)),rt&&/* @__PURE__ */D("text",{x:12,y:(re.top+re.bottom)/2,transform:`rotate(-90 12 ${(re.top+re.bottom)/2})`,textAnchor:"middle",fontSize:11,fill:w.label,children:rt}),
|
|
9
|
-
/* @__PURE__ */D("g",{clipPath:`url(#${Ut})`,mask:ut&&ft?`url(#${m(Ut)})`:void 0,children:Tt.map((t,e)=>{const i=$(t.slot,t.color,t.tone),m=t.mode??(Y?"area":"line"),d=f(t.key,zt);if("step"===m){const e=Z.map((e,a)=>({start:le(a),end:le.end(a),value:t.data[a]})).filter(t=>O(t.value)).map(e=>({start:e.start,end:e.end,y:he(t)(e.value)}));/* @__PURE__ */
|
|
10
|
-
return D("path",{d:a(e),fill:"none",stroke:i,strokeWidth:2.5,strokeLinecap:"butt",strokeLinejoin:"miter",opacity:d??void 0,className:"rosh-viz-mark"},t.key)}const u=Z.map((a,r)=>{const l=Y?Kt[e]?.[r]:t.data[r];return O(l)?[le.center(r),he(t)(l)]:null}).filter(t=>null!==t);if(0===u.length)return null;if("column"===m){const a=Math.max(1,.62*le.bandwidth),r="solid"===t.fillVariant,l=he(t);/* @__PURE__ */
|
|
11
|
-
return D("g",{opacity:d??void 0,className:"rosh-viz-mark",children:Z.map((n,c)=>{const h=Y?Kt[e]?.[c]:t.data[c];if(!O(h))return null;const m=l(h);/* @__PURE__ */
|
|
12
|
-
return D("rect",{x:le.center(c)-a/2,y:Math.min(m,oe),width:a,height:Math.abs(oe-m),rx:2,fill:i,fillOpacity:r?1:.35,className:ut?o.rise:void 0,style:ut?s(c,26):void 0},c)})},t.key)}const p=r(u,X,J),g=Y&&e>0?Z.map((t,a)=>[le.center(a),se(Kt[e-1]?.[a]??0)-2]):null,k=g?l(p,g):n(p,u,oe);/* @__PURE__ */
|
|
13
|
-
return E("g",{opacity:d??void 0,className:"rosh-viz-mark",children:[("area"===m||Y)&&
|
|
14
|
-
/* @__PURE__ */D("path",{d:k,fill:c(Ut,e,t.fillVariant??pt,i),stroke:"none"}),
|
|
15
|
-
/* @__PURE__ */D("path",{d:p,fill:"none",stroke:i,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:h(t.stroke??(t.forecast?"animated-dashed":"solid")),className:ut&&("animated-dashed"===t.stroke||t.forecast&&!t.stroke)?o.march:void 0})]},t.key)})}),lt?.map((t,e)=>{const a=t.color??A[t.tone??"critical"],r=se(t.value);/* @__PURE__ */
|
|
16
|
-
return E("g",{children:[
|
|
17
|
-
/* @__PURE__ */D("line",{x1:re.left,y1:r,x2:re.right,y2:r,stroke:a,strokeWidth:1,strokeDasharray:"5 4"}),t.label&&/* @__PURE__ */D("text",{x:re.right-4,y:r-5,textAnchor:"end",fontSize:11,fontWeight:600,fill:a,children:t.label})]},`rule-${e}`)}),"none"!==(it??(nt?"last":"none"))&&Tt.map((t,a)=>{if("column"===t.mode)return null;const r=it??(nt?"last":"none"),l=$(t.slot,t.color,t.tone),n=[...t.data].map(O).lastIndexOf(!0),i="all"===r?Z.map((t,e)=>e).filter(e=>O(Y?Kt[a]?.[e]:t.data[e])):n>=0?[n]:[];/* @__PURE__ */
|
|
18
|
-
return E("g",{children:[i.map(r=>{const i=Y?Kt[a]?.[r]:t.data[r];return O(i)?/* @__PURE__ */D(e,{cx:le.center(r),cy:he(t)(i),color:l,variant:ot,pulse:st&&r===n,title:`${Z[r]}: ${t.label} ${Mt(i)}`},r):null}),nt&&n>=0&&O(Y?Kt[a]?.[n]:t.data[n])&&/* @__PURE__ */D("text",{x:le.center(n)-10,y:he(t)(Y?Kt[a]?.[n]:t.data[n])-9,textAnchor:"end",fontSize:12,fontWeight:600,fill:w.label,style:{fontVariantNumeric:"tabular-nums"},children:Mt(Y?Kt[a]?.[n]:t.data[n])})]},`dots-${t.key}`)}),Z.map((t,e)=>e%ue===0?/* @__PURE__ */D("text",{x:le.center(e),y:G-8,textAnchor:"middle",fontSize:11,fill:w.label,style:{fontVariantNumeric:"tabular-nums"},children:t},`xtick-${e}`):null),null!==Rt&&/* @__PURE__ */D("line",{x1:le.center(Rt),y1:re.top,x2:le.center(Rt),y2:re.bottom,stroke:w.axis,strokeWidth:1}),Z.map((t,e)=>/* @__PURE__ */D("rect",{x:le(e),y:re.top,width:Math.max(1,le.bandwidth),height:re.bottom-re.top,fill:"transparent",onMouseEnter:()=>Vt(e)},`hit-${e}`))]}),ct&&Ct.length>2&&/* @__PURE__ */D(t,{className:"mt-1",labels:Ct,width:At,data:P[0]?.data??[],range:It,onRangeChange:t=>{mt?mt(t):Wt(t)}}),null!==Rt&&
|
|
19
|
-
/* @__PURE__ */D("div",{className:"pointer-events-none absolute top-2 z-10",style:g(le.center(Rt),le.bandwidth,At),children:/* @__PURE__ */D(p,{title:at?.[Rt]??Z[Rt],rows:Tt.map((t,e)=>({key:t.key,label:t.label,color:$(t.slot,t.color,t.tone),value:O(t.data[Rt])?Y&&"percent"===H?`${W(100*(Ft(t.data[Rt],Rt)??0),1,bt)} · ${Nt(t.data[Rt])}`:Nt(t.data[Rt]):void 0})),footnote:Y&&"percent"===H?vt.inBucket(Nt(Bt[Rt])):void 0})})]})}export{P as TimeSeriesChart};
|
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};
|
package/dist/chunk-H5VGRHNT.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{AccessibleTable as e}from"./chunk-X3II54HU.js";import{bumpPath as t}from"./chunk-VFC6QUEN.js";import{useHighlight as n}from"./chunk-CNYAHYE6.js";import{ChartTooltip as o}from"./chunk-P5BOTIJU.js";import{usePlotWidth as l}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as r,CHART_INK as a}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as s}from"./chunk-KKZZAK76.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useRef as c,useState as m}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function f({nodes:f,links:k,height:p=320,width:x,nodeWidth:g=14,nodePadding:y=12,formatValue:v,className:M,emptyLabel:w}){const b=i().charts,j=s(),$=v??(e=>h(e,j)),N=w??b.noFlows,A=c(null),C=l(A),E=x??C,[F,U]=m(null),{highlighted:O}=n();if(0===f.length||0===k.length)/* @__PURE__ */
|
|
2
|
-
return d("div",{className:M,ref:A,children:/* @__PURE__ */d("p",{className:"py-8 text-center text-sm text-gray-500",children:N})});const Z=[...new Set(f.map(e=>e.depth))].sort((e,t)=>e-t),z=e=>Z.length<=1?0:Z.indexOf(e)/(Z.length-1)*(E-g-140)+70,H=new Map(f.map(e=>{const t=k.filter(t=>t.from===e.key).reduce((e,t)=>e+t.value,0),n=k.filter(t=>t.to===e.key).reduce((e,t)=>e+t.value,0);return[e.key,Math.max(t,n,e.value??0)]})),I=/* @__PURE__ */new Map;for(const e of f)I.set(e.depth,[...I.get(e.depth)??[],e]);const K=Math.max(...[...I.values()].map(e=>e.reduce((e,t)=>e+(H.get(t.key)??0),0))),P=p-20,T=K>0?(P-y*(Math.max(...[...I.values()].map(e=>e.length))-1))/K:0,B=/* @__PURE__ */new Map;for(const[e,t]of I){const n=t.map(e=>Math.max(2,(H.get(e.key)??0)*T)),o=n.reduce((e,t)=>e+t,0)+y*(t.length-1),l=n.reduce((e,t)=>e+Math.max(0,t-2),0),r=o>P&&l>0?Math.max(0,1-(o-P)/l):1;let a=10;t.forEach((t,o)=>{const l=2+Math.max(0,n[o]-2)*r;B.set(t.key,{x:z(e),y:a,h:l,index:o}),a+=l+y})}const L=/* @__PURE__ */new Map,Q=/* @__PURE__ */new Map,R=/* @__PURE__ */new Map,S=(e,t)=>e.from===t||e.to===t,V="link"===F?.kind?k[F.index]:void 0,W="node"===F?.kind?f.find(e=>e.key===F.key):void 0;/* @__PURE__ */
|
|
3
|
-
return u("div",{className:`relative ${M??""}`,ref:A,children:[
|
|
4
|
-
/* @__PURE__ */u("svg",{width:"100%",height:p,viewBox:`0 0 ${E} ${p}`,role:"img","aria-label":b.sankey(f.length,k.length),onMouseLeave:()=>U(null),children:[k.map((e,n)=>{const o=B.get(e.from),l=B.get(e.to);if(!o||!l)return null;const a=Math.max(1,e.value*T),i=o.y+(L.get(e.from)??0)+a/2,s=l.y+(Q.get(e.to)??0)+a/2;L.set(e.from,(L.get(e.from)??0)+a),Q.set(e.to,(Q.get(e.to)??0)+a);const h=o.x+g,c=l.x,m=r(o.index,e.color),u=`${e.from}→${e.to}`,f=R.get(u)??0;R.set(u,f+1);const k=((e,t)=>F?"link"===F.kind?F.index===t:S(e,F.key):null!==O?S(e,O):null)(e,n);/* @__PURE__ */
|
|
5
|
-
return d("path",{d:t([[h,i],[c,s]]),fill:"none",stroke:m,strokeWidth:a,strokeOpacity:null===k||k?.42:.12,onMouseEnter:()=>U({kind:"link",index:n})},f?`${u}#${f}`:u)}),f.map(e=>{const t=B.get(e.key);if(!t)return null;const n=t.x>E/2,o=(l=e.key,F?"node"===F.kind?F.key===l:S(k[F.index],l):null!==O?O===l:null);var l;/* @__PURE__ */
|
|
6
|
-
return u("g",{opacity:null===o||o?1:.45,onMouseEnter:()=>U({kind:"node",key:e.key}),children:[
|
|
7
|
-
/* @__PURE__ */d("rect",{x:t.x,y:t.y,width:g,height:t.h,rx:2,fill:r(t.index,e.color,e.tone)}),
|
|
8
|
-
/* @__PURE__ */d("text",{x:n?t.x-8:t.x+g+8,y:t.y+t.h/2+4,textAnchor:n?"end":"start",fontSize:11,fill:a.label,children:e.label})]},e.key)})]}),V&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(o,{title:`${V.from} → ${V.to}`,rows:[{key:"value",label:b.flow,color:r(B.get(V.from)?.index??0,V.color),value:$(V.value)}]})}),W&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(o,{title:W.label,rows:[{key:"value",label:b.throughput,color:r(B.get(W.key)?.index??0,W.color,W.tone),value:$(H.get(W.key)??0)}]})}),
|
|
9
|
-
/* @__PURE__ */d(e,{caption:b.sankey(f.length,k.length),head:[b.tableFrom,b.tableTo,b.value],rows:k.map(e=>[e.from,e.to,$(e.value)])})]})}export{f as SankeyChart};
|
package/dist/chunk-HLGE6TVE.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{AccessibleTable as e}from"./chunk-X3II54HU.js";import{arcPath as t}from"./chunk-VFC6QUEN.js";import{useHighlight as r}from"./chunk-CNYAHYE6.js";import{ChartTooltip as l}from"./chunk-P5BOTIJU.js";import{CHART_INK as a,resolveSeriesColor as n}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as o}from"./chunk-KKZZAK76.js";import{formatPlain as h,formatPercent as c}from"./chunk-C3QOHMR6.js";import{useState as u}from"react";import{jsx as s,jsxs as d}from"react/jsx-runtime";function m(e,t,r,l,a,n,i,o){if(l>=8)return;const h=e.reduce((e,t)=>e+p(t,8-l),0);if(h<=0)return;let c=t;e.forEach((e,t)=>{const u=p(e,8-l),s=u/h*r,d=`${i}/${e.key}`,f=0===l?t:a,b=0===l?e.key:n;o.push({id:d,label:e.label,value:u,depth:l,start:c,end:c+s,branch:f,branchKey:b}),e.children?.length&&m(e.children,c,s,l+1,f,b,d,o),c+=s})}function p(e,t){return t>0&&e.children?.length?e.children.reduce((e,r)=>e+p(r,t-1),0):Math.max(0,e.value??0)}function f({nodes:p,size:f=320,innerRadius:b=44,ringGap:v=2,formatValue:k,centerLabel:x,className:g,emptyLabel:y}){const M=i().charts,$=o(),j=k??(e=>h(e,$)),I=y??M.nothingToBreakDown,[N,w]=u(null),{highlighted:K}=r(),A=[];if(m(p,-Math.PI/2,2*Math.PI,0,0,"","",A),0===A.length)/* @__PURE__ */return s("p",{className:`text-sm text-gray-500 ${g??""}`,children:I});const C=Math.max(...A.map(e=>e.depth))+1,E=f/2,L=f/2,U=(f/2-8-b)/C,z=A.filter(e=>0===e.depth).reduce((e,t)=>e+t.value,0),B=e=>`color-mix(in oklab, ${n(e.branch)} ${Math.max(16,100-24*e.depth).toFixed(0)}%, ${a.surface})`,F=e=>null!==N?e.id===N:null===K||e.branchKey===K,H=N?A.find(e=>e.id===N):void 0,O=e=>c(e.value/z*100,1,$);/* @__PURE__ */
|
|
2
|
-
return d("div",{className:`relative ${g??""}`,children:[
|
|
3
|
-
/* @__PURE__ */d("svg",{width:"100%",height:f,viewBox:`0 0 ${f} ${f}`,role:"img","aria-label":M.sunburst(j(z),C),onMouseLeave:()=>w(null),children:[A.map(e=>/* @__PURE__ */s("path",{d:t(E,L,b+e.depth*U+v/2,b+(e.depth+1)*U-v/2,e.start,e.end),fill:B(e),fillOpacity:F(e)?1:.45,stroke:a.surface,strokeWidth:1,onMouseEnter:()=>w(e.id)},e.id)),x&&/* @__PURE__ */s("text",{x:E,y:L+5,textAnchor:"middle",fontSize:16,fontWeight:600,fill:a.label,children:x})]}),H&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(l,{title:H.label,rows:[{key:"value",label:M.value,color:B(H),value:j(H.value)},{key:"share",label:M.share,color:a.muted,value:O(H)}]})}),
|
|
4
|
-
/* @__PURE__ */s(e,{caption:M.sunburst(j(z),C),head:[M.tableLevel,M.tableItem,M.value,M.share],rows:A.map(e=>[e.depth+1,e.label,j(e.value),O(e)])})]})}export{f as SunburstChart};
|
package/dist/chunk-HMZLRXLA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{iconButtonClasses as e}from"./chunk-K7U4RWXJ.js";import{isAriaDisabled as r,swallowPress as a,describedByWith as i,OffWithReason as s}from"./chunk-4TL3MRRE.js";import{forwardRef as d,useId as n}from"react";import{jsx as o}from"react/jsx-runtime";var t=d(function({children:d,variant:t="ghost",size:c="md",type:l="button",className:m="",pressed:b,disabledReason:p,ink:u,disabled:f,onClick:h,"aria-disabled":k,"aria-describedby":v,...y},R){const j=n(),N=(Boolean(f)||r(k))&&null!=p&&""!==p,x=N||r(k),z=/* @__PURE__ */o("button",{ref:R,type:l,className:e({variant:t,size:c,pressed:b??(!0===y["aria-pressed"]||"true"===y["aria-pressed"]),ink:u,className:m}),...y,disabled:N?void 0:f,"aria-disabled":!!x||k,"aria-describedby":i(v,N?j:void 0),onClick:x?a:h,children:d});return N?/* @__PURE__ */o(s,{reason:p,id:j,children:z}):z});export{t as IconButton_default};
|
package/dist/chunk-JH4W3R4Q.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{ChartTooltip as e}from"./chunk-P5BOTIJU.js";import{usePlotWidth as t}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as l,CHART_INK as r}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as n}from"./chunk-TWVUQUUD.js";import{useShellStrings as i,useShellLocale as a}from"./chunk-KKZZAK76.js";import{formatPlain as o}from"./chunk-C3QOHMR6.js";import{useRef as h,useId as c,useState as s,useEffect as m}from"react";import{jsx as f,jsxs as u}from"react/jsx-runtime";function x({rows:x,columns:d,cells:p,height:M,width:g,color:y,max:v,formatValue:$,label:b,className:k,emptyLabel:w,cellGap:A=2,cellRadius:N=2}){const j=i().charts,U=a(),z=$??(e=>o(e,U)),C=b??j.intensity,D=w??j.noActivity,F=h(null),K=t(F),R=g??K,S=c(),[Z,B]=s(null);if(m(()=>{if(null!==Z)return n(e=>"Escape"===e.key&&(B(null),!0))},[Z]),0===x.length||0===d.length)/* @__PURE__ */
|
|
2
|
-
return f("div",{className:k,ref:F,children:/* @__PURE__ */f("p",{className:"py-8 text-center text-sm text-gray-500",children:D})});const L=y??l(0),T=v??Math.max(1,...p.flat().filter(Number.isFinite)),V=96,E=26*x.length,G=M??E+26+26,I=Math.max(2,(Math.max(97,R)-V)/d.length),O=e=>{const t=T>0?Math.max(0,Math.min(1,e/T)):0;return`color-mix(in oklab, ${L} ${(8+92*t).toFixed(1)}%, ${r.surface})`};/* @__PURE__ */
|
|
3
|
-
return u("div",{className:`relative ${k??""}`,ref:F,children:[
|
|
4
|
-
/* @__PURE__ */u("svg",{width:"100%",height:G,viewBox:`0 0 ${R} ${G}`,role:"img","aria-label":j.heatmap(C,x.length,d.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>B(null),onBlur:()=>B(null),onKeyDown:e=>{const t="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0,l="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;0===t&&0===l||(e.preventDefault(),B(e=>({r:Math.min(x.length-1,Math.max(0,(e?.r??0)+t)),c:Math.min(d.length-1,Math.max(0,(e?.c??0)+l))})))},children:[
|
|
5
|
-
/* @__PURE__ */f("defs",{children:/* @__PURE__ */u("linearGradient",{id:S,x1:"0",x2:"1",children:[
|
|
6
|
-
/* @__PURE__ */f("stop",{offset:"0",stopColor:O(0)}),
|
|
7
|
-
/* @__PURE__ */f("stop",{offset:"1",stopColor:O(T)})]})}),x.map((e,t)=>/* @__PURE__ */f("text",{x:86,y:26*t+13+4,textAnchor:"end",fontSize:11,fill:r.label,children:e},`r${t}`)),x.map((e,t)=>d.map((l,r)=>{const n=p[t]?.[r]??0,i=Z&&(Z.r!==t||Z.c!==r);/* @__PURE__ */
|
|
8
|
-
return f("rect",{x:V+r*I+A/2,y:26*t+A/2,width:Math.max(1,I-A),height:26-A,rx:N,fill:O(n),opacity:i?.55:1,onMouseEnter:()=>B({r:t,c:r}),children:/* @__PURE__ */f("title",{children:`${e} · ${l}: ${z(n)}`})},`${t}-${r}`)})),d.map((e,t)=>t%Math.max(1,Math.ceil(d.length/Math.max(1,Math.floor((R-V)/56))))===0?/* @__PURE__ */f("text",{x:V+t*I+I/2,y:E+15,textAnchor:"middle",fontSize:11,fill:r.label,children:e},`c${t}`):null),
|
|
9
|
-
/* @__PURE__ */f("rect",{x:V,y:E+26,width:Math.min(180,Math.max(40,R-V)),height:8,rx:4,fill:`url(#${S})`}),
|
|
10
|
-
/* @__PURE__ */f("text",{x:V,y:E+48,fontSize:11,fill:r.label,children:"0"}),
|
|
11
|
-
/* @__PURE__ */f("text",{x:V+Math.min(180,Math.max(40,R-V)),y:E+48,textAnchor:"end",fontSize:11,fill:r.label,style:{fontVariantNumeric:"tabular-nums"},children:z(T)})]}),Z&&/* @__PURE__ */f("div",{className:"pointer-events-none absolute top-1 right-1 z-10",children:/* @__PURE__ */f(e,{title:`${x[Z.r]} · ${d[Z.c]}`,rows:[{key:"v",label:C,color:L,value:null==p[Z.r]?.[Z.c]?void 0:z(p[Z.r][Z.c])}]})})]})}export{x as HeatmapChart};
|
package/dist/chunk-KKZZAK76.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{formatPlain as e,formatFixed as o,formatGrouped as t,formatPercent as a}from"./chunk-C3QOHMR6.js";import{createContext as i,useContext as n,useMemo as r,useEffect as s}from"react";import{jsx as l}from"react/jsx-runtime";function d(i){const n=o=>e(o,i),r=e=>t(e,i),s=(e,t)=>o(e,t,i),l=(e,o)=>a(e,o,i);return{window:{minimize:"Minimize",restore:"Restore",maximize:"Maximize",windowed:"Windowed",pinOnTop:"Pin on top",unpin:"Unpin from top",close:"Close",windowSuffix:"window",prev:"Prev",next:"Next",snapLayouts:"Snap layouts",snapLeft:"Snap left half",snapRight:"Snap right half",snapTopLeft:"Snap top-left quarter",snapTopRight:"Snap top-right quarter",snapBottomLeft:"Snap bottom-left quarter",snapBottomRight:"Snap bottom-right quarter"},taskbar:{closeWindow:"Close window",offscreenHint:"This window is off screen — click to bring it back",offscreenDot:"Off screen — click to bring this window back",expose:"Exposé — show all open windows as thumbnails",addToDesktop:"Add to desktop",removeFromDesktop:"Remove from desktop",minimizeAllWindows:"Minimize all",restoreAllWindows:"Restore all",closeAllWindows:"Close all"},logout:{goodbye:"Goodbye",seeYou:"See you next time"},about:{aboutPrefix:"About",thisApp:"this app",openSourceLicenses:"Open Source Licenses",whatsNew:"What's New",noChangelog:"No changelog available."},table:{empty:"Nothing to show",loading:"Loading",selectAll:"Select all rows",selectRow:"Select row"},select:{none:"— None —",noMatches:"No matches",allSelected:"All options selected",clear:"Clear selection",clearAll:"Clear all",changed:"Changed",selectedCount:e=>`${n(e)} selected`,remove:"Remove"},notifications:{title:"Notifications",markAllRead:"Mark all read",dnd:"Do not disturb",dndOn:"Do not disturb is on",caughtUp:"All caught up",empty:"No notifications yet",viewAll:"View all notifications",byActor:e=>`by ${e}`,cardLabel:"Notification",dismiss:"Dismiss notification"},form:{errorSummaryTitle:"There is a problem"},help:{title:"Help",searchPlaceholder:"Search help…",empty:"No help articles yet.",noResults:"No articles match your search.",loading:"Loading",pickArticle:"Pick a help article from the left.",noBody:"This article has no body yet.",draft:"Draft",newArticle:"+ New",edit:"Edit"},update:{available:"A new version is available.",refreshNow:"Refresh now"},pageTabs:{label:"Open pages",close:"Close",favorite:"Favorite",closeOthers:"Close other tabs",closeRight:"Close tabs to the right",closeAll:"Close all tabs",unsaved:"Unsaved changes",copy:e=>`Copy ${e}`,copied:"Copied",tabMenu:"Window menu",groupToggle:(e,o)=>`${e}: ${n(o)} ${1===o?"tab":"tabs"}`,discardTitle:"Discard unsaved changes?",discardOne:"This page has changes that have not been saved. Close it anyway?",discardMany:"pages have changes that have not been saved. Close them anyway?",discardConfirm:"Discard and close",keepEditing:"Keep editing"},dialog:{close:"Close",cancel:"Cancel",ok:"OK",confirmTitle:"Confirm",destructiveTitle:"Confirm Action",destructiveCancel:"Dismiss",destructiveConfirm:"Delete",typeToConfirm:e=>`Type ${e} to confirm:`,promptTitle:"Enter a value"},calendar:{previousMonth:"Previous month",nextMonth:"Next month",previousYear:"Previous year",nextYear:"Next year",previousYears:"Previous years",nextYears:"Next years",monthPanel:"Choose a month",yearPanel:"Choose a year",chooseMonth:e=>`Choose a month, currently ${e}`,chooseYear:e=>`Choose a year, currently ${e}`},datePicker:{placeholder:"Select a date",dialog:"Choose a date",clear:"Clear",today:"Today",required:"Required"},dateRange:{placeholder:"Date Range",clearRange:"Clear date range",dialog:"Date range",from:"From",to:"To",start:"Start",end:"End",fromOnly:e=>`From ${e}`,toOnly:e=>`To ${e}`,range:(e,o)=>`${e} to ${o}`,required:"Required",last2Weeks:"Last 2 Weeks",lastMonth:"Last Month",last3Months:"Last 3 Months",last6Months:"Last 6 Months",last12Months:"Last 12 Months",lastHeading:"Last",last2WeeksShort:"2 weeks",lastMonthShort:"Month",last3MonthsShort:"3 months",last6MonthsShort:"6 months",last12MonthsShort:"12 months",custom:"Custom",clear:"Clear",cancel:"Cancel",apply:"Apply"},pagination:{label:"Pagination",first:"First page",previous:"Previous page",next:"Next page",last:"Last page"},list:{selected:e=>`${n(e)} selected`,selectedNotShown:(e,o)=>`${n(e)} selected, ${n(o)} not shown`,allLoaded:(e,o)=>`All ${r(e)} ${o} loaded`,count:(e,o)=>`${r(e)} ${o}`,loadedOf:(e,o,t)=>`${r(e)} of ${r(o)} ${t}`,loadingMore:"Loading more",loadError:"Couldn't load this list",loadErrorMessage:"Something went wrong fetching these records. Check your connection and try again.",retry:"Try again"},kanban:{loading:"Loading",empty:"No items.",dropHere:"Drop here",addItem:"Add item"},files:{attach:"Attach files",drop:"Drop files to attach",remove:e=>`Remove ${e}`,chooseMany:"Choose files",chooseOne:"Choose a file",dragMany:"or drag them here",dragOne:"or drag it here",notAccepted:(e,o)=>`${e} is not an accepted file type${o?` (${o})`:""}`,tooLarge:(e,o,t)=>`${e} is ${o} — the limit is ${t}`,tooMany:(e,o)=>`${e} was not added — ${n(o)} ${1===o?"file":"files"} is the limit`,bytes:e=>`${n(e)} B`,kilobytes:e=>`${n(e)} KB`,megabytes:e=>`${s(e,1)} MB`},media:{uploadImage:"Upload an image",uploadVideo:"Upload a video",uploadFile:"Upload a file",upload:"Upload media",cta:"Choose from library or upload",replace:"Replace",remove:"Remove",uploading:"Uploading",choosing:"Choosing",pickFailed:"The library could not be opened. Try again.",cover:"Cover",add:"Add",addMedia:"Add media",empty:"No media.",removeItem:e=>`Remove ${e}`,reorder:(e,o,t)=>`${e}, item ${n(o)} of ${n(t)}. Use arrow keys to reorder.`,image:"Image",video:"Video",changeImage:"Change image",changeVideo:"Change video",focus:"Image focus",usedIn:e=>`Used in ${n(e)} ${1===e?"place":"places"}`,notUsed:"Not used anywhere",moveTo:(e,o)=>{const t="image"===o?"image":"video"===o?"video":"file";return`Move ${n(e)} ${t}${1===e?"":"s"} to`},moveNowhere:"There is no folder to move to"},lightbox:{label:"Preview",close:"Close preview",previous:"Previous",next:"Next",counter:(e,o)=>`${n(e)} / ${n(o)}`,openOriginal:"Open original",openFile:"Open file"},brandAsset:{save:e=>`Save ${e}`,remove:e=>`Remove ${e}`,discard:"Discard change",saveFailed:e=>`Could not save ${e}.`,removeFailed:e=>`Could not remove ${e}.`,region:(e,o)=>`${e} for ${o}`,usedFor:e=>`Used for ${e}.`,previews:e=>`${e} previews`,preview:"Preview",alt:(e,o)=>`${e} ${o}`},copy:{copy:"Copy",copyLabel:e=>`Copy ${e}`,copied:"Copied",copyValue:e=>`Copy ${e}`,copiedValue:"Copied!",copiedLabel:e=>`${e} copied`,failed:"Could not copy to the clipboard"},keypad:{backspace:"Backspace",enter:"Enter"},banner:{dismiss:"Dismiss"},transfer:{uploading:"Uploading",error:"Error",retry:"Retry",dismiss:"Dismiss",cancel:"Cancel",cancelVerb:e=>`Cancel ${e}`},badge:{remove:"Remove",removeItem:e=>`Remove ${e}`},breadcrumbs:{label:"Breadcrumb",hidden:"Hidden crumbs"},emptyState:{message:"Nothing here yet."},errors:{notFound:"Page not found",notFoundBody:"The page you're looking for doesn't exist or was moved.",forbidden:"Access denied",forbiddenBody:"You don't have permission to view this page.",noAccess:"You don't have access to this",serverError:"Something went wrong",serverErrorBody:"An unexpected error occurred. Please try again.",retry:"Try again",details:"Error details"},search:{placeholder:"Search...",escBadge:"ESC",searching:"Searching",noResults:"No results found.",minChars:e=>`Type at least ${n(e)} characters to search...`,navigate:"navigate",open:"open",close:"close",enterKey:"Enter",escKey:"Esc",recent:"Recent",favorites:"Favorites",actions:"Actions",listLabel:"Search results",groupCount:(e,o)=>`${n(e)}${o?"+":""}`,groupLabel:(e,o,t)=>`${e}, ${n(o)}${t?"+":""}`,seeAll:e=>`See all ${e}`,searchFailed:"Search failed — check your connection and try again.",partialFailure:"Some results could not be loaded.",tabKey:"Tab",nextGroup:"next group"},grid:{selectAll:"Select all",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",deleteRow:e=>`Delete row ${e}`,insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteColumn:e=>`Delete column ${e}`,resize:"Drag to resize · double-click to auto-fit",fill:"Drag to fill"},sidebar:{resize:"Drag to resize · double-click to reset",sections:"Sections",closeSections:"Close sections"},resizeHandle:{label:"Resize panel",hint:"Drag to resize · double-click to reset"},number:{increase:"Increase",decrease:"Decrease"},slider:{value:e=>`${e} value`},accordion:{changed:e=>`${e} changed`},settingView:{auto:"auto",edited:"Changed in this view",resetName:e=>`Reset ${e}`,inheritName:e=>`Inherit parent layout for ${e}`,inheritParentLayout:"Inherit parent layout",backToDefault:"back to the site default",backToAuto:"back to auto",backTo:e=>`back to ${e}`,tip:(e,o)=>`${e} (${o})`},displayChips:{shown:"Shown",hidden:"Hidden",shownHint:"Shown · click to hide",hiddenHint:"Hidden · click to show"},corners:{radius:"Corner radius",unit:"px",radiusMark:"R"},iconPicker:{button:(e,o)=>`${e}: ${o}`},iconNames:{none:"None","arrow-right":"Arrow","arrow-long-right":"Long arrow","arrow-up-right":"Arrow up right","chevron-right":"Chevron",external:"External",cart:"Cart",bag:"Bag",tag:"Tag",email:"Email",location:"Location",play:"Play",download:"Download",search:"Search",car:"Car"},widths:{column:e=>`Column ${e}`,divider:(e,o)=>`Divider between column ${e} and column ${o}`,dividerValue:(e,o,t,a)=>`Column ${e} ${l(o,0)}, column ${t} ${l(a,0)}`,dragHint:"Drag to change the widths",hint:(e,o)=>`Type a width or drag a line. No column goes below ${l(o,0)}.`,reset:"Reset to equal"},color:{swatch:(e,o)=>`${e}: ${o}`,none:"None",panel:e=>`${e} picker`,square:"Saturation and brightness",squareValue:(e,o)=>`Saturation ${l(e,0)}, brightness ${l(o,0)}`,hue:"Hue",opacity:e=>`${e} opacity`,hex:e=>`${e} hex code`,presets:"Presets",clear:"No color"},imageFocus:{picture:(e,o)=>`${e}: ${o}`,hint:"Drag the dot on the picture, or move it with the arrow keys. Shift moves it further.",noImage:"Choose an image first. There is nothing to focus yet."},link:{linkType:"Link type",address:"Link address",addressPlaceholder:"Link (e.g. /wheels or https://…)",unsafe:"Use a web address (https://…), a page on this site (/…), mailto: or tel:.",unavailable:e=>`${e} (unavailable)`,filter:"Filter",noFilter:"No filter (all products)",value:"Value",filterHint:"Filters come from Product Types. Only values in this site's catalogue are listed.",title:"Link",apply:"Apply",cancel:"Cancel",remove:"Remove",addLink:"Add a link",text:e=>`${e} text`,linkOf:(e,o)=>`${e} link: ${o||"none"}`},textToolbar:{formatting:"Formatting",bold:"Bold",italic:"Italic",underline:"Underline",strike:"Strikethrough",color:"Color",link:"Link",sup:"Superscript",sub:"Subscript",code:"Code",alignment:"Alignment",alignLeft:"Left",alignCenter:"Center",alignRight:"Right",alignJustify:"Justify",bullet:"Bulleted list",number:"Numbered list",quote:"Quote",letterCase:"Letter case",caseNone:"As typed",caseUpper:"Uppercase",caseLower:"Lowercase"},tree:{empty:"Nothing here yet",dropHere:"Drop here",dragHint:"Drag to move",moveHint:"Alt+Arrow Up or Alt+Arrow Down moves it",insertHere:"Insert here"},layout:{desktop:"Desktop",sidebar:"Sidebar",switchToDesktop:"Switch to Desktop",switchToSidebar:"Switch to Sidebar",collapseSidebar:"Collapse sidebar",expandSidebar:"Expand sidebar",goHome:"Go to Home",resizeSidebar:"Resize sidebar",search:"Search…",navLabel:"Main menu",openWindows:"Open windows",favoriteApps:"Favorite apps",openFavorite:e=>`Open ${e}`,removeFavorite:"Remove from Favorites",pageResult:"Page",accountMenu:e=>`Account menu for ${e}`,profile:"My Profile",notifications:"Notifications",reportIssue:"Suggestion or Bug",signOut:"Sign Out",signOutTitle:"Sign Out",signOutMessage:"Do you want to log out? All windows will reopen when you log back in.",openMenu:"Open menu",closeMenu:"Close menu",openTabs:"Open tabs",getTheApp:e=>`Get the ${e} app`,openApp:"Open",dismiss:"Dismiss",deviceUsesSidebar:"This device always uses the Sidebar layout. Your choice still applies when you sign in on a computer.",largerScreensOnly:"Larger screens only",usedOnThisDevice:"Used on this device",back:"Back"},markdown:{screenshot:"Screenshot"},severity:{success:"ok",warning:"warning",danger:"critical",unrecognised:e=>`unrecognised severity ${e}`},meter:{noData:"no data",warningAt:e=>`warning ≥ ${n(e)}`,criticalAt:e=>`critical ≥ ${n(e)}`,legendWarning:"warning",legendCritical:"critical",noReading:"no reading",noBudget:"no budget",ofBudget:e=>`${e} of budget`,budget:"budget",pace:"expected by now",hoursMinutes:(e,o)=>`${n(e)}h ${n(o)}m`,minutesSeconds:(e,o)=>`${n(e)}m ${n(o)}s`,seconds:e=>`${n(e)}s`},charts:{showTable:"Show the data as a table",loading:"Loading chart data",noData:"No data in this window.",windowStart:"Window start",windowEnd:"Window end",window:(e,o,t)=>`Time window — showing ${e} to ${o} of ${n(t)} intervals`,overIntervals:(e,o)=>`${e.join(", ")} over ${n(o)} intervals`,acrossCategories:(e,o)=>`${e.join(", ")} across ${n(o)} categories`,acrossMeasures:(e,o)=>`${e.join(", ")} across ${n(o)} measures`,breakdown:(e,o)=>`Breakdown of ${e} across ${n(o)} segments`,funnel:(e,o,t)=>`Funnel of ${n(e)} stages, ${o} down to ${t}`,radialTrack:e=>`${n(e)} categories, as concentric proportions`,radialCycle:e=>`${n(e)} categories, around a cycle`,tableFrom:"From",tableTo:"To",tableItem:"Item",tableLevel:"Level",tableSeries:"Series",inBucket:e=>`${e} in this bucket`,inCategory:e=>`${e} in this category`,value:"Value",share:"Share",count:"Count",flow:"Flow",totalFlow:"Total flow",throughput:"Throughput",open:"Open",high:"High",low:"Low",close:"Close",maximum:"Maximum",q3:"Q3",median:"Median",q1:"Q1",minimum:"Minimum",distribution:"Distribution",fiveNumber:(e,o)=>`${e}: five-number summary for ${n(o)} categories`,outliers:e=>`${n(e)} outlier${e>1?"s":""} beyond the whiskers`,price:"Price",ohlc:(e,o)=>`${e}: open, high, low and close across ${n(o)} periods`,closedAbove:"Closed above its open",closedBelow:"Closed below its open",noFlows:"No flows to chart.",chord:e=>`Flows between ${n(e)} participants`,chordFolded:e=>`+${n(e)} more in Other`,noStages:"No stages to chart.",ofFirstStage:"Of first stage",droppedHere:"Dropped here",intensity:"Intensity",noActivity:"No activity in this window.",heatmap:(e,o,t)=>`${e} across ${n(o)} rows and ${n(t)} columns`,countAxis:"count",histogram:(e,o,t)=>`${e}: ${n(o)} bins over ${n(t)} observations`,observations:"Observations",notEnough:"Not enough eligible requests to judge.",objectiveMet:e=>`objective ${e} met`,objectiveMissed:e=>`objective ${e} missed`,nothingToPlot:"Nothing to plot.",nothingToCompare:"Nothing to compare.",other:"Other",nothingToBreakDown:"Nothing to break down.",range:"Range",rangeLabel:(e,o)=>`${e}: low and high across ${n(o)} categories`,nothingToRank:"Nothing to rank in this window.",emphasised:"(emphasised)",sankey:(e,o)=>`Flow between ${n(e)} nodes over ${n(o)} links`,noObservations:"No observations in this window.",xAxis:"x",yAxis:"y",size:"Size",scatter:(e,o,t)=>`${e.join(", ")}: ${o} against ${t}`,outsideRange:e=>`${n(e)} ${1===e?"point":"points"} outside the shown range`,waterfall:(e,o,t)=>`Waterfall of ${n(e)} steps from ${o} to ${t}`,balance:"Balance",increase:"Increase",decrease:"Decrease",runningTotal:"Running total",sunburst:(e,o)=>`Hierarchy of ${e} across ${n(o)} levels`,treemap:e=>`Treemap of ${n(e)} items`,trendUp:"up",trendDown:"down",trendFlat:"flat"},timeline:{days:e=>`${r(e)} days`,daysToToday:e=>`${r(e)} days to today`,notReached:"Not yet reached",next:"Next",more:e=>`+${n(e)} more`,today:"Today",todayTitle:e=>`Today — ${e}`,open:e=>`Open ${e}`,openButton:"Open",scrub:"Scrub the timeline",alsoToCome:e=>`Also to come: ${e.join(", ")}`,start:e=>`Start · ${e}`,events:(e,o)=>`${n(e)} events · ${o.join(", ")}`,started:e=>`started ${e}`,duration:e=>`${r(e)} day${1===e?"":"s"}`,reached:(e,o)=>`${n(e)} of ${n(o)} milestones`,milestones:e=>`${e} milestones`},production:{heading:"Production progress",start:"Start",estimated:"Estimated",estimatedCompletion:"Estimated completion",estDone:"Est. done",play:"Play",pause:"Pause",playTitle:"Play the timeline, report by report",backTo:e=>`Back to ${e}`,showing:e=>`Showing ${e}`,overall:e=>`${l(e,0)} overall`,inStock:e=>`${r(e)} pc in stock`,noReport:"No production report filed yet",leadTime:e=>`${r(e)} day${1===e?"":"s"} lead time`,report:"Production report",shipment:"Shipment",inspection:"Inspection",invoice:"Invoice",scrub:"Scrub the production timeline",label:(e,o)=>`Production reports and events, ${e} to ${o}`},containers:{items:e=>`${n(e)} items`,pieces:e=>`${n(e)} pcs`,split:(e,o)=>`(${n(e)} instr / ${n(o)} loaded)`,added:(e,o)=>`${n(e)} new (${n(o)} pcs)`,fill:(e,o)=>`${s(e,1)} / ${n(o)} m³`,total:"Total:",instructed:e=>`${s(e,2)} m³ instruction`,loaded:e=>`${s(e,2)} m³ loaded`,volume:e=>`${s(e,2)} m³`,noVolume:"Volume: N/A (no volume data for these part numbers)"},toast:{notification:"Notification",undo:"Undo"},map:{failed:"The map could not be drawn here. The list has everything it shows.",approximate:e=>`${e}, approximate location`,approximateTitle:e=>`${e} (approximate)`,places:e=>1===e?"place":"places",group:(e,o)=>`${n(e)} ${o} here`,stops:e=>`Stops ${e}`,closeBy:(e,o)=>`${n(e)} more ${o} close by, drawn when the map is closer`,spread:"Press to see them apart",cycle:"They stand on one spot: press for the next of them",fullScreen:"Full screen",leaveFullScreen:"Leave full screen",chosen:e=>`${e}, chosen on the map`,closeCard:"Close",openRecord:"Open"},pdf:{previousPage:"Previous page",nextPage:"Next page",pageOf:(e,o)=>`${n(e)} / ${n(o)}`,zoomOut:"Zoom out",zoomIn:"Zoom in",zoom:"Zoom",fitWidth:"Fit width",fitPage:"Fit page",fit:"Fit",fitHint:"Fit to the pane: follows its size until you zoom by hand",print:"Print",download:"Download",email:"Email",loading:"Loading PDF",loadFailed:"Failed to load PDF",allowPopups:"Allow popups to print"},loading:{label:"Loading"},language:{title:"Language",description:"The language of menus, labels and messages.",reloadNote:"The page reloads when you change the language."},entityList:{open:"Open",copy:"Copy",copyColumn:e=>`Copy ${e}`,copyRows:e=>1===e?"Copy row":`Copy ${n(e)} rows`,exportSelected:"Export selected to CSV",selectAll:"Select all",selectAllLoaded:e=>`Select all ${n(e)} loaded`,clearSelection:"Clear selection",refresh:"Refresh",copiedText:"Text",copiedRows:e=>1===e?"Row":`${n(e)} rows`,exported:e=>`Exported ${n(e)} ${1===e?"row":"rows"}.`,exportTruncated:(e,o)=>`Exported ${n(e)} of ${n(o)} rows. The server capped this export, so the file is incomplete.`,exportTruncatedUnknown:e=>`Exported only some of the ${n(e)} rows. The server capped this export, so the file is incomplete.`,exportFailed:"CSV export failed."},columns:{choose:"Choose columns",heading:"Columns",reset:"Reset",saveDefault:"Save as default for all users",savedDefault:"Saved as default",select:"Select",selectDone:"Done",showSelection:"Show selection column",hideSelection:"Hide selection column"},record:{loading:"Loading record",signInRequired:"Sign in required",signInBody:"Your session may have expired. Sign in again to open this record.",notFound:"Record not found",loadFailed:"Couldn't load record",checkConnection:"Check your connection and try again.",rejected:"The server rejected this request.",retry:"Try again"},password:{current:"Current Password",newPassword:"New Password",confirm:"Confirm Password",submit:"Change Password",submitting:"Changing",done:"Done",currentRequired:"Current password is required.",tooShort:e=>`New password must be at least ${n(e)} characters.`,mismatch:"Passwords do not match.",failed:"Failed to change password.",changed:"Your password has been changed successfully."},pdfAction:{label:"PDF",loading:"Loading",preview:"Preview",download:"Download",email:"Send by Email",downloaded:e=>`${e} downloaded.`,tookTooLong:e=>`${e} took too long to load. Please try again.`,previewLoading:"LOADING PDF",previewTookTooLong:"This document took too long to load. Close this window and try again.",previewFailed:"Failed to load PDF."},undo:{undo:"Undo",redo:"Redo",undoStep:(e,o)=>`Undo ${e} (${o})`,redoStep:(e,o)=>`Redo ${e} (${o})`,nothingToUndo:"Nothing to undo",nothingToRedo:"Nothing to redo"},sounds:{title:"Sounds",enable:"Sound effects",autosave:"Changes are saved automatically",choice:(e,o)=>`${e} — ${o}`,packClassic:"Classic",packMinimal:"Minimal",packRetro:"Retro",packSoft:"Soft",packArcade:"Arcade",packSilent:"Silent",eventClick:"Click",eventSuccess:"Success",eventError:"Error",eventNotification:"Notification",eventStartup:"Startup",eventTimerDone:"Timer",eventLogout:"Logout"},serverStatus:{connected:"Connected",disconnected:"Disconnected",checking:"Checking",lastOkTitle:(e,o)=>`${e} · last ok ${o}`,details:"Server connection details",lastPoll:e=>`Last poll ${e}.`,lastFailure:e=>`Last failure ${e}.`,firstPoll:"First poll in flight",server:"Server",protocol:"Protocol",browser:"Browser",online:"Online",offline:"Offline",lastOk:"Last OK",lastFail:"Last fail",latency:"Latency",poll:"Poll",pollEvery:e=>`every ${n(e)} s`,session:"Session",user:"User",notSignedIn:"Not signed in",role:"Role",build:"Build",app:"App",userAgent:"UA",pingHint:"Click ↻ to ping now",refresh:"Refresh"},bulkImport:{description:"Paste from spreadsheets, type directly, or upload a CSV. Rows don't need to be in order — they'll be matched. Values not in the list will be added to the end. Fields left blank will not be affected.",lines:e=>`${n(e)} lines`,total:(e,o)=>`${e}: ${o}`,clear:"Clear",upload:"Upload CSV",importLines:e=>`Import ${n(e)} Lines`,importing:"Importing",importFailed:"Import failed.",enterAtLeastOne:e=>`Enter at least one ${e||"value"}.`,allSkipped:"All rows skipped.",cancel:"Cancel",mapTitle:"Map CSV columns to fields",skip:"— Skip —",columnOption:(e,o)=>`Column ${n(e)} (e.g. ${o})`,rowsDetected:e=>`${n(e)} rows detected`,confirmMapping:"Confirm Mapping",duplicatesTitle:"Duplicate entries detected",duplicatesFound:e=>`${n(e)} ${1===e?"value appears":"values appear"} more than once in your import. Choose how to handle each before proceeding.`,occurrences:e=>`${n(e)} occurrences`,keepFirst:"Keep first",keepLast:"Keep last",keepAll:"Keep all",skipAll:"Skip all",keptDropped:(e,o)=>`${n(e)} kept · ${n(o)} dropped`,proceed:"Proceed",duplicatesMerged:e=>`${n(e)} ${1===e?"value appeared":"values appeared"} more than once. Each is merged into a single line with its quantity summed — review before proceeding.`,mergedFrom:"Merged from",mergedRows:e=>`${n(e)} rows`,mergeSummary:(e,o)=>`${n(e)} duplicate rows → ${n(o)} merged line${1===o?"":"s"}`},preview:{windowTitle:e=>`${e} - Preview`,untitled:"Untitled",open:"Open",formats:"PDF · DXF · 3D · Images",dropHere:e=>`Drop a file here, or click ${e}.`,supportedFormats:"Supported formats",formatPdf:"multi-page document viewer",formatDxf:e=>`vector CAD drawings (optional ${e} peer dep)`,format3d:e=>`3D models (optional ${e} peer dep)`,formatImage:"raster images",dwgNote:"DWG files need to be converted to PDF or DXF first (server-side).",dropToOpen:"Drop to open",dwgUnsupported:"DWG files need server-side conversion. Convert to PDF or DXF first.",unsupportedType:e=>`Unsupported file type: .${e||"unknown"}`,converting:"Converting file",download:"Download",email:"Email",howToNavigate:"How to navigate",stopMeasuring:"Stop measuring (Esc)",scrollToZoom:"Scroll to zoom",closePanel:"Close",annotate:"Annotate",annotateHint:"Annotate this image",view:"View",viewHint:"Back to viewer",copy:"Copy",save:"Save",imageFailed:"Failed to load image.",downloadFailed:"Download failed — couldn't reach the file."},drawing:{loading:"Loading drawing",notInstalled:"dxf-viewer is not installed in this app.",renderFailed:"Failed to render DXF.",layers:"Layers",layersHint:"Toggle layer visibility",allLayers:"All",noLayers:"None",measure:"Measure",measureHint:"Measure distance — click two points on the drawing, or type DI / DIM below",auto:"Auto",autoHint:"Auto — AutoCAD DIMLINEAR: measures ΔX or ΔY, whichever is larger between the two picks",horizontalHint:"Horizontal — distance along the X axis between two picks (AutoCAD DIMLINEAR horizontal)",verticalHint:"Vertical — distance along the Y axis between two picks (AutoCAD DIMLINEAR vertical)",point:"Point",pointHint:"Point — straight-line (Euclidean) distance between two picks (AutoCAD DIST)",fixX:"fix Δx",fixY:"fix Δy",fixHint:"Lock the second pick's axis coord to first pick + this value (mm). The reported measurement becomes the perpendicular distance.",clearFixed:"Clear fixed distance",horizontalDistance:e=>"Horizontal distance (Δx) between the two picked points"+(e?" — Auto resolved to the X axis":""),verticalDistance:e=>"Vertical distance (Δy) between the two picked points"+(e?" — Auto resolved to the Y axis":""),straightDistance:"Straight-line distance between the two picked points",fit:"Fit",fitHint:"Fit drawing to view",dragToPan:"Drag to pan",fitToReset:"Fit to reset",typeToMeasure:e=>`Type ${e} to measure`,commandPlaceholder:"Type a command — DI, DIM, H, V, Z, LA (? for help)",commandHelp:"Commands: DI distance · DIM/DLI linear dim · H / V force axis · <number> lock Δ · U undo pick · Z fit · LA layers · Esc exit",echoDistance:(e,o,t)=>`Distance = ${e} ΔX = ${o} ΔY = ${t}`,echoLinear:(e,o)=>`Linear dimension = ${e} (${o})`,echoLocked:(e,o,t,a)=>`${e} = ${o} with ${t} locked to ${a}`,axisLocked:(e,o)=>`${e} locked to ${o} — the label shows the perpendicular distance`,fixedCleared:"Fixed distance cleared.",fixedNeedsAxis:"Fixed distances apply in H or V mode — type H or V first.",echoDist:"DIST — click two points; straight-line distance (Esc to exit)",echoDimLinear:"DIMLINEAR — click two points; measures ΔX or ΔY, whichever is larger (H / V to force)",echoHorizontal:"Horizontal — ΔX between the two picks",echoVertical:"Vertical — ΔY between the two picks",echoAuto:"Auto (DIMLINEAR) — measures along the dominant axis of the two picks",measureOn:"Measure on — click two points.",measureOff:"Measure off.",pickRemoved:"Last pick removed.",zoomExtents:"Zoom extents.",layersToggled:"Layer panel toggled.",measurementCleared:"Measurement cleared.",readOnly:e=>`${e} is a drawing command — Preview is a read-only viewer. Measuring: DI, DIM, H, V (? for help)`,unknownCommand:e=>`Unknown command "${e}" — try DI, DIM, H, V, Z, LA (? for help)`,cancelled:"*Cancel*"},model:{loading:"Loading 3D model",stepNote:"STEP files load OpenCascade WASM (~5 MB) on first use.",notInstalled:"online-3d-viewer is not installed in this app. Add it to enable 3D file viewing.",loadFailed:"Failed to load 3D model.",rootNode:"Root",node:"Node",collapse:"Collapse",expand:"Expand",fitToView:"Fit to view",hide:"Hide",show:"Show",isometric:"ISO",isometricView:"Isometric view",top:"TOP",topView:"Top view",front:"FRT",frontView:"Front view",side:"SDE",sideView:"Side view",perspective:"Perspective",orthographic:"Orthographic",toPerspective:"Switch to perspective view",toOrthographic:"Switch to orthographic view",snapshot:"Save snapshot as PNG",measureHint:"Measure distance — click two points on the model",point:"Point",pointHint:"Point — measure straight-line distance between two picked points",perpendicularHint:"Perpendicular — pick two surfaces and measure the perpendicular gap between them",straightDistance:"Straight-line distance between the two picked points",perpendicularDistance:"Perpendicular distance between the two picked surfaces",meshesHint:"Toggle meshes panel",displayHint:"Toggle display panel",downloadOriginal:"Download original file",meshes:"Meshes",readingModel:"Reading model",noStructure:"No structure available",allVisible:"All visible",hiddenCount:e=>`${n(e)} hidden`,dragToRotate:"Drag to rotate",rightDragToPan:"Right-click drag to pan",display:"Model Display",backgroundColor:"Background Color",showEdges:"Show Edges",edgeColor:"Edge Color",edgeThreshold:"Edge Threshold",sectionView:"Section View",angle:"Angle",axis:"Axis",flipHint:"Flip section direction",flip:"flip →",flipped:"← flipped",position:"Position",resetDisplay:"Reset to Default"},annotator:{toolSelect:"Select / Move",toolDraw:"Pen / Draw",toolRect:"Rectangle",toolEllipse:"Ellipse",toolArrow:"Arrow",toolMosaic:"Mosaic",toolText:"Text",toolCrop:"Crop",weight:"Weight",radius:"Radius",size:"Size",padding:"Pad",fontSystem:"System",fontSerif:"Serif",fontMono:"Mono",fontCursive:"Cursive",bold:"Bold",boldLetter:"B",italic:"Italic",italicLetter:"I",underline:"Underline",underlineLetter:"U",border:"Border",borderColor:"Text-box border color",addBorder:"Add a border",removeBorder:"Remove border",fill:"Fill",fillColor:"Text-box background color",addFill:"Add a background fill",removeFill:"Remove fill",add:"Add",zoomOut:"Zoom out",zoomIn:"Zoom in",fit:"Fit",fitHint:"Fit to area",undo:"Undo",applyCrop:"Apply Crop",cancel:"Cancel",apply:"Apply",hintSelected:"Drag to move. Drag a corner to resize. Delete / Backspace removes. Click outside to deselect.",hintSelect:"Tap a shape to select. Double-click text to edit.",hintText:"Click to drop a text label.",hintCrop:"Drag a rectangle to set the crop region.",hintDraw:"Drag to draw freehand.",hintShape:"Drag on the image to draw.",textPlaceholder:"Type then Enter…",loadFailed:"Failed to load image",exportFailed:"Failed to export",clipboardUnsupported:"Clipboard images not supported in this browser",copyFailed:"Failed to copy",copied:"Copied to clipboard",copyRefused:"Copy failed (clipboard permission?)"},attachment:{fallbackName:"attachment",noLink:"This attachment has no download link.",spreadsheetFailed:"Could not open the spreadsheet — opening the file instead.",workbookUnavailable:"Spreadsheet preview is unavailable for this file type. Opening the file instead.",noViewer:"Opening this file outside the app — no viewer can show it here.",loading:"LOADING FILE",loadFailed:"Failed to load this file."},aboutApp:{title:e=>`About ${e}`,version:e=>`Version ${e}`,partOf:e=>`Part of the ${e} desktop environment`,shellVersion:e=>`shell v${e}`,spreadsheet:"Multi-sheet spreadsheet editor with CSV / TSV import and export.",notepad:"Color-coded notes with checklists, desktop stickies and entity autolinking.",documents:"Letter-page editor for Word documents and plain-text files — images, lists, alignment.",preview:"Viewer for PDF documents, images, DXF drawings and 3D models — CAD-style measuring with object snap and an AutoCAD-like command bar.",files:"Personal file manager with folders, uploads, quota, trash and desktop shortcut folders.",browser:"Minimal web browser with bookmarks, history and navigation bar."}}}var c=d(),p=/* @__PURE__ */new Map;var h=i(c),u=i(null),g=/* @__PURE__ */new Set;var m=c,w={};function f(){return m}function $({value:e=w,locale:o,children:t}){const a=n(u),i=r(()=>function(e){if(e)try{return Intl.getCanonicalLocales(e)[0]}catch{return void(g.has(e)||(g.add(e),console.error(`[efficient-shell] ShellStringsProvider: locale="${e}" is not a BCP 47 language tag, so it is ignored and numbers and dates keep their default formatting. Pass a tag such as "de-DE" or "ja".`)))}}(o),[o]),f=void 0===o?a?.locale:i,$=r(()=>{const o=function(e){if(!e)return c;let o=p.get(e);return o||(o=d(e),p.set(e,o)),o}(f),t={};for(const a of Object.keys(o))t[a]={...o[a],...e[a]??{}};return t},[e,f]),v=r(()=>({locale:f}),[f]),b=null!==a;return s(()=>{if(!b)return m=$,()=>{m===$&&(m=c)}},[$,b]),/* @__PURE__ */l(u.Provider,{value:v,children:/* @__PURE__ */l(h.Provider,{value:$,children:t})})}function v(){return n(h)}function b(){return n(u)?.locale}function y(e){const[o="",...t]=e("\0").split("\0");return[o,t.join("")]}export{c as DEFAULT_SHELL_STRINGS,$ as ShellStringsProvider,f as currentShellStrings,y as splitAround,b as useShellLocale,v as useShellStrings};
|
package/dist/chunk-KS3AQKHD.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{tooltipBesideBand as t}from"./chunk-MG7A3R75.js";import{niceAxis as e,niceMax as i,linearScale as r,axisGutter as n,bandScale as l}from"./chunk-2JWPNR2U.js";import{usePlotWidth as o}from"./chunk-MAFUXCPZ.js";import{CHART_INK as a}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as h}from"./chunk-TWVUQUUD.js";import{useShellStrings as s,useShellLocale as c}from"./chunk-KKZZAK76.js";import{formatPlain as m}from"./chunk-C3QOHMR6.js";import{useRef as d,useState as u,useId as f,useEffect as x}from"react";import{jsx as g,jsxs as p}from"react/jsx-runtime";function y({labels:y,values:v,height:b=220,width:k,bandPadding:M=.24,min:w,max:A,yTickCount:N=4,formatValue:$,yAxisLabel:j,xTickAnchor:R="center",children:E,overlay:U,tooltip:z,onSelect:C,ariaLabel:D,className:L,emptyLabel:P}){const F=s().charts,I=c(),K=$??(t=>m(t,I)),S=P??F.noData,T=d(null),V=o(T),W=k??V,[Z,B]=u(null),Q=f();if(x(()=>{if(null!==Z)return h(t=>"Escape"===t.key&&(B(null),!0))},[Z]),0===y.length||!v.some(Number.isFinite))/* @__PURE__ */
|
|
2
|
-
return g("div",{className:L,ref:T,children:/* @__PURE__ */g("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:b},children:S})});const G=v.filter(Number.isFinite),H=G.every(Number.isInteger),J=void 0===w&&void 0===A?e(Math.min(0,...G),Math.max(0,...G),{intervals:N+1,integer:H}):null,O=void 0!==w&&void 0===A?e(w,Math.max(w,...G),{intervals:N+1,integer:H,zero:!1}):null,X=J?J.lo:w??Math.min(0,...G),q=J?J.hi:O?O.hi:A??i(Math.max(...G,0)),Y=J?J.ticks:O?[X,...O.ticks.filter(t=>t>X)]:r([X,q],{from:0,to:1}).ticks(N+1),_={top:12,right:16,bottom:26,left:n(Y.map(K),48)+(j?10:0)},tt=_.left,et=Math.max(tt+1,W-_.right),it=_.top,rt=b-_.bottom,nt=r([X,q],{from:rt,to:it}),lt=l(y.length,{from:tt,to:et},M),ot=(et-tt)/Math.max(1,y.length),at=ot>=48,ht=at?1:Math.max(1,Math.ceil(y.length/Math.max(1,Math.floor(W/84)))),st=Math.max(2,Math.floor((ot-6)/6.6)),ct=t=>at&&t.length>st?`${t.slice(0,st-1).trimEnd()}…`:t;/* @__PURE__ */
|
|
3
|
-
return p("div",{className:`relative ${L??""}`,ref:T,children:[
|
|
4
|
-
/* @__PURE__ */p("svg",{width:"100%",height:b,viewBox:`0 0 ${W} ${b}`,role:"img","aria-label":D,tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>B(null),onBlur:()=>B(null),onKeyDown:t=>{if(C&&null!==Z&&("Enter"===t.key||" "===t.key))return t.preventDefault(),void C(Z);if("ArrowRight"!==t.key&&"ArrowLeft"!==t.key)return;t.preventDefault();const e="ArrowRight"===t.key?1:-1;B(t=>Math.min(y.length-1,Math.max(0,(t??0)+e)))},children:[
|
|
5
|
-
/* @__PURE__ */g("defs",{children:/* @__PURE__ */g("clipPath",{id:Q,children:/* @__PURE__ */g("rect",{x:tt,y:it,width:et-tt,height:rt-it})})}),Y.map(t=>/* @__PURE__ */g("line",{x1:tt,y1:nt(t),x2:et,y2:nt(t),stroke:a.grid,strokeWidth:1,shapeRendering:"crispEdges"},`g${t}`)),
|
|
6
|
-
/* @__PURE__ */g("line",{x1:tt,y1:nt(Math.max(X,0)),x2:et,y2:nt(Math.max(X,0)),stroke:a.axis,strokeWidth:1,shapeRendering:"crispEdges"}),Y.map(t=>/* @__PURE__ */g("text",{x:tt-8,y:nt(t)+4,textAnchor:"end",fontSize:11,fill:a.label,style:{fontVariantNumeric:"tabular-nums"},children:K(t)},`t${t}`)),j&&/* @__PURE__ */g("text",{x:14,y:(it+rt)/2,transform:`rotate(-90 14 ${(it+rt)/2})`,textAnchor:"middle",fontSize:11,fill:a.label,children:j}),
|
|
7
|
-
/* @__PURE__ */g("g",{clipPath:`url(#${Q})`,children:E({x:lt,y:nt,left:tt,right:et,top:it,bottom:rt,width:W,height:b,clipId:Q,active:Z})}),U?.({x:lt,y:nt,left:tt,right:et,top:it,bottom:rt,width:W,height:b,clipId:Q,active:Z}),y.map((t,e)=>e%ht===0?/* @__PURE__ */g("text",{x:"start"===R?lt(e):lt.center(e),y:b-8,textAnchor:"middle",fontSize:11,fill:a.label,style:{fontVariantNumeric:"tabular-nums"},children:ct(t)},`x${e}`):null),y.map((t,e)=>/* @__PURE__ */g("rect",{x:lt.center(e)-(et-tt)/y.length/2,y:it,width:(et-tt)/y.length,height:rt-it,fill:"transparent",onMouseEnter:()=>B(e),onClick:C?()=>C(e):void 0,style:C?{cursor:"pointer"}:void 0},`h${e}`))]}),z&&null!==Z&&
|
|
8
|
-
/* @__PURE__ */g("div",{className:"pointer-events-none absolute top-2 z-10",style:t(lt.center(Z),lt.bandwidth,W),children:z(Z)})]})}export{y as CartesianPlot};
|
package/dist/chunk-LYLEH25Y.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="8.20.0",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-NI76QOA2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{TimelineCard as e}from"./chunk-SURSVJA2.js";import{TimelineTrack as n,TimelineMilestoneIcon as s}from"./chunk-HME2P5VX.js";import{toDayMs as i,fmtSliderDate as t,DAY_MS as a}from"./chunk-YDEIXM2A.js";import{useBrowserValueOnce as l}from"./chunk-D65T4H6J.js";import{useShellStrings as o,useShellLocale as r}from"./chunk-KKZZAK76.js";import{jsx as h}from"react/jsx-runtime";function m({title:m,heading:d,subject:c,milestones:p,summary:u,endDate:g,phaseLabels:k,variant:v="card",edgeCaptions:f,highlightKeys:y=null,onHoverChange:b}){const M=l(Date.now,null),j=[],x=[],C=o().timeline,K=r();for(const e of p){const n=i(e.date??null);null===n?x.push({key:e.key,label:e.label,kind:e.kind}):j.push({...e,ms:n})}j.sort((e,n)=>e.ms-n.ms);const D=i(g??null);let H,w,A=!0;0===j.length?(w=D??M??0,H=w-30*a,A=null!==D||null!==M):(H=j[0].ms,w=D??j[j.length-1].ms,w-H<a&&(w=H+a));const N=j.length>0?Math.max(0,Math.round((w-H)/a)):0,O=u??(N>0?C.duration(N):void 0),E=[j.length>0?C.started(t(j[0].ms,K)):void 0,O,x.length>0?C.reached(j.length,p.length):void 0],J=j.map(e=>{return{key:e.key,ms:e.ms,kind:e.kind,label:e.label,detail:e.detail,preview:e.preview,glyph:e.glyph,onClick:e.onClick,onOpen:e.onOpen,priority:(n=e.kind,"dfm"===n?1:0),caption:e.caption,provisional:e.provisional};var n}),L={};for(const e of j)e.phase&&(L[e.phase]=L[e.phase]||[]).push(e.ms);const S=Object.entries(L).filter(([,e])=>e.length>=2).map(([e,n])=>({key:e,label:k?.[e]??e,minMs:Math.min(...n),maxMs:Math.max(...n)})),V="rail"===v,X=A&&/* @__PURE__ */h("div",{className:"select-none",children:/* @__PURE__ */h(n,{axis:V?"spread":"compressed",labels:V?"none":"lanes",items:J,pending:x,phases:S,startMs:H,endMs:w,todayMs:M??void 0,edgeCaptions:f,highlightKeys:y,onHoverChange:b,ariaLabel:C.milestones(m)})});/* @__PURE__ */
|
|
2
|
-
return h("div",V?{className:"shrink-0","data-timeline-variant":"rail",children:X}:{className:"shrink-0",children:/* @__PURE__ */h(e,{icon:/* @__PURE__ */h(s,{}),heading:d??m,subject:c,meta:E,children:X})})}export{m as MilestoneTimeline};
|
package/dist/chunk-NZ67C5OK.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{nextEnabledIndex as e}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as t,filterOptionItems as n,optionMatches as r,groupedRows as l,OptionCheck as o,OptionSublabel as a}from"./chunk-QSW26NAH.js";import{INPUT_BASE_ON as i,INPUT_BASE as s}from"./chunk-JFSYWEHD.js";import{Button_default as u}from"./chunk-UDD7GB4F.js";import{LoadingSpinner as c}from"./chunk-Q5MD3VY6.js";import{Tooltip as d}from"./chunk-2LXTJXWC.js";import{onOverlayOpen as h}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as p}from"./chunk-62LW225J.js";import{useDropdownPosition as m,MENU_MAX_HEIGHT as f}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as g}from"./chunk-D65T4H6J.js";import{GLASS_DIVIDER as b,glassStyle as v}from"./chunk-DTJRIWFR.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useShellStrings as w}from"./chunk-KKZZAK76.js";import{useState as x,useId as k,useRef as $,useMemo as j,useEffect as D}from"react";import{createPortal as N}from"react-dom";import{jsxs as C,jsx as S}from"react/jsx-runtime";function W(e,t){const n=e.length;if(0===n||t(e.join(", ")))return{shown:n,cut:!1};if(1===n)return{shown:1,cut:!0};let r=0;for(let l=1;l<n&&t(`${e.slice(0,l).join(", ")} +${n-l}`);l+=1)r=l;return{shown:r,cut:!1}}function F({onClear:e,ariaLabel:t}){/* @__PURE__ */
|
|
2
|
-
return S("button",{type:"button","aria-label":t,onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),e()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity text-base leading-none",children:"×"})}function L(L){const{options:R,placeholder:T,emptyOptionLabel:E,className:M="",disabled:z,id:A,filter:J=!1,allowFreeText:O=!1,freeTextOption:U,onSearchChange:B,loading:H=!1,error:I,onRetry:K,rightAdornment:G,renderOption:Q,clearable:X=!0,"aria-label":P,"aria-labelledby":V,"aria-describedby":Y}=L,Z=!0===L.multiple,q=L.multiple?L.value:L.value?[L.value]:[],_=L.multiple?"":L.value,ee=e=>{L.multiple?L.onChange(e):L.onChange(e[0]??"")},te=q.length>0,ne=J&&te&&!z,re=Z||J,le=null!=U,oe=O||le,[ae,ie]=x(!1),[se,ue]=x(-1),ce=k(),de=A??`${ce}-input`,he=`${ce}-listbox`,pe=e=>`${ce}-opt-${e}`,[me,fe]=x(""),ge=w(),be=E??ge.select.none,ve=e=>{fe(e),ue(-1),B?.(e)},ye=$(null),we=$(null),xe=$(null),ke=$(null),$e=$(ae);$e.current=ae;const je=$(!1),De=e=>{$e.current&&($e.current=!1,e&&O&&!le&&Xe&&(Z?q.includes(Xe)||ee([...q,Xe]):Xe!==_&&ee([Xe])),ie(!1),ve(""))},Ne=(e,t)=>{if(!e.disabled){if(Z)return ee(q.includes(e.value)?q.filter(t=>t!==e.value):[...q,e.value]),void(e===Pe?ve(""):ue(t));ee([e.value]),De(!1)}},[Ce,Se]=x(null);g(()=>{if(!G||ae)return void Se(null);const e=ke.current?.offsetWidth??0;Se(e?e+(Ee?32:8)+6:null)});const We=m(we,ae,re?{popupRef:xe}:{matchTriggerWidth:!0}),Fe=j(()=>t(R),[R]),Le=q.join("\0"),Re=j(()=>{const e=[],t=/* @__PURE__ */new Set;for(const n of Fe)q.includes(n.value)&&!t.has(n.value)&&(t.add(n.value),e.push(n.label));if(oe)for(const n of q)t.has(n)||e.push(n);return e},[Fe,Le,oe]),Te=Re.join(", "),Ee=X&&te&&!z,[Me,ze]=x(null),Ae=$(null),Je=$(""),Oe=$(()=>{});Oe.current=()=>{const e=we.current,t=Ae.current;if(!Z||!e||!t)return;const n=getComputedStyle(e),r=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0),l=[n.fontStyle,n.fontWeight,n.fontSize,n.fontFamily,n.letterSpacing].join("|"),o=`${r}|${l}|${Re.join("\0")}`;if(o===Je.current)return;Je.current=o;let a=null;r>0&&Re.length>0&&(t.style.fontStyle=n.fontStyle,t.style.fontWeight=n.fontWeight,t.style.fontSize=n.fontSize,t.style.fontFamily=n.fontFamily,t.style.letterSpacing=n.letterSpacing,a=W(Re,e=>(t.textContent=e,t.getBoundingClientRect().width<=r)),t.textContent=""),ze(e=>e?.shown===a?.shown&&e?.cut===a?.cut?e:a)},g(()=>{Oe.current()}),D(()=>{const e=we.current;if(!Z||!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(()=>Oe.current());return t.observe(e),()=>t.disconnect()},[Z]);const Ue=Re.length,Be=!Z||!Me||Me.shown>=Ue?Te:0===Me.shown?ge.select.selectedCount(Ue):`${Re.slice(0,Me.shown).join(", ")} +${Ue-Me.shown}`,He=Z&&null!==Me&&(Me.shown<Ue||Me.cut),Ie=ae&&te&&re;D(()=>{if(!ae)return;const e=e=>{const t=e.target;ye.current?.contains(t)||xe.current?.contains(t)||De(!0)};document.addEventListener("mousedown",e);const t=h(()=>De(!0));return()=>{document.removeEventListener("mousedown",e),t()}},[ae,O,me,Le,L.onChange]),D(()=>{if(ae)return y(e=>!("Escape"!==e.key||!$e.current)&&(De(!1),we.current?.blur(),!0),()=>xe.current)},[ae]);const Ke=j(()=>{const e=/* @__PURE__ */new Set;return n(R,t=>!e.has(t.value)&&(e.add(t.value),!0))},[R]),Ge=j(()=>{if(B)return Ke;const e=me.trim().toLowerCase();return e?n(Ke,t=>r(t,e)):Ke},[Ke,me,B]),Qe=j(()=>t(Ge),[Ge]),Xe=me.trim(),Pe=j(()=>le&&Xe?Fe.some(e=>e.label===Xe)||q.includes(Xe)?null:{value:Xe,label:Xe}:null,[le,Xe,Fe,Le]),Ve=j(()=>Pe?[...Qe,Pe]:Qe,[Qe,Pe]);/* @__PURE__ */
|
|
3
|
-
return C("div",{ref:ye,className:"relative group",onBlur:e=>{const t=e.relatedTarget;t&&(ye.current?.contains(t)||xe.current?.contains(t))||je.current||document.activeElement!==we.current&&De(!0)},children:[(Ye=/* @__PURE__ */S("input",{id:de,ref:we,type:"text",autoComplete:"off",role:"combobox","aria-expanded":ae,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-controls":ae?he:void 0,"aria-activedescendant":ae&&se>=0&&se<Ve.length?pe(se):void 0,"aria-label":V?void 0:P,"aria-labelledby":V,"aria-describedby":Y,value:ae?me:Be,onChange:e=>{ve(e.target.value),ie(!0)},onFocus:()=>{z||(ve(""),ie(!0))},onKeyDown:t=>{if("ArrowDown"===t.key||"ArrowUp"===t.key){if(z)return;if(t.preventDefault(),!ae)return void ie(!0);if(0===Ve.length)return;const n="ArrowDown"===t.key?1:-1;return void ue(t=>e(Ve,t,n))}"Enter"===t.key?(t.preventDefault(),ae&&se>=0&&se<Ve.length?Ne(Ve[se],se):1!==Qe.length||Qe[0].disabled?O&&!le&&Xe&&(Z?(q.includes(Xe)||ee([...q,Xe]),ve("")):(ee([Xe]),De(!1),we.current?.blur())):Ne(Qe[0],0)):"Escape"===t.key?(De(!1),we.current?.blur()):"Tab"===t.key&&De(!0)},placeholder:Ie?Be:T||be,className:`${ne?i:s} ${M} ${Ee?"pr-8":""} ${z?"bg-gray-50 text-gray-400 cursor-not-allowed":""} truncate${Ie?" rosh-field-shows-choice":""}`,style:Ce?{paddingRight:Ce}:void 0,disabled:z}),Z?/* @__PURE__ */S(d,{content:!ae&&He?Te:null,className:"block",children:Ye}):Ye),Z&&
|
|
4
|
-
/* @__PURE__ */S("div",{"aria-hidden":"true",className:"pointer-events-none invisible absolute left-0 top-0 h-0 w-0 overflow-hidden",children:/* @__PURE__ */S("span",{ref:Ae,className:"whitespace-pre"})}),Ee&&/* @__PURE__ */S(F,{ariaLabel:ge.select.clear,onClear:()=>{ee([]),De(!1)}}),G&&!ae&&/* @__PURE__ */S("div",{ref:ke,className:`absolute top-1/2 -translate-y-1/2 ${Ee?"right-8":"right-2"} flex items-center gap-1 flex-nowrap justify-end pointer-events-none`,children:G}),ae&&N(
|
|
5
|
-
/* @__PURE__ */C("div",{ref:xe,onMouseDownCapture:()=>{je.current=!0,setTimeout(()=>{je.current=!1},0)},className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:p.popup,left:We?.left,right:We?.right,top:We?.top,bottom:We?.bottom,minWidth:We?.minWidth,width:We?.width,...re&&{maxWidth:We?.maxWidth},visibility:We?void 0:"hidden",...v()},children:[Z&&te&&X&&!z&&
|
|
6
|
-
/* @__PURE__ */S("button",{type:"button",tabIndex:-1,onMouseDown:e=>{e.preventDefault(),ee([])},className:`block w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm text-gray-600 hover:bg-gray-50 border-b ${b}`,children:ge.select.clearAll}),H?
|
|
7
|
-
/* @__PURE__ */S(c,{size:"sm",padding:"py-2",label:ge.search.searching}):I?/* @__PURE__ */C("div",{role:"alert",className:"flex items-center gap-2 px-3 py-2 text-sm text-red-600",children:[
|
|
8
|
-
/* @__PURE__ */S("span",{className:"min-w-0 flex-1",children:I}),K&&/* @__PURE__ */S(u,{variant:"link",size:"sm",onMouseDown:e=>e.preventDefault(),onClick:K,className:"shrink-0",children:ge.list.retry})]}):null,
|
|
9
|
-
/* @__PURE__ */C("div",{id:he,role:Ve.length?"listbox":void 0,"aria-labelledby":Ve.length?V??(P?void 0:de):void 0,"aria-label":Ve.length&&!V?P:void 0,"aria-multiselectable":!(!Ve.length||!Z)||void 0,className:"overflow-y-auto",style:{maxHeight:We?.maxHeight??f},children:[0===Ve.length?H||I?null:/* @__PURE__ */S("p",{className:"px-3 py-3 text-sm text-gray-400 text-center",children:ge.select.noMatches}):0===Qe.length?null:l(Ge,(e,t)=>{const n=q.includes(e.value);/* @__PURE__ */
|
|
10
|
-
return C("button",{id:pe(t),type:"button",role:"option","aria-selected":n,"aria-disabled":e.disabled||void 0,tabIndex:-1,onMouseDown:n=>{(e.disabled||Z)&&n.preventDefault(),Ne(e,t)},className:"w-full overflow-hidden text-left px-3 min-h-(--row-height-menu) py-2 text-sm flex items-center justify-between gap-2 whitespace-nowrap "+(e.disabled?"cursor-not-allowed text-gray-400":`hover:bg-gray-50 ${n?"text-blue-600 font-medium":"text-gray-700"} ${t===se?"bg-gray-100":n?"bg-blue-50/50":""}`),children:[Z&&/* @__PURE__ */S(o,{selected:n}),
|
|
11
|
-
/* @__PURE__ */S("span",{className:`min-w-0 ${re?"flex-auto":"flex-1"} truncate`,children:Q?Q(e,{selected:n,active:t===se}):e.label}),e.sublabel&&/* @__PURE__ */S(a,{grows:re,children:e.sublabel})]},e.value)},ce),Pe&&U&&
|
|
12
|
-
/* @__PURE__ */S("button",{id:pe(Qe.length),type:"button",role:"option","aria-selected":!1,tabIndex:-1,onMouseDown:e=>{Z&&e.preventDefault(),Ne(Pe,Qe.length)},className:`w-full overflow-hidden text-left px-3 min-h-(--row-height-menu) py-2 text-sm flex items-center gap-2 whitespace-nowrap text-gray-700 hover:bg-gray-50 ${Qe.length?`border-t ${b}`:""} ${se===Qe.length?"bg-gray-100":""}`,children:/* @__PURE__ */S("span",{className:"min-w-0 flex-1 truncate",children:U(Pe.value)})},`${ce}-typed`)]})]}),document.body)]});var Ye}export{L as SearchableSelect,W as fitChoice};
|