impaktapps-ui-builder 1.0.290-hdb → 1.0.291

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.
@@ -8166,10 +8166,9 @@ const buildPropertiesSection = function(type) {
8166
8166
  getSelectField("linkType", "Link Type"),
8167
8167
  getInputField("nodeWidth", "Node Width"),
8168
8168
  getInputField("nodeHeight", "Node Height"),
8169
- getRadioInputField("isExpandAll", "Expand All", ["YES", "NO"]),
8170
8169
  getInputField("chartHeight", "Chart Height"),
8171
8170
  getInputField("stepPercent", "Link Bend Position"),
8172
- emptyBox$1("HierarchyChart", { xs: 6, sm: 6, md: 0, lg: 3 })
8171
+ emptyBox$1("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 })
8173
8172
  ];
8174
8173
  break;
8175
8174
  case "MetricCard":
@@ -8226,10 +8225,10 @@ const buildPropertiesSection = function(type) {
8226
8225
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
8227
8226
  getInputField("leftMargin", "Left Margin"),
8228
8227
  getInputField("yAxisTickCount", "Y Axis TickCount"),
8229
- getInputField("xAxisTickCount", "X Axis TickCount"),
8230
8228
  getSelectField("xAxisFormatType", "X Axis Format Type"),
8231
8229
  getInputField("growthRateKey", "Growth Rate Key"),
8232
8230
  getInputField("tooltipUnit", "Tooltip Unit"),
8231
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
8233
8232
  getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8234
8233
  getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
8235
8234
  ];
@@ -8415,13 +8414,13 @@ const StyleSection = {
8415
8414
  }
8416
8415
  ]
8417
8416
  };
