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.
- package/CHANGELOG.md +43 -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/Renderable-DHU4Jcfw.js +20 -0
- 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/component-registry.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +38 -17
- package/dist/components/Carousel/Carousel.vue.d.ts +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +1 -1
- 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/Loading/Loading.vue.d.ts +25 -0
- package/dist/components/Loading/Loading.vue.d.ts.map +1 -0
- package/dist/components/Loading/LoadingIndicator.vue.d.ts +13 -0
- package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -0
- package/dist/components/Loading/directive.d.ts +12 -0
- package/dist/components/Loading/directive.d.ts.map +1 -0
- package/dist/components/Loading/index.d.ts +8 -0
- package/dist/components/Loading/index.d.ts.map +1 -0
- package/dist/components/Loading/loading.d.ts +35 -0
- package/dist/components/Loading/loading.d.ts.map +1 -0
- package/dist/components/Loading/styles.css +386 -0
- package/dist/components/Loading/types.d.ts +74 -0
- package/dist/components/Loading/types.d.ts.map +1 -0
- package/dist/components/Loading/useLoading.d.ts +11 -0
- package/dist/components/Loading/useLoading.d.ts.map +1 -0
- package/dist/components/Menu/styles.css +4 -1
- package/dist/components/Page/PageContent.vue.d.ts +2 -2
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts +1 -1
- package/dist/components/Rating/Rating.vue.d.ts +1 -1
- package/dist/components/Table/Table.vue.d.ts +1 -1
- package/dist/components/Textarea/styles.css +15 -1
- package/dist/config-provider/style.css +198 -56
- package/dist/confirm-dialog/index.js +11 -11
- 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/content-h8POj44-.js +28 -0
- 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 +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4722 -3962
- 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/index.js +467 -0
- package/dist/loading/style.css +1380 -0
- package/dist/loading/style.js +3 -0
- 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 +8 -7
- 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/resolver-map.d.ts.map +1 -1
- package/dist/resolver.js +1 -0
- 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/config.d.ts.map +1 -1
- 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 +13 -12
- 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 +9 -2
- package/dist/Icon-DfpIfo2L.js +0 -521
- package/dist/Renderable-BaaCI4tS.js +0 -45
package/dist/inplace/style.css
CHANGED
|
@@ -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 {
|
package/dist/input/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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
|
-
import { i as r, o as i, s as
|
|
5
|
-
import { n as
|
|
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
|
|
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
|
|
9
|
+
var x = ["for"], S = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "m-input__prefix"
|
|
12
|
-
},
|
|
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
|
-
],
|
|
25
|
+
], w = {
|
|
26
26
|
key: 1,
|
|
27
27
|
class: "m-input__suffix"
|
|
28
|
-
},
|
|
28
|
+
}, T = ["aria-label", "disabled"], E = {
|
|
29
29
|
key: 1,
|
|
30
30
|
class: "m-input-field__meta"
|
|
31
|
-
},
|
|
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(
|
|
82
|
-
let
|
|
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
|
|
85
|
-
}),
|
|
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--${
|
|
87
|
+
`m-input--${H.value}`,
|
|
88
88
|
{
|
|
89
|
-
"m-input--filled":
|
|
90
|
-
"m-input--fluid":
|
|
91
|
-
"m-input--invalid":
|
|
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
|
-
|
|
97
|
-
|
|
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
|
|
100
|
-
|
|
102
|
+
function $() {
|
|
103
|
+
A.disabled || A.readonly || (j("update:modelValue", ""), j("clear"), R.value?.focus());
|
|
101
104
|
}
|
|
102
|
-
function
|
|
103
|
-
|
|
105
|
+
function se() {
|
|
106
|
+
R.value?.focus();
|
|
104
107
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
108
|
+
function ce() {
|
|
109
|
+
R.value?.blur();
|
|
107
110
|
}
|
|
108
|
-
function
|
|
109
|
-
|
|
111
|
+
function le() {
|
|
112
|
+
R.value?.select();
|
|
110
113
|
}
|
|
111
|
-
return
|
|
112
|
-
focus:
|
|
113
|
-
blur:
|
|
114
|
-
select:
|
|
115
|
-
}), (e, n) => (
|
|
116
|
-
|
|
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:
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"
|
|
124
|
-
|
|
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:
|
|
132
|
-
class:
|
|
133
|
-
type:
|
|
134
|
-
value:
|
|
135
|
-
disabled:
|
|
136
|
-
readonly:
|
|
137
|
-
maxlength:
|
|
138
|
-
placeholder:
|
|
139
|
-
name:
|
|
140
|
-
autocomplete:
|
|
141
|
-
autofocus:
|
|
142
|
-
"aria-invalid":
|
|
143
|
-
"aria-describedby":
|
|
144
|
-
onInput:
|
|
145
|
-
onFocus: n[0] ||= (e) =>
|
|
146
|
-
onBlur: n[1] ||= (e) =>
|
|
147
|
-
onChange: n[2] ||= (e) =>
|
|
148
|
-
}), null, 16,
|
|
149
|
-
|
|
150
|
-
|
|
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":
|
|
155
|
-
disabled:
|
|
156
|
-
onClick:
|
|
157
|
-
}, [
|
|
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,
|
|
158
|
+
})], 8, T)) : s("", !0)
|
|
161
159
|
], 2),
|
|
162
|
-
|
|
160
|
+
J.value || W.value ? (m(), c("div", E, [J.value ? (m(), c("span", {
|
|
163
161
|
key: 0,
|
|
164
|
-
id: `${
|
|
165
|
-
class:
|
|
166
|
-
role:
|
|
167
|
-
},
|
|
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: `${
|
|
167
|
+
id: `${B.value}-count`,
|
|
170
168
|
class: "m-input-field__count",
|
|
171
169
|
"aria-live": "polite"
|
|
172
|
-
},
|
|
170
|
+
}, _(q.value), 9, te)) : s("", !0)])) : s("", !0)
|
|
173
171
|
], 16));
|
|
174
172
|
}
|
|
175
173
|
});
|
|
176
174
|
//#endregion
|
|
177
|
-
export {
|
|
175
|
+
export { O as MInput };
|