sep-yui 0.0.68 → 0.0.69

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 (28) hide show
  1. package/dist/components/Badges/Badges.vue.d.ts +3 -1
  2. package/dist/components/Button/Button.vue.d.ts +2 -2
  3. package/dist/components/Icon/enum/enum.d.ts +3 -1
  4. package/dist/components/Icon/icons.d.ts +4 -0
  5. package/dist/components/InputNumber/InputNumber.vue.d.ts +1 -1
  6. package/dist/components/Range/Range.vue.d.ts +49 -0
  7. package/dist/components/Range/interface/interface.d.ts +10 -0
  8. package/dist/components/Select/BaseFilter.vue.d.ts +77 -0
  9. package/dist/components/Select/ChoosenMiniOptions.vue.d.ts +17 -0
  10. package/dist/components/Select/Filter.vue.d.ts +3 -0
  11. package/dist/components/Select/interface/interface.d.ts +21 -2
  12. package/dist/components/Table/Table.vue.d.ts +2 -0
  13. package/dist/components/Textarea/Textarea.vue.d.ts +4 -0
  14. package/dist/components/Textarea/enum/index.d.ts +4 -0
  15. package/dist/components/Textarea/interface/interface.d.ts +3 -0
  16. package/dist/components/Toggle/Toggle.vue.d.ts +11 -0
  17. package/dist/components/Toggle/enums/enums.d.ts +6 -0
  18. package/dist/components/Toggle/interface/interface.d.ts +3 -0
  19. package/dist/components/Tooltip/Tooltip.vue.d.ts +12 -1
  20. package/dist/components/Tooltip/interface/interface.d.ts +9 -0
  21. package/dist/components/index.d.ts +3 -1
  22. package/dist/helpers/guards/is-options-object-with-hint.d.ts +6 -0
  23. package/dist/helpers/guards/is-options-object.d.ts +4 -0
  24. package/dist/helpers/throttle.d.ts +7 -0
  25. package/dist/sep-yui.es.ts +12534 -12086
  26. package/dist/sep-yui.umd.ts +44 -34
  27. package/dist/style.css +1 -1
  28. package/package.json +2 -2
@@ -5,7 +5,9 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
5
5
  type: BadgesTypeEnum;
6
6
  choosed: boolean;
7
7
  disabled: boolean;
