@ditojs/ui 2.47.0 → 2.48.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": "@ditojs/ui",
3
- "version": "2.47.0",
3
+ "version": "2.48.0",
4
4
  "type": "module",
5
5
  "description": "Dito.js UI is a simple UI library, built with Vue.js for use in Dito.js Admin and elsewhere",
6
6
  "repository": "https://github.com/ditojs/dito/tree/master/packages/ui",
@@ -39,12 +39,12 @@
39
39
  "ie_mob >= 11"
40
40
  ],
41
41
  "dependencies": {
42
- "@ditojs/utils": "^2.47.0",
42
+ "@ditojs/utils": "^2.48.0",
43
43
  "@soda/get-current-script": "^1.0.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@ditojs/build": "^2.47.0",
46
+ "@ditojs/build": "^2.48.0",
47
47
  "vite": "^6.3.4"
48
48
  },
49
- "gitHead": "9ce26a1dc412e67304e823c0206593ee4a9c8ae4"
49
+ "gitHead": "bacff1f9a6b314fad4f01b4a83d5cf4778d344e1"
50
50
  }
@@ -306,7 +306,7 @@ export default {
306
306
  const { value } = input
307
307
  let pos = selection.start
308
308
 
309
- const isDigit = char => !isNaN(parseInt(char, 10))
309
+ const isDigit = char => !isNaN(Number(char))
310
310
 
311
311
  if (event.key.length === 1) {
312
312
  if (isDigit(event.key) && pos < value.length) {
package/src/utils/date.js CHANGED
@@ -75,7 +75,6 @@ export function getDatePartAtPosition(string, position, {
75
75
  const getPosition = (position, length = parts.length) => {
76
76
  let pos = 0
77
77
  let index = 0
78
- // eslint-disable-next-line no-unmodified-loop-condition
79
78
  while ((position === null || pos <= position) && index < length) {
80
79
  pos += parts[index++]?.length ?? 0
81
80
  }