From a9442368b6d9079725f12c9deb5553de3cc87cad Mon Sep 17 00:00:00 2001 From: Vito Albano Date: Mon, 13 Nov 2023 19:02:58 +0000 Subject: [PATCH] Removed double quotes --- .../search-properties.component.scss | 1 - .../src/_stories/demo-breadcrumb.component.ts | 4 ++-- .../breadcrumb-item/breadcrumb-item.component.ts | 4 ++-- .../components/breadcrumb/breadcrumb.component.ts | 4 ++-- .../src/directives/breadcrumb-focus.directive.ts | 6 +++--- .../src/lib/components/shell/shell.component.ts | 6 +++--- .../about-extension-list.component.ts | 6 +++--- .../about-github-link.component.ts | 4 ++-- .../about-license-list.component.ts | 6 +++--- .../about-module-list/module-list.component.ts | 6 +++--- .../about/about-package/package-list.component.ts | 4 ++-- lib/core/src/lib/about/about-panel.directive.ts | 2 +- .../about-platform-version.component.ts | 4 ++-- .../about-repository-info.component.ts | 2 +- .../about-server-settings.component.ts | 2 +- .../about-status-list.component.ts | 6 +++--- lib/core/src/lib/about/about.component.ts | 4 ++-- .../lib/auth/guard/auth-guard-bpm.service.spec.ts | 2 +- .../lib/auth/guard/auth-guard-ecm.service.spec.ts | 2 +- .../src/lib/auth/oidc/auth-config.service.spec.ts | 10 +++++----- .../authentication-confirmation.component.ts | 4 ++-- .../src/lib/blank-page/blank-page.component.ts | 4 ++-- .../buttons-menu/buttons-menu.component.spec.ts | 8 ++++---- .../buttons-menu/buttons-menu.component.stories.ts | 6 +++--- .../src/lib/buttons-menu/buttons-menu.component.ts | 4 ++-- .../card-view-arrayitem.component.spec.ts | 4 ++-- .../card-view-arrayitem.component.ts | 4 ++-- .../card-view-boolitem.component.ts | 2 +- .../card-view-dateitem.component.ts | 6 +++--- .../card-view-item-dispatcher.component.spec.ts | 4 ++-- .../card-view-item-dispatcher.component.ts | 4 ++-- .../card-view-keyvaluepairsitem.component.ts | 6 +++--- .../card-view-mapitem.component.ts | 2 +- .../card-view-selectitem.component.ts | 6 +++--- .../select-filter-input.component.ts | 6 +++--- .../card-view-textitem.component.ts | 6 +++--- .../components/card-view/card-view.component.ts | 4 ++-- .../card-view-content-proxy.directive.ts | 2 +- .../src/lib/clipboard/clipboard.directive.spec.ts | 8 ++++---- lib/core/src/lib/clipboard/clipboard.directive.ts | 8 ++++---- .../comment-list/comment-list.component.ts | 4 ++-- lib/core/src/lib/comments/comments.component.ts | 4 ++-- .../src/lib/common/services/log.service.spec.ts | 2 +- .../context-menu/context-menu-list.component.ts | 8 ++++---- .../src/lib/context-menu/context-menu.directive.ts | 2 +- lib/core/src/lib/context-menu/context-menu.spec.ts | 4 ++-- .../amount-cell/amount-cell.component.ts | 8 ++++---- .../boolean-cell/boolean-cell.component.ts | 10 +++++----- .../columns-selector/columns-selector.component.ts | 4 ++-- .../datatable-cell/datatable-cell.component.ts | 10 +++++----- .../datatable-row/datatable-row.component.ts | 8 ++++---- .../datatable/datatable.component.spec.ts | 10 +++++----- .../datatable/datatable.component.stories.ts | 14 +++++++------- .../components/datatable/datatable.component.ts | 6 +++--- .../components/date-cell/date-cell.component.ts | 6 +++--- .../components/empty-list/empty-list.component.ts | 10 +++++----- .../filesize-cell/filesize-cell.component.ts | 8 ++++---- .../components/json-cell/json-cell.component.ts | 10 +++++----- .../location-cell/location-cell.component.ts | 10 +++++----- .../number-cell/number-cell.component.ts | 8 ++++---- .../data-column/data-column-header.component.ts | 4 ++-- .../data-column/data-column-list.component.ts | 4 ++-- .../data-column/data-column.component.stories.ts | 6 +++--- .../datatable/data-column/data-column.component.ts | 4 ++-- .../custom-empty-content-template.directive.ts | 2 +- .../custom-loading-template.directive.ts | 2 +- .../custom-no-permission-template.directive.ts | 2 +- .../datatable/directives/drop-zone.directive.ts | 2 +- .../directives/header-filter-template.directive.ts | 2 +- .../directives/loading-template.directive.ts | 2 +- .../main-data-table-action-template.directive.ts | 2 +- .../directives/no-content-template.directive.ts | 2 +- .../directives/no-permission-template.directive.ts | 2 +- .../directives/resizable/resizable.directive.ts | 2 +- .../resizable/resize-handle.directive.ts | 2 +- .../edit-json.dialog.stories.component.ts | 4 ++-- .../src/lib/dialogs/edit-json/edit-json.dialog.ts | 4 ++-- .../src/lib/directives/highlight.directive.spec.ts | 2 +- lib/core/src/lib/directives/highlight.directive.ts | 2 +- .../infinite-select-scroll.directive.spec.ts | 2 +- .../directives/infinite-select-scroll.directive.ts | 2 +- .../src/lib/directives/logout.directive.spec.ts | 12 ++++++------ lib/core/src/lib/directives/logout.directive.ts | 2 +- .../tooltip-card/tooltip-card.component.ts | 2 +- .../tooltip-card/tooltip-card.directive.spec.ts | 2 +- .../tooltip-card/tooltip-card.directive.ts | 2 +- lib/core/src/lib/directives/upload.directive.ts | 2 +- .../components/form-custom-button.directive.ts | 2 +- .../components/form-field/form-field.component.ts | 8 ++++---- .../lib/form/components/form-renderer.component.ts | 4 ++-- .../inplace-form-input.component.ts | 4 ++-- .../components/widgets/amount/amount.widget.ts | 6 +++--- .../widgets/base-viewer/base-viewer.widget.ts | 6 +++--- .../components/widgets/checkbox/checkbox.widget.ts | 6 +++--- .../widgets/date-time/date-time.widget.ts | 4 ++-- .../form/components/widgets/date/date.widget.ts | 6 +++--- .../widgets/display-text/display-text.widget.ts | 6 +++--- .../components/widgets/error/error.component.ts | 6 +++--- .../widgets/hyperlink/hyperlink.widget.ts | 6 +++--- .../form/components/widgets/json/json.widget.ts | 6 +++--- .../multiline-text/multiline-text.widget.ts | 6 +++--- .../components/widgets/number/number.widget.ts | 6 +++--- .../components/widgets/text/text-mask.component.ts | 2 +- .../form/components/widgets/text/text.widget.ts | 6 +++--- .../components/widgets/unknown/unknown.widget.ts | 8 ++++---- .../form/components/widgets/widget.component.ts | 8 ++++---- lib/core/src/lib/icon/icon.component.ts | 8 ++++---- .../identity-user-info.component.ts | 4 ++-- .../info-drawer/info-drawer-layout.component.ts | 12 ++++++------ .../lib/info-drawer/info-drawer.component.spec.ts | 4 ++-- .../info-drawer/info-drawer.component.stories.ts | 4 ++-- .../src/lib/info-drawer/info-drawer.component.ts | 12 ++++++------ .../lib/language-menu/language-menu.component.ts | 4 ++-- .../lib/language-menu/language-picker.component.ts | 4 ++-- .../components/header/header.component.spec.ts | 4 ++-- .../layout/components/header/header.component.ts | 6 +++--- .../layout-container/layout-container.component.ts | 4 ++-- .../sidebar-action-menu.component.spec.ts | 2 +- .../sidebar-action-menu.component.ts | 14 +++++++------- .../sidenav-layout.component.spec.ts | 8 ++++---- .../sidenav-layout.component.stories.ts | 2 +- .../sidenav-layout/sidenav-layout.component.ts | 6 +++--- .../directives/sidenav-layout-content.directive.ts | 2 +- .../directives/sidenav-layout-header.directive.ts | 2 +- .../sidenav-layout-navigation.directive.ts | 2 +- .../components/login-dialog-panel.component.ts | 4 ++-- .../lib/login/components/login-dialog.component.ts | 4 ++-- .../components/login-dialog.stories.component.ts | 4 ++-- .../src/lib/login/components/login.component.ts | 6 +++--- .../lib/login/directives/login-footer.directive.ts | 2 +- .../lib/login/directives/login-header.directive.ts | 2 +- lib/core/src/lib/mock/data-column.mock.ts | 2 +- .../add-notification.stories.component.ts | 4 ++-- .../notification-history.component.stories.ts | 2 +- .../components/notification-history.component.ts | 4 ++-- .../services/notification.service.spec.ts | 2 +- .../infinite-pagination.component.spec.ts | 2 +- .../pagination/infinite-pagination.component.ts | 8 ++++---- .../src/lib/pagination/pagination.component.ts | 8 ++++---- .../lib/search-text/search-text-input.component.ts | 6 +++--- .../lib/search-text/search-trigger.directive.ts | 4 ++-- .../snackbar-content/snackbar-content.component.ts | 4 ++-- .../lib/sorting-picker/sorting-picker.component.ts | 6 +++--- .../empty-content/empty-content.component.spec.ts | 4 ++-- .../empty-content.component.stories.ts | 2 +- .../empty-content/empty-content.component.ts | 8 ++++---- .../error-content.component.stories.ts | 2 +- .../error-content/error-content.component.ts | 8 ++++---- .../src/lib/toolbar/toolbar-divider.component.ts | 10 +++++----- .../src/lib/toolbar/toolbar-title.component.ts | 6 +++--- .../src/lib/toolbar/toolbar.component.stories.ts | 2 +- lib/core/src/lib/toolbar/toolbar.component.ts | 8 ++++---- .../download-prompt-dialog.component.ts | 2 +- .../lib/viewer/components/img-viewer.component.ts | 6 +++--- .../viewer/components/media-player.component.ts | 6 +++--- ...viewer-container-more-actions.component.mock.ts | 4 ++-- ...df-viewer-container-open-with.component.mock.ts | 4 ++-- .../adf-viewer-container-sidebar.component.mock.ts | 4 ++-- ...wer-container-toolbar-actions.component.mock.ts | 4 ++-- .../adf-viewer-container-toolbar.component.mock.ts | 4 ++-- .../components/pdf-viewer-password-dialog.ts | 4 ++-- .../components/pdf-viewer-thumb.component.ts | 6 +++--- .../components/pdf-viewer-thumbnails.component.ts | 6 +++--- .../viewer/components/pdf-viewer.component.spec.ts | 10 +++++----- .../lib/viewer/components/pdf-viewer.component.ts | 6 +++--- .../lib/viewer/components/txt-viewer.component.ts | 6 +++--- .../unknown-format/unknown-format.component.ts | 4 ++-- .../components/viewer-more-actions.component.ts | 10 +++++----- .../components/viewer-open-with.component.ts | 10 +++++----- .../components/viewer-render.component.spec.ts | 4 ++-- .../viewer/components/viewer-render.component.ts | 6 +++--- .../viewer/components/viewer-sidebar.component.ts | 10 +++++----- .../components/viewer-toolbar-actions.component.ts | 10 +++++----- .../viewer-toolbar-custom-actions.component.ts | 10 +++++----- .../viewer/components/viewer-toolbar.component.ts | 10 +++++----- .../lib/viewer/components/viewer.component.spec.ts | 4 ++-- .../src/lib/viewer/components/viewer.component.ts | 6 +++--- .../directives/viewer-extension.directive.spec.ts | 2 +- .../directives/viewer-extension.directive.ts | 4 ++-- 179 files changed, 451 insertions(+), 452 deletions(-) diff --git a/lib/content-services/src/lib/search/components/search-properties/search-properties.component.scss b/lib/content-services/src/lib/search/components/search-properties/search-properties.component.scss index 19e4f9956b..4aae5fc11a 100644 --- a/lib/content-services/src/lib/search/components/search-properties/search-properties.component.scss +++ b/lib/content-services/src/lib/search/components/search-properties/search-properties.component.scss @@ -18,7 +18,6 @@ adf-search-properties { .adf-search-properties-file-size-operator, .adf-search-properties-file-size-unit { - .mat-mdc-form-field-infix { border: 1px solid var(--adf-theme-mat-grey-color-a400); border-radius: 5px; diff --git a/lib/core/breadcrumbs/src/_stories/demo-breadcrumb.component.ts b/lib/core/breadcrumbs/src/_stories/demo-breadcrumb.component.ts index 5c3d983de6..14a03c8f93 100644 --- a/lib/core/breadcrumbs/src/_stories/demo-breadcrumb.component.ts +++ b/lib/core/breadcrumbs/src/_stories/demo-breadcrumb.component.ts @@ -18,8 +18,8 @@ import {Component} from '@angular/core'; @Component({ - "selector": 'adf-demo-breadcrumb', - "template": ` + selector: 'adf-demo-breadcrumb', + template: ` Home diff --git a/lib/core/breadcrumbs/src/components/breadcrumb-item/breadcrumb-item.component.ts b/lib/core/breadcrumbs/src/components/breadcrumb-item/breadcrumb-item.component.ts index a3ea639450..83194000ba 100644 --- a/lib/core/breadcrumbs/src/components/breadcrumb-item/breadcrumb-item.component.ts +++ b/lib/core/breadcrumbs/src/components/breadcrumb-item/breadcrumb-item.component.ts @@ -19,8 +19,8 @@ import { Component, TemplateRef, ViewChild } from '@angular/core'; @Component({ "standalone": true, - "selector": 'adf-breadcrumb-item', - "template": ` + selector: 'adf-breadcrumb-item', + template: ` diff --git a/lib/core/breadcrumbs/src/components/breadcrumb/breadcrumb.component.ts b/lib/core/breadcrumbs/src/components/breadcrumb/breadcrumb.component.ts index 61ab5f7157..848da85148 100644 --- a/lib/core/breadcrumbs/src/components/breadcrumb/breadcrumb.component.ts +++ b/lib/core/breadcrumbs/src/components/breadcrumb/breadcrumb.component.ts @@ -28,10 +28,10 @@ import { BreadcrumbItemComponent } from '../breadcrumb-item/breadcrumb-item.comp @Component({ "standalone": true, - "selector": 'adf-breadcrumb', + selector: 'adf-breadcrumb', "templateUrl": './breadcrumb.component.html', "styleUrls": ['./breadcrumb.component.scss'], - "changeDetection": ChangeDetectionStrategy.OnPush, + changeDetection: ChangeDetectionStrategy.OnPush, "imports": [ CommonModule, MatIconModule, TranslateModule, MatButtonModule, MatTooltipModule ] }) export class BreadcrumbComponent implements AfterContentInit, OnChanges { diff --git a/lib/core/breadcrumbs/src/directives/breadcrumb-focus.directive.ts b/lib/core/breadcrumbs/src/directives/breadcrumb-focus.directive.ts index cef1b503ed..f8df578421 100644 --- a/lib/core/breadcrumbs/src/directives/breadcrumb-focus.directive.ts +++ b/lib/core/breadcrumbs/src/directives/breadcrumb-focus.directive.ts @@ -19,9 +19,9 @@ import { Directive, ElementRef } from '@angular/core'; /** @internal */ @Directive({ - "standalone": true, - "selector": '[adf-breadcrumb-focus]', - "host": { + standalone: true, + selector: '[adf-breadcrumb-focus]', + host: { "class": 'adf-breadcrumb-focus' } }) diff --git a/lib/core/shell/src/lib/components/shell/shell.component.ts b/lib/core/shell/src/lib/components/shell/shell.component.ts index 8aea579e97..95cdf03763 100644 --- a/lib/core/shell/src/lib/components/shell/shell.component.ts +++ b/lib/core/shell/src/lib/components/shell/shell.component.ts @@ -25,11 +25,11 @@ import { Directionality } from '@angular/cdk/bidi'; import { SHELL_APP_SERVICE, ShellAppService, SHELL_NAVBAR_MIN_WIDTH, SHELL_NAVBAR_MAX_WIDTH } from '../../services/shell-app.service'; @Component({ - "selector": 'app-shell', + selector: 'app-shell', "templateUrl": './shell.component.html', "styleUrls": ['./shell.component.scss'], - "encapsulation": ViewEncapsulation.None, - "host": { "class": 'app-shell' } + encapsulation: ViewEncapsulation.None, + host: { "class": 'app-shell' } }) export class ShellLayoutComponent implements OnInit, OnDestroy { @ViewChild('layout', { "static": true }) diff --git a/lib/core/src/lib/about/about-extension-list/about-extension-list.component.ts b/lib/core/src/lib/about/about-extension-list/about-extension-list.component.ts index 41d2e41d4b..960cdb33af 100644 --- a/lib/core/src/lib/about/about-extension-list/about-extension-list.component.ts +++ b/lib/core/src/lib/about/about-extension-list/about-extension-list.component.ts @@ -19,10 +19,10 @@ import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@a import { ExtensionRef } from '@alfresco/adf-extensions'; @Component({ - "selector": 'adf-about-extension-list', + selector: 'adf-about-extension-list', "templateUrl": './about-extension-list.component.html', - "encapsulation": ViewEncapsulation.None, - "changeDetection": ChangeDetectionStrategy.OnPush + encapsulation: ViewEncapsulation.None, + changeDetection: ChangeDetectionStrategy.OnPush }) export class AboutExtensionListComponent { columns = [ diff --git a/lib/core/src/lib/about/about-github-link/about-github-link.component.ts b/lib/core/src/lib/about/about-github-link/about-github-link.component.ts index b60512a92e..9496aaad01 100644 --- a/lib/core/src/lib/about/about-github-link/about-github-link.component.ts +++ b/lib/core/src/lib/about/about-github-link/about-github-link.component.ts @@ -18,9 +18,9 @@ import { Component, Input, ViewEncapsulation } from '@angular/core'; @Component({ - "selector": 'adf-about-github-link', + selector: 'adf-about-github-link', "templateUrl": './about-github-link.component.html', - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class AboutGithubLinkComponent { /** Commit corresponding to the version of ADF to be used. */ diff --git a/lib/core/src/lib/about/about-license-list/about-license-list.component.ts b/lib/core/src/lib/about/about-license-list/about-license-list.component.ts index 1b2977ae2f..504a4adf9e 100644 --- a/lib/core/src/lib/about/about-license-list/about-license-list.component.ts +++ b/lib/core/src/lib/about/about-license-list/about-license-list.component.ts @@ -19,11 +19,11 @@ import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@a import { LicenseData } from '../interfaces'; @Component({ - "selector": 'adf-about-license-list', + selector: 'adf-about-license-list', "templateUrl": './about-license-list.component.html', "styleUrls": ['./about-license-list.component.scss'], - "encapsulation": ViewEncapsulation.None, - "changeDetection": ChangeDetectionStrategy.OnPush + encapsulation: ViewEncapsulation.None, + changeDetection: ChangeDetectionStrategy.OnPush }) export class AboutLicenseListComponent { columns = [ diff --git a/lib/core/src/lib/about/about-module-list/module-list.component.ts b/lib/core/src/lib/about/about-module-list/module-list.component.ts index 8f84f57be3..774756704b 100644 --- a/lib/core/src/lib/about/about-module-list/module-list.component.ts +++ b/lib/core/src/lib/about/about-module-list/module-list.component.ts @@ -23,10 +23,10 @@ interface ModuleInfo { } @Component({ - "selector": 'adf-about-module-list', + selector: 'adf-about-module-list', "templateUrl": './module-list.component.html', - "encapsulation": ViewEncapsulation.None, - "changeDetection": ChangeDetectionStrategy.OnPush + encapsulation: ViewEncapsulation.None, + changeDetection: ChangeDetectionStrategy.OnPush }) export class ModuleListComponent { columns = [ diff --git a/lib/core/src/lib/about/about-package/package-list.component.ts b/lib/core/src/lib/about/about-package/package-list.component.ts index dc280381a4..5791cd5e76 100644 --- a/lib/core/src/lib/about/about-package/package-list.component.ts +++ b/lib/core/src/lib/about/about-package/package-list.component.ts @@ -19,10 +19,10 @@ import { Component, ChangeDetectionStrategy, Input, OnInit } from '@angular/core import { PackageInfo } from '../interfaces'; @Component({ - "selector": 'adf-about-package-list', + selector: 'adf-about-package-list', "templateUrl": './package-list.component.html', "styleUrls": ['./package-list.component.scss'], - "changeDetection": ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush }) export class PackageListComponent implements OnInit { diff --git a/lib/core/src/lib/about/about-panel.directive.ts b/lib/core/src/lib/about/about-panel.directive.ts index e3a27495af..4fa07887ce 100644 --- a/lib/core/src/lib/about/about-panel.directive.ts +++ b/lib/core/src/lib/about/about-panel.directive.ts @@ -18,7 +18,7 @@ import { ContentChild, Directive, Input, TemplateRef } from '@angular/core'; @Directive({ - "selector": 'adf-about-panel' + selector: 'adf-about-panel' }) export class AboutPanelDirective { @Input() label!: string; diff --git a/lib/core/src/lib/about/about-platform-version/about-platform-version.component.ts b/lib/core/src/lib/about/about-platform-version/about-platform-version.component.ts index 24cbf409eb..cdad12801f 100644 --- a/lib/core/src/lib/about/about-platform-version/about-platform-version.component.ts +++ b/lib/core/src/lib/about/about-platform-version/about-platform-version.component.ts @@ -32,9 +32,9 @@ interface RepositoryInfo { } @Component({ - "selector": 'adf-about-platform-version', + selector: 'adf-about-platform-version', "templateUrl": './about-platform-version.component.html', - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class AboutPlatformVersionComponent { diff --git a/lib/core/src/lib/about/about-repository-info/about-repository-info.component.ts b/lib/core/src/lib/about/about-repository-info/about-repository-info.component.ts index 7c3cca8a84..07fdf50251 100644 --- a/lib/core/src/lib/about/about-repository-info/about-repository-info.component.ts +++ b/lib/core/src/lib/about/about-repository-info/about-repository-info.component.ts @@ -21,7 +21,7 @@ import { LicenseData, StatusData } from '../interfaces'; import { RepositoryInfo } from './repository-info.interface'; @Component({ - "selector": 'adf-about-repository-info', + selector: 'adf-about-repository-info', "templateUrl": './about-repository-info.component.html' }) export class AboutRepositoryInfoComponent implements OnInit { diff --git a/lib/core/src/lib/about/about-server-settings/about-server-settings.component.ts b/lib/core/src/lib/about/about-server-settings/about-server-settings.component.ts index 1ea025c2c6..c5a7be7424 100644 --- a/lib/core/src/lib/about/about-server-settings/about-server-settings.component.ts +++ b/lib/core/src/lib/about/about-server-settings/about-server-settings.component.ts @@ -19,7 +19,7 @@ import { Component, OnInit } from '@angular/core'; import { AppConfigService, AppConfigValues } from '../../app-config/app-config.service'; @Component({ - "selector": 'adf-about-server-settings', + selector: 'adf-about-server-settings', "templateUrl": './about-server-settings.component.html', "styleUrls": ['./about-server-settings.component.scss'] }) diff --git a/lib/core/src/lib/about/about-status-list/about-status-list.component.ts b/lib/core/src/lib/about/about-status-list/about-status-list.component.ts index aff36cd9ff..ede80279cf 100644 --- a/lib/core/src/lib/about/about-status-list/about-status-list.component.ts +++ b/lib/core/src/lib/about/about-status-list/about-status-list.component.ts @@ -19,10 +19,10 @@ import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@a import { StatusData } from '../interfaces'; @Component({ - "selector": 'adf-about-status-list', + selector: 'adf-about-status-list', "templateUrl": './about-status-list.component.html', - "encapsulation": ViewEncapsulation.None, - "changeDetection": ChangeDetectionStrategy.OnPush + encapsulation: ViewEncapsulation.None, + changeDetection: ChangeDetectionStrategy.OnPush }) export class AboutStatusListComponent { columns = [ diff --git a/lib/core/src/lib/about/about.component.ts b/lib/core/src/lib/about/about.component.ts index 800e675d31..b56f30961b 100644 --- a/lib/core/src/lib/about/about.component.ts +++ b/lib/core/src/lib/about/about.component.ts @@ -19,10 +19,10 @@ import { Component, ContentChildren, QueryList, ViewEncapsulation } from '@angul import { AboutPanelDirective } from './about-panel.directive'; @Component({ - "selector": 'adf-about', + selector: 'adf-about', "templateUrl": './about.component.html', "styleUrls": ['about.component.scss'], - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class AboutComponent { @ContentChildren(AboutPanelDirective) diff --git a/lib/core/src/lib/auth/guard/auth-guard-bpm.service.spec.ts b/lib/core/src/lib/auth/guard/auth-guard-bpm.service.spec.ts index c69c70746b..84750e7998 100644 --- a/lib/core/src/lib/auth/guard/auth-guard-bpm.service.spec.ts +++ b/lib/core/src/lib/auth/guard/auth-guard-bpm.service.spec.ts @@ -75,7 +75,7 @@ describe('AuthGuardService BPM', () => { appConfigService.config.oauth2 = { "silentLogin": true, - "host": 'http://localhost:6543', + host: 'http://localhost:6543', "redirectUri": '/', "clientId": 'activiti', "publicUrl": 'settings', diff --git a/lib/core/src/lib/auth/guard/auth-guard-ecm.service.spec.ts b/lib/core/src/lib/auth/guard/auth-guard-ecm.service.spec.ts index e1200ae252..995ae63255 100644 --- a/lib/core/src/lib/auth/guard/auth-guard-ecm.service.spec.ts +++ b/lib/core/src/lib/auth/guard/auth-guard-ecm.service.spec.ts @@ -119,7 +119,7 @@ describe('AuthGuardService ECM', () => { appConfigService.config.oauth2 = { "silentLogin": true, - "host": 'http://localhost:6543', + host: 'http://localhost:6543', "redirectUri": '/', "clientId": 'activiti', "publicUrl": 'settings', diff --git a/lib/core/src/lib/auth/oidc/auth-config.service.spec.ts b/lib/core/src/lib/auth/oidc/auth-config.service.spec.ts index 8f07b6e60d..aa5597bb01 100644 --- a/lib/core/src/lib/auth/oidc/auth-config.service.spec.ts +++ b/lib/core/src/lib/auth/oidc/auth-config.service.spec.ts @@ -29,7 +29,7 @@ describe('AuthConfigService', () => { let appConfigService: AppConfigService; const mockAuthConfigImplicitFlow: OauthConfigModel = { - "host": 'http://localhost:3000/auth/realms/alfresco', + host: 'http://localhost:3000/auth/realms/alfresco', "clientId": 'fakeClientId', "scope": 'openid profile email', "secret": '', @@ -46,7 +46,7 @@ describe('AuthConfigService', () => { }; const mockAuthConfigSubfolderRedirectUri: OauthConfigModel = { - "host": 'http://localhost:3000/auth/realms/alfresco', + host: 'http://localhost:3000/auth/realms/alfresco', "clientId": 'fakeClientId', "scope": 'openid profile email', "secret": '', @@ -63,7 +63,7 @@ describe('AuthConfigService', () => { }; const mockAuthConfigSubfolder2RedirectUri: OauthConfigModel = { - "host": 'http://localhost:3000/auth/realms/alfresco', + host: 'http://localhost:3000/auth/realms/alfresco', "clientId": 'fakeClientId', "scope": 'openid profile email', "secret": '', @@ -80,7 +80,7 @@ describe('AuthConfigService', () => { }; const mockAuthConfigSlashRedirectUri: OauthConfigModel = { - "host": 'http://localhost:3000/auth/realms/alfresco', + host: 'http://localhost:3000/auth/realms/alfresco', "clientId": 'fakeClientId', "scope": 'openid profile email', "secret": '', @@ -97,7 +97,7 @@ describe('AuthConfigService', () => { }; const mockAuthConfigCodeFlow: OauthConfigModel = { - "host": 'http://localhost:3000/auth/realms/alfresco', + host: 'http://localhost:3000/auth/realms/alfresco', "clientId": 'fakeClientId', "scope": 'openid profile email', "secret": '', diff --git a/lib/core/src/lib/auth/oidc/view/authentication-confirmation/authentication-confirmation.component.ts b/lib/core/src/lib/auth/oidc/view/authentication-confirmation/authentication-confirmation.component.ts index de05c260ba..689cda4673 100644 --- a/lib/core/src/lib/auth/oidc/view/authentication-confirmation/authentication-confirmation.component.ts +++ b/lib/core/src/lib/auth/oidc/view/authentication-confirmation/authentication-confirmation.component.ts @@ -24,8 +24,8 @@ import { AuthService } from '../../auth.service'; const ROUTE_DEFAULT = '/'; @Component({ - "template": '
', - "changeDetection": ChangeDetectionStrategy.OnPush + template: '
', + changeDetection: ChangeDetectionStrategy.OnPush }) export class AuthenticationConfirmationComponent { constructor (private auth: AuthService, private _router: Router) { diff --git a/lib/core/src/lib/blank-page/blank-page.component.ts b/lib/core/src/lib/blank-page/blank-page.component.ts index 433a98a13f..dfeda935ef 100644 --- a/lib/core/src/lib/blank-page/blank-page.component.ts +++ b/lib/core/src/lib/blank-page/blank-page.component.ts @@ -18,7 +18,7 @@ import { Component } from '@angular/core'; @Component({ - "selector": 'adf-blank-page', - "template": `` + selector: 'adf-blank-page', + template: `` }) export class BlankPageComponent {} diff --git a/lib/core/src/lib/buttons-menu/buttons-menu.component.spec.ts b/lib/core/src/lib/buttons-menu/buttons-menu.component.spec.ts index 1dc0a6ceb0..01df74cb21 100644 --- a/lib/core/src/lib/buttons-menu/buttons-menu.component.spec.ts +++ b/lib/core/src/lib/buttons-menu/buttons-menu.component.spec.ts @@ -22,8 +22,8 @@ import { CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core'; import { TranslateModule } from '@ngx-translate/core'; @Component({ - "selector": 'adf-custom-container', - "template": ` + selector: 'adf-custom-container', + template: ` @@ -33,8 +33,8 @@ import { EditJsonDialogComponent, EditJsonDialogSettings } from '../../../dialog `, "styleUrls": ['./json-cell.component.scss'], - "encapsulation": ViewEncapsulation.None, - "host": { "class": 'adf-datatable-content-cell' } + encapsulation: ViewEncapsulation.None, + host: { "class": 'adf-datatable-content-cell' } }) export class JsonCellComponent extends DataTableCellComponent implements OnInit { /** Editable JSON. */ diff --git a/lib/core/src/lib/datatable/components/location-cell/location-cell.component.ts b/lib/core/src/lib/datatable/components/location-cell/location-cell.component.ts index db279c343d..55b7446603 100644 --- a/lib/core/src/lib/datatable/components/location-cell/location-cell.component.ts +++ b/lib/core/src/lib/datatable/components/location-cell/location-cell.component.ts @@ -24,17 +24,17 @@ import { PathInfo } from '@alfresco/js-api'; @Component({ "standalone": true, "imports": [AsyncPipe, RouterModule], - "selector": 'adf-location-cell', - "changeDetection": ChangeDetectionStrategy.OnPush, - "template": ` + selector: 'adf-location-cell', + changeDetection: ChangeDetectionStrategy.OnPush, + template: ` {{ value$ | async }} `, - "encapsulation": ViewEncapsulation.None, - "host": { "class": 'adf-location-cell adf-datatable-content-cell' } + encapsulation: ViewEncapsulation.None, + host: { "class": 'adf-location-cell adf-datatable-content-cell' } }) export class LocationCellComponent extends DataTableCellComponent implements OnInit { @Input() diff --git a/lib/core/src/lib/datatable/components/number-cell/number-cell.component.ts b/lib/core/src/lib/datatable/components/number-cell/number-cell.component.ts index fc09357796..a5e7b8f352 100644 --- a/lib/core/src/lib/datatable/components/number-cell/number-cell.component.ts +++ b/lib/core/src/lib/datatable/components/number-cell/number-cell.component.ts @@ -29,11 +29,11 @@ import { CommonModule } from '@angular/common'; @Component({ "standalone": true, "imports": [CommonModule], - "selector": 'adf-number-cell', + selector: 'adf-number-cell', "templateUrl": './number-cell.component.html', - "host": { "class": 'adf-datatable-content-cell' }, - "encapsulation": ViewEncapsulation.None, - "changeDetection": ChangeDetectionStrategy.OnPush + host: { "class": 'adf-datatable-content-cell' }, + encapsulation: ViewEncapsulation.None, + changeDetection: ChangeDetectionStrategy.OnPush }) export class NumberCellComponent extends DataTableCellComponent implements OnInit { diff --git a/lib/core/src/lib/datatable/data-column/data-column-header.component.ts b/lib/core/src/lib/datatable/data-column/data-column-header.component.ts index 76f9c855aa..004b4f2c36 100644 --- a/lib/core/src/lib/datatable/data-column/data-column-header.component.ts +++ b/lib/core/src/lib/datatable/data-column/data-column-header.component.ts @@ -21,8 +21,8 @@ import { AfterContentInit, Component, ContentChild, TemplateRef } from '@angular import { DataColumnComponent } from './data-column.component'; @Component({ - "selector": 'adf-data-column-header', - "template": '' + selector: 'adf-data-column-header', + template: '' }) export class DateColumnHeaderComponent implements AfterContentInit { diff --git a/lib/core/src/lib/datatable/data-column/data-column-list.component.ts b/lib/core/src/lib/datatable/data-column/data-column-list.component.ts index 556d5d4c2e..7149453e21 100644 --- a/lib/core/src/lib/datatable/data-column/data-column-list.component.ts +++ b/lib/core/src/lib/datatable/data-column/data-column-list.component.ts @@ -21,8 +21,8 @@ import { Component, ContentChildren, QueryList } from '@angular/core'; import { DataColumnComponent } from './data-column.component'; @Component({ - "selector": 'data-columns', - "template": '' + selector: 'data-columns', + template: '' }) export class DataColumnListComponent { diff --git a/lib/core/src/lib/datatable/data-column/data-column.component.stories.ts b/lib/core/src/lib/datatable/data-column/data-column.component.stories.ts index 1183551519..678d222b47 100644 --- a/lib/core/src/lib/datatable/data-column/data-column.component.stories.ts +++ b/lib/core/src/lib/datatable/data-column/data-column.component.stories.ts @@ -325,11 +325,11 @@ const formatCustomTooltip = (row: DataRow): string => const template: Story = (args: DataColumnComponent & { rows: DataRow[] }) => ({ "props": args, - "template": ` + template: ` - + selector: 'adf-edit-json-dialog-storybook', + template: `` }) diff --git a/lib/core/src/lib/dialogs/edit-json/edit-json.dialog.ts b/lib/core/src/lib/dialogs/edit-json/edit-json.dialog.ts index df02e9acca..25d41f98c9 100644 --- a/lib/core/src/lib/dialogs/edit-json/edit-json.dialog.ts +++ b/lib/core/src/lib/dialogs/edit-json/edit-json.dialog.ts @@ -27,8 +27,8 @@ export interface EditJsonDialogSettings { @Component({ "templateUrl": './edit-json.dialog.html', "styleUrls": ['./edit-json.dialog.scss'], - "encapsulation": ViewEncapsulation.None, - "host": { "class": 'adf-edit-json-dialog' } + encapsulation: ViewEncapsulation.None, + host: { "class": 'adf-edit-json-dialog' } }) export class EditJsonDialogComponent implements OnInit { diff --git a/lib/core/src/lib/directives/highlight.directive.spec.ts b/lib/core/src/lib/directives/highlight.directive.spec.ts index 4e7b6c07e2..1ff3de961a 100644 --- a/lib/core/src/lib/directives/highlight.directive.spec.ts +++ b/lib/core/src/lib/directives/highlight.directive.spec.ts @@ -35,7 +35,7 @@ const template: string = `
Lorem ipsum salana-eyong-aysis dolor sit amet
`; -@Component({ "selector": 'adf-test-component', template }) +@Component({ selector: 'adf-test-component', template }) class TestComponent { @ViewChildren(HighlightDirective) public highlightDirectives; } diff --git a/lib/core/src/lib/directives/highlight.directive.ts b/lib/core/src/lib/directives/highlight.directive.ts index 4fcac62b9a..0685eba90c 100644 --- a/lib/core/src/lib/directives/highlight.directive.ts +++ b/lib/core/src/lib/directives/highlight.directive.ts @@ -21,7 +21,7 @@ import { Directive, ElementRef, Input, Renderer2, AfterViewChecked } from '@angu import { HighlightTransformService, HighlightTransformResult } from '../common/services/highlight-transform.service'; @Directive({ - "selector": '[adf-highlight]' + selector: '[adf-highlight]' }) export class HighlightDirective implements AfterViewChecked { diff --git a/lib/core/src/lib/directives/infinite-select-scroll.directive.spec.ts b/lib/core/src/lib/directives/infinite-select-scroll.directive.spec.ts index bb1d1f36d6..b413f7363d 100644 --- a/lib/core/src/lib/directives/infinite-select-scroll.directive.spec.ts +++ b/lib/core/src/lib/directives/infinite-select-scroll.directive.spec.ts @@ -22,7 +22,7 @@ import { MatSelect, MatSelectModule } from '@angular/material/select'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; @Component({ - "template": ` + template: ` {{ option.text }} diff --git a/lib/core/src/lib/directives/infinite-select-scroll.directive.ts b/lib/core/src/lib/directives/infinite-select-scroll.directive.ts index de61484660..ed0a5bae70 100644 --- a/lib/core/src/lib/directives/infinite-select-scroll.directive.ts +++ b/lib/core/src/lib/directives/infinite-select-scroll.directive.ts @@ -23,7 +23,7 @@ import { takeUntil } from 'rxjs/operators'; const SELECT_ITEM_HEIGHT_EM = 3; @Directive({ - "selector": '[adf-infinite-select-scroll]' + selector: '[adf-infinite-select-scroll]' }) export class InfiniteSelectScrollDirective implements AfterViewInit, OnDestroy { static readonly MAX_ITEMS = 50; diff --git a/lib/core/src/lib/directives/logout.directive.spec.ts b/lib/core/src/lib/directives/logout.directive.spec.ts index 52676355b8..945cd55756 100644 --- a/lib/core/src/lib/directives/logout.directive.spec.ts +++ b/lib/core/src/lib/directives/logout.directive.spec.ts @@ -30,8 +30,8 @@ describe('LogoutDirective', () => { describe('No input', () => { @Component({ - "selector": 'adf-test-component', - "template": '' + selector: 'adf-test-component', + template: '' }) class TestComponent { @ContentChildren(LogoutDirective) @@ -112,8 +112,8 @@ describe('LogoutDirective', () => { describe('redirectUri', () => { @Component({ - "selector": 'adf-test-component', - "template": '' + selector: 'adf-test-component', + template: '' }) class TestComponent { @ContentChildren(LogoutDirective) @@ -155,8 +155,8 @@ describe('LogoutDirective', () => { describe('enableRedirect', () => { @Component({ - "selector": 'adf-test-component', - "template": '' + selector: 'adf-test-component', + template: '' }) class TestComponent { @ContentChildren(LogoutDirective) diff --git a/lib/core/src/lib/directives/logout.directive.ts b/lib/core/src/lib/directives/logout.directive.ts index a220b57f5e..96dd254418 100644 --- a/lib/core/src/lib/directives/logout.directive.ts +++ b/lib/core/src/lib/directives/logout.directive.ts @@ -21,7 +21,7 @@ import { AppConfigService } from '../app-config/app-config.service'; import { AuthenticationService } from '../auth/services/authentication.service'; @Directive({ - "selector": '[adf-logout]' + selector: '[adf-logout]' }) export class LogoutDirective implements OnInit { diff --git a/lib/core/src/lib/directives/tooltip-card/tooltip-card.component.ts b/lib/core/src/lib/directives/tooltip-card/tooltip-card.component.ts index ea98e06104..82b3c301eb 100644 --- a/lib/core/src/lib/directives/tooltip-card/tooltip-card.component.ts +++ b/lib/core/src/lib/directives/tooltip-card/tooltip-card.component.ts @@ -20,7 +20,7 @@ import { animate, style, transition, trigger } from '@angular/animations'; import { DomSanitizer } from '@angular/platform-browser'; @Component({ - "selector": 'adf-tooltip-card-component', + selector: 'adf-tooltip-card-component', "templateUrl": './tooltip-card.component.html', "styleUrls": ['./tooltip-card.component.scss'], "animations": [ diff --git a/lib/core/src/lib/directives/tooltip-card/tooltip-card.directive.spec.ts b/lib/core/src/lib/directives/tooltip-card/tooltip-card.directive.spec.ts index 9c45891c34..99b4f16a73 100644 --- a/lib/core/src/lib/directives/tooltip-card/tooltip-card.directive.spec.ts +++ b/lib/core/src/lib/directives/tooltip-card/tooltip-card.directive.spec.ts @@ -27,7 +27,7 @@ import { TooltipCardComponent } from './tooltip-card.component'; const IMAGE_URL = 'alfresco-logo.svg'; @Component({ - "template": `` + template: `` }) class TestComponent { @ViewChild(TooltipCardDirective, { "static": true }) diff --git a/lib/core/src/lib/directives/tooltip-card/tooltip-card.directive.ts b/lib/core/src/lib/directives/tooltip-card/tooltip-card.directive.ts index 87a2953814..f4c57ba52e 100644 --- a/lib/core/src/lib/directives/tooltip-card/tooltip-card.directive.ts +++ b/lib/core/src/lib/directives/tooltip-card/tooltip-card.directive.ts @@ -20,7 +20,7 @@ import { Overlay, OverlayPositionBuilder, OverlayRef } from '@angular/cdk/overla import { ComponentPortal } from '@angular/cdk/portal'; import { TooltipCardComponent } from './tooltip-card.component'; -@Directive({ "selector": '[adf-tooltip-card]' }) +@Directive({ selector: '[adf-tooltip-card]' }) export class TooltipCardDirective implements OnInit, OnDestroy { @Input('adf-tooltip-card') text = ''; diff --git a/lib/core/src/lib/directives/upload.directive.ts b/lib/core/src/lib/directives/upload.directive.ts index 67738b0970..2f89d1a7e3 100644 --- a/lib/core/src/lib/directives/upload.directive.ts +++ b/lib/core/src/lib/directives/upload.directive.ts @@ -21,7 +21,7 @@ import { Directive, ElementRef, HostListener, Input, NgZone, OnDestroy, OnInit, import { FileInfo, FileUtils } from '../common/utils/file-utils'; @Directive({ - "selector": '[adf-upload]' + selector: '[adf-upload]' }) export class UploadDirective implements OnInit, OnDestroy { /** Enables/disables uploading. */ diff --git a/lib/core/src/lib/form/components/form-custom-button.directive.ts b/lib/core/src/lib/form/components/form-custom-button.directive.ts index bc1125efcc..b20a8b9d50 100644 --- a/lib/core/src/lib/form/components/form-custom-button.directive.ts +++ b/lib/core/src/lib/form/components/form-custom-button.directive.ts @@ -20,4 +20,4 @@ import { Directive } from '@angular/core'; /** * Directive selectors without adf- prefix will be deprecated on 3.0.0 */ -@Directive({ "selector": '[adf-form-custom-button], [form-custom-button]' }) export class StartFormCustomButtonDirective {} +@Directive({ selector: '[adf-form-custom-button], [form-custom-button]' }) export class StartFormCustomButtonDirective {} diff --git a/lib/core/src/lib/form/components/form-field/form-field.component.ts b/lib/core/src/lib/form/components/form-field/form-field.component.ts index af557b63a9..fc3a054377 100644 --- a/lib/core/src/lib/form/components/form-field/form-field.component.ts +++ b/lib/core/src/lib/form/components/form-field/form-field.component.ts @@ -38,8 +38,8 @@ import { FormFieldModel } from '../widgets/core/form-field.model'; declare const adf: any; @Component({ - "selector": 'adf-form-field', - "template": ` + selector: 'adf-form-field', + template: `
`, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class FormFieldComponent implements OnInit, OnDestroy { @ViewChild('container', { "read": ViewContainerRef, "static": true }) @@ -139,7 +139,7 @@ export class FormFieldComponent implements OnInit, OnDestroy { } const metadata = { - "selector": `runtime-component-${type}`, + selector: `runtime-component-${type}`, template }; diff --git a/lib/core/src/lib/form/components/form-renderer.component.ts b/lib/core/src/lib/form/components/form-renderer.component.ts index 79ca4db4d8..1a3c552d84 100644 --- a/lib/core/src/lib/form/components/form-renderer.component.ts +++ b/lib/core/src/lib/form/components/form-renderer.component.ts @@ -22,7 +22,7 @@ import { ContainerModel, FormFieldModel, TabModel } from './widgets'; import { FormService } from '../services/form.service'; @Component({ - "selector": 'adf-form-renderer', + selector: 'adf-form-renderer', "templateUrl": './form-renderer.component.html', "styleUrls": ['./form-renderer.component.scss'], "providers": [ @@ -32,7 +32,7 @@ import { FormService } from '../services/form.service'; "deps": [Injector] } ], - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class FormRendererComponent implements OnChanges, OnDestroy { /** Toggle debug options. */ diff --git a/lib/core/src/lib/form/components/inplace-form-input/inplace-form-input.component.ts b/lib/core/src/lib/form/components/inplace-form-input/inplace-form-input.component.ts index 04b3fee87f..e0a2a17bc9 100644 --- a/lib/core/src/lib/form/components/inplace-form-input/inplace-form-input.component.ts +++ b/lib/core/src/lib/form/components/inplace-form-input/inplace-form-input.component.ts @@ -23,10 +23,10 @@ import { import { UntypedFormControl } from '@angular/forms'; @Component({ - "selector": 'adf-inplace-form-input', + selector: 'adf-inplace-form-input', "templateUrl": './inplace-form-input.component.html', "styleUrls": ['./inplace-form-input.component.scss'], - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class InplaceFormInputComponent { @Input() diff --git a/lib/core/src/lib/form/components/widgets/amount/amount.widget.ts b/lib/core/src/lib/form/components/widgets/amount/amount.widget.ts index 06a1de4186..cbff419ae1 100644 --- a/lib/core/src/lib/form/components/widgets/amount/amount.widget.ts +++ b/lib/core/src/lib/form/components/widgets/amount/amount.widget.ts @@ -28,10 +28,10 @@ export interface AmountWidgetSettings { export const ADF_AMOUNT_SETTINGS = new InjectionToken('adf-amount-settings'); @Component({ - "selector": 'amount-widget', + selector: 'amount-widget', "templateUrl": './amount.widget.html', "styleUrls": ['./amount.widget.scss'], - "host": { + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -42,7 +42,7 @@ export const ADF_AMOUNT_SETTINGS = new InjectionToken('adf '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class AmountWidgetComponent extends WidgetComponent implements OnInit { static DEFAULT_CURRENCY: string = '$'; diff --git a/lib/core/src/lib/form/components/widgets/base-viewer/base-viewer.widget.ts b/lib/core/src/lib/form/components/widgets/base-viewer/base-viewer.widget.ts index 30225fb9eb..791641938f 100644 --- a/lib/core/src/lib/form/components/widgets/base-viewer/base-viewer.widget.ts +++ b/lib/core/src/lib/form/components/widgets/base-viewer/base-viewer.widget.ts @@ -22,10 +22,10 @@ import { WidgetComponent } from '../widget.component'; /* eslint-disable @angular-eslint/component-selector */ @Component({ - "selector": 'base-viewer-widget', + selector: 'base-viewer-widget', "templateUrl": './base-viewer.widget.html', "styleUrls": ['./base-viewer.widget.scss'], - "host": { + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -36,7 +36,7 @@ import { WidgetComponent } from '../widget.component'; '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class BaseViewerWidgetComponent extends WidgetComponent implements OnInit { constructor (formService: FormService) { diff --git a/lib/core/src/lib/form/components/widgets/checkbox/checkbox.widget.ts b/lib/core/src/lib/form/components/widgets/checkbox/checkbox.widget.ts index 3d41252e56..fee198c94e 100644 --- a/lib/core/src/lib/form/components/widgets/checkbox/checkbox.widget.ts +++ b/lib/core/src/lib/form/components/widgets/checkbox/checkbox.widget.ts @@ -22,9 +22,9 @@ import { FormService } from '../../../services/form.service'; import { WidgetComponent } from '../widget.component'; @Component({ - "selector": 'checkbox-widget', + selector: 'checkbox-widget', "templateUrl": './checkbox.widget.html', - "host": { + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -35,7 +35,7 @@ import { WidgetComponent } from '../widget.component'; '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class CheckboxWidgetComponent extends WidgetComponent { checkboxValue: boolean; diff --git a/lib/core/src/lib/form/components/widgets/date-time/date-time.widget.ts b/lib/core/src/lib/form/components/widgets/date-time/date-time.widget.ts index cab79a5059..1e5ad82cf8 100644 --- a/lib/core/src/lib/form/components/widgets/date-time/date-time.widget.ts +++ b/lib/core/src/lib/form/components/widgets/date-time/date-time.widget.ts @@ -34,10 +34,10 @@ import { isValid } from 'date-fns'; { "provide": DateAdapter, "useClass": AdfDateFnsAdapter }, { "provide": DatetimeAdapter, "useClass": AdfDateTimeFnsAdapter } ], - "selector": 'date-time-widget', + selector: 'date-time-widget', "templateUrl": './date-time.widget.html', "styleUrls": ['./date-time.widget.scss'], - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class DateTimeWidgetComponent extends WidgetComponent implements OnInit { minDate: Date; diff --git a/lib/core/src/lib/form/components/widgets/date/date.widget.ts b/lib/core/src/lib/form/components/widgets/date/date.widget.ts index 1c46109e3c..27e1bf01d9 100644 --- a/lib/core/src/lib/form/components/widgets/date/date.widget.ts +++ b/lib/core/src/lib/form/components/widgets/date/date.widget.ts @@ -26,13 +26,13 @@ import { MatDatepickerInputEvent } from '@angular/material/datepicker'; import { ADF_DATE_FORMATS, AdfDateFnsAdapter } from '../../../../common/utils/date-fns-adapter'; @Component({ - "selector": 'date-widget', + selector: 'date-widget', "providers": [ { "provide": MAT_DATE_FORMATS, "useValue": ADF_DATE_FORMATS }, { "provide": DateAdapter, "useClass": AdfDateFnsAdapter } ], "templateUrl": './date.widget.html', - "host": { + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -43,7 +43,7 @@ import { ADF_DATE_FORMATS, AdfDateFnsAdapter } from '../../../../common/utils/da '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class DateWidgetComponent extends WidgetComponent implements OnInit, OnDestroy { DATE_FORMAT = 'dd-MM-yyyy'; diff --git a/lib/core/src/lib/form/components/widgets/display-text/display-text.widget.ts b/lib/core/src/lib/form/components/widgets/display-text/display-text.widget.ts index 7887a5e226..66b1850557 100644 --- a/lib/core/src/lib/form/components/widgets/display-text/display-text.widget.ts +++ b/lib/core/src/lib/form/components/widgets/display-text/display-text.widget.ts @@ -22,10 +22,10 @@ import { FormService } from '../../../services/form.service'; import { WidgetComponent } from '../widget.component'; @Component({ - "selector": 'display-text-widget', + selector: 'display-text-widget', "templateUrl": './display-text.widget.html', "styleUrls": ['./display-text.widget.scss'], - "host": { + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -36,7 +36,7 @@ import { WidgetComponent } from '../widget.component'; '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class DisplayTextWidgetComponent extends WidgetComponent { diff --git a/lib/core/src/lib/form/components/widgets/error/error.component.ts b/lib/core/src/lib/form/components/widgets/error/error.component.ts index c2b2a54e77..8896e469dd 100644 --- a/lib/core/src/lib/form/components/widgets/error/error.component.ts +++ b/lib/core/src/lib/form/components/widgets/error/error.component.ts @@ -24,7 +24,7 @@ import { FormService } from '../../../services/form.service'; import { WidgetComponent } from '../widget.component'; @Component({ - "selector": 'error-widget', + selector: 'error-widget', "templateUrl": './error.component.html', "styleUrls": ['./error.component.scss'], "animations": [ @@ -33,7 +33,7 @@ import { WidgetComponent } from '../widget.component'; transition('void => enter', [style({ "opacity": 0, "transform": 'translateY(-100%)' }), animate('300ms cubic-bezier(0.55, 0, 0.55, 0.2)')]) ]) ], - "host": { + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -44,7 +44,7 @@ import { WidgetComponent } from '../widget.component'; '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class ErrorWidgetComponent extends WidgetComponent implements OnChanges { @Input() diff --git a/lib/core/src/lib/form/components/widgets/hyperlink/hyperlink.widget.ts b/lib/core/src/lib/form/components/widgets/hyperlink/hyperlink.widget.ts index 2ecd79929d..0cc350756f 100644 --- a/lib/core/src/lib/form/components/widgets/hyperlink/hyperlink.widget.ts +++ b/lib/core/src/lib/form/components/widgets/hyperlink/hyperlink.widget.ts @@ -23,10 +23,10 @@ import { WidgetComponent } from '../widget.component'; import { FormFieldModel } from '../core'; @Component({ - "selector": 'hyperlink-widget', + selector: 'hyperlink-widget', "templateUrl": './hyperlink.widget.html', "styleUrls": ['./hyperlink.widget.scss'], - "host": { + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -37,7 +37,7 @@ import { FormFieldModel } from '../core'; '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class HyperlinkWidgetComponent extends WidgetComponent implements OnInit { diff --git a/lib/core/src/lib/form/components/widgets/json/json.widget.ts b/lib/core/src/lib/form/components/widgets/json/json.widget.ts index e090362ceb..a1ec6a24f1 100644 --- a/lib/core/src/lib/form/components/widgets/json/json.widget.ts +++ b/lib/core/src/lib/form/components/widgets/json/json.widget.ts @@ -22,10 +22,10 @@ import { MatDialog } from '@angular/material/dialog'; import { EditJsonDialogSettings, EditJsonDialogComponent } from '../../../../dialogs/edit-json/edit-json.dialog'; @Component({ - "template": ` + template: ` `, - "host": { + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -36,7 +36,7 @@ import { EditJsonDialogSettings, EditJsonDialogComponent } from '../../../../dia '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class JsonWidgetComponent extends WidgetComponent { constructor (public formService: FormService, private dialog: MatDialog) { diff --git a/lib/core/src/lib/form/components/widgets/multiline-text/multiline-text.widget.ts b/lib/core/src/lib/form/components/widgets/multiline-text/multiline-text.widget.ts index c98c0d5eeb..0c807d97f6 100644 --- a/lib/core/src/lib/form/components/widgets/multiline-text/multiline-text.widget.ts +++ b/lib/core/src/lib/form/components/widgets/multiline-text/multiline-text.widget.ts @@ -22,10 +22,10 @@ import { FormService } from '../../../services/form.service'; import { WidgetComponent } from '../widget.component'; @Component({ - "selector": 'multiline-text-widget', + selector: 'multiline-text-widget', "templateUrl": './multiline-text.widget.html', "styleUrls": ['./multiline-text.widget.scss'], - "host": { + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -36,7 +36,7 @@ import { WidgetComponent } from '../widget.component'; '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class MultilineTextWidgetComponentComponent extends WidgetComponent { diff --git a/lib/core/src/lib/form/components/widgets/number/number.widget.ts b/lib/core/src/lib/form/components/widgets/number/number.widget.ts index bee1b2f067..df0ab0594f 100644 --- a/lib/core/src/lib/form/components/widgets/number/number.widget.ts +++ b/lib/core/src/lib/form/components/widgets/number/number.widget.ts @@ -23,10 +23,10 @@ import { WidgetComponent } from '../widget.component'; import { DecimalNumberPipe } from '../../../../pipes/decimal-number.pipe'; @Component({ - "selector": 'number-widget', + selector: 'number-widget', "templateUrl": './number.widget.html', "styleUrls": ['./number.widget.scss'], - "host": { + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -37,7 +37,7 @@ import { DecimalNumberPipe } from '../../../../pipes/decimal-number.pipe'; '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class NumberWidgetComponent extends WidgetComponent implements OnInit { diff --git a/lib/core/src/lib/form/components/widgets/text/text-mask.component.ts b/lib/core/src/lib/form/components/widgets/text/text-mask.component.ts index e87bd3f597..fa3087dd90 100644 --- a/lib/core/src/lib/form/components/widgets/text/text-mask.component.ts +++ b/lib/core/src/lib/form/components/widgets/text/text-mask.component.ts @@ -30,7 +30,7 @@ export const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any = { * Directive selectors without adf- prefix will be deprecated on 3.0.0 */ @Directive({ - "selector": '[adf-text-mask], [textMask]', + selector: '[adf-text-mask], [textMask]', "providers": [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR] }) export class InputMaskDirective implements OnChanges, ControlValueAccessor { diff --git a/lib/core/src/lib/form/components/widgets/text/text.widget.ts b/lib/core/src/lib/form/components/widgets/text/text.widget.ts index b810195b1c..71511f7657 100644 --- a/lib/core/src/lib/form/components/widgets/text/text.widget.ts +++ b/lib/core/src/lib/form/components/widgets/text/text.widget.ts @@ -22,10 +22,10 @@ import { FormService } from '../../../services/form.service'; import { WidgetComponent } from '../widget.component'; @Component({ - "selector": 'text-widget', + selector: 'text-widget', "templateUrl": './text.widget.html', "styleUrls": ['./text.widget.scss'], - "host": { + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -36,7 +36,7 @@ import { WidgetComponent } from '../widget.component'; '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class TextWidgetComponent extends WidgetComponent implements OnInit { diff --git a/lib/core/src/lib/form/components/widgets/unknown/unknown.widget.ts b/lib/core/src/lib/form/components/widgets/unknown/unknown.widget.ts index 8ee1ae18fe..5cae87e2f2 100644 --- a/lib/core/src/lib/form/components/widgets/unknown/unknown.widget.ts +++ b/lib/core/src/lib/form/components/widgets/unknown/unknown.widget.ts @@ -22,8 +22,8 @@ import { FormService } from '../../../services/form.service'; import { WidgetComponent } from '../widget.component'; @Component({ - "selector": 'unknown-widget', - "template": ` + selector: 'unknown-widget', + template: ` error_outline @@ -33,7 +33,7 @@ import { WidgetComponent } from '../widget.component'; `, "styleUrls": ['./unknown.widget.scss'], - "host": { + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -44,7 +44,7 @@ import { WidgetComponent } from '../widget.component'; '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class UnknownWidgetComponent extends WidgetComponent { diff --git a/lib/core/src/lib/form/components/widgets/widget.component.ts b/lib/core/src/lib/form/components/widgets/widget.component.ts index 137ec8e4b3..0647837565 100644 --- a/lib/core/src/lib/form/components/widgets/widget.component.ts +++ b/lib/core/src/lib/form/components/widgets/widget.component.ts @@ -27,9 +27,9 @@ import { FormFieldModel } from './core'; * Base widget component. */ @Component({ - "selector": 'base-widget', - "template": '', - "host": { + selector: 'base-widget', + template: '', + host: { '(click)': 'event($event)', '(blur)': 'event($event)', '(change)': 'event($event)', @@ -40,7 +40,7 @@ import { FormFieldModel } from './core'; '(invalid)': 'event($event)', '(select)': 'event($event)' }, - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class WidgetComponent implements AfterViewInit { /** Does the widget show a read-only value? (ie, can't be edited) */ diff --git a/lib/core/src/lib/icon/icon.component.ts b/lib/core/src/lib/icon/icon.component.ts index c6cfcd86e2..8d89bcd5ba 100644 --- a/lib/core/src/lib/icon/icon.component.ts +++ b/lib/core/src/lib/icon/icon.component.ts @@ -24,12 +24,12 @@ import { import { ThemePalette } from '@angular/material/core'; @Component({ - "selector": 'adf-icon', + selector: 'adf-icon', "templateUrl": './icon.component.html', "styleUrls": ['./icon.component.scss'], - "encapsulation": ViewEncapsulation.None, - "changeDetection": ChangeDetectionStrategy.OnPush, - "host": { "class": 'adf-icon' } + encapsulation: ViewEncapsulation.None, + changeDetection: ChangeDetectionStrategy.OnPush, + host: { "class": 'adf-icon' } }) export class IconComponent { private _value = ''; diff --git a/lib/core/src/lib/identity-user-info/identity-user-info.component.ts b/lib/core/src/lib/identity-user-info/identity-user-info.component.ts index 25f4ddd970..a6e3d27e69 100644 --- a/lib/core/src/lib/identity-user-info/identity-user-info.component.ts +++ b/lib/core/src/lib/identity-user-info/identity-user-info.component.ts @@ -21,10 +21,10 @@ import { IdentityUserModel } from '../auth/models/identity-user.model'; import { Subject } from 'rxjs'; @Component({ - "selector": 'adf-identity-user-info', + selector: 'adf-identity-user-info', "templateUrl": './identity-user-info.component.html', "styleUrls": ['./identity-user-info.component.scss'], - "encapsulation": ViewEncapsulation.None + encapsulation: ViewEncapsulation.None }) export class IdentityUserInfoComponent implements OnDestroy { diff --git a/lib/core/src/lib/info-drawer/info-drawer-layout.component.ts b/lib/core/src/lib/info-drawer/info-drawer-layout.component.ts index 393ab8ae5d..259cdde775 100644 --- a/lib/core/src/lib/info-drawer/info-drawer-layout.component.ts +++ b/lib/core/src/lib/info-drawer/info-drawer-layout.component.ts @@ -18,11 +18,11 @@ import { Component, Directive, Input, ViewEncapsulation } from '@angular/core'; @Component({ - "selector": 'adf-info-drawer-layout', + selector: 'adf-info-drawer-layout', "templateUrl": './info-drawer-layout.component.html', "styleUrls": ['./info-drawer-layout.component.scss'], - "encapsulation": ViewEncapsulation.None, - "host": { "class": 'adf-info-drawer-layout' } + encapsulation: ViewEncapsulation.None, + host: { "class": 'adf-info-drawer-layout' } }) export class InfoDrawerLayoutComponent { /** The visibility of the header. */ @@ -33,6 +33,6 @@ export class InfoDrawerLayoutComponent { /** * Directive selectors without adf- prefix will be deprecated on 3.0.0 */ -@Directive({ "selector": '[adf-info-drawer-title], [info-drawer-title]' }) export class InfoDrawerTitleDirective {} -@Directive({ "selector": '[adf-info-drawer-buttons], [info-drawer-buttons]' }) export class InfoDrawerButtonsDirective {} -@Directive({ "selector": '[adf-info-drawer-content], [info-drawer-content]' }) export class InfoDrawerContentDirective {} +@Directive({ selector: '[adf-info-drawer-title], [info-drawer-title]' }) export class InfoDrawerTitleDirective {} +@Directive({ selector: '[adf-info-drawer-buttons], [info-drawer-buttons]' }) export class InfoDrawerButtonsDirective {} +@Directive({ selector: '[adf-info-drawer-content], [info-drawer-content]' }) export class InfoDrawerContentDirective {} diff --git a/lib/core/src/lib/info-drawer/info-drawer.component.spec.ts b/lib/core/src/lib/info-drawer/info-drawer.component.spec.ts index 8bb7df5c11..5143c71e5a 100644 --- a/lib/core/src/lib/info-drawer/info-drawer.component.spec.ts +++ b/lib/core/src/lib/info-drawer/info-drawer.component.spec.ts @@ -86,7 +86,7 @@ describe('InfoDrawerComponent', () => { }); @Component({ - "template": ` + template: ` @@ -160,7 +160,7 @@ describe('Custom InfoDrawer', () => { }); @Component({ - "template": ` + template: ` ` diff --git a/lib/core/src/lib/info-drawer/info-drawer.component.stories.ts b/lib/core/src/lib/info-drawer/info-drawer.component.stories.ts index ee4f766a1c..6de4a8a5aa 100644 --- a/lib/core/src/lib/info-drawer/info-drawer.component.stories.ts +++ b/lib/core/src/lib/info-drawer/info-drawer.component.stories.ts @@ -202,7 +202,7 @@ export default { const tabLayoutTemplate: Story = (args: InfoDrawerComponent) => ({ "props": args, - "template": + template: `
clear @@ -225,7 +225,7 @@ const tabLayoutTemplate: Story = (args: InfoDrawerComponent) = const singleLayoutTemplate: Story = (args: InfoDrawerComponent) => ({ "props": args, - "template": + template: `
File info
diff --git a/lib/core/src/lib/info-drawer/info-drawer.component.ts b/lib/core/src/lib/info-drawer/info-drawer.component.ts index c195eb780a..7bf1066db2 100644 --- a/lib/core/src/lib/info-drawer/info-drawer.component.ts +++ b/lib/core/src/lib/info-drawer/info-drawer.component.ts @@ -18,9 +18,9 @@ import { Component, ContentChildren, EventEmitter, HostListener, Input, Output, QueryList, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core'; import { MatTabChangeEvent } from '@angular/material/tabs'; @Component({ - "selector": 'adf-info-drawer-tab', - "template": '', - "encapsulation": ViewEncapsulation.None + selector: 'adf-info-drawer-tab', + template: '', + encapsulation: ViewEncapsulation.None }) export class InfoDrawerTabComponent { /** The title of the tab (string or translation key). */ @@ -36,11 +36,11 @@ export class InfoDrawerTabComponent { } @Component({ - "selector": 'adf-info-drawer', + selector: 'adf-info-drawer', "templateUrl": './info-drawer.component.html', "styleUrls": ['./info-drawer.component.scss'], - "encapsulation": ViewEncapsulation.None, - "host": { "class": 'adf-info-drawer' } + encapsulation: ViewEncapsulation.None, + host: { "class": 'adf-info-drawer' } }) export class InfoDrawerComponent { /** The title of the info drawer (string or translation key). */ diff --git a/lib/core/src/lib/language-menu/language-menu.component.ts b/lib/core/src/lib/language-menu/language-menu.component.ts index 6c1187c514..6dde8728cf 100644 --- a/lib/core/src/lib/language-menu/language-menu.component.ts +++ b/lib/core/src/lib/language-menu/language-menu.component.ts @@ -21,8 +21,8 @@ import { Observable } from 'rxjs'; import { LanguageItem } from '../common/services/language-item.interface'; @Component({ - "selector": 'adf-language-menu', - "template": ` + selector: 'adf-language-menu', + template: ` ` }) diff --git a/lib/core/src/lib/login/components/login.component.ts b/lib/core/src/lib/login/components/login.component.ts index 29064f9eed..46c8f8b64f 100644 --- a/lib/core/src/lib/login/components/login.component.ts +++ b/lib/core/src/lib/login/components/login.component.ts @@ -50,11 +50,11 @@ interface LoginFormValues { }; @Component({ - "selector": 'adf-login', + selector: 'adf-login', "templateUrl": './login.component.html', "styleUrls": ['./login.component.scss'], - "encapsulation": ViewEncapsulation.None, - "host": {"class": 'adf-login'} + encapsulation: ViewEncapsulation.None, + host: {"class": 'adf-login'} }) export class LoginComponent implements OnInit, OnDestroy { isPasswordShow: boolean = false; diff --git a/lib/core/src/lib/login/directives/login-footer.directive.ts b/lib/core/src/lib/login/directives/login-footer.directive.ts index 589e36e141..897fc990ec 100644 --- a/lib/core/src/lib/login/directives/login-footer.directive.ts +++ b/lib/core/src/lib/login/directives/login-footer.directive.ts @@ -27,7 +27,7 @@ import { LoginComponent } from '../components/login.component'; * Directive selectors without adf- prefix will be deprecated on 3.0.0 */ @Directive({ - "selector": 'adf-login-footer, login-footer' + selector: 'adf-login-footer, login-footer' }) export class LoginFooterDirective implements AfterContentInit { diff --git a/lib/core/src/lib/login/directives/login-header.directive.ts b/lib/core/src/lib/login/directives/login-header.directive.ts index ac125d71b7..4cebef80d1 100644 --- a/lib/core/src/lib/login/directives/login-header.directive.ts +++ b/lib/core/src/lib/login/directives/login-header.directive.ts @@ -27,7 +27,7 @@ import { LoginComponent } from '../components/login.component'; * Directive selectors without adf- prefix will be deprecated on 3.0.0 */ @Directive({ - "selector": 'adf-login-header, login-header' + selector: 'adf-login-header, login-header' }) export class LoginHeaderDirective implements AfterContentInit { diff --git a/lib/core/src/lib/mock/data-column.mock.ts b/lib/core/src/lib/mock/data-column.mock.ts index 151f821573..7e4184da3e 100644 --- a/lib/core/src/lib/mock/data-column.mock.ts +++ b/lib/core/src/lib/mock/data-column.mock.ts @@ -29,7 +29,7 @@ export const getDataColumnMock = ( "title": 'title', "srTitle": 'srTitle', "cssClass": 'cssClass', - "template": undefined, + template: undefined, "copyContent": false, "editable": false, "focus": false, diff --git a/lib/core/src/lib/notifications/components/add-notification.stories.component.ts b/lib/core/src/lib/notifications/components/add-notification.stories.component.ts index 6ad64faadf..ccedc3d38d 100644 --- a/lib/core/src/lib/notifications/components/add-notification.stories.component.ts +++ b/lib/core/src/lib/notifications/components/add-notification.stories.component.ts @@ -19,8 +19,8 @@ import { Component } from '@angular/core'; import { NotificationService } from '../services/notification.service'; @Component({ - "selector": 'adf-add-notification-storybook', - "template": `` + selector: 'adf-add-notification-storybook', + template: `` }) export class AddNotificationStorybookComponent { diff --git a/lib/core/src/lib/notifications/components/notification-history.component.stories.ts b/lib/core/src/lib/notifications/components/notification-history.component.stories.ts index e956176888..4000c37586 100644 --- a/lib/core/src/lib/notifications/components/notification-history.component.stories.ts +++ b/lib/core/src/lib/notifications/components/notification-history.component.stories.ts @@ -70,7 +70,7 @@ export default { const template: Story = (args: NotificationHistoryComponent) => ({ "props": args, - "template": ` + template: `
= (args: EmptyContentComponent & { anyContentProjection: boolean }) => ({ "props": args, - "template": ` + template: `
projected content diff --git a/lib/core/src/lib/templates/empty-content/empty-content.component.ts b/lib/core/src/lib/templates/empty-content/empty-content.component.ts index 24affc1d68..f307e687d3 100644 --- a/lib/core/src/lib/templates/empty-content/empty-content.component.ts +++ b/lib/core/src/lib/templates/empty-content/empty-content.component.ts @@ -18,12 +18,12 @@ import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input } from '@angular/core'; @Component({ - "selector": 'adf-empty-content', + selector: 'adf-empty-content', "templateUrl": './empty-content.component.html', "styleUrls": ['./empty-content.component.scss'], - "changeDetection": ChangeDetectionStrategy.OnPush, - "encapsulation": ViewEncapsulation.None, - "host": { "class": 'adf-empty-content' } + changeDetection: ChangeDetectionStrategy.OnPush, + encapsulation: ViewEncapsulation.None, + host: { "class": 'adf-empty-content' } }) export class EmptyContentComponent { diff --git a/lib/core/src/lib/templates/error-content/error-content.component.stories.ts b/lib/core/src/lib/templates/error-content/error-content.component.stories.ts index 97fce6afd4..942d36ec94 100644 --- a/lib/core/src/lib/templates/error-content/error-content.component.stories.ts +++ b/lib/core/src/lib/templates/error-content/error-content.component.stories.ts @@ -69,7 +69,7 @@ export default { const template: Story = (args: ErrorContentComponent & { errorContentActions: boolean }) => ({ "props": args, - "template": ` + template: `
diff --git a/lib/core/src/lib/templates/error-content/error-content.component.ts b/lib/core/src/lib/templates/error-content/error-content.component.ts index 8291dee2a8..0fa74fa4e7 100644 --- a/lib/core/src/lib/templates/error-content/error-content.component.ts +++ b/lib/core/src/lib/templates/error-content/error-content.component.ts @@ -29,12 +29,12 @@ import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout'; import { map } from 'rxjs/operators'; @Component({ - "selector": 'adf-error-content', + selector: 'adf-error-content', "templateUrl": './error-content.component.html', "styleUrls": ['./error-content.component.scss'], - "changeDetection": ChangeDetectionStrategy.OnPush, - "encapsulation": ViewEncapsulation.None, - "host": { "class": 'adf-error-content' } + changeDetection: ChangeDetectionStrategy.OnPush, + encapsulation: ViewEncapsulation.None, + host: { "class": 'adf-error-content' } }) export class ErrorContentComponent implements OnInit { diff --git a/lib/core/src/lib/toolbar/toolbar-divider.component.ts b/lib/core/src/lib/toolbar/toolbar-divider.component.ts index 25d92c492e..6799cfc499 100644 --- a/lib/core/src/lib/toolbar/toolbar-divider.component.ts +++ b/lib/core/src/lib/toolbar/toolbar-divider.component.ts @@ -18,9 +18,9 @@ import { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core'; @Component({ - "selector": 'adf-toolbar-divider', - "template": '
', - "host": { "class": 'adf-toolbar-divider' }, + selector: 'adf-toolbar-divider', + template: '
', + host: { "class": 'adf-toolbar-divider' }, "styles": [` .adf-toolbar-divider > div { height: 24px; @@ -30,7 +30,7 @@ import { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/ margin-right: 5px; } `], - "encapsulation": ViewEncapsulation.None, - "changeDetection": ChangeDetectionStrategy.OnPush + encapsulation: ViewEncapsulation.None, + changeDetection: ChangeDetectionStrategy.OnPush }) export class ToolbarDividerComponent {} diff --git a/lib/core/src/lib/toolbar/toolbar-title.component.ts b/lib/core/src/lib/toolbar/toolbar-title.component.ts index b49a554573..58f3f7145d 100644 --- a/lib/core/src/lib/toolbar/toolbar-title.component.ts +++ b/lib/core/src/lib/toolbar/toolbar-title.component.ts @@ -18,8 +18,8 @@ import { Component } from '@angular/core'; @Component({ - "selector": 'adf-toolbar-title', - "template": '', - "host": { "class": 'adf-toolbar-title' } + selector: 'adf-toolbar-title', + template: '', + host: { "class": 'adf-toolbar-title' } }) export class ToolbarTitleComponent {} diff --git a/lib/core/src/lib/toolbar/toolbar.component.stories.ts b/lib/core/src/lib/toolbar/toolbar.component.stories.ts index d20848a216..213cf90c88 100644 --- a/lib/core/src/lib/toolbar/toolbar.component.stories.ts +++ b/lib/core/src/lib/toolbar/toolbar.component.stories.ts @@ -95,7 +95,7 @@ export default { const template: Story = (args: ToolbarComponent & { anyContentProjection: boolean } & { toolbarDivider: boolean } & { toolbarTitle: boolean } ) => ({ "props": args, - "template": ` + template: ` Projected Title diff --git a/lib/core/src/lib/toolbar/toolbar.component.ts b/lib/core/src/lib/toolbar/toolbar.component.ts index 2d7e3d68ef..66b6734ae5 100644 --- a/lib/core/src/lib/toolbar/toolbar.component.ts +++ b/lib/core/src/lib/toolbar/toolbar.component.ts @@ -19,12 +19,12 @@ import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@a import { ThemePalette } from '@angular/material/core'; @Component({ - "selector": 'adf-toolbar', + selector: 'adf-toolbar', "templateUrl": './toolbar.component.html', "styleUrls": ['./toolbar.component.scss'], - "changeDetection": ChangeDetectionStrategy.OnPush, - "encapsulation": ViewEncapsulation.None, - "host": { "class": 'adf-toolbar' } + changeDetection: ChangeDetectionStrategy.OnPush, + encapsulation: ViewEncapsulation.None, + host: { "class": 'adf-toolbar' } }) export class ToolbarComponent { diff --git a/lib/core/src/lib/viewer/components/download-prompt-dialog/download-prompt-dialog.component.ts b/lib/core/src/lib/viewer/components/download-prompt-dialog/download-prompt-dialog.component.ts index eecdf3bc4a..1b21c11984 100644 --- a/lib/core/src/lib/viewer/components/download-prompt-dialog/download-prompt-dialog.component.ts +++ b/lib/core/src/lib/viewer/components/download-prompt-dialog/download-prompt-dialog.component.ts @@ -19,7 +19,7 @@ import { Component } from '@angular/core'; import { DownloadPromptActions } from '../../models/download-prompt.actions'; @Component({ - "selector": 'adf-download-prompt-dialog', + selector: 'adf-download-prompt-dialog', "templateUrl": './download-prompt-dialog.component.html' }) export class DownloadPromptDialogComponent { diff --git a/lib/core/src/lib/viewer/components/img-viewer.component.ts b/lib/core/src/lib/viewer/components/img-viewer.component.ts index a48203bb3f..d1aa252c95 100644 --- a/lib/core/src/lib/viewer/components/img-viewer.component.ts +++ b/lib/core/src/lib/viewer/components/img-viewer.component.ts @@ -34,11 +34,11 @@ import { UrlService } from '../../common/services/url.service'; import Cropper from 'cropperjs'; @Component({ - "selector": 'adf-img-viewer', + selector: 'adf-img-viewer', "templateUrl": './img-viewer.component.html', "styleUrls": ['./img-viewer.component.scss'], - "host": { "class": 'adf-image-viewer' }, - "encapsulation": ViewEncapsulation.None + host: { "class": 'adf-image-viewer' }, + encapsulation: ViewEncapsulation.None }) export class ImgViewerComponent implements AfterViewInit, OnChanges, OnDestroy { @Input() diff --git a/lib/core/src/lib/viewer/components/media-player.component.ts b/lib/core/src/lib/viewer/components/media-player.component.ts index 29e8f4d72a..4860781255 100644 --- a/lib/core/src/lib/viewer/components/media-player.component.ts +++ b/lib/core/src/lib/viewer/components/media-player.component.ts @@ -20,11 +20,11 @@ import { Track } from '../models/viewer.model'; import { UrlService } from '../../common/services/url.service'; @Component({ - "selector": 'adf-media-player', + selector: 'adf-media-player', "templateUrl": './media-player.component.html', "styleUrls": ['./media-player.component.scss'], - "host": { "class": 'adf-media-player' }, - "encapsulation": ViewEncapsulation.None + host: { "class": 'adf-media-player' }, + encapsulation: ViewEncapsulation.None }) export class MediaPlayerComponent implements OnChanges { @Input() diff --git a/lib/core/src/lib/viewer/components/mock/adf-viewer-container-more-actions.component.mock.ts b/lib/core/src/lib/viewer/components/mock/adf-viewer-container-more-actions.component.mock.ts index a1f121e22d..d45eefb63f 100644 --- a/lib/core/src/lib/viewer/components/mock/adf-viewer-container-more-actions.component.mock.ts +++ b/lib/core/src/lib/viewer/components/mock/adf-viewer-container-more-actions.component.mock.ts @@ -18,8 +18,8 @@ import { Component } from '@angular/core'; @Component({ - "selector": 'adf-viewer-container-more-actions', - "template": ` + selector: 'adf-viewer-container-more-actions', + template: `