@bridge-ui/vue 0.0.6 → 0.0.7
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/Actions/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Actions/Snackbar/BridgeSnackbarHost.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Actions/Snackbar/createBridgeSnackbarApi.js +17 -17
- package/dist/Adapters/I18n/index.d.ts +1 -1
- package/dist/Adapters/I18n/index.js +2 -2
- package/dist/Adapters/I18n/useI18nAdapter.d.ts +7 -3
- package/dist/Adapters/I18n/useI18nAdapter.js +12 -7
- package/dist/Adapters/Icon/useIconAdapter.d.ts +1 -1
- package/dist/Adapters/index.d.ts +1 -1
- package/dist/Adapters/index.js +3 -3
- package/dist/Components/Alert/composables/useAlert.js +17 -17
- package/dist/Components/Autocomplete/Autocomplete.js +5 -0
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +40 -0
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +197 -0
- package/dist/Components/Autocomplete/AutocompleteOption.js +5 -0
- package/dist/Components/Autocomplete/AutocompleteOption.vue.d.ts +4 -0
- package/dist/Components/Autocomplete/AutocompleteOption.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/Components/Autocomplete/autocomplete.types.d.ts +285 -0
- package/dist/Components/Autocomplete/autocompleteInjectionKey.d.ts +7 -0
- package/dist/Components/Autocomplete/autocompleteInjectionKey.js +4 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +762 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +382 -0
- package/dist/Components/Autocomplete/index.d.ts +4 -0
- package/dist/Components/Autocomplete/index.js +4 -0
- package/dist/Components/Avatar/composables/useAvatar.js +13 -13
- package/dist/Components/Badge/composables/useBadge.js +8 -8
- package/dist/Components/Button/composables/useButton.js +14 -14
- package/dist/Components/Card/composables/useCard.js +27 -27
- package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Checkbox/composables/useCheckbox.d.ts +3 -3
- package/dist/Components/Checkbox/composables/useCheckbox.js +9 -9
- package/dist/Components/Chip/composables/useChip.js +6 -6
- package/dist/Components/Divider/composables/useDivider.js +5 -5
- package/dist/Components/Drawer/composables/useDrawer.js +23 -23
- package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/FormControl/composables/useFormControl.d.ts +3 -3
- package/dist/Components/FormControl/composables/useFormControl.js +12 -12
- package/dist/Components/FormControl/formControl.types.d.ts +6 -6
- package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/composables/useFormField.d.ts +3 -3
- package/dist/Components/FormField/composables/useFormField.js +28 -28
- package/dist/Components/FormField/formField.types.d.ts +14 -14
- package/dist/Components/Icon/composables/useIcon.js +5 -5
- package/dist/Components/Label/composables/useLabel.js +5 -5
- package/dist/Components/Link/composables/useLink.js +9 -9
- package/dist/Components/List/composables/useList.js +6 -6
- package/dist/Components/ListItem/composables/useListItem.js +20 -20
- package/dist/Components/ListSection/composables/useListSection.js +8 -8
- package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +28 -28
- package/dist/Components/Listbox/composables/useListbox.js +7 -7
- package/dist/Components/Listbox/index.js +3 -3
- package/dist/Components/Menu/composables/useMenu.js +43 -43
- package/dist/Components/Modal/composables/useModal.js +18 -18
- package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +34 -34
- package/dist/Components/NumberField/composables/useNumberField.d.ts +4 -4
- package/dist/Components/NumberField/composables/useNumberField.js +9 -9
- package/dist/Components/OtpField/OtpField.js +5 -0
- package/dist/Components/OtpField/OtpField.vue.d.ts +31 -0
- package/dist/Components/OtpField/OtpField.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/Components/OtpField/OtpFieldLabel.js +5 -0
- package/dist/Components/OtpField/OtpFieldLabel.vue.d.ts +7 -0
- package/dist/Components/OtpField/OtpFieldLabel.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/Components/OtpField/composables/useOtpField.d.ts +460 -0
- package/dist/Components/OtpField/composables/useOtpField.js +212 -0
- package/dist/Components/OtpField/index.d.ts +4 -0
- package/dist/Components/OtpField/index.js +3 -0
- package/dist/Components/OtpField/otpField.types.d.ts +290 -0
- package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +23 -23
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +4 -4
- package/dist/Components/PasswordField/composables/usePasswordField.js +2 -2
- package/dist/Components/Progress/composables/useProgress.js +11 -11
- package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Radio/composables/useRadio.d.ts +3 -3
- package/dist/Components/Radio/composables/useRadio.js +9 -9
- package/dist/Components/Select/Select.vue.d.ts +1 -1
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +16 -13
- package/dist/Components/Select/composables/useSelect.d.ts +4 -4
- package/dist/Components/Select/composables/useSelect.js +161 -161
- package/dist/Components/Skeleton/composables/useSkeleton.js +5 -5
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +54 -54
- package/dist/Components/Snackbar/composables/useSnackbar.js +115 -115
- package/dist/Components/Spinner/composables/useSpinner.js +11 -11
- package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Switch/composables/useSwitch.d.ts +3 -3
- package/dist/Components/Switch/composables/useSwitch.js +9 -9
- package/dist/Components/Tab/composables/useTab.js +11 -11
- package/dist/Components/TabList/composables/useTabList.js +7 -7
- package/dist/Components/TabPanel/composables/useTabPanel.js +7 -7
- package/dist/Components/Tabs/composables/useTabs.js +22 -22
- package/dist/Components/TextField/TextField.vue.d.ts +1 -1
- package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/TextField/composables/useTextField.d.ts +4 -4
- package/dist/Components/TextField/composables/useTextField.js +1 -1
- package/dist/Components/Textarea/Textarea.vue.d.ts +1 -1
- package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/Textarea/composables/useTextarea.d.ts +4 -4
- package/dist/Components/Textarea/composables/useTextarea.js +9 -9
- package/dist/Components/Tooltip/composables/useTooltip.js +17 -17
- package/dist/Provider/bridgeUITypes.d.ts +4 -1
- package/dist/Provider/createBridgeUIApi.js +13 -1
- package/dist/Utils/index.js +7 -7
- package/dist/Utils/useBreakpoint.js +7 -7
- package/dist/augments.d.ts +2 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +84 -80
- package/package.json +3 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useResolveMessage as e } from "../../Adapters/I18n/useI18nAdapter.js";
|
|
2
2
|
import { hasNamedSlot as t, resolveNamedSlot as n } from "../../Utils/slotOrProp.js";
|
|
3
3
|
import { mergeNestedComponentProps as r } from "../../Utils/index.js";
|
|
4
|
-
import ee from "
|
|
5
|
-
import
|
|
4
|
+
import { useListbox as ee } from "./composables/useListbox.js";
|
|
5
|
+
import te from "../List/List.js";
|
|
6
6
|
import { LISTBOX_INJECTION_KEY as i } from "./listboxInjectionKey.js";
|
|
7
7
|
import a from "../ListItem/ListItem.js";
|
|
8
8
|
import o from "../ListSection/ListSection.js";
|
|
9
9
|
import s from "../Menu/Menu.js";
|
|
10
10
|
import ne from "../Progress/Progress.js";
|
|
11
11
|
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createVNode as h, defineComponent as g, guardReactiveProps as _, mergeModels as v, mergeProps as y, normalizeProps as b, openBlock as x, provide as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as E, toDisplayString as D, unref as O, useModel as re, useSlots as ie, watch as k, withCtx as A } from "vue";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { cn as ae, entriesFromListboxOptions as oe, flattenListboxOptions as j, mapListboxEntriesToRows as M } from "@bridge-ui/core";
|
|
13
|
+
import { isNil as N } from "es-toolkit/compat";
|
|
14
14
|
//#region src/Components/Listbox/Listbox.vue?vue&type=script&setup=true&lang.ts
|
|
15
15
|
var P = { key: 1 }, F = /* @__PURE__ */ g({
|
|
16
16
|
__name: "Listbox",
|
|
@@ -70,61 +70,61 @@ var P = { key: 1 }, F = /* @__PURE__ */ g({
|
|
|
70
70
|
k(L, (e) => {
|
|
71
71
|
I("show-change", e);
|
|
72
72
|
});
|
|
73
|
-
let R = g, z = e(), B = l(() => R.emptyMessage ??
|
|
73
|
+
let R = g, z = e(), B = l(() => R.emptyMessage ?? z("No options")), V = l(() => R.loadingMessage ?? z("Loading...")), { merged: H, checkClass: U, scrollBind: W, messageBind: G, sizeClasses: K, mergedClasses: q, optionSelectedClass: se, optionHighlightedClass: ce } = ee(R, {
|
|
74
74
|
size: "md",
|
|
75
75
|
color: "primary"
|
|
76
|
-
}),
|
|
76
|
+
}), le = l(() => R.options ?? []), J = l(() => R.entries ? R.entries : oe(le.value)), Y = l(() => j(J.value)), X = l(() => t(F, "default")), Z = l(() => !R.loading && !X.value && Y.value.length === 0 && R.hideEmptyMessage !== !0), ue = l(() => ae(U.value, q.value.check)), Q = C([]);
|
|
77
77
|
function $(e) {
|
|
78
78
|
return R.isSelected?.(e) ?? !1;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function de(e) {
|
|
81
81
|
e.disabled || I("select", e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function fe(e) {
|
|
84
84
|
return Q.value.some((t) => String(t.value) === String(e.value)) || (Q.value = [...Q.value, e]), () => {
|
|
85
85
|
Q.value = Q.value.filter((t) => String(t.value) !== String(e.value));
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function pe(e) {
|
|
89
89
|
return (X.value ? Q.value : Y.value).findIndex((t) => String(t.value) === String(e));
|
|
90
90
|
}
|
|
91
91
|
k(Q, (e) => {
|
|
92
92
|
X.value && I("registered-options-change", e);
|
|
93
93
|
}, { deep: !0 }), S(i, l(() => ({
|
|
94
|
-
getOptionIndex:
|
|
95
|
-
registerOption:
|
|
96
|
-
onSelect:
|
|
94
|
+
getOptionIndex: pe,
|
|
95
|
+
registerOption: fe,
|
|
96
|
+
onSelect: de,
|
|
97
97
|
listboxId: R.listboxId,
|
|
98
98
|
isSelected: $,
|
|
99
99
|
sizeClasses: K.value,
|
|
100
100
|
showCheckmark: R.showCheckmark,
|
|
101
|
-
checkClass:
|
|
101
|
+
checkClass: ue.value,
|
|
102
102
|
highlightedIndex: R.highlightedIndex,
|
|
103
|
-
optionSelectedClass:
|
|
104
|
-
optionHighlightedClass:
|
|
103
|
+
optionSelectedClass: se.value,
|
|
104
|
+
optionHighlightedClass: ce.value,
|
|
105
105
|
mergedClasses: {
|
|
106
106
|
optionSelected: q.value.optionSelected,
|
|
107
107
|
optionHighlighted: q.value.optionHighlighted
|
|
108
108
|
}
|
|
109
109
|
})));
|
|
110
|
-
let
|
|
111
|
-
...
|
|
112
|
-
...
|
|
113
|
-
})),
|
|
110
|
+
let me = l(() => M(J.value, $)), he = l(() => H.value.customProps?.menu), ge = l(() => H.value.customProps?.list), _e = l(() => H.value.customProps?.listItem), ve = l(() => H.value.customProps?.progress), ye = l(() => H.value.customProps?.listSection), be = l(() => ({
|
|
111
|
+
...N(R.rounded) ? {} : { rounded: R.rounded },
|
|
112
|
+
...he.value
|
|
113
|
+
})), xe = l(() => ({
|
|
114
114
|
size: "xs",
|
|
115
115
|
"aria-hidden": !0,
|
|
116
116
|
color: H.value.color,
|
|
117
|
-
...r(
|
|
117
|
+
...r(ve.value, {
|
|
118
118
|
class: "shrink-0",
|
|
119
119
|
classes: { bar: q.value.loading }
|
|
120
120
|
})
|
|
121
|
-
})),
|
|
121
|
+
})), Se = l(() => ({
|
|
122
122
|
dense: !0,
|
|
123
123
|
role: "listbox",
|
|
124
124
|
id: R.listboxId,
|
|
125
125
|
"aria-labelledby": R.labelledBy,
|
|
126
126
|
"aria-multiselectable": R.multiple || void 0,
|
|
127
|
-
...r(
|
|
127
|
+
...r(ge.value, { class: "p-0" })
|
|
128
128
|
}));
|
|
129
129
|
return (e, r) => (x(), u(O(s), y({
|
|
130
130
|
modelValue: L.value,
|
|
@@ -133,22 +133,22 @@ var P = { key: 1 }, F = /* @__PURE__ */ g({
|
|
|
133
133
|
placement: g.placement,
|
|
134
134
|
"close-on-click-away": !0,
|
|
135
135
|
"disable-auto-focus": g.disableAutoFocus
|
|
136
|
-
},
|
|
136
|
+
}, be.value), {
|
|
137
137
|
default: A(() => [
|
|
138
138
|
O(t)(O(F), "beforeOptions") ? (x(), u(E(O(n)(O(F), "beforeOptions")), { key: 0 })) : d("", !0),
|
|
139
|
-
g.loading ? (x(), f(c, { key: 1 }, [h(O(ne), b(_(
|
|
140
|
-
default: A(() => [X.value ? T(e.$slots, "default", { key: 0 }) : (x(!0), f(c, { key: 1 }, w(
|
|
139
|
+
g.loading ? (x(), f(c, { key: 1 }, [h(O(ne), b(_(xe.value)), null, 16), p("div", b(_(O(G))), [O(t)(O(F), "loading") ? (x(), u(E(O(n)(O(F), "loading")), { key: 0 })) : (x(), f("span", P, D(V.value), 1))], 16)], 64)) : (x(), f("div", b(y({ key: 2 }, O(W))), [h(O(te), b(_(Se.value)), {
|
|
140
|
+
default: A(() => [X.value ? T(e.$slots, "default", { key: 0 }) : (x(!0), f(c, { key: 1 }, w(me.value, (n) => (x(), f(c, { key: n.key }, [n.kind === "section" ? (x(), u(O(o), y({
|
|
141
141
|
key: 0,
|
|
142
142
|
title: n.title,
|
|
143
143
|
sticky: n.sticky
|
|
144
|
-
}, { ref_for: !0 },
|
|
144
|
+
}, { ref_for: !0 }, ye.value), null, 16, ["title", "sticky"])) : (x(), u(O(a), y({
|
|
145
145
|
key: 1,
|
|
146
146
|
interactive: "",
|
|
147
147
|
value: n.option.value,
|
|
148
148
|
disabled: n.option.disabled,
|
|
149
149
|
secondary: n.option.description,
|
|
150
150
|
primary: O(t)(O(F), "option") ? void 0 : n.option.label
|
|
151
|
-
}, { ref_for: !0 },
|
|
151
|
+
}, { ref_for: !0 }, _e.value), m({ _: 2 }, [O(t)(O(F), "option") ? {
|
|
152
152
|
name: "default",
|
|
153
153
|
fn: A(() => [T(e.$slots, "option", {
|
|
154
154
|
option: n.option,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
|
|
2
2
|
import { computed as r, useAttrs as i } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { cn as a, mergeBridgeUILayeredClasses as o, splitComponentProps as s } from "@bridge-ui/core";
|
|
4
|
+
import { get as c } from "es-toolkit/compat";
|
|
5
5
|
import { colorProps as l, invalidatedProps as u, sizeProps as d } from "@bridge-ui/core/Tokens/Listbox";
|
|
6
6
|
//#region src/Components/Listbox/composables/useListbox.ts
|
|
7
7
|
var f = [
|
|
@@ -14,7 +14,7 @@ var f = [
|
|
|
14
14
|
"disableMaxHeight"
|
|
15
15
|
];
|
|
16
16
|
function p(p, m) {
|
|
17
|
-
let h = i(), g = r(() =>
|
|
17
|
+
let h = i(), g = r(() => s({
|
|
18
18
|
props: {
|
|
19
19
|
...h,
|
|
20
20
|
...p
|
|
@@ -27,19 +27,19 @@ function p(p, m) {
|
|
|
27
27
|
}), y = n({
|
|
28
28
|
entry: v,
|
|
29
29
|
props: () => g.value.componentProps
|
|
30
|
-
}), b = r(() =>
|
|
30
|
+
}), b = r(() => c(o(l, v.value?.tokens?.color), _.value.color ?? "primary")), x = r(() => o(u, v.value?.tokens?.invalidated)), S = r(() => _.value.invalidated ? x.value : b.value), C = r(() => c(o(d, v.value?.tokens?.size), _.value.size ?? "md")), w = r(() => S.value?.selected), T = r(() => S.value?.highlighted);
|
|
31
31
|
return {
|
|
32
32
|
merged: _,
|
|
33
|
-
checkClass: r(() =>
|
|
33
|
+
checkClass: r(() => a(C.value?.check, S.value?.check)),
|
|
34
34
|
scrollBind: r(() => {
|
|
35
35
|
let t = _.value.maxHeight ?? "max-h-60", n = _.value.disableMaxHeight === !0;
|
|
36
|
-
return e(_.value.customProps?.scroll, {},
|
|
36
|
+
return e(_.value.customProps?.scroll, {}, a({
|
|
37
37
|
"overflow-y-auto overscroll-contain": !n,
|
|
38
38
|
[t]: !n,
|
|
39
39
|
[y.value.scroll ?? ""]: !0
|
|
40
40
|
}));
|
|
41
41
|
}),
|
|
42
|
-
messageBind: r(() => e({}, {},
|
|
42
|
+
messageBind: r(() => e({}, {}, a({
|
|
43
43
|
"text-gray-500": !0,
|
|
44
44
|
[C.value?.message ?? ""]: !0
|
|
45
45
|
}))),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { findFirstEnabledOptionIndex as e, findLastEnabledOptionIndex as t, getListboxActiveDescendantId as n, getListboxOptionId as r, moveListboxHighlight as i, useListboxNavigation as a } from "./composables/useListboxNavigation.js";
|
|
2
|
+
import { useListbox as o } from "./composables/useListbox.js";
|
|
3
3
|
import { LISTBOX_INJECTION_KEY as s } from "./listboxInjectionKey.js";
|
|
4
4
|
import c from "./Listbox.js";
|
|
5
|
-
export { s as LISTBOX_INJECTION_KEY, c as Listbox,
|
|
5
|
+
export { s as LISTBOX_INJECTION_KEY, c as Listbox, e as findFirstEnabledOptionIndex, t as findLastEnabledOptionIndex, n as getListboxActiveDescendantId, r as getListboxOptionId, i as moveListboxHighlight, o as useListbox, a as useListboxNavigation };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mergePartBind as e, resolveVnodeRefElement as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as ee } from "../../../Utils/index.js";
|
|
2
|
-
import { computed as r, nextTick as i, onBeforeUnmount as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { roundedProps as
|
|
2
|
+
import { computed as r, nextTick as i, onBeforeUnmount as a, ref as o, toValue as te, useAttrs as s, useId as ne, watch as c } from "vue";
|
|
3
|
+
import { LAYER_STACK_BASE_Z_INDEX as l, acquireLayerStackOrder as u, claimOpenMenu as re, cn as d, createFocusable as f, createPositionable as p, getLayerStackEntry as m, mergeBridgeUILayeredClasses as h, pushLayerStack as ie, splitComponentProps as ae, subscribeLayerStack as oe } from "@bridge-ui/core";
|
|
4
|
+
import { get as g, omit as _ } from "es-toolkit/compat";
|
|
5
|
+
import { roundedProps as v, shadowProps as se } from "@bridge-ui/core/Tokens/Menu";
|
|
6
6
|
//#region src/Components/Menu/composables/useMenu.ts
|
|
7
7
|
var ce = [
|
|
8
8
|
"offset",
|
|
@@ -21,11 +21,11 @@ var ce = [
|
|
|
21
21
|
"disableScrollLock"
|
|
22
22
|
];
|
|
23
23
|
function y(y, le, b = {}) {
|
|
24
|
-
let ue =
|
|
24
|
+
let ue = s(), x = ne(), S = o(!1), C = o(""), w = o(null), T = o(null), E = null, D = null, O = null, k = null, A = null, j = null, M = !1, N = o(l), P = r(() => te(b.show ?? !1));
|
|
25
25
|
function F(e) {
|
|
26
26
|
e || b.onClose?.(), b.show && (b.show.value = e), b.onShowChange?.(e);
|
|
27
27
|
}
|
|
28
|
-
let I = r(() =>
|
|
28
|
+
let I = r(() => ae({
|
|
29
29
|
bridgeKeys: ce,
|
|
30
30
|
props: {
|
|
31
31
|
...ue,
|
|
@@ -38,35 +38,35 @@ function y(y, le, b = {}) {
|
|
|
38
38
|
}), z = r(() => L.value.customProps), B = ee({
|
|
39
39
|
entry: R,
|
|
40
40
|
props: () => I.value.componentProps
|
|
41
|
-
}), V = r(() => L.value.keepMounted && !P.value), H = r(() => L.value.teleportTo !== !1), de = r(() =>
|
|
42
|
-
function
|
|
41
|
+
}), V = r(() => L.value.keepMounted && !P.value), H = r(() => L.value.teleportTo !== !1), de = r(() => g(h(v, R.value?.tokens?.rounded), L.value.rounded)), fe = r(() => g(h(se, R.value?.tokens?.shadow), L.value.shadow)), U = r(() => !L.value.persistent), W = r(() => _(I.value.inheritedAttrs, ["anchorEl", "onShowChange"]));
|
|
42
|
+
function G() {
|
|
43
43
|
return y.anchorEl ?? w.value;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
45
|
+
function K() {
|
|
46
|
+
G()?.focus({ preventScroll: !0 });
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
48
|
+
function q(e) {
|
|
49
|
+
return G()?.contains(e) ?? !1;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return !(e instanceof Element) ||
|
|
51
|
+
function pe(e) {
|
|
52
|
+
return !(e instanceof Element) || q(e) || T.value?.contains(e) ? !1 : !!e.closest("[aria-haspopup=\"menu\"], button, [role=\"button\"]");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function J() {
|
|
55
55
|
!U.value || !P.value || F(!1);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function me() {
|
|
58
58
|
L.value.persistent && P.value || F(!P.value);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function he(e) {
|
|
61
61
|
e.key !== "ArrowDown" && e.key !== "Enter" && e.key !== " " || (e.preventDefault(), P.value || F(!0));
|
|
62
62
|
}
|
|
63
63
|
function ge(e) {
|
|
64
64
|
let t = T.value;
|
|
65
65
|
if (!t) return;
|
|
66
|
-
let n =
|
|
66
|
+
let n = f(t);
|
|
67
67
|
switch (e.key) {
|
|
68
68
|
case "Escape":
|
|
69
|
-
e.preventDefault(),
|
|
69
|
+
e.preventDefault(), J(), K();
|
|
70
70
|
break;
|
|
71
71
|
case "ArrowDown":
|
|
72
72
|
e.preventDefault(), n.next()?.focus({ preventScroll: !0 });
|
|
@@ -87,22 +87,22 @@ function y(y, le, b = {}) {
|
|
|
87
87
|
}
|
|
88
88
|
function X() {
|
|
89
89
|
Y();
|
|
90
|
-
let e =
|
|
91
|
-
!P.value || !e || !t || (k =
|
|
90
|
+
let e = G(), t = T.value;
|
|
91
|
+
!P.value || !e || !t || (k = p({
|
|
92
92
|
floating: t,
|
|
93
93
|
reference: e,
|
|
94
94
|
offset: L.value.offset,
|
|
95
95
|
strategy: L.value.strategy,
|
|
96
96
|
placement: L.value.placement,
|
|
97
97
|
onReferenceHidden: () => {
|
|
98
|
-
!M || !U.value || !P.value ||
|
|
98
|
+
!M || !U.value || !P.value || J();
|
|
99
99
|
}
|
|
100
100
|
}), k.start(), i(() => {
|
|
101
101
|
M = !0;
|
|
102
102
|
}));
|
|
103
103
|
}
|
|
104
104
|
function Z() {
|
|
105
|
-
!P.value || L.value.disableAutoFocus || !T.value ||
|
|
105
|
+
!P.value || L.value.disableAutoFocus || !T.value || f(T.value).focusFirst();
|
|
106
106
|
}
|
|
107
107
|
function _e() {
|
|
108
108
|
if (A?.(), !P.value) {
|
|
@@ -111,7 +111,7 @@ function y(y, le, b = {}) {
|
|
|
111
111
|
}
|
|
112
112
|
function e(e) {
|
|
113
113
|
let t = e.target;
|
|
114
|
-
|
|
114
|
+
q(t) || T.value?.contains(t) || L.value.closeOnClickAway === !1 || !U.value || pe(t) || J();
|
|
115
115
|
}
|
|
116
116
|
document.addEventListener("pointerdown", e, !0), A = () => {
|
|
117
117
|
document.removeEventListener("pointerdown", e, !0);
|
|
@@ -130,29 +130,29 @@ function y(y, le, b = {}) {
|
|
|
130
130
|
}));
|
|
131
131
|
}
|
|
132
132
|
function be() {
|
|
133
|
-
!P.value || L.value.closeOnEscape === !1 || !U.value || (
|
|
133
|
+
!P.value || L.value.closeOnEscape === !1 || !U.value || (J(), K());
|
|
134
134
|
}
|
|
135
135
|
function Q() {
|
|
136
|
-
let e =
|
|
136
|
+
let e = m(C.value);
|
|
137
137
|
e && (N.value = e.zIndex);
|
|
138
138
|
}
|
|
139
139
|
function $() {
|
|
140
|
-
j?.(), j = null, A?.(), A = null, O?.(), O = null, D?.release(), D = null, E = null, C.value = "", N.value =
|
|
140
|
+
j?.(), j = null, A?.(), A = null, O?.(), O = null, D?.release(), D = null, E = null, C.value = "", N.value = l, Y();
|
|
141
141
|
}
|
|
142
|
-
let xe = r(() => e(z.value?.root,
|
|
142
|
+
let xe = r(() => e(z.value?.root, W.value, d({
|
|
143
143
|
"relative inline-block text-left": !0,
|
|
144
|
-
[
|
|
144
|
+
[g(B.value, "root") ?? ""]: !0
|
|
145
145
|
}))), Se = r(() => e(z.value?.trigger, {}, {
|
|
146
146
|
tabindex: 0,
|
|
147
147
|
role: "button",
|
|
148
148
|
"aria-expanded": P.value,
|
|
149
|
-
onKeydown:
|
|
149
|
+
onKeydown: he,
|
|
150
150
|
"aria-haspopup": "menu",
|
|
151
|
-
onClickCapture:
|
|
151
|
+
onClickCapture: me,
|
|
152
152
|
"aria-controls": P.value ? x : void 0,
|
|
153
|
-
class:
|
|
153
|
+
class: d({
|
|
154
154
|
"inline-block w-fit max-w-full cursor-pointer outline-hidden": !0,
|
|
155
|
-
[
|
|
155
|
+
[g(B.value, "trigger") ?? ""]: !0
|
|
156
156
|
})
|
|
157
157
|
})), Ce = r(() => e(z.value?.content, {}, {
|
|
158
158
|
id: x,
|
|
@@ -160,32 +160,32 @@ function y(y, le, b = {}) {
|
|
|
160
160
|
onKeydown: ge,
|
|
161
161
|
style: { zIndex: N.value },
|
|
162
162
|
"aria-hidden": V.value ? !0 : void 0,
|
|
163
|
-
class:
|
|
163
|
+
class: d({
|
|
164
164
|
"bg-white text-dark-900 dark:bg-dark-800 dark:text-dark-100 ring-1 ring-black/5 dark:ring-white/10 outline-hidden overflow-hidden min-w-32 w-max max-w-[calc(100vw-16px)]": !0,
|
|
165
165
|
"invisible pointer-events-none": V.value,
|
|
166
166
|
[de.value ?? ""]: !0,
|
|
167
167
|
[fe.value ?? ""]: !0,
|
|
168
|
-
[
|
|
168
|
+
[g(B.value, "content") ?? ""]: !0
|
|
169
169
|
})
|
|
170
170
|
}));
|
|
171
|
-
return
|
|
171
|
+
return c(P, (e) => {
|
|
172
172
|
if (e) {
|
|
173
173
|
S.value = !0, i(() => {
|
|
174
|
-
P.value && (j =
|
|
174
|
+
P.value && (j = re({
|
|
175
175
|
id: x,
|
|
176
|
-
requestClose:
|
|
176
|
+
requestClose: J
|
|
177
177
|
}));
|
|
178
|
-
}), E =
|
|
178
|
+
}), E = u(), D = ie({
|
|
179
179
|
order: E,
|
|
180
180
|
onEscape: be,
|
|
181
181
|
lockScroll: L.value.disableScrollLock !== !0
|
|
182
|
-
}), C.value = D.id, N.value = D.zIndex, Q(), O =
|
|
182
|
+
}), C.value = D.id, N.value = D.zIndex, Q(), O = oe(Q), i(() => {
|
|
183
183
|
X(), Z(), _e();
|
|
184
184
|
});
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
$(), L.value.keepMounted || (S.value = !1);
|
|
188
|
-
}, { immediate: !0 }),
|
|
188
|
+
}, { immediate: !0 }), c([
|
|
189
189
|
P,
|
|
190
190
|
() => y.anchorEl,
|
|
191
191
|
() => L.value.offset,
|
|
@@ -195,11 +195,11 @@ function y(y, le, b = {}) {
|
|
|
195
195
|
i(() => {
|
|
196
196
|
X();
|
|
197
197
|
});
|
|
198
|
-
}),
|
|
198
|
+
}), c([P, () => L.value.disableAutoFocus], () => {
|
|
199
199
|
i(() => {
|
|
200
200
|
Z();
|
|
201
201
|
});
|
|
202
|
-
}),
|
|
202
|
+
}), a(() => {
|
|
203
203
|
$();
|
|
204
204
|
}), {
|
|
205
205
|
merged: L,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergePartBind as e, resolveVnodeRefElement as t, useBridgeUIComponent as ee, useBridgeUIMergedRegistryClasses as te } from "../../../Utils/index.js";
|
|
2
2
|
import { computed as n, nextTick as r, onBeforeUnmount as ne, ref as i, toValue as re, useAttrs as a, watch as o } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { LAYER_STACK_BASE_Z_INDEX as s, acquireLayerStackOrder as ie, cn as c, countModalTransitionLayers as ae, createFocusTrap as l, getLayerStackEntry as u, getModalOverlayTransitionClass as d, getModalPanelTransitionClass as f, hasModalTransition as p, mergeBridgeUILayeredClasses as m, pushLayerStack as h, resolveEffectiveModalTransition as oe, splitComponentProps as g, subscribeLayerStack as se } from "@bridge-ui/core";
|
|
4
|
+
import { get as _ } from "es-toolkit/compat";
|
|
5
5
|
import { isModalBackdropClick as ce } from "@bridge-ui/core/Utils";
|
|
6
6
|
import { alignProps as v, blurProps as y, sizeProps as b } from "@bridge-ui/core/Tokens/Modal";
|
|
7
7
|
//#region src/Components/Modal/composables/useModal.ts
|
|
@@ -26,11 +26,11 @@ var le = [
|
|
|
26
26
|
"disableRestoreFocus"
|
|
27
27
|
];
|
|
28
28
|
function x(x, ue, S = {}) {
|
|
29
|
-
let de = a(), C = i(!1), w = i(!1), T = i(""), E = i(null), D = 0, O = null, k = null, A = null, j = null, M = i(
|
|
29
|
+
let de = a(), C = i(!1), w = i(!1), T = i(""), E = i(null), D = 0, O = null, k = null, A = null, j = null, M = i(s), N = i("closed"), P = n(() => re(S.show ?? !1));
|
|
30
30
|
function F(e) {
|
|
31
31
|
e || S.onClose?.(), S.show && (S.show.value = e), S.onShowChange?.(e);
|
|
32
32
|
}
|
|
33
|
-
let I = n(() =>
|
|
33
|
+
let I = n(() => g({
|
|
34
34
|
bridgeKeys: le,
|
|
35
35
|
props: {
|
|
36
36
|
...de,
|
|
@@ -43,42 +43,42 @@ function x(x, ue, S = {}) {
|
|
|
43
43
|
}), z = n(() => L.value.customProps), B = te({
|
|
44
44
|
entry: R,
|
|
45
45
|
props: () => I.value.componentProps
|
|
46
|
-
}), V = n(() =>
|
|
46
|
+
}), V = n(() => oe(L.value.transition ?? "none")), H = n(() => p(V.value)), U = n(() => L.value.scroll ?? "body"), W = n(() => L.value.keepMounted && !w.value), fe = n(() => _(m(v, R.value?.tokens?.align), L.value.align)), pe = n(() => _(m(y, R.value?.tokens?.blur), L.value.blur)), me = n(() => _(m(b, R.value?.tokens?.size), L.value.size)), he = n(() => d(V.value)), ge = n(() => f(V.value)), G = n(() => !L.value.persistent), _e = n(() => I.value.inheritedAttrs), ve = n(() => e(z.value?.root, _e.value, {
|
|
47
47
|
onTransitionend: we,
|
|
48
48
|
style: { zIndex: M.value },
|
|
49
49
|
"aria-hidden": W.value ? !0 : void 0,
|
|
50
|
-
class:
|
|
50
|
+
class: c({
|
|
51
51
|
"fixed inset-0": !0,
|
|
52
52
|
"overflow-y-auto": U.value === "body",
|
|
53
53
|
"overflow-hidden": U.value === "paper",
|
|
54
54
|
"invisible pointer-events-none": W.value,
|
|
55
|
-
[
|
|
55
|
+
[_(B.value, "root") ?? ""]: !0
|
|
56
56
|
})
|
|
57
57
|
})), ye = n(() => e(z.value?.overlay, { onClick: Z }, {
|
|
58
58
|
"data-modal-part": "overlay",
|
|
59
59
|
"data-state": N.value,
|
|
60
|
-
class:
|
|
60
|
+
class: c({
|
|
61
61
|
"fixed inset-0 bg-black/50": !0,
|
|
62
62
|
[pe.value ?? ""]: !0,
|
|
63
63
|
[he.value]: H.value,
|
|
64
|
-
[
|
|
64
|
+
[_(B.value, "overlay") ?? ""]: !0
|
|
65
65
|
})
|
|
66
|
-
})), be = n(() => e(z.value?.wrapper, { onClick: Q },
|
|
66
|
+
})), be = n(() => e(z.value?.wrapper, { onClick: Q }, c({
|
|
67
67
|
"flex min-h-full w-full transform p-4": !0,
|
|
68
68
|
[fe.value ?? ""]: !0,
|
|
69
|
-
[
|
|
69
|
+
[_(B.value, "wrapper") ?? ""]: !0
|
|
70
70
|
}))), xe = n(() => e(z.value?.panel, {
|
|
71
71
|
role: "dialog",
|
|
72
72
|
"aria-modal": !0
|
|
73
73
|
}, {
|
|
74
74
|
"data-modal-part": "panel",
|
|
75
75
|
"data-state": N.value,
|
|
76
|
-
class:
|
|
76
|
+
class: c({
|
|
77
77
|
"relative w-full": !0,
|
|
78
78
|
[me.value ?? ""]: !0,
|
|
79
79
|
"max-h-[calc(100dvh-2rem)] overflow-y-auto": U.value === "paper",
|
|
80
80
|
[ge.value]: H.value,
|
|
81
|
-
[
|
|
81
|
+
[_(B.value, "panel") ?? ""]: !0
|
|
82
82
|
})
|
|
83
83
|
}));
|
|
84
84
|
function K() {
|
|
@@ -89,7 +89,7 @@ function x(x, ue, S = {}) {
|
|
|
89
89
|
K();
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
K(), k =
|
|
92
|
+
K(), k = l({
|
|
93
93
|
container: E.value,
|
|
94
94
|
disableAutoFocus: !L.value.autoFocus,
|
|
95
95
|
disableEnforceFocus: L.value.disableEnforceFocus,
|
|
@@ -107,7 +107,7 @@ function x(x, ue, S = {}) {
|
|
|
107
107
|
J();
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
N.value = "closed", D =
|
|
110
|
+
N.value = "closed", D = ae(V.value, { hideBackdrop: L.value.hideBackdrop }), D === 0 && J();
|
|
111
111
|
}
|
|
112
112
|
function Ce() {
|
|
113
113
|
if (!H.value) {
|
|
@@ -161,16 +161,16 @@ function x(x, ue, S = {}) {
|
|
|
161
161
|
});
|
|
162
162
|
});
|
|
163
163
|
function $() {
|
|
164
|
-
let e =
|
|
164
|
+
let e = u(T.value);
|
|
165
165
|
e && (M.value = e.zIndex);
|
|
166
166
|
}
|
|
167
167
|
return o(w, (e) => {
|
|
168
|
-
e ? (O = ie(), A =
|
|
168
|
+
e ? (O = ie(), A = h({
|
|
169
169
|
order: O,
|
|
170
170
|
id: S.stackId,
|
|
171
171
|
onEscape: Te,
|
|
172
172
|
lockScroll: L.value.disableScrollLock !== !0
|
|
173
|
-
}), T.value = A.id, M.value = A.zIndex, $(), j = se($)) : (j?.(), j = null, A?.release(), A = null, O = null, T.value = "", M.value =
|
|
173
|
+
}), T.value = A.id, M.value = A.zIndex, $(), j = se($)) : (j?.(), j = null, A?.release(), A = null, O = null, T.value = "", M.value = s);
|
|
174
174
|
}, { immediate: !0 }), ne(() => {
|
|
175
175
|
j?.(), j = null, K(), A?.release(), A = null;
|
|
176
176
|
}), {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useResolveMessage as e } from "../../Adapters/I18n/useI18nAdapter.js";
|
|
2
2
|
import { useHoldRepeat as t } from "../../Utils/useHoldRepeat.js";
|
|
3
3
|
import { mergePartBind as n, resolveFieldAdornmentIconSize as r } from "../../Utils/index.js";
|
|
4
4
|
import i from "../Icon/Icon.js";
|
|
5
5
|
import a from "../FormField/FormField.js";
|
|
6
6
|
import { useNumberField as o } from "./composables/useNumberField.js";
|
|
7
7
|
import { computed as s, createBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, isRef as p, mergeModels as m, mergeProps as h, normalizeProps as g, openBlock as _, ref as v, unref as y, useModel as b, vModelDynamic as x, withCtx as S, withDirectives as C } from "vue";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { cn as w } from "@bridge-ui/core";
|
|
9
|
+
import { isUndefined as T } from "es-toolkit/compat";
|
|
10
10
|
//#region src/Components/NumberField/NumberField.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var
|
|
11
|
+
var E = { class: "bridge-end-adornment flex h-full min-w-9 flex-col gap-px overflow-hidden" }, D = /* @__PURE__ */ d({
|
|
12
12
|
inheritAttrs: !1,
|
|
13
13
|
__name: "NumberField",
|
|
14
14
|
props: /* @__PURE__ */ m({
|
|
@@ -27,62 +27,62 @@ var D = { class: "bridge-end-adornment flex h-full min-w-9 flex-col gap-px overf
|
|
|
27
27
|
error: { type: Boolean },
|
|
28
28
|
errorIcon: {},
|
|
29
29
|
errorMessage: {},
|
|
30
|
+
hideErrorMessage: { type: Boolean },
|
|
30
31
|
label: {},
|
|
31
32
|
readonly: { type: Boolean },
|
|
32
33
|
required: { type: Boolean },
|
|
33
34
|
rounded: {},
|
|
35
|
+
showErrorIcon: { type: Boolean },
|
|
34
36
|
size: {},
|
|
35
37
|
slots: {},
|
|
36
38
|
start: {},
|
|
37
|
-
variant: {}
|
|
38
|
-
withErrorIcon: { type: Boolean },
|
|
39
|
-
withoutErrorMessage: { type: Boolean }
|
|
39
|
+
variant: {}
|
|
40
40
|
}, {
|
|
41
41
|
modelValue: {},
|
|
42
42
|
modelModifiers: {}
|
|
43
43
|
}),
|
|
44
44
|
emits: /* @__PURE__ */ m(["change", "update:modelValue"], ["update:modelValue"]),
|
|
45
45
|
setup(d, { emit: m }) {
|
|
46
|
-
let
|
|
46
|
+
let D = m, O = b(d, "modelValue"), k = d, A = v(k.defaultValue), j = s({
|
|
47
47
|
set: (e) => {
|
|
48
|
-
|
|
48
|
+
O.value = e, A.value = e;
|
|
49
49
|
},
|
|
50
|
-
get: () =>
|
|
51
|
-
}),
|
|
50
|
+
get: () => T(O.value) ? A.value : O.value
|
|
51
|
+
}), M = e(), { decrement: N, formField: P, increment: F, inputBind: I, stringModel: L, mergedClasses: R } = o(k, j, { onChange: (e) => D("change", e) }), z = t(() => F(), () => ({ disabled: k.disabled })), B = t(() => N(), () => ({ disabled: k.disabled })), V = s(() => r(k.size)), H = s(() => n(k.customProps?.increment, {
|
|
52
52
|
type: "button",
|
|
53
|
-
disabled:
|
|
53
|
+
disabled: k.disabled,
|
|
54
|
+
onClick: z.onPressClick,
|
|
55
|
+
onPointerup: z.onPressPointerUp,
|
|
56
|
+
onPointerdown: z.onPressPointerDown,
|
|
57
|
+
"aria-label": M("Increment value"),
|
|
58
|
+
onLostpointercapture: z.onPressLostPointerCapture
|
|
59
|
+
}, w({
|
|
60
|
+
"bridge-field-adornment-button inline-flex min-h-0 min-w-8 flex-1 items-center justify-center": !0,
|
|
61
|
+
[R.value.increment ?? ""]: !0
|
|
62
|
+
}))), U = s(() => n(k.customProps?.decrement, {
|
|
63
|
+
type: "button",
|
|
64
|
+
disabled: k.disabled,
|
|
54
65
|
onClick: B.onPressClick,
|
|
55
66
|
onPointerup: B.onPressPointerUp,
|
|
56
67
|
onPointerdown: B.onPressPointerDown,
|
|
57
|
-
"aria-label":
|
|
68
|
+
"aria-label": M("Decrement value"),
|
|
58
69
|
onLostpointercapture: B.onPressLostPointerCapture
|
|
59
|
-
},
|
|
60
|
-
"bridge-field-adornment-button inline-flex min-h-0 min-w-8 flex-1 items-center justify-center": !0,
|
|
61
|
-
[z.value.increment ?? ""]: !0
|
|
62
|
-
}))), W = s(() => n(A.customProps?.decrement, {
|
|
63
|
-
type: "button",
|
|
64
|
-
disabled: A.disabled,
|
|
65
|
-
onClick: V.onPressClick,
|
|
66
|
-
onPointerup: V.onPressPointerUp,
|
|
67
|
-
onPointerdown: V.onPressPointerDown,
|
|
68
|
-
"aria-label": E("Decrement value", N.value),
|
|
69
|
-
onLostpointercapture: V.onPressLostPointerCapture
|
|
70
|
-
}, T({
|
|
70
|
+
}, w({
|
|
71
71
|
"bridge-field-adornment-button inline-flex min-h-0 min-w-8 flex-1 items-center justify-center": !0,
|
|
72
|
-
[
|
|
72
|
+
[R.value.decrement ?? ""]: !0
|
|
73
73
|
})));
|
|
74
|
-
return (e, t) => (_(), c(y(a), { field: y(
|
|
75
|
-
end: S(() => [l("div",
|
|
74
|
+
return (e, t) => (_(), c(y(a), { field: y(P) }, {
|
|
75
|
+
end: S(() => [l("div", E, [l("button", g(f(H.value)), [u(y(i), h({
|
|
76
76
|
icon: "chevronUp",
|
|
77
|
-
size:
|
|
78
|
-
},
|
|
77
|
+
size: V.value
|
|
78
|
+
}, k.customProps?.incrementIcon), null, 16, ["size"])], 16), l("button", g(f(U.value)), [u(y(i), h({
|
|
79
79
|
icon: "chevronDown",
|
|
80
|
-
size:
|
|
81
|
-
},
|
|
82
|
-
default: S(() => [C(l("input", h({ "onUpdate:modelValue": t[0] ||= (e) => p(
|
|
80
|
+
size: V.value
|
|
81
|
+
}, k.customProps?.decrementIcon), null, 16, ["size"])], 16)])]),
|
|
82
|
+
default: S(() => [C(l("input", h({ "onUpdate:modelValue": t[0] ||= (e) => p(L) ? L.value = e : null }, y(I)), null, 16), [[x, y(L)]])]),
|
|
83
83
|
_: 1
|
|
84
84
|
}, 8, ["field"]));
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
//#endregion
|
|
88
|
-
export {
|
|
88
|
+
export { D as default };
|