@marimo-team/islands 0.14.11-dev7 → 0.14.11-dev72
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-VTfcqOZN.js → ConnectedDataExplorerComponent-CDia3Uq3.js} +4 -4
- package/dist/{ImageComparisonComponent-b5udtUaG.js → ImageComparisonComponent-D8GDn93y.js} +1 -1
- package/dist/{VegaLite-CZ2MktvJ.js → VegaLite-B0DAcE_0.js} +6799 -7018
- package/dist/{_baseUniq-Dxs4JH0Y.js → _baseUniq-C0VlTHW8.js} +48 -48
- package/dist/{any-language-editor-CPmAtELv.js → any-language-editor-DPcbYqjc.js} +1 -1
- package/dist/{architectureDiagram-IEHRJDOE-CP88TKjC.js → architectureDiagram-NQ2NVSRB-C2Ajtpmz.js} +897 -894
- package/dist/assets/{save-worker-BIDtxCd1.js → save-worker-fI5ofStJ.js} +1040 -1405
- package/dist/assets/worker-BLUAwPAO.js +3790 -0
- package/dist/assets/worker-BldghCZh.js +3752 -0
- package/dist/{blockDiagram-JOT3LUYC-C2rusulX.js → blockDiagram-PHRCVELO-xrhIbibO.js} +534 -522
- package/dist/{c4Diagram-VJAJSXHY-CE4R-Yj-.js → c4Diagram-6F6E4RAY-B9M8UZ5C.js} +4 -4
- package/dist/{channel-BTOPiHD4.js → channel-D3Z57-L0.js} +1 -1
- package/dist/{chunk-4BMEZGHF-BGr1mHPI.js → chunk-353BL4L5-B8RJflA2.js} +1 -1
- package/dist/{chunk-D6G4REZN-B3t5XG_V.js → chunk-67H74DCK-DjF3P_6n.js} +1 -1
- package/dist/chunk-6OLS64BW-DwBPGTBy.js +1383 -0
- package/dist/{chunk-XZIHB7SX-Bb6YfyvK.js → chunk-AACKK3MU-BNqFtiBq.js} +1 -1
- package/dist/chunk-BFAMUDN2-C7-45IWl.js +8 -0
- package/dist/chunk-E2GYISFI-D6ZMZ5f1.js +19 -0
- package/dist/{chunk-A2AXSNBT-BNYLnU9D.js → chunk-QEP2MXWD-ThQxWRcu.js} +30 -27
- package/dist/chunk-SKB7J2MH-DSRt4RR9.js +20 -0
- package/dist/{classDiagram-GIVACNV2-BGu4avYg.js → classDiagram-BGRH5UQR-Dhwtv8yj.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-BGu4avYg.js → classDiagram-v2-O24JOBDK-Dhwtv8yj.js} +2 -2
- package/dist/{clone-gdQZ-8A5.js → clone-CdbI6pj6.js} +1 -1
- package/dist/{dagre-OKDRZEBW-B4FgIhBO.js → dagre-FFZHY6LT-D2JmeFTB.js} +8 -8
- package/dist/data-grid-overlay-editor-CKgEMxxc.js +105 -0
- package/dist/diagram-3EMPZRKU-JHPbiJCi.js +313 -0
- package/dist/diagram-5UYTHUR4-eEJi5-6t.js +137 -0
- package/dist/{diagram-SSKATNLV-DYldQ1nJ.js → diagram-ZTM2IBQH-D88l5hnm.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-Bn1YCXnZ.js → erDiagram-R3QVA2FD-BGlTaWTV.js} +6 -5
- package/dist/{flowDiagram-4HSFHLVR-Cv6sE3SQ.js → flowDiagram-PKI6S5ZS-CQVcnZSd.js} +283 -278
- package/dist/{ganttDiagram-APWFNJXF-CCEsgCwo.js → ganttDiagram-EK5VF46D-CkFx0RaP.js} +459 -445
- package/dist/{gitGraphDiagram-7IBYFJ6S-CXgtNvZc.js → gitGraphDiagram-GW3U2K7C-D-gRVxCj.js} +35 -35
- package/dist/glide-data-editor-BLSOKrmw.js +12893 -0
- package/dist/{graph-N78OoukA.js → graph-Dz3qJaaG.js} +3 -3
- package/dist/{index-DLWDWxiI.js → index-Bxfs9Hk_.js} +6 -3
- package/dist/{index-s-KrzpFz.js → index-CDGjWl9n.js} +4 -4
- package/dist/{index-B6r1oHeS.js → index-CaY3iMRr.js} +1 -1
- package/dist/{index-BTWM953l.js → index-DwK5Y7p2.js} +3 -3
- package/dist/index-pBmAzQJl.js +235 -0
- package/dist/{infoDiagram-PH2N3AL5-DqyXVVcE.js → infoDiagram-RLU2ROGC-DtDTKm7d.js} +5 -3
- package/dist/journeyDiagram-EWQZEKCU-Bf6s-6jc.js +836 -0
- package/dist/{kanban-definition-NDS4AKOZ-CwEmTRTQ.js → kanban-definition-ILFWEQ3N-DAtyajgG.js} +41 -39
- package/dist/{layout-ClDNXAo5.js → layout-C2EoBYrV.js} +35 -35
- package/dist/{linear-lyO559qg.js → linear-D6CkH6Kj.js} +25 -25
- package/dist/{main-DGt3HrKs.js → main-ZWGPaFnn.js} +55759 -55421
- package/dist/main.js +2 -2
- package/dist/{mermaid-q6_P6X8T.js → mermaid-CzkcAUDB.js} +4925 -4853
- package/dist/{min-ByCW12IZ.js → min-Bo5Qh008.js} +24 -24
- package/dist/{mindmap-definition-ALO5MXBD-ixE8jD_p.js → mindmap-definition-CZNETY7S-CqwLUoQ1.js} +3 -3
- package/dist/number-overlay-editor-mhiEvTMk.js +599 -0
- package/dist/{pieDiagram-IB7DONF6-CmGcPA5S.js → pieDiagram-NIOCPIFQ-BVoanLni.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-BcuouniC.js → quadrantDiagram-2OG54O6I-C_U4EVXZ.js} +2 -2
- package/dist/{react-plotly-CKjey4TC.js → react-plotly-DY4XU5-Q.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-CpADntW_.js → requirementDiagram-SO3GGRV7-B_IuYu5S.js} +5 -4
- package/dist/{sankeyDiagram-QLVOVGJD-RiHM-gc1.js → sankeyDiagram-4UZDY2LN-DHDmWj2L.js} +11 -11
- package/dist/{sequenceDiagram-X6HHIX6F-zjDlErjG.js → sequenceDiagram-ZIKVLSP4-B0FsKMNg.js} +151 -149
- package/dist/{slides-component-D-T7V3Um.js → slides-component-CQ1m__jq.js} +969 -962
- package/dist/stateDiagram-XX37X6EN-CVOR_WQQ.js +264 -0
- package/dist/{stateDiagram-v2-YXO3MK2T-hmq0VkWg.js → stateDiagram-v2-GD6S3NHB-BDaP6oYI.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-CySBB51c.js → time-95e914-x.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-BFWD7bgu.js → timeline-definition-RI47OAVP-Bc7rrp3P.js} +99 -102
- package/dist/{radar-MK3ICKWK-DD-wL37j.js → treemap-FKARHQ26-DFP3Gxy8.js} +2469 -2330
- package/dist/{vega-component-D8e5IG1f.js → vega-component-C6HtQfwj.js} +19 -19
- package/dist/{xychartDiagram-VJFVF3MP-BO6y-mli.js → xychartDiagram-H2YORKM3-sWRpcEy4.js} +409 -375
- package/package.json +45 -44
- package/dist/assets/worker-BcyuOSTi.js +0 -4117
- package/dist/assets/worker-Dz6PPEGc.js +0 -4115
- package/dist/chunk-AEK57VVT-BjKsSzf4.js +0 -1416
- package/dist/chunk-RZ5BOZE2-BQRA6_lz.js +0 -24
- package/dist/data-editor-LPDyjTPa.js +0 -32933
- package/dist/diagram-VNBRO52H-BtnkOAZg.js +0 -126
- package/dist/journeyDiagram-U35MCT3I-7reCe8rl.js +0 -809
- package/dist/stateDiagram-DGXRK772-DwIrysh_.js +0 -271
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { _ as a, d as o } from "./mermaid-CzkcAUDB.js";
|
|
2
|
+
var d = /* @__PURE__ */ a((t, e) => {
|
|
3
|
+
let n;
|
|
4
|
+
return e === "sandbox" && (n = o("#i" + t)), (e === "sandbox" ? o(n.nodes()[0].contentDocument.body) : o("body")).select(`[id="${t}"]`);
|
|
5
|
+
}, "getDiagramElement");
|
|
6
|
+
export {
|
|
7
|
+
d as g
|
|
8
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { _ as e } from "./mermaid-CzkcAUDB.js";
|
|
2
|
+
var l = /* @__PURE__ */ e(() => `
|
|
3
|
+
/* Font Awesome icon styling - consolidated */
|
|
4
|
+
.label-icon {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
height: 1em;
|
|
7
|
+
overflow: visible;
|
|
8
|
+
vertical-align: -0.125em;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.node .label-icon path {
|
|
12
|
+
fill: currentColor;
|
|
13
|
+
stroke: revert;
|
|
14
|
+
stroke-width: revert;
|
|
15
|
+
}
|
|
16
|
+
`, "getIconStyles");
|
|
17
|
+
export {
|
|
18
|
+
l as g
|
|
19
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
var _a, _b;
|
|
2
|
-
import { g as Ze
|
|
3
|
-
import {
|
|
2
|
+
import { g as Ze } from "./chunk-E2GYISFI-D6ZMZ5f1.js";
|
|
3
|
+
import { g as $e } from "./chunk-BFAMUDN2-C7-45IWl.js";
|
|
4
|
+
import { s as et } from "./chunk-SKB7J2MH-DSRt4RR9.js";
|
|
5
|
+
import { _ as p, l as ve, c as D, p as tt, r as st, u as Ie, d as H, b as it, a as at, s as nt, g as rt, q as ut, t as lt, k as x, z as ct, y as ot, i as ht, S as M } from "./mermaid-CzkcAUDB.js";
|
|
4
6
|
var Oe = function() {
|
|
5
7
|
var e = /* @__PURE__ */ p(function(v, l, c, d) {
|
|
6
8
|
for (c = c || {}, d = v.length; d--; c[v[d]] = l) ;
|
|
@@ -695,10 +697,10 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : xe =
|
|
|
695
697
|
return p(re, "Parser"), re.prototype = _e, _e.Parser = re, new re();
|
|
696
698
|
}();
|
|
697
699
|
Oe.parser = Oe;
|
|
698
|
-
var
|
|
700
|
+
var Et = Oe, Ye = ["#", "+", "~", "-", ""], Qe = (_a = class {
|
|
699
701
|
constructor(e, i) {
|
|
700
702
|
this.memberType = i, this.visibility = "", this.classifier = "", this.text = "";
|
|
701
|
-
const r =
|
|
703
|
+
const r = ht(e, D());
|
|
702
704
|
this.parseMember(r);
|
|
703
705
|
}
|
|
704
706
|
getDisplayDetails() {
|
|
@@ -742,7 +744,7 @@ var Ct = Oe, Ye = ["#", "+", "~", "-", ""], Qe = (_a = class {
|
|
|
742
744
|
return "";
|
|
743
745
|
}
|
|
744
746
|
}
|
|
745
|
-
}, p(_a, "ClassMember"), _a), oe = "classId-", We = 0, w = /* @__PURE__ */ p((e) => x.sanitizeText(e, D()), "sanitizeText"),
|
|
747
|
+
}, p(_a, "ClassMember"), _a), oe = "classId-", We = 0, w = /* @__PURE__ */ p((e) => x.sanitizeText(e, D()), "sanitizeText"), yt = (_b = class {
|
|
746
748
|
constructor() {
|
|
747
749
|
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.functions = [], this.lineType = {
|
|
748
750
|
LINE: 0,
|
|
@@ -764,7 +766,7 @@ var Ct = Oe, Ye = ["#", "+", "~", "-", ""], Qe = (_a = class {
|
|
|
764
766
|
}).on("mouseout", (a) => {
|
|
765
767
|
i.transition().duration(500).style("opacity", 0), H(a.currentTarget).classed("hover", false);
|
|
766
768
|
});
|
|
767
|
-
}, "setupToolTips"), this.direction = "TB", this.setAccTitle =
|
|
769
|
+
}, "setupToolTips"), this.direction = "TB", this.setAccTitle = it, this.getAccTitle = at, this.setAccDescription = nt, this.getAccDescription = rt, this.setDiagramTitle = ut, this.getDiagramTitle = lt, this.getConfig = /* @__PURE__ */ p(() => D().class, "getConfig"), this.functions.push(this.setupToolTips.bind(this)), this.clear(), this.addRelation = this.addRelation.bind(this), this.addClassesToNamespace = this.addClassesToNamespace.bind(this), this.addNamespace = this.addNamespace.bind(this), this.setCssClass = this.setCssClass.bind(this), this.addMembers = this.addMembers.bind(this), this.addClass = this.addClass.bind(this), this.setClassLabel = this.setClassLabel.bind(this), this.addAnnotation = this.addAnnotation.bind(this), this.addMember = this.addMember.bind(this), this.cleanupLabel = this.cleanupLabel.bind(this), this.addNote = this.addNote.bind(this), this.defineClass = this.defineClass.bind(this), this.setDirection = this.setDirection.bind(this), this.setLink = this.setLink.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.clear = this.clear.bind(this), this.setTooltip = this.setTooltip.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setCssStyle = this.setCssStyle.bind(this);
|
|
768
770
|
}
|
|
769
771
|
splitClassNameAndType(e) {
|
|
770
772
|
const i = x.sanitizeText(e, D());
|
|
@@ -784,7 +786,7 @@ var Ct = Oe, Ye = ["#", "+", "~", "-", ""], Qe = (_a = class {
|
|
|
784
786
|
/**
|
|
785
787
|
* Function called by parser when a node definition has been found.
|
|
786
788
|
*
|
|
787
|
-
* @param id -
|
|
789
|
+
* @param id - ID of the class to add
|
|
788
790
|
* @public
|
|
789
791
|
*/
|
|
790
792
|
addClass(e) {
|
|
@@ -827,7 +829,7 @@ var Ct = Oe, Ye = ["#", "+", "~", "-", ""], Qe = (_a = class {
|
|
|
827
829
|
throw new Error("Class not found: " + i);
|
|
828
830
|
}
|
|
829
831
|
clear() {
|
|
830
|
-
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.direction = "TB",
|
|
832
|
+
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.direction = "TB", ct();
|
|
831
833
|
}
|
|
832
834
|
getClass(e) {
|
|
833
835
|
return this.classes.get(e);
|
|
@@ -1012,7 +1014,7 @@ var Ct = Oe, Ye = ["#", "+", "~", "-", ""], Qe = (_a = class {
|
|
|
1012
1014
|
/**
|
|
1013
1015
|
* Function called by parser when a namespace definition has been found.
|
|
1014
1016
|
*
|
|
1015
|
-
* @param id -
|
|
1017
|
+
* @param id - ID of the namespace to add
|
|
1016
1018
|
* @public
|
|
1017
1019
|
*/
|
|
1018
1020
|
addNamespace(e) {
|
|
@@ -1032,8 +1034,8 @@ var Ct = Oe, Ye = ["#", "+", "~", "-", ""], Qe = (_a = class {
|
|
|
1032
1034
|
/**
|
|
1033
1035
|
* Function called by parser when a namespace definition has been found.
|
|
1034
1036
|
*
|
|
1035
|
-
* @param id -
|
|
1036
|
-
* @param classNames -
|
|
1037
|
+
* @param id - ID of the namespace to add
|
|
1038
|
+
* @param classNames - IDs of the class to add
|
|
1037
1039
|
* @public
|
|
1038
1040
|
*/
|
|
1039
1041
|
addClassesToNamespace(e, i) {
|
|
@@ -1157,7 +1159,7 @@ var Ct = Oe, Ye = ["#", "+", "~", "-", ""], Qe = (_a = class {
|
|
|
1157
1159
|
for (const a of this.relations) {
|
|
1158
1160
|
u++;
|
|
1159
1161
|
const o = {
|
|
1160
|
-
id:
|
|
1162
|
+
id: ot(a.id1, a.id2, {
|
|
1161
1163
|
prefix: "id",
|
|
1162
1164
|
counter: u
|
|
1163
1165
|
}),
|
|
@@ -1182,7 +1184,7 @@ var Ct = Oe, Ye = ["#", "+", "~", "-", ""], Qe = (_a = class {
|
|
|
1182
1184
|
}
|
|
1183
1185
|
return { nodes: e, edges: i, other: {}, config: r, direction: this.getDirection() };
|
|
1184
1186
|
}
|
|
1185
|
-
}, p(_b, "ClassDB"), _b),
|
|
1187
|
+
}, p(_b, "ClassDB"), _b), dt = /* @__PURE__ */ p((e) => `g.classGroup text {
|
|
1186
1188
|
fill: ${e.nodeBorder || e.classText};
|
|
1187
1189
|
stroke: none;
|
|
1188
1190
|
font-family: ${e.fontFamily};
|
|
@@ -1340,34 +1342,35 @@ g.classGroup line {
|
|
|
1340
1342
|
font-size: 18px;
|
|
1341
1343
|
fill: ${e.textColor};
|
|
1342
1344
|
}
|
|
1343
|
-
|
|
1345
|
+
${Ze()}
|
|
1346
|
+
`, "getStyles"), Tt = dt, pt = /* @__PURE__ */ p((e, i = "TB") => {
|
|
1344
1347
|
if (!e.doc)
|
|
1345
1348
|
return i;
|
|
1346
1349
|
let r = i;
|
|
1347
1350
|
for (const u of e.doc)
|
|
1348
1351
|
u.stmt === "dir" && (r = u.value);
|
|
1349
1352
|
return r;
|
|
1350
|
-
}, "getDir"),
|
|
1353
|
+
}, "getDir"), At = /* @__PURE__ */ p(function(e, i) {
|
|
1351
1354
|
return i.db.getClasses();
|
|
1352
|
-
}, "getClasses"),
|
|
1355
|
+
}, "getClasses"), ft = /* @__PURE__ */ p(async function(e, i, r, u) {
|
|
1353
1356
|
ve.info("REF0:"), ve.info("Drawing class diagram (v3)", i);
|
|
1354
|
-
const { securityLevel: a, state: o, layout: A } = D(), f = u.db.getData(), T =
|
|
1355
|
-
f.type = u.type, f.layoutAlgorithm =
|
|
1357
|
+
const { securityLevel: a, state: o, layout: A } = D(), f = u.db.getData(), T = $e(i, a);
|
|
1358
|
+
f.type = u.type, f.layoutAlgorithm = tt(A), f.nodeSpacing = (o == null ? void 0 : o.nodeSpacing) || 50, f.rankSpacing = (o == null ? void 0 : o.rankSpacing) || 50, f.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], f.diagramId = i, await st(f, T);
|
|
1356
1359
|
const _ = 8;
|
|
1357
1360
|
Ie.insertTitle(
|
|
1358
1361
|
T,
|
|
1359
1362
|
"classDiagramTitleText",
|
|
1360
1363
|
(o == null ? void 0 : o.titleTopMargin) ?? 25,
|
|
1361
1364
|
u.db.getDiagramTitle()
|
|
1362
|
-
),
|
|
1363
|
-
}, "draw"),
|
|
1364
|
-
getClasses:
|
|
1365
|
-
draw:
|
|
1366
|
-
getDir:
|
|
1365
|
+
), et(T, _, "classDiagram", (o == null ? void 0 : o.useMaxWidth) ?? true);
|
|
1366
|
+
}, "draw"), kt = {
|
|
1367
|
+
getClasses: At,
|
|
1368
|
+
draw: ft,
|
|
1369
|
+
getDir: pt
|
|
1367
1370
|
};
|
|
1368
1371
|
export {
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1372
|
+
yt as C,
|
|
1373
|
+
Et as a,
|
|
1374
|
+
kt as c,
|
|
1375
|
+
Tt as s
|
|
1373
1376
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { _ as a, e as w, l as x } from "./mermaid-CzkcAUDB.js";
|
|
2
|
+
var d = /* @__PURE__ */ a((e, t, i, r) => {
|
|
3
|
+
e.attr("class", i);
|
|
4
|
+
const { width: o, height: h, x: n, y: c } = u(e, t);
|
|
5
|
+
w(e, h, o, r);
|
|
6
|
+
const s = l(n, c, o, h, t);
|
|
7
|
+
e.attr("viewBox", s), x.debug(`viewBox configured: ${s} with padding: ${t}`);
|
|
8
|
+
}, "setupViewPortForSVG"), u = /* @__PURE__ */ a((e, t) => {
|
|
9
|
+
var _a;
|
|
10
|
+
const i = ((_a = e.node()) == null ? void 0 : _a.getBBox()) || { width: 0, height: 0, x: 0, y: 0 };
|
|
11
|
+
return {
|
|
12
|
+
width: i.width + t * 2,
|
|
13
|
+
height: i.height + t * 2,
|
|
14
|
+
x: i.x,
|
|
15
|
+
y: i.y
|
|
16
|
+
};
|
|
17
|
+
}, "calculateDimensionsWithPadding"), l = /* @__PURE__ */ a((e, t, i, r, o) => `${e - o} ${t - o} ${i} ${r}`, "createViewBox");
|
|
18
|
+
export {
|
|
19
|
+
d as s
|
|
20
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as r, c as s, a as e, C as t } from "./chunk-
|
|
2
|
-
import { _ as l } from "./mermaid-
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-QEP2MXWD-ThQxWRcu.js";
|
|
2
|
+
import { _ as l } from "./mermaid-CzkcAUDB.js";
|
|
3
3
|
var d = {
|
|
4
4
|
parser: e,
|
|
5
5
|
get db() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as r, c as s, a as e, C as t } from "./chunk-
|
|
2
|
-
import { _ as l } from "./mermaid-
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-QEP2MXWD-ThQxWRcu.js";
|
|
2
|
+
import { _ as l } from "./mermaid-CzkcAUDB.js";
|
|
3
3
|
var d = {
|
|
4
4
|
parser: e,
|
|
5
5
|
get db() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as w,
|
|
2
|
-
import { G as B } from "./graph-
|
|
3
|
-
import { l as I } from "./layout-
|
|
4
|
-
import { i as b } from "./_baseUniq-
|
|
5
|
-
import { c as L } from "./clone-
|
|
6
|
-
import { m as A } from "./min-
|
|
1
|
+
import { _ as w, ae as F, af as Y, ag as _, ah as H, l as i, c as V, ai as U, aj as $, a1 as q, a6 as z, a2 as P, a0 as K, ak as Q, al as W, am as Z } from "./mermaid-CzkcAUDB.js";
|
|
2
|
+
import { G as B } from "./graph-Dz3qJaaG.js";
|
|
3
|
+
import { l as I } from "./layout-C2EoBYrV.js";
|
|
4
|
+
import { i as b } from "./_baseUniq-C0VlTHW8.js";
|
|
5
|
+
import { c as L } from "./clone-CdbI6pj6.js";
|
|
6
|
+
import { m as A } from "./min-Bo5Qh008.js";
|
|
7
7
|
function h(e) {
|
|
8
8
|
var t = {
|
|
9
9
|
options: {
|
|
@@ -278,7 +278,7 @@ Parent cluster`,
|
|
|
278
278
|
t.node(f),
|
|
279
279
|
o
|
|
280
280
|
), x = N.elem;
|
|
281
|
-
|
|
281
|
+
U(s, x), s.diff = N.diff || 0, i.info(
|
|
282
282
|
"New compound node after recursive render XAX",
|
|
283
283
|
f,
|
|
284
284
|
"width",
|
|
@@ -288,7 +288,7 @@ Parent cluster`,
|
|
|
288
288
|
s.height
|
|
289
289
|
// node.x,
|
|
290
290
|
// node.y
|
|
291
|
-
),
|
|
291
|
+
), $(x, s);
|
|
292
292
|
} else
|
|
293
293
|
t.children(f).length > 0 ? (i.trace(
|
|
294
294
|
"Cluster - the non recursive path XBX",
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { G as r, H as $ } from "./main-ZWGPaFnn.js";
|
|
2
|
+
import { s as z, i as D, a as J, b as Q, T as U, C as Z, m as ee } from "./glide-data-editor-BLSOKrmw.js";
|
|
3
|
+
const te = () => (t) => t.targetX, re = () => (t) => t.targetY, ne = () => (t) => t.targetWidth, ie = () => (t) => t.targetHeight, se = () => (t) => t.targetY + 10, ae = () => (t) => Math.max(0, (t.targetHeight - 28) / 2), oe = /* @__PURE__ */ z("div")({
|
|
4
|
+
name: "DataGridOverlayEditorStyle",
|
|
5
|
+
class: "gdg-d19meir1",
|
|
6
|
+
propsAsIs: false,
|
|
7
|
+
vars: {
|
|
8
|
+
"d19meir1-0": [re(), "px"],
|
|
9
|
+
"d19meir1-1": [te(), "px"],
|
|
10
|
+
"d19meir1-2": [ne(), "px"],
|
|
11
|
+
"d19meir1-3": [ie(), "px"],
|
|
12
|
+
"d19meir1-4": [se(), "px"],
|
|
13
|
+
"d19meir1-5": [ae(), "px"]
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
function le() {
|
|
17
|
+
const [t, s] = r.useState();
|
|
18
|
+
return [t ?? void 0, s];
|
|
19
|
+
}
|
|
20
|
+
function de() {
|
|
21
|
+
const [t, s] = le(), [i, h] = r.useState(0), [f, C] = r.useState(true);
|
|
22
|
+
r.useLayoutEffect(() => {
|
|
23
|
+
if (t === void 0 || !("IntersectionObserver" in window))
|
|
24
|
+
return;
|
|
25
|
+
const a = new IntersectionObserver((o) => {
|
|
26
|
+
o.length !== 0 && C(o[0].isIntersecting);
|
|
27
|
+
}, { threshold: 1 });
|
|
28
|
+
return a.observe(t), () => a.disconnect();
|
|
29
|
+
}, [t]), r.useEffect(() => {
|
|
30
|
+
if (f || t === void 0)
|
|
31
|
+
return;
|
|
32
|
+
let a;
|
|
33
|
+
const o = () => {
|
|
34
|
+
const { right: x } = t.getBoundingClientRect();
|
|
35
|
+
h((g) => Math.min(g + window.innerWidth - x - 10, 0)), a = requestAnimationFrame(o);
|
|
36
|
+
};
|
|
37
|
+
return a = requestAnimationFrame(o), () => {
|
|
38
|
+
a !== void 0 && cancelAnimationFrame(a);
|
|
39
|
+
};
|
|
40
|
+
}, [t, f]);
|
|
41
|
+
const v = r.useMemo(() => ({ transform: `translateX(${i}px)` }), [i]);
|
|
42
|
+
return {
|
|
43
|
+
ref: s,
|
|
44
|
+
style: v
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const fe = (t) => {
|
|
48
|
+
const { target: s, content: i, onFinishEditing: h, forceEditMode: f, initialValue: C, imageEditorOverride: v, markdownDivCreateNode: a, highlight: o, className: x, theme: g, id: N, cell: m, bloom: I, validateCell: p, getCellRenderer: w, provideEditor: F, isOutsideClick: V, customEventTarget: W } = t, [l, X] = r.useState(f ? i : void 0), O = r.useRef(l ?? i);
|
|
49
|
+
O.current = l ?? i;
|
|
50
|
+
const [y, S] = r.useState(() => p === void 0 ? true : !(D(i) && (p == null ? void 0 : p(m, i, O.current)) === false)), u = r.useCallback((e, n) => {
|
|
51
|
+
h(y ? e : void 0, n);
|
|
52
|
+
}, [y, h]), A = r.useCallback((e) => {
|
|
53
|
+
if (p !== void 0 && e !== void 0 && D(e)) {
|
|
54
|
+
const n = p(m, e, O.current);
|
|
55
|
+
n === false ? S(false) : (typeof n == "object" && (e = n), S(true));
|
|
56
|
+
}
|
|
57
|
+
X(e);
|
|
58
|
+
}, [m, p]), E = r.useRef(false), c = r.useRef(void 0), K = r.useCallback(() => {
|
|
59
|
+
u(l, [0, 0]), E.current = true;
|
|
60
|
+
}, [l, u]), Y = r.useCallback((e, n) => {
|
|
61
|
+
u(e, n ?? c.current ?? [0, 0]), E.current = true;
|
|
62
|
+
}, [u]), j = r.useCallback(async (e) => {
|
|
63
|
+
let n = false;
|
|
64
|
+
e.key === "Escape" ? (e.stopPropagation(), e.preventDefault(), c.current = [0, 0]) : e.key === "Enter" && !e.shiftKey ? (e.stopPropagation(), e.preventDefault(), c.current = [0, 1], n = true) : e.key === "Tab" && (e.stopPropagation(), e.preventDefault(), c.current = [e.shiftKey ? -1 : 1, 0], n = true), window.setTimeout(() => {
|
|
65
|
+
!E.current && c.current !== void 0 && (u(n ? l : void 0, c.current), E.current = true);
|
|
66
|
+
}, 0);
|
|
67
|
+
}, [u, l]), k = l ?? i, [d, L] = r.useMemo(() => {
|
|
68
|
+
var _a, _b;
|
|
69
|
+
if (J(i))
|
|
70
|
+
return [];
|
|
71
|
+
const e = { ...i, location: m }, n = F == null ? void 0 : F(e);
|
|
72
|
+
return n !== void 0 ? [n, false] : [(_b = (_a = w(i)) == null ? void 0 : _a.provideEditor) == null ? void 0 : _b.call(_a, e), false];
|
|
73
|
+
}, [m, i, w, F]), { ref: q, style: B } = de();
|
|
74
|
+
let P = true, T, M = true, b;
|
|
75
|
+
if (d !== void 0) {
|
|
76
|
+
P = d.disablePadding !== true, M = d.disableStyling !== true;
|
|
77
|
+
const e = Q(d);
|
|
78
|
+
e && (b = d.styleOverride);
|
|
79
|
+
const n = e ? d.editor : d;
|
|
80
|
+
T = r.createElement(n, { isHighlighted: o, onChange: A, value: k, initialValue: C, onFinishedEditing: Y, validatedSelection: D(k) ? k.selectionRange : void 0, forceEditMode: f, target: s, imageEditorOverride: v, markdownDivCreateNode: a, isValid: y, theme: g });
|
|
81
|
+
}
|
|
82
|
+
b = { ...b, ...B };
|
|
83
|
+
const _ = document.getElementById("portal");
|
|
84
|
+
if (_ === null)
|
|
85
|
+
return console.error('Cannot open Data Grid overlay editor, because portal not found. Please add `<div id="portal" />` as the last child of your `<body>`.'), null;
|
|
86
|
+
let R = M ? "gdg-style" : "gdg-unstyle";
|
|
87
|
+
y || (R += " gdg-invalid"), P && (R += " gdg-pad");
|
|
88
|
+
const G = (I == null ? void 0 : I[0]) ?? 1, H = (I == null ? void 0 : I[1]) ?? 1;
|
|
89
|
+
return $.createPortal(r.createElement(
|
|
90
|
+
U.Provider,
|
|
91
|
+
{ value: g },
|
|
92
|
+
r.createElement(
|
|
93
|
+
Z,
|
|
94
|
+
{ style: ee(g), className: x, onClickOutside: K, isOutsideClick: V, customEventTarget: W },
|
|
95
|
+
r.createElement(
|
|
96
|
+
oe,
|
|
97
|
+
{ ref: q, id: N, className: R, style: b, as: L === true ? "label" : void 0, targetX: s.x - G, targetY: s.y - H, targetWidth: s.width + G * 2, targetHeight: s.height + H * 2 },
|
|
98
|
+
r.createElement("div", { className: "gdg-clip-region", onKeyDown: j }, T)
|
|
99
|
+
)
|
|
100
|
+
)
|
|
101
|
+
), _);
|
|
102
|
+
};
|
|
103
|
+
export {
|
|
104
|
+
fe as default
|
|
105
|
+
};
|