@deephaven/storage 0.51.1-beta.0 → 0.52.1-alpha-mock-css-imports.2
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/dist/Storage.d.ts +10 -10
- package/dist/Storage.d.ts.map +1 -1
- package/dist/Storage.js.map +1 -1
- package/package.json +4 -4
package/dist/Storage.d.ts
CHANGED
|
@@ -18,18 +18,18 @@ export type SortConfig = {
|
|
|
18
18
|
};
|
|
19
19
|
export type IndexRange = number[];
|
|
20
20
|
export interface Storage<T extends StorageItem> {
|
|
21
|
-
getTable()
|
|
22
|
-
close()
|
|
21
|
+
getTable: () => Promise<StorageTable<T>>;
|
|
22
|
+
close: () => void;
|
|
23
23
|
}
|
|
24
24
|
export interface StorageTable<T extends StorageItem> {
|
|
25
|
-
getViewportData()
|
|
26
|
-
getSnapshot(sortedRanges: IndexRange[])
|
|
27
|
-
setViewport(viewport: StorageTableViewport)
|
|
28
|
-
setFilters(config: FilterConfig[] | null)
|
|
29
|
-
setSorts(config: SortConfig[] | null)
|
|
30
|
-
setReversed(isReversed: boolean)
|
|
31
|
-
close()
|
|
32
|
-
onUpdate(callback: ViewportUpdateCallback<T>)
|
|
25
|
+
getViewportData: () => Promise<ViewportData<T>>;
|
|
26
|
+
getSnapshot: (sortedRanges: IndexRange[]) => Promise<StorageSnapshot<T>>;
|
|
27
|
+
setViewport: (viewport: StorageTableViewport) => void;
|
|
28
|
+
setFilters: (config: FilterConfig[] | null) => void;
|
|
29
|
+
setSorts: (config: SortConfig[] | null) => void;
|
|
30
|
+
setReversed: (isReversed: boolean) => void;
|
|
31
|
+
close: () => void;
|
|
32
|
+
onUpdate: (callback: ViewportUpdateCallback<T>) => StorageListenerRemover;
|
|
33
33
|
size: number;
|
|
34
34
|
}
|
|
35
35
|
export interface StorageItem {
|
package/dist/Storage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Storage.d.ts","sourceRoot":"","s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SAAS,WAAW,IAAI;IAChD,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,WAAW,IAAI,CAC1D,cAAc,EAAE,YAAY,CAAC,CAAC,CAAC,KAC5B,IAAI,CAAC;AAEV,MAAM,MAAM,sBAAsB,GAAG,MAAM,IAAI,CAAC;AAEhD,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,WAAW,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;AAE7E,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC"}
|
package/dist/Storage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Storage.js","names":["SortDirection"],"sources":["../src/Storage.ts"],"sourcesContent":["export type FilterValue = number | string | string[];\n\nexport type FilterConfigItem = {\n columnName: string;\n type: string;\n value: FilterValue;\n};\n\nexport type FilterConfig = {\n filterItems: FilterConfigItem[];\n filterOperators: string[];\n};\n\nexport enum SortDirection {\n ASC = 'asc',\n DESC = 'desc',\n}\n\nexport type SortConfig = {\n column: string;\n direction: SortDirection;\n};\n\nexport type IndexRange = number[];\n\nexport interface Storage<T extends StorageItem> {\n getTable()
|
|
1
|
+
{"version":3,"file":"Storage.js","names":["SortDirection"],"sources":["../src/Storage.ts"],"sourcesContent":["export type FilterValue = number | string | string[];\n\nexport type FilterConfigItem = {\n columnName: string;\n type: string;\n value: FilterValue;\n};\n\nexport type FilterConfig = {\n filterItems: FilterConfigItem[];\n filterOperators: string[];\n};\n\nexport enum SortDirection {\n ASC = 'asc',\n DESC = 'desc',\n}\n\nexport type SortConfig = {\n column: string;\n direction: SortDirection;\n};\n\nexport type IndexRange = number[];\n\nexport interface Storage<T extends StorageItem> {\n getTable: () => Promise<StorageTable<T>>;\n close: () => void;\n}\n\nexport interface StorageTable<T extends StorageItem> {\n getViewportData: () => Promise<ViewportData<T>>;\n getSnapshot: (sortedRanges: IndexRange[]) => Promise<StorageSnapshot<T>>;\n setViewport: (viewport: StorageTableViewport) => void;\n setFilters: (config: FilterConfig[] | null) => void;\n setSorts: (config: SortConfig[] | null) => void;\n setReversed: (isReversed: boolean) => void;\n close: () => void;\n onUpdate: (callback: ViewportUpdateCallback<T>) => StorageListenerRemover;\n size: number;\n}\n\nexport interface StorageItem {\n id: string;\n}\n\nexport interface UnsavedStorageItem {\n id: undefined;\n}\n\nexport type StorageTableViewport = {\n top: number;\n bottom: number;\n columns?: string[];\n};\n\nexport type StorageSnapshot<T extends StorageItem> = Map<number, T>;\n\nexport type ViewportData<T extends StorageItem> = {\n items: T[];\n offset: number;\n};\n\nexport type ViewportUpdateCallback<T extends StorageItem> = (\n viewportUpdate: ViewportData<T>\n) => void;\n\nexport type StorageListenerRemover = () => void;\n\nexport type StorageItemListener<T extends StorageItem> = (update: T) => void;\n\nexport type StorageErrorListener = (error: string) => void;\n"],"mappings":"AAaA,WAAYA,aAAa;AAGxB,WAHWA,aAAa;EAAbA,aAAa;EAAbA,aAAa;AAAA,GAAbA,aAAa,KAAbA,aAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/storage",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.1-alpha-mock-css-imports.2+8f22bf9c",
|
|
4
4
|
"description": "Deephaven Storage abstract classes for storing app data",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"build:babel": "babel ./src --out-dir ./dist --extensions \".ts,.tsx,.js,.jsx\" --source-maps --root-mode upward"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@deephaven/filters": "^0.
|
|
25
|
-
"@deephaven/log": "^0.
|
|
24
|
+
"@deephaven/filters": "^0.52.1-alpha-mock-css-imports.2+8f22bf9c",
|
|
25
|
+
"@deephaven/log": "^0.52.1-alpha-mock-css-imports.2+8f22bf9c",
|
|
26
26
|
"lodash.throttle": "^4.1.1"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "8f22bf9c6e5d829c880263e83b4e88aca9d6e26b"
|
|
39
39
|
}
|