oxpi-nglib 0.0.4 → 0.0.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.
Files changed (61) hide show
  1. package/esm2020/lib/controls/image-viewer/image-viewer.component.mjs +5 -4
  2. package/esm2020/lib/controls/month-year-picker/month-year-picker.component.mjs +4 -3
  3. package/esm2020/lib/controls/numeric-picker/numeric-picker.component.mjs +5 -4
  4. package/esm2020/lib/controls/paginator/paginator.component.mjs +4 -3
  5. package/esm2020/lib/models/entidades/login-item.mjs +2 -0
  6. package/esm2020/lib/models/entidades/login-result.mjs +2 -0
  7. package/esm2020/lib/models/entidades/permissoes.mjs +2 -0
  8. package/esm2020/lib/models/entidades/sensores-def.mjs +2 -0
  9. package/esm2020/lib/models/entidades/usuario.mjs +2 -0
  10. package/esm2020/lib/models/infra/busy-state.mjs +18 -0
  11. package/esm2020/lib/models/infra/lazy-trigger.mjs +13 -0
  12. package/esm2020/lib/models/infra/number-parser.mjs +62 -0
  13. package/esm2020/lib/models/infra/ordem.mjs +17 -0
  14. package/esm2020/lib/models/infra/paging-result.mjs +2 -0
  15. package/esm2020/lib/models/infra/utils-methods.mjs +15 -0
  16. package/esm2020/lib/models/infra/validations.mjs +14 -0
  17. package/esm2020/lib/models/settings/PagamentoRecebimentoSearchSetting.mjs +9 -0
  18. package/esm2020/lib/models/settings/consumo-produto-search-setting.mjs +15 -0
  19. package/esm2020/lib/models/settings/duplicata-search-setting.mjs +13 -0
  20. package/esm2020/lib/models/settings/ocupacao-filter-setting.mjs +14 -0
  21. package/esm2020/lib/models/settings/ocupacao-search-setting.mjs +26 -0
  22. package/esm2020/lib/models/settings/search-setting.mjs +67 -0
  23. package/esm2020/lib/models/settings/suites-intervencoes-setting.mjs +4 -0
  24. package/esm2020/lib/oxpi-nglib.module.mjs +10 -1
  25. package/esm2020/lib/providers/export.file.service.mjs +28 -0
  26. package/esm2020/lib/providers/focus.service.mjs +70 -0
  27. package/esm2020/lib/providers/preference.service.mjs +42 -0
  28. package/esm2020/lib/providers/safe-html.pipe.mjs +20 -0
  29. package/esm2020/lib/providers/screen-helper.service.mjs +54 -0
  30. package/esm2020/public-api.mjs +25 -1
  31. package/fesm2015/oxpi-nglib.mjs +506 -11
  32. package/fesm2015/oxpi-nglib.mjs.map +1 -1
  33. package/fesm2020/oxpi-nglib.mjs +506 -11
  34. package/fesm2020/oxpi-nglib.mjs.map +1 -1
  35. package/lib/models/entidades/login-item.d.ts +6 -0
  36. package/lib/models/entidades/login-result.d.ts +13 -0
  37. package/lib/models/entidades/permissoes.d.ts +181 -0
  38. package/lib/models/entidades/sensores-def.d.ts +6 -0
  39. package/lib/models/entidades/usuario.d.ts +27 -0
  40. package/lib/models/infra/busy-state.d.ts +6 -0
  41. package/lib/models/infra/lazy-trigger.d.ts +7 -0
  42. package/lib/models/infra/number-parser.d.ts +14 -0
  43. package/lib/models/infra/ordem.d.ts +13 -0
  44. package/lib/models/infra/paging-result.d.ts +7 -0
  45. package/lib/models/infra/utils-methods.d.ts +3 -0
  46. package/lib/models/infra/validations.d.ts +3 -0
  47. package/lib/models/settings/PagamentoRecebimentoSearchSetting.d.ts +6 -0
  48. package/lib/models/settings/consumo-produto-search-setting.d.ts +14 -0
  49. package/lib/models/settings/duplicata-search-setting.d.ts +12 -0
  50. package/lib/models/settings/ocupacao-filter-setting.d.ts +13 -0
  51. package/lib/models/settings/ocupacao-search-setting.d.ts +45 -0
  52. package/lib/models/settings/search-setting.d.ts +27 -0
  53. package/lib/models/settings/suites-intervencoes-setting.d.ts +6 -0
  54. package/lib/oxpi-nglib.module.d.ts +6 -2
  55. package/lib/providers/export.file.service.d.ts +10 -0
  56. package/lib/providers/focus.service.d.ts +14 -0
  57. package/lib/providers/preference.service.d.ts +11 -0
  58. package/lib/providers/safe-html.pipe.d.ts +10 -0
  59. package/lib/providers/screen-helper.service.d.ts +16 -0
  60. package/package.json +1 -1
  61. package/public-api.d.ts +24 -0
@@ -1,12 +1,16 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, EventEmitter, Output, HostListener, NgModule } from '@angular/core';
3
- import * as i2 from '@angular/common';
4
- import * as i1 from '@angular/material/icon';
2
+ import { Component, Input, EventEmitter, Output, HostListener, NgModule, Injectable, Pipe } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import * as i1$1 from '@angular/material/button';
5
+ import { MatButtonModule } from '@angular/material/button';
6
+ import * as i2 from '@angular/material/icon';
5
7
  import { MatIconModule } from '@angular/material/icon';
6
- import * as i2$1 from '@angular/forms';
8
+ import * as i3 from '@angular/forms';
7
9
  import { FormsModule } from '@angular/forms';
8
10
  import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
