@deephaven/storage 0.11.3-beta.0 → 0.11.3-beta.5
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/StorageUtils.js +1 -1
- package/dist/StorageUtils.js.map +1 -1
- package/dist/filters/FilterOperator.d.ts +7 -0
- package/dist/filters/FilterOperator.d.ts.map +1 -0
- package/dist/filters/FilterOperator.js +10 -0
- package/dist/filters/FilterOperator.js.map +1 -0
- package/dist/filters/FilterType.d.ts +26 -0
- package/dist/filters/FilterType.d.ts.map +1 -0
- package/dist/filters/FilterType.js +47 -0
- package/dist/filters/FilterType.js.map +1 -0
- package/dist/filters/index.d.ts +3 -0
- package/dist/filters/index.d.ts.map +1 -0
- package/dist/filters/index.js +3 -0
- package/dist/filters/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +5 -6
package/dist/StorageUtils.js
CHANGED
package/dist/StorageUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/StorageUtils.ts"],"names":["FilterOperator","StorageUtils","makeSortConfig","columnName","direction","column","makeFilterConfig","filters","filterItems","filterOperators","forEach","filterItem","i","push","and","combineFilterConfigs","config1","config2","operator","makeFilterItem","type","value"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/StorageUtils.ts"],"names":["FilterOperator","StorageUtils","makeSortConfig","columnName","direction","column","makeFilterConfig","filters","filterItems","filterOperators","forEach","filterItem","i","push","and","combineFilterConfigs","config1","config2","operator","makeFilterItem","type","value"],"mappings":"SAASA,c;AAST,OAAO,MAAMC,YAAN,CAAmB;AACH,SAAdC,cAAc,CACnBC,UADmB,EAEnBC,SAFmB,EAGP;AACZ,WAAO;AAAEC,MAAAA,MAAM,EAAEF,UAAV;AAAsBC,MAAAA;AAAtB,KAAP;AACD;;AAEsB,SAAhBE,gBAAgB,CAACC,OAAD,EAA4C;AACjE,QAAMC,WAA+B,GAAG,EAAxC;AACA,QAAMC,eAAyB,GAAG,EAAlC;AACAF,IAAAA,OAAO,CAACG,OAAR,CAAgB,CAACC,UAAD,EAAaC,CAAb,KAAmB;AACjCJ,MAAAA,WAAW,CAACK,IAAZ,CAAiBF,UAAjB;;AACA,UAAIC,CAAC,GAAG,CAAR,EAAW;AACTH,QAAAA,eAAe,CAACI,IAAhB,CAAqBb,cAAc,CAACc,GAApC;AACD;AACF,KALD;AAMA,WAAO;AACLN,MAAAA,WADK;AAELC,MAAAA;AAFK,KAAP;AAID;;AAE0B,SAApBM,oBAAoB,CACzBC,OADyB,EAEzBC,OAFyB,EAIX;AAAA,QADdC,QACc,uEADHlB,cAAc,CAACc,GACZ;AACd,WAAO;AACLN,MAAAA,WAAW,EAAE,CAAC,GAAGQ,OAAO,CAACR,WAAZ,EAAyB,GAAGS,OAAO,CAACT,WAApC,CADR;AAELC,MAAAA,eAAe,EAAE,CACf,GAAGO,OAAO,CAACP,eADI,EAEfS,QAFe,EAGf,GAAGD,OAAO,CAACR,eAHI;AAFZ,KAAP;AAQD;;AAEoB,SAAdU,cAAc,CACnBhB,UADmB,EAEnBiB,IAFmB,EAGnBC,KAHmB,EAID;AAClB,WAAO;AAAElB,MAAAA,UAAF;AAAciB,MAAAA,IAAd;AAAoBC,MAAAA;AAApB,KAAP;AACD;;AA5CuB;AA+C1B,eAAepB,YAAf","sourcesContent":["import { FilterOperator } from './filters';\nimport {\n FilterConfig,\n FilterConfigItem,\n FilterValue,\n SortConfig,\n 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"],"file":"StorageUtils.js"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare class FilterOperator {
|
|
2
|
+
static readonly not = "not";
|
|
3
|
+
static readonly and = "and";
|
|
4
|
+
static readonly or = "or";
|
|
5
|
+
}
|
|
6
|
+
export declare type FilterOperatorValue = typeof FilterOperator[Exclude<keyof typeof FilterOperator, 'prototype'>];
|
|
7
|
+
//# sourceMappingURL=FilterOperator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterOperator.d.ts","sourceRoot":"","sources":["../../src/filters/FilterOperator.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAc;IACzB,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;IAE5B,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;IAE5B,MAAM,CAAC,QAAQ,CAAC,EAAE,QAAQ;CAC3B;AAED,oBAAY,mBAAmB,GAAG,OAAO,cAAc,CAAC,OAAO,CAC7D,MAAM,OAAO,cAAc,EAC3B,WAAW,CACZ,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
|
|
3
|
+
export class FilterOperator {}
|
|
4
|
+
|
|
5
|
+
_defineProperty(FilterOperator, "not", 'not');
|
|
6
|
+
|
|
7
|
+
_defineProperty(FilterOperator, "and", 'and');
|
|
8
|
+
|
|
9
|
+
_defineProperty(FilterOperator, "or", 'or');
|
|
10
|
+
//# sourceMappingURL=FilterOperator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/filters/FilterOperator.ts"],"names":["FilterOperator"],"mappings":";;AAAA,OAAO,MAAMA,cAAN,CAAqB;;gBAAfA,c,SACW,K;;gBADXA,c,SAGW,K;;gBAHXA,c,QAKU,I","sourcesContent":["export class FilterOperator {\n static readonly not = 'not';\n\n static readonly and = 'and';\n\n static readonly or = 'or';\n}\n\nexport type FilterOperatorValue = typeof FilterOperator[Exclude<\n keyof typeof FilterOperator,\n 'prototype'\n>];\n"],"file":"FilterOperator.js"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Different filter conditions user can select */
|
|
2
|
+
export declare class FilterType {
|
|
3
|
+
static readonly eq = "eq";
|
|
4
|
+
static readonly eqIgnoreCase = "eqIgnoreCase";
|
|
5
|
+
static readonly notEq = "notEq";
|
|
6
|
+
static readonly notEqIgnoreCase = "notEqIgnoreCase";
|
|
7
|
+
static readonly greaterThan = "greaterThan";
|
|
8
|
+
static readonly greaterThanOrEqualTo = "greaterThanOrEqualTo";
|
|
9
|
+
static readonly lessThan = "lessThan";
|
|
10
|
+
static readonly lessThanOrEqualTo = "lessThanOrEqualTo";
|
|
11
|
+
static readonly in = "in";
|
|
12
|
+
static readonly inIgnoreCase = "inIgnoreCase";
|
|
13
|
+
static readonly notIn = "notIn";
|
|
14
|
+
static readonly notInIgnoreCase = "notInIgnoreCase";
|
|
15
|
+
static readonly isTrue = "isTrue";
|
|
16
|
+
static readonly isFalse = "isFalse";
|
|
17
|
+
static readonly isNull = "isNull";
|
|
18
|
+
static readonly invoke = "invoke";
|
|
19
|
+
static readonly contains = "contains";
|
|
20
|
+
static readonly notContains = "notContains";
|
|
21
|
+
static readonly startsWith = "startsWith";
|
|
22
|
+
static readonly endsWith = "endsWith";
|
|
23
|
+
static readonly containsAny = "containsAny";
|
|
24
|
+
}
|
|
25
|
+
export declare type FilterTypeValue = typeof FilterType[Exclude<keyof typeof FilterType, 'prototype'>];
|
|
26
|
+
//# sourceMappingURL=FilterType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterType.d.ts","sourceRoot":"","sources":["../../src/filters/FilterType.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,qBAAa,UAAU;IACrB,MAAM,CAAC,QAAQ,CAAC,EAAE,QAAQ;IAE1B,MAAM,CAAC,QAAQ,CAAC,YAAY,kBAAkB;IAE9C,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW;IAEhC,MAAM,CAAC,QAAQ,CAAC,eAAe,qBAAqB;IAEpD,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAiB;IAE5C,MAAM,CAAC,QAAQ,CAAC,oBAAoB,0BAA0B;IAE9D,MAAM,CAAC,QAAQ,CAAC,QAAQ,cAAc;IAEtC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,uBAAuB;IAExD,MAAM,CAAC,QAAQ,CAAC,EAAE,QAAQ;IAE1B,MAAM,CAAC,QAAQ,CAAC,YAAY,kBAAkB;IAE9C,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW;IAEhC,MAAM,CAAC,QAAQ,CAAC,eAAe,qBAAqB;IAEpD,MAAM,CAAC,QAAQ,CAAC,MAAM,YAAY;IAElC,MAAM,CAAC,QAAQ,CAAC,OAAO,aAAa;IAEpC,MAAM,CAAC,QAAQ,CAAC,MAAM,YAAY;IAElC,MAAM,CAAC,QAAQ,CAAC,MAAM,YAAY;IAElC,MAAM,CAAC,QAAQ,CAAC,QAAQ,cAAc;IAEtC,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAiB;IAE5C,MAAM,CAAC,QAAQ,CAAC,UAAU,gBAAgB;IAE1C,MAAM,CAAC,QAAQ,CAAC,QAAQ,cAAc;IAEtC,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAiB;CAC7C;AAED,oBAAY,eAAe,GAAG,OAAO,UAAU,CAAC,OAAO,CACrD,MAAM,OAAO,UAAU,EACvB,WAAW,CACZ,CAAC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
|
|
3
|
+
/** Different filter conditions user can select */
|
|
4
|
+
export class FilterType {}
|
|
5
|
+
|
|
6
|
+
_defineProperty(FilterType, "eq", 'eq');
|
|
7
|
+
|
|
8
|
+
_defineProperty(FilterType, "eqIgnoreCase", 'eqIgnoreCase');
|
|
9
|
+
|
|
10
|
+
_defineProperty(FilterType, "notEq", 'notEq');
|
|
11
|
+
|
|
12
|
+
_defineProperty(FilterType, "notEqIgnoreCase", 'notEqIgnoreCase');
|
|
13
|
+
|
|
14
|
+
_defineProperty(FilterType, "greaterThan", 'greaterThan');
|
|
15
|
+
|
|
16
|
+
_defineProperty(FilterType, "greaterThanOrEqualTo", 'greaterThanOrEqualTo');
|
|
17
|
+
|
|
18
|
+
_defineProperty(FilterType, "lessThan", 'lessThan');
|
|
19
|
+
|
|
20
|
+
_defineProperty(FilterType, "lessThanOrEqualTo", 'lessThanOrEqualTo');
|
|
21
|
+
|
|
22
|
+
_defineProperty(FilterType, "in", 'in');
|
|
23
|
+
|
|
24
|
+
_defineProperty(FilterType, "inIgnoreCase", 'inIgnoreCase');
|
|
25
|
+
|
|
26
|
+
_defineProperty(FilterType, "notIn", 'notIn');
|
|
27
|
+
|
|
28
|
+
_defineProperty(FilterType, "notInIgnoreCase", 'notInIgnoreCase');
|
|
29
|
+
|
|
30
|
+
_defineProperty(FilterType, "isTrue", 'isTrue');
|
|
31
|
+
|
|
32
|
+
_defineProperty(FilterType, "isFalse", 'isFalse');
|
|
33
|
+
|
|
34
|
+
_defineProperty(FilterType, "isNull", 'isNull');
|
|
35
|
+
|
|
36
|
+
_defineProperty(FilterType, "invoke", 'invoke');
|
|
37
|
+
|
|
38
|
+
_defineProperty(FilterType, "contains", 'contains');
|
|
39
|
+
|
|
40
|
+
_defineProperty(FilterType, "notContains", 'notContains');
|
|
41
|
+
|
|
42
|
+
_defineProperty(FilterType, "startsWith", 'startsWith');
|
|
43
|
+
|
|
44
|
+
_defineProperty(FilterType, "endsWith", 'endsWith');
|
|
45
|
+
|
|
46
|
+
_defineProperty(FilterType, "containsAny", 'containsAny');
|
|
47
|
+
//# sourceMappingURL=FilterType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/filters/FilterType.ts"],"names":["FilterType"],"mappings":";;AAAA;AACA,OAAO,MAAMA,UAAN,CAAiB;;gBAAXA,U,QACU,I;;gBADVA,U,kBAGoB,c;;gBAHpBA,U,WAKa,O;;gBALbA,U,qBAOuB,iB;;gBAPvBA,U,iBASmB,a;;gBATnBA,U,0BAW4B,sB;;gBAX5BA,U,cAagB,U;;gBAbhBA,U,uBAeyB,mB;;gBAfzBA,U,QAiBU,I;;gBAjBVA,U,kBAmBoB,c;;gBAnBpBA,U,WAqBa,O;;gBArBbA,U,qBAuBuB,iB;;gBAvBvBA,U,YAyBc,Q;;gBAzBdA,U,aA2Be,S;;gBA3BfA,U,YA6Bc,Q;;gBA7BdA,U,YA+Bc,Q;;gBA/BdA,U,cAiCgB,U;;gBAjChBA,U,iBAmCmB,a;;gBAnCnBA,U,gBAqCkB,Y;;gBArClBA,U,cAuCgB,U;;gBAvChBA,U,iBAyCmB,a","sourcesContent":["/** Different filter conditions user can select */\nexport class FilterType {\n static readonly eq = 'eq';\n\n static readonly eqIgnoreCase = 'eqIgnoreCase';\n\n static readonly notEq = 'notEq';\n\n static readonly notEqIgnoreCase = 'notEqIgnoreCase';\n\n static readonly greaterThan = 'greaterThan';\n\n static readonly greaterThanOrEqualTo = 'greaterThanOrEqualTo';\n\n static readonly lessThan = 'lessThan';\n\n static readonly lessThanOrEqualTo = 'lessThanOrEqualTo';\n\n static readonly in = 'in';\n\n static readonly inIgnoreCase = 'inIgnoreCase';\n\n static readonly notIn = 'notIn';\n\n static readonly notInIgnoreCase = 'notInIgnoreCase';\n\n static readonly isTrue = 'isTrue';\n\n static readonly isFalse = 'isFalse';\n\n static readonly isNull = 'isNull';\n\n static readonly invoke = 'invoke';\n\n static readonly contains = 'contains';\n\n static readonly notContains = 'notContains';\n\n static readonly startsWith = 'startsWith';\n\n static readonly endsWith = 'endsWith';\n\n static readonly containsAny = 'containsAny';\n}\n\nexport type FilterTypeValue = typeof FilterType[Exclude<\n keyof typeof FilterType,\n 'prototype'\n>];\n"],"file":"FilterType.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/filters/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"index.js"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/storage",
|
|
3
|
-
"version": "0.11.3-beta.
|
|
3
|
+
"version": "0.11.3-beta.5+43ee222",
|
|
4
4
|
"description": "Deephaven Storage abstract classes for storing app data",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"types": "dist/index.d.ts",
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": ">=
|
|
17
|
+
"node": ">=16"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "cross-env NODE_ENV=production run-p build:*",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"start": "cross-env NODE_ENV=development npm run watch"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@deephaven/iris-grid": "^0.11.3-beta.0+548192a",
|
|
31
30
|
"lodash.throttle": "^4.1.1"
|
|
32
31
|
},
|
|
33
32
|
"peerDependencies": {
|
|
@@ -36,8 +35,8 @@
|
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
38
37
|
"@babel/cli": "^7.16.0",
|
|
39
|
-
"@deephaven/log": "^0.11.3-beta.
|
|
40
|
-
"@deephaven/tsconfig": "^0.11.3-beta.
|
|
38
|
+
"@deephaven/log": "^0.11.3-beta.5+43ee222",
|
|
39
|
+
"@deephaven/tsconfig": "^0.11.3-beta.5+43ee222",
|
|
41
40
|
"@types/lodash.throttle": "^4.1.1",
|
|
42
41
|
"cross-env": "^7.0.2",
|
|
43
42
|
"npm-run-all": "^4.1.5",
|
|
@@ -50,5 +49,5 @@
|
|
|
50
49
|
"publishConfig": {
|
|
51
50
|
"access": "public"
|
|
52
51
|
},
|
|
53
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "43ee2223f2bdf43e30a331fd860870efeebcad78"
|
|
54
53
|
}
|