nuxeo-development-framework 5.5.0 → 5.5.2

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 (58) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +213 -1382
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/ndf-config-editor/constants/index.js +2 -2
  4. package/esm2015/lib/components/ndf-config-editor/constants/query.js +2 -2
  5. package/esm2015/lib/components/ndf-config-editor/containers/ndf-config-editor/ndf-config-editor.component.js +24 -17
  6. package/esm2015/lib/components/ndf-config-editor/metadata-token.js +3 -0
  7. package/esm2015/lib/components/ndf-config-editor/models/payload-data.js +2 -0
  8. package/esm2015/lib/components/ndf-config-editor/public/editor-navigate-button.js +8 -4
  9. package/esm2015/lib/components/ndf-config-editor/public-api.js +2 -1
  10. package/esm2015/lib/components/ndf-config-editor/services/data-access.service.js +12 -15
  11. package/esm2015/lib/components/ndf-config-editor/services/data-store.service.js +38 -10
  12. package/esm2015/lib/components/reports/ndf-reports/models/details.js +1 -1
  13. package/esm2015/lib/components/reports/ndf-reports/models/ndf-reports.config.js +1 -1
  14. package/esm2015/lib/components/reports/ndf-reports/services/index.js +2 -1
  15. package/esm2015/lib/components/reports/ndf-reports/services/report-details.service.js +29 -0
  16. package/esm2015/lib/components/reports/ndf-reports/utilities/reports-table.mapper.js +3 -2
  17. package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +7 -7
  18. package/esm2015/lib/components/tables/ndf-table/models/table-column.js +1 -1
  19. package/esm2015/lib/components/tables/ndf-table/models/table-options.js +1 -1
  20. package/esm2015/lib/components/tables/ndf-table/services/ndf-table-configuration.service.js +18 -13
  21. package/esm2015/lib/components/tables/ndf-table/services/ndf-table.service.js +2 -2
  22. package/esm2015/lib/shared/constants/editor-config-type.js +5 -0
  23. package/esm2015/lib/shared/constants/index.js +2 -0
  24. package/esm2015/lib/shared/index.js +2 -1
  25. package/esm2015/lib/shared/services/base/base-editor-config.service.js +70 -0
  26. package/esm2015/lib/shared/services/base/index.js +2 -1
  27. package/esm2015/public-api.js +2 -1
  28. package/fesm2015/nuxeo-development-framework.js +193 -1377
  29. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  30. package/lib/components/ndf-config-editor/constants/index.d.ts +1 -1
  31. package/lib/components/ndf-config-editor/containers/config-preview/config-preview.component.d.ts +2 -2
  32. package/lib/components/ndf-config-editor/containers/ndf-config-editor/ndf-config-editor.component.d.ts +8 -7
  33. package/lib/components/ndf-config-editor/metadata-token.d.ts +8 -0
  34. package/lib/components/ndf-config-editor/models/payload-data.d.ts +6 -0
  35. package/lib/components/ndf-config-editor/public/editor-navigate-button.d.ts +1 -0
  36. package/lib/components/ndf-config-editor/public-api.d.ts +1 -0
  37. package/lib/components/ndf-config-editor/services/data-access.service.d.ts +7 -4
  38. package/lib/components/ndf-config-editor/services/data-store.service.d.ts +6 -3
  39. package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +2 -2
  40. package/lib/components/reports/ndf-reports/models/details.d.ts +5 -1
  41. package/lib/components/reports/ndf-reports/models/ndf-reports.config.d.ts +1 -1
  42. package/lib/components/reports/ndf-reports/services/index.d.ts +1 -0
  43. package/lib/components/reports/ndf-reports/services/report-details.service.d.ts +12 -0
  44. package/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.d.ts +1 -1
  45. package/lib/components/tables/ndf-table/models/table-column.d.ts +1 -0
  46. package/lib/components/tables/ndf-table/models/table-options.d.ts +1 -1
  47. package/lib/components/tables/ndf-table/services/ndf-table-configuration.service.d.ts +3 -5
  48. package/lib/shared/constants/editor-config-type.d.ts +4 -0
  49. package/lib/shared/constants/index.d.ts +1 -0
  50. package/lib/shared/index.d.ts +1 -0
  51. package/lib/shared/services/base/base-editor-config.service.d.ts +32 -0
  52. package/lib/shared/services/base/index.d.ts +1 -0
  53. package/package.json +2 -2
  54. package/public-api.d.ts +1 -0
  55. package/esm2015/lib/components/ndf-config-editor/constants/type.js +0 -5
  56. package/esm2015/lib/components/ndf-config-editor/services/dummy-data.js +0 -1321
  57. package/lib/components/ndf-config-editor/constants/type.d.ts +0 -4
  58. package/lib/components/ndf-config-editor/services/dummy-data.d.ts +0 -992
@@ -4005,6 +4005,74 @@
4005
4005
  args: [{ providedIn: 'root' }]
4006
4006
  }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
4007
4007
 
4008
+ var BaseEditorConfigService = /** @class */ (function (_super) {
4009
+ __extends(BaseEditorConfigService, _super);
4010
+ function BaseEditorConfigService(injector) {
4011
+ var _this = _super.call(this, injector) || this;
4012
+ _this.injector = injector;
4013
+ _this.appConfigService = _this.injector.get(AppConfigService);
4014
+ return _this;
4015
+ }
4016
+ BaseEditorConfigService.prototype.fetchData = function (_b) {
4017
+ var _this = this;
4018
+ var key = _b.key, type = _b.type, app = _b.app, localPath = _b.localPath;
4019
+ return this.request({
4020
+ type: 'get',
4021
+ endpoint: "/search/pp/PP_NDF_UI_Configurations/execute",
4022
+ queryParams: Object.assign({ ndfuiconfig_type: type, ndfuiconfig_key: key }, (app ? { ndfuiconfig_app: app } : {})),
4023
+ headers: {
4024
+ properties: 'ndfuiconfig,note'
4025
+ }
4026
+ }).pipe(operators.map(function (response) { var _a; return (_a = response.entries) === null || _a === void 0 ? void 0 : _a[0]; }), operators.switchMap(function (entry) {
4027
+ var _a;
4028
+ var content = _this._parseData((_a = entry === null || entry === void 0 ? void 0 : entry.properties) === null || _a === void 0 ? void 0 : _a['note:note']);
4029
+ if (content) {
4030
+ return rxjs.of({
4031
+ submitted: true,
4032
+ uid: entry.uid,
4033
+ data: {
4034
+ key: key,
4035
+ type: type,
4036
+ app: entry.properties['ndfuiconfig:app'],
4037
+ config: content
4038
+ }
4039
+ });
4040
+ }
4041
+ var config = _this.appConfigService.myConfiguration || {};
4042
+ var base = localPath ? ___default["default"].get(config, localPath) : config;
4043
+ var data = _.cloneDeep(___default["default"].get(base, key));
4044
+ return rxjs.of({
4045
+ submitted: false,
4046
+ data: {
4047
+ key: key,
4048
+ type: type,
4049
+ app: app,
4050
+ config: data
4051
+ }
4052
+ });
4053
+ }));
4054
+ };
4055
+ BaseEditorConfigService.prototype._parseData = function (data) {
4056
+ if (!data) {
4057
+ return null;
4058
+ }
4059
+ try {
4060
+ return JSON.parse(data);
4061
+ }
4062
+ catch (error) {
4063
+ console.warn('Error parsing data:', error);
4064
+ return null;
4065
+ }
4066
+ };
4067
+ return BaseEditorConfigService;
4068
+ }(BaseService));
4069
+ BaseEditorConfigService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseEditorConfigService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4070
+ BaseEditorConfigService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseEditorConfigService, providedIn: 'root' });
4071
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseEditorConfigService, decorators: [{
4072
+ type: i0.Injectable,
4073
+ args: [{ providedIn: 'root' }]
4074
+ }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
4075
+
4008
4076
  /**
4009
4077
  * Transforms URL into async safe URL to be rendered in the view
4010
4078
  *
@@ -20267,6 +20335,11 @@
20267
20335
  escape: /\{\{\{([\s\S]+?)\}\}\}/g
20268
20336
  };
20269
20337
 
20338
+ var NDF_EDITOR_TYPE = {
20339
+ REPORTS: 'report',
20340
+ TABLES: 'table'
20341
+ };
20342
+
20270
20343
  var BaseField = /** @class */ (function (_super) {
20271
20344
  __extends(BaseField, _super);
20272
20345
  function BaseField() {
@@ -21453,21 +21526,6 @@
21453
21526
  }
21454
21527
  ];
21455
21528
 
21456
- var CONFIG_EDITOR_MODE = {
21457
- EDIT: 'edit',
21458
- PREVIEW: 'preview'
21459
- };
21460
-
21461
- var NDF_EDITOR_TYPE = {
21462
- REPORTS: 'reports',
21463
- TABLES: 'tables'
21464
- };
21465
-
21466
- var PARAMS_KEYS = {
21467
- TYPE: 'type',
21468
- KEY: 'key'
21469
- };
21470
-
21471
21529
  var DynamicTableService = /** @class */ (function () {
21472
21530
  function DynamicTableService() {
21473
21531
  this.refreshData = new i0.EventEmitter();
@@ -22216,7 +22274,7 @@
22216
22274
  headers: request === null || request === void 0 ? void 0 : request.headers,
22217
22275
  queryParams: request === null || request === void 0 ? void 0 : request.params,
22218
22276
  payload: payload
22219
- }).pipe(operators.map(function (res) { return ("" + (res === null || res === void 0 ? void 0 : res.Statue)).toLowerCase() === 'success'; }));
22277
+ }).pipe(operators.map(function (res) { return ("" + (res === null || res === void 0 ? void 0 : res.Status)).toLowerCase() === 'success'; }));
22220
22278
  };
22221
22279
  return NdfTableService;
22222
22280
  }(BaseService));
@@ -22234,18 +22292,27 @@
22234
22292
  function NdfTableConfigurationService(injector) {
22235
22293
  var _this = _super.call(this, injector) || this;
22236
22294
  _this.injector = injector;
22237
- _this.appConfigService = _this.injector.get(AppConfigService);
22238
- _this.configurationsUrl = 'assets/configs/configuration.json';
22239
22295
  return _this;
22240
22296
  }
