react-js-plugins 3.10.0 → 3.12.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.
package/README.md
CHANGED
|
@@ -1360,11 +1360,26 @@ Returns the start and end datetime of a given date's month in specified format.
|
|
|
1360
1360
|
const { startTime, stopTime } = _getStartStopTime(new Date());
|
|
1361
1361
|
```
|
|
1362
1362
|
|
|
1363
|
-
### ✅ **
|
|
1364
|
-
|
|
1363
|
+
### ✅ **_convertLocalToUTC**
|
|
1364
|
+
|
|
1365
|
+
Converts a **local date/time** (your system timezone) into a **UTC ISO timestamp**.
|
|
1366
|
+
|
|
1365
1367
|
```ts
|
|
1366
|
-
const
|
|
1367
|
-
|
|
1368
|
+
const utc = _convertLocalToUTC("2022-11-24T17:45:50");
|
|
1369
|
+
|
|
1370
|
+
console.log(utc);
|
|
1371
|
+
// "2022-11-24T12:15:50.000Z"
|
|
1372
|
+
```
|
|
1373
|
+
|
|
1374
|
+
### ✅ **_convertUTCToLocal**
|
|
1375
|
+
|
|
1376
|
+
Converts a **UTC timestamp** (with or without `Z`) into a **local Date object** based on the system's timezone.
|
|
1377
|
+
|
|
1378
|
+
```ts
|
|
1379
|
+
const local = _convertUTCToLocal("2022-11-24T12:15:50Z");
|
|
1380
|
+
|
|
1381
|
+
console.log(local);
|
|
1382
|
+
// Mon Nov 24 2022 17:45:50 GMT+0530 (India Standard Time)
|
|
1368
1383
|
```
|
|
1369
1384
|
|
|
1370
1385
|
### ✅ **_globalizeDateTime**
|
|
@@ -34,7 +34,8 @@ export declare const _getStartStopTime: (sdate: Date, format?: string) => "Inval
|
|
|
34
34
|
startTime: string;
|
|
35
35
|
stopTime: string;
|
|
36
36
|
};
|
|
37
|
-
export declare const
|
|
37
|
+
export declare const _convertLocalToUTC: (date: any) => string;
|
|
38
|
+
export declare const _convertUTCToLocal: (utcString: any) => Date;
|
|
38
39
|
export declare function _globalizeDateTime(input: Date | string, options?: {
|
|
39
40
|
timeZone?: string;
|
|
40
41
|
format?: string;
|
|
@@ -316,36 +316,14 @@ export var _getStartStopTime = function (sdate, format) {
|
|
|
316
316
|
stopTime: moment(end).format(format)
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
|
-
export var
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
var monthIndex;
|
|
328
|
-
if (typeof month === "string") {
|
|
329
|
-
monthIndex = monthToIndex[month];
|
|
330
|
-
if (monthIndex === undefined) {
|
|
331
|
-
throw new Error("Invalid month name: ".concat(month));
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
else if (typeof month === "number") {
|
|
335
|
-
if (month >= 1 && month <= 12) {
|
|
336
|
-
monthIndex = month - 1;
|
|
337
|
-
}
|
|
338
|
-
else if (month >= 0 && month <= 11) {
|
|
339
|
-
monthIndex = month;
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
throw new Error("Invalid month number: ".concat(month));
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
else {
|
|
346
|
-
throw new Error("Month must be a string or number");
|
|
347
|
-
}
|
|
348
|
-
return Date.UTC(year, monthIndex, day, hour, minute, second);
|
|
319
|
+
export var _convertLocalToUTC = function (date) {
|
|
320
|
+
return new Date(date).toISOString();
|
|
321
|
+
};
|
|
322
|
+
export var _convertUTCToLocal = function (utcString) {
|
|
323
|
+
var normalized = /Z$|[+-]\d{2}:\d{2}$/.test(utcString)
|
|
324
|
+
? utcString
|
|
325
|
+
: utcString + "Z";
|
|
326
|
+
return new Date(normalized);
|
|
349
327
|
};
|
|
350
328
|
export function _globalizeDateTime(input, options) {
|
|
351
329
|
if (options === void 0) { options = {}; }
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FormRef, ValidationResult, FlattenedObject, ClassValue } from "../typesdts/types";
|
|
2
|
-
import * as Yup from 'yup';
|
|
3
2
|
export declare const _scrollToTop: () => void;
|
|
4
3
|
export declare const _batchProcess: <T>(data: T[], batchSize: number, processFn: (item: T) => Promise<void>) => Promise<void>;
|
|
5
4
|
export declare const _flattenObject: (obj: any, prefix?: string) => FlattenedObject;
|
|
@@ -64,8 +63,6 @@ export declare const _octetToBlob: (data: ArrayBuffer | Uint8Array | number[], m
|
|
|
64
63
|
export declare const _initializeFormValues: (fields: string[]) => {
|
|
65
64
|
[key: string]: any;
|
|
66
65
|
};
|
|
67
|
-
export declare const _dynamicRequiredValidation: (requiredFields: string[]) => Yup.ObjectSchema<any>;
|
|
68
|
-
export declare const _generateYupValidation: (fields: string[]) => Yup.ObjectSchema<any>;
|
|
69
66
|
export declare const _initializeFormikFields: (fields: string[]) => {
|
|
70
67
|
[key: string]: string;
|
|
71
68
|
};
|
|
@@ -96,4 +93,3 @@ export declare const _handleParentsMenu: (currentArr: any, menuID: string) => vo
|
|
|
96
93
|
export declare const _handleParentNode: (currentArr: any, menuID: string, permissionKey: string) => void;
|
|
97
94
|
export declare const _handleChildrenMenu: (currentArr: any, parentKey: any, checked: boolean) => void;
|
|
98
95
|
export declare const _handlePermissions: (currentArr: any, currentObj: any, permissionKey: string, isChecked: boolean) => any;
|
|
99
|
-
export declare const _isValidYupSchema: (schema: any) => boolean;
|
|
@@ -55,7 +55,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
55
55
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
56
56
|
};
|
|
57
57
|
import moment from "moment";
|
|
58
|
-
import * as Yup from 'yup';
|
|
59
58
|
import { _deepClone, isWindowReady } from "./chunk65431";
|
|
60
59
|
import { chunk } from "./chunk75342";
|
|
61
60
|
export var _scrollToTop = function () {
|
|
@@ -613,20 +612,6 @@ export var _initializeFormValues = function (fields) {
|
|
|
613
612
|
return acc;
|
|
614
613
|
}, {});
|
|
615
614
|
};
|
|
616
|
-
export var _dynamicRequiredValidation = function (requiredFields) {
|
|
617
|
-
var schema = {};
|
|
618
|
-
requiredFields.forEach(function (field) {
|
|
619
|
-
schema[field] = Yup.string().required("".concat(field, " is required"));
|
|
620
|
-
});
|
|
621
|
-
return Yup.object(schema);
|
|
622
|
-
};
|
|
623
|
-
export var _generateYupValidation = function (fields) {
|
|
624
|
-
var schema = {};
|
|
625
|
-
fields.forEach(function (field) {
|
|
626
|
-
schema[field] = Yup.string().required("".concat(field, " is required"));
|
|
627
|
-
});
|
|
628
|
-
return Yup.object(schema);
|
|
629
|
-
};
|
|
630
615
|
export var _initializeFormikFields = function (fields) {
|
|
631
616
|
return fields.reduce(function (acc, field) {
|
|
632
617
|
acc[field] = ''; // set default value for each field
|
|
@@ -893,6 +878,3 @@ export var _handlePermissions = function (currentArr, currentObj, permissionKey,
|
|
|
893
878
|
return obj;
|
|
894
879
|
});
|
|
895
880
|
};
|
|
896
|
-
export var _isValidYupSchema = function (schema) {
|
|
897
|
-
return Yup.isSchema(schema);
|
|
898
|
-
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import 'nprogress/nprogress.css';
|
|
|
2
2
|
import { LazyLoader } from './chunkautils/chunk23111';
|
|
3
3
|
import { _isNotEmpty, _isLeapYear, _isWeekend, _removeFalsy, _escapeHTML, _handleApi, _handleSafe, _clearRouteState, _UUID } from "./chunkautils/chunk22123";
|
|
4
4
|
import { createAxiosInstance } from "./chunkautils/chunk83454";
|
|
5
|
-
import { _alert, _capitalize, _confirm, _convertToCurrency, _decodeURI, _deepClone, _decryptJson, _decryptString, _dynamicReducer, _encodeURI, _encryptJson, _encryptString, _exportExcel, _flattenArray, _flattenArrayByKey, _findExactRoute, _generatePassword, _genericReducer, _getBrowserInfo, _getCookie, _getFinancialYear, _getStartStopTime, _getStorage,
|
|
5
|
+
import { _alert, _capitalize, _confirm, _convertToCurrency, _decodeURI, _deepClone, _decryptJson, _decryptString, _dynamicReducer, _encodeURI, _encryptJson, _encryptString, _exportExcel, _flattenArray, _flattenArrayByKey, _findExactRoute, _generatePassword, _genericReducer, _getBrowserInfo, _getCookie, _getFinancialYear, _getStartStopTime, _getStorage, _globalizeDateTime, _formatInternationalDate, _hasElement, _hasItem, _importExcel, _isEmptyArray, _isEmptyObject, _isEqual, _isMobile, _mapObject, _mergeObjects, _parseJSON, _sleep, _promise, _setCookie, _stringifyJSON, _thousandSeparator, _decrypt, _encrypt, _encryptData, _decryptData, _convertLocalToUTC, _convertUTCToLocal } from "./chunkautils/chunk65431";
|
|
6
6
|
import { _addEventListenerToElement, _allowAlphaKeys, _allowAlphaNumericKeys, _allowDecimalKeys, _clearNode, _cloneElement, _copyText, _domSelector, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _getChildElements, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getParent, _handlePasteAlphabetKeys, _handlePasteDecimalKeys, _hideElement, _insertHTML, _isDocumentLoaded, _isElementInViewport, _isElementPresent, _isValidBase64, _isValidBlob, _isValidBoolean, _isValidCreditCard, _isValidDate, _isValidDateObject, _isValidDateRange, _isValidDateString, _isValidDateTime, _isValidEmail, _isValidEvent, _isValidFile, _isValidFormData, _isValidFunction, _isValidHexColor, _isValidHTMLElement, _isValidIP, _isValidJSON, _isValidMacAddress, _isValidNode, _isValidNodeList, _isValidNumber, _isValidPassword, _isValidPhoneNumber, _isValidPromise, _isValidRegExp, _isValidString, _isValidTime, _isValidURL, _isValidURLSearchParams, _isValidUUID, _log, _pasteText, _reloadAfterLoad, _removeAllChildren, _removeElement, _removeDuplicateByKey, _removeElementAttribute, _removeEventListenerFromElement, _removeNode, _removeSafeElement, _replaceContent, _runOnIframeLoad, _sanitizeArray, _scrollToElement, _setElementAttribute, _setElementDisabled, _setMultipleStyles, _showElement, _snipDecimals, _throwError, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad } from "./chunkautils/chunk75342";
|
|
7
|
-
import { _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _calPercentage, _chunk, _dateFormat, _dateTransformer, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _downloadBase64File, _downloadBlob, _downloadFile,
|
|
7
|
+
import { _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _calPercentage, _chunk, _dateFormat, _dateTransformer, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _downloadBase64File, _downloadBlob, _downloadFile, _escapeRegExpMatch, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterDuplicates, _filterObjectByKey, _findObjectById, _flattenObject, _formatDate, _localeDateFormat, _freeze, _getArrayOfObjectsByProperty, _getKeyByValue, _getKeysByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getPriceAfterTax, _getScrollPosition, _getUniqueValues, _getValueByKey, _groupBy, _handleChildrenMenu, _handleParentNode, _handleParentsMenu, _handlePermissions, _initializeFormValues, _initializeFormikFields, _isExactMatch, _isFreeze, _isInArray, _isSeal, _isValidForm, _mapAsync, _mergeArrays, _mergeArraysByKey, _objectToArray, _removeDuplicates, _scrollToTop, _seal, _setNestedProperty, _setTouchedFields, _sortByKey, _swapArrayByKey, _swapArrayElements, _toCamelCase, _transformArray, _transformAsyncData, _updateObjectInArray, _validateFormRef, _combineClasses, _octetToBlob, _uint8ArrayToBlob } from './chunkautils/chunk83453';
|
|
8
8
|
import { _disableDevTools, _isTruncate, _toTitleCase, _truncateText } from './chunkautils/chunk21211';
|
|
9
9
|
import { _getCurrentPath, _getCurrentState, _getLocation, _getTypedState, _go, _goBack, _goForward, _navigate } from './chunkautils/chunk22523';
|
|
10
10
|
import { _injectCSS } from './chunkautils/chunk91172';
|
|
11
|
-
export { LazyLoader, createAxiosInstance, _addEventListenerToElement, _alert, _allowAlphaKeys, _allowAlphaNumericKeys, _allowDecimalKeys, _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _combineClasses, _clearRouteState, _calPercentage, _capitalize, _chunk, _clearNode, _cloneElement, _confirm, _convertToCurrency, _copyText, _dateFormat, _dateTransformer, _decodeURI, _deepClone, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _decryptJson, _decrypt, _decryptString, _decryptData, _domSelector, _disableDevTools, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicReducer,
|
|
11
|
+
export { LazyLoader, createAxiosInstance, _addEventListenerToElement, _alert, _allowAlphaKeys, _allowAlphaNumericKeys, _allowDecimalKeys, _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _combineClasses, _clearRouteState, _calPercentage, _capitalize, _chunk, _clearNode, _cloneElement, _confirm, _convertToCurrency, _convertLocalToUTC, _convertUTCToLocal, _copyText, _dateFormat, _dateTransformer, _decodeURI, _deepClone, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _decryptJson, _decrypt, _decryptString, _decryptData, _domSelector, _disableDevTools, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicReducer, _encodeURI, _encryptJson, _encrypt, _encryptString, _encryptData, _escapeRegExpMatch, _exportExcel, _escapeHTML, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _filterDuplicates, _filterObjectByKey, _findExactRoute, _findObjectById, _flattenArray, _flattenArrayByKey, _flattenObject, _formatDate, _localeDateFormat, _globalizeDateTime, _formatInternationalDate, _freeze, _generatePassword, _genericReducer, _getArrayOfObjectsByProperty, _getBrowserInfo, _getChildElements, _getCookie, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getFinancialYear, _getKeysByValue, _getKeyByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getParent, _getPriceAfterTax, _getScrollPosition, _getStartStopTime, _getStorage, _getUniqueValues, _getValueByKey, _groupBy, _go, _goBack, _goForward, _getCurrentPath, _getCurrentState, _getLocation, _getTypedState, _handleApi, _handleSafe, _handleChildrenMenu, _handleParentNode, _handleParentsMenu, _handlePasteAlphabetKeys, _handlePasteDecimalKeys, _handlePermissions, _hasElement, _hasItem, _hideElement, _importExcel, _initializeFormikFields, _initializeFormValues, _insertHTML, _injectCSS, _isLeapYear, _isWeekend, _isTruncate, _isDocumentLoaded, _isElementInViewport, _isElementPresent, _isNotEmpty, _isEmptyArray, _isEmptyObject, _isEqual, _isExactMatch, _isFreeze, _isInArray, _isMobile, _isSeal, _isValidBase64, _isValidBlob, _isValidBoolean, _isValidCreditCard, _isValidDate, _isValidDateObject, _isValidDateRange, _isValidDateString, _isValidDateTime, _isValidEmail, _isValidEvent, _isValidFile, _isValidForm, _isValidFormData, _isValidFunction, _isValidHTMLElement, _isValidHexColor, _isValidIP, _isValidJSON, _isValidMacAddress, _isValidNode, _isValidNodeList, _isValidNumber, _isValidPassword, _isValidPhoneNumber, _isValidPromise, _isValidRegExp, _isValidString, _isValidTime, _isValidURL, _isValidURLSearchParams, _isValidUUID, _log, _mapAsync, _mapObject, _mergeArrays, _mergeArraysByKey, _mergeObjects, _navigate, _objectToArray, _parseJSON, _pasteText, _promise, _reloadAfterLoad, _removeAllChildren, _removeDuplicates, _removeDuplicateByKey, _removeElement, _removeElementAttribute, _removeEventListenerFromElement, _removeNode, _removeFalsy, _removeSafeElement, _replaceContent, _runOnIframeLoad, _sanitizeArray, _scrollToElement, _scrollToTop, _sleep, _seal, _setCookie, _setElementAttribute, _setElementDisabled, _setMultipleStyles, _setNestedProperty, _setTouchedFields, _showElement, _snipDecimals, _sortByKey, _stringifyJSON, _swapArrayByKey, _swapArrayElements, _thousandSeparator, _throwError, _toCamelCase, _truncateText, _toTitleCase, _transformArray, _transformAsyncData, _uint8ArrayToBlob, _updateObjectInArray, _UUID, _validateFormRef, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad, _octetToBlob, };
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import 'nprogress/nprogress.css';
|
|
|
2
2
|
import { LazyLoader } from './chunkautils/chunk23111';
|
|
3
3
|
import { _isNotEmpty, _isLeapYear, _isWeekend, _removeFalsy, _escapeHTML, _handleApi, _handleSafe, _clearRouteState, _UUID } from "./chunkautils/chunk22123";
|
|
4
4
|
import { createAxiosInstance } from "./chunkautils/chunk83454";
|
|
5
|
-
import { _alert, _capitalize, _confirm, _convertToCurrency, _decodeURI, _deepClone, _decryptJson, _decryptString, _dynamicReducer, _encodeURI, _encryptJson, _encryptString, _exportExcel, _flattenArray, _flattenArrayByKey, _findExactRoute, _generatePassword, _genericReducer, _getBrowserInfo, _getCookie, _getFinancialYear, _getStartStopTime, _getStorage,
|
|
5
|
+
import { _alert, _capitalize, _confirm, _convertToCurrency, _decodeURI, _deepClone, _decryptJson, _decryptString, _dynamicReducer, _encodeURI, _encryptJson, _encryptString, _exportExcel, _flattenArray, _flattenArrayByKey, _findExactRoute, _generatePassword, _genericReducer, _getBrowserInfo, _getCookie, _getFinancialYear, _getStartStopTime, _getStorage, _globalizeDateTime, _formatInternationalDate, _hasElement, _hasItem, _importExcel, _isEmptyArray, _isEmptyObject, _isEqual, _isMobile, _mapObject, _mergeObjects, _parseJSON, _sleep, _promise, _setCookie, _stringifyJSON, _thousandSeparator, _decrypt, _encrypt, _encryptData, _decryptData, _convertLocalToUTC, _convertUTCToLocal } from "./chunkautils/chunk65431";
|
|
6
6
|
import { _addEventListenerToElement, _allowAlphaKeys, _allowAlphaNumericKeys, _allowDecimalKeys, _clearNode, _cloneElement, _copyText, _domSelector, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _getChildElements, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getParent, _handlePasteAlphabetKeys, _handlePasteDecimalKeys, _hideElement, _insertHTML, _isDocumentLoaded, _isElementInViewport, _isElementPresent, _isValidBase64, _isValidBlob, _isValidBoolean, _isValidCreditCard, _isValidDate, _isValidDateObject, _isValidDateRange, _isValidDateString, _isValidDateTime, _isValidEmail, _isValidEvent, _isValidFile, _isValidFormData, _isValidFunction, _isValidHexColor, _isValidHTMLElement, _isValidIP, _isValidJSON, _isValidMacAddress, _isValidNode, _isValidNodeList, _isValidNumber, _isValidPassword, _isValidPhoneNumber, _isValidPromise, _isValidRegExp, _isValidString, _isValidTime, _isValidURL, _isValidURLSearchParams, _isValidUUID, _log, _pasteText, _reloadAfterLoad, _removeAllChildren, _removeElement, _removeDuplicateByKey, _removeElementAttribute, _removeEventListenerFromElement, _removeNode, _removeSafeElement, _replaceContent, _runOnIframeLoad, _sanitizeArray, _scrollToElement, _setElementAttribute, _setElementDisabled, _setMultipleStyles, _showElement, _snipDecimals, _throwError, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad, } from "./chunkautils/chunk75342";
|
|
7
|
-
import { _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _calPercentage, _chunk, _dateFormat, _dateTransformer, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _downloadBase64File, _downloadBlob, _downloadFile,
|
|
7
|
+
import { _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _calPercentage, _chunk, _dateFormat, _dateTransformer, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _downloadBase64File, _downloadBlob, _downloadFile, _escapeRegExpMatch, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterDuplicates, _filterObjectByKey, _findObjectById, _flattenObject, _formatDate, _localeDateFormat, _freeze, _getArrayOfObjectsByProperty, _getKeyByValue, _getKeysByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getPriceAfterTax, _getScrollPosition, _getUniqueValues, _getValueByKey, _groupBy, _handleChildrenMenu, _handleParentNode, _handleParentsMenu, _handlePermissions, _initializeFormValues, _initializeFormikFields, _isExactMatch, _isFreeze, _isInArray, _isSeal, _isValidForm, _mapAsync, _mergeArrays, _mergeArraysByKey, _objectToArray, _removeDuplicates, _scrollToTop, _seal, _setNestedProperty, _setTouchedFields, _sortByKey, _swapArrayByKey, _swapArrayElements, _toCamelCase, _transformArray, _transformAsyncData, _updateObjectInArray, _validateFormRef, _combineClasses, _octetToBlob, _uint8ArrayToBlob } from './chunkautils/chunk83453';
|
|
8
8
|
import { _disableDevTools, _isTruncate, _toTitleCase, _truncateText } from './chunkautils/chunk21211';
|
|
9
9
|
import { _getCurrentPath, _getCurrentState, _getLocation, _getTypedState, _go, _goBack, _goForward, _navigate } from './chunkautils/chunk22523';
|
|
10
10
|
import { _injectCSS } from './chunkautils/chunk91172';
|
|
11
|
-
export { LazyLoader, createAxiosInstance, _addEventListenerToElement, _alert, _allowAlphaKeys, _allowAlphaNumericKeys, _allowDecimalKeys, _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _combineClasses, _clearRouteState, _calPercentage, _capitalize, _chunk, _clearNode, _cloneElement, _confirm, _convertToCurrency, _copyText, _dateFormat, _dateTransformer, _decodeURI, _deepClone, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _decryptJson, _decrypt, _decryptString, _decryptData, _domSelector, _disableDevTools, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicReducer,
|
|
11
|
+
export { LazyLoader, createAxiosInstance, _addEventListenerToElement, _alert, _allowAlphaKeys, _allowAlphaNumericKeys, _allowDecimalKeys, _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _combineClasses, _clearRouteState, _calPercentage, _capitalize, _chunk, _clearNode, _cloneElement, _confirm, _convertToCurrency, _convertLocalToUTC, _convertUTCToLocal, _copyText, _dateFormat, _dateTransformer, _decodeURI, _deepClone, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _decryptJson, _decrypt, _decryptString, _decryptData, _domSelector, _disableDevTools, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicReducer, _encodeURI, _encryptJson, _encrypt, _encryptString, _encryptData, _escapeRegExpMatch, _exportExcel, _escapeHTML, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _filterDuplicates, _filterObjectByKey, _findExactRoute, _findObjectById, _flattenArray, _flattenArrayByKey, _flattenObject, _formatDate, _localeDateFormat, _globalizeDateTime, _formatInternationalDate, _freeze, _generatePassword, _genericReducer, _getArrayOfObjectsByProperty, _getBrowserInfo, _getChildElements, _getCookie, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getFinancialYear, _getKeysByValue, _getKeyByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getParent, _getPriceAfterTax, _getScrollPosition, _getStartStopTime, _getStorage, _getUniqueValues, _getValueByKey, _groupBy, _go, _goBack, _goForward, _getCurrentPath, _getCurrentState, _getLocation, _getTypedState, _handleApi, _handleSafe, _handleChildrenMenu, _handleParentNode, _handleParentsMenu, _handlePasteAlphabetKeys, _handlePasteDecimalKeys, _handlePermissions, _hasElement, _hasItem, _hideElement, _importExcel, _initializeFormikFields, _initializeFormValues, _insertHTML, _injectCSS, _isLeapYear, _isWeekend, _isTruncate, _isDocumentLoaded, _isElementInViewport, _isElementPresent, _isNotEmpty, _isEmptyArray, _isEmptyObject, _isEqual, _isExactMatch, _isFreeze, _isInArray, _isMobile, _isSeal, _isValidBase64, _isValidBlob, _isValidBoolean, _isValidCreditCard, _isValidDate, _isValidDateObject, _isValidDateRange, _isValidDateString, _isValidDateTime, _isValidEmail, _isValidEvent, _isValidFile, _isValidForm, _isValidFormData, _isValidFunction, _isValidHTMLElement, _isValidHexColor, _isValidIP, _isValidJSON, _isValidMacAddress, _isValidNode, _isValidNodeList, _isValidNumber, _isValidPassword, _isValidPhoneNumber, _isValidPromise, _isValidRegExp, _isValidString, _isValidTime, _isValidURL, _isValidURLSearchParams, _isValidUUID, _log, _mapAsync, _mapObject, _mergeArrays, _mergeArraysByKey, _mergeObjects, _navigate, _objectToArray, _parseJSON, _pasteText, _promise, _reloadAfterLoad, _removeAllChildren, _removeDuplicates, _removeDuplicateByKey, _removeElement, _removeElementAttribute, _removeEventListenerFromElement, _removeNode, _removeFalsy, _removeSafeElement, _replaceContent, _runOnIframeLoad, _sanitizeArray, _scrollToElement, _scrollToTop, _sleep, _seal, _setCookie, _setElementAttribute, _setElementDisabled, _setMultipleStyles, _setNestedProperty, _setTouchedFields, _showElement, _snipDecimals, _sortByKey, _stringifyJSON, _swapArrayByKey, _swapArrayElements, _thousandSeparator, _throwError, _toCamelCase, _truncateText, _toTitleCase, _transformArray, _transformAsyncData, _uint8ArrayToBlob, _updateObjectInArray, _UUID, _validateFormRef, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad, _octetToBlob, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-js-plugins",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "A powerful and efficient React utility library designed to enhance application performance by streamlining and simplifying the management of complex asynchronous operations.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -43,8 +43,7 @@
|
|
|
43
43
|
"react": "^18.3.1",
|
|
44
44
|
"react-error-boundary": "^4.0.13",
|
|
45
45
|
"sweetalert2": "^11.17.2",
|
|
46
|
-
"xlsx": "^0.18.5"
|
|
47
|
-
"yup": "^1.4.0"
|
|
46
|
+
"xlsx": "^0.18.5"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
50
49
|
"@types/crypto-js": "^4.2.2",
|