@scalar/components 0.14.14 → 0.14.17

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 (97) hide show
  1. package/dist/components/ScalarCombobox/ScalarCombobox.stories.d.ts +6 -6
  2. package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts +6 -7
  3. package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts.map +1 -1
  4. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +1 -3
  5. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
  6. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +53 -53
  7. package/dist/components/ScalarCombobox/types.d.ts +3 -3
  8. package/dist/components/ScalarCombobox/types.d.ts.map +1 -1
  9. package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts +16 -16
  10. package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts +4 -4
  11. package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts.map +1 -1
  12. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts +4 -4
  13. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts.map +1 -1
  14. package/dist/components/ScalarFileUpload/ScalarFileUpload.stories.d.ts +40 -40
  15. package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.d.ts +10 -10
  16. package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.d.ts.map +1 -1
  17. package/dist/components/ScalarFileUpload/types.d.ts +2 -2
  18. package/dist/components/ScalarFileUpload/types.d.ts.map +1 -1
  19. package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts +4 -5
  20. package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts.map +1 -1
  21. package/dist/components/ScalarHeader/ScalarHeader.stories.d.ts +26 -26
  22. package/dist/components/ScalarHeader/ScalarHeader.vue.d.ts +6 -6
  23. package/dist/components/ScalarHeader/ScalarHeader.vue.d.ts.map +1 -1
  24. package/dist/components/ScalarHeader/ScalarHeaderButton.vue.d.ts +2 -2
  25. package/dist/components/ScalarHeader/ScalarHeaderButton.vue.d.ts.map +1 -1
  26. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +1 -1
  27. package/dist/components/ScalarIcon/icons/index.d.ts +1 -1
  28. package/dist/components/ScalarIcon/icons/index.d.ts.map +1 -1
  29. package/dist/components/ScalarIcon/icons/programming-language-rust.svg.js +19 -0
  30. package/dist/components/ScalarIcon/utils/index.js +68 -66
  31. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +1 -1
  32. package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts +2 -2
  33. package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts +2 -2
  34. package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts.map +1 -1
  35. package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts +32 -32
  36. package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts +8 -8
  37. package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts.map +1 -1
  38. package/dist/components/ScalarMenu/types.d.ts +2 -2
  39. package/dist/components/ScalarMenu/types.d.ts.map +1 -1
  40. package/dist/components/ScalarPopover/types.d.ts +3 -3
  41. package/dist/components/ScalarPopover/types.d.ts.map +1 -1
  42. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.d.ts.map +1 -1
  43. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +27 -27
  44. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
  45. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +13 -14
  46. package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts.map +1 -1
  47. package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.js +11 -12
  48. package/dist/components/ScalarSidebar/ScalarSidebar.stories.d.ts +2 -1
  49. package/dist/components/ScalarSidebar/ScalarSidebar.stories.d.ts.map +1 -1
  50. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.d.ts.map +1 -1
  51. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.js +26 -20
  52. package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue.d.ts +6 -6
  53. package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue.d.ts.map +1 -1
  54. package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts +12 -12
  55. package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts.map +1 -1
  56. package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.js +11 -11
  57. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts +8 -8
  58. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts.map +1 -1
  59. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.js +12 -15
  60. package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.d.ts.map +1 -1
  61. package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.js +4 -4
  62. package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue2.js +2 -2
  63. package/dist/components/ScalarSidebar/ScalarSidebarItems.vue.d.ts.map +1 -1
  64. package/dist/components/ScalarSidebar/ScalarSidebarItems.vue.js +16 -10
  65. package/dist/components/ScalarSidebar/ScalarSidebarItems.vue3.js +5 -0
  66. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.d.ts +65 -0
  67. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.d.ts.map +1 -0
  68. package/dist/components/ScalarSidebar/ScalarSidebarPlayground.vue.d.ts.map +1 -1
  69. package/dist/components/ScalarSidebar/ScalarSidebarSection.vue.d.ts +4 -4
  70. package/dist/components/ScalarSidebar/ScalarSidebarSection.vue.d.ts.map +1 -1
  71. package/dist/components/ScalarSidebar/ScalarSidebarSpacer.vue.d.ts +2 -2
  72. package/dist/components/ScalarSidebar/ScalarSidebarSpacer.vue.d.ts.map +1 -1
  73. package/dist/components/ScalarSidebar/findScrollContainer.d.ts +5 -0
  74. package/dist/components/ScalarSidebar/findScrollContainer.d.ts.map +1 -0
  75. package/dist/components/ScalarSidebar/findScrollContainer.test.d.ts +2 -0
  76. package/dist/components/ScalarSidebar/findScrollContainer.test.d.ts.map +1 -0
  77. package/dist/components/ScalarSidebar/types.d.ts +4 -4
  78. package/dist/components/ScalarSidebar/types.d.ts.map +1 -1
  79. package/dist/components/ScalarSidebar/useSidebarGroups.d.ts +10 -5
  80. package/dist/components/ScalarSidebar/useSidebarGroups.d.ts.map +1 -1
  81. package/dist/components/ScalarSidebar/useSidebarGroups.js +6 -8
  82. package/dist/components/ScalarSidebar/useSidebarNestedItems.d.ts +19 -0
  83. package/dist/components/ScalarSidebar/useSidebarNestedItems.d.ts.map +1 -0
  84. package/dist/components/ScalarSidebar/useSidebarNestedItems.js +12 -0
  85. package/dist/components/ScalarSidebar/useSidebarNestedItems.test.d.ts +2 -0
  86. package/dist/components/ScalarSidebar/useSidebarNestedItems.test.d.ts.map +1 -0
  87. package/dist/components/ScalarTeleport/ScalarTeleport.vue.d.ts +2 -2
  88. package/dist/components/ScalarTeleport/ScalarTeleport.vue.d.ts.map +1 -1
  89. package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue.d.ts +2 -2
  90. package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue.d.ts.map +1 -1
  91. package/dist/components/ScalarToggle/ScalarToggle.vue.js +2 -2
  92. package/dist/components/ScalarTooltip/useTooltip.d.ts.map +1 -1
  93. package/dist/components/ScalarTooltip/useTooltip.js +16 -16
  94. package/dist/index.js +155 -154
  95. package/dist/style.css +1 -1
  96. package/package.json +8 -8
  97. package/dist/components/ScalarSidebar/ScalarSidebarItems.vue2.js +0 -4
