oxpi-nglib 1.0.75 → 1.0.78

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.
@@ -2962,11 +2962,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImpor
2962
2962
  }] }, { type: CommonWebService }, { type: NotificationService }, { type: i3.MatDialogRef }]; } });
2963
2963
 
2964
2964
  class ProdutosHistoryComponent {
2965
- constructor(ws, notification, dataDialog, dialog, elRef, dialogRef, screenHelper) {
2965
+ constructor(ws, notification, dataDialog, dialog, auth, elRef, dialogRef, screenHelper) {
2966
2966
  this.ws = ws;
2967
2967
  this.notification = notification;
2968
2968
  this.dataDialog = dataDialog;
2969
2969
  this.dialog = dialog;
2970
+ this.auth = auth;
2970
2971
  this.elRef = elRef;
2971
2972
  this.dialogRef = dialogRef;
2972
2973
  this.screenHelper = screenHelper;
@@ -2984,6 +2985,7 @@ class ProdutosHistoryComponent {
2984
2985
  next: r => {
2985
2986
  for (const p of r) {
2986
2987
  p.isHistorico = true;
2988
+ this.auth.setOwnership(p);
2987
2989
  }
2988
2990
  this.items = r;
2989
2991
  console.info(r);
@@ -3016,15 +3018,15 @@ class ProdutosHistoryComponent {
3016
3018
  });
3017
3019
  }
3018
3020
  }
3019
- ProdutosHistoryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: ProdutosHistoryComponent, deps: [{ token: CommonWebService }, { token: NotificationService }, { token: MAT_DIALOG_DATA }, { token: i3.MatDialog }, { token: i0.ElementRef }, { token: i3.MatDialogRef }, { token: ScreenHelperService }], target: i0.ɵɵFactoryTarget.Component });
3020
- ProdutosHistoryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: ProdutosHistoryComponent, selector: "lib-produtos-history", ngImport: i0, template: "<div class=\"ox-header\">\n <h2 class=\"titulo\">Hist\u00F3rico do Produto '{{model.id}}'</h2>\n <button mat-icon-button [mat-dialog-close]>\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div class=\"result-container\" *ngIf=\"items\">\n <div class=\"reservas-container\">\n <h4 *ngIf=\"items.length === 0\" class=\"nenhum-item-msg\">Nenhum registro para ser exibido</h4>\n <div (click)=\"abreCadastro(item)\" class=\"historico-item\" *ngFor=\"let item of items\">\n <div class=\"historico-icon\">\n <i class=\"material-icons\">history</i>\n </div>\n <div class=\"historico-content\">\n <p class=\"historico-date\">{{ item.startTime | date:'EEE dd/MM/yy HH:mm' }} - {{ item.endTime | date:'EEE dd/MM/yy HH:mm' }}</p>\n <p class=\"historico-user\">{{ item.usuarioLogin }}</p>\n <p class=\"historico-modulo\">{{ item.modulo }}</p>\n </div>\n </div>\n </div>\n</div>", styles: [":host{background:#fafafa;display:flex;flex-direction:column;height:100%;max-height:99vh;position:relative}.reservas-container{display:flex;flex-direction:column}.historico-item{display:flex;align-items:center;padding:10px;border-bottom:1px solid #ccc;font-family:Open Sans,sans-serif;background-color:#fff;cursor:pointer}.historico-item:hover{background-color:var(--item-card-selected-bg)}.historico-icon{font-size:24px;color:#39b7ab;margin-right:32px}.historico-content{flex:1;display:flex;flex-direction:column;gap:4px}.historico-date{margin:0;font-weight:500}.historico-user{margin:0;color:purple}.historico-modulo{margin:0;font-style:italic;color:#666;font-size:small}\n"], dependencies: [{ kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$2.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"] }, { kind: "component", type: i7$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "pipe", type: i6.DatePipe, name: "date" }] });
3021
+ ProdutosHistoryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: ProdutosHistoryComponent, deps: [{ token: CommonWebService }, { token: NotificationService }, { token: MAT_DIALOG_DATA }, { token: i3.MatDialog }, { token: AuthDataService }, { token: i0.ElementRef }, { token: i3.MatDialogRef }, { token: ScreenHelperService }], target: i0.ɵɵFactoryTarget.Component });
3022
+ ProdutosHistoryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: ProdutosHistoryComponent, selector: "lib-produtos-history", ngImport: i0, template: "<div class=\"ox-header\">\n <h2 class=\"titulo\">Hist\u00F3rico do Produto '{{model.id}}'</h2>\n <button mat-icon-button [mat-dialog-close]>\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div class=\"result-container\" *ngIf=\"items\">\n <div class=\"reservas-container\">\n <h4 *ngIf=\"items.length === 0\" class=\"nenhum-item-msg\">Nenhum registro para ser exibido</h4>\n <div (click)=\"abreCadastro(item)\" class=\"historico-item\" *ngFor=\"let item of items\">\n <div class=\"historico-icon\">\n <i class=\"material-icons\">history</i>\n </div>\n <div class=\"historico-content\">\n <p class=\"historico-date\">{{ item.startTime | date:'EEE dd/MM/yy HH:mm' }} - {{ item.endTime | date:'EEE dd/MM/yy HH:mm' }}</p>\n <p class=\"historico-user\">{{ item.usuarioLogin }}</p>\n <p class=\"historico-modulo\" [attr.data-motelplusmodulo]=\"item.modulo\"></p>\n </div>\n </div>\n </div>\n</div>", styles: ["@charset \"UTF-8\";:host{background:#fafafa;display:flex;flex-direction:column;height:100%;max-height:99vh;position:relative}.reservas-container{display:flex;flex-direction:column}.historico-item{display:flex;align-items:center;padding:10px;border-bottom:1px solid #ccc;font-family:Open Sans,sans-serif;background-color:#fff;cursor:pointer}.historico-item:hover{background-color:var(--item-card-selected-bg)}.historico-icon{font-size:24px;color:#39b7ab;margin-right:32px}.historico-content{flex:1;display:flex;flex-direction:column;gap:4px}.historico-date{margin:0;font-weight:500;font-size:smaller}.historico-user{margin:0;color:purple}.historico-modulo{margin:0;font-size:xx-small;padding:3px 8px;border-radius:7px;align-self:end;background-color:#95a5a6;content:\"--\"}.historico-modulo[data-motelplusmodulo=\"0\"]:before{content:\"Administrativo\";background-color:#3498db;color:#fff}.historico-modulo[data-motelplusmodulo=\"1\"]:before{content:\"Administrativo Online\";background-color:#e74c3c;color:#fff}.historico-modulo[data-motelplusmodulo=\"2\"]:before{content:\"Gerencial\";background-color:#2ecc71;color:#fff}.historico-modulo[data-motelplusmodulo=\"3\"]:before{content:\"Gerencial Online\";background-color:#2ecc71;color:#fff}.historico-modulo[data-motelplusmodulo=\"4\"]:before{content:\"Estoque\";background-color:#9b59b6;color:#fff}.historico-modulo[data-motelplusmodulo=\"5\"]:before{content:\"Estoque Online\";background-color:#f39c12;color:#fff}.historico-modulo[data-motelplusmodulo=\"6\"]:before{content:\"Finan\\e7 as\";background-color:#004caf;color:#fff}.historico-modulo[data-motelplusmodulo=\"7\"]:before{content:\"Finan\\e7 as Online\";background-color:#004caf;color:#fff}.historico-modulo[data-motelplusmodulo=\"8\"]:before{content:\"Recep\\e7\\e3o\";background-color:#e91313;color:#fff}.historico-modulo[data-motelplusmodulo=\"9\"]:before{content:\"Configura\\e7\\f5 es\";background-color:#95a5a6;color:#fff}.historico-modulo[data-motelplusmodulo=\"10\"]:before{content:\"Gerencial Web\";background-color:#d35400;color:#fff}.historico-modulo[data-motelplusmodulo=\"11\"]:before{content:\"Gerencial Mobile\";background-color:#44ad85;color:#fff}.historico-modulo[data-motelplusmodulo=\"12\"]:before{content:\"Finan\\e7 as Web\";background-color:#0879eb;color:#fff}.historico-modulo[data-motelplusmodulo=\"13\"]:before{content:\"Assist Mobile\";background-color:#f39c12;color:#fff}.historico-modulo[data-motelplusmodulo=\"14\"]:before{content:\"PlugPlay API\";background-color:#660345;color:#fff}.historico-modulo[data-motelplusmodulo=\"15\"]:before{content:\"ToHospedado\";background-color:#b9296c;color:#fff}.historico-modulo[data-motelplusmodulo=\"16\"]:before{content:\"F9\";background-color:#222120;color:#fff}.historico-modulo[data-motelplusmodulo=\"17\"]:before{content:\"Estoque Web\";background-color:#a85e09;color:#fff}\n"], dependencies: [{ kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$2.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"] }, { kind: "component", type: i7$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "pipe", type: i6.DatePipe, name: "date" }] });
3021
3023
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: ProdutosHistoryComponent, decorators: [{
3022
3024
  type: Component,
3023
- args: [{ selector: 'lib-produtos-history', template: "<div class=\"ox-header\">\n <h2 class=\"titulo\">Hist\u00F3rico do Produto '{{model.id}}'</h2>\n <button mat-icon-button [mat-dialog-close]>\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div class=\"result-container\" *ngIf=\"items\">\n <div class=\"reservas-container\">\n <h4 *ngIf=\"items.length === 0\" class=\"nenhum-item-msg\">Nenhum registro para ser exibido</h4>\n <div (click)=\"abreCadastro(item)\" class=\"historico-item\" *ngFor=\"let item of items\">\n <div class=\"historico-icon\">\n <i class=\"material-icons\">history</i>\n </div>\n <div class=\"historico-content\">\n <p class=\"historico-date\">{{ item.startTime | date:'EEE dd/MM/yy HH:mm' }} - {{ item.endTime | date:'EEE dd/MM/yy HH:mm' }}</p>\n <p class=\"historico-user\">{{ item.usuarioLogin }}</p>\n <p class=\"historico-modulo\">{{ item.modulo }}</p>\n </div>\n </div>\n </div>\n</div>", styles: [":host{background:#fafafa;display:flex;flex-direction:column;height:100%;max-height:99vh;position:relative}.reservas-container{display:flex;flex-direction:column}.historico-item{display:flex;align-items:center;padding:10px;border-bottom:1px solid #ccc;font-family:Open Sans,sans-serif;background-color:#fff;cursor:pointer}.historico-item:hover{background-color:var(--item-card-selected-bg)}.historico-icon{font-size:24px;color:#39b7ab;margin-right:32px}.historico-content{flex:1;display:flex;flex-direction:column;gap:4px}.historico-date{margin:0;font-weight:500}.historico-user{margin:0;color:purple}.historico-modulo{margin:0;font-style:italic;color:#666;font-size:small}\n"] }]
3025
+ args: [{ selector: 'lib-produtos-history', template: "<div class=\"ox-header\">\n <h2 class=\"titulo\">Hist\u00F3rico do Produto '{{model.id}}'</h2>\n <button mat-icon-button [mat-dialog-close]>\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div class=\"result-container\" *ngIf=\"items\">\n <div class=\"reservas-container\">\n <h4 *ngIf=\"items.length === 0\" class=\"nenhum-item-msg\">Nenhum registro para ser exibido</h4>\n <div (click)=\"abreCadastro(item)\" class=\"historico-item\" *ngFor=\"let item of items\">\n <div class=\"historico-icon\">\n <i class=\"material-icons\">history</i>\n </div>\n <div class=\"historico-content\">\n <p class=\"historico-date\">{{ item.startTime | date:'EEE dd/MM/yy HH:mm' }} - {{ item.endTime | date:'EEE dd/MM/yy HH:mm' }}</p>\n <p class=\"historico-user\">{{ item.usuarioLogin }}</p>\n <p class=\"historico-modulo\" [attr.data-motelplusmodulo]=\"item.modulo\"></p>\n </div>\n </div>\n </div>\n</div>", styles: ["@charset \"UTF-8\";:host{background:#fafafa;display:flex;flex-direction:column;height:100%;max-height:99vh;position:relative}.reservas-container{display:flex;flex-direction:column}.historico-item{display:flex;align-items:center;padding:10px;border-bottom:1px solid #ccc;font-family:Open Sans,sans-serif;background-color:#fff;cursor:pointer}.historico-item:hover{background-color:var(--item-card-selected-bg)}.historico-icon{font-size:24px;color:#39b7ab;margin-right:32px}.historico-content{flex:1;display:flex;flex-direction:column;gap:4px}.historico-date{margin:0;font-weight:500;font-size:smaller}.historico-user{margin:0;color:purple}.historico-modulo{margin:0;font-size:xx-small;padding:3px 8px;border-radius:7px;align-self:end;background-color:#95a5a6;content:\"--\"}.historico-modulo[data-motelplusmodulo=\"0\"]:before{content:\"Administrativo\";background-color:#3498db;color:#fff}.historico-modulo[data-motelplusmodulo=\"1\"]:before{content:\"Administrativo Online\";background-color:#e74c3c;color:#fff}.historico-modulo[data-motelplusmodulo=\"2\"]:before{content:\"Gerencial\";background-color:#2ecc71;color:#fff}.historico-modulo[data-motelplusmodulo=\"3\"]:before{content:\"Gerencial Online\";background-color:#2ecc71;color:#fff}.historico-modulo[data-motelplusmodulo=\"4\"]:before{content:\"Estoque\";background-color:#9b59b6;color:#fff}.historico-modulo[data-motelplusmodulo=\"5\"]:before{content:\"Estoque Online\";background-color:#f39c12;color:#fff}.historico-modulo[data-motelplusmodulo=\"6\"]:before{content:\"Finan\\e7 as\";background-color:#004caf;color:#fff}.historico-modulo[data-motelplusmodulo=\"7\"]:before{content:\"Finan\\e7 as Online\";background-color:#004caf;color:#fff}.historico-modulo[data-motelplusmodulo=\"8\"]:before{content:\"Recep\\e7\\e3o\";background-color:#e91313;color:#fff}.historico-modulo[data-motelplusmodulo=\"9\"]:before{content:\"Configura\\e7\\f5 es\";background-color:#95a5a6;color:#fff}.historico-modulo[data-motelplusmodulo=\"10\"]:before{content:\"Gerencial Web\";background-color:#d35400;color:#fff}.historico-modulo[data-motelplusmodulo=\"11\"]:before{content:\"Gerencial Mobile\";background-color:#44ad85;color:#fff}.historico-modulo[data-motelplusmodulo=\"12\"]:before{content:\"Finan\\e7 as Web\";background-color:#0879eb;color:#fff}.historico-modulo[data-motelplusmodulo=\"13\"]:before{content:\"Assist Mobile\";background-color:#f39c12;color:#fff}.historico-modulo[data-motelplusmodulo=\"14\"]:before{content:\"PlugPlay API\";background-color:#660345;color:#fff}.historico-modulo[data-motelplusmodulo=\"15\"]:before{content:\"ToHospedado\";background-color:#b9296c;color:#fff}.historico-modulo[data-motelplusmodulo=\"16\"]:before{content:\"F9\";background-color:#222120;color:#fff}.historico-modulo[data-motelplusmodulo=\"17\"]:before{content:\"Estoque Web\";background-color:#a85e09;color:#fff}\n"] }]
3024
3026
  }], ctorParameters: function () { return [{ type: CommonWebService }, { type: NotificationService }, { type: undefined, decorators: [{
3025
3027
  type: Inject,
3026
3028
  args: [MAT_DIALOG_DATA]
3027
- }] }, { type: i3.MatDialog }, { type: i0.ElementRef }, { type: i3.MatDialogRef }, { type: ScreenHelperService }]; } });
3029
+ }] }, { type: i3.MatDialog }, { type: AuthDataService }, { type: i0.ElementRef }, { type: i3.MatDialogRef }, { type: ScreenHelperService }]; } });
3028
3030
 
3029
3031
  class ProdutoEditDialogComponent {
3030
3032
  constructor(ws, notification, dataDialog, dialog, elRef, dialogRef, screenHelper) {