@marimo-team/islands 0.25.3-dev273 → 0.25.3-dev279
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/{ConnectedDataExplorerComponent-eLHPh6uu.js → ConnectedDataExplorerComponent-CErm132k.js} +25 -26
- package/dist/{ErrorBoundary-DBh-wUT9.js → ErrorBoundary-DmTMuDPR.js} +43 -44
- package/dist/{abnfDiagram-VCTEODGH-hqd0IBtX.js → abnfDiagram-VCTEODGH-d-Qn2fwb.js} +2 -2
- package/dist/{any-language-editor-DnG26QXh.js → any-language-editor-6k6F12Z3.js} +3 -3
- package/dist/{architectureDiagram-5GKGNRK7-BzLAFcc0.js → architectureDiagram-5GKGNRK7-DxragHYv.js} +1 -1
- package/dist/{assertNever-DIU3JJbt.js → assertNever-B-YzWzbL.js} +14 -14
- package/dist/{button-0-RqY1DW.js → button-DZuNnIZO.js} +220 -223
- package/dist/{capabilities-B6yy_CBN.js → capabilities-D9FskwsK.js} +1 -1
- package/dist/{chat-ui-BWIkve2R.js → chat-ui-v1Fdh0NA.js} +332 -333
- package/dist/{check-gUSZbRsl.js → check-XFzZeH-y.js} +1 -1
- package/dist/{chunk-IMKFNOWR-DOeVvuyE.js → chunk-IMKFNOWR-C0x0feFg.js} +1 -1
- package/dist/{chunk-SHT3W25Y-DZoFI8wR.js → chunk-SHT3W25Y-D0ZdASqB.js} +1 -1
- package/dist/{chunk-SVP7TREG-CWu86PSW.js → chunk-SVP7TREG-BHjL96zx.js} +1 -1
- package/dist/{chunk-TICWLB2K-BrM0GoP3.js → chunk-TICWLB2K-CzcrwGfp.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-DYi4V2bB.js → classDiagram-ZZMXUADV-BTqFAZTP.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-tN7FIk-m.js → classDiagram-v2-VYDZK3BY-EPXb0Elt.js} +2 -2
- package/dist/{code-visibility-M_dXDGp6.js → code-visibility-Dw4-TXN0.js} +20 -20
- package/dist/{common-DV0fvw_I.js → common-BXMFi4lr.js} +5399 -5397
- package/dist/{config-BsPruWMR.js → config-C8MFHQ2E.js} +23 -22
- package/dist/{copy-icon-C2I8sw4h.js → copy-icon-CtllOdmg.js} +3 -3
- package/dist/{createReducer-DdtT_7ji.js → createReducer-DRqwmaTc.js} +2 -2
- package/dist/{cynefinDiagram-5FMLGOSQ-D5nCnDc-.js → cynefinDiagram-5FMLGOSQ-CBSD344q.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-BHkd7f_i.js → dagre-GXQ25YYZ-JItjh3Ge.js} +1 -1
- package/dist/{data-grid-overlay-editor-Cd1zGKBt.js → data-grid-overlay-editor-hZzwX7Ia.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-D1ALppT2.js → diagram-S7CK7UJ4-CTD9xTVb.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-DLv0b83L.js → diagram-UQ7AKVKN-DTfnFai8.js} +1 -1
- package/dist/{diagram-VX7I27RA-7XJ7J6qg.js → diagram-VX7I27RA-BcSnucV-.js} +1 -1
- package/dist/{diagram-Z3DM3KII-7M7zbHp_.js → diagram-Z3DM3KII-C2ATIE8A.js} +1 -1
- package/dist/{dialog-DzCj1qQv.js → dialog-CaYm5imE.js} +33 -33
- package/dist/{dropdown-menu-CdXE15an.js → dropdown-menu-Bb0bFOIk.js} +149 -149
- package/dist/{ebnfDiagram-PWID7BFC-DHH1qlmV.js → ebnfDiagram-PWID7BFC-B7B9JPxc.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-fI_0dGef.js → erDiagram-RLTQ6QDP-v6hDno1O.js} +1 -1
- package/dist/{error-banner-DPc9eIw5.js → error-banner-CHCdHVFB.js} +44 -45
- package/dist/{error-entries-CxN-Nq3V.js → error-entries-C1S-Rmyt.js} +563 -554
- package/dist/{feedback-button-CE2gPi4-.js → feedback-button-6Ui2TDLR.js} +12 -12
- package/dist/{flowDiagram-HODETNUW-Brg9MA6i.js → flowDiagram-HODETNUW-aIFlAtOy.js} +2 -2
- package/dist/{formats-DbSvAPY-.js → formats-PzBQMUnr.js} +3 -3
- package/dist/{glide-data-editor-BycATbgF.js → glide-data-editor-PZNlrSDI.js} +14 -16
- package/dist/{glide-utils-BSw3SSHF.js → glide-utils-BSQr4d90.js} +51 -59
- package/dist/{globals-CW6OvnI5.js → globals-DX6FPZYq.js} +3 -3
- package/dist/{html-to-image-Bc2AvXHG.js → html-to-image-CqGUd58T.js} +14529 -14531
- package/dist/{infoDiagram-27XIBGKW-E9e403YT.js → infoDiagram-27XIBGKW-D6YHLeCP.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-C-RlYDRo.js → ishikawaDiagram-5VMMS53U-D1ZvprOX.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CLFl_uqK.js → kanban-definition-UXKFOSKX-Bna_3BMr.js} +1 -1
- package/dist/{loader-BVEtQ4F3.js → loader-DZvtzQoD.js} +1 -1
- package/dist/main.js +7357 -7361
- package/dist/{mermaid-rd09e1JL.js → mermaid-A36unKXJ.js} +50 -50
- package/dist/{mindmap-definition-YA3MSWOX-BQ8TWtyB.js → mindmap-definition-YA3MSWOX-CyVCs__G.js} +1 -1
- package/dist/{number-overlay-editor-B_rR-LdM.js → number-overlay-editor-D0CsL3_R.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CN8UHFPi.js → pegDiagram-XKGWAZYB-9hNBD2wZ.js} +2 -2
- package/dist/{pencil-DcT8AE0h.js → pencil-DYUlSKxZ.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-DGuJ0EBd.js → pieDiagram-E7YTZNPT-8tr-NYo7.js} +1 -1
- package/dist/{process-output-qecD7Dk8.js → process-output-DskX9jLa.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-BPDA8wy8.js → railroadDiagram-O6MQD6OU-Dzg1dyyp.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-ChzLGbGW.js → requirementDiagram-BXWQKSXE-B7sNqwGG.js} +1 -1
- package/dist/{reveal-component-CngVwOSy.js → reveal-component-D7xeI1QR.js} +1003 -1003
- package/dist/{select-OxgozOC8.js → select-DsoP1qe8.js} +290 -290
- package/dist/{sequenceDiagram-WJ2MYXX4-DFX-bE6O.js → sequenceDiagram-WJ2MYXX4-oP9shbaG.js} +1 -1
- package/dist/{spec-oJn0RhpQ.js → spec-BZMDxAu7.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-BR7cI3wK.js → stateDiagram-D77RDMKH-CjCv4ogv.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-oGqB5UDI.js → stateDiagram-v2-MP3YSRHH-BW9X162a.js} +2 -2
- package/dist/{static-state-CuV6Pc3a.js → static-state-D-Q-Ajaa.js} +8 -8
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-DwSZl1yC.js → swimlanes-42K2YHIH-Ckfs9Wrn.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BHlcd-Ri.js → swimlanesDiagram-VR7AAH4N-DpTNG9YP.js} +2 -2
- package/dist/{swiper-component-Dvj-goaD.js → swiper-component-DQbK_ZWm.js} +7 -7
- package/dist/{timeline-definition-24CTP7MA-DMmP-G2O.js → timeline-definition-24CTP7MA-BXaBlV6U.js} +1 -1
- package/dist/{toast-DbBHmxmB.js → toast-BhjIy3Tq.js} +158 -158
- package/dist/{tooltip-BfcDQd2j.js → tooltip-DMMiOn2f.js} +64 -64
- package/dist/use-restore-focus-CosX7-gx.js +7568 -0
- package/dist/{useAsyncData-BYIAoMqn.js → useAsyncData-Ci4AvJff.js} +4 -4
- package/dist/{useDateFormatter-ButWkdcK.js → useDateFormatter-CPlava52.js} +2 -2
- package/dist/{useDeepCompareMemoize-Bz0c5GN6.js → useDeepCompareMemoize-NaaWoFlX.js} +1 -1
- package/dist/useEvent-BRH-aCqi.js +19 -0
- package/dist/{useIframeCapabilities-BIolGsF1.js → useIframeCapabilities-BXhDDoCG.js} +1 -1
- package/dist/{useLifecycle-JjxCC7Vu.js → useLifecycle-SniivYmC.js} +2 -2
- package/dist/{vega-component-rxIxAAh9.js → vega-component-DIxaDQNs.js} +40 -40
- package/dist/{vennDiagram-4TSXK5OY-Db8GtH1G.js → vennDiagram-4TSXK5OY-C-hQ4iNJ.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-DmIiC3FU.js → wardleyDiagram-VM6X3IG4-C2MQ_Umv.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-DS9OPrNq.js → xychartDiagram-S5SC5T6Z-BtTTBn7Q.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/executions.ts +4 -2
- package/src/__mocks__/notebook.ts +0 -2
- package/src/__tests__/CellStatus.test.tsx +6 -6
- package/src/components/editor/__tests__/data-attributes.test.tsx +0 -2
- package/src/components/editor/__tests__/output-persistence.test.tsx +20 -5
- package/src/components/editor/cell/CellStatus.tsx +6 -5
- package/src/components/editor/cell/__tests__/useRunCells.test.tsx +169 -0
- package/src/components/editor/cell/collapse.tsx +3 -4
- package/src/components/editor/cell/useRunCells.ts +32 -3
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +2 -3
- package/src/components/editor/notebook-cell.tsx +23 -37
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +4 -10
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -2
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +8 -5
- package/src/components/slides/minimap.tsx +3 -2
- package/src/components/slides/reveal-component.tsx +3 -2
- package/src/components/slides/slide-cell-view.tsx +8 -8
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -101
- package/src/core/cells/__tests__/actions.test.ts +0 -1
- package/src/core/cells/__tests__/cell.test.ts +81 -17
- package/src/core/cells/__tests__/cells.test.ts +0 -100
- package/src/core/cells/__tests__/document.test.ts +2 -8
- package/src/core/cells/__tests__/utils.test.ts +93 -24
- package/src/core/cells/actions.ts +0 -1
- package/src/core/cells/cell.ts +37 -14
- package/src/core/cells/cells.ts +10 -99
- package/src/core/cells/document.ts +2 -13
- package/src/core/cells/types.ts +0 -23
- package/src/core/cells/utils.ts +44 -17
- package/src/core/codemirror/cells/extensions.ts +0 -14
- package/src/core/errors/__tests__/error-entries.test.ts +40 -1
- package/src/core/errors/error-entries.ts +2 -3
- package/src/core/executions/__tests__/freshness.test.ts +420 -0
- package/src/core/executions/__tests__/hooks.test.tsx +106 -0
- package/src/core/executions/atoms.ts +22 -0
- package/src/core/executions/freshness.ts +164 -0
- package/src/core/executions/hooks.ts +17 -1
- package/src/core/executions/index.ts +3 -1
- package/src/core/islands/bootstrap.ts +0 -1
- package/src/core/islands/components/__tests__/web-components.test.tsx +63 -0
- package/src/core/islands/components/web-components.tsx +11 -0
- package/src/core/kernel/handlers.ts +0 -4
- package/src/core/session/useNotebookSession.tsx +2 -7
- package/src/css/globals.css +6 -2
- package/src/plugins/impl/DataEditorPlugin.tsx +0 -4
- package/src/plugins/impl/data-editor/__tests__/column-types.test.ts +5 -0
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +9 -5
- package/src/plugins/impl/data-editor/column-types.ts +3 -0
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +6 -5
- package/src/plugins/impl/data-editor/glide-utils.ts +10 -32
- package/src/plugins/impl/data-editor/types.ts +0 -2
- package/src/stories/cell-status.stories.tsx +12 -14
- package/src/stories/cell.stories.tsx +44 -10
- package/src/stories/layout/vertical/one-column.stories.tsx +0 -10
- package/src/theme/__tests__/islands-theme.test.tsx +276 -0
- package/src/theme/namespace.tsx +4 -3
- package/src/theme/useTheme.ts +71 -41
- package/dist/schemas-CdscWNy_.js +0 -4747
- package/dist/use-restore-focus-CmflVLWJ.js +0 -1672
- package/dist/useTheme-DPLobSFs.js +0 -339
- package/dist/utils-EBklsC5R.js +0 -813
- package/src/components/editor/cell/__tests__/useRunCells.test.ts +0 -45
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { h as t, t as n } from "./button-
|
|
2
|
+
import { h as t, t as n } from "./button-DZuNnIZO.js";
|
|
3
3
|
import { t as r } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import { t as a } from "./copy-icon-
|
|
6
|
-
import { D as o, E as s, F as c,
|
|
7
|
-
import { n as h, t as ee } from "./globals-
|
|
8
|
-
import { r as g } from "./assertNever-
|
|
5
|
+
import { t as a } from "./copy-icon-CtllOdmg.js";
|
|
6
|
+
import { D as o, E as s, F as c, Gt as l, L as u, i as d, j as f, n as p, q as m } from "./error-entries-C1S-Rmyt.js";
|
|
7
|
+
import { n as h, t as ee } from "./globals-DX6FPZYq.js";
|
|
8
|
+
import { r as g } from "./assertNever-B-YzWzbL.js";
|
|
9
9
|
import { t as _ } from "./jsx-runtime-3BD1kT0s.js";
|
|
10
|
-
import {
|
|
11
|
-
import { a as re, i as ie, n as ae, r as oe } from "./dialog-
|
|
12
|
-
import { t as se } from "./useAsyncData-
|
|
13
|
-
import { t as ce } from "./code-visibility-
|
|
10
|
+
import { Ft as te, p as v, yt as ne } from "./use-restore-focus-CosX7-gx.js";
|
|
11
|
+
import { a as re, i as ie, n as ae, r as oe } from "./dialog-CaYm5imE.js";
|
|
12
|
+
import { t as se } from "./useAsyncData-Ci4AvJff.js";
|
|
13
|
+
import { t as ce } from "./code-visibility-Dw4-TXN0.js";
|
|
14
14
|
//#region src/components/ui/skeleton.tsx
|
|
15
15
|
var y = /* @__PURE__ */ e(r(), 1), b = i(), x = _(), S = (e) => {
|
|
16
16
|
let n = (0, b.c)(8), r, i;
|
|
@@ -134,11 +134,11 @@ function _e(e) {
|
|
|
134
134
|
if (e.connectionState !== f.OPEN) return "Connect the notebook to include its source.";
|
|
135
135
|
}
|
|
136
136
|
var T = () => {
|
|
137
|
-
let e = (0, b.c)(56), t =
|
|
137
|
+
let e = (0, b.c)(56), t = te(m), r, i;
|
|
138
138
|
e[0] === t ? (r = e[1], i = e[2]) : (r = async () => {
|
|
139
139
|
if (t != null) return t.getEnvironmentInfo();
|
|
140
140
|
}, i = [t], e[0] = t, e[1] = r, e[2] = i);
|
|
141
|
-
let c = se(r, i), f = d(
|
|
141
|
+
let c = se(r, i), f = d(ne), g = ce(), _ = te(u), y = te(o), C = t != null, w;
|
|
142
142
|
e[3] !== g || e[4] !== y.state || e[5] !== _ || e[6] !== C ? (w = _e({
|
|
143
143
|
hasRequestClient: C,
|
|
144
144
|
filename: _,
|
|
@@ -163,7 +163,7 @@ var T = () => {
|
|
|
163
163
|
let Se = xe.map(ve).join(", "), P;
|
|
164
164
|
e[13] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ (0, x.jsxs)(ie, { children: [/* @__PURE__ */ (0, x.jsx)(re, { children: "Report an issue" }), /* @__PURE__ */ (0, x.jsx)(oe, { children: "Open a GitHub bug report prefilled with your environment, and optionally your current errors and notebook code. Nothing is uploaded automatically; review the details before posting." })] }), e[13] = P) : P = e[13];
|
|
165
165
|
let F;
|
|
166
|
-
e[14] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ (0, x.jsx)(
|
|
166
|
+
e[14] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ (0, x.jsx)(l, { className: "w-4 h-4 mr-2" }), e[14] = F) : F = e[14];
|
|
167
167
|
let I = f.length === 0, L;
|
|
168
168
|
e[15] === O ? L = e[16] : (L = (e) => O(e === !0), e[15] = O, e[16] = L);
|
|
169
169
|
let R;
|
|
@@ -8,9 +8,9 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
|
|
|
8
8
|
import "./chunk-GVQU2GXP-Cwbt-lF0.js";
|
|
9
9
|
import "./chunk-L3NEJ4N5-n-zgIVSy.js";
|
|
10
10
|
import "./chunk-OSK3NFVY-DXa-Cxbn.js";
|
|
11
|
-
import "./mermaid-
|
|
11
|
+
import "./mermaid-A36unKXJ.js";
|
|
12
12
|
import "./chunk-F27PBJKO-ufseIn5y.js";
|
|
13
13
|
import "./chunk-XXDRQBXY-Dnl5VBqG.js";
|
|
14
14
|
import "./chunk-POPQ4Y6H-hYOXbYH_.js";
|
|
15
|
-
import { n as e } from "./chunk-SHT3W25Y-
|
|
15
|
+
import { n as e } from "./chunk-SHT3W25Y-D0ZdASqB.js";
|
|
16
16
|
export { e as diagram };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { h as t,
|
|
2
|
+
import { h as t, r as n } from "./button-DZuNnIZO.js";
|
|
3
3
|
import { t as r } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { t as a } from "./jsx-runtime-3BD1kT0s.js";
|
|
6
|
-
import { u as o } from "./static-state-
|
|
7
|
-
import { i as s } from "./loader-
|
|
6
|
+
import { u as o } from "./static-state-D-Q-Ajaa.js";
|
|
7
|
+
import { i as s } from "./loader-DZvtzQoD.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
|
|
9
9
|
function c(e) {
|
|
10
10
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { a as e, r as t, t as n } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { m as r, t as i } from "./button-
|
|
2
|
+
import { m as r, t as i } from "./button-DZuNnIZO.js";
|
|
3
3
|
import { t as a } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as o } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import { i as s, n as c, r as l } from "./copy-icon-
|
|
6
|
-
import { d as u } from "./tooltip-
|
|
7
|
-
import { c as d, d as f, i as p, n as m, s as h, t as g } from "./select-
|
|
8
|
-
import { bn as _, d as v, h as y, i as b, l as x, n as S, o as C, q as w, s as T, t as E, u as D } from "./dropdown-menu-
|
|
9
|
-
import { t as O } from "./pencil-
|
|
10
|
-
import { c as k, f as A, l as ee, n as j, o as te, s as ne, t as re, u as ie } from "./glide-utils-
|
|
11
|
-
import { i as M, n as ae } from "./assertNever-
|
|
5
|
+
import { i as s, n as c, r as l } from "./copy-icon-CtllOdmg.js";
|
|
6
|
+
import { d as u } from "./tooltip-DMMiOn2f.js";
|
|
7
|
+
import { c as d, d as f, i as p, n as m, s as h, t as g } from "./select-DsoP1qe8.js";
|
|
8
|
+
import { bn as _, d as v, h as y, i as b, l as x, n as S, o as C, q as w, s as T, t as E, u as D } from "./dropdown-menu-Bb0bFOIk.js";
|
|
9
|
+
import { t as O } from "./pencil-DYUlSKxZ.js";
|
|
10
|
+
import { c as k, f as A, l as ee, n as j, o as te, s as ne, t as re, u as ie } from "./glide-utils-BSQr4d90.js";
|
|
11
|
+
import { i as M, n as ae } from "./assertNever-B-YzWzbL.js";
|
|
12
12
|
import { t as N } from "./react-dom-DUmH0GXv.js";
|
|
13
13
|
import { t as P } from "./jsx-runtime-3BD1kT0s.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { u as oe } from "./use-restore-focus-CosX7-gx.js";
|
|
15
|
+
import { t as F } from "./useEvent-BRH-aCqi.js";
|
|
16
16
|
import { n as I, t as se } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
|
|
17
|
-
import { t as ce } from "./ErrorBoundary-
|
|
17
|
+
import { t as ce } from "./ErrorBoundary-DmTMuDPR.js";
|
|
18
18
|
import { A as le, C as ue, D as de, E as fe, F as pe, I as me, L as he, M as ge, N as _e, O as L, P as ve, R as ye, S as be, T as xe, _ as Se, a as R, b as Ce, c as z, d as we, f as B, g as V, h as Te, i as Ee, j as H, k as U, l as De, m as Oe, n as ke, o as Ae, p as je, r as W, s as Me, t as Ne, u as Pe, v as Fe, w as Ie, x as Le, y as Re, z as ze } from "./data-grid-types-0PJ-9N5n.js";
|
|
19
19
|
//#region ../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
20
20
|
function Be(e) {
|
|
@@ -7068,7 +7068,7 @@ function us(e, t, n, r, i) {
|
|
|
7068
7068
|
}
|
|
7069
7069
|
//#endregion
|
|
7070
7070
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
|
|
7071
|
-
var ds = /* @__PURE__ */ e(wr(), 1), fs = /* @__PURE__ */ e(Or(), 1), ps = G.lazy(async () => await import("./data-grid-overlay-editor-
|
|
7071
|
+
var ds = /* @__PURE__ */ e(wr(), 1), fs = /* @__PURE__ */ e(Or(), 1), ps = G.lazy(async () => await import("./data-grid-overlay-editor-hZzwX7Ia.js")), ms = 0;
|
|
7072
7072
|
function hs(e) {
|
|
7073
7073
|
return (0, ds.default)((0, fs.default)((0, fs.default)(e).filter((e) => e.span !== void 0).map((e) => (0, io.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
|
|
7074
7074
|
}
|
|
@@ -9299,7 +9299,7 @@ function Js(e, t, n, r, i) {
|
|
|
9299
9299
|
}
|
|
9300
9300
|
//#endregion
|
|
9301
9301
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
|
|
9302
|
-
var Ys = G.lazy(async () => await import("./number-overlay-editor-
|
|
9302
|
+
var Ys = G.lazy(async () => await import("./number-overlay-editor-D0CsL3_R.js")), Xs = {
|
|
9303
9303
|
getAccessibilityString: (e) => e.data?.toString() ?? "",
|
|
9304
9304
|
kind: W.Number,
|
|
9305
9305
|
needsHover: (e) => e.hoverEffect === !0,
|
|
@@ -13616,9 +13616,7 @@ var rm = /* @__PURE__ */ t({
|
|
|
13616
13616
|
default: () => am
|
|
13617
13617
|
});
|
|
13618
13618
|
function im(e) {
|
|
13619
|
-
|
|
13620
|
-
let t = e.data;
|
|
13621
|
-
return t.kind === "dropdown-cell" ? t.value : e.data;
|
|
13619
|
+
return e.kind === W.Custom && qp.isMatch(e) ? e.data.value : e.data;
|
|
13622
13620
|
}
|
|
13623
13621
|
var am = (e) => {
|
|
13624
13622
|
let t = (0, Jp.c)(94), { data: n, columnFields: a, columnTypes: o, editableColumns: u, onAddEdits: d } = e, { theme: f } = oe(), p = (0, G.useRef)(null), m = (0, G.useRef)(null), [h, g] = (0, G.useState)(), [_, v] = (0, G.useState)(!1), y;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { g as t } from "./button-
|
|
3
|
-
import { h as n } from "./tooltip-
|
|
4
|
-
import { n as r } from "./assertNever-
|
|
2
|
+
import { g as t } from "./button-DZuNnIZO.js";
|
|
3
|
+
import { h as n } from "./tooltip-DMMiOn2f.js";
|
|
4
|
+
import { n as r } from "./assertNever-B-YzWzbL.js";
|
|
5
5
|
import { i, r as a } from "./data-grid-types-0PJ-9N5n.js";
|
|
6
6
|
var o = n("trash", [
|
|
7
7
|
["path", {
|
|
@@ -41,7 +41,7 @@ function l(e, t) {
|
|
|
41
41
|
throw Error(`Invalid boolean value for column '${t}': ${String(e)}`);
|
|
42
42
|
}
|
|
43
43
|
function u(e, t) {
|
|
44
|
-
return e.map((e) => {
|
|
44
|
+
return t.size === 0 ? e : e.map((e) => {
|
|
45
45
|
let n = { ...e };
|
|
46
46
|
for (let [e, r] of t) {
|
|
47
47
|
if (!(e in n)) continue;
|
|
@@ -170,68 +170,60 @@ function x(e) {
|
|
|
170
170
|
let { range: c } = n.current, { x: u, y: d } = c;
|
|
171
171
|
navigator.clipboard.readText().then((e) => {
|
|
172
172
|
if (!e.trim()) return;
|
|
173
|
-
let t = e.split("\n").filter((e) => e.trim()), n = [];
|
|
174
|
-
for (let e of t) {
|
|
175
|
-
let t = e
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
let n = d + e;
|
|
183
|
-
if (n >= i.length) break;
|
|
184
|
-
for (let [e, i] of t.entries()) {
|
|
185
|
-
if (i === void 0) continue;
|
|
186
|
-
let t = u + e;
|
|
187
|
-
if (t >= o.length) break;
|
|
188
|
-
let a = o[t], s = a.dataType, d = a.configuredType;
|
|
189
|
-
if (!(f === null || f.has(a.title))) continue;
|
|
173
|
+
let t = e.split("\n").filter((e) => e.trim()).map((e) => e.split(" ")), n = [], c = s === "all" ? null : new Set(s);
|
|
174
|
+
for (let [e, a] of t.entries()) {
|
|
175
|
+
let t = d + e;
|
|
176
|
+
if (t >= i.length) break;
|
|
177
|
+
for (let [e, i] of a.entries()) {
|
|
178
|
+
let a = u + e;
|
|
179
|
+
if (a >= o.length) break;
|
|
180
|
+
let s = o[a], d = s.dataType, f = s.configuredType;
|
|
181
|
+
if (!(c === null || c.has(s.title))) continue;
|
|
190
182
|
let p = i;
|
|
191
|
-
if (Array.isArray(
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
case "number": {
|
|
200
|
-
let e = Number(i);
|
|
201
|
-
if (!_(s, e, d)) continue;
|
|
202
|
-
p = e;
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
case "boolean":
|
|
206
|
-
if (a.configuredType !== "boolean") {
|
|
207
|
-
p = i.toLowerCase() === "true" || i === "1";
|
|
183
|
+
if (!(Array.isArray(f) && !_(d, i, f))) {
|
|
184
|
+
switch (d) {
|
|
185
|
+
case "integer": {
|
|
186
|
+
let e = Number(i);
|
|
187
|
+
if (!_(d, i, f)) continue;
|
|
188
|
+
p = Number.isSafeInteger(e) ? e : i.trim();
|
|
208
189
|
break;
|
|
209
190
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
191
|
+
case "number": {
|
|
192
|
+
let e = Number(i);
|
|
193
|
+
if (!_(d, e, f)) continue;
|
|
194
|
+
p = e;
|
|
195
|
+
break;
|
|
214
196
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
197
|
+
case "boolean":
|
|
198
|
+
if (s.configuredType !== "boolean") {
|
|
199
|
+
p = i.toLowerCase() === "true" || i === "1";
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
try {
|
|
203
|
+
p = l(i, s.title);
|
|
204
|
+
} catch {
|
|
205
|
+
continue;
|
|
206
|
+
}
|
|
207
|
+
break;
|
|
208
|
+
case "string":
|
|
209
|
+
case "date":
|
|
210
|
+
case "datetime":
|
|
211
|
+
case "time":
|
|
212
|
+
case "geometry":
|
|
213
|
+
case "unknown": break;
|
|
214
|
+
default:
|
|
215
|
+
r(d);
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
n.push({
|
|
219
|
+
rowIdx: t,
|
|
220
|
+
columnId: s.title,
|
|
221
|
+
value: p
|
|
222
|
+
});
|
|
225
223
|
}
|
|
226
|
-
let m = o[t].title;
|
|
227
|
-
c.push({
|
|
228
|
-
rowIdx: n,
|
|
229
|
-
columnId: m,
|
|
230
|
-
value: p
|
|
231
|
-
});
|
|
232
224
|
}
|
|
233
225
|
}
|
|
234
|
-
|
|
226
|
+
n.length > 0 && a(n);
|
|
235
227
|
}).catch((e) => {
|
|
236
228
|
t.error("Failed to read clipboard data", e);
|
|
237
229
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as e } from "./tooltip-
|
|
2
|
-
import {
|
|
3
|
-
import { r as n } from "./code-visibility-
|
|
1
|
+
import { h as e } from "./tooltip-DMMiOn2f.js";
|
|
2
|
+
import { yt as t } from "./use-restore-focus-CosX7-gx.js";
|
|
3
|
+
import { r as n } from "./code-visibility-Dw4-TXN0.js";
|
|
4
4
|
var r = e("triangle-alert", [
|
|
5
5
|
["path", {
|
|
6
6
|
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|