@dxtmisha/functional-basic 1.4.3 → 1.6.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.
Files changed (191) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/ai-description.md +18 -19
  3. package/ai-types.md +102 -142
  4. package/dist/{src/classes → classes}/ErrorCenter.d.ts +7 -0
  5. package/dist/{src/classes → classes}/ErrorCenterHandler.d.ts +10 -0
  6. package/dist/{src/classes → classes}/ErrorCenterInstance.d.ts +8 -0
  7. package/dist/classes/GeoUnit.d.ts +207 -0
  8. package/dist/functions/isMetaKey.d.ts +8 -0
  9. package/dist/{src/library.d.ts → library.d.ts} +2 -0
  10. package/dist/library.js +595 -474
  11. package/dist/types/geoTypes.d.ts +142 -0
  12. package/package.json +4 -4
  13. package/dist/src/types/geoTypes.d.ts +0 -98
  14. /package/dist/{src/classes → classes}/Api.d.ts +0 -0
  15. /package/dist/{src/classes → classes}/ApiCache.d.ts +0 -0
  16. /package/dist/{src/classes → classes}/ApiDataReturn.d.ts +0 -0
  17. /package/dist/{src/classes → classes}/ApiDefault.d.ts +0 -0
  18. /package/dist/{src/classes → classes}/ApiError.d.ts +0 -0
  19. /package/dist/{src/classes → classes}/ApiErrorItem.d.ts +0 -0
  20. /package/dist/{src/classes → classes}/ApiErrorStorage.d.ts +0 -0
  21. /package/dist/{src/classes → classes}/ApiHeaders.d.ts +0 -0
  22. /package/dist/{src/classes → classes}/ApiHydration.d.ts +0 -0
  23. /package/dist/{src/classes → classes}/ApiInstance.d.ts +0 -0
  24. /package/dist/{src/classes → classes}/ApiPreparation.d.ts +0 -0
  25. /package/dist/{src/classes → classes}/ApiResponse.d.ts +0 -0
  26. /package/dist/{src/classes → classes}/ApiStatus.d.ts +0 -0
  27. /package/dist/{src/classes → classes}/BroadcastMessage.d.ts +0 -0
  28. /package/dist/{src/classes → classes}/Cache.d.ts +0 -0
  29. /package/dist/{src/classes → classes}/CacheItem.d.ts +0 -0
  30. /package/dist/{src/classes → classes}/CacheStatic.d.ts +0 -0
  31. /package/dist/{src/classes → classes}/Cookie.d.ts +0 -0
  32. /package/dist/{src/classes → classes}/CookieBlock.d.ts +0 -0
  33. /package/dist/{src/classes → classes}/CookieBlockInstance.d.ts +0 -0
  34. /package/dist/{src/classes → classes}/CookieStorage.d.ts +0 -0
  35. /package/dist/{src/classes → classes}/DataStorage.d.ts +0 -0
  36. /package/dist/{src/classes → classes}/Datetime.d.ts +0 -0
  37. /package/dist/{src/classes → classes}/EventItem.d.ts +0 -0
  38. /package/dist/{src/classes → classes}/Formatters.d.ts +0 -0
  39. /package/dist/{src/classes → classes}/Geo.d.ts +0 -0
  40. /package/dist/{src/classes → classes}/GeoFlag.d.ts +0 -0
  41. /package/dist/{src/classes → classes}/GeoInstance.d.ts +0 -0
  42. /package/dist/{src/classes → classes}/GeoIntl.d.ts +0 -0
  43. /package/dist/{src/classes → classes}/GeoPhone.d.ts +0 -0
  44. /package/dist/{src/classes → classes}/Global.d.ts +0 -0
  45. /package/dist/{src/classes → classes}/Hash.d.ts +0 -0
  46. /package/dist/{src/classes → classes}/HashInstance.d.ts +0 -0
  47. /package/dist/{src/classes → classes}/Icons.d.ts +0 -0
  48. /package/dist/{src/classes → classes}/Loading.d.ts +0 -0
  49. /package/dist/{src/classes → classes}/LoadingInstance.d.ts +0 -0
  50. /package/dist/{src/classes → classes}/Meta.d.ts +0 -0
  51. /package/dist/{src/classes → classes}/MetaManager.d.ts +0 -0
  52. /package/dist/{src/classes → classes}/MetaOg.d.ts +0 -0
  53. /package/dist/{src/classes → classes}/MetaStatic.d.ts +0 -0
  54. /package/dist/{src/classes → classes}/MetaTwitter.d.ts +0 -0
  55. /package/dist/{src/classes → classes}/Query.d.ts +0 -0
  56. /package/dist/{src/classes → classes}/QueryInstance.d.ts +0 -0
  57. /package/dist/{src/classes → classes}/ResumableTimer.d.ts +0 -0
  58. /package/dist/{src/classes → classes}/ScrollbarWidth.d.ts +0 -0
  59. /package/dist/{src/classes → classes}/SearchList.d.ts +0 -0
  60. /package/dist/{src/classes → classes}/SearchListData.d.ts +0 -0
  61. /package/dist/{src/classes → classes}/SearchListItem.d.ts +0 -0
  62. /package/dist/{src/classes → classes}/SearchListMatcher.d.ts +0 -0
  63. /package/dist/{src/classes → classes}/SearchListOptions.d.ts +0 -0
  64. /package/dist/{src/classes → classes}/ServerStorage.d.ts +0 -0
  65. /package/dist/{src/classes → classes}/StorageCallback.d.ts +0 -0
  66. /package/dist/{src/classes → classes}/Translate.d.ts +0 -0
  67. /package/dist/{src/classes → classes}/TranslateFile.d.ts +0 -0
  68. /package/dist/{src/classes → classes}/TranslateInstance.d.ts +0 -0
  69. /package/dist/{src/classes → classes}/UrlInstanceAbstract.d.ts +0 -0
  70. /package/dist/{src/classes → classes}/UrlItem.d.ts +0 -0
  71. /package/dist/{src/functions → functions}/addTagHighlightMatch.d.ts +0 -0
  72. /package/dist/{src/functions → functions}/anyToString.d.ts +0 -0
  73. /package/dist/{src/functions → functions}/applyTemplate.d.ts +0 -0
  74. /package/dist/{src/functions → functions}/arrFill.d.ts +0 -0
  75. /package/dist/{src/functions → functions}/blobToBase64.d.ts +0 -0
  76. /package/dist/{src/functions → functions}/capitalize.d.ts +0 -0
  77. /package/dist/{src/functions → functions}/copyObject.d.ts +0 -0
  78. /package/dist/{src/functions → functions}/copyObjectLite.d.ts +0 -0
  79. /package/dist/{src/functions → functions}/createElement.d.ts +0 -0
  80. /package/dist/{src/functions → functions}/domQuerySelector.d.ts +0 -0
  81. /package/dist/{src/functions → functions}/domQuerySelectorAll.d.ts +0 -0
  82. /package/dist/{src/functions → functions}/encodeAttribute.d.ts +0 -0
  83. /package/dist/{src/functions → functions}/encodeLiteAttribute.d.ts +0 -0
  84. /package/dist/{src/functions → functions}/ensureMaxSize.d.ts +0 -0
  85. /package/dist/{src/functions → functions}/escapeExp.d.ts +0 -0
  86. /package/dist/{src/functions → functions}/eventStopPropagation.d.ts +0 -0
  87. /package/dist/{src/functions → functions}/executeFunction.d.ts +0 -0
  88. /package/dist/{src/functions → functions}/executePromise.d.ts +0 -0
  89. /package/dist/{src/functions → functions}/forEach.d.ts +0 -0
  90. /package/dist/{src/functions → functions}/frame.d.ts +0 -0
  91. /package/dist/{src/functions → functions}/getArrayHighlightMatch.d.ts +0 -0
  92. /package/dist/{src/functions → functions}/getAttributes.d.ts +0 -0
  93. /package/dist/{src/functions → functions}/getClipboardData.d.ts +0 -0
  94. /package/dist/{src/functions → functions}/getColumn.d.ts +0 -0
  95. /package/dist/{src/functions → functions}/getCurrentDate.d.ts +0 -0
  96. /package/dist/{src/functions → functions}/getCurrentTime.d.ts +0 -0
  97. /package/dist/{src/functions → functions}/getElement.d.ts +0 -0
  98. /package/dist/{src/functions → functions}/getElementId.d.ts +0 -0
  99. /package/dist/{src/functions → functions}/getElementImage.d.ts +0 -0
  100. /package/dist/{src/functions → functions}/getElementItem.d.ts +0 -0
  101. /package/dist/{src/functions → functions}/getElementOrWindow.d.ts +0 -0
  102. /package/dist/{src/functions → functions}/getElementSafeScript.d.ts +0 -0
  103. /package/dist/{src/functions → functions}/getExactSearchExp.d.ts +0 -0
  104. /package/dist/{src/functions → functions}/getExp.d.ts +0 -0
  105. /package/dist/{src/functions → functions}/getFirst.d.ts +0 -0
  106. /package/dist/{src/functions → functions}/getHydrationData.d.ts +0 -0
  107. /package/dist/{src/functions → functions}/getItemByPath.d.ts +0 -0
  108. /package/dist/{src/functions → functions}/getKey.d.ts +0 -0
  109. /package/dist/{src/functions → functions}/getLength.d.ts +0 -0
  110. /package/dist/{src/functions → functions}/getLengthOfAllArray.d.ts +0 -0
  111. /package/dist/{src/functions → functions}/getMaxLengthAllArray.d.ts +0 -0
  112. /package/dist/{src/functions → functions}/getMinLengthAllArray.d.ts +0 -0
  113. /package/dist/{src/functions → functions}/getMouseClient.d.ts +0 -0
  114. /package/dist/{src/functions → functions}/getMouseClientX.d.ts +0 -0
  115. /package/dist/{src/functions → functions}/getMouseClientY.d.ts +0 -0
  116. /package/dist/{src/functions → functions}/getObjectByKeys.d.ts +0 -0
  117. /package/dist/{src/functions → functions}/getObjectNoUndefined.d.ts +0 -0
  118. /package/dist/{src/functions → functions}/getObjectOrNone.d.ts +0 -0
  119. /package/dist/{src/functions → functions}/getOnlyText.d.ts +0 -0
  120. /package/dist/{src/functions → functions}/getRandomText.d.ts +0 -0
  121. /package/dist/{src/functions → functions}/getRequestString.d.ts +0 -0
  122. /package/dist/{src/functions → functions}/getSearchExp.d.ts +0 -0
  123. /package/dist/{src/functions → functions}/getSeparatingSearchExp.d.ts +0 -0
  124. /package/dist/{src/functions → functions}/getStepPercent.d.ts +0 -0
  125. /package/dist/{src/functions → functions}/getStepValue.d.ts +0 -0
  126. /package/dist/{src/functions → functions}/goScroll.d.ts +0 -0
  127. /package/dist/{src/functions → functions}/goScrollSmooth.d.ts +0 -0
  128. /package/dist/{src/functions → functions}/goScrollTo.d.ts +0 -0
  129. /package/dist/{src/functions → functions}/handleShare.d.ts +0 -0
  130. /package/dist/{src/functions → functions}/inArray.d.ts +0 -0
  131. /package/dist/{src/functions → functions}/initScrollbarOffset.d.ts +0 -0
  132. /package/dist/{src/functions → functions}/intersectKey.d.ts +0 -0
  133. /package/dist/{src/functions → functions}/isApiSuccess.d.ts +0 -0
  134. /package/dist/{src/functions → functions}/isArray.d.ts +0 -0
  135. /package/dist/{src/functions → functions}/isDifferent.d.ts +0 -0
  136. /package/dist/{src/functions → functions}/isDomData.d.ts +0 -0
  137. /package/dist/{src/functions → functions}/isDomRuntime.d.ts +0 -0
  138. /package/dist/{src/functions → functions}/isElementVisible.d.ts +0 -0
  139. /package/dist/{src/functions → functions}/isEnter.d.ts +0 -0
  140. /package/dist/{src/functions → functions}/isFilled.d.ts +0 -0
  141. /package/dist/{src/functions → functions}/isFloat.d.ts +0 -0
  142. /package/dist/{src/functions → functions}/isFunction.d.ts +0 -0
  143. /package/dist/{src/functions → functions}/isInDom.d.ts +0 -0
  144. /package/dist/{src/functions → functions}/isInput.d.ts +0 -0
  145. /package/dist/{src/functions → functions}/isIntegerBetween.d.ts +0 -0
  146. /package/dist/{src/functions → functions}/isNull.d.ts +0 -0
  147. /package/dist/{src/functions → functions}/isNumber.d.ts +0 -0
  148. /package/dist/{src/functions → functions}/isObject.d.ts +0 -0
  149. /package/dist/{src/functions → functions}/isObjectNotArray.d.ts +0 -0
  150. /package/dist/{src/functions → functions}/isOnLine.d.ts +0 -0
  151. /package/dist/{src/functions → functions}/isSelected.d.ts +0 -0
  152. /package/dist/{src/functions → functions}/isSelectedByList.d.ts +0 -0
  153. /package/dist/{src/functions → functions}/isShare.d.ts +0 -0
  154. /package/dist/{src/functions → functions}/isString.d.ts +0 -0
  155. /package/dist/{src/functions → functions}/isTab.d.ts +0 -0
  156. /package/dist/{src/functions → functions}/isWindow.d.ts +0 -0
  157. /package/dist/{src/functions → functions}/random.d.ts +0 -0
  158. /package/dist/{src/functions → functions}/removeCommonPrefix.d.ts +0 -0
  159. /package/dist/{src/functions → functions}/replaceComponentName.d.ts +0 -0
  160. /package/dist/{src/functions → functions}/replaceRecursive.d.ts +0 -0
  161. /package/dist/{src/functions → functions}/replaceTemplate.d.ts +0 -0
  162. /package/dist/{src/functions → functions}/resizeImageByMax.d.ts +0 -0
  163. /package/dist/{src/functions → functions}/secondToTime.d.ts +0 -0
  164. /package/dist/{src/functions → functions}/setElementItem.d.ts +0 -0
  165. /package/dist/{src/functions → functions}/setValues.d.ts +0 -0
  166. /package/dist/{src/functions → functions}/sleep.d.ts +0 -0
  167. /package/dist/{src/functions → functions}/splice.d.ts +0 -0
  168. /package/dist/{src/functions → functions}/strFill.d.ts +0 -0
  169. /package/dist/{src/functions → functions}/strSplit.d.ts +0 -0
  170. /package/dist/{src/functions → functions}/toArray.d.ts +0 -0
  171. /package/dist/{src/functions → functions}/toCamelCase.d.ts +0 -0
  172. /package/dist/{src/functions → functions}/toCamelCaseFirst.d.ts +0 -0
  173. /package/dist/{src/functions → functions}/toDate.d.ts +0 -0
  174. /package/dist/{src/functions → functions}/toKebabCase.d.ts +0 -0
  175. /package/dist/{src/functions → functions}/toNumber.d.ts +0 -0
  176. /package/dist/{src/functions → functions}/toNumberByMax.d.ts +0 -0
  177. /package/dist/{src/functions → functions}/toPercent.d.ts +0 -0
  178. /package/dist/{src/functions → functions}/toPercentBy100.d.ts +0 -0
  179. /package/dist/{src/functions → functions}/toString.d.ts +0 -0
  180. /package/dist/{src/functions → functions}/transformation.d.ts +0 -0
  181. /package/dist/{src/functions → functions}/uint8ArrayToBase64.d.ts +0 -0
  182. /package/dist/{src/functions → functions}/uniqueArray.d.ts +0 -0
  183. /package/dist/{src/functions → functions}/writeClipboardData.d.ts +0 -0
  184. /package/dist/{src/media → media}/errorCauseList.d.ts +0 -0
  185. /package/dist/{src/types → types}/apiTypes.d.ts +0 -0
  186. /package/dist/{src/types → types}/basicTypes.d.ts +0 -0
  187. /package/dist/{src/types → types}/errorCenter.d.ts +0 -0
  188. /package/dist/{src/types → types}/formattersTypes.d.ts +0 -0
  189. /package/dist/{src/types → types}/metaTypes.d.ts +0 -0
  190. /package/dist/{src/types → types}/searchTypes.d.ts +0 -0
  191. /package/dist/{src/types → types}/translateTypes.d.ts +0 -0
