oxpi-nglib 0.0.51 → 1.0.2
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/esm2020/lib/cadastros/funcionarios/funcionario-add-dialog/funcionario-add-dialog.component.mjs +74 -0
- package/esm2020/lib/cadastros/funcionarios/funcionario-edit-dialog/funcionario-edit-dialog.component.mjs +68 -0
- package/esm2020/lib/cadastros/funcionarios/funcionario-form/funcionario-form.component.mjs +38 -0
- package/esm2020/lib/cadastros/funcionarios/funcionarios/funcionarios.component.mjs +157 -0
- package/esm2020/lib/cadastros/produtos/produto-add-dialog/produto-add-dialog.component.mjs +79 -0
- package/esm2020/lib/cadastros/produtos/produto-busca-filtros-dialog/produto-busca-filtros-dialog.component.mjs +56 -0
- package/esm2020/lib/cadastros/produtos/produto-edit-dialog/produto-edit-dialog.component.mjs +68 -0
- package/esm2020/lib/cadastros/produtos/produto-form/produto-form.component.mjs +343 -0
- package/esm2020/lib/cadastros/produtos/produtos/produtos.component.mjs +211 -0
- package/esm2020/lib/cadastros/produtos-categoria-cardapio/produto-categoria-cardapio-add-dialog/produto-categoria-cardapio-add-dialog.component.mjs +69 -0
- package/esm2020/lib/cadastros/produtos-categoria-cardapio/produto-categoria-cardapio-edit-dialog/produto-categoria-cardapio-edit-dialog.component.mjs +68 -0
- package/esm2020/lib/cadastros/produtos-categoria-cardapio/produto-categoria-cardapio-selecao-dialog/produto-categoria-cardapio-selecao-dialog.component.mjs +106 -0
- package/esm2020/lib/cadastros/produtos-categoria-cardapio/produtos-categorias-cardapio/produtos-categorias-cardapio.component.mjs +156 -0
- package/esm2020/lib/cadastros/produtos-grupos/mover-grupo-dialog/mover-grupo-dialog.component.mjs +65 -0
- package/esm2020/lib/cadastros/produtos-grupos/produto-grupo-add-dialog/produto-grupo-add-dialog.component.mjs +69 -0
- package/esm2020/lib/cadastros/produtos-grupos/produto-grupo-edit-dialog/produto-grupo-edit-dialog.component.mjs +68 -0
- package/esm2020/lib/cadastros/produtos-grupos/produto-grupo-form/produto-grupo-form.component.mjs +18 -0
- package/esm2020/lib/cadastros/produtos-grupos/produto-grupo-selecao-dialog/produto-grupo-selecao-dialog.component.mjs +106 -0
- package/esm2020/lib/cadastros/produtos-grupos/produtos-grupos/produtos-grupos.component.mjs +179 -0
- package/esm2020/lib/cadastros/produtos-ncm-dialog/produtos-ncm-dialog.component.mjs +58 -0
- package/esm2020/lib/cadastros/produtos-subgrupos/produto-subgrupo-add-dialog/produto-subgrupo-add-dialog.component.mjs +71 -0
- package/esm2020/lib/cadastros/produtos-subgrupos/produto-subgrupo-edit-dialog/produto-subgrupo-edit-dialog.component.mjs +68 -0
- package/esm2020/lib/cadastros/produtos-subgrupos/produto-subgrupo-selecao-dialog/produto-subgrupo-selecao-dialog.component.mjs +106 -0
- package/esm2020/lib/cadastros/produtos-subgrupos/produtos-subgrupos/produtos-subgrupos.component.mjs +156 -0
- package/esm2020/lib/controls/alert-dialog/alert-dialog.component.mjs +4 -4
- package/esm2020/lib/controls/busy-indicator/busy-indicator.component.mjs +4 -4
- package/esm2020/lib/controls/check-button/check-button.component.mjs +3 -3
- package/esm2020/lib/controls/image-viewer/image-viewer.component.mjs +6 -6
- package/esm2020/lib/controls/item-card/item-card.component.mjs +3 -3
- package/esm2020/lib/controls/month-year-picker/month-year-picker.component.mjs +3 -3
- package/esm2020/lib/controls/numeric-picker/numeric-picker.component.mjs +6 -6
- package/esm2020/lib/controls/paginator/paginator.component.mjs +3 -3
- package/esm2020/lib/controls/radio-button-group/radio-button-group.component.mjs +5 -5
- package/esm2020/lib/models/entidades/funcionario.mjs +12 -0
- package/esm2020/lib/models/entidades/produto-grupo.mjs +9 -0
- package/esm2020/lib/models/entidades/produto-ncm.mjs +2 -0
- package/esm2020/lib/models/entidades/produto.mjs +106 -0
- package/esm2020/lib/models/entidades/setor-estoque.mjs +2 -0
- package/esm2020/lib/models/infra/number-parser.mjs +1 -1
- package/esm2020/lib/models/infra/selecao-utils.mjs +4 -2
- package/esm2020/lib/models/infra/validations.mjs +1 -1
- package/esm2020/lib/models/tuple.mjs +2 -0
- package/esm2020/lib/oxpi-nglib.module.mjs +100 -15
- package/esm2020/lib/providers/auth-data.service.mjs +219 -0
- package/esm2020/lib/providers/common-web-service.mjs +220 -0
- package/esm2020/lib/providers/export.file.service.mjs +3 -3
- package/esm2020/lib/providers/notification.service.mjs +29 -0
- package/esm2020/lib/providers/preference.service.mjs +3 -3
- package/esm2020/lib/providers/safe-html.pipe.mjs +3 -3
- package/esm2020/lib/providers/screen-helper.service.mjs +3 -3
- package/esm2020/public-api.mjs +8 -1
- package/fesm2015/oxpi-nglib.mjs +3623 -871
- package/fesm2015/oxpi-nglib.mjs.map +1 -1
- package/fesm2020/oxpi-nglib.mjs +3595 -868
- package/fesm2020/oxpi-nglib.mjs.map +1 -1
- package/{oxpi-nglib.d.ts → index.d.ts} +0 -0
- package/lib/cadastros/funcionarios/funcionario-add-dialog/funcionario-add-dialog.component.d.ts +27 -0
- package/lib/cadastros/funcionarios/funcionario-edit-dialog/funcionario-edit-dialog.component.d.ts +27 -0
- package/lib/cadastros/funcionarios/funcionario-form/funcionario-form.component.d.ts +15 -0
- package/lib/cadastros/funcionarios/funcionarios/funcionarios.component.d.ts +36 -0
- package/lib/cadastros/produtos/produto-add-dialog/produto-add-dialog.component.d.ts +28 -0
- package/lib/cadastros/produtos/produto-busca-filtros-dialog/produto-busca-filtros-dialog.component.d.ts +27 -0
- package/lib/cadastros/produtos/produto-edit-dialog/produto-edit-dialog.component.d.ts +27 -0
- package/lib/cadastros/produtos/produto-form/produto-form.component.d.ts +78 -0
- package/lib/cadastros/produtos/produtos/produtos.component.d.ts +44 -0
- package/lib/cadastros/produtos-categoria-cardapio/produto-categoria-cardapio-add-dialog/produto-categoria-cardapio-add-dialog.component.d.ts +27 -0
- package/lib/cadastros/produtos-categoria-cardapio/produto-categoria-cardapio-edit-dialog/produto-categoria-cardapio-edit-dialog.component.d.ts +27 -0
- package/lib/cadastros/produtos-categoria-cardapio/produto-categoria-cardapio-selecao-dialog/produto-categoria-cardapio-selecao-dialog.component.d.ts +35 -0
- package/lib/cadastros/produtos-categoria-cardapio/produtos-categorias-cardapio/produtos-categorias-cardapio.component.d.ts +36 -0
- package/lib/cadastros/produtos-grupos/mover-grupo-dialog/mover-grupo-dialog.component.d.ts +21 -0
- package/lib/cadastros/produtos-grupos/produto-grupo-add-dialog/produto-grupo-add-dialog.component.d.ts +27 -0
- package/lib/cadastros/produtos-grupos/produto-grupo-edit-dialog/produto-grupo-edit-dialog.component.d.ts +27 -0
- package/lib/cadastros/produtos-grupos/produto-grupo-form/produto-grupo-form.component.d.ts +10 -0
- package/lib/cadastros/produtos-grupos/produto-grupo-selecao-dialog/produto-grupo-selecao-dialog.component.d.ts +35 -0
- package/lib/cadastros/produtos-grupos/produtos-grupos/produtos-grupos.component.d.ts +37 -0
- package/lib/cadastros/produtos-ncm-dialog/produtos-ncm-dialog.component.d.ts +29 -0
- package/lib/cadastros/produtos-subgrupos/produto-subgrupo-add-dialog/produto-subgrupo-add-dialog.component.d.ts +27 -0
- package/lib/cadastros/produtos-subgrupos/produto-subgrupo-edit-dialog/produto-subgrupo-edit-dialog.component.d.ts +28 -0
- package/lib/cadastros/produtos-subgrupos/produto-subgrupo-selecao-dialog/produto-subgrupo-selecao-dialog.component.d.ts +35 -0
- package/lib/cadastros/produtos-subgrupos/produtos-subgrupos/produtos-subgrupos.component.d.ts +36 -0
- package/lib/controls/alert-dialog/alert-dialog.component.d.ts +1 -1
- package/lib/controls/busy-indicator/busy-indicator.component.d.ts +1 -1
- package/lib/controls/check-button/check-button.component.d.ts +1 -1
- package/lib/controls/image-viewer/image-viewer.component.d.ts +1 -1
- package/lib/controls/item-card/item-card.component.d.ts +1 -1
- package/lib/controls/month-year-picker/month-year-picker.component.d.ts +1 -1
- package/lib/controls/numeric-picker/numeric-picker.component.d.ts +1 -1
- package/lib/controls/paginator/paginator.component.d.ts +1 -1
- package/lib/controls/radio-button-group/radio-button-group.component.d.ts +1 -1
- package/lib/models/entidades/funcionario.d.ts +15 -0
- package/lib/models/entidades/produto-grupo.d.ts +20 -0
- package/lib/models/entidades/produto-ncm.d.ts +10 -0
- package/lib/models/entidades/produto.d.ts +74 -0
- package/lib/models/entidades/setor-estoque.d.ts +7 -0
- package/lib/models/infra/number-parser.d.ts +1 -1
- package/lib/models/infra/selecao-utils.d.ts +1 -1
- package/lib/models/infra/validations.d.ts +3 -3
- package/lib/models/tuple.d.ts +4 -0
- package/lib/oxpi-nglib.module.d.ts +34 -7
- package/lib/providers/auth-data.service.d.ts +20 -0
- package/lib/providers/common-web-service.d.ts +80 -0
- package/lib/providers/notification.service.d.ts +12 -0
- package/lib/providers/safe-html.pipe.d.ts +1 -1
- package/package.json +5 -10
- package/public-api.d.ts +7 -0
- package/styles/cadastros-listagens-form.scss +15 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { Ncm } from '../../models/entidades/produto-ncm';
|
|
4
|
+
import { LazyTrigger } from '../../models/infra/lazy-trigger';
|
|
5
|
+
import { NavegacaoSelecaoDialogUtil } from '../../models/infra/selecao-utils';
|
|
6
|
+
import { CommonWebService } from '../../providers/common-web-service';
|
|
7
|
+
import { NotificationService } from '../../providers/notification.service';
|
|
8
|
+
import { ScreenHelperService } from '../../providers/screen-helper.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class ProdutosNcmDialogComponent implements OnInit {
|
|
11
|
+
dialogRef: MatDialogRef<ProdutosNcmDialogComponent>;
|
|
12
|
+
dialog: MatDialog;
|
|
13
|
+
private ws;
|
|
14
|
+
private notification;
|
|
15
|
+
private screenHelper;
|
|
16
|
+
isBusy: boolean;
|
|
17
|
+
mobile: boolean;
|
|
18
|
+
frase: string;
|
|
19
|
+
items: Ncm[];
|
|
20
|
+
selectedItem: Ncm | null;
|
|
21
|
+
lazyTrigger: LazyTrigger;
|
|
22
|
+
nav: NavegacaoSelecaoDialogUtil<Ncm, ProdutosNcmDialogComponent>;
|
|
23
|
+
constructor(dialogRef: MatDialogRef<ProdutosNcmDialogComponent>, dialog: MatDialog, ws: CommonWebService, notification: NotificationService, screenHelper: ScreenHelperService);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
atualiza(): void;
|
|
26
|
+
selectItem(i: Ncm): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProdutosNcmDialogComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProdutosNcmDialogComponent, "app-produtos-ncm-dialog", never, {}, {}, never, never, false>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { ProdutoSubgrupo } from '../../../models/entidades/produto-grupo';
|
|
4
|
+
import { CommonWebService } from '../../../providers/common-web-service';
|
|
5
|
+
import { FocusService } from '../../../providers/focus.service';
|
|
6
|
+
import { NotificationService } from '../../../providers/notification.service';
|
|
7
|
+
import { ScreenHelperService } from '../../../providers/screen-helper.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class ProdutoSubgrupoAddDialogComponent implements OnInit {
|
|
10
|
+
private ws;
|
|
11
|
+
private notification;
|
|
12
|
+
dataDialog: ProdutoSubgrupo;
|
|
13
|
+
dialog: MatDialog;
|
|
14
|
+
private elRef;
|
|
15
|
+
private dialogRef;
|
|
16
|
+
private screenHelper;
|
|
17
|
+
model: ProdutoSubgrupo;
|
|
18
|
+
mobile: boolean;
|
|
19
|
+
isBusy: boolean;
|
|
20
|
+
focus: FocusService;
|
|
21
|
+
constructor(ws: CommonWebService, notification: NotificationService, dataDialog: ProdutoSubgrupo, dialog: MatDialog, elRef: ElementRef, dialogRef: MatDialogRef<ProdutoSubgrupoAddDialogComponent>, screenHelper: ScreenHelperService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
salvar(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProdutoSubgrupoAddDialogComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProdutoSubgrupoAddDialogComponent, "app-produto-subgrupo-add-dialog", never, {}, {}, never, never, false>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { ProdutoSubgrupo } from '../../../models/entidades/produto-grupo';
|
|
4
|
+
import { CommonWebService } from '../../../providers/common-web-service';
|
|
5
|
+
import { FocusService } from '../../../providers/focus.service';
|
|
6
|
+
import { NotificationService } from '../../../providers/notification.service';
|
|
7
|
+
import { ScreenHelperService } from '../../../providers/screen-helper.service';
|
|
8
|
+
import { ProdutoGrupoEditDialogComponent } from '../../produtos-grupos/produto-grupo-edit-dialog/produto-grupo-edit-dialog.component';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class ProdutoSubgrupoEditDialogComponent implements OnInit {
|
|
11
|
+
private ws;
|
|
12
|
+
private notification;
|
|
13
|
+
dataDialog: ProdutoSubgrupo;
|
|
14
|
+
dialog: MatDialog;
|
|
15
|
+
private elRef;
|
|
16
|
+
private dialogRef;
|
|
17
|
+
private screenHelper;
|
|
18
|
+
model: ProdutoSubgrupo | undefined;
|
|
19
|
+
mobile: boolean;
|
|
20
|
+
isBusy: boolean;
|
|
21
|
+
focus: FocusService;
|
|
22
|
+
constructor(ws: CommonWebService, notification: NotificationService, dataDialog: ProdutoSubgrupo, dialog: MatDialog, elRef: ElementRef, dialogRef: MatDialogRef<ProdutoGrupoEditDialogComponent>, screenHelper: ScreenHelperService);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
salvar(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProdutoSubgrupoEditDialogComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProdutoSubgrupoEditDialogComponent, "app-produto-subgrupo-edit-dialog", never, {}, {}, never, never, false>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { ProdutoSubgrupo } from '../../../models/entidades/produto-grupo';
|
|
4
|
+
import { LazyTrigger } from '../../../models/infra/lazy-trigger';
|
|
5
|
+
import { NavegacaoSelecaoDialogUtil } from '../../../models/infra/selecao-utils';
|
|
6
|
+
import { SearchSetting } from '../../../models/settings/search-setting';
|
|
7
|
+
import { AuthDataService } from '../../../providers/auth-data.service';
|
|
8
|
+
import { CommonWebService } from '../../../providers/common-web-service';
|
|
9
|
+
import { NotificationService } from '../../../providers/notification.service';
|
|
10
|
+
import { ScreenHelperService } from '../../../providers/screen-helper.service';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class ProdutoSubgrupoSelecaoDialogComponent implements OnInit {
|
|
13
|
+
dialogRef: MatDialogRef<ProdutoSubgrupoSelecaoDialogComponent>;
|
|
14
|
+
dialog: MatDialog;
|
|
15
|
+
private ws;
|
|
16
|
+
private notification;
|
|
17
|
+
private screenHelper;
|
|
18
|
+
items: ProdutoSubgrupo[];
|
|
19
|
+
selectedItem: ProdutoSubgrupo | null;
|
|
20
|
+
isBusy: boolean;
|
|
21
|
+
mobile: boolean;
|
|
22
|
+
setting: SearchSetting;
|
|
23
|
+
allowAdd: boolean;
|
|
24
|
+
allowEdit: boolean;
|
|
25
|
+
lazyTrigger: LazyTrigger;
|
|
26
|
+
nav: NavegacaoSelecaoDialogUtil<ProdutoSubgrupo, ProdutoSubgrupoSelecaoDialogComponent>;
|
|
27
|
+
constructor(dialogRef: MatDialogRef<ProdutoSubgrupoSelecaoDialogComponent>, dialog: MatDialog, ws: CommonWebService, notification: NotificationService, auth: AuthDataService, screenHelper: ScreenHelperService);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
atualiza(): void;
|
|
30
|
+
selectItem(i: ProdutoSubgrupo): void;
|
|
31
|
+
novo(): void;
|
|
32
|
+
editar(): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProdutoSubgrupoSelecaoDialogComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProdutoSubgrupoSelecaoDialogComponent, "app-produto-subgrupo-selecao-dialog", never, {}, {}, never, never, false>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { ProdutoSubgrupo } from '../../../models/entidades/produto-grupo';
|
|
4
|
+
import { LazyTrigger } from '../../../models/infra/lazy-trigger';
|
|
5
|
+
import { SearchSetting } from '../../../models/settings/search-setting';
|
|
6
|
+
import { AuthDataService } from '../../../providers/auth-data.service';
|
|
7
|
+
import { CommonWebService } from '../../../providers/common-web-service';
|
|
8
|
+
import { NotificationService } from '../../../providers/notification.service';
|
|
9
|
+
import { ScreenHelperService } from '../../../providers/screen-helper.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class ProdutosSubgruposComponent implements OnInit {
|
|
12
|
+
private ws;
|
|
13
|
+
private notification;
|
|
14
|
+
dialog: MatDialog;
|
|
15
|
+
private screenHelper;
|
|
16
|
+
mobile: boolean;
|
|
17
|
+
isBusy: boolean;
|
|
18
|
+
items: ProdutoSubgrupo[];
|
|
19
|
+
selectedItem: ProdutoSubgrupo | null;
|
|
20
|
+
lazyTrigger: LazyTrigger;
|
|
21
|
+
allowAdd: boolean;
|
|
22
|
+
allowExcluir: boolean;
|
|
23
|
+
setting: SearchSetting;
|
|
24
|
+
private focus;
|
|
25
|
+
constructor(ws: CommonWebService, notification: NotificationService, dialog: MatDialog, auth: AuthDataService, screenHelper: ScreenHelperService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
onSelectItem(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
atualiza(): void;
|
|
30
|
+
excluir(): void;
|
|
31
|
+
novo(): void;
|
|
32
|
+
abreCadastro(item: ProdutoSubgrupo): void;
|
|
33
|
+
salvar(): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProdutosSubgruposComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProdutosSubgruposComponent, "app-produtos-subgrupos", never, {}, {}, never, never, false>;
|
|
36
|
+
}
|
|
@@ -7,7 +7,7 @@ export declare class AlertDialogComponent implements OnInit {
|
|
|
7
7
|
constructor(dialogRef: MatDialogRef<AlertDialogComponent>, args: AlertDialogArgs);
|
|
8
8
|
ngOnInit(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertDialogComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertDialogComponent, "app-alert-dialog", never, {}, {}, never, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertDialogComponent, "app-alert-dialog", never, {}, {}, never, never, false>;
|
|
11
11
|
}
|
|
12
12
|
export interface AlertDialogArgs {
|
|
13
13
|
titulo: string;
|
|
@@ -5,5 +5,5 @@ export declare class BusyIndicatorComponent implements OnInit {
|
|
|
5
5
|
constructor();
|
|
6
6
|
ngOnInit(): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<BusyIndicatorComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BusyIndicatorComponent, "ox-busy-indicator", never, { "isBusy": "isBusy"; }, {}, never, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BusyIndicatorComponent, "ox-busy-indicator", never, { "isBusy": "isBusy"; }, {}, never, never, false>;
|
|
9
9
|
}
|
|
@@ -8,5 +8,5 @@ export declare class CheckButtonComponent implements OnInit {
|
|
|
8
8
|
ngOnInit(): void;
|
|
9
9
|
onClick(e: any): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckButtonComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckButtonComponent, "ox-check-button", never, { "checked": "checked"; "radioBehavior": "radioBehavior"; }, { "changed": "changed"; }, never, ["*"]>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckButtonComponent, "ox-check-button", never, { "checked": "checked"; "radioBehavior": "radioBehavior"; }, { "changed": "changed"; }, never, ["*"], false>;
|
|
12
12
|
}
|
|
@@ -18,7 +18,7 @@ export declare class ImageViewerComponent implements OnInit {
|
|
|
18
18
|
goBack(): void;
|
|
19
19
|
updateUI(): void;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageViewerComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageViewerComponent, "ox-image-viewer", never, { "info": "info"; "infos": "infos"; "isOpen": "isOpen"; }, { "isOpenChange": "isOpenChange"; }, never, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageViewerComponent, "ox-image-viewer", never, { "info": "info"; "infos": "infos"; "isOpen": "isOpen"; }, { "isOpenChange": "isOpenChange"; }, never, never, false>;
|
|
22
22
|
}
|
|
23
23
|
export interface ImageViewerInfo {
|
|
24
24
|
url: string;
|
|
@@ -9,5 +9,5 @@ export declare class ItemCardComponent implements OnInit {
|
|
|
9
9
|
constructor();
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ItemCardComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItemCardComponent, "ox-item-card", never, { "nome": "nome"; "codigo": "codigo"; "star": "star"; "cloud": "cloud"; "desativado": "desativado"; }, {}, never, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItemCardComponent, "ox-item-card", never, { "nome": "nome"; "codigo": "codigo"; "star": "star"; "cloud": "cloud"; "desativado": "desativado"; }, {}, never, never, false>;
|
|
13
13
|
}
|
|
@@ -25,7 +25,7 @@ export declare class MonthYearPickerComponent implements OnInit {
|
|
|
25
25
|
updateText(): void;
|
|
26
26
|
raiseOnSelectionChanged(): void;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonthYearPickerComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MonthYearPickerComponent, "ox-month-year-picker", never, { "blockFuture": "blockFuture"; "modoAnual": "modoAnual"; "ano": "ano"; "mes": "mes"; }, { "anoChange": "anoChange"; "mesChange": "mesChange"; "changed": "changed"; }, never, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonthYearPickerComponent, "ox-month-year-picker", never, { "blockFuture": "blockFuture"; "modoAnual": "modoAnual"; "ano": "ano"; "mes": "mes"; }, { "anoChange": "anoChange"; "mesChange": "mesChange"; "changed": "changed"; }, never, never, false>;
|
|
29
29
|
}
|
|
30
30
|
export interface MonthYear {
|
|
31
31
|
mes: number;
|
|
@@ -24,5 +24,5 @@ export declare class NumericPickerComponent implements OnInit {
|
|
|
24
24
|
valida(val: any): boolean;
|
|
25
25
|
raiseChange(): void;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumericPickerComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumericPickerComponent, "ox-numeric-picker", never, { "value": "value"; "max": "max"; "min": "min"; }, { "valueChange": "valueChange"; "change": "change"; }, never, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericPickerComponent, "ox-numeric-picker", never, { "value": "value"; "max": "max"; "min": "min"; }, { "valueChange": "valueChange"; "change": "change"; }, never, never, false>;
|
|
28
28
|
}
|
|
@@ -20,5 +20,5 @@ export declare class PaginatorComponent implements OnInit {
|
|
|
20
20
|
goBack(): void;
|
|
21
21
|
goNext(): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatorComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PaginatorComponent, "ox-paginator", never, { "pageSize": "pageSize"; "paginaAtual": "paginaAtual"; "totalPaginas": "totalPaginas"; }, { "paginaAtualChange": "paginaAtualChange"; "totalPaginasChange": "totalPaginasChange"; "change": "change"; }, never, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginatorComponent, "ox-paginator", never, { "pageSize": "pageSize"; "paginaAtual": "paginaAtual"; "totalPaginas": "totalPaginas"; }, { "paginaAtualChange": "paginaAtualChange"; "totalPaginasChange": "totalPaginasChange"; "change": "change"; }, never, never, false>;
|
|
24
24
|
}
|
|
@@ -10,7 +10,7 @@ export declare class RadioButtonGroupComponent implements OnInit {
|
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
raiseChange(item: RadioButtonGroupData): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonGroupComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonGroupComponent, "ox-radio-button-group", never, { "selectedItem": "selectedItem"; "items": "items"; }, { "change": "change"; }, never, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonGroupComponent, "ox-radio-button-group", never, { "selectedItem": "selectedItem"; "items": "items"; }, { "change": "change"; }, never, never, false>;
|
|
14
14
|
}
|
|
15
15
|
export interface RadioButtonGroupData {
|
|
16
16
|
name: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FocusService } from "../../providers/focus.service";
|
|
2
|
+
export interface Funcionario {
|
|
3
|
+
id: number;
|
|
4
|
+
nome: string;
|
|
5
|
+
cargoId: number;
|
|
6
|
+
login: string;
|
|
7
|
+
senha: string;
|
|
8
|
+
enviadoPC: boolean;
|
|
9
|
+
isAtivo: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface FuncionarioCargo {
|
|
12
|
+
id: number;
|
|
13
|
+
nome: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function valida(item: Funcionario, focus: FocusService): string | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FocusService } from "../../providers/focus.service";
|
|
2
|
+
export interface ProdutoGrupo {
|
|
3
|
+
id: number;
|
|
4
|
+
nome: string;
|
|
5
|
+
isAtivo: boolean;
|
|
6
|
+
enviadoPC: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ProdutoSubgrupo {
|
|
9
|
+
id: number;
|
|
10
|
+
nome: string;
|
|
11
|
+
isAtivo: boolean;
|
|
12
|
+
enviadoPC: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface ProdutoCategoriaCardapio {
|
|
15
|
+
id: number;
|
|
16
|
+
nome: string;
|
|
17
|
+
isAtivo: boolean;
|
|
18
|
+
enviadoPC: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function valida(item: ProdutoGrupo | ProdutoSubgrupo | ProdutoCategoriaCardapio, focus: FocusService): string | null;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { FocusService } from "../../providers/focus.service";
|
|
2
|
+
export interface Produto {
|
|
3
|
+
enviadoPC: boolean;
|
|
4
|
+
id: number;
|
|
5
|
+
nome: string;
|
|
6
|
+
unidade: string;
|
|
7
|
+
precoCusto: number;
|
|
8
|
+
precoVenda: number;
|
|
9
|
+
precoFuncionario: number;
|
|
10
|
+
estoqueMinimo: number;
|
|
11
|
+
referencia: string;
|
|
12
|
+
aliquotaICMS: string | null;
|
|
13
|
+
ncm: string | null;
|
|
14
|
+
grupoId: number;
|
|
15
|
+
grupoNome: string | null;
|
|
16
|
+
subgrupoId: number;
|
|
17
|
+
subgrupoNome: string | null;
|
|
18
|
+
quantidadeSuite: number;
|
|
19
|
+
estoqueControlado: boolean;
|
|
20
|
+
imprimiCozinha: boolean;
|
|
21
|
+
imprimeCorredor: boolean;
|
|
22
|
+
verNaRecepcao: boolean;
|
|
23
|
+
prato: boolean;
|
|
24
|
+
isAtivo: boolean;
|
|
25
|
+
isComposto: boolean;
|
|
26
|
+
isIngrediente: boolean;
|
|
27
|
+
omiteCliente: boolean;
|
|
28
|
+
estoqueRecepcao: boolean;
|
|
29
|
+
estoqueRecepcaoQuantidade: number;
|
|
30
|
+
disponivelCardapio: boolean;
|
|
31
|
+
categoriaCardapioId: number | null;
|
|
32
|
+
categoriaCardapioNome: string | null;
|
|
33
|
+
descricao: string | null;
|
|
34
|
+
gtin: string | null;
|
|
35
|
+
cfop: string | null;
|
|
36
|
+
csT_icms: string | null;
|
|
37
|
+
modBC_icms: number;
|
|
38
|
+
pICMS_icms: number | null;
|
|
39
|
+
pRedBC_icms: number | null;
|
|
40
|
+
pfcP_icms: number | null;
|
|
41
|
+
vbcfcP_icms: number | null;
|
|
42
|
+
pfcpsT_icms: number | null;
|
|
43
|
+
pRedBCEfet_icms: number | null;
|
|
44
|
+
vbcEfet_icms: number | null;
|
|
45
|
+
picmsEfet_icms: number | null;
|
|
46
|
+
vicmsEfet_icms: number | null;
|
|
47
|
+
csT_pis: string | null;
|
|
48
|
+
vbC_pis: number | null;
|
|
49
|
+
ppiS_pis: number | null;
|
|
50
|
+
csT_cofins: string | null;
|
|
51
|
+
vbC_cofins: number | null;
|
|
52
|
+
pcofinS_cofins: number | null;
|
|
53
|
+
psT_icms: number | null;
|
|
54
|
+
vbcstRet_icms: number | null;
|
|
55
|
+
vicmsSubstituto_icms: number | null;
|
|
56
|
+
vicmsstRet_icms: number | null;
|
|
57
|
+
emiteNFCe: boolean;
|
|
58
|
+
cest: number | null;
|
|
59
|
+
vbcfcpsT_icms: number | null;
|
|
60
|
+
vbcfcpstRet_icms: number | null;
|
|
61
|
+
pfcpstRet_icms: number | null;
|
|
62
|
+
qbcProd_cofins: number | null;
|
|
63
|
+
vAliqProd_cofins: number | null;
|
|
64
|
+
sitTrib: string | null;
|
|
65
|
+
setorSubEstoqueId: number | null;
|
|
66
|
+
setorSubEstoqueNome: string | null;
|
|
67
|
+
setorPrincipalId: number | null;
|
|
68
|
+
setorPrincipalNome: string | null;
|
|
69
|
+
qtdMinSubEstoque: number | null;
|
|
70
|
+
codigoPatrimonio?: string | null;
|
|
71
|
+
obs?: string | null;
|
|
72
|
+
}
|
|
73
|
+
export declare function createProduct(): Produto;
|
|
74
|
+
export declare function valida(item: Produto, focus: FocusService): string | null;
|
|
@@ -6,7 +6,7 @@ export declare class NumberParser {
|
|
|
6
6
|
private _parseTrigger;
|
|
7
7
|
valor: string | undefined;
|
|
8
8
|
parsed: boolean;
|
|
9
|
-
constructor(setPropFunc: (newValue: number) => void, getPropFunc: () => number, min?: number | undefined, max?: number | undefined, triggerMilliseconds?: number);
|
|
9
|
+
constructor(setPropFunc: (newValue: number | null) => void, getPropFunc: () => number | null, min?: number | undefined, max?: number | undefined, triggerMilliseconds?: number);
|
|
10
10
|
parse(vlr: string): void;
|
|
11
11
|
store(vlr: string): void;
|
|
12
12
|
checkout(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function valTextEmpty(v: string): boolean;
|
|
2
|
-
export declare function valNumberEmpty(v: number): boolean;
|
|
1
|
+
export declare function valTextEmpty(v: string | null | undefined): boolean;
|
|
2
|
+
export declare function valNumberEmpty(v: number | null | undefined): boolean;
|
|
3
3
|
export declare function valTextMax(v: string, max: number): boolean;
|
|
4
|
-
export declare function valNumberMin(v: number, min: number): boolean;
|
|
4
|
+
export declare function valNumberMin(v: number | null | undefined, min: number): boolean;
|
|
@@ -9,18 +9,45 @@ import * as i7 from "./controls/radio-button-group/radio-button-group.component"
|
|
|
9
9
|
import * as i8 from "./controls/item-card/item-card.component";
|
|
10
10
|
import * as i9 from "./providers/safe-html.pipe";
|
|
11
11
|
import * as i10 from "./controls/alert-dialog/alert-dialog.component";
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
12
|
+
import * as i11 from "./cadastros/funcionarios/funcionarios/funcionarios.component";
|
|
13
|
+
import * as i12 from "./cadastros/funcionarios/funcionario-form/funcionario-form.component";
|
|
14
|
+
import * as i13 from "./cadastros/funcionarios/funcionario-edit-dialog/funcionario-edit-dialog.component";
|
|
15
|
+
import * as i14 from "./cadastros/funcionarios/funcionario-add-dialog/funcionario-add-dialog.component";
|
|
16
|
+
import * as i15 from "./cadastros/produtos/produtos/produtos.component";
|
|
17
|
+
import * as i16 from "./cadastros/produtos/produto-form/produto-form.component";
|
|
18
|
+
import * as i17 from "./cadastros/produtos/produto-add-dialog/produto-add-dialog.component";
|
|
19
|
+
import * as i18 from "./cadastros/produtos/produto-busca-filtros-dialog/produto-busca-filtros-dialog.component";
|
|
20
|
+
import * as i19 from "./cadastros/produtos/produto-edit-dialog/produto-edit-dialog.component";
|
|
21
|
+
import * as i20 from "./cadastros/produtos-grupos/produtos-grupos/produtos-grupos.component";
|
|
22
|
+
import * as i21 from "./cadastros/produtos-grupos/mover-grupo-dialog/mover-grupo-dialog.component";
|
|
23
|
+
import * as i22 from "./cadastros/produtos-grupos/produto-grupo-selecao-dialog/produto-grupo-selecao-dialog.component";
|
|
24
|
+
import * as i23 from "./cadastros/produtos-grupos/produto-grupo-add-dialog/produto-grupo-add-dialog.component";
|
|
25
|
+
import * as i24 from "./cadastros/produtos-grupos/produto-grupo-edit-dialog/produto-grupo-edit-dialog.component";
|
|
26
|
+
import * as i25 from "./cadastros/produtos-grupos/produto-grupo-form/produto-grupo-form.component";
|
|
27
|
+
import * as i26 from "./cadastros/produtos-ncm-dialog/produtos-ncm-dialog.component";
|
|
28
|
+
import * as i27 from "./cadastros/produtos-subgrupos/produtos-subgrupos/produtos-subgrupos.component";
|
|
29
|
+
import * as i28 from "./cadastros/produtos-subgrupos/produto-subgrupo-selecao-dialog/produto-subgrupo-selecao-dialog.component";
|
|
30
|
+
import * as i29 from "./cadastros/produtos-subgrupos/produto-subgrupo-add-dialog/produto-subgrupo-add-dialog.component";
|
|
31
|
+
import * as i30 from "./cadastros/produtos-subgrupos/produto-subgrupo-edit-dialog/produto-subgrupo-edit-dialog.component";
|
|
32
|
+
import * as i31 from "./cadastros/produtos-categoria-cardapio/produtos-categorias-cardapio/produtos-categorias-cardapio.component";
|
|
33
|
+
import * as i32 from "./cadastros/produtos-categoria-cardapio/produto-categoria-cardapio-add-dialog/produto-categoria-cardapio-add-dialog.component";
|
|
34
|
+
import * as i33 from "./cadastros/produtos-categoria-cardapio/produto-categoria-cardapio-edit-dialog/produto-categoria-cardapio-edit-dialog.component";
|
|
35
|
+
import * as i34 from "./cadastros/produtos-categoria-cardapio/produto-categoria-cardapio-selecao-dialog/produto-categoria-cardapio-selecao-dialog.component";
|
|
36
|
+
import * as i35 from "@angular/platform-browser";
|
|
37
|
+
import * as i36 from "@angular/platform-browser/animations";
|
|
38
|
+
import * as i37 from "@angular/forms";
|
|
39
|
+
import * as i38 from "@angular/material/button";
|
|
40
|
+
import * as i39 from "@angular/material/icon";
|
|
41
|
+
import * as i40 from "@angular/material/dialog";
|
|
42
|
+
import * as i41 from "@angular/material/select";
|
|
43
|
+
import * as i42 from "@angular/material/autocomplete";
|
|
18
44
|
declare global {
|
|
19
45
|
interface String {
|
|
20
46
|
isEmpty(): boolean;
|
|
21
47
|
}
|
|
22
48
|
interface Array<T> {
|
|
23
49
|
firstOrNull(): T | null;
|
|
50
|
+
remove(item: T): boolean;
|
|
24
51
|
}
|
|
25
52
|
interface Date {
|
|
26
53
|
addDays(days: number): Date;
|
|
@@ -28,6 +55,6 @@ declare global {
|
|
|
28
55
|
}
|
|
29
56
|
export declare class OxpiNglibModule {
|
|
30
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<OxpiNglibModule, never>;
|
|
31
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<OxpiNglibModule, [typeof i1.BusyIndicatorComponent, typeof i2.MonthYearPickerComponent, typeof i3.ImageViewerComponent, typeof i4.NumericPickerComponent, typeof i5.PaginatorComponent, typeof i6.CheckButtonComponent, typeof i7.RadioButtonGroupComponent, typeof i8.ItemCardComponent, typeof i9.SafeHtmlPipe, typeof i10.AlertDialogComponent], [typeof
|
|
58
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<OxpiNglibModule, [typeof i1.BusyIndicatorComponent, typeof i2.MonthYearPickerComponent, typeof i3.ImageViewerComponent, typeof i4.NumericPickerComponent, typeof i5.PaginatorComponent, typeof i6.CheckButtonComponent, typeof i7.RadioButtonGroupComponent, typeof i8.ItemCardComponent, typeof i9.SafeHtmlPipe, typeof i10.AlertDialogComponent, typeof i11.FuncionariosComponent, typeof i12.FuncionarioFormComponent, typeof i13.FuncionarioEditDialogComponent, typeof i14.FuncionarioAddDialogComponent, typeof i15.ProdutosComponent, typeof i16.ProdutoFormComponent, typeof i17.ProdutoAddDialogComponent, typeof i18.ProdutoBuscaFiltrosDialogComponent, typeof i19.ProdutoEditDialogComponent, typeof i20.ProdutosGruposComponent, typeof i21.MoverGrupoDialogComponent, typeof i22.ProdutoGrupoSelecaoDialogComponent, typeof i23.ProdutoGrupoAddDialogComponent, typeof i24.ProdutoGrupoEditDialogComponent, typeof i25.ProdutoGrupoFormComponent, typeof i26.ProdutosNcmDialogComponent, typeof i27.ProdutosSubgruposComponent, typeof i28.ProdutoSubgrupoSelecaoDialogComponent, typeof i29.ProdutoSubgrupoAddDialogComponent, typeof i30.ProdutoSubgrupoEditDialogComponent, typeof i31.ProdutosCategoriasCardapioComponent, typeof i32.ProdutoCategoriaCardapioAddDialogComponent, typeof i33.ProdutoCategoriaCardapioEditDialogComponent, typeof i34.ProdutoCategoriaCardapioSelecaoDialogComponent], [typeof i35.BrowserModule, typeof i36.BrowserAnimationsModule, typeof i37.FormsModule, typeof i38.MatButtonModule, typeof i39.MatIconModule, typeof i40.MatDialogModule, typeof i41.MatSelectModule, typeof i42.MatAutocompleteModule], [typeof i1.BusyIndicatorComponent, typeof i2.MonthYearPickerComponent, typeof i3.ImageViewerComponent, typeof i4.NumericPickerComponent, typeof i5.PaginatorComponent, typeof i6.CheckButtonComponent, typeof i7.RadioButtonGroupComponent, typeof i8.ItemCardComponent, typeof i9.SafeHtmlPipe]>;
|
|
32
59
|
static ɵinj: i0.ɵɵInjectorDeclaration<OxpiNglibModule>;
|
|
33
60
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LoginResult } from '../models/entidades/login-result';
|
|
2
|
+
import { Permissoes } from '../models/entidades/permissoes';
|
|
3
|
+
import { SensoresDef } from '../models/entidades/sensores-def';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AuthDataService {
|
|
6
|
+
isLoggedIn: boolean;
|
|
7
|
+
token: string;
|
|
8
|
+
sensoresDef: SensoresDef;
|
|
9
|
+
permissoes: Permissoes;
|
|
10
|
+
empresaNome: string;
|
|
11
|
+
empresaId: number;
|
|
12
|
+
loginNome: string;
|
|
13
|
+
userId: number;
|
|
14
|
+
email: string;
|
|
15
|
+
nome: string;
|
|
16
|
+
constructor();
|
|
17
|
+
login(result: LoginResult): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthDataService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthDataService>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Funcionario, FuncionarioCargo } from '../models/entidades/funcionario';
|
|
4
|
+
import { Produto } from '../models/entidades/produto';
|
|
5
|
+
import { ProdutoCategoriaCardapio, ProdutoGrupo, ProdutoSubgrupo } from '../models/entidades/produto-grupo';
|
|
6
|
+
import { Ncm } from '../models/entidades/produto-ncm';
|
|
7
|
+
import { SetorEstoque } from '../models/entidades/setor-estoque';
|
|
8
|
+
import { PagingResult } from '../models/infra/paging-result';
|
|
9
|
+
import { SearchSetting } from '../models/settings/search-setting';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class CommonWebService {
|
|
12
|
+
private http;
|
|
13
|
+
ROOT_URL: string;
|
|
14
|
+
GERENCIAL_URL: string;
|
|
15
|
+
FUNCIONARIO_BASE_URL: string;
|
|
16
|
+
FUNCIONARIO_CARGO_BASE_URL: string;
|
|
17
|
+
token: string;
|
|
18
|
+
PRODUTO_BASE_URL: string;
|
|
19
|
+
PRODUTO_GRUPO_BASE_URL: string;
|
|
20
|
+
PRODUTO_SUBGRUPO_BASE_URL: string;
|
|
21
|
+
PRODUTO_CATEGORIA_CARDAPIO_BASE_URL: string;
|
|
22
|
+
ESTOQUE_URL: string;
|
|
23
|
+
MEDIA_BASE_URL: string;
|
|
24
|
+
MEDIA_PRODUTO_IMAGEM_URL: string;
|
|
25
|
+
static URL_PART_BUSCA: string;
|
|
26
|
+
static URL_PART_NEXT_ID: string;
|
|
27
|
+
static URL_PART_BUSCA_PAGINADA: string;
|
|
28
|
+
constructor(http: HttpClient);
|
|
29
|
+
setToken(token: string): void;
|
|
30
|
+
start(rootUrl: string): void;
|
|
31
|
+
getFuncionarios(): Observable<Funcionario[]>;
|
|
32
|
+
getFuncionariosCargos(): Observable<FuncionarioCargo[]>;
|
|
33
|
+
buscaFuncionario(setting: SearchSetting): Observable<Funcionario[]>;
|
|
34
|
+
getNextIdFuncionario(): Observable<number>;
|
|
35
|
+
getAllFuncionario(): Observable<number>;
|
|
36
|
+
saveFuncionario(s: Funcionario): Observable<any>;
|
|
37
|
+
addFuncionario(p: Funcionario): Observable<any>;
|
|
38
|
+
deleteFuncionario(id: number): Observable<any>;
|
|
39
|
+
buscaPaginadaProdutos(setting: SearchSetting, page: number, pageSize: number): Observable<PagingResult<Produto>>;
|
|
40
|
+
getNextIdProduto(): Observable<number>;
|
|
41
|
+
saveProduto(s: Produto): Observable<any>;
|
|
42
|
+
addProduto(p: Produto): Observable<any>;
|
|
43
|
+
deleteProduto(id: number): Observable<any>;
|
|
44
|
+
buscaProdutoGrupo(setting: SearchSetting): Observable<ProdutoGrupo[]>;
|
|
45
|
+
getAllProdutoGrupo(): Observable<ProdutoGrupo[]>;
|
|
46
|
+
getNextIdProdutoGrupo(): Observable<number>;
|
|
47
|
+
saveProdutoGrupo(s: ProdutoGrupo): Observable<any>;
|
|
48
|
+
transfereProdutoGrupo(grupoId: number, novoGrupoId: number): Observable<number>;
|
|
49
|
+
addProdutoGrupo(p: ProdutoGrupo): Observable<any>;
|
|
50
|
+
deleteProdutoGrupo(id: number): Observable<any>;
|
|
51
|
+
buscaNcm(ncm: string): Observable<Ncm[]>;
|
|
52
|
+
findNcm(ncm: string): Observable<Ncm | null>;
|
|
53
|
+
buscaProdutoSubgrupo(setting: SearchSetting): Observable<ProdutoSubgrupo[]>;
|
|
54
|
+
getNextIdProdutoSubgrupo(): Observable<number>;
|
|
55
|
+
saveProdutoSubgrupo(s: ProdutoSubgrupo): Observable<any>;
|
|
56
|
+
addProdutoSubgrupo(p: ProdutoSubgrupo): Observable<any>;
|
|
57
|
+
deleteProdutoSubgrupo(id: number): Observable<any>;
|
|
58
|
+
buscaProdutoCategoriaCardapio(setting: SearchSetting): Observable<ProdutoCategoriaCardapio[]>;
|
|
59
|
+
getNextIdProdutoCategoriaCardapio(): Observable<number>;
|
|
60
|
+
saveProdutoCategoriaCardapio(s: ProdutoCategoriaCardapio): Observable<any>;
|
|
61
|
+
addProdutoCategoriaCardapio(p: ProdutoCategoriaCardapio): Observable<any>;
|
|
62
|
+
deleteProdutoCategoriaCardapio(id: number): Observable<any>;
|
|
63
|
+
getAllSetores(): Observable<SetorEstoque[]>;
|
|
64
|
+
getHttpOptions(parameters?: HttpParams): {
|
|
65
|
+
headers: HttpHeaders;
|
|
66
|
+
params: HttpParams | undefined;
|
|
67
|
+
};
|
|
68
|
+
getExcelOptions(parameters?: HttpParams): {
|
|
69
|
+
headers: HttpHeaders;
|
|
70
|
+
params: HttpParams | undefined;
|
|
71
|
+
responseType: "json";
|
|
72
|
+
};
|
|
73
|
+
getHtmlOptions(parameters?: HttpParams): {
|
|
74
|
+
headers: HttpHeaders;
|
|
75
|
+
params: HttpParams | undefined;
|
|
76
|
+
responseType: "json";
|
|
77
|
+
};
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonWebService, never>;
|
|
79
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CommonWebService>;
|
|
80
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
2
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NotificationService {
|
|
5
|
+
snackBar: MatSnackBar;
|
|
6
|
+
constructor(snackBar: MatSnackBar);
|
|
7
|
+
showHttpError(res: HttpErrorResponse): void;
|
|
8
|
+
showMsg(msg: string): void;
|
|
9
|
+
showMsgError(msg: string): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
12
|
+
}
|
|
@@ -6,5 +6,5 @@ export declare class SafeHtmlPipe implements PipeTransform {
|
|
|
6
6
|
constructor(sanitizer: DomSanitizer);
|
|
7
7
|
transform(html: string): import("@angular/platform-browser").SafeHtml;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml">;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", false>;
|
|
10
10
|
}
|