react-js-plugins 2.0.6 → 2.0.8

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
@@ -24,6 +24,8 @@ pnpm add react-js-plugins
24
24
  | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
25
25
  | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
26
26
 
27
+ ### **Documentation Site in Progress...**
28
+ *We're building an enhanced documentation experience with better navigation and examples. Coming soon!*
27
29
 
28
30
  ## Array Functions
29
31
 
@@ -164,6 +166,12 @@ Flattens nested arrays by recursively extracting `item.data` if present.
164
166
  const flat = _flattenArray(nestedArray);
165
167
  ```
166
168
 
169
+ ### ✅ **_flattenArrayByKey**
170
+ Flattens an array of objects by extracting and combining values from a specified key.
171
+ ```ts
172
+ _flattenArrayByKey([{ id: 1, items: ['a', 'b'] }, { id: 2, items: ['c'] }], 'items');
173
+ // ['a', 'b', 'c']
174
+ ```
167
175
  ### ✅ **_getArrayOfObjectsByProperty**
168
176
  Returns all objects with a specific property value.
169
177
  ```ts
@@ -674,7 +682,12 @@ Checks if a string is a valid UUID (v1 to v5).
674
682
  const isValid = _isValidUUID('550e8400-e29b-41d4-a716-446655440000');
675
683
  ```
676
684
 
677
- ---
685
+ ### ✅ **_isTruncate**
686
+ Checks if text would be truncated based on the character limit.
687
+ ```ts
688
+ _isTruncate('This is a long text example', 10);
689
+ // Returns: true
690
+ ```
678
691
 
679
692
  ## Security & Encryption Functions
680
693
 
@@ -1038,12 +1051,69 @@ const handleChangeFile = async (file) => {
1038
1051
 
1039
1052
  ## Browser & Storage Functions
1040
1053
 
1054
+ ### ✅ **_navigate**
1055
+ Navigates to a new path with optional state and replace behavior.
1056
+ ```ts
1057
+ _navigate('/about', { state: { user: 'sia' }, replace: true });
1058
+ ```
1059
+
1060
+ ### ✅ **_go**
1061
+ Navigates through the history stack by a specified number of steps.
1062
+ ```ts
1063
+ _go(-2); // Go back 2 pages
1064
+ _go(1); // Go forward 1 page
1065
+ ```
1066
+
1067
+ ### ✅ **_goBack**
1068
+ Navigates to the previous page in history.
1069
+ ```ts
1070
+ _goBack(); // Equivalent to browser back button
1071
+ ```
1072
+
1073
+ ### ✅ **_goForward**
1074
+ Navigates to the next page in history.
1075
+ ```ts
1076
+ _goForward(); // Equivalent to browser forward button
1077
+ ```
1078
+
1079
+ ### ✅ **_getCurrentPath**
1080
+ Returns the current pathname from the navigation state.
1081
+ ```ts
1082
+ _getCurrentPath(); // e.g., "/about"
1083
+ ```
1084
+
1085
+ ### ✅ **_getCurrentState**
1086
+ Returns the current navigation state object.
1087
+ ```ts
1088
+ _getCurrentState(); // e.g., { user: 'sia' }
1089
+ ```
1090
+
1091
+ ### ✅ **_getLocation**
1092
+ Returns both the current path and state as an object.
1093
+ ```ts
1094
+ _getLocation(); // e.g., { pathname: "/about", state: { user: 'sia' } }
1095
+ ```
1096
+
1097
+ ### ✅ **_getTypedState**
1098
+ Returns the current navigation state with TypeScript type safety.
1099
+ ```ts
1100
+ interface UserState { name: string; age: number; }
1101
+ _getTypedState<UserState>(); // Returns typed state or null
1102
+ ```
1103
+
1041
1104
  ### ✅ **_clearRouteState**
1042
1105
  Removes the route state from the browser's history without reloading the page, keeping the current path intact.
1043
1106
  ```ts
1044
1107
  _clearRouteState('/dashboard');
