@quillsql/react 2.16.2 → 2.16.3

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.d.cts CHANGED
@@ -1799,8 +1799,13 @@ interface SQLEditorProps {
1799
1799
  onCloseChartBuilder?: () => void;
1800
1800
  /**
1801
1801
  * A callback that is fired when a report has been added to a dashboard.
1802
+ * @deprecated Use onSubmitCreateReport and onSubmitEditReport instead
1802
1803
  */
1803
1804
  onAddToDashboardComplete?: (report: QuillReport) => void;
1805
+ /** A callback function that will trigger when a new chart is saved */
1806
+ onSubmitCreateReport?: (report: QuillReport) => void;
1807
+ /** A callback function that will trigger when a chart is edited */
1808
+ onSubmitEditReport?: (report: QuillReport) => void;
1804
1809
  onSaveQueryComplete?: (report: QuillReport) => void;
1805
1810
  /** A callback function triggered when a chart element is clicked */
1806
1811
  onClickChartElement?: (event: any) => void;
@@ -1827,9 +1832,14 @@ interface SQLEditorProps {
1827
1832
  */
1828
1833
  isAdminEnabled?: boolean;
1829
1834
  /**
1830
- * Whether to show table format options.
1835
+ * Options for the chart builder modal.
1831
1836
  */
1832
- showTableFormatOptions?: boolean;
1837
+ chartBuilderOptions?: {
1838
+ /** Whether to show table format options. */
1839
+ showTableFormatOptions?: boolean;
1840
+ /** Whether to show dashboard filter fields. */
1841
+ showDashboardFilterFields?: boolean;
1842
+ };
1833
1843
  /**
1834
1844
  * Whether to show date field options.
1835
1845
  */
@@ -1842,6 +1852,10 @@ interface SQLEditorProps {
1842
1852
  * A dashboard item.
1843
1853
  */
1844
1854
  report?: QuillReport;
1855
+ /**
1856
+ * A report id that the SQL Editor will query from and modify.
1857
+ */
1858
+ reportId?: string;
1845
1859
  /**
1846
1860
  * The default query to use as a placeholder.
1847
1861
  */
@@ -1850,6 +1864,10 @@ interface SQLEditorProps {
1850
1864
  * The default dashboard to add the query to.
1851
1865
  */
1852
1866
  destinationDashboard: string;
1867
+ /**
1868
+ * The section of the dashboard to add items to.
1869
+ */
1870
+ destinationSection?: string;
1853
1871
  /**
1854
1872
  * The title of the ChartBuilder dialog.
1855
1873
  */
@@ -1904,7 +1922,7 @@ interface SQLEditorProps {
1904
1922
  * ### SQLEditor API
1905
1923
  * @see https://docs.quillsql.com/components/sql-editor
1906
1924
  */
1907
- declare function SQLEditor({ ButtonComponent, SecondaryButtonComponent, DeleteButtonComponent, TextInputComponent, SelectComponent, TableComponent, isNewQueryEnabled, LoadingComponent, ModalComponent, PopoverComponent, CardComponent, LabelComponent, HeaderComponent, SubHeaderComponent, TextComponent, ErrorMessageComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ChartBuilderFormContainer, CheckboxComponent, defaultQuery, destinationDashboard, onChangeQuery, onChangeData, onChangeColumns, onChangeFields, onDiscardChanges, onSaveChanges, onCloseChartBuilder, isChartBuilderEnabled, isAdminEnabled, chartBuilderTitle, runQueryOnMount, onAddToDashboardComplete, onSaveQueryComplete, addToDashboardButtonLabel, report, organizationName, isChartBuilderHorizontalView, containerStyle, className, onClickChartElement, onRequestAddVirtualTable, }: SQLEditorProps): react_jsx_runtime.JSX.Element;
1925
+ declare function SQLEditor({ ButtonComponent, SecondaryButtonComponent, DeleteButtonComponent, TextInputComponent, SelectComponent, TableComponent, isNewQueryEnabled, LoadingComponent, ModalComponent, PopoverComponent, CardComponent, LabelComponent, HeaderComponent, SubHeaderComponent, TextComponent, ErrorMessageComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ChartBuilderFormContainer, CheckboxComponent, defaultQuery, destinationDashboard, destinationSection, onChangeQuery, onChangeData, onChangeColumns, onChangeFields, onDiscardChanges, onSaveChanges, onCloseChartBuilder, isChartBuilderEnabled, isAdminEnabled, chartBuilderOptions, chartBuilderTitle, runQueryOnMount, onAddToDashboardComplete, onSubmitCreateReport, onSubmitEditReport, onSaveQueryComplete, addToDashboardButtonLabel, report, reportId, organizationName, isChartBuilderHorizontalView, containerStyle, className, onClickChartElement, onRequestAddVirtualTable, }: SQLEditorProps): react_jsx_runtime.JSX.Element;
1908
1926
  declare const SchemaListComponent: ({ schema, theme, loading, LoadingComponent, width, onClick, style, onRequestAddVirtualTable, ButtonComponent, }: {
1909
1927
  schema: any;
1910
1928
  theme: any;
@@ -2174,6 +2192,15 @@ interface ReportBuilderProps {
2174
2192
  isAIEnabled?: boolean;
2175
2193
  /** Whether the PivotModal's AI features are enabled. */
2176
2194
  pivotRecommendationsEnabled?: boolean;
2195
+ /**
2196
+ * Options for the chart builder modal.
2197
+ */
2198
+ chartBuilderOptions?: {
2199
+ /** Whether to show table format options. */
2200
+ showTableFormatOptions?: boolean;
2201
+ /** Whether to show dashboard filter fields. */
2202
+ showDashboardFilterFields?: boolean;
2203
+ };
2177
2204
  /**
2178
2205
  * Applies the following classes to the ReportBuilder.
2179
2206
  *
@@ -2243,7 +2270,7 @@ interface ReportBuilderProps {
2243
2270
  * ### Report Builder API
2244
2271
  * @see https://docs.quillsql.com/components/report-builder
2245
2272
  */
2246
- declare function ReportBuilder$1({ initialTableName, onSubmitEditReport, onSubmitCreateReport, onSubmitSaveQuery, onDiscardChanges, onSaveChanges, onCloseChartBuilder, destinationDashboard, destinationSection, chartBuilderTitle, organizationName, ButtonComponent, SecondaryButtonComponent, DeleteButtonComponent, ModalComponent, TextInputComponent, SelectComponent, MultiSelectComponent, TableComponent, PopoverComponent, TabsComponent, CheckboxComponent, SidebarComponent, ContainerComponent, SelectColumnComponent, DraggableColumnComponent, SidebarHeadingComponent, FilterPopoverComponent, SortPopoverComponent, LimitPopoverComponent, CardComponent, LabelComponent, HeaderComponent, SubHeaderComponent, TextComponent, ErrorMessageComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, LoadingComponent, ColumnSearchEmptyState, ChartBuilderFormContainer, ChartBuilderModalComponent, isAdminEnabled, isAIEnabled, containerStyle, className, pivotRecommendationsEnabled, reportId, hideCopySQL, isChartBuilderHorizontalView, onClickChartElement, onRequestAddVirtualTable, submitButtonLabel, }: ReportBuilderProps): react_jsx_runtime.JSX.Element;
2273
+ declare function ReportBuilder$1({ initialTableName, onSubmitEditReport, onSubmitCreateReport, onSubmitSaveQuery, onDiscardChanges, onSaveChanges, onCloseChartBuilder, destinationDashboard, destinationSection, chartBuilderTitle, organizationName, ButtonComponent, SecondaryButtonComponent, DeleteButtonComponent, ModalComponent, TextInputComponent, SelectComponent, MultiSelectComponent, TableComponent, PopoverComponent, TabsComponent, CheckboxComponent, SidebarComponent, ContainerComponent, SelectColumnComponent, DraggableColumnComponent, SidebarHeadingComponent, FilterPopoverComponent, SortPopoverComponent, LimitPopoverComponent, CardComponent, LabelComponent, HeaderComponent, SubHeaderComponent, TextComponent, ErrorMessageComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, LoadingComponent, ColumnSearchEmptyState, ChartBuilderFormContainer, ChartBuilderModalComponent, isAdminEnabled, isAIEnabled, containerStyle, className, pivotRecommendationsEnabled, chartBuilderOptions, reportId, hideCopySQL, isChartBuilderHorizontalView, onClickChartElement, onRequestAddVirtualTable, submitButtonLabel, }: ReportBuilderProps): react_jsx_runtime.JSX.Element;
2247
2274
 
2248
2275
  /**
2249
2276
  * Props for the Quill ChartEditor component.
@@ -2267,12 +2294,16 @@ interface ChartEditorProps {
2267
2294
  * A callback that is fired when the add to dashboard flow has been completed.
2268
2295
  */
2269
2296
  onAddToDashboardComplete?: (report: QuillReport) => void;
2297
+ /** A callback function that will trigger when a chart is edited */
2298
+ onSubmitEditReport?: (report: QuillReport) => void;
2299
+ /** A callback function that will trigger when changes are discarded */
2300
+ onDiscardChanges?: () => void;
2270
2301
  /** A callback function triggered when a chart element is clicked */
2271
2302
  onClickChartElement?: (element: any) => void;
2272
2303
  /** A callback function triggered when the chart error button is clicked */
2273
2304
  onClickChartError?: (element: any) => void;
2274
2305
  /** A callback that is fired when the item is deleted. */
2275
- onDelete?: () => boolean | Promise<boolean>;
2306
+ onDelete?: () => void;
2276
2307
  /** A select component. */
2277
2308
  SelectComponent?: (props: {
2278
2309
  value: string | number | null | undefined;
@@ -2425,6 +2456,23 @@ interface ChartEditorProps {
2425
2456
  hideDeleteButton?: boolean;
2426
2457
  /** Whether to hide the submit button. */
2427
2458
  hideSubmitButton?: boolean;
2459
+ /** The section of the dashboard to add items to. */
2460
+ destinationSection?: string;
2461
+ /** Whether to show table format options */
2462
+ showTableFormatOptions?: boolean;
2463
+ /** Whether to show dashboard filter fields */
2464
+ showDashboardFilterFields?: boolean;
2465
+ /**
2466
+ * Options for the chart builder modal.
2467
+ */
2468
+ chartBuilderOptions?: {
2469
+ /** Whether to show table format options. */
2470
+ showTableFormatOptions?: boolean;
2471
+ /** Whether to show dashboard filter fields. */
2472
+ showDashboardFilterFields?: boolean;
2473
+ /** Whether to show the delete button. */
2474
+ showDeleteButton?: boolean;
2475
+ };
2428
2476
  }
2429
2477
  /**
2430
2478
  * ### Quill Chart Editor
@@ -2452,7 +2500,7 @@ interface ChartEditorProps {
2452
2500
  * ### Chart Editor API
2453
2501
  * @see https://docs.quillsql.com/components/chart-editor
2454
2502
  */
2455
- declare function ChartEditor({ isOpen, reportId, isAdmin, chartBuilderTitle, chartBuilderButtonLabel, onAddToDashboardComplete, destinationDashboard, organizationName, isHorizontalView, onDelete, setIsOpen, SelectComponent, TextInputComponent, ButtonComponent, SecondaryButtonComponent, HeaderComponent, SubHeaderComponent, LabelComponent, TextComponent, DeleteButtonComponent, ModalComponent, CardComponent, PopoverComponent, LoadingComponent, TableComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ErrorMessageComponent, ChartBuilderFormContainer, ErrorComponent, hideDeleteButton, hideSubmitButton, onClickChartElement, onClickChartError, }: ChartEditorProps): react_jsx_runtime.JSX.Element;
2503
+ declare function ChartEditor({ isOpen, reportId, isAdmin, chartBuilderTitle, chartBuilderButtonLabel, onAddToDashboardComplete, onSubmitEditReport, onDiscardChanges, destinationDashboard, destinationSection, organizationName, isHorizontalView, onDelete, setIsOpen, SelectComponent, TextInputComponent, ButtonComponent, SecondaryButtonComponent, HeaderComponent, SubHeaderComponent, LabelComponent, TextComponent, DeleteButtonComponent, ModalComponent, CardComponent, PopoverComponent, LoadingComponent, TableComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ErrorMessageComponent, ChartBuilderFormContainer, ErrorComponent, hideDeleteButton, hideSubmitButton, showTableFormatOptions, showDashboardFilterFields, chartBuilderOptions, onClickChartElement, onClickChartError, }: ChartEditorProps): react_jsx_runtime.JSX.Element;
2456
2504
 
2457
2505
  interface StaticChartProps {
2458
2506
  reportId: string;
@@ -3262,8 +3310,14 @@ interface SaveReportProps {
3262
3310
  onSubmitEditReport?: (report: QuillReport) => void;
3263
3311
  /** Callback when creating a new report is submitted. */
3264
3312
  onSubmitCreateReport?: (report: QuillReport) => void;
3313
+ /** Callback when changes are discarded. */
3314
+ onDiscardChanges?: () => void;
3265
3315
  /** The destination section for the report. */
3266
3316
  destinationSection?: string;
3317
+ /** Whether to show table format options. */
3318
+ showTableFormatOptions?: boolean;
3319
+ /** Whether to show dashboard filter fields. */
3320
+ showDashboardFilterFields?: boolean;
3267
3321
  /** A select component. */
3268
3322
  SelectComponent?: (props: {
3269
3323
  value: string | number | undefined | null;
@@ -3403,7 +3457,7 @@ interface SaveReportProps {
3403
3457
  /** The label for the submit button. */
3404
3458
  submitButtonLabel?: string;
3405
3459
  }
3406
- declare const SaveReport: ({ reportBuilder, isOpen, setIsOpen, isAdminEnabled, chartBuilderTitle, onSubmitEditReport, onSubmitCreateReport, destinationSection, SelectComponent, TextInputComponent, ButtonComponent, SecondaryButtonComponent, HeaderComponent, SubHeaderComponent, LabelComponent, TextComponent, CardComponent, ModalComponent, PopoverComponent, TableComponent, DeleteButtonComponent, LoadingComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ErrorMessageComponent, CheckboxComponent, ChartBuilderFormContainer, onClickChartElement, SaveTrigger, submitButtonLabel, }: SaveReportProps) => react_jsx_runtime.JSX.Element;
3460
+ declare const SaveReport: ({ reportBuilder, isOpen, setIsOpen, isAdminEnabled, chartBuilderTitle, onSubmitEditReport, onSubmitCreateReport, onDiscardChanges, destinationSection, showTableFormatOptions, showDashboardFilterFields, SelectComponent, TextInputComponent, ButtonComponent, SecondaryButtonComponent, HeaderComponent, SubHeaderComponent, LabelComponent, TextComponent, CardComponent, ModalComponent, PopoverComponent, TableComponent, DeleteButtonComponent, LoadingComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ErrorMessageComponent, CheckboxComponent, ChartBuilderFormContainer, onClickChartElement, SaveTrigger, submitButtonLabel, }: SaveReportProps) => react_jsx_runtime.JSX.Element;
3407
3461
 
3408
3462
  interface ReportTableProps {
3409
3463
  reportBuilder: ReportBuilder;
package/dist/index.d.ts CHANGED
@@ -1799,8 +1799,13 @@ interface SQLEditorProps {
1799
1799
  onCloseChartBuilder?: () => void;
1800
1800
  /**
1801
1801
  * A callback that is fired when a report has been added to a dashboard.
1802
+ * @deprecated Use onSubmitCreateReport and onSubmitEditReport instead
1802
1803
  */
1803
1804
  onAddToDashboardComplete?: (report: QuillReport) => void;
1805
+ /** A callback function that will trigger when a new chart is saved */
1806
+ onSubmitCreateReport?: (report: QuillReport) => void;
1807
+ /** A callback function that will trigger when a chart is edited */
1808
+ onSubmitEditReport?: (report: QuillReport) => void;
1804
1809
  onSaveQueryComplete?: (report: QuillReport) => void;
1805
1810
  /** A callback function triggered when a chart element is clicked */
1806
1811
  onClickChartElement?: (event: any) => void;
@@ -1827,9 +1832,14 @@ interface SQLEditorProps {
1827
1832
  */
1828
1833
  isAdminEnabled?: boolean;
1829
1834
  /**
1830
- * Whether to show table format options.
1835
+ * Options for the chart builder modal.
1831
1836
  */
1832
- showTableFormatOptions?: boolean;
1837
+ chartBuilderOptions?: {
1838
+ /** Whether to show table format options. */
1839
+ showTableFormatOptions?: boolean;
1840
+ /** Whether to show dashboard filter fields. */
1841
+ showDashboardFilterFields?: boolean;
1842
+ };
1833
1843
  /**
1834
1844
  * Whether to show date field options.
1835
1845
  */
@@ -1842,6 +1852,10 @@ interface SQLEditorProps {
1842
1852
  * A dashboard item.
1843
1853
  */
1844
1854
  report?: QuillReport;
1855
+ /**
1856
+ * A report id that the SQL Editor will query from and modify.
1857
+ */
1858
+ reportId?: string;
1845
1859
  /**
1846
1860
  * The default query to use as a placeholder.
1847
1861
  */
@@ -1850,6 +1864,10 @@ interface SQLEditorProps {
1850
1864
  * The default dashboard to add the query to.
1851
1865
  */
1852
1866
  destinationDashboard: string;
1867
+ /**
1868
+ * The section of the dashboard to add items to.
1869
+ */
1870
+ destinationSection?: string;
1853
1871
  /**
1854
1872
  * The title of the ChartBuilder dialog.
1855
1873
  */
@@ -1904,7 +1922,7 @@ interface SQLEditorProps {
1904
1922
  * ### SQLEditor API
1905
1923
  * @see https://docs.quillsql.com/components/sql-editor
1906
1924
  */
1907
- declare function SQLEditor({ ButtonComponent, SecondaryButtonComponent, DeleteButtonComponent, TextInputComponent, SelectComponent, TableComponent, isNewQueryEnabled, LoadingComponent, ModalComponent, PopoverComponent, CardComponent, LabelComponent, HeaderComponent, SubHeaderComponent, TextComponent, ErrorMessageComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ChartBuilderFormContainer, CheckboxComponent, defaultQuery, destinationDashboard, onChangeQuery, onChangeData, onChangeColumns, onChangeFields, onDiscardChanges, onSaveChanges, onCloseChartBuilder, isChartBuilderEnabled, isAdminEnabled, chartBuilderTitle, runQueryOnMount, onAddToDashboardComplete, onSaveQueryComplete, addToDashboardButtonLabel, report, organizationName, isChartBuilderHorizontalView, containerStyle, className, onClickChartElement, onRequestAddVirtualTable, }: SQLEditorProps): react_jsx_runtime.JSX.Element;
1925
+ declare function SQLEditor({ ButtonComponent, SecondaryButtonComponent, DeleteButtonComponent, TextInputComponent, SelectComponent, TableComponent, isNewQueryEnabled, LoadingComponent, ModalComponent, PopoverComponent, CardComponent, LabelComponent, HeaderComponent, SubHeaderComponent, TextComponent, ErrorMessageComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ChartBuilderFormContainer, CheckboxComponent, defaultQuery, destinationDashboard, destinationSection, onChangeQuery, onChangeData, onChangeColumns, onChangeFields, onDiscardChanges, onSaveChanges, onCloseChartBuilder, isChartBuilderEnabled, isAdminEnabled, chartBuilderOptions, chartBuilderTitle, runQueryOnMount, onAddToDashboardComplete, onSubmitCreateReport, onSubmitEditReport, onSaveQueryComplete, addToDashboardButtonLabel, report, reportId, organizationName, isChartBuilderHorizontalView, containerStyle, className, onClickChartElement, onRequestAddVirtualTable, }: SQLEditorProps): react_jsx_runtime.JSX.Element;
1908
1926
  declare const SchemaListComponent: ({ schema, theme, loading, LoadingComponent, width, onClick, style, onRequestAddVirtualTable, ButtonComponent, }: {
1909
1927
  schema: any;
1910
1928
  theme: any;
@@ -2174,6 +2192,15 @@ interface ReportBuilderProps {
2174
2192
  isAIEnabled?: boolean;
2175
2193
  /** Whether the PivotModal's AI features are enabled. */
2176
2194
  pivotRecommendationsEnabled?: boolean;
2195
+ /**
2196
+ * Options for the chart builder modal.
2197
+ */
2198
+ chartBuilderOptions?: {
2199
+ /** Whether to show table format options. */
2200
+ showTableFormatOptions?: boolean;
2201
+ /** Whether to show dashboard filter fields. */
2202
+ showDashboardFilterFields?: boolean;
2203
+ };
2177
2204
  /**
2178
2205
  * Applies the following classes to the ReportBuilder.
2179
2206
  *
@@ -2243,7 +2270,7 @@ interface ReportBuilderProps {
2243
2270
  * ### Report Builder API
2244
2271
  * @see https://docs.quillsql.com/components/report-builder
2245
2272
  */
2246
- declare function ReportBuilder$1({ initialTableName, onSubmitEditReport, onSubmitCreateReport, onSubmitSaveQuery, onDiscardChanges, onSaveChanges, onCloseChartBuilder, destinationDashboard, destinationSection, chartBuilderTitle, organizationName, ButtonComponent, SecondaryButtonComponent, DeleteButtonComponent, ModalComponent, TextInputComponent, SelectComponent, MultiSelectComponent, TableComponent, PopoverComponent, TabsComponent, CheckboxComponent, SidebarComponent, ContainerComponent, SelectColumnComponent, DraggableColumnComponent, SidebarHeadingComponent, FilterPopoverComponent, SortPopoverComponent, LimitPopoverComponent, CardComponent, LabelComponent, HeaderComponent, SubHeaderComponent, TextComponent, ErrorMessageComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, LoadingComponent, ColumnSearchEmptyState, ChartBuilderFormContainer, ChartBuilderModalComponent, isAdminEnabled, isAIEnabled, containerStyle, className, pivotRecommendationsEnabled, reportId, hideCopySQL, isChartBuilderHorizontalView, onClickChartElement, onRequestAddVirtualTable, submitButtonLabel, }: ReportBuilderProps): react_jsx_runtime.JSX.Element;
2273
+ declare function ReportBuilder$1({ initialTableName, onSubmitEditReport, onSubmitCreateReport, onSubmitSaveQuery, onDiscardChanges, onSaveChanges, onCloseChartBuilder, destinationDashboard, destinationSection, chartBuilderTitle, organizationName, ButtonComponent, SecondaryButtonComponent, DeleteButtonComponent, ModalComponent, TextInputComponent, SelectComponent, MultiSelectComponent, TableComponent, PopoverComponent, TabsComponent, CheckboxComponent, SidebarComponent, ContainerComponent, SelectColumnComponent, DraggableColumnComponent, SidebarHeadingComponent, FilterPopoverComponent, SortPopoverComponent, LimitPopoverComponent, CardComponent, LabelComponent, HeaderComponent, SubHeaderComponent, TextComponent, ErrorMessageComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, LoadingComponent, ColumnSearchEmptyState, ChartBuilderFormContainer, ChartBuilderModalComponent, isAdminEnabled, isAIEnabled, containerStyle, className, pivotRecommendationsEnabled, chartBuilderOptions, reportId, hideCopySQL, isChartBuilderHorizontalView, onClickChartElement, onRequestAddVirtualTable, submitButtonLabel, }: ReportBuilderProps): react_jsx_runtime.JSX.Element;
2247
2274
 
2248
2275
  /**
2249
2276
  * Props for the Quill ChartEditor component.
@@ -2267,12 +2294,16 @@ interface ChartEditorProps {
2267
2294
  * A callback that is fired when the add to dashboard flow has been completed.
2268
2295
  */
2269
2296
  onAddToDashboardComplete?: (report: QuillReport) => void;
2297
+ /** A callback function that will trigger when a chart is edited */
2298
+ onSubmitEditReport?: (report: QuillReport) => void;
2299
+ /** A callback function that will trigger when changes are discarded */
2300
+ onDiscardChanges?: () => void;
2270
2301
  /** A callback function triggered when a chart element is clicked */
2271
2302
  onClickChartElement?: (element: any) => void;
2272
2303
  /** A callback function triggered when the chart error button is clicked */
2273
2304
  onClickChartError?: (element: any) => void;
2274
2305
  /** A callback that is fired when the item is deleted. */
2275
- onDelete?: () => boolean | Promise<boolean>;
2306
+ onDelete?: () => void;
2276
2307
  /** A select component. */
2277
2308
  SelectComponent?: (props: {
2278
2309
  value: string | number | null | undefined;
@@ -2425,6 +2456,23 @@ interface ChartEditorProps {
2425
2456
  hideDeleteButton?: boolean;
2426
2457
  /** Whether to hide the submit button. */
2427
2458
  hideSubmitButton?: boolean;
2459
+ /** The section of the dashboard to add items to. */
2460
+ destinationSection?: string;
2461
+ /** Whether to show table format options */
2462
+ showTableFormatOptions?: boolean;
2463
+ /** Whether to show dashboard filter fields */
2464
+ showDashboardFilterFields?: boolean;
2465
+ /**
2466
+ * Options for the chart builder modal.
2467
+ */
2468
+ chartBuilderOptions?: {
2469
+ /** Whether to show table format options. */
2470
+ showTableFormatOptions?: boolean;
2471
+ /** Whether to show dashboard filter fields. */
2472
+ showDashboardFilterFields?: boolean;
2473
+ /** Whether to show the delete button. */
2474
+ showDeleteButton?: boolean;
2475
+ };
2428
2476
  }
2429
2477
  /**
2430
2478
  * ### Quill Chart Editor
@@ -2452,7 +2500,7 @@ interface ChartEditorProps {
2452
2500
  * ### Chart Editor API
2453
2501
  * @see https://docs.quillsql.com/components/chart-editor
2454
2502
  */
2455
- declare function ChartEditor({ isOpen, reportId, isAdmin, chartBuilderTitle, chartBuilderButtonLabel, onAddToDashboardComplete, destinationDashboard, organizationName, isHorizontalView, onDelete, setIsOpen, SelectComponent, TextInputComponent, ButtonComponent, SecondaryButtonComponent, HeaderComponent, SubHeaderComponent, LabelComponent, TextComponent, DeleteButtonComponent, ModalComponent, CardComponent, PopoverComponent, LoadingComponent, TableComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ErrorMessageComponent, ChartBuilderFormContainer, ErrorComponent, hideDeleteButton, hideSubmitButton, onClickChartElement, onClickChartError, }: ChartEditorProps): react_jsx_runtime.JSX.Element;
2503
+ declare function ChartEditor({ isOpen, reportId, isAdmin, chartBuilderTitle, chartBuilderButtonLabel, onAddToDashboardComplete, onSubmitEditReport, onDiscardChanges, destinationDashboard, destinationSection, organizationName, isHorizontalView, onDelete, setIsOpen, SelectComponent, TextInputComponent, ButtonComponent, SecondaryButtonComponent, HeaderComponent, SubHeaderComponent, LabelComponent, TextComponent, DeleteButtonComponent, ModalComponent, CardComponent, PopoverComponent, LoadingComponent, TableComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ErrorMessageComponent, ChartBuilderFormContainer, ErrorComponent, hideDeleteButton, hideSubmitButton, showTableFormatOptions, showDashboardFilterFields, chartBuilderOptions, onClickChartElement, onClickChartError, }: ChartEditorProps): react_jsx_runtime.JSX.Element;
2456
2504
 
2457
2505
  interface StaticChartProps {
2458
2506
  reportId: string;
@@ -3262,8 +3310,14 @@ interface SaveReportProps {
3262
3310
  onSubmitEditReport?: (report: QuillReport) => void;
3263
3311
  /** Callback when creating a new report is submitted. */
3264
3312
  onSubmitCreateReport?: (report: QuillReport) => void;
3313
+ /** Callback when changes are discarded. */
3314
+ onDiscardChanges?: () => void;
3265
3315
  /** The destination section for the report. */
3266
3316
  destinationSection?: string;
3317
+ /** Whether to show table format options. */
3318
+ showTableFormatOptions?: boolean;
3319
+ /** Whether to show dashboard filter fields. */
3320
+ showDashboardFilterFields?: boolean;
3267
3321
  /** A select component. */
3268
3322
  SelectComponent?: (props: {
3269
3323
  value: string | number | undefined | null;
@@ -3403,7 +3457,7 @@ interface SaveReportProps {
3403
3457
  /** The label for the submit button. */
3404
3458
  submitButtonLabel?: string;
3405
3459
  }
3406
- declare const SaveReport: ({ reportBuilder, isOpen, setIsOpen, isAdminEnabled, chartBuilderTitle, onSubmitEditReport, onSubmitCreateReport, destinationSection, SelectComponent, TextInputComponent, ButtonComponent, SecondaryButtonComponent, HeaderComponent, SubHeaderComponent, LabelComponent, TextComponent, CardComponent, ModalComponent, PopoverComponent, TableComponent, DeleteButtonComponent, LoadingComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ErrorMessageComponent, CheckboxComponent, ChartBuilderFormContainer, onClickChartElement, SaveTrigger, submitButtonLabel, }: SaveReportProps) => react_jsx_runtime.JSX.Element;
3460
+ declare const SaveReport: ({ reportBuilder, isOpen, setIsOpen, isAdminEnabled, chartBuilderTitle, onSubmitEditReport, onSubmitCreateReport, onDiscardChanges, destinationSection, showTableFormatOptions, showDashboardFilterFields, SelectComponent, TextInputComponent, ButtonComponent, SecondaryButtonComponent, HeaderComponent, SubHeaderComponent, LabelComponent, TextComponent, CardComponent, ModalComponent, PopoverComponent, TableComponent, DeleteButtonComponent, LoadingComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ErrorMessageComponent, CheckboxComponent, ChartBuilderFormContainer, onClickChartElement, SaveTrigger, submitButtonLabel, }: SaveReportProps) => react_jsx_runtime.JSX.Element;
3407
3461
 
3408
3462
  interface ReportTableProps {
3409
3463
  reportBuilder: ReportBuilder;