morya-ui 0.2.7 → 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.
Files changed (226) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +1 -0
  3. package/README.zh-CN.md +1 -0
  4. package/dist/{Button--RkQybU-.js → Button-DO5oukfg.js} +1 -1
  5. package/dist/Icon-B6IBrJ5S.js +606 -0
  6. package/dist/{Pagination-BKvR-RUW.js → Pagination-CUwCtWhz.js} +1 -1
  7. package/dist/Renderable-DHU4Jcfw.js +20 -0
  8. package/dist/accordion/style.css +26 -23
  9. package/dist/auto-complete/index.js +1 -1
  10. package/dist/auto-complete/style.css +64 -40
  11. package/dist/avatar/index.js +1 -1
  12. package/dist/avatar/style.css +26 -23
  13. package/dist/badge/style.css +26 -23
  14. package/dist/block-ui/style.css +26 -23
  15. package/dist/breadcrumb/style.css +26 -23
  16. package/dist/button/index.js +1 -1
  17. package/dist/button/style.css +26 -23
  18. package/dist/card/style.css +26 -23
  19. package/dist/carousel/index.js +1 -1
  20. package/dist/carousel/style.css +26 -23
  21. package/dist/cascade-select/index.js +1 -1
  22. package/dist/cascade-select/style.css +27 -24
  23. package/dist/checkbox/style.css +26 -23
  24. package/dist/chip/index.js +1 -1
  25. package/dist/chip/style.css +26 -23
  26. package/dist/command-menu/index.js +2 -2
  27. package/dist/command-menu/style.css +26 -23
  28. package/dist/component-registry.d.ts.map +1 -1
  29. package/dist/components/AutoComplete/styles.css +38 -17
  30. package/dist/components/Carousel/Carousel.vue.d.ts +1 -1
  31. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +1 -1
  32. package/dist/components/DatePicker/styles.css +65 -21
  33. package/dist/components/Icon/icon-categories.d.ts +21 -0
  34. package/dist/components/Icon/icon-categories.d.ts.map +1 -0
  35. package/dist/components/Icon/icons-tabler.d.ts +77 -0
  36. package/dist/components/Icon/icons-tabler.d.ts.map +1 -0
  37. package/dist/components/Icon/icons-types.d.ts +36 -0
  38. package/dist/components/Icon/icons-types.d.ts.map +1 -0
  39. package/dist/components/Icon/icons.d.ts +75 -32
  40. package/dist/components/Icon/icons.d.ts.map +1 -1
  41. package/dist/components/Icon/index.d.ts +2 -0
  42. package/dist/components/Icon/index.d.ts.map +1 -1
  43. package/dist/components/IconField/IconField.vue.d.ts +3 -1
  44. package/dist/components/IconField/IconField.vue.d.ts.map +1 -1
  45. package/dist/components/IconField/styles.css +306 -31
  46. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  47. package/dist/components/Input/styles.css +172 -33
  48. package/dist/components/InputNumber/styles.css +103 -40
  49. package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
  50. package/dist/components/InputPassword/styles.css +79 -79
  51. package/dist/components/Layout/LayoutContent.vue.d.ts +4 -8
  52. package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
  53. package/dist/components/Layout/LayoutSider.vue.d.ts +4 -6
  54. package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
  55. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +2 -0
  56. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -1
  57. package/dist/components/Layout/styles.css +7 -42
  58. package/dist/components/Layout/types.d.ts +4 -7
  59. package/dist/components/Layout/types.d.ts.map +1 -1
  60. package/dist/components/Loading/Loading.vue.d.ts +25 -0
  61. package/dist/components/Loading/Loading.vue.d.ts.map +1 -0
  62. package/dist/components/Loading/LoadingIndicator.vue.d.ts +13 -0
  63. package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -0
  64. package/dist/components/Loading/directive.d.ts +12 -0
  65. package/dist/components/Loading/directive.d.ts.map +1 -0
  66. package/dist/components/Loading/index.d.ts +8 -0
  67. package/dist/components/Loading/index.d.ts.map +1 -0
  68. package/dist/components/Loading/loading.d.ts +35 -0
  69. package/dist/components/Loading/loading.d.ts.map +1 -0
  70. package/dist/components/Loading/styles.css +386 -0
  71. package/dist/components/Loading/types.d.ts +74 -0
  72. package/dist/components/Loading/types.d.ts.map +1 -0
  73. package/dist/components/Loading/useLoading.d.ts +11 -0
  74. package/dist/components/Loading/useLoading.d.ts.map +1 -0
  75. package/dist/components/Menu/styles.css +4 -1
  76. package/dist/components/Page/PageContent.vue.d.ts +2 -2
  77. package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts +1 -1
  78. package/dist/components/Rating/Rating.vue.d.ts +1 -1
  79. package/dist/components/Table/Table.vue.d.ts +1 -1
  80. package/dist/components/Textarea/styles.css +15 -1
  81. package/dist/config-provider/style.css +198 -56
  82. package/dist/confirm-dialog/index.js +11 -11
  83. package/dist/confirm-dialog/style.css +26 -23
  84. package/dist/confirm-popup/index.js +2 -2
  85. package/dist/confirm-popup/style.css +26 -23
  86. package/dist/content-h8POj44-.js +28 -0
  87. package/dist/context-menu/index.js +2 -2
  88. package/dist/context-menu/style.css +26 -23
  89. package/dist/data-view/index.js +1 -1
  90. package/dist/data-view/style.css +26 -23
  91. package/dist/date-picker/index.js +1 -1
  92. package/dist/date-picker/style.css +91 -44
  93. package/dist/dialog/index.js +2 -2
  94. package/dist/dialog/style.css +26 -23
  95. package/dist/divider/style.css +26 -23
  96. package/dist/dock/index.js +2 -2
  97. package/dist/dock/style.css +26 -23
  98. package/dist/drawer/index.js +1 -1
  99. package/dist/drawer/style.css +26 -23
  100. package/dist/dropdown/index.js +2 -2
  101. package/dist/dropdown/style.css +26 -23
  102. package/dist/empty/index.js +1 -1
  103. package/dist/empty/style.css +26 -23
  104. package/dist/fieldset/index.js +1 -1
  105. package/dist/fieldset/style.css +26 -23
  106. package/dist/file-upload/index.js +1 -1
  107. package/dist/file-upload/style.css +26 -23
  108. package/dist/flex/style.css +26 -23
  109. package/dist/float-label/style.css +26 -23
  110. package/dist/fluid/style.css +26 -23
  111. package/dist/form/style.css +26 -23
  112. package/dist/gallery/index.js +1 -1
  113. package/dist/gallery/style.css +26 -23
  114. package/dist/grid/style.css +26 -23
  115. package/dist/icon/index.js +212 -2
  116. package/dist/icon/style.css +26 -23
  117. package/dist/icon-field/index.js +41 -7
  118. package/dist/icon-field/style.css +672 -54
  119. package/dist/icon-field/style.js +1 -0
  120. package/dist/{icon-xUOyawgJ.js → icon-iOBeyIRp.js} +1 -1
  121. package/dist/index.d.ts +10 -1
  122. package/dist/index.d.ts.map +1 -1
  123. package/dist/index.js +4722 -3962
  124. package/dist/inplace/style.css +26 -23
  125. package/dist/input/index.js +78 -80
  126. package/dist/input/style.css +198 -56
  127. package/dist/input-color/style.css +26 -23
  128. package/dist/input-group/style.css +26 -23
  129. package/dist/input-number/index.js +1 -1
  130. package/dist/input-number/style.css +129 -63
  131. package/dist/input-otp/style.css +26 -23
  132. package/dist/input-password/index.js +83 -82
  133. package/dist/input-password/style.css +105 -102
  134. package/dist/input-tags/index.js +1 -1
  135. package/dist/input-tags/style.css +26 -23
  136. package/dist/knob/style.css +26 -23
  137. package/dist/label/style.css +26 -23
  138. package/dist/layout/index.js +60 -83
  139. package/dist/layout/style.css +33 -65
  140. package/dist/listbox/style.css +26 -23
  141. package/dist/loading/index.js +467 -0
  142. package/dist/loading/style.css +1380 -0
  143. package/dist/loading/style.js +3 -0
  144. package/dist/mega-menu/index.js +2 -2
  145. package/dist/mega-menu/style.css +26 -23
  146. package/dist/menu/index.js +2 -2
  147. package/dist/menu/style.css +30 -24
  148. package/dist/menubar/index.js +2 -2
  149. package/dist/menubar/style.css +26 -23
  150. package/dist/message/index.js +8 -7
  151. package/dist/message/style.css +26 -23
  152. package/dist/meter-group/style.css +26 -23
  153. package/dist/order-list/index.js +1 -1
  154. package/dist/order-list/style.css +26 -23
  155. package/dist/page/index.js +1 -1
  156. package/dist/page/style.css +26 -23
  157. package/dist/pagination/index.js +1 -1
  158. package/dist/pagination/style.css +26 -23
  159. package/dist/panel/index.js +1 -1
  160. package/dist/panel/style.css +26 -23
  161. package/dist/pick-list/index.js +1 -1
  162. package/dist/pick-list/style.css +26 -23
  163. package/dist/popover/style.css +26 -23
  164. package/dist/progress-bar/style.css +26 -23
  165. package/dist/progress-spinner/style.css +26 -23
  166. package/dist/radio/style.css +26 -23
  167. package/dist/rating/index.js +1 -1
  168. package/dist/rating/style.css +26 -23
  169. package/dist/resolver-map.d.ts.map +1 -1
  170. package/dist/resolver.js +1 -0
  171. package/dist/result/index.js +1 -1
  172. package/dist/result/style.css +26 -23
  173. package/dist/scroll-top/index.js +1 -1
  174. package/dist/scroll-top/style.css +26 -23
  175. package/dist/scrollbar/style.css +26 -23
  176. package/dist/select/index.js +1 -1
  177. package/dist/select/style.css +27 -24
  178. package/dist/select-button/style.css +26 -23
  179. package/dist/shared/config.d.ts.map +1 -1
  180. package/dist/shared/styles/control-suffix.css +1 -1
  181. package/dist/sidebar/index.js +2 -2
  182. package/dist/sidebar/style.css +26 -23
  183. package/dist/skeleton/style.css +26 -23
  184. package/dist/slider/style.css +26 -23
  185. package/dist/space/style.css +26 -23
  186. package/dist/speed-dial/index.js +2 -2
  187. package/dist/speed-dial/style.css +26 -23
  188. package/dist/split-button/index.js +1 -1
  189. package/dist/split-button/style.css +26 -23
  190. package/dist/splitter/style.css +26 -23
  191. package/dist/status/index.js +1 -1
  192. package/dist/status/style.css +26 -23
  193. package/dist/stepper/index.js +1 -1
  194. package/dist/stepper/style.css +26 -23
  195. package/dist/styles/base.css +26 -23
  196. package/dist/styles.css +1 -1
  197. package/dist/switch/style.css +26 -23
  198. package/dist/table/index.js +2 -2
  199. package/dist/table/style.css +26 -23
  200. package/dist/tabs/index.js +1 -1
  201. package/dist/tabs/style.css +26 -23
  202. package/dist/tag/index.js +1 -1
  203. package/dist/tag/style.css +26 -23
  204. package/dist/terminal/style.css +26 -23
  205. package/dist/textarea/index.js +1 -1
  206. package/dist/textarea/style.css +41 -24
  207. package/dist/tiered-menu/index.js +1 -1
  208. package/dist/tiered-menu/style.css +26 -23
  209. package/dist/timeline/index.js +1 -1
  210. package/dist/timeline/style.css +26 -23
  211. package/dist/toast/index.js +13 -12
  212. package/dist/toast/style.css +26 -23
  213. package/dist/toggle-button/index.js +2 -2
  214. package/dist/toggle-button/style.css +26 -23
  215. package/dist/toolbar/style.css +26 -23
  216. package/dist/tooltip/style.css +26 -23
  217. package/dist/tree/index.js +1 -1
  218. package/dist/tree/style.css +26 -23
  219. package/dist/tree-select/index.js +1 -1
  220. package/dist/tree-select/style.css +27 -24
  221. package/dist/tree-table/index.js +1 -1
  222. package/dist/tree-table/style.css +26 -23
  223. package/dist/virtual-scroller/style.css +26 -23
  224. package/package.json +9 -2
  225. package/dist/Icon-DfpIfo2L.js +0 -521
  226. package/dist/Renderable-BaaCI4tS.js +0 -45
