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.cjs
CHANGED
@@ -1366,7 +1366,9 @@ var TextField = function TextField(props) {
|
|
1366
1366
|
onEnter = props.onEnter,
|
1367
1367
|
onClick = props.onClick,
|
1368
1368
|
onFocus = props.onFocus,
|
1369
|
-
onBlur = props.onBlur
|
1369
|
+
onBlur = props.onBlur,
|
1370
|
+
_props$autoComplete = props.autoComplete,
|
1371
|
+
autoComplete = _props$autoComplete === void 0 ? "off" : _props$autoComplete;
|
1370
1372
|
function onKeyPress(event) {
|
1371
1373
|
var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
|
1372
1374
|
if (key == 13) {
|
@@ -1422,7 +1424,8 @@ var TextField = function TextField(props) {
|
|
1422
1424
|
onFocus: focus,
|
1423
1425
|
onBlur: blur,
|
1424
1426
|
readOnly: readOnly,
|
1425
|
-
step: "any"
|
1427
|
+
step: "any",
|
1428
|
+
autocomplete: autoComplete
|
1426
1429
|
}), readOnly === false && canClear && value && value.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
1427
1430
|
icon: "close",
|
1428
1431
|
clickable: true,
|
@@ -1761,6 +1764,7 @@ var LoginBox = function LoginBox(_ref) {
|
|
1761
1764
|
onEnter: ok,
|
1762
1765
|
outlined: true
|
1763
1766
|
}), /*#__PURE__*/React__default["default"].createElement(TextField, {
|
1767
|
+
id: "loginbox-password",
|
1764
1768
|
label: tx(passwordLabel),
|
1765
1769
|
value: password,
|
1766
1770
|
onChange: changePassword,
|
@@ -1792,37 +1796,37 @@ function validatePassword(contraseña) {
|
|
1792
1796
|
|
1793
1797
|
// Verificar longitud mínima y máxima
|
1794
1798
|
if (contraseña.length < 15 || contraseña.length > 50) {
|
1795
|
-
error = '
|
1799
|
+
error = 'The password must be between 15 and 50 characters.';
|
1796
1800
|
return [false, error];
|
1797
1801
|
}
|
1798
1802
|
|
1799
1803
|
// Verificar al menos una letra (mayúscula o minúscula)
|
1800
1804
|
if (!/[A-Za-z]/.test(contraseña)) {
|
1801
|
-
error = '
|
1805
|
+
error = 'The password must contain at least one letter (A-Z or a-z).';
|
1802
1806
|
return [false, error];
|
1803
1807
|
}
|
1804
1808
|
|
1805
1809
|
// Verificar al menos un número
|
1806
1810
|
if (!/[0-9]/.test(contraseña)) {
|
1807
|
-
error = '
|
1811
|
+
error = 'The password must contain at least one number (0-9).';
|
1808
1812
|
return [false, error];
|
1809
1813
|
}
|
1810
1814
|
|
1811
1815
|
// Verificar al menos una minúscula
|
1812
1816
|
if (!/[a-z]/.test(contraseña)) {
|
1813
|
-
error = '
|
1817
|
+
error = 'The password must contain at least one lowercase letter (a-z).';
|
1814
1818
|
return [false, error];
|
1815
1819
|
}
|
1816
1820
|
|
1817
1821
|
// Verificar al menos una mayúscula
|
1818
1822
|
if (!/[A-Z]/.test(contraseña)) {
|
1819
|
-
error = '
|
1823
|
+
error = 'The password must contain at least one uppercase letter (A-Z).';
|
1820
1824
|
return [false, error];
|
1821
1825
|
}
|
1822
1826
|
|
1823
1827
|
// Verificar al menos un carácter especial
|
1824
1828
|
if (!/[<>+&!?*\-_%\.:=]/.test(contraseña)) {
|
1825
|
-
error = '
|
1829
|
+
error = 'The password must contain at least one special character (< > + & ! ? * - _ % . : =).';
|
1826
1830
|
return [false, error];
|
1827
1831
|
}
|
1828
1832
|
|
@@ -4002,6 +4006,8 @@ var FilesSearchBox = function FilesSearchBox(props) {
|
|
4002
4006
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
4003
4007
|
className: "file-searchbox"
|
4004
4008
|
}, /*#__PURE__*/React__default["default"].createElement(TextField, {
|
4009
|
+
id: "files-search-box",
|
4010
|
+
type: "search",
|
4005
4011
|
placeholder: "Search...",
|
4006
4012
|
onChange: searchChanged,
|
4007
4013
|
outlined: true
|