@vuu-ui/vuu-filters 0.8.32-debug → 0.8.33

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/package.json CHANGED
@@ -1,37 +1,35 @@
1
1
  {
2
- "name": "@vuu-ui/vuu-filters",
3
- "version": "0.8.32-debug",
2
+ "version": "0.8.33",
4
3
  "author": "heswell",
5
4
  "license": "Apache-2.0",
6
5
  "type": "module",
7
6
  "devDependencies": {
8
- "@vuu-ui/vuu-data-types": "0.8.32-debug",
9
- "@vuu-ui/vuu-table-types": "0.8.32-debug",
10
- "@vuu-ui/vuu-filter-types": "0.8.32-debug",
7
+ "@vuu-ui/vuu-data-types": "0.8.33",
8
+ "@vuu-ui/vuu-table-types": "0.8.33",
9
+ "@vuu-ui/vuu-filter-types": "0.8.33",
11
10
  "@types/uuid": "^9.0.2"
12
11
  },
13
12
  "dependencies": {
14
- "@vuu-ui/vuu-codemirror": "0.8.32-debug",
15
- "@vuu-ui/vuu-data-react": "0.8.32-debug",
16
- "@vuu-ui/vuu-popups": "0.8.32-debug",
17
- "@vuu-ui/vuu-ui-controls": "0.8.32-debug",
18
- "@vuu-ui/vuu-utils": "0.8.32-debug",
13
+ "@vuu-ui/vuu-codemirror": "0.8.33",
14
+ "@vuu-ui/vuu-data-react": "0.8.33",
15
+ "@vuu-ui/vuu-popups": "0.8.33",
16
+ "@vuu-ui/vuu-ui-controls": "0.8.33",
17
+ "@vuu-ui/vuu-utils": "0.8.33",
19
18
  "@salt-ds/core": "1.17.0",
20
19
  "uuid": "9.0.0"
21
20
  },
22
21
  "peerDependencies": {
22
+ "@internationalized/date": "^3.0.0",
23
+ "clsx": "^2.0.0",
23
24
  "react": ">=17.0.2",
24
25
  "react-dom": ">=17.0.2"
25
26
  },
26
27
  "files": [
27
- "cjs",
28
- "esm",
29
- "index.css",
30
- "index.css.map",
28
+ "README.md",
31
29
  "/types"
32
30
  ],
33
- "style": "index.css",
34
- "module": "esm/index.js",
35
31
  "main": "cjs/index.js",
32
+ "module": "esm/index.js",
33
+ "name": "@vuu-ui/vuu-filters",
36
34
  "types": "types/index.d.ts"
37
35
  }
@@ -18,7 +18,7 @@ export declare class FilterClauseModel extends EventEmitter<FilterClauseModelEve
18
18
  private setIsValid;
19
19
  get column(): undefined | string;
20
20
  set column(column: undefined | string);
21
- get op(): import("@vuu-ui/vuu-filter-types").SingleValueFilterClauseOp | "in" | undefined;
21
+ get op(): "in" | import("@vuu-ui/vuu-filter-types").SingleValueFilterClauseOp | undefined;
22
22
  setOp(op: undefined | FilterClauseOp): void;
23
23
  setValue(value: undefined | string | string[] | number | number[] | boolean | boolean[], isFinal?: boolean): void;
24
24
  asFilter(throwIfInvalid?: boolean): FilterClause;
package/types/index.d.ts CHANGED
@@ -5,3 +5,5 @@ export * from "./filter-editor";
5
5
  export * from "./filter-input";
6
6
  export * from "./filter-pill";
7
7
  export * from "./filter-utils";
8
+ export * from "./local-config";
9
+ export * from "./use-filter-config";
@@ -0,0 +1,3 @@
1
+ export declare const getLocalEntity: <T>(url: string) => T | undefined;
2
+ export declare const getAllLocalEntity: <T>(url: string) => T[];
3
+ export declare const saveLocalEntity: <T>(url: string, data: T) => T | undefined;
@@ -0,0 +1,12 @@
1
+ import { NamedDataSourceFilter } from "@vuu-ui/vuu-data-types";
2
+ import { SaveLocation, VuuUser } from "@vuu-ui/vuu-shell";
3
+ export interface FilterConfigHookProps {
4
+ user: VuuUser;
5
+ saveUrl?: string;
6
+ saveLocation: SaveLocation;
7
+ }
8
+ export declare const useFilterConfig: ({ user, saveUrl, saveLocation, }: FilterConfigHookProps) => {
9
+ allFilters: NamedDataSourceFilter[] | undefined;
10
+ getFilterById: (id: string) => Promise<NamedDataSourceFilter | undefined>;
11
+ saveFilter: (filter: NamedDataSourceFilter) => Promise<void>;
12
+ };
@@ -0,0 +1,11 @@
1
+ import { SaveLocation } from "@vuu-ui/vuu-shell";
2
+ type EntityStoreProps = {
3
+ baseUrl: string;
4
+ saveLocation: SaveLocation;
5
+ };
6
+ export declare const useRestEntityStore: <T>({ baseUrl, saveLocation, }: EntityStoreProps) => {
7
+ getAll: () => Promise<T[] | undefined>;
8
+ get: (id: string) => Promise<T | undefined>;
9
+ save: (data: T) => Promise<T | undefined>;
10
+ };
11
+ export {};