morya-ui 0.4.5 → 0.5.1
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 +41 -2
- package/dist/{Input-D2bee2LU.js → Input-BErawS7K.js} +1 -5
- package/dist/InputNumber-DjbXtTzR.js +245 -0
- package/dist/{Pagination-DpNOb0CS.js → Pagination-B8WYoL2a.js} +1 -1
- package/dist/{Popover-Bnz7KNZq.js → Popover-zQChu00_.js} +6 -1
- package/dist/{Select-q4X2ff_M.js → Select-BaFKBeIh.js} +2 -2
- package/dist/{Textarea-DsFOAtPd.js → Textarea-WCEgpzbq.js} +1 -5
- package/dist/accordion/style.css +6 -15
- package/dist/affix/style.css +6 -15
- package/dist/alert/style.css +6 -15
- package/dist/anchor/style.css +6 -15
- package/dist/auto-complete/style.css +6 -15
- package/dist/avatar/style.css +6 -15
- package/dist/badge/style.css +6 -15
- package/dist/block-ui/style.css +6 -15
- package/dist/breadcrumb/style.css +6 -15
- package/dist/button/style.css +6 -15
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/style.css +6 -15
- package/dist/card/style.css +6 -15
- package/dist/carousel/style.css +6 -15
- package/dist/cascade-select/style.css +6 -15
- package/dist/checkbox/style.css +6 -15
- package/dist/chip/style.css +6 -15
- package/dist/color-picker/index.js +676 -0
- package/dist/{input-color → color-picker}/style.css +1406 -83
- package/dist/color-picker/style.js +8 -0
- package/dist/command-menu/index.js +73 -66
- package/dist/command-menu/style.css +6 -15
- package/dist/components/ColorPicker/ColorPicker.vue.d.ts +41 -0
- package/dist/components/ColorPicker/ColorPicker.vue.d.ts.map +1 -0
- package/dist/components/ColorPicker/colorUtils.d.ts +23 -0
- package/dist/components/ColorPicker/colorUtils.d.ts.map +1 -0
- package/dist/components/ColorPicker/gradientUtils.d.ts +9 -0
- package/dist/components/ColorPicker/gradientUtils.d.ts.map +1 -0
- package/dist/components/ColorPicker/index.d.ts +3 -0
- package/dist/components/ColorPicker/index.d.ts.map +1 -0
- package/dist/components/ColorPicker/styles.css +405 -0
- package/dist/components/ColorPicker/types.d.ts +60 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -0
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/styles.css +1 -1
- package/dist/components/Dock/Dock.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +1 -1
- package/dist/components/Input/Input.vue.d.ts +0 -1
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/types.d.ts +0 -2
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/InputNumber/styles.css +28 -10
- package/dist/components/InputPassword/InputPassword.vue.d.ts +0 -1
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/types.d.ts +0 -2
- package/dist/components/InputPassword/types.d.ts.map +1 -1
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
- package/dist/components/Mentions/Mentions.vue.d.ts +0 -1
- package/dist/components/Mentions/Mentions.vue.d.ts.map +1 -1
- package/dist/components/Mentions/types.d.ts +0 -2
- package/dist/components/Mentions/types.d.ts.map +1 -1
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +45 -3
- package/dist/components/Menu/types.d.ts +3 -1
- package/dist/components/Menu/types.d.ts.map +1 -1
- package/dist/components/Menubar/Menubar.vue.d.ts +2 -2
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +1 -1
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Rating/Rating.vue.d.ts +1 -1
- package/dist/components/Rating/types.d.ts +2 -2
- package/dist/components/Rating/types.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +1 -1
- package/dist/components/Select/types.d.ts +1 -1
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts +3 -3
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.vue.d.ts +0 -1
- package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/components/Textarea/types.d.ts +0 -2
- package/dist/components/Textarea/types.d.ts.map +1 -1
- package/dist/components/TieredMenu/styles.css +2 -2
- package/dist/components/Tooltip/styles.css +15 -2
- package/dist/config-provider/style.css +6 -15
- package/dist/confirm-dialog/style.css +6 -15
- package/dist/confirm-popup/style.css +6 -15
- package/dist/context-menu/index.js +92 -84
- package/dist/context-menu/style.css +7 -16
- package/dist/data-view/index.js +1 -1
- package/dist/data-view/style.css +6 -15
- package/dist/date-picker/style.css +6 -15
- package/dist/descriptions/style.css +6 -15
- package/dist/dialog/style.css +6 -15
- package/dist/divider/style.css +6 -15
- package/dist/dock/index.js +21 -18
- package/dist/dock/style.css +6 -15
- package/dist/drawer/style.css +6 -15
- package/dist/dropdown/index.js +103 -95
- package/dist/dropdown/style.css +7 -16
- package/dist/empty/style.css +6 -15
- package/dist/fieldset/style.css +6 -15
- package/dist/file-upload/style.css +6 -15
- package/dist/flex/style.css +6 -15
- package/dist/float-label/style.css +6 -15
- package/dist/fluid/style.css +6 -15
- package/dist/form/style.css +6 -15
- package/dist/gallery/style.css +6 -15
- package/dist/grid/style.css +6 -15
- package/dist/icon/style.css +6 -15
- package/dist/{icon-H8prbteT.js → icon-CUrSaD8r.js} +4 -1
- package/dist/icon-field/style.css +6 -15
- package/dist/image/style.css +6 -15
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4047 -3420
- package/dist/inplace/style.css +6 -15
- package/dist/input/index.js +1 -1
- package/dist/input/style.css +6 -15
- package/dist/input-group/style.css +6 -15
- package/dist/input-number/index.js +2 -245
- package/dist/input-number/style.css +34 -25
- package/dist/input-otp/style.css +6 -15
- package/dist/input-password/index.js +1 -5
- package/dist/input-password/style.css +6 -15
- package/dist/input-tags/style.css +6 -15
- package/dist/knob/style.css +6 -15
- package/dist/label/style.css +6 -15
- package/dist/layout/style.css +6 -15
- package/dist/list/index.js +1 -1
- package/dist/list/style.css +6 -15
- package/dist/listbox/style.css +6 -15
- package/dist/loading/style.css +6 -15
- package/dist/mega-menu/index.js +94 -87
- package/dist/mega-menu/style.css +6 -15
- package/dist/mentions/index.js +35 -39
- package/dist/mentions/style.css +6 -15
- package/dist/menu/index.js +235 -213
- package/dist/menu/style.css +66 -20
- package/dist/menubar/index.js +107 -99
- package/dist/menubar/style.css +7 -16
- package/dist/message/style.css +6 -15
- package/dist/meter-group/style.css +6 -15
- package/dist/order-list/style.css +6 -15
- package/dist/page/style.css +6 -15
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +6 -15
- package/dist/panel/style.css +6 -15
- package/dist/pick-list/style.css +6 -15
- package/dist/popover/index.js +1 -1
- package/dist/popover/style.css +6 -15
- package/dist/progress-bar/style.css +6 -15
- package/dist/progress-spinner/style.css +6 -15
- package/dist/qr-code/style.css +6 -15
- package/dist/radio/style.css +6 -15
- package/dist/rating/index.js +2 -2
- package/dist/rating/style.css +6 -15
- package/dist/resolver.js +1 -1
- package/dist/result/style.css +6 -15
- package/dist/scroll-top/style.css +6 -15
- package/dist/scrollbar/style.css +6 -15
- package/dist/segmented/style.css +6 -15
- package/dist/select/index.js +1 -1
- package/dist/select/style.css +6 -15
- package/dist/select-button/style.css +6 -15
- package/dist/shared/menu/icon.d.ts +3 -0
- package/dist/shared/menu/icon.d.ts.map +1 -1
- package/dist/shared/menu/index.d.ts +2 -2
- package/dist/shared/menu/index.d.ts.map +1 -1
- package/dist/shared/menu/types.d.ts +3 -1
- package/dist/shared/menu/types.d.ts.map +1 -1
- package/dist/sidebar/index.js +37 -29
- package/dist/sidebar/style.css +6 -15
- package/dist/skeleton/style.css +6 -15
- package/dist/slider/style.css +6 -15
- package/dist/space/style.css +6 -15
- package/dist/speed-dial/index.js +101 -94
- package/dist/speed-dial/style.css +6 -15
- package/dist/split-button/index.js +3 -3
- package/dist/split-button/style.css +6 -15
- package/dist/splitter/style.css +6 -15
- package/dist/statistic/style.css +6 -15
- package/dist/status/style.css +6 -15
- package/dist/stepper/style.css +6 -15
- package/dist/styles/base.css +6 -15
- package/dist/styles.css +1 -1
- package/dist/switch/style.css +6 -15
- package/dist/table/index.js +3 -3
- package/dist/table/style.css +6 -15
- package/dist/tabs/style.css +6 -15
- package/dist/tag/style.css +6 -15
- package/dist/terminal/style.css +6 -15
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/style.css +6 -15
- package/dist/tiered-menu/style.css +8 -17
- package/dist/time-picker/style.css +6 -15
- package/dist/timeline/style.css +6 -15
- package/dist/toast/style.css +6 -15
- package/dist/toggle-button/index.js +1 -1
- package/dist/toggle-button/style.css +6 -15
- package/dist/toolbar/style.css +6 -15
- package/dist/tooltip/style.css +21 -17
- package/dist/tour/style.css +6 -15
- package/dist/tree/style.css +6 -15
- package/dist/tree-select/style.css +6 -15
- package/dist/typography/index.js +1 -1
- package/dist/typography/style.css +6 -15
- package/dist/virtual-scroller/style.css +6 -15
- package/dist/watermark/style.css +6 -15
- package/package.json +8 -8
- package/dist/components/InputColor/InputColor.vue.d.ts +0 -24
- package/dist/components/InputColor/InputColor.vue.d.ts.map +0 -1
- package/dist/components/InputColor/index.d.ts +0 -3
- package/dist/components/InputColor/index.d.ts.map +0 -1
- package/dist/components/InputColor/styles.css +0 -139
- package/dist/components/InputColor/types.d.ts +0 -19
- package/dist/components/InputColor/types.d.ts.map +0 -1
- package/dist/input-color/index.js +0 -118
- package/dist/input-color/style.js +0 -3
package/dist/dropdown/index.js
CHANGED
|
@@ -5,37 +5,37 @@ import { t as i } from "../useFloatingViewportSync-wLLKIGUA.js";
|
|
|
5
5
|
import { t as a } from "../useMotionTransition-DohkfWRB.js";
|
|
6
6
|
import { t as o } from "../Icon-CmHjx7W8.js";
|
|
7
7
|
import { t as s } from "../Scrollbar-DTeJ8P5b.js";
|
|
8
|
-
import { t as c } from "../
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
8
|
+
import { t as c } from "../key-CaQYVkjh.js";
|
|
9
|
+
import { n as l, t as u } from "../icon-CUrSaD8r.js";
|
|
10
|
+
import { t as ee } from "../FlyoutSubmenu-C1n-fr6i.js";
|
|
11
11
|
import { l as d } from "../config-Cd20zAyW.js";
|
|
12
12
|
import { n as f } from "../locale-BcxMPufl.js";
|
|
13
13
|
import "./style.js";
|
|
14
|
-
import { Fragment as p, Teleport as m, Transition as h, computed as g, createBlock as
|
|
14
|
+
import { Fragment as p, Teleport as m, Transition as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, mergeProps as T, nextTick as E, normalizeClass as D, normalizeStyle as O, onBeforeUnmount as k, openBlock as A, ref as j, renderList as te, renderSlot as M, resolveDynamicComponent as N, toDisplayString as P, unref as F, useAttrs as I, watch as L, withCtx as R } from "vue";
|
|
15
15
|
//#region src/components/Dropdown/DropdownNodes.vue?vue&type=script&setup=true&lang.ts
|
|
16
|
-
var
|
|
16
|
+
var ne = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "m-dropdown__separator",
|
|
19
19
|
role: "separator"
|
|
20
|
-
},
|
|
20
|
+
}, z = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "m-dropdown__group"
|
|
23
|
-
},
|
|
23
|
+
}, B = { class: "m-dropdown__group-label" }, V = ["onMouseenter"], H = ["disabled"], U = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "m-dropdown__icon",
|
|
26
26
|
"aria-hidden": "true"
|
|
27
|
-
},
|
|
27
|
+
}, W = {
|
|
28
28
|
class: "m-dropdown__caret",
|
|
29
29
|
"aria-hidden": "true"
|
|
30
|
-
},
|
|
30
|
+
}, G = [
|
|
31
31
|
"disabled",
|
|
32
32
|
"onMouseenter",
|
|
33
33
|
"onClick"
|
|
34
|
-
],
|
|
34
|
+
], K = {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "m-dropdown__icon",
|
|
37
37
|
"aria-hidden": "true"
|
|
38
|
-
},
|
|
38
|
+
}, q = /* @__PURE__ */ w({
|
|
39
39
|
__name: "DropdownNodes",
|
|
40
40
|
props: {
|
|
41
41
|
items: {},
|
|
@@ -48,7 +48,7 @@ var F = {
|
|
|
48
48
|
"submenuLeave"
|
|
49
49
|
],
|
|
50
50
|
setup(e, { emit: t }) {
|
|
51
|
-
let n = t, r =
|
|
51
|
+
let n = t, r = j(null), i = j(null), a;
|
|
52
52
|
function d() {
|
|
53
53
|
a && clearTimeout(a), a = void 0;
|
|
54
54
|
}
|
|
@@ -64,105 +64,113 @@ var F = {
|
|
|
64
64
|
return e.type === "group";
|
|
65
65
|
}
|
|
66
66
|
function g(e, t) {
|
|
67
|
-
return
|
|
67
|
+
return c(e, t, "dd");
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
69
|
+
function w(e) {
|
|
70
|
+
return typeof e.icon == "string" ? u(e.icon) : void 0;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function T(e) {
|
|
73
|
+
return l(e.icon);
|
|
74
|
+
}
|
|
75
|
+
function E(e) {
|
|
76
|
+
return !!(w(e) || T(e));
|
|
77
|
+
}
|
|
78
|
+
function O(e, t, a) {
|
|
73
79
|
if (e.disabled || m(e) || h(e) || (d(), n("highlight", e.value), !e.items?.length)) return;
|
|
74
80
|
r.value = g(e, t);
|
|
75
81
|
let o = a.currentTarget;
|
|
76
82
|
i.value = o?.querySelector(".m-dropdown__item--parent") ?? o;
|
|
77
83
|
}
|
|
78
|
-
function
|
|
84
|
+
function k() {
|
|
79
85
|
f();
|
|
80
86
|
}
|
|
81
|
-
function
|
|
87
|
+
function F() {
|
|
82
88
|
d(), n("submenuEnter");
|
|
83
89
|
}
|
|
84
|
-
function
|
|
90
|
+
function I() {
|
|
85
91
|
f(), n("submenuLeave");
|
|
86
92
|
}
|
|
87
|
-
return (t, n) => (
|
|
93
|
+
return (t, n) => (A(!0), y(p, null, te(e.items, (a, c) => (A(), y(p, { key: g(a, c) }, [m(a) ? (A(), y("div", ne)) : h(a) ? (A(), y("div", z, [b("div", B, P(a.label), 1), a.items?.length ? (A(), _(q, {
|
|
88
94
|
key: 0,
|
|
89
95
|
items: a.items,
|
|
90
96
|
"highlighted-value": e.highlightedValue,
|
|
91
97
|
onSelect: n[0] ||= (e) => t.$emit("select", e),
|
|
92
98
|
onHighlight: n[1] ||= (e) => t.$emit("highlight", e),
|
|
93
|
-
onSubmenuEnter:
|
|
94
|
-
onSubmenuLeave:
|
|
95
|
-
},
|
|
99
|
+
onSubmenuEnter: F,
|
|
100
|
+
onSubmenuLeave: I
|
|
101
|
+
}, x({ _: 2 }, [t.$slots.item ? {
|
|
96
102
|
name: "item",
|
|
97
|
-
fn:
|
|
103
|
+
fn: R(({ item: e }) => [M(t.$slots, "item", { item: e })]),
|
|
98
104
|
key: "0"
|
|
99
|
-
} : void 0]), 1032, ["items", "highlighted-value"])) :
|
|
105
|
+
} : void 0]), 1032, ["items", "highlighted-value"])) : v("", !0)])) : a.items?.length ? (A(), y("div", {
|
|
100
106
|
key: 2,
|
|
101
107
|
class: "m-dropdown__submenu-wrap",
|
|
102
|
-
onMouseenter: (e) =>
|
|
103
|
-
onMouseleave:
|
|
104
|
-
}, [
|
|
108
|
+
onMouseenter: (e) => O(a, c, e),
|
|
109
|
+
onMouseleave: k
|
|
110
|
+
}, [b("button", {
|
|
105
111
|
type: "button",
|
|
106
|
-
class:
|
|
112
|
+
class: D(["m-dropdown__item m-dropdown__item--parent", { "m-dropdown__item--highlighted": e.highlightedValue === a.value }]),
|
|
107
113
|
role: "menuitem",
|
|
108
114
|
disabled: a.disabled,
|
|
109
115
|
"aria-haspopup": !0
|
|
110
116
|
}, [
|
|
111
|
-
|
|
112
|
-
|
|
117
|
+
E(a) ? (A(), y("span", U, [w(a) ? (A(), _(o, {
|
|
118
|
+
key: 0,
|
|
119
|
+
name: w(a),
|
|
113
120
|
size: "sm"
|
|
114
|
-
}, null, 8, ["name"])])) :
|
|
115
|
-
|
|
116
|
-
|
|
121
|
+
}, null, 8, ["name"])) : T(a) ? (A(), _(N(T(a)), { key: 1 })) : v("", !0)])) : v("", !0),
|
|
122
|
+
M(t.$slots, "item", { item: a }, () => [S(P(a.label), 1)]),
|
|
123
|
+
b("span", W, [C(o, {
|
|
117
124
|
name: "chevron-right",
|
|
118
125
|
size: "sm"
|
|
119
126
|
})])
|
|
120
|
-
], 10,
|
|
127
|
+
], 10, H), C(ee, {
|
|
121
128
|
open: r.value === g(a, c),
|
|
122
129
|
anchor: r.value === g(a, c) ? i.value : null,
|
|
123
130
|
"panel-class": "m-dropdown__submenu",
|
|
124
|
-
onEnter:
|
|
125
|
-
onLeave:
|
|
131
|
+
onEnter: F,
|
|
132
|
+
onLeave: I
|
|
126
133
|
}, {
|
|
127
|
-
default:
|
|
134
|
+
default: R(() => [C(s, {
|
|
128
135
|
class: "m-dropdown__submenu-scroll",
|
|
129
136
|
"fit-content": "",
|
|
130
137
|
"wrap-class": "m-dropdown__submenu-wrap-inner",
|
|
131
138
|
"view-class": "m-dropdown__submenu-view"
|
|
132
139
|
}, {
|
|
133
|
-
default:
|
|
140
|
+
default: R(() => [C(q, {
|
|
134
141
|
items: a.items,
|
|
135
142
|
"highlighted-value": e.highlightedValue,
|
|
136
143
|
onSelect: n[2] ||= (e) => t.$emit("select", e),
|
|
137
144
|
onHighlight: n[3] ||= (e) => t.$emit("highlight", e),
|
|
138
|
-
onSubmenuEnter:
|
|
139
|
-
onSubmenuLeave:
|
|
140
|
-
},
|
|
145
|
+
onSubmenuEnter: F,
|
|
146
|
+
onSubmenuLeave: I
|
|
147
|
+
}, x({ _: 2 }, [t.$slots.item ? {
|
|
141
148
|
name: "item",
|
|
142
|
-
fn:
|
|
149
|
+
fn: R(({ item: e }) => [M(t.$slots, "item", { item: e })]),
|
|
143
150
|
key: "0"
|
|
144
151
|
} : void 0]), 1032, ["items", "highlighted-value"])]),
|
|
145
152
|
_: 2
|
|
146
153
|
}, 1024)]),
|
|
147
154
|
_: 2
|
|
148
|
-
}, 1032, ["open", "anchor"])], 40,
|
|
155
|
+
}, 1032, ["open", "anchor"])], 40, V)) : (A(), y("button", {
|
|
149
156
|
key: 3,
|
|
150
157
|
type: "button",
|
|
151
|
-
class:
|
|
158
|
+
class: D(["m-dropdown__item", { "m-dropdown__item--highlighted": e.highlightedValue === a.value }]),
|
|
152
159
|
role: "menuitem",
|
|
153
160
|
disabled: a.disabled,
|
|
154
161
|
onMouseenter: (e) => !a.disabled && t.$emit("highlight", a.value),
|
|
155
162
|
onClick: (e) => t.$emit("select", a)
|
|
156
|
-
}, [
|
|
157
|
-
|
|
163
|
+
}, [E(a) ? (A(), y("span", K, [w(a) ? (A(), _(o, {
|
|
164
|
+
key: 0,
|
|
165
|
+
name: w(a),
|
|
158
166
|
size: "sm"
|
|
159
|
-
}, null, 8, ["name"])])) :
|
|
167
|
+
}, null, 8, ["name"])) : T(a) ? (A(), _(N(T(a)), { key: 1 })) : v("", !0)])) : v("", !0), M(t.$slots, "item", { item: a }, () => [S(P(a.label), 1)])], 42, G))], 64))), 128));
|
|
160
168
|
}
|
|
161
|
-
}),
|
|
169
|
+
}), re = [
|
|
162
170
|
"tabindex",
|
|
163
171
|
"aria-expanded",
|
|
164
172
|
"aria-disabled"
|
|
165
|
-
],
|
|
173
|
+
], J = /* @__PURE__ */ w({
|
|
166
174
|
inheritAttrs: !1,
|
|
167
175
|
__name: "Dropdown",
|
|
168
176
|
props: {
|
|
@@ -196,85 +204,85 @@ var F = {
|
|
|
196
204
|
},
|
|
197
205
|
emits: ["update:modelValue", "select"],
|
|
198
206
|
setup(o, { emit: c }) {
|
|
199
|
-
let l = o, u = c,
|
|
207
|
+
let l = o, u = c, ee = I(), { rootAttrs: p } = e(ee, () => l.pt), w = d(), { transitionName: te, transitionCss: N } = a({
|
|
200
208
|
role: "popup",
|
|
201
209
|
local: () => l.transition,
|
|
202
210
|
componentName: "Dropdown",
|
|
203
211
|
fallback: "scale-fade"
|
|
204
|
-
}),
|
|
205
|
-
function
|
|
206
|
-
|
|
212
|
+
}), ne = f(), z = j(null), B = j(null), V = j(null), H = j({}), U = j(-1), W = g(() => l.items.filter((e) => !e.disabled && !e.separator && e.type !== "divider" && e.type !== "group" && !e.items?.length && e.value != null)), G = g(() => W.value[U.value]?.value), K, J, Y = g(() => t(l, w.value.appendTo)), X = g(() => n(l, w.value.appendTo));
|
|
213
|
+
function ie() {
|
|
214
|
+
U.value = -1;
|
|
207
215
|
}
|
|
208
|
-
function
|
|
209
|
-
if (!
|
|
210
|
-
let e =
|
|
211
|
-
|
|
216
|
+
function ae() {
|
|
217
|
+
if (!X.value || !B.value) return;
|
|
218
|
+
let e = B.value.getBoundingClientRect();
|
|
219
|
+
H.value = r(e, l.placement === "bottom-end" ? "bottom-end" : "bottom-start", { minWidth: `${e.width}px` });
|
|
212
220
|
}
|
|
213
221
|
function Z(e) {
|
|
214
|
-
l.disabled && e || (u("update:modelValue", e), e && (
|
|
215
|
-
|
|
222
|
+
l.disabled && e || (u("update:modelValue", e), e && (ie(), E(() => {
|
|
223
|
+
ae(), V.value?.focus({ preventScroll: !0 });
|
|
216
224
|
})));
|
|
217
225
|
}
|
|
218
226
|
function oe() {
|
|
219
227
|
l.disabled || Z(!l.modelValue);
|
|
220
228
|
}
|
|
221
229
|
function se() {
|
|
222
|
-
l.modelValue &&
|
|
230
|
+
l.modelValue && ae();
|
|
223
231
|
}
|
|
224
232
|
function ce(e) {
|
|
225
233
|
e.disabled || e.separator || e.type === "divider" || e.type === "group" || (e.command?.(), u("select", e), l.closeOnSelect && Z(!1));
|
|
226
234
|
}
|
|
227
235
|
function Q() {
|
|
228
|
-
K && clearTimeout(K),
|
|
236
|
+
K && clearTimeout(K), J && clearTimeout(J), K = void 0, J = void 0;
|
|
229
237
|
}
|
|
230
238
|
function le() {
|
|
231
239
|
l.disabled || l.trigger !== "hover" || (Q(), K = setTimeout(Z, l.showDelay, !0));
|
|
232
240
|
}
|
|
233
241
|
function ue() {
|
|
234
|
-
l.trigger === "hover" && (Q(),
|
|
242
|
+
l.trigger === "hover" && (Q(), J = setTimeout(Z, l.hideDelay, !1));
|
|
235
243
|
}
|
|
236
244
|
function de() {
|
|
237
245
|
l.trigger === "hover" && Q();
|
|
238
246
|
}
|
|
239
247
|
function fe() {
|
|
240
|
-
l.trigger === "hover" && (Q(),
|
|
248
|
+
l.trigger === "hover" && (Q(), J = setTimeout(Z, l.hideDelay, !1));
|
|
241
249
|
}
|
|
242
250
|
function pe(e) {
|
|
243
251
|
if (l.modelValue) {
|
|
244
252
|
if (e.key === "Escape") {
|
|
245
|
-
e.preventDefault(), Z(!1),
|
|
253
|
+
e.preventDefault(), Z(!1), B.value?.focus({ preventScroll: !0 });
|
|
246
254
|
return;
|
|
247
255
|
}
|
|
248
256
|
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
249
257
|
e.preventDefault();
|
|
250
|
-
let t = e.key === "ArrowDown" ? 1 : -1, n =
|
|
251
|
-
n && (
|
|
258
|
+
let t = e.key === "ArrowDown" ? 1 : -1, n = W.value.length;
|
|
259
|
+
n && (U.value = (U.value + t + n) % n);
|
|
252
260
|
}
|
|
253
|
-
if (e.key === "Home" && (e.preventDefault(),
|
|
254
|
-
let t =
|
|
255
|
-
|
|
261
|
+
if (e.key === "Home" && (e.preventDefault(), U.value = 0), e.key === "End" && (e.preventDefault(), U.value = W.value.length - 1), e.key === "Enter" || e.key === " ") {
|
|
262
|
+
let t = W.value[U.value];
|
|
263
|
+
U.value >= 0 && t && (e.preventDefault(), ce(t));
|
|
256
264
|
}
|
|
257
265
|
}
|
|
258
266
|
}
|
|
259
267
|
function me(e) {
|
|
260
268
|
l.disabled || (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), l.modelValue || Z(!0));
|
|
261
269
|
}
|
|
262
|
-
|
|
270
|
+
L(() => l.disabled, (e) => {
|
|
263
271
|
e && l.modelValue && Z(!1);
|
|
264
272
|
});
|
|
265
273
|
function $(e) {
|
|
266
|
-
l.modelValue &&
|
|
274
|
+
l.modelValue && z.value && !z.value.contains(e.target) && !V.value?.contains(e.target) && Z(!1);
|
|
267
275
|
}
|
|
268
|
-
return
|
|
276
|
+
return L(() => l.modelValue, (e) => {
|
|
269
277
|
e ? document.addEventListener("click", $) : document.removeEventListener("click", $);
|
|
270
|
-
}, { immediate: !0 }), i(() => l.modelValue &&
|
|
278
|
+
}, { immediate: !0 }), i(() => l.modelValue && X.value, se), k(() => {
|
|
271
279
|
document.removeEventListener("click", $), Q();
|
|
272
|
-
}), (e, t) => (
|
|
280
|
+
}), (e, t) => (A(), y("div", T({
|
|
273
281
|
ref_key: "root",
|
|
274
|
-
ref:
|
|
275
|
-
},
|
|
282
|
+
ref: z
|
|
283
|
+
}, F(p), { class: ["m-dropdown", { "m-dropdown--disabled": o.disabled }] }), [b("span", {
|
|
276
284
|
ref_key: "trigger",
|
|
277
|
-
ref:
|
|
285
|
+
ref: B,
|
|
278
286
|
class: "m-dropdown__trigger",
|
|
279
287
|
role: "button",
|
|
280
288
|
tabindex: o.disabled ? -1 : 0,
|
|
@@ -285,47 +293,47 @@ var F = {
|
|
|
285
293
|
onMouseenter: le,
|
|
286
294
|
onMouseleave: ue,
|
|
287
295
|
onKeydown: me
|
|
288
|
-
}, [
|
|
289
|
-
to:
|
|
290
|
-
disabled:
|
|
291
|
-
}, [
|
|
292
|
-
name:
|
|
293
|
-
css: N
|
|
296
|
+
}, [M(e.$slots, "trigger", {}, () => [S(P(F(ne).openMenu), 1)])], 40, re), (A(), _(m, {
|
|
297
|
+
to: Y.value.to,
|
|
298
|
+
disabled: Y.value.disabled
|
|
299
|
+
}, [C(h, {
|
|
300
|
+
name: F(te),
|
|
301
|
+
css: F(N)
|
|
294
302
|
}, {
|
|
295
|
-
default:
|
|
303
|
+
default: R(() => [o.modelValue ? (A(), y("div", {
|
|
296
304
|
key: 0,
|
|
297
305
|
ref_key: "menu",
|
|
298
|
-
ref:
|
|
299
|
-
class:
|
|
300
|
-
style:
|
|
306
|
+
ref: V,
|
|
307
|
+
class: D(["m-dropdown__menu", [`m-dropdown__menu--${o.placement}`, { "m-dropdown__menu--teleported": X.value }]]),
|
|
308
|
+
style: O(X.value ? H.value : void 0),
|
|
301
309
|
role: "menu",
|
|
302
310
|
tabindex: "-1",
|
|
303
311
|
onKeydown: pe,
|
|
304
312
|
onMouseenter: de,
|
|
305
313
|
onMouseleave: fe
|
|
306
|
-
}, [
|
|
314
|
+
}, [C(s, {
|
|
307
315
|
class: "m-dropdown__scroll",
|
|
308
316
|
"fit-content": "",
|
|
309
317
|
"wrap-class": "m-dropdown__scroll-wrap",
|
|
310
318
|
"view-class": "m-dropdown__scroll-view"
|
|
311
319
|
}, {
|
|
312
|
-
default:
|
|
320
|
+
default: R(() => [C(q, {
|
|
313
321
|
items: o.items,
|
|
314
322
|
"highlighted-value": G.value,
|
|
315
323
|
onSelect: ce,
|
|
316
|
-
onHighlight: t[1] ||= (e) =>
|
|
324
|
+
onHighlight: t[1] ||= (e) => U.value = W.value.findIndex((t) => t.value === e),
|
|
317
325
|
onSubmenuEnter: de,
|
|
318
326
|
onSubmenuLeave: fe
|
|
319
|
-
},
|
|
327
|
+
}, x({ _: 2 }, [e.$slots.item ? {
|
|
320
328
|
name: "item",
|
|
321
|
-
fn:
|
|
329
|
+
fn: R(({ item: t }) => [M(e.$slots, "item", { item: t })]),
|
|
322
330
|
key: "0"
|
|
323
331
|
} : void 0]), 1032, ["items", "highlighted-value"])]),
|
|
324
332
|
_: 3
|
|
325
|
-
})], 38)) :
|
|
333
|
+
})], 38)) : v("", !0)]),
|
|
326
334
|
_: 3
|
|
327
335
|
}, 8, ["name", "css"])], 8, ["to", "disabled"]))], 16));
|
|
328
336
|
}
|
|
329
337
|
});
|
|
330
338
|
//#endregion
|
|
331
|
-
export {
|
|
339
|
+
export { J as MDropdown };
|
package/dist/dropdown/style.css
CHANGED
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
|
|
406
406
|
:root {
|
|
407
407
|
/* Shared minimum width for menu-like panels (select/orderlist/picklist) */
|
|
408
|
-
--m-menu-min-width: 12rem;
|
|
408
|
+
--m-overlay-menu-min-width: 12rem;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
.m-button,
|
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
.m-progress-spinner,
|
|
464
464
|
.m-cascadeselect,
|
|
465
465
|
.m-treeselect,
|
|
466
|
-
.m-
|
|
466
|
+
.m-colorpicker,
|
|
467
467
|
.m-inputtags,
|
|
468
468
|
.m-label,
|
|
469
469
|
.m-speeddial,
|
|
@@ -489,8 +489,7 @@
|
|
|
489
489
|
.m-password__input:disabled,
|
|
490
490
|
.m-inputnumber__input:disabled,
|
|
491
491
|
.m-inputotp__input:disabled,
|
|
492
|
-
.m-
|
|
493
|
-
.m-inputcolor__swatch:disabled,
|
|
492
|
+
.m-colorpicker__trigger:disabled,
|
|
494
493
|
.m-inputtags--disabled {
|
|
495
494
|
background-color: var(--m-color-bg-disabled);
|
|
496
495
|
color: var(--m-color-text-disabled);
|
|
@@ -513,8 +512,7 @@
|
|
|
513
512
|
.m-textarea::placeholder,
|
|
514
513
|
.m-password__input::placeholder,
|
|
515
514
|
.m-inputnumber__input::placeholder,
|
|
516
|
-
.m-inputtags__input::placeholder
|
|
517
|
-
.m-inputcolor__text::placeholder {
|
|
515
|
+
.m-inputtags__input::placeholder {
|
|
518
516
|
color: var(--m-color-text-muted);
|
|
519
517
|
opacity: 1;
|
|
520
518
|
}
|
|
@@ -858,9 +856,7 @@
|
|
|
858
856
|
font-family: var(--m-font-sans);
|
|
859
857
|
gap: var(--m-space-2);
|
|
860
858
|
max-width: 100%;
|
|
861
|
-
min-width: var(--m-menu-min-width);
|
|
862
859
|
position: relative;
|
|
863
|
-
width: fit-content;
|
|
864
860
|
}
|
|
865
861
|
|
|
866
862
|
.m-textarea-field--fluid,
|
|
@@ -1051,7 +1047,7 @@
|
|
|
1051
1047
|
flex: 1;
|
|
1052
1048
|
max-height: 16rem;
|
|
1053
1049
|
min-height: 12rem;
|
|
1054
|
-
min-width: var(--m-menu-min-width);
|
|
1050
|
+
min-width: var(--m-overlay-menu-min-width);
|
|
1055
1051
|
}
|
|
1056
1052
|
|
|
1057
1053
|
.m-orderlist__list,
|
|
@@ -1119,7 +1115,6 @@
|
|
|
1119
1115
|
.m-cascadeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
|
|
1120
1116
|
.m-treeselect:not(.m-treeselect--open)
|
|
1121
1117
|
.m-treeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
|
|
1122
|
-
.m-inputcolor__text:hover:not(:disabled):not(:focus),
|
|
1123
1118
|
.m-inputtags:hover:not(.m-inputtags--disabled):not(:focus-within),
|
|
1124
1119
|
.m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked):not(:focus-visible),
|
|
1125
1120
|
.m-inplace__display:hover:not(:focus-visible) {
|
|
@@ -1134,8 +1129,6 @@
|
|
|
1134
1129
|
.m-treeselect--open .m-treeselect__trigger,
|
|
1135
1130
|
.m-treeselect__trigger:focus,
|
|
1136
1131
|
.m-treeselect__trigger:focus-visible,
|
|
1137
|
-
.m-inputcolor__text:focus,
|
|
1138
|
-
.m-inputcolor__text:focus-visible,
|
|
1139
1132
|
.m-inputtags:focus-within,
|
|
1140
1133
|
.m-togglebutton:focus-visible,
|
|
1141
1134
|
.m-selectbutton__button:focus-visible,
|
|
@@ -1150,9 +1143,7 @@
|
|
|
1150
1143
|
|
|
1151
1144
|
.m-inputotp--invalid .m-inputotp__input:focus,
|
|
1152
1145
|
.m-inputotp--invalid .m-inputotp__input:focus-visible,
|
|
1153
|
-
.m-inputtags--invalid:focus-within
|
|
1154
|
-
.m-inputcolor--invalid .m-inputcolor__text:focus,
|
|
1155
|
-
.m-inputcolor--invalid .m-inputcolor__text:focus-visible {
|
|
1146
|
+
.m-inputtags--invalid:focus-within {
|
|
1156
1147
|
border-color: var(--m-color-danger);
|
|
1157
1148
|
box-shadow: var(--m-focus-shadow-danger);
|
|
1158
1149
|
}
|
|
@@ -1388,7 +1379,7 @@
|
|
|
1388
1379
|
}
|
|
1389
1380
|
|
|
1390
1381
|
.m-dropdown {
|
|
1391
|
-
--m-dropdown-menu-min-width: var(--m-menu-min-width, 10rem);
|
|
1382
|
+
--m-dropdown-menu-min-width: var(--m-overlay-menu-min-width, 10rem);
|
|
1392
1383
|
display: inline-block;
|
|
1393
1384
|
font-family: var(--m-font-sans);
|
|
1394
1385
|
position: relative;
|
package/dist/empty/style.css
CHANGED
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
|
|
406
406
|
:root {
|
|
407
407
|
/* Shared minimum width for menu-like panels (select/orderlist/picklist) */
|
|
408
|
-
--m-menu-min-width: 12rem;
|
|
408
|
+
--m-overlay-menu-min-width: 12rem;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
.m-button,
|
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
.m-progress-spinner,
|
|
464
464
|
.m-cascadeselect,
|
|
465
465
|
.m-treeselect,
|
|
466
|
-
.m-
|
|
466
|
+
.m-colorpicker,
|
|
467
467
|
.m-inputtags,
|
|
468
468
|
.m-label,
|
|
469
469
|
.m-speeddial,
|
|
@@ -489,8 +489,7 @@
|
|
|
489
489
|
.m-password__input:disabled,
|
|
490
490
|
.m-inputnumber__input:disabled,
|
|
491
491
|
.m-inputotp__input:disabled,
|
|
492
|
-
.m-
|
|
493
|
-
.m-inputcolor__swatch:disabled,
|
|
492
|
+
.m-colorpicker__trigger:disabled,
|
|
494
493
|
.m-inputtags--disabled {
|
|
495
494
|
background-color: var(--m-color-bg-disabled);
|
|
496
495
|
color: var(--m-color-text-disabled);
|
|
@@ -513,8 +512,7 @@
|
|
|
513
512
|
.m-textarea::placeholder,
|
|
514
513
|
.m-password__input::placeholder,
|
|
515
514
|
.m-inputnumber__input::placeholder,
|
|
516
|
-
.m-inputtags__input::placeholder
|
|
517
|
-
.m-inputcolor__text::placeholder {
|
|
515
|
+
.m-inputtags__input::placeholder {
|
|
518
516
|
color: var(--m-color-text-muted);
|
|
519
517
|
opacity: 1;
|
|
520
518
|
}
|
|
@@ -858,9 +856,7 @@
|
|
|
858
856
|
font-family: var(--m-font-sans);
|
|
859
857
|
gap: var(--m-space-2);
|
|
860
858
|
max-width: 100%;
|
|
861
|
-
min-width: var(--m-menu-min-width);
|
|
862
859
|
position: relative;
|
|
863
|
-
width: fit-content;
|
|
864
860
|
}
|
|
865
861
|
|
|
866
862
|
.m-textarea-field--fluid,
|
|
@@ -1051,7 +1047,7 @@
|
|
|
1051
1047
|
flex: 1;
|
|
1052
1048
|
max-height: 16rem;
|
|
1053
1049
|
min-height: 12rem;
|
|
1054
|
-
min-width: var(--m-menu-min-width);
|
|
1050
|
+
min-width: var(--m-overlay-menu-min-width);
|
|
1055
1051
|
}
|
|
1056
1052
|
|
|
1057
1053
|
.m-orderlist__list,
|
|
@@ -1119,7 +1115,6 @@
|
|
|
1119
1115
|
.m-cascadeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
|
|
1120
1116
|
.m-treeselect:not(.m-treeselect--open)
|
|
1121
1117
|
.m-treeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
|
|
1122
|
-
.m-inputcolor__text:hover:not(:disabled):not(:focus),
|
|
1123
1118
|
.m-inputtags:hover:not(.m-inputtags--disabled):not(:focus-within),
|
|
1124
1119
|
.m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked):not(:focus-visible),
|
|
1125
1120
|
.m-inplace__display:hover:not(:focus-visible) {
|
|
@@ -1134,8 +1129,6 @@
|
|
|
1134
1129
|
.m-treeselect--open .m-treeselect__trigger,
|
|
1135
1130
|
.m-treeselect__trigger:focus,
|
|
1136
1131
|
.m-treeselect__trigger:focus-visible,
|
|
1137
|
-
.m-inputcolor__text:focus,
|
|
1138
|
-
.m-inputcolor__text:focus-visible,
|
|
1139
1132
|
.m-inputtags:focus-within,
|
|
1140
1133
|
.m-togglebutton:focus-visible,
|
|
1141
1134
|
.m-selectbutton__button:focus-visible,
|
|
@@ -1150,9 +1143,7 @@
|
|
|
1150
1143
|
|
|
1151
1144
|
.m-inputotp--invalid .m-inputotp__input:focus,
|
|
1152
1145
|
.m-inputotp--invalid .m-inputotp__input:focus-visible,
|
|
1153
|
-
.m-inputtags--invalid:focus-within
|
|
1154
|
-
.m-inputcolor--invalid .m-inputcolor__text:focus,
|
|
1155
|
-
.m-inputcolor--invalid .m-inputcolor__text:focus-visible {
|
|
1146
|
+
.m-inputtags--invalid:focus-within {
|
|
1156
1147
|
border-color: var(--m-color-danger);
|
|
1157
1148
|
box-shadow: var(--m-focus-shadow-danger);
|
|
1158
1149
|
}
|
package/dist/fieldset/style.css
CHANGED
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
|
|
406
406
|
:root {
|
|
407
407
|
/* Shared minimum width for menu-like panels (select/orderlist/picklist) */
|
|
408
|
-
--m-menu-min-width: 12rem;
|
|
408
|
+
--m-overlay-menu-min-width: 12rem;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
.m-button,
|
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
.m-progress-spinner,
|
|
464
464
|
.m-cascadeselect,
|
|
465
465
|
.m-treeselect,
|
|
466
|
-
.m-
|
|
466
|
+
.m-colorpicker,
|
|
467
467
|
.m-inputtags,
|
|
468
468
|
.m-label,
|
|
469
469
|
.m-speeddial,
|
|
@@ -489,8 +489,7 @@
|
|
|
489
489
|
.m-password__input:disabled,
|
|
490
490
|
.m-inputnumber__input:disabled,
|
|
491
491
|
.m-inputotp__input:disabled,
|
|
492
|
-
.m-
|
|
493
|
-
.m-inputcolor__swatch:disabled,
|
|
492
|
+
.m-colorpicker__trigger:disabled,
|
|
494
493
|
.m-inputtags--disabled {
|
|
495
494
|
background-color: var(--m-color-bg-disabled);
|
|
496
495
|
color: var(--m-color-text-disabled);
|
|
@@ -513,8 +512,7 @@
|
|
|
513
512
|
.m-textarea::placeholder,
|
|
514
513
|
.m-password__input::placeholder,
|
|
515
514
|
.m-inputnumber__input::placeholder,
|
|
516
|
-
.m-inputtags__input::placeholder
|
|
517
|
-
.m-inputcolor__text::placeholder {
|
|
515
|
+
.m-inputtags__input::placeholder {
|
|
518
516
|
color: var(--m-color-text-muted);
|
|
519
517
|
opacity: 1;
|
|
520
518
|
}
|
|
@@ -858,9 +856,7 @@
|
|
|
858
856
|
font-family: var(--m-font-sans);
|
|
859
857
|
gap: var(--m-space-2);
|
|
860
858
|
max-width: 100%;
|
|
861
|
-
min-width: var(--m-menu-min-width);
|
|
862
859
|
position: relative;
|
|
863
|
-
width: fit-content;
|
|
864
860
|
}
|
|
865
861
|
|
|
866
862
|
.m-textarea-field--fluid,
|
|
@@ -1051,7 +1047,7 @@
|
|
|
1051
1047
|
flex: 1;
|
|
1052
1048
|
max-height: 16rem;
|
|
1053
1049
|
min-height: 12rem;
|
|
1054
|
-
min-width: var(--m-menu-min-width);
|
|
1050
|
+
min-width: var(--m-overlay-menu-min-width);
|
|
1055
1051
|
}
|
|
1056
1052
|
|
|
1057
1053
|
.m-orderlist__list,
|
|
@@ -1119,7 +1115,6 @@
|
|
|
1119
1115
|
.m-cascadeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
|
|
1120
1116
|
.m-treeselect:not(.m-treeselect--open)
|
|
1121
1117
|
.m-treeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
|
|
1122
|
-
.m-inputcolor__text:hover:not(:disabled):not(:focus),
|
|
1123
1118
|
.m-inputtags:hover:not(.m-inputtags--disabled):not(:focus-within),
|
|
1124
1119
|
.m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked):not(:focus-visible),
|
|
1125
1120
|
.m-inplace__display:hover:not(:focus-visible) {
|
|
@@ -1134,8 +1129,6 @@
|
|
|
1134
1129
|
.m-treeselect--open .m-treeselect__trigger,
|
|
1135
1130
|
.m-treeselect__trigger:focus,
|
|
1136
1131
|
.m-treeselect__trigger:focus-visible,
|
|
1137
|
-
.m-inputcolor__text:focus,
|
|
1138
|
-
.m-inputcolor__text:focus-visible,
|
|
1139
1132
|
.m-inputtags:focus-within,
|
|
1140
1133
|
.m-togglebutton:focus-visible,
|
|
1141
1134
|
.m-selectbutton__button:focus-visible,
|
|
@@ -1150,9 +1143,7 @@
|
|
|
1150
1143
|
|
|
1151
1144
|
.m-inputotp--invalid .m-inputotp__input:focus,
|
|
1152
1145
|
.m-inputotp--invalid .m-inputotp__input:focus-visible,
|
|
1153
|
-
.m-inputtags--invalid:focus-within
|
|
1154
|
-
.m-inputcolor--invalid .m-inputcolor__text:focus,
|
|
1155
|
-
.m-inputcolor--invalid .m-inputcolor__text:focus-visible {
|
|
1146
|
+
.m-inputtags--invalid:focus-within {
|
|
1156
1147
|
border-color: var(--m-color-danger);
|
|
1157
1148
|
box-shadow: var(--m-focus-shadow-danger);
|
|
1158
1149
|
}
|