@quillsql/react 2.16.1 → 2.16.2
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 +18770 -18848
- package/dist/index.d.cts +53 -80
- package/dist/index.d.ts +53 -80
- package/dist/index.js +18678 -18754
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -569,6 +569,49 @@ type PivotData = {
|
|
|
569
569
|
comparisonPivotQuery?: string;
|
|
570
570
|
};
|
|
571
571
|
|
|
572
|
+
type SortDirection = 'asc' | 'desc' | 'ASC' | 'DESC';
|
|
573
|
+
type ReportBuilderTable = {
|
|
574
|
+
name: string;
|
|
575
|
+
alias?: string;
|
|
576
|
+
join?: JoinInfo;
|
|
577
|
+
};
|
|
578
|
+
declare enum JoinType {
|
|
579
|
+
JOIN = "JOIN",
|
|
580
|
+
INNER = "INNER JOIN",
|
|
581
|
+
LEFT = "LEFT JOIN",
|
|
582
|
+
RIGHT = "RIGHT JOIN",
|
|
583
|
+
FULL = "FULL JOIN"
|
|
584
|
+
}
|
|
585
|
+
type JoinInfo = {
|
|
586
|
+
type: JoinType;
|
|
587
|
+
condition: JoinCondition;
|
|
588
|
+
};
|
|
589
|
+
type JoinCondition = {
|
|
590
|
+
operator: string;
|
|
591
|
+
left: ReportBuilderColumn;
|
|
592
|
+
right: ReportBuilderColumn;
|
|
593
|
+
};
|
|
594
|
+
type ReportBuilderColumn = {
|
|
595
|
+
field: string;
|
|
596
|
+
table: string;
|
|
597
|
+
alias?: string;
|
|
598
|
+
};
|
|
599
|
+
type ReportBuilderSort = {
|
|
600
|
+
field: string;
|
|
601
|
+
direction: SortDirection;
|
|
602
|
+
};
|
|
603
|
+
type ReportBuilderLimit = {
|
|
604
|
+
value: number;
|
|
605
|
+
};
|
|
606
|
+
type ReportBuilderState = {
|
|
607
|
+
tables: ReportBuilderTable[];
|
|
608
|
+
columns: ReportBuilderColumn[];
|
|
609
|
+
filterStack: FilterTreeNode[];
|
|
610
|
+
pivot: Pivot | null;
|
|
611
|
+
sort: ReportBuilderSort[];
|
|
612
|
+
limit: ReportBuilderLimit | null;
|
|
613
|
+
};
|
|
614
|
+
|
|
572
615
|
/**
|
|
573
616
|
* ## QuillReport
|
|
574
617
|
* Represents an individual item on a dashboard.
|
|
@@ -708,6 +751,11 @@ interface QuillReportInternal extends QuillReport {
|
|
|
708
751
|
flags?: {
|
|
709
752
|
[tenantField: string]: string[] | 'QUILL_ALL_TENANTS';
|
|
710
753
|
};
|
|
754
|
+
/**
|
|
755
|
+
* ReportBuilderState used for ReportBuilder reports.
|
|
756
|
+
* When present, backend will generate SQL from this state instead of using queryString.
|
|
757
|
+
*/
|
|
758
|
+
reportBuilderState?: ReportBuilderState;
|
|
711
759
|
}
|
|
712
760
|
|
|
713
761
|
/**
|
|
@@ -1751,13 +1799,8 @@ interface SQLEditorProps {
|
|
|
1751
1799
|
onCloseChartBuilder?: () => void;
|
|
1752
1800
|
/**
|
|
1753
1801
|
* A callback that is fired when a report has been added to a dashboard.
|
|
1754
|
-
* @deprecated Use onSubmitCreateReport and onSubmitEditReport instead
|
|
1755
1802
|
*/
|
|
1756
1803
|
onAddToDashboardComplete?: (report: QuillReport) => void;
|
|
1757
|
-
/** A callback function that will trigger when a new chart is saved */
|
|
1758
|
-
onSubmitCreateReport?: (report: QuillReport) => void;
|
|
1759
|
-
/** A callback function that will trigger when a chart is edited */
|
|
1760
|
-
onSubmitEditReport?: (report: QuillReport) => void;
|
|
1761
1804
|
onSaveQueryComplete?: (report: QuillReport) => void;
|
|
1762
1805
|
/** A callback function triggered when a chart element is clicked */
|
|
1763
1806
|
onClickChartElement?: (event: any) => void;
|
|
@@ -1784,14 +1827,9 @@ interface SQLEditorProps {
|
|
|
1784
1827
|
*/
|
|
1785
1828
|
isAdminEnabled?: boolean;
|
|
1786
1829
|
/**
|
|
1787
|
-
*
|
|
1830
|
+
* Whether to show table format options.
|
|
1788
1831
|
*/
|
|
1789
|
-
|
|
1790
|
-
/** Whether to show table format options. */
|
|
1791
|
-
showTableFormatOptions?: boolean;
|
|
1792
|
-
/** Whether to show dashboard filter fields. */
|
|
1793
|
-
showDashboardFilterFields?: boolean;
|
|
1794
|
-
};
|
|
1832
|
+
showTableFormatOptions?: boolean;
|
|
1795
1833
|
/**
|
|
1796
1834
|
* Whether to show date field options.
|
|
1797
1835
|
*/
|
|
@@ -1804,10 +1842,6 @@ interface SQLEditorProps {
|
|
|
1804
1842
|
* A dashboard item.
|
|
1805
1843
|
*/
|
|
1806
1844
|
report?: QuillReport;
|
|
1807
|
-
/**
|
|
1808
|
-
* A report id that the SQL Editor will query from and modify.
|
|
1809
|
-
*/
|
|
1810
|
-
reportId?: string;
|
|
1811
1845
|
/**
|
|
1812
1846
|
* The default query to use as a placeholder.
|
|
1813
1847
|
*/
|
|
@@ -1816,10 +1850,6 @@ interface SQLEditorProps {
|
|
|
1816
1850
|
* The default dashboard to add the query to.
|
|
1817
1851
|
*/
|
|
1818
1852
|
destinationDashboard: string;
|
|
1819
|
-
/**
|
|
1820
|
-
* The section of the dashboard to add items to.
|
|
1821
|
-
*/
|
|
1822
|
-
destinationSection?: string;
|
|
1823
1853
|
/**
|
|
1824
1854
|
* The title of the ChartBuilder dialog.
|
|
1825
1855
|
*/
|
|
@@ -1874,7 +1904,7 @@ interface SQLEditorProps {
|
|
|
1874
1904
|
* ### SQLEditor API
|
|
1875
1905
|
* @see https://docs.quillsql.com/components/sql-editor
|
|
1876
1906
|
*/
|
|
1877
|
-
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,
|
|
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;
|
|
1878
1908
|
declare const SchemaListComponent: ({ schema, theme, loading, LoadingComponent, width, onClick, style, onRequestAddVirtualTable, ButtonComponent, }: {
|
|
1879
1909
|
schema: any;
|
|
1880
1910
|
theme: any;
|
|
@@ -2144,15 +2174,6 @@ interface ReportBuilderProps {
|
|
|
2144
2174
|
isAIEnabled?: boolean;
|
|
2145
2175
|
/** Whether the PivotModal's AI features are enabled. */
|
|
2146
2176
|
pivotRecommendationsEnabled?: boolean;
|
|
2147
|
-
/**
|
|
2148
|
-
* Options for the chart builder modal.
|
|
2149
|
-
*/
|
|
2150
|
-
chartBuilderOptions?: {
|
|
2151
|
-
/** Whether to show table format options. */
|
|
2152
|
-
showTableFormatOptions?: boolean;
|
|
2153
|
-
/** Whether to show dashboard filter fields. */
|
|
2154
|
-
showDashboardFilterFields?: boolean;
|
|
2155
|
-
};
|
|
2156
2177
|
/**
|
|
2157
2178
|
* Applies the following classes to the ReportBuilder.
|
|
2158
2179
|
*
|
|
@@ -2222,7 +2243,7 @@ interface ReportBuilderProps {
|
|
|
2222
2243
|
* ### Report Builder API
|
|
2223
2244
|
* @see https://docs.quillsql.com/components/report-builder
|
|
2224
2245
|
*/
|
|
2225
|
-
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,
|
|
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;
|
|
2226
2247
|
|
|
2227
2248
|
/**
|
|
2228
2249
|
* Props for the Quill ChartEditor component.
|
|
@@ -2557,49 +2578,6 @@ interface UniqueValuesByColumn {
|
|
|
2557
2578
|
[column: string]: string[];
|
|
2558
2579
|
}
|
|
2559
2580
|
|
|
2560
|
-
type SortDirection = 'asc' | 'desc' | 'ASC' | 'DESC';
|
|
2561
|
-
type ReportBuilderTable = {
|
|
2562
|
-
name: string;
|
|
2563
|
-
alias?: string;
|
|
2564
|
-
join?: JoinInfo;
|
|
2565
|
-
};
|
|
2566
|
-
declare enum JoinType {
|
|
2567
|
-
JOIN = "JOIN",
|
|
2568
|
-
INNER = "INNER JOIN",
|
|
2569
|
-
LEFT = "LEFT JOIN",
|
|
2570
|
-
RIGHT = "RIGHT JOIN",
|
|
2571
|
-
FULL = "FULL JOIN"
|
|
2572
|
-
}
|
|
2573
|
-
type JoinInfo = {
|
|
2574
|
-
type: JoinType;
|
|
2575
|
-
condition: JoinCondition;
|
|
2576
|
-
};
|
|
2577
|
-
type JoinCondition = {
|
|
2578
|
-
operator: string;
|
|
2579
|
-
left: ReportBuilderColumn;
|
|
2580
|
-
right: ReportBuilderColumn;
|
|
2581
|
-
};
|
|
2582
|
-
type ReportBuilderColumn = {
|
|
2583
|
-
field: string;
|
|
2584
|
-
table: string;
|
|
2585
|
-
alias?: string;
|
|
2586
|
-
};
|
|
2587
|
-
type ReportBuilderSort = {
|
|
2588
|
-
field: string;
|
|
2589
|
-
direction: SortDirection;
|
|
2590
|
-
};
|
|
2591
|
-
type ReportBuilderLimit = {
|
|
2592
|
-
value: number;
|
|
2593
|
-
};
|
|
2594
|
-
type ReportBuilderState = {
|
|
2595
|
-
tables: ReportBuilderTable[];
|
|
2596
|
-
columns: ReportBuilderColumn[];
|
|
2597
|
-
filterStack: FilterTreeNode[];
|
|
2598
|
-
pivot: Pivot | null;
|
|
2599
|
-
sort: ReportBuilderSort[];
|
|
2600
|
-
limit: ReportBuilderLimit | null;
|
|
2601
|
-
};
|
|
2602
|
-
|
|
2603
2581
|
type ForeignKeyMap = {
|
|
2604
2582
|
[table: string]: {
|
|
2605
2583
|
foreignTable: string;
|
|
@@ -2615,7 +2593,6 @@ type ReportBuilder = {
|
|
|
2615
2593
|
limit: ReportBuilderLimit | null;
|
|
2616
2594
|
filterStack: FilterTreeNode[];
|
|
2617
2595
|
state: ReportBuilderState;
|
|
2618
|
-
activeQuery: string;
|
|
2619
2596
|
tempReport: QuillReportInternal;
|
|
2620
2597
|
stateStack: ReportBuilderState[];
|
|
2621
2598
|
poppedStateStack: ReportBuilderState[];
|
|
@@ -3287,10 +3264,6 @@ interface SaveReportProps {
|
|
|
3287
3264
|
onSubmitCreateReport?: (report: QuillReport) => void;
|
|
3288
3265
|
/** The destination section for the report. */
|
|
3289
3266
|
destinationSection?: string;
|
|
3290
|
-
/** Whether to show table format options. */
|
|
3291
|
-
showTableFormatOptions?: boolean;
|
|
3292
|
-
/** Whether to show dashboard filter fields. */
|
|
3293
|
-
showDashboardFilterFields?: boolean;
|
|
3294
3267
|
/** A select component. */
|
|
3295
3268
|
SelectComponent?: (props: {
|
|
3296
3269
|
value: string | number | undefined | null;
|
|
@@ -3430,7 +3403,7 @@ interface SaveReportProps {
|
|
|
3430
3403
|
/** The label for the submit button. */
|
|
3431
3404
|
submitButtonLabel?: string;
|
|
3432
3405
|
}
|
|
3433
|
-
declare const SaveReport: ({ reportBuilder, isOpen, setIsOpen, isAdminEnabled, chartBuilderTitle, onSubmitEditReport, onSubmitCreateReport, destinationSection,
|
|
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;
|
|
3434
3407
|
|
|
3435
3408
|
interface ReportTableProps {
|
|
3436
3409
|
reportBuilder: ReportBuilder;
|
package/dist/index.d.ts
CHANGED
|
@@ -569,6 +569,49 @@ type PivotData = {
|
|
|
569
569
|
comparisonPivotQuery?: string;
|
|
570
570
|
};
|
|
571
571
|
|
|
572
|
+
type SortDirection = 'asc' | 'desc' | 'ASC' | 'DESC';
|
|
573
|
+
type ReportBuilderTable = {
|
|
574
|
+
name: string;
|
|
575
|
+
alias?: string;
|
|
576
|
+
join?: JoinInfo;
|
|
577
|
+
};
|
|
578
|
+
declare enum JoinType {
|
|
579
|
+
JOIN = "JOIN",
|
|
580
|
+
INNER = "INNER JOIN",
|
|
581
|
+
LEFT = "LEFT JOIN",
|
|
582
|
+
RIGHT = "RIGHT JOIN",
|
|
583
|
+
FULL = "FULL JOIN"
|
|
584
|
+
}
|
|
585
|
+
type JoinInfo = {
|
|
586
|
+
type: JoinType;
|
|
587
|
+
condition: JoinCondition;
|
|
588
|
+
};
|
|
589
|
+
type JoinCondition = {
|
|
590
|
+
operator: string;
|
|
591
|
+
left: ReportBuilderColumn;
|
|
592
|
+
right: ReportBuilderColumn;
|
|
593
|
+
};
|
|
594
|
+
type ReportBuilderColumn = {
|
|
595
|
+
field: string;
|
|
596
|
+
table: string;
|
|
597
|
+
alias?: string;
|
|
598
|
+
};
|
|
599
|
+
type ReportBuilderSort = {
|
|
600
|
+
field: string;
|
|
601
|
+
direction: SortDirection;
|
|
602
|
+
};
|
|
603
|
+
type ReportBuilderLimit = {
|
|
604
|
+
value: number;
|
|
605
|
+
};
|
|
606
|
+
type ReportBuilderState = {
|
|
607
|
+
tables: ReportBuilderTable[];
|
|
608
|
+
columns: ReportBuilderColumn[];
|
|
609
|
+
filterStack: FilterTreeNode[];
|
|
610
|
+
pivot: Pivot | null;
|
|
611
|
+
sort: ReportBuilderSort[];
|
|
612
|
+
limit: ReportBuilderLimit | null;
|
|
613
|
+
};
|
|
614
|
+
|
|
572
615
|
/**
|
|
573
616
|
* ## QuillReport
|
|
574
617
|
* Represents an individual item on a dashboard.
|
|
@@ -708,6 +751,11 @@ interface QuillReportInternal extends QuillReport {
|
|
|
708
751
|
flags?: {
|
|
709
752
|
[tenantField: string]: string[] | 'QUILL_ALL_TENANTS';
|
|
710
753
|
};
|
|
754
|
+
/**
|
|
755
|
+
* ReportBuilderState used for ReportBuilder reports.
|
|
756
|
+
* When present, backend will generate SQL from this state instead of using queryString.
|
|
757
|
+
*/
|
|
758
|
+
reportBuilderState?: ReportBuilderState;
|
|
711
759
|
}
|
|
712
760
|
|
|
713
761
|
/**
|
|
@@ -1751,13 +1799,8 @@ interface SQLEditorProps {
|
|
|
1751
1799
|
onCloseChartBuilder?: () => void;
|
|
1752
1800
|
/**
|
|
1753
1801
|
* A callback that is fired when a report has been added to a dashboard.
|
|
1754
|
-
* @deprecated Use onSubmitCreateReport and onSubmitEditReport instead
|
|
1755
1802
|
*/
|
|
1756
1803
|
onAddToDashboardComplete?: (report: QuillReport) => void;
|
|
1757
|
-
/** A callback function that will trigger when a new chart is saved */
|
|
1758
|
-
onSubmitCreateReport?: (report: QuillReport) => void;
|
|
1759
|
-
/** A callback function that will trigger when a chart is edited */
|
|
1760
|
-
onSubmitEditReport?: (report: QuillReport) => void;
|
|
1761
1804
|
onSaveQueryComplete?: (report: QuillReport) => void;
|
|
1762
1805
|
/** A callback function triggered when a chart element is clicked */
|
|
1763
1806
|
onClickChartElement?: (event: any) => void;
|
|
@@ -1784,14 +1827,9 @@ interface SQLEditorProps {
|
|
|
1784
1827
|
*/
|
|
1785
1828
|
isAdminEnabled?: boolean;
|
|
1786
1829
|
/**
|
|
1787
|
-
*
|
|
1830
|
+
* Whether to show table format options.
|
|
1788
1831
|
*/
|
|
1789
|
-
|
|
1790
|
-
/** Whether to show table format options. */
|
|
1791
|
-
showTableFormatOptions?: boolean;
|
|
1792
|
-
/** Whether to show dashboard filter fields. */
|
|
1793
|
-
showDashboardFilterFields?: boolean;
|
|
1794
|
-
};
|
|
1832
|
+
showTableFormatOptions?: boolean;
|
|
1795
1833
|
/**
|
|
1796
1834
|
* Whether to show date field options.
|
|
1797
1835
|
*/
|
|
@@ -1804,10 +1842,6 @@ interface SQLEditorProps {
|
|
|
1804
1842
|
* A dashboard item.
|
|
1805
1843
|
*/
|
|
1806
1844
|
report?: QuillReport;
|
|
1807
|
-
/**
|
|
1808
|
-
* A report id that the SQL Editor will query from and modify.
|
|
1809
|
-
*/
|
|
1810
|
-
reportId?: string;
|
|
1811
1845
|
/**
|
|
1812
1846
|
* The default query to use as a placeholder.
|
|
1813
1847
|
*/
|
|
@@ -1816,10 +1850,6 @@ interface SQLEditorProps {
|
|
|
1816
1850
|
* The default dashboard to add the query to.
|
|
1817
1851
|
*/
|
|
1818
1852
|
destinationDashboard: string;
|
|
1819
|
-
/**
|
|
1820
|
-
* The section of the dashboard to add items to.
|
|
1821
|
-
*/
|
|
1822
|
-
destinationSection?: string;
|
|
1823
1853
|
/**
|
|
1824
1854
|
* The title of the ChartBuilder dialog.
|
|
1825
1855
|
*/
|
|
@@ -1874,7 +1904,7 @@ interface SQLEditorProps {
|
|
|
1874
1904
|
* ### SQLEditor API
|
|
1875
1905
|
* @see https://docs.quillsql.com/components/sql-editor
|
|
1876
1906
|
*/
|
|
1877
|
-
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,
|
|
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;
|
|
1878
1908
|
declare const SchemaListComponent: ({ schema, theme, loading, LoadingComponent, width, onClick, style, onRequestAddVirtualTable, ButtonComponent, }: {
|
|
1879
1909
|
schema: any;
|
|
1880
1910
|
theme: any;
|
|
@@ -2144,15 +2174,6 @@ interface ReportBuilderProps {
|
|
|
2144
2174
|
isAIEnabled?: boolean;
|
|
2145
2175
|
/** Whether the PivotModal's AI features are enabled. */
|
|
2146
2176
|
pivotRecommendationsEnabled?: boolean;
|
|
2147
|
-
/**
|
|
2148
|
-
* Options for the chart builder modal.
|
|
2149
|
-
*/
|
|
2150
|
-
chartBuilderOptions?: {
|
|
2151
|
-
/** Whether to show table format options. */
|
|
2152
|
-
showTableFormatOptions?: boolean;
|
|
2153
|
-
/** Whether to show dashboard filter fields. */
|
|
2154
|
-
showDashboardFilterFields?: boolean;
|
|
2155
|
-
};
|
|
2156
2177
|
/**
|
|
2157
2178
|
* Applies the following classes to the ReportBuilder.
|
|
2158
2179
|
*
|
|
@@ -2222,7 +2243,7 @@ interface ReportBuilderProps {
|
|
|
2222
2243
|
* ### Report Builder API
|
|
2223
2244
|
* @see https://docs.quillsql.com/components/report-builder
|
|
2224
2245
|
*/
|
|
2225
|
-
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,
|
|
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;
|
|
2226
2247
|
|
|
2227
2248
|
/**
|
|
2228
2249
|
* Props for the Quill ChartEditor component.
|
|
@@ -2557,49 +2578,6 @@ interface UniqueValuesByColumn {
|
|
|
2557
2578
|
[column: string]: string[];
|
|
2558
2579
|
}
|
|
2559
2580
|
|
|
2560
|
-
type SortDirection = 'asc' | 'desc' | 'ASC' | 'DESC';
|
|
2561
|
-
type ReportBuilderTable = {
|
|
2562
|
-
name: string;
|
|
2563
|
-
alias?: string;
|
|
2564
|
-
join?: JoinInfo;
|
|
2565
|
-
};
|
|
2566
|
-
declare enum JoinType {
|
|
2567
|
-
JOIN = "JOIN",
|
|
2568
|
-
INNER = "INNER JOIN",
|
|
2569
|
-
LEFT = "LEFT JOIN",
|
|
2570
|
-
RIGHT = "RIGHT JOIN",
|
|
2571
|
-
FULL = "FULL JOIN"
|
|
2572
|
-
}
|
|
2573
|
-
type JoinInfo = {
|
|
2574
|
-
type: JoinType;
|
|
2575
|
-
condition: JoinCondition;
|
|
2576
|
-
};
|
|
2577
|
-
type JoinCondition = {
|
|
2578
|
-
operator: string;
|
|
2579
|
-
left: ReportBuilderColumn;
|
|
2580
|
-
right: ReportBuilderColumn;
|
|
2581
|
-
};
|
|
2582
|
-
type ReportBuilderColumn = {
|
|
2583
|
-
field: string;
|
|
2584
|
-
table: string;
|
|
2585
|
-
alias?: string;
|
|
2586
|
-
};
|
|
2587
|
-
type ReportBuilderSort = {
|
|
2588
|
-
field: string;
|
|
2589
|
-
direction: SortDirection;
|
|
2590
|
-
};
|
|
2591
|
-
type ReportBuilderLimit = {
|
|
2592
|
-
value: number;
|
|
2593
|
-
};
|
|
2594
|
-
type ReportBuilderState = {
|
|
2595
|
-
tables: ReportBuilderTable[];
|
|
2596
|
-
columns: ReportBuilderColumn[];
|
|
2597
|
-
filterStack: FilterTreeNode[];
|
|
2598
|
-
pivot: Pivot | null;
|
|
2599
|
-
sort: ReportBuilderSort[];
|
|
2600
|
-
limit: ReportBuilderLimit | null;
|
|
2601
|
-
};
|
|
2602
|
-
|
|
2603
2581
|
type ForeignKeyMap = {
|
|
2604
2582
|
[table: string]: {
|
|
2605
2583
|
foreignTable: string;
|
|
@@ -2615,7 +2593,6 @@ type ReportBuilder = {
|
|
|
2615
2593
|
limit: ReportBuilderLimit | null;
|
|
2616
2594
|
filterStack: FilterTreeNode[];
|
|
2617
2595
|
state: ReportBuilderState;
|
|
2618
|
-
activeQuery: string;
|
|
2619
2596
|
tempReport: QuillReportInternal;
|
|
2620
2597
|
stateStack: ReportBuilderState[];
|
|
2621
2598
|
poppedStateStack: ReportBuilderState[];
|
|
@@ -3287,10 +3264,6 @@ interface SaveReportProps {
|
|
|
3287
3264
|
onSubmitCreateReport?: (report: QuillReport) => void;
|
|
3288
3265
|
/** The destination section for the report. */
|
|
3289
3266
|
destinationSection?: string;
|
|
3290
|
-
/** Whether to show table format options. */
|
|
3291
|
-
showTableFormatOptions?: boolean;
|
|
3292
|
-
/** Whether to show dashboard filter fields. */
|
|
3293
|
-
showDashboardFilterFields?: boolean;
|
|
3294
3267
|
/** A select component. */
|
|
3295
3268
|
SelectComponent?: (props: {
|
|
3296
3269
|
value: string | number | undefined | null;
|
|
@@ -3430,7 +3403,7 @@ interface SaveReportProps {
|
|
|
3430
3403
|
/** The label for the submit button. */
|
|
3431
3404
|
submitButtonLabel?: string;
|
|
3432
3405
|
}
|
|
3433
|
-
declare const SaveReport: ({ reportBuilder, isOpen, setIsOpen, isAdminEnabled, chartBuilderTitle, onSubmitEditReport, onSubmitCreateReport, destinationSection,
|
|
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;
|
|
3434
3407
|
|
|
3435
3408
|
interface ReportTableProps {
|
|
3436
3409
|
reportBuilder: ReportBuilder;
|