@genesislcap/foundation-comms 14.242.1 → 14.244.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.
@@ -17,7 +17,9 @@
17
17
  * Expr.containsIgnoreCase(FIELD, 'abc') &&
18
18
  * Expr.dateIsToday(DATE) &&
19
19
  * Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&
20
- * Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23')
20
+ * Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&
21
+ * Expr.dateIsGreaterEqual(DATEONLY, '20231110') &&
22
+ * Expr.dateIsLessEqual(DATEONLY, '20231115')
21
23
  * ```
22
24
  *
23
25
  * into
@@ -31,6 +33,8 @@
31
33
  * DATE_TO: '20231111-00:00',
32
34
  * DATETIME_FROM: '20231110-03:23',
33
35
  * DATETIME_TO: '20231115-03:23',
36
+ * DATEONLY_FROM: '20231110',
37
+ * DATEONLY_TO: '20231115',
34
38
  * }
35
39
  * ```
36
40
  */
@@ -1 +1 @@
1
- {"version":3,"file":"criteriaFiltersToFields.d.ts","sourceRoot":"","sources":["../../../src/datasource/criteriaFiltersToFields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAoD/E"}
1
+ {"version":3,"file":"criteriaFiltersToFields.d.ts","sourceRoot":"","sources":["../../../src/datasource/criteriaFiltersToFields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkE/E"}
@@ -17,7 +17,9 @@
17
17
  * Expr.containsIgnoreCase(FIELD, 'abc') &&
18
18
  * Expr.dateIsToday(DATE) &&
19
19
  * Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&
20
- * Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23')
20
+ * Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&
21
+ * Expr.dateIsGreaterEqual(DATEONLY, '20231110') &&
22
+ * Expr.dateIsLessEqual(DATEONLY, '20231115')
21
23
  * ```
22
24
  *
23
25
  * into
@@ -31,6 +33,8 @@
31
33
  * DATE_TO: '20231111-00:00',
32
34
  * DATETIME_FROM: '20231110-03:23',
33
35
  * DATETIME_TO: '20231115-03:23',
36
+ * DATEONLY_FROM: '20231110',
37
+ * DATEONLY_TO: '20231115',
34
38
  * }
35
39
  * ```
36
40
  */
@@ -64,6 +68,20 @@ export function criteriaFiltersToFields(filters) {
64
68
  reqFields[`${fieldName}_TO`] = value;
65
69
  }
66
70
  break;
71
+ case 'dateIsGreaterEqual':
72
+ {
73
+ const fieldNameValueMatcher = /Expr\.dateIsGreaterEqual\((\w+), ?['"](.+)['"]\)/;
74
+ const [, fieldName, value] = c.match(fieldNameValueMatcher);
75
+ reqFields[`${fieldName}_FROM`] = value;
76
+ }
77
+ break;
78
+ case 'dateIsLessEqual':
79
+ {
80
+ const fieldNameValueMatcher = /Expr\.dateIsLessEqual\((\w+), ?['"](.+)['"]\)/;
81
+ const [, fieldName, value] = c.match(fieldNameValueMatcher);
82
+ reqFields[`${fieldName}_TO`] = value;
83
+ }
84
+ break;
67
85
  case 'containsIgnoreCase':
68
86
  {
69
87
  const fieldNameValueMatcher = /Expr\.containsIgnoreCase\((\w+), ?['"](.+)['"]\)/;
@@ -4335,7 +4335,7 @@
4335
4335
  {
4336
4336
  "kind": "Function",
4337
4337
  "canonicalReference": "@genesislcap/foundation-comms!criteriaFiltersToFields:function(1)",
4338
- "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 * 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 * ```\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 * }\n * ```\n *\n * @param filters - Concatenated criteria filters.\n *\n * @public\n */\n",
4338
+ "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 * 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 * ```\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",
4339
4339
  "excerptTokens": [
4340
4340
  {
4341
4341
  "kind": "Content",
@@ -770,7 +770,9 @@ export declare const credentialSeparator = ":";
770
770
  * Expr.containsIgnoreCase(FIELD, 'abc') &&
771
771
  * Expr.dateIsToday(DATE) &&
772
772
  * Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&
773
- * Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23')
773
+ * Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&
774
+ * Expr.dateIsGreaterEqual(DATEONLY, '20231110') &&
775
+ * Expr.dateIsLessEqual(DATEONLY, '20231115')
774
776
  * ```
775
777
  *
776
778
  * into
@@ -784,6 +786,8 @@ export declare const credentialSeparator = ":";
784
786
  * DATE_TO: '20231111-00:00',
785
787
  * DATETIME_FROM: '20231110-03:23',
786
788
  * DATETIME_TO: '20231115-03:23',
789
+ * DATEONLY_FROM: '20231110',
790
+ * DATEONLY_TO: '20231115',
787
791
  * }
788
792
  * ```
789
793
  */
@@ -34,7 +34,9 @@ asd == 'zxc' &&
34
34
  Expr.containsIgnoreCase(FIELD, 'abc') &&
35
35
  Expr.dateIsToday(DATE) &&
36
36
  Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&
37
- Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23')
37
+ Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&
38
+ Expr.dateIsGreaterEqual(DATEONLY, '20231110') &&
39
+ Expr.dateIsLessEqual(DATEONLY, '20231115')
38
40
  ```
39
41
  into
40
42
 
@@ -47,6 +49,8 @@ into
47
49
  DATE_TO: '20231111-00:00',
48
50
  DATETIME_FROM: '20231110-03:23',
49
51
  DATETIME_TO: '20231115-03:23',
52
+ DATEONLY_FROM: '20231110',
53
+ DATEONLY_TO: '20231115',
50
54
  }
51
55
  ```
52
56
 
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.242.1",
4
+ "version": "14.244.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.242.1",
79
- "@genesislcap/genx": "14.242.1",
80
- "@genesislcap/rollup-builder": "14.242.1",
81
- "@genesislcap/ts-builder": "14.242.1",
82
- "@genesislcap/uvu-playwright-builder": "14.242.1",
83
- "@genesislcap/vite-builder": "14.242.1",
84
- "@genesislcap/webpack-builder": "14.242.1",
78
+ "@genesislcap/foundation-testing": "14.244.0",
79
+ "@genesislcap/genx": "14.244.0",
80
+ "@genesislcap/rollup-builder": "14.244.0",
81
+ "@genesislcap/ts-builder": "14.244.0",
82
+ "@genesislcap/uvu-playwright-builder": "14.244.0",
83
+ "@genesislcap/vite-builder": "14.244.0",
84
+ "@genesislcap/webpack-builder": "14.244.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
  "rimraf": "^5.0.0"
89
89
  },
90
90
  "dependencies": {
91
- "@genesislcap/foundation-broadcast-channel": "14.242.1",
92
- "@genesislcap/foundation-logger": "14.242.1",
93
- "@genesislcap/foundation-user": "14.242.1",
94
- "@genesislcap/foundation-utils": "14.242.1",
91
+ "@genesislcap/foundation-broadcast-channel": "14.244.0",
92
+ "@genesislcap/foundation-logger": "14.244.0",
93
+ "@genesislcap/foundation-user": "14.244.0",
94
+ "@genesislcap/foundation-utils": "14.244.0",
95
95
  "@microsoft/fast-element": "1.14.0",
96
96
  "@microsoft/fast-foundation": "2.49.6",
97
97
  "analytics": "^0.8.0",
@@ -111,5 +111,5 @@
111
111
  "publishConfig": {
112
112
  "access": "public"
113
113
  },
114
- "gitHead": "417b74d0261f996ec21224795760d76ea1d02816"
114
+ "gitHead": "2df19b4e6686b07ed7bccbfa39bdae30df4cba15"
115
115
  }