@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 +14 -16
- package/types/FilterModel.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/local-config.d.ts +3 -0
- package/types/use-filter-config.d.ts +12 -0
- package/types/use-rest-config.d.ts +11 -0
- package/cjs/index.js +0 -6552
- package/cjs/index.js.map +0 -7
- package/esm/index.js +0 -6635
- package/esm/index.js.map +0 -7
- package/index.css +0 -248
- package/index.css.map +0 -7
package/package.json
CHANGED
|
@@ -1,37 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
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.
|
|
9
|
-
"@vuu-ui/vuu-table-types": "0.8.
|
|
10
|
-
"@vuu-ui/vuu-filter-types": "0.8.
|
|
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.
|
|
15
|
-
"@vuu-ui/vuu-data-react": "0.8.
|
|
16
|
-
"@vuu-ui/vuu-popups": "0.8.
|
|
17
|
-
"@vuu-ui/vuu-ui-controls": "0.8.
|
|
18
|
-
"@vuu-ui/vuu-utils": "0.8.
|
|
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
|
-
"
|
|
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
|
}
|
package/types/FilterModel.d.ts
CHANGED
|
@@ -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 |
|
|
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
|
@@ -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 {};
|