11
+ import * as i1$2 from '@angular/platform-browser';
9
12
  import { BrowserModule } from '@angular/platform-browser';
13
+ import * as FileSaver from 'file-saver';
10
14
 
11
15
  class BusyIndicatorComponent {
12
16
  constructor() {
@@ -16,7 +20,7 @@ class BusyIndicatorComponent {
16
20
  }
17
21
  }
18
22
  BusyIndicatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BusyIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
- BusyIndicatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: BusyIndicatorComponent, selector: "ox-busy-indicator", inputs: { isBusy: "isBusy" }, ngImport: i0, template: "<div class=\"busy-indicator-container\" *ngIf=\"isBusy\">\n <div class=\"busy-indicator\"></div>\n</div>", styles: [".busy-indicator-container{position:fixed;left:50%;top:35%;text-align:center;z-index:1000;margin-left:-47px;background:white;border-radius:8px;padding:20px;border:solid 2px transparent;background-clip:padding-box;box-shadow:10px 10px 10px #2e364414}.busy-indicator{border:10px solid #e2e2e2;border-top:10px solid var(--app-color, black);border-radius:50%;width:50px;height:50px;animation:spin .5s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
23
+ BusyIndicatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: BusyIndicatorComponent, selector: "ox-busy-indicator", inputs: { isBusy: "isBusy" }, ngImport: i0, template: "<div class=\"busy-indicator-container\" *ngIf=\"isBusy\">\n <div class=\"busy-indicator\"></div>\n</div>", styles: [".busy-indicator-container{position:fixed;left:50%;top:35%;text-align:center;z-index:1000;margin-left:-47px;background:white;border-radius:8px;padding:20px;border:solid 2px transparent;background-clip:padding-box;box-shadow:10px 10px 10px #2e364414}.busy-indicator{border:10px solid #e2e2e2;border-top:10px solid var(--app-color, black);border-radius:50%;width:50px;height:50px;animation:spin .5s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
20
24
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BusyIndicatorComponent, decorators: [{
21
25
  type: Component,
22
26
  args: [{ selector: 'ox-busy-indicator', template: "<div class=\"busy-indicator-container\" *ngIf=\"isBusy\">\n <div class=\"busy-indicator\"></div>\n</div>", styles: [".busy-indicator-container{position:fixed;left:50%;top:35%;text-align:center;z-index:1000;margin-left:-47px;background:white;border-radius:8px;padding:20px;border:solid 2px transparent;background-clip:padding-box;box-shadow:10px 10px 10px #2e364414}.busy-indicator{border:10px solid #e2e2e2;border-top:10px solid var(--app-color, black);border-radius:50%;width:50px;height:50px;animation:spin .5s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
@@ -108,7 +112,7 @@ class ImageViewerComponent {
108
112
  }
109
113
  }
110
114
  ImageViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ImageViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
111
- ImageViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: ImageViewerComponent, selector: "ox-image-viewer", inputs: { info: "info", infos: "infos", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0, template: "<div class=\"image-fullsize\" *ngIf=\"isOpen\">\n <div class=\"titulo\">\n {{info?.titulo}}\n </div>\n <div class=\"img-container\" (click)=\"isOpen = !isOpen\">\n <img class=\"image\" *ngIf=\"info\" [src]=\"info?.url\" />\n </div>\n <div class=\"action-bar\" *ngIf=\"infos\">\n <button (click)=\"goBack()\" [disabled]=\"disableBack\" mat-icon-button>\n <mat-icon>chevron_left</mat-icon>\n </button>\n <span class=\"picker-text\">\n {{paginaAtual}}/{{infos?.length}}\n </span>\n <button (click)=\"goNext()\" [disabled]=\"disableNext\" mat-icon-button>\n <mat-icon>chevron_right</mat-icon>\n </button>\n </div>\n</div>\n", styles: [".image-fullsize{position:absolute;left:0;top:0;background:rgba(0,0,0,.8);width:100%;height:100%;display:flex;flex-flow:column}.titulo{color:#fff;text-align:center;padding:16px;font-size:large;font-weight:300}.action-bar{background:linear-gradient(135deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.9) 50%,rgba(0,0,0,.8) 100%);color:#fff;padding:8px}.img-container{flex-grow:1;display:flex;justify-content:center;align-items:center}.image{box-shadow:0 5px 35px #000000a6;max-width:100%;height:auto}\n"], components: [{ type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
115
+ ImageViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: ImageViewerComponent, selector: "ox-image-viewer", inputs: { info: "info", infos: "infos", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0, template: "<div class=\"image-fullsize\" *ngIf=\"isOpen\">\n <div class=\"titulo\">\n {{info?.titulo}}\n </div>\n <div class=\"img-container\" (click)=\"isOpen = !isOpen\">\n <img class=\"image\" *ngIf=\"info\" [src]=\"info?.url\" />\n </div>\n <div class=\"action-bar\" *ngIf=\"infos\">\n <button (click)=\"goBack()\" [disabled]=\"disableBack\" mat-icon-button>\n <mat-icon>chevron_left</mat-icon>\n </button>\n <span class=\"picker-text\">\n {{paginaAtual}}/{{infos?.length}}\n </span>\n <button (click)=\"goNext()\" [disabled]=\"disableNext\" mat-icon-button>\n <mat-icon>chevron_right</mat-icon>\n </button>\n </div>\n</div>\n", styles: [".image-fullsize{position:absolute;left:0;top:0;background:rgba(0,0,0,.8);width:100%;height:100%;display:flex;flex-flow:column}.titulo{color:#fff;text-align:center;padding:16px;font-size:large;font-weight:300}.action-bar{background:linear-gradient(135deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.9) 50%,rgba(0,0,0,.8) 100%);color:#fff;padding:8px}.img-container{flex-grow:1;display:flex;justify-content:center;align-items:center}.image{box-shadow:0 5px 35px #000000a6;max-width:100%;height:auto}\n"], components: [{ type: i1$1.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"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
112
116
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ImageViewerComponent, decorators: [{
113
117
  type: Component,
114
118
  args: [{ selector: 'ox-image-viewer', template: "<div class=\"image-fullsize\" *ngIf=\"isOpen\">\n <div class=\"titulo\">\n {{info?.titulo}}\n </div>\n <div class=\"img-container\" (click)=\"isOpen = !isOpen\">\n <img class=\"image\" *ngIf=\"info\" [src]=\"info?.url\" />\n </div>\n <div class=\"action-bar\" *ngIf=\"infos\">\n <button (click)=\"goBack()\" [disabled]=\"disableBack\" mat-icon-button>\n <mat-icon>chevron_left</mat-icon>\n </button>\n <span class=\"picker-text\">\n {{paginaAtual}}/{{infos?.length}}\n </span>\n <button (click)=\"goNext()\" [disabled]=\"disableNext\" mat-icon-button>\n <mat-icon>chevron_right</mat-icon>\n </button>\n </div>\n</div>\n", styles: [".image-fullsize{position:absolute;left:0;top:0;background:rgba(0,0,0,.8);width:100%;height:100%;display:flex;flex-flow:column}.titulo{color:#fff;text-align:center;padding:16px;font-size:large;font-weight:300}.action-bar{background:linear-gradient(135deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.9) 50%,rgba(0,0,0,.8) 100%);color:#fff;padding:8px}.img-container{flex-grow:1;display:flex;justify-content:center;align-items:center}.image{box-shadow:0 5px 35px #000000a6;max-width:100%;height:auto}\n"] }]
@@ -226,7 +230,7 @@ class MonthYearPickerComponent {
226
230
  }
227
231
  }
228
232
  MonthYearPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonthYearPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
229
- MonthYearPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MonthYearPickerComponent, selector: "ox-month-year-picker", inputs: { blockFuture: "blockFuture", modoAnual: "modoAnual", ano: "ano", mes: "mes" }, outputs: { anoChange: "anoChange", mesChange: "mesChange", changed: "changed" }, ngImport: i0, template: "<div class=\"picker-container\">\n <div>\n <button mat-icon-button (click)=\"goBack()\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n </div>\n <span class=\"picker-text\">\n {{text}}\n </span>\n <div>\n <button mat-icon-button (click)=\"goNext()\" [disabled]=\"disableNext\" >\n <mat-icon>chevron_right</mat-icon>\n </button>\n </div>\n</div>", styles: [".picker-container{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;min-width:250px}.picker-text{flex-flow:1;flex-grow:1;text-align:center;font-weight:700}\n"], components: [{ type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
233
+ MonthYearPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MonthYearPickerComponent, selector: "ox-month-year-picker", inputs: { blockFuture: "blockFuture", modoAnual: "modoAnual", ano: "ano", mes: "mes" }, outputs: { anoChange: "anoChange", mesChange: "mesChange", changed: "changed" }, ngImport: i0, template: "<div class=\"picker-container\">\n <div>\n <button mat-icon-button (click)=\"goBack()\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n </div>\n <span class=\"picker-text\">\n {{text}}\n </span>\n <div>\n <button mat-icon-button (click)=\"goNext()\" [disabled]=\"disableNext\" >\n <mat-icon>chevron_right</mat-icon>\n </button>\n </div>\n</div>", styles: [".picker-container{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;min-width:250px}.picker-text{flex-flow:1;flex-grow:1;text-align:center;font-weight:700}\n"], components: [{ type: i1$1.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"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
230
234
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonthYearPickerComponent, decorators: [{
231
235
  type: Component,
232
236
  args: [{ selector: 'ox-month-year-picker', template: "<div class=\"picker-container\">\n <div>\n <button mat-icon-button (click)=\"goBack()\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n </div>\n <span class=\"picker-text\">\n {{text}}\n </span>\n <div>\n <button mat-icon-button (click)=\"goNext()\" [disabled]=\"disableNext\" >\n <mat-icon>chevron_right</mat-icon>\n </button>\n </div>\n</div>", styles: [".picker-container{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;min-width:250px}.picker-text{flex-flow:1;flex-grow:1;text-align:center;font-weight:700}\n"] }]
@@ -327,7 +331,7 @@ class NumericPickerComponent {
327
331
  }
328
332
  }
329
333
  NumericPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NumericPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
330
- NumericPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: NumericPickerComponent, selector: "ox-numeric-picker", inputs: { value: "value", max: "max", min: "min" }, outputs: { valueChange: "valueChange", change: "change" }, ngImport: i0, template: "<div>\n <button mat-icon-button (click)=\"goBack()\" [disabled]=\"disableBack\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n</div>\n<input [(ngModel)]=\"text\" (change)=\"onTextEdit($event)\" class=\"date\">\n<div>\n <button mat-icon-button (click)=\"goNext()\" [disabled]=\"disableNext\" >\n <mat-icon>chevron_right</mat-icon>\n </button>\n</div>", styles: [":host{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;min-width:60px}\n"], components: [{ type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
334
+ NumericPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: NumericPickerComponent, selector: "ox-numeric-picker", inputs: { value: "value", max: "max", min: "min" }, outputs: { valueChange: "valueChange", change: "change" }, ngImport: i0, template: "<div>\n <button mat-icon-button (click)=\"goBack()\" [disabled]=\"disableBack\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n</div>\n<input [(ngModel)]=\"text\" (change)=\"onTextEdit($event)\" class=\"date\">\n<div>\n <button mat-icon-button (click)=\"goNext()\" [disabled]=\"disableNext\" >\n <mat-icon>chevron_right</mat-icon>\n </button>\n</div>", styles: [":host{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;min-width:60px}\n"], components: [{ type: i1$1.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"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
331
335
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NumericPickerComponent, decorators: [{
332
336
  type: Component,
333
337
  args: [{ selector: 'ox-numeric-picker', template: "<div>\n <button mat-icon-button (click)=\"goBack()\" [disabled]=\"disableBack\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n</div>\n<input [(ngModel)]=\"text\" (change)=\"onTextEdit($event)\" class=\"date\">\n<div>\n <button mat-icon-button (click)=\"goNext()\" [disabled]=\"disableNext\" >\n <mat-icon>chevron_right</mat-icon>\n </button>\n</div>", styles: [":host{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;min-width:60px}\n"] }]
@@ -391,7 +395,7 @@ class PaginatorComponent {
391
395
  }
392
396
  }
393
397
  PaginatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: PaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
394
- PaginatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: PaginatorComponent, selector: "ox-paginator", inputs: { pageSize: "pageSize", paginaAtual: "paginaAtual", totalPaginas: "totalPaginas" }, outputs: { paginaAtualChange: "paginaAtualChange", totalPaginasChange: "totalPaginasChange", change: "change" }, ngImport: i0, template: "<button [disabled]=\"inicio\" mat-icon-button (click)=\"goBack()\">\n <mat-icon>chevron_left</mat-icon>\n</button>\n<span class=\"picker-text\">\n {{paginaAtual}}/{{totalPaginas}}\n</span>\n<button [disabled]=\"fim\" mat-icon-button (click)=\"goNext()\">\n <mat-icon>chevron_right</mat-icon>\n</button>\n", styles: [":host{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;flex-wrap:nowrap}.picker-text{flex-flow:1;flex-grow:1;text-align:center}\n"], components: [{ type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
398
+ PaginatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: PaginatorComponent, selector: "ox-paginator", inputs: { pageSize: "pageSize", paginaAtual: "paginaAtual", totalPaginas: "totalPaginas" }, outputs: { paginaAtualChange: "paginaAtualChange", totalPaginasChange: "totalPaginasChange", change: "change" }, ngImport: i0, template: "<button [disabled]=\"inicio\" mat-icon-button (click)=\"goBack()\">\n <mat-icon>chevron_left</mat-icon>\n</button>\n<span class=\"picker-text\">\n {{paginaAtual}}/{{totalPaginas}}\n</span>\n<button [disabled]=\"fim\" mat-icon-button (click)=\"goNext()\">\n <mat-icon>chevron_right</mat-icon>\n</button>\n", styles: [":host{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;flex-wrap:nowrap}.picker-text{flex-flow:1;flex-grow:1;text-align:center}\n"], components: [{ type: i1$1.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"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
395
399
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: PaginatorComponent, decorators: [{
396
400
  type: Component,
397
401
  args: [{ selector: 'ox-paginator', template: "<button [disabled]=\"inicio\" mat-icon-button (click)=\"goBack()\">\n <mat-icon>chevron_left</mat-icon>\n</button>\n<span class=\"picker-text\">\n {{paginaAtual}}/{{totalPaginas}}\n</span>\n<button [disabled]=\"fim\" mat-icon-button (click)=\"goNext()\">\n <mat-icon>chevron_right</mat-icon>\n</button>\n", styles: [":host{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;flex-wrap:nowrap}.picker-text{flex-flow:1;flex-grow:1;text-align:center}\n"] }]
@@ -433,7 +437,7 @@ class RadioButtonGroupComponent {
433
437
  }
434
438
  }
435
439
  RadioButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
436
- RadioButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: RadioButtonGroupComponent, selector: "ox-radio-button-group", inputs: { selectedItem: "selectedItem", items: "items" }, outputs: { change: "change" }, ngImport: i0, template: "<ox-check-button [radioBehavior]=\"true\" (changed)=\"raiseChange(item)\" [checked]=\"item == selectedItem\" *ngFor=\"let item of items\">\n {{item.name}}\n</ox-check-button>", styles: [":host>:first-child{border-radius:4px 0 0 4px}:host>:last-child{border-radius:0 4px 4px 0}\n"], components: [{ type: CheckButtonComponent, selector: "ox-check-button", inputs: ["checked", "radioBehavior"], outputs: ["changed"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
440
+ RadioButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: RadioButtonGroupComponent, selector: "ox-radio-button-group", inputs: { selectedItem: "selectedItem", items: "items" }, outputs: { change: "change" }, ngImport: i0, template: "<ox-check-button [radioBehavior]=\"true\" (changed)=\"raiseChange(item)\" [checked]=\"item == selectedItem\" *ngFor=\"let item of items\">\n {{item.name}}\n</ox-check-button>", styles: [":host>:first-child{border-radius:4px 0 0 4px}:host>:last-child{border-radius:0 4px 4px 0}\n"], components: [{ type: CheckButtonComponent, selector: "ox-check-button", inputs: ["checked", "radioBehavior"], outputs: ["changed"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
437
441
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioButtonGroupComponent, decorators: [{
438
442
  type: Component,
439
443
  args: [{ selector: 'ox-radio-button-group', template: "<ox-check-button [radioBehavior]=\"true\" (changed)=\"raiseChange(item)\" [checked]=\"item == selectedItem\" *ngFor=\"let item of items\">\n {{item.name}}\n</ox-check-button>", styles: [":host>:first-child{border-radius:4px 0 0 4px}:host>:last-child{border-radius:0 4px 4px 0}\n"] }]
@@ -450,6 +454,11 @@ Array.prototype.firstOrNull = function () {
450
454
  return this[0];
451
455
  return null;
452
456
  };
457
+ Date.prototype.addDays = function (days) {
458
+ var result = new Date(this);
459
+ result.setDate(result.getDate() + days);
460
+ return result;
461
+ };
453
462
  class OxpiNglibModule {
454
463
  }
455
464
  OxpiNglibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -462,6 +471,7 @@ OxpiNglibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
462
471
  RadioButtonGroupComponent], imports: [BrowserModule,
463
472
  BrowserAnimationsModule,
464
473
  FormsModule,
474
+ MatButtonModule,
465
475
  MatIconModule], exports: [BusyIndicatorComponent,
466
476
  MonthYearPickerComponent,
467
477
  ImageViewerComponent,
@@ -473,6 +483,7 @@ OxpiNglibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version
473
483
  BrowserModule,
474
484
  BrowserAnimationsModule,
475
485
  FormsModule,
486
+ MatButtonModule,
476
487
  MatIconModule,
477
488
  ]] });
478
489
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, decorators: [{
@@ -491,6 +502,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
491
502
  BrowserModule,
492
503
  BrowserAnimationsModule,
493
504
  FormsModule,
505
+ MatButtonModule,
494
506
  MatIconModule,
495
507
  ],
496
508
  exports: [
@@ -505,6 +517,489 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
505
517
  }]
506
518
  }] });
507
519
 
520
+ class BusyState {
521
+ constructor() {
522
+ this.isBusy = false;
523
+ this.counter = 0;
524
+ }
525
+ show() {
526
+ this.counter++;
527
+ this.isBusy = true;
528
+ }
529
+ hide() {
530
+ this.counter--;
531
+ if (this.counter < 0)
532
+ this.counter = 0;
533
+ if (this.counter == 0)
534
+ this.isBusy = false;
535
+ }
536
+ }
537
+
538
+ class LazyTrigger {
539
+ constructor(doFunc, timeout = 800) {
540
+ this.doFunc = doFunc;
541
+ this.timeout = timeout;
542
+ }
543
+ fire() {
544
+ console.debug("lazyTimeoutId");
545
+ if (this.lazyTimeoutId != undefined)
546
+ clearTimeout(this.lazyTimeoutId);
547
+ this.lazyTimeoutId = window.setTimeout(() => { this.doFunc(); }, this.timeout);
548
+ }
549
+ }
550
+
551
+ class NumberParser {
552
+ constructor(setPropFunc, getPropFunc, min, max) {
553
+ this.setPropFunc = setPropFunc;
554
+ this.getPropFunc = getPropFunc;
555
+ this.min = min;
556
+ this.max = max;
557
+ this.parsed = false;
558
+ this._parseTrigger = new LazyTrigger(() => this.parseValor());
559
+ }
560
+ parse(vlr) {
561
+ this.valor = vlr;
562
+ this.parsed = false;
563
+ this._parseTrigger.fire();
564
+ }
565
+ checkout() {
566
+ if (this.parsed || !this.valor)
567
+ return;
568
+ this.parseValor();
569
+ }
570
+ parseValor() {
571
+ if (this.valor === undefined)
572
+ return;
573
+ this.parsed = true;
574
+ const vlrTxt = this.valor.split(",").join(".");
575
+ ;
576
+ const spTxt = vlrTxt.split(".");
577
+ let toParseTxt = "";
578
+ if (spTxt.length > 2) {
579
+ const chars = vlrTxt.split("");
580
+ const lastIndex = vlrTxt.lastIndexOf(".");
581
+ for (let i = 0; i < chars.length; i++) {
582
+ const c = chars[i];
583
+ if (c === "." && i != lastIndex)
584
+ continue;
585
+ toParseTxt = toParseTxt.concat(c);
586
+ }
587
+ }
588
+ else {
589
+ toParseTxt = vlrTxt;
590
+ }
591
+ const vlr = parseFloat(toParseTxt);
592
+ if (isNaN(vlr) || !this.validaMinMax(vlr)) {
593
+ const original = this.getPropFunc();
594
+ this.setPropFunc(0);
595
+ setTimeout(() => this.setPropFunc(original));
596
+ }
597
+ else {
598
+ this.setPropFunc(vlr);
599
+ }
600
+ }
601
+ validaMinMax(value) {
602
+ if ((this.min === undefined) && this.max === undefined)
603
+ return true;
604
+ if (!(this.min === undefined) && value < this.min)
605
+ return false;
606
+ if (!(this.max === undefined) && value > this.max)
607
+ return false;
608
+ return true;
609
+ }
610
+ }
611
+
612
+ class Ordem {
613
+ constructor(ordens, isCrescente, onToggle) {
614
+ const d = ordens.filter(x => x.default === true).firstOrNull();
615
+ this.colName = d === null ? ordens[0].value : d.value;
616
+ this.isCrescente = isCrescente;
617
+ this.onToggle = onToggle;
618
+ }
619
+ toggle() {
620
+ this.isCrescente = !this.isCrescente;
621
+ if (this.onToggle !== undefined)
622
+ this.onToggle();
623
+ }
624
+ toString() {
625
+ return this.colName + (!this.isCrescente ? " desc" : "");
626
+ }
627
+ }
628
+
629
+ function printTxt(txt) {
630
+ const r = "<!doctype html><head><meta charset=\"utf-8\"></head><body><div style='font-family: \"Courier New\", Courier, monospace; white-space: pre-wrap;color: black;font-weight: bold;word-wrap: break-word;word-break: break-all;overflow-wrap: break-word;'>" + txt + '</div></body>';
631
+ printHtml(r);
632
+ }
633
+ function printHtml(r) {
634
+ const blob = new Blob([r], { type: 'text/html' });
635
+ const url = window.URL.createObjectURL(blob);
636
+ const w = window.open(url, '_blank');
637
+ if (w != null)
638
+ w.print();
639
+ }
640
+ function selectText(ev) {
641
+ ev.target.select();
642
+ }
643
+
644
+ function valTextEmpty(v) {
645
+ return v === null ||
646
+ v === undefined ||
647
+ v.trim() === '';
648
+ }
649
+ function valTextMax(v, max) {
650
+ return v.length > max;
651
+ }
652
+ function valNumberMin(v, min) {
653
+ if (v === null || v === undefined)
654
+ return true;
655
+ return v <= min;
656
+ }
657
+
658
+ class SearchSetting {
659
+ constructor(propChanged) {
660
+ this.propChanged = propChanged;
661
+ this._meses = ["JANEIRO", "FEVEREIRO", "MARÇO", "ABRIL", "MAIO", "JUNHO", "JULHO", "AGOSTO", "SETEMBRO", "OUTUBRO", "NOVEMBRO", "DEZEMBRO"];
662
+ this._mesesShort = ["JAN", "FEV", "MAR", "ABR", "MAI", "JUN", "JUL", "AGO", "SET", "OUT", "NOV", "DEZ"];
663
+ const now = new Date();
664
+ const hj = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0, 0);
665
+ console.info(hj);
666
+ this.modo = SearchMode.Mensal;
667
+ this.mes = hj.getMonth() + 1;
668
+ this.ano = hj.getFullYear();
669
+ this.inicial = hj.addDays(-30);
670
+ this.final = hj;
671
+ }
672
+ set(prop, value) {
673
+ const me = this;
674
+ me[prop] = value;
675
+ if (this.propChanged !== undefined)
676
+ this.propChanged();
677
+ }
678
+ toStringArquivo() {
679
+ const ini = this.inicial;
680
+ const fim = this.final;
681
+ if (this.modo === SearchMode.Mensal)
682
+ return this.ano + "_" + this.mes;
683
+ if (this.modo === SearchMode.Anual)
684
+ return "" + this.ano;
685
+ if (this.modo === SearchMode.Diario)
686
+ return `${ini.getDate()}_${ini.getMonth() + 1}_${ini.getFullYear()}`;
687
+ return `${ini.getDate()}_${ini.getMonth() + 1}_${ini.getFullYear()}_ate_${fim.getDate()}_${fim.getMonth() + 1}_${fim.getFullYear()}`;
688
+ }
689
+ getDatasTexto(short = false) {
690
+ const ini = this.inicial;
691
+ const fim = this.final;
692
+ if (this.modo === SearchMode.Mensal && short)
693
+ return this._mesesShort[this.mes - 1] + " DE " + this.ano;
694
+ if (this.modo === SearchMode.Mensal)
695
+ return this._meses[this.mes - 1] + " DE " + this.ano;
696
+ if (this.modo === SearchMode.Anual)
697
+ return "" + this.ano;
698
+ if (this.modo === SearchMode.Diario)
699
+ return `${ini.getDate()}/${ini.getMonth() + 1}/${ini.getFullYear()}`;
700
+ return `${ini.getDate()}/${ini.getMonth() + 1}/${ini.getFullYear()} ATÉ ${fim.getDate()}/${fim.getMonth() + 1}/${fim.getFullYear()}`;
701
+ }
702
+ goNextMonth() {
703
+ this.mes++;
704
+ if (this.mes > 12) {
705
+ this.mes = 1;
706
+ this.ano += 1;
707
+ }
708
+ }
709
+ goBackMonth() {
710
+ this.mes--;
711
+ if (this.mes < 1) {
712
+ this.mes = 12;
713
+ this.ano -= 1;
714
+ }
715
+ }
716
+ }
717
+ var SearchMode;
718
+ (function (SearchMode) {
719
+ SearchMode[SearchMode["Mensal"] = 0] = "Mensal";
720
+ SearchMode[SearchMode["Anual"] = 1] = "Anual";
721
+ SearchMode[SearchMode["Periodo"] = 2] = "Periodo";
722
+ SearchMode[SearchMode["Diario"] = 3] = "Diario";
723
+ })(SearchMode || (SearchMode = {}));
724
+
725
+ class PagamentoRecebimentoSearchSetting extends SearchSetting {
726
+ constructor() {
727
+ super();
728
+ this.exibirPagamentos = true;
729
+ this.exibirRecebimentos = true;
730
+ }
731
+ }
732
+
733
+ class OcupacaoFilterSetting extends SearchSetting {
734
+ constructor() {
735
+ super();
736
+ this.dom = false;
737
+ this.seg = false;
738
+ this.ter = false;
739
+ this.qua = false;
740
+ this.qui = false;
741
+ this.sex = false;
742
+ this.sab = false;
743
+ }
744
+ }
745
+
746
+ class OcupacaoSearchSetting extends OcupacaoFilterSetting {
747
+ constructor() {
748
+ super();
749
+ this.dateFieldEnum = OcupacaoSearchDateField.DataBaseCaixa;
750
+ }
751
+ }
752
+ var PorOcupacaoTipo;
753
+ (function (PorOcupacaoTipo) {
754
+ PorOcupacaoTipo[PorOcupacaoTipo["PorSuite"] = 0] = "PorSuite";
755
+ PorOcupacaoTipo[PorOcupacaoTipo["PorClasse"] = 1] = "PorClasse";
756
+ PorOcupacaoTipo[PorOcupacaoTipo["PorPermanencia"] = 2] = "PorPermanencia";
757
+ })(PorOcupacaoTipo || (PorOcupacaoTipo = {}));
758
+ var OcupacaoSearchDateField;
759
+ (function (OcupacaoSearchDateField) {
760
+ OcupacaoSearchDateField[OcupacaoSearchDateField["DataBaseCaixa"] = 0] = "DataBaseCaixa";
761
+ OcupacaoSearchDateField[OcupacaoSearchDateField["Entrada"] = 1] = "Entrada";
762
+ OcupacaoSearchDateField[OcupacaoSearchDateField["Saida"] = 2] = "Saida";
763
+ })(OcupacaoSearchDateField || (OcupacaoSearchDateField = {}));
764
+ var OcupacaoSearchTipoEntrada;
765
+ (function (OcupacaoSearchTipoEntrada) {
766
+ OcupacaoSearchTipoEntrada[OcupacaoSearchTipoEntrada["Todas"] = 0] = "Todas";
767
+ OcupacaoSearchTipoEntrada[OcupacaoSearchTipoEntrada["Auto"] = 1] = "Auto";
768
+ OcupacaoSearchTipoEntrada[OcupacaoSearchTipoEntrada["Manual"] = 2] = "Manual";
769
+ })(OcupacaoSearchTipoEntrada || (OcupacaoSearchTipoEntrada = {}));
770
+
771
+ class ConsumoProdutoSearchSetting extends SearchSetting {
772
+ constructor() {
773
+ super();
774
+ this.dateFieldEnum = OcupacaoSearchDateField.DataBaseCaixa;
775
+ this.exibeVendas = true;
776
+ this.exibeConsumoInterno = true;
777
+ this.horaInicial = 0;
778
+ this.minutoInicial = 0;
779
+ this.horaFinal = 23;
780
+ this.minutoFinal = 59;
781
+ }
782
+ }
783
+
784
+ class DuplicataSearchSetting extends SearchSetting {
785
+ constructor(isDespesa, propChanged) {
786
+ super(propChanged);
787
+ this.isDespesa = isDespesa;
788
+ this.ultimosCadastrados = false;
789
+ this.exibeQuitado = false;
790
+ this.exibeParcial = false;
791
+ this.exibeEmAberto = false;
792
+ this.ordem = "Vencimento";
793
+ }
794
+ }
795
+
796
+ class SuitesIntervencoesSetting extends SearchSetting {
797
+ }
798
+
799
+ class ExportFileService {
800
+ constructor() { }
801
+ start(empresaNomeFile) {
802
+ this.empresaNomeFile = empresaNomeFile;
803
+ }
804
+ exportarExcel(r, fileName) {
805
+ const blob = new Blob([r], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
806
+ FileSaver.saveAs(blob, `${fileName}.${this.empresaNomeFile}.xlsx`);
807
+ }
808
+ printHtml(r) {
809
+ const blob = new Blob([r], { type: 'text/html' });
810
+ const url = window.URL.createObjectURL(blob);
811
+ const w = window.open(url, '_blank', 'noreferrer');
812
+ w === null || w === void 0 ? void 0 : w.print();
813
+ }
814
+ }
815
+ ExportFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ExportFileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
816
+ ExportFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ExportFileService, providedIn: 'root' });
817
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ExportFileService, decorators: [{
818
+ type: Injectable,
819
+ args: [{
820
+ providedIn: 'root'
821
+ }]
822
+ }], ctorParameters: function () { return []; } });
823
+
824
+ class FocusService {
825
+ constructor() {
826
+ }
827
+ hasInit() {
828
+ return this._element !== undefined;
829
+ }
830
+ registerElementById(name) {
831
+ this.registerElement(document.getElementById(name));
832
+ }
833
+ registerElement(element) {
834
+ if (element === null || element === undefined)
835
+ return;
836
+ this._element = element;
837
+ //this._items = this.getItems();
838
+ console.info(element);
839
+ element.addEventListener('keydown', (ev) => this.handleKeyboardEvent(ev));
840
+ }
841
+ registerWindow() {
842
+ this._element = null;
843
+ //this._items = this.getItems();
844
+ window.addEventListener('keydown', (ev) => this.handleKeyboardEvent(ev));
845
+ }
846
+ unregisterElementById(name) {
847
+ this.unregisterElement(document.getElementById(name));
848
+ }
849
+ unregisterElement(element) {
850
+ if (element === null || element === undefined)
851
+ return;
852
+ element.removeEventListener('keydown', (ev) => this.handleKeyboardEvent(ev));
853
+ }
854
+ handleKeyboardEvent(event) {
855
+ if (event.keyCode !== 13)
856
+ return;
857
+ if (event.target.nodeName === "BUTTON")
858
+ return;
859
+ const items = this.getItems();
860
+ const index = Array.prototype.indexOf.call(items, event.target);
861
+ const nextIndex = index + 1;
862
+ if (nextIndex > items.length - 1)
863
+ return;
864
+ const i = items[index + 1];
865
+ if (i.tabIndex > -1)
866
+ i.focus();
867
+ event.preventDefault();
868
+ }
869
+ setFirst() {
870
+ const el = this.getItems()[0]; //[0];
871
+ if (el !== undefined)
872
+ el.focus();
873
+ }
874
+ getItems() {
875
+ const query = this._element !== null && this._element !== undefined ?
876
+ this._element.querySelectorAll('input,button, [tabindex]:not([tabindex="-1"])') :
877
+ document.querySelectorAll('input,button, [tabindex]:not([tabindex="-1"])');
878
+ const items = [];
879
+ for (let index = 0; index < query.length; index++) {
880
+ const el = query[index];
881
+ if (el.tabIndex > 0)
882
+ items.push(el);
883
+ }
884
+ return items;
885
+ }
886
+ set(id) {
887
+ const el = document.getElementById(id);
888
+ if (el === null)
889
+ return;
890
+ el.focus();
891
+ }
892
+ }
893
+
894
+ class Preferences {
895
+ constructor() {
896
+ }
897
+ loadGroup(key, list, defaultValue) {
898
+ const t = localStorage.getItem(key);
899
+ if (t === null)
900
+ return defaultValue;
901
+ let defValue;
902
+ for (let i = 0; i < list.length; i++) {
903
+ const item = list[i];
904
+ const isDefault = (item.value + '') === t;
905
+ item.default = isDefault;
906
+ if (isDefault)
907
+ defValue = item.value;
908
+ }
909
+ return defValue;
910
+ }
911
+ load(key, defaultValue) {
912
+ const json = localStorage.getItem(key);
913
+ if (json === null)
914
+ return defaultValue;
915
+ return JSON.parse(json);
916
+ }
917
+ saveGroup(key, data) {
918
+ localStorage.setItem(key, data.value);
919
+ }
920
+ save(key, obj) {
921
+ const json = JSON.stringify(obj);
922
+ localStorage.setItem(key, json);
923
+ }
924
+ }
925
+ Preferences.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: Preferences, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
926
+ Preferences.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: Preferences, providedIn: 'root' });
927
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: Preferences, decorators: [{
928
+ type: Injectable,
929
+ args: [{
930
+ providedIn: 'root'
931
+ }]
932
+ }], ctorParameters: function () { return []; } });
933
+
934
+ class SafeHtmlPipe {
935
+ constructor(sanitizer) {
936
+ this.sanitizer = sanitizer;
937
+ }
938
+ transform(html) {
939
+ return this.sanitizer.bypassSecurityTrustHtml(html);
940
+ }
941
+ }
942
+ SafeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
943
+ SafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SafeHtmlPipe, name: "safeHtml" });
944
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SafeHtmlPipe, decorators: [{
945
+ type: Pipe,
946
+ args: [{
947
+ name: 'safeHtml'
948
+ }]
949
+ }], ctorParameters: function () { return [{ type: i1$2.DomSanitizer }]; } });
950
+
951
+ const SM_WIDTH = 576;
952
+ const MD_WIDTH = 768;
953
+ const LG_WIDTH = 992;
954
+ const XL_WIDTH = 1200;
955
+ class ScreenHelperService {
956
+ constructor() {
957
+ this.changedMobileScreen = new EventEmitter();
958
+ this.changedMediumScreen = new EventEmitter();
959
+ this.changedLargeScreen = new EventEmitter();
960
+ this.changedXLargeScreen = new EventEmitter();
961
+ this.mobileScreen = false;
962
+ this.isMedium = false;
963
+ this.isLarge = false;
964
+ this.isXLarge = false;
965
+ this.determinaMobileScreen();
966
+ window.addEventListener('resize', (event) => {
967
+ this.determinaMobileScreen();
968
+ });
969
+ }
970
+ determinaMobileScreen() {
971
+ const width = window.innerWidth;
972
+ const isSmall = width <= SM_WIDTH;
973
+ const isMedium = width <= MD_WIDTH;
974
+ const isLarge = width <= LG_WIDTH;
975
+ const isXLarge = width <= XL_WIDTH;
976
+ if (isSmall !== this.mobileScreen) {
977
+ this.changedMobileScreen.emit(isSmall);
978
+ this.mobileScreen = isSmall;
979
+ }
980
+ if (isMedium !== this.isMedium) {
981
+ this.changedMediumScreen.emit(isMedium);
982
+ this.isMedium = isMedium;
983
+ }
984
+ if (isLarge !== this.isLarge) {
985
+ this.changedLargeScreen.emit(isLarge);
986
+ this.isLarge = isLarge;
987
+ }
988
+ if (isXLarge !== this.isXLarge) {
989
+ this.changedXLargeScreen.emit(isXLarge);
990
+ this.isXLarge = isXLarge;
991
+ }
992
+ }
993
+ }
994
+ ScreenHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ScreenHelperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
995
+ ScreenHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ScreenHelperService, providedIn: 'root' });
996
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ScreenHelperService, decorators: [{
997
+ type: Injectable,
998
+ args: [{
999
+ providedIn: 'root'
1000
+ }]
1001
+ }], ctorParameters: function () { return []; } });
1002
+
508
1003
  /*
509
1004
  * Public API Surface of oxpi-nglib
510
1005
  */
@@ -513,5 +1008,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
513
1008
  * Generated bundle index. Do not edit.
514
1009
  */
515
1010
 
516
- export { BusyIndicatorComponent, CheckButtonComponent, ImageViewerComponent, MonthYearPickerComponent, NumericPickerComponent, OxpiNglibModule, PaginatorComponent, RadioButtonGroupComponent };
1011
+ export { BusyIndicatorComponent, BusyState, CheckButtonComponent, ConsumoProdutoSearchSetting, DuplicataSearchSetting, ExportFileService, FocusService, ImageViewerComponent, LazyTrigger, MonthYearPickerComponent, NumberParser, NumericPickerComponent, OcupacaoFilterSetting, OcupacaoSearchDateField, OcupacaoSearchSetting, OcupacaoSearchTipoEntrada, Ordem, OxpiNglibModule, PagamentoRecebimentoSearchSetting, PaginatorComponent, PorOcupacaoTipo, Preferences, RadioButtonGroupComponent, SafeHtmlPipe, ScreenHelperService, SearchMode, SearchSetting, SuitesIntervencoesSetting, printHtml, printTxt, selectText, valNumberMin, valTextEmpty, valTextMax };
517
1012
  //# sourceMappingURL=oxpi-nglib.mjs.map