react-semaphor 0.0.99 → 0.0.102
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/react-semaphor.d.ts +14 -10
- package/dist/react-semaphor.js +11 -6
- package/dist/react-semaphor.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/react-semaphor.d.ts
CHANGED
|
@@ -69,8 +69,9 @@ declare type Actions = {
|
|
|
69
69
|
getSelectedSheetLayout: () => ReactGridLayout_2.Layout[] | undefined;
|
|
70
70
|
getSelectedSheetLayouts: () => ReactGridLayout_2.Layouts | undefined;
|
|
71
71
|
handleDataPointClickAction: (card: TCard, dataPoint: any) => void;
|
|
72
|
-
addBaseQuery: (baseQuery:
|
|
72
|
+
addBaseQuery: (baseQuery: TBaseQuery) => void;
|
|
73
73
|
removeBaseQuery: (baseQueryId: string) => void;
|
|
74
|
+
setBaseQueries: (baseQueries: TBaseQuery[]) => void;
|
|
74
75
|
};
|
|
75
76
|
|
|
76
77
|
declare type Actions_2 = {
|
|
@@ -127,12 +128,6 @@ declare type BaseFilter = {
|
|
|
127
128
|
connectionType?: 'database' | 'api';
|
|
128
129
|
};
|
|
129
130
|
|
|
130
|
-
export declare type BaseQuery = {
|
|
131
|
-
id: string;
|
|
132
|
-
name: string;
|
|
133
|
-
sql: string;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
131
|
export declare type Bookmark = {
|
|
137
132
|
name: string;
|
|
138
133
|
default: boolean;
|
|
@@ -315,7 +310,7 @@ export declare function getDashbaordStateWithoutData(dashboardState: TDashboard)
|
|
|
315
310
|
style?: TStyle | undefined;
|
|
316
311
|
filters?: TFilter[] | undefined;
|
|
317
312
|
customCards?: CustomCard[] | undefined;
|
|
318
|
-
baseQueries?:
|
|
313
|
+
baseQueries?: TBaseQuery[] | undefined;
|
|
319
314
|
};
|
|
320
315
|
|
|
321
316
|
export declare function getFilterValueType(filter: TFilter): "string" | "number" | "date" | "boolean";
|
|
@@ -394,6 +389,13 @@ export declare type StyleProps = {
|
|
|
394
389
|
};
|
|
395
390
|
};
|
|
396
391
|
|
|
392
|
+
export declare type TBaseQuery = {
|
|
393
|
+
id: string;
|
|
394
|
+
name: string;
|
|
395
|
+
sql: string;
|
|
396
|
+
description?: string;
|
|
397
|
+
};
|
|
398
|
+
|
|
397
399
|
export declare type TCard = {
|
|
398
400
|
id: string;
|
|
399
401
|
title: string;
|
|
@@ -443,7 +445,7 @@ export declare type TDashboard = {
|
|
|
443
445
|
style?: TStyle;
|
|
444
446
|
filters?: TFilter[];
|
|
445
447
|
customCards?: CustomCard[];
|
|
446
|
-
baseQueries?:
|
|
448
|
+
baseQueries?: TBaseQuery[];
|
|
447
449
|
};
|
|
448
450
|
|
|
449
451
|
export declare type TDataColumn = {
|
|
@@ -771,6 +773,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
771
773
|
id: string;
|
|
772
774
|
name: string;
|
|
773
775
|
sql: string;
|
|
776
|
+
description?: string | undefined;
|
|
774
777
|
}[] | undefined;
|
|
775
778
|
};
|
|
776
779
|
selectedSheetId?: string | null | undefined;
|
|
@@ -915,8 +918,9 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
915
918
|
getSelectedSheetLayout: () => ReactGridLayout_2.Layout[] | undefined;
|
|
916
919
|
getSelectedSheetLayouts: () => ReactGridLayout_2.Layouts | undefined;
|
|
917
920
|
handleDataPointClickAction: (card: TCard, dataPoint: any) => void;
|
|
918
|
-
addBaseQuery: (baseQuery:
|
|
921
|
+
addBaseQuery: (baseQuery: TBaseQuery) => void;
|
|
919
922
|
removeBaseQuery: (baseQueryId: string) => void;
|
|
923
|
+
setBaseQueries: (baseQueries: TBaseQuery[]) => void;
|
|
920
924
|
};
|
|
921
925
|
}) => void), shouldReplace?: boolean | undefined): void;
|
|
922
926
|
}>;
|
package/dist/react-semaphor.js
CHANGED
|
@@ -10242,6 +10242,11 @@ const qa = /* @__PURE__ */ Nd(Ru), pC = ["lg", "md", "sm", "xs", "xxs"], be = NP
|
|
|
10242
10242
|
i != null && i > -1 && ((s = r.dashboard.baseQueries) == null || s.splice(i, 1));
|
|
10243
10243
|
});
|
|
10244
10244
|
},
|
|
10245
|
+
setBaseQueries: (n) => {
|
|
10246
|
+
e((r) => {
|
|
10247
|
+
r.dashboard.baseQueries = n;
|
|
10248
|
+
});
|
|
10249
|
+
},
|
|
10245
10250
|
setCurrentBreakpoint: (n) => {
|
|
10246
10251
|
e(() => ({
|
|
10247
10252
|
currentBreakpoint: n
|
|
@@ -10851,7 +10856,7 @@ function l$({
|
|
|
10851
10856
|
"div",
|
|
10852
10857
|
{
|
|
10853
10858
|
className: Te(
|
|
10854
|
-
" h-full flex flex-col justify-between",
|
|
10859
|
+
" grow h-full flex flex-col justify-between",
|
|
10855
10860
|
p == null ? void 0 : p.dashboardPanel,
|
|
10856
10861
|
e
|
|
10857
10862
|
),
|
|
@@ -40125,7 +40130,7 @@ const dT = Pe.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w.jsx(
|
|
|
40125
40130
|
{
|
|
40126
40131
|
role: "editor-panel",
|
|
40127
40132
|
ref: n,
|
|
40128
|
-
className: Te("flex
|
|
40133
|
+
className: Te("flex grow h-full", e),
|
|
40129
40134
|
...t
|
|
40130
40135
|
}
|
|
40131
40136
|
));
|
|
@@ -52149,7 +52154,7 @@ function Tfe() {
|
|
|
52149
52154
|
className: "min-w-full max-w-lg min-h-[250px]",
|
|
52150
52155
|
children: [
|
|
52151
52156
|
/* @__PURE__ */ w.jsx(Hh, { className: "flex", minSize: 20, defaultSize: 40, children: /* @__PURE__ */ w.jsx(pde, {}) }),
|
|
52152
|
-
/* @__PURE__ */ w.jsx(vO, { className: "border
|
|
52157
|
+
/* @__PURE__ */ w.jsx(vO, { className: "border " }),
|
|
52153
52158
|
/* @__PURE__ */ w.jsx(Hh, { minSize: 20, defaultSize: 60, children: e ? /* @__PURE__ */ w.jsxs(mO, { direction: "horizontal", children: [
|
|
52154
52159
|
/* @__PURE__ */ w.jsx(w.Fragment, { children: /* @__PURE__ */ w.jsx(
|
|
52155
52160
|
Hh,
|
|
@@ -52161,7 +52166,7 @@ function Tfe() {
|
|
|
52161
52166
|
children: /* @__PURE__ */ w.jsx(Mfe, {})
|
|
52162
52167
|
}
|
|
52163
52168
|
) }),
|
|
52164
|
-
/* @__PURE__ */ w.jsx(vO, { className: "border
|
|
52169
|
+
/* @__PURE__ */ w.jsx(vO, { className: "border " }),
|
|
52165
52170
|
/* @__PURE__ */ w.jsx(Hh, { minSize: 40, defaultSize: 75, maxSize: 100, children: /* @__PURE__ */ w.jsx(mP, {}) })
|
|
52166
52171
|
] }) : /* @__PURE__ */ w.jsx(mP, {}) })
|
|
52167
52172
|
]
|
|
@@ -52176,8 +52181,8 @@ function Afe({ authToken: e, onSave: t, onClose: n }) {
|
|
|
52176
52181
|
}, [t, r, n, i]), ye(() => {
|
|
52177
52182
|
e && e.accessToken && o(e);
|
|
52178
52183
|
}, [e, o]), // <DashboardProvider>
|
|
52179
|
-
/* @__PURE__ */ w.jsxs(dT, { className: "rounded-none", children: [
|
|
52180
|
-
/* @__PURE__ */ w.jsx(fT, { className: " rounded-none border-r-[
|
|
52184
|
+
/* @__PURE__ */ w.jsxs(dT, { className: "rounded-none", role: "editor-panel", children: [
|
|
52185
|
+
/* @__PURE__ */ w.jsx(fT, { className: " rounded-none border-r-[1.5px] ", children: /* @__PURE__ */ w.jsx(AT, {}) }),
|
|
52181
52186
|
/* @__PURE__ */ w.jsx(hT, { children: /* @__PURE__ */ w.jsx(Tfe, {}) })
|
|
52182
52187
|
] });
|
|
52183
52188
|
}
|