@quillsql/react 2.16.48 → 2.16.49
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 +539 -557
- package/dist/index.d.cts +121 -161
- package/dist/index.d.ts +121 -161
- package/dist/index.js +513 -531
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2736,50 +2736,6 @@ type QueryBuilderOperatorOption = {
|
|
|
2736
2736
|
arity?: 'unary' | 'binary' | number;
|
|
2737
2737
|
};
|
|
2738
2738
|
|
|
2739
|
-
/**
|
|
2740
|
-
* Default `value` for a new react-querybuilder rule given a Quill operator.
|
|
2741
|
-
* List operators (`in` / `notIn`) need `[]` so the multiselect editor works
|
|
2742
|
-
* with `listsAsArrays`; everything else starts as an empty string.
|
|
2743
|
-
*/
|
|
2744
|
-
declare const defaultFilterRuleValueForOperator: (operator: unknown) => unknown;
|
|
2745
|
-
/**
|
|
2746
|
-
* One-rule react-querybuilder tree seeded from the first field in the catalog,
|
|
2747
|
-
* using that field's first operator and a matching default value. Used for the
|
|
2748
|
-
* "Add filter" empty state, where react-querybuilder's own "+ Rule" button is
|
|
2749
|
-
* not rendered yet.
|
|
2750
|
-
*/
|
|
2751
|
-
declare const buildSeededFilterQuery: (queryBuilderProps: Pick<UseFormQueryBuilderProps, "fields" | "getOperators"> | null | undefined) => QueryBuilderRuleGroup;
|
|
2752
|
-
type FilterDraftQueryBuilderProps = UseFormQueryBuilderProps & {
|
|
2753
|
-
/** Committed-or-draft tree react-querybuilder hydrates from on mount (uncontrolled mode). */
|
|
2754
|
-
defaultQuery: QueryBuilderRuleGroup;
|
|
2755
|
-
onQueryChange: (next: unknown) => void;
|
|
2756
|
-
addRuleToNewGroups: true;
|
|
2757
|
-
getDefaultValue: (rule: {
|
|
2758
|
-
operator?: unknown;
|
|
2759
|
-
}) => unknown;
|
|
2760
|
-
};
|
|
2761
|
-
type UseReportFilterDraft = {
|
|
2762
|
-
/**
|
|
2763
|
-
* Pass as `key` on `QueryBuilder` (not inside the spread — React warns on
|
|
2764
|
-
* spread `key`). Changes whenever react-querybuilder must rehydrate from
|
|
2765
|
-
* `defaultQuery`: report switch, committed filters change, field catalog
|
|
2766
|
-
* change, or `resetFilterDraft`.
|
|
2767
|
-
*/
|
|
2768
|
-
filterDraftKey: string;
|
|
2769
|
-
/** Spread onto `react-querybuilder`'s `QueryBuilder`: `<QueryBuilder key={filterDraftKey} {...filterDraftQueryBuilderProps} />`. */
|
|
2770
|
-
filterDraftQueryBuilderProps: FilterDraftQueryBuilderProps;
|
|
2771
|
-
/** Draft differs from committed filters (commit would change the report). */
|
|
2772
|
-
isFilterDraftDirty: boolean;
|
|
2773
|
-
/** Draft tree has no rules at all; show an "Add filter" affordance instead of the builder. */
|
|
2774
|
-
isFilterDraftEmpty: boolean;
|
|
2775
|
-
/** Commit the draft via `setFilters` (report/chart refresh follows). */
|
|
2776
|
-
commitFilterDraft: () => void;
|
|
2777
|
-
/** Drop the draft and rehydrate the builder from committed filters. */
|
|
2778
|
-
resetFilterDraft: () => void;
|
|
2779
|
-
/** Seed a first rule (field + operator + default value) and leave the empty state. */
|
|
2780
|
-
seedFilterDraft: () => void;
|
|
2781
|
-
};
|
|
2782
|
-
|
|
2783
2739
|
/**
|
|
2784
2740
|
* Pagination types and pure helpers for `useReport`, mirroring the
|
|
2785
2741
|
* TanStack Table v8 pagination API (`@tanstack/table-core` RowPagination)
|
|
@@ -2801,6 +2757,7 @@ type SelectOption = {
|
|
|
2801
2757
|
label: string;
|
|
2802
2758
|
value: string;
|
|
2803
2759
|
};
|
|
2760
|
+
type PivotDateBucket = NonNullable<Pivot['dateBucket']>;
|
|
2804
2761
|
type UseFormTableRow = Record<string, unknown>;
|
|
2805
2762
|
type UseFormTableColumn = {
|
|
2806
2763
|
label: string;
|
|
@@ -2858,26 +2815,13 @@ type ColumnSelectionOption = {
|
|
|
2858
2815
|
type UseFormDisplayColumn = ReportBuilderColumn & {
|
|
2859
2816
|
format?: string;
|
|
2860
2817
|
};
|
|
2861
|
-
type
|
|
2818
|
+
type ReportColumnInput = Partial<UseFormDisplayColumn> & {
|
|
2862
2819
|
field: string;
|
|
2863
2820
|
label?: string;
|
|
2864
2821
|
};
|
|
2865
|
-
type
|
|
2866
|
-
|
|
2867
|
-
label: string;
|
|
2868
|
-
defaultLabel: string;
|
|
2869
|
-
customLabel: string;
|
|
2870
|
-
/** Persisted axis format value (e.g. `whole_number`). */
|
|
2871
|
-
format: string;
|
|
2872
|
-
/** Format preset label (same strings as chart axis / `tableFormatOptions`). */
|
|
2873
|
-
formatLabel: string;
|
|
2874
|
-
field: string;
|
|
2875
|
-
tableName: string;
|
|
2876
|
-
};
|
|
2877
|
-
type TableColumnListItem = {
|
|
2878
|
-
id: string;
|
|
2822
|
+
type ReportColumnValue = {
|
|
2823
|
+
value: string;
|
|
2879
2824
|
label: string;
|
|
2880
|
-
visible: true;
|
|
2881
2825
|
/** Axis format preset label (matches `tableFormatOptions` / chart axis). */
|
|
2882
2826
|
format: string;
|
|
2883
2827
|
/**
|
|
@@ -2885,16 +2829,10 @@ type TableColumnListItem = {
|
|
|
2885
2829
|
*/
|
|
2886
2830
|
formatOptions?: string[];
|
|
2887
2831
|
};
|
|
2888
|
-
/**
|
|
2889
|
-
type
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
optionById: ReadonlyMap<string, ColumnSelectionOption>;
|
|
2893
|
-
byId: ReadonlyMap<string, TableColumnsControllerItem>;
|
|
2894
|
-
/** Ready-made rows for table/column-picker UIs (`id`, `label`, `format` display string). */
|
|
2895
|
-
columnList: TableColumnListItem[];
|
|
2896
|
-
/** Build the `columns` array for `setReport({ columns })` from ordered ids. */
|
|
2897
|
-
getSetReportColumns: (ids: string[]) => SetReportBuilderColumnInput[];
|
|
2832
|
+
/** Optional rich column operations. The primary form value is `columns`. */
|
|
2833
|
+
type ColumnActions = {
|
|
2834
|
+
/** Replace the selected columns with fully configured column values. */
|
|
2835
|
+
replace: (columns: ReportColumnInput[]) => void;
|
|
2898
2836
|
reorder: (oldIndex: number, newIndex: number) => void;
|
|
2899
2837
|
/** Reorder to match a full id list (e.g. after drag-and-drop column list UIs). */
|
|
2900
2838
|
reorderFromOrder: (nextIds: string[]) => void;
|
|
@@ -2905,21 +2843,6 @@ type TableColumnsController = {
|
|
|
2905
2843
|
label: string;
|
|
2906
2844
|
format: string;
|
|
2907
2845
|
}>) => void;
|
|
2908
|
-
/**
|
|
2909
|
-
* Build `setReport({ columns: { patch } })` for a table column sidebar edit;
|
|
2910
|
-
* `setReport` expands it to a full `columns` list and/or `chartAxes`. Returns
|
|
2911
|
-
* null only when `id` is empty.
|
|
2912
|
-
*/
|
|
2913
|
-
getColumnSidebarSetReportInput: (id: string, updates: Partial<{
|
|
2914
|
-
fieldId: string;
|
|
2915
|
-
label: string;
|
|
2916
|
-
format: string;
|
|
2917
|
-
}>) => SetReportBuilderInput | null;
|
|
2918
|
-
/**
|
|
2919
|
-
* When true (pivot + chartType table), the list mirrors `chart.columns`; reorder,
|
|
2920
|
-
* add, remove, and field swap are disabled — only label/format apply via chart axes.
|
|
2921
|
-
*/
|
|
2922
|
-
structureEditsLocked: boolean;
|
|
2923
2846
|
};
|
|
2924
2847
|
type ChartAxisFieldOption = {
|
|
2925
2848
|
value: string;
|
|
@@ -2957,19 +2880,6 @@ type ChartAxesController = {
|
|
|
2957
2880
|
}>) => void;
|
|
2958
2881
|
};
|
|
2959
2882
|
};
|
|
2960
|
-
type ColumnSelectorChangeValue = string[];
|
|
2961
|
-
/**
|
|
2962
|
-
* Table column sidebar edit under {@link SetReportBuilderInput.columns}: expands
|
|
2963
|
-
* inside `setReport` to a full `columns` array and/or `chartAxes` (pivot table chart).
|
|
2964
|
-
*/
|
|
2965
|
-
type SetReportTableColumnSidebarPatch = {
|
|
2966
|
-
patch: {
|
|
2967
|
-
id: string;
|
|
2968
|
-
label?: string;
|
|
2969
|
-
format?: string;
|
|
2970
|
-
fieldId?: string;
|
|
2971
|
-
};
|
|
2972
|
-
};
|
|
2973
2883
|
type AggregationStateItem = Partial<{
|
|
2974
2884
|
valueField: string;
|
|
2975
2885
|
valueFieldType: string;
|
|
@@ -2979,12 +2889,6 @@ type AggregationStateItem = Partial<{
|
|
|
2979
2889
|
/** Resolved datasource table for `valueField` (mirrors `aggregationTablesByIndex`). */
|
|
2980
2890
|
valueFieldTable?: string;
|
|
2981
2891
|
}>;
|
|
2982
|
-
type AggregationOption = {
|
|
2983
|
-
key: string;
|
|
2984
|
-
label: string;
|
|
2985
|
-
value: string;
|
|
2986
|
-
options: SelectOption[];
|
|
2987
|
-
};
|
|
2988
2892
|
type AxisFormat = QuillReportInternal['yAxisFields'][number]['format'];
|
|
2989
2893
|
type QueryBuilderFieldValueOption = {
|
|
2990
2894
|
name: string;
|
|
@@ -3009,12 +2913,12 @@ type UseFormQueryBuilderProps = {
|
|
|
3009
2913
|
}) => 'text' | 'number' | 'date' | 'checkbox';
|
|
3010
2914
|
getValueEditorType: (field: string, operator: string, misc?: {
|
|
3011
2915
|
fieldData?: Partial<UseFormQueryBuilderField>;
|
|
3012
|
-
}) => 'multiselect' | undefined;
|
|
2916
|
+
}) => 'multiselect' | 'select' | undefined;
|
|
3013
2917
|
getValues: (field: string, operator: string, misc?: {
|
|
3014
2918
|
fieldData?: Partial<UseFormQueryBuilderField>;
|
|
3015
2919
|
}) => QueryBuilderFieldValueOption[];
|
|
3016
2920
|
};
|
|
3017
|
-
/** Maps table column format dropdown values to persisted report column `format` (
|
|
2921
|
+
/** Maps table column format dropdown values to persisted report column `format` (used by `columnActions.update`). */
|
|
3018
2922
|
declare function tableColumnFormatFromUiSelection(raw: string): string;
|
|
3019
2923
|
/** Shape expected by chart config sidebars that mirror `AxisConfig` (e.g. Quill Chat ConfigForm). */
|
|
3020
2924
|
type UseFormAxisConfig = {
|
|
@@ -3059,18 +2963,29 @@ type SetReportChartAxesInput = {
|
|
|
3059
2963
|
};
|
|
3060
2964
|
};
|
|
3061
2965
|
interface SetReportBuilderInput {
|
|
3062
|
-
/**
|
|
3063
|
-
|
|
3064
|
-
* edits (expanded inside `setReport` into a full list and/or `chartAxes`).
|
|
3065
|
-
*/
|
|
3066
|
-
columns?: ColumnSelectorChangeValue | SetReportBuilderColumnInput[] | SetReportTableColumnSidebarPatch;
|
|
2966
|
+
/** Complete selected column list in display order. */
|
|
2967
|
+
columns?: ReportColumnValue[];
|
|
3067
2968
|
filters?: Filter[];
|
|
3068
2969
|
groupRowsBy?: string;
|
|
3069
2970
|
groupColumnsBy?: string;
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
2971
|
+
/**
|
|
2972
|
+
* Pivot date grouping granularity. Pass an empty string to restore automatic
|
|
2973
|
+
* bucketing based on the active date range.
|
|
2974
|
+
*/
|
|
2975
|
+
dateBucket?: PivotDateBucket | '';
|
|
2976
|
+
/**
|
|
2977
|
+
* Encoded values as returned from `useReport().aggregations`
|
|
2978
|
+
* (`'sum:transactions::amount'`, `'count:transactions'`, `''` = placeholder
|
|
2979
|
+
* slot; bare `'sum:amount'` accepted, resolving the table from the schema),
|
|
2980
|
+
* structured items, or a single encoded value.
|
|
2981
|
+
*
|
|
2982
|
+
* Prefer the full `string[]` form so UIs can batch with other `setReport`
|
|
2983
|
+
* fields (e.g. drilldowns):
|
|
2984
|
+
* - change: `aggregations.map((a, i) => (i === index ? next : a))`
|
|
2985
|
+
* - add: `[...aggregations, '']`
|
|
2986
|
+
* - remove: `aggregations.filter((_, i) => i !== index)`
|
|
2987
|
+
*/
|
|
2988
|
+
aggregations?: string[] | AggregationStateItem[] | string;
|
|
3074
2989
|
sort?: ReportBuilderSort[] | string;
|
|
3075
2990
|
limit?: ReportBuilderLimit | null;
|
|
3076
2991
|
chartType?: string;
|
|
@@ -3144,29 +3059,6 @@ type UseReportSaveChangesFn = () => Promise<unknown>;
|
|
|
3144
3059
|
* Use `destinationDashboardName` so the server can resolve a dashboard for create-report.
|
|
3145
3060
|
*/
|
|
3146
3061
|
declare function useReport(reportIdArg?: string, options?: UseReportOptions): {
|
|
3147
|
-
/** True while `report-builder-unique-values` runs for filter value options (not chart/table load). */
|
|
3148
|
-
filterUniqueValuesLoading: boolean;
|
|
3149
|
-
limit: ReportBuilderLimit | null;
|
|
3150
|
-
chartTypes: {
|
|
3151
|
-
label: string;
|
|
3152
|
-
value: string;
|
|
3153
|
-
}[];
|
|
3154
|
-
columnsOptions: ColumnSelectionOption[];
|
|
3155
|
-
tableColumnOptions: ColumnSelectionOption[];
|
|
3156
|
-
tableColumns: TableColumnsController;
|
|
3157
|
-
setReport: (nextState: SetReportBuilderInput) => void;
|
|
3158
|
-
saveChanges: UseReportSaveChangesFn;
|
|
3159
|
-
setFilters: (nextFilters: QueryBuilderRuleGroup) => void;
|
|
3160
|
-
setReportBuilder: (nextState: SetReportBuilderInput) => void;
|
|
3161
|
-
/** Current report-builder slice (tables, columns, filters, pivot, sort); pass to e.g. `Chat` as `reportBuilderState`. */
|
|
3162
|
-
reportBuilderState: ReportBuilderState | undefined;
|
|
3163
|
-
filterDraftKey: string;
|
|
3164
|
-
filterDraftQueryBuilderProps: FilterDraftQueryBuilderProps;
|
|
3165
|
-
isFilterDraftDirty: boolean;
|
|
3166
|
-
isFilterDraftEmpty: boolean;
|
|
3167
|
-
commitFilterDraft: () => void;
|
|
3168
|
-
resetFilterDraft: () => void;
|
|
3169
|
-
seedFilterDraft: () => void;
|
|
3170
3062
|
chart: {
|
|
3171
3063
|
xAxisField: string;
|
|
3172
3064
|
xAxisFormat: AxisFormat$1;
|
|
@@ -3256,28 +3148,18 @@ declare function useReport(reportIdArg?: string, options?: UseReportOptions): {
|
|
|
3256
3148
|
* returned from `create-report` after the first datasource selection.
|
|
3257
3149
|
*/
|
|
3258
3150
|
reportId: string | undefined;
|
|
3259
|
-
datasources:
|
|
3260
|
-
|
|
3261
|
-
label: string;
|
|
3262
|
-
}[];
|
|
3263
|
-
datasourceOptions: {
|
|
3264
|
-
id: string;
|
|
3265
|
-
label: string;
|
|
3266
|
-
}[];
|
|
3151
|
+
datasources: string[];
|
|
3152
|
+
datasourceOptions: SelectOption[];
|
|
3267
3153
|
groupRowsBy: string | undefined;
|
|
3268
3154
|
groupRowsByOptions: SelectOption[];
|
|
3269
3155
|
groupColumnsBy: string | undefined;
|
|
3270
3156
|
groupColumnsByOptions: SelectOption[];
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
/** Resolved datasource table for `valueField` (mirrors `aggregationTablesByIndex`). */
|
|
3278
|
-
valueFieldTable?: string;
|
|
3279
|
-
}>[];
|
|
3280
|
-
aggregationOptions: AggregationOption[];
|
|
3157
|
+
dateBucket: PivotDateBucket | undefined;
|
|
3158
|
+
dateBucketOptions: SelectOption[];
|
|
3159
|
+
/** Encoded selection per aggregation slot (`'sum:transactions::amount'`, `'count:transactions'`, `''` = placeholder). Update via `setReport({ aggregations: nextStringArray })`. */
|
|
3160
|
+
aggregations: string[];
|
|
3161
|
+
/** Flat aggregation pick list shared by all slots; always contains every non-empty `aggregations` entry. */
|
|
3162
|
+
aggregationOptions: SelectOption[];
|
|
3281
3163
|
aggregationDescriptionOptions: {
|
|
3282
3164
|
label: string;
|
|
3283
3165
|
value: string;
|
|
@@ -3292,10 +3174,12 @@ declare function useReport(reportIdArg?: string, options?: UseReportOptions): {
|
|
|
3292
3174
|
label: string;
|
|
3293
3175
|
value: string;
|
|
3294
3176
|
}[];
|
|
3295
|
-
/**
|
|
3296
|
-
|
|
3297
|
-
/**
|
|
3298
|
-
|
|
3177
|
+
/** Selected tabular columns in display order. */
|
|
3178
|
+
columns: ReportColumnValue[];
|
|
3179
|
+
/** Pivot table columns only allow label and format changes. */
|
|
3180
|
+
columnStructureEditsLocked: boolean;
|
|
3181
|
+
/** Optional rich operations; simple selection updates use `setReport({ columns })`. */
|
|
3182
|
+
columnActions: ColumnActions;
|
|
3299
3183
|
/** Schema columns for current datasources — pool for the table column picker. */
|
|
3300
3184
|
columnOptions: ColumnSelectionOption[];
|
|
3301
3185
|
xAxis: {
|
|
@@ -3362,6 +3246,21 @@ declare function useReport(reportIdArg?: string, options?: UseReportOptions): {
|
|
|
3362
3246
|
hasTableDrivenColumnOrder: boolean;
|
|
3363
3247
|
filters: QueryBuilderRuleGroup;
|
|
3364
3248
|
filterQueryBuilderProps: UseFormQueryBuilderProps;
|
|
3249
|
+
/** True while `report-builder-unique-values` runs for filter value options (not chart/table load). */
|
|
3250
|
+
filterUniqueValuesLoading: boolean;
|
|
3251
|
+
limit: ReportBuilderLimit | null;
|
|
3252
|
+
chartTypes: {
|
|
3253
|
+
label: string;
|
|
3254
|
+
value: string;
|
|
3255
|
+
}[];
|
|
3256
|
+
columnsOptions: ColumnSelectionOption[];
|
|
3257
|
+
tableColumnOptions: ColumnSelectionOption[];
|
|
3258
|
+
setReport: (nextState: SetReportBuilderInput) => void;
|
|
3259
|
+
saveChanges: UseReportSaveChangesFn;
|
|
3260
|
+
setFilters: (nextFilters: QueryBuilderRuleGroup) => void;
|
|
3261
|
+
setReportBuilder: (nextState: SetReportBuilderInput) => void;
|
|
3262
|
+
/** Current report-builder slice (tables, columns, filters, pivot, sort); pass to e.g. `Chat` as `reportBuilderState`. */
|
|
3263
|
+
reportBuilderState: ReportBuilderState | undefined;
|
|
3365
3264
|
};
|
|
3366
3265
|
|
|
3367
3266
|
/** Normalize react-querybuilder filter trees before stack conversion / persistence. */
|
|
@@ -3390,6 +3289,67 @@ declare function areQueryBuilderFilterDraftsDirty(draft: unknown, committed: unk
|
|
|
3390
3289
|
/** Number of leaf filter rules (excludes empty groups). */
|
|
3391
3290
|
declare function countFilterRules(value: unknown): number;
|
|
3392
3291
|
|
|
3292
|
+
/**
|
|
3293
|
+
* Default `value` for a new react-querybuilder rule given a Quill operator.
|
|
3294
|
+
* List operators (`in` / `notIn`) need `[]` so the multiselect editor works
|
|
3295
|
+
* with `listsAsArrays`; everything else starts as an empty string.
|
|
3296
|
+
*/
|
|
3297
|
+
declare const defaultFilterRuleValueForOperator: (operator: unknown) => unknown;
|
|
3298
|
+
type FilterDraftQueryBuilderProps = UseFormQueryBuilderProps & {
|
|
3299
|
+
/** Committed-or-draft tree react-querybuilder hydrates from on mount (uncontrolled mode). */
|
|
3300
|
+
defaultQuery: QueryBuilderRuleGroup;
|
|
3301
|
+
onQueryChange: (next: unknown) => void;
|
|
3302
|
+
addRuleToNewGroups: true;
|
|
3303
|
+
getDefaultValue: (rule: {
|
|
3304
|
+
operator?: unknown;
|
|
3305
|
+
}) => unknown;
|
|
3306
|
+
};
|
|
3307
|
+
type UseReportFilterDraft = {
|
|
3308
|
+
/**
|
|
3309
|
+
* Pass as `key` on `QueryBuilder` (not inside the spread — React warns on
|
|
3310
|
+
* spread `key`). Changes whenever react-querybuilder must rehydrate from
|
|
3311
|
+
* `defaultQuery`: report switch, committed filters change, field catalog
|
|
3312
|
+
* change, or `resetFilterDraft`.
|
|
3313
|
+
*/
|
|
3314
|
+
filterDraftKey: string;
|
|
3315
|
+
/** Spread onto `react-querybuilder`'s `QueryBuilder`: `<QueryBuilder key={filterDraftKey} {...filterDraftQueryBuilderProps} />`. */
|
|
3316
|
+
filterDraftQueryBuilderProps: FilterDraftQueryBuilderProps;
|
|
3317
|
+
/** Draft differs from committed filters (applying would change the report). */
|
|
3318
|
+
hasUnappliedFilterChanges: boolean;
|
|
3319
|
+
/** Apply the draft via `setFilters` (report/chart refresh follows). */
|
|
3320
|
+
applyFilterDraft: () => void;
|
|
3321
|
+
/** Drop the draft and rehydrate the builder from committed filters. */
|
|
3322
|
+
resetFilterDraft: () => void;
|
|
3323
|
+
};
|
|
3324
|
+
|
|
3325
|
+
type UseReportQueryBuilder = {
|
|
3326
|
+
/** Pass as `key` to `react-querybuilder`'s `QueryBuilder`. */
|
|
3327
|
+
key: string;
|
|
3328
|
+
/** Spread onto `react-querybuilder`'s `QueryBuilder`. */
|
|
3329
|
+
props: FilterDraftQueryBuilderProps;
|
|
3330
|
+
/** The editor differs from the filters currently applied to the report. */
|
|
3331
|
+
hasUnappliedChanges: boolean;
|
|
3332
|
+
/** Apply the draft through the supplied full-tree filter setter. */
|
|
3333
|
+
apply: () => void;
|
|
3334
|
+
/** Discard the draft and remount from the committed filters. */
|
|
3335
|
+
discard: () => void;
|
|
3336
|
+
/** @deprecated Use `discard`. */
|
|
3337
|
+
reset: () => void;
|
|
3338
|
+
};
|
|
3339
|
+
/**
|
|
3340
|
+
* React Query Builder adapter for `useReport`.
|
|
3341
|
+
*
|
|
3342
|
+
* `useReport` owns the committed filter tree, field/operator metadata, unique
|
|
3343
|
+
* values, and the `setFilters` conversion/refresh path. This hook only owns the
|
|
3344
|
+
* uncontrolled Query Builder draft lifecycle.
|
|
3345
|
+
*/
|
|
3346
|
+
declare function useReportQueryBuilder(args: {
|
|
3347
|
+
reportId?: string;
|
|
3348
|
+
filters: QueryBuilderRuleGroup | null | undefined;
|
|
3349
|
+
queryBuilderProps: UseFormQueryBuilderProps;
|
|
3350
|
+
onApply: (next: QueryBuilderRuleGroup) => void;
|
|
3351
|
+
}): UseReportQueryBuilder;
|
|
3352
|
+
|
|
3393
3353
|
type ReportDetailTable = {
|
|
3394
3354
|
columns?: unknown[];
|
|
3395
3355
|
rows?: unknown[];
|
|
@@ -4444,4 +4404,4 @@ interface ReportTableProps {
|
|
|
4444
4404
|
}
|
|
4445
4405
|
declare const ReportTable: ({ reportBuilder, TableComponent, }: ReportTableProps) => react_jsx_runtime.JSX.Element;
|
|
4446
4406
|
|
|
4447
|
-
export { ALL_TENANTS, AddColumns, AddFilters, AddLimit, AddPivot, AddSort, type AxisFormat$1 as AxisFormat, type ButtonComponentProps, Calculation, type ChangelogEntry, 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, DEFAULT_PAGE_SIZE, DEFAULT_USE_REPORT_ROWS_PER_REQUEST, 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 FilterDraftQueryBuilderProps, type FilterPopoverComponentProps, FilterType, type HeaderComponentProps, type HeaderProps, type InternalDashboardDateFilter, type InternalDashboardTenantFilter, type InternalFilter, type LabelComponentProps, type LimitPopoverComponentProps, type ModalComponentProps, NullOperator, NumberOperator, type OnChangeFn, type Option, type PaginationState, type Pivot, type PivotAggregation, type PopoverComponentProps, type QueryBuilderDisplayGroup, type QueryBuilderDisplayRule, type QuillCustomInterval, type QuillCustomRelativeInterval, type QuillCustomRepeatingInterval, type QuillCustomStaticInterval, type QuillFetchOptions, type QuillPreviousMonthInterval, type QuillPreviousQuarterInterval, QuillProvider, type QuillProviderProps, type QuillReport, type QuillReportProps, type QuillResults, type QuillTheme, type QuillWeekInterval, ReportBuilder$1 as ReportBuilder, type ReportBuilderColumn, type ReportBuilderLimit, type ReportBuilderProps, type ReportBuilderSort, type ReportBuilderState, ReportDetail, type ReportDetailProps, type ReportDetailTable, ReportTable, SINGLE_TENANT, SQLEditor, type SQLEditorProps, SaveReport, SchemaListComponent, type SelectColumnComponentProps, type SelectComponentProps, type SetReportBuilderInput, type SetReportChartAxesInput, type
|
|
4407
|
+
export { ALL_TENANTS, AddColumns, AddFilters, AddLimit, AddPivot, AddSort, type AxisFormat$1 as AxisFormat, type ButtonComponentProps, Calculation, type ChangelogEntry, Chart, ChartDisplay, ChartEditor, type ChartEditorProps, type ChartProps, Chat, type ChatModelId, type ChatProps, type CheckboxComponentProps, type ColorMapType, type Column$1 as Column, type ColumnActions, type ColumnSelectionOption, type ContainerComponentProps, DEFAULT_PAGE_SIZE, DEFAULT_USE_REPORT_ROWS_PER_REQUEST, 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 FilterDraftQueryBuilderProps, type FilterPopoverComponentProps, FilterType, type HeaderComponentProps, type HeaderProps, type InternalDashboardDateFilter, type InternalDashboardTenantFilter, type InternalFilter, type LabelComponentProps, type LimitPopoverComponentProps, type ModalComponentProps, NullOperator, NumberOperator, type OnChangeFn, type Option, type PaginationState, type Pivot, type PivotAggregation, type PivotDateBucket, type PopoverComponentProps, type QueryBuilderDisplayGroup, type QueryBuilderDisplayRule, type QuillCustomInterval, type QuillCustomRelativeInterval, type QuillCustomRepeatingInterval, type QuillCustomStaticInterval, type QuillFetchOptions, type QuillPreviousMonthInterval, type QuillPreviousQuarterInterval, QuillProvider, type QuillProviderProps, type QuillReport, type QuillReportProps, type QuillResults, type QuillTheme, type QuillWeekInterval, ReportBuilder$1 as ReportBuilder, type ReportBuilderColumn, type ReportBuilderLimit, type ReportBuilderProps, type ReportBuilderSort, type ReportBuilderState, type ReportColumnInput, type ReportColumnValue, ReportDetail, type ReportDetailProps, type ReportDetailTable, ReportTable, SINGLE_TENANT, SQLEditor, type SQLEditorProps, SaveReport, SchemaListComponent, type SelectColumnComponentProps, type SelectComponentProps, type SetReportBuilderInput, type SetReportChartAxesInput, type SidebarComponentProps, type SidebarHeadingComponentProps, type SortPopoverComponentProps, StaticChart, type StaticChartProps, StringOperator, Table, type TableComponentProps, type TableProps, type TabsComponentProps, type TextComponentProps, type TextInputComponentProps, ThemeContext, type Updater, type UseDashboardReload, type UseFormAxisConfig, type UseFormQueryBuilderField, type UseFormQueryBuilderProps, type UseReportFilterDraft, type UseReportQueryBuilder, areQueryBuilderFilterDraftsDirty, countFilterRules, defaultFilterRuleValueForOperator, downloadCSV, quillFormat as format, isQueryBuilderDisplayGroup, isQueryBuilderDisplayRule, normalizeRelativeDateRules, prepareQueryBuilderFiltersForSet, quillFetch, stripQueryBuilderTransientFields, tableColumnFormatFromUiSelection, useAllReports, useAskQuill, useChangelogRefresh, useDashboard, useDashboardInternal, useDashboardReport, useDashboardReports, useDashboards, useExport, useMemoizedRows, useQuill, useReport, useReportBuilder, useReportQueryBuilder, useReports, useTenants, useVirtualTables };
|