svelte-common 6.5.5 → 6.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-common",
3
- "version": "6.5.5",
3
+ "version": "6.6.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -53,7 +53,7 @@
53
53
  "c8": "^8.0.1",
54
54
  "documentation": "^14.0.2",
55
55
  "mf-styling": "^3.0.2",
56
- "npm-pkgbuild": "^11.10.11",
56
+ "npm-pkgbuild": "^11.10.12",
57
57
  "semantic-release": "^21.0.7",
58
58
  "stylelint": "^15.10.2",
59
59
  "stylelint-config-standard": "^34.0.0",
package/src/filter.mjs CHANGED
@@ -71,6 +71,14 @@ function allOp(value, against, op) {
71
71
  return against.test(value);
72
72
  }
73
73
 
74
+ if (against instanceof Map) {
75
+ for (const [k,v] of against) {
76
+ if (value.match(k) || value.match(v)) {
77
+ return true;
78
+ }
79
+ }
80
+ }
81
+
74
82
  if (Array.isArray(against) || against instanceof Set) {
75
83
  for (const i of against) {
76
84
  if (value.match(i)) {
@@ -87,6 +95,14 @@ function allOp(value, against, op) {
87
95
  return against.test(value);
88
96
  }
89
97
 
98
+ if (against instanceof Map) {
99
+ for (const [k,v] of against) {
100
+ if (numberOp(value, k, op) || numberOp(value, v, op)) {
101
+ return true;
102
+ }
103
+ }
104
+ }
105
+
90
106
  if (Array.isArray(against) || against instanceof Set) {
91
107
  for (const i of against) {
92
108
  if (numberOp(value, i, op)) {
@@ -153,12 +153,14 @@ export class Pagination {
153
153
  nav.setAttribute("aria-label", "pagination");
154
154
 
155
155
  nav.onkeyup = event => {
156
+ const step = (event.altKey ? 10 : 1);
157
+
156
158
  switch (event.key) {
157
159
  case "ArrowLeft":
158
- this.page = this.page - 1;
160
+ this.page = this.page - step;
159
161
  break;
160
162
  case "ArrowRight":
161
- this.page = this.page + 1;
163
+ this.page = this.page + step;
162
164
  break;
163
165
  }
164
166
  };