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.
Files changed (196) hide show
  1. package/CHANGELOG.md +27 -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/accordion/style.css +26 -23
  8. package/dist/auto-complete/index.js +1 -1
  9. package/dist/auto-complete/style.css +64 -40
  10. package/dist/avatar/index.js +1 -1
  11. package/dist/avatar/style.css +26 -23
  12. package/dist/badge/style.css +26 -23
  13. package/dist/block-ui/style.css +26 -23
  14. package/dist/breadcrumb/style.css +26 -23
  15. package/dist/button/index.js +1 -1
  16. package/dist/button/style.css +26 -23
  17. package/dist/card/style.css +26 -23
  18. package/dist/carousel/index.js +1 -1
  19. package/dist/carousel/style.css +26 -23
  20. package/dist/cascade-select/index.js +1 -1
  21. package/dist/cascade-select/style.css +27 -24
  22. package/dist/checkbox/style.css +26 -23
  23. package/dist/chip/index.js +1 -1
  24. package/dist/chip/style.css +26 -23
  25. package/dist/command-menu/index.js +2 -2
  26. package/dist/command-menu/style.css +26 -23
  27. package/dist/components/AutoComplete/styles.css +38 -17
  28. package/dist/components/DatePicker/styles.css +65 -21
  29. package/dist/components/Icon/icon-categories.d.ts +21 -0
  30. package/dist/components/Icon/icon-categories.d.ts.map +1 -0
  31. package/dist/components/Icon/icons-tabler.d.ts +77 -0
  32. package/dist/components/Icon/icons-tabler.d.ts.map +1 -0
  33. package/dist/components/Icon/icons-types.d.ts +36 -0
  34. package/dist/components/Icon/icons-types.d.ts.map +1 -0
  35. package/dist/components/Icon/icons.d.ts +75 -32
  36. package/dist/components/Icon/icons.d.ts.map +1 -1
  37. package/dist/components/Icon/index.d.ts +2 -0
  38. package/dist/components/Icon/index.d.ts.map +1 -1
  39. package/dist/components/IconField/IconField.vue.d.ts +3 -1
  40. package/dist/components/IconField/IconField.vue.d.ts.map +1 -1
  41. package/dist/components/IconField/styles.css +306 -31
  42. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  43. package/dist/components/Input/styles.css +172 -33
  44. package/dist/components/InputNumber/styles.css +103 -40
  45. package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
  46. package/dist/components/InputPassword/styles.css +79 -79
  47. package/dist/components/Layout/LayoutContent.vue.d.ts +4 -8
  48. package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
  49. package/dist/components/Layout/LayoutSider.vue.d.ts +4 -6
  50. package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
  51. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +2 -0
  52. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -1
  53. package/dist/components/Layout/styles.css +7 -42
  54. package/dist/components/Layout/types.d.ts +4 -7
  55. package/dist/components/Layout/types.d.ts.map +1 -1
  56. package/dist/components/Menu/styles.css +4 -1
  57. package/dist/components/Textarea/styles.css +15 -1
  58. package/dist/config-provider/style.css +198 -56
  59. package/dist/confirm-dialog/index.js +2 -2
  60. package/dist/confirm-dialog/style.css +26 -23
  61. package/dist/confirm-popup/index.js +2 -2
  62. package/dist/confirm-popup/style.css +26 -23
  63. package/dist/context-menu/index.js +2 -2
  64. package/dist/context-menu/style.css +26 -23
  65. package/dist/data-view/index.js +1 -1
  66. package/dist/data-view/style.css +26 -23
  67. package/dist/date-picker/index.js +1 -1
  68. package/dist/date-picker/style.css +91 -44
  69. package/dist/dialog/index.js +2 -2
  70. package/dist/dialog/style.css +26 -23
  71. package/dist/divider/style.css +26 -23
  72. package/dist/dock/index.js +2 -2
  73. package/dist/dock/style.css +26 -23
  74. package/dist/drawer/index.js +1 -1
  75. package/dist/drawer/style.css +26 -23
  76. package/dist/dropdown/index.js +2 -2
  77. package/dist/dropdown/style.css +26 -23
  78. package/dist/empty/index.js +1 -1
  79. package/dist/empty/style.css +26 -23
  80. package/dist/fieldset/index.js +1 -1
  81. package/dist/fieldset/style.css +26 -23
  82. package/dist/file-upload/index.js +1 -1
  83. package/dist/file-upload/style.css +26 -23
  84. package/dist/flex/style.css +26 -23
  85. package/dist/float-label/style.css +26 -23
  86. package/dist/fluid/style.css +26 -23
  87. package/dist/form/style.css +26 -23
  88. package/dist/gallery/index.js +1 -1
  89. package/dist/gallery/style.css +26 -23
  90. package/dist/grid/style.css +26 -23
  91. package/dist/icon/index.js +212 -2
  92. package/dist/icon/style.css +26 -23
  93. package/dist/icon-field/index.js +41 -7
  94. package/dist/icon-field/style.css +672 -54
  95. package/dist/icon-field/style.js +1 -0
  96. package/dist/{icon-xUOyawgJ.js → icon-iOBeyIRp.js} +1 -1
  97. package/dist/index.d.ts +2 -0
  98. package/dist/index.d.ts.map +1 -1
  99. package/dist/index.js +3126 -2821
  100. package/dist/inplace/style.css +26 -23
  101. package/dist/input/index.js +78 -80
  102. package/dist/input/style.css +198 -56
  103. package/dist/input-color/style.css +26 -23
  104. package/dist/input-group/style.css +26 -23
  105. package/dist/input-number/index.js +1 -1
  106. package/dist/input-number/style.css +129 -63
  107. package/dist/input-otp/style.css +26 -23
  108. package/dist/input-password/index.js +83 -82
  109. package/dist/input-password/style.css +105 -102
  110. package/dist/input-tags/index.js +1 -1
  111. package/dist/input-tags/style.css +26 -23
  112. package/dist/knob/style.css +26 -23
  113. package/dist/label/style.css +26 -23
  114. package/dist/layout/index.js +60 -83
  115. package/dist/layout/style.css +33 -65
  116. package/dist/listbox/style.css +26 -23
  117. package/dist/loading/style.css +26 -23
  118. package/dist/mega-menu/index.js +2 -2
  119. package/dist/mega-menu/style.css +26 -23
  120. package/dist/menu/index.js +2 -2
  121. package/dist/menu/style.css +30 -24
  122. package/dist/menubar/index.js +2 -2
  123. package/dist/menubar/style.css +26 -23
  124. package/dist/message/index.js +1 -1
  125. package/dist/message/style.css +26 -23
  126. package/dist/meter-group/style.css +26 -23
  127. package/dist/order-list/index.js +1 -1
  128. package/dist/order-list/style.css +26 -23
  129. package/dist/page/index.js +1 -1
  130. package/dist/page/style.css +26 -23
  131. package/dist/pagination/index.js +1 -1
  132. package/dist/pagination/style.css +26 -23
  133. package/dist/panel/index.js +1 -1
  134. package/dist/panel/style.css +26 -23
  135. package/dist/pick-list/index.js +1 -1
  136. package/dist/pick-list/style.css +26 -23
  137. package/dist/popover/style.css +26 -23
  138. package/dist/progress-bar/style.css +26 -23
  139. package/dist/progress-spinner/style.css +26 -23
  140. package/dist/radio/style.css +26 -23
  141. package/dist/rating/index.js +1 -1
  142. package/dist/rating/style.css +26 -23
  143. package/dist/result/index.js +1 -1
  144. package/dist/result/style.css +26 -23
  145. package/dist/scroll-top/index.js +1 -1
  146. package/dist/scroll-top/style.css +26 -23
  147. package/dist/scrollbar/style.css +26 -23
  148. package/dist/select/index.js +1 -1
  149. package/dist/select/style.css +27 -24
  150. package/dist/select-button/style.css +26 -23
  151. package/dist/shared/styles/control-suffix.css +1 -1
  152. package/dist/sidebar/index.js +2 -2
  153. package/dist/sidebar/style.css +26 -23
  154. package/dist/skeleton/style.css +26 -23
  155. package/dist/slider/style.css +26 -23
  156. package/dist/space/style.css +26 -23
  157. package/dist/speed-dial/index.js +2 -2
  158. package/dist/speed-dial/style.css +26 -23
  159. package/dist/split-button/index.js +1 -1
  160. package/dist/split-button/style.css +26 -23
  161. package/dist/splitter/style.css +26 -23
  162. package/dist/status/index.js +1 -1
  163. package/dist/status/style.css +26 -23
  164. package/dist/stepper/index.js +1 -1
  165. package/dist/stepper/style.css +26 -23
  166. package/dist/styles/base.css +26 -23
  167. package/dist/styles.css +1 -1
  168. package/dist/switch/style.css +26 -23
  169. package/dist/table/index.js +2 -2
  170. package/dist/table/style.css +26 -23
  171. package/dist/tabs/index.js +1 -1
  172. package/dist/tabs/style.css +26 -23
  173. package/dist/tag/index.js +1 -1
  174. package/dist/tag/style.css +26 -23
  175. package/dist/terminal/style.css +26 -23
  176. package/dist/textarea/index.js +1 -1
  177. package/dist/textarea/style.css +41 -24
  178. package/dist/tiered-menu/index.js +1 -1
  179. package/dist/tiered-menu/style.css +26 -23
  180. package/dist/timeline/index.js +1 -1
  181. package/dist/timeline/style.css +26 -23
  182. package/dist/toast/index.js +1 -1
  183. package/dist/toast/style.css +26 -23
  184. package/dist/toggle-button/index.js +2 -2
  185. package/dist/toggle-button/style.css +26 -23
  186. package/dist/toolbar/style.css +26 -23
  187. package/dist/tooltip/style.css +26 -23
  188. package/dist/tree/index.js +1 -1
  189. package/dist/tree/style.css +26 -23
  190. package/dist/tree-select/index.js +1 -1
  191. package/dist/tree-select/style.css +27 -24
  192. package/dist/tree-table/index.js +1 -1
  193. package/dist/tree-table/style.css +26 -23
  194. package/dist/virtual-scroller/style.css +26 -23
  195. package/package.json +1 -1
  196. package/dist/Icon-DfpIfo2L.js +0 -521
