From 0116f9bb0e3111242ab4fdc166efb0d2c2c93a59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Fri, 26 Apr 2024 19:44:50 +0300 Subject: [PATCH] Code format --- src/app/components/api/filterservice.ts | 6 +++--- src/app/components/autocomplete/autocomplete.ts | 4 +--- src/app/components/menubar/menubar.ts | 1 - src/app/components/treeselect/treeselect.ts | 2 +- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/app/components/api/filterservice.ts b/src/app/components/api/filterservice.ts index f9950b6751d..7d97e0d3d66 100644 --- a/src/app/components/api/filterservice.ts +++ b/src/app/components/api/filterservice.ts @@ -238,7 +238,7 @@ export class FilterService { if (value === undefined || value === null) { return false; } - + return value.getTime() < filter.getTime(); }, @@ -250,8 +250,8 @@ export class FilterService { if (value === undefined || value === null) { return false; } - value.setHours(0,0,0,0); - + value.setHours(0, 0, 0, 0); + return value.getTime() > filter.getTime(); } }; diff --git a/src/app/components/autocomplete/autocomplete.ts b/src/app/components/autocomplete/autocomplete.ts index 9a8acca5cf9..fb19fd8c32b 100755 --- a/src/app/components/autocomplete/autocomplete.ts +++ b/src/app/components/autocomplete/autocomplete.ts @@ -773,9 +773,7 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr inputValue = computed(() => { const modelValue = this.modelValue(); - const selectedOption = this.optionValueSelected - ? (this.suggestions || []).find((item: any) => ObjectUtils.resolveFieldData(item, this.optionValue) === modelValue) - : modelValue; + const selectedOption = this.optionValueSelected ? (this.suggestions || []).find((item: any) => ObjectUtils.resolveFieldData(item, this.optionValue) === modelValue) : modelValue; if (modelValue) { if (typeof modelValue === 'object' || this.optionValueSelected) { diff --git a/src/app/components/menubar/menubar.ts b/src/app/components/menubar/menubar.ts index 82cf2a30f17..600f2a1e9d6 100755 --- a/src/app/components/menubar/menubar.ts +++ b/src/app/components/menubar/menubar.ts @@ -1049,7 +1049,6 @@ export class Menubar implements AfterContentInit, OnDestroy, OnInit { const anchorElement = element && DomHandler.findSingle(element, 'a[data-pc-section="action"]'); anchorElement ? anchorElement.click() : element && element.click(); - } event.preventDefault(); diff --git a/src/app/components/treeselect/treeselect.ts b/src/app/components/treeselect/treeselect.ts index 9c4f9dd200e..f2527508518 100755 --- a/src/app/components/treeselect/treeselect.ts +++ b/src/app/components/treeselect/treeselect.ts @@ -26,7 +26,7 @@ import { SearchIcon } from 'primeng/icons/search'; import { TimesIcon } from 'primeng/icons/times'; import { Overlay, OverlayModule } from 'primeng/overlay'; import { RippleModule } from 'primeng/ripple'; -import {Tree, TreeFilterEvent, TreeModule, TreeNodeSelectEvent, TreeNodeUnSelectEvent} from 'primeng/tree'; +import { Tree, TreeFilterEvent, TreeModule, TreeNodeSelectEvent, TreeNodeUnSelectEvent } from 'primeng/tree'; import { ObjectUtils, UniqueComponentId } from 'primeng/utils'; import { Nullable } from 'primeng/ts-helpers'; import { AutoFocusModule } from 'primeng/autofocus';