nuxeo-development-framework 5.2.4 → 5.2.5

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.
@@ -9451,9 +9451,15 @@
9451
9451
  return treeItem;
9452
9452
  });
9453
9453
  };
9454
- DepartmentApiService.prototype.getFullDepartmentTree = function (customPageProvider, customParams) {
9454
+ DepartmentApiService.prototype.getFullDepartmentTree = function (customPageProvider, customParams, childrenOfSpecificDep) {
9455
9455
  var obj = customParams ? customParams : {};
9456
- var params = Object.assign({ pageProvider: customPageProvider ? customPageProvider : 'PP_Department', currentPageIndex: 0, offset: 0, pageSize: 40, quickFilters: 'Parent Dept' }, obj);
9456
+ var params = Object.assign({ pageProvider: customPageProvider ? customPageProvider : 'PP_Department', currentPageIndex: 0, offset: 0, pageSize: 40 }, obj);
9457
+ if (childrenOfSpecificDep !== null) {
9458
+ params['dublincore_title'] = childrenOfSpecificDep;
9459
+ }
9460
+ else {
9461
+ params['quickFilters'] = 'Parent Dept';
9462
+ }
9457
9463
  if (this.globalAdminService.isGlobalAdmin) {
9458
9464
  params['queryParams'] = this.globalAdminService.activeTenant;
9459
9465
  }
@@ -17565,24 +17571,89 @@
17565
17571
  return FieldValueObject;
17566
17572
  }());
17567
17573
 
17568
- var ActiveUserService = /** @class */ (function (_super) {
17569
- __extends(ActiveUserService, _super);
17570
- function ActiveUserService() {
17571
- return _super !== null && _super.apply(this, arguments) || this;
17574
+ var BaseCustomValueAccessor = /** @class */ (function (_super) {
17575
+ __extends(BaseCustomValueAccessor, _super);
17576
+ function BaseCustomValueAccessor(injector) {
17577
+ var _this = _super.call(this, injector) || this;
17578
+ _this.injector = injector;
17579
+ _this.onChange = function () { };
17580
+ _this.onTouched = function () { };
17581
+ _this.onValidationChange = function () { };
17582
+ return _this;
17572
17583
  }
17573
- ActiveUserService.prototype.getCurrentUser = function () {
17574
- return this.user;
17584
+ BaseCustomValueAccessor.prototype.registerOnChange = function (fn) {
17585
+ this.onChange = fn;
17575
17586
  };
17576
- return ActiveUserService;
17577
- }(BaseService));
17578
- ActiveUserService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActiveUserService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
17579
- ActiveUserService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActiveUserService, providedIn: 'root' });
17580
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActiveUserService, decorators: [{
17581
- type: i0.Injectable,
17582
- args: [{
17583
- providedIn: 'root'
17584
- }]
17585
- }] });
17587
+ BaseCustomValueAccessor.prototype.registerOnTouched = function (fn) {
17588
+ this.onTouched = fn;
17589
+ };
17590
+ BaseCustomValueAccessor.prototype.setDisabledState = function (isDisabled) {
17591
+ this.disabled = isDisabled;
17592
+ this.cdr.markForCheck();
17593
+ };
17594
+ BaseCustomValueAccessor.prototype.registerOnValidatorChange = function (fn) {
17595
+ this.onValidationChange = fn;
17596
+ };
17597
+ return BaseCustomValueAccessor;
17598
+ }(BaseComponent));
17599
+ BaseCustomValueAccessor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseCustomValueAccessor, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Directive });
17600
+ BaseCustomValueAccessor.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseCustomValueAccessor, inputs: { disabled: "disabled" }, usesInheritance: true, ngImport: i0__namespace });
17601
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseCustomValueAccessor, decorators: [{
17602
+ type: i0.Directive,
17603
+ args: [{}]
17604
+ }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; }, propDecorators: { disabled: [{
17605
+ type: i0.Input
17606
+ }] } });
17607
+
17608
+ var BaseCustomField = /** @class */ (function (_super) {
17609
+ __extends(BaseCustomField, _super);
17610
+ function BaseCustomField(injector) {
17611
+ var _this = _super.call(this, injector) || this;
17612
+ _this.injector = injector;
17613
+ _this._isFieldDirty = false;
17614
+ return _this;
17615
+ }
17616
+ Object.defineProperty(BaseCustomField.prototype, "renderOptions", {
17617
+ get: function () {
17618
+ var _a, _b;
17619
+ return (_b = (_a = this.field) === null || _a === void 0 ? void 0 : _a.render) === null || _b === void 0 ? void 0 : _b.options;
17620
+ },
17621
+ enumerable: false,
17622
+ configurable: true
17623
+ });
17624
+ BaseCustomField.prototype.validate = function (control) {
17625
+ return control.valid ? null : control.errors;
17626
+ };
17627
+ BaseCustomField.prototype._isValueObject = function () {
17628
+ var _a;
17629
+ return ((_a = this.field) === null || _a === void 0 ? void 0 : _a.valueType) === 'valueObject';
17630
+ };
17631
+ BaseCustomField.prototype._isSendAsQueryParams = function () {
17632
+ var _a;
17633
+ return ((_a = this.field) === null || _a === void 0 ? void 0 : _a.sendMode) === FIELD_SEND_MODE.queryParam;
17634
+ };
17635
+ BaseCustomField.prototype._prepareValueObject = function (value, operator, prefix) {
17636
+ var _a;
17637
+ if (operator === void 0) {
17638
+ operator = (_a = this.field) === null || _a === void 0 ? void 0 : _a.operator;
17639
+ }
17640
+ return new FieldValueObject({
17641
+ operator: operator,
17642
+ value: value,
17643
+ prefix: prefix
17644
+ });
17645
+ };
17646
+ return BaseCustomField;
17647
+ }(BaseCustomValueAccessor));
17648
+ BaseCustomField.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseCustomField, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Directive });
17649
+ BaseCustomField.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseCustomField, inputs: { aggregations: "aggregations", field: "field" }, usesInheritance: true, ngImport: i0__namespace });
17650
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseCustomField, decorators: [{
17651
+ type: i0.Directive
17652
+ }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; }, propDecorators: { aggregations: [{
17653
+ type: i0.Input
17654
+ }], field: [{
17655
+ type: i0.Input
17656
+ }] } });
17586
17657
 
