oxpi-nglib 2.0.66 → 2.0.68

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 (28) hide show
  1. package/esm2022/lib/cadastros/funcionarios/funcionario-add-dialog/funcionario-add-dialog.component.mjs +3 -3
  2. package/esm2022/lib/cadastros/funcionarios/funcionario-edit-dialog/funcionario-edit-dialog.component.mjs +3 -3
  3. package/esm2022/lib/cadastros/funcionarios/funcionarios/funcionarios.component.mjs +3 -3
  4. package/esm2022/lib/models/entidades/funcionario.mjs +2 -2
  5. package/esm2022/lib/models/entidades/operador.mjs +2 -2
  6. package/esm2022/lib/models/settings/ocupacao-search-setting.mjs +1 -1
  7. package/esm2022/lib/oxpi-nglib.module.mjs +1 -6
  8. package/esm2022/lib/providers/common-web-service.mjs +1 -159
  9. package/esm2022/public-api.mjs +2 -6
  10. package/fesm2022/oxpi-nglib.mjs +6 -327
  11. package/fesm2022/oxpi-nglib.mjs.map +1 -1
  12. package/lib/models/entidades/funcionario.d.ts +1 -1
  13. package/lib/models/entidades/operador.d.ts +1 -1
  14. package/lib/models/settings/ocupacao-search-setting.d.ts +1 -0
  15. package/lib/oxpi-nglib.module.d.ts +14 -15
  16. package/lib/providers/common-web-service.d.ts +0 -43
  17. package/package.json +1 -1
  18. package/public-api.d.ts +1 -5
  19. package/esm2022/lib/controls/produto-card/produto-card.component.mjs +0 -31
  20. package/esm2022/lib/models/entidades/produto-composicao.mjs +0 -9
  21. package/esm2022/lib/models/entidades/produto-grupo.mjs +0 -9
  22. package/esm2022/lib/models/entidades/produto-ncm.mjs +0 -2
  23. package/esm2022/lib/models/entidades/produto.mjs +0 -117
  24. package/lib/controls/produto-card/produto-card.component.d.ts +0 -16
  25. package/lib/models/entidades/produto-composicao.d.ts +0 -14
  26. package/lib/models/entidades/produto-grupo.d.ts +0 -28
  27. package/lib/models/entidades/produto-ncm.d.ts +0 -10
  28. package/lib/models/entidades/produto.d.ts +0 -91
@@ -57,7 +57,7 @@ function isNotNullOrUndefined(v) {
57
57
  return !isNullOrUndefined(v);
58
58
  }
59
59
 
