@lumx/vue 4.17.1-alpha.0 → 4.17.1-alpha.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.
@@ -20,7 +20,7 @@ export declare const MouseHoverDoesNotActivateOption: {
20
20
  onChange: (v: string) => void;
21
21
  onSelect?: (option: {
22
22
  value: string;
23
- }) => void;
23
+ }) => boolean | void;
24
24
  }) => import("vue/jsx-runtime").JSX.Element;
25
25
  };
26
26
  export declare const ClickAwayClosesPopup: {
@@ -42,7 +42,7 @@ export declare const MouseHoverThenKeyboardNav: {
42
42
  onChange: (v: string) => void;
43
43
  onSelect?: (option: {
44
44
  value: string;
45
- }) => void;
45
+ }) => boolean | void;
46
46
  }) => import("vue/jsx-runtime").JSX.Element;
47
47
  };
48
48
  export declare const OptionMoreInfoKeyboardHighlight: {
@@ -106,7 +106,7 @@ export declare const ButtonTypeaheadFromClosed: {
106
106
  value: string;
107
107
  onSelect: (option: {
108
108
  value: string;
109
- }) => void;
109
+ }) => boolean | void;
110
110
  }) => import("vue/jsx-runtime").JSX.Element;
111
111
  };
112
112
  export declare const ButtonTypeaheadWhileOpen: {
@@ -119,7 +119,7 @@ export declare const ButtonTypeaheadWhileOpen: {
119
119
  value: string;
120
120
  onSelect: (option: {
121
121
  value: string;
122
- }) => void;
122
+ }) => boolean | void;
123
123
  }) => import("vue/jsx-runtime").JSX.Element;
124
124
  };
125
125
  export declare const ButtonEndFromClosed: {
@@ -132,7 +132,7 @@ export declare const ButtonEndFromClosed: {
132
132
  value: string;
133
133
  onSelect: (option: {
134
134
  value: string;
135
- }) => void;
135
+ }) => boolean | void;
136
136
  }) => import("vue/jsx-runtime").JSX.Element;
137
137
  };
138
138
  export declare const ButtonHomeFromClosed: {
@@ -145,7 +145,7 @@ export declare const ButtonHomeFromClosed: {
145
145
  value: string;
146
146
  onSelect: (option: {
147
147
  value: string;
148
- }) => void;
148
+ }) => boolean | void;
149
149
  }) => import("vue/jsx-runtime").JSX.Element;
150
150
  };
151
151
  export declare const ButtonArrowDownFromClosed: {
@@ -158,6 +158,6 @@ export declare const ButtonArrowDownFromClosed: {
158
158
  value: string;
159
159
  onSelect: (option: {
160
160
  value: string;
161
- }) => void;
161
+ }) => boolean | void;
162
162
  }) => import("vue/jsx-runtime").JSX.Element;
163
163
  };
package/index.js CHANGED
@@ -4895,7 +4895,8 @@ function Np(e, t) {
4895
4895
  const { filter: a = "auto", onSelect: o, onInput: r } = t, s = t.openOnFocus ?? a === "off", i = a === "auto", l = () => e.disabled || e.getAttribute("aria-disabled") === "true";
4896
4896
  let c = !1;
4897
4897
  return n = Xc({ onSelect: (u) => {
4898
- o?.(u), c = !1, i && n.setFilter("");
4898
+ const f = o?.(u);
4899
+ return c = !1, i && n.setFilter(""), f;
4899
4900
  } }, { wrapNavigation: !0 }, (u, f) => {
4900
4901
  f.addEventListener("abort", () => {
4901
4902
  c = !1;
@@ -5427,7 +5428,8 @@ const Vp = (e) => {
5427
5428
  const v = d.value;
5428
5429
  v && s(Np(v, {
5429
5430
  onSelect(p) {
5430
- t("change", p.value), e.onSelect?.(p), t("select", p);
5431
+ const b = e.onSelect?.(p) === !1;
5432
+ t("select", p), b || t("change", p.value);
5431
5433
  },
5432
5434
  filter: e.filter,
5433
5435
  openOnFocus: e.openOnFocus