@senior-gestao-empresarial/erpx-components 3.0.0 → 3.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/bundles/senior-gestao-empresarial-erpx-components.umd.js +18 -55
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js +2 -2
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js.map +1 -1
- package/components/tributos/erp-tributos.component.d.ts +13 -4
- package/esm2015/components/tributos/erp-tributos.component.js +17 -54
- package/esm5/components/tributos/erp-tributos.component.js +17 -54
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +15 -52
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +15 -52
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +1 -1
- package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('primeng/breadcrumb'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@senior-gestao-empresarial/angular-components'), require('@seniorsistemas/angular-components'), require('primeng/accordion'), require('@angular/forms'), require('primeng/api'), require('@angular/common/http'), require('primeng'), require('@seniorsistemas/platform-
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@senior-gestao-empresarial/erpx-components', ['exports', '@angular/core', '@angular/common', 'primeng/breadcrumb', '@angular/router', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@senior-gestao-empresarial/angular-components', '@seniorsistemas/angular-components', 'primeng/accordion', '@angular/forms', 'primeng/api', '@angular/common/http', 'primeng', '@seniorsistemas/platform-
|
|
4
|
-
(global = global || self, factory((global['senior-gestao-empresarial'] = global['senior-gestao-empresarial'] || {}, global['senior-gestao-empresarial']['erpx-components'] = {}), global.ng.core, global.ng.common, global.breadcrumb, global.ng.router, global.rxjs, global.rxjs.operators, global.core$1, global.angularComponents, global.angularComponents$1, global.accordion, global.ng.forms, global.api, global.ng.common.http, global.primeng, global.
|
|
5
|
-
}(this, (function (exports, core, common, breadcrumb, router, rxjs, operators, core$1, angularComponents, angularComponents$1, accordion, forms, api, http, primeng,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('primeng/breadcrumb'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@senior-gestao-empresarial/angular-components'), require('@seniorsistemas/angular-components'), require('primeng/accordion'), require('@angular/forms'), require('primeng/api'), require('@angular/common/http'), require('primeng'), require('@seniorsistemas/platform-components'), require('@seniorsistemas/platform-utils'), require('primeng/confirmdialog'), require('primeng/messages'), require('primeng/panel'), require('primeng/table'), require('primeng/tabview'), require('moment')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@senior-gestao-empresarial/erpx-components', ['exports', '@angular/core', '@angular/common', 'primeng/breadcrumb', '@angular/router', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@senior-gestao-empresarial/angular-components', '@seniorsistemas/angular-components', 'primeng/accordion', '@angular/forms', 'primeng/api', '@angular/common/http', 'primeng', '@seniorsistemas/platform-components', '@seniorsistemas/platform-utils', 'primeng/confirmdialog', 'primeng/messages', 'primeng/panel', 'primeng/table', 'primeng/tabview', 'moment'], factory) :
|
|
4
|
+
(global = global || self, factory((global['senior-gestao-empresarial'] = global['senior-gestao-empresarial'] || {}, global['senior-gestao-empresarial']['erpx-components'] = {}), global.ng.core, global.ng.common, global.breadcrumb, global.ng.router, global.rxjs, global.rxjs.operators, global.core$1, global.angularComponents, global.angularComponents$1, global.accordion, global.ng.forms, global.api, global.ng.common.http, global.primeng, global.platformComponents, global.platformUtils, global.confirmdialog, global.messages, global.panel, global.table, global.tabview, global.moment));
|
|
5
|
+
}(this, (function (exports, core, common, breadcrumb, router, rxjs, operators, core$1, angularComponents, angularComponents$1, accordion, forms, api, http, primeng, platformComponents, platformUtils, confirmdialog, messages, panel, table, tabview, moment) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1447,7 +1447,7 @@
|
|
|
1447
1447
|
break;
|
|
1448
1448
|
}
|
|
1449
1449
|
this.grupos.unshift({
|
|
1450
|
-
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.CIDE_TECNOLOGIA + '_label'), item: item
|
|
1450
|
+
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.CIDE_TECNOLOGIA + '_label'), item: item
|
|
1451
1451
|
});
|
|
1452
1452
|
return item;
|
|
1453
1453
|
}
|
|
@@ -1873,7 +1873,7 @@
|
|
|
1873
1873
|
default:
|
|
1874
1874
|
break;
|
|
1875
1875
|
}
|
|
1876
|
-
this.grupos.unshift({ grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.ICMS + '_label'), item: item
|
|
1876
|
+
this.grupos.unshift({ grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.ICMS + '_label'), item: item });
|
|
1877
1877
|
return item;
|
|
1878
1878
|
}
|
|
1879
1879
|
};
|
|
@@ -2052,7 +2052,7 @@
|
|
|
2052
2052
|
break;
|
|
2053
2053
|
}
|
|
2054
2054
|
this.grupos.unshift({
|
|
2055
|
-
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.RETENCOES + '_label'), item: item
|
|
2055
|
+
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.RETENCOES + '_label'), item: item
|
|
2056
2056
|
});
|
|
2057
2057
|
return item;
|
|
2058
2058
|
}
|
|
@@ -2084,7 +2084,7 @@
|
|
|
2084
2084
|
{ campo: exports.EnumCampoTributo.Valor }
|
|
2085
2085
|
], exports.EnumTipoTributo.FUNRURAL_TOTAL)));
|
|
2086
2086
|
this.grupos.unshift({
|
|
2087
|
-
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.FUNRURAL + '_label'), item: item
|
|
2087
|
+
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.FUNRURAL + '_label'), item: item
|
|
2088
2088
|
});
|
|
2089
2089
|
var funruralTotal = item.find(function (item) { return item.name === "FUNRURAL_TOTAL"; });
|
|
2090
2090
|
funruralTotal.formGroup.disable({ emitEvent: false });
|
|
@@ -2135,7 +2135,7 @@
|
|
|
2135
2135
|
break;
|
|
2136
2136
|
}
|
|
2137
2137
|
this.grupos.unshift({
|
|
2138
|
-
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.IMPORTACOES + '_label'), item: item
|
|
2138
|
+
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.IMPORTACOES + '_label'), item: item
|
|
2139
2139
|
});
|
|
2140
2140
|
return item;
|
|
2141
2141
|
}
|
|
@@ -2194,7 +2194,7 @@
|
|
|
2194
2194
|
default:
|
|
2195
2195
|
break;
|
|
2196
2196
|
}
|
|
2197
|
-
this.grupos.unshift({ grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.ISS + '_label'), item: item
|
|
2197
|
+
this.grupos.unshift({ grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.ISS + '_label'), item: item });
|
|
2198
2198
|
return item;
|
|
2199
2199
|
}
|
|
2200
2200
|
};
|
|
@@ -2278,7 +2278,7 @@
|
|
|
2278
2278
|
default:
|
|
2279
2279
|
break;
|
|
2280
2280
|
}
|
|
2281
|
-
this.grupos.unshift({ grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.PIS + '_label'), item: item
|
|
2281
|
+
this.grupos.unshift({ grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.PIS + '_label'), item: item });
|
|
2282
2282
|
return item;
|
|
2283
2283
|
}
|
|
2284
2284
|
};
|
|
@@ -2363,7 +2363,7 @@
|
|
|
2363
2363
|
break;
|
|
2364
2364
|
}
|
|
2365
2365
|
this.grupos.unshift({
|
|
2366
|
-
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.COFINS + '_label'), item: item
|
|
2366
|
+
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.COFINS + '_label'), item: item
|
|
2367
2367
|
});
|
|
2368
2368
|
return item;
|
|
2369
2369
|
}
|
|
@@ -2471,24 +2471,10 @@
|
|
|
2471
2471
|
default:
|
|
2472
2472
|
break;
|
|
2473
2473
|
}
|
|
2474
|
-
this.grupos.unshift({ grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.IPI + '_label'), item: item
|
|
2474
|
+
this.grupos.unshift({ grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.IPI + '_label'), item: item });
|
|
2475
2475
|
return item;
|
|
2476
2476
|
}
|
|
2477
2477
|
};
|
|
2478
|
-
ErpTributosComponent.prototype.setGroupValid = function (tributo) {
|
|
2479
|
-
if (this.grupos && this.grupos != undefined && this.grupos.length > 0) {
|
|
2480
|
-
this.grupos.map(function (grupo) {
|
|
2481
|
-
grupo.valid = true;
|
|
2482
|
-
grupo.item
|
|
2483
|
-
.map(function (it) {
|
|
2484
|
-
if (it.formGroup.invalid) {
|
|
2485
|
-
grupo.valid = false;
|
|
2486
|
-
return;
|
|
2487
|
-
}
|
|
2488
|
-
});
|
|
2489
|
-
});
|
|
2490
|
-
}
|
|
2491
|
-
};
|
|
2492
2478
|
ErpTributosComponent.prototype.setVariableRequired = function (tributo) {
|
|
2493
2479
|
switch (tributo) {
|
|
2494
2480
|
case exports.EnumTipoTributo.CIDE_TECNOLOGIA:
|
|
@@ -2914,7 +2900,6 @@
|
|
|
2914
2900
|
_this.calcularValor(tributo);
|
|
2915
2901
|
_this.backValue();
|
|
2916
2902
|
_this.setValidators(tributo);
|
|
2917
|
-
_this.setGroupValid(tributo);
|
|
2918
2903
|
},
|
|
2919
2904
|
errorMessages: function () { return ({
|
|
2920
2905
|
required: _this.translate.instant('erpx.tributos.fields_required_validator')
|
|
@@ -2942,7 +2927,6 @@
|
|
|
2942
2927
|
_this.calcularValor(tributo);
|
|
2943
2928
|
_this.backValue();
|
|
2944
2929
|
_this.setValidators(tributo);
|
|
2945
|
-
_this.setGroupValid(tributo);
|
|
2946
2930
|
},
|
|
2947
2931
|
errorMessages: function () { return ({
|
|
2948
2932
|
required: _this.translate.instant('erpx.tributos.fields_required_validator')
|
|
@@ -2970,7 +2954,6 @@
|
|
|
2970
2954
|
// this.calcularValor(tributo);
|
|
2971
2955
|
_this.backValue();
|
|
2972
2956
|
_this.setValidators(tributo);
|
|
2973
|
-
_this.setGroupValid(tributo);
|
|
2974
2957
|
},
|
|
2975
2958
|
errorMessages: function () { return ({
|
|
2976
2959
|
required: _this.translate.instant('erpx.tributos.fields_required_validator')
|
|
@@ -2997,7 +2980,6 @@
|
|
|
2997
2980
|
// this.calcularValor(tributo);
|
|
2998
2981
|
_this.backValue();
|
|
2999
2982
|
_this.setValidators(tributo);
|
|
3000
|
-
_this.setGroupValid(tributo);
|
|
3001
2983
|
},
|
|
3002
2984
|
errorMessages: function () { return ({
|
|
3003
2985
|
required: _this.translate.instant('erpx.tributos.fields_required_validator')
|
|
@@ -3024,7 +3006,6 @@
|
|
|
3024
3006
|
onBlur: function () {
|
|
3025
3007
|
_this.backValue();
|
|
3026
3008
|
_this.setValidators(tributo);
|
|
3027
|
-
_this.setGroupValid(tributo);
|
|
3028
3009
|
},
|
|
3029
3010
|
errorMessages: function () { return ({
|
|
3030
3011
|
required: _this.translate.instant('erpx.tributos.fields_required_validator'),
|
|
@@ -3052,7 +3033,6 @@
|
|
|
3052
3033
|
onBlur: function () {
|
|
3053
3034
|
_this.backValue();
|
|
3054
3035
|
_this.setValidators(tributo);
|
|
3055
|
-
_this.setGroupValid(tributo);
|
|
3056
3036
|
},
|
|
3057
3037
|
errorMessages: function () { return ({
|
|
3058
3038
|
required: _this.translate.instant('erpx.tributos.fields_required_validator')
|
|
@@ -3079,7 +3059,6 @@
|
|
|
3079
3059
|
onBlur: function () {
|
|
3080
3060
|
_this.backValue();
|
|
3081
3061
|
_this.setValidators(tributo);
|
|
3082
|
-
_this.setGroupValid(tributo);
|
|
3083
3062
|
},
|
|
3084
3063
|
errorMessages: function () { return ({
|
|
3085
3064
|
required: _this.translate.instant('erpx.tributos.fields_required_validator')
|
|
@@ -3154,7 +3133,6 @@
|
|
|
3154
3133
|
})), { onBlur: function () {
|
|
3155
3134
|
_this.backValue();
|
|
3156
3135
|
_this.setValidators(tributo);
|
|
3157
|
-
_this.setGroupValid(tributo);
|
|
3158
3136
|
}, id: tributo + 'SituacaoTributaria', label: _this.translate.instant('erpx.tributos.fields_situacao_tributaria_label'), size: { sm: 12, md: 6, lg: 6, xl: 3 }, required: function () { return _this.setVariableRequired(tributo); } })));
|
|
3159
3137
|
}
|
|
3160
3138
|
else if (it.campo == exports.EnumCampoTributo.EnquadramentoIpi) {
|
|
@@ -3171,7 +3149,6 @@
|
|
|
3171
3149
|
})), { id: tributo + 'EnquadramentoIpi', label: _this.translate.instant('erpx.tributos.fields_enquadramento_ipi_label'), size: { sm: 12, md: 6, lg: 6, xl: 3 }, onBlur: function () {
|
|
3172
3150
|
_this.backValue();
|
|
3173
3151
|
_this.setValidators(tributo);
|
|
3174
|
-
_this.setGroupValid(tributo);
|
|
3175
3152
|
}, errorMessages: function () { return ({
|
|
3176
3153
|
required: _this.translate.instant('erpx.tributos.fields_required_validator')
|
|
3177
3154
|
}); }, required: function () { return _this.setVariableRequired(tributo); } })));
|
|
@@ -3195,7 +3172,6 @@
|
|
|
3195
3172
|
onBlur: function () {
|
|
3196
3173
|
_this.backValue();
|
|
3197
3174
|
_this.setValidators(tributo);
|
|
3198
|
-
_this.setGroupValid(tributo);
|
|
3199
3175
|
},
|
|
3200
3176
|
errorMessages: function () { return ({
|
|
3201
3177
|
max: _this.translate.instant('erpx.tributos.fields_max_validator', { value: 100 }),
|
|
@@ -3223,7 +3199,6 @@
|
|
|
3223
3199
|
onBlur: function () {
|
|
3224
3200
|
_this.backValue();
|
|
3225
3201
|
_this.setValidators(tributo);
|
|
3226
|
-
_this.setGroupValid(tributo);
|
|
3227
3202
|
},
|
|
3228
3203
|
errorMessages: function () { return ({
|
|
3229
3204
|
max: _this.translate.instant('erpx.tributos.fields_max_validator', { value: 1000 }),
|
|
@@ -3265,7 +3240,6 @@
|
|
|
3265
3240
|
return;
|
|
3266
3241
|
_this.backValue();
|
|
3267
3242
|
_this.setValidators(tributo);
|
|
3268
|
-
_this.setGroupValid(tributo);
|
|
3269
3243
|
},
|
|
3270
3244
|
errorMessages: function () { return ({
|
|
3271
3245
|
required: _this.translate.instant('erpx.tributos.fields_required_validator')
|
|
@@ -3300,7 +3274,6 @@
|
|
|
3300
3274
|
return;
|
|
3301
3275
|
_this.backValue();
|
|
3302
3276
|
_this.setValidators(tributo);
|
|
3303
|
-
_this.setGroupValid(tributo);
|
|
3304
3277
|
},
|
|
3305
3278
|
errorMessages: function () { return ({
|
|
3306
3279
|
required: _this.translate.instant('erpx.tributos.fields_required_validator')
|
|
@@ -3322,7 +3295,6 @@
|
|
|
3322
3295
|
onBlur: function () {
|
|
3323
3296
|
_this.backValue();
|
|
3324
3297
|
_this.setValidators(tributo);
|
|
3325
|
-
_this.setGroupValid(tributo);
|
|
3326
3298
|
},
|
|
3327
3299
|
errorMessages: function () { return ({
|
|
3328
3300
|
max: _this.translate.instant('erpx.tributos.fields_max_validator', { value: 100 }),
|
|
@@ -3350,7 +3322,6 @@
|
|
|
3350
3322
|
onBlur: function () {
|
|
3351
3323
|
_this.backValue();
|
|
3352
3324
|
_this.setValidators(tributo);
|
|
3353
|
-
_this.setGroupValid(tributo);
|
|
3354
3325
|
},
|
|
3355
3326
|
errorMessages: function () { return ({
|
|
3356
3327
|
max: _this.translate.instant('erpx.tributos.fields_max_validator', { value: 100 }),
|
|
@@ -3378,7 +3349,6 @@
|
|
|
3378
3349
|
onBlur: function () {
|
|
3379
3350
|
_this.backValue();
|
|
3380
3351
|
_this.setValidators(tributo);
|
|
3381
|
-
_this.setGroupValid(tributo);
|
|
3382
3352
|
},
|
|
3383
3353
|
errorMessages: function () { return ({
|
|
3384
3354
|
required: _this.translate.instant('erpx.tributos.fields_required_validator')
|
|
@@ -3405,7 +3375,6 @@
|
|
|
3405
3375
|
onBlur: function () {
|
|
3406
3376
|
_this.backValue();
|
|
3407
3377
|
_this.setValidators(tributo);
|
|
3408
|
-
_this.setGroupValid(tributo);
|
|
3409
3378
|
},
|
|
3410
3379
|
errorMessages: function () { return ({
|
|
3411
3380
|
required: _this.translate.instant('erpx.tributos.fields_required_validator')
|
|
@@ -3435,7 +3404,6 @@
|
|
|
3435
3404
|
return;
|
|
3436
3405
|
_this.backValue();
|
|
3437
3406
|
_this.setValidators(tributo);
|
|
3438
|
-
_this.setGroupValid(tributo);
|
|
3439
3407
|
},
|
|
3440
3408
|
errorMessages: function () { return ({
|
|
3441
3409
|
required: _this.translate.instant('erpx.tributos.fields_required_validator')
|
|
@@ -3459,7 +3427,6 @@
|
|
|
3459
3427
|
})), { onBlur: function () {
|
|
3460
3428
|
_this.backValue();
|
|
3461
3429
|
_this.setValidators(tributo);
|
|
3462
|
-
_this.setGroupValid(tributo);
|
|
3463
3430
|
}, id: tributo + 'NaturezaReceita', label: _this.translate.instant('erpx.tributos.fields_natureza_receita_label'), size: { sm: 12, md: 6, lg: 6, xl: 3 }, required: function () { return false; } })));
|
|
3464
3431
|
}
|
|
3465
3432
|
else if (it.campo === exports.EnumCampoTributo.Observacao) {
|
|
@@ -3475,7 +3442,6 @@
|
|
|
3475
3442
|
onBlur: function () {
|
|
3476
3443
|
_this.backValue();
|
|
3477
3444
|
_this.setValidators(tributo);
|
|
3478
|
-
_this.setGroupValid(tributo);
|
|
3479
3445
|
},
|
|
3480
3446
|
errorMessages: function () { return ({
|
|
3481
3447
|
maxlength: _this.translate.instant('erpx.tributos.fields_max_length_validator')
|
|
@@ -3499,7 +3465,6 @@
|
|
|
3499
3465
|
onBlur: function () {
|
|
3500
3466
|
_this.backValue();
|
|
3501
3467
|
_this.setValidators(tributo);
|
|
3502
|
-
_this.setGroupValid(tributo);
|
|
3503
3468
|
},
|
|
3504
3469
|
required: function () { return false; }
|
|
3505
3470
|
}));
|
|
@@ -3549,7 +3514,6 @@
|
|
|
3549
3514
|
onChange: function () {
|
|
3550
3515
|
_this.backValue();
|
|
3551
3516
|
_this.setValidators(tributo);
|
|
3552
|
-
_this.setGroupValid(tributo);
|
|
3553
3517
|
}
|
|
3554
3518
|
}));
|
|
3555
3519
|
}
|
|
@@ -3566,7 +3530,6 @@
|
|
|
3566
3530
|
onBlur: function () {
|
|
3567
3531
|
_this.backValue();
|
|
3568
3532
|
_this.setValidators(tributo);
|
|
3569
|
-
_this.setGroupValid(tributo);
|
|
3570
3533
|
},
|
|
3571
3534
|
errorMessages: function () { return ({
|
|
3572
3535
|
maxlength: _this.translate.instant('erpx.tributos.fields_max_length_validator')
|
|
@@ -3587,7 +3550,6 @@
|
|
|
3587
3550
|
onBlur: function () {
|
|
3588
3551
|
_this.backValue();
|
|
3589
3552
|
_this.setValidators(tributo);
|
|
3590
|
-
_this.setGroupValid(tributo);
|
|
3591
3553
|
},
|
|
3592
3554
|
errorMessages: function () { return ({
|
|
3593
3555
|
maxlength: _this.translate.instant('erpx.tributos.fields_max_length_validator')
|
|
@@ -3614,7 +3576,6 @@
|
|
|
3614
3576
|
onBlur: function () {
|
|
3615
3577
|
_this.backValue();
|
|
3616
3578
|
_this.setValidators(tributo);
|
|
3617
|
-
_this.setGroupValid(tributo);
|
|
3618
3579
|
}
|
|
3619
3580
|
}));
|
|
3620
3581
|
}
|
|
@@ -3654,7 +3615,6 @@
|
|
|
3654
3615
|
return;
|
|
3655
3616
|
_this.backValue();
|
|
3656
3617
|
_this.setValidators(tributo);
|
|
3657
|
-
_this.setGroupValid(tributo);
|
|
3658
3618
|
},
|
|
3659
3619
|
required: false
|
|
3660
3620
|
}));
|
|
@@ -3685,7 +3645,6 @@
|
|
|
3685
3645
|
return;
|
|
3686
3646
|
_this.backValue();
|
|
3687
3647
|
_this.setValidators(tributo);
|
|
3688
|
-
_this.setGroupValid(tributo);
|
|
3689
3648
|
},
|
|
3690
3649
|
required: function () { return false; }
|
|
3691
3650
|
}));
|
|
@@ -3798,6 +3757,10 @@
|
|
|
3798
3757
|
}
|
|
3799
3758
|
return this.prefixLabel + translate;
|
|
3800
3759
|
};
|
|
3760
|
+
ErpTributosComponent.prototype.isGroupInvalid = function (group) {
|
|
3761
|
+
var _a;
|
|
3762
|
+
return (_a = group === null || group === void 0 ? void 0 : group.item) === null || _a === void 0 ? void 0 : _a.some(function (item) { var _a; return (_a = item === null || item === void 0 ? void 0 : item.formGroup) === null || _a === void 0 ? void 0 : _a.invalid; });
|
|
3763
|
+
};
|
|
3801
3764
|
ErpTributosComponent.ctorParameters = function () { return [
|
|
3802
3765
|
{ type: forms.FormBuilder },
|
|
3803
3766
|
{ type: core.ChangeDetectorRef },
|
|
@@ -3853,7 +3816,7 @@
|
|
|
3853
3816
|
ErpTributosComponent = __decorate([
|
|
3854
3817
|
core.Component({
|
|
3855
3818
|
selector: 'erp-tributos',
|
|
3856
|
-
template: "<s-loading-state [loading]=\"isLoading\">\n <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=\"
|
|
3819
|
+
template: "<s-loading-state [loading]=\"isLoading\">\n <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=\"isGroupInvalid(grupo)\" 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]=\"getTranslateButton(item.name) | translate\" (onClick)=\"memoriaCalculo(item)\"\n size=\"small\" [disabled]=\"disabledButton(item.name)\" iconClass=\"far fa-cog\" slide=\"true\"\n animation=\"rotate\"></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>\n</s-loading-state>\n"
|
|
3857
3820
|
})
|
|
3858
3821
|
], ErpTributosComponent);
|
|
3859
3822
|
return ErpTributosComponent;
|