Skip to content

Commit

Permalink
feature/IVYPORTAL-17251-Implement-elements-with-IDs-for-header-task-b…
Browse files Browse the repository at this point in the history
…ar-All-Portal-Sites-LE - Add link aria-label (#976)
  • Loading branch information
ntloc-axonivy authored Aug 23, 2024
1 parent 8690e7f commit d7a9dad
Show file tree
Hide file tree
Showing 28 changed files with 82 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<p:column styleClass="align-center-column document-action-column" rendered="#{cc.attrs.functionColumnRendered}"
headerText="#{ivy.cms.co('/Dialogs/com/axonivy/portal/components/DocumentTable/FileFunction')}">
<p:commandLink id="document-download" styleClass="#{cc.attrs.downloadStyleClass}"
ariaLabel="#{ivy.cms.co('/Dialogs/com/axonivy/portal/components/DocumentTable/Download')}"
immediate="true" ajax="false" process="@none" title="#{cc.attrs.downloadTitle}"
rendered="#{cc.attrs.downloadRendered}">
<i class="fa #{cc.attrs.downloadIcon}" />
Expand All @@ -80,6 +81,7 @@
<p:spacer width="10px" />

<p:commandLink id="document-delete" styleClass="#{cc.attrs.deleteStyleClass}"
ariaLabel="#{ivy.cms.co('/Dialogs/com/axonivy/portal/components/DocumentTable/Delete')}"
actionListener="#{data.setSelectedDocument(document)}" rendered="#{cc.attrs.deleteRendered}"
update="#{cc.attrs.updatedComponentAfterDeleted}" immediate="true" title="#{cc.attrs.deleteTitle}"
oncomplete="PF('document-delete-dialog').show()">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
</div>
<div class="ui-xl-11 ui-lg-10 ui-md-8 ui-sm-8 ui-g-4 u-no-padding-left u-no-padding-top text-ellipsis process-viewer-fit-content">
<h:outputText id="request-path" value="#{data.webStartable.displayName}" />
<p:commandLink id="process-viewer-info-link" styleClass="process-viewer-info-link" global="false" process="@this" immediate="true">
<p:commandLink id="process-viewer-info-link"
ariaLabel="#{ivy.cms.co('/Dialogs/com/axonivy/portal/components/ProcessViewer/ProcessInfo')}"
styleClass="process-viewer-info-link" global="false" process="@this" immediate="true">
<i class="si si-information-circle" />
</p:commandLink>
<p:tooltip for="process-viewer-info-link" value="#{ivy.cms.co('/Dialogs/com/axonivy/portal/components/ProcessViewer/ProcessInfoIconTooltip')}"
Expand Down
8 changes: 8 additions & 0 deletions AxonIvyPortal/portal/cms/cms_de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ ch.ivy.addon.portalkit.ui.jsf:
value: Wert
applicationMenuHeader:
MobileApp: Herunterladen und Verbinden mit der Axon Ivy Mobile App
ThemeSwitcher: Themenumschalter
adminSettings: Administration
changePassword: Passwort ändern
businessCaseState:
Expand Down Expand Up @@ -409,6 +410,7 @@ ch.ivy.addon.portalkit.ui.jsf:
processChatIsCreated: Gruppenchat - {0} - wurde erstellt
processChatWasCreated: Gruppenchat - {0} - wurde bereits erstellt. Sie können keinen weiteren Chat erstellen.
selectedAssignees: Ausgewählte Genehmiger
toggleChat: Chat-Panel umschalten
typeMessage: Schreiben Sie hier eine Nachricht...
viewParticipant: Teilnehmer anzeigen
common:
Expand Down Expand Up @@ -721,6 +723,7 @@ ch.ivy.addon.portalkit.ui.jsf:
taskDescriptionNotAvailable: '[Keine Beschreibung]'
taskNameNotAvailable: '[Kein Aufgabenname verfügbar]'
taskView:
DeleteFilter: Filter löschen
adminFilterSetWarning: Ihr Filter enthält Status, die nur von Administratoren gesehen werden können.
appliedFilters: Angewendete Filter
exportedTasksCasesFileName: AXONIVY_Dataset_Statistics_{0}.{1}
Expand Down Expand Up @@ -1199,6 +1202,8 @@ ch.ivy.addon.portalkit.ui.jsf:
noPermission: You do not have the permission to send this request!
expiryPeriod: Fristende
loadingCharts: Bitte warten während die Diagramme geladen werden…
moveLeft: Nach links bewegen
moveRight: Nach rechts bewegen
notAllowedToCreateChart: Sie haben die Filtereinstellungen geändert. Bitte aktualisieren Sie gesetzten Filter mit "Filter anwenden", um das Diagramm anschließend erstellen zu können
other: Andere
restoreDefaultChart: Wenn Sie fortfahren, werden alle selbsterstellten Diagramme gelöscht. Die Standardeinstellung wird angewendet.
Expand All @@ -1222,6 +1227,7 @@ ch.ivy.addon.portalkit.ui.jsf:
chartDetailsHeader: Diagrammdetails
chartName: Diagrammname
chartType: Diagrammtyp
name: Diagramm-Informationen
chartType:
caseByFinishedTask: Bearbeitete Vorgänge im Zeitraum
caseByFinishedTaskDescription: Vorgänge, in denen eine Aufgabe in der ausgewählten Zeitspanne abgeschlossen wurde
Expand Down Expand Up @@ -1769,6 +1775,7 @@ Labels:
AppendTask-Explain: Die Aufgabe wird in der Sequenz nach meiner Aufgabe hinzugefügt.
AppendTheTask: Aufgabe anhängen
CreateNewDashboard: Neues Dashboard erstellen
EditDescription: Beschreibung bearbeiten
Enums:
DashboardStandardCaseColumn:
ACTIONS: Aktionen
Expand Down Expand Up @@ -1860,6 +1867,7 @@ Labels:
Task: Aufgabe
TaskItemDetail: Aufgabendetails
TaskUser-Explain: Kommaseparierte Liste von Benutzern
ToggleMenu: Menü umschalten
ViewAllResults: Alle Ergebnisse anzeigen
adhocTaskRequired: Zumindest eine Aufgabe ist erforderlich.
disabledUserPrefix: (inaktiv)
Expand Down
8 changes: 8 additions & 0 deletions AxonIvyPortal/portal/cms/cms_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ ch.ivy.addon.portalkit.ui.jsf:
value: Value
applicationMenuHeader:
MobileApp: Download and Connect to Axon Ivy Mobile App
ThemeSwitcher: Theme Switcher
adminSettings: Admin settings
changePassword: Change password
businessCaseState:
Expand Down Expand Up @@ -408,6 +409,7 @@ ch.ivy.addon.portalkit.ui.jsf:
processChatIsCreated: 'Process Chat: {0} is created'
processChatWasCreated: 'Process Chat: {0} was created. You can not create it again.'
selectedAssignees: Selected assignees
toggleChat: Toggle chat panel
typeMessage: Type your message here...
viewParticipant: View participants
common:
Expand Down Expand Up @@ -723,6 +725,7 @@ ch.ivy.addon.portalkit.ui.jsf:
taskDescriptionNotAvailable: '[No description is available]'
taskNameNotAvailable: '[Task name not available]'
taskView:
DeleteFilter: Delete filter
adminFilterSetWarning: Your filter set contains states which can only be seen by administrators.
appliedFilters: Applied filters
exportedTasksCasesFileName: AXONIVY_Dataset_Statistics_{0}.{1}
Expand Down Expand Up @@ -1201,6 +1204,8 @@ ch.ivy.addon.portalkit.ui.jsf:
noPermission: You do not have the permission to send this request!
expiryPeriod: Expiry period
loadingCharts: Please wait, charts are loading...
moveLeft: Move left
moveRight: Move right
notAllowedToCreateChart: You are not allowed to create a chart before clicking Apply Filters button
other: Others
restoreDefaultChart: If you proceed, you will loose all charts created by yourself. The standard settings will be applied.
Expand All @@ -1224,6 +1229,7 @@ ch.ivy.addon.portalkit.ui.jsf:
chartDetailsHeader: Chart Details
chartName: Chart Name
chartType: Chart Type
name: Chart info
chartType:
caseByFinishedTask: Processed cases in time period
caseByFinishedTaskDescription: Cases where a task was finished in the selected time period
Expand Down Expand Up @@ -1773,6 +1779,7 @@ Labels:
AppendTask-Explain: The task is added to the sequence after my task.
AppendTheTask: Append the task
CreateNewDashboard: Create new dashboard
EditDescription: Edit description
Enums:
DashboardStandardCaseColumn:
ACTIONS: Actions
Expand Down Expand Up @@ -1864,6 +1871,7 @@ Labels:
Task: Task
TaskItemDetail: Task Details
TaskUser-Explain: Comma separated list of users
ToggleMenu: Toggle menu
ViewAllResults: View all results
adhocTaskRequired: You must add at least one new task.
disabledUserPrefix: (disabled)
Expand Down
8 changes: 8 additions & 0 deletions AxonIvyPortal/portal/cms/cms_es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ ch.ivy.addon.portalkit.ui.jsf:
value: Valor
applicationMenuHeader:
MobileApp: Descargar y conectarse a la aplicación móvil Axon Ivy
ThemeSwitcher: Cambiador de temas
adminSettings: Configuración de administrador
changePassword: Cambiar contraseña
businessCaseState:
Expand Down Expand Up @@ -410,6 +411,7 @@ ch.ivy.addon.portalkit.ui.jsf:
processChatIsCreated: 'Chat de grupo: {0} ha sido creado'
processChatWasCreated: 'Chat de grupo: {0} ya ha sido creado. No puede crear otro chat.'
selectedAssignees: Usuarios seleccionados
toggleChat: Panel de chat
typeMessage: Escriba su texto aquí…
viewParticipant: Mostrar participantes
common:
Expand Down Expand Up @@ -720,6 +722,7 @@ ch.ivy.addon.portalkit.ui.jsf:
taskDescriptionNotAvailable: '[No hay descripción disponible]'
taskNameNotAvailable: '[Nombre de la tarea no disponible]'
taskView:
DeleteFilter: Borrar filtro
adminFilterSetWarning: Su filtro contiene estados que sólo pueden ser vistos por los administradores.
appliedFilters: Filtros aplicados
exportedTasksCasesFileName: AXONIVY_Dataset_Statistics_{0}.{1}
Expand Down Expand Up @@ -1198,6 +1201,8 @@ ch.ivy.addon.portalkit.ui.jsf:
noPermission: You do not have the permission to send this request!
expiryPeriod: Período de caducidad
loadingCharts: Por favor espere, los diagramas se están cargando
moveLeft: Muévete a la izquierda
moveRight: Muévete a la derecha
notAllowedToCreateChart: Ha cambiado los filtros aplicados. Por favor aplique los filtros.
other: Otros
restoreDefaultChart: Si continúa, todos los diagramas hechos por usted serán borrados. Los valores iniciales serán reestablecidos.
Expand All @@ -1221,6 +1226,7 @@ ch.ivy.addon.portalkit.ui.jsf:
chartDetailsHeader: Detalles del gráfico
chartName: Nombre del gráfico
chartType: Tipo de gráfico
name: Información gráfica
chartType:
caseByFinishedTask: Caso por Tarea Terminada
caseByFinishedTaskDescription: Casos en los que al menos una tarea ha sido finalizada en el tiempo seleccionado
Expand Down Expand Up @@ -1771,6 +1777,7 @@ Labels:
AppendTask-Explain: La tarea es añadida a la secuencia después de mi tarea.
AppendTheTask: Anexar la tarea
CreateNewDashboard: Crear un nuevo cuadro de mandos
EditDescription: Editar descripción
Enums:
DashboardStandardCaseColumn:
ACTIONS: Acciones
Expand Down Expand Up @@ -1862,6 +1869,7 @@ Labels:
Task: Tarea
TaskItemDetail: Detalles de la tarea
TaskUser-Explain: Lista de usuario separados por coma
ToggleMenu: Menú alternativo
ViewAllResults: Ver todos los resultados
adhocTaskRequired: Deberá agregar al menos una tarea.
disabledUserPrefix: (inactivo)
Expand Down
8 changes: 8 additions & 0 deletions AxonIvyPortal/portal/cms/cms_fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ ch.ivy.addon.portalkit.ui.jsf:
value: Valeur
applicationMenuHeader:
MobileApp: Télécharger et se connecter à l'application mobile Axon Ivy
ThemeSwitcher: Changeur de thème
adminSettings: Administration
changePassword: Modifier le mot de passe
businessCaseState:
Expand Down Expand Up @@ -407,6 +408,7 @@ ch.ivy.addon.portalkit.ui.jsf:
processChatIsCreated: 'Chat de processus : {0} est créé'
processChatWasCreated: 'Chat de processus : {0} a été créé. Vous ne pouvez pas le créer à nouveau.'
selectedAssignees: Cessionnaires sélectionnés
toggleChat: Afficher le panneau de discussion
typeMessage: Tapez votre message ici…
viewParticipant: Voir les participants
common:
Expand Down Expand Up @@ -717,6 +719,7 @@ ch.ivy.addon.portalkit.ui.jsf:
taskDescriptionNotAvailable: '[Aucune description]'
taskNameNotAvailable: '[Nom de la tâche non disponible ]'
taskView:
DeleteFilter: Supprimer le filtre
adminFilterSetWarning: Votre jeu de filtres contient des états qui ne peuvent être vus que par les administrateurs.
appliedFilters: Filtres appliqués
exportedTasksCasesFileName: AXONIVY_Dataset_Statistics_{0}.{1}
Expand Down Expand Up @@ -1195,6 +1198,8 @@ ch.ivy.addon.portalkit.ui.jsf:
noPermission: You do not have the permission to send this request!
expiryPeriod: Période d'expiration
loadingCharts: Veuillez patienter, les graphiques sont en cours de chargement …
moveLeft: Déplacer vers la gauche
moveRight: Déplacer vers la droite
notAllowedToCreateChart: Vous n'êtes pas autorisé à créer un diagramme avant de cliquer sur le bouton Appliquer les filtres
other: Outres
restoreDefaultChart: Si vous continuez, vous perdrez tous les graphiques créés par vous-même. Les paramètres standard seront appliqués.
Expand All @@ -1218,6 +1223,7 @@ ch.ivy.addon.portalkit.ui.jsf:
chartDetailsHeader: Détails du diagramme
chartName: Nom du diagramme
chartType: Type du diagramme
name: Infos graphiques
chartType:
caseByFinishedTask: Cas traités en période de temps
caseByFinishedTaskDescription: Cas où une tâche s'est terminée dans la période sélectionnée
Expand Down Expand Up @@ -1765,6 +1771,7 @@ Labels:
AppendTask-Explain: La tâche est ajoutée à la séquence après ma tâche.
AppendTheTask: Ajouter la tâche
CreateNewDashboard: Créer un nouveau tableau de bord
EditDescription: Editer la description
Enums:
DashboardStandardCaseColumn:
ACTIONS: Actions
Expand Down Expand Up @@ -1848,6 +1855,7 @@ Labels:
Task: Tâche
TaskItemDetail: Détails de la tâche
TaskUser-Explain: Liste d’utilisateurs séparés par des virgules
ToggleMenu: Menu à bascule
ViewAllResults: Voir tous les résultats
adhocTaskRequired: Vous devez ajouter au moins une tâche.
disabledUserPrefix: (désactivé)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<p:graphicImage styleClass="portal-home-logo portal-home-logo-small" name="logo_small" library="ivy-branding" alt="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/homeLogo')}" />
</p:commandLink>

<p:commandLink id="toggle-menu" styleClass="sidebar-pin" global="false"
<p:commandLink id="toggle-menu" styleClass="sidebar-pin" global="false" ariaLabel="#{ivy.cms.co('/Labels/ToggleMenu')}"
onclick="hideBreadcrumb()" oncomplete="Portal.updateBreadcrumb();" >
<span class="pin"></span>
</p:commandLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
styleClass="u-truncate-text ui-sm-12" width="65%">
<h:panelGroup layout="block" rendered="#{document ne null}" styleClass="case-document-name">
<p:commandLink ajax="false" id="download"
ariaLabel="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/documentFiles/download')}"
styleClass="download-command case-document-name-text u-truncate-text">
<p:fileDownload value="#{logic.downloadDocument(document)}" />
<ic:ch.ivy.addon.portalkit.component.document.DocumentNameWithIcon fileName="#{document.name}"
Expand All @@ -52,6 +53,7 @@
fileNameStyleClass="js-document-name document-name" fileSizeStyleClass="document-size" />
</p:commandLink>
<p:commandLink id="delete-file" actionListener="#{data.setDocument(document)}"
ariaLabel="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/caseDetails/deleteFile')} #{document.name}"
rendered="#{caseTaskDocumentBean.canWriteDocument(data.selectedCase)}"
styleClass="si si-remove Fright case-document-download"
oncomplete="PF('document-deletion-dialog').show()">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
styleClass="u-truncate-text ui-sm-12" width="65%"
filterBy="#{document.name}" filterMatchMode="contains">
<h:panelGroup layout="block" rendered="#{document ne null}" styleClass="task-document-name">
<p:commandLink ajax="false" id="download" styleClass="download-command task-document-name-text u-truncate-text">
<p:commandLink ajax="false" id="download" styleClass="download-command task-document-name-text u-truncate-text" ariaLabel="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/documentFiles/download')}">
<p:fileDownload value="#{logic.downloadDocument(document)}"/>
<ic:ch.ivy.addon.portalkit.component.document.DocumentNameWithIcon fileName="#{document.name}"
fileSize="#{masterDataBean.getReadableFileSize(document.size)}"
Expand All @@ -54,6 +54,7 @@
fileSizeStyleClass="document-size" />
</p:commandLink>
<p:commandLink id="delete-file" actionListener="#{data.setDocument(document)}"
ariaLabel="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/taskDetails/deleteFile')} #{document.name}"
rendered="#{caseTaskDocumentBean.canWriteDocument(data.task)}"
styleClass="si si-remove Fright task-document-download" oncomplete="PF('document-deletion-dialog').show()">
<p:tooltip for="delete-file" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/taskDetails/deleteFile')} #{document.name}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<p:ajax event="rowReorder" global="false" />
<p:column headerText="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/visible')}" width="70" styleClass="u-text-align-center">
<p:commandLink id="toggle-visibility" styleClass="ui-selectbooleancheckbox ui-chkbox ui-widget" process="@this"
actionListener="#{columnManagementBean.handleVisibility(column)}"
actionListener="#{columnManagementBean.handleVisibility(column)}" ariaLabel="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/visible')}"
update="column-management-datatable" partialSubmit="true" immediate="true" global="false" >
<h:panelGroup styleClass="ui-chkbox-box ui-widget ui-corner-all ui-state-default #{column.visible ? 'ui-state-active':''}">
<span class="ui-chkbox-icon ui-icon ui-c #{column.visible ? 'ui-icon-check':'ui-icon-blank'}"></span>
Expand All @@ -37,6 +37,7 @@
<h:panelGroup layout="block" id="quick-search-checkbox-panel"
rendered="#{column.canQuickSearch()}">
<p:commandLink id="toggle-quick-search" styleClass="ui-selectbooleancheckbox ui-chkbox ui-widget" process="@this"
ariaLabel="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/dashboard/QuickSearch')}"
actionListener="#{columnManagementBean.handleQuickSearch(column)}"
global="false" update="column-management-datatable" partialSubmit="true" immediate="true">
<h:panelGroup styleClass="ui-chkbox-box ui-widget ui-corner-all ui-state-default #{column.quickSearch ? 'ui-state-active':''}">
Expand All @@ -49,7 +50,7 @@
<i class="si si-move-expand-vertical" />
</p:column>
<p:column headerText="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/remove')}" width="70" styleClass="u-text-align-center js-column-field-#{column.field}">
<p:commandLink id="remove-link" actionListener="#{columnManagementBean.remove(column)}" global="false" process="@this"
<p:commandLink id="remove-link" actionListener="#{columnManagementBean.remove(column)}" global="false" process="@this" ariaLabel="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/remove')}"
update="column-management-datatable #{cc.clientId}:column-management-form:standard-field-selection #{cc.clientId}:column-management-form:custom-field-selection">
<i class="si si-bin-1" />
</p:commandLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

<p:commandLink id="start-task" actionListener="#{dashboardBean.handleStartTask(task)}" onclick="event.stopPropagation();"
disabled="#{!taskActionBean.isNotDone(task) or !taskActionBean.canResume(task)}" oncomplete="resetPortalLeftMenuState()"
ariaLabel="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/dashboard/startATask')}"
process="@this">
<span class="si si-controls-play" />
</p:commandLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</p:column>
<p:column>
<p:commandLink id="delete-deputy" styleClass="si si-bin-1 delete-deputy" actionListener="#{logic.removeDeputy(deputy)}"
update="deputy-selection-form" />
update="deputy-selection-form" ariaLabel="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/delete')}"/>
</p:column>
</p:panelGrid>
</ui:repeat>
Expand Down
Loading

0 comments on commit d7a9dad

Please sign in to comment.