@senior-gestao-pessoas/payroll-core 9.6.1 → 9.7.0-feature-hcmgdp-11851-0d47b4a9
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-pessoas-payroll-core.umd.js +160 -14
- package/bundles/senior-gestao-pessoas-payroll-core.umd.js.map +1 -1
- package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js +1 -1
- package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js.map +1 -1
- package/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.d.ts +7 -1
- package/components/input-rest-auto-complete/input-rest-auto-complete.component.d.ts +1 -0
- package/components/utils/cnpj-validator.d.ts +5 -0
- package/components/utils/format-utils/format-utils.service.d.ts +3 -2
- package/components/utils/generic-validators.d.ts +6 -0
- package/esm2015/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +21 -6
- package/esm2015/components/input-rest-auto-complete/input-rest-auto-complete.component.js +10 -1
- package/esm2015/components/utils/cnpj-validator.js +54 -1
- package/esm2015/components/utils/format-utils/format-utils.service.js +23 -10
- package/esm2015/components/utils/generic-validators.js +57 -1
- package/esm5/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +21 -6
- package/esm5/components/input-rest-auto-complete/input-rest-auto-complete.component.js +10 -1
- package/esm5/components/utils/cnpj-validator.js +54 -1
- package/esm5/components/utils/format-utils/format-utils.service.js +23 -10
- package/esm5/components/utils/generic-validators.js +57 -1
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +160 -14
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +160 -14
- package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/package.json +1 -1
- package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
|
@@ -146,6 +146,59 @@ var CNPJValidator = /** @class */ (function () {
|
|
|
146
146
|
}
|
|
147
147
|
return true;
|
|
148
148
|
};
|
|
149
|
+
CNPJValidator.prototype.checkCNPJAlphanumeric = function (value) {
|
|
150
|
+
var cnpj = value;
|
|
151
|
+
if (cnpj) {
|
|
152
|
+
cnpj = cnpj.replace(/[^\dA-Za-z]/g, '').toUpperCase();
|
|
153
|
+
if (cnpj.length !== 14) {
|
|
154
|
+
return true;
|
|
155
|
+
}
|
|
156
|
+
// Valida que dígitos verificadores são numéricos
|
|
157
|
+
if (!/^\d$/.test(cnpj.charAt(12)) || !/^\d$/.test(cnpj.charAt(13))) {
|
|
158
|
+
return { cnpjNotValid: true };
|
|
159
|
+
}
|
|
160
|
+
// Elimina CNPJs invalidos conhecidos
|
|
161
|
+
if (cnpj === '00000000000000' ||
|
|
162
|
+
cnpj === '11111111111111' ||
|
|
163
|
+
cnpj === '22222222222222' ||
|
|
164
|
+
cnpj === '33333333333333' ||
|
|
165
|
+
cnpj === '44444444444444' ||
|
|
166
|
+
cnpj === '55555555555555' ||
|
|
167
|
+
cnpj === '66666666666666' ||
|
|
168
|
+
cnpj === '77777777777777' ||
|
|
169
|
+
cnpj === '88888888888888' ||
|
|
170
|
+
cnpj === '99999999999999') {
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
// Valida DVs
|
|
174
|
+
var size = cnpj.length - 2;
|
|
175
|
+
var digits = cnpj.substring(size);
|
|
176
|
+
if (!this.validateCnpjDigit(cnpj, size, Number(digits.charAt(0)))) {
|
|
177
|
+
return false;
|
|
178
|
+
}
|
|
179
|
+
if (!this.validateCnpjDigit(cnpj, size + 1, Number(digits.charAt(1)))) {
|
|
180
|
+
return false;
|
|
181
|
+
}
|
|
182
|
+
return true;
|
|
183
|
+
}
|
|
184
|
+
return true;
|
|
185
|
+
};
|
|
186
|
+
CNPJValidator.prototype.validateCnpjDigit = function (cnpj, size, digit) {
|
|
187
|
+
var numbers = cnpj.substring(0, size);
|
|
188
|
+
var sum = 0;
|
|
189
|
+
var pos = size - 7;
|
|
190
|
+
for (var i = size; i >= 1; i--) {
|
|
191
|
+
sum += this.convertToAsciiMinus48(numbers.charAt(size - i)) * pos--;
|
|
192
|
+
if (pos < 2) {
|
|
193
|
+
pos = 9;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
var result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
|
|
197
|
+
return result === digit;
|
|
198
|
+
};
|
|
199
|
+
CNPJValidator.prototype.convertToAsciiMinus48 = function (input) {
|
|
200
|
+
return input.charCodeAt(0) - 48;
|
|
201
|
+
};
|
|
149
202
|
return CNPJValidator;
|
|
150
203
|
}());
|
|
151
204
|
var cnpjValidator = new CNPJValidator();
|
|
@@ -2854,6 +2907,12 @@ var InputRestAutoCompleteComponent = /** @class */ (function () {
|
|
|
2854
2907
|
})
|
|
2855
2908
|
.subscribe(function (payload) { return _this.formaterResponce(payload.result); });
|
|
2856
2909
|
}
|
|
2910
|
+
else if (this.isSituationDefinition) {
|
|
2911
|
+
var params = { searchText: query };
|
|
2912
|
+
return this.service
|
|
2913
|
+
.query('autocompleteSituationDefinitionQuery', params, ServiceType.ORGANIZATION_REGISTER)
|
|
2914
|
+
.subscribe(function (payload) { return _this.formaterResponce(payload.result); });
|
|
2915
|
+
}
|
|
2857
2916
|
else if (this.isWagetype) {
|
|
2858
2917
|
var params = { searchText: query, companyId: this.companyId };
|
|
2859
2918
|
return this.service
|
|
@@ -3085,6 +3144,9 @@ var InputRestAutoCompleteComponent = /** @class */ (function () {
|
|
|
3085
3144
|
__decorate([
|
|
3086
3145
|
Input()
|
|
3087
3146
|
], InputRestAutoCompleteComponent.prototype, "isWagetype", void 0);
|
|
3147
|
+
__decorate([
|
|
3148
|
+
Input()
|
|
3149
|
+
], InputRestAutoCompleteComponent.prototype, "isSituationDefinition", void 0);
|
|
3088
3150
|
__decorate([
|
|
3089
3151
|
Input()
|
|
3090
3152
|
], InputRestAutoCompleteComponent.prototype, "multiple", void 0);
|
|
@@ -9180,27 +9242,40 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9180
9242
|
* Retorna o CNPJ formatado
|
|
9181
9243
|
* @param cnpj CNPJ
|
|
9182
9244
|
*/
|
|
9183
|
-
FormatUtilsService.getFormattedCnpj = function (cnpj) {
|
|
9245
|
+
FormatUtilsService.getFormattedCnpj = function (cnpj, isAlphanumericCNPJ) {
|
|
9184
9246
|
if (cnpj) {
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
.replace(/
|
|
9188
|
-
.
|
|
9189
|
-
|
|
9190
|
-
|
|
9247
|
+
if (isAlphanumericCNPJ) {
|
|
9248
|
+
// Remove caracteres especiais mantendo letras e números, e converte para maiúsculas
|
|
9249
|
+
var cleanCnpj = cnpj.replace(/[^a-zA-Z0-9]/g, '').toUpperCase();
|
|
9250
|
+
// Aplica formatação: AA.BBB.CCC/DDDD-EE
|
|
9251
|
+
return cleanCnpj
|
|
9252
|
+
.replace(/^([A-Z0-9]{2})([A-Z0-9])/, '$1.$2')
|
|
9253
|
+
.replace(/^([A-Z0-9]{2}\.)([A-Z0-9]{3})([A-Z0-9])/, '$1$2.$3')
|
|
9254
|
+
.replace(/^([A-Z0-9]{2}\.[A-Z0-9]{3}\.)([A-Z0-9]{3})([A-Z0-9])/, '$1$2/$3')
|
|
9255
|
+
.replace(/^([A-Z0-9]{2}\.[A-Z0-9]{3}\.[A-Z0-9]{3}\/)([A-Z0-9]{4})([0-9])/, '$1$2-$3');
|
|
9256
|
+
}
|
|
9257
|
+
else {
|
|
9258
|
+
return cnpj
|
|
9259
|
+
.replace(/\D/g, "")
|
|
9260
|
+
.replace(/(\d{2})(\d)/, "$1.$2")
|
|
9261
|
+
.replace(/(\d{3})(\d)/, "$1.$2")
|
|
9262
|
+
.replace(/(\d{3})(\d)/, "$1/$2")
|
|
9263
|
+
.replace(/(\d{4})(\d)/, "$1-$2");
|
|
9264
|
+
}
|
|
9191
9265
|
}
|
|
9192
9266
|
return null;
|
|
9193
9267
|
};
|
|
9194
9268
|
/**
|
|
9195
9269
|
* Retorna a mascara do CPF/CNPJ
|
|
9196
9270
|
* @param key Valores possíveis são CPF ou CNPJ
|
|
9271
|
+
* @param isAlphanumericCNPJ Define se o CNPJ pode ser alfanumérico.
|
|
9197
9272
|
*/
|
|
9198
|
-
FormatUtilsService.getCpfCnpjMask = function (key) {
|
|
9273
|
+
FormatUtilsService.getCpfCnpjMask = function (key, isAlphanumericCNPJ) {
|
|
9199
9274
|
switch (key) {
|
|
9200
9275
|
case "CPF":
|
|
9201
9276
|
return "999.999.999-99";
|
|
9202
9277
|
case "CNPJ":
|
|
9203
|
-
return "99.999.999/9999-99";
|
|
9278
|
+
return isAlphanumericCNPJ ? "**.***.***/****-99" : "99.999.999/9999-99";
|
|
9204
9279
|
default:
|
|
9205
9280
|
return "";
|
|
9206
9281
|
}
|
|
@@ -9402,6 +9477,62 @@ var GenericValidator = /** @class */ (function () {
|
|
|
9402
9477
|
}
|
|
9403
9478
|
return null;
|
|
9404
9479
|
};
|
|
9480
|
+
/**
|
|
9481
|
+
* Valida se o CNPJ Alfanumérico é valido. Deve-se ser informado o cpf sem máscara.
|
|
9482
|
+
*/
|
|
9483
|
+
GenericValidator.isValidCnpjAlphanumeric = function (control) {
|
|
9484
|
+
var cnpj = control.value;
|
|
9485
|
+
if (cnpj) {
|
|
9486
|
+
cnpj = cnpj.replace(/[^\dA-Za-z]/g, '').toUpperCase();
|
|
9487
|
+
if (cnpj.length !== 14) {
|
|
9488
|
+
return null;
|
|
9489
|
+
}
|
|
9490
|
+
// Valida que dígitos verificadores são numéricos
|
|
9491
|
+
if (!/^\d$/.test(cnpj.charAt(12)) || !/^\d$/.test(cnpj.charAt(13))) {
|
|
9492
|
+
return { cnpjNotValid: true };
|
|
9493
|
+
}
|
|
9494
|
+
// Elimina CNPJs invalidos conhecidos
|
|
9495
|
+
if (cnpj === '00000000000000' ||
|
|
9496
|
+
cnpj === '11111111111111' ||
|
|
9497
|
+
cnpj === '22222222222222' ||
|
|
9498
|
+
cnpj === '33333333333333' ||
|
|
9499
|
+
cnpj === '44444444444444' ||
|
|
9500
|
+
cnpj === '55555555555555' ||
|
|
9501
|
+
cnpj === '66666666666666' ||
|
|
9502
|
+
cnpj === '77777777777777' ||
|
|
9503
|
+
cnpj === '88888888888888' ||
|
|
9504
|
+
cnpj === '99999999999999') {
|
|
9505
|
+
return { cnpjNotValid: true };
|
|
9506
|
+
}
|
|
9507
|
+
// Valida DVs
|
|
9508
|
+
var size = cnpj.length - 2;
|
|
9509
|
+
var digits = cnpj.substring(size);
|
|
9510
|
+
if (!GenericValidator.validateCnpjDigit(cnpj, size, Number(digits.charAt(0)))) {
|
|
9511
|
+
return { cnpjNotValid: true };
|
|
9512
|
+
}
|
|
9513
|
+
if (!GenericValidator.validateCnpjDigit(cnpj, size + 1, Number(digits.charAt(1)))) {
|
|
9514
|
+
return { cnpjNotValid: true };
|
|
9515
|
+
}
|
|
9516
|
+
return null;
|
|
9517
|
+
}
|
|
9518
|
+
return null;
|
|
9519
|
+
};
|
|
9520
|
+
GenericValidator.validateCnpjDigit = function (cnpj, size, digit) {
|
|
9521
|
+
var numbers = cnpj.substring(0, size);
|
|
9522
|
+
var sum = 0;
|
|
9523
|
+
var pos = size - 7;
|
|
9524
|
+
for (var i = size; i >= 1; i--) {
|
|
9525
|
+
sum += this.convertToAsciiMinus48(numbers.charAt(size - i)) * pos--;
|
|
9526
|
+
if (pos < 2) {
|
|
9527
|
+
pos = 9;
|
|
9528
|
+
}
|
|
9529
|
+
}
|
|
9530
|
+
var result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
|
|
9531
|
+
return result === digit;
|
|
9532
|
+
};
|
|
9533
|
+
GenericValidator.convertToAsciiMinus48 = function (input) {
|
|
9534
|
+
return input.charCodeAt(0) - 48;
|
|
9535
|
+
};
|
|
9405
9536
|
/**
|
|
9406
9537
|
* Válida o número de telefone da chave PIX.
|
|
9407
9538
|
*/
|
|
@@ -9646,7 +9777,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
9646
9777
|
/**
|
|
9647
9778
|
* Antes de setar o validator prepara as variáveis necessária para que seja feita a validação do campo.
|
|
9648
9779
|
*/
|
|
9649
|
-
HistoricalPixAccountFormComponent.prototype.setPixKeyValidators = function (isEditMode) {
|
|
9780
|
+
HistoricalPixAccountFormComponent.prototype.setPixKeyValidators = function (isEditMode, isAlphanumericCNPJ) {
|
|
9650
9781
|
var genericPixKey = this.pixAccountFormGroup.get("pixKey");
|
|
9651
9782
|
if (this.pixKeyType) {
|
|
9652
9783
|
switch (this.pixKeyType) {
|
|
@@ -9666,9 +9797,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
9666
9797
|
]));
|
|
9667
9798
|
break;
|
|
9668
9799
|
case "CNPJ":
|
|
9669
|
-
|
|
9670
|
-
Validators.required, GenericValidator.isValidCnpj,
|
|
9671
|
-
]));
|
|
9800
|
+
this.configureCnpjKeyValidators(isAlphanumericCNPJ, genericPixKey);
|
|
9672
9801
|
break;
|
|
9673
9802
|
case "RANDOM_KEY":
|
|
9674
9803
|
genericPixKey.setValidators(Validators.required);
|
|
@@ -9683,6 +9812,23 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
9683
9812
|
genericPixKey.updateValueAndValidity();
|
|
9684
9813
|
}
|
|
9685
9814
|
};
|
|
9815
|
+
/**
|
|
9816
|
+
* Escolhe o validator do CNPJ conforme a feature toggle alphanumericCNPJFeature.
|
|
9817
|
+
* @param isAlphanumericCNPJ Feature toggle que define se o CNPJ pode ser alfanumérico.
|
|
9818
|
+
* @param genericPixKey Tipo AbstractControl do campo pixKey.
|
|
9819
|
+
*/
|
|
9820
|
+
HistoricalPixAccountFormComponent.prototype.configureCnpjKeyValidators = function (isAlphanumericCNPJ, genericPixKey) {
|
|
9821
|
+
if (isAlphanumericCNPJ) {
|
|
9822
|
+
genericPixKey.setValidators(Validators.compose([
|
|
9823
|
+
Validators.required, GenericValidator.isValidCnpjAlphanumeric,
|
|
9824
|
+
]));
|
|
9825
|
+
}
|
|
9826
|
+
else {
|
|
9827
|
+
genericPixKey.setValidators(Validators.compose([
|
|
9828
|
+
Validators.required, GenericValidator.isValidCnpj,
|
|
9829
|
+
]));
|
|
9830
|
+
}
|
|
9831
|
+
};
|
|
9686
9832
|
/**
|
|
9687
9833
|
* Este método calcula as parcentagens que já foram inseridas, e seta a diferença para chegar em
|
|
9688
9834
|
* 100% na validação do campo "percentage" como um novo maxValue;
|
|
@@ -9810,7 +9956,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
9810
9956
|
HistoricalPixAccountFormComponent = __decorate([
|
|
9811
9957
|
Component({
|
|
9812
9958
|
selector: "pix-account",
|
|
9813
|
-
template: "<div id=\"main\">\n <form [formGroup]=\"pixAccountFormGroup\" autocomplete=\"off\">\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <!-- Tipo de chave -->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label>{{'hcm.payroll.employees_addition_pix_key_type'|translate}}</label>\n <input-rest-auto-complete-enum [dropdown]=\"true\" server=\"payroll\"\n enumeration=\"PixKeyType\"\n placeholder=\"{{'hcm.payroll.select' | translate}}\"\n name=\"pixKeyType\" [form]=\"pixAccountFormGroup\"\n (onSelect)=\"onChangePixKeyType($event)\"\n (onClear)=\"onClearPixKeyType()\"\n id=\"ta-pixKeyType\"></input-rest-auto-complete-enum>\n <s-control-errors [control]=\"pixAccountFormGroup.get('pixKeyType')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n pixKeyTypeBankAccountDuplicate: 'hcm.payroll.historical_pix_key_type_bank_account_duplicate' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Chave Pix-->\n <div class=\"ui-md-6 ui-sm-12\" [ngClass]=\"{'required': pixKeyType !== 'BANK_ACCOUNT'}\">\n <label>{{'hcm.payroll.employees_addition_pix_key' | translate}}</label>\n <ng-container [ngSwitch]=\"pixKeyType\">\n <input *ngSwitchCase=\"'TELEPHONE'\" only-number\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n (keyup)=\"phoneMask($event)\" maxlength=\"15\"\n placeholder=\"(__) ____-____\">\n <p-inputMask *ngSwitchCase=\"'CPF'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"___.___.___-__\"\n mask=\"999.999.999-99\" [unmask]=\"true\"></p-inputMask>\n <p-inputMask *ngSwitchCase=\"'CNPJ'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"__.___.___/____-__\"\n mask=\"99
|
|
9959
|
+
template: "<div id=\"main\">\n <form [formGroup]=\"pixAccountFormGroup\" autocomplete=\"off\">\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <!-- Tipo de chave -->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label>{{'hcm.payroll.employees_addition_pix_key_type'|translate}}</label>\n <input-rest-auto-complete-enum [dropdown]=\"true\" server=\"payroll\"\n enumeration=\"PixKeyType\"\n placeholder=\"{{'hcm.payroll.select' | translate}}\"\n name=\"pixKeyType\" [form]=\"pixAccountFormGroup\"\n (onSelect)=\"onChangePixKeyType($event)\"\n (onClear)=\"onClearPixKeyType()\"\n id=\"ta-pixKeyType\"></input-rest-auto-complete-enum>\n <s-control-errors [control]=\"pixAccountFormGroup.get('pixKeyType')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n pixKeyTypeBankAccountDuplicate: 'hcm.payroll.historical_pix_key_type_bank_account_duplicate' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Chave Pix-->\n <div class=\"ui-md-6 ui-sm-12\" [ngClass]=\"{'required': pixKeyType !== 'BANK_ACCOUNT'}\">\n <label>{{'hcm.payroll.employees_addition_pix_key' | translate}}</label>\n <ng-container [ngSwitch]=\"pixKeyType\">\n <input *ngSwitchCase=\"'TELEPHONE'\" only-number\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n (keyup)=\"phoneMask($event)\" maxlength=\"15\"\n placeholder=\"(__) ____-____\">\n <p-inputMask *ngSwitchCase=\"'CPF'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"___.___.___-__\"\n mask=\"999.999.999-99\" [unmask]=\"true\"></p-inputMask>\n <p-inputMask *ngSwitchCase=\"'CNPJ'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"__.___.___/____-__\"\n mask=\"**.***.***/****-99\" [unmask]=\"true\"></p-inputMask>\n <input *ngSwitchCase=\"'EMAIL'\"\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"{{'hcm.payroll.employees_addition_email'|translate}}\"/>\n <input *ngSwitchCase=\"'BANK_ACCOUNT'\" disabled\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"/>\n <input *ngSwitchDefault\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\" maxlength=\"100\" />\n </ng-container>\n <s-control-errors *ngIf=\"isShowPixKeyFieldValidatorMessage\" id=\"er-pix-key\"\n [control]=\"pixAccountFormGroup.get('pixKey')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n invalidPhoneNumber: 'hcm.payroll.employees_addition_invalid_phone_number' | translate: { value: pixAccountFormGroup.get('pixKey').value },\n invalidEmail: 'hcm.payroll.employees_addition_email_invalid' | translate,\n cpfNotValid: 'hcm.payroll.employees_addition_cpf_error' | translate,\n cnpjNotValid: 'hcm.payroll.employees_addition_cnpj_error' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Percentual-->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label id=\"lb-percentage\"\n for=\"ff-percentage\">{{ 'hcm.payroll.historical_bank_account_label_percentage' | translate }}</label>\n <div class=\"ui-inputgroup\">\n <span class=\"ui-inputgroup-addon\">%</span>\n <input pInputText id=\"ff-percentage\" name=\"percentage\"\n formControlName=\"percentage\"\n currencyMask\n [options]=\"optionsPercentage\"\n [placeholder]=\"percentagePlaceholder\"/>\n </div>\n <s-control-errors [control]=\"pixAccountFormGroup.get('percentage')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n maxlength: 'hcm.payroll.error_max_length' | translate: { value: '6' },\n max: 'hcm.payroll.error_max_value_number' | translate: { value: maxValuePercentage },\n min: 'hcm.payroll.error_min_value_number' | translate: { value: '0,01' }\n }\">\n </s-control-errors>\n </div>\n <div class=\"ui-g-12\">\n <p-fieldset\n legend=\"{{ 'hcm.payroll.custom_fields' | translate }}\"\n [attr.data-hidden]=\"!customFields || !customFields.fields.length\"\n >\n <s-custom-fields\n domain=\"hcm\"\n service=\"{{customService}}\"\n entity=\"{{customEntity}}\"\n formControlName=\"customFields\"\n [invalidErrorLabel]=\"'hcm.payroll.employees_invalid_field' | translate\"\n >\n </s-custom-fields>\n </p-fieldset>\n </div>\n </div>\n </div>\n </form>\n\n <div [ngClass]=\"withSideBar ? 'footer' : 'footer-s-border'\">\n <div class=\"form-group\">\n <s-button id=\"btn-save\" label=\"{{ labelBtnAdd | translate}}\" priority=\"primary\"\n (onClick)=\"addItem()\" *ngIf=\"visibleBtnSave && !this.isView\"></s-button>\n <s-button *ngIf=\"withSideBar\" id=\"btn-close\" label=\"{{'hcm.payroll.cancel'|translate}}\" priority=\"secondary\"\n priority=\"link\" (onClick)=\"close()\"></s-button>\n </div>\n </div>\n</div>\n",
|
|
9814
9960
|
styles: [".refresh{width:100%!important}#table-annuity .col-default-s{width:10%}#table-annuity .col-default-m{width:12%}#table-annuity .col-default-l{width:16%}#table-annuity .col-action{width:10%}#table-annuity .icon-warning{text-align:center!important;color:#ff6d00c7!important}@media screen and (max-width:612px){#table-annuity .col-default-1,#table-annuity .col-default-2{width:16%}#table-annuity .col-default-3{width:26%}#table-annuity .col-icon{width:10%}#table-annuity .col-action{width:27%}}#main{display:-webkit-box;display:flex;height:100%;width:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}#main form{height:100%}#main .footer{border-top:1px solid #ccc;padding-top:15px;margin-top:15px;flex-shrink:0;margin-bottom:-18px}#main .footer-s-border{padding-left:7px;flex-shrink:0;margin-bottom:-18px}"]
|
|
9815
9961
|
})
|
|
9816
9962
|
], HistoricalPixAccountFormComponent);
|