1045
1108
  ```
1046
1109
 
1110
+ ### ✅ **_findExactRoute**
1111
+ Finds an exact route match from an array of routes based on a pathname.
1112
+ ```ts
1113
+ _findExactRoute([{ path: '/users' }, { path: '/users/:id' }], '/users/123');
1114
+ // { path: '/users/:id' }
1115
+ ```
1116
+
1047
1117
  ### ✅ **_copyText**
1048
1118
  Copies the provided text to the clipboard, using modern APIs with a fallback for older browsers.
1049
1119
  ```ts
@@ -1115,6 +1185,13 @@ Capitalizes the first character of a string.
1115
1185
  const name = _capitalize("john"); // "John"
1116
1186
  ```
1117
1187
 
1188
+ ### ✅ **_truncateText**
1189
+ Truncates text to a specified character limit and adds ellipsis if truncated.
1190
+ ```ts
1191
+ _truncateText('This is a long text example', 10);
1192
+ // Returns: "This is a…"
1193
+ ```
1194
+
1118
1195
  ### ✅ **_countWords**
1119
1196
  Counts the number of words in a string by trimming whitespace and splitting by spaces.
1120
1197
  ```ts
@@ -0,0 +1,3 @@
1
+ export declare function _truncateText(text: string, limit?: number): string;
2
+ export declare function _isTruncate(text: string, limit?: number): boolean;
3
+ export declare function _toTitleCase(text: string): string;
@@ -0,0 +1,19 @@
1
+ export function _truncateText(text, limit) {
2
+ if (limit === void 0) { limit = 20; }
3
+ if (!text)
4
+ return "";
5
+ return text.length > limit ? text.slice(0, limit) + "…" : text;
6
+ }
7
+ export function _isTruncate(text, limit) {
8
+ if (limit === void 0) { limit = 20; }
9
+ return !!text && text.length > limit;
10
+ }
11
+ export function _toTitleCase(text) {
12
+ if (!text)
13
+ return "";
14
+ return text
15
+ .toLowerCase()
16
+ .split(' ')
17
+ .map(function (word) { return word.charAt(0).toUpperCase() + word.slice(1); })
18
+ .join(' ');
19
+ }
@@ -0,0 +1,26 @@
1
+ interface NavigateOptions {
2
+ replace?: boolean;
3
+ state?: Record<string, any> | null;
4
+ }
5
+ interface Location {
6
+ pathname: string;
7
+ state: Record<string, any> | null;
8
+ }
9
+ interface LocationChangeEventDetail {
10
+ path: string;
11
+ state: Record<string, any> | null;
12
+ }
13
+ declare global {
14
+ interface WindowEventMap {
15
+ locationchange: CustomEvent<LocationChangeEventDetail>;
16
+ }
17
+ }
18
+ export declare const _navigate: (path: string, options?: NavigateOptions) => void;
19
+ export declare const _go: (delta: number) => void;
20
+ export declare const _goBack: () => void;
21
+ export declare const _goForward: () => void;
22
+ export declare const _getCurrentPath: () => string;
23
+ export declare const _getCurrentState: () => Record<string, any> | null;
24
+ export declare const _getLocation: () => Location;
25
+ export declare const _getTypedState: <T extends Record<string, any>>() => T | null;
26
+ export {};
@@ -0,0 +1,51 @@
1
+ var currentState = null;
2
+ var currentPath = window.location.pathname;
3
+ // Listen for browser navigation (back/forward buttons)
4
+ window.addEventListener('popstate', function (event) {
5
+ var state = event.state || {};
6
+ currentPath = window.location.pathname;
7
+ currentState = state.state || null;
8
+ // Trigger custom event for other parts of your app to listen to
9
+ window.dispatchEvent(new CustomEvent('locationchange', {
10
+ detail: { path: currentPath, state: currentState }
11
+ }));
12
+ });
13
+ export var _navigate = function (path, options) {
14
+ if (options === void 0) { options = {}; }
15
+ var _a = options.replace, replace = _a === void 0 ? false : _a, _b = options.state, state = _b === void 0 ? null : _b;
16
+ // Create history state object
17
+ var historyState = { state: state, path: path };
18
+ if (replace) {
19
+ window.history.replaceState(historyState, '', path);
20
+ }
21
+ else {
22
+ window.history.pushState(historyState, '', path);
23
+ }
24
+ // Update global state
25
+ currentPath = path;
26
+ currentState = state;
27
+ // Notify other parts of the application
28
+ window.dispatchEvent(new CustomEvent('locationchange', {
29
+ detail: { path: path, state: state }
30
+ }));
31
+ };
32
+ export var _go = function (delta) {
33
+ window.history.go(delta);
34
+ };
35
+ export var _goBack = function () {
36
+ window.history.back();
37
+ };
38
+ export var _goForward = function () {
39
+ window.history.forward();
40
+ };
41
+ export var _getCurrentPath = function () { return currentPath; };
42
+ export var _getCurrentState = function () { return currentState; };
43
+ // Helper function to get both path and state
44
+ export var _getLocation = function () { return ({
45
+ pathname: currentPath,
46
+ state: currentState
47
+ }); };
48
+ // Optional: Type-safe state access with generic
49
+ export var _getTypedState = function () {
50
+ return currentState;
51
+ };
@@ -67,6 +67,8 @@ export declare const _sleep: (time: number) => Promise<unknown>;
67
67
  export declare const _hasItem: (menuItems: MenuItem[], path: string, key?: string) => any | null;
