@altimateai/ui-components 0.0.78-beta.1 → 0.0.78
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/CoachForm.css +1 -1
- package/dist/CoachForm.js +23919 -67654
- package/dist/DbtDocsRenderer.js +1 -1
- package/dist/Stack.js +2231 -2829
- package/dist/Switch.js +87 -128
- package/dist/ToggleGroup.js +5100 -6285
- package/dist/_basePickBy.js +60 -60
- package/dist/_baseUniq.js +152 -152
- package/dist/arc.js +53 -53
- package/dist/architectureDiagram-VXUJARFQ.js +4315 -480
- package/dist/assets/icons/index.js +1 -1
- package/dist/blockDiagram-VD42YOAC.js +1 -1
- package/dist/c4Diagram-YG6GDRKO.js +22 -22
- package/dist/channel.js +2 -2
- package/dist/chatbotV2/index.d.ts +19 -57
- package/dist/chatbotV2/index.js +56 -91
- package/dist/chunk-4BX2VUAB.js +1 -1
- package/dist/chunk-55IACEB6.js +2 -2
- package/dist/chunk-B4BG7PRW.js +1 -1
- package/dist/chunk-DI55MBZ5.js +14 -14
- package/dist/chunk-FMBD7UC4.js +1 -1
- package/dist/chunk-QN33PNHL.js +5 -5
- package/dist/chunk-QZHKN3VN.js +1 -1
- package/dist/chunk-TZMSLE5B.js +1 -1
- package/dist/classDiagram-2ON5EDUG.js +1 -1
- package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
- package/dist/cose-bilkent-S5V4N54A.js +2535 -160
- package/dist/dagre-6UL2VRFP.js +101 -101
- package/dist/dayjs.min.js +2 -2
- package/dist/defaultLocale.js +3 -3
- package/dist/diagram-PSM6KHXK.js +414 -198
- package/dist/diagram-QEK2KX5R.js +26 -26
- package/dist/diagram-S2PKOQOG.js +12 -12
- package/dist/erDiagram-Q2GNP2WA.js +1 -1
- package/dist/flowDiagram-NV44I4VS.js +6 -6
- package/dist/ganttDiagram-LVOFAZNH.js +1718 -843
- package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
- package/dist/graph.js +18 -17
- package/dist/index.d.ts +6 -101
- package/dist/index.js +37 -37
- package/dist/index2.js +684 -216
- package/dist/infoDiagram-F6ZHWCRC.js +14 -14
- package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
- package/dist/kanban-definition-3W4ZIXB7.js +42 -42
- package/dist/layout.js +678 -567
- package/dist/lineage/index.js +1309 -1302
- package/dist/linear.js +1 -1
- package/dist/main.css +1 -1
- package/dist/main.js +150 -150
- package/dist/mermaid-parser.core.js +155 -155
- package/dist/mindmap-definition-VGOIOE7T.js +28 -28
- package/dist/pieDiagram-ADFJNKIX.js +108 -68
- package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
- package/dist/redux-toolkit.modern.js +555 -563
- package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
- package/dist/sankeyDiagram-TZEHDZUN.js +622 -229
- package/dist/sequenceDiagram-WL72ISMW.js +1 -1
- package/dist/shadcn/index.d.ts +8 -11
- package/dist/shadcn/index.js +4733 -6547
- package/dist/stateDiagram-FKZM4ZOC.js +33 -33
- package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
- package/dist/timeline-definition-IT6M3QCI.js +63 -63
- package/dist/{types-UHJCpYj0.d.ts → types-ByRPUpXR.d.ts} +116 -25
- package/dist/xychartDiagram-PRI3JC2R.js +491 -449
- package/package.json +1 -1
- package/dist/abap.js +0 -6
- package/dist/actionscript-3.js +0 -6
- package/dist/ada.js +0 -6
- package/dist/andromeeda.js +0 -4
- package/dist/angular-html.js +0 -32
- package/dist/angular-ts.js +0 -21
- package/dist/apache.js +0 -6
- package/dist/apex.js +0 -6
- package/dist/apl.js +0 -16
- package/dist/applescript.js +0 -6
- package/dist/ara.js +0 -6
- package/dist/architectureDiagram-VXUJARFQ2.js +0 -831
- package/dist/asciidoc.js +0 -6
- package/dist/asm.js +0 -6
- package/dist/astro.js +0 -18
- package/dist/aurora-x.js +0 -4
- package/dist/awk.js +0 -6
- package/dist/ayu-dark.js +0 -4
- package/dist/ballerina.js +0 -6
- package/dist/band.js +0 -46
- package/dist/bat.js +0 -6
- package/dist/beancount.js +0 -6
- package/dist/berry.js +0 -6
- package/dist/bibtex.js +0 -6
- package/dist/bicep.js +0 -6
- package/dist/blade.js +0 -20
- package/dist/blockDiagram-VD42YOAC2.js +0 -2266
- package/dist/bsl.js +0 -8
- package/dist/c.js +0 -6
- package/dist/c3.js +0 -6
- package/dist/c4Diagram-YG6GDRKO2.js +0 -1582
- package/dist/cadence.js +0 -6
- package/dist/cairo.js +0 -8
- package/dist/catppuccin-frappe.js +0 -4
- package/dist/catppuccin-latte.js +0 -4
- package/dist/catppuccin-macchiato.js +0 -4
- package/dist/catppuccin-mocha.js +0 -4
- package/dist/chunk-4BX2VUAB2.js +0 -9
- package/dist/chunk-55IACEB62.js +0 -9
- package/dist/chunk-B4BG7PRW2.js +0 -1377
- package/dist/chunk-DI55MBZ52.js +0 -1382
- package/dist/chunk-FMBD7UC42.js +0 -19
- package/dist/chunk-QN33PNHL2.js +0 -20
- package/dist/chunk-QZHKN3VN2.js +0 -15
- package/dist/chunk-TZMSLE5B2.js +0 -64
- package/dist/clarity.js +0 -6
- package/dist/classDiagram-2ON5EDUG2.js +0 -17
- package/dist/classDiagram-v2-WZHVMYZB2.js +0 -17
- package/dist/clojure.js +0 -6
- package/dist/cmake.js +0 -6
- package/dist/cobol.js +0 -10
- package/dist/code-block-37QAKDTI.js +0 -27
- package/dist/codeowners.js +0 -6
- package/dist/codeql.js +0 -6
- package/dist/coffee.js +0 -8
- package/dist/common-lisp.js +0 -6
- package/dist/coq.js +0 -6
- package/dist/cose-bilkent-S5V4N54A2.js +0 -231
- package/dist/cpp.js +0 -18
- package/dist/crystal.js +0 -18
- package/dist/csharp.js +0 -6
- package/dist/css.js +0 -6
- package/dist/csv.js +0 -6
- package/dist/cue.js +0 -6
- package/dist/cypher.js +0 -6
- package/dist/cytoscape-cose-bilkent.js +0 -2380
- package/dist/cytoscape-fcose.js +0 -3840
- package/dist/d.js +0 -6
- package/dist/dagre-6UL2VRFP2.js +0 -447
- package/dist/dark-plus.js +0 -4
- package/dist/dart.js +0 -6
- package/dist/dax.js +0 -6
- package/dist/desktop.js +0 -6
- package/dist/diagram-PSM6KHXK2.js +0 -319
- package/dist/diagram-QEK2KX5R2.js +0 -221
- package/dist/diagram-S2PKOQOG2.js +0 -143
- package/dist/diff.js +0 -6
- package/dist/docker.js +0 -6
- package/dist/dotenv.js +0 -6
- package/dist/dracula-soft.js +0 -4
- package/dist/dracula.js +0 -4
- package/dist/dream-maker.js +0 -6
- package/dist/edge.js +0 -12
- package/dist/elixir.js +0 -8
- package/dist/elm.js +0 -8
- package/dist/emacs-lisp.js +0 -6
- package/dist/erDiagram-Q2GNP2WA2.js +0 -843
- package/dist/erb.js +0 -10
- package/dist/erlang.js +0 -8
- package/dist/everforest-dark.js +0 -4
- package/dist/everforest-light.js +0 -4
- package/dist/fennel.js +0 -6
- package/dist/fish.js +0 -6
- package/dist/flowDiagram-NV44I4VS2.js +0 -1628
- package/dist/fluent.js +0 -6
- package/dist/fortran-fixed-form.js +0 -8
- package/dist/fortran-free-form.js +0 -6
- package/dist/fsharp.js +0 -8
- package/dist/ganttDiagram-JELNMOA3.js +0 -1788
- package/dist/gdresource.js +0 -10
- package/dist/gdscript.js +0 -6
- package/dist/gdshader.js +0 -6
- package/dist/genie.js +0 -6
- package/dist/gherkin.js +0 -6
- package/dist/git-commit.js +0 -8
- package/dist/git-rebase.js +0 -8
- package/dist/gitGraphDiagram-NY62KEGX2.js +0 -713
- package/dist/github-dark-default.js +0 -4
- package/dist/github-dark-dimmed.js +0 -4
- package/dist/github-dark-high-contrast.js +0 -4
- package/dist/github-dark.js +0 -4
- package/dist/github-light-default.js +0 -4
- package/dist/github-light-high-contrast.js +0 -4
- package/dist/github-light.js +0 -4
- package/dist/gleam.js +0 -6
- package/dist/glimmer-js.js +0 -14
- package/dist/glimmer-ts.js +0 -14
- package/dist/glsl.js +0 -8
- package/dist/gn.js +0 -6
- package/dist/gnuplot.js +0 -6
- package/dist/go.js +0 -6
- package/dist/graph2.js +0 -246
- package/dist/graphql.js +0 -14
- package/dist/groovy.js +0 -6
- package/dist/gruvbox-dark-hard.js +0 -4
- package/dist/gruvbox-dark-medium.js +0 -4
- package/dist/gruvbox-dark-soft.js +0 -4
- package/dist/gruvbox-light-hard.js +0 -4
- package/dist/gruvbox-light-medium.js +0 -4
- package/dist/gruvbox-light-soft.js +0 -4
- package/dist/hack.js +0 -10
- package/dist/haml.js +0 -10
- package/dist/handlebars.js +0 -14
- package/dist/haskell.js +0 -6
- package/dist/haxe.js +0 -6
- package/dist/hcl.js +0 -6
- package/dist/hjson.js +0 -6
- package/dist/hlsl.js +0 -6
- package/dist/houston.js +0 -4
- package/dist/html-derivative.js +0 -8
- package/dist/html.js +0 -10
- package/dist/http.js +0 -14
- package/dist/hurl.js +0 -12
- package/dist/hxml.js +0 -8
- package/dist/hy.js +0 -6
- package/dist/imba.js +0 -6
- package/dist/index3.js +0 -689
- package/dist/infoDiagram-WHAUD3N6.js +0 -24
- package/dist/ini.js +0 -6
- package/dist/java.js +0 -6
- package/dist/javascript.js +0 -6
- package/dist/jinja.js +0 -11
- package/dist/jison.js +0 -8
- package/dist/journeyDiagram-XKPGCS4Q2.js +0 -837
- package/dist/json.js +0 -6
- package/dist/json5.js +0 -6
- package/dist/jsonc.js +0 -6
- package/dist/jsonl.js +0 -6
- package/dist/jsonnet.js +0 -6
- package/dist/jssm.js +0 -6
- package/dist/jsx.js +0 -6
- package/dist/julia.js +0 -16
- package/dist/kanagawa-dragon.js +0 -4
- package/dist/kanagawa-lotus.js +0 -4
- package/dist/kanagawa-wave.js +0 -4
- package/dist/kanban-definition-3W4ZIXB72.js +0 -720
- package/dist/katex2.js +0 -11691
- package/dist/kdl.js +0 -6
- package/dist/kotlin.js +0 -6
- package/dist/kusto.js +0 -6
- package/dist/laserwave.js +0 -4
- package/dist/latex.js +0 -8
- package/dist/layout2.js +0 -1224
- package/dist/lean.js +0 -6
- package/dist/less.js +0 -6
- package/dist/light-plus.js +0 -4
- package/dist/liquid.js +0 -14
- package/dist/llvm.js +0 -6
- package/dist/log.js +0 -6
- package/dist/logo.js +0 -6
- package/dist/lua.js +0 -8
- package/dist/luau.js +0 -6
- package/dist/make.js +0 -6
- package/dist/markdown.js +0 -6
- package/dist/marko.js +0 -14
- package/dist/material-theme-darker.js +0 -4
- package/dist/material-theme-lighter.js +0 -4
- package/dist/material-theme-ocean.js +0 -4
- package/dist/material-theme-palenight.js +0 -4
- package/dist/material-theme.js +0 -4
- package/dist/matlab.js +0 -6
- package/dist/mdc.js +0 -12
- package/dist/mdx.js +0 -6
- package/dist/mermaid-4DMBBIKO.js +0 -4
- package/dist/mermaid.js +0 -6
- package/dist/min-dark.js +0 -4
- package/dist/min-light.js +0 -4
- package/dist/mindmap-definition-VGOIOE7T2.js +0 -786
- package/dist/mipsasm.js +0 -6
- package/dist/mojo.js +0 -6
- package/dist/monokai.js +0 -4
- package/dist/moonbit.js +0 -6
- package/dist/move.js +0 -6
- package/dist/narrat.js +0 -6
- package/dist/nextflow.js +0 -6
- package/dist/nginx.js +0 -8
- package/dist/night-owl.js +0 -4
- package/dist/nim.js +0 -20
- package/dist/nix.js +0 -9
- package/dist/nord.js +0 -4
- package/dist/nushell.js +0 -6
- package/dist/objective-c.js +0 -6
- package/dist/objective-cpp.js +0 -6
- package/dist/ocaml.js +0 -6
- package/dist/one-dark-pro.js +0 -4
- package/dist/one-light.js +0 -4
- package/dist/openscad.js +0 -6
- package/dist/pascal.js +0 -6
- package/dist/perl.js +0 -16
- package/dist/php.js +0 -18
- package/dist/pie.js +0 -45
- package/dist/pieDiagram-ADFJNKIX2.js +0 -123
- package/dist/pkl.js +0 -6
- package/dist/plastic.js +0 -4
- package/dist/plsql.js +0 -6
- package/dist/po.js +0 -6
- package/dist/poimandres.js +0 -4
- package/dist/polar.js +0 -6
- package/dist/postcss.js +0 -6
- package/dist/powerquery.js +0 -6
- package/dist/powershell.js +0 -6
- package/dist/prisma.js +0 -6
- package/dist/prolog.js +0 -6
- package/dist/proto.js +0 -6
- package/dist/pug.js +0 -12
- package/dist/puppet.js +0 -6
- package/dist/purescript.js +0 -6
- package/dist/python.js +0 -6
- package/dist/qml.js +0 -8
- package/dist/qmldir.js +0 -6
- package/dist/qss.js +0 -6
- package/dist/quadrantDiagram-AYHSOK5B2.js +0 -1025
- package/dist/r.js +0 -6
- package/dist/racket.js +0 -6
- package/dist/raku.js +0 -6
- package/dist/razor.js +0 -10
- package/dist/red.js +0 -4
- package/dist/reg.js +0 -6
- package/dist/regexp.js +0 -6
- package/dist/rel.js +0 -6
- package/dist/requirementDiagram-UZGBJVZJ2.js +0 -852
- package/dist/riscv.js +0 -6
- package/dist/rose-pine-dawn.js +0 -4
- package/dist/rose-pine-moon.js +0 -4
- package/dist/rose-pine.js +0 -4
- package/dist/rosmsg.js +0 -6
- package/dist/rst.js +0 -22
- package/dist/ruby.js +0 -30
- package/dist/rust.js +0 -6
- package/dist/sankeyDiagram-TZEHDZUN2.js +0 -418
- package/dist/sankeyLinkHorizontal.js +0 -403
- package/dist/sas.js +0 -8
- package/dist/sass.js +0 -6
- package/dist/scala.js +0 -6
- package/dist/scheme.js +0 -6
- package/dist/scss.js +0 -8
- package/dist/sdbl.js +0 -6
- package/dist/sequenceDiagram-WL72ISMW2.js +0 -2523
- package/dist/shaderlab.js +0 -8
- package/dist/shellscript.js +0 -6
- package/dist/shellsession.js +0 -8
- package/dist/slack-dark.js +0 -4
- package/dist/slack-ochin.js +0 -4
- package/dist/smalltalk.js +0 -6
- package/dist/snazzy-light.js +0 -4
- package/dist/solarized-dark.js +0 -4
- package/dist/solarized-light.js +0 -4
- package/dist/solidity.js +0 -6
- package/dist/soy.js +0 -8
- package/dist/sparql.js +0 -8
- package/dist/splunk.js +0 -6
- package/dist/sql.js +0 -6
- package/dist/ssh-config.js +0 -6
- package/dist/stata.js +0 -8
- package/dist/stateDiagram-FKZM4ZOC2.js +0 -264
- package/dist/stateDiagram-v2-4FDKWEC32.js +0 -17
- package/dist/stylus.js +0 -6
- package/dist/svelte.js +0 -14
- package/dist/swift.js +0 -6
- package/dist/synthwave-84.js +0 -4
- package/dist/system-verilog.js +0 -6
- package/dist/systemd.js +0 -6
- package/dist/talonscript.js +0 -6
- package/dist/tasl.js +0 -6
- package/dist/tcl.js +0 -6
- package/dist/templ.js +0 -12
- package/dist/terraform.js +0 -6
- package/dist/tex.js +0 -8
- package/dist/time.js +0 -900
- package/dist/timeline-definition-IT6M3QCI2.js +0 -802
- package/dist/tokyo-night.js +0 -4
- package/dist/toml.js +0 -6
- package/dist/ts-tags.js +0 -41
- package/dist/tsv.js +0 -6
- package/dist/tsx.js +0 -6
- package/dist/turtle.js +0 -6
- package/dist/twig.js +0 -18
- package/dist/typescript.js +0 -6
- package/dist/typespec.js +0 -6
- package/dist/typst.js +0 -6
- package/dist/union.js +0 -8
- package/dist/v.js +0 -6
- package/dist/vala.js +0 -6
- package/dist/vb.js +0 -6
- package/dist/verilog.js +0 -6
- package/dist/vesper.js +0 -4
- package/dist/vhdl.js +0 -6
- package/dist/viml.js +0 -6
- package/dist/vitesse-black.js +0 -4
- package/dist/vitesse-dark.js +0 -4
- package/dist/vitesse-light.js +0 -4
- package/dist/vue-html.js +0 -8
- package/dist/vue-vine.js +0 -18
- package/dist/vue.js +0 -31
- package/dist/vyper.js +0 -6
- package/dist/wasm.js +0 -7
- package/dist/wasm2.js +0 -6
- package/dist/wenyan.js +0 -6
- package/dist/wgsl.js +0 -6
- package/dist/wikitext.js +0 -6
- package/dist/wit.js +0 -6
- package/dist/wolfram.js +0 -6
- package/dist/xml.js +0 -8
- package/dist/xsl.js +0 -8
- package/dist/xychartDiagram-PRI3JC2R2.js +0 -1299
- package/dist/yaml.js +0 -6
- package/dist/zenscript.js +0 -6
- package/dist/zig.js +0 -6
- package/dist/zipObject.js +0 -128
package/dist/dagre-6UL2VRFP.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1 as b, bh as F, bi as Y, bj as H, bk as _, ad as i, a7 as V, bl as U, bm as $, b6 as q, bb as z, b7 as P, b5 as K, bn as Q, bo as W, bp as Z } from "./CoachForm.js";
|
|
2
2
|
import { G as B } from "./graph.js";
|
|
3
3
|
import { l as I } from "./layout.js";
|
|
4
4
|
import { i as x } from "./_baseUniq.js";
|
|
@@ -18,8 +18,8 @@ function p(e) {
|
|
|
18
18
|
}
|
|
19
19
|
function ee(e) {
|
|
20
20
|
return A(e.nodes(), function(t) {
|
|
21
|
-
var n = e.node(t), o = e.parent(t),
|
|
22
|
-
return x(n) || (
|
|
21
|
+
var n = e.node(t), o = e.parent(t), c = { v: t };
|
|
22
|
+
return x(n) || (c.value = n), x(o) || (c.parent = o), c;
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
function ne(e) {
|
|
@@ -28,15 +28,15 @@ function ne(e) {
|
|
|
28
28
|
return x(t.name) || (o.name = t.name), x(n) || (o.value = n), o;
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
var f = /* @__PURE__ */ new Map(),
|
|
32
|
-
|
|
33
|
-
}, "clear"), O = /* @__PURE__ */
|
|
34
|
-
const n =
|
|
31
|
+
var f = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ b(() => {
|
|
32
|
+
N.clear(), J.clear(), f.clear();
|
|
33
|
+
}, "clear"), O = /* @__PURE__ */ b((e, t) => {
|
|
34
|
+
const n = N.get(t) || [];
|
|
35
35
|
return i.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
|
|
36
|
-
}, "isDescendant"), se = /* @__PURE__ */
|
|
37
|
-
const n =
|
|
36
|
+
}, "isDescendant"), se = /* @__PURE__ */ b((e, t) => {
|
|
37
|
+
const n = N.get(t) || [];
|
|
38
38
|
return i.info("Descendants of ", t, " is ", n), i.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || O(e.v, t) || O(e.w, t) || n.includes(e.w) : (i.debug("Tilt, ", t, ",not in descendants"), !1);
|
|
39
|
-
}, "edgeInCluster"), G = /* @__PURE__ */
|
|
39
|
+
}, "edgeInCluster"), G = /* @__PURE__ */ b((e, t, n, o) => {
|
|
40
40
|
i.warn(
|
|
41
41
|
"Copying children of ",
|
|
42
42
|
e,
|
|
@@ -46,27 +46,27 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
46
46
|
t.node(e),
|
|
47
47
|
o
|
|
48
48
|
);
|
|
49
|
-
const
|
|
50
|
-
e !== o &&
|
|
51
|
-
if (t.children(
|
|
52
|
-
G(
|
|
49
|
+
const c = t.children(e) || [];
|
|
50
|
+
e !== o && c.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", c), c.forEach((a) => {
|
|
51
|
+
if (t.children(a).length > 0)
|
|
52
|
+
G(a, t, n, o);
|
|
53
53
|
else {
|
|
54
|
-
const r = t.node(
|
|
55
|
-
i.info("cp ",
|
|
54
|
+
const r = t.node(a);
|
|
55
|
+
i.info("cp ", a, " to ", o, " with parent ", e), n.setNode(a, r), o !== t.parent(a) && (i.warn("Setting parent", a, t.parent(a)), n.setParent(a, t.parent(a))), e !== o && a !== e ? (i.debug("Setting parent", a, e), n.setParent(a, e)) : (i.info("In copy ", e, "root", o, "data", t.node(e), o), i.debug(
|
|
56
56
|
"Not Setting parent for node=",
|
|
57
|
-
|
|
57
|
+
a,
|
|
58
58
|
"cluster!==rootId",
|
|
59
59
|
e !== o,
|
|
60
60
|
"node!==clusterId",
|
|
61
|
-
|
|
61
|
+
a !== e
|
|
62
62
|
));
|
|
63
|
-
const u = t.edges(
|
|
63
|
+
const u = t.edges(a);
|
|
64
64
|
i.debug("Copying Edges", u), u.forEach((l) => {
|
|
65
65
|
i.info("Edge", l);
|
|
66
|
-
const
|
|
67
|
-
i.info("Edge data",
|
|
66
|
+
const v = t.edge(l.v, l.w, l.name);
|
|
67
|
+
i.info("Edge data", v, o);
|
|
68
68
|
try {
|
|
69
|
-
se(l, o) ? (i.info("Copying as ", l.v, l.w,
|
|
69
|
+
se(l, o) ? (i.info("Copying as ", l.v, l.w, v, l.name), n.setEdge(l.v, l.w, v, l.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info(
|
|
70
70
|
"Skipping copy of edge ",
|
|
71
71
|
l.v,
|
|
72
72
|
"-->",
|
|
@@ -81,32 +81,32 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
i.debug("Removing node",
|
|
84
|
+
i.debug("Removing node", a), t.removeNode(a);
|
|
85
85
|
});
|
|
86
|
-
}, "copy"), R = /* @__PURE__ */
|
|
86
|
+
}, "copy"), R = /* @__PURE__ */ b((e, t) => {
|
|
87
87
|
const n = t.children(e);
|
|
88
88
|
let o = [...n];
|
|
89
|
-
for (const
|
|
90
|
-
J.set(
|
|
89
|
+
for (const c of n)
|
|
90
|
+
J.set(c, e), o = [...o, ...R(c, t)];
|
|
91
91
|
return o;
|
|
92
|
-
}, "extractDescendants"), ie = /* @__PURE__ */
|
|
93
|
-
const o = e.edges().filter((l) => l.v === t || l.w === t),
|
|
94
|
-
return
|
|
95
|
-
}, "findCommonEdges"), D = /* @__PURE__ */
|
|
92
|
+
}, "extractDescendants"), ie = /* @__PURE__ */ b((e, t, n) => {
|
|
93
|
+
const o = e.edges().filter((l) => l.v === t || l.w === t), c = e.edges().filter((l) => l.v === n || l.w === n), a = o.map((l) => ({ v: l.v === t ? n : l.v, w: l.w === t ? t : l.w })), r = c.map((l) => ({ v: l.v, w: l.w }));
|
|
94
|
+
return a.filter((l) => r.some((v) => l.v === v.v && l.w === v.w));
|
|
95
|
+
}, "findCommonEdges"), D = /* @__PURE__ */ b((e, t, n) => {
|
|
96
96
|
const o = t.children(e);
|
|
97
97
|
if (i.trace("Searching children of id ", e, o), o.length < 1)
|
|
98
98
|
return e;
|
|
99
|
-
let
|
|
100
|
-
for (const
|
|
101
|
-
const r = D(
|
|
99
|
+
let c;
|
|
100
|
+
for (const a of o) {
|
|
101
|
+
const r = D(a, t, n), u = ie(t, n, r);
|
|
102
102
|
if (r)
|
|
103
103
|
if (u.length > 0)
|
|
104
|
-
|
|
104
|
+
c = r;
|
|
105
105
|
else
|
|
106
106
|
return r;
|
|
107
107
|
}
|
|
108
|
-
return
|
|
109
|
-
}, "findNonClusterChild"), k = /* @__PURE__ */
|
|
108
|
+
return c;
|
|
109
|
+
}, "findNonClusterChild"), k = /* @__PURE__ */ b((e) => !f.has(e) || !f.get(e).externalConnections ? e : f.has(e) ? f.get(e).id : e, "getAnchorId"), re = /* @__PURE__ */ b((e, t) => {
|
|
110
110
|
if (!e || t > 10) {
|
|
111
111
|
i.debug("Opting out, no graph ");
|
|
112
112
|
return;
|
|
@@ -118,22 +118,22 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
118
118
|
n,
|
|
119
119
|
" Replacement id in edges: ",
|
|
120
120
|
D(n, e, n)
|
|
121
|
-
),
|
|
121
|
+
), N.set(n, R(n, e)), f.set(n, { id: D(n, e, n), clusterData: e.node(n) }));
|
|
122
122
|
}), e.nodes().forEach(function(n) {
|
|
123
|
-
const o = e.children(n),
|
|
124
|
-
o.length > 0 ? (i.debug("Cluster identified", n,
|
|
125
|
-
const r = O(
|
|
126
|
-
r ^ u && (i.warn("Edge: ",
|
|
127
|
-
})) : i.debug("Not a cluster ", n,
|
|
123
|
+
const o = e.children(n), c = e.edges();
|
|
124
|
+
o.length > 0 ? (i.debug("Cluster identified", n, N), c.forEach((a) => {
|
|
125
|
+
const r = O(a.v, n), u = O(a.w, n);
|
|
126
|
+
r ^ u && (i.warn("Edge: ", a, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", N.get(n)), f.get(n).externalConnections = !0);
|
|
127
|
+
})) : i.debug("Not a cluster ", n, N);
|
|
128
128
|
});
|
|
129
129
|
for (let n of f.keys()) {
|
|
130
|
-
const o = f.get(n).id,
|
|
131
|
-
|
|
130
|
+
const o = f.get(n).id, c = e.parent(o);
|
|
131
|
+
c !== n && f.has(c) && !f.get(c).externalConnections && (f.get(n).id = c);
|
|
132
132
|
}
|
|
133
133
|
e.edges().forEach(function(n) {
|
|
134
134
|
const o = e.edge(n);
|
|
135
135
|
i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
|
|
136
|
-
let
|
|
136
|
+
let c = n.v, a = n.w;
|
|
137
137
|
if (i.warn(
|
|
138
138
|
"Fix XXX",
|
|
139
139
|
f,
|
|
@@ -145,19 +145,19 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
145
145
|
" --- ",
|
|
146
146
|
f.get(n.w)
|
|
147
147
|
), f.get(n.v) || f.get(n.w)) {
|
|
148
|
-
if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name),
|
|
149
|
-
const r = e.parent(
|
|
148
|
+
if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), c = k(n.v), a = k(n.w), e.removeEdge(n.v, n.w, n.name), c !== n.v) {
|
|
149
|
+
const r = e.parent(c);
|
|
150
150
|
f.get(r).externalConnections = !0, o.fromCluster = n.v;
|
|
151
151
|
}
|
|
152
|
-
if (
|
|
153
|
-
const r = e.parent(
|
|
152
|
+
if (a !== n.w) {
|
|
153
|
+
const r = e.parent(a);
|
|
154
154
|
f.get(r).externalConnections = !0, o.toCluster = n.w;
|
|
155
155
|
}
|
|
156
|
-
i.warn("Fix Replacing with XXX",
|
|
156
|
+
i.warn("Fix Replacing with XXX", c, a, n.name), e.setEdge(c, a, o, n.name);
|
|
157
157
|
}
|
|
158
158
|
}), i.warn("Adjusted Graph", p(e)), T(e, 0), i.trace(f);
|
|
159
|
-
}, "adjustClustersAndEdges"), T = /* @__PURE__ */
|
|
160
|
-
var
|
|
159
|
+
}, "adjustClustersAndEdges"), T = /* @__PURE__ */ b((e, t) => {
|
|
160
|
+
var c, a;
|
|
161
161
|
if (i.warn("extractor - ", t, p(e), e.children("D")), t > 10) {
|
|
162
162
|
i.error("Bailing out");
|
|
163
163
|
return;
|
|
@@ -192,8 +192,8 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
192
192
|
t
|
|
193
193
|
);
|
|
194
194
|
let l = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
195
|
-
(
|
|
196
|
-
const
|
|
195
|
+
(a = (c = f.get(r)) == null ? void 0 : c.clusterData) != null && a.dir && (l = f.get(r).clusterData.dir, i.warn("Fixing dir", f.get(r).clusterData.dir, l));
|
|
196
|
+
const v = new B({
|
|
197
197
|
multigraph: !0,
|
|
198
198
|
compound: !0
|
|
199
199
|
}).setGraph({
|
|
@@ -205,13 +205,13 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
205
205
|
}).setDefaultEdgeLabel(function() {
|
|
206
206
|
return {};
|
|
207
207
|
});
|
|
208
|
-
i.warn("Old graph before copy", p(e)), G(r, e,
|
|
208
|
+
i.warn("Old graph before copy", p(e)), G(r, e, v, r), e.setNode(r, {
|
|
209
209
|
clusterNode: !0,
|
|
210
210
|
id: r,
|
|
211
211
|
clusterData: f.get(r).clusterData,
|
|
212
212
|
label: f.get(r).label,
|
|
213
|
-
graph:
|
|
214
|
-
}), i.warn("New graph after copy node: (", r, ")", p(
|
|
213
|
+
graph: v
|
|
214
|
+
}), i.warn("New graph after copy node: (", r, ")", p(v)), i.debug("Old graph after copy", p(e));
|
|
215
215
|
} else
|
|
216
216
|
i.warn(
|
|
217
217
|
"Cluster ** ",
|
|
@@ -230,26 +230,26 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
230
230
|
const u = e.node(r);
|
|
231
231
|
i.warn(" Now next level", r, u), u != null && u.clusterNode && T(u.graph, t + 1);
|
|
232
232
|
}
|
|
233
|
-
}, "extractor"), M = /* @__PURE__ */
|
|
233
|
+
}, "extractor"), M = /* @__PURE__ */ b((e, t) => {
|
|
234
234
|
if (t.length === 0)
|
|
235
235
|
return [];
|
|
236
236
|
let n = Object.assign([], t);
|
|
237
237
|
return t.forEach((o) => {
|
|
238
|
-
const
|
|
239
|
-
n = [...n, ...
|
|
238
|
+
const c = e.children(o), a = M(e, c);
|
|
239
|
+
n = [...n, ...a];
|
|
240
240
|
}), n;
|
|
241
|
-
}, "sorter"), oe = /* @__PURE__ */
|
|
242
|
-
i.warn("Graph in recursive render:XAX", p(t),
|
|
241
|
+
}, "sorter"), oe = /* @__PURE__ */ b((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ b(async (e, t, n, o, c, a) => {
|
|
242
|
+
i.warn("Graph in recursive render:XAX", p(t), c);
|
|
243
243
|
const r = t.graph().rankdir;
|
|
244
244
|
i.trace("Dir in recursive render - dir:", r);
|
|
245
245
|
const u = e.insert("g").attr("class", "root");
|
|
246
246
|
t.nodes() ? i.info("Recursive render XXX", t.nodes()) : i.info("No nodes found for", t), t.edges().length > 0 && i.info("Recursive edges", t.edge(t.edges()[0]));
|
|
247
|
-
const l = u.insert("g").attr("class", "clusters"),
|
|
247
|
+
const l = u.insert("g").attr("class", "clusters"), v = u.insert("g").attr("class", "edgePaths"), C = u.insert("g").attr("class", "edgeLabels"), g = u.insert("g").attr("class", "nodes");
|
|
248
248
|
await Promise.all(
|
|
249
249
|
t.nodes().map(async function(d) {
|
|
250
250
|
const s = t.node(d);
|
|
251
|
-
if (
|
|
252
|
-
const w = JSON.parse(JSON.stringify(
|
|
251
|
+
if (c !== void 0) {
|
|
252
|
+
const w = JSON.parse(JSON.stringify(c.clusterData));
|
|
253
253
|
i.trace(
|
|
254
254
|
`Setting data for parent cluster XXX
|
|
255
255
|
Node.id = `,
|
|
@@ -259,8 +259,8 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
259
259
|
w.height,
|
|
260
260
|
`
|
|
261
261
|
Parent cluster`,
|
|
262
|
-
|
|
263
|
-
), t.setNode(
|
|
262
|
+
c.height
|
|
263
|
+
), t.setNode(c.id, w), t.parent(d) || (i.trace("Setting parent", d, c.id), t.setParent(d, c.id, w));
|
|
264
264
|
}
|
|
265
265
|
if (i.info("(Insert) Node XXX" + d + ": " + JSON.stringify(t.node(d))), s != null && s.clusterNode) {
|
|
266
266
|
i.info("Cluster identified XBX", d, s.width, t.node(d));
|
|
@@ -270,15 +270,15 @@ Parent cluster`,
|
|
|
270
270
|
ranksep: w + 25,
|
|
271
271
|
nodesep: m
|
|
272
272
|
});
|
|
273
|
-
const
|
|
273
|
+
const E = await j(
|
|
274
274
|
g,
|
|
275
275
|
s.graph,
|
|
276
276
|
n,
|
|
277
277
|
o,
|
|
278
278
|
t.node(d),
|
|
279
|
-
|
|
280
|
-
), S =
|
|
281
|
-
|
|
279
|
+
a
|
|
280
|
+
), S = E.elem;
|
|
281
|
+
U(s, S), s.diff = E.diff || 0, i.info(
|
|
282
282
|
"New compound node after recursive render XAX",
|
|
283
283
|
d,
|
|
284
284
|
"width",
|
|
@@ -288,7 +288,7 @@ Parent cluster`,
|
|
|
288
288
|
s.height
|
|
289
289
|
// node.x,
|
|
290
290
|
// node.y
|
|
291
|
-
),
|
|
291
|
+
), $(S, s);
|
|
292
292
|
} else
|
|
293
293
|
t.children(d).length > 0 ? (i.trace(
|
|
294
294
|
"Cluster - the non recursive path XBX",
|
|
@@ -298,9 +298,9 @@ Parent cluster`,
|
|
|
298
298
|
s.width,
|
|
299
299
|
"Graph:",
|
|
300
300
|
t
|
|
301
|
-
), i.trace(D(s.id, t)), f.set(s.id, { id: D(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", d, g, t.node(d), r), await
|
|
301
|
+
), i.trace(D(s.id, t)), f.set(s.id, { id: D(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", d, g, t.node(d), r), await q(g, t.node(d), { config: a, dir: r }));
|
|
302
302
|
})
|
|
303
|
-
), await (/* @__PURE__ */
|
|
303
|
+
), await (/* @__PURE__ */ b(async () => {
|
|
304
304
|
const d = t.edges().map(async function(s) {
|
|
305
305
|
const w = t.edge(s.v, s.w, s.name);
|
|
306
306
|
i.info("Edge " + s.v + " -> " + s.w + ": " + JSON.stringify(s)), i.info("Edge " + s.v + " -> " + s.w + ": ", s, " ", JSON.stringify(t.edge(s))), i.info(
|
|
@@ -316,7 +316,7 @@ Parent cluster`,
|
|
|
316
316
|
});
|
|
317
317
|
await Promise.all(d);
|
|
318
318
|
}, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(p(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(p(t)));
|
|
319
|
-
let
|
|
319
|
+
let y = 0, { subGraphTitleTotalMargin: X } = z(a);
|
|
320
320
|
return await Promise.all(
|
|
321
321
|
oe(t).map(async function(d) {
|
|
322
322
|
var w;
|
|
@@ -329,7 +329,7 @@ Parent cluster`,
|
|
|
329
329
|
" height: ",
|
|
330
330
|
s.height
|
|
331
331
|
), s != null && s.clusterNode)
|
|
332
|
-
s.y +=
|
|
332
|
+
s.y += X, i.info(
|
|
333
333
|
"A tainted cluster node XBX1",
|
|
334
334
|
d,
|
|
335
335
|
s.id,
|
|
@@ -349,12 +349,12 @@ Parent cluster`,
|
|
|
349
349
|
s.width,
|
|
350
350
|
s.height,
|
|
351
351
|
t.parent(d)
|
|
352
|
-
), s.height +=
|
|
353
|
-
const m = (s == null ? void 0 : s.padding) / 2 || 0,
|
|
354
|
-
i.debug("OffsetY", S, "labelHeight",
|
|
352
|
+
), s.height += X, t.node(s.parentId);
|
|
353
|
+
const m = (s == null ? void 0 : s.padding) / 2 || 0, E = ((w = s == null ? void 0 : s.labelBBox) == null ? void 0 : w.height) || 0, S = E - m || 0;
|
|
354
|
+
i.debug("OffsetY", S, "labelHeight", E, "halfPadding", m), await K(l, s), f.get(s.id).node = s;
|
|
355
355
|
} else {
|
|
356
356
|
const m = t.node(s.parentId);
|
|
357
|
-
s.y +=
|
|
357
|
+
s.y += X / 2, i.info(
|
|
358
358
|
"A regular node XBX1 - using the padding",
|
|
359
359
|
s.id,
|
|
360
360
|
"parent",
|
|
@@ -374,37 +374,37 @@ Parent cluster`,
|
|
|
374
374
|
})
|
|
375
375
|
), t.edges().forEach(function(d) {
|
|
376
376
|
const s = t.edge(d);
|
|
377
|
-
i.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(s), s), s.points.forEach((S) => S.y +=
|
|
377
|
+
i.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(s), s), s.points.forEach((S) => S.y += X / 2);
|
|
378
378
|
const w = t.node(d.v);
|
|
379
379
|
var m = t.node(d.w);
|
|
380
|
-
const
|
|
381
|
-
W(s,
|
|
380
|
+
const E = Q(v, s, f, n, w, m, o);
|
|
381
|
+
W(s, E);
|
|
382
382
|
}), t.nodes().forEach(function(d) {
|
|
383
383
|
const s = t.node(d);
|
|
384
|
-
i.info(d, s.type, s.diff), s.isGroup && (
|
|
385
|
-
}), i.warn("Returning from recursive render XAX", u,
|
|
386
|
-
}, "recursiveRender"), ge = /* @__PURE__ */
|
|
387
|
-
var
|
|
384
|
+
i.info(d, s.type, s.diff), s.isGroup && (y = s.diff);
|
|
385
|
+
}), i.warn("Returning from recursive render XAX", u, y), { elem: u, diff: y };
|
|
386
|
+
}, "recursiveRender"), ge = /* @__PURE__ */ b(async (e, t) => {
|
|
387
|
+
var a, r, u, l, v, C;
|
|
388
388
|
const n = new B({
|
|
389
389
|
multigraph: !0,
|
|
390
390
|
compound: !0
|
|
391
391
|
}).setGraph({
|
|
392
392
|
rankdir: e.direction,
|
|
393
|
-
nodesep: ((
|
|
394
|
-
ranksep: ((l = e.config) == null ? void 0 : l.rankSpacing) || ((C = (
|
|
393
|
+
nodesep: ((a = e.config) == null ? void 0 : a.nodeSpacing) || ((u = (r = e.config) == null ? void 0 : r.flowchart) == null ? void 0 : u.nodeSpacing) || e.nodeSpacing,
|
|
394
|
+
ranksep: ((l = e.config) == null ? void 0 : l.rankSpacing) || ((C = (v = e.config) == null ? void 0 : v.flowchart) == null ? void 0 : C.rankSpacing) || e.rankSpacing,
|
|
395
395
|
marginx: 8,
|
|
396
396
|
marginy: 8
|
|
397
397
|
}).setDefaultEdgeLabel(function() {
|
|
398
398
|
return {};
|
|
399
399
|
}), o = t.select("g");
|
|
400
|
-
F(o, e.markers, e.type, e.diagramId), Y(),
|
|
400
|
+
F(o, e.markers, e.type, e.diagramId), Y(), H(), _(), te(), e.nodes.forEach((g) => {
|
|
401
401
|
n.setNode(g.id, { ...g }), g.parentId && n.setParent(g.id, g.parentId);
|
|
402
402
|
}), i.debug("Edges:", e.edges), e.edges.forEach((g) => {
|
|
403
403
|
if (g.start === g.end) {
|
|
404
|
-
const
|
|
405
|
-
n.setNode(
|
|
406
|
-
domId:
|
|
407
|
-
id:
|
|
404
|
+
const h = g.start, y = h + "---" + h + "---1", X = h + "---" + h + "---2", d = n.node(h);
|
|
405
|
+
n.setNode(y, {
|
|
406
|
+
domId: y,
|
|
407
|
+
id: y,
|
|
408
408
|
parentId: d.parentId,
|
|
409
409
|
labelStyle: "",
|
|
410
410
|
label: "",
|
|
@@ -414,9 +414,9 @@ Parent cluster`,
|
|
|
414
414
|
style: "",
|
|
415
415
|
width: 10,
|
|
416
416
|
height: 10
|
|
417
|
-
}), n.setParent(
|
|
418
|
-
domId:
|
|
419
|
-
id:
|
|
417
|
+
}), n.setParent(y, d.parentId), n.setNode(X, {
|
|
418
|
+
domId: X,
|
|
419
|
+
id: X,
|
|
420
420
|
parentId: d.parentId,
|
|
421
421
|
labelStyle: "",
|
|
422
422
|
padding: 0,
|
|
@@ -426,20 +426,20 @@ Parent cluster`,
|
|
|
426
426
|
style: "",
|
|
427
427
|
width: 10,
|
|
428
428
|
height: 10
|
|
429
|
-
}), n.setParent(
|
|
429
|
+
}), n.setParent(X, d.parentId);
|
|
430
430
|
const s = structuredClone(g), w = structuredClone(g), m = structuredClone(g);
|
|
431
|
-
s.label = "", s.arrowTypeEnd = "none", s.id =
|
|
431
|
+
s.label = "", s.arrowTypeEnd = "none", s.id = h + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = h + "-cyclic-special-mid", m.label = "", d.isGroup && (s.fromCluster = h, m.toCluster = h), m.id = h + "-cyclic-special-2", m.arrowTypeStart = "none", n.setEdge(h, y, s, h + "-cyclic-special-0"), n.setEdge(y, X, w, h + "-cyclic-special-1"), n.setEdge(X, h, m, h + "-cyc<lic-special-2");
|
|
432
432
|
} else
|
|
433
433
|
n.setEdge(g.start, g.end, { ...g }, g.id);
|
|
434
434
|
}), i.warn("Graph at first:", JSON.stringify(p(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(p(n)));
|
|
435
|
-
const
|
|
435
|
+
const c = V();
|
|
436
436
|
await j(
|
|
437
437
|
o,
|
|
438
438
|
n,
|
|
439
439
|
e.type,
|
|
440
440
|
e.diagramId,
|
|
441
441
|
void 0,
|
|
442
|
-
|
|
442
|
+
c
|
|
443
443
|
);
|
|
444
444
|
}, "render");
|
|
445
445
|
export {
|
package/dist/dayjs.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as R } from "./
|
|
1
|
+
import { j as R } from "./index2.js";
|
|
2
2
|
import { forwardRef as q } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { g as B } from "./Stack.js";
|
|
4
4
|
import { c as tt, g as et } from "./redux-toolkit.modern.js";
|
|
5
5
|
const nt = q(
|
|
6
6
|
({ className: T, isOpen: H = !1, children: v, ...g }, L) => H ? /* @__PURE__ */ R.jsx("div", { ref: L, className: B("al-transition-all", T), ...g, children: v }) : null
|