impaktapps-ui-builder 1.0.436 → 1.0.437

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.
@@ -8282,18 +8282,16 @@ const buildPropertiesSection = function(type) {
8282
8282
  case "Select":
8283
8283
  uiSchema.elements = [
8284
8284
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8285
- getInputField("pageSize", "Single Page Size"),
8286
8285
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
8287
8286
  getSelectField("variant", "Variant"),
8288
8287
  getInputField("toolTip", "Tooltip"),
8289
8288
  getSelectField("toolTipPosition", "Tooltip Position"),
8290
- emptyBox$1("SelectEmpty", { xs: 0, sm: 0, md: 0, lg: 6 })
8289
+ emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
8291
8290
  ];
8292
8291
  break;
8293
8292
  case "MultipleSelect":
8294
8293
  uiSchema.elements = [
8295
8294
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8296
- getInputField("pageSize", "Single Page Size"),
8297
8295
  getSelectField("variant", "Variant"),
8298
8296
  getInputField("toolTip", "Tooltip"),
8299
8297
  getSelectField("toolTipPosition", "Tooltip Position")
@@ -8397,13 +8395,13 @@ const StyleSection = {
8397
8395
  }
8398
8396
  ]
8399
8397
  };
8400
- const TableSection = (theme) => {
8398
+ const TableSection = (theme, scopeName = "elements") => {
8401
8399
  const uiSchema = {
8402
8400
  type: "HorizontalLayout",
8403
8401
  elements: [
8404
8402
  {
8405
8403
  type: "Control",
8406
- scope: "#/properties/elements",
8404
+ scope: `#/properties/${scopeName}`,
8407
8405
  options: {
8408
8406
  widget: "Table"
8409
8407
  },
@@ -8414,7 +8412,7 @@ const TableSection = (theme) => {
8414
8412
  {
8415
8413
  widget: {
8416
8414
  type: "Control",
8417
- scope: "#/properties/New_Record",
8415
+ scope: `#/properties/${scopeName}_New_Record`,
8418
8416
  options: {
8419
8417
  widget: "IconButton"
8420
8418
  },
@@ -8441,7 +8439,7 @@ const TableSection = (theme) => {
8441
8439
  {
8442
8440
  widget: {
8443
8441
  type: "Control",
8444
- scope: "#/properties/Paste_Component",
8442
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
8445
8443
  options: {
8446
8444
  widget: "IconButton"
8447
8445
  },
@@ -8506,7 +8504,7 @@ const TableSection = (theme) => {
8506
8504
  },
8507
8505
  {
8508
8506
  type: "Control",
8509
- scope: "#/properties/Copy_Component",
8507
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8510
8508
  options: {
8511
8509
  widget: "Button"
8512
8510
  },
@@ -8699,6 +8697,10 @@ var buildConfig = (FormData) => {
8699
8697
  if (formData.events) {
8700
8698
  delete formData.events;
8701
8699
  }
8700
+ if (formData.tabLabelsElements) {
8701
+ component.tabLabelsElements = formData.tabLabelsElements || [];
8702
+ delete formData.tabLabelsElements;
8703
+ }
8702
8704
  component = { ...formData, ...component };
8703
8705
  return component;
8704
8706
  };
@@ -8857,7 +8859,7 @@ const sectionLabels = {
8857
8859
  LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8858
8860
  WrapperSection: ["Core", "Components", "Properties", "Style"],
8859
8861
  HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8860
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8862
+ TabSection: ["Core", "Components", "TabLebelComponet", "Properties", "Style", "Validation"],
8861
8863
  SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8862
8864
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8863
8865
  UploadFile: ["Core", "Events", "Style", "Validation"],
@@ -8905,6 +8907,7 @@ function refreshPage(type, store2) {
8905
8907
  Style: StyleSection,
8906
8908
  Events: EventSection(store2.theme.myTheme),
8907
8909
  Components: TableSection(store2.theme.myTheme),
8910
+ TabLebelComponet: TableSection(store2.theme.myTheme, "tabLabelsElements"),
8908
8911
  Properties: buildPropertiesSection(type),
8909
8912
  Validation: ValidationSection
8910
8913
  };
@@ -9102,8 +9105,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9102
9105
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9103
9106
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9104
9107
  if (path) {
9105
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
9106
- 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
+ }
9107
9114
  store2.searchParams.set("path", finalPath);
9108
9115
  store2.setSearchParams(store2.searchParams);
9109
9116
  this.setPage();
@@ -9115,7 +9122,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9115
9122
  var _a;
9116
9123
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9117
9124
  const rowId = sessionStorage.getItem("rowId");
9118
- 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
+ }
9119
9131
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
9120
9132
  const data = path ? _.get(response, path) : response;
9121
9133
  store2.setFormdata(data);
@@ -9123,6 +9135,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9123
9135
  store2.updateDialog("popUpComponentSection");
9124
9136
  }
9125
9137
  sessionStorage.removeItem("rowId");
9138
+ sessionStorage.removeItem("isTabLabelElements");
9126
9139
  },
9127
9140
  deleteEvent: function(shouldUpdateDialog = true) {
9128
9141
  var _a;
@@ -9143,9 +9156,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9143
9156
  if (!Array.isArray(store2.formData.elements)) {
9144
9157
  store2.formData.elements = [];
9145
9158
  }
9159
+ if (!Array.isArray(store2.formData.tabLabelsElements)) {
9160
+ store2.formData.tabLabelsElements = [];
9161
+ }
9146
9162
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9147
9163
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9148
- 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
+ }
9149
9170
  store2.searchParams.set("path", finalPath);
9150
9171
  store2.setSearchParams(store2.searchParams);
9151
9172
  this.setPage();
@@ -9180,6 +9201,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9180
9201
  deletePopUpComponent: function() {
9181
9202
  const rowId = dynamicData2.path.split(".")[1];
9182
9203
  sessionStorage.setItem("rowId", rowId);
9204
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabels") ? "true" : "false");
9183
9205
  store2.updateDialog("popUpComponentSection");
9184
9206
  },
9185
9207
  deletePopUpEvent: function() {
@@ -9226,9 +9248,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9226
9248
  if (!Array.isArray(store2.formData.events)) {
9227
9249
  store2.formData.events = [];
9228
9250
  }
9251
+ if (!Array.isArray(store2.formData.tabLabelsElements)) {
9252
+ store2.formData.tabLabelsElements = [];
9253
+ }
9229
9254
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
9230
9255
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
9231
- 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;
9232
9262
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
9233
9263
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
9234
9264
  const notificationMessages = {
@@ -9263,6 +9293,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9263
9293
  if (elementType === "Component") {
9264
9294
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9265
9295
  }
9296
+ if (elementType === "TabsComponent") {
9297
+ return `${parentPath}.tabLabelsElements[${rowId}]`;
9298
+ }
9266
9299
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9267
9300
  },
9268
9301
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -10939,14 +10972,14 @@ var service = (funcParams) => {
10939
10972
  return response == null ? void 0 : response.data;
10940
10973
  },
10941
10974
  getSelectOptions: async function(param) {
10942
- const apiBody = [
10943
- { key: "searchValue", value: param.searchValue },
10944
- { key: "currentValue", value: param.currentValue },
10945
- { key: "currentItemCount", value: param.currentItemCount },
10946
- { key: "limit", value: param.limit }
10947
- ];
10948
- const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10949
- return response == null ? void 0 : response.data;
10975
+ if (param.serachValue !== "" && param.serachValue !== void 0) {
10976
+ const apiBody = [
10977
+ { key: "searchValue", value: param.serachValue },
10978
+ { key: "currentValue", value: param.currentValue }
10979
+ ];
10980
+ const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10981
+ return response == null ? void 0 : response.data;
10982
+ }
10950
10983
  },
10951
10984
  onChange: function() {
10952
10985
  if (!eventGroups.onChange)
@@ -11641,9 +11674,6 @@ const buildSelect = (config2, componentScope2) => {
11641
11674
  }
11642
11675
  if (config2.lazyLoading) {
11643
11676
  selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11644
- if (config2.lazyLoading === "YES" && config2.pageSize) {
11645
- selectInputField.config.main.pageSize = config2.pageSize;
11646
- }
11647
11677
  }
11648
11678
  if (config2.variant) {
11649
11679
  selectInputField.config.main.variant = config2.variant;
@@ -12347,9 +12377,6 @@ const buildMultiSelect = (config2, componentScope2) => {
12347
12377
  }
12348
12378
  if (config2.lazyLoading) {
12349
12379
  multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
12350
- if (config2.lazyLoading === "YES" && config2.pageSize) {
12351
- multipleSelect.config.main.pageSize = config2.pageSize;
12352
- }
12353
12380
  }
12354
12381
  if (config2.toolTip) {
12355
12382
  multipleSelect.config.main.toolTip = config2.toolTip;
@@ -13657,6 +13684,11 @@ const buildUiSchema = (config2, store2) => {
13657
13684
  });
13658
13685
  }
13659
13686
  }
13687
+ if (config2.tabLabelsElements) {
13688
+ elements.tabLabelsElements = config2.tabLabelsElements.map((e, elemInd) => {
13689
+ return buildUiSchema(e, store2);
13690
+ });
13691
+ }
13660
13692
  return elements;
13661
13693
  };
13662
13694
  export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };