@quillsql/react 2.16.32 → 2.16.34
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/index.cjs +16 -17
- package/dist/index.d.cts +22 -13
- package/dist/index.d.ts +22 -13
- package/dist/index.js +16 -17
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -27737,7 +27737,8 @@ var useDashboard = (dashboardName, config) => {
|
|
|
27737
27737
|
filters,
|
|
27738
27738
|
applyFilters,
|
|
27739
27739
|
lastUpdated,
|
|
27740
|
-
forceCacheRefresh
|
|
27740
|
+
forceCacheRefresh,
|
|
27741
|
+
reload
|
|
27741
27742
|
};
|
|
27742
27743
|
};
|
|
27743
27744
|
var useDashboardReportInternal = (reportId, config) => {
|
|
@@ -39755,8 +39756,8 @@ function DashboardSection({
|
|
|
39755
39756
|
listStyleType: "none",
|
|
39756
39757
|
display: "grid",
|
|
39757
39758
|
gap: 40,
|
|
39758
|
-
|
|
39759
|
-
|
|
39759
|
+
alignItems: "start",
|
|
39760
|
+
gridTemplateColumns: "repeat(auto-fill,minmax(400px, 1fr))"
|
|
39760
39761
|
},
|
|
39761
39762
|
children
|
|
39762
39763
|
}
|
|
@@ -42815,8 +42816,8 @@ var styles = {
|
|
|
42815
42816
|
listStyleType: "none",
|
|
42816
42817
|
display: "grid",
|
|
42817
42818
|
gap: 40,
|
|
42818
|
-
|
|
42819
|
-
|
|
42819
|
+
alignItems: "start",
|
|
42820
|
+
gridTemplateColumns: "repeat(auto-fill,minmax(400px, 1fr))"
|
|
42820
42821
|
},
|
|
42821
42822
|
emptyCard: {
|
|
42822
42823
|
backgroundColor: "#ffffff",
|
|
@@ -42829,7 +42830,6 @@ var styles = {
|
|
|
42829
42830
|
},
|
|
42830
42831
|
chartCard: {
|
|
42831
42832
|
boxSizing: "content-box",
|
|
42832
|
-
height: "100%",
|
|
42833
42833
|
minHeight: 400,
|
|
42834
42834
|
borderRadius: 8,
|
|
42835
42835
|
cursor: "pointer"
|
|
@@ -43287,7 +43287,7 @@ function DashboardContent({
|
|
|
43287
43287
|
});
|
|
43288
43288
|
}, [sections, sectionOrder]);
|
|
43289
43289
|
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { style: styles.contentWrap, children: [
|
|
43290
|
-
metricReports.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { style: styles.splitGrid, children:
|
|
43290
|
+
metricReports.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { style: styles.splitGrid, children: metricReports.map((report) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
43291
43291
|
"div",
|
|
43292
43292
|
{
|
|
43293
43293
|
onClick: () => onClickReport(report),
|
|
@@ -43304,8 +43304,8 @@ function DashboardContent({
|
|
|
43304
43304
|
]
|
|
43305
43305
|
},
|
|
43306
43306
|
report.id
|
|
43307
|
-
)) })
|
|
43308
|
-
chartReports.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { style: styles.splitGrid, children:
|
|
43307
|
+
)) }),
|
|
43308
|
+
chartReports.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { style: styles.splitGrid, children: chartReports.map((report) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
43309
43309
|
"div",
|
|
43310
43310
|
{
|
|
43311
43311
|
onClick: () => onClickReport(report),
|
|
@@ -43322,7 +43322,7 @@ function DashboardContent({
|
|
|
43322
43322
|
]
|
|
43323
43323
|
},
|
|
43324
43324
|
report.id
|
|
43325
|
-
)) })
|
|
43325
|
+
)) }),
|
|
43326
43326
|
tableReports.length === 0 && orderedNonRootSectionEntries.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { style: styles.splitGrid, children: [
|
|
43327
43327
|
tableReports.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("section", { style: styles.tableColumn, children: tableReports.map((report) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
43328
43328
|
"div",
|
|
@@ -58787,7 +58787,12 @@ function createUseFormPivotTableDataRefreshQueryKey(input) {
|
|
|
58787
58787
|
];
|
|
58788
58788
|
}
|
|
58789
58789
|
function createUseFormReportNameQueryKey(input) {
|
|
58790
|
-
return [
|
|
58790
|
+
return [
|
|
58791
|
+
"useReport",
|
|
58792
|
+
"report-name",
|
|
58793
|
+
input.reportId,
|
|
58794
|
+
input.clientHash
|
|
58795
|
+
];
|
|
58791
58796
|
}
|
|
58792
58797
|
function createUseFormQueryFn(loader) {
|
|
58793
58798
|
return async () => loader();
|
|
@@ -66213,12 +66218,6 @@ function useReport(reportIdArg, options = {}) {
|
|
|
66213
66218
|
tenants,
|
|
66214
66219
|
draftSessionId: draftSessionId || void 0
|
|
66215
66220
|
});
|
|
66216
|
-
const savedId = String(
|
|
66217
|
-
resp?.id ?? resp?._id ?? effectiveReportId ?? ""
|
|
66218
|
-
).trim();
|
|
66219
|
-
if (resp && resp.name !== "error" && !resp.error && savedId) {
|
|
66220
|
-
setDraftSessionId(generateDraftSessionId());
|
|
66221
|
-
}
|
|
66222
66221
|
return resp;
|
|
66223
66222
|
}, [
|
|
66224
66223
|
chartType,
|
package/dist/index.d.cts
CHANGED
|
@@ -3251,23 +3251,25 @@ declare const quillFormat: ({ value, format, }: {
|
|
|
3251
3251
|
format: string;
|
|
3252
3252
|
}) => string;
|
|
3253
3253
|
|
|
3254
|
+
/** Refetch dashboard config and filters; optional report upsert/delete and filter overrides. */
|
|
3255
|
+
type UseDashboardReload = (overrideDashboardName?: string, fetchFromServer?: boolean, reportAction?: {
|
|
3256
|
+
report: QuillReport | {
|
|
3257
|
+
id: string;
|
|
3258
|
+
};
|
|
3259
|
+
action: 'upsert' | 'delete';
|
|
3260
|
+
}, overrideFilters?: {
|
|
3261
|
+
filters: InternalDashboardFilter[];
|
|
3262
|
+
editedFilterLabel?: string;
|
|
3263
|
+
refetchReports?: boolean;
|
|
3264
|
+
}, options?: {
|
|
3265
|
+
preserveExistingDateFilter?: boolean;
|
|
3266
|
+
}) => Promise<void>;
|
|
3254
3267
|
declare const useDashboardInternal: (dashboardName: string | null, customFilters?: InternalFilter[]) => {
|
|
3255
3268
|
data: DashboardConfig | null;
|
|
3256
3269
|
dashboardFilters: InternalDashboardFilter[] | null;
|
|
3257
3270
|
isLoading: boolean | undefined;
|
|
3258
3271
|
isDashboardFilterLoading: (filterName: string) => boolean | undefined;
|
|
3259
|
-
reload:
|
|
3260
|
-
report: QuillReport | {
|
|
3261
|
-
id: string;
|
|
3262
|
-
};
|
|
3263
|
-
action: "upsert" | "delete";
|
|
3264
|
-
}, overrideFilters?: {
|
|
3265
|
-
filters: InternalDashboardFilter[];
|
|
3266
|
-
editedFilterLabel?: string;
|
|
3267
|
-
refetchReports?: boolean;
|
|
3268
|
-
}, options?: {
|
|
3269
|
-
preserveExistingDateFilter?: boolean;
|
|
3270
|
-
}) => Promise<void>;
|
|
3272
|
+
reload: UseDashboardReload;
|
|
3271
3273
|
setSectionOrder: (sectionOrder: {
|
|
3272
3274
|
section: string;
|
|
3273
3275
|
_id?: string;
|
|
@@ -3321,6 +3323,12 @@ declare const useDashboards: () => {
|
|
|
3321
3323
|
}) => Promise<void>;
|
|
3322
3324
|
deleteDashboard: (name: string) => Promise<void>;
|
|
3323
3325
|
};
|
|
3326
|
+
/**
|
|
3327
|
+
* `reload` is the same reference as `useDashboardInternal(dashboardName).reload`.
|
|
3328
|
+
* Use after structural changes or report upsert/delete; use `applyFilters` for
|
|
3329
|
+
* filter-value updates; use `forceCacheRefresh` to bypass cached report payloads
|
|
3330
|
+
* when cache is on. Calling `reload` every render adds network load.
|
|
3331
|
+
*/
|
|
3324
3332
|
declare const useDashboard: (dashboardName: string, config?: {
|
|
3325
3333
|
pageSize?: number;
|
|
3326
3334
|
cacheEnabled?: boolean;
|
|
@@ -3345,6 +3353,7 @@ declare const useDashboard: (dashboardName: string, config?: {
|
|
|
3345
3353
|
} | Filter>) => void;
|
|
3346
3354
|
lastUpdated: number;
|
|
3347
3355
|
forceCacheRefresh: () => void;
|
|
3356
|
+
reload: UseDashboardReload;
|
|
3348
3357
|
};
|
|
3349
3358
|
declare const useDashboardReport: (reportId: string, config?: {
|
|
3350
3359
|
initialFilters?: Filter[];
|
|
@@ -4186,4 +4195,4 @@ interface ReportTableProps {
|
|
|
4186
4195
|
}
|
|
4187
4196
|
declare const ReportTable: ({ reportBuilder, TableComponent, }: ReportTableProps) => react_jsx_runtime.JSX.Element;
|
|
4188
4197
|
|
|
4189
|
-
export { ALL_TENANTS, AddColumns, AddFilters, AddLimit, AddPivot, AddSort, type AxisFormat$1 as AxisFormat, type ButtonComponentProps, Calculation, Chart, ChartDisplay, ChartEditor, type ChartEditorProps, type ChartProps, Chat, type ChatModelId, type ChatProps, type CheckboxComponentProps, type ColorMapType, type Column$1 as Column, type ColumnSelectionOption, type ContainerComponentProps, Dashboard, type DashboardDateFilter, type DashboardFilter, DashboardFilterType, DashboardLegacy, type DashboardLegacyProps, type DashboardMultiFilter, type DashboardProps, type DashboardSectionComponentProps, type DashboardSingleFilter, type DashboardTenantFilter, DateOperator, type DateRange, type DateRangePickerComponentProps, type DateRangePickerOption, type DeleteButtonComponentProps, type DraggableColumnComponentProps, type EventBreadcrumb, type EventContext, type EventError, type EventMetadata, type EventTracking, type EventUser, type Filter, type FilterPopoverComponentProps, FilterType, type HeaderComponentProps, type HeaderProps, type InternalDashboardDateFilter, type InternalDashboardTenantFilter, type InternalFilter, type LabelComponentProps, type LimitPopoverComponentProps, type ModalComponentProps, NullOperator, NumberOperator, type Option, type Pivot, type PivotAggregation, type PopoverComponentProps, type QueryBuilderDisplayGroup, type QueryBuilderDisplayRule, type QuillCustomInterval, type QuillCustomRelativeInterval, type QuillCustomRepeatingInterval, type QuillCustomStaticInterval, type QuillPreviousMonthInterval, type QuillPreviousQuarterInterval, QuillProvider, type QuillProviderProps, type QuillReport, type QuillReportProps, type QuillTheme, type QuillWeekInterval, ReportBuilder$1 as ReportBuilder, type ReportBuilderColumn, type ReportBuilderLimit, type ReportBuilderProps, type ReportBuilderSort, type ReportBuilderState, ReportDetail, type ReportDetailProps, ReportTable, SINGLE_TENANT, SQLEditor, type SQLEditorProps, SaveReport, SchemaListComponent, type SelectColumnComponentProps, type SelectComponentProps, type SetReportBuilderInput, type SetReportChartAxesInput, type SetReportTableColumnSidebarPatch, type SidebarComponentProps, type SidebarHeadingComponentProps, type SortPopoverComponentProps, StaticChart, type StaticChartProps, StringOperator, Table, type TableColumnListItem, type TableColumnsController, type TableColumnsControllerItem, type TableComponentProps, type TableProps, type TabsComponentProps, type TextComponentProps, type TextInputComponentProps, ThemeContext, type UseFormAxisConfig, areQueryBuilderFilterDraftsDirty, countFilterRules, downloadCSV, quillFormat as format, isQueryBuilderDisplayGroup, isQueryBuilderDisplayRule, normalizeRelativeDateRules, prepareQueryBuilderFiltersForSet, stripQueryBuilderTransientFields, tableColumnFormatFromUiSelection, useAllReports, useAskQuill, useDashboard, useDashboardInternal, useDashboardReport, useDashboardReports, useDashboards, useExport, useMemoizedRows, useQuill, useReport, useReportBuilder, useReports, useTenants, useVirtualTables };
|
|
4198
|
+
export { ALL_TENANTS, AddColumns, AddFilters, AddLimit, AddPivot, AddSort, type AxisFormat$1 as AxisFormat, type ButtonComponentProps, Calculation, Chart, ChartDisplay, ChartEditor, type ChartEditorProps, type ChartProps, Chat, type ChatModelId, type ChatProps, type CheckboxComponentProps, type ColorMapType, type Column$1 as Column, type ColumnSelectionOption, type ContainerComponentProps, Dashboard, type DashboardDateFilter, type DashboardFilter, DashboardFilterType, DashboardLegacy, type DashboardLegacyProps, type DashboardMultiFilter, type DashboardProps, type DashboardSectionComponentProps, type DashboardSingleFilter, type DashboardTenantFilter, DateOperator, type DateRange, type DateRangePickerComponentProps, type DateRangePickerOption, type DeleteButtonComponentProps, type DraggableColumnComponentProps, type EventBreadcrumb, type EventContext, type EventError, type EventMetadata, type EventTracking, type EventUser, type Filter, type FilterPopoverComponentProps, FilterType, type HeaderComponentProps, type HeaderProps, type InternalDashboardDateFilter, type InternalDashboardTenantFilter, type InternalFilter, type LabelComponentProps, type LimitPopoverComponentProps, type ModalComponentProps, NullOperator, NumberOperator, type Option, type Pivot, type PivotAggregation, type PopoverComponentProps, type QueryBuilderDisplayGroup, type QueryBuilderDisplayRule, type QuillCustomInterval, type QuillCustomRelativeInterval, type QuillCustomRepeatingInterval, type QuillCustomStaticInterval, type QuillPreviousMonthInterval, type QuillPreviousQuarterInterval, QuillProvider, type QuillProviderProps, type QuillReport, type QuillReportProps, type QuillTheme, type QuillWeekInterval, ReportBuilder$1 as ReportBuilder, type ReportBuilderColumn, type ReportBuilderLimit, type ReportBuilderProps, type ReportBuilderSort, type ReportBuilderState, ReportDetail, type ReportDetailProps, ReportTable, SINGLE_TENANT, SQLEditor, type SQLEditorProps, SaveReport, SchemaListComponent, type SelectColumnComponentProps, type SelectComponentProps, type SetReportBuilderInput, type SetReportChartAxesInput, type SetReportTableColumnSidebarPatch, type SidebarComponentProps, type SidebarHeadingComponentProps, type SortPopoverComponentProps, StaticChart, type StaticChartProps, StringOperator, Table, type TableColumnListItem, type TableColumnsController, type TableColumnsControllerItem, type TableComponentProps, type TableProps, type TabsComponentProps, type TextComponentProps, type TextInputComponentProps, ThemeContext, type UseDashboardReload, type UseFormAxisConfig, areQueryBuilderFilterDraftsDirty, countFilterRules, downloadCSV, quillFormat as format, isQueryBuilderDisplayGroup, isQueryBuilderDisplayRule, normalizeRelativeDateRules, prepareQueryBuilderFiltersForSet, stripQueryBuilderTransientFields, tableColumnFormatFromUiSelection, useAllReports, useAskQuill, useDashboard, useDashboardInternal, useDashboardReport, useDashboardReports, useDashboards, useExport, useMemoizedRows, useQuill, useReport, useReportBuilder, useReports, useTenants, useVirtualTables };
|
package/dist/index.d.ts
CHANGED
|
@@ -3251,23 +3251,25 @@ declare const quillFormat: ({ value, format, }: {
|
|
|
3251
3251
|
format: string;
|
|
3252
3252
|
}) => string;
|
|
3253
3253
|
|
|
3254
|
+
/** Refetch dashboard config and filters; optional report upsert/delete and filter overrides. */
|
|
3255
|
+
type UseDashboardReload = (overrideDashboardName?: string, fetchFromServer?: boolean, reportAction?: {
|
|
3256
|
+
report: QuillReport | {
|
|
3257
|
+
id: string;
|
|
3258
|
+
};
|
|
3259
|
+
action: 'upsert' | 'delete';
|
|
3260
|
+
}, overrideFilters?: {
|
|
3261
|
+
filters: InternalDashboardFilter[];
|
|
3262
|
+
editedFilterLabel?: string;
|
|
3263
|
+
refetchReports?: boolean;
|
|
3264
|
+
}, options?: {
|
|
3265
|
+
preserveExistingDateFilter?: boolean;
|
|
3266
|
+
}) => Promise<void>;
|
|
3254
3267
|
declare const useDashboardInternal: (dashboardName: string | null, customFilters?: InternalFilter[]) => {
|
|
3255
3268
|
data: DashboardConfig | null;
|
|
3256
3269
|
dashboardFilters: InternalDashboardFilter[] | null;
|
|
3257
3270
|
isLoading: boolean | undefined;
|
|
3258
3271
|
isDashboardFilterLoading: (filterName: string) => boolean | undefined;
|
|
3259
|
-
reload:
|
|
3260
|
-
report: QuillReport | {
|
|
3261
|
-
id: string;
|
|
3262
|
-
};
|
|
3263
|
-
action: "upsert" | "delete";
|
|
3264
|
-
}, overrideFilters?: {
|
|
3265
|
-
filters: InternalDashboardFilter[];
|
|
3266
|
-
editedFilterLabel?: string;
|
|
3267
|
-
refetchReports?: boolean;
|
|
3268
|
-
}, options?: {
|
|
3269
|
-
preserveExistingDateFilter?: boolean;
|
|
3270
|
-
}) => Promise<void>;
|
|
3272
|
+
reload: UseDashboardReload;
|
|
3271
3273
|
setSectionOrder: (sectionOrder: {
|
|
3272
3274
|
section: string;
|
|
3273
3275
|
_id?: string;
|
|
@@ -3321,6 +3323,12 @@ declare const useDashboards: () => {
|
|
|
3321
3323
|
}) => Promise<void>;
|
|
3322
3324
|
deleteDashboard: (name: string) => Promise<void>;
|
|
3323
3325
|
};
|
|
3326
|
+
/**
|
|
3327
|
+
* `reload` is the same reference as `useDashboardInternal(dashboardName).reload`.
|
|
3328
|
+
* Use after structural changes or report upsert/delete; use `applyFilters` for
|
|
3329
|
+
* filter-value updates; use `forceCacheRefresh` to bypass cached report payloads
|
|
3330
|
+
* when cache is on. Calling `reload` every render adds network load.
|
|
3331
|
+
*/
|
|
3324
3332
|
declare const useDashboard: (dashboardName: string, config?: {
|
|
3325
3333
|
pageSize?: number;
|
|
3326
3334
|
cacheEnabled?: boolean;
|
|
@@ -3345,6 +3353,7 @@ declare const useDashboard: (dashboardName: string, config?: {
|
|
|
3345
3353
|
} | Filter>) => void;
|
|
3346
3354
|
lastUpdated: number;
|
|
3347
3355
|
forceCacheRefresh: () => void;
|
|
3356
|
+
reload: UseDashboardReload;
|
|
3348
3357
|
};
|
|
3349
3358
|
declare const useDashboardReport: (reportId: string, config?: {
|
|
3350
3359
|
initialFilters?: Filter[];
|
|
@@ -4186,4 +4195,4 @@ interface ReportTableProps {
|
|
|
4186
4195
|
}
|
|
4187
4196
|
declare const ReportTable: ({ reportBuilder, TableComponent, }: ReportTableProps) => react_jsx_runtime.JSX.Element;
|
|
4188
4197
|
|
|
4189
|
-
export { ALL_TENANTS, AddColumns, AddFilters, AddLimit, AddPivot, AddSort, type AxisFormat$1 as AxisFormat, type ButtonComponentProps, Calculation, Chart, ChartDisplay, ChartEditor, type ChartEditorProps, type ChartProps, Chat, type ChatModelId, type ChatProps, type CheckboxComponentProps, type ColorMapType, type Column$1 as Column, type ColumnSelectionOption, type ContainerComponentProps, Dashboard, type DashboardDateFilter, type DashboardFilter, DashboardFilterType, DashboardLegacy, type DashboardLegacyProps, type DashboardMultiFilter, type DashboardProps, type DashboardSectionComponentProps, type DashboardSingleFilter, type DashboardTenantFilter, DateOperator, type DateRange, type DateRangePickerComponentProps, type DateRangePickerOption, type DeleteButtonComponentProps, type DraggableColumnComponentProps, type EventBreadcrumb, type EventContext, type EventError, type EventMetadata, type EventTracking, type EventUser, type Filter, type FilterPopoverComponentProps, FilterType, type HeaderComponentProps, type HeaderProps, type InternalDashboardDateFilter, type InternalDashboardTenantFilter, type InternalFilter, type LabelComponentProps, type LimitPopoverComponentProps, type ModalComponentProps, NullOperator, NumberOperator, type Option, type Pivot, type PivotAggregation, type PopoverComponentProps, type QueryBuilderDisplayGroup, type QueryBuilderDisplayRule, type QuillCustomInterval, type QuillCustomRelativeInterval, type QuillCustomRepeatingInterval, type QuillCustomStaticInterval, type QuillPreviousMonthInterval, type QuillPreviousQuarterInterval, QuillProvider, type QuillProviderProps, type QuillReport, type QuillReportProps, type QuillTheme, type QuillWeekInterval, ReportBuilder$1 as ReportBuilder, type ReportBuilderColumn, type ReportBuilderLimit, type ReportBuilderProps, type ReportBuilderSort, type ReportBuilderState, ReportDetail, type ReportDetailProps, ReportTable, SINGLE_TENANT, SQLEditor, type SQLEditorProps, SaveReport, SchemaListComponent, type SelectColumnComponentProps, type SelectComponentProps, type SetReportBuilderInput, type SetReportChartAxesInput, type SetReportTableColumnSidebarPatch, type SidebarComponentProps, type SidebarHeadingComponentProps, type SortPopoverComponentProps, StaticChart, type StaticChartProps, StringOperator, Table, type TableColumnListItem, type TableColumnsController, type TableColumnsControllerItem, type TableComponentProps, type TableProps, type TabsComponentProps, type TextComponentProps, type TextInputComponentProps, ThemeContext, type UseFormAxisConfig, areQueryBuilderFilterDraftsDirty, countFilterRules, downloadCSV, quillFormat as format, isQueryBuilderDisplayGroup, isQueryBuilderDisplayRule, normalizeRelativeDateRules, prepareQueryBuilderFiltersForSet, stripQueryBuilderTransientFields, tableColumnFormatFromUiSelection, useAllReports, useAskQuill, useDashboard, useDashboardInternal, useDashboardReport, useDashboardReports, useDashboards, useExport, useMemoizedRows, useQuill, useReport, useReportBuilder, useReports, useTenants, useVirtualTables };
|
|
4198
|
+
export { ALL_TENANTS, AddColumns, AddFilters, AddLimit, AddPivot, AddSort, type AxisFormat$1 as AxisFormat, type ButtonComponentProps, Calculation, Chart, ChartDisplay, ChartEditor, type ChartEditorProps, type ChartProps, Chat, type ChatModelId, type ChatProps, type CheckboxComponentProps, type ColorMapType, type Column$1 as Column, type ColumnSelectionOption, type ContainerComponentProps, Dashboard, type DashboardDateFilter, type DashboardFilter, DashboardFilterType, DashboardLegacy, type DashboardLegacyProps, type DashboardMultiFilter, type DashboardProps, type DashboardSectionComponentProps, type DashboardSingleFilter, type DashboardTenantFilter, DateOperator, type DateRange, type DateRangePickerComponentProps, type DateRangePickerOption, type DeleteButtonComponentProps, type DraggableColumnComponentProps, type EventBreadcrumb, type EventContext, type EventError, type EventMetadata, type EventTracking, type EventUser, type Filter, type FilterPopoverComponentProps, FilterType, type HeaderComponentProps, type HeaderProps, type InternalDashboardDateFilter, type InternalDashboardTenantFilter, type InternalFilter, type LabelComponentProps, type LimitPopoverComponentProps, type ModalComponentProps, NullOperator, NumberOperator, type Option, type Pivot, type PivotAggregation, type PopoverComponentProps, type QueryBuilderDisplayGroup, type QueryBuilderDisplayRule, type QuillCustomInterval, type QuillCustomRelativeInterval, type QuillCustomRepeatingInterval, type QuillCustomStaticInterval, type QuillPreviousMonthInterval, type QuillPreviousQuarterInterval, QuillProvider, type QuillProviderProps, type QuillReport, type QuillReportProps, type QuillTheme, type QuillWeekInterval, ReportBuilder$1 as ReportBuilder, type ReportBuilderColumn, type ReportBuilderLimit, type ReportBuilderProps, type ReportBuilderSort, type ReportBuilderState, ReportDetail, type ReportDetailProps, ReportTable, SINGLE_TENANT, SQLEditor, type SQLEditorProps, SaveReport, SchemaListComponent, type SelectColumnComponentProps, type SelectComponentProps, type SetReportBuilderInput, type SetReportChartAxesInput, type SetReportTableColumnSidebarPatch, type SidebarComponentProps, type SidebarHeadingComponentProps, type SortPopoverComponentProps, StaticChart, type StaticChartProps, StringOperator, Table, type TableColumnListItem, type TableColumnsController, type TableColumnsControllerItem, type TableComponentProps, type TableProps, type TabsComponentProps, type TextComponentProps, type TextInputComponentProps, ThemeContext, type UseDashboardReload, type UseFormAxisConfig, areQueryBuilderFilterDraftsDirty, countFilterRules, downloadCSV, quillFormat as format, isQueryBuilderDisplayGroup, isQueryBuilderDisplayRule, normalizeRelativeDateRules, prepareQueryBuilderFiltersForSet, stripQueryBuilderTransientFields, tableColumnFormatFromUiSelection, useAllReports, useAskQuill, useDashboard, useDashboardInternal, useDashboardReport, useDashboardReports, useDashboards, useExport, useMemoizedRows, useQuill, useReport, useReportBuilder, useReports, useTenants, useVirtualTables };
|
package/dist/index.js
CHANGED
|
@@ -27765,7 +27765,8 @@ var useDashboard = (dashboardName, config) => {
|
|
|
27765
27765
|
filters,
|
|
27766
27766
|
applyFilters,
|
|
27767
27767
|
lastUpdated,
|
|
27768
|
-
forceCacheRefresh
|
|
27768
|
+
forceCacheRefresh,
|
|
27769
|
+
reload
|
|
27769
27770
|
};
|
|
27770
27771
|
};
|
|
27771
27772
|
var useDashboardReportInternal = (reportId, config) => {
|
|
@@ -39850,8 +39851,8 @@ function DashboardSection({
|
|
|
39850
39851
|
listStyleType: "none",
|
|
39851
39852
|
display: "grid",
|
|
39852
39853
|
gap: 40,
|
|
39853
|
-
|
|
39854
|
-
|
|
39854
|
+
alignItems: "start",
|
|
39855
|
+
gridTemplateColumns: "repeat(auto-fill,minmax(400px, 1fr))"
|
|
39855
39856
|
},
|
|
39856
39857
|
children
|
|
39857
39858
|
}
|
|
@@ -42917,8 +42918,8 @@ var styles = {
|
|
|
42917
42918
|
listStyleType: "none",
|
|
42918
42919
|
display: "grid",
|
|
42919
42920
|
gap: 40,
|
|
42920
|
-
|
|
42921
|
-
|
|
42921
|
+
alignItems: "start",
|
|
42922
|
+
gridTemplateColumns: "repeat(auto-fill,minmax(400px, 1fr))"
|
|
42922
42923
|
},
|
|
42923
42924
|
emptyCard: {
|
|
42924
42925
|
backgroundColor: "#ffffff",
|
|
@@ -42931,7 +42932,6 @@ var styles = {
|
|
|
42931
42932
|
},
|
|
42932
42933
|
chartCard: {
|
|
42933
42934
|
boxSizing: "content-box",
|
|
42934
|
-
height: "100%",
|
|
42935
42935
|
minHeight: 400,
|
|
42936
42936
|
borderRadius: 8,
|
|
42937
42937
|
cursor: "pointer"
|
|
@@ -43389,7 +43389,7 @@ function DashboardContent({
|
|
|
43389
43389
|
});
|
|
43390
43390
|
}, [sections, sectionOrder]);
|
|
43391
43391
|
return /* @__PURE__ */ jsxs43("div", { style: styles.contentWrap, children: [
|
|
43392
|
-
metricReports.length === 0 ? null : /* @__PURE__ */ jsx60("div", { style: styles.splitGrid, children:
|
|
43392
|
+
metricReports.length === 0 ? null : /* @__PURE__ */ jsx60("div", { style: styles.splitGrid, children: metricReports.map((report) => /* @__PURE__ */ jsxs43(
|
|
43393
43393
|
"div",
|
|
43394
43394
|
{
|
|
43395
43395
|
onClick: () => onClickReport(report),
|
|
@@ -43406,8 +43406,8 @@ function DashboardContent({
|
|
|
43406
43406
|
]
|
|
43407
43407
|
},
|
|
43408
43408
|
report.id
|
|
43409
|
-
)) })
|
|
43410
|
-
chartReports.length === 0 ? null : /* @__PURE__ */ jsx60("div", { style: styles.splitGrid, children:
|
|
43409
|
+
)) }),
|
|
43410
|
+
chartReports.length === 0 ? null : /* @__PURE__ */ jsx60("div", { style: styles.splitGrid, children: chartReports.map((report) => /* @__PURE__ */ jsxs43(
|
|
43411
43411
|
"div",
|
|
43412
43412
|
{
|
|
43413
43413
|
onClick: () => onClickReport(report),
|
|
@@ -43424,7 +43424,7 @@ function DashboardContent({
|
|
|
43424
43424
|
]
|
|
43425
43425
|
},
|
|
43426
43426
|
report.id
|
|
43427
|
-
)) })
|
|
43427
|
+
)) }),
|
|
43428
43428
|
tableReports.length === 0 && orderedNonRootSectionEntries.length === 0 ? null : /* @__PURE__ */ jsxs43("div", { style: styles.splitGrid, children: [
|
|
43429
43429
|
tableReports.length === 0 ? null : /* @__PURE__ */ jsx60("section", { style: styles.tableColumn, children: tableReports.map((report) => /* @__PURE__ */ jsxs43(
|
|
43430
43430
|
"div",
|
|
@@ -59002,7 +59002,12 @@ function createUseFormPivotTableDataRefreshQueryKey(input) {
|
|
|
59002
59002
|
];
|
|
59003
59003
|
}
|
|
59004
59004
|
function createUseFormReportNameQueryKey(input) {
|
|
59005
|
-
return [
|
|
59005
|
+
return [
|
|
59006
|
+
"useReport",
|
|
59007
|
+
"report-name",
|
|
59008
|
+
input.reportId,
|
|
59009
|
+
input.clientHash
|
|
59010
|
+
];
|
|
59006
59011
|
}
|
|
59007
59012
|
function createUseFormQueryFn(loader) {
|
|
59008
59013
|
return async () => loader();
|
|
@@ -66428,12 +66433,6 @@ function useReport(reportIdArg, options = {}) {
|
|
|
66428
66433
|
tenants,
|
|
66429
66434
|
draftSessionId: draftSessionId || void 0
|
|
66430
66435
|
});
|
|
66431
|
-
const savedId = String(
|
|
66432
|
-
resp?.id ?? resp?._id ?? effectiveReportId ?? ""
|
|
66433
|
-
).trim();
|
|
66434
|
-
if (resp && resp.name !== "error" && !resp.error && savedId) {
|
|
66435
|
-
setDraftSessionId(generateDraftSessionId());
|
|
66436
|
-
}
|
|
66437
66436
|
return resp;
|
|
66438
66437
|
}, [
|
|
66439
66438
|
chartType,
|