react-semaphor 0.1.60 → 0.1.62

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.
Files changed (53) hide show
  1. package/dist/chunks/axis-mapping-8ZVwlkl6.js +315 -0
  2. package/dist/chunks/axis-mapping-Cwa3KrDR.js +16 -0
  3. package/dist/chunks/bar-chart-settings-B_WyC-7g.js +52 -0
  4. package/dist/chunks/bar-chart-settings-CvorW7RD.js +1 -0
  5. package/dist/chunks/bubble-chart-settings-BPtESqYK.js +1 -0
  6. package/dist/chunks/bubble-chart-settings-CxFAlErV.js +50 -0
  7. package/dist/chunks/common-chart-settings-CvRrQf-H.js +1 -0
  8. package/dist/chunks/common-chart-settings-D3ww0Xtx.js +147 -0
  9. package/dist/chunks/custom-visual-settings-DXWyN2Dr.js +11 -0
  10. package/dist/chunks/custom-visual-settings-m5o8R5tL.js +243 -0
  11. package/dist/chunks/dashboard-plus-B8-ocT_Z.js +41 -0
  12. package/dist/chunks/dashboard-plus-DSUKhvcv.js +2941 -0
  13. package/dist/chunks/display-labels-BYsRReye.js +1 -0
  14. package/dist/chunks/display-labels-C_jsL0Jo.js +74 -0
  15. package/dist/chunks/editor-C7xQi9Ab.js +105 -0
  16. package/dist/chunks/editor-DqvyBUrl.js +8321 -0
  17. package/dist/chunks/filter-on-click-columns-6dRYhvgz.js +1 -0
  18. package/dist/chunks/filter-on-click-columns-BJUGTE6W.js +120 -0
  19. package/dist/chunks/frame-filters-D9sDN4Vm.js +1 -0
  20. package/dist/chunks/frame-filters-DFgqSoV2.js +75 -0
  21. package/dist/chunks/{index-BzapoQUW.js → index--MUeDITx.js} +28320 -25737
  22. package/dist/chunks/index-Bvtpj-_R.js +1080 -0
  23. package/dist/chunks/kpi-settings-BONvmfNr.js +1 -0
  24. package/dist/chunks/kpi-settings-CI-9fp4Z.js +286 -0
  25. package/dist/chunks/map-chart-settings-CSxZdu_g.js +1 -0
  26. package/dist/chunks/map-chart-settings-DQIN7Pn8.js +334 -0
  27. package/dist/chunks/pie-chart-settings-CN3JCLdP.js +86 -0
  28. package/dist/chunks/pie-chart-settings-CsErfZOL.js +1 -0
  29. package/dist/chunks/reusable-select-CQbD03nT.js +40 -0
  30. package/dist/chunks/reusable-select-CVRzPWkg.js +1 -0
  31. package/dist/chunks/stacked-chart-settings-BfqHFFqA.js +1 -0
  32. package/dist/chunks/stacked-chart-settings-poYotO6Q.js +90 -0
  33. package/dist/chunks/table-visual-settings-B46pdUra.js +46 -0
  34. package/dist/chunks/table-visual-settings-ZKWuNokZ.js +1 -0
  35. package/dist/chunks/tag-BrxBSbSe.js +20 -0
  36. package/dist/chunks/tag-D9G2kz2B.js +6 -0
  37. package/dist/chunks/use-assign-filter-5gplfsO1.js +83 -0
  38. package/dist/chunks/use-assign-filter-DzmBSsyO.js +1 -0
  39. package/dist/chunks/use-local-storage-state-CBh2HHB9.js +16 -0
  40. package/dist/chunks/use-local-storage-state-CL0JsTZM.js +1745 -0
  41. package/dist/chunks/use-plugin-query-DA6Yrp7P.js +12 -0
  42. package/dist/chunks/use-plugin-query-JdHNPYZS.js +1 -0
  43. package/dist/dashboard/index.cjs +1 -1
  44. package/dist/dashboard/index.js +1 -1
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.js +103 -103
  47. package/dist/style.css +1 -1
  48. package/dist/surfboard/index.cjs +1 -1
  49. package/dist/surfboard/index.js +1 -1
  50. package/package.json +1 -1
  51. package/dist/chunks/dashboard-plus-BEe61COU.js +0 -17362
  52. package/dist/chunks/dashboard-plus-Bi6F5Cid.js +0 -225
  53. package/dist/chunks/index-DvVwuOlu.js +0 -1045
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),l=require("./index-Bvtpj-_R.js");function x(){const c=l.useEditorStore(n=>n.card.type),o=l.useEditorStore(n=>n.isDevMode),t=l.useEditorStore(n=>n.card.preferences),{setCardPreferences:d}=l.useEditorStore(n=>n.actions);function i(n){var r;const s={datalabels:{display:n!=="none",align:n,anchor:n,clamp:!0}},a={...t,chartOptions:{...t==null?void 0:t.chartOptions,plugins:{...(r=t==null?void 0:t.chartOptions)==null?void 0:r.plugins,...s}}};d(a)}function u(){var n,s,a;return e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"font-medium",children:"Data Labels"}),e.jsxs(l.Select,{value:((a=(s=(n=t==null?void 0:t.chartOptions)==null?void 0:n.plugins)==null?void 0:s.datalabels)==null?void 0:a.anchor)||"none",onValueChange:i,defaultValue:"none",children:[e.jsx(l.SelectTrigger,{className:"h-8 w-full focus:ring-1 focus:ring-offset-0",children:e.jsx(l.SelectValue,{placeholder:"Select position"})}),e.jsx(l.SelectContent,{children:e.jsxs(l.SelectGroup,{children:[e.jsx(l.SelectLabel,{children:"Data Labels"}),e.jsx(l.SelectItem,{value:"none",children:"None"}),!["pyramid","funnel"].includes(c)&&e.jsx(l.SelectItem,{value:"start",children:"Start"}),e.jsx(l.SelectItem,{value:"center",children:"Center"}),!["pyramid","funnel"].includes(c)&&e.jsx(l.SelectItem,{value:"end",children:"End"})]})})]})]})}function h(){var n,s,a;return e.jsx("div",{children:e.jsxs(l.Select,{value:((a=(s=(n=t==null?void 0:t.chartOptions)==null?void 0:n.plugins)==null?void 0:s.datalabels)==null?void 0:a.anchor)||"none",onValueChange:i,defaultValue:"none",children:[e.jsx(l.SelectTrigger,{className:"h-8 w-full text-xs",children:e.jsx(l.SelectValue,{placeholder:"Select position"})}),e.jsx(l.SelectContent,{children:e.jsxs(l.SelectGroup,{children:[e.jsx(l.SelectItem,{className:"text-xs",value:"none",children:"None"}),!["pyramid","funnel"].includes(c)&&e.jsx(l.SelectItem,{className:"text-xs",value:"start",children:"Start"}),e.jsx(l.SelectItem,{className:"text-xs",value:"center",children:"Center"}),!["pyramid","funnel"].includes(c)&&e.jsx(l.SelectItem,{className:"text-xs",value:"end",children:"End"})]})})]})})}return e.jsx(e.Fragment,{children:o?u():h()})}exports.DisplayLabels=x;
@@ -0,0 +1,74 @@
1
+ import { jsx as e, Fragment as y, jsxs as c } from "react/jsx-runtime";
2
+ import { u as r, S as u, s as h, v as p, w as m, x as f, y as N, z as a } from "./index--MUeDITx.js";
3
+ function C() {
4
+ const i = r((n) => n.card.type), x = r((n) => n.isDevMode), l = r((n) => n.card.preferences), { setCardPreferences: v } = r((n) => n.actions);
5
+ function o(n) {
6
+ var d;
7
+ const t = {
8
+ datalabels: {
9
+ display: n !== "none",
10
+ align: n,
11
+ anchor: n,
12
+ clamp: !0
13
+ }
14
+ }, s = {
15
+ ...l,
16
+ chartOptions: {
17
+ ...l == null ? void 0 : l.chartOptions,
18
+ plugins: {
19
+ ...(d = l == null ? void 0 : l.chartOptions) == null ? void 0 : d.plugins,
20
+ ...t
21
+ }
22
+ }
23
+ };
24
+ v(s);
25
+ }
26
+ function g() {
27
+ var n, t, s;
28
+ return /* @__PURE__ */ c("div", { className: "space-y-2", children: [
29
+ /* @__PURE__ */ e("label", { className: "font-medium", children: "Data Labels" }),
30
+ /* @__PURE__ */ c(
31
+ u,
32
+ {
33
+ value: ((s = (t = (n = l == null ? void 0 : l.chartOptions) == null ? void 0 : n.plugins) == null ? void 0 : t.datalabels) == null ? void 0 : s.anchor) || "none",
34
+ onValueChange: o,
35
+ defaultValue: "none",
36
+ children: [
37
+ /* @__PURE__ */ e(h, { className: "h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(p, { placeholder: "Select position" }) }),
38
+ /* @__PURE__ */ e(m, { children: /* @__PURE__ */ c(f, { children: [
39
+ /* @__PURE__ */ e(N, { children: "Data Labels" }),
40
+ /* @__PURE__ */ e(a, { value: "none", children: "None" }),
41
+ !["pyramid", "funnel"].includes(i) && /* @__PURE__ */ e(a, { value: "start", children: "Start" }),
42
+ /* @__PURE__ */ e(a, { value: "center", children: "Center" }),
43
+ !["pyramid", "funnel"].includes(i) && /* @__PURE__ */ e(a, { value: "end", children: "End" })
44
+ ] }) })
45
+ ]
46
+ }
47
+ )
48
+ ] });
49
+ }
50
+ function S() {
51
+ var n, t, s;
52
+ return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ c(
53
+ u,
54
+ {
55
+ value: ((s = (t = (n = l == null ? void 0 : l.chartOptions) == null ? void 0 : n.plugins) == null ? void 0 : t.datalabels) == null ? void 0 : s.anchor) || "none",
56
+ onValueChange: o,
57
+ defaultValue: "none",
58
+ children: [
59
+ /* @__PURE__ */ e(h, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(p, { placeholder: "Select position" }) }),
60
+ /* @__PURE__ */ e(m, { children: /* @__PURE__ */ c(f, { children: [
61
+ /* @__PURE__ */ e(a, { className: "text-xs", value: "none", children: "None" }),
62
+ !["pyramid", "funnel"].includes(i) && /* @__PURE__ */ e(a, { className: "text-xs", value: "start", children: "Start" }),
63
+ /* @__PURE__ */ e(a, { className: "text-xs", value: "center", children: "Center" }),
64
+ !["pyramid", "funnel"].includes(i) && /* @__PURE__ */ e(a, { className: "text-xs", value: "end", children: "End" })
65
+ ] }) })
66
+ ]
67
+ }
68
+ ) });
69
+ }
70
+ return /* @__PURE__ */ e(y, { children: x ? g() : S() });
71
+ }
72
+ export {
73
+ C as D
74
+ };