@@ -39,23 +39,23 @@ declare const meta: {
39
39
  $slots: Readonly<{
40
40
  default(props: {
41
41
  open: boolean;
42
- }): import("vue").Slot;
42
+ }): unknown;
43
43
  before?(props: {
44
44
  open: boolean;
45
- }): import("vue").Slot;
45
+ }): unknown;
46
46
  after?(props: {
47
47
  open: boolean;
48
- }): import("vue").Slot;
48
+ }): unknown;
49
49
  }> & {
50
50
  default(props: {
51
51
  open: boolean;
52
- }): import("vue").Slot;
52
+ }): unknown;
53
53
  before?(props: {
54
54
  open: boolean;
55
- }): import("vue").Slot;
55
+ }): unknown;
56
56
  after?(props: {
57
57
  open: boolean;
58
- }): import("vue").Slot;
58
+ }): unknown;
59
59
  };
60
60
  });
61
61
  tags: string[];
@@ -1,4 +1,3 @@
1
- import type { Slot } from 'vue';
2
1
  import type { ScalarFloatingOptions } from '../ScalarFloating';
3
2
  import type { Option, OptionGroup } from './types.js';
4
3
  type Props = {
@@ -14,18 +13,18 @@ declare function __VLS_template(): {
14
13
  attrs: Partial<{}>;
15
14
  slots: Readonly<{
16
15
  /** The reference element for the combobox */
17
- default(props: SlotProps): Slot;
16
+ default(props: SlotProps): unknown;
18
17
  /** A slot for contents before the combobox options */
19
- before?(props: SlotProps): Slot;
18
+ before?(props: SlotProps): unknown;
20
19
  /** A slot for contents after the combobox options */
21
- after?(props: SlotProps): Slot;
20
+ after?(props: SlotProps): unknown;
22
21
  }> & {
23
22
  /** The reference element for the combobox */
24
- default(props: SlotProps): Slot;
23
+ default(props: SlotProps): unknown;
25
24
  /** A slot for contents before the combobox options */
26
- before?(props: SlotProps): Slot;
25
+ before?(props: SlotProps): unknown;
27
26
  /** A slot for contents after the combobox options */
28
- after?(props: SlotProps): Slot;
27
+ after?(props: SlotProps): unknown;
29
28
  };
30
29
  refs: {};
31
30
  rootEl: any;
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarCombobox.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAG9D,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAIlD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACjC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,GAAG,qBAAqB,CAAA;AAEzB,KAAK,SAAS,GAAG;IACf,0CAA0C;IAC1C,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AAyBD,iBAAS,cAAc;WAqFT,OAAO,IAA6B;;QAnGhD,6CAA6C;uBAC9B,SAAS,GAAG,IAAI;QAC/B,sDAAsD;uBACvC,SAAS,GAAG,IAAI;QAC/B,qDAAqD;sBACvC,SAAS,GAAG,IAAI;;QAL9B,6CAA6C;uBAC9B,SAAS,GAAG,IAAI;QAC/B,sDAAsD;uBACvC,SAAS,GAAG,IAAI;QAC/B,qDAAqD;sBACvC,SAAS,GAAG,IAAI;;;;EAmG/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAQnB,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":"ScalarCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarCombobox.vue"],"names":[],"mappings":"AAsEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAG9D,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAIlD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACjC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,GAAG,qBAAqB,CAAA;AAEzB,KAAK,SAAS,GAAG;IACf,0CAA0C;IAC1C,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AAyBD,iBAAS,cAAc;WAqFT,OAAO,IAA6B;;QAnGhD,6CAA6C;uBAC9B,SAAS,GAAG,OAAO;QAClC,sDAAsD;uBACvC,SAAS,GAAG,OAAO;QAClC,qDAAqD;sBACvC,SAAS,GAAG,OAAO;;QALjC,6CAA6C;uBAC9B,SAAS,GAAG,OAAO;QAClC,sDAAsD;uBACvC,SAAS,GAAG,OAAO;QAClC,qDAAqD;sBACvC,SAAS,GAAG,OAAO;;;;EAmGlC;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAQnB,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"}
@@ -21,9 +21,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
21
21
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
22
  onDelete?: ((option: Option) => any) | undefined;
23
23
  "onUpdate:modelValue"?: ((v: Option[]) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
25
- input: HTMLInputElement;
26
- }, any>;
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
25
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
26
  export default _default;
29
27
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarComboboxOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOptions.vue"],"names":[],"mappings":"AA4NA,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;AA4HF,iBAAS,cAAc;WA0KT,OAAO,IAA6B;;;;;;EAKjD;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;OAQnB,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":"AA8MA,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;AA8HF,iBAAS,cAAc;WA0KT,OAAO,IAA6B;;;;;;EAKjD;AAsBD,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,9 +1,9 @@
1
- import { defineComponent as O, useId as q, computed as b, ref as C, onMounted as F, watch as R, useTemplateRef as U, nextTick as j, createElementBlock as y, openBlock as c, Fragment as $, createElementVNode as g, withDirectives as M, createVNode as H, unref as J, withKeys as h, withModifiers as x, vModelText as P, renderSlot as B, renderList as S, createBlock as T, withCtx as w, createCommentVNode as Q, normalizeStyle as W, createTextVNode as E, toDisplayString as N, vShow as X } from "vue";
2
- import { ScalarIconMagnifyingGlass as Y } from "@scalar/icons";
3
- import Z from "./ScalarComboboxOption.vue.js";
4
- import _ from "./ScalarComboboxOptionGroup.vue.js";
5
- import { isGroups as L } from "./types.js";
6
- const ee = { class: "relative flex" }, te = ["aria-activedescendant", "placeholder"], le = ["aria-multiselectable"], re = /* @__PURE__ */ O({
1
+ import { defineComponent as q, useId as F, computed as b, ref as h, onMounted as M, watch as U, createElementBlock as y, openBlock as v, Fragment as $, createElementVNode as w, withDirectives as B, createVNode as j, unref as H, withKeys as x, withModifiers as g, vModelText as J, renderSlot as S, renderList as E, createBlock as N, withCtx as V, createCommentVNode as P, normalizeStyle as Q, createTextVNode as T, toDisplayString as L, vShow as R } from "vue";
2
+ import { ScalarIconMagnifyingGlass as W } from "@scalar/icons";
3
+ import X from "./ScalarComboboxOption.vue.js";
4
+ import Y from "./ScalarComboboxOptionGroup.vue.js";
5
+ import { isGroups as z } from "./types.js";
6
+ const Z = { class: "relative flex" }, _ = ["aria-activedescendant", "placeholder"], ee = ["aria-multiselectable"], se = /* @__PURE__ */ q({
7
7
  inheritAttrs: !1,
8
8
  __name: "ScalarComboboxOptions",
9
9
  props: {
@@ -14,41 +14,41 @@ const ee = { class: "relative flex" }, te = ["aria-activedescendant", "placehold
14
14
  isDeletable: { type: Boolean }
15
15
  },
16
16
  emits: ["update:modelValue", "delete"],
17
- setup(z, { emit: A }) {
18
- var D;
19
- const a = z, G = A, m = `scalar-combobox-items-${q()}`;
17
+ setup(A, { emit: G }) {
18
+ var C;
19
+ const a = A, K = G, m = `scalar-combobox-items-${F()}`;
20
20
  function p(e) {
21
21
  return `${m}-${e.id}`;
22
22
  }
23
23
  const f = b(
24
- () => L(a.options) ? a.options.flatMap((e) => e.options) : a.options
25
- ), K = b(
26
- () => L(a.options) ? a.options : [{ label: "", options: a.options }]
27
- ), r = C(""), o = C(
28
- ((D = a.modelValue) == null ? void 0 : D[0]) ?? f.value[0]
24
+ () => z(a.options) ? a.options.flatMap((e) => e.options) : a.options
25
+ ), O = b(
26
+ () => z(a.options) ? a.options : [{ label: "", options: a.options }]
27
+ ), r = h(""), o = h(
28
+ ((C = a.modelValue) == null ? void 0 : C[0]) ?? f.value[0]
29
29
  );
30
- F(async () => {
30
+ M(async () => {
31
31
  var e;
32
32
  r.value = "", o.value = ((e = a.modelValue) == null ? void 0 : e[0]) ?? f.value[0], s.value.length !== 0 && setTimeout(() => {
33
33
  var t;
34
34
  (t = document == null ? void 0 : document.getElementById(p(s.value[0]))) == null || t.scrollIntoView({ block: "nearest" });
35
35
  }, 10);
36
- }), R(
36
+ }), U(
37
37
  () => r.value,
38
- () => o.value = v.value[0]
38
+ () => o.value = c.value[0]
39
39
  );
40
- const v = b(
40
+ const c = b(
41
41
  () => r.value === "" ? f.value : f.value.filter((e) => e.label.toLowerCase().includes(r.value.toLowerCase()))
42
42
  ), s = b({
43
43
  get: () => a.modelValue ?? [],
44
- set: (e) => e && G("update:modelValue", e)
44
+ set: (e) => e && K("update:modelValue", e)
45
45
  });
46
46
  function k(e) {
47
47
  a.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];
48
48
  }
49
- function V(e) {
49
+ function I(e) {
50
50
  var l;
51
- const t = v.value, u = t.findIndex((d) => {
51
+ const t = c.value, u = t.findIndex((d) => {
52
52
  var i;
53
53
  return d.id === ((i = o.value) == null ? void 0 : i.id);
54
54
  }) + e;
@@ -57,17 +57,17 @@ const ee = { class: "relative flex" }, te = ["aria-activedescendant", "placehold
57
57
  block: "nearest"
58
58
  }));
59
59
  }
60
- const I = U("input");
61
- return j(() => {
60
+ const D = h(null);
61
+ return M(() => setTimeout(() => {
62
62
  var e;
63
- return (e = I.value) == null ? void 0 : e.focus();
64
- }), (e, t) => (c(), y($, null, [
65
- g("div", ee, [
66
- H(J(Y), { class: "pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-c-3 size-4" }),
67
- M(g("input", {
63
+ return (e = D.value) == null ? void 0 : e.focus();
64
+ }, 0)), (e, t) => (v(), y($, null, [
65
+ w("div", Z, [
66
+ j(H(W), { class: "pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-c-3 size-4" }),
67
+ B(w("input", {
68
68
  "onUpdate:modelValue": t[0] || (t[0] = (n) => r.value = n),
69
69
  ref_key: "input",
70
- ref: I,
70
+ ref: D,
71
71
  "aria-activedescendant": o.value ? p(o.value) : void 0,
72
72
  "aria-autocomplete": "list",
73
73
  "aria-controls": m,
@@ -78,70 +78,70 @@ const ee = { class: "relative flex" }, te = ["aria-activedescendant", "placehold
78
78
  tabindex: "0",
79
79
  type: "text",
80
80
  onKeydown: [
81
- t[1] || (t[1] = h(x((n) => V(1), ["prevent"]), ["down"])),
82
- t[2] || (t[2] = h(x((n) => o.value && k(o.value), ["prevent"]), ["enter"])),
83
- t[3] || (t[3] = h(x((n) => V(-1), ["prevent"]), ["up"]))
81
+ t[1] || (t[1] = x(g((n) => I(1), ["prevent"]), ["down"])),
82
+ t[2] || (t[2] = x(g((n) => o.value && k(o.value), ["prevent"]), ["enter"])),
83
+ t[3] || (t[3] = x(g((n) => I(-1), ["prevent"]), ["up"]))
84
84
  ]
85
- }, null, 40, te), [
86
- [P, r.value]
85
+ }, null, 40, _), [
86
+ [J, r.value]
87
87
  ])
88
88
  ]),
89
- M(g("ul", {
89
+ B(w("ul", {
90
90
  id: m,
91
91
  "aria-multiselectable": e.multiselect,
92
92
  class: "border-t p-0.75 custom-scroll overscroll-contain flex-1 min-h-0",
93
93
  role: "listbox",
94
94
  tabindex: "-1"
95
95
  }, [
96
- B(e.$slots, "before"),
97
- (c(!0), y($, null, S(K.value, (n, u) => (c(), T(_, {
96
+ S(e.$slots, "before"),
97
+ (v(!0), y($, null, E(O.value, (n, u) => (v(), N(Y, {
98
98
  id: `${m}-group-${u}`,
99
99
  key: u,
100
100
  hidden: (
101
101
  // Only show the group label if there are some results
102
- !n.options.some((l) => v.value.some((d) => d.id === l.id)) || // And it has a label
102
+ !n.options.some((l) => c.value.some((d) => d.id === l.id)) || // And it has a label
103
103
  !n.label
104
104
  )
105
105
  }, {
106
- label: w(() => [
107
- E(N(n.label), 1)
106
+ label: V(() => [
107
+ T(L(n.label), 1)
108
108
  ]),
109
- default: w(() => [
110
- (c(!0), y($, null, S(v.value, (l) => {
109
+ default: V(() => [
110
+ (v(!0), y($, null, E(c.value, (l) => {
111
111
  var d;
112
- return c(), y($, {
112
+ return v(), y($, {
113
113
  key: l.id
114
114
  }, [
115
- n.options.some((i) => i.id === l.id) ? (c(), T(Z, {
115
+ n.options.some((i) => i.id === l.id) ? (v(), N(X, {
116
116
  key: 0,
117
117
  id: p(l),
118
118
  active: ((d = o.value) == null ? void 0 : d.id) === l.id,
119
119
  isDeletable: l.isDeletable ?? e.isDeletable,
120
120
  selected: s.value.some((i) => i.id === l.id),
121
- style: W(e.multiselect ? "checkbox" : "radio"),
121
+ style: Q(e.multiselect ? "checkbox" : "radio"),
122
122
  onClick: (i) => k(l),
123
123
  onDelete: (i) => e.$emit("delete", l),
124
- onMousedown: t[4] || (t[4] = x(() => {
124
+ onMousedown: t[4] || (t[4] = g(() => {
125
125
  }, ["prevent"])),
126
126
  onMouseenter: (i) => o.value = l
127
127
  }, {
128
- default: w(() => [
129
- E(N(l.label), 1)
128
+ default: V(() => [
129
+ T(L(l.label), 1)
130
130
  ]),
131
131
  _: 2
132
- }, 1032, ["id", "active", "isDeletable", "selected", "style", "onClick", "onDelete", "onMouseenter"])) : Q("", !0)
132
+ }, 1032, ["id", "active", "isDeletable", "selected", "style", "onClick", "onDelete", "onMouseenter"])) : P("", !0)
133
133
  ], 64);
134
134
  }), 128))
135
135
  ]),
136
136
  _: 2
137
137
  }, 1032, ["id", "hidden"]))), 128)),
138
- B(e.$slots, "after")
139
- ], 8, le), [
140
- [X, v.value.length || e.$slots.before || e.$slots.after]
138
+ S(e.$slots, "after")
139
+ ], 8, ee), [
140
+ [R, c.value.length || e.$slots.before || e.$slots.after]
141
141
  ])
142
142
  ], 64));
143
143
  }
144
144
  });
145
145
  export {
146
- re as default
146
+ se as default
147
147
  };
@@ -15,10 +15,10 @@ export declare function isGroups(options: Option[] | OptionGroup[]): options is
15
15
  /** Available slots for the combobox */
16
16
  export type ComboboxSlots = {
17
17
  /** The reference element / trigger for the combobox */
18
- default(): any;
18
+ default(): unknown;
19
19
  /** A slot for contents before the combobox options */
20
- before?(): any;
20
+ before?(): unknown;
21
21
  /** A slot for contents after the combobox options */
22
- after?(): any;
22
+ after?(): unknown;
23
23
  };
24
24
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAA;AAED,kDAAkD;AAClD,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,IAAI,WAAW,CAE3E;AAED,uEAAuE;AACvE,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,IAAI,WAAW,EAAE,CAEpF;AAED,uCAAuC;AACvC,MAAM,MAAM,aAAa,GAAG;IAC1B,uDAAuD;IACvD,OAAO,IAAI,GAAG,CAAA;IACd,sDAAsD;IACtD,MAAM,CAAC,IAAI,GAAG,CAAA;IACd,qDAAqD;IACrD,KAAK,CAAC,IAAI,GAAG,CAAA;CACd,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAA;AAED,kDAAkD;AAClD,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,IAAI,WAAW,CAE3E;AAED,uEAAuE;AACvE,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,IAAI,WAAW,EAAE,CAEpF;AAED,uCAAuC;AACvC,MAAM,MAAM,aAAa,GAAG;IAC1B,uDAAuD;IACvD,OAAO,IAAI,OAAO,CAAA;IAClB,sDAAsD;IACtD,MAAM,CAAC,IAAI,OAAO,CAAA;IAClB,qDAAqD;IACrD,KAAK,CAAC,IAAI,OAAO,CAAA;CAClB,CAAA"}
@@ -16,17 +16,17 @@ declare const meta: {
16
16
  $slots: Readonly<{
17
17
  default(props: {
18
18
  open: boolean;
19
- }): any;
19
+ }): unknown;
20
20
  items(props: {
21
21
  open: boolean;
22
- }): any;
22
+ }): unknown;
23
23
  }> & {
24
24
  default(props: {
25
25
  open: boolean;
26
- }): any;
26
+ }): unknown;
27
27
  items(props: {
28
28
  open: boolean;
29
- }): any;
29
+ }): unknown;
30
30
  };
31
31
  });
32
32
  tags: string[];
@@ -58,17 +58,17 @@ declare const meta: {
58
58
  $slots: Readonly<{
59
59
  default(props: {
60
60
  open: boolean;
61
- }): any;
61
+ }): unknown;
62
62
  items(props: {
63
63
  open: boolean;
64
- }): any;
64
+ }): unknown;
65
65
  }> & {
66
66
  default(props: {
67
67
  open: boolean;
68
- }): any;
68
+ }): unknown;
69
69
  items(props: {
70
70
  open: boolean;
71
- }): any;
71
+ }): unknown;
72
72
  };
73
73
  })>) => {
74
74
  components: {
@@ -88,17 +88,17 @@ declare const meta: {
88
88
  $slots: Readonly<{
89
89
  default(props: {
90
90
  open: boolean;
91
- }): any;
91
+ }): unknown;
92
92
  items(props: {
93
93
  open: boolean;
94
- }): any;
94
+ }): unknown;
95
95
  }> & {
96
96
  default(props: {
97
97
  open: boolean;
98
- }): any;
98
+ }): unknown;
99
99
  items(props: {
100
100
  open: boolean;
101
- }): any;
101
+ }): unknown;
102
102
  };
103
103
  });
104
104
  ScalarDropdownItem: {
@@ -208,17 +208,17 @@ declare const meta: {
208
208
  $slots: Readonly<{
209
209
  default(props: {
210
210
  open: boolean;
211
- }): any;
211
+ }): unknown;
212
212
  items(props: {
213
213
  open: boolean;
214
- }): any;
214
+ }): unknown;
215
215
  }> & {
216
216
  default(props: {
217
217
  open: boolean;
218
- }): any;
218
+ }): unknown;
219
219
  items(props: {
220
220
  open: boolean;
221
- }): any;
221
+ }): unknown;
222
222
  };
223
223
  })>;
224
224
  };
@@ -19,23 +19,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Sc
19
19
  default(props: {
20
20
  /** Whether or not the dropdown is open */
21
21
  open: boolean;
22
- }): any;
22
+ }): unknown;
23
23
  /** The list of dropdown items */
24
24
  items(props: {
25
25
  /** Whether or not the dropdown is open */
26
26
  open: boolean;
27
- }): any;
27
+ }): unknown;
28
28
  }> & {
29
29
  /** The reference element for the element in the #floating slot */
30
30
  default(props: {
31
31
  /** Whether or not the dropdown is open */
32
32
  open: boolean;
33
- }): any;
33
+ }): unknown;
34
34
  /** The list of dropdown items */