60
- function valida$1(item, focus) {
60
+ function validaFuncionario(item, focus) {
61
61
  if (valTextEmpty(item.nome)) {
62
62
  focus.set('nome');
63
63
  return 'Digite um nome válido.';
@@ -239,168 +239,10 @@ class CommonWebService {
239
239
  const url = this.FUNCIONARIO_BASE_URL + id;
240
240
  return this.http.delete(url, this.getHttpOptions()).pipe(map(data => data));
241
241
  }
242
- buscaPaginadaProdutos(setting, page, pageSize) {
243
- const url = this.PRODUTO_BASE_URL + CommonWebService.URL_PART_BUSCA_PAGINADA;
244
- const p = { setting: setting, page: page, pageSize: pageSize };
245
- return this.http.post(url, JSON.stringify(p), this.getHttpOptions()).pipe(map(data => data));
246
- }
247
- getNextIdProduto() {
248
- const url = this.PRODUTO_BASE_URL + CommonWebService.URL_PART_NEXT_ID;
249
- return this.http.get(url, this.getHttpOptions()).pipe(map(data => data));
250
- }
251
- getProdutoHistory(id) {
252
- const url = this.PRODUTO_BASE_URL + 'GetHistory/' + id;
253
- return this.http.get(url, this.getHttpOptions()).pipe(map(data => data));
254
- }
255
- findProduto(produtoId) {
256
- const url = this.PRODUTO_BASE_URL + produtoId;
257
- return this.http.get(url, this.getHttpOptions()).pipe(map(data => data));
258
- }
259
- saveProdutoInformacoesAdicionais(s) {
260
- const url = this.PRODUTO_INFORMACOES_ADICIONAIS_BASE_URL;
261
- return this.http.post(url, JSON.stringify(s), this.getHttpOptions()).pipe(map(data => data));
262
- }
263
- findProdutoInformacoesAdicionais(produtoId) {
264
- const url = this.PRODUTO_INFORMACOES_ADICIONAIS_BASE_URL + produtoId;
265
- return this.http.get(url, this.getHttpOptions()).pipe(map(data => data));
266
- }
267
- saveProduto(s) {
268
- const url = this.PRODUTO_BASE_URL;
269
- return this.http.post(url, JSON.stringify(s), this.getHttpOptions()).pipe(map(data => data));
270
- }
271
- addProduto(p) {
272
- const url = this.PRODUTO_BASE_URL;
273
- return this.http.put(url, JSON.stringify(p), this.getHttpOptions()).pipe(map(data => data));
274
- }
275
- deleteProduto(id) {
276
- const url = this.PRODUTO_BASE_URL + id;
277
- return this.http.delete(url, this.getHttpOptions()).pipe(map(data => data));
278
- }
279
- buscaProdutoGrupo(setting) {
280
- const url = this.PRODUTO_GRUPO_BASE_URL + CommonWebService.URL_PART_BUSCA;
281
- return this.http.post(url, JSON.stringify(setting), this.getHttpOptions()).pipe(map(data => data));
282
- }
283
- getAllProdutoGrupo() {
284
- const url = this.PRODUTO_GRUPO_BASE_URL;
285
- return this.http.get(url, this.getHttpOptions()).pipe(map(data => data));
286
- }
287
- getNextIdProdutoGrupo() {
288
- const url = this.PRODUTO_GRUPO_BASE_URL + CommonWebService.URL_PART_NEXT_ID;
289
- return this.http.get(url, this.getHttpOptions()).pipe(map(data => data));
290
- }
291
- saveProdutoGrupo(s) {
292
- const url = this.PRODUTO_GRUPO_BASE_URL;
293
- return this.http.post(url, JSON.stringify(s), this.getHttpOptions()).pipe(map(data => data));
294
- }
295
- transfereProdutoGrupo(grupoId, novoGrupoId) {
296
- const url = this.PRODUTO_BASE_URL + 'AlteraGrupo';
297
- const p = { oldId: grupoId, newId: novoGrupoId };
298
- return this.http.post(url, JSON.stringify(p), this.getHttpOptions()).pipe(map(data => data));
299
- }
300
- addProdutoGrupo(p) {
301
- const url = this.PRODUTO_GRUPO_BASE_URL;
302
- return this.http.put(url, JSON.stringify(p), this.getHttpOptions()).pipe(map(data => data));
303
- }
304
- deleteProdutoGrupo(id) {
305
- const url = this.PRODUTO_GRUPO_BASE_URL + id;
306
- return this.http.delete(url, this.getHttpOptions()).pipe(map(data => data));
307
- }
308
- buscaNcm(ncm) {
309
- const url = this.PRODUTO_BASE_URL + 'BuscaNCM/';
310
- const params = new HttpParams()
311
- .set("ncm", '' + ncm);
312
- return this.http.get(url, this.getHttpOptions(params)).pipe(map(data => data));
313
- }
314
- findNcm(ncm) {
315
- const url = this.PRODUTO_BASE_URL + 'FindNCM/';
316
- const params = new HttpParams()
317
- .set("ncm", '' + ncm);
318
- return this.http.get(url, this.getHttpOptions(params)).pipe(map(data => data));
319
- }
320
- buscaProdutoSubgrupo(setting) {
321
- const url = this.PRODUTO_SUBGRUPO_BASE_URL + CommonWebService.URL_PART_BUSCA;
322
- return this.http.post(url, JSON.stringify(setting), this.getHttpOptions()).pipe(map(data => data));
323
- }
324
- getAllProdutoSubgrupo() {
325
- const url = this.PRODUTO_SUBGRUPO_BASE_URL;
326
- return this.http.get(url, this.getHttpOptions()).pipe(map(data => data));
327
- }
328
- getNextIdProdutoSubgrupo() {
329
- const url = this.PRODUTO_SUBGRUPO_BASE_URL + CommonWebService.URL_PART_NEXT_ID;
330
- return this.http.get(url, this.getHttpOptions()).pipe(map(data => data));
331
- }
332
- saveProdutoSubgrupo(s) {
333
- const url = this.PRODUTO_SUBGRUPO_BASE_URL;
334
- return this.http.post(url, JSON.stringify(s), this.getHttpOptions()).pipe(map(data => data));
335
- }
336
- addProdutoSubgrupo(p) {
337
- const url = this.PRODUTO_SUBGRUPO_BASE_URL;
338
- return this.http.put(url, JSON.stringify(p), this.getHttpOptions()).pipe(map(data => data));
339
- }
340
- deleteProdutoSubgrupo(id) {
341
- const url = this.PRODUTO_SUBGRUPO_BASE_URL + id;
342
- return this.http.delete(url, this.getHttpOptions()).pipe(map(data => data));
343
- }
344
- buscaProdutoCategoriaCardapio(setting) {
345
- const url = this.PRODUTO_CATEGORIA_CARDAPIO_BASE_URL + CommonWebService.URL_PART_BUSCA;
346
- return this.http.post(url, JSON.stringify(setting), this.getHttpOptions()).pipe(map(data => data));
347
- }
348
- getNextIdProdutoCategoriaCardapio() {
349
- const url = this.PRODUTO_CATEGORIA_CARDAPIO_BASE_URL + CommonWebService.URL_PART_NEXT_ID;
350
- return this.http.get(url, this.getHttpOptions()).pipe(map(data => data));
351
- }
352
- saveProdutoCategoriaCardapio(s) {
353
- const url = this.PRODUTO_CATEGORIA_CARDAPIO_BASE_URL;
354
- return this.http.post(url, JSON.stringify(s), this.getHttpOptions()).pipe(map(data => data));
355
- }
356
- addProdutoCategoriaCardapio(p) {
357
- const url = this.PRODUTO_CATEGORIA_CARDAPIO_BASE_URL;
358
- return this.http.put(url, JSON.stringify(p), this.getHttpOptions()).pipe(map(data => data));
359
- }
360
- deleteProdutoCategoriaCardapio(id) {
361
- const url = this.PRODUTO_CATEGORIA_CARDAPIO_BASE_URL + id;
362
- return this.http.delete(url, this.getHttpOptions()).pipe(map(data => data));
363
- }
364
- buscaProdutoGrupoVerificacao(setting) {
365
- const url = this.PRODUTO_VERIFICACAO_GRUPO_BASE_URL + CommonWebService.URL_PART_BUSCA;
366
- return this.http.post(url, JSON.stringify(setting), this.getHttpOptions()).pipe(map(data => data));
367
- }
368
- getNextIdProdutoGrupoVerificacao() {
369
- const url = this.PRODUTO_VERIFICACAO_GRUPO_BASE_URL + CommonWebService.URL_PART_NEXT_ID;
370
- return this.http.get(url, this.getHttpOptions()).pipe(map(data => data));
371
- }
372
- saveProdutoGrupoVerificacao(s) {
373
- const url = this.PRODUTO_VERIFICACAO_GRUPO_BASE_URL;
374
- return this.http.post(url, JSON.stringify(s), this.getHttpOptions()).pipe(map(data => data));
375
- }
376
- addProdutoGrupoVerificacao(p) {
377
- const url = this.PRODUTO_VERIFICACAO_GRUPO_BASE_URL;
378
- return this.http.put(url, JSON.stringify(p), this.getHttpOptions()).pipe(map(data => data));
379
- }
380
- deleteProdutoGrupoVerificacao(id) {
381
- const url = this.PRODUTO_VERIFICACAO_GRUPO_BASE_URL + id;
382
- return this.http.delete(url, this.getHttpOptions()).pipe(map(data => data));
383
- }
384
242
  getAllSetores() {
385
243
  const url = this.ESTOQUE_URL + 'Setor/';
386
244
  return this.http.get(url, this.getHttpOptions()).pipe(map(data => data));
387
245
  }
388
- getProdutoComposicao(produtoId) {
389
- const url = this.PRODUTO_COMPOSICAO_BASE_URL + produtoId;
390
- return this.http.get(url, this.getHttpOptions()).pipe(map(data => data));
391
- }
392
- saveProdutoComposicao(s) {
393
- const url = this.PRODUTO_COMPOSICAO_BASE_URL;
394
- return this.http.post(url, JSON.stringify(s), this.getHttpOptions()).pipe(map(data => data));
395
- }
396
- addProdutoComposicao(p) {
397
- const url = this.PRODUTO_COMPOSICAO_BASE_URL;
398
- return this.http.put(url, JSON.stringify(p), this.getHttpOptions()).pipe(map(data => data));
399
- }
400
- deleteProdutoComposicao(id) {
401
- const url = this.PRODUTO_COMPOSICAO_BASE_URL + id;
402
- return this.http.delete(url, this.getHttpOptions()).pipe(map(data => data));
403
- }
404
246
  buscaCliente(setting) {
405
247
  const url = this.CLIENTE_BASE_URL + CommonWebService.URL_PART_BUSCA;
406
248
  return this.http.post(url, JSON.stringify(setting), this.getHttpOptions()).pipe(map(data => data));
@@ -736,7 +578,7 @@ class FuncionarioAddDialogComponent {
736
578
  salvar() {
737
579
  if (!this.model)
738
580
  return;
739
- const valMsg = valida$1(this.model, this.focus);
581
+ const valMsg = validaFuncionario(this.model, this.focus);
740
582
  if (valMsg) {
741
583
  this.notification.showMsgError(valMsg);
742
584
  return;
@@ -790,7 +632,7 @@ class FuncionarioEditDialogComponent {
790
632
  salvar() {
791
633
  if (!this.model)
792
634
  return;
793
- const valMsg = valida$1(this.model, this.focus);
635
+ const valMsg = validaFuncionario(this.model, this.focus);
794
636
  if (valMsg) {
795
637
  this.notification.showMsgError(valMsg);
796
638
  return;
@@ -1400,7 +1242,7 @@ class FuncionariosComponent {
1400
1242
  const item = this.selectedItem;
1401
1243
  if (!item)
1402
1244
  return;
1403
- const valMsg = valida$1(item, this.focus);
1245
+ const valMsg = validaFuncionario(item, this.focus);
1404
1246
  if (valMsg) {
1405
1247
  this.notification.showMsgError(valMsg);
1406
1248
  return;
@@ -2729,33 +2571,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2729
2571
  type: Input
2730
2572
  }] } });
2731
2573
 
2732
- class ProdutoCardComponent {
2733
- get ownership() {
2734
- return this._ownership;
2735
- }
2736
- set ownership(value) {
2737
- this._ownership = value;
2738
- if (value != undefined)
2739
- this.auth.setOwnership(value);
2740
- }
2741
- constructor(auth) {
2742
- this.auth = auth;
2743
- this.produto = null;
2744
- }
2745
- ngOnInit() {
2746
- }
2747
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProdutoCardComponent, deps: [{ token: AuthDataService }], target: i0.ɵɵFactoryTarget.Component }); }
2748
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ProdutoCardComponent, selector: "ox-produto-card", inputs: { produto: "produto", ownership: "ownership" }, ngImport: i0, template: "<div class=\"nome-codigo-row\"><span class=\"codigo\" *ngIf=\"produto?.id\">{{produto?.id}}</span>{{produto?.nome}}</div>\n\n<div class=\"icons-row\">\n <div class=\"valor-col\">\n <span class=\"valor\" *ngIf=\"produto\">{{produto.precoVenda | currency:\"BRL\"}}</span>\n </div>\n <div class=\"ownership\" *ngIf=\"ownership\">\n <span class=\"usuario\" *ngIf=\"ownership.usuarioLogin\">{{ownership.usuarioLogin}}</span>\n <span class=\"startEndTime\" *ngIf=\"ownership.startTime\">\n <span class=\"startTime\">{{ownership.startTime | date:\"dd/MM/yy\"}}</span>\n </span>\n </div>\n <span class=\"material-icons desativado\" *ngIf=\"produto?.isAtivo === false\">\n dangerous\n </span>\n <span class=\"material-icons sync-pendente\" *ngIf=\"produto?.enviadoPC === false\">\n cloud_queue\n </span>\n <span class=\"material-icons sync-concluido\" *ngIf=\"produto?.enviadoPC === true\">\n cloud_done\n </span>\n</div>\n<div class=\"badges\">\n <div class=\"badge\" *ngIf=\"produto?.estoqueControlado\" style=\"background-color: orange;\">\n </div>\n <div class=\"badge\" *ngIf=\"produto?.isComposto\" style=\"background-color: rgb(0, 4, 255);\">\n </div>\n <div class=\"badge\" *ngIf=\"produto?.isIngrediente\" style=\"background-color: rgb(0, 133, 143);\">\n </div>\n <div class=\"badge\" *ngIf=\"produto?.emiteNFCe\" style=\"background-color: rgb(204, 0, 68);\">\n </div>\n <div class=\"badge\" *ngIf=\"produto?.disponivelCardapio\" style=\"background-color: rgb(33, 90, 0);\">\n </div>\n</div>", styles: [":host{display:flex;flex-direction:row;border-bottom:1px solid #e6e9ec;border-left:3px solid #e6e9ec;padding:12px 16px;background:#fff;justify-content:space-between;cursor:pointer;flex-shrink:0;align-items:center;transition:border-left-color 1s;-webkit-user-select:none;user-select:none;font-size:small;position:relative}:host:hover{box-shadow:0 0 16px #0000000f;background:transparent;z-index:1}:host(.selected){border-left-color:var(--app-color, black);z-index:1;box-shadow:0 0 8px 5px #00000008;flex-shrink:0;background:linear-gradient(45deg,var(--item-card-selected-bg, rgba(0, 0, 0, .05)),transparent)}.ownership{background:transparent;display:flex;flex-direction:column;align-items:center}.ownership .usuario{font-size:x-small;color:#515962;text-transform:lowercase}.ownership .startTime,.ownership .endTime{font-size:xx-small}.ownership .startEndTime{display:flex;flex-direction:row;color:#464646}.nome-codigo-row{display:flex;flex-direction:row;flex-grow:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right:8px}.icons-row{display:flex;flex-direction:row;align-items:center;gap:8px}.codigo{color:#666;font-size:x-small;border-radius:4px;padding:0 4px;width:50px;min-width:50px;text-align:center;border:1px solid #eee;margin-right:16px;display:flex;align-items:center;justify-content:center}.sync-pendente{color:#141212;font-size:16px}.sync-concluido{color:#dbdbdb;font-size:16px}.star{color:#000}.desativado{color:#8f07bb;font-size:16px}.valor-col{background:transparent;display:flex;flex-direction:column;align-items:center}.valor-col .valor{font-size:xx-small;color:#31b5b0}.badges{display:flex;flex-direction:row;gap:4px;position:absolute;bottom:0;margin-bottom:4px;left:0;margin-left:16px}.badges .badge{background:#f4f4f4;border-radius:9px;height:3px;width:8px;font-size:x-small;color:#22272c;font-family:Courier New,Courier,monospace}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i6.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i6.DatePipe, name: "date" }] }); }
2749
- }
2750
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProdutoCardComponent, decorators: [{
2751
- type: Component,
2752
- args: [{ selector: 'ox-produto-card', template: "<div class=\"nome-codigo-row\"><span class=\"codigo\" *ngIf=\"produto?.id\">{{produto?.id}}</span>{{produto?.nome}}</div>\n\n<div class=\"icons-row\">\n <div class=\"valor-col\">\n <span class=\"valor\" *ngIf=\"produto\">{{produto.precoVenda | currency:\"BRL\"}}</span>\n </div>\n <div class=\"ownership\" *ngIf=\"ownership\">\n <span class=\"usuario\" *ngIf=\"ownership.usuarioLogin\">{{ownership.usuarioLogin}}</span>\n <span class=\"startEndTime\" *ngIf=\"ownership.startTime\">\n <span class=\"startTime\">{{ownership.startTime | date:\"dd/MM/yy\"}}</span>\n </span>\n </div>\n <span class=\"material-icons desativado\" *ngIf=\"produto?.isAtivo === false\">\n dangerous\n </span>\n <span class=\"material-icons sync-pendente\" *ngIf=\"produto?.enviadoPC === false\">\n cloud_queue\n </span>\n <span class=\"material-icons sync-concluido\" *ngIf=\"produto?.enviadoPC === true\">\n cloud_done\n </span>\n</div>\n<div class=\"badges\">\n <div class=\"badge\" *ngIf=\"produto?.estoqueControlado\" style=\"background-color: orange;\">\n </div>\n <div class=\"badge\" *ngIf=\"produto?.isComposto\" style=\"background-color: rgb(0, 4, 255);\">\n </div>\n <div class=\"badge\" *ngIf=\"produto?.isIngrediente\" style=\"background-color: rgb(0, 133, 143);\">\n </div>\n <div class=\"badge\" *ngIf=\"produto?.emiteNFCe\" style=\"background-color: rgb(204, 0, 68);\">\n </div>\n <div class=\"badge\" *ngIf=\"produto?.disponivelCardapio\" style=\"background-color: rgb(33, 90, 0);\">\n </div>\n</div>", styles: [":host{display:flex;flex-direction:row;border-bottom:1px solid #e6e9ec;border-left:3px solid #e6e9ec;padding:12px 16px;background:#fff;justify-content:space-between;cursor:pointer;flex-shrink:0;align-items:center;transition:border-left-color 1s;-webkit-user-select:none;user-select:none;font-size:small;position:relative}:host:hover{box-shadow:0 0 16px #0000000f;background:transparent;z-index:1}:host(.selected){border-left-color:var(--app-color, black);z-index:1;box-shadow:0 0 8px 5px #00000008;flex-shrink:0;background:linear-gradient(45deg,var(--item-card-selected-bg, rgba(0, 0, 0, .05)),transparent)}.ownership{background:transparent;display:flex;flex-direction:column;align-items:center}.ownership .usuario{font-size:x-small;color:#515962;text-transform:lowercase}.ownership .startTime,.ownership .endTime{font-size:xx-small}.ownership .startEndTime{display:flex;flex-direction:row;color:#464646}.nome-codigo-row{display:flex;flex-direction:row;flex-grow:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right:8px}.icons-row{display:flex;flex-direction:row;align-items:center;gap:8px}.codigo{color:#666;font-size:x-small;border-radius:4px;padding:0 4px;width:50px;min-width:50px;text-align:center;border:1px solid #eee;margin-right:16px;display:flex;align-items:center;justify-content:center}.sync-pendente{color:#141212;font-size:16px}.sync-concluido{color:#dbdbdb;font-size:16px}.star{color:#000}.desativado{color:#8f07bb;font-size:16px}.valor-col{background:transparent;display:flex;flex-direction:column;align-items:center}.valor-col .valor{font-size:xx-small;color:#31b5b0}.badges{display:flex;flex-direction:row;gap:4px;position:absolute;bottom:0;margin-bottom:4px;left:0;margin-left:16px}.badges .badge{background:#f4f4f4;border-radius:9px;height:3px;width:8px;font-size:x-small;color:#22272c;font-family:Courier New,Courier,monospace}\n"] }]
2753
- }], ctorParameters: function () { return [{ type: AuthDataService }]; }, propDecorators: { produto: [{
2754
- type: Input
2755
- }], ownership: [{
2756
- type: Input
2757
- }] } });
2758
-
2759
2574
  class SafeHtmlPipe {
2760
2575
  constructor(sanitizer) {
2761
2576
  this.sanitizer = sanitizer;
@@ -2816,7 +2631,6 @@ class OxpiNglibModule {
2816
2631
  FornecedoresAddDialogComponent,
2817
2632
  FornecedoresEditDialogComponent,
2818
2633
  SelecaoFornecedorDialogComponent,
2819
- ProdutoCardComponent,
2820
2634
  SelecaoListItemComponent], imports: [BrowserModule,
2821
2635
  BrowserAnimationsModule,
2822
2636
  FormsModule,
@@ -2837,7 +2651,6 @@ class OxpiNglibModule {
2837
2651
  CheckButtonComponent,
2838
2652
  RadioButtonGroupComponent,
2839
2653
  ItemCardComponent,
2840
- ProdutoCardComponent,
2841
2654
  SelecaoListItemComponent,
2842
2655
  SafeHtmlPipe] }); }
2843
2656
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OxpiNglibModule, providers: [provideEnvironmentNgxMask()], imports: [BrowserModule,
@@ -2880,7 +2693,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2880
2693
  FornecedoresAddDialogComponent,
2881
2694
  FornecedoresEditDialogComponent,
2882
2695
  SelecaoFornecedorDialogComponent,
2883
- ProdutoCardComponent,
2884
2696
  SelecaoListItemComponent,
2885
2697
  ],
2886
2698
  imports: [
@@ -2907,7 +2719,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2907
2719
  CheckButtonComponent,
2908
2720
  RadioButtonGroupComponent,
2909
2721
  ItemCardComponent,
2910
- ProdutoCardComponent,
2911
2722
  SelecaoListItemComponent,
2912
2723
  SafeHtmlPipe
2913
2724
  ],
@@ -2915,130 +2726,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2915
2726
  }]
2916
2727
  }] });
