@teselagen/ui 0.8.6-beta.6 → 0.8.6-beta.7
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/index.cjs.js
CHANGED
|
@@ -19492,7 +19492,7 @@ function tableQueryParamsToHasuraClauses({
|
|
|
19492
19492
|
case "contains":
|
|
19493
19493
|
return { [filterOn]: { _ilike: `%${filterValue}%` } };
|
|
19494
19494
|
case "notContains":
|
|
19495
|
-
return { [filterOn]: {
|
|
19495
|
+
return { [filterOn]: { _nilike: `%${filterValue}%` } };
|
|
19496
19496
|
case "isExactly":
|
|
19497
19497
|
return { [filterOn]: { _eq: filterValue } };
|
|
19498
19498
|
case "isEmpty":
|
package/index.es.js
CHANGED
|
@@ -19474,7 +19474,7 @@ function tableQueryParamsToHasuraClauses({
|
|
|
19474
19474
|
case "contains":
|
|
19475
19475
|
return { [filterOn]: { _ilike: `%${filterValue}%` } };
|
|
19476
19476
|
case "notContains":
|
|
19477
|
-
return { [filterOn]: {
|
|
19477
|
+
return { [filterOn]: { _nilike: `%${filterValue}%` } };
|
|
19478
19478
|
case "isExactly":
|
|
19479
19479
|
return { [filterOn]: { _eq: filterValue } };
|
|
19480
19480
|
case "isEmpty":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ui",
|
|
3
|
-
"version": "0.8.6-beta.
|
|
3
|
+
"version": "0.8.6-beta.7",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"chance": "^1.1.11",
|
|
56
56
|
"@dnd-kit/utilities": "3.2.2",
|
|
57
57
|
"@teselagen/file-utils": "0.3.20",
|
|
58
|
-
"@blueprintjs/icons": "3.33.0"
|
|
58
|
+
"@blueprintjs/icons": "3.33.0",
|
|
59
|
+
"jszip": "3.10.1"
|
|
59
60
|
},
|
|
60
61
|
"license": "MIT"
|
|
61
62
|
}
|
|
@@ -539,10 +539,10 @@ describe("filterLocalEntitiesToHasura", () => {
|
|
|
539
539
|
it("should order by multiple fields (age asc, name desc)", () => {
|
|
540
540
|
// Make two of the ages the same for testing secondary sort
|
|
541
541
|
const modifiedRecords = [
|
|
542
|
-
records[1],
|
|
542
|
+
records[1], // Jane Smith, age 25
|
|
543
543
|
{ ...records[0], age: 25 }, // John Doe, age 25
|
|
544
|
-
records[2],
|
|
545
|
-
records[3]
|
|
544
|
+
records[2], // Alice Johnson, age 35
|
|
545
|
+
records[3] // Bob Williams, age 20
|
|
546
546
|
];
|
|
547
547
|
const result = filterLocalEntitiesToHasura(modifiedRecords, {
|
|
548
548
|
order_by: [{ age: "asc" }, { name: "desc" }]
|
|
@@ -551,7 +551,7 @@ describe("filterLocalEntitiesToHasura", () => {
|
|
|
551
551
|
modifiedRecords[3], // age 20, name "Bob Williams"
|
|
552
552
|
modifiedRecords[1], // age 25, name "John Doe" (name desc)
|
|
553
553
|
modifiedRecords[0], // age 25, name "Jane Smith"
|
|
554
|
-
modifiedRecords[2]
|
|
554
|
+
modifiedRecords[2] // age 35, name "Alice Johnson"
|
|
555
555
|
]);
|
|
556
556
|
expect(result.entityCount).toBe(4);
|
|
557
557
|
});
|
|
@@ -108,7 +108,7 @@ export function tableQueryParamsToHasuraClauses({
|
|
|
108
108
|
case "contains":
|
|
109
109
|
return { [filterOn]: { _ilike: `%${filterValue}%` } };
|
|
110
110
|
case "notContains":
|
|
111
|
-
return { [filterOn]: {
|
|
111
|
+
return { [filterOn]: { _nilike: `%${filterValue}%` } };
|
|
112
112
|
case "isExactly":
|
|
113
113
|
return { [filterOn]: { _eq: filterValue } };
|
|
114
114
|
case "isEmpty":
|