22241
- NdfTableConfigurationService.prototype.getTableConfiguration = function (key, path) {
22242
- return rxjs.of(this.appConfigService.myConfiguration).pipe(operators.map(function (config) {
22243
- var base = path ? ___default["default"].get(config, path) : config;
22244
- return _.cloneDeep(___default["default"].get(base, key));
22297
+ NdfTableConfigurationService.prototype.getTableConfiguration = function (key, localPath) {
22298
+ var _a;
22299
+ return this.fetchData({
22300
+ key: key,
22301
+ type: 'table',
22302
+ app: (_a = this.environment) === null || _a === void 0 ? void 0 : _a.appKey,
22303
+ localPath: localPath
22304
+ }).pipe(operators.map(function (res) {
22305
+ var _a;
22306
+ if (!res.submitted) {
22307
+ console.warn('%c \n--------------------------------------------------\n' +
22308
+ 'Unsaved table configuration detected. Open the config editor to save it' +
22309
+ '\n--------------------------------------------------\n', 'font-size: 14px;');
22310
+ }
22311
+ return (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.config;
22245
22312
  }));
22246
22313
  };
22247
22314
  return NdfTableConfigurationService;
22248
- }(HttpBaseService));
22315
+ }(BaseEditorConfigService));
22249
22316
  NdfTableConfigurationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableConfigurationService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
22250
22317
  NdfTableConfigurationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableConfigurationService, providedIn: 'root' });
22251
22318
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableConfigurationService, decorators: [{
@@ -22255,6 +22322,16 @@
22255
22322
 
22256
22323
  var PROJECT_BASE_HREF = new i0.InjectionToken('PROJECT_BASE_HREF');
22257
22324
 
22325
+ var CONFIG_EDITOR_MODE = {
22326
+ EDIT: 'edit',
22327
+ PREVIEW: 'preview'
22328
+ };
22329
+
22330
+ var PARAMS_KEYS = {
22331
+ TYPE: 'type',
22332
+ KEY: 'key',
22333
+ };
22334
+
22258
22335
  var EditorButtonComponent = /** @class */ (function () {
22259
22336
  function EditorButtonComponent(environment, router, baseAppUrl, configService) {
22260
22337
  var _a;
@@ -22266,9 +22343,17 @@
22266
22343
  this.editorConfig = (_a = this.configService.myConfiguration) === null || _a === void 0 ? void 0 : _a.configEditor;
22267
22344
  this.isFeatureEnabled = environment.configEditor === 'YES';
22268
22345
  }
22346
+ Object.defineProperty(EditorButtonComponent.prototype, "isEnabled", {
22347
+ get: function () {
22348
+ var _a, _b, _c, _d;
22349
+ return ((_a = this.editorConfig) === null || _a === void 0 ? void 0 : _a.enabled) && ((_d = (_c = (_b = this.editorConfig) === null || _b === void 0 ? void 0 : _b.types) === null || _c === void 0 ? void 0 : _c[this.type]) === null || _d === void 0 ? void 0 : _d.enabled);
22350
+ },
22351
+ enumerable: false,
22352
+ configurable: true
22353
+ });
22269
22354
  EditorButtonComponent.prototype.ngOnInit = function () { };
22270
22355
  EditorButtonComponent.prototype.navigate = function () {
22271
- var _b;
22356
+ var _e;
22272
22357
  var _a;
22273
22358
  var config = (_a = this.editorConfig) === null || _a === void 0 ? void 0 : _a.types[this.type];
22274
22359
  if (!config || !this.key || !this.type) {
@@ -22280,21 +22365,21 @@
22280
22365
  }
22281
22366
  var url = "" + (this.baseAppUrl || '') + navigateUrl;
22282
22367
  this.router.navigate([url], {
22283
- queryParams: (_b = {},
22284
- _b[PARAMS_KEYS.TYPE] = this.type,
22285
- _b[PARAMS_KEYS.KEY] = this.key,
22286
- _b)
22368
+ queryParams: (_e = {},
22369
+ _e[PARAMS_KEYS.TYPE] = this.type,
22370
+ _e[PARAMS_KEYS.KEY] = this.key,
22371
+ _e)
22287
22372
  });
22288
22373
  };
22289
22374
  return EditorButtonComponent;
22290
22375
  }());
22291
22376
  EditorButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EditorButtonComponent, deps: [{ token: 'environment' }, { token: i1__namespace$5.Router }, { token: PROJECT_BASE_HREF }, { token: AppConfigService }], target: i0__namespace.ɵɵFactoryTarget.Component });
22292
- EditorButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: EditorButtonComponent, selector: "app-editor-button", inputs: { type: "type", key: "key" }, ngImport: i0__namespace, template: "\n\t\t<ng-container *ngIf=\"isFeatureEnabled && editorConfig?.enabled && editorConfig?.types?.tables?.enabled\">\n\t\t\t<button\n\t\t\t\tmat-stroked-button\n\t\t\t\t[matTooltip]=\"'JSON_EDITOR.navigateToEditor' | translate\"\n\t\t\t\t(click)=\"navigate()\"\n\t\t\t\t*permission=\"{ name: item?.permission }\"\n\t\t\t>\n\t\t\t\t<mat-icon>edit</mat-icon>\n\t\t\t</button>\n\t\t</ng-container>\n\t", isInline: true, components: [{ type: i1__namespace$c.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: PermissionsDirective, selector: "[permission]", inputs: ["permission"] }, { type: i7__namespace.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltipPosition", "matTooltipDisabled", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], pipes: { "translate": i1__namespace.TranslatePipe } });
22377
+ EditorButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: EditorButtonComponent, selector: "app-editor-button", inputs: { type: "type", key: "key" }, ngImport: i0__namespace, template: "\n\t\t<ng-container *ngIf=\"isFeatureEnabled && isEnabled\">\n\t\t\t<button\n\t\t\t\tmat-stroked-button\n\t\t\t\t[matTooltip]=\"'JSON_EDITOR.navigateToEditor' | translate\"\n\t\t\t\t(click)=\"navigate()\"\n\t\t\t\t*permission=\"{ name: item?.permission }\"\n\t\t\t>\n\t\t\t\t<mat-icon>edit</mat-icon>\n\t\t\t</button>\n\t\t</ng-container>\n\t", isInline: true, components: [{ type: i1__namespace$c.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: PermissionsDirective, selector: "[permission]", inputs: ["permission"] }, { type: i7__namespace.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltipPosition", "matTooltipDisabled", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], pipes: { "translate": i1__namespace.TranslatePipe } });
22293
22378
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EditorButtonComponent, decorators: [{
22294
22379
  type: i0.Component,
22295
22380
  args: [{
22296
22381
  selector: 'app-editor-button',
22297
- template: "\n\t\t<ng-container *ngIf=\"isFeatureEnabled && editorConfig?.enabled && editorConfig?.types?.tables?.enabled\">\n\t\t\t<button\n\t\t\t\tmat-stroked-button\n\t\t\t\t[matTooltip]=\"'JSON_EDITOR.navigateToEditor' | translate\"\n\t\t\t\t(click)=\"navigate()\"\n\t\t\t\t*permission=\"{ name: item?.permission }\"\n\t\t\t>\n\t\t\t\t<mat-icon>edit</mat-icon>\n\t\t\t</button>\n\t\t</ng-container>\n\t"
22382
+ template: "\n\t\t<ng-container *ngIf=\"isFeatureEnabled && isEnabled\">\n\t\t\t<button\n\t\t\t\tmat-stroked-button\n\t\t\t\t[matTooltip]=\"'JSON_EDITOR.navigateToEditor' | translate\"\n\t\t\t\t(click)=\"navigate()\"\n\t\t\t\t*permission=\"{ name: item?.permission }\"\n\t\t\t>\n\t\t\t\t<mat-icon>edit</mat-icon>\n\t\t\t</button>\n\t\t</ng-container>\n\t"
22298
22383
  }]
22299
22384
  }], ctorParameters: function () {
22300
22385
  return [{ type: undefined, decorators: [{
@@ -22613,7 +22698,7 @@
22613
22698
  return;
22614
22699
  }
22615
22700
  var columns = this._displayedColumnsSub.getValue();
22616
- var fields = columns.map(function (col) { return col.headerClass; });
22701
+ var fields = columns.map(function (col) { return col.headerClass || (col === null || col === void 0 ? void 0 : col.filedKey); });
22617
22702
  var headers = columns.map(function (col) { return (_this.tableConfig.prefix || '') + col.name; });
22618
22703
  var criteria = this._customCriteriaSub.getValue();
22619
22704
  request.params = Object.assign({}, criteria.params, this._sortValue || {}, ((_b = this.tableConfig) === null || _b === void 0 ? void 0 : _b.quickFilters) ? { quickFilters: this.tableConfig.quickFilters } : {}, request.params);
@@ -22638,10 +22723,10 @@
22638
22723
  payload.reportMetaData.headers = headers.map(function (col) { return ___default["default"].get(currentTranslations, col); });
22639
22724
  payload.reportMetaData.blobName = ___default["default"].get(translations['ar'], blobNameKey);
22640
22725
  payload.reportMetaData.blobNameEn = ___default["default"].get(translations['en'], blobNameKey);
22641
- return _this._ngTableService.exportTable(request, payload);
22642
- }), operators.catchError(function (_) {
22643
- _this._toastrService.error('TABLE.EXPORT.RequestError');
22644
- return rxjs.of(false);
22726
+ return _this._ngTableService.exportTable(request, payload).pipe(operators.catchError(function (_) {
22727
+ _this._toastrService.error('TABLE.EXPORT.RequestError');
22728
+ return rxjs.of(false);
22729
+ }));
22645
22730
  }), operators.filter(Boolean), operators.takeUntil(this.destroy$))
22646
22731
  .subscribe(function (res) {
22647
22732
  if (res) {
@@ -45489,6 +45574,34 @@
45489
45574
  }]
45490
45575
  }], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }]; } });
45491
45576
 