35
35
  items(props: {
36
36
  /** Whether or not the dropdown is open */
37
37
  open: boolean;
38
- }): any;
38
+ }): unknown;
39
39
  }>;
40
40
  export default _default;
41
41
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdown.vue"],"names":[],"mappings":"AAsEA,OAAO,EAAkB,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAK9E;;;;;;;;;;;;;;GAcG;;IAOD,kEAAkE;mBACnD;QACb,0CAA0C;QAC1C,IAAI,EAAE,OAAO,CAAA;KACd,GAAG,GAAG;IACP,iCAAiC;iBACpB;QACX,0CAA0C;QAC1C,IAAI,EAAE,OAAO,CAAA;KACd,GAAG,GAAG;;IATP,kEAAkE;mBACnD;QACb,0CAA0C;QAC1C,IAAI,EAAE,OAAO,CAAA;KACd,GAAG,GAAG;IACP,iCAAiC;iBACpB;QACX,0CAA0C;QAC1C,IAAI,EAAE,OAAO,CAAA;KACd,GAAG,GAAG;;AAfT,wBA+HC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdown.vue"],"names":[],"mappings":"AAsEA,OAAO,EAAkB,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAK9E;;;;;;;;;;;;;;GAcG;;IAOD,kEAAkE;mBACnD;QACb,0CAA0C;QAC1C,IAAI,EAAE,OAAO,CAAA;KACd,GAAG,OAAO;IACX,iCAAiC;iBACpB;QACX,0CAA0C;QAC1C,IAAI,EAAE,OAAO,CAAA;KACd,GAAG,OAAO;;IATX,kEAAkE;mBACnD;QACb,0CAA0C;QAC1C,IAAI,EAAE,OAAO,CAAA;KACd,GAAG,OAAO;IACX,iCAAiC;iBACpB;QACX,0CAA0C;QAC1C,IAAI,EAAE,OAAO,CAAA;KACd,GAAG,OAAO;;AAfb,wBA+HC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -22,14 +22,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
22
22
  is?: string | Component;
