@thebuoyant-tsdev/mui-ts-library 2.2.0 → 2.3.0

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/index.js CHANGED
@@ -6,69 +6,69 @@ import U from "@mui/icons-material/ErrorOutlined";
6
6
  import W from "@mui/icons-material/CheckCircleOutlined";
7
7
  import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
8
8
  import { EditorView as J, highlightActiveLine as Y, highlightActiveLineGutter as ee, keymap as te, lineNumbers as ne, placeholder as re } from "@codemirror/view";
9
- import { Compartment as ie, EditorState as X } from "@codemirror/state";
10
- import { json as ae, jsonParseLinter as oe } from "@codemirror/lang-json";
11
- import { defaultKeymap as se, history as ce, historyKeymap as le, redo as ue, undo as de } from "@codemirror/commands";
12
- import { HighlightStyle as fe, syntaxHighlighting as pe } from "@codemirror/language";
13
- import { lintGutter as me, linter as he } from "@codemirror/lint";
14
- import { tags as Z } from "@lezer/highlight";
15
- import { showMinimap as ge } from "@replit/codemirror-minimap";
16
- import _e from "@mui/icons-material/ContentCopy";
17
- import ve from "@mui/icons-material/Check";
18
- import ye from "@mui/icons-material/Delete";
19
- import be from "@mui/icons-material/Undo";
20
- import xe from "@mui/icons-material/Redo";
21
- import Se from "@mui/icons-material/AutoFixHigh";
22
- import Ce from "@mui/icons-material/Compress";
23
- import { useStore as we } from "zustand";
24
- import { createStore as Te } from "zustand/vanilla";
25
- import { useVirtualizer as Ee } from "@tanstack/react-virtual";
26
- import De from "@mui/icons-material/Add";
27
- import Oe from "@mui/icons-material/Edit";
28
- import ke from "@mui/icons-material/RestartAlt";
29
- import Ae from "@mui/icons-material/Restore";
30
- import je from "@mui/icons-material/Today";
31
- import Me from "@mui/icons-material/UnfoldLess";
32
- import Ne from "@mui/icons-material/UnfoldMore";
33
- import Pe from "@mui/icons-material/Visibility";
34
- import Fe from "@mui/icons-material/VisibilityOff";
35
- import Ie from "@mui/icons-material/Close";
36
- import { EditorContent as Le, useEditor as Re } from "@tiptap/react";
37
- import { StarterKit as ze } from "@tiptap/starter-kit";
38
- import { TextStyle as Be } from "@tiptap/extension-text-style";
39
- import { Color as Ve } from "@tiptap/extension-color";
40
- import { Highlight as He } from "@tiptap/extension-highlight";
41
- import { Placeholder as Ue } from "@tiptap/extension-placeholder";
42
- import { CharacterCount as We } from "@tiptap/extension-character-count";
43
- import { TableKit as Ge } from "@tiptap/extension-table";
44
- import { Image as Ke } from "@tiptap/extension-image";
45
- import { Markdown as qe } from "tiptap-markdown";
46
- import Je from "@mui/icons-material/Fullscreen";
47
- import Ye from "@mui/icons-material/FullscreenExit";
48
- import Xe from "@mui/icons-material/Image";
49
- import Ze from "@mui/icons-material/EmojiEmotions";
50
- import Qe from "@mui/icons-material/FormatBold";
51
- import $e from "@mui/icons-material/FormatItalic";
52
- import et from "@mui/icons-material/FormatUnderlined";
53
- import tt from "@mui/icons-material/StrikethroughS";
54
- import nt from "@mui/icons-material/FormatListBulleted";
55
- import rt from "@mui/icons-material/FormatListNumbered";
56
- import it from "@mui/icons-material/FormatQuote";
57
- import at from "@mui/icons-material/Code";
58
- import ot from "@mui/icons-material/InsertLink";
59
- import st from "@mui/icons-material/HorizontalRule";
60
- import ct from "@mui/icons-material/FormatColorText";
61
- import lt from "@mui/icons-material/BorderColor";
62
- import ut from "@mui/icons-material/FormatClear";
63
- import dt from "@mui/icons-material/FormatColorReset";
64
- import ft from "@mui/icons-material/TableChart";
65
- import pt from "@mui/icons-material/Search";
66
- import { MSSQL as mt, MySQL as ht, PostgreSQL as gt, SQLite as _t, StandardSQL as vt, sql as yt } from "@codemirror/lang-sql";
67
- import { autocompletion as bt, completionKeymap as xt } from "@codemirror/autocomplete";
68
- import St from "@mui/icons-material/PlayArrow";
69
- import { format as Ct } from "sql-formatter";
70
- import wt from "@mui/icons-material/WarningAmber";
71
- import * as Tt from "d3";
9
+ import { Compartment as ie, EditorState as ae } from "@codemirror/state";
10
+ import { json as oe, jsonParseLinter as se } from "@codemirror/lang-json";
11
+ import { defaultKeymap as ce, history as le, historyKeymap as ue, redo as de, undo as fe } from "@codemirror/commands";
12
+ import { HighlightStyle as pe, syntaxHighlighting as me } from "@codemirror/language";
13
+ import { lintGutter as he, linter as ge } from "@codemirror/lint";
14
+ import { tags as X } from "@lezer/highlight";
15
+ import { showMinimap as _e } from "@replit/codemirror-minimap";
16
+ import ve from "@mui/icons-material/ContentCopy";
17
+ import ye from "@mui/icons-material/Check";
18
+ import be from "@mui/icons-material/Delete";
19
+ import xe from "@mui/icons-material/Undo";
20
+ import Se from "@mui/icons-material/Redo";
21
+ import Ce from "@mui/icons-material/AutoFixHigh";
22
+ import we from "@mui/icons-material/Compress";
23
+ import { useStore as Te } from "zustand";
24
+ import { createStore as Ee } from "zustand/vanilla";
25
+ import { useVirtualizer as De } from "@tanstack/react-virtual";
26
+ import Oe from "@mui/icons-material/Add";
27
+ import ke from "@mui/icons-material/Edit";
28
+ import Ae from "@mui/icons-material/RestartAlt";
29
+ import je from "@mui/icons-material/Restore";
30
+ import Me from "@mui/icons-material/Today";
31
+ import Ne from "@mui/icons-material/UnfoldLess";
32
+ import Pe from "@mui/icons-material/UnfoldMore";
33
+ import Fe from "@mui/icons-material/Visibility";
34
+ import Ie from "@mui/icons-material/VisibilityOff";
35
+ import Le from "@mui/icons-material/Close";
36
+ import { EditorContent as Re, useEditor as ze } from "@tiptap/react";
37
+ import { StarterKit as Be } from "@tiptap/starter-kit";
38
+ import { TextStyle as Ve } from "@tiptap/extension-text-style";
39
+ import { Color as He } from "@tiptap/extension-color";
40
+ import { Highlight as Ue } from "@tiptap/extension-highlight";
41
+ import { Placeholder as We } from "@tiptap/extension-placeholder";
42
+ import { CharacterCount as Ge } from "@tiptap/extension-character-count";
43
+ import { TableKit as Ke } from "@tiptap/extension-table";
44
+ import { Image as qe } from "@tiptap/extension-image";
45
+ import { Markdown as Je } from "tiptap-markdown";
46
+ import Ye from "@mui/icons-material/Fullscreen";
47
+ import Xe from "@mui/icons-material/FullscreenExit";
48
+ import Ze from "@mui/icons-material/Image";
49
+ import Qe from "@mui/icons-material/EmojiEmotions";
50
+ import $e from "@mui/icons-material/FormatBold";
51
+ import et from "@mui/icons-material/FormatItalic";
52
+ import tt from "@mui/icons-material/FormatUnderlined";
53
+ import nt from "@mui/icons-material/StrikethroughS";
54
+ import rt from "@mui/icons-material/FormatListBulleted";
55
+ import it from "@mui/icons-material/FormatListNumbered";
56
+ import at from "@mui/icons-material/FormatQuote";
57
+ import ot from "@mui/icons-material/Code";
58
+ import st from "@mui/icons-material/InsertLink";
59
+ import ct from "@mui/icons-material/HorizontalRule";
60
+ import lt from "@mui/icons-material/FormatColorText";
61
+ import ut from "@mui/icons-material/BorderColor";
62
+ import dt from "@mui/icons-material/FormatClear";
63
+ import ft from "@mui/icons-material/FormatColorReset";
64
+ import pt from "@mui/icons-material/TableChart";
65
+ import mt from "@mui/icons-material/Search";
66
+ import { MSSQL as ht, MySQL as gt, PostgreSQL as _t, SQLite as vt, StandardSQL as yt, sql as bt } from "@codemirror/lang-sql";
67
+ import { autocompletion as xt, completionKeymap as St } from "@codemirror/autocomplete";
68
+ import Ct from "@mui/icons-material/PlayArrow";
69
+ import { format as wt } from "sql-formatter";
70
+ import Tt from "@mui/icons-material/WarningAmber";
71
+ import * as Z from "d3";
72
72
  //#region src/components/confirm-dialog/ConfirmDialog.types.ts
