@malloydata/malloy-explorer 0.0.269-dev250430213122 → 0.0.271-dev250506000031

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.
@@ -209,8 +209,10 @@
209
209
  .mly1x3oq6j{background-color:var(--mlywj8cgu)}
210
210
  .mly12peec7{background-color:white}
211
211
  .mly1mwwwfo{border-collapse:collapse}
212
+ .mlygbc89k{box-shadow:0 0 0 1px #CCD3DB}
212
213
  html:not([dir='rtl']) .mlyn8fsvk{box-shadow:0 0 0 1px rgb(0,100,224) inset,0 0 0 3px rgba(1,113,227,.3) inset}
213
214
  html[dir='rtl'] .mlyn8fsvk{box-shadow:0 0 0 1px rgb(0,100,224) inset, 0 0 0 3px rgba(1,113,227,.3) inset}
215
+ .mlybwr872{box-shadow:0 0 0 2px rgba(0,100,224,1)}
214
216
  html:not([dir='rtl']) .mly1kmqopl{box-shadow:0 0 5px 0 rgba(0,0,0,.1),0 0 1px 0 rgba(0,0,0,.1)}
215
217
  html[dir='rtl'] .mly1kmqopl{box-shadow:0 0 5px 0 rgba(0,0,0,.1), 0 0 1px 0 rgba(0,0,0,.1)}
216
218
  html:not([dir='rtl']) .mly5n1uv4{box-shadow:0 1px 2px 0 rgba(0,0,0,.1),0 2px 12px 0 rgba(0,0,0,.1)}
@@ -350,6 +352,7 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
350
352
  .mlyt89l8w:hover{background-color:var(--malloy-composer-form-focusBackground,#f0f6ff)}
351
353
  .mlyk1j4u7:hover{background-color:var(--mly4a29vv)}
352
354
  .mlyk1e6ed:hover{box-shadow:rgba(204,211,219,.3) 0 0 0 3px inset}
355
+ .mlytw1abo:focus{background-color:white}
353
356
  }
354
357
 
355
358
  @layer priority5{
@@ -367,6 +370,7 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
367
370
  .mlyk2yuxw{height:209.5px}
368
371
  .mly1qx5ct2{height:20px}
369
372
  .mlyxk0z11{height:24px}
373
+ .mlyd7y6wv{height:26px}
370
374
  .mly1fgtraw{height:28px}
371
375
  .mlyc9qbxq{height:36px}
372
376
  .mlyng8ra{height:60px}
@@ -426,6 +430,7 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
426
430
  .mly13vifvy{top:0}
427
431
  .mlynalus7{width:0}
428
432
  .mlyh8yej3{width:100%}
433
+ .mlynrytzq{width:10em}
429
434
  .mly6jxa94{width:14px}
430
435
  .mly18kybhu{width:15em}
431
436
  .mlyjxf2f8{width:16.5px}
@@ -440,6 +445,7 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
440
445
  .mlygd8bvy{width:28px}
441
446
  .mlybl57os{width:323px}
442
447
  .mlyxsgkw5{width:350px}
448
+ .mly869kya{width:5.5em}
443
449
  .mly1ftt334{width:5px}
444
450
  .mly1247r65{width:60px}
445
451
  .mly1xc55vz{width:8px}
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { RefObject } from 'react';
2
3
  import { StyleXStyles } from '@stylexjs/stylex';
3
4
  import { Moment, TemporalUnit } from '@malloydata/malloy-filter';
4
5
  interface DateInputProps {
@@ -12,6 +13,7 @@ interface DateInputProps {
12
13
  onBlur?: () => void;
13
14
  isActive?: boolean;
14
15
  customStyle?: StyleXStyles;
16
+ forwardRef?: RefObject<HTMLInputElement | null>;
15
17
  }
16
18
  export declare const formats: Record<TemporalUnit, string>;
17
19
  export declare const DateInput: React.FC<DateInputProps>;
@@ -0,0 +1,10 @@
1
+ import * as Malloy from '@malloydata/malloy-interfaces';
2
+ import { StyleXStyles } from '@stylexjs/stylex';
3
+ import { LiteralValueWithDateLiteral, LiteralValueWithTimestampLiteral } from '@malloydata/malloy-interfaces';
4
+ interface DateLiteralEditorProps {
5
+ value: LiteralValueWithDateLiteral | LiteralValueWithTimestampLiteral;
6
+ setValue: (value: Malloy.LiteralValue) => void;
7
+ customStyle?: StyleXStyles;
8
+ }
9
+ export declare function DateLiteralEditor({ value, setValue, customStyle, }: DateLiteralEditorProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -1,9 +1,8 @@
1
1
  import * as Malloy from '@malloydata/malloy-interfaces';
2
- import { RawLiteralValue } from '@malloydata/malloy-query-builder';
3
2
  import { StyleXStyles } from '@stylexjs/stylex';
4
3
  export interface LiteralValueEditorProps {
5
4
  value: Malloy.LiteralValue | undefined;
6
- setValue: (value: RawLiteralValue) => void;
5
+ setValue: (value: Malloy.LiteralValue) => void;
7
6
  customStyle?: StyleXStyles;
8
7
  }
9
8
  export declare function LiteralValueEditor({ value, setValue, customStyle, }: LiteralValueEditorProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +1,9 @@
1
1
  import * as Malloy from '@malloydata/malloy-interfaces';
2
+ import { ASTArrowQueryDefinition } from '@malloydata/malloy-query-builder';
2
3
  interface FieldTokenWithActionsProps {
3
4
  field: Malloy.FieldInfo;
4
5
  path: string[];
6
+ viewDef: ASTArrowQueryDefinition;
5
7
  }
6
- export declare function FieldTokenWithActions({ field, path, }: FieldTokenWithActionsProps): import("react/jsx-runtime").JSX.Element | null;
8
+ export declare function FieldTokenWithActions({ field, path, viewDef, }: FieldTokenWithActionsProps): import("react/jsx-runtime").JSX.Element;
7
9
  export {};
@@ -4,5 +4,5 @@ interface SearchResultListProps {
4
4
  source: SourceInfo;
5
5
  items: FieldItem[];
6
6
  }
7
- export default function SearchResultList({ source, items, }: SearchResultListProps): import("react/jsx-runtime").JSX.Element;
7
+ export default function SearchResultList({ source, items, }: SearchResultListProps): import("react/jsx-runtime").JSX.Element | null;
8
8
  export {};
@@ -14,6 +14,7 @@ interface FilterPopoverProps {
14
14
  alignOffset?: number;
15
15
  sideOffset?: number;
16
16
  };
17
+ onOpenChange?: (open: boolean) => void;
17
18
  }
18
- export declare function FilterPopover({ fieldInfo, path, filter, setFilter, trigger, anchor, layoutProps, }: FilterPopoverProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function FilterPopover({ fieldInfo, path, filter, setFilter, trigger, anchor, layoutProps, onOpenChange, }: FilterPopoverProps): import("react/jsx-runtime").JSX.Element;
19
20
  export {};
@@ -39,7 +39,7 @@ interface ButtonProps extends React.ComponentProps<'button'> {
39
39
  */
40
40
  customStyle?: StyleXStyles;
41
41
  }
42
- export default function Button({ variant, size, icon, label, tooltip, onClick, isDisabled, customStyle, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
42
+ export default function Button({ variant, size, icon, label, tooltip, isDisabled, customStyle, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
43
43
  declare const colorVariants: Readonly<{
44
44
  readonly default: Readonly<{
45
45
  readonly [x: string]: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<string, {
@@ -8,6 +8,7 @@ interface CollapsiblePanelProps {
8
8
  defaultOpen?: boolean;
9
9
  controls?: ReactNode;
10
10
  collapsedControls?: ReactNode;
11
+ isFocused?: boolean;
11
12
  }
12
- export default function CollapsiblePanel({ title, children, icon, defaultOpen, controls, collapsedControls, }: CollapsiblePanelProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function CollapsiblePanel({ title, children, icon, defaultOpen, controls, collapsedControls, isFocused: isFocused, }: CollapsiblePanelProps): import("react/jsx-runtime").JSX.Element;
13
14
  export {};
@@ -1,3 +1,4 @@
1
+ import { RefObject } from 'react';
1
2
  import { StyleXStyles } from '@stylexjs/stylex';
2
3
  import { TemporalUnit } from '@malloydata/malloy-filter';
3
4
  interface DatePickerProps {
@@ -6,6 +7,7 @@ interface DatePickerProps {
6
7
  units: TemporalUnit;
7
8
  maxLevel: TemporalUnit;
8
9
  customStyle?: StyleXStyles;
10
+ forwardRef?: RefObject<HTMLDivElement | null>;
9
11
  }
10
- export default function DatePicker({ value, setValue, units, maxLevel, customStyle, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
12
+ export default function DatePicker({ value, setValue, units, maxLevel, customStyle, forwardRef, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
11
13
  export {};
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as Malloy from '@malloydata/malloy-interfaces';
3
- import { ASTQuery } from '@malloydata/malloy-query-builder';
3
+ import { ASTQuery, ASTView } from '@malloydata/malloy-query-builder';
4
4
  export interface SearchValueMapResult {
5
5
  fieldName: string;
6
6
  cardinality: number;
@@ -17,6 +17,17 @@ export interface QueryEditorContextProps {
17
17
  /** Provide to allow editing of the query */
18
18
  setQuery?: (rootQuery: Malloy.Query | undefined) => void;
19
19
  topValues?: SearchValueMapResult[];
20
+ /** Currently focused nest query panel element */
21
+ currentNestQueryPanel?: HTMLElement | null;
22
+ /** Callback function for when the current focused nest query panel changes */
23
+ onCurrentNestQueryPanelChange?: (panel: HTMLElement | null) => void;
24
+ /** Nest view object corresponding to current focused nest query panel */
25
+ currentNestView?: ASTView | null;
26
+ /**
27
+ * Callback function for when the nest view object
28
+ * corresponding to current focused nest query panel changes
29
+ */
30
+ onCurrentNestViewChange?: (view: ASTView | null) => void;
20
31
  }
21
32
  /**
22
33
  * QueryEditorContext enables query editing by providing the setQuery
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy-explorer",
3
- "version": "0.0.269-dev250430213122",
3
+ "version": "0.0.271-dev250506000031",
4
4
  "description": "Malloy visual query builder",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "types": "dist/types/index.d.ts",
@@ -102,11 +102,11 @@
102
102
  "vite-plugin-svgr": "^4.3.0"
103
103
  },
104
104
  "peerDependencies": {
105
- "@malloydata/malloy-filter": ">= 0.0.269",
106
- "@malloydata/malloy-interfaces": ">= 0.0.269",
107
- "@malloydata/malloy-query-builder": ">= 0.0.269",
108
- "@malloydata/malloy-tag": ">= 0.0.269",
109
- "@malloydata/render": ">= 0.0.269",
105
+ "@malloydata/malloy-filter": ">=0.0.271",
106
+ "@malloydata/malloy-interfaces": ">=0.0.271",
107
+ "@malloydata/malloy-query-builder": ">=0.0.271",
108
+ "@malloydata/malloy-tag": ">=0.0.271",
109
+ "@malloydata/render": ">=0.0.271",
110
110
  "react": ">= 19.0.0",
111
111
  "react-dom": ">= 19.0.0"
112
112
  }
@@ -8,8 +8,7 @@ const inDir = path.resolve('dist/types');
8
8
  const files = [
9
9
  'index.d.ts',
10
10
  'components/MalloyExplorerProvider.d.ts',
11
- 'components/QueryPanel/QueryEditor.d.ts',
12
- 'components/QueryPanel/QueryActionBar.d.ts',
11
+ 'components/QueryPanel/QueryPanel.d.ts',
13
12
  'components/ResultPanel/ResultPanel.d.ts',
14
13
  'components/ResultPanel/SubmittedQuery.d.ts',
15
14
  'components/SourcePanel/SourcePanel.d.ts',
@@ -1,3 +0,0 @@
1
- declare export function QueryEditor():
2
- | $Exports<"react/jsx-runtime">["JSX"]["Element"]
3
- | null;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { FieldInfo } from '@malloydata/malloy-interfaces';
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;
8
- field: FieldInfo;
9
- path: string[];
10
- }
11
- export declare function AddFieldDropdownMenu({ view, field, path, ...props }: AddFieldDropdownMenuProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { FieldInfo } from '@malloydata/malloy-interfaces';
3
- import { ViewParent } from '../utils/fields';
4
- interface NestFieldDropdownMenuProps {
5
- view: ViewParent;
6
- field: FieldInfo;
7
- path: string[];
8
- trigger: React.ReactElement;
9
- onOpenChange: (open: boolean) => void;
10
- }
11
- export declare function NestFieldDropdownMenu({ view, field, path, trigger, onOpenChange, }: NestFieldDropdownMenuProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,10 +0,0 @@
1
- import { FieldInfo } from '@malloydata/malloy-interfaces';
2
- import { ViewParent } from '../utils/fields';
3
- interface OperationDropdownMenuItemsProps {
4
- view: ViewParent;
5
- field: FieldInfo;
6
- path: string[];
7
- withEmptyNest?: boolean;
8
- }
9
- export declare function OperationDropdownMenuItems({ view, field, path, withEmptyNest, }: OperationDropdownMenuItemsProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,9 +0,0 @@
1
- import { ASTQuery, ASTViewDefinition } from '@malloydata/malloy-query-builder';
2
- export type NestOperation = {
3
- name: string;
4
- view: ASTViewDefinition;
5
- };
6
- /**
7
- * Retrieves nest view operations from the root query.
8
- */
9
- export declare function useNestOperations(rootQuery?: ASTQuery): NestOperation[];