impaktapps-ui-builder 0.0.409-j → 0.0.409-l

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.
@@ -7571,34 +7571,34 @@ function okHandler(store2) {
7571
7571
  }
7572
7572
  }
7573
7573
  const sectionLabels = {
7574
- Select: ["Core", "Properties", "Value", "style", "Event", "Validation"],
7575
- MultipleSelect: ["Core", "Properties", "Value", "style", "Event", "Validation"],
7576
- Table: ["Core", "Components", "Properties", "style", "Event", "Validation"],
7577
- LeaderBoard: ["Core", "Components", "Properties", "style", "Event", "Validation"],
7578
- WrapperSection: ["Core", "Components", "Properties", "style", "Validation"],
7579
- TabSection: ["Core", "Components", "Properties", "style", "Validation"],
7580
- SpeedoMeter: ["Core", "Properties", "style", "Event", "Validation"],
7581
- card: ["Core", "Properties", "style", "Event", "Validation"],
7582
- UploadFile: ["Core", "style", "Event", "Validation"],
7583
- Graph: ["Core", "Properties", "style", "Event", "Validation"],
7584
- DownloadFile: ["Core", "style", "Event", "Validation"],
7585
- Box: ["Core", "style", "Event", "Validation"],
7586
- Properties: ["Core", "Properties", "style", "Event", "Validation"],
7587
- ProgressBarCard: ["Core", "Properties", "style", "Event", "Validation"],
7588
- RankCard: ["Core", "Properties", "style", "Event", "Validation"],
7589
- Slider: ["Core", "Components", "style", "Event", "Validation"],
7590
- Timer: ["Core", "style", "Event", "Validation"],
7591
- Rank: ["Core", "style", "Event", "Validation"],
7592
- Button: ["Core", "Properties", "style", "Event", "Validation"],
7574
+ Select: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
7575
+ MultipleSelect: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
7576
+ Table: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
7577
+ LeaderBoard: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
7578
+ WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
7579
+ TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
7580
+ SpeedoMeter: ["Core", "Properties", "Event", "Style", "Validation"],
7581
+ card: ["Core", "Properties", "Event", "Style", "Validation"],
7582
+ UploadFile: ["Core", "Event", "Style", "Validation"],
7583
+ Graph: ["Core", "Properties", "Event", "Style", "Validation"],
7584
+ DownloadFile: ["Core", "Event", "Style", "Validation"],
7585
+ Box: ["Core", "Event", "Style", "Validation"],
7586
+ Properties: ["Core", "Properties", "Event", "Style", "Validation"],
7587
+ ProgressBarCard: ["Core", "Properties", "Event", "Style", "Validation"],
7588
+ RankCard: ["Core", "Properties", "Event", "Style", "Validation"],
7589
+ Slider: ["Core", "Components", "Event", "Style", "Validation"],
7590
+ Timer: ["Core", "Event", "Style", "Validation"],
7591
+ Rank: ["Core", "Event", "Style", "Validation"],
7592
+ Button: ["Core", "Properties", "Event", "Style", "Validation"],
7593
7593
  Array: ["Core", "Components", "Validation"],
7594
- Radio: ["Core", "Properties", "style", "Event", "Validation"],
7595
- Text: ["Core", "Properties", "style", "Event", "Validation"],
7596
- TextArea: ["Core", "Properties", "style", "Event", "Validation"],
7597
- PopUp: ["Core", "Components", "Properties", "style"],
7598
- Stepper: ["Core", "Components", "Properties", "Event", "style"],
7599
- DataGrid: ["Core", "Components", "Properties", "Event", "style"],
7600
- InputSlider: ["Core", "Properties", "style", "Event", "Validation"],
7601
- TreeMap: ["Core", "Components", "Properties", "style", "Event"]
7594
+ Radio: ["Core", "Properties", "Event", "Style", "Validation"],
7595
+ Text: ["Core", "Properties", "Event", "Style", "Validation"],
7596
+ TextArea: ["Core", "Properties", "Event", "Style", "Validation"],
7597
+ PopUp: ["Core", "Components", "Properties", "Style"],
7598
+ Stepper: ["Core", "Components", "Properties", "Event", "Style"],
7599
+ DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
7600
+ InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
7601
+ TreeMap: ["Core", "Components", "Properties", "Event", "Style"]
7602
7602
  };