68
68
  export declare const _hasElement: (arr: MenuItem[], key: string, value: any) => any | null;
69
69
  export declare const _flattenArray: (arr: any[]) => any[];
70
+ export declare const _flattenArrayByKey: (arr: any[], key?: string) => any[];
71
+ export declare const _findExactRoute: (routes: any[], pathname: string) => any | undefined;
70
72
  export declare const _dynamicReducer: (initialState: any) => (state: any, action: any) => any;
71
73
  export declare const _genericReducer: <State, Action extends {
72
74
  type: string;
@@ -681,6 +681,25 @@ export var _flattenArray = function (arr) {
681
681
  }
682
682
  return result;
683
683
  };
684
+ export var _flattenArrayByKey = function (arr, key) {
685
+ if (key === void 0) { key = "data"; }
686
+ if (!arr)
687
+ return [];
688
+ var result = [];
689
+ for (var _i = 0, arr_3 = arr; _i < arr_3.length; _i++) {
690
+ var item = arr_3[_i];
691
+ if (item && Array.isArray(item[key]) && item[key].length) {
692
+ result.push.apply(result, _flattenArrayByKey(item[key], key));
693
+ }
694
+ else {
695
+ result.push(item);
696
+ }
697
+ }
698
+ return result;
699
+ };
700
+ export var _findExactRoute = function (routes, pathname) {
701
+ return routes.find(function (r) { return pathname === r.path; });
702
+ };
684
703
  var genericActionHandler = function (state, action) {
685
704
  var _a;
686
705
  var key = action.type;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,9 @@ import 'nprogress/nprogress.css';
2
2
  import { LazyLoader } from './chunkautils/chunk23111';
3
3
  import { _isNotEmpty, _generateUUID, _isLeapYear, _isWeekend, _removeFalsy, _escapeHTML, _handleApi, _handleSafe, _clearRouteState } from "./chunkautils/chunk22123";
4
4
  import { createPrivateInstance, createPublicInstance } from "./chunkautils/chunk83454";
5
- import { _alert, _capitalize, _confirm, _convertToCurrency, _decodeURI, _deepClone, _decryptJson, _decryptString, _dynamicReducer, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _exportExcel, _flattenArray, _generatePassword, _genericReducer, _getBrowserInfo, _getCookie, _getFinancialYear, _getStartStopTime, _getStorage, _getUTCTimestamp, _globalizeDateTime, _formatInternationalDate, _hasElement, _hasItem, _importExcel, _isEmptyArray, _isEmptyObject, _isEqual, _isMobile, _mapObject, _mergeObjects, _parseJSON, _sleep, _promise, _setCookie, _stringifyJSON, _thousandSeparator } from "./chunkautils/chunk65431";
5
+ import { _alert, _capitalize, _confirm, _convertToCurrency, _decodeURI, _deepClone, _decryptJson, _decryptString, _dynamicReducer, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _exportExcel, _flattenArray, _flattenArrayByKey, _findExactRoute, _generatePassword, _genericReducer, _getBrowserInfo, _getCookie, _getFinancialYear, _getStartStopTime, _getStorage, _getUTCTimestamp, _globalizeDateTime, _formatInternationalDate, _hasElement, _hasItem, _importExcel, _isEmptyArray, _isEmptyObject, _isEqual, _isMobile, _mapObject, _mergeObjects, _parseJSON, _sleep, _promise, _setCookie, _stringifyJSON, _thousandSeparator } 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
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, _dynamicRequiredValidation, _escapeRegExpMatch, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterDuplicates, _filterObjectByKey, _findObjectById, _flattenObject, _formatDate, _localeDateFormat, _freeze, _generateYupValidation, _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 } from './chunkautils/chunk83453';
8
- export { LazyLoader, createPrivateInstance, createPublicInstance, _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, _decryptString, _domSelector, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicReducer, _dynamicRequiredValidation, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _escapeRegExpMatch, _exportExcel, _escapeHTML, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _filterDuplicates, _filterObjectByKey, _findObjectById, _flattenArray, _flattenObject, _formatDate, _localeDateFormat, _globalizeDateTime, _formatInternationalDate, _freeze, _generateUUID, _generatePassword, _generateYupValidation, _genericReducer, _getArrayOfObjectsByProperty, _getBrowserInfo, _getChildElements, _getCookie, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getFinancialYear, _getKeysByValue, _getKeyByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getParent, _getPriceAfterTax, _getScrollPosition, _getStartStopTime, _getStorage, _getUTCTimestamp, _getUniqueValues, _getValueByKey, _groupBy, _handleApi, _handleSafe, _handleChildrenMenu, _handleParentNode, _handleParentsMenu, _handlePasteAlphabetKeys, _handlePasteDecimalKeys, _handlePermissions, _hasElement, _hasItem, _hideElement, _importExcel, _initializeFormikFields, _initializeFormValues, _insertHTML, _isLeapYear, _isWeekend, _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, _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, _transformArray, _transformAsyncData, _updateObjectInArray, _validateFormRef, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad };
8
+ import { _isTruncate, _toTitleCase, _truncateText } from './chunkautils/chunk21211';
9
+ import { _getCurrentPath, _getCurrentState, _getLocation, _getTypedState, _go, _goBack, _goForward, _navigate } from './chunkautils/chunk22523';
10
+ export { LazyLoader, createPrivateInstance, createPublicInstance, _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, _decryptString, _domSelector, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicReducer, _dynamicRequiredValidation, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _escapeRegExpMatch, _exportExcel, _escapeHTML, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _filterDuplicates, _filterObjectByKey, _findExactRoute, _findObjectById, _flattenArray, _flattenArrayByKey, _flattenObject, _formatDate, _localeDateFormat, _globalizeDateTime, _formatInternationalDate, _freeze, _generateUUID, _generatePassword, _generateYupValidation, _genericReducer, _getArrayOfObjectsByProperty, _getBrowserInfo, _getChildElements, _getCookie, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getFinancialYear, _getKeysByValue, _getKeyByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getParent, _getPriceAfterTax, _getScrollPosition, _getStartStopTime, _getStorage, _getUTCTimestamp, _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, _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, _updateObjectInArray, _validateFormRef, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad };
package/dist/index.js CHANGED
@@ -2,7 +2,9 @@ import 'nprogress/nprogress.css';
2
2
  import { LazyLoader } from './chunkautils/chunk23111';