17587
17658
  var NxQL = /** @class */ (function () {
17588
17659
  function NxQL() {
@@ -17675,6 +17746,25 @@
17675
17746
  return !Array.isArray(value) && (!!value || _.isBoolean(value) || _.isNumber(value) || _.isDate(value));
17676
17747
  }
17677
17748
 
17749
+ var ActiveUserService = /** @class */ (function (_super) {
17750
+ __extends(ActiveUserService, _super);
17751
+ function ActiveUserService() {
17752
+ return _super !== null && _super.apply(this, arguments) || this;
17753
+ }
17754
+ ActiveUserService.prototype.getCurrentUser = function () {
17755
+ return this.user;
17756
+ };
17757
+ return ActiveUserService;
17758
+ }(BaseService));
17759
+ ActiveUserService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActiveUserService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
17760
+ ActiveUserService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActiveUserService, providedIn: 'root' });
17761
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActiveUserService, decorators: [{
17762
+ type: i0.Injectable,
17763
+ args: [{
17764
+ providedIn: 'root'
17765
+ }]
17766
+ }] });
17767
+
17678
17768
  var ActiveUserSwitchComponent = /** @class */ (function (_super) {
17679
17769
  __extends(ActiveUserSwitchComponent, _super);
17680
17770
  function ActiveUserSwitchComponent() {
@@ -18070,40 +18160,6 @@
18070
18160
  type: i0.Directive
18071
18161
  }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
18072
18162
 
18073
- var BaseCustomValueAccessor = /** @class */ (function (_super) {
18074
- __extends(BaseCustomValueAccessor, _super);
18075
- function BaseCustomValueAccessor(injector) {
18076
- var _this = _super.call(this, injector) || this;
18077
- _this.injector = injector;
18078
- _this.onChange = function () { };
18079
- _this.onTouched = function () { };
18080
- _this.onValidationChange = function () { };
18081
- return _this;
18082
- }
18083
- BaseCustomValueAccessor.prototype.registerOnChange = function (fn) {
18084
- this.onChange = fn;
18085
- };
18086
- BaseCustomValueAccessor.prototype.registerOnTouched = function (fn) {
18087
- this.onTouched = fn;
18088
- };
18089
- BaseCustomValueAccessor.prototype.setDisabledState = function (isDisabled) {
18090
- this.disabled = isDisabled;
18091
- this.cdr.markForCheck();
18092
- };
18093
- BaseCustomValueAccessor.prototype.registerOnValidatorChange = function (fn) {
18094
- this.onValidationChange = fn;
18095
- };
18096
- return BaseCustomValueAccessor;
18097
- }(BaseComponent));
18098
- BaseCustomValueAccessor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseCustomValueAccessor, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Directive });
18099
- BaseCustomValueAccessor.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseCustomValueAccessor, inputs: { disabled: "disabled" }, usesInheritance: true, ngImport: i0__namespace });
18100
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseCustomValueAccessor, decorators: [{
18101
- type: i0.Directive,
18102
- args: [{}]
18103
- }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; }, propDecorators: { disabled: [{
18104
- type: i0.Input
18105
- }] } });
18106
-
18107
18163
  var BasePredicateField = /** @class */ (function (_super) {
18108
18164
  __extends(BasePredicateField, _super);
18109
18165
  function BasePredicateField() {
@@ -18151,56 +18207,6 @@
18151
18207
  type: i0.Input
18152
18208
  }] } });
