@malloydata/malloy-explorer 0.0.257-dev250410160631 → 0.0.257-dev250417005958
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/@flowtypes/components/QueryPanel/QueryActionBar.flow.js +0 -3
- package/@flowtypes/components/QueryPanel/QueryEditor.flow.js +3 -3
- package/@flowtypes/components/ResultPanel/ResultPanel.flow.js +6 -1
- package/@flowtypes/components/ResultPanel/SubmittedQuery.flow.js +11 -2
- package/@flowtypes/components/SourcePanel/SourcePanel.flow.js +3 -9
- package/babel.config.mjs +1 -0
- package/dist/cjs/index.cjs +6437 -5609
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +6439 -5611
- package/dist/esm/index.js.map +1 -1
- package/dist/malloy-explorer.css +410 -392
- package/dist/types/components/QueryPanel/AddMenu/AddAggregate.d.ts +4 -3
- package/dist/types/components/QueryPanel/AddMenu/AddEmptyNest.d.ts +4 -3
- package/dist/types/components/QueryPanel/AddMenu/AddFieldItem.d.ts +6 -5
- package/dist/types/components/QueryPanel/AddMenu/AddGroupBy.d.ts +4 -3
- package/dist/types/components/QueryPanel/AddMenu/AddLimit.d.ts +4 -3
- package/dist/types/components/QueryPanel/AddMenu/AddMenu.d.ts +3 -2
- package/dist/types/components/QueryPanel/AddMenu/AddOrderBy.d.ts +4 -3
- package/dist/types/components/QueryPanel/AddMenu/AddView.d.ts +4 -4
- package/dist/types/components/QueryPanel/AddMenu/AddWhere.d.ts +4 -3
- package/dist/types/components/QueryPanel/AddMenu/FieldList.d.ts +6 -5
- package/dist/types/components/QueryPanel/AddMenu/FieldMenu.d.ts +6 -5
- package/dist/types/components/QueryPanel/AddMenu/ValueList.d.ts +4 -1
- package/dist/types/components/QueryPanel/Operations.d.ts +3 -1
- package/dist/types/components/QueryPanel/QueryActionBar.d.ts +1 -4
- package/dist/types/components/QueryPanel/QueryEditor.d.ts +1 -1
- package/dist/types/components/QueryPanel/QueryPanel.d.ts +1 -5
- package/dist/types/components/QueryPanel/ViewDefinition.d.ts +3 -1
- package/dist/types/components/QueryPanel/operations/AggregateOperations.d.ts +4 -3
- package/dist/types/components/QueryPanel/operations/FilterOperations.d.ts +6 -0
- package/dist/types/components/QueryPanel/operations/GroupByOperations.d.ts +4 -3
- package/dist/types/components/QueryPanel/operations/LimitOperation.d.ts +1 -2
- package/dist/types/components/QueryPanel/operations/NestOperation.d.ts +1 -2
- package/dist/types/components/QueryPanel/operations/OperationActionTitle.d.ts +4 -3
- package/dist/types/components/QueryPanel/operations/OrderByOperations.d.ts +1 -2
- package/dist/types/components/ResultPanel/DebugPane.d.ts +11 -0
- package/dist/types/components/ResultPanel/ResultPanel.d.ts +2 -0
- package/dist/types/components/ResultPanel/SubmittedQuery.d.ts +13 -2
- package/dist/types/components/SourcePanel/AddFieldDropdownMenu.d.ts +7 -8
- package/dist/types/components/SourcePanel/FieldTokenWithActions.d.ts +1 -1
- package/dist/types/components/SourcePanel/NestFieldDropdownMenu.d.ts +3 -3
- package/dist/types/components/SourcePanel/OperationDropdownMenuItems.d.ts +3 -3
- package/dist/types/components/SourcePanel/SourcePanel.d.ts +1 -7
- package/dist/types/components/SourcePanel/hooks/useOperations.d.ts +2 -2
- package/dist/types/components/filters/BooleanFilterCore.d.ts +7 -0
- package/dist/types/components/filters/{DateTimeFilterToken.d.ts → DateTimeFilterCore.d.ts} +3 -4
- package/dist/types/components/filters/FilterDialog.d.ts +10 -0
- package/dist/types/components/filters/{NumberFilterToken.d.ts → NumberFilterCore.d.ts} +2 -4
- package/dist/types/components/filters/PillInput.d.ts +1 -1
- package/dist/types/components/filters/StringFilterCore.d.ts +14 -0
- package/dist/types/components/filters/hooks/useFilterModal.d.ts +24 -0
- package/dist/types/components/filters/hooks/useFilterPopup.d.ts +8 -0
- package/dist/types/components/filters/styles.d.ts +22 -0
- package/dist/types/components/primitives/Button.d.ts +6 -1
- package/dist/types/components/primitives/CollapsibleListItem.d.ts +5 -1
- package/dist/types/components/primitives/DropdownMenu.d.ts +8 -3
- package/dist/types/components/primitives/HoverText.d.ts +12 -0
- package/dist/types/components/primitives/colors.stylex.d.ts +1 -0
- package/dist/types/components/primitives/styles.d.ts +8 -0
- package/dist/types/components/utils/annotations.d.ts +2 -0
- package/dist/types/components/utils/fields.d.ts +6 -0
- package/dist/types/components/utils/segment.d.ts +2 -0
- package/dist/types/contexts/QueryEditorContext.d.ts +2 -0
- package/package.json +9 -9
- package/dist/types/components/QueryPanel/operations/WhereOperations.d.ts +0 -7
- package/dist/types/components/filters/BooleanFilterToken.d.ts +0 -11
- package/dist/types/components/filters/StringFilterToken.d.ts +0 -14
- package/dist/types/types/error.d.ts +0 -8
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ASTQuery
|
|
1
|
+
import { ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
2
3
|
export interface AddAggregateProps {
|
|
3
4
|
rootQuery: ASTQuery;
|
|
4
|
-
|
|
5
|
+
view: ViewParent;
|
|
5
6
|
}
|
|
6
|
-
export declare function AddAggregate({ rootQuery,
|
|
7
|
+
export declare function AddAggregate({ rootQuery, view }: AddAggregateProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ASTQuery
|
|
1
|
+
import { ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
2
3
|
export interface AddEmptyNestProps {
|
|
3
4
|
rootQuery: ASTQuery;
|
|
4
|
-
|
|
5
|
+
view: ViewParent;
|
|
5
6
|
}
|
|
6
|
-
export declare function AddEmptyNest({ rootQuery,
|
|
7
|
+
export declare function AddEmptyNest({ rootQuery, view }: AddEmptyNestProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
|
-
import { ASTSegmentViewDefinition } from '@malloydata/malloy-query-builder';
|
|
3
3
|
import { FieldInfo } from '@malloydata/malloy-interfaces';
|
|
4
4
|
import { IconType } from '../../primitives';
|
|
5
|
+
import { ViewParent } from '../../utils/fields';
|
|
5
6
|
export interface AddGroupByProps {
|
|
6
7
|
label: string;
|
|
7
8
|
icon: IconType;
|
|
8
|
-
|
|
9
|
+
view: ViewParent;
|
|
9
10
|
fields: FieldInfo[];
|
|
10
|
-
onClick(field: FieldInfo, path: string[]): void;
|
|
11
|
+
onClick(field: FieldInfo, path: string[], event: React.MouseEvent): void;
|
|
11
12
|
types: Array<'dimension' | 'measure' | 'view'>;
|
|
12
|
-
filter?: (
|
|
13
|
+
filter?: (view: ViewParent, field: Malloy.FieldInfo, path: string[]) => boolean;
|
|
13
14
|
disabledMessage?: string;
|
|
14
15
|
}
|
|
15
|
-
export declare function AddFieldItem({
|
|
16
|
+
export declare function AddFieldItem({ view, fields, icon, label, onClick, types, filter, disabledMessage, }: AddGroupByProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ASTQuery
|
|
1
|
+
import { ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
2
3
|
export interface AddGroupByProps {
|
|
3
4
|
rootQuery: ASTQuery;
|
|
4
|
-
|
|
5
|
+
view: ViewParent;
|
|
5
6
|
}
|
|
6
|
-
export declare function AddGroupBy({ rootQuery,
|
|
7
|
+
export declare function AddGroupBy({ rootQuery, view }: AddGroupByProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ASTQuery
|
|
1
|
+
import { ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
2
3
|
export interface AddLimitProps {
|
|
3
4
|
rootQuery: ASTQuery;
|
|
4
|
-
|
|
5
|
+
view: ViewParent;
|
|
5
6
|
}
|
|
6
|
-
export declare function AddLimit({ rootQuery,
|
|
7
|
+
export declare function AddLimit({ rootQuery, view }: AddLimitProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
2
3
|
export interface AddMenuProps {
|
|
3
4
|
rootQuery: ASTQuery;
|
|
4
|
-
view:
|
|
5
|
+
view: ViewParent;
|
|
5
6
|
}
|
|
6
7
|
export declare function AddMenu({ rootQuery, view }: AddMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ASTQuery
|
|
1
|
+
import { ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
2
3
|
export interface AddEmptyNestProps {
|
|
3
4
|
rootQuery: ASTQuery;
|
|
4
|
-
|
|
5
|
+
view: ViewParent;
|
|
5
6
|
}
|
|
6
|
-
export declare function AddOrderBy({ rootQuery,
|
|
7
|
+
export declare function AddOrderBy({ rootQuery, view }: AddEmptyNestProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ASTQuery
|
|
1
|
+
import { ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
2
3
|
export interface AddViewProps {
|
|
3
4
|
rootQuery: ASTQuery;
|
|
4
|
-
view:
|
|
5
|
-
segment: ASTSegmentViewDefinition;
|
|
5
|
+
view: ViewParent;
|
|
6
6
|
}
|
|
7
|
-
export declare function AddView({ rootQuery, view
|
|
7
|
+
export declare function AddView({ rootQuery, view }: AddViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ASTQuery
|
|
1
|
+
import { ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
2
3
|
export interface AddWhereProps {
|
|
3
4
|
rootQuery: ASTQuery;
|
|
4
|
-
|
|
5
|
+
view: ViewParent;
|
|
5
6
|
}
|
|
6
|
-
export declare function AddWhere({
|
|
7
|
+
export declare function AddWhere({ view }: AddWhereProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
|
-
import {
|
|
3
|
+
import { ViewParent } from '../../utils/fields';
|
|
3
4
|
export interface FieldListProps {
|
|
4
|
-
|
|
5
|
+
view: ViewParent;
|
|
5
6
|
fields: Malloy.FieldInfo[];
|
|
6
7
|
search: string;
|
|
7
|
-
onClick: (field: Malloy.FieldInfo, path: string[]) => void;
|
|
8
|
+
onClick: (field: Malloy.FieldInfo, path: string[], event: React.MouseEvent) => void;
|
|
8
9
|
types: Array<'dimension' | 'measure' | 'view'>;
|
|
9
|
-
filter?: (
|
|
10
|
+
filter?: (view: ViewParent, field: Malloy.FieldInfo, path: string[]) => boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare function FieldList({
|
|
12
|
+
export declare function FieldList({ view, fields, onClick, search, types, filter, }: FieldListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
|
-
import {
|
|
3
|
+
import { ViewParent } from '../../utils/fields';
|
|
3
4
|
export interface FieldMenuProps {
|
|
4
|
-
|
|
5
|
+
view: ViewParent;
|
|
5
6
|
fields: Array<Malloy.FieldInfo>;
|
|
6
7
|
types: Array<'dimension' | 'measure' | 'view'>;
|
|
7
|
-
filter?: (
|
|
8
|
-
onClick: (field: Malloy.FieldInfo, path: string[]) => void;
|
|
8
|
+
filter?: (view: ViewParent, field: Malloy.FieldInfo, path: string[]) => boolean;
|
|
9
|
+
onClick: (field: Malloy.FieldInfo, path: string[], event: React.MouseEvent) => void;
|
|
9
10
|
}
|
|
10
|
-
export declare function FieldMenu({
|
|
11
|
+
export declare function FieldMenu({ view, fields, types, filter, onClick, }: FieldMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { SearchIndexResult } from './hooks/useSearch';
|
|
2
3
|
export interface FieldListProps {
|
|
3
4
|
search: string;
|
|
4
5
|
onClick: (value: SearchIndexResult) => void;
|
|
6
|
+
fieldPath?: string;
|
|
7
|
+
ref?: React.RefObject<HTMLDivElement | null>;
|
|
5
8
|
}
|
|
6
|
-
export declare function ValueList({ onClick, search }: FieldListProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function ValueList({ onClick, search, fieldPath, ref }: FieldListProps): import("react/jsx-runtime").JSX.Element;
|
|
7
10
|
export interface ValueProps {
|
|
8
11
|
value: SearchIndexResult;
|
|
9
12
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ASTQuery, ASTViewDefinition } from '@malloydata/malloy-query-builder';
|
|
2
|
+
import { ViewParent } from '../utils/fields';
|
|
2
3
|
export interface OperationsProps {
|
|
3
4
|
rootQuery: ASTQuery;
|
|
5
|
+
view: ViewParent;
|
|
4
6
|
viewDef: ASTViewDefinition;
|
|
5
7
|
}
|
|
6
|
-
export declare function Operations({ rootQuery, viewDef }: OperationsProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function Operations({ rootQuery, view, viewDef }: OperationsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -3,9 +3,6 @@ import * as Malloy from '@malloydata/malloy-interfaces';
|
|
|
3
3
|
* Source
|
|
4
4
|
*/
|
|
5
5
|
export interface QueryActionBarProps {
|
|
6
|
-
source: Malloy.SourceInfo;
|
|
7
|
-
query?: Malloy.Query;
|
|
8
|
-
clearQuery: () => void;
|
|
9
6
|
runQuery: (source: Malloy.SourceInfo, query: Malloy.Query) => void;
|
|
10
7
|
}
|
|
11
|
-
export declare function QueryActionBar({
|
|
8
|
+
export declare function QueryActionBar({ runQuery }: QueryActionBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,4 +12,4 @@ export interface QueryEditorProps {
|
|
|
12
12
|
* @param query A query to be edited. Omit for a new query.
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
|
-
export declare function QueryEditor(
|
|
15
|
+
export declare function QueryEditor(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
2
|
interface QueryPanelProps {
|
|
3
|
-
source: Malloy.SourceInfo;
|
|
4
|
-
query?: Malloy.Query;
|
|
5
|
-
showSource?: boolean;
|
|
6
|
-
setQuery: (query: Malloy.Query | undefined) => void;
|
|
7
3
|
runQuery: (source: Malloy.SourceInfo, query: Malloy.Query) => void;
|
|
8
4
|
}
|
|
9
|
-
export default function QueryPanel({
|
|
5
|
+
export default function QueryPanel({ runQuery }: QueryPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
10
6
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ASTQuery, ASTViewDefinition } from '@malloydata/malloy-query-builder';
|
|
2
|
+
import { ViewParent } from '../utils/fields';
|
|
2
3
|
export interface ViewProps {
|
|
3
4
|
rootQuery: ASTQuery;
|
|
5
|
+
view: ViewParent;
|
|
4
6
|
viewDef: ASTViewDefinition;
|
|
5
7
|
}
|
|
6
|
-
export declare function ViewDefinition({ rootQuery, viewDef }: ViewProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function ViewDefinition({ rootQuery, view, viewDef }: ViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ASTAggregateViewOperation, ASTQuery
|
|
1
|
+
import { ASTAggregateViewOperation, ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
2
3
|
export interface AggregateOperationsProps {
|
|
3
4
|
rootQuery: ASTQuery;
|
|
4
|
-
|
|
5
|
+
view: ViewParent;
|
|
5
6
|
aggregates: ASTAggregateViewOperation[];
|
|
6
7
|
}
|
|
7
|
-
export declare function AggregateOperations({ rootQuery,
|
|
8
|
+
export declare function AggregateOperations({ rootQuery, view, aggregates, }: AggregateOperationsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ASTQuery, ASTWhereViewOperation, ASTHavingViewOperation } from '@malloydata/malloy-query-builder';
|
|
2
|
+
export interface FilterOperationsProps {
|
|
3
|
+
rootQuery: ASTQuery;
|
|
4
|
+
filters: Array<ASTWhereViewOperation | ASTHavingViewOperation>;
|
|
5
|
+
}
|
|
6
|
+
export declare function FilterOperations({ rootQuery, filters }: FilterOperationsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ASTGroupByViewOperation, ASTQuery
|
|
1
|
+
import { ASTGroupByViewOperation, ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
2
3
|
export interface GroupByOperationsProps {
|
|
3
4
|
rootQuery: ASTQuery;
|
|
4
|
-
|
|
5
|
+
view: ViewParent;
|
|
5
6
|
groupBys: ASTGroupByViewOperation[];
|
|
6
7
|
}
|
|
7
|
-
export declare function GroupByOperations({ rootQuery,
|
|
8
|
+
export declare function GroupByOperations({ rootQuery, view, groupBys, }: GroupByOperationsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ASTLimitViewOperation, ASTQuery
|
|
1
|
+
import { ASTLimitViewOperation, ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
2
|
export interface LimitOperationProps {
|
|
3
3
|
rootQuery: ASTQuery;
|
|
4
|
-
segment: ASTSegmentViewDefinition;
|
|
5
4
|
limit: ASTLimitViewOperation | undefined;
|
|
6
5
|
}
|
|
7
6
|
export declare function LimitOperation({ rootQuery, limit }: LimitOperationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ASTNestViewOperation, ASTQuery
|
|
1
|
+
import { ASTNestViewOperation, ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
2
|
export interface NestOperationsProps {
|
|
3
3
|
rootQuery: ASTQuery;
|
|
4
|
-
segment: ASTSegmentViewDefinition;
|
|
5
4
|
nests: ASTNestViewOperation[];
|
|
6
5
|
}
|
|
7
6
|
export declare function NestOperations({ rootQuery, nests }: NestOperationsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
|
-
import { ASTQuery
|
|
2
|
+
import { ASTQuery } from '@malloydata/malloy-query-builder';
|
|
3
|
+
import { ViewParent } from '../../utils/fields';
|
|
3
4
|
export interface OperationActionTitleProps {
|
|
4
5
|
rootQuery: ASTQuery;
|
|
5
|
-
|
|
6
|
+
view: ViewParent;
|
|
6
7
|
title: string;
|
|
7
8
|
actionTitle: string;
|
|
8
9
|
fields: Malloy.FieldInfo[];
|
|
9
10
|
types: Array<'dimension' | 'measure' | 'view'>;
|
|
10
11
|
onClick: (field: Malloy.FieldInfo, path: string[]) => void;
|
|
11
12
|
}
|
|
12
|
-
export declare function OperationActionTitle({ actionTitle,
|
|
13
|
+
export declare function OperationActionTitle({ actionTitle, view, fields, title, types, onClick, }: OperationActionTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ASTOrderByViewOperation, ASTQuery
|
|
1
|
+
import { ASTOrderByViewOperation, ASTQuery } from '@malloydata/malloy-query-builder';
|
|
2
2
|
export interface OrderByOperationsProps {
|
|
3
3
|
rootQuery: ASTQuery;
|
|
4
|
-
segment: ASTSegmentViewDefinition;
|
|
5
4
|
orderBys: ASTOrderByViewOperation[];
|
|
6
5
|
}
|
|
7
6
|
export declare function OrderByOperations({ rootQuery, orderBys, }: OrderByOperationsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
|
+
export type DebugOptions = {
|
|
3
|
+
debuggers: string[];
|
|
4
|
+
onDebugQuery: (query: Malloy.Query, selectedDebugger: string) => void;
|
|
5
|
+
};
|
|
6
|
+
interface DebugPaneProps {
|
|
7
|
+
query: Malloy.Query;
|
|
8
|
+
debug?: DebugOptions;
|
|
9
|
+
}
|
|
10
|
+
export default function DebugPane({ query, debug }: DebugPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
2
|
import { SubmittedQuery } from './SubmittedQuery';
|
|
3
|
+
import { DebugOptions } from './DebugPane';
|
|
3
4
|
type ResultPanelOptions = {
|
|
4
5
|
showRawQuery: boolean;
|
|
6
|
+
debugOptions?: DebugOptions;
|
|
5
7
|
};
|
|
6
8
|
export interface ResultPanelProps {
|
|
7
9
|
source: Malloy.SourceInfo;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
|
-
import { ExplorerError } from '../../types/error';
|
|
3
2
|
export declare const EXECUTION_STATES: {
|
|
4
3
|
compiling: string;
|
|
5
4
|
running: string;
|
|
@@ -22,7 +21,19 @@ export type RunStats = {
|
|
|
22
21
|
queryId: string;
|
|
23
22
|
};
|
|
24
23
|
export type QueryResponse = {
|
|
25
|
-
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated use 'messages'
|
|
26
|
+
*/
|
|
27
|
+
error?: Message;
|
|
26
28
|
result?: Malloy.Result;
|
|
27
29
|
runStats?: RunStats;
|
|
30
|
+
messages?: Array<Message>;
|
|
31
|
+
};
|
|
32
|
+
export type SeverityLevel = 'INFO' | 'DEBUG' | 'WARN' | 'ERROR' | 'FATAL';
|
|
33
|
+
export type Message = {
|
|
34
|
+
severity: SeverityLevel;
|
|
35
|
+
title: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
content?: string;
|
|
38
|
+
customRenderer?: React.ReactNode;
|
|
28
39
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { ASTSegmentViewDefinition } from '@malloydata/malloy-query-builder';
|
|
1
|
+
import React from 'react';
|
|
3
2
|
import { FieldInfo } from '@malloydata/malloy-interfaces';
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { DropdownMenu } from '../primitives';
|
|
4
|
+
import { ViewParent } from '../utils/fields';
|
|
5
|
+
type DropdownMenuProps = React.ComponentProps<typeof DropdownMenu>;
|
|
6
|
+
interface AddFieldDropdownMenuProps extends Omit<DropdownMenuProps, 'children'> {
|
|
7
|
+
view: ViewParent;
|
|
6
8
|
field: FieldInfo;
|
|
7
9
|
path: string[];
|
|
8
|
-
trigger: React.ReactElement;
|
|
9
|
-
onOpenChange: (open: boolean) => void;
|
|
10
|
-
tooltip?: ReactElement;
|
|
11
10
|
}
|
|
12
|
-
export declare function AddFieldDropdownMenu({
|
|
11
|
+
export declare function AddFieldDropdownMenu({ view, field, path, ...props }: AddFieldDropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export {};
|
|
@@ -3,5 +3,5 @@ interface FieldTokenWithActionsProps {
|
|
|
3
3
|
field: Malloy.FieldInfo;
|
|
4
4
|
path: string[];
|
|
5
5
|
}
|
|
6
|
-
export declare function FieldTokenWithActions({ field, path, }: FieldTokenWithActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function FieldTokenWithActions({ field, path, }: FieldTokenWithActionsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
7
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ASTSegmentViewDefinition } from '@malloydata/malloy-query-builder';
|
|
3
2
|
import { FieldInfo } from '@malloydata/malloy-interfaces';
|
|
3
|
+
import { ViewParent } from '../utils/fields';
|
|
4
4
|
interface NestFieldDropdownMenuProps {
|
|
5
|
-
|
|
5
|
+
view: ViewParent;
|
|
6
6
|
field: FieldInfo;
|
|
7
7
|
path: string[];
|
|
8
8
|
trigger: React.ReactElement;
|
|
9
9
|
onOpenChange: (open: boolean) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare function NestFieldDropdownMenu({
|
|
11
|
+
export declare function NestFieldDropdownMenu({ view, field, path, trigger, onOpenChange, }: NestFieldDropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ASTSegmentViewDefinition } from '@malloydata/malloy-query-builder';
|
|
2
1
|
import { FieldInfo } from '@malloydata/malloy-interfaces';
|
|
2
|
+
import { ViewParent } from '../utils/fields';
|
|
3
3
|
interface OperationDropdownMenuItemsProps {
|
|
4
|
-
|
|
4
|
+
view: ViewParent;
|
|
5
5
|
field: FieldInfo;
|
|
6
6
|
path: string[];
|
|
7
7
|
withEmptyNest?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare function OperationDropdownMenuItems({
|
|
9
|
+
export declare function OperationDropdownMenuItems({ view, field, path, withEmptyNest, }: OperationDropdownMenuItemsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export interface SourcePanelProps {
|
|
3
|
-
source: Malloy.SourceInfo;
|
|
4
|
-
query?: Malloy.Query;
|
|
5
|
-
setQuery: (query: Malloy.Query | undefined) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function SourcePanel({ source }: SourcePanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
export declare function SourcePanel(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as QueryBuilder from '@malloydata/malloy-query-builder';
|
|
2
1
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
3
|
-
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
3
|
+
export declare function useOperations(view: ViewParent, field: Malloy.FieldInfo, path: string[]): {
|
|
4
4
|
isGroupByAllowed: boolean;
|
|
5
5
|
isAggregateAllowed: boolean;
|
|
6
6
|
isFilterAllowed: boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BooleanFilter } from '@malloydata/malloy-filter';
|
|
2
|
+
export type BooleanFilterType = 'is_true' | 'is_false' | 'is_null' | 'is_not_null' | 'is_false_or_null';
|
|
3
|
+
export interface BooleanFilterDialogProps {
|
|
4
|
+
filter: BooleanFilter;
|
|
5
|
+
setFilter: (filter: BooleanFilter) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function BooleanFilterCore({ filter, setFilter, }: BooleanFilterDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
3
2
|
import { TemporalFilter } from '@malloydata/malloy-filter';
|
|
4
3
|
type DateTimeFilterType = 'is_equal_to' | 'is_before' | 'is_after' | 'is_between' | 'is_null' | 'is_not_null';
|
|
5
|
-
export interface
|
|
6
|
-
fieldInfo: Malloy.FieldInfoWithDimension | Malloy.FieldInfoWithMeasure;
|
|
4
|
+
export interface DateTimeFilterCoreProps {
|
|
7
5
|
filter: TemporalFilter | null;
|
|
8
6
|
setFilter: (filter: TemporalFilter) => void;
|
|
7
|
+
isDateTime: boolean;
|
|
9
8
|
}
|
|
10
|
-
export declare const
|
|
9
|
+
export declare const DateTimeFilterCore: React.FC<DateTimeFilterCoreProps>;
|
|
11
10
|
export declare function dateTimeFilterChangeType(filter: TemporalFilter, type: DateTimeFilterType): TemporalFilter;
|
|
12
11
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
|
+
import { ParsedFilter } from '@malloydata/malloy-query-builder';
|
|
3
|
+
export interface FilterDialogProps {
|
|
4
|
+
fieldInfo: Malloy.FieldInfoWithDimension | Malloy.FieldInfoWithMeasure;
|
|
5
|
+
path: string[];
|
|
6
|
+
filter: ParsedFilter;
|
|
7
|
+
setFilter: (filter: ParsedFilter) => void;
|
|
8
|
+
setOpen: (open: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function FilterDialog({ fieldInfo, path, filter, setFilter, setOpen, }: FilterDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
3
2
|
import { Null, NumberCondition, NumberFilter } from '@malloydata/malloy-filter';
|
|
4
3
|
type NumberFilterType = 'is_equal_to' | 'is_greater_than' | 'is_less_than' | 'is_greater_than_or_equal_to' | 'is_less_than_or_equal_to' | 'is_null' | 'is_not_equal_to' | 'is_not_null';
|
|
5
4
|
type BasicNumberFilter = NumberCondition | Null;
|
|
6
|
-
export interface
|
|
7
|
-
fieldInfo: Malloy.FieldInfoWithDimension | Malloy.FieldInfoWithMeasure;
|
|
5
|
+
export interface NumberFilterCoreProps {
|
|
8
6
|
filter: NumberFilter | null;
|
|
9
7
|
setFilter: (filter: NumberFilter) => void;
|
|
10
8
|
}
|
|
11
|
-
export declare const
|
|
9
|
+
export declare const NumberFilterCore: React.FC<NumberFilterCoreProps>;
|
|
12
10
|
export declare function makeFilterWithNewType(filter: NumberFilter, type: NumberFilterType): BasicNumberFilter;
|
|
13
11
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
3
|
+
import { Null, StringCondition, StringEmpty, StringMatch } from '@malloydata/malloy-filter';
|
|
4
|
+
export type BasicStringFilter = StringCondition | StringMatch | Null | StringEmpty;
|
|
5
|
+
type StringFilterType = 'is_equal_to' | 'starts_with' | 'ends_with' | 'contains' | 'matches' | 'is_blank' | 'is_null' | 'is_not_equal_to' | 'does_not_start_with' | 'does_not_end_with' | 'does_not_contain' | 'does_not_match' | 'is_not_blank' | 'is_not_null';
|
|
6
|
+
export interface StringFilterCoreProps {
|
|
7
|
+
filter: BasicStringFilter | null;
|
|
8
|
+
setFilter: (filter: BasicStringFilter) => void;
|
|
9
|
+
field: Malloy.FieldInfo;
|
|
10
|
+
path: string[];
|
|
11
|
+
}
|
|
12
|
+
export declare const StringFilterCore: React.FC<StringFilterCoreProps>;
|
|
13
|
+
export declare function stringFilterChangeType(filter: BasicStringFilter, type: StringFilterType): BasicStringFilter;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
3
|
+
import { ASTQuery, ParsedFilter } from '@malloydata/malloy-query-builder';
|
|
4
|
+
import { ViewParent } from '../../utils/fields';
|
|
5
|
+
export interface OpenFilterModalParams {
|
|
6
|
+
view: ViewParent;
|
|
7
|
+
fieldInfo: Malloy.FieldInfoWithDimension | Malloy.FieldInfoWithMeasure;
|
|
8
|
+
path: string[];
|
|
9
|
+
filter?: ParsedFilter;
|
|
10
|
+
x?: number;
|
|
11
|
+
y?: number;
|
|
12
|
+
}
|
|
13
|
+
export type OpenFilterModalCallback = ({ view, fieldInfo, path, filter, }: OpenFilterModalParams) => void;
|
|
14
|
+
export interface UseFilterModelProps {
|
|
15
|
+
setQuery: ((rootQuery: Malloy.Query | undefined) => void) | undefined;
|
|
16
|
+
rootQuery: ASTQuery | undefined;
|
|
17
|
+
}
|
|
18
|
+
export declare function useFilterModal({ setQuery, rootQuery }: UseFilterModelProps): {
|
|
19
|
+
openFilterModal: React.Dispatch<React.SetStateAction<OpenFilterModalParams | undefined>>;
|
|
20
|
+
FilterModal: () => null;
|
|
21
|
+
} | {
|
|
22
|
+
openFilterModal: React.Dispatch<React.SetStateAction<OpenFilterModalParams | undefined>>;
|
|
23
|
+
FilterModal: () => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
3
|
+
import { ParsedFilter } from '@malloydata/malloy-query-builder';
|
|
4
|
+
export declare function useFilterPopup(fieldInfo: Malloy.FieldInfoWithDimension | Malloy.FieldInfoWithMeasure, path: string[], filter: ParsedFilter, setFilter: (filter: ParsedFilter) => void): {
|
|
5
|
+
FilterPopup: ({ trigger }: {
|
|
6
|
+
trigger: React.ReactElement;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const filterStyles: Readonly<{
|
|
2
|
+
readonly filterDialog: Readonly<{
|
|
3
|
+
readonly display: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"display", "flex">;
|
|
4
|
+
readonly flexDirection: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"flexDirection", "column">;
|
|
5
|
+
readonly boxShadow: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"boxShadow", "0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 2px 12px 0 rgba(0, 0, 0, 0.1)">;
|
|
6
|
+
readonly backgroundColor: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"backgroundColor", "white">;
|
|
7
|
+
readonly borderRadius: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"borderRadius", 8>;
|
|
8
|
+
readonly padding: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"padding", 8>;
|
|
9
|
+
readonly minWidth: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"minWidth", 200>;
|
|
10
|
+
readonly gap: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"gap", 8>;
|
|
11
|
+
}>;
|
|
12
|
+
readonly filterDialogHeader: Readonly<{
|
|
13
|
+
readonly fontWeight: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"fontWeight", "bold">;
|
|
14
|
+
}>;
|
|
15
|
+
readonly filterTypeDropdown: Readonly<{
|
|
16
|
+
readonly width: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"width", "100%">;
|
|
17
|
+
}>;
|
|
18
|
+
readonly buttonGroup: Readonly<{
|
|
19
|
+
readonly display: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"display", "flex">;
|
|
20
|
+
readonly gap: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"gap", 8>;
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { StyleXStyles } from '@stylexjs/stylex';
|
|
2
3
|
import { IconType } from './utils/icon';
|
|
3
4
|
type Variant = keyof typeof colorVariants;
|
|
4
5
|
type Size = keyof typeof sizeVariants;
|
|
@@ -33,8 +34,12 @@ interface ButtonProps extends React.ComponentProps<'button'> {
|
|
|
33
34
|
* Whether the button is disabled.
|
|
34
35
|
*/
|
|
35
36
|
isDisabled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Custom styling
|
|
39
|
+
*/
|
|
40
|
+
customStyle?: StyleXStyles;
|
|
36
41
|
}
|
|
37
|
-
export default function Button({ variant, size, icon, label, tooltip, onClick, isDisabled, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export default function Button({ variant, size, icon, label, tooltip, onClick, isDisabled, customStyle, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
38
43
|
declare const colorVariants: Readonly<{
|
|
39
44
|
readonly default: Readonly<{
|
|
40
45
|
readonly [x: string]: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<string, {
|