diff --git a/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.html b/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.html index b0ed04c69..e4a1fc438 100644 --- a/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.html +++ b/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.html @@ -2,9 +2,7 @@
- +

{{ 'ACA_FOLDER_RULES.ACTIONS.MANAGE_RULES' | translate }}

diff --git a/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.ts b/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.ts index 4b4b86e76..240eb5a54 100644 --- a/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.ts +++ b/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.ts @@ -33,7 +33,7 @@ import { delay, takeUntil } from 'rxjs/operators'; import { EditRuleDialogUiComponent } from '../rule-details/edit-rule-dialog.ui-component'; import { MatDialog, MatDialogModule } from '@angular/material/dialog'; import { ConfirmDialogComponent } from '@alfresco/adf-content-services'; -import { NotificationService, TemplateModule, ToolbarModule } from '@alfresco/adf-core'; +import { ButtonComponent, NotificationService, TemplateModule, ToolbarModule } from '@alfresco/adf-core'; import { ActionDefinitionTransformed } from '../model/rule-action.model'; import { ActionsService } from '../services/actions.service'; import { FolderRuleSetsService } from '../services/folder-rule-sets.service'; @@ -67,7 +67,8 @@ import { RuleDetailsUiComponent } from '../rule-details/rule-details.ui-componen TemplateModule, GenericErrorComponent, RuleDetailsUiComponent, - MatDialogModule + MatDialogModule, + ButtonComponent ], selector: 'aca-manage-rules', templateUrl: 'manage-rules.smart-component.html', diff --git a/projects/aca-content/src/lib/components/view-profile/view-profile.component.html b/projects/aca-content/src/lib/components/view-profile/view-profile.component.html index f49f5476f..cc68988fe 100644 --- a/projects/aca-content/src/lib/components/view-profile/view-profile.component.html +++ b/projects/aca-content/src/lib/components/view-profile/view-profile.component.html @@ -1,145 +1,175 @@
- - arrow_back + +

{{'APP.EDIT_PROFILE.MY_PROFILE' | translate}}

-
-
-
- - {{ generalSectionDropdown ? 'expand_more' : 'chevron_right'}} -

{{'APP.EDIT_PROFILE.GENERAL' | translate}}

-
-
- -
-
- - -
-
- -
-
-
-

{{'APP.EDIT_PROFILE.FIRST_NAME' | translate}}

-

{{personDetails?.firstName}}

-
- -
-

{{'APP.EDIT_PROFILE.LAST_NAME' | translate}}

-

{{personDetails?.lastName}}

-
- -
-

{{'APP.EDIT_PROFILE.JOB_TITLE' | translate}}

-

{{personDetails?.jobTitle}}

- -
- -
-

{{'APP.EDIT_PROFILE.LOCATION' | translate}}

-

{{personDetails?.location}}

- -
- -
-

{{'APP.EDIT_PROFILE.TELEPHONE' | translate}}

-

{{personDetails?.telephone}}

- - - {{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }} - -
- -
-

{{'APP.EDIT_PROFILE.MOBILE' | translate}}

-

{{personDetails?.mobile}}

- - - {{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }} - -
-
-
-
-
-
-
- - {{ contactSectionDropdown ? 'expand_more' : 'chevron_right'}} -

{{'APP.EDIT_PROFILE.COMPANY_DETAILS' | translate}}

-
+
+
+
+
+ + +

+ {{'APP.EDIT_PROFILE.GENERAL' | translate}} +

+
-
- +
+ + {{'APP.EDIT_PROFILE.EDIT' | translate}} + + + {{'APP.EDIT_PROFILE.CANCEL' | translate}} + {{'APP.EDIT_PROFILE.SAVE' | translate}} + +
-
- - -
-
- -
-
-
-

{{'APP.EDIT_PROFILE.NAME' | translate}}

-

{{personDetails?.company?.organization}}

- +
+
+
+

{{'APP.EDIT_PROFILE.FIRST_NAME' | translate}}

+

{{personDetails?.firstName}}

+
+ +
+

{{'APP.EDIT_PROFILE.LAST_NAME' | translate}}

+

{{personDetails?.lastName}}

+
+ +
+

{{'APP.EDIT_PROFILE.JOB_TITLE' | translate}}

+

{{personDetails?.jobTitle}}

+ +
+ +
+