18153
18209
 
18154
- var BaseCustomField = /** @class */ (function (_super) {
18155
- __extends(BaseCustomField, _super);
18156
- function BaseCustomField(injector) {
18157
- var _this = _super.call(this, injector) || this;
18158
- _this.injector = injector;
18159
- _this._isFieldDirty = false;
18160
- return _this;
18161
- }
18162
- Object.defineProperty(BaseCustomField.prototype, "renderOptions", {
18163
- get: function () {
18164
- var _a, _b;
18165
- return (_b = (_a = this.field) === null || _a === void 0 ? void 0 : _a.render) === null || _b === void 0 ? void 0 : _b.options;
18166
- },
18167
- enumerable: false,
18168
- configurable: true
18169
- });
18170
- BaseCustomField.prototype.validate = function (control) {
18171
- return control.valid ? null : control.errors;
18172
- };
18173
- BaseCustomField.prototype._isValueObject = function () {
18174
- var _a;
18175
- return ((_a = this.field) === null || _a === void 0 ? void 0 : _a.valueType) === 'valueObject';
18176
- };
18177
- BaseCustomField.prototype._isSendAsQueryParams = function () {
18178
- var _a;
18179
- return ((_a = this.field) === null || _a === void 0 ? void 0 : _a.sendMode) === FIELD_SEND_MODE.queryParam;
18180
- };
18181
- BaseCustomField.prototype._prepareValueObject = function (value, operator, prefix) {
18182
- var _a;
18183
- if (operator === void 0) {
18184
- operator = (_a = this.field) === null || _a === void 0 ? void 0 : _a.operator;
18185
- }
18186
- return new FieldValueObject({
18187
- operator: operator,
18188
- value: value,
18189
- prefix: prefix
18190
- });
18191
- };
18192
- return BaseCustomField;
18193
- }(BaseCustomValueAccessor));
18194
- BaseCustomField.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseCustomField, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Directive });
18195
- BaseCustomField.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseCustomField, inputs: { aggregations: "aggregations", field: "field" }, usesInheritance: true, ngImport: i0__namespace });
18196
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseCustomField, decorators: [{
18197
- type: i0.Directive
18198
- }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; }, propDecorators: { aggregations: [{
18199
- type: i0.Input
18200
- }], field: [{
18201
- type: i0.Input
18202
- }] } });
18203
-
18204
18210
  var AUTOCOMPLETE_TEMPLATE = new i0.InjectionToken('AutocompleteTemplateDirective');
18205
18211
  var AutocompleteTemplateDirective = /** @class */ (function () {
18206
18212
  function AutocompleteTemplateDirective(template) {
@@ -21600,7 +21606,7 @@
21600
21606
  NdfTableComponent.prototype.exportTable = function (type) {
21601
21607
  var _this = this;
21602
21608
  var _a, _b, _c, _d;
21603
- var request = (_a = this.exportTableConfig) === null || _a === void 0 ? void 0 : _a.request;
21609
+ var request = ___default["default"].cloneDeep((_a = this.exportTableConfig) === null || _a === void 0 ? void 0 : _a.request);
21604
21610
  if (!request) {
21605
21611
  return;
21606
21612
  }