73
73
  var Et = {
74
74
  confirmLabel: "Confirm",
@@ -234,40 +234,40 @@ function Ft({ value: e, onChange: t, placeholder: n, disabled: i = !1, readonly:
234
234
  x.current = d;
235
235
  }, [d]), r(() => {
236
236
  if (!h.current) return;
237
- let t = g.current?.state.doc.toString() ?? e ?? "", r = fe.define([
237
+ let t = g.current?.state.doc.toString() ?? e ?? "", r = pe.define([
238
238
  {
239
- tag: Z.propertyName,
239
+ tag: X.propertyName,
240
240
  color: E,
241
241
  fontWeight: "bold"
242
242
  },
243
243
  {
244
- tag: Z.string,
244
+ tag: X.string,
245
245
  color: D
246
246
  },
247
247
  {
248
- tag: Z.number,
248
+ tag: X.number,
249
249
  color: O
250
250
  },
251
251
  {
252
- tag: Z.bool,
252
+ tag: X.bool,
253
253
  color: k,
254
254
  fontWeight: "bold"
255
255
  },
256
256
  {
257
- tag: Z.null,
257
+ tag: X.null,
258
258
  color: A,
259
259
  fontStyle: "italic"
260
260
  },
261
261
  {
262
- tag: Z.bracket,
262
+ tag: X.bracket,
263
263
  color: w.palette.text.secondary
264
264
  },
265
265
  {
266
- tag: Z.punctuation,
266
+ tag: X.punctuation,
267
267
  color: w.palette.text.disabled
268
268
  },
269
269
  {
270
- tag: Z.invalid,
270
+ tag: X.invalid,
271
271
  color: w.palette.error.main,
272
272
  textDecoration: "underline wavy"
273
273
  }
@@ -311,7 +311,7 @@ function Ft({ value: e, onChange: t, placeholder: n, disabled: i = !1, readonly:
311
311
  },
312
312
  ".cm-diagnostic-error": { borderLeft: `3px solid ${w.palette.error.main}` },
313
313
  ".cm-diagnostic-warning": { borderLeft: `3px solid ${w.palette.warning.main}` }
314
- }, { dark: T }), l = c ? [ge.of({
314
+ }, { dark: T }), l = c ? [_e.of({
315
315
  create: () => {
316
316
  let e = document.createElement("div");
317
317
  return e.style.width = "80px", e.style.overflow = "hidden", e.style.borderLeft = `1px solid ${w.palette.divider}`, e.style.backgroundColor = T ? w.palette.grey[900] : w.palette.grey[50], { dom: e };
@@ -320,14 +320,14 @@ function Ft({ value: e, onChange: t, placeholder: n, disabled: i = !1, readonly:
320
320
  showOverlay: "always"
321
321
  })] : [], u = [
322
322
  s,
323
- pe(r),
324
- ae(),
325
- me(),
326
- he(oe()),
327
- ce(),
328
- te.of([...se, ...le]),
323
+ me(r),
324
+ oe(),
325
+ he(),
326
+ ge(se()),
327
+ le(),
328
+ te.of([...ce, ...ue]),
329
329
  S.current.of(J.editable.of(!i && !a)),
330
- C.current.of(X.readOnly.of(a)),
330
+ C.current.of(ae.readOnly.of(a)),
331
331
  Y(),
332
332
  ...o ? [ne(), ee()] : [],
333
333
  ...n ? [re(n)] : [],
@@ -346,7 +346,7 @@ function Ft({ value: e, onChange: t, placeholder: n, disabled: i = !1, readonly:
346
346
  }
347
347
  })
348
348
  ], d = new J({
349
- state: X.create({
349
+ state: ae.create({
350
350
  doc: t,
351
351
  extensions: u
352
352
  }),
@@ -373,7 +373,7 @@ function Ft({ value: e, onChange: t, placeholder: n, disabled: i = !1, readonly:
373
373
  insert: e ?? ""
374
374
  } });
375
375
  }, [e]), r(() => {
376
- g.current?.dispatch({ effects: [S.current.reconfigure(J.editable.of(!i && !a)), C.current.reconfigure(X.readOnly.of(a))] });
376
+ g.current?.dispatch({ effects: [S.current.reconfigure(J.editable.of(!i && !a)), C.current.reconfigure(ae.readOnly.of(a))] });
377
377
  }, [i, a]), /* @__PURE__ */ K(u, {
378
378
  ref: h,
379
379
  sx: {
@@ -458,11 +458,11 @@ function It({ editorView: e, toolbarConfig: t, translation: n, indent: r, disabl
458
458
  }
459
459
  function m() {
460
460
  let t = e;
461
- t && (de(t), t.focus());
461
+ t && (fe(t), t.focus());
462
462
  }
463
463
  function h() {
464
464
  let t = e;
465
- t && (ue(t), t.focus());
465
+ t && (de(t), t.focus());
466
466
  }
467
467
  let g = t.showFormat || t.showCompact, _ = t.showCopy || t.showClear, v = t.showUndoRedo;
468
468
  return /* @__PURE__ */ q(u, {
@@ -484,12 +484,12 @@ function It({ editorView: e, toolbarConfig: t, translation: n, indent: r, disabl
484
484
  },
485
485
  children: [t.showFormat && /* @__PURE__ */ K(Q, {
486
486
  label: n.format,
487
- icon: /* @__PURE__ */ K(Se, { fontSize: "small" }),
487
+ icon: /* @__PURE__ */ K(Ce, { fontSize: "small" }),
488
488
  onClick: l,
489
489
  disabled: s
490
490
  }), t.showCompact && /* @__PURE__ */ K(Q, {
491
491
  label: n.compact,
492
- icon: /* @__PURE__ */ K(Ce, { fontSize: "small" }),
492
+ icon: /* @__PURE__ */ K(we, { fontSize: "small" }),
493
493
  onClick: d,
494
494
  disabled: s
495
495
  })]
@@ -506,15 +506,15 @@ function It({ editorView: e, toolbarConfig: t, translation: n, indent: r, disabl
506
506
  },
507
507
  children: [t.showCopy && /* @__PURE__ */ K(Q, {
508
508
  label: a ? n.copySuccess : n.copy,
509
- icon: a ? /* @__PURE__ */ K(ve, {
509
+ icon: a ? /* @__PURE__ */ K(ye, {
510
510
  fontSize: "small",
511
511
  color: "success"
512
- }) : /* @__PURE__ */ K(_e, { fontSize: "small" }),
512
+ }) : /* @__PURE__ */ K(ve, { fontSize: "small" }),
513
513
  onClick: f,
514
514
  disabled: s
515
515
  }), t.showClear && /* @__PURE__ */ K(Q, {
516
516
  label: n.clear,
517
- icon: /* @__PURE__ */ K(ye, { fontSize: "small" }),
517
+ icon: /* @__PURE__ */ K(be, { fontSize: "small" }),
518
518
  onClick: p,
519
519
  disabled: s
520
520
  })]
@@ -531,12 +531,12 @@ function It({ editorView: e, toolbarConfig: t, translation: n, indent: r, disabl
531
531
  },
532
532
  children: [/* @__PURE__ */ K(Q, {
533
533
  label: n.undo,
534
- icon: /* @__PURE__ */ K(be, { fontSize: "small" }),
534
+ icon: /* @__PURE__ */ K(xe, { fontSize: "small" }),
535
535
  onClick: m,
536
536
  disabled: s
537
537
  }), /* @__PURE__ */ K(Q, {
538
538
  label: n.redo,
539
- icon: /* @__PURE__ */ K(xe, { fontSize: "small" }),
539
+ icon: /* @__PURE__ */ K(Se, { fontSize: "small" }),
540
540
  onClick: h,
541
541
  disabled: s
542
542
  })]
@@ -853,7 +853,7 @@ function cn(e, t) {
853
853
  }
854
854
  function ln(e, t = "months", n = !1, r, i = !1) {
855
855
  let a = Vt(e);
856
- return Te((o, s) => ({
856
+ return Ee((o, s) => ({
857
857
  tasks: e,
858
858
  taskTree: Wt(e),
859
859
  expandedIds: n ? new Set(e.map((e) => e.id)) : new Set(e.filter((e) => !e.parentId).map((e) => e.id)),
@@ -1460,7 +1460,7 @@ function bn({ task: e, expandedIds: t, toggleExpand: n, hasActionsColumn: r, onT
1460
1460
  onClick: (t) => {
1461
1461
  t.stopPropagation(), o(e);
1462
1462
  },
1463
- children: /* @__PURE__ */ K(Oe, { fontSize: "inherit" })
1463
+ children: /* @__PURE__ */ K(ke, { fontSize: "inherit" })
1464
1464
  })
1465
1465
  }),
1466
1466
  a && /* @__PURE__ */ K(R, {
@@ -1471,7 +1471,7 @@ function bn({ task: e, expandedIds: t, toggleExpand: n, hasActionsColumn: r, onT
1471
1471
  onClick: (t) => {
1472
1472
  t.stopPropagation(), a(e);
1473
1473
  },
1474
- children: /* @__PURE__ */ K(De, { fontSize: "inherit" })
1474
+ children: /* @__PURE__ */ K(Oe, { fontSize: "inherit" })
1475
1475
  })
1476
1476
  }),
1477
1477
  s && /* @__PURE__ */ K(R, {
@@ -1482,7 +1482,7 @@ function bn({ task: e, expandedIds: t, toggleExpand: n, hasActionsColumn: r, onT
1482
1482
  onClick: (t) => {
1483
1483
  t.stopPropagation(), s(e);
1484
1484
  },
1485
- children: /* @__PURE__ */ K(ye, { fontSize: "inherit" })
1485
+ children: /* @__PURE__ */ K(be, { fontSize: "inherit" })
1486
1486
  })
1487
1487
  })
1488
1488
  ]
@@ -1534,7 +1534,7 @@ function bn({ task: e, expandedIds: t, toggleExpand: n, hasActionsColumn: r, onT
1534
1534
  });
1535
1535
  }
1536
1536
  function xn({ scrollRef: e, onScroll: t, panelWidth: n, onTaskClick: r, onAddTask: i, onEditTask: a, onDeleteTask: s, onStatusChange: l, onTasksChange: d, enableBuiltinDialogs: f, onTaskCreated: p, onTaskUpdated: m, onTaskDeleted: h, inlineEdit: g, virtualizeRows: _ = !1 }) {
1537
- let v = Vn(), y = zn(), b = $((e) => e.taskTree), x = $((e) => e.expandedIds), S = $((e) => e.toggleExpand), C = $((e) => e.timeScale), w = $((e) => e.addTask), T = $((e) => e.updateTask), E = $((e) => e.deleteTask), D = o(() => Kt(b, x), [b, x]), O = Ee({
1537
+ let v = Vn(), y = zn(), b = $((e) => e.taskTree), x = $((e) => e.expandedIds), S = $((e) => e.toggleExpand), C = $((e) => e.timeScale), w = $((e) => e.addTask), T = $((e) => e.updateTask), E = $((e) => e.deleteTask), D = o(() => Kt(b, x), [b, x]), O = De({
1538
1538
  count: D.length,
1539
1539
  getScrollElement: () => e.current,
1540
1540
  estimateSize: () => 40,
@@ -2269,7 +2269,7 @@ function Pn({ scrollRef: e, onScroll: t, onTaskClick: n, onMilestoneClick: a, dr
2269
2269
  A,
2270
2270
  j,
2271
2271
  N
2272
- ]), I = o(() => p ? sn(b) : /* @__PURE__ */ new Set(), [p, b]), L = Ee({
2272
+ ]), I = o(() => p ? sn(b) : /* @__PURE__ */ new Set(), [p, b]), L = De({
2273
2273
  count: A.length,
2274
2274
  getScrollElement: () => e.current,
2275
2275
  estimateSize: () => 40,
@@ -2304,10 +2304,10 @@ function Pn({ scrollRef: e, onScroll: t, onTaskClick: n, onMilestoneClick: a, dr
2304
2304
  onTaskMoved: h,
2305
2305
  onTaskResized: g,
2306
2306
  onTasksChange: _
2307
- }), [re, ie] = c(null), X = s(v);
2308
- X.current = v;
2309
- let ae = s(_);
2310
- return ae.current = _, /* @__PURE__ */ K(u, {
2307
+ }), [re, ie] = c(null), ae = s(v);
2308
+ ae.current = v;
2309
+ let oe = s(_);
2310
+ return oe.current = _, /* @__PURE__ */ K(u, {
2311
2311
  ref: e,
2312
2312
  onScroll: t,
2313
2313
  "data-testid": "gantt-timeline-scroll",
@@ -2393,7 +2393,7 @@ function Pn({ scrollRef: e, onScroll: t, onTaskClick: n, onMilestoneClick: a, dr
2393
2393
  w({
2394
2394
  ...n,
2395
2395
  status: t
2396
- }), X.current?.(n, t), ae.current?.(T.getState().tasks), ie(null);
2396
+ }), ae.current?.(n, t), oe.current?.(T.getState().tasks), ie(null);
2397
2397
  }
2398
2398
  }),
2399
2399
  /* @__PURE__ */ K(Mn, {
@@ -2469,7 +2469,7 @@ function Ln({ onScrollToToday: e, config: t }) {
2469
2469
  size: "small",
2470
2470
  onClick: v ? _ : g,
2471
2471
  "data-testid": "gantt-expand-collapse-all",
2472
- children: K(v ? Me : Ne, { fontSize: "small" })
2472
+ children: K(v ? Ne : Pe, { fontSize: "small" })
2473
2473
  })
2474
2474
  }),
2475
2475
  t.showScrollToToday && e && /* @__PURE__ */ K(R, {
@@ -2479,7 +2479,7 @@ function Ln({ onScrollToToday: e, config: t }) {
2479
2479
  onClick: e,
2480
2480
  disabled: !x,
2481
2481
  "data-testid": "gantt-scroll-to-today",
2482
- children: /* @__PURE__ */ K(je, { fontSize: "small" })
2482
+ children: /* @__PURE__ */ K(Me, { fontSize: "small" })
2483
2483
  }) })
2484
2484
  }),
2485
2485
  t.showDateRange && /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(F, {
@@ -2523,7 +2523,7 @@ function Ln({ onScrollToToday: e, config: t }) {
2523
2523
  size: "small",
2524
2524
  onClick: f,
2525
2525
  "data-testid": "gantt-range-reset",
2526
- children: /* @__PURE__ */ K(Ae, { fontSize: "small" })
2526
+ children: /* @__PURE__ */ K(je, { fontSize: "small" })
2527
2527
  })
2528
2528
  }),
2529
2529
  t.showResetView && /* @__PURE__ */ K(R, {
@@ -2533,7 +2533,7 @@ function Ln({ onScrollToToday: e, config: t }) {
2533
2533
  onClick: p,
2534
2534
  disabled: !y,
2535
2535
  "data-testid": "gantt-reset-view",
2536
- children: /* @__PURE__ */ K(ke, { fontSize: "small" })
2536
+ children: /* @__PURE__ */ K(Ae, { fontSize: "small" })
2537
2537
  }) })
2538
2538
  })
2539
2539
  ]
@@ -2546,7 +2546,7 @@ var Rn = e(null);
2546
2546
  function $(e) {
2547
2547
  let t = n(Rn);
2548
2548
  if (!t) throw Error("GanttChartStoreContext is missing.");
2549
- return we(t, e);
2549
+ return Te(t, e);
2550
2550
  }
2551
2551
  function zn() {
2552
2552
  let e = n(Rn);
@@ -2953,7 +2953,7 @@ function nr({ value: e, name: t, inputRef: n, disabled: r = !1, error: a = !1, h
2953
2953
  e.preventDefault();
2954
2954
  },
2955
2955
  edge: "end",
2956
- children: K(j ? Fe : Pe, {})
2956
+ children: K(j ? Ie : Fe, {})
2957
2957
  })
2958
2958
  }) : null,
2959
2959
  label: D.label
@@ -3038,7 +3038,7 @@ function nr({ value: e, name: t, inputRef: n, disabled: r = !1, error: a = !1, h
3038
3038
  //#endregion
3039
3039
  //#region src/components/tag-selection/TagSelection.store.ts
3040
3040
  function rr(e) {
3041
- return Te((t) => ({
3041
+ return Ee((t) => ({
3042
3042
  tags: e,
3043
3043
  searchValue: "",
3044
3044
  setTags: (e) => {
@@ -3140,14 +3140,14 @@ function ar({ availableTags: e, searchValue: t, translation: n, onSearchChange:
3140
3140
  e.preventDefault();
3141
3141
  },
3142
3142
  onClick: E,
3143
- children: /* @__PURE__ */ K(ve, { fontSize: "small" })
3143
+ children: /* @__PURE__ */ K(ye, { fontSize: "small" })
3144
3144
  }), /* @__PURE__ */ K(C, {
3145
3145
  size: "small",
3146
3146
  onMouseDown: (e) => {
3147
3147
  e.preventDefault();
3148
3148
  },
3149
3149
  onClick: D,
3150
- children: /* @__PURE__ */ K(Ie, { fontSize: "small" })
3150
+ children: /* @__PURE__ */ K(Le, { fontSize: "small" })
3151
3151
  })] }), e.slotProps?.input?.endAdornment] })
3152
3152
  }
3153
3153
  }
@@ -3303,7 +3303,7 @@ var cr = {
3303
3303
  function ur(e) {
3304
3304
  let t = n(lr);
3305
3305
  if (!t) throw Error("TagSelectionStoreContext is missing.");
3306
- return we(t, e);
3306
+ return Te(t, e);
3307
3307
  }
3308
3308
  function dr({ tags: e, showSelectedTags: t = !0, showSelectedTagsLabel: n = !0, showAutoComplete: i = !0, inputSize: a = "medium", chipSize: s = "small", disabled: c = !1, loading: l = !1, maxTags: d, allowCreate: f = !1, maxVisibleChips: p, popoverPlacement: m = "bottom", listboxMaxHeight: h, translation: g, onTagSelect: _, onTagDelete: v, onTagsChange: y, onSearchChange: b, onTagCreate: x }) {
3309
3309
  let S = ur((e) => e.tags), C = ur((e) => e.searchValue), w = ur((e) => e.setTags), T = ur((e) => e.setSearchValue), E = ur((e) => e.selectTag), D = ur((e) => e.deleteTag), O = ur((e) => e.addTag);
@@ -3593,7 +3593,7 @@ function hr({ editor: e, error: t, disabled: n, readonly: r }) {
3593
3593
  }
3594
3594
  }
3595
3595
  },
3596
- children: /* @__PURE__ */ K(Le, { editor: e })
3596
+ children: /* @__PURE__ */ K(Re, { editor: e })
3597
3597
  });
3598
3598
  }
3599
3599
  //#endregion
@@ -3831,7 +3831,7 @@ function br({ anchorEl: e, open: t, onClose: n, mode: r, activeColor: i, onSelec
3831
3831
  borderRadius: 1,
3832
3832
  ml: "auto"
3833
3833
  },
3834
- children: /* @__PURE__ */ K(dt, { fontSize: "small" })
3834
+ children: /* @__PURE__ */ K(ft, { fontSize: "small" })
3835
3835
  })
3836
3836
  })
3837
3837
  ]
@@ -3860,7 +3860,7 @@ function xr({ editor: e, translation: t, disabled: n }) {
3860
3860
  sx: { borderRadius: 1 },
3861
3861
  "aria-label": t.table,
3862
3862
  "aria-pressed": o,
3863
- children: /* @__PURE__ */ K(ft, { fontSize: "small" })
3863
+ children: /* @__PURE__ */ K(pt, { fontSize: "small" })
3864
3864
  }) })
3865
3865
  }), /* @__PURE__ */ q(O, {
3866
3866
  anchorEl: r,
@@ -3874,20 +3874,20 @@ function xr({ editor: e, translation: t, disabled: n }) {
3874
3874
  cols: 3,
3875
3875
  withHeaderRow: !0
3876
3876
  }).run()),
3877
- children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(ft, { fontSize: "small" }) }), /* @__PURE__ */ K(D, { children: t.insertTable })]
3877
+ children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(pt, { fontSize: "small" }) }), /* @__PURE__ */ K(D, { children: t.insertTable })]
3878
3878
  }),
