drizzle-cube 0.11.0 → 0.11.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.
Files changed (25) hide show
  1. package/dist/cjs/client/components/AnalysisBuilder/types.d.ts +4 -0
  2. package/dist/cjs/client/components/AnalysisBuilder/utils/queryUtils.d.ts +6 -1
  3. package/dist/cjs/client/types.d.ts +2 -0
  4. package/dist/client/chunks/{DashboardEditModal-CIR4aqr7.js → DashboardEditModal-DifODH4h.js} +3 -3
  5. package/dist/client/chunks/DashboardEditModal-DifODH4h.js.map +1 -0
  6. package/dist/client/chunks/{analysis-builder-DJNYt7CF.js → analysis-builder-D78aDJoL.js} +4 -4
  7. package/dist/client/chunks/analysis-builder-D78aDJoL.js.map +1 -0
  8. package/dist/client/chunks/{analysis-builder-shared-DPLR8upd.js → analysis-builder-shared-CsIs4-Xf.js} +56 -45
  9. package/dist/client/chunks/analysis-builder-shared-CsIs4-Xf.js.map +1 -0
  10. package/dist/client/chunks/{useDirtyStateTracking-DSkxAJ29.js → useDirtyStateTracking-DUyYwuN_.js} +2 -2
  11. package/dist/client/chunks/useDirtyStateTracking-DUyYwuN_.js.map +1 -0
  12. package/dist/client/chunks/{useExplainAI-DRCIVcbu.js → useExplainAI-BtoS3tb5.js} +2 -2
  13. package/dist/client/chunks/{useExplainAI-DRCIVcbu.js.map → useExplainAI-BtoS3tb5.js.map} +1 -1
  14. package/dist/client/components/AnalysisBuilder/types.d.ts +4 -0
  15. package/dist/client/components/AnalysisBuilder/utils/queryUtils.d.ts +6 -1
  16. package/dist/client/components.js +1 -1
  17. package/dist/client/hooks.js +2 -2
  18. package/dist/client/index.js +4 -4
  19. package/dist/client/types.d.ts +2 -0
  20. package/dist/client-bundle-stats.html +1 -1
  21. package/package.json +1 -1
  22. package/dist/client/chunks/DashboardEditModal-CIR4aqr7.js.map +0 -1
  23. package/dist/client/chunks/analysis-builder-DJNYt7CF.js.map +0 -1
  24. package/dist/client/chunks/analysis-builder-shared-DPLR8upd.js.map +0 -1
  25. package/dist/client/chunks/useDirtyStateTracking-DSkxAJ29.js.map +0 -1
@@ -31,6 +31,8 @@ export interface BreakdownItem {
31
31
  isTimeDimension: boolean;
32
32
  /** Enable period comparison for time dimensions (compares current filter period vs prior period) */
33
33
  enableComparison?: boolean;
34
+ /** Whether to fill missing buckets for this time dimension. */
35
+ fillMissingDates?: boolean;
34
36
  }
35
37
  /** Validation status for query building */
36
38
  export type ValidationStatus = 'idle' | 'validating' | 'valid' | 'invalid';
@@ -54,6 +56,8 @@ export interface AnalysisBuilderState {
54
56
  order?: Record<string, 'asc' | 'desc'>;
55
57
  /** Row limit for the query (sent to server) */
56
58
  limit?: number;
59
+ /** Value for filled time buckets; `null` leaves a gap. Unset fills with 0. */
60
+ fillMissingDatesValue?: number | null;
57
61
  validationStatus: ValidationStatus;
58
62
  validationError: string | null;
59
63
  }
@@ -9,8 +9,13 @@ export declare function buildCubeQuery(metrics: MetricItem[], breakdowns: Breakd
9
9
  * Record-grain charts list rows rather than aggregates — see
10
10
  * `ChartTypeConfig.recordGrain`. Without this, editing a records-table
11
11
  * portlet in the builder silently rebuilds its query as a grouped one.
12
+ *
13
+ * The server rejects period comparison and `fillMissingDates: true` on an
14
+ * ungrouped query, so it leaves both out and keeps the date filter. The
15
+ * breakdowns keep both settings for when the chart switches back. An
16
+ * explicit `fillMissingDates: false` stays, since the server accepts it.
12
17
  */
13
- ungrouped?: boolean): CubeQuery;
18
+ ungrouped?: boolean, fillMissingDatesValue?: number | null): CubeQuery;
14
19
  /**
15
20
  * Check if a query has any content
16
21
  */
