@webority/ui-react 0.9.3 → 0.9.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/dist/ui-react.js +14 -3
- package/package.json +3 -3
package/dist/ui-react.js
CHANGED
|
@@ -1999,18 +1999,29 @@ var Oe = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1999
1999
|
detail: t
|
|
2000
2000
|
}));
|
|
2001
2001
|
};
|
|
2002
|
-
e.addEventListener("input", () =>
|
|
2002
|
+
e.addEventListener("input", () => {
|
|
2003
|
+
let n = e.value;
|
|
2004
|
+
if (this._value.length === this.length && n.length > this._value.length && n.startsWith(this._value)) {
|
|
2005
|
+
let e = this._clean(n.slice(this._value.length));
|
|
2006
|
+
if (e) {
|
|
2007
|
+
t(e);
|
|
2008
|
+
return;
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
t(n);
|
|
2012
|
+
}), e.addEventListener("paste", (e) => {
|
|
2003
2013
|
let n = e.clipboardData?.getData("text");
|
|
2004
2014
|
n != null && (e.preventDefault(), t(n));
|
|
2005
2015
|
});
|
|
2006
2016
|
for (let t of [
|
|
2007
2017
|
"keyup",
|
|
2008
2018
|
"click",
|
|
2009
|
-
"focus",
|
|
2010
2019
|
"blur",
|
|
2011
2020
|
"select"
|
|
2012
2021
|
]) e.addEventListener(t, () => this._paint());
|
|
2013
|
-
|
|
2022
|
+
e.addEventListener("focus", () => {
|
|
2023
|
+
this._value.length === this.length && e.select(), this._paint();
|
|
2024
|
+
}), this._onSelectionChange && document.removeEventListener("selectionchange", this._onSelectionChange), this._onSelectionChange = () => {
|
|
2014
2025
|
document.activeElement === e && this._paint();
|
|
2015
2026
|
}, document.addEventListener("selectionchange", this._onSelectionChange);
|
|
2016
2027
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@webority/theme": "0.9.
|
|
32
|
-
"@webority/ui-elements": "0.9.
|
|
31
|
+
"@webority/theme": "0.9.4",
|
|
32
|
+
"@webority/ui-elements": "0.9.4"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"bootstrap": "5.3.3",
|