8
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ }>, {
9
+ isSpanOverflow: import('vue').Ref<boolean>;
10
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
11
  choose: (state: boolean, value?: string | undefined) => void;
10
12
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IBadgesProps>, {
11
13
  type: BadgesTypeEnum;
@@ -14,7 +14,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
14
14
  pill: boolean;
15
15
  color: string;
16
16
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
- click: (event: MouseEvent) => void;
17
+ click: (event: MouseEvent | KeyboardEvent) => void;
18
18
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IButtonProps>, {
19
19
  disabled: boolean;
20
20
  size: SizesEnum;
@@ -22,7 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
22
22
  pill: boolean;
23
23
  color: string;
24
24
  }>>> & {
25
- onClick?: ((event: MouseEvent) => any) | undefined;
25
+ onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
26
26
  }, {
27
27
  color: string;
28
28
  type: ButtonTypeEnum;
@@ -86,5 +86,7 @@ export declare enum IconNameEnum {
86
86
  eye = "eye",
87
87
  eyeOff = "eye-off",
88
88
  handSignEmoji = "hand-sign-emoji",
89
- calendar = "calendar"
89
+ calendar = "calendar",
90
+ paint = "paint",
91
+ closeTag = "close-tag"
90
92
  }
@@ -21,7 +21,9 @@ export declare const leftBig: IVectorIcon;
21
21
  export declare const light: IVectorIcon;
22
22
  export declare const notificationYes: IVectorIcon;
23
23
  export declare const plusSmall: IVectorIcon;
24
+ export declare const plus16: IVectorIcon;
24
25
  export declare const plus: IVectorIcon;
26
+ export declare const minus: IVectorIcon;
25
27
  export declare const profileIcon: IVectorIcon;
26
28
  export declare const profile: IVectorIcon;
27
29
  export declare const rightBig: IVectorIcon;
@@ -89,3 +91,5 @@ export declare const eye: IVectorIcon;
89
91
  export declare const eyeOff: IVectorIcon;
90
92
  export declare const handSignEmoji: IVectorIcon;
91
93
  export declare const calendar: IVectorIcon;
94
+ export declare const paint: IVectorIcon;
95
+ export declare const closeTag: IVectorIcon;
@@ -1,5 +1,5 @@
1
- import { IInputNumberProps } from './interface/interface.ts';
2
1
  import { SizesEnum } from '../../common/sizes.ts';
2
+ import { IInputNumberProps } from './interface/interface.ts';
3
3
 
4
4
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IInputNumberProps>, {
5
5
  modelValue: number;
@@ -0,0 +1,49 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ modelValue: import('vue').PropType<number>;
3
+ disabled: {
4
+ type: import('vue').PropType<boolean>;
5
+ default: boolean;
6
+ };
7
+ min: {
8
+ type: import('vue').PropType<number>;
9
+ default: number;
10
+ };
11
+ max: {
12
+ type: import('vue').PropType<number>;
13
+ default: number;
14
+ };
15
+ step: {
16
+ type: import('vue').PropType<number>;
17
+ default: number;
18
+ };
19
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ "unmount-change": (value: number) => void;
21
+ "unmount-input": (value: number) => void;
22
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ modelValue: import('vue').PropType<number>;
24
+ disabled: {
25
+ type: import('vue').PropType<boolean>;
26
+ default: boolean;
27
+ };
28
+ min: {
29
+ type: import('vue').PropType<number>;
30
+ default: number;
31
+ };
32
+ max: {
33
+ type: import('vue').PropType<number>;
34
+ default: number;
35
+ };
36
+ step: {
37
+ type: import('vue').PropType<number>;
38
+ default: number;
39
+ };
40
+ }>> & {
41
+ "onUnmount-change"?: ((value: number) => any) | undefined;
42
+ "onUnmount-input"?: ((value: number) => any) | undefined;
43
+ }, {
44
+ disabled: boolean;
45
+ min: number;
46
+ max: number;
47
+ step: number;
48
+ }, {}>;
49
+ export default _default;
@@ -0,0 +1,10 @@
1
+ export interface IRangeProps {
2
+ min?: number;
3
+ max?: number;
4
+ step?: number;
5
+ disabled?: boolean;
6
+ }
7
+ export interface IRangeEmit {
8
+ (e: 'unmount-change', value: number): void;
9
+ (e: 'unmount-input', value: number): void;
10
+ }
@@ -0,0 +1,77 @@
1
+ import { OptionsObject } from './interface/interface';
2
+
3
+ declare const _default: import('vue').DefineComponent<{
4
+ modelValue: import('vue').PropType<string | string[]>;
5
+ title: {
6
+ type: import('vue').PropType<string>;
7
+ required: true;
8
+ };
9
+ class: {
10
+ type: import('vue').PropType<string>;
11
+ };
12
+ disabled: {
13
+ type: import('vue').PropType<boolean>;
14
+ };
15
+ options: {
16
+ type: import('vue').PropType<OptionsObject[] | import('./interface/interface').IOptionsObjectWithHint[]>;
17
+ required: true;
18
+ };
19
+ defaultOption: {
20
+ type: import('vue').PropType<string>;
21
+ default: string;
22
+ };
23
+ isSearch: {
24
+ type: import('vue').PropType<boolean>;
25
+ default: boolean;
26
+ };
27
+ isPosibleToClear: {
28
+ type: import('vue').PropType<boolean>;
29
+ default: boolean;
30
+ };
31
+ isShowMiniOptions: {
32
+ type: import('vue').PropType<boolean>;
33
+ default: boolean;
34
+ };
35
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
36
+ change: (value: string | string[]) => void;
37
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
38
+ modelValue: import('vue').PropType<string | string[]>;
39
+ title: {
40
+ type: import('vue').PropType<string>;
41
+ required: true;
42
+ };
43
+ class: {
44
+ type: import('vue').PropType<string>;
45
+ };
46
+ disabled: {
47
+ type: import('vue').PropType<boolean>;
48
+ };
49
+ options: {
50
+ type: import('vue').PropType<OptionsObject[] | import('./interface/interface').IOptionsObjectWithHint[]>;
51
+ required: true;
52
+ };
53
+ defaultOption: {
54
+ type: import('vue').PropType<string>;
55
+ default: string;
56
+ };
57
+ isSearch: {
58
+ type: import('vue').PropType<boolean>;
59
+ default: boolean;
60
+ };
61
+ isPosibleToClear: {
62
+ type: import('vue').PropType<boolean>;
63
+ default: boolean;
64
+ };
65
+ isShowMiniOptions: {
66
+ type: import('vue').PropType<boolean>;
67
+ default: boolean;
68
+ };
69
+ }>> & {
70
+ onChange?: ((value: string | string[]) => any) | undefined;
71
+ }, {
72
+ defaultOption: string;
73
+ isSearch: boolean;
74
+ isPosibleToClear: boolean;
75
+ isShowMiniOptions: boolean;
76
+ }, {}>;
77
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { IChoosenMiniOptionsProps } from './interface/interface';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<IChoosenMiniOptionsProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ remove: (key: string) => void;
5
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IChoosenMiniOptionsProps>>> & {
6
+ onRemove?: ((key: string) => any) | undefined;
7
+ }, {}, {}>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: import('vue').PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
@@ -2,16 +2,19 @@ import { IFilterProps } from './interface/interface';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IFilterProps>, {
4
4
  noOptionText: string;
5
+ enableClearAll: boolean;
5
6
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
7
  change: (value: string) => void;
7
8
  search: (value: string) => void;
8
9
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IFilterProps>, {
9
10
  noOptionText: string;
11
+ enableClearAll: boolean;
10
12
  }>>> & {
11
13
  onChange?: ((value: string) => any) | undefined;
12
14
  onSearch?: ((value: string) => any) | undefined;
13
15
  }, {
14
16
  noOptionText: string;
17
+ enableClearAll: boolean;
15
18
  }, {}>;
16
19
  export default _default;
17
20
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -3,12 +3,16 @@ interface ClassObject {
3
3
  }
4
4
  type ClassArray = Array<string | ClassObject>;
5
5
  type VueClasses = ClassObject | ClassArray | string;
6
+ export type TOptions = string[] | OptionsObject[];
6
7
  export interface OptionsObject {
7
8
  key: string;
8
9
  value: string;
9
10
  }
11
+ export interface IOptionsObjectWithHint extends OptionsObject {
12
+ hint: string;
13
+ }
10
14
  export interface IOptionsProps {
11
- options: string[];
15
+ options: string[] | OptionsObject[] | IOptionsObjectWithHint[];
12
16
  defaultOption?: string;
13
17
  class?: string;
14
18
  disabled?: boolean;
@@ -21,12 +25,27 @@ export interface ISelectListProps {
21
25
  disabled?: boolean;
22
26
  }
23
27
  export interface IFilterProps extends Omit<IOptionsProps, 'options'> {
24
- options: string[] | OptionsObject[];
28
+ options: TOptions;
25
29
  title: string;
26
30
  noOptionText?: string;
31
+ enableClearAll?: boolean;
27
32
  }
28
33
  export interface IComboboxProps extends IOptionsProps {
34
+ options: string[];
29
35
  placeholder?: string;
30
36
  disableOpen?: boolean;
31
37
  }
38
+ export interface IBaseFilterProps extends Omit<IOptionsProps, 'options'> {
39
+ options: OptionsObject[] | IOptionsObjectWithHint[];
40
+ title: string;
41
+ isSearch?: boolean;
42
+ isPosibleToClear?: boolean;
43
+ isShowMiniOptions?: boolean;
44
+ }
45
+ export interface IChoosenMiniOptionsProps {
46
+ options: OptionsObject[] | IOptionsObjectWithHint[];
47
+ }
48
+ export interface IChoosenMiniOptionsEmits {
49
+ (e: 'remove', key: string): void;
50
+ }
32
51
  export {};
@@ -16,10 +16,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
16
16
  scrollToTop: () => void;
17
17
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
18
  unmountScroll: (event: Event) => void;
19
+ "unmount-intersection": () => void;
19
20
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ITableProps>, {
20
21
  isShowVerticalScroll: boolean;
21
22
  }>>> & {
22
23
  onUnmountScroll?: ((event: Event) => any) | undefined;
24
+ "onUnmount-intersection"?: (() => any) | undefined;
23
25
  }, {
24
26
  isShowVerticalScroll: boolean;
25
27
  }, {}>;
@@ -1,18 +1,22 @@
1
1
  import { ITextareaProps } from './interface/interface';
2
+ import { TextareaTypeEnum } from './enum';
2
3
 
3
4
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ITextareaProps>, {
4
5
  required: boolean;
5
6
  modelValue: string;
6
7
  readonly: boolean;
8
+ type: TextareaTypeEnum;
7
9
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
10
  "update:modelValue": (value: string) => void;
9
11
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ITextareaProps>, {
10
12
  required: boolean;
11
13
  modelValue: string;
12
14
  readonly: boolean;
15
+ type: TextareaTypeEnum;
13
16
  }>>> & {
14
17
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
18
  }, {
19
+ type: TextareaTypeEnum;
16
20
  required: boolean;
17
21
  modelValue: string;
18
22
  readonly: boolean;
@@ -0,0 +1,4 @@
1
+ export declare enum TextareaTypeEnum {
2
+ default = "default",
3
+ minor = "minor"
4
+ }
@@ -1,3 +1,5 @@
1
+ import { TextareaTypeEnum } from '../enum';
2
+
1
3
  export interface ITextareaProps {
2
4
  placeholder?: string;
3
5
  inputMessage?: string;
@@ -5,4 +7,5 @@ export interface ITextareaProps {
5
7
  maxlength?: number;
6
8
  modelValue: string;
7
9
  readonly?: boolean;
10
+ type?: TextareaTypeEnum;
8
11
  }
@@ -1,5 +1,11 @@
1
+ import { ToggleEnum } from './enums/enums.ts';
2
+
1
3
  declare const _default: import('vue').DefineComponent<{
2
4
  modelValue: import('vue').PropType<boolean>;
5
+ type: {
6
+ type: import('vue').PropType<ToggleEnum>;
7
+ default: ToggleEnum;
8
+ };
3
9
  disabled: {
4
10
  type: import('vue').PropType<boolean>;
5
11
  default: boolean;
@@ -11,6 +17,10 @@ declare const _default: import('vue').DefineComponent<{
11
17
  change: (isChecked: boolean) => void;
12
18
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
19
  modelValue: import('vue').PropType<boolean>;
20
+ type: {
21
+ type: import('vue').PropType<ToggleEnum>;
22
+ default: ToggleEnum;
23
+ };
14
24
  disabled: {
15
25
  type: import('vue').PropType<boolean>;
16
26
  default: boolean;
@@ -21,6 +31,7 @@ declare const _default: import('vue').DefineComponent<{
21
31
  }>> & {
22
32
  onChange?: ((isChecked: boolean) => any) | undefined;
23
33
  }, {
34
+ type: ToggleEnum;
24
35
  disabled: boolean;
25
36
  }, {}>;
26
37
  export default _default;
@@ -0,0 +1,6 @@
1
+ export declare enum ToggleEnum {
2
+ small = "small",
3
+ medium = "medium",
4
+ big = "big",
5
+ large = "large"
6
+ }
@@ -1,4 +1,7 @@
1
+ import { ToggleEnum } from '../enums/enums';
2
+
1
3
  export interface IToggleProps {
2
4
  disabled?: boolean;
3
5
  backgroundColor?: string;
6
+ type?: ToggleEnum;
4
7
  }
@@ -2,14 +2,25 @@ import { ITooltipProps } from './interface/interface';
2
2
 
3
3
  declare function __VLS_template(): {
4
4
  default?(_: {}): any;
5
- tooltip?(_: {}): any;
6
5
  };
7
6
  declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ITooltipProps>, {
8
7
  isShow: boolean;
8
+ isCanShow: boolean;
9
+ position: string;
10
+ size: string;
11
+ type: string;
9
12
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ITooltipProps>, {
10
13
  isShow: boolean;
14
+ isCanShow: boolean;
15
+ position: string;
16
+ size: string;
17
+ type: string;
11
18
  }>>>, {
19
+ type: import('./interface/interface').TTooltipType;
20
+ size: import('./interface/interface').TTooltipSize;
21
+ position: import('./interface/interface').TTooltipPosition;
12
22
  isShow: boolean;
23
+ isCanShow: boolean;
13
24
  }, {}>;
14
25
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
15
26
  export default _default;
@@ -1,3 +1,12 @@
1
+ export type TTooltipPosition = 'bottom-right' | 'bottom-left' | 'bottom-center' | 'top-right' | 'top-left' | 'top-center' | 'left-top' | 'left-center' | 'left-bottom' | 'right-top' | 'right-center' | 'right-bottom';
2
+ export type TTooltipSize = 'small' | 'medium' | 'large';
3
+ export type TTooltipType = 'white' | 'black' | 'blue';
1
4
  export interface ITooltipProps {
5
+ hint: string;
2
6
  isShow?: boolean;
7
+ isCanShow?: boolean;
8
+ position?: TTooltipPosition;
9
+ size?: TTooltipSize;
10
+ type?: TTooltipType;
11
+ hintGap?: number;
3
12
  }
@@ -41,11 +41,13 @@ import { default as PopoverHover } from './Popover/PopoverHover.vue';
41
41
  import { default as ScrollWrapper } from './ScrollWrapper/ScrollWrapper.vue';
42
42
  import { default as Radio } from './Radio/Radio.vue';
43
43
  import { default as Tooltip } from './Tooltip/Tooltip.vue';
44
+ import { default as BaseFilter } from './Select/BaseFilter.vue';
44
45
  import { IRangeForDatePicker } from './Calendar/interfaces/interfaces';
45
46
  import { OptionsObject } from './Select/interface/interface';
47
+ import { default as Range } from './Range/Range.vue';
46
48
 
47
49
  declare const _default: {
48
50
  install: (app: App) => void;
49
51
  };
50
52
  export default _default;
51
- export { Accordion, Badges, BreadCrumbs, Button, Dialog, Card, Calendar, DragAndDrop, Switch, SelectList, Dropdown, Textarea, Filter, Icon, Input, Combobox, InputNumber, Search, SelectFilter, PushNotification, Picture, Scroll, Modal, Slider, Checkbox, Toggle, UserMenu, CopyIcon, Loader, FilterTag, CircularProgress, Popover, Table, TableRow, TableTd, TableTh, SectionTableRow, HeadTableRow, PopoverHover, ScrollWrapper, Radio, Tooltip, type IRangeForDatePicker, type OptionsObject };
53
+ export { Accordion, Badges, BreadCrumbs, Button, Dialog, Card, Calendar, DragAndDrop, Switch, SelectList, Dropdown, Textarea, Filter, Icon, Input, Combobox, InputNumber, Search, SelectFilter, PushNotification, Picture, Scroll, Modal, Slider, Checkbox, Toggle, UserMenu, CopyIcon, Loader, FilterTag, CircularProgress, Popover, Table, TableRow, TableTd, TableTh, SectionTableRow, HeadTableRow, PopoverHover, ScrollWrapper, Radio, Tooltip, BaseFilter, type IRangeForDatePicker, type OptionsObject, Range };
@@ -0,0 +1,6 @@
1
+ import { IOptionsObjectWithHint } from '../../components/Select/interface/interface';
2
+
3
+ declare const isOptionsObjectWithHint: (options: unknown) => options is IOptionsObjectWithHint;
4
+ declare const isArrayOfOptionsObjectWithHint: (options: unknown) => options is IOptionsObjectWithHint[];
5
+ export default isOptionsObjectWithHint;
6
+ export { isArrayOfOptionsObjectWithHint };
@@ -0,0 +1,4 @@
1
+ import { OptionsObject } from '../../components/Select/interface/interface';
2
+
3
+ export default function isOptionsObject(value: unknown): value is OptionsObject;
4
+ export declare function isArrayOptionsObject(value: unknown): value is OptionsObject[];
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Функция throttle возвращает новую функцию, которая вызывает переданную функцию не чаще, чем раз в delay милисекунд.
3
+ * @param func
4
+ * @param delay задержка в милисекундах
5
+ * @returns
6
+ */
7
+ export default function throttle<T extends (...args: Parameters<T>) => ReturnType<T>>(func: T, delay?: number): (...args: Parameters<T>) => ReturnType<T> | null;