@genesislcap/foundation-comms 14.370.1-alpha-fa13546.0 → 14.371.0
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/dts/datasource/criteriaFiltersToFields.d.ts +9 -2
- package/dist/dts/datasource/criteriaFiltersToFields.d.ts.map +1 -1
- package/dist/esm/datasource/criteriaFiltersToFields.js +9 -2
- package/dist/foundation-comms.api.json +1 -1
- package/dist/foundation-comms.d.ts +9 -2
- package/docs/api/foundation-comms.criteriafilterstofields.md +9 -2
- package/package.json +13 -13
|
@@ -16,9 +16,13 @@
|
|
|
16
16
|
*
|
|
17
17
|
* ```
|
|
18
18
|
* foo == 'bar' &&
|
|
19
|
+
* asd == 'zxc' &&
|
|
19
20
|
* Expr.containsIgnoreCase(FIELD, 'abc') &&
|
|
21
|
+
* Expr.dateIsToday(DATE) &&
|
|
20
22
|
* Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&
|
|
21
23
|
* Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&
|
|
24
|
+
* Expr.dateIsGreaterEqual(DATEONLY, '20231110') &&
|
|
25
|
+
* Expr.dateIsLessEqual(DATEONLY, '20231115') &&
|
|
22
26
|
* FIELD_DATETIME >= 1704067200000 &&
|
|
23
27
|
* FIELD_DATETIME <= 1704153600000
|
|
24
28
|
* ```
|
|
@@ -28,11 +32,14 @@
|
|
|
28
32
|
* ```
|
|
29
33
|
* {
|
|
30
34
|
* foo: 'bar',
|
|
35
|
+
* asd: 'zxc',
|
|
31
36
|
* FIELD: '*abc*',
|
|
37
|
+
* DATE_FROM: '20231110-00:00',
|
|
38
|
+
* DATE_TO: '20231111-00:00',
|
|
32
39
|
* DATETIME_FROM: '20231110-03:23',
|
|
33
40
|
* DATETIME_TO: '20231115-03:23',
|
|
34
|
-
*
|
|
35
|
-
*
|
|
41
|
+
* DATEONLY_FROM: '20231110',
|
|
42
|
+
* DATEONLY_TO: '20231115',
|
|
36
43
|
* }
|
|
37
44
|
* ```
|
|
38
45
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"criteriaFiltersToFields.d.ts","sourceRoot":"","sources":["../../../src/datasource/criteriaFiltersToFields.ts"],"names":[],"mappings":"AAyGA
|
|
1
|
+
{"version":3,"file":"criteriaFiltersToFields.d.ts","sourceRoot":"","sources":["../../../src/datasource/criteriaFiltersToFields.ts"],"names":[],"mappings":"AAyGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkD/E"}
|
|
@@ -113,9 +113,13 @@ function processEqualityExpression(c, reqFields) {
|
|
|
113
113
|
*
|
|
114
114
|
* ```
|
|
115
115
|
* foo == 'bar' &&
|
|
116
|
+
* asd == 'zxc' &&
|
|
116
117
|
* Expr.containsIgnoreCase(FIELD, 'abc') &&
|
|
118
|
+
* Expr.dateIsToday(DATE) &&
|
|
117
119
|
* Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&
|
|
118
120
|
* Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&
|
|
121
|
+
* Expr.dateIsGreaterEqual(DATEONLY, '20231110') &&
|
|
122
|
+
* Expr.dateIsLessEqual(DATEONLY, '20231115') &&
|
|
119
123
|
* FIELD_DATETIME >= 1704067200000 &&
|
|
120
124
|
* FIELD_DATETIME <= 1704153600000
|
|
121
125
|
* ```
|
|
@@ -125,11 +129,14 @@ function processEqualityExpression(c, reqFields) {
|
|
|
125
129
|
* ```
|
|
126
130
|
* {
|
|
127
131
|
* foo: 'bar',
|
|
132
|
+
* asd: 'zxc',
|
|
128
133
|
* FIELD: '*abc*',
|
|
134
|
+
* DATE_FROM: '20231110-00:00',
|
|
135
|
+
* DATE_TO: '20231111-00:00',
|
|
129
136
|
* DATETIME_FROM: '20231110-03:23',
|
|
130
137
|
* DATETIME_TO: '20231115-03:23',
|
|
131
|
-
*
|
|
132
|
-
*
|
|
138
|
+
* DATEONLY_FROM: '20231110',
|
|
139
|
+
* DATEONLY_TO: '20231115',
|
|
133
140
|
* }
|
|
134
141
|
* ```
|
|
135
142
|
*/
|
|
@@ -4797,7 +4797,7 @@
|
|
|
4797
4797
|
{
|
|
4798
4798
|
"kind": "Function",
|
|
4799
4799
|
"canonicalReference": "@genesislcap/foundation-comms!criteriaFiltersToFields:function(1)",
|
|
4800
|
-
"docComment": "/**\n * Criteria filters to fields.\n *\n * @remarks\n *\n * For filtering REQUEST_SERVER resources. Maps concatenated criteria filters from a grid to a request fields object. Date/datetime groovy expressions will append `_FROM` and `_TO` onto field names appropriately.\n *\n * Also supports direct comparison operators (<=, >=) with numeric timestamps, which are automatically converted to the appropriate REQUEST field format.\n *\n * eg: converts\n * ```\n * foo == 'bar' &&\n * Expr.containsIgnoreCase(FIELD, 'abc') &&\n * Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&\n * Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&\n * FIELD_DATETIME >= 1704067200000 &&\n * FIELD_DATETIME <= 1704153600000\n * ```\n *\n * into\n * ```\n * {\n * foo: 'bar',\n * FIELD: '*abc*',\n * DATETIME_FROM: '20231110-03:23',\n * DATETIME_TO: '20231115-03:23',\n *
|
|
4800
|
+
"docComment": "/**\n * Criteria filters to fields.\n *\n * @remarks\n *\n * For filtering REQUEST_SERVER resources. Maps concatenated criteria filters from a grid to a request fields object. Date/datetime groovy expressions will append `_FROM` and `_TO` onto field names appropriately.\n *\n * Also supports direct comparison operators (<=, >=) with numeric timestamps, which are automatically converted to the appropriate REQUEST field format.\n *\n * eg: converts\n * ```\n * foo == 'bar' &&\n * asd == 'zxc' &&\n * Expr.containsIgnoreCase(FIELD, 'abc') &&\n * Expr.dateIsToday(DATE) &&\n * Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&\n * Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&\n * Expr.dateIsGreaterEqual(DATEONLY, '20231110') &&\n * Expr.dateIsLessEqual(DATEONLY, '20231115') &&\n * FIELD_DATETIME >= 1704067200000 &&\n * FIELD_DATETIME <= 1704153600000\n * ```\n *\n * into\n * ```\n * {\n * foo: 'bar',\n * asd: 'zxc',\n * FIELD: '*abc*',\n * DATE_FROM: '20231110-00:00',\n * DATE_TO: '20231111-00:00',\n * DATETIME_FROM: '20231110-03:23',\n * DATETIME_TO: '20231115-03:23',\n * DATEONLY_FROM: '20231110',\n * DATEONLY_TO: '20231115',\n * }\n * ```\n *\n * @param filters - Concatenated criteria filters.\n *\n * @public\n */\n",
|
|
4801
4801
|
"excerptTokens": [
|
|
4802
4802
|
{
|
|
4803
4803
|
"kind": "Content",
|
|
@@ -862,9 +862,13 @@ export declare const credentialSeparator = ":";
|
|
|
862
862
|
*
|
|
863
863
|
* ```
|
|
864
864
|
* foo == 'bar' &&
|
|
865
|
+
* asd == 'zxc' &&
|
|
865
866
|
* Expr.containsIgnoreCase(FIELD, 'abc') &&
|
|
867
|
+
* Expr.dateIsToday(DATE) &&
|
|
866
868
|
* Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&
|
|
867
869
|
* Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&
|
|
870
|
+
* Expr.dateIsGreaterEqual(DATEONLY, '20231110') &&
|
|
871
|
+
* Expr.dateIsLessEqual(DATEONLY, '20231115') &&
|
|
868
872
|
* FIELD_DATETIME >= 1704067200000 &&
|
|
869
873
|
* FIELD_DATETIME <= 1704153600000
|
|
870
874
|
* ```
|
|
@@ -874,11 +878,14 @@ export declare const credentialSeparator = ":";
|
|
|
874
878
|
* ```
|
|
875
879
|
* {
|
|
876
880
|
* foo: 'bar',
|
|
881
|
+
* asd: 'zxc',
|
|
877
882
|
* FIELD: '*abc*',
|
|
883
|
+
* DATE_FROM: '20231110-00:00',
|
|
884
|
+
* DATE_TO: '20231111-00:00',
|
|
878
885
|
* DATETIME_FROM: '20231110-03:23',
|
|
879
886
|
* DATETIME_TO: '20231115-03:23',
|
|
880
|
-
*
|
|
881
|
-
*
|
|
887
|
+
* DATEONLY_FROM: '20231110',
|
|
888
|
+
* DATEONLY_TO: '20231115',
|
|
882
889
|
* }
|
|
883
890
|
* ```
|
|
884
891
|
*/
|
|
@@ -62,9 +62,13 @@ eg: converts
|
|
|
62
62
|
|
|
63
63
|
```
|
|
64
64
|
foo == 'bar' &&
|
|
65
|
+
asd == 'zxc' &&
|
|
65
66
|
Expr.containsIgnoreCase(FIELD, 'abc') &&
|
|
67
|
+
Expr.dateIsToday(DATE) &&
|
|
66
68
|
Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&
|
|
67
69
|
Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&
|
|
70
|
+
Expr.dateIsGreaterEqual(DATEONLY, '20231110') &&
|
|
71
|
+
Expr.dateIsLessEqual(DATEONLY, '20231115') &&
|
|
68
72
|
FIELD_DATETIME >= 1704067200000 &&
|
|
69
73
|
FIELD_DATETIME <= 1704153600000
|
|
70
74
|
```
|
|
@@ -73,11 +77,14 @@ into
|
|
|
73
77
|
```
|
|
74
78
|
{
|
|
75
79
|
foo: 'bar',
|
|
80
|
+
asd: 'zxc',
|
|
76
81
|
FIELD: '*abc*',
|
|
82
|
+
DATE_FROM: '20231110-00:00',
|
|
83
|
+
DATE_TO: '20231111-00:00',
|
|
77
84
|
DATETIME_FROM: '20231110-03:23',
|
|
78
85
|
DATETIME_TO: '20231115-03:23',
|
|
79
|
-
|
|
80
|
-
|
|
86
|
+
DATEONLY_FROM: '20231110',
|
|
87
|
+
DATEONLY_TO: '20231115',
|
|
81
88
|
}
|
|
82
89
|
```
|
|
83
90
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-comms",
|
|
3
3
|
"description": "Genesis Foundation UI Comms",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.371.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -75,23 +75,23 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@genesislcap/foundation-testing": "14.
|
|
79
|
-
"@genesislcap/genx": "14.
|
|
80
|
-
"@genesislcap/rollup-builder": "14.
|
|
81
|
-
"@genesislcap/ts-builder": "14.
|
|
82
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
83
|
-
"@genesislcap/vite-builder": "14.
|
|
84
|
-
"@genesislcap/webpack-builder": "14.
|
|
78
|
+
"@genesislcap/foundation-testing": "14.371.0",
|
|
79
|
+
"@genesislcap/genx": "14.371.0",
|
|
80
|
+
"@genesislcap/rollup-builder": "14.371.0",
|
|
81
|
+
"@genesislcap/ts-builder": "14.371.0",
|
|
82
|
+
"@genesislcap/uvu-playwright-builder": "14.371.0",
|
|
83
|
+
"@genesislcap/vite-builder": "14.371.0",
|
|
84
|
+
"@genesislcap/webpack-builder": "14.371.0",
|
|
85
85
|
"@types/js-cookie": "^3.0.2",
|
|
86
86
|
"@types/json-schema": "^7.0.11",
|
|
87
87
|
"@types/webappsec-credential-management": "^0.6.2",
|
|
88
88
|
"sinon": "^17.0.1"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@genesislcap/foundation-broadcast-channel": "14.
|
|
92
|
-
"@genesislcap/foundation-logger": "14.
|
|
93
|
-
"@genesislcap/foundation-user": "14.
|
|
94
|
-
"@genesislcap/foundation-utils": "14.
|
|
91
|
+
"@genesislcap/foundation-broadcast-channel": "14.371.0",
|
|
92
|
+
"@genesislcap/foundation-logger": "14.371.0",
|
|
93
|
+
"@genesislcap/foundation-user": "14.371.0",
|
|
94
|
+
"@genesislcap/foundation-utils": "14.371.0",
|
|
95
95
|
"@microsoft/fast-element": "1.14.0",
|
|
96
96
|
"@microsoft/fast-foundation": "2.49.6",
|
|
97
97
|
"analytics": "0.8.16",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"publishConfig": {
|
|
111
111
|
"access": "public"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "ea4401059f690d90b8c5ebbfdd0c9bea654fa611"
|
|
114
114
|
}
|