@dxtmisha/functional-basic 1.5.0 → 1.6.2
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/CHANGELOG.md +16 -0
- package/ai-description.md +16 -18
- package/ai-doc.md +5 -0
- package/ai-types.md +739 -1225
- package/dist/functions/isMetaKey.d.ts +8 -0
- package/dist/{src/library.d.ts → library.d.ts} +1 -0
- package/dist/library.js +28 -25
- package/package.json +3 -3
- /package/dist/{src/classes → classes}/Api.d.ts +0 -0
- /package/dist/{src/classes → classes}/ApiCache.d.ts +0 -0
- /package/dist/{src/classes → classes}/ApiDataReturn.d.ts +0 -0
- /package/dist/{src/classes → classes}/ApiDefault.d.ts +0 -0
- /package/dist/{src/classes → classes}/ApiError.d.ts +0 -0
- /package/dist/{src/classes → classes}/ApiErrorItem.d.ts +0 -0
- /package/dist/{src/classes → classes}/ApiErrorStorage.d.ts +0 -0
- /package/dist/{src/classes → classes}/ApiHeaders.d.ts +0 -0
- /package/dist/{src/classes → classes}/ApiHydration.d.ts +0 -0
- /package/dist/{src/classes → classes}/ApiInstance.d.ts +0 -0
- /package/dist/{src/classes → classes}/ApiPreparation.d.ts +0 -0
- /package/dist/{src/classes → classes}/ApiResponse.d.ts +0 -0
- /package/dist/{src/classes → classes}/ApiStatus.d.ts +0 -0
- /package/dist/{src/classes → classes}/BroadcastMessage.d.ts +0 -0
- /package/dist/{src/classes → classes}/Cache.d.ts +0 -0
- /package/dist/{src/classes → classes}/CacheItem.d.ts +0 -0
- /package/dist/{src/classes → classes}/CacheStatic.d.ts +0 -0
- /package/dist/{src/classes → classes}/Cookie.d.ts +0 -0
- /package/dist/{src/classes → classes}/CookieBlock.d.ts +0 -0
- /package/dist/{src/classes → classes}/CookieBlockInstance.d.ts +0 -0
- /package/dist/{src/classes → classes}/CookieStorage.d.ts +0 -0
- /package/dist/{src/classes → classes}/DataStorage.d.ts +0 -0
- /package/dist/{src/classes → classes}/Datetime.d.ts +0 -0
- /package/dist/{src/classes → classes}/ErrorCenter.d.ts +0 -0
- /package/dist/{src/classes → classes}/ErrorCenterHandler.d.ts +0 -0
- /package/dist/{src/classes → classes}/ErrorCenterInstance.d.ts +0 -0
- /package/dist/{src/classes → classes}/EventItem.d.ts +0 -0
- /package/dist/{src/classes → classes}/Formatters.d.ts +0 -0
- /package/dist/{src/classes → classes}/Geo.d.ts +0 -0
- /package/dist/{src/classes → classes}/GeoFlag.d.ts +0 -0
- /package/dist/{src/classes → classes}/GeoInstance.d.ts +0 -0
- /package/dist/{src/classes → classes}/GeoIntl.d.ts +0 -0
- /package/dist/{src/classes → classes}/GeoPhone.d.ts +0 -0
- /package/dist/{src/classes → classes}/GeoUnit.d.ts +0 -0
- /package/dist/{src/classes → classes}/Global.d.ts +0 -0
- /package/dist/{src/classes → classes}/Hash.d.ts +0 -0
- /package/dist/{src/classes → classes}/HashInstance.d.ts +0 -0
- /package/dist/{src/classes → classes}/Icons.d.ts +0 -0
- /package/dist/{src/classes → classes}/Loading.d.ts +0 -0
- /package/dist/{src/classes → classes}/LoadingInstance.d.ts +0 -0
- /package/dist/{src/classes → classes}/Meta.d.ts +0 -0
- /package/dist/{src/classes → classes}/MetaManager.d.ts +0 -0
- /package/dist/{src/classes → classes}/MetaOg.d.ts +0 -0
- /package/dist/{src/classes → classes}/MetaStatic.d.ts +0 -0
- /package/dist/{src/classes → classes}/MetaTwitter.d.ts +0 -0
- /package/dist/{src/classes → classes}/Query.d.ts +0 -0
- /package/dist/{src/classes → classes}/QueryInstance.d.ts +0 -0
- /package/dist/{src/classes → classes}/ResumableTimer.d.ts +0 -0
- /package/dist/{src/classes → classes}/ScrollbarWidth.d.ts +0 -0
- /package/dist/{src/classes → classes}/SearchList.d.ts +0 -0
- /package/dist/{src/classes → classes}/SearchListData.d.ts +0 -0
- /package/dist/{src/classes → classes}/SearchListItem.d.ts +0 -0
- /package/dist/{src/classes → classes}/SearchListMatcher.d.ts +0 -0
- /package/dist/{src/classes → classes}/SearchListOptions.d.ts +0 -0
- /package/dist/{src/classes → classes}/ServerStorage.d.ts +0 -0
- /package/dist/{src/classes → classes}/StorageCallback.d.ts +0 -0
- /package/dist/{src/classes → classes}/Translate.d.ts +0 -0
- /package/dist/{src/classes → classes}/TranslateFile.d.ts +0 -0
- /package/dist/{src/classes → classes}/TranslateInstance.d.ts +0 -0
- /package/dist/{src/classes → classes}/UrlInstanceAbstract.d.ts +0 -0
- /package/dist/{src/classes → classes}/UrlItem.d.ts +0 -0
- /package/dist/{src/functions → functions}/addTagHighlightMatch.d.ts +0 -0
- /package/dist/{src/functions → functions}/anyToString.d.ts +0 -0
- /package/dist/{src/functions → functions}/applyTemplate.d.ts +0 -0
- /package/dist/{src/functions → functions}/arrFill.d.ts +0 -0
- /package/dist/{src/functions → functions}/blobToBase64.d.ts +0 -0
- /package/dist/{src/functions → functions}/capitalize.d.ts +0 -0
- /package/dist/{src/functions → functions}/copyObject.d.ts +0 -0
- /package/dist/{src/functions → functions}/copyObjectLite.d.ts +0 -0
- /package/dist/{src/functions → functions}/createElement.d.ts +0 -0
- /package/dist/{src/functions → functions}/domQuerySelector.d.ts +0 -0
- /package/dist/{src/functions → functions}/domQuerySelectorAll.d.ts +0 -0
- /package/dist/{src/functions → functions}/encodeAttribute.d.ts +0 -0
- /package/dist/{src/functions → functions}/encodeLiteAttribute.d.ts +0 -0
- /package/dist/{src/functions → functions}/ensureMaxSize.d.ts +0 -0
- /package/dist/{src/functions → functions}/escapeExp.d.ts +0 -0
- /package/dist/{src/functions → functions}/eventStopPropagation.d.ts +0 -0
- /package/dist/{src/functions → functions}/executeFunction.d.ts +0 -0
- /package/dist/{src/functions → functions}/executePromise.d.ts +0 -0
- /package/dist/{src/functions → functions}/forEach.d.ts +0 -0
- /package/dist/{src/functions → functions}/frame.d.ts +0 -0
- /package/dist/{src/functions → functions}/getArrayHighlightMatch.d.ts +0 -0
- /package/dist/{src/functions → functions}/getAttributes.d.ts +0 -0
- /package/dist/{src/functions → functions}/getClipboardData.d.ts +0 -0
- /package/dist/{src/functions → functions}/getColumn.d.ts +0 -0
- /package/dist/{src/functions → functions}/getCurrentDate.d.ts +0 -0
- /package/dist/{src/functions → functions}/getCurrentTime.d.ts +0 -0
- /package/dist/{src/functions → functions}/getElement.d.ts +0 -0
- /package/dist/{src/functions → functions}/getElementId.d.ts +0 -0
- /package/dist/{src/functions → functions}/getElementImage.d.ts +0 -0
- /package/dist/{src/functions → functions}/getElementItem.d.ts +0 -0
- /package/dist/{src/functions → functions}/getElementOrWindow.d.ts +0 -0
- /package/dist/{src/functions → functions}/getElementSafeScript.d.ts +0 -0
- /package/dist/{src/functions → functions}/getExactSearchExp.d.ts +0 -0
- /package/dist/{src/functions → functions}/getExp.d.ts +0 -0
- /package/dist/{src/functions → functions}/getFirst.d.ts +0 -0
- /package/dist/{src/functions → functions}/getHydrationData.d.ts +0 -0
- /package/dist/{src/functions → functions}/getItemByPath.d.ts +0 -0
- /package/dist/{src/functions → functions}/getKey.d.ts +0 -0
- /package/dist/{src/functions → functions}/getLength.d.ts +0 -0
- /package/dist/{src/functions → functions}/getLengthOfAllArray.d.ts +0 -0
- /package/dist/{src/functions → functions}/getMaxLengthAllArray.d.ts +0 -0
- /package/dist/{src/functions → functions}/getMinLengthAllArray.d.ts +0 -0
- /package/dist/{src/functions → functions}/getMouseClient.d.ts +0 -0
- /package/dist/{src/functions → functions}/getMouseClientX.d.ts +0 -0
- /package/dist/{src/functions → functions}/getMouseClientY.d.ts +0 -0
- /package/dist/{src/functions → functions}/getObjectByKeys.d.ts +0 -0
- /package/dist/{src/functions → functions}/getObjectNoUndefined.d.ts +0 -0
- /package/dist/{src/functions → functions}/getObjectOrNone.d.ts +0 -0
- /package/dist/{src/functions → functions}/getOnlyText.d.ts +0 -0
- /package/dist/{src/functions → functions}/getRandomText.d.ts +0 -0
- /package/dist/{src/functions → functions}/getRequestString.d.ts +0 -0
- /package/dist/{src/functions → functions}/getSearchExp.d.ts +0 -0
- /package/dist/{src/functions → functions}/getSeparatingSearchExp.d.ts +0 -0
- /package/dist/{src/functions → functions}/getStepPercent.d.ts +0 -0
- /package/dist/{src/functions → functions}/getStepValue.d.ts +0 -0
- /package/dist/{src/functions → functions}/goScroll.d.ts +0 -0
- /package/dist/{src/functions → functions}/goScrollSmooth.d.ts +0 -0
- /package/dist/{src/functions → functions}/goScrollTo.d.ts +0 -0
- /package/dist/{src/functions → functions}/handleShare.d.ts +0 -0
- /package/dist/{src/functions → functions}/inArray.d.ts +0 -0
- /package/dist/{src/functions → functions}/initScrollbarOffset.d.ts +0 -0
- /package/dist/{src/functions → functions}/intersectKey.d.ts +0 -0
- /package/dist/{src/functions → functions}/isApiSuccess.d.ts +0 -0
- /package/dist/{src/functions → functions}/isArray.d.ts +0 -0
- /package/dist/{src/functions → functions}/isDifferent.d.ts +0 -0
- /package/dist/{src/functions → functions}/isDomData.d.ts +0 -0
- /package/dist/{src/functions → functions}/isDomRuntime.d.ts +0 -0
- /package/dist/{src/functions → functions}/isElementVisible.d.ts +0 -0
- /package/dist/{src/functions → functions}/isEnter.d.ts +0 -0
- /package/dist/{src/functions → functions}/isFilled.d.ts +0 -0
- /package/dist/{src/functions → functions}/isFloat.d.ts +0 -0
- /package/dist/{src/functions → functions}/isFunction.d.ts +0 -0
- /package/dist/{src/functions → functions}/isInDom.d.ts +0 -0
- /package/dist/{src/functions → functions}/isInput.d.ts +0 -0
- /package/dist/{src/functions → functions}/isIntegerBetween.d.ts +0 -0
- /package/dist/{src/functions → functions}/isNull.d.ts +0 -0
- /package/dist/{src/functions → functions}/isNumber.d.ts +0 -0
- /package/dist/{src/functions → functions}/isObject.d.ts +0 -0
- /package/dist/{src/functions → functions}/isObjectNotArray.d.ts +0 -0
- /package/dist/{src/functions → functions}/isOnLine.d.ts +0 -0
- /package/dist/{src/functions → functions}/isSelected.d.ts +0 -0
- /package/dist/{src/functions → functions}/isSelectedByList.d.ts +0 -0
- /package/dist/{src/functions → functions}/isShare.d.ts +0 -0
- /package/dist/{src/functions → functions}/isString.d.ts +0 -0
- /package/dist/{src/functions → functions}/isTab.d.ts +0 -0
- /package/dist/{src/functions → functions}/isWindow.d.ts +0 -0
- /package/dist/{src/functions → functions}/random.d.ts +0 -0
- /package/dist/{src/functions → functions}/removeCommonPrefix.d.ts +0 -0
- /package/dist/{src/functions → functions}/replaceComponentName.d.ts +0 -0
- /package/dist/{src/functions → functions}/replaceRecursive.d.ts +0 -0
- /package/dist/{src/functions → functions}/replaceTemplate.d.ts +0 -0
- /package/dist/{src/functions → functions}/resizeImageByMax.d.ts +0 -0
- /package/dist/{src/functions → functions}/secondToTime.d.ts +0 -0
- /package/dist/{src/functions → functions}/setElementItem.d.ts +0 -0
- /package/dist/{src/functions → functions}/setValues.d.ts +0 -0
- /package/dist/{src/functions → functions}/sleep.d.ts +0 -0
- /package/dist/{src/functions → functions}/splice.d.ts +0 -0
- /package/dist/{src/functions → functions}/strFill.d.ts +0 -0
- /package/dist/{src/functions → functions}/strSplit.d.ts +0 -0
- /package/dist/{src/functions → functions}/toArray.d.ts +0 -0
- /package/dist/{src/functions → functions}/toCamelCase.d.ts +0 -0
- /package/dist/{src/functions → functions}/toCamelCaseFirst.d.ts +0 -0
- /package/dist/{src/functions → functions}/toDate.d.ts +0 -0
- /package/dist/{src/functions → functions}/toKebabCase.d.ts +0 -0
- /package/dist/{src/functions → functions}/toNumber.d.ts +0 -0
- /package/dist/{src/functions → functions}/toNumberByMax.d.ts +0 -0
- /package/dist/{src/functions → functions}/toPercent.d.ts +0 -0
- /package/dist/{src/functions → functions}/toPercentBy100.d.ts +0 -0
- /package/dist/{src/functions → functions}/toString.d.ts +0 -0
- /package/dist/{src/functions → functions}/transformation.d.ts +0 -0
- /package/dist/{src/functions → functions}/uint8ArrayToBase64.d.ts +0 -0
- /package/dist/{src/functions → functions}/uniqueArray.d.ts +0 -0
- /package/dist/{src/functions → functions}/writeClipboardData.d.ts +0 -0
- /package/dist/{src/media → media}/errorCauseList.d.ts +0 -0
- /package/dist/{src/types → types}/apiTypes.d.ts +0 -0
- /package/dist/{src/types → types}/basicTypes.d.ts +0 -0
- /package/dist/{src/types → types}/errorCenter.d.ts +0 -0
- /package/dist/{src/types → types}/formattersTypes.d.ts +0 -0
- /package/dist/{src/types → types}/geoTypes.d.ts +0 -0
- /package/dist/{src/types → types}/metaTypes.d.ts +0 -0
- /package/dist/{src/types → types}/searchTypes.d.ts +0 -0
- /package/dist/{src/types → types}/translateTypes.d.ts +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if a key event contains active modifier/meta keys.
|
|
3
|
+
*
|
|
4
|
+
* Проверяет, содержит ли событие клавиши активные клавиши-модификаторы.
|
|
5
|
+
* @param event event object / объект события
|
|
6
|
+
* @returns true if modifier key pressed / true, если нажата клавиша-модификатор
|
|
7
|
+
*/
|
|
8
|
+
export declare const isMetaKey: (event: KeyboardEvent) => boolean;
|
|
@@ -134,6 +134,7 @@ export * from './functions/isFunction';
|
|
|
134
134
|
export * from './functions/isInDom';
|
|
135
135
|
export * from './functions/isInput';
|
|
136
136
|
export * from './functions/isIntegerBetween';
|
|
137
|
+
export * from './functions/isMetaKey';
|
|
137
138
|
export * from './functions/isNull';
|
|
138
139
|
export * from './functions/isNumber';
|
|
139
140
|
export * from './functions/isObject';
|
package/dist/library.js
CHANGED
|
@@ -160,7 +160,7 @@ function se(e, t, n) {
|
|
|
160
160
|
return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
|
|
161
161
|
}
|
|
162
162
|
//#endregion
|
|
163
|
-
//#region \0@oxc-project+runtime@0.
|
|
163
|
+
//#region \0@oxc-project+runtime@0.138.0/helpers/esm/typeof.js
|
|
164
164
|
function S(e) {
|
|
165
165
|
"@babel/helpers - typeof";
|
|
166
166
|
return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -170,7 +170,7 @@ function S(e) {
|
|
|
170
170
|
}, S(e);
|
|
171
171
|
}
|
|
172
172
|
//#endregion
|
|
173
|
-
//#region \0@oxc-project+runtime@0.
|
|
173
|
+
//#region \0@oxc-project+runtime@0.138.0/helpers/esm/toPrimitive.js
|
|
174
174
|
function ce(e, t) {
|
|
175
175
|
if (S(e) != "object" || !e) return e;
|
|
176
176
|
var n = e[Symbol.toPrimitive];
|
|
@@ -182,13 +182,13 @@ function ce(e, t) {
|
|
|
182
182
|
return (t === "string" ? String : Number)(e);
|
|
183
183
|
}
|
|
184
184
|
//#endregion
|
|
185
|
-
//#region \0@oxc-project+runtime@0.
|
|
185
|
+
//#region \0@oxc-project+runtime@0.138.0/helpers/esm/toPropertyKey.js
|
|
186
186
|
function le(e) {
|
|
187
187
|
var t = ce(e, "string");
|
|
188
188
|
return S(t) == "symbol" ? t : t + "";
|
|
189
189
|
}
|
|
190
190
|
//#endregion
|
|
191
|
-
//#region \0@oxc-project+runtime@0.
|
|
191
|
+
//#region \0@oxc-project+runtime@0.138.0/helpers/esm/defineProperty.js
|
|
192
192
|
function C(e, t, n) {
|
|
193
193
|
return (t = le(t)) in e ? Object.defineProperty(e, t, {
|
|
194
194
|
value: n,
|
|
@@ -4906,16 +4906,19 @@ function ur(e, t) {
|
|
|
4906
4906
|
return e >= n && e < n + 1;
|
|
4907
4907
|
}
|
|
4908
4908
|
//#endregion
|
|
4909
|
+
//#region src/functions/isMetaKey.ts
|
|
4910
|
+
var dr = (e) => !!(e.metaKey || e.altKey || e.ctrlKey);
|
|
4911
|
+
//#endregion
|
|
4909
4912
|
//#region src/functions/isSelectedByList.ts
|
|
4910
|
-
function
|
|
4913
|
+
function fr(e, t) {
|
|
4911
4914
|
return Array.isArray(e) ? e.every((e) => b(e, t)) : b(e, t);
|
|
4912
4915
|
}
|
|
4913
4916
|
//#endregion
|
|
4914
4917
|
//#region src/functions/isTab.ts
|
|
4915
|
-
var
|
|
4918
|
+
var pr = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
|
|
4916
4919
|
//#endregion
|
|
4917
4920
|
//#region src/functions/removeCommonPrefix.ts
|
|
4918
|
-
function
|
|
4921
|
+
function mr(e, t) {
|
|
4919
4922
|
if (e.startsWith(t)) return e.slice(t.length).trim();
|
|
4920
4923
|
let n = 0;
|
|
4921
4924
|
for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
|
|
@@ -4923,13 +4926,13 @@ function pr(e, t) {
|
|
|
4923
4926
|
}
|
|
4924
4927
|
//#endregion
|
|
4925
4928
|
//#region src/functions/replaceComponentName.ts
|
|
4926
|
-
var
|
|
4929
|
+
var hr = (e, t, n) => {
|
|
4927
4930
|
var r;
|
|
4928
4931
|
return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
|
|
4929
4932
|
};
|
|
4930
4933
|
//#endregion
|
|
4931
4934
|
//#region src/functions/uniqueArray.ts
|
|
4932
|
-
function
|
|
4935
|
+
function gr(e) {
|
|
4933
4936
|
return [...new Set(e)];
|
|
4934
4937
|
}
|
|
4935
4938
|
//#endregion
|
|
@@ -4938,12 +4941,12 @@ function $(e, n, i = !0) {
|
|
|
4938
4941
|
let a = Z(e);
|
|
4939
4942
|
return t(e) && t(n) && r(n, (n, r) => {
|
|
4940
4943
|
let o = e == null ? void 0 : e[r];
|
|
4941
|
-
t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(
|
|
4944
|
+
t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(gr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
|
|
4942
4945
|
}), a;
|
|
4943
4946
|
}
|
|
4944
4947
|
//#endregion
|
|
4945
4948
|
//#region src/functions/replaceTemplate.ts
|
|
4946
|
-
function
|
|
4949
|
+
function _r(e, t) {
|
|
4947
4950
|
let n = e;
|
|
4948
4951
|
return r(t, (e, t) => {
|
|
4949
4952
|
n = n.replace(Gt(`[${t}]`), m(e));
|
|
@@ -4951,7 +4954,7 @@ function gr(e, t) {
|
|
|
4951
4954
|
}
|
|
4952
4955
|
//#endregion
|
|
4953
4956
|
//#region src/functions/secondToTime.ts
|
|
4954
|
-
function
|
|
4957
|
+
function vr(e, t) {
|
|
4955
4958
|
let n = y(e);
|
|
4956
4959
|
if (n > 0) {
|
|
4957
4960
|
let e = String(Math.floor(n / 60)).padStart(2, "0"), r = String(n % 60).padStart(2, "0");
|
|
@@ -4961,7 +4964,7 @@ function _r(e, t) {
|
|
|
4961
4964
|
}
|
|
4962
4965
|
//#endregion
|
|
4963
4966
|
//#region src/functions/setValues.ts
|
|
4964
|
-
function
|
|
4967
|
+
function yr(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
|
|
4965
4968
|
if (n) {
|
|
4966
4969
|
if (i(e)) {
|
|
4967
4970
|
let n = e.indexOf(t), i = [...e];
|
|
@@ -4973,7 +4976,7 @@ function vr(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, no
|
|
|
4973
4976
|
}
|
|
4974
4977
|
//#endregion
|
|
4975
4978
|
//#region src/functions/splice.ts
|
|
4976
|
-
function
|
|
4979
|
+
function br(e, n, i) {
|
|
4977
4980
|
if (t(e) && t(n)) {
|
|
4978
4981
|
if (i) {
|
|
4979
4982
|
let a = {}, o = !1;
|
|
@@ -4987,34 +4990,34 @@ function yr(e, n, i) {
|
|
|
4987
4990
|
}
|
|
4988
4991
|
//#endregion
|
|
4989
4992
|
//#region src/functions/toCamelCaseFirst.ts
|
|
4990
|
-
function
|
|
4993
|
+
function xr(e) {
|
|
4991
4994
|
return ot(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
|
|
4992
4995
|
}
|
|
4993
4996
|
//#endregion
|
|
4994
4997
|
//#region src/functions/toKebabCase.ts
|
|
4995
|
-
function
|
|
4998
|
+
function Sr(e) {
|
|
4996
4999
|
return e.toString().trim().replace(/[^\w-. ]+/g, "").replace(/[ .]+/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (e) => `${e.toLowerCase()}`).replace(/^[A-Z]/, (e) => e.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (e) => `-${e.toLowerCase()}`).replace(/[A-Z]/g, (e) => e.toLowerCase());
|
|
4997
5000
|
}
|
|
4998
5001
|
//#endregion
|
|
4999
5002
|
//#region src/functions/toNumberByMax.ts
|
|
5000
|
-
function
|
|
5003
|
+
function Cr(e, t, n, r) {
|
|
5001
5004
|
let i = y(e), a = y(t);
|
|
5002
|
-
return t && a < i ? `${
|
|
5005
|
+
return t && a < i ? `${wr(a, n, r)}+` : wr(i, n, r);
|
|
5003
5006
|
}
|
|
5004
|
-
var
|
|
5007
|
+
var wr = (e, t, n) => t ? new L(n).number(e) : e;
|
|
5005
5008
|
//#endregion
|
|
5006
5009
|
//#region src/functions/toPercent.ts
|
|
5007
|
-
function
|
|
5010
|
+
function Tr(e, t) {
|
|
5008
5011
|
return e === 0 ? t : 1 / e * t;
|
|
5009
5012
|
}
|
|
5010
5013
|
//#endregion
|
|
5011
5014
|
//#region src/functions/toPercentBy100.ts
|
|
5012
|
-
function
|
|
5013
|
-
return
|
|
5015
|
+
function Er(e, t) {
|
|
5016
|
+
return Tr(e, t) * 100;
|
|
5014
5017
|
}
|
|
5015
5018
|
//#endregion
|
|
5016
5019
|
//#region src/functions/uint8ArrayToBase64.ts
|
|
5017
|
-
function
|
|
5020
|
+
function Dr(e) {
|
|
5018
5021
|
let t = "";
|
|
5019
5022
|
for (let n of e) t += String.fromCharCode(n);
|
|
5020
5023
|
if (s()) return window.btoa(t);
|
|
@@ -5026,7 +5029,7 @@ function Er(e) {
|
|
|
5026
5029
|
}
|
|
5027
5030
|
//#endregion
|
|
5028
5031
|
//#region src/functions/writeClipboardData.ts
|
|
5029
|
-
async function
|
|
5032
|
+
async function Or(e) {
|
|
5030
5033
|
if (s()) try {
|
|
5031
5034
|
await navigator.clipboard.writeText(e);
|
|
5032
5035
|
} catch (n) {
|
|
@@ -5035,4 +5038,4 @@ async function Dr(e) {
|
|
|
5035
5038
|
}
|
|
5036
5039
|
}
|
|
5037
5040
|
//#endregion
|
|
5038
|
-
export { F as Api, N as ApiCache, Be as ApiDataReturn, Ve as ApiDefault, We as ApiError, He as ApiErrorItem, Ue as ApiErrorStorage, Ge as ApiHeaders, qe as ApiHydration, Qe as ApiInstance, P as ApiMethodItem, Je as ApiPreparation, Ze as ApiResponse, Re as ApiStatus, $e as BroadcastMessage, nt as Cache, tt as CacheItem, rt as CacheStatic, Ee as Cookie, Ce as CookieBlock, Se as CookieBlockInstance, O as CookieStorage, D as DataStorage, at as Datetime, w as ErrorCenter, ue as ErrorCenterHandler, de as ErrorCenterInstance, Ne as EventItem, st as Formatters, V as FormattersType, ct as GEO_FLAG_ICON_NAME, k as Geo, lt as GeoFlag, ke as GeoInstance, L as GeoIntl, ut as GeoPhone, ft as GeoUnit, pt as Global, gt as Hash, ht as HashInstance, yt as Icons, M as Loading, Fe as LoadingInstance, Mt as Meta, G as MetaManager, At as MetaOg, Dt as MetaOpenGraphAge, Tt as MetaOpenGraphAvailability, Et as MetaOpenGraphCondition, Ot as MetaOpenGraphGender, q as MetaOpenGraphTag, wt as MetaOpenGraphType, Ct as MetaRobots, Nt as MetaStatic, K as MetaTag, jt as MetaTwitter, kt as MetaTwitterCard, J as MetaTwitterTag, Ft as Query, Pt as QueryInstance, It as ResumableTimer, Lt as ScrollbarWidth, Xt as SearchList, Ut as SearchListData, Wt as SearchListItem, Jt as SearchListMatcher, Yt as SearchListOptions, E as ServerStorage, Qt as StorageCallback, rn as TRANSLATE_GLOBAL_PREFIX, an as TRANSLATE_TIME_OUT, cn as Translate, on as TranslateFile, sn as TranslateInstance, De as UI_GEO_COOKIE_KEY, mt as UrlInstanceAbstract, Y as UrlItem, Ht as addTagHighlightMatch, x as anyToString, tn as applyTemplate, ln as arrFill, mn as blobToBase64, hn as capitalize, Z as copyObject, gn as copyObjectLite, U as createElement, _n as domQuerySelector, vn as domQuerySelectorAll, W as encodeAttribute, me as encodeLiteAttribute, Sn as ensureMaxSize, X as escapeExp, Cn as eventStopPropagation, m as executeFunction, Ye as executePromise, r as forEach, wn as frame, Tn as getArrayHighlightMatch, En as getAttributes, Dn as getClipboardData, it as getColumn, On as getCurrentDate, kn as getCurrentTime, A as getElement, jn as getElementId, yn as getElementImage, bt as getElementItem, je as getElementOrWindow, he as getElementSafeScript, Kt as getExactSearchExp, Gt as getExp, Nn as getFirst, ge as getHydrationData, B as getItemByPath, Pn as getKey, Fn as getLength, In as getLengthOfAllArray, Ln as getMaxLengthAllArray, Rn as getMinLengthAllArray, Vn as getMouseClient, zn as getMouseClientX, Bn as getMouseClientY, Hn as getObjectByKeys, Un as getObjectNoUndefined, Wn as getObjectOrNone, Gn as getOnlyText, qn as getRandomText, o as getRequestString, qt as getSearchExp, Rt as getSeparatingSearchExp, Jn as getStepPercent, Yn as getStepValue, Zn as goScroll, Qn as goScrollSmooth, $n as goScrollTo, tr as handleShare, nr as inArray, Mn as initGetElementId, rr as initScrollbarOffset, ir as intersectKey, nn as isApiSuccess, i as isArray, ar as isDifferent, oe as isDomData, s as isDomRuntime, or as isElementVisible, cr as isEnter, l as isFilled, lr as isFloat, p as isFunction, Me as isInDom, sr as isInput, ur as isIntegerBetween, c as isNull, h as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, b as isSelected,
|
|
5041
|
+
export { F as Api, N as ApiCache, Be as ApiDataReturn, Ve as ApiDefault, We as ApiError, He as ApiErrorItem, Ue as ApiErrorStorage, Ge as ApiHeaders, qe as ApiHydration, Qe as ApiInstance, P as ApiMethodItem, Je as ApiPreparation, Ze as ApiResponse, Re as ApiStatus, $e as BroadcastMessage, nt as Cache, tt as CacheItem, rt as CacheStatic, Ee as Cookie, Ce as CookieBlock, Se as CookieBlockInstance, O as CookieStorage, D as DataStorage, at as Datetime, w as ErrorCenter, ue as ErrorCenterHandler, de as ErrorCenterInstance, Ne as EventItem, st as Formatters, V as FormattersType, ct as GEO_FLAG_ICON_NAME, k as Geo, lt as GeoFlag, ke as GeoInstance, L as GeoIntl, ut as GeoPhone, ft as GeoUnit, pt as Global, gt as Hash, ht as HashInstance, yt as Icons, M as Loading, Fe as LoadingInstance, Mt as Meta, G as MetaManager, At as MetaOg, Dt as MetaOpenGraphAge, Tt as MetaOpenGraphAvailability, Et as MetaOpenGraphCondition, Ot as MetaOpenGraphGender, q as MetaOpenGraphTag, wt as MetaOpenGraphType, Ct as MetaRobots, Nt as MetaStatic, K as MetaTag, jt as MetaTwitter, kt as MetaTwitterCard, J as MetaTwitterTag, Ft as Query, Pt as QueryInstance, It as ResumableTimer, Lt as ScrollbarWidth, Xt as SearchList, Ut as SearchListData, Wt as SearchListItem, Jt as SearchListMatcher, Yt as SearchListOptions, E as ServerStorage, Qt as StorageCallback, rn as TRANSLATE_GLOBAL_PREFIX, an as TRANSLATE_TIME_OUT, cn as Translate, on as TranslateFile, sn as TranslateInstance, De as UI_GEO_COOKIE_KEY, mt as UrlInstanceAbstract, Y as UrlItem, Ht as addTagHighlightMatch, x as anyToString, tn as applyTemplate, ln as arrFill, mn as blobToBase64, hn as capitalize, Z as copyObject, gn as copyObjectLite, U as createElement, _n as domQuerySelector, vn as domQuerySelectorAll, W as encodeAttribute, me as encodeLiteAttribute, Sn as ensureMaxSize, X as escapeExp, Cn as eventStopPropagation, m as executeFunction, Ye as executePromise, r as forEach, wn as frame, Tn as getArrayHighlightMatch, En as getAttributes, Dn as getClipboardData, it as getColumn, On as getCurrentDate, kn as getCurrentTime, A as getElement, jn as getElementId, yn as getElementImage, bt as getElementItem, je as getElementOrWindow, he as getElementSafeScript, Kt as getExactSearchExp, Gt as getExp, Nn as getFirst, ge as getHydrationData, B as getItemByPath, Pn as getKey, Fn as getLength, In as getLengthOfAllArray, Ln as getMaxLengthAllArray, Rn as getMinLengthAllArray, Vn as getMouseClient, zn as getMouseClientX, Bn as getMouseClientY, Hn as getObjectByKeys, Un as getObjectNoUndefined, Wn as getObjectOrNone, Gn as getOnlyText, qn as getRandomText, o as getRequestString, qt as getSearchExp, Rt as getSeparatingSearchExp, Jn as getStepPercent, Yn as getStepValue, Zn as goScroll, Qn as goScrollSmooth, $n as goScrollTo, tr as handleShare, nr as inArray, Mn as initGetElementId, rr as initScrollbarOffset, ir as intersectKey, nn as isApiSuccess, i as isArray, ar as isDifferent, oe as isDomData, s as isDomRuntime, or as isElementVisible, cr as isEnter, l as isFilled, lr as isFloat, p as isFunction, Me as isInDom, sr as isInput, ur as isIntegerBetween, dr as isMetaKey, c as isNull, h as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, b as isSelected, fr as isSelectedByList, er as isShare, d as isString, pr as isTab, Ae as isWindow, f as random, mr as removeCommonPrefix, hr as replaceComponentName, $ as replaceRecursive, _r as replaceTemplate, xn as resizeImageByMax, vr as secondToTime, xt as setElementItem, yr as setValues, ee as sleep, br as splice, Kn as strFill, se as strSplit, j as toArray, ot as toCamelCase, xr as toCamelCaseFirst, I as toDate, Sr as toKebabCase, y as toNumber, Cr as toNumberByMax, Tr as toPercent, Er as toPercentBy100, a as toString, T as transformation, Dr as uint8ArrayToBase64, gr as uniqueArray, Or as writeClipboardData };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/functional-basic",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.2",
|
|
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,11 +69,11 @@
|
|
|
69
69
|
],
|
|
70
70
|
"main": "dist/library.js",
|
|
71
71
|
"module": "dist/library.js",
|
|
72
|
-
"types": "dist/
|
|
72
|
+
"types": "dist/library.d.ts",
|
|
73
73
|
"exports": {
|
|
74
74
|
".": {
|
|
75
75
|
"import": "./dist/library.js",
|
|
76
|
-
"types": "./dist/
|
|
76
|
+
"types": "./dist/library.d.ts"
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
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
|
|
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
|
|
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
|