From bb4b649871e6a1d9ef753f87b3b1a8b928de572a Mon Sep 17 00:00:00 2001 From: anastasiia_glushkova Date: Tue, 17 Dec 2024 13:43:28 +0100 Subject: [PATCH] feat(core): prettier fixes --- core/src/components/cat-avatar/cat-avatar.tsx | 2 +- core/src/components/cat-button/cat-button.tsx | 2 +- core/src/components/cat-checkbox/cat-checkbox.tsx | 4 ++-- core/src/components/cat-date-inline/cat-date-inline.tsx | 4 ++-- core/src/components/cat-date/cat-date.tsx | 2 +- core/src/components/cat-dropdown/cat-dropdown.tsx | 2 +- core/src/components/cat-input/cat-input.tsx | 2 +- core/src/components/cat-pagination/cat-pagination.tsx | 2 +- core/src/components/cat-radio/cat-radio.tsx | 2 +- core/src/components/cat-select/cat-select.tsx | 2 +- core/src/components/cat-tabs/cat-tabs.tsx | 2 +- core/src/components/cat-tag/cat-tag.tsx | 2 +- core/src/components/cat-textarea/cat-textarea.tsx | 2 +- core/src/components/cat-time/cat-time.tsx | 2 +- core/src/components/cat-toggle/cat-toggle.tsx | 4 ++-- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/core/src/components/cat-avatar/cat-avatar.tsx b/core/src/components/cat-avatar/cat-avatar.tsx index 30276832..069a49c5 100644 --- a/core/src/components/cat-avatar/cat-avatar.tsx +++ b/core/src/components/cat-avatar/cat-avatar.tsx @@ -8,7 +8,7 @@ import loadImg from '../../utils/load-img'; tag: 'cat-avatar', styleUrl: 'cat-avatar.scss', shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatAvatar { diff --git a/core/src/components/cat-button/cat-button.tsx b/core/src/components/cat-button/cat-button.tsx index c60e7e19..e22abafb 100644 --- a/core/src/components/cat-button/cat-button.tsx +++ b/core/src/components/cat-button/cat-button.tsx @@ -16,7 +16,7 @@ import { findClosest } from '../../utils/find-closest'; tag: 'cat-button', styleUrl: 'cat-button.scss', shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatButton { diff --git a/core/src/components/cat-checkbox/cat-checkbox.tsx b/core/src/components/cat-checkbox/cat-checkbox.tsx index 91fcafea..23d3e095 100644 --- a/core/src/components/cat-checkbox/cat-checkbox.tsx +++ b/core/src/components/cat-checkbox/cat-checkbox.tsx @@ -17,7 +17,7 @@ let nextUniqueId = 0; tag: 'cat-checkbox', styleUrls: ['cat-checkbox.scss'], shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatCheckbox { @@ -248,6 +248,6 @@ export class CatCheckbox { } private updateResolved() { - this.resolvedValue = this.checked ? (this.value ?? true) : (this.noValue ?? false); + this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false; } } diff --git a/core/src/components/cat-date-inline/cat-date-inline.tsx b/core/src/components/cat-date-inline/cat-date-inline.tsx index 5f71b744..eb4f67e3 100644 --- a/core/src/components/cat-date-inline/cat-date-inline.tsx +++ b/core/src/components/cat-date-inline/cat-date-inline.tsx @@ -15,7 +15,7 @@ let nextUniqueId = 0; tag: 'cat-date-inline', styleUrl: 'cat-date-inline.scss', shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatDateInline { @@ -453,7 +453,7 @@ export class CatDateInline { } else if (isSameMonth(this.viewDate, now) && (!minDate || minDate <= now)) { return isSameMonth(this.viewDate, date) && isSameDay(now, date); } - const minDay = isSameMonth(date, minDate) ? (minDate?.getDate() ?? 1) : 1; + const minDay = isSameMonth(date, minDate) ? minDate?.getDate() ?? 1 : 1; return isSameMonth(this.viewDate, date) && date.getDate() === minDay; } diff --git a/core/src/components/cat-date/cat-date.tsx b/core/src/components/cat-date/cat-date.tsx index b73daf92..aa5cafe0 100644 --- a/core/src/components/cat-date/cat-date.tsx +++ b/core/src/components/cat-date/cat-date.tsx @@ -12,7 +12,7 @@ import { catI18nRegistry as i18n } from '../cat-i18n/cat-i18n-registry'; tag: 'cat-date', styleUrl: 'cat-date.scss', shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatDate { diff --git a/core/src/components/cat-dropdown/cat-dropdown.tsx b/core/src/components/cat-dropdown/cat-dropdown.tsx index 48cd38de..18e6b821 100644 --- a/core/src/components/cat-dropdown/cat-dropdown.tsx +++ b/core/src/components/cat-dropdown/cat-dropdown.tsx @@ -243,7 +243,7 @@ export class CatDropdown { const elem = elems.shift(); trigger = elem?.hasAttribute('data-trigger') ? (elem as HTMLElement) - : (elem?.querySelector('[data-trigger]') ?? undefined); + : elem?.querySelector('[data-trigger]') ?? undefined; } if (!trigger) { trigger = firstTabbable(this.triggerSlot); diff --git a/core/src/components/cat-input/cat-input.tsx b/core/src/components/cat-input/cat-input.tsx index 7003289d..ed4e5361 100644 --- a/core/src/components/cat-input/cat-input.tsx +++ b/core/src/components/cat-input/cat-input.tsx @@ -24,7 +24,7 @@ let nextUniqueId = 0; tag: 'cat-input', styleUrl: 'cat-input.scss', shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatInput { diff --git a/core/src/components/cat-pagination/cat-pagination.tsx b/core/src/components/cat-pagination/cat-pagination.tsx index e340d31b..36126fd6 100644 --- a/core/src/components/cat-pagination/cat-pagination.tsx +++ b/core/src/components/cat-pagination/cat-pagination.tsx @@ -12,7 +12,7 @@ import { catI18nRegistry as i18n } from '../cat-i18n/cat-i18n-registry'; tag: 'cat-pagination', styleUrl: 'cat-pagination.scss', shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatPagination { diff --git a/core/src/components/cat-radio/cat-radio.tsx b/core/src/components/cat-radio/cat-radio.tsx index bc42efae..99257209 100644 --- a/core/src/components/cat-radio/cat-radio.tsx +++ b/core/src/components/cat-radio/cat-radio.tsx @@ -16,7 +16,7 @@ let nextUniqueId = 0; tag: 'cat-radio', styleUrl: 'cat-radio.scss', shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatRadio { diff --git a/core/src/components/cat-select/cat-select.tsx b/core/src/components/cat-select/cat-select.tsx index 26e43cd1..1dbc660f 100644 --- a/core/src/components/cat-select/cat-select.tsx +++ b/core/src/components/cat-select/cat-select.tsx @@ -111,7 +111,7 @@ let nextTagUniqueId = 0; tag: 'cat-select', styleUrl: 'cat-select.scss', shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatSelect { diff --git a/core/src/components/cat-tabs/cat-tabs.tsx b/core/src/components/cat-tabs/cat-tabs.tsx index 0ae90ed9..098eb18f 100644 --- a/core/src/components/cat-tabs/cat-tabs.tsx +++ b/core/src/components/cat-tabs/cat-tabs.tsx @@ -10,7 +10,7 @@ import { Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, St tag: 'cat-tabs', styleUrl: 'cat-tabs.scss', shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatTabs { diff --git a/core/src/components/cat-tag/cat-tag.tsx b/core/src/components/cat-tag/cat-tag.tsx index e9d22fc1..8e39b65a 100644 --- a/core/src/components/cat-tag/cat-tag.tsx +++ b/core/src/components/cat-tag/cat-tag.tsx @@ -15,7 +15,7 @@ let nextUniqueId = 0; tag: 'cat-tag', styleUrl: 'cat-tag.scss', shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatTag { diff --git a/core/src/components/cat-textarea/cat-textarea.tsx b/core/src/components/cat-textarea/cat-textarea.tsx index 5ab642a8..589432b7 100644 --- a/core/src/components/cat-textarea/cat-textarea.tsx +++ b/core/src/components/cat-textarea/cat-textarea.tsx @@ -20,7 +20,7 @@ let nextUniqueId = 0; tag: 'cat-textarea', styleUrl: 'cat-textarea.scss', shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatTextarea { diff --git a/core/src/components/cat-time/cat-time.tsx b/core/src/components/cat-time/cat-time.tsx index ea155979..ec07bd77 100644 --- a/core/src/components/cat-time/cat-time.tsx +++ b/core/src/components/cat-time/cat-time.tsx @@ -12,7 +12,7 @@ import { clampTime, isAfter, isBefore } from './cat-time-math'; tag: 'cat-time', styleUrl: 'cat-time.scss', shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatTime { diff --git a/core/src/components/cat-toggle/cat-toggle.tsx b/core/src/components/cat-toggle/cat-toggle.tsx index 85b21dfe..a6a13226 100644 --- a/core/src/components/cat-toggle/cat-toggle.tsx +++ b/core/src/components/cat-toggle/cat-toggle.tsx @@ -16,7 +16,7 @@ let nextUniqueId = 0; tag: 'cat-toggle', styleUrls: ['cat-toggle.scss'], shadow: { - delegatesFocus: true, + delegatesFocus: true } }) export class CatToggle { @@ -218,6 +218,6 @@ export class CatToggle { } private updateResolved() { - this.resolvedValue = this.checked ? (this.value ?? true) : (this.noValue ?? false); + this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false; } }