@vuu-ui/vuu-filters 0.6.21 → 0.6.22-debug
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/cjs/index.js +1577 -1
- package/cjs/index.js.map +3 -3
- package/esm/index.js +1600 -1
- package/esm/index.js.map +3 -3
- package/index.css +56 -1
- package/index.css.map +1 -1
- package/package.json +4 -4
- package/types/filter-input/useCodeMirrorEditor.d.ts +10 -4
- package/types/filter-input/useFilterAutoComplete.d.ts +4 -1
- package/types/filter-input/useFilterSuggestionProvider.d.ts +6 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { CompletionSource } from "@vuu-ui/vuu-codemirror";
|
|
2
2
|
import { Filter } from "@vuu-ui/vuu-filter-types";
|
|
3
|
+
import { SyntaxNode } from "@lezer/common";
|
|
3
4
|
import { MutableRefObject } from "react";
|
|
4
5
|
import { IFilterSuggestionProvider } from "./useCodeMirrorEditor";
|
|
5
|
-
export type FilterSubmissionMode = "and" | "or" | "replace";
|
|
6
|
+
export type FilterSubmissionMode = "and" | "or" | "replace" | "tab";
|
|
6
7
|
export type ApplyCompletion = (mode?: FilterSubmissionMode) => void;
|
|
8
|
+
export declare const FilterlNamedTerms: readonly string[];
|
|
9
|
+
export declare const lastNamedChild: (node: SyntaxNode) => SyntaxNode | null;
|
|
7
10
|
export declare const useAutoComplete: (suggestionProvider: IFilterSuggestionProvider, onSubmit: MutableRefObject<ApplyCompletion>, existingFilter?: Filter) => CompletionSource;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
|
|
2
2
|
import { IFilterSuggestionProvider } from "@vuu-ui/vuu-filters";
|
|
3
3
|
import { VuuTable } from "@vuu-ui/vuu-protocol-types";
|
|
4
|
+
export type FilterSaveOptions = {
|
|
5
|
+
allowSaveAsTab?: boolean;
|
|
6
|
+
allowReplace?: boolean;
|
|
7
|
+
};
|
|
4
8
|
export interface SuggestionProviderHookProps {
|
|
5
9
|
columns: ColumnDescriptor[];
|
|
6
10
|
namedFilters?: Map<string, string>;
|
|
11
|
+
saveOptions?: FilterSaveOptions;
|
|
7
12
|
table: VuuTable;
|
|
8
13
|
}
|
|
9
|
-
export declare const useFilterSuggestionProvider: ({ columns, namedFilters, table, }: SuggestionProviderHookProps) => IFilterSuggestionProvider;
|
|
14
|
+
export declare const useFilterSuggestionProvider: ({ columns, namedFilters, saveOptions, table, }: SuggestionProviderHookProps) => IFilterSuggestionProvider;
|