@senior-gestao-pessoas/payroll-core 9.4.0-a9314477-d301-4380-b67e-31e2d2abb4e5 → 9.4.0-af2cbed0-5ed8-4fa0-b302-d4f7bfe8c238
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 +38 -31
- 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.component.d.ts +1 -0
- package/components/historical-pix-account-list/historical-pix-account-list.component.d.ts +2 -1
- package/esm2015/components/historical-pix-account/historical-pix-account.component.js +6 -2
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +30 -32
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +6 -2
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +34 -32
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +34 -31
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +38 -31
- package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/locale/en-US.json +1 -1
- package/locale/es-ES.json +1 -1
- package/locale/pt-BR.json +1 -1
- package/package.json +2 -32
- package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
|
@@ -9279,6 +9279,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9279
9279
|
field: "dateChange",
|
|
9280
9280
|
direction: DirectionEnumeration.DESC,
|
|
9281
9281
|
};
|
|
9282
|
+
this.enableAction = true;
|
|
9282
9283
|
this.pixAccountItemInput = {};
|
|
9283
9284
|
this.totalRecords = 0;
|
|
9284
9285
|
this.actionLabel = this.translateService.instant("hcm.payroll.entries_query_actions_total_title");
|
|
@@ -9358,6 +9359,9 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9358
9359
|
}
|
|
9359
9360
|
HistoricalPixAccountComponent.prototype.ngOnInit = function () {
|
|
9360
9361
|
this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
|
|
9362
|
+
if (!this.isViewMode) {
|
|
9363
|
+
this.enableAction = false;
|
|
9364
|
+
}
|
|
9361
9365
|
};
|
|
9362
9366
|
HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
|
|
9363
9367
|
if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
|
|
@@ -9685,7 +9689,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9685
9689
|
Component({
|
|
9686
9690
|
// tslint:disable-next-line:component-selector
|
|
9687
9691
|
selector: "c-historical-pix-account",
|
|
9688
|
-
template: "<s-sidebar *ngIf=\"withSideBar\" [visible]=\"visible\" (visibleChange)=\"close()\"\n header=\"{{'hcm.payroll.historical_pix_account_title_form'|translate}}\">\n<pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"\n [defaultCpfNumber]=\"defaultCpfNumber\"></pix-account>\n</s-sidebar>\n\n<div *ngIf=\"!withSideBar\">\n <pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [withSideBar]=\"false\"\n [isViewMode]=\"isViewMode\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"\n [defaultCpfNumber]=\"defaultCpfNumber\"></pix-account>\n</div>\n\n<div class=\"ui-g-1\" *ngIf=\"withSideBar && !isEditMode\">\n <div class=\"form-group \">\n <s-button id=\"ta-addPayAnnuity\"\n [disabled]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n (onClick)=\"add()\"\n [pTooltip]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n tooltipPosition=\"top\"\n label=\"{{'hcm.payroll.historical_pix_account_add'|translate}}\"></s-button>\n </div>\n</div>\n<div class=\"ui-g-12\">\n <p-table\n id=\"table-annuity\"\n [value]=\"listData\"\n [columns]=\"cols\"\n (onLazyLoad)=\"onLazyLoad($event)\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [paginator]=\"true\"\n [totalRecords]=\"totalRecords\"\n [sortMode]=\"'multiple'\"\n *sLoadingState=\"loading\"\n [rows]=\"recordByRow\"\n dataKey=\"id\">\n <ng-template pTemplate=\"colgroup\" let-coumns>\n <colgroup>\n <col [ngClass]=\"'col-default-m'\">\n <col [ngClass]=\"'col-default-m'\">\n <col [ngClass]=\"'col-default-s'\">\n <col [ngClass]=\"'col-action'\">\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <!-- Cabe\u00E7alhos quando da table \u00E9 permitido ordenar as colunas -->\n <tr>\n <!-- Cabe\u00E7alhos das colunas da tabela -->\n <th\n [pSortableColumn]=\"'pixKeyType'\"\n [pTooltip]=\"'hcm.payroll.employees_addition_pix_key_type' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\" id=\"table-0\">\n <span\n id=\"table-annuity-s-0\">{{ 'hcm.payroll.employees_addition_pix_key_type' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.employees_addition_pix_key_type' | translate\"></p-sortIcon>\n </div>\n </th>\n\n <th\n [pSortableColumn]=\"'pixKey'\"\n [pTooltip]=\"'hcm.payroll.employees_addition_pix_key' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\">\n <span>{{ 'hcm.payroll.employees_addition_pix_key' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.employees_addition_pix_key' | translate\"></p-sortIcon>\n </div>\n </th>\n\n <th\n [pSortableColumn]=\"'percentage'\"\n [pTooltip]=\"'hcm.payroll.historical_pix_account_label_percentage' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\">\n <span>{{ 'hcm.payroll.historical_pix_account_label_percentage' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.historical_pix_account_label_percentage' | translate\"></p-sortIcon>\n </div>\n </th>\n <!-- Cabe\u00E7alho da coluna de a\u00E7\u00F5es -->\n <th id=\"col-actions\"></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-key=\"rowIndex\">\n\n <tr [ngClass]=\"'row'+key\" [pSelectableRow]=\"rowData\">\n <td [pTooltip]=\"rowData?.pixKeyType.value\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKeyType.value }}</span>\n </td>\n\n <ng-container [ngSwitch]=\"rowData?.pixKeyType.key\">\n <td *ngSwitchCase=\"'TELEPHONE'\"\n [pTooltip]=\"getFormattedTelephoneNumber(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedTelephoneNumber(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CPF'\"\n [pTooltip]=\"getFormattedCpf(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCpf(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CNPJ'\"\n [pTooltip]=\"getFormattedCnpj(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCnpj(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchDefault\n [pTooltip]=\"rowData?.pixKey\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKey }}</span>\n </td>\n </ng-container>\n <td [pTooltip]=\"getFormattedPercentage(rowData?.percentage)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedPercentage(rowData?.percentage) }}</span>\n </td>\n <td id=\"col-actions-{{key}}\" class=\"col-actions \"\n *ngIf=\"actions && actions(rowData, key)?.length\">\n <s-button id=\"table-admission-btn-actions-{{key}}\"\n *ngIf=\"actions(rowData, key).length > 1\" [label]=\"actionLabel\"\n priority=\"default\" [model]=\"scopedActions(rowData, key)\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n\n <s-button id=\"table-admission-btn-action-{{key}}\"\n *ngIf=\"actions(rowData, key).length <= 1\"\n [label]=\"scopedActions(rowData, key)[0].label\"\n priority=\"default\"\n (click)=\"scopedActions(rowData, key)[0].command()\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\" let-columns>\n <tr>\n <td [attr.colspan]=\"columns.length +2\">\n {{'hcm.payroll.admission_empty_message'|translate}}\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span *ngIf=\"totalRecords\">{{recordsMessage}}</span>\n </ng-template>\n </p-table>\n</div>\n",
|
|
9692
|
+
template: "<s-sidebar *ngIf=\"withSideBar\" [visible]=\"visible\" (visibleChange)=\"close()\"\n header=\"{{'hcm.payroll.historical_pix_account_title_form'|translate}}\">\n<pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"\n [defaultCpfNumber]=\"defaultCpfNumber\"></pix-account>\n</s-sidebar>\n\n<div *ngIf=\"!withSideBar\">\n <pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [withSideBar]=\"false\"\n [isViewMode]=\"isViewMode\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"\n [defaultCpfNumber]=\"defaultCpfNumber\"></pix-account>\n</div>\n\n<div class=\"ui-g-1\" *ngIf=\"withSideBar && !isEditMode\">\n <div class=\"form-group \">\n <s-button id=\"ta-addPayAnnuity\"\n [disabled]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n (onClick)=\"add()\"\n [pTooltip]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n tooltipPosition=\"top\"\n label=\"{{'hcm.payroll.historical_pix_account_add'|translate}}\"></s-button>\n </div>\n</div>\n<div class=\"ui-g-12\">\n <p-table\n id=\"table-annuity\"\n [value]=\"listData\"\n [columns]=\"cols\"\n (onLazyLoad)=\"onLazyLoad($event)\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [paginator]=\"true\"\n [totalRecords]=\"totalRecords\"\n [sortMode]=\"'multiple'\"\n *sLoadingState=\"loading\"\n [rows]=\"recordByRow\"\n dataKey=\"id\">\n <ng-template pTemplate=\"colgroup\" let-coumns>\n <colgroup>\n <col [ngClass]=\"'col-default-m'\">\n <col [ngClass]=\"'col-default-m'\">\n <col [ngClass]=\"'col-default-s'\">\n <col [ngClass]=\"'col-action'\">\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <!-- Cabe\u00E7alhos quando da table \u00E9 permitido ordenar as colunas -->\n <tr>\n <!-- Cabe\u00E7alhos das colunas da tabela -->\n <th\n [pSortableColumn]=\"'pixKeyType'\"\n [pTooltip]=\"'hcm.payroll.employees_addition_pix_key_type' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\" id=\"table-0\">\n <span\n id=\"table-annuity-s-0\">{{ 'hcm.payroll.employees_addition_pix_key_type' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.employees_addition_pix_key_type' | translate\"></p-sortIcon>\n </div>\n </th>\n\n <th\n [pSortableColumn]=\"'pixKey'\"\n [pTooltip]=\"'hcm.payroll.employees_addition_pix_key' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\">\n <span>{{ 'hcm.payroll.employees_addition_pix_key' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.employees_addition_pix_key' | translate\"></p-sortIcon>\n </div>\n </th>\n\n <th\n [pSortableColumn]=\"'percentage'\"\n [pTooltip]=\"'hcm.payroll.historical_pix_account_label_percentage' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\">\n <span>{{ 'hcm.payroll.historical_pix_account_label_percentage' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.historical_pix_account_label_percentage' | translate\"></p-sortIcon>\n </div>\n </th>\n <!-- Cabe\u00E7alho da coluna de a\u00E7\u00F5es -->\n <th id=\"col-actions\"></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-key=\"rowIndex\">\n\n <tr [ngClass]=\"'row'+key\" [pSelectableRow]=\"rowData\">\n <td [pTooltip]=\"rowData?.pixKeyType.value\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKeyType.value }}</span>\n </td>\n\n <ng-container [ngSwitch]=\"rowData?.pixKeyType.key\">\n <td *ngSwitchCase=\"'TELEPHONE'\"\n [pTooltip]=\"getFormattedTelephoneNumber(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedTelephoneNumber(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CPF'\"\n [pTooltip]=\"getFormattedCpf(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCpf(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CNPJ'\"\n [pTooltip]=\"getFormattedCnpj(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCnpj(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchDefault\n [pTooltip]=\"rowData?.pixKey\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKey }}</span>\n </td>\n </ng-container>\n <td [pTooltip]=\"getFormattedPercentage(rowData?.percentage)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedPercentage(rowData?.percentage) }}</span>\n </td>\n <td id=\"col-actions-{{key}}\" class=\"col-actions \"\n *ngIf=\"actions && actions(rowData, key)?.length\">\n <s-button id=\"table-admission-btn-actions-{{key}}\"\n *ngIf=\"!isViewMode && actions(rowData, key).length > 1\" [label]=\"actionLabel\"\n priority=\"default\" [model]=\"scopedActions(rowData, key)\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n\n <s-button id=\"table-admission-btn-action-{{key}}\"\n *ngIf=\"!isViewMode && actions(rowData, key).length <= 1\"\n [label]=\"scopedActions(rowData, key)[0].label\"\n priority=\"default\"\n (click)=\"scopedActions(rowData, key)[0].command()\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\" let-columns>\n <tr>\n <td [attr.colspan]=\"columns.length +2\">\n {{'hcm.payroll.admission_empty_message'|translate}}\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span *ngIf=\"totalRecords\">{{recordsMessage}}</span>\n </ng-template>\n </p-table>\n</div>\n",
|
|
9689
9693
|
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}"]
|
|
9690
9694
|
})
|
|
9691
9695
|
], HistoricalPixAccountComponent);
|
|
@@ -10334,6 +10338,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10334
10338
|
this.keyPayload = "historicalEmployeePix";
|
|
10335
10339
|
this.withSidebar = true;
|
|
10336
10340
|
this.isOnlyView = new EventEmitter();
|
|
10341
|
+
this.isOnlyEdit = new EventEmitter();
|
|
10337
10342
|
this.enableView = new EventEmitter();
|
|
10338
10343
|
this.ngUnsubscribe = new Subject();
|
|
10339
10344
|
this.loading = true;
|
|
@@ -10342,18 +10347,6 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10342
10347
|
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
|
|
10343
10348
|
field: "dateChange",
|
|
10344
10349
|
},
|
|
10345
|
-
{
|
|
10346
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key_type"),
|
|
10347
|
-
field: "pixKeyType.value",
|
|
10348
|
-
},
|
|
10349
|
-
{
|
|
10350
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key"),
|
|
10351
|
-
field: "pixKey",
|
|
10352
|
-
},
|
|
10353
|
-
{
|
|
10354
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
|
|
10355
|
-
field: "percentage",
|
|
10356
|
-
},
|
|
10357
10350
|
{
|
|
10358
10351
|
label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
|
|
10359
10352
|
field: "numberOfPixAccount",
|
|
@@ -10374,27 +10367,10 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10374
10367
|
var _this = this;
|
|
10375
10368
|
payload.forEach(function (value) {
|
|
10376
10369
|
value.dateChange = moment$e(value.dateChange).format(_this.dateFormat);
|
|
10377
|
-
value.pixKey = _this.formatPixKeyByType(value.pixKeyType, value.pixKey);
|
|
10378
|
-
value.percentage = FormatUtilsService.getFormattedPercentage(value.percentage);
|
|
10379
10370
|
});
|
|
10380
10371
|
this.onGridLoad(payload);
|
|
10381
10372
|
this.loading = false;
|
|
10382
10373
|
};
|
|
10383
|
-
HistoricalPixAccountListComponent.prototype.formatPixKeyByType = function (pixKeyType, pixKey) {
|
|
10384
|
-
var keyType = pixKeyType ? pixKeyType.key.toUpperCase() : "";
|
|
10385
|
-
if (keyType === "TELEPHONE") {
|
|
10386
|
-
return FormatUtilsService.getFormattedTelephoneNumber(pixKey);
|
|
10387
|
-
}
|
|
10388
|
-
else if (keyType === "CPF") {
|
|
10389
|
-
return FormatUtilsService.getFormattedCpf(pixKey);
|
|
10390
|
-
}
|
|
10391
|
-
else if (keyType === "CNPJ") {
|
|
10392
|
-
return FormatUtilsService.getFormattedCnpj(pixKey);
|
|
10393
|
-
}
|
|
10394
|
-
else {
|
|
10395
|
-
return pixKey;
|
|
10396
|
-
}
|
|
10397
|
-
};
|
|
10398
10374
|
HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
|
|
10399
10375
|
var _this = this;
|
|
10400
10376
|
return [
|
|
@@ -10418,6 +10394,27 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10418
10394
|
}
|
|
10419
10395
|
},
|
|
10420
10396
|
},
|
|
10397
|
+
{
|
|
10398
|
+
label: this.translateService.instant("hcm.payroll.edit"),
|
|
10399
|
+
command: function () {
|
|
10400
|
+
if (_this.isAllowToEditHistorical) {
|
|
10401
|
+
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10402
|
+
if (_this.withSidebar) {
|
|
10403
|
+
_this.isOnlyView.emit(false);
|
|
10404
|
+
_this.isOnlyEdit.emit(true);
|
|
10405
|
+
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10406
|
+
relativeTo: _this.activatedRoute,
|
|
10407
|
+
});
|
|
10408
|
+
}
|
|
10409
|
+
else {
|
|
10410
|
+
_this.enableView.emit(dateChange);
|
|
10411
|
+
}
|
|
10412
|
+
}
|
|
10413
|
+
else {
|
|
10414
|
+
_this.isNotAllowMessage();
|
|
10415
|
+
}
|
|
10416
|
+
},
|
|
10417
|
+
},
|
|
10421
10418
|
{
|
|
10422
10419
|
label: this.translateService.instant("hcm.payroll.delete"),
|
|
10423
10420
|
command: function () {
|
|
@@ -10428,7 +10425,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10428
10425
|
_this.isNotAllowMessage();
|
|
10429
10426
|
}
|
|
10430
10427
|
},
|
|
10431
|
-
}
|
|
10428
|
+
}
|
|
10432
10429
|
];
|
|
10433
10430
|
};
|
|
10434
10431
|
HistoricalPixAccountListComponent.prototype.delete = function (id, dateChange) {
|
|
@@ -10516,6 +10513,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10516
10513
|
enumerable: true,
|
|
10517
10514
|
configurable: true
|
|
10518
10515
|
});
|
|
10516
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToEditHistorical", {
|
|
10517
|
+
get: function () {
|
|
10518
|
+
return (this.permission["editar"]);
|
|
10519
|
+
},
|
|
10520
|
+
enumerable: true,
|
|
10521
|
+
configurable: true
|
|
10522
|
+
});
|
|
10519
10523
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "scopedActions", {
|
|
10520
10524
|
get: function () {
|
|
10521
10525
|
return this.getMenuActions.bind(this);
|
|
@@ -10569,6 +10573,9 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10569
10573
|
__decorate([
|
|
10570
10574
|
Output()
|
|
10571
10575
|
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10576
|
+
__decorate([
|
|
10577
|
+
Output()
|
|
10578
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyEdit", void 0);
|
|
10572
10579
|
__decorate([
|
|
10573
10580
|
Output()
|
|
10574
10581
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|