@devtable/dashboard 13.24.0 → 13.25.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.
@@ -3449,6 +3449,7 @@ export declare function usePanelFullScreen(view: ViewMetaInstance, panelID: stri
3449
3449
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
3450
3450
  readonly data: TPanelData;
3451
3451
  readonly variableStrings: Record<string, React.ReactNode>;
3452
+ readonly variableAggValueMap: import('../../../../model').VariableAggValueMap;
3452
3453
  readonly variableValueMap: import('../../../../model').VariableValueMap;
3453
3454
  readonly variableStyleMap: import('../../../../model').VariableStyleMap;
3454
3455
  readonly dataLoading: boolean;
@@ -6786,6 +6787,7 @@ export declare function usePanelFullScreen(view: ViewMetaInstance, panelID: stri
6786
6787
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
6787
6788
  readonly data: TPanelData;
6788
6789
  readonly variableStrings: Record<string, React.ReactNode>;
6790
+ readonly variableAggValueMap: import('../../../../model').VariableAggValueMap;
6789
6791
  readonly variableValueMap: import('../../../../model').VariableValueMap;
6790
6792
  readonly variableStyleMap: import('../../../../model').VariableStyleMap;
6791
6793
  readonly dataLoading: boolean;
@@ -3465,6 +3465,7 @@ export declare const tokens: {
3465
3465
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
3466
3466
  readonly data: TPanelData;
3467
3467
  readonly variableStrings: Record<string, import('./react').ReactNode>;
3468
+ readonly variableAggValueMap: import("../..").VariableAggValueMap;
3468
3469
  readonly variableValueMap: import("../..").VariableValueMap;
3469
3470
  readonly variableStyleMap: import("../..").VariableStyleMap;
3470
3471
  readonly dataLoading: boolean;
@@ -3909,10 +3910,7 @@ export declare const tokens: {
3909
3910
  dep_query_ids: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
3910
3911
  }[];
3911
3912
  layouts: any;
3912
- }; /**
3913
- * All available tokens of services, it also serves as an overview of the
3914
- * plugin system
3915
- */
3913
+ };
3916
3914
  downloadSchema(): void;
3917
3915
  } & {
3918
3916
  readonly realDataFieldOptions: {
@@ -6843,6 +6841,7 @@ export declare const tokens: {
6843
6841
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
6844
6842
  readonly data: TPanelData;
6845
6843
  readonly variableStrings: Record<string, import('./react').ReactNode>;
6844
+ readonly variableAggValueMap: import("../..").VariableAggValueMap;
6846
6845
  readonly variableValueMap: import("../..").VariableValueMap;
6847
6846
  readonly variableStyleMap: import("../..").VariableStyleMap;
6848
6847
  readonly dataLoading: boolean;
@@ -7287,10 +7286,7 @@ export declare const tokens: {
7287
7286
  dep_query_ids: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
7288
7287
  }[];
7289
7288
  layouts: any;
7290
- }; /**
7291
- * All available tokens of services, it also serves as an overview of the
7292
- * plugin system
7293
- */
7289
+ };
7294
7290
  downloadSchema(): void;
7295
7291
  } & {
7296
7292
  readonly realDataFieldOptions: {
@@ -1,12 +1,12 @@
1
- import { RichTextEditorProps } from '@mantine/tiptap';
2
1
  import { Sx } from '@mantine/core';
3
- import { TDashboardState, VariableValueMap } from '../../../model';
2
+ import { RichTextEditorProps } from '@mantine/tiptap';
3
+ import { TDashboardState, VariableAggValueMap } from '../../../model';
4
4
  interface IReadonlyRichText {
5
5
  value: string;
6
6
  styles?: RichTextEditorProps['styles'];
7
7
  sx?: Sx;
8
8
  dashboardState?: TDashboardState;
9
- varaiables?: VariableValueMap;
9
+ variableAggValueMap?: VariableAggValueMap;
10
10
  }
11
- export declare const ReadonlyRichText: ({ value, styles, sx, dashboardState, varaiables, }: IReadonlyRichText) => import('./react/jsx-runtime').JSX.Element;
11
+ export declare const ReadonlyRichText: ({ value, styles, sx, dashboardState, variableAggValueMap, }: IReadonlyRichText) => import('./react/jsx-runtime').JSX.Element;
12
12
  export {};
@@ -3454,6 +3454,7 @@ export declare const useRenderPanelContext: () => {
3454
3454
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
3455
3455
  readonly data: TPanelData;
3456
3456
  readonly variableStrings: Record<string, React.ReactNode>;
3457
+ readonly variableAggValueMap: import('../model').VariableAggValueMap;
3457
3458
  readonly variableValueMap: import('../model').VariableValueMap;
3458
3459
  readonly variableStyleMap: import('../model').VariableStyleMap;
3459
3460
  readonly dataLoading: boolean;
@@ -6791,6 +6792,7 @@ export declare const useRenderPanelContext: () => {
6791
6792
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
6792
6793
  readonly data: TPanelData;
6793
6794
  readonly variableStrings: Record<string, React.ReactNode>;
6795
+ readonly variableAggValueMap: import('../model').VariableAggValueMap;
6794
6796
  readonly variableValueMap: import('../model').VariableValueMap;
6795
6797
  readonly variableStyleMap: import('../model').VariableStyleMap;
6796
6798
  readonly dataLoading: boolean;
@@ -10689,6 +10691,7 @@ export declare const useEditPanelContext: () => {
10689
10691
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
10690
10692
  readonly data: TPanelData;
10691
10693
  readonly variableStrings: Record<string, React.ReactNode>;
10694
+ readonly variableAggValueMap: import('../model').VariableAggValueMap;
10692
10695
  readonly variableValueMap: import('../model').VariableValueMap;
10693
10696
  readonly variableStyleMap: import('../model').VariableStyleMap;
10694
10697
  readonly dataLoading: boolean;
@@ -14064,6 +14067,7 @@ export declare const useEditPanelContext: () => {
14064
14067
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
14065
14068
  readonly data: TPanelData;
14066
14069
  readonly variableStrings: Record<string, React.ReactNode>;
14070
+ readonly variableAggValueMap: import('../model').VariableAggValueMap;
14067
14071
  readonly variableValueMap: import('../model').VariableValueMap;
14068
14072
  readonly variableStyleMap: import('../model').VariableStyleMap;
14069
14073
  readonly dataLoading: boolean;
@@ -2891,6 +2891,7 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
2891
2891
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
2892
2892
  readonly data: TPanelData;
2893
2893
  readonly variableStrings: Record<string, import('./react').ReactNode>;
2894
+ readonly variableAggValueMap: import('../../../model').VariableAggValueMap;
2894
2895
  readonly variableValueMap: import('../../../model').VariableValueMap;
2895
2896
  readonly variableStyleMap: import('../../../model').VariableStyleMap;
2896
2897
  readonly dataLoading: boolean;
@@ -2,7 +2,7 @@ var ug = Object.defineProperty;
2
2
  var hg = (e, t, n) => t in e ? ug(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var G = (e, t, n) => (hg(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import R, { forwardRef as re, useState as U, useEffect as W, useCallback as Ee, useMemo as I, createElement as aa, useContext as Pn, useRef as ti, useLayoutEffect as pg, createContext as Cu, memo as mg } from "react";
5
- import { TextInput as E, NativeSelect as Iu, Stack as S, Group as b, Button as M, Text as w, Box as A, Overlay as Sr, Modal as Le, Tooltip as he, ActionIcon as Z, HoverCard as Pe, Select as N, Checkbox as te, Divider as P, NumberInput as ne, Switch as Xe, Table as Ge, MultiSelect as Yr, Paper as fg, Code as Jc, Tabs as _, LoadingOverlay as kr, Alert as Vi, ColorSwatch as ho, createStyles as Ni, Popover as En, CloseButton as yr, Center as Jn, Collapse as qi, useMantineTheme as Tu, CheckIcon as xg, MANTINE_SIZES as gg, SimpleGrid as Br, SegmentedControl as zu, Anchor as As, ColorInput as Cr, Menu as ee, UnstyledButton as Du, Flex as Nt, Badge as Yn, Textarea as Mu, Mark as Eu, Slider as bg, Affix as yg, Header as vg, List as Tt, FileInput as _g, ThemeIcon as Ba, Navbar as Tn, JsonInput as Lu, Pagination as $u, Drawer as jg, Accordion as fs, Radio as Zc, Skeleton as ed, NavLink as po, AppShell as Au } from "@mantine/core";
5
+ import { TextInput as E, Stack as S, Group as b, Button as M, Text as w, Box as A, Overlay as Sr, Modal as Le, Tooltip as he, ActionIcon as Z, NativeSelect as Iu, HoverCard as Pe, Select as N, Checkbox as te, Divider as P, NumberInput as ne, Switch as Xe, Table as Ge, MultiSelect as Yr, Paper as fg, Code as Jc, Tabs as _, LoadingOverlay as kr, Alert as Vi, ColorSwatch as ho, createStyles as Ni, Popover as En, CloseButton as yr, Center as Jn, Collapse as qi, useMantineTheme as Tu, CheckIcon as xg, MANTINE_SIZES as gg, SimpleGrid as Br, SegmentedControl as zu, Anchor as As, ColorInput as Cr, Menu as ee, UnstyledButton as Du, Flex as Nt, Badge as Yn, Textarea as Mu, Mark as Eu, Slider as bg, Affix as yg, Header as vg, List as Tt, FileInput as _g, ThemeIcon as Ba, Navbar as Tn, JsonInput as Lu, Pagination as $u, Drawer as jg, Accordion as fs, Radio as Zc, Skeleton as ed, NavLink as po, AppShell as Au } from "@mantine/core";
6
6
  import { useModals as vn, ModalsProvider as Ru } from "@mantine/modals";
7
7
  import { useBoolean as ut, useCreation as Zt, useAsyncEffect as Bi, useRequest as vr, useLatest as td, usePrevious as wg, useWhyDidYouUpdate as Pu } from "ahooks";
8
8
  import { toJS as On, observable as Ou, runInAction as Ti, reaction as Dt, makeAutoObservable as Wi } from "mobx";
@@ -20,7 +20,7 @@ import * as Og from "popmotion";
20
20
  import { interpolate as Ir } from "popmotion";
21
21
  import fn from "axios";
22
22
  import { useDisclosure as Zn, useClipboard as Fg, randomId as jr, useElementSize as Li, useResizeObserver as Vg, useInputState as Hu } from "@mantine/hooks";
23
- import { IconTextSize as Jo, IconPlayerSkipBack as Qu, IconRecycle as Gi, IconDeviceFloppy as Qe, IconMathFunction as Fn, IconInfoCircle as Tr, IconBorderAll as Ng, IconTrash as gn, IconPlus as tn, IconGripHorizontal as qg, IconChevronUp as Bg, IconChevronDown as Wg, IconSelector as Gg, IconGripVertical as Hg, IconPlaylistAdd as mo, IconArrowDown as Qg, IconArrowUp as Ug, IconAlertCircle as fo, IconArrowBarToRight as Kg, IconCalendar as Yg, IconMinus as Xg, IconChevronsUp as Jg, IconChevronsDown as Zg, IconDatabase as Hi, IconCode as wr, IconCamera as oa, IconShare3 as eb, IconDownload as tb, IconArrowsLeftRight as nb, IconVariable as Uu, IconCodeDots as rb, IconFilter as Ku, IconCopy as ib, IconBoxMultiple as Yu, IconCaretDown as sb, IconAlertTriangle as Xu, IconArrowLeft as ab, IconDevices as ob, IconSettings as Qi, IconPointFilled as Zo, IconFileImport as nd, IconCircleDashed as lb, IconCircleDot as cb, IconCircleOff as db, IconAdjustments as ub, IconLink as hb, IconArrowCurveRight as xo, IconLine as pb, IconX as Ju, IconEye as Zu, IconTable as mb, IconColumns as fb, IconVectorTriangle as xb, IconVariablePlus as gb, IconHierarchy as bb, IconDiscountCheckFilled as yb } from "@tabler/icons-react";
23
+ import { IconPlayerSkipBack as Qu, IconRecycle as Gi, IconDeviceFloppy as Qe, IconMathFunction as Fn, IconTextSize as Jo, IconInfoCircle as Tr, IconBorderAll as Ng, IconTrash as gn, IconPlus as tn, IconGripHorizontal as qg, IconChevronUp as Bg, IconChevronDown as Wg, IconSelector as Gg, IconGripVertical as Hg, IconPlaylistAdd as mo, IconArrowDown as Qg, IconArrowUp as Ug, IconAlertCircle as fo, IconArrowBarToRight as Kg, IconCalendar as Yg, IconMinus as Xg, IconChevronsUp as Jg, IconChevronsDown as Zg, IconDatabase as Hi, IconCode as wr, IconCamera as oa, IconShare3 as eb, IconDownload as tb, IconArrowsLeftRight as nb, IconVariable as Uu, IconCodeDots as rb, IconFilter as Ku, IconCopy as ib, IconBoxMultiple as Yu, IconCaretDown as sb, IconAlertTriangle as Xu, IconArrowLeft as ab, IconDevices as ob, IconSettings as Qi, IconPointFilled as Zo, IconFileImport as nd, IconCircleDashed as lb, IconCircleDot as cb, IconCircleOff as db, IconAdjustments as ub, IconLink as hb, IconArrowCurveRight as xo, IconLine as pb, IconX as Ju, IconEye as Zu, IconTable as mb, IconColumns as fb, IconVectorTriangle as xb, IconVariablePlus as gb, IconHierarchy as bb, IconDiscountCheckFilled as yb } from "@tabler/icons-react";
24
24
  import { useTranslation as y, Trans as la, initReactI18next as vb, I18nextProvider as _b } from "react-i18next";
25
25
  import { RichTextEditor as ie, Link as eh, useRichTextEditorContext as jb } from "@mantine/tiptap";
26
26
  import { Color as th } from "@tiptap/extension-color";
@@ -28,12 +28,12 @@ import nh from "@tiptap/extension-highlight";
28
28
  import rh from "@tiptap/extension-placeholder";
29
29
  import ih from "@tiptap/extension-subscript";
30
30
  import sh from "@tiptap/extension-superscript";
31
- import ah from "@tiptap/extension-text-align";
32
- import oh from "@tiptap/extension-text-style";
33
- import lh from "@tiptap/extension-table";
34
- import ch from "@tiptap/extension-table-cell";
35
- import dh from "@tiptap/extension-table-header";
36
- import uh from "@tiptap/extension-table-row";
31
+ import ah from "@tiptap/extension-table";
32
+ import oh from "@tiptap/extension-table-cell";
33
+ import lh from "@tiptap/extension-table-header";
34
+ import ch from "@tiptap/extension-table-row";
35
+ import dh from "@tiptap/extension-text-align";
36
+ import uh from "@tiptap/extension-text-style";
37
37
  import hh from "@tiptap/extension-underline";
38
38
  import { useEditor as ph } from "@tiptap/react";
39
39
  import mh from "@tiptap/starter-kit";
@@ -4412,65 +4412,9 @@ class Bs {
4412
4412
  return !1;
4413
4413
  }
4414
4414
  }
4415
- const Uh = yn.create({
4416
- name: "fontSize",
4417
- addOptions() {
4418
- return {
4419
- types: ["textStyle"]
4420
- };
4421
- },
4422
- addGlobalAttributes() {
4423
- return [{
4424
- types: this.options.types,
4425
- attributes: {
4426
- fontSize: {
4427
- default: null,
4428
- parseHTML: (e) => e.style.fontSize.replace(/['"]+/g, ""),
4429
- renderHTML: (e) => e.fontSize ? {
4430
- style: `font-size: ${e.fontSize}; line-height: 1.2; overflow: auto`
4431
- } : {}
4432
- }
4433
- }
4434
- }];
4435
- },
4436
- addCommands() {
4437
- return {
4438
- setFontSize: (e) => ({
4439
- chain: t
4440
- }) => t().setMark("textStyle", {
4441
- fontSize: e
4442
- }).run(),
4443
- unsetFontSize: () => ({
4444
- chain: e
4445
- }) => e().setMark("textStyle", {
4446
- fontSize: null
4447
- }).removeEmptyTextStyle().run()
4448
- };
4449
- }
4450
- }), vj = ["8", "10", "12", "14", "16", "18", "20", "24", "30", "36", "48", "60", "72"].map((e) => `${e}px`), _j = [{
4451
- label: "auto",
4452
- value: ""
4453
- }].concat(vj.map((e) => ({
4454
- label: e,
4455
- value: e
4456
- }))), jj = {
4457
- input: {
4458
- height: "26px",
4459
- minHeight: "26px",
4460
- lineHeight: "26px",
4461
- borderColor: "#ced4da !important"
4462
- }
4463
- }, wj = ({
4464
- editor: e
4465
- }) => {
4466
- const t = e.getAttributes("textStyle").fontSize;
4467
- return /* @__PURE__ */ r.jsx(ie.ControlsGroup, { children: /* @__PURE__ */ r.jsx(Iu, { size: "xs", icon: /* @__PURE__ */ r.jsx(Jo, { stroke: 1.5, size: 16 }), data: _j, styles: jj, value: t || "", onChange: (n) => {
4468
- const i = n.currentTarget.value;
4469
- i ? e.chain().focus().setFontSize(i).run() : e.chain().focus().unsetFontSize().run();
4470
- } }) });
4471
- }, So = "function color({ variables }, { filters, context }, utils) {", Kh = "}", Sj = [So, ' return "red";', Kh], kj = Sj.join(`
4415
+ const So = "function color({ variables }, { filters, context }, utils) {", Uh = "}", vj = [So, ' return "red";', Uh], _j = vj.join(`
4472
4416
  `);
4473
- function Cj(e) {
4417
+ function jj(e) {
4474
4418
  const t = e.split(`
4475
4419
  `);
4476
4420
  if (t.length === 2)
@@ -4482,13 +4426,13 @@ function Cj(e) {
4482
4426
  allowMultiline: !0
4483
4427
  }] : [];
4484
4428
  }
4485
- const Ij = (e) => !e || e.startsWith(So) ? e : [So, e, Kh].join(`
4486
- `), Yh = (e) => {
4429
+ const wj = (e) => !e || e.startsWith(So) ? e : [So, e, Uh].join(`
4430
+ `), Kh = (e) => {
4487
4431
  const n = "abcdefghijklmnopqrstuvwxyz", s = `1234567890${n}${n.toUpperCase()}`.split(""), a = new Uint8Array(e);
4488
4432
  return crypto.getRandomValues(a), a.reduce((o, l) => `${o}${s[l & 61]}`, "");
4489
4433
  };
4490
- function Tj(e, t, n) {
4491
- const i = {}, s = (o) => new Function(`return ${Ij(o)}`)()({
4434
+ function Sj(e, t, n) {
4435
+ const i = {}, s = (o) => new Function(`return ${wj(o)}`)()({
4492
4436
  variables: n
4493
4437
  }, t, nn);
4494
4438
  return e.querySelectorAll("dynamic-color").forEach((o) => {
@@ -4498,12 +4442,12 @@ function Tj(e, t, n) {
4498
4442
  });
4499
4443
  }), i;
4500
4444
  }
4501
- const vi = "data-value", zj = vi, Xh = "dynamicColor", Jh = Bs.create({
4502
- name: Xh,
4445
+ const vi = "data-value", kj = vi, Yh = "dynamicColor", Xh = Bs.create({
4446
+ name: Yh,
4503
4447
  addAttributes() {
4504
4448
  return {
4505
4449
  id: {
4506
- default: Yh(6),
4450
+ default: Kh(6),
4507
4451
  parseHTML: (e) => e.getAttribute("id")
4508
4452
  },
4509
4453
  [vi]: {
@@ -4535,7 +4479,7 @@ const vi = "data-value", zj = vi, Xh = "dynamicColor", Jh = Bs.create({
4535
4479
  }) => e.unsetMark(this.name)
4536
4480
  };
4537
4481
  }
4538
- }), Dj = ({
4482
+ }), Cj = ({
4539
4483
  value: e,
4540
4484
  onChange: t,
4541
4485
  onMount: n
@@ -4616,7 +4560,7 @@ const vi = "data-value", zj = vi, Xh = "dynamicColor", Jh = Bs.create({
4616
4560
  flexGrow: 1
4617
4561
  }, children: [
4618
4562
  f && /* @__PURE__ */ r.jsx(Sr, { center: !0, color: "#fff", opacity: 0.5, children: /* @__PURE__ */ r.jsx(M, { color: "blue", radius: "xl", onClick: h, children: o("common.actions.init_with_default") }) }),
4619
- /* @__PURE__ */ r.jsx(Dj, { value: l, onChange: c, onMount: p })
4563
+ /* @__PURE__ */ r.jsx(Cj, { value: l, onChange: c, onMount: p })
4620
4564
  ] })
4621
4565
  ] });
4622
4566
  }), hl = re(({
@@ -4646,7 +4590,7 @@ const vi = "data-value", zj = vi, Xh = "dynamicColor", Jh = Bs.create({
4646
4590
  }),
4647
4591
  !l && /* @__PURE__ */ r.jsx(M, { onClick: m, ...o, children: a })
4648
4592
  ] });
4649
- }), Mj = ({
4593
+ }), Ij = ({
4650
4594
  onClick: e
4651
4595
  }) => {
4652
4596
  const {
@@ -4659,41 +4603,97 @@ const vi = "data-value", zj = vi, Xh = "dynamicColor", Jh = Bs.create({
4659
4603
  borderColor: "#ced4da !important",
4660
4604
  color: "rgb(190, 75, 219)"
4661
4605
  }, onClick: e, children: /* @__PURE__ */ r.jsx(Fn, { stroke: 2, size: 16 }) }) });
4662
- }, Ej = ({
4606
+ }, Tj = ({
4663
4607
  editor: e
4664
4608
  }) => {
4665
4609
  const {
4666
4610
  t
4667
- } = y(), n = e.getAttributes(Xh)[zj] ?? "";
4611
+ } = y(), n = e.getAttributes(Yh)[kj] ?? "";
4668
4612
  return /* @__PURE__ */ r.jsx(hl, { title: t("rich_text.dynamic_color.edit"), label: "", triggerLabel: "", value: n, onChange: (i) => {
4669
4613
  i ? e.chain().focus().setDynamicColor(i).run() : e.chain().focus().unsetDynamicColor().run();
4670
- }, defaultValue: kj, renderTriggerButton: Mj, restrictions: Cj(n), zIndex: 340 });
4614
+ }, defaultValue: _j, renderTriggerButton: Ij, restrictions: jj(n), zIndex: 340 });
4615
+ }, Jh = yn.create({
4616
+ name: "fontSize",
4617
+ addOptions() {
4618
+ return {
4619
+ types: ["textStyle"]
4620
+ };
4621
+ },
4622
+ addGlobalAttributes() {
4623
+ return [{
4624
+ types: this.options.types,
4625
+ attributes: {
4626
+ fontSize: {
4627
+ default: null,
4628
+ parseHTML: (e) => e.style.fontSize.replace(/['"]+/g, ""),
4629
+ renderHTML: (e) => e.fontSize ? {
4630
+ style: `font-size: ${e.fontSize}; line-height: 1.2; overflow: auto`
4631
+ } : {}
4632
+ }
4633
+ }
4634
+ }];
4635
+ },
4636
+ addCommands() {
4637
+ return {
4638
+ setFontSize: (e) => ({
4639
+ chain: t
4640
+ }) => t().setMark("textStyle", {
4641
+ fontSize: e
4642
+ }).run(),
4643
+ unsetFontSize: () => ({
4644
+ chain: e
4645
+ }) => e().setMark("textStyle", {
4646
+ fontSize: null
4647
+ }).removeEmptyTextStyle().run()
4648
+ };
4649
+ }
4650
+ }), zj = ["8", "10", "12", "14", "16", "18", "20", "24", "30", "36", "48", "60", "72"].map((e) => `${e}px`), Dj = [{
4651
+ label: "auto",
4652
+ value: ""
4653
+ }].concat(zj.map((e) => ({
4654
+ label: e,
4655
+ value: e
4656
+ }))), Mj = {
4657
+ input: {
4658
+ height: "26px",
4659
+ minHeight: "26px",
4660
+ lineHeight: "26px",
4661
+ borderColor: "#ced4da !important"
4662
+ }
4663
+ }, Ej = ({
4664
+ editor: e
4665
+ }) => {
4666
+ const t = e.getAttributes("textStyle").fontSize;
4667
+ return /* @__PURE__ */ r.jsx(ie.ControlsGroup, { children: /* @__PURE__ */ r.jsx(Iu, { size: "xs", icon: /* @__PURE__ */ r.jsx(Jo, { stroke: 1.5, size: 16 }), data: Dj, styles: Mj, value: t || "", onChange: (n) => {
4668
+ const i = n.currentTarget.value;
4669
+ i ? e.chain().focus().setFontSize(i).run() : e.chain().focus().unsetFontSize().run();
4670
+ } }) });
4671
4671
  }, Xi = ({
4672
4672
  value: e,
4673
4673
  styles: t = {},
4674
4674
  sx: n = {},
4675
4675
  dashboardState: i = ko(),
4676
- varaiables: s = {}
4676
+ variableAggValueMap: s = {}
4677
4677
  }) => {
4678
4678
  const a = ph({
4679
- extensions: [mh, hh, eh, sh, ih, nh, lh.configure({
4679
+ extensions: [mh, hh, eh, sh, ih, nh, ah.configure({
4680
4680
  resizable: !1,
4681
4681
  // https://github.com/ueberdosis/tiptap/issues/2041
4682
4682
  HTMLAttributes: {
4683
4683
  class: "rich-text-table-render"
4684
4684
  }
4685
- }), uh, dh, ch, ah.configure({
4685
+ }), ch, lh, oh, dh.configure({
4686
4686
  types: ["heading", "paragraph"]
4687
4687
  }), rh.configure({
4688
4688
  placeholder: "This is placeholder"
4689
- }), oh, th, Uh, Jh],
4689
+ }), uh, th, Jh, Xh],
4690
4690
  content: e,
4691
4691
  editable: !1
4692
4692
  });
4693
4693
  W(() => {
4694
4694
  a == null || a.commands.setContent(e);
4695
4695
  }, [e, a]);
4696
- const o = I(() => new DOMParser().parseFromString(e, "text/html"), [e]), l = I(() => Tj(o, i, s), [o, i, s]), c = I(() => C.defaultsDeep({}, {
4696
+ const o = I(() => new DOMParser().parseFromString(e, "text/html"), [e]), l = I(() => Sj(o, i, s), [o, i, s]), c = I(() => C.defaultsDeep({}, {
4697
4697
  content: {
4698
4698
  ...sl,
4699
4699
  ...l
@@ -4788,17 +4788,17 @@ const fa = re(({
4788
4788
  onSubmit: a
4789
4789
  }, o) => {
4790
4790
  const [l, c] = U(e), d = ph({
4791
- extensions: [mh, hh, eh, sh, ih, nh, lh.configure({
4791
+ extensions: [mh, hh, eh, sh, ih, nh, ah.configure({
4792
4792
  resizable: !1,
4793
4793
  // https://github.com/ueberdosis/tiptap/issues/2041
4794
4794
  HTMLAttributes: {
4795
4795
  class: "rich-text-table-render"
4796
4796
  }
4797
- }), uh, dh, ch, ah.configure({
4797
+ }), ch, lh, oh, dh.configure({
4798
4798
  types: ["heading", "paragraph"]
4799
4799
  }), rh.configure({
4800
4800
  placeholder: "This is placeholder"
4801
- }), oh, th, Uh, Jh],
4801
+ }), uh, th, Jh, Xh],
4802
4802
  content: l,
4803
4803
  onUpdate: ({
4804
4804
  editor: m
@@ -4836,7 +4836,7 @@ const fa = re(({
4836
4836
  /* @__PURE__ */ r.jsx(ie.ColorPicker, { colors: ["#25262b", "#868e96", "#fa5252", "#e64980", "#be4bdb", "#7950f2", "#4c6ef5", "#228be6", "#15aabf", "#12b886", "#40c057", "#82c91e", "#fab005", "#fd7e14"], popoverProps: {
4837
4837
  zIndex: 320
4838
4838
  } }),
4839
- /* @__PURE__ */ r.jsx(Ej, { editor: d })
4839
+ /* @__PURE__ */ r.jsx(Tj, { editor: d })
4840
4840
  ] }),
4841
4841
  /* @__PURE__ */ r.jsxs(ie.ControlsGroup, { children: [
4842
4842
  /* @__PURE__ */ r.jsx(ie.Bold, {}),
@@ -4871,7 +4871,7 @@ const fa = re(({
4871
4871
  /* @__PURE__ */ r.jsx(ie.AlignRight, {})
4872
4872
  ] }),
4873
4873
  /* @__PURE__ */ r.jsx(ie.ControlsGroup, { children: /* @__PURE__ */ r.jsx($j, {}) }),
4874
- /* @__PURE__ */ r.jsx(wj, { editor: d })
4874
+ /* @__PURE__ */ r.jsx(Ej, { editor: d })
4875
4875
  ] }),
4876
4876
  /* @__PURE__ */ r.jsx(ie.Content, {})
4877
4877
  ] })
@@ -4911,7 +4911,7 @@ function ep(e, t) {
4911
4911
  } = a, c = Object.entries(l).map(([p, m]) => `${p}:${m}`).join(";"), d = o.color;
4912
4912
  if (d.type !== "continuous")
4913
4913
  return `<span style="${c}">{{${s}}}</span>`;
4914
- const u = Yh(6), h = `try {
4914
+ const u = Kh(6), h = `try {
4915
4915
  return utils.popmotion.interpolate(${JSON.stringify(d.valueRange)}, ${JSON.stringify(d.colorRange)})(variables["${s}"]);
4916
4916
  } catch (error) {
4917
4917
  console.error(error);
@@ -5555,7 +5555,7 @@ class xl {
5555
5555
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
5556
5556
  }
5557
5557
  }
5558
- const dp = "13.24.0", pw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5558
+ const dp = "13.25.0", pw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5559
5559
  __proto__: null,
5560
5560
  version: dp
5561
5561
  }, Symbol.toStringTag, { value: "Module" }));
@@ -18908,7 +18908,7 @@ const DD = {
18908
18908
  content: {
18909
18909
  padding: 0
18910
18910
  }
18911
- }, dashboardState: t.dashboardState, varaiables: n.variableValueMap }) : null;
18911
+ }, dashboardState: t.dashboardState, variableAggValueMap: n.variableAggValueMap }) : null;
18912
18912
  });
18913
18913
  function ED({
18914
18914
  context: e
@@ -20644,19 +20644,19 @@ const YM = D(({
20644
20644
  width: d,
20645
20645
  height: u
20646
20646
  } = e.viewport, h = I(() => {
20647
- const f = je({}, a, Bo);
20648
- return f.content ? sp(f.content, c, s.payloadForViz, l) : "";
20649
- }, [a, c, s.payloadForViz]), p = o.variableValueMap, m = Ee(() => {
20650
- i.forEach((f) => {
20651
- n.runInteraction(f.id, {
20652
- variables: p
20647
+ const m = je({}, a, Bo);
20648
+ return m.content ? sp(m.content, c, s.payloadForViz, l) : "";
20649
+ }, [a, c, s.payloadForViz]), p = Ee(() => {
20650
+ i.forEach((m) => {
20651
+ n.runInteraction(m.id, {
20652
+ variables: o.variableValueMap
20653
20653
  });
20654
20654
  });
20655
- }, [p, i, n]);
20655
+ }, [o.variableValueMap, i, n]);
20656
20656
  return /* @__PURE__ */ r.jsx(Nt, { className: "viz-stats", sx: {
20657
20657
  width: d,
20658
20658
  height: u
20659
- }, align: UM[a.vertical_align], direction: "row", children: /* @__PURE__ */ r.jsx(A, { className: "viz-stats--clickable-wrapper", sx: KM(i.length), onClick: m, children: /* @__PURE__ */ r.jsx(Xi, { value: h, styles: {
20659
+ }, align: UM[a.vertical_align], direction: "row", children: /* @__PURE__ */ r.jsx(A, { className: "viz-stats--clickable-wrapper", sx: KM(i.length), onClick: p, children: /* @__PURE__ */ r.jsx(Xi, { value: h, styles: {
20660
20660
  root: {
20661
20661
  border: "none",
20662
20662
  maxWidth: d,
@@ -20670,7 +20670,7 @@ const YM = D(({
20670
20670
  padding: 0
20671
20671
  }
20672
20672
  }
20673
- }, dashboardState: s.dashboardState, varaiables: p }) }) });
20673
+ }, dashboardState: s.dashboardState, variableAggValueMap: o.variableAggValueMap }) }) });
20674
20674
  });
20675
20675
  function XM({
20676
20676
  conf: e,
@@ -29044,12 +29044,13 @@ const lx = JR.views((e) => ({
29044
29044
  get variableStrings() {
29045
29045
  return np(e.variables, this.data);
29046
29046
  },
29047
- get variableValueMap() {
29047
+ get variableAggValueMap() {
29048
29048
  const t = {}, n = this.data;
29049
- return e.variables.reduce((i, s) => {
29050
- const a = wn(s, n);
29051
- return i[s.name] = Mt(s, a), i;
29052
- }, t), t;
29049
+ return e.variables.reduce((i, s) => (i[s.name] = wn(s, n), i), t), t;
29050
+ },
29051
+ get variableValueMap() {
29052
+ const t = {}, n = this.variableAggValueMap;
29053
+ return e.variables.reduce((i, s) => (i[s.name] = Mt(s, n[s.name]), i), t), t;
29053
29054
  },
29054
29055
  get variableStyleMap() {
29055
29056
  const t = this.variableValueMap, n = {};