@scalar/components 0.13.21 → 0.13.23

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.
Files changed (38) hide show
  1. package/dist/components/ScalarButton/ScalarButton.stories.d.ts +12 -12
  2. package/dist/components/ScalarButton/ScalarButton.vue.d.ts +1 -1
  3. package/dist/components/ScalarButton/ScalarButton.vue.d.ts.map +1 -1
  4. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +0 -1
  5. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
  6. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +76 -65
  7. package/dist/components/ScalarContextMenu/ScalarContextMenu.stories.d.ts +3 -3
  8. package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts +3 -3
  9. package/dist/components/ScalarFileUpload/ScalarFileUpload.stories.d.ts +364 -0
  10. package/dist/components/ScalarFileUpload/ScalarFileUpload.stories.d.ts.map +1 -0
  11. package/dist/components/ScalarFileUpload/ScalarFileUpload.test.d.ts +2 -0
  12. package/dist/components/ScalarFileUpload/ScalarFileUpload.test.d.ts.map +1 -0
  13. package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.d.ts +86 -0
  14. package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.d.ts.map +1 -0
  15. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.d.ts +19 -0
  16. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.d.ts.map +1 -0
  17. package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.d.ts +20 -0
  18. package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.d.ts.map +1 -0
  19. package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue.d.ts +22 -0
  20. package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue.d.ts.map +1 -0
  21. package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.d.ts +21 -0
  22. package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.d.ts.map +1 -0
  23. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts +21 -0
  24. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts.map +1 -0
  25. package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue.d.ts +16 -0
  26. package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue.d.ts.map +1 -0
  27. package/dist/components/ScalarFileUpload/index.d.ts +8 -0
  28. package/dist/components/ScalarFileUpload/index.d.ts.map +1 -0
  29. package/dist/components/ScalarFileUpload/types.d.ts +32 -0
  30. package/dist/components/ScalarFileUpload/types.d.ts.map +1 -0
  31. package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts +9 -9
  32. package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts +3 -3
  33. package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts.map +1 -1
  34. package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts +3 -3
  35. package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts +3 -3
  36. package/dist/components/ScalarTooltip/ScalarTooltip.stories.d.ts +3 -3
  37. package/dist/style.css +1 -1
  38. package/package.json +5 -4
