pixel-react 1.15.70 → 1.15.72
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/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +3 -2
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +2 -2
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/components/StatusButton/StatusButton.d.ts +1 -1
- package/lib/components/StatusButton/StatusButton.js +4 -2
- package/lib/components/StatusButton/StatusButton.js.map +1 -1
- package/lib/components/StatusButton/types.d.ts +1 -0
- package/lib/components/TableTreeFn/TableTreeFn.js +8 -15
- package/lib/components/TableTreeFn/TableTreeFn.js.map +1 -1
- package/lib/components/TableTreeFn/types.d.ts +0 -1
- package/lib/index.d.ts +4 -8
- package/lib/index.js +16 -8
- package/lib/index.js.map +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/lib/utils/getEncryptedData/getEncryptedData.d.ts +1 -1
- package/lib/utils/getEncryptedData/getEncryptedData.js +7 -17
- package/lib/utils/getEncryptedData/getEncryptedData.js.map +1 -1
- package/lib/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.d.ts +2 -7
- package/lib/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.js +5 -4
- package/lib/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare const getEncryptedData: (data: string, publicKey: string) => string | false;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}, false, ['encrypt']);
|
|
9
|
-
// Convert data to Uint8Array
|
|
10
|
-
const encodedData = new TextEncoder().encode(data);
|
|
11
|
-
// Encrypt the data using RSA-OAEP
|
|
12
|
-
const encryptedData = await crypto.subtle.encrypt({
|
|
13
|
-
name: 'RSA-OAEP',
|
|
14
|
-
}, publicKey, encodedData);
|
|
15
|
-
// Convert encrypted data to base64
|
|
16
|
-
return btoa(String.fromCharCode(...new Uint8Array(encryptedData)));
|
|
17
|
-
}
|
|
1
|
+
import JSEncrypt from 'jsencrypt';
|
|
2
|
+
export const getEncryptedData = (data, publicKey) => {
|
|
3
|
+
const encrypt = new JSEncrypt();
|
|
4
|
+
encrypt.setPublicKey(publicKey);
|
|
5
|
+
const enData = encrypt.encrypt(data);
|
|
6
|
+
return enData;
|
|
7
|
+
};
|
|
18
8
|
//# sourceMappingURL=getEncryptedData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEncryptedData.js","sourceRoot":"","sources":["../../../src/utils/getEncryptedData/getEncryptedData.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"getEncryptedData.js","sourceRoot":"","sources":["../../../src/utils/getEncryptedData/getEncryptedData.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,SAAiB,EAAE,EAAE;IAClE,MAAM,OAAO,GAAG,IAAI,SAAS,EAAE,CAAC;IAChC,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IAChC,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import { TreeNodeProps } from
|
|
2
|
-
|
|
3
|
-
key: string | null;
|
|
4
|
-
searchKey?: string | null;
|
|
5
|
-
};
|
|
6
|
-
export declare function getTopVisibleNodeKey(scrollContainerWrapper: HTMLDivElement, treeData: TreeNodeProps[]): TopVisibleNode | null;
|
|
7
|
-
export {};
|
|
1
|
+
import { TreeNodeProps } from "../../ComponentProps/TreeNodeProps";
|
|
2
|
+
export declare function getTopVisibleNodeKey(scrollContainerWrapper: HTMLDivElement, treeData: TreeNodeProps[]): string | null;
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
export function getTopVisibleNodeKey(scrollContainerWrapper, treeData) {
|
|
2
2
|
if (!scrollContainerWrapper) {
|
|
3
|
+
console.warn('[getTopVisibleNodeKey] Provided wrapper element is null or undefined.');
|
|
3
4
|
return null;
|
|
4
5
|
}
|
|
5
6
|
const container = scrollContainerWrapper.querySelector('.table-scrollable');
|
|
6
7
|
if (!container) {
|
|
8
|
+
console.warn('[getTopVisibleNodeKey] Could not locate scrollable container from wrapper.');
|
|
7
9
|
return null;
|
|
8
10
|
}
|
|
9
11
|
const scrollTop = container.scrollTop;
|
|
10
12
|
const rows = Array.from(container.querySelectorAll('tbody tr'));
|
|
11
13
|
if (rows.length === 0) {
|
|
14
|
+
console.warn('getTopVisibleNodeKey: No rows found.');
|
|
12
15
|
return null;
|
|
13
16
|
}
|
|
14
17
|
const rowHeight = rows[0].offsetHeight || 0;
|
|
15
18
|
if (!rowHeight) {
|
|
19
|
+
console.warn('[getTopVisibleNodeKey] Failed to measure row height.');
|
|
16
20
|
return null;
|
|
17
21
|
}
|
|
18
22
|
const approxIndex = Math.floor(scrollTop / rowHeight);
|
|
19
23
|
const topRow = treeData[approxIndex] ?? treeData[0];
|
|
20
|
-
return
|
|
21
|
-
key: topRow?.key || null,
|
|
22
|
-
searchKey: topRow?.searchKey || null,
|
|
23
|
-
};
|
|
24
|
+
return topRow?.key || null;
|
|
24
25
|
}
|
|
25
26
|
//# sourceMappingURL=getTopVisibleNodeKey.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTopVisibleNodeKey.js","sourceRoot":"","sources":["../../../src/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTopVisibleNodeKey.js","sourceRoot":"","sources":["../../../src/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,oBAAoB,CAClC,sBAAsC,EACtC,QAAyB;IAEzB,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC5B,OAAO,CAAC,IAAI,CAAC,uEAAuE,CAAC,CAAC;QACtF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,SAAS,GAAG,sBAAsB,CAAC,aAAa,CAAC,mBAAmB,CAAuB,CAAC;IAClG,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,4EAA4E,CAAC,CAAC;QAC3F,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;IACtC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC;IAEhE,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;QACrD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,SAAS,GAAI,IAAI,CAAC,CAAC,CAAiB,CAAC,YAAY,IAAI,CAAC,CAAC;IAC7D,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,sDAAsD,CAAC,CAAC;QACrE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IACtD,MAAM,MAAM,GAAG,QAAQ,CAAC,WAAW,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpD,OAAO,MAAM,EAAE,GAAG,IAAI,IAAI,CAAC;AAC7B,CAAC"}
|
package/package.json
CHANGED