@dxtmisha/functional 1.3.0 → 1.6.4

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 (139) hide show
  1. package/dist/ScrollbarWidth-De97V2Mh.js +2185 -0
  2. package/dist/classes/ref/DatetimeRef.d.ts +1 -3
  3. package/dist/classes/ref/EventRef.d.ts +1 -2
  4. package/dist/classes/ref/GeoFlagRef.d.ts +1 -2
  5. package/dist/classes/ref/GeoIntlRef.d.ts +1 -2
  6. package/dist/classes/ref/GeoRef.d.ts +1 -1
  7. package/dist/classes/ref/ListDataRef.d.ts +31 -4
  8. package/dist/composables/ref/useApiRef.d.ts +1 -1
  9. package/dist/composables/ref/useCookieRef.d.ts +1 -1
  10. package/dist/composables/ref/useLazyItemByMarginRef.d.ts +22 -0
  11. package/dist/composables/ref/useLazyRef.d.ts +11 -2
  12. package/dist/composables/ref/useMeta.d.ts +16 -4
  13. package/dist/composables/ref/useTranslateRef.d.ts +1 -1
  14. package/dist/flags.js +1 -1
  15. package/dist/functions/basic.d.ts +1 -0
  16. package/dist/functions/computedAsync.d.ts +11 -0
  17. package/dist/functions/computedByLanguage.d.ts +15 -0
  18. package/dist/functions/executeUse.d.ts +3 -1
  19. package/dist/functions/ref/getBindRef.d.ts +1 -1
  20. package/dist/functions/ref/render.d.ts +1 -1
  21. package/dist/functions/render/getBind.d.ts +2 -2
  22. package/dist/functions/render/getClassName.d.ts +1 -1
  23. package/dist/functions/render/getIndexForRender.d.ts +1 -1
  24. package/dist/functions/toBind.d.ts +1 -1
  25. package/dist/functions/toBinds.d.ts +1 -1
  26. package/dist/library.d.ts +4 -103
  27. package/dist/library.js +1614 -1920
  28. package/dist/types/constructorTypes.d.ts +3 -1
  29. package/dist/types/listTypes.d.ts +3 -1
  30. package/package.json +6 -5
  31. package/dist/Icons-BNmTjp32.js +0 -1301
  32. package/dist/classes/Api.d.ts +0 -305
  33. package/dist/classes/BroadcastMessage.d.ts +0 -36
  34. package/dist/classes/Cache.d.ts +0 -34
  35. package/dist/classes/CacheItem.d.ts +0 -55
  36. package/dist/classes/CacheStatic.d.ts +0 -17
  37. package/dist/classes/Cookie.d.ts +0 -58
  38. package/dist/classes/CookieBlock.d.ts +0 -22
  39. package/dist/classes/DataStorage.d.ts +0 -82
  40. package/dist/classes/Datetime.d.ts +0 -482
  41. package/dist/classes/EventItem.d.ts +0 -160
  42. package/dist/classes/Geo.d.ts +0 -168
  43. package/dist/classes/GeoFlag.d.ts +0 -79
  44. package/dist/classes/GeoIntl.d.ts +0 -262
  45. package/dist/classes/GeoPhone.d.ts +0 -107
  46. package/dist/classes/Global.d.ts +0 -21
  47. package/dist/classes/Hash.d.ts +0 -59
  48. package/dist/classes/Icons.d.ts +0 -90
  49. package/dist/classes/Loading.d.ts +0 -49
  50. package/dist/classes/Meta.d.ts +0 -168
  51. package/dist/classes/MetaManager.d.ts +0 -103
  52. package/dist/classes/MetaOg.d.ts +0 -101
  53. package/dist/classes/MetaTwitter.d.ts +0 -101
  54. package/dist/classes/ScrollbarWidth.d.ts +0 -33
  55. package/dist/classes/Translate.d.ts +0 -116
  56. package/dist/classes/__tests__/Meta.test.d.ts +0 -4
  57. package/dist/classes/__tests__/MetaManager.test.d.ts +0 -4
  58. package/dist/classes/__tests__/MetaOg.test.d.ts +0 -4
  59. package/dist/classes/__tests__/MetaTwitter.test.d.ts +0 -4
  60. package/dist/composables/ref/__tests__/useMeta.test.d.ts +0 -4
  61. package/dist/functions/anyToString.d.ts +0 -7
  62. package/dist/functions/applyTemplate.d.ts +0 -10
  63. package/dist/functions/arrFill.d.ts +0 -8
  64. package/dist/functions/copyObject.d.ts +0 -8
  65. package/dist/functions/createElement.d.ts +0 -13
  66. package/dist/functions/domQuerySelector.d.ts +0 -7
  67. package/dist/functions/domQuerySelectorAll.d.ts +0 -7
  68. package/dist/functions/encodeAttribute.d.ts +0 -7
  69. package/dist/functions/eventStopPropagation.d.ts +0 -7
  70. package/dist/functions/executeFunction.d.ts +0 -8
  71. package/dist/functions/executePromise.d.ts +0 -7
  72. package/dist/functions/forEach.d.ts +0 -11
  73. package/dist/functions/frame.d.ts +0 -16
  74. package/dist/functions/getAttributes.d.ts +0 -8
  75. package/dist/functions/getClipboardData.d.ts +0 -11
  76. package/dist/functions/getColumn.d.ts +0 -10
  77. package/dist/functions/getElement.d.ts +0 -8
  78. package/dist/functions/getElementId.d.ts +0 -9
  79. package/dist/functions/getElementItem.d.ts +0 -11
  80. package/dist/functions/getElementOrWindow.d.ts +0 -8
  81. package/dist/functions/getExp.d.ts +0 -13
  82. package/dist/functions/getItemByPath.d.ts +0 -8
  83. package/dist/functions/getKey.d.ts +0 -7
  84. package/dist/functions/getLengthOfAllArray.d.ts +0 -8
  85. package/dist/functions/getMaxLengthAllArray.d.ts +0 -8
  86. package/dist/functions/getMinLengthAllArray.d.ts +0 -8
  87. package/dist/functions/getMouseClient.d.ts +0 -8
  88. package/dist/functions/getMouseClientX.d.ts +0 -7
  89. package/dist/functions/getMouseClientY.d.ts +0 -7
  90. package/dist/functions/getObjectByKeys.d.ts +0 -8
  91. package/dist/functions/getObjectNoUndefined.d.ts +0 -8
  92. package/dist/functions/getObjectOrNone.d.ts +0 -7
  93. package/dist/functions/getRandomText.d.ts +0 -11
  94. package/dist/functions/getRequestString.d.ts +0 -9
  95. package/dist/functions/getStepPercent.d.ts +0 -8
  96. package/dist/functions/getStepValue.d.ts +0 -8
  97. package/dist/functions/goScroll.d.ts +0 -10
  98. package/dist/functions/inArray.d.ts +0 -8
  99. package/dist/functions/initScrollbarOffset.d.ts +0 -6
  100. package/dist/functions/intersectKey.d.ts +0 -8
  101. package/dist/functions/isArray.d.ts +0 -7
  102. package/dist/functions/isDifferent.d.ts +0 -9
  103. package/dist/functions/isDomRuntime.d.ts +0 -10
  104. package/dist/functions/isFilled.d.ts +0 -9
  105. package/dist/functions/isFloat.d.ts +0 -7
  106. package/dist/functions/isFunction.d.ts +0 -8
  107. package/dist/functions/isInDom.d.ts +0 -8
  108. package/dist/functions/isIntegerBetween.d.ts +0 -8
  109. package/dist/functions/isNull.d.ts +0 -8
  110. package/dist/functions/isNumber.d.ts +0 -7
  111. package/dist/functions/isObject.d.ts +0 -7
  112. package/dist/functions/isObjectNotArray.d.ts +0 -7
  113. package/dist/functions/isSelected.d.ts +0 -8
  114. package/dist/functions/isSelectedByList.d.ts +0 -8
  115. package/dist/functions/isString.d.ts +0 -7
  116. package/dist/functions/isWindow.d.ts +0 -7
  117. package/dist/functions/random.d.ts +0 -8
  118. package/dist/functions/replaceRecursive.d.ts +0 -10
  119. package/dist/functions/replaceTemplate.d.ts +0 -9
  120. package/dist/functions/secondToTime.d.ts +0 -7
  121. package/dist/functions/setElementItem.d.ts +0 -10
  122. package/dist/functions/setValues.d.ts +0 -17
  123. package/dist/functions/splice.d.ts +0 -12
  124. package/dist/functions/strFill.d.ts +0 -8
  125. package/dist/functions/toArray.d.ts +0 -17
  126. package/dist/functions/toCamelCase.d.ts +0 -7
  127. package/dist/functions/toCamelCaseFirst.d.ts +0 -7
  128. package/dist/functions/toDate.d.ts +0 -7
  129. package/dist/functions/toKebabCase.d.ts +0 -15
  130. package/dist/functions/toNumber.d.ts +0 -8
  131. package/dist/functions/toNumberByMax.d.ts +0 -9
  132. package/dist/functions/toPercent.d.ts +0 -8
  133. package/dist/functions/toPercentBy100.d.ts +0 -8
  134. package/dist/functions/transformation.d.ts +0 -21
  135. package/dist/functions/uniqueArray.d.ts +0 -7
  136. package/dist/functions/writeClipboardData.d.ts +0 -7
  137. package/dist/types/basicTypes.d.ts +0 -126
  138. package/dist/types/geoTypes.d.ts +0 -86
  139. package/dist/types/metaTypes.d.ts +0 -584
