@dxtmisha/functional-basic 1.8.9 → 1.10.0

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 (200) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/ai-description.md +6 -13
  3. package/ai-mcp-resources.json +14 -2
  4. package/ai-resources/design-config.md +104 -0
  5. package/ai-resources/error-center.md +150 -0
  6. package/ai-types.md +1 -3233
  7. package/dist/library.d.ts +9991 -189
  8. package/dist/library.js +851 -835
  9. package/package.json +7 -2
  10. package/ai-resources/prompts.json +0 -8
  11. package/dist/classes/Api.d.ts +0 -209
  12. package/dist/classes/ApiCache.d.ts +0 -152
  13. package/dist/classes/ApiDataReturn.d.ts +0 -79
  14. package/dist/classes/ApiDefault.d.ts +0 -49
  15. package/dist/classes/ApiError.d.ts +0 -39
  16. package/dist/classes/ApiErrorItem.d.ts +0 -70
  17. package/dist/classes/ApiErrorStorage.d.ts +0 -92
  18. package/dist/classes/ApiHeaders.d.ts +0 -37
  19. package/dist/classes/ApiHydration.d.ts +0 -40
  20. package/dist/classes/ApiInstance.d.ts +0 -299
  21. package/dist/classes/ApiPreparation.d.ts +0 -58
  22. package/dist/classes/ApiResponse.d.ts +0 -154
  23. package/dist/classes/ApiStatus.d.ts +0 -131
  24. package/dist/classes/BroadcastMessage.d.ts +0 -76
  25. package/dist/classes/Cache.d.ts +0 -39
  26. package/dist/classes/CacheItem.d.ts +0 -65
  27. package/dist/classes/CacheStatic.d.ts +0 -36
  28. package/dist/classes/Cookie.d.ts +0 -54
  29. package/dist/classes/CookieBlock.d.ts +0 -30
  30. package/dist/classes/CookieBlockInstance.d.ts +0 -24
  31. package/dist/classes/CookieStorage.d.ts +0 -175
  32. package/dist/classes/DataStorage.d.ts +0 -107
  33. package/dist/classes/Datetime.d.ts +0 -571
  34. package/dist/classes/ErrorCenter.d.ts +0 -86
  35. package/dist/classes/ErrorCenterHandler.d.ts +0 -85
  36. package/dist/classes/ErrorCenterInstance.d.ts +0 -101
  37. package/dist/classes/EventItem.d.ts +0 -230
  38. package/dist/classes/Formatters.d.ts +0 -157
  39. package/dist/classes/Geo.d.ts +0 -172
  40. package/dist/classes/GeoFlag.d.ts +0 -135
  41. package/dist/classes/GeoInstance.d.ts +0 -264
  42. package/dist/classes/GeoIntl.d.ts +0 -291
  43. package/dist/classes/GeoPhone.d.ts +0 -110
  44. package/dist/classes/GeoUnit.d.ts +0 -207
  45. package/dist/classes/Global.d.ts +0 -29
  46. package/dist/classes/Hash.d.ts +0 -57
  47. package/dist/classes/HashInstance.d.ts +0 -29
  48. package/dist/classes/Icons.d.ts +0 -128
  49. package/dist/classes/Loading.d.ts +0 -62
  50. package/dist/classes/LoadingInstance.d.ts +0 -87
  51. package/dist/classes/Meta.d.ts +0 -189
  52. package/dist/classes/MetaManager.d.ts +0 -123
  53. package/dist/classes/MetaOg.d.ts +0 -120
  54. package/dist/classes/MetaStatic.d.ts +0 -179
  55. package/dist/classes/MetaTwitter.d.ts +0 -120
  56. package/dist/classes/Query.d.ts +0 -57
  57. package/dist/classes/QueryInstance.d.ts +0 -29
  58. package/dist/classes/ResumableTimer.d.ts +0 -85
  59. package/dist/classes/ScrollbarWidth.d.ts +0 -52
  60. package/dist/classes/SearchList.d.ts +0 -132
  61. package/dist/classes/SearchListData.d.ts +0 -144
  62. package/dist/classes/SearchListItem.d.ts +0 -49
  63. package/dist/classes/SearchListMatcher.d.ts +0 -58
  64. package/dist/classes/SearchListOptions.d.ts +0 -66
  65. package/dist/classes/ServerStorage.d.ts +0 -110
  66. package/dist/classes/StorageCallback.d.ts +0 -86
  67. package/dist/classes/Translate.d.ts +0 -117
  68. package/dist/classes/TranslateFile.d.ts +0 -81
  69. package/dist/classes/TranslateInstance.d.ts +0 -203
  70. package/dist/classes/UrlInstanceAbstract.d.ts +0 -98
  71. package/dist/classes/UrlItem.d.ts +0 -119
  72. package/dist/functions/addTagHighlightMatch.d.ts +0 -11
  73. package/dist/functions/anyToString.d.ts +0 -10
  74. package/dist/functions/applyTemplate.d.ts +0 -10
  75. package/dist/functions/arrFill.d.ts +0 -9
  76. package/dist/functions/blobToBase64.d.ts +0 -9
  77. package/dist/functions/capitalize.d.ts +0 -9
  78. package/dist/functions/copyObject.d.ts +0 -10
  79. package/dist/functions/copyObjectLite.d.ts +0 -9
  80. package/dist/functions/createElement.d.ts +0 -21
  81. package/dist/functions/domContentLoaded.d.ts +0 -13
  82. package/dist/functions/domQuerySelector.d.ts +0 -8
  83. package/dist/functions/domQuerySelectorAll.d.ts +0 -8
  84. package/dist/functions/encodeAttribute.d.ts +0 -8
  85. package/dist/functions/encodeLiteAttribute.d.ts +0 -8
  86. package/dist/functions/ensureMaxSize.d.ts +0 -10
  87. package/dist/functions/escapeExp.d.ts +0 -7
  88. package/dist/functions/eventStopPropagation.d.ts +0 -7
  89. package/dist/functions/executeFunction.d.ts +0 -12
  90. package/dist/functions/executePromise.d.ts +0 -11
  91. package/dist/functions/forEach.d.ts +0 -14
  92. package/dist/functions/frame.d.ts +0 -10
  93. package/dist/functions/getArrayHighlightMatch.d.ts +0 -10
  94. package/dist/functions/getAttributes.d.ts +0 -9
  95. package/dist/functions/getClipboardData.d.ts +0 -9
  96. package/dist/functions/getColumn.d.ts +0 -10
  97. package/dist/functions/getCurrentDate.d.ts +0 -19
  98. package/dist/functions/getCurrentTime.d.ts +0 -15
  99. package/dist/functions/getElement.d.ts +0 -9
  100. package/dist/functions/getElementId.d.ts +0 -26
  101. package/dist/functions/getElementImage.d.ts +0 -8
  102. package/dist/functions/getElementItem.d.ts +0 -12
  103. package/dist/functions/getElementOrWindow.d.ts +0 -8
  104. package/dist/functions/getElementSafeScript.d.ts +0 -9
  105. package/dist/functions/getExactSearchExp.d.ts +0 -8
  106. package/dist/functions/getExp.d.ts +0 -14
  107. package/dist/functions/getFirst.d.ts +0 -8
  108. package/dist/functions/getHydrationData.d.ts +0 -10
  109. package/dist/functions/getItemByPath.d.ts +0 -9
  110. package/dist/functions/getKey.d.ts +0 -8
  111. package/dist/functions/getLast.d.ts +0 -8
  112. package/dist/functions/getLength.d.ts +0 -10
  113. package/dist/functions/getLengthOfAllArray.d.ts +0 -8
  114. package/dist/functions/getMaxLengthAllArray.d.ts +0 -9
  115. package/dist/functions/getMinLengthAllArray.d.ts +0 -8
  116. package/dist/functions/getMouseClient.d.ts +0 -9
  117. package/dist/functions/getMouseClientX.d.ts +0 -8
  118. package/dist/functions/getMouseClientY.d.ts +0 -8
  119. package/dist/functions/getObjectByKeys.d.ts +0 -8
  120. package/dist/functions/getObjectNoUndefined.d.ts +0 -9
  121. package/dist/functions/getObjectOrNone.d.ts +0 -8
  122. package/dist/functions/getOnlyText.d.ts +0 -8
  123. package/dist/functions/getRandomItem.d.ts +0 -10
  124. package/dist/functions/getRandomText.d.ts +0 -12
  125. package/dist/functions/getRequestString.d.ts +0 -11
  126. package/dist/functions/getSearchExp.d.ts +0 -12
  127. package/dist/functions/getSeparatingSearchExp.d.ts +0 -9
  128. package/dist/functions/getStepPercent.d.ts +0 -9
  129. package/dist/functions/getStepValue.d.ts +0 -9
  130. package/dist/functions/goScroll.d.ts +0 -10
  131. package/dist/functions/goScrollSmooth.d.ts +0 -10
  132. package/dist/functions/goScrollTo.d.ts +0 -10
  133. package/dist/functions/handleShare.d.ts +0 -10
  134. package/dist/functions/inArray.d.ts +0 -9
  135. package/dist/functions/initScrollbarOffset.d.ts +0 -7
  136. package/dist/functions/intersectKey.d.ts +0 -9
  137. package/dist/functions/isApiSuccess.d.ts +0 -9
  138. package/dist/functions/isArray.d.ts +0 -8
  139. package/dist/functions/isDifferent.d.ts +0 -10
  140. package/dist/functions/isDomData.d.ts +0 -7
  141. package/dist/functions/isDomRuntime.d.ts +0 -10
  142. package/dist/functions/isElementVisible.d.ts +0 -11
  143. package/dist/functions/isEnter.d.ts +0 -9
  144. package/dist/functions/isFilled.d.ts +0 -10
  145. package/dist/functions/isFloat.d.ts +0 -8
  146. package/dist/functions/isFunction.d.ts +0 -9
  147. package/dist/functions/isInDom.d.ts +0 -9
  148. package/dist/functions/isInput.d.ts +0 -8
  149. package/dist/functions/isIntegerBetween.d.ts +0 -9
  150. package/dist/functions/isMetaKey.d.ts +0 -8
  151. package/dist/functions/isNull.d.ts +0 -9
  152. package/dist/functions/isNumber.d.ts +0 -8
  153. package/dist/functions/isObject.d.ts +0 -8
  154. package/dist/functions/isObjectNotArray.d.ts +0 -8
  155. package/dist/functions/isOnLine.d.ts +0 -7
  156. package/dist/functions/isSelected.d.ts +0 -9
  157. package/dist/functions/isSelectedByList.d.ts +0 -9
  158. package/dist/functions/isShare.d.ts +0 -7
  159. package/dist/functions/isString.d.ts +0 -8
  160. package/dist/functions/isTab.d.ts +0 -8
  161. package/dist/functions/isWindow.d.ts +0 -7
  162. package/dist/functions/random.d.ts +0 -9
  163. package/dist/functions/removeCommonPrefix.d.ts +0 -9
  164. package/dist/functions/replaceComponentName.d.ts +0 -9
  165. package/dist/functions/replaceRecursive.d.ts +0 -11
  166. package/dist/functions/replaceTemplate.d.ts +0 -10
  167. package/dist/functions/resizeImageByMax.d.ts +0 -19
  168. package/dist/functions/secondToTime.d.ts +0 -9
  169. package/dist/functions/setElementItem.d.ts +0 -11
  170. package/dist/functions/setValues.d.ts +0 -18
  171. package/dist/functions/sleep.d.ts +0 -8
  172. package/dist/functions/sortList.d.ts +0 -11
  173. package/dist/functions/splice.d.ts +0 -13
  174. package/dist/functions/strFill.d.ts +0 -9
  175. package/dist/functions/strSplit.d.ts +0 -12
  176. package/dist/functions/toArray.d.ts +0 -17
  177. package/dist/functions/toCamelCase.d.ts +0 -8
  178. package/dist/functions/toCamelCaseFirst.d.ts +0 -8
  179. package/dist/functions/toDate.d.ts +0 -8
  180. package/dist/functions/toKebabCase.d.ts +0 -15
  181. package/dist/functions/toNumber.d.ts +0 -19
  182. package/dist/functions/toNumberByMax.d.ts +0 -11
  183. package/dist/functions/toNumberPositive.d.ts +0 -9
  184. package/dist/functions/toPercent.d.ts +0 -9
  185. package/dist/functions/toPercentBy100.d.ts +0 -9
  186. package/dist/functions/toString.d.ts +0 -8
  187. package/dist/functions/transformation.d.ts +0 -21
  188. package/dist/functions/uint8ArrayToBase64.d.ts +0 -8
  189. package/dist/functions/uniqueArray.d.ts +0 -8
  190. package/dist/functions/writeClipboardData.d.ts +0 -8
  191. package/dist/media/errorCauseList.d.ts +0 -2
  192. package/dist/types/apiTypes.d.ts +0 -259
  193. package/dist/types/basicTypes.d.ts +0 -131
  194. package/dist/types/errorCenterTypes.d.ts +0 -50
  195. package/dist/types/formattersTypes.d.ts +0 -224
  196. package/dist/types/geoTypes.d.ts +0 -142
  197. package/dist/types/metaTypes.d.ts +0 -586
  198. package/dist/types/searchTypes.d.ts +0 -53
  199. package/dist/types/sortTypes.d.ts +0 -20
  200. package/dist/types/translateTypes.d.ts +0 -54
