impaktapps-ui-builder 1.0.103 → 1.0.105

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.
@@ -7878,7 +7878,8 @@ const buildPropertiesSection = function(type) {
7878
7878
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
7879
7879
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
7880
7880
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
7881
- emptyBox$1("LazyLoadingTableEmpty2"),
7881
+ getInputField("defaultColumnSize", "Default Column Size"),
7882
+ ,
7882
7883
  emptyBox$1("LazyLoadingTableEmpty3")
7883
7884
  ]),
7884
7885
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
@@ -8983,8 +8984,7 @@ const EventSchema = {
8983
8984
  oneOf: [
8984
8985
  { title: "RankProvider", const: "RankProvider" },
8985
8986
  { title: "Download File", const: "downloadFile" },
8986
- { title: "downloadFileFromUrl", const: "downloadFileFromUrl" },
8987
- { title: "downloadFileFromBase64", const: "downloadFileFromBase64" }
8987
+ { title: "downloadFileFromUrl", const: "downloadFileFromUrl" }
8988
8988
  ]
8989
8989
  },
8990
8990
  body: {
@@ -9921,22 +9921,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9921
9921
  }
9922
9922
  };
9923
9923
  };
9924
- const downloadFile$1 = (obj) => {
9925
- const typeArr = obj.name.split(".");
9926
- const data = obj.data;
9927
- const finalData = window.atob(data);
9928
- let file;
9929
- file = new File([finalData], typeArr[typeArr.length - 1]);
9930
- const url = URL.createObjectURL(file);
9931
- const link = document.createElement("a");
9932
- link.href = typeArr[typeArr.length - 1] === "pdf" ? "data:application/octet-stream;base64," + data : url;
9933
- link.download = `${obj.name}`;
9934
- document.body.appendChild(link);
9935
- link.click();
9936
- URL.revokeObjectURL(url);
9937
- document.body.removeChild(link);
9938
- };
9939
- function downloadFileFromBase64({ data, name }) {
9924
+ function downloadFile$1({ data, name }) {
9940
9925
  var _a;
9941
9926
  const binary = window.atob(data);
9942
9927
  const bytes = new Uint8Array(binary.length);
@@ -10311,7 +10296,7 @@ var service = (funcParams) => {
10311
10296
  dynamicData: funcParams.dynamicData,
10312
10297
  userValue: funcParams.userValue,
10313
10298
  service: funcParams.service,
10314
- serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, downloadFileFromBase64, ...funcParams.functionsProvider },
10299
+ serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, ...funcParams.functionsProvider },
10315
10300
  eventGroups,
10316
10301
  functionsProvider: funcParams.functionsProvider,
10317
10302
  formDataHolder
@@ -10370,19 +10355,22 @@ var service = (funcParams) => {
10370
10355
  funcParams.store.setUiSchema(uiSchema);
10371
10356
  },
10372
10357
  onCellRenderer: (cellParams) => {
10373
- var _a, _b, _c, _d;
10374
- if (eventGroups.onCellRenderer) {
10358
+ var _a, _b, _c, _d, _e;
10359
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10360
+ if (cloneEventGroup.onCellRenderer) {
10375
10361
  let finalResponse = {};
10376
10362
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_c = (_b = funcParams == null ? void 0 : funcParams.dynamicData) == null ? void 0 : _b.path) == null ? void 0 : _c.split(".")[0]);
10377
- for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10378
- executeEventsParameters.store.functionParameters = cellParams;
10379
- finalResponse = executeEvents({
10380
- ...executeEventsParameters,
10381
- config: eventConfig,
10382
- componentName: path
10383
- });
10363
+ if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _d[path]) {
10364
+ for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _e[path]) {
10365
+ executeEventsParameters.store.functionParameters = cellParams;
10366
+ finalResponse = executeEvents({
10367
+ ...executeEventsParameters,
10368
+ config: eventConfig,
10369
+ componentName: path
10370
+ });
10371
+ }
10372
+ return finalResponse;
10384
10373
  }
10385
- return finalResponse;
10386
10374
  }
10387
10375
  return {};
10388
10376
  },
@@ -10522,7 +10510,6 @@ var service = (funcParams) => {
10522
10510
  },
10523
10511
  downloadFile: downloadFile$1,
10524
10512
  downloadFileFromUrl,
10525
- downloadFileFromBase64,
10526
10513
  ...funcParams.functionsProvider
10527
10514
  };
10528
10515
  };
@@ -11135,6 +11122,9 @@ const buildTable = (config2, componentScope2) => {
11135
11122
  if (config2.lazyLoading) {
11136
11123
  table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11137
11124
  }
11125
+ if (config2.defaultColumnSize) {
11126
+ table.config.main.enableRowMovement = config2.defaultColumnSize;
11127
+ }
11138
11128
  if (config2.enableRowMovement) {
11139
11129
  table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
11140
11130
  }
@@ -12655,5 +12645,5 @@ const buildUiSchema = (config2, store2) => {
12655
12645
  }
12656
12646
  return elements;
12657
12647
  };
12658
- export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFileFromBase64, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
12648
+ export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
12659
12649
  //# sourceMappingURL=impaktapps-ui-builder.es.js.map