{{'APP.EDIT_PROFILE.LOCATION' | translate}}

+

{{personDetails?.location}}

+ +
+ +
+

{{'APP.EDIT_PROFILE.TELEPHONE' | translate}}

+

{{personDetails?.telephone}}

+ + + {{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }} + +
+ +
+

{{'APP.EDIT_PROFILE.MOBILE' | translate}}

+

{{personDetails?.mobile}}

+ -
- -
-

{{'APP.EDIT_PROFILE.ADDRESS' | translate}}

-

{{personDetails?.company?.address1}}

- -
- -
-

{{'APP.EDIT_PROFILE.POSTCODE' | translate}}

-

{{personDetails?.company?.postcode}}

- -
- -
-

{{'APP.EDIT_PROFILE.TELEPHONE' | translate}}

-

{{personDetails?.company?.telephone}}

- - - {{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }} - -
- -
-

{{'APP.EDIT_PROFILE.EMAIL' | translate}}

-

{{personDetails?.company?.email}}

- - + {{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }} +
-
+
+ +
+
+
+ + +

+ {{'APP.EDIT_PROFILE.COMPANY_DETAILS' | translate}} +

+
+ +
+ + {{'APP.EDIT_PROFILE.EDIT' | translate}} + + + {{'APP.EDIT_PROFILE.CANCEL' | translate}} + {{'APP.EDIT_PROFILE.SAVE' | translate}} + +
+
+ +
+
+
+

{{'APP.EDIT_PROFILE.NAME' | translate}}

+

{{personDetails?.company?.organization}}

+ +
+ +
+

{{'APP.EDIT_PROFILE.ADDRESS' | translate}}

+

{{personDetails?.company?.address1}}

+ +
+ +
+

{{'APP.EDIT_PROFILE.POSTCODE' | translate}}

+

{{personDetails?.company?.postcode}}

+ +
+ +
+

{{'APP.EDIT_PROFILE.TELEPHONE' | translate}}

+

{{personDetails?.company?.telephone}}

+ + + {{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }} + +
+ +
+

{{'APP.EDIT_PROFILE.EMAIL' | translate}}

+

{{personDetails?.company?.email}}

