@thi.ng/rdom 1.7.2 → 1.7.4
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/CHANGELOG.md +17 -1
- package/README.md +1 -1
- package/dom.js +6 -5
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-09-
|
|
3
|
+
- **Last updated**: 2024-09-22T07:46:58Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,22 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [1.7.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.4) (2024-09-22)
|
|
13
|
+
|
|
14
|
+
#### 🩹 Bug fixes
|
|
15
|
+
|
|
16
|
+
- further fix __updateValueAttrib() ([378441c](https://github.com/thi-ng/umbrella/commit/378441c))
|
|
17
|
+
- also skip cursor pos update for readonly elements
|
|
18
|
+
- fix textarea handling
|
|
19
|
+
|
|
20
|
+
### [1.7.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.3) (2024-09-19)
|
|
21
|
+
|
|
22
|
+
#### 🩹 Bug fixes
|
|
23
|
+
|
|
24
|
+
- fix selection update in __updateValueAttrib() ([dada2de](https://github.com/thi-ng/umbrella/commit/dada2de))
|
|
25
|
+
- don't update selection (cursor pos) when updating disabled elements
|
|
26
|
+
- workaround for Safari focus issue
|
|
27
|
+
|
|
12
28
|
## [1.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.0) (2024-08-28)
|
|
13
29
|
|
|
14
30
|
#### 🚀 Features
|
package/README.md
CHANGED
package/dom.js
CHANGED
|
@@ -156,8 +156,8 @@ const __setAttrib = (el, id, val, attribs) => {
|
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
const __updateValueAttrib = (el, value) => {
|
|
159
|
-
|
|
160
|
-
switch (
|
|
159
|
+
const type = el instanceof HTMLTextAreaElement ? "text" : el.type;
|
|
160
|
+
switch (type) {
|
|
161
161
|
case "text":
|
|
162
162
|
case "textarea":
|
|
163
163
|
case "password":
|
|
@@ -165,10 +165,11 @@ const __updateValueAttrib = (el, value) => {
|
|
|
165
165
|
case "number":
|
|
166
166
|
case "url":
|
|
167
167
|
case "tel":
|
|
168
|
-
if (
|
|
169
|
-
const
|
|
168
|
+
if (el.value !== void 0 && isString(value)) {
|
|
169
|
+
const start = el.selectionStart;
|
|
170
|
+
const end = el.selectionEnd;
|
|
170
171
|
el.value = value;
|
|
171
|
-
el.
|
|
172
|
+
!(el.disabled || el.readOnly) && el.setSelectionRange(start, end);
|
|
172
173
|
break;
|
|
173
174
|
}
|
|
174
175
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rdom",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@thi.ng/api": "^8.11.
|
|
41
|
-
"@thi.ng/checks": "^3.6.
|
|
42
|
-
"@thi.ng/errors": "^2.5.
|
|
43
|
-
"@thi.ng/hiccup": "^5.2.
|
|
44
|
-
"@thi.ng/paths": "^5.1.
|
|
45
|
-
"@thi.ng/prefixes": "^2.3.
|
|
46
|
-
"@thi.ng/rstream": "^9.0.
|
|
47
|
-
"@thi.ng/strings": "^3.8.
|
|
40
|
+
"@thi.ng/api": "^8.11.10",
|
|
41
|
+
"@thi.ng/checks": "^3.6.12",
|
|
42
|
+
"@thi.ng/errors": "^2.5.16",
|
|
43
|
+
"@thi.ng/hiccup": "^5.2.13",
|
|
44
|
+
"@thi.ng/paths": "^5.1.90",
|
|
45
|
+
"@thi.ng/prefixes": "^2.3.27",
|
|
46
|
+
"@thi.ng/rstream": "^9.0.4",
|
|
47
|
+
"@thi.ng/strings": "^3.8.5"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@microsoft/api-extractor": "^7.47.
|
|
51
|
-
"esbuild": "^0.23.
|
|
52
|
-
"typedoc": "^0.26.
|
|
53
|
-
"typescript": "^5.
|
|
50
|
+
"@microsoft/api-extractor": "^7.47.9",
|
|
51
|
+
"esbuild": "^0.23.1",
|
|
52
|
+
"typedoc": "^0.26.7",
|
|
53
|
+
"typescript": "^5.6.2"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|
|
56
56
|
"async",
|
|
@@ -146,5 +146,5 @@
|
|
|
146
146
|
],
|
|
147
147
|
"year": 2020
|
|
148
148
|
},
|
|
149
|
-
"gitHead": "
|
|
149
|
+
"gitHead": "b6219c3ce0814b1b6e859c8c12616389e64952f2\n"
|
|
150
150
|
}
|