nuxeo-development-framework 6.1.7 → 6.1.8

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.
@@ -21611,6 +21611,25 @@
21611
21611
  type: i0.Output
21612
21612
  }] } });
21613
21613
 
21614
+ var PAGE_SIZE = [
21615
+ {
21616
+ label: '5',
21617
+ size: 5
21618
+ },
21619
+ {
21620
+ label: '10',
21621
+ size: 10
21622
+ },
21623
+ {
21624
+ label: '25',
21625
+ size: 25
21626
+ },
21627
+ {
21628
+ label: '50',
21629
+ size: 50
21630
+ }
21631
+ ];
21632
+
21614
21633
  var ACTIONS_TABLE_TEMPLATE = new i0.InjectionToken('ActionsTableTemplateDirective');
21615
21634
  var ActionsTableTemplateDirective = /** @class */ (function () {
21616
21635
  function ActionsTableTemplateDirective(template) {
@@ -21692,25 +21711,6 @@
21692
21711
  }]
21693
21712
  }], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }]; } });
21694
21713
 
21695
- var PAGE_SIZE = [
21696
- {
21697
- label: '5',
21698
- size: 5
21699
- },
21700
- {
21701
- label: '10',
21702
- size: 10
21703
- },
21704
- {
21705
- label: '25',
21706
- size: 25
21707
- },
21708
- {
21709
- label: '50',
21710
- size: 50
21711
- }
21712
- ];
21713
-
21714
21714
  var NDF_EDITOR_TYPE = {
21715
21715
  REPORTS: 'report',
21716
21716
  TABLES: 'table'
@@ -22783,8 +22783,8 @@
22783
22783
  _this._customCriteriaSub = new rxjs.BehaviorSubject({
22784
22784
  params: {},
22785
22785
  payload: {
22786
- predicateList: []
22787
- }
22786
+ predicateList: [],
22787
+ },
22788
22788
  });
22789
22789
  _this.aggregations$ = _this._aggregationsSub.asObservable();
22790
22790
  _this.displayedColumns$ = _this._displayedColumnsSub.asObservable();
@@ -22792,7 +22792,10 @@
22792
22792
  _this.viewMode$ = _this._viewModeSub.asObservable();
22793
22793
  _this.customFilters$ = _this._customCriteriaSub.asObservable();
22794
22794
  _this.textSearch$ = _this._textSearchSub.asObservable();
22795
- _this.searchAndFilters$ = rxjs.combineLatest([_this.textSearch$, _this.customFilters$]).pipe(operators.map(function (res) { return _this._prepareSearch(res); }));
22795
+ _this.searchAndFilters$ = rxjs.combineLatest([
22796
+ _this.textSearch$,
22797
+ _this.customFilters$,
22798
+ ]).pipe(operators.map(function (res) { return _this._prepareSearch(res); }));
22796
22799
  _this.autoCalculateHeight = true;
22797
22800
  _this.emptyMessage = 'table_noData';
22798
22801
  _this.configPath = 'tables';
@@ -22820,7 +22823,7 @@
22820
22823
  _this._activePage = {
22821
22824
  pageIndex: 1,
22822
22825
  pageSize: 10,
22823
- length: 0
22826
+ length: 0,
22824
22827
  };
22825
22828
  _this.editorType = NDF_EDITOR_TYPE.TABLES;
