@malloydata/malloy-explorer 0.0.257-dev250417005958 → 0.0.264-dev250418182827

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.
@@ -71,7 +71,9 @@
71
71
  .mlysu8s4a{background:var(--mly10mhzaa)}
72
72
  .mly1np9qvj{background:var(--mly1eayp21)}
73
73
  .mly1b4wx6v{background:var(--mly1mq821i)}
74
+ .mly1p5yd3t{background:var(--mly4a29vv)}
74
75
  .mlyzkdzjc{border:1px solid #CCD3DB}
76
+ .mly2yh2zd{border:1px solid #e0e0e0}
75
77
  .mly8fuzfi{border:1px solid #efefef}
76
78
  .mly1dc9p4k{border:1px solid red}
77
79
  .mly27xtdb{border:1px solid rgb(239,239,239)}
@@ -108,6 +110,7 @@
108
110
  .mly92jh8x{padding:4px 0 8px 0}
109
111
  .mlyztvwtv{padding:4px 0}
110
112
  .mly1fut7tt{padding:4px 12px 12px 12px}
113
+ .mly9cpjcd{padding:4px 8px 4px 8px}
111
114
  .mly1q44i06{padding:4px 8px 4px}
112
115
  .mlydqdrvq{padding:4px 8px}
113
116
  .mlyfawy5m{padding:4px}
@@ -184,6 +187,7 @@
184
187
  .mlygmb8sa{background-color:#E6EBEF}
185
188
  .mly1dr8pv1{background-color:#F1F4F7}
186
189
  .mly83z2og{background-color:#fff}
190
+ .mly1vzefiq{background-color:rgb(240,246,255)}
187
191
  .mlyy9rfsq{background-color:rgba(230,235,239,1)}
188
192
  .mly1jmk7v{background-color:rgba(37,54,63,1)}
189
193
  .mlyjbqb8w{background-color:transparent}
@@ -269,7 +273,6 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
269
273
  .mly1q0g3np{flex-direction:row}
270
274
  .mly1iyjqo2{flex-grow:1}
271
275
  .mly2lah0s{flex-shrink:0}
272
- .mlyozqiw3{flex-wrap:nowrap}
273
276
  .mly1a02dak{flex-wrap:wrap}
274
277
  .mly6icuqf{font-family:sans-serif}
275
278
  .mly1rj5sg5{font-family:SF Pro Text,-apple-system,system-ui,sans-serif}
@@ -286,6 +289,7 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
286
289
  .mly117nqv4{font-weight:bold}
287
290
  .mly1fcty0u{font-weight:normal}
288
291
  .mly1mt1orb{grid-auto-flow:column}
292
+ .mly52fmzj{grid-template-columns:1fr auto}
289
293
  .mly1g3yg12{grid-template-columns:auto 1fr auto}
290
294
  .mlyl56j7k{justify-content:center}
291
295
  .mly13a6bvl{justify-content:flex-end}
@@ -383,9 +387,10 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
383
387
  .mlyqyhut4{max-width:16.5px}
384
388
  .mlyaka53j{max-width:230px}
385
389
  .mlyxc7z9f{max-width:360px}
390
+ .mly1j9u4d2{max-width:400px}
386
391
  .mlymcgfsh{max-width:60px}
387
- .mly1mnxie6{min-width:13.5px}
388
392
  .mly4x6u8j{min-width:16.5px}
393
+ .mlygc0pbm{min-width:1px}
389
394
  .mly1jzhcrs{min-width:200px}
390
395
  .mlyt4ypqs{min-width:20px}
391
396
  .mlyfvyar9{min-width:60px}
@@ -427,7 +432,6 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
427
432
  .mly10lvyaf{width:calc(100% - 12px)}
428
433
  .mly1rxuhir{width:calc(100% - 22px)}
429
434
  .mly112rgfc{width:calc(100% - 40)}
430
- .mlynq0rdo{width:min-content}
431
435
  .mly1g65f5b{width:var(--radix-tooltip-trigger-width)}
432
436
  }
433
437
 
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import { StyleXStyles } from '@stylexjs/stylex';
3
+ import { Moment, TemporalUnit } from '@malloydata/malloy-filter';
4
+ interface DateInputProps {
5
+ value: Date;
6
+ setValue: (value: Date) => void;
7
+ placeholder?: string;
8
+ label?: string;
9
+ autoFocus?: boolean;
10
+ units: TemporalUnit;
11
+ onFocus?: () => void;
12
+ onBlur?: () => void;
13
+ isActive?: boolean;
14
+ customStyle?: StyleXStyles;
15
+ }
16
+ export declare const formats: Record<TemporalUnit, string>;
17
+ export declare const DateInput: React.FC<DateInputProps>;
18
+ export declare function guessUnits(moment: Moment, isDateTime: boolean): TemporalUnit;
19
+ export {};
@@ -1,12 +1,14 @@
1
1
  import * as React from 'react';
2
+ import { StyleXStyles } from '@stylexjs/stylex';
2
3
  import { SearchIndexResult } from './hooks/useSearch';
3
4
  export interface FieldListProps {
4
5
  search: string;
5
6
  onClick: (value: SearchIndexResult) => void;
6
7
  fieldPath?: string;
7
8
  ref?: React.RefObject<HTMLDivElement | null>;
9
+ customStyle?: StyleXStyles;
8
10
  }
9
- export declare function ValueList({ onClick, search, fieldPath, ref }: FieldListProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function ValueList({ onClick, search, fieldPath, ref, customStyle, }: FieldListProps): import("react/jsx-runtime").JSX.Element;
10
12
  export interface ValueProps {
11
13
  value: SearchIndexResult;
12
14
  }
@@ -14,4 +14,7 @@ export declare const hoverStyles: Readonly<{
14
14
  readonly display: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"display", string>;
15
15
  readonly flexShrink: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"flexShrink", 0>;
16
16
  }>;
17
+ readonly hoverOpen: Readonly<{
18
+ readonly display: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"display", "inline-flex">;
19
+ }>;
17
20
  }>;
@@ -1,5 +1,4 @@
1
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
2
  export interface BooleanFilterDialogProps {
4
3
  filter: BooleanFilter;
5
4
  setFilter: (filter: BooleanFilter) => void;
@@ -1,11 +1,12 @@
1
1
  import * as React from 'react';
2
- import { TemporalFilter } from '@malloydata/malloy-filter';
3
- type DateTimeFilterType = 'is_equal_to' | 'is_before' | 'is_after' | 'is_between' | 'is_null' | 'is_not_null';
2
+ import { TemporalFilter, TemporalUnit } from '@malloydata/malloy-filter';
3
+ type TemporalFilterOperator = TemporalFilter['operator'];
4
+ type TemporalFilterType = TemporalFilterOperator | '-null';
4
5
  export interface DateTimeFilterCoreProps {
5
6
  filter: TemporalFilter | null;
6
7
  setFilter: (filter: TemporalFilter) => void;
7
8
  isDateTime: boolean;
8
9
  }
9
10
  export declare const DateTimeFilterCore: React.FC<DateTimeFilterCoreProps>;
10
- export declare function dateTimeFilterChangeType(filter: TemporalFilter, type: DateTimeFilterType): TemporalFilter;
11
+ export declare function dateTimeFilterChangeType(filter: TemporalFilter, type: TemporalFilterType, units: TemporalUnit): TemporalFilter;
11
12
  export {};
@@ -7,6 +7,7 @@ export declare const filterStyles: Readonly<{
7
7
  readonly borderRadius: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"borderRadius", 8>;
8
8
  readonly padding: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"padding", 8>;
9
9
  readonly minWidth: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"minWidth", 200>;
10
+ readonly maxWidth: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"maxWidth", 400>;
10
11
  readonly gap: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"gap", 8>;
11
12
  }>;
12
13
  readonly filterDialogHeader: Readonly<{
@@ -1,9 +1,11 @@
1
1
  import { StyleXStyles } from '@stylexjs/stylex';
2
+ import { TemporalUnit } from '@malloydata/malloy-filter';
2
3
  interface DatePickerProps {
3
4
  value: Date;
4
5
  setValue: (value: Date) => void;
5
- maxLevel: 'year' | 'month' | 'day' | 'quarter' | 'week' | 'hour' | 'minute' | 'second';
6
- style?: StyleXStyles;
6
+ units: TemporalUnit;
7
+ maxLevel: TemporalUnit;
8
+ customStyle?: StyleXStyles;
7
9
  }
8
- export default function DatePicker({ value, setValue, maxLevel, style, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
10
+ export default function DatePicker({ value, setValue, units, maxLevel, customStyle, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
9
11
  export {};
@@ -1,7 +1,7 @@
1
1
  import * as Malloy from '@malloydata/malloy-interfaces';
2
- import { AtomicTypeType } from '@malloydata/malloy-interfaces';
2
+ import { AtomicTypeType, ParameterTypeType } from '@malloydata/malloy-interfaces';
3
3
  import { IconType } from '../primitives';
4
- export declare function atomicTypeToIcon(type: AtomicTypeType): IconType;
4
+ export declare function atomicTypeToIcon(type: AtomicTypeType | ParameterTypeType): IconType;
5
5
  export declare function fieldKindToColor(kind: 'dimension' | 'measure' | 'join' | 'view'): "purple" | "green" | "cyan" | undefined;
6
6
  export declare function fieldToIcon(field: Malloy.FieldInfo): IconType;
7
7
  export declare function relationshipToIcon(relationship: Malloy.Relationship): IconType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy-explorer",
3
- "version": "0.0.257-dev250417005958",
3
+ "version": "0.0.264-dev250418182827",
4
4
  "description": "Malloy visual query builder",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "types": "dist/types/index.d.ts",
@@ -25,8 +25,8 @@
25
25
  "dev": "vite",
26
26
  "preview": "vite preview",
27
27
  "lint": "tsc --noEmit && eslint .",
28
- "malloy-update-next": "npm install --no-fund --no-audit --save-exact $(./scripts/malloy-packages.ts next)",
29
- "malloy-update": "npm install --no-fund --no-audit --save-exact $(./scripts/malloy-packages.ts latest)",
28
+ "malloy-update-next": "npm install --no-fund --no-audit $(./scripts/malloy-packages.ts next)",
29
+ "malloy-update": "npm install --no-fund --no-audit $(./scripts/malloy-packages.ts latest)",
30
30
  "malloy-link": "npm --no-fund --no-audit link $(./scripts/malloy-packages.ts)",
31
31
  "malloy-unlink": "npm --no-fund --no-save --no-audit unlink $(./scripts/malloy-packages.ts) && npm --no-fund --no-audit install --force",
32
32
  "malloy-build-and-link": "cd ../malloy && npm run -ws build --workspace=@malloydata/malloy-query-builder --workspace=@malloydata/malloy-filter --workspace=@malloydata/malloy-interfaces --workspace=@malloydata/malloy-tag && npm link -ws",
@@ -51,6 +51,7 @@
51
51
  },
52
52
  "homepage": "https://github.com/malloydata/malloy-explorer#readme",
53
53
  "dependencies": {
54
+ "@floating-ui/react-dom": "2.1.2",
54
55
  "@radix-ui/react-dialog": "^1.1.6",
55
56
  "@radix-ui/react-dropdown-menu": "^2.1.6",
56
57
  "@radix-ui/react-icons": "^1.3.2",
@@ -98,11 +99,11 @@
98
99
  "vite-plugin-svgr": "^4.3.0"
99
100
  },
100
101
  "peerDependencies": {
101
- "@malloydata/malloy-filter": "0.0.261",
102
- "@malloydata/malloy-interfaces": "0.0.261",
103
- "@malloydata/malloy-query-builder": "0.0.261",
104
- "@malloydata/malloy-tag": "0.0.261",
105
- "@malloydata/render": "0.0.261",
102
+ "@malloydata/malloy-filter": ">=0.0.264",
103
+ "@malloydata/malloy-interfaces": ">=0.0.264",
104
+ "@malloydata/malloy-query-builder": ">=0.0.264",
105
+ "@malloydata/malloy-tag": ">=0.0.264",
106
+ "@malloydata/render": ">=0.0.264",
106
107
  "react": ">= 19.0.0",
107
108
  "react-dom": ">= 19.0.0"
108
109
  }