react-semaphor 0.0.653 → 0.0.654
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-Wl6Adxyp.js → dashboard-plus-D3dnsw9E.js} +6337 -6482
- package/dist/chunks/dashboard-plus-pGIT-28z.js +340 -0
- package/dist/chunks/{index-DNizwm8l.js → index-CfHeyJ7m.js} +110 -110
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +37 -34
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/main.d.ts +22 -0
- package/package.json +1 -1
- package/dist/chunks/dashboard-plus-Baywdj6a.js +0 -345
|
@@ -100465,30 +100465,30 @@ export {
|
|
|
100465
100465
|
Me as b7,
|
|
100466
100466
|
lQe as b8,
|
|
100467
100467
|
hQe as b9,
|
|
100468
|
-
|
|
100469
|
-
|
|
100470
|
-
|
|
100471
|
-
|
|
100472
|
-
|
|
100473
|
-
|
|
100474
|
-
|
|
100475
|
-
|
|
100476
|
-
|
|
100477
|
-
|
|
100478
|
-
|
|
100479
|
-
|
|
100480
|
-
|
|
100481
|
-
|
|
100482
|
-
|
|
100483
|
-
|
|
100484
|
-
|
|
100485
|
-
|
|
100486
|
-
|
|
100487
|
-
|
|
100488
|
-
|
|
100489
|
-
|
|
100490
|
-
|
|
100491
|
-
|
|
100468
|
+
nP as bA,
|
|
100469
|
+
eP as bB,
|
|
100470
|
+
oP as bC,
|
|
100471
|
+
rP as bD,
|
|
100472
|
+
Ma as bE,
|
|
100473
|
+
jKe as bF,
|
|
100474
|
+
J3 as bG,
|
|
100475
|
+
YKe as bH,
|
|
100476
|
+
Tr as bI,
|
|
100477
|
+
Ul as bJ,
|
|
100478
|
+
fo as bK,
|
|
100479
|
+
QKe as bL,
|
|
100480
|
+
dg as bM,
|
|
100481
|
+
XKe as bN,
|
|
100482
|
+
ik as bO,
|
|
100483
|
+
Q3 as bP,
|
|
100484
|
+
W9 as bQ,
|
|
100485
|
+
DP as bR,
|
|
100486
|
+
Hle as bS,
|
|
100487
|
+
nie as bT,
|
|
100488
|
+
yL as bU,
|
|
100489
|
+
sXe as bV,
|
|
100490
|
+
sFe as bW,
|
|
100491
|
+
Fne as bX,
|
|
100492
100492
|
fL as bY,
|
|
100493
100493
|
c0 as bZ,
|
|
100494
100494
|
Wi as b_,
|
|
@@ -100501,25 +100501,25 @@ export {
|
|
|
100501
100501
|
Za as bg,
|
|
100502
100502
|
mr as bh,
|
|
100503
100503
|
ho as bi,
|
|
100504
|
-
|
|
100505
|
-
|
|
100506
|
-
|
|
100507
|
-
|
|
100508
|
-
|
|
100509
|
-
|
|
100510
|
-
|
|
100511
|
-
|
|
100512
|
-
|
|
100513
|
-
|
|
100514
|
-
|
|
100515
|
-
|
|
100516
|
-
|
|
100517
|
-
|
|
100518
|
-
|
|
100519
|
-
|
|
100520
|
-
|
|
100504
|
+
dc as bj,
|
|
100505
|
+
Pi as bk,
|
|
100506
|
+
uc as bl,
|
|
100507
|
+
ah as bm,
|
|
100508
|
+
Gx as bn,
|
|
100509
|
+
TXe as bo,
|
|
100510
|
+
ec as bp,
|
|
100511
|
+
Fl as bq,
|
|
100512
|
+
sh as br,
|
|
100513
|
+
Vte as bs,
|
|
100514
|
+
HYe as bt,
|
|
100515
|
+
WYe as bu,
|
|
100516
|
+
nU as bv,
|
|
100517
|
+
gW as bw,
|
|
100518
|
+
QR as bx,
|
|
100519
|
+
JR as by,
|
|
100520
|
+
tP as bz,
|
|
100521
100521
|
K$e as c,
|
|
100522
|
-
|
|
100522
|
+
gAe as c$,
|
|
100523
100523
|
wi as c0,
|
|
100524
100524
|
Gi as c1,
|
|
100525
100525
|
gM as c2,
|
|
@@ -100530,33 +100530,33 @@ export {
|
|
|
100530
100530
|
wM as c7,
|
|
100531
100531
|
Hfe as c8,
|
|
100532
100532
|
_9 as c9,
|
|
100533
|
-
|
|
100534
|
-
|
|
100535
|
-
|
|
100536
|
-
|
|
100537
|
-
|
|
100538
|
-
|
|
100539
|
-
|
|
100540
|
-
|
|
100541
|
-
|
|
100542
|
-
|
|
100543
|
-
|
|
100544
|
-
|
|
100545
|
-
|
|
100546
|
-
|
|
100547
|
-
|
|
100548
|
-
|
|
100549
|
-
|
|
100550
|
-
|
|
100551
|
-
|
|
100552
|
-
|
|
100553
|
-
|
|
100554
|
-
|
|
100555
|
-
|
|
100556
|
-
|
|
100557
|
-
|
|
100558
|
-
|
|
100559
|
-
|
|
100533
|
+
C3 as cA,
|
|
100534
|
+
lge as cB,
|
|
100535
|
+
xQe as cC,
|
|
100536
|
+
LKe as cD,
|
|
100537
|
+
lw as cE,
|
|
100538
|
+
gr as cF,
|
|
100539
|
+
VFe as cG,
|
|
100540
|
+
a$ as cH,
|
|
100541
|
+
KXe as cI,
|
|
100542
|
+
Dte as cJ,
|
|
100543
|
+
ab as cK,
|
|
100544
|
+
cw as cL,
|
|
100545
|
+
see as cM,
|
|
100546
|
+
Vke as cN,
|
|
100547
|
+
jke as cO,
|
|
100548
|
+
KN as cP,
|
|
100549
|
+
ISe as cQ,
|
|
100550
|
+
Gw as cR,
|
|
100551
|
+
PV as cS,
|
|
100552
|
+
Ts as cT,
|
|
100553
|
+
Nq as cU,
|
|
100554
|
+
hL as cV,
|
|
100555
|
+
gL as cW,
|
|
100556
|
+
Qf as cX,
|
|
100557
|
+
VR as cY,
|
|
100558
|
+
qv as cZ,
|
|
100559
|
+
jR as c_,
|
|
100560
100560
|
tf as ca,
|
|
100561
100561
|
oS as cb,
|
|
100562
100562
|
Qi as cc,
|
|
@@ -100576,25 +100576,25 @@ export {
|
|
|
100576
100576
|
Ch as cq,
|
|
100577
100577
|
tc as cr,
|
|
100578
100578
|
l0 as cs,
|
|
100579
|
-
|
|
100580
|
-
|
|
100581
|
-
|
|
100582
|
-
|
|
100583
|
-
|
|
100584
|
-
|
|
100585
|
-
|
|
100579
|
+
ig as ct,
|
|
100580
|
+
gx as cu,
|
|
100581
|
+
bx as cv,
|
|
100582
|
+
yx as cw,
|
|
100583
|
+
bf as cx,
|
|
100584
|
+
Dh as cy,
|
|
100585
|
+
vQe as cz,
|
|
100586
100586
|
zXe as d,
|
|
100587
100587
|
iue as d$,
|
|
100588
|
-
|
|
100589
|
-
|
|
100590
|
-
|
|
100591
|
-
|
|
100592
|
-
|
|
100593
|
-
|
|
100594
|
-
|
|
100595
|
-
|
|
100596
|
-
|
|
100597
|
-
|
|
100588
|
+
h4 as d0,
|
|
100589
|
+
pH as d1,
|
|
100590
|
+
Rs as d2,
|
|
100591
|
+
L0 as d3,
|
|
100592
|
+
jee as d4,
|
|
100593
|
+
An as d5,
|
|
100594
|
+
BKe as d6,
|
|
100595
|
+
X3 as d7,
|
|
100596
|
+
Bke as d8,
|
|
100597
|
+
kte as d9,
|
|
100598
100598
|
dKe as dA,
|
|
100599
100599
|
fKe as dB,
|
|
100600
100600
|
hKe as dC,
|
|
@@ -100622,30 +100622,30 @@ export {
|
|
|
100622
100622
|
bi as dY,
|
|
100623
100623
|
S5e as dZ,
|
|
100624
100624
|
tz as d_,
|
|
100625
|
-
|
|
100626
|
-
|
|
100627
|
-
|
|
100628
|
-
|
|
100629
|
-
|
|
100630
|
-
|
|
100631
|
-
|
|
100632
|
-
|
|
100633
|
-
|
|
100634
|
-
|
|
100635
|
-
|
|
100636
|
-
|
|
100637
|
-
|
|
100638
|
-
|
|
100639
|
-
|
|
100640
|
-
|
|
100641
|
-
|
|
100642
|
-
|
|
100643
|
-
|
|
100644
|
-
|
|
100645
|
-
|
|
100646
|
-
|
|
100647
|
-
|
|
100648
|
-
|
|
100625
|
+
_Me as da,
|
|
100626
|
+
ite as db,
|
|
100627
|
+
Bte as dc,
|
|
100628
|
+
EMe as dd,
|
|
100629
|
+
SMe as de,
|
|
100630
|
+
NMe as df,
|
|
100631
|
+
nte as dg,
|
|
100632
|
+
hte as dh,
|
|
100633
|
+
CMe as di,
|
|
100634
|
+
ste as dj,
|
|
100635
|
+
Ate as dk,
|
|
100636
|
+
ate as dl,
|
|
100637
|
+
rte as dm,
|
|
100638
|
+
tte as dn,
|
|
100639
|
+
Qee as dp,
|
|
100640
|
+
rU as dq,
|
|
100641
|
+
_0 as dr,
|
|
100642
|
+
pXe as ds,
|
|
100643
|
+
XN as dt,
|
|
100644
|
+
Gv as du,
|
|
100645
|
+
tx as dv,
|
|
100646
|
+
fte as dw,
|
|
100647
|
+
IXe as dx,
|
|
100648
|
+
YK as dy,
|
|
100649
100649
|
SQe as dz,
|
|
100650
100650
|
VXe as e,
|
|
100651
100651
|
Y8 as e$,
|
package/dist/dashboard/index.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-ClRvasId.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-ClRvasId.js"),C=require("./types/index.cjs"),s=require("./chunks/dashboard-plus-pGIT-28z.js"),o=require("react/jsx-runtime"),T=require("react");require("react-dom");function h(a){const{displayPreferences:i,...u}=a,d={...u,id:a.dashboardId};return o.jsx(e.ErrorBoundary,{FallbackComponent:e.Fallback,children:o.jsx(e.SemaphorContextProvider,{dashboardProps:d,children:o.jsx(e.UXProvider,{children:o.jsx(e.DisplayPreferencesProvider,{displayPreferences:i,children:o.jsx(e.Container,{type:"visual",...d,children:o.jsx(g,{cardId:a.cardId})})})})})})}function g({cardId:a}){const i=e.useDashboardStore(t=>{var n;return(n=t.dashboard)==null?void 0:n.sheets}),{card:u,frame:d}=T.useMemo(()=>{const t=i==null?void 0:i.flatMap(r=>r.frames),n=t==null?void 0:t.flatMap(r=>r==null?void 0:r.cards),c=n==null?void 0:n.find(r=>(r==null?void 0:r.id)===a),M=t==null?void 0:t.find(r=>{var Y;return(Y=r==null?void 0:r.cards)==null?void 0:Y.find(l=>(l==null?void 0:l.id)===a)});return{card:c,frame:M}},[i,a]);return!u||!d?o.jsx(e.FallbackVisual,{error:new Error("Card not found"),resetErrorBoundary:()=>{},customerFacingMessage:`Card not found with ID: ${a}`}):o.jsx("main",{className:"flex h-full grow flex-col",children:o.jsx(e.ErrorBoundary,{FallbackComponent:({error:t,resetErrorBoundary:n})=>o.jsx(e.FallbackVisual,{error:t,resetErrorBoundary:n,customerFacingMessage:"Error creating visual. Please try again."}),children:o.jsx(e.DashboardCard,{card:u,frame:d})})})}const S=["MM-DD-YYYY","YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY","MMMM DD, YYYY","MMM DD, YYYY","DD MMM YYYY","Week of MMM DD, YYYY","Week of MMMM DD, YYYY","YYYY-WW","MMM YYYY","MMMM YYYY","YYYY-MM","MM/YYYY","YYYY MMM","Q1 YYYY","YYYY Q1","1st Quarter YYYY","YYYY-Q1","Quarter 1, YYYY","YYYY","YY","custom"];var D=(a=>(a.SUBTOTAL="__SUBTOTAL__",a.TOTAL="__TOTAL__",a.ALL="__ALL__",a))(D||{});exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.ResourceType=e.ResourceType;exports.SemaphorContextProvider=e.SemaphorContextProvider;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.createSqlGenConfig=e.createSqlGenConfig;exports.downloadPdf=e.downloadPdf;exports.fmt=e.fmt;exports.getColumnDataType=e.getColumnDataType;exports.getFilterValueType=e.getFilterValueType;exports.getFormattedTableNameForQuery=e.getFormattedTableNameForQuery;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.invalidateToken=e.invalidateToken;exports.isBooleanDataType=e.isBooleanDataType;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.isDateDataType=e.isDateDataType;exports.isNumberDataType=e.isNumberDataType;exports.isTextDataType=e.isTextDataType;exports.resolveDataType=e.resolveDataType;exports.resolveDatamodelName=e.resolveDatamodelName;exports.useCard=e.useCard;exports.useCurrentActiveCard=e.useCurrentActiveCard;exports.useCurrentCardConfig=e.useCurrentCardConfig;exports.useCurrentSheetActiveCards=e.useCurrentSheetActiveCards;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useDataColumns=e.useDataColumns;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorActions=e.useEditorActions;exports.useEditorAside=e.useEditorAside;exports.useEditorStore=e.useEditorStore;exports.useTextFilterHook=e.useTextFilterHook;exports.EMPTY_SELECTION=C.EMPTY_SELECTION;exports.AdvancedModeToggle=s.AdvancedModeToggle;exports.ResourceManagementPanel=s.ResourceManagementPanel;exports.ScheduleDashboard=s.ScheduleDashboard;exports.SelectComponent=s.SelectComponent;exports.ShareDialog=s.ShareDialog;exports.Surfboard=s.DashboardPlus;exports.VisualBadge=s.VisualBadge;exports.VisualEditingControls=s.VisualEditingControls;exports.cleanCard=s.cleanCard;exports.getDashbaordStateWithoutData=s.getDashbaordStateWithoutData;exports.DATE_FORMAT_VALUES=S;exports.PivotMarkerEnum=D;exports.Visual=h;
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { E as
|
|
2
|
-
import { D as L, h as k, R as Q, f as
|
|
3
|
-
import { EMPTY_SELECTION as
|
|
4
|
-
import {
|
|
1
|
+
import { E as u, F as c, S as h, U as f, a as p, C as T, u as m, b as l, c as C } from "./chunks/index-CfHeyJ7m.js";
|
|
2
|
+
import { D as L, h as k, R as Q, f as V, f as B, r as w, j as N, l as O, t as W, s as R, x as U, y as q, q as I, i as G, p as H, v as j, o as z, n as J, m as K, z as X, w as $, g as Z, B as aa, H as ea, G as sa, I as ra, k as oa, d as ta, K as Ya, A as na, J as ia, e as da } from "./chunks/index-CfHeyJ7m.js";
|
|
3
|
+
import { EMPTY_SELECTION as ua } from "./types/index.js";
|
|
4
|
+
import { A as Da, R as ca, b as ha, c as fa, S as pa, D as Ta, a as ma, V as Ca, d as ga, g as ba } from "./chunks/dashboard-plus-D3dnsw9E.js";
|
|
5
5
|
import { jsx as s } from "react/jsx-runtime";
|
|
6
|
-
import { useMemo as
|
|
6
|
+
import { useMemo as g } from "react";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
function
|
|
8
|
+
function E(a) {
|
|
9
9
|
const { displayPreferences: t, ...n } = a, Y = {
|
|
10
10
|
...n,
|
|
11
11
|
id: a.dashboardId
|
|
12
12
|
// override the id to the dashboard id so that the dashboard is not loaded
|
|
13
13
|
};
|
|
14
|
-
return /* @__PURE__ */ s(
|
|
14
|
+
return /* @__PURE__ */ s(u, { FallbackComponent: c, children: /* @__PURE__ */ s(h, { dashboardProps: Y, children: /* @__PURE__ */ s(f, { children: /* @__PURE__ */ s(p, { displayPreferences: t, children: /* @__PURE__ */ s(T, { type: "visual", ...Y, children: /* @__PURE__ */ s(b, { cardId: a.cardId }) }) }) }) }) });
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
const t =
|
|
16
|
+
function b({ cardId: a }) {
|
|
17
|
+
const t = m((r) => {
|
|
18
18
|
var o;
|
|
19
19
|
return (o = r.dashboard) == null ? void 0 : o.sheets;
|
|
20
|
-
}), { card: n, frame: Y } =
|
|
20
|
+
}), { card: n, frame: Y } = g(() => {
|
|
21
21
|
const r = t == null ? void 0 : t.flatMap((e) => e.frames), o = r == null ? void 0 : r.flatMap((e) => e == null ? void 0 : e.cards), M = o == null ? void 0 : o.find((e) => (e == null ? void 0 : e.id) === a), D = r == null ? void 0 : r.find(
|
|
22
22
|
(e) => {
|
|
23
23
|
var d;
|
|
@@ -27,7 +27,7 @@ function S({ cardId: a }) {
|
|
|
27
27
|
return { card: M, frame: D };
|
|
28
28
|
}, [t, a]);
|
|
29
29
|
return !n || !Y ? /* @__PURE__ */ s(
|
|
30
|
-
|
|
30
|
+
l,
|
|
31
31
|
{
|
|
32
32
|
error: new Error("Card not found"),
|
|
33
33
|
resetErrorBoundary: () => {
|
|
@@ -35,13 +35,13 @@ function S({ cardId: a }) {
|
|
|
35
35
|
customerFacingMessage: `Card not found with ID: ${a}`
|
|
36
36
|
}
|
|
37
37
|
) : /* @__PURE__ */ s("main", { className: "flex h-full grow flex-col", children: /* @__PURE__ */ s(
|
|
38
|
-
|
|
38
|
+
u,
|
|
39
39
|
{
|
|
40
40
|
FallbackComponent: ({
|
|
41
41
|
error: r,
|
|
42
42
|
resetErrorBoundary: o
|
|
43
43
|
}) => /* @__PURE__ */ s(
|
|
44
|
-
|
|
44
|
+
l,
|
|
45
45
|
{
|
|
46
46
|
error: r,
|
|
47
47
|
resetErrorBoundary: o,
|
|
@@ -52,7 +52,7 @@ function S({ cardId: a }) {
|
|
|
52
52
|
}
|
|
53
53
|
) });
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const x = [
|
|
56
56
|
// Day granularity formats
|
|
57
57
|
"MM-DD-YYYY",
|
|
58
58
|
"YYYY-MM-DD",
|
|
@@ -83,31 +83,34 @@ const E = [
|
|
|
83
83
|
// Custom format
|
|
84
84
|
"custom"
|
|
85
85
|
];
|
|
86
|
-
var
|
|
86
|
+
var S = /* @__PURE__ */ ((a) => (a.SUBTOTAL = "__SUBTOTAL__", a.TOTAL = "__TOTAL__", a.ALL = "__ALL__", a))(S || {});
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
Da as AdvancedModeToggle,
|
|
89
|
+
x as DATE_FORMAT_VALUES,
|
|
89
90
|
L as Dashboard,
|
|
90
91
|
k as DashboardWC,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
ua as EMPTY_SELECTION,
|
|
93
|
+
S as PivotMarkerEnum,
|
|
94
|
+
ca as ResourceManagementPanel,
|
|
94
95
|
Q as ResourceType,
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
ha as ScheduleDashboard,
|
|
97
|
+
fa as SelectComponent,
|
|
97
98
|
h as SemaphorContextProvider,
|
|
98
|
-
|
|
99
|
+
V as SemaphorDataProvider,
|
|
99
100
|
B as SemaphorQueryClient,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
ma as
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
101
|
+
pa as ShareDialog,
|
|
102
|
+
Ta as Surfboard,
|
|
103
|
+
E as Visual,
|
|
104
|
+
ma as VisualBadge,
|
|
105
|
+
Ca as VisualEditingControls,
|
|
106
|
+
ga as cleanCard,
|
|
107
|
+
w as createSqlGenConfig,
|
|
108
|
+
N as downloadPdf,
|
|
109
|
+
O as fmt,
|
|
110
|
+
W as getColumnDataType,
|
|
111
|
+
ba as getDashbaordStateWithoutData,
|
|
112
|
+
R as getFilterValueType,
|
|
113
|
+
U as getFormattedTableNameForQuery,
|
|
111
114
|
q as getQualifiedTableName,
|
|
112
115
|
I as getSql,
|
|
113
116
|
G as invalidateToken,
|
|
@@ -123,7 +126,7 @@ export {
|
|
|
123
126
|
ea as useCurrentCardConfig,
|
|
124
127
|
sa as useCurrentSheetActiveCards,
|
|
125
128
|
ra as useDashboardActions,
|
|
126
|
-
|
|
129
|
+
m as useDashboardStore,
|
|
127
130
|
oa as useDataColumns,
|
|
128
131
|
ta as useDateFilterHook,
|
|
129
132
|
Ya as useEditorActions,
|