22826
22829
  _this.togglePanel = function () {
@@ -22993,11 +22996,14 @@
22993
22996
  NdfTableComponent.prototype.onLoad = function (data) {
22994
22997
  var _a, _b, _c;
22995
22998
  this.onLoaded.emit(data);
22996
- if (!this._tableInitialized || ((_a = this.filterReloadConfig) === null || _a === void 0 ? void 0 : _a.strategy) === 'never' || this._pageChanged) {
22999
+ if (!this._tableInitialized ||
23000
+ ((_a = this.filterReloadConfig) === null || _a === void 0 ? void 0 : _a.strategy) === 'never' ||
23001
+ this._pageChanged) {
22997
23002
  this._pageChanged = false;
22998
23003
  return;
22999
23004
  }
23000
- if (this._isConfigChanged || ((_b = this.filterReloadConfig) === null || _b === void 0 ? void 0 : _b.strategy) === 'always') {
23005
+ if (this._isConfigChanged ||
23006
+ ((_b = this.filterReloadConfig) === null || _b === void 0 ? void 0 : _b.strategy) === 'always') {
23001
23007
  this._aggregationsSub.next(data === null || data === void 0 ? void 0 : data.aggregations);
23002
23008
  return;
23003
23009
  }
@@ -23044,22 +23050,25 @@
23044
23050
  var fields = columns.map(function (col) { return col.headerClass || (col === null || col === void 0 ? void 0 : col.filedKey); });
23045
23051
  var headers = columns.map(function (col) { return (_this.tableConfig.prefix || '') + col.name; });
23046
23052
  var criteria = this._customCriteriaSub.getValue();
23047
- 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);
23053
+ request.params = _.merge({}, criteria.params, this._sortValue || {}, ((_b = this.tableConfig) === null || _b === void 0 ? void 0 : _b.quickFilters)
23054
+ ? { quickFilters: this.tableConfig.quickFilters }
23055
+ : {}, request === null || request === void 0 ? void 0 : request.params);
23048
23056
  var blobNameKey = (_c = this.exportTableConfig) === null || _c === void 0 ? void 0 : _c.blobName;
23049
- var payload = {
23057
+ var payload = _.merge({}, (request === null || request === void 0 ? void 0 : request.payload) || {}, {
23050
23058
  predicateList: criteria.payload.predicateList || [],
23051
23059
  reportMetaData: {
23052
23060
  blobName: '',
23053
23061
  docTypeName: this.exportTableConfig.docTypeName,
23054
23062
  fileType: type,
23055
- locale: ((_d = this.exportTableConfig) === null || _d === void 0 ? void 0 : _d.locale) || this._translateService.currentLang,
23063
+ locale: ((_d = this.exportTableConfig) === null || _d === void 0 ? void 0 : _d.locale) ||
23064
+ this._translateService.currentLang,
23056
23065
  fields: ((_e = this.exportTableConfig) === null || _e === void 0 ? void 0 : _e.fields) || fields,
23057
- headers: []
23058
- }
23059
- };
23066
+ headers: [],
23067
+ },
23068
+ });
23060
23069
  rxjs.forkJoin({
23061
23070
  ar: this._translateService.getTranslation('ar'),
23062
- en: this._translateService.getTranslation('en')
23071
+ en: this._translateService.getTranslation('en'),
23063
23072
  })
23064
23073
  .pipe(operators.switchMap(function (translations) {
23065
23074
  var currentTranslations = translations[_this._translateService.currentLang];
@@ -23085,7 +23094,9 @@
23085
23094
  this._triggerCriteriaChanges(criteria);
23086
23095
  if (((_a = this.filtersConfig) === null || _a === void 0 ? void 0 : _a.mode) !== 'payload') {
23087
23096
  var isStringifyParams = (_b = this.filtersConfig) === null || _b === void 0 ? void 0 : _b.stringifyParams;
23088
- var value = !isStringifyParams ? criteria : this._stringifyValues(criteria);
23097
+ var value = !isStringifyParams
23098
+ ? criteria
23099
+ : this._stringifyValues(criteria);
23089
23100
  this._dynamicTableService.refreshData.next(value);
23090
23101
  return;
23091
23102
  }
@@ -23093,7 +23104,9 @@
23093
23104
  this._customCriteriaSub.next(payload);
23094
23105
  };
23095
23106
  NdfTableComponent.prototype.onPageChanged = function (page) {
23096
- this._pageChanged = this._activePage.pageIndex !== page.pageIndex || this._activePage.pageSize !== page.pageSize;
23107
+ this._pageChanged =
23108
+ this._activePage.pageIndex !== page.pageIndex ||
23109
+ this._activePage.pageSize !== page.pageSize;
23097
23110
  if (this._pageChanged) {
23098
23111
  this.onPage.emit(page);
23099
23112
  this._activePage = page;
@@ -23117,7 +23130,7 @@
23117
23130
  predicateList.push({
23118
23131
  name: _key_1,
23119
23132
  operator: ((_b = this.textSearchConfig) === null || _b === void 0 ? void 0 : _b.operator) || COMPARISON_OPERATOR.equals,
23120
- value: "'" + search + "'"
23133
+ value: "'" + search + "'",
23121
23134
  });
23122
23135
  }
23123
23136
  }
@@ -23142,7 +23155,7 @@
23142
23155
  var previousValue = activatedQuery === null || activatedQuery === void 0 ? void 0 : activatedQuery.currentValue;
23143
23156
  this._activatedCriteriaSub.next({
23144
23157
  previousValue: previousValue,
23145
- currentValue: criteria
23158
+ currentValue: criteria,
23146
23159
  });
23147
23160
  };
23148
23161
  /**
@@ -23200,8 +23213,8 @@
23200
23213
  styleUrls: ['./ndf-table.component.scss'],
23201
23214
  host: {
23202
23215
  class: 'ndf-table',
23203
- '[dir]': 'direction'
23204
- }
23216
+ '[dir]': 'direction',
23217
+ },
23205
23218
  }]
23206
23219
  }], ctorParameters: function () { return [{ type: FiltersMapperService }, { type: DynamicTableService }, { type: i1__namespace.TranslateService }, { type: NdfTableService }, { type: CustomToastrService }, { type: NdfTableConfigurationService }, { type: i1__namespace$3.MatDialog }]; }, propDecorators: { rows: [{
23207
23220
  type: i0.Input