indicator-ui 0.0.35 → 0.0.36

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.
@@ -13,7 +13,7 @@ export type SelectFieldOptionsItemType = {
13
13
  };
14
14
  export type SelectFieldOptionsType = SelectFieldOptionsItemType[];
15
15
  export type SelectFieldValueType = any[] | any;
16
- export type SelectFieldLoadMoreOptionsType = (optionsCount: number) => Promise<SelectFieldOptionsType>;
16
+ export type SelectFieldLoadMoreOptionsType = (optionsCount: number) => Promise<SelectFieldOptionsType | undefined>;
17
17
  export type SelectFieldPropsType = {
18
18
  value?: SelectFieldValueType;
19
19
  onChange?: (value: any) => void;
@@ -32,6 +32,13 @@ export type SelectFieldPropsType = {
32
32
  onBlur?: () => void;
33
33
  options?: SelectFieldOptionsType;
34
34
  autoClose?: boolean;
35
+ /**
36
+ * Функция callback, когда пользователь прокрутил в самый низ окна выбора **Select**.
37
+ * Функция асинхронная, в нее передается количество текущих **options**.
38
+ * Не будет менять внутренний массив **options**, если вернуть ```undefined```.
39
+ *
40
+ * !!! Важно: Не используйте вместе с ```offOptionsSyncing === true```.
41
+ * */
35
42
  loadMoreOptions?: SelectFieldLoadMoreOptionsType;
36
43
  /** Элемент **(ReactNode)** в конце окна выбора **Select**. */
37
44
  selectModalWindowAfterElement?: React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",