impaktapps-jsonforms 5.426.1113 → 5.426.1114

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": "impaktapps-jsonforms",
3
- "version": "5.426.1113",
3
+ "version": "5.426.1114",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -3,7 +3,18 @@ function ComponentWrapper({ children, disabled, hidden }: any) {
3
3
  if (hidden) {
4
4
  console.log("children : " , children);
5
5
  console.log("hidden : " , hidden);
6
- return null;
6
+
7
+ const updatedChildren = Children.map(children, (child) => {
8
+ if (React.isValidElement(child)) {
9
+ //@ts-ignore
10
+ return cloneElement(child, { hidden : true });
11
+ }
12
+ return child;
13
+ });
14
+
15
+ return {updatedChildren}
16
+
17
+ // return null;
7
18
  } else if (disabled) {
8
19
  const updatedChildren = Children.map(children, (child) => {
9
20
  if (React.isValidElement(child)) {
@@ -44,6 +44,9 @@ export const ImpaktAppsButton = memo(function ({ uischema, path,data ,schema,roo
44
44
  <ComponentWrapper
45
45
  {...getComponentProps(`${pageName}:${fieldName}`,permissions,schema,rootSchema)}
46
46
  >
47
+ {
48
+ console.log("Button")
49
+ }
47
50
  <Button
48
51
 
49
52
  fullWidth={true}