tnx-shared 5.1.560 → 5.1.562

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.
@@ -668,7 +668,7 @@
668
668
  }
669
669
  function __addDisposableResource(env, value, async) {
670
670
  if (value !== null && value !== void 0) {
671
- if (typeof value !== "object")
671
+ if (typeof value !== "object" && typeof value !== "function")
672
672
  throw new TypeError("Object expected.");
673
673
  var dispose;
674
674
  if (async) {
@@ -6359,14 +6359,17 @@
6359
6359
  ]; };
6360
6360
 
6361
6361
  var CrudService = /** @class */ (function () {
6362
- function CrudService(_injector, _translateService, _loggerService, _commonService, datePipe, _notifierService) {
6362
+ function CrudService(_injector, _translateService, _loggerService, _commonService, datePipe, _notifierService, _moduleConfigService) {
6363
6363
  this._injector = _injector;
6364
6364
  this._translateService = _translateService;
6365
6365
  this._loggerService = _loggerService;
6366
6366
  this._commonService = _commonService;
6367
6367
  this.datePipe = datePipe;
6368
6368
  this._notifierService = _notifierService;
6369
+ this._moduleConfigService = _moduleConfigService;
6370
+ this.useIgnoreAllBaseFilter = false;
6369
6371
  this.getTraceId = function () { return sessionStorage.getItem('traceId'); };
6372
+ this.useIgnoreAllBaseFilter = this._moduleConfigService.getConfig().environment.useIgnoreAllBaseFilter || false;
6370
6373
  }
6371
6374
  CrudService.prototype.renderDateTime = function (datetime, format) {
6372
6375
  if (format === void 0) { format = 'fromNow'; }
@@ -6802,7 +6805,7 @@
6802
6805
  if (schema.baseService instanceof MasterDataService) {
6803
6806
  return schema.baseService.getDataDropdown(schema.groupCode, arrValue, this.createDropdownOptions(schema));
6804
6807
  }
6805
- if (!schema.plusUrl) {
6808
+ if (this.useIgnoreAllBaseFilter && !schema.plusUrl) {
6806
6809
  schema.plusUrl = 'IgnoreAllBaseFilter';
6807
6810
  }
6808
6811
  return schema.baseService.getDataDropdownByFilter([this._commonService.newFilter(schema.valueField, exports.Operator.in, arrValue)], this.createDropdownOptions(schema));
@@ -7472,7 +7475,7 @@
7472
7475
  };
7473
7476
  return CrudService;
7474
7477
  }());
7475
- CrudService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CrudService_Factory() { return new CrudService(i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(i2__namespace.TranslateService), i0__namespace.ɵɵinject(LoggerService), i0__namespace.ɵɵinject(CommonService), i0__namespace.ɵɵinject(i4__namespace$1.DatePipe), i0__namespace.ɵɵinject(NotifierService)); }, token: CrudService, providedIn: "root" });
7478
+ CrudService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CrudService_Factory() { return new CrudService(i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(i2__namespace.TranslateService), i0__namespace.ɵɵinject(LoggerService), i0__namespace.ɵɵinject(CommonService), i0__namespace.ɵɵinject(i4__namespace$1.DatePipe), i0__namespace.ɵɵinject(NotifierService), i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CrudService, providedIn: "root" });
7476
7479
  CrudService.decorators = [
7477
7480
  { type: i0.Injectable, args: [{
7478
7481
  providedIn: 'root',
@@ -7484,7 +7487,8 @@
7484
7487
  { type: LoggerService },
7485
7488
  { type: CommonService },
7486
7489
  { type: i4$1.DatePipe },
7487
- { type: NotifierService }
7490
+ { type: NotifierService },
7491
+ { type: ModuleConfigService }
7488
7492
  ]; };
7489
7493
 
7490
7494
  var TreeNode = /** @class */ (function () {
@@ -37568,7 +37572,7 @@
37568
37572
  FileUploadComponent.decorators = [
37569
37573
  { type: i0.Component, args: [{
37570
37574
  selector: 'file-upload',
37571
- template: "<div class=\"file-upload\">\n <div class=\"fl-icon\">\n <i *ngIf=\"loading\" class=\"pi pi-spin pi-spinner\" style=\"font-size: 2rem\"></i>\n <i *ngIf=\"!loading\" class=\"pi pi-file-o\" style=\"font-size: 2rem\"></i>\n </div>\n\n <div class=\"fl-file-name\" (click)=\"openFileViewer()\">\n <span *ngIf=\"!showNoti\">{{selectedFileName}}</span>\n <span *ngIf=\"showNoti\"> {{notification}} </span>\n </div>\n\n <div class=\"fl-buttons\">\n <button *ngIf=\"!hasFile && !readonly\" pTooltip=\"Ch\u1ECDn file\" class=\"fl-choose\"\n class=\"link-or-action p-button-text p-button-rounded fl-choose\" tooltipPosition=\"top\" pButton type=\"button\"\n icon=\"pi pi-plus\" (click)=\"onOpenSelect()\"></button>\n\n <button *ngIf=\"hasFile && !readonly\" (click)=\"onRemoveFile()\"\n class=\"link-or-action p-button-text p-button-rounded p-button-danger fl-remove\" pTooltip=\"X\u00F3a file\"\n tooltipPosition=\"top\" pButton type=\"button\" icon=\"pi pi-trash\"></button>\n\n <button [disabled]=\"!menu || !menu.length\" type=\"button\" pButton icon=\"pi pi-ellipsis-v\"\n class=\"link-or-action p-button-text p-button-rounded\" pTooltip=\"Th\u00EAm\" tooltipPosition=\"top\"\n (click)=\"showContextMenu($event)\"></button>\n </div>\n\n <div style=\"display: none;\">\n <p-fileUpload #file [accept]=\"accept\" [auto]=\"false\" class=\"file-upload\" mode=\"basic\"\n [chooseLabel]=\"chooseLabel\" name=\"file[]\" [accept]=\"accept\" pTooltip=\"Ch\u1ECDn t\u1EEB m\u00E1y t\u00EDnh\"\n toolStipPosition=\"top\" multiple=\"single\" [invalidFileSizeMessageSummary]=\"invalidFileSizeMessageSummary\"\n [invalidFileSizeMessageDetail]=\"invalidFileSizeMessageDetail\"\n [invalidFileTypeMessageSummary]=\"invalidFileTypeMessageSummary\"\n [invalidFileTypeMessageDetail]=\"invalidFileTypeMessageDetail\"\n [invalidFileLimitMessageSummary]=\"invalidFileLimitMessageSummary\"\n [invalidFileLimitMessageDetail]=\"invalidFileLimitMessageDetail\" (onSelect)=\"onSelectFile($event)\"\n (onError)=\"handleError($event)\">\n </p-fileUpload>\n </div>\n\n</div>\n\n<p-contextMenu #contextMenu [appendTo]=\"'body'\" [model]=\"menu\" styleClass=\"fm-contextMenu-panel\">\n</p-contextMenu>\n\n<file-viewer #fileViewerNew *ngIf=\"forms.fileViewer.show\" [parentModel]=\"model\" [parentContext]=\"context\"\n [readonly]=\"readonly\" [model]=\"forms.fileViewer.formData\" (onClose)=\"forms.fileViewer.show = false;\">\n</file-viewer>",
37575
+ template: "<div class=\"file-upload\">\n <div class=\"fl-icon\">\n <i *ngIf=\"loading\" class=\"pi pi-spin pi-spinner\" style=\"font-size: 2rem\"></i>\n <i *ngIf=\"!loading\" class=\"pi pi-file-o\" style=\"font-size: 2rem\"></i>\n </div>\n\n <div class=\"fl-file-name\" (click)=\"openFileViewer()\">\n <span *ngIf=\"!showNoti\">{{selectedFileName}}</span>\n <span *ngIf=\"showNoti\"> {{notification}} </span>\n </div>\n\n <div class=\"fl-buttons\">\n <button *ngIf=\"!hasFile && !readonly\" pTooltip=\"Ch\u1ECDn file\" class=\"fl-choose\"\n class=\"link-or-action p-button-text p-button-rounded fl-choose\" tooltipPosition=\"top\" pButton type=\"button\"\n icon=\"pi pi-plus\" (click)=\"onOpenSelect()\"></button>\n\n <button *ngIf=\"hasFile && !readonly\" (click)=\"onRemoveFile()\"\n class=\"link-or-action p-button-text p-button-rounded p-button-danger fl-remove\" pTooltip=\"X\u00F3a file\"\n tooltipPosition=\"top\" pButton type=\"button\" icon=\"pi pi-trash\"></button>\n\n <button [disabled]=\"!menu || !menu.length\" type=\"button\" pButton icon=\"pi pi-ellipsis-v\"\n class=\"link-or-action p-button-text p-button-rounded\" pTooltip=\"Th\u00EAm\" tooltipPosition=\"top\"\n (click)=\"showContextMenu($event)\"></button>\n </div>\n\n <div style=\"display: none;\">\n <p-fileUpload #file [accept]=\"accept\" [auto]=\"false\" class=\"file-upload\" mode=\"basic\"\n [chooseLabel]=\"chooseLabel\" name=\"file[]\" [accept]=\"accept\" pTooltip=\"Ch\u1ECDn t\u1EEB m\u00E1y t\u00EDnh\"\n toolStipPosition=\"top\" [invalidFileSizeMessageSummary]=\"invalidFileSizeMessageSummary\"\n [invalidFileSizeMessageDetail]=\"invalidFileSizeMessageDetail\"\n [invalidFileTypeMessageSummary]=\"invalidFileTypeMessageSummary\"\n [invalidFileTypeMessageDetail]=\"invalidFileTypeMessageDetail\"\n [invalidFileLimitMessageSummary]=\"invalidFileLimitMessageSummary\"\n [invalidFileLimitMessageDetail]=\"invalidFileLimitMessageDetail\" (onSelect)=\"onSelectFile($event)\"\n (onError)=\"handleError($event)\">\n </p-fileUpload>\n </div>\n\n</div>\n\n<p-contextMenu #contextMenu [appendTo]=\"'body'\" [model]=\"menu\" styleClass=\"fm-contextMenu-panel\">\n</p-contextMenu>\n\n<file-viewer #fileViewerNew *ngIf=\"forms.fileViewer.show\" [parentModel]=\"model\" [parentContext]=\"context\"\n [readonly]=\"readonly\" [model]=\"forms.fileViewer.formData\" (onClose)=\"forms.fileViewer.show = false;\">\n</file-viewer>",
37572
37576
  providers: [
37573
37577
  {
37574
37578
  provide: forms.NG_VALUE_ACCESSOR,