@@ -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-DfpIfo2L.js";
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 u, defineComponent as d, mergeProps as f, normalizeClass as p, onBeforeUnmount as ie, openBlock as m, ref as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, useAttrs as b } from "vue";
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 x = ["for"], S = [
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
- ], C = ["aria-label", "disabled"], w = [
23
+ ], S = ["aria-label", "disabled"], C = [
24
24
  "aria-label",
25
25
  "aria-pressed",
26
26
  "disabled"
27
- ], T = {
27
+ ], w = {
28
28
  key: 1,
29
29
  class: "m-password-field__meta"
30
- }, E = [
30
+ }, T = [
31
31
  "id",
32
32
  "aria-valuenow",
33
33
  "aria-valuetext"
34
- ], ae = ["id"], D = /* @__PURE__ */ d({
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(d, { expose: D, emit: oe }) {
93
- let O = d, k = oe, se = b(), { rootAttrs: ce, controlAttrs: le } = e(se, () => O.pt), A = ee("InputPassword"), j = re(), M = h(!1), N = h(null), P = r("m-password"), F = a(() => O.id ?? P), I = te("InputPassword", () => O.size), L = a(() => t(I.value)), R = ne("InputPassword", () => O.variant), z = a(() => O.fluid ?? A.value.fluid ?? !1), B = a(() => O.clearable ?? A.value.clearable ?? !1), V = a(() => O.showCount ?? A.value.showCount ?? !1), H = a(() => O.showPasswordOn ?? A.value.showPasswordOn ?? "click"), U = a(() => typeof O.showIcon == "string" ? O.showIcon : void 0), W = a(() => typeof O.showIcon == "string" || !O.showIcon ? void 0 : O.showIcon), G = a(() => typeof O.hideIcon == "string" ? O.hideIcon : void 0), K = a(() => typeof O.hideIcon == "string" || !O.hideIcon ? void 0 : O.hideIcon), q = a(() => {
94
- let e = O.modelValue ?? "";
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
- }), ue = a(() => q.value === "empty" ? 0 : q.value === "weak" ? 1 : q.value === "medium" ? 3 : 4), J = a(() => q.value === "weak" ? j.value.passwordWeak : q.value === "medium" ? j.value.passwordMedium : q.value === "strong" ? j.value.passwordStrong : ""), Y = a(() => (O.modelValue ?? "").length), de = a(() => O.maxlength == null ? String(Y.value) : `${Y.value} / ${O.maxlength}`), fe = a(() => B.value && !!O.modelValue), pe = a(() => {
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 O.feedback && q.value !== "empty" && e.push(`${F.value}-feedback`), V.value && e.push(`${F.value}-count`), e.length ? e.join(" ") : void 0;
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--${I.value}`,
103
+ `m-password--${F.value}`,
104
104
  {
105
- "m-password--filled": R.value === "filled",
106
- "m-password--fluid": z.value,
107
- "m-password--invalid": O.invalid,
108
- "m-password--disabled": O.disabled,
109
- "m-password--toggle": O.toggleMask
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
- O.disabled || O.readonly || k("update:modelValue", e.target.value);
114
+ D.disabled || D.readonly || O("update:modelValue", e.target.value);
114
115
  }
115
116
  function ge() {
116
- O.disabled || O.readonly || (k("update:modelValue", ""), k("clear"), N.value?.focus());
117
+ D.disabled || D.readonly || (O("update:modelValue", ""), O("clear"), M.value?.focus());
117
118
  }
118
119
  function X(e) {
119
- if (!O.disabled) {
120
- if (H.value === "mousedown") {
120
+ if (!D.disabled) {
121
+ if (V.value === "mousedown") {
121
122
  e.preventDefault();
122
123
  return;
123
124
  }
124
- M.value = !M.value;
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
- O.disabled || (e.preventDefault(), H.value === "mousedown" && (M.value = !0, $(), Z = () => {
133
- M.value = !1, $();
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
- O.disabled || H.value === "mousedown" && (e.key === " " || e.key === "Enter") && (e.preventDefault(), M.value = !0, $(), Q = (t) => {
138
- t.key === e.key && (M.value = !1, $());
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
- ie($);
142
+ ae($);
142
143
  function ye() {
143
- N.value?.focus();
144
+ M.value?.focus();
144
145
  }
145
146
  function be() {
146
- N.value?.blur();
147
+ M.value?.blur();
147
148
  }
148
149
  function xe() {
149
- N.value?.select();
150
+ M.value?.select();
150
151
  }
151
- return D({
152
+ return E({
152
153
  focus: ye,
153
154
  blur: be,
154
155
  select: xe
155
- }), (e, t) => (m(), c("div", f(y(ce), { class: ["m-password-field", { "m-password-field--fluid": z.value }] }), [
156
- d.label ? (m(), c("label", {
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: F.value
160
- }, v(d.label), 9, x)) : s("", !0),
161
- l("div", { class: p(me.value) }, [
162
- l("input", f(y(le), {
163
- id: F.value,
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: N,
166
+ ref: M,
166
167
  class: "m-password__input",
167
- type: M.value ? "text" : "password",
168
- value: d.modelValue,
169
- disabled: d.disabled,
170
- readonly: d.readonly,
171
- maxlength: d.maxlength,
172
- placeholder: d.placeholder,
173
- name: d.name,
174
- autocomplete: d.autocomplete ?? "current-password",
175
- autofocus: d.autofocus || void 0,
176
- "aria-invalid": d.invalid || void 0,
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) => k("focus", e),
180
- onBlur: t[1] ||= (e) => k("blur", e),
181
- onChange: t[2] ||= (e) => k("change", e.target.value)
182
- }), null, 16, S),
183
- fe.value ? (m(), c("button", {
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": y(j).clearInput,
188
- disabled: d.disabled || d.readonly,
188
+ "aria-label": v(A).clearInput,
189
+ disabled: u.disabled || u.readonly,
189
190
  onClick: ge
190
- }, [u(n, {
191
+ }, [ie(n, {
191
192
  name: "close",
192
- size: L.value
193
- }, null, 8, ["size"])], 8, C)) : s("", !0),
194
- d.toggleMask ? (m(), c("button", {
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": M.value ? y(j).hidePassword : y(j).showPassword,
199
- "aria-pressed": M.value,
200
- disabled: d.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
- }, [M.value ? g(e.$slots, "hideIcon", { unmasked: M.value }, () => [G.value ? (m(), o(n, {
205
+ }, [j.value ? h(e.$slots, "hideIcon", { unmasked: j.value }, () => [W.value ? (p(), o(n, {
205
206
  key: 0,
206
- name: G.value,
207
- size: L.value
208
- }, null, 8, ["name", "size"])) : K.value ? (m(), o(_(K.value), {
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) : g(e.$slots, "showIcon", { unmasked: M.value }, () => [U.value ? (m(), o(n, {
212
+ })) : s("", !0)], void 0, 0) : h(e.$slots, "showIcon", { unmasked: j.value }, () => [H.value ? (p(), o(n, {
212
213
  key: 0,
213
- name: U.value,
214
- size: L.value
215
- }, null, 8, ["name", "size"])) : W.value ? (m(), o(_(W.value), {
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, w)) : s("", !0)
219
+ })) : s("", !0)], void 0, 1)], 40, C)) : s("", !0)
219
220
  ], 2),
220
- d.feedback && q.value !== "empty" || V.value ? (m(), c("div", T, [d.feedback && q.value !== "empty" ? (m(), c("span", {
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: `${F.value}-feedback`,
223
- class: p(["m-password__feedback", `m-password__feedback--${q.value}`]),
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": ue.value,
228
- "aria-valuetext": J.value
229
- }, v(y(i)(y(j).passwordStrength, { value: J.value })), 11, E)) : s("", !0), V.value ? (m(), c("span", {
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: `${F.value}-count`,
232
+ id: `${P.value}-count`,
232
233
  class: "m-password-field__count",
233
234
  "aria-live": "polite"
234
- }, v(de.value), 9, ae)) : s("", !0)])) : s("", !0)
235
+ }, _(fe.value), 9, oe)) : s("", !0)])) : s("", !0)
235
236
  ], 16));
236
237
  }
237
238
  });
238
239
  //#endregion
239
- export { D as MInputPassword };
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-password__input,
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-password__input,
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-password__input,
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
- display: inline-flex;
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
- color: var(--m-color-text);
1081
- font-family: var(--m-font-sans);
1082
- font-size: var(--m-control-font-medium);
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--toggle .m-password__input {
1094
- padding-right: var(--m-control-affix-gap);
1084
+ .m-password--fluid {
1085
+ display: flex;
1086
+ width: 100%;
1095
1087
  }
1096
1088
 
1097
- .m-password--small .m-password__input {
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 .m-password__input {
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--large.m-password--toggle .m-password__input {
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-password__clear {
1131
- align-items: center;
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--toggle .m-password__clear {
1151
- right: calc(var(--m-control-affix-size) + var(--m-space-2));
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-password__clear:hover:not(:disabled) {
1155
- color: var(--m-color-text);
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-password__clear:focus-visible {
1159
- box-shadow: var(--m-focus-shadow);
1160
- outline: none;
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-password__clear:disabled {
1124
+ .m-password--disabled {
1164
1125
  cursor: not-allowed;
1165
1126
  opacity: var(--m-opacity-disabled);
1166
1127
  }
1167
1128
 
1168
- .m-password--disabled .m-password__input {
1169
- cursor: not-allowed;
1170
- opacity: var(--m-opacity-disabled);
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-password__toggle:disabled {
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-password--invalid .m-password__input:focus-visible {
1206
- border-color: var(--m-color-danger);
1207
- box-shadow: var(--m-focus-shadow-danger);
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 {
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "../useComponentAttrs-BTYEe61P.js";
2
- import { t } from "../Icon-DfpIfo2L.js";
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";