react-semaphor 0.0.488 → 0.0.490
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/{index-BTlGvORg.js → index-1AZBqWCM.js} +7742 -7743
- package/dist/chunks/{index-BoBbG6pt.js → index-DIAWqd3Y.js} +96 -96
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +5 -4
- package/dist/types/main.d.ts +31 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as F, p as Wt, u as L, a as at, b as Ue, d as Tn, e as zn, B as K, P as Xe, f as An, g as Fn, h as En, i as Ln, L as H, I as ue, j as Vn, k as _n, l as qn, m as W, n as Rn, o as jn, q as Bn, r as vs, s as yn, t as R, C as Kt, v as xs, S as Ne, w as we, x as Se, y as ke, z as Te, A as Me, E as ce, T as Pn, F as $e, G as Qe, H as Mt, J as Oe, K as Yt, M as Dt, N as Zt, O as It, Q as ze, R as Hn, U as ot, V as Cs, W as Gn, X as Un, Y as bn, Z as Ns, _ as p, $ as $n, a0 as et, a1 as gt, a2 as ws, a3 as Qn, a4 as Jn, a5 as Wn, a6 as Kn, a7 as Yn, a8 as Zn, a9 as Xn, aa as ve, ab as ea, ac as ta, ad as na, ae as aa, af as sa, ag as ra, ah as be, ai as Ss, aj as xe, ak as ks, al as Pe, am as Ce, an as Ms, ao as Ds, ap as Is, aq as Os, ar as yt, as as Ae, at as Ts, au as zs, av as J, aw as la, ax as As, ay as Fs, az as Es, aA as Pt, aB as ia, aC as Xt, aD as Ot, aE as tt, aF as oa, aG as bt, aH as Ht, aI as fe, aJ as Ls, aK as Vs, aL as ct, aM as _s, aN as qs, aO as Rs, aP as ca, aQ as js, aR as Tt, aS as Bs, aT as Ps, aU as Hs, aV as vn, aW as Gs, aX as Us, aY as $s, aZ as en, a_ as De, a$ as Qs, b0 as Gt, b1 as Ve, b2 as he, b3 as _e, b4 as Js, b5 as Ws, b6 as Ks, b7 as Ys, b8 as Zs, b9 as At, ba as Xs, bb as xn, bc as er, bd as Cn, be as tr, bf as nr, bg as ar, bh as sr, bi as da, bj as rr, bk as tn, bl as ua, bm as lr, bn as ir, bo as Ye, bp as or, bq as cr, br as ma, bs as dr, bt as ur, bu as mr, bv as hr, bw as pr, bx as zt, by as ha, bz as fr, bA as nn, bB as an, bC as Ze, bD as ft, bE as gr, bF as yr, bG as br, bH as sn, bI as pa, bJ as vr, bK as vt, bL as fa, bM as xt, bN as ga, bO as ya, bP as ba, bQ as xr, bR as Cr, bS as Nr, bT as wr, bU as Ee, bV as le, bW as ie, bX as oe, bY as rn, bZ as Sr, b_ as kr, b$ as Mr, c0 as Dr, c1 as Ir, c2 as Nn, c3 as va, c4 as Or, c5 as Tr, c6 as zr, c7 as Ar, c8 as ln, c9 as xa, ca as Ca, cb as on, cc as Fr, cd as Er, ce as Na, cf as Lr, cg as Vr, ch as _r, ci as qr, cj as Rr, ck as jr, cl as Br, cm as Pr, cn as Hr, co as Gr, cp as Ft, cq as wa, cr as Ur, cs as $r, ct as Qr, cu as Jr, cv as Wr, cw as Kr, cx as Yr } from "./chunks/index-
|
|
2
|
-
import { D as Uo, cC as $o, cA as Qo, cA as Jo, cF as Wo, cE as Ko, cD as Yo, cG as Zo, cH as Xo, cB as ec, cy as tc, cz as nc } from "./chunks/index-
|
|
1
|
+
import { c as F, p as Wt, u as L, a as at, b as Ue, d as Tn, e as zn, B as K, P as Xe, f as An, g as Fn, h as En, i as Ln, L as H, I as ue, j as Vn, k as _n, l as qn, m as W, n as Rn, o as jn, q as Bn, r as vs, s as yn, t as R, C as Kt, v as xs, S as Ne, w as we, x as Se, y as ke, z as Te, A as Me, E as ce, T as Pn, F as $e, G as Qe, H as Mt, J as Oe, K as Yt, M as Dt, N as Zt, O as It, Q as ze, R as Hn, U as ot, V as Cs, W as Gn, X as Un, Y as bn, Z as Ns, _ as p, $ as $n, a0 as et, a1 as gt, a2 as ws, a3 as Qn, a4 as Jn, a5 as Wn, a6 as Kn, a7 as Yn, a8 as Zn, a9 as Xn, aa as ve, ab as ea, ac as ta, ad as na, ae as aa, af as sa, ag as ra, ah as be, ai as Ss, aj as xe, ak as ks, al as Pe, am as Ce, an as Ms, ao as Ds, ap as Is, aq as Os, ar as yt, as as Ae, at as Ts, au as zs, av as J, aw as la, ax as As, ay as Fs, az as Es, aA as Pt, aB as ia, aC as Xt, aD as Ot, aE as tt, aF as oa, aG as bt, aH as Ht, aI as fe, aJ as Ls, aK as Vs, aL as ct, aM as _s, aN as qs, aO as Rs, aP as ca, aQ as js, aR as Tt, aS as Bs, aT as Ps, aU as Hs, aV as vn, aW as Gs, aX as Us, aY as $s, aZ as en, a_ as De, a$ as Qs, b0 as Gt, b1 as Ve, b2 as he, b3 as _e, b4 as Js, b5 as Ws, b6 as Ks, b7 as Ys, b8 as Zs, b9 as At, ba as Xs, bb as xn, bc as er, bd as Cn, be as tr, bf as nr, bg as ar, bh as sr, bi as da, bj as rr, bk as tn, bl as ua, bm as lr, bn as ir, bo as Ye, bp as or, bq as cr, br as ma, bs as dr, bt as ur, bu as mr, bv as hr, bw as pr, bx as zt, by as ha, bz as fr, bA as nn, bB as an, bC as Ze, bD as ft, bE as gr, bF as yr, bG as br, bH as sn, bI as pa, bJ as vr, bK as vt, bL as fa, bM as xt, bN as ga, bO as ya, bP as ba, bQ as xr, bR as Cr, bS as Nr, bT as wr, bU as Ee, bV as le, bW as ie, bX as oe, bY as rn, bZ as Sr, b_ as kr, b$ as Mr, c0 as Dr, c1 as Ir, c2 as Nn, c3 as va, c4 as Or, c5 as Tr, c6 as zr, c7 as Ar, c8 as ln, c9 as xa, ca as Ca, cb as on, cc as Fr, cd as Er, ce as Na, cf as Lr, cg as Vr, ch as _r, ci as qr, cj as Rr, ck as jr, cl as Br, cm as Pr, cn as Hr, co as Gr, cp as Ft, cq as wa, cr as Ur, cs as $r, ct as Qr, cu as Jr, cv as Wr, cw as Kr, cx as Yr } from "./chunks/index-1AZBqWCM.js";
|
|
2
|
+
import { D as Uo, cC as $o, cA as Qo, cA as Jo, cF as Wo, cE as Ko, cD as Yo, cG as Zo, cH as Xo, cB as ec, cy as tc, cz as nc } from "./chunks/index-1AZBqWCM.js";
|
|
3
3
|
import { EMPTY_SELECTION as sc } from "./types/index.js";
|
|
4
4
|
import { jsxs as r, jsx as e, Fragment as ae } from "react/jsx-runtime";
|
|
5
5
|
import * as Ke from "react";
|
|
@@ -1839,7 +1839,7 @@ function li({ column: t }) {
|
|
|
1839
1839
|
b,
|
|
1840
1840
|
be(l || ""),
|
|
1841
1841
|
be(s),
|
|
1842
|
-
k,
|
|
1842
|
+
k || "",
|
|
1843
1843
|
h,
|
|
1844
1844
|
o || ""
|
|
1845
1845
|
);
|
|
@@ -2387,7 +2387,7 @@ function di({
|
|
|
2387
2387
|
P,
|
|
2388
2388
|
be(t),
|
|
2389
2389
|
be(a),
|
|
2390
|
-
G,
|
|
2390
|
+
G || "",
|
|
2391
2391
|
D,
|
|
2392
2392
|
c || ""
|
|
2393
2393
|
);
|
|
@@ -8695,6 +8695,7 @@ export {
|
|
|
8695
8695
|
ec as useCard,
|
|
8696
8696
|
at as useDashboardActions,
|
|
8697
8697
|
L as useDashboardStore,
|
|
8698
|
+
la as useDataColumns,
|
|
8698
8699
|
tc as useDateFilterHook,
|
|
8699
8700
|
J as useEditorActions,
|
|
8700
8701
|
ve as useEditorAside,
|
package/dist/types/main.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { ComboBoxOption as ComboBoxOption_2 } from '../../components/surfboard/f
|
|
|
6
6
|
import { CustomCard as CustomCard_2 } from '..';
|
|
7
7
|
import { DateRange } from 'react-day-picker';
|
|
8
8
|
import { default as default_2 } from 'react-grid-layout';
|
|
9
|
+
import { DropdownItem as DropdownItem_2 } from '../types/dropdown-types';
|
|
9
10
|
import { EmailSettings as EmailSettings_2 } from '..';
|
|
10
11
|
import { FontSpec } from 'chart.js';
|
|
11
12
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -302,6 +303,10 @@ declare type ComboBoxOption = {
|
|
|
302
303
|
[key: string]: number | string;
|
|
303
304
|
};
|
|
304
305
|
|
|
306
|
+
export declare type ConnectionItem = DropdownItem & {
|
|
307
|
+
type: string;
|
|
308
|
+
};
|
|
309
|
+
|
|
305
310
|
export declare type ConnectionPolicy = {
|
|
306
311
|
connectionId?: string;
|
|
307
312
|
name: string;
|
|
@@ -391,6 +396,8 @@ export declare type DashboardStore = {
|
|
|
391
396
|
|
|
392
397
|
export declare const DashboardWC: CustomElementConstructor;
|
|
393
398
|
|
|
399
|
+
export declare type DatabaseItem = DropdownItem;
|
|
400
|
+
|
|
394
401
|
export declare type DateOptions = {
|
|
395
402
|
locale: string;
|
|
396
403
|
format: string;
|
|
@@ -403,6 +410,11 @@ export declare type DisplayDataType = 'string' | 'date' | 'number' | 'html' | 'n
|
|
|
403
410
|
|
|
404
411
|
export declare function downloadPdf(): Promise<void>;
|
|
405
412
|
|
|
413
|
+
export declare type DropdownItem = {
|
|
414
|
+
id: string;
|
|
415
|
+
name: string;
|
|
416
|
+
};
|
|
417
|
+
|
|
406
418
|
export declare type DroppableId = 'droppable-group-by' | 'droppable-metric';
|
|
407
419
|
|
|
408
420
|
export declare type EditorStore = {
|
|
@@ -621,6 +633,8 @@ export declare interface MetricColumn extends BaseColumn {
|
|
|
621
633
|
aliasTemplate?: string;
|
|
622
634
|
}
|
|
623
635
|
|
|
636
|
+
export declare type ModelItem = DropdownItem;
|
|
637
|
+
|
|
624
638
|
declare type NoneOptions = {};
|
|
625
639
|
|
|
626
640
|
export declare type NumberAxisFormat = {
|
|
@@ -699,6 +713,8 @@ export declare function ScheduleDashboard({ triggerButtonClassName, }: {
|
|
|
699
713
|
triggerButtonClassName?: string;
|
|
700
714
|
}): JSX_2.Element;
|
|
701
715
|
|
|
716
|
+
export declare type SchemaItem = DropdownItem;
|
|
717
|
+
|
|
702
718
|
export declare function SelectComponent({ title, items, value, isLoading, isError, refetch, onChange, showNone, className, disabled, type, }: SelectProps): JSX_2.Element;
|
|
703
719
|
|
|
704
720
|
export declare type SelectionState = Record<Level, string | null>;
|
|
@@ -801,6 +817,8 @@ export declare type TableConfig = {
|
|
|
801
817
|
datamodelId: string;
|
|
802
818
|
};
|
|
803
819
|
|
|
820
|
+
export declare type TableItem = DropdownItem;
|
|
821
|
+
|
|
804
822
|
declare type TablePreferences = {
|
|
805
823
|
columnSettingsMap?: ColumnSettingsMap;
|
|
806
824
|
selectColumnVisible?: boolean;
|
|
@@ -1079,6 +1097,14 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1079
1097
|
setState(nextStateOrUpdater: DashboardStore | Partial<DashboardStore> | ((state: WritableDraft<DashboardStore>) => void), shouldReplace?: boolean | undefined): void;
|
|
1080
1098
|
}>;
|
|
1081
1099
|
|
|
1100
|
+
export declare function useDataColumns(token?: AuthToken): {
|
|
1101
|
+
columns: TDataColumn[];
|
|
1102
|
+
isColumnsLoading: boolean;
|
|
1103
|
+
isColumnsFetching: boolean;
|
|
1104
|
+
isColumnsError: boolean;
|
|
1105
|
+
refetchColumns: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
1106
|
+
};
|
|
1107
|
+
|
|
1082
1108
|
export declare function useDateFilterHook(filterId: string): {
|
|
1083
1109
|
records: any;
|
|
1084
1110
|
isLoading: boolean;
|
|
@@ -1094,24 +1120,24 @@ export declare function useDateFilterHook(filterId: string): {
|
|
|
1094
1120
|
export declare const useEditorActions: () => Actions_2;
|
|
1095
1121
|
|
|
1096
1122
|
export declare function useEditorAside(token?: AuthToken, _connectionQueryKey?: string): {
|
|
1097
|
-
connectionItems:
|
|
1123
|
+
connectionItems: ConnectionItem[];
|
|
1098
1124
|
selectedConnectionId: string | undefined;
|
|
1099
1125
|
isConnectionsLoading: boolean;
|
|
1100
1126
|
isConnectionsError: boolean;
|
|
1101
|
-
modelItems:
|
|
1127
|
+
modelItems: DropdownItem_2[];
|
|
1102
1128
|
selectedDatamodelId: string | undefined;
|
|
1103
1129
|
selectedDatamodelName: any;
|
|
1104
1130
|
isModelsLoading: boolean;
|
|
1105
1131
|
isModelsError: boolean;
|
|
1106
1132
|
selectedDatabaseName: string | undefined;
|
|
1107
|
-
databaseItems:
|
|
1133
|
+
databaseItems: DropdownItem_2[];
|
|
1108
1134
|
isDatabasesLoadingOrFetching: boolean;
|
|
1109
1135
|
isDatabaseError: boolean;
|
|
1110
|
-
schemaItems:
|
|
1136
|
+
schemaItems: DropdownItem_2[];
|
|
1111
1137
|
selectedSchemaName: string | undefined;
|
|
1112
1138
|
isSchemaLoadingOrFetching: boolean;
|
|
1113
1139
|
isSchemaError: boolean;
|
|
1114
|
-
tableItems:
|
|
1140
|
+
tableItems: DropdownItem_2[];
|
|
1115
1141
|
selectedTableName: string | undefined;
|
|
1116
1142
|
isTableLoadingOrFetching: boolean;
|
|
1117
1143
|
isTableError: boolean;
|