23
23
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
24
24
  /** The menu contents */
25
- default(): any;
25
+ default(): unknown;
26
26
  /** Overrides the backdrop for the dropdown */
27
- backdrop?(): any;
27
+ backdrop?(): unknown;
28
28
  }> & {
29
29
  /** The menu contents */
30
- default(): any;
30
+ default(): unknown;
31
31
  /** Overrides the backdrop for the dropdown */
32
- backdrop?(): any;
32
+ backdrop?(): unknown;
33
33
  }>;
34
34
  export default _default;
35
35
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdownMenu.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAMpC;;;;;;;;;;;;;;GAcG;;IAID,8BAA8B;SACzB,MAAM,GAAG,SAAS;;IADvB,8BAA8B;SACzB,MAAM,GAAG,SAAS;;IAKvB,wBAAwB;eACb,GAAG;IACd,8CAA8C;iBACjC,GAAG;;IAHhB,wBAAwB;eACb,GAAG;IACd,8CAA8C;iBACjC,GAAG;;AAZlB,wBAqGC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdownMenu.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAMpC;;;;;;;;;;;;;;GAcG;;IAID,8BAA8B;SACzB,MAAM,GAAG,SAAS;;IADvB,8BAA8B;SACzB,MAAM,GAAG,SAAS;;IAKvB,wBAAwB;eACb,OAAO;IAClB,8CAA8C;iBACjC,OAAO;;IAHpB,wBAAwB;eACb,OAAO;IAClB,8CAA8C;iBACjC,OAAO;;AAZtB,wBAqGC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -60,19 +60,19 @@ declare const meta: {
60
60
  selected: (value: File[]) => any;
61
61
  }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