@@ -8,7 +8,7 @@ declare const meta: {
8
8
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
9
9
  disabled?: boolean;
10
10
  fullWidth?: boolean;
11
- loading?: import("../ScalarLoading").LoadingState;
11
+ loading?: import("../ScalarLoading").LoadingState | undefined;
12
12
  size?: import("./variants.js").Variants["size"];
13
13
  variant?: import("./variants.js").Variants["variant"];
14
14
  type?: "button" | "submit" | "reset";
@@ -27,7 +27,7 @@ declare const meta: {
27
27
  }, Readonly<{
28
28
  disabled?: boolean;
29
29
  fullWidth?: boolean;
30
- loading?: import("../ScalarLoading").LoadingState;
30
+ loading?: import("../ScalarLoading").LoadingState | undefined;
31
31
  size?: import("./variants.js").Variants["size"];
32
32
  variant?: import("./variants.js").Variants["variant"];
33
33
  type?: "button" | "submit" | "reset";
@@ -43,7 +43,7 @@ declare const meta: {
43
43
  } & import("vue").ComponentOptionsBase<Readonly<{
44
44
  disabled?: boolean;
45
45
  fullWidth?: boolean;
46
- loading?: import("../ScalarLoading").LoadingState;
46
+ loading?: import("../ScalarLoading").LoadingState | undefined;
47
47
  size?: import("./variants.js").Variants["size"];
48
48
  variant?: import("./variants.js").Variants["variant"];
49
49
  type?: "button" | "submit" | "reset";
@@ -81,7 +81,7 @@ declare const meta: {
81
81
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
82
82
  disabled?: boolean;
83
83
  fullWidth?: boolean;
84
- loading?: import("../ScalarLoading").LoadingState;
84
+ loading?: import("../ScalarLoading").LoadingState | undefined;
85
85
  size?: import("./variants.js").Variants["size"];
86
86
  variant?: import("./variants.js").Variants["variant"];
87
87
  type?: "button" | "submit" | "reset";
@@ -100,7 +100,7 @@ declare const meta: {
100
100
  }, Readonly<{
101
101
  disabled?: boolean;
102
102
  fullWidth?: boolean;
103
- loading?: import("../ScalarLoading").LoadingState;
103
+ loading?: import("../ScalarLoading").LoadingState | undefined;
104
104
  size?: import("./variants.js").Variants["size"];
105
105
  variant?: import("./variants.js").Variants["variant"];
106
106
  type?: "button" | "submit" | "reset";
@@ -116,7 +116,7 @@ declare const meta: {
116
116
  } & import("vue").ComponentOptionsBase<Readonly<{
117
117
  disabled?: boolean;
118
118
  fullWidth?: boolean;
119
- loading?: import("../ScalarLoading").LoadingState;
119
+ loading?: import("../ScalarLoading").LoadingState | undefined;
120
120
  size?: import("./variants.js").Variants["size"];
121
121
  variant?: import("./variants.js").Variants["variant"];
122
122
  type?: "button" | "submit" | "reset";
@@ -137,7 +137,7 @@ declare const meta: {
137
137
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
138
138
  disabled?: boolean;
139
139
  fullWidth?: boolean;
140
- loading?: import("../ScalarLoading").LoadingState;
140
+ loading?: import("../ScalarLoading").LoadingState | undefined;
141
141
  size?: import("./variants.js").Variants["size"];
142
142
  variant?: import("./variants.js").Variants["variant"];
143
143
  type?: "button" | "submit" | "reset";
@@ -156,7 +156,7 @@ declare const meta: {
156
156
  }, Readonly<{
157
157
  disabled?: boolean;
158
158
  fullWidth?: boolean;
159
- loading?: import("../ScalarLoading").LoadingState;
159
+ loading?: import("../ScalarLoading").LoadingState | undefined;
160
160
  size?: import("./variants.js").Variants["size"];
161
161
  variant?: import("./variants.js").Variants["variant"];
162
162
  type?: "button" | "submit" | "reset";
@@ -172,7 +172,7 @@ declare const meta: {
172
172
  } & import("vue").ComponentOptionsBase<Readonly<{
173
173
  disabled?: boolean;
174
174
  fullWidth?: boolean;
175
- loading?: import("../ScalarLoading").LoadingState;
175
+ loading?: import("../ScalarLoading").LoadingState | undefined;
176
176
  size?: import("./variants.js").Variants["size"];
177
177
  variant?: import("./variants.js").Variants["variant"];
178
178
  type?: "button" | "submit" | "reset";
@@ -194,7 +194,7 @@ declare const meta: {
194
194
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
195
195
  disabled?: boolean;
196
196
  fullWidth?: boolean;
197
- loading?: import("../ScalarLoading").LoadingState;
197
+ loading?: import("../ScalarLoading").LoadingState | undefined;
198
198
  size?: import("./variants.js").Variants["size"];
199
199
  variant?: import("./variants.js").Variants["variant"];
200
200
  type?: "button" | "submit" | "reset";
@@ -213,7 +213,7 @@ declare const meta: {
213
213
  }, Readonly<{
214
214
  disabled?: boolean;
215
215
  fullWidth?: boolean;
216
- loading?: import("../ScalarLoading").LoadingState;
216
+ loading?: import("../ScalarLoading").LoadingState | undefined;
217
217
  size?: import("./variants.js").Variants["size"];
218
218
  variant?: import("./variants.js").Variants["variant"];
219
219
  type?: "button" | "submit" | "reset";
@@ -229,7 +229,7 @@ declare const meta: {
229
229
  } & import("vue").ComponentOptionsBase<Readonly<{
230
230
  disabled?: boolean;
231
231
  fullWidth?: boolean;
232
- loading?: import("../ScalarLoading").LoadingState;
232
+ loading?: import("../ScalarLoading").LoadingState | undefined;
233
233
  size?: import("./variants.js").Variants["size"];
234
234
  variant?: import("./variants.js").Variants["variant"];
235
235
  type?: "button" | "submit" | "reset";
@@ -6,7 +6,7 @@ import { type Variants } from './variants.js';
6
6
  type __VLS_Props = {
7
7
  disabled?: boolean;
8
8
  fullWidth?: boolean;
9
- loading?: LoadingState;
9
+ loading?: LoadingState | undefined;
10
10
  size?: Variants['size'];
11
11
  variant?: Variants['variant'];
12
12
  type?: 'button' | 'submit' | 'reset';
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarButton/ScalarButton.vue"],"names":[],"mappings":"AA6DA,OAAO,EAAE,KAAK,YAAY,EAAiB,MAAM,kBAAkB,CAAA;AACnE,OAAO,EAAE,KAAK,QAAQ,EAAY,MAAM,YAAY,CAAA;AAIpD;;GAEG;AACH,KAAK,WAAW,GAAG;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACvB,OAAO,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAA;IAC7B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;CACrC,CAAC;AAyBJ,iBAAS,cAAc;WAoET,OAAO,IAA6B;;sBAVxB,GAAG;yBACA,GAAG;yBACH,GAAG;;;;EAa/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;eApHL,OAAO;UAIZ,QAAQ,GAAG,QAAQ,GAAG,OAAO;6EAuHtC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarButton/ScalarButton.vue"],"names":[],"mappings":"AA6DA,OAAO,EAAE,KAAK,YAAY,EAAiB,MAAM,kBAAkB,CAAA;AACnE,OAAO,EAAE,KAAK,QAAQ,EAAY,MAAM,YAAY,CAAA;AAIpD;;GAEG;AACH,KAAK,WAAW,GAAG;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACvB,OAAO,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAA;IAC7B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;CACrC,CAAC;AAyBJ,iBAAS,cAAc;WAoET,OAAO,IAA6B;;sBAVxB,GAAG;yBACA,GAAG;yBACH,GAAG;;;;EAa/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;eApHL,OAAO;UAIZ,QAAQ,GAAG,QAAQ,GAAG,OAAO;6EAuHtC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -3,7 +3,6 @@ type __VLS_Props = {
3
3
  options: Option[] | OptionGroup[];
4
4
  modelValue?: Option[];
5
5
  placeholder?: string;
6
- open?: boolean;
7
6
  multiselect?: boolean;
8
7
  isDeletable?: boolean;
9
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarComboboxOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOptions.vue"],"names":[],"mappings":"AAqKA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,WAAW,EAEjB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACjC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAyFF,iBAAS,cAAc;WA8JT,OAAO,IAA6B;;;;EAKjD;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarComboboxOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOptions.vue"],"names":[],"mappings":"AA6LA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,WAAW,EAEjB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACjC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAiHF,iBAAS,cAAc;WA+JT,OAAO,IAA6B;;;;EAKjD;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,61 +1,71 @@
1
- import { defineComponent as T, computed as f, ref as C, watch as S, openBlock as a, createElementBlock as u, Fragment as m, createElementVNode as x, createVNode as q, unref as w, withDirectives as g, withKeys as $, withModifiers as b, vModelText as F, renderSlot as B, renderList as M, toDisplayString as I, createCommentVNode as N, createBlock as G, normalizeStyle as O, withCtx as U, createTextVNode as j, vShow as H } from "vue";
2
- import { nanoid as J } from "nanoid";
3
- import P from "./ScalarComboboxOption.vue.js";
4
- import { isGroups as L } from "./types.js";
5
- import Q from "../ScalarIcon/ScalarIcon.vue.js";
6
- const R = { class: "relative flex" }, W = ["aria-controls", "placeholder"], X = ["id"], Y = {
1
+ import { defineComponent as A, computed as b, ref as I, onMounted as K, watch as O, openBlock as i, createElementBlock as c, Fragment as p, createElementVNode as $, createVNode as q, unref as F, withDirectives as D, withKeys as h, withModifiers as y, vModelText as G, renderSlot as C, renderList as S, toDisplayString as B, createCommentVNode as M, createBlock as U, normalizeStyle as j, withCtx as H, createTextVNode as J, vShow as P } from "vue";
2
+ import { nanoid as Q } from "nanoid";
3
+ import R from "./ScalarComboboxOption.vue.js";
4
+ import { isGroups as E } from "./types.js";
5
+ import W from "../ScalarIcon/ScalarIcon.vue.js";
6
+ const X = { class: "relative flex" }, Y = ["placeholder"], Z = {
7
7
  key: 0,
8
- class: "min-w-0 truncate px-2 py-1.5 text-left text-c-2"
9
- }, oe = /* @__PURE__ */ T({
8
+ class: "min-w-0 truncate px-2.5 py-1.5 text-left text-c-2"
9
+ }, ne = /* @__PURE__ */ A({
10
10
  inheritAttrs: !1,
11
11
  __name: "ScalarComboboxOptions",
12
12
  props: {
13
13
  options: {},
14
14
  modelValue: {},
15
15
  placeholder: {},
16
- open: { type: Boolean },
17
16
  multiselect: { type: Boolean },
18
17
  isDeletable: { type: Boolean }
19
18
  },
20
19
  emits: ["update:modelValue", "delete"],
21
- setup(z, { emit: A }) {
22
- var D;
23
- const o = z, E = A, h = J(), y = f(
24
- () => L(o.options) ? o.options.flatMap((e) => e.options) : o.options
25
- ), K = f(
26
- () => L(o.options) ? o.options : [{ label: "", options: o.options }]
27
- ), i = C(""), r = C(((D = o.modelValue) == null ? void 0 : D[0]) ?? y.value[0]);
28
- S(
29
- () => o.open,
30
- () => i.value = ""
31
- ), S(
32
- () => i.value,
33
- () => r.value = v.value[0]
20
+ setup(N, { emit: L }) {
21
+ var g;
22
+ const o = N, T = L, x = `scalar-combobox-items-${Q()}`;
23
+ function w(e) {
24
+ return `${x}-${e.id}`;
25
+ }
26
+ const f = b(
27
+ () => E(o.options) ? o.options.flatMap((e) => e.options) : o.options
28
+ ), z = b(
29
+ () => E(o.options) ? o.options : [{ label: "", options: o.options }]
30
+ ), r = I(""), a = I(((g = o.modelValue) == null ? void 0 : g[0]) ?? f.value[0]);
31
+ K(async () => {
32
+ var e;
33
+ r.value = "", a.value = ((e = o.modelValue) == null ? void 0 : e[0]) ?? f.value[0], s.value.length !== 0 && setTimeout(() => {
34
+ var t;
35
+ (t = document == null ? void 0 : document.getElementById(w(s.value[0]))) == null || t.scrollIntoView({ block: "center" });
36
+ }, 10);
37
+ }), O(
38
+ () => r.value,
39
+ () => a.value = v.value[0]
34
40
  );
35
- const v = f(
36
- () => i.value === "" ? y.value : y.value.filter((e) => e.label.toLowerCase().includes(i.value.toLowerCase()))
37
- ), s = f({
41
+ const v = b(
42
+ () => r.value === "" ? f.value : f.value.filter((e) => e.label.toLowerCase().includes(r.value.toLowerCase()))
43
+ ), s = b({
38
44
  get: () => o.modelValue ?? [],
39
- set: (e) => e && E("update:modelValue", e)
45
+ set: (e) => e && T("update:modelValue", e)
40
46
  });
41
- function k(e) {
47
+ function V(e) {
42
48
  o.multiselect ? s.value.some((t) => t.id === e.id) ? s.value = s.value.filter((t) => t.id !== e.id) : s.value = [...s.value, e] : s.value = [e];
43
49
  }
44
- function V(e) {
45
- const t = v.value, c = t.findIndex((l) => l.id === r.value.id) + e;
46
- c < 0 || c > t.length - 1 || (r.value = t[c]);
50
+ function k(e) {
51
+ var l;
52
+ const t = v.value, m = t.findIndex((u) => u.id === a.value.id) + e;
53
+ m < 0 || m > t.length - 1 || (a.value = t[m], (l = document == null ? void 0 : document.getElementById(w(a.value))) == null || l.scrollIntoView({
54
+ behavior: "smooth",
55
+ block: "nearest"
56
+ }));
47
57
  }
48
- return (e, t) => (a(), u(m, null, [
49
- x("div", R, [
50
- q(w(Q), {
51
- class: "pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-c-3",
58
+ return (e, t) => (i(), c(p, null, [
59
+ $("div", X, [
60
+ q(F(W), {
61
+ class: "pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-c-3",
52
62
  icon: "Search",
53
- size: "sm"
63
+ size: "md"
54
64
  }),
55
- g(x("input", {
56
- "onUpdate:modelValue": t[0] || (t[0] = (n) => i.value = n),
65
+ D($("input", {
66
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => r.value = n),
57
67
  "aria-autocomplete": "list",
58
- "aria-controls": w(h),
68
+ "aria-controls": x,
59
69
  class: "min-w-0 flex-1 rounded-none border-0 py-2.5 pl-8 pr-3 leading-none text-c-1 outline-none",
60
70
  "data-1p-ignore": "",
61
71
  placeholder: e.placeholder,
@@ -63,54 +73,55 @@ const R = { class: "relative flex" }, W = ["aria-controls", "placeholder"], X =
63
73
  tabindex: "0",
64
74
  type: "text",
65
75
  onKeydown: [
66
- t[1] || (t[1] = $(b((n) => V(1), ["prevent"]), ["down"])),
67
- t[2] || (t[2] = $(b((n) => k(r.value), ["prevent"]), ["enter"])),
68
- t[3] || (t[3] = $(b((n) => V(-1), ["prevent"]), ["up"]))
76
+ t[1] || (t[1] = h(y((n) => k(1), ["prevent"]), ["down"])),
77
+ t[2] || (t[2] = h(y((n) => V(a.value), ["prevent"]), ["enter"])),
78
+ t[3] || (t[3] = h(y((n) => k(-1), ["prevent"]), ["up"]))
69
79
  ]
70
- }, null, 40, W), [
71
- [F, i.value]
80
+ }, null, 40, Y), [
81
+ [G, r.value]
72
82
  ])
73
83
  ]),
74
- g(x("ul", {
75
- id: w(h),
76
- class: "border-t p-0.75 custom-scroll flex-1 min-h-0"
84
+ D($("ul", {
85
+ id: x,
86
+ class: "border-t p-0.75 custom-scroll overscroll-contain flex-1 min-h-0"
77
87
  }, [
78
- B(e.$slots, "before"),
79
- (a(!0), u(m, null, M(K.value, (n, c) => (a(), u(m, { key: c }, [
88
+ C(e.$slots, "before"),
89
+ (i(!0), c(p, null, S(z.value, (n, m) => (i(), c(p, { key: m }, [
80
90
  n.label && // Only show the group label if there are some results
81
- n.options.some((l) => v.value.some((p) => p.id === l.id)) ? (a(), u("div", Y, I(n.label), 1)) : N("", !0),
82
- (a(!0), u(m, null, M(v.value, (l) => {
83
- var p;
84
- return a(), u(m, {
91
+ n.options.some((l) => v.value.some((u) => u.id === l.id)) ? (i(), c("div", Z, B(n.label), 1)) : M("", !0),
92
+ (i(!0), c(p, null, S(v.value, (l) => {
93
+ var u;
94
+ return i(), c(p, {
85
95
  key: l.id
86
96
  }, [
87
- n.options.some((d) => d.id === l.id) ? (a(), G(P, {
97
+ n.options.some((d) => d.id === l.id) ? (i(), U(R, {
88
98
  key: 0,
89
- active: ((p = r.value) == null ? void 0 : p.id) === l.id,
99
+ id: w(l),
100
+ active: ((u = a.value) == null ? void 0 : u.id) === l.id,
90
101
  isDeletable: l.isDeletable ?? e.isDeletable,
91
102
  selected: s.value.some((d) => d.id === l.id),
92
- style: O(e.multiselect ? "checkbox" : "radio"),
93
- onClick: (d) => k(l),
103
+ style: j(e.multiselect ? "checkbox" : "radio"),
104
+ onClick: (d) => V(l),
94
105
  onDelete: (d) => e.$emit("delete", l),
95
- onMousedown: t[4] || (t[4] = b(() => {
106
+ onMousedown: t[4] || (t[4] = y(() => {
96
107
  }, ["prevent"])),
97
- onMouseenter: (d) => r.value = l
108
+ onMouseenter: (d) => a.value = l
98
109
  }, {
99
- default: U(() => [
100
- j(I(l.label), 1)
110
+ default: H(() => [
111
+ J(B(l.label), 1)
101
112
  ]),
102
113
  _: 2
103
- }, 1032, ["active", "isDeletable", "selected", "style", "onClick", "onDelete", "onMouseenter"])) : N("", !0)
114
+ }, 1032, ["id", "active", "isDeletable", "selected", "style", "onClick", "onDelete", "onMouseenter"])) : M("", !0)
104
115
  ], 64);
105
116
  }), 128))
106
117
  ], 64))), 128)),
107
- B(e.$slots, "after")
108
- ], 8, X), [
109
- [H, v.value.length || e.$slots.before || e.$slots.after]
118
+ C(e.$slots, "after")
119
+ ], 512), [
120
+ [P, v.value.length || e.$slots.before || e.$slots.after]
110
121
  ])
111
122
  ], 64));
112
123
  }
113
124
  });
114
125
  export {
115
- oe as default
126
+ ne as default
116
127
  };
@@ -162,7 +162,7 @@ declare const meta: {
162
162
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
163
163
  disabled?: boolean;
164
164
  fullWidth?: boolean;
165
- loading?: import("../ScalarLoading").LoadingState;
165
+ loading?: import("../ScalarLoading").LoadingState | undefined;
166
166
  size?: import("../ScalarButton/variants.js").Variants["size"];
167
167
  variant?: import("../ScalarButton/variants.js").Variants["variant"];
168
168
  type?: "button" | "submit" | "reset";
@@ -181,7 +181,7 @@ declare const meta: {
181
181
  }, Readonly<{
182
182
  disabled?: boolean;
183
183
  fullWidth?: boolean;
184
- loading?: import("../ScalarLoading").LoadingState;
184
+ loading?: import("../ScalarLoading").LoadingState | undefined;
185
185
  size?: import("../ScalarButton/variants.js").Variants["size"];
186
186
  variant?: import("../ScalarButton/variants.js").Variants["variant"];
187
187
  type?: "button" | "submit" | "reset";
@@ -197,7 +197,7 @@ declare const meta: {
197
197
  } & import("vue").ComponentOptionsBase<Readonly<{
198
198
  disabled?: boolean;
199
199
  fullWidth?: boolean;
200
- loading?: import("../ScalarLoading").LoadingState;
200
+ loading?: import("../ScalarLoading").LoadingState | undefined;
201
201
  size?: import("../ScalarButton/variants.js").Variants["size"];
202
202
  variant?: import("../ScalarButton/variants.js").Variants["variant"];
203
203
  type?: "button" | "submit" | "reset";
@@ -139,7 +139,7 @@ declare const meta: {
139
139
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
140
140
  disabled?: boolean;
141
141
  fullWidth?: boolean;
142
- loading?: import("../ScalarLoading").LoadingState;
142
+ loading?: import("../ScalarLoading").LoadingState | undefined;
143
143
  size?: import("../ScalarButton/variants.js").Variants["size"];
144
144
  variant?: import("../ScalarButton/variants.js").Variants["variant"];
145
145
  type?: "button" | "submit" | "reset";
@@ -158,7 +158,7 @@ declare const meta: {
158
158
  }, Readonly<{
159
159
  disabled?: boolean;
160
160
  fullWidth?: boolean;
161
- loading?: import("../ScalarLoading").LoadingState;
161
+ loading?: import("../ScalarLoading").LoadingState | undefined;
162
162
  size?: import("../ScalarButton/variants.js").Variants["size"];
163
163
  variant?: import("../ScalarButton/variants.js").Variants["variant"];
164
164
  type?: "button" | "submit" | "reset";
@@ -174,7 +174,7 @@ declare const meta: {
174
174
  } & import("vue").ComponentOptionsBase<Readonly<{
175
175
  disabled?: boolean;
176
176
  fullWidth?: boolean;
177
- loading?: import("../ScalarLoading").LoadingState;
177
+ loading?: import("../ScalarLoading").LoadingState | undefined;
178
178
  size?: import("../ScalarButton/variants.js").Variants["size"];
179
179
  variant?: import("../ScalarButton/variants.js").Variants["variant"];
180
180
  type?: "button" | "submit" | "reset";