@fkui/logic 6.28.0 → 6.29.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/lib/cjs/index.js CHANGED
@@ -5086,7 +5086,8 @@ const WHITELIST_REGEXP = /^[a-zA-Z0-9 .,\-()\r\n?+=!:@*\xC0-\xFF]*$/;
5086
5086
  const whitelistValidator = {
5087
5087
  name: "whitelist",
5088
5088
  instant: true,
5089
- validation(value) {
5089
+ validation(_value, element) {
5090
+ const value = "value" in element ? element.value : "";
5090
5091
  return isEmpty(value) || WHITELIST_REGEXP.test(value);
5091
5092
  },
5092
5093
  };
package/lib/esm/index.js CHANGED
@@ -5084,7 +5084,8 @@ const WHITELIST_REGEXP = /^[a-zA-Z0-9 .,\-()\r\n?+=!:@*\xC0-\xFF]*$/;
5084
5084
  const whitelistValidator = {
5085
5085
  name: "whitelist",
5086
5086
  instant: true,
5087
- validation(value) {
5087
+ validation(_value, element) {
5088
+ const value = "value" in element ? element.value : "";
5088
5089
  return isEmpty(value) || WHITELIST_REGEXP.test(value);
5089
5090
  },
5090
5091
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkui/logic",
3
- "version": "6.28.0",
3
+ "version": "6.29.0",
4
4
  "description": "Logic",
5
5
  "keywords": [
6
6
  "fkui",
@@ -61,11 +61,11 @@
61
61
  "watch": "rollup --config --watch"
62
62
  },
63
63
  "peerDependencies": {
64
- "@fkui/date": "^6.28.0"
64
+ "@fkui/date": "^6.29.0"
65
65
  },
66
66
  "engines": {
67
67
  "node": ">= 20",
68
68
  "npm": ">= 7"
69
69
  },
70
- "gitHead": "fe2ffaeb55b9e9f560cc6f660740bc3480f77cd8"
70
+ "gitHead": "7152e2e334db2e8ef15828227b7a244bb5e52bc7"
71
71
  }