oxpi-nglib 0.0.50 → 1.0.1
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/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/oxpi-nglib.module.mjs +36 -15
- package/esm2020/lib/providers/auth-data.service.mjs +219 -0
- package/esm2020/lib/providers/common-web-service.mjs +98 -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 +1135 -482
- package/fesm2015/oxpi-nglib.mjs.map +1 -1
- package/fesm2020/oxpi-nglib.mjs +1129 -480
- 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/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/oxpi-nglib.module.d.ts +13 -7
- package/lib/providers/auth-data.service.d.ts +20 -0
- package/lib/providers/common-web-service.d.ts +42 -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/lib/cadastros/funcionarios/funcionario-edit-dialog/funcionario-edit-dialog.component.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { Funcionario } from '../../../models/entidades/funcionario';
|
|
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 FuncionarioEditDialogComponent implements OnInit {
|
|
10
|
+
private ws;
|
|
11
|
+
private notification;
|
|
12
|
+
dataDialog: Funcionario;
|
|
13
|
+
dialog: MatDialog;
|
|
14
|
+
private elRef;
|
|
15
|
+
private dialogRef;
|
|
16
|
+
private screenHelper;
|
|
17
|
+
model?: Funcionario;
|
|
18
|
+
mobile: boolean;
|
|
19
|
+
isBusy: boolean;
|
|
20
|
+
focus: FocusService;
|
|
21
|
+
constructor(ws: CommonWebService, notification: NotificationService, dataDialog: Funcionario, dialog: MatDialog, elRef: ElementRef, dialogRef: MatDialogRef<FuncionarioEditDialogComponent>, screenHelper: ScreenHelperService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
salvar(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FuncionarioEditDialogComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FuncionarioEditDialogComponent, "ox-funcionario-edit-dialog", never, {}, {}, never, never, false>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Funcionario, FuncionarioCargo } from '../../../models/entidades/funcionario';
|
|
3
|
+
import { CommonWebService } from '../../../providers/common-web-service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FuncionarioFormComponent implements OnInit {
|
|
6
|
+
private ws;
|
|
7
|
+
model?: Funcionario;
|
|
8
|
+
isBusy: boolean;
|
|
9
|
+
cargos: FuncionarioCargo[];
|
|
10
|
+
constructor(ws: CommonWebService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
getCargos(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FuncionarioFormComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FuncionarioFormComponent, "ox-funcionario-form", never, { "model": "model"; }, {}, never, never, false>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { Funcionario } from '../../../models/entidades/funcionario';
|
|
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 FuncionariosComponent implements OnInit {
|
|
12
|
+
private ws;
|
|
13
|
+
private notification;
|
|
14
|
+
dialog: MatDialog;
|
|
15
|
+
private screenHelper;
|
|
16
|
+
mobile: boolean;
|
|
17
|
+
isBusy: boolean;
|
|
18
|
+
items: Funcionario[];
|
|
19
|
+
selectedItem: Funcionario | 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: Funcionario): void;
|
|
33
|
+
salvar(): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FuncionariosComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FuncionariosComponent, "ox-funcionarios", 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;
|
|
@@ -9,18 +9,24 @@ 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 "@angular/
|
|
17
|
-
import * as i16 from "@angular/
|
|
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 "@angular/platform-browser";
|
|
17
|
+
import * as i16 from "@angular/platform-browser/animations";
|
|
18
|
+
import * as i17 from "@angular/forms";
|
|
19
|
+
import * as i18 from "@angular/material/button";
|
|
20
|
+
import * as i19 from "@angular/material/icon";
|
|
21
|
+
import * as i20 from "@angular/material/dialog";
|
|
22
|
+
import * as i21 from "@angular/material/select";
|
|
18
23
|
declare global {
|
|
19
24
|
interface String {
|
|
20
25
|
isEmpty(): boolean;
|
|
21
26
|
}
|
|
22
27
|
interface Array<T> {
|
|
23
28
|
firstOrNull(): T | null;
|
|
29
|
+
remove(item: T): boolean;
|
|
24
30
|
}
|
|
25
31
|
interface Date {
|
|
26
32
|
addDays(days: number): Date;
|
|
@@ -28,6 +34,6 @@ declare global {
|
|
|
28
34
|
}
|
|
29
35
|
export declare class OxpiNglibModule {
|
|
30
36
|
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
|
|
37
|
+
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.BrowserModule, typeof i16.BrowserAnimationsModule, typeof i17.FormsModule, typeof i18.MatButtonModule, typeof i19.MatIconModule, typeof i20.MatDialogModule, typeof i21.MatSelectModule], [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
38
|
static ɵinj: i0.ɵɵInjectorDeclaration<OxpiNglibModule>;
|
|
33
39
|
}
|
|
@@ -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,42 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Funcionario, FuncionarioCargo } from '../models/entidades/funcionario';
|
|
4
|
+
import { SearchSetting } from '../models/settings/search-setting';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CommonWebService {
|
|
7
|
+
private http;
|
|
8
|
+
ROOT_URL: string;
|
|
9
|
+
FUNCIONARIO_BASE_URL: string;
|
|
10
|
+
FUNCIONARIO_CARGO_BASE_URL: string;
|
|
11
|
+
token: string;
|
|
12
|
+
static URL_PART_BUSCA: string;
|
|
13
|
+
static URL_PART_NEXT_ID: string;
|
|
14
|
+
static URL_PART_BUSCA_PAGINADA: string;
|
|
15
|
+
constructor(http: HttpClient);
|
|
16
|
+
setToken(token: string): void;
|
|
17
|
+
start(rootUrl: string): void;
|
|
18
|
+
getFuncionarios(): Observable<Funcionario[]>;
|
|
19
|
+
getFuncionariosCargos(): Observable<FuncionarioCargo[]>;
|
|
20
|
+
buscaFuncionario(setting: SearchSetting): Observable<Funcionario[]>;
|
|
21
|
+
getNextIdFuncionario(): Observable<number>;
|
|
22
|
+
getAllFuncionario(): Observable<number>;
|
|
23
|
+
saveFuncionario(s: Funcionario): Observable<any>;
|
|
24
|
+
addFuncionario(p: Funcionario): Observable<any>;
|
|
25
|
+
deleteFuncionario(id: number): Observable<any>;
|
|
26
|
+
getHttpOptions(parameters?: HttpParams): {
|
|
27
|
+
headers: HttpHeaders;
|
|
28
|
+
params: HttpParams | undefined;
|
|
29
|
+
};
|
|
30
|
+
getExcelOptions(parameters?: HttpParams): {
|
|
31
|
+
headers: HttpHeaders;
|
|
32
|
+
params: HttpParams | undefined;
|
|
33
|
+
responseType: "json";
|
|
34
|
+
};
|
|
35
|
+
getHtmlOptions(parameters?: HttpParams): {
|
|
36
|
+
headers: HttpHeaders;
|
|
37
|
+
params: HttpParams | undefined;
|
|
38
|
+
responseType: "json";
|
|
39
|
+
};
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonWebService, never>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CommonWebService>;
|
|
42
|
+
}
|
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxpi-nglib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"@angular/forms": "^13.1.0",
|
|
8
|
-
"@angular/animations": "^13.1.0",
|
|
9
|
-
"@angular/cdk": "^13.1.0",
|
|
10
|
-
"@angular/material": "^13.1.0",
|
|
11
|
-
"file-saver": "^2.0.5"
|
|
5
|
+
"@angular/common": "^14.0.5",
|
|
6
|
+
"@angular/core": "^14.0.5"
|
|
12
7
|
},
|
|
13
8
|
"dependencies": {
|
|
14
9
|
"tslib": "^2.3.0"
|
|
@@ -18,13 +13,13 @@
|
|
|
18
13
|
"esm2020": "esm2020/oxpi-nglib.mjs",
|
|
19
14
|
"fesm2020": "fesm2020/oxpi-nglib.mjs",
|
|
20
15
|
"fesm2015": "fesm2015/oxpi-nglib.mjs",
|
|
21
|
-
"typings": "
|
|
16
|
+
"typings": "index.d.ts",
|
|
22
17
|
"exports": {
|
|
23
18
|
"./package.json": {
|
|
24
19
|
"default": "./package.json"
|
|
25
20
|
},
|
|
26
21
|
".": {
|
|
27
|
-
"types": "./
|
|
22
|
+
"types": "./index.d.ts",
|
|
28
23
|
"esm2020": "./esm2020/oxpi-nglib.mjs",
|
|
29
24
|
"es2020": "./fesm2020/oxpi-nglib.mjs",
|
|
30
25
|
"es2015": "./fesm2015/oxpi-nglib.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export * from './lib/cadastros/funcionarios/funcionario-add-dialog/funcionario-add-dialog.component';
|
|
2
|
+
export * from './lib/cadastros/funcionarios/funcionario-edit-dialog/funcionario-edit-dialog.component';
|
|
3
|
+
export * from './lib/cadastros/funcionarios/funcionario-form/funcionario-form.component';
|
|
4
|
+
export * from './lib/cadastros/funcionarios/funcionarios/funcionarios.component';
|
|
1
5
|
export * from './lib/controls/busy-indicator/busy-indicator.component';
|
|
2
6
|
export * from './lib/controls/check-button/check-button.component';
|
|
3
7
|
export * from './lib/controls/image-viewer/image-viewer.component';
|
|
@@ -31,6 +35,9 @@ export * from './lib/models/settings/search-setting';
|
|
|
31
35
|
export * from './lib/models/settings/produto-search-setting';
|
|
32
36
|
export * from './lib/models/settings/suites-intervencoes-setting';
|
|
33
37
|
export * from './lib/providers/export.file.service';
|
|
38
|
+
export * from './lib/providers/auth-data.service';
|
|
39
|
+
export * from './lib/providers/common-web-service';
|
|
40
|
+
export * from './lib/providers/notification.service';
|
|
34
41
|
export * from './lib/providers/focus.service';
|
|
35
42
|
export * from './lib/providers/preference.service';
|
|
36
43
|
export * from './lib/providers/safe-html.pipe';
|