@burdenoff/microfe-bigconsole 2026.1118.9 → 2026.1119.1
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/bigconsole/asof/AsOfBanner.d.ts +3 -0
- package/dist/bigconsole/asof/AsOfBanner.js +38 -0
- package/dist/bigconsole/asof/AsOfControl.d.ts +4 -0
- package/dist/bigconsole/asof/AsOfControl.js +96 -0
- package/dist/bigconsole/asof/AsOfProvider.d.ts +24 -0
- package/dist/bigconsole/asof/AsOfProvider.js +76 -0
- package/dist/bigconsole/asof/asOfMessage.d.ts +12 -0
- package/dist/bigconsole/asof/asOfMessage.js +12 -0
- package/dist/bigconsole/asof/asOfParam.d.ts +48 -0
- package/dist/bigconsole/asof/asOfParam.js +34 -0
- package/dist/bigconsole/asof/index.d.ts +7 -0
- package/dist/bigconsole/asof/index.js +6 -0
- package/dist/bigconsole/components/dashboard/BoardMigrationReport.d.ts +7 -0
- package/dist/bigconsole/components/dashboard/BoardMigrationReport.js +136 -0
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +142 -138
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +97 -92
- package/dist/bigconsole/components/dashboard/ImportFromToolDialog.d.ts +8 -0
- package/dist/bigconsole/components/dashboard/ImportFromToolDialog.js +464 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +78 -74
- package/dist/bigconsole/components/dashboard/index.d.ts +2 -0
- package/dist/bigconsole/components/dashboard/index.js +2 -0
- package/dist/bigconsole/components/widgets/WidgetMenu.js +98 -96
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +345 -306
- package/dist/bigconsole/constants/backendErrors.js +1 -0
- package/dist/bigconsole/hooks/index.d.ts +1 -0
- package/dist/bigconsole/hooks/index.js +14 -13
- package/dist/bigconsole/hooks/useBoardMigrationPreview.d.ts +22 -0
- package/dist/bigconsole/hooks/useBoardMigrationPreview.js +62 -0
- package/dist/bigconsole/hooks/useFilterFieldValues.js +52 -22
- package/dist/bigconsole/hooks/useWidgetData.d.ts +7 -0
- package/dist/bigconsole/hooks/useWidgetData.js +53 -43
- package/dist/bigconsole/pages/DashboardViewPage.d.ts +7 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +300 -278
- package/dist/bigconsole/pages/DashboardsPage.js +396 -376
- package/dist/bigconsole/pages/index.d.ts +1 -1
- package/dist/bigconsole/types/index.d.ts +13 -0
- package/dist/bigconsole/utils/backendError.js +46 -24
- package/dist/bigconsole/utils/boardMigration.d.ts +53 -0
- package/dist/bigconsole/utils/boardMigration.js +92 -0
- package/dist/bigconsole/utils/widgetDisplayData.d.ts +6 -0
- package/dist/bigconsole/utils/widgetDisplayData.js +4 -0
- package/dist/generated/wspace-operations.d.ts +116 -0
- package/dist/generated/wspace-operations.js +793 -183
- package/dist/generated/wspace-types.d.ts +78 -0
- package/dist/generated/wspace-types.js +12 -10
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ var e = {
|
|
|
5
5
|
DASHBOARD_ARCHIVED_CANNOT_PUBLISH: "An archived dashboard cannot be published. Restore it first.",
|
|
6
6
|
DASHBOARD_INVALID_STATUS_TRANSITION: "That status change is not allowed for this dashboard.",
|
|
7
7
|
SOURCE_DASHBOARD_NOT_FOUND: "The source dashboard could not be found.",
|
|
8
|
+
BOARD_MIGRATION_INVALID: "That file is not a board this tool can convert. Check that it is one Metabase dashboard as JSON, a Tableau .twb workbook, or a Power BI report folder in PBIR format.",
|
|
8
9
|
DASHBOARD_IMPORT_INVALID_JSON: "The import file is not valid JSON.",
|
|
9
10
|
DASHBOARD_IMPORT_MISSING_DATA: "The import file is missing its dashboard data.",
|
|
10
11
|
DASHBOARD_LOCALE_REQUIRED: "A locale is required.",
|
|
@@ -19,6 +19,7 @@ export { useWidgetEvents, createWidgetActionHandler, type EventStatus, type Even
|
|
|
19
19
|
export { useWidgetActions, type ActionType, type ActionStyle, type ActionConfirmation, type WidgetAction, type CreateWidgetActionInput, type UpdateWidgetActionInput, type UseWidgetActionsOptions, type UseWidgetActionsResult, default as useWidgetActionsDefault, } from './useWidgetActions';
|
|
20
20
|
export { useExportDashboard, type ExportDashboardOptions, type UseExportDashboardResult, default as useExportDashboardDefault, } from './useExportDashboard';
|
|
21
21
|
export { useImportDashboard, type ImportDashboardInfo, type ImportValidationError, type ImportValidationWarning, type ImportValidationResult, type ImportStats, type ImportDashboardResult, type ImportDashboardOptions, type UseImportDashboardResult, default as useImportDashboardDefault, } from './useImportDashboard';
|
|
22
|
+
export { useBoardMigrationPreview, type BoardMigrationPreview, type BoardMigrationReportData, type BoardMigrationItemData, type PreviewBoardInput, type UseBoardMigrationPreviewResult, } from './useBoardMigrationPreview';
|
|
22
23
|
export { useEventWebhooks, type HttpMethod, type RetryPolicy, type EventWebhookMapping, type CreateEventWebhookMappingInput, type UpdateEventWebhookMappingInput, type WebhookTestResult, type UseEventWebhooksOptions, type UseEventWebhooksResult, default as useEventWebhooksDefault, } from './useEventWebhooks';
|
|
23
24
|
export { useEventLogs, getEventStatusColor, getEventStatusLabel, getEventStatusIcon, type EventLog as EventLogType, type EventLogEdge, type EventLogConnection, type UseEventLogsOptions, type UseEventLogsResult, default as useEventLogsDefault, } from './useEventLogs';
|
|
24
25
|
export { useDataSinkOperations, default as useDataSinkOperationsDefault } from './useDataSinkOperations';
|
|
@@ -13,26 +13,27 @@ import "./useWidgetEvents.js";
|
|
|
13
13
|
import "./useWidgetActions.js";
|
|
14
14
|
import u from "./useExportDashboard.js";
|
|
15
15
|
import d from "./useImportDashboard.js";
|
|
16
|
+
import f from "./useBoardMigrationPreview.js";
|
|
16
17
|
import "./useEventWebhooks.js";
|
|
17
18
|
import "./useEventLogs.js";
|
|
18
|
-
import
|
|
19
|
+
import p from "./useDataSinkOperations.js";
|
|
19
20
|
import "./useBigConsoleAnalytics.js";
|
|
20
|
-
import
|
|
21
|
+
import m from "./useParserOperations.js";
|
|
21
22
|
import "./useWorkflowOperations.js";
|
|
22
23
|
import "./usePipelineOperations.js";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
24
|
+
import h from "./useGlobalFilters.js";
|
|
25
|
+
import g from "./useDashboardSharing.js";
|
|
26
|
+
import _ from "./useDashboardViews.js";
|
|
26
27
|
import "./useDashboardTemplates.js";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
28
|
+
import v from "./useFilterUrlSync.js";
|
|
29
|
+
import y from "./useFilterPresets.js";
|
|
29
30
|
import "./useCrossFilter.js";
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
31
|
+
import b from "./usePageOperations.js";
|
|
32
|
+
import x from "./useExportParser.js";
|
|
33
|
+
import S from "./useImportParser.js";
|
|
33
34
|
import "./useDetectAnomalies.js";
|
|
34
|
-
import
|
|
35
|
-
import
|
|
35
|
+
import C from "./useExportDataSink.js";
|
|
36
|
+
import w from "./useImportDataSink.js";
|
|
36
37
|
import "./useWidgetNarrative.js";
|
|
37
38
|
import "./useDashboardDigest.js";
|
|
38
|
-
export { t as formatTimeUntilRefresh, o as useDashboardOperations,
|
|
39
|
+
export { t as formatTimeUntilRefresh, f as useBoardMigrationPreview, o as useDashboardOperations, g as useDashboardSharing, _ as useDashboardViews, p as useDataSinkOperations, c as useDrilldown, l as useDrilldownOperations, u as useExportDashboard, C as useExportDataSink, x as useExportParser, y as useFilterPresets, v as useFilterUrlSync, h as useGlobalFilters, d as useImportDashboard, w as useImportDataSink, S as useImportParser, b as usePageOperations, m as useParserOperations, n as useWidgetAutoRefresh, i as useWidgetComments, a as useWidgetConfigPersist, e as useWidgetData, s as useWidgetExport, r as useWidgetOperations };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PreviewBoardMigrationQuery } from '../../generated/wspace-operations';
|
|
2
|
+
import { MigrationSourceId } from '../utils/boardMigration';
|
|
3
|
+
export type BoardMigrationPreview = PreviewBoardMigrationQuery['previewBoardMigration'];
|
|
4
|
+
export type BoardMigrationReportData = BoardMigrationPreview['report'];
|
|
5
|
+
export type BoardMigrationItemData = BoardMigrationReportData['items'][number];
|
|
6
|
+
export interface PreviewBoardInput {
|
|
7
|
+
source: MigrationSourceId;
|
|
8
|
+
/** The board in the shape the source needs: a Metabase dashboard, `{ name, workbook }` or the gathered PBIR report. */
|
|
9
|
+
board: Record<string, unknown>;
|
|
10
|
+
/** Where the board lives; the service drops credentials and the query string. */
|
|
11
|
+
sourceUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UseBoardMigrationPreviewResult {
|
|
14
|
+
loading: boolean;
|
|
15
|
+
error: Error | null;
|
|
16
|
+
preview: BoardMigrationPreview | null;
|
|
17
|
+
/** Convert a board. Resolves to null when it failed or was superseded. */
|
|
18
|
+
previewBoard: (input: PreviewBoardInput) => Promise<BoardMigrationPreview | null>;
|
|
19
|
+
clearPreview: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare function useBoardMigrationPreview(): UseBoardMigrationPreviewResult;
|
|
22
|
+
export default useBoardMigrationPreview;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { PreviewBoardMigrationDocument as e } from "../../generated/wspace-operations.js";
|
|
2
|
+
import { useBigConsole as t } from "../context/BigConsoleContext.js";
|
|
3
|
+
import { BigConsoleBoardMigrationSource as n } from "../../generated/wspace-types.js";
|
|
4
|
+
import "../context/index.js";
|
|
5
|
+
import { useCallback as r, useLayoutEffect as i, useRef as a, useState as o } from "react";
|
|
6
|
+
import { useApolloClient as s } from "@apollo/client/react";
|
|
7
|
+
// src/bigconsole/hooks/useBoardMigrationPreview.ts
|
|
8
|
+
var c = {
|
|
9
|
+
METABASE: n.Metabase,
|
|
10
|
+
TABLEAU: n.Tableau,
|
|
11
|
+
POWER_BI: n.PowerBi
|
|
12
|
+
};
|
|
13
|
+
function l() {
|
|
14
|
+
let [n, l] = o(!1), [u, d] = o(null), [f, p] = o(null), m = s(), { currentUser: h, workspaceId: g } = t(), _ = `${h?.id ?? ""}|${g ?? ""}`, v = a(_), y = a(0);
|
|
15
|
+
return i(() => (v.current = _, y.current++, l(!1), d(null), p(null), () => {
|
|
16
|
+
v.current = "";
|
|
17
|
+
}), [_]), {
|
|
18
|
+
loading: n,
|
|
19
|
+
error: u,
|
|
20
|
+
preview: f,
|
|
21
|
+
previewBoard: r(async ({ source: t, board: n, sourceUrl: r }) => {
|
|
22
|
+
let i = ++y.current, a = () => v.current === _ && y.current === i;
|
|
23
|
+
try {
|
|
24
|
+
if (!g || !h?.id || v.current !== _) throw Error("Select a workspace before importing a dashboard.");
|
|
25
|
+
l(!0), d(null), p(null);
|
|
26
|
+
let i = {
|
|
27
|
+
source: c[t],
|
|
28
|
+
boardJson: n,
|
|
29
|
+
sourceUrl: r
|
|
30
|
+
}, o = await m.query({
|
|
31
|
+
query: e,
|
|
32
|
+
variables: i,
|
|
33
|
+
fetchPolicy: "no-cache",
|
|
34
|
+
errorPolicy: "none",
|
|
35
|
+
context: {
|
|
36
|
+
requiredWorkspaceAuth: !0,
|
|
37
|
+
requiredWorkspaceId: g,
|
|
38
|
+
queryDeduplication: !1
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
if (!a()) return null;
|
|
42
|
+
if (o.error) throw o.error;
|
|
43
|
+
let s = o.data?.previewBoardMigration;
|
|
44
|
+
if (!s) throw Error("The conversion returned no result");
|
|
45
|
+
return p(s), s;
|
|
46
|
+
} catch (e) {
|
|
47
|
+
return a() && d(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to convert the board")), null;
|
|
48
|
+
} finally {
|
|
49
|
+
a() && l(!1);
|
|
50
|
+
}
|
|
51
|
+
}, [
|
|
52
|
+
m,
|
|
53
|
+
h,
|
|
54
|
+
_,
|
|
55
|
+
g
|
|
56
|
+
]),
|
|
57
|
+
clearPreview: r(() => {
|
|
58
|
+
y.current++, l(!1), d(null), p(null);
|
|
59
|
+
}, [])
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export { l as default, l as useBoardMigrationPreview };
|
|
@@ -1,36 +1,66 @@
|
|
|
1
1
|
import { useWidgetStore as e } from "../store/widgetStore.js";
|
|
2
|
-
import {
|
|
2
|
+
import { GetWidgetDataAsOfDocument as t, GetWidgetDocument as n } from "../../generated/wspace-operations.js";
|
|
3
|
+
import "../asof/index.js";
|
|
4
|
+
import { useAsOf as r } from "../asof/AsOfProvider.js";
|
|
3
5
|
import "../store/index.js";
|
|
4
|
-
import { distinctFieldValues as
|
|
5
|
-
import { useCallback as
|
|
6
|
-
import { useApolloClient as
|
|
6
|
+
import { distinctFieldValues as i } from "../utils/globalFilterMatching.js";
|
|
7
|
+
import { useCallback as a, useEffect as o, useMemo as s, useState as c } from "react";
|
|
8
|
+
import { useApolloClient as l } from "@apollo/client/react";
|
|
7
9
|
// src/bigconsole/hooks/useFilterFieldValues.ts
|
|
8
|
-
function
|
|
9
|
-
let
|
|
10
|
-
if (!
|
|
10
|
+
function u(u, d) {
|
|
11
|
+
let f = l(), p = e((e) => e.widgets), [m, h] = c(0), { asOf: g } = r(), _ = g ? g.toISOString() : null, v = a(() => {
|
|
12
|
+
if (!u || !d?.trim()) return [];
|
|
11
13
|
let e = [];
|
|
12
|
-
for (let
|
|
13
|
-
if (
|
|
14
|
-
let
|
|
14
|
+
for (let r of p.values()) {
|
|
15
|
+
if (r.dashboardId !== u) continue;
|
|
16
|
+
let i;
|
|
15
17
|
try {
|
|
16
|
-
|
|
18
|
+
i = _ ? f.readQuery({
|
|
17
19
|
query: t,
|
|
18
|
-
variables: {
|
|
20
|
+
variables: {
|
|
21
|
+
id: r.id,
|
|
22
|
+
asOf: _
|
|
23
|
+
}
|
|
24
|
+
})?.getWidget?.data : f.readQuery({
|
|
25
|
+
query: n,
|
|
26
|
+
variables: { id: r.id }
|
|
19
27
|
})?.getWidget?.data;
|
|
20
28
|
} catch {}
|
|
21
|
-
let
|
|
22
|
-
|
|
29
|
+
let a = _ ? i : i ?? r.data;
|
|
30
|
+
a && e.push(a);
|
|
23
31
|
}
|
|
24
|
-
return
|
|
32
|
+
return i(e, d);
|
|
25
33
|
}, [
|
|
26
|
-
|
|
34
|
+
f,
|
|
35
|
+
p,
|
|
27
36
|
u,
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
d,
|
|
38
|
+
_
|
|
30
39
|
]);
|
|
31
|
-
return {
|
|
32
|
-
|
|
33
|
-
|
|
40
|
+
return o(() => {
|
|
41
|
+
if (!_ || !u) return;
|
|
42
|
+
let e = [];
|
|
43
|
+
for (let n of p.values()) n.dashboardId === u && e.push(f.cache.watch({
|
|
44
|
+
query: t,
|
|
45
|
+
variables: {
|
|
46
|
+
id: n.id,
|
|
47
|
+
asOf: _
|
|
48
|
+
},
|
|
49
|
+
optimistic: !1,
|
|
50
|
+
returnPartialData: !0,
|
|
51
|
+
callback: () => h((e) => e + 1)
|
|
52
|
+
}));
|
|
53
|
+
return () => {
|
|
54
|
+
for (let t of e) t();
|
|
55
|
+
};
|
|
56
|
+
}, [
|
|
57
|
+
f,
|
|
58
|
+
p,
|
|
59
|
+
u,
|
|
60
|
+
_
|
|
61
|
+
]), {
|
|
62
|
+
values: s(() => m >= 0 ? v() : [], [v, m]),
|
|
63
|
+
refresh: a(() => (h((e) => e + 1), v()), [v])
|
|
34
64
|
};
|
|
35
65
|
}
|
|
36
|
-
export {
|
|
66
|
+
export { u as useFilterFieldValues };
|
|
@@ -10,6 +10,11 @@ interface UseWidgetDataOptions {
|
|
|
10
10
|
onError?: (error: Error) => void;
|
|
11
11
|
/** Global filter values to apply */
|
|
12
12
|
filterValues?: Record<string, unknown>;
|
|
13
|
+
/**
|
|
14
|
+
* Read the data as it was at this time (BOFF-14757). Live data is not fetched
|
|
15
|
+
* or polled meanwhile, and a refresh does nothing.
|
|
16
|
+
*/
|
|
17
|
+
asOf?: Date | null;
|
|
13
18
|
}
|
|
14
19
|
interface UseWidgetDataResult {
|
|
15
20
|
/** The widget with its data */
|
|
@@ -26,6 +31,8 @@ interface UseWidgetDataResult {
|
|
|
26
31
|
refetch: () => Promise<void>;
|
|
27
32
|
/** Is currently refreshing */
|
|
28
33
|
isRefreshing: boolean;
|
|
34
|
+
/** What an as-of read used. Null for a live read. */
|
|
35
|
+
asOfInfo: WidgetData['asOf'] | null;
|
|
29
36
|
}
|
|
30
37
|
export declare function useWidgetData(widgetId: string, options?: UseWidgetDataOptions): UseWidgetDataResult;
|
|
31
38
|
interface UseWidgetsDataOptions {
|
|
@@ -2,43 +2,50 @@ import { useWidgetStore as e } from "../store/widgetStore.js";
|
|
|
2
2
|
import { useQueryLifecycle as t } from "./useQueryLifecycle.js";
|
|
3
3
|
import "./useWidgetOperations.js";
|
|
4
4
|
import "../store/index.js";
|
|
5
|
-
import {
|
|
6
|
-
import { useCallback as
|
|
7
|
-
import { useMutation as
|
|
5
|
+
import { GetWidgetDataAsOfDocument as n, GetWidgetDocument as r, RefreshWidgetDataDocument as i } from "../../generated/wspace-operations.js";
|
|
6
|
+
import { useCallback as a, useMemo as o } from "react";
|
|
7
|
+
import { useMutation as s, useQuery as c } from "@apollo/client/react";
|
|
8
8
|
// src/bigconsole/hooks/useWidgetData.ts
|
|
9
|
-
function
|
|
10
|
-
let { skip:
|
|
11
|
-
variables: { id:
|
|
12
|
-
skip:
|
|
13
|
-
pollInterval:
|
|
9
|
+
function l(l, u = {}) {
|
|
10
|
+
let { skip: d = !1, pollInterval: f = 0, onSuccess: p, onError: m, asOf: h = null } = u, g = h !== null, _ = e((e) => e.setWidgetLoading), v = e((e) => e.setWidgetError), { data: y, dataState: b, observable: x, loading: S, error: C, refetch: w } = c(r, {
|
|
11
|
+
variables: { id: l },
|
|
12
|
+
skip: d || !l || g,
|
|
13
|
+
pollInterval: f,
|
|
14
14
|
fetchPolicy: "cache-and-network",
|
|
15
15
|
returnPartialData: !1,
|
|
16
16
|
notifyOnNetworkStatusChange: !0
|
|
17
|
-
}),
|
|
17
|
+
}), { data: T, loading: E, error: D } = c(n, {
|
|
18
|
+
variables: {
|
|
19
|
+
id: l,
|
|
20
|
+
asOf: (h ?? /* @__PURE__ */ new Date(0)).toISOString()
|
|
21
|
+
},
|
|
22
|
+
skip: d || !l || !g,
|
|
23
|
+
fetchPolicy: "cache-first"
|
|
24
|
+
}), O = t(x, l, !d && !!l, {
|
|
18
25
|
onCompleted: (e) => {
|
|
19
|
-
|
|
26
|
+
_(l, !1), v(l, null);
|
|
20
27
|
let t = e.getWidget?.data;
|
|
21
|
-
t &&
|
|
28
|
+
t && p?.(t);
|
|
22
29
|
},
|
|
23
30
|
onError: (e) => {
|
|
24
|
-
|
|
31
|
+
_(l, !1), v(l, e.message), m && m(e);
|
|
25
32
|
}
|
|
26
|
-
}), [
|
|
33
|
+
}), [k, { loading: A }] = s(i, {
|
|
27
34
|
onCompleted: (e) => {
|
|
28
|
-
if (!
|
|
29
|
-
|
|
35
|
+
if (!O()) return;
|
|
36
|
+
_(l, !1), v(l, null);
|
|
30
37
|
let t = e.refreshWidgetData;
|
|
31
|
-
t &&
|
|
38
|
+
t && p && p(t);
|
|
32
39
|
},
|
|
33
40
|
onError: (e) => {
|
|
34
|
-
|
|
41
|
+
O() && (_(l, !1), v(l, e.message), m && m(e));
|
|
35
42
|
},
|
|
36
43
|
update: (e, { data: t }) => {
|
|
37
44
|
let n = t?.refreshWidgetData;
|
|
38
45
|
n && e.modify({
|
|
39
46
|
id: e.identify({
|
|
40
47
|
__typename: "BigConsoleWidget",
|
|
41
|
-
id:
|
|
48
|
+
id: l
|
|
42
49
|
}),
|
|
43
50
|
fields: {
|
|
44
51
|
data: () => n,
|
|
@@ -46,40 +53,43 @@ function c(c, l = {}) {
|
|
|
46
53
|
}
|
|
47
54
|
});
|
|
48
55
|
}
|
|
49
|
-
}),
|
|
50
|
-
if (!
|
|
51
|
-
|
|
56
|
+
}), j = a(async () => {
|
|
57
|
+
if (!l || !O() || g) return null;
|
|
58
|
+
_(l, !0);
|
|
52
59
|
try {
|
|
53
|
-
return (await
|
|
60
|
+
return (await k({ variables: { widgetId: l } })).data?.refreshWidgetData ?? null;
|
|
54
61
|
} catch {
|
|
55
62
|
return null;
|
|
56
63
|
}
|
|
57
64
|
}, [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
l,
|
|
66
|
+
k,
|
|
67
|
+
_,
|
|
68
|
+
O,
|
|
69
|
+
g
|
|
70
|
+
]), M = a(async () => {
|
|
71
|
+
if (l && O() && !g) {
|
|
72
|
+
_(l, !0);
|
|
65
73
|
try {
|
|
66
|
-
await
|
|
74
|
+
await w();
|
|
67
75
|
} catch {}
|
|
68
76
|
}
|
|
69
77
|
}, [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
78
|
+
l,
|
|
79
|
+
w,
|
|
80
|
+
_,
|
|
81
|
+
O,
|
|
82
|
+
g
|
|
83
|
+
]), N = (!d && l && b === "complete" ? y : void 0)?.getWidget, P = o(() => N || null, [N]), F = g ? T?.getWidget?.data : null, I = g ? F : P?.data, L = o(() => I || null, [I]), R = g ? D : C, z = o(() => R ? Error(R.message) : null, [R]);
|
|
75
84
|
return {
|
|
76
|
-
widget:
|
|
77
|
-
data:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
85
|
+
widget: g ? null : P,
|
|
86
|
+
data: L,
|
|
87
|
+
asOfInfo: L?.asOf ?? null,
|
|
88
|
+
loading: g ? E : S,
|
|
89
|
+
error: z,
|
|
90
|
+
refresh: j,
|
|
91
|
+
refetch: M,
|
|
92
|
+
isRefreshing: A
|
|
83
93
|
};
|
|
84
94
|
}
|
|
85
|
-
export {
|
|
95
|
+
export { l as default, l as useWidgetData };
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
export declare const DashboardViewPage: FC;
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The dashboard view. The as-of provider sits outside the page body so that every
|
|
5
|
+
* part of the page, header and assistant tools included, can see whether a past
|
|
6
|
+
* time is shown (BOFF-14757).
|
|
7
|
+
*/
|
|
8
|
+
declare const DashboardViewPageWithAsOf: FC;
|
|
9
|
+
export default DashboardViewPageWithAsOf;
|