mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[
This commit is contained in:
@@ -10,7 +10,13 @@
|
||||
"createDefaultProgram": true
|
||||
},
|
||||
"rules": {
|
||||
"jsdoc/tag-lines": ["error", "any", {"startLines": 1}],
|
||||
"jsdoc/tag-lines": [
|
||||
"error",
|
||||
"any",
|
||||
{
|
||||
"startLines": 1
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/naming-convention": "off",
|
||||
"@typescript-eslint/consistent-type-assertions": "warn",
|
||||
"@typescript-eslint/prefer-for-of": "off",
|
||||
@@ -45,7 +51,6 @@
|
||||
"style": "kebab-case"
|
||||
}
|
||||
],
|
||||
"@angular-eslint/no-host-metadata-property": "off",
|
||||
"@angular-eslint/no-input-prefix": "error",
|
||||
"@typescript-eslint/consistent-type-definitions": "error",
|
||||
"@typescript-eslint/dot-notation": "off",
|
||||
@@ -76,7 +81,8 @@
|
||||
"rxjs/no-subject-unsubscribe": "error",
|
||||
"rxjs/no-subject-value": "error",
|
||||
"rxjs/no-unsafe-takeuntil": "error",
|
||||
"unicorn/filename-case": "error"
|
||||
"unicorn/filename-case": "error",
|
||||
"@angular-eslint/prefer-standalone": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -3,4 +3,4 @@ const rootPreview = require('../../../.storybook/preview');
|
||||
export const parameters = {
|
||||
...rootPreview.preview
|
||||
};
|
||||
export const tags = ['autodocs', 'autodocs'];
|
||||
export const tags = ['autodocs', 'autodocs', 'autodocs'];
|
||||
|
@@ -20,42 +20,43 @@ import { Component } from '@angular/core';
|
||||
@Component({
|
||||
selector: 'adf-demo-breadcrumb',
|
||||
template: `
|
||||
<adf-breadcrumb [compact]="compact">
|
||||
<adf-breadcrumb-item>
|
||||
<a href="/">Home</a>
|
||||
</adf-breadcrumb-item>
|
||||
<adf-breadcrumb [compact]="compact">
|
||||
<adf-breadcrumb-item>
|
||||
<a href="/">Home</a>
|
||||
</adf-breadcrumb-item>
|
||||
|
||||
<adf-breadcrumb-item>
|
||||
<a href="https://www.alfresco.com/">Alfresco</a>
|
||||
</adf-breadcrumb-item>
|
||||
<adf-breadcrumb-item>
|
||||
<a href="https://www.alfresco.com/">Alfresco</a>
|
||||
</adf-breadcrumb-item>
|
||||
|
||||
<adf-breadcrumb-item>
|
||||
<a href="https://www.alfresco.com">External Link 1</a>
|
||||
</adf-breadcrumb-item>
|
||||
<adf-breadcrumb-item>
|
||||
<a href="https://www.alfresco.com">External Link 1</a>
|
||||
</adf-breadcrumb-item>
|
||||
|
||||
<adf-breadcrumb-item>
|
||||
<a href="https://www.alfresco.com/">External Link 2</a>
|
||||
</adf-breadcrumb-item>
|
||||
<adf-breadcrumb-item>
|
||||
<a href="https://www.alfresco.com/">External Link 2</a>
|
||||
</adf-breadcrumb-item>
|
||||
|
||||
<adf-breadcrumb-item>
|
||||
<a href="https://www.alfresco.com/">External Link 3</a>
|
||||
</adf-breadcrumb-item>
|
||||
<adf-breadcrumb-item>
|
||||
<a href="https://www.alfresco.com/">External Link 3</a>
|
||||
</adf-breadcrumb-item>
|
||||
|
||||
<adf-breadcrumb-item *ngIf="showBreadcrumbItemWithMenu" aria-current="location" aria-haspopup="true" >
|
||||
<div>
|
||||
Current Page
|
||||
<button mat-icon-button [matMenuTriggerFor]="menu" aria-label="Menu">
|
||||
<mat-icon>menu_open</mat-icon>
|
||||
</button>
|
||||
<adf-breadcrumb-item *ngIf="showBreadcrumbItemWithMenu" aria-current="location" aria-haspopup="true">
|
||||
<div>
|
||||
Current Page
|
||||
<button mat-icon-button [matMenuTriggerFor]="menu" aria-label="Menu">
|
||||
<mat-icon>menu_open</mat-icon>
|
||||
</button>
|
||||
|
||||
<mat-menu #menu="matMenu">
|
||||
<button mat-menu-item>Menu Item 1</button>
|
||||
<button mat-menu-item>Menu Item 2</button>
|
||||
</mat-menu>
|
||||
</div>
|
||||
</adf-breadcrumb-item>
|
||||
</adf-breadcrumb>
|
||||
`
|
||||
<mat-menu #menu="matMenu">
|
||||
<button mat-menu-item>Menu Item 1</button>
|
||||
<button mat-menu-item>Menu Item 2</button>
|
||||
</mat-menu>
|
||||
</div>
|
||||
</adf-breadcrumb-item>
|
||||
</adf-breadcrumb>
|
||||
`,
|
||||
standalone: false
|
||||
})
|
||||
export class DemoBreadcrumbComponent {
|
||||
compact = false;
|
||||
|
@@ -40,7 +40,6 @@ import { BreadcrumbFocusDirective } from '../../directives/breadcrumb-focus.dire
|
||||
import { BreadcrumbItemComponent } from '../breadcrumb-item/breadcrumb-item.component';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
selector: 'adf-breadcrumb',
|
||||
templateUrl: './breadcrumb.component.html',
|
||||
styleUrls: ['./breadcrumb.component.scss'],
|
||||
|
@@ -20,7 +20,6 @@ import { FlagsComponent } from './flags/flags.component';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-feature-flags-wrapper',
|
||||
standalone: true,
|
||||
imports: [FlagsComponent],
|
||||
template: `
|
||||
<div class="adf-feature-flags-wrapper">
|
||||
|
@@ -22,7 +22,6 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-feature-flags-override-indicator',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
styles: [
|
||||
`
|
||||
|
@@ -41,7 +41,6 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-feature-flags-overrides',
|
||||
standalone: true,
|
||||
imports: [
|
||||
FlagsOverrideComponent,
|
||||
CommonModule,
|
||||
|
@@ -27,7 +27,8 @@ import { UnitTestingUtils } from '../../../../src/lib/testing/unit-testing-utils
|
||||
<div>
|
||||
<div id="underFeatureFlag" *adfForFeatures="features"></div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
standalone: false
|
||||
})
|
||||
class TestWithEnabledFlagComponent {
|
||||
features = 'feature1';
|
||||
@@ -37,7 +38,8 @@ class TestWithEnabledFlagComponent {
|
||||
<div>
|
||||
<div id="underFeatureFlag" *adfForFeatures="features"></div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
standalone: false
|
||||
})
|
||||
class TestWithDisabledFlagComponent {
|
||||
features = ['feature1', 'feature2'];
|
||||
|
@@ -27,7 +27,8 @@ import { UnitTestingUtils } from '../../../../src/lib/testing/unit-testing-utils
|
||||
<div>
|
||||
<div id="underFeatureFlag" *adfNotForFeatures="features"></div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
standalone: false
|
||||
})
|
||||
class TestWithEnabledFlagComponent {
|
||||
features = ['feature1', 'feature3'];
|
||||
@@ -38,7 +39,8 @@ class TestWithEnabledFlagComponent {
|
||||
<div>
|
||||
<div id="underFeatureFlag" *adfNotForFeatures="features"></div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
standalone: false
|
||||
})
|
||||
class TestWithDisabledFlagComponent {
|
||||
features = 'feature2';
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { APP_INITIALIZER } from '@angular/core';
|
||||
import { inject, provideAppInitializer } from '@angular/core';
|
||||
import {
|
||||
FlagsOverrideToken,
|
||||
FeaturesServiceToken,
|
||||
@@ -41,19 +41,18 @@ export function provideDebugFeatureFlags(config: WritableFeaturesServiceConfig &
|
||||
{ provide: WritableFeaturesServiceConfigToken, useValue: config },
|
||||
{ provide: WritableFeaturesServiceToken, useClass: StorageFeaturesService },
|
||||
{ provide: QaFeaturesHelper, useClass: QaFeaturesHelper },
|
||||
{
|
||||
provide: APP_INITIALIZER,
|
||||
useFactory: (featuresService: StorageFeaturesService) => () => featuresService.init(),
|
||||
deps: [WritableFeaturesServiceToken],
|
||||
multi: true
|
||||
},
|
||||
{
|
||||
provide: APP_INITIALIZER,
|
||||
useFactory: (qaFeaturesHelper: QaFeaturesHelper, document: Document & { [key: string]: QaFeaturesHelper }) => () => {
|
||||
provideAppInitializer(() => {
|
||||
const initializerFn = (
|
||||
(featuresService: StorageFeaturesService) => () =>
|
||||
featuresService.init()
|
||||
)(inject(WritableFeaturesServiceToken));
|
||||
return initializerFn();
|
||||
}),
|
||||
provideAppInitializer(() => {
|
||||
const initializerFn = ((qaFeaturesHelper: QaFeaturesHelper, document: Document & { [key: string]: QaFeaturesHelper }) => () => {
|
||||
document[config.helperExposeKeyOnDocument ?? 'featureOverrides'] = qaFeaturesHelper;
|
||||
},
|
||||
deps: [QaFeaturesHelper, DOCUMENT],
|
||||
multi: true
|
||||
}
|
||||
})(inject(QaFeaturesHelper), inject(DOCUMENT));
|
||||
return initializerFn();
|
||||
})
|
||||
];
|
||||
}
|
||||
|
@@ -23,18 +23,12 @@ import { Observable } from 'rxjs';
|
||||
import { filter, map, withLatestFrom } from 'rxjs/operators';
|
||||
import { BreakpointObserver } from '@angular/cdk/layout';
|
||||
import { Directionality } from '@angular/cdk/bidi';
|
||||
import {
|
||||
SHELL_APP_SERVICE,
|
||||
SHELL_NAVBAR_MAX_WIDTH,
|
||||
SHELL_NAVBAR_MIN_WIDTH,
|
||||
ShellAppService
|
||||
} from '../../services/shell-app.service';
|
||||
import { SHELL_APP_SERVICE, SHELL_NAVBAR_MAX_WIDTH, SHELL_NAVBAR_MIN_WIDTH, ShellAppService } from '../../services/shell-app.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
selector: 'app-shell',
|
||||
standalone: true,
|
||||
imports: [CommonModule, SidenavLayoutModule, RouterModule, DynamicExtensionComponent],
|
||||
templateUrl: './shell.component.html',
|
||||
styleUrls: ['./shell.component.scss'],
|
||||
|
@@ -26,7 +26,6 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
templateUrl: './about-extension-list.component.html',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatTableModule, TranslateModule]
|
||||
})
|
||||
export class AboutExtensionListComponent {
|
||||
|
@@ -27,7 +27,6 @@ import { MatTableModule } from '@angular/material/table';
|
||||
styleUrls: ['./about-license-list.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatTableModule]
|
||||
})
|
||||
export class AboutLicenseListComponent {
|
||||
|
@@ -30,7 +30,6 @@ interface ModuleInfo {
|
||||
templateUrl: './module-list.component.html',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatTableModule]
|
||||
})
|
||||
export class ModuleListComponent {
|
||||
|
@@ -26,7 +26,6 @@ import { MatTableModule } from '@angular/material/table';
|
||||
templateUrl: './package-list.component.html',
|
||||
styleUrls: ['./package-list.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatTableModule]
|
||||
})
|
||||
export class PackageListComponent implements OnInit {
|
||||
|
@@ -30,7 +30,6 @@ import { AboutStatusListComponent } from '../about-status-list/about-status-list
|
||||
templateUrl: './about-repository-info.component.html',
|
||||
styleUrls: ['./about-repository-info.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, AboutLicenseListComponent, ModuleListComponent, AboutStatusListComponent]
|
||||
})
|
||||
export class AboutRepositoryInfoComponent implements OnInit {
|
||||
|
@@ -26,7 +26,6 @@ import { MatCardModule } from '@angular/material/card';
|
||||
templateUrl: './about-server-settings.component.html',
|
||||
styleUrls: ['./about-server-settings.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatCardModule]
|
||||
})
|
||||
export class AboutServerSettingsComponent implements OnInit {
|
||||
|
@@ -26,7 +26,6 @@ import { MatTableModule } from '@angular/material/table';
|
||||
templateUrl: './about-status-list.component.html',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatTableModule]
|
||||
})
|
||||
export class AboutStatusListComponent {
|
||||
|
@@ -25,7 +25,6 @@ import { MatExpansionModule } from '@angular/material/expansion';
|
||||
templateUrl: './about.component.html',
|
||||
styleUrls: ['about.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatExpansionModule]
|
||||
})
|
||||
export class AboutComponent {
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { APP_INITIALIZER, inject, ModuleWithProviders, NgModule, InjectionToken } from '@angular/core';
|
||||
import { inject, ModuleWithProviders, NgModule, InjectionToken, provideAppInitializer } from '@angular/core';
|
||||
import { AUTH_CONFIG, OAuthModule, OAuthStorage } from 'angular-oauth2-oidc';
|
||||
import { AuthenticationService } from '../services/authentication.service';
|
||||
import { AuthModuleConfig, AUTH_MODULE_CONFIG } from './auth-config';
|
||||
@@ -63,12 +63,10 @@ export function oauthStorageFactory(): OAuthStorage {
|
||||
},
|
||||
RedirectAuthService,
|
||||
{ provide: AuthService, useExisting: RedirectAuthService },
|
||||
{
|
||||
provide: APP_INITIALIZER,
|
||||
useFactory: loginFactory,
|
||||
deps: [RedirectAuthService],
|
||||
multi: true
|
||||
},
|
||||
provideAppInitializer(() => {
|
||||
const initializerFn = loginFactory(inject(RedirectAuthService));
|
||||
return initializerFn();
|
||||
}),
|
||||
{
|
||||
provide: HTTP_INTERCEPTORS,
|
||||
useClass: TokenInterceptor,
|
||||
|
@@ -19,7 +19,8 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
template: '<div data-automation-id="auth-confirmation"></div>',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
standalone: false
|
||||
})
|
||||
export class AuthenticationConfirmationComponent {
|
||||
constructor() {}
|
||||
|
@@ -20,7 +20,6 @@ import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-avatar',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
templateUrl: './avatar.component.html',
|
||||
styleUrls: ['./avatar.component.scss'],
|
||||
|
@@ -26,7 +26,6 @@ export type ButtonColor = ThemePalette;
|
||||
|
||||
@Component({
|
||||
selector: 'adf-button',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatButtonModule, MatIconModule],
|
||||
templateUrl: './button.component.html',
|
||||
styleUrls: ['./button.component.scss'],
|
||||
|
@@ -28,7 +28,6 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-card-view-arrayitem',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatChipsModule, TranslateModule, MatIconModule, MatMenuModule, MatCardModule, MatButtonModule],
|
||||
templateUrl: './card-view-arrayitem.component.html',
|
||||
styleUrls: ['./card-view-arrayitem.component.scss'],
|
||||
|
@@ -24,7 +24,6 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-card-view-boolitem',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatCheckboxModule, TranslateModule],
|
||||
templateUrl: './card-view-boolitem.component.html',
|
||||
styles: [
|
||||
|
@@ -50,7 +50,6 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
{ provide: DatetimeAdapter, useClass: AdfDateTimeFnsAdapter }
|
||||
],
|
||||
selector: 'adf-card-view-dateitem',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
|
@@ -29,7 +29,6 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-card-view-key-value-pairs-item',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatTableModule, MatInputModule, FormsModule, MatButtonModule, MatIconModule],
|
||||
templateUrl: './card-view-keyvaluepairsitem.component.html',
|
||||
styleUrls: ['./card-view-keyvaluepairsitem.component.scss'],
|
||||
|
@@ -23,7 +23,6 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-card-view-mapitem',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule],
|
||||
templateUrl: './card-view-mapitem.component.html',
|
||||
styleUrls: ['./card-view-mapitem.component.scss']
|
||||
|
@@ -34,7 +34,6 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-card-view-selectitem',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
|
@@ -15,18 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {
|
||||
Component,
|
||||
DestroyRef,
|
||||
ElementRef,
|
||||
EventEmitter,
|
||||
Inject,
|
||||
inject,
|
||||
OnInit,
|
||||
Output,
|
||||
ViewChild,
|
||||
ViewEncapsulation
|
||||
} from '@angular/core';
|
||||
import { Component, DestroyRef, ElementRef, EventEmitter, Inject, inject, OnInit, Output, ViewChild, ViewEncapsulation } from '@angular/core';
|
||||
import { MatSelect } from '@angular/material/select';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
@@ -39,7 +28,6 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-select-filter-input',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatFormFieldModule, MatInputModule, FormsModule, MatButtonModule, MatIconModule, TranslateModule],
|
||||
templateUrl: './select-filter-input.component.html',
|
||||
styleUrls: ['./select-filter-input.component.scss'],
|
||||
|
@@ -44,7 +44,6 @@ const templateTypes = {
|
||||
|
||||
@Component({
|
||||
selector: 'adf-card-view-textitem',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
MatFormFieldModule,
|
||||
|
@@ -23,7 +23,6 @@ import { CardViewItemDispatcherComponent } from '../card-view-item-dispatcher/ca
|
||||
|
||||
@Component({
|
||||
selector: 'adf-card-view',
|
||||
standalone: true,
|
||||
imports: [CommonModule, CardViewItemDispatcherComponent],
|
||||
templateUrl: './card-view.component.html',
|
||||
styleUrls: ['./card-view.component.scss'],
|
||||
|
@@ -31,7 +31,8 @@ import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
|
||||
<button mat-button clipboard-notification="copy success" [adf-clipboard] [target]="ref">copy</button>
|
||||
|
||||
<input #ref />
|
||||
`
|
||||
`,
|
||||
standalone: false
|
||||
})
|
||||
class TestTargetClipboardComponent {}
|
||||
|
||||
@@ -73,7 +74,8 @@ describe('ClipboardDirective', () => {
|
||||
describe('CopyClipboardDirective', () => {
|
||||
@Component({
|
||||
selector: 'adf-copy-conent-test-component',
|
||||
template: `<span adf-clipboard="placeholder">{{ mockText }}</span>`
|
||||
template: `<span adf-clipboard="placeholder">{{ mockText }}</span>`,
|
||||
standalone: false
|
||||
})
|
||||
class TestCopyClipboardComponent {
|
||||
mockText = 'text to copy';
|
||||
|
@@ -75,7 +75,6 @@ export class ClipboardDirective {
|
||||
|
||||
@Component({
|
||||
selector: 'adf-copy-content-tooltip',
|
||||
standalone: true,
|
||||
imports: [TranslateModule],
|
||||
template: `<span class="adf-copy-tooltip">{{ placeholder | translate }} </span>`,
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -27,7 +27,6 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-comment-list',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatListModule, MatLineModule, TimeAgoPipe, TranslateModule],
|
||||
templateUrl: './comment-list.component.html',
|
||||
styleUrls: ['./comment-list.component.scss'],
|
||||
|
@@ -25,7 +25,8 @@ import { LogService } from './log.service';
|
||||
|
||||
@Component({
|
||||
template: '',
|
||||
providers: [LogService]
|
||||
providers: [LogService],
|
||||
standalone: false
|
||||
})
|
||||
class ProvidesLogComponent {
|
||||
constructor(public logService: LogService) {}
|
||||
|
@@ -29,7 +29,6 @@ import { DOWN_ARROW, UP_ARROW } from '@angular/cdk/keycodes';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-context-menu',
|
||||
standalone: true,
|
||||
templateUrl: './context-menu-list.component.html',
|
||||
styleUrls: ['./context-menu-list.component.scss'],
|
||||
host: {
|
||||
|
@@ -25,7 +25,8 @@ import { UnitTestingUtils } from '../testing/unit-testing-utils';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-test-component',
|
||||
template: ` <div id="target" [adf-context-menu]="actions" [adf-context-menu-enabled]="isEnabled"></div> `
|
||||
template: ` <div id="target" [adf-context-menu]="actions" [adf-context-menu-enabled]="isEnabled"></div> `,
|
||||
standalone: false
|
||||
})
|
||||
class TestComponent {
|
||||
actions: any[] | (() => any[]);
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { APP_INITIALIZER, NgModule, ModuleWithProviders } from '@angular/core';
|
||||
import { NgModule, ModuleWithProviders, inject, provideAppInitializer } from '@angular/core';
|
||||
import { TranslateModule, TranslateLoader, TranslateStore, TranslateService } from '@ngx-translate/core';
|
||||
import { ABOUT_DIRECTIVES } from './about/about.module';
|
||||
import { CARD_VIEW_DIRECTIVES } from './card-view/card-view.module';
|
||||
@@ -137,12 +137,15 @@ export class CoreModule {
|
||||
{ provide: TranslateLoader, useClass: TranslateLoaderService },
|
||||
MomentDateAdapter,
|
||||
StoragePrefixFactory,
|
||||
{
|
||||
provide: APP_INITIALIZER,
|
||||
useFactory: loadAppConfig,
|
||||
deps: [AppConfigService, StorageService, AdfHttpClient, StoragePrefixFactory],
|
||||
multi: true
|
||||
},
|
||||
provideAppInitializer(() => {
|
||||
const initializerFn = loadAppConfig(
|
||||
inject(AppConfigService),
|
||||
inject(StorageService),
|
||||
inject(AdfHttpClient),
|
||||
inject(StoragePrefixFactory)
|
||||
);
|
||||
return initializerFn();
|
||||
}),
|
||||
{ provide: HTTP_INTERCEPTORS, useClass: AuthenticationInterceptor, multi: true },
|
||||
{ provide: Authentication, useClass: AuthenticationService },
|
||||
{
|
||||
|
@@ -21,7 +21,6 @@ import { CurrencyConfig } from '../../data/data-column.model';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
selector: 'adf-amount-cell',
|
||||
templateUrl: './amount-cell.component.html',
|
||||
|
@@ -21,7 +21,6 @@ import { CommonModule } from '@angular/common';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
selector: 'adf-boolean-cell',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
|
@@ -31,7 +31,6 @@ import { ColumnsSearchFilterPipe } from './columns-search-filter.pipe';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-datatable-column-selector',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
|
@@ -28,7 +28,6 @@ import { TruncatePipe } from '../../../pipes/truncate.pipe';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-datatable-cell',
|
||||
standalone: true,
|
||||
imports: [CommonModule, ClipboardDirective, TruncatePipe],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
template: `
|
||||
|
@@ -93,7 +93,6 @@ export enum ShowHeaderMode {
|
||||
|
||||
@Component({
|
||||
selector: 'adf-datatable',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
DataTableRowComponent,
|
||||
|
@@ -23,7 +23,6 @@ import { CommonModule } from '@angular/common';
|
||||
import { LocalizedDatePipe, TimeAgoPipe } from '../../../pipes';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [CommonModule, LocalizedDatePipe, TimeAgoPipe],
|
||||
selector: 'adf-date-cell',
|
||||
templateUrl: './date-cell.component.html',
|
||||
|
@@ -22,7 +22,6 @@ import { FileSizePipe } from '../../../pipes';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-filesize-cell',
|
||||
standalone: true,
|
||||
imports: [CommonModule, FileSizePipe],
|
||||
template: `
|
||||
<ng-container *ngIf="value$ | async | adfFileSize as fileSize">
|
||||
|
@@ -22,7 +22,6 @@ import { DataTableCellComponent } from '../datatable-cell/datatable-cell.compone
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatIconModule],
|
||||
selector: 'adf-icon-cell',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
|
@@ -24,7 +24,6 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-json-cell',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatButtonModule, MatDialogModule],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
template: `
|
||||
|
@@ -22,7 +22,6 @@ import { RouterModule } from '@angular/router';
|
||||
import { PathInfo } from '../../../models/path.model';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [AsyncPipe, RouterModule],
|
||||
selector: 'adf-location-cell',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
|
@@ -21,7 +21,6 @@ import { DecimalConfig } from '../../data/data-column.model';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
selector: 'adf-number-cell',
|
||||
templateUrl: './number-cell.component.html',
|
||||
|
@@ -33,7 +33,8 @@ export interface ConfirmDialogComponentProps {
|
||||
templateUrl: './confirm.dialog.html',
|
||||
styleUrls: ['./confirm.dialog.scss'],
|
||||
host: { class: 'adf-confirm-dialog' },
|
||||
encapsulation: ViewEncapsulation.None
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
standalone: false
|
||||
})
|
||||
export class ConfirmDialogComponent {
|
||||
title: string;
|
||||
|
@@ -25,7 +25,8 @@ import { Component, inject } from '@angular/core';
|
||||
import { Subject } from 'rxjs';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-dummy-component'
|
||||
selector: 'adf-dummy-component',
|
||||
standalone: false
|
||||
})
|
||||
class DummyComponent {
|
||||
data = inject(DIALOG_COMPONENT_DATA);
|
||||
|
@@ -29,7 +29,6 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
export const DIALOG_COMPONENT_DATA = new InjectionToken<any>('dialog component data');
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
selector: 'adf-dialog',
|
||||
templateUrl: './dialog.component.html',
|
||||
styleUrls: ['./dialog.component.scss'],
|
||||
|
@@ -21,9 +21,8 @@ import { EditJsonDialogComponent, EditJsonDialogSettings } from './edit-json.dia
|
||||
|
||||
@Component({
|
||||
selector: 'adf-edit-json-dialog-storybook',
|
||||
template: `<button mat-raised-button (click)="openDialog()">
|
||||
Open dialog
|
||||
</button>`
|
||||
template: `<button mat-raised-button (click)="openDialog()">Open dialog</button>`,
|
||||
standalone: false
|
||||
})
|
||||
export class EditJsonDialogStorybookComponent implements OnInit, OnChanges {
|
||||
@Input()
|
||||
|
@@ -28,7 +28,8 @@ export interface EditJsonDialogSettings {
|
||||
templateUrl: './edit-json.dialog.html',
|
||||
styleUrls: ['./edit-json.dialog.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
host: { class: 'adf-edit-json-dialog' }
|
||||
host: { class: 'adf-edit-json-dialog' },
|
||||
standalone: false
|
||||
})
|
||||
export class EditJsonDialogComponent implements OnInit {
|
||||
editable: boolean = false;
|
||||
|
@@ -36,7 +36,6 @@ import { AppConfigValues } from '../../app-config';
|
||||
* If data.descriptionText is provided, it will be displayed as dialog content.
|
||||
*/
|
||||
@Component({
|
||||
standalone: true,
|
||||
selector: 'adf-unsaved-changes-dialog',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
templateUrl: './unsaved-changes-dialog.component.html',
|
||||
|
@@ -24,7 +24,6 @@ import { UnitTestingUtils } from '../testing/unit-testing-utils';
|
||||
/* spellchecker: disable */
|
||||
@Component({
|
||||
selector: 'adf-test-component',
|
||||
standalone: true,
|
||||
imports: [HighlightDirective],
|
||||
template: ` <div id="outerDiv1" adf-highlight adf-highlight-selector=".highlightable" adf-highlight-class="highlight-for-free-willy">
|
||||
<div id="innerDiv11" class="highlightable">Lorem ipsum salana-eyong-aysis dolor sit amet</div>
|
||||
|
@@ -29,7 +29,8 @@ import { UnitTestingUtils } from '../testing/unit-testing-utils';
|
||||
<mat-option *ngFor="let option of options; let idx = index">
|
||||
{{ option.text }}
|
||||
</mat-option>
|
||||
</mat-select>`
|
||||
</mat-select>`,
|
||||
standalone: false
|
||||
})
|
||||
class TestComponent {
|
||||
options = new Array(50).fill({ text: 'dummy' });
|
||||
|
@@ -29,7 +29,6 @@ describe('LogoutDirective', () => {
|
||||
describe('No input', () => {
|
||||
@Component({
|
||||
selector: 'adf-test-component',
|
||||
standalone: true,
|
||||
imports: [LogoutDirective],
|
||||
template: '<button adf-logout></button>'
|
||||
})
|
||||
@@ -104,7 +103,6 @@ describe('LogoutDirective', () => {
|
||||
describe('redirectUri', () => {
|
||||
@Component({
|
||||
selector: 'adf-test-component',
|
||||
standalone: true,
|
||||
imports: [LogoutDirective],
|
||||
template: '<button adf-logout redirectUri="/myCustomUri"></button>'
|
||||
})
|
||||
@@ -143,7 +141,6 @@ describe('LogoutDirective', () => {
|
||||
describe('enableRedirect', () => {
|
||||
@Component({
|
||||
selector: 'adf-test-component',
|
||||
standalone: true,
|
||||
imports: [LogoutDirective],
|
||||
template: '<button adf-logout [enableRedirect]="false"></button>'
|
||||
})
|
||||
|
@@ -22,7 +22,6 @@ import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-tooltip-card-component',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
templateUrl: './tooltip-card.component.html',
|
||||
styleUrls: ['./tooltip-card.component.scss'],
|
||||
|
@@ -34,7 +34,8 @@ const IMAGE_URL = 'alfresco-logo.svg';
|
||||
[width]="'400'"
|
||||
[htmlContent]="'this is the <b>html</b> raw code'"
|
||||
class="test-component"
|
||||
></span>`
|
||||
></span>`,
|
||||
standalone: false
|
||||
})
|
||||
class TestComponent {
|
||||
@ViewChild(TooltipCardDirective, { static: true })
|
||||
|
@@ -45,7 +45,6 @@ import { Chip } from './chip';
|
||||
*/
|
||||
@Component({
|
||||
selector: 'adf-dynamic-chip-list',
|
||||
standalone: true,
|
||||
templateUrl: './dynamic-chip-list.component.html',
|
||||
styleUrls: ['./dynamic-chip-list.component.scss'],
|
||||
imports: [MatChipsModule, TranslateModule, NgForOf, MatIconModule, NgIf, MatButtonModule],
|
||||
|
@@ -41,7 +41,6 @@ declare const adf: any;
|
||||
|
||||
@Component({
|
||||
selector: 'adf-form-field',
|
||||
standalone: true,
|
||||
templateUrl: './form-field.component.html',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
imports: [FieldStylePipe]
|
||||
|
@@ -32,7 +32,6 @@ import { FormSectionComponent } from './form-section/form-section.component';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-form-renderer',
|
||||
standalone: true,
|
||||
templateUrl: './form-renderer.component.html',
|
||||
styleUrls: ['./form-renderer.component.scss'],
|
||||
providers: [
|
||||
|
@@ -23,7 +23,6 @@ import { MatInputModule } from '@angular/material/input';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-inplace-form-input',
|
||||
standalone: true,
|
||||
templateUrl: './inplace-form-input.component.html',
|
||||
styleUrls: ['./inplace-form-input.component.scss'],
|
||||
imports: [MatFormFieldModule, ReactiveFormsModule, MatInputModule, NgClass],
|
||||
|
@@ -35,7 +35,6 @@ export const ADF_AMOUNT_SETTINGS = new InjectionToken<AmountWidgetSettings>('adf
|
||||
|
||||
@Component({
|
||||
selector: 'amount-widget',
|
||||
standalone: true,
|
||||
templateUrl: './amount.widget.html',
|
||||
styleUrls: ['./amount.widget.scss'],
|
||||
host: {
|
||||
|
@@ -27,7 +27,6 @@ import { WidgetComponent } from '../widget.component';
|
||||
|
||||
@Component({
|
||||
selector: 'base-viewer-widget',
|
||||
standalone: true,
|
||||
templateUrl: './base-viewer.widget.html',
|
||||
styleUrls: ['./base-viewer.widget.scss'],
|
||||
host: {
|
||||
|
@@ -28,7 +28,6 @@ import { WidgetComponent } from '../widget.component';
|
||||
|
||||
@Component({
|
||||
selector: 'checkbox-widget',
|
||||
standalone: true,
|
||||
templateUrl: './checkbox.widget.html',
|
||||
styles: [
|
||||
`
|
||||
|
@@ -35,7 +35,6 @@ import { ReactiveFormWidget } from '../reactive-widget.interface';
|
||||
|
||||
@Component({
|
||||
selector: 'date-time-widget',
|
||||
standalone: true,
|
||||
providers: [
|
||||
{ provide: MAT_DATE_FORMATS, useValue: ADF_DATE_FORMATS },
|
||||
{ provide: MAT_DATETIME_FORMATS, useValue: ADF_DATETIME_FORMATS },
|
||||
|
@@ -36,7 +36,6 @@ import { ReactiveFormWidget } from '../reactive-widget.interface';
|
||||
|
||||
@Component({
|
||||
selector: 'date-widget',
|
||||
standalone: true,
|
||||
providers: [
|
||||
{ provide: MAT_DATE_FORMATS, useValue: ADF_DATE_FORMATS },
|
||||
{ provide: DateAdapter, useClass: AdfDateFnsAdapter }
|
||||
|
@@ -27,7 +27,6 @@ import { WidgetComponent } from '../widget.component';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-decimal',
|
||||
standalone: true,
|
||||
templateUrl: './decimal.component.html',
|
||||
styleUrls: ['./decimal.component.scss'],
|
||||
host: {
|
||||
|
@@ -24,7 +24,6 @@ import { WidgetComponent } from '../widget.component';
|
||||
|
||||
@Component({
|
||||
selector: 'display-text-widget',
|
||||
standalone: true,
|
||||
templateUrl: './display-text.widget.html',
|
||||
styleUrls: ['./display-text.widget.scss'],
|
||||
host: {
|
||||
|
@@ -28,7 +28,6 @@ import { WidgetComponent } from '../widget.component';
|
||||
|
||||
@Component({
|
||||
selector: 'error-widget',
|
||||
standalone: true,
|
||||
templateUrl: './error.component.html',
|
||||
styleUrls: ['./error.component.scss'],
|
||||
animations: [
|
||||
|
@@ -27,7 +27,6 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
selector: 'adf-header-widget',
|
||||
templateUrl: './header.widget.html',
|
||||
styleUrls: ['./header.widget.scss'],
|
||||
standalone: true,
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
imports: [FieldStylePipe, MatIconModule, MatButtonModule, TranslateModule, NgIf, NgTemplateOutlet]
|
||||
})
|
||||
|
@@ -26,7 +26,6 @@ import { WidgetComponent } from '../widget.component';
|
||||
|
||||
@Component({
|
||||
selector: 'hyperlink-widget',
|
||||
standalone: true,
|
||||
templateUrl: './hyperlink.widget.html',
|
||||
styleUrls: ['./hyperlink.widget.scss'],
|
||||
host: {
|
||||
|
@@ -25,7 +25,6 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
templateUrl: './json.widget.html',
|
||||
styleUrls: ['./json.widget.scss'],
|
||||
host: {
|
||||
|
@@ -29,7 +29,6 @@ import { WidgetComponent } from '../widget.component';
|
||||
|
||||
@Component({
|
||||
selector: 'multiline-text-widget',
|
||||
standalone: true,
|
||||
templateUrl: './multiline-text.widget.html',
|
||||
styleUrls: ['./multiline-text.widget.scss'],
|
||||
host: {
|
||||
|
@@ -30,7 +30,6 @@ import { WidgetComponent } from '../widget.component';
|
||||
|
||||
@Component({
|
||||
selector: 'number-widget',
|
||||
standalone: true,
|
||||
templateUrl: './number.widget.html',
|
||||
styleUrls: ['./number.widget.scss'],
|
||||
host: {
|
||||
|
@@ -30,7 +30,6 @@ import { InputMaskDirective } from './text-mask.component';
|
||||
|
||||
@Component({
|
||||
selector: 'text-widget',
|
||||
standalone: true,
|
||||
templateUrl: './text.widget.html',
|
||||
styleUrls: ['./text.widget.scss'],
|
||||
host: {
|
||||
|
@@ -25,7 +25,6 @@ import { WidgetComponent } from '../widget.component';
|
||||
|
||||
@Component({
|
||||
selector: 'unknown-widget',
|
||||
standalone: true,
|
||||
template: `
|
||||
<mat-list class="adf-unknown-widget">
|
||||
<mat-list-item>
|
||||
|
@@ -26,7 +26,6 @@ export type HeaderVariant = 'minimal' | 'extended';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-header',
|
||||
standalone: true,
|
||||
imports: [CommonModule, ...TOOLBAR_DIRECTIVES, NavbarComponent],
|
||||
templateUrl: './header.component.html',
|
||||
styleUrls: ['./header.component.scss'],
|
||||
|
@@ -27,7 +27,6 @@ export interface NavbarItem {
|
||||
|
||||
@Component({
|
||||
selector: 'adf-navbar-item',
|
||||
standalone: true,
|
||||
templateUrl: 'navbar-item.component.html',
|
||||
styleUrls: ['./navbar-item.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
|
@@ -22,7 +22,6 @@ import { NavbarItem, NavbarItemComponent } from './navbar-item.component';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-navbar',
|
||||
standalone: true,
|
||||
templateUrl: './navbar.component.html',
|
||||
styleUrls: ['./navbar.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
|
@@ -22,7 +22,6 @@ import { NgIf } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-icon',
|
||||
standalone: true,
|
||||
imports: [MatIconModule, NgIf],
|
||||
templateUrl: './icon.component.html',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
|
@@ -26,7 +26,6 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-identity-user-info',
|
||||
standalone: true,
|
||||
imports: [CommonModule, FullNamePipe, MatMenuModule, InitialUsernamePipe, MatButtonModule, MatCardModule, TranslateModule],
|
||||
templateUrl: './identity-user-info.component.html',
|
||||
styleUrls: ['./identity-user-info.component.scss'],
|
||||
|
@@ -20,7 +20,6 @@ import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-info-drawer-layout',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
templateUrl: './info-drawer-layout.component.html',
|
||||
styleUrls: ['./info-drawer-layout.component.scss'],
|
||||
|
@@ -81,7 +81,6 @@ describe('InfoDrawerComponent', () => {
|
||||
});
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [InfoDrawerTabComponent, InfoDrawerComponent],
|
||||
template: `
|
||||
<adf-info-drawer [selectedIndex]="tabIndex" [icon]="icon" title="Fake Title Custom">
|
||||
@@ -159,7 +158,6 @@ describe('Custom InfoDrawer', () => {
|
||||
});
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [InfoDrawerComponent],
|
||||
template: ` <adf-info-drawer [showHeader]="showHeader" [icon]="icon" title="Fake Visibility Info Drawer Title" /> `
|
||||
})
|
||||
|
@@ -58,7 +58,6 @@ export class InfoDrawerTabComponent {
|
||||
|
||||
@Component({
|
||||
selector: 'adf-info-drawer',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
InfoDrawerLayoutComponent,
|
||||
|
@@ -24,7 +24,6 @@ import { MatMenuItem, MatMenuModule } from '@angular/material/menu';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-language-menu',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatMenuModule],
|
||||
template: `
|
||||
<button mat-menu-item *ngFor="let language of languages$ | async" [attr.lang]="language.key" (click)="changeLanguage(language)">
|
||||
|
@@ -25,7 +25,6 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-picker-button',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatMenuModule, TranslateModule, LanguageMenuComponent, MatIconModule],
|
||||
template: `
|
||||
<button mat-menu-item [matMenuTriggerFor]="langMenu">
|
||||
|
@@ -238,7 +238,6 @@ describe('HeaderLayoutComponent', () => {
|
||||
describe('Template transclusion', () => {
|
||||
@Component({
|
||||
selector: 'adf-test-layout-header',
|
||||
standalone: true,
|
||||
imports: [HeaderLayoutComponent],
|
||||
template: ` <adf-layout-header title="test" color="primary">
|
||||
<p>Test text</p>
|
||||
|
@@ -27,7 +27,6 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-layout-header',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatToolbarModule, MatButtonModule, MatIconModule, RouterModule, TranslateModule],
|
||||
templateUrl: './header.component.html',
|
||||
styleUrls: ['./header.component.scss'],
|
||||
|
@@ -23,7 +23,6 @@ import { animate, state, style, transition, trigger } from '@angular/animations'
|
||||
|
||||
@Component({
|
||||
selector: 'adf-layout-container',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatSidenavModule],
|
||||
templateUrl: './layout-container.component.html',
|
||||
styleUrls: ['./layout-container.component.scss'],
|
||||
|
@@ -53,7 +53,6 @@ describe('SidebarActionMenuComponent', () => {
|
||||
});
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [CommonModule, SidebarActionMenuComponent, MatIconModule, MatMenuModule],
|
||||
// eslint-disable-next-line @alfresco/eslint-angular/no-angular-material-selectors
|
||||
template: `
|
||||
|
@@ -22,7 +22,6 @@ import { MatMenuModule } from '@angular/material/menu';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-sidebar-action-menu',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatButtonModule, MatMenuModule],
|
||||
templateUrl: './sidebar-action-menu.component.html',
|
||||
styleUrls: ['./sidebar-action-menu.component.scss'],
|
||||
|
@@ -30,7 +30,6 @@ import { UnitTestingUtils } from '../../../testing/unit-testing-utils';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-test-component-for-sidenav',
|
||||
standalone: true,
|
||||
imports: [SidenavLayoutComponent, SidenavLayoutHeaderDirective, SidenavLayoutNavigationDirective, SidenavLayoutContentDirective],
|
||||
template: ` <adf-sidenav-layout [sidenavMin]="70" [sidenavMax]="320" [stepOver]="600" [hideSidenav]="false">
|
||||
<adf-sidenav-layout-header>
|
||||
|
@@ -44,7 +44,6 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-sidenav-layout',
|
||||
standalone: true,
|
||||
imports: [CommonModule, LayoutContainerComponent],
|
||||
templateUrl: './sidenav-layout.component.html',
|
||||
styleUrls: ['./sidenav-layout.component.scss'],
|
||||
|
@@ -23,7 +23,6 @@ import { LoginComponent } from '../login/login.component';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-login-dialog-panel',
|
||||
standalone: true,
|
||||
templateUrl: './login-dialog-panel.component.html',
|
||||
styleUrls: ['./login-dialog-panel.component.scss'],
|
||||
imports: [LoginComponent, LoginHeaderDirective, LoginFooterDirective],
|
||||
|
@@ -24,7 +24,6 @@ import { LoginDialogComponentData } from './login-dialog-component-data.interfac
|
||||
|
||||
@Component({
|
||||
selector: 'adf-login-dialog',
|
||||
standalone: true,
|
||||
templateUrl: './login-dialog.component.html',
|
||||
styleUrls: ['./login-dialog.component.scss'],
|
||||
imports: [MatDialogModule, LoginDialogPanelComponent, TranslateModule, MatButtonModule],
|
||||
|
@@ -24,12 +24,8 @@ import { LoginDialogComponentData } from './login-dialog-component-data.interfac
|
||||
|
||||
@Component({
|
||||
selector: 'adf-login-dialog-storybook',
|
||||
standalone: true,
|
||||
imports: [MatButtonModule],
|
||||
template: `
|
||||
<button mat-raised-button (click)="openLoginDialog()">
|
||||
Open dialog
|
||||
</button>`
|
||||
template: ` <button mat-raised-button (click)="openLoginDialog()">Open dialog</button>`
|
||||
})
|
||||
export class LoginDialogStorybookComponent {
|
||||
@Output() executeSubmit = new EventEmitter<string>();
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user