@malloydata/malloy-explorer 0.0.264-dev250418182827 → 0.0.266-dev250421232431
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/QueryEditor.flow.js +0 -6
- package/@flowtypes/components/SourcePanel/SourcePanel.flow.js +6 -3
- package/dist/cjs/index.cjs +454 -337
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +454 -337
- package/dist/esm/index.js.map +1 -1
- package/dist/malloy-explorer.css +2 -1
- package/dist/types/components/QueryPanel/QueryEditor.d.ts +1 -12
- package/dist/types/components/SourcePanel/SourcePanel.d.ts +4 -1
- package/dist/types/components/filters/NumberFilterCore.d.ts +3 -3
- package/dist/types/components/filters/styles.d.ts +19 -0
- package/dist/types/components/primitives/tokens/styles.d.ts +3 -1
- package/dist/types/components/primitives/utils/icon.d.ts +12 -0
- package/dist/types/components/utils/icon.d.ts +2 -0
- package/package.json +6 -6
- package/dist/types/components/QueryPanel/VisualizationIcon.d.ts +0 -5
package/dist/malloy-explorer.css
CHANGED
|
@@ -177,6 +177,7 @@
|
|
|
177
177
|
|
|
178
178
|
@layer priority4{
|
|
179
179
|
.mly6s0dn4{align-items:center}
|
|
180
|
+
.mlypqajaz{align-items:end}
|
|
180
181
|
.mly1cy8zhl{align-items:flex-start}
|
|
181
182
|
.mly7a106z{align-items:start}
|
|
182
183
|
.mly7v9bd0{animation-duration:.75s}
|
|
@@ -289,6 +290,7 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
|
|
|
289
290
|
.mly117nqv4{font-weight:bold}
|
|
290
291
|
.mly1fcty0u{font-weight:normal}
|
|
291
292
|
.mly1mt1orb{grid-auto-flow:column}
|
|
293
|
+
.mly15396mt{grid-template-columns:100px auto 100px}
|
|
292
294
|
.mly52fmzj{grid-template-columns:1fr auto}
|
|
293
295
|
.mly1g3yg12{grid-template-columns:auto 1fr auto}
|
|
294
296
|
.mlyl56j7k{justify-content:center}
|
|
@@ -301,7 +303,6 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
|
|
|
301
303
|
.mly11e9jwx{leading-trim:both}
|
|
302
304
|
.mly1gu5id8{letter-spacing:-0.24px}
|
|
303
305
|
.mly12oo3zp{letter-spacing:0}
|
|
304
|
-
.mlywxc2jc{line-height:1.8}
|
|
305
306
|
.mly1d3mw78{line-height:16px}
|
|
306
307
|
.mly1fc57z9{line-height:20px}
|
|
307
308
|
.mly1o2sk6j{line-height:24px}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
|
-
export interface QueryEditorProps {
|
|
3
|
-
source: Malloy.SourceInfo;
|
|
4
|
-
query?: Malloy.Query;
|
|
5
|
-
setQuery?: (query: Malloy.Query | undefined) => void;
|
|
6
|
-
}
|
|
7
1
|
/**
|
|
8
|
-
* The Query Viewing and Editing panel.
|
|
9
|
-
* and an optional `Query` object.
|
|
10
|
-
*
|
|
11
|
-
* @param source The source object to be used for query building.
|
|
12
|
-
* @param query A query to be edited. Omit for a new query.
|
|
13
|
-
* @returns
|
|
2
|
+
* The Query Viewing and Editing panel.
|
|
14
3
|
*/
|
|
15
4
|
export declare function QueryEditor(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Null, NumberCondition, NumberFilter } from '@malloydata/malloy-filter';
|
|
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';
|
|
4
|
-
type BasicNumberFilter = NumberCondition | Null;
|
|
2
|
+
import { Null, NumberCondition, NumberFilter, NumberRange } from '@malloydata/malloy-filter';
|
|
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_between' | 'is_not_equal_to' | 'is_not_null';
|
|
4
|
+
type BasicNumberFilter = NumberCondition | NumberRange | Null;
|
|
5
5
|
export interface NumberFilterCoreProps {
|
|
6
6
|
filter: NumberFilter | null;
|
|
7
7
|
setFilter: (filter: NumberFilter) => void;
|
|
@@ -20,4 +20,23 @@ export declare const filterStyles: Readonly<{
|
|
|
20
20
|
readonly display: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"display", "flex">;
|
|
21
21
|
readonly gap: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"gap", 8>;
|
|
22
22
|
}>;
|
|
23
|
+
readonly editor: Readonly<{
|
|
24
|
+
readonly width: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"width", 350>;
|
|
25
|
+
readonly display: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"display", "flex">;
|
|
26
|
+
readonly flexDirection: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"flexDirection", "column">;
|
|
27
|
+
readonly gap: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"gap", 8>;
|
|
28
|
+
}>;
|
|
29
|
+
readonly editorRow: Readonly<{
|
|
30
|
+
readonly display: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"display", "flex">;
|
|
31
|
+
readonly gap: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"gap", 8>;
|
|
32
|
+
}>;
|
|
33
|
+
readonly editorCell: Readonly<{
|
|
34
|
+
readonly flexGrow: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"flexGrow", 1>;
|
|
35
|
+
}>;
|
|
36
|
+
readonly input: Readonly<{
|
|
37
|
+
readonly border: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"border", "1px solid #e0e0e0">;
|
|
38
|
+
readonly color: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"color", "rgb(95, 99, 104)">;
|
|
39
|
+
readonly padding: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"padding", "4px 8px 4px 8px">;
|
|
40
|
+
readonly borderRadius: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"borderRadius", 5>;
|
|
41
|
+
}>;
|
|
23
42
|
}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const tokenStyles: Readonly<{
|
|
2
2
|
readonly main: Readonly<{
|
|
3
|
-
readonly display: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"display", "
|
|
3
|
+
readonly display: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"display", "inline-grid">;
|
|
4
|
+
readonly gridAutoFlow: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"gridAutoFlow", "column">;
|
|
4
5
|
readonly alignItems: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"alignItems", "center">;
|
|
5
6
|
readonly justifyContent: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"justifyContent", "center">;
|
|
6
7
|
readonly gap: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"gap", "8px">;
|
|
@@ -19,6 +20,7 @@ export declare const tokenStyles: Readonly<{
|
|
|
19
20
|
readonly color: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"color", null>;
|
|
20
21
|
readonly textOverflow: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"textOverflow", "ellipsis">;
|
|
21
22
|
readonly overflow: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"overflow", "hidden">;
|
|
23
|
+
readonly whiteSpace: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
22
24
|
}>;
|
|
23
25
|
}>;
|
|
24
26
|
export declare const tokenColorVariants: Readonly<{
|
|
@@ -83,6 +83,18 @@ export declare const ICON_MAP: {
|
|
|
83
83
|
desc?: string;
|
|
84
84
|
descId?: string;
|
|
85
85
|
}>;
|
|
86
|
+
readonly refresh: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
87
|
+
title?: string;
|
|
88
|
+
titleId?: string;
|
|
89
|
+
desc?: string;
|
|
90
|
+
descId?: string;
|
|
91
|
+
}>;
|
|
92
|
+
readonly sidebarCollapse: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
93
|
+
title?: string;
|
|
94
|
+
titleId?: string;
|
|
95
|
+
desc?: string;
|
|
96
|
+
descId?: string;
|
|
97
|
+
}>;
|
|
86
98
|
readonly aggregate: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
87
99
|
title?: string;
|
|
88
100
|
titleId?: string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
2
|
import { AtomicTypeType, ParameterTypeType } from '@malloydata/malloy-interfaces';
|
|
3
3
|
import { IconType } from '../primitives';
|
|
4
|
+
import { ASTQuery, ASTView } from '@malloydata/malloy-query-builder';
|
|
4
5
|
export declare function atomicTypeToIcon(type: AtomicTypeType | ParameterTypeType): IconType;
|
|
5
6
|
export declare function fieldKindToColor(kind: 'dimension' | 'measure' | 'join' | 'view'): "purple" | "green" | "cyan" | undefined;
|
|
6
7
|
export declare function fieldToIcon(field: Malloy.FieldInfo): IconType;
|
|
7
8
|
export declare function relationshipToIcon(relationship: Malloy.Relationship): IconType;
|
|
9
|
+
export declare function viewToVisualizationIcon(view: ASTQuery | ASTView): IconType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/malloy-explorer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.266-dev250421232431",
|
|
4
4
|
"description": "Malloy visual query builder",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
"vite-plugin-svgr": "^4.3.0"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
|
-
"@malloydata/malloy-filter": ">=0.0.
|
|
103
|
-
"@malloydata/malloy-interfaces": ">=0.0.
|
|
104
|
-
"@malloydata/malloy-query-builder": ">=0.0.
|
|
105
|
-
"@malloydata/malloy-tag": ">=0.0.
|
|
106
|
-
"@malloydata/render": ">=0.0.
|
|
102
|
+
"@malloydata/malloy-filter": ">=0.0.266",
|
|
103
|
+
"@malloydata/malloy-interfaces": ">=0.0.266",
|
|
104
|
+
"@malloydata/malloy-query-builder": ">=0.0.266",
|
|
105
|
+
"@malloydata/malloy-tag": ">=0.0.266",
|
|
106
|
+
"@malloydata/render": ">=0.0.266",
|
|
107
107
|
"react": ">= 19.0.0",
|
|
108
108
|
"react-dom": ">= 19.0.0"
|
|
109
109
|
}
|