@dxtmisha/functional-basic 0.9.0 → 0.10.1
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.
- package/dist/library.d.ts +764 -2
- package/dist/library.js +1667 -840
- package/package.json +1 -1
package/dist/library.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds a tag to highlight the match in the string.
|
|
3
|
+
*
|
|
4
|
+
* Добавляет тег для выделения совпадения в строке.
|
|
5
|
+
* @param value initial string / исходная строка
|
|
6
|
+
* @param search search string / строка поиска
|
|
7
|
+
* @param className highlighting class / класс выделения
|
|
8
|
+
*/
|
|
9
|
+
export declare function addTagHighlightMatch(value: string, search?: string, className?: string): string;
|
|
10
|
+
|
|
1
11
|
/**
|
|
2
12
|
* Conversion of a value to a string.
|
|
3
13
|
*
|
|
@@ -1811,6 +1821,215 @@ export declare function executePromise<T>(callback: (() => Promise<T>) | (() =>
|
|
|
1811
1821
|
*/
|
|
1812
1822
|
export declare function forEach<T, R, D extends T[] | Record<string, T> | Map<string, T> = T[] | Record<string, T> | Map<string, T>, K = D extends T[] ? number : string>(data: D & (T[] | Record<string, T> | Map<string, T>), callback: (item: T, key: K, dataMain: typeof data) => R, saveUndefined?: boolean): R[];
|
|
1813
1823
|
|
|
1824
|
+
/**
|
|
1825
|
+
* Class for formatting a list of data based on provided options.
|
|
1826
|
+
*
|
|
1827
|
+
* Класс для форматирования списка данных на основе предоставленных параметров.
|
|
1828
|
+
* @template Item - type of items in the list/ тип элементов в списке.
|
|
1829
|
+
* @template Options - type of formatting options/ тип параметров форматирования.
|
|
1830
|
+
* @template List - type of the list of items/ тип списка элементов.
|
|
1831
|
+
*/
|
|
1832
|
+
export declare class Formatters<Item extends FormattersListItem, Options extends FormattersOptionsList, List extends FormattersList<Item> = FormattersList<Item>> {
|
|
1833
|
+
protected options: Options;
|
|
1834
|
+
protected list?: List | undefined;
|
|
1835
|
+
/**
|
|
1836
|
+
* Constructor
|
|
1837
|
+
*
|
|
1838
|
+
* Конструктор
|
|
1839
|
+
* @param options formatting options for each column/ property/
|
|
1840
|
+
* параметры форматирования для каждого столбца/свойства
|
|
1841
|
+
* @param list initial list of data to format/ начальный список данных для форматирования
|
|
1842
|
+
*/
|
|
1843
|
+
constructor(options: Options, list?: List | undefined);
|
|
1844
|
+
/**
|
|
1845
|
+
* Returns the current list of data.
|
|
1846
|
+
*
|
|
1847
|
+
* Возвращает текущий список данных.
|
|
1848
|
+
* @returns the list of data or undefined if not set/ список данных или undefined, если не задан
|
|
1849
|
+
*/
|
|
1850
|
+
getList(): List | undefined;
|
|
1851
|
+
/**
|
|
1852
|
+
* Returns the current formatting options.
|
|
1853
|
+
*
|
|
1854
|
+
* Возвращает текущие параметры форматирования.
|
|
1855
|
+
* @returns formatting options/ параметры форматирования
|
|
1856
|
+
*/
|
|
1857
|
+
getOptions(): Options;
|
|
1858
|
+
/**
|
|
1859
|
+
* Sets the list of data to be formatted.
|
|
1860
|
+
*
|
|
1861
|
+
* Устанавливает список данных для форматирования.
|
|
1862
|
+
* @param list list of data/ список данных
|
|
1863
|
+
* @returns the Formatters instance for chaining/ экземпляр Formatters для цепочки вызовов
|
|
1864
|
+
*/
|
|
1865
|
+
setList(list: List): this;
|
|
1866
|
+
/**
|
|
1867
|
+
* Formats the entire list based on the provided options.
|
|
1868
|
+
* Adds formatted values with the suffix 'Format' to each item.
|
|
1869
|
+
*
|
|
1870
|
+
* Форматирует весь список на основе предоставленных параметров.
|
|
1871
|
+
* Добавляет отформатированные значения с суффиксом 'Format' к каждому элементу.
|
|
1872
|
+
* @returns the list of items with additional formatted columns/
|
|
1873
|
+
* список элементов с дополнительными отформатированными столбцами
|
|
1874
|
+
*/
|
|
1875
|
+
to(): FormattersListColumns<Item, Options>;
|
|
1876
|
+
/**
|
|
1877
|
+
* Generates formatted data for a single item based on options.
|
|
1878
|
+
*
|
|
1879
|
+
* Генерирует отформатированные данные для одного элемента на основе параметров.
|
|
1880
|
+
* @param item item to format/ элемент для форматирования
|
|
1881
|
+
* @protected
|
|
1882
|
+
*/
|
|
1883
|
+
protected getFormatData(item: Item): Record<string, string>;
|
|
1884
|
+
/**
|
|
1885
|
+
* Router-like method to delegate formatting to specific type formatters.
|
|
1886
|
+
*
|
|
1887
|
+
* Метод-маршрутизатор для делегирования форматирования конкретным типам форматировщиков.
|
|
1888
|
+
* @param valueOriginal original value to format/ исходное значение для форматирования
|
|
1889
|
+
* @param item entire item context/ весь контекст элемента
|
|
1890
|
+
* @param type type of formatter to use/ тип используемого форматировщика
|
|
1891
|
+
* @param options additional options for the specific formatter/
|
|
1892
|
+
* дополнительные параметры для конкретного форматировщика
|
|
1893
|
+
* @protected
|
|
1894
|
+
* @returns Formatted string/ отформатированная строка
|
|
1895
|
+
*/
|
|
1896
|
+
protected transformation<Type extends FormattersType>(valueOriginal: any, item: any, type?: Type, options?: FormattersOptionsInformation<Type>): string;
|
|
1897
|
+
/**
|
|
1898
|
+
* Formats a value as currency.
|
|
1899
|
+
*
|
|
1900
|
+
* Форматирует значение как валюту.
|
|
1901
|
+
* @param value value to format/ значение для форматирования
|
|
1902
|
+
* @param item item context/ контекст элемента
|
|
1903
|
+
* @param options currency formatting options/ параметры форматирования валюты
|
|
1904
|
+
* @protected
|
|
1905
|
+
* @returns Formatted currency string/ отформатированная строка валюты
|
|
1906
|
+
*/
|
|
1907
|
+
protected formatCurrency(value: any, item: Item, options?: FormattersOptionsCurrency): string;
|
|
1908
|
+
/**
|
|
1909
|
+
* Formats a value as a date.
|
|
1910
|
+
*
|
|
1911
|
+
* Форматирует значение как дату.
|
|
1912
|
+
* @param value value to format/ значение для форматирования
|
|
1913
|
+
* @param options date formatting options/ параметры форматирования даты
|
|
1914
|
+
* @protected
|
|
1915
|
+
* @returns Formatted date string/ отформатированная строка даты
|
|
1916
|
+
*/
|
|
1917
|
+
protected formatDate(value: any, options?: FormattersOptionsDate): string;
|
|
1918
|
+
/**
|
|
1919
|
+
* Formats full name from multiple property names.
|
|
1920
|
+
*
|
|
1921
|
+
* Форматирует полное имя из нескольких имен свойств.
|
|
1922
|
+
* @param item item context containing name components/ контекст элемента, содержащий компоненты имени
|
|
1923
|
+
* @param options name formatting options (prop names for first, last, surname)/
|
|
1924
|
+
* параметры форматирования имени (имена свойств для имени, фамилии, отчества)
|
|
1925
|
+
* @protected
|
|
1926
|
+
* @returns Formatted name string or empty string if components are missing/
|
|
1927
|
+
* отформатированная строка имени или пустая строка, если компоненты отсутствуют
|
|
1928
|
+
*/
|
|
1929
|
+
protected formatName(item: Item, options?: FormattersOptionsName): string;
|
|
1930
|
+
/**
|
|
1931
|
+
* Formats a value as a number.
|
|
1932
|
+
*
|
|
1933
|
+
* Форматирует значение как число.
|
|
1934
|
+
* @param value value to format/ значение для форматирования
|
|
1935
|
+
* @param options number formatting options/ параметры форматирования числа
|
|
1936
|
+
* @protected
|
|
1937
|
+
* @returns Formatted number string/ отформатированная строка числа
|
|
1938
|
+
*/
|
|
1939
|
+
protected formatNumber(value: any, options?: FormattersOptionsNumber): string;
|
|
1940
|
+
/**
|
|
1941
|
+
* Formats a value based on plural rules.
|
|
1942
|
+
*
|
|
1943
|
+
* Форматирует значение на основе правил множественного числа.
|
|
1944
|
+
* @param value numeric value for pluralization/ числовое значение для плюрализации
|
|
1945
|
+
* @param options plural formatting options (words and rules)/
|
|
1946
|
+
* параметры форматирования множественного числа (слова и правила)
|
|
1947
|
+
* @protected
|
|
1948
|
+
* @returns Formatted plural string/ отформатированная строка множественного числа
|
|
1949
|
+
*/
|
|
1950
|
+
protected formatPlural(value: any, options?: FormattersOptionsPlural): string;
|
|
1951
|
+
/**
|
|
1952
|
+
* Formats a value with a specific unit.
|
|
1953
|
+
*
|
|
1954
|
+
* Форматирует значение с определенной единицей измерения.
|
|
1955
|
+
* @param value value to format/ значение для форматирования
|
|
1956
|
+
* @param options unit formatting options/ параметры форматирования единиц измерения
|
|
1957
|
+
* @protected
|
|
1958
|
+
* @returns Formatted unit string/ отформатированная строка единицы измерения
|
|
1959
|
+
*/
|
|
1960
|
+
protected formatUnit(value: any, options?: FormattersOptionsUnit): string;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
export declare type FormattersCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<FormattersCapitalize<Rest>>}` : K;
|
|
1964
|
+
|
|
1965
|
+
export declare type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
|
|
1966
|
+
|
|
1967
|
+
export declare type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = {
|
|
1968
|
+
[K in keyof T | FormattersKey<KT[number]>]: K extends keyof T ? T[K] : string;
|
|
1969
|
+
};
|
|
1970
|
+
|
|
1971
|
+
export declare type FormattersKey<K, A extends string = 'Format'> = K extends string ? `${FormattersCapitalize<K>}${A}` : never;
|
|
1972
|
+
|
|
1973
|
+
export declare type FormattersList<Item extends FormattersListItem> = Item[];
|
|
1974
|
+
|
|
1975
|
+
export declare type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersListFormat<T, FormattersColumns<O>>;
|
|
1976
|
+
|
|
1977
|
+
export declare type FormattersListFormat<T extends FormattersListItem, K extends string[]> = FormattersDataItem<T, K>[];
|
|
1978
|
+
|
|
1979
|
+
export declare type FormattersListItem = Record<string, any>;
|
|
1980
|
+
|
|
1981
|
+
export declare type FormattersOptionsCurrency = {
|
|
1982
|
+
currencyPropName?: string;
|
|
1983
|
+
options?: string | Intl.NumberFormatOptions;
|
|
1984
|
+
numberOnly?: boolean;
|
|
1985
|
+
};
|
|
1986
|
+
|
|
1987
|
+
export declare type FormattersOptionsDate = {
|
|
1988
|
+
type?: GeoDate;
|
|
1989
|
+
options?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions;
|
|
1990
|
+
hour24?: boolean;
|
|
1991
|
+
};
|
|
1992
|
+
|
|
1993
|
+
export declare type FormattersOptionsInformation<Type extends FormattersType> = Type extends FormattersType.currency ? FormattersOptionsCurrency : Type extends FormattersType.date ? FormattersOptionsDate : Type extends FormattersType.name ? FormattersOptionsName : Type extends FormattersType.number ? FormattersOptionsNumber : Type extends FormattersType.plural ? FormattersOptionsPlural : Type extends FormattersType.unit ? FormattersOptionsUnit : Record<string, any>;
|
|
1994
|
+
|
|
1995
|
+
export declare type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = {
|
|
1996
|
+
type?: Type;
|
|
1997
|
+
transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R;
|
|
1998
|
+
options?: FormattersOptionsInformation<Type>;
|
|
1999
|
+
};
|
|
2000
|
+
|
|
2001
|
+
export declare type FormattersOptionsList = Record<string, FormattersOptionsItem>;
|
|
2002
|
+
|
|
2003
|
+
export declare type FormattersOptionsName = {
|
|
2004
|
+
lastPropName?: string;
|
|
2005
|
+
firstPropName?: string;
|
|
2006
|
+
surname?: string;
|
|
2007
|
+
short?: boolean;
|
|
2008
|
+
};
|
|
2009
|
+
|
|
2010
|
+
export declare type FormattersOptionsNumber = {
|
|
2011
|
+
options?: Intl.NumberFormatOptions;
|
|
2012
|
+
};
|
|
2013
|
+
|
|
2014
|
+
export declare type FormattersOptionsPlural = {
|
|
2015
|
+
words: string;
|
|
2016
|
+
options?: Intl.PluralRulesOptions;
|
|
2017
|
+
optionsNumber?: Intl.NumberFormatOptions;
|
|
2018
|
+
};
|
|
2019
|
+
|
|
2020
|
+
export declare type FormattersOptionsUnit = {
|
|
2021
|
+
unit: string | Intl.NumberFormatOptions;
|
|
2022
|
+
};
|
|
2023
|
+
|
|
2024
|
+
export declare enum FormattersType {
|
|
2025
|
+
currency = "currency",
|
|
2026
|
+
date = "date",
|
|
2027
|
+
name = "name",
|
|
2028
|
+
number = "number",
|
|
2029
|
+
plural = "plural",
|
|
2030
|
+
unit = "unit"
|
|
2031
|
+
}
|
|
2032
|
+
|
|
1814
2033
|
/**
|
|
1815
2034
|
* Cyclically calls requestAnimationFrame until next returns true
|
|
1816
2035
|
* The window.requestAnimationFrame() method tells the browser that you wish to perform
|
|
@@ -2643,6 +2862,14 @@ export declare function getElementItem<T extends ElementOrWindow, K extends keyo
|
|
|
2643
2862
|
*/
|
|
2644
2863
|
export declare function getElementOrWindow<E extends ElementOrWindow>(element?: ElementOrString<E>): E | undefined;
|
|
2645
2864
|
|
|
2865
|
+
/**
|
|
2866
|
+
* Creates a case-insensitive regular expression for an exact match of a phrase (without anchors).
|
|
2867
|
+
*
|
|
2868
|
+
* Создает регистронезависимое регулярное выражение для точного совпадения фразы (без якорей).
|
|
2869
|
+
* @param search search string / строка поиска
|
|
2870
|
+
*/
|
|
2871
|
+
export declare function getExactSearchExp(search: string): RegExp;
|
|
2872
|
+
|
|
2646
2873
|
/**
|
|
2647
2874
|
* The object is used for matching text with a pattern.
|
|
2648
2875
|
*
|
|
@@ -2782,6 +3009,14 @@ export declare function getRequestString(request: Record<string, any>, sign?: st
|
|
|
2782
3009
|
*/
|
|
2783
3010
|
export declare function getSearchExp(search: string): RegExp;
|
|
2784
3011
|
|
|
3012
|
+
/**
|
|
3013
|
+
* Creates a case-insensitive regular expression for a search by words (separating by space).
|
|
3014
|
+
*
|
|
3015
|
+
* Создает регистронезависимое регулярное выражение для поиска по словам (разделение пробелом).
|
|
3016
|
+
* @param search search string / строка поиска
|
|
3017
|
+
*/
|
|
3018
|
+
export declare function getSeparatingSearchExp(search: string): RegExp;
|
|
3019
|
+
|
|
2785
3020
|
/**
|
|
2786
3021
|
* Returns the unit of measurement for 1 step
|
|
2787
3022
|
*
|
|
@@ -2801,9 +3036,9 @@ export declare function getStepPercent(min: number | undefined, max: number): nu
|
|
|
2801
3036
|
export declare function getStepValue(min: number | undefined, max: number): number;
|
|
2802
3037
|
|
|
2803
3038
|
/**
|
|
2804
|
-
*
|
|
3039
|
+
* Static utility class for storing and retrieving application-wide global data.
|
|
2805
3040
|
*
|
|
2806
|
-
*
|
|
3041
|
+
* Статический служебный класс для хранения и получения глобальных данных приложения.
|
|
2807
3042
|
*/
|
|
2808
3043
|
export declare class Global {
|
|
2809
3044
|
/**
|
|
@@ -2886,6 +3121,14 @@ export declare class Hash {
|
|
|
2886
3121
|
* @param callback the function is called when the data is changed/ функция вызывается при изменении данных
|
|
2887
3122
|
*/
|
|
2888
3123
|
static addWatch<T>(name: string, callback: (value: T) => void): void;
|
|
3124
|
+
/**
|
|
3125
|
+
* Removing an event when data is changed.
|
|
3126
|
+
*
|
|
3127
|
+
* Удаление события при изменении данных.
|
|
3128
|
+
* @param name variable names/ названия переменных
|
|
3129
|
+
* @param callback the function is called when the data is changed/ функция вызывается при изменении данных
|
|
3130
|
+
*/
|
|
3131
|
+
static removeWatch<T>(name: string, callback: (value: T) => void): void;
|
|
2889
3132
|
/**
|
|
2890
3133
|
* Update hash variable from URL string.
|
|
2891
3134
|
*
|
|
@@ -3245,12 +3488,19 @@ export declare type ItemValue<V> = {
|
|
|
3245
3488
|
export declare class Loading {
|
|
3246
3489
|
protected static value: number;
|
|
3247
3490
|
protected static event?: EventItem<Window, CustomEvent>;
|
|
3491
|
+
protected static registrationList: LoadingRegistrationItem[];
|
|
3248
3492
|
/**
|
|
3249
3493
|
* Check if the loader is active now.
|
|
3250
3494
|
*
|
|
3251
3495
|
* Проверить, активен ли сейчас загрузчик.
|
|
3252
3496
|
*/
|
|
3253
3497
|
static is(): boolean;
|
|
3498
|
+
/**
|
|
3499
|
+
* Get current loading value.
|
|
3500
|
+
*
|
|
3501
|
+
* Получить текущее значение загрузки.
|
|
3502
|
+
*/
|
|
3503
|
+
static get(): number;
|
|
3254
3504
|
/**
|
|
3255
3505
|
* Shows the loader.
|
|
3256
3506
|
*
|
|
@@ -3273,6 +3523,16 @@ export declare class Loading {
|
|
|
3273
3523
|
* @param element element/ элемент
|
|
3274
3524
|
*/
|
|
3275
3525
|
static registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
|
|
3526
|
+
/**
|
|
3527
|
+
* Unregistration of an event.
|
|
3528
|
+
*
|
|
3529
|
+
* Отмена регистрации события.
|
|
3530
|
+
* @param listener the object that receives a notification (an object that implements the
|
|
3531
|
+
* Event interface) when an event of the specified type occurs/ объект, который принимает
|
|
3532
|
+
* уведомление, когда событие указанного типа произошло
|
|
3533
|
+
* @param element element/ элемент
|
|
3534
|
+
*/
|
|
3535
|
+
static unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
|
|
3276
3536
|
/**
|
|
3277
3537
|
* Calls the event listener.
|
|
3278
3538
|
*
|
|
@@ -3285,6 +3545,12 @@ declare type LoadingDetail = {
|
|
|
3285
3545
|
loading: boolean;
|
|
3286
3546
|
};
|
|
3287
3547
|
|
|
3548
|
+
declare type LoadingRegistrationItem = {
|
|
3549
|
+
item: EventItem<Window, CustomEvent, LoadingDetail>;
|
|
3550
|
+
listener: EventListenerDetail<CustomEvent, LoadingDetail>;
|
|
3551
|
+
element?: ElementOrString<HTMLElement>;
|
|
3552
|
+
};
|
|
3553
|
+
|
|
3288
3554
|
/**
|
|
3289
3555
|
* Unified class for managing all types of meta tags (standard HTML, Open Graph, Twitter Card).
|
|
3290
3556
|
*
|
|
@@ -4470,6 +4736,18 @@ export declare class ScrollbarWidth {
|
|
|
4470
4736
|
* Возвращает ширину скролла.
|
|
4471
4737
|
*/
|
|
4472
4738
|
static get(): Promise<number>;
|
|
4739
|
+
/**
|
|
4740
|
+
* Returns the storage.
|
|
4741
|
+
*
|
|
4742
|
+
* Возвращает хранилище.
|
|
4743
|
+
*/
|
|
4744
|
+
static getStorage(): DataStorage<number>;
|
|
4745
|
+
/**
|
|
4746
|
+
* Returns the calculate flag.
|
|
4747
|
+
*
|
|
4748
|
+
* Возвращает флаг вычисления.
|
|
4749
|
+
*/
|
|
4750
|
+
static getCalculate(): boolean;
|
|
4473
4751
|
/**
|
|
4474
4752
|
* Creates elements to check the width of the scroll.
|
|
4475
4753
|
*
|
|
@@ -4484,6 +4762,490 @@ export declare class ScrollbarWidth {
|
|
|
4484
4762
|
private static init;
|
|
4485
4763
|
}
|
|
4486
4764
|
|
|
4765
|
+
/** Search cache list / Список кэша поиска */
|
|
4766
|
+
export declare type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
|
|
4767
|
+
|
|
4768
|
+
/** Search cache item / Элемент кэша поиска */
|
|
4769
|
+
export declare type SearchCacheItem<T extends SearchItem> = {
|
|
4770
|
+
/** Original item / Исходный элемент */
|
|
4771
|
+
item: T;
|
|
4772
|
+
/** Search string value / Строковое значение для поиска */
|
|
4773
|
+
value: string;
|
|
4774
|
+
};
|
|
4775
|
+
|
|
4776
|
+
/** Type for getting a column / Тип для получения колонки */
|
|
4777
|
+
export declare type SearchColumn<T extends SearchItem> = {
|
|
4778
|
+
[K in keyof T]-?: NonNullable<T[K]> extends object ? K | SearchColumnPath<K, keyof NonNullable<T[K]>> : K;
|
|
4779
|
+
}[keyof T];
|
|
4780
|
+
|
|
4781
|
+
/** Type for generating a column path / Тип для генерации пути к колонке */
|
|
4782
|
+
export declare type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
|
|
4783
|
+
|
|
4784
|
+
/** Type for a list of columns / Тип для списка колонок */
|
|
4785
|
+
export declare type SearchColumns<T extends SearchItem> = (SearchColumn<T> & string)[];
|
|
4786
|
+
|
|
4787
|
+
/** Type for formatting the key / Тип для форматирования ключа */
|
|
4788
|
+
export declare type SearchFormatCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<SearchFormatCapitalize<Rest>>}` : K;
|
|
4789
|
+
|
|
4790
|
+
/** Type for a formatted search item / Тип для отформатированного элемента поиска */
|
|
4791
|
+
export declare type SearchFormatItem<T extends SearchItem, KT extends string[]> = {
|
|
4792
|
+
[K in keyof T | SearchFormatKey<KT[number]>]: K extends keyof T ? T[K] : string;
|
|
4793
|
+
} & {
|
|
4794
|
+
searchActive?: boolean;
|
|
4795
|
+
};
|
|
4796
|
+
|
|
4797
|
+
/** Type for generating a search key / Тип для генерации ключа поиска */
|
|
4798
|
+
export declare type SearchFormatKey<K> = K extends string ? `${SearchFormatCapitalize<K>}Search` : never;
|
|
4799
|
+
|
|
4800
|
+
/** Type for a list of formatted search items / Тип для списка отформатированных элементов поиска */
|
|
4801
|
+
export declare type SearchFormatList<T extends SearchItem, K extends string[]> = SearchFormatItem<T, K>[];
|
|
4802
|
+
|
|
4803
|
+
/** Search item type/ Тип элемента поиска */
|
|
4804
|
+
export declare type SearchItem = Record<string, any>;
|
|
4805
|
+
|
|
4806
|
+
/**
|
|
4807
|
+
* Main class for managing a searchable list.
|
|
4808
|
+
* Coordinates between options, item state, matching logic, and data storage.
|
|
4809
|
+
*
|
|
4810
|
+
* Основной класс для управления списком с возможностью поиска.
|
|
4811
|
+
* Координирует работу опций, состояния элементов, логики сопоставления и хранения данных.
|
|
4812
|
+
*/
|
|
4813
|
+
export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
|
|
4814
|
+
protected options: SearchListOptions;
|
|
4815
|
+
protected item: SearchListItem;
|
|
4816
|
+
protected matcher: SearchListMatcher;
|
|
4817
|
+
protected data: SearchListData<T, K>;
|
|
4818
|
+
/**
|
|
4819
|
+
* Constructor for SearchList.
|
|
4820
|
+
*
|
|
4821
|
+
* Конструктор для SearchList.
|
|
4822
|
+
* @param list initial list of items/ исходный список элементов
|
|
4823
|
+
* @param columns columns to perform search on/ столбцы для выполнения поиска
|
|
4824
|
+
* @param value initial search value/ начальное значение поиска
|
|
4825
|
+
* @param options search options/ опции поиска
|
|
4826
|
+
*/
|
|
4827
|
+
constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
|
|
4828
|
+
/**
|
|
4829
|
+
* Returns the search data management instance.
|
|
4830
|
+
*
|
|
4831
|
+
* Возвращает экземпляр управления данными поиска.
|
|
4832
|
+
* @returns SearchListData instance/ экземпляр SearchListData
|
|
4833
|
+
*/
|
|
4834
|
+
getData(): SearchListData<T, K>;
|
|
4835
|
+
/**
|
|
4836
|
+
* Returns the current list of items.
|
|
4837
|
+
*
|
|
4838
|
+
* Возвращает текущий список элементов.
|
|
4839
|
+
* @returns list of items/ список элементов
|
|
4840
|
+
*/
|
|
4841
|
+
getList(): SearchListValue<T>;
|
|
4842
|
+
/**
|
|
4843
|
+
* Returns the current search columns.
|
|
4844
|
+
*
|
|
4845
|
+
* Возвращает текущие столбцы поиска.
|
|
4846
|
+
* @returns columns or undefined/ столбцы или undefined
|
|
4847
|
+
*/
|
|
4848
|
+
getColumns(): K | undefined;
|
|
4849
|
+
/**
|
|
4850
|
+
* Returns the search item instance.
|
|
4851
|
+
*
|
|
4852
|
+
* Возвращает экземпляр элемента поиска.
|
|
4853
|
+
* @returns SearchListItem instance/ экземпляр SearchListItem
|
|
4854
|
+
*/
|
|
4855
|
+
getItem(): SearchListItem;
|
|
4856
|
+
/**
|
|
4857
|
+
* Returns the current search value.
|
|
4858
|
+
*
|
|
4859
|
+
* Возвращает текущее значение поиска.
|
|
4860
|
+
* @returns search value string or undefined/ строка значения поиска или undefined
|
|
4861
|
+
*/
|
|
4862
|
+
getValue(): string | undefined;
|
|
4863
|
+
/**
|
|
4864
|
+
* Returns the search options instance.
|
|
4865
|
+
*
|
|
4866
|
+
* Возвращает экземпляр опций поиска.
|
|
4867
|
+
* @returns SearchListOptions instance/ экземпляр SearchListOptions
|
|
4868
|
+
*/
|
|
4869
|
+
getOptions(): SearchListOptions;
|
|
4870
|
+
/**
|
|
4871
|
+
* Sets a new list of items.
|
|
4872
|
+
*
|
|
4873
|
+
* Устанавливает новый список элементов.
|
|
4874
|
+
* @param list new list/ новый список
|
|
4875
|
+
* @returns this instance/ данный экземпляр
|
|
4876
|
+
*/
|
|
4877
|
+
setList(list: SearchListValue<T>): this;
|
|
4878
|
+
/**
|
|
4879
|
+
* Sets new search columns.
|
|
4880
|
+
*
|
|
4881
|
+
* Устанавливает новые столбцы поиска.
|
|
4882
|
+
* @param columns new columns/ новые столбцы
|
|
4883
|
+
* @returns this instance/ данный экземпляр
|
|
4884
|
+
*/
|
|
4885
|
+
setColumns(columns?: K): this;
|
|
4886
|
+
/**
|
|
4887
|
+
* Sets a new search value and updates the matcher.
|
|
4888
|
+
*
|
|
4889
|
+
* Устанавливает новое значение поиска и обновляет сопоставитель.
|
|
4890
|
+
* @param value new search value/ новое значение поиска
|
|
4891
|
+
* @returns this instance/ данный экземпляр
|
|
4892
|
+
*/
|
|
4893
|
+
setValue(value?: string): this;
|
|
4894
|
+
/**
|
|
4895
|
+
* Sets new search options and updates the matcher.
|
|
4896
|
+
*
|
|
4897
|
+
* Устанавливает новые опции поиска и обновляет сопоставитель.
|
|
4898
|
+
* @param options new options/ новые опции
|
|
4899
|
+
* @returns this instance/ данный экземпляр
|
|
4900
|
+
*/
|
|
4901
|
+
setOptions(options: SearchOptions): this;
|
|
4902
|
+
/**
|
|
4903
|
+
* Processes the list and returns a formatted list of items based on the current search state.
|
|
4904
|
+
*
|
|
4905
|
+
* Обрабатывает список и возвращает отформатированный список элементов на основе текущего состояния поиска.
|
|
4906
|
+
* @returns formatted list of items/ отформатированный список элементов
|
|
4907
|
+
*/
|
|
4908
|
+
to(): SearchFormatList<T, K>;
|
|
4909
|
+
/**
|
|
4910
|
+
* Callback for processing items when a search is active.
|
|
4911
|
+
* Checks for selection and handles "return everything" option.
|
|
4912
|
+
*
|
|
4913
|
+
* Обратный вызов для обработки элементов при активном поиске.
|
|
4914
|
+
* Проверяет выбор и обрабатывает опцию "возвращать всё".
|
|
4915
|
+
*/
|
|
4916
|
+
protected readonly callbackToSelection: (item: SearchCacheItem<T>["item"], value: SearchCacheItem<T>["value"]) => SearchFormatItem<T, K> | undefined;
|
|
4917
|
+
/**
|
|
4918
|
+
* Callback for processing items when no search is active.
|
|
4919
|
+
*
|
|
4920
|
+
* Обратный вызов для обработки элементов, когда поиск не активен.
|
|
4921
|
+
*/
|
|
4922
|
+
protected readonly callbackToNone: (item: SearchCacheItem<T>["item"]) => SearchFormatItem<T, K>;
|
|
4923
|
+
}
|
|
4924
|
+
|
|
4925
|
+
/**
|
|
4926
|
+
* Class for managing and formatting the search data list and its cache.
|
|
4927
|
+
*
|
|
4928
|
+
* Класс для управления и форматирования списка данных поиска и его кэша.
|
|
4929
|
+
*/
|
|
4930
|
+
export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
|
|
4931
|
+
protected list: SearchListValue<T>;
|
|
4932
|
+
protected columns: K | undefined;
|
|
4933
|
+
protected item: SearchListItem;
|
|
4934
|
+
protected options: SearchListOptions;
|
|
4935
|
+
protected listCache?: SearchCache<T>;
|
|
4936
|
+
/**
|
|
4937
|
+
* Constructor for SearchListData.
|
|
4938
|
+
*
|
|
4939
|
+
* Конструктор для SearchListData.
|
|
4940
|
+
* @param list original list of items/ исходный список элементов
|
|
4941
|
+
* @param columns columns to search in/ столбцы для поиска
|
|
4942
|
+
* @param item current search item state/ текущее состояние элемента поиска
|
|
4943
|
+
* @param options search options/ опции поиска
|
|
4944
|
+
*/
|
|
4945
|
+
constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
|
|
4946
|
+
/**
|
|
4947
|
+
* Checks if both list and columns are provided.
|
|
4948
|
+
*
|
|
4949
|
+
* Проверяет, предоставлены ли и список, и столбцы.
|
|
4950
|
+
* @returns boolean indicating if ready for column-based search/ логическое значение, указывающее на готовность к поиску по столбцам
|
|
4951
|
+
*/
|
|
4952
|
+
is(): this is this & {
|
|
4953
|
+
list: T[];
|
|
4954
|
+
columns: string[];
|
|
4955
|
+
};
|
|
4956
|
+
/**
|
|
4957
|
+
* Checks if the list is provided.
|
|
4958
|
+
*
|
|
4959
|
+
* Проверяет, предоставлен ли список.
|
|
4960
|
+
* @returns boolean/ логическое значение
|
|
4961
|
+
*/
|
|
4962
|
+
isList(): this is this & {
|
|
4963
|
+
list: T[];
|
|
4964
|
+
};
|
|
4965
|
+
/**
|
|
4966
|
+
* Returns the original list.
|
|
4967
|
+
*
|
|
4968
|
+
* Возвращает исходный список.
|
|
4969
|
+
* @returns list value/ значение списка
|
|
4970
|
+
*/
|
|
4971
|
+
getList(): SearchListValue<T>;
|
|
4972
|
+
/**
|
|
4973
|
+
* Returns the search columns.
|
|
4974
|
+
*
|
|
4975
|
+
* Возвращает столбцы поиска.
|
|
4976
|
+
* @returns columns or undefined/ столбцы или undefined
|
|
4977
|
+
*/
|
|
4978
|
+
getColumns(): K | undefined;
|
|
4979
|
+
/**
|
|
4980
|
+
* Gets the search cache, initializing it if necessary.
|
|
4981
|
+
*
|
|
4982
|
+
* Получает кэш поиска, инициализируя его при необходимости.
|
|
4983
|
+
* @returns search cache/ кэш поиска
|
|
4984
|
+
*/
|
|
4985
|
+
protected getCache(): SearchCache<T>;
|
|
4986
|
+
/**
|
|
4987
|
+
* Sets a new list and regenerates the cache.
|
|
4988
|
+
*
|
|
4989
|
+
* Устанавливает новый список и регенерирует кэш.
|
|
4990
|
+
* @param list new list/ новый список
|
|
4991
|
+
* @returns this instance/ данный экземпляр
|
|
4992
|
+
*/
|
|
4993
|
+
setList(list: SearchListValue<T>): this;
|
|
4994
|
+
/**
|
|
4995
|
+
* Sets new search columns and regenerates the cache.
|
|
4996
|
+
*
|
|
4997
|
+
* Устанавливает новые столбцы поиска и регенерирует кэш.
|
|
4998
|
+
* @param columns new columns/ новые столбцы
|
|
4999
|
+
* @returns this instance/ данный экземпляр
|
|
5000
|
+
*/
|
|
5001
|
+
setColumns(columns?: SearchColumns<T>): this;
|
|
5002
|
+
/**
|
|
5003
|
+
* Finds a cached item corresponding to the given original item.
|
|
5004
|
+
*
|
|
5005
|
+
* Находит кэшированный элемент, соответствующий данному исходному элементу.
|
|
5006
|
+
* @param item original item/ исходный элемент
|
|
5007
|
+
* @returns cache item or undefined/ кэшированный элемент или undefined
|
|
5008
|
+
*/
|
|
5009
|
+
findCacheItem(item: T): SearchCacheItem<T> | undefined;
|
|
5010
|
+
/**
|
|
5011
|
+
* Iterates over the cached list and executes a callback for each item.
|
|
5012
|
+
*
|
|
5013
|
+
* Перебирает кэшированный список и выполняет обратный вызов для каждого элемента.
|
|
5014
|
+
* @param callback function to execute for each item/ функция для выполнения для каждого элемента
|
|
5015
|
+
* @returns formatted list/ отформатированный список
|
|
5016
|
+
*/
|
|
5017
|
+
forEach(callback: (item: SearchCacheItem<T>['item'], value: SearchCacheItem<T>['value']) => SearchFormatItem<T, K> | undefined): SearchFormatList<T, K>;
|
|
5018
|
+
/**
|
|
5019
|
+
* Converts a single item to a formatted item with highlighted matches if selected.
|
|
5020
|
+
*
|
|
5021
|
+
* Преобразует один элемент в отформатированный элемент с выделенными совпадениями, если он выбран.
|
|
5022
|
+
* @param item original item/ исходный элемент
|
|
5023
|
+
* @param selection whether the item matches the search and should be highlighted/ совпадает ли элемент с поиском и должен ли он быть выделен
|
|
5024
|
+
* @returns formatted item/ отформатированный элемент
|
|
5025
|
+
*/
|
|
5026
|
+
toFormatItem(item: T, selection: boolean): SearchFormatItem<T, K>;
|
|
5027
|
+
/**
|
|
5028
|
+
* Formats a column path to a camelCase property name with a 'Search' suffix.
|
|
5029
|
+
*
|
|
5030
|
+
* Форматирует путь к столбцу в имя свойства camelCase с суффиксом 'Search'.
|
|
5031
|
+
* @param column column path/ путь к столбцу
|
|
5032
|
+
* @returns property name/ имя свойства
|
|
5033
|
+
*/
|
|
5034
|
+
protected getColumnName(column: string): string;
|
|
5035
|
+
/**
|
|
5036
|
+
* Adds highlight tags to the given value based on the current search value.
|
|
5037
|
+
*
|
|
5038
|
+
* Добавляет теги выделения к данному значению на основе текущего значения поиска.
|
|
5039
|
+
* @param value value to highlight/ значение для выделения
|
|
5040
|
+
* @returns highlighted string/ выделенная строка
|
|
5041
|
+
*/
|
|
5042
|
+
protected addTag(value: any): string;
|
|
5043
|
+
/**
|
|
5044
|
+
* Generates a search cache for the current list and columns.
|
|
5045
|
+
*
|
|
5046
|
+
* Генерирует кэш поиска для текущего списка и столбцов.
|
|
5047
|
+
* @returns search cache/ кэш поиска
|
|
5048
|
+
*/
|
|
5049
|
+
protected generateCache(): SearchCache<T>;
|
|
5050
|
+
/**
|
|
5051
|
+
* Initializes the search cache.
|
|
5052
|
+
*
|
|
5053
|
+
* Инициализирует кэш поиска.
|
|
5054
|
+
*/
|
|
5055
|
+
protected initCache(): void;
|
|
5056
|
+
/**
|
|
5057
|
+
* Resets the search cache.
|
|
5058
|
+
*
|
|
5059
|
+
* Сбрасывает кэш поиска.
|
|
5060
|
+
*/
|
|
5061
|
+
protected resetCache(): void;
|
|
5062
|
+
}
|
|
5063
|
+
|
|
5064
|
+
/**
|
|
5065
|
+
* Class representing a single search item's value and its search-related state.
|
|
5066
|
+
*
|
|
5067
|
+
* Класс, представляющий значение одного элемента поиска и его состояние, связанное с поиском.
|
|
5068
|
+
*/
|
|
5069
|
+
export declare class SearchListItem {
|
|
5070
|
+
protected value: string | undefined;
|
|
5071
|
+
protected options: SearchListOptions;
|
|
5072
|
+
/**
|
|
5073
|
+
* Constructor for SearchListItem.
|
|
5074
|
+
*
|
|
5075
|
+
* Конструктор для SearchListItem.
|
|
5076
|
+
* @param value current search value/ текущее значение поиска
|
|
5077
|
+
* @param options search options/ опции поиска
|
|
5078
|
+
*/
|
|
5079
|
+
constructor(value: string | undefined, options: SearchListOptions);
|
|
5080
|
+
/**
|
|
5081
|
+
* Checks if the value is filled.
|
|
5082
|
+
*
|
|
5083
|
+
* Проверяет, заполнено ли значение.
|
|
5084
|
+
* @returns boolean indicating if value exists/ логическое значение, указывающее на наличие значения
|
|
5085
|
+
*/
|
|
5086
|
+
is(): this is this & {
|
|
5087
|
+
value: string;
|
|
5088
|
+
};
|
|
5089
|
+
/**
|
|
5090
|
+
* Checks if a search should be performed based on the current value and options.
|
|
5091
|
+
*
|
|
5092
|
+
* Проверяет, следует ли выполнять поиск на основе текущего значения и опций.
|
|
5093
|
+
* @returns boolean/ логическое значение
|
|
5094
|
+
*/
|
|
5095
|
+
isSearch(): boolean;
|
|
5096
|
+
/**
|
|
5097
|
+
* Returns the current search value as a string.
|
|
5098
|
+
*
|
|
5099
|
+
* Возвращает текущее значение поиска в виде строки.
|
|
5100
|
+
* @returns search value/ значение поиска
|
|
5101
|
+
*/
|
|
5102
|
+
get(): string;
|
|
5103
|
+
/**
|
|
5104
|
+
* Sets a new search value.
|
|
5105
|
+
*
|
|
5106
|
+
* Устанавливает новое значение поиска.
|
|
5107
|
+
* @param value new search value/ новое значение поиска
|
|
5108
|
+
* @returns this instance/ данный экземпляр
|
|
5109
|
+
*/
|
|
5110
|
+
set(value?: string): this;
|
|
5111
|
+
}
|
|
5112
|
+
|
|
5113
|
+
/**
|
|
5114
|
+
* Class responsible for matching search values against the search list data using regular expressions.
|
|
5115
|
+
*
|
|
5116
|
+
* Класс, отвечающий за сопоставление значений поиска с данными списка поиска с использованием регулярных выражений.
|
|
5117
|
+
*/
|
|
5118
|
+
export declare class SearchListMatcher {
|
|
5119
|
+
protected item: SearchListItem;
|
|
5120
|
+
protected options: SearchListOptions;
|
|
5121
|
+
protected matcher: RegExp | undefined;
|
|
5122
|
+
/**
|
|
5123
|
+
* Constructor for SearchListMatcher.
|
|
5124
|
+
*
|
|
5125
|
+
* Конструктор для SearchListMatcher.
|
|
5126
|
+
* @param item search item containing the current value/ элемент поиска, содержащий текущее значение
|
|
5127
|
+
* @param options search options/ опции поиска
|
|
5128
|
+
*/
|
|
5129
|
+
constructor(item: SearchListItem, options: SearchListOptions);
|
|
5130
|
+
/**
|
|
5131
|
+
* Checks if the matcher is initialized.
|
|
5132
|
+
*
|
|
5133
|
+
* Проверяет, инициализирован ли сопоставитель.
|
|
5134
|
+
* @returns boolean/ логическое значение
|
|
5135
|
+
*/
|
|
5136
|
+
is(): boolean;
|
|
5137
|
+
/**
|
|
5138
|
+
* Checks if the given value matches the current search expression.
|
|
5139
|
+
*
|
|
5140
|
+
* Проверяет, соответствует ли данное значение текущему поисковому выражению.
|
|
5141
|
+
* @param value value to check/ проверяемое значение
|
|
5142
|
+
* @returns boolean indicating a match/ логическое значение, указывающее на совпадение
|
|
5143
|
+
*/
|
|
5144
|
+
isSelection(value: SearchCacheItem<any>['value']): boolean;
|
|
5145
|
+
/**
|
|
5146
|
+
* Returns the current regular expression matcher.
|
|
5147
|
+
*
|
|
5148
|
+
* Возвращает текущий сопоставитель регулярных выражений.
|
|
5149
|
+
* @returns RegExp or undefined/ RegExp или undefined
|
|
5150
|
+
*/
|
|
5151
|
+
get(): RegExp | undefined;
|
|
5152
|
+
/**
|
|
5153
|
+
* Updates the matcher based on the current item value and options.
|
|
5154
|
+
*
|
|
5155
|
+
* Обновляет сопоставитель на основе текущего значения элемента и опций.
|
|
5156
|
+
*/
|
|
5157
|
+
update(): void;
|
|
5158
|
+
/**
|
|
5159
|
+
* Initializes or resets the regular expression matcher.
|
|
5160
|
+
*
|
|
5161
|
+
* Инициализирует или сбрасывает сопоставитель регулярных выражений.
|
|
5162
|
+
*/
|
|
5163
|
+
protected initMatcher(): void;
|
|
5164
|
+
}
|
|
5165
|
+
|
|
5166
|
+
/**
|
|
5167
|
+
* Class for managing search list options.
|
|
5168
|
+
*
|
|
5169
|
+
* Класс для управления опциями списка поиска.
|
|
5170
|
+
*/
|
|
5171
|
+
export declare class SearchListOptions {
|
|
5172
|
+
protected options?: SearchOptions | undefined;
|
|
5173
|
+
/**
|
|
5174
|
+
* Constructor for SearchListOptions.
|
|
5175
|
+
*
|
|
5176
|
+
* Конструктор для SearchListOptions.
|
|
5177
|
+
* @param options search options/ опции поиска
|
|
5178
|
+
*/
|
|
5179
|
+
constructor(options?: SearchOptions | undefined);
|
|
5180
|
+
/**
|
|
5181
|
+
* Returns the current search options.
|
|
5182
|
+
*
|
|
5183
|
+
* Возвращает текущие опции поиска.
|
|
5184
|
+
* @returns search options/ опции поиска
|
|
5185
|
+
*/
|
|
5186
|
+
getOptions(): SearchOptions;
|
|
5187
|
+
/**
|
|
5188
|
+
* Returns the minimum number of characters required to trigger a search.
|
|
5189
|
+
*
|
|
5190
|
+
* Возвращает минимальное количество символов, необходимых для запуска поиска.
|
|
5191
|
+
* @returns limit value/ значение лимита
|
|
5192
|
+
*/
|
|
5193
|
+
getLimit(): number;
|
|
5194
|
+
/**
|
|
5195
|
+
* Returns whether to return all items even if they don't match the search query.
|
|
5196
|
+
*
|
|
5197
|
+
* Возвращает, следует ли возвращать все элементы, даже если они не соответствуют поисковому запросу.
|
|
5198
|
+
* @returns boolean value/ логическое значение
|
|
5199
|
+
*/
|
|
5200
|
+
getReturnEverything(): boolean;
|
|
5201
|
+
/**
|
|
5202
|
+
* Returns the search delay in milliseconds.
|
|
5203
|
+
*
|
|
5204
|
+
* Возвращает задержку поиска в миллисекундах.
|
|
5205
|
+
* @returns delay value/ значение задержки
|
|
5206
|
+
*/
|
|
5207
|
+
getDelay(): number;
|
|
5208
|
+
/**
|
|
5209
|
+
* Returns whether to perform an exact match search.
|
|
5210
|
+
*
|
|
5211
|
+
* Возвращает, следует ли выполнять поиск с точным совпадением.
|
|
5212
|
+
* @returns boolean value/ логическое значение
|
|
5213
|
+
*/
|
|
5214
|
+
getFindExactMatch(): boolean;
|
|
5215
|
+
/**
|
|
5216
|
+
* Returns the CSS class name used for highlighting matches.
|
|
5217
|
+
*
|
|
5218
|
+
* Возвращает имя класса CSS, используемое для выделения совпадений.
|
|
5219
|
+
* @returns class name/ имя класса
|
|
5220
|
+
*/
|
|
5221
|
+
getClassName(): string;
|
|
5222
|
+
/**
|
|
5223
|
+
* Sets new search options.
|
|
5224
|
+
*
|
|
5225
|
+
* Устанавливает новые опции поиска.
|
|
5226
|
+
* @param options search options/ опции поиска
|
|
5227
|
+
* @returns this instance/ данный экземпляр
|
|
5228
|
+
*/
|
|
5229
|
+
setOptions(options: SearchOptions): this;
|
|
5230
|
+
}
|
|
5231
|
+
|
|
5232
|
+
/** Search list value / Значение списка поиска */
|
|
5233
|
+
export declare type SearchListValue<T extends SearchItem> = T[] | undefined;
|
|
5234
|
+
|
|
5235
|
+
/** Search options / Опции поиска */
|
|
5236
|
+
export declare type SearchOptions = {
|
|
5237
|
+
/** Limit of output values / Лимит выводимых значений */
|
|
5238
|
+
limit?: number;
|
|
5239
|
+
/** Whether to return all items even if no match / Возвращать ли все элементы, даже если совпадений нет */
|
|
5240
|
+
returnEverything?: boolean;
|
|
5241
|
+
/** Delay before searching / Задержка перед поиском */
|
|
5242
|
+
delay?: number;
|
|
5243
|
+
/** Find exact match / Найти точное совпадение */
|
|
5244
|
+
findExactMatch?: boolean;
|
|
5245
|
+
/** CSS class for matches / CSS класс для совпадений */
|
|
5246
|
+
classSearchName?: string;
|
|
5247
|
+
};
|
|
5248
|
+
|
|
4487
5249
|
/**
|
|
4488
5250
|
* Converts seconds into a time string.
|
|
4489
5251
|
*
|