impaktapps-ui-builder 1.0.428 → 1.0.430-test-1

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: {
@@ -8083,7 +8088,8 @@ const buildPropertiesSection = function(type) {
8083
8088
  getSelectField("variant", "Variant"),
8084
8089
  getInputField("toolTip", "Tooltip"),
8085
8090
  getSelectField("toolTipPosition", "Tooltip Position"),
8086
- emptyBox$1("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
8091
+ getSelectField("iconName", "Icon Name"),
8092
+ emptyBox$1("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
8087
8093
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
8088
8094
  getInputField("keyName", "Event Key Name")
8089
8095
  ];
@@ -8160,7 +8166,7 @@ const buildPropertiesSection = function(type) {
8160
8166
  getInputField("description", "Description"),
8161
8167
  getSelectField("growthRate", "Growth Rate"),
8162
8168
  getInputField("color", "Card Color"),
8163
- emptyBox$1("MetricEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 })
8169
+ emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8164
8170
  ];
8165
8171
  break;
8166
8172
  case "Button":
@@ -8206,10 +8212,10 @@ const buildPropertiesSection = function(type) {
8206
8212
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
8207
8213
  getInputField("leftMargin", "Left Margin"),
8208
8214
  getInputField("yAxisTickCount", "Y Axis TickCount"),
8215
+ getInputField("xAxisTickCount", "X Axis TickCount"),
8209
8216
  getSelectField("xAxisFormatType", "X Axis Format Type"),
8210
8217
  getInputField("growthRateKey", "Growth Rate Key"),
8211
8218
  getInputField("tooltipUnit", "Tooltip Unit"),
8212
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
8213
8219
  getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8214
8220
  getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
8215
8221
  ];
@@ -8246,6 +8252,7 @@ const buildPropertiesSection = function(type) {
8246
8252
  getRadioInputField("disableGlobalSearch", "Disable Global Search", ["YES", "NO"]),
8247
8253
  getRadioInputField("disableColumnFilter", "Disable Column Filter", ["YES", "NO"]),
8248
8254
  getRadioInputField("disableSorting", "Disable Sorting", ["YES", "NO"]),
8255
+ getRadioInputField("mergeExpandIcon", "Merge Expand Icon", ["YES", "NO"]),
8249
8256
  getRadioInputField("disableEditColumn", "Disable Edit Column", ["YES", "NO"]),
8250
8257
  getRadioInputField("disableFullScreenToggle", "Disable Full Screen", ["YES", "NO"]),
8251
8258
  getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
@@ -8258,12 +8265,13 @@ const buildPropertiesSection = function(type) {
8258
8265
  buildWrapper("Tree Table Properties", [
8259
8266
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
8260
8267
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
8261
- getRadioInputField("lazyLoadTree", "Lazy Load Tree", ["YES", "NO"]),
8262
8268
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
8263
8269
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
8264
8270
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
8265
8271
  getInputField("defaultColumnSize", "Default Column Size"),
8266
- getInputField("subRowsExpansionPageSize", "Page Size for Subrows Expansion"),
8272
+ getInputField("expandedKey", "Expanded Key"),
8273
+ getInputField("parentIdKey", "Parent Key"),
8274
+ getInputField("defaultColumnSize", "Default Column Size"),
8267
8275
  emptyBox$1("LazyLoadingTableEmpty3")
8268
8276
  ]),
8269
8277
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
@@ -8396,13 +8404,13 @@ const StyleSection = {
8396
8404
  }
8397
8405
  ]
8398
8406
  };
8399
- const TableSection = (theme) => {
8407
+ const TableSection = (theme, scopeName = "elements") => {
8400
8408
  const uiSchema = {
8401
8409
  type: "HorizontalLayout",
8402
8410
  elements: [
8403
8411
  {
8404
8412
  type: "Control",
8405
- scope: "#/properties/elements",
8413
+ scope: `#/properties/${scopeName}`,
8406
8414
  options: {
8407
8415
  widget: "Table"
8408
8416
  },
@@ -8413,7 +8421,7 @@ const TableSection = (theme) => {
8413
8421
  {
8414
8422
  widget: {
8415
8423
  type: "Control",
8416
- scope: "#/properties/New_Record",
8424
+ scope: `#/properties/${scopeName}_New_Record`,
8417
8425
  options: {
8418
8426
  widget: "IconButton"
8419
8427
  },
@@ -8440,7 +8448,7 @@ const TableSection = (theme) => {
8440
8448
  {
8441
8449
  widget: {
8442
8450
  type: "Control",
8443
- scope: "#/properties/Paste_Component",
8451
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
8444
8452
  options: {
8445
8453
  widget: "IconButton"
8446
8454
  },
@@ -8505,7 +8513,7 @@ const TableSection = (theme) => {
8505
8513
  },
8506
8514
  {
8507
8515
  type: "Control",
8508
- scope: "#/properties/Copy_Component",
8516
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8509
8517
  options: {
8510
8518
  widget: "Button"
8511
8519
  },
@@ -8698,6 +8706,10 @@ var buildConfig = (FormData) => {
8698
8706
  if (formData.events) {
8699
8707
  delete formData.events;
8700
8708
  }
8709
+ if (formData.tabLabelElements) {
8710
+ component.tabLabelElements = formData.tabLabelElements || [];
8711
+ delete formData.tabLabelElements;
8712
+ }
8701
8713
  component = { ...formData, ...component };
8702
8714
  return component;
8703
8715
  };
@@ -8856,7 +8868,7 @@ const sectionLabels = {
8856
8868
  LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8857
8869
  WrapperSection: ["Core", "Components", "Properties", "Style"],
8858
8870
  HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8859
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8871
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8860
8872
  SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8861
8873
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8862
8874
  UploadFile: ["Core", "Events", "Style", "Validation"],
@@ -8904,6 +8916,7 @@ function refreshPage(type, store2) {
8904
8916
  Style: StyleSection,
8905
8917
  Events: EventSection(store2.theme.myTheme),
8906
8918
  Components: TableSection(store2.theme.myTheme),
8919
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8907
8920
  Properties: buildPropertiesSection(type),
8908
8921
  Validation: ValidationSection
8909
8922
  };
@@ -9101,8 +9114,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9101
9114
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9102
9115
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9103
9116
  if (path) {
9104
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
9105
- const finalPath = `${path2}.elements[${rowId}]`;
9117
+ let finalPath = `${path}`;
9118
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9119
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9120
+ } else {
9121
+ finalPath = `${finalPath}.elements[${rowId}]`;
9122
+ }
9106
9123
  store2.searchParams.set("path", finalPath);
9107
9124
  store2.setSearchParams(store2.searchParams);
9108
9125
  this.setPage();
@@ -9114,7 +9131,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9114
9131
  var _a;
9115
9132
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9116
9133
  const rowId = sessionStorage.getItem("rowId");
9117
- store2.formData.elements.splice(rowId, 1);
9134
+ const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9135
+ if (isTabLabelElements) {
9136
+ store2.formData.tabLabelElements.splice(rowId, 1);
9137
+ } else {
9138
+ store2.formData.elements.splice(rowId, 1);
9139
+ }
9118
9140
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
9119
9141
  const data = path ? _.get(response, path) : response;
9120
9142
  store2.setFormdata(data);
@@ -9122,6 +9144,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9122
9144
  store2.updateDialog("popUpComponentSection");
9123
9145
  }
9124
9146
  sessionStorage.removeItem("rowId");
9147
+ sessionStorage.removeItem("isTabLabelElements");
9125
9148
  },
9126
9149
  deleteEvent: function(shouldUpdateDialog = true) {
9127
9150
  var _a;
@@ -9142,9 +9165,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9142
9165
  if (!Array.isArray(store2.formData.elements)) {
9143
9166
  store2.formData.elements = [];
9144
9167
  }
9168
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9169
+ store2.formData.tabLabelElements = [];
9170
+ }
9145
9171
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9146
9172
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9147
- const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9173
+ let finalPath = `${path}`;
9174
+ if (dynamicData2.path.startsWith("tabLabel")) {
9175
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9176
+ } else {
9177
+ finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9178
+ }
9148
9179
  store2.searchParams.set("path", finalPath);
9149
9180
  store2.setSearchParams(store2.searchParams);
9150
9181
  this.setPage();
@@ -9179,6 +9210,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9179
9210
  deletePopUpComponent: function() {
9180
9211
  const rowId = dynamicData2.path.split(".")[1];
9181
9212
  sessionStorage.setItem("rowId", rowId);
9213
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
9182
9214
  store2.updateDialog("popUpComponentSection");
9183
9215
  },
9184
9216
  deletePopUpEvent: function() {
@@ -9225,9 +9257,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9225
9257
  if (!Array.isArray(store2.formData.events)) {
9226
9258
  store2.formData.events = [];
9227
9259
  }
9260
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9261
+ store2.formData.tabLabelElements = [];
9262
+ }
9228
9263
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
9229
9264
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
9230
- const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
9265
+ const currentLength = {
9266
+ "TabsComponent": formData.tabLabelElements.length,
9267
+ "Component": formData.elements.length,
9268
+ "Events": formData.events.length
9269
+ };
9270
+ const insertElementIndex = currentLength[elementType] || 0;
9231
9271
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
9232
9272
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
9233
9273
  const notificationMessages = {
@@ -9262,6 +9302,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9262
9302
  if (elementType === "Component") {
9263
9303
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9264
9304
  }
9305
+ if (elementType === "TabsComponent") {
9306
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9307
+ }
9265
9308
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9266
9309
  },
9267
9310
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -10925,18 +10968,14 @@ var service = (funcParams) => {
10925
10968
  return response == null ? void 0 : response.data;
10926
10969
  },
10927
10970
  onPaginationChange: async function(paginationValues) {
10928
- var _a, _b, _c, _d;
10971
+ var _a, _b;
10929
10972
  const apiBody = [
10930
- { key: "size", value: (_a = paginationValues.pagination) == null ? void 0 : _a.pageSize },
10931
- { key: "pageIndex", value: (_b = paginationValues.pagination) == null ? void 0 : _b.pageIndex },
10973
+ { key: "size", value: paginationValues.pagination.pageSize },
10974
+ { key: "pageIndex", value: paginationValues.pagination.pageIndex },
10932
10975
  { key: "sorting", value: paginationValues.sorting || [] },
10933
10976
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10934
- { key: "globalFilter", value: (_c = paginationValues.globalFilter) != null ? _c : "" },
10935
- { key: "expandedRowIds", value: (_d = paginationValues.expandedRowIds) != null ? _d : [] },
10936
- { key: "subRowsPagination", value: paginationValues.subRowsPagination || [] },
10937
- { key: "parentId", value: paginationValues.parentId },
10938
- { key: "prevRowCount", value: paginationValues.prevRowCount },
10939
- { key: "newDataCount", value: paginationValues.newDataCount }
10977
+ { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
10978
+ { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
10940
10979
  ];
10941
10980
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10942
10981
  return response == null ? void 0 : response.data;
@@ -11613,6 +11652,9 @@ const buildTextField = (config2, componentScope2) => {
11613
11652
  if (config2.toolTipPosition) {
11614
11653
  inputField.config.main.toolTipPosition = config2.toolTipPosition;
11615
11654
  }
11655
+ if (config2.iconName) {
11656
+ inputField.config.main.startIcon = config2.iconName;
11657
+ }
11616
11658
  inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11617
11659
  inputField.scope = componentScope2;
11618
11660
  return inputField;
@@ -11749,15 +11791,9 @@ const buildTable = (config2, componentScope2) => {
11749
11791
  if (config2.lazyLoading) {
11750
11792
  table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11751
11793
  }
11752
- if (config2.lazyLoadTree) {
11753
- table.config.main.lazyTree = config2.lazyLoadTree === "YES" ? true : false;
11754
- }
11755
11794
  if (config2.defaultColumnSize) {
11756
11795
  table.config.main.defaultColumnSize = config2.defaultColumnSize;
11757
11796
  }
11758
- if (config2.subRowsExpansionPageSize) {
11759
- table.config.main.subRowsExpansionPageSize = config2.subRowsExpansionPageSize;
11760
- }
11761
11797
  if (config2.enableRowMovement) {
11762
11798
  table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
11763
11799
  }
@@ -11827,6 +11863,15 @@ const buildTable = (config2, componentScope2) => {
11827
11863
  if (config2.layout) {
11828
11864
  table.config.layout = createLayoutFormat(config2.layout);
11829
11865
  }
11866
+ if (config2.mergeExpandIcon) {
11867
+ table.config.main.mergeExpandIcon = config2.mergeExpandIcon === "YES" ? true : false;
11868
+ }
11869
+ if (config2.expandedKey) {
11870
+ table.config.main.expandedKey = config2.expandedKey;
11871
+ }
11872
+ if (config2.parentIdKey) {
11873
+ table.config.main.parentIdKey = config2.parentIdKey;
11874
+ }
11830
11875
  return table;
11831
11876
  };
11832
11877
  const Box = {
@@ -13048,6 +13093,9 @@ const buildAreaGraph = (config2, componentScope2) => {
13048
13093
  if (config2.yAxisTickCount) {
13049
13094
  AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13050
13095
  }
13096
+ if (config2.xAxisTickCount) {
13097
+ AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13098
+ }
13051
13099
  if (config2.xAxisValue) {
13052
13100
  AreaGraph.config.main.xAxisValue = config2.xAxisValue;
13053
13101
  }
@@ -13101,6 +13149,9 @@ const buildStackBarLineGraph = (config2, componentScope2) => {
13101
13149
  if (config2.yAxisTickCount) {
13102
13150
  StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13103
13151
  }
13152
+ if (config2.xAxisTickCount) {
13153
+ StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13154
+ }
13104
13155
  if (config2.xAxisValue) {
13105
13156
  StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13106
13157
  }
@@ -13654,6 +13705,11 @@ const buildUiSchema = (config2, store2) => {
13654
13705
  });
13655
13706
  }
13656
13707
  }
13708
+ if (config2.tabLabelElements) {
13709
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13710
+ return buildUiSchema(e, store2);
13711
+ });
13712
+ }
13657
13713
  return elements;
13658
13714
  };
13659
13715
  export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };