oxpi-nglib 1.0.32 → 1.0.35
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/produtos/produto-busca-filtros-dialog/produto-busca-filtros-dialog.component.mjs +3 -3
- package/esm2020/lib/models/entidades/login-result.mjs +1 -1
- package/esm2020/lib/models/entidades/ownership.mjs +11 -0
- package/esm2020/lib/models/entidades/usuario.mjs +1 -1
- package/esm2020/lib/providers/export.file.service.mjs +3 -2
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/oxpi-nglib.mjs +16 -4
- package/fesm2015/oxpi-nglib.mjs.map +1 -1
- package/fesm2020/oxpi-nglib.mjs +16 -4
- package/fesm2020/oxpi-nglib.mjs.map +1 -1
- package/lib/cadastros/produtos/produto-busca-filtros-dialog/produto-busca-filtros-dialog.component.d.ts +1 -1
- package/lib/models/entidades/login-result.d.ts +2 -0
- package/lib/models/entidades/ownership.d.ts +14 -0
- package/lib/models/entidades/usuario.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/fesm2020/oxpi-nglib.mjs
CHANGED
|
@@ -2578,9 +2578,9 @@ class ProdutoBuscaFiltrosDialogComponent {
|
|
|
2578
2578
|
this.d.setting.grupos = undefined;
|
|
2579
2579
|
}
|
|
2580
2580
|
ngOnInit() {
|
|
2581
|
-
this.
|
|
2581
|
+
this.getGrupos();
|
|
2582
2582
|
}
|
|
2583
|
-
|
|
2583
|
+
getGrupos() {
|
|
2584
2584
|
this.isBusy = true;
|
|
2585
2585
|
this.ws.getAllProdutoGrupo()
|
|
2586
2586
|
.subscribe(r => {
|
|
@@ -4994,6 +4994,17 @@ function valida(item, focus) {
|
|
|
4994
4994
|
return null;
|
|
4995
4995
|
}
|
|
4996
4996
|
|
|
4997
|
+
class Ownership {
|
|
4998
|
+
}
|
|
4999
|
+
function setOwnershipLogin(ownership, usuarios) {
|
|
5000
|
+
if (ownership.usuarioId === undefined || ownership.usuarioId === null)
|
|
5001
|
+
return;
|
|
5002
|
+
var u = usuarios.filter(x => x.id === ownership.usuarioId).firstOrNull();
|
|
5003
|
+
if (u === null)
|
|
5004
|
+
return;
|
|
5005
|
+
ownership.usuarioLogin = u.login;
|
|
5006
|
+
}
|
|
5007
|
+
|
|
4997
5008
|
class BusyState {
|
|
4998
5009
|
constructor() {
|
|
4999
5010
|
this.isBusy = false;
|
|
@@ -5121,7 +5132,8 @@ class SuitesIntervencoesSetting extends SearchSetting {
|
|
|
5121
5132
|
class ExportFileService {
|
|
5122
5133
|
constructor() { }
|
|
5123
5134
|
start(empresaNomeFile) {
|
|
5124
|
-
this.empresaNomeFile = empresaNomeFile;
|
|
5135
|
+
this.empresaNomeFile = empresaNomeFile.replace(' ', "_").toLowerCase();
|
|
5136
|
+
;
|
|
5125
5137
|
}
|
|
5126
5138
|
exportarExcel(r, fileName) {
|
|
5127
5139
|
const blob = new Blob([r], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
|
|
@@ -5191,5 +5203,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImpor
|
|
|
5191
5203
|
* Generated bundle index. Do not edit.
|
|
5192
5204
|
*/
|
|
5193
5205
|
|
|
5194
|
-
export { AlertDialogComponent, AuthDataService, BusyIndicatorComponent, BusyState, CheckButtonComponent, ClientesAddDialogComponent, ClientesComponent, ClientesEditDialogComponent, ClientesFormComponent, CommonWebService, ConsumoProdutoSearchSetting, DuplicataSearchSetting, ExportFileService, FocusService, FornecedoresAddDialogComponent, FornecedoresComponent, FornecedoresEditDialogComponent, FornecedoresFormComponent, FuncionarioAddDialogComponent, FuncionarioEditDialogComponent, FuncionarioFormComponent, FuncionariosComponent, ImageViewerComponent, ItemCardComponent, LazyTrigger, MonthYearPickerComponent, MoverGrupoDialogComponent, NavegacaoSelecaoDialogUtil, NotificationService, NumberParser, NumericPickerComponent, OcupacaoFilterSetting, OcupacaoSearchDateField, OcupacaoSearchSetting, OcupacaoSearchTipoEntrada, Ordem, OxpiNglibModule, PagamentoRecebimentoSearchSetting, PaginatorComponent, PorOcupacaoTipo, Preferences, ProdutoAddDialogComponent, ProdutoBuscaFiltrosDialogComponent, ProdutoCategoriaCardapioAddDialogComponent, ProdutoCategoriaCardapioEditDialogComponent, ProdutoCategoriaCardapioSelecaoDialogComponent, ProdutoComposicaoAddDialogComponent, ProdutoComposicaoComponent, ProdutoEditDialogComponent, ProdutoFormComponent, ProdutoGrupoAddDialogComponent, ProdutoGrupoEditDialogComponent, ProdutoGrupoFormComponent, ProdutoGrupoSelecaoDialogComponent, ProdutoSearchSetting, ProdutoSelecaoDialogComponent, ProdutoSubgrupoAddDialogComponent, ProdutoSubgrupoEditDialogComponent, ProdutoSubgrupoSelecaoDialogComponent, ProdutosCategoriasCardapioComponent, ProdutosComponent, ProdutosGruposComponent, ProdutosNcmDialogComponent, ProdutosSubgruposComponent, RadioButtonGroupComponent, SafeHtmlPipe, ScreenHelperService, SearchMode, SearchSetting, SelecaoClienteDialogComponent, SelecaoFornecedorDialogComponent, SuitesIntervencoesSetting, confirmaExclusao, createProduct, fadeAnimation, lateralAnimation, menuLateralAnimation, printHtml, printTxt, selectText, valNumberEmpty, valNumberMin, valTextEmpty, valTextMax, valida, validaPessoa, validaProduto, validaProdutoComposicao, validaProdutoGrupo, validaSetorEstoque };
|
|
5206
|
+
export { AlertDialogComponent, AuthDataService, BusyIndicatorComponent, BusyState, CheckButtonComponent, ClientesAddDialogComponent, ClientesComponent, ClientesEditDialogComponent, ClientesFormComponent, CommonWebService, ConsumoProdutoSearchSetting, DuplicataSearchSetting, ExportFileService, FocusService, FornecedoresAddDialogComponent, FornecedoresComponent, FornecedoresEditDialogComponent, FornecedoresFormComponent, FuncionarioAddDialogComponent, FuncionarioEditDialogComponent, FuncionarioFormComponent, FuncionariosComponent, ImageViewerComponent, ItemCardComponent, LazyTrigger, MonthYearPickerComponent, MoverGrupoDialogComponent, NavegacaoSelecaoDialogUtil, NotificationService, NumberParser, NumericPickerComponent, OcupacaoFilterSetting, OcupacaoSearchDateField, OcupacaoSearchSetting, OcupacaoSearchTipoEntrada, Ordem, Ownership, OxpiNglibModule, PagamentoRecebimentoSearchSetting, PaginatorComponent, PorOcupacaoTipo, Preferences, ProdutoAddDialogComponent, ProdutoBuscaFiltrosDialogComponent, ProdutoCategoriaCardapioAddDialogComponent, ProdutoCategoriaCardapioEditDialogComponent, ProdutoCategoriaCardapioSelecaoDialogComponent, ProdutoComposicaoAddDialogComponent, ProdutoComposicaoComponent, ProdutoEditDialogComponent, ProdutoFormComponent, ProdutoGrupoAddDialogComponent, ProdutoGrupoEditDialogComponent, ProdutoGrupoFormComponent, ProdutoGrupoSelecaoDialogComponent, ProdutoSearchSetting, ProdutoSelecaoDialogComponent, ProdutoSubgrupoAddDialogComponent, ProdutoSubgrupoEditDialogComponent, ProdutoSubgrupoSelecaoDialogComponent, ProdutosCategoriasCardapioComponent, ProdutosComponent, ProdutosGruposComponent, ProdutosNcmDialogComponent, ProdutosSubgruposComponent, RadioButtonGroupComponent, SafeHtmlPipe, ScreenHelperService, SearchMode, SearchSetting, SelecaoClienteDialogComponent, SelecaoFornecedorDialogComponent, SuitesIntervencoesSetting, confirmaExclusao, createProduct, fadeAnimation, lateralAnimation, menuLateralAnimation, printHtml, printTxt, selectText, setOwnershipLogin, valNumberEmpty, valNumberMin, valTextEmpty, valTextMax, valida, validaPessoa, validaProduto, validaProdutoComposicao, validaProdutoGrupo, validaSetorEstoque };
|
|
5195
5207
|
//# sourceMappingURL=oxpi-nglib.mjs.map
|