62
62
  $slots: Readonly<{
63
- default?: (props: {
63
+ default?(props: {
64
64
  open: () => void;
65
- }) => any;
66
- label?: () => any;
67
- 'drop-target'?: () => any;
68
- 'drop-target-label'?: () => any;
65
+ }): unknown;
66
+ label?(): unknown;
67
+ 'drop-target'?(): unknown;
68
+ 'drop-target-label'?(): unknown;
69
69
  }> & {
70
- default?: (props: {
70
+ default?(props: {
71
71
  open: () => void;
72
- }) => any;
73
- label?: () => any;
74
- 'drop-target'?: () => any;
75
- 'drop-target-label'?: () => any;
72
+ }): unknown;
73
+ label?(): unknown;
74
+ 'drop-target'?(): unknown;
75
+ 'drop-target-label'?(): unknown;
76
76
  };
77
77
  });
78
78
  tags: string[];
@@ -149,19 +149,19 @@ declare const meta: {
149
149
  selected: (value: File[]) => any;
150
150
  }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
151
151
  $slots: Readonly<{
152
- default?: (props: {
152
+ default?(props: {
153
153
  open: () => void;
154
- }) => any;
155
- label?: () => any;
156
- 'drop-target'?: () => any;
157
- 'drop-target-label'?: () => any;
154
+ }): unknown;
155
+ label?(): unknown;
156
+ 'drop-target'?(): unknown;
157
+ 'drop-target-label'?(): unknown;
158
158
  }> & {
159
- default?: (props: {
159
+ default?(props: {
160
160
  open: () => void;
161
- }) => any;
162
- label?: () => any;
163
- 'drop-target'?: () => any;
164
- 'drop-target-label'?: () => any;
161
+ }): unknown;
162
+ label?(): unknown;
163
+ 'drop-target'?(): unknown;
164
+ 'drop-target-label'?(): unknown;
165
165
  };