@@ -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 {
@@ -1,15 +1,15 @@
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
- import { i as r, o as i, s as a } from "../config-BdK5ccNT.js";
5
- import { n as o } from "../locale-B36KH7c3.js";
4
+ import { i as r, o as i, s as ee } from "../config-BdK5ccNT.js";
5
+ import { n as a } from "../locale-B36KH7c3.js";
6
6
  import "./style.js";
7
- import { computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeProps as p, normalizeClass as m, openBlock as h, ref as g, renderSlot as _, toDisplayString as v, unref as y, useAttrs as b, useSlots as x } from "vue";
7
+ import { computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, unref as v, useAttrs as y, useSlots as b } from "vue";
8
8
  //#region src/components/Input/Input.vue?vue&type=script&setup=true&lang.ts
9
- var S = ["for"], C = {
9
+ var x = ["for"], S = {
10
10
  key: 0,
11
11
  class: "m-input__prefix"
12
- }, w = [
12
+ }, C = [
13
13
  "id",
14
14
  "type",
15
15
  "value",
@@ -22,13 +22,13 @@ var S = ["for"], C = {
22
22
  "autofocus",
23
23
  "aria-invalid",
24
24
  "aria-describedby"
25
- ], T = {
25
+ ], w = {
26
26
  key: 1,
27
27
  class: "m-input__suffix"
28
- }, E = ["aria-label", "disabled"], D = {
28
+ }, T = ["aria-label", "disabled"], E = {
29
29
  key: 1,
30
30
  class: "m-input-field__meta"
31
- }, O = ["id", "role"], k = ["id"], A = /* @__PURE__ */ f({
31
+ }, D = ["id", "role"], te = ["id"], O = /* @__PURE__ */ d({
32
32
  inheritAttrs: !1,
33
33
  __name: "Input",
34
34
  props: {
@@ -78,100 +78,98 @@ var S = ["for"], C = {
78
78
  "blur",
79
79
  "change"
80
80
  ],
81
- setup(f, { expose: A, emit: j }) {
82
- let M = f, N = j, P = b(), { rootAttrs: F, controlAttrs: I } = e(P, () => M.pt), L = x(), R = r("Input"), z = o(), B = g(null), V = n("m-input"), H = s(() => M.id ?? V), U = s(() => M.invalid || !!M.errorMessage), W = i("Input", () => M.size), ee = a("Input", () => M.variant), G = s(() => M.clearable ?? R.value.clearable ?? !1), K = s(() => M.showCount ?? R.value.showCount ?? !1), q = s(() => M.fluid ?? R.value.fluid ?? !1), J = s(() => M.modelValue.length), Y = s(() => M.maxlength == null ? String(J.value) : `${J.value} / ${M.maxlength}`), X = s(() => M.errorMessage || M.helpText), Z = s(() => !!M.errorMessage || U.value && !!M.helpText), Q = s(() => !!L.prefix), $ = s(() => !!L.suffix), te = s(() => {
81
+ setup(d, { expose: O, emit: k }) {
82
+ let A = d, j = k, M = y(), { rootAttrs: N, controlAttrs: P } = e(M, () => A.pt), F = b(), I = r("Input"), L = a(), R = h(null), z = n("m-input"), B = o(() => A.id ?? z), V = o(() => A.invalid || !!A.errorMessage), H = i("Input", () => A.size), U = ee("Input", () => A.variant), ne = o(() => A.clearable ?? I.value.clearable ?? !1), W = o(() => A.showCount ?? I.value.showCount ?? !1), G = o(() => A.fluid ?? I.value.fluid ?? !1), K = o(() => A.modelValue.length), q = o(() => A.maxlength == null ? String(K.value) : `${K.value} / ${A.maxlength}`), J = o(() => A.errorMessage || A.helpText), Y = o(() => !!A.errorMessage || V.value && !!A.helpText), X = o(() => !!F.prefix), Z = o(() => !!F.suffix), re = o(() => {
83
83
  let e = [];
84
- return X.value && e.push(`${H.value}-help`), K.value && e.push(`${H.value}-count`), e.length ? e.join(" ") : void 0;
85
- }), ne = s(() => [
84
+ return J.value && e.push(`${B.value}-help`), W.value && e.push(`${B.value}-count`), e.length ? e.join(" ") : void 0;
85
+ }), ie = o(() => [
86
86
  "m-input",
87
- `m-input--${W.value}`,
87
+ `m-input--${H.value}`,
88
88
  {
89
- "m-input--filled": ee.value === "filled",
90
- "m-input--fluid": q.value,
91
- "m-input--invalid": U.value,
92
- "m-input--has-prefix": Q.value,
93
- "m-input--has-suffix": $.value
89
+ "m-input--filled": U.value === "filled",
90
+ "m-input--fluid": G.value,
91
+ "m-input--invalid": V.value
94
92
  }
95
- ]);
96
- function re(e) {
97
- N("update:modelValue", e.target.value);
93
+ ]), Q = o(() => ne.value && !!A.modelValue), ae = o(() => ({
94
+ "m-input-field__control--clearable": Q.value,
95
+ "m-input-field__control--counted": W.value,
96
+ "m-input-field__control--prefixed": X.value,
97
+ "m-input-field__control--suffixed": Z.value
98
+ }));
99
+ function oe(e) {
100
+ j("update:modelValue", e.target.value);
98
101
  }
99
- function ie() {
100
- M.disabled || M.readonly || (N("update:modelValue", ""), N("clear"), B.value?.focus());
102
+ function $() {
103
+ A.disabled || A.readonly || (j("update:modelValue", ""), j("clear"), R.value?.focus());
101
104
  }
102
- function ae() {
103
- B.value?.focus();
105
+ function se() {
106
+ R.value?.focus();
104
107
  }
105
- function oe() {
106
- B.value?.blur();
108
+ function ce() {
109
+ R.value?.blur();
107
110
  }
108
- function se() {
109
- B.value?.select();
111
+ function le() {
112
+ R.value?.select();
110
113
  }
111
- return A({
112
- focus: ae,
113
- blur: oe,
114
- select: se
115
- }), (e, n) => (h(), l("div", p(y(F), { class: ["m-input-field", { "m-input-field--fluid": q.value }] }), [
116
- f.label ? (h(), l("label", {
114
+ return O({
115
+ focus: se,
116
+ blur: ce,
117
+ select: le
118
+ }), (e, n) => (m(), c("div", f(v(N), { class: ["m-input-field", { "m-input-field--fluid": G.value }] }), [
119
+ d.label ? (m(), c("label", {
117
120
  key: 0,
118
121
  class: "m-input-field__label",
119
- for: H.value
120
- }, v(f.label), 9, S)) : c("", !0),
121
- u("div", { class: m(["m-input-field__control", {
122
- "m-input-field__control--clearable": G.value && f.modelValue,
123
- "m-input-field__control--counted": K.value,
124
- "m-input-field__control--prefixed": Q.value,
125
- "m-input-field__control--suffixed": !!e.$slots.suffix
126
- }]) }, [
127
- e.$slots.prefix ? (h(), l("span", C, [_(e.$slots, "prefix")])) : c("", !0),
128
- u("input", p(y(I), {
129
- id: H.value,
122
+ for: B.value
123
+ }, _(d.label), 9, x)) : s("", !0),
124
+ l("div", { class: p(["m-input-field__control", ae.value]) }, [
125
+ X.value ? (m(), c("span", S, [g(e.$slots, "prefix")])) : s("", !0),
126
+ l("input", f(v(P), {
127
+ id: B.value,
130
128
  ref_key: "inputElement",
131
- ref: B,
132
- class: ne.value,
133
- type: f.type,
134
- value: f.modelValue,
135
- disabled: f.disabled,
136
- readonly: f.readonly,
137
- maxlength: f.maxlength,
138
- placeholder: f.placeholder,
139
- name: f.name,
140
- autocomplete: f.autocomplete,
141
- autofocus: f.autofocus || void 0,
142
- "aria-invalid": U.value || void 0,
143
- "aria-describedby": te.value,
144
- onInput: re,
145
- onFocus: n[0] ||= (e) => N("focus", e),
146
- onBlur: n[1] ||= (e) => N("blur", e),
147
- onChange: n[2] ||= (e) => N("change", e.target.value)
148
- }), null, 16, w),
149
- e.$slots.suffix ? (h(), l("span", T, [_(e.$slots, "suffix")])) : c("", !0),
150
- G.value && f.modelValue ? (h(), l("button", {
129
+ ref: R,
130
+ class: ie.value,
131
+ type: d.type,
132
+ value: d.modelValue,
133
+ disabled: d.disabled,
134
+ readonly: d.readonly,
135
+ maxlength: d.maxlength,
136
+ placeholder: d.placeholder,
137
+ name: d.name,
138
+ autocomplete: d.autocomplete,
139
+ autofocus: d.autofocus || void 0,
140
+ "aria-invalid": V.value || void 0,
141
+ "aria-describedby": re.value,
142
+ onInput: oe,
143
+ onFocus: n[0] ||= (e) => j("focus", e),
144
+ onBlur: n[1] ||= (e) => j("blur", e),
145
+ onChange: n[2] ||= (e) => j("change", e.target.value)
146
+ }), null, 16, C),
147
+ Z.value ? (m(), c("span", w, [g(e.$slots, "suffix")])) : s("", !0),
148
+ Q.value ? (m(), c("button", {
151
149
  key: 2,
152
150
  class: "m-input__clear",
153
151
  type: "button",
154
- "aria-label": y(z).clearInput,
155
- disabled: f.disabled || f.readonly,
156
- onClick: ie
157
- }, [d(t, {
152
+ "aria-label": v(L).clearInput,
153
+ disabled: d.disabled || d.readonly,
154
+ onClick: $
155
+ }, [u(t, {
158
156
  name: "close",
159
157
  size: "sm"
160
- })], 8, E)) : c("", !0)
158
+ })], 8, T)) : s("", !0)
161
159
  ], 2),
162
- X.value || K.value ? (h(), l("div", D, [X.value ? (h(), l("span", {
160
+ J.value || W.value ? (m(), c("div", E, [J.value ? (m(), c("span", {
163
161
  key: 0,
164
- id: `${H.value}-help`,
165
- class: m(["m-input-field__help", { "m-input-field__help--invalid": Z.value }]),
166
- role: Z.value ? "alert" : void 0
167
- }, v(X.value), 11, O)) : c("", !0), K.value ? (h(), l("span", {
162
+ id: `${B.value}-help`,
163
+ class: p(["m-input-field__help", { "m-input-field__help--invalid": Y.value }]),
164
+ role: Y.value ? "alert" : void 0
165
+ }, _(J.value), 11, D)) : s("", !0), W.value ? (m(), c("span", {
168
166
  key: 1,
169
- id: `${H.value}-count`,
167
+ id: `${B.value}-count`,
170
168
  class: "m-input-field__count",
171
169
  "aria-live": "polite"
172
- }, v(Y.value), 9, k)) : c("", !0)])) : c("", !0)
170
+ }, _(q.value), 9, te)) : s("", !0)])) : s("", !0)
173
171
  ], 16));
174
172
  }
175
173
  });
176
174
  //#endregion
177
- export { A as MInput };
175
+ export { O as MInput };