drizzle-cube 0.1.40 → 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.
@@ -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-BNrqoxJZ.js";
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,4 +1,4 @@
1
- import { S as j, c as i, f as q, a as $, b as h, h as v } from "../compiler-BNrqoxJZ.js";
1
+ import { S as j, c as i, f as q, a as $, b as h, h as v } from "../compiler-CkjmApqo.js";
2
2
  const Q = function(a, C, p) {
3
3
  const {
4
4
  cubes: g,
@@ -1,5 +1,5 @@
1
1
  import { Hono as w } from "hono";
2
- import { S as x, f as g, a as Q, b as j, h as p } from "../compiler-BNrqoxJZ.js";
2
+ import { S as x, f as g, a as Q, b as j, h as p } from "../compiler-CkjmApqo.js";
3
3
  var v = (d) => {
4
4
  const u = {
5
5
  ...{
@@ -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-BNrqoxJZ.js";
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-1 flex flex-col relative", style: { height: s, minHeight: "250px", overflow: "hidden" }, children: /* @__PURE__ */ E("div", { ref: o, className: "w-full h-full relative overflow-x-auto", children: [
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-D6NT6kRL.js.map
19965
+ //# sourceMappingURL=components-DnCh4Y4N.js.map