@finmars/ui 1.0.44 → 1.0.45

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,7 +1,11 @@
1
1
  import { VNode } from 'vue';
2
- import { FmComponentIcon } from '../../../types';
2
+ import { FmComponentIcon, PlaceLocation } from '../../../types';
3
3
  export interface FmChipProps {
4
4
  value?: string;
5
+ tooltip?: string | {
6
+ value: string;
7
+ location: PlaceLocation;
8
+ };
5
9
  type?: 'standard' | 'outlined';
6
10
  prependIcon?: FmComponentIcon | string;
7
11
  appendIcon?: FmComponentIcon | string;
@@ -3,8 +3,10 @@ export interface FmDateEditorProps {
3
3
  min?: string;
4
4
  max?: string;
5
5
  nonWorkingDays?: string[];
6
+ allowWeekendSelection?: boolean;
6
7
  showWeek?: boolean;
7
8
  showAdjacentMonths?: boolean;
9
+ calculatePreviousDayFromToday?: boolean;
8
10
  disabled?: boolean;
9
11
  locals?: {
10
12
  enteringFieldLabel: string;
@@ -5,7 +5,7 @@ export default function useDateEditor(props: FmDateEditorProps, emits: FmDateEdi
5
5
  initialValue: import('vue').Ref<string, string>;
6
6
  innerValue: import('vue').Ref<string, string>;
7
7
  textFieldInput: import('vue').Ref<string | null, string | null>;
8
- allowedDates: (val: Dayjs | string) => boolean;
8
+ allowedDates: (val: Dayjs | string, ignoreWeekends?: boolean) => boolean;
9
9
  selectMenuItem: (item: "today" | "previous") => void;
10
10
  onUpdate: (val: string) => void;
11
11
  onUpdateByKeyboard: (val: string) => void;
@@ -7,16 +7,16 @@ 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
+ height?: string | number | undefined;
12
11
  width?: string | number | undefined;
12
+ maxHeight?: string | number | undefined;
13
13
  maxWidth?: string | number | undefined;
14
- height?: string | number | undefined;
14
+ minHeight?: string | number | undefined;
15
+ header?: string | undefined;
16
+ title?: string | undefined;
15
17
  max?: string | undefined;
16
18
  min?: string | undefined;
17
19
  allowedDates?: Function | unknown[] | undefined;
18
- minHeight?: string | number | undefined;
19
- maxHeight?: string | number | undefined;
20
20
  $props: {
21
21
  readonly disabled?: boolean | undefined;
22
22
  readonly showHeader?: boolean | undefined;
@@ -25,16 +25,16 @@ 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
+ readonly height?: string | number | undefined;
30
29
  readonly width?: string | number | undefined;
30
+ readonly maxHeight?: string | number | undefined;
31
31
  readonly maxWidth?: string | number | undefined;
32
- readonly height?: string | number | undefined;
32
+ readonly minHeight?: string | number | undefined;
33
+ readonly header?: string | undefined;
34
+ readonly title?: string | undefined;
33
35
  readonly max?: string | undefined;
34
36
  readonly min?: string | undefined;
35
37
  readonly allowedDates?: Function | unknown[] | undefined;
36
- readonly minHeight?: string | number | undefined;
37
- readonly maxHeight?: string | number | undefined;
38
38
  };
39
39
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
40
40
  export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ title: string;
3
+ content: string;
4
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
5
+ title: string;
6
+ content: string;
7
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { FmFileUploadProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<FmFileUploadProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FmFileUploadProps> & Readonly<{}>, {
3
+ icon: string;
4
+ indeterminate: boolean;
5
+ label: string;
6
+ variant: "normal" | "large";
7
+ multiple: boolean;
8
+ dialogTitle: string;
9
+ dialogContent: string;
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { FmUploadFile } from './types';
2
+ declare const _default: import('vue').DefineComponent<{
3
+ file: FmUploadFile;
4
+ indeterminate: boolean;
5
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ removeFile: (...args: any[]) => void;
7
+ }, string, import('vue').PublicProps, Readonly<{
8
+ file: FmUploadFile;
9
+ indeterminate: boolean;
10
+ }> & Readonly<{
11
+ onRemoveFile?: ((...args: any[]) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,16 @@
1
+ export interface FmUploadFile {
2
+ id: string;
3
+ file: File | null;
4
+ progress: number;
5
+ }
6
+ export interface FmDialogOptions {
7
+ dialogTitle?: string;
8
+ dialogContent?: string;
9
+ }
10
+ export interface FmFileUploadProps extends FmDialogOptions {
11
+ icon?: string;
12
+ variant?: 'normal' | 'large';
13
+ label?: string;
14
+ multiple: boolean;
15
+ indeterminate: boolean;
16
+ }
@@ -1,8 +1,8 @@
1
1
  declare const _default: import('vue').DefineComponent<{}, {
2
2
  $emit: (event: "update:modelValue" | "close", ...args: any[]) => void;
3
3
  modelValue: unknown[];
4
- width: string | number;
5
4
  height: string | number;
5
+ width: string | number;
6
6
  multiple: boolean;
7
7
  locals: Record<string, any>;
8
8
  suggested: unknown[];
@@ -10,8 +10,8 @@ declare const _default: import('vue').DefineComponent<{}, {
10
10
  categories: unknown[];
11
11
  $props: {
12
12
  readonly modelValue?: unknown[] | undefined;
13
- readonly width?: string | number | undefined;
14
13
  readonly height?: string | number | undefined;
14
+ readonly width?: string | number | undefined;
15
15
  readonly multiple?: boolean | undefined;
16
16
  readonly locals?: Record<string, any> | undefined;
17
17
  readonly suggested?: unknown[] | undefined;
@@ -8,7 +8,6 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
8
8
  loading: boolean;
9
9
  disabled: boolean;
10
10
  modelValue: boolean;
11
- items: unknown[];
12
11
  origin: string;
13
12
  zIndex: string | number;
14
13
  persistent: boolean;
@@ -21,23 +20,23 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
21
20
  openOnClick: boolean;
22
21
  openOnFocus: boolean;
23
22
  attach: string | boolean | Record<string, any>;
23
+ items: unknown[];
24
24
  itemSize: string;
25
25
  minWidth?: string | number | undefined;
26
- id?: string | undefined;
27
- width?: string | number | undefined;
28
- maxWidth?: string | number | undefined;
29
- height?: string | number | undefined;
30
- minHeight?: string | number | undefined;
31
- maxHeight?: string | number | undefined;
32
26
  activator?: string | Record<string, any> | undefined;
33
27
  location?: string | undefined;
34
28
  offset?: string | number | unknown[] | undefined;
29
+ height?: string | number | undefined;
30
+ width?: string | number | undefined;
31
+ maxHeight?: string | number | undefined;
32
+ maxWidth?: string | number | undefined;
33
+ minHeight?: string | number | undefined;
35
34
  contentClass?: string | undefined;
35
+ id?: string | undefined;
36
36
  $props: {
37
37
  readonly loading?: boolean | undefined;
38
38
  readonly disabled?: boolean | undefined;
39
39
  readonly modelValue?: boolean | undefined;
40
- readonly items?: unknown[] | undefined;
41
40
  readonly origin?: string | undefined;
42
41
  readonly zIndex?: string | number | undefined;
43
42
  readonly persistent?: boolean | undefined;
@@ -50,18 +49,19 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
50
49
  readonly openOnClick?: boolean | undefined;
51
50
  readonly openOnFocus?: boolean | undefined;
52
51
  readonly attach?: string | boolean | Record<string, any> | undefined;
52
+ readonly items?: unknown[] | undefined;
53
53
  readonly itemSize?: string | undefined;
54
54
  readonly minWidth?: string | number | undefined;
55
- readonly id?: string | undefined;
56
- readonly width?: string | number | undefined;
57
- readonly maxWidth?: string | number | undefined;
58
- readonly height?: string | number | undefined;
59
- readonly minHeight?: string | number | undefined;
60
- readonly maxHeight?: string | number | undefined;
61
55
  readonly activator?: string | Record<string, any> | undefined;
62
56
  readonly location?: string | undefined;
63
57
  readonly offset?: string | number | unknown[] | undefined;
58
+ readonly height?: string | number | undefined;
59
+ readonly width?: string | number | undefined;
60
+ readonly maxHeight?: string | number | undefined;
61
+ readonly maxWidth?: string | number | undefined;
62
+ readonly minHeight?: string | number | undefined;
64
63
  readonly contentClass?: string | undefined;
64
+ readonly id?: string | undefined;
65
65
  };
66
66
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
67
67
  type __VLS_TemplateResult = {
@@ -32,13 +32,13 @@ 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
+ width?: string | number | undefined;
36
+ maxWidth?: string | number | undefined;
36
37
  id?: string | undefined;
38
+ search?: string | undefined;
37
39
  name?: string | undefined;
38
- width?: string | number | undefined;
39
40
  hint?: string | undefined;
40
41
  errorMessages?: string | unknown[] | undefined;
41
- maxWidth?: string | number | undefined;
42
42
  noDataText?: string | undefined;
43
43
  $props: {
44
44
  readonly loading?: boolean | 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
+ readonly width?: string | number | undefined;
72
+ readonly maxWidth?: string | number | undefined;
72
73
  readonly id?: string | undefined;
74
+ readonly search?: string | undefined;
73
75
  readonly name?: string | undefined;
74
- readonly width?: string | number | undefined;
75
76
  readonly hint?: string | undefined;
76
77
  readonly errorMessages?: string | unknown[] | undefined;
77
- readonly maxWidth?: string | number | 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,15 +1,16 @@
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<{
1
+ import { FmSelectProps, FmSelectEmits, FmSelectSlots } from './types';
2
+ declare const _default: <T extends unknown, 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
4
  readonly "onUpdate:modelValue"?: ((value: T | T[K] | T[K][] | T[] | null) => any) | undefined;
5
5
  readonly "onClick:clear"?: ((value: MouseEvent) => any) | undefined;
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;
6
+ readonly onFocus?: (() => any) | undefined;
7
+ readonly onBlur?: (() => any) | undefined;
9
8
  readonly "onUpdate:menu"?: ((value: boolean) => any) | undefined;
10
9
  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;
12
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onFocus" | "onBlur" | "onClick:clear" | "onUpdate:menu" | "onClick:prependIcon"> & FmSelectProps<T, K>> & import('vue').PublicProps;
11
+ expose(exposed: import('vue').ShallowUnwrapRef<{
12
+ toggleDropdown: (val: boolean) => void;
13
+ }>): void;
13
14
  attrs: any;
14
15
  slots: Readonly<FmSelectSlots<T>> & FmSelectSlots<T>;
15
16
  emit: FmSelectEmits<T, K>;
@@ -1,7 +1,7 @@
1
1
  import { VNode } from 'vue';
2
2
  export interface FmSelectOption {
3
3
  title?: string;
4
- value: string;
4
+ value?: string;
5
5
  }
6
6
  export interface FmSelectActivatorProps {
7
7
  value: string;
@@ -16,6 +16,7 @@ export interface FmSelectActivatorProps {
16
16
  chip?: boolean;
17
17
  width?: number | string;
18
18
  error?: boolean;
19
+ focused?: boolean;
19
20
  loading?: boolean;
20
21
  disabled?: boolean;
21
22
  }
@@ -33,8 +34,8 @@ export interface FmSelectActivatorEmits {
33
34
  key: 'down' | 'up' | 'esc' | 'enter' | 'space' | 'tab';
34
35
  }): void;
35
36
  }
36
- export interface FmSelectProps<T extends FmSelectOption, K extends string & keyof T> {
37
- modelValue: T[K] | Array<T[K]> | T | T[];
37
+ export interface FmSelectProps<T extends any & FmSelectOption, K extends string & keyof T> {
38
+ modelValue: T[K] | Array<T[K]> | T | T[] | null;
38
39
  options: T[];
39
40
  itemSize?: 'small' | 'medium' | 'large';
40
41
  variant?: 'standard' | 'outlined';
@@ -45,27 +46,27 @@ export interface FmSelectProps<T extends FmSelectOption, K extends string & keyo
45
46
  clearIcon?: string;
46
47
  multiple?: boolean;
47
48
  returnObject?: boolean;
49
+ titleKey?: K | string;
50
+ valueKey?: K | string;
48
51
  chip?: boolean;
49
52
  clearable?: boolean;
50
53
  error?: boolean;
51
54
  width?: number | string;
52
- titleKey?: K | string;
53
- valueKey?: K | string;
54
55
  rules?: Array<(value: T) => boolean | string>;
56
+ focused?: boolean;
55
57
  loading?: boolean;
56
58
  noDataText?: string;
57
59
  disabled?: boolean;
58
60
  }
59
- export interface FmSelectEmits<T extends FmSelectOption, K extends string & keyof T> {
61
+ export interface FmSelectEmits<T extends any & FmSelectOption, K extends string & keyof T> {
60
62
  (event: 'click:prependIcon', value: MouseEvent): void;
61
63
  (event: 'click:clear', value: MouseEvent): void;
62
- (event: 'focus', value: FocusEvent): void;
63
- (event: 'blur', value: FocusEvent): void;
64
+ (event: 'focus'): void;
65
+ (event: 'blur'): void;
64
66
  (event: 'update:menu', value: boolean): void;
65
- (event: 'change', value: T[K] | Array<T[K]> | T | T[] | null): void;
66
67
  (event: 'update:modelValue', value: T[K] | Array<T[K]> | T | T[] | null): void;
67
68
  }
68
- export interface FmSelectSlots<T extends FmSelectOption> {
69
+ export interface FmSelectSlots<T extends any & FmSelectOption> {
69
70
  'prepend-icon': () => VNode;
70
71
  'clear-icon': () => VNode;
71
72
  item: (props: {
@@ -0,0 +1,30 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { FmSelectProps, FmSelectEmits, FmSelectOption } from './types';
3
+ export default function useSelect<T extends any & FmSelectOption, K extends string & keyof T>(props: FmSelectProps<T, K>, emits: FmSelectEmits<T, K>): {
4
+ menuId: string;
5
+ focused: Ref<boolean, boolean>;
6
+ isMenuOpen: Ref<boolean, boolean>;
7
+ isDirty: Ref<boolean, boolean>;
8
+ activatorElement: Ref<HTMLDivElement | null, HTMLDivElement | null>;
9
+ transformedOptions: ComputedRef<(T & {
10
+ isSelected?: boolean;
11
+ isActive?: boolean;
12
+ })[]>;
13
+ selectedOptions: Ref<T[], T[]>;
14
+ activeOptionIndex: Ref<number | null, number | null>;
15
+ displaySelection: ComputedRef<string | string[]>;
16
+ toggleDropdown: (val: boolean) => void;
17
+ onKeydown: ({ event, key }: {
18
+ event: KeyboardEvent;
19
+ key: "down" | "up" | "esc" | "enter" | "space" | "tab";
20
+ }) => void;
21
+ onItemClick: ({ item, index }: {
22
+ item: T;
23
+ index: number;
24
+ }) => void;
25
+ onActivatorFocus: () => void;
26
+ onActivatorBlur: () => void;
27
+ clearSelected: (ev: MouseEvent) => void;
28
+ onChipClick: (index: number) => void;
29
+ isOptionSelected: (option: T) => boolean;
30
+ };
@@ -7,7 +7,7 @@ declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_
7
7
  readonly "onClick:prependInner"?: ((value: MouseEvent) => any) | undefined;
8
8
  readonly "onUpdate:focused"?: ((value: boolean) => any) | undefined;
9
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;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick:prepend" | "onUpdate:focused" | "onClick:clear" | "onClick:prependInner" | "onClick:selection"> & FmVSelectProps<T>> & import('vue').PublicProps;
11
11
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
12
12
  attrs: any;
13
13
  slots: Readonly<FmVSelectSlots<T>> & FmVSelectSlots<T>;
@@ -3,9 +3,9 @@ import { default as FmBadge } from './components/fm/Badge/Badge.vue';
3
3
  import { default as FmButton } from './components/fm/Button/Button.vue';
4
4
  import { default as FmCheckbox } from './components/fm/Checkbox/Checkbox.vue';
5
5
  import { default as FmChip } from './components/fm/Chip/Chip.vue';
6
- import { FmChipProps, FmChipEmits, FmChipSlots } from './components/fm/Chip/types';
6
+ import { FmChipEmits, FmChipProps, FmChipSlots } from './components/fm/Chip/types';
7
7
  import { default as FmDateEditor } from './components/fm/DateEditor/DateEditor.vue';
8
- import { FmDateEditorProps, FmDateEditorEmits } from './components/fm/DateEditor/types';
8
+ import { FmDateEditorEmits, FmDateEditorProps } from './components/fm/DateEditor/types';
9
9
  import { default as FmDatePicker } from './components/fm/DatePicker/DatePicker.vue';
10
10
  import { default as FmIcon } from './components/fm/Icon/Icon.vue';
11
11
  import { FmIconProps, FmIconSlots } from './components/fm/Icon/types';
@@ -17,7 +17,7 @@ import { default as FmMenu } from './components/fm/Menu/Menu.vue';
17
17
  import { default as FmNavigationPortal } from './components/fm/Navigation/NavigationPortal.vue';
18
18
  import { default as FmNavigation } from './components/fm/Navigation/Navigation.vue';
19
19
  import { default as FmPagination } from './components/fm/Pagination/Pagination.vue';
20
- import { FmPaginationProps, FmPaginationEmits } from './components/fm/Pagination/types';
20
+ import { FmPaginationEmits, FmPaginationProps } from './components/fm/Pagination/types';
21
21
  import { default as FmProgressCircular } from './components/fm/ProgressCircular/ProgressCircular.vue';
22
22
  import { default as FmProgressLinear } from './components/fm/ProgressLinear/ProgressLinear.vue';
23
23
  import { default as FmRadio } from './components/fm/Radio/Radio.vue';
@@ -25,18 +25,20 @@ import { default as FmRadioGroup } from './components/fm/Radio/RadioGroup.vue';
25
25
  import { default as FmRangeSlider } from './components/fm/RangeSlider/RangeSlider.vue';
26
26
  import { default as FmSearch } from './components/fm/Search/Search.vue';
27
27
  import { default as FmVSelect } from './components/fm/VSelect/VSelect.vue';
28
- import { FmVSelectProps, FmVSelectEmits, FmVSelectSlots } from './components/fm/VSelect/types';
28
+ import { FmVSelectEmits, FmVSelectProps, FmVSelectSlots } from './components/fm/VSelect/types';
29
29
  import { default as FmSelect } from './components/fm/Select/Select.vue';
30
30
  import { default as FmSelectActivator } from './components/fm/Select/SelectActivator.vue';
31
- import { FmSelectOption, FmSelectActivatorProps, FmSelectActivatorEmits, FmSelectActivatorSlots, FmSelectProps, FmSelectEmits, FmSelectSlots } from './components/fm/Select/types';
31
+ import { FmSelectActivatorEmits, FmSelectActivatorProps, FmSelectActivatorSlots, FmSelectEmits, FmSelectOption, FmSelectProps, FmSelectSlots } from './components/fm/Select/types';
32
32
  import { default as FmSlider } from './components/fm/Slider/Slider.vue';
33
33
  import { default as FmTextField } from './components/fm/TextField/TextField.vue';
34
34
  import { default as FmTooltip } from './components/fm/Tooltip/Tooltip.vue';
35
35
  import { default as FmTabs } from './components/fm/Tabs/Tabs.vue';
36
+ import { FmDialogOptions, FmFileUploadProps, FmUploadFile } from './components/fm/FileUpload/types';
37
+ import { default as FmFileUpload } from './components/fm/FileUpload/FileUpload.vue';
36
38
  import { default as FmHeader } from '../stories/Header.vue';
37
39
  export * from './types';
38
40
  export * from './utils';
39
- export { FmHeader, FmNavigationPortal, FmNavigation, FmAvatar, FmBadge, FmButton, FmCheckbox, FmChip, FmDateEditor, FmDateEditorProps, FmDateEditorEmits, FmDatePicker, FmIcon, FmIconButton, FmItemPicker, FmLogo, FmMenuItem, FmMenu, FmPagination, FmProgressCircular, FmProgressLinear, FmRadio, FmRadioGroup, FmRangeSlider, FmSearch, FmSelect, FmSelectActivator, FmSlider, FmTextField, FmTooltip, FmVSelect, FmChipProps, FmChipEmits, FmChipSlots, FmTabs, FmIconProps, FmIconSlots, FmPaginationProps, FmPaginationEmits, FmSelectOption, FmSelectActivatorProps, FmSelectActivatorEmits, FmSelectActivatorSlots, FmSelectProps, FmSelectEmits, FmSelectSlots, FmVSelectProps, FmVSelectEmits, FmVSelectSlots };
41
+ export { FmHeader, FmNavigationPortal, FmNavigation, FmAvatar, FmBadge, FmButton, FmCheckbox, FmChip, FmDateEditor, FmDateEditorProps, FmDateEditorEmits, FmDatePicker, FmIcon, FmIconButton, FmItemPicker, FmLogo, FmMenuItem, FmMenu, FmPagination, FmProgressCircular, FmProgressLinear, FmRadio, FmRadioGroup, FmRangeSlider, FmSearch, FmSelect, FmSelectActivator, FmSlider, FmTextField, FmTooltip, FmVSelect, FmUploadFile, FmDialogOptions, FmFileUploadProps, FmFileUpload, FmChipProps, FmChipEmits, FmChipSlots, FmTabs, FmIconProps, FmIconSlots, FmPaginationProps, FmPaginationEmits, FmSelectOption, FmSelectActivatorProps, FmSelectActivatorEmits, FmSelectActivatorSlots, FmSelectProps, FmSelectEmits, FmSelectSlots, FmVSelectProps, FmVSelectEmits, FmVSelectSlots };
40
42
  /**
41
43
  * VUE plugin that registers all components
42
44
  *
@@ -77,5 +79,6 @@ declare module 'vue' {
77
79
  FmTooltip: typeof FmTooltip;
78
80
  FmVSelect: typeof FmVSelect;
79
81
  FmTabs: typeof FmTabs;
82
+ FmFileUpload: typeof FmFileUpload;
80
83
  }
81
84
  }
@@ -3,3 +3,4 @@ export interface FmComponentIcon {
3
3
  size?: number | string;
4
4
  color?: string;
5
5
  }
6
+ export type PlaceLocation = 'top' | 'bottom' | 'start' | 'end' | 'left' | 'right' | 'center' | 'center center' | 'top start | center' | 'top end | center' | 'bottom start | center' | 'bottom end | center' | 'start top | center' | 'end top | center' | 'left top | center' | 'right top | center' | 'start bottom | center' | 'end bottom | center' | 'left bottom | center' | 'right bottom | center';
package/package.json CHANGED
@@ -1,79 +1,81 @@
1
1
  {
2
- "name": "@finmars/ui",
3
- "version": "1.0.44",
4
- "description": "",
5
- "scripts": {
6
- "dev": "vite dev --config vite.config.dev.js",
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "storybook": "storybook dev -p 6006",
9
- "build-storybook": "storybook build",
10
- "clean": "rimraf ./dist",
11
- "copy:css": "cp ./src/assets/css/themes.css ./dist",
12
- "build": "npm run clean && vite build && npm run copy:css"
13
- },
14
- "files": [
15
- "dist/",
16
- "LICENSE.md",
17
- "README.md",
18
- "package.json"
19
- ],
20
- "type": "module",
21
- "module": "dist/finmars-ui.es.js",
22
- "types": "./dist/finmars-ui.es.d.ts",
23
- "exports": {
24
- ".": {
25
- "import": "./dist/finmars-ui.es.js",
26
- "types": "./dist/finmars-ui.es.d.ts"
27
- },
28
- "./dist/finmars-ui.css": "./dist/finmars-ui.css",
29
- "./dist/themes.css": "./dist/themes.css"
30
- },
31
- "keywords": [],
32
- "author": "Sergei Zhitenev",
33
- "license": "SEE LICENSE IN LICENSE.md",
34
- "devDependencies": {
35
- "@chromatic-com/storybook": "^1.9.0",
36
- "@storybook/addon-essentials": "^8.4.2",
37
- "@storybook/addon-interactions": "^8.4.2",
38
- "@storybook/addon-links": "^8.4.2",
39
- "@storybook/addon-toolbars": "^8.4.2",
40
- "@storybook/blocks": "^8.4.2",
41
- "@storybook/manager-api": "^8.4.2",
42
- "@storybook/test": "^8.4.2",
43
- "@storybook/theming": "^8.4.2",
44
- "@storybook/vue3": "^8.4.2",
45
- "@storybook/vue3-vite": "^8.4.2",
46
- "@types/lodash": "^4.17.13",
47
- "@vuedx/typescript-plugin-vue": "^0.7.6",
48
- "autoprefixer": "^10.4.19",
49
- "eslint": "^8.24.0",
50
- "eslint-config-prettier": "^9.1.0",
51
- "eslint-plugin-prettier": "^5.2.1",
52
- "eslint-plugin-vue": "^9.28.0",
53
- "floating-vue": "^5.2.2",
54
- "postcss": "^8.4.47",
55
- "postcss-import": "^16.1.0",
56
- "postcss-mixins": "^10.0.1",
57
- "prettier": "^3.3.3",
58
- "rimraf": "^6.0.1",
59
- "sass-embedded": "^1.80.4",
60
- "storybook": "^8.4.2",
61
- "tailwindcss": "^3.4.11",
62
- "typescript": "^5.6.3",
63
- "vite": "^5.4.10",
64
- "vite-plugin-dts": "^4.3.0",
65
- "vite-plugin-vue-devtools": "^7.6.4",
66
- "vue-tsc": "^2.1.10"
67
- },
68
- "dependencies": {
69
- "@mdi/font": "^7.4.47",
70
- "@vitejs/plugin-vue": "^5.1.4",
71
- "dayjs": "^1.11.13",
72
- "lodash": "^4.17.21",
73
- "maska": "^3.0.3",
74
- "vite-plugin-vuetify": "^2.0.4",
75
- "vite-svg-loader": "^5.1.0",
76
- "vue": "^3.5.12",
77
- "vuetify": "^3.7.4"
78
- }
2
+ "name": "@finmars/ui",
3
+ "version": "1.0.45",
4
+ "description": "",
5
+ "scripts": {
6
+ "dev": "vite dev --config vite.config.dev.js",
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "storybook": "storybook dev -p 6006",
9
+ "build-storybook": "storybook build",
10
+ "clean": "rimraf ./dist",
11
+ "copy:css": "cp ./src/assets/css/themes.css ./dist",
12
+ "build": "npm run clean && vite build && npm run copy:css"
13
+ },
14
+ "files": [
15
+ "dist/",
16
+ "LICENSE.md",
17
+ "README.md",
18
+ "package.json"
19
+ ],
20
+ "type": "module",
21
+ "module": "dist/finmars-ui.es.js",
22
+ "types": "./dist/finmars-ui.es.d.ts",
23
+ "exports": {
24
+ ".": {
25
+ "import": "./dist/finmars-ui.es.js",
26
+ "types": "./dist/finmars-ui.es.d.ts"
27
+ },
28
+ "./dist/finmars-ui.css": "./dist/finmars-ui.css",
29
+ "./dist/themes.css": "./dist/themes.css"
30
+ },
31
+ "keywords": [],
32
+ "author": "Sergei Zhitenev",
33
+ "license": "SEE LICENSE IN LICENSE.md",
34
+ "devDependencies": {
35
+ "@chromatic-com/storybook": "^1.9.0",
36
+ "@storybook/addon-essentials": "^8.4.2",
37
+ "@storybook/addon-interactions": "^8.4.2",
38
+ "@storybook/addon-links": "^8.4.2",
39
+ "@storybook/addon-toolbars": "^8.4.2",
40
+ "@storybook/blocks": "^8.4.2",
41
+ "@storybook/manager-api": "^8.4.2",
42
+ "@storybook/test": "^8.4.2",
43
+ "@storybook/theming": "^8.4.2",
44
+ "@storybook/vue3": "^8.4.2",
45
+ "@storybook/vue3-vite": "^8.4.2",
46
+ "@types/lodash": "^4.17.13",
47
+ "@typescript-eslint/eslint-plugin": "^8.15.0",
48
+ "@typescript-eslint/parser": "^8.15.0",
49
+ "@vuedx/typescript-plugin-vue": "^0.7.6",
50
+ "autoprefixer": "^10.4.19",
51
+ "eslint": "^8.24.0",
52
+ "eslint-config-prettier": "^9.1.0",
53
+ "eslint-plugin-prettier": "^5.2.1",
54
+ "eslint-plugin-vue": "^9.28.0",
55
+ "floating-vue": "^5.2.2",
56
+ "postcss": "^8.4.47",
57
+ "postcss-import": "^16.1.0",
58
+ "postcss-mixins": "^10.0.1",
59
+ "prettier": "^3.3.3",
60
+ "rimraf": "^6.0.1",
61
+ "sass-embedded": "^1.80.4",
62
+ "storybook": "^8.4.2",
63
+ "tailwindcss": "^3.4.11",
64
+ "typescript": "^5.6.3",
65
+ "vite": "^5.4.10",
66
+ "vite-plugin-dts": "^4.3.0",
67
+ "vite-plugin-vue-devtools": "^7.6.4",
68
+ "vue-tsc": "^2.1.10"
69
+ },
70
+ "dependencies": {
71
+ "@mdi/font": "^7.4.47",
72
+ "@vitejs/plugin-vue": "^5.1.4",
73
+ "dayjs": "^1.11.13",
74
+ "lodash": "^4.17.21",
75
+ "maska": "^3.0.3",
76
+ "vite-plugin-vuetify": "^2.0.4",
77
+ "vite-svg-loader": "^5.1.0",
78
+ "vue": "^3.5.12",
79
+ "vuetify": "^3.7.4"
80
+ }
79
81
  }