@marimo-team/islands 0.19.7-dev35 → 0.19.7-dev37
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/dist/{glide-data-editor-DHsjQhtP.js → glide-data-editor-C3T7HsLi.js} +1 -1
- package/dist/main.js +32 -21
- package/dist/style.css +1 -1
- package/dist/{types-DBsIRhMX.js → types-CzEZ3EWT.js} +1 -1
- package/package.json +1 -1
- package/src/components/data-table/TableActions.tsx +5 -3
- package/src/components/data-table/download-actions.tsx +7 -2
- package/src/components/data-table/pagination.tsx +4 -4
- package/src/components/debug/indicator.tsx +1 -1
- package/src/components/editor/actions/useNotebookActions.tsx +4 -2
- package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +1 -1
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +6 -4
- package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +178 -0
- package/src/components/editor/chrome/wrapper/footer.tsx +1 -1
- package/src/components/editor/chrome/wrapper/sidebar.tsx +1 -1
- package/src/components/editor/controls/Controls.tsx +2 -2
- package/src/components/editor/controls/notebook-menu-dropdown.tsx +1 -1
- package/src/components/editor/file-tree/file-explorer.tsx +1 -1
- package/src/components/editor/header/status.tsx +1 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +13 -4
- package/src/components/home/components.tsx +1 -1
- package/src/components/static-html/static-banner.tsx +1 -1
- package/src/components/ui/dropdown-menu.tsx +1 -1
- package/src/components/ui/table.tsx +1 -1
- package/src/core/export/__tests__/hooks.test.ts +60 -58
- package/src/core/export/hooks.ts +71 -31
- package/src/core/network/types.ts +4 -0
- package/src/css/app/print.css +0 -14
- package/src/utils/__tests__/async-capture-tracker.test.ts +353 -0
- package/src/utils/__tests__/download.test.tsx +5 -114
- package/src/utils/async-capture-tracker.ts +168 -0
- package/src/utils/download.ts +17 -57
- package/src/utils/html-to-image.ts +9 -12
|
@@ -7,7 +7,7 @@ import { t as require_compiler_runtime } from "./compiler-runtime-DHFVbq0b.js";
|
|
|
7
7
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-B59Bw3-w.js";
|
|
8
8
|
import "./Combination-Bg-xN8JV.js";
|
|
9
9
|
import { O as logNever, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, t as Label, u as SelectValue } from "./label-C4PtQcza.js";
|
|
10
|
-
import { S as DropdownMenuSubTrigger, W as ErrorBoundary, b as DropdownMenuSub, fn as Trash, g as DropdownMenuItem, hn as Pencil, ht as capitalize_default, i as Input, m as DropdownMenuContent, mn as Plus, mt as marked, p as DropdownMenu, pt as useNonce, t as BulkEdit, v as DropdownMenuPortal, x as DropdownMenuSubContent, y as DropdownMenuSeparator } from "./types-
|
|
10
|
+
import { S as DropdownMenuSubTrigger, W as ErrorBoundary, b as DropdownMenuSub, fn as Trash, g as DropdownMenuItem, hn as Pencil, ht as capitalize_default, i as Input, m as DropdownMenuContent, mn as Plus, mt as marked, p as DropdownMenu, pt as useNonce, t as BulkEdit, v as DropdownMenuPortal, x as DropdownMenuSubContent, y as DropdownMenuSeparator } from "./types-CzEZ3EWT.js";
|
|
11
11
|
import { l as Events, t as Button } from "./button-BWvsJ2Wr.js";
|
|
12
12
|
import { s as Logger } from "./hotkeys-B5WnGZXF.js";
|
|
13
13
|
import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
|
package/dist/main.js
CHANGED
|
@@ -10,7 +10,7 @@ import { C as useLayoutEffect2, D as dispatchDiscreteCustomEvent, E as Primitive
|
|
|
10
10
|
import { A as useOnMount, B as Table$1, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, G as ChartColumn, H as ListFilter, I as $fb18d541ea1ad717$export$ad991b66133851cf, K as Calendar, L as $5a387cc49350e6db$export$722debc0e56fea39, M as Badge, N as createReducerAndAtoms, O as TIME_UNIT_DESCRIPTIONS, P as startCase_default, R as Type, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as Hash, V as SquareFunction, W as ChartPie, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as useOnUnmount, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON, z as ToggleLeft } from "./spec-Dmb1KfK3.js";
|
|
11
11
|
import { t as Check } from "./check-CM_kewwn.js";
|
|
12
12
|
import { A as $a916eb452884faea$export$b7a616150fdb9f44, C as useDirection, D as assertNever, E as usePrevious$1, I as X, M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, N as $18f2051aff69b9bf$export$a54013f0d02a8f82, O as logNever, P as $b5e257d569688ac6$export$535bd6ca7f90a273, R as ChevronDown, S as Trigger$5, T as clamp$2, _ as menuItemVariants, a as SelectGroup, b as menuSubTriggerVariants, c as SelectSeparator, d as NativeSelect, f as selectStyles, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, l as SelectTrigger, m as menuContentCommon, n as Primitive$1, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, s as SelectLabel, t as Label, u as SelectValue, v as menuLabelVariants, w as createCollection, x as Icon, y as menuSeparatorVariants } from "./label-C4PtQcza.js";
|
|
13
|
-
import { $ as $514c0188e459b4c0$export$9afb8bc826b033ea, $t as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, A as ItemIndicator, At as $6db58dc88e78b024$export$2f817fcdc4b89ae0, B as createMenuScope, Bt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, C as DropdownMenuTrigger, Ct as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, D as Content2$3, Dt as $6c7bd7858deea686$export$cd11ab140839f11d, E as CheckboxItem, Et as $701a24aa0da5b062$export$ea18c227d4417cc3, F as Root3, Ft as $507fabe10e71c6fb$export$630ff653c5ada6a9, G as $3985021b0ad6602f$export$37fb8590cf2c088c, Gt as $df56164dff5785e2$export$4338b53315abf666, H as Root$6, Ht as $b4b717babfbb907b$export$bebd5a1431fec25d, I as Separator, It as $f6c31cce2adf654f$export$45712eceda6fad21, J as $a049562f99e7db0e$export$f9c6924e160136d1, Jt as $c87311424ea30a05$export$78551043582a6a98, K as $3985021b0ad6602f$export$f5b8910cec6cf069, Kt as $313b98861ee5dd6c$export$d6875122194c7b44, L as Sub, Lt as _class_private_field_init, M as Portal$2, Mt as $6179b936705e76d3$export$ae780daf29e6d456, N as RadioGroup$2, Nt as $9ab94262bd0047c7$export$420e68273165f4ec, O as Group$1, Ot as $fca6afa0e843324b$export$87b761675e8eaa10, P as RadioItem, Pt as $3ad3f6e1647bc98d$export$80f3e147d781571c, Q as $514c0188e459b4c0$export$5f1af8db9871e1d6, Qt as $7215afc6de606d6b$export$de79e2c695e052f3, R as SubContent, Rt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, S as DropdownMenuSubTrigger, St as $e5be200c675c3b3a$export$dad6ae84456c676a, T as Arrow2, Tt as $f7dceffc5ad7768b$export$4e328f61c538687f, U as createRovingFocusGroupScope, Ut as $99facab73266f662$export$5add1d006293d136, V as Item$2, Vt as $b4b717babfbb907b$export$4c063cf1350e6fed, W as ErrorBoundary, Wt as $e9faafb641e167db$export$90fc3a17d93f704c, X as $ee014567cb39d3f0$export$f551688fc98f2e09, Xt as $c87311424ea30a05$export$a11b0059900ceec8, Y as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Yt as $c87311424ea30a05$export$9ac100e40613ea10, Z as $ee014567cb39d3f0$export$ff05c3ac10437e03, Zt as $c87311424ea30a05$export$fedb369cb70207f1, _ as DropdownMenuLabel, _n as ChevronRight, _t as $2baaea4c71418dea$export$294aa081a6c6f55d, a as OnBlurredInput, an as $431fbd86ca7dc216$export$b204af158042fbac, at as $64fa3d84918910a7$export$2881499e37b75b9a, b as DropdownMenuSub, bt as $e5be200c675c3b3a$export$a763b9476acd3eb, c as NumberField, cn as $bdb11010cef70236$export$b4cc09c592e8fdb8, ct as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, d as prettyNumber, dn as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, dt as $64fa3d84918910a7$export$ef03459518577ad4, en as $3ef42575df84b30b$export$9d1611c77c2fe928, et as $d2b4bc8c273e7be6$export$24d547caef80ccd1, f as prettyScientificNumber, fn as Trash, ft as $64fa3d84918910a7$export$fabf2dc03a41866e, g as DropdownMenuItem, gn as Circle, gt as $d2e8511e6f209edf$export$e908e06f4b8e3402, h as DropdownMenuGroup, hn as Pencil, ht as capitalize_default, i as Input, in as $f4e2df6bd15f8569$export$98658e8c59125e6a, it as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, j as Label$2, jt as $5b160d28a433310d$export$c17fa47878dc55b6, k as Item2$2, kt as $fca6afa0e843324b$export$f12b703ca79dfbb1, l as maxFractionalDigits, ln as $bdb11010cef70236$export$f680877a34711e37, lt as $64fa3d84918910a7$export$c245e6201fed2f75, m as DropdownMenuContent, mn as Plus, mt as marked, n as DebouncedInput, nn as $d4ee10de306f2510$export$cd4e5573fbe2b576, nt as $01b77f81d0f07f68$export$75b6ee27786ba447, o as useDebounceControlledState, on as $431fbd86ca7dc216$export$f21a1ffae260145a, ot as $64fa3d84918910a7$export$29f1550f4b0d4415, p as DropdownMenu, pn as Search, pt as useNonce, q as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, qt as $c87311424ea30a05$export$6446a186d09e379e, r as DebouncedNumberInput, rn as $d4ee10de306f2510$export$e58f029f0fbfdb29, rt as $01b77f81d0f07f68$export$b04be29aa201d4f5, s as useDebouncedCallback, sn as $ff5963eb1fccf552$export$e08e3b67e392101e, st as $64fa3d84918910a7$export$4d86445c2cf5e3, t as BulkEdit, tn as $d4ee10de306f2510$export$4282f70798064fe0, tt as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, u as prettyEngineeringNumber, un as $8ae05eaa5c114e9c$export$7f54fc3180508a52, ut as $64fa3d84918910a7$export$c62b8e45d58ddad9, v as DropdownMenuPortal, vt as $e93e671b31057976$export$b8473d3665f3a75a, w as Anchor2, wt as $319e236875307eab$export$a9b970dcc4ae71a9, x as DropdownMenuSubContent, xt as $e5be200c675c3b3a$export$aca958c65c314e6c, y as DropdownMenuSeparator, yt as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, z as SubTrigger, zt as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./types-
|
|
13
|
+
import { $ as $514c0188e459b4c0$export$9afb8bc826b033ea, $t as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, A as ItemIndicator, At as $6db58dc88e78b024$export$2f817fcdc4b89ae0, B as createMenuScope, Bt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, C as DropdownMenuTrigger, Ct as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, D as Content2$3, Dt as $6c7bd7858deea686$export$cd11ab140839f11d, E as CheckboxItem, Et as $701a24aa0da5b062$export$ea18c227d4417cc3, F as Root3, Ft as $507fabe10e71c6fb$export$630ff653c5ada6a9, G as $3985021b0ad6602f$export$37fb8590cf2c088c, Gt as $df56164dff5785e2$export$4338b53315abf666, H as Root$6, Ht as $b4b717babfbb907b$export$bebd5a1431fec25d, I as Separator, It as $f6c31cce2adf654f$export$45712eceda6fad21, J as $a049562f99e7db0e$export$f9c6924e160136d1, Jt as $c87311424ea30a05$export$78551043582a6a98, K as $3985021b0ad6602f$export$f5b8910cec6cf069, Kt as $313b98861ee5dd6c$export$d6875122194c7b44, L as Sub, Lt as _class_private_field_init, M as Portal$2, Mt as $6179b936705e76d3$export$ae780daf29e6d456, N as RadioGroup$2, Nt as $9ab94262bd0047c7$export$420e68273165f4ec, O as Group$1, Ot as $fca6afa0e843324b$export$87b761675e8eaa10, P as RadioItem, Pt as $3ad3f6e1647bc98d$export$80f3e147d781571c, Q as $514c0188e459b4c0$export$5f1af8db9871e1d6, Qt as $7215afc6de606d6b$export$de79e2c695e052f3, R as SubContent, Rt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, S as DropdownMenuSubTrigger, St as $e5be200c675c3b3a$export$dad6ae84456c676a, T as Arrow2, Tt as $f7dceffc5ad7768b$export$4e328f61c538687f, U as createRovingFocusGroupScope, Ut as $99facab73266f662$export$5add1d006293d136, V as Item$2, Vt as $b4b717babfbb907b$export$4c063cf1350e6fed, W as ErrorBoundary, Wt as $e9faafb641e167db$export$90fc3a17d93f704c, X as $ee014567cb39d3f0$export$f551688fc98f2e09, Xt as $c87311424ea30a05$export$a11b0059900ceec8, Y as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Yt as $c87311424ea30a05$export$9ac100e40613ea10, Z as $ee014567cb39d3f0$export$ff05c3ac10437e03, Zt as $c87311424ea30a05$export$fedb369cb70207f1, _ as DropdownMenuLabel, _n as ChevronRight, _t as $2baaea4c71418dea$export$294aa081a6c6f55d, a as OnBlurredInput, an as $431fbd86ca7dc216$export$b204af158042fbac, at as $64fa3d84918910a7$export$2881499e37b75b9a, b as DropdownMenuSub, bt as $e5be200c675c3b3a$export$a763b9476acd3eb, c as NumberField, cn as $bdb11010cef70236$export$b4cc09c592e8fdb8, ct as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, d as prettyNumber, dn as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, dt as $64fa3d84918910a7$export$ef03459518577ad4, en as $3ef42575df84b30b$export$9d1611c77c2fe928, et as $d2b4bc8c273e7be6$export$24d547caef80ccd1, f as prettyScientificNumber, fn as Trash, ft as $64fa3d84918910a7$export$fabf2dc03a41866e, g as DropdownMenuItem, gn as Circle, gt as $d2e8511e6f209edf$export$e908e06f4b8e3402, h as DropdownMenuGroup, hn as Pencil, ht as capitalize_default, i as Input, in as $f4e2df6bd15f8569$export$98658e8c59125e6a, it as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, j as Label$2, jt as $5b160d28a433310d$export$c17fa47878dc55b6, k as Item2$2, kt as $fca6afa0e843324b$export$f12b703ca79dfbb1, l as maxFractionalDigits, ln as $bdb11010cef70236$export$f680877a34711e37, lt as $64fa3d84918910a7$export$c245e6201fed2f75, m as DropdownMenuContent, mn as Plus, mt as marked, n as DebouncedInput, nn as $d4ee10de306f2510$export$cd4e5573fbe2b576, nt as $01b77f81d0f07f68$export$75b6ee27786ba447, o as useDebounceControlledState, on as $431fbd86ca7dc216$export$f21a1ffae260145a, ot as $64fa3d84918910a7$export$29f1550f4b0d4415, p as DropdownMenu, pn as Search, pt as useNonce, q as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, qt as $c87311424ea30a05$export$6446a186d09e379e, r as DebouncedNumberInput, rn as $d4ee10de306f2510$export$e58f029f0fbfdb29, rt as $01b77f81d0f07f68$export$b04be29aa201d4f5, s as useDebouncedCallback, sn as $ff5963eb1fccf552$export$e08e3b67e392101e, st as $64fa3d84918910a7$export$4d86445c2cf5e3, t as BulkEdit, tn as $d4ee10de306f2510$export$4282f70798064fe0, tt as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, u as prettyEngineeringNumber, un as $8ae05eaa5c114e9c$export$7f54fc3180508a52, ut as $64fa3d84918910a7$export$c62b8e45d58ddad9, v as DropdownMenuPortal, vt as $e93e671b31057976$export$b8473d3665f3a75a, w as Anchor2, wt as $319e236875307eab$export$a9b970dcc4ae71a9, x as DropdownMenuSubContent, xt as $e5be200c675c3b3a$export$aca958c65c314e6c, y as DropdownMenuSeparator, yt as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, z as SubTrigger, zt as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./types-CzEZ3EWT.js";
|
|
14
14
|
import { S as CircleQuestionMark, _ as isUrl, a as AlertTitle, b as Deferred, c as constructFrom, d as millisecondsInMinute, f as millisecondsInSecond, g as appendQueryParams, h as getRuntimeManager, i as AlertDescription, l as millisecondsInDay, m as asRemoteURL, n as arrow, o as isValid$1, p as millisecondsInWeek, r as Alert, s as toDate, t as useDeepCompareMemoize, u as millisecondsInHour, v as require_cuid2, x as isWasm, y as waitForConnectionOpen } from "./useDeepCompareMemoize-CfoxVor3.js";
|
|
15
15
|
import { n as clsx_default } from "./clsx-D2KVTYnW.js";
|
|
16
16
|
import { a as cva, c as useComposedRefs, l as Events, n as buttonVariants, o as useEventListener, r as Slot$1, s as composeRefs, t as Button, u as cn } from "./button-BWvsJ2Wr.js";
|
|
@@ -59362,7 +59362,7 @@ ${r}
|
|
|
59362
59362
|
c[3] === d ? _ = c[4] : (_ = cn("w-full caption-bottom text-sm", d), c[3] = d, c[4] = _);
|
|
59363
59363
|
let v;
|
|
59364
59364
|
return c[5] !== f || c[6] !== r || c[7] !== _ ? (v = (0, import_jsx_runtime.jsx)("div", {
|
|
59365
|
-
className: "w-full overflow-auto scrollbar-thin flex-1",
|
|
59365
|
+
className: "w-full overflow-auto scrollbar-thin flex-1 print:overflow-hidden",
|
|
59366
59366
|
children: (0, import_jsx_runtime.jsx)("table", {
|
|
59367
59367
|
ref: r,
|
|
59368
59368
|
className: _,
|
|
@@ -61469,22 +61469,26 @@ ${r}
|
|
|
61469
61469
|
async function toPng$1(e, r = {}) {
|
|
61470
61470
|
return (await toCanvas(e, r)).toDataURL();
|
|
61471
61471
|
}
|
|
61472
|
-
const
|
|
61472
|
+
const defaultHtmlToImageOptions = {
|
|
61473
61473
|
filter: (e) => {
|
|
61474
61474
|
try {
|
|
61475
|
-
|
|
61475
|
+
if ("classList" in e) {
|
|
61476
|
+
let r = e.classList;
|
|
61477
|
+
if (r.contains("mpl-toolbar") || r.contains("print:hidden")) return false;
|
|
61478
|
+
}
|
|
61479
|
+
return true;
|
|
61476
61480
|
} catch (e2) {
|
|
61477
61481
|
return Logger.error("Error filtering node:", e2), true;
|
|
61478
61482
|
}
|
|
61479
61483
|
},
|
|
61480
61484
|
onImageErrorHandler: (e) => {
|
|
61481
61485
|
Logger.error("Error loading image:", e);
|
|
61482
|
-
}
|
|
61486
|
+
},
|
|
61487
|
+
includeStyleProperties: "width.height.min-width.min-height.max-width.max-height.box-sizing.aspect-ratio.display.position.top.left.bottom.right.z-index.float.clear.flex.flex-direction.flex-wrap.flex-grow.flex-shrink.flex-basis.align-items.align-self.justify-content.gap.order.grid-template-columns.grid-template-rows.grid-column.grid-row.row-gap.column-gap.margin.margin-top.margin-right.margin-bottom.margin-left.padding.padding-top.padding-right.padding-bottom.padding-left.font.font-family.font-size.font-weight.font-style.line-height.letter-spacing.word-spacing.text-align.text-decoration.text-transform.text-indent.text-shadow.white-space.text-wrap.word-break.text-overflow.vertical-align.color.background.background-color.background-image.background-size.background-position.background-repeat.background-clip.border.border-width.border-style.border-color.border-top.border-right.border-bottom.border-left.border-radius.outline.box-shadow.text-shadow.opacity.filter.backdrop-filter.mix-blend-mode.transform.clip-path.overflow.overflow-x.overflow-y.visibility.fill.stroke.stroke-width.object-fit.object-position.list-style.list-style-type.border-collapse.border-spacing.content.cursor".split(".")
|
|
61483
61488
|
};
|
|
61484
|
-
async function toPng(e, r
|
|
61489
|
+
async function toPng(e, r) {
|
|
61485
61490
|
return toPng$1(e, {
|
|
61486
61491
|
...defaultHtmlToImageOptions,
|
|
61487
|
-
includeStyleProperties: c ? necessaryStyleProperties : void 0,
|
|
61488
61492
|
...r
|
|
61489
61493
|
});
|
|
61490
61494
|
}
|
|
@@ -61652,9 +61656,12 @@ Defaulting to \`null\`.`;
|
|
|
61652
61656
|
}), c[15] = _, c[16] = r, c[17] = y, c[18] = O, c[19] = M) : M = c[19], M;
|
|
61653
61657
|
});
|
|
61654
61658
|
Progress.displayName = Root$3.displayName;
|
|
61659
|
+
const ADD_PRINTING_CLASS = () => (document.body.classList.add("printing"), () => {
|
|
61660
|
+
document.body.classList.remove("printing");
|
|
61661
|
+
});
|
|
61655
61662
|
async function downloadHTMLAsImage(e) {
|
|
61656
61663
|
let { element: r, filename: c, prepare: d } = e, f = document.getElementById("App"), _ = (f == null ? void 0 : f.scrollTop) ?? 0, v;
|
|
61657
|
-
d
|
|
61664
|
+
d && (v = d(r));
|
|
61658
61665
|
try {
|
|
61659
61666
|
downloadByURL(await toPng(r), Filenames.toPNG(c));
|
|
61660
61667
|
} catch {
|
|
@@ -61725,6 +61732,7 @@ Defaulting to \`null\`.`;
|
|
|
61725
61732
|
"data-testid": "download-as-button",
|
|
61726
61733
|
size: "xs",
|
|
61727
61734
|
variant: "link",
|
|
61735
|
+
className: "print:hidden",
|
|
61728
61736
|
children: [
|
|
61729
61737
|
"Download ",
|
|
61730
61738
|
(0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
@@ -61838,7 +61846,7 @@ Defaulting to \`null\`.`;
|
|
|
61838
61846
|
O,
|
|
61839
61847
|
(0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
|
|
61840
61848
|
side: "bottom",
|
|
61841
|
-
className: "
|
|
61849
|
+
className: "print:hidden",
|
|
61842
61850
|
children: [
|
|
61843
61851
|
M,
|
|
61844
61852
|
I,
|
|
@@ -61878,7 +61886,7 @@ Defaulting to \`null\`.`;
|
|
|
61878
61886
|
size: "xs",
|
|
61879
61887
|
"data-testid": "select-all-button",
|
|
61880
61888
|
variant: "link",
|
|
61881
|
-
className: "h-4",
|
|
61889
|
+
className: "h-4 print:hidden",
|
|
61882
61890
|
onMouseDown: Events.preventFocus,
|
|
61883
61891
|
onClick: () => {
|
|
61884
61892
|
c ? c(true) : e.toggleAllRowsSelected(true);
|
|
@@ -61901,7 +61909,7 @@ Defaulting to \`null\`.`;
|
|
|
61901
61909
|
size: "xs",
|
|
61902
61910
|
"data-testid": "clear-selection-button",
|
|
61903
61911
|
variant: "link",
|
|
61904
|
-
className: "h-4",
|
|
61912
|
+
className: "h-4 print:hidden",
|
|
61905
61913
|
onMouseDown: Events.preventFocus,
|
|
61906
61914
|
onClick: () => {
|
|
61907
61915
|
O2 ? e.resetCellSelection && e.resetCellSelection() : c ? c(false) : e.toggleAllRowsSelected(false);
|
|
@@ -61935,7 +61943,7 @@ Defaulting to \`null\`.`;
|
|
|
61935
61943
|
children: y()
|
|
61936
61944
|
}),
|
|
61937
61945
|
_ && (() => (0, import_jsx_runtime.jsxs)("div", {
|
|
61938
|
-
className: "flex items-center gap-1 text-xs whitespace-nowrap mr-1",
|
|
61946
|
+
className: "flex items-center gap-1 text-xs whitespace-nowrap mr-1 print:hidden",
|
|
61939
61947
|
children: [
|
|
61940
61948
|
(0, import_jsx_runtime.jsxs)(Select, {
|
|
61941
61949
|
value: E.toString(),
|
|
@@ -61973,7 +61981,7 @@ Defaulting to \`null\`.`;
|
|
|
61973
61981
|
]
|
|
61974
61982
|
}),
|
|
61975
61983
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
61976
|
-
className: "flex items-end space-x-2",
|
|
61984
|
+
className: "flex items-end space-x-2 print:hidden",
|
|
61977
61985
|
children: [
|
|
61978
61986
|
(0, import_jsx_runtime.jsxs)(Button, {
|
|
61979
61987
|
size: "xs",
|
|
@@ -62105,14 +62113,14 @@ Defaulting to \`null\`.`;
|
|
|
62105
62113
|
e === "too_many" ? "Unknown" : prettifyRowCount(e, c),
|
|
62106
62114
|
`${prettyNumber(r, c)} ${new PluralWord("column").pluralize(r)}`
|
|
62107
62115
|
].join(", "), TableActions = ({ enableSearch: e, onSearchQueryChange: r, isSearchEnabled: c, setIsSearchEnabled: d, pagination: f, totalColumns: _, selection: v, onRowSelectionChange: y, table: S, downloadAs: E, getRowIds: O, toggleDisplayHeader: M, showChartBuilder: I, showColumnExplorer: z, showRowExplorer: G, showPageSizeSelector: q, togglePanel: IY, isPanelOpen: LY, tableLoading: RY }) => (0, import_jsx_runtime.jsxs)("div", {
|
|
62108
|
-
className: "flex items-center shrink-0 pt-1
|
|
62116
|
+
className: "flex items-center shrink-0 pt-1",
|
|
62109
62117
|
children: [
|
|
62110
62118
|
r && e && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
62111
62119
|
content: "Search",
|
|
62112
62120
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
62113
62121
|
variant: "text",
|
|
62114
62122
|
size: "xs",
|
|
62115
|
-
className: "mb-0",
|
|
62123
|
+
className: "mb-0 print:hidden",
|
|
62116
62124
|
onClick: () => d(!c),
|
|
62117
62125
|
children: (0, import_jsx_runtime.jsx)(Search, {
|
|
62118
62126
|
className: "w-4 h-4 text-muted-foreground"
|
|
@@ -62124,7 +62132,7 @@ Defaulting to \`null\`.`;
|
|
|
62124
62132
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
62125
62133
|
variant: "text",
|
|
62126
62134
|
size: "xs",
|
|
62127
|
-
className: "mb-0",
|
|
62135
|
+
className: "mb-0 print:hidden",
|
|
62128
62136
|
onClick: M,
|
|
62129
62137
|
children: (0, import_jsx_runtime.jsx)(ChartSpline, {
|
|
62130
62138
|
className: "w-4 h-4 text-muted-foreground"
|
|
@@ -62139,6 +62147,7 @@ Defaulting to \`null\`.`;
|
|
|
62139
62147
|
variant: "text",
|
|
62140
62148
|
size: "xs",
|
|
62141
62149
|
onClick: () => IY("row-viewer"),
|
|
62150
|
+
className: "print:hidden",
|
|
62142
62151
|
children: (0, import_jsx_runtime.jsx)(PanelRight, {
|
|
62143
62152
|
className: cn("w-4 h-4 text-muted-foreground", LY("row-viewer") && "text-primary")
|
|
62144
62153
|
})
|
|
@@ -62150,6 +62159,7 @@ Defaulting to \`null\`.`;
|
|
|
62150
62159
|
variant: "text",
|
|
62151
62160
|
size: "xs",
|
|
62152
62161
|
onClick: () => IY("column-explorer"),
|
|
62162
|
+
className: "print:hidden",
|
|
62153
62163
|
children: (0, import_jsx_runtime.jsx)(ChartColumnStacked, {
|
|
62154
62164
|
className: cn("w-4 h-4 text-muted-foreground", LY("column-explorer") && "text-primary")
|
|
62155
62165
|
})
|
|
@@ -73158,7 +73168,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
73158
73168
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
73159
73169
|
}
|
|
73160
73170
|
}
|
|
73161
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.7-
|
|
73171
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.7-dev37"), showCodeInRunModeAtom = atom(true);
|
|
73162
73172
|
atom(null);
|
|
73163
73173
|
var import_compiler_runtime$88 = require_compiler_runtime();
|
|
73164
73174
|
function useKeydownOnElement(e, r) {
|
|
@@ -74714,7 +74724,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
74714
74724
|
function getVegaFieldTypes(e) {
|
|
74715
74725
|
return !e || Object.keys(e).length === 0 ? "auto" : Objects.mapValues(e, (e2) => e2 === "date" || e2 === "time" ? "string" : e2 === "datetime" ? "date" : e2);
|
|
74716
74726
|
}
|
|
74717
|
-
var import_compiler_runtime$81 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-
|
|
74727
|
+
var import_compiler_runtime$81 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-C3T7HsLi.js").then(async (m2) => {
|
|
74718
74728
|
await m2.__tla;
|
|
74719
74729
|
return m2;
|
|
74720
74730
|
}));
|
|
@@ -102144,7 +102154,7 @@ ${c}
|
|
|
102144
102154
|
} else M = r[7];
|
|
102145
102155
|
if (M.length === 0) return null;
|
|
102146
102156
|
let I;
|
|
102147
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = cn("right-0 top-0 z-50 m-4
|
|
102157
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = cn("right-0 top-0 z-50 m-4 print:hidden flex gap-2", isStaticNotebook() ? "absolute" : "fixed"), r[22] = I) : I = r[22];
|
|
102148
102158
|
let z;
|
|
102149
102159
|
r[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
102150
102160
|
asChild: true,
|
|
@@ -102166,7 +102176,7 @@ ${c}
|
|
|
102166
102176
|
z,
|
|
102167
102177
|
(0, import_jsx_runtime.jsx)(DropdownMenuContent, {
|
|
102168
102178
|
align: "end",
|
|
102169
|
-
className: "
|
|
102179
|
+
className: "print:hidden w-[220px]",
|
|
102170
102180
|
children: M
|
|
102171
102181
|
})
|
|
102172
102182
|
]
|
|
@@ -102295,7 +102305,8 @@ ${c}
|
|
|
102295
102305
|
let e = document.getElementById("App");
|
|
102296
102306
|
e && await downloadHTMLAsImage({
|
|
102297
102307
|
element: e,
|
|
102298
|
-
filename: document.title
|
|
102308
|
+
filename: document.title,
|
|
102309
|
+
prepare: ADD_PRINTING_CLASS
|
|
102299
102310
|
});
|
|
102300
102311
|
}
|
|
102301
102312
|
async function _temp4() {
|