@finmars/ui 1.0.35 → 1.0.37

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.
@@ -1,36 +1,29 @@
1
+ import { FmChipProps, FmChipSlots } from './types';
2
+ declare function __VLS_template(): {
3
+ slots: Readonly<FmChipSlots> & FmChipSlots;
4
+ refs: {};
5
+ attrs: Partial<{}>;
6
+ };
7
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
8
+ declare const __VLS_component: import('vue').DefineComponent<FmChipProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ click: (value: MouseEvent) => any;
10
+ "click:prepend": (value: MouseEvent) => any;
11
+ "click:append": (value: MouseEvent) => any;
12
+ "click:close": (value: MouseEvent) => any;
13
+ keydown: (value: KeyboardEvent) => any;
14
+ }, string, import('vue').PublicProps, Readonly<FmChipProps> & Readonly<{
15
+ onClick?: ((value: MouseEvent) => any) | undefined;
16
+ "onClick:prepend"?: ((value: MouseEvent) => any) | undefined;
17
+ "onClick:append"?: ((value: MouseEvent) => any) | undefined;
18
+ "onClick:close"?: ((value: MouseEvent) => any) | undefined;
19
+ onKeydown?: ((value: KeyboardEvent) => any) | undefined;
20
+ }>, {
21
+ type: "standard" | "outlined";
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
1
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
24
  export default _default;
3
- type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
- $slots: S;
5
- });
6
- declare const __VLS_component: import('vue').DefineComponent<{}, {
7
- $emit: (event: "update:modelValue" | "click" | "click:close" | "click:prepend" | "click:append", ...args: any[]) => void;
8
- rounded: boolean;
9
- disabled: boolean;
10
- closable: boolean;
11
- elevation: boolean;
12
- selected: boolean;
13
- draggable: boolean;
14
- appendIcon?: string | Record<string, any> | undefined;
15
- prependIcon?: string | Record<string, any> | undefined;
16
- modelValue?: string | undefined;
17
- $props: {
18
- readonly rounded?: boolean | undefined;
19
- readonly disabled?: boolean | undefined;
20
- readonly closable?: boolean | undefined;
21
- readonly elevation?: boolean | undefined;
22
- readonly selected?: boolean | undefined;
23
- readonly draggable?: boolean | undefined;
24
- readonly appendIcon?: string | Record<string, any> | undefined;
25
- readonly prependIcon?: string | Record<string, any> | undefined;
26
- readonly modelValue?: string | undefined;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
27
28
  };
28
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
29
- type __VLS_TemplateResult = {
30
- slots: {
31
- default?(_: {}): any;
32
- };
33
- refs: {};
34
- attrs: Partial<typeof __VLS_inheritedAttrs>;
35
29
  };
36
- declare var __VLS_inheritedAttrs: {};
@@ -0,0 +1,25 @@
1
+ import { VNode } from 'vue';
2
+ import { FmComponentIcon } from '../../../types';
3
+ export interface FmChipProps {
4
+ value?: string;
5
+ type?: 'standard' | 'outlined';
6
+ prependIcon?: FmComponentIcon | string;
7
+ appendIcon?: FmComponentIcon | string;
8
+ closable?: boolean;
9
+ rounded?: boolean;
10
+ elevated?: boolean;
11
+ dragged?: boolean;
12
+ readonly?: boolean;
13
+ disabled?: boolean;
14
+ }
15
+ export interface FmChipEmits {
16
+ (event: 'click', value: MouseEvent): void;
17
+ (event: 'click:prepend', value: MouseEvent): void;
18
+ (event: 'click:append', value: MouseEvent): void;
19
+ (event: 'click:close', value: MouseEvent): void;
20
+ (event: 'keydown', value: KeyboardEvent): void;
21
+ }
22
+ export interface FmChipSlots {
23
+ 'prepend-icon': () => VNode;
24
+ 'append-icon': () => VNode;
25
+ }
@@ -7,13 +7,13 @@ declare const _default: import('vue').DefineComponent<{}, {
7
7
  border: boolean;
8
8
  minWidth?: string | number | undefined;
9
9
  modelValue?: string | undefined;
10
+ header?: string | undefined;
11
+ title?: string | undefined;
10
12
  width?: string | number | undefined;
11
13
  maxWidth?: string | number | undefined;
12
14
  height?: string | number | undefined;
13
15
  max?: string | undefined;
14
16
  min?: string | undefined;
15
- title?: string | undefined;
16
- header?: string | undefined;
17
17
  allowedDates?: Function | unknown[] | undefined;
18
18
  minHeight?: string | number | undefined;
19
19
  maxHeight?: string | number | undefined;
@@ -25,13 +25,13 @@ declare const _default: import('vue').DefineComponent<{}, {
25
25
  readonly border?: boolean | undefined;
26
26
  readonly minWidth?: string | number | undefined;
27
27
  readonly modelValue?: string | undefined;
28
+ readonly header?: string | undefined;
29
+ readonly title?: string | undefined;
28
30
  readonly width?: string | number | undefined;
29
31
  readonly maxWidth?: string | number | undefined;
30
32
  readonly height?: string | number | undefined;
31
33
  readonly max?: string | undefined;
32
34
  readonly min?: string | undefined;
33
- readonly title?: string | undefined;
34
- readonly header?: string | undefined;
35
35
  readonly allowedDates?: Function | unknown[] | undefined;
36
36
  readonly minHeight?: string | number | undefined;
37
37
  readonly maxHeight?: string | number | undefined;
@@ -4,7 +4,8 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
4
  $slots: S;
5
5
  });
6
6
  declare const __VLS_component: import('vue').DefineComponent<{}, {
7
- $emit: (event: "update:modelValue" | "click:item", ...args: any[]) => void;
7
+ $emit: (event: "update:modelValue" | "click:item" | "menu:keydown", ...args: any[]) => void;
8
+ loading: boolean;
8
9
  disabled: boolean;
9
10
  modelValue: boolean;
10
11
  items: unknown[];
@@ -22,6 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
22
23
  attach: string | boolean | Record<string, any>;
23
24
  itemSize: string;
24
25
  minWidth?: string | number | undefined;
26
+ id?: string | undefined;
25
27
  width?: string | number | undefined;
26
28
  maxWidth?: string | number | undefined;
27
29
  height?: string | number | undefined;
@@ -32,6 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
32
34
  offset?: string | number | unknown[] | undefined;
33
35
  contentClass?: string | undefined;
34
36
  $props: {
37
+ readonly loading?: boolean | undefined;
35
38
  readonly disabled?: boolean | undefined;
36
39
  readonly modelValue?: boolean | undefined;
37
40
  readonly items?: unknown[] | undefined;
@@ -49,6 +52,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
49
52
  readonly attach?: string | boolean | Record<string, any> | undefined;
50
53
  readonly itemSize?: string | undefined;
51
54
  readonly minWidth?: string | number | undefined;
55
+ readonly id?: string | undefined;
52
56
  readonly width?: string | number | undefined;
53
57
  readonly maxWidth?: string | number | undefined;
54
58
  readonly height?: string | number | undefined;
@@ -68,6 +72,18 @@ type __VLS_TemplateResult = {
68
72
  targetRef: any;
69
73
  }): any;
70
74
  default?(_: {}): any;
75
+ item?(_: {
76
+ item: unknown;
77
+ index: number;
78
+ }): any;
79
+ "item-prepend"?(_: {
80
+ item: unknown;
81
+ index: number;
82
+ }): any;
83
+ "item-append"?(_: {
84
+ item: unknown;
85
+ index: number;
86
+ }): any;
71
87
  };
72
88
  refs: {};
73
89
  attrs: Partial<typeof __VLS_inheritedAttrs>;
@@ -5,9 +5,9 @@ declare const _default: import('vue').DefineComponent<{}, {
5
5
  icon?: string | undefined;
6
6
  href?: string | undefined;
7
7
  to?: string | undefined;
8
- label?: string | undefined;
9
8
  style?: Record<string, any> | undefined;
10
9
  children?: unknown[] | undefined;
10
+ label?: string | undefined;
11
11
  level?: number | undefined;
12
12
  action?: Function | undefined;
13
13
  classes?: string | undefined;
@@ -18,9 +18,9 @@ declare const _default: import('vue').DefineComponent<{}, {
18
18
  readonly icon?: string | undefined;
19
19
  readonly href?: string | undefined;
20
20
  readonly to?: string | undefined;
21
- readonly label?: string | undefined;
22
21
  readonly style?: Record<string, any> | undefined;
23
22
  readonly children?: unknown[] | undefined;
23
+ readonly label?: string | undefined;
24
24
  readonly level?: number | undefined;
25
25
  readonly action?: Function | undefined;
26
26
  readonly classes?: string | undefined;
@@ -2,15 +2,15 @@ declare const _default: import('vue').DefineComponent<{}, {
2
2
  $emit: (event: "resizeSideNav", ...args: any[]) => void;
3
3
  isFloat: boolean;
4
4
  isVue: boolean;
5
+ base?: string | undefined;
5
6
  alternativeLink?: string | undefined;
6
7
  route?: Record<string, any> | undefined;
7
- base?: string | undefined;
8
8
  $props: {
9
9
  readonly isFloat?: boolean | undefined;
10
10
  readonly isVue?: boolean | undefined;
11
+ readonly base?: string | undefined;
11
12
  readonly alternativeLink?: string | undefined;
12
13
  readonly route?: Record<string, any> | undefined;
13
- readonly base?: string | undefined;
14
14
  };
15
15
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
16
  export default _default;
@@ -9,15 +9,15 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
9
9
  readonly: boolean;
10
10
  direction: string;
11
11
  modelValue?: string | number | boolean | undefined;
12
- name?: string | undefined;
13
12
  label?: string | undefined;
13
+ name?: string | undefined;
14
14
  $props: {
15
15
  readonly disabled?: boolean | undefined;
16
16
  readonly readonly?: boolean | undefined;
17
17
  readonly direction?: string | undefined;
18
18
  readonly modelValue?: string | number | boolean | undefined;
19
- readonly name?: string | undefined;
20
19
  readonly label?: string | undefined;
20
+ readonly name?: string | undefined;
21
21
  };
22
22
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
23
23
  type __VLS_TemplateResult = {
@@ -4,7 +4,7 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
4
  $slots: S;
5
5
  });
6
6
  declare const __VLS_component: import('vue').DefineComponent<{}, {
7
- $emit: (event: "update:modelValue" | "click:prepend" | "click:append" | "start" | "end", ...args: any[]) => void;
7
+ $emit: (event: "update:modelValue" | "start" | "end" | "click:prepend" | "click:append", ...args: any[]) => void;
8
8
  $props: {
9
9
  readonly [x: string]: any;
10
10
  };
@@ -8,11 +8,11 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
8
8
  loading: boolean;
9
9
  disabled: boolean;
10
10
  error: boolean;
11
+ style: Record<string, any>;
12
+ readonly: boolean;
11
13
  placeholder: string;
12
14
  hideDetails: boolean;
13
15
  rules: unknown[];
14
- readonly: boolean;
15
- style: Record<string, any>;
16
16
  prependInnerIcon: string;
17
17
  multiple: boolean;
18
18
  items: unknown[];
@@ -32,23 +32,23 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
32
32
  returnObject: boolean;
33
33
  minWidth?: string | number | undefined;
34
34
  modelValue?: string | number | Record<string, any> | undefined;
35
+ search?: string | undefined;
35
36
  id?: string | undefined;
36
37
  name?: string | undefined;
37
38
  width?: string | number | undefined;
38
39
  hint?: string | undefined;
39
40
  errorMessages?: string | unknown[] | undefined;
40
41
  maxWidth?: string | number | undefined;
41
- search?: string | undefined;
42
42
  noDataText?: string | undefined;
43
43
  $props: {
44
44
  readonly loading?: boolean | undefined;
45
45
  readonly disabled?: boolean | undefined;
46
46
  readonly error?: boolean | undefined;
47
+ readonly style?: Record<string, any> | undefined;
48
+ readonly readonly?: boolean | undefined;
47
49
  readonly placeholder?: string | undefined;
48
50
  readonly hideDetails?: boolean | undefined;
49
51
  readonly rules?: unknown[] | undefined;
50
- readonly readonly?: boolean | undefined;
51
- readonly style?: Record<string, any> | undefined;
52
52
  readonly prependInnerIcon?: string | undefined;
53
53
  readonly multiple?: boolean | undefined;
54
54
  readonly items?: unknown[] | undefined;
@@ -68,13 +68,13 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
68
68
  readonly returnObject?: boolean | undefined;
69
69
  readonly minWidth?: string | number | undefined;
70
70
  readonly modelValue?: string | number | Record<string, any> | undefined;
71
+ readonly search?: string | undefined;
71
72
  readonly id?: string | undefined;
72
73
  readonly name?: string | undefined;
73
74
  readonly width?: string | number | undefined;
74
75
  readonly hint?: string | undefined;
75
76
  readonly errorMessages?: string | unknown[] | undefined;
76
77
  readonly maxWidth?: string | number | undefined;
77
- readonly search?: string | undefined;
78
78
  readonly noDataText?: string | undefined;
79
79
  };
80
80
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,17 +1,18 @@
1
- import { FmSelectProps, FmSelectEmits, FmSelectSlots } from './types';
2
- declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1
+ import { FmSelectOption, FmSelectProps, FmSelectEmits, FmSelectSlots } from './types';
2
+ declare const _default: <T extends FmSelectOption, K extends string & keyof T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
- readonly "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
5
- readonly "onClick:prepend"?: ((value: MouseEvent) => any) | undefined;
4
+ readonly "onUpdate:modelValue"?: ((value: T | T[K] | T[K][] | T[] | null) => any) | undefined;
6
5
  readonly "onClick:clear"?: ((value: MouseEvent) => any) | undefined;
7
- readonly "onClick:prependInner"?: ((value: MouseEvent) => any) | undefined;
8
- readonly "onUpdate:focused"?: ((value: boolean) => any) | undefined;
9
- readonly "onClick:selection"?: ((value: MouseEvent) => any) | undefined;
10
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:focused" | "onClick:prepend" | "onUpdate:modelValue" | "onClick:clear" | "onClick:prependInner" | "onClick:selection"> & FmSelectProps<T>> & import('vue').PublicProps;
6
+ readonly onFocus?: ((value: FocusEvent) => any) | undefined;
7
+ readonly onBlur?: ((value: FocusEvent) => any) | undefined;
8
+ readonly onChange?: ((value: T | T[K] | T[K][] | T[] | null) => any) | undefined;
9
+ readonly "onUpdate:menu"?: ((value: boolean) => any) | undefined;
10
+ readonly "onClick:prependIcon"?: ((value: MouseEvent) => any) | undefined;
11
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:modelValue" | "onClick:clear" | "onUpdate:menu" | "onClick:prependIcon"> & FmSelectProps<T, K>> & import('vue').PublicProps;
11
12
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
12
13
  attrs: any;
13
14
  slots: Readonly<FmSelectSlots<T>> & FmSelectSlots<T>;
14
- emit: FmSelectEmits<T>;
15
+ emit: FmSelectEmits<T, K>;
15
16
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
16
17
  [key: string]: any;
17
18
  }> & {
@@ -0,0 +1,39 @@
1
+ import { FmSelectActivatorProps, FmSelectActivatorSlots } from './types';
2
+ declare function __VLS_template(): {
3
+ slots: Readonly<FmSelectActivatorSlots> & FmSelectActivatorSlots;
4
+ refs: {
5
+ activatorEl: HTMLDivElement;
6
+ };
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<FmSelectActivatorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ keydown: (value: {
12
+ event: KeyboardEvent;
13
+ key: "down" | "up" | "esc" | "enter" | "space" | "tab";
14
+ }) => any;
15
+ "click:clear": (value: MouseEvent) => any;
16
+ focus: (value: FocusEvent) => any;
17
+ blur: (value: FocusEvent) => any;
18
+ init: (value: HTMLDivElement) => any;
19
+ "click:prependIcon": (value: MouseEvent) => any;
20
+ }, string, import('vue').PublicProps, Readonly<FmSelectActivatorProps> & Readonly<{
21
+ onKeydown?: ((value: {
22
+ event: KeyboardEvent;
23
+ key: "down" | "up" | "esc" | "enter" | "space" | "tab";
24
+ }) => any) | undefined;
25
+ "onClick:clear"?: ((value: MouseEvent) => any) | undefined;
26
+ onFocus?: ((value: FocusEvent) => any) | undefined;
27
+ onBlur?: ((value: FocusEvent) => any) | undefined;
28
+ onInit?: ((value: HTMLDivElement) => any) | undefined;
29
+ "onClick:prependIcon"?: ((value: MouseEvent) => any) | undefined;
30
+ }>, {
31
+ variant: "standard" | "outlined";
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
+ export default _default;
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -1,110 +1,80 @@
1
- import { ComputedRef, Ref, VNode } from 'vue';
2
- interface ListItem<T = any> {
3
- title: string;
4
- props: {
5
- [key: string]: any;
6
- title: string;
7
- value: any;
8
- };
9
- children?: ListItem<T>[];
1
+ import { VNode } from 'vue';
2
+ export interface FmSelectOption {
3
+ title?: string;
4
+ value: string;
10
5
  }
11
- export interface FmSelectProps<T> {
12
- appendIcon?: string;
13
- bgColor?: string;
14
- color?: string;
15
- density: 'default' | 'comfortable' | 'compact';
16
- chips?: boolean;
6
+ export interface FmSelectActivatorProps {
7
+ value: string;
8
+ isDropdownOpened?: boolean;
9
+ variant: 'standard' | 'outlined';
10
+ label?: string;
11
+ placeholder?: string;
12
+ persistentPlaceholder?: boolean;
13
+ prependIcon?: string;
14
+ clearIcon?: string;
17
15
  clearable?: boolean;
18
- closableChips?: boolean;
19
- disabled?: boolean;
16
+ chip?: boolean;
17
+ width?: number | string;
20
18
  error?: boolean;
21
- errorMessages?: string | string[];
22
- focused?: boolean;
23
- hideDetails?: boolean;
24
- hideNoData?: boolean;
25
- hideSelected?: boolean;
26
- hint?: string;
27
- itemProps?: string | boolean;
28
- items: T[];
29
- itemTitle?: keyof T | string | any;
30
- itemValue?: keyof T | string | any;
31
19
  loading?: boolean;
32
- menu?: boolean;
33
- menuProps?: any;
34
- messages?: string | string[];
35
- maxWidth?: number | string;
36
- minWidth?: number | string;
37
- width?: number | string;
38
- modelValue?: T | T[keyof T] | any;
39
- multiple?: boolean;
40
- name?: string;
41
- noDataText?: string;
42
- openOnClear?: boolean;
20
+ disabled?: boolean;
21
+ }
22
+ export interface FmSelectActivatorSlots {
23
+ default: () => VNode;
24
+ }
25
+ export interface FmSelectActivatorEmits {
26
+ (event: 'init', value: HTMLDivElement): void;
27
+ (event: 'focus', value: FocusEvent): void;
28
+ (event: 'blur', value: FocusEvent): void;
29
+ (event: 'click:clear', value: MouseEvent): void;
30
+ (event: 'click:prependIcon', value: MouseEvent): void;
31
+ (event: 'keydown', value: {
32
+ event: KeyboardEvent;
33
+ key: 'down' | 'up' | 'esc' | 'enter' | 'space' | 'tab';
34
+ }): void;
35
+ }
36
+ export interface FmSelectProps<T extends FmSelectOption, K extends string & keyof T> {
37
+ modelValue: T[K] | Array<T[K]> | T | T[];
38
+ options: T[];
39
+ itemSize?: 'small' | 'medium' | 'large';
40
+ variant?: 'standard' | 'outlined';
41
+ label?: string;
43
42
  placeholder?: string;
44
- prependIcon?: string | any;
45
- prependInnerIcon?: string | any;
46
- readonly?: boolean;
43
+ persistentPlaceholder?: boolean;
44
+ prependIcon?: string;
45
+ clearIcon?: string;
46
+ multiple?: boolean;
47
47
  returnObject?: boolean;
48
- rounded?: string | number | boolean;
49
- singleLine?: boolean;
50
- tile?: boolean;
51
- variant?: 'outlined' | 'plain' | 'underlined' | 'filled' | 'solo' | 'solo-inverted' | 'solo-filled';
48
+ chip?: boolean;
49
+ clearable?: boolean;
50
+ error?: boolean;
51
+ width?: number | string;
52
+ titleKey?: K | string;
53
+ valueKey?: K | string;
54
+ rules?: Array<(value: T) => boolean | string>;
55
+ loading?: boolean;
56
+ noDataText?: string;
57
+ disabled?: boolean;
52
58
  }
53
- export interface FmSelectEmits<T> {
59
+ export interface FmSelectEmits<T extends FmSelectOption, K extends string & keyof T> {
60
+ (event: 'click:prependIcon', value: MouseEvent): void;
54
61
  (event: 'click:clear', value: MouseEvent): void;
55
- (event: 'click:prepend', value: MouseEvent): void;
56
- (event: 'click:prependInner', value: MouseEvent): void;
57
- (event: 'click:selection', value: MouseEvent): void;
58
- (event: 'update:focused', value: boolean): void;
59
- (event: 'update:modelValue', value: T | T[keyof T] | unknown): void;
62
+ (event: 'focus', value: FocusEvent): void;
63
+ (event: 'blur', value: FocusEvent): void;
64
+ (event: 'update:menu', value: boolean): void;
65
+ (event: 'change', value: T[K] | Array<T[K]> | T | T[] | null): void;
66
+ (event: 'update:modelValue', value: T[K] | Array<T[K]> | T | T[] | null): void;
60
67
  }
61
- export interface FmSelectSlots<T> {
62
- 'append-inner': (props: {
63
- isActive: Ref<boolean>;
64
- isFocused: Ref<boolean>;
65
- controlRef: Ref<HTMLElement | undefined>;
66
- }) => VNode;
67
- chip: (props: {
68
- item: ListItem<T>;
69
- index: number;
70
- props: Record<string, any>;
71
- }) => VNode;
72
- clear: (props: {
73
- isActive: Ref<boolean>;
74
- isFocused: Ref<boolean>;
75
- controlRef: Ref<HTMLElement | undefined>;
76
- }) => VNode;
77
- details: (props: {
78
- id: ComputedRef<string>;
79
- messagesId: ComputedRef<string>;
80
- isDirty: ComputedRef<boolean>;
81
- isDisabled: ComputedRef<boolean>;
82
- isReadonly: ComputedRef<boolean>;
83
- isPristine: Ref<boolean>;
84
- isValid: ComputedRef<boolean | null>;
85
- isValidating: Ref<boolean>;
86
- }) => VNode;
68
+ export interface FmSelectSlots<T extends FmSelectOption> {
69
+ 'prepend-icon': () => VNode;
70
+ 'clear-icon': () => VNode;
87
71
  item: (props: {
88
- item: ListItem<T>;
72
+ item: T;
89
73
  index: number;
90
- props: Record<string, any>;
91
- }) => VNode;
92
- loader: (props: {
93
- color?: string;
94
- isActive: boolean;
95
- }) => VNode;
96
- message: (props: {
97
- message: string;
98
74
  }) => VNode;
75
+ loader: () => VNode;
99
76
  'no-data': () => VNode;
100
- 'prepend-inner': (props: {
101
- isActive: Ref<boolean>;
102
- isFocused: Ref<boolean>;
103
- controlRef: Ref<HTMLElement | undefined>;
104
- }) => VNode;
105
77
  selection: (props: {
106
- item: ListItem<T>;
107
- index: number;
78
+ value: T[];
108
79
  }) => VNode;
109
80
  }
110
- export {};
@@ -4,7 +4,7 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
4
  $slots: S;
5
5
  });
6
6
  declare const __VLS_component: import('vue').DefineComponent<{}, {
7
- $emit: (event: "update:modelValue" | "click:prepend" | "click:append" | "start" | "end", ...args: any[]) => void;
7
+ $emit: (event: "update:modelValue" | "start" | "end" | "click:prepend" | "click:append", ...args: any[]) => void;
8
8
  $props: {
9
9
  readonly [x: string]: any;
10
10
  };
@@ -10,7 +10,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
10
10
  reset: any;
11
11
  resetValidation: any;
12
12
  validate: any;
13
- $emit: (event: "update:modelValue" | "click:clear" | "click:control" | "click:prependInner" | "mousedown:control" | "update:focused" | "change", ...args: any[]) => void;
13
+ $emit: (event: "update:modelValue" | "click:clear" | "click:control" | "click:prependInner" | "mousedown:control" | "focus" | "blur" | "change", ...args: any[]) => void;
14
14
  $props: {
15
15
  readonly [x: string]: any;
16
16
  };
@@ -0,0 +1,23 @@
1
+ import { FmVSelectProps, FmVSelectEmits, FmVSelectSlots } from './types';
2
+ declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
5
+ readonly "onClick:prepend"?: ((value: MouseEvent) => any) | undefined;
6
+ readonly "onClick:clear"?: ((value: MouseEvent) => any) | undefined;
7
+ readonly "onClick:prependInner"?: ((value: MouseEvent) => any) | undefined;
8
+ readonly "onUpdate:focused"?: ((value: boolean) => any) | undefined;
9
+ readonly "onClick:selection"?: ((value: MouseEvent) => any) | undefined;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClick:prepend" | "onUpdate:focused" | "onUpdate:modelValue" | "onClick:clear" | "onClick:prependInner" | "onClick:selection"> & FmVSelectProps<T>> & import('vue').PublicProps;
11
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
12
+ attrs: any;
13
+ slots: Readonly<FmVSelectSlots<T>> & FmVSelectSlots<T>;
14
+ emit: FmVSelectEmits<T>;
15
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
16
+ [key: string]: any;
17
+ }> & {
18
+ __ctx?: Awaited<typeof __VLS_setup>;
19
+ };
20
+ export default _default;
21
+ type __VLS_PrettifyLocal<T> = {
22
+ [K in keyof T]: T[K];
23
+ } & {};