@edvisor/product-language 0.10.22 → 0.10.24

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.
@@ -9,6 +9,7 @@ export interface ISelectProps<T = any> {
9
9
  emptyText?: string;
10
10
  clearable?: boolean;
11
11
  searchable?: boolean;
12
+ iconPosition?: 'left' | 'right';
12
13
  disabled?: boolean;
13
14
  multi?: boolean;
14
15
  invalid?: boolean;
@@ -23,10 +24,12 @@ export interface ISelectProps<T = any> {
23
24
  labelPosition?: 'top' | 'side';
24
25
  labelComponent?: FC<LabelComponentProps<T>>;
25
26
  menuComponent?: FC<IMenuComponentProps>;
27
+ maxLength?: number;
26
28
  onChange?(value: T[] | T | undefined, option?: IOption<T>): void;
27
29
  onSearch?(value: string): void;
28
30
  onOpen?(): void;
29
31
  onClose?(): void;
32
+ onInputChange?(value: string): void;
30
33
  }
31
34
  export interface IValueProps {
32
35
  options: ISelectProps['options'];
@@ -34,6 +37,7 @@ export interface IValueProps {
34
37
  placeholder: ISelectProps['placeholder'];
35
38
  clearable: ISelectProps['clearable'];
36
39
  searchable: ISelectProps['searchable'];
40
+ iconPosition: ISelectProps['iconPosition'];
37
41
  labelComponent: ISelectProps['labelComponent'];
38
42
  multi: ISelectProps['multi'];
39
43
  disabled: ISelectProps['disabled'];
@@ -44,12 +48,14 @@ export interface IValueProps {
44
48
  focused?: boolean;
45
49
  label: ISelectProps['label'];
46
50
  labelPosition: ISelectProps['labelPosition'];
51
+ maxLength?: ISelectProps['maxLength'];
47
52
  onClear(): void;
48
53
  onClick(): void;
49
54
  onSearch(search: string): void;
50
55
  onSearchFocus(): void;
51
56
  onSearchBlur(): void;
52
57
  onOptionRemove(value: any): void;
58
+ onInputChange?(value: string): void;
53
59
  }
54
60
  export interface IMenuContainerProps {
55
61
  className?: string;
@@ -130,4 +136,8 @@ export declare const enum labelPositionType {
130
136
  TOP = "top",
131
137
  SIDE = "side"
132
138
  }
139
+ export declare const enum iconPositionType {
140
+ LEFT = "left",
141
+ RIGHT = "right"
142
+ }
133
143
  export {};
@@ -2,7 +2,8 @@ import first from 'lodash/first.js';
2
2
  import isString from 'lodash/isString.js';
3
3
  import isFunction from 'lodash/isFunction.js';
4
4
  import uniqueId from 'lodash/uniqueId.js';
5
- export { first, isString, isFunction, uniqueId, };
5
+ import debounce from 'lodash/debounce.js';
6
+ export { first, isString, isFunction, uniqueId, debounce, };
6
7
  /** even though we have null disabled in the repo,
7
8
  * I still would not want isNil to skip checking null
8
9
  * it is for juuuuust in case a third party sends us a null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edvisor/product-language",
3
- "version": "0.10.22",
3
+ "version": "0.10.24",
4
4
  "license": "MIT",
5
5
  "description": "Edvisor.io product-language components",
6
6
  "repository": "https://github.com/edvisor-io/front-end/",