drizzle-cube 0.1.37 → 0.1.39
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/adapters/{compiler-CiUqnN3l.js → compiler-BNrqoxJZ.js} +2880 -2261
- package/dist/adapters/express/index.js +1 -1
- package/dist/adapters/fastify/index.js +1 -1
- package/dist/adapters/hono/index.js +1 -1
- package/dist/adapters/nextjs/index.js +1 -1
- package/dist/client/charts.js +1 -1
- package/dist/client/chunks/{charts-D4v7aUDh.js → charts-VcPFhxyE.js} +29 -30
- package/dist/client/chunks/{charts-D4v7aUDh.js.map → charts-VcPFhxyE.js.map} +1 -1
- package/dist/client/chunks/{components-BeCaouWH.js → components-D6NT6kRL.js} +3999 -3961
- package/dist/client/chunks/components-D6NT6kRL.js.map +1 -0
- package/dist/client/chunks/{icons-CEfXECaS.js → icons-MNJ50ahP.js} +809 -579
- package/dist/client/chunks/icons-MNJ50ahP.js.map +1 -0
- package/dist/client/components.js +2 -2
- package/dist/client/index.js +2 -2
- package/dist/client/types.d.ts +1 -1
- package/dist/client/utils/index.d.ts +1 -0
- package/dist/client/utils/measureIcons.d.ts +11 -0
- package/dist/client-bundle-stats.html +1 -1
- package/dist/server/index.d.ts +122 -16
- package/dist/server/index.js +2938 -2319
- package/package.json +1 -1
- package/dist/client/chunks/components-BeCaouWH.js.map +0 -1
- package/dist/client/chunks/icons-CEfXECaS.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import p, { Router as w } from "express";
|
|
2
2
|
import S from "cors";
|
|
3
|
-
import { S as E, c as s, f as g, a as R, b as q, h as v } from "../compiler-
|
|
3
|
+
import { S as E, c as s, f as g, a as R, b as q, h as v } from "../compiler-BNrqoxJZ.js";
|
|
4
4
|
function $(l) {
|
|
5
5
|
const {
|
|
6
6
|
cubes: c,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextResponse as o } from "next/server";
|
|
2
|
-
import { c, f as x, a as E, b as N, h as S, S as p } from "../compiler-
|
|
2
|
+
import { c, f as x, a as E, b as N, h as S, S as p } from "../compiler-BNrqoxJZ.js";
|
|
3
3
|
function g(n) {
|
|
4
4
|
const { cubes: r, drizzle: a, schema: s, engineType: f } = n;
|
|
5
5
|
if (!r || r.length === 0)
|
package/dist/client/charts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, C as s, D as h, N as R,
|
|
1
|
+
import { r as t, C as s, D as h, N as R, F as e, A as C, B as c, L as O, P as T, R as A, a as L, S, T as I, f as _ } from "./chunks/charts-VcPFhxyE.js";
|
|
2
2
|
export {
|
|
3
3
|
t as CHART_COLORS,
|
|
4
4
|
s as CHART_MARGINS,
|
|
@@ -26,7 +26,7 @@ function C({ children: e, height: t = "100%" }) {
|
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function V({ formatter: e, labelFormatter: t }) {
|
|
30
30
|
return /* @__PURE__ */ s(
|
|
31
31
|
yt,
|
|
32
32
|
{
|
|
@@ -318,7 +318,7 @@ function Kn({
|
|
|
318
318
|
}
|
|
319
319
|
),
|
|
320
320
|
f.showTooltip && /* @__PURE__ */ s(
|
|
321
|
-
|
|
321
|
+
V,
|
|
322
322
|
{
|
|
323
323
|
formatter: (b, M) => M === "Target" ? [`${b}`, "Target Value"] : [b, M]
|
|
324
324
|
}
|
|
@@ -468,7 +468,7 @@ function Bn({
|
|
|
468
468
|
}
|
|
469
469
|
),
|
|
470
470
|
f.showTooltip && /* @__PURE__ */ s(
|
|
471
|
-
|
|
471
|
+
V,
|
|
472
472
|
{
|
|
473
473
|
formatter: (y, g) => g === "Target" ? [`${y}`, "Target Value"] : [y, g]
|
|
474
474
|
}
|
|
@@ -611,7 +611,7 @@ function Wn({
|
|
|
611
611
|
}
|
|
612
612
|
),
|
|
613
613
|
f.showTooltip && /* @__PURE__ */ s(
|
|
614
|
-
|
|
614
|
+
V,
|
|
615
615
|
{
|
|
616
616
|
formatter: (y, g) => g === "Target" ? [`${y}`, "Target Value"] : [y, g]
|
|
617
617
|
}
|
|
@@ -768,7 +768,7 @@ function Yn({
|
|
|
768
768
|
))
|
|
769
769
|
}
|
|
770
770
|
),
|
|
771
|
-
o.showTooltip && /* @__PURE__ */ s(
|
|
771
|
+
o.showTooltip && /* @__PURE__ */ s(V, {}),
|
|
772
772
|
o.showLegend && /* @__PURE__ */ s(
|
|
773
773
|
K,
|
|
774
774
|
{
|
|
@@ -883,7 +883,7 @@ function Xn({
|
|
|
883
883
|
label: { value: d(u), angle: -90, position: "left", style: { textAnchor: "middle", fontSize: "12px" } }
|
|
884
884
|
}
|
|
885
885
|
),
|
|
886
|
-
o.showTooltip && /* @__PURE__ */ s(
|
|
886
|
+
o.showTooltip && /* @__PURE__ */ s(V, {}),
|
|
887
887
|
k && /* @__PURE__ */ s(
|
|
888
888
|
K,
|
|
889
889
|
{
|
|
@@ -1007,7 +1007,7 @@ function Qn({
|
|
|
1007
1007
|
className: "text-dc-text-muted"
|
|
1008
1008
|
}
|
|
1009
1009
|
),
|
|
1010
|
-
d.showTooltip && /* @__PURE__ */ s(
|
|
1010
|
+
d.showTooltip && /* @__PURE__ */ s(V, {}),
|
|
1011
1011
|
d.showLegend && f.length > 1 && /* @__PURE__ */ s(
|
|
1012
1012
|
K,
|
|
1013
1013
|
{
|
|
@@ -1101,7 +1101,7 @@ function Zn({
|
|
|
1101
1101
|
outerRadius: "80%",
|
|
1102
1102
|
margin: { top: 20, right: 30, bottom: 20, left: 30 },
|
|
1103
1103
|
children: [
|
|
1104
|
-
d.showTooltip && /* @__PURE__ */ s(
|
|
1104
|
+
d.showTooltip && /* @__PURE__ */ s(V, {}),
|
|
1105
1105
|
d.showLegend && /* @__PURE__ */ s(
|
|
1106
1106
|
K,
|
|
1107
1107
|
{
|
|
@@ -1190,10 +1190,10 @@ class Ce extends Map {
|
|
|
1190
1190
|
if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: n } }), t != null) for (const [r, i] of t) this.set(r, i);
|
|
1191
1191
|
}
|
|
1192
1192
|
get(t) {
|
|
1193
|
-
return super.get(
|
|
1193
|
+
return super.get(Ve(this, t));
|
|
1194
1194
|
}
|
|
1195
1195
|
has(t) {
|
|
1196
|
-
return super.has(
|
|
1196
|
+
return super.has(Ve(this, t));
|
|
1197
1197
|
}
|
|
1198
1198
|
set(t, n) {
|
|
1199
1199
|
return super.set(_t(this, t), n);
|
|
@@ -1202,7 +1202,7 @@ class Ce extends Map {
|
|
|
1202
1202
|
return super.delete(Ot(this, t));
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function Ve({ _intern: e, _key: t }, n) {
|
|
1206
1206
|
const r = t(n);
|
|
1207
1207
|
return e.has(r) ? e.get(r) : n;
|
|
1208
1208
|
}
|
|
@@ -1217,9 +1217,9 @@ function Ot({ _intern: e, _key: t }, n) {
|
|
|
1217
1217
|
function Ht(e) {
|
|
1218
1218
|
return e !== null && typeof e == "object" ? e.valueOf() : e;
|
|
1219
1219
|
}
|
|
1220
|
-
const Ct = Math.sqrt(50),
|
|
1220
|
+
const Ct = Math.sqrt(50), Vt = Math.sqrt(10), Gt = Math.sqrt(2);
|
|
1221
1221
|
function de(e, t, n) {
|
|
1222
|
-
const r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), l = r / Math.pow(10, i), a = l >= Ct ? 10 : l >=
|
|
1222
|
+
const r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), l = r / Math.pow(10, i), a = l >= Ct ? 10 : l >= Vt ? 5 : l >= Gt ? 2 : 1;
|
|
1223
1223
|
let c, d, o;
|
|
1224
1224
|
return i < 0 ? (o = Math.pow(10, -i) / a, c = Math.round(e * o), d = Math.round(t * o), c / o < e && ++c, d / o > t && --d, o = -o) : (o = Math.pow(10, i) * a, c = Math.round(e / o), d = Math.round(t / o), c * o < e && ++c, d * o > t && --d), d < c && 0.5 <= n && n < 2 ? de(e, t, n * 2) : [c, d, o];
|
|
1225
1225
|
}
|
|
@@ -1254,7 +1254,7 @@ function lt(e, t) {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
function te() {
|
|
1256
1256
|
}
|
|
1257
|
-
var Z = 0.7, fe = 1 / Z, X = "\\s*([+-]?\\d+)\\s*", J = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", I = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Kt = /^#([0-9a-f]{3,8})$/, Bt = new RegExp(`^rgb\\(${X},${X},${X}\\)$`), Wt = new RegExp(`^rgb\\(${I},${I},${I}\\)$`), Yt = new RegExp(`^rgba\\(${X},${X},${X},${J}\\)$`), Xt = new RegExp(`^rgba\\(${I},${I},${I},${J}\\)$`), Qt = new RegExp(`^hsl\\(${J},${I},${I}\\)$`), Zt = new RegExp(`^hsla\\(${J},${I},${I},${J}\\)$`),
|
|
1257
|
+
var Z = 0.7, fe = 1 / Z, X = "\\s*([+-]?\\d+)\\s*", J = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", I = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Kt = /^#([0-9a-f]{3,8})$/, Bt = new RegExp(`^rgb\\(${X},${X},${X}\\)$`), Wt = new RegExp(`^rgb\\(${I},${I},${I}\\)$`), Yt = new RegExp(`^rgba\\(${X},${X},${X},${J}\\)$`), Xt = new RegExp(`^rgba\\(${I},${I},${I},${J}\\)$`), Qt = new RegExp(`^hsl\\(${J},${I},${I}\\)$`), Zt = new RegExp(`^hsla\\(${J},${I},${I},${J}\\)$`), Ge = {
|
|
1258
1258
|
aliceblue: 15792383,
|
|
1259
1259
|
antiquewhite: 16444375,
|
|
1260
1260
|
aqua: 65535,
|
|
@@ -1433,7 +1433,7 @@ function qe() {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
function P(e) {
|
|
1435
1435
|
var t, n;
|
|
1436
|
-
return e = (e + "").trim().toLowerCase(), (t = Kt.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Ke(t) : n === 3 ? new j(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? ae(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? ae(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Bt.exec(e)) ? new j(t[1], t[2], t[3], 1) : (t = Wt.exec(e)) ? new j(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Yt.exec(e)) ? ae(t[1], t[2], t[3], t[4]) : (t = Xt.exec(e)) ? ae(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Qt.exec(e)) ? Ye(t[1], t[2] / 100, t[3] / 100, 1) : (t = Zt.exec(e)) ? Ye(t[1], t[2] / 100, t[3] / 100, t[4]) :
|
|
1436
|
+
return e = (e + "").trim().toLowerCase(), (t = Kt.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Ke(t) : n === 3 ? new j(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? ae(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? ae(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Bt.exec(e)) ? new j(t[1], t[2], t[3], 1) : (t = Wt.exec(e)) ? new j(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Yt.exec(e)) ? ae(t[1], t[2], t[3], t[4]) : (t = Xt.exec(e)) ? ae(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Qt.exec(e)) ? Ye(t[1], t[2] / 100, t[3] / 100, 1) : (t = Zt.exec(e)) ? Ye(t[1], t[2] / 100, t[3] / 100, t[4]) : Ge.hasOwnProperty(e) ? Ke(Ge[e]) : e === "transparent" ? new j(NaN, NaN, NaN, 0) : null;
|
|
1437
1437
|
}
|
|
1438
1438
|
function Ke(e) {
|
|
1439
1439
|
return new j(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
@@ -1474,10 +1474,10 @@ je(j, ke, lt(te, {
|
|
|
1474
1474
|
toString: We
|
|
1475
1475
|
}));
|
|
1476
1476
|
function Be() {
|
|
1477
|
-
return `#${
|
|
1477
|
+
return `#${G(this.r)}${G(this.g)}${G(this.b)}`;
|
|
1478
1478
|
}
|
|
1479
1479
|
function tn() {
|
|
1480
|
-
return `#${
|
|
1480
|
+
return `#${G(this.r)}${G(this.g)}${G(this.b)}${G((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
1481
1481
|
}
|
|
1482
1482
|
function We() {
|
|
1483
1483
|
const e = ue(this.opacity);
|
|
@@ -1489,7 +1489,7 @@ function ue(e) {
|
|
|
1489
1489
|
function q(e) {
|
|
1490
1490
|
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function G(e) {
|
|
1493
1493
|
return e = q(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
1494
1494
|
}
|
|
1495
1495
|
function Ye(e, t, n, r) {
|
|
@@ -2200,7 +2200,7 @@ function Jn({
|
|
|
2200
2200
|
aspectRatio: 4 / 3,
|
|
2201
2201
|
stroke: "#fff",
|
|
2202
2202
|
content: /* @__PURE__ */ s(v, {}),
|
|
2203
|
-
children: o.showTooltip && /* @__PURE__ */ s(
|
|
2203
|
+
children: o.showTooltip && /* @__PURE__ */ s(V, {})
|
|
2204
2204
|
}
|
|
2205
2205
|
) }),
|
|
2206
2206
|
k && /* @__PURE__ */ s("div", { className: "flex justify-center items-center mt-4 pb-2", children: u ? (
|
|
@@ -2387,9 +2387,8 @@ export {
|
|
|
2387
2387
|
Kn as B,
|
|
2388
2388
|
ve as C,
|
|
2389
2389
|
Pn as D,
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
He as G,
|
|
2390
|
+
sr as E,
|
|
2391
|
+
He as F,
|
|
2393
2392
|
Bn as L,
|
|
2394
2393
|
jt as N,
|
|
2395
2394
|
Yn as P,
|
|
@@ -2414,13 +2413,13 @@ export {
|
|
|
2414
2413
|
mt as p,
|
|
2415
2414
|
ht as q,
|
|
2416
2415
|
T as r,
|
|
2417
|
-
|
|
2416
|
+
Te as s,
|
|
2418
2417
|
En as t,
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2418
|
+
qn as u,
|
|
2419
|
+
Un as v,
|
|
2420
|
+
On as w,
|
|
2421
|
+
nr as x,
|
|
2422
|
+
rr as y,
|
|
2423
|
+
ir as z
|
|
2425
2424
|
};
|
|
2426
|
-
//# sourceMappingURL=charts-
|
|
2425
|
+
//# sourceMappingURL=charts-VcPFhxyE.js.map
|