ywana-core8 0.1.17 → 0.1.19
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/index.cjs +14 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +14 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +14 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.js +2 -2
- package/src/widgets/explorer/Explorer.js +1 -1
- package/src/widgets/login/LoginBox.js +1 -1
- package/src/widgets/login/login_commons.js +6 -6
package/dist/index.modern.js
CHANGED
@@ -1357,7 +1357,9 @@ var TextField = function TextField(props) {
|
|
1357
1357
|
onEnter = props.onEnter,
|
1358
1358
|
onClick = props.onClick,
|
1359
1359
|
onFocus = props.onFocus,
|
1360
|
-
onBlur = props.onBlur
|
1360
|
+
onBlur = props.onBlur,
|
1361
|
+
_props$autoComplete = props.autoComplete,
|
1362
|
+
autoComplete = _props$autoComplete === void 0 ? "off" : _props$autoComplete;
|
1361
1363
|
function onKeyPress(event) {
|
1362
1364
|
var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
|
1363
1365
|
if (key == 13) {
|
@@ -1413,7 +1415,8 @@ var TextField = function TextField(props) {
|
|
1413
1415
|
onFocus: focus,
|
1414
1416
|
onBlur: blur,
|
1415
1417
|
readOnly: readOnly,
|
1416
|
-
step: "any"
|
1418
|
+
step: "any",
|
1419
|
+
autocomplete: autoComplete
|
1417
1420
|
}), readOnly === false && canClear && value && value.length > 0 ? /*#__PURE__*/React.createElement(Icon, {
|
1418
1421
|
icon: "close",
|
1419
1422
|
clickable: true,
|
@@ -1752,6 +1755,7 @@ var LoginBox = function LoginBox(_ref) {
|
|
1752
1755
|
onEnter: ok,
|
1753
1756
|
outlined: true
|
1754
1757
|
}), /*#__PURE__*/React.createElement(TextField, {
|
1758
|
+
id: "loginbox-password",
|
1755
1759
|
label: tx(passwordLabel),
|
1756
1760
|
value: password,
|
1757
1761
|
onChange: changePassword,
|
@@ -1783,37 +1787,37 @@ function validatePassword(contraseña) {
|
|
1783
1787
|
|
1784
1788
|
// Verificar longitud mínima y máxima
|
1785
1789
|
if (contraseña.length < 15 || contraseña.length > 50) {
|
1786
|
-
error = '
|
1790
|
+
error = 'The password must be between 15 and 50 characters.';
|
1787
1791
|
return [false, error];
|
1788
1792
|
}
|
1789
1793
|
|
1790
1794
|
// Verificar al menos una letra (mayúscula o minúscula)
|
1791
1795
|
if (!/[A-Za-z]/.test(contraseña)) {
|
1792
|
-
error = '
|
1796
|
+
error = 'The password must contain at least one letter (A-Z or a-z).';
|
1793
1797
|
return [false, error];
|
1794
1798
|
}
|
1795
1799
|
|
1796
1800
|
// Verificar al menos un número
|
1797
1801
|
if (!/[0-9]/.test(contraseña)) {
|
1798
|
-
error = '
|
1802
|
+
error = 'The password must contain at least one number (0-9).';
|
1799
1803
|
return [false, error];
|
1800
1804
|
}
|
1801
1805
|
|
1802
1806
|
// Verificar al menos una minúscula
|
1803
1807
|
if (!/[a-z]/.test(contraseña)) {
|
1804
|
-
error = '
|
1808
|
+
error = 'The password must contain at least one lowercase letter (a-z).';
|
1805
1809
|
return [false, error];
|
1806
1810
|
}
|
1807
1811
|
|
1808
1812
|
// Verificar al menos una mayúscula
|
1809
1813
|
if (!/[A-Z]/.test(contraseña)) {
|
1810
|
-
error = '
|
1814
|
+
error = 'The password must contain at least one uppercase letter (A-Z).';
|
1811
1815
|
return [false, error];
|
1812
1816
|
}
|
1813
1817
|
|
1814
1818
|
// Verificar al menos un carácter especial
|
1815
1819
|
if (!/[<>+&!?*\-_%\.:=]/.test(contraseña)) {
|
1816
|
-
error = '
|
1820
|
+
error = 'The password must contain at least one special character (< > + & ! ? * - _ % . : =).';
|
1817
1821
|
return [false, error];
|
1818
1822
|
}
|
1819
1823
|
|
@@ -3993,6 +3997,8 @@ var FilesSearchBox = function FilesSearchBox(props) {
|
|
3993
3997
|
return /*#__PURE__*/React.createElement("div", {
|
3994
3998
|
className: "file-searchbox"
|
3995
3999
|
}, /*#__PURE__*/React.createElement(TextField, {
|
4000
|
+
id: "files-search-box",
|
4001
|
+
type: "search",
|
3996
4002
|
placeholder: "Search...",
|
3997
4003
|
onChange: searchChanged,
|
3998
4004
|
outlined: true
|