pixel-react 1.15.82 → 1.15.84

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.
Files changed (43) hide show
  1. package/README.md +75 -75
  2. package/lib/ComponentProps/TreeNodeProps.d.ts +1 -0
  3. package/lib/components/AttachmentButton/AttachmentButton.js +2 -1
  4. package/lib/components/AttachmentButton/AttachmentButton.js.map +1 -1
  5. package/lib/components/AttachmentButton/types.d.ts +1 -0
  6. package/lib/components/Charts/BarChart/BarChart.js +8 -8
  7. package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js +6 -6
  8. package/lib/components/Charts/IconRadialChart/IconRadialChart.js +4 -4
  9. package/lib/components/Charts/PieChart/PieChart.js +5 -5
  10. package/lib/components/Comments/Comments.js +14 -14
  11. package/lib/components/Comments/childComment/ChildComment.js +14 -14
  12. package/lib/components/EditTextField/EditTextField.js +2 -2
  13. package/lib/components/FileDropzone/FileDropzone.js +2 -10
  14. package/lib/components/FileDropzone/FileDropzone.js.map +1 -1
  15. package/lib/components/LabelEditTextField/LabelEditTextField.js +4 -4
  16. package/lib/components/MachineInputField/MachineInputField.js +1 -0
  17. package/lib/components/MachineInputField/MachineInputField.js.map +1 -1
  18. package/lib/components/Select/Select.js +1 -1
  19. package/lib/components/Select/Select.js.map +1 -1
  20. package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js +6 -2
  21. package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js.map +1 -1
  22. package/lib/components/SequentialConnectingBranch/types.d.ts +1 -0
  23. package/lib/components/StatusIndicator/StatusIndicator.js +5 -5
  24. package/lib/components/Table/Table.js +2 -2
  25. package/lib/components/Table/Table.js.map +1 -1
  26. package/lib/components/Table/Types.d.ts +8 -0
  27. package/lib/components/Table/components/SortableRow.d.ts +1 -1
  28. package/lib/components/Table/components/SortableRow.js +4 -2
  29. package/lib/components/Table/components/SortableRow.js.map +1 -1
  30. package/lib/components/Table/components/VirtualizedRows.d.ts +1 -1
  31. package/lib/components/Table/components/VirtualizedRows.js +2 -2
  32. package/lib/components/Table/components/VirtualizedRows.js.map +1 -1
  33. package/lib/hooks/useFileDropzone.js +94 -8
  34. package/lib/hooks/useFileDropzone.js.map +1 -1
  35. package/lib/index.d.ts +9 -2
  36. package/lib/index.js +5 -5
  37. package/lib/index.js.map +1 -1
  38. package/lib/styles.css +1 -1
  39. package/lib/styles.css.map +1 -1
  40. package/lib/utils/handleTreeNodeSelect/handleTreeNodeSelect.d.ts +1 -1
  41. package/lib/utils/handleTreeNodeSelect/handleTreeNodeSelect.js +98 -87
  42. package/lib/utils/handleTreeNodeSelect/handleTreeNodeSelect.js.map +1 -1
  43. package/package.json +106 -106
@@ -1,5 +1,5 @@
1
1
  import { TreeNodeProps as TreeNode } from '../../ComponentProps/TreeNodeProps';