3879
3879
  o && /* @__PURE__ */ K(y, {}),
3880
3880
  o && /* @__PURE__ */ q(k, {
3881
3881
  onClick: () => l(() => e?.chain().focus().addRowBefore().run()),
3882
- children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(De, { fontSize: "small" }) }), /* @__PURE__ */ K(D, { children: t.addRowBefore })]
3882
+ children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(Oe, { fontSize: "small" }) }), /* @__PURE__ */ K(D, { children: t.addRowBefore })]
3883
3883
  }),
3884
3884
  o && /* @__PURE__ */ q(k, {
3885
3885
  onClick: () => l(() => e?.chain().focus().addRowAfter().run()),
3886
- children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(De, { fontSize: "small" }) }), /* @__PURE__ */ K(D, { children: t.addRowAfter })]
3886
+ children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(Oe, { fontSize: "small" }) }), /* @__PURE__ */ K(D, { children: t.addRowAfter })]
3887
3887
  }),
3888
3888
  o && /* @__PURE__ */ q(k, {
3889
3889
  onClick: () => l(() => e?.chain().focus().deleteRow().run()),
3890
- children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(ye, {
3890
+ children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(be, {
3891
3891
  fontSize: "small",
3892
3892
  color: "error"
3893
3893
  }) }), /* @__PURE__ */ K(D, {
@@ -3898,15 +3898,15 @@ function xr({ editor: e, translation: t, disabled: n }) {
3898
3898
  o && /* @__PURE__ */ K(y, {}),
3899
3899
  o && /* @__PURE__ */ q(k, {
3900
3900
  onClick: () => l(() => e?.chain().focus().addColumnBefore().run()),
3901
- children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(De, { fontSize: "small" }) }), /* @__PURE__ */ K(D, { children: t.addColumnBefore })]
3901
+ children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(Oe, { fontSize: "small" }) }), /* @__PURE__ */ K(D, { children: t.addColumnBefore })]
3902
3902
  }),