@@ -1,120 +0,0 @@
1
- import { MetaManager } from './MetaManager';
2
- import { MetaOpenGraphTag, MetaOpenGraphType } from '../types/metaTypes';
3
- /**
4
- * Class for working with Open Graph meta tags.
5
- *
6
- * Класс для управления мета-тегами Open Graph.
7
- */
8
- export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
9
- /**
10
- * Constructor for MetaOg.
11
- *
12
- * Конструктор для MetaOg.
13
- */
14
- constructor();
15
- /**
16
- * Gets the Open Graph title.
17
- *
18
- * Получает заголовок Open Graph.
19
- * @returns title / заголовок
20
- */
21
- getTitle(): string;
22
- /**
23
- * Gets the Open Graph type.
24
- *
25
- * Получает тип Open Graph.
26
- * @returns type / тип
27
- */
28
- getType(): MetaOpenGraphType;
29
- /**
30
- * Gets the Open Graph URL.
31
- *
32
- * Получает URL Open Graph.
33
- * @returns URL / URL адрес
34
- */
35
- getUrl(): string;
36
- /**
37
- * Gets the Open Graph image URL.
38
- *
39
- * Получает URL изображения Open Graph.
40
- * @returns image URL / URL изображения
41
- */
42
- getImage(): string;
43
- /**
44
- * Gets the Open Graph description.
45
- *
46
- * Получает описание Open Graph.
47
- * @returns description / описание
48
- */
49
- getDescription(): string;
50
- /**
51
- * Gets the Open Graph locale.
52
- *
53
- * Получает локаль Open Graph.
54
- * @returns locale / локаль
55
- */
56
- getLocale(): string;
57
- /**
58
- * Gets the Open Graph site name.
59
- *
60
- * Получает название сайта Open Graph.
61
- * @returns site name / название сайта
62
- */
63
- getSiteName(): string;
64
- /**
65
- * Sets the Open Graph title.
66
- *
67
- * Устанавливает заголовок Open Graph.
68
- * @param title title / заголовок
69
- * @returns current instance / текущий экземпляр
70
- */
71
- setTitle(title: string): this;
72
- /**
73
- * Sets the Open Graph type.
74
- *
75
- * Устанавливает тип Open Graph.
76
- * @param type type / тип
77
- * @returns current instance / текущий экземпляр
78
- */
79
- setType(type: MetaOpenGraphType): this;
80
- /**
81
- * Sets the Open Graph URL.
82
- *
83
- * Устанавливает URL Open Graph.
84
- * @param url URL / URL адрес
85
- * @returns current instance / текущий экземпляр
86
- */
87
- setUrl(url: string): this;
88
- /**
89
- * Sets the Open Graph image URL.
90
- *
91
- * Устанавливает URL изображения Open Graph.
92
- * @param url image URL / URL изображения
93
- * @returns current instance / текущий экземпляр
94
- */
95
- setImage(url: string): this;
96
- /**
97
- * Sets the Open Graph description.
98
- *
99
- * Устанавливает описание Open Graph.
100
- * @param description description / описание
101
- * @returns current instance / текущий экземпляр
102
- */
103
- setDescription(description: string): this;
104
- /**
105
- * Sets the Open Graph locale.
106
- *
107
- * Устанавливает локаль Open Graph.
108
- * @param locale locale (e.g. 'en_US', 'ru_RU') / локаль (например, 'en_US', 'ru_RU')
109
- * @returns current instance / текущий экземпляр
110
- */
111
- setLocale(locale: string): this;
112
- /**
113
- * Sets the Open Graph site name.
114
- *
115
- * Устанавливает название сайта Open Graph.
116
- * @param siteName site name / название сайта
117
- * @returns current instance / текущий экземпляр
118
- */
119
- setSiteName(siteName: string): this;
120
- }
@@ -1,179 +0,0 @@
1
- import { Meta } from './Meta';
2
- import { MetaOg } from './MetaOg';
3
- import { MetaTwitter } from './MetaTwitter';
4
- import { MetaRobots } from '../types/metaTypes';
5
- /**
6
- * Static class for managing meta tags.
7
- *
8
- * Статичный класс для управления мета-тегами.
9
- */
10
- export declare class MetaStatic {
11
- /**
12
- * Returns the singleton instance of the Meta class.
13
- *
14
- * Возвращает синглтон-экземпляр класса Meta.
15
- * @returns Meta singleton / синглтон Meta
16
- */
17
- static getItem(): Meta;
18
- /**
19
- * Gets the MetaOg instance for advanced Open Graph operations.
20
- *
21
- * Получает экземпляр MetaOg для расширенных операций с Open Graph.
22
- * @returns MetaOg instance / экземпляр MetaOg
23
- */
24
- static getOg(): MetaOg;
25
- /**
26
- * Gets the MetaTwitter instance for advanced Twitter Card operations.
27
- *
28
- * Получает экземпляр MetaTwitter для расширенных операций с Twitter Card.
29
- * @returns MetaTwitter instance / экземпляр MetaTwitter
30
- */
31
- static getTwitter(): MetaTwitter;
32
- /**
33
- * Gets the page title without suffix.
34
- *
35
- * Получает заголовок страницы без суффикса.
36
- * @returns title without suffix / заголовок без суффикса
37
- */
38
- static getTitle(): string;
39
- /**
40
- * Gets the keywords meta tag.
41
- *
42
- * Получает мета-тег keywords.
43
- * @returns keywords content / содержимое keywords
44
- */
45
- static getKeywords(): string;
46
- /**
47
- * Gets the description meta tag.
48
- *
49
- * Получает мета-тег description.
50
- * @returns description content / содержимое description
51
- */
52
- static getDescription(): string;
53
- /**
54
- * Gets the Open Graph image URL.
55
- *
56
- * Получает URL изображения Open Graph.
57
- * @returns image URL / URL изображения
58
- */
59
- static getImage(): string;
60
- /**
61
- * Gets the canonical URL.
62
- *
63
- * Получает канонический URL.
64
- * @returns canonical URL / канонический URL
65
- */
66
- static getCanonical(): string;
67
- /**
68
- * Gets the robots meta tag value.
69
- *
70
- * Получает значение мета-тега robots.
71
- * @returns robots directive / директива robots
72
- */
73
- static getRobots(): MetaRobots;
74
- /**
75
- * Gets the author meta tag.
76
- *
77
- * Получает мета-тег author.
78
- * @returns author name / имя автора
79
- */
80
- static getAuthor(): string;
81
- /**
82
- * Gets the Open Graph site name.
83
- *
84
- * Получает название сайта Open Graph.
85
- * @returns site name / название сайта
86
- */
87
- static getSiteName(): string;
88
- /**
89
- * Gets the Open Graph locale.
90
- *
91
- * Получает локаль Open Graph.
92
- * @returns locale / локаль
93
- */
94
- static getLocale(): string;
95
- /**
96
- * Sets the page title (with suffix) and updates Open Graph and Twitter Card titles.
97
- *
98
- * Устанавливает заголовок страницы (с суффиксом) и обновляет заголовки Open Graph и Twitter Card.
99
- * @param title page title / заголовок страницы
100
- */
101
- static setTitle(title: string): typeof MetaStatic;
102
- /**
103
- * Sets the keywords meta tag.
104
- *
105
- * Устанавливает мета-тег keywords.
106
- * @param keywords keywords as string or array / ключевые слова в виде строки или массива
107
- */
108
- static setKeywords(keywords: string | string[]): typeof MetaStatic;
109
- /**
110
- * Sets the description meta tag.
111
- *
112
- * Устанавливает мета-тег description.
113
- * @param description page description / описание страницы
114
- */
115
- static setDescription(description: string): typeof MetaStatic;
116
- /**
117
- * Sets the image for Open Graph and Twitter Card.
118
- *
119
- * Устанавливает изображение для Open Graph и Twitter Card.
120
- * @param image image URL / URL изображения
121
- */
122
- static setImage(image: string): typeof MetaStatic;
123
- /**
124
- * Sets the canonical URL and updates Open Graph and Twitter Card URLs.
125
- *
126
- * Устанавливает канонический URL и обновляет URL для Open Graph и Twitter Card.
127
- * @param canonical canonical URL / канонический URL
128
- */
129
- static setCanonical(canonical: string): typeof MetaStatic;
130
- /**
131
- * Sets the robots meta tag.
132
- *
133
- * Устанавливает мета-тег robots.
134
- * @param robots robots directive / директива robots
135
- */
136
- static setRobots(robots: MetaRobots): typeof MetaStatic;
137
- /**
138
- * Sets the author meta tag.
139
- *
140
- * Устанавливает мета-тег author.
141
- * @param author author name / имя автора
142
- */
143
- static setAuthor(author: string): typeof MetaStatic;
144
- /**
145
- * Sets the site name for Open Graph and Twitter Card.
146
- *
147
- * Устанавливает название сайта для Open Graph и Twitter Card.
148
- * @param siteName site name / название сайта
149
- */
150
- static setSiteName(siteName: string): typeof MetaStatic;
151
- /**
152
- * Sets the locale for Open Graph.
153
- *
154
- * Устанавливает локаль для Open Graph.
155
- * @param locale locale (e.g. 'en_US', 'ru_RU') / локаль (например, 'en_US', 'ru_RU')
156
- */
157
- static setLocale(locale: string): typeof MetaStatic;
158
- /**
159
- * Sets the suffix to append to page title.
160
- *
161
- * Устанавливает суффикс для добавления к заголовку страницы.
162
- * @param suffix title suffix (e.g. 'My Site') / суффикс заголовка (например, 'Мой Сайт')
163
- */
164
- static setSuffix(suffix?: string): typeof MetaStatic;
165
- /**
166
- * Generates the complete HTML for all meta-tags including Open Graph and Twitter Card.
167
- *
168
- * Генерирует полный HTML для всех мета-тегов, включая Open Graph и Twitter Card.
169
- * @returns complete HTML string / полная HTML-строка
170
- */
171
- static html(): string;
172
- /**
173
- * Generates the title as an HTML-safe string.
174
- *
175
- * Генерирует заголовок в виде HTML-безопасной строки.
176
- * @returns title HTML-safe string / HTML-безопасная строка заголовка
177
- */
178
- static htmlTitle(): string;
179
- }
@@ -1,120 +0,0 @@
1
- import { MetaManager } from './MetaManager';
2
- import { MetaTwitterCard, MetaTwitterTag } from '../types/metaTypes';
3
- /**
4
- * Class for working with Twitter Card meta tags.
5
- *
6
- * Класс для управления мета-тегами Twitter Card.
7
- */
8
- export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
9
- /**
10
- * Constructor for MetaTwitter.
11
- *
12
- * Конструктор для MetaTwitter.
13
- */
14
- constructor();
15
- /**
16
- * Gets the Twitter Card type.
17
- *
18
- * Получает тип Twitter Card.
19
- * @returns card type / тип карточки
20
- */
21
- getCard(): MetaTwitterCard;
22
- /**
23
- * Gets the website or brand @username.
24
- *
25
- * Получает аккаунт сайта или бренда (@username).
26
- * @returns @username / аккаунт
27
- */
28
- getSite(): string;
29
- /**
30
- * Gets the content creator @username.
31
- *
32
- * Получает автора контента (@username).
33
- * @returns @username / аккаунт автора
34
- */
35
- getCreator(): string;
36
- /**
37
- * Gets the page URL.
38
- *
39
- * Получает URL страницы.
40
- * @returns URL / URL адрес
41
- */
42
- getUrl(): string;
43
- /**
44
- * Gets the card title.
45
- *
46
- * Получает заголовок карточки.
47
- * @returns title / заголовок
48
- */
49
- getTitle(): string;
50
- /**
51
- * Gets the card description.
52
- *
53
- * Получает описание карточки.
54
- * @returns description / описание
55
- */
56
- getDescription(): string;
57
- /**
58
- * Gets the card image URL.
59
- *
60
- * Получает URL изображения карточки.
61
- * @returns image URL / URL изображения
62
- */
63
- getImage(): string;
64
- /**
65
- * Sets the Twitter Card type.
66
- *
67
- * Устанавливает тип Twitter Card.
68
- * @param card card type / тип карточки
69
- * @returns current instance / текущий экземпляр
70
- */
71
- setCard(card: MetaTwitterCard): this;
72
- /**
73
- * Sets the website or brand @username.
74
- *
75
- * Устанавливает аккаунт сайта или бренда (@username).
76
- * @param site @username / аккаунт
77
- * @returns current instance / текущий экземпляр
78
- */
79
- setSite(site: string): this;
80
- /**
81
- * Sets the content creator @username.
82
- *
83
- * Устанавливает автора контента (@username).
84
- * @param creator @username / аккаунт автора
85
- * @returns current instance / текущий экземпляр
86
- */
87
- setCreator(creator: string): this;
88
- /**
89
- * Sets the page URL.
90
- *
91
- * Устанавливает URL страницы.
92
- * @param url URL / URL адрес
93
- * @returns current instance / текущий экземпляр
94
- */
95
- setUrl(url: string): this;
96
- /**
97
- * Sets the card title.
98
- *
99
- * Устанавливает заголовок карточки.
100
- * @param title title / заголовок
101
- * @returns current instance / текущий экземпляр
102
- */
103
- setTitle(title: string): this;
104
- /**
105
- * Sets the card description.
106
- *
107
- * Устанавливает описание карточки.
108
- * @param description description / описание
109
- * @returns current instance / текущий экземпляр
110
- */
111
- setDescription(description: string): this;
112
- /**
113
- * Sets the card image URL.
114
- *
115
- * Устанавливает URL изображения карточки.
116
- * @param image image URL / URL изображения
117
- * @returns current instance / текущий экземпляр
118
- */
119
- setImage(image: string): this;
120
- }
@@ -1,57 +0,0 @@
1
- import { QueryInstance } from './QueryInstance';
2
- /**
3
- * Static class for working with data stored in the URL query parameters.
4
- * Provides a centralized interface delegating to QueryInstance.
5
- *
6
- * Статический класс для работы с данными, сохранёнными в query-параметрах URL.
7
- * Предоставляет централизованный интерфейс, делегируя вызовы QueryInstance.
8
- */
9
- export declare class Query {
10
- /**
11
- * Returns a request-isolated instance of QueryInstance.
12
- *
13
- * Возвращает изолированный в рамках запроса экземпляр QueryInstance.
14
- * @returns QueryInstance instance / экземпляр QueryInstance
15
- */
16
- static getItem(): QueryInstance;
17
- /**
18
- * Get data from query.
19
- *
20
- * Получение данных из query-параметров.
21
- * @param name variable name / название переменной
22
- * @param defaultValue value or function to change data / значение или функция для изменения данных
23
- * @returns stored value / сохранённое значение
24
- */
25
- static get<T>(name: string, defaultValue?: T | (() => T)): T;
26
- /**
27
- * Change data in query.
28
- *
29
- * Изменение данных в query-параметрах.
30
- * @param name variable name / название переменной
31
- * @param callback value or function to change data / значение или функция для изменения данных
32
- */
33
- static set<T>(name: string, callback: T | (() => T)): void;
34
- /**
35
- * Adding an event when data is changed.
36
- *
37
- * Добавление события при изменении данных.
38
- * @param name variable name / название переменной
39
- * @param callback the function is called when the data is changed / функция вызывается при изменении данных
40
- */
41
- static addWatch<T>(name: string, callback: (value: T) => void): void;
42
- /**
43
- * Removing an event when data is changed.
44
- *
45
- * Удаление события при изменении данных.
46
- * @param name variable name / название переменной
47
- * @param callback the function is called when the data is changed / функция вызывается при изменении данных
48
- */
49
- static removeWatch<T>(name: string, callback: (value: T) => void): void;
50
- /**
51
- * Update query variables from URL string.
52
- *
53
- * Обновление переменных query-параметров из строки URL.
54
- * @returns void / ничего не возвращает
55
- */
56
- static reload(): void;
57
- }
@@ -1,29 +0,0 @@
1
- import { UrlInstanceAbstract } from './UrlInstanceAbstract';
2
- /**
3
- * Class for working with data stored in the URL query parameters.
4
- *
5
- * Класс для работы с данными, сохранёнными в query-параметрах URL.
6
- */
7
- export declare class QueryInstance extends UrlInstanceAbstract {
8
- /**
9
- * Initializes query data and registers the popstate listener.
10
- *
11
- * Инициализирует данные query-параметров и регистрирует слушатель popstate.
12
- * @returns this instance / текущий экземпляр
13
- */
14
- protected init(): this;
15
- /**
16
- * Obtaining data from the URL string.
17
- *
18
- * Получение данных из строки URL.
19
- * @returns Record<string, any> query data / данные query-параметров
20
- */
21
- protected getLocation(): Record<string, any>;
22
- /**
23
- * Update query string in URL.
24
- *
25
- * Обновление строки query-параметров в URL.
26
- * @returns this instance / текущий экземпляр
27
- */
28
- protected update(): this;
29
- }
@@ -1,85 +0,0 @@
1
- import { FunctionVoid } from '../types/basicTypes';
2
- /**
3
- * Class for creating a timer that can be paused and resumed.
4
- *
5
- * Класс для создания таймера, который можно приостанавливать и возобновлять.
6
- */
7
- export declare class ResumableTimer {
8
- protected callback: FunctionVoid;
9
- protected delay: number;
10
- /** setTimeout identifier / Идентификатор setTimeout */
11
- protected timerId?: ReturnType<typeof setTimeout>;
12
- /** Timestamp when timer started / Метка времени старта таймера */
13
- protected startTime?: number;
14
- /** Remaining milliseconds / Оставшиеся миллисекунды */
15
- protected remaining?: number;
16
- /** Completion flag / Флаг завершения */
17
- protected completed: boolean;
18
- /**
19
- * Constructor
20
- * @param callback function to be called after the delay / функция, которая будет вызвана после задержки
21
- * @param delay delay in milliseconds / задержка в миллисекундах
22
- * @param blockStart if true, the timer will not start immediately / если true, таймер не запустится сразу
23
- */
24
- constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
25
- /**
26
- * Resumes the timer if it was paused or starts it for the first time.
27
- *
28
- * Возобновляет таймер, если он был приостановлен, или запускает его впервые.
29
- */
30
- resume(): this;
31
- /**
32
- * Pauses the timer and calculates the remaining time.
33
- *
34
- * Приостанавливает таймер и вычисляет оставшееся время.
35
- */
36
- pause(): this;
37
- /**
38
- * Resets and restarts the timer with the original delay.
39
- *
40
- * Сбрасывает и перезапускает таймер с исходной задержкой.
41
- */
42
- reset(): this;
43
- /**
44
- * Completely clears the timer and resets its state.
45
- *
46
- * Полностью очищает таймер и сбрасывает его состояние.
47
- */
48
- clear(): this;
49
- /**
50
- * Returns the remaining time or the initial delay.
51
- *
52
- * Возвращает оставшееся время или начальную задержку.
53
- */
54
- protected getRemaining(): number;
55
- /**
56
- * Returns the time when the timer was started or the current time.
57
- *
58
- * Возвращает время запуска таймера или текущее время.
59
- */
60
- protected getStartTime(): number;
61
- /**
62
- * Executes the callback and marks the timer as completed.
63
- *
64
- * Выполняет колбэк и отмечает таймер как завершенный.
65
- */
66
- protected go(): this;
67
- /**
68
- * Updates the remaining time based on the elapsed time.
69
- *
70
- * Обновляет оставшееся время на основе прошедшего времени.
71
- */
72
- protected updateRemaining(): this;
73
- /**
74
- * Sets the current time as the start time.
75
- *
76
- * Устанавливает текущее время как время начала.
77
- */
78
- protected updateStartTime(): this;
79
- /**
80
- * Stops the timer and clears the timeout ID.
81
- *
82
- * Останавливает таймер и очищает идентификатор таймаута.
83
- */
84
- protected stop(): this;
85
- }
@@ -1,52 +0,0 @@
1
- import { DataStorage } from './DataStorage';
2
- /**
3
- * Class for getting the scroll width.
4
- *
5
- * Класс для получения ширины скролла.
6
- */
7
- export declare class ScrollbarWidth {
8
- /** Calculation state flag / Флаг состояния вычисления */
9
- private static calculate;
10
- /**
11
- * Checks whether to enable scroll hiding.
12
- *
13
- * Проверяет, надо ли включить скрытие скролла.
14
- * @returns boolean indicating if scroll hiding is enabled/ логическое значение, указывающее, включено ли скрытие скролла
15
- */
16
- static is(): Promise<boolean>;
17
- /**
18
- * Returns the width of the scroll.
19
- *
20
- * Возвращает ширину скролла.
21
- * @returns scrollbar width in pixels/ ширина скролла в пикселях
22
- */
23
- static get(): Promise<number>;
24
- /**
25
- * Returns the storage for scroll width.
26
- *
27
- * Возвращает хранилище для ширины скролла.
28
- * @returns DataStorage instance/ экземпляр DataStorage
29
- */
30
- static getStorage(): DataStorage<number>;
31
- /**
32
- * Returns the calculate flag, indicating if width calculation is in progress.
33
- *
34
- * Возвращает флаг вычисления, указывающий, идет ли расчет ширины.
35
- * @returns calculation flag/ флаг вычисления
36
- */
37
- static getCalculate(): boolean;
38
- /**
39
- * Creates elements to check the width of the scroll.
40
- *
41
- * Создает элементы для проверки ширины скролла.
42
- * @returns created element / созданный элемент
43
- */
44
- private static createElement;
45
- /**
46
- * Initialization of data to check the width of the scroll.
47
- *
48
- * Инициализация данных для проверки ширины скролла.
49
- * @returns a promise that resolves with the scrollbar width / промис, который разрешается шириной скролла
50
- */
51
- private static init;
52
- }