45577
+ var ReportDetailsService = /** @class */ (function (_super) {
45578
+ __extends(ReportDetailsService, _super);
45579
+ function ReportDetailsService(injector) {
45580
+ var _this = _super.call(this, injector) || this;
45581
+ _this.injector = injector;
45582
+ return _this;
45583
+ }
45584
+ ReportDetailsService.prototype.getTableConfiguration = function (key, localPath) {
45585
+ var _a;
45586
+ return this.fetchData({
45587
+ key: key,
45588
+ type: NDF_EDITOR_TYPE.REPORTS,
45589
+ app: (_a = this.environment) === null || _a === void 0 ? void 0 : _a.appKey,
45590
+ localPath: localPath
45591
+ }).pipe(operators.map(function (res) {
45592
+ var _a;
45593
+ return (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.config;
45594
+ }));
45595
+ };
45596
+ return ReportDetailsService;
45597
+ }(BaseEditorConfigService));
45598
+ ReportDetailsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ReportDetailsService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
45599
+ ReportDetailsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ReportDetailsService, providedIn: 'root' });
45600
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ReportDetailsService, decorators: [{
45601
+ type: i0.Injectable,
45602
+ args: [{ providedIn: 'root' }]
45603
+ }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
45604
+
45492
45605
  var DigitChartComponent = /** @class */ (function (_super) {
45493
45606
  __extends(DigitChartComponent, _super);
45494
45607
  function DigitChartComponent() {
@@ -46467,7 +46580,8 @@
46467
46580
  function mapToNdfTableConfig(report, details) {
46468
46581
  var _a, _b, _c, _d, _e;
46469
46582
  var _request = report.request;
46470
- var _detailsConfig = ___default["default"].merge((_a = report.reports) === null || _a === void 0 ? void 0 : _a.details, details);
46583
+ var source = ___default["default"].merge((_a = report.reports) === null || _a === void 0 ? void 0 : _a.details, details).source;
46584
+ var _detailsConfig = source;
46471
46585
  var customUrl = ___default["default"].merge({
46472
46586
  url: "/api/v1" + (_request === null || _request === void 0 ? void 0 : _request.customUrl.url),
46473
46587
  method: _request === null || _request === void 0 ? void 0 : _request.customUrl.method
@@ -46952,1355 +47066,35 @@
46952
47066
  }]
46953
47067
  }] });
46954
47068
 
46955
- var TABLE_DATA = {
46956
- options: {
46957
- columns: {
46958
- toggle: true,
46959
- sortable: {
46960
- enabled: true,
46961
- },
46962
- },
46963
- filters: {
46964
- mode: 'payload',
46965
- reload: {
46966
- strategy: 'always',
46967
- },
46968
- panel: {
46969
- visible: true,
46970
- toggleButton: true,
46971
- },
46972
- fields: [
46973
- {
46974
- type: 'aggregation',
46975
- config: {
46976
- label: 'rmAdvancedSearch.recDefintionSystemName',
46977
- aggregation: 'RecordDefinition_systemName_agg',
46978
- fieldKey: 'recdef:systemName',
46979
- dataTransformer: 'system',
46980
- order: 0,
46981
- sendMode: 'queryParam',
46982
- render: {
46983
- type: 'checkbox',
46984
- options: {
46985
- showTotal: true,
46986
- },
46987
- },
46988
- },
46989
- },
46990
- {
46991
- type: 'aggregation',
46992
- config: {
46993
- label: 'rmAdvancedSearch.gdocCategoryHierarchyCode',
46994
- aggregation: 'generaldocument_categoryHierarchyCode_agg',
46995
- fieldKey: 'gdoc:categoryHierarchyCode',
46996
- dataTransformer: 'subject',
46997
- order: 0,
46998
- sendMode: 'queryParam',
46999
- valueType: 'property',
47000
- render: {
47001
- type: 'checkbox',
47002
- options: {
47003
- showTotal: true,
47004
- },
47005
- },
47006
- },
47007
- },
47008
- {
47009
- type: 'aggregation',
47010
- config: {
47011
- label: 'rmAdvancedSearch.gdocCategoryHierarchyCode1',
47012
- aggregation: 'generaldocument_categoryHierarchyCode_1_agg',
47013
- fieldKey: 'gdoc:categoryHierarchyCode__1',
47014
- order: 0,
47015
- sendMode: 'queryParam',
47016
- valueType: 'property',
47017
- dataTransformer: 'subject',
47018
- render: {
47019
- type: 'checkbox',
47020
- options: {
47021
- showTotal: true,
47022
- collapse: true,
47023
- },
47024
- },
47025
- },
47026
- },
47027
- {
47028
- type: 'aggregation',
47029
- config: {
47030
- label: 'rmAdvancedSearch.gdocDocumentTypeCode',
47031
- aggregation: 'generaldocument_documentTypeCode_agg',
47032
- fieldKey: 'gdoc:documentTypeCode',
47033
- dataTransformer: 'documentTypee',
47034
- sendMode: 'queryParam',
47035
- render: {
47036
- type: 'checkbox',
47037
- options: {
47038
- showTotal: true,
47039
- filter: true,
47040
- sort: true,
47041
- collapse: true,
47042
- },
47043
- },
47044
- },
47045
- },
47046
- {
47047
- type: 'predicate',
47048
- config: {
47049
- label: 'FILTERS.gdocDocumentSubject',
47050
- fieldKey: 'gdoc:documentSubject',
47051
- sendMode: 'payload',
47052
- valueType: 'valueObject',
47053
- render: {
47054
- type: 'input',
47055
- options: {
47056
- delay: 300,
47057
- suffix: {
47058
- dropdown: {
47059
- items: [
47060
- {
47061
- key: 'OPERATORS.equals',
47062
- value: '=',
47063
- },
47064
- {
47065
- key: 'OPERATORS.notEquals',
47066
- value: '!=',
47067
- },
47068
- {
47069
- key: 'OPERATORS.like',
47070
- value: 'LIKE',
47071
- },
47072
- {
47073
- key: 'OPERATORS.iLike',
47074
- value: 'ILIKE',
47075
- },
47076
- ],
47077
- },
47078
- },
47079
- },
47080
- },
47081
- },
47082
- },
47083
- {
47084
- type: 'predicate',
47085
- config: {
47086
- label: 'FILTERS.dcTitle',
47087
- fieldKey: 'dc:title',
47088
- sendMode: 'payload',
47089
- valueType: 'valueObject',
47090
- render: {
47091
- type: 'input',
47092
- options: {
47093
- delay: 300,
47094
- suffix: {
47095
- dropdown: {
47096
- items: [
47097
- {
47098
- key: 'OPERATORS.equals',
47099
- value: '=',
47100
- },
47101
- {
47102
- key: 'OPERATORS.notEquals',
47103
- value: '!=',
47104
- },
47105
- {
47106
- key: 'OPERATORS.like',
47107
- value: 'LIKE',
47108
- },
47109
- {
47110
- key: 'OPERATORS.iLike',
47111
- value: 'ILIKE',
47112
- },
47113
- ],
47114
- },
47115
- },
47116
- },
47117
- },
47118
- },
47119
- },
47120
- {
47121
- type: 'predicate',
47122
- config: {
47123
- label: 'FILTERS.documentNumber',
47124
- fieldKey: 'gdoc:documentReferenceNumber',
47125
- sendMode: 'payload',
47126
- valueType: 'valueObject',
47127
- render: {
47128
- type: 'input',
47129
- options: {
47130
- debounceTime: 300,
47131
- suffix: {
47132
- dropdown: {
47133
- items: [
47134
- {
47135
- key: 'OPERATORS.equals',
47136
- value: '=',
47137
- },
47138
- {
47139
- key: 'OPERATORS.notEquals',
47140
- value: '!=',
47141
- },
47142
- {
47143
- key: 'OPERATORS.like',
47144
- value: 'LIKE',
47145
- },
47146
- {
47147
- key: 'OPERATORS.iLike',
47148
- value: 'ILIKE',
47149
- },
47150
- ],
47151
- },
47152
- },
47153
- },
47154
- },
47155
- },
47156
- },
47157
- {
47158
- type: 'predicate',
47159
- config: {
47160
- label: 'FILTERS.recUnifiedNumber',
47161
- fieldKey: 'recdef:unifiedNumber',
47162
- sendMode: 'payload',
47163
- valueType: 'valueObject',
47164
- render: {
47165
- type: 'input',
47166
- options: {
47167
- delay: 300,
47168
- suffix: {
47169
- dropdown: {
47170
- items: [
47171
- {
47172
- key: 'OPERATORS.equals',
47173
- value: '=',
47174
- },
47175
- {
47176
- key: 'OPERATORS.notEquals',
47177
- value: '!=',
47178
- },
47179
- {
47180
- key: 'OPERATORS.like',
47181
- value: 'LIKE',
47182
- },
47183
- {
47184
- key: 'OPERATORS.iLike',
47185
- value: 'ILIKE',
47186
- },
47187
- ],
47188
- },
47189
- },
47190
- },
47191
- },
47192
- },
47193
- },
47194
- {
47195
- type: 'aggregation',
47196
- config: {
47197
- label: 'FILTERS.recPhysicalOriginal',
47198
- aggregation: 'RecordDefinition_physicalOriginal_agg',
47199
- fieldKey: 'recdef:physicalOriginal',
47200
- prefix: 'FILTERS.BUCKETS.physicalOriginal.',
47201
- sendMode: 'queryParam',
47202
- render: {
47203
- type: 'checkbox',
47204
- options: {
47205
- showTotal: true,
47206
- },
47207
- },
47208
- },
47209
- },
47210
- {
47211
- type: 'aggregation',
47212
- config: {
47213
- label: 'rmAdvancedSearch.gdocSecrecyLevel',
47214
- aggregation: 'generaldocument_secrecyLevel_agg',
47215
- fieldKey: 'gdoc:secrecyLevel',
47216
- prefix: 'search.buckets.',
47217
- sendMode: 'queryParam',
47218
- render: {
47219
- type: 'checkbox',
47220
- options: {
47221
- showTotal: true,
47222
- },
47223
- },
47224
- },
47225
- },
47226
- {
47227
- type: 'predicate',
47228
- config: {
47229
- label: 'FILTERS.tags',
47230
- fieldKey: 'ecm:tag',
47231
- sendMode: 'payload',
47232
- valueType: 'valueObject',
47233
- render: {
47234
- type: 'input',
47235
- options: {
47236
- delay: 300,
47237
- suffix: {
47238
- dropdown: {
47239
- items: [
47240
- {
47241
- key: 'OPERATORS.equals',
47242
- value: '=',
47243
- },
47244
- {
47245
- key: 'OPERATORS.notEquals',
47246
- value: '!=',
47247
- },
47248
- {
47249
- key: 'OPERATORS.like',
47250
- value: 'LIKE',
47251
- },
47252
- {
47253
- key: 'OPERATORS.iLike',
47254
- value: 'ILIKE',
47255
- },
47256
- ],
47257
- },
47258
- },
47259
- },
47260
- },
47261
- },
47262
- },
47263
- {
47264
- type: 'aggregation',
47265
- config: {
47266
- label: 'FILTERS.priority',
47267
- aggregation: 'generaldocument_importance_agg',
47268
- fieldKey: 'gdoc:importance',
47269
- prefix: 'search.buckets.',
47270
- sendMode: 'queryParam',
47271
- render: {
47272
- type: 'checkbox',
47273
- options: {
47274
- showTotal: true,
47275
- },
47276
- },
47277
- },
47278
- },
47279
- {
47280
- type: 'aggregation',
47281
- config: {
47282
- label: 'FILTERS.dcCreated',
47283
- aggregation: 'dublincore_created_agg',
47284
- fieldKey: 'dc:created',
47285
- prefix: 'search.buckets.',
47286
- sendMode: 'queryParam',
47287
- tooltip: {
47288
- type: 'date',
47289
- properties: {
47290
- from: 'from',
47291
- to: 'to',
47292
- },
47293
- },
47294
- render: {
47295
- type: 'checkbox',
47296
- options: {
47297
- showTotal: true,
47298
- },
47299
- },
47300
- },
47301
- },
47302
- {
47303
- type: 'aggregation',
47304
- config: {
47305
- label: 'rmAdvancedSearch.gdocGDocumentDate',
47306
- aggregation: 'generaldocument_gDocumentDate_agg',
47307
- fieldKey: 'gdoc:gDocumentDate',
47308
- prefix: 'search.buckets.',
47309
- sendMode: 'custom',
47310
- valueType: 'valueObject',
47311
- render: {
47312
- type: 'dateList',
47313
- view: 'list',
47314
- options: {
47315
- showTotal: true,
47316
- minMax: true,
47317
- },
47318
- },
47319
- },
47320
- },
47321
- {
47322
- type: 'aggregation',
47323
- config: {
47324
- label: 'rmAdvancedSearch.saveTypee',
47325
- aggregation: 'RetentionInfo_saveTypee_agg',
47326
- fieldKey: 'retentioninfo:saveTypee',
47327
- prefix: 'FILTERS.BUCKETS.physicalOriginal.',
47328
- sendMode: 'queryParam',
47329
- render: {
47330
- type: 'checkbox',
47331
- options: {
47332
- showTotal: true,
47333
- },
47334
- },
47335
- },
47336
- },
47337
- {
47338
- type: 'aggregation',
47339
- config: {
47340
- label: 'rmAdvancedSearch.retentionPlan',
47341
- aggregation: 'RetentionInfo_status_agg',
47342
- fieldKey: 'retentioninfo:status',
47343
- prefix: 'FILTERS.BUCKETS.physicalOriginal.',
47344
- sendMode: 'queryParam',
47345
- render: {
47346
- type: 'checkbox',
47347
- options: {
47348
- showTotal: true,
47349
- },
47350
- },
47351
- },
47352
- },
47353
- {
47354
- type: 'aggregation',
47355
- config: {
47356
- label: 'FILTERS.startDateActiveRetention',
47357
- aggregation: 'RetentionInfo_activeRetentionStartDateHijri_agg',
47358
- fieldKey: 'retentioninfo:activeRetentionStartDateHijri',
47359
- prefix: 'search.buckets.',
47360
- sendMode: 'queryParam',
47361
- permission: 'hasRoleOnArchiveOrLoan',
47362
- tooltip: {
47363
- type: 'date',
47364
- properties: {
47365
- from: 'from',
47366
- to: 'to',
47367
- },
47368
- },
47369
- render: {
47370
- type: 'checkbox',
47371
- options: {
47372
- showTotal: true,
47373
- },
47374
- },
47375
- },
47376
- },
47377
- {
47378
- type: 'aggregation',
47379
- config: {
47380
- label: 'FILTERS.endDateActiveRetention',
47381
- aggregation: 'RetentionInfo_activeRetentionEndDateHijri_agg',
47382
- fieldKey: 'retentioninfo:activeRetentionEndDateHijri',
47383
- prefix: 'search.buckets.',
47384
- sendMode: 'queryParam',
47385
- permission: 'hasRoleOnArchiveOrLoan',
47386
- tooltip: {
47387
- type: 'date',
47388
- properties: {
47389
- from: 'from',
47390
- to: 'to',
47391
- },
47392
- },
47393
- render: {
47394
- type: 'checkbox',
47395
- options: {
47396
- showTotal: true,
47397
- },
47398
- },
47399
- },
47400
- },
47401
- {
47402
- type: 'aggregation',
47403
- config: {
47404
- label: 'FILTERS.endDateRetention',
47405
- aggregation: 'RetentionInfo_retentionEndDateHijri_agg',
47406
- fieldKey: 'retentioninfo:retentionEndDateHijri',
47407
- prefix: 'search.buckets.',
47408
- sendMode: 'queryParam',
47409
- permission: 'hasRoleOnArchiveOrLoan',
47410
- tooltip: {
47411
- type: 'date',
47412
- properties: {
47413
- from: 'from',
47414
- to: 'to',
47415
- },
47416
- },
47417
- render: {
47418
- type: 'checkbox',
47419
- options: {
47420
- showTotal: true,
47421
- },
47422
- },
47423
- },
47424
- },
47425
- {
47426
- type: 'aggregation',
47427
- config: {
47428
- label: 'rmAdvancedSearch.locationReference_site_agg',
47429
- aggregation: 'LocationReferenceSchema_site_agg',
47430
- permission: 'hasRoleOnArchiveOrLoan',
47431
- fieldKey: 'locRef:site',
47432
- order: 0,
47433
- sendMode: 'queryParam',
47434
- valueType: 'property',
47435
- dataTransformer: 'site',
47436
- render: {
47437
- type: 'checkbox',
47438
- options: {
47439
- showTotal: true,
47440
- },
47441
- },
47442
- },
47443
- },
47444
- {
47445
- type: 'aggregation',
47446
- config: {
47447
- label: 'rmAdvancedSearch.locationReference_store_agg',
47448
- aggregation: 'LocationReferenceSchema_store_agg',
47449
- fieldKey: 'locRef:store',
47450
- permission: 'hasRoleOnArchiveOrLoan',
47451
- order: 0,
47452
- sendMode: 'queryParam',
47453
- valueType: 'property',
47454
- dataTransformer: 'store',
47455
- render: {
47456
- type: 'checkbox',
47457
- options: {
47458
- showTotal: true,
47459
- },
47460
- },
47461
- },
47462
- },
47463
- {
47464
- type: 'predicate',
47465
- config: {
47466
- label: 'rmAdvancedSearch.locationReference_box',
47467
- fieldKey: 'locRef:boxCode',
47468
- permission: 'hasRoleOnArchiveOrLoan',
47469
- sendMode: 'payload',
47470
- valueType: 'valueObject',
47471
- render: {
47472
- type: 'input',
47473
- options: {
47474
- debounceTime: 400,
47475
- mask: {
47476
- mask: '00-00-00-00-000',
47477
- dropSpecialCharacters: false,
47478
- showMaskTyped: true,
47479
- },
47480
- suffix: {
47481
- dropdown: {
47482
- items: [
47483
- {
47484
- key: 'OPERATORS.equals',
47485
- value: '=',
47486
- },
47487
- {
47488
- key: 'OPERATORS.notEquals',
47489
- value: '!=',
47490
- },
47491
- {
47492
- key: 'OPERATORS.like',
47493
- value: 'LIKE',
47494
- },
47495
- {
47496
- key: 'OPERATORS.iLike',
47497
- value: 'ILIKE',
47498
- },
47499
- ],
47500
- },
47501
- },
47502
- },
47503
- },
47504
- },
47505
- },
47506
- ],
47507
- },
47508
- search: {
47509
- fieldKey: 'ecm:fulltext',
47510
- searchMode: 'triggered',
47511
- suffix: {
47512
- dialog: {
47513
- title: 'INFO.dialogTitle',
47514
- content: [
47515
- '##INFO.query_sequence##',
47516
- '##INFO.query_and##',
47517
- '##INFO.query_negation##',
47518
- '##INFO.query_prefix##',
47519
- '##INFO.query_historical##',
47520
- '##INFO.query_or##',
47521
- '##INFO.query_phrase##',
47522
- ],
47523
- },
47524
- },
47525
- },
47526
- tableMode: {
47527
- mode: 'list',
47528
- componentName: 'rms.components.advancedSearchCard',
47529
- toggleMode: true,
47530
- availableMode: [
47531
- {
47532
- value: 'list',
47533
- icon: 'table_rows',
47534
- },
47535
- {
47536
- value: 'custom',
47537
- icon: 'rectangle',
47538
- },
47539
- ],
47540
- },
47541
- },
47542
- scrollbarH: true,
47543
- pageNumber: 1,
47544
- pageSize: 10,
47545
- prefix: 'LISTING.',
47546
- pageProvider: 'PP_RM_Record',
47547
- customUrl: {
47548
- url: '/api/v1/custom-search/pp/PP_RM_Record/execute',
47549
- method: 'POST',
47550
- },
47551
- headers: {
47552
- properties: 'dublincore, file, generaldocument, RecordDefinition,RetentionInfo, LocationReferenceSchema, facetedTag',
47553
- },
47554
- quickFilters: 'After Archiving',
47555
- fullWidth: 'auto',
47556
- fields: {
47557
- systemName: 'recdef:systemName',
47558
- categoryHierarchyCode: 'gdoc:categoryHierarchyCode',
47559
- docTypee: 'gdoc:documentTypeCode',
47560
- subject: 'gdoc:documentSubject',
47561
- title: 'dc:title',
47562
- docNum: 'gdoc:documentReferenceNumber',
47563
- unifiedNumber: 'recdef:unifiedNumber',
47564
- physicalOriginal: 'recdef:physicalOriginal',
47565
- secrecyLevel: 'gdoc:secrecyLevel',
47566
- tags: 'ecm:tag',
47567
- importance: 'gdoc:importance',
47568
- created: 'dc:created',
47569
- gdocumentDate: 'gdoc:gDocumentDate',
47570
- saveTypee: 'retentioninfo:saveTypee',
47571
- retentioninfoStatus: 'retentioninfo:status',
47572
- activeRetentionStartDateHijri: 'retentioninfo:activeRetentionStartDateHijri',
47573
- activeRetentionEndDateHijri: 'retentioninfo:activeRetentionEndDateHijri',
47574
- retentionEndDateHijri: 'retentioninfo:retentionEndDateHijri',
47575
- site: 'locRef:site',
47576
- store: 'locRef:store',
47577
- box: 'locRef:boxCode',
47578
- file: 'file:content',
47579
- },
47580
- columns: [
47581
- {
47582
- name: 'systemName',
47583
- prop: 'properties.systemName',
47584
- display: true,
47585
- type: 'custom',
47586
- template: 'common.components.systemName',
47587
- translatePrefix: 'search.buckets',
47588
- isOrginalKey: true,
47589
- sortable: false,
47590
- headerClass: 'recdef:systemName',
47591
- defaultVisible: true,
47592
- minWidth: 150,
47593
- },
47594
- {
47595
- name: 'categoryHierarchyCode',
47596
- prop: 'properties.categoryHierarchyCode',
47597
- display: true,
47598
- type: 'custom',
47599
- template: 'rms.components.mainAndSecondaryCategory',
47600
- mainCategory: true,
47601
- sortable: true,
47602
- headerClass: 'gdoc:categoryHierarchyCode',
47603
- defaultVisible: true,
47604
- },
47605
- {
47606
- name: 'categoryHierarchyCode1',
47607
- prop: 'properties.categoryHierarchyCode',
47608
- display: true,
47609
- type: 'custom',
47610
- template: 'rms.components.mainAndSecondaryCategory',
47611
- mainCategory: false,
47612
- sortable: true,
47613
- headerClass: 'gdoc:categoryHierarchyCode',
47614
- defaultVisible: true,
47615
- },
47616
- {
47617
- name: 'Doc_Type',
47618
- prop: 'properties.docTypee',
47619
- display: true,
47620
- template: 'common.components.documentType',
47621
- type: 'custom',
47622
- headerClass: 'gdoc:documentTypeCode',
47623
- defaultVisible: true,
47624
- },
47625
- {
47626
- name: 'Doc_subject',
47627
- prop: 'properties.subject',
47628
- display: true,
47629
- type: 'text',
47630
- headerClass: 'gdoc:documentSubject',
47631
- defaultVisible: true,
47632
- },
47633
- {
47634
- name: 'Doc_Name',
47635
- prop: 'properties.title',
47636
- display: true,
47637
- type: 'custom',
47638
- template: 'common.components.titleWithIcon',
47639
- sortable: true,
47640
- headerClass: 'dc:title',
47641
- defaultVisible: false,
47642
- },
47643
- {
47644
- name: 'Doc_RefernceNum',
47645
- prop: 'properties.docNum',
47646
- display: true,
47647
- type: 'text',
47648
- sortable: true,
47649
- headerClass: 'gdoc:documentReferenceNumber',
47650
- defaultVisible: true,
47651
- },
47652
- {
47653
- name: 'unifiedNumber',
47654
- prop: 'properties.unifiedNumber',
47655
- display: true,
47656
- type: 'text',
47657
- sortable: true,
47658
- headerClass: 'recdef:unifiedNumber',
47659
- defaultVisible: true,
47660
- },
47661
- {
47662
- name: 'physicalOriginal',
47663
- prop: 'properties.physicalOriginal',
47664
- display: true,
47665
- type: 'custom',
47666
- template: 'rms.components.TranslatedValueColumn',
47667
- translatePrefix: 'rmDocumentUpload.hasPhysicalOriginal',
47668
- isBooleanValue: true,
47669
- sortable: false,
47670
- headerClass: 'recdef:physicalOriginal',
47671
- defaultVisible: false,
47672
- minWidth: 150,
47673
- },
47674
- {
47675
- name: 'secrecyLevel',
47676
- prop: 'properties.secrecyLevel',
47677
- display: true,
47678
- type: 'custom',
47679
- template: 'common.components.coloredSecrecyLevel',
47680
- headerClass: 'gdoc:secrecyLevel',
47681
- defaultVisible: true,
47682
- minWidth: 150,
47683
- },
47684
- {
47685
- name: 'tags',
47686
- prop: 'properties.tags',
47687
- display: true,
47688
- type: 'custom',
47689
- template: 'common.components.tags',
47690
- translatePrefix: 'search.buckets',
47691
- isOrginalKey: true,
47692
- sortable: false,
47693
- headerClass: 'ecm:tag',
47694
- defaultVisible: false,
47695
- minWidth: 150,
47696
- },
47697
- {
47698
- name: 'importance',
47699
- prop: 'properties.importance',
47700
- display: true,
47701
- translatePrefix: 'search.buckets',
47702
- type: 'custom',
47703
- template: 'rms.components.TranslatedValueColumn',
47704
- sortable: true,
47705
- isOrginalKey: true,
47706
- headerClass: 'gdoc:importance',
47707
- defaultVisible: false,
47708
- },
47709
- {
47710
- name: 'date_created',
47711
- prop: 'properties.created',
47712
- display: true,
47713
- type: 'custom',
47714
- template: 'common.components.dateWithoutTime',
47715
- headerClass: 'dc:created',
47716
- defaultVisible: false,
47717
- minWidth: 150,
47718
- },
47719
- {
47720
- name: 'docDate',
47721
- prop: 'properties.gdocumentDate',
47722
- display: true,
47723
- type: 'custom',
47724
- template: 'common.components.dateWithoutTime',
47725
- headerClass: 'gdoc:gDocumentDate',
47726
- defaultVisible: false,
47727
- },
47728
- {
47729
- name: 'retentionType',
47730
- prop: 'properties.saveTypee',
47731
- display: true,
47732
- translatePrefix: 'search.buckets',
47733
- type: 'custom',
47734
- template: 'rms.components.TranslatedValueColumn',
47735
- headerClass: 'retentioninfo:saveTypee',
47736
- defaultVisible: false,
47737
- },
47738
- {
47739
- name: 'retentioninfoStatus',
47740
- prop: 'properties.retentioninfoStatus',
47741
- display: true,
47742
- translatePrefix: 'search.buckets',
47743
- type: 'custom',
47744
- template: 'rms.components.TranslatedValueColumn',
47745
- headerClass: 'retentioninfo:status',
47746
- defaultVisible: false,
47747
- },
47748
- {
47749
- name: 'activeRetentionStartDateHijri',
47750
- prop: 'properties.activeRetentionStartDateHijri',
47751
- display: false,
47752
- type: 'custom',
47753
- template: 'common.components.hijri',
47754
- headerClass: 'retentioninfo:activeRetentionStartDateHijri',
47755
- defaultVisible: false,
47756
- },
47757
- {
47758
- name: 'activeRetentionEndDateHijri',
47759
- prop: 'properties.activeRetentionEndDateHijri',
47760
- display: false,
47761
- type: 'custom',
47762
- template: 'common.components.hijri',
47763
- headerClass: 'retentioninfo:activeRetentionEndDateHijri',
47764
- defaultVisible: false,
47765
- },
47766
- {
47767
- name: 'retentionEndDateHijri',
47768
- prop: 'properties.retentionEndDateHijri',
47769
- display: false,
47770
- type: 'custom',
47771
- template: 'common.components.hijri',
47772
- headerClass: 'retentioninfo:retentionEndDateHijri',
47773
- defaultVisible: true,
47774
- },
47775
- {
47776
- name: 'site',
47777
- prop: 'properties.site',
47778
- display: false,
47779
- type: 'custom',
47780
- template: 'common.components.site',
47781
- headerClass: 'locRef:site',
47782
- defaultVisible: true,
47783
- },
47784
- {
47785
- name: 'store',
47786
- prop: 'properties.store',
47787
- display: false,
47788
- type: 'custom',
47789
- template: 'common.components.store',
47790
- headerClass: 'locRef:store',
47791
- defaultVisible: true,
47792
- },
47793
- {
47794
- name: 'Box',
47795
- prop: 'properties.box',
47796
- display: false,
47797
- type: 'custom',
47798
- template: 'common.components.box',
47799
- headerClass: 'locRef:boxCode',
47800
- defaultVisible: true,
47801
- },
47802
- ],
47803
- columnsWithDynamicDisplay: [
47804
- 'activeRetentionStartDateHijri',
47805
- 'activeRetentionEndDateHijri',
47806
- 'retentionEndDateHijri',
47807
- 'site',
47808
- 'store',
47809
- 'Box',
47810
- ],
47811
- };
47812
- var REPORTS_DATA = {
47813
- request: {
47814
- pageProvider: 'PP_RPT_Expected_TransferArchive_Records',
47815
- customUrl: {
47816
- url: '/custom-search/pp/PP_RPT_Expected_TransferArchive_Records/execute',
47817
- method: 'post',
47818
- },
47819
- params: {
47820
- pageSize: 1,
47821
- },
47822
- },
47823
- filters: {
47824
- mode: 'payload',
47825
- visible: true,
47826
- togglePanel: true,
47827
- fields: [
47828
- {
47829
- type: 'aggregation',
47830
- config: {
47831
- label: 'rmAdvancedSearch.gdocCategoryHierarchyCode',
47832
- aggregation: 'generaldocument_categoryHierarchyCode_agg',
47833
- fieldKey: 'gdoc:categoryHierarchyCode',
47834
- dataTransformer: 'subject',
47835
- order: 0,
47836
- sendMode: 'queryParam',
47837
- valueType: 'property',
47838
- render: {
47839
- type: 'checkbox',
47840
- options: {
47841
- showTotal: true,
47842
- },
47843
- },
47844
- },
47845
- },
47846
- {
47847
- type: 'aggregation',
47848
- config: {
47849
- label: 'rmAdvancedSearch.gdocCategoryHierarchyCode1',
47850
- aggregation: 'generaldocument_categoryHierarchyCode_1_agg',
47851
- fieldKey: 'gdoc:categoryHierarchyCode__1',
47852
- order: 0,
47853
- sendMode: 'queryParam',
47854
- valueType: 'property',
47855
- dataTransformer: 'subject',
47856
- render: {
47857
- type: 'checkbox',
47858
- options: {
47859
- showTotal: true,
47860
- collapse: true,
47861
- },
47862
- },
47863
- },
47864
- },
47865
- ],
47866
- },
47867
- reports: {
47868
- details: {
47869
- enabled: true,
47870
- prefix: 'LISTING.',
47871
- // quickFilters: 'After Archiving',
47872
- columnsOptions: {
47873
- toggle: true,
47874
- sortable: {
47875
- enabled: true,
47876
- },
47877
- },
47878
- request: {
47879
- headers: {
47880
- properties: 'dublincore, file, generaldocument, RecordDefinition,retentioninfo',
47881
- },
47882
- },
47883
- fields: {
47884
- title: 'dc:title',
47885
- subject: 'gdoc:documentSubject',
47886
- docTypee: 'gdoc:documentTypeCode',
47887
- secrecyLevel: 'gdoc:secrecyLevel',
47888
- docTypeId: 'documenttypee:documentTypeId',
47889
- created: 'dc:created',
47890
- department: 'department',
47891
- file: 'file:content',
47892
- systemName: 'recdef:systemName',
47893
- docNum: 'gdoc:documentReferenceNumber',
47894
- physicalOriginal: 'recdef:physicalOriginal',
47895
- gdocumentDate: 'gdoc:gDocumentDate',
47896
- importance: 'gdoc:importance',
47897
- unifiedNumber: 'recdef:unifiedNumber',
47898
- creator: 'dc:creator',
47899
- saveTypee: 'retentioninfo:saveTypee',
47900
- },
47901
- columns: [
47902
- {
47903
- name: 'Doc_Name',
47904
- prop: 'properties.title',
47905
- display: true,
47906
- type: 'custom',
47907
- template: 'common.components.titleWithIcon',
47908
- sortable: true,
47909
- headerClass: 'dc:title',
47910
- defaultVisible: true,
47911
- },
47912
- {
47913
- name: 'systemName',
47914
- prop: 'properties.systemName',
47915
- display: true,
47916
- type: 'custom',
47917
- template: 'common.components.systemName',
47918
- translatePrefix: 'search.buckets',
47919
- isOrginalKey: true,
47920
- sortable: false,
47921
- headerClass: 'recdef:systemName',
47922
- defaultVisible: true,
47923
- },
47924
- {
47925
- name: 'Doc_RefernceNum',
47926
- prop: 'properties.docNum',
47927
- display: true,
47928
- type: 'text',
47929
- sortable: true,
47930
- headerClass: 'gdoc:documentReferenceNumber',
47931
- defaultVisible: true,
47932
- },
47933
- {
47934
- name: 'Doc_Type',
47935
- prop: 'properties.docTypee',
47936
- display: true,
47937
- template: 'common.components.documentType',
47938
- type: 'custom',
47939
- headerClass: 'gdoc:documentTypeCode',
47940
- defaultVisible: false,
47941
- },
47942
- {
47943
- name: 'retentionType',
47944
- prop: 'properties.saveTypee',
47945
- display: true,
47946
- type: 'text',
47947
- translatePrefix: 'vocabulary.VOC_SaveType',
47948
- headerClass: 'retentioninfo:saveTypee',
47949
- defaultVisible: false,
47950
- },
47951
- {
47952
- name: 'physicalOriginal',
47953
- prop: 'properties.physicalOriginal',
47954
- display: true,
47955
- type: 'custom',
47956
- template: 'rms.components.TranslatedValueColumn',
47957
- translatePrefix: 'rmDocumentUpload.hasPhysicalOriginal',
47958
- isBooleanValue: true,
47959
- sortable: false,
47960
- headerClass: 'recdef:physicalOriginal',
47961
- defaultVisible: false,
47962
- },
47963
- {
47964
- name: 'mainTopic',
47965
- prop: 'properties.subject',
47966
- display: true,
47967
- type: 'text',
47968
- headerClass: 'gdoc:documentSubject',
47969
- defaultVisible: false,
47970
- },
47971
- {
47972
- name: 'docDate',
47973
- prop: 'properties.gdocumentDate',
47974
- display: true,
47975
- type: 'custom',
47976
- template: 'common.components.dateWithoutTime',
47977
- headerClass: 'gdoc:gDocumentDate',
47978
- defaultVisible: true,
47979
- },
47980
- {
47981
- name: 'secrecyLevel',
47982
- prop: 'properties.secrecyLevel',
47983
- display: true,
47984
- type: 'custom',
47985
- template: 'common.components.coloredSecrecyLevel',
47986
- headerClass: 'gdoc:secrecyLevel',
47987
- defaultVisible: true,
47988
- },
47989
- {
47990
- name: 'importance',
47991
- prop: 'properties.importance',
47992
- display: true,
47993
- translatePrefix: 'search.buckets',
47994
- type: 'custom',
47995
- template: 'rms.components.TranslatedValueColumn',
47996
- sortable: true,
47997
- isOrginalKey: true,
47998
- headerClass: 'gdoc:importance',
47999
- },
48000
- {
48001
- name: 'unifiedNumber',
48002
- prop: 'properties.unifiedNumber',
48003
- display: true,
48004
- type: 'text',
48005
- sortable: true,
48006
- headerClass: 'recdef:unifiedNumber',
48007
- },
48008
- {
48009
- name: 'docDate',
48010
- prop: 'properties.created',
48011
- display: true,
48012
- type: 'custom',
48013
- template: 'common.components.dateWithoutTime',
48014
- headerClass: 'dc:created',
48015
- defaultVisible: false,
48016
- },
48017
- {
48018
- name: 'creator',
48019
- prop: 'properties.creator',
48020
- display: true,
48021
- type: 'text',
48022
- sortable: true,
48023
- headerClass: 'dc:creator',
48024
- defaultVisible: false,
48025
- },
48026
- {
48027
- name: 'documentType',
48028
- prop: 'properties.docTypeId',
48029
- display: true,
48030
- type: 'custom',
48031
- template: 'common.components.documentType',
48032
- headerClass: 'gdoc:documentTypeCode',
48033
- defaultVisible: false,
48034
- },
48035
- {
48036
- name: 'orgUnit',
48037
- prop: 'department.title',
48038
- display: true,
48039
- type: 'custom',
48040
- template: 'common.components.departement',
48041
- headerClass: 'recdef:departmentCode',
48042
- sortable: false,
48043
- defaultVisible: false,
48044
- },
48045
- ],
48046
- },
48047
- items: [
48048
- {
48049
- id: 'resultsCount',
48050
- label: 'REPORTS.resultsCount',
48051
- mode: 'digit',
48052
- datasource: {
48053
- propertyPath: 'resultsCount',
48054
- },
48055
- },
48056
- {
48057
- id: 'future__gdocCategoryHierarchyCode',
48058
- label: 'REPORTS.gdocCategoryHierarchyCode',
48059
- mode: 'graph',
48060
- print: true,
48061
- dialog: {
48062
- active: true,
48063
- },
48064
- details: {
48065
- enabled: true,
48066
- },
48067
- datasource: [
48068
- {
48069
- propertyPath: 'aggregations.generaldocument_categoryHierarchyCode_agg.buckets',
48070
- dataFormat: 'subject',
48071
- transformer: 'reduceData',
48072
- },
48073
- ],
48074
- chart: {
48075
- type: 'pie',
48076
- plugins: [
48077
- 'chartDataLabels',
48078
- 'scrollableLegends',
48079
- 'doughnutEmptyState',
48080
- ],
48081
- },
48082
- },
48083
- {
48084
- id: 'future__generaldocument_categoryHierarchyCode_1_agg',
48085
- label: 'REPORTS.gdocCategoryHierarchyCode1',
48086
- mode: 'graph',
48087
- print: true,
48088
- dialog: {
48089
- active: true,
48090
- },
48091
- details: {
48092
- enabled: true,
48093
- },
48094
- datasource: [
48095
- {
48096
- propertyPath: 'aggregations.generaldocument_categoryHierarchyCode_1_agg.buckets',
48097
- dataFormat: 'subject',
48098
- transformer: 'reduceData',
48099
- },
48100
- ],
48101
- chart: {
48102
- type: 'doughnut',
48103
- plugins: [
48104
- 'chartDataLabels',
48105
- 'scrollableLegends',
48106
- 'doughnutEmptyState',
48107
- ],
48108
- },
48109
- },
48110
- {
48111
- id: 'future__generaldocument_secrecyLevel_agg',
48112
- label: 'REPORTS.gdocSecrecyLevel',
48113
- mode: 'graph',
48114
- print: true,
48115
- dialog: {
48116
- active: true,
48117
- },
48118
- prefix: 'search.buckets.',
48119
- details: {
48120
- enabled: true,
48121
- },
48122
- datasource: [
48123
- {
48124
- propertyPath: 'aggregations.generaldocument_secrecyLevel_agg.buckets',
48125
- transformer: 'reduceData',
48126
- },
48127
- ],
48128
- chart: {
48129
- type: 'bar',
48130
- options: {
48131
- indexAxis: 'y',
48132
- responsive: true,
48133
- maintainAspectRatio: false,
48134
- scales: {
48135
- x: {
48136
- ticks: {
48137
- stepSize: 1,
48138
- },
48139
- grid: {
48140
- color: '#eee',
48141
- },
48142
- },
48143
- y: {
48144
- ticks: {
48145
- precision: 0,
48146
- stepSize: 1,
48147
- color: '#000',
48148
- crossAlign: 'far',
48149
- callback: function (_, index) {
48150
- var label = "" + this.getLabels()[index];
48151
- var maxLength = 18;
48152
- return (label === null || label === void 0 ? void 0 : label.length) > maxLength
48153
- ? label.substring(0, maxLength) + '...'
48154
- : label;
48155
- },
48156
- },
48157
- grid: {
48158
- color: '#000',
48159
- },
48160
- },
48161
- },
48162
- plugins: {
48163
- legend: {
48164
- display: false,
48165
- },
48166
- },
48167
- },
48168
- plugins: [
48169
- 'chartDataLabels',
48170
- 'scrollableLegends',
48171
- 'doughnutEmptyState',
48172
- ],
48173
- },
48174
- },
48175
- {
48176
- id: 'future__RetentionInfo_saveTypee_agg',
48177
- label: 'REPORTS.rinfoSaveTypee',
48178
- mode: 'graph',
48179
- print: true,
48180
- prefix: 'search.buckets.',
48181
- details: {
48182
- enabled: true,
48183
- },
48184
- datasource: [
48185
- {
48186
- propertyPath: 'aggregations.RetentionInfo_saveTypee_agg.buckets',
48187
- transformer: 'reduceData',
48188
- },
48189
- ],
48190
- chart: {
48191
- type: 'pie',
48192
- plugins: [
48193
- 'chartDataLabels',
48194
- 'scrollableLegends',
48195
- 'doughnutEmptyState',
48196
- ],
48197
- },
48198
- },
48199
- {
48200
- mode: 'dynamicLine',
48201
- id: 'late_RetentionInfo_activeRetentionExpireDate_agg',
48202
- label: 'REPORTS.expectedTransferDate',
48203
- print: true,
48204
- dialog: {
48205
- active: true,
48206
- },
48207
- details: {
48208
- enabled: true,
48209
- },
48210
- request: {
48211
- pageProvider: 'PP_RPT_Expected_TransferArchive_Records',
48212
- customUrl: {
48213
- url: '/custom-search/pp/PP_RPT_Expected_TransferArchive_Records/execute',
48214
- method: 'post',
48215
- },
48216
- },
48217
- datasource: [
48218
- {
48219
- aggregation: 'RetentionInfo_activeRetentionExpireDate_agg',
48220
- propertyPath: 'aggregations.RetentionInfo_activeRetentionExpireDate_agg.buckets',
48221
- transformer: 'timeFormat',
48222
- },
48223
- ],
48224
- chart: {
48225
- type: 'line',
48226
- options: {
48227
- layout: {
48228
- padding: {
48229
- right: 40,
48230
- left: 40,
48231
- },
48232
- },
48233
- },
48234
- datasets: [
48235
- {
48236
- borderWidth: 2,
48237
- borderColor: '#000',
48238
- pointBorderWidth: 0,
48239
- pointBackgroundColor: '#000',
48240
- },
48241
- ],
48242
- },
48243
- },
48244
- {
48245
- id: 'future__RecordDefinition_systemName_agg',
48246
- label: 'REPORTS.rdSystemName',
48247
- mode: 'graph',
48248
- print: true,
48249
- dialog: {
48250
- active: true,
48251
- },
48252
- prefix: 'search.buckets.',
48253
- details: {
48254
- enabled: true,
48255
- },
48256
- datasource: [
48257
- {
48258
- propertyPath: 'aggregations.RecordDefinition_systemName_agg.buckets',
48259
- transformer: 'reduceData',
48260
- },
48261
- ],
48262
- chart: {
48263
- type: 'bar',
48264
- direction: 'vertical',
48265
- plugins: [
48266
- 'chartDataLabels',
48267
- 'scrollableLegends',
48268
- 'doughnutEmptyState',
48269
- ],
48270
- },
48271
- },
48272
- ],
48273
- },
48274
- };
48275
-
48276
47069
  var DataAccessService = /** @class */ (function (_super) {
48277
47070
  __extends(DataAccessService, _super);
48278
- function DataAccessService() {
48279
- return _super !== null && _super.apply(this, arguments) || this;
47071
+ function DataAccessService(injector) {
47072
+ return _super.call(this, injector) || this;
48280
47073
  }
48281
- DataAccessService.prototype.getData = function (key, type) {
48282
- if (type == NDF_EDITOR_TYPE.REPORTS) {
48283
- return rxjs.of(JSON.stringify(REPORTS_DATA, null, 2));
48284
- }
48285
- return rxjs.of(JSON.stringify(TABLE_DATA, null, 2));
48286
- };
48287
- DataAccessService.prototype.saveData = function (key, data) {
48288
- return rxjs.of(JSON.stringify(TABLE_DATA, null, 2));
47074
+ DataAccessService.prototype.saveData = function (payload) {
47075
+ return this.customAutomation({
47076
+ operation: 'AC_UA_Create_UI_Configuration',
47077
+ context: payload
47078
+ });
48289
47079
  };
48290
47080
  return DataAccessService;
48291
- }(BaseService));
48292
- DataAccessService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DataAccessService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
47081
+ }(BaseEditorConfigService));
47082
+ DataAccessService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DataAccessService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
48293
47083
  DataAccessService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DataAccessService, providedIn: 'root' });
