pixel-react 1.20.52 → 1.20.53

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 (146) hide show
  1. package/README.md +75 -75
  2. package/lib/StyleGuide/ColorPalette/index.d.ts +1 -0
  3. package/lib/StyleGuide/ColorPalette/index.js +2 -0
  4. package/lib/StyleGuide/ColorPalette/index.js.map +1 -0
  5. package/lib/StyleGuide/Typography/TypographyList.d.ts +5 -0
  6. package/lib/StyleGuide/Typography/TypographyList.js +4 -0
  7. package/lib/StyleGuide/Typography/TypographyList.js.map +1 -0
  8. package/lib/StyleGuide/Typography/types.d.ts +8 -0
  9. package/lib/StyleGuide/Typography/types.js +2 -0
  10. package/lib/StyleGuide/Typography/types.js.map +1 -0
  11. package/lib/components/AddContentButton/index.d.ts +1 -0
  12. package/lib/components/AddContentButton/index.js +2 -0
  13. package/lib/components/AddContentButton/index.js.map +1 -0
  14. package/lib/components/Carousel/index.d.ts +1 -0
  15. package/lib/components/Carousel/index.js +2 -0
  16. package/lib/components/Carousel/index.js.map +1 -0
  17. package/lib/components/Charts/BarChart/BarChart.js +8 -8
  18. package/lib/components/Charts/BarChart/types.d.ts +18 -0
  19. package/lib/components/Charts/BarChart/types.js +2 -0
  20. package/lib/components/Charts/BarChart/types.js.map +1 -0
  21. package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js +6 -6
  22. package/lib/components/Charts/IconRadialChart/IconRadialChart.js +4 -4
  23. package/lib/components/Charts/PieChart/PieChart.js +5 -5
  24. package/lib/components/ChatModalAi/ChatModalAi.js +3 -1
  25. package/lib/components/ChatModalAi/ChatModalAi.js.map +1 -1
  26. package/lib/components/ChipWithCount/index.d.ts +1 -0
  27. package/lib/components/ChipWithCount/index.js +2 -0
  28. package/lib/components/ChipWithCount/index.js.map +1 -0
  29. package/lib/components/Comments/Comments.js +14 -14
  30. package/lib/components/Comments/childComment/ChildComment.js +14 -14
  31. package/lib/components/Comments/index.d.ts +1 -0
  32. package/lib/components/Comments/index.js +2 -0
  33. package/lib/components/Comments/index.js.map +1 -0
  34. package/lib/components/ConditionalDropdown/index.d.ts +1 -0
  35. package/lib/components/ConditionalDropdown/index.js +2 -0
  36. package/lib/components/ConditionalDropdown/index.js.map +1 -0
  37. package/lib/components/ConnectingBranch/index.d.ts +1 -0
  38. package/lib/components/ConnectingBranch/index.js +2 -0
  39. package/lib/components/ConnectingBranch/index.js.map +1 -0
  40. package/lib/components/CreateVariable/index.d.ts +1 -0
  41. package/lib/components/CreateVariable/index.js +2 -0
  42. package/lib/components/CreateVariable/index.js.map +1 -0
  43. package/lib/components/DownloadClient/index.d.ts +1 -0
  44. package/lib/components/DownloadClient/index.js +2 -0
  45. package/lib/components/DownloadClient/index.js.map +1 -0
  46. package/lib/components/DragAndDrop/index.d.ts +1 -0
  47. package/lib/components/DragAndDrop/index.js +2 -0
  48. package/lib/components/DragAndDrop/index.js.map +1 -0
  49. package/lib/components/EditTextField/EditTextField.js +2 -2
  50. package/lib/components/Editor/Editor.js +1 -21
  51. package/lib/components/Editor/Editor.js.map +1 -1
  52. package/lib/components/Editor/index.d.ts +1 -0
  53. package/lib/components/Editor/index.js +2 -0
  54. package/lib/components/Editor/index.js.map +1 -0
  55. package/lib/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.d.ts +1 -0
  56. package/lib/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.js +18 -0
  57. package/lib/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.js.map +1 -0
  58. package/lib/components/ExpandableTable/ExpandableTable.d.ts +12 -0
  59. package/lib/components/ExpandableTable/ExpandableTable.js +19 -0
  60. package/lib/components/ExpandableTable/ExpandableTable.js.map +1 -0
  61. package/lib/components/FF_Captcha/index.d.ts +0 -0
  62. package/lib/components/FF_Captcha/index.js +2 -0
  63. package/lib/components/FF_Captcha/index.js.map +1 -0
  64. package/lib/components/Form/index.d.ts +1 -0
  65. package/lib/components/Form/index.js +2 -0
  66. package/lib/components/Form/index.js.map +1 -0
  67. package/lib/components/Form/types.d.ts +1 -0
  68. package/lib/components/Form/types.js +2 -0
  69. package/lib/components/Form/types.js.map +1 -0
  70. package/lib/components/GridLayout/index.d.ts +2 -0
  71. package/lib/components/GridLayout/index.js +2 -0
  72. package/lib/components/GridLayout/index.js.map +1 -0
  73. package/lib/components/LabelEditTextField/LabelEditTextField.js +4 -4
  74. package/lib/components/LazyLoad/index.d.ts +1 -0
  75. package/lib/components/LazyLoad/index.js +2 -0
  76. package/lib/components/LazyLoad/index.js.map +1 -0
  77. package/lib/components/Link/index.d.ts +1 -0
  78. package/lib/components/Link/index.js +2 -0
  79. package/lib/components/Link/index.js.map +1 -0
  80. package/lib/components/MediaPreview/index.d.ts +1 -0
  81. package/lib/components/MediaPreview/index.js +2 -0
  82. package/lib/components/MediaPreview/index.js.map +1 -0
  83. package/lib/components/MobileSkin/types.d.ts +37 -0
  84. package/lib/components/MobileSkin/types.js +2 -0
  85. package/lib/components/MobileSkin/types.js.map +1 -0
  86. package/lib/components/ModulesChip/index.d.ts +1 -0
  87. package/lib/components/ModulesChip/index.js +2 -0
  88. package/lib/components/ModulesChip/index.js.map +1 -0
  89. package/lib/components/PrePostTable/index.d.ts +1 -0
  90. package/lib/components/PrePostTable/index.js +2 -0
  91. package/lib/components/PrePostTable/index.js.map +1 -0
  92. package/lib/components/ScriptGenerationLoader/index.d.ts +1 -0
  93. package/lib/components/ScriptGenerationLoader/index.js +2 -0
  94. package/lib/components/ScriptGenerationLoader/index.js.map +1 -0
  95. package/lib/components/StatusIndicator/StatusIndicator.js +5 -5
  96. package/lib/components/StepsLandingTable/index.d.ts +1 -0
  97. package/lib/components/StepsLandingTable/index.js +2 -0
  98. package/lib/components/StepsLandingTable/index.js.map +1 -0
  99. package/lib/components/Table/NoDataContent.d.ts +4 -0
  100. package/lib/components/Table/NoDataContent.js +9 -0
  101. package/lib/components/Table/NoDataContent.js.map +1 -0
  102. package/lib/components/Table/index.d.ts +1 -0
  103. package/lib/components/Table/index.js +2 -0
  104. package/lib/components/Table/index.js.map +1 -0
  105. package/lib/components/TableTree/Utils/getAllChildIds.d.ts +2 -0
  106. package/lib/components/TableTree/Utils/getAllChildIds.js +12 -0
  107. package/lib/components/TableTree/Utils/getAllChildIds.js.map +1 -0
  108. package/lib/components/TableTree/Utils/renderSpaces.d.ts +0 -0
  109. package/lib/components/TableTree/Utils/renderSpaces.js +2 -0
  110. package/lib/components/TableTree/Utils/renderSpaces.js.map +1 -0
  111. package/lib/components/TableTreeFn/Utils/addNewRow.d.ts +14 -0
  112. package/lib/components/TableTreeFn/Utils/addNewRow.js +80 -0
  113. package/lib/components/TableTreeFn/Utils/addNewRow.js.map +1 -0
  114. package/lib/components/TableTreeFn/Utils/getAllChildIds.d.ts +2 -0
  115. package/lib/components/TableTreeFn/Utils/getAllChildIds.js +12 -0
  116. package/lib/components/TableTreeFn/Utils/getAllChildIds.js.map +1 -0
  117. package/lib/components/TableTreeFn/Utils/renderSpaces.d.ts +0 -0
  118. package/lib/components/TableTreeFn/Utils/renderSpaces.js +2 -0
  119. package/lib/components/TableTreeFn/Utils/renderSpaces.js.map +1 -0
  120. package/lib/components/TableTreeFn/Utils/updateParentSibling.d.ts +3 -0
  121. package/lib/components/TableTreeFn/Utils/updateParentSibling.js +65 -0
  122. package/lib/components/TableTreeFn/Utils/updateParentSibling.js.map +1 -0
  123. package/lib/components/TableWithAccordion/index.d.ts +1 -0
  124. package/lib/components/TableWithAccordion/index.js +2 -0
  125. package/lib/components/TableWithAccordion/index.js.map +1 -0
  126. package/lib/components/TabsWithSilder/index.d.ts +1 -0
  127. package/lib/components/TabsWithSilder/index.js +2 -0
  128. package/lib/components/TabsWithSilder/index.js.map +1 -0
  129. package/lib/components/TextEditor/index.d.ts +1 -0
  130. package/lib/components/TextEditor/index.js +2 -0
  131. package/lib/components/TextEditor/index.js.map +1 -0
  132. package/lib/components/ToggleSwitch/index.d.ts +1 -0
  133. package/lib/components/ToggleSwitch/index.js +2 -0
  134. package/lib/components/ToggleSwitch/index.js.map +1 -0
  135. package/lib/index.js +3 -3
  136. package/lib/tsconfig.tsbuildinfo +1 -1
  137. package/lib/utils/functionCheck/functionCheck.d.ts +2 -0
  138. package/lib/utils/functionCheck/functionCheck.js +6 -0
  139. package/lib/utils/functionCheck/functionCheck.js.map +1 -0
  140. package/lib/utils/indexDBStore/indexDB copy.d.ts +4 -0
  141. package/lib/utils/indexDBStore/indexDB copy.js +142 -0
  142. package/lib/utils/indexDBStore/indexDB copy.js.map +1 -0
  143. package/lib/utils/toTitleCase/toTitleCase.d.ts +1 -0
  144. package/lib/utils/toTitleCase/toTitleCase.js +7 -0
  145. package/lib/utils/toTitleCase/toTitleCase.js.map +1 -0
  146. package/package.json +118 -109
@@ -0,0 +1,65 @@
1
+ export const calculateParentSiblings = (node, allNodes) => {
2
+ const hierarchy = node.hierarchy || 0;
3
+ if (hierarchy === 0) {
4
+ return []; // Root nodes have no parent connecting lines
5
+ }
6
+ const parentSiblings = [];
7
+ const currentNodeIndex = allNodes.findIndex(n => n.key === node.key);
8
+ if (currentNodeIndex === -1) {
9
+ return new Array(hierarchy).fill(false);
10
+ }
11
+ // Build path from root to current node
12
+ const path = getPathToNode(node, allNodes);
13
+ // For each hierarchy level from 0 to hierarchy-1
14
+ for (let level = 0; level < hierarchy; level++) {
15
+ if (level === 0) {
16
+ // Special case for level 0: check for more root children after this node
17
+ const rootChildrenAfter = allNodes
18
+ .slice(currentNodeIndex + 1)
19
+ .filter(n => (n.hierarchy || 0) === 1); // Root children have hierarchy 1
20
+ parentSiblings.push(rootChildrenAfter.length > 0);
21
+ }
22
+ else {
23
+ // For other levels: find ancestor and check for siblings after
24
+ const ancestor = path.find(n => (n.hierarchy || 0) === level);
25
+ if (!ancestor) {
26
+ parentSiblings.push(false);
27
+ continue;
28
+ }
29
+ // Find children of this ancestor
30
+ const ancestorChildren = allNodes.filter(n => n.parentId === ancestor.key);
31
+ // Check if any child appears after the current node
32
+ let hasChildrenAfter = false;
33
+ for (const child of ancestorChildren) {
34
+ const childIndex = allNodes.findIndex(n => n.key === child.key);
35
+ if (childIndex > currentNodeIndex) {
36
+ hasChildrenAfter = true;
37
+ break;
38
+ }
39
+ }
40
+ parentSiblings.push(hasChildrenAfter);
41
+ }
42
+ }
43
+ return parentSiblings;
44
+ };
45
+ const getPathToNode = (node, allNodes) => {
46
+ const path = [];
47
+ let current = node;
48
+ while (current) {
49
+ path.unshift(current);
50
+ if (!current.parentId)
51
+ break;
52
+ const found = allNodes.find(n => n.key === current.parentId);
53
+ if (!found)
54
+ break;
55
+ current = found;
56
+ }
57
+ return path;
58
+ };
59
+ export const updateAllParentSiblings = (treeData) => {
60
+ return treeData.map(node => ({
61
+ ...node,
62
+ parentSiblings: calculateParentSiblings(node, treeData),
63
+ }));
64
+ };
65
+ //# sourceMappingURL=updateParentSibling.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateParentSibling.js","sourceRoot":"","sources":["../../../../src/components/TableTreeFn/Utils/updateParentSibling.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,IAAmB,EACnB,QAAyB,EACd,EAAE;IACb,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC;IAEtC,IAAI,SAAS,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,EAAE,CAAC,CAAC,6CAA6C;IAC1D,CAAC;IAED,MAAM,cAAc,GAAc,EAAE,CAAC;IACrC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC;IAErE,IAAI,gBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC;QAC5B,OAAO,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IAED,uCAAuC;IACvC,MAAM,IAAI,GAAG,aAAa,CA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xB,MAAM;gBACR,CAAC;YACH,CAAC;YAED,cAAc,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,CACpB,IAAmB,EACnB,QAAyB,EACR,EAAE;IACnB,MAAM,IAAI,GAAoB,EAAE,CAAC;IACjC,IAAI,OAAO,GAAG,IAAI,CAAC;IAEnB,OAAO,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACtB,IAAI,CAAC,OAAO,CAAC,QAAQ;YAAE,MAAM;QAC7B,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC7D,IAAI,CAAC,KAAK;YAAE,MAAM;QAClB,OAAO,GAAG,KAAK,CAAC;IAClB,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,QAAyB,EACR,EAAE;IACnB,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC3B,GAAG,IAAI;QACP,cAAc,EAAE,uBAAuB,CAAC,IAAI,EAAE,QAAQ,CAAC;KACxD,CAAC,CAAC,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export { default } from './TableWithAccordion';
@@ -0,0 +1,2 @@
1
+ export { default } from './TableWithAccordion';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TableWithAccordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1 @@
1
+ export { default } from './TabsWithSilder';
@@ -0,0 +1,2 @@
1
+ export { default } from './TabsWithSilder';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TabsWithSilder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './TextEditor';
@@ -0,0 +1,2 @@
1
+ export * from './TextEditor';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TextEditor/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1 @@
1
+ export { default } from './ToggleSwitch';
@@ -0,0 +1,2 @@
1
+ export { default } from './ToggleSwitch';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ToggleSwitch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAA"}