From d44c004d013a032b80e441e7f6ec7e057fdc2fd5 Mon Sep 17 00:00:00 2001 From: sercan Date: Wed, 4 Aug 2021 09:46:36 +0300 Subject: [PATCH 01/11] Removed empty "styles" from component decorators --- .../navigation/horizontal/components/basic/basic.component.ts | 1 - .../horizontal/components/branch/branch.component.ts | 1 - .../horizontal/components/divider/divider.component.ts | 1 - .../horizontal/components/spacer/spacer.component.ts | 1 - .../navigation/vertical/components/aside/aside.component.ts | 1 - .../navigation/vertical/components/basic/basic.component.ts | 1 - .../vertical/components/collapsable/collapsable.component.ts | 1 - .../vertical/components/divider/divider.component.ts | 1 - .../navigation/vertical/components/group/group.component.ts | 1 - .../navigation/vertical/components/spacer/spacer.component.ts | 1 - src/app/modules/admin/docs/changelog/changelog.ts | 1 - src/app/modules/admin/docs/guides/authentication/jwt/jwt.ts | 3 +-- .../customization/component-theming/component-theming.ts | 3 +-- .../docs/guides/customization/multi-language/multi-language.ts | 3 +-- .../docs/guides/customization/page-layouts/page-layouts.ts | 3 +-- .../docs/guides/customization/splash-screen/splash-screen.ts | 3 +-- .../admin/docs/guides/customization/tailwindcss/tailwindcss.ts | 3 +-- .../docs/guides/customization/theme-layouts/theme-layouts.ts | 3 +-- .../modules/admin/docs/guides/customization/theming/theming.ts | 3 +-- .../development/component-structure/component-structure.ts | 3 +-- .../admin/docs/guides/development/deployment/deployment.ts | 3 +-- .../admin/docs/guides/development/starter-kit/starter-kit.ts | 3 +-- .../modules/admin/docs/guides/development/updating/updating.ts | 3 +-- .../docs/guides/getting-started/installation/installation.ts | 3 +-- .../docs/guides/getting-started/introduction/introduction.ts | 3 +-- .../docs/guides/getting-started/prerequisites/prerequisites.ts | 3 +-- .../admin/docs/guides/getting-started/serving/serving.ts | 3 +-- .../admin/ui/fuse-components/components/card/card.component.ts | 3 +-- .../components/date-range/date-range.component.ts | 3 +-- .../ui/fuse-components/components/drawer/drawer.component.ts | 3 +-- .../components/fullscreen/fullscreen.component.ts | 3 +-- .../components/highlight/highlight.component.ts | 3 +-- .../ui/fuse-components/components/masonry/masonry.component.ts | 3 +-- .../components/navigation/navigation.component.ts | 3 +-- .../directives/scroll-reset/scroll-reset.component.ts | 3 +-- .../directives/scrollbar/scrollbar.component.ts | 3 +-- .../fuse-components/libraries/mock-api/mock-api.component.ts | 3 +-- .../fuse-components/pipes/find-by-key/find-by-key.component.ts | 3 +-- .../ui/fuse-components/services/config/config.component.ts | 3 +-- .../services/media-watcher/media-watcher.component.ts | 3 +-- .../services/splash-screen/splash-screen.component.ts | 3 +-- .../validators/must-match/must-match.component.ts | 3 +-- .../ui/other-components/common/overview/overview.component.ts | 3 +-- .../third-party/apex-charts/apex-charts.component.ts | 3 +-- .../third-party/full-calendar/full-calendar.component.ts | 3 +-- .../third-party/ngx-markdown/ngx-markdown.component.ts | 3 +-- .../third-party/quill-editor/quill-editor.component.ts | 3 +-- 47 files changed, 36 insertions(+), 83 deletions(-) diff --git a/src/@fuse/components/navigation/horizontal/components/basic/basic.component.ts b/src/@fuse/components/navigation/horizontal/components/basic/basic.component.ts index f20224ac..afa59928 100644 --- a/src/@fuse/components/navigation/horizontal/components/basic/basic.component.ts +++ b/src/@fuse/components/navigation/horizontal/components/basic/basic.component.ts @@ -10,7 +10,6 @@ import { FuseUtilsService } from '@fuse/services/utils/utils.service'; @Component({ selector : 'fuse-horizontal-navigation-basic-item', templateUrl : './basic.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseHorizontalNavigationBasicItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/horizontal/components/branch/branch.component.ts b/src/@fuse/components/navigation/horizontal/components/branch/branch.component.ts index 53ef2a90..f45af902 100644 --- a/src/@fuse/components/navigation/horizontal/components/branch/branch.component.ts +++ b/src/@fuse/components/navigation/horizontal/components/branch/branch.component.ts @@ -10,7 +10,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-horizontal-navigation-branch-item', templateUrl : './branch.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseHorizontalNavigationBranchItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/horizontal/components/divider/divider.component.ts b/src/@fuse/components/navigation/horizontal/components/divider/divider.component.ts index 6601023a..5c0ccb44 100644 --- a/src/@fuse/components/navigation/horizontal/components/divider/divider.component.ts +++ b/src/@fuse/components/navigation/horizontal/components/divider/divider.component.ts @@ -8,7 +8,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-horizontal-navigation-divider-item', templateUrl : './divider.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseHorizontalNavigationDividerItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/horizontal/components/spacer/spacer.component.ts b/src/@fuse/components/navigation/horizontal/components/spacer/spacer.component.ts index f43fb652..2e91d12f 100644 --- a/src/@fuse/components/navigation/horizontal/components/spacer/spacer.component.ts +++ b/src/@fuse/components/navigation/horizontal/components/spacer/spacer.component.ts @@ -8,7 +8,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-horizontal-navigation-spacer-item', templateUrl : './spacer.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseHorizontalNavigationSpacerItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/vertical/components/aside/aside.component.ts b/src/@fuse/components/navigation/vertical/components/aside/aside.component.ts index 2b2a25b8..29979d97 100644 --- a/src/@fuse/components/navigation/vertical/components/aside/aside.component.ts +++ b/src/@fuse/components/navigation/vertical/components/aside/aside.component.ts @@ -10,7 +10,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-vertical-navigation-aside-item', templateUrl : './aside.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseVerticalNavigationAsideItemComponent implements OnChanges, OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/vertical/components/basic/basic.component.ts b/src/@fuse/components/navigation/vertical/components/basic/basic.component.ts index b3a20aa4..12d0a41b 100644 --- a/src/@fuse/components/navigation/vertical/components/basic/basic.component.ts +++ b/src/@fuse/components/navigation/vertical/components/basic/basic.component.ts @@ -10,7 +10,6 @@ import { FuseUtilsService } from '@fuse/services/utils/utils.service'; @Component({ selector : 'fuse-vertical-navigation-basic-item', templateUrl : './basic.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseVerticalNavigationBasicItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/vertical/components/collapsable/collapsable.component.ts b/src/@fuse/components/navigation/vertical/components/collapsable/collapsable.component.ts index 6c944fcd..5597d28e 100644 --- a/src/@fuse/components/navigation/vertical/components/collapsable/collapsable.component.ts +++ b/src/@fuse/components/navigation/vertical/components/collapsable/collapsable.component.ts @@ -11,7 +11,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-vertical-navigation-collapsable-item', templateUrl : './collapsable.component.html', - styles : [], animations : fuseAnimations, changeDetection: ChangeDetectionStrategy.OnPush }) diff --git a/src/@fuse/components/navigation/vertical/components/divider/divider.component.ts b/src/@fuse/components/navigation/vertical/components/divider/divider.component.ts index d5178ee6..570c244a 100644 --- a/src/@fuse/components/navigation/vertical/components/divider/divider.component.ts +++ b/src/@fuse/components/navigation/vertical/components/divider/divider.component.ts @@ -8,7 +8,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-vertical-navigation-divider-item', templateUrl : './divider.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseVerticalNavigationDividerItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/vertical/components/group/group.component.ts b/src/@fuse/components/navigation/vertical/components/group/group.component.ts index 614f5c4e..1e401c2b 100644 --- a/src/@fuse/components/navigation/vertical/components/group/group.component.ts +++ b/src/@fuse/components/navigation/vertical/components/group/group.component.ts @@ -9,7 +9,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-vertical-navigation-group-item', templateUrl : './group.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseVerticalNavigationGroupItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/vertical/components/spacer/spacer.component.ts b/src/@fuse/components/navigation/vertical/components/spacer/spacer.component.ts index ca927031..a598cec7 100644 --- a/src/@fuse/components/navigation/vertical/components/spacer/spacer.component.ts +++ b/src/@fuse/components/navigation/vertical/components/spacer/spacer.component.ts @@ -8,7 +8,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-vertical-navigation-spacer-item', templateUrl : './spacer.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseVerticalNavigationSpacerItemComponent implements OnInit, OnDestroy diff --git a/src/app/modules/admin/docs/changelog/changelog.ts b/src/app/modules/admin/docs/changelog/changelog.ts index afccc37b..ac31c8c3 100644 --- a/src/app/modules/admin/docs/changelog/changelog.ts +++ b/src/app/modules/admin/docs/changelog/changelog.ts @@ -4,7 +4,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'; @Component({ selector : 'changelog', templateUrl : './changelog.html', - styles : [''], changeDetection: ChangeDetectionStrategy.OnPush }) export class ChangelogComponent diff --git a/src/app/modules/admin/docs/guides/authentication/jwt/jwt.ts b/src/app/modules/admin/docs/guides/authentication/jwt/jwt.ts index 12492dc4..1e2824ad 100644 --- a/src/app/modules/admin/docs/guides/authentication/jwt/jwt.ts +++ b/src/app/modules/admin/docs/guides/authentication/jwt/jwt.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'jwt', - templateUrl: './jwt.html', - styles : [''] + templateUrl: './jwt.html' }) export class JwtComponent { diff --git a/src/app/modules/admin/docs/guides/customization/component-theming/component-theming.ts b/src/app/modules/admin/docs/guides/customization/component-theming/component-theming.ts index 9b40852c..6c9c0f11 100644 --- a/src/app/modules/admin/docs/guides/customization/component-theming/component-theming.ts +++ b/src/app/modules/admin/docs/guides/customization/component-theming/component-theming.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'component-theming', - templateUrl: './component-theming.html', - styles : [''] + templateUrl: './component-theming.html' }) export class ComponentThemingComponent { diff --git a/src/app/modules/admin/docs/guides/customization/multi-language/multi-language.ts b/src/app/modules/admin/docs/guides/customization/multi-language/multi-language.ts index 19d87f6d..2ea14cdc 100644 --- a/src/app/modules/admin/docs/guides/customization/multi-language/multi-language.ts +++ b/src/app/modules/admin/docs/guides/customization/multi-language/multi-language.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'multi-language', - templateUrl: './multi-language.html', - styles : [''] + templateUrl: './multi-language.html' }) export class MultiLanguageCustomizationComponent { diff --git a/src/app/modules/admin/docs/guides/customization/page-layouts/page-layouts.ts b/src/app/modules/admin/docs/guides/customization/page-layouts/page-layouts.ts index 740efbeb..7be8cdc8 100644 --- a/src/app/modules/admin/docs/guides/customization/page-layouts/page-layouts.ts +++ b/src/app/modules/admin/docs/guides/customization/page-layouts/page-layouts.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'page-layouts', - templateUrl: './page-layouts.html', - styles : [''] + templateUrl: './page-layouts.html' }) export class PageLayoutsComponent { diff --git a/src/app/modules/admin/docs/guides/customization/splash-screen/splash-screen.ts b/src/app/modules/admin/docs/guides/customization/splash-screen/splash-screen.ts index b16e097d..cb11c1ed 100644 --- a/src/app/modules/admin/docs/guides/customization/splash-screen/splash-screen.ts +++ b/src/app/modules/admin/docs/guides/customization/splash-screen/splash-screen.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'splash-screen', - templateUrl: './splash-screen.html', - styles : [''] + templateUrl: './splash-screen.html' }) export class SplashScreenCustomizationComponent { diff --git a/src/app/modules/admin/docs/guides/customization/tailwindcss/tailwindcss.ts b/src/app/modules/admin/docs/guides/customization/tailwindcss/tailwindcss.ts index 00db40a8..7429673f 100644 --- a/src/app/modules/admin/docs/guides/customization/tailwindcss/tailwindcss.ts +++ b/src/app/modules/admin/docs/guides/customization/tailwindcss/tailwindcss.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'tailwindcss', - templateUrl: './tailwindcss.html', - styles : [''] + templateUrl: './tailwindcss.html' }) export class TailwindCSSComponent { diff --git a/src/app/modules/admin/docs/guides/customization/theme-layouts/theme-layouts.ts b/src/app/modules/admin/docs/guides/customization/theme-layouts/theme-layouts.ts index 181af81f..7ba20a89 100644 --- a/src/app/modules/admin/docs/guides/customization/theme-layouts/theme-layouts.ts +++ b/src/app/modules/admin/docs/guides/customization/theme-layouts/theme-layouts.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'theme-layouts', - templateUrl: './theme-layouts.html', - styles : [''] + templateUrl: './theme-layouts.html' }) export class ThemeLayoutsComponent { diff --git a/src/app/modules/admin/docs/guides/customization/theming/theming.ts b/src/app/modules/admin/docs/guides/customization/theming/theming.ts index 82e7f1d6..7fbf64f7 100644 --- a/src/app/modules/admin/docs/guides/customization/theming/theming.ts +++ b/src/app/modules/admin/docs/guides/customization/theming/theming.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'theming', - templateUrl: './theming.html', - styles : [''] + templateUrl: './theming.html' }) export class ThemingComponent { diff --git a/src/app/modules/admin/docs/guides/development/component-structure/component-structure.ts b/src/app/modules/admin/docs/guides/development/component-structure/component-structure.ts index 961bc3a7..100bd236 100644 --- a/src/app/modules/admin/docs/guides/development/component-structure/component-structure.ts +++ b/src/app/modules/admin/docs/guides/development/component-structure/component-structure.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'component-structure', - templateUrl: './component-structure.html', - styles : [''] + templateUrl: './component-structure.html' }) export class ComponentStructureComponent { diff --git a/src/app/modules/admin/docs/guides/development/deployment/deployment.ts b/src/app/modules/admin/docs/guides/development/deployment/deployment.ts index f3fad75f..1a705784 100644 --- a/src/app/modules/admin/docs/guides/development/deployment/deployment.ts +++ b/src/app/modules/admin/docs/guides/development/deployment/deployment.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'deployment', - templateUrl: './deployment.html', - styles : [''] + templateUrl: './deployment.html' }) export class DeploymentComponent { diff --git a/src/app/modules/admin/docs/guides/development/starter-kit/starter-kit.ts b/src/app/modules/admin/docs/guides/development/starter-kit/starter-kit.ts index 51c714f3..0421ce3c 100644 --- a/src/app/modules/admin/docs/guides/development/starter-kit/starter-kit.ts +++ b/src/app/modules/admin/docs/guides/development/starter-kit/starter-kit.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'starter-kit', - templateUrl: './starter-kit.html', - styles : [''] + templateUrl: './starter-kit.html' }) export class StarterKitComponent { diff --git a/src/app/modules/admin/docs/guides/development/updating/updating.ts b/src/app/modules/admin/docs/guides/development/updating/updating.ts index a7bfb3d5..764a1c5a 100644 --- a/src/app/modules/admin/docs/guides/development/updating/updating.ts +++ b/src/app/modules/admin/docs/guides/development/updating/updating.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'updating', - templateUrl: './updating.html', - styles : [''] + templateUrl: './updating.html' }) export class UpdatingComponent { diff --git a/src/app/modules/admin/docs/guides/getting-started/installation/installation.ts b/src/app/modules/admin/docs/guides/getting-started/installation/installation.ts index b892245b..ee0d1e89 100644 --- a/src/app/modules/admin/docs/guides/getting-started/installation/installation.ts +++ b/src/app/modules/admin/docs/guides/getting-started/installation/installation.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'installation', - templateUrl: './installation.html', - styles : [''] + templateUrl: './installation.html' }) export class InstallationComponent { diff --git a/src/app/modules/admin/docs/guides/getting-started/introduction/introduction.ts b/src/app/modules/admin/docs/guides/getting-started/introduction/introduction.ts index 05d3c4d1..68200b55 100644 --- a/src/app/modules/admin/docs/guides/getting-started/introduction/introduction.ts +++ b/src/app/modules/admin/docs/guides/getting-started/introduction/introduction.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'introduction', - templateUrl: './introduction.html', - styles : [''] + templateUrl: './introduction.html' }) export class IntroductionComponent { diff --git a/src/app/modules/admin/docs/guides/getting-started/prerequisites/prerequisites.ts b/src/app/modules/admin/docs/guides/getting-started/prerequisites/prerequisites.ts index 64c3bda4..64e2c483 100644 --- a/src/app/modules/admin/docs/guides/getting-started/prerequisites/prerequisites.ts +++ b/src/app/modules/admin/docs/guides/getting-started/prerequisites/prerequisites.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'prerequisites', - templateUrl: './prerequisites.html', - styles : [''] + templateUrl: './prerequisites.html' }) export class PrerequisitesComponent { diff --git a/src/app/modules/admin/docs/guides/getting-started/serving/serving.ts b/src/app/modules/admin/docs/guides/getting-started/serving/serving.ts index a1d8630d..95c11e09 100644 --- a/src/app/modules/admin/docs/guides/getting-started/serving/serving.ts +++ b/src/app/modules/admin/docs/guides/getting-started/serving/serving.ts @@ -3,8 +3,7 @@ import { GuidesComponent } from 'app/modules/admin/docs/guides/guides.component' @Component({ selector : 'serving', - templateUrl: './serving.html', - styles : [''] + templateUrl: './serving.html' }) export class ServingComponent { diff --git a/src/app/modules/admin/ui/fuse-components/components/card/card.component.ts b/src/app/modules/admin/ui/fuse-components/components/card/card.component.ts index 3e712d91..3fdca70f 100644 --- a/src/app/modules/admin/ui/fuse-components/components/card/card.component.ts +++ b/src/app/modules/admin/ui/fuse-components/components/card/card.component.ts @@ -3,8 +3,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'card', - templateUrl: './card.component.html', - styles : [''] + templateUrl: './card.component.html' }) export class CardComponent { diff --git a/src/app/modules/admin/ui/fuse-components/components/date-range/date-range.component.ts b/src/app/modules/admin/ui/fuse-components/components/date-range/date-range.component.ts index f051ebc9..c3752009 100644 --- a/src/app/modules/admin/ui/fuse-components/components/date-range/date-range.component.ts +++ b/src/app/modules/admin/ui/fuse-components/components/date-range/date-range.component.ts @@ -3,8 +3,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'date-range', - templateUrl: './date-range.component.html', - styles : [''] + templateUrl: './date-range.component.html' }) export class DateRangeComponent { diff --git a/src/app/modules/admin/ui/fuse-components/components/drawer/drawer.component.ts b/src/app/modules/admin/ui/fuse-components/components/drawer/drawer.component.ts index b7791962..4a92348a 100644 --- a/src/app/modules/admin/ui/fuse-components/components/drawer/drawer.component.ts +++ b/src/app/modules/admin/ui/fuse-components/components/drawer/drawer.component.ts @@ -4,8 +4,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'drawer', - templateUrl: './drawer.component.html', - styles : [''] + templateUrl: './drawer.component.html' }) export class DrawerComponent { diff --git a/src/app/modules/admin/ui/fuse-components/components/fullscreen/fullscreen.component.ts b/src/app/modules/admin/ui/fuse-components/components/fullscreen/fullscreen.component.ts index 4d4020cb..e10de5db 100644 --- a/src/app/modules/admin/ui/fuse-components/components/fullscreen/fullscreen.component.ts +++ b/src/app/modules/admin/ui/fuse-components/components/fullscreen/fullscreen.component.ts @@ -3,8 +3,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'fullscreen', - templateUrl: './fullscreen.component.html', - styles : [''] + templateUrl: './fullscreen.component.html' }) export class FullscreenComponent { diff --git a/src/app/modules/admin/ui/fuse-components/components/highlight/highlight.component.ts b/src/app/modules/admin/ui/fuse-components/components/highlight/highlight.component.ts index 03cf4e4e..63b4cfe7 100644 --- a/src/app/modules/admin/ui/fuse-components/components/highlight/highlight.component.ts +++ b/src/app/modules/admin/ui/fuse-components/components/highlight/highlight.component.ts @@ -3,8 +3,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'highlight', - templateUrl: './highlight.component.html', - styles : [''] + templateUrl: './highlight.component.html' }) export class HighlightComponent { diff --git a/src/app/modules/admin/ui/fuse-components/components/masonry/masonry.component.ts b/src/app/modules/admin/ui/fuse-components/components/masonry/masonry.component.ts index beef3401..aeb15824 100644 --- a/src/app/modules/admin/ui/fuse-components/components/masonry/masonry.component.ts +++ b/src/app/modules/admin/ui/fuse-components/components/masonry/masonry.component.ts @@ -6,8 +6,7 @@ import { takeUntil } from 'rxjs/operators'; @Component({ selector : 'masonry', - templateUrl: './masonry.component.html', - styles : [''] + templateUrl: './masonry.component.html' }) export class MasonryComponent implements OnInit { diff --git a/src/app/modules/admin/ui/fuse-components/components/navigation/navigation.component.ts b/src/app/modules/admin/ui/fuse-components/components/navigation/navigation.component.ts index b8dd4b3e..d61fb98a 100644 --- a/src/app/modules/admin/ui/fuse-components/components/navigation/navigation.component.ts +++ b/src/app/modules/admin/ui/fuse-components/components/navigation/navigation.component.ts @@ -4,8 +4,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'navigation', - templateUrl: './navigation.component.html', - styles : [''] + templateUrl: './navigation.component.html' }) export class NavigationComponent { diff --git a/src/app/modules/admin/ui/fuse-components/directives/scroll-reset/scroll-reset.component.ts b/src/app/modules/admin/ui/fuse-components/directives/scroll-reset/scroll-reset.component.ts index c06e5fa2..2ff74bcc 100644 --- a/src/app/modules/admin/ui/fuse-components/directives/scroll-reset/scroll-reset.component.ts +++ b/src/app/modules/admin/ui/fuse-components/directives/scroll-reset/scroll-reset.component.ts @@ -3,8 +3,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'scroll-reset', - templateUrl: './scroll-reset.component.html', - styles : [''] + templateUrl: './scroll-reset.component.html' }) export class ScrollResetComponent { diff --git a/src/app/modules/admin/ui/fuse-components/directives/scrollbar/scrollbar.component.ts b/src/app/modules/admin/ui/fuse-components/directives/scrollbar/scrollbar.component.ts index cc0baf33..0a5b35c8 100644 --- a/src/app/modules/admin/ui/fuse-components/directives/scrollbar/scrollbar.component.ts +++ b/src/app/modules/admin/ui/fuse-components/directives/scrollbar/scrollbar.component.ts @@ -3,8 +3,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'scrollbar', - templateUrl: './scrollbar.component.html', - styles : [''] + templateUrl: './scrollbar.component.html' }) export class ScrollbarComponent { diff --git a/src/app/modules/admin/ui/fuse-components/libraries/mock-api/mock-api.component.ts b/src/app/modules/admin/ui/fuse-components/libraries/mock-api/mock-api.component.ts index b43bb89b..eb8ac20f 100644 --- a/src/app/modules/admin/ui/fuse-components/libraries/mock-api/mock-api.component.ts +++ b/src/app/modules/admin/ui/fuse-components/libraries/mock-api/mock-api.component.ts @@ -3,8 +3,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'mock-api', - templateUrl: './mock-api.component.html', - styles : [''] + templateUrl: './mock-api.component.html' }) export class MockApiComponent { diff --git a/src/app/modules/admin/ui/fuse-components/pipes/find-by-key/find-by-key.component.ts b/src/app/modules/admin/ui/fuse-components/pipes/find-by-key/find-by-key.component.ts index bbd048be..f04c2750 100644 --- a/src/app/modules/admin/ui/fuse-components/pipes/find-by-key/find-by-key.component.ts +++ b/src/app/modules/admin/ui/fuse-components/pipes/find-by-key/find-by-key.component.ts @@ -3,8 +3,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'find-by-key', - templateUrl: './find-by-key.component.html', - styles : [''] + templateUrl: './find-by-key.component.html' }) export class FindByKeyComponent { diff --git a/src/app/modules/admin/ui/fuse-components/services/config/config.component.ts b/src/app/modules/admin/ui/fuse-components/services/config/config.component.ts index f17d7055..8c5adb85 100644 --- a/src/app/modules/admin/ui/fuse-components/services/config/config.component.ts +++ b/src/app/modules/admin/ui/fuse-components/services/config/config.component.ts @@ -3,8 +3,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'config', - templateUrl: './config.component.html', - styles : [''] + templateUrl: './config.component.html' }) export class ConfigComponent { diff --git a/src/app/modules/admin/ui/fuse-components/services/media-watcher/media-watcher.component.ts b/src/app/modules/admin/ui/fuse-components/services/media-watcher/media-watcher.component.ts index 875ce7a5..1e1eb2cc 100644 --- a/src/app/modules/admin/ui/fuse-components/services/media-watcher/media-watcher.component.ts +++ b/src/app/modules/admin/ui/fuse-components/services/media-watcher/media-watcher.component.ts @@ -3,8 +3,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'media-watcher', - templateUrl: './media-watcher.component.html', - styles : [''] + templateUrl: './media-watcher.component.html' }) export class MediaWatcherComponent { diff --git a/src/app/modules/admin/ui/fuse-components/services/splash-screen/splash-screen.component.ts b/src/app/modules/admin/ui/fuse-components/services/splash-screen/splash-screen.component.ts index 9b0e45ce..553549e8 100644 --- a/src/app/modules/admin/ui/fuse-components/services/splash-screen/splash-screen.component.ts +++ b/src/app/modules/admin/ui/fuse-components/services/splash-screen/splash-screen.component.ts @@ -3,8 +3,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'splash-screen', - templateUrl: './splash-screen.component.html', - styles : [''] + templateUrl: './splash-screen.component.html' }) export class SplashScreenComponent { diff --git a/src/app/modules/admin/ui/fuse-components/validators/must-match/must-match.component.ts b/src/app/modules/admin/ui/fuse-components/validators/must-match/must-match.component.ts index 76f2577b..f08170d6 100644 --- a/src/app/modules/admin/ui/fuse-components/validators/must-match/must-match.component.ts +++ b/src/app/modules/admin/ui/fuse-components/validators/must-match/must-match.component.ts @@ -3,8 +3,7 @@ import { FuseComponentsComponent } from 'app/modules/admin/ui/fuse-components/fu @Component({ selector : 'must-match', - templateUrl: './must-match.component.html', - styles : [''] + templateUrl: './must-match.component.html' }) export class MustMatchComponent { diff --git a/src/app/modules/admin/ui/other-components/common/overview/overview.component.ts b/src/app/modules/admin/ui/other-components/common/overview/overview.component.ts index bafb821f..6085d725 100644 --- a/src/app/modules/admin/ui/other-components/common/overview/overview.component.ts +++ b/src/app/modules/admin/ui/other-components/common/overview/overview.component.ts @@ -3,8 +3,7 @@ import { OtherComponentsComponent } from 'app/modules/admin/ui/other-components/ @Component({ selector : 'overview', - templateUrl: './overview.component.html', - styles : [''] + templateUrl: './overview.component.html' }) export class OverviewComponent { diff --git a/src/app/modules/admin/ui/other-components/third-party/apex-charts/apex-charts.component.ts b/src/app/modules/admin/ui/other-components/third-party/apex-charts/apex-charts.component.ts index ac8b7e6e..a2778afa 100644 --- a/src/app/modules/admin/ui/other-components/third-party/apex-charts/apex-charts.component.ts +++ b/src/app/modules/admin/ui/other-components/third-party/apex-charts/apex-charts.component.ts @@ -3,8 +3,7 @@ import { OtherComponentsComponent } from 'app/modules/admin/ui/other-components/ @Component({ selector : 'apex-charts', - templateUrl: './apex-charts.component.html', - styles : [''] + templateUrl: './apex-charts.component.html' }) export class ApexChartsComponent { diff --git a/src/app/modules/admin/ui/other-components/third-party/full-calendar/full-calendar.component.ts b/src/app/modules/admin/ui/other-components/third-party/full-calendar/full-calendar.component.ts index 6a8fafcd..ab0c9594 100644 --- a/src/app/modules/admin/ui/other-components/third-party/full-calendar/full-calendar.component.ts +++ b/src/app/modules/admin/ui/other-components/third-party/full-calendar/full-calendar.component.ts @@ -3,8 +3,7 @@ import { OtherComponentsComponent } from 'app/modules/admin/ui/other-components/ @Component({ selector : 'full-calendar', - templateUrl: './full-calendar.component.html', - styles : [''] + templateUrl: './full-calendar.component.html' }) export class FullCalendarComponent { diff --git a/src/app/modules/admin/ui/other-components/third-party/ngx-markdown/ngx-markdown.component.ts b/src/app/modules/admin/ui/other-components/third-party/ngx-markdown/ngx-markdown.component.ts index eabb5f6b..5d7b2386 100644 --- a/src/app/modules/admin/ui/other-components/third-party/ngx-markdown/ngx-markdown.component.ts +++ b/src/app/modules/admin/ui/other-components/third-party/ngx-markdown/ngx-markdown.component.ts @@ -3,8 +3,7 @@ import { OtherComponentsComponent } from 'app/modules/admin/ui/other-components/ @Component({ selector : 'ngx-markdown', - templateUrl: './ngx-markdown.component.html', - styles : [''] + templateUrl: './ngx-markdown.component.html' }) export class NgxMarkdownComponent { diff --git a/src/app/modules/admin/ui/other-components/third-party/quill-editor/quill-editor.component.ts b/src/app/modules/admin/ui/other-components/third-party/quill-editor/quill-editor.component.ts index 18c0708f..01301401 100644 --- a/src/app/modules/admin/ui/other-components/third-party/quill-editor/quill-editor.component.ts +++ b/src/app/modules/admin/ui/other-components/third-party/quill-editor/quill-editor.component.ts @@ -3,8 +3,7 @@ import { OtherComponentsComponent } from 'app/modules/admin/ui/other-components/ @Component({ selector : 'quill-editor', - templateUrl: './quill-editor.component.html', - styles : [''] + templateUrl: './quill-editor.component.html' }) export class QuillEditorComponent { From f6bf0fb5d360746a65011651f78db7c1ae9732c0 Mon Sep 17 00:00:00 2001 From: sercan Date: Wed, 4 Aug 2021 09:54:35 +0300 Subject: [PATCH 02/11] (fuse/confirmation) Fixed: Dialog size cannot be updated using dialogRef's "updateSize" method --- .../services/confirmation/confirmation.service.ts | 3 ++- .../confirmation/dialog/dialog.component.html | 4 ++-- .../confirmation/dialog/dialog.component.ts | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/@fuse/services/confirmation/confirmation.service.ts b/src/@fuse/services/confirmation/confirmation.service.ts index 10fe2e9a..b22ccae5 100644 --- a/src/@fuse/services/confirmation/confirmation.service.ts +++ b/src/@fuse/services/confirmation/confirmation.service.ts @@ -51,7 +51,8 @@ export class FuseConfirmationService return this._matDialog.open(FuseConfirmationDialogComponent, { autoFocus : false, disableClose: !userConfig.dismissible, - data : userConfig + data : userConfig, + panelClass : 'fuse-confirmation-dialog-panel' }); } } diff --git a/src/@fuse/services/confirmation/dialog/dialog.component.html b/src/@fuse/services/confirmation/dialog/dialog.component.html index f8de9884..1d15451d 100644 --- a/src/@fuse/services/confirmation/dialog/dialog.component.html +++ b/src/@fuse/services/confirmation/dialog/dialog.component.html @@ -1,4 +1,4 @@ -
+
@@ -14,7 +14,7 @@ -
+
diff --git a/src/@fuse/services/confirmation/dialog/dialog.component.ts b/src/@fuse/services/confirmation/dialog/dialog.component.ts index 52d718c3..4dd92d3f 100644 --- a/src/@fuse/services/confirmation/dialog/dialog.component.ts +++ b/src/@fuse/services/confirmation/dialog/dialog.component.ts @@ -5,6 +5,20 @@ import { FuseConfirmationConfig } from '@fuse/services/confirmation/confirmation @Component({ selector : 'fuse-confirmation-dialog', templateUrl : './dialog.component.html', + styles : [ + /* language=SCSS */ + ` + .fuse-confirmation-dialog-panel { + @screen md { + @apply w-128; + } + + .mat-dialog-container { + padding: 0 !important; + } + } + ` + ], encapsulation: ViewEncapsulation.None }) export class FuseConfirmationDialogComponent implements OnInit From 7c402670a1ed0aff015f60a3fe051eebdba8c2de Mon Sep 17 00:00:00 2001 From: sercan Date: Wed, 4 Aug 2021 10:10:07 +0300 Subject: [PATCH 03/11] (docs/confirmation) Updated the docs of the confirmation dialog --- .../confirmation-dialog.component.html | 2 +- .../confirmation/confirmation.component.html | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/app/modules/admin/ui/confirmation-dialog/confirmation-dialog.component.html b/src/app/modules/admin/ui/confirmation-dialog/confirmation-dialog.component.html index 5fa36942..a815ba47 100644 --- a/src/app/modules/admin/ui/confirmation-dialog/confirmation-dialog.component.html +++ b/src/app/modules/admin/ui/confirmation-dialog/confirmation-dialog.component.html @@ -24,7 +24,7 @@

- One of the repetitive and tedious jobs in Angular is to create confirmation dialogs. Since dialogs require their own component + One of the repetitive and tedious jobs in Angular is to create confirmation dialogs. Since dialogs require their own components you have to either create a separate component every time you need a confirmation dialog or you have to create your own confirmation dialog system that can be configured.

diff --git a/src/app/modules/admin/ui/fuse-components/services/confirmation/confirmation.component.html b/src/app/modules/admin/ui/fuse-components/services/confirmation/confirmation.component.html index 90aa2def..f52a1d7b 100644 --- a/src/app/modules/admin/ui/fuse-components/services/confirmation/confirmation.component.html +++ b/src/app/modules/admin/ui/fuse-components/services/confirmation/confirmation.component.html @@ -208,7 +208,21 @@

MatDialogRef

Since FuseConfirmationService uses MatDialog behind the scenes, it returns - a reference to the created dialog. Using that reference, you can access to the user input: + a reference to the created dialog. You can use all available methods from that reference such as + updateSize and updatePosition to further customize the dialog. +

+

+ See + + https://material.angular.io/components/dialog/api#MatDialogRef + + for the complete list of available methods. +

+

+ Using the reference, you can also access to the user input: