@nubisco/ui 5.42.0 → 5.43.1
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/{Accordion-DY1Oml0f.js → Accordion-2bbHhUR3.js} +1 -1
- package/dist/{Accordion-Deg1qqmZ.cjs → Accordion-CD_BZ3Xb.cjs} +1 -1
- package/dist/Accordion.context-D0CjtbPU.cjs +1 -0
- package/dist/{Accordion.context-BQy1VnEM.js → Accordion.context-Wz0ugH_k.js} +1 -1
- package/dist/{AccordionItem-DVwcaU3f.cjs → AccordionItem-BOIL14KX.cjs} +1 -1
- package/dist/{AccordionItem-BrpJObcb.js → AccordionItem-Cg4m1SfF.js} +1 -1
- package/dist/{AiProvider-_ZQ9C9k3.js → AiProvider-BwX0fWR4.js} +1 -1
- package/dist/{AiProvider-BaZBbtJz.cjs → AiProvider-PuA_dYYu.cjs} +1 -1
- package/dist/BarChart-34fIWzBC.cjs +1 -0
- package/dist/BarChart-CcmkojSX.js +399 -0
- package/dist/{Blueprint-BUH7BNRk.cjs → Blueprint-Bv8EweAy.cjs} +1 -1
- package/dist/{Blueprint-Bqiyvbkg.js → Blueprint-C8VbPuw9.js} +1 -1
- package/dist/Blueprint.context-BxEzW6uR.cjs +1 -0
- package/dist/Blueprint.context-CFAikJ3j.js +4 -0
- package/dist/{BlueprintCard-CRcMUcbC.cjs → BlueprintCard-WaIQcsDQ.cjs} +1 -1
- package/dist/{BlueprintCard-CrLvovri.js → BlueprintCard-jJjQydFH.js} +1 -1
- package/dist/{Checkbox-ColjurT5.js → Checkbox-5ANAIFrb.js} +1 -1
- package/dist/{Checkbox-hoojePrb.cjs → Checkbox-CtUFfX3m.cjs} +1 -1
- package/dist/{CheckboxGroup-B6UmmUpN.js → CheckboxGroup-CORB_666.js} +1 -1
- package/dist/{CheckboxGroup-DRTRfYnm.cjs → CheckboxGroup-DUwsVYmt.cjs} +1 -1
- package/dist/CheckboxGroup.context-BapH2lov.cjs +1 -0
- package/dist/{CheckboxGroup.context-BXBbxCqM.js → CheckboxGroup.context-uxyp82XM.js} +1 -1
- package/dist/{Confirm-D800tV98.cjs → Confirm-7uLqv38W.cjs} +1 -1
- package/dist/{Confirm-DuYdhU4R.js → Confirm-c2Ss3_hy.js} +1 -1
- package/dist/{DataTable-CijHryn5.js → DataTable-C44scor6.js} +1 -1
- package/dist/{DataTable-DeRtqCsP.cjs → DataTable-JG2gCpgz.cjs} +1 -1
- package/dist/{Stepper-CHRsH26g.cjs → Stepper-Br62BsXD.cjs} +1 -1
- package/dist/{Stepper-Do9WOdhu.js → Stepper-n2ZH-4Gf.js} +1 -1
- package/dist/{Stepper.context-BaKuMRsu.js → Stepper.context-7n0SuGh_.js} +1 -1
- package/dist/Stepper.context-DVnGO61u.cjs +1 -0
- package/dist/{StepperStep-8Z1ERb7I.cjs → StepperStep-CjxVhsbr.cjs} +1 -1
- package/dist/{StepperStep-AGFO5cKL.js → StepperStep-Co1KKj9h.js} +1 -1
- package/dist/{SuggestionList-BdFhF0fM.cjs → SuggestionList-C6LGxP-U.cjs} +1 -1
- package/dist/{SuggestionList-CTJEWb2x.js → SuggestionList-IAeZl5eK.js} +1 -1
- package/dist/{TextInput-D5vlfecS.js → TextInput-Cxnxq2F6.js} +1 -1
- package/dist/{TextInput-IAk1KYb5.cjs → TextInput-D6YChZsO.cjs} +1 -1
- package/dist/TextInput.context-BrDuawa9.cjs +1 -0
- package/dist/{TextInput.context-qkmg5Mpm.js → TextInput.context-CR-Svohb.js} +1 -1
- package/dist/{Tree-B0-bRZLF.js → Tree-BMKUnt--.js} +1 -1
- package/dist/{Tree-DHLVF8eV.cjs → Tree-DDYIaQhW.cjs} +1 -1
- package/dist/TreeContext-CKcfg0Nq.cjs +1 -0
- package/dist/TreeContext-CvZCLIr2.js +4 -0
- package/dist/{TreeNode-ixiFKZpi.cjs → TreeNode-BDCrTAs_.cjs} +1 -1
- package/dist/{TreeNode-CjXf_kJH.js → TreeNode-CyJM0bOD.js} +1 -1
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +18 -18
- package/dist/components/Accordion.cjs +1 -1
- package/dist/components/Accordion.context.d.ts +1 -1
- package/dist/components/Accordion.mjs +1 -1
- package/dist/components/AccordionItem.cjs +1 -1
- package/dist/components/AccordionItem.mjs +1 -1
- package/dist/components/AiProvider.cjs +1 -1
- package/dist/components/AiProvider.mjs +1 -1
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.context.d.ts +1 -1
- package/dist/components/Blueprint.context.d.ts.map +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/BlueprintCard.cjs +1 -1
- package/dist/components/BlueprintCard.mjs +1 -1
- package/dist/components/Charts/BarChart.cjs +1 -1
- package/dist/components/Charts/BarChart.d.ts +15 -0
- package/dist/components/Charts/BarChart.mjs +1 -1
- package/dist/components/Charts/BarChart.vue.d.ts +5 -0
- package/dist/components/Charts/BarChart.vue.d.ts.map +1 -1
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.context.d.ts +1 -1
- package/dist/components/CheckboxGroup.context.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/Stepper.cjs +1 -1
- package/dist/components/Stepper.context.d.ts +1 -1
- package/dist/components/Stepper.context.d.ts.map +1 -1
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/SuggestionList.cjs +1 -1
- package/dist/components/SuggestionList.mjs +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.context.d.ts +1 -1
- package/dist/components/TextInput.context.d.ts.map +1 -1
- package/dist/components/TextInput.mjs +1 -1
- package/dist/components/Tree.cjs +1 -1
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeContext.d.ts.map +1 -1
- package/dist/components/TreeNode.cjs +1 -1
- package/dist/components/TreeNode.mjs +1 -1
- package/dist/composables/flagRegistry.cjs +1 -1
- package/dist/composables/flagRegistry.d.ts.map +1 -1
- package/dist/composables/flagRegistry.mjs +14 -13
- package/dist/composables/iconRegistry.cjs +1 -1
- package/dist/composables/iconRegistry.d.ts.map +1 -1
- package/dist/composables/iconRegistry.mjs +12 -11
- package/dist/composables/useBlueprint.composable.cjs +1 -1
- package/dist/composables/useBlueprint.composable.mjs +1 -1
- package/dist/composables/useCommandPalette.composable.cjs +1 -1
- package/dist/composables/useCommandPalette.composable.d.ts.map +1 -1
- package/dist/composables/useCommandPalette.composable.js +1 -1
- package/dist/composables/useCommandPalette.composable.mjs +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +1 -1
- package/dist/composables/useScrollLock.composable.cjs +1 -1
- package/dist/composables/useScrollLock.composable.d.ts.map +1 -1
- package/dist/composables/useScrollLock.composable.mjs +14 -10
- package/dist/composables/useShellLayout.composable.cjs +1 -1
- package/dist/composables/useShellLayout.composable.d.ts.map +1 -1
- package/dist/composables/useShellLayout.composable.mjs +1 -1
- package/dist/composables/useShellSlot.composable.cjs +1 -1
- package/dist/composables/useShellSlot.composable.d.ts.map +1 -1
- package/dist/composables/useShellSlot.composable.mjs +1 -1
- package/dist/composables/useSurfaceLayer.composable.cjs +1 -1
- package/dist/composables/useSurfaceLayer.composable.d.ts.map +1 -1
- package/dist/composables/useSurfaceLayer.composable.mjs +1 -1
- package/dist/composables/useTheme.composable.cjs +1 -1
- package/dist/composables/useTheme.composable.d.ts.map +1 -1
- package/dist/composables/useTheme.composable.mjs +40 -33
- package/dist/composables/useToast.composable.cjs +1 -1
- package/dist/composables/useToast.composable.d.ts.map +1 -1
- package/dist/composables/useToast.composable.mjs +23 -22
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +18 -18
- package/dist/styles/BarChart.css +1 -1
- package/dist/ui.css +1 -1
- package/dist/utils/sharedState.helper.cjs +1 -0
- package/dist/utils/sharedState.helper.d.ts +39 -0
- package/dist/utils/sharedState.helper.d.ts.map +1 -0
- package/dist/utils/sharedState.helper.mjs +10 -0
- package/package.json +1 -1
- package/src/utils/sharedState.helper.ts +47 -0
- package/dist/Accordion.context-C7Xkdn0J.cjs +0 -1
- package/dist/BarChart-Ci0qaOZm.cjs +0 -1
- package/dist/BarChart-DF9C-09O.js +0 -294
- package/dist/Blueprint.context-BOP7aLQl.js +0 -4
- package/dist/Blueprint.context-C0sg1sbm.cjs +0 -1
- package/dist/CheckboxGroup.context-Cq9keYoj.cjs +0 -1
- package/dist/Stepper.context-vC_Cctnn.cjs +0 -1
- package/dist/TextInput.context-kCqQ5HWv.cjs +0 -1
- package/dist/TreeContext-B73gZjHy.cjs +0 -1
- package/dist/TreeContext-dgGdNVcW.js +0 -4
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { i as t, l as n, n as r, u as i } from "./palette-Cq2Mb9QH.js";
|
|
3
|
-
import { t as a } from "./ChartLegend-BythwRMJ.js";
|
|
4
|
-
import { i as o, r as s, t as c } from "./scales-CzvC8OOZ.js";
|
|
5
|
-
import { t as l } from "./useChartSize-BXgOzSCU.js";
|
|
6
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, getCurrentInstance as v, mergeProps as y, normalizeClass as ee, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, withCtx as T } from "vue";
|
|
7
|
-
//#region src/components/Charts/BarChart.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var E = [
|
|
9
|
-
"width",
|
|
10
|
-
"height",
|
|
11
|
-
"role",
|
|
12
|
-
"aria-label"
|
|
13
|
-
], D = { key: 0 }, O = [
|
|
14
|
-
"x1",
|
|
15
|
-
"x2",
|
|
16
|
-
"y1",
|
|
17
|
-
"y2"
|
|
18
|
-
], te = { class: "nb-chart__axis" }, ne = [
|
|
19
|
-
"x",
|
|
20
|
-
"y",
|
|
21
|
-
"text-anchor",
|
|
22
|
-
"dominant-baseline"
|
|
23
|
-
], re = { class: "nb-chart__axis" }, ie = [
|
|
24
|
-
"x",
|
|
25
|
-
"y",
|
|
26
|
-
"text-anchor",
|
|
27
|
-
"dominant-baseline"
|
|
28
|
-
], ae = [
|
|
29
|
-
"x1",
|
|
30
|
-
"x2",
|
|
31
|
-
"y1",
|
|
32
|
-
"y2"
|
|
33
|
-
], oe = [
|
|
34
|
-
"fill",
|
|
35
|
-
"tabindex",
|
|
36
|
-
"role",
|
|
37
|
-
"aria-label",
|
|
38
|
-
"onKeydown"
|
|
39
|
-
], k = { class: "nb-chart__hover-layer" }, A = [
|
|
40
|
-
"onMouseenter",
|
|
41
|
-
"onMousemove",
|
|
42
|
-
"onClick"
|
|
43
|
-
], j = /* @__PURE__ */ e(/* @__PURE__ */ _({
|
|
44
|
-
__name: "BarChart",
|
|
45
|
-
props: {
|
|
46
|
-
series: { default: () => [] },
|
|
47
|
-
orientation: { default: "vertical" },
|
|
48
|
-
stacked: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: !1
|
|
51
|
-
},
|
|
52
|
-
valueFormatter: {},
|
|
53
|
-
title: { default: void 0 },
|
|
54
|
-
subtitle: { default: void 0 },
|
|
55
|
-
height: { default: 280 },
|
|
56
|
-
showLegend: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: !0
|
|
59
|
-
},
|
|
60
|
-
showTooltip: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: !0
|
|
63
|
-
},
|
|
64
|
-
showGrid: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: !0
|
|
67
|
-
},
|
|
68
|
-
colors: { default: () => r }
|
|
69
|
-
},
|
|
70
|
-
emits: ["select"],
|
|
71
|
-
setup(e, { emit: r }) {
|
|
72
|
-
let _ = e, j = r, M = x(null), N = l(M, {
|
|
73
|
-
width: 480,
|
|
74
|
-
height: 240
|
|
75
|
-
}), P = d(() => _.orientation === "horizontal"), F = d(() => _.series.map((e, n) => ({
|
|
76
|
-
name: e.name,
|
|
77
|
-
data: e.data,
|
|
78
|
-
color: e.color ?? t(n, _.colors)
|
|
79
|
-
}))), I = d(() => (_.series[0]?.data ?? []).map((e) => e.x)), L = (e, t) => F.value[t]?.data[e]?.y ?? 0, R = (e, t) => {
|
|
80
|
-
let n = L(e, t);
|
|
81
|
-
if (!_.stacked) return [0, n];
|
|
82
|
-
let r = 0;
|
|
83
|
-
for (let i = 0; i < t; i += 1) {
|
|
84
|
-
let t = L(e, i);
|
|
85
|
-
t >= 0 == n >= 0 && (r += t);
|
|
86
|
-
}
|
|
87
|
-
return [r, r + n];
|
|
88
|
-
}, z = d(() => {
|
|
89
|
-
let e = [];
|
|
90
|
-
return I.value.forEach((t, n) => {
|
|
91
|
-
F.value.forEach((t, r) => {
|
|
92
|
-
e.push(R(n, r)[1]);
|
|
93
|
-
});
|
|
94
|
-
}), e.length ? o(Math.min(0, ...e), Math.max(0, ...e), .05) : [0, 1];
|
|
95
|
-
}), B = d(() => {
|
|
96
|
-
if (!P.value) return {
|
|
97
|
-
top: 12,
|
|
98
|
-
right: 16,
|
|
99
|
-
bottom: 28,
|
|
100
|
-
left: 44
|
|
101
|
-
};
|
|
102
|
-
let e = I.value.reduce((e, t) => Math.max(e, String(t).length), 0), t = Math.max(44, Math.round(N.value.width * .4));
|
|
103
|
-
return {
|
|
104
|
-
top: 12,
|
|
105
|
-
right: 16,
|
|
106
|
-
bottom: 28,
|
|
107
|
-
left: Math.min(Math.max(44, Math.ceil(e * 6.2) + 12), t)
|
|
108
|
-
};
|
|
109
|
-
}), V = d(() => ({
|
|
110
|
-
x0: B.value.left,
|
|
111
|
-
x1: Math.max(B.value.left, N.value.width - B.value.right),
|
|
112
|
-
y0: B.value.top,
|
|
113
|
-
y1: Math.max(B.value.top, N.value.height - B.value.bottom)
|
|
114
|
-
})), H = d(() => c(I.value.map((e) => String(e)), P.value ? [V.value.y0, V.value.y1] : [V.value.x0, V.value.x1], .2)), U = d(() => s(z.value, P.value ? [V.value.x0, V.value.x1] : [V.value.y1, V.value.y0])), W = d(() => U.value.ticks(5)), G = (e) => H.value(String(I.value[e])), K = (e) => G(e) + H.value.bandwidth / 2, q = d(() => {
|
|
115
|
-
let e = F.value.length || 1;
|
|
116
|
-
return _.stacked ? H.value.bandwidth : H.value.bandwidth / e;
|
|
117
|
-
}), se = (e, t) => {
|
|
118
|
-
let [n, r] = R(e, t), i = U.value(n), a = U.value(r), o = Math.max(0, q.value - 2), s = G(e) + (_.stacked ? 0 : t * q.value), c = Math.max(0, Math.abs(a - i));
|
|
119
|
-
return P.value ? {
|
|
120
|
-
x: Math.min(i, a),
|
|
121
|
-
y: s,
|
|
122
|
-
width: c,
|
|
123
|
-
height: o
|
|
124
|
-
} : {
|
|
125
|
-
x: s,
|
|
126
|
-
y: Math.min(i, a),
|
|
127
|
-
width: o,
|
|
128
|
-
height: c
|
|
129
|
-
};
|
|
130
|
-
}, ce = (e) => {
|
|
131
|
-
let t = G(e), n = H.value.bandwidth;
|
|
132
|
-
return P.value ? {
|
|
133
|
-
x: V.value.x0,
|
|
134
|
-
y: t,
|
|
135
|
-
width: Math.max(0, V.value.x1 - V.value.x0),
|
|
136
|
-
height: n
|
|
137
|
-
} : {
|
|
138
|
-
x: t,
|
|
139
|
-
y: V.value.y0,
|
|
140
|
-
width: n,
|
|
141
|
-
height: Math.max(0, V.value.y1 - V.value.y0)
|
|
142
|
-
};
|
|
143
|
-
}, le = (e) => Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(e), J = (e) => _.valueFormatter ? _.valueFormatter(e) : le(e), ue = v(), Y = () => !!ue?.vnode.props?.onSelect, de = (e, t) => {
|
|
144
|
-
let n = F.value[t], r = J(L(e, t));
|
|
145
|
-
return F.value.length > 1 ? `${I.value[e]}, ${n?.name}: ${r}` : `${I.value[e]}: ${r}`;
|
|
146
|
-
}, X = (e, t) => {
|
|
147
|
-
let n = F.value[t], r = n?.data[e];
|
|
148
|
-
return {
|
|
149
|
-
kind: "series",
|
|
150
|
-
x: r?.x ?? I.value[e],
|
|
151
|
-
y: r?.y ?? 0,
|
|
152
|
-
seriesName: n?.name ?? "",
|
|
153
|
-
seriesIndex: t,
|
|
154
|
-
index: e,
|
|
155
|
-
point: r ?? {
|
|
156
|
-
x: I.value[e],
|
|
157
|
-
y: 0
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
}, Z = (e) => {
|
|
161
|
-
let t = e.currentTarget.ownerSVGElement;
|
|
162
|
-
if (!t) return null;
|
|
163
|
-
let n = t.getBoundingClientRect();
|
|
164
|
-
return {
|
|
165
|
-
x: e.clientX - n.left,
|
|
166
|
-
y: e.clientY - n.top
|
|
167
|
-
};
|
|
168
|
-
}, fe = (e, t) => {
|
|
169
|
-
let n = F.value.length;
|
|
170
|
-
if (n <= 1) return 0;
|
|
171
|
-
let r = Z(e);
|
|
172
|
-
if (!r) return 0;
|
|
173
|
-
if (_.stacked) {
|
|
174
|
-
let e = P.value ? r.x : r.y;
|
|
175
|
-
for (let r = 0; r < n; r += 1) {
|
|
176
|
-
let [n, i] = R(t, r), a = U.value(n), o = U.value(i);
|
|
177
|
-
if (e >= Math.min(a, o) && e <= Math.max(a, o)) return r;
|
|
178
|
-
}
|
|
179
|
-
return n - 1;
|
|
180
|
-
}
|
|
181
|
-
let i = (P.value ? r.y : r.x) - G(t), a = Math.floor(i / (q.value || 1));
|
|
182
|
-
return Math.min(Math.max(a, 0), n - 1);
|
|
183
|
-
}, pe = (e, t) => {
|
|
184
|
-
Y() && j("select", X(t, fe(e, t)));
|
|
185
|
-
}, me = (e, t, n) => {
|
|
186
|
-
Y() && (e.key !== "Enter" && e.key !== " " || (e.preventDefault(), j("select", X(t, n))));
|
|
187
|
-
}, Q = x(null), $ = x({
|
|
188
|
-
x: 0,
|
|
189
|
-
y: 0
|
|
190
|
-
}), he = (e, t) => {
|
|
191
|
-
let n = Z(e);
|
|
192
|
-
n && ($.value = {
|
|
193
|
-
x: n.x + 12,
|
|
194
|
-
y: n.y + 12
|
|
195
|
-
}, Q.value = t);
|
|
196
|
-
}, ge = d(() => Q.value === null ? [] : F.value.map((e) => {
|
|
197
|
-
let t = e.data[Q.value];
|
|
198
|
-
return {
|
|
199
|
-
label: e.name,
|
|
200
|
-
value: t?.label ?? J(t?.y ?? 0),
|
|
201
|
-
color: e.color
|
|
202
|
-
};
|
|
203
|
-
}));
|
|
204
|
-
return (t, r) => (b(), f(i, {
|
|
205
|
-
title: e.title,
|
|
206
|
-
subtitle: e.subtitle,
|
|
207
|
-
height: e.height,
|
|
208
|
-
"show-legend": e.showLegend && F.value.length > 0
|
|
209
|
-
}, {
|
|
210
|
-
legend: T(() => [g(a, { items: F.value.map((e) => ({
|
|
211
|
-
label: e.name,
|
|
212
|
-
color: e.color
|
|
213
|
-
})) }, null, 8, ["items"])]),
|
|
214
|
-
default: T(() => [h("div", {
|
|
215
|
-
ref_key: "root",
|
|
216
|
-
ref: M,
|
|
217
|
-
class: "nb-bar-chart"
|
|
218
|
-
}, [(b(), m("svg", {
|
|
219
|
-
width: w(N).width,
|
|
220
|
-
height: w(N).height,
|
|
221
|
-
class: ee(["nb-chart__svg", { "nb-chart__svg--selectable": Y() }]),
|
|
222
|
-
role: Y() ? "group" : "img",
|
|
223
|
-
"aria-label": e.title || "Bar chart",
|
|
224
|
-
onMouseleave: r[0] ||= (e) => Q.value = null
|
|
225
|
-
}, [
|
|
226
|
-
e.showGrid && w(N).width > 0 ? (b(), m("g", D, [(b(!0), m(u, null, S(W.value, (e) => (b(), m("line", {
|
|
227
|
-
key: `grid-${e}`,
|
|
228
|
-
class: "nb-chart__gridline",
|
|
229
|
-
x1: P.value ? U.value(e) : V.value.x0,
|
|
230
|
-
x2: P.value ? U.value(e) : V.value.x1,
|
|
231
|
-
y1: P.value ? V.value.y0 : U.value(e),
|
|
232
|
-
y2: P.value ? V.value.y1 : U.value(e)
|
|
233
|
-
}, null, 8, O))), 128))])) : p("", !0),
|
|
234
|
-
h("g", te, [(b(!0), m(u, null, S(W.value, (e) => (b(), m("text", {
|
|
235
|
-
key: `vt-${e}`,
|
|
236
|
-
x: P.value ? U.value(e) : V.value.x0 - 6,
|
|
237
|
-
y: P.value ? V.value.y1 + 14 : U.value(e),
|
|
238
|
-
"text-anchor": P.value ? "middle" : "end",
|
|
239
|
-
"dominant-baseline": P.value ? "auto" : "middle"
|
|
240
|
-
}, C(J(e)), 9, ne))), 128))]),
|
|
241
|
-
h("g", re, [(b(!0), m(u, null, S(I.value, (e, t) => (b(), m("text", {
|
|
242
|
-
key: `ct-${t}`,
|
|
243
|
-
x: P.value ? V.value.x0 - 6 : K(t),
|
|
244
|
-
y: P.value ? K(t) : V.value.y1 + 14,
|
|
245
|
-
"text-anchor": P.value ? "end" : "middle",
|
|
246
|
-
"dominant-baseline": P.value ? "middle" : "auto"
|
|
247
|
-
}, C(e), 9, ie))), 128))]),
|
|
248
|
-
h("line", {
|
|
249
|
-
class: "nb-chart__axis-line",
|
|
250
|
-
x1: P.value ? U.value(0) : V.value.x0,
|
|
251
|
-
x2: P.value ? U.value(0) : V.value.x1,
|
|
252
|
-
y1: P.value ? V.value.y0 : U.value(0),
|
|
253
|
-
y2: P.value ? V.value.y1 : U.value(0)
|
|
254
|
-
}, null, 8, ae),
|
|
255
|
-
(b(!0), m(u, null, S(I.value, (e, t) => (b(), m("g", { key: `g-${t}` }, [(b(!0), m(u, null, S(F.value, (e, n) => (b(), m("rect", y({
|
|
256
|
-
key: `${t}-${n}`,
|
|
257
|
-
class: ["nb-chart__bar", { "is-dim": Q.value !== null && Q.value !== t }]
|
|
258
|
-
}, { ref_for: !0 }, se(t, n), {
|
|
259
|
-
fill: e.color,
|
|
260
|
-
tabindex: Y() ? 0 : void 0,
|
|
261
|
-
role: Y() ? "button" : void 0,
|
|
262
|
-
"aria-label": Y() ? de(t, n) : void 0,
|
|
263
|
-
onKeydown: (e) => me(e, t, n)
|
|
264
|
-
}), null, 16, oe))), 128))]))), 128)),
|
|
265
|
-
h("g", k, [(b(!0), m(u, null, S(I.value, (e, t) => (b(), m("rect", y({ key: `hover-${t}` }, { ref_for: !0 }, ce(t), {
|
|
266
|
-
fill: "transparent",
|
|
267
|
-
onMouseenter: (e) => Q.value = t,
|
|
268
|
-
onMousemove: (e) => he(e, t),
|
|
269
|
-
onClick: (e) => pe(e, t)
|
|
270
|
-
}), null, 16, A))), 128))])
|
|
271
|
-
], 42, E)), g(n, {
|
|
272
|
-
visible: e.showTooltip && Q.value !== null,
|
|
273
|
-
x: $.value.x,
|
|
274
|
-
y: $.value.y,
|
|
275
|
-
title: Q.value === null ? "" : String(I.value[Q.value]),
|
|
276
|
-
rows: ge.value
|
|
277
|
-
}, null, 8, [
|
|
278
|
-
"visible",
|
|
279
|
-
"x",
|
|
280
|
-
"y",
|
|
281
|
-
"title",
|
|
282
|
-
"rows"
|
|
283
|
-
])], 512)]),
|
|
284
|
-
_: 1
|
|
285
|
-
}, 8, [
|
|
286
|
-
"title",
|
|
287
|
-
"subtitle",
|
|
288
|
-
"height",
|
|
289
|
-
"show-legend"
|
|
290
|
-
]));
|
|
291
|
-
}
|
|
292
|
-
}), [["__scopeId", "data-v-7b3d7ee4"]]);
|
|
293
|
-
//#endregion
|
|
294
|
-
export { j as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Symbol(`NB_BLUEPRINT_CONTEXT`),t=Symbol(`NB_BLUEPRINT_CONTROLLER`);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Symbol(`NB_CHECKBOX_GROUP_CONTEXT`);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=function(e){return e.Horizontal=`horizontal`,e.Vertical=`vertical`,e}(e||{}),t=function(e){return e.Small=`sm`,e.Medium=`md`,e}(t||{}),n=function(e){return e.Complete=`complete`,e.Current=`current`,e.Incomplete=`incomplete`,e.Disabled=`disabled`,e.Invalid=`invalid`,e}(n||{}),r=Symbol(`NB_STEPPER_CONTEXT`);Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Symbol(`NB_TEXT_INPUT_CONTEXT`);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Symbol(`nb-tree`),t=Symbol(`nb-tree-depth`),n=Symbol(`nb-tree-ancestors`);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|