drizzle-cube 0.1.39 → 0.1.41
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-BNrqoxJZ.js → compiler-CkjmApqo.js} +4 -0
- 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/chunks/{components-D6NT6kRL.js → components-DnCh4Y4N.js} +2 -2
- package/dist/client/chunks/components-DnCh4Y4N.js.map +1 -0
- package/dist/client/components.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client-bundle-stats.html +1 -1
- package/dist/server/index.d.ts +5 -2
- package/dist/server/index.js +4 -0
- package/package.json +1 -1
- package/dist/client/chunks/components-D6NT6kRL.js.map +0 -1
|
@@ -1713,6 +1713,10 @@ class We {
|
|
|
1713
1713
|
throw new Error(
|
|
1714
1714
|
`Cannot build calculated measure '${E.name}' directly. Use buildCalculatedMeasure instead.`
|
|
1715
1715
|
);
|
|
1716
|
+
if (!E.sql)
|
|
1717
|
+
throw new Error(
|
|
1718
|
+
`Measure '${E.name}' of type '${E.type}' is missing required 'sql' property. Only calculated measures can omit 'sql'.`
|
|
1719
|
+
);
|
|
1716
1720
|
let R = w(E.sql, e);
|
|
1717
1721
|
if (E.filters && E.filters.length > 0) {
|
|
1718
1722
|
const A = E.filters.map((S) => {
|
|
@@ -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-CkjmApqo.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-CkjmApqo.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)
|
|
@@ -3253,7 +3253,7 @@ function _N({
|
|
|
3253
3253
|
/* @__PURE__ */ d("div", { className: "text-xs mt-1", children: "Please choose a lower granularity for your time dimension" })
|
|
3254
3254
|
] })
|
|
3255
3255
|
}
|
|
3256
|
-
) : /* @__PURE__ */ d("div", { className: "w-full flex
|
|
3256
|
+
) : /* @__PURE__ */ d("div", { className: "w-full flex flex-col relative", style: { height: s, minHeight: "250px", overflow: "hidden", width: "100%" }, children: /* @__PURE__ */ E("div", { ref: o, className: "w-full h-full relative overflow-x-auto", style: { width: "100%" }, children: [
|
|
3257
3257
|
/* @__PURE__ */ d("svg", { ref: i, className: "h-full" }),
|
|
3258
3258
|
!l && /* @__PURE__ */ d("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ d("div", { className: "text-dc-text-muted text-sm", children: "Measuring chart dimensions..." }) })
|
|
3259
3259
|
] }) });
|
|
@@ -19962,4 +19962,4 @@ export {
|
|
|
19962
19962
|
xN as s,
|
|
19963
19963
|
By as w
|
|
19964
19964
|
};
|
|
19965
|
-
//# sourceMappingURL=components-
|
|
19965
|
+
//# sourceMappingURL=components-DnCh4Y4N.js.map
|