sep-yui 0.1.24 → 0.1.26

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,23 +1,31 @@
1
- import { ISearchProps } from './interface/interface';
1
+ import { ISearchProps, ResultSearchType } from './interface/interface';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ISearchProps>, {
4
4
  placeholder: string;
5
5
  height: string;
6
6
  modelValue: string;
7
7
  dataTestid: string;
8
+ global: boolean;
9
+ globalResultsFunction: () => never[];
8
10
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
11
  enter: (value: string) => void;
10
12
  input: (value: string) => void;
11
13
  "update:modelValue": (value: string) => void;
14
+ "choose-result": (value: ResultSearchType) => void;
15
+ "scroll-paginate": () => void;
12
16
  choosed: (value: string) => void;
13
17
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ISearchProps>, {
14
18
  placeholder: string;
15
19
  height: string;
16
20
  modelValue: string;
17
21
  dataTestid: string;
22
+ global: boolean;
23
+ globalResultsFunction: () => never[];
18
24
  }>>> & {
19
25
  onInput?: ((value: string) => any) | undefined;
20
26
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
27
+ "onChoose-result"?: ((value: ResultSearchType) => any) | undefined;
28
+ "onScroll-paginate"?: (() => any) | undefined;
21
29
  onChoosed?: ((value: string) => any) | undefined;
22
30
  onEnter?: ((value: string) => any) | undefined;
23
31
  }, {
@@ -25,6 +33,8 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
25
33
  dataTestid: string;
26
34
  modelValue: string;
27
35
  placeholder: string;
36
+ global: boolean;
37
+ globalResultsFunction: ResultSearchType[];
28
38
  }, {}>;
29
39
  export default _default;
30
40
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -2,14 +2,22 @@ import { ISearchProps, ResultSearchType } from './interface/interface';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<ISearchProps>>, {
4
4
  dataTestid: string;
5
+ globalResultsFunction: () => never[];
6
+ searchValue: string;
5
7
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
- choosePost: (post: ResultSearchType) => void;
8
+ "choose-result": (result: ResultSearchType) => void;
9
+ "scroll-paginate": () => void;
7
10
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<ISearchProps>>, {
8
11
  dataTestid: string;
12
+ globalResultsFunction: () => never[];
13
+ searchValue: string;
9
14
  }>>> & {
10
- onChoosePost?: ((post: ResultSearchType) => any) | undefined;
15
+ "onChoose-result"?: ((result: ResultSearchType) => any) | undefined;
16
+ "onScroll-paginate"?: (() => any) | undefined;
11
17
  }, {
12
18
  dataTestid: string;
19
+ globalResultsFunction: ResultSearchType[];
20
+ searchValue: string;
13
21
  }, {}>;
14
22
  export default _default;
15
23
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -2,9 +2,10 @@ import { IconNameEnum } from '../../Icon/enum/enum';
2
2
  import { IDataTestIdProp } from '../../../common/dataTestidProps';
3
3
 
4
4
  export type ResultSearchType = {
5
- icon: IconNameEnum;
6
5
  nameArea: string;
7
6
  searchResult: string;
7
+ icon?: IconNameEnum;
8
+ [key: string]: unknown;
8
9
  };
9
10
  export interface ISearchProps extends IDataTestIdProp {
10
11
  defaultValue?: string;
@@ -12,8 +13,7 @@ export interface ISearchProps extends IDataTestIdProp {
12
13
  showHistory?: boolean;
13
14
  global?: boolean;
14
15
  options?: string[];
15
- globalResultsFunction?: () => ResultSearchType[];
16
- isShowResult?: boolean;
16
+ globalResultsFunction?: ResultSearchType[];
17
17
  isShowList?: boolean;
18
18
  isShowButtonHistory?: boolean;
19
19
  searchValue?: string;