tnx-shared 5.1.195 → 5.1.196

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.
@@ -7264,6 +7264,9 @@
7264
7264
  BaseService.prototype.updateMaPhanCapBase = function () {
7265
7265
  return this.defaultPost(this.serviceUri + "/UpdateMaPhanCapBase", {});
7266
7266
  };
7267
+ BaseService.prototype.getTreeDataBase = function () {
7268
+ return this.defaultPost(this.serviceUri + "/GetTreeDataBase", {});
7269
+ };
7267
7270
  return BaseService;
7268
7271
  }());
7269
7272
 
@@ -41475,7 +41478,7 @@
41475
41478
  ServiceFileUploadComponent.decorators = [
41476
41479
  { type: i0.Component, args: [{
41477
41480
  selector: 'service-file-upload',
41478
- template: "<div class=\"file-upload\">\r\n <div class=\"fl-icon\">\r\n <i *ngIf=\"loading\" class=\"pi pi-spin pi-spinner\"></i>\r\n <i *ngIf=\"!loading\" class=\"pi pi-file-o\"></i>\r\n </div>\r\n\r\n <div class=\"fl-file-name\" (click)=\"onDownloadFile()\">\r\n <div>\r\n <ng-container *ngIf=\"!showNoti\">\r\n <span pTooltip=\"{{selectedFileName}}\">{{selectedFileNameShort}}</span>\r\n <span *ngIf=\"extension\">.{{extension}} </span>\r\n </ng-container>\r\n <span *ngIf=\"showNoti\"> {{notification}} </span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"fl-buttons\">\r\n <button *ngIf=\"!hasFile && !readonly\" pTooltip=\"Ch\u1ECDn file\" class=\"fl-choose\"\r\n class=\"link-or-action p-button-text p-button-rounded fl-choose\" tooltipPosition=\"top\" pButton type=\"button\"\r\n icon=\"pi pi-plus\" (click)=\"onOpenSelect()\"></button>\r\n\r\n <button *ngIf=\"hasFile && !readonly\" (click)=\"onRemoveFile()\"\r\n class=\"link-or-action p-button-text p-button-rounded p-button-danger fl-remove\" pTooltip=\"X\u00F3a file\"\r\n tooltipPosition=\"top\" pButton type=\"button\" icon=\"pi pi-trash\"></button>\r\n\r\n <button [disabled]=\"!menu || !menu.length\" type=\"button\" pButton icon=\"pi pi-ellipsis-v\"\r\n class=\"link-or-action p-button-text p-button-rounded\" pTooltip=\"Th\u00EAm\" tooltipPosition=\"top\"\r\n (click)=\"showContextMenu($event)\"></button>\r\n </div>\r\n\r\n <div style=\"display: none;\">\r\n <p-fileUpload #file [accept]=\"accept\" class=\"file-upload\" mode=\"basic\" [chooseLabel]=\"chooseLabel\" name=\"file[]\"\r\n [maxFileSize]=\"control.maxFileSize\" pTooltip=\"Ch\u1ECDn t\u1EEB m\u00E1y t\u00EDnh\" toolStipPosition=\"top\" multiple=\"single\"\r\n [invalidFileSizeMessageSummary]=\"control.invalidFileSizeMessageSummary\"\r\n [invalidFileSizeMessageDetail]=\"control.invalidFileSizeMessageDetail\"\r\n [invalidFileTypeMessageSummary]=\"control.invalidFileTypeMessageSummary\"\r\n [invalidFileTypeMessageDetail]=\"control.invalidFileTypeMessageDetail\"\r\n [invalidFileLimitMessageSummary]=\"control.invalidFileLimitMessageSummary\"\r\n [invalidFileLimitMessageDetail]=\"control.invalidFileLimitMessageDetail\"\r\n (onSelect)=\"onSelectFile($event)\">\r\n </p-fileUpload>\r\n </div>\r\n\r\n</div>\r\n\r\n<p-contextMenu #contextMenu [appendTo]=\"'body'\" [model]=\"menu\" styleClass=\"fm-contextMenu-panel\">\r\n</p-contextMenu>\r\n",
41481
+ template: "<div class=\"file-upload\">\r\n <div class=\"fl-icon\">\r\n <i *ngIf=\"loading\" class=\"pi pi-spin pi-spinner\"></i>\r\n <i *ngIf=\"!loading\" class=\"pi pi-file-o\"></i>\r\n </div>\r\n\r\n <div class=\"fl-file-name\" (click)=\"viewOnline()\">\r\n <div>\r\n <ng-container *ngIf=\"!showNoti\">\r\n <span pTooltip=\"{{selectedFileName}}\">{{selectedFileNameShort}}</span>\r\n <span *ngIf=\"extension\">.{{extension}} </span>\r\n </ng-container>\r\n <span *ngIf=\"showNoti\"> {{notification}} </span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"fl-buttons\">\r\n <button *ngIf=\"!hasFile && !readonly\" pTooltip=\"Ch\u1ECDn file\" class=\"fl-choose\"\r\n class=\"link-or-action p-button-text p-button-rounded fl-choose\" tooltipPosition=\"top\" pButton type=\"button\"\r\n icon=\"pi pi-plus\" (click)=\"onOpenSelect()\"></button>\r\n\r\n <button *ngIf=\"hasFile && !readonly\" (click)=\"onRemoveFile()\"\r\n class=\"link-or-action p-button-text p-button-rounded p-button-danger fl-remove\" pTooltip=\"X\u00F3a file\"\r\n tooltipPosition=\"top\" pButton type=\"button\" icon=\"pi pi-trash\"></button>\r\n\r\n <button [disabled]=\"!menu || !menu.length\" type=\"button\" pButton icon=\"pi pi-ellipsis-v\"\r\n class=\"link-or-action p-button-text p-button-rounded\" pTooltip=\"Th\u00EAm\" tooltipPosition=\"top\"\r\n (click)=\"showContextMenu($event)\"></button>\r\n </div>\r\n\r\n <div style=\"display: none;\">\r\n <p-fileUpload #file [accept]=\"accept\" class=\"file-upload\" mode=\"basic\" [chooseLabel]=\"chooseLabel\" name=\"file[]\"\r\n [maxFileSize]=\"control.maxFileSize\" pTooltip=\"Ch\u1ECDn t\u1EEB m\u00E1y t\u00EDnh\" toolStipPosition=\"top\" multiple=\"single\"\r\n [invalidFileSizeMessageSummary]=\"control.invalidFileSizeMessageSummary\"\r\n [invalidFileSizeMessageDetail]=\"control.invalidFileSizeMessageDetail\"\r\n [invalidFileTypeMessageSummary]=\"control.invalidFileTypeMessageSummary\"\r\n [invalidFileTypeMessageDetail]=\"control.invalidFileTypeMessageDetail\"\r\n [invalidFileLimitMessageSummary]=\"control.invalidFileLimitMessageSummary\"\r\n [invalidFileLimitMessageDetail]=\"control.invalidFileLimitMessageDetail\" (onSelect)=\"onSelectFile($event)\">\r\n </p-fileUpload>\r\n </div>\r\n\r\n</div>\r\n\r\n<p-contextMenu #contextMenu [appendTo]=\"'body'\" [model]=\"menu\" styleClass=\"fm-contextMenu-panel\">\r\n</p-contextMenu>",
41479
41482
  providers: [
41480
41483
  {
41481
41484
  provide: forms.NG_VALUE_ACCESSOR,
@@ -55558,44 +55561,6 @@
55558
55561
  { type: CommonService }
55559
55562
  ]; };
55560
55563
 
55561
- var AnonymousTokenInterceptor = /** @class */ (function () {
55562
- function AnonymousTokenInterceptor(_moduleConfigService, _applicationContextService) {
55563
- this._moduleConfigService = _moduleConfigService;
55564
- this._applicationContextService = _applicationContextService;
55565
- this.env = this._moduleConfigService.getConfig().environment;
55566
- }
55567
- AnonymousTokenInterceptor.prototype.intercept = function (request, next) {
55568
- // Tạm thời xử lý đọc access token từ config, sau khi Phúc xử lý xong phần backend thì sẽ thay đổi logic đoạn này để đọc từ querystring
55569
- try {
55570
- this.appMetadata = this._applicationContextService.getRootContext().data.currentAppMetadata;
55571
- if (this.appMetadata && this.appMetadata.enableTemporaryAccessToken) {
55572
- console.log("using temporary accesstoken from config: " + this.appMetadata.temporaryAccessToken);
55573
- request = request.clone({
55574
- setHeaders: {
55575
- Authorization: "Bearer " + this.appMetadata.temporaryAccessToken,
55576
- PortalAlias: location.origin
55577
- }
55578
- });
55579
- }
55580
- }
55581
- catch (e) {
55582
- console.error("error on AnonymousTokenInterceptor " + e);
55583
- }
55584
- return next.handle(request);
55585
- };
55586
- return AnonymousTokenInterceptor;
55587
- }());
55588
- AnonymousTokenInterceptor.ɵprov = i0.ɵɵdefineInjectable({ factory: function AnonymousTokenInterceptor_Factory() { return new AnonymousTokenInterceptor(i0.ɵɵinject(ModuleConfigService), i0.ɵɵinject(ApplicationContextService)); }, token: AnonymousTokenInterceptor, providedIn: "root" });
55589
- AnonymousTokenInterceptor.decorators = [
55590
- { type: i0.Injectable, args: [{
55591
- providedIn: 'root'
55592
- },] }
55593
- ];
55594
- AnonymousTokenInterceptor.ctorParameters = function () { return [
55595
- { type: ModuleConfigService },
55596
- { type: ApplicationContextService }
55597
- ]; };
55598
-
55599
55564
  var PublicFunction = /** @class */ (function () {
55600
55565
  function PublicFunction() {
55601
55566
  }
@@ -55692,11 +55657,6 @@
55692
55657
  useClass: TraceInterceptor,
55693
55658
  multi: true,
55694
55659
  },
55695
- {
55696
- provide: i1$1.HTTP_INTERCEPTORS,
55697
- useClass: AnonymousTokenInterceptor,
55698
- multi: true,
55699
- },
55700
55660
  i1.MessageService,
55701
55661
  i1.ConfirmationService,
55702
55662
  i2$1.DatePipe,
@@ -57671,7 +57631,6 @@
57671
57631
  exports.ɵfe = LogInterceptor;
57672
57632
  exports.ɵff = PermissionUtilsInterceptor;
57673
57633
  exports.ɵfg = TraceInterceptor;
57674
- exports.ɵfh = AnonymousTokenInterceptor;
57675
57634
  exports.ɵg = AdvanceSearchComponent;
57676
57635
  exports.ɵh = AppRootMenuComponent;
57677
57636
  exports.ɵi = AppTopBarComponent;