166
166
  })>) => {
167
167
  components: {
@@ -225,19 +225,19 @@ declare const meta: {
225
225
  selected: (value: File[]) => any;
226
226
  }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
227
227
  $slots: Readonly<{
228
- default?: (props: {
228
+ default?(props: {
229
229
  open: () => void;
230
- }) => any;
231
- label?: () => any;
232
- 'drop-target'?: () => any;
233
- 'drop-target-label'?: () => any;
230
+ }): unknown;
231
+ label?(): unknown;
232
+ 'drop-target'?(): unknown;
233
+ 'drop-target-label'?(): unknown;
234
234
  }> & {
235
- default?: (props: {
235
+ default?(props: {
236
236
  open: () => void;
237
- }) => any;
238
- label?: () => any;
239
- 'drop-target'?: () => any;
240
- 'drop-target-label'?: () => any;
237
+ }): unknown;
238
+ label?(): unknown;
239
+ 'drop-target'?(): unknown;
240
+ 'drop-target-label'?(): unknown;
241
241
  };
242
242
  });
243
243
  ScalarFileUploadFileList: import("vue").DefineComponent<{
@@ -314,19 +314,19 @@ declare const meta: {
314
314
  selected: (value: File[]) => any;
315
315
  }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
316
316
  $slots: Readonly<{
317
- default?: (props: {
317
+ default?(props: {
318
318
  open: () => void;
319
- }) => any;
320
- label?: () => any;
321
- 'drop-target'?: () => any;
322
- 'drop-target-label'?: () => any;
319
+ }): unknown;
320
+ label?(): unknown;
321
+ 'drop-target'?(): unknown;
322
+ 'drop-target-label'?(): unknown;
323
323
  }> & {
324
- default?: (props: {
324
+ default?(props: {
325
325
  open: () => void;
326
- }) => any;
327
- label?: () => any;
328
- 'drop-target'?: () => any;
329
- 'drop-target-label'?: () => any;
326
+ }): unknown;
327
+ label?(): unknown;
328
+ 'drop-target'?(): unknown;
329
+ 'drop-target-label'?(): unknown;
330
330
  };
331
331
  })>;
