@lynx-js/web-elements 0.5.3 → 0.5.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
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @lynx-js/web-elements
|
|
2
2
|
|
|
3
|
+
## 0.5.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- chore: bump the output target to es2024 ([#518](https://github.com/lynx-family/lynx-stack/pull/518))
|
|
8
|
+
|
|
9
|
+
- fix: the `\n` character should create a new line ([#522](https://github.com/lynx-family/lynx-stack/pull/522))
|
|
10
|
+
|
|
11
|
+
add `white-space-collapse: preserve-breaks` to raw-text
|
|
12
|
+
|
|
13
|
+
- fix: the `input` event of x-input with number type should have raw value ([#517](https://github.com/lynx-family/lynx-stack/pull/517))
|
|
14
|
+
|
|
15
|
+
For `type:=number` x-input with typed value "2."
|
|
16
|
+
|
|
17
|
+
Before this commit: the value is "2"
|
|
18
|
+
|
|
19
|
+
After this commit the value is "2."
|
|
20
|
+
|
|
3
21
|
## 0.5.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -37,13 +37,14 @@ let InputBaseAttributes = (() => {
|
|
|
37
37
|
// @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode
|
|
38
38
|
let inputMode = 'text';
|
|
39
39
|
let inputType = 'text';
|
|
40
|
+
/**
|
|
41
|
+
* For number / digit type, if the user is typing "2.", the raw value is expected to remain "2." rather than being altered.
|
|
42
|
+
*/
|
|
40
43
|
if (attributeValue === 'digit') {
|
|
41
44
|
inputMode = 'numeric';
|
|
42
|
-
inputType = 'number';
|
|
43
45
|
}
|
|
44
46
|
else if (attributeValue === 'number') {
|
|
45
47
|
inputMode = 'decimal';
|
|
46
|
-
inputType = 'number';
|
|
47
48
|
}
|
|
48
49
|
else if (attributeValue === 'email') {
|
|
49
50
|
inputMode = 'email';
|
|
@@ -26,7 +26,7 @@ let XInputEvents = (() => {
|
|
|
26
26
|
input.addEventListener('compositionend', this.#teleportCompositionendInput, { passive: true });
|
|
27
27
|
}
|
|
28
28
|
else {
|
|
29
|
-
input.
|
|
29
|
+
input.removeEventListener('input', this.#teleportInput);
|
|
30
30
|
input.removeEventListener('compositionend', this.#teleportCompositionendInput);
|
|
31
31
|
}
|
|
32
32
|
}, "#handleEnableConfirmEvent") }, _private_handleEnableConfirmEvent_decorators, { kind: "method", name: "#handleEnableConfirmEvent", static: false, private: true, access: { has: obj => #handleEnableConfirmEvent in obj, get: obj => obj.#handleEnableConfirmEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
|
package/package.json
CHANGED