svelte-common 6.9.6 → 6.9.8

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/README.md CHANGED
@@ -10,8 +10,11 @@
10
10
  [![Known Vulnerabilities](https://snyk.io/test/github/arlac77/svelte-common/badge.svg)](https://snyk.io/test/github/arlac77/svelte-common)
11
11
  [![Coverage Status](https://coveralls.io/repos/arlac77/svelte-common/badge.svg)](https://coveralls.io/github/arlac77/svelte-common)
12
12
  [![Tested with TestCafe](https://img.shields.io/badge/tested%20with-TestCafe-2fa4cf.svg)](https://github.com/DevExpress/testcafe)
13
- [![Tested with TestCafe](https://img.shields.io/badge/tested%20with-TestCafe-2fa4cf.svg)](https://github.com/DevExpress/testcafe)# svelte-commoncommon components utils used in svelte apps# usageCheck out the code in the [example](/example) folder,
14
- or the [live example](https://arlac77.github.io/components/svelte-common/example/index.html).# API<!-- Generated by documentation.js. Update this documentation by updating the source code. -->### Table of Contents* [AttributeDefinition](#attributedefinition)
13
+ # svelte-common common components utils used in svelte apps# usageCheck out the code in the [example](/example) folder,
14
+ or the [live example](https://arlac77.github.io/components/svelte-common/example/index.html).
15
+
16
+
17
+ # API<!-- Generated by documentation.js. Update this documentation by updating the source code. -->### Table of Contents* [AttributeDefinition](#attributedefinition)
15
18
  * [Properties](#properties)
16
19
  * [tokens](#tokens)
17
20
  * [Parameters](#parameters)
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "svelte-common",
3
- "version": "6.9.6",
3
+ "version": "6.9.8",
4
4
  "publishConfig": {
5
- "access": "public"
5
+ "access": "public",
6
+ "provenance": true
6
7
  },
7
8
  "exports": {
8
9
  ".": {
@@ -41,9 +42,9 @@
41
42
  "preview": "vite preview"
42
43
  },
43
44
  "dependencies": {
44
- "pacc": "^3.0.0",
45
+ "pacc": "^3.1.5",
45
46
  "svelte-command": "^1.1.50",
46
- "svelte-entitlement": "^1.2.70"
47
+ "svelte-entitlement": "^1.2.71"
47
48
  },
48
49
  "devDependencies": {
49
50
  "@semantic-release/commit-analyzer": "^11.1.0",
@@ -53,14 +54,14 @@
53
54
  "ava": "^6.1.1",
54
55
  "c8": "^9.1.0",
55
56
  "documentation": "^14.0.3",
56
- "mf-styling": "^3.1.2",
57
- "npm-pkgbuild": "^13.0.18",
58
- "semantic-release": "^23.0.0",
59
- "stylelint": "^16.2.0",
57
+ "mf-styling": "^3.1.4",
58
+ "npm-pkgbuild": "^13.0.20",
59
+ "semantic-release": "^23.0.2",
60
+ "stylelint": "^16.2.1",
60
61
  "stylelint-config-standard": "^36.0.0",
61
- "svelte": "^4.2.9",
62
+ "svelte": "^4.2.11",
62
63
  "testcafe": "^3.5.0",
63
- "vite": "^5.0.12",
64
+ "vite": "^5.1.3",
64
65
  "vite-plugin-compression2": "^0.12.0"
65
66
  },
66
67
  "optionalDependencies": {
@@ -69,7 +70,7 @@
69
70
  },
70
71
  "repository": {
71
72
  "type": "git",
72
- "url": "https://github.com/arlac77/svelte-common"
73
+ "url": "git+https://github.com/arlac77/svelte-common.git"
73
74
  },
74
75
  "bugs": {
75
76
  "url": "https://github.com/arlac77/svelte-common/issues"
package/src/filter.mjs CHANGED
@@ -192,14 +192,13 @@ function numberOp(value, against, op) {
192
192
  /**
193
193
  * Generate filter function.
194
194
  * @param {Object} [filterBy]
195
- * @param {Object} [getters]
196
195
  * @returns {Function}
197
196
  */
198
- export function filter(filterBy, getters) {
197
+ export function filter(filterBy) {
199
198
  if (filterBy) {
200
199
  const filters = Object.entries(filterBy).map(([key, against]) => {
201
200
  return a => {
202
- const [value, op] = getAttributeAndOperator(a, key, getters);
201
+ const [value, op] = getAttributeAndOperator(a, key);
203
202
  return allOp(value, against, op);
204
203
  };
205
204
  });
@@ -45,6 +45,9 @@ export class Pagination {
45
45
  return this.#sorter;
46
46
  }
47
47
 
48
+ /**
49
+ * Enshure that current page lies inside 1 ... numberOfPages
50
+ */
48
51
  recalibrateCurrentPage() {
49
52
  if (this.page > this.numberOfPages) {
50
53
  this.page = this.numberOfPages;