@@ -403,6 +403,8 @@ export interface CubeQuery {
403
403
  limit?: number;
404
404
  offset?: number;
405
405
  segments?: string[];
406
+ /** Value for filled time buckets; `null` leaves a gap. Unset fills with 0. */
407
+ fillMissingDatesValue?: number | null;
406
408
  /** When true, returns raw row-level data without GROUP BY or aggregation */
407
409
  ungrouped?: boolean;
408
410
  /**
@@ -5,7 +5,7 @@ import { r as x } from "./chart-sankey-CFXPybny.js";
5
5
  import { a as S, l as C, s as w } from "./retention-ChW9jYdy.js";
6
6
  import { i as T, t as E } from "./chart-markdown-DtgpU3xd.js";
7
7
  import { c as D, f as O, n as k, o as A, p as j, r as M, t as N } from "./dashboardExport-Db3rmUP1.js";
8
- import { A as ee, D as P, E as F, L as I, S as te, T as L, a as R, d as ne, i as re, l as z, n as ie, r as ae, s as B, t as oe, u as se, w as ce, x as le } from "./useDirtyStateTracking-DSkxAJ29.js";
8
+ import { A as ee, D as P, E as F, L as I, S as te, T as L, a as R, d as ne, i as re, l as z, n as ie, r as ae, s as B, t as oe, u as se, w as ce, x as le } from "./useDirtyStateTracking-DUyYwuN_.js";
9
9
  import { B as ue, F as V, R as H } from "./chart-activity-grid-Ly_-2B-f.js";
10
10
  import { o as de } from "./gapFilling-DKBRHcQL.js";
11
11
  import { a as fe, t as pe } from "./charts-loader-DoLQqFXg.js";
@@ -10252,7 +10252,7 @@ var us = ({ isOpen: e, onClose: t, title: n, size: r = "md", closeOnBackdropClic
10252
10252
  ]
10253
10253
  })
10254
10254
  }) : null;
10255
- }, ds = G(() => import("./analysis-builder-DJNYt7CF.js")), fs = W((e, t) => /* @__PURE__ */ Q(be, {
10255
+ }, ds = G(() => import("./analysis-builder-D78aDJoL.js")), fs = W((e, t) => /* @__PURE__ */ Q(be, {
10256
10256
  fallback: /* @__PURE__ */ Q("div", {
10257
10257
  className: "dc:flex dc:items-center dc:justify-center dc:w-full dc:py-6",
10258
10258
  children: /* @__PURE__ */ Q(me, {})
@@ -12610,4 +12610,4 @@ function Fc({ isOpen: e, onClose: t, onSave: n, title: r, submitText: i, initial
12610
12610
  //#endregion
12611
12611
  export { Jt as $, Qr as A, An as B, qi as C, mi as D, Oi as E, xn as F, En as G, Mn as H, _n as I, Sn as J, kn as K, Fn as L, Gn as M, Ln as N, fi as O, In as P, $t as Q, On as R, aa as S, Ki as T, Dn as U, Tn as V, jn as W, wn as X, Cn as Y, pn as Z, ka as _, jc as a, ke as at, Yi as b, gc as c, bs as d, zt as et, gs as f, es as g, ls as h, Mc as i, Pe as it, Kn as j, ai as k, Os as l, us as m, Pc as n, Be as nt, Dc as o, Ae as ot, fs as p, Pn as q, Nc as r, je as rt, yc as s, Fc as t, xt as tt, ws as u, Sa as v, Ji as w, Xi as x, xa as y, Nn as z };
12612
12612
 
12613
- //# sourceMappingURL=DashboardEditModal-CIR4aqr7.js.map
12613
+ //# sourceMappingURL=DashboardEditModal-DifODH4h.js.map