@mobileaction/action-kit 1.58.12-beta.20260410120959 → 1.58.13
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/action-kit.mjs +12 -4
- package/package.json +1 -1
package/dist/action-kit.mjs
CHANGED
|
@@ -15528,11 +15528,11 @@ var Jl = /* @__PURE__ */ Kl(Gl, [["render", ql]]), Yl = /* @__PURE__ */ y({
|
|
|
15528
15528
|
size: { default: "small" },
|
|
15529
15529
|
showLabel: {
|
|
15530
15530
|
type: Boolean,
|
|
15531
|
-
default: !
|
|
15531
|
+
default: !0
|
|
15532
15532
|
},
|
|
15533
15533
|
showMessage: {
|
|
15534
15534
|
type: Boolean,
|
|
15535
|
-
default: !
|
|
15535
|
+
default: !0
|
|
15536
15536
|
}
|
|
15537
15537
|
},
|
|
15538
15538
|
setup(e) {
|
|
@@ -17169,7 +17169,14 @@ var rf = ["value", "placeholder"], af = /* @__PURE__ */ y({
|
|
|
17169
17169
|
...r.wrapperProps
|
|
17170
17170
|
})), S = R(!1), C = l(() => S.value ? "text" : "password");
|
|
17171
17171
|
function w() {
|
|
17172
|
-
|
|
17172
|
+
let e = c.value, t = a.value.length;
|
|
17173
|
+
S.value = !S.value, requestAnimationFrame(() => {
|
|
17174
|
+
if (e) try {
|
|
17175
|
+
e.setSelectionRange(t, t);
|
|
17176
|
+
} catch {
|
|
17177
|
+
console.warn("Failed to restore cursor position after toggling password visibility");
|
|
17178
|
+
}
|
|
17179
|
+
});
|
|
17173
17180
|
}
|
|
17174
17181
|
function T() {
|
|
17175
17182
|
a.value = "", i("clear"), c.value?.focus();
|
|
@@ -17195,11 +17202,12 @@ var rf = ["value", "placeholder"], af = /* @__PURE__ */ y({
|
|
|
17195
17202
|
class: "ma-password-input__toggle",
|
|
17196
17203
|
"aria-label": S.value ? U(o).config.locale.aria.hidePassword : U(o).config.locale.aria.showPassword,
|
|
17197
17204
|
"aria-pressed": S.value,
|
|
17205
|
+
onMousedown: t[3] ||= _e(() => {}, ["prevent"]),
|
|
17198
17206
|
onClick: w
|
|
17199
17207
|
}, [_(X, {
|
|
17200
17208
|
name: S.value ? "eye" : "eye-slash",
|
|
17201
17209
|
size: "sm"
|
|
17202
|
-
}, null, 8, ["name"])],
|
|
17210
|
+
}, null, 8, ["name"])], 40, sf)) : r.suffixIcon ? (I(), d(X, {
|
|
17203
17211
|
key: 1,
|
|
17204
17212
|
name: r.suffixIcon,
|
|
17205
17213
|
size: "sm"
|