@seniorsistemas/yms-integration 1.13.0 → 1.13.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/seniorsistemas-yms-integration.umd.js +6 -6
- package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
- package/esm2015/src/sam-senior/components/scheduling/scheduling.component.js +1 -1
- package/esm2015/src/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.js +7 -7
- package/esm5/src/sam-senior/components/scheduling/scheduling.component.js +1 -1
- package/esm5/src/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.js +7 -7
- package/fesm2015/seniorsistemas-yms-integration.js +6 -6
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +6 -6
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.metadata.json +1 -1
|
@@ -1930,7 +1930,7 @@
|
|
|
1930
1930
|
};
|
|
1931
1931
|
VisitanteComponent.prototype.atualizaMotorista = function (mot) {
|
|
1932
1932
|
var motoristaVisitante = this.visitanteGridData.find(function (item) { return item.driver; });
|
|
1933
|
-
if (motoristaVisitante && motoristaVisitante.documentType
|
|
1933
|
+
if (motoristaVisitante && motoristaVisitante.documentType === this.getDocumentType() && motoristaVisitante.document === mot.cpf) {
|
|
1934
1934
|
return;
|
|
1935
1935
|
}
|
|
1936
1936
|
if (this.visitanteGridData.length > 0) {
|
|
@@ -2080,7 +2080,7 @@
|
|
|
2080
2080
|
{
|
|
2081
2081
|
label: this.translate.instant('yms.patio.motorista_visitante_entregar_credencial'),
|
|
2082
2082
|
command: function () { return _this.entregarCredencial(visitante); },
|
|
2083
|
-
visible: isDriver
|
|
2083
|
+
visible: isDriver || !isDriver
|
|
2084
2084
|
},
|
|
2085
2085
|
{
|
|
2086
2086
|
label: this.translate.instant('yms.patio.remover_credenciais'),
|
|
@@ -2117,15 +2117,15 @@
|
|
|
2117
2117
|
});
|
|
2118
2118
|
};
|
|
2119
2119
|
VisitanteComponent.prototype.adicionaCredencialParaEntregar = function (visitorCredentialCard) {
|
|
2120
|
-
var
|
|
2121
|
-
if (
|
|
2120
|
+
var visitorWithCredencial = this.visitors.find(function (visitor) { return visitor.visitor.document === visitorCredentialCard.visitor.document; });
|
|
2121
|
+
if (visitorWithCredencial === undefined) {
|
|
2122
2122
|
this.visitors.push({
|
|
2123
2123
|
visitor: visitorCredentialCard.visitor,
|
|
2124
2124
|
credentialCards: [this.createCredentialCard(visitorCredentialCard)],
|
|
2125
2125
|
});
|
|
2126
2126
|
}
|
|
2127
2127
|
else {
|
|
2128
|
-
|
|
2128
|
+
visitorWithCredencial.credentialCards.push(this.createCredentialCard(visitorCredentialCard));
|
|
2129
2129
|
}
|
|
2130
2130
|
};
|
|
2131
2131
|
VisitanteComponent.prototype.editarVisitante = function (visitante) {
|
|
@@ -2236,7 +2236,7 @@
|
|
|
2236
2236
|
VisitanteComponent = __decorate([
|
|
2237
2237
|
core.Component({
|
|
2238
2238
|
selector: 'visitante-component',
|
|
2239
|
-
template: "<div style=\"margin-bottom: 15px\">\n <div>\n <p-header>\n {{ \"yms.patio.motorista_titulo_lista_visitante\" | translate}}\n <button\n style=\"margin-left: 50px\"\n type=\"button\"\n pButton\n (click)=\"criarOuAtualizarVisitante(null)\"\n label=\"{{ 'yms.patio.motorista_add_visitante' | translate }}\"\n >\n </button>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <p-table\n #visitanteTable\n [value]=\"visitanteGridData\"\n [columns]=\"visitanteGridColumns\"\n dataKey=\"id\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [resizableColumns]=\"true\"\n sortMode=\"single\"\n [paginator]=\"true\"\n [totalRecords]=\"visitanteTotalRecords\"\n rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\n [loading]=\"visitanteGridLoading\"\n >\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\" />\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"espaco-coluna-plus\" style=\"width: 50px\"></th>\n <th\n id=\"\"\n *ngFor=\"let col of columns\"\n [pSortableColumn]=\"col.field\"\n pResizableColumn\n >\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n <th id=\"\" style=\"width: 15%\"></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 50px\">\n <a href=\"#\" [pRowToggler]=\"rowData\" style=\"color: #000\">\n <
|
|
2239
|
+
template: "<div style=\"margin-bottom: 15px\">\n <div>\n <p-header>\n {{ \"yms.patio.motorista_titulo_lista_visitante\" | translate}}\n <button\n style=\"margin-left: 50px\"\n type=\"button\"\n pButton\n (click)=\"criarOuAtualizarVisitante(null)\"\n label=\"{{ 'yms.patio.motorista_add_visitante' | translate }}\"\n >\n </button>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <p-table\n #visitanteTable\n [value]=\"visitanteGridData\"\n [columns]=\"visitanteGridColumns\"\n dataKey=\"id\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [resizableColumns]=\"true\"\n sortMode=\"single\"\n [paginator]=\"true\"\n [totalRecords]=\"visitanteTotalRecords\"\n rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\n [loading]=\"visitanteGridLoading\"\n >\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\" />\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"espaco-coluna-plus\" style=\"width: 50px\"></th>\n <th\n id=\"\"\n *ngFor=\"let col of columns\"\n [pSortableColumn]=\"col.field\"\n pResizableColumn\n >\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n <th id=\"\" style=\"width: 15%\"></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 50px\">\n <a href=\"#\" [pRowToggler]=\"rowData\" style=\"color: #000\">\n <em [ngClass]=\"expanded ? 'fa fa-minus' : 'fa fa-plus'\"></em>\n </a>\n </td>\n <td>\n <span>{{ rowData[\"name\"] }}</span>\n </td>\n <td>\n <span>{{ rowData[\"document\"] }}</span>\n </td>\n <td>\n <span>{{ rowData[\"contact\"] }}</span>\n </td>\n <td style=\"width: 15%\">\n <s-button\n priority=\"default\"\n label=\"{{ 'yms.patio.motorista_acao_visitante' | translate }}\"\n [model]=\"model(rowData)\"\n >\n </s-button>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"rowexpansion\" let-rowData let-columns=\"columns\">\n <tr class=\"bg-white no-hover\">\n <td [attr.colspan]=\"columns.length + 2\">\n <div *ngIf=\"isCredentialCardsEmpty(rowData); else elseBlock\">\n <div\n class=\"container flex-container\"\n *ngFor=\"let credentialCard of getCredentialCards(rowData)\"\n >\n <p-card\n header=\"{{ credentialCard.cardTechnology }}\"\n [style]=\"{ width: '300px', margin: '10px' }\"\n >\n <div>\n N\u00FAmero: <strong>{{ credentialCard.cardNumber }}</strong>\n </div>\n <div>\n Data de validade:\n <strong>{{ credentialCard.endDate | date : \"dd/MM/yyyy hh:mm\" }}</strong>\n </div>\n </p-card>\n </div>\n </div>\n <ng-template #elseBlock\n >N\u00E3o h\u00E1 credenciais para salvar ou entregues</ng-template\n >\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span\n [translate]=\"'total_records'\"\n [translateParams]=\"{ value: visitanteTotalRecords }\"\n ></span>\n </ng-template>\n </p-table>\n </div>\n </div>\n</div>\n</div>",
|
|
2240
2240
|
styles: [".container{display:inline-flex}.flex-container{flex-wrap:wrap}"]
|
|
2241
2241
|
}),
|
|
2242
2242
|
__metadata("design:paramtypes", [core$1.TranslateService,
|