svelte-common 6.3.0 → 6.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-common",
3
- "version": "6.3.0",
3
+ "version": "6.3.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -52,7 +52,7 @@
52
52
  "ava": "^5.3.1",
53
53
  "c8": "^8.0.0",
54
54
  "documentation": "^14.0.2",
55
- "mf-styling": "^3.0.0",
55
+ "mf-styling": "^3.0.1",
56
56
  "npm-pkgbuild": "^11.8.14",
57
57
  "semantic-release": "^21.0.7",
58
58
  "stylelint": "^15.10.1",
@@ -162,11 +162,12 @@ export class Pagination {
162
162
  a.innerText = innerText;
163
163
 
164
164
  if (targetPage < 1 || targetPage > np) {
165
- a.ariaDisabled = "true";
165
+ a.setAttribute("aria-disabled", "true");
166
+ a.tabIndex=-1;
166
167
  } else {
167
168
  if (targetPage === this.page) {
168
- a.ariaDisabled = "true";
169
169
  a.classList.add("active");
170
+ a.setAttribute("aria-disabled", "true");
170
171
  a.setAttribute("aria-current", "page");
171
172
  } else {
172
173
  a.onclick = e => {
package/src/sorting.mjs CHANGED
@@ -110,11 +110,12 @@ export function sorter(sortBy, getters) {
110
110
  if (bv === undefined) {
111
111
  return rev;
112
112
  }
113
- if (av instanceof Date) {
114
- av = av.getTime();
113
+
114
+ if(av[Symbol.toPrimitive]) {
115
+ av = av[Symbol.toPrimitive]('number');
115
116
  }
116
- if (bv instanceof Date) {
117
- bv = bv.getTime();
117
+ if(bv[Symbol.toPrimitive]) {
118
+ bv = bv[Symbol.toPrimitive]('number');
118
119
  }
119
120
 
120
121
  return av > bv ? rev : av == bv ? 0 : -rev;