diff --git a/app/src/app/app.config.ts b/app/src/app/app.config.ts index 809ac03a8..d54870d1c 100644 --- a/app/src/app/app.config.ts +++ b/app/src/app/app.config.ts @@ -50,6 +50,7 @@ import { CONTENT_LAYOUT_ROUTES, ContentServiceExtensionModule } from '@alfresco/ import { SHELL_APP_SERVICE, SHELL_AUTH_TOKEN, provideShellRoutes } from '@alfresco/adf-core/shell'; import { APP_ROUTES } from './app.routes'; import { MAT_SNACK_BAR_DEFAULT_OPTIONS } from '@angular/material/snack-bar'; +import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field'; registerLocaleData(localeFr); registerLocaleData(localeDe); @@ -95,6 +96,10 @@ export const AppConfig: ApplicationConfig = { duration: 10000, politeness: 'polite' } + }, + { + provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, + useValue: { appearance: 'outline', floatLabel: 'always', subscriptSizing: 'dynamic' } } ] }; diff --git a/package-lock.json b/package-lock.json index f20a1a2c2..a6920fc78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,11 +9,11 @@ "version": "7.3.0", "license": "LGPL-3.0", "dependencies": { - "@alfresco/adf-content-services": "8.4.0-21353303004", - "@alfresco/adf-core": "8.4.0-21353303004", - "@alfresco/adf-extensions": "8.4.0-21353303004", - "@alfresco/eslint-plugin-eslint-angular": "8.4.0-21353303004", - "@alfresco/js-api": "9.4.0-21353303004", + "@alfresco/adf-content-services": "8.4.0-21387976035", + "@alfresco/adf-core": "8.4.0-21387976035", + "@alfresco/adf-extensions": "8.4.0-21387976035", + "@alfresco/eslint-plugin-eslint-angular": "8.4.0-21387976035", + "@alfresco/js-api": "9.4.0-21387976035", "@angular/animations": "19.2.18", "@angular/cdk": "19.2.18", "@angular/common": "19.2.18", @@ -46,7 +46,7 @@ "zone.js": "0.15.0" }, "devDependencies": { - "@alfresco/adf-cli": "8.4.0-21353303004", + "@alfresco/adf-cli": "8.4.0-21387976035", "@angular-devkit/build-angular": "19.2.19", "@angular-devkit/core": "19.2.18", "@angular-devkit/schematics": "19.2.18", @@ -103,13 +103,13 @@ } }, "node_modules/@alfresco/adf-cli": { - "version": "8.4.0-21353303004", - "resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-8.4.0-21353303004.tgz", - "integrity": "sha512-MYFQOjFo509kgM07H3nskyvkBVeEpVpGEdeyHZyODvG4/lIQrKTIb3P32cw6dfY7JR4nud/8ntLE5qPB3sdUDw==", + "version": "8.4.0-21387976035", + "resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-8.4.0-21387976035.tgz", + "integrity": "sha512-sqnEZwBQ+3IVg+UISIO48JbpmGbciDc04hNfj27q1WAQojH+j3LBrUr0KejFcRR6HvM8JiJZeLL/fhHVsMj7zg==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@alfresco/js-api": ">=9.4.0-21353303004", + "@alfresco/js-api": ">=9.4.0-21387976035", "ejs": "^3.1.10", "license-checker": "^25.0.1", "node-fetch": "^2.7.0", @@ -121,16 +121,16 @@ } }, "node_modules/@alfresco/adf-content-services": { - "version": "8.4.0-21353303004", - "resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-8.4.0-21353303004.tgz", - "integrity": "sha512-TYYcuxeI5/z1BTyXp8sispik6lCY9tj3jYiAG6MTH0gn+lleRe0Tj36WUtq/ELbvAcsnGKKsQsQ+S7dB5VHmjQ==", + "version": "8.4.0-21387976035", + "resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-8.4.0-21387976035.tgz", + "integrity": "sha512-PkmB4a6LZgukqg4oEoiTyKCR+i36E4rxVxEiQrX3k5DA31k1ql1AIwybOEQNkopX9+WZor8SlkAQwO5pRQQ8eA==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/adf-core": ">=8.4.0-21353303004", - "@alfresco/js-api": ">=9.4.0-21353303004", + "@alfresco/adf-core": ">=8.4.0-21387976035", + "@alfresco/js-api": ">=9.4.0-21387976035", "@angular/animations": ">=14.1.3", "@angular/cdk": ">=14.1.2", "@angular/common": ">=14.1.3", @@ -145,9 +145,9 @@ } }, "node_modules/@alfresco/adf-core": { - "version": "8.4.0-21353303004", - "resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-8.4.0-21353303004.tgz", - "integrity": "sha512-ggpioX5W70ytFsDWBoRqblEglO916FY5bi7NMryI8u5TYw6/WuDoVCNh3Mm5gAe+OccZokRTfpp5K6Z2ErtqIw==", + "version": "8.4.0-21387976035", + "resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-8.4.0-21387976035.tgz", + "integrity": "sha512-vPGeuYRJpqfXDTPBuEtv/dwKg85r5onOW8AR+PxcepcUhbiIbCMcZ2vMBrZ9vorJG51CUtc1rXgpMG1sATfWLg==", "license": "Apache-2.0", "peer": true, "dependencies": { @@ -159,8 +159,8 @@ "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/adf-extensions": ">=8.4.0-21353303004", - "@alfresco/js-api": ">=9.4.0-21353303004", + "@alfresco/adf-extensions": ">=8.4.0-21387976035", + "@alfresco/js-api": ">=9.4.0-21387976035", "@angular/animations": ">=16.0.0", "@angular/cdk": ">=16.0.0", "@angular/common": ">=16.0.0", @@ -193,30 +193,30 @@ } }, "node_modules/@alfresco/adf-extensions": { - "version": "8.4.0-21353303004", - "resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-8.4.0-21353303004.tgz", - "integrity": "sha512-ncrYLaX/ZIsrsmXIL+g6PmjP2iU22bE+0735RbmVeiQEr/9nVH+DO2JvHwnaGyb6bp9FIPkj+N8iO52MjXdzvQ==", + "version": "8.4.0-21387976035", + "resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-8.4.0-21387976035.tgz", + "integrity": "sha512-QoPANGBMjItW5vp8xl/LKWoTDNlyHtyaYYExVMPY8A6DZADNQgzop2MMiC8fN38tLOPlG/is8keqR0lqvgfJiA==", "license": "Apache-2.0", "peer": true, "dependencies": { "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/js-api": ">=9.4.0-21353303004", + "@alfresco/js-api": ">=9.4.0-21387976035", "@angular/common": ">=14.1.3", "@angular/core": ">=14.1.3" } }, "node_modules/@alfresco/eslint-plugin-eslint-angular": { - "version": "8.4.0-21353303004", - "resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-8.4.0-21353303004.tgz", - "integrity": "sha512-yTwIHidZ5uEFOJ4CLc0rojVgwEB431Lq4eXTwi8TYvcgFXX1FYuD34DV89/8JTYDH+2mw5aocVTgrTp1oGVvcQ==", + "version": "8.4.0-21387976035", + "resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-8.4.0-21387976035.tgz", + "integrity": "sha512-WB3rzF5NzZzDhwKKxk41Aya9gWM1CeQ280FQikCcQGmIeMK2ORgRsczpGl7/mUDGWjT0wmK1Y9N57F9tR+TdLQ==", "license": "Apache-2.0" }, "node_modules/@alfresco/js-api": { - "version": "9.4.0-21353303004", - "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-9.4.0-21353303004.tgz", - "integrity": "sha512-fZicgF65bFYx2sylPZofCsNdLfM+P328K5fi51JW+lNezSoPX6GeQ6Vpvdap4gumDZvN+glJ9QoyLGOapkwlGA==", + "version": "9.4.0-21387976035", + "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-9.4.0-21387976035.tgz", + "integrity": "sha512-6+vC5mFJIVt34YIPp1PPy/ezqpYy08/+FAFj3HNAtHtiri95UkpP2d/ARDEZdi83QZkSDwEPtTWyyEfKTQE5ag==", "license": "Apache-2.0", "peer": true, "dependencies": { diff --git a/package.json b/package.json index 5365a02ad..5c83faf95 100644 --- a/package.json +++ b/package.json @@ -41,11 +41,11 @@ }, "private": true, "dependencies": { - "@alfresco/adf-content-services": "8.4.0-21353303004", - "@alfresco/adf-core": "8.4.0-21353303004", - "@alfresco/adf-extensions": "8.4.0-21353303004", - "@alfresco/eslint-plugin-eslint-angular": "8.4.0-21353303004", - "@alfresco/js-api": "9.4.0-21353303004", + "@alfresco/adf-content-services": "8.4.0-21387976035", + "@alfresco/adf-core": "8.4.0-21387976035", + "@alfresco/adf-extensions": "8.4.0-21387976035", + "@alfresco/eslint-plugin-eslint-angular": "8.4.0-21387976035", + "@alfresco/js-api": "9.4.0-21387976035", "@angular/animations": "19.2.18", "@angular/cdk": "19.2.18", "@angular/common": "19.2.18", @@ -78,7 +78,7 @@ "zone.js": "0.15.0" }, "devDependencies": { - "@alfresco/adf-cli": "8.4.0-21353303004", + "@alfresco/adf-cli": "8.4.0-21387976035", "@angular-devkit/build-angular": "19.2.19", "@angular-devkit/core": "19.2.18", "@angular-devkit/schematics": "19.2.18", diff --git a/projects/aca-content/assets/i18n/en.json b/projects/aca-content/assets/i18n/en.json index 97832b374..84fdf7827 100644 --- a/projects/aca-content/assets/i18n/en.json +++ b/projects/aca-content/assets/i18n/en.json @@ -52,19 +52,13 @@ "LOCATION": "Location", "TELEPHONE": "Telephone", "MOBILE": "Mobile", - "LOGIN": "Login", - "USERNAME": "Username", "EMAIL": "Email", - "PASSWORD": "Password", - "OLD_PASSWORD": "Old Password", - "FORGOT_PASSWORD": "Forgot Password", - "NEW_PASSWORD": "New Password", - "VERIFY_PASSWORD": "Verify Password", "COMPANY_DETAILS": "Company details", "NAME": "Name", "ADDRESS": "Address", "POSTCODE": "Postcode", - "INVALID_INPUT": "Invalid Input", + "INVALID_PHONE_FORMAT": "Please enter a valid phone number", + "INVALID_EMAIL_FORMAT": "Please enter a valid email address", "GO_TO_PERSONAL_FILES_BUTTON_LABEL": "Go to Personal Files" }, "LOCKED_BY": "Locked by: ", diff --git a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action-list.ui-component.html b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action-list.ui-component.html index 4092bccd8..1e7f7db11 100644 --- a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action-list.ui-component.html +++ b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action-list.ui-component.html @@ -1,4 +1,4 @@ -
+
.aca-rule-action { flex: 1; } - #{ms.$mat-text-field-disabled}#{ms.$mat-text-field-filled} { - background: transparent; - } - &:nth-child(2n) { background-color: hsl(0deg, 0%, 95%); diff --git a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.html b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.html index 59a20ac07..651fa6070 100644 --- a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.html +++ b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.html @@ -1,6 +1,6 @@
- + diff --git a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.scss b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.scss index ac6eb8093..ab9cad2f3 100644 --- a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.scss +++ b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.scss @@ -9,8 +9,6 @@ gap: 20px; adf-card-view { - margin-top: -15px; - .adf-property-list .adf-property adf-card-view-item-dispatcher adf-card-view-textitem { display: inline-block; width: 100%; @@ -44,10 +42,5 @@ min-height: 22.5px; } } - - &.aca-rule-action-card-view { - overflow: hidden; - margin-top: 11px; - } } } diff --git a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.html b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.html index 1e4ab6d48..72859e528 100644 --- a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.html +++ b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.html @@ -12,7 +12,7 @@ [attr.aria-labelledby]="'conditions-group-label-' + (childCondition ? 'nested' : 'main')" class="aca-rule-composite-condition__form__row" *ngFor="let control of conditionFormControls; let i = index"> - + {{ 'ACA_FOLDER_RULES.RULE_DETAILS.LABEL.LOGIC_OPERATOR' | translate }} - + {{ 'ACA_FOLDER_RULES.RULE_DETAILS.LOGIC_OPERATORS.AND' | translate }} diff --git a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.scss b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.scss index 1d9bb4d6b..b39c6f0c6 100644 --- a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.scss +++ b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.scss @@ -28,12 +28,6 @@ display: flex; gap: 8px; - #{ms.$mat-form-field} { - #{ms.$mat-form-field-infix} { - padding-bottom: 4px; - } - } - & > :nth-child(1) { width: 7em; height: fit-content; diff --git a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-simple-condition.ui-component.html b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-simple-condition.ui-component.html index 6b554bd48..a4d58b105 100644 --- a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-simple-condition.ui-component.html +++ b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-simple-condition.ui-component.html @@ -1,5 +1,5 @@
- + {{ 'ACA_FOLDER_RULES.RULE_DETAILS.LABEL.FIELD' | translate }} @@ -12,7 +12,7 @@ - {{ 'ACA_FOLDER_RULES.RULE_DETAILS.LABEL.COMPARATOR' | translate }} @@ -25,7 +25,7 @@ + [ngSwitch]="selectedField.type"> {{ 'ACA_FOLDER_RULES.RULE_DETAILS.LABEL.VALUE' | translate }} {{ 'ACA_FOLDER_RULES.RULE_DETAILS.OPTIONS.ERROR_SCRIPT' | translate }} diff --git a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.scss b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.scss index ef9278775..44542f974 100644 --- a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.scss +++ b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.scss @@ -1,3 +1,5 @@ +@use '@angular/material' as mat; + .aca-rule-options { fieldset { display: flex; @@ -14,7 +16,17 @@ } &__error-script-dropdown { - margin-top: 4px; + margin-top: 8px; + + @include mat.form-field-overrides( + ( + outlined-label-text-populated-size: 16px + ) + ); + + mat-label { + line-height: 18px; + } } &.aca-read-only &__checkbox > div > div:first-child { diff --git a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.spec.ts b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.spec.ts index 4dc5f364e..e403e74a4 100644 --- a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.spec.ts +++ b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.spec.ts @@ -168,7 +168,6 @@ describe('RuleOptionsUiComponent', () => { const matFormField = getErrorScriptFormField(); fixture.detectChanges(); expect(matFormField).not.toBeNull(); - expect(matFormField.componentInstance['floatLabel']).toBe('always'); }); it('should properly update formFields on only isAsynchronous and errorScript changes', () => { diff --git a/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.html b/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.html index 85535832d..a3e0e1913 100644 --- a/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.html +++ b/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.html @@ -4,11 +4,14 @@
- - {{ 'ACA_FOLDER_RULES.RULE_DETAILS.PLACEHOLDER.NAME' | translate }} + + matInput + type="text" + formControlName="name" + [placeholder]="'ACA_FOLDER_RULES.RULE_DETAILS.PLACEHOLDER.NAME' | translate" + data-automation-id="rule-details-name-input"> {{ 'ACA_FOLDER_RULES.RULE_DETAILS.ERROR.REQUIRED' | translate }}
@@ -17,7 +20,7 @@
- +