3903
3903
  o && /* @__PURE__ */ q(k, {
3904
3904
  onClick: () => l(() => e?.chain().focus().addColumnAfter().run()),
3905
- children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(De, { fontSize: "small" }) }), /* @__PURE__ */ K(D, { children: t.addColumnAfter })]
3905
+ children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(Oe, { fontSize: "small" }) }), /* @__PURE__ */ K(D, { children: t.addColumnAfter })]
3906
3906
  }),
3907
3907
  o && /* @__PURE__ */ q(k, {
3908
3908
  onClick: () => l(() => e?.chain().focus().deleteColumn().run()),
3909
- children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(ye, {
3909
+ children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(be, {
3910
3910
  fontSize: "small",
3911
3911
  color: "error"
3912
3912
  }) }), /* @__PURE__ */ K(D, {
@@ -3917,7 +3917,7 @@ function xr({ editor: e, translation: t, disabled: n }) {
3917
3917
  o && /* @__PURE__ */ K(y, {}),
3918
3918
  o && /* @__PURE__ */ q(k, {
3919
3919
  onClick: () => l(() => e?.chain().focus().deleteTable().run()),
3920
- children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(ye, {
3920
+ children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ K(be, {
3921
3921
  fontSize: "small",
3922
3922
  color: "error"
3923
3923
  }) }), /* @__PURE__ */ K(D, {
@@ -4785,7 +4785,7 @@ function wr({ anchorEl: e, open: t, onClose: n, onSelect: r, translation: i }) {
4785
4785
  onChange: (e) => s(e.target.value),
4786
4786
  slotProps: { input: { startAdornment: /* @__PURE__ */ K(w, {
4787
4787
  position: "start",
4788
- children: /* @__PURE__ */ K(pt, { fontSize: "small" })
4788
+ children: /* @__PURE__ */ K(mt, { fontSize: "small" })
4789
4789
  }) } }
4790
4790
  })
4791
4791
  }), /* @__PURE__ */ q(u, {
@@ -4922,28 +4922,28 @@ function Dr({ editor: e, toolbarConfig: t, translation: n, disabled: r, isFullsc
4922
4922
  children: [
4923
4923
  t.showBold && /* @__PURE__ */ K(Q, {
4924
4924
  label: n.bold,
4925
- icon: /* @__PURE__ */ K(Qe, { fontSize: "small" }),
4925
+ icon: /* @__PURE__ */ K($e, { fontSize: "small" }),
4926
4926
  onClick: () => e?.chain().focus().toggleBold().run(),
4927
4927
  active: e?.isActive("bold"),
4928
4928
  disabled: v
4929
4929
  }),
4930
4930
  t.showItalic && /* @__PURE__ */ K(Q, {
4931
4931
  label: n.italic,
4932
- icon: /* @__PURE__ */ K($e, { fontSize: "small" }),
4932
+ icon: /* @__PURE__ */ K(et, { fontSize: "small" }),
4933
4933
  onClick: () => e?.chain().focus().toggleItalic().run(),
4934
4934
  active: e?.isActive("italic"),
4935
4935
  disabled: v
4936
4936
  }),
4937
4937
  t.showUnderline && /* @__PURE__ */ K(Q, {
4938
4938
  label: n.underline,
4939
- icon: /* @__PURE__ */ K(et, { fontSize: "small" }),
4939
+ icon: /* @__PURE__ */ K(tt, { fontSize: "small" }),
4940
4940
  onClick: () => e?.chain().focus().toggleUnderline().run(),
4941
4941
  active: e?.isActive("underline"),
4942
4942
  disabled: v
4943
4943
  }),
4944
4944
  t.showStrike && /* @__PURE__ */ K(Q, {
4945
4945
  label: n.strike,
4946
- icon: /* @__PURE__ */ K(tt, { fontSize: "small" }),
4946
+ icon: /* @__PURE__ */ K(nt, { fontSize: "small" }),
4947
4947
  onClick: () => e?.chain().focus().toggleStrike().run(),
4948
4948
  active: e?.isActive("strike"),
4949
4949
  disabled: v
@@ -4988,13 +4988,13 @@ function Dr({ editor: e, toolbarConfig: t, translation: n, disabled: r, isFullsc
4988
4988
  },
4989
4989
  children: [t.showBulletList && /* @__PURE__ */ K(Q, {
4990
4990
  label: n.bulletList,
4991
- icon: /* @__PURE__ */ K(nt, { fontSize: "small" }),
4991
+ icon: /* @__PURE__ */ K(rt, { fontSize: "small" }),
4992
4992
  onClick: () => e?.chain().focus().toggleBulletList().run(),
4993
4993
  active: e?.isActive("bulletList"),
4994
4994
  disabled: v
4995
4995
  }), t.showOrderedList && /* @__PURE__ */ K(Q, {
4996
4996
  label: n.orderedList,
4997
- icon: /* @__PURE__ */ K(rt, { fontSize: "small" }),
4997
+ icon: /* @__PURE__ */ K(it, { fontSize: "small" }),
4998
4998
  onClick: () => e?.chain().focus().toggleOrderedList().run(),
4999
4999
  active: e?.isActive("orderedList"),
5000
5000
  disabled: v
@@ -5009,28 +5009,28 @@ function Dr({ editor: e, toolbarConfig: t, translation: n, disabled: r, isFullsc
5009
5009
  children: [
5010
5010
  t.showBlockquote && /* @__PURE__ */ K(Q, {
5011
5011
  label: n.blockquote,
5012
- icon: /* @__PURE__ */ K(it, { fontSize: "small" }),
5012
+ icon: /* @__PURE__ */ K(at, { fontSize: "small" }),
5013
5013
  onClick: () => e?.chain().focus().toggleBlockquote().run(),
5014
5014
  active: e?.isActive("blockquote"),
5015
5015
  disabled: v
5016
5016
  }),
5017
5017
  t.showCodeBlock && /* @__PURE__ */ K(Q, {
5018
5018
  label: n.codeBlock,
5019
- icon: /* @__PURE__ */ K(at, { fontSize: "small" }),
5019
+ icon: /* @__PURE__ */ K(ot, { fontSize: "small" }),
5020
5020
  onClick: () => e?.chain().focus().toggleCodeBlock().run(),
5021
5021
  active: e?.isActive("codeBlock"),
5022
5022
  disabled: v
5023
5023
  }),
5024
5024
  t.showLink && /* @__PURE__ */ K(Q, {
5025
5025
  label: n.link,
5026
- icon: /* @__PURE__ */ K(ot, { fontSize: "small" }),
5026
+ icon: /* @__PURE__ */ K(st, { fontSize: "small" }),
5027
5027
  onClick: () => s(!0),
5028
5028
  active: e?.isActive("link"),
5029
5029
  disabled: v
5030
5030
  }),
5031
5031
  t.showHorizontalRule && /* @__PURE__ */ K(Q, {
5032
5032
  label: n.horizontalRule,
5033
- icon: /* @__PURE__ */ K(st, { fontSize: "small" }),
5033
+ icon: /* @__PURE__ */ K(ct, { fontSize: "small" }),
5034
5034
  onClick: () => e?.chain().focus().setHorizontalRule().run(),
5035
5035
  disabled: v
5036
5036
  })
@@ -5044,13 +5044,13 @@ function Dr({ editor: e, toolbarConfig: t, translation: n, disabled: r, isFullsc
5044
5044
  },
5045
5045
  children: [t.showTextColor && /* @__PURE__ */ K(Tr, {
5046
5046
  label: n.textColor,
5047
- icon: /* @__PURE__ */ K(ct, { fontSize: "small" }),
5047
+ icon: /* @__PURE__ */ K(lt, { fontSize: "small" }),
5048
5048
  activeColor: b,
5049
5049
  disabled: v,
5050
5050
  onClick: (e) => h(e.currentTarget)
5051
5051
  }), t.showHighlight && /* @__PURE__ */ K(Tr, {
5052
5052
  label: n.highlight,
5053
- icon: /* @__PURE__ */ K(lt, { fontSize: "small" }),
5053
+ icon: /* @__PURE__ */ K(ut, { fontSize: "small" }),
5054
5054
  activeColor: x,
5055
5055
  disabled: v,
5056
5056
  onClick: (e) => _(e.currentTarget)
@@ -5064,17 +5064,17 @@ function Dr({ editor: e, toolbarConfig: t, translation: n, disabled: r, isFullsc
5064
5064
  },
5065
5065
  children: [t.showUndoRedo && /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(Q, {
5066
5066
  label: n.undo,
5067
- icon: /* @__PURE__ */ K(be, { fontSize: "small" }),
5067
+ icon: /* @__PURE__ */ K(xe, { fontSize: "small" }),
5068
5068
  onClick: () => e?.chain().focus().undo().run(),
5069
5069
  disabled: v || !e?.can().undo()
5070
5070
  }), /* @__PURE__ */ K(Q, {
5071
5071
  label: n.redo,
5072
- icon: /* @__PURE__ */ K(xe, { fontSize: "small" }),
5072
+ icon: /* @__PURE__ */ K(Se, { fontSize: "small" }),
5073
5073
  onClick: () => e?.chain().focus().redo().run(),
5074
5074
  disabled: v || !e?.can().redo()
5075
5075
  })] }), t.showClearFormat && /* @__PURE__ */ K(Q, {
5076
5076
  label: n.clearFormat,
5077
- icon: /* @__PURE__ */ K(ut, { fontSize: "small" }),
5077
+ icon: /* @__PURE__ */ K(dt, { fontSize: "small" }),
5078
5078
  onClick: () => e?.chain().focus().clearNodes().unsetAllMarks().run(),
5079
5079
  disabled: v
5080
5080
  })]
@@ -5093,7 +5093,7 @@ function Dr({ editor: e, toolbarConfig: t, translation: n, disabled: r, isFullsc
5093
5093
  }),
5094
5094
  t.showImageButton && /* @__PURE__ */ K(Q, {
5095
5095
  label: n.image,
5096
- icon: /* @__PURE__ */ K(Xe, { fontSize: "small" }),
5096
+ icon: /* @__PURE__ */ K(Ze, { fontSize: "small" }),
5097
5097
  onClick: () => d(!0),
5098
5098
  disabled: v
5099
5099
  }),
@@ -5107,7 +5107,7 @@ function Dr({ editor: e, toolbarConfig: t, translation: n, disabled: r, isFullsc
5107
5107
  disabled: v,
5108
5108
  sx: { borderRadius: 1 },
5109
5109
  "aria-label": n.emoji,
5110
- children: /* @__PURE__ */ K(Ze, { fontSize: "small" })
5110
+ children: /* @__PURE__ */ K(Qe, { fontSize: "small" })
5111
5111
  }) })
5112
5112
  })
5113
5113
  ]
@@ -5125,7 +5125,7 @@ function Dr({ editor: e, toolbarConfig: t, translation: n, disabled: r, isFullsc
5125
5125
  disabled: r || !e,
5126
5126
  sx: { borderRadius: 1 },
5127
5127
  "aria-label": i ? n.exitFullscreen : n.fullscreen,
5128
- children: K(i ? Ye : Je, { fontSize: "small" })
5128
+ children: K(i ? Xe : Ye, { fontSize: "small" })
5129
5129
  }) })
5130
5130
  })
5131
5131
  })
@@ -5211,24 +5211,24 @@ function kr({ disabled: e = !1, error: t = !1, height: n, helperText: i, maxChar
5211
5211
  }, C = {
5212
5212
  ...pr,
5213
5213
  ...m
5214
- }, [w, T] = c(!1), E = Rt(n), D = Rt(_), O = E === "auto", k = O ? void 0 : E ?? 200, A = a !== void 0 && a > 0 || d || p, M = Re({
5214
+ }, [w, T] = c(!1), E = Rt(n), D = Rt(_), O = E === "auto", k = O ? void 0 : E ?? 200, A = a !== void 0 && a > 0 || d || p, M = ze({
5215
5215
  shouldRerenderOnTransaction: !0,
5216
5216
  extensions: [
5217
- ze.configure({ link: { openOnClick: !1 } }),
5218
- Be,
5217
+ Be.configure({ link: { openOnClick: !1 } }),
5219
5218
  Ve,
5220
- He.configure({ multicolor: !0 }),
5221
- qe.configure({
5219
+ He,
5220
+ Ue.configure({ multicolor: !0 }),
5221
+ Je.configure({
5222
5222
  transformPastedText: !0,
5223
5223
  transformCopiedText: !1
5224
5224
  }),
5225
- Ue.configure({ placeholder: s ?? "" }),
5226
- ...C.showTableButton ? [Ge] : [],
5227
- ...C.showImageButton ? [Ke.configure({
5225
+ We.configure({ placeholder: s ?? "" }),
5226
+ ...C.showTableButton ? [Ke] : [],
5227
+ ...C.showImageButton ? [qe.configure({
5228
5228
  inline: !1,
5229
5229
  allowBase64: !0
5230
5230
  })] : [],
5231
- ...A ? a !== void 0 && a > 0 ? [We.configure({ limit: a })] : [We] : []
5231
+ ...A ? a !== void 0 && a > 0 ? [Ge.configure({ limit: a })] : [Ge] : []
5232
5232
  ],
5233
5233
  content: g ?? "",
5234
5234
  editable: !e && !l,
@@ -5337,11 +5337,11 @@ var Ar = {
5337
5337
  lineColumn: "Ln {line}, Col {col}",
5338
5338
  errorCount: "{count} error(s)"
5339
5339
  }, Mr = {
5340
- standard: vt,
5341
- mysql: ht,
5342
- postgresql: gt,
5343
- sqlite: _t,
5344
- mssql: mt
5340
+ standard: yt,
5341
+ mysql: gt,
5342
+ postgresql: _t,
5343
+ sqlite: vt,
5344
+ mssql: ht
5345
5345
  };
5346
5346
  function Nr({ value: e, onChange: t, placeholder: n, disabled: i = !1, readonly: a = !1, showLineNumbers: o = !0, dialect: c = "standard", keywordColor: l, stringColor: d, identifierColor: f, schema: p, onExecute: m, onLint: h, onDiagnosticsChange: g, onViewReady: _, onCursorChange: v, onBlur: y, onFocus: b }) {
5347
5347
  let x = s(null), S = s(null), C = s(t), w = s(v), T = s(y), E = s(b), D = s(_), O = s(m), k = s(h), A = s(g), j = s(new ie()), M = s(new ie()), N = B(), P = N.palette.mode === "dark", F = !!h, I = JSON.stringify(p);
@@ -5363,44 +5363,44 @@ function Nr({ value: e, onChange: t, placeholder: n, disabled: i = !1, readonly:
5363
5363
  A.current = g;
5364
5364
  }, [g]), r(() => {
5365
5365
  if (!x.current) return;
5366
- let t = S.current?.state.doc.toString() ?? e ?? "", r = l ?? N.palette.primary.main, s = d ?? N.palette.success.main, u = f ?? N.palette.info.main, m = fe.define([
5366
+ let t = S.current?.state.doc.toString() ?? e ?? "", r = l ?? N.palette.primary.main, s = d ?? N.palette.success.main, u = f ?? N.palette.info.main, m = pe.define([
5367
5367
  {
5368
- tag: Z.keyword,
5368
+ tag: X.keyword,
5369
5369
  color: r,
5370
5370
  fontWeight: "bold"
5371
5371
  },
5372
5372
  {
5373
- tag: Z.name,
5373
+ tag: X.name,
5374
5374
  color: u
5375
5375
  },
5376
5376
  {
5377
- tag: [Z.string, Z.special(Z.string)],
5377
+ tag: [X.string, X.special(X.string)],
5378
5378
  color: s,
5379
5379
  fontWeight: "bold"
5380
5380
  },
5381
5381
  {
5382
- tag: Z.number,
5382
+ tag: X.number,
5383
5383
  color: N.palette.warning.main
5384
5384
  },
5385
5385
  {
5386
- tag: [Z.lineComment, Z.blockComment],
5386
+ tag: [X.lineComment, X.blockComment],
5387
5387
  color: N.palette.text.disabled,
5388
5388
  fontStyle: "italic"
5389
5389
  },
5390
5390
  {
5391
- tag: Z.operator,
5391
+ tag: X.operator,
5392
5392
  color: N.palette.text.secondary
5393
5393
  },
5394
5394
  {
5395
- tag: [Z.function(Z.variableName), Z.function(Z.name)],
5395
+ tag: [X.function(X.variableName), X.function(X.name)],
5396
5396
  color: N.palette.secondary.main
5397
5397
  },
5398
5398
  {
5399
- tag: Z.typeName,
5399
+ tag: X.typeName,
5400
5400
  color: N.palette.info.main
5401
5401
  },
5402
5402
  {
5403
- tag: Z.invalid,
5403
+ tag: X.invalid,
5404
5404
  color: N.palette.error.main,
5405
5405
  textDecoration: "underline wavy"
5406
5406
  }
@@ -5492,25 +5492,25 @@ function Nr({ value: e, onChange: t, placeholder: n, disabled: i = !1, readonly:
5492
5492
  run: (e) => (O.current?.(e.state.doc.toString()), !0)
5493
5493
  }]), y = [
5494
5494
  h,
5495
- pe(m),
5496
- yt({
5495
+ me(m),
5496
+ bt({
5497
5497
  dialect: Mr[c],
5498
5498
  schema: g
5499
5499
  }),
5500
- ce(),
5501
- bt(),
5500
+ le(),
5501
+ xt(),
5502
5502
  v,
5503
5503
  te.of([
5504
- ...se,
5505
- ...le,
5506
- ...xt
5504
+ ...ce,
5505
+ ...ue,
5506
+ ...St
5507
5507
  ]),
5508
5508
  j.current.of(J.editable.of(!i && !a)),
5509
- M.current.of(X.readOnly.of(a)),
5509
+ M.current.of(ae.readOnly.of(a)),
5510
5510
  Y(),
5511
5511
  ...o ? [ne(), ee()] : [],
5512
5512
  ...n ? [re(n)] : [],
5513
- ...F ? [me(), he(_, { delay: 600 })] : [],
5513
+ ...F ? [he(), ge(_, { delay: 600 })] : [],
5514
5514
  J.updateListener.of((e) => {
5515
5515
  e.docChanged && C.current?.(e.state.doc.toString());
5516
5516
  let t = e.state.selection.main.head, n = e.state.doc.lineAt(t);
@@ -5525,7 +5525,7 @@ function Nr({ value: e, onChange: t, placeholder: n, disabled: i = !1, readonly:
5525
5525
  }
5526
5526
  })
5527
5527
  ], b = new J({
5528
- state: X.create({
5528
+ state: ae.create({
5529
5529
  doc: t,
5530
5530
  extensions: y
5531
5531
  }),
@@ -5552,7 +5552,7 @@ function Nr({ value: e, onChange: t, placeholder: n, disabled: i = !1, readonly:
5552
5552
  insert: e ?? ""
5553
5553
  } });
5554
5554
  }, [e]), r(() => {
5555
- S.current?.dispatch({ effects: [j.current.reconfigure(J.editable.of(!i && !a)), M.current.reconfigure(X.readOnly.of(a))] });
5555
+ S.current?.dispatch({ effects: [j.current.reconfigure(J.editable.of(!i && !a)), M.current.reconfigure(ae.readOnly.of(a))] });
5556
5556
  }, [i, a]), /* @__PURE__ */ K(u, {
5557
5557
  ref: x,
5558
5558
  sx: {
@@ -5597,18 +5597,18 @@ function Fr({ editorView: e, toolbarConfig: t, translation: n, dialect: r, disab
5597
5597
  }
5598
5598
  function p() {
5599
5599
  let t = e;
5600
- t && (de(t), t.focus());
5600
+ t && (fe(t), t.focus());
5601
5601
  }
5602
5602
  function m() {
5603
5603
  let t = e;
5604
- t && (ue(t), t.focus());
5604
+ t && (de(t), t.focus());
5605
5605
  }
5606
5606
  function h() {
5607
5607
  let t = e;
5608
5608
  if (!t) return;
5609
5609
  let n = t.state.doc.toString();
5610
5610
  try {
5611
- let e = Ct(n, { language: Pr[r] });
5611
+ let e = wt(n, { language: Pr[r] });
5612
5612
  t.dispatch({ changes: {
5613
5613
  from: 0,
5614
5614
  to: t.state.doc.length,
@@ -5641,7 +5641,7 @@ function Fr({ editorView: e, toolbarConfig: t, translation: n, dialect: r, disab
5641
5641
  },
5642
5642
  children: /* @__PURE__ */ K(Q, {
5643
5643
  label: n.format,
5644
- icon: /* @__PURE__ */ K(Se, { fontSize: "small" }),
5644
+ icon: /* @__PURE__ */ K(Ce, { fontSize: "small" }),
5645
5645
  onClick: h,
5646
5646
  disabled: l
5647
5647
  })
@@ -5658,15 +5658,15 @@ function Fr({ editorView: e, toolbarConfig: t, translation: n, dialect: r, disab
5658
5658
  },
5659
5659
  children: [t.showCopy && /* @__PURE__ */ K(Q, {
5660
5660
  label: o ? n.copySuccess : n.copy,
5661
- icon: o ? /* @__PURE__ */ K(ve, {
5661
+ icon: o ? /* @__PURE__ */ K(ye, {
5662
5662
  fontSize: "small",
5663
5663
  color: "success"
5664
- }) : /* @__PURE__ */ K(_e, { fontSize: "small" }),
5664
+ }) : /* @__PURE__ */ K(ve, { fontSize: "small" }),
5665
5665
  onClick: d,
5666
5666
  disabled: l
5667
5667
  }), t.showClear && /* @__PURE__ */ K(Q, {
5668
5668
  label: n.clear,
5669
- icon: /* @__PURE__ */ K(ye, { fontSize: "small" }),
5669
+ icon: /* @__PURE__ */ K(be, { fontSize: "small" }),
5670
5670
  onClick: f,
5671
5671
  disabled: l
5672
5672
  })]
@@ -5683,12 +5683,12 @@ function Fr({ editorView: e, toolbarConfig: t, translation: n, dialect: r, disab
5683
5683
  },
5684
5684
  children: [/* @__PURE__ */ K(Q, {
5685
5685
  label: n.undo,
5686
- icon: /* @__PURE__ */ K(be, { fontSize: "small" }),
5686
+ icon: /* @__PURE__ */ K(xe, { fontSize: "small" }),
5687
5687
  onClick: p,
5688
5688
  disabled: l
5689
5689
  }), /* @__PURE__ */ K(Q, {
5690
5690
  label: n.redo,
5691
- icon: /* @__PURE__ */ K(xe, { fontSize: "small" }),
5691
+ icon: /* @__PURE__ */ K(Se, { fontSize: "small" }),
5692
5692
  onClick: m,
5693
5693
  disabled: l
5694
5694
  })]
@@ -5699,7 +5699,7 @@ function Fr({ editorView: e, toolbarConfig: t, translation: n, dialect: r, disab
5699
5699
  sx: { mx: .5 }
5700
5700
  }), /* @__PURE__ */ K(Q, {
5701
5701
  label: n.execute,
5702
- icon: /* @__PURE__ */ K(St, { fontSize: "small" }),
5702
+ icon: /* @__PURE__ */ K(Ct, { fontSize: "small" }),
5703
5703
  onClick: g,
5704
5704
  disabled: l
5705
5705
  })] }),
@@ -5725,7 +5725,7 @@ function Ir({ helperText: e, error: t, showLineColumn: n, showErrorCount: r, dia
5725
5725
  alignItems: "center",
5726
5726
  gap: .5
5727
5727
  },
5728
- children: [/* @__PURE__ */ K(wt, { sx: {
5728
+ children: [/* @__PURE__ */ K(Tt, { sx: {
5729
5729
  fontSize: "0.875rem",
5730
5730
  color: "error.main"
5731
5731
  } }), /* @__PURE__ */ K(S, {
@@ -5893,12 +5893,12 @@ function Gr({ data: e, size: n = 500, showSegmentLabels: r = !0, innerRadius: i
5893
5893
  y.palette.success.main,
5894
5894
  y.palette.info.main
5895
5895
  ], D = d && d.length > 0 ? d : E, { root: O, ringThickness: k } = o(() => {
5896
- let t = Tt.hierarchy(e).sum((e) => e.value ?? 0);
5896
+ let t = Z.hierarchy(e).sum((e) => e.value ?? 0);
5897
5897
  l === "value" ? t.sort((e, t) => (t.value ?? 0) - (e.value ?? 0)) : t.sort((e, t) => String(e.data.name).localeCompare(String(t.data.name), void 0, {
5898
5898
  numeric: !0,
5899
5899
  sensitivity: "base"
5900
5900
  }));
5901
- let n = Tt.partition().size([Rr, T])(t), r = Tt.max(n.descendants(), (e) => e.depth) ?? 0, i = r > 0 ? T / r : T;
5901
+ let n = Z.partition().size([Rr, T])(t), r = Z.max(n.descendants(), (e) => e.depth) ?? 0, i = r > 0 ? T / r : T;
5902
5902
  return r > 0 && n.descendants().forEach((e) => {
5903
5903
  e.depth === 0 ? (e.y0 = 0, e.y1 = 0) : (e.y0 = (e.depth - 1) * i, e.y1 = e.depth * i);
5904
5904
  }), {
@@ -5911,11 +5911,11 @@ function Gr({ data: e, size: n = 500, showSegmentLabels: r = !0, innerRadius: i
5911
5911
  l
5912
5912
  ]), [A, j] = c(O), [M, N] = c(O);
5913
5913
  M !== O && (N(O), j(O));
5914
- let P = o(() => O.children?.map((e) => e.data.name) ?? [O.data.name], [O]), F = o(() => Tt.scaleOrdinal().domain(P).range(D), [D, P]), I = (e) => {
5914
+ let P = o(() => O.children?.map((e) => e.data.name) ?? [O.data.name], [O]), F = o(() => Z.scaleOrdinal().domain(P).range(D), [D, P]), I = (e) => {
5915
5915
  let t = e;
5916
5916
  for (; t.depth > 1;) t = t.parent;
5917
5917
  return F(t.data.name);
5918
- }, L = o(() => Tt.arc().startAngle((e) => e.x0).endAngle((e) => e.x1).padAngle((e) => Math.min((e.x1 - e.x0) / 2, .005)).padRadius(C / 2).innerRadius((e) => w + e.y0).outerRadius((e) => w + e.y1 - 1), [C, w]), z = t((e) => {
5918
+ }, L = o(() => Z.arc().startAngle((e) => e.x0).endAngle((e) => e.x1).padAngle((e) => Math.min((e.x1 - e.x0) / 2, .005)).padRadius(C / 2).innerRadius((e) => w + e.y0).outerRadius((e) => w + e.y1 - 1), [C, w]), z = t((e) => {
5919
5919
  let t = Rr / (A.x1 - A.x0), n = Math.max(0, Math.min(Rr, (e.x0 - A.x0) * t)), r = Math.max(0, Math.min(Rr, (e.x1 - A.x0) * t)), i = A.depth === 0 ? 0 : (A.depth - 1) * k;
5920
5920
  return {
5921
5921
  x0: n,
@@ -5999,7 +5999,7 @@ function Gr({ data: e, size: n = 500, showSegmentLabels: r = !0, innerRadius: i
5999
5999
  }
6000
6000
  }, ie = (e) => {
6001
6001
  v || (e.ctrlKey || e.metaKey) && (te(), J(A.parent ?? O));
6002
- }, X = (e) => {
6002
+ }, ae = (e) => {
6003
6003
  if (!v) {
6004
6004
  if (e.ctrlKey || e.metaKey) {
6005
6005
  te(), J(A.parent ?? O);
@@ -6007,13 +6007,13 @@ function Gr({ data: e, size: n = 500, showSegmentLabels: r = !0, innerRadius: i
6007
6007
  }
6008
6008
  p?.(G(A.parent ?? O), e);
6009
6009
  }
6010
- }, ae = {
6010
+ }, oe = {
6011
6011
  followCursor: !0,
6012
6012
  enterDelay: 50,
6013
6013
  enterNextDelay: 0,
6014
6014
  disableHoverListener: v,
6015
6015
  slotProps: { tooltip: { sx: { maxWidth: 260 } } }
6016
- }, oe = y.palette.text.primary, se = y.typography.fontFamily;
6016
+ }, se = y.palette.text.primary, ce = y.typography.fontFamily;
6017
6017
  return /* @__PURE__ */ K(u, {
6018
6018
  sx: {
6019
6019
  display: "inline-flex",
@@ -6026,7 +6026,7 @@ function Gr({ data: e, size: n = 500, showSegmentLabels: r = !0, innerRadius: i
6026
6026
  height: n,
6027
6027
  viewBox: x,
6028
6028
  style: {
6029
- fontFamily: se ?? "sans-serif",
6029
+ fontFamily: ce ?? "sans-serif",
6030
6030
  overflow: "visible"
6031
6031
  },
6032
6032
  role: "img",
@@ -6035,7 +6035,7 @@ function Gr({ data: e, size: n = 500, showSegmentLabels: r = !0, innerRadius: i
6035
6035
  ref: b,
6036
6036
  children: [
6037
6037
  w > 0 && /* @__PURE__ */ K(R, {
6038
- ...ae,
6038
+ ...oe,
6039
6039
  title: A.data.name,
6040
6040
  placement: "top",
6041
6041
  children: /* @__PURE__ */ K("circle", {
@@ -6044,14 +6044,14 @@ function Gr({ data: e, size: n = 500, showSegmentLabels: r = !0, innerRadius: i
6044
6044
  r: w,
6045
6045
  fill: "transparent",
6046
6046
  pointerEvents: v ? "none" : "auto",
6047
- onClick: X,
6047
+ onClick: ae,
6048
6048
  style: { cursor: v ? "not-allowed" : "pointer" }
6049
6049
  })
6050
6050
  }),
6051
6051
  /* @__PURE__ */ K("g", { children: ne.map((e, t) => {
6052
6052
  let n = z(e), r = V(n), i = !!e.children;
6053
6053
  return /* @__PURE__ */ K(R, {
6054
- ...ae,
6054
+ ...oe,
6055
6055
  placement: "top",
6056
6056
  title: r ? /* @__PURE__ */ K(Wr, {
6057
6057
  node: e,
@@ -6077,7 +6077,7 @@ function Gr({ data: e, size: n = 500, showSegmentLabels: r = !0, innerRadius: i
6077
6077
  r && /* @__PURE__ */ K("g", {
6078
6078
  pointerEvents: "none",
6079
6079
  textAnchor: "middle",
6080
- fill: oe,
6080
+ fill: se,
6081
6081
  children: ne.map((e, t) => {
6082
6082
  if (!W(e)) return null;
6083
6083
  let n = z(e);
@@ -6092,14 +6092,14 @@ function Gr({ data: e, size: n = 500, showSegmentLabels: r = !0, innerRadius: i
6092
6092
  })
6093
6093
  }),
6094
6094
  f && /* @__PURE__ */ K(R, {
6095
- ...ae,
6095
+ ...oe,
6096
6096
  placement: "top",
6097
6097
  title: "",
6098
6098
  children: /* @__PURE__ */ K("g", {
6099
6099
  textAnchor: "middle",
6100
- fill: oe,
6100
+ fill: se,
6101
6101
  pointerEvents: v ? "none" : "auto",
6102
- onClick: X,
6102
+ onClick: ae,
6103
6103
  style: { cursor: A !== O && !v ? "pointer" : "default" },
6104
6104
  children: /* @__PURE__ */ K("text", {
6105
6105
  fontSize: 13,
@@ -6119,4 +6119,264 @@ Gr.displayName = "SunburstChart";
6119
6119
  //#region src/components/sunburst-chart/SunburstChart.types.ts
6120
6120
  var Kr = { noData: "No data" };
6121
6121
  //#endregion
6122
- export { jt as ConfirmDialogProvider, er as DEFAULT_CHECK_COLORS, Et as DEFAULT_CONFIRM_DIALOG_TRANSLATION, un as DEFAULT_GANTT_TRANSLATIONS, Nt as DEFAULT_JSON_EDITOR_TOOLBAR_CONFIG, Pt as DEFAULT_JSON_EDITOR_TRANSLATION, $n as DEFAULT_METER_COLORS, Qn as DEFAULT_PASSWORD_TRANSLATIONS, pr as DEFAULT_RICH_TEXT_EDITOR_TOOLBAR_CONFIG, mr as DEFAULT_RICH_TEXT_EDITOR_TRANSLATION, Ar as DEFAULT_SQL_EDITOR_TOOLBAR_CONFIG, jr as DEFAULT_SQL_EDITOR_TRANSLATION, Kr as DEFAULT_SUNBURST_CHART_TRANSLATION, cr as DEFAULT_TAG_SELECTION_TRANSLATION, Jn as GanttChart, Bt as JsonEditor, nr as PasswordStrengthMeter, kr as RichTextEditor, Lr as SqlEditor, Gr as SunburstChart, fr as TagSelection, Mt as useConfirm, $ as useGanttChartStore, Un as useGanttTheme, Vn as useGanttTranslations, zn as useRawGanttChartStore };
6122
+ //#region src/components/chord-chart/ChordChart.tsx
6123
+ function qr(e, t = 0, n = ".", r = ",") {
6124
+ if (!isFinite(e)) return String(e);
6125
+ let [i, a] = e.toFixed(Math.max(0, t)).split("."), o = i.replace(/\B(?=(\d{3})+(?!\d))/g, r);
6126
+ return a ? `${o}${n}${a}` : o;
6127
+ }
6128
+ function Jr({ name: e, valueOut: t, valueIn: n, fmt: r }) {
6129
+ return /* @__PURE__ */ q(u, {
6130
+ sx: { py: .25 },
6131
+ children: [
6132
+ /* @__PURE__ */ K(z, {
6133
+ variant: "caption",
6134
+ sx: {
6135
+ fontWeight: "bold",
6136
+ display: "block"
6137
+ },
6138
+ children: e
6139
+ }),
6140
+ /* @__PURE__ */ q(z, {
6141
+ variant: "caption",
6142
+ sx: {
6143
+ display: "block",
6144
+ opacity: .85
6145
+ },
6146
+ children: [r(t), " outgoing →"]
6147
+ }),
6148
+ /* @__PURE__ */ q(z, {
6149
+ variant: "caption",
6150
+ sx: {
6151
+ display: "block",
6152
+ opacity: .85
6153
+ },
6154
+ children: [r(n), " incoming ←"]
6155
+ })
6156
+ ]
6157
+ });
6158
+ }
6159
+ function Yr({ sourceName: e, targetName: t, sourceValue: n, targetValue: r, directed: i, fmt: a }) {
6160
+ return /* @__PURE__ */ q(u, {
6161
+ sx: { py: .25 },
6162
+ children: [
6163
+ /* @__PURE__ */ q(z, {
6164
+ variant: "caption",
6165
+ sx: {
6166
+ fontWeight: "bold",
6167
+ display: "block"
6168
+ },
6169
+ children: [
6170
+ e,
6171
+ " → ",
6172
+ t
6173
+ ]
6174
+ }),
6175
+ /* @__PURE__ */ K(z, {
6176
+ variant: "caption",
6177
+ sx: {
6178
+ display: "block",
6179
+ opacity: .85
6180
+ },
6181
+ children: a(n)
6182
+ }),
6183
+ i && r > 0 && r !== n && /* @__PURE__ */ q(z, {
6184
+ variant: "caption",
6185
+ sx: {
6186
+ display: "block",
6187
+ opacity: .7,
6188
+ mt: .25
6189
+ },
6190
+ children: [
6191
+ t,
6192
+ " → ",
6193
+ e,
6194
+ ": ",
6195
+ a(r)
6196
+ ]
6197
+ })
6198
+ ]
6199
+ });
6200
+ }
6201
+ function Xr({ data: e, size: n = 500, innerRadius: r, ringThickness: i = 20, padAngle: l, ribbonPadAngle: d, sortSubgroups: f = "descending", sortChords: p = "descending", chartColors: m, showGroupLabels: h = !0, labelOffset: g = 8, ribbonOpacity: _ = .75, ribbonBlendMode: v = "multiply", directed: y = !0, valueDecimalCount: b = 0, valueDecimalSeparator: x = ".", valueThousandsSeparator: S = ",", onGroupClick: C, onChordClick: w, disabled: T = !1 }) {
6202
+ let E = B(), D = [
6203
+ E.palette.primary.main,
6204
+ E.palette.secondary.main,
6205
+ E.palette.error.main,
6206
+ E.palette.warning.main,
6207
+ E.palette.success.main,
6208
+ E.palette.info.main
6209
+ ], O = m && m.length > 0 ? m : D, k = r ?? Math.min(n, n) * .5 - 90, A = Math.max(10, k), j = A + Math.max(1, i), M = l ?? 10 / A, N = d ?? 1 / A, P = t((e) => qr(e, b, x, S), [
6210
+ b,
6211
+ x,
6212
+ S
6213
+ ]), { names: F, matrix: I } = o(() => {
6214
+ let t = Z.sort(Z.union(e.map((e) => e.source), e.map((e) => e.target))), n = new Map(t.map((e, t) => [e, t])), r = Array.from({ length: t.length }, () => Array(t.length).fill(0));
6215
+ for (let { source: t, target: i, value: a } of e) {
6216
+ let e = n.get(t), o = n.get(i);
6217
+ e == null || o == null || (r[e][o] += a);
6218
+ }
6219
+ return {
6220
+ names: t,
6221
+ matrix: r
6222
+ };
6223
+ }, [e]), L = o(() => {
6224
+ let e = (y ? Z.chordDirected() : Z.chord()).padAngle(M);
6225
+ return f === "ascending" && (e = e.sortSubgroups(Z.ascending)), f === "descending" && (e = e.sortSubgroups(Z.descending)), p === "ascending" && (e = e.sortChords(Z.ascending)), p === "descending" && (e = e.sortChords(Z.descending)), e(I);
6226
+ }, [
6227
+ I,
6228
+ M,
6229
+ y,
6230
+ f,
6231
+ p
6232
+ ]), z = o(() => Z.arc().innerRadius(A).outerRadius(j), [A, j]), V = o(() => (y ? Z.ribbonArrow() : Z.ribbon()).radius(A - 1).padAngle(N), [
6233
+ A,
6234
+ N,
6235
+ y
6236
+ ]), H = t((e) => V({
6237
+ source: {
6238
+ startAngle: e.source.startAngle,
6239
+ endAngle: e.source.endAngle,
6240
+ radius: A - 1
6241
+ },
6242
+ target: {
6243
+ startAngle: e.target.startAngle,
6244
+ endAngle: e.target.endAngle,
6245
+ radius: A - 1
6246
+ }
6247
+ }) ?? "", [V, A]), U = o(() => Z.scaleOrdinal().domain(Z.range(F.length)).range(O.length >= F.length ? O : [...Array(Math.ceil(F.length / O.length))].flatMap(() => O).slice(0, F.length)), [O, F.length]), W = s(null), [G, J] = c(`-${n / 2} -${n / 2} ${n} ${n}`);
6248
+ a(() => {
6249
+ let e = W.current;
6250
+ if (!e) return;
6251
+ let t = requestAnimationFrame(() => {
6252
+ try {
6253
+ let t = e.getBBox();
6254
+ J(`${t.x - 8} ${t.y - 8} ${t.width + 16} ${t.height + 16}`);
6255
+ } catch {
6256
+ J(`-${n / 2} -${n / 2} ${n} ${n}`);
6257
+ }
6258
+ });
6259
+ return () => cancelAnimationFrame(t);
6260
+ }, [
6261
+ n,
6262
+ A,
6263
+ j,
6264
+ F.length,
6265
+ L
6266
+ ]);
6267
+ let [Y, ee] = c(null), te = t((e) => ({
6268
+ name: F[e.index],
6269
+ index: e.index,
6270
+ valueOut: Z.sum(L, (t) => t.source.index === e.index ? t.source.value : 0),
6271
+ valueIn: Z.sum(L, (t) => t.target.index === e.index ? t.source.value : 0)
6272
+ }), [F, L]), ne = t((e) => ({
6273
+ source: {
6274
+ name: F[e.source.index],
6275
+ index: e.source.index,
6276
+ value: e.source.value
6277
+ },
6278
+ target: {
6279
+ name: F[e.target.index],
6280
+ index: e.target.index,
6281
+ value: e.target.value
6282
+ }
6283
+ }), [F]), re = (e) => {
6284
+ let t = (e.startAngle + e.endAngle) / 2, n = t * 180 / Math.PI - 90, r = t > Math.PI ? " rotate(180)" : "";
6285
+ return `rotate(${n}) translate(${j + g})${r}`;
6286
+ }, ie = (e) => (e.startAngle + e.endAngle) / 2 > Math.PI ? "end" : "start", ae = {
6287
+ followCursor: !0,
6288
+ enterDelay: 50,
6289
+ enterNextDelay: 0,
6290
+ disableHoverListener: T,
6291
+ slotProps: { tooltip: { sx: { maxWidth: 240 } } }
6292
+ }, oe = E.palette.text.primary, se = E.typography.fontFamily;
6293
+ return /* @__PURE__ */ K(u, {
6294
+ sx: {
6295
+ display: "inline-flex",
6296
+ opacity: T ? .5 : 1,
6297
+ cursor: T ? "not-allowed" : "default",
6298
+ userSelect: "none"
6299
+ },
6300
+ children: /* @__PURE__ */ K("svg", {
6301
+ width: n,
6302
+ height: n,
6303
+ viewBox: G,
6304
+ style: {
6305
+ fontFamily: se ?? "sans-serif",
6306
+ overflow: "visible"
6307
+ },
6308
+ role: "img",
6309
+ "aria-label": "Chord chart",
6310
+ children: /* @__PURE__ */ q("g", {
6311
+ ref: W,
6312
+ children: [/* @__PURE__ */ K("g", { children: L.groups.map((e) => {
6313
+ let t = te(e), n = Y === e.index, r = Y !== null && !n;
6314
+ return /* @__PURE__ */ K(R, {
6315
+ ...ae,
6316
+ title: /* @__PURE__ */ K(Jr, {
6317
+ name: t.name,
6318
+ valueOut: t.valueOut,
6319
+ valueIn: t.valueIn,
6320
+ fmt: P
6321
+ }),
6322
+ children: /* @__PURE__ */ q("g", {
6323
+ style: { cursor: T ? "not-allowed" : "pointer" },
6324
+ onMouseEnter: () => !T && ee(e.index),
6325
+ onMouseLeave: () => ee(null),
6326
+ onClick: (e) => !T && C?.(t, e),
6327
+ children: [/* @__PURE__ */ K("path", {
6328
+ d: z(e) || "",
6329
+ fill: U(e.index),
6330
+ stroke: E.palette.divider,
6331
+ opacity: r ? .35 : 1,
6332
+ style: { transition: "opacity 0.15s" }
6333
+ }), h && /* @__PURE__ */ K("text", {
6334
+ dy: "0.35em",
6335
+ fontSize: 11,
6336
+ fill: oe,
6337
+ transform: re(e),
6338
+ textAnchor: ie(e),
6339
+ pointerEvents: "none",
6340
+ children: F[e.index]
6341
+ })]
6342
+ })
6343
+ }, `grp-tt-${e.index}`);
6344
+ }) }), /* @__PURE__ */ K("g", {
6345
+ fillOpacity: _,
6346
+ style: { mixBlendMode: v },
6347
+ children: L.map((e, t) => {
6348
+ let n = ne(e), r = Y === null || e.source.index === Y || e.target.index === Y;
6349
+ return /* @__PURE__ */ K(R, {
6350
+ ...ae,
6351
+ title: /* @__PURE__ */ K(Yr, {
6352
+ sourceName: n.source.name,
6353
+ targetName: n.target.name,
6354
+ sourceValue: n.source.value,
6355
+ targetValue: n.target.value,
6356
+ directed: y,
6357
+ fmt: P
6358
+ }),
6359
+ children: /* @__PURE__ */ K("path", {
6360
+ d: H(e),
6361
+ fill: U(e.target.index),
6362
+ stroke: "none",
6363
+ opacity: r ? 1 : .12,
6364
+ style: {
6365
+ cursor: T ? "not-allowed" : "pointer",
6366
+ transition: "opacity 0.15s"
6367
+ },
6368
+ onClick: (e) => !T && w?.(n, e)
6369
+ })
6370
+ }, `chord-tt-${t}`);
6371
+ })
6372
+ })]
6373
+ })
6374
+ })
6375
+ });
6376
+ }
6377
+ Xr.displayName = "ChordChart";
6378
+ //#endregion
6379
+ //#region src/components/chord-chart/ChordChart.types.ts
6380
+ var Zr = { noData: "No data" };
6381
+ //#endregion
6382
+ export { Xr as ChordChart, jt as ConfirmDialogProvider, er as DEFAULT_CHECK_COLORS, Zr as DEFAULT_CHORD_CHART_TRANSLATION, Et as DEFAULT_CONFIRM_DIALOG_TRANSLATION, un as DEFAULT_GANTT_TRANSLATIONS, Nt as DEFAULT_JSON_EDITOR_TOOLBAR_CONFIG, Pt as DEFAULT_JSON_EDITOR_TRANSLATION, $n as DEFAULT_METER_COLORS, Qn as DEFAULT_PASSWORD_TRANSLATIONS, pr as DEFAULT_RICH_TEXT_EDITOR_TOOLBAR_CONFIG, mr as DEFAULT_RICH_TEXT_EDITOR_TRANSLATION, Ar as DEFAULT_SQL_EDITOR_TOOLBAR_CONFIG, jr as DEFAULT_SQL_EDITOR_TRANSLATION, Kr as DEFAULT_SUNBURST_CHART_TRANSLATION, cr as DEFAULT_TAG_SELECTION_TRANSLATION, Jn as GanttChart, Bt as JsonEditor, nr as PasswordStrengthMeter, kr as RichTextEditor, Lr as SqlEditor, Gr as SunburstChart, fr as TagSelection, Mt as useConfirm, $ as useGanttChartStore, Un as useGanttTheme, Vn as useGanttTranslations, zn as useRawGanttChartStore };