2917
2728
 
2918
- function validaProdutoGrupo(item, focus) {
2919
- if (valTextEmpty(item.nome)) {
2920
- focus.set('nome');
2921
- return 'Digite um nome válido.';
2922
- }
2923
- return null;
2924
- }
2925
-
2926
- var ModalidadeBaseICMS;
2927
- (function (ModalidadeBaseICMS) {
2928
- ModalidadeBaseICMS[ModalidadeBaseICMS["MargemValorAgregado"] = 0] = "MargemValorAgregado";
2929
- ModalidadeBaseICMS[ModalidadeBaseICMS["PautaValor"] = 1] = "PautaValor";
2930
- ModalidadeBaseICMS[ModalidadeBaseICMS["Pre\u00E7oTabeladoMax"] = 2] = "Pre\u00E7oTabeladoMax";
2931
- ModalidadeBaseICMS[ModalidadeBaseICMS["ValorDaOpera\u00E7\u00E3o"] = 3] = "ValorDaOpera\u00E7\u00E3o";
2932
- })(ModalidadeBaseICMS || (ModalidadeBaseICMS = {}));
2933
- function createProduct() {
2934
- return {
2935
- id: 0,
2936
- nome: '',
2937
- unidade: 'UN',
2938
- precoCusto: 0,
2939
- precoVenda: 0,
2940
- precoFuncionario: 0,
2941
- estoqueMinimo: 0,
2942
- referencia: '',
2943
- aliquotaICMS: null,
2944
- ncm: null,
2945
- grupoId: 0,
2946
- grupoNome: null,
2947
- subgrupoId: 0,
2948
- subgrupoNome: null,
2949
- quantidadeSuite: 0,
2950
- estoqueControlado: true,
2951
- imprimiCozinha: true,
2952
- imprimeCorredor: false,
2953
- verNaRecepcao: true,
2954
- prato: false,
2955
- isAtivo: true,
2956
- isComposto: true,
2957
- isIngrediente: true,
2958
- omiteCliente: false,
2959
- estoqueRecepcao: false,
2960
- estoqueRecepcaoQuantidade: 0,
2961
- gtin: null,
2962
- cfop: null,
2963
- csT_icms: null,
2964
- modBC_icms: 0,
2965
- pICMS_icms: null,
2966
- pRedBC_icms: null,
2967
- pfcP_icms: null,
2968
- vbcfcP_icms: null,
2969
- pfcpsT_icms: null,
2970
- pRedBCEfet_icms: null,
2971
- vbcEfet_icms: null,
2972
- picmsEfet_icms: null,
2973
- vicmsEfet_icms: null,
2974
- csT_pis: null,
2975
- vbC_pis: null,
2976
- ppiS_pis: null,
2977
- csT_cofins: null,
2978
- vbC_cofins: null,
2979
- pcofinS_cofins: null,
2980
- psT_icms: null,
2981
- vbcstRet_icms: null,
2982
- vicmsSubstituto_icms: null,
2983
- vicmsstRet_icms: null,
2984
- emiteNFCe: false,
2985
- cest: null,
2986
- vbcfcpsT_icms: null,
2987
- vbcfcpstRet_icms: null,
2988
- pfcpstRet_icms: null,
2989
- sitTrib: null,
2990
- setorSubEstoqueId: null,
2991
- setorSubEstoqueNome: null,
2992
- setorPrincipalId: null,
2993
- setorPrincipalNome: null,
2994
- qtdMinSubEstoque: null,
2995
- disponivelCardapio: false,
2996
- categoriaCardapioId: null,
2997
- categoriaCardapioNome: null,
2998
- descricao: null,
2999
- enviadoPC: false,
3000
- qbcProd_cofins: null,
3001
- vAliqProd_cofins: null,
3002
- cBenef: null,
3003
- destaque: false,
3004
- variacoes: null,
3005
- adicionalDeProdutoId: null,
3006
- produtoVerificaoGrupoId: null,
3007
- produtoVerificaoGrupoNome: null,
3008
- startTime: undefined,
3009
- endTime: undefined
3010
- };
3011
- }
3012
- ;
3013
- function validaProduto(item, focus) {
3014
- if (valTextEmpty(item.nome)) {
3015
- focus.set('nome');
3016
- return 'Digite um nome válido.';
3017
- }
3018
- if (valNumberEmpty(item.grupoId)) {
3019
- return 'Escolha um grupo de produto.';
3020
- }
3021
- if (valNumberEmpty(item.subgrupoId)) {
3022
- return 'Escolha um subgrupo de produto.';
3023
- }
3024
- if (valTextEmpty(item.unidade)) {
3025
- focus.set('unidade');
3026
- return 'Digite uma unidade.';
3027
- }
3028
- if (item.disponivelCardapio) {
3029
- if (valNumberEmpty(item.categoriaCardapioId))
3030
- return 'Escolha uma categoria do cardápio digital.';
3031
- /*if (valTextEmpty(item.descricao)) {
3032
- focus.set('descricao');
3033
- return 'Digite uma descrição para o cardápio digital.';
3034
- }*/
3035
- }
3036
- return null;
3037
- }
3038
- function validaProdutoInformacoesAdicionais(item, focus) {
3039
- return null;
3040
- }
3041
-
3042
2729
  function validaSetorEstoque(item, focus) {
3043
2730
  if (valTextEmpty(item.nome)) {
3044
2731
  focus.set('nome');
@@ -3047,15 +2734,7 @@ function validaSetorEstoque(item, focus) {
3047
2734
  return null;
3048
2735
  }
3049
2736
 
3050
- function validaProdutoComposicao(item, focus) {
3051
- if (valNumberMin(item.quantidade, 0)) {
3052
- focus.set('quantidade');
3053
- return 'Digite uma quantidade válida.';
3054
- }
3055
- return null;
3056
- }
3057
-
3058
- function valida(item, focus) {
2737
+ function validaOperador(item, focus) {
3059
2738
  if (valTextEmpty(item.login)) {
3060
2739
  focus.set('login');
3061
2740
  return 'Digite um login válido.';
@@ -3350,5 +3029,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
3350
3029
  * Generated bundle index. Do not edit.
3351
3030
  */
3352
3031
 
3353
- 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, NavegacaoSelecaoDialogUtil, NotificationService, NumberParser, NumericPickerComponent, OcupacaoConducao, OcupacaoFilterSetting, OcupacaoSearchDateField, OcupacaoSearchSetting, OcupacaoSearchTipoEntrada, Ordem, Ownership, OxpiNglibModule, PagamentoRecebimentoSearchSetting, PaginatorComponent, PorOcupacaoTipo, Preferences, ProdutoCardComponent, ProdutoSearchSetting, RadioButtonGroupComponent, SafeHtmlPipe, ScreenHelperService, SearchMode, SearchSetting, SelecaoClienteDialogComponent, SelecaoFornecedorDialogComponent, SelecaoListItemComponent, SuitesIntervencoesSetting, confirmaExclusao, convertToStringArquivo, createProduct, fadeAnimation, formatCpfCnpj, formatDayMonthYear, geraNomeArquivo, isNotNullOrUndefined, isNullOrUndefined, menuLateralAnimation, printHtml, printTxt, selectText, setOwnershipLogin, valNumberEmpty, valNumberMin, valTextEmpty, valTextMax, validCpf, valida, validaCnpj, validaPessoa, validaProduto, validaProdutoComposicao, validaProdutoGrupo, validaProdutoInformacoesAdicionais, validaSetorEstoque };
3032
+ 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, NavegacaoSelecaoDialogUtil, NotificationService, NumberParser, NumericPickerComponent, OcupacaoConducao, OcupacaoFilterSetting, OcupacaoSearchDateField, OcupacaoSearchSetting, OcupacaoSearchTipoEntrada, Ordem, Ownership, OxpiNglibModule, PagamentoRecebimentoSearchSetting, PaginatorComponent, PorOcupacaoTipo, Preferences, ProdutoSearchSetting, RadioButtonGroupComponent, SafeHtmlPipe, ScreenHelperService, SearchMode, SearchSetting, SelecaoClienteDialogComponent, SelecaoFornecedorDialogComponent, SelecaoListItemComponent, SuitesIntervencoesSetting, confirmaExclusao, convertToStringArquivo, fadeAnimation, formatCpfCnpj, formatDayMonthYear, geraNomeArquivo, isNotNullOrUndefined, isNullOrUndefined, menuLateralAnimation, printHtml, printTxt, selectText, setOwnershipLogin, valNumberEmpty, valNumberMin, valTextEmpty, valTextMax, validCpf, validaCnpj, validaFuncionario, validaOperador, validaPessoa, validaSetorEstoque };
3354
3033
  //# sourceMappingURL=oxpi-nglib.mjs.map