@deephaven/storage 1.1.2-bisect-12.2 → 1.1.2-plotly-rc2.3
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.js.map +1 -1
- package/dist/StorageUtils.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
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: () => 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"
|
|
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/dist/StorageUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageUtils.js","names":["Operator","FilterOperator","StorageUtils","makeSortConfig","columnName","direction","column","makeFilterConfig","filters","filterItems","filterOperators","forEach","filterItem","i","push","and","combineFilterConfigs","config1","config2","operator","arguments","length","undefined","makeFilterItem","type","value"],"sources":["../src/StorageUtils.ts"],"sourcesContent":["import { Operator as FilterOperator } from '@deephaven/filters';\nimport {\n type FilterConfig,\n type FilterConfigItem,\n type FilterValue,\n type SortConfig,\n type SortDirection,\n} from './Storage';\n\nexport class StorageUtils {\n static makeSortConfig(\n columnName: string,\n direction: SortDirection\n ): SortConfig {\n return { column: columnName, direction };\n }\n\n static makeFilterConfig(filters: FilterConfigItem[]): FilterConfig {\n const filterItems: FilterConfigItem[] = [];\n const filterOperators: string[] = [];\n filters.forEach((filterItem, i) => {\n filterItems.push(filterItem);\n if (i > 0) {\n filterOperators.push(FilterOperator.and);\n }\n });\n return {\n filterItems,\n filterOperators,\n };\n }\n\n static combineFilterConfigs(\n config1: FilterConfig,\n config2: FilterConfig,\n operator = FilterOperator.and\n ): FilterConfig {\n return {\n filterItems: [...config1.filterItems, ...config2.filterItems],\n filterOperators: [\n ...config1.filterOperators,\n operator,\n ...config2.filterOperators,\n ],\n };\n }\n\n static makeFilterItem(\n columnName: string,\n type: string,\n value: FilterValue\n ): FilterConfigItem {\n return { columnName, type, value };\n }\n}\n\nexport default StorageUtils;\n"],"mappings":"AAAA,SAASA,QAAQ,IAAIC,cAAc,QAAQ,oBAAoB;AAS/D,OAAO,MAAMC,YAAY,CAAC;EACxB,OAAOC,cAAcA,CACnBC,UAAkB,EAClBC,SAAwB,EACZ;IACZ,OAAO;MAAEC,MAAM,EAAEF,UAAU;MAAEC;IAAU,CAAC;EAC1C;EAEA,OAAOE,gBAAgBA,CAACC,OAA2B,EAAgB;IACjE,IAAMC,WAA+B,GAAG,EAAE;IAC1C,IAAMC,eAAyB,GAAG,EAAE;IACpCF,OAAO,CAACG,OAAO,CAAC,CAACC,UAAU,EAAEC,CAAC,KAAK;MACjCJ,WAAW,CAACK,IAAI,CAACF,UAAU,CAAC;MAC5B,IAAIC,CAAC,GAAG,CAAC,EAAE;QACTH,eAAe,CAACI,IAAI,CAACb,cAAc,CAACc,GAAG,CAAC;MAC1C;IACF,CAAC,CAAC;IACF,OAAO;MACLN,WAAW;MACXC;IACF,CAAC;EACH;EAEA,OAAOM,oBAAoBA,CACzBC,OAAqB,EACrBC,OAAqB,EAEP;IAAA,IADdC,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGnB,cAAc,CAACc,GAAG;IAE7B,OAAO;MACLN,WAAW,EAAE,CAAC,GAAGQ,OAAO,CAACR,WAAW,EAAE,GAAGS,OAAO,CAACT,WAAW,CAAC;MAC7DC,eAAe,EAAE,CACf,GAAGO,OAAO,CAACP,eAAe,EAC1BS,QAAQ,EACR,GAAGD,OAAO,CAACR,eAAe;IAE9B,CAAC;EACH;EAEA,OAAOa,cAAcA,CACnBnB,UAAkB,EAClBoB,IAAY,EACZC,KAAkB,EACA;IAClB,OAAO;MAAErB,UAAU;MAAEoB,IAAI;MAAEC;IAAM,CAAC;EACpC;AACF;AAEA,eAAevB,YAAY"
|
|
1
|
+
{"version":3,"file":"StorageUtils.js","names":["Operator","FilterOperator","StorageUtils","makeSortConfig","columnName","direction","column","makeFilterConfig","filters","filterItems","filterOperators","forEach","filterItem","i","push","and","combineFilterConfigs","config1","config2","operator","arguments","length","undefined","makeFilterItem","type","value"],"sources":["../src/StorageUtils.ts"],"sourcesContent":["import { Operator as FilterOperator } from '@deephaven/filters';\nimport {\n type FilterConfig,\n type FilterConfigItem,\n type FilterValue,\n type SortConfig,\n type SortDirection,\n} from './Storage';\n\nexport class StorageUtils {\n static makeSortConfig(\n columnName: string,\n direction: SortDirection\n ): SortConfig {\n return { column: columnName, direction };\n }\n\n static makeFilterConfig(filters: FilterConfigItem[]): FilterConfig {\n const filterItems: FilterConfigItem[] = [];\n const filterOperators: string[] = [];\n filters.forEach((filterItem, i) => {\n filterItems.push(filterItem);\n if (i > 0) {\n filterOperators.push(FilterOperator.and);\n }\n });\n return {\n filterItems,\n filterOperators,\n };\n }\n\n static combineFilterConfigs(\n config1: FilterConfig,\n config2: FilterConfig,\n operator = FilterOperator.and\n ): FilterConfig {\n return {\n filterItems: [...config1.filterItems, ...config2.filterItems],\n filterOperators: [\n ...config1.filterOperators,\n operator,\n ...config2.filterOperators,\n ],\n };\n }\n\n static makeFilterItem(\n columnName: string,\n type: string,\n value: FilterValue\n ): FilterConfigItem {\n return { columnName, type, value };\n }\n}\n\nexport default StorageUtils;\n"],"mappings":"AAAA,SAASA,QAAQ,IAAIC,cAAc,QAAQ,oBAAoB;AAS/D,OAAO,MAAMC,YAAY,CAAC;EACxB,OAAOC,cAAcA,CACnBC,UAAkB,EAClBC,SAAwB,EACZ;IACZ,OAAO;MAAEC,MAAM,EAAEF,UAAU;MAAEC;IAAU,CAAC;EAC1C;EAEA,OAAOE,gBAAgBA,CAACC,OAA2B,EAAgB;IACjE,IAAMC,WAA+B,GAAG,EAAE;IAC1C,IAAMC,eAAyB,GAAG,EAAE;IACpCF,OAAO,CAACG,OAAO,CAAC,CAACC,UAAU,EAAEC,CAAC,KAAK;MACjCJ,WAAW,CAACK,IAAI,CAACF,UAAU,CAAC;MAC5B,IAAIC,CAAC,GAAG,CAAC,EAAE;QACTH,eAAe,CAACI,IAAI,CAACb,cAAc,CAACc,GAAG,CAAC;MAC1C;IACF,CAAC,CAAC;IACF,OAAO;MACLN,WAAW;MACXC;IACF,CAAC;EACH;EAEA,OAAOM,oBAAoBA,CACzBC,OAAqB,EACrBC,OAAqB,EAEP;IAAA,IADdC,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGnB,cAAc,CAACc,GAAG;IAE7B,OAAO;MACLN,WAAW,EAAE,CAAC,GAAGQ,OAAO,CAACR,WAAW,EAAE,GAAGS,OAAO,CAACT,WAAW,CAAC;MAC7DC,eAAe,EAAE,CACf,GAAGO,OAAO,CAACP,eAAe,EAC1BS,QAAQ,EACR,GAAGD,OAAO,CAACR,eAAe;IAE9B,CAAC;EACH;EAEA,OAAOa,cAAcA,CACnBnB,UAAkB,EAClBoB,IAAY,EACZC,KAAkB,EACA;IAClB,OAAO;MAAErB,UAAU;MAAEoB,IAAI;MAAEC;IAAM,CAAC;EACpC;AACF;AAEA,eAAevB,YAAY"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export * from './Storage';\nexport * from './StorageUtils';\n"],"mappings":""
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export * from './Storage';\nexport * from './StorageUtils';\n"],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/storage",
|
|
3
|
-
"version": "1.1.2-
|
|
3
|
+
"version": "1.1.2-plotly-rc2.3+2666a930",
|
|
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": "^1.1.2-
|
|
25
|
-
"@deephaven/log": "^1.1.2-
|
|
24
|
+
"@deephaven/filters": "^1.1.2-plotly-rc2.3+2666a930",
|
|
25
|
+
"@deephaven/log": "^1.1.2-plotly-rc2.3+2666a930",
|
|
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": "2666a9301704f73c0cf3ae056031099fd1bf25d6"
|
|
39
39
|
}
|