@stonecrop/aform 0.63.2 → 0.64.0
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/aform.js +47 -16
- package/dist/aform.js.map +1 -1
- package/dist/assets/index.css +57 -15
- package/dist/src/components/utilities/Login.vue.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/aform.js
CHANGED
|
@@ -921,7 +921,7 @@ var _hoisted_12$4 = {
|
|
|
921
921
|
};
|
|
922
922
|
var _hoisted_13$3 = ["value"];
|
|
923
923
|
var _hoisted_14$3 = ["id"];
|
|
924
|
-
var _hoisted_15$
|
|
924
|
+
var _hoisted_15$2 = ["id"];
|
|
925
925
|
// src/components/form/ACurrencyInput.vue
|
|
926
926
|
var ACurrencyInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
927
927
|
__name: "ACurrencyInput",
|
|
@@ -1216,7 +1216,7 @@ var ACurrencyInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
1216
1216
|
id: unref(errorId),
|
|
1217
1217
|
class: "aform_error",
|
|
1218
1218
|
role: "alert"
|
|
1219
|
-
}, toDisplayString(errorText.value), 9, _hoisted_15$
|
|
1219
|
+
}, toDisplayString(errorText.value), 9, _hoisted_15$2), [[vShow, errorText.value]])
|
|
1220
1220
|
], 64))]);
|
|
1221
1221
|
};
|
|
1222
1222
|
}
|
|
@@ -3272,7 +3272,7 @@ var _hoisted_14$1 = [
|
|
|
3272
3272
|
"onMousedown",
|
|
3273
3273
|
"onMouseenter"
|
|
3274
3274
|
];
|
|
3275
|
-
var _hoisted_15 = {
|
|
3275
|
+
var _hoisted_15$1 = {
|
|
3276
3276
|
key: 0,
|
|
3277
3277
|
class: "aform_field-label"
|
|
3278
3278
|
};
|
|
@@ -3517,7 +3517,7 @@ var AFormLink_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
3517
3517
|
"open",
|
|
3518
3518
|
"option-count",
|
|
3519
3519
|
"active-index"
|
|
3520
|
-
])) : createCommentVNode("", true)])), [[unref(vOnClickOutside), onClickOutside]]), __props.label && !__props.embedded ? (openBlock(), createElementBlock("label", _hoisted_15, toDisplayString(__props.label), 1)) : createCommentVNode("", true)], 64))], 2);
|
|
3520
|
+
])) : createCommentVNode("", true)])), [[unref(vOnClickOutside), onClickOutside]]), __props.label && !__props.embedded ? (openBlock(), createElementBlock("label", _hoisted_15$1, toDisplayString(__props.label), 1)) : createCommentVNode("", true)], 64))], 2);
|
|
3521
3521
|
};
|
|
3522
3522
|
}
|
|
3523
3523
|
}), [["__scopeId", "data-v-7ea13bc7"]]);
|
|
@@ -4132,14 +4132,30 @@ var _hoisted_9 = [
|
|
|
4132
4132
|
"disabled"
|
|
4133
4133
|
];
|
|
4134
4134
|
var _hoisted_10 = { class: "login-form-password aform_form-element" };
|
|
4135
|
-
var _hoisted_11 =
|
|
4136
|
-
var _hoisted_12 = ["disabled"];
|
|
4137
|
-
var _hoisted_13 =
|
|
4135
|
+
var _hoisted_11 = { class: "login-form-password__control" };
|
|
4136
|
+
var _hoisted_12 = ["type", "disabled"];
|
|
4137
|
+
var _hoisted_13 = ["aria-pressed", "disabled"];
|
|
4138
|
+
var _hoisted_14 = {
|
|
4139
|
+
key: 0,
|
|
4140
|
+
class: "login-form-password__icon",
|
|
4141
|
+
viewBox: "0 0 24 24",
|
|
4142
|
+
"aria-hidden": "true",
|
|
4143
|
+
focusable: "false"
|
|
4144
|
+
};
|
|
4145
|
+
var _hoisted_15 = {
|
|
4146
|
+
key: 1,
|
|
4147
|
+
class: "login-form-password__icon",
|
|
4148
|
+
viewBox: "0 0 24 24",
|
|
4149
|
+
"aria-hidden": "true",
|
|
4150
|
+
focusable: "false"
|
|
4151
|
+
};
|
|
4152
|
+
var _hoisted_16 = ["disabled"];
|
|
4153
|
+
var _hoisted_17 = {
|
|
4138
4154
|
key: 0,
|
|
4139
4155
|
class: "loading-icon",
|
|
4140
4156
|
"aria-hidden": "true"
|
|
4141
4157
|
};
|
|
4142
|
-
var
|
|
4158
|
+
var _hoisted_18 = {
|
|
4143
4159
|
key: 0,
|
|
4144
4160
|
class: "login-alternate"
|
|
4145
4161
|
};
|
|
@@ -4157,6 +4173,7 @@ var Login_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
4157
4173
|
const emit = __emit;
|
|
4158
4174
|
const identityValue = ref("");
|
|
4159
4175
|
const password = ref("");
|
|
4176
|
+
const passwordVisible = ref(false);
|
|
4160
4177
|
const isLoading = ref(false);
|
|
4161
4178
|
const passwordInput = useTemplateRef("passwordInput");
|
|
4162
4179
|
async function onSubmit(event) {
|
|
@@ -4195,32 +4212,46 @@ var Login_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
4195
4212
|
autocorrect: "off",
|
|
4196
4213
|
disabled: isLoading.value
|
|
4197
4214
|
}, null, 8, _hoisted_9), [[vModelDynamic, identityValue.value]])]),
|
|
4198
|
-
createElementVNode("div", _hoisted_10, [_cache[
|
|
4215
|
+
createElementVNode("div", _hoisted_10, [_cache[5] || (_cache[5] = createElementVNode("label", {
|
|
4199
4216
|
id: "login-password",
|
|
4200
4217
|
for: "password",
|
|
4201
4218
|
class: "aform_field-label"
|
|
4202
|
-
}, "Password", -1)), withDirectives(createElementVNode("input", {
|
|
4219
|
+
}, "Password", -1)), createElementVNode("div", _hoisted_11, [withDirectives(createElementVNode("input", {
|
|
4203
4220
|
id: "password",
|
|
4204
4221
|
ref_key: "passwordInput",
|
|
4205
4222
|
ref: passwordInput,
|
|
4206
4223
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => password.value = $event),
|
|
4207
|
-
class: "aform_input-field",
|
|
4224
|
+
class: "aform_input-field login-form-password__input",
|
|
4208
4225
|
name: "password",
|
|
4209
|
-
type: "password",
|
|
4226
|
+
type: passwordVisible.value ? "text" : "password",
|
|
4210
4227
|
autocomplete: "current-password",
|
|
4211
4228
|
disabled: isLoading.value
|
|
4212
|
-
}, null, 8,
|
|
4229
|
+
}, null, 8, _hoisted_12), [[vModelDynamic, password.value]]), createElementVNode("button", {
|
|
4230
|
+
id: "login-password-toggle",
|
|
4231
|
+
type: "button",
|
|
4232
|
+
class: "login-form-password__toggle",
|
|
4233
|
+
"aria-pressed": passwordVisible.value,
|
|
4234
|
+
"aria-label": "Show password",
|
|
4235
|
+
disabled: isLoading.value,
|
|
4236
|
+
onClick: _cache[2] || (_cache[2] = ($event) => passwordVisible.value = !passwordVisible.value)
|
|
4237
|
+
}, [!passwordVisible.value ? (openBlock(), createElementBlock("svg", _hoisted_14, [..._cache[3] || (_cache[3] = [createElementVNode("path", {
|
|
4238
|
+
fill: "currentColor",
|
|
4239
|
+
d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"
|
|
4240
|
+
}, null, -1)])])) : (openBlock(), createElementBlock("svg", _hoisted_15, [..._cache[4] || (_cache[4] = [createElementVNode("path", {
|
|
4241
|
+
fill: "currentColor",
|
|
4242
|
+
d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zM11.84 9.02l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"
|
|
4243
|
+
}, null, -1)])]))], 8, _hoisted_13)])]),
|
|
4213
4244
|
createElementVNode("button", {
|
|
4214
4245
|
type: "submit",
|
|
4215
4246
|
class: "btn",
|
|
4216
4247
|
disabled: isLoading.value || !identityValue.value || !password.value
|
|
4217
|
-
}, [isLoading.value ? (openBlock(), createElementBlock("span",
|
|
4248
|
+
}, [isLoading.value ? (openBlock(), createElementBlock("span", _hoisted_17)) : createCommentVNode("", true), _cache[6] || (_cache[6] = createElementVNode("span", { id: "login-form-button" }, "Login", -1))], 8, _hoisted_16)
|
|
4218
4249
|
])], 32),
|
|
4219
|
-
_ctx.$slots.alternateSignIn ? (openBlock(), createElementBlock("div",
|
|
4250
|
+
_ctx.$slots.alternateSignIn ? (openBlock(), createElementBlock("div", _hoisted_18, [renderSlot(_ctx.$slots, "alternateSignIn", { identity: identityValue.value }, void 0, true)])) : createCommentVNode("", true)
|
|
4220
4251
|
])])]);
|
|
4221
4252
|
};
|
|
4222
4253
|
}
|
|
4223
|
-
}), [["__scopeId", "data-v-
|
|
4254
|
+
}), [["__scopeId", "data-v-a5486214"]]);
|
|
4224
4255
|
// src/components/AFormLoading.vue
|
|
4225
4256
|
var _sfc_main = {};
|
|
4226
4257
|
var _hoisted_1$5 = { class: "aform-loading" };
|