@malloydata/malloy-explorer 0.0.271-dev250506000031 → 0.0.275-dev250512182350

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.
@@ -10,7 +10,7 @@
10
10
  @layer priority1{
11
11
  :root, .mly16bcggl{--mly1rtpqm4:rgba(10, 19, 23, 0.2);--mlywmj25p:rgba(121, 82, 255, 0.2);--mly1f95ebd:rgba(36, 187, 94, 0.2);--mly1jva6ta:rgba(3, 167, 215, 0.2);--mly1yr7ch6:rgba(241, 244, 247, 1);--mly1bs2mf7:rgba(0, 130, 251, 0.2);--mlywj8cgu:rgba(11, 153, 31, 0.2);--mlyhsum04:rgba(226, 164, 0, 0.2);--mly19gk0g3:rgba(227, 25, 59, 0.2);--mlyrbis2b:rgba(204, 211, 219, 1);--mly1eayp21:rgba(230, 235, 239, 1);--mly1bn1nfc:rgba(37, 54, 63, 1);}
12
12
  :root, .mly182du4u{--mly231nev:rgba(10, 19, 23, 1);--mly1i3blw4:rgba(78, 96, 111, 1);--mly16ir2n5:rgba(164, 176, 188, 1);--mly883cce:rgba(0, 100, 224, 1);--mlyy3jzoq:rgba(255, 255, 255, 1);--mly7qnfvx:rgba(10, 19, 23, 1);--mly3ib3qi:rgba(62, 6, 151, 1);--mlyndhcph:rgba(9, 68, 31, 1);--mlykotp7t:rgba(1, 73, 117, 1);--mlyf25c1a:rgba(66, 133, 244, 1);}
13
- :root, .mlyacbved{--mly8s4nhd:rgba(10, 19, 23, 1);--mly130oqjo:rgba(78, 96, 111, 1);--mlywh4rgx:rgba(164, 176, 188, 1);--mly1gq6bli:rgba(255, 255, 255, 1);--mly1jphivy:rgba(10, 19, 23, 1);--mly6i1qgk:rgba(121, 82, 255, 1);--mly1css67u:rgba(7, 109, 41, 1);--mly1fea1fg:rgba(2, 141, 193, 1);--mlyz9tc12:rgba(233, 175, 8, 1);--mly1dryxz7:rgba(0, 100, 224, 1);--mly176ansx:rgba(13, 134, 38, 1);--mlybq1dnb:rgba(227, 25, 59, 1);}
13
+ :root, .mlyacbved{--mly8s4nhd:rgba(10, 19, 23, 1);--mly130oqjo:rgba(78, 96, 111, 1);--mlywh4rgx:rgba(164, 176, 188, 1);--mly1gq6bli:rgba(255, 255, 255, 1);--mly1jphivy:rgba(164, 176, 188, 1);--mly6i1qgk:rgba(121, 82, 255, 1);--mly1css67u:rgba(7, 109, 41, 1);--mly1fea1fg:rgba(2, 141, 193, 1);--mlyz9tc12:rgba(233, 175, 8, 1);--mly1dryxz7:rgba(0, 100, 224, 1);--mly176ansx:rgba(13, 134, 38, 1);--mlybq1dnb:rgba(227, 25, 59, 1);}
14
14
  :root, .mlyugude9{--mlyiz2tia:#0064E0;--mly1nffz32:#0082FB32;--mly1mq821i:white;--mlyz6dflh:rgba(0, 0, 0, 0.10);--mly4a29vv:#0000000D;--mlyhoywqa:#050505;--mly1qcfjts:#A4B0BC;}
15
15
  :root, .mly18uf1kx{--mlynfhokh:none;}
16
16
  :root, .mly11fl7i8{--mlyvpnzvp:none;}
@@ -239,6 +239,7 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
239
239
  .mly1pc1dlx{color:var(--malloy-composer-form-foreground,#5f6368)}
240
240
  .mly1r0d382{color:var(--mly130oqjo)}
241
241
  .mly1xre2ib{color:var(--mly13n7235)}
242
+ .mlywzxoxx{color:var(--mly16ir2n5)}
242
243
  .mly1l99qkd{color:var(--mly176ansx)}
243
244
  .mly1evcnq1{color:var(--mly1css67u)}
244
245
  .mly1tw9ct1{color:var(--mly1dryxz7)}
@@ -402,6 +403,7 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
402
403
  .mly1jkqq1h{max-width:280px}
403
404
  .mly1dc814f{max-width:350px}
404
405
  .mlyxc7z9f{max-width:360px}
406
+ .mly1j9u4d2{max-width:400px}
405
407
  .mlymcgfsh{max-width:60px}
406
408
  .mly2lwn1j{min-height:0}
407
409
  .mly4x6u8j{min-width:16.5px}
@@ -409,6 +411,7 @@ html[dir='rtl'] .mly17fq3gk{box-shadow:0 2px 12px 0 rgba(0,0,0,.1), 0 1px 2px 0
409
411
  .mlyt4ypqs{min-width:20px}
410
412
  .mlyytlacd{min-width:224px}
411
413
  .mlylm99nl{min-width:240px}
414
+ .mly2ixbly{min-width:250px}
412
415
  .mlyfvyar9{min-width:60px}
413
416
  .mly1onzeue{min-width:95px}
414
417
  .mly1odjw0f{overflow-y:auto}
@@ -464,12 +467,35 @@ div[data-radix-popper-content-wrapper] {
464
467
  z-index: 100 !important;
465
468
  }
466
469
  .malloy-render_result-wrapper malloy-render::part(table-container) {
467
- width: 100%;
470
+ width: 100%;
468
471
  }
469
472
 
470
473
  .malloy-render_result-wrapper {
471
- height: 100%;
472
- position: 'relative';
473
- z-index: 0;
474
- overflow: hidden;
475
- }
474
+ height: 100%;
475
+ position: 'relative';
476
+ z-index: 0;
477
+ overflow: hidden;
478
+ }
479
+
480
+ .malloy-tooltip {
481
+ background: rgba(255, 255, 255, 0.95);
482
+ padding: 8px;
483
+ border-radius: 4px;
484
+ box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
485
+ height: fit-content;
486
+ width: fit-content;
487
+ transform: translate(10px, 10px);
488
+ }
489
+
490
+ .malloy-tooltip--table {
491
+ th,
492
+ td {
493
+ text-wrap: nowrap;
494
+ }
495
+
496
+ th {
497
+ text-align: left;
498
+ }
499
+
500
+ font-size: 12px;
501
+ }
@@ -1,6 +1,12 @@
1
1
  import { SubmittedQuery } from './SubmittedQuery';
2
2
  import './result_display.css';
3
+ import type { MalloyRenderProps } from '@malloydata/render';
3
4
  import '@malloydata/render/webcomponent';
5
+ declare global {
6
+ interface HTMLElementTagNameMap {
7
+ 'malloy-render': HTMLElement & MalloyRenderProps;
8
+ }
9
+ }
4
10
  export interface ResultDisplayProps {
5
11
  query: SubmittedQuery;
6
12
  }
@@ -11,6 +11,7 @@ export { default as EditableToken } from './tokens/EditableToken';
11
11
  export { default as SelectorToken } from './tokens/SelectorToken';
12
12
  export { default as Card } from './Card';
13
13
  export { default as TextInput } from './TextInput';
14
+ export { default as CollapsiblePanel } from './CollapsiblePanel';
14
15
  export { default as CollapsibleListItem } from './lists/CollapsibleListItem';
15
16
  export { default as CodeBlock } from './CodeBlock';
16
17
  export { default as Spinner } from './Spinner';
@@ -1,5 +1,5 @@
1
1
  import * as Malloy from '@malloydata/malloy-interfaces';
2
- import { ASTSegmentViewDefinition } from '@malloydata/malloy-query-builder';
2
+ import { ASTSegmentViewDefinition, ParsedFilter } from '@malloydata/malloy-query-builder';
3
3
  import { ViewParent } from './fields';
4
4
  export declare function segmentHasLimit(segment: ASTSegmentViewDefinition): boolean;
5
5
  export declare function segmentHasOrderBy(segment: ASTSegmentViewDefinition, name: string): boolean;
@@ -7,4 +7,6 @@ export declare function segmentNestNo(segment: ASTSegmentViewDefinition, name?:
7
7
  export declare function addGroupBy(view: ViewParent, field: Malloy.FieldInfo, path: string[]): void;
8
8
  export declare function addAggregate(view: ViewParent, field: Malloy.FieldInfo, path: string[]): void;
9
9
  export declare function addNest(view: ViewParent, field: Malloy.FieldInfo): void;
10
+ export declare function addOrderBy(view: ViewParent, field: Malloy.FieldInfo, direction?: Malloy.OrderByDirection): void;
11
+ export declare function addFilter(view: ViewParent, field: Malloy.FieldInfo, path: string[], filter: ParsedFilter): void;
10
12
  export declare function getSegmentIfPresent(parent: ViewParent): ASTSegmentViewDefinition | undefined;
package/eslint.config.mjs CHANGED
@@ -91,13 +91,7 @@ export default [
91
91
 
92
92
  'no-throw-literal': 'error',
93
93
 
94
- '@typescript-eslint/consistent-type-imports': [
95
- 'error',
96
- {
97
- prefer: 'no-type-imports',
98
- },
99
- ],
100
-
94
+ '@typescript-eslint/consistent-type-imports': 'off',
101
95
  '@typescript-eslint/no-empty-function': 'off',
102
96
  '@typescript-eslint/no-non-null-assertion': 'off',
103
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy-explorer",
3
- "version": "0.0.271-dev250506000031",
3
+ "version": "0.0.275-dev250512182350",
4
4
  "description": "Malloy visual query builder",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "types": "dist/types/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  }
16
16
  },
17
17
  "./package.json": "./package.json",
18
- "./styles.css": "./dist/stylex.css"
18
+ "./styles.css": "./dist/malloy-explorer.css"
19
19
  },
20
20
  "scripts": {
21
21
  "build": "npm run build-bundle && npm run build-types && npm run build-flow",
@@ -102,11 +102,11 @@
102
102
  "vite-plugin-svgr": "^4.3.0"
103
103
  },
104
104
  "peerDependencies": {
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",
105
+ "@malloydata/malloy-filter": ">=0.0.275",
106
+ "@malloydata/malloy-interfaces": ">=0.0.275",
107
+ "@malloydata/malloy-query-builder": ">=0.0.275",
108
+ "@malloydata/malloy-tag": ">=0.0.275",
109
+ "@malloydata/render": ">=0.0.275",
110
110
  "react": ">= 19.0.0",
111
111
  "react-dom": ">= 19.0.0"
112
112
  }