keevo-components 1.8.39 → 1.8.41
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +24 -24
- package/esm2022/keevo-components.mjs +4 -4
- package/esm2022/lib/api/base-components/base-component-button.mjs +36 -36
- package/esm2022/lib/api/base-components/base-component-chart.mjs +92 -92
- package/esm2022/lib/api/base-components/base-component-crud-form.mjs +298 -298
- package/esm2022/lib/api/base-components/base-component-crud-list.mjs +78 -78
- package/esm2022/lib/api/base-components/base-component-crud.mjs +65 -65
- package/esm2022/lib/api/base-components/base-component-dropdown-external.mjs +31 -31
- package/esm2022/lib/api/base-components/base-component-dropdown.mjs +169 -169
- package/esm2022/lib/api/base-components/base-component-input.mjs +94 -94
- package/esm2022/lib/api/base-components/base-component-multi-select.mjs +130 -130
- package/esm2022/lib/api/base-components/base-component.mjs +51 -51
- package/esm2022/lib/api/components/chart/chart.config.mjs +2 -2
- package/esm2022/lib/api/components/chart/chart.model.mjs +2 -2
- package/esm2022/lib/api/components/chart/orchart.config.mjs +2 -2
- package/esm2022/lib/api/components/chart/orchart.item.mjs +2 -2
- package/esm2022/lib/api/components/dropdown/filtro.combo.mjs +2 -2
- package/esm2022/lib/api/components/table/action-item.mjs +2 -2
- package/esm2022/lib/api/components/table/kv-menuitem.mjs +3 -3
- package/esm2022/lib/api/components/table/table-dropdown-control.mjs +2 -2
- package/esm2022/lib/api/components/table/table.config.column.mjs +2 -2
- package/esm2022/lib/api/components/table/table.config.mjs +2 -2
- package/esm2022/lib/api/components/table/table.paginate.mjs +9 -9
- package/esm2022/lib/api/components/table/tabledit.config.mjs +2 -2
- package/esm2022/lib/api/components/table/tableedit.config.column.mjs +2 -2
- package/esm2022/lib/api/directives/template/template.directive.mjs +24 -24
- package/esm2022/lib/api/helpers/component-providers.mjs +16 -16
- package/esm2022/lib/api/helpers/keevo-validators.mjs +72 -72
- package/esm2022/lib/api/helpers/translate-primeng.mjs +23 -23
- package/esm2022/lib/api/models/menu/menu.model.mjs +2 -2
- package/esm2022/lib/api/models/menu/menucompleto.model.mjs +2 -2
- package/esm2022/lib/api/models/menu/sistemamenu.model.mjs +2 -2
- package/esm2022/lib/api/modules/primeng.module.mjs +255 -251
- package/esm2022/lib/api/pipes/codigofile.pipe.mjs +19 -19
- package/esm2022/lib/api/pipes/cpfcnpj.pipe.mjs +25 -25
- package/esm2022/lib/api/pipes/mask.pipe.mjs +29 -29
- package/esm2022/lib/api/pipes/pipes.module.mjs +39 -39
- package/esm2022/lib/api/pipes/telefone.pipe.mjs +45 -45
- package/esm2022/lib/api/services/base.api.service.mjs +74 -74
- package/esm2022/lib/api/services/breadcrumbs.service.mjs +57 -57
- package/esm2022/lib/api/services/component.service.mjs +27 -27
- package/esm2022/lib/api/services/form.service.mjs +85 -85
- package/esm2022/lib/api/services/imagens.service.mjs +28 -28
- package/esm2022/lib/api/services/notification.service.mjs +67 -67
- package/esm2022/lib/api/services/object.service.mjs +39 -39
- package/esm2022/lib/components/keevo-components.module.mjs +137 -144
- package/esm2022/lib/components/kv-avatar/kv-avatar.component.mjs +78 -78
- package/esm2022/lib/components/kv-avatar/kv-avatar.module.mjs +32 -32
- package/esm2022/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.mjs +31 -31
- package/esm2022/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.mjs +31 -31
- package/esm2022/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.mjs +17 -17
- package/esm2022/lib/components/kv-buttons/kv-button-success/kv-button-success.component.mjs +17 -17
- package/esm2022/lib/components/kv-buttons/kv-button.module.mjs +39 -39
- package/esm2022/lib/components/kv-carousel/kv-carousel.component.mjs +92 -92
- package/esm2022/lib/components/kv-carousel/kv-carousel.module.mjs +28 -28
- package/esm2022/lib/components/kv-chart/kv-chart.component.mjs +145 -145
- package/esm2022/lib/components/kv-chart/kv-chart.module.mjs +32 -32
- package/esm2022/lib/components/kv-error/kv-error.component.mjs +26 -26
- package/esm2022/lib/components/kv-error/kv-error.module.mjs +35 -35
- package/esm2022/lib/components/kv-inputs/kv-check/kv-check.component.mjs +26 -26
- package/esm2022/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.mjs +37 -37
- package/esm2022/lib/components/kv-inputs/kv-editor/kv-editor.component.mjs +88 -88
- package/esm2022/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.mjs +89 -89
- package/esm2022/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.mjs +29 -29
- package/esm2022/lib/components/kv-inputs/kv-input-number/kv-input-number.component.mjs +59 -59
- package/esm2022/lib/components/kv-inputs/kv-input-password/kv-input-password.component.mjs +33 -33
- package/esm2022/lib/components/kv-inputs/kv-input-text/kv-input-text.component.mjs +21 -21
- package/esm2022/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.mjs +42 -42
- package/esm2022/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.mjs +43 -43
- package/esm2022/lib/components/kv-inputs/kv-input-time/kv-input-time.component.mjs +24 -24
- package/esm2022/lib/components/kv-inputs/kv-inputs.module.mjs +108 -108
- package/esm2022/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.mjs +44 -44
- package/esm2022/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.mjs +53 -53
- package/esm2022/lib/components/kv-inputs/kv-switch/kv-switch.component.mjs +34 -34
- package/esm2022/lib/components/kv-label/kv-label.component.mjs +15 -15
- package/esm2022/lib/components/kv-label/kv-label.module.mjs +24 -24
- package/esm2022/lib/components/kv-loader/kv-loader.component.mjs +17 -17
- package/esm2022/lib/components/kv-loader/kv-loader.module.mjs +28 -28
- package/esm2022/lib/components/kv-loader/kv-loader.service.mjs +29 -29
- package/esm2022/lib/components/kv-login/kv-login.component.mjs +52 -52
- package/esm2022/lib/components/kv-login/kv-login.module.mjs +47 -47
- package/esm2022/lib/components/kv-menu/kv-menu.component.mjs +189 -188
- package/esm2022/lib/components/kv-menu/kv-menu.module.mjs +47 -47
- package/esm2022/lib/components/kv-modal/kv-modal.component.mjs +67 -67
- package/esm2022/lib/components/kv-modal/kv-modal.module.mjs +31 -31
- package/esm2022/lib/components/kv-orgchart/kv-orgchart.component.mjs +100 -100
- package/esm2022/lib/components/kv-orgchart/kv-orgchart.module.mjs +24 -24
- package/esm2022/lib/components/kv-page-form/kv-page-form.component.mjs +147 -147
- package/esm2022/lib/components/kv-page-form/kv-page-form.module.mjs +38 -38
- package/esm2022/lib/components/kv-pick-list/kv-pick-list.component.mjs +48 -48
- package/esm2022/lib/components/kv-pick-list/kv-pick-list.module.mjs +32 -32
- package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.component.mjs +58 -58
- package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.module.mjs +28 -28
- package/esm2022/lib/components/kv-table/kv-table.component.mjs +554 -554
- package/esm2022/lib/components/kv-table/kv-table.module.mjs +36 -36
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +567 -567
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.module.mjs +34 -34
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +215 -215
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.module.mjs +28 -28
- package/esm2022/lib/components/kv-tree-view/kv-tree-view.component.mjs +30 -30
- package/esm2022/lib/components/kv-tree-view/kv-tree-view.module.mjs +28 -28
- package/esm2022/lib/components/kv-workspace/kv-workspace.component.mjs +178 -178
- package/esm2022/lib/components/kv-workspace/kv-workspace.module.mjs +51 -51
- package/esm2022/public-api.mjs +167 -169
- package/fesm2022/keevo-components.mjs +5406 -5790
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/api/base-components/base-component-button.d.ts +14 -14
- package/lib/api/base-components/base-component-chart.d.ts +40 -40
- package/lib/api/base-components/base-component-crud-form.d.ts +145 -145
- package/lib/api/base-components/base-component-crud-list.d.ts +63 -63
- package/lib/api/base-components/base-component-crud.d.ts +36 -36
- package/lib/api/base-components/base-component-dropdown-external.d.ts +15 -15
- package/lib/api/base-components/base-component-dropdown.d.ts +44 -44
- package/lib/api/base-components/base-component-input.d.ts +31 -31
- package/lib/api/base-components/base-component-multi-select.d.ts +35 -35
- package/lib/api/base-components/base-component.d.ts +22 -22
- package/lib/api/components/chart/chart.config.d.ts +11 -11
- package/lib/api/components/chart/chart.model.d.ts +9 -9
- package/lib/api/components/chart/orchart.config.d.ts +35 -35
- package/lib/api/components/chart/orchart.item.d.ts +26 -26
- package/lib/api/components/dropdown/filtro.combo.d.ts +4 -4
- package/lib/api/components/table/action-item.d.ts +11 -11
- package/lib/api/components/table/kv-menuitem.d.ts +10 -10
- package/lib/api/components/table/table-dropdown-control.d.ts +6 -6
- package/lib/api/components/table/table.config.column.d.ts +25 -25
- package/lib/api/components/table/table.config.d.ts +19 -19
- package/lib/api/components/table/table.paginate.d.ts +6 -6
- package/lib/api/components/table/tabledit.config.d.ts +8 -8
- package/lib/api/components/table/tableedit.config.column.d.ts +10 -10
- package/lib/api/directives/template/template.directive.d.ts +11 -11
- package/lib/api/helpers/component-providers.d.ts +2 -2
- package/lib/api/helpers/keevo-validators.d.ts +11 -11
- package/lib/api/helpers/translate-primeng.d.ts +4 -4
- package/lib/api/models/menu/menu.model.d.ts +10 -10
- package/lib/api/models/menu/menucompleto.model.d.ts +6 -6
- package/lib/api/models/menu/sistemamenu.model.d.ts +8 -8
- package/lib/api/modules/primeng.module.d.ts +62 -61
- package/lib/api/pipes/codigofile.pipe.d.ts +7 -7
- package/lib/api/pipes/cpfcnpj.pipe.d.ts +7 -7
- package/lib/api/pipes/mask.pipe.d.ts +7 -7
- package/lib/api/pipes/pipes.module.d.ts +11 -11
- package/lib/api/pipes/telefone.pipe.d.ts +7 -7
- package/lib/api/services/base.api.service.d.ts +25 -25
- package/lib/api/services/breadcrumbs.service.d.ts +16 -16
- package/lib/api/services/component.service.d.ts +11 -11
- package/lib/api/services/form.service.d.ts +28 -28
- package/lib/api/services/imagens.service.d.ts +10 -10
- package/lib/api/services/notification.service.d.ts +25 -25
- package/lib/api/services/object.service.d.ts +9 -9
- package/lib/components/keevo-components.module.d.ts +24 -25
- package/lib/components/kv-avatar/kv-avatar.component.d.ts +22 -22
- package/lib/components/kv-avatar/kv-avatar.module.d.ts +10 -10
- package/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.d.ts +13 -13
- package/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.d.ts +13 -13
- package/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.d.ts +7 -7
- package/lib/components/kv-buttons/kv-button-success/kv-button-success.component.d.ts +7 -7
- package/lib/components/kv-buttons/kv-button.module.d.ts +11 -11
- package/lib/components/kv-carousel/kv-carousel.component.d.ts +16 -16
- package/lib/components/kv-carousel/kv-carousel.module.d.ts +9 -9
- package/lib/components/kv-chart/kv-chart.component.d.ts +56 -56
- package/lib/components/kv-chart/kv-chart.module.d.ts +10 -10
- package/lib/components/kv-error/kv-error.component.d.ts +12 -12
- package/lib/components/kv-error/kv-error.module.d.ts +10 -10
- package/lib/components/kv-inputs/kv-check/kv-check.component.d.ts +11 -11
- package/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.d.ts +14 -14
- package/lib/components/kv-inputs/kv-editor/kv-editor.component.d.ts +36 -36
- package/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.d.ts +27 -27
- package/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.d.ts +12 -12
- package/lib/components/kv-inputs/kv-input-number/kv-input-number.component.d.ts +19 -19
- package/lib/components/kv-inputs/kv-input-password/kv-input-password.component.d.ts +13 -13
- package/lib/components/kv-inputs/kv-input-text/kv-input-text.component.d.ts +9 -9
- package/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.d.ts +16 -16
- package/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.d.ts +16 -16
- package/lib/components/kv-inputs/kv-input-time/kv-input-time.component.d.ts +10 -10
- package/lib/components/kv-inputs/kv-inputs.module.d.ts +25 -25
- package/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.d.ts +15 -15
- package/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.d.ts +18 -18
- package/lib/components/kv-inputs/kv-switch/kv-switch.component.d.ts +14 -14
- package/lib/components/kv-label/kv-label.component.d.ts +7 -7
- package/lib/components/kv-label/kv-label.module.d.ts +8 -8
- package/lib/components/kv-loader/kv-loader.component.d.ts +8 -8
- package/lib/components/kv-loader/kv-loader.module.d.ts +9 -9
- package/lib/components/kv-loader/kv-loader.service.d.ts +10 -10
- package/lib/components/kv-login/kv-login.component.d.ts +30 -30
- package/lib/components/kv-login/kv-login.module.d.ts +13 -13
- package/lib/components/kv-menu/kv-menu.component.d.ts +60 -61
- package/lib/components/kv-menu/kv-menu.module.d.ts +13 -13
- package/lib/components/kv-modal/kv-modal.component.d.ts +20 -20
- package/lib/components/kv-modal/kv-modal.module.d.ts +10 -10
- package/lib/components/kv-orgchart/kv-orgchart.component.d.ts +27 -27
- package/lib/components/kv-orgchart/kv-orgchart.module.d.ts +9 -9
- package/lib/components/kv-page-form/kv-page-form.component.d.ts +70 -70
- package/lib/components/kv-page-form/kv-page-form.module.d.ts +11 -11
- package/lib/components/kv-pick-list/kv-pick-list.component.d.ts +20 -20
- package/lib/components/kv-pick-list/kv-pick-list.module.d.ts +10 -10
- package/lib/components/kv-progress-bar/kv-progress-bar.component.d.ts +67 -67
- package/lib/components/kv-progress-bar/kv-progress-bar.module.d.ts +9 -9
- package/lib/components/kv-table/kv-table.component.d.ts +113 -113
- package/lib/components/kv-table/kv-table.module.d.ts +11 -11
- package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +116 -116
- package/lib/components/kv-table-edit/kv-table-edit.module.d.ts +12 -12
- package/lib/components/kv-tree-table/kv-tree-table.component.d.ts +42 -42
- package/lib/components/kv-tree-table/kv-tree-table.module.d.ts +9 -9
- package/lib/components/kv-tree-view/kv-tree-view.component.d.ts +14 -14
- package/lib/components/kv-tree-view/kv-tree-view.module.d.ts +9 -9
- package/lib/components/kv-workspace/kv-workspace.component.d.ts +46 -46
- package/lib/components/kv-workspace/kv-workspace.module.d.ts +14 -14
- package/package.json +2 -2
- package/public-api.d.ts +163 -165
- package/esm2022/lib/components/kv-treetable/kv-treetable.component.mjs +0 -371
- package/esm2022/lib/components/kv-treetable/kv-treetable.module.mjs +0 -32
- package/lib/components/kv-treetable/kv-treetable.component.d.ts +0 -85
- package/lib/components/kv-treetable/kv-treetable.module.d.ts +0 -11
@@ -1,78 +1,78 @@
|
|
1
|
-
import { Component } from "@angular/core";
|
2
|
-
import { BaseComponentCrud } from "./base-component-crud";
|
3
|
-
import { TablePaginate } from "../components/table/table.paginate";
|
4
|
-
import { loading } from "../../components/kv-loader/kv-loader.service";
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
import * as i1 from "primeng/dynamicdialog";
|
7
|
-
import * as i2 from "../services/notification.service";
|
8
|
-
import * as i3 from "@angular/router";
|
9
|
-
export class BaseComponentCrudList extends BaseComponentCrud {
|
10
|
-
constructor(dialogService, notificationService, router) {
|
11
|
-
super(dialogService, notificationService);
|
12
|
-
this.router = router;
|
13
|
-
this.totalRecords = 0;
|
14
|
-
this.actionsPageList = [];
|
15
|
-
}
|
16
|
-
ngOnInit() {
|
17
|
-
this.loadFilters();
|
18
|
-
this.configureTable();
|
19
|
-
// Tabela não configurada para paginação
|
20
|
-
if (!this.tableConfig?.lazy)
|
21
|
-
this.loadTable(new TablePaginate());
|
22
|
-
}
|
23
|
-
/**
|
24
|
-
* Método que seta o registro selecionado na tabela
|
25
|
-
* @param event - Registro
|
26
|
-
*/
|
27
|
-
activeItem(event) {
|
28
|
-
this.selectedItem = event;
|
29
|
-
}
|
30
|
-
/**
|
31
|
-
* Método que dispara o carregamento da tabela
|
32
|
-
* @param obs - Observable de carregamento dos dados
|
33
|
-
*/
|
34
|
-
loadData(obs) {
|
35
|
-
obs
|
36
|
-
.pipe(loading())
|
37
|
-
.subscribe({
|
38
|
-
next: (res) => {
|
39
|
-
if (res) {
|
40
|
-
if (Array.isArray(res)) {
|
41
|
-
//Tratamento para retorno do tipo listar ([])
|
42
|
-
this.totalRecords = res.length;
|
43
|
-
this.dataSource = res;
|
44
|
-
}
|
45
|
-
else {
|
46
|
-
//Tratamento para retorno do tipo listarPaginado (<int,[]>)
|
47
|
-
this.totalRecords = res.item1;
|
48
|
-
this.dataSource = res.item2;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
},
|
52
|
-
error: (e) => {
|
53
|
-
this.toastError(e);
|
54
|
-
},
|
55
|
-
});
|
56
|
-
}
|
57
|
-
/**
|
58
|
-
* Método que dispara a paginação
|
59
|
-
*/
|
60
|
-
paginate(event) {
|
61
|
-
this.loadTable(event);
|
62
|
-
}
|
63
|
-
/**
|
64
|
-
* Método que dispara a atualização da página inteira
|
65
|
-
*/
|
66
|
-
refresh() {
|
67
|
-
this.loadTable(new TablePaginate());
|
68
|
-
}
|
69
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentCrudList, deps: [{ token: i1.DialogService }, { token: i2.NotificationService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
70
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: BaseComponentCrudList, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
71
|
-
}
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentCrudList, decorators: [{
|
73
|
-
type: Component,
|
74
|
-
args: [{
|
75
|
-
template: ''
|
76
|
-
}]
|
77
|
-
}], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.NotificationService }, { type: i3.Router }]; } });
|
78
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
import { Component } from "@angular/core";
|
2
|
+
import { BaseComponentCrud } from "./base-component-crud";
|
3
|
+
import { TablePaginate } from "../components/table/table.paginate";
|
4
|
+
import { loading } from "../../components/kv-loader/kv-loader.service";
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
import * as i1 from "primeng/dynamicdialog";
|
7
|
+
import * as i2 from "../services/notification.service";
|
8
|
+
import * as i3 from "@angular/router";
|
9
|
+
export class BaseComponentCrudList extends BaseComponentCrud {
|
10
|
+
constructor(dialogService, notificationService, router) {
|
11
|
+
super(dialogService, notificationService);
|
12
|
+
this.router = router;
|
13
|
+
this.totalRecords = 0;
|
14
|
+
this.actionsPageList = [];
|
15
|
+
}
|
16
|
+
ngOnInit() {
|
17
|
+
this.loadFilters();
|
18
|
+
this.configureTable();
|
19
|
+
// Tabela não configurada para paginação
|
20
|
+
if (!this.tableConfig?.lazy)
|
21
|
+
this.loadTable(new TablePaginate());
|
22
|
+
}
|
23
|
+
/**
|
24
|
+
* Método que seta o registro selecionado na tabela
|
25
|
+
* @param event - Registro
|
26
|
+
*/
|
27
|
+
activeItem(event) {
|
28
|
+
this.selectedItem = event;
|
29
|
+
}
|
30
|
+
/**
|
31
|
+
* Método que dispara o carregamento da tabela
|
32
|
+
* @param obs - Observable de carregamento dos dados
|
33
|
+
*/
|
34
|
+
loadData(obs) {
|
35
|
+
obs
|
36
|
+
.pipe(loading())
|
37
|
+
.subscribe({
|
38
|
+
next: (res) => {
|
39
|
+
if (res) {
|
40
|
+
if (Array.isArray(res)) {
|
41
|
+
//Tratamento para retorno do tipo listar ([])
|
42
|
+
this.totalRecords = res.length;
|
43
|
+
this.dataSource = res;
|
44
|
+
}
|
45
|
+
else {
|
46
|
+
//Tratamento para retorno do tipo listarPaginado (<int,[]>)
|
47
|
+
this.totalRecords = res.item1;
|
48
|
+
this.dataSource = res.item2;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
},
|
52
|
+
error: (e) => {
|
53
|
+
this.toastError(e);
|
54
|
+
},
|
55
|
+
});
|
56
|
+
}
|
57
|
+
/**
|
58
|
+
* Método que dispara a paginação
|
59
|
+
*/
|
60
|
+
paginate(event) {
|
61
|
+
this.loadTable(event);
|
62
|
+
}
|
63
|
+
/**
|
64
|
+
* Método que dispara a atualização da página inteira
|
65
|
+
*/
|
66
|
+
refresh() {
|
67
|
+
this.loadTable(new TablePaginate());
|
68
|
+
}
|
69
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentCrudList, deps: [{ token: i1.DialogService }, { token: i2.NotificationService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
70
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: BaseComponentCrudList, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
71
|
+
}
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentCrudList, decorators: [{
|
73
|
+
type: Component,
|
74
|
+
args: [{
|
75
|
+
template: ''
|
76
|
+
}]
|
77
|
+
}], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.NotificationService }, { type: i3.Router }]; } });
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1jb21wb25lbnQtY3J1ZC1saXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2Vldm8tY29tcG9uZW50cy9zcmMvbGliL2FwaS9iYXNlLWNvbXBvbmVudHMvYmFzZS1jb21wb25lbnQtY3J1ZC1saXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFJbEQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDMUQsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLG9DQUFvQyx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md0aDtcbiAgICAgICAgICAgICAgdGhpcy5kYXRhU291cmNlID0gcmVzXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgLy9UcmF0YW1lbnRvIHBhcmEgcmV0b3JubyBkbyB0aXBvIGxpc3RhclBhZ2luYWRvICg8aW50LFtdPilcbiAgICAgICAgICAgICAgdGhpcy50b3RhbFJlY29yZHMgPSByZXMuaXRlbTE7XG4gICAgICAgICAgICAgIHRoaXMuZGF0YVNvdXJjZSA9IHJlcy5pdGVtMlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgZXJyb3I6IChlKSA9PiB7XG4gICAgICAgICAgdGhpcy50b2FzdEVycm9yKGUpO1xuICAgICAgICB9LFxuICAgICAgfSk7XG4gIH1cblxuICAvKipcbiAgICogTcOpdG9kbyBxdWUgZGlzcGFyYSBhIHBhZ2luYcOnw6NvXG4gICAqL1xuICBwcm90ZWN0ZWQgcGFnaW5hdGUoZXZlbnQ6IGFueSkge1xuICAgIHRoaXMubG9hZFRhYmxlKGV2ZW50KTtcbiAgfVxuXG4gIC8qKlxuICAgKiBNw6l0b2RvIHF1ZSBkaXNwYXJhIGEgYXR1YWxpemHDp8OjbyBkYSBww6FnaW5hIGludGVpcmFcbiAgICovXG4gIHByb3RlY3RlZCByZWZyZXNoKCkge1xuICAgIHRoaXMubG9hZFRhYmxlKG5ldyBUYWJsZVBhZ2luYXRlKCkpO1xuICB9XG59XG4iXX0=
|
@@ -1,65 +1,65 @@
|
|
1
|
-
import { Component } from "@angular/core";
|
2
|
-
import { FormService } from "../services/form.service";
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
import * as i1 from "primeng/dynamicdialog";
|
5
|
-
import * as i2 from "../services/notification.service";
|
6
|
-
export class BaseComponentCrud {
|
7
|
-
constructor(dialogService, notificationService) {
|
8
|
-
this.dialogService = dialogService;
|
9
|
-
this.notificationService = notificationService;
|
10
|
-
this.isReport = false;
|
11
|
-
this.itemsReport = [];
|
12
|
-
}
|
13
|
-
/**
|
14
|
-
* Fecha um relatório
|
15
|
-
*/
|
16
|
-
closeReport() {
|
17
|
-
this.isReport = false;
|
18
|
-
}
|
19
|
-
/**
|
20
|
-
* Abre um form dialog
|
21
|
-
* @param componentType - Componente que será renderizado
|
22
|
-
* @param callBackFunction - Função de callback que deverá ser chamada após o fechamento do dialog
|
23
|
-
* @param paramsDialog - Parâmetros do dialog
|
24
|
-
*/
|
25
|
-
openDialog(componentType, callBackFunction, paramsDialog) {
|
26
|
-
FormService.openDialog(this.dialogService, componentType, callBackFunction, paramsDialog);
|
27
|
-
}
|
28
|
-
/**
|
29
|
-
* Imprime um relatório na tela
|
30
|
-
* @param obs - Observable com o carregamento do relatório
|
31
|
-
*/
|
32
|
-
printReportFilter(obs) {
|
33
|
-
obs
|
34
|
-
//.pipe(loading())
|
35
|
-
.subscribe({
|
36
|
-
next: (res) => {
|
37
|
-
this.itemsReport = res;
|
38
|
-
this.isReport = true;
|
39
|
-
},
|
40
|
-
error: (e) => {
|
41
|
-
this.toastError(e);
|
42
|
-
},
|
43
|
-
});
|
44
|
-
}
|
45
|
-
/**
|
46
|
-
* Exibe um toast com um erro
|
47
|
-
* @param err - Erro
|
48
|
-
*/
|
49
|
-
toastError(err) {
|
50
|
-
if (err) {
|
51
|
-
if (err.message) {
|
52
|
-
this.notificationService.toastError(err.message);
|
53
|
-
}
|
54
|
-
}
|
55
|
-
}
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentCrud, deps: [{ token: i1.DialogService }, { token: i2.NotificationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: BaseComponentCrud, selector: "ng-component", ngImport: i0, template: '', isInline: true }); }
|
58
|
-
}
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentCrud, decorators: [{
|
60
|
-
type: Component,
|
61
|
-
args: [{
|
62
|
-
template: ''
|
63
|
-
}]
|
64
|
-
}], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.NotificationService }]; } });
|
65
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
import { Component } from "@angular/core";
|
2
|
+
import { FormService } from "../services/form.service";
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "primeng/dynamicdialog";
|
5
|
+
import * as i2 from "../services/notification.service";
|
6
|
+
export class BaseComponentCrud {
|
7
|
+
constructor(dialogService, notificationService) {
|
8
|
+
this.dialogService = dialogService;
|
9
|
+
this.notificationService = notificationService;
|
10
|
+
this.isReport = false;
|
11
|
+
this.itemsReport = [];
|
12
|
+
}
|
13
|
+
/**
|
14
|
+
* Fecha um relatório
|
15
|
+
*/
|
16
|
+
closeReport() {
|
17
|
+
this.isReport = false;
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* Abre um form dialog
|
21
|
+
* @param componentType - Componente que será renderizado
|
22
|
+
* @param callBackFunction - Função de callback que deverá ser chamada após o fechamento do dialog
|
23
|
+
* @param paramsDialog - Parâmetros do dialog
|
24
|
+
*/
|
25
|
+
openDialog(componentType, callBackFunction, paramsDialog) {
|
26
|
+
FormService.openDialog(this.dialogService, componentType, callBackFunction, paramsDialog);
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* Imprime um relatório na tela
|
30
|
+
* @param obs - Observable com o carregamento do relatório
|
31
|
+
*/
|
32
|
+
printReportFilter(obs) {
|
33
|
+
obs
|
34
|
+
//.pipe(loading())
|
35
|
+
.subscribe({
|
36
|
+
next: (res) => {
|
37
|
+
this.itemsReport = res;
|
38
|
+
this.isReport = true;
|
39
|
+
},
|
40
|
+
error: (e) => {
|
41
|
+
this.toastError(e);
|
42
|
+
},
|
43
|
+
});
|
44
|
+
}
|
45
|
+
/**
|
46
|
+
* Exibe um toast com um erro
|
47
|
+
* @param err - Erro
|
48
|
+
*/
|
49
|
+
toastError(err) {
|
50
|
+
if (err) {
|
51
|
+
if (err.message) {
|
52
|
+
this.notificationService.toastError(err.message);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentCrud, deps: [{ token: i1.DialogService }, { token: i2.NotificationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
57
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: BaseComponentCrud, selector: "ng-component", ngImport: i0, template: '', isInline: true }); }
|
58
|
+
}
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentCrud, decorators: [{
|
60
|
+
type: Component,
|
61
|
+
args: [{
|
62
|
+
template: ''
|
63
|
+
}]
|
64
|
+
}], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.NotificationService }]; } });
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1jb21wb25lbnQtY3J1ZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tlZXZvLWNvbXBvbmVudHMvc3JjL2xpYi9hcGkvYmFzZS1jb21wb25lbnRzL2Jhc2UtY29tcG9uZW50LWNydWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFNBQVMsRUFBUSxNQUFNLGVBQWUsQ0FBQztBQUNoRCxPQUFPLEVBQUUsV0FBVyxFQUFnQixNQUFNLDBCQUEwQixDQUFDOzs7O0FBT3JFLE1BQU0sT0FBZ0IsaUJBQWlCO0lBS3JDLFlBQ1MsYUFBNEIsRUFDNUIsbUJ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XNSZXBvcnQgPSByZXM7XG4gICAgICAgICAgdGhpcy5pc1JlcG9ydCA9IHRydWU7XG4gICAgICAgIH0sXG4gICAgICAgIGVycm9yOiAoZSkgPT4ge1xuICAgICAgICAgIHRoaXMudG9hc3RFcnJvcihlKTtcbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICB9XG5cbiAgLyoqXG4gICAqIEV4aWJlIHVtIHRvYXN0IGNvbSB1bSBlcnJvXG4gICAqIEBwYXJhbSBlcnIgLSBFcnJvXG4gICAqL1xuICBwcm90ZWN0ZWQgdG9hc3RFcnJvcihlcnI6IGFueSkge1xuICAgIGlmIChlcnIpIHtcbiAgICAgIGlmIChlcnIubWVzc2FnZSkge1xuICAgICAgICB0aGlzLm5vdGlmaWNhdGlvblNlcnZpY2UudG9hc3RFcnJvcihlcnIubWVzc2FnZSk7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0=
|
@@ -1,31 +1,31 @@
|
|
1
|
-
import { Component, Input, ViewChild } from "@angular/core";
|
2
|
-
import { BaseComponentDropDown } from "./base-component-dropdown";
|
3
|
-
import { KvDropdownComponent } from "../../components/kv-inputs/kv-dropdown/kv-dropdown.component";
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
import * as i1 from "../services/component.service";
|
6
|
-
import * as i2 from "primeng/dynamicdialog";
|
7
|
-
export class BaseComponentDropDownExternal extends BaseComponentDropDown {
|
8
|
-
constructor(componentService, dialogService) {
|
9
|
-
super(componentService, dialogService);
|
10
|
-
}
|
11
|
-
ngAfterViewInit() {
|
12
|
-
super.ngAfterViewInit();
|
13
|
-
if (this.dropDownComponent) {
|
14
|
-
this.dropDownComponent.formControl = this.formControl;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentDropDownExternal, deps: [{ token: i1.ComponentService }, { token: i2.DialogService }], target: i0.ɵɵFactoryTarget.Component }); }
|
18
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: BaseComponentDropDownExternal, selector: "ng-component", inputs: { formGroup: "formGroup" }, viewQueries: [{ propertyName: "dropDownComponent", first: true, predicate: KvDropdownComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
19
|
-
}
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentDropDownExternal, decorators: [{
|
21
|
-
type: Component,
|
22
|
-
args: [{
|
23
|
-
template: '',
|
24
|
-
}]
|
25
|
-
}], ctorParameters: function () { return [{ type: i1.ComponentService }, { type: i2.DialogService }]; }, propDecorators: { formGroup: [{
|
26
|
-
type: Input
|
27
|
-
}], dropDownComponent: [{
|
28
|
-
type: ViewChild,
|
29
|
-
args: [KvDropdownComponent]
|
30
|
-
}] } });
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
import { Component, Input, ViewChild } from "@angular/core";
|
2
|
+
import { BaseComponentDropDown } from "./base-component-dropdown";
|
3
|
+
import { KvDropdownComponent } from "../../components/kv-inputs/kv-dropdown/kv-dropdown.component";
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "../services/component.service";
|
6
|
+
import * as i2 from "primeng/dynamicdialog";
|
7
|
+
export class BaseComponentDropDownExternal extends BaseComponentDropDown {
|
8
|
+
constructor(componentService, dialogService) {
|
9
|
+
super(componentService, dialogService);
|
10
|
+
}
|
11
|
+
ngAfterViewInit() {
|
12
|
+
super.ngAfterViewInit();
|
13
|
+
if (this.dropDownComponent) {
|
14
|
+
this.dropDownComponent.formControl = this.formControl;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentDropDownExternal, deps: [{ token: i1.ComponentService }, { token: i2.DialogService }], target: i0.ɵɵFactoryTarget.Component }); }
|
18
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: BaseComponentDropDownExternal, selector: "ng-component", inputs: { formGroup: "formGroup" }, viewQueries: [{ propertyName: "dropDownComponent", first: true, predicate: KvDropdownComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
19
|
+
}
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentDropDownExternal, decorators: [{
|
21
|
+
type: Component,
|
22
|
+
args: [{
|
23
|
+
template: '',
|
24
|
+
}]
|
25
|
+
}], ctorParameters: function () { return [{ type: i1.ComponentService }, { type: i2.DialogService }]; }, propDecorators: { formGroup: [{
|
26
|
+
type: Input
|
27
|
+
}], dropDownComponent: [{
|
28
|
+
type: ViewChild,
|
29
|
+
args: [KvDropdownComponent]
|
30
|
+
}] } });
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1jb21wb25lbnQtZHJvcGRvd24tZXh0ZXJuYWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rZWV2by1jb21wb25lbnRzL3NyYy9saWIvYXBpL2Jhc2UtY29tcG9uZW50cy9iYXNlLWNvbXBvbmVudC1kcm9wZG93bi1leHRlcm5hbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWlCLFNBQVMsRUFBRSxLQUFLLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBSTNFLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDhEQUE4RCxDQUFDOzs7O0FBS25HLE1BQU0sT0FBZ0IsNkJBQThCLFNBQVEscUJ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