+ + + {{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }} + +
+
+
+
diff --git a/projects/aca-content/src/lib/components/view-profile/view-profile.component.scss b/projects/aca-content/src/lib/components/view-profile/view-profile.component.scss index e05c92093..aa9f4d4f8 100644 --- a/projects/aca-content/src/lib/components/view-profile/view-profile.component.scss +++ b/projects/aca-content/src/lib/components/view-profile/view-profile.component.scss @@ -1,10 +1,37 @@ app-view-profile { + /* stylelint-disable selector-class-pattern */ + .flex { + display: flex; + } + + .flex-row { + flex-direction: row; + } + + .items-center { + align-items: center; + } + + .gap-x-2 { + column-gap: 0.5rem; + } + /* stylelint-enable selector-class-pattern */ + + mat-divider { + border-top-color: var(--theme-grey-divider-color); + } + letter-spacing: 0.5px; .app-profile-container { overflow: scroll; height: 100%; width: 100%; + + section { + border: 1px solid var(--theme-grey-background-color); + border-radius: 1rem; + } } .app-profile-row { @@ -27,52 +54,32 @@ app-view-profile { margin-top: 1rem; } - .app-profile-general-row { + .app-profile-content { margin: 2rem 0 0 2rem; + display: flex; + flex-direction: column; + row-gap: 0.5rem; width: 70%; - border: 1px solid var(--theme-grey-background-color); - border-radius: 1rem; - } - - .app-profile-icon { - margin-right: 1rem; - cursor: pointer; - } - - .app-profile-general-icon { - cursor: pointer; - } - - .app-profile-text { - letter-spacing: 0.5px; } .app-profile-general { display: flex; - padding-left: 1rem; - } - - .app-profile-general-bottom-radius { - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; + margin: 0.5rem; } .app-profile-general-section { display: flex; - width: 60%; - padding-top: 1rem; - cursor: pointer; + width: 100%; + align-items: center; } .app-general-title { margin-left: 0.6rem; - margin-top: 4px; + margin-top: 0; + margin-bottom: 0; letter-spacing: 0.5px; - } - - .app-general-edit-btn { - width: 60%; - text-align: end; + cursor: pointer; + user-select: none; } .app-divider { @@ -89,45 +96,10 @@ app-view-profile { box-shadow: 0 0 2px var(--theme-blue-button-color); } - .app-general-edit { - background: var(--theme-grey-text-background-color); - height: 30px; - margin: 1rem; - } - - .app-general-edit:hover { - background: var(--theme-grey-hover-background-color); - } - - .app-general-cancel-btn { - height: 30px; - margin: 1rem; - margin-left: 0.5rem; - background-color: var(--theme-grey-text-background-color); - padding-top: 0.25px; - } - - .app-general-save-btn { - width: 75px; - height: 30px; - margin: 1rem; - margin-left: 0.5rem; - color: white; - background-color: var(--theme-blue-button-color); - } - - .app-general-dropdown-divider { - border-top-color: var(--theme-grey-divider-color); - } - .app-general-dropdown { padding: 0 1rem; } - .app-general-dropdown-details { - display: flex; - } - .app-profile-general-dropdown-heading { color: var(--theme-heading-color); width: 20%; @@ -148,43 +120,6 @@ app-view-profile { background-color: var(--theme-dropdown-color); } - .app-profile-login-row { - margin: 2rem 0 0 2rem; - width: 70%; - border: 1px solid var(--theme-grey-background-color); - border-radius: 1rem; - } - - .app-profile-login { - display: flex; - padding-left: 1rem; - } - - .app-profile-login-dropdown-details { - width: 24%; - height: 25px; - border: none; - margin-top: 1.3rem; - background-color: var(--theme-dropdown-color); - } - - .app-profile-login-dropdown-heading-forgot { - margin-top: 1.3rem; - color: var(--theme-heading-color); - margin-left: 16rem; - } - - .app-profile-company-row { - margin-top: 2rem; - } - - .app-profile-contact-row { - margin: 2rem 0 5rem 2rem; - width: 70%; - border: 1px solid var(--theme-grey-background-color); - border-radius: 1rem; - } - .app-error-message { padding-top: 2rem; padding-left: 0.5rem; diff --git a/projects/aca-content/src/lib/components/view-profile/view-profile.component.ts b/projects/aca-content/src/lib/components/view-profile/view-profile.component.ts index 827e84cd5..844055eb0 100644 --- a/projects/aca-content/src/lib/components/view-profile/view-profile.component.ts +++ b/projects/aca-content/src/lib/components/view-profile/view-profile.component.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { AlfrescoApiService } from '@alfresco/adf-core'; +import { AlfrescoApiService, ButtonComponent } from '@alfresco/adf-core'; import { PeopleApi, Person } from '@alfresco/js-api'; import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core'; import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; @@ -31,15 +31,13 @@ import { Observable, Subject, throwError } from 'rxjs'; import { AppService } from '@alfresco/aca-shared'; import { takeUntil } from 'rxjs/operators'; import { CommonModule } from '@angular/common'; -import { MatButtonModule } from '@angular/material/button'; -import { MatIconModule } from '@angular/material/icon'; import { TranslateModule } from '@ngx-translate/core'; import { MatDividerModule } from '@angular/material/divider'; import { MatFormFieldModule } from '@angular/material/form-field'; @Component({ standalone: true, - imports: [CommonModule, TranslateModule, ReactiveFormsModule, MatButtonModule, MatIconModule, MatDividerModule, MatFormFieldModule], + imports: [CommonModule, TranslateModule, ReactiveFormsModule, MatDividerModule, MatFormFieldModule, ButtonComponent], selector: 'app-view-profile', templateUrl: './view-profile.component.html', styleUrls: ['./view-profile.component.scss'], @@ -108,7 +106,8 @@ export class ViewProfileComponent implements OnInit, OnDestroy { }); } - toggleGeneralDropdown() { + toggleGeneralDropdown(event: Event) { + event.preventDefault(); this.generalSectionDropdown = !this.generalSectionDropdown; if (!this.generalSectionDropdown) { @@ -157,7 +156,8 @@ export class ViewProfileComponent implements OnInit, OnDestroy { } } - toggleContactDropdown() { + toggleContactDropdown(event: Event) { + event.preventDefault(); this.contactSectionDropdown = !this.contactSectionDropdown; if (!this.contactSectionDropdown) {