@malloydata/malloy-explorer 0.0.257-dev250410160631 → 0.0.257-dev250412010850
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/ResultPanel/ResultPanel.flow.js +6 -1
- package/babel.config.mjs +1 -0
- package/dist/cjs/index.cjs +358 -210
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +359 -211
- package/dist/esm/index.js.map +1 -1
- package/dist/malloy-explorer.css +1 -1
- 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 +4 -4
- 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 +4 -4
- package/dist/types/components/QueryPanel/AddMenu/FieldMenu.d.ts +4 -4
- package/dist/types/components/QueryPanel/Operations.d.ts +3 -1
- 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/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/QueryPanel/operations/WhereOperations.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/primitives/CollapsibleListItem.d.ts +5 -1
- package/dist/types/components/utils/fields.d.ts +6 -0
- package/dist/types/components/utils/segment.d.ts +2 -0
- package/package.json +1 -1
package/dist/malloy-explorer.css
CHANGED
|
@@ -377,7 +377,7 @@ html[dir='rtl'] .x17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0 rg
|
|
|
377
377
|
.xx6bls6{padding-bottom:20px}
|
|
378
378
|
.xjkvuk6{padding-bottom:4px}
|
|
379
379
|
.xwib8y2{padding-bottom:8px}
|
|
380
|
-
.
|
|
380
|
+
.xnm25rq{padding-left:16px}
|
|
381
381
|
.x6wrskw{padding-left:4px}
|
|
382
382
|
.x163pfp{padding-left:8px}
|
|
383
383
|
.xmzs88n{padding-right:4px}
|
|
@@ -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,15 @@
|
|
|
1
1
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
|
-
import { ASTSegmentViewDefinition } from '@malloydata/malloy-query-builder';
|
|
3
2
|
import { FieldInfo } from '@malloydata/malloy-interfaces';
|
|
4
3
|
import { IconType } from '../../primitives';
|
|
4
|
+
import { ViewParent } from '../../utils/fields';
|
|
5
5
|
export interface AddGroupByProps {
|
|
6
6
|
label: string;
|
|
7
7
|
icon: IconType;
|
|
8
|
-
|
|
8
|
+
view: ViewParent;
|
|
9
9
|
fields: FieldInfo[];
|
|
10
10
|
onClick(field: FieldInfo, path: string[]): void;
|
|
11
11
|
types: Array<'dimension' | 'measure' | 'view'>;
|
|
12
|
-
filter?: (
|
|
12
|
+
filter?: (view: ViewParent, field: Malloy.FieldInfo, path: string[]) => boolean;
|
|
13
13
|
disabledMessage?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare function AddFieldItem({
|
|
15
|
+
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({ rootQuery,
|
|
7
|
+
export declare function AddWhere({ rootQuery, view }: AddWhereProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
|
-
import {
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
3
3
|
export interface FieldListProps {
|
|
4
|
-
|
|
4
|
+
view: ViewParent;
|
|
5
5
|
fields: Malloy.FieldInfo[];
|
|
6
6
|
search: string;
|
|
7
7
|
onClick: (field: Malloy.FieldInfo, path: string[]) => void;
|
|
8
8
|
types: Array<'dimension' | 'measure' | 'view'>;
|
|
9
|
-
filter?: (
|
|
9
|
+
filter?: (view: ViewParent, field: Malloy.FieldInfo, path: string[]) => boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare function FieldList({
|
|
11
|
+
export declare function FieldList({ view, fields, onClick, search, types, filter, }: FieldListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
|
-
import {
|
|
2
|
+
import { ViewParent } from '../../utils/fields';
|
|
3
3
|
export interface FieldMenuProps {
|
|
4
|
-
|
|
4
|
+
view: ViewParent;
|
|
5
5
|
fields: Array<Malloy.FieldInfo>;
|
|
6
6
|
types: Array<'dimension' | 'measure' | 'view'>;
|
|
7
|
-
filter?: (
|
|
7
|
+
filter?: (view: ViewParent, field: Malloy.FieldInfo, path: string[]) => boolean;
|
|
8
8
|
onClick: (field: Malloy.FieldInfo, path: string[]) => void;
|
|
9
9
|
}
|
|
10
|
-
export declare function FieldMenu({
|
|
10
|
+
export declare function FieldMenu({ view, fields, types, filter, onClick, }: FieldMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ASTQuery,
|
|
1
|
+
import { ASTQuery, ASTWhereViewOperation } from '@malloydata/malloy-query-builder';
|
|
2
2
|
export interface WhereOperationsProps {
|
|
3
3
|
rootQuery: ASTQuery;
|
|
4
|
-
segment: ASTSegmentViewDefinition;
|
|
5
4
|
wheres: ASTWhereViewOperation[];
|
|
6
5
|
}
|
|
7
6
|
export declare function WhereOperations({ rootQuery, wheres }: WhereOperationsProps): 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;
|
|
@@ -12,5 +12,9 @@ export interface CollapsibleListItemProps {
|
|
|
12
12
|
* The children items to render.
|
|
13
13
|
*/
|
|
14
14
|
children: React.ReactNode[];
|
|
15
|
+
/**
|
|
16
|
+
* Sets the initial expansion state of the collapsible list item.
|
|
17
|
+
*/
|
|
18
|
+
isInitiallyExpanded?: boolean;
|
|
15
19
|
}
|
|
16
|
-
export default function CollapsibleListItem({ label, sublabel, children, }: CollapsibleListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default function CollapsibleListItem({ label, sublabel, children, isInitiallyExpanded, }: CollapsibleListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
|
+
import { ASTArrowQueryDefinition, ASTView } from '@malloydata/malloy-query-builder';
|
|
3
|
+
export type ViewParent = ASTArrowQueryDefinition | ASTView;
|
|
2
4
|
/**
|
|
3
5
|
*
|
|
4
6
|
* @param field
|
|
@@ -7,3 +9,7 @@ import * as Malloy from '@malloydata/malloy-interfaces';
|
|
|
7
9
|
export declare function sortFieldInfoOrder(field: Malloy.FieldInfo): 0 | 1 | 2 | 3;
|
|
8
10
|
export declare function sortFieldInfos(fields: Malloy.FieldInfo[]): Malloy.FieldInfo[];
|
|
9
11
|
export declare function isIndexView(field: Malloy.FieldInfoWithView): boolean;
|
|
12
|
+
export declare function getViewDefinition(parent: ViewParent): import("@malloydata/malloy-query-builder").ASTViewDefinition;
|
|
13
|
+
export declare function getInputSchemaFromViewParent(parent: ViewParent): Malloy.Schema;
|
|
14
|
+
export declare function viewParentHasField(parent: ViewParent, field: Malloy.FieldInfo, path: string[]): boolean;
|
|
15
|
+
export declare function viewParentDoesNotHaveField(parent: ViewParent, field: Malloy.FieldInfo, path: string[]): boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
2
|
import { ASTQuery, ASTSegmentViewDefinition } from '@malloydata/malloy-query-builder';
|
|
3
|
+
import { ViewParent } from './fields';
|
|
3
4
|
export declare function segmentHasLimit(segment: ASTSegmentViewDefinition): boolean;
|
|
4
5
|
export declare function segmentHasOrderBy(segment: ASTSegmentViewDefinition, name: string): boolean;
|
|
5
6
|
export declare function segmentNestNo(segment: ASTSegmentViewDefinition, name?: string): number;
|
|
6
7
|
export declare function addGroupBy(rootQuery: ASTQuery, segment: ASTSegmentViewDefinition, field: Malloy.FieldInfo, path: string[], setQuery?: (query: Malloy.Query) => void): void;
|
|
8
|
+
export declare function getSegmentIfPresent(parent: ViewParent): ASTSegmentViewDefinition | undefined;
|