@@ -0,0 +1,142 @@
1
+ /**
2
+ * Union type for date format options in geographic context /
3
+ * Объединенный тип для опций формата даты в географическом контексте
4
+ */
5
+ export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'month' | 'day' | 'day-month' | 'time' | 'hour-minute' | 'hour' | 'minute' | 'second';
6
+ /** First day of week code (0 = Sunday, 1 = Monday, 6 = Saturday) / Код первого дня недели (0 = воскресенье, 1 = понедельник, 6 = суббота) */
7
+ export type GeoFirstDay = 1 | 6 | 0;
8
+ /** Hour format type (12-hour or 24-hour) / Тип формата часов (12-часовой или 24-часовой) */
9
+ export type GeoHours = '12' | '24';
10
+ /** Timezone display style options / Опции стиля отображения часового пояса */
11
+ export type GeoTimeZoneStyle = 'minute' | 'hour' | 'ISO8601' | 'RFC';
12
+ /** Geographic item interface for country and language data / Интерфейс географического элемента для данных страны и языка */
13
+ export interface GeoItem {
14
+ /** Country code / Код страны */
15
+ country: string;
16
+ /** Alternative country codes / Альтернативные коды стран */
17
+ countryAlternative?: string[];
18
+ /** Language code / Код языка */
19
+ language: string;
20
+ /** Alternative language codes / Альтернативные коды языков */
21
+ languageAlternative?: string[];
22
+ /** First day of week / Первый день недели */
23
+ firstDay?: string | null;
24
+ /** Timezone / Часовой пояс */
25
+ zone?: string | null;
26
+ /** Phone country code / Телефонный код страны */
27
+ phoneCode?: string;
28
+ /** Phone code for domestic calls / Телефонный код для внутренних звонков */
29
+ phoneWithin?: string;
30
+ /** Phone number mask / Маска телефонного номера */
31
+ phoneMask?: string | string[];
32
+ /** Name format pattern / Шаблон формата имени */
33
+ nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string;
34
+ /** Units of measurement configuration / Конфигурация единиц измерения */
35
+ unit?: {
36
+ /** Millimeter unit format or symbol / Формат или символ единицы измерения миллиметра */
37
+ 'millimeter'?: string;
38
+ /** Centimeter unit format or symbol / Формат или символ единицы измерения сантиметра */
39
+ 'centimeter'?: string;
40
+ /** Meter unit format or symbol / Формат или символ единицы измерения метра */
41
+ 'meter'?: string;
42
+ /** Kilometer unit format or symbol / Формат или символ единицы измерения километра */
43
+ 'kilometer'?: string;
44
+ /** Square meter unit format or symbol / Формат или символ единицы измерения квадратного метра */
45
+ 'square-meter'?: string;
46
+ /** Hectare unit format or symbol / Формат или символ единицы измерения гектара */
47
+ 'hectare'?: string;
48
+ /** Gram unit format or symbol / Формат или символ единицы измерения грамма */
49
+ 'gram'?: string;
50
+ /** Kilogram unit format or symbol / Формат или символ единицы измерения килограмма */
51
+ 'kilogram'?: string;
52
+ /** Tonne unit format or symbol / Формат или символ единицы измерения тонны */
53
+ 'tonne'?: string;
54
+ /** Milliliter unit format or symbol / Формат или символ единицы измерения миллилитра */
55
+ 'milliliter'?: string;
56
+ /** Liter unit format or symbol / Формат или символ единицы измерения литра */
57
+ 'liter'?: string;
58
+ /** Celsius unit format or symbol / Формат или символ единицы измерения градуса Цельсия */
59
+ 'celsius'?: string;
60
+ /** Kilometer per hour unit format or symbol / Формат или символ единицы измерения километра в час */
61
+ 'kilometer-per-hour'?: string;
62
+ };
63
+ }
64
+ /** Extended geographic item with required fields / Расширенный географический элемент с обязательными полями */
65
+ export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> {
66
+ /** Standard locale code / Стандартный код локали */
67
+ standard: string;
68
+ /** First day of week (required) / Первый день недели (обязательный) */
69
+ firstDay: string;
70
+ /** Current location string / Строка текущего местоположения */
71
+ location: string;
72
+ /** Current country code from location / Текущий код страны из местоположения */
73
+ locationCountry: string;
74
+ /** Current language code from location / Текущий код языка из местоположения */
75
+ locationLanguage: string;
76
+ }
77
+ /** Geographic flag item for country flag display / Элемент географического флага для отображения флага страны */
78
+ export interface GeoFlagItem {
79
+ /** Language name / Название языка */
80
+ language: string;
81
+ /** Language code / Код языка */
82
+ languageCode: string;
83
+ /** Country name / Название страны */
84
+ country: string;
85
+ /** Country code / Код страны */
86
+ countryCode: string;
87
+ /** Standard locale code / Стандартный код локали */
88
+ standard: string;
89
+ /** Flag icon identifier / Идентификатор иконки флага */
90
+ icon?: string;
91
+ /** Display label / Отображаемая метка */
92
+ label: string;
93
+ /** Value for selection / Значение для выбора */
94
+ value: string;
95
+ /** Phone country code / Телефонный код страны */
96
+ phoneCode?: string;
97
+ }
98
+ /**
99
+ * Extended geographic flag item with national language information /
100
+ * Расширенный элемент географического флага с информацией о национальном языке
101
+ */
102
+ export interface GeoFlagNational extends GeoFlagItem {
103
+ /** Description in national language / Описание на национальном языке */
104
+ description: string;
105
+ /** Language name in national language / Название языка на национальном языке */
106
+ nationalLanguage: string;
107
+ /** Country name in national language / Название страны на национальном языке */
108
+ nationalCountry: string;
109
+ }
110
+ /** Phone configuration metadata for a country / Структура метаданных для конфигурации телефона страны */
111
+ export interface GeoPhoneValue {
112
+ /** Phone country code (e.g., 7) / Телефонный код страны (например, 7) */
113
+ phone: number;
114
+ /** Internal dialing rule code / Код внутреннего правила набора */
115
+ within: number;
116
+ /** Array of mask patterns assigned to the country / Массив паттернов масок, закрепленных за страной */
117
+ mask: string[];
118
+ /** Country identifier (ISO 3166) / Идентификатор страны (ISO 3166) */
119
+ value: string;
120
+ }
121
+ /** Node in the internal phone prefix tree (Trie) / Узел внутреннего префиксного дерева телефонов (Trie) */
122
+ export interface GeoPhoneMap {
123
+ /** List of all items available in this branch of the tree / Список всех элементов, доступных в данной ветви дерева */
124
+ items: GeoPhoneValue[];
125
+ /** Phone metadata if the current node is a complete code / Метаданные телефона, если текущий узел является завершенным кодом */
126
+ info: GeoPhoneValue | undefined;
127
+ /** Country identifier for this node / Идентификатор страны для данного узла */
128
+ value: string | undefined;
129
+ /** Array of masks with substituted internal symbols / Массив масок с подставленными спецсимволами */
130
+ mask: string[];
131
+ /** Full masks including the international code / Полные маски, включая международный код */
132
+ maskFull: string[];
133
+ /** Pointers to the next digits in the search tree / Указатели на следующие цифры номера в дереве поиска */
134
+ next: Record<string, GeoPhoneMap>;
135
+ }
136
+ /** Result of searching a country by phone number / Результат поиска страны по номеру телефона */
137
+ export interface GeoPhoneMapInfo {
138
+ /** The found tree node with country and mask information / Найденный узел дерева с информацией о стране и масках */
139
+ item?: GeoPhoneMap;
140
+ /** The remaining part of the number after separating the country code / Оставшаяся часть номера после отделения кода страны */
141
+ phone?: string;
142
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/functional-basic",
3
3
  "private": false,
4
- "version": "1.4.3",
4
+ "version": "1.6.1",
5
5
  "type": "module",
6
6
  "description": "Foundational utility library for modern web development — HTTP client, geolocation, i18n, SEO meta tags, caching, storage, DOM utilities, and more. Framework-agnostic, zero dependencies, TypeScript-first.",
7
7
  "keywords": [
@@ -69,17 +69,17 @@
69
69
  ],
70
70
  "main": "dist/library.js",
71
71
  "module": "dist/library.js",
72
- "types": "dist/src/library.d.ts",
72
+ "types": "dist/library.d.ts",
73
73
  "exports": {
74
74
  ".": {
75
75
  "import": "./dist/library.js",
76
- "types": "./dist/src/library.d.ts"
76
+ "types": "./dist/library.d.ts"
77
77
  }
78
78
  },
79
79
  "engines": {
80
80
  "node": ">=20.0.0"
81
81
  },
82
- "peerDependencies": {
82
+ "dependencies": {
83
83
  "@dxtmisha/media": "*"
84
84
  },
85
85
  "sideEffects": false,
@@ -1,98 +0,0 @@
1
- /**
2
- * Union type for date format options in geographic context/
3
- * Объединенный тип для опций формата даты в географическом контексте
4
- */
5
- export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'month' | 'day' | 'day-month' | 'time' | 'hour-minute' | 'hour' | 'minute' | 'second';
6
- /** First day of week code (0=Sunday, 1=Monday, 6=Saturday)/ Код первого дня недели (0=воскресенье, 1=понедельник, 6=суббота) */
7
- export type GeoFirstDay = 1 | 6 | 0;
8
- /** Hour format type (12-hour or 24-hour)/ Тип формата часов (12-часовой или 24-часовой) */
9
- export type GeoHours = '12' | '24';
10
- /** Timezone display style options/ Опции стиля отображения часового пояса */
11
- export type GeoTimeZoneStyle = 'minute' | 'hour' | 'ISO8601' | 'RFC';
12
- /** Geographic item interface for country and language data/ Интерфейс географического элемента для данных страны и языка */
13
- export interface GeoItem {
14
- /** Country code/ Код страны */
15
- country: string;
16
- /** Alternative country codes/ Альтернативные коды стран */
17
- countryAlternative?: string[];
18
- /** Language code/ Код языка */
19
- language: string;
20
- /** Alternative language codes/ Альтернативные коды языков */
21
- languageAlternative?: string[];
22
- /** First day of week/ Первый день недели */
23
- firstDay?: string | null;
24
- /** Timezone/ Часовой пояс */
25
- zone?: string | null;
26
- /** Phone country code/ Телефонный код страны */
27
- phoneCode?: string;
28
- /** Phone code for domestic calls/ Телефонный код для внутренних звонков */
29
- phoneWithin?: string;
30
- /** Phone number mask/ Маска телефонного номера */
31
- phoneMask?: string | string[];
32
- /** Name format pattern/ Шаблон формата имени */
33
- nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string;
34
- }
35
- /** Extended geographic item with required fields/ Расширенный географический элемент с обязательными полями */
36
- export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> {
37
- /** Standard locale code/ Стандартный код локали */
38
- standard: string;
39
- /** First day of week (required)/ Первый день недели (обязательный) */
40
- firstDay: string;
41
- /** Current location string/ Строка текущего местоположения */
42
- location: string;
43
- /** Current country code from location/ Текущий код страны из местоположения */
44
- locationCountry: string;
45
- /** Current language code from location/ Текущий код языка из местоположения */
46
- locationLanguage: string;
47
- }
48
- /** Geographic flag item for country flag display/ Элемент географического флага для отображения флага страны */
49
- export interface GeoFlagItem {
50
- /** Language name/ Название языка */
51
- language: string;
52
- /** Language code/ Код языка */
53
- languageCode: string;
54
- /** Country name/ Название страны */
55
- country: string;
56
- /** Country code/ Код страны */
57
- countryCode: string;
58
- /** Standard locale code/ Стандартный код локали */
59
- standard: string;
60
- /** Flag icon identifier/ Идентификатор иконки флага */
61
- icon?: string;
62
- /** Display label/ Отображаемая метка */
63
- label: string;
64
- /** Value for selection/ Значение для выбора */
65
- value: string;
66
- /** Phone country code/ Телефонный код страны */
67
- phoneCode?: string;
68
- }
69
- /**
70
- * Extended geographic flag item with national language information/
71
- * Расширенный элемент географического флага с информацией о национальном языке
72
- */
73
- export interface GeoFlagNational extends GeoFlagItem {
74
- /** Description in national language/ Описание на национальном языке */
75
- description: string;
76
- /** Language name in national language/ Название языка на национальном языке */
77
- nationalLanguage: string;
78
- /** Country name in national language/ Название страны на национальном языке */
79
- nationalCountry: string;
80
- }
81
- export interface GeoPhoneValue {
82
- phone: number;
83
- within: number;
84
- mask: string[];
85
- value: string;
86
- }
87
- export interface GeoPhoneMap {
88
- items: GeoPhoneValue[];
89
- info: GeoPhoneValue | undefined;
90
- value: string | undefined;
91
- mask: string[];
92
- maskFull: string[];
93
- next: Record<string, GeoPhoneMap>;
94
- }
95
- export interface GeoPhoneMapInfo {
96
- item?: GeoPhoneMap;
97
- phone?: string;
98
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes