@marimo-team/islands 0.15.2 → 0.15.4
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-C39nQwtD.js → ConnectedDataExplorerComponent-B68gXlbY.js} +323 -328
- package/dist/{ImageComparisonComponent-BhkiyswP.js → ImageComparisonComponent-Cw1oA8Tn.js} +13 -13
- package/dist/{_baseUniq-DdHL34FO.js → _baseUniq-CQrhBg_9.js} +67 -67
- package/dist/any-language-editor-pzUl6lxp.js +27 -0
- package/dist/{arc-BXrety1g.js → arc-BOhn-m2C.js} +1 -1
- package/dist/{architectureDiagram-KFL7JDKH-BMy6ywCF.js → architectureDiagram-W76B3OCA-DdYf2VnU.js} +144 -144
- package/dist/assets/{worker-COGufAQn.js → worker-BcG8m3h5.js} +33 -29
- package/dist/asterisk-DS281yxp.js +271 -0
- package/dist/{blockDiagram-ZYB65J3Q-DYT2-nlI.js → blockDiagram-QIGZ2CNN-DmmYotkP.js} +10 -10
- package/dist/{c4Diagram-AAMF2YG6-ZiQzioe6.js → c4Diagram-FPNF74CW-Dyz4zMHJ.js} +8 -8
- package/dist/{channel-CeuXqUAU.js → channel-CCL8jXAe.js} +1 -1
- package/dist/{chunk-ANTBXLJU-BvYnIrdq.js → chunk-4BX2VUAB-BfKwWLfJ.js} +1 -1
- package/dist/{chunk-WVR4S24B-DXj8yaUk.js → chunk-55IACEB6-CFQU7zSp.js} +1 -1
- package/dist/{chunk-GLLZNHP4-CyFsosAe.js → chunk-FMBD7UC4-DDjZzUcl.js} +1 -1
- package/dist/{chunk-JBRWN2VN-DA_EEhy2.js → chunk-K7UQS3LO-nBRjBU1H.js} +117 -117
- package/dist/{chunk-NRVI72HA-BYx2jMlI.js → chunk-QN33PNHL-B-g8sJzl.js} +1 -1
- package/dist/{chunk-FHKO5MBM-DfCztBk8.js → chunk-QZHKN3VN-B7QSJS3J.js} +1 -1
- package/dist/{chunk-LXBSTHXV-Se7vdY6J.js → chunk-TVAH2DTR-pGXll4d1.js} +7 -7
- package/dist/{chunk-OMD6QJNC-CqgcPMgL.js → chunk-TZMSLE5B-Dx9h-1mv.js} +1 -1
- package/dist/{classDiagram-v2-QTMF73CY-B19A3G1l.js → classDiagram-KNZD7YFC-BXryI7DY.js} +2 -2
- package/dist/{classDiagram-3BZAVTQC-B19A3G1l.js → classDiagram-v2-RKCZMP56-BXryI7DY.js} +2 -2
- package/dist/{clone-78au0tn1.js → clone-DqwV7ges.js} +1 -1
- package/dist/cose-bilkent-S5V4N54A-Di6FNMXz.js +2609 -0
- package/dist/{cytoscape.esm-BYnVVhJX.js → cytoscape.esm-DfdJODL8.js} +34 -34
- package/dist/{dagre-2BBEFEWP-BfEn3ZUV.js → dagre-5GWH7T2D-BTZPMTey.js} +6 -6
- package/dist/{data-grid-overlay-editor-CH_qLkV2.js → data-grid-overlay-editor-ryatXXby.js} +11 -11
- package/dist/{diagram-4IRLE6MV-CL8xidnG.js → diagram-N5W7TBWH-D79_zdOu.js} +59 -60
- package/dist/{diagram-RP2FKANI-B1BPcUew.js → diagram-QEK2KX5R-DX2A_SD0.js} +15 -15
- package/dist/{diagram-GUPCWM2R-CZ5cfqlq.js → diagram-S2PKOQOG-DM6VMTrJ.js} +10 -10
- package/dist/dockerfile-BoowzQlp.js +194 -0
- package/dist/ebnf-DUPDuY4r.js +78 -0
- package/dist/{erDiagram-HZWUO2LU-BEAIww50.js → erDiagram-AWTI2OKA-BBirxtlI.js} +8 -8
- package/dist/fcl-CPC2WYrI.js +103 -0
- package/dist/{flowDiagram-THRYKUMA-Czs2UAI2.js → flowDiagram-PVAE7QVJ-DyVweEMs.js} +9 -9
- package/dist/{ganttDiagram-WV7ZQ7D5-ByYIAVFO.js → ganttDiagram-OWAHRB6G-DTB7FX7r.js} +34 -34
- package/dist/{gitGraphDiagram-OJR772UL-BcpDsiyB.js → gitGraphDiagram-NY62KEGX-BrbIb5pD.js} +4 -4
- package/dist/{glide-data-editor-CmN6FVyi.js → glide-data-editor-DhMX4nmM.js} +33 -33
- package/dist/{graph-77W6heli.js → graph-CuLSrclI.js} +3 -3
- package/dist/http-D9LttvKF.js +44 -0
- package/dist/{index-BOojn38D.js → index-BNgdUQ2e.js} +7711 -7711
- package/dist/index-DIy6LHLJ.js +98 -0
- package/dist/{index-CmozKMxx.js → index-Df2dsx1t.js} +6 -6
- package/dist/{index-pBmAzQJl.js → index-MCx5v1x0.js} +2 -2
- package/dist/{index-Bfk9dnyS.js → index-cz_xaKvT.js} +33090 -32892
- package/dist/{infoDiagram-6WOFNB3A-CfzLHHVP.js → infoDiagram-STP46IZ2-CCBHc7-K.js} +2 -2
- package/dist/{journeyDiagram-FFXJYRFH-ndAcpkGn.js → journeyDiagram-BIP6EPQ6-LhGSj54j.js} +24 -26
- package/dist/{kanban-definition-KOZQBZVT-DcQYzNvc.js → kanban-definition-6OIFK2YF-aegTMFS6.js} +14 -14
- package/dist/{layout-XySVHJgD.js → layout-BEARWMhl.js} +81 -81
- package/dist/{linear-PbooOqg7.js → linear-fbJq6cdO.js} +35 -35
- package/dist/{main-B5yML0bw.js → main-HerZgEhd.js} +76533 -69945
- package/dist/main.js +1 -1
- package/dist/{mermaid-Cg5IX6Nv.js → mermaid-DxPYK0KX.js} +6160 -7493
- package/dist/min-DBJkhObB.js +80 -0
- package/dist/mindmap-definition-Q6HEUPPD-A3Fh5XDZ.js +785 -0
- package/dist/nginx-zDPm3Z74.js +89 -0
- package/dist/{number-overlay-editor-DUhfZqtP.js → number-overlay-editor-USMrY6k3.js} +19 -19
- package/dist/{pieDiagram-DBDJKBY4-DTOlNsja.js → pieDiagram-ADFJNKIX-Q9uFlCV0.js} +17 -17
- package/dist/{quadrantDiagram-YPSRARAO-BX2d8VS-.js → quadrantDiagram-LMRXKWRM-BuPh-qpK.js} +6 -6
- package/dist/{react-plotly-Dcyw-3Sa.js → react-plotly-HSqJPRfa.js} +3577 -3577
- package/dist/{requirementDiagram-EGVEC5DT-D1T5u-wG.js → requirementDiagram-4UW4RH46-CHROYNU_.js} +7 -7
- package/dist/{sankeyDiagram-HRAUVNP4-G6xDfnp-.js → sankeyDiagram-GR3RE2ED-DkUqHP2d.js} +5 -5
- package/dist/sequenceDiagram-C3RYC4MD-YoPTMplP.js +2519 -0
- package/dist/{slides-component-BJLlPJSr.js → slides-component-D7CHSR00.js} +66 -66
- package/dist/solr-BNlsLglM.js +41 -0
- package/dist/spreadsheet-C-cy4P5N.js +49 -0
- package/dist/{stateDiagram-UUKSUZ4H-CYXbjaom.js → stateDiagram-KXAO66HF-DEN00mVU.js} +5 -5
- package/dist/{stateDiagram-v2-EYPG3UTE-Br1HYKT6.js → stateDiagram-v2-UMBNRL4Z-DlQqSUAa.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/tiddlywiki-5wqsXtSk.js +155 -0
- package/dist/tiki-__Kn3CeS.js +181 -0
- package/dist/{time-B9SZnSen.js → time-BtVcKqeD.js} +58 -58
- package/dist/{timeline-definition-3HZDQTIS-DeK_ZRD0.js → timeline-definition-XQNQX7LJ-DEteLt8D.js} +10 -12
- package/dist/{timer-BYwnU4DF.js → timer-B0-z63CM.js} +16 -16
- package/dist/{treemap-75Q7IDZK-CKP4vV_0.js → treemap-75Q7IDZK-8S6podme.js} +14 -14
- package/dist/{vega-component-CpgdqX2d.js → vega-component-D35L45kI.js} +30 -30
- package/dist/{xychartDiagram-FDP5SA34-AMEPsx_R.js → xychartDiagram-6GGTOJPD-DKwGThyy.js} +7 -7
- package/package.json +44 -41
- package/src/__mocks__/notebook.ts +3 -0
- package/src/__mocks__/requests.ts +3 -0
- package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
- package/src/__tests__/chat-utils.test.ts +26 -211
- package/src/components/ai/ai-model-dropdown.tsx +25 -9
- package/src/components/ai/ai-provider-icon.tsx +5 -1
- package/src/components/app-config/ai-config.tsx +7 -0
- package/src/components/chat/acp/__tests__/__snapshots__/prompt.test.ts.snap +304 -0
- package/src/components/chat/acp/__tests__/atoms.test.ts +56 -0
- package/src/components/chat/acp/__tests__/prompt.test.ts +12 -0
- package/src/components/chat/acp/__tests__/state.test.ts +621 -0
- package/src/components/chat/acp/agent-docs.tsx +78 -0
- package/src/components/chat/acp/agent-panel.css +23 -0
- package/src/components/chat/acp/agent-panel.tsx +715 -0
- package/src/components/chat/acp/agent-selector.tsx +138 -0
- package/src/components/chat/acp/blocks.tsx +664 -0
- package/src/components/chat/acp/common.tsx +198 -0
- package/src/components/chat/acp/prompt.ts +284 -0
- package/src/components/chat/acp/scroll-to-bottom-button.tsx +50 -0
- package/src/components/chat/acp/session-tabs.tsx +138 -0
- package/src/components/chat/acp/state.ts +263 -0
- package/src/components/chat/acp/thread.tsx +121 -0
- package/src/components/chat/acp/types.ts +63 -0
- package/src/components/chat/acp/utils.ts +45 -0
- package/src/components/chat/chat-components.tsx +71 -0
- package/src/components/chat/chat-panel.tsx +481 -291
- package/src/components/chat/chat-utils.ts +50 -0
- package/src/components/chat/markdown-renderer.tsx +3 -7
- package/src/components/chat/tool-call-accordion.tsx +6 -6
- package/src/components/datasources/__tests__/utils.test.ts +6 -0
- package/src/components/datasources/column-preview.tsx +1 -3
- package/src/components/editor/actions/useNotebookActions.tsx +1 -1
- package/src/components/editor/ai/add-cell-with-ai.tsx +20 -15
- package/src/components/editor/ai/ai-completion-editor.tsx +22 -3
- package/src/components/editor/ai/completion-handlers.tsx +2 -4
- package/src/components/editor/ai/completion-utils.ts +85 -11
- package/src/components/editor/alerts/startup-logs-alert.tsx +72 -0
- package/src/components/editor/chrome/panels/datasources-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/documentation-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/error-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/logs-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/outline-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/packages-panel.tsx +4 -2
- package/src/components/editor/chrome/panels/scratchpad-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/secrets-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/snippets-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/tracing-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/variable-panel.tsx +3 -1
- package/src/components/editor/chrome/types.ts +10 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +55 -31
- package/src/components/editor/controls/command-palette-button.tsx +1 -1
- package/src/components/editor/controls/command-palette.tsx +5 -4
- package/src/components/editor/controls/state.ts +4 -0
- package/src/components/editor/package-alert.tsx +108 -58
- package/src/components/editor/renderers/CellArray.tsx +2 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +0 -1
- package/src/components/pages/edit-page.tsx +7 -3
- package/src/core/ai/chat-utils.ts +26 -43
- package/src/core/ai/config.ts +1 -1
- package/src/core/ai/context/__tests__/registry.test.ts +277 -3
- package/src/core/ai/context/context.ts +11 -1
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +378 -0
- package/src/core/ai/context/providers/__tests__/error.test.ts +3 -2
- package/src/core/ai/context/providers/__tests__/file.test.ts +119 -0
- package/src/core/ai/context/providers/cell-output.ts +349 -0
- package/src/core/ai/context/providers/common.ts +5 -1
- package/src/core/ai/context/providers/file.ts +287 -0
- package/src/core/ai/context/registry.ts +79 -0
- package/src/core/ai/state.ts +22 -5
- package/src/core/alerts/state.ts +71 -3
- package/src/core/cells/cell.ts +2 -2
- package/src/core/cells/cells.ts +1 -1
- package/src/core/cells/logs.ts +1 -1
- package/src/core/cells/runs.ts +6 -5
- package/src/core/codemirror/ai/resources.ts +47 -5
- package/src/core/codemirror/ai/state.ts +12 -0
- package/src/core/codemirror/language/__tests__/sql.test.ts +45 -0
- package/src/core/codemirror/markdown/__tests__/commands.test.ts +1 -0
- package/src/core/codemirror/theme/dark.ts +1 -1
- package/src/core/config/capabilities.ts +1 -1
- package/src/core/config/feature-flag.tsx +2 -0
- package/src/core/datasets/__tests__/data-source.test.ts +24 -0
- package/src/core/errors/__tests__/errors.test.ts +2 -0
- package/src/core/islands/bridge.ts +1 -0
- package/src/core/islands/main.ts +1 -0
- package/src/core/kernel/messages.ts +12 -6
- package/src/core/layout/layout.ts +3 -3
- package/src/core/network/requests-network.ts +8 -0
- package/src/core/network/requests-static.ts +1 -0
- package/src/core/network/requests-toasting.ts +1 -0
- package/src/core/network/types.ts +4 -1
- package/src/core/wasm/bridge.ts +18 -2
- package/src/core/wasm/worker/bootstrap.ts +3 -1
- package/src/core/wasm/worker/getMarimoWheel.ts +3 -8
- package/src/core/wasm/worker/types.ts +3 -0
- package/src/core/websocket/useMarimoWebSocket.tsx +7 -1
- package/src/css/app/Cell.css +42 -21
- package/src/css/app/codemirror.css +5 -1
- package/src/css/globals.css +3 -0
- package/src/css/md.css +1 -1
- package/src/plugins/impl/MicrophonePlugin.tsx +2 -2
- package/src/plugins/impl/chat/ChatPlugin.tsx +2 -9
- package/src/plugins/impl/chat/chat-ui.tsx +129 -110
- package/src/plugins/impl/chat/types.ts +5 -8
- package/src/plugins/impl/code/__tests__/language.test.ts +15 -0
- package/src/plugins/impl/code/any-language-editor.tsx +11 -8
- package/src/plugins/impl/vega/vega.css +121 -0
- package/src/plugins/layout/MimeRenderPlugin.tsx +3 -6
- package/src/stories/cell.stories.tsx +6 -0
- package/src/stories/layout/vertical/one-column.stories.tsx +215 -0
- package/src/theme/useTheme.ts +11 -6
- package/src/utils/Logger.ts +5 -6
- package/src/utils/__tests__/blob.test.ts +37 -0
- package/src/utils/arrays.ts +13 -0
- package/src/utils/fileToBase64.ts +21 -6
- package/src/utils/json/base64.ts +5 -2
- package/src/utils/numbers.ts +9 -7
- package/dist/any-language-editor-DC5170DQ.js +0 -45
- package/dist/asn1-jKiBa2Ya.js +0 -95
- package/dist/clojure-CCKyeQKf.js +0 -800
- package/dist/css-BkF-NPzE.js +0 -1553
- package/dist/index-5ZH_qS8j.js +0 -288
- package/dist/index-U4yn89qO.js +0 -341
- package/dist/javascript-C2yteZeJ.js +0 -691
- package/dist/min-DS5Jz-hg.js +0 -80
- package/dist/mindmap-definition-LNHGMQRG-0aOVaMR8.js +0 -3234
- package/dist/mllike-BSnXJBGA.js +0 -272
- package/dist/pug-CwAQJzGR.js +0 -248
- package/dist/python-BkR3uSy8.js +0 -313
- package/dist/rpm-IznJm2Xc.js +0 -57
- package/dist/sequenceDiagram-WFGC7UMF-DMhHzllb.js +0 -2284
- package/dist/ttcn-cfg-Bac_acMi.js +0 -88
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e, l as s, K as o, e as i, L as g } from "./mermaid-
|
|
2
|
-
import { p } from "./treemap-75Q7IDZK-
|
|
1
|
+
import { _ as e, l as s, K as o, e as i, L as g } from "./mermaid-DxPYK0KX.js";
|
|
2
|
+
import { p } from "./treemap-75Q7IDZK-8S6podme.js";
|
|
3
3
|
var v = {
|
|
4
4
|
parse: /* @__PURE__ */ e(async (r) => {
|
|
5
5
|
const a = await p("info", r);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as gt, g as lt, f as mt, d as xt } from "./chunk-
|
|
2
|
-
import { g as kt } from "./chunk-
|
|
3
|
-
import { _ as n, g as _t, s as vt, a as bt, b as wt, t as Tt, q as St, c as R, d as
|
|
4
|
-
import { d as et } from "./arc-
|
|
5
|
-
var U = function() {
|
|
1
|
+
import { a as gt, g as lt, f as mt, d as xt } from "./chunk-TZMSLE5B-Dx9h-1mv.js";
|
|
2
|
+
import { g as kt } from "./chunk-FMBD7UC4-DDjZzUcl.js";
|
|
3
|
+
import { _ as n, g as _t, s as vt, a as bt, b as wt, t as Tt, q as St, c as R, d as X, e as $t, z as Mt } from "./mermaid-DxPYK0KX.js";
|
|
4
|
+
import { d as et } from "./arc-BOhn-m2C.js";
|
|
5
|
+
var U = (function() {
|
|
6
6
|
var t = /* @__PURE__ */ n(function(h, i, a, l) {
|
|
7
7
|
for (a = a || {}, l = h.length; l--; a[h[l]] = i) ;
|
|
8
8
|
return a;
|
|
@@ -80,13 +80,13 @@ var U = function() {
|
|
|
80
80
|
n(D, "lex");
|
|
81
81
|
for (var v, A, T, q, F = {}, N, M, tt, z; ; ) {
|
|
82
82
|
if (A = l[l.length - 1], this.defaultActions[A] ? T = this.defaultActions[A] : ((v === null || typeof v > "u") && (v = D()), T = b[A] && b[A][v]), typeof T > "u" || !T.length || !T[0]) {
|
|
83
|
-
var
|
|
83
|
+
var H = "";
|
|
84
84
|
z = [];
|
|
85
85
|
for (N in b[A])
|
|
86
86
|
this.terminals_[N] && N > dt && z.push("'" + this.terminals_[N] + "'");
|
|
87
|
-
_.showPosition ?
|
|
87
|
+
_.showPosition ? H = "Parse error on line " + (C + 1) + `:
|
|
88
88
|
` + _.showPosition() + `
|
|
89
|
-
Expecting ` + z.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" :
|
|
89
|
+
Expecting ` + z.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : H = "Parse error on line " + (C + 1) + ": Unexpected " + (v == Q ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(H, {
|
|
90
90
|
text: _.match,
|
|
91
91
|
token: this.terminals_[v] || v,
|
|
92
92
|
line: _.yylineno,
|
|
@@ -127,7 +127,7 @@ Expecting ` + z.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : X = "
|
|
|
127
127
|
}
|
|
128
128
|
return true;
|
|
129
129
|
}, "parse")
|
|
130
|
-
}, m = /* @__PURE__ */ function() {
|
|
130
|
+
}, m = /* @__PURE__ */ (function() {
|
|
131
131
|
var h = {
|
|
132
132
|
EOF: 1,
|
|
133
133
|
parseError: /* @__PURE__ */ n(function(a, l) {
|
|
@@ -347,13 +347,13 @@ Expecting ` + z.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : X = "
|
|
|
347
347
|
conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: false }, acc_descr: { rules: [10], inclusive: false }, acc_title: { rules: [8], inclusive: false }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19], inclusive: true } }
|
|
348
348
|
};
|
|
349
349
|
return h;
|
|
350
|
-
}();
|
|
350
|
+
})();
|
|
351
351
|
g.lexer = m;
|
|
352
352
|
function x() {
|
|
353
353
|
this.yy = {};
|
|
354
354
|
}
|
|
355
355
|
return n(x, "Parser"), x.prototype = g, g.Parser = x, new x();
|
|
356
|
-
}();
|
|
356
|
+
})();
|
|
357
357
|
U.parser = U;
|
|
358
358
|
var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ n(function() {
|
|
359
359
|
Z.length = 0, L.length = 0, V = "", B.length = 0, Mt();
|
|
@@ -599,9 +599,7 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ n(function() {
|
|
|
599
599
|
);
|
|
600
600
|
}, "drawSection"), nt = -1, Ot = /* @__PURE__ */ n(function(t, e, s) {
|
|
601
601
|
const c = e.x + s.width / 2, r = t.append("g");
|
|
602
|
-
nt
|
|
603
|
-
const f = 300 + 5 * 30;
|
|
604
|
-
r.append("line").attr("id", "task" + nt).attr("x1", c).attr("y1", e.y).attr("x2", c).attr("y2", f).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Nt(r, {
|
|
602
|
+
nt++, r.append("line").attr("id", "task" + nt).attr("x1", c).attr("y1", e.y).attr("x2", c).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Nt(r, {
|
|
605
603
|
cx: c,
|
|
606
604
|
cy: 300 + (5 - e.score) * 30,
|
|
607
605
|
score: e.score
|
|
@@ -633,7 +631,7 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ n(function() {
|
|
|
633
631
|
);
|
|
634
632
|
}, "drawTask"), Yt = /* @__PURE__ */ n(function(t, e) {
|
|
635
633
|
gt(t, e);
|
|
636
|
-
}, "drawBackgroundRect"), ht = /* @__PURE__ */ function() {
|
|
634
|
+
}, "drawBackgroundRect"), ht = /* @__PURE__ */ (function() {
|
|
637
635
|
function t(r, f, u, y, g, m, x, h) {
|
|
638
636
|
const i = f.append("text").attr("x", u + g / 2).attr("y", y + m / 2 + 5).style("font-color", h).style("text-anchor", "middle").text(r);
|
|
639
637
|
c(i, x);
|
|
@@ -659,7 +657,7 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ n(function() {
|
|
|
659
657
|
return n(c, "_setTextAttrs"), function(r) {
|
|
660
658
|
return r.textPlacement === "fo" ? s : r.textPlacement === "old" ? t : e;
|
|
661
659
|
};
|
|
662
|
-
}(), qt = /* @__PURE__ */ n(function(t) {
|
|
660
|
+
})(), qt = /* @__PURE__ */ n(function(t) {
|
|
663
661
|
t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
|
|
664
662
|
}, "initGraphics"), j = {
|
|
665
663
|
drawRect: J,
|
|
@@ -670,7 +668,7 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ n(function() {
|
|
|
670
668
|
drawTask: Ot,
|
|
671
669
|
drawBackgroundRect: Yt,
|
|
672
670
|
initGraphics: qt
|
|
673
|
-
},
|
|
671
|
+
}, Ht = /* @__PURE__ */ n(function(t) {
|
|
674
672
|
Object.keys(t).forEach(function(s) {
|
|
675
673
|
$[s] = t[s];
|
|
676
674
|
});
|
|
@@ -724,11 +722,11 @@ function ut(t) {
|
|
|
724
722
|
});
|
|
725
723
|
}
|
|
726
724
|
n(ut, "drawActorLegend");
|
|
727
|
-
var $ = R().journey, P = 0,
|
|
725
|
+
var $ = R().journey, P = 0, Xt = /* @__PURE__ */ n(function(t, e, s, c) {
|
|
728
726
|
const r = R(), f = r.journey.titleColor, u = r.journey.titleFontSize, y = r.journey.titleFontFamily, g = r.securityLevel;
|
|
729
727
|
let m;
|
|
730
|
-
g === "sandbox" && (m =
|
|
731
|
-
const x = g === "sandbox" ?
|
|
728
|
+
g === "sandbox" && (m = X("#i" + e));
|
|
729
|
+
const x = g === "sandbox" ? X(m.nodes()[0].contentDocument.body) : X("body");
|
|
732
730
|
S.init();
|
|
733
731
|
const h = x.select("#" + e);
|
|
734
732
|
j.initGraphics(h);
|
|
@@ -741,7 +739,7 @@ var $ = R().journey, P = 0, Gt = /* @__PURE__ */ n(function(t, e, s, c) {
|
|
|
741
739
|
color: $.actorColours[d % $.actorColours.length],
|
|
742
740
|
position: d
|
|
743
741
|
}, d++;
|
|
744
|
-
}), ut(h), P = $.leftMargin + W, S.insert(0, 0, P, Object.keys(E).length * 50),
|
|
742
|
+
}), ut(h), P = $.leftMargin + W, S.insert(0, 0, P, Object.keys(E).length * 50), Gt(h, i, 0);
|
|
745
743
|
const p = S.getBounds();
|
|
746
744
|
a && h.append("text").text(a).attr("x", P).attr("font-size", u).attr("font-weight", "bold").attr("y", 25).attr("fill", f).attr("font-family", y);
|
|
747
745
|
const o = p.stopy - p.starty + 2 * $.diagramMarginY, b = P + p.stopx + 2 * $.diagramMarginX;
|
|
@@ -793,14 +791,14 @@ var $ = R().journey, P = 0, Gt = /* @__PURE__ */ n(function(t, e, s, c) {
|
|
|
793
791
|
getBounds: /* @__PURE__ */ n(function() {
|
|
794
792
|
return this.data;
|
|
795
793
|
}, "getBounds")
|
|
796
|
-
},
|
|
794
|
+
}, G = $.sectionFills, st = $.sectionColours, Gt = /* @__PURE__ */ n(function(t, e, s) {
|
|
797
795
|
const c = R().journey;
|
|
798
796
|
let r = "";
|
|
799
797
|
const f = c.height * 2 + c.diagramMarginY, u = s + f;
|
|
800
798
|
let y = 0, g = "#CCC", m = "black", x = 0;
|
|
801
799
|
for (const [h, i] of e.entries()) {
|
|
802
800
|
if (r !== i.section) {
|
|
803
|
-
g =
|
|
801
|
+
g = G[y % G.length], x = y % G.length, m = st[y % st.length];
|
|
804
802
|
let l = 0;
|
|
805
803
|
const d = i.section;
|
|
806
804
|
for (let o = h; o < e.length && e[o].section == d; o++)
|
|
@@ -817,11 +815,11 @@ var $ = R().journey, P = 0, Gt = /* @__PURE__ */ n(function(t, e, s, c) {
|
|
|
817
815
|
j.drawSection(t, p, c), r = i.section, y++;
|
|
818
816
|
}
|
|
819
817
|
const a = i.people.reduce((l, d) => (E[d] && (l[d] = E[d]), l), {});
|
|
820
|
-
i.x = h * c.taskMargin + h * c.width + P, i.y = u, i.width = c.diagramMarginX, i.height = c.diagramMarginY, i.colour = m, i.fill = g, i.num = x, i.actors = a, j.drawTask(t, i, c), S.insert(i.x, i.y, i.x + i.width + c.taskMargin,
|
|
818
|
+
i.x = h * c.taskMargin + h * c.width + P, i.y = u, i.width = c.diagramMarginX, i.height = c.diagramMarginY, i.colour = m, i.fill = g, i.num = x, i.actors = a, j.drawTask(t, i, c), S.insert(i.x, i.y, i.x + i.width + c.taskMargin, 450);
|
|
821
819
|
}
|
|
822
820
|
}, "drawTasks"), at = {
|
|
823
|
-
setConf:
|
|
824
|
-
draw:
|
|
821
|
+
setConf: Ht,
|
|
822
|
+
draw: Xt
|
|
825
823
|
}, Qt = {
|
|
826
824
|
parser: Et,
|
|
827
825
|
db: rt,
|
package/dist/{kanban-definition-KOZQBZVT-DcQYzNvc.js → kanban-definition-6OIFK2YF-aegTMFS6.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
var $ = function() {
|
|
1
|
+
import { _ as o, l as te, c as U, K as fe, a0 as ye, a1 as be, a2 as me, V as _e, H as K, i as F, v as Ee, J as ke, W as Se, X as ce, Y as le } from "./mermaid-DxPYK0KX.js";
|
|
2
|
+
import { g as Ne } from "./chunk-FMBD7UC4-DDjZzUcl.js";
|
|
3
|
+
var $ = (function() {
|
|
4
4
|
var e = /* @__PURE__ */ o(function(O, i, n, r) {
|
|
5
5
|
for (n = n || {}, r = O.length; r--; n[O[r]] = i) ;
|
|
6
6
|
return n;
|
|
@@ -148,7 +148,7 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
|
|
|
148
148
|
}
|
|
149
149
|
return true;
|
|
150
150
|
}, "parse")
|
|
151
|
-
}, Y = /* @__PURE__ */ function() {
|
|
151
|
+
}, Y = /* @__PURE__ */ (function() {
|
|
152
152
|
var O = {
|
|
153
153
|
EOF: 1,
|
|
154
154
|
parseError: /* @__PURE__ */ o(function(n, r) {
|
|
@@ -422,13 +422,13 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
|
|
|
422
422
|
conditions: { shapeDataEndBracket: { rules: [], inclusive: false }, shapeDataStr: { rules: [2, 3], inclusive: false }, shapeData: { rules: [1, 4, 5], inclusive: false }, CLASS: { rules: [9, 10], inclusive: false }, ICON: { rules: [14, 15], inclusive: false }, NSTR2: { rules: [28, 29], inclusive: false }, NSTR: { rules: [31, 32], inclusive: false }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: false }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: true } }
|
|
423
423
|
};
|
|
424
424
|
return O;
|
|
425
|
-
}();
|
|
425
|
+
})();
|
|
426
426
|
T.lexer = Y;
|
|
427
427
|
function B() {
|
|
428
428
|
this.yy = {};
|
|
429
429
|
}
|
|
430
430
|
return o(B, "Parser"), B.prototype = T, T.Parser = B, new B();
|
|
431
|
-
}();
|
|
431
|
+
})();
|
|
432
432
|
$.parser = $;
|
|
433
433
|
var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
|
|
434
434
|
v = [], ne = [], ee = 0, ie = {};
|
|
@@ -502,7 +502,7 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
502
502
|
` : I = `{
|
|
503
503
|
` + d + `
|
|
504
504
|
}`;
|
|
505
|
-
const g =
|
|
505
|
+
const g = Ee(I, { schema: ke });
|
|
506
506
|
if (g.shape && (g.shape !== g.shape.toLowerCase() || g.shape.includes("_")))
|
|
507
507
|
throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);
|
|
508
508
|
(g == null ? void 0 : g.shape) && g.shape === "kanbanItem" && (l.shape = g == null ? void 0 : g.shape), (g == null ? void 0 : g.label) && (l.label = g == null ? void 0 : g.label), (g == null ? void 0 : g.icon) && (l.icon = g == null ? void 0 : g.icon.toString()), (g == null ? void 0 : g.assigned) && (l.assigned = g == null ? void 0 : g.assigned.toString()), (g == null ? void 0 : g.ticket) && (l.ticket = g == null ? void 0 : g.ticket.toString()), (g == null ? void 0 : g.priority) && (l.priority = g == null ? void 0 : g.priority);
|
|
@@ -580,7 +580,7 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
580
580
|
` + e);
|
|
581
581
|
const E = s.db.getData(), b = U();
|
|
582
582
|
b.htmlLabels = false;
|
|
583
|
-
const l =
|
|
583
|
+
const l = fe(u), D = l.append("g");
|
|
584
584
|
D.attr("class", "sections");
|
|
585
585
|
const I = l.append("g");
|
|
586
586
|
I.attr("class", "items");
|
|
@@ -594,7 +594,7 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
594
594
|
for (const m of g) {
|
|
595
595
|
const A = ((_a = b == null ? void 0 : b.kanban) == null ? void 0 : _a.sectionWidth) || 200;
|
|
596
596
|
w = w + 1, m.x = A * w + (w - 1) * _ / 2, m.width = A, m.y = 0, m.height = A * 3, m.rx = 5, m.ry = 5, m.cssClasses = m.cssClasses + " section-" + w;
|
|
597
|
-
const L = await
|
|
597
|
+
const L = await ye(D, m);
|
|
598
598
|
N = Math.max(N, (_b = L == null ? void 0 : L.labelBBox) == null ? void 0 : _b.height), G.push(L);
|
|
599
599
|
}
|
|
600
600
|
let V = 0;
|
|
@@ -608,13 +608,13 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
608
608
|
if (i.isGroup)
|
|
609
609
|
throw new Error("Groups within groups are not allowed in Kanban diagrams");
|
|
610
610
|
i.x = m.x, i.width = L - 1.5 * _;
|
|
611
|
-
const r = (await
|
|
612
|
-
i.y = T + r.height / 2, await
|
|
611
|
+
const r = (await be(I, i, { config: b })).node().getBBox();
|
|
612
|
+
i.y = T + r.height / 2, await me(i), T = i.y + r.height / 2 + _ / 2;
|
|
613
613
|
}
|
|
614
614
|
const B = A.cluster.select("rect"), O = Math.max(T - H + 3 * _, 50) + (N - 25);
|
|
615
615
|
B.attr("height", O);
|
|
616
616
|
}
|
|
617
|
-
|
|
617
|
+
_e(
|
|
618
618
|
void 0,
|
|
619
619
|
l,
|
|
620
620
|
((_d = b.mindmap) == null ? void 0 : _d.padding) ?? K.kanban.padding,
|
|
@@ -625,7 +625,7 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
625
625
|
}, Fe = /* @__PURE__ */ o((e) => {
|
|
626
626
|
let u = "";
|
|
627
627
|
for (let s = 0; s < e.THEME_COLOR_LIMIT; s++)
|
|
628
|
-
e["lineColor" + s] = e["lineColor" + s] || e["cScaleInv" + s],
|
|
628
|
+
e["lineColor" + s] = e["lineColor" + s] || e["cScaleInv" + s], Se(e["lineColor" + s]) ? e["lineColor" + s] = ce(e["lineColor" + s], 20) : e["lineColor" + s] = le(e["lineColor" + s], 20);
|
|
629
629
|
const p = /* @__PURE__ */ o((s, d) => e.darkMode ? le(s, d) : ce(s, d), "adjuster");
|
|
630
630
|
for (let s = 0; s < e.THEME_COLOR_LIMIT; s++) {
|
|
631
631
|
const d = "" + (17 - 3 * s);
|
|
@@ -709,7 +709,7 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
709
709
|
dominant-baseline: middle;
|
|
710
710
|
text-align: center;
|
|
711
711
|
}
|
|
712
|
-
${
|
|
712
|
+
${Ne()}
|
|
713
713
|
`, "getStyles"), He = Ge, We = {
|
|
714
714
|
db: Ve,
|
|
715
715
|
renderer: je,
|