impaktapps-ui-builder 1.0.290 → 1.0.292-hdb

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.
@@ -6272,7 +6272,6 @@ const ComponentSchema = {
6272
6272
  { title: "Rank", const: "Rank" },
6273
6273
  { title: "Rank Card", const: "RankCard" },
6274
6274
  { title: "Metric Card", const: "MetricCard" },
6275
- { title: "Hierarchy Chart", const: "HierarchyChart" },
6276
6275
  { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6277
6276
  { title: "Table", const: "Table" },
6278
6277
  { title: "Tabs", const: "TabSection" },
@@ -6336,13 +6335,6 @@ const ComponentSchema = {
6336
6335
  { title: "Standard", const: "standard" }
6337
6336
  ]
6338
6337
  },
6339
- linkType: {
6340
- oneOf: [
6341
- { title: "Step", const: "step" },
6342
- { title: "Diagonal", const: "diagonal" },
6343
- { title: "Line", const: "line" }
6344
- ]
6345
- },
6346
6338
  positionVertical: {
6347
6339
  oneOf: [
6348
6340
  { title: "Top", const: "top" },
@@ -8160,17 +8152,6 @@ const buildPropertiesSection = function(type) {
8160
8152
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
8161
8153
  ];
8162
8154
  break;
8163
- case "HierarchyChart":
8164
- uiSchema.elements = [
8165
- getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8166
- getSelectField("linkType", "Link Type"),
8167
- getInputField("nodeWidth", "Node Width"),
8168
- getInputField("nodeHeight", "Node Height"),
8169
- getInputField("chartHeight", "Chart Height"),
8170
- getInputField("stepPercent", "Link Bend Position"),
8171
- emptyBox$1("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 })
8172
- ];
8173
- break;
8174
8155
  case "MetricCard":
8175
8156
  uiSchema.elements = [
8176
8157
  getInputField("url", "Image Url"),
@@ -8225,10 +8206,10 @@ const buildPropertiesSection = function(type) {
8225
8206
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
8226
8207
  getInputField("leftMargin", "Left Margin"),
8227
8208
  getInputField("yAxisTickCount", "Y Axis TickCount"),
8209
+ getInputField("xAxisTickCount", "X Axis TickCount"),
8228
8210
  getSelectField("xAxisFormatType", "X Axis Format Type"),
8229
8211
  getInputField("growthRateKey", "Growth Rate Key"),
8230
8212
  getInputField("tooltipUnit", "Tooltip Unit"),
8231
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
8232
8213
  getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8233
8214
  getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
8234
8215
  ];
@@ -8414,13 +8395,13 @@ const StyleSection = {
8414
8395
  }
8415
8396
  ]
8416
8397
  };
8417
- const TableSection = (theme) => {
8398
+ const TableSection = (theme, scopeName = "elements") => {
8418
8399
  const uiSchema = {
8419
8400
  type: "HorizontalLayout",
8420
8401
  elements: [
8421
8402
  {
8422
8403
  type: "Control",
8423
- scope: "#/properties/elements",
8404
+ scope: `#/properties/${scopeName}`,
8424
8405
  options: {
8425
8406
  widget: "Table"
8426
8407
  },
@@ -8431,7 +8412,7 @@ const TableSection = (theme) => {
8431
8412
  {
8432
8413
  widget: {
8433
8414
  type: "Control",
8434
- scope: "#/properties/New_Record",
8415
+ scope: `#/properties/${scopeName}_New_Record`,
8435
8416
  options: {
8436
8417
  widget: "IconButton"
8437
8418
  },
@@ -8458,7 +8439,7 @@ const TableSection = (theme) => {
8458
8439
  {
8459
8440
  widget: {
8460
8441
  type: "Control",
8461
- scope: "#/properties/Paste_Component",
8442
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
8462
8443
  options: {
8463
8444
  widget: "IconButton"
8464
8445
  },
@@ -8523,7 +8504,7 @@ const TableSection = (theme) => {
8523
8504
  },
8524
8505
  {
8525
8506
  type: "Control",
8526
- scope: "#/properties/Copy_Component",
8507
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8527
8508
  options: {
8528
8509
  widget: "Button"
8529
8510
  },
@@ -8716,6 +8697,10 @@ var buildConfig = (FormData) => {
8716
8697
  if (formData.events) {
8717
8698
  delete formData.events;
8718
8699
  }
8700
+ if (formData.tabLabelsElements) {
8701
+ component.tabLabelsElements = formData.tabLabelsElements || [];
8702
+ delete formData.tabLabelsElements;
8703
+ }
8719
8704
  component = { ...formData, ...component };
8720
8705
  return component;
8721
8706
  };
@@ -8874,7 +8859,7 @@ const sectionLabels = {
8874
8859
  LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8875
8860
  WrapperSection: ["Core", "Components", "Properties", "Style"],
8876
8861
  HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8877
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8862
+ TabSection: ["Core", "Components", "TabLebelComponet", "Properties", "Style", "Validation"],
8878
8863
  SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8879
8864
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8880
8865
  UploadFile: ["Core", "Events", "Style", "Validation"],
@@ -8886,7 +8871,6 @@ const sectionLabels = {
8886
8871
  ProgressBar: ["Core", "Properties", "Events", "Style"],
8887
8872
  RankCard: ["Core", "Properties", "Events", "Style"],
8888
8873
  MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8889
- HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8890
8874
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8891
8875
  Timer: ["Core", "Events", "Style"],
8892
8876
  Rank: ["Core", "Events", "Style"],
@@ -8923,6 +8907,7 @@ function refreshPage(type, store2) {
8923
8907
  Style: StyleSection,
8924
8908
  Events: EventSection(store2.theme.myTheme),
8925
8909
  Components: TableSection(store2.theme.myTheme),
8910
+ TabLebelComponet: TableSection(store2.theme.myTheme, "tabLabelsElements"),
8926
8911
  Properties: buildPropertiesSection(type),
8927
8912
  Validation: ValidationSection
8928
8913
  };
@@ -9120,8 +9105,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9120
9105
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9121
9106
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9122
9107
  if (path) {
9123
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
9124
- const finalPath = `${path2}.elements[${rowId}]`;
9108
+ let finalPath = `${path}`;
9109
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabels")) {
9110
+ finalPath = `${finalPath}.tabLabelsElements[${rowId}]`;
9111
+ } else {
9112
+ finalPath = `${finalPath}.elements[${rowId}]`;
9113
+ }
9125
9114
  store2.searchParams.set("path", finalPath);
9126
9115
  store2.setSearchParams(store2.searchParams);
9127
9116
  this.setPage();
@@ -9133,7 +9122,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9133
9122
  var _a;
9134
9123
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9135
9124
  const rowId = sessionStorage.getItem("rowId");
9136
- store2.formData.elements.splice(rowId, 1);
9125
+ const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9126
+ if (isTabLabelElements) {
9127
+ store2.formData.tabLabelsElements.splice(rowId, 1);
9128
+ } else {
9129
+ store2.formData.elements.splice(rowId, 1);
9130
+ }
9137
9131
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
9138
9132
  const data = path ? _.get(response, path) : response;
9139
9133
  store2.setFormdata(data);
@@ -9141,6 +9135,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9141
9135
  store2.updateDialog("popUpComponentSection");
9142
9136
  }
9143
9137
  sessionStorage.removeItem("rowId");
9138
+ sessionStorage.removeItem("isTabLabelElements");
9144
9139
  },
9145
9140
  deleteEvent: function(shouldUpdateDialog = true) {
9146
9141
  var _a;
@@ -9161,9 +9156,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9161
9156
  if (!Array.isArray(store2.formData.elements)) {
9162
9157
  store2.formData.elements = [];
9163
9158
  }
9159
+ if (!Array.isArray(store2.formData.tabLabelsElements)) {
9160
+ store2.formData.tabLabelsElements = [];
9161
+ }
9164
9162
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9165
9163
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9166
- const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9164
+ let finalPath = `${path}`;
9165
+ if (dynamicData2.path.startsWith("tabLabels")) {
9166
+ finalPath = `${finalPath}.tabLabelsElements[${store2.formData.tabLabelsElements.length}]`;
9167
+ } else {
9168
+ finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9169
+ }
9167
9170
  store2.searchParams.set("path", finalPath);
9168
9171
  store2.setSearchParams(store2.searchParams);
9169
9172
  this.setPage();
@@ -9198,6 +9201,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9198
9201
  deletePopUpComponent: function() {
9199
9202
  const rowId = dynamicData2.path.split(".")[1];
9200
9203
  sessionStorage.setItem("rowId", rowId);
9204
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabels") ? "true" : "false");
9201
9205
  store2.updateDialog("popUpComponentSection");
9202
9206
  },
9203
9207
  deletePopUpEvent: function() {
@@ -9244,9 +9248,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9244
9248
  if (!Array.isArray(store2.formData.events)) {
9245
9249
  store2.formData.events = [];
9246
9250
  }
9251
+ if (!Array.isArray(store2.formData.tabLabelsElements)) {
9252
+ store2.formData.tabLabelsElements = [];
9253
+ }
9247
9254
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
9248
9255
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
9249
- const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
9256
+ const currentLength = {
9257
+ "TabsComponent": formData.tabLabelsElements.length,
9258
+ "Component": formData.elements.length,
9259
+ "Events": formData.events.length
9260
+ };
9261
+ const insertElementIndex = currentLength[elementType] || 0;
9250
9262
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
9251
9263
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
9252
9264
  const notificationMessages = {
@@ -9281,6 +9293,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9281
9293
  if (elementType === "Component") {
9282
9294
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9283
9295
  }
9296
+ if (elementType === "TabsComponent") {
9297
+ return `${parentPath}.tabLabelsElements[${rowId}]`;
9298
+ }
9284
9299
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9285
9300
  },
9286
9301
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -10956,28 +10971,6 @@ var service = (funcParams) => {
10956
10971
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10957
10972
  return response == null ? void 0 : response.data;
10958
10973
  },
10959
- onNodeExpandChange: async function(param) {
10960
- const apiBody = [
10961
- { key: "expandedNodeId", value: param.expandedNodeId }
10962
- ];
10963
- const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10964
- return response == null ? void 0 : response.data;
10965
- },
10966
- onNodeSearchChange: async function(param) {
10967
- const apiBody = [
10968
- { key: "searchTerm", value: param.searchTerm }
10969
- ];
10970
- const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10971
- return response == null ? void 0 : response.data;
10972
- },
10973
- onSearchNodeSelect: async function(param) {
10974
- const apiBody = [
10975
- { key: "selectedNodeId", value: param.selectedNodeId },
10976
- { key: "uncollapsedIds", value: param.uncollapsedIds }
10977
- ];
10978
- const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10979
- return response == null ? void 0 : response.data;
10980
- },
10981
10974
  getSelectOptions: async function(param) {
10982
10975
  if (param.serachValue !== "" && param.serachValue !== void 0) {
10983
10976
  const apiBody = [
@@ -13079,6 +13072,9 @@ const buildAreaGraph = (config2, componentScope2) => {
13079
13072
  if (config2.yAxisTickCount) {
13080
13073
  AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13081
13074
  }
13075
+ if (config2.xAxisTickCount) {
13076
+ AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13077
+ }
13082
13078
  if (config2.xAxisValue) {
13083
13079
  AreaGraph.config.main.xAxisValue = config2.xAxisValue;
13084
13080
  }
@@ -13132,6 +13128,9 @@ const buildStackBarLineGraph = (config2, componentScope2) => {
13132
13128
  if (config2.yAxisTickCount) {
13133
13129
  StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13134
13130
  }
13131
+ if (config2.xAxisTickCount) {
13132
+ StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13133
+ }
13135
13134
  if (config2.xAxisValue) {
13136
13135
  StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13137
13136
  }
@@ -13346,47 +13345,6 @@ const buildPdfViewer = (config2, componentScope2) => {
13346
13345
  }
13347
13346
  return PdfViewer;
13348
13347
  };
13349
- const HierarchyChart = {
13350
- type: "Control",
13351
- scope: "#/properties/HierarchyChart",
13352
- options: {
13353
- widget: "HierarchyChart"
13354
- },
13355
- config: {
13356
- layout: { xs: 12, sm: 12, md: 12, lg: 12 },
13357
- main: {},
13358
- style: { containerStyle: {}, labelStyle: { margin: {} } }
13359
- }
13360
- };
13361
- const buildHierarchyChart = (config2, componentScope2, store2) => {
13362
- const hierarchyChart = _.cloneDeep(HierarchyChart);
13363
- hierarchyChart.scope = componentScope2;
13364
- if (config2.style) {
13365
- hierarchyChart.config.style = JSON.parse(config2.style);
13366
- }
13367
- if (config2.layout) {
13368
- hierarchyChart.config.layout = createLayoutFormat(config2.layout);
13369
- }
13370
- if (config2.linkType) {
13371
- hierarchyChart.config.main.linkType = config2.linkType;
13372
- }
13373
- if (config2.stepPercent) {
13374
- hierarchyChart.config.main.stepPercent = config2.stepPercent;
13375
- }
13376
- if (config2.nodeWidth) {
13377
- hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
13378
- }
13379
- if (config2.nodeHeight) {
13380
- hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
13381
- }
13382
- if (config2.chartHeight) {
13383
- hierarchyChart.config.main.chartHeight = config2.chartHeight;
13384
- }
13385
- if (config2.lazyLoading) {
13386
- hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
13387
- }
13388
- return hierarchyChart;
13389
- };
13390
13348
  let schema = {
13391
13349
  type: "object",
13392
13350
  properties: {},
@@ -13550,9 +13508,6 @@ const buildUiSchema = (config2, store2) => {
13550
13508
  case "MetricCard":
13551
13509
  elements = buildMetricCard(config2, componentScope2);
13552
13510
  break;
13553
- case "HierarchyChart":
13554
- elements = buildHierarchyChart(config2, componentScope2);
13555
- break;
13556
13511
  case "Graph":
13557
13512
  switch (config2.graphType) {
13558
13513
  case "BarGraph":