impaktapps-ui-builder 0.0.101-alpha.42 → 0.0.101-alpha.43

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-ui-builder",
3
- "version": "0.0.101-alpha.42",
3
+ "version": "0.0.101-alpha.43",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -9,7 +9,6 @@ import { TableSection } from "../build/uischema/tableSection";
9
9
  import { ValueTab } from "../build/uischema/valueTab";
10
10
  import { ValidationSection } from "../build/uischema/validationSections";
11
11
  import { getFormdataFromSessionStorage, okHandler, saveFormdataInSessionStorage, saveHandler } from "./utils";
12
- import buildConfig from "../build/buildConfig";
13
12
  const sectionLabels = {
14
13
  Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
15
14
  MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
@@ -65,14 +64,16 @@ export function refreshPage (type: string, store: any) {
65
64
  const path = store.searchParams?.get("path");
66
65
  const pathArrayAll = path.split(".");
67
66
 
68
- const parentObj = pathArrayAll.reduce((currObj, path, index)=>{
69
- if(index === pathArrayAll.length - 1){
70
- return currObj
71
- }
72
- const currElemIndexWithBracket = path.split('[')[1];
73
- const currElemIndex = parseInt(currElemIndexWithBracket.slice(0,-1));
74
- return currObj?.["elements"]?.[currElemIndex]
75
- }, currentConfig)
67
+ const parentObj = _.get(currentConfig, path)
68
+
69
+ // const parentObj = pathArrayAll.reduce((currObj, path, index)=>{
70
+ // if(index === pathArrayAll.length - 1){
71
+ // return currObj
72
+ // }
73
+ // const currElemIndexWithBracket = path.split('[')[1];
74
+ // const currElemIndex = parseInt(currElemIndexWithBracket.slice(0,-1));
75
+ // return currObj?.["elements"]?.[currElemIndex]
76
+ // }, currentConfig)
76
77
  if(parentObj?.type === "Table"){
77
78
  UiSchema.elements[0].elements[0].elements[4] =
78
79
  {
@@ -88,7 +89,8 @@ export function refreshPage (type: string, store: any) {
88
89
 
89
90
  },
90
91
  },
91
- };UiSchema.elements[0].elements[0].elements[5] =
92
+ };
93
+ UiSchema.elements[0].elements[0].elements[5] =
92
94
  {
93
95
  type: "Control",
94
96
  scope: "#/properties/filteringOptions",