7603
7603
  const refreshPage = (type, store2) => {
7604
7604
  var _a;
@@ -7607,7 +7607,7 @@ const refreshPage = (type, store2) => {
7607
7607
  const sectionUiSchema = {
7608
7608
  Core: CoreSection,
7609
7609
  Value: ValueTab,
7610
- style: StyleSection,
7610
+ Style: StyleSection,
7611
7611
  Event: EventSection,
7612
7612
  Components: TableSection,
7613
7613
  Properties: buildPropertiesSection(type),
@@ -8608,7 +8608,7 @@ function executeInBuiltFunctionHandler(params) {
8608
8608
  function executeCustomHandler(params) {
8609
8609
  const makeFunc = eval(params.config.eventCode);
8610
8610
  if (params.config.isSync !== "Yes") {
8611
- makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName).then((res) => res);
8611
+ return makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName).then((res) => res);
8612
8612
  } else {
8613
8613
  const response = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName);
8614
8614
  return response;
@@ -11214,13 +11214,54 @@ const buildUiSchema = (config) => {
11214
11214
  if ((config == null ? void 0 : config.type) === "LeaderBoard") {
11215
11215
  return elements;
11216
11216
  } else if (config.type == "Table") {
11217
+ let nodeProvider2 = function(element) {
11218
+ if (element.type) {
11219
+ return {
11220
+ accessorKey: element.name,
11221
+ type: element.columnFormat,
11222
+ header: element.label || element.name,
11223
+ size: sizeMap[element.name] || 180,
11224
+ widget: buildUiSchema(element)
11225
+ };
11226
+ }
11227
+ return {
11228
+ accessorKey: element.name,
11229
+ type: element.columnFormat,
11230
+ header: element.label || element.name,
11231
+ size: sizeMap[element.name] || 180
11232
+ };
11233
+ }, buildHierarchy2 = function(elements2, parentName = null) {
11234
+ const result = [];
11235
+ for (const element of elements2) {
11236
+ if ((element == null ? void 0 : element.parent) === parentName) {
11237
+ const children = buildHierarchy2(elements2, element.name);
11238
+ const node = nodeProvider2(element);
11239
+ if (children.length > 0) {
11240
+ node.columns = children;
11241
+ node.type = "group";
11242
+ }
11243
+ result.push(node);
11244
+ }
11245
+ }
11246
+ return result;
11247
+ }, transformConfigToOutput2 = function(config2) {
11248
+ const output = [];
11249
+ const hierarchy = buildHierarchy2(config2.elements, config2.name);
11250
+ for (const element of config2.elements) {
11251
+ const parentExists = config2.elements.some((e) => e.name === element.parent);
11252
+ if (!parentExists && element.parent !== config2.name) {
11253
+ output.push(nodeProvider2(element));
11254
+ }
11255
+ }
11256
+ return [...hierarchy, ...output];
11257
+ };
11217
11258
  const sizeMap = {};
11218
11259
  if (config.sizeHolder) {
11219
11260
  config.sizeHolder.map((e, i) => {
11220
11261
  sizeMap[e.keyName] = e.value;
11221
11262
  });
11222
11263
  }
11223
- elements.elements = transformConfigToOutput(config, sizeMap);
11264
+ elements.elements = transformConfigToOutput2(config);
11224
11265
  } else if (config.type == "Array") {
11225
11266
  elements.options.detail.elements = config.elements.map((e, elemInd) => {
11226
11267
  return buildUiSchema(e);
@@ -11233,48 +11274,5 @@ const buildUiSchema = (config) => {
11233
11274
  }
11234
11275
  return elements;
11235
11276
  };
11236
- function nodeProvider(element, sizeMap) {
11237
- if (element.type) {
11238
- return {
11239
- accessorKey: element.name,
11240
- type: element.columnFormat,
11241
- header: element.label || element.name,
11242
- size: sizeMap[element.name] || 180,
11243
- widget: buildUiSchema(element)
11244
- };
11245
- }
11246
- return {
11247
- accessorKey: element.name,
11248
- type: element.columnFormat,
11249
- header: element.label || element.name,
11250
- size: sizeMap[element.name] || 180
11251
- };
11252
- }
11253
- function buildHierarchy(elements, parentName = null, sizeMap) {
11254
- const result = [];
11255
- for (const element of elements) {
11256
- if ((element == null ? void 0 : element.parent) === parentName) {
11257
- const children = buildHierarchy(elements, element.name, sizeMap);
11258
- const node = nodeProvider(element, sizeMap);
11259
- if (children.length > 0) {
11260
- node.columns = children;
11261
- node.type = "group";
11262
- }
11263
- result.push(node);
11264
- }
11265
- }
11266
- return result;
11267
- }
11268
- function transformConfigToOutput(config, sizeMap) {
11269
- const output = [];
11270
- const hierarchy = buildHierarchy(config.elements, config.name, schema);
11271
- for (const element of config.elements) {
11272
- const parentExists = config.elements.some((e) => e.name === element.parent);
11273
- if (!parentExists && element.parent !== config.name) {
11274
- output.push(nodeProvider(element, sizeMap));
11275
- }
11276
- }
11277
- return [...hierarchy, ...output];
11278
- }
11279
11277
  export { buildConfig, buildSchema, buildUiSchema, clearFromLocalStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
11280
11278
  //# sourceMappingURL=impaktapps-ui-builder.es.js.map