332
332
  files: import("vue").Ref<{
@@ -54,28 +54,28 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
54
54
  "onUpdate:error"?: ((value: string) => any) | undefined;
55
55
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
56
56
  /** Override the entire input */
57
- default?: (props: {
57
+ default?(props: {
58
58
  /** Open the file dialog to select files */
59
59
  open: () => void;
60
- }) => any;
60
+ }): unknown;
61
61
  /** Override the label */
62
- label?: () => any;
62
+ label?(): unknown;
63
63
  /** Override the entire drop target */
64
- 'drop-target'?: () => any;
64
+ 'drop-target'?(): unknown;
65
65
  /** Override the drop target label */
66
- 'drop-target-label'?: () => any;
66
+ 'drop-target-label'?(): unknown;
67
67
  }> & {
68
68
  /** Override the entire input */
69
- default?: (props: {
69
+ default?(props: {
70
70
  /** Open the file dialog to select files */
71
71
  open: () => void;
72
- }) => any;
72
+ }): unknown;
73
73
  /** Override the label */
74
- label?: () => any;
74
+ label?(): unknown;
75
75
  /** Override the entire drop target */
76
- 'drop-target'?: () => any;
76
+ 'drop-target'?(): unknown;
77
77
  /** Override the drop target label */
78
- 'drop-target-label'?: () => any;
78
+ 'drop-target-label'?(): unknown;
79
79
  }>;
