From 05db9b9575ecccb81a0ecab44d439c3befa364af Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=87etin?=
<69278826+cetincakiroglu@users.noreply.github.com>
Date: Tue, 9 Apr 2024 13:19:23 +0300
Subject: [PATCH] Code format
---
src/app/components/multiselect/multiselect.ts | 14 +++---
.../pages/templates/apollo/apolloseparator.ts | 2 +-
.../pages/templates/diamond/diamondlogo.ts | 28 +++++------
.../pages/templates/templates.module.ts | 2 +-
.../showcase/pages/templates/ultima/ultima.ts | 16 +++++--
.../pages/templates/ultima/ultimalogo.ts | 46 +++++++++----------
.../pages/templates/verona/veronaseparator.ts | 2 +-
7 files changed, 59 insertions(+), 51 deletions(-)
diff --git a/src/app/components/multiselect/multiselect.ts b/src/app/components/multiselect/multiselect.ts
index 33ac348fb39..02133ce436f 100755
--- a/src/app/components/multiselect/multiselect.ts
+++ b/src/app/components/multiselect/multiselect.ts
@@ -1841,17 +1841,15 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft
});
} else {
// pre-selected disabled options should always be selected.
- const selectedDisabledOptions = this.getAllVisibleAndNonVisibleOptions()
- .filter((option) => this.isSelected(option) && (this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : option && option.disabled !== undefined ? option.disabled : false))
+ const selectedDisabledOptions = this.getAllVisibleAndNonVisibleOptions().filter(
+ (option) => this.isSelected(option) && (this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : option && option.disabled !== undefined ? option.disabled : false)
+ );
const visibleOptions = this.allSelected()
- ? this.visibleOptions()
- .filter((option) => !this.isValidOption(option) && this.isSelected(option))
- : this.visibleOptions()
- .filter((option) => this.isSelected(option) || this.isValidOption(option));
+ ? this.visibleOptions().filter((option) => !this.isValidOption(option) && this.isSelected(option))
+ : this.visibleOptions().filter((option) => this.isSelected(option) || this.isValidOption(option));
- const optionValues = [...selectedDisabledOptions, ...visibleOptions]
- .map((option) => this.getOptionValue(option));
+ const optionValues = [...selectedDisabledOptions, ...visibleOptions].map((option) => this.getOptionValue(option));
const value = [...new Set(optionValues)];
this.updateModel(value, event);
diff --git a/src/app/showcase/pages/templates/apollo/apolloseparator.ts b/src/app/showcase/pages/templates/apollo/apolloseparator.ts
index b7bc07b072a..d5ecb3386c0 100644
--- a/src/app/showcase/pages/templates/apollo/apolloseparator.ts
+++ b/src/app/showcase/pages/templates/apollo/apolloseparator.ts
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
standalone: true,
selector: 'apollo-separator',
template: `
-
+
`
})
export class DiamondLogo {}
diff --git a/src/app/showcase/pages/templates/templates.module.ts b/src/app/showcase/pages/templates/templates.module.ts
index 8ae59fa186c..57f0e41015a 100644
--- a/src/app/showcase/pages/templates/templates.module.ts
+++ b/src/app/showcase/pages/templates/templates.module.ts
@@ -6,6 +6,6 @@ import { TemplatesComponent } from './templates.component';
@NgModule({
declarations: [TemplatesComponent],
- imports: [CommonModule, TemplatesRoutingModule],
+ imports: [CommonModule, TemplatesRoutingModule]
})
export class TemplatesModule {}
diff --git a/src/app/showcase/pages/templates/ultima/ultima.ts b/src/app/showcase/pages/templates/ultima/ultima.ts
index 78bf0e633fd..cbf85320dcf 100644
--- a/src/app/showcase/pages/templates/ultima/ultima.ts
+++ b/src/app/showcase/pages/templates/ultima/ultima.ts
@@ -13,7 +13,18 @@ import { UltimaSeparator } from './ultimaseparator';
@Component({
standalone: true,
selector: 'ultima-page',
- imports: [TemplateHeroModule, TemplateSeparatorModule, TemplateFeaturesAnimationModule, TemplateFeaturesModule, TemplateConfigurationModule, TemplateFeaturesAnimationModule, TemplateRelatedModule, TemplateYoutubeModule, TemplateLicenseModule, UltimaSeparator],
+ imports: [
+ TemplateHeroModule,
+ TemplateSeparatorModule,
+ TemplateFeaturesAnimationModule,
+ TemplateFeaturesModule,
+ TemplateConfigurationModule,
+ TemplateFeaturesAnimationModule,
+ TemplateRelatedModule,
+ TemplateYoutubeModule,
+ TemplateLicenseModule,
+ UltimaSeparator
+ ],
template: `
@@ -36,8 +47,7 @@ import { UltimaSeparator } from './ultimaseparator';
`
})
export class UltimaPage {
-
- ultimaLogo = UltimaLogo
+ ultimaLogo = UltimaLogo;
templateHeroData = {
pattern: 'https://primefaces.org/cdn/primeng/images/templates/ultima/ultima-hero-pattern.png',
diff --git a/src/app/showcase/pages/templates/ultima/ultimalogo.ts b/src/app/showcase/pages/templates/ultima/ultimalogo.ts
index ab032b8a87c..2ce47138688 100644
--- a/src/app/showcase/pages/templates/ultima/ultimalogo.ts
+++ b/src/app/showcase/pages/templates/ultima/ultimalogo.ts
@@ -5,29 +5,29 @@ import { Component } from '@angular/core';
selector: 'ultima-logo',
template: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
`
})
export class UltimaLogo {}
diff --git a/src/app/showcase/pages/templates/verona/veronaseparator.ts b/src/app/showcase/pages/templates/verona/veronaseparator.ts
index 6fc37e30cac..3dd5e41cdf8 100644
--- a/src/app/showcase/pages/templates/verona/veronaseparator.ts
+++ b/src/app/showcase/pages/templates/verona/veronaseparator.ts
@@ -41,4 +41,4 @@ import { Component } from '@angular/core';
`
})
-export class VeronaSeparator{}
+export class VeronaSeparator {}