2021-12-10 16:08:36 +01:00
< ion-content class = "container-wrapper" >
2021-07-29 16:49:07 +01:00
< div class = "d-md-none" * ngIf = "hideRefreshBtn" >
< ion-refresher name = "refresher" slot = "fixed" ( ionRefresh ) = " doRefresh ( $ event ) " >
< ion-refresher-content >
< / ion-refresher-content >
< / ion-refresher >
< / div >
2021-03-11 15:44:19 +01:00
<!-- Main container -->
2021-03-30 15:35:22 +01:00
< div class = "main-content d-flex height-100 background-white overflow-hidden border-t-radius " >
2021-03-12 11:37:26 +01:00
<!-- Left -->
2021-06-30 11:00:59 +01:00
< div class = "aside-left app-default-padding d-flex flex-grow-1 flex-column width-30 " >
2021-03-11 15:44:19 +01:00
<!-- Header -->
2023-01-24 15:56:47 +01:00
< ion-progress-bar type = "indeterminate" * ngIf = "showLoader" > < / ion-progress-bar >
2021-07-16 22:50:08 +01:00
< ion-toolbar >
2021-07-22 14:36:29 +01:00
2021-07-16 22:50:08 +01:00
< div class = "main-header" >
2021-07-22 14:36:29 +01:00
2021-07-08 13:41:27 +01:00
< div class = "title-content width-100 d-flex justify-space-between" >
2021-04-14 15:27:50 +01:00
< div class = "div-title flex-grow-1" >
2023-07-06 12:18:15 +01:00
< ion-label class = "title font-25-em" > Acções< / ion-label >
2021-03-11 15:44:19 +01:00
< / div >
2022-05-27 13:36:37 +01:00
2021-03-11 15:44:19 +01:00
< div class = "div-icon" >
2022-03-30 16:32:56 +01:00
< button * ngIf = "p.userPermission([p.permissionList.Actions.create])" title = "Adicionar nova ação presidencial" class = "btn-no-color" ( click ) = " AddPublicationFolder ( ) " >
2021-10-21 15:47:00 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'default' " slot = "icon-only" src = 'assets/images/icons-add.svg' > < / ion-icon >
< ion-icon * ngIf = "ThemeService.currentTheme == 'gov' " slot = "icon-only" src = 'assets/images/theme/gov/icons-add.svg' > < / ion-icon >
2022-10-20 15:45:10 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'doneIt' " slot = "icon-only" src = 'assets/images/theme/{{ThemeService.currentTheme}}/icons-add.svg' > < / ion-icon >
2021-04-08 16:26:54 +01:00
< / button >
2022-06-10 14:08:30 +01:00
< button title = "Atualizar" class = "btn-no-color" ( click ) = " refreshing ( ) " >
2021-10-23 09:53:21 +01:00
< ion-icon slot = "icon-only" class = "title-icon font-awesome" name = "reload-circle" title = "Actualizar" > < / ion-icon >
2021-04-08 16:35:10 +01:00
< / button >
2021-03-11 15:44:19 +01:00
< / div >
< / div >
2022-05-27 13:36:37 +01:00
2021-03-11 15:44:19 +01:00
< / div >
2021-07-16 22:50:08 +01:00
< / ion-toolbar >
2021-03-11 15:44:19 +01:00
<!-- Content -->
2021-07-22 14:36:29 +01:00
2022-12-28 14:52:42 +01:00
< div class = "aside overflow-y-auto d-flex flex-wrap width-100" >
2021-09-02 13:19:50 +01:00
< ion-item-sliding disabled = "{{showSlidingOptions}}" class = "width-100"
2021-10-09 09:15:22 +01:00
* ngFor = "let evento of publicationsEventFolderList" >
2021-07-08 09:13:57 +01:00
< ion-item lines = "none"
2021-09-02 13:19:50 +01:00
class = "item cursor-pointer width-100 d-flex ion-no-border ion-no-margin ion-no-padding"
[ class . item-active ] = " evento . ProcessId = = idSelected "
2021-07-22 14:49:55 +01:00
( click ) = " goToPublicationsList ( evento . ProcessId ) " >
2021-07-07 15:46:09 +01:00
< div class = "item-icon2" >
2023-07-06 12:18:15 +01:00
< ion-icon class = "font-40-em" * ngIf = "ThemeService.currentTheme == 'default' " slot = "end" src = 'assets/images/icons-nav-actions.svg' > < / ion-icon >
< ion-icon class = "font-40-em" * ngIf = "ThemeService.currentTheme == 'gov' && evento.ProcessId != idSelected " slot = "end" src = 'assets/images/theme/gov/icons-nav-actions.svg' > < / ion-icon >
< ion-icon class = "font-40-em" * ngIf = "ThemeService.currentTheme == 'gov' && evento.ProcessId == idSelected " slot = "end" src = 'assets/images/theme/gov/icons-nav-actions-hover.svg' > < / ion-icon >
< ion-icon class = "font-40-em" * ngIf = "ThemeService.currentTheme == 'doneIt' && evento.ProcessId != idSelected " slot = "end" src = 'assets/images/theme/{{ThemeService.currentTheme}}/icons-nav-actions.svg' > < / ion-icon >
< ion-icon class = "font-40-em" * ngIf = "ThemeService.currentTheme == 'doneIt' && evento.ProcessId == idSelected " slot = "end" src = 'assets/images/theme/{{ThemeService.currentTheme}}/icons-nav-actions-hover.svg' > < / ion-icon >
2021-07-07 15:46:09 +01:00
< / div >
2021-09-02 13:19:50 +01:00
< div class = "item-content flex-grow-1" >
2023-07-06 12:18:15 +01:00
< p class = "item-content-date font-13-em" [ class . item-content-date-active ] = " evento . ProcessId = = idSelected " > {{getDate(evento.DateBegin)}}< / p >
< p class = "item-content-title font-15-em" [ class . item-content-title-active ] = " evento . ProcessId = = idSelected " > {{evento.Description}}< / p >
2021-07-07 15:46:09 +01:00
< / div >
< / ion-item >
< ion-item-options class = "members-options" side = "end" >
2022-03-30 16:32:56 +01:00
< ion-item-option * ngIf = "p.userPermission([p.permissionList.Actions.edit])" class = "edit-option" ( click ) = " editAction ( evento . ProcessId ) " >
2021-07-07 17:02:19 +01:00
< button class = "btn-no-color" >
2021-10-25 15:31:43 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'default' " class = "edit" slot = "end" src = "assets/images/icons-edit.svg" > < / ion-icon >
< ion-icon * ngIf = "ThemeService.currentTheme == 'gov' " class = "edit" slot = "end" src = "assets/images/theme/gov/icons-edit.svg" > < / ion-icon >
2022-10-20 15:45:10 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'doneIt' " class = "edit" slot = "end" src = "assets/images/theme/{{ThemeService.currentTheme}}/icons-edit.svg" > < / ion-icon >
2021-10-25 15:31:43 +01:00
2021-07-22 14:36:29 +01:00
< / button >
2021-07-07 17:02:19 +01:00
< / ion-item-option >
2022-03-30 16:32:56 +01:00
< ion-item-option * ngIf = "p.userPermission([p.permissionList.Actions.delete])" class = "delete-option" ( click ) = " deleteAction ( evento . ProcessId ) " >
2021-07-07 17:02:19 +01:00
< button class = "btn-no-color" >
< ion-icon class = "delete" name = "trash-sharp" > < / ion-icon >
2021-07-22 14:36:29 +01:00
< / button >
2021-07-07 17:02:19 +01:00
< / ion-item-option >
2021-07-07 15:46:09 +01:00
< / ion-item-options >
< / ion-item-sliding >
2021-07-22 14:36:29 +01:00
< / div >
2021-12-16 19:11:30 +01:00
<!-- Sart Skeleton -->
2022-12-20 17:14:23 +01:00
< div * ngIf = "showLoader && publicationsEventFolderList.length == 0" >
2021-12-16 19:11:30 +01:00
< ion-item-sliding disabled = "{{showSlidingOptions}}" class = "width-100" >
< ion-item lines = "none"
class = "item width-100 d-flex ion-no-border ion-no-margin ion-no-padding" >
< div class = "item-icon cursor-pointer" >
2022-01-20 14:27:54 +01:00
< ion-icon slot = "end" src = 'assets/icon/icons-actions-grey.svg' > < / ion-icon >
2021-12-16 19:11:30 +01:00
< / div >
< div class = "item-content flex-grow-1 cursor-pointer" >
< p class = "item-content-date my-5" > < ion-skeleton-text animated style = "width: 90%" > < / ion-skeleton-text > < / p >
< p class = "item-content-title my-10" > < ion-skeleton-text animated style = "width: 50%" > < / ion-skeleton-text > < / p >
< p class = "item-content-detail my-5" > < ion-skeleton-text animated style = "width: 100%" > < / ion-skeleton-text > < / p >
< / div >
< / ion-item >
< ion-item lines = "none"
class = "item width-100 d-flex ion-no-border ion-no-margin ion-no-padding" >
< div class = "item-icon cursor-pointer" >
2023-07-12 11:39:25 +01:00
< ion-icon class = "font-40-rem" slot = "end" src = 'assets/icon/icons-actions-grey.svg' > < / ion-icon >
2021-12-16 19:11:30 +01:00
< / div >
< div class = "item-content flex-grow-1 cursor-pointer" >
< p class = "item-content-date my-5" > < ion-skeleton-text animated style = "width: 90%" > < / ion-skeleton-text > < / p >
< p class = "item-content-title my-10" > < ion-skeleton-text animated style = "width: 50%" > < / ion-skeleton-text > < / p >
< p class = "item-content-detail my-5" > < ion-skeleton-text animated style = "width: 100%" > < / ion-skeleton-text > < / p >
< / div >
< / ion-item >
< ion-item lines = "none"
class = "item width-100 d-flex ion-no-border ion-no-margin ion-no-padding" >
< div class = "item-icon cursor-pointer" >
2023-07-12 11:39:25 +01:00
< ion-icon class = "font-40-rem" slot = "end" src = 'assets/icon/icons-actions-grey.svg' > < / ion-icon >
2021-12-16 19:11:30 +01:00
< / div >
< div class = "item-content flex-grow-1 cursor-pointer" >
< p class = "item-content-date my-5" > < ion-skeleton-text animated style = "width: 90%" > < / ion-skeleton-text > < / p >
< p class = "item-content-title my-10" > < ion-skeleton-text animated style = "width: 50%" > < / ion-skeleton-text > < / p >
< p class = "item-content-detail my-5" > < ion-skeleton-text animated style = "width: 100%" > < / ion-skeleton-text > < / p >
< / div >
< / ion-item >
< ion-item lines = "none"
class = "item width-100 d-flex ion-no-border ion-no-margin ion-no-padding" >
< div class = "item-icon cursor-pointer" >
2023-07-12 11:39:25 +01:00
< ion-icon class = "font-40-rem" slot = "end" src = 'assets/icon/icons-actions-grey.svg' > < / ion-icon >
2021-12-16 19:11:30 +01:00
< / div >
< div class = "item-content flex-grow-1 cursor-pointer" >
< p class = "item-content-date my-5" > < ion-skeleton-text animated style = "width: 90%" > < / ion-skeleton-text > < / p >
< p class = "item-content-title my-10" > < ion-skeleton-text animated style = "width: 50%" > < / ion-skeleton-text > < / p >
< p class = "item-content-detail my-5" > < ion-skeleton-text animated style = "width: 100%" > < / ion-skeleton-text > < / p >
< / div >
< / ion-item >
< / ion-item-sliding >
< ion-item-sliding disabled = "{{showSlidingOptions}}" class = "width-100" >
< ion-item lines = "none"
class = "item cursor-pointer width-100 d-flex ion-no-border ion-no-margin ion-no-padding" >
< div class = "item-icon2" >
2023-07-12 11:39:25 +01:00
< ion-icon class = "font-40-rem" slot = "end" src = 'assets/icon/icons-actions-grey.svg' > < / ion-icon >
2021-12-16 19:11:30 +01:00
< / div >
< div class = "item-content flex-grow-1" >
< ion-label >
< p class = "item-content-date" > < ion-skeleton-text animated style = "width: 90%" > < / ion-skeleton-text > < / p >
< p class = "item-content-title" > < ion-skeleton-text animated style = "width: 50%" > < / ion-skeleton-text > < / p >
< / ion-label >
< / div >
< / ion-item >
< ion-item lines = "none"
class = "item cursor-pointer width-100 d-flex ion-no-border ion-no-margin ion-no-padding" >
< div class = "item-icon2" >
2023-07-12 11:39:25 +01:00
< ion-icon class = "font-40-rem" slot = "end" src = 'assets/icon/icons-actions-grey.svg' > < / ion-icon >
2021-12-16 19:11:30 +01:00
< / div >
< div class = "item-content flex-grow-1" >
< ion-label >
< p class = "item-content-date" > < ion-skeleton-text animated style = "width: 90%" > < / ion-skeleton-text > < / p >
< p class = "item-content-title" > < ion-skeleton-text animated style = "width: 50%" > < / ion-skeleton-text > < / p >
< / ion-label >
< / div >
< / ion-item >
< ion-item lines = "none"
class = "item cursor-pointer width-100 d-flex ion-no-border ion-no-margin ion-no-padding" >
< div class = "item-icon2" >
2023-07-12 11:39:25 +01:00
< ion-icon class = "font-40-rem" slot = "end" src = 'assets/icon/icons-actions-grey.svg' > < / ion-icon >
2021-12-16 19:11:30 +01:00
< / div >
< div class = "item-content flex-grow-1" >
< ion-label >
< p class = "item-content-date" > < ion-skeleton-text animated style = "width: 90%" > < / ion-skeleton-text > < / p >
< p class = "item-content-title" > < ion-skeleton-text animated style = "width: 50%" > < / ion-skeleton-text > < / p >
< / ion-label >
< / div >
< / ion-item >
< / ion-item-sliding >
< / div >
<!-- End Skeleton -->
2020-11-30 16:08:29 +01:00
< / div >
2021-03-11 15:44:19 +01:00
2021-03-12 11:37:26 +01:00
<!-- Right -->
2021-05-05 16:08:38 +01:00
< div class = "content content-right d-none flex-grow-1 flex-column " >
2021-03-16 14:35:52 +01:00
2021-07-22 14:36:29 +01:00
< div class = "width-100 height-100 d-flex align-center justify-center"
2021-03-16 14:35:52 +01:00
* ngIf = "(
desktopComponent.showViewPublication == false &&
desktopComponent.showAddNewPublication == false &&
desktopComponent.showPublicationDetail == false &&
2021-06-30 16:26:35 +01:00
desktopComponent.showAddActions == false &&
desktopComponent.showEditActions == false
2021-03-30 15:35:22 +01:00
)" > < div > Nenhuma ação presidencial selecionada< / div > < / div >
2021-07-22 14:36:29 +01:00
2021-03-15 12:06:06 +01:00
<!-- View Publication -->
2021-07-22 14:36:29 +01:00
< app-view-publications
2021-03-12 14:38:55 +01:00
* ngIf = "desktopComponent.showViewPublication"
[ folderId ] = " folderId "
2021-03-16 14:35:52 +01:00
class = "height-100 d-flex flex-column overflow-hidden flex-grow-1"
2021-03-15 12:06:06 +01:00
( addNewPublication ) = " addNewPublication ( $ event ) "
2021-12-15 15:07:26 +01:00
( editPublication ) = " editPublication ( $ event ) "
2021-03-15 16:47:16 +01:00
( openPublicationDetails ) = " openPublicationDetails ( $ event ) "
2021-06-03 14:56:53 +01:00
( goBacktoPublicationDetails ) = " goBacktoPublicationDetails ( ) "
( goBackToViewPublications ) = " goBackToViewPublications ( ) "
2021-03-17 09:01:24 +01:00
( closeDesktopComponent ) = " closeDesktopComponent ( $ event ) "
2021-07-13 16:53:11 +01:00
( getActions ) = " getActions ( ) "
2021-03-12 14:38:55 +01:00
>
< / app-view-publications >
2021-07-22 14:36:29 +01:00
< app-new-publication
2021-03-17 09:01:24 +01:00
* ngIf = "desktopComponent.showAddNewPublication"
2021-03-16 14:35:52 +01:00
class = "height-100 d-flex flex-column overflow-hidden background-white flex-grow-1"
2021-03-15 12:06:06 +01:00
[ folderId ] = " folderId "
[ publicationType ] = " publicationType "
2021-04-08 11:38:36 +01:00
[ publicationId ] = " publicationId "
2021-07-22 14:36:29 +01:00
2021-03-15 16:47:16 +01:00
( closeDesktopComponent ) = " closeDesktopComponent ( $ event ) "
2021-06-03 14:56:53 +01:00
( goBacktoPublicationDetails ) = " goBacktoPublicationDetails ( ) "
( goBackToViewPublications ) = " goBackToViewPublications ( ) "
2021-07-13 16:53:11 +01:00
( getActions ) = " getActions ( ) "
2021-03-15 12:06:06 +01:00
>
< / app-new-publication >
2021-03-15 16:47:16 +01:00
< app-publication-detail-shared
* ngIf = "desktopComponent.showPublicationDetail"
2021-03-16 14:35:52 +01:00
class = "height-100 d-flex flex-column overflow-hidden background-white flex-grow-1"
2021-03-15 16:47:16 +01:00
[ publicationId ] = " publicationId "
2021-04-06 10:51:32 +01:00
[ folderId ] = " folderId "
2021-03-16 14:35:52 +01:00
( addNewPublication ) = " addNewPublication ( $ event ) "
( closeDesktopComponent ) = " closeDesktopComponent ( $ event ) "
2021-06-03 14:56:53 +01:00
( goBacktoPublicationDetails ) = " goBacktoPublicationDetails ( ) "
( goBackToViewPublications ) = " goBackToViewPublications ( ) "
2021-07-13 16:53:11 +01:00
( getActions ) = " getActions ( ) "
2021-03-15 16:47:16 +01:00
> < / app-publication-detail-shared >
2021-03-16 12:14:46 +01:00
< app-new-action
* ngIf = "desktopComponent.showAddActions"
2021-03-16 14:35:52 +01:00
class = "height-100 d-flex flex-column overflow-hidden background-white flex-grow-1"
2021-03-16 12:14:46 +01:00
( closeDesktopComponent ) = " closeDesktopComponent ( $ event ) "
2021-07-13 16:53:11 +01:00
( getActions ) = " getActions ( ) "
2021-03-16 12:14:46 +01:00
> < / app-new-action >
2021-06-30 16:15:54 +01:00
2021-06-30 16:18:48 +01:00
< app-edit-action
* ngIf = "desktopComponent.showEditActions"
2021-07-01 09:36:17 +01:00
[ folderId ] = " folderId "
2021-06-30 16:18:48 +01:00
class = "height-100 d-flex flex-column overflow-hidden background-white flex-grow-1"
( closeDesktopComponent ) = " closeDesktopComponent ( $ event ) "
2021-07-01 14:30:44 +01:00
( updateDesktopComponent ) = " updateDesktopComponent ( $ event ) "
2021-07-13 16:53:11 +01:00
( getActions ) = " getActions ( ) "
2021-06-30 16:18:48 +01:00
>
2021-06-30 16:12:47 +01:00
< / app-edit-action >
2020-11-30 16:08:29 +01:00
< / div >
2021-03-11 15:44:19 +01:00
< / div >
2021-07-22 14:36:29 +01:00
< / ion-content >