8418
- const TableSection = (theme) => {
8417
+ const TableSection = (theme, scopeName = "elements") => {
8419
8418
  const uiSchema = {
8420
8419
  type: "HorizontalLayout",
8421
8420
  elements: [
8422
8421
  {
8423
8422
  type: "Control",
8424
- scope: "#/properties/elements",
8423
+ scope: `#/properties/${scopeName}`,
8425
8424
  options: {
8426
8425
  widget: "Table"
8427
8426
  },
@@ -8432,7 +8431,7 @@ const TableSection = (theme) => {
8432
8431
  {
8433
8432
  widget: {
8434
8433
  type: "Control",
8435
- scope: "#/properties/New_Record",
8434
+ scope: `#/properties/${scopeName}_New_Record`,
8436
8435
  options: {
8437
8436
  widget: "IconButton"
8438
8437
  },
@@ -8459,7 +8458,7 @@ const TableSection = (theme) => {
8459
8458
  {
8460
8459
  widget: {
8461
8460
  type: "Control",
8462
- scope: "#/properties/Paste_Component",
8461
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
8463
8462
  options: {
8464
8463
  widget: "IconButton"
8465
8464
  },
@@ -8524,7 +8523,7 @@ const TableSection = (theme) => {
8524
8523
  },
8525
8524
  {
8526
8525
  type: "Control",
8527
- scope: "#/properties/Copy_Component",
8526
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8528
8527
  options: {
8529
8528
  widget: "Button"
8530
8529
  },
@@ -8717,6 +8716,10 @@ var buildConfig = (FormData) => {
8717
8716
  if (formData.events) {
8718
8717
  delete formData.events;
8719
8718
  }
8719
+ if (formData.tabLabelElements) {
8720
+ component.tabLabelElements = formData.tabLabelElements || [];
8721
+ delete formData.tabLabelElements;
8722
+ }
8720
8723
  component = { ...formData, ...component };
8721
8724
  return component;
8722
8725
  };
@@ -8875,7 +8878,7 @@ const sectionLabels = {
8875
8878
  LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8876
8879
  WrapperSection: ["Core", "Components", "Properties", "Style"],
8877
8880
  HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8878
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8881
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8879
8882
  SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8880
8883
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8881
8884
  UploadFile: ["Core", "Events", "Style", "Validation"],
@@ -8924,6 +8927,7 @@ function refreshPage(type, store2) {
8924
8927
  Style: StyleSection,
8925
8928
  Events: EventSection(store2.theme.myTheme),
8926
8929
  Components: TableSection(store2.theme.myTheme),
8930
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8927
8931
  Properties: buildPropertiesSection(type),
8928
8932
  Validation: ValidationSection
8929
8933
  };
@@ -9121,8 +9125,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9121
9125
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9122
9126
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9123
9127
  if (path) {
9124
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
9125
- const finalPath = `${path2}.elements[${rowId}]`;
9128
+ let finalPath = `${path}`;
9129
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9130
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9131
+ } else {
9132
+ finalPath = `${finalPath}.elements[${rowId}]`;
9133
+ }
9126
9134
  store2.searchParams.set("path", finalPath);
9127
9135
  store2.setSearchParams(store2.searchParams);
9128
9136
  this.setPage();
@@ -9134,7 +9142,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9134
9142
  var _a;
9135
9143
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9136
9144
  const rowId = sessionStorage.getItem("rowId");
9137
- store2.formData.elements.splice(rowId, 1);
9145
+ const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9146
+ if (isTabLabelElements) {
9147
+ store2.formData.tabLabelElements.splice(rowId, 1);
9148
+ } else {
9149
+ store2.formData.elements.splice(rowId, 1);
9150
+ }
9138
9151
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
9139
9152
  const data = path ? _.get(response, path) : response;
9140
9153
  store2.setFormdata(data);
@@ -9142,6 +9155,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9142
9155
  store2.updateDialog("popUpComponentSection");
9143
9156
  }
9144
9157
  sessionStorage.removeItem("rowId");
9158
+ sessionStorage.removeItem("isTabLabelElements");
9145
9159
  },
9146
9160
  deleteEvent: function(shouldUpdateDialog = true) {
9147
9161
  var _a;
@@ -9162,9 +9176,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9162
9176
  if (!Array.isArray(store2.formData.elements)) {
9163
9177
  store2.formData.elements = [];
9164
9178
  }
9179
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9180
+ store2.formData.tabLabelElements = [];
9181
+ }
9165
9182
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9166
9183
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9167
- const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9184
+ let finalPath = `${path}`;
9185
+ if (dynamicData2.path.startsWith("tabLabel")) {
9186
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9187
+ } else {
9188
+ finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9189
+ }
9168
9190
  store2.searchParams.set("path", finalPath);
9169
9191
  store2.setSearchParams(store2.searchParams);
9170
9192
  this.setPage();
@@ -9199,6 +9221,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9199
9221
  deletePopUpComponent: function() {
9200
9222
  const rowId = dynamicData2.path.split(".")[1];
9201
9223
  sessionStorage.setItem("rowId", rowId);
9224
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
9202
9225
  store2.updateDialog("popUpComponentSection");
9203
9226
  },
9204
9227
  deletePopUpEvent: function() {
@@ -9245,9 +9268,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9245
9268
  if (!Array.isArray(store2.formData.events)) {
9246
9269
  store2.formData.events = [];
9247
9270
  }
9271
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9272
+ store2.formData.tabLabelElements = [];
9273
+ }
9248
9274
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
9249
9275
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
9250
- const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
9276
+ const currentLength = {
9277
+ "TabsComponent": formData.tabLabelElements.length,
9278
+ "Component": formData.elements.length,
9279
+ "Events": formData.events.length
9280
+ };
9281
+ const insertElementIndex = currentLength[elementType] || 0;
9251
9282
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
9252
9283
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
9253
9284
  const notificationMessages = {
@@ -9282,6 +9313,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9282
9313
  if (elementType === "Component") {
9283
9314
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9284
9315
  }
9316
+ if (elementType === "TabsComponent") {
9317
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9318
+ }
9285
9319
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9286
9320
  },
9287
9321
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -10964,21 +10998,6 @@ var service = (funcParams) => {
10964
10998
  const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10965
10999
  return response == null ? void 0 : response.data;
10966
11000
  },
10967
- onNodeSearchChange: async function(param) {
10968
- const apiBody = [
10969
- { key: "searchTerm", value: param.searchTerm }
10970
- ];
10971
- const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10972
- return response == null ? void 0 : response.data;
10973
- },
10974
- onSearchNodeSelect: async function(param) {
10975
- const apiBody = [
10976
- { key: "selectedNodeId", value: param.selectedNodeId },
10977
- { key: "uncollapsedIds", value: param.uncollapsedIds }
10978
- ];
10979
- const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10980
- return response == null ? void 0 : response.data;
10981
- },
10982
11001
  getSelectOptions: async function(param) {
10983
11002
  if (param.serachValue !== "" && param.serachValue !== void 0) {
10984
11003
  const apiBody = [
@@ -13080,9 +13099,6 @@ const buildAreaGraph = (config2, componentScope2) => {
13080
13099
  if (config2.yAxisTickCount) {
13081
13100
  AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13082
13101
  }
13083
- if (config2.xAxisTickCount) {
13084
- AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13085
- }
13086
13102
  if (config2.xAxisValue) {
13087
13103
  AreaGraph.config.main.xAxisValue = config2.xAxisValue;
13088
13104
  }
@@ -13136,9 +13152,6 @@ const buildStackBarLineGraph = (config2, componentScope2) => {
13136
13152
  if (config2.yAxisTickCount) {
13137
13153
  StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13138
13154
  }
13139
- if (config2.xAxisTickCount) {
13140
- StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13141
- }
13142
13155
  if (config2.xAxisValue) {
13143
13156
  StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13144
13157
  }
@@ -13392,9 +13405,6 @@ const buildHierarchyChart = (config2, componentScope2, store2) => {
13392
13405
  if (config2.lazyLoading) {
13393
13406
  hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
13394
13407
  }
13395
- if (config2.isExpandAll) {
13396
- hierarchyChart.config.main.isExpandAll = config2.isExpandAll === "YES" ? true : false;
13397
- }
13398
13408
  return hierarchyChart;
13399
13409
  };
13400
13410
  let schema = {
@@ -13739,6 +13749,11 @@ const buildUiSchema = (config2, store2) => {
13739
13749
  });
13740
13750
  }
13741
13751
  }
13752
+ if (config2.tabLabelElements) {
13753
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13754
+ return buildUiSchema(e, store2);
13755
+ });
13756
+ }
13742
13757
  return elements;
13743
13758
  };
13744
13759
  export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };