@platforma-sdk/model 1.53.11 → 1.53.13
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/annotations/converter.cjs +11 -11
- package/dist/annotations/converter.cjs.map +1 -1
- package/dist/annotations/converter.d.ts +1 -1
- package/dist/annotations/converter.d.ts.map +1 -1
- package/dist/annotations/converter.js +11 -11
- package/dist/annotations/converter.js.map +1 -1
- package/dist/annotations/index.d.ts +2 -2
- package/dist/annotations/types.d.ts +4 -4
- package/dist/bconfig/index.d.ts +5 -5
- package/dist/bconfig/lambdas.d.ts +7 -7
- package/dist/bconfig/lambdas.d.ts.map +1 -1
- package/dist/bconfig/normalization.cjs.map +1 -1
- package/dist/bconfig/normalization.d.ts +3 -3
- package/dist/bconfig/normalization.js.map +1 -1
- package/dist/bconfig/types.cjs.map +1 -1
- package/dist/bconfig/types.d.ts +2 -2
- package/dist/bconfig/types.d.ts.map +1 -1
- package/dist/bconfig/types.js.map +1 -1
- package/dist/bconfig/util.d.ts +4 -4
- package/dist/bconfig/v3.d.ts +3 -3
- package/dist/block_api_v1.d.ts +2 -2
- package/dist/block_api_v1.d.ts.map +1 -1
- package/dist/block_api_v2.d.ts +2 -2
- package/dist/block_api_v2.d.ts.map +1 -1
- package/dist/block_api_v3.d.ts +3 -3
- package/dist/block_migrations.cjs +10 -10
- package/dist/block_migrations.cjs.map +1 -1
- package/dist/block_migrations.d.ts.map +1 -1
- package/dist/block_migrations.js +10 -10
- package/dist/block_migrations.js.map +1 -1
- package/dist/block_model.cjs +11 -11
- package/dist/block_model.cjs.map +1 -1
- package/dist/block_model.d.ts +8 -8
- package/dist/block_model.d.ts.map +1 -1
- package/dist/block_model.js +11 -11
- package/dist/block_model.js.map +1 -1
- package/dist/block_state_patch.d.ts +2 -2
- package/dist/block_state_util.cjs +1 -1
- package/dist/block_state_util.cjs.map +1 -1
- package/dist/block_state_util.d.ts +3 -3
- package/dist/block_state_util.js +1 -1
- package/dist/block_state_util.js.map +1 -1
- package/dist/block_storage.cjs +10 -10
- package/dist/block_storage.cjs.map +1 -1
- package/dist/block_storage.d.ts +2 -2
- package/dist/block_storage.d.ts.map +1 -1
- package/dist/block_storage.js +10 -10
- package/dist/block_storage.js.map +1 -1
- package/dist/block_storage_vm.cjs +22 -22
- package/dist/block_storage_vm.cjs.map +1 -1
- package/dist/block_storage_vm.d.ts +1 -1
- package/dist/block_storage_vm.d.ts.map +1 -1
- package/dist/block_storage_vm.js +22 -22
- package/dist/block_storage_vm.js.map +1 -1
- package/dist/builder.cjs +32 -23
- package/dist/builder.cjs.map +1 -1
- package/dist/builder.d.ts +7 -7
- package/dist/builder.d.ts.map +1 -1
- package/dist/builder.js +32 -23
- package/dist/builder.js.map +1 -1
- package/dist/components/PFrameForGraphs.cjs +7 -6
- package/dist/components/PFrameForGraphs.cjs.map +1 -1
- package/dist/components/PFrameForGraphs.d.ts +4 -4
- package/dist/components/PFrameForGraphs.d.ts.map +1 -1
- package/dist/components/PFrameForGraphs.js +7 -6
- package/dist/components/PFrameForGraphs.js.map +1 -1
- package/dist/components/PlAnnotations/filter.d.ts +14 -14
- package/dist/components/PlAnnotations/filter.d.ts.map +1 -1
- package/dist/components/PlAnnotations/filters_ui.cjs +46 -46
- package/dist/components/PlAnnotations/filters_ui.cjs.map +1 -1
- package/dist/components/PlAnnotations/filters_ui.d.ts +10 -34
- package/dist/components/PlAnnotations/filters_ui.d.ts.map +1 -1
- package/dist/components/PlAnnotations/filters_ui.js +46 -46
- package/dist/components/PlAnnotations/filters_ui.js.map +1 -1
- package/dist/components/PlAnnotations/index.d.ts +2 -2
- package/dist/components/PlAnnotations/types.d.ts +2 -2
- package/dist/components/PlDataTable.cjs +19 -20
- package/dist/components/PlDataTable.cjs.map +1 -1
- package/dist/components/PlDataTable.d.ts +27 -27
- package/dist/components/PlDataTable.d.ts.map +1 -1
- package/dist/components/PlDataTable.js +19 -20
- package/dist/components/PlDataTable.js.map +1 -1
- package/dist/components/PlMultiSequenceAlignment.cjs +2 -2
- package/dist/components/PlMultiSequenceAlignment.cjs.map +1 -1
- package/dist/components/PlMultiSequenceAlignment.d.ts +6 -6
- package/dist/components/PlMultiSequenceAlignment.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment.js +2 -2
- package/dist/components/PlMultiSequenceAlignment.js.map +1 -1
- package/dist/components/PlSelectionModel.cjs.map +1 -1
- package/dist/components/PlSelectionModel.d.ts +1 -1
- package/dist/components/PlSelectionModel.js.map +1 -1
- package/dist/components/index.d.ts +5 -5
- package/dist/config/actions.cjs +39 -39
- package/dist/config/actions.cjs.map +1 -1
- package/dist/config/actions.d.ts +9 -9
- package/dist/config/actions.d.ts.map +1 -1
- package/dist/config/actions.js +39 -39
- package/dist/config/actions.js.map +1 -1
- package/dist/config/actions_kinds.d.ts +30 -30
- package/dist/config/actions_kinds.d.ts.map +1 -1
- package/dist/config/index.d.ts +6 -6
- package/dist/config/model.d.ts +28 -28
- package/dist/config/model_meta.d.ts +1 -1
- package/dist/config/type_engine.d.ts +3 -3
- package/dist/config/type_util.d.ts +2 -2
- package/dist/env_value.cjs +1 -1
- package/dist/env_value.cjs.map +1 -1
- package/dist/env_value.js +1 -1
- package/dist/env_value.js.map +1 -1
- package/dist/filters/converter.cjs +36 -32
- package/dist/filters/converter.cjs.map +1 -1
- package/dist/filters/converter.d.ts +2 -2
- package/dist/filters/converter.d.ts.map +1 -1
- package/dist/filters/converter.js +36 -32
- package/dist/filters/converter.js.map +1 -1
- package/dist/filters/index.d.ts +2 -2
- package/dist/filters/types.d.ts +33 -33
- package/dist/filters/types.d.ts.map +1 -1
- package/dist/index.d.ts +24 -24
- package/dist/internal.cjs +7 -7
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.ts +4 -4
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/internal.js.map +1 -1
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/dist/pframe.cjs +1 -1
- package/dist/pframe.cjs.map +1 -1
- package/dist/pframe.d.ts +1 -1
- package/dist/pframe.js +1 -1
- package/dist/pframe.js.map +1 -1
- package/dist/pframe_utils/columns.cjs +23 -15
- package/dist/pframe_utils/columns.cjs.map +1 -1
- package/dist/pframe_utils/columns.d.ts +3 -3
- package/dist/pframe_utils/columns.d.ts.map +1 -1
- package/dist/pframe_utils/columns.js +23 -15
- package/dist/pframe_utils/columns.js.map +1 -1
- package/dist/pframe_utils/index.cjs +25 -25
- package/dist/pframe_utils/index.cjs.map +1 -1
- package/dist/pframe_utils/index.d.ts +3 -3
- package/dist/pframe_utils/index.d.ts.map +1 -1
- package/dist/pframe_utils/index.js +25 -25
- package/dist/pframe_utils/index.js.map +1 -1
- package/dist/platforma.d.ts +7 -7
- package/dist/platforma.d.ts.map +1 -1
- package/dist/raw_globals.cjs +4 -1
- package/dist/raw_globals.cjs.map +1 -1
- package/dist/raw_globals.d.ts +2 -2
- package/dist/raw_globals.d.ts.map +1 -1
- package/dist/raw_globals.js +4 -1
- package/dist/raw_globals.js.map +1 -1
- package/dist/ref_util.cjs +4 -4
- package/dist/ref_util.cjs.map +1 -1
- package/dist/ref_util.d.ts +1 -1
- package/dist/ref_util.js +4 -4
- package/dist/ref_util.js.map +1 -1
- package/dist/render/accessor.cjs +24 -24
- package/dist/render/accessor.cjs.map +1 -1
- package/dist/render/accessor.d.ts +10 -10
- package/dist/render/accessor.d.ts.map +1 -1
- package/dist/render/accessor.js +24 -24
- package/dist/render/accessor.js.map +1 -1
- package/dist/render/api.cjs +23 -23
- package/dist/render/api.cjs.map +1 -1
- package/dist/render/api.d.ts +11 -11
- package/dist/render/api.d.ts.map +1 -1
- package/dist/render/api.js +23 -23
- package/dist/render/api.js.map +1 -1
- package/dist/render/future.cjs.map +1 -1
- package/dist/render/future.d.ts +1 -1
- package/dist/render/future.js.map +1 -1
- package/dist/render/index.d.ts +6 -6
- package/dist/render/internal.cjs +4 -4
- package/dist/render/internal.cjs.map +1 -1
- package/dist/render/internal.d.ts +7 -7
- package/dist/render/internal.d.ts.map +1 -1
- package/dist/render/internal.js +4 -4
- package/dist/render/internal.js.map +1 -1
- package/dist/render/traversal_ops.d.ts +1 -1
- package/dist/render/util/axis_filtering.cjs +48 -44
- package/dist/render/util/axis_filtering.cjs.map +1 -1
- package/dist/render/util/axis_filtering.d.ts +2 -2
- package/dist/render/util/axis_filtering.js +48 -44
- package/dist/render/util/axis_filtering.js.map +1 -1
- package/dist/render/util/column_collection.cjs +42 -35
- package/dist/render/util/column_collection.cjs.map +1 -1
- package/dist/render/util/column_collection.d.ts +4 -4
- package/dist/render/util/column_collection.d.ts.map +1 -1
- package/dist/render/util/column_collection.js +42 -35
- package/dist/render/util/column_collection.js.map +1 -1
- package/dist/render/util/index.d.ts +4 -4
- package/dist/render/util/label.cjs +15 -21
- package/dist/render/util/label.cjs.map +1 -1
- package/dist/render/util/label.d.ts +2 -2
- package/dist/render/util/label.d.ts.map +1 -1
- package/dist/render/util/label.js +15 -21
- package/dist/render/util/label.js.map +1 -1
- package/dist/render/util/pcolumn_data.cjs +56 -54
- package/dist/render/util/pcolumn_data.cjs.map +1 -1
- package/dist/render/util/pcolumn_data.d.ts +5 -5
- package/dist/render/util/pcolumn_data.d.ts.map +1 -1
- package/dist/render/util/pcolumn_data.js +56 -54
- package/dist/render/util/pcolumn_data.js.map +1 -1
- package/dist/render/util/pframe_upgraders.cjs +6 -6
- package/dist/render/util/pframe_upgraders.cjs.map +1 -1
- package/dist/render/util/pframe_upgraders.d.ts +1 -1
- package/dist/render/util/pframe_upgraders.d.ts.map +1 -1
- package/dist/render/util/pframe_upgraders.js +6 -6
- package/dist/render/util/pframe_upgraders.js.map +1 -1
- package/dist/render/util/split_selectors.d.ts +1 -1
- package/dist/render/util/split_selectors.d.ts.map +1 -1
- package/dist/sdk_info.cjs.map +1 -1
- package/dist/sdk_info.js.map +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +24 -22
- package/src/annotations/converter.test.ts +98 -101
- package/src/annotations/converter.ts +21 -17
- package/src/annotations/index.ts +2 -2
- package/src/annotations/types.ts +4 -4
- package/src/bconfig/index.ts +5 -5
- package/src/bconfig/lambdas.ts +10 -12
- package/src/bconfig/normalization.ts +5 -5
- package/src/bconfig/types.ts +3 -5
- package/src/bconfig/util.ts +3 -3
- package/src/bconfig/v3.ts +3 -3
- package/src/block_api_v1.ts +7 -3
- package/src/block_api_v2.ts +7 -3
- package/src/block_api_v3.ts +3 -3
- package/src/block_migrations.test.ts +66 -67
- package/src/block_migrations.ts +16 -16
- package/src/block_model.ts +76 -140
- package/src/block_state_patch.ts +2 -2
- package/src/block_state_util.ts +4 -4
- package/src/block_storage.test.ts +106 -99
- package/src/block_storage.ts +22 -25
- package/src/block_storage_vm.ts +41 -35
- package/src/builder.ts +107 -95
- package/src/components/PFrameForGraphs.test.ts +261 -255
- package/src/components/PFrameForGraphs.ts +35 -22
- package/src/components/PlAnnotations/filter.ts +21 -15
- package/src/components/PlAnnotations/filters_ui.test.ts +230 -73
- package/src/components/PlAnnotations/filters_ui.ts +138 -105
- package/src/components/PlAnnotations/index.ts +2 -2
- package/src/components/PlAnnotations/types.ts +2 -2
- package/src/components/PlDataTable.ts +177 -164
- package/src/components/PlMultiSequenceAlignment.ts +11 -18
- package/src/components/PlSelectionModel.ts +1 -1
- package/src/components/index.ts +5 -5
- package/src/config/actions.ts +64 -59
- package/src/config/actions_kinds.ts +38 -34
- package/src/config/index.ts +6 -6
- package/src/config/model.ts +28 -28
- package/src/config/model_meta.ts +1 -1
- package/src/config/type_engine.ts +3 -3
- package/src/config/type_util.ts +2 -2
- package/src/env_value.ts +2 -2
- package/src/filters/converter.test.ts +185 -144
- package/src/filters/converter.ts +47 -35
- package/src/filters/index.ts +2 -2
- package/src/filters/types.ts +44 -39
- package/src/global.d.ts +1 -1
- package/src/index.ts +24 -24
- package/src/internal.ts +27 -17
- package/src/pframe.ts +3 -3
- package/src/pframe_utils/columns.ts +81 -31
- package/src/pframe_utils/index.ts +65 -43
- package/src/platforma.ts +44 -21
- package/src/raw_globals.ts +13 -7
- package/src/ref_util.ts +6 -6
- package/src/render/accessor.ts +43 -44
- package/src/render/api.ts +102 -78
- package/src/render/future.ts +2 -2
- package/src/render/index.ts +6 -6
- package/src/render/internal.ts +11 -12
- package/src/render/traversal_ops.ts +1 -1
- package/src/render/util/axis_filtering.ts +67 -52
- package/src/render/util/column_collection.ts +171 -91
- package/src/render/util/index.ts +4 -4
- package/src/render/util/label.test.ts +139 -139
- package/src/render/util/label.ts +42 -33
- package/src/render/util/pcolumn_data.ts +111 -75
- package/src/render/util/pframe_upgraders.ts +24 -13
- package/src/render/util/split_selectors.ts +6 -1
- package/src/sdk_info.ts +1 -1
- package/src/typing.test.ts +56 -56
- package/src/version.ts +1 -1
package/dist/config/model.d.ts
CHANGED
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
import type { ArchiveFormat, RangeBytes } from
|
|
1
|
+
import type { ArchiveFormat, RangeBytes } from "@milaboratories/pl-model-common";
|
|
2
2
|
export type Cfg = CfgGetFromCtx | CfgIsolate | CfgImmediate | CfgMakeObject | CfgMakeArray | CfgGetJsonField | CfgMapRecordValues | CfgMapArrayValues | CfgFlatten | CfgIsEmpty | CfgNot | CfgAnd | CfgOr | CfgMapResourceFields | CfgGetResourceField | CfgResourceValueAsJson | CfgBlobContent | CfgBlobContentAsString | CfgBlobContentAsJson | CfgDownloadedBlobContent | CfgOnDemandBlobContent | CfgExtractArchiveAndGetURL | CfgImportProgress | CfgLastLogs | CfgProgressLog | CfgProgressLogWithInfo | CfgLogHandle;
|
|
3
3
|
/** Forces wrapped config to be rendered asynchronously, using its own
|
|
4
4
|
* rendering cell */
|
|
5
5
|
export type CfgIsolate = {
|
|
6
|
-
type:
|
|
6
|
+
type: "Isolate";
|
|
7
7
|
cfg: Cfg;
|
|
8
8
|
};
|
|
9
9
|
export type CfgGetFromCtx = {
|
|
10
|
-
type:
|
|
10
|
+
type: "GetFromCtx";
|
|
11
11
|
variable: string;
|
|
12
12
|
};
|
|
13
13
|
export type CfgImmediate = {
|
|
14
|
-
type:
|
|
14
|
+
type: "Immediate";
|
|
15
15
|
value: any;
|
|
16
16
|
};
|
|
17
17
|
export type CfgGetJsonField = {
|
|
18
|
-
type:
|
|
18
|
+
type: "GetJsonField";
|
|
19
19
|
source: Cfg;
|
|
20
20
|
field: Cfg;
|
|
21
21
|
};
|
|
22
22
|
export type CfgMakeObject = {
|
|
23
|
-
type:
|
|
23
|
+
type: "MakeObject";
|
|
24
24
|
template: Record<string, Cfg>;
|
|
25
25
|
};
|
|
26
26
|
export type CfgMakeArray = {
|
|
27
|
-
type:
|
|
27
|
+
type: "MakeArray";
|
|
28
28
|
template: Cfg[];
|
|
29
29
|
};
|
|
30
30
|
export type CfgMapRecordValues = {
|
|
31
|
-
type:
|
|
31
|
+
type: "MapRecordValues";
|
|
32
32
|
source: Cfg;
|
|
33
33
|
itVar: string;
|
|
34
34
|
mapping: Cfg;
|
|
35
35
|
};
|
|
36
36
|
export type CfgMapArrayValues = {
|
|
37
|
-
type:
|
|
37
|
+
type: "MapArrayValues";
|
|
38
38
|
source: Cfg;
|
|
39
39
|
itVar: string;
|
|
40
40
|
mapping: Cfg;
|
|
41
41
|
};
|
|
42
42
|
export type CfgFlatten = {
|
|
43
|
-
type:
|
|
43
|
+
type: "Flatten";
|
|
44
44
|
source: Cfg;
|
|
45
45
|
};
|
|
46
46
|
export type CfgIsEmpty = {
|
|
47
|
-
type:
|
|
47
|
+
type: "IsEmpty";
|
|
48
48
|
arg: Cfg;
|
|
49
49
|
};
|
|
50
50
|
export type CfgNot = {
|
|
51
|
-
type:
|
|
51
|
+
type: "Not";
|
|
52
52
|
operand: Cfg;
|
|
53
53
|
};
|
|
54
54
|
export type CfgAnd = {
|
|
55
|
-
type:
|
|
55
|
+
type: "And";
|
|
56
56
|
operand1: Cfg;
|
|
57
57
|
operand2: Cfg;
|
|
58
58
|
};
|
|
59
59
|
export type CfgOr = {
|
|
60
|
-
type:
|
|
60
|
+
type: "Or";
|
|
61
61
|
operand1: Cfg;
|
|
62
62
|
operand2: Cfg;
|
|
63
63
|
};
|
|
64
64
|
export type CfgMapResourceFields = {
|
|
65
|
-
type:
|
|
65
|
+
type: "MapResourceFields";
|
|
66
66
|
source: Cfg;
|
|
67
67
|
itVar: string;
|
|
68
68
|
mapping: Cfg;
|
|
69
69
|
};
|
|
70
70
|
export type CfgGetResourceField = {
|
|
71
|
-
type:
|
|
71
|
+
type: "GetResourceField";
|
|
72
72
|
source: Cfg;
|
|
73
73
|
field: Cfg;
|
|
74
74
|
};
|
|
75
75
|
export type CfgResourceValueAsJson = {
|
|
76
|
-
type:
|
|
76
|
+
type: "GetResourceValueAsJson";
|
|
77
77
|
source: Cfg;
|
|
78
78
|
};
|
|
79
79
|
export type CfgBlobContent = {
|
|
80
|
-
type:
|
|
80
|
+
type: "GetBlobContent";
|
|
81
81
|
range: RangeBytes | undefined;
|
|
82
82
|
source: Cfg;
|
|
83
83
|
};
|
|
84
84
|
export type CfgBlobContentAsString = {
|
|
85
|
-
type:
|
|
85
|
+
type: "GetBlobContentAsString";
|
|
86
86
|
range: RangeBytes | undefined;
|
|
87
87
|
source: Cfg;
|
|
88
88
|
};
|
|
89
89
|
export type CfgBlobContentAsJson = {
|
|
90
|
-
type:
|
|
90
|
+
type: "GetBlobContentAsJson";
|
|
91
91
|
range: RangeBytes | undefined;
|
|
92
92
|
source: Cfg;
|
|
93
93
|
};
|
|
94
94
|
export type CfgDownloadedBlobContent = {
|
|
95
|
-
type:
|
|
95
|
+
type: "GetDownloadedBlobContent";
|
|
96
96
|
source: Cfg;
|
|
97
97
|
};
|
|
98
98
|
export type CfgOnDemandBlobContent = {
|
|
99
|
-
type:
|
|
99
|
+
type: "GetOnDemandBlobContent";
|
|
100
100
|
source: Cfg;
|
|
101
101
|
};
|
|
102
102
|
export type CfgExtractArchiveAndGetURL = {
|
|
103
|
-
type:
|
|
103
|
+
type: "ExtractArchiveAndGetURL";
|
|
104
104
|
format: ArchiveFormat;
|
|
105
105
|
source: Cfg;
|
|
106
106
|
};
|
|
107
107
|
export type CfgImportProgress = {
|
|
108
|
-
type:
|
|
108
|
+
type: "GetImportProgress";
|
|
109
109
|
source: Cfg;
|
|
110
110
|
};
|
|
111
111
|
export type CfgLastLogs = {
|
|
112
|
-
type:
|
|
112
|
+
type: "GetLastLogs";
|
|
113
113
|
source: Cfg;
|
|
114
114
|
lines: number;
|
|
115
115
|
};
|
|
116
116
|
export type CfgProgressLog = {
|
|
117
|
-
type:
|
|
117
|
+
type: "GetProgressLog";
|
|
118
118
|
source: Cfg;
|
|
119
119
|
patternToSearch: string;
|
|
120
120
|
};
|
|
121
121
|
export type CfgProgressLogWithInfo = {
|
|
122
|
-
type:
|
|
122
|
+
type: "GetProgressLogWithInfo";
|
|
123
123
|
source: Cfg;
|
|
124
124
|
patternToSearch: string;
|
|
125
125
|
};
|
|
126
126
|
export type CfgLogHandle = {
|
|
127
|
-
type:
|
|
127
|
+
type: "GetLogHandle";
|
|
128
128
|
source: Cfg;
|
|
129
129
|
};
|
|
130
130
|
//# sourceMappingURL=model.d.ts.map
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* executed synchronously, given all their arguments are already rendered.
|
|
3
3
|
* Some require creation of a separate rendering cell, like downloading
|
|
4
4
|
* files. */
|
|
5
|
-
export type CfgRenderingMode =
|
|
5
|
+
export type CfgRenderingMode = "Sync" | "Async";
|
|
6
6
|
//# sourceMappingURL=model_meta.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ActGetImmediate } from
|
|
2
|
-
import type { Cfg } from
|
|
1
|
+
import type { ActGetImmediate } from "./actions_kinds";
|
|
2
|
+
import type { Cfg } from "./model";
|
|
3
3
|
type GenericFunction = (x: any) => unknown;
|
|
4
4
|
/** This is a type constructor deriving a returned type of config given the
|
|
5
5
|
* context type. Something like ConfAction<Cfg> -> ReturnedType. */
|
|
@@ -11,7 +11,7 @@ export interface ConfAction {
|
|
|
11
11
|
/** This type basically sets parameter to a ConfAction kind. */
|
|
12
12
|
export type ActionResult<A extends ConfAction, Ctx> = ReturnType<(A & {
|
|
13
13
|
readonly ctx: Ctx;
|
|
14
|
-
})[
|
|
14
|
+
})["new"]>;
|
|
15
15
|
/** Field key to attach ConfAction information to a config type. */
|
|
16
16
|
declare const __config_action__: unique symbol;
|
|
17
17
|
/** Creates branded Cfg type */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractAction, TypedConfig } from
|
|
1
|
+
import type { ExtractAction, TypedConfig } from "./type_engine";
|
|
2
2
|
export type SyncConfAction = {
|
|
3
3
|
isSync: true;
|
|
4
4
|
};
|
|
@@ -8,5 +8,5 @@ export type Not<T extends boolean> = T extends true ? false : true;
|
|
|
8
8
|
export type Or<A extends boolean, B extends boolean> = A extends true ? true : B extends true ? true : false;
|
|
9
9
|
export type And<A extends boolean, B extends boolean> = A extends true ? B extends true ? true : false : false;
|
|
10
10
|
export type IsA<T, E> = T extends E ? true : false;
|
|
11
|
-
export type Checked<Type, Condition> = Condition extends true ? Type :
|
|
11
|
+
export type Checked<Type, Condition> = Condition extends true ? Type : "error";
|
|
12
12
|
//# sourceMappingURL=type_util.d.ts.map
|
package/dist/env_value.cjs
CHANGED
package/dist/env_value.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env_value.cjs","sources":["../src/env_value.ts"],"sourcesContent":["import {} from
|
|
1
|
+
{"version":3,"file":"env_value.cjs","sources":["../src/env_value.ts"],"sourcesContent":["import {} from \"./global\";\n\nexport function getEnvironmentValue(name: string): string | undefined {\n if (typeof globalThis.getEnvironmentValue !== \"function\") return undefined;\n else return globalThis.getEnvironmentValue(name);\n}\n"],"names":[],"mappings":";;AAEM,SAAU,mBAAmB,CAAC,IAAY,EAAA;AAC9C,IAAA,IAAI,OAAO,UAAU,CAAC,mBAAmB,KAAK,UAAU;AAAE,QAAA,OAAO,SAAS;;AACrE,QAAA,OAAO,UAAU,CAAC,mBAAmB,CAAC,IAAI,CAAC;AAClD;;;;"}
|
package/dist/env_value.js
CHANGED
package/dist/env_value.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env_value.js","sources":["../src/env_value.ts"],"sourcesContent":["import {} from
|
|
1
|
+
{"version":3,"file":"env_value.js","sources":["../src/env_value.ts"],"sourcesContent":["import {} from \"./global\";\n\nexport function getEnvironmentValue(name: string): string | undefined {\n if (typeof globalThis.getEnvironmentValue !== \"function\") return undefined;\n else return globalThis.getEnvironmentValue(name);\n}\n"],"names":[],"mappings":"AAEM,SAAU,mBAAmB,CAAC,IAAY,EAAA;AAC9C,IAAA,IAAI,OAAO,UAAU,CAAC,mBAAmB,KAAK,UAAU;AAAE,QAAA,OAAO,SAAS;;AACrE,QAAA,OAAO,UAAU,CAAC,mBAAmB,CAAC,IAAI,CAAC;AAClD;;;;"}
|
|
@@ -4,100 +4,104 @@ var plModelCommon = require('@milaboratories/pl-model-common');
|
|
|
4
4
|
var ptablerExpressionJs = require('@milaboratories/ptabler-expression-js');
|
|
5
5
|
|
|
6
6
|
function convertFilterUiToExpressionImpl(value) {
|
|
7
|
-
if (value.type ===
|
|
8
|
-
const expressions = value.filters
|
|
7
|
+
if (value.type === "or") {
|
|
8
|
+
const expressions = value.filters
|
|
9
|
+
.filter((f) => f.type !== undefined)
|
|
10
|
+
.map(convertFilterUiToExpressionImpl);
|
|
9
11
|
if (expressions.length === 0) {
|
|
10
|
-
throw new Error(
|
|
12
|
+
throw new Error("OR filter requires at least one operand");
|
|
11
13
|
}
|
|
12
14
|
return ptablerExpressionJs.or(...expressions);
|
|
13
15
|
}
|
|
14
|
-
if (value.type ===
|
|
15
|
-
const expressions = value.filters
|
|
16
|
+
if (value.type === "and") {
|
|
17
|
+
const expressions = value.filters
|
|
18
|
+
.filter((f) => f.type !== undefined)
|
|
19
|
+
.map(convertFilterUiToExpressionImpl);
|
|
16
20
|
if (expressions.length === 0) {
|
|
17
|
-
throw new Error(
|
|
21
|
+
throw new Error("AND filter requires at least one operand");
|
|
18
22
|
}
|
|
19
23
|
return ptablerExpressionJs.and(...expressions);
|
|
20
24
|
}
|
|
21
|
-
if (value.type ===
|
|
25
|
+
if (value.type === "not") {
|
|
22
26
|
return convertFilterUiToExpressionImpl(value.filter).not();
|
|
23
27
|
}
|
|
24
|
-
if (value.type ===
|
|
28
|
+
if (value.type === "isNA") {
|
|
25
29
|
return ptablerExpressionJs.col(value.column).isNull();
|
|
26
30
|
}
|
|
27
|
-
if (value.type ===
|
|
31
|
+
if (value.type === "isNotNA") {
|
|
28
32
|
return ptablerExpressionJs.col(value.column).isNotNull();
|
|
29
33
|
}
|
|
30
|
-
if (value.type ===
|
|
34
|
+
if (value.type === "patternEquals") {
|
|
31
35
|
return ptablerExpressionJs.col(value.column).eq(ptablerExpressionJs.lit(value.value));
|
|
32
36
|
}
|
|
33
|
-
if (value.type ===
|
|
37
|
+
if (value.type === "patternNotEquals") {
|
|
34
38
|
return ptablerExpressionJs.col(value.column).neq(ptablerExpressionJs.lit(value.value));
|
|
35
39
|
}
|
|
36
|
-
if (value.type ===
|
|
40
|
+
if (value.type === "patternContainSubsequence") {
|
|
37
41
|
return ptablerExpressionJs.col(value.column).strContains(value.value, false, true);
|
|
38
42
|
}
|
|
39
|
-
if (value.type ===
|
|
43
|
+
if (value.type === "patternNotContainSubsequence") {
|
|
40
44
|
return ptablerExpressionJs.col(value.column).strContains(value.value, false, true).not();
|
|
41
45
|
}
|
|
42
|
-
if (value.type ===
|
|
46
|
+
if (value.type === "equal") {
|
|
43
47
|
return ptablerExpressionJs.col(value.column).eq(ptablerExpressionJs.lit(value.x));
|
|
44
48
|
}
|
|
45
|
-
if (value.type ===
|
|
49
|
+
if (value.type === "notEqual") {
|
|
46
50
|
return ptablerExpressionJs.col(value.column).neq(ptablerExpressionJs.lit(value.x));
|
|
47
51
|
}
|
|
48
|
-
if (value.type ===
|
|
52
|
+
if (value.type === "lessThan") {
|
|
49
53
|
return ptablerExpressionJs.col(value.column).lt(ptablerExpressionJs.lit(value.x));
|
|
50
54
|
}
|
|
51
|
-
if (value.type ===
|
|
55
|
+
if (value.type === "greaterThan") {
|
|
52
56
|
return ptablerExpressionJs.col(value.column).gt(ptablerExpressionJs.lit(value.x));
|
|
53
57
|
}
|
|
54
|
-
if (value.type ===
|
|
58
|
+
if (value.type === "lessThanOrEqual") {
|
|
55
59
|
return ptablerExpressionJs.col(value.column).le(ptablerExpressionJs.lit(value.x));
|
|
56
60
|
}
|
|
57
|
-
if (value.type ===
|
|
61
|
+
if (value.type === "greaterThanOrEqual") {
|
|
58
62
|
return ptablerExpressionJs.col(value.column).ge(ptablerExpressionJs.lit(value.x));
|
|
59
63
|
}
|
|
60
|
-
if (value.type ===
|
|
64
|
+
if (value.type === "equalToColumn") {
|
|
61
65
|
return ptablerExpressionJs.col(value.column).eq(ptablerExpressionJs.col(value.rhs));
|
|
62
66
|
}
|
|
63
|
-
if (value.type ===
|
|
67
|
+
if (value.type === "greaterThanColumn") {
|
|
64
68
|
if (value.minDiff !== undefined && value.minDiff !== 0) {
|
|
65
69
|
return ptablerExpressionJs.col(value.column).plus(ptablerExpressionJs.lit(value.minDiff)).gt(ptablerExpressionJs.col(value.rhs));
|
|
66
70
|
}
|
|
67
71
|
return ptablerExpressionJs.col(value.column).gt(ptablerExpressionJs.col(value.rhs));
|
|
68
72
|
}
|
|
69
|
-
if (value.type ===
|
|
73
|
+
if (value.type === "lessThanColumn") {
|
|
70
74
|
if (value.minDiff !== undefined && value.minDiff !== 0) {
|
|
71
75
|
return ptablerExpressionJs.col(value.column).plus(ptablerExpressionJs.lit(value.minDiff)).lt(ptablerExpressionJs.col(value.rhs));
|
|
72
76
|
}
|
|
73
77
|
return ptablerExpressionJs.col(value.column).lt(ptablerExpressionJs.col(value.rhs));
|
|
74
78
|
}
|
|
75
|
-
if (value.type ===
|
|
79
|
+
if (value.type === "greaterThanColumnOrEqual") {
|
|
76
80
|
if (value.minDiff !== undefined && value.minDiff !== 0) {
|
|
77
81
|
return ptablerExpressionJs.col(value.column).plus(ptablerExpressionJs.lit(value.minDiff)).ge(ptablerExpressionJs.col(value.rhs));
|
|
78
82
|
}
|
|
79
83
|
return ptablerExpressionJs.col(value.column).ge(ptablerExpressionJs.col(value.rhs));
|
|
80
84
|
}
|
|
81
|
-
if (value.type ===
|
|
85
|
+
if (value.type === "lessThanColumnOrEqual") {
|
|
82
86
|
if (value.minDiff !== undefined && value.minDiff !== 0) {
|
|
83
87
|
return ptablerExpressionJs.col(value.column).plus(ptablerExpressionJs.lit(value.minDiff)).le(ptablerExpressionJs.col(value.rhs));
|
|
84
88
|
}
|
|
85
89
|
return ptablerExpressionJs.col(value.column).le(ptablerExpressionJs.col(value.rhs));
|
|
86
90
|
}
|
|
87
|
-
if (value.type ===
|
|
91
|
+
if (value.type === "topN") {
|
|
88
92
|
return ptablerExpressionJs.rank(ptablerExpressionJs.col(value.column), true).over([]).le(ptablerExpressionJs.lit(value.n));
|
|
89
93
|
}
|
|
90
|
-
if (value.type ===
|
|
94
|
+
if (value.type === "bottomN") {
|
|
91
95
|
return ptablerExpressionJs.rank(ptablerExpressionJs.col(value.column), false).over([]).le(ptablerExpressionJs.lit(value.n));
|
|
92
96
|
}
|
|
93
|
-
if (value.type ===
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
throw new Error(
|
|
97
|
+
if (value.type === "patternMatchesRegularExpression" ||
|
|
98
|
+
value.type === "patternFuzzyContainSubsequence" ||
|
|
99
|
+
value.type === "inSet" ||
|
|
100
|
+
value.type === "notInSet") {
|
|
101
|
+
throw new Error("Not implemented filter type: " + value.type);
|
|
98
102
|
}
|
|
99
103
|
if (value.type === undefined) {
|
|
100
|
-
throw new Error(
|
|
104
|
+
throw new Error("Filter type is undefined, this should not happen");
|
|
101
105
|
}
|
|
102
106
|
plModelCommon.assertNever(value);
|
|
103
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"converter.cjs","sources":["../../src/filters/converter.ts"],"sourcesContent":["import { assertNever } from
|
|
1
|
+
{"version":3,"file":"converter.cjs","sources":["../../src/filters/converter.ts"],"sourcesContent":["import { assertNever } from \"@milaboratories/pl-model-common\";\nimport {\n and,\n col,\n lit,\n or,\n rank,\n type Expression,\n type ExpressionImpl,\n} from \"@milaboratories/ptabler-expression-js\";\nimport type { FilterSpec } from \"../filters\";\n\nexport function convertFilterUiToExpressionImpl(value: FilterSpec): ExpressionImpl {\n if (value.type === \"or\") {\n const expressions = value.filters\n .filter((f) => f.type !== undefined)\n .map(convertFilterUiToExpressionImpl);\n if (expressions.length === 0) {\n throw new Error(\"OR filter requires at least one operand\");\n }\n return or(...expressions);\n }\n\n if (value.type === \"and\") {\n const expressions = value.filters\n .filter((f) => f.type !== undefined)\n .map(convertFilterUiToExpressionImpl);\n if (expressions.length === 0) {\n throw new Error(\"AND filter requires at least one operand\");\n }\n return and(...expressions);\n }\n\n if (value.type === \"not\") {\n return convertFilterUiToExpressionImpl(value.filter).not();\n }\n\n if (value.type === \"isNA\") {\n return col(value.column).isNull();\n }\n\n if (value.type === \"isNotNA\") {\n return col(value.column).isNotNull();\n }\n\n if (value.type === \"patternEquals\") {\n return col(value.column).eq(lit(value.value));\n }\n\n if (value.type === \"patternNotEquals\") {\n return col(value.column).neq(lit(value.value));\n }\n\n if (value.type === \"patternContainSubsequence\") {\n return col(value.column).strContains(value.value, false, true);\n }\n\n if (value.type === \"patternNotContainSubsequence\") {\n return col(value.column).strContains(value.value, false, true).not();\n }\n\n if (value.type === \"equal\") {\n return col(value.column).eq(lit(value.x));\n }\n\n if (value.type === \"notEqual\") {\n return col(value.column).neq(lit(value.x));\n }\n\n if (value.type === \"lessThan\") {\n return col(value.column).lt(lit(value.x));\n }\n\n if (value.type === \"greaterThan\") {\n return col(value.column).gt(lit(value.x));\n }\n\n if (value.type === \"lessThanOrEqual\") {\n return col(value.column).le(lit(value.x));\n }\n\n if (value.type === \"greaterThanOrEqual\") {\n return col(value.column).ge(lit(value.x));\n }\n\n if (value.type === \"equalToColumn\") {\n return col(value.column).eq(col(value.rhs));\n }\n\n if (value.type === \"greaterThanColumn\") {\n if (value.minDiff !== undefined && value.minDiff !== 0) {\n return col(value.column).plus(lit(value.minDiff)).gt(col(value.rhs));\n }\n return col(value.column).gt(col(value.rhs));\n }\n\n if (value.type === \"lessThanColumn\") {\n if (value.minDiff !== undefined && value.minDiff !== 0) {\n return col(value.column).plus(lit(value.minDiff)).lt(col(value.rhs));\n }\n return col(value.column).lt(col(value.rhs));\n }\n\n if (value.type === \"greaterThanColumnOrEqual\") {\n if (value.minDiff !== undefined && value.minDiff !== 0) {\n return col(value.column).plus(lit(value.minDiff)).ge(col(value.rhs));\n }\n return col(value.column).ge(col(value.rhs));\n }\n\n if (value.type === \"lessThanColumnOrEqual\") {\n if (value.minDiff !== undefined && value.minDiff !== 0) {\n return col(value.column).plus(lit(value.minDiff)).le(col(value.rhs));\n }\n return col(value.column).le(col(value.rhs));\n }\n\n if (value.type === \"topN\") {\n return rank(col(value.column), true).over([]).le(lit(value.n));\n }\n\n if (value.type === \"bottomN\") {\n return rank(col(value.column), false).over([]).le(lit(value.n));\n }\n\n if (\n value.type === \"patternMatchesRegularExpression\" ||\n value.type === \"patternFuzzyContainSubsequence\" ||\n value.type === \"inSet\" ||\n value.type === \"notInSet\"\n ) {\n throw new Error(\"Not implemented filter type: \" + value.type);\n }\n\n if (value.type === undefined) {\n throw new Error(\"Filter type is undefined, this should not happen\");\n }\n\n assertNever(value);\n}\n\nexport function convertFilterUiToExpressions(value: FilterSpec): Expression {\n return convertFilterUiToExpressionImpl(value).toJSON();\n}\n"],"names":["or","and","col","lit","rank","assertNever"],"mappings":";;;;;AAYM,SAAU,+BAA+B,CAAC,KAAiB,EAAA;AAC/D,IAAA,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE;AACvB,QAAA,MAAM,WAAW,GAAG,KAAK,CAAC;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K,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,CAACC,uBAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAChE;AAEA,IAAA,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE;QAC5B,OAAOC,wBAAI,CAACF,uBAAG,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,CAACC,uBAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACjE;AAEA,IAAA,IACE,KAAK,CAAC,IAAI,KAAK,iCAAiC;QAChD,KAAK,CAAC,IAAI,KAAK,gCAAgC;QAC/C,KAAK,CAAC,IAAI,KAAK,OAAO;AACtB,QAAA,KAAK,CAAC,IAAI,KAAK,UAAU,EACzB;QACA,MAAM,IAAI,KAAK,CAAC,+BAA+B,GAAG,KAAK,CAAC,IAAI,CAAC;IAC/D;AAEA,IAAA,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE;AAC5B,QAAA,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC;IACrE;IAEAE,yBAAW,CAAC,KAAK,CAAC;AACpB;AAEM,SAAU,4BAA4B,CAAC,KAAiB,EAAA;AAC5D,IAAA,OAAO,+BAA+B,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE;AACxD;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Expression, type ExpressionImpl } from
|
|
2
|
-
import type { FilterSpec } from
|
|
1
|
+
import { type Expression, type ExpressionImpl } from "@milaboratories/ptabler-expression-js";
|
|
2
|
+
import type { FilterSpec } from "../filters";
|
|
3
3
|
export declare function convertFilterUiToExpressionImpl(value: FilterSpec): ExpressionImpl;
|
|
4
4
|
export declare function convertFilterUiToExpressions(value: FilterSpec): Expression;
|
|
5
5
|
//# sourceMappingURL=converter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../src/filters/converter.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../src/filters/converter.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,UAAU,EACf,KAAK,cAAc,EACpB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,UAAU,GAAG,cAAc,CA+HjF;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAE1E"}
|
|
@@ -2,100 +2,104 @@ import { assertNever } from '@milaboratories/pl-model-common';
|
|
|
2
2
|
import { or, and, col, lit, rank } from '@milaboratories/ptabler-expression-js';
|
|
3
3
|
|
|
4
4
|
function convertFilterUiToExpressionImpl(value) {
|
|
5
|
-
if (value.type ===
|
|
6
|
-
const expressions = value.filters
|
|
5
|
+
if (value.type === "or") {
|
|
6
|
+
const expressions = value.filters
|
|
7
|
+
.filter((f) => f.type !== undefined)
|
|
8
|
+
.map(convertFilterUiToExpressionImpl);
|
|
7
9
|
if (expressions.length === 0) {
|
|
8
|
-
throw new Error(
|
|
10
|
+
throw new Error("OR filter requires at least one operand");
|
|
9
11
|
}
|
|
10
12
|
return or(...expressions);
|
|
11
13
|
}
|
|
12
|
-
if (value.type ===
|
|
13
|
-
const expressions = value.filters
|
|
14
|
+
if (value.type === "and") {
|
|
15
|
+
const expressions = value.filters
|
|
16
|
+
.filter((f) => f.type !== undefined)
|
|
17
|
+
.map(convertFilterUiToExpressionImpl);
|
|
14
18
|
if (expressions.length === 0) {
|
|
15
|
-
throw new Error(
|
|
19
|
+
throw new Error("AND filter requires at least one operand");
|
|
16
20
|
}
|
|
17
21
|
return and(...expressions);
|
|
18
22
|
}
|
|
19
|
-
if (value.type ===
|
|
23
|
+
if (value.type === "not") {
|
|
20
24
|
return convertFilterUiToExpressionImpl(value.filter).not();
|
|
21
25
|
}
|
|
22
|
-
if (value.type ===
|
|
26
|
+
if (value.type === "isNA") {
|
|
23
27
|
return col(value.column).isNull();
|
|
24
28
|
}
|
|
25
|
-
if (value.type ===
|
|
29
|
+
if (value.type === "isNotNA") {
|
|
26
30
|
return col(value.column).isNotNull();
|
|
27
31
|
}
|
|
28
|
-
if (value.type ===
|
|
32
|
+
if (value.type === "patternEquals") {
|
|
29
33
|
return col(value.column).eq(lit(value.value));
|
|
30
34
|
}
|
|
31
|
-
if (value.type ===
|
|
35
|
+
if (value.type === "patternNotEquals") {
|
|
32
36
|
return col(value.column).neq(lit(value.value));
|
|
33
37
|
}
|
|
34
|
-
if (value.type ===
|
|
38
|
+
if (value.type === "patternContainSubsequence") {
|
|
35
39
|
return col(value.column).strContains(value.value, false, true);
|
|
36
40
|
}
|
|
37
|
-
if (value.type ===
|
|
41
|
+
if (value.type === "patternNotContainSubsequence") {
|
|
38
42
|
return col(value.column).strContains(value.value, false, true).not();
|
|
39
43
|
}
|
|
40
|
-
if (value.type ===
|
|
44
|
+
if (value.type === "equal") {
|
|
41
45
|
return col(value.column).eq(lit(value.x));
|
|
42
46
|
}
|
|
43
|
-
if (value.type ===
|
|
47
|
+
if (value.type === "notEqual") {
|
|
44
48
|
return col(value.column).neq(lit(value.x));
|
|
45
49
|
}
|
|
46
|
-
if (value.type ===
|
|
50
|
+
if (value.type === "lessThan") {
|
|
47
51
|
return col(value.column).lt(lit(value.x));
|
|
48
52
|
}
|
|
49
|
-
if (value.type ===
|
|
53
|
+
if (value.type === "greaterThan") {
|
|
50
54
|
return col(value.column).gt(lit(value.x));
|
|
51
55
|
}
|
|
52
|
-
if (value.type ===
|
|
56
|
+
if (value.type === "lessThanOrEqual") {
|
|
53
57
|
return col(value.column).le(lit(value.x));
|
|
54
58
|
}
|
|
55
|
-
if (value.type ===
|
|
59
|
+
if (value.type === "greaterThanOrEqual") {
|
|
56
60
|
return col(value.column).ge(lit(value.x));
|
|
57
61
|
}
|
|
58
|
-
if (value.type ===
|
|
62
|
+
if (value.type === "equalToColumn") {
|
|
59
63
|
return col(value.column).eq(col(value.rhs));
|
|
60
64
|
}
|
|
61
|
-
if (value.type ===
|
|
65
|
+
if (value.type === "greaterThanColumn") {
|
|
62
66
|
if (value.minDiff !== undefined && value.minDiff !== 0) {
|
|
63
67
|
return col(value.column).plus(lit(value.minDiff)).gt(col(value.rhs));
|
|
64
68
|
}
|
|
65
69
|
return col(value.column).gt(col(value.rhs));
|
|
66
70
|
}
|
|
67
|
-
if (value.type ===
|
|
71
|
+
if (value.type === "lessThanColumn") {
|
|
68
72
|
if (value.minDiff !== undefined && value.minDiff !== 0) {
|
|
69
73
|
return col(value.column).plus(lit(value.minDiff)).lt(col(value.rhs));
|
|
70
74
|
}
|
|
71
75
|
return col(value.column).lt(col(value.rhs));
|
|
72
76
|
}
|
|
73
|
-
if (value.type ===
|
|
77
|
+
if (value.type === "greaterThanColumnOrEqual") {
|
|
74
78
|
if (value.minDiff !== undefined && value.minDiff !== 0) {
|
|
75
79
|
return col(value.column).plus(lit(value.minDiff)).ge(col(value.rhs));
|
|
76
80
|
}
|
|
77
81
|
return col(value.column).ge(col(value.rhs));
|
|
78
82
|
}
|
|
79
|
-
if (value.type ===
|
|
83
|
+
if (value.type === "lessThanColumnOrEqual") {
|
|
80
84
|
if (value.minDiff !== undefined && value.minDiff !== 0) {
|
|
81
85
|
return col(value.column).plus(lit(value.minDiff)).le(col(value.rhs));
|
|
82
86
|
}
|
|
83
87
|
return col(value.column).le(col(value.rhs));
|
|
84
88
|
}
|
|
85
|
-
if (value.type ===
|
|
89
|
+
if (value.type === "topN") {
|
|
86
90
|
return rank(col(value.column), true).over([]).le(lit(value.n));
|
|
87
91
|
}
|
|
88
|
-
if (value.type ===
|
|
92
|
+
if (value.type === "bottomN") {
|
|
89
93
|
return rank(col(value.column), false).over([]).le(lit(value.n));
|
|
90
94
|
}
|
|
91
|
-
if (value.type ===
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
throw new Error(
|
|
95
|
+
if (value.type === "patternMatchesRegularExpression" ||
|
|
96
|
+
value.type === "patternFuzzyContainSubsequence" ||
|
|
97
|
+
value.type === "inSet" ||
|
|
98
|
+
value.type === "notInSet") {
|
|
99
|
+
throw new Error("Not implemented filter type: " + value.type);
|
|
96
100
|
}
|
|
97
101
|
if (value.type === undefined) {
|
|
98
|
-
throw new Error(
|
|
102
|
+
throw new Error("Filter type is undefined, this should not happen");
|
|
99
103
|
}
|
|
100
104
|
assertNever(value);
|
|
101
105
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","sources":["../../src/filters/converter.ts"],"sourcesContent":["import { assertNever } from
|
|
1
|
+
{"version":3,"file":"converter.js","sources":["../../src/filters/converter.ts"],"sourcesContent":["import { assertNever } from \"@milaboratories/pl-model-common\";\nimport {\n and,\n col,\n lit,\n or,\n rank,\n type Expression,\n type ExpressionImpl,\n} from \"@milaboratories/ptabler-expression-js\";\nimport type { FilterSpec } from \"../filters\";\n\nexport function convertFilterUiToExpressionImpl(value: FilterSpec): ExpressionImpl {\n if (value.type === \"or\") {\n const expressions = value.filters\n .filter((f) => f.type !== undefined)\n .map(convertFilterUiToExpressionImpl);\n if (expressions.length === 0) {\n throw new Error(\"OR filter requires at least one operand\");\n }\n return or(...expressions);\n }\n\n if (value.type === \"and\") {\n const expressions = value.filters\n .filter((f) => f.type !== undefined)\n .map(convertFilterUiToExpressionImpl);\n if (expressions.length === 0) {\n throw new Error(\"AND filter requires at least one operand\");\n }\n return and(...expressions);\n }\n\n if (value.type === \"not\") {\n return convertFilterUiToExpressionImpl(value.filter).not();\n }\n\n if (value.type === \"isNA\") {\n return col(value.column).isNull();\n }\n\n if (value.type === \"isNotNA\") {\n return col(value.column).isNotNull();\n }\n\n if (value.type === \"patternEquals\") {\n return col(value.column).eq(lit(value.value));\n }\n\n if (value.type === \"patternNotEquals\") {\n return col(value.column).neq(lit(value.value));\n }\n\n if (value.type === \"patternContainSubsequence\") {\n return col(value.column).strContains(value.value, false, true);\n }\n\n if (value.type === \"patternNotContainSubsequence\") {\n return col(value.column).strContains(value.value, false, true).not();\n }\n\n if (value.type === \"equal\") {\n return col(value.column).eq(lit(value.x));\n }\n\n if (value.type === \"notEqual\") {\n return col(value.column).neq(lit(value.x));\n }\n\n if (value.type === \"lessThan\") {\n return col(value.column).lt(lit(value.x));\n }\n\n if (value.type === \"greaterThan\") {\n return col(value.column).gt(lit(value.x));\n }\n\n if (value.type === \"lessThanOrEqual\") {\n return col(value.column).le(lit(value.x));\n }\n\n if (value.type === \"greaterThanOrEqual\") {\n return col(value.column).ge(lit(value.x));\n }\n\n if (value.type === \"equalToColumn\") {\n return col(value.column).eq(col(value.rhs));\n }\n\n if (value.type === \"greaterThanColumn\") {\n if (value.minDiff !== undefined && value.minDiff !== 0) {\n return col(value.column).plus(lit(value.minDiff)).gt(col(value.rhs));\n }\n return col(value.column).gt(col(value.rhs));\n }\n\n if (value.type === \"lessThanColumn\") {\n if (value.minDiff !== undefined && value.minDiff !== 0) {\n return col(value.column).plus(lit(value.minDiff)).lt(col(value.rhs));\n }\n return col(value.column).lt(col(value.rhs));\n }\n\n if (value.type === \"greaterThanColumnOrEqual\") {\n if (value.minDiff !== undefined && value.minDiff !== 0) {\n return col(value.column).plus(lit(value.minDiff)).ge(col(value.rhs));\n }\n return col(value.column).ge(col(value.rhs));\n }\n\n if (value.type === \"lessThanColumnOrEqual\") {\n if (value.minDiff !== undefined && value.minDiff !== 0) {\n return col(value.column).plus(lit(value.minDiff)).le(col(value.rhs));\n }\n return col(value.column).le(col(value.rhs));\n }\n\n if (value.type === \"topN\") {\n return rank(col(value.column), true).over([]).le(lit(value.n));\n }\n\n if (value.type === \"bottomN\") {\n return rank(col(value.column), false).over([]).le(lit(value.n));\n }\n\n if (\n value.type === \"patternMatchesRegularExpression\" ||\n value.type === \"patternFuzzyContainSubsequence\" ||\n value.type === \"inSet\" ||\n value.type === \"notInSet\"\n ) {\n throw new Error(\"Not implemented filter type: \" + value.type);\n }\n\n if (value.type === undefined) {\n throw new Error(\"Filter type is undefined, this should not happen\");\n }\n\n assertNever(value);\n}\n\nexport function convertFilterUiToExpressions(value: FilterSpec): Expression {\n return convertFilterUiToExpressionImpl(value).toJSON();\n}\n"],"names":[],"mappings":";;;AAYM,SAAU,+BAA+B,CAAC,KAAiB,EAAA;AAC/D,IAAA,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE;AACvB,QAAA,MAAM,WAAW,GAAG,KAAK,CAAC;aACvB,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,SAAS;aAClC,GAAG,CAAC,+BAA+B,CAAC;AACvC,QAAA,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;AAC5B,YAAA,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC;QAC5D;AACA,QAAA,OAAO,EAAE,CAAC,GAAG,WAAW,CAAC;IAC3B;AAEA,IAAA,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,EAAE;AACxB,QAAA,MAAM,WAAW,GAAG,KAAK,CAAC;aACvB,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,SAAS;aAClC,GAAG,CAAC,+BAA+B,CAAC;AACvC,QAAA,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;AAC5B,YAAA,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC;QAC7D;AACA,QAAA,OAAO,GAAG,CAAC,GAAG,WAAW,CAAC;IAC5B;AAEA,IAAA,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,EAAE;QACxB,OAAO,+BAA+B,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE;IAC5D;AAEA,IAAA,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE;QACzB,OAAO,GAAG,CAAC,KAAK,CAAC,MAA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|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./converter";
|
|
2
|
+
export * from "./types";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|