@adaptabletools/adaptable 24.0.5 → 24.0.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.0.6",
|
|
4
4
|
"description": "Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -69,8 +69,7 @@
|
|
|
69
69
|
"tinycolor2": "^1.4.2",
|
|
70
70
|
"tslib": "^2.8.1",
|
|
71
71
|
"tw-animate-css": "^1.4.0",
|
|
72
|
-
"udsv": "0.6.0"
|
|
73
|
-
"uuid": "9.0.1"
|
|
72
|
+
"udsv": "0.6.0"
|
|
74
73
|
},
|
|
75
74
|
"peerDependencies": {
|
|
76
75
|
"ag-grid-enterprise": ">=36.2.0",
|
|
@@ -1,2 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const BYTE_TO_HEX = Array.from({ length: 256 }, (_, i) => (i + 0x100).toString(16).slice(1));
|
|
2
|
+
const BYTES = new Uint8Array(16);
|
|
3
|
+
export const createUuid = () => {
|
|
4
|
+
const c = typeof globalThis !== 'undefined' ? globalThis.crypto : undefined;
|
|
5
|
+
if (typeof c?.randomUUID === 'function') {
|
|
6
|
+
return c.randomUUID();
|
|
7
|
+
}
|
|
8
|
+
if (typeof c?.getRandomValues === 'function') {
|
|
9
|
+
c.getRandomValues(BYTES);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
for (let i = 0; i < 16; i++) {
|
|
13
|
+
BYTES[i] = Math.floor(Math.random() * 256);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
BYTES[6] = (BYTES[6] & 0x0f) | 0x40;
|
|
17
|
+
BYTES[8] = (BYTES[8] & 0x3f) | 0x80;
|
|
18
|
+
return (BYTE_TO_HEX[BYTES[0]] +
|
|
19
|
+
BYTE_TO_HEX[BYTES[1]] +
|
|
20
|
+
BYTE_TO_HEX[BYTES[2]] +
|
|
21
|
+
BYTE_TO_HEX[BYTES[3]] +
|
|
22
|
+
'-' +
|
|
23
|
+
BYTE_TO_HEX[BYTES[4]] +
|
|
24
|
+
BYTE_TO_HEX[BYTES[5]] +
|
|
25
|
+
'-' +
|
|
26
|
+
BYTE_TO_HEX[BYTES[6]] +
|
|
27
|
+
BYTE_TO_HEX[BYTES[7]] +
|
|
28
|
+
'-' +
|
|
29
|
+
BYTE_TO_HEX[BYTES[8]] +
|
|
30
|
+
BYTE_TO_HEX[BYTES[9]] +
|
|
31
|
+
'-' +
|
|
32
|
+
BYTE_TO_HEX[BYTES[10]] +
|
|
33
|
+
BYTE_TO_HEX[BYTES[11]] +
|
|
34
|
+
BYTE_TO_HEX[BYTES[12]] +
|
|
35
|
+
BYTE_TO_HEX[BYTES[13]] +
|
|
36
|
+
BYTE_TO_HEX[BYTES[14]] +
|
|
37
|
+
BYTE_TO_HEX[BYTES[15]]);
|
|
38
|
+
};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export type TypeUuid
|
|
2
|
-
export declare const createUuid: () => TypeUuid;
|
|
1
|
+
export { createUuid, type TypeUuid } from '../../AdaptableState/Uuid';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const createUuid = () => uuidv4();
|
|
1
|
+
export { createUuid } from '../../AdaptableState/Uuid';
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
NEXT_PUBLIC_INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
|
|
3
|
-
PUBLISH_TIMESTAMP:
|
|
4
|
-
VERSION: "24.0.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1796400962001 || Date.now(),
|
|
4
|
+
VERSION: "24.0.6" || '--current-version--',
|
|
5
5
|
};
|