3
3
  import { _isNotEmpty, _generateUUID, _isLeapYear, _isWeekend, _removeFalsy, _escapeHTML, _handleApi, _handleSafe, _clearRouteState } from "./chunkautils/chunk22123";
4
4
  import { createPrivateInstance, createPublicInstance } from "./chunkautils/chunk83454";
5
- import { _alert, _capitalize, _confirm, _convertToCurrency, _decodeURI, _deepClone, _decryptJson, _decryptString, _dynamicReducer, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _exportExcel, _flattenArray, _generatePassword, _genericReducer, _getBrowserInfo, _getCookie, _getFinancialYear, _getStartStopTime, _getStorage, _getUTCTimestamp, _globalizeDateTime, _formatInternationalDate, _hasElement, _hasItem, _importExcel, _isEmptyArray, _isEmptyObject, _isEqual, _isMobile, _mapObject, _mergeObjects, _parseJSON, _sleep, _promise, _setCookie, _stringifyJSON, _thousandSeparator } from "./chunkautils/chunk65431";
5
+ import { _alert, _capitalize, _confirm, _convertToCurrency, _decodeURI, _deepClone, _decryptJson, _decryptString, _dynamicReducer, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _exportExcel, _flattenArray, _flattenArrayByKey, _findExactRoute, _generatePassword, _genericReducer, _getBrowserInfo, _getCookie, _getFinancialYear, _getStartStopTime, _getStorage, _getUTCTimestamp, _globalizeDateTime, _formatInternationalDate, _hasElement, _hasItem, _importExcel, _isEmptyArray, _isEmptyObject, _isEqual, _isMobile, _mapObject, _mergeObjects, _parseJSON, _sleep, _promise, _setCookie, _stringifyJSON, _thousandSeparator } 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
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, _dynamicRequiredValidation, _escapeRegExpMatch, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterDuplicates, _filterObjectByKey, _findObjectById, _flattenObject, _formatDate, _localeDateFormat, _freeze, _generateYupValidation, _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 } from './chunkautils/chunk83453';
8
- export { LazyLoader, createPrivateInstance, createPublicInstance, _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, _decryptString, _domSelector, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicReducer, _dynamicRequiredValidation, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _escapeRegExpMatch, _exportExcel, _escapeHTML, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _filterDuplicates, _filterObjectByKey, _findObjectById, _flattenArray, _flattenObject, _formatDate, _localeDateFormat, _globalizeDateTime, _formatInternationalDate, _freeze, _generateUUID, _generatePassword, _generateYupValidation, _genericReducer, _getArrayOfObjectsByProperty, _getBrowserInfo, _getChildElements, _getCookie, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getFinancialYear, _getKeysByValue, _getKeyByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getParent, _getPriceAfterTax, _getScrollPosition, _getStartStopTime, _getStorage, _getUTCTimestamp, _getUniqueValues, _getValueByKey, _groupBy, _handleApi, _handleSafe, _handleChildrenMenu, _handleParentNode, _handleParentsMenu, _handlePasteAlphabetKeys, _handlePasteDecimalKeys, _handlePermissions, _hasElement, _hasItem, _hideElement, _importExcel, _initializeFormikFields, _initializeFormValues, _insertHTML, _isLeapYear, _isWeekend, _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, _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, _transformArray, _transformAsyncData, _updateObjectInArray, _validateFormRef, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad };
8
+ import { _isTruncate, _toTitleCase, _truncateText } from './chunkautils/chunk21211';
9
+ import { _getCurrentPath, _getCurrentState, _getLocation, _getTypedState, _go, _goBack, _goForward, _navigate } from './chunkautils/chunk22523';
10
+ export { LazyLoader, createPrivateInstance, createPublicInstance, _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, _decryptString, _domSelector, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicReducer, _dynamicRequiredValidation, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _escapeRegExpMatch, _exportExcel, _escapeHTML, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _filterDuplicates, _filterObjectByKey, _findExactRoute, _findObjectById, _flattenArray, _flattenArrayByKey, _flattenObject, _formatDate, _localeDateFormat, _globalizeDateTime, _formatInternationalDate, _freeze, _generateUUID, _generatePassword, _generateYupValidation, _genericReducer, _getArrayOfObjectsByProperty, _getBrowserInfo, _getChildElements, _getCookie, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getFinancialYear, _getKeysByValue, _getKeyByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getParent, _getPriceAfterTax, _getScrollPosition, _getStartStopTime, _getStorage, _getUTCTimestamp, _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, _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, _updateObjectInArray, _validateFormRef, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-js-plugins",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
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",