48294
47084
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DataAccessService, decorators: [{
48295
47085
  type: i0.Injectable,
48296
47086
  args: [{
48297
47087
  providedIn: 'root'
48298
47088
  }]
48299
- }] });
47089
+ }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
47090
+
47091
+ var METADATA_EDITOR_OPTIONS = new i0.InjectionToken('METADATA_EDITOR_CONFIG');
48300
47092
 
48301
47093
  var DataStoreService = /** @class */ (function () {
48302
- function DataStoreService(dataAccessService) {
47094
+ function DataStoreService(dataAccessService, environment, options) {
48303
47095
  this.dataAccessService = dataAccessService;
47096
+ this.environment = environment;
47097
+ this.options = options;
48304
47098
  this._editorTypeSubject = new rxjs.BehaviorSubject(NDF_EDITOR_TYPE.TABLES);
48305
47099
  this.editorType$ = this._editorTypeSubject.asObservable();
48306
47100
  this._editorModeSubject = new rxjs.BehaviorSubject(CONFIG_EDITOR_MODE.EDIT);
@@ -48338,25 +47132,52 @@
48338
47132
  };
48339
47133
  DataStoreService.prototype.getData = function (key, type) {
48340
47134
  var _this = this;
48341
- return this.dataAccessService.getData(key, type).pipe(operators.switchMap(function (data) {
48342
- _this._dataSubject.next(data);
47135
+ var _a, _b;
47136
+ var metadata = ((_a = this.options) === null || _a === void 0 ? void 0 : _a[type]) || {};
47137
+ return this.dataAccessService
47138
+ .fetchData({
47139
+ app: (_b = this.environment) === null || _b === void 0 ? void 0 : _b.appKey,
47140
+ key: key,
47141
+ type: type,
47142
+ localPath: metadata === null || metadata === void 0 ? void 0 : metadata.localPath
47143
+ })
47144
+ .pipe(operators.switchMap(function (res) {
47145
+ var _a, _b;
47146
+ if ((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.config) {
47147
+ var data = JSON.stringify((_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.config, null, 2);
47148
+ _this._dataSubject.next(data || '{\n"key": "value"\n}');
47149
+ }
48343
47150
  return _this.editorData$;
48344
47151
  }));
48345
47152
  };
48346
- DataStoreService.prototype.saveData = function (key) {
47153
+ DataStoreService.prototype.saveData = function (key, type) {
47154
+ var _a;
48347
47155
  var data = this._dataSubject.getValue();
48348
- return this.dataAccessService.saveData(key, data);
47156
+ return this.dataAccessService.saveData({
47157
+ app: (_a = this.environment) === null || _a === void 0 ? void 0 : _a.appKey,
47158
+ key: key,
47159
+ type: type,
47160
+ content: data
47161
+ });
48349
47162
  };
48350
47163
  DataStoreService.prototype.storeData = function (data) {
48351
47164
  this._dataSubject.next(data);
48352
47165
  };
48353
47166
  return DataStoreService;
48354
47167
  }());
48355
- DataStoreService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DataStoreService, deps: [{ token: DataAccessService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
47168
+ DataStoreService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DataStoreService, deps: [{ token: DataAccessService }, { token: 'environment' }, { token: METADATA_EDITOR_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
48356
47169
  DataStoreService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DataStoreService });
48357
47170
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DataStoreService, decorators: [{
48358
47171
  type: i0.Injectable
48359
- }], ctorParameters: function () { return [{ type: DataAccessService }]; } });
47172
+ }], ctorParameters: function () {
47173
+ return [{ type: DataAccessService }, { type: undefined, decorators: [{
47174
+ type: i0.Inject,
47175
+ args: ['environment']
47176
+ }] }, { type: undefined, decorators: [{
47177
+ type: i0.Inject,
47178
+ args: [METADATA_EDITOR_OPTIONS]
47179
+ }] }];
47180
+ } });
48360
47181
 
48361
47182
  // monaco-loader.service.ts
48362
47183
  var MonacoLoaderService = /** @class */ (function () {
@@ -48808,7 +47629,7 @@
48808
47629
 
48809
47630
  var NdfConfigEditorComponent = /** @class */ (function (_super) {
48810
47631
  __extends(NdfConfigEditorComponent, _super);
48811
- function NdfConfigEditorComponent(environment, dataStore, configService, matDialog, location) {
47632
+ function NdfConfigEditorComponent(environment, dataStore, configService, matDialog, location, toastrService) {
48812
47633
  var _this = this;
48813
47634
  var _a;
48814
47635
  _this = _super.call(this) || this;
@@ -48817,6 +47638,7 @@
48817
47638
  _this.configService = configService;
48818
47639
  _this.matDialog = matDialog;
48819
47640
  _this.location = location;
47641
+ _this.toastrService = toastrService;
48820
47642
  _this.isEditorHasErrors = false;
48821
47643
  _this._defaultEditorOptions = {
48822
47644
  value: "",
@@ -48845,7 +47667,7 @@
48845
47667
  var _this = this;
48846
47668
  this._dataKeySubject
48847
47669
  .pipe(operators.switchMap(function (key) { return _this.dataStore.getData(key, _this.metadata.type); }), operators.takeUntil(this.destroy$))
48848
- .subscribe(function (res) { });
47670
+ .subscribe();
48849
47671
  };
48850
47672
  NdfConfigEditorComponent.prototype.onDataChanged = function (data) {
48851
47673
  this.dataStore.storeData(data);
@@ -48854,7 +47676,13 @@
48854
47676
  this.isEditorHasErrors = hasErrors;
48855
47677
  };
48856
47678
  NdfConfigEditorComponent.prototype.saveData = function () {
48857
- this.dataStore.saveData(this.metadata.key);
47679
+ var _this = this;
47680
+ this.dataStore
47681
+ .saveData(this.metadata.key, this.metadata.type)
47682
+ .pipe(operators.takeUntil(this.destroy$))
47683
+ .subscribe(function (res) {
47684
+ _this.toastrService.show('success', 'TOASTER.SUCCESS', 'JSON_EDITOR.MESSAGES.dataSaved');
47685
+ });
48858
47686
  };
48859
47687
  NdfConfigEditorComponent.prototype.navigateBack = function () {
48860
47688
  this.location.back();
@@ -48900,7 +47728,7 @@
48900
47728
  };
48901
47729
  return NdfConfigEditorComponent;
48902
47730
  }(DestroySubject));
48903
- NdfConfigEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfConfigEditorComponent, deps: [{ token: 'environment' }, { token: DataStoreService }, { token: AppConfigService }, { token: i1__namespace$3.MatDialog }, { token: i4__namespace$1.Location }], target: i0__namespace.ɵɵFactoryTarget.Component });
47731
+ NdfConfigEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfConfigEditorComponent, deps: [{ token: 'environment' }, { token: DataStoreService }, { token: AppConfigService }, { token: i1__namespace$3.MatDialog }, { token: i4__namespace$1.Location }, { token: CustomToastrService }], target: i0__namespace.ɵɵFactoryTarget.Component });
48904
47732
  NdfConfigEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: NdfConfigEditorComponent, selector: "app-ndf-config-editor", inputs: { metadata: "metadata", theme: "theme", options: "options" }, providers: [DataStoreService], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"config?.enabled && isFeatureEnabled; else emptyTpl\">\r\n\t<div class=\"ndf-config-editor\" ndfFluidHeight *permission=\"{ name: config?.types[metadata?.type]?.permission }\">\r\n\t\t<div class=\"ndf-config-editor__sidebar\">\r\n\t\t\t<app-editor-settings class=\"ndf-config-editor__setting\"></app-editor-settings>\r\n\t\t\t<app-config-editor-actions\r\n\t\t\t\tappItemHeight\r\n\t\t\t\tcssVar=\"--ndf-editor-actions-height\"\r\n\t\t\t\t[saveDisabled]=\"isEditorHasErrors || !(dataStore.editorData | isValidJson)\"\r\n\t\t\t\t[config]=\"config?.types[metadata?.type]\"\r\n\t\t\t\t(onInfo)=\"openInfoDialog($event)\"\r\n\t\t\t\t(onBack)=\"navigateBack()\"\r\n\t\t\t\t(onSave)=\"saveData()\"\r\n\t\t\t>\r\n\t\t\t</app-config-editor-actions>\r\n\t\t</div>\r\n\t\t<div class=\"ndf-config-editor__content\">\r\n\t\t\t<div class=\"ndf-config-editor__topbar\">\r\n\t\t\t\t<app-editor-mode-switch\r\n\t\t\t\t\t[mode]=\"dataStore.editorMode\"\r\n\t\t\t\t\t(changeMode)=\"dataStore.changeMode($event)\"\r\n\t\t\t\t></app-editor-mode-switch>\r\n\t\t\t</div>\r\n\t\t\t<app-config-preview\r\n\t\t\t\t*ngIf=\"dataStore.editorMode === modes.PREVIEW\"\r\n [type]=\"dataStore.editorType$ | async\"\r\n\t\t\t\t[data]=\"previewData$ | async\"\r\n\t\t\t></app-config-preview>\r\n\t\t\t<ndf-monaco-editor\r\n\t\t\t\t*ngIf=\"dataStore.editorMode === modes.EDIT\"\r\n\t\t\t\t[value]=\"editorData$ | async\"\r\n\t\t\t\t[options]=\"options$ | async\"\r\n\t\t\t\t[theme]=\"theme$ | async\"\r\n\t\t\t\t(valueChange)=\"onDataChanged($event)\"\r\n\t\t\t\t(hasError)=\"onEditorErrors($event)\"\r\n\t\t\t\t(onInit)=\"onEditorReady($event)\"\r\n\t\t\t></ndf-monaco-editor>\r\n\t\t</div>\r\n\t</div>\r\n</ng-container>\r\n\r\n<ng-template #emptyTpl>\r\n\t<div class=\"ndf-empty-config\">\r\n\t\t<app-no-data-found message=\"JSON_EDITOR.MESSAGES.notAllowed\"></app-no-data-found>\r\n\t</div>\r\n</ng-template>\r\n", styles: [":host{display:var(--ndf-config-wrapper-display, flex);flex-direction:var(--ndf-config-wrapper-direction, column);grid-gap:var(--ndf-config-wrapper-gap, .5rem);gap:var(--ndf-config-wrapper-gap, .5rem);flex-grow:1;height:var(--ndf-config-wrapper-height, 100%)}.ndf-empty-config{justify-content:center;align-items:center}.ndf-empty-config,.ndf-config-editor{padding:var(--ndf-editor-padding, 1rem);background-color:var(--ndf-editor-background-color, #fff);color:var(--ndf-editor-color);border-radius:var(--ndf-editor-border-radius, .5rem);display:flex;flex-grow:1;max-height:var(--ndf-fluid-height, 100%)}.ndf-config-editor{grid-gap:var(--ndf-editor--gap, 1rem);gap:var(--ndf-editor--gap, 1rem)}.ndf-config-editor__sidebar{width:var(--ndf-editor-sidebar-width, 18rem);background:var(--ndf-editor-sidebar-background);border:var(--ndf-editor-sidebars-border, 0px solid transparent);border-radius:var(--ndf-editor-sidebar-radius, 0rem);display:grid;grid-template-rows:var(--ndf-editor-sidebar-rows, 1fr auto)}.ndf-config-editor__content{flex-grow:1;background:var(--ndf-editor-content-background);border:var(--ndf-editor-content-border, 0px solid transparent);border-radius:var(--ndf-editor-content-radius, 0rem);display:flex;flex-direction:column;grid-gap:var(--ndf-editor-content-gap, 1rem);gap:var(--ndf-editor-content-gap, 1rem)}.ndf-config-editor__topbar{display:var(--ndf-editor-topbar-display, flex);justify-content:var(--ndf-editor-topbar-justify-content, flex-end)}.ndf-config-editor__setting{max-height:var(--ndf-editor-content-max-height, calc(var(--ndf-fluid-height) - var(--ndf-editor-actions-height, 125px) - 2.5rem));overflow:auto}\n"], components: [{ type: EditorSettingsComponent, selector: "app-editor-settings" }, { type: ConfigEditorActionsComponent, selector: "app-config-editor-actions", inputs: ["saveDisabled", "config"], outputs: ["onSave", "onInfo", "onBack"] }, { type: EditorModeSwitchComponent, selector: "app-editor-mode-switch", inputs: ["mode"], outputs: ["changeMode"] }, { type: ConfigPreviewComponent, selector: "app-config-preview", inputs: ["type", "data"] }, { type: MonacoEditorComponent, selector: "ndf-monaco-editor", inputs: ["value", "options", "theme", "model"], outputs: ["onInit", "hasError", "valueChange"] }, { type: NoDataFoundComponent, selector: "app-no-data-found", inputs: ["message", "width", "height"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: PermissionsDirective, selector: "[permission]", inputs: ["permission"] }, { type: FluidHeightDirective, selector: "[ndfFluidHeight]", inputs: ["minHeight", "ndfFluidHeight", "subtractItems", "decrease", "delay", "cssVar", "calculate", "inlineStyle"], exportAs: ["ndfFluidHeight"] }, { type: ElementHeightDirective, selector: "[appItemHeight]", inputs: ["cssVar", "calculate", "inlineStyle"], exportAs: ["appItemHeight"] }], pipes: { "isValidJson": IsValidJsonPipe, "async": i4__namespace$1.AsyncPipe } });
48905
47733
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfConfigEditorComponent, decorators: [{
48906
47734
  type: i0.Component,
@@ -48914,7 +47742,7 @@
48914
47742
  return [{ type: undefined, decorators: [{
48915
47743
  type: i0.Inject,
48916
47744
  args: ['environment']
48917
- }] }, { type: DataStoreService }, { type: AppConfigService }, { type: i1__namespace$3.MatDialog }, { type: i4__namespace$1.Location }];
47745
+ }] }, { type: DataStoreService }, { type: AppConfigService }, { type: i1__namespace$3.MatDialog }, { type: i4__namespace$1.Location }, { type: CustomToastrService }];
48918
47746
  }, propDecorators: { metadata: [{
48919
47747
  type: i0.Input
48920
47748
  }], theme: [{
@@ -49072,6 +47900,7 @@
49072
47900
  exports.BaseDatePicker = BaseDatePicker;
49073
47901
  exports.BaseDateValueAccessor = BaseDateValueAccessor;
49074
47902
  exports.BaseDialogComponent = BaseDialogComponent;
47903
+ exports.BaseEditorConfigService = BaseEditorConfigService;
49075
47904
  exports.BaseNodeClass = BaseNodeClass;
49076
47905
  exports.BaseSelector = BaseSelector;
49077
47906
  exports.BaseService = BaseService;
@@ -49318,6 +48147,7 @@
49318
48147
  exports.MAT_MOMENT_DATE_ADAPTER_OPTIONS = MAT_MOMENT_DATE_ADAPTER_OPTIONS;
49319
48148
  exports.MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY = MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY;
49320
48149
  exports.MESSAGE_TYPE = MESSAGE_TYPE;
48150
+ exports.METADATA_EDITOR_OPTIONS = METADATA_EDITOR_OPTIONS;
49321
48151
  exports.MIN_VISIBLE_COUNT = MIN_VISIBLE_COUNT;
49322
48152
  exports.MONACO_EDITOR_CONFIG = MONACO_EDITOR_CONFIG;
49323
48153
  exports.MY_MOMENT_FORMATS = MY_MOMENT_FORMATS;
@@ -49427,6 +48257,7 @@
49427
48257
  exports.RemoveButtonComponent = RemoveButtonComponent;
49428
48258
  exports.RenameComponent = RenameComponent;
49429
48259
  exports.ReportConfigMapperService = ReportConfigMapperService;
48260
+ exports.ReportDetailsService = ReportDetailsService;
49430
48261
  exports.ReportTransformService = ReportTransformService;
49431
48262
  exports.ReportsDataTransformers = ReportsDataTransformers;
49432
48263
  exports.ReportsStateService = ReportsStateService;