@genesislcap/foundation-comms 14.258.1 → 14.258.2

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.
@@ -15,6 +15,7 @@
15
15
  * foo == 'bar' &&
16
16
  * asd == 'zxc' &&
17
17
  * Expr.containsIgnoreCase(FIELD, 'abc') &&
18
+ * Expr.dateIsEqual(DATE, '20231110') &&
18
19
  * Expr.dateIsToday(DATE) &&
19
20
  * Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&
20
21
  * Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&
@@ -28,6 +29,7 @@
28
29
  * {
29
30
  * foo: 'bar',
30
31
  * asd: 'zxc',
32
+ * DATE: '20231110',
31
33
  * FIELD: '*abc*',
32
34
  * DATE_FROM: '20231110-00:00',
33
35
  * DATE_TO: '20231111-00:00',
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"criteriaFiltersToFields.d.ts","sourceRoot":"","sources":["../../../src/datasource/criteriaFiltersToFields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAyE/E"}
@@ -15,6 +15,7 @@
15
15
  * foo == 'bar' &&
16
16
  * asd == 'zxc' &&
17
17
  * Expr.containsIgnoreCase(FIELD, 'abc') &&
18
+ * Expr.dateIsEqual(DATE, '20231110') &&
18
19
  * Expr.dateIsToday(DATE) &&
19
20
  * Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&
20
21
  * Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&
@@ -28,6 +29,7 @@
28
29
  * {
29
30
  * foo: 'bar',
30
31
  * asd: 'zxc',
32
+ * DATE: '20231110',
31
33
  * FIELD: '*abc*',
32
34
  * DATE_FROM: '20231110-00:00',
33
35
  * DATE_TO: '20231111-00:00',
@@ -68,6 +70,13 @@ export function criteriaFiltersToFields(filters) {
68
70
  reqFields[`${fieldName}_TO`] = value;
69
71
  }
70
72
  break;
73
+ case 'dateIsEqual':
74
+ {
75
+ const fieldNameValueMatcher = /Expr\.dateIsEqual\((\w+), ?['"](.+)['"]\)/;
76
+ const [, fieldName, value] = c.match(fieldNameValueMatcher);
77
+ reqFields[`${fieldName}`] = value;
78
+ }
79
+ break;
71
80
  case 'dateIsGreaterEqual':
72
81
  {
73
82
  const fieldNameValueMatcher = /Expr\.dateIsGreaterEqual\((\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 * 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",
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.dateIsEqual(DATE, '20231110') &&\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 * DATE: '20231110',\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",
@@ -768,6 +768,7 @@ export declare const credentialSeparator = ":";
768
768
  * foo == 'bar' &&
769
769
  * asd == 'zxc' &&
770
770
  * Expr.containsIgnoreCase(FIELD, 'abc') &&
771
+ * Expr.dateIsEqual(DATE, '20231110') &&
771
772
  * Expr.dateIsToday(DATE) &&
772
773
  * Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&
773
774
  * Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&
@@ -781,6 +782,7 @@ export declare const credentialSeparator = ":";
781
782
  * {
782
783
  * foo: 'bar',
783
784
  * asd: 'zxc',
785
+ * DATE: '20231110',
784
786
  * FIELD: '*abc*',
785
787
  * DATE_FROM: '20231110-00:00',
786
788
  * DATE_TO: '20231111-00:00',
@@ -32,6 +32,7 @@ eg: converts
32
32
  foo == 'bar' &&
33
33
  asd == 'zxc' &&
34
34
  Expr.containsIgnoreCase(FIELD, 'abc') &&
35
+ Expr.dateIsEqual(DATE, '20231110') &&
35
36
  Expr.dateIsToday(DATE) &&
36
37
  Expr.dateTimeIsGreaterEqual(DATETIME, '20231110-03:23') &&
37
38
  Expr.dateTimeIsLessEqual(DATETIME, '20231115-03:23') &&
@@ -44,6 +45,7 @@ into
44
45
  {
45
46
  foo: 'bar',
46
47
  asd: 'zxc',
48
+ DATE: '20231110',
47
49
  FIELD: '*abc*',
48
50
  DATE_FROM: '20231110-00:00',
49
51
  DATE_TO: '20231111-00:00',
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.258.1",
4
+ "version": "14.258.2",
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.258.1",
79
- "@genesislcap/genx": "14.258.1",
80
- "@genesislcap/rollup-builder": "14.258.1",
81
- "@genesislcap/ts-builder": "14.258.1",
82
- "@genesislcap/uvu-playwright-builder": "14.258.1",
83
- "@genesislcap/vite-builder": "14.258.1",
84
- "@genesislcap/webpack-builder": "14.258.1",
78
+ "@genesislcap/foundation-testing": "14.258.2",
79
+ "@genesislcap/genx": "14.258.2",
80
+ "@genesislcap/rollup-builder": "14.258.2",
81
+ "@genesislcap/ts-builder": "14.258.2",
82
+ "@genesislcap/uvu-playwright-builder": "14.258.2",
83
+ "@genesislcap/vite-builder": "14.258.2",
84
+ "@genesislcap/webpack-builder": "14.258.2",
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.258.1",
92
- "@genesislcap/foundation-logger": "14.258.1",
93
- "@genesislcap/foundation-user": "14.258.1",
94
- "@genesislcap/foundation-utils": "14.258.1",
91
+ "@genesislcap/foundation-broadcast-channel": "14.258.2",
92
+ "@genesislcap/foundation-logger": "14.258.2",
93
+ "@genesislcap/foundation-user": "14.258.2",
94
+ "@genesislcap/foundation-utils": "14.258.2",
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": "2221f0c21f02e203e2aa89f9a7fbc684de954a72"
114
+ "gitHead": "7ec8dc5d44f938e2f91fe7e7122602076c319b1d"
115
115
  }