@volverjs/ui-vue 0.0.10-beta.32 → 0.0.10-beta.34
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/dist/components/VvAccordion/VvAccordion.vue.d.ts +1 -131
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +4 -3
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.es.js +5 -5
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +6 -7
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +2 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.es.js +1 -2
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +3 -3
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +16 -2
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +7 -0
- package/dist/components/VvButtonGroup/index.d.ts +3 -0
- package/dist/components/VvCheckbox/VvCheckbox.es.js +2 -1
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +6 -2
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +12 -9
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +6 -0
- package/dist/components/VvInputText/VvInputText.es.js +12 -4
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvNav/VvNav.es.js +8 -5
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNavItem/VvNavItem.es.js +4 -1
- package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.es.js +3 -3
- package/dist/components/VvProgress/VvProgress.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +4 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvTab/VvTab.es.js +7 -4
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/index.es.js +83 -47
- package/dist/components/index.umd.js +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/stories/Accordion/Accordion.settings.d.ts +2 -57
- package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +2 -66
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +2 -181
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +370 -11
- package/dist/stories/Alert/Alert.settings.d.ts +2 -109
- package/dist/stories/AlertGroup/AlertGroup.settings.d.ts +2 -85
- package/dist/stories/AvatarGroup/AvatarGroup.settings.d.ts +2 -38
- package/dist/stories/Badge/Badge.settings.d.ts +2 -26
- package/dist/stories/Breadcrumb/Breadcrumb.settings.d.ts +2 -18
- package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +1 -1
- package/dist/stories/Button/Button.settings.d.ts +2 -193
- package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +2 -40
- package/dist/stories/Card/Card.settings.d.ts +2 -63
- package/dist/stories/Checkbox/Checkbox.settings.d.ts +2 -132
- package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +1 -141
- package/dist/stories/Combobox/Combobox.settings.d.ts +2 -617
- package/dist/stories/Dialog/Dialog.settings.d.ts +2 -47
- package/dist/stories/Dropdown/Dropdown.settings.d.ts +2 -205
- package/dist/stories/Icon/Icon.settings.d.ts +2 -68
- package/dist/stories/InputFile/InputFile.settings.d.ts +2 -52
- package/dist/stories/InputText/InputText.settings.d.ts +2 -438
- package/dist/stories/Nav/Nav.settings.d.ts +2 -10
- package/dist/stories/Progress/Progress.settings.d.ts +2 -27
- package/dist/stories/Radio/Radio.settings.d.ts +1 -110
- package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +1 -141
- package/dist/stories/Select/Select.settings.d.ts +2 -246
- package/dist/stories/Textarea/Textarea.settings.d.ts +2 -287
- package/dist/stories/argTypes.d.ts +27 -866
- package/package.json +46 -46
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvAlert/index.ts +5 -5
- package/src/components/VvAlertGroup/VvAlertGroup.vue +0 -1
- package/src/components/VvBadge/VvBadge.vue +1 -1
- package/src/components/VvButtonGroup/VvButtonGroup.vue +11 -2
- package/src/components/VvButtonGroup/index.ts +1 -0
- package/src/components/VvCheckbox/VvCheckbox.vue +2 -5
- package/src/components/VvCombobox/VvCombobox.vue +2 -1
- package/src/components/VvInputText/VvInputText.vue +16 -5
- package/src/components/VvNav/VvNav.vue +1 -6
- package/src/components/VvNav/VvNavItem.vue +1 -1
- package/src/components/VvProgress/VvProgress.vue +0 -1
- package/src/composables/alert/useAlert.ts +3 -3
- package/src/stories/Accordion/Accordion.settings.ts +3 -2
- package/src/stories/AccordionGroup/AccordionGroup.settings.ts +4 -3
- package/src/stories/AccordionGroup/AccordionGroup.stories.ts +4 -2
- package/src/stories/AccordionGroup/AccordionGroup.test.ts +2 -6
- package/src/stories/Alert/Alert.settings.ts +8 -7
- package/src/stories/Alert/Alert.test.ts +1 -3
- package/src/stories/AlertGroup/AlertGroup.settings.ts +3 -1
- package/src/stories/AlertGroup/AlertGroup.test.ts +5 -7
- package/src/stories/Avatar/Avatar.test.ts +1 -3
- package/src/stories/Avatar/AvatarModifiers.stories.ts +1 -1
- package/src/stories/AvatarGroup/AvatarGroup.settings.ts +2 -1
- package/src/stories/AvatarGroup/AvatarGroup.test.ts +1 -3
- package/src/stories/Badge/Badge.settings.ts +2 -1
- package/src/stories/Badge/Badge.stories.ts +2 -2
- package/src/stories/Badge/Badge.test.ts +1 -1
- package/src/stories/Breadcrumb/Breadcrumb.settings.ts +2 -1
- package/src/stories/Breadcrumb/Breadcrumb.stories.ts +1 -1
- package/src/stories/Breadcrumb/Breadcrumb.test.ts +1 -1
- package/src/stories/Button/Button.settings.ts +5 -6
- package/src/stories/Button/Button.stories.ts +1 -1
- package/src/stories/Button/Button.test.ts +1 -3
- package/src/stories/ButtonGroup/ButtonGroup.settings.ts +10 -1
- package/src/stories/ButtonGroup/ButtonGroup.stories.ts +1 -1
- package/src/stories/ButtonGroup/ButtonGroup.test.ts +2 -6
- package/src/stories/Card/Card.settings.ts +2 -1
- package/src/stories/Card/Card.test.ts +1 -3
- package/src/stories/Checkbox/Checkbox.settings.ts +4 -3
- package/src/stories/Checkbox/Checkbox.test.ts +2 -6
- package/src/stories/Checkbox/CheckboxBinary.stories.ts +1 -1
- package/src/stories/CheckboxGroup/CheckboxGroup.test.ts +2 -6
- package/src/stories/Combobox/Combobox.settings.ts +10 -10
- package/src/stories/Combobox/Combobox.test.ts +2 -6
- package/src/stories/Dialog/Dialog.settings.ts +2 -1
- package/src/stories/Dialog/Dialog.test.ts +3 -8
- package/src/stories/Dropdown/Dropdown.settings.ts +2 -1
- package/src/stories/Dropdown/Dropdown.test.ts +2 -6
- package/src/stories/Dropdown/DropdownSlots.stories.ts +1 -1
- package/src/stories/Icon/Icon.settings.ts +2 -1
- package/src/stories/Icon/Icon.stories.ts +0 -1
- package/src/stories/InputFile/InputFile.settings.ts +2 -1
- package/src/stories/InputText/InputText.settings.ts +9 -6
- package/src/stories/InputText/InputText.test.ts +2 -6
- package/src/stories/InputText/InputTextMinMax.stories.ts +1 -1
- package/src/stories/Nav/Nav.settings.ts +2 -2
- package/src/stories/Nav/Nav.stories.ts +1 -1
- package/src/stories/Nav/Nav.test.ts +2 -4
- package/src/stories/Progress/Progress.settings.ts +2 -1
- package/src/stories/Radio/Radio.test.ts +2 -6
- package/src/stories/RadioGroup/RadioGroup.stories.ts +1 -2
- package/src/stories/RadioGroup/RadioGroup.test.ts +2 -6
- package/src/stories/RadioGroup/RadioGroupOptions.stories.ts +1 -1
- package/src/stories/Select/Select.settings.ts +4 -3
- package/src/stories/Select/Select.test.ts +3 -9
- package/src/stories/Select/SelectIconPosition.stories.ts +2 -2
- package/src/stories/Select/SelectOptions.stories.ts +0 -1
- package/src/stories/Tab/Tab.test.ts +3 -5
- package/src/stories/Textarea/Textarea.settings.ts +6 -3
- package/src/stories/Textarea/Textarea.test.ts +2 -6
- package/src/stories/Tooltip/Tooltip.settings.ts +0 -1
- package/src/stories/Tooltip/Tooltip.test.ts +3 -5
- package/src/stories/argTypes.ts +48 -46
|
@@ -717,7 +717,7 @@ function useModifiers(prefix, modifiers, others) {
|
|
|
717
717
|
return toReturn;
|
|
718
718
|
});
|
|
719
719
|
}
|
|
720
|
-
const _hoisted_1$
|
|
720
|
+
const _hoisted_1$m = ["id", "open"];
|
|
721
721
|
const _hoisted_2$f = ["aria-controls", "aria-expanded"];
|
|
722
722
|
const _hoisted_3$8 = ["aria-hidden"];
|
|
723
723
|
const __default__$r = {
|
|
@@ -876,7 +876,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
876
876
|
)
|
|
877
877
|
])
|
|
878
878
|
], 8, _hoisted_3$8)
|
|
879
|
-
], 10, _hoisted_1$
|
|
879
|
+
], 10, _hoisted_1$m);
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
882
|
});
|
|
@@ -1170,7 +1170,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1170
1170
|
return openBlock(), createBlock(
|
|
1171
1171
|
_sfc_main$x,
|
|
1172
1172
|
mergeProps({
|
|
1173
|
-
key: item.title
|
|
1173
|
+
key: item.title,
|
|
1174
|
+
ref_for: true
|
|
1174
1175
|
}, {
|
|
1175
1176
|
name: item.name,
|
|
1176
1177
|
title: item.title,
|
|
@@ -1183,14 +1184,14 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1183
1184
|
_ctx.$slots[`summary::${item.name}`] ? {
|
|
1184
1185
|
name: "summary",
|
|
1185
1186
|
fn: withCtx((data) => [
|
|
1186
|
-
renderSlot(_ctx.$slots, `summary::${item.name}`,
|
|
1187
|
+
renderSlot(_ctx.$slots, `summary::${item.name}`, mergeProps({ ref_for: true }, data))
|
|
1187
1188
|
]),
|
|
1188
1189
|
key: "0"
|
|
1189
1190
|
} : void 0,
|
|
1190
1191
|
_ctx.$slots[`content::${item.name}`] ? {
|
|
1191
1192
|
name: "default",
|
|
1192
1193
|
fn: withCtx((data) => [
|
|
1193
|
-
renderSlot(_ctx.$slots, `content::${item.name}`,
|
|
1194
|
+
renderSlot(_ctx.$slots, `content::${item.name}`, mergeProps({ ref_for: true }, data))
|
|
1194
1195
|
]),
|
|
1195
1196
|
key: "1"
|
|
1196
1197
|
} : void 0
|
|
@@ -1644,18 +1645,18 @@ const useVvAlert = (props, emit) => {
|
|
|
1644
1645
|
}
|
|
1645
1646
|
);
|
|
1646
1647
|
const isMouseover = ref(false);
|
|
1647
|
-
const onMouseover =
|
|
1648
|
+
const onMouseover = () => {
|
|
1648
1649
|
isMouseover.value = true;
|
|
1649
1650
|
if (timeout) {
|
|
1650
1651
|
clearTimeout(timeout);
|
|
1651
1652
|
}
|
|
1652
|
-
}
|
|
1653
|
-
const onMouseleave =
|
|
1653
|
+
};
|
|
1654
|
+
const onMouseleave = () => {
|
|
1654
1655
|
isMouseover.value = false;
|
|
1655
1656
|
if (props.autoClose > 0) {
|
|
1656
1657
|
timeout = setTimeout(close, props.autoClose);
|
|
1657
1658
|
}
|
|
1658
|
-
}
|
|
1659
|
+
};
|
|
1659
1660
|
return {
|
|
1660
1661
|
close,
|
|
1661
1662
|
hasIcon,
|
|
@@ -1670,7 +1671,7 @@ const useVvAlert = (props, emit) => {
|
|
|
1670
1671
|
}))
|
|
1671
1672
|
};
|
|
1672
1673
|
};
|
|
1673
|
-
const _hoisted_1$
|
|
1674
|
+
const _hoisted_1$l = {
|
|
1674
1675
|
key: 0,
|
|
1675
1676
|
class: "vv-alert__header"
|
|
1676
1677
|
};
|
|
@@ -1711,7 +1712,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1711
1712
|
"div",
|
|
1712
1713
|
normalizeProps(guardReactiveProps(unref(hasProps))),
|
|
1713
1714
|
[
|
|
1714
|
-
_ctx.$slots.header || _ctx.$slots.title || _ctx.$slots.close || _ctx.$slots["title::before"] || _ctx.$slots["title::after"] || _ctx.title || _ctx.dismissable || _ctx.autoClose ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1715
|
+
_ctx.$slots.header || _ctx.$slots.title || _ctx.$slots.close || _ctx.$slots["title::before"] || _ctx.$slots["title::after"] || _ctx.title || _ctx.dismissable || _ctx.autoClose ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
1715
1716
|
unref(hasIcon) ? (openBlock(), createBlock(
|
|
1716
1717
|
_sfc_main$u,
|
|
1717
1718
|
mergeProps({ key: 0 }, unref(hasIcon), { class: "vv-alert__icon" }),
|
|
@@ -1932,7 +1933,6 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1932
1933
|
renderSlot(_ctx.$slots, "before"),
|
|
1933
1934
|
createVNode(TransitionGroup, mergeProps({
|
|
1934
1935
|
tag: "div",
|
|
1935
|
-
role: "group",
|
|
1936
1936
|
name: unref(hasTransition),
|
|
1937
1937
|
class: "vv-alert-group__list"
|
|
1938
1938
|
}, toHandlers(alertGroupTransitionHandlers)), {
|
|
@@ -1944,7 +1944,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1944
1944
|
renderList(_ctx.items, (item) => {
|
|
1945
1945
|
return openBlock(), createBlock(
|
|
1946
1946
|
_sfc_main$t,
|
|
1947
|
-
mergeProps(item, {
|
|
1947
|
+
mergeProps({ ref_for: true }, item, {
|
|
1948
1948
|
key: item.id
|
|
1949
1949
|
}),
|
|
1950
1950
|
null,
|
|
@@ -1975,7 +1975,7 @@ const VvAvatarProps = {
|
|
|
1975
1975
|
*/
|
|
1976
1976
|
imgSrc: String
|
|
1977
1977
|
};
|
|
1978
|
-
const _hoisted_1$
|
|
1978
|
+
const _hoisted_1$k = ["role", "aria-label"];
|
|
1979
1979
|
const _hoisted_2$d = ["src"];
|
|
1980
1980
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1981
1981
|
__name: "VvAvatar",
|
|
@@ -1997,7 +1997,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1997
1997
|
alt: "avatar"
|
|
1998
1998
|
}, null, 8, _hoisted_2$d)) : createCommentVNode("v-if", true)
|
|
1999
1999
|
])
|
|
2000
|
-
], 10, _hoisted_1$
|
|
2000
|
+
], 10, _hoisted_1$k);
|
|
2001
2001
|
};
|
|
2002
2002
|
}
|
|
2003
2003
|
});
|
|
@@ -2020,7 +2020,7 @@ const VvAvatarGroupProps = {
|
|
|
2020
2020
|
},
|
|
2021
2021
|
avatarModifiers: [String, Array]
|
|
2022
2022
|
};
|
|
2023
|
-
const _hoisted_1$
|
|
2023
|
+
const _hoisted_1$j = { key: 0 };
|
|
2024
2024
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
2025
2025
|
__name: "VvAvatarGroup",
|
|
2026
2026
|
props: VvAvatarGroupProps,
|
|
@@ -2066,7 +2066,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
2066
2066
|
return openBlock(), createBlock(
|
|
2067
2067
|
_sfc_main$r,
|
|
2068
2068
|
mergeProps({
|
|
2069
|
-
key: avatarItem.key
|
|
2069
|
+
key: avatarItem.key,
|
|
2070
|
+
ref_for: true
|
|
2070
2071
|
}, {
|
|
2071
2072
|
modifiers: avatarItem.modifiers,
|
|
2072
2073
|
imgSrc: avatarItem.imgSrc
|
|
@@ -2075,7 +2076,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
2075
2076
|
default: withCtx(() => [
|
|
2076
2077
|
avatarItem.text ? (openBlock(), createElementBlock(
|
|
2077
2078
|
"span",
|
|
2078
|
-
_hoisted_1$
|
|
2079
|
+
_hoisted_1$j,
|
|
2079
2080
|
toDisplayString(avatarItem.text),
|
|
2080
2081
|
1
|
|
2081
2082
|
/* TEXT */
|
|
@@ -2131,8 +2132,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
2131
2132
|
return openBlock(), createElementBlock(
|
|
2132
2133
|
"span",
|
|
2133
2134
|
{
|
|
2134
|
-
class: normalizeClass(unref(bemCssClasses))
|
|
2135
|
-
role: "status"
|
|
2135
|
+
class: normalizeClass(unref(bemCssClasses))
|
|
2136
2136
|
},
|
|
2137
2137
|
[
|
|
2138
2138
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
@@ -2153,7 +2153,7 @@ const VvBreadcrumbProps = {
|
|
|
2153
2153
|
...ModifiersProps,
|
|
2154
2154
|
routes: Array
|
|
2155
2155
|
};
|
|
2156
|
-
const _hoisted_1$
|
|
2156
|
+
const _hoisted_1$i = { class: "vv-breadcrumb__list" };
|
|
2157
2157
|
const _hoisted_2$c = ["content"];
|
|
2158
2158
|
const __default__$k = {
|
|
2159
2159
|
name: "VvBreadcrumb"
|
|
@@ -2178,7 +2178,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
2178
2178
|
"aria-label": "breadcrumbs"
|
|
2179
2179
|
},
|
|
2180
2180
|
[
|
|
2181
|
-
createElementVNode("ol", _hoisted_1$
|
|
2181
|
+
createElementVNode("ol", _hoisted_1$i, [
|
|
2182
2182
|
(openBlock(true), createElementBlock(
|
|
2183
2183
|
Fragment,
|
|
2184
2184
|
null,
|
|
@@ -2195,14 +2195,14 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
2195
2195
|
itemscope: ""
|
|
2196
2196
|
},
|
|
2197
2197
|
[
|
|
2198
|
-
createVNode(_sfc_main$v, mergeProps(route, {
|
|
2198
|
+
createVNode(_sfc_main$v, mergeProps({ ref_for: true }, route, {
|
|
2199
2199
|
class: !isLast(index) ? "vv-breadcrumb__link" : "vv-breadcrumb__label",
|
|
2200
2200
|
"aria-current": isLast(index) ? "page" : void 0,
|
|
2201
2201
|
itemprop: "item",
|
|
2202
2202
|
"default-tag": "span"
|
|
2203
2203
|
}), {
|
|
2204
2204
|
default: withCtx(() => [
|
|
2205
|
-
renderSlot(_ctx.$slots, "label",
|
|
2205
|
+
renderSlot(_ctx.$slots, "label", mergeProps({ ref_for: true }, { route, index }), () => [
|
|
2206
2206
|
createTextVNode(
|
|
2207
2207
|
toDisplayString(label),
|
|
2208
2208
|
1
|
|
@@ -2433,7 +2433,7 @@ function removeFromList(value, list) {
|
|
|
2433
2433
|
function isString(value) {
|
|
2434
2434
|
return typeof value === "string" || value instanceof String;
|
|
2435
2435
|
}
|
|
2436
|
-
const _hoisted_1$
|
|
2436
|
+
const _hoisted_1$h = {
|
|
2437
2437
|
key: 1,
|
|
2438
2438
|
class: "vv-button__label"
|
|
2439
2439
|
};
|
|
@@ -2559,7 +2559,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2559
2559
|
}, null, 8, ["name"])) : createCommentVNode("v-if", true),
|
|
2560
2560
|
_ctx.loadingLabel ? (openBlock(), createElementBlock(
|
|
2561
2561
|
"span",
|
|
2562
|
-
_hoisted_1$
|
|
2562
|
+
_hoisted_1$h,
|
|
2563
2563
|
toDisplayString(_ctx.loadingLabel),
|
|
2564
2564
|
1
|
|
2565
2565
|
/* TEXT */
|
|
@@ -2602,6 +2602,7 @@ const VvButtonGroupProps = {
|
|
|
2602
2602
|
...ModifiersProps,
|
|
2603
2603
|
...DisabledProps,
|
|
2604
2604
|
...UnselectableProps,
|
|
2605
|
+
legendLabel: { type: String },
|
|
2605
2606
|
/**
|
|
2606
2607
|
* String or String[] of css classes (modifiers) that will be provided to each button'
|
|
2607
2608
|
*/
|
|
@@ -2617,6 +2618,10 @@ const VvButtonGroupProps = {
|
|
|
2617
2618
|
}
|
|
2618
2619
|
};
|
|
2619
2620
|
const VvButtonGroupEvents = ["update:modelValue"];
|
|
2621
|
+
const _hoisted_1$g = {
|
|
2622
|
+
key: 0,
|
|
2623
|
+
class: "vv-button-group__legend"
|
|
2624
|
+
};
|
|
2620
2625
|
const __default__$i = {
|
|
2621
2626
|
name: "VvButtonGroup"
|
|
2622
2627
|
};
|
|
@@ -2667,12 +2672,21 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2667
2672
|
const bemCssClasses = useModifiers("vv-button-group", modifiers);
|
|
2668
2673
|
return (_ctx, _cache) => {
|
|
2669
2674
|
return openBlock(), createElementBlock(
|
|
2670
|
-
"
|
|
2675
|
+
"fieldset",
|
|
2671
2676
|
{
|
|
2672
2677
|
class: normalizeClass(unref(bemCssClasses)),
|
|
2673
2678
|
role: "group"
|
|
2674
2679
|
},
|
|
2675
2680
|
[
|
|
2681
|
+
_ctx.$slots.legend || _ctx.legendLabel ? (openBlock(), createElementBlock("legend", _hoisted_1$g, [
|
|
2682
|
+
renderSlot(_ctx.$slots, "legend", {}, () => [
|
|
2683
|
+
createTextVNode(
|
|
2684
|
+
toDisplayString(_ctx.legendLabel),
|
|
2685
|
+
1
|
|
2686
|
+
/* TEXT */
|
|
2687
|
+
)
|
|
2688
|
+
])
|
|
2689
|
+
])) : createCommentVNode("v-if", true),
|
|
2676
2690
|
renderSlot(_ctx.$slots, "default")
|
|
2677
2691
|
],
|
|
2678
2692
|
2
|
|
@@ -3027,8 +3041,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
3027
3041
|
if (isBinary.value) {
|
|
3028
3042
|
modelValue.value = newValue ? props.value : props.uncheckedValue;
|
|
3029
3043
|
} else if (Array.isArray(modelValue.value) || isInGroup.value) {
|
|
3044
|
+
const currentValue = modelValue.value ?? [];
|
|
3030
3045
|
const toReturn = new Set(
|
|
3031
|
-
Array.isArray(
|
|
3046
|
+
Array.isArray(currentValue) ? currentValue : [currentValue]
|
|
3032
3047
|
);
|
|
3033
3048
|
if (newValue) {
|
|
3034
3049
|
toReturn.add(props.value);
|
|
@@ -3252,7 +3267,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
3252
3267
|
renderList(_ctx.options, (option, index) => {
|
|
3253
3268
|
return openBlock(), createBlock(
|
|
3254
3269
|
_sfc_main$k,
|
|
3255
|
-
mergeProps({
|
|
3270
|
+
mergeProps({
|
|
3271
|
+
key: index,
|
|
3272
|
+
ref_for: true
|
|
3273
|
+
}, getOptionProps(option, index)),
|
|
3256
3274
|
null,
|
|
3257
3275
|
16
|
|
3258
3276
|
/* FULL_PROPS */
|
|
@@ -4447,7 +4465,7 @@ const _hoisted_4$3 = {
|
|
|
4447
4465
|
class: "vv-select__input-before"
|
|
4448
4466
|
};
|
|
4449
4467
|
const _hoisted_5$3 = { class: "vv-select__inner" };
|
|
4450
|
-
const _hoisted_6$3 = ["aria-expanded", "aria-labelledby", "aria-describedby", "aria-errormessage", "tabindex"];
|
|
4468
|
+
const _hoisted_6$3 = ["aria-controls", "aria-expanded", "aria-labelledby", "aria-describedby", "aria-errormessage", "tabindex"];
|
|
4451
4469
|
const _hoisted_7$3 = {
|
|
4452
4470
|
key: 0,
|
|
4453
4471
|
class: "vv-select__value"
|
|
@@ -4785,6 +4803,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
4785
4803
|
}, aria, {
|
|
4786
4804
|
class: "vv-select__input",
|
|
4787
4805
|
role: "combobox",
|
|
4806
|
+
"aria-controls": unref(hasDropdownId),
|
|
4788
4807
|
"aria-expanded": unref(expanded),
|
|
4789
4808
|
"aria-labelledby": unref(hasLabelId),
|
|
4790
4809
|
"aria-describedby": unref(hasHintLabelOrSlot) ? unref(hasHintId) : void 0,
|
|
@@ -4888,7 +4907,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
4888
4907
|
renderList(unref(getOptionGrouped)(
|
|
4889
4908
|
option
|
|
4890
4909
|
), (item, i) => {
|
|
4891
|
-
return openBlock(), createBlock(_sfc_main$g, mergeProps({
|
|
4910
|
+
return openBlock(), createBlock(_sfc_main$g, mergeProps({ ref_for: true }, {
|
|
4892
4911
|
selected: isOptionSelected(item),
|
|
4893
4912
|
disabled: unref(isOptionDisabled)(item),
|
|
4894
4913
|
unselectable: _ctx.unselectable,
|
|
@@ -4902,12 +4921,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
4902
4921
|
onClickPassive: ($event) => onInput(item)
|
|
4903
4922
|
}), {
|
|
4904
4923
|
default: withCtx(() => [
|
|
4905
|
-
renderSlot(_ctx.$slots, "option",
|
|
4924
|
+
renderSlot(_ctx.$slots, "option", mergeProps({ ref_for: true }, {
|
|
4906
4925
|
option,
|
|
4907
4926
|
selectedOptions: unref(selectedOptions),
|
|
4908
4927
|
selected: isOptionSelected(item),
|
|
4909
4928
|
disabled: unref(isOptionDisabled)(item)
|
|
4910
|
-
})
|
|
4929
|
+
}), () => [
|
|
4911
4930
|
createTextVNode(
|
|
4912
4931
|
toDisplayString(unref(getOptionLabel)(item)),
|
|
4913
4932
|
1
|
|
@@ -4925,7 +4944,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
4925
4944
|
],
|
|
4926
4945
|
64
|
|
4927
4946
|
/* STABLE_FRAGMENT */
|
|
4928
|
-
)) : (openBlock(), createBlock(_sfc_main$g, mergeProps({
|
|
4947
|
+
)) : (openBlock(), createBlock(_sfc_main$g, mergeProps({
|
|
4948
|
+
key: 1,
|
|
4949
|
+
ref_for: true
|
|
4950
|
+
}, {
|
|
4929
4951
|
selected: isOptionSelected(option),
|
|
4930
4952
|
disabled: unref(isOptionDisabled)(option),
|
|
4931
4953
|
unselectable: _ctx.unselectable,
|
|
@@ -4938,12 +4960,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
4938
4960
|
onClickPassive: ($event) => onInput(option)
|
|
4939
4961
|
}), {
|
|
4940
4962
|
default: withCtx(() => [
|
|
4941
|
-
renderSlot(_ctx.$slots, "option",
|
|
4963
|
+
renderSlot(_ctx.$slots, "option", mergeProps({ ref_for: true }, {
|
|
4942
4964
|
option,
|
|
4943
4965
|
selectedOptions: unref(selectedOptions),
|
|
4944
4966
|
selected: isOptionSelected(option),
|
|
4945
4967
|
disabled: unref(isOptionDisabled)(option)
|
|
4946
|
-
})
|
|
4968
|
+
}), () => [
|
|
4947
4969
|
createTextVNode(
|
|
4948
4970
|
toDisplayString(unref(getOptionLabel)(option)),
|
|
4949
4971
|
1
|
|
@@ -5895,6 +5917,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5895
5917
|
emit,
|
|
5896
5918
|
(debounce == null ? void 0 : debounce.value) ?? 0
|
|
5897
5919
|
);
|
|
5920
|
+
const NEGATIVE_ZERO_REGEX = /^-0?[.,]?[0*]?$/;
|
|
5898
5921
|
const maskReady = ref(false);
|
|
5899
5922
|
const { el, mask, typed, masked, unmasked } = useIMask(
|
|
5900
5923
|
computed(
|
|
@@ -5910,13 +5933,17 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5910
5933
|
}
|
|
5911
5934
|
emit("update:masked", masked.value);
|
|
5912
5935
|
if (type.value === INPUT_TYPES.NUMBER) {
|
|
5913
|
-
if (
|
|
5936
|
+
if (/^-$|^$/.test(unmasked.value)) {
|
|
5914
5937
|
if (localModelValue.value === null || localModelValue.value === void 0) {
|
|
5915
5938
|
return;
|
|
5916
5939
|
}
|
|
5917
5940
|
localModelValue.value = void 0;
|
|
5918
5941
|
return;
|
|
5919
5942
|
}
|
|
5943
|
+
if (NEGATIVE_ZERO_REGEX.test(unmasked.value)) {
|
|
5944
|
+
localModelValue.value = 0;
|
|
5945
|
+
return;
|
|
5946
|
+
}
|
|
5920
5947
|
if (typeof typed.value !== "number") {
|
|
5921
5948
|
localModelValue.value = Number(typed.value);
|
|
5922
5949
|
return;
|
|
@@ -5971,7 +5998,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5971
5998
|
);
|
|
5972
5999
|
const updateMaskValue = (newValue) => {
|
|
5973
6000
|
var _a;
|
|
5974
|
-
if (iMask) {
|
|
6001
|
+
if (iMask == null ? void 0 : iMask.value) {
|
|
5975
6002
|
if (newValue === void 0) {
|
|
5976
6003
|
typed.value = "";
|
|
5977
6004
|
unmasked.value = "";
|
|
@@ -5981,6 +6008,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5981
6008
|
typed.value = new Date(newValue);
|
|
5982
6009
|
return;
|
|
5983
6010
|
}
|
|
6011
|
+
if (type.value === INPUT_TYPES.NUMBER && NEGATIVE_ZERO_REGEX.test(unmasked.value) && newValue === 0) {
|
|
6012
|
+
return;
|
|
6013
|
+
}
|
|
5984
6014
|
typed.value = newValue;
|
|
5985
6015
|
unmasked.value = `${typed.value}`;
|
|
5986
6016
|
}
|
|
@@ -6411,7 +6441,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
6411
6441
|
}, {
|
|
6412
6442
|
default: withCtx(() => [
|
|
6413
6443
|
createElementVNode("div", _hoisted_7$2, [
|
|
6414
|
-
renderSlot(_ctx.$slots, "suggestion",
|
|
6444
|
+
renderSlot(_ctx.$slots, "suggestion", mergeProps({ ref_for: true }, { value }), () => [
|
|
6415
6445
|
createTextVNode(
|
|
6416
6446
|
toDisplayString(value),
|
|
6417
6447
|
1
|
|
@@ -6429,7 +6459,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
6429
6459
|
}, [
|
|
6430
6460
|
createVNode(
|
|
6431
6461
|
_sfc_main$u,
|
|
6432
|
-
|
|
6462
|
+
mergeProps({ ref_for: true }, unref(hasIconRemoveSuggestion)),
|
|
6433
6463
|
null,
|
|
6434
6464
|
16
|
|
6435
6465
|
/* FULL_PROPS */
|
|
@@ -6474,7 +6504,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
6474
6504
|
return openBlock(), createElementBlock("li", _hoisted_1$5, [
|
|
6475
6505
|
createVNode(
|
|
6476
6506
|
_sfc_main$v,
|
|
6477
|
-
mergeProps(_ctx.$attrs, {
|
|
6507
|
+
mergeProps(_ctx.$attrs, {
|
|
6508
|
+
class: "vv-nav__item-label",
|
|
6509
|
+
role: "menuitem"
|
|
6510
|
+
}),
|
|
6478
6511
|
{
|
|
6479
6512
|
default: withCtx(() => [
|
|
6480
6513
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -6520,7 +6553,6 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
6520
6553
|
createElementVNode("ul", {
|
|
6521
6554
|
class: "vv-nav__menu",
|
|
6522
6555
|
role: "menu",
|
|
6523
|
-
"aria-busy": "true",
|
|
6524
6556
|
onClick: withModifiers(onClick, ["stop"])
|
|
6525
6557
|
}, [
|
|
6526
6558
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
@@ -6530,10 +6562,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
6530
6562
|
renderList(_ctx.items, ({ on = {}, data, ...item }, index) => {
|
|
6531
6563
|
return openBlock(), createBlock(_sfc_main$9, mergeProps({
|
|
6532
6564
|
key: index,
|
|
6533
|
-
"data-index": index
|
|
6565
|
+
"data-index": index,
|
|
6566
|
+
ref_for: true
|
|
6534
6567
|
}, item, toHandlers(on)), {
|
|
6535
6568
|
default: withCtx(() => [
|
|
6536
|
-
renderSlot(_ctx.$slots, "item",
|
|
6569
|
+
renderSlot(_ctx.$slots, "item", mergeProps({ ref_for: true }, { item, data, index }))
|
|
6537
6570
|
]),
|
|
6538
6571
|
_: 2
|
|
6539
6572
|
/* DYNAMIC */
|
|
@@ -6620,12 +6653,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
6620
6653
|
return (_ctx, _cache) => {
|
|
6621
6654
|
return openBlock(), createElementBlock(
|
|
6622
6655
|
"progress",
|
|
6623
|
-
|
|
6656
|
+
normalizeProps(guardReactiveProps({
|
|
6624
6657
|
class: unref(bemCssClasses),
|
|
6625
6658
|
ariaLabel: unref(ariaLabel),
|
|
6626
6659
|
max: unref(max),
|
|
6627
6660
|
value: unref(value)
|
|
6628
|
-
}),
|
|
6661
|
+
})),
|
|
6629
6662
|
null,
|
|
6630
6663
|
16
|
|
6631
6664
|
/* FULL_PROPS */
|
|
@@ -6866,7 +6899,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
6866
6899
|
renderList(_ctx.options, (option, index) => {
|
|
6867
6900
|
return openBlock(), createBlock(
|
|
6868
6901
|
_sfc_main$5,
|
|
6869
|
-
mergeProps({
|
|
6902
|
+
mergeProps({
|
|
6903
|
+
key: index,
|
|
6904
|
+
ref_for: true
|
|
6905
|
+
}, getOptionProps(option, index)),
|
|
6870
6906
|
null,
|
|
6871
6907
|
16
|
|
6872
6908
|
/* FULL_PROPS */
|