@devtable/dashboard 10.4.0 → 10.5.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.
@@ -20,7 +20,7 @@ import { types as b, getParent as rt, getRoot as Ae, cast as en, addDisposer as
20
20
  import { arrayToTree as Bu } from "performant-array-to-tree";
21
21
  import qu from "jszip";
22
22
  import { saveAs as qo } from "file-saver";
23
- import { IconVariable as pl, IconCodeDots as Wu, IconFilter as fl, IconCopy as ju, IconDatabase as Kr, IconBoxMultiple as ml, IconInfoCircle as Bn, IconPlus as on, IconTextSize as gl, IconDeviceFloppy as Sn, IconBorderAll as Yu, IconTrash as Pn, IconArrowDown as Gu, IconArrowUp as Hu, IconArrowsLeftRight as Qu, IconMenu2 as Uu, IconDownload as Ku, IconCode as Xu, IconCaretDown as Ju, IconRecycle as bl, IconAlertTriangle as yl, IconArrowLeft as Zu, IconPlaylistAdd as eh, IconCircleDashed as th, IconCircleDot as nh, IconCircleOff as rh, IconAdjustments as ih, IconLink as oh, IconSettings as ah, IconLine as sh, IconArrowCurveRight as as, IconX as xl, IconEye as vl, IconTable as lh, IconColumns as ch, IconPlayerSkipBack as dh, IconAlertCircle as ss, IconVariablePlus as uh } from "@tabler/icons";
23
+ import { IconVariable as pl, IconCodeDots as Wu, IconFilter as fl, IconCopy as ju, IconDatabase as Kr, IconBoxMultiple as ml, IconInfoCircle as Bn, IconPlus as on, IconTextSize as gl, IconDeviceFloppy as Sn, IconBorderAll as Yu, IconTrash as Pn, IconArrowDown as Gu, IconArrowUp as Hu, IconArrowsLeftRight as Qu, IconMenu2 as Uu, IconDownload as Ku, IconCode as Xu, IconCaretDown as Ju, IconRecycle as bl, IconAlertTriangle as yl, IconArrowLeft as Zu, IconPlaylistAdd as eh, IconCircleDashed as th, IconCircleDot as nh, IconCircleOff as rh, IconAdjustments as ih, IconLink as oh, IconSettings as ah, IconLine as sh, IconArrowCurveRight as as, IconX as xl, IconEye as vl, IconTable as lh, IconColumns as ch, IconPlayerSkipBack as dh, IconAlertCircle as ss, IconVariablePlus as uh } from "@tabler/icons-react";
24
24
  import { useClipboard as hh, randomId as vn, useElementSize as lr, useInputState as wl, useDisclosure as _l } from "@mantine/hooks";
25
25
  import { flexRender as Vr, createColumnHelper as Cl, useReactTable as Sl, getCoreRowModel as kl, getSortedRowModel as ph } from "@tanstack/react-table";
26
26
  import { useVirtual as fh } from "react-virtual";
@@ -57,7 +57,7 @@ import Wl from "@tiptap/starter-kit";
57
57
  import "prosemirror-keymap";
58
58
  import { createParagraphNear as Lh, deleteSelection as Ah, exitCode as Eh, joinUp as Rh, joinDown as Oh, joinBackward as Fh, joinForward as Ph, lift as Vh, liftEmptyBlock as Nh, newlineInCode as Bh, selectNodeBackward as qh, selectNodeForward as Wh, selectParentNode as jh, selectTextblockEnd as Yh, selectTextblockStart as Gh, setBlockType as cs, wrapIn as Hh } from "prosemirror-commands";
59
59
  import { liftListItem as Qh, sinkListItem as Uh, wrapInList as Kh } from "prosemirror-schema-list";
60
- import { DateRangePicker as Xh } from "@mantine/dates";
60
+ import { DatePickerInput as Xh } from "@mantine/dates";
61
61
  import Jh, { Option as Zh } from "rc-select";
62
62
  import ep, { SHOW_PARENT as tp } from "rc-tree-select";
63
63
  import jl, { WidthProvider as Yl } from "react-grid-layout";
@@ -3024,7 +3024,7 @@ class Xo {
3024
3024
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
3025
3025
  }
3026
3026
  }
3027
- const fc = "10.4.0", bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3027
+ const fc = "10.5.0", bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3028
3028
  __proto__: null,
3029
3029
  version: fc
