@senior-gestao-empresarial/erpx-components 1.15.2 → 1.15.4
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/bundles/senior-gestao-empresarial-erpx-components.umd.js +7 -5
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js.map +1 -1
- package/esm2015/components/breadcrumb/breadcrumb.component.js +3 -3
- package/esm2015/components/lote-serie/erp-lote-serie.component.js +3 -3
- package/esm2015/components/tributos/erp-tributos.component.js +4 -2
- package/esm5/components/breadcrumb/breadcrumb.component.js +3 -3
- package/esm5/components/lote-serie/erp-lote-serie.component.js +3 -3
- package/esm5/components/tributos/erp-tributos.component.js +4 -2
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +7 -5
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +7 -5
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +17 -5
- package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
|
@@ -253,9 +253,9 @@
|
|
|
253
253
|
BreadcrumbComponent.prototype.getCurrentHome = function (routes) {
|
|
254
254
|
var home;
|
|
255
255
|
if (this.homeUrl)
|
|
256
|
-
home = { url: this.homeUrl, icon: '
|
|
256
|
+
home = { url: this.homeUrl, icon: 'far fa-home' };
|
|
257
257
|
else if (routes.length)
|
|
258
|
-
home = __assign(__assign({}, this.getMenuItem(routes[0], routes.length === 1)), { icon: '
|
|
258
|
+
home = __assign(__assign({}, this.getMenuItem(routes[0], routes.length === 1)), { icon: 'far fa-home' });
|
|
259
259
|
return home;
|
|
260
260
|
};
|
|
261
261
|
BreadcrumbComponent.prototype.getCurrentItems = function (routes) {
|
|
@@ -739,6 +739,7 @@
|
|
|
739
739
|
this.habilitaOpcaoCide = false;
|
|
740
740
|
this.tributosChange = new core.EventEmitter();
|
|
741
741
|
this.currencyLocaleOptions = { currencySymbol: '', decimalSeparator: ',', thousandsSeparator: '.' };
|
|
742
|
+
this.permissionMemoriaCalculo = true;
|
|
742
743
|
}
|
|
743
744
|
Object.defineProperty(ErpTributosComponent.prototype, "tributos", {
|
|
744
745
|
get: function () {
|
|
@@ -762,6 +763,7 @@
|
|
|
762
763
|
this.menuItemCideTecnologia = false;
|
|
763
764
|
this.dominio = this.dominio ? this.dominio : 'erpx_cpl_imp';
|
|
764
765
|
this.servico = this.servico ? this.servico : 'cadastros';
|
|
766
|
+
this.idsTaxesMemoriaCalculo = [{ idParametro: '', idPerfilTributario: '', tipoTributo: exports.EnumTipoTributo.PIS }];
|
|
765
767
|
this.prefixLabel = this.dominio + "." + this.servico;
|
|
766
768
|
if (Object.keys(this.currencyLocaleOptions).length == 0)
|
|
767
769
|
this.currencyLocaleOptions = { currencySymbol: '', decimalSeparator: ',', thousandsSeparator: '.' };
|
|
@@ -3593,7 +3595,7 @@
|
|
|
3593
3595
|
ErpTributosComponent = __decorate([
|
|
3594
3596
|
core.Component({
|
|
3595
3597
|
selector: 'erp-tributos',
|
|
3596
|
-
template: "<div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <div class=\"ui-g-3\">\n <s-button id=\"button-actions\" priority=\"default\" [model]=\"getActions()\" [auxiliary]=\"false\"\n [label]=\"'erpx_tributos.actions_label' | translate\" [disabled]=\"camposBloqueados == true\">\n </s-button>\n </div>\n </div>\n</div>\n\n<div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <p-accordion [(activeIndex)]=\"indexAccordion\" [multiple]=\"true\">\n <p-accordionTab *ngFor=\"let grupo of grupos\">\n <p-header>\n <span *ngIf=\"!grupo.valid\" class=\"sds-badge-error\">\n </span>\n {{ grupo.grupo | translate }}\n </p-header>\n <div>\n
|
|
3598
|
+
template: "<div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <div class=\"ui-g-3\">\n <s-button id=\"button-actions\" priority=\"default\" [model]=\"getActions()\" [auxiliary]=\"false\"\n [label]=\"'erpx_tributos.actions_label' | translate\" [disabled]=\"camposBloqueados == true\">\n </s-button>\n </div>\n </div>\n</div>\n\n<div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <p-accordion [(activeIndex)]=\"indexAccordion\" [multiple]=\"true\">\n <p-accordionTab *ngFor=\"let grupo of grupos\">\n <p-header>\n <span *ngIf=\"!grupo.valid\" class=\"sds-badge-error\">\n </span>\n {{ grupo.grupo | translate }}\n </p-header>\n <div>\n <div *ngFor=\"let item of grupo.item\">\n <div class=\"ui-g\">\n <div class=\"ui-fluid sds-section-title\">{{item.label | translate}}\n </div>\n <div class=\"posicao-memoria-calc\" style=\"margin-top: 15px; margin-left: 10px;\">\n <s-button *ngIf=\"permissionMemoriaCalculo && hideButton(item.name)\" id=\"item.name\" priority=\"link\"\n [label]=\"prefixLabel + '.button_memoria_calculo_label' | translate\" (onClick)=\"memoriaCalculo(item)\"\n size=\"small\" [disabled]=\"disabledButton(item.name)\" iconClass=\"far fa-cog\" slide=\"true\"></s-button>\n </div>\n </div>\n <s-dynamic-form [fields]=\"item.formField\" [form]=\"item.formGroup\"\n [errorMessages]=\"{required: 'erpx_sup_rcb.nota_fiscal.error_required' | translate}\">\n </s-dynamic-form>\n </div>\n\n </div>\n </p-accordionTab>\n </p-accordion>\n </div>\n</div>"
|
|
3597
3599
|
})
|
|
3598
3600
|
], ErpTributosComponent);
|
|
3599
3601
|
return ErpTributosComponent;
|
|
@@ -4363,7 +4365,7 @@
|
|
|
4363
4365
|
ErpLoteSerieComponent.prototype.onQuantidadeDisponivelDemandaRequest = function (event) {
|
|
4364
4366
|
var _this = this;
|
|
4365
4367
|
var listParams = {
|
|
4366
|
-
filterQuery: "idExterno eq '" + this.loteSerieParams.orderInformation.items[0].id + "' and qtdDisponivel > 0"
|
|
4368
|
+
filterQuery: "idExterno eq '" + this.loteSerieParams.orderInformation.items[0].id + "' and qtdDisponivel > 0 and numSep is not null"
|
|
4367
4369
|
};
|
|
4368
4370
|
if (event instanceof String || typeof event === 'string') {
|
|
4369
4371
|
listParams.page = 0;
|
|
@@ -5085,7 +5087,7 @@
|
|
|
5085
5087
|
ErpLoteSerieComponent = __decorate([
|
|
5086
5088
|
core.Component({
|
|
5087
5089
|
selector: 'erp-lote-serie',
|
|
5088
|
-
template: "\n<form [formGroup]=\"formGroupBatchOrSeries\" autocomplete=\"off\">\n <div class=\"sds-section-title\" *ngIf=\"showHeader\">{{titleLoteOrSerie}}</div>\n <div>\n <s-dynamic-form [fields]=\"batchOrSeriesFields\" [form]=\"formGroupBatchOrSeries\"\n [errorMessages]=\"{ required: translateHtml('error_required'),\n maxlength: translateHtml('error_max_length',maxLength),\n max: translateHtml('error_max_length'),\n minDataValidade: translateHtml('minDataValidade')}\">\n </s-dynamic-form>\n </div>\n\n <br>\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <s-button id=\"add-button\" type=\"submit\" [disabled]=\"blockedFields\"\n [label]=\"translateHtml('add')\" (click)=\"addBatchOrSeries()\">\n </s-button>\n <s-button\n *ngIf=\"isSeeDemandsButtonVisible()\"\n [label]=\"translateHtml('see_demands')\" (click)=\"openDemands()\">\n </s-button>\n </div>\n </div>\n\n</form>\n\n<div class=\"sds-section-title\">Totais</div>\n\n<div class=\"ui-g custom-stats\">\n <div class=\"ui-sm-12 ui-md-4\">\n <s-stats-card [animateNumbers]=\"true\" color=\"#0C9348\" [lightMode]=\"true\" [lightVersion]=\"true\"\n iconClass=\"
|
|
5090
|
+
template: "\n<form [formGroup]=\"formGroupBatchOrSeries\" autocomplete=\"off\">\n <div class=\"sds-section-title\" *ngIf=\"showHeader\">{{titleLoteOrSerie}}</div>\n <div>\n <s-dynamic-form [fields]=\"batchOrSeriesFields\" [form]=\"formGroupBatchOrSeries\"\n [errorMessages]=\"{ required: translateHtml('error_required'),\n maxlength: translateHtml('error_max_length',maxLength),\n max: translateHtml('error_max_length'),\n minDataValidade: translateHtml('minDataValidade')}\">\n </s-dynamic-form>\n </div>\n\n <br>\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <s-button id=\"add-button\" type=\"submit\" [disabled]=\"blockedFields\"\n [label]=\"translateHtml('add')\" (click)=\"addBatchOrSeries()\">\n </s-button>\n <s-button\n *ngIf=\"isSeeDemandsButtonVisible()\"\n [label]=\"translateHtml('see_demands')\" (click)=\"openDemands()\">\n </s-button>\n </div>\n </div>\n\n</form>\n\n<div class=\"sds-section-title\">Totais</div>\n\n<div class=\"ui-g custom-stats\">\n <div class=\"ui-sm-12 ui-md-4\">\n <s-stats-card [animateNumbers]=\"true\" color=\"#0C9348\" [lightMode]=\"true\" [lightVersion]=\"true\"\n iconClass=\"far fa-dollar-sign\"\n [label]=\"translateHtml('totalizador_1_title')\"\n [value]=\"qtdAdistribuir | localizedNumber:locale.number.scale | async\">\n </s-stats-card>\n </div>\n <div class=\"ui-sm-12 ui-md-4 \">\n <s-stats-card [animateNumbers]=\"true\" color=\"#428BCA\" [lightMode]=\"true\" [lightVersion]=\"true\"\n iconClass=\"far fa-dollar-sign\"\n [label]=\"translateHtml('totalizador_2_title')\"\n [value]=\"qtdDistribuida | localizedNumber:locale.number.scale | async\">\n </s-stats-card>\n </div>\n <div class=\"ui-sm-12 ui-md-4\">\n <s-stats-card [animateNumbers]=\"true\" color=\"#C13018\" [lightMode]=\"true\" [lightVersion]=\"true\"\n iconClass=\"far fa-dollar-sign\"\n [label]=\"translateHtml('totalizador_3_title')\"\n [value]=\"qtdRestante | localizedNumber:locale.number.scale | async\">\n </s-stats-card>\n </div>\n</div>\n\n<div class=\"sds-section-title\">{{titleGridLoteOrSerie}}</div>\n\n<s-empty-state id=\"my-empty-state\" *ngIf=\"!gridData.length\" iconClass=\"far fa-dollar-sign\"\n [title]=\"translateHtml('no_distributions_yet')\"\n [description]=\"translateHtml('no_distributions_description')\">\n</s-empty-state>\n\n<div class=\"ui-g\">\n <div class=\"ui-g-12\">\n<p-table *ngIf=\"gridData.length\" [value]=\"gridData\" [columns]=\"gridColumns\" dataKey=\"id\"\n [scrollable]=\"true\"[resizableColumns]=\"true\">\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" style=\"width: 170px\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{col.header}}</span>\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData let-columns>\n <tr>\n <td style=\"width: 170px\">\n <span>{{ rowData.codigo }}</span>\n </td>\n <td *ngIf=\"!isSerie\" style=\"width: 170px\">\n <span>{{rowData.quantidade | localizedNumber:locale.number.scale | async}}</span>\n </td>\n <td style=\"width: 170px\">\n <span>{{rowData.dataFabricacao | localizedDate:\"L\" | async }}</span>\n </td>\n <td style=\"width: 170px\">\n <span>{{rowData.dataValidade | localizedDate:\"L\" | async }}</span>\n </td>\n <td style=\"width: 170px\">\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <!-- <s-button id=\"add-button\" type=\"submit\"\n [label]=\"translateHtml('add')\" (click)=\"addBatchOrSeries()\">\n </s-button> -->\n <s-button id=\"delete-button\" priority=\"default\" [auxiliary]=\"true\" [disabled]=\"blockedFields\"\n [title]=\"translateHtml('deleted_message_title',null,'(Alt + Shift + X)')\"\n [label]=\"translateHtml('deleted_message_title')\" (click)=\"removeBatchOrSeries(rowData)\">\n </s-button>\n </div>\n </div>\n </td>\n </tr>\n </ng-template>\n</p-table>\n</div>\n</div>\n"
|
|
5089
5091
|
})
|
|
5090
5092
|
], ErpLoteSerieComponent);
|
|
5091
5093
|
return ErpLoteSerieComponent;
|