react-semaphor 0.1.530 → 0.1.531

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.
@@ -1,4 +1,4 @@
1
- import { D as o } from "../chunks/dashboard-BC-EC5M_.js";
1
+ import { D as o } from "../chunks/dashboard-BHMHze_t.js";
2
2
  import { C as s, E as C } from "../chunks/common-types-C6cAQgyh.js";
3
3
  export {
4
4
  s as CONTROL_CARD_DEFAULT_VALUE,
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
- import { D as j } from "./chunks/dashboard-BC-EC5M_.js";
1
+ import { D as j } from "./chunks/dashboard-BHMHze_t.js";
2
2
  import { C as Ze, E as ea } from "./chunks/common-types-C6cAQgyh.js";
3
- import { a as ta, R as ra, D as sa } from "./chunks/report-preferences-dialog-DFpOrZ02.js";
3
+ import { a as ta, R as ra, D as sa } from "./chunks/report-preferences-dialog-D2Tz_5WT.js";
4
4
  import { jsx as n, jsxs as C } from "react/jsx-runtime";
5
- import { E as _, F as k, S as I, a as M, U as O, c as U, C as V, V as z, d as $, e as H, f as W, g as q, I as K, R as Q, h as G, i as Y, j as J, k as X } from "./chunks/semaphor-ready-indicator-DBb9d0Xp.js";
6
- import { ak as na, al as ia, am as la, B as ca, T as ua, A as da, y as pa, x as fa, at as ha, M as ma, m as ga, p as Ca, p as ya, q as ba, z as Ea, af as Da, ah as va, ai as Aa, ag as xa, a6 as wa, a9 as Sa, as as Ta, Z as Ba, ae as Na, ao as _a, a1 as Fa, aa as Pa, w as Ra, v as La, aw as ja, Y as ka, ab as Ia, ac as Ma, a5 as Oa, a8 as Ua, ar as Va, aq as za, ap as $a, av as Ha, au as Wa, a7 as qa, X as Ka, W as Qa, $ as Ga, ad as Ya, a3 as Ja, a0 as Xa, a2 as Za, a4 as et, _ as at, O as tt, K as rt, an as st, t as ot, H as nt, s as it, l as lt, G as ct, J as ut, n as dt, Q as pt, N as ft, L as ht, P as mt, u as gt, r as Ct, o as yt, aj as bt } from "./chunks/semaphor-ready-indicator-DBb9d0Xp.js";
7
- import { u as Z, P as ee, a as ae, B as te, c as B, b as re, d as se } from "./chunks/switch-Bql-RCoZ.js";
8
- import { a1 as Dt, M as vt, z as At, A as xt, E as wt, O as St, N as Tt, W as Bt, X as Nt, K as _t, D as Ft, J as Pt, Q as Rt, H as Lt, G as jt, F as kt, Y as It, V as Mt, Z as Ot, $ as Ut, _ as Vt, a0 as zt, a3 as $t, a2 as Ht } from "./chunks/switch-Bql-RCoZ.js";
5
+ import { E as _, F as k, S as I, a as M, U as O, c as U, C as V, V as z, d as $, e as H, f as W, g as q, I as K, R as Q, h as G, i as Y, j as J, k as X } from "./chunks/semaphor-ready-indicator-CpbyewzC.js";
6
+ import { ak as na, al as ia, am as la, B as ca, T as ua, A as da, y as pa, x as fa, at as ha, M as ma, m as ga, p as Ca, p as ya, q as ba, z as Ea, af as Da, ah as va, ai as Aa, ag as xa, a6 as wa, a9 as Sa, as as Ta, Z as Ba, ae as Na, ao as _a, a1 as Fa, aa as Pa, w as Ra, v as La, aw as ja, Y as ka, ab as Ia, ac as Ma, a5 as Oa, a8 as Ua, ar as Va, aq as za, ap as $a, av as Ha, au as Wa, a7 as qa, X as Ka, W as Qa, $ as Ga, ad as Ya, a3 as Ja, a0 as Xa, a2 as Za, a4 as et, _ as at, O as tt, K as rt, an as st, t as ot, H as nt, s as it, l as lt, G as ct, J as ut, n as dt, Q as pt, N as ft, L as ht, P as mt, u as gt, r as Ct, o as yt, aj as bt } from "./chunks/semaphor-ready-indicator-CpbyewzC.js";
7
+ import { u as Z, P as ee, a as ae, B as te, c as B, b as re, d as se } from "./chunks/switch-JmX27lNB.js";
8
+ import { a1 as Dt, M as vt, z as At, A as xt, E as wt, O as St, N as Tt, W as Bt, X as Nt, K as _t, D as Ft, J as Pt, Q as Rt, H as Lt, G as jt, F as kt, Y as It, V as Mt, Z as Ot, $ as Ut, _ as Vt, a0 as zt, a3 as $t, a2 as Ht } from "./chunks/switch-JmX27lNB.js";
9
9
  import * as w from "react";
10
10
  import F, { useMemo as oe, useEffect as P } from "react";
11
11
  import { D as qt } from "./chunks/token-types-Brc30mNN.js";
12
12
  import { C as Qt, D as Gt, L as Yt, P as Jt, f as Xt, g as Zt, k as er, j as ar, l as tr, e as rr, c as sr, b as or, d as nr, n as ir, h as lr } from "./chunks/validators-BS521dum.js";
13
- import { A as ur, h as dr, D as pr, f as fr, g as hr, e as mr, b as gr, E as Cr, N as yr, U as br, a as Er, V as Dr, W as vr, u as Ar, c as xr, d as wr } from "./chunks/dashboard-briefing-launcher-CwyFda8i.js";
13
+ import { A as ur, h as dr, D as pr, f as fr, g as hr, e as mr, b as gr, E as Cr, N as yr, U as br, a as Er, V as Dr, W as vr, u as Ar, c as xr, d as wr } from "./chunks/dashboard-briefing-launcher-nHbT_XPG.js";
14
14
  import { u as Tr } from "./chunks/use-debounced-dirty-check-BwAbnX_5.js";
15
15
  import { createRoot as ne } from "react-dom/client";
16
- import "./chunks/slider-BibKRCxX.js";
16
+ import "./chunks/slider-p0D5yTI_.js";
17
17
  import "./chunks/matrix-operation-contract-BotZ-6zT.js";
18
18
  import "zod";
19
19
  import "./chunks/matrix-continuation-C4sRcjZU.js";
@@ -1,4 +1,4 @@
1
- import { a, R as s, D as o } from "../chunks/report-preferences-dialog-DFpOrZ02.js";
1
+ import { a, R as s, D as o } from "../chunks/report-preferences-dialog-D2Tz_5WT.js";
2
2
  import { C as f, E as D } from "../chunks/common-types-C6cAQgyh.js";
3
3
  export {
4
4
  f as CONTROL_CARD_DEFAULT_VALUE,
@@ -4,7 +4,8 @@ export type TemporalFilterCapability = 'date-only' | 'datetime' | 'unknown';
4
4
  /**
5
5
  * Mirrors the governed comparison extractor's finite-window contract for
6
6
  * dashboard date controls: one date-valued `between` filter with two valid,
7
- * increasing bounds. Other date operators remain ordinary row constraints.
7
+ * increasing bounds, or "Is exactly" a calendar date (a whole day). Other
8
+ * date operators remain ordinary row constraints.
8
9
  */
9
10
  export declare function hasFiniteDateComparisonRange(filterValue: TFilterValue | undefined): boolean;
10
11
  export declare function getTemporalFilterCapability(dataType: unknown): TemporalFilterCapability;
@@ -31,6 +32,16 @@ export declare function formatTimeInTimezone(date: Date, timezone: string): stri
31
32
  export declare function composeDateTimeInTimezone(date: Date, time: string, timezone: string, options?: {
32
33
  boundary?: 'start' | 'end';
33
34
  }): Date | null;
35
+ /**
36
+ * The value a single-date filter stores. At day precision, "is exactly" and
37
+ * "is not exactly" store the picked calendar day (`YYYY-MM-DD` in the report
38
+ * timezone), which the server runs as that whole day; every other single-date
39
+ * operator, and minute precision, stores the instant as given.
40
+ */
41
+ export declare function normalizeDateFilterSingleValue(date: Date, operation: string, options: {
42
+ temporalPrecision?: TemporalPrecision;
43
+ timezone: string;
44
+ }): Date | string;
34
45
  /**
35
46
  * The range a date filter stores. At day precision, a single day (a start
36
47
  * with no end, or an end equal to the start) becomes that whole calendar day
@@ -0,0 +1,18 @@
1
+ /** An `=` or `!=` predicate whose one value names a calendar day. */
2
+ export type CalendarDayEquality = {
3
+ operation: '=' | '!=';
4
+ /** A `YYYY-MM-DD` date that names a real day. */
5
+ day: string;
6
+ };
7
+ /**
8
+ * The calendar-day equality a predicate states, or null: operator `=` or
9
+ * `!=`, exactly one value (an array of one, or a card condition's single
10
+ * value), that value a `YYYY-MM-DD` date naming a real day, and no minute
11
+ * precision. Instants, other operators and other value shapes are null. The
12
+ * data type is the caller's concern.
13
+ */
14
+ export declare function readCalendarDayEquality(predicate: {
15
+ operation: unknown;
16
+ values: unknown;
17
+ temporalPrecision?: unknown;
18
+ }): CalendarDayEquality | null;
@@ -2,4 +2,5 @@ export * from './zoned-wall-clock.js';
2
2
  export * from './calendar-periods.js';
3
3
  export * from './relative-date.js';
4
4
  export * from './time-window-periods.js';
5
+ export * from './calendar-day-equality.js';
5
6
  export * from './temporal-parity-fixtures.js';
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.530",
8
+ "version": "0.1.531",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",