@malloydata/malloy-explorer 0.0.278-dev250515234639 → 0.0.278-dev250516210719

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.
@@ -2,7 +2,11 @@ import * as Malloy from '@malloydata/malloy-interfaces';
2
2
  import { ViewParent } from '../../utils/fields';
3
3
  export declare function useOperations(view: ViewParent, field: Malloy.FieldInfo, path: string[]): {
4
4
  isGroupByAllowed: boolean;
5
+ groupByDisabledReason: string;
5
6
  isAggregateAllowed: boolean;
7
+ aggregateDisabledReason: string;
6
8
  isFilterAllowed: boolean;
9
+ filterDisabledReason: string;
7
10
  isOrderByAllowed: boolean;
11
+ orderByDisabledReason: string;
8
12
  };
@@ -1,12 +1,16 @@
1
1
  import * as Malloy from '@malloydata/malloy-interfaces';
2
2
  import { ASTSegmentViewDefinition, ParsedFilter } from '@malloydata/malloy-query-builder';
3
3
  import { ViewParent } from './fields';
4
+ export declare function toFullName(path: string[] | undefined, name: string): string;
4
5
  export declare function segmentHasLimit(segment: ASTSegmentViewDefinition): boolean;
5
6
  export declare function segmentHasOrderBy(segment: ASTSegmentViewDefinition, name: string): boolean;
7
+ export declare function segmentHasOrderBySourceField(segment: ASTSegmentViewDefinition, path: string[] | undefined, name: string): boolean;
8
+ export declare function segmentHasFieldInOutputSpace(segment: ASTSegmentViewDefinition, path: string[], name: string): boolean;
6
9
  export declare function segmentNestNo(segment: ASTSegmentViewDefinition, name?: string): number;
7
10
  export declare function addGroupBy(view: ViewParent, field: Malloy.FieldInfo, path: string[]): void;
8
11
  export declare function addAggregate(view: ViewParent, field: Malloy.FieldInfo, path: string[]): void;
9
12
  export declare function addNest(view: ViewParent, field: Malloy.FieldInfo): void;
13
+ export declare function addOrderByFromSource(view: ViewParent, path: string[], name: string, direction?: Malloy.OrderByDirection): void;
10
14
  export declare function addOrderBy(view: ViewParent, field: Malloy.FieldInfo, direction?: Malloy.OrderByDirection): void;
11
15
  export declare function addFilter(view: ViewParent, field: Malloy.FieldInfo, path: string[], filter: ParsedFilter): void;
12
16
  export declare function getSegmentIfPresent(parent: ViewParent): ASTSegmentViewDefinition | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy-explorer",
3
- "version": "0.0.278-dev250515234639",
3
+ "version": "0.0.278-dev250516210719",
4
4
  "description": "Malloy visual query builder",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "types": "dist/types/index.d.ts",
@@ -8,10 +8,12 @@
8
8
  "exports": {
9
9
  ".": {
10
10
  "import": {
11
- "default": "./dist/esm/index.js"
11
+ "default": "./dist/esm/index.js",
12
+ "types": "./dist/types/index.d.ts"
12
13
  },
13
14
  "require": {
14
- "default": "./dist/cjs/index.cjs"
15
+ "default": "./dist/cjs/index.cjs",
16
+ "types": "./dist/types/index.d.ts"
15
17
  }
16
18
  },
17
19
  "./package.json": "./package.json",