3030
3030
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3782,7 +3782,7 @@ const Ff = D((t) => {
3782
3782
  await c.configOperation(a, l);
3783
3783
  }, [a, c]), Af(c) ? /* @__PURE__ */ u(H, { children: [
3784
3784
  /* @__PURE__ */ i(Ef, { model: c, onClick: n }),
3785
- /* @__PURE__ */ i($e, { size: 600, opened: e, onClose: r, title: "Operation Settings", closeButtonLabel: "close", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
3785
+ /* @__PURE__ */ i($e, { size: 600, opened: e, onClose: r, title: "Operation Settings", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
3786
3786
  /* @__PURE__ */ i(Of, { model: c }),
3787
3787
  /* @__PURE__ */ u(g, { defaultValue: "settings", children: [
3788
3788
  /* @__PURE__ */ u(g.List, { children: [
@@ -3861,7 +3861,7 @@ const Bf = D(({
3861
3861
  setFalse: r
3862
3862
  }] = at(!1), o = t.model;
3863
3863
  return /* @__PURE__ */ u(H, { children: [
3864
- /* @__PURE__ */ i($e, { opened: e, onClose: r, title: "Setup Trigger", closeButtonLabel: "close setup", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
3864
+ /* @__PURE__ */ i($e, { opened: e, onClose: r, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
3865
3865
  /* @__PURE__ */ i(qf, { model: o }),
3866
3866
  /* @__PURE__ */ i(Wf, { model: o }),
3867
3867
  /* @__PURE__ */ i(xc, { title: "Payload", variables: o.triggerSchema.payload })
@@ -16104,7 +16104,7 @@ const Rw = ({
16104
16104
  /* @__PURE__ */ i(E, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
16105
16105
  /* @__PURE__ */ i(Rw, { value: a.func_content, onChange: d }),
16106
16106
  /* @__PURE__ */ u(w, { position: "apart", children: [
16107
- /* @__PURE__ */ i(M, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ i(Ot, { size: 20 }), children: "Rest" }),
16107
+ /* @__PURE__ */ i(M, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ i(Ot, { size: 20 }), children: "Reset" }),
16108
16108
  /* @__PURE__ */ u(w, { position: "right", children: [
16109
16109
  /* @__PURE__ */ i(M, { onClick: c, variant: "subtle", children: "Cancel" }),
16110
16110
  /* @__PURE__ */ i(M, { onClick: l, children: "OK" })
@@ -23076,6 +23076,7 @@ const Wk = {
23076
23076
  return /* @__PURE__ */ i(
23077
23077
  Xh,
23078
23078
  {
23079
+ type: "range",
23079
23080
  label: t,
23080
23081
  value: o,
23081
23082
  onChange: a,
@@ -24160,7 +24161,7 @@ const xT = z.forwardRef(({
24160
24161
  view: e
24161
24162
  }) => {
24162
24163
  const n = e.config;
24163
- return /* @__PURE__ */ i($e, { size: n.width, overflow: "inside", opened: !0, onClose: T.noop, withCloseButton: !1, title: n.custom_modal_title.value, trapFocus: !0, onDragStart: (r) => {
24164
+ return /* @__PURE__ */ i($e, { size: n.width, opened: !0, onClose: T.noop, withCloseButton: !1, title: n.custom_modal_title.value, trapFocus: !0, onDragStart: (r) => {
24164
24165
  r.stopPropagation();
24165
24166
  }, styles: {
24166
24167
  root: {
@@ -24171,13 +24172,15 @@ const xT = z.forwardRef(({
24171
24172
  // @ts-expect-error absolute !important
24172
24173
  position: "absolute !important"
24173
24174
  },
24174
- modal: {
24175
+ content: {
24175
24176
  border: "1px solid #efefef"
24176
24177
  },
24177
24178
  body: {
24178
24179
  maxHeight: "calc(100vh - 325px)"
24179
24180
  }
24180
- }, withinPortal: !1, transitionDuration: 0, children: t });
24181
+ }, withinPortal: !1, transitionProps: {
24182
+ duration: 0
24183
+ }, children: t });
24181
24184
  }), DT = ({
24182
24185
  variant: t,
24183
24186
  orientation: e
@@ -24332,17 +24335,19 @@ const RT = D(({
24332
24335
  view: e
24333
24336
  }) => {
24334
24337
  const n = ne(), r = e.config, o = n.views.visibleViewIDs.includes(e.id), a = () => n.views.rmVisibleViewID(e.id);
24335
- return /* @__PURE__ */ i($e, { size: r.width, centered: !0, overflow: "inside", opened: o, onClose: a, withCloseButton: !1, title: r.custom_modal_title.value, trapFocus: !0, onDragStart: (s) => {
24338
+ return /* @__PURE__ */ i($e, { size: r.width, centered: !0, opened: o, onClose: a, withCloseButton: !1, title: r.custom_modal_title.value, trapFocus: !0, onDragStart: (s) => {
24336
24339
  s.stopPropagation();
24337
24340
  }, styles: {
24338
- modal: {
24341
+ content: {
24339
24342
  border: "1px solid #efefef"
24340
24343
  },
24341
24344
  body: {
24342
24345
  maxHeight: r.height,
24343
24346
  overflow: "auto"
24344
24347
  }
24345
- }, transitionDuration: 0, children: t });
24348
+ }, transitionProps: {
24349
+ duration: 0
24350
+ }, children: t });
24346
24351
  }), FT = (t) => t.color ? {
24347
24352
  "&[data-active], &[data-active]:hover": {
24348
24353
  borderColor: t.color ? t.color : "..."
@@ -24903,7 +24908,6 @@ const hD = {
24903
24908
  $e,
24904
24909
  {
24905
24910
  size: "96vw",
24906
- overflow: "inside",
24907
24911
  opened: t,
24908
24912
  onClose: e,
24909
24913
  title: "Interactions",
@@ -24915,7 +24919,7 @@ const hD = {
24915
24919
  body: {
24916
24920
  height: "90vh"
24917
24921
  },
24918
- modal: {
24922
+ content: {
24919
24923
  transform: "none !important"
24920
24924
  }
24921
24925
  },
@@ -25030,13 +25034,13 @@ const bD = D(() => {
25030
25034
  }, children: [
25031
25035
  /* @__PURE__ */ i(Re, { label: "Filters", withinPortal: !0, children: /* @__PURE__ */ i(U, { variant: "default", radius: 0, size: "md", sx: {
25032
25036
  height: "30px"
25033
- }, onClick: r, children: /* @__PURE__ */ i(fl, { size: 20 }) }) }),
25037
+ }, onClick: r, children: /* @__PURE__ */ i(fl, { size: 18 }) }) }),
25034
25038
  /* @__PURE__ */ i(Re, { label: "Queries", withinPortal: !0, children: /* @__PURE__ */ i(U, { variant: "default", radius: 0, size: "md", sx: {
25035
25039
  height: "30px"
25036
- }, onClick: n, children: /* @__PURE__ */ i(Kr, { size: 20 }) }) }),
25040
+ }, onClick: n, children: /* @__PURE__ */ i(Kr, { size: 18 }) }) }),
25037
25041
  /* @__PURE__ */ i(Re, { label: "Interactions Viewer", withinPortal: !0, children: /* @__PURE__ */ i(U, { variant: "default", radius: 0, size: "md", sx: {
25038
25042
  height: "30px"
25039
- }, onClick: s, children: /* @__PURE__ */ i(oh, { size: 20 }) }) })
25043
+ }, onClick: s, children: /* @__PURE__ */ i(oh, { size: 18 }) }) })
25040
25044
  ] }),
25041
25045
  /* @__PURE__ */ i(fD, { opened: o, close: l })
25042
25046
  ] }),
@@ -25627,7 +25631,7 @@ const to = D(function({
25627
25631
  e.editor.setPath(["_QUERIES_", l]);
25628
25632
  };
25629
25633
  return /* @__PURE__ */ u(H, { children: [
25630
- /* @__PURE__ */ i(wu, { opened: o, onClose: () => a(!1), title: "Choose queries", padding: "xl", size: "xl", zIndex: 320, children: /* @__PURE__ */ i(ve.Group, { orientation: "vertical", value: [...r.queryIDs], onChange: r.setQueryIDs, children: n.queries.options.map((l) => /* @__PURE__ */ i(ve, { label: l.label, value: l.value }, l.value)) }) }),
25634
+ /* @__PURE__ */ i(wu, { opened: o, onClose: () => a(!1), title: "Choose queries", padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ i(ve.Group, { value: [...r.queryIDs], onChange: r.setQueryIDs, children: /* @__PURE__ */ i(S, { spacing: "lg", children: n.queries.options.map((l) => /* @__PURE__ */ i(ve, { label: l.label, value: l.value }, l.value)) }) }) }),
25631
25635
  /* @__PURE__ */ u(S, { spacing: 6, children: [
25632
25636
  /* @__PURE__ */ i(w, { position: "right", children: /* @__PURE__ */ i(M, { variant: "light", size: "sm", leftIcon: /* @__PURE__ */ i(sh, { size: 16 }), onClick: () => a(!0), children: "Click me to choose queries for this panel" }) }),
25633
25637
  r.queryIDs.length === 1 && /* @__PURE__ */ i(to, { id: r.queryIDs[0], moreActions: /* @__PURE__ */ i(Re, { label: "Open this query", children: /* @__PURE__ */ i(U, { variant: "subtle", color: "blue", onClick: () => s(r.queryIDs[0]), children: /* @__PURE__ */ i(as, { size: 16 }) }) }) }),
@@ -25939,7 +25943,7 @@ const iI = D(() => {
25939
25943
  };
25940
25944
  return /* @__PURE__ */ u(H, { children: [
25941
25945
  /* @__PURE__ */ i(M, { size: "xs", variant: "subtle", color: "blue", onClick: s, leftIcon: /* @__PURE__ */ i(ml, { size: 14 }), children: "Move into Another View" }),
25942
- /* @__PURE__ */ i($e, { opened: a, onClose: l, title: "Move panel into another view", zIndex: 320, overflow: "inside", children: /* @__PURE__ */ u(S, { sx: {
25946
+ /* @__PURE__ */ i($e, { opened: a, onClose: l, title: "Move panel into another view", zIndex: 320, children: /* @__PURE__ */ u(S, { sx: {
25943
25947
  maxHeight: "calc(100vh - 185px)",
25944
25948
  overflow: "hidden"
25945
25949
  }, children: [
@@ -26304,7 +26308,7 @@ const bI = D(({
26304
26308
  textAlign: "center"
26305
26309
  },
26306
26310
  input: {
26307
- "&.mantine-Input-withIcon": {
26311
+ "&[data-with-icon]": {
26308
26312
  paddingLeft: "50px"
26309
26313
  }
26310
26314
  }
@@ -26316,8 +26320,8 @@ const bI = D(({
26316
26320
  } = t;
26317
26321
  return /* @__PURE__ */ u(w, { pt: 10, px: 10, position: "apart", children: [
26318
26322
  /* @__PURE__ */ u(w, { position: "left", children: [
26319
- e.maxPage > 1 && /* @__PURE__ */ i(_u, { size: "sm", page: e.page, onChange: e.setPage, total: e.maxPage, withEdges: e.maxPage > 7, styles: {
26320
- item: {
26323
+ e.maxPage > 1 && /* @__PURE__ */ i(_u, { size: "sm", value: e.page, onChange: e.setPage, total: e.maxPage, withEdges: e.maxPage > 7, styles: {
26324
+ control: {
26321
26325
  height: "30px"
26322
26326
  }
26323
26327
  } }),
@@ -26404,8 +26408,9 @@ const bI = D(({
26404
26408
  },
26405
26409
  header: {
26406
26410
  marginBottom: 0,
26407
- padding: "0 20px 10px",
26408
- borderBottom: "1px solid #efefef"
26411
+ padding: "20px 20px 10px",
26412
+ borderBottom: "1px solid #efefef",
26413
+ gap: "20px"
26409
26414
  },
26410
26415
  title: {
26411
26416
  flexGrow: 1
@@ -26433,7 +26438,7 @@ const bI = D(({
26433
26438
  to: "red"
26434
26439
  }, children: t.type })
26435
26440
  ] })
26436
- ] }), zIndex: 320, size: "96vw", overflow: "inside", styles: kI, children: /* @__PURE__ */ i(V, { sx: {
26441
+ ] }), zIndex: 320, size: "96vw", styles: kI, children: /* @__PURE__ */ i(V, { sx: {
26437
26442
  height: "calc(100vh - 220px)"
26438
26443
  }, children: /* @__PURE__ */ i(SI, { dataSource: t }) }) }),
26439
26444
  /* @__PURE__ */ i(M, { variant: "subtle", onClick: () => r(!0), px: 16, styles: {
@@ -27351,8 +27356,10 @@ const dM = D(() => /* @__PURE__ */ i(S, { sx: {
27351
27356
  }
27352
27357
  }, _M = D(() => {
27353
27358
  const t = Le().editor;
27354
- return /* @__PURE__ */ i($e, { onClose: () => t.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: t.settings_open, fullScreen: !0, title: null, transitionDuration: 0, withCloseButton: !1, withinPortal: !0, zIndex: 300, styles: {
27355
- modal: {
27359
+ return /* @__PURE__ */ i($e, { onClose: () => t.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: t.settings_open, fullScreen: !0, title: null, transitionProps: {
27360
+ duration: 0
27361
+ }, withCloseButton: !1, withinPortal: !0, zIndex: 300, styles: {
27362
+ body: {
27356
27363
  padding: "0 !important"
27357
27364
  }
27358
27365
  }, children: /* @__PURE__ */ i(tl, { padding: 0, navbar: /* @__PURE__ */ i(vM, {}), styles: wM, children: /* @__PURE__ */ i(hM, {}) }) });