react-semaphor 0.1.60 → 0.1.61
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/chunks/axis-mapping-8ZVwlkl6.js +315 -0
- package/dist/chunks/axis-mapping-Cwa3KrDR.js +16 -0
- package/dist/chunks/bar-chart-settings-B_WyC-7g.js +52 -0
- package/dist/chunks/bar-chart-settings-CvorW7RD.js +1 -0
- package/dist/chunks/bubble-chart-settings-BPtESqYK.js +1 -0
- package/dist/chunks/bubble-chart-settings-CxFAlErV.js +50 -0
- package/dist/chunks/common-chart-settings-CvRrQf-H.js +1 -0
- package/dist/chunks/common-chart-settings-D3ww0Xtx.js +147 -0
- package/dist/chunks/custom-visual-settings-DXWyN2Dr.js +11 -0
- package/dist/chunks/custom-visual-settings-m5o8R5tL.js +243 -0
- package/dist/chunks/dashboard-plus-B8-ocT_Z.js +41 -0
- package/dist/chunks/dashboard-plus-DSUKhvcv.js +2941 -0
- package/dist/chunks/display-labels-BYsRReye.js +1 -0
- package/dist/chunks/display-labels-C_jsL0Jo.js +74 -0
- package/dist/chunks/editor-C7xQi9Ab.js +105 -0
- package/dist/chunks/editor-DqvyBUrl.js +8321 -0
- package/dist/chunks/filter-on-click-columns-6dRYhvgz.js +1 -0
- package/dist/chunks/filter-on-click-columns-BJUGTE6W.js +120 -0
- package/dist/chunks/frame-filters-D9sDN4Vm.js +1 -0
- package/dist/chunks/frame-filters-DFgqSoV2.js +75 -0
- package/dist/chunks/{index-BzapoQUW.js → index--MUeDITx.js} +28320 -25737
- package/dist/chunks/index-Bvtpj-_R.js +1080 -0
- package/dist/chunks/kpi-settings-BONvmfNr.js +1 -0
- package/dist/chunks/kpi-settings-CI-9fp4Z.js +286 -0
- package/dist/chunks/map-chart-settings-CSxZdu_g.js +1 -0
- package/dist/chunks/map-chart-settings-DQIN7Pn8.js +334 -0
- package/dist/chunks/pie-chart-settings-CN3JCLdP.js +86 -0
- package/dist/chunks/pie-chart-settings-CsErfZOL.js +1 -0
- package/dist/chunks/reusable-select-CQbD03nT.js +40 -0
- package/dist/chunks/reusable-select-CVRzPWkg.js +1 -0
- package/dist/chunks/stacked-chart-settings-BfqHFFqA.js +1 -0
- package/dist/chunks/stacked-chart-settings-poYotO6Q.js +90 -0
- package/dist/chunks/table-visual-settings-B46pdUra.js +46 -0
- package/dist/chunks/table-visual-settings-ZKWuNokZ.js +1 -0
- package/dist/chunks/tag-BrxBSbSe.js +20 -0
- package/dist/chunks/tag-D9G2kz2B.js +6 -0
- package/dist/chunks/use-assign-filter-5gplfsO1.js +83 -0
- package/dist/chunks/use-assign-filter-DzmBSsyO.js +1 -0
- package/dist/chunks/use-local-storage-state-CBh2HHB9.js +16 -0
- package/dist/chunks/use-local-storage-state-CL0JsTZM.js +1745 -0
- package/dist/chunks/use-plugin-query-DA6Yrp7P.js +12 -0
- package/dist/chunks/use-plugin-query-JdHNPYZS.js +1 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +103 -103
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/dashboard-plus-BEe61COU.js +0 -17362
- package/dist/chunks/dashboard-plus-Bi6F5Cid.js +0 -225
- 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
|
+
};
|