mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-10178] Remove deprecated ADF components (#11221)
This commit is contained in:
@@ -285,11 +285,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "بحاجة لمساعدة؟",
|
||||
"REGISTER": "تسجيل"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "إلغاء",
|
||||
"CHOOSE": "اختيار",
|
||||
"LOGIN": "تسجيل دخول"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -285,11 +285,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "Potřebujete pomoc?",
|
||||
"REGISTER": "Zaregistrovat"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Zrušit",
|
||||
"CHOOSE": "Vybrat",
|
||||
"LOGIN": "Přihlásit se"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -285,11 +285,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "Har du brug for hjælp?",
|
||||
"REGISTER": "Tilmeld"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Annuller",
|
||||
"CHOOSE": "Vælg",
|
||||
"LOGIN": "Log ind"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -364,11 +364,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "Brauchen Sie Hilfe?",
|
||||
"REGISTER": "Registrieren"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Abbrechen",
|
||||
"CHOOSE": "Auswählen",
|
||||
"LOGIN": "Anmelden"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -366,11 +366,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "NEED HELP?",
|
||||
"REGISTER": "REGISTER"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Cancel",
|
||||
"CHOOSE": "Choose",
|
||||
"LOGIN": "Sign in"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -364,11 +364,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "¿Necesita ayuda?",
|
||||
"REGISTER": "Registrarse"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Cancelar",
|
||||
"CHOOSE": "Elegir",
|
||||
"LOGIN": "Iniciar sesión"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -285,11 +285,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "Tarvitsetko apua?",
|
||||
"REGISTER": "Rekisteröidy"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Peruuta",
|
||||
"CHOOSE": "Valitse",
|
||||
"LOGIN": "Kirjaudu sisään"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -364,11 +364,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "Besoin d'aide ?",
|
||||
"REGISTER": "S'inscrire"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Annuler",
|
||||
"CHOOSE": "Choisir",
|
||||
"LOGIN": "Connexion"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -364,11 +364,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "Hai bisogno di aiuto?",
|
||||
"REGISTER": "Registrati"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Annulla",
|
||||
"CHOOSE": "Scegli",
|
||||
"LOGIN": "Accedi"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -285,11 +285,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "ヘルプが必要ですか?",
|
||||
"REGISTER": "登録"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "キャンセル",
|
||||
"CHOOSE": "選択",
|
||||
"LOGIN": "サインイン"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -285,11 +285,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "Trenger hjelp?",
|
||||
"REGISTER": "Registrer"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Avbryt",
|
||||
"CHOOSE": "Velg",
|
||||
"LOGIN": "Logg på"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -285,11 +285,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "Hulp nodig?",
|
||||
"REGISTER": "Registreren"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Annuleren",
|
||||
"CHOOSE": "Kiezen",
|
||||
"LOGIN": "Aanmelden"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -364,11 +364,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "Potrzebujesz pomocy?",
|
||||
"REGISTER": "Zarejestruj się"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Anuluj",
|
||||
"CHOOSE": "Wybierz",
|
||||
"LOGIN": "Zaloguj się"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -285,11 +285,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "Precisa de ajuda?",
|
||||
"REGISTER": "Registrar"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Cancelar",
|
||||
"CHOOSE": "Escolher",
|
||||
"LOGIN": "Entrar"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -364,11 +364,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "PRECISA DE AJUDA?",
|
||||
"REGISTER": "REGISTAR"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Cancelar",
|
||||
"CHOOSE": "Escolher",
|
||||
"LOGIN": "Iniciar sessão"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -285,11 +285,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "Справка?",
|
||||
"REGISTER": "Регистрация"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Отмена",
|
||||
"CHOOSE": "Выбрать",
|
||||
"LOGIN": "Войти"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -285,11 +285,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "Behöver du hjälp?",
|
||||
"REGISTER": "Registrera"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "Avbryt",
|
||||
"CHOOSE": "Välj",
|
||||
"LOGIN": "Logga in"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
@@ -285,11 +285,6 @@
|
||||
"ACTION": {
|
||||
"HELP": "是否需要帮助?",
|
||||
"REGISTER": "注册"
|
||||
},
|
||||
"DIALOG": {
|
||||
"CANCEL": "取消",
|
||||
"CHOOSE": "选择",
|
||||
"LOGIN": "登录"
|
||||
}
|
||||
},
|
||||
"ADF-DATATABLE": {
|
||||
|
||||
-24
@@ -1,24 +0,0 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Subject } from 'rxjs';
|
||||
|
||||
export interface LoginDialogComponentData {
|
||||
title: string;
|
||||
actionName?: string;
|
||||
logged: Subject<any>;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
<header mat-dialog-title
|
||||
data-automation-id="login-dialog-title">
|
||||
{{ data?.title }}
|
||||
</header>
|
||||
|
||||
<mat-dialog-content class="adf-login-dialog-content">
|
||||
<adf-login-dialog-panel #adfLoginPanel (success)="onLoginSuccess($event)" />
|
||||
</mat-dialog-content>
|
||||
|
||||
<mat-dialog-actions class="adf-login-dialog-content-actions" align="end">
|
||||
<button mat-button (click)="close()"
|
||||
data-automation-id="login-dialog-actions-cancel">
|
||||
{{ 'LOGIN.DIALOG.CANCEL' | translate }}
|
||||
</button>
|
||||
|
||||
<button mat-button
|
||||
class="choose-action"
|
||||
data-automation-id="login-dialog-actions-perform"
|
||||
[disabled]="!isFormValid()"
|
||||
(click)="submitForm()">
|
||||
{{ buttonActionName | translate }}
|
||||
</button>
|
||||
</mat-dialog-actions>
|
||||
@@ -1,4 +0,0 @@
|
||||
.adf-login-dialog-content adf-login .adf-login-content .adf-login-card-wide {
|
||||
padding: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Component, Inject, ViewChild, ViewEncapsulation } from '@angular/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { LoginDialogPanelComponent } from '../login-dialog-panel/login-dialog-panel.component';
|
||||
import { LoginDialogComponentData } from './login-dialog-component-data.interface';
|
||||
|
||||
/** @deprecated this component will be removed because it's unused https://hyland.atlassian.net/browse/ACS-10178 */
|
||||
@Component({
|
||||
selector: 'adf-login-dialog',
|
||||
templateUrl: './login-dialog.component.html',
|
||||
styleUrls: ['./login-dialog.component.scss'],
|
||||
imports: [MatDialogModule, LoginDialogPanelComponent, TranslatePipe, MatButtonModule],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class LoginDialogComponent {
|
||||
@ViewChild('adfLoginPanel', { static: true })
|
||||
loginPanel: LoginDialogPanelComponent;
|
||||
|
||||
buttonActionName = '';
|
||||
|
||||
constructor(@Inject(MAT_DIALOG_DATA) public data: LoginDialogComponentData) {
|
||||
this.buttonActionName = data.actionName ? `LOGIN.DIALOG.${data.actionName.toUpperCase()}` : 'LOGIN.DIALOG.CHOOSE';
|
||||
}
|
||||
|
||||
close() {
|
||||
this.data.logged.complete();
|
||||
}
|
||||
|
||||
submitForm(): void {
|
||||
this.loginPanel.submitForm();
|
||||
}
|
||||
|
||||
onLoginSuccess(event: any) {
|
||||
this.data.logged.next(event);
|
||||
this.close();
|
||||
}
|
||||
|
||||
isFormValid() {
|
||||
return this.loginPanel ? this.loginPanel.isValid() : false;
|
||||
}
|
||||
}
|
||||
@@ -17,19 +17,12 @@
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
import { LoginDialogPanelComponent } from './components/login-dialog-panel/login-dialog-panel.component';
|
||||
import { LoginDialogComponent } from './components/login-dialog/login-dialog.component';
|
||||
|
||||
import { LoginComponent } from './components/login/login.component';
|
||||
import { LoginFooterDirective } from './directives/login-footer.directive';
|
||||
import { LoginHeaderDirective } from './directives/login-header.directive';
|
||||
|
||||
export const LOGIN_DIRECTIVES = [
|
||||
LoginComponent,
|
||||
LoginFooterDirective,
|
||||
LoginHeaderDirective,
|
||||
LoginDialogComponent,
|
||||
LoginDialogPanelComponent
|
||||
] as const;
|
||||
export const LOGIN_DIRECTIVES = [LoginComponent, LoginFooterDirective, LoginHeaderDirective, LoginDialogPanelComponent] as const;
|
||||
|
||||
/** @deprecated use `...LOGIN_DIRECTIVES` or import the standalone directives directly */
|
||||
@NgModule({
|
||||
|
||||
@@ -19,8 +19,6 @@ export * from './directives/login-header.directive';
|
||||
export * from './directives/login-footer.directive';
|
||||
|
||||
export * from './components/login/login.component';
|
||||
export * from './components/login-dialog/login-dialog.component';
|
||||
export * from './components/login-dialog/login-dialog-component-data.interface';
|
||||
export * from './components/login-dialog-panel/login-dialog-panel.component';
|
||||
|
||||
export * from './models/login-error.event';
|
||||
|
||||
Reference in New Issue
Block a user