@senior-gestao-empresarial/erpx-components 4.19.0 → 4.20.0
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 +60 -56
- 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/tributos/rules/calculation/rules/tax-classification-calculation-rule.js +47 -35
- package/esm5/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.js +63 -59
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +45 -33
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +61 -57
- 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
|
@@ -2027,23 +2027,24 @@
|
|
|
2027
2027
|
var name = _a.name;
|
|
2028
2028
|
return name === exports.EnumTipoTributo.IBS_ESTORNO_CREDITO;
|
|
2029
2029
|
}), ibsEstornoCreditoFormGroup = _c.formGroup, ibsEstornoCreditoFormField = _c.formField;
|
|
2030
|
-
var
|
|
2030
|
+
var classificacaoTributariaDataKey_1 = ibsEstornoCreditoFormField.find(function (_a) {
|
|
2031
2031
|
var name = _a.name;
|
|
2032
2032
|
return name === 'classificacaoTributaria';
|
|
2033
2033
|
}).dataKey;
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2034
|
+
var situacaoTributariaDataKey_1 = formField.find(function (field) { return field.name === 'situacaoTributaria'; }).dataKey;
|
|
2035
|
+
rxjs.merge(ibsEstornoCreditoFormGroup
|
|
2036
|
+
.get('classificacaoTributaria')
|
|
2037
|
+
.valueChanges.pipe(operators.distinctUntilChanged(function (old, current) {
|
|
2038
|
+
return (old === null || old === void 0 ? void 0 : old[classificacaoTributariaDataKey_1]) === (current === null || current === void 0 ? void 0 : current[classificacaoTributariaDataKey_1]);
|
|
2039
|
+
})), formGroup.get('situacaoTributaria').valueChanges.pipe(operators.distinctUntilChanged(function (old, current) {
|
|
2040
|
+
return (old === null || old === void 0 ? void 0 : old[situacaoTributariaDataKey_1]) === (current === null || current === void 0 ? void 0 : current[situacaoTributariaDataKey_1]);
|
|
2041
|
+
}), operators.map(function () { return null; })))
|
|
2042
|
+
.pipe(operators.filter(function (taxClassification) {
|
|
2043
|
+
var _a;
|
|
2044
|
+
return (taxClassification === null || taxClassification === void 0 ? void 0 : taxClassification.id) !== ((_a = formGroup.get('classificacaoTributaria')
|
|
2045
|
+
.value) === null || _a === void 0 ? void 0 : _a.id);
|
|
2044
2046
|
}))
|
|
2045
|
-
.subscribe(function (
|
|
2046
|
-
var _b = __read(_a, 1), taxClassification = _b[0];
|
|
2047
|
+
.subscribe(function (taxClassification) {
|
|
2047
2048
|
formGroup
|
|
2048
2049
|
.get('classificacaoTributaria')
|
|
2049
2050
|
.setValue(taxClassification);
|
|
@@ -2056,23 +2057,24 @@
|
|
|
2056
2057
|
var name = _a.name;
|
|
2057
2058
|
return name === exports.EnumTipoTributo.CBS_ESTORNO_CREDITO;
|
|
2058
2059
|
}), cbsEstornoCreditoFormGroup = _d.formGroup, cbsEstornoCreditoFormField = _d.formField;
|
|
2059
|
-
var
|
|
2060
|
+
var classificacaoTributariaDataKey_2 = cbsEstornoCreditoFormField.find(function (_a) {
|
|
2060
2061
|
var name = _a.name;
|
|
2061
2062
|
return name === 'classificacaoTributaria';
|
|
2062
2063
|
}).dataKey;
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2064
|
+
var situacaoTributariaDataKey_2 = formField.find(function (field) { return field.name === 'situacaoTributaria'; }).dataKey;
|
|
2065
|
+
rxjs.merge(cbsEstornoCreditoFormGroup
|
|
2066
|
+
.get('classificacaoTributaria')
|
|
2067
|
+
.valueChanges.pipe(operators.distinctUntilChanged(function (old, current) {
|
|
2068
|
+
return (old === null || old === void 0 ? void 0 : old[classificacaoTributariaDataKey_2]) === (current === null || current === void 0 ? void 0 : current[classificacaoTributariaDataKey_2]);
|
|
2069
|
+
})), formGroup.get('situacaoTributaria').valueChanges.pipe(operators.distinctUntilChanged(function (old, current) {
|
|
2070
|
+
return (old === null || old === void 0 ? void 0 : old[situacaoTributariaDataKey_2]) === (current === null || current === void 0 ? void 0 : current[situacaoTributariaDataKey_2]);
|
|
2071
|
+
}), operators.map(function () { return null; })))
|
|
2072
|
+
.pipe(operators.filter(function (taxClassification) {
|
|
2073
|
+
var _a;
|
|
2074
|
+
return (taxClassification === null || taxClassification === void 0 ? void 0 : taxClassification.id) !== ((_a = formGroup.get('classificacaoTributaria')
|
|
2075
|
+
.value) === null || _a === void 0 ? void 0 : _a.id);
|
|
2073
2076
|
}))
|
|
2074
|
-
.subscribe(function (
|
|
2075
|
-
var _b = __read(_a, 1), taxClassification = _b[0];
|
|
2077
|
+
.subscribe(function (taxClassification) {
|
|
2076
2078
|
formGroup
|
|
2077
2079
|
.get('classificacaoTributaria')
|
|
2078
2080
|
.setValue(taxClassification);
|
|
@@ -2085,7 +2087,7 @@
|
|
|
2085
2087
|
var name = _a.name;
|
|
2086
2088
|
return name === exports.EnumTipoTributo.IBS_AJUSTE;
|
|
2087
2089
|
}), ibsAjusteFormGroup = _e.formGroup, ibsAjusteFormField = _e.formField;
|
|
2088
|
-
var
|
|
2090
|
+
var dataKey_2 = ibsAjusteFormField.find(function (_a) {
|
|
2089
2091
|
var name = _a.name;
|
|
2090
2092
|
return name === 'classificacaoTributaria';
|
|
2091
2093
|
}).dataKey;
|
|
@@ -2093,7 +2095,7 @@
|
|
|
2093
2095
|
ibsAjusteFormGroup
|
|
2094
2096
|
.get('classificacaoTributaria')
|
|
2095
2097
|
.valueChanges.pipe(operators.startWith(ibsAjusteFormGroup.get('classificacaoTributaria').value), operators.distinctUntilChanged(function (old, current) {
|
|
2096
|
-
return (old === null || old === void 0 ? void 0 : old[
|
|
2098
|
+
return (old === null || old === void 0 ? void 0 : old[dataKey_2]) === (current === null || current === void 0 ? void 0 : current[dataKey_2]);
|
|
2097
2099
|
}))
|
|
2098
2100
|
])
|
|
2099
2101
|
.pipe(operators.skip(1), operators.map(function (_a) {
|
|
@@ -2114,7 +2116,7 @@
|
|
|
2114
2116
|
var name = _a.name;
|
|
2115
2117
|
return name === exports.EnumTipoTributo.CBS_AJUSTE;
|
|
2116
2118
|
}), cbsAjusteFormGroup = _f.formGroup, cbsAjusteFormField = _f.formField;
|
|
2117
|
-
var
|
|
2119
|
+
var dataKey_3 = cbsAjusteFormField.find(function (_a) {
|
|
2118
2120
|
var name = _a.name;
|
|
2119
2121
|
return name === 'classificacaoTributaria';
|
|
2120
2122
|
}).dataKey;
|
|
@@ -2122,7 +2124,7 @@
|
|
|
2122
2124
|
cbsAjusteFormGroup
|
|
2123
2125
|
.get('classificacaoTributaria')
|
|
2124
2126
|
.valueChanges.pipe(operators.startWith(cbsAjusteFormGroup.get('classificacaoTributaria').value), operators.distinctUntilChanged(function (old, current) {
|
|
2125
|
-
return (old === null || old === void 0 ? void 0 : old[
|
|
2127
|
+
return (old === null || old === void 0 ? void 0 : old[dataKey_3]) === (current === null || current === void 0 ? void 0 : current[dataKey_3]);
|
|
2126
2128
|
}))
|
|
2127
2129
|
])
|
|
2128
2130
|
.pipe(operators.skip(1), operators.map(function (_a) {
|
|
@@ -2143,23 +2145,24 @@
|
|
|
2143
2145
|
var name = _a.name;
|
|
2144
2146
|
return name === exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO;
|
|
2145
2147
|
}), ibsTransferenciaCreditoFormGroup = _g.formGroup, ibsTransferenciaCreditoFormField = _g.formField;
|
|
2146
|
-
var
|
|
2148
|
+
var classificacaoTributariaDataKey_3 = ibsTransferenciaCreditoFormField.find(function (_a) {
|
|
2147
2149
|
var name = _a.name;
|
|
2148
2150
|
return name === 'classificacaoTributaria';
|
|
2149
2151
|
}).dataKey;
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2152
|
+
var situacaoTributariaDataKey_3 = formField.find(function (field) { return field.name === 'situacaoTributaria'; }).dataKey;
|
|
2153
|
+
rxjs.merge(ibsTransferenciaCreditoFormGroup
|
|
2154
|
+
.get('classificacaoTributaria')
|
|
2155
|
+
.valueChanges.pipe(operators.distinctUntilChanged(function (old, current) {
|
|
2156
|
+
return (old === null || old === void 0 ? void 0 : old[classificacaoTributariaDataKey_3]) === (current === null || current === void 0 ? void 0 : current[classificacaoTributariaDataKey_3]);
|
|
2157
|
+
})), formGroup.get('situacaoTributaria').valueChanges.pipe(operators.distinctUntilChanged(function (old, current) {
|
|
2158
|
+
return (old === null || old === void 0 ? void 0 : old[situacaoTributariaDataKey_3]) === (current === null || current === void 0 ? void 0 : current[situacaoTributariaDataKey_3]);
|
|
2159
|
+
}), operators.map(function () { return null; })))
|
|
2160
|
+
.pipe(operators.filter(function (taxClassification) {
|
|
2161
|
+
var _a;
|
|
2162
|
+
return (taxClassification === null || taxClassification === void 0 ? void 0 : taxClassification.id) !== ((_a = formGroup.get('classificacaoTributaria')
|
|
2163
|
+
.value) === null || _a === void 0 ? void 0 : _a.id);
|
|
2160
2164
|
}))
|
|
2161
|
-
.subscribe(function (
|
|
2162
|
-
var _b = __read(_a, 1), taxClassification = _b[0];
|
|
2165
|
+
.subscribe(function (taxClassification) {
|
|
2163
2166
|
formGroup
|
|
2164
2167
|
.get('classificacaoTributaria')
|
|
2165
2168
|
.setValue(taxClassification);
|
|
@@ -2172,23 +2175,24 @@
|
|
|
2172
2175
|
var name = _a.name;
|
|
2173
2176
|
return name === exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO;
|
|
2174
2177
|
}), cbsTransferenciaCreditoFormGroup = _h.formGroup, cbsTransferenciaCreditoFormField = _h.formField;
|
|
2175
|
-
var
|
|
2178
|
+
var classificacaoTributariaDataKey_4 = cbsTransferenciaCreditoFormField.find(function (_a) {
|
|
2176
2179
|
var name = _a.name;
|
|
2177
2180
|
return name === 'classificacaoTributaria';
|
|
2178
2181
|
}).dataKey;
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2182
|
+
var situacaoTributariaDataKey_4 = formField.find(function (field) { return field.name === 'situacaoTributaria'; }).dataKey;
|
|
2183
|
+
rxjs.merge(cbsTransferenciaCreditoFormGroup
|
|
2184
|
+
.get('classificacaoTributaria')
|
|
2185
|
+
.valueChanges.pipe(operators.distinctUntilChanged(function (old, current) {
|
|
2186
|
+
return (old === null || old === void 0 ? void 0 : old[classificacaoTributariaDataKey_4]) === (current === null || current === void 0 ? void 0 : current[classificacaoTributariaDataKey_4]);
|
|
2187
|
+
})), formGroup.get('situacaoTributaria').valueChanges.pipe(operators.distinctUntilChanged(function (old, current) {
|
|
2188
|
+
return (old === null || old === void 0 ? void 0 : old[situacaoTributariaDataKey_4]) === (current === null || current === void 0 ? void 0 : current[situacaoTributariaDataKey_4]);
|
|
2189
|
+
}), operators.map(function () { return null; })))
|
|
2190
|
+
.pipe(operators.filter(function (taxClassification) {
|
|
2191
|
+
var _a;
|
|
2192
|
+
return (taxClassification === null || taxClassification === void 0 ? void 0 : taxClassification.id) !== ((_a = formGroup.get('classificacaoTributaria')
|
|
2193
|
+
.value) === null || _a === void 0 ? void 0 : _a.id);
|
|
2189
2194
|
}))
|
|
2190
|
-
.subscribe(function (
|
|
2191
|
-
var _b = __read(_a, 1), taxClassification = _b[0];
|
|
2195
|
+
.subscribe(function (taxClassification) {
|
|
2192
2196
|
formGroup
|
|
2193
2197
|
.get('classificacaoTributaria')
|
|
2194
2198
|
.setValue(taxClassification);
|