@everymatrix/stage-mm-verification-report 1.0.29 → 1.0.30

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DmButtonLibComponent
3
- } from "./chunk-LUBSS3BI.js";
3
+ } from "./chunk-TDAJJ6CV.js";
4
4
  import {
5
5
  Dialog,
6
6
  DialogModule,
@@ -216,4 +216,4 @@ var DomainsOverloadModalComponent = class _DomainsOverloadModalComponent {
216
216
  export {
217
217
  DomainsOverloadModalComponent
218
218
  };
219
- //# sourceMappingURL=chunk-V3W37IIP.js.map
219
+ //# sourceMappingURL=chunk-7PA6OSFV.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DomainsOverloadModalComponent
3
- } from "./chunk-V3W37IIP.js";
4
- import "./chunk-LUBSS3BI.js";
3
+ } from "./chunk-7PA6OSFV.js";
4
+ import "./chunk-TDAJJ6CV.js";
5
5
  import "./chunk-2SMQV2OO.js";
6
6
  import "./chunk-57JN4OKS.js";
7
7
  export {
8
8
  DomainsOverloadModalComponent
9
9
  };
10
- //# sourceMappingURL=chunk-KKYQR2JQ.js.map
10
+ //# sourceMappingURL=chunk-CDNMVOIM.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeleteTemplateModalComponent
3
- } from "./chunk-JAYKR27D.js";
4
- import "./chunk-LUBSS3BI.js";
3
+ } from "./chunk-V3Y3VOJP.js";
4
+ import "./chunk-TDAJJ6CV.js";
5
5
  import "./chunk-2SMQV2OO.js";
6
6
  import "./chunk-57JN4OKS.js";
7
7
  export {
8
8
  DeleteTemplateModalComponent
9
9
  };
10
- //# sourceMappingURL=chunk-HNALPDLS.js.map
10
+ //# sourceMappingURL=chunk-OHQYNXLC.js.map
@@ -29914,6 +29914,12 @@ var SendingService = class _SendingService {
29914
29914
  apiHandlerService = inject(ApiHandlerService);
29915
29915
  sessionService = inject(SessionService);
29916
29916
  httpClient = inject(HttpClient);
29917
+ fileNameVariables = [
29918
+ { "id": "template_name", "name": "template_name" },
29919
+ { "id": "schedule_name", "name": "schedule_name" },
29920
+ { "id": "timestamp", "name": "timestamp" },
29921
+ { "id": "uuid", "name": "uuid" }
29922
+ ];
29917
29923
  getSchedules(reportId, templateId, domainId) {
29918
29924
  const url = this.apiHandlerService.getACSBaseUrl("get_report_schedules", "ce");
29919
29925
  const body = {
@@ -29956,7 +29962,7 @@ var SendingService = class _SendingService {
29956
29962
  connection_type: destination,
29957
29963
  connection_id: connectionId,
29958
29964
  folder_name: folderName,
29959
- filename_format: fileName,
29965
+ filename_format: this.convertString(fileName, this.fileNameVariables),
29960
29966
  timestamp_format: dateTimeFormat
29961
29967
  };
29962
29968
  const report = Object.values(REPORTS).find((r) => r.reportId === report_id);
@@ -30089,6 +30095,16 @@ var SendingService = class _SendingService {
30089
30095
  }
30090
30096
  return;
30091
30097
  }
30098
+ convertString(inputString, variablesArray) {
30099
+ let result = inputString;
30100
+ const sortedVariables = [...variablesArray].sort((a, b) => b.id.length - a.id.length);
30101
+ for (const variable of sortedVariables) {
30102
+ const regex = new RegExp(`#${variable.id}(?=[^a-zA-Z]|$)`, "g");
30103
+ result = result ? result.replace(regex, `{${variable.id}}`) : "";
30104
+ }
30105
+ result = result ? result.replace(/##/g, "#") : "";
30106
+ return result;
30107
+ }
30092
30108
  static \u0275fac = function SendingService_Factory(__ngFactoryType__) {
30093
30109
  return new (__ngFactoryType__ || _SendingService)();
30094
30110
  };
@@ -36154,7 +36170,7 @@ var commonSelectStyles = `
36154
36170
  }
36155
36171
  }
36156
36172
 
36157
- .p-multiselect-list-container, .p-select-list-container {
36173
+ .p-multiselect-list-container, .p-select-list-container, .p-autocomplete-list-container {
36158
36174
  font-size: 14px;
36159
36175
  &::-webkit-scrollbar {
36160
36176
  width: 6px;
@@ -36408,7 +36424,7 @@ var primengCustomPreset = definePreset(lara_default, {
36408
36424
  height: 16px;
36409
36425
  top: 50%;
36410
36426
  margin: 0;
36411
- transform: translateY(-50%);
36427
+ transform: translate(-4px, -50%);
36412
36428
  }
36413
36429
  }
36414
36430
 
@@ -37481,4 +37497,4 @@ crypto-js/mode-ctr-gladman.js:
37481
37497
  * License: MIT
37482
37498
  *)
37483
37499
  */
37484
- //# sourceMappingURL=chunk-LUBSS3BI.js.map
37500
+ //# sourceMappingURL=chunk-TDAJJ6CV.js.map