select-dropdown.d.ts 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import { FixedSizeListInstance } from "../../virtual-list/src/components/fixed-size-list.js";
  2. import { DynamicSizeListInstance } from "../../virtual-list/src/components/dynamic-size-list.js";
  3. import { ScrollbarDirection } from "../../scrollbar/src/scrollbar.js";
  4. import { Option } from "./select.types.js";
  5. import * as _$vue from "vue";
  6. import { ComponentPublicInstance, ComputedRef, ExtractPropTypes, Ref } from "vue";
  7. import * as _$vue_jsx_runtime0 from "vue/jsx-runtime";
  8. //#region ../../packages/components/select-v2/src/select-dropdown.d.ts
  9. declare const props: {
  10. loading: BooleanConstructor;
  11. data: {
  12. type: ArrayConstructor;
  13. required: true;
  14. };
  15. hoveringIndex: NumberConstructor;
  16. width: NumberConstructor;
  17. id: StringConstructor;
  18. ariaLabel: StringConstructor;
  19. };
  20. interface SelectDropdownExposed {
  21. listRef: Ref<FixedSizeListInstance | DynamicSizeListInstance | undefined>;
  22. isSized: ComputedRef<boolean>;
  23. isItemDisabled: (modelValue: any[] | any, selected: boolean) => boolean;
  24. isItemHovering: (target: number) => boolean;
  25. isItemSelected: (modelValue: any[] | any, target: Option) => boolean;
  26. scrollToItem: (index: number) => void;
  27. resetScrollTop: () => void;
  28. }
  29. type SelectDropdownInstance = ComponentPublicInstance<ExtractPropTypes<typeof props>, SelectDropdownExposed>;
  30. declare const _default: _$vue.DefineComponent<ExtractPropTypes<{
  31. loading: BooleanConstructor;
  32. data: {
  33. type: ArrayConstructor;
  34. required: true;
  35. };
  36. hoveringIndex: NumberConstructor;
  37. width: NumberConstructor;
  38. id: StringConstructor;
  39. ariaLabel: StringConstructor;
  40. }>, () => _$vue_jsx_runtime0.JSX.Element, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
  41. 'end-reached': (direction: ScrollbarDirection) => boolean;
  42. }, string, _$vue.PublicProps, Readonly<ExtractPropTypes<{
  43. loading: BooleanConstructor;
  44. data: {
  45. type: ArrayConstructor;
  46. required: true;
  47. };
  48. hoveringIndex: NumberConstructor;
  49. width: NumberConstructor;
  50. id: StringConstructor;
  51. ariaLabel: StringConstructor;
  52. }>> & Readonly<{
  53. "onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
  54. }>, {
  55. loading: boolean;
  56. }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
  57. //#endregion
  58. export { SelectDropdownInstance, _default as default };