@@ -1,59 +0,0 @@
1
- /**
2
- * Working with data stored in hash.
3
- *
4
- * Работа с данными сохраненными в хеш.
5
- */
6
- export declare class Hash {
7
- private static hash;
8
- private static watch;
9
- private static block;
10
- /**
11
- * Get data from hash.
12
- *
13
- * Получение данных из хэша.
14
- * @param name variable names/ названия переменных
15
- * @param defaultValue value or function to change data/ значение или функция для изменения данных
16
- */
17
- static get<T>(name: string, defaultValue?: T | (() => T)): T;
18
- /**
19
- * Change data in hash.
20
- *
21
- * Изменение данных в хэше.
22
- * @param name variable names/ названия переменных
23
- * @param callback value or function to change data/ значение или функция для изменения данных
24
- */
25
- static set<T>(name: string, callback: T | (() => T)): void;
26
- /**
27
- * Adding an event when data is changed.
28
- *
29
- * Добавление события при изменении данных.
30
- * @param name variable names/ названия переменных
31
- * @param callback the function is called when the data is changed/ функция вызывается при изменении данных
32
- */
33
- static addWatch<T>(name: string, callback: (value: T) => void): void;
34
- /**
35
- * Update hash variable from URL string.
36
- *
37
- * Обновление переменной хэша из строки URL.
38
- */
39
- static reload(): void;
40
- /**
41
- * Obtaining data from the URL string.
42
- *
43
- * Получение данных из строки URL.
44
- */
45
- private static getLocation;
46
- /**
47
- * Update hash string in URL.
48
- *
49
- * Обновление строки хэша в URL.
50
- */
51
- private static update;
52
- /**
53
- * Calling all functions whose data has changed.
54
- *
55
- * Вызов всех функций, у которых были изменены данные.
56
- * @param location fresh data/ свежий данные
57
- */
58
- private static makeWatch;
59
- }
@@ -1,90 +0,0 @@
1
- export type IconsItem = string | Promise<string | any>;
2
- /**
3
- * Class for managing icons.
4
- *
5
- * Класс для управления иконками.
6
- */
7
- export declare class Icons {
8
- protected static icons: Record<string, IconsItem>;
9
- protected static url: string;
10
- /**
11
- * Checks if the given icon is in the list of connected icons.
12
- *
13
- * Проверяет, есть ли данная иконка в списке подключенных иконок.
14
- * @param index icon name/ название иконки
15
- */
16
- static is(index: string): boolean;
17
- /**
18
- * Returns the icon by the name.
19
- *
20
- * Возвращает иконку по названию.
21
- * @param index icon name/ название иконки
22
- * @param url path to the storage location of the icon, if the icon does not exist/
23
- * путь к месту хранения иконки, если иконка не существует
24
- * @param wait waiting time for picture loading/
25
- * время ожидания загрузки картинки
26
- */
27
- static get(index: string, url?: string, wait?: number): Promise<string>;
28
- /**
29
- * Returns a list of names of all registered icons.
30
- *
31
- * Возвращает список названий всех зарегистрированных иконок.
32
- */
33
- static getNameList(): string[];
34
- /**
35
- * Returns a global link.
36
- *
37
- * Возвращает глобальную ссылку.
38
- */
39
- static getUrlGlobal(): string;
40
- /**
41
- * Adding custom icons.
42
- *
43
- * Добавление пользовательских иконок.
44
- * @param index icon name/ название иконки
45
- * @param file path to the file/ путь к файлу
46
- */
47
- static add(index: string, file: IconsItem): void;
48
- /**
49
- * Adding custom icons in loading mode.
50
- *
51
- * Добавление пользовательских иконок в режиме загрузки.
52
- * @param index icon name/ название иконки
53
- */
54
- static addLoad(index: string): void;
55
- /**
56
- * Adding custom global icons.
57
- *
58
- * Добавление пользовательских глобальных иконок.
59
- * @param index icon name/ название иконки
60
- * @param file path to the file/ путь к файлу
61
- */
62
- static addGlobal(index: string, file: string): void;
63
- /**
64
- * Adding an icon by the list.
65
- *
66
- * Добавление иконки по списку.
67
- * @param list list of icons/ список иконки
68
- */
69
- static addByList(list: Record<string, IconsItem>): void;
70
- /**
71
- * Changes the file path.
72
- *
73
- * Изменяет путь к файлу.
74
- * @param url new file path/ новый путь к файлу
75
- */
76
- static setUrl(url: string): void;
77
- /**
78
- * Returns the icon name.
79
- *
80
- * Возвращает название иконки.
81
- * @param index icon name/ название иконки
82
- */
83
- protected static getName(index: string): string;
84
- /**
85
- * Script execution delay.
86
- *
87
- * Задержка выполнения скрипта.
88
- */
89
- protected static wait(): Promise<void>;
90
- }
@@ -1,49 +0,0 @@
1
- import { EventItem } from './EventItem';
2
- import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
3
- type LoadingDetail = {
4
- loading: boolean;
5
- };
6
- /**
7
- * Class for working with global loading.
8
- *
9
- * Класс для работы с глобальной загрузкой.
10
- */
11
- export declare class Loading {
12
- protected static value: number;
13
- protected static event?: EventItem<Window, CustomEvent>;
14
- /**
15
- * Check if the loader is active now.
16
- *
17
- * Проверить, активен ли сейчас загрузчик.
18
- */
19
- static is(): boolean;
20
- /**
21
- * Shows the loader.
22
- *
23
- * Показывает загрузчик.
24
- */
25
- static show(): void;
26
- /**
27
- * Hides the loader.
28
- *
29
- * Скрывает загрузчик.
30
- */
31
- static hide(): void;
32
- /**
33
- * Event registration to listen for data changes.
34
- *
35
- * Регистрация события для прослушивания изменений данных.
36
- * @param listener the object that receives a notification (an object that implements the
37
- * Event interface) when an event of the specified type occurs/ объект, который принимает
38
- * уведомление, когда событие указанного типа произошло
39
- * @param element element/ элемент
40
- */
41
- static registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
42
- /**
43
- * Calls the event listener.
44
- *
45
- * Вызывает слушателя событий.
46
- */
47
- protected static dispatch(): void;
48
- }
49
- export {};
@@ -1,168 +0,0 @@
1
- import { MetaManager } from './MetaManager';
2
- import { MetaOg } from './MetaOg';
3
- import { MetaTwitter } from './MetaTwitter';
4
- import { MetaRobots, MetaTag } from '../types/metaTypes';
5
- /**
6
- * Unified class for managing all types of meta tags (standard HTML, Open Graph, Twitter Card).
7
- *
8
- * Унифицированный класс для управления всеми типами мета-тегов (стандартные HTML, Open Graph, Twitter Card).
9
- */
10
- export declare class Meta extends MetaManager<MetaTag[]> {
11
- protected suffix?: string;
12
- protected og: MetaOg;
13
- protected twitter: MetaTwitter;
14
- /**
15
- * Creates an instance of Meta with integrated Open Graph and Twitter Card support.
16
- *
17
- * Создает экземпляр Meta с интегрированной поддержкой Open Graph и Twitter Card.
18
- */
19
- constructor();
20
- /**
21
- * Gets the MetaOg instance for advanced Open Graph operations.
22
- *
23
- * Получает экземпляр MetaOg для расширенных операций с Open Graph.
24
- */
25
- getOg(): MetaOg;
26
- /**
27
- * Gets the MetaTwitter instance for advanced Twitter Card operations.
28
- *
29
- * Получает экземпляр MetaTwitter для расширенных операций с Twitter Card.
30
- */
31
- getTwitter(): MetaTwitter;
32
- /**
33
- * Gets the page title without suffix.
34
- *
35
- * Получает заголовок страницы без суффикса.
36
- */
37
- getTitle(): string;
38
- /**
39
- * Gets the keywords meta tag.
40
- *
41
- * Получает мета-тег keywords.
42
- */
43
- getKeywords(): string;
44
- /**
45
- * Gets the description meta tag.
46
- *
47
- * Получает мета-тег description.
48
- */
49
- getDescription(): string;
50
- /**
51
- * Gets the Open Graph image URL.
52
- *
53
- * Получает URL изображения Open Graph.
54
- */
55
- getImage(): string;
56
- /**
57
- * Gets the canonical URL.
58
- *
59
- * Получает канонический URL.
60
- */
61
- getCanonical(): string;
62
- /**
63
- * Gets the robots meta tag value.
64
- *
65
- * Получает значение мета-тега robots.
66
- */
67
- getRobots(): MetaRobots;
68
- /**
69
- * Gets the author meta tag.
70
- *
71
- * Получает мета-тег author.
72
- */
73
- getAuthor(): string;
74
- /**
75
- * Gets the Open Graph site name.
76
- *
77
- * Получает название сайта Open Graph.
78
- */
79
- getSiteName(): string;
80
- /**
81
- * Gets the Open Graph locale.
82
- *
83
- * Получает локаль Open Graph.
84
- */
85
- getLocale(): string;
86
- /**
87
- * Sets the page title (with suffix) and updates Open Graph and Twitter Card titles.
88
- *
89
- * Устанавливает заголовок страницы (с суффиксом) и обновляет заголовки Open Graph и Twitter Card.
90
- * @param title page title / заголовок страницы
91
- */
92
- setTitle(title: string): this;
93
- /**
94
- * Sets the keywords meta tag.
95
- *
96
- * Устанавливает мета-тег keywords.
97
- * @param keywords keywords as string or array / ключевые слова в виде строки или массива
98
- */
99
- setKeywords(keywords: string | string[]): this;
100
- /**
101
- * Sets the description meta tag.
102
- *
103
- * Устанавливает мета-тег description.
104
- * @param description page description / описание страницы
105
- */
106
- setDescription(description: string): this;
107
- /**
108
- * Sets the image for Open Graph and Twitter Card.
109
- *
110
- * Устанавливает изображение для Open Graph и Twitter Card.
111
- * @param image image URL / URL изображения
112
- */
113
- setImage(image: string): this;
114
- /**
115
- * Sets the canonical URL and updates Open Graph and Twitter Card URLs.
116
- *
117
- * Устанавливает канонический URL и обновляет URL для Open Graph и Twitter Card.
118
- * @param canonical canonical URL / канонический URL
119
- */
120
- setCanonical(canonical: string): this;
121
- /**
122
- * Sets the robots meta tag.
123
- *
124
- * Устанавливает мета-тег robots.
125
- * @param robots robots directive / директива robots
126
- */
127
- setRobots(robots: MetaRobots): this;
128
- /**
129
- * Sets the author meta tag.
130
- *
131
- * Устанавливает мета-тег author.
132
- * @param author author name / имя автора
133
- */
134
- setAuthor(author: string): this;
135
- /**
136
- * Sets the site name for Open Graph and Twitter Card.
137
- *
138
- * Устанавливает название сайта для Open Graph и Twitter Card.
139
- * @param siteName site name / название сайта
140
- */
141
- setSiteName(siteName: string): this;
142
- /**
143
- * Sets the locale for Open Graph.
144
- *
145
- * Устанавливает локаль для Open Graph.
146
- * @param locale locale (e.g. 'en_US', 'ru_RU') / локаль (например, 'en_US', 'ru_RU')
147
- */
148
- setLocale(locale: string): this;
149
- /**
150
- * Sets the suffix to append to page title.
151
- *
152
- * Устанавливает суффикс для добавления к заголовку страницы.
153
- * @param suffix title suffix (e.g. 'My Site') / суффикс заголовка (например, 'Мой Сайт')
154
- */
155
- setSuffix(suffix?: string): void;
156
- /**
157
- * Generates the complete HTML for all meta-tags including Open Graph and Twitter Card.
158
- *
159
- * Генерирует полный HTML для всех мета-тегов, включая Open Graph и Twitter Card.
160
- */
161
- html(): string;
162
- /**
163
- * Gets the formatted suffix with separator.
164
- *
165
- * Получает отформатированный суффикс с разделителем.
166
- */
167
- protected getSuffix(): string;
168
- }
@@ -1,103 +0,0 @@
1
- type MetaList<T extends readonly string[]> = {
2
- [K in T[number]]?: string;
3
- };
4
- /**
5
- * Class for working with meta tags.
6
- *
7
- * Класс для управления мета-тегами.
8
- */
9
- export declare class MetaManager<T extends readonly string[], Key extends keyof MetaList<T> = keyof MetaList<T>> {
10
- protected readonly listMeta: T;
11
- protected readonly isProperty: boolean;
12
- protected readonly items: MetaList<T>;
13
- /**
14
- * Creates an instance of MetaManager.
15
- *
16
- * Создает экземпляр MetaManager.
17
- * @param listMeta list of meta-tag names to manage / список имен мета-тегов для управления
18
- * @param isProperty use 'property' attribute instead of 'name' / использовать атрибут 'property' вместо 'name'
19
- */
20
- constructor(listMeta: T, isProperty?: boolean);
21
- /**
22
- * Returns the list of meta tag names.
23
- *
24
- * Возвращает список имен мета-тегов.
25
- */
26
- getListMeta(): T;
27
- /**
28
- * Get the content of a meta tag by name.
29
- *
30
- * Получает содержимое мета-тега по имени.
31
- * @param name meta tag name / имя мета-тега
32
- */
33
- get(name: Key): string;
34
- /**
35
- * Returns all meta tags.
36
- *
37
- * Возвращает все мета-теги.
38
- */
39
- getItems(): MetaList<T>;
40
- /**
41
- * Returns all meta tags as HTML string.
42
- *
43
- * Возвращает все мета-теги в виде HTML-строки.
44
- */
45
- html(): string;
46
- /**
47
- * Sets the content of a meta tag.
48
- *
49
- * Устанавливает содержимое мета-тега.
50
- * @param name meta tag name / имя мета-тега
51
- * @param content meta tag content / содержимое мета-тега
52
- */
53
- set(name: Key, content: string): this;
54
- /**
55
- * Sets multiple meta tags from an object.
56
- *
57
- * Устанавливает несколько мета-тегов из объекта.
58
- * @param metaList object with meta tag names and content / объект с именами и содержимым мета-тегов
59
- */
60
- setByList(metaList: MetaList<T>): this;
61
- /**
62
- * Returns the attribute name for meta tags.
63
- *
64
- * Возвращает имя атрибута для мета-тегов.
65
- */
66
- protected getAttributeName(): string;
67
- /**
68
- * Finds a meta element in the DOM.
69
- *
70
- * Находит мета-элемент в DOM.
71
- * @param name meta tag name / имя мета-тега
72
- */
73
- protected findMetaElement(name: string): HTMLMetaElement | undefined;
74
- /**
75
- * Sets the content of a meta tag in internal storage.
76
- *
77
- * Устанавливает содержимое мета-тега во внутреннем хранилище.
78
- * @param name meta tag name / имя мета-тега
79
- * @param content meta tag content / содержимое мета-тега
80
- */
81
- protected setItem(name: Key, content: string): this;
82
- /**
83
- * Sets or creates a meta tag in the DOM.
84
- *
85
- * Устанавливает или создает мета-тег в DOM.
86
- * @param name meta tag name / имя мета-тега
87
- */
88
- protected setMeta(name: Key): this;
89
- /**
90
- * Converts meta tag to HTML string.
91
- *
92
- * Преобразует мета-тег в HTML-строку.
93
- * @param name meta tag name / имя мета-тега
94
- */
95
- protected toHtmlString(name: Key): string;
96
- /**
97
- * Updates meta tags data from the DOM.
98
- *
99
- * Обновляет данные мета-тегов из DOM.
100
- */
101
- protected update(): this;
102
- }
103
- export {};
@@ -1,101 +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
- constructor();
10
- /**
11
- * Gets the Open Graph title.
12
- *
13
- * Получает заголовок Open Graph.
14
- */
15
- getTitle(): string;
16
- /**
17
- * Gets the Open Graph type.
18
- *
19
- * Получает тип Open Graph.
20
- */
21
- getType(): MetaOpenGraphType;
22
- /**
23
- * Gets the Open Graph URL.
24
- *
25
- * Получает URL Open Graph.
26
- */
27
- getUrl(): string;
28
- /**
29
- * Gets the Open Graph image URL.
30
- *
31
- * Получает URL изображения Open Graph.
32
- */
33
- getImage(): string;
34
- /**
35
- * Gets the Open Graph description.
36
- *
37
- * Получает описание Open Graph.
38
- */
39
- getDescription(): string;
40
- /**
41
- * Gets the Open Graph locale.
42
- *
43
- * Получает локаль Open Graph.
44
- */
45
- getLocale(): string;
46
- /**
47
- * Gets the Open Graph site name.
48
- *
49
- * Получает название сайта Open Graph.
50
- */
51
- getSiteName(): string;
52
- /**
53
- * Sets the Open Graph title.
54
- *
55
- * Устанавливает заголовок Open Graph.
56
- * @param title title / заголовок
57
- */
58
- setTitle(title: string): this;
59
- /**
60
- * Sets the Open Graph type.
61
- *
62
- * Устанавливает тип Open Graph.
63
- * @param type type / тип
64
- */
65
- setType(type: MetaOpenGraphType): this;
66
- /**
67
- * Sets the Open Graph URL.
68
- *
69
- * Устанавливает URL Open Graph.
70
- * @param url URL / URL
71
- */
72
- setUrl(url: string): this;
73
- /**
74
- * Sets the Open Graph image URL.
75
- *
76
- * Устанавливает URL изображения Open Graph.
77
- * @param url image URL / URL изображения
78
- */
79
- setImage(url: string): this;
80
- /**
81
- * Sets the Open Graph description.
82
- *
83
- * Устанавливает описание Open Graph.
84
- * @param description description / описание
85
- */
86
- setDescription(description: string): this;
87
- /**
88
- * Sets the Open Graph locale.
89
- *
90
- * Устанавливает локаль Open Graph.
91
- * @param locale locale (e.g. 'en_US', 'ru_RU') / локаль (например, 'en_US', 'ru_RU')
92
- */
93
- setLocale(locale: string): this;
94
- /**
95
- * Sets the Open Graph site name.
96
- *
97
- * Устанавливает название сайта Open Graph.
98
- * @param siteName site name / название сайта
99
- */
100
- setSiteName(siteName: string): this;
101
- }
@@ -1,101 +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
- constructor();
10
- /**
11
- * Gets the Twitter Card type.
12
- *
13
- * Получает тип Twitter Card.
14
- */
15
- getCard(): MetaTwitterCard;
16
- /**
17
- * Gets the website or brand @username.
18
- *
19
- * Получает аккаунт сайта или бренда (@username).
20
- */
21
- getSite(): string;
22
- /**
23
- * Gets the content creator @username.
24
- *
25
- * Получает автора контента (@username).
26
- */
27
- getCreator(): string;
28
- /**
29
- * Gets the page URL.
30
- *
31
- * Получает URL страницы.
32
- */
33
- getUrl(): string;
34
- /**
35
- * Gets the card title.
36
- *
37
- * Получает заголовок карточки.
38
- */
39
- getTitle(): string;
40
- /**
41
- * Gets the card description.
42
- *
43
- * Получает описание карточки.
44
- */
45
- getDescription(): string;
46
- /**
47
- * Gets the card image URL.
48
- *
49
- * Получает URL изображения карточки.
50
- */
51
- getImage(): string;
52
- /**
53
- * Sets the Twitter Card type.
54
- *
55
- * Устанавливает тип Twitter Card.
56
- * @param card card type / тип карточки
57
- */
58
- setCard(card: MetaTwitterCard): this;
59
- /**
60
- * Sets the website or brand @username.
61
- *
62
- * Устанавливает аккаунт сайта или бренда (@username).
63
- * @param site @username / аккаунт
64
- */
65
- setSite(site: string): this;
66
- /**
67
- * Sets the content creator @username.
68
- *
69
- * Устанавливает автора контента (@username).
70
- * @param creator @username / аккаунт автора
71
- */
72
- setCreator(creator: string): this;
73
- /**
74
- * Sets the page URL.
75
- *
76
- * Устанавливает URL страницы.
77
- * @param url URL / URL
78
- */
79
- setUrl(url: string): this;
80
- /**
81
- * Sets the card title.
82
- *
83
- * Устанавливает заголовок карточки.
84
- * @param title title / заголовок
85
- */
86
- setTitle(title: string): this;
87
- /**
88
- * Sets the card description.
89
- *
90
- * Устанавливает описание карточки.
91
- * @param description description / описание
92
- */
93
- setDescription(description: string): this;
94
- /**
95
- * Sets the card image URL.
96
- *
97
- * Устанавливает URL изображения карточки.
98
- * @param image image URL / URL изображения
99
- */
100
- setImage(image: string): this;
101
- }