2
- export declare const handleTreeNodeSect: (data: TreeNode[], key: string | undefined, rootNode: TreeNode | null, isChecked: boolean) => {
2
+ export declare const handleTreeNodeSelect: (treeData: TreeNode[], targetKey: string | undefined, rootNode: TreeNode | null, isInputChecked: boolean) => {
3
3
  data: TreeNode[];
4
4
  rootNode?: TreeNode | null;
5
5
  };
@@ -1,99 +1,110 @@
1
1
  import { checkEmpty } from '../checkEmpty/checkEmpty';
2
- export const handleTreeNodeSect = (data, key, rootNode, isChecked) => {
3
- if (!key) {
4
- throw new Error('Key is required');
5
- }
6
- // Build a map for quick access to nodes by key
7
- const nodesMap = new Map();
8
- const childMap = new Map();
9
- const visited = new Set(); // To detect cycles
10
- let list = [...data];
11
- if (rootNode && !checkEmpty(rootNode)) {
12
- list = [rootNode, ...data];
13
- }
14
- // Initialize the maps
15
- list.forEach((node) => {
16
- nodesMap.set(node.key, node);
17
- if (node.parentId) {
18
- if (!childMap.has(node.parentId)) {
19
- childMap.set(node.parentId, []);
2
+ export const handleTreeNodeSelect = (treeData, targetKey, rootNode, isInputChecked) => {
3
+ if (!targetKey)
4
+ return { data: treeData, rootNode };
5
+ const SCRIPT_TYPES = new Set(['Script', 'Pre', 'Post']);
6
+ const newStatus = isInputChecked ? 'completely' : 'none';
7
+ const nodeMap = new Map();
8
+ const parentMap = new Map();
9
+ const childrenMap = new Map();
10
+ const expandedModules = new Set();
11
+ // Helper to safely get key
12
+ const getKey = (node) => String(node.key);
13
+ const allNodes = rootNode ? [rootNode, ...treeData] : [...treeData];
14
+ for (const node of allNodes) {
15
+ const key = getKey(node);
16
+ nodeMap.set(key, { ...node });
17
+ // Handle Search Key Parsing ONCE
18
+ if (!checkEmpty(node) && node.searchKey) {
19
+ const parts = node.searchKey.split('/').filter(Boolean);
20
+ // Populate Expanded Modules
21
+ if (SCRIPT_TYPES.has(node?.entityType ?? '')) {
22
+ for (const part of parts)
23
+ expandedModules.add(part);
20
24
  }
21
- childMap.get(node.parentId).push(node);
22
- }
23
- });
24
- // Helper to calculate the selected status of a node
25
- function calculateSelectedStatus(nodeKey) {
26
- const node = nodesMap.get(nodeKey);
27
- if (!node)
28
- return 'none';
29
- const totalChildren = (node.resourceCount ?? 0) + (node.subContainerCount ?? 0) + (node.conditionCount ?? 0);
30
- if (totalChildren === 0) {
31
- // Leaf node: use its own selected status
32
- return node.selectedStatus ?? 'none';
33
- }
34
- const children = childMap.get(nodeKey) || [];
35
- let completelySelectedCount = 0;
36
- let hasPartialSelection = false;
37
- for (const child of children) {
38
- if (child.selectedStatus === 'completely') {
39
- completelySelectedCount++;
25
+ // Build Hierarchy
26
+ if (parts.length > 1) {
27
+ const parentKey = parts[parts.length - 2] ?? '';
28
+ parentMap.set(key, parentKey);
29
+ if (!childrenMap.has(parentKey)) {
30
+ childrenMap.set(parentKey, []);
31
+ }
32
+ childrenMap.get(parentKey)?.push(key);
40
33
  }
41
- else if (child.selectedStatus === 'partially') {
42
- hasPartialSelection = true;
43
- }
44
- }
45
- if (completelySelectedCount === totalChildren) {
46
- return 'completely';
47
- }
48
- else if (hasPartialSelection || completelySelectedCount > 0) {
49
- return 'partially';
50
- }
51
- else {
52
- return 'none';
53
34
  }
54
35
  }
55
- // Helper to update child nodes recursively
56
- function updateChildren(nodeKey, status) {
57
- if (visited.has(nodeKey)) {
58
- throw new Error(`Cycle detected at node: ${nodeKey}`);
36
+ const updateQueue = [String(targetKey)];
37
+ while (updateQueue.length > 0) {
38
+ const currKey = updateQueue.pop();
39
+ const node = nodeMap.get(currKey);
40
+ if (node) {
41
+ node.selectedStatus = newStatus;
42
+ // Add children to queue
43
+ const children = childrenMap.get(currKey);
44
+ if (children) {
45
+ for (const childKey of children) {
46
+ updateQueue.push(childKey);
47
+ }
48
+ }
59
49
  }
60
- visited.add(nodeKey);
61
- const children = childMap.get(nodeKey) || [];
62
- children.forEach((child) => {
63
- child.selectedStatus = status;
64
- updateChildren(child.key, status);
65
- });
66
- visited.delete(nodeKey); // Clean up after recursion
67
50
  }
68
- // Helper to update parent nodes recursively
69
- function updateParents(nodeKey) {
70
- if (visited.has(nodeKey)) {
71
- throw new Error(`Cycle detected at node: ${nodeKey}`);
72
- }
73
- visited.add(nodeKey);
74
- const node = nodesMap.get(nodeKey);
75
- if (node && node.parentId) {
76
- const parentNode = nodesMap.get(node.parentId);
77
- if (parentNode) {
78
- parentNode.selectedStatus = calculateSelectedStatus(parentNode.key);
79
- updateParents(parentNode.key);
51
+ // We iterate updated nodes. If 'completely' selected, we contribute score to ancestors.
52
+ const selectionScore = new Map();
53
+ for (const node of nodeMap.values()) {
54
+ if (node.selectedStatus === 'completely') {
55
+ const key = getKey(node);
56
+ // Determine Weight
57
+ const beTotal = (node.totalResourceCount ?? 0) + (node.totalConditionCount ?? 0);
58
+ const isScript = SCRIPT_TYPES.has(node.entityType);
59
+ let weight = 0;
60
+ if (isScript || beTotal === 0) {
61
+ weight = 1;
62
+ }
63
+ else if (!expandedModules.has(key)) {
64
+ weight = beTotal;
65
+ }
66
+ if (weight > 0) {
67
+ let currParent = parentMap.get(key);
68
+ while (currParent) {
69
+ if (currParent === key)
70
+ break;
71
+ const currentScore = selectionScore.get(currParent) || 0;
72
+ selectionScore.set(currParent, currentScore + weight);
73
+ currParent = parentMap.get(currParent);
74
+ }
80
75
  }
81
76
  }
82
- visited.delete(nodeKey); // Clean up after recursion
83
- }
84
- // Main logic: update the target node and propagate changes
85
- const targetNode = nodesMap.get(key);
86
- if (targetNode) {
87
- targetNode.selectedStatus = isChecked ? 'completely' : 'none';
88
- updateChildren(key, targetNode.selectedStatus);
89
- updateParents(key);
90
77
  }
91
- if (!checkEmpty(rootNode)) {
92
- return {
93
- rootNode: list[0],
94
- data: list.slice(1),
95
- };
96
- }
97
- return { data: list };
78
+ const finalizeNode = (key) => {
79
+ const node = nodeMap.get(key);
80
+ if (!node)
81
+ return null;
82
+ const isTarget = key === String(targetKey);
83
+ const targetNode = nodeMap.get(String(targetKey));
84
+ const isParentOfTarget = targetNode?.searchKey?.startsWith(node.searchKey + '/');
85
+ // Original exclusion logic
86
+ const isRoot = rootNode && String(rootNode.key) === key;
87
+ if (!isTarget &&
88
+ !isRoot &&
89
+ !isParentOfTarget &&
90
+ !SCRIPT_TYPES.has(node.entityType)) {
91
+ return node;
92
+ }
93
+ if (SCRIPT_TYPES.has(node.entityType) || isTarget) {
94
+ return node;
95
+ }
96
+ const capacity = (node.totalResourceCount ?? 0) + (node.totalConditionCount ?? 0) || 1;
97
+ const currentScore = selectionScore.get(key) || 0;
98
+ let status = 'none';
99
+ if (currentScore >= capacity && currentScore > 0)
100
+ status = 'completely';
101
+ else if (currentScore > 0)
102
+ status = 'partially';
103
+ return { ...node, selectedStatus: status };
104
+ };
105
+ return {
106
+ data: treeData.map((node) => finalizeNode(getKey(node))),
107
+ rootNode: rootNode ? finalizeNode(getKey(rootNode)) : null,
108
+ };
98
109
  };
99
110
  //# sourceMappingURL=handleTreeNodeSelect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleTreeNodeSelect.js","sourceRoot":"","sources":["../../../src/utils/handleTreeNodeSelect/handleTreeNodeSelect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,C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,kBAAkB,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;QACxE,MAAM,YAAY,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAElD,IAAI,MAAM,GAAG,MAAM,CAAC;QACpB,IAAI,YAAY,IAAI,QAAQ,IAAI,YAAY,GAAG,CAAC;YAAE,MAAM,GAAG,YAAY,CAAC;aACnE,IAAI,YAAY,GAAG,CAAC;YAAE,MAAM,GAAG,WAAW,CAAC;QAEhD,OAAO,EAAE,GAAG,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IAC7C,CAAC,CAAC;IAEF,OAAO;QACL,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QACxD,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;KAC3D,CAAC;AACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,106 +1,106 @@
1
- {
2
- "name": "pixel-react",
3
- "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.15.82",
5
- "main": "lib/index.js",
6
- "module": "lib/index.js",
7
- "types": "lib/index.d.ts",
8
- "sideEffects": [
9
- "lib/styles.css"
10
- ],
11
- "author": {
12
- "name": "Padmakant Baloji"
13
- },
14
- "license": "MIT",
15
- "devDependencies": {
16
- "@rollup/plugin-terser": "^0.4.4",
17
- "@babel/core": "^7.0.0",
18
- "@babel/preset-react": "^7.26.3",
19
- "@chromatic-com/storybook": "^3.2.2",
20
- "@rollup/plugin-babel": "^6.0.4",
21
- "@rollup/plugin-commonjs": "^28.0.2",
22
- "@rollup/plugin-node-resolve": "^16.0.0",
23
- "@rollup/plugin-typescript": "^12.1.2",
24
- "@rollup/plugin-url": "^8.0.2",
25
- "@storybook/addon-docs": "^8.4.5",
26
- "@storybook/addon-essentials": "^8.4.5",
27
- "@storybook/addon-interactions": "^8.4.5",
28
- "@storybook/addon-links": "^8.4.5",
29
- "@storybook/addon-onboarding": "^8.4.5",
30
- "@storybook/blocks": "^8.4.5",
31
- "@storybook/react": "^8.4.5",
32
- "@storybook/react-vite": "^8.4.5",
33
- "@storybook/test": "^8.4.5",
34
- "@types/js-beautify": "^1.14.3",
35
- "@types/node-forge": "^1.3.14",
36
- "@types/react": "^18.3.12",
37
- "@types/react-dom": "^18.3.1",
38
- "@types/react-google-recaptcha": "^2.1.9",
39
- "@types/draft-js": "^0.11.19",
40
- "chromatic": "^11.16.5",
41
- "cross-env": "^7.0.3",
42
- "react": ">=18.2.0 <19.0.0",
43
- "react-dom": ">=18.2.0 <19.0.0",
44
- "rimraf": "^6.0.1",
45
- "rollup": "^4.24.4",
46
- "rollup-plugin-dts": "^6.1.0",
47
- "rollup-plugin-peer-deps-external": "^2.2.4",
48
- "rollup-plugin-postcss": "^4.0.2",
49
- "rollup-plugin-visualizer": "^5.14.0",
50
- "sass": "^1.80.6",
51
- "storybook": "^8.4.5",
52
- "storybook-addon-theme-provider": "^0.2.6",
53
- "typescript": "^5.7.2",
54
- "vite": "^5.4.10"
55
- },
56
- "peerDependencies": {
57
- "react": "^18.2.0",
58
- "react-dom": "^18.2.0"
59
- },
60
- "scripts": {
61
- "storybook": "storybook dev -p 6006",
62
- "build-storybook": "storybook build",
63
- "build": "rimraf lib && tsc -b && cross-env NODE_ENV=production rollup -c",
64
- "analyze": "tsc -b && cross-env ANALYZE=true rollup -c",
65
- "sync": "git pull origin main && tsc -b && rollup -c",
66
- "chromatic": "chromatic --exit-zero-on-changes",
67
- "clean": "rimraf lib node_modules pnpm-lock.yaml package-lock.json yarn.lock"
68
- },
69
- "dependencies": {
70
- "@babel/plugin-transform-react-jsx": "^7.24.7",
71
- "@dnd-kit/core": "^6.1.0",
72
- "@dnd-kit/modifiers": "^9.0.0",
73
- "@dnd-kit/sortable": "^8.0.0",
74
- "@dnd-kit/utilities": "^3.2.2",
75
- "@vitejs/plugin-react": "^4.3.0",
76
- "classnames": "^2.5.1",
77
- "date-fns": "^3.6.0",
78
- "date-fns-tz": "^3.2.0",
79
- "draft-js": "^0.11.7",
80
- "jsencrypt": "^3.3.2",
81
- "node-forge": "^1.3.1",
82
- "react-archer": "^4.4.0",
83
- "react-day-picker": "^9.2.1",
84
- "react-google-recaptcha": "^3.1.0",
85
- "react-hook-form": "7.64.0",
86
- "@types/react-window": "^1.8.8",
87
- "react-window": "^1.8.10",
88
- "scss": "^0.2.4",
89
- "use-context-selector": "^2.0.0",
90
- "vite-plugin-svgr": "^4.3.0",
91
- "janus-gateway": "^1.3.1",
92
- "webrtc-adapter": "^9.0.1",
93
- "react-virtuoso": "^4.13.0",
94
- "react-draft-wysiwyg": "^1.15.0",
95
- "@types/react-draft-wysiwyg": "^1.13.8",
96
- "@monaco-editor/react": "^4.6.0",
97
- "js-beautify": "^1.15.1",
98
- "react-phone-input-2": "^2.15.1",
99
- "react-phone-number-input": "^3.4.12"
100
- },
101
- "files": [
102
- "lib",
103
- "README.md",
104
- "LICENSE"
105
- ]
106
- }
1
+ {
2
+ "name": "pixel-react",
3
+ "description": "Great for pixel-perfect, design-focused components in React",
4
+ "version": "1.15.84",
5
+ "main": "lib/index.js",
6
+ "module": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "sideEffects": [
9
+ "lib/styles.css"
10
+ ],
11
+ "author": {
12
+ "name": "Padmakant Baloji"
13
+ },
14
+ "license": "MIT",
15
+ "devDependencies": {
16
+ "@rollup/plugin-terser": "^0.4.4",
17
+ "@babel/core": "^7.0.0",
18
+ "@babel/preset-react": "^7.26.3",
19
+ "@chromatic-com/storybook": "^3.2.2",
20
+ "@rollup/plugin-babel": "^6.0.4",
21
+ "@rollup/plugin-commonjs": "^28.0.2",
22
+ "@rollup/plugin-node-resolve": "^16.0.0",
23
+ "@rollup/plugin-typescript": "^12.1.2",
24
+ "@rollup/plugin-url": "^8.0.2",
25
+ "@storybook/addon-docs": "^8.4.5",
26
+ "@storybook/addon-essentials": "^8.4.5",
27
+ "@storybook/addon-interactions": "^8.4.5",
28
+ "@storybook/addon-links": "^8.4.5",
29
+ "@storybook/addon-onboarding": "^8.4.5",
30
+ "@storybook/blocks": "^8.4.5",
31
+ "@storybook/react": "^8.4.5",
32
+ "@storybook/react-vite": "^8.4.5",
33
+ "@storybook/test": "^8.4.5",
34
+ "@types/js-beautify": "^1.14.3",
35
+ "@types/node-forge": "^1.3.14",
36
+ "@types/react": "^18.3.12",
37
+ "@types/react-dom": "^18.3.1",
38
+ "@types/react-google-recaptcha": "^2.1.9",
39
+ "@types/draft-js": "^0.11.19",
40
+ "chromatic": "^11.16.5",
41
+ "cross-env": "^7.0.3",
42
+ "react": ">=18.2.0 <19.0.0",
43
+ "react-dom": ">=18.2.0 <19.0.0",
44
+ "rimraf": "^6.0.1",
45
+ "rollup": "^4.24.4",
46
+ "rollup-plugin-dts": "^6.1.0",
47
+ "rollup-plugin-peer-deps-external": "^2.2.4",
48
+ "rollup-plugin-postcss": "^4.0.2",
49
+ "rollup-plugin-visualizer": "^5.14.0",
50
+ "sass": "^1.80.6",
51
+ "storybook": "^8.4.5",
52
+ "storybook-addon-theme-provider": "^0.2.6",
53
+ "typescript": "^5.7.2",
54
+ "vite": "^5.4.10"
55
+ },
56
+ "peerDependencies": {
57
+ "react": "^18.2.0",
58
+ "react-dom": "^18.2.0"
59
+ },
60
+ "scripts": {
61
+ "storybook": "storybook dev -p 6006",
62
+ "build-storybook": "storybook build",
63
+ "build": "rimraf lib && tsc -b && cross-env NODE_ENV=production rollup -c",
64
+ "analyze": "tsc -b && cross-env ANALYZE=true rollup -c",
65
+ "sync": "git pull origin main && tsc -b && rollup -c",
66
+ "chromatic": "chromatic --exit-zero-on-changes",
67
+ "clean": "rimraf lib node_modules pnpm-lock.yaml package-lock.json yarn.lock"
68
+ },
69
+ "dependencies": {
70
+ "@babel/plugin-transform-react-jsx": "^7.24.7",
71
+ "@dnd-kit/core": "^6.1.0",
72
+ "@dnd-kit/modifiers": "^9.0.0",
73
+ "@dnd-kit/sortable": "^8.0.0",
74
+ "@dnd-kit/utilities": "^3.2.2",
75
+ "@vitejs/plugin-react": "^4.3.0",
76
+ "classnames": "^2.5.1",
77
+ "date-fns": "^3.6.0",
78
+ "date-fns-tz": "^3.2.0",
79
+ "draft-js": "^0.11.7",
80
+ "jsencrypt": "^3.3.2",
81
+ "node-forge": "^1.3.1",
82
+ "react-archer": "^4.4.0",
83
+ "react-day-picker": "^9.2.1",
84
+ "react-google-recaptcha": "^3.1.0",
85
+ "react-hook-form": "7.64.0",
86
+ "@types/react-window": "^1.8.8",
87
+ "react-window": "^1.8.10",
88
+ "scss": "^0.2.4",
89
+ "use-context-selector": "^2.0.0",
90
+ "vite-plugin-svgr": "^4.3.0",
91
+ "janus-gateway": "^1.3.1",
92
+ "webrtc-adapter": "^9.0.1",
93
+ "react-virtuoso": "^4.13.0",
94
+ "react-draft-wysiwyg": "^1.15.0",
95
+ "@types/react-draft-wysiwyg": "^1.13.8",
96
+ "@monaco-editor/react": "^4.6.0",
97
+ "js-beautify": "^1.15.1",
98
+ "react-phone-input-2": "^2.15.1",
99
+ "react-phone-number-input": "^3.4.12"
100
+ },
101
+ "files": [
102
+ "lib",
103
+ "README.md",
104
+ "LICENSE"
105
+ ]
106
+ }