impaktapps-ui-builder 1.0.483 → 1.0.485

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.
@@ -6711,7 +6711,12 @@ const ComponentSchema = {
6711
6711
  { title: "Clone Icon", const: "CloneIcon" },
6712
6712
  { title: "Detail Icon", const: "DetailIcon" },
6713
6713
  { title: "Report View Icon", const: "ReportViewIcon" },
6714
- { title: "Payout", const: "Payout" }
6714
+ { title: "Payout", const: "Payout" },
6715
+ { title: "Info Outlined", const: "InfoOutlinedIcon" },
6716
+ { title: "Territory Add", const: "TerritoryAdd" },
6717
+ { title: "Territory Edit", const: "TerritoryEdit" },
6718
+ { title: "Territory Delete", const: "TerritoryDelete" },
6719
+ { title: "Git Compare", const: "GitCompare" }
6715
6720
  ]
6716
6721
  },
6717
6722
  color: {
@@ -8160,7 +8165,7 @@ const buildPropertiesSection = function(type) {
8160
8165
  getInputField("description", "Description"),
8161
8166
  getSelectField("growthRate", "Growth Rate"),
8162
8167
  getInputField("color", "Card Color"),
8163
- emptyBox$1("MetricEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 })
8168
+ emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8164
8169
  ];
8165
8170
  break;
8166
8171
  case "Button":
@@ -8206,10 +8211,10 @@ const buildPropertiesSection = function(type) {
8206
8211
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
8207
8212
  getInputField("leftMargin", "Left Margin"),
8208
8213
  getInputField("yAxisTickCount", "Y Axis TickCount"),
8214
+ getInputField("xAxisTickCount", "X Axis TickCount"),
8209
8215
  getSelectField("xAxisFormatType", "X Axis Format Type"),
8210
8216
  getInputField("growthRateKey", "Growth Rate Key"),
8211
8217
  getInputField("tooltipUnit", "Tooltip Unit"),
8212
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
8213
8218
  getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8214
8219
  getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
8215
8220
  ];
@@ -8259,7 +8264,6 @@ const buildPropertiesSection = function(type) {
8259
8264
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
8260
8265
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
8261
8266
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
8262
- getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
8263
8267
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
8264
8268
  getInputField("defaultColumnSize", "Default Column Size"),
8265
8269
  ,
@@ -8398,13 +8402,13 @@ const StyleSection = {
8398
8402
  }
8399
8403
  ]
8400
8404
  };
8401
- const TableSection = (theme) => {
8405
+ const TableSection = (theme, scopeName = "elements") => {
8402
8406
  const uiSchema = {
8403
8407
  type: "HorizontalLayout",
8404
8408
  elements: [
8405
8409
  {
8406
8410
  type: "Control",
8407
- scope: "#/properties/elements",
8411
+ scope: `#/properties/${scopeName}`,
8408
8412
  options: {
8409
8413
  widget: "Table"
8410
8414
  },
@@ -8415,7 +8419,7 @@ const TableSection = (theme) => {
8415
8419
  {
8416
8420
  widget: {
8417
8421
  type: "Control",
8418
- scope: "#/properties/New_Record",
8422
+ scope: `#/properties/${scopeName}_New_Record`,
8419
8423
  options: {
8420
8424
  widget: "IconButton"
8421
8425
  },
@@ -8442,7 +8446,7 @@ const TableSection = (theme) => {
8442
8446
  {
8443
8447
  widget: {
8444
8448
  type: "Control",
8445
- scope: "#/properties/Paste_Component",
8449
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
8446
8450
  options: {
8447
8451
  widget: "IconButton"
8448
8452
  },
@@ -8507,7 +8511,7 @@ const TableSection = (theme) => {
8507
8511
  },
8508
8512
  {
8509
8513
  type: "Control",
8510
- scope: "#/properties/Copy_Component",
8514
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8511
8515
  options: {
8512
8516
  widget: "Button"
8513
8517
  },
@@ -8700,6 +8704,10 @@ var buildConfig = (FormData) => {
8700
8704
  if (formData.events) {
8701
8705
  delete formData.events;
8702
8706
  }
8707
+ if (formData.tabLabelElements) {
8708
+ component.tabLabelElements = formData.tabLabelElements || [];
8709
+ delete formData.tabLabelElements;
8710
+ }
8703
8711
  component = { ...formData, ...component };
8704
8712
  return component;
8705
8713
  };
@@ -8858,7 +8866,7 @@ const sectionLabels = {
8858
8866
  LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8859
8867
  WrapperSection: ["Core", "Components", "Properties", "Style"],
8860
8868
  HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8861
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8869
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8862
8870
  SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8863
8871
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8864
8872
  UploadFile: ["Core", "Events", "Style", "Validation"],
@@ -8906,6 +8914,7 @@ function refreshPage(type, store2) {
8906
8914
  Style: StyleSection,
8907
8915
  Events: EventSection(store2.theme.myTheme),
8908
8916
  Components: TableSection(store2.theme.myTheme),
8917
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8909
8918
  Properties: buildPropertiesSection(type),
8910
8919
  Validation: ValidationSection
8911
8920
  };
@@ -9103,8 +9112,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9103
9112
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9104
9113
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9105
9114
  if (path) {
9106
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
9107
- const finalPath = `${path2}.elements[${rowId}]`;
9115
+ let finalPath = `${path}`;
9116
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9117
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9118
+ } else {
9119
+ finalPath = `${finalPath}.elements[${rowId}]`;
9120
+ }
9108
9121
  store2.searchParams.set("path", finalPath);
9109
9122
  store2.setSearchParams(store2.searchParams);
9110
9123
  this.setPage();
@@ -9116,7 +9129,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9116
9129
  var _a;
9117
9130
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9118
9131
  const rowId = sessionStorage.getItem("rowId");
9119
- store2.formData.elements.splice(rowId, 1);
9132
+ const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9133
+ if (isTabLabelElements) {
9134
+ store2.formData.tabLabelElements.splice(rowId, 1);
9135
+ } else {
9136
+ store2.formData.elements.splice(rowId, 1);
9137
+ }
9120
9138
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
9121
9139
  const data = path ? _.get(response, path) : response;
9122
9140
  store2.setFormdata(data);
@@ -9124,6 +9142,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9124
9142
  store2.updateDialog("popUpComponentSection");
9125
9143
  }
9126
9144
  sessionStorage.removeItem("rowId");
9145
+ sessionStorage.removeItem("isTabLabelElements");
9127
9146
  },
9128
9147
  deleteEvent: function(shouldUpdateDialog = true) {
9129
9148
  var _a;
@@ -9144,9 +9163,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9144
9163
  if (!Array.isArray(store2.formData.elements)) {
9145
9164
  store2.formData.elements = [];
9146
9165
  }
9166
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9167
+ store2.formData.tabLabelElements = [];
9168
+ }
9147
9169
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9148
9170
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9149
- const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9171
+ let finalPath = `${path}`;
9172
+ if (dynamicData2.path.startsWith("tabLabel")) {
9173
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9174
+ } else {
9175
+ finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9176
+ }
9150
9177
  store2.searchParams.set("path", finalPath);
9151
9178
  store2.setSearchParams(store2.searchParams);
9152
9179
  this.setPage();
@@ -9181,6 +9208,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9181
9208
  deletePopUpComponent: function() {
9182
9209
  const rowId = dynamicData2.path.split(".")[1];
9183
9210
  sessionStorage.setItem("rowId", rowId);
9211
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
9184
9212
  store2.updateDialog("popUpComponentSection");
9185
9213
  },
9186
9214
  deletePopUpEvent: function() {
@@ -9227,9 +9255,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9227
9255
  if (!Array.isArray(store2.formData.events)) {
9228
9256
  store2.formData.events = [];
9229
9257
  }
9258
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9259
+ store2.formData.tabLabelElements = [];
9260
+ }
9230
9261
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
9231
9262
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
9232
- const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
9263
+ const currentLength = {
9264
+ "TabsComponent": formData.tabLabelElements.length,
9265
+ "Component": formData.elements.length,
9266
+ "Events": formData.events.length
9267
+ };
9268
+ const insertElementIndex = currentLength[elementType] || 0;
9233
9269
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
9234
9270
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
9235
9271
  const notificationMessages = {
@@ -9264,6 +9300,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9264
9300
  if (elementType === "Component") {
9265
9301
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9266
9302
  }
9303
+ if (elementType === "TabsComponent") {
9304
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9305
+ }
9267
9306
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9268
9307
  },
9269
9308
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -10927,14 +10966,15 @@ var service = (funcParams) => {
10927
10966
  return response == null ? void 0 : response.data;
10928
10967
  },
10929
10968
  onPaginationChange: async function(paginationValues) {
10930
- var _a, _b;
10969
+ var _a;
10931
10970
  const apiBody = [
10932
10971
  { key: "size", value: paginationValues.pagination.pageSize },
10933
10972
  { key: "pageIndex", value: paginationValues.pagination.pageIndex },
10934
10973
  { key: "sorting", value: paginationValues.sorting || [] },
10935
10974
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10936
10975
  { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
10937
- { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
10976
+ { key: "parentIds", value: paginationValues.parentIds },
10977
+ { key: "isExpandAll", value: paginationValues.isExpandAll }
10938
10978
  ];
10939
10979
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10940
10980
  return response == null ? void 0 : response.data;
@@ -11768,9 +11808,6 @@ const buildTable = (config2, componentScope2) => {
11768
11808
  if (config2.paginateExpandedRows) {
11769
11809
  table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
11770
11810
  }
11771
- if (config2.treeStructure) {
11772
- table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
11773
- }
11774
11811
  if (config2.SelectionAvailable) {
11775
11812
  table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
11776
11813
  }
@@ -13046,6 +13083,9 @@ const buildAreaGraph = (config2, componentScope2) => {
13046
13083
  if (config2.yAxisTickCount) {
13047
13084
  AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13048
13085
  }
13086
+ if (config2.xAxisTickCount) {
13087
+ AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13088
+ }
13049
13089
  if (config2.xAxisValue) {
13050
13090
  AreaGraph.config.main.xAxisValue = config2.xAxisValue;
13051
13091
  }
@@ -13099,6 +13139,9 @@ const buildStackBarLineGraph = (config2, componentScope2) => {
13099
13139
  if (config2.yAxisTickCount) {
13100
13140
  StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13101
13141
  }
13142
+ if (config2.xAxisTickCount) {
13143
+ StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13144
+ }
13102
13145
  if (config2.xAxisValue) {
13103
13146
  StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13104
13147
  }
@@ -13652,6 +13695,11 @@ const buildUiSchema = (config2, store2) => {
13652
13695
  });
13653
13696
  }
13654
13697
  }
13698
+ if (config2.tabLabelElements) {
13699
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13700
+ return buildUiSchema(e, store2);
13701
+ });
13702
+ }
13655
13703
  return elements;
13656
13704
  };
13657
13705
  export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };