react-semaphor 0.0.600 → 0.0.601
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-Dhs7QSqL.js +361 -0
- package/dist/chunks/{dashboard-plus-Bzs4D9wv.js → dashboard-plus-l39Ly-FK.js} +3078 -3114
- package/dist/chunks/{index-DT9VO-bl.js → index-LEnuLHVY.js} +16809 -16558
- package/dist/chunks/{index-Cps7ZMha.js → index-SRLJQX9f.js} +176 -181
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +34 -34
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/dashboard-plus-BmCs016Q.js +0 -356
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-SRLJQX9f.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 +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-SRLJQX9f.js"),C=require("./types/index.cjs"),i=require("./chunks/dashboard-plus-Dhs7QSqL.js"),t=require("react/jsx-runtime"),h=require("react");require("react-dom");function T(a){const{displayPreferences:n,...d}=a,u={...d,id:a.dashboardId};return t.jsx(e.ErrorBoundary,{FallbackComponent:e.Fallback,children:t.jsx(e.SemaphorContextProvider,{dashboardProps:u,children:t.jsx(e.UXProvider,{children:t.jsx(e.DisplayPreferencesProvider,{displayPreferences:n,children:t.jsx(e.Container,{type:"visual",...u,children:t.jsx(S,{cardId:a.cardId})})})})})})}function S({cardId:a}){const n=e.useDashboardStore(o=>{var s;return(s=o.dashboard)==null?void 0:s.sheets}),{card:d,frame:u}=h.useMemo(()=>{const o=n==null?void 0:n.flatMap(r=>r.frames),s=o==null?void 0:o.flatMap(r=>r==null?void 0:r.cards),c=s==null?void 0:s.find(r=>(r==null?void 0:r.id)===a),M=o==null?void 0:o.find(r=>{var l;return(l=r==null?void 0:r.cards)==null?void 0:l.find(Y=>(Y==null?void 0:Y.id)===a)});return{card:c,frame:M}},[n,a]);return!d||!u?t.jsx(e.FallbackVisual,{error:new Error("Card not found"),resetErrorBoundary:()=>{},customerFacingMessage:`Card not found with ID: ${a}`}):t.jsx("main",{className:"flex h-full grow flex-col",children:t.jsx(e.ErrorBoundary,{FallbackComponent:({error:o,resetErrorBoundary:s})=>t.jsx(e.FallbackVisual,{error:o,resetErrorBoundary:s,customerFacingMessage:"Error creating visual. Please try again."}),children:t.jsx(e.DashboardCard,{card:d,frame:u})})})}const b=["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.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.ResourceManagementPanel=i.ResourceManagementPanel;exports.ScheduleDashboard=i.ScheduleDashboard;exports.SelectComponent=i.SelectComponent;exports.Surfboard=i.DashboardPlus;exports.cleanCard=i.cleanCard;exports.getDashbaordStateWithoutData=i.getDashbaordStateWithoutData;exports.DATE_FORMAT_VALUES=b;exports.PivotMarkerEnum=D;exports.Visual=T;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as l, F as c, S as f, U as h, a as p, C as m, u as C, b as u, c as T } from "./chunks/index-
|
|
2
|
-
import { D as L, h as k, f as Q, f as w,
|
|
3
|
-
import { EMPTY_SELECTION as
|
|
4
|
-
import { R as
|
|
1
|
+
import { E as l, F as c, S as f, U as h, a as p, C as m, u as C, b as u, c as T } from "./chunks/index-LEnuLHVY.js";
|
|
2
|
+
import { D as L, h as k, f as Q, f as w, r as B, j as N, l as O, t as W, s as U, x as V, y as q, q as I, i as G, p as H, v as R, o as j, n as z, m as J, z as K, w as X, g as $, B as Z, H as aa, G as ea, I as sa, k as ra, d as oa, K as ta, A as Ya, J as na, e as ia } from "./chunks/index-LEnuLHVY.js";
|
|
3
|
+
import { EMPTY_SELECTION as ua } from "./types/index.js";
|
|
4
|
+
import { R as Ma, S as Da, a as ca, D as fa, c as ha, g as pa } from "./chunks/dashboard-plus-l39Ly-FK.js";
|
|
5
5
|
import { jsx as s } from "react/jsx-runtime";
|
|
6
6
|
import { useMemo as b } from "react";
|
|
7
7
|
import "react-dom";
|
|
@@ -88,44 +88,44 @@ export {
|
|
|
88
88
|
E as DATE_FORMAT_VALUES,
|
|
89
89
|
L as Dashboard,
|
|
90
90
|
k as DashboardWC,
|
|
91
|
-
|
|
91
|
+
ua as EMPTY_SELECTION,
|
|
92
92
|
g as PivotMarkerEnum,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
Ma as ResourceManagementPanel,
|
|
94
|
+
Da as ScheduleDashboard,
|
|
95
|
+
ca as SelectComponent,
|
|
96
96
|
f as SemaphorContextProvider,
|
|
97
97
|
Q as SemaphorDataProvider,
|
|
98
98
|
w as SemaphorQueryClient,
|
|
99
|
-
|
|
99
|
+
fa as Surfboard,
|
|
100
100
|
x as Visual,
|
|
101
|
-
|
|
101
|
+
ha as cleanCard,
|
|
102
102
|
B as createSqlGenConfig,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
N as downloadPdf,
|
|
104
|
+
O as fmt,
|
|
105
|
+
W as getColumnDataType,
|
|
106
106
|
pa as getDashbaordStateWithoutData,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
107
|
+
U as getFilterValueType,
|
|
108
|
+
V as getFormattedTableNameForQuery,
|
|
109
|
+
q as getQualifiedTableName,
|
|
110
|
+
I as getSql,
|
|
111
|
+
G as invalidateToken,
|
|
112
|
+
H as isBooleanDataType,
|
|
113
|
+
R as isColumnInSqlGen,
|
|
114
|
+
j as isDateDataType,
|
|
115
|
+
z as isNumberDataType,
|
|
116
|
+
J as isTextDataType,
|
|
117
|
+
K as resolveDataType,
|
|
118
118
|
X as resolveDatamodelName,
|
|
119
119
|
$ as useCard,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
Z as useCurrentActiveCard,
|
|
121
|
+
aa as useCurrentCardConfig,
|
|
122
|
+
ea as useCurrentSheetActiveCards,
|
|
123
|
+
sa as useDashboardActions,
|
|
124
124
|
C as useDashboardStore,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
ra as useDataColumns,
|
|
126
|
+
oa as useDateFilterHook,
|
|
127
|
+
ta as useEditorActions,
|
|
128
|
+
Ya as useEditorAside,
|
|
129
|
+
na as useEditorStore,
|
|
130
|
+
ia as useTextFilterHook
|
|
131
131
|
};
|