react-semaphor 0.1.20 → 0.1.21
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/chunks/{dashboard-plus-B2AC3u4d.js → dashboard-plus-CxeKQLr6.js} +1 -1
- package/dist/chunks/{dashboard-plus-ChHljR8u.js → dashboard-plus-DNG6HyXE.js} +1 -1
- package/dist/chunks/{index-BtWVyX3C.js → index-BXyn0KuU.js} +111 -111
- package/dist/chunks/{index-DAeavWBL.js → index-C3YhLxkw.js} +8070 -8011
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/dashboard.d.ts +22 -0
- package/dist/types/main.d.ts +23 -0
- package/dist/types/surfboard.d.ts +22 -0
- package/dist/types/types.d.ts +22 -0
- package/package.json +1 -1
package/dist/dashboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-BXyn0KuU.js"),r=require("../types/index.cjs");exports.Dashboard=e.Dashboard;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
|
package/dist/dashboard/index.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-BXyn0KuU.js"),v=require("./types/index.cjs"),u=require("./chunks/dashboard-plus-CxeKQLr6.js"),a=require("react/jsx-runtime"),x=require("react");require("react-dom");function j(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const s in r)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}return t.default=r,Object.freeze(t)}const p=j(x);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as x, E as v, F as N, S as w, U as A, a as L, C as _, u as E, b as g, d as P, P as k, e as W, B as F, f as M, g as R, h as V, i as B, j as O, I as Q, k as I, l as j, m as q, n as U, o as z } from "./chunks/index-
|
|
2
|
-
import { D as ne, t as ie, R as de, r as le, r as ce, $ as Ye, K as ue, w as he, y as pe, M as fe, L as me, Q as Me, T as Ce, J as De, v as ge, H as ve, N as ye, G as be, A as Te, z as Se, V as xe, O as Ne, s as we, X as Ae, Z as Le, Y as _e, _ as Ee, x as Pe, p as ke, a1 as We, W as Fe, a0 as Re, q as Ve } from "./chunks/index-
|
|
1
|
+
import { c as x, E as v, F as N, S as w, U as A, a as L, C as _, u as E, b as g, d as P, P as k, e as W, B as F, f as M, g as R, h as V, i as B, j as O, I as Q, k as I, l as j, m as q, n as U, o as z } from "./chunks/index-C3YhLxkw.js";
|
|
2
|
+
import { D as ne, t as ie, R as de, r as le, r as ce, $ as Ye, K as ue, w as he, y as pe, M as fe, L as me, Q as Me, T as Ce, J as De, v as ge, H as ve, N as ye, G as be, A as Te, z as Se, V as xe, O as Ne, s as we, X as Ae, Z as Le, Y as _e, _ as Ee, x as Pe, p as ke, a1 as We, W as Fe, a0 as Re, q as Ve } from "./chunks/index-C3YhLxkw.js";
|
|
3
3
|
import { EMPTY_SELECTION as Oe } from "./types/index.js";
|
|
4
|
-
import { A as Ie, R as je, b as qe, S as Ue, D as ze, a as Ge, V as He, c as $e, g as Ke } from "./chunks/dashboard-plus-
|
|
4
|
+
import { A as Ie, R as je, b as qe, S as Ue, D as ze, a as Ge, V as He, c as $e, g as Ke } from "./chunks/dashboard-plus-DNG6HyXE.js";
|
|
5
5
|
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
6
6
|
import * as h from "react";
|
|
7
7
|
import { useMemo as G } from "react";
|
package/dist/surfboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-CxeKQLr6.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
|
package/dist/surfboard/index.js
CHANGED
|
@@ -347,6 +347,8 @@ export declare type DateOptions = {
|
|
|
347
347
|
options: Intl.DateTimeFormatOptions;
|
|
348
348
|
};
|
|
349
349
|
|
|
350
|
+
declare type DateUnit = 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
351
|
+
|
|
350
352
|
declare type Dialect = 'mysql' | 'postgres' | 'bigquery' | 'redshift' | 'snowflake' | 'clickhouse' | 'duckdb';
|
|
351
353
|
|
|
352
354
|
export declare type DisplayDataType = 'string' | 'date' | 'number' | 'html' | 'none';
|
|
@@ -505,6 +507,7 @@ declare type FilterForCompare = BaseFilter & {
|
|
|
505
507
|
declare type FilterForDate = BaseFilter & {
|
|
506
508
|
operation: 'between' | 'not between';
|
|
507
509
|
values: [Date, Date];
|
|
510
|
+
relativeMeta?: RelativeDateFilter;
|
|
508
511
|
};
|
|
509
512
|
|
|
510
513
|
declare type FilterForEqual = BaseFilter & {
|
|
@@ -752,6 +755,25 @@ declare type RangeValue = {
|
|
|
752
755
|
gt?: string | number;
|
|
753
756
|
};
|
|
754
757
|
|
|
758
|
+
declare type RelativeDateFilter = {
|
|
759
|
+
mode: 'last';
|
|
760
|
+
n: number;
|
|
761
|
+
unit: DateUnit;
|
|
762
|
+
complete?: boolean;
|
|
763
|
+
} | {
|
|
764
|
+
mode: 'this';
|
|
765
|
+
unit: DateUnit;
|
|
766
|
+
toDate?: boolean;
|
|
767
|
+
} | {
|
|
768
|
+
mode: 'previous';
|
|
769
|
+
unit: DateUnit;
|
|
770
|
+
} | {
|
|
771
|
+
mode: 'between';
|
|
772
|
+
unit: DateUnit;
|
|
773
|
+
from: number;
|
|
774
|
+
to: number;
|
|
775
|
+
};
|
|
776
|
+
|
|
755
777
|
declare type SelectedEntities = DatabaseEntityReference[] | DataModelEntityReference[] | FileEntityReference[];
|
|
756
778
|
|
|
757
779
|
export declare type SelectionState = Record<Level, string | null>;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -691,6 +691,8 @@ export declare type DateOptions = {
|
|
|
691
691
|
|
|
692
692
|
export { DateRange }
|
|
693
693
|
|
|
694
|
+
declare type DateUnit = 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
695
|
+
|
|
694
696
|
export declare type Dialect = 'mysql' | 'postgres' | 'bigquery' | 'redshift' | 'snowflake' | 'clickhouse' | 'duckdb';
|
|
695
697
|
|
|
696
698
|
export declare type DisplayDataType = 'string' | 'date' | 'number' | 'html' | 'none';
|
|
@@ -971,6 +973,7 @@ declare type FilterForCompare = BaseFilter & {
|
|
|
971
973
|
declare type FilterForDate = BaseFilter & {
|
|
972
974
|
operation: 'between' | 'not between';
|
|
973
975
|
values: [Date, Date];
|
|
976
|
+
relativeMeta?: RelativeDateFilter;
|
|
974
977
|
};
|
|
975
978
|
|
|
976
979
|
declare type FilterForEqual = BaseFilter & {
|
|
@@ -1330,6 +1333,25 @@ export declare type RangeValue = {
|
|
|
1330
1333
|
gt?: string | number;
|
|
1331
1334
|
};
|
|
1332
1335
|
|
|
1336
|
+
declare type RelativeDateFilter = {
|
|
1337
|
+
mode: 'last';
|
|
1338
|
+
n: number;
|
|
1339
|
+
unit: DateUnit;
|
|
1340
|
+
complete?: boolean;
|
|
1341
|
+
} | {
|
|
1342
|
+
mode: 'this';
|
|
1343
|
+
unit: DateUnit;
|
|
1344
|
+
toDate?: boolean;
|
|
1345
|
+
} | {
|
|
1346
|
+
mode: 'previous';
|
|
1347
|
+
unit: DateUnit;
|
|
1348
|
+
} | {
|
|
1349
|
+
mode: 'between';
|
|
1350
|
+
unit: DateUnit;
|
|
1351
|
+
from: number;
|
|
1352
|
+
to: number;
|
|
1353
|
+
};
|
|
1354
|
+
|
|
1333
1355
|
export declare function resolveDatamodelName(datamodelName: string): string;
|
|
1334
1356
|
|
|
1335
1357
|
export declare const resolveDataType: (value: any) => string;
|
|
@@ -2116,6 +2138,7 @@ export declare function useDateFilterHook(filterId: string): {
|
|
|
2116
2138
|
dateRange: DateRange | undefined;
|
|
2117
2139
|
handleClear: () => void;
|
|
2118
2140
|
handleChange: (date: DateRange | undefined) => void;
|
|
2141
|
+
handleRelativeChange: (date: DateRange | undefined, relativeMeta: RelativeDateFilter) => void;
|
|
2119
2142
|
handleReset: () => void;
|
|
2120
2143
|
};
|
|
2121
2144
|
|
|
@@ -350,6 +350,8 @@ export declare type DateOptions = {
|
|
|
350
350
|
options: Intl.DateTimeFormatOptions;
|
|
351
351
|
};
|
|
352
352
|
|
|
353
|
+
declare type DateUnit = 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
354
|
+
|
|
353
355
|
declare type Dialect = 'mysql' | 'postgres' | 'bigquery' | 'redshift' | 'snowflake' | 'clickhouse' | 'duckdb';
|
|
354
356
|
|
|
355
357
|
export declare type DisplayDataType = 'string' | 'date' | 'number' | 'html' | 'none';
|
|
@@ -508,6 +510,7 @@ declare type FilterForCompare = BaseFilter & {
|
|
|
508
510
|
declare type FilterForDate = BaseFilter & {
|
|
509
511
|
operation: 'between' | 'not between';
|
|
510
512
|
values: [Date, Date];
|
|
513
|
+
relativeMeta?: RelativeDateFilter;
|
|
511
514
|
};
|
|
512
515
|
|
|
513
516
|
declare type FilterForEqual = BaseFilter & {
|
|
@@ -755,6 +758,25 @@ declare type RangeValue = {
|
|
|
755
758
|
gt?: string | number;
|
|
756
759
|
};
|
|
757
760
|
|
|
761
|
+
declare type RelativeDateFilter = {
|
|
762
|
+
mode: 'last';
|
|
763
|
+
n: number;
|
|
764
|
+
unit: DateUnit;
|
|
765
|
+
complete?: boolean;
|
|
766
|
+
} | {
|
|
767
|
+
mode: 'this';
|
|
768
|
+
unit: DateUnit;
|
|
769
|
+
toDate?: boolean;
|
|
770
|
+
} | {
|
|
771
|
+
mode: 'previous';
|
|
772
|
+
unit: DateUnit;
|
|
773
|
+
} | {
|
|
774
|
+
mode: 'between';
|
|
775
|
+
unit: DateUnit;
|
|
776
|
+
from: number;
|
|
777
|
+
to: number;
|
|
778
|
+
};
|
|
779
|
+
|
|
758
780
|
declare type SelectedEntities = DatabaseEntityReference[] | DataModelEntityReference[] | FileEntityReference[];
|
|
759
781
|
|
|
760
782
|
export declare type SelectionState = Record<Level, string | null>;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -344,6 +344,8 @@ export declare type DateOptions = {
|
|
|
344
344
|
options: Intl.DateTimeFormatOptions;
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
+
declare type DateUnit = 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
348
|
+
|
|
347
349
|
declare type Dialect = 'mysql' | 'postgres' | 'bigquery' | 'redshift' | 'snowflake' | 'clickhouse' | 'duckdb';
|
|
348
350
|
|
|
349
351
|
export declare type DisplayDataType = 'string' | 'date' | 'number' | 'html' | 'none';
|
|
@@ -502,6 +504,7 @@ declare type FilterForCompare = BaseFilter & {
|
|
|
502
504
|
declare type FilterForDate = BaseFilter & {
|
|
503
505
|
operation: 'between' | 'not between';
|
|
504
506
|
values: [Date, Date];
|
|
507
|
+
relativeMeta?: RelativeDateFilter;
|
|
505
508
|
};
|
|
506
509
|
|
|
507
510
|
declare type FilterForEqual = BaseFilter & {
|
|
@@ -749,6 +752,25 @@ declare type RangeValue = {
|
|
|
749
752
|
gt?: string | number;
|
|
750
753
|
};
|
|
751
754
|
|
|
755
|
+
declare type RelativeDateFilter = {
|
|
756
|
+
mode: 'last';
|
|
757
|
+
n: number;
|
|
758
|
+
unit: DateUnit;
|
|
759
|
+
complete?: boolean;
|
|
760
|
+
} | {
|
|
761
|
+
mode: 'this';
|
|
762
|
+
unit: DateUnit;
|
|
763
|
+
toDate?: boolean;
|
|
764
|
+
} | {
|
|
765
|
+
mode: 'previous';
|
|
766
|
+
unit: DateUnit;
|
|
767
|
+
} | {
|
|
768
|
+
mode: 'between';
|
|
769
|
+
unit: DateUnit;
|
|
770
|
+
from: number;
|
|
771
|
+
to: number;
|
|
772
|
+
};
|
|
773
|
+
|
|
752
774
|
declare type SelectedEntities = DatabaseEntityReference[] | DataModelEntityReference[] | FileEntityReference[];
|
|
753
775
|
|
|
754
776
|
export declare type SelectionState = Record<Level, string | null>;
|