@quillsql/react 2.16.24 → 2.16.26

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
@@ -161,7 +161,11 @@ interface QuillPreviousQuarterInterval {
161
161
  type: 'previous_quarter';
162
162
  label?: string;
163
163
  }
164
- type QuillCustomInterval = QuillCustomRepeatingInterval | QuillCustomStaticInterval | QuillCustomRelativeInterval | QuillWeekInterval | QuillPreviousMonthInterval | QuillPreviousQuarterInterval;
164
+ interface QuillPreviousYearInterval {
165
+ type: 'previous_year';
166
+ label?: string;
167
+ }
168
+ type QuillCustomInterval = QuillCustomRepeatingInterval | QuillCustomStaticInterval | QuillCustomRelativeInterval | QuillWeekInterval | QuillPreviousMonthInterval | QuillPreviousQuarterInterval | QuillPreviousYearInterval;
165
169
 
166
170
  type DateRangePickerOption = {
167
171
  value: string;
@@ -776,7 +780,7 @@ interface QuillReportInternal extends QuillReport {
776
780
  /**
777
781
  * Props for the Quill Dashboard component.
778
782
  */
779
- interface DashboardProps {
783
+ interface DashboardLegacyProps {
780
784
  /**
781
785
  * The name of the dashboard you created in the Quill Portal.
782
786
  */
@@ -1049,13 +1053,13 @@ interface DashboardProps {
1049
1053
  * @example
1050
1054
  * ```js
1051
1055
  * // Usage without custom components
1052
- * <Dashboard />
1056
+ * <DashboardLegacy />
1053
1057
  * ```
1054
1058
  *
1055
1059
  * @example
1056
1060
  * ```js
1057
1061
  * // You can also pass your own components
1058
- * <Dashboard
1062
+ * <DashboardLegacy
1059
1063
  * name="saved_reports"
1060
1064
  * SelectComponent={MySelect}
1061
1065
  * onClickReport={(report) => navigate(`/detail/${report.id}`)}
@@ -1069,7 +1073,14 @@ interface DashboardProps {
1069
1073
  * ### API Reference
1070
1074
  * @see https://docs.quillsql.com/components/dashboard
1071
1075
  */
1072
- declare function Dashboard({ name, hidden, SelectComponent, MultiSelectComponent, ModalComponent, ButtonComponent, SecondaryButtonComponent, FilterTagComponent, PopoverComponent, TextInputComponent, EmptyDashboardComponent, DateRangePickerComponent, MetricComponent, ChartComponent, TableComponent, TemplateMetricComponent, TemplateChartComponent, TemplateTableComponent, DashboardSectionComponent, DashboardSectionContainerComponent, DashboardSectionTabsComponent, FilterContainerComponent, DashboardLoadingComponent, ErrorComponent, onClickReport, hoverActions, onChangeLoading, hideFilters, hideDateRangeFilter, hideXAxis, hideYAxis, hideCartesianGrid, comparisonLineStyle, containerStyle, className, chartContainerStyle, filters, onUserFiltersUpdated, onClickChartElement, dateBucket, additionalProcessing, templateDashboardName, pagination, }: DashboardProps): react_jsx_runtime.JSX.Element;
1076
+ declare function DashboardLegacy({ name, hidden, SelectComponent, MultiSelectComponent, ModalComponent, ButtonComponent, SecondaryButtonComponent, FilterTagComponent, PopoverComponent, TextInputComponent, EmptyDashboardComponent, DateRangePickerComponent, MetricComponent, ChartComponent, TableComponent, TemplateMetricComponent, TemplateChartComponent, TemplateTableComponent, DashboardSectionComponent, DashboardSectionContainerComponent, DashboardSectionTabsComponent, FilterContainerComponent, DashboardLoadingComponent, ErrorComponent, onClickReport, hoverActions, onChangeLoading, hideFilters, hideDateRangeFilter, hideXAxis, hideYAxis, hideCartesianGrid, comparisonLineStyle, containerStyle, className, chartContainerStyle, filters, onUserFiltersUpdated, onClickChartElement, dateBucket, additionalProcessing, templateDashboardName, pagination, }: DashboardLegacyProps): react_jsx_runtime.JSX.Element;
1077
+
1078
+ interface DashboardProps {
1079
+ name: string;
1080
+ onClickReport: (report: QuillReport) => void;
1081
+ containerStyle?: CSSProperties;
1082
+ }
1083
+ declare function Dashboard({ name, onClickReport, containerStyle, }: DashboardProps & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1073
1084
 
1074
1085
  type DashboardConfig = {
1075
1086
  dashboardId: string;
@@ -2615,12 +2626,18 @@ declare const useDashboard: (dashboardName: string, config?: {
2615
2626
  }) => {
2616
2627
  isLoading: boolean;
2617
2628
  sections: Record<string, QuillReport[]> | null;
2629
+ sectionOrder: {
2630
+ section: string;
2631
+ _id?: string;
2632
+ reportOrder: string[];
2633
+ }[];
2618
2634
  filters: DashboardFilter[];
2619
2635
  applyFilters: (filters: Array<{
2620
2636
  label: string;
2621
2637
  value: string | string[] | {
2622
2638
  startDate?: Date;
2623
2639
  endDate?: Date;
2640
+ preset?: string;
2624
2641
  };
2625
2642
  } | Filter>) => void;
2626
2643
  lastUpdated: number;
@@ -3524,4 +3541,4 @@ interface ReportTableProps {
3524
3541
  }
3525
3542
  declare const ReportTable: ({ reportBuilder, TableComponent, }: ReportTableProps) => react_jsx_runtime.JSX.Element;
3526
3543
 
3527
- export { ALL_TENANTS, AddColumns, AddFilters, AddLimit, AddPivot, AddSort, type AxisFormat, type ButtonComponentProps, Calculation, Chart, ChartEditor, type ChartEditorProps, type ChartProps, type CheckboxComponentProps, type ColorMapType, type Column$1 as Column, type ContainerComponentProps, Dashboard, type DashboardDateFilter, type DashboardFilter, DashboardFilterType, 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 PopoverComponentProps, 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, ReportTable, SINGLE_TENANT, SQLEditor, type SQLEditorProps, SaveReport, SchemaListComponent, type SelectColumnComponentProps, type SelectComponentProps, type SidebarComponentProps, type SidebarHeadingComponentProps, type SortPopoverComponentProps, StaticChart, type StaticChartProps, StringOperator, Table$1 as Table, type TableComponentProps, type TableProps, type TabsComponentProps, type TextComponentProps, type TextInputComponentProps, ThemeContext, downloadCSV, quillFormat as format, useAllReports, useAskQuill, useDashboard, useDashboardInternal, useDashboardReport, useDashboardReports, useDashboards, useExport, useMemoizedRows, useQuill, useReportBuilder, useReports, useTenants, useVirtualTables };
3544
+ export { ALL_TENANTS, AddColumns, AddFilters, AddLimit, AddPivot, AddSort, type AxisFormat, type ButtonComponentProps, Calculation, Chart, ChartEditor, type ChartEditorProps, type ChartProps, type CheckboxComponentProps, type ColorMapType, type Column$1 as Column, 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 PopoverComponentProps, 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, ReportTable, SINGLE_TENANT, SQLEditor, type SQLEditorProps, SaveReport, SchemaListComponent, type SelectColumnComponentProps, type SelectComponentProps, type SidebarComponentProps, type SidebarHeadingComponentProps, type SortPopoverComponentProps, StaticChart, type StaticChartProps, StringOperator, Table$1 as Table, type TableComponentProps, type TableProps, type TabsComponentProps, type TextComponentProps, type TextInputComponentProps, ThemeContext, downloadCSV, quillFormat as format, useAllReports, useAskQuill, useDashboard, useDashboardInternal, useDashboardReport, useDashboardReports, useDashboards, useExport, useMemoizedRows, useQuill, useReportBuilder, useReports, useTenants, useVirtualTables };
package/dist/index.d.ts CHANGED
@@ -161,7 +161,11 @@ interface QuillPreviousQuarterInterval {
161
161
  type: 'previous_quarter';
162
162
  label?: string;
163
163
  }
164
- type QuillCustomInterval = QuillCustomRepeatingInterval | QuillCustomStaticInterval | QuillCustomRelativeInterval | QuillWeekInterval | QuillPreviousMonthInterval | QuillPreviousQuarterInterval;
164
+ interface QuillPreviousYearInterval {
165
+ type: 'previous_year';
166
+ label?: string;
167
+ }
168
+ type QuillCustomInterval = QuillCustomRepeatingInterval | QuillCustomStaticInterval | QuillCustomRelativeInterval | QuillWeekInterval | QuillPreviousMonthInterval | QuillPreviousQuarterInterval | QuillPreviousYearInterval;
165
169
 
166
170
  type DateRangePickerOption = {
167
171
  value: string;
@@ -776,7 +780,7 @@ interface QuillReportInternal extends QuillReport {
776
780
  /**
777
781
  * Props for the Quill Dashboard component.
778
782
  */
779
- interface DashboardProps {
783
+ interface DashboardLegacyProps {
780
784
  /**
781
785
  * The name of the dashboard you created in the Quill Portal.
782
786
  */
@@ -1049,13 +1053,13 @@ interface DashboardProps {
1049
1053
  * @example
1050
1054
  * ```js
1051
1055
  * // Usage without custom components
1052
- * <Dashboard />
1056
+ * <DashboardLegacy />
1053
1057
  * ```
1054
1058
  *
1055
1059
  * @example
1056
1060
  * ```js
1057
1061
  * // You can also pass your own components
1058
- * <Dashboard
1062
+ * <DashboardLegacy
1059
1063
  * name="saved_reports"
1060
1064
  * SelectComponent={MySelect}
1061
1065
  * onClickReport={(report) => navigate(`/detail/${report.id}`)}
@@ -1069,7 +1073,14 @@ interface DashboardProps {
1069
1073
  * ### API Reference
1070
1074
  * @see https://docs.quillsql.com/components/dashboard
1071
1075
  */
1072
- declare function Dashboard({ name, hidden, SelectComponent, MultiSelectComponent, ModalComponent, ButtonComponent, SecondaryButtonComponent, FilterTagComponent, PopoverComponent, TextInputComponent, EmptyDashboardComponent, DateRangePickerComponent, MetricComponent, ChartComponent, TableComponent, TemplateMetricComponent, TemplateChartComponent, TemplateTableComponent, DashboardSectionComponent, DashboardSectionContainerComponent, DashboardSectionTabsComponent, FilterContainerComponent, DashboardLoadingComponent, ErrorComponent, onClickReport, hoverActions, onChangeLoading, hideFilters, hideDateRangeFilter, hideXAxis, hideYAxis, hideCartesianGrid, comparisonLineStyle, containerStyle, className, chartContainerStyle, filters, onUserFiltersUpdated, onClickChartElement, dateBucket, additionalProcessing, templateDashboardName, pagination, }: DashboardProps): react_jsx_runtime.JSX.Element;
1076
+ declare function DashboardLegacy({ name, hidden, SelectComponent, MultiSelectComponent, ModalComponent, ButtonComponent, SecondaryButtonComponent, FilterTagComponent, PopoverComponent, TextInputComponent, EmptyDashboardComponent, DateRangePickerComponent, MetricComponent, ChartComponent, TableComponent, TemplateMetricComponent, TemplateChartComponent, TemplateTableComponent, DashboardSectionComponent, DashboardSectionContainerComponent, DashboardSectionTabsComponent, FilterContainerComponent, DashboardLoadingComponent, ErrorComponent, onClickReport, hoverActions, onChangeLoading, hideFilters, hideDateRangeFilter, hideXAxis, hideYAxis, hideCartesianGrid, comparisonLineStyle, containerStyle, className, chartContainerStyle, filters, onUserFiltersUpdated, onClickChartElement, dateBucket, additionalProcessing, templateDashboardName, pagination, }: DashboardLegacyProps): react_jsx_runtime.JSX.Element;
1077
+
1078
+ interface DashboardProps {
1079
+ name: string;
1080
+ onClickReport: (report: QuillReport) => void;
1081
+ containerStyle?: CSSProperties;
1082
+ }
1083
+ declare function Dashboard({ name, onClickReport, containerStyle, }: DashboardProps & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1073
1084
 
1074
1085
  type DashboardConfig = {
1075
1086
  dashboardId: string;
@@ -2615,12 +2626,18 @@ declare const useDashboard: (dashboardName: string, config?: {
2615
2626
  }) => {
2616
2627
  isLoading: boolean;
2617
2628
  sections: Record<string, QuillReport[]> | null;
2629
+ sectionOrder: {
2630
+ section: string;
2631
+ _id?: string;
2632
+ reportOrder: string[];
2633
+ }[];
2618
2634
  filters: DashboardFilter[];
2619
2635
  applyFilters: (filters: Array<{
2620
2636
  label: string;
2621
2637
  value: string | string[] | {
2622
2638
  startDate?: Date;
2623
2639
  endDate?: Date;
2640
+ preset?: string;
2624
2641
  };
2625
2642
  } | Filter>) => void;
2626
2643
  lastUpdated: number;
@@ -3524,4 +3541,4 @@ interface ReportTableProps {
3524
3541
  }
3525
3542
  declare const ReportTable: ({ reportBuilder, TableComponent, }: ReportTableProps) => react_jsx_runtime.JSX.Element;
3526
3543
 
3527
- export { ALL_TENANTS, AddColumns, AddFilters, AddLimit, AddPivot, AddSort, type AxisFormat, type ButtonComponentProps, Calculation, Chart, ChartEditor, type ChartEditorProps, type ChartProps, type CheckboxComponentProps, type ColorMapType, type Column$1 as Column, type ContainerComponentProps, Dashboard, type DashboardDateFilter, type DashboardFilter, DashboardFilterType, 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 PopoverComponentProps, 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, ReportTable, SINGLE_TENANT, SQLEditor, type SQLEditorProps, SaveReport, SchemaListComponent, type SelectColumnComponentProps, type SelectComponentProps, type SidebarComponentProps, type SidebarHeadingComponentProps, type SortPopoverComponentProps, StaticChart, type StaticChartProps, StringOperator, Table$1 as Table, type TableComponentProps, type TableProps, type TabsComponentProps, type TextComponentProps, type TextInputComponentProps, ThemeContext, downloadCSV, quillFormat as format, useAllReports, useAskQuill, useDashboard, useDashboardInternal, useDashboardReport, useDashboardReports, useDashboards, useExport, useMemoizedRows, useQuill, useReportBuilder, useReports, useTenants, useVirtualTables };
3544
+ export { ALL_TENANTS, AddColumns, AddFilters, AddLimit, AddPivot, AddSort, type AxisFormat, type ButtonComponentProps, Calculation, Chart, ChartEditor, type ChartEditorProps, type ChartProps, type CheckboxComponentProps, type ColorMapType, type Column$1 as Column, 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 PopoverComponentProps, 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, ReportTable, SINGLE_TENANT, SQLEditor, type SQLEditorProps, SaveReport, SchemaListComponent, type SelectColumnComponentProps, type SelectComponentProps, type SidebarComponentProps, type SidebarHeadingComponentProps, type SortPopoverComponentProps, StaticChart, type StaticChartProps, StringOperator, Table$1 as Table, type TableComponentProps, type TableProps, type TabsComponentProps, type TextComponentProps, type TextInputComponentProps, ThemeContext, downloadCSV, quillFormat as format, useAllReports, useAskQuill, useDashboard, useDashboardInternal, useDashboardReport, useDashboardReports, useDashboards, useExport, useMemoizedRows, useQuill, useReportBuilder, useReports, useTenants, useVirtualTables };