80
80
  export default _default;
81
81
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarFileUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUpload.vue"],"names":[],"mappings":"AAkLA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAMpD,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,SAAS,CAAA;AAI7D;;;;;;;;;;GAUG;;iBAwGU,IAAI,EAAE;YACT,MAAM;;IArGd,6CAA6C;eAClC,OAAO;IAClB;;;;OAIG;aACM,aAAa,GAAG,MAAM;IAC/B,yCAAyC;aAChC,YAAY;IACrB,yCAAyC;cAC/B,SAAS,GAAG,SAAS;;;;;;;iBAyFpB,IAAI,EAAE;YACT,MAAM;;IArGd,6CAA6C;eAClC,OAAO;IAClB;;;;OAIG;aACM,aAAa,GAAG,MAAM;IAC/B,yCAAyC;aAChC,YAAY;IACrB,yCAAyC;cAC/B,SAAS,GAAG,SAAS;;;;;;IAgB/B,gCAAgC;cACpB,CAAC,KAAK,EAAE;QAClB,2CAA2C;QAC3C,IAAI,EAAE,MAAM,IAAI,CAAA;KACjB,KAAK,GAAG;IACT,yBAAyB;YACf,MAAM,GAAG;IACnB,sCAAsC;oBACtB,MAAM,GAAG;IACzB,qCAAqC;0BACf,MAAM,GAAG;;IAV/B,gCAAgC;cACpB,CAAC,KAAK,EAAE;QAClB,2CAA2C;QAC3C,IAAI,EAAE,MAAM,IAAI,CAAA;KACjB,KAAK,GAAG;IACT,yBAAyB;YACf,MAAM,GAAG;IACnB,sCAAsC;oBACtB,MAAM,GAAG;IACzB,qCAAqC;0BACf,MAAM,GAAG;;AAxCjC,wBA8QC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarFileUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUpload.vue"],"names":[],"mappings":"AAkLA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAMpD,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,SAAS,CAAA;AAI7D;;;;;;;;;;GAUG;;iBAwGU,IAAI,EAAE;YACT,MAAM;;IArGd,6CAA6C;eAClC,OAAO;IAClB;;;;OAIG;aACM,aAAa,GAAG,MAAM;IAC/B,yCAAyC;aAChC,YAAY;IACrB,yCAAyC;cAC/B,SAAS,GAAG,SAAS;;;;;;;iBAyFpB,IAAI,EAAE;YACT,MAAM;;IArGd,6CAA6C;eAClC,OAAO;IAClB;;;;OAIG;aACM,aAAa,GAAG,MAAM;IAC/B,yCAAyC;aAChC,YAAY;IACrB,yCAAyC;cAC/B,SAAS,GAAG,SAAS;;;;;;IAgB/B,gCAAgC;oBACd;QAChB,2CAA2C;QAC3C,IAAI,EAAE,MAAM,IAAI,CAAA;KACjB,GAAG,OAAO;IACX,yBAAyB;cACb,OAAO;IACnB,sCAAsC;sBACpB,OAAO;IACzB,qCAAqC;4BACb,OAAO;;IAV/B,gCAAgC;oBACd;QAChB,2CAA2C;QAC3C,IAAI,EAAE,MAAM,IAAI,CAAA;KACjB,GAAG,OAAO;IACX,yBAAyB;cACb,OAAO;IACnB,sCAAsC;sBACpB,OAAO;IACzB,qCAAqC;4BACb,OAAO;;AAxCjC,wBA8QC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -25,8 +25,8 @@ export type FileUploadInputEmits = {
25
25
  */
26
26
  export type FileUploadInputSlots = {
27
27
  /** The default label slot */
28
- default: () => any;
28
+ default?(): unknown;
29
29
  /** The sublabel or error slot */
30
- sublabel: () => any;
30
+ sublabel?(): unknown;
31
31
  };
32
32
  //# sourceMappingURL=types.d.ts.map