oxpi-nglib 2.0.33 → 2.0.40
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.
- package/esm2022/lib/cadastros/fornecedores/fornecedores/fornecedores-form.component.mjs +28 -3
- package/esm2022/lib/models/infra/utils-methods.mjs +73 -1
- package/esm2022/lib/models/settings/consumo-produto-search-setting.mjs +1 -1
- package/esm2022/lib/oxpi-nglib.module.mjs +10 -4
- package/fesm2022/oxpi-nglib.mjs +123 -21
- package/fesm2022/oxpi-nglib.mjs.map +1 -1
- package/lib/cadastros/fornecedores/fornecedores/fornecedores-form.component.d.ts +5 -1
- package/lib/models/infra/utils-methods.d.ts +2 -0
- package/lib/models/settings/consumo-produto-search-setting.d.ts +1 -0
- package/lib/oxpi-nglib.module.d.ts +2 -1
- package/package.json +1 -1
- package/styles/cadastros-listagens-form.scss +17 -0
package/fesm2022/oxpi-nglib.mjs
CHANGED
|
@@ -22,6 +22,8 @@ import { trigger, transition, style, animate } from '@angular/animations';
|
|
|
22
22
|
import * as i12 from '@angular/material/autocomplete';
|
|
23
23
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
24
24
|
import * as i5$1 from '@angular/router';
|
|
25
|
+
import * as i3$1 from 'ngx-mask';
|
|
26
|
+
import { NgxMaskDirective, NgxMaskPipe, provideEnvironmentNgxMask } from 'ngx-mask';
|
|
25
27
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
26
28
|
import * as i1$2 from '@angular/platform-browser';
|
|
27
29
|
import { BrowserModule } from '@angular/platform-browser';
|
|
@@ -4777,17 +4779,127 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImpor
|
|
|
4777
4779
|
args: [{ selector: 'app-selecao-cliente-dialog', template: "<div class=\"dialog-header\">\n <h2>Sele\u00E7\u00E3o de Clientes</h2>\n </div>\n <div class=\"tool-panel\">\n <div class=\"tool-section\">\n <label>Pesquisa</label>\n <div class=\"search-input-container\">\n <input (keydown)=\"nav.onKeyDown($event)\" cdkFocusInitial [(ngModel)]=\"setting.frase\" placeholder=\"Digite um termo de busca...\" (input)=\"lazyTrigger.fire()\">\n </div>\n </div>\n <div class=\"tool-section\">\n <label>A\u00E7\u00F5es</label>\n <div class=\"tool-row\">\n <button color=\"primary\" mat-icon-button (click)=\"atualiza()\">\n <mat-icon aria-label=\"Atualizar\">refresh</mat-icon>\n </button>\n <button color=\"primary\" mat-icon-button (click)=\"novo()\" *ngIf=\"allowAdd\">\n <mat-icon aria-label=\"novo\">add</mat-icon>\n </button>\n <button color=\"primary\" mat-icon-button (click)=\"editar()\" *ngIf=\"selectedItem\">\n <mat-icon aria-label=\"editar\">edit</mat-icon>\n </button>\n </div>\n </div>\n </div>\n <div class=\"dialog-content\">\n <div (click)=\"selectItem(i)\" [ngClass]=\"{selected: selectedItem === i}\" class=\"list-item\" *ngFor=\"let i of items\">\n <span>{{i.nome}}</span>\n </div>\n </div>\n <div class=\"dialog-footer\">\n <button mat-button [disabled]=\"selectedItem == undefined\" color=\"primary\" [mat-dialog-close]=\"selectedItem\">CONFIRMAR</button>\n <button mat-button [mat-dialog-close]=\"undefined\">VOLTAR</button>\n </div>\n <ox-busy-indicator [isBusy]=\"isBusy\"></ox-busy-indicator>\n ", styles: [":host{background:#fafafa;display:flex;flex-direction:column;height:100%;max-height:99vh}\n"] }]
|
|
4778
4780
|
}], ctorParameters: function () { return [{ type: i3.MatDialogRef }, { type: CommonWebService }, { type: NotificationService }, { type: i3.MatDialog }, { type: AuthDataService }, { type: ScreenHelperService }]; } });
|
|
4779
4781
|
|
|
4782
|
+
function printTxt(txt) {
|
|
4783
|
+
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>';
|
|
4784
|
+
printHtml(r);
|
|
4785
|
+
}
|
|
4786
|
+
function printHtml(r) {
|
|
4787
|
+
const blob = new Blob([r], { type: 'text/html' });
|
|
4788
|
+
const url = window.URL.createObjectURL(blob);
|
|
4789
|
+
const w = window.open(url, '_blank');
|
|
4790
|
+
if (w != null)
|
|
4791
|
+
w.print();
|
|
4792
|
+
}
|
|
4793
|
+
function selectText(ev) {
|
|
4794
|
+
ev.target.select();
|
|
4795
|
+
}
|
|
4796
|
+
function validCpf(cpf) {
|
|
4797
|
+
if (!cpf || cpf.length != 11
|
|
4798
|
+
|| cpf == "00000000000"
|
|
4799
|
+
|| cpf == "11111111111"
|
|
4800
|
+
|| cpf == "22222222222"
|
|
4801
|
+
|| cpf == "33333333333"
|
|
4802
|
+
|| cpf == "44444444444"
|
|
4803
|
+
|| cpf == "55555555555"
|
|
4804
|
+
|| cpf == "66666666666"
|
|
4805
|
+
|| cpf == "77777777777"
|
|
4806
|
+
|| cpf == "88888888888"
|
|
4807
|
+
|| cpf == "99999999999")
|
|
4808
|
+
return false;
|
|
4809
|
+
var soma = 0;
|
|
4810
|
+
var resto;
|
|
4811
|
+
for (var i = 1; i <= 9; i++)
|
|
4812
|
+
soma = soma + parseInt(cpf.substring(i - 1, i)) * (11 - i);
|
|
4813
|
+
resto = (soma * 10) % 11;
|
|
4814
|
+
if ((resto == 10) || (resto == 11))
|
|
4815
|
+
resto = 0;
|
|
4816
|
+
if (resto != parseInt(cpf.substring(9, 10)))
|
|
4817
|
+
return false;
|
|
4818
|
+
soma = 0;
|
|
4819
|
+
for (var i = 1; i <= 10; i++)
|
|
4820
|
+
soma = soma + parseInt(cpf.substring(i - 1, i)) * (12 - i);
|
|
4821
|
+
resto = (soma * 10) % 11;
|
|
4822
|
+
if ((resto == 10) || (resto == 11))
|
|
4823
|
+
resto = 0;
|
|
4824
|
+
if (resto != parseInt(cpf.substring(10, 11)))
|
|
4825
|
+
return false;
|
|
4826
|
+
return true;
|
|
4827
|
+
}
|
|
4828
|
+
function validaCnpj(cnpj) {
|
|
4829
|
+
if (!cnpj || cnpj.length != 14
|
|
4830
|
+
|| cnpj == "00000000000000"
|
|
4831
|
+
|| cnpj == "11111111111111"
|
|
4832
|
+
|| cnpj == "22222222222222"
|
|
4833
|
+
|| cnpj == "33333333333333"
|
|
4834
|
+
|| cnpj == "44444444444444"
|
|
4835
|
+
|| cnpj == "55555555555555"
|
|
4836
|
+
|| cnpj == "66666666666666"
|
|
4837
|
+
|| cnpj == "77777777777777"
|
|
4838
|
+
|| cnpj == "88888888888888"
|
|
4839
|
+
|| cnpj == "99999999999999")
|
|
4840
|
+
return false;
|
|
4841
|
+
var tamanho = cnpj.length - 2;
|
|
4842
|
+
var numeros = cnpj.substring(0, tamanho);
|
|
4843
|
+
var digitos = cnpj.substring(tamanho);
|
|
4844
|
+
var soma = 0;
|
|
4845
|
+
var pos = tamanho - 7;
|
|
4846
|
+
for (var i = tamanho; i >= 1; i--) {
|
|
4847
|
+
soma += parseInt(numeros.charAt(tamanho - i)) * pos--;
|
|
4848
|
+
if (pos < 2)
|
|
4849
|
+
pos = 9;
|
|
4850
|
+
}
|
|
4851
|
+
var resultado = soma % 11 < 2 ? 0 : 11 - soma % 11;
|
|
4852
|
+
if (resultado != parseInt(digitos.charAt(0)))
|
|
4853
|
+
return false;
|
|
4854
|
+
tamanho = tamanho + 1;
|
|
4855
|
+
numeros = cnpj.substring(0, tamanho);
|
|
4856
|
+
soma = 0;
|
|
4857
|
+
pos = tamanho - 7;
|
|
4858
|
+
for (var i = tamanho; i >= 1; i--) {
|
|
4859
|
+
soma += parseInt(numeros.charAt(tamanho - i)) * pos--;
|
|
4860
|
+
if (pos < 2)
|
|
4861
|
+
pos = 9;
|
|
4862
|
+
}
|
|
4863
|
+
resultado = soma % 11 < 2 ? 0 : 11 - soma % 11;
|
|
4864
|
+
if (resultado != parseInt(digitos.charAt(1)))
|
|
4865
|
+
return false;
|
|
4866
|
+
return true;
|
|
4867
|
+
}
|
|
4868
|
+
|
|
4780
4869
|
class FornecedoresFormComponent {
|
|
4870
|
+
get model() {
|
|
4871
|
+
return this._model;
|
|
4872
|
+
}
|
|
4873
|
+
set model(val) {
|
|
4874
|
+
this._model = val;
|
|
4875
|
+
this.validarCpfCnpj();
|
|
4876
|
+
}
|
|
4781
4877
|
constructor() {
|
|
4878
|
+
this.boolCpfCnpjValidado = false;
|
|
4782
4879
|
}
|
|
4783
4880
|
ngOnInit() {
|
|
4784
4881
|
}
|
|
4882
|
+
validarCpfCnpj() {
|
|
4883
|
+
if (this.model?.cnpjCpf == null || this.model?.cnpjCpf == undefined) {
|
|
4884
|
+
this.boolCpfCnpjValidado = false;
|
|
4885
|
+
return;
|
|
4886
|
+
}
|
|
4887
|
+
if (this.model.cnpjCpf.length == 11) {
|
|
4888
|
+
this.boolCpfCnpjValidado = validCpf(this.model.cnpjCpf);
|
|
4889
|
+
}
|
|
4890
|
+
else if (this.model.cnpjCpf.length == 14) {
|
|
4891
|
+
this.boolCpfCnpjValidado = validaCnpj(this.model.cnpjCpf);
|
|
4892
|
+
}
|
|
4893
|
+
else {
|
|
4894
|
+
this.boolCpfCnpjValidado = false;
|
|
4895
|
+
}
|
|
4896
|
+
}
|
|
4785
4897
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: FornecedoresFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4786
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.7", type: FornecedoresFormComponent, selector: "app-fornecedores-form", inputs: { model: "model" }, ngImport: i0, template: "<ng-container *ngIf=\"model\">\n <div class=\"form-block\">\n <label>Nome</label>\n <input id=\"nome\" required cdkFocusInitial [(ngModel)]=\"model.nome\" class=\"form-control input-300\" tabindex=\"1\">\n </div>\n\n <h4 class=\"margin-top-16\">Dados Complementares</h4>\n\n <div class=\"form-group\">\n <label>Nome Fantasia</label>\n <input [(ngModel)]=\"model.fantasia\" class=\"form-control input-300\" tabindex=\"2\">\n </div>\n <div class=\"
|
|
4898
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.7", type: FornecedoresFormComponent, selector: "app-fornecedores-form", inputs: { model: "model" }, ngImport: i0, template: "<ng-container *ngIf=\"model\">\n <div class=\"form-block\">\n <label>Nome</label>\n <input id=\"nome\" maxlength=\"60\" required cdkFocusInitial [(ngModel)]=\"model.nome\" class=\"form-control input-300\" tabindex=\"1\">\n </div>\n \n <h4 class=\"margin-top-16\">Dados Complementares</h4>\n \n <div class=\"form-group\">\n <label>Nome Fantasia</label>\n <input [(ngModel)]=\"model.fantasia\" maxlength=\"60\" class=\"form-control input-300\" tabindex=\"2\">\n </div>\n <div class=\"form-group\">\n <label>CPF/CNPJ</label>\n <div class=\"hbox gap-4\">\n <input [(ngModel)]=\"model.cnpjCpf\" (change)=\"validarCpfCnpj()\" mask=\"000.000.000-00||00.000.000/0000-00\"\n class=\"form-control input-180\" tabindex=\"3\">\n <i class=\"material-icons\" style=\"align-self: center; color: #03a928;\" *ngIf=\"boolCpfCnpjValidado === true\">\n check_circle\n </i>\n <i class=\"material-icons\" style=\"align-self: center; color: #a98203;\" *ngIf=\"boolCpfCnpjValidado === false\">\n cancel\n </i>\n \n </div>\n </div>\n <div class=\"form-group\">\n <label>Observa\u00E7\u00F5es</label>\n <input [(ngModel)]=\"model.obs\" maxlength=\"60\" class=\"form-control input-300\">\n </div>\n <div class=\"hbox gap-8\">\n <div class=\"form-group\">\n <label>Telefone</label>\n <input [(ngModel)]=\"model.telefone\" maxlength=\"30\" class=\"form-control input-180\">\n </div>\n <div class=\"form-group\">\n <label>Fax</label>\n <input [(ngModel)]=\"model.fax\" maxlength=\"15\" class=\"form-control input-120\">\n </div>\n </div>\n <div class=\"hbox gap-8\">\n <div class=\"form-group\">\n <label>Contato</label>\n <input [(ngModel)]=\"model.contato\" maxlength=\"30\" class=\"form-control input-120\">\n </div>\n <div class=\"form-group\">\n <label>E-mail</label>\n <input [(ngModel)]=\"model.email\" maxlength=\"60\" class=\"form-control input-200\">\n </div>\n </div>\n <div class=\"form-group\">\n <label>Endere\u00E7o</label>\n <input [(ngModel)]=\"model.endereco\" maxlength=\"60\" class=\"form-control input-300\">\n </div>\n \n <div class=\"hbox gap-8\">\n <div class=\"form-group\">\n <label>N\u00FAmero</label>\n <input [(ngModel)]=\"model.numero\" maxlength=\"15\" class=\"form-control input-120\">\n </div>\n <div class=\"form-group\">\n <label>CEP</label>\n <input [(ngModel)]=\"model.cep\" maxlength=\"9\" class=\"form-control input-120\">\n </div>\n <div class=\"form-group\">\n <label>Bairro</label>\n <input [(ngModel)]=\"model.bairro\" maxlength=\"60\" class=\"form-control input-120\">\n </div>\n </div>\n <div class=\"hbox gap-8\">\n <div class=\"form-group\">\n <label>Complemento</label>\n <input [(ngModel)]=\"model.complemento\" maxlength=\"30\" class=\"form-control input-200\">\n </div>\n <div class=\"form-group\">\n <label>IE/RG</label>\n <input [(ngModel)]=\"model.ieRg\" maxlength=\"20\" class=\"form-control input-120\">\n </div>\n </div>\n</ng-container>", styles: [":host{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i7.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions"], outputs: ["maskFilled"], exportAs: ["mask", "ngxMask"] }] }); }
|
|
4787
4899
|
}
|
|
4788
4900
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: FornecedoresFormComponent, decorators: [{
|
|
4789
4901
|
type: Component,
|
|
4790
|
-
args: [{ selector: 'app-fornecedores-form', template: "<ng-container *ngIf=\"model\">\n <div class=\"form-block\">\n <label>Nome</label>\n <input id=\"nome\" required cdkFocusInitial [(ngModel)]=\"model.nome\" class=\"form-control input-300\" tabindex=\"1\">\n </div>\n\n <h4 class=\"margin-top-16\">Dados Complementares</h4>\n\n <div class=\"form-group\">\n <label>Nome Fantasia</label>\n <input [(ngModel)]=\"model.fantasia\" class=\"form-control input-300\" tabindex=\"2\">\n </div>\n <div class=\"
|
|
4902
|
+
args: [{ selector: 'app-fornecedores-form', template: "<ng-container *ngIf=\"model\">\n <div class=\"form-block\">\n <label>Nome</label>\n <input id=\"nome\" maxlength=\"60\" required cdkFocusInitial [(ngModel)]=\"model.nome\" class=\"form-control input-300\" tabindex=\"1\">\n </div>\n \n <h4 class=\"margin-top-16\">Dados Complementares</h4>\n \n <div class=\"form-group\">\n <label>Nome Fantasia</label>\n <input [(ngModel)]=\"model.fantasia\" maxlength=\"60\" class=\"form-control input-300\" tabindex=\"2\">\n </div>\n <div class=\"form-group\">\n <label>CPF/CNPJ</label>\n <div class=\"hbox gap-4\">\n <input [(ngModel)]=\"model.cnpjCpf\" (change)=\"validarCpfCnpj()\" mask=\"000.000.000-00||00.000.000/0000-00\"\n class=\"form-control input-180\" tabindex=\"3\">\n <i class=\"material-icons\" style=\"align-self: center; color: #03a928;\" *ngIf=\"boolCpfCnpjValidado === true\">\n check_circle\n </i>\n <i class=\"material-icons\" style=\"align-self: center; color: #a98203;\" *ngIf=\"boolCpfCnpjValidado === false\">\n cancel\n </i>\n \n </div>\n </div>\n <div class=\"form-group\">\n <label>Observa\u00E7\u00F5es</label>\n <input [(ngModel)]=\"model.obs\" maxlength=\"60\" class=\"form-control input-300\">\n </div>\n <div class=\"hbox gap-8\">\n <div class=\"form-group\">\n <label>Telefone</label>\n <input [(ngModel)]=\"model.telefone\" maxlength=\"30\" class=\"form-control input-180\">\n </div>\n <div class=\"form-group\">\n <label>Fax</label>\n <input [(ngModel)]=\"model.fax\" maxlength=\"15\" class=\"form-control input-120\">\n </div>\n </div>\n <div class=\"hbox gap-8\">\n <div class=\"form-group\">\n <label>Contato</label>\n <input [(ngModel)]=\"model.contato\" maxlength=\"30\" class=\"form-control input-120\">\n </div>\n <div class=\"form-group\">\n <label>E-mail</label>\n <input [(ngModel)]=\"model.email\" maxlength=\"60\" class=\"form-control input-200\">\n </div>\n </div>\n <div class=\"form-group\">\n <label>Endere\u00E7o</label>\n <input [(ngModel)]=\"model.endereco\" maxlength=\"60\" class=\"form-control input-300\">\n </div>\n \n <div class=\"hbox gap-8\">\n <div class=\"form-group\">\n <label>N\u00FAmero</label>\n <input [(ngModel)]=\"model.numero\" maxlength=\"15\" class=\"form-control input-120\">\n </div>\n <div class=\"form-group\">\n <label>CEP</label>\n <input [(ngModel)]=\"model.cep\" maxlength=\"9\" class=\"form-control input-120\">\n </div>\n <div class=\"form-group\">\n <label>Bairro</label>\n <input [(ngModel)]=\"model.bairro\" maxlength=\"60\" class=\"form-control input-120\">\n </div>\n </div>\n <div class=\"hbox gap-8\">\n <div class=\"form-group\">\n <label>Complemento</label>\n <input [(ngModel)]=\"model.complemento\" maxlength=\"30\" class=\"form-control input-200\">\n </div>\n <div class=\"form-group\">\n <label>IE/RG</label>\n <input [(ngModel)]=\"model.ieRg\" maxlength=\"20\" class=\"form-control input-120\">\n </div>\n </div>\n</ng-container>", styles: [":host{display:flex;flex-direction:column}\n"] }]
|
|
4791
4903
|
}], ctorParameters: function () { return []; }, propDecorators: { model: [{
|
|
4792
4904
|
type: Input
|
|
4793
4905
|
}] } });
|
|
@@ -5524,7 +5636,9 @@ class OxpiNglibModule {
|
|
|
5524
5636
|
MatDialogModule,
|
|
5525
5637
|
MatSelectModule,
|
|
5526
5638
|
MatAutocompleteModule,
|
|
5527
|
-
MatSlideToggleModule
|
|
5639
|
+
MatSlideToggleModule,
|
|
5640
|
+
NgxMaskDirective,
|
|
5641
|
+
NgxMaskPipe], exports: [BusyIndicatorComponent,
|
|
5528
5642
|
MonthYearPickerComponent,
|
|
5529
5643
|
ImageViewerComponent,
|
|
5530
5644
|
NumericPickerComponent,
|
|
@@ -5534,7 +5648,7 @@ class OxpiNglibModule {
|
|
|
5534
5648
|
ItemCardComponent,
|
|
5535
5649
|
ProdutoCardComponent,
|
|
5536
5650
|
SafeHtmlPipe] }); }
|
|
5537
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: OxpiNglibModule, imports: [BrowserModule,
|
|
5651
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: OxpiNglibModule, providers: [provideEnvironmentNgxMask()], imports: [BrowserModule,
|
|
5538
5652
|
BrowserAnimationsModule,
|
|
5539
5653
|
FormsModule,
|
|
5540
5654
|
MatButtonModule,
|
|
@@ -5612,6 +5726,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImpor
|
|
|
5612
5726
|
MatSelectModule,
|
|
5613
5727
|
MatAutocompleteModule,
|
|
5614
5728
|
MatSlideToggleModule,
|
|
5729
|
+
NgxMaskDirective,
|
|
5730
|
+
NgxMaskPipe,
|
|
5615
5731
|
],
|
|
5616
5732
|
exports: [
|
|
5617
5733
|
BusyIndicatorComponent,
|
|
@@ -5624,7 +5740,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImpor
|
|
|
5624
5740
|
ItemCardComponent,
|
|
5625
5741
|
ProdutoCardComponent,
|
|
5626
5742
|
SafeHtmlPipe
|
|
5627
|
-
]
|
|
5743
|
+
],
|
|
5744
|
+
providers: [provideEnvironmentNgxMask()]
|
|
5628
5745
|
}]
|
|
5629
5746
|
}] });
|
|
5630
5747
|
|
|
@@ -5687,21 +5804,6 @@ class Ordem {
|
|
|
5687
5804
|
}
|
|
5688
5805
|
}
|
|
5689
5806
|
|
|
5690
|
-
function printTxt(txt) {
|
|
5691
|
-
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>';
|
|
5692
|
-
printHtml(r);
|
|
5693
|
-
}
|
|
5694
|
-
function printHtml(r) {
|
|
5695
|
-
const blob = new Blob([r], { type: 'text/html' });
|
|
5696
|
-
const url = window.URL.createObjectURL(blob);
|
|
5697
|
-
const w = window.open(url, '_blank');
|
|
5698
|
-
if (w != null)
|
|
5699
|
-
w.print();
|
|
5700
|
-
}
|
|
5701
|
-
function selectText(ev) {
|
|
5702
|
-
ev.target.select();
|
|
5703
|
-
}
|
|
5704
|
-
|
|
5705
5807
|
class PagamentoRecebimentoSearchSetting extends SearchSetting {
|
|
5706
5808
|
constructor() {
|
|
5707
5809
|
super();
|
|
@@ -5865,5 +5967,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImpor
|
|
|
5865
5967
|
* Generated bundle index. Do not edit.
|
|
5866
5968
|
*/
|
|
5867
5969
|
|
|
5868
|
-
export { AlertDialogComponent, AuthDataService, BusyIndicatorComponent, BusyState, CheckButtonComponent, ClientesAddDialogComponent, ClientesComponent, ClientesEditDialogComponent, ClientesFormComponent, CommonWebService, ConsumoProdutoSearchSetting, DuplicataSearchSetting, ExportFileService, FocusService, FornecedoresAddDialogComponent, FornecedoresComponent, FornecedoresEditDialogComponent, FornecedoresFormComponent, FuncionarioAddDialogComponent, FuncionarioEditDialogComponent, FuncionarioFormComponent, FuncionariosComponent, ImageViewerComponent, ItemCardComponent, LazyTrigger, MonthYearPickerComponent, MoverGrupoDialogComponent, NavegacaoSelecaoDialogUtil, NotificationService, NumberParser, NumericPickerComponent, OcupacaoConducao, OcupacaoFilterSetting, OcupacaoSearchDateField, OcupacaoSearchSetting, OcupacaoSearchTipoEntrada, Ordem, Ownership, OxpiNglibModule, PagamentoRecebimentoSearchSetting, PaginatorComponent, PorOcupacaoTipo, Preferences, ProdutoAddDialogComponent, ProdutoBuscaFiltrosDialogComponent, ProdutoCardComponent, ProdutoCategoriaCardapioAddDialogComponent, ProdutoCategoriaCardapioEditDialogComponent, ProdutoCategoriaCardapioSelecaoDialogComponent, ProdutoComposicaoAddDialogComponent, ProdutoComposicaoComponent, ProdutoEditDialogComponent, ProdutoFormComponent, ProdutoGrupoAddDialogComponent, ProdutoGrupoEditDialogComponent, ProdutoGrupoFormComponent, ProdutoGrupoSelecaoDialogComponent, ProdutoSearchSetting, ProdutoSelecaoDialogComponent, ProdutoSubgrupoAddDialogComponent, ProdutoSubgrupoEditDialogComponent, ProdutoSubgrupoSelecaoDialogComponent, ProdutoVerificaoGrupoAddDialogComponent, ProdutoVerificaoGrupoEditDialogComponent, ProdutoVerificaoGrupoSelecaoDialogComponent, ProdutosCategoriasCardapioComponent, ProdutosComponent, ProdutosGruposComponent, ProdutosHistoryComponent, ProdutosNcmDialogComponent, ProdutosSubgruposComponent, ProdutosVerificacaoGrupoComponent, RadioButtonGroupComponent, SafeHtmlPipe, ScreenHelperService, SearchMode, SearchSetting, SelecaoClienteDialogComponent, SelecaoFornecedorDialogComponent, SuitesIntervencoesSetting, confirmaExclusao, createProduct, fadeAnimation, isNotNullOrUndefined, isNullOrUndefined, lateralAnimation, menuLateralAnimation, printHtml, printTxt, selectText, setOwnershipLogin, valNumberEmpty, valNumberMin, valTextEmpty, valTextMax, valida, validaPessoa, validaProduto, validaProdutoComposicao, validaProdutoGrupo, validaSetorEstoque };
|
|
5970
|
+
export { AlertDialogComponent, AuthDataService, BusyIndicatorComponent, BusyState, CheckButtonComponent, ClientesAddDialogComponent, ClientesComponent, ClientesEditDialogComponent, ClientesFormComponent, CommonWebService, ConsumoProdutoSearchSetting, DuplicataSearchSetting, ExportFileService, FocusService, FornecedoresAddDialogComponent, FornecedoresComponent, FornecedoresEditDialogComponent, FornecedoresFormComponent, FuncionarioAddDialogComponent, FuncionarioEditDialogComponent, FuncionarioFormComponent, FuncionariosComponent, ImageViewerComponent, ItemCardComponent, LazyTrigger, MonthYearPickerComponent, MoverGrupoDialogComponent, NavegacaoSelecaoDialogUtil, NotificationService, NumberParser, NumericPickerComponent, OcupacaoConducao, OcupacaoFilterSetting, OcupacaoSearchDateField, OcupacaoSearchSetting, OcupacaoSearchTipoEntrada, Ordem, Ownership, OxpiNglibModule, PagamentoRecebimentoSearchSetting, PaginatorComponent, PorOcupacaoTipo, Preferences, ProdutoAddDialogComponent, ProdutoBuscaFiltrosDialogComponent, ProdutoCardComponent, ProdutoCategoriaCardapioAddDialogComponent, ProdutoCategoriaCardapioEditDialogComponent, ProdutoCategoriaCardapioSelecaoDialogComponent, ProdutoComposicaoAddDialogComponent, ProdutoComposicaoComponent, ProdutoEditDialogComponent, ProdutoFormComponent, ProdutoGrupoAddDialogComponent, ProdutoGrupoEditDialogComponent, ProdutoGrupoFormComponent, ProdutoGrupoSelecaoDialogComponent, ProdutoSearchSetting, ProdutoSelecaoDialogComponent, ProdutoSubgrupoAddDialogComponent, ProdutoSubgrupoEditDialogComponent, ProdutoSubgrupoSelecaoDialogComponent, ProdutoVerificaoGrupoAddDialogComponent, ProdutoVerificaoGrupoEditDialogComponent, ProdutoVerificaoGrupoSelecaoDialogComponent, ProdutosCategoriasCardapioComponent, ProdutosComponent, ProdutosGruposComponent, ProdutosHistoryComponent, ProdutosNcmDialogComponent, ProdutosSubgruposComponent, ProdutosVerificacaoGrupoComponent, RadioButtonGroupComponent, SafeHtmlPipe, ScreenHelperService, SearchMode, SearchSetting, SelecaoClienteDialogComponent, SelecaoFornecedorDialogComponent, SuitesIntervencoesSetting, confirmaExclusao, createProduct, fadeAnimation, isNotNullOrUndefined, isNullOrUndefined, lateralAnimation, menuLateralAnimation, printHtml, printTxt, selectText, setOwnershipLogin, valNumberEmpty, valNumberMin, valTextEmpty, valTextMax, validCpf, valida, validaCnpj, validaPessoa, validaProduto, validaProdutoComposicao, validaProdutoGrupo, validaSetorEstoque };
|
|
5869
5971
|
//# sourceMappingURL=oxpi-nglib.mjs.map
|