@wavemaker/app-ng-runtime 11.5.3-rc.5503 → 11.5.4-8.5627

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.
Files changed (47) hide show
  1. app-ng-runtime/components/base/bundles/index.umd.js +0 -1
  2. app-ng-runtime/components/base/esm2020/widgets/common/partial/partial.directive.mjs +1 -2
  3. app-ng-runtime/components/base/fesm2015/index.mjs +0 -1
  4. app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
  5. app-ng-runtime/components/base/fesm2020/index.mjs +0 -1
  6. app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
  7. app-ng-runtime/components/chart/bundles/index.umd.js +1 -3
  8. app-ng-runtime/components/chart/esm2020/chart.component.mjs +2 -4
  9. app-ng-runtime/components/chart/fesm2015/index.mjs +1 -3
  10. app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
  11. app-ng-runtime/components/chart/fesm2020/index.mjs +1 -3
  12. app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
  13. app-ng-runtime/components/data/table/bundles/index.umd.js +2 -4
  14. app-ng-runtime/components/data/table/esm2020/table-column/table-column.props.mjs +1 -2
  15. app-ng-runtime/components/data/table/esm2020/table.component.mjs +3 -4
  16. app-ng-runtime/components/data/table/fesm2015/index.mjs +2 -4
  17. app-ng-runtime/components/data/table/fesm2015/index.mjs.map +1 -1
  18. app-ng-runtime/components/data/table/fesm2020/index.mjs +2 -4
  19. app-ng-runtime/components/data/table/fesm2020/index.mjs.map +1 -1
  20. app-ng-runtime/components/data/table/table.component.d.ts +1 -1
  21. app-ng-runtime/components/navigation/popover/bundles/index.umd.js +1 -2
  22. app-ng-runtime/components/navigation/popover/esm2020/popover.component.mjs +2 -3
  23. app-ng-runtime/components/navigation/popover/fesm2015/index.mjs +1 -2
  24. app-ng-runtime/components/navigation/popover/fesm2015/index.mjs.map +1 -1
  25. app-ng-runtime/components/navigation/popover/fesm2020/index.mjs +1 -2
  26. app-ng-runtime/components/navigation/popover/fesm2020/index.mjs.map +1 -1
  27. app-ng-runtime/components/prefab/bundles/index.umd.js +0 -1
  28. app-ng-runtime/components/prefab/esm2020/prefab-container/prefab-container.directive.mjs +1 -2
  29. app-ng-runtime/components/prefab/fesm2015/index.mjs +0 -1
  30. app-ng-runtime/components/prefab/fesm2015/index.mjs.map +1 -1
  31. app-ng-runtime/components/prefab/fesm2020/index.mjs +0 -1
  32. app-ng-runtime/components/prefab/fesm2020/index.mjs.map +1 -1
  33. app-ng-runtime/core/bundles/index.umd.js +24 -26
  34. app-ng-runtime/core/esm2020/utils/build-utils.mjs +25 -27
  35. app-ng-runtime/core/fesm2015/index.mjs +24 -26
  36. app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
  37. app-ng-runtime/core/fesm2020/index.mjs +24 -26
  38. app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
  39. app-ng-runtime/package.json +1 -1
  40. app-ng-runtime/scripts/datatable/datatable.js +3 -3
  41. app-ng-runtime/variables/bundles/index.umd.js +7 -13
  42. app-ng-runtime/variables/esm2020/util/variable/variables.utils.mjs +8 -14
  43. app-ng-runtime/variables/fesm2015/index.mjs +7 -13
  44. app-ng-runtime/variables/fesm2015/index.mjs.map +1 -1
  45. app-ng-runtime/variables/fesm2020/index.mjs +7 -13
  46. app-ng-runtime/variables/fesm2020/index.mjs.map +1 -1
  47. app-ng-runtime/variables/util/variable/variables.utils.d.ts +1 -1
@@ -604,12 +604,12 @@ const setParamsFromURL = (queryParams, params) => {
604
604
  * @param variable: the variable that is called from user action
605
605
  * @param requestParams object consisting the info to construct the XHR request for the service
606
606
  */
607
- const downloadThroughIframe = (requestParams, success, dataBinding) => {
607
+ const downloadThroughIframe = (requestParams, success) => {
608
608
  // Todo: SHubham: URL contains '//' in between which should be handled at the URL formation only
609
609
  if (requestParams.url[1] === '/' && requestParams.url[2] === '/') {
610
610
  requestParams.url = requestParams.url.slice(0, 1) + requestParams.url.slice(2);
611
611
  }
612
- let iFrameElement, formEl, paramElement, queryParams = '', data;
612
+ let iFrameElement, formEl, paramElement, queryParams = '';
613
613
  const IFRAME_NAME = 'fileDownloadIFrame', FORM_NAME = 'fileDownloadForm', CONTENT_TYPE = 'Content-Type', url = requestParams.url, encType = _.get(requestParams.headers, CONTENT_TYPE), params = _.pickBy(requestParams.headers, function (val, key) { return key !== CONTENT_TYPE; });
614
614
  /* Todo: shubham : define getService method
615
615
  WS_CONSTANTS = getService('WS_CONSTANTS');*/
@@ -624,7 +624,7 @@ const downloadThroughIframe = (requestParams, success, dataBinding) => {
624
624
  'target': iFrameElement.attr('name'),
625
625
  'action': url,
626
626
  'method': requestParams.method,
627
- 'enctype': !(_.isEmpty(requestParams.data) && _.isEmpty(queryParams)) ? encType : WS_CONSTANTS.CONTENT_TYPES.MULTIPART_FORMDATA
627
+ 'enctype': encType
628
628
  });
629
629
  /* process query params, append a hidden input element in the form against each param */
630
630
  queryParams += url.indexOf('?') !== -1 ? url.substring(url.indexOf('?') + 1) : '';
@@ -633,14 +633,8 @@ const downloadThroughIframe = (requestParams, success, dataBinding) => {
633
633
  if (_.includes(WS_CONSTANTS.NON_BODY_HTTP_METHODS, _.toUpper(requestParams.method))) {
634
634
  setParamsFromURL(queryParams, params); // Set params for URL query params
635
635
  }
636
- if (!_.isEmpty(requestParams.data)) {
637
- setParamsFromURL(requestParams.data, params); // Set params for request data
638
- data = params;
639
- }
640
- else {
641
- data = dataBinding;
642
- }
643
- _.forEach(data, function (val, key) {
636
+ setParamsFromURL(requestParams.data, params); // Set params for request data
637
+ _.forEach(params, function (val, key) {
644
638
  paramElement = $('<input type="hidden">');
645
639
  paramElement.attr({
646
640
  'name': key,
@@ -936,7 +930,7 @@ const processBinding = (variable, context, bindSource, bindTarget) => {
936
930
  * @param success success callback
937
931
  * @param error error callback
938
932
  */
939
- const simulateFileDownload = (requestParams, fileName, exportFormat, success, error, dataBinding) => {
933
+ const simulateFileDownload = (requestParams, fileName, exportFormat, success, error) => {
940
934
  /*success and error callbacks are executed incase of downloadThroughAnchor
941
935
  Due to technical limitation cannot be executed incase of iframe*/
942
936
  if (CONSTANTS.hasCordova) {
@@ -950,7 +944,7 @@ const simulateFileDownload = (requestParams, fileName, exportFormat, success, er
950
944
  downloadThroughAnchor(requestParams, success, error);
951
945
  }
952
946
  else {
953
- downloadThroughIframe(requestParams, success, dataBinding);
947
+ downloadThroughIframe(requestParams, success);
954
948
  }
955
949
  };
956
950
  /**