nuxeo-development-framework 5.5.1 → 5.5.3
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.
- package/bundles/nuxeo-development-framework.umd.js +162 -56
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/ndf-config-editor/constants/index.js +2 -2
- package/esm2015/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.js +73 -22
- package/esm2015/lib/components/reports/ndf-reports/models/details.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/models/ndf-reports.config.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/ndf-reports.module.js +15 -3
- package/esm2015/lib/components/reports/ndf-reports/services/index.js +2 -1
- package/esm2015/lib/components/reports/ndf-reports/services/report-configuration.service.js +41 -0
- package/esm2015/lib/components/reports/ndf-reports/utilities/reports-table.mapper.js +7 -7
- package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +7 -7
- package/esm2015/lib/components/tables/ndf-table/models/table-column.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/models/table-options.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/services/ndf-table.service.js +2 -2
- package/esm2015/lib/shared/constants/editor-config-type.js +5 -0
- package/esm2015/lib/shared/constants/index.js +2 -0
- package/esm2015/lib/shared/index.js +2 -1
- package/esm2015/lib/shared/services/base/base-editor-config.service.js +1 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/nuxeo-development-framework.js +151 -51
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/ndf-config-editor/constants/index.d.ts +1 -1
- package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +11 -7
- package/lib/components/reports/ndf-reports/models/details.d.ts +5 -1
- package/lib/components/reports/ndf-reports/models/ndf-reports.config.d.ts +0 -2
- package/lib/components/reports/ndf-reports/services/index.d.ts +1 -0
- package/lib/components/reports/ndf-reports/services/report-configuration.service.d.ts +14 -0
- package/lib/components/tables/ndf-table/models/table-column.d.ts +1 -0
- package/lib/components/tables/ndf-table/models/table-options.d.ts +1 -1
- package/lib/shared/constants/index.d.ts +1 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/services/base/base-editor-config.service.d.ts +3 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/esm2015/lib/components/ndf-config-editor/constants/type.js +0 -5
- /package/lib/{components/ndf-config-editor/constants/type.d.ts → shared/constants/editor-config-type.d.ts} +0 -0
|
@@ -20335,6 +20335,11 @@
|
|
|
20335
20335
|
escape: /\{\{\{([\s\S]+?)\}\}\}/g
|
|
20336
20336
|
};
|
|
20337
20337
|
|
|
20338
|
+
var NDF_EDITOR_TYPE = {
|
|
20339
|
+
REPORTS: 'report',
|
|
20340
|
+
TABLES: 'table'
|
|
20341
|
+
};
|
|
20342
|
+
|
|
20338
20343
|
var BaseField = /** @class */ (function (_super) {
|
|
20339
20344
|
__extends(BaseField, _super);
|
|
20340
20345
|
function BaseField() {
|
|
@@ -21521,21 +21526,6 @@
|
|
|
21521
21526
|
}
|
|
21522
21527
|
];
|
|
21523
21528
|
|
|
21524
|
-
var CONFIG_EDITOR_MODE = {
|
|
21525
|
-
EDIT: 'edit',
|
|
21526
|
-
PREVIEW: 'preview'
|
|
21527
|
-
};
|
|
21528
|
-
|
|
21529
|
-
var NDF_EDITOR_TYPE = {
|
|
21530
|
-
REPORTS: 'report',
|
|
21531
|
-
TABLES: 'table'
|
|
21532
|
-
};
|
|
21533
|
-
|
|
21534
|
-
var PARAMS_KEYS = {
|
|
21535
|
-
TYPE: 'type',
|
|
21536
|
-
KEY: 'key',
|
|
21537
|
-
};
|
|
21538
|
-
|
|
21539
21529
|
var DynamicTableService = /** @class */ (function () {
|
|
21540
21530
|
function DynamicTableService() {
|
|
21541
21531
|
this.refreshData = new i0.EventEmitter();
|
|
@@ -22284,7 +22274,7 @@
|
|
|
22284
22274
|
headers: request === null || request === void 0 ? void 0 : request.headers,
|
|
22285
22275
|
queryParams: request === null || request === void 0 ? void 0 : request.params,
|
|
22286
22276
|
payload: payload
|
|
22287
|
-
}).pipe(operators.map(function (res) { return ("" + (res === null || res === void 0 ? void 0 : res.
|
|
22277
|
+
}).pipe(operators.map(function (res) { return ("" + (res === null || res === void 0 ? void 0 : res.Status)).toLowerCase() === 'success'; }));
|
|
22288
22278
|
};
|
|
22289
22279
|
return NdfTableService;
|
|
22290
22280
|
}(BaseService));
|
|
@@ -22332,6 +22322,16 @@
|
|
|
22332
22322
|
|
|
22333
22323
|
var PROJECT_BASE_HREF = new i0.InjectionToken('PROJECT_BASE_HREF');
|
|
22334
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
|
+
|
|
22335
22335
|
var EditorButtonComponent = /** @class */ (function () {
|
|
22336
22336
|
function EditorButtonComponent(environment, router, baseAppUrl, configService) {
|
|
22337
22337
|
var _a;
|
|
@@ -22698,7 +22698,7 @@
|
|
|
22698
22698
|
return;
|
|
22699
22699
|
}
|
|
22700
22700
|
var columns = this._displayedColumnsSub.getValue();
|
|
22701
|
-
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); });
|
|
22702
22702
|
var headers = columns.map(function (col) { return (_this.tableConfig.prefix || '') + col.name; });
|
|
22703
22703
|
var criteria = this._customCriteriaSub.getValue();
|
|
22704
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);
|
|
@@ -22723,10 +22723,10 @@
|
|
|
22723
22723
|
payload.reportMetaData.headers = headers.map(function (col) { return ___default["default"].get(currentTranslations, col); });
|
|
22724
22724
|
payload.reportMetaData.blobName = ___default["default"].get(translations['ar'], blobNameKey);
|
|
22725
22725
|
payload.reportMetaData.blobNameEn = ___default["default"].get(translations['en'], blobNameKey);
|
|
22726
|
-
return _this._ngTableService.exportTable(request, payload)
|
|
22727
|
-
|
|
22728
|
-
|
|
22729
|
-
|
|
22726
|
+
return _this._ngTableService.exportTable(request, payload).pipe(operators.catchError(function (_) {
|
|
22727
|
+
_this._toastrService.error('TABLE.EXPORT.RequestError');
|
|
22728
|
+
return rxjs.of(false);
|
|
22729
|
+
}));
|
|
22730
22730
|
}), operators.filter(Boolean), operators.takeUntil(this.destroy$))
|
|
22731
22731
|
.subscribe(function (res) {
|
|
22732
22732
|
if (res) {
|
|
@@ -45574,6 +45574,46 @@
|
|
|
45574
45574
|
}]
|
|
45575
45575
|
}], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }]; } });
|
|
45576
45576
|
|
|
45577
|
+
var ReportConfigurationService = /** @class */ (function (_super) {
|
|
45578
|
+
__extends(ReportConfigurationService, _super);
|
|
45579
|
+
function ReportConfigurationService(injector) {
|
|
45580
|
+
var _this = _super.call(this, injector) || this;
|
|
45581
|
+
_this.injector = injector;
|
|
45582
|
+
return _this;
|
|
45583
|
+
}
|
|
45584
|
+
ReportConfigurationService.prototype.getTableConfiguration = function (key, localPath) {
|
|
45585
|
+
var _a;
|
|
45586
|
+
return this.fetchData({
|
|
45587
|
+
key: key,
|
|
45588
|
+
type: NDF_EDITOR_TYPE.TABLES,
|
|
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
|
+
ReportConfigurationService.prototype.getReportsConfiguration = function (key, localPath) {
|
|
45597
|
+
var _a;
|
|
45598
|
+
return this.fetchData({
|
|
45599
|
+
key: key,
|
|
45600
|
+
type: NDF_EDITOR_TYPE.REPORTS,
|
|
45601
|
+
app: (_a = this.environment) === null || _a === void 0 ? void 0 : _a.appKey,
|
|
45602
|
+
localPath: localPath
|
|
45603
|
+
}).pipe(operators.map(function (res) {
|
|
45604
|
+
var _a;
|
|
45605
|
+
return (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.config;
|
|
45606
|
+
}));
|
|
45607
|
+
};
|
|
45608
|
+
return ReportConfigurationService;
|
|
45609
|
+
}(BaseEditorConfigService));
|
|
45610
|
+
ReportConfigurationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ReportConfigurationService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
45611
|
+
ReportConfigurationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ReportConfigurationService, providedIn: 'root' });
|
|
45612
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ReportConfigurationService, decorators: [{
|
|
45613
|
+
type: i0.Injectable,
|
|
45614
|
+
args: [{ providedIn: 'root' }]
|
|
45615
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
|
|
45616
|
+
|
|
45577
45617
|
var DigitChartComponent = /** @class */ (function (_super) {
|
|
45578
45618
|
__extends(DigitChartComponent, _super);
|
|
45579
45619
|
function DigitChartComponent() {
|
|
@@ -46550,15 +46590,15 @@
|
|
|
46550
46590
|
}] } });
|
|
46551
46591
|
|
|
46552
46592
|
function mapToNdfTableConfig(report, details) {
|
|
46553
|
-
var _a, _b, _c, _d
|
|
46593
|
+
var _a, _b, _c, _d;
|
|
46554
46594
|
var _request = report.request;
|
|
46555
|
-
var _detailsConfig =
|
|
46595
|
+
var _detailsConfig = details.source;
|
|
46556
46596
|
var customUrl = ___default["default"].merge({
|
|
46557
46597
|
url: "/api/v1" + (_request === null || _request === void 0 ? void 0 : _request.customUrl.url),
|
|
46558
46598
|
method: _request === null || _request === void 0 ? void 0 : _request.customUrl.method
|
|
46559
|
-
}, ((
|
|
46560
|
-
var _headers = ((
|
|
46561
|
-
var _queryParam = ((
|
|
46599
|
+
}, ((_a = _detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.request) === null || _a === void 0 ? void 0 : _a.customUrl) || {});
|
|
46600
|
+
var _headers = ((_b = _detailsConfig.request) === null || _b === void 0 ? void 0 : _b.headers) || _request.headers || {};
|
|
46601
|
+
var _queryParam = ((_c = _detailsConfig.request) === null || _c === void 0 ? void 0 : _c.params) || _request.params || {};
|
|
46562
46602
|
var _sortingBy = ___default["default"].merge({
|
|
46563
46603
|
sortBy: 'dc:modified',
|
|
46564
46604
|
sortOrder: 'desc'
|
|
@@ -46588,7 +46628,7 @@
|
|
|
46588
46628
|
queryParam: _queryParam,
|
|
46589
46629
|
quickFilters: _detailsConfig.quickFilters,
|
|
46590
46630
|
sortingBy: _sortingBy,
|
|
46591
|
-
requestActions: (
|
|
46631
|
+
requestActions: (_d = _detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.request) === null || _d === void 0 ? void 0 : _d.actions
|
|
46592
46632
|
};
|
|
46593
46633
|
return data;
|
|
46594
46634
|
}
|
|
@@ -46672,7 +46712,7 @@
|
|
|
46672
46712
|
]);
|
|
46673
46713
|
var NdfReportsComponent = /** @class */ (function (_super) {
|
|
46674
46714
|
__extends(NdfReportsComponent, _super);
|
|
46675
|
-
function NdfReportsComponent(_translateService, _filtersMapper, _ndfReportsService, _chartHelperService, _transformService, _cdr, _filterQueryService, _stateService, _router, _ngZone) {
|
|
46715
|
+
function NdfReportsComponent(_translateService, _filtersMapper, _ndfReportsService, _chartHelperService, _transformService, _cdr, _filterQueryService, _stateService, _configurationService, _router, _ngZone) {
|
|
46676
46716
|
var _this = _super.call(this) || this;
|
|
46677
46717
|
_this._translateService = _translateService;
|
|
46678
46718
|
_this._filtersMapper = _filtersMapper;
|
|
@@ -46682,6 +46722,7 @@
|
|
|
46682
46722
|
_this._cdr = _cdr;
|
|
46683
46723
|
_this._filterQueryService = _filterQueryService;
|
|
46684
46724
|
_this._stateService = _stateService;
|
|
46725
|
+
_this._configurationService = _configurationService;
|
|
46685
46726
|
_this._router = _router;
|
|
46686
46727
|
_this._ngZone = _ngZone;
|
|
46687
46728
|
_this._isHeightUpdated = false;
|
|
@@ -46719,25 +46760,6 @@
|
|
|
46719
46760
|
enumerable: false,
|
|
46720
46761
|
configurable: true
|
|
46721
46762
|
});
|
|
46722
|
-
Object.defineProperty(NdfReportsComponent.prototype, "config", {
|
|
46723
|
-
get: function () {
|
|
46724
|
-
return this._configSubject.getValue();
|
|
46725
|
-
},
|
|
46726
|
-
set: function (config) {
|
|
46727
|
-
var value = ___default["default"].cloneDeep(config);
|
|
46728
|
-
this._checkConfigChange(value);
|
|
46729
|
-
this._configSubject.next(value);
|
|
46730
|
-
if (value === null || value === void 0 ? void 0 : value.activeQuery) {
|
|
46731
|
-
this._updateActiveQuery(value === null || value === void 0 ? void 0 : value.activeQuery);
|
|
46732
|
-
this._filtersCriteriaSubject.next(this._prepareMappedQuery(value === null || value === void 0 ? void 0 : value.activeQuery, this.filtersConfig.mode));
|
|
46733
|
-
}
|
|
46734
|
-
this.isPanelOpened = false;
|
|
46735
|
-
this.isDetailsOpened = false;
|
|
46736
|
-
this._reportDetailsSubject.next(null);
|
|
46737
|
-
},
|
|
46738
|
-
enumerable: false,
|
|
46739
|
-
configurable: true
|
|
46740
|
-
});
|
|
46741
46763
|
Object.defineProperty(NdfReportsComponent.prototype, "filtersConfig", {
|
|
46742
46764
|
get: function () {
|
|
46743
46765
|
var _a;
|
|
@@ -46754,10 +46776,34 @@
|
|
|
46754
46776
|
enumerable: false,
|
|
46755
46777
|
configurable: true
|
|
46756
46778
|
});
|
|
46779
|
+
Object.defineProperty(NdfReportsComponent.prototype, "config", {
|
|
46780
|
+
get: function () {
|
|
46781
|
+
return this._configSubject.getValue();
|
|
46782
|
+
},
|
|
46783
|
+
set: function (config) {
|
|
46784
|
+
this._config = config;
|
|
46785
|
+
},
|
|
46786
|
+
enumerable: false,
|
|
46787
|
+
configurable: true
|
|
46788
|
+
});
|
|
46757
46789
|
NdfReportsComponent.prototype.ngOnInit = function () {
|
|
46758
46790
|
this.reportsData$ = this._prepareReports();
|
|
46759
46791
|
this._handleKeyboardEvent();
|
|
46760
46792
|
};
|
|
46793
|
+
NdfReportsComponent.prototype.ngOnChanges = function (changes) {
|
|
46794
|
+
var _a, _b;
|
|
46795
|
+
var reportsKey = (_a = changes.reportsKey) === null || _a === void 0 ? void 0 : _a.currentValue;
|
|
46796
|
+
var config = (_b = changes.config) === null || _b === void 0 ? void 0 : _b.currentValue;
|
|
46797
|
+
if (reportsKey && config) {
|
|
46798
|
+
throw new Error('You cannot set both reportsKey and reports Config at the same time.');
|
|
46799
|
+
}
|
|
46800
|
+
if (config) {
|
|
46801
|
+
this._initReportsConfig(config);
|
|
46802
|
+
}
|
|
46803
|
+
if (reportsKey) {
|
|
46804
|
+
this._loadReportsConfig(reportsKey);
|
|
46805
|
+
}
|
|
46806
|
+
};
|
|
46761
46807
|
NdfReportsComponent.prototype.onNavigate = function (data) {
|
|
46762
46808
|
var _a, _b, _c;
|
|
46763
46809
|
var report = data === null || data === void 0 ? void 0 : data.report;
|
|
@@ -46808,10 +46854,34 @@
|
|
|
46808
46854
|
this.fluidDirective.scheduleSetHeight(100);
|
|
46809
46855
|
}
|
|
46810
46856
|
};
|
|
46811
|
-
NdfReportsComponent.prototype.openReportDetails = function (
|
|
46812
|
-
this
|
|
46813
|
-
|
|
46814
|
-
|
|
46857
|
+
NdfReportsComponent.prototype.openReportDetails = function (criteriaModel, reportConfig) {
|
|
46858
|
+
var _this = this;
|
|
46859
|
+
var _a, _b;
|
|
46860
|
+
if (!((_a = reportConfig === null || reportConfig === void 0 ? void 0 : reportConfig.details) === null || _a === void 0 ? void 0 : _a.enabled)) {
|
|
46861
|
+
return;
|
|
46862
|
+
}
|
|
46863
|
+
var source = (_b = reportConfig === null || reportConfig === void 0 ? void 0 : reportConfig.details) === null || _b === void 0 ? void 0 : _b.source;
|
|
46864
|
+
var config$ = source && typeof source === 'string'
|
|
46865
|
+
? this._configurationService.getTableConfiguration(source).pipe(operators.map(function (config) {
|
|
46866
|
+
return ___default["default"].merge(config, {
|
|
46867
|
+
options: {
|
|
46868
|
+
filters: {
|
|
46869
|
+
mode: 'payload',
|
|
46870
|
+
fields: [],
|
|
46871
|
+
panel: {
|
|
46872
|
+
visible: false,
|
|
46873
|
+
toggleButton: false
|
|
46874
|
+
}
|
|
46875
|
+
}
|
|
46876
|
+
}
|
|
46877
|
+
});
|
|
46878
|
+
}))
|
|
46879
|
+
: rxjs.of(mapToNdfTableConfig(this.config, reportConfig.details));
|
|
46880
|
+
config$.pipe(operators.takeUntil(this.destroy$)).subscribe(function (config) {
|
|
46881
|
+
_this._reportDetailsSubject.next({
|
|
46882
|
+
config: config,
|
|
46883
|
+
label: reportConfig.label
|
|
46884
|
+
});
|
|
46815
46885
|
});
|
|
46816
46886
|
};
|
|
46817
46887
|
NdfReportsComponent.prototype.closeDetailsPanel = function () {
|
|
@@ -46910,10 +46980,33 @@
|
|
|
46910
46980
|
var _a = this._configSubject.getValue() || {}, aq = _a.activeQuery, currentConfig = __rest(_a, ["activeQuery"]);
|
|
46911
46981
|
this._isConfigChanged = !___default["default"].isEqual(currentConfig, config);
|
|
46912
46982
|
};
|
|
46983
|
+
NdfReportsComponent.prototype._loadReportsConfig = function (key) {
|
|
46984
|
+
var _this = this;
|
|
46985
|
+
this._configurationService
|
|
46986
|
+
.getReportsConfiguration(key)
|
|
46987
|
+
.pipe(operators.takeUntil(this.destroy$))
|
|
46988
|
+
.subscribe(function (config) {
|
|
46989
|
+
if (config) {
|
|
46990
|
+
_this._initReportsConfig(config);
|
|
46991
|
+
}
|
|
46992
|
+
});
|
|
46993
|
+
};
|
|
46994
|
+
NdfReportsComponent.prototype._initReportsConfig = function (config) {
|
|
46995
|
+
var value = ___default["default"].cloneDeep(config);
|
|
46996
|
+
this._checkConfigChange(value);
|
|
46997
|
+
this._configSubject.next(value);
|
|
46998
|
+
if (value === null || value === void 0 ? void 0 : value.activeQuery) {
|
|
46999
|
+
this._updateActiveQuery(value === null || value === void 0 ? void 0 : value.activeQuery);
|
|
47000
|
+
this._filtersCriteriaSubject.next(this._prepareMappedQuery(value === null || value === void 0 ? void 0 : value.activeQuery, this.filtersConfig.mode));
|
|
47001
|
+
}
|
|
47002
|
+
this.isPanelOpened = false;
|
|
47003
|
+
this.isDetailsOpened = false;
|
|
47004
|
+
this._reportDetailsSubject.next(null);
|
|
47005
|
+
};
|
|
46913
47006
|
return NdfReportsComponent;
|
|
46914
47007
|
}(DestroySubject));
|
|
46915
|
-
NdfReportsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfReportsComponent, deps: [{ token: i1__namespace.TranslateService }, { token: FiltersMapperService }, { token: NdfReportsService }, { token: ChartManagerService }, { token: ReportTransformService }, { token: i0__namespace.ChangeDetectorRef }, { token: FilterQueryService }, { token: ReportsStateService }, { token: i1__namespace$5.Router }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
46916
|
-
NdfReportsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: NdfReportsComponent, selector: "app-ndf-reports", inputs: { jsonEditorEnabled: "jsonEditorEnabled", reportsKey: "reportsKey", navigateRoute: "navigateRoute", config: "config" }, outputs: { onQueryChange: "onQueryChange" }, host: { properties: { "dir": "direction" }, classAttribute: "ndf-reports" }, viewQueries: [{ propertyName: "fluidDirective", first: true, predicate: FluidHeightDirective, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<div\r\n\t*ngIf=\"reportsData$ | async as reports\"\r\n\tclass=\"ndf-reports__container\"\r\n\t[class.panel-opened]=\"isPanelOpened && filtersConfig\"\r\n\t[dir]=\"direction\"\r\n\tndfFluidHeight\r\n>\r\n\t<div class=\"ndf-reports__panel print:hidden\" *ngIf=\"!!filtersConfig?.fields?.length\">\r\n\t\t<app-filters-panel\r\n\t\t\t[fields]=\"filtersConfig?.fields\"\r\n\t\t\t[aggregations]=\"aggregations\"\r\n\t\t\t(filterChanged)=\"filterChanged($event)\"\r\n\t\t\t[activeQuery]=\"activeFiltersQuery$ | async\"\r\n\t\t\tclass=\"ndf-reports__filters\"\r\n\t\t></app-filters-panel>\r\n\t</div>\r\n\r\n\t<div class=\"ndf-reports__content\" (scrolled)=\"onContentScroll($event)\">\r\n\t\t<div class=\"ndf-reports__header flex pt-4 print:hidden\">\r\n\t\t\t<button mat-stroked-button class=\"toggle-button\" (click)=\"togglePanel()\">\r\n\t\t\t\t<mat-icon> filter_alt</mat-icon>\r\n\t\t\t</button>\r\n\t\t\t<app-editor-button\r\n\t\t\t\t*ngIf=\"jsonEditorEnabled && reportsKey\"\r\n\t\t\t\t[key]=\"reportsKey\"\r\n\t\t\t\t[type]=\"editorType\"\r\n\t\t\t></app-editor-button>\r\n\t\t\t<button mat-stroked-button *ngIf=\"config?.options?.print\" class=\"print-button\" (click)=\"printAll()\">\r\n\t\t\t\t<mat-icon> print</mat-icon>\r\n\t\t\t</button>\r\n\t\t</div>\r\n\t\t<mat-spinner *ngIf=\"isLoadingResult\" class=\"mt-5 mx-auto\" [diameter]=\"48\"></mat-spinner>\r\n\r\n\t\t<div class=\"reports-grid\" *ngIf=\"!isLoadingResult\">\r\n\t\t\t<app-ndf-report\r\n\t\t\t\t*ngFor=\"let config of reportConfig.items; trackBy: trackByFn\"\r\n\t\t\t\t[config]=\"config\"\r\n\t\t\t\t[data]=\"reports?.response\"\r\n\t\t\t\t[criteria]=\"filtersParams$ | async\"\r\n\t\t\t\t[direction]=\"direction\"\r\n\t\t\t\t[attr.data-width]=\"config?.layout?.width || 4\"\r\n\t\t\t\t[attr.data-height]=\"config?.layout?.height || 'auto'\"\r\n\t\t\t\t[attr.data-start-column]=\"config?.layout?.columnPosition || 'auto'\"\r\n\t\t\t\t[attr.data-start-row]=\"config?.layout?.rowPosition || 'auto'\"\r\n\t\t\t\t[class.wide]=\"config?.layout?.width >= 6\"\r\n\t\t\t\tclass=\"reports-grid__item {{ config?.layout?.styleClass }} \"\r\n\t\t\t\t(onNavigate)=\"onNavigate($event)\"\r\n\t\t\t\t(onOpen)=\"openReportDetails($event, config)\"\r\n\t\t\t></app-ndf-report>\r\n\t\t</div>\r\n\t</div>\r\n\t<div\r\n\t\tclass=\"ndf-reports__details print:hidden\"\r\n\t\t[class.opened]=\"showDetails\"\r\n\t\t[@slideInOut]=\"showDetails ? 'open' : 'closed'\"\r\n\t\t(@slideInOut.done)=\"onDetailsAnimationEnd($event)\"\r\n\t>\r\n\t\t<app-ndf-table\r\n\t\t\t*ngIf=\"reportDetails$ | async as report\"\r\n\t\t\t[config]=\"report.config\"\r\n\t\t\t[activeQuery]=\"activeFiltersQuery$ | async\"\r\n\t\t\t[customCriteria]=\"filtersParams$ | async\"\r\n\t\t>\r\n\t\t\t<ng-template searchTableTemplate>\r\n\t\t\t\t<div class=\"ndf-reports__details__header flex gap-2\">\r\n\t\t\t\t\t<button mat-stroked-button class=\"toggle-button\" (click)=\"togglePanel()\">\r\n\t\t\t\t\t\t<mat-icon> filter_alt</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t<button mat-stroked-button class=\"close-button\" (click)=\"closeDetailsPanel()\">\r\n\t\t\t\t\t\t<mat-icon> close</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\t\t\t\t<h3>\r\n\t\t\t\t\t{{ report.label | translate }}\r\n\t\t\t\t</h3>\r\n\t\t\t</ng-template>\r\n\t\t</app-ndf-table>\r\n\t</div>\r\n</div>\r\n", styles: [":host{padding-inline:var(--ndf-reports-inline-padding, 0);padding-block:var(--ndf-reports-block-padding, .5rem 0);height:100%;position:relative;display:flex;flex-direction:column;background-color:var(--ndf-reports-background, #fff);box-sizing:border-box;max-width:100%;flex:0 0 100%}:host:before,:host:after{box-sizing:border-box}:host[dir=ltr]{--ndf-reports-panel-translateX: -100%;--ndf-reports-details-translateX: 100%}.ndf-reports__header{background-color:var(--ndf-reports-background, #fff);flex-direction:var(--ndf-reports-header-direction, row);justify-content:var(--ndf-reports-header-justify, space-between);align-items:var(--ndf-reports-header-items, center);padding-inline:var(--ndf-reports-header-padding-inline, .5rem);padding-block:var(--ndf-reports-header-padding-block, 0 .5rem);position:var(--ndf-reports-header-position, sticky);top:0;z-index:1}.ndf-reports__header__actions{justify-content:var(--ndf-reports-actions-justify, flex-end)}.ndf-reports__header__custom-actions .toggle-button{min-width:0;padding:0 10px}.ndf-reports__container{--panel-width: var(--ndf-reports-panel-width, 18rem);position:relative;overflow:var(--ndf-reports-container-overflow, hidden);display:grid;transition:all .2s;max-width:100%;width:100%;height:var(--ndf-reports-height, calc(var(--ndf-fluid-height) - calc(var(--ndf-reports-block-padding, 1rem) * 2.5)));flex-grow:1;grid-gap:var(--ndf-table-container-gap, .5rem);gap:var(--ndf-table-container-gap, .5rem)}.ndf-reports__container.panel-opened{--ndf-details-margin: var(--panel-width);--ndf-reports-panel-translateX: 0;--ndf-reports-content-margin: var(--panel-width)}@media print{.ndf-reports__container{--ndf-reports-container-overflow: visible;height:100%}}.ndf-reports__panel,.ndf-reports__content .ndf-reports__details{overflow:auto;transition:all .2s}.ndf-reports__panel{position:absolute;width:var(--panel-width);height:100%;transform:translate(var(--ndf-reports-panel-translateX, 100%));padding-inline:var(--ndf-reports-panel-inline-padding, .5rem);padding-block:var(--ndf-reports-panel-block-padding, .5rem);background:var(--ndf-reports-panel-background, #fff);z-index:1}.ndf-reports__content{flex-grow:1;padding-inline-start:var(--ndf-reports-content-margin, 1rem);padding-inline-end:var(--ndf-reports-content-pie, 1rem);padding-block:var(--ndf-reports-content-pb, 0 1rem);overflow-y:var(--ndf-reports-content-overflow-y, auto);position:relative;display:flex;flex-direction:column}@media print{.ndf-reports__content{--ndf-reports-content-overflow-y: visible}}.ndf-reports__details{position:absolute;inset-inline-end:0;width:calc(100% - var(--ndf-details-margin, 0px));height:100%;transform:translate(var(--ndf-reports-details-translateX, -100%));padding-inline:var(--ndf-reports-details-inline-padding, 0rem);flex-grow:1;padding-block:var(--ndf-reports-details-block-padding, 0rem);background:var(--ndf-reports-details-background, #fff);z-index:1;transition:all .2s}.reports-grid{--grid-columns: 12;--column-width: calc(100% / var(--grid-columns));display:grid;grid-gap:var(--reports-grid-gap, 1.5rem);gap:var(--reports-grid-gap, 1.5rem);grid-template-columns:var(--rg-columns, repeat(var(--grid-columns), 1fr));margin-block:var(--reports-grid-margin-block, 1.25rem 0);padding-inline:var(--reports-grid-padding-inline, .5rem)}.reports-grid__item{display:grid;grid-gap:.3rem;gap:.3rem;min-width:0;text-align:center;vertical-align:middle}.reports-grid__item[data-width=\"1\"]{--col-span: span 1}.reports-grid__item[data-start-column=\"1\"]{--col-start: 1}.reports-grid__item[data-start-row=\"1\"]{--row-start: 1}.reports-grid__item[data-height=\"1\"]{--row-span: 1}.reports-grid__item[data-width=\"2\"]{--col-span: span 2}.reports-grid__item[data-start-column=\"2\"]{--col-start: 2}.reports-grid__item[data-start-row=\"2\"]{--row-start: 2}.reports-grid__item[data-height=\"2\"]{--row-span: 2}.reports-grid__item[data-width=\"3\"]{--col-span: span 3}.reports-grid__item[data-start-column=\"3\"]{--col-start: 3}.reports-grid__item[data-start-row=\"3\"]{--row-start: 3}.reports-grid__item[data-height=\"3\"]{--row-span: 3}.reports-grid__item[data-width=\"4\"]{--col-span: span 4}.reports-grid__item[data-start-column=\"4\"]{--col-start: 4}.reports-grid__item[data-start-row=\"4\"]{--row-start: 4}.reports-grid__item[data-height=\"4\"]{--row-span: 4}.reports-grid__item[data-width=\"5\"]{--col-span: span 5}.reports-grid__item[data-start-column=\"5\"]{--col-start: 5}.reports-grid__item[data-start-row=\"5\"]{--row-start: 5}.reports-grid__item[data-height=\"5\"]{--row-span: 5}.reports-grid__item[data-width=\"6\"]{--col-span: span 6}.reports-grid__item[data-start-column=\"6\"]{--col-start: 6}.reports-grid__item[data-start-row=\"6\"]{--row-start: 6}.reports-grid__item[data-height=\"6\"]{--row-span: 6}.reports-grid__item[data-width=\"7\"]{--col-span: span 7}.reports-grid__item[data-start-column=\"7\"]{--col-start: 7}.reports-grid__item[data-start-row=\"7\"]{--row-start: 7}.reports-grid__item[data-height=\"7\"]{--row-span: 7}.reports-grid__item[data-width=\"8\"]{--col-span: span 8}.reports-grid__item[data-start-column=\"8\"]{--col-start: 8}.reports-grid__item[data-start-row=\"8\"]{--row-start: 8}.reports-grid__item[data-height=\"8\"]{--row-span: 8}.reports-grid__item[data-width=\"9\"]{--col-span: span 9}.reports-grid__item[data-start-column=\"9\"]{--col-start: 9}.reports-grid__item[data-start-row=\"9\"]{--row-start: 9}.reports-grid__item[data-height=\"9\"]{--row-span: 9}.reports-grid__item[data-width=\"10\"]{--col-span: span 10}.reports-grid__item[data-start-column=\"10\"]{--col-start: 10}.reports-grid__item[data-start-row=\"10\"]{--row-start: 10}.reports-grid__item[data-height=\"10\"]{--row-span: 10}.reports-grid__item[data-width=\"11\"]{--col-span: span 11}.reports-grid__item[data-start-column=\"11\"]{--col-start: 11}.reports-grid__item[data-start-row=\"11\"]{--row-start: 11}.reports-grid__item[data-height=\"11\"]{--row-span: 11}.reports-grid__item[data-width=\"12\"]{--col-span: span 12}.reports-grid__item[data-start-column=\"12\"]{--col-start: 12}.reports-grid__item[data-start-row=\"12\"]{--row-start: 12}.reports-grid__item[data-height=\"12\"]{--row-span: 12}@media screen{.reports-grid__item{grid-column:var(--col-start, auto)/var(--col-span, span var(--grid-column, 2));grid-row:var(--row-start, auto)/span var(--row-span, 1);grid-template-rows:subgrid}}@media print{.reports-grid{--reports-grid-gap: 11mm;--reports-grid-margin-top: 9mm;--rg-columns: repeat(2, 1fr)}.reports-grid__item{--col-start: auto;--col-span: span 1;border:1px solid #f5f5f5;border-radius:var(--cp-radius, 1rem);page-break-inside:avoid;break-inside:avoid-page}}@media screen and (max-width: 1199px){.reports-grid__item[data-width=\"1\"]{--col-start: auto;--col-span: span 6}.reports-grid__item[data-width=\"2\"]{--col-start: auto;--col-span: span 6}.reports-grid__item[data-width=\"3\"]{--col-start: auto;--col-span: span 6}.reports-grid__item[data-width=\"4\"]{--col-start: auto;--col-span: span 6}.reports-grid__item[data-width=\"5\"]{--col-start: auto;--col-span: span 6}.reports-grid__item[data-width=\"6\"]{--col-start: auto;--col-span: span 6}.reports-grid__item.wide{--col-start: 1;--col-span: -1}}@media screen and (max-width: 767px){.reports-grid__item[data-width]{--col-start: 1;--col-span: -1}}\n"], components: [{ type: FiltersPanelComponent, selector: "app-filters-panel", inputs: ["aggregations", "fields", "activeQuery"], outputs: ["filterChanged"] }, { 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"] }, { type: EditorButtonComponent, selector: "app-editor-button", inputs: ["type", "key"] }, { type: i3__namespace$1.MatSpinner, selector: "mat-spinner", inputs: ["color"] }, { type: NdfReportComponent, selector: "app-ndf-report", inputs: ["config", "direction", "data", "criteria"], outputs: ["onNavigate", "onOpen"] }, { type: NdfTableComponent, selector: "app-ndf-table", inputs: ["rows", "totalRecords", "autoCalculateHeight", "emptyMessage", "activeQuery", "configPath", "configTransformer", "tableKey", "jsonEditorEnabled", "config", "customCriteria", "searchTerm"], outputs: ["onRowSelected", "onRowIndexSelected", "actionOnRow", "onGettingData", "onMultiRowSelected", "onLoading", "onPage", "onInitialized", "onLoaded", "onQueryChange", "onSort"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: FluidHeightDirective, selector: "[ndfFluidHeight]", inputs: ["minHeight", "ndfFluidHeight", "subtractItems", "decrease", "delay", "cssVar", "calculate", "inlineStyle"], exportAs: ["ndfFluidHeight"] }, { type: i4__namespace.Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { type: ScrollableDivDirective, selector: "[scrolled]", inputs: ["scrollTop"], outputs: ["scrolled"] }, { type: i4__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: SearchTableTemplateDirective, selector: "[searchTableTemplate]" }], pipes: { "async": i4__namespace$1.AsyncPipe, "translate": i1__namespace.TranslatePipe }, animations: [slideAnimation] });
|
|
47008
|
+
NdfReportsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfReportsComponent, deps: [{ token: i1__namespace.TranslateService }, { token: FiltersMapperService }, { token: NdfReportsService }, { token: ChartManagerService }, { token: ReportTransformService }, { token: i0__namespace.ChangeDetectorRef }, { token: FilterQueryService }, { token: ReportsStateService }, { token: ReportConfigurationService }, { token: i1__namespace$5.Router }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
47009
|
+
NdfReportsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: NdfReportsComponent, selector: "app-ndf-reports", inputs: { jsonEditorEnabled: "jsonEditorEnabled", reportsKey: "reportsKey", navigateRoute: "navigateRoute", config: "config" }, outputs: { onQueryChange: "onQueryChange" }, host: { properties: { "dir": "direction" }, classAttribute: "ndf-reports" }, viewQueries: [{ propertyName: "fluidDirective", first: true, predicate: FluidHeightDirective, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div\r\n\t*ngIf=\"reportsData$ | async as reports\"\r\n\tclass=\"ndf-reports__container\"\r\n\t[class.panel-opened]=\"isPanelOpened && filtersConfig\"\r\n\t[dir]=\"direction\"\r\n\tndfFluidHeight\r\n>\r\n\t<div class=\"ndf-reports__panel print:hidden\" *ngIf=\"!!filtersConfig?.fields?.length\">\r\n\t\t<app-filters-panel\r\n\t\t\t[fields]=\"filtersConfig?.fields\"\r\n\t\t\t[aggregations]=\"aggregations\"\r\n\t\t\t(filterChanged)=\"filterChanged($event)\"\r\n\t\t\t[activeQuery]=\"activeFiltersQuery$ | async\"\r\n\t\t\tclass=\"ndf-reports__filters\"\r\n\t\t></app-filters-panel>\r\n\t</div>\r\n\r\n\t<div class=\"ndf-reports__content\" (scrolled)=\"onContentScroll($event)\">\r\n\t\t<div class=\"ndf-reports__header flex pt-4 print:hidden\">\r\n\t\t\t<button mat-stroked-button class=\"toggle-button\" (click)=\"togglePanel()\">\r\n\t\t\t\t<mat-icon> filter_alt</mat-icon>\r\n\t\t\t</button>\r\n\t\t\t<app-editor-button\r\n\t\t\t\t*ngIf=\"jsonEditorEnabled && reportsKey\"\r\n\t\t\t\t[key]=\"reportsKey\"\r\n\t\t\t\t[type]=\"editorType\"\r\n\t\t\t></app-editor-button>\r\n\t\t\t<button mat-stroked-button *ngIf=\"config?.options?.print\" class=\"print-button\" (click)=\"printAll()\">\r\n\t\t\t\t<mat-icon> print</mat-icon>\r\n\t\t\t</button>\r\n\t\t</div>\r\n\t\t<mat-spinner *ngIf=\"isLoadingResult\" class=\"mt-5 mx-auto\" [diameter]=\"48\"></mat-spinner>\r\n\r\n\t\t<div class=\"reports-grid\" *ngIf=\"!isLoadingResult\">\r\n\t\t\t<app-ndf-report\r\n\t\t\t\t*ngFor=\"let config of reportConfig.items; trackBy: trackByFn\"\r\n\t\t\t\t[config]=\"config\"\r\n\t\t\t\t[data]=\"reports?.response\"\r\n\t\t\t\t[criteria]=\"filtersParams$ | async\"\r\n\t\t\t\t[direction]=\"direction\"\r\n\t\t\t\t[attr.data-width]=\"config?.layout?.width || 4\"\r\n\t\t\t\t[attr.data-height]=\"config?.layout?.height || 'auto'\"\r\n\t\t\t\t[attr.data-start-column]=\"config?.layout?.columnPosition || 'auto'\"\r\n\t\t\t\t[attr.data-start-row]=\"config?.layout?.rowPosition || 'auto'\"\r\n\t\t\t\t[class.wide]=\"config?.layout?.width >= 6\"\r\n\t\t\t\tclass=\"reports-grid__item {{ config?.layout?.styleClass }} \"\r\n\t\t\t\t(onNavigate)=\"onNavigate($event)\"\r\n\t\t\t\t(onOpen)=\"openReportDetails($event, config)\"\r\n\t\t\t></app-ndf-report>\r\n\t\t</div>\r\n\t</div>\r\n\t<div\r\n\t\tclass=\"ndf-reports__details print:hidden\"\r\n\t\t[class.opened]=\"showDetails\"\r\n\t\t[@slideInOut]=\"showDetails ? 'open' : 'closed'\"\r\n\t\t(@slideInOut.done)=\"onDetailsAnimationEnd($event)\"\r\n\t>\r\n\t\t<app-ndf-table\r\n\t\t\t*ngIf=\"reportDetails$ | async as report\"\r\n\t\t\t[config]=\"report.config\"\r\n\t\t\t[activeQuery]=\"activeFiltersQuery$ | async\"\r\n\t\t\t[customCriteria]=\"filtersParams$ | async\"\r\n\t\t>\r\n\t\t\t<ng-template searchTableTemplate>\r\n\t\t\t\t<div class=\"ndf-reports__details__header flex gap-2\">\r\n\t\t\t\t\t<button mat-stroked-button class=\"toggle-button\" (click)=\"togglePanel()\">\r\n\t\t\t\t\t\t<mat-icon> filter_alt</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t<button mat-stroked-button class=\"close-button\" (click)=\"closeDetailsPanel()\">\r\n\t\t\t\t\t\t<mat-icon> close</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\t\t\t\t<h3>\r\n\t\t\t\t\t{{ report.label | translate }}\r\n\t\t\t\t</h3>\r\n\t\t\t</ng-template>\r\n\t\t</app-ndf-table>\r\n\t</div>\r\n</div>\r\n", styles: [":host{padding-inline:var(--ndf-reports-inline-padding, 0);padding-block:var(--ndf-reports-block-padding, .5rem 0);height:100%;position:relative;display:flex;flex-direction:column;background-color:var(--ndf-reports-background, #fff);box-sizing:border-box;max-width:100%;flex:0 0 100%}:host:before,:host:after{box-sizing:border-box}:host[dir=ltr]{--ndf-reports-panel-translateX: -100%;--ndf-reports-details-translateX: 100%}.ndf-reports__header{background-color:var(--ndf-reports-background, #fff);flex-direction:var(--ndf-reports-header-direction, row);justify-content:var(--ndf-reports-header-justify, space-between);align-items:var(--ndf-reports-header-items, center);padding-inline:var(--ndf-reports-header-padding-inline, .5rem);padding-block:var(--ndf-reports-header-padding-block, 0 .5rem);position:var(--ndf-reports-header-position, sticky);top:0;z-index:1}.ndf-reports__header__actions{justify-content:var(--ndf-reports-actions-justify, flex-end)}.ndf-reports__header__custom-actions .toggle-button{min-width:0;padding:0 10px}.ndf-reports__container{--panel-width: var(--ndf-reports-panel-width, 18rem);position:relative;overflow:var(--ndf-reports-container-overflow, hidden);display:grid;transition:all .2s;max-width:100%;width:100%;height:var(--ndf-reports-height, calc(var(--ndf-fluid-height) - calc(var(--ndf-reports-block-padding, 1rem) * 2.5)));flex-grow:1;grid-gap:var(--ndf-table-container-gap, .5rem);gap:var(--ndf-table-container-gap, .5rem)}.ndf-reports__container.panel-opened{--ndf-details-margin: var(--panel-width);--ndf-reports-panel-translateX: 0;--ndf-reports-content-margin: var(--panel-width)}@media print{.ndf-reports__container{--ndf-reports-container-overflow: visible;height:100%}}.ndf-reports__panel,.ndf-reports__content .ndf-reports__details{overflow:auto;transition:all .2s}.ndf-reports__panel{position:absolute;width:var(--panel-width);height:100%;transform:translate(var(--ndf-reports-panel-translateX, 100%));padding-inline:var(--ndf-reports-panel-inline-padding, .5rem);padding-block:var(--ndf-reports-panel-block-padding, .5rem);background:var(--ndf-reports-panel-background, #fff);z-index:1}.ndf-reports__content{flex-grow:1;padding-inline-start:var(--ndf-reports-content-margin, 1rem);padding-inline-end:var(--ndf-reports-content-pie, 1rem);padding-block:var(--ndf-reports-content-pb, 0 1rem);overflow-y:var(--ndf-reports-content-overflow-y, auto);position:relative;display:flex;flex-direction:column}@media print{.ndf-reports__content{--ndf-reports-content-overflow-y: visible}}.ndf-reports__details{position:absolute;inset-inline-end:0;width:calc(100% - var(--ndf-details-margin, 0px));height:100%;transform:translate(var(--ndf-reports-details-translateX, -100%));padding-inline:var(--ndf-reports-details-inline-padding, 0rem);flex-grow:1;padding-block:var(--ndf-reports-details-block-padding, 0rem);background:var(--ndf-reports-details-background, #fff);z-index:1;transition:all .2s}.reports-grid{--grid-columns: 12;--column-width: calc(100% / var(--grid-columns));display:grid;grid-gap:var(--reports-grid-gap, 1.5rem);gap:var(--reports-grid-gap, 1.5rem);grid-template-columns:var(--rg-columns, repeat(var(--grid-columns), 1fr));margin-block:var(--reports-grid-margin-block, 1.25rem 0);padding-inline:var(--reports-grid-padding-inline, .5rem)}.reports-grid__item{display:grid;grid-gap:.3rem;gap:.3rem;min-width:0;text-align:center;vertical-align:middle}.reports-grid__item[data-width=\"1\"]{--col-span: span 1}.reports-grid__item[data-start-column=\"1\"]{--col-start: 1}.reports-grid__item[data-start-row=\"1\"]{--row-start: 1}.reports-grid__item[data-height=\"1\"]{--row-span: 1}.reports-grid__item[data-width=\"2\"]{--col-span: span 2}.reports-grid__item[data-start-column=\"2\"]{--col-start: 2}.reports-grid__item[data-start-row=\"2\"]{--row-start: 2}.reports-grid__item[data-height=\"2\"]{--row-span: 2}.reports-grid__item[data-width=\"3\"]{--col-span: span 3}.reports-grid__item[data-start-column=\"3\"]{--col-start: 3}.reports-grid__item[data-start-row=\"3\"]{--row-start: 3}.reports-grid__item[data-height=\"3\"]{--row-span: 3}.reports-grid__item[data-width=\"4\"]{--col-span: span 4}.reports-grid__item[data-start-column=\"4\"]{--col-start: 4}.reports-grid__item[data-start-row=\"4\"]{--row-start: 4}.reports-grid__item[data-height=\"4\"]{--row-span: 4}.reports-grid__item[data-width=\"5\"]{--col-span: span 5}.reports-grid__item[data-start-column=\"5\"]{--col-start: 5}.reports-grid__item[data-start-row=\"5\"]{--row-start: 5}.reports-grid__item[data-height=\"5\"]{--row-span: 5}.reports-grid__item[data-width=\"6\"]{--col-span: span 6}.reports-grid__item[data-start-column=\"6\"]{--col-start: 6}.reports-grid__item[data-start-row=\"6\"]{--row-start: 6}.reports-grid__item[data-height=\"6\"]{--row-span: 6}.reports-grid__item[data-width=\"7\"]{--col-span: span 7}.reports-grid__item[data-start-column=\"7\"]{--col-start: 7}.reports-grid__item[data-start-row=\"7\"]{--row-start: 7}.reports-grid__item[data-height=\"7\"]{--row-span: 7}.reports-grid__item[data-width=\"8\"]{--col-span: span 8}.reports-grid__item[data-start-column=\"8\"]{--col-start: 8}.reports-grid__item[data-start-row=\"8\"]{--row-start: 8}.reports-grid__item[data-height=\"8\"]{--row-span: 8}.reports-grid__item[data-width=\"9\"]{--col-span: span 9}.reports-grid__item[data-start-column=\"9\"]{--col-start: 9}.reports-grid__item[data-start-row=\"9\"]{--row-start: 9}.reports-grid__item[data-height=\"9\"]{--row-span: 9}.reports-grid__item[data-width=\"10\"]{--col-span: span 10}.reports-grid__item[data-start-column=\"10\"]{--col-start: 10}.reports-grid__item[data-start-row=\"10\"]{--row-start: 10}.reports-grid__item[data-height=\"10\"]{--row-span: 10}.reports-grid__item[data-width=\"11\"]{--col-span: span 11}.reports-grid__item[data-start-column=\"11\"]{--col-start: 11}.reports-grid__item[data-start-row=\"11\"]{--row-start: 11}.reports-grid__item[data-height=\"11\"]{--row-span: 11}.reports-grid__item[data-width=\"12\"]{--col-span: span 12}.reports-grid__item[data-start-column=\"12\"]{--col-start: 12}.reports-grid__item[data-start-row=\"12\"]{--row-start: 12}.reports-grid__item[data-height=\"12\"]{--row-span: 12}@media screen{.reports-grid__item{grid-column:var(--col-start, auto)/var(--col-span, span var(--grid-column, 2));grid-row:var(--row-start, auto)/span var(--row-span, 1);grid-template-rows:subgrid}}@media print{.reports-grid{--reports-grid-gap: 11mm;--reports-grid-margin-top: 9mm;--rg-columns: repeat(2, 1fr)}.reports-grid__item{--col-start: auto;--col-span: span 1;border:1px solid #f5f5f5;border-radius:var(--cp-radius, 1rem);page-break-inside:avoid;break-inside:avoid-page}}@media screen and (max-width: 1199px){.reports-grid__item[data-width=\"1\"]{--col-start: auto;--col-span: span 6}.reports-grid__item[data-width=\"2\"]{--col-start: auto;--col-span: span 6}.reports-grid__item[data-width=\"3\"]{--col-start: auto;--col-span: span 6}.reports-grid__item[data-width=\"4\"]{--col-start: auto;--col-span: span 6}.reports-grid__item[data-width=\"5\"]{--col-start: auto;--col-span: span 6}.reports-grid__item[data-width=\"6\"]{--col-start: auto;--col-span: span 6}.reports-grid__item.wide{--col-start: 1;--col-span: -1}}@media screen and (max-width: 767px){.reports-grid__item[data-width]{--col-start: 1;--col-span: -1}}\n"], components: [{ type: FiltersPanelComponent, selector: "app-filters-panel", inputs: ["aggregations", "fields", "activeQuery"], outputs: ["filterChanged"] }, { 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"] }, { type: EditorButtonComponent, selector: "app-editor-button", inputs: ["type", "key"] }, { type: i3__namespace$1.MatSpinner, selector: "mat-spinner", inputs: ["color"] }, { type: NdfReportComponent, selector: "app-ndf-report", inputs: ["config", "direction", "data", "criteria"], outputs: ["onNavigate", "onOpen"] }, { type: NdfTableComponent, selector: "app-ndf-table", inputs: ["rows", "totalRecords", "autoCalculateHeight", "emptyMessage", "activeQuery", "configPath", "configTransformer", "tableKey", "jsonEditorEnabled", "config", "customCriteria", "searchTerm"], outputs: ["onRowSelected", "onRowIndexSelected", "actionOnRow", "onGettingData", "onMultiRowSelected", "onLoading", "onPage", "onInitialized", "onLoaded", "onQueryChange", "onSort"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: FluidHeightDirective, selector: "[ndfFluidHeight]", inputs: ["minHeight", "ndfFluidHeight", "subtractItems", "decrease", "delay", "cssVar", "calculate", "inlineStyle"], exportAs: ["ndfFluidHeight"] }, { type: i4__namespace.Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { type: ScrollableDivDirective, selector: "[scrolled]", inputs: ["scrollTop"], outputs: ["scrolled"] }, { type: i4__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: SearchTableTemplateDirective, selector: "[searchTableTemplate]" }], pipes: { "async": i4__namespace$1.AsyncPipe, "translate": i1__namespace.TranslatePipe }, animations: [slideAnimation] });
|
|
46917
47010
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfReportsComponent, decorators: [{
|
|
46918
47011
|
type: i0.Component,
|
|
46919
47012
|
args: [{
|
|
@@ -46926,7 +47019,7 @@
|
|
|
46926
47019
|
},
|
|
46927
47020
|
animations: [slideAnimation]
|
|
46928
47021
|
}]
|
|
46929
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.TranslateService }, { type: FiltersMapperService }, { type: NdfReportsService }, { type: ChartManagerService }, { type: ReportTransformService }, { type: i0__namespace.ChangeDetectorRef }, { type: FilterQueryService }, { type: ReportsStateService }, { type: i1__namespace$5.Router }, { type: i0__namespace.NgZone }]; }, propDecorators: { fluidDirective: [{
|
|
47022
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.TranslateService }, { type: FiltersMapperService }, { type: NdfReportsService }, { type: ChartManagerService }, { type: ReportTransformService }, { type: i0__namespace.ChangeDetectorRef }, { type: FilterQueryService }, { type: ReportsStateService }, { type: ReportConfigurationService }, { type: i1__namespace$5.Router }, { type: i0__namespace.NgZone }]; }, propDecorators: { fluidDirective: [{
|
|
46930
47023
|
type: i0.ViewChild,
|
|
46931
47024
|
args: [FluidHeightDirective]
|
|
46932
47025
|
}], jsonEditorEnabled: [{
|
|
@@ -46965,7 +47058,10 @@
|
|
|
46965
47058
|
DynamicTimelineReportComponent,
|
|
46966
47059
|
TimeGroupSelectorComponent,
|
|
46967
47060
|
GraphDialogComponent,
|
|
46968
|
-
TimelineDialogComponent, ScrollableDivDirective, GraphChartComponent, DigitChartComponent, ReportActionsComponent,
|
|
47061
|
+
TimelineDialogComponent, ScrollableDivDirective, GraphChartComponent, DigitChartComponent, ReportActionsComponent,
|
|
47062
|
+
CustomReportComponent,
|
|
47063
|
+
CustomChartComponent,
|
|
47064
|
+
CustomChartDialogComponent], imports: [i4.CommonModule,
|
|
46969
47065
|
i1.TranslateModule,
|
|
46970
47066
|
i3$2.MatMenuModule,
|
|
46971
47067
|
i2$2.MatIconModule,
|
|
@@ -47010,7 +47106,16 @@
|
|
|
47010
47106
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfReportsModule, decorators: [{
|
|
47011
47107
|
type: i0.NgModule,
|
|
47012
47108
|
args: [{
|
|
47013
|
-
declarations: [
|
|
47109
|
+
declarations: [
|
|
47110
|
+
CONTAINERS,
|
|
47111
|
+
COMPONENTS,
|
|
47112
|
+
DIRECTIVES,
|
|
47113
|
+
CHARTS,
|
|
47114
|
+
ReportActionsComponent,
|
|
47115
|
+
CustomReportComponent,
|
|
47116
|
+
CustomChartComponent,
|
|
47117
|
+
CustomChartDialogComponent
|
|
47118
|
+
],
|
|
47014
47119
|
imports: [
|
|
47015
47120
|
i4.CommonModule,
|
|
47016
47121
|
i1.TranslateModule,
|
|
@@ -48228,6 +48333,7 @@
|
|
|
48228
48333
|
exports.RemoveButtonComponent = RemoveButtonComponent;
|
|
48229
48334
|
exports.RenameComponent = RenameComponent;
|
|
48230
48335
|
exports.ReportConfigMapperService = ReportConfigMapperService;
|
|
48336
|
+
exports.ReportConfigurationService = ReportConfigurationService;
|
|
48231
48337
|
exports.ReportTransformService = ReportTransformService;
|
|
48232
48338
|
exports.ReportsDataTransformers = ReportsDataTransformers;
|
|
48233
48339
|
exports.ReportsStateService = ReportsStateService;
|