efficient-shell 4.137.1 → 4.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +77 -11
- package/dist/{Browser-ZX5OTOKK.js → Browser-24YNRTKT.js} +14 -14
- package/dist/Calculator-LER6KUQC.js +29 -0
- package/dist/{ConfirmDialog-NPKW2XHM.js → ConfirmDialog-GAYETRMG.js} +1 -1
- package/dist/{CurrencyConverter-2KOM7L6V.js → CurrencyConverter-Y35GFDFF.js} +6 -6
- package/dist/{Documents-IZTIQYPG.js → Documents-7FYX2CGT.js} +14 -14
- package/dist/{Files-B63KKXGZ.js → Files-RZOML2N6.js} +39 -39
- package/dist/{Notepad-WA77V45J.js → Notepad-VVDCBDUA.js} +13 -13
- package/dist/PdfViewer-CvLb2j_l.d.ts +40 -0
- package/dist/PdfViewer-ZCT3PYXU.js +1 -0
- package/dist/{PomodoroTimer-SDUBKXUS.js → PomodoroTimer-VAM3AJOX.js} +37 -37
- package/dist/{Preview-D4KOA4OI.js → Preview-HZ37D7QJ.js} +23 -23
- package/dist/{Sidebar-Y57LYXXI.js → Sidebar-CVF7C6BO.js} +3 -3
- package/dist/{Spreadsheet-JX5E6WH6.js → Spreadsheet-6WX3P6AB.js} +15 -15
- package/dist/{Stock-XAQ5WMUZ.js → Stock-AUWI3TUX.js} +3 -3
- package/dist/{Weather-HLAGJ5LV.js → Weather-HU75TH7T.js} +13 -13
- package/dist/{WorldClock-IRI4VCTA.js → WorldClock-T64MDRMJ.js} +5 -5
- package/dist/apps/index.d.ts +3 -23
- package/dist/apps/index.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-UZAJ5BF6.js → chunk-2RHMSFZV.js} +7 -7
- package/dist/{chunk-466CM2TJ.js → chunk-4FS742BM.js} +1 -1
- package/dist/{chunk-JN4WXTWJ.js → chunk-7DAQ3WVP.js} +42 -42
- package/dist/chunk-CVTOZCM3.js +24 -0
- package/dist/{chunk-H562R4GX.js → chunk-GDSGXDET.js} +1 -1
- package/dist/{chunk-A2OQLLYK.js → chunk-I55UMU3R.js} +1 -1
- package/dist/chunk-KKOHUQPF.js +1 -0
- package/dist/{chunk-Y7BOLDRM.js → chunk-L7TEFXIS.js} +14 -14
- package/dist/chunk-LVFMK5OQ.js +29 -0
- package/dist/{chunk-5CRAF2AD.js → chunk-MU5H2CDL.js} +2 -2
- package/dist/{chunk-FQLMX3IE.js → chunk-NBBOFQPL.js} +441 -442
- package/dist/{chunk-TAWKWSPN.js → chunk-RJ4LACFH.js} +3 -3
- package/dist/{chunk-B43AGQET.js → chunk-SLCR26NK.js} +4 -4
- package/dist/{chunk-XO43FJRM.js → chunk-TFKB2WEB.js} +5 -5
- package/dist/chunk-TR6PLN7W.js +1 -0
- package/dist/chunk-TWV42Q3K.js +1 -0
- package/dist/{chunk-VVAGSKW7.js → chunk-UB22J6EF.js} +1 -1
- package/dist/{chunk-44UO7FYU.js → chunk-V453E4KU.js} +4 -4
- package/dist/file-intake/index.js +1 -1
- package/dist/{index-DVI9DMSu.d.ts → index-NhR7frRu.d.ts} +189 -17
- package/dist/index.d.ts +2 -2
- package/dist/index.js +235 -235
- package/dist/map/index.d.ts +266 -13
- package/dist/map/index.js +22 -20
- package/dist/page-tabs/index.js +13 -13
- package/dist/pdf/index.d.ts +9 -0
- package/dist/pdf/index.js +2 -0
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui.css +7 -0
- package/package.json +6 -1
- package/dist/Calculator-4SQGOQFQ.js +0 -29
- package/dist/PdfViewer-RBRGEKWF.js +0 -1
- package/dist/chunk-3A46NCXK.js +0 -29
- package/dist/chunk-OQDWLHZI.js +0 -1
- package/dist/chunk-OWSAMA3I.js +0 -23
- package/dist/chunk-U4GTZPXP.js +0 -1
- package/dist/chunk-VEGMDXT4.js +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { P as PdfViewer$1 } from '../PdfViewer-CvLb2j_l.js';
|
|
3
|
+
export { a as PdfViewerProps } from '../PdfViewer-CvLb2j_l.js';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
/** The reader — lazy, so `pdfjs-dist` loads when a document is first shown. */
|
|
7
|
+
declare const PdfViewer: react.LazyExoticComponent<typeof PdfViewer$1>;
|
|
8
|
+
|
|
9
|
+
export { PdfViewer };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as Align, j as AngleScale, k as AppUpdateBanner, l as AppUpdateBannerProps, m as AttachButton, n as AttachButtonProps, o as AttachmentDropZone, p as AttachmentDropZoneProps, q as AttachmentList, r as AttachmentListProps, s as AuthScreen, t as AuthScreenProps, u as Avatar, v as AvatarGroup, w as AvatarGroupProps, x as AvatarProps, y as AvatarSize, z as AvatarStatus, B as BackgroundVariant, D as BandScale, E as Banner, F as BannerEmphasis, G as BannerProps, H as BannerTone, I as BarChart, J as BarChartProps, K as BoxPlotBox, L as BoxPlotChart, M as BoxPlotChartProps, N as BrandAssetEditor, O as BrandAssetEditorProps, Q as BrandAssetPreview, R as BrandMark, T as BrandMarkProps, U as BrandMarkSlot, V as BrandMarkSurface, W as BrandMarkTreatment, X as BreadcrumbItem, Y as Breadcrumbs, Z as BreadcrumbsProps, _ as BudgetBar, $ as BudgetBarProps, a0 as BudgetState, a1 as Button, a2 as ButtonClassesOptions, a3 as ButtonProps, a4 as ButtonSize, a5 as ButtonVariant, a6 as CHART_INK, a7 as CMD_A, a8 as CMD_DOT, a9 as CMD_ENTER, aa as CMD_K, ab as CMD_S, ac as Calendar, ad as CalendarMode, ae as CalendarProps, af as Candle, ag as CandlestickChart, ah as CandlestickChartProps, ai as Card, aj as CardPadding, ak as CardProps, al as CartesianPlot, am as CartesianPlotProps, an as CellStyle, ao as ChartBackgroundVariant, ap as ChartBrush, aq as ChartBrushProps, ar as ChartCurve, as as ChartDefs, at as ChartDefsProps, au as ChartDot, av as ChartDotProps, aw as ChartDotVariant, ax as ChartFillVariant, ay as ChartFrame, az as ChartFrameProps, aA as ChartHighlightProvider, aB as ChartLegendEntry, aC as ChartLegendSwatch, aD as ChartRange, aE as ChartReferenceLine, aF as ChartRevealDirection, aG as ChartSkeleton, aH as ChartSkeletonProps, aI as ChartStatusTone, aJ as ChartStrokeVariant, aK as ChartTooltip, aL as ChartTooltipProps, aM as ChartTooltipRow, aN as ChatTemplate, aO as Checkbox, aP as CheckboxProps, aQ as CheckoutTemplate, aR as ChordChart, aS as ChordChartProps, aT as ColoredBadge, aU as ColoredBadgeProps, aV as ColumnChart, aW as ColumnChartProps, C as ColumnDef, aX as ColumnSeries, aY as ComposerAttachments, aZ as ComposerAttachmentsProps, a_ as ConfirmProvider, a$ as ContainerFillChart, b0 as ContainerFillChartProps, b1 as ContainerFillItem, b2 as CountBadge, b3 as CountBadgeProps, b4 as CountBadgeTone, b5 as Curve, b6 as DAY_MS, b7 as DEFAULT_SHELL_STRINGS, b8 as DashboardTemplate, b9 as DataTable, ba as DataTableColumn, bb as DataTableColumnGroup, bc as DataTableHeader, bd as DataTablePage, be as DataTableProps, bf as DatePicker, bg as DatePickerProps, bh as DateRangePicker, bi as DateRangePickerProps, bj as DateTimePicker, bk as DateTimePickerProps, bl as DescriptionColumns, bm as DescriptionItem, bn as DescriptionList, bo as DescriptionListProps, bp as Dialog, bq as DialogProps, br as DialogSize, bs as Divider, bt as DividerProps, bu as DividerSpacing, bv as DonutChart, bw as DonutChartProps, bx as DonutSegment, by as Drawer, bz as DrawerProps, bA as DrawerSide, bB as DrawerSize, bC as DropdownMenu, bD as DropdownMenuAlign, bE as DropdownMenuDividerItem, bF as DropdownMenuEntry, bG as DropdownMenuItem, bH as DropdownMenuLabelItem, bI as DropdownMenuLinkItem, bJ as DropdownMenuProps, bK as DropdownMenuRadioItem, bL as DropdownMenuSide, bM as DropdownPositionOptions, bN as ENTER, bO as EditableGrid, bP as EditableGridProps, bQ as EmailTemplate, bR as EmptyState, bS as EmptyStateProps, bT as ErrorBoundary, bU as ErrorBoundaryProps, bV as ErrorPage, bW as ErrorPageProps, bX as FileIntake, bY as FilePicker, bZ as FilePickerProps, b_ as FillVariant, b$ as FormError, c0 as FormErrorSummary, c1 as FormErrorSummaryProps, c2 as FormField, c3 as FormFieldProps, c4 as FormLayoutPage, c5 as FormatDateOptions, c6 as FunnelChart, c7 as FunnelChartProps, c8 as FunnelStage, c9 as GLASS_DIVIDER, cb as GROUP_COLORS, cc as GROUP_COLORS_SOLID, cd as GalleryTemplate, ce as Gap, cf as GlobalSearch, cg as GlobalSearchProps, ch as Grid, ci as GridCols, cj as GridColumn, ck as GridProps, cl as HeatmapChart, cm as HeatmapChartProps, cn as HelpCenter, co as HelpCenterDoc, cp as HelpCenterProps, cq as HistogramBin, cr as HistogramChart, cs as HistogramChartProps, ct as INPUT_BASE, cu as INPUT_SIZES, cv as IconButton, cw as IconButtonClassesOptions, cx as IconButtonProps, cy as Inline, cz as InlineProps, cA as Input, cB as InputNumber, cC as InputNumberProps, cD as InputProps, cE as InputSize, cF as Justify, cG as Kanban, cH as KanbanColumn, cI as KanbanProps, cJ as Kbd, cK as KbdProps, cL as KbdSize, cM as Label, cN as LabelProps, cO as LadderScale, cP as LineChart, cQ as LineChartProps, cR as LineChartSeries, cS as LinearScale, cT as ListFooter, cU as ListLoadError, cV as ListLoadErrorProps, cW as LoadingSpinner, cX as LoadingSpinnerProps, cY as MAX_FRACTION_DIGITS, cZ as MENU_MAX_HEIGHT, c_ as MOD, c$ as MOTION, d0 as Markdown, d0 as MarkdownLite, d1 as MarkdownLiteProps, d1 as MarkdownProps, d2 as MediaUploadField, d3 as MediaUploadFieldProps, d4 as MediaUploadGrid, d5 as MediaUploadGridItem, d6 as MediaUploadGridProps, d7 as MenuPos, d8 as Meter, d9 as MeterProps, da as MetricBar, db as MetricBarProps, dc as Milestone, dd as MilestoneKind, de as MilestoneTimeline, df as MilestoneTimelineProps, dg as NEXT_CHUNK_PATH_PREFIX, dh as NativeSelect, di as NumericKeypad, dj as NumericKeypadProps, dk as OVERLAY_OPEN_EVENT, dl as POPUP_MAX_WIDTH, dm as POST_PRODUCTION_STATUSES, dn as PageHeader, dp as PageHeaderProps, P as PaginatedResponse, dq as Pagination, dr as PaginationProps, ds as PaperclipGlyph, dt as Paragraph, du as ParagraphProps, dv as PieChart, dw as PieChartProps, dx as PieSegment, dy as PlotGeometry, dz as Point, dA as PopupMenu, dB as PopupMenuDivider, dC as PopupMenuItem, dD as PopupMenuItemProps, dE as PopupMenuLabel, dF as PopupMenuProps, dG as PopupSubmenu, dH as PopupSubmenuProps, dI as PortalBrandingContextValue, dJ as PortalBrandingProvider, dK as PortalBrandingProviderProps, dL as ProductionTimeline, dM as ProductionTimelineProps, dN as ProductionTimelineSnapshot, dO as ProgressItem, dP as PublicPortal, dQ as PublicPortalBranding, dR as RADAR_SERIES_CAP, dS as RadarAxis, dT as RadarChart, dU as RadarChartProps, dV as RadarSeries, dW as RadialBarChart, dX as RadialBarChartProps, dY as RadialBarRow, dZ as Radio, d_ as RadioGroup, d$ as RadioGroupOption, e0 as RadioGroupOrientation, e1 as RadioGroupProps, e2 as RadioProps, e3 as Range, e4 as RangeChart, e5 as RangeChartProps, e6 as RangeRow, e7 as RankedBars, e8 as RankedBarsProps, e9 as RankedBarsRow, ea as ResolvedPortalBrandAsset, eb as Result, ec as ResultProps, ed as ResultStatus, ee as RevealDirection, ef as SCATTER_SERIES_CAP, eg as SERIES_SLOT_COUNT, eh as SERIES_VARS, ei as SHIFT, ej as STAGES, ek as STALE_CHUNK_RELOAD_COOLDOWN_MS, el as STALE_CHUNK_RELOAD_KEY, em as STATUS_VARS, en as SankeyChart, eo as SankeyChartProps, ep as SankeyLink, eq as SankeyNode, er as ScatterChart, es as ScatterChartProps, et as ScatterPoint, eu as ScatterSeries, S as SearchConfig, ev as SearchProvider, ew as SearchResult, ex as SearchableOption, ey as SearchableSelect, ez as SearchableSelectProps, eA as Segmented, eB as SegmentedOption, eC as SegmentedProps, eD as SegmentedSize, eE as Select, eF as SelectOption, eG as SelectProps, eH as SemanticGroup, eI as SettingRow, eJ as SettingRowProps, eK as SeverityTone, eL as ShellPrefsAdapter, eM as ShellPrefsProvider, eN as ShellStrings, eO as ShellStringsOverride, eP as ShellStringsProvider, eQ as SidebarActionButton, eR as SidebarActionButtonProps, eS as SidebarGroupLabel, eT as SidebarLayout, eU as SidebarLayoutProps, eV as SidebarNavItem, eW as SidebarNavItemProps, eX as Skeleton, eY as SkeletonProps, eZ as SkeletonVariant, e_ as Snippet, e$ as SnippetProps, f0 as SnippetSize, f1 as SnippetVariant, a as SortState, f2 as Sparkline, f3 as SparklineProps, f4 as Stack, f5 as StackProps, f6 as StaleChunkReloadOptions, f7 as StatCard, f8 as StatCardProps, f9 as StatTile, fa as StatTileProps, fb as Statistic, fc as StatisticProps, fd as StatisticSize, fe as StatisticTone, ff as StatusBadge, fg as StatusBadgeProvider, fh as StatusEmphasis, fi as StepItem, fj as Stepper, fk as StepperProps, fl as StrokeVariant, fm as SunburstChart, fn as SunburstChartProps, fo as SunburstNode, fp as Switch, fq as SwitchProps, fr as SwitchSize, fs as TabItem, ft as Tabs, fu as TabsProps, fv as TagInput, fw as TagInputOption, fx as TagInputProps, fy as Text, fz as TextProps, fA as TextSize, fB as TextTone, fC as TextWeight, fD as Textarea, fE as TextareaProps, fF as Theme, fG as TileButton, fH as TileButtonProps, fI as TileSize, fJ as TimePicker, fK as TimePickerProps, fL as TimeSeriesChart, fM as TimeSeriesChartProps, fN as TimeSeriesSeries, fO as TimelineMarker, fP as TimelineMarkerKind, fQ as TimelineReport, fR as TimelineScrubProgress, fS as TimelineTrack, fT as TimelineTrackItem, fU as TimelineTrackKind, fV as TimelineTrackPending, fW as TimelineTrackPhase, fX as TimelineTrackPlayback, fY as TimelineTrackProps, fZ as TimelineTrackThumb, f_ as Title, f$ as TitleLevel, g0 as TitleProps, g1 as ToastOptions, g2 as ToastPlacement, g3 as Tooltip, g4 as TooltipProps, g5 as TopNav, g6 as TopNavItem, g7 as TopNavProps, g8 as TreemapChart, g9 as TreemapChartProps, ga as TreemapItem, gb as TreemapTile, gc as UseAppUpdateOptions, gd as UseProductionTimelineOpts, ge as VERSION, gf as VITE_PRELOAD_ERROR_EVENT, gg as WaterfallChart, gh as WaterfallChartProps, gi as WaterfallStep, gj as ZLayer, gk as Z_LAYERS, gl as angleScale, gm as appendKey, gn as applyThemePrefs, go as arcPath, gp as areaBetween, gq as areaFrom, gr as autoHighlightIndex, gs as backspace, gt as bandScale, gu as binValues, gv as budgetState, gw as bumpPath, gx as buttonClasses, gy as calcOverall, gz as calcReportOverall, gA as confirm, gB as confirmDestructive, gC as curvePath, gD as dashFor, gE as dismissPopups, gF as fillFor, gG as fillId, gH as firstDayOfWeek, gI as fmtSliderDate, gJ as formatDate, gK as fromDateKey, gL as glassStyle, gM as glowId, gN as groundId, gO as groupColors, gP as highlightOpacity, gQ as iconButtonClasses, gR as inputClasses, gS as installStaleChunkReload, gT as isMac, gU as isSeverityTone, gV as isStaleChunkError, gW as ladderScale, gX as linearPath, gY as linearScale, gZ as logScale, g_ as maskId, g$ as mediaFileName, h0 as monotonePath, h1 as niceMax, h2 as polygonPoints, h3 as popupBounds, h4 as prompt, h5 as radiusScale, h6 as resolveBrandMarkTreatment, h7 as resolvePortalBrandAsset, h8 as resolveSeriesColor, h9 as resolveTheme, ha as seriesColor, hb as severityOf, hc as splinePath, hd as squarify, he as stagger, hf as stepPath, hg as tabButtonId, hh as tabPanelId, hi as toDateKey, hj as toDayMs, hk as toISODate, hl as toast, hm as useAppUpdate, hn as useClickOutside, ho as useConfirm, hp as useDropdownPosition, hq as useFocusTrap, hr as useHighlight, hs as useIsMobile, ht as useLocalStoragePrefs, hu as usePlotWidth, hv as usePortalBranding, hw as useProductionTimeline, hx as useScrollLock, hy as useShellLocale, hz as useShellPrefs, hA as useShellStrings, hB as useTheme } from '../index-DVI9DMSu.js';
|
|
1
|
+
export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as Align, j as AngleScale, k as AppUpdateBanner, l as AppUpdateBannerProps, m as AttachButton, n as AttachButtonProps, o as AttachmentDropZone, p as AttachmentDropZoneProps, q as AttachmentList, r as AttachmentListProps, s as AuthScreen, t as AuthScreenProps, u as Avatar, v as AvatarGroup, w as AvatarGroupProps, x as AvatarProps, y as AvatarSize, z as AvatarStatus, B as BackgroundVariant, D as BandScale, E as Banner, F as BannerEmphasis, G as BannerProps, H as BannerTone, I as BarChart, J as BarChartProps, K as BoxPlotBox, L as BoxPlotChart, M as BoxPlotChartProps, N as BrandAssetEditor, O as BrandAssetEditorProps, Q as BrandAssetPreview, R as BrandMark, T as BrandMarkProps, U as BrandMarkSlot, V as BrandMarkSurface, W as BrandMarkTreatment, X as BreadcrumbItem, Y as Breadcrumbs, Z as BreadcrumbsProps, _ as BudgetBar, $ as BudgetBarProps, a0 as BudgetState, a1 as Button, a2 as ButtonClassesOptions, a3 as ButtonProps, a4 as ButtonSize, a5 as ButtonVariant, a6 as CHART_INK, a7 as CMD_A, a8 as CMD_DOT, a9 as CMD_ENTER, aa as CMD_K, ab as CMD_S, ac as Calendar, ad as CalendarMode, ae as CalendarProps, af as Candle, ag as CandlestickChart, ah as CandlestickChartProps, ai as Card, aj as CardPadding, ak as CardProps, al as CartesianPlot, am as CartesianPlotProps, an as CellStyle, ao as ChartBackgroundVariant, ap as ChartBrush, aq as ChartBrushProps, ar as ChartCurve, as as ChartDefs, at as ChartDefsProps, au as ChartDot, av as ChartDotProps, aw as ChartDotVariant, ax as ChartFillVariant, ay as ChartFrame, az as ChartFrameProps, aA as ChartHighlightProvider, aB as ChartLegendEntry, aC as ChartLegendSwatch, aD as ChartRange, aE as ChartReferenceLine, aF as ChartRevealDirection, aG as ChartSkeleton, aH as ChartSkeletonProps, aI as ChartStatusTone, aJ as ChartStrokeVariant, aK as ChartTooltip, aL as ChartTooltipProps, aM as ChartTooltipRow, aN as ChatTemplate, aO as Checkbox, aP as CheckboxProps, aQ as CheckoutTemplate, aR as ChordChart, aS as ChordChartProps, aT as ColoredBadge, aU as ColoredBadgeProps, aV as ColumnChart, aW as ColumnChartProps, C as ColumnDef, aX as ColumnSeries, aY as ComposerAttachments, aZ as ComposerAttachmentsProps, a_ as ConfirmProvider, a$ as ContainerFillChart, b0 as ContainerFillChartProps, b1 as ContainerFillItem, b2 as CountBadge, b3 as CountBadgeProps, b4 as CountBadgeTone, b5 as Curve, b6 as DAY_MS, b7 as DEFAULT_SHELL_STRINGS, b8 as DashboardTemplate, b9 as DataTable, ba as DataTableColumn, bb as DataTableColumnGroup, bc as DataTableHeader, bd as DataTablePage, be as DataTableProps, bf as DataTableRowProps, bg as DatePicker, bh as DatePickerProps, bi as DateRangePicker, bj as DateRangePickerProps, bk as DateTimePicker, bl as DateTimePickerProps, bm as DescriptionColumns, bn as DescriptionItem, bo as DescriptionList, bp as DescriptionListProps, bq as Dialog, br as DialogProps, bs as DialogSize, bt as Divider, bu as DividerProps, bv as DividerSpacing, bw as DonutChart, bx as DonutChartProps, by as DonutSegment, bz as Drawer, bA as DrawerProps, bB as DrawerSide, bC as DrawerSize, bD as DropdownMenu, bE as DropdownMenuAlign, bF as DropdownMenuDividerItem, bG as DropdownMenuEntry, bH as DropdownMenuItem, bI as DropdownMenuLabelItem, bJ as DropdownMenuLinkItem, bK as DropdownMenuProps, bL as DropdownMenuRadioItem, bM as DropdownMenuSide, bN as DropdownPositionOptions, bO as ENTER, bP as EditableGrid, bQ as EditableGridProps, bR as EmailTemplate, bS as EmptyState, bT as EmptyStateProps, bU as ErrorBoundary, bV as ErrorBoundaryProps, bW as ErrorPage, bX as ErrorPageProps, bY as FileIntake, bZ as FilePicker, b_ as FilePickerProps, b$ as FillVariant, c0 as FormError, c1 as FormErrorSummary, c2 as FormErrorSummaryProps, c3 as FormField, c4 as FormFieldProps, c5 as FormLayoutPage, c6 as FormatDateOptions, c7 as FunnelChart, c8 as FunnelChartProps, c9 as FunnelStage, ca as GLASS_DIVIDER, cc as GROUP_COLORS, cd as GROUP_COLORS_SOLID, ce as GalleryTemplate, cf as Gap, cg as GlobalSearch, ch as GlobalSearchProps, ci as Grid, cj as GridCols, ck as GridColumn, cl as GridProps, cm as HeatmapChart, cn as HeatmapChartProps, co as HelpCenter, cp as HelpCenterDoc, cq as HelpCenterProps, cr as HistogramBin, cs as HistogramChart, ct as HistogramChartProps, cu as INPUT_BASE, cv as INPUT_SIZES, cw as IconButton, cx as IconButtonClassesOptions, cy as IconButtonProps, cz as Inline, cA as InlineProps, cB as Input, cC as InputNumber, cD as InputNumberProps, cE as InputProps, cF as InputSize, cG as Justify, cH as Kanban, cI as KanbanColumn, cJ as KanbanProps, cK as Kbd, cL as KbdProps, cM as KbdSize, cN as Label, cO as LabelProps, cP as LadderScale, cQ as LineChart, cR as LineChartProps, cS as LineChartSeries, cT as LinearScale, cU as ListFooter, cV as ListLoadError, cW as ListLoadErrorProps, cX as LoadingSpinner, cY as LoadingSpinnerProps, cZ as MAX_FRACTION_DIGITS, c_ as MENU_MAX_HEIGHT, c$ as MOD, d0 as MOTION, d1 as Markdown, d1 as MarkdownLite, d2 as MarkdownLiteProps, d2 as MarkdownProps, d3 as MediaUploadField, d4 as MediaUploadFieldProps, d5 as MediaUploadGrid, d6 as MediaUploadGridItem, d7 as MediaUploadGridProps, d8 as MenuPos, d9 as Meter, da as MeterProps, db as MetricBar, dc as MetricBarProps, dd as Milestone, de as MilestoneKind, df as MilestoneTimeline, dg as MilestoneTimelineProps, dh as NEXT_CHUNK_PATH_PREFIX, di as NativeSelect, dj as NumericKeypad, dk as NumericKeypadProps, dl as OVERLAY_OPEN_EVENT, dm as POPUP_MAX_WIDTH, dn as POST_PRODUCTION_STATUSES, dp as PageHeader, dq as PageHeaderProps, P as PaginatedResponse, dr as Pagination, ds as PaginationProps, dt as PaperclipGlyph, du as Paragraph, dv as ParagraphProps, dw as PieChart, dx as PieChartProps, dy as PieSegment, dz as PlotGeometry, dA as Point, dB as PopupMenu, dC as PopupMenuDivider, dD as PopupMenuItem, dE as PopupMenuItemProps, dF as PopupMenuLabel, dG as PopupMenuProps, dH as PopupSubmenu, dI as PopupSubmenuProps, dJ as PortalBrandingContextValue, dK as PortalBrandingProvider, dL as PortalBrandingProviderProps, dM as ProductionTimeline, dN as ProductionTimelineProps, dO as ProductionTimelineSnapshot, dP as ProgressItem, dQ as PublicPortal, dR as PublicPortalBranding, dS as RADAR_SERIES_CAP, dT as RadarAxis, dU as RadarChart, dV as RadarChartProps, dW as RadarSeries, dX as RadialBarChart, dY as RadialBarChartProps, dZ as RadialBarRow, d_ as Radio, d$ as RadioGroup, e0 as RadioGroupOption, e1 as RadioGroupOrientation, e2 as RadioGroupProps, e3 as RadioProps, e4 as Range, e5 as RangeChart, e6 as RangeChartProps, e7 as RangeRow, e8 as RankedBars, e9 as RankedBarsProps, ea as RankedBarsRow, eb as ResolvedPortalBrandAsset, ec as Result, ed as ResultProps, ee as ResultStatus, ef as RevealDirection, eg as SCATTER_SERIES_CAP, eh as SERIES_SLOT_COUNT, ei as SERIES_VARS, ej as SHIFT, ek as STAGES, el as STALE_CHUNK_RELOAD_COOLDOWN_MS, em as STALE_CHUNK_RELOAD_KEY, en as STATUS_VARS, eo as SankeyChart, ep as SankeyChartProps, eq as SankeyLink, er as SankeyNode, es as ScatterChart, et as ScatterChartProps, eu as ScatterPoint, ev as ScatterSeries, S as SearchConfig, ew as SearchProvider, ex as SearchResult, ey as SearchableOption, ez as SearchableSelect, eA as SearchableSelectProps, eB as Segmented, eC as SegmentedOption, eD as SegmentedProps, eE as SegmentedSize, eF as Select, eG as SelectOption, eH as SelectProps, eI as SemanticGroup, eJ as SettingRow, eK as SettingRowProps, eL as SeverityTone, eM as ShellPrefsAdapter, eN as ShellPrefsProvider, eO as ShellStrings, eP as ShellStringsOverride, eQ as ShellStringsProvider, eR as SidebarActionButton, eS as SidebarActionButtonProps, eT as SidebarGroupLabel, eU as SidebarLayout, eV as SidebarLayoutProps, eW as SidebarNavItem, eX as SidebarNavItemProps, eY as Skeleton, eZ as SkeletonProps, e_ as SkeletonVariant, e$ as Snippet, f0 as SnippetProps, f1 as SnippetSize, f2 as SnippetVariant, a as SortState, f3 as Sparkline, f4 as SparklineProps, f5 as Stack, f6 as StackProps, f7 as StaleChunkReloadOptions, f8 as StatCard, f9 as StatCardProps, fa as StatTile, fb as StatTileProps, fc as Statistic, fd as StatisticProps, fe as StatisticSize, ff as StatisticTone, fg as StatusBadge, fh as StatusBadgeProvider, fi as StatusEmphasis, fj as StepItem, fk as Stepper, fl as StepperProps, fm as StrokeVariant, fn as SunburstChart, fo as SunburstChartProps, fp as SunburstNode, fq as Switch, fr as SwitchProps, fs as SwitchSize, ft as TabItem, fu as Tabs, fv as TabsProps, fw as TagInput, fx as TagInputOption, fy as TagInputProps, fz as Text, fA as TextProps, fB as TextSize, fC as TextTone, fD as TextWeight, fE as Textarea, fF as TextareaProps, fG as Theme, fH as TileButton, fI as TileButtonProps, fJ as TileSize, fK as TimePicker, fL as TimePickerProps, fM as TimeSeriesChart, fN as TimeSeriesChartProps, fO as TimeSeriesSeries, fP as TimelineMarker, fQ as TimelineMarkerKind, fR as TimelineReport, fS as TimelineScrubProgress, fT as TimelineTrack, fU as TimelineTrackItem, fV as TimelineTrackKind, fW as TimelineTrackPending, fX as TimelineTrackPhase, fY as TimelineTrackPlayback, fZ as TimelineTrackProps, f_ as TimelineTrackThumb, f$ as Title, g0 as TitleLevel, g1 as TitleProps, g2 as ToastOptions, g3 as ToastPlacement, g4 as Tooltip, g5 as TooltipProps, g6 as TopNav, g7 as TopNavItem, g8 as TopNavProps, g9 as TreemapChart, ga as TreemapChartProps, gb as TreemapItem, gc as TreemapTile, gd as UseAppUpdateOptions, ge as UseProductionTimelineOpts, gf as VERSION, gg as VITE_PRELOAD_ERROR_EVENT, gh as WaterfallChart, gi as WaterfallChartProps, gj as WaterfallStep, gk as ZLayer, gl as Z_LAYERS, gm as angleScale, gn as appendKey, go as applyThemePrefs, gp as arcPath, gq as areaBetween, gr as areaFrom, gs as autoHighlightIndex, gt as backspace, gu as bandScale, gv as binValues, gw as budgetState, gx as bumpPath, gy as buttonClasses, gz as calcOverall, gA as calcReportOverall, gB as confirm, gC as confirmDestructive, gD as curvePath, gE as dashFor, gF as dismissPopups, gG as fillFor, gH as fillId, gI as firstDayOfWeek, gJ as fmtSliderDate, gK as formatDate, gL as fromDateKey, gM as glassStyle, gN as glowId, gO as groundId, gP as groupColors, gQ as highlightOpacity, gR as iconButtonClasses, gS as inputClasses, gT as installStaleChunkReload, gU as isMac, gV as isSeverityTone, gW as isStaleChunkError, gX as ladderScale, gY as linearPath, gZ as linearScale, g_ as logScale, g$ as maskId, h0 as mediaFileName, h1 as monotonePath, h2 as niceMax, h3 as polygonPoints, h4 as popupBounds, h5 as prompt, h6 as radiusScale, h7 as resolveBrandMarkTreatment, h8 as resolvePortalBrandAsset, h9 as resolveSeriesColor, ha as resolveTheme, hb as seriesColor, hc as severityOf, hd as splinePath, he as squarify, hf as stagger, hg as stepPath, hh as tabButtonId, hi as tabPanelId, hj as toDateKey, hk as toDayMs, hl as toISODate, hm as toast, hn as useAppUpdate, ho as useClickOutside, hp as useConfirm, hq as useDropdownPosition, hr as useFocusTrap, hs as useHighlight, ht as useIsMobile, hu as useLocalStoragePrefs, hv as usePlotWidth, hw as usePortalBranding, hx as useProductionTimeline, hy as useScrollLock, hz as useShellLocale, hA as useShellPrefs, hB as useShellStrings, hC as useTheme } from '../index-NhR7frRu.js';
|
|
2
2
|
export { FileIntakeAlert, FileIntakeLimits, FileIntakeOptions, FileRejection, FileRejectionReason, acceptsFile, useFileIntake } from '../file-intake/index.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{APP_UPDATE_POLL_MS,Accordion,AppUpdateBanner,AttachButton,AttachmentDropZone,AttachmentList,AuthScreen,Avatar,AvatarGroup,Banner,BarChart,BoxPlotChart,BrandAssetEditor,BudgetBar,CHART_INK,Calendar,CandlestickChart,Card,CartesianPlot,ChartBrush,ChartDefs,ChartDot,ChartFrame,ChartHighlightProvider,ChartSkeleton,ChartTooltip,ChatTemplate,Checkbox_default as Checkbox,CheckoutTemplate,ChordChart,ColoredBadge,ColumnChart,ComposerAttachments,ContainerFillChart,CountBadge,DAY_MS,DashboardTemplate,DataTable,DataTablePage,DatePicker_default as DatePicker,DateRangePicker,DateTimePicker_default as DateTimePicker,DescriptionList,Divider,DonutChart,Drawer,DropdownMenu,EmailTemplate,EmptyState,ErrorBoundary,ErrorPage,FilePicker_default as FilePicker,FormErrorSummary,FormField,FormLayoutPage,FunnelChart,GROUP_COLORS,GROUP_COLORS_SOLID,GalleryTemplate,GlobalSearch,Grid,HeatmapChart,HelpCenter,HistogramChart,INPUT_BASE,INPUT_SIZES,IconButton_default as IconButton,Inline,Input_default as Input,InputNumber_default as InputNumber,Kanban,Label,LineChart,ListFooter,ListLoadError,MAX_FRACTION_DIGITS,MENU_MAX_HEIGHT,MOTION,Markdown,Markdown as MarkdownLite,MediaUploadField,MediaUploadGrid,Meter,MetricBar,MilestoneTimeline,NativeSelect,NumericKeypad,POPUP_MAX_WIDTH,POST_PRODUCTION_STATUSES,PageHeader,Pagination,PaperclipGlyph,Paragraph,PieChart,PortalBrandingProvider,ProductionTimeline,RADAR_SERIES_CAP,RadarChart,RadialBarChart,Radio_default as Radio,RadioGroup,RangeChart,RankedBars,SCATTER_SERIES_CAP,SERIES_SLOT_COUNT,SERIES_VARS,STAGES,STATUS_VARS,SankeyChart,ScatterChart,SearchableSelect,Segmented,Select_default as Select,SettingRow,SidebarActionButton,SidebarGroupLabel,SidebarNavItem,Skeleton,Snippet,Sparkline,Stack,StatCard,StatTile,Statistic,StatusBadge,StatusBadgeProvider,Stepper,SunburstChart,Switch_default as Switch,Tabs,TagInput,Text,Textarea_default as Textarea,TileButton_default as TileButton,TimePicker_default as TimePicker,TimeSeriesChart,TimelineTrack,Title,Tooltip,TopNav,TreemapChart,WaterfallChart,angleScale,appendKey,applyThemePrefs,arcPath,areaBetween,areaFrom,autoHighlightIndex,backspace,bandScale,binValues,budgetState,bumpPath,calcOverall,calcReportOverall,curvePath,dashFor,fillFor,fillId,firstDayOfWeek,fmtSliderDate,formatDate,fromKey as fromDateKey,glowId,groundId,groupColors,highlightOpacity,inputClasses,isSeverityTone,ladderScale,linearPath,linearScale,logScale,maskId,mediaFileName,monotonePath,niceMax,polygonPoints,popupBounds,radiusScale,resolvePortalBrandAsset,resolveSeriesColor,resolveTheme,seriesColor,severityOf,splinePath,squarify,stagger,stepPath,tabButtonId,tabPanelId,toKey as toDateKey,toDayMs,toISODate,useAppUpdate,useClickOutside,useDropdownPosition,useHighlight,usePlotWidth,usePortalBranding,useProductionTimeline,useTheme}from"../chunk-
|
|
2
|
+
export{APP_UPDATE_POLL_MS,Accordion,AppUpdateBanner,AttachButton,AttachmentDropZone,AttachmentList,AuthScreen,Avatar,AvatarGroup,Banner,BarChart,BoxPlotChart,BrandAssetEditor,BudgetBar,CHART_INK,Calendar,CandlestickChart,Card,CartesianPlot,ChartBrush,ChartDefs,ChartDot,ChartFrame,ChartHighlightProvider,ChartSkeleton,ChartTooltip,ChatTemplate,Checkbox_default as Checkbox,CheckoutTemplate,ChordChart,ColoredBadge,ColumnChart,ComposerAttachments,ContainerFillChart,CountBadge,DAY_MS,DashboardTemplate,DataTable,DataTablePage,DatePicker_default as DatePicker,DateRangePicker,DateTimePicker_default as DateTimePicker,DescriptionList,Divider,DonutChart,Drawer,DropdownMenu,EmailTemplate,EmptyState,ErrorBoundary,ErrorPage,FilePicker_default as FilePicker,FormErrorSummary,FormField,FormLayoutPage,FunnelChart,GROUP_COLORS,GROUP_COLORS_SOLID,GalleryTemplate,GlobalSearch,Grid,HeatmapChart,HelpCenter,HistogramChart,INPUT_BASE,INPUT_SIZES,IconButton_default as IconButton,Inline,Input_default as Input,InputNumber_default as InputNumber,Kanban,Label,LineChart,ListFooter,ListLoadError,MAX_FRACTION_DIGITS,MENU_MAX_HEIGHT,MOTION,Markdown,Markdown as MarkdownLite,MediaUploadField,MediaUploadGrid,Meter,MetricBar,MilestoneTimeline,NativeSelect,NumericKeypad,POPUP_MAX_WIDTH,POST_PRODUCTION_STATUSES,PageHeader,Pagination,PaperclipGlyph,Paragraph,PieChart,PortalBrandingProvider,ProductionTimeline,RADAR_SERIES_CAP,RadarChart,RadialBarChart,Radio_default as Radio,RadioGroup,RangeChart,RankedBars,SCATTER_SERIES_CAP,SERIES_SLOT_COUNT,SERIES_VARS,STAGES,STATUS_VARS,SankeyChart,ScatterChart,SearchableSelect,Segmented,Select_default as Select,SettingRow,SidebarActionButton,SidebarGroupLabel,SidebarNavItem,Skeleton,Snippet,Sparkline,Stack,StatCard,StatTile,Statistic,StatusBadge,StatusBadgeProvider,Stepper,SunburstChart,Switch_default as Switch,Tabs,TagInput,Text,Textarea_default as Textarea,TileButton_default as TileButton,TimePicker_default as TimePicker,TimeSeriesChart,TimelineTrack,Title,Tooltip,TopNav,TreemapChart,WaterfallChart,angleScale,appendKey,applyThemePrefs,arcPath,areaBetween,areaFrom,autoHighlightIndex,backspace,bandScale,binValues,budgetState,bumpPath,calcOverall,calcReportOverall,curvePath,dashFor,fillFor,fillId,firstDayOfWeek,fmtSliderDate,formatDate,fromKey as fromDateKey,glowId,groundId,groupColors,highlightOpacity,inputClasses,isSeverityTone,ladderScale,linearPath,linearScale,logScale,maskId,mediaFileName,monotonePath,niceMax,polygonPoints,popupBounds,radiusScale,resolvePortalBrandAsset,resolveSeriesColor,resolveTheme,seriesColor,severityOf,splinePath,squarify,stagger,stepPath,tabButtonId,tabPanelId,toKey as toDateKey,toDayMs,toISODate,useAppUpdate,useClickOutside,useDropdownPosition,useHighlight,usePlotWidth,usePortalBranding,useProductionTimeline,useTheme}from"../chunk-NBBOFQPL.js";export{Breadcrumbs}from"../chunk-I55UMU3R.js";export{SidebarLayout}from"../chunk-SLCR26NK.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-OCSOMMY2.js";export{EditableGrid}from"../chunk-TFKB2WEB.js";import"../chunk-BR22X7E5.js";export{toast_default as toast}from"../chunk-KKOHUQPF.js";export{VERSION}from"../chunk-TWV42Q3K.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,LoadingSpinner,MOD,NEXT_CHUNK_PATH_PREFIX,Result,SHIFT,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,ShellPrefsProvider,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isMac,isStaleChunkError,useIsMobile,useLocalStoragePrefs,useShellPrefs}from"../chunk-V453E4KU.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-UB22J6EF.js";export{Button_default as Button,buttonClasses,iconButtonClasses}from"../chunk-PH3PRIFP.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-2RHMSFZV.js";export{ConfirmProvider,Dialog,OVERLAY_OPEN_EVENT,Z_LAYERS,confirm,confirmDestructive,dismissPopups,prompt,useConfirm,useFocusTrap,useScrollLock}from"../chunk-LVFMK5OQ.js";export{GLASS_DIVIDER,glassStyle}from"../chunk-57MIENLJ.js";import"../chunk-MAIHBBWT.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-TR6PLN7W.js";import"../chunk-D65T4H6J.js";
|
package/dist/ui.css
CHANGED
|
@@ -1630,6 +1630,13 @@ html.rosh-reduce-transparency *::after {
|
|
|
1630
1630
|
:is([data-theme="dark"], .dark) .bg-gray-50 { background-color: var(--surface-sunken) !important; }
|
|
1631
1631
|
:is([data-theme="dark"], .dark) .bg-gray-100 { background-color: var(--surface) !important; }
|
|
1632
1632
|
:is([data-theme="dark"], .dark) .bg-gray-200 { background-color: var(--surface-raised) !important; }
|
|
1633
|
+
/* Segmented's chosen option. The track is bg-gray-100 and the chosen option
|
|
1634
|
+
bg-white, and the two remaps above send BOTH to --surface: in dark the chosen
|
|
1635
|
+
option was the colour of its own track, told apart only by a faint shadow and
|
|
1636
|
+
ink a step brighter than the others'. Raised instead, as the light theme's
|
|
1637
|
+
white pill is raised off its grey track. After the remaps on purpose: the
|
|
1638
|
+
same weight, so the later rule wins. */
|
|
1639
|
+
:is([data-theme="dark"], .dark) .rosh-segmented-on { background-color: var(--surface-raised) !important; }
|
|
1633
1640
|
|
|
1634
1641
|
/* Text */
|
|
1635
1642
|
:is([data-theme="dark"], .dark) .text-gray-900 { color: var(--ink-strongest) !important; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.145.0",
|
|
4
4
|
"description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Efficient Pty Ltd",
|
|
@@ -49,6 +49,11 @@
|
|
|
49
49
|
"import": "./dist/map/index.js",
|
|
50
50
|
"default": "./dist/map/index.js"
|
|
51
51
|
},
|
|
52
|
+
"./pdf": {
|
|
53
|
+
"types": "./dist/pdf/index.d.ts",
|
|
54
|
+
"import": "./dist/pdf/index.js",
|
|
55
|
+
"default": "./dist/pdf/index.js"
|
|
56
|
+
},
|
|
52
57
|
"./markdown": {
|
|
53
58
|
"types": "./dist/markdown/index.d.ts",
|
|
54
59
|
"import": "./dist/markdown/index.js"
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-H562R4GX.js";import{useWidgetSettings as n}from"./chunk-JN4WXTWJ.js";import"./chunk-UB4JIOLD.js";import"./chunk-44UO7FYU.js";import"./chunk-PH3PRIFP.js";import"./chunk-UZAJ5BF6.js";import"./chunk-3A46NCXK.js";import"./chunk-57MIENLJ.js";import"./chunk-OQDWLHZI.js";import"./chunk-MAIHBBWT.js";import"./chunk-D65T4H6J.js";import{useState as l,useCallback as r,useEffect as i}from"react";import{jsxs as o,Fragment as a,jsx as c}from"react/jsx-runtime";var s="calc_appearance";function u(){const[u,d]=l("0"),[h,m]=l(null),[b,k]=l(null),[g,p]=l(!1),[x,v]=l(""),[N,y]=l([]),[f,C]=l(!1),[$,j]=l(()=>e(s)),[w,L]=l(!1),[E,B]=l($);n(r(()=>{B({...$}),L(!0)},[$]));const T=r(e=>{v(""),d(t=>g||"0"===t?(p(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[g]),W=r(()=>{d("0"),m(null),k(null),p(!1)},[]),F=r((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}},[]),S=r(e=>{const t=parseFloat(u);if(null!==h&&b&&!g){const e=F(h,t,b);d(String(e)),m(e),y(n=>[`${h} ${b} ${t} = ${e}`,...n].slice(0,20))}else m(t);k(e),p(!0)},[u,h,b,g,F]),A=r(()=>{if(null===h||!b)return;const e=parseFloat(u),t=F(h,e,b),n=`${h} ${b} ${e} =`;y(e=>[`${n} ${t}`,...e].slice(0,20)),v(n),d(String(t)),m(null),k(null),p(!0)},[u,h,b,F]),I=r(()=>{d(e=>String(parseFloat(e)/100))},[]),J=r(()=>{d(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);i(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?T(e.key):"."===e.key?T("."):"+"===e.key?S("+"):"-"===e.key?S("-"):"*"===e.key?S("×"):"/"===e.key?(e.preventDefault(),S("÷")):"Enter"===e.key||"="===e.key?A():"Escape"===e.key?W():"Backspace"===e.key?d(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&I())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[T,S,A,W,I]);const H="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",M=`${H} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,O=`${H} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,U=`${H} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,D=`${H} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
|
|
2
|
-
return o(a,{children:[
|
|
3
|
-
/* @__PURE__ */o("div",{className:"flex flex-col h-full",style:{opacity:$.activeOpacity/100,backdropFilter:$.activeBlur>0?`blur(${$.activeBlur}px)`:void 0},children:[
|
|
4
|
-
/* @__PURE__ */o("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__ */c("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:N.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */c("div",{className:"text-[11px] text-slate-400 text-right font-mono truncate",children:e},t))}),(x||b&&null!==h)&&/* @__PURE__ */c("div",{className:"text-base text-slate-600 text-right font-mono",children:x||`${h} ${b} ${g?"":u}`}),
|
|
6
|
-
/* @__PURE__ */o("div",{className:"flex items-center gap-2",children:[
|
|
7
|
-
/* @__PURE__ */c("button",{onClick:()=>{navigator.clipboard.writeText(u),C(!0),setTimeout(()=>C(!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__ */c("svg",f?{className:"h-5 w-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}:{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),
|
|
8
|
-
/* @__PURE__ */c("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)})(u)})]})]}),
|
|
9
|
-
/* @__PURE__ */o("div",{className:"grid grid-cols-4 grid-rows-5 gap-1.5 flex-1 min-h-0 p-2",children:[
|
|
10
|
-
/* @__PURE__ */c("button",{onClick:W,className:U,children:"AC"}),
|
|
11
|
-
/* @__PURE__ */c("button",{onClick:J,className:U,children:"+/−"}),
|
|
12
|
-
/* @__PURE__ */c("button",{onClick:I,className:U,children:"%"}),
|
|
13
|
-
/* @__PURE__ */c("button",{onClick:()=>S("÷"),className:`${O} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
|
|
14
|
-
/* @__PURE__ */c("button",{onClick:()=>T("7"),className:M,children:"7"}),
|
|
15
|
-
/* @__PURE__ */c("button",{onClick:()=>T("8"),className:M,children:"8"}),
|
|
16
|
-
/* @__PURE__ */c("button",{onClick:()=>T("9"),className:M,children:"9"}),
|
|
17
|
-
/* @__PURE__ */c("button",{onClick:()=>S("×"),className:`${O} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
|
|
18
|
-
/* @__PURE__ */c("button",{onClick:()=>T("4"),className:M,children:"4"}),
|
|
19
|
-
/* @__PURE__ */c("button",{onClick:()=>T("5"),className:M,children:"5"}),
|
|
20
|
-
/* @__PURE__ */c("button",{onClick:()=>T("6"),className:M,children:"6"}),
|
|
21
|
-
/* @__PURE__ */c("button",{onClick:()=>S("-"),className:`${O} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
|
|
22
|
-
/* @__PURE__ */c("button",{onClick:()=>T("1"),className:M,children:"1"}),
|
|
23
|
-
/* @__PURE__ */c("button",{onClick:()=>T("2"),className:M,children:"2"}),
|
|
24
|
-
/* @__PURE__ */c("button",{onClick:()=>T("3"),className:M,children:"3"}),
|
|
25
|
-
/* @__PURE__ */c("button",{onClick:()=>S("+"),className:`${O} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
|
|
26
|
-
/* @__PURE__ */c("button",{onClick:()=>T("0"),className:`${M} col-span-2`,children:"0"}),
|
|
27
|
-
/* @__PURE__ */c("button",{onClick:()=>T("."),className:M,children:"."}),
|
|
28
|
-
/* @__PURE__ */c("button",{onClick:A,className:D,children:"="})]})]}),
|
|
29
|
-
/* @__PURE__ */c(t,{open:w,onClose:()=>L(!1),title:"Calculator Settings",appearance:E,onAppearanceChange:B,onSave:()=>{j(E),localStorage.setItem(s,JSON.stringify(E)),L(!1)}})]})}export{u as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{PdfViewer as default,fitScale}from"./chunk-OWSAMA3I.js";import"./chunk-VEGMDXT4.js";import"./chunk-OQDWLHZI.js";
|
package/dist/chunk-3A46NCXK.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{useShellStrings as e,splitAround as t}from"./chunk-OQDWLHZI.js";import{createContext as n,useEffect as r,useRef as o,useId as i,useContext as l,useState as a,useCallback as s,useLayoutEffect as d}from"react";import{jsxs as c,jsx as u,Fragment as m}from"react/jsx-runtime";var f=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function h(e){return Array.from(e.querySelectorAll(f)).filter(e=>null!==e.offsetParent||e===document.activeElement)}function b(e,t,n){r(()=>{if(!t)return;const r=e.current;if(!r)return;const o=document.activeElement,i=n?.current??h(r)[0]??r;i!==r||r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),i.focus();const l=e=>{if("Tab"!==e.key)return;const t=h(r);if(0===t.length)return void e.preventDefault();const n=t[0],o=t[t.length-1],i=document.activeElement;!e.shiftKey||i!==n&&r.contains(i)?e.shiftKey||i!==o&&r.contains(i)||(e.preventDefault(),n.focus()):(e.preventDefault(),o.focus())};return document.addEventListener("keydown",l,!0),()=>{document.removeEventListener("keydown",l,!0),(r.contains(document.activeElement)||document.activeElement===document.body)&&o?.focus?.()}},[e,t,n])}var g=0,p=null;function v(e){r(()=>{if(!e)return;const t=document.body;if(0===g){p={overflow:t.style.overflow,paddingRight:t.style.paddingRight};const e=window.innerWidth-document.documentElement.clientWidth;t.style.overflow="hidden",e>0&&(t.style.paddingRight=`${e}px`)}return g+=1,()=>{0===(g-=1)&&p&&(t.style.overflow=p.overflow,t.style.paddingRight=p.paddingRight,p=null)}},[e])}var y=/* @__PURE__ */new Set,x=null;function w(e){return y.add(e),function(){if(x||"undefined"==typeof document)return;const e=e=>{"Escape"===e.key&&k(e)&&(e.preventDefault(),e.stopPropagation())};document.addEventListener("keydown",e,!0),x=()=>document.removeEventListener("keydown",e,!0)}(),()=>{y.delete(e),0===y.size&&x&&(x(),x=null)}}function k(e){const t=Array.from(y);for(let n=t.length-1;n>=0;n--)try{if(t[n](e))return!0}catch{}return!1}var N="react-os-shell:overlay-open";function L(){"undefined"!=typeof window&&window.dispatchEvent(new Event(N))}function C(e){return"undefined"==typeof window?()=>{}:(window.addEventListener(N,e),()=>window.removeEventListener(N,e))}var E="undefined"==typeof document?r:d;function P(e){E(()=>{e&&L()},[e])}var j={window:50,windowStep:10,menu:400,pinnedWindow:999,overlay:9999,popup:1e4},W={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg"};function D({open:t,onClose:n,title:l,children:a,footer:s,blocking:d=!1,size:m="md",initialFocus:f,"aria-label":h,className:g=""}){const p=o(null),y=i(),x=!d&&!s,k=i(),N=e().dialog;return P(t),b(p,t,f),v(t),r(()=>{if(t)return w(()=>(d||n(),!0))},[t,d,n]),t?/* @__PURE__ */c("div",{className:"fixed inset-0",style:{zIndex:j.overlay},role:"presentation",children:[
|
|
2
|
-
/* @__PURE__ */u("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),
|
|
3
|
-
/* @__PURE__ */u("div",{className:"fixed inset-0 flex items-center justify-center p-4",onClick:d?void 0:e=>{e.target===e.currentTarget&&n()},children:/* @__PURE__ */c("div",{ref:p,role:"dialog","aria-modal":"true","aria-labelledby":l?k:void 0,"aria-label":l?void 0:h,"aria-describedby":a?y:void 0,className:`relative w-full ${W[m]} rounded-lg bg-white p-6 shadow-xl ${g}`.trim(),children:[l&&/* @__PURE__ */u("h2",{id:k,className:(x?"pr-8 ":"")+"text-base font-semibold text-gray-900",children:l}),a&&/* @__PURE__ */u("div",{id:y,className:"mt-2 text-sm text-gray-600",children:a}),s&&/* @__PURE__ */u("div",{className:"mt-6 flex justify-end gap-3",children:s}),x&&/* @__PURE__ */u("button",{type:"button",onClick:n,"aria-label":N.close,className:"absolute right-3 top-3 rounded-md p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */u("svg",{className:"h-5 w-5",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:/* @__PURE__ */u("path",{d:"M6 6l8 8M14 6l-8 8"})})})]})})]}):null}var $=n(()=>Promise.resolve(!1)),F=()=>l($),M=()=>Promise.resolve(!1),T=e=>M(e),z=()=>Promise.resolve(!1),A=e=>z(e),R=()=>Promise.resolve(null),K=e=>R(e),B={danger:{icon:"text-red-600 bg-red-100",button:"bg-red-600 hover:bg-red-700 text-white"},warning:{icon:"text-yellow-600 bg-yellow-100",button:"bg-yellow-600 hover:bg-yellow-700 text-white"},info:{icon:"text-blue-600 bg-blue-100",button:"bg-blue-600 hover:bg-blue-700 text-white"}},S="bg-white text-gray-700 border border-gray-300 px-4 py-2 text-sm font-medium rounded-lg hover:bg-gray-50";function H(){/* @__PURE__ */
|
|
4
|
-
return u("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:/* @__PURE__ */u("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})})}function I(){/* @__PURE__ */
|
|
5
|
-
return u("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:/* @__PURE__ */u("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}function q({children:n}){const[i,l]=a(!1),[d,f]=a({message:""}),[h,b]=a(0),g=o(),p=o(null),v=o(0),y=o([]),x=o(null),w=o(null),k=s(e=>{p.current=e.id,g.current=e.resolve,b(e.id),f(e.options),l(!0)},[]),N=s(e=>{const t="string"==typeof e?{message:e}:e;return new Promise(e=>{const n={id:++v.current,options:t,resolve:e};null===p.current?k(n):y.current.push(n)})},[k]),[L,C]=a(!1),[E,P]=a({message:""}),[j,W]=a(""),F=o(),T=s(e=>(P(e),W(""),C(!0),new Promise(e=>{F.current=e})),[]),[A,K]=a(!1),[q,O]=a({}),[Q,V]=a(""),Z=o(),G=s(e=>{const t="string"==typeof e?{message:e}:e;return O(t),V(t.defaultValue??""),K(!0),new Promise(e=>{Z.current=e})},[]);r(()=>{M=N,z=T,R=G},[N,T,G]);const J=(e,t)=>{if(p.current!==e)return;const n=g.current,r=y.current.shift();r?k(r):(p.current=null,g.current=void 0,l(!1)),n?.(t)},U=e=>{C(!1),W(""),F.current?.(e)},X=e=>{if(e){const e=Q.trim();if(!e&&!q.allowEmpty)return K(!1),void Z.current?.(null);K(!1),Z.current?.(e)}else K(!1),Z.current?.(null)},Y=d.variant||(d.confirmLabel?.toLowerCase().includes("delete")||d.message.toLowerCase().includes("delete")?"danger":"info"),_=B[Y],ee=B["warning"===E.variant?"warning":"danger"],te=E.confirmWord,ne=null==te||j===te,re=e().dialog,[oe,ie]=t(re.typeToConfirm);/* @__PURE__ */
|
|
6
|
-
return c($.Provider,{value:N,children:[n,
|
|
7
|
-
/* @__PURE__ */u(D,{open:i,onClose:()=>J(h,!1),initialFocus:x,footer:/* @__PURE__ */c(m,{children:[
|
|
8
|
-
/* @__PURE__ */u("button",{ref:x,type:"button",onClick:()=>J(h,!1),className:S,children:d.cancelLabel||re.cancel}),
|
|
9
|
-
/* @__PURE__ */u("button",{type:"button",onClick:()=>J(h,!0),className:`px-4 py-2 text-sm font-medium rounded-lg ${_.button}`,children:d.confirmLabel||re.ok})]}),children:/* @__PURE__ */c("div",{className:"flex gap-4",children:[
|
|
10
|
-
/* @__PURE__ */u("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${_.icon}`,children:/* @__PURE__ */u(H,{})}),
|
|
11
|
-
/* @__PURE__ */c("div",{className:"flex-1",children:[
|
|
12
|
-
/* @__PURE__ */u("h2",{className:"text-base font-semibold text-gray-900",children:d.title||re.confirmTitle}),
|
|
13
|
-
/* @__PURE__ */u("p",{className:"mt-2 text-sm text-gray-600",children:d.message})]})]})}),
|
|
14
|
-
/* @__PURE__ */c(D,{open:L,onClose:()=>U(!1),initialFocus:null!=te?void 0:w,footer:/* @__PURE__ */c(m,{children:[
|
|
15
|
-
/* @__PURE__ */u("button",{ref:w,type:"button",onClick:()=>U(!1),className:S,children:E.cancelLabel||re.destructiveCancel}),
|
|
16
|
-
/* @__PURE__ */u("button",{type:"button",onClick:()=>U(!0),disabled:!ne,className:`px-4 py-2 text-sm font-medium rounded-lg disabled:opacity-40 ${ee.button}`,children:te??E.confirmLabel??re.destructiveConfirm})]}),children:[
|
|
17
|
-
/* @__PURE__ */u("button",{type:"button",onClick:()=>U(!1),"aria-label":re.close,className:"absolute right-4 top-4 rounded-md p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600",children:/* @__PURE__ */u(I,{})}),
|
|
18
|
-
/* @__PURE__ */c("div",{className:"flex gap-4",children:[
|
|
19
|
-
/* @__PURE__ */u("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${ee.icon}`,children:/* @__PURE__ */u(H,{})}),
|
|
20
|
-
/* @__PURE__ */c("div",{className:"flex-1",children:[
|
|
21
|
-
/* @__PURE__ */u("h2",{className:"text-base font-semibold text-gray-900 pr-6",children:E.title||re.destructiveTitle}),
|
|
22
|
-
/* @__PURE__ */u("p",{className:"mt-2 text-sm text-gray-600",children:E.message}),null!=te&&/* @__PURE__ */c(m,{children:[
|
|
23
|
-
/* @__PURE__ */c("p",{className:"mt-3 text-sm text-gray-700",children:[oe,
|
|
24
|
-
/* @__PURE__ */u("kbd",{className:"rounded border border-gray-300 bg-gray-50 px-1.5 py-0.5 text-xs font-bold text-red-600 font-mono",children:te}),ie]}),
|
|
25
|
-
/* @__PURE__ */u("input",{autoFocus:!0,type:"text",value:j,onChange:e=>W(e.target.value),onKeyDown:e=>{"Enter"===e.key&&j===te&&U(!0)},placeholder:te,className:"mt-2 w-full rounded-md border border-gray-300 px-3 py-2 text-sm focus:border-red-500"})]})]})]})]}),
|
|
26
|
-
/* @__PURE__ */c(D,{open:A,onClose:()=>X(!1),title:q.title||re.promptTitle,footer:/* @__PURE__ */c(m,{children:[
|
|
27
|
-
/* @__PURE__ */u("button",{type:"button",onClick:()=>X(!1),className:S,children:q.cancelLabel||re.cancel}),
|
|
28
|
-
/* @__PURE__ */u("button",{type:"button",onClick:()=>X(!0),disabled:!q.allowEmpty&&!Q.trim(),className:"bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 text-sm font-medium rounded-lg disabled:opacity-40",children:q.confirmLabel||re.ok})]}),children:[q.message&&/* @__PURE__ */u("p",{className:"text-sm text-gray-600",children:q.message}),
|
|
29
|
-
/* @__PURE__ */u("input",{autoFocus:!0,type:"text",value:Q,onChange:e=>V(e.target.value),onKeyDown:e=>{"Enter"===e.key?X(!0):"Escape"===e.key&&X(!1)},onFocus:e=>e.target.select(),placeholder:q.placeholder,className:"mt-3 w-full rounded-md border border-gray-300 px-3 py-2 text-sm focus:border-blue-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-accent)]"})]})]})}export{q as ConfirmProvider,D as Dialog,N as OVERLAY_OPEN_EVENT,j as Z_LAYERS,T as confirm,A as confirmDestructive,L as dismissPopups,C as onOverlayOpen,K as prompt,w as registerModalEscapeInterceptor,k as runEscapeInterceptors,F as useConfirm,P as useDismissPopupsOnOpen,b as useFocusTrap,v as useScrollLock};
|
package/dist/chunk-OQDWLHZI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createContext as e,useContext as o,useMemo as t,useEffect as a}from"react";import{jsx as n}from"react/jsx-runtime";var i=/* @__PURE__ */new Map;function r(e,o){const t=`${e}|${JSON.stringify(o)}`;let a=i.get(t);return a||(a=new Intl.NumberFormat(e,o),i.set(t,a)),a}function s(e,o){return o?r(o,{maximumFractionDigits:20}).format(e):String(e)}function l(e,o,t){return t?r(t,{minimumFractionDigits:o,maximumFractionDigits:o}).format(e):e.toFixed(o)}function d(e,o,t){return t?r(t,{style:"percent",minimumFractionDigits:o,maximumFractionDigits:o}).format(e/100):`${e.toFixed(o)}%`}function c(e){const o=o=>s(o,e),t=o=>function(e,o){return o?r(o,{}).format(e):e.toLocaleString()}(o,e),a=(o,t)=>l(o,t,e);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",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",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",closeOthers:"Close other tabs",closeRight:"Close tabs to the right",closeAll:"Close all tabs",unsaved:"Unsaved changes",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"},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}`,last2Weeks:"Last 2 Weeks",lastMonth:"Last Month",last3Months:"Last 3 Months",last6Months:"Last 6 Months",last12Months:"Last 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=>`${o(e)} selected`,allLoaded:(e,o)=>`All ${t(e)} ${o} loaded`,count:(e,o)=>`${t(e)} ${o}`,loadedOf:(e,o,a)=>`${t(e)} of ${t(o)} ${a}`,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,t)=>`${e} was not added — ${o(t)} ${1===t?"file":"files"} is the limit`,bytes:e=>`${o(e)} B`,kilobytes:e=>`${o(e)} KB`,megabytes:e=>`${a(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…",cover:"Cover",add:"Add",addMedia:"Add media",empty:"No media.",removeItem:e=>`Remove ${e}`,reorder:(e,t,a)=>`${e}, item ${o(t)} of ${o(a)}. Use arrow keys to reorder.`},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",copiedLabel:e=>`${e} copied`,failed:"Could not copy to the clipboard"},keypad:{backspace:"Backspace",enter:"Enter"},banner:{dismiss:"Dismiss"},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 ${o(e)} characters to search...`,navigate:"navigate",open:"open",close:"close",enterKey:"Enter",escKey:"Esc"},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"},markdown:{screenshot:"Screenshot"},severity:{success:"ok",warning:"warning",danger:"critical",unrecognised:e=>`unrecognised severity ${e}`},meter:{noData:"no data",warningAt:e=>`warning ≥ ${o(e)}`,criticalAt:e=>`critical ≥ ${o(e)}`,noReading:"no reading",noBudget:"no budget",ofBudget:e=>`${e} of budget`,budget:"budget",hoursMinutes:(e,t)=>`${o(e)}h ${o(t)}m`,minutesSeconds:(e,t)=>`${o(e)}m ${o(t)}s`,seconds:e=>`${o(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,t,a)=>`Time window — showing ${e} to ${t} of ${o(a)} intervals`,overIntervals:(e,t)=>`${e.join(", ")} over ${o(t)} intervals`,acrossCategories:(e,t)=>`${e.join(", ")} across ${o(t)} categories`,acrossMeasures:(e,t)=>`${e.join(", ")} across ${o(t)} measures`,breakdown:(e,t)=>`Breakdown of ${e} across ${o(t)} segments`,funnel:(e,t,a)=>`Funnel of ${o(e)} stages, ${t} down to ${a}`,radialTrack:e=>`${o(e)} categories, as concentric proportions`,radialCycle:e=>`${o(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,t)=>`${e}: five-number summary for ${o(t)} categories`,outliers:e=>`${o(e)} outlier${e>1?"s":""} beyond the whiskers`,price:"Price",ohlc:(e,t)=>`${e}: open, high, low and close across ${o(t)} periods`,closedAbove:"Closed above its open",closedBelow:"Closed below its open",noFlows:"No flows to chart.",chord:e=>`Flows between ${o(e)} participants`,noStages:"No stages to chart.",ofFirstStage:"Of first stage",droppedHere:"Dropped here",intensity:"Intensity",noActivity:"No activity in this window.",heatmap:(e,t,a)=>`${e} across ${o(t)} rows and ${o(a)} columns`,countAxis:"count",histogram:(e,t,a)=>`${e}: ${o(t)} bins over ${o(a)} 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,t)=>`${e}: low and high across ${o(t)} categories`,nothingToRank:"Nothing to rank in this window.",emphasised:"(emphasised)",sankey:(e,t)=>`Flow between ${o(e)} nodes over ${o(t)} links`,noObservations:"No observations in this window.",xAxis:"x",yAxis:"y",size:"Size",scatter:(e,o,t)=>`${e.join(", ")}: ${o} against ${t}`,outsideRange:e=>`${o(e)} ${1===e?"point":"points"} outside the shown range`,waterfall:(e,t,a)=>`Waterfall of ${o(e)} steps from ${t} to ${a}`,balance:"Balance",increase:"Increase",decrease:"Decrease",runningTotal:"Running total",sunburst:(e,t)=>`Hierarchy of ${e} across ${o(t)} levels`,treemap:e=>`Treemap of ${o(e)} items`,trendUp:"up",trendDown:"down",trendFlat:"flat"},timeline:{days:e=>`${t(e)} days`,daysToToday:e=>`${t(e)} days to today`,notReached:"Not yet reached",next:"Next",more:e=>`+${o(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,t)=>`${o(e)} events · ${t.join(", ")}`,started:e=>`started ${e}`,duration:e=>`${t(e)} day${1===e?"":"s"}`,reached:(e,t)=>`${o(e)} of ${o(t)} 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:o=>`${((o,t)=>d(o,t,e))(o,0)} overall`,inStock:e=>`${t(e)} pc in stock`,noReport:"No production report filed yet",leadTime:e=>`${t(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=>`${o(e)} items`,pieces:e=>`${o(e)} pcs`,split:(e,t)=>`(${o(e)} instr / ${o(t)} loaded)`,added:(e,t)=>`${o(e)} new (${o(t)} pcs)`,fill:(e,t)=>`${a(e,1)} / ${o(t)} m³`,total:"Total:",instructed:e=>`${a(e,2)} m³ instruction`,loaded:e=>`${a(e,2)} m³ loaded`,volume:e=>`${a(e,2)} m³`,noVolume:"Volume: N/A (no volume data for these part numbers)"},toast:{notification:"Notification"}}}var m=c(),u=/* @__PURE__ */new Map;var h=e(m),p=e(null),g=/* @__PURE__ */new Set;var $=m,f={};function w(){return $}function v({value:e=f,locale:i,children:r}){const s=o(p),l=t(()=>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".`)))}}(i),[i]),d=void 0===i?s?.locale:l,w=t(()=>{const o=function(e){if(!e)return m;let o=u.get(e);return o||(o=c(e),u.set(e,o)),o}(d),t={};for(const a of Object.keys(o))t[a]={...o[a],...e[a]??{}};return t},[e,d]),v=t(()=>({locale:d}),[d]),y=null!==s;return a(()=>{if(!y)return $=w,()=>{$===w&&($=m)}},[w,y]),/* @__PURE__ */n(p.Provider,{value:v,children:/* @__PURE__ */n(h.Provider,{value:w,children:r})})}function y(){return o(h)}function b(){return o(p)?.locale}function C(e){const[o="",...t]=e("\0").split("\0");return[o,t.join("")]}export{m as DEFAULT_SHELL_STRINGS,v as ShellStringsProvider,w as currentShellStrings,l as formatFixed,d as formatPercent,s as formatPlain,C as splitAround,b as useShellLocale,y as useShellStrings};
|
package/dist/chunk-OWSAMA3I.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import{toast_default as e}from"./chunk-VEGMDXT4.js";import{createContext as t,useContext as n,useRef as r,useState as o,useEffect as a}from"react";import*as i from"pdfjs-dist";import{createPortal as s}from"react-dom";import{jsx as l,jsxs as c}from"react/jsx-runtime";function d(e,t,n){return new Error(`The response for ${e} is not a WebAssembly module (got ${function(e){if(0===e.length)return"an empty response";const t=Array.from(e.subarray(0,24)).map(e=>e>=32&&e<127?String.fromCharCode(e):".").join("");return`${e.length} bytes starting "${t}"`}(n)}). The bundler did not emit "${t}" as an asset, and the host answered with a fallback page instead of a 404. Serve pdfjs-dist/wasm/ yourself and point window.__REACT_OS_SHELL_PDF_WASM__ at it.`)}var u=t(null);function h({children:e}){const t=n(u);return t?s(e,t):/* @__PURE__ */l("div",{className:"flex shrink-0 items-center gap-1 border-b border-gray-200 bg-gray-50 px-3 py-2 text-xs",children:e})}"undefined"==typeof window||i.GlobalWorkerOptions.workerSrc||(i.GlobalWorkerOptions.workerSrc=`https://unpkg.com/pdfjs-dist@${i.version}/build/pdf.worker.min.mjs`);var m={"jbig2.wasm":new URL("pdfjs-dist/wasm/jbig2.wasm",import.meta.url).href,"openjpeg.wasm":new URL("pdfjs-dist/wasm/openjpeg.wasm",import.meta.url).href},p=class{async fetch({kind:e,filename:t}){if("wasmUrl"!==e)throw new Error(`Ensure that the \`${e}\` API parameter is provided.`);const n=m[t];if(!n)throw new Error(`No bundled pdf.js wasm module for "${t}".`);const r=await fetch(n);if(!r.ok)throw new Error(`Unable to load wasm data at: ${n}`);const o=new Uint8Array(await r.arrayBuffer());if(!function(e){return e.length>=4&&0===e[0]&&97===e[1]&&115===e[2]&&109===e[3]}(o))throw d(n,t,o);return o}};function f(){const e="undefined"!=typeof window?window.__REACT_OS_SHELL_PDF_WASM__:void 0;return"string"==typeof e&&e?{wasmUrl:e.endsWith("/")?e:`${e}/`}:{BinaryDataFactory:p}}var g=[50,75,100,125,150,200,300,400];function w(e,t,n){const r=(t.width-40)/n.width,o="page"===e?Math.min(r,(t.height-40)/n.height):r;return Math.min(Math.max(o,.3),4)}function v({url:t,filename:n,fit:s="width",onDownload:d,onEmail:u}){const m=r(null),p=r(null),v=r(null),[y,x]=o(null),[b,k]=o(1),[C,L]=o(0),[N,M]=o(1),[j,E]=o(!0),[D,A]=o(!0);a(()=>{let n=!1;return A(!0),k(1),i.getDocument({url:t,...f()}).promise.then(e=>{n||(x(e),L(e.numPages),A(!1))}).catch(()=>{n||(e.error("Failed to load PDF"),A(!1))}),()=>{n=!0}},[t]),a(()=>{if(!y||!j||!v.current)return;const e=()=>{const e=v.current;e&&y.getPage(b).then(t=>{if(!v.current)return;const n=t.getViewport({scale:1}),r=w(s,{width:e.clientWidth,height:e.clientHeight},{width:n.width,height:n.height});M(e=>Math.abs(e-r)<.005?e:r)})};e();const t=new ResizeObserver(e);return t.observe(v.current),()=>t.disconnect()},[y,b,j,s]),a(()=>{if(!y||!m.current)return;let e=!1,t=null,n=null;return y.getPage(b).then(r=>{if(e||!m.current)return;const o=r.getViewport({scale:N}),a=m.current;a.width=o.width,a.height=o.height,a.style.width=`${o.width}px`,a.style.height=`${o.height}px`;const s=a.getContext("2d");t=r.render({canvas:a,canvasContext:s,viewport:o}),t.promise.catch(()=>{});const l=p.current;l&&(l.replaceChildren(),l.style.setProperty("--total-scale-factor",String(o.scale)),n=new i.TextLayer({textContentSource:r.streamTextContent(),container:l,viewport:o}),n.render().then(()=>{if(e)return;const t=document.createElement("div");t.className="endOfContent",l.append(t)}).catch(()=>{}))}),()=>{e=!0,t?.cancel(),n?.cancel()}},[y,b,N]),a(()=>{const e=()=>p.current?.classList.remove("selecting");return window.addEventListener("pointerup",e),()=>window.removeEventListener("pointerup",e)},[]);const _="page"===s?"Fit page":"Fit width",P="px-2 py-1 rounded hover:bg-gray-200 transition-colors text-gray-600 flex items-center gap-1";/* @__PURE__ */
|
|
2
|
-
return c("div",{className:"flex flex-col h-full",children:[
|
|
3
|
-
/* @__PURE__ */c(h,{children:[
|
|
4
|
-
/* @__PURE__ */l("button",{"aria-label":"Previous page",onClick:()=>k(e=>Math.max(1,e-1)),disabled:b<=1,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */l("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})})}),
|
|
5
|
-
/* @__PURE__ */c("span",{className:"text-gray-600 font-medium tabular-nums",children:[b," / ",C]}),
|
|
6
|
-
/* @__PURE__ */l("button",{"aria-label":"Next page",onClick:()=>k(e=>Math.min(C,e+1)),disabled:b>=C,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */l("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})}),
|
|
7
|
-
/* @__PURE__ */l("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
|
|
8
|
-
/* @__PURE__ */l("button",{onClick:()=>{E(!1),M(e=>Math.max(.3,Math.round(100*(e-.25))/100))},className:P,children:"−"}),
|
|
9
|
-
/* @__PURE__ */c("select",{value:j?"fit":g.includes(Math.round(100*N))?Math.round(100*N):"custom",onChange:e=>{const t=e.target.value;"fit"!==t?"custom"!==t&&(E(!1),M(Number(t)/100)):E(!0)},className:"bg-transparent hover:bg-gray-200 rounded px-1 py-1 text-gray-600 tabular-nums cursor-pointer focus:outline-none focus:ring-1 focus:ring-blue-400",title:"Zoom",children:[
|
|
10
|
-
/* @__PURE__ */l("option",{value:"fit",children:_}),!j&&!g.includes(Math.round(100*N))&&/* @__PURE__ */c("option",{value:"custom",children:[Math.round(100*N),"%"]}),g.map(e=>/* @__PURE__ */c("option",{value:e,children:[e,"%"]},e))]}),
|
|
11
|
-
/* @__PURE__ */l("button",{onClick:()=>{E(!1),M(e=>Math.min(4,Math.round(100*(e+.25))/100))},className:P,children:"+"}),
|
|
12
|
-
/* @__PURE__ */l("button",{onClick:()=>E(!0),className:P+(j?" bg-gray-200 text-gray-900":""),title:`${_} — auto-tracks the container size until you zoom manually`,children:"Fit"}),
|
|
13
|
-
/* @__PURE__ */l("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
|
|
14
|
-
/* @__PURE__ */c("button",{onClick:()=>{if(!y)return;const t=window.open("","_blank");if(!t)return void e.error("Allow popups to print");const r=[];for(let e=1;e<=C;e++)r.push(y.getPage(e).then(e=>{const t=e.getViewport({scale:2}),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,e.render({canvas:n,canvasContext:n.getContext("2d"),viewport:t}).promise.then(()=>n.toDataURL())}));Promise.all(r).then(e=>{t.document.write(`<html><head><title>${n}</title><style>@media print{body{margin:0}img{width:100%;page-break-after:always}}</style></head><body>`),t.document.write(e.map(e=>`<img src="${e}"/>`).join("")),t.document.write("</body></html>"),t.document.close(),setTimeout(()=>{t.print(),t.close()},300)})},className:P,children:[
|
|
15
|
-
/* @__PURE__ */l("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.72 13.829c-.24.03-.48.062-.72.096m.72-.096a42.415 42.415 0 0110.56 0m-10.56 0L6.34 18m10.94-4.171c.24.03.48.062.72.096m-.72-.096L17.66 18m0 0l.229 2.523a1.125 1.125 0 01-1.12 1.227H7.231c-.662 0-1.18-.568-1.12-1.227L6.34 18m11.318 0h1.091A2.25 2.25 0 0021 15.75V9.456c0-1.081-.768-2.015-1.837-2.175a48.055 48.055 0 00-1.913-.247M6.34 18H5.25A2.25 2.25 0 013 15.75V9.456c0-1.081.768-2.015 1.837-2.175a48.041 48.041 0 011.913-.247m10.5 0a48.536 48.536 0 00-10.5 0m10.5 0V3.375c0-.621-.504-1.125-1.125-1.125h-8.25c-.621 0-1.125.504-1.125 1.125v3.659M18 10.5h.008v.008H18V10.5zm-3 0h.008v.008H15V10.5z"})}),"Print"]}),
|
|
16
|
-
/* @__PURE__ */c("button",{onClick:d??(()=>{const e=document.createElement("a");e.href=t,e.download=n,e.click()}),className:P,children:[
|
|
17
|
-
/* @__PURE__ */l("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"})}),"Download"]}),u&&/* @__PURE__ */c("button",{onClick:u,className:P,children:[
|
|
18
|
-
/* @__PURE__ */l("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75"})}),"Email"]})]}),
|
|
19
|
-
/* @__PURE__ */l("div",{ref:v,className:"flex-1 overflow-auto bg-gray-100 outline-none",tabIndex:0,onWheel:e=>{if(!y)return;if(e.ctrlKey||e.metaKey)return;const t=v.current;if(!t)return;const n=t.scrollTop<=0,r=t.scrollTop+t.clientHeight>=t.scrollHeight-1;e.deltaY>0&&r&&b<C?(e.preventDefault(),k(e=>Math.min(C,e+1)),requestAnimationFrame(()=>{v.current&&(v.current.scrollTop=0)})):e.deltaY<0&&n&&b>1&&(e.preventDefault(),k(e=>Math.max(1,e-1)),requestAnimationFrame(()=>{v.current&&(v.current.scrollTop=v.current.scrollHeight)}))},onKeyDown:e=>{if(!y)return;const t=(document.activeElement?.tagName||"").toLowerCase();"input"===t||"textarea"===t||document.activeElement?.isContentEditable||("PageDown"===e.key||"ArrowRight"===e.key?b<C&&(e.preventDefault(),k(e=>Math.min(C,e+1))):"PageUp"===e.key||"ArrowLeft"===e.key?b>1&&(e.preventDefault(),k(e=>Math.max(1,e-1))):"Home"===e.key?(e.preventDefault(),k(1)):"End"===e.key&&(e.preventDefault(),k(C)))},children:D?/* @__PURE__ */l("div",{className:"flex items-center justify-center h-full text-gray-400 text-sm",children:"Loading PDF..."}):/* @__PURE__ */c("div",{className:"min-h-full flex items-center justify-center p-4",children:[
|
|
20
|
-
/* @__PURE__ */l("style",{children:'\n.preview-pdf-textlayer {\n position: absolute;\n inset: 0;\n overflow: clip;\n line-height: 1;\n text-align: initial;\n text-size-adjust: none;\n forced-color-adjust: none;\n transform-origin: 0 0;\n caret-color: CanvasText;\n --min-font-size: 1;\n --text-scale-factor: calc(var(--total-scale-factor, 1) * var(--min-font-size));\n --min-font-size-inv: calc(1 / var(--min-font-size));\n}\n.preview-pdf-textlayer :is(span, br) {\n color: transparent;\n position: absolute;\n white-space: pre;\n cursor: text;\n transform-origin: 0% 0%;\n}\n.preview-pdf-textlayer > :not(.markedContent),\n.preview-pdf-textlayer .markedContent span:not(.markedContent) {\n z-index: 1;\n --font-height: 0;\n font-size: calc(var(--text-scale-factor) * var(--font-height));\n --scale-x: 1;\n --rotate: 0deg;\n transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));\n}\n.preview-pdf-textlayer .markedContent {\n display: contents;\n}\n.preview-pdf-textlayer span[role="img"] {\n user-select: none;\n cursor: default;\n}\n.preview-pdf-textlayer ::selection {\n background: rgba(0, 80, 255, 0.25);\n}\n.preview-pdf-textlayer br::selection {\n background: transparent;\n}\n.preview-pdf-textlayer .endOfContent {\n display: block;\n position: absolute;\n inset: 100% 0 0;\n z-index: 0;\n cursor: default;\n user-select: none;\n}\n.preview-pdf-textlayer.selecting .endOfContent {\n top: 0;\n}\n'}),
|
|
21
|
-
/* @__PURE__ */c("div",{className:"relative shadow-lg rounded",children:[
|
|
22
|
-
/* @__PURE__ */l("canvas",{ref:m,className:"block rounded"}),
|
|
23
|
-
/* @__PURE__ */l("div",{ref:p,className:"preview-pdf-textlayer",onPointerDown:e=>e.currentTarget.classList.add("selecting")})]})]})})]})}export{h as PanelActions,v as PdfViewer,u as ToolbarSlotContext,w as fitScale};
|
package/dist/chunk-U4GTZPXP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="4.137.1",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-VEGMDXT4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{currentShellStrings as t}from"./chunk-OQDWLHZI.js";var e="http://www.w3.org/2000/svg",n={},o=/* @__PURE__ */new Map;function s(t,e){let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.className=e,document.body.appendChild(n)),n}var r={success:"M5 13l4 4L19 7",error:"M6 18L18 6M6 6l12 12",warning:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z",info:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",loading:"M12 3a9 9 0 019 9",bell:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"};function i(t,n){const o=document.createElementNS(e,"svg");o.setAttribute("class",n),o.setAttribute("fill","none"),o.setAttribute("viewBox","0 0 24 24"),o.setAttribute("stroke","currentColor"),o.setAttribute("stroke-width","2");const s=document.createElementNS(e,"path");return s.setAttribute("stroke-linecap","round"),"loading"!==t&&s.setAttribute("stroke-linejoin","round"),s.setAttribute("d",r[t]),o.appendChild(s),o}function a(t,e){const n=document.createElement("div");return n.className=t,void 0!==e&&(n.textContent=e),n}function c(t,e,r){const c={...n,...r},l=c.placement??"top",d=c.sticky??!1,u=`${l}|${t}|${e}`;if(c.dedupe){const t=o.get(u);if(t)return t.restart(),{dismiss:t.dismiss}}"loading"!==t&&import("./sounds-OMHXVVQ4.js").then(e=>{"success"===t?e.playSuccess():"error"===t?e.playError():e.playNotification()}).catch(()=>{});const m="bottom"===l?s("toast-container-bottom","fixed bottom-4 left-1/2 -translate-x-1/2 z-[9999] flex flex-col-reverse gap-2 items-center pointer-events-none"):s("toast-container","fixed top-4 left-1/2 -translate-x-1/2 z-[9999] flex flex-col gap-2 items-center pointer-events-none"),p="bottom"===l?"translateY(10px)":"translateY(-10px)",f=a("pointer-events-auto cursor-pointer rosh-toast");f.style.opacity="0",f.style.transform=`${p} scale(0.95)`,f.setAttribute("role","error"===t?"alert":"status"),f.setAttribute("aria-atomic","true"),f.appendChild(i(t,`h-4 w-4 rosh-tone-${t}${"loading"===t?" animate-spin":""}`));const h=document.createElement("span");let y;h.textContent=e,f.appendChild(h),m.appendChild(f),requestAnimationFrame(()=>{f.style.opacity="1",f.style.transform="translateY(0) scale(1)"});let v=!1;const g=()=>{v||(v=!0,y&&clearTimeout(y),o.delete(u),f.style.opacity="0",f.style.transform=`${p} scale(0.95)`,setTimeout(()=>f.remove(),300))},b=c.duration??("info"===t?4500:3e3),x=()=>{y&&clearTimeout(y),d||(y=setTimeout(g,b))};return x(),f.addEventListener("mouseenter",()=>{y&&clearTimeout(y)}),f.addEventListener("mouseleave",()=>{v||x()}),f.addEventListener("click",g),o.set(u,{el:f,restart:x,dismiss:g}),{dismiss:g}}var l={success:(t,e)=>c("success",t,e),error:(t,e)=>c("error",t,e),warning:(t,e)=>c("warning",t,e),info:(t,e)=>c("info",t,e),notify:(e,n)=>function(e,n){import("./sounds-OMHXVVQ4.js").then(t=>t.playNotification()).catch(()=>{});const o=s("notif-container","fixed top-4 right-4 z-[9999] flex flex-col gap-3 items-end pointer-events-none"),r=a("pointer-events-auto cursor-pointer rosh-notif");r.style.opacity="0",r.style.transform="translateX(30px) scale(0.95)";const c=a("rosh-notif-badge");c.appendChild(i("bell","h-5 w-5"));const l=a("rosh-notif-body");l.append(a("rosh-notif-title",t().toast.notification),a("notif-msg rosh-notif-msg",e));const d=document.createElement("button");d.className="rosh-notif-close",d.textContent="×",r.append(c,l,d);const u=()=>{r.style.opacity="0",r.style.transform="translateX(30px) scale(0.95)",setTimeout(()=>r.remove(),300)};d.addEventListener("click",t=>{t.stopPropagation(),u()}),r.addEventListener("click",u),o.appendChild(r),requestAnimationFrame(()=>{r.style.opacity="1",r.style.transform="translateX(0) scale(1)"}),setTimeout(u,n?.duration??1e4)}(e,n),promise:(t,e,n)=>{const o=c("loading",e.loading,{...n,sticky:!0});return t.then(t=>{o.dismiss(),c("success","function"==typeof e.success?e.success(t):e.success,n)},t=>{o.dismiss(),c("error","function"==typeof e.error?e.error(t):e.error,n)}),t},configure:t=>{n={...t}}};export{l as toast_default};
|