react-semaphor 0.1.179 → 0.1.180
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-controls-CeT5saB7.js → dashboard-controls-Baw7eUyM.js} +3 -3
- package/dist/chunks/{dashboard-controls-O2Vl2SaH.js → dashboard-controls-CS3pAVZi.js} +339 -337
- package/dist/chunks/{dashboard-json--jGkpREU.js → dashboard-json-ClalWYi4.js} +1 -1
- package/dist/chunks/{dashboard-json-d1qZ8OYo.js → dashboard-json-Cz4bNnCC.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-ViDNkE8Q.js → edit-dashboard-visual-BMElXt-n.js} +30 -35
- package/dist/chunks/{edit-dashboard-visual-BsP87bZV.js → edit-dashboard-visual-DFJ5FJ7y.js} +11 -22
- package/dist/chunks/editor-action-buttons-DVWnnC_r.js +11 -0
- package/dist/chunks/{editor-action-buttons-F4_UU-Mk.js → editor-action-buttons-MtNYw1Bb.js} +57 -45
- package/dist/chunks/{index-v6ayK5K2.js → index-CAeKp6K8.js} +22589 -22037
- package/dist/chunks/{index-CFWw2cJ5.js → index-CfPKTeUk.js} +232 -227
- package/dist/chunks/notification-bell-2dZI5OV0.js +21 -0
- package/dist/chunks/notification-bell-YZ8VqdwA.js +870 -0
- package/dist/chunks/{resource-management-panel-Cn1aOr6L.js → resource-management-panel-Buhi-kvP.js} +1 -1
- package/dist/chunks/{resource-management-panel-CApVr9Vd.js → resource-management-panel-pxL28GXq.js} +133 -133
- package/dist/chunks/{use-role-aware-display-preferences-C-N0-Iik.js → use-role-aware-display-preferences-B_i2f9tn.js} +1 -1
- package/dist/chunks/{use-role-aware-display-preferences-Bxp6i8c7.js → use-role-aware-display-preferences-JljRcjrP.js} +1 -1
- package/dist/chunks/{use-visual-utils-D9lMGeVv.js → use-visual-utils-D3HjbsKO.js} +38 -38
- package/dist/chunks/{use-visual-utils-D19qzwzI.js → use-visual-utils-DPEHcmFT.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -6
- package/dist/index.js +133 -126
- 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 +262 -0
- package/package.json +1 -1
- package/dist/chunks/editor-action-buttons-DseT424l.js +0 -6
- package/dist/chunks/schedule-dashboard-B4KUKLfW.js +0 -416
- package/dist/chunks/schedule-dashboard-vvFw8B1E.js +0 -6
package/dist/index.js
CHANGED
|
@@ -1,49 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { EMPTY_SELECTION as
|
|
1
|
+
import { E as b, F as N, S as P, l as w, U as _, m as A, C as I, u as M, n as D, o as R, P as F, p as k, B as L, c as E, q as B, r as V, s as O, t as U, I as z, v as H, w as W, x as j, y as q, z as Q } from "./chunks/index-CAeKp6K8.js";
|
|
2
|
+
import { a4 as ia, a5 as la, D as da, _ as ca, Q as ua, aB as pa, a9 as ha, R as ma, K as fa, K as Ca, L as Ea, a as xa, aA as ga, W as Da, at as ba, aw as va, ag as ya, Z as Ta, T as Sa, V as Na, aa as Pa, aE as wa, ai as _a, az as Aa, ay as Ia, ax as Ma, ah as Ra, al as Fa, am as ka, af as La, Y as Ba, ae as Va, a7 as Oa, a8 as Ua, a6 as za, aj as Ha, ad as Wa, aD as ja, aC as qa, ac as Qa, ab as Ga, an as Ka, ak as Ya, a2 as $a, O as Ja, ap as Xa, ar as Za, aq as ae, as as ee, N as se, G as oe, $ as re, H as te, av as ne, ao as ie, au as le, a1 as de, a0 as ce, a3 as ue, A as pe, M as he, J as me } from "./chunks/index-CAeKp6K8.js";
|
|
3
|
+
import { EMPTY_SELECTION as Ce } from "./types/index.js";
|
|
4
4
|
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
import * as
|
|
6
|
-
import { useMemo as
|
|
7
|
-
import { ResourceManagementPanel as
|
|
8
|
-
import {
|
|
5
|
+
import * as h from "react";
|
|
6
|
+
import { useMemo as G, useEffect as K } from "react";
|
|
7
|
+
import { ResourceManagementPanel as xe } from "./chunks/resource-management-panel-pxL28GXq.js";
|
|
8
|
+
import { R as Y } from "./chunks/notification-bell-YZ8VqdwA.js";
|
|
9
|
+
import { A as De, a as be, E as ve, N as ye, S as Te, U as Se, V as Ne, u as Pe, b as we, c as _e } from "./chunks/notification-bell-YZ8VqdwA.js";
|
|
9
10
|
import "react-dom";
|
|
10
|
-
/**
|
|
11
|
-
* @license lucide-react v0.453.0 - ISC
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the ISC license.
|
|
14
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
const $ = w("RefreshCw", [
|
|
17
|
-
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
18
|
-
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
19
|
-
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
20
|
-
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
21
|
-
]);
|
|
22
11
|
function sa(e) {
|
|
23
|
-
const { displayPreferences: s, ...
|
|
24
|
-
...
|
|
12
|
+
const { displayPreferences: s, ...l } = e, d = {
|
|
13
|
+
...l,
|
|
25
14
|
id: e.dashboardId
|
|
26
15
|
// override the id to the dashboard id so that the dashboard is not loaded
|
|
27
16
|
};
|
|
28
|
-
return /* @__PURE__ */ a(
|
|
29
|
-
/* @__PURE__ */ a(
|
|
30
|
-
/* @__PURE__ */ a(
|
|
17
|
+
return /* @__PURE__ */ a(b, { FallbackComponent: N, children: /* @__PURE__ */ i(P, { dashboardProps: d, children: [
|
|
18
|
+
/* @__PURE__ */ a(w, { componentType: "visual", componentId: e.cardId }),
|
|
19
|
+
/* @__PURE__ */ a(_, { children: /* @__PURE__ */ a(A, { displayPreferences: s, children: /* @__PURE__ */ a(I, { type: "visual", ...d, children: /* @__PURE__ */ a($, { cardId: e.cardId }) }) }) })
|
|
31
20
|
] }) });
|
|
32
21
|
}
|
|
33
|
-
function
|
|
34
|
-
const s =
|
|
35
|
-
var
|
|
36
|
-
return (
|
|
37
|
-
}), { card:
|
|
38
|
-
const r = s == null ? void 0 : s.flatMap((o) => o.frames),
|
|
22
|
+
function $({ cardId: e }) {
|
|
23
|
+
const s = M((r) => {
|
|
24
|
+
var t;
|
|
25
|
+
return (t = r.dashboard) == null ? void 0 : t.sheets;
|
|
26
|
+
}), { card: l, frame: d } = G(() => {
|
|
27
|
+
const r = s == null ? void 0 : s.flatMap((o) => o.frames), t = r == null ? void 0 : r.flatMap((o) => o == null ? void 0 : o.cards), m = t == null ? void 0 : t.find((o) => (o == null ? void 0 : o.id) === e), f = r == null ? void 0 : r.find(
|
|
39
28
|
(o) => {
|
|
40
|
-
var
|
|
41
|
-
return (
|
|
29
|
+
var p;
|
|
30
|
+
return (p = o == null ? void 0 : o.cards) == null ? void 0 : p.find((c) => (c == null ? void 0 : c.id) === e);
|
|
42
31
|
}
|
|
43
32
|
);
|
|
44
33
|
return { card: m, frame: f };
|
|
45
34
|
}, [s, e]);
|
|
46
|
-
return !
|
|
35
|
+
return !l || !d ? /* @__PURE__ */ a(
|
|
47
36
|
D,
|
|
48
37
|
{
|
|
49
38
|
error: new Error("Card not found"),
|
|
@@ -52,108 +41,108 @@ function Z({ cardId: e }) {
|
|
|
52
41
|
customerFacingMessage: `Card not found with ID: ${e}`
|
|
53
42
|
}
|
|
54
43
|
) : /* @__PURE__ */ a("main", { className: "flex h-full grow flex-col", children: /* @__PURE__ */ a(
|
|
55
|
-
|
|
44
|
+
b,
|
|
56
45
|
{
|
|
57
46
|
FallbackComponent: ({
|
|
58
47
|
error: r,
|
|
59
|
-
resetErrorBoundary:
|
|
48
|
+
resetErrorBoundary: t
|
|
60
49
|
}) => /* @__PURE__ */ a(
|
|
61
50
|
D,
|
|
62
51
|
{
|
|
63
52
|
error: r,
|
|
64
|
-
resetErrorBoundary:
|
|
53
|
+
resetErrorBoundary: t,
|
|
65
54
|
customerFacingMessage: "Error creating visual. Please try again."
|
|
66
55
|
}
|
|
67
56
|
),
|
|
68
|
-
children: /* @__PURE__ */ a(
|
|
57
|
+
children: /* @__PURE__ */ a(R, { card: l, frame: d })
|
|
69
58
|
}
|
|
70
59
|
) });
|
|
71
60
|
}
|
|
72
61
|
function oa({
|
|
73
62
|
name: e,
|
|
74
63
|
items: s,
|
|
75
|
-
value:
|
|
76
|
-
onChange:
|
|
64
|
+
value: l,
|
|
65
|
+
onChange: d,
|
|
77
66
|
isLoading: r,
|
|
78
|
-
isError:
|
|
67
|
+
isError: t,
|
|
79
68
|
refetch: m,
|
|
80
69
|
className: f,
|
|
81
70
|
icon: o,
|
|
82
|
-
showNone:
|
|
71
|
+
showNone: p = !1
|
|
83
72
|
}) {
|
|
84
|
-
const c =
|
|
85
|
-
|
|
86
|
-
c.current &&
|
|
73
|
+
const c = h.useRef(null), [x, g] = h.useState(!1), [v, y] = h.useState("100%"), C = p ? [...s || [], { id: "none", name: "None" }] : s;
|
|
74
|
+
h.useLayoutEffect(() => {
|
|
75
|
+
c.current && y(c.current.offsetWidth);
|
|
87
76
|
}, []);
|
|
88
|
-
function
|
|
89
|
-
var
|
|
90
|
-
return r ? "Loading..." :
|
|
77
|
+
function T() {
|
|
78
|
+
var n;
|
|
79
|
+
return r ? "Loading..." : t ? "Error" : l ? (n = s == null ? void 0 : s.find((u) => u.id === l)) == null ? void 0 : n.name : `Select ${e}`;
|
|
91
80
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
81
|
+
function S(n, u) {
|
|
82
|
+
d(u), g(!1);
|
|
94
83
|
}
|
|
95
|
-
return /* @__PURE__ */ i(F, { open:
|
|
96
|
-
/* @__PURE__ */ a(
|
|
97
|
-
|
|
84
|
+
return /* @__PURE__ */ i(F, { open: x, onOpenChange: g, children: [
|
|
85
|
+
/* @__PURE__ */ a(k, { asChild: !0, children: /* @__PURE__ */ i(
|
|
86
|
+
L,
|
|
98
87
|
{
|
|
99
88
|
ref: c,
|
|
100
89
|
variant: "outline",
|
|
101
90
|
role: "combobox",
|
|
102
|
-
"aria-expanded":
|
|
103
|
-
className:
|
|
91
|
+
"aria-expanded": x,
|
|
92
|
+
className: E("flex h-9 w-full justify-between", f),
|
|
104
93
|
children: [
|
|
105
94
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
106
95
|
o && /* @__PURE__ */ a("div", { className: "mr-2", children: o }),
|
|
107
|
-
/* @__PURE__ */ a("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children:
|
|
96
|
+
/* @__PURE__ */ a("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children: T() })
|
|
108
97
|
] }),
|
|
109
|
-
/* @__PURE__ */ a(
|
|
98
|
+
/* @__PURE__ */ a(B, { className: "size-4 opacity-50" })
|
|
110
99
|
]
|
|
111
100
|
}
|
|
112
101
|
) }),
|
|
113
102
|
/* @__PURE__ */ a(
|
|
114
|
-
|
|
103
|
+
V,
|
|
115
104
|
{
|
|
116
105
|
className: "w-full p-0",
|
|
117
|
-
style: { minWidth:
|
|
118
|
-
children: /* @__PURE__ */ i(
|
|
106
|
+
style: { minWidth: v },
|
|
107
|
+
children: /* @__PURE__ */ i(O, { children: [
|
|
119
108
|
/* @__PURE__ */ i("div", { className: "flex h-9 items-center justify-between border-b pr-1", children: [
|
|
120
109
|
/* @__PURE__ */ a(U, { className: "h-9", placeholder: "Search..." }),
|
|
121
|
-
/* @__PURE__ */ a(
|
|
122
|
-
|
|
110
|
+
/* @__PURE__ */ a(z, { className: "h-7", onClick: m, children: /* @__PURE__ */ a(
|
|
111
|
+
Y,
|
|
123
112
|
{
|
|
124
|
-
className:
|
|
113
|
+
className: E(
|
|
125
114
|
"size-3.5 opacity-50",
|
|
126
115
|
r && "animate-spin"
|
|
127
116
|
)
|
|
128
117
|
}
|
|
129
118
|
) })
|
|
130
119
|
] }),
|
|
131
|
-
/* @__PURE__ */ i(
|
|
132
|
-
/* @__PURE__ */ i(
|
|
120
|
+
/* @__PURE__ */ i(H, { children: [
|
|
121
|
+
/* @__PURE__ */ i(W, { children: [
|
|
133
122
|
"No ",
|
|
134
123
|
e == null ? void 0 : e.toLowerCase(),
|
|
135
124
|
" found."
|
|
136
125
|
] }),
|
|
137
|
-
/* @__PURE__ */ a(
|
|
138
|
-
|
|
126
|
+
/* @__PURE__ */ a(j, { children: C == null ? void 0 : C.map((n) => /* @__PURE__ */ a(
|
|
127
|
+
q,
|
|
139
128
|
{
|
|
140
129
|
className: "overflow-x-auto",
|
|
141
|
-
value:
|
|
142
|
-
onSelect: (u) =>
|
|
130
|
+
value: n.name,
|
|
131
|
+
onSelect: (u) => S(u, n.id),
|
|
143
132
|
children: /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
144
133
|
/* @__PURE__ */ a(
|
|
145
|
-
|
|
134
|
+
Q,
|
|
146
135
|
{
|
|
147
|
-
className:
|
|
136
|
+
className: E(
|
|
148
137
|
"size-4",
|
|
149
|
-
|
|
138
|
+
l === n.id ? "opacity-100" : "opacity-0"
|
|
150
139
|
)
|
|
151
140
|
}
|
|
152
141
|
),
|
|
153
|
-
/* @__PURE__ */ a("div", { title:
|
|
142
|
+
/* @__PURE__ */ a("div", { title: n.name, children: n.name })
|
|
154
143
|
] })
|
|
155
144
|
},
|
|
156
|
-
|
|
145
|
+
n.id
|
|
157
146
|
)) })
|
|
158
147
|
] })
|
|
159
148
|
] })
|
|
@@ -162,72 +151,90 @@ function oa({
|
|
|
162
151
|
] });
|
|
163
152
|
}
|
|
164
153
|
function ra(e, s) {
|
|
165
|
-
|
|
154
|
+
K(() => (e && s && (window.__SEMAPHOR_PRINT_STATE__ = {
|
|
166
155
|
...s
|
|
167
156
|
}), () => {
|
|
168
157
|
e && window.__SEMAPHOR_PRINT_STATE__ && delete window.__SEMAPHOR_PRINT_STATE__;
|
|
169
158
|
}), [e, s]);
|
|
170
159
|
}
|
|
171
160
|
export {
|
|
172
|
-
|
|
161
|
+
De as AdvancedModeToggle,
|
|
173
162
|
ia as CALCULATED_FIELD_ENTITY_MARKER,
|
|
174
163
|
oa as Combobox,
|
|
175
|
-
|
|
176
|
-
|
|
164
|
+
la as DATE_FORMAT_VALUES,
|
|
165
|
+
da as Dashboard,
|
|
177
166
|
ca as DashboardExportDialog,
|
|
178
167
|
ua as DashboardWC,
|
|
179
|
-
|
|
168
|
+
Ce as EMPTY_SELECTION,
|
|
169
|
+
pa as ExportError,
|
|
170
|
+
be as ExportNotificationItem,
|
|
171
|
+
ve as ExportNotificationList,
|
|
172
|
+
ye as NotificationBell,
|
|
180
173
|
ha as PivotMarkerEnum,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
174
|
+
xe as ResourceManagementPanel,
|
|
175
|
+
ma as ResourceType,
|
|
176
|
+
Te as ScheduleDashboard,
|
|
177
|
+
P as SemaphorContextProvider,
|
|
178
|
+
fa as SemaphorDataProvider,
|
|
179
|
+
Ca as SemaphorQueryClient,
|
|
180
|
+
Ea as ShareDialog,
|
|
181
|
+
xa as Surfboard,
|
|
182
|
+
Se as UnsavedChangesAlert,
|
|
190
183
|
sa as Visual,
|
|
191
|
-
|
|
192
|
-
|
|
184
|
+
Ne as VisualEditingControls,
|
|
185
|
+
ga as cancelExport,
|
|
186
|
+
Da as cloneDeep,
|
|
193
187
|
ba as createEmptyKpiConfig,
|
|
194
|
-
|
|
188
|
+
va as createExport,
|
|
189
|
+
ya as createSqlGenConfig,
|
|
195
190
|
Ta as downloadPdf,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
191
|
+
Sa as emitDashboardLoad,
|
|
192
|
+
Na as emitDashboardUnload,
|
|
193
|
+
Pa as fmt,
|
|
194
|
+
wa as formatFileSize,
|
|
195
|
+
_a as getColumnDataType,
|
|
196
|
+
Aa as getDownloadUrl,
|
|
197
|
+
Ia as getExportStatus,
|
|
198
|
+
Ma as getExports,
|
|
199
|
+
Ra as getFilterValueType,
|
|
200
|
+
Fa as getFormattedTableNameForQuery,
|
|
201
|
+
ka as getQualifiedTableName,
|
|
202
|
+
La as getSql,
|
|
203
|
+
Ba as invalidateToken,
|
|
204
|
+
Va as isBooleanDataType,
|
|
205
|
+
Oa as isCalculatedDimension,
|
|
206
|
+
Ua as isCalculatedField,
|
|
207
|
+
za as isCalculatedMetric,
|
|
208
|
+
Ha as isColumnInSqlGen,
|
|
209
|
+
Wa as isDateDataType,
|
|
210
|
+
ja as isExportComplete,
|
|
211
|
+
qa as isExportInProgress,
|
|
212
|
+
Qa as isNumberDataType,
|
|
213
|
+
Ga as isTextDataType,
|
|
214
|
+
Ka as resolveDataType,
|
|
215
|
+
Ya as resolveDatamodelName,
|
|
216
|
+
$a as useActiveExports,
|
|
217
|
+
Ja as useCard,
|
|
218
|
+
Xa as useCurrentActiveCard,
|
|
219
|
+
Za as useCurrentCardConfig,
|
|
220
|
+
ae as useCurrentSheetActiveCards,
|
|
221
|
+
ee as useDashboardActions,
|
|
222
|
+
se as useDashboardById,
|
|
223
|
+
oe as useDashboardQuery,
|
|
224
|
+
M as useDashboardStore,
|
|
225
|
+
re as useDataColumns,
|
|
226
|
+
te as useDateFilterHook,
|
|
227
|
+
ne as useEditorActions,
|
|
228
|
+
ie as useEditorAside,
|
|
229
|
+
le as useEditorStore,
|
|
230
|
+
de as useExportActions,
|
|
231
|
+
Pe as useExportPolling,
|
|
232
|
+
we as useExportRecovery,
|
|
233
|
+
ce as useExportStore,
|
|
228
234
|
ra as useExposePrintState,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
235
|
+
ue as useInProgressExportsCount,
|
|
236
|
+
pe as useManagementStore,
|
|
237
|
+
_e as usePristineSnapshotInitializer,
|
|
238
|
+
he as useResourceManagement,
|
|
239
|
+
me as useTextFilterHook
|
|
233
240
|
};
|