morya-ui 0.2.8 → 0.2.9
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/CHANGELOG.md +27 -0
- package/README.md +1 -0
- package/README.zh-CN.md +1 -0
- package/dist/{Button--RkQybU-.js → Button-DO5oukfg.js} +1 -1
- package/dist/Icon-B6IBrJ5S.js +606 -0
- package/dist/{Pagination-BKvR-RUW.js → Pagination-CUwCtWhz.js} +1 -1
- package/dist/accordion/style.css +26 -23
- package/dist/auto-complete/index.js +1 -1
- package/dist/auto-complete/style.css +64 -40
- package/dist/avatar/index.js +1 -1
- package/dist/avatar/style.css +26 -23
- package/dist/badge/style.css +26 -23
- package/dist/block-ui/style.css +26 -23
- package/dist/breadcrumb/style.css +26 -23
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +26 -23
- package/dist/card/style.css +26 -23
- package/dist/carousel/index.js +1 -1
- package/dist/carousel/style.css +26 -23
- package/dist/cascade-select/index.js +1 -1
- package/dist/cascade-select/style.css +27 -24
- package/dist/checkbox/style.css +26 -23
- package/dist/chip/index.js +1 -1
- package/dist/chip/style.css +26 -23
- package/dist/command-menu/index.js +2 -2
- package/dist/command-menu/style.css +26 -23
- package/dist/components/AutoComplete/styles.css +38 -17
- package/dist/components/DatePicker/styles.css +65 -21
- package/dist/components/Icon/icon-categories.d.ts +21 -0
- package/dist/components/Icon/icon-categories.d.ts.map +1 -0
- package/dist/components/Icon/icons-tabler.d.ts +77 -0
- package/dist/components/Icon/icons-tabler.d.ts.map +1 -0
- package/dist/components/Icon/icons-types.d.ts +36 -0
- package/dist/components/Icon/icons-types.d.ts.map +1 -0
- package/dist/components/Icon/icons.d.ts +75 -32
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/IconField/IconField.vue.d.ts +3 -1
- package/dist/components/IconField/IconField.vue.d.ts.map +1 -1
- package/dist/components/IconField/styles.css +306 -31
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/styles.css +172 -33
- package/dist/components/InputNumber/styles.css +103 -40
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/styles.css +79 -79
- package/dist/components/Layout/LayoutContent.vue.d.ts +4 -8
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutSider.vue.d.ts +4 -6
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +2 -0
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +7 -42
- package/dist/components/Layout/types.d.ts +4 -7
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +4 -1
- package/dist/components/Textarea/styles.css +15 -1
- package/dist/config-provider/style.css +198 -56
- package/dist/confirm-dialog/index.js +2 -2
- package/dist/confirm-dialog/style.css +26 -23
- package/dist/confirm-popup/index.js +2 -2
- package/dist/confirm-popup/style.css +26 -23
- package/dist/context-menu/index.js +2 -2
- package/dist/context-menu/style.css +26 -23
- package/dist/data-view/index.js +1 -1
- package/dist/data-view/style.css +26 -23
- package/dist/date-picker/index.js +1 -1
- package/dist/date-picker/style.css +91 -44
- package/dist/dialog/index.js +2 -2
- package/dist/dialog/style.css +26 -23
- package/dist/divider/style.css +26 -23
- package/dist/dock/index.js +2 -2
- package/dist/dock/style.css +26 -23
- package/dist/drawer/index.js +1 -1
- package/dist/drawer/style.css +26 -23
- package/dist/dropdown/index.js +2 -2
- package/dist/dropdown/style.css +26 -23
- package/dist/empty/index.js +1 -1
- package/dist/empty/style.css +26 -23
- package/dist/fieldset/index.js +1 -1
- package/dist/fieldset/style.css +26 -23
- package/dist/file-upload/index.js +1 -1
- package/dist/file-upload/style.css +26 -23
- package/dist/flex/style.css +26 -23
- package/dist/float-label/style.css +26 -23
- package/dist/fluid/style.css +26 -23
- package/dist/form/style.css +26 -23
- package/dist/gallery/index.js +1 -1
- package/dist/gallery/style.css +26 -23
- package/dist/grid/style.css +26 -23
- package/dist/icon/index.js +212 -2
- package/dist/icon/style.css +26 -23
- package/dist/icon-field/index.js +41 -7
- package/dist/icon-field/style.css +672 -54
- package/dist/icon-field/style.js +1 -0
- package/dist/{icon-xUOyawgJ.js → icon-iOBeyIRp.js} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3126 -2821
- package/dist/inplace/style.css +26 -23
- package/dist/input/index.js +78 -80
- package/dist/input/style.css +198 -56
- package/dist/input-color/style.css +26 -23
- package/dist/input-group/style.css +26 -23
- package/dist/input-number/index.js +1 -1
- package/dist/input-number/style.css +129 -63
- package/dist/input-otp/style.css +26 -23
- package/dist/input-password/index.js +83 -82
- package/dist/input-password/style.css +105 -102
- package/dist/input-tags/index.js +1 -1
- package/dist/input-tags/style.css +26 -23
- package/dist/knob/style.css +26 -23
- package/dist/label/style.css +26 -23
- package/dist/layout/index.js +60 -83
- package/dist/layout/style.css +33 -65
- package/dist/listbox/style.css +26 -23
- package/dist/loading/style.css +26 -23
- package/dist/mega-menu/index.js +2 -2
- package/dist/mega-menu/style.css +26 -23
- package/dist/menu/index.js +2 -2
- package/dist/menu/style.css +30 -24
- package/dist/menubar/index.js +2 -2
- package/dist/menubar/style.css +26 -23
- package/dist/message/index.js +1 -1
- package/dist/message/style.css +26 -23
- package/dist/meter-group/style.css +26 -23
- package/dist/order-list/index.js +1 -1
- package/dist/order-list/style.css +26 -23
- package/dist/page/index.js +1 -1
- package/dist/page/style.css +26 -23
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +26 -23
- package/dist/panel/index.js +1 -1
- package/dist/panel/style.css +26 -23
- package/dist/pick-list/index.js +1 -1
- package/dist/pick-list/style.css +26 -23
- package/dist/popover/style.css +26 -23
- package/dist/progress-bar/style.css +26 -23
- package/dist/progress-spinner/style.css +26 -23
- package/dist/radio/style.css +26 -23
- package/dist/rating/index.js +1 -1
- package/dist/rating/style.css +26 -23
- package/dist/result/index.js +1 -1
- package/dist/result/style.css +26 -23
- package/dist/scroll-top/index.js +1 -1
- package/dist/scroll-top/style.css +26 -23
- package/dist/scrollbar/style.css +26 -23
- package/dist/select/index.js +1 -1
- package/dist/select/style.css +27 -24
- package/dist/select-button/style.css +26 -23
- package/dist/shared/styles/control-suffix.css +1 -1
- package/dist/sidebar/index.js +2 -2
- package/dist/sidebar/style.css +26 -23
- package/dist/skeleton/style.css +26 -23
- package/dist/slider/style.css +26 -23
- package/dist/space/style.css +26 -23
- package/dist/speed-dial/index.js +2 -2
- package/dist/speed-dial/style.css +26 -23
- package/dist/split-button/index.js +1 -1
- package/dist/split-button/style.css +26 -23
- package/dist/splitter/style.css +26 -23
- package/dist/status/index.js +1 -1
- package/dist/status/style.css +26 -23
- package/dist/stepper/index.js +1 -1
- package/dist/stepper/style.css +26 -23
- package/dist/styles/base.css +26 -23
- package/dist/styles.css +1 -1
- package/dist/switch/style.css +26 -23
- package/dist/table/index.js +2 -2
- package/dist/table/style.css +26 -23
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/style.css +26 -23
- package/dist/tag/index.js +1 -1
- package/dist/tag/style.css +26 -23
- package/dist/terminal/style.css +26 -23
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/style.css +41 -24
- package/dist/tiered-menu/index.js +1 -1
- package/dist/tiered-menu/style.css +26 -23
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/style.css +26 -23
- package/dist/toast/index.js +1 -1
- package/dist/toast/style.css +26 -23
- package/dist/toggle-button/index.js +2 -2
- package/dist/toggle-button/style.css +26 -23
- package/dist/toolbar/style.css +26 -23
- package/dist/tooltip/style.css +26 -23
- package/dist/tree/index.js +1 -1
- package/dist/tree/style.css +26 -23
- package/dist/tree-select/index.js +1 -1
- package/dist/tree-select/style.css +27 -24
- package/dist/tree-table/index.js +1 -1
- package/dist/tree-table/style.css +26 -23
- package/dist/virtual-scroller/style.css +26 -23
- package/package.json +1 -1
- package/dist/Icon-DfpIfo2L.js +0 -521
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
2
|
import { r as t } from "../types-DGuu4Eg4.js";
|
|
3
|
-
import { t as n } from "../Icon-
|
|
3
|
+
import { t as n } from "../Icon-B6IBrJ5S.js";
|
|
4
4
|
import { t as r } from "../useMId-BXFYayPP.js";
|
|
5
5
|
import { i as ee, o as te, s as ne } from "../config-BdK5ccNT.js";
|
|
6
6
|
import { n as re, t as i } from "../locale-B36KH7c3.js";
|
|
7
7
|
import "./style.js";
|
|
8
|
-
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as
|
|
8
|
+
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as ie, defineComponent as u, mergeProps as d, normalizeClass as f, onBeforeUnmount as ae, openBlock as p, ref as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, useAttrs as y } from "vue";
|
|
9
9
|
//#region src/components/InputPassword/InputPassword.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
10
|
+
var b = ["for"], x = [
|
|
11
11
|
"id",
|
|
12
12
|
"type",
|
|
13
13
|
"value",
|
|
@@ -20,18 +20,18 @@ var x = ["for"], S = [
|
|
|
20
20
|
"autofocus",
|
|
21
21
|
"aria-invalid",
|
|
22
22
|
"aria-describedby"
|
|
23
|
-
],
|
|
23
|
+
], S = ["aria-label", "disabled"], C = [
|
|
24
24
|
"aria-label",
|
|
25
25
|
"aria-pressed",
|
|
26
26
|
"disabled"
|
|
27
|
-
],
|
|
27
|
+
], w = {
|
|
28
28
|
key: 1,
|
|
29
29
|
class: "m-password-field__meta"
|
|
30
|
-
},
|
|
30
|
+
}, T = [
|
|
31
31
|
"id",
|
|
32
32
|
"aria-valuenow",
|
|
33
33
|
"aria-valuetext"
|
|
34
|
-
],
|
|
34
|
+
], oe = ["id"], E = /* @__PURE__ */ u({
|
|
35
35
|
inheritAttrs: !1,
|
|
36
36
|
__name: "InputPassword",
|
|
37
37
|
props: {
|
|
@@ -89,39 +89,40 @@ var x = ["for"], S = [
|
|
|
89
89
|
"blur",
|
|
90
90
|
"change"
|
|
91
91
|
],
|
|
92
|
-
setup(
|
|
93
|
-
let
|
|
94
|
-
let e =
|
|
92
|
+
setup(u, { expose: E, emit: se }) {
|
|
93
|
+
let D = u, O = se, ce = y(), { rootAttrs: le, controlAttrs: ue } = e(ce, () => D.pt), k = ee("InputPassword"), A = re(), j = m(!1), M = m(null), N = r("m-password"), P = a(() => D.id ?? N), F = te("InputPassword", () => D.size), I = a(() => t(F.value)), L = ne("InputPassword", () => D.variant), R = a(() => D.fluid ?? k.value.fluid ?? !1), z = a(() => D.clearable ?? k.value.clearable ?? !1), B = a(() => D.showCount ?? k.value.showCount ?? !1), V = a(() => D.showPasswordOn ?? k.value.showPasswordOn ?? "click"), H = a(() => typeof D.showIcon == "string" ? D.showIcon : void 0), U = a(() => typeof D.showIcon == "string" || !D.showIcon ? void 0 : D.showIcon), W = a(() => typeof D.hideIcon == "string" ? D.hideIcon : void 0), G = a(() => typeof D.hideIcon == "string" || !D.hideIcon ? void 0 : D.hideIcon), K = a(() => {
|
|
94
|
+
let e = D.modelValue ?? "";
|
|
95
95
|
if (!e) return "empty";
|
|
96
96
|
let t = 0;
|
|
97
97
|
return e.length >= 8 && (t += 1), /[A-Z]/.test(e) && /[a-z]/.test(e) && (t += 1), /\d/.test(e) && (t += 1), /[^A-Z0-9]/i.test(e) && (t += 1), t <= 1 ? "weak" : t <= 3 ? "medium" : "strong";
|
|
98
|
-
}),
|
|
98
|
+
}), de = a(() => K.value === "empty" ? 0 : K.value === "weak" ? 1 : K.value === "medium" ? 3 : 4), q = a(() => K.value === "weak" ? A.value.passwordWeak : K.value === "medium" ? A.value.passwordMedium : K.value === "strong" ? A.value.passwordStrong : ""), J = a(() => (D.modelValue ?? "").length), fe = a(() => D.maxlength == null ? String(J.value) : `${J.value} / ${D.maxlength}`), Y = a(() => z.value && !!D.modelValue), pe = a(() => {
|
|
99
99
|
let e = [];
|
|
100
|
-
return
|
|
100
|
+
return D.feedback && K.value !== "empty" && e.push(`${P.value}-feedback`), B.value && e.push(`${P.value}-count`), e.length ? e.join(" ") : void 0;
|
|
101
101
|
}), me = a(() => [
|
|
102
102
|
"m-password",
|
|
103
|
-
`m-password--${
|
|
103
|
+
`m-password--${F.value}`,
|
|
104
104
|
{
|
|
105
|
-
"m-password--filled":
|
|
106
|
-
"m-password--fluid":
|
|
107
|
-
"m-password--invalid":
|
|
108
|
-
"m-password--disabled":
|
|
109
|
-
"m-password--toggle":
|
|
105
|
+
"m-password--filled": L.value === "filled",
|
|
106
|
+
"m-password--fluid": R.value,
|
|
107
|
+
"m-password--invalid": D.invalid,
|
|
108
|
+
"m-password--disabled": D.disabled,
|
|
109
|
+
"m-password--toggle": D.toggleMask,
|
|
110
|
+
"m-password--clearable": Y.value
|
|
110
111
|
}
|
|
111
112
|
]);
|
|
112
113
|
function he(e) {
|
|
113
|
-
|
|
114
|
+
D.disabled || D.readonly || O("update:modelValue", e.target.value);
|
|
114
115
|
}
|
|
115
116
|
function ge() {
|
|
116
|
-
|
|
117
|
+
D.disabled || D.readonly || (O("update:modelValue", ""), O("clear"), M.value?.focus());
|
|
117
118
|
}
|
|
118
119
|
function X(e) {
|
|
119
|
-
if (!
|
|
120
|
-
if (
|
|
120
|
+
if (!D.disabled) {
|
|
121
|
+
if (V.value === "mousedown") {
|
|
121
122
|
e.preventDefault();
|
|
122
123
|
return;
|
|
123
124
|
}
|
|
124
|
-
|
|
125
|
+
j.value = !j.value;
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
128
|
let Z, Q;
|
|
@@ -129,111 +130,111 @@ var x = ["for"], S = [
|
|
|
129
130
|
Z &&= (document.removeEventListener("mouseup", Z), void 0), Q &&= (document.removeEventListener("keyup", Q), void 0);
|
|
130
131
|
}
|
|
131
132
|
function _e(e) {
|
|
132
|
-
|
|
133
|
-
|
|
133
|
+
D.disabled || (e.preventDefault(), V.value === "mousedown" && (j.value = !0, $(), Z = () => {
|
|
134
|
+
j.value = !1, $();
|
|
134
135
|
}, document.addEventListener("mouseup", Z)));
|
|
135
136
|
}
|
|
136
137
|
function ve(e) {
|
|
137
|
-
|
|
138
|
-
t.key === e.key && (
|
|
138
|
+
D.disabled || V.value === "mousedown" && (e.key === " " || e.key === "Enter") && (e.preventDefault(), j.value = !0, $(), Q = (t) => {
|
|
139
|
+
t.key === e.key && (j.value = !1, $());
|
|
139
140
|
}, document.addEventListener("keyup", Q));
|
|
140
141
|
}
|
|
141
|
-
|
|
142
|
+
ae($);
|
|
142
143
|
function ye() {
|
|
143
|
-
|
|
144
|
+
M.value?.focus();
|
|
144
145
|
}
|
|
145
146
|
function be() {
|
|
146
|
-
|
|
147
|
+
M.value?.blur();
|
|
147
148
|
}
|
|
148
149
|
function xe() {
|
|
149
|
-
|
|
150
|
+
M.value?.select();
|
|
150
151
|
}
|
|
151
|
-
return
|
|
152
|
+
return E({
|
|
152
153
|
focus: ye,
|
|
153
154
|
blur: be,
|
|
154
155
|
select: xe
|
|
155
|
-
}), (e, t) => (
|
|
156
|
-
|
|
156
|
+
}), (e, t) => (p(), c("div", d(v(le), { class: ["m-password-field", { "m-password-field--fluid": R.value }] }), [
|
|
157
|
+
u.label ? (p(), c("label", {
|
|
157
158
|
key: 0,
|
|
158
159
|
class: "m-password-field__label",
|
|
159
|
-
for:
|
|
160
|
-
},
|
|
161
|
-
l("div", { class:
|
|
162
|
-
l("input",
|
|
163
|
-
id:
|
|
160
|
+
for: P.value
|
|
161
|
+
}, _(u.label), 9, b)) : s("", !0),
|
|
162
|
+
l("div", { class: f(me.value) }, [
|
|
163
|
+
l("input", d(v(ue), {
|
|
164
|
+
id: P.value,
|
|
164
165
|
ref_key: "inputElement",
|
|
165
|
-
ref:
|
|
166
|
+
ref: M,
|
|
166
167
|
class: "m-password__input",
|
|
167
|
-
type:
|
|
168
|
-
value:
|
|
169
|
-
disabled:
|
|
170
|
-
readonly:
|
|
171
|
-
maxlength:
|
|
172
|
-
placeholder:
|
|
173
|
-
name:
|
|
174
|
-
autocomplete:
|
|
175
|
-
autofocus:
|
|
176
|
-
"aria-invalid":
|
|
168
|
+
type: j.value ? "text" : "password",
|
|
169
|
+
value: u.modelValue,
|
|
170
|
+
disabled: u.disabled,
|
|
171
|
+
readonly: u.readonly,
|
|
172
|
+
maxlength: u.maxlength,
|
|
173
|
+
placeholder: u.placeholder,
|
|
174
|
+
name: u.name,
|
|
175
|
+
autocomplete: u.autocomplete ?? "current-password",
|
|
176
|
+
autofocus: u.autofocus || void 0,
|
|
177
|
+
"aria-invalid": u.invalid || void 0,
|
|
177
178
|
"aria-describedby": pe.value,
|
|
178
179
|
onInput: he,
|
|
179
|
-
onFocus: t[0] ||= (e) =>
|
|
180
|
-
onBlur: t[1] ||= (e) =>
|
|
181
|
-
onChange: t[2] ||= (e) =>
|
|
182
|
-
}), null, 16,
|
|
183
|
-
|
|
180
|
+
onFocus: t[0] ||= (e) => O("focus", e),
|
|
181
|
+
onBlur: t[1] ||= (e) => O("blur", e),
|
|
182
|
+
onChange: t[2] ||= (e) => O("change", e.target.value)
|
|
183
|
+
}), null, 16, x),
|
|
184
|
+
Y.value ? (p(), c("button", {
|
|
184
185
|
key: 0,
|
|
185
186
|
class: "m-password__clear",
|
|
186
187
|
type: "button",
|
|
187
|
-
"aria-label":
|
|
188
|
-
disabled:
|
|
188
|
+
"aria-label": v(A).clearInput,
|
|
189
|
+
disabled: u.disabled || u.readonly,
|
|
189
190
|
onClick: ge
|
|
190
|
-
}, [
|
|
191
|
+
}, [ie(n, {
|
|
191
192
|
name: "close",
|
|
192
|
-
size:
|
|
193
|
-
}, null, 8, ["size"])], 8,
|
|
194
|
-
|
|
193
|
+
size: I.value
|
|
194
|
+
}, null, 8, ["size"])], 8, S)) : s("", !0),
|
|
195
|
+
u.toggleMask ? (p(), c("button", {
|
|
195
196
|
key: 1,
|
|
196
197
|
class: "m-password__toggle",
|
|
197
198
|
type: "button",
|
|
198
|
-
"aria-label":
|
|
199
|
-
"aria-pressed":
|
|
200
|
-
disabled:
|
|
199
|
+
"aria-label": j.value ? v(A).hidePassword : v(A).showPassword,
|
|
200
|
+
"aria-pressed": j.value,
|
|
201
|
+
disabled: u.disabled,
|
|
201
202
|
onClick: X,
|
|
202
203
|
onMousedown: _e,
|
|
203
204
|
onKeydown: ve
|
|
204
|
-
}, [
|
|
205
|
+
}, [j.value ? h(e.$slots, "hideIcon", { unmasked: j.value }, () => [W.value ? (p(), o(n, {
|
|
205
206
|
key: 0,
|
|
206
|
-
name:
|
|
207
|
-
size:
|
|
208
|
-
}, null, 8, ["name", "size"])) :
|
|
207
|
+
name: W.value,
|
|
208
|
+
size: I.value
|
|
209
|
+
}, null, 8, ["name", "size"])) : G.value ? (p(), o(g(G.value), {
|
|
209
210
|
key: 1,
|
|
210
211
|
class: "m-control-affix-icon__graphic"
|
|
211
|
-
})) : s("", !0)], void 0, 0) :
|
|
212
|
+
})) : s("", !0)], void 0, 0) : h(e.$slots, "showIcon", { unmasked: j.value }, () => [H.value ? (p(), o(n, {
|
|
212
213
|
key: 0,
|
|
213
|
-
name:
|
|
214
|
-
size:
|
|
215
|
-
}, null, 8, ["name", "size"])) :
|
|
214
|
+
name: H.value,
|
|
215
|
+
size: I.value
|
|
216
|
+
}, null, 8, ["name", "size"])) : U.value ? (p(), o(g(U.value), {
|
|
216
217
|
key: 1,
|
|
217
218
|
class: "m-control-affix-icon__graphic"
|
|
218
|
-
})) : s("", !0)], void 0, 1)], 40,
|
|
219
|
+
})) : s("", !0)], void 0, 1)], 40, C)) : s("", !0)
|
|
219
220
|
], 2),
|
|
220
|
-
|
|
221
|
+
u.feedback && K.value !== "empty" || B.value ? (p(), c("div", w, [u.feedback && K.value !== "empty" ? (p(), c("span", {
|
|
221
222
|
key: 0,
|
|
222
|
-
id: `${
|
|
223
|
-
class:
|
|
223
|
+
id: `${P.value}-feedback`,
|
|
224
|
+
class: f(["m-password__feedback", `m-password__feedback--${K.value}`]),
|
|
224
225
|
role: "meter",
|
|
225
226
|
"aria-valuemin": 0,
|
|
226
227
|
"aria-valuemax": 4,
|
|
227
|
-
"aria-valuenow":
|
|
228
|
-
"aria-valuetext":
|
|
229
|
-
}, v(
|
|
228
|
+
"aria-valuenow": de.value,
|
|
229
|
+
"aria-valuetext": q.value
|
|
230
|
+
}, _(v(i)(v(A).passwordStrength, { value: q.value })), 11, T)) : s("", !0), B.value ? (p(), c("span", {
|
|
230
231
|
key: 1,
|
|
231
|
-
id: `${
|
|
232
|
+
id: `${P.value}-count`,
|
|
232
233
|
class: "m-password-field__count",
|
|
233
234
|
"aria-live": "polite"
|
|
234
|
-
},
|
|
235
|
+
}, _(fe.value), 9, oe)) : s("", !0)])) : s("", !0)
|
|
235
236
|
], 16));
|
|
236
237
|
}
|
|
237
238
|
});
|
|
238
239
|
//#endregion
|
|
239
|
-
export {
|
|
240
|
+
export { E as MInputPassword };
|
|
@@ -373,6 +373,17 @@
|
|
|
373
373
|
opacity: var(--m-opacity-disabled);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
+
.m-input-field__control--prefixed .m-input:disabled,
|
|
377
|
+
.m-input-field__control--suffixed .m-input:disabled,
|
|
378
|
+
.m-input-field__control--clearable .m-input:disabled,
|
|
379
|
+
.m-password--disabled .m-password__input,
|
|
380
|
+
.m-inputnumber--disabled .m-inputnumber__input,
|
|
381
|
+
.m-datepicker--disabled .m-datepicker__input,
|
|
382
|
+
.m-icon-field--anchored .m-input:disabled,
|
|
383
|
+
.m-icon-field--anchored .m-textarea:disabled {
|
|
384
|
+
opacity: 1;
|
|
385
|
+
}
|
|
386
|
+
|
|
376
387
|
.m-input::placeholder,
|
|
377
388
|
.m-textarea::placeholder,
|
|
378
389
|
.m-password__input::placeholder,
|
|
@@ -692,14 +703,6 @@
|
|
|
692
703
|
opacity: var(--m-opacity-disabled);
|
|
693
704
|
}
|
|
694
705
|
|
|
695
|
-
.m-icon-field--left :is(.m-input, .m-password__input, .m-inputnumber__input, input) {
|
|
696
|
-
padding-left: var(--m-control-affix-padding);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
.m-icon-field--right :is(.m-input, .m-password__input, .m-inputnumber__input, input) {
|
|
700
|
-
padding-right: var(--m-control-affix-padding);
|
|
701
|
-
}
|
|
702
|
-
|
|
703
706
|
.m-inputgroup > .m-input,
|
|
704
707
|
.m-inputgroup > .m-input-field,
|
|
705
708
|
.m-inputgroup > .m-password-field,
|
|
@@ -718,16 +721,22 @@
|
|
|
718
721
|
|
|
719
722
|
.m-inputgroup > .m-input,
|
|
720
723
|
.m-inputgroup .m-input,
|
|
721
|
-
.m-inputgroup .m-
|
|
722
|
-
.m-inputgroup .m-inputnumber__input
|
|
724
|
+
.m-inputgroup .m-password,
|
|
725
|
+
.m-inputgroup .m-inputnumber__input-wrap,
|
|
726
|
+
.m-inputgroup .m-input-field__control--prefixed,
|
|
727
|
+
.m-inputgroup .m-input-field__control--suffixed,
|
|
728
|
+
.m-inputgroup .m-input-field__control--clearable {
|
|
723
729
|
border-radius: 0;
|
|
724
730
|
width: 100%;
|
|
725
731
|
}
|
|
726
732
|
|
|
727
733
|
.m-inputgroup > :first-child.m-input,
|
|
728
734
|
.m-inputgroup > :first-child .m-input,
|
|
729
|
-
.m-inputgroup > :first-child .m-
|
|
730
|
-
.m-inputgroup > :first-child .m-inputnumber__input,
|
|
735
|
+
.m-inputgroup > :first-child .m-password,
|
|
736
|
+
.m-inputgroup > :first-child .m-inputnumber__input-wrap,
|
|
737
|
+
.m-inputgroup > :first-child .m-input-field__control--prefixed,
|
|
738
|
+
.m-inputgroup > :first-child .m-input-field__control--suffixed,
|
|
739
|
+
.m-inputgroup > :first-child .m-input-field__control--clearable,
|
|
731
740
|
.m-inputgroup > :first-child.m-inputgroup-addon {
|
|
732
741
|
border-bottom-left-radius: var(--m-radius-control);
|
|
733
742
|
border-top-left-radius: var(--m-radius-control);
|
|
@@ -735,8 +744,11 @@
|
|
|
735
744
|
|
|
736
745
|
.m-inputgroup > :last-child.m-input,
|
|
737
746
|
.m-inputgroup > :last-child .m-input,
|
|
738
|
-
.m-inputgroup > :last-child .m-
|
|
739
|
-
.m-inputgroup > :last-child .m-inputnumber__input,
|
|
747
|
+
.m-inputgroup > :last-child .m-password,
|
|
748
|
+
.m-inputgroup > :last-child .m-inputnumber__input-wrap,
|
|
749
|
+
.m-inputgroup > :last-child .m-input-field__control--prefixed,
|
|
750
|
+
.m-inputgroup > :last-child .m-input-field__control--suffixed,
|
|
751
|
+
.m-inputgroup > :last-child .m-input-field__control--clearable,
|
|
740
752
|
.m-inputgroup > :last-child.m-inputgroup-addon {
|
|
741
753
|
border-bottom-right-radius: var(--m-radius-control);
|
|
742
754
|
border-top-right-radius: var(--m-radius-control);
|
|
@@ -887,9 +899,6 @@
|
|
|
887
899
|
}
|
|
888
900
|
|
|
889
901
|
/* Shared Naive-like hover/focus for remaining form triggers */
|
|
890
|
-
.m-inputnumber__input:hover:not(:disabled):not(:focus),
|
|
891
|
-
.m-password__input:hover:not(:disabled):not(:focus),
|
|
892
|
-
.m-datepicker__input:hover:not(:disabled):not(:focus),
|
|
893
902
|
.m-inputotp__input:hover:not(:disabled):not(:focus),
|
|
894
903
|
.m-cascadeselect__trigger:hover:not(:disabled):not(:focus-visible),
|
|
895
904
|
.m-treeselect__trigger:hover:not(:disabled):not(:focus-visible),
|
|
@@ -900,9 +909,6 @@
|
|
|
900
909
|
border-color: var(--m-color-primary-hover);
|
|
901
910
|
}
|
|
902
911
|
|
|
903
|
-
.m-inputnumber__input:focus-visible,
|
|
904
|
-
.m-password__input:focus-visible,
|
|
905
|
-
.m-datepicker__input:focus-visible,
|
|
906
912
|
.m-inputotp__input:focus-visible,
|
|
907
913
|
.m-cascadeselect__trigger:focus-visible,
|
|
908
914
|
.m-treeselect__trigger:focus-visible,
|
|
@@ -919,9 +925,6 @@
|
|
|
919
925
|
outline: none;
|
|
920
926
|
}
|
|
921
927
|
|
|
922
|
-
.m-inputnumber--invalid .m-inputnumber__input:focus-visible,
|
|
923
|
-
.m-password--invalid .m-password__input:focus-visible,
|
|
924
|
-
.m-datepicker--invalid .m-datepicker__input:focus-visible,
|
|
925
928
|
.m-inputotp--invalid .m-inputotp__input:focus-visible,
|
|
926
929
|
.m-inputtags--invalid:focus-within,
|
|
927
930
|
.m-inputcolor--invalid .m-inputcolor__text:focus-visible {
|
|
@@ -1063,62 +1066,35 @@
|
|
|
1063
1066
|
|
|
1064
1067
|
.m-password {
|
|
1065
1068
|
--m-password-toggle-size: var(--m-control-affix-size);
|
|
1066
|
-
|
|
1067
|
-
max-width: 100%;
|
|
1068
|
-
position: relative;
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
.m-password--fluid {
|
|
1072
|
-
display: flex;
|
|
1073
|
-
width: 100%;
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
.m-password__input {
|
|
1069
|
+
align-items: center;
|
|
1077
1070
|
background: var(--m-color-surface);
|
|
1078
1071
|
border: var(--m-border-width) solid var(--m-color-border);
|
|
1079
1072
|
border-radius: var(--m-radius-control);
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1073
|
+
box-sizing: border-box;
|
|
1074
|
+
display: inline-flex;
|
|
1075
|
+
max-width: 100%;
|
|
1083
1076
|
min-height: var(--m-control-height-medium);
|
|
1084
|
-
padding: 0 var(--m-control-padding-x-medium);
|
|
1085
1077
|
transition:
|
|
1086
1078
|
border-color var(--m-motion-fast) var(--m-motion-ease),
|
|
1087
1079
|
box-shadow var(--m-motion-fast) var(--m-motion-ease),
|
|
1088
1080
|
background-color var(--m-motion-fast) var(--m-motion-ease),
|
|
1089
1081
|
opacity var(--m-motion-fast) var(--m-motion-ease);
|
|
1090
|
-
width: 100%;
|
|
1091
1082
|
}
|
|
1092
1083
|
|
|
1093
|
-
.m-password--
|
|
1094
|
-
|
|
1084
|
+
.m-password--fluid {
|
|
1085
|
+
display: flex;
|
|
1086
|
+
width: 100%;
|
|
1095
1087
|
}
|
|
1096
1088
|
|
|
1097
|
-
.m-password--small
|
|
1089
|
+
.m-password--small {
|
|
1098
1090
|
min-height: var(--m-control-height-small);
|
|
1099
|
-
font-size: var(--m-control-font-small);
|
|
1100
|
-
padding: 0 var(--m-control-padding-x-small);
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
.m-password--small.m-password--toggle .m-password__input {
|
|
1104
|
-
padding-right: var(--m-control-affix-gap);
|
|
1105
1091
|
}
|
|
1106
1092
|
|
|
1107
|
-
.m-password--large
|
|
1093
|
+
.m-password--large {
|
|
1108
1094
|
min-height: var(--m-control-height-large);
|
|
1109
|
-
font-size: var(--m-control-font-large);
|
|
1110
|
-
padding: 0 var(--m-control-padding-x-large);
|
|
1111
1095
|
}
|
|
1112
1096
|
|
|
1113
|
-
.m-password--
|
|
1114
|
-
padding-right: var(--m-control-affix-gap);
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
.m-password--invalid .m-password__input {
|
|
1118
|
-
border-color: var(--m-color-danger);
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
.m-password--filled .m-password__input {
|
|
1097
|
+
.m-password--filled {
|
|
1122
1098
|
background: color-mix(
|
|
1123
1099
|
in srgb,
|
|
1124
1100
|
var(--m-color-text-muted) 12%,
|
|
@@ -1127,84 +1103,111 @@
|
|
|
1127
1103
|
border-color: transparent;
|
|
1128
1104
|
}
|
|
1129
1105
|
|
|
1130
|
-
.m-
|
|
1131
|
-
|
|
1132
|
-
background: transparent;
|
|
1133
|
-
border: 0;
|
|
1134
|
-
border-radius: var(--m-radius-sm);
|
|
1135
|
-
color: var(--m-color-text-muted);
|
|
1136
|
-
cursor: pointer;
|
|
1137
|
-
display: inline-flex;
|
|
1138
|
-
font-size: var(--m-font-size-lg);
|
|
1139
|
-
height: var(--m-control-affix-size);
|
|
1140
|
-
justify-content: center;
|
|
1141
|
-
padding: 0;
|
|
1142
|
-
position: absolute;
|
|
1143
|
-
right: var(--m-space-1);
|
|
1144
|
-
top: 50%;
|
|
1145
|
-
transform: translateY(-50%);
|
|
1146
|
-
width: var(--m-control-affix-size);
|
|
1147
|
-
z-index: 1;
|
|
1106
|
+
.m-password--invalid {
|
|
1107
|
+
border-color: var(--m-color-danger);
|
|
1148
1108
|
}
|
|
1149
1109
|
|
|
1150
|
-
.m-password
|
|
1151
|
-
|
|
1110
|
+
.m-password:hover:not(.m-password--disabled):not(:focus-within) {
|
|
1111
|
+
border-color: var(--m-color-primary-hover);
|
|
1152
1112
|
}
|
|
1153
1113
|
|
|
1154
|
-
.m-
|
|
1155
|
-
color: var(--m-color-
|
|
1114
|
+
.m-password:focus-within {
|
|
1115
|
+
border-color: var(--m-color-primary-hover);
|
|
1116
|
+
box-shadow: var(--m-focus-shadow);
|
|
1156
1117
|
}
|
|
1157
1118
|
|
|
1158
|
-
.m-
|
|
1159
|
-
|
|
1160
|
-
|
|
1119
|
+
.m-password--invalid:focus-within {
|
|
1120
|
+
border-color: var(--m-color-danger);
|
|
1121
|
+
box-shadow: var(--m-focus-shadow-danger);
|
|
1161
1122
|
}
|
|
1162
1123
|
|
|
1163
|
-
.m-
|
|
1124
|
+
.m-password--disabled {
|
|
1164
1125
|
cursor: not-allowed;
|
|
1165
1126
|
opacity: var(--m-opacity-disabled);
|
|
1166
1127
|
}
|
|
1167
1128
|
|
|
1168
|
-
.m-
|
|
1169
|
-
|
|
1170
|
-
|
|
1129
|
+
.m-password__input {
|
|
1130
|
+
background: transparent;
|
|
1131
|
+
border: 0;
|
|
1132
|
+
border-radius: 0;
|
|
1133
|
+
box-shadow: none;
|
|
1134
|
+
color: var(--m-color-text);
|
|
1135
|
+
flex: 1 1 auto;
|
|
1136
|
+
font-family: var(--m-font-sans);
|
|
1137
|
+
font-size: var(--m-control-font-medium);
|
|
1138
|
+
height: calc(var(--m-control-height-medium) - 2 * var(--m-border-width));
|
|
1139
|
+
line-height: calc(var(--m-control-height-medium) - 2 * var(--m-border-width));
|
|
1140
|
+
min-height: 0;
|
|
1141
|
+
min-width: 0;
|
|
1142
|
+
padding: 0 var(--m-control-padding-x-medium);
|
|
1143
|
+
width: 100%;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.m-password--small .m-password__input {
|
|
1147
|
+
font-size: var(--m-control-font-small);
|
|
1148
|
+
height: calc(var(--m-control-height-small) - 2 * var(--m-border-width));
|
|
1149
|
+
line-height: calc(var(--m-control-height-small) - 2 * var(--m-border-width));
|
|
1150
|
+
padding: 0 var(--m-control-padding-x-small);
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
.m-password--large .m-password__input {
|
|
1154
|
+
font-size: var(--m-control-font-large);
|
|
1155
|
+
height: calc(var(--m-control-height-large) - 2 * var(--m-border-width));
|
|
1156
|
+
line-height: calc(var(--m-control-height-large) - 2 * var(--m-border-width));
|
|
1157
|
+
padding: 0 var(--m-control-padding-x-large);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
.m-password__input:focus,
|
|
1161
|
+
.m-password__input:focus-visible {
|
|
1162
|
+
box-shadow: none;
|
|
1163
|
+
outline: none;
|
|
1171
1164
|
}
|
|
1172
1165
|
|
|
1166
|
+
.m-password__clear,
|
|
1173
1167
|
.m-password__toggle {
|
|
1174
1168
|
align-items: center;
|
|
1169
|
+
align-self: center;
|
|
1175
1170
|
background: transparent;
|
|
1176
1171
|
border: 0;
|
|
1177
1172
|
border-radius: var(--m-radius-sm);
|
|
1178
1173
|
color: var(--m-color-text-muted);
|
|
1179
1174
|
cursor: pointer;
|
|
1180
1175
|
display: inline-flex;
|
|
1176
|
+
flex: 0 0 auto;
|
|
1181
1177
|
justify-content: center;
|
|
1178
|
+
padding: 0;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
.m-password__clear {
|
|
1182
|
+
font-size: var(--m-font-size-lg);
|
|
1183
|
+
height: var(--m-control-affix-size);
|
|
1184
|
+
width: var(--m-control-affix-size);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
.m-password--toggle .m-password__clear {
|
|
1188
|
+
margin-right: 0;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
.m-password__toggle {
|
|
1182
1192
|
min-height: var(--m-password-toggle-size);
|
|
1183
1193
|
min-width: var(--m-password-toggle-size);
|
|
1184
|
-
padding: var(--m-space-1);
|
|
1185
|
-
position: absolute;
|
|
1186
|
-
right: var(--m-space-1);
|
|
1187
|
-
top: 50%;
|
|
1188
|
-
transform: translateY(-50%);
|
|
1189
1194
|
}
|
|
1190
1195
|
|
|
1196
|
+
.m-password__clear:hover:not(:disabled),
|
|
1191
1197
|
.m-password__toggle:hover:not(:disabled) {
|
|
1192
1198
|
color: var(--m-color-text);
|
|
1193
1199
|
}
|
|
1194
1200
|
|
|
1195
|
-
.m-
|
|
1196
|
-
cursor: not-allowed;
|
|
1197
|
-
opacity: var(--m-opacity-disabled);
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1201
|
+
.m-password__clear:focus-visible,
|
|
1200
1202
|
.m-password__toggle:focus-visible {
|
|
1201
1203
|
box-shadow: var(--m-focus-shadow);
|
|
1202
1204
|
outline: none;
|
|
1203
1205
|
}
|
|
1204
1206
|
|
|
1205
|
-
.m-
|
|
1206
|
-
|
|
1207
|
-
|
|
1207
|
+
.m-password__clear:disabled,
|
|
1208
|
+
.m-password__toggle:disabled {
|
|
1209
|
+
cursor: not-allowed;
|
|
1210
|
+
opacity: var(--m-opacity-disabled);
|
|
1208
1211
|
}
|
|
1209
1212
|
|
|
1210
1213
|
.m-password__feedback {
|
package/dist/input-tags/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
|
-
import { t } from "../Icon-
|
|
2
|
+
import { t } from "../Icon-B6IBrJ5S.js";
|
|
3
3
|
import { t as n } from "../useMId-BXFYayPP.js";
|
|
4
4
|
import { o as r } from "../config-BdK5ccNT.js";
|
|
5
5
|
import { n as i } from "../locale-B36KH7c3.js";
|