consistent decorator order

This commit is contained in:
sua yoo 2023-11-20 13:15:20 -08:00
parent 35ddc4de27
commit 812af7b615
No known key found for this signature in database
GPG Key ID: 5AD1B4C02D4F0567
10 changed files with 10 additions and 10 deletions

View File

@ -11,8 +11,8 @@ const sortByName = sortBy("name");
/**
* @event success
*/
@customElement("btrix-invite-form")
@localized()
@customElement("btrix-invite-form")
export class InviteForm extends LiteElement {
@property({ type: Object })
authState?: AuthState;

View File

@ -10,8 +10,8 @@ type LocaleNames = {
[L in LocaleCode]: string;
};
@customElement("btrix-locale-picker")
@localized()
@customElement("btrix-locale-picker")
export class LocalePicker extends LitElement {
@state()
private localeNames: LocaleNames = {} as LocaleNames;

View File

@ -8,8 +8,8 @@ import LiteElement, { html } from "../utils/LiteElement";
import { isAdmin } from "../utils/orgs";
import { SlInput } from "@shoelace-style/shoelace";
@customElement("btrix-orgs-list")
@localized()
@customElement("btrix-orgs-list")
export class OrgsList extends LiteElement {
@property({ type: Object })
userInfo?: CurrentUser;

View File

@ -23,8 +23,8 @@ const hiddenClassList = ["translate-x-2/3", "opacity-0", "pointer-events-none"];
*
* @event load Event on iframe load, with src URL
*/
@customElement("btrix-profile-browser")
@localized()
@customElement("btrix-profile-browser")
export class ProfileBrowser extends LiteElement {
@property({ type: Object })
authState!: AuthState;

View File

@ -36,8 +36,8 @@ const MIN_LENGTH = 2;
* @event on-change ExclusionChangeEvent
* @event on-add ExclusionAddEvent
*/
@customElement("btrix-queue-exclusion-form")
@localized()
@customElement("btrix-queue-exclusion-form")
export class QueueExclusionForm extends LiteElement {
@property({ type: Boolean })
isSubmitting = false;

View File

@ -17,8 +17,8 @@ export type HumanizeOptions = {
* <btrix-relative-duration value=${value}></btrix-relative-duration>
* ```
*/
@customElement("btrix-relative-duration")
@localized()
@customElement("btrix-relative-duration")
export class RelativeDuration extends LitElement {
@property({ type: String })
value?: string; // `new Date` compatible date format

View File

@ -27,8 +27,8 @@ const MAX_SEARCH_RESULTS = 10;
* @event on-select
* @event on-clear
*/
@customElement("btrix-search-combobox")
@localized()
@customElement("btrix-search-combobox")
export class SearchCombobox extends LitElement {
@property({ type: Array })
searchOptions: any[] = [];

View File

@ -20,8 +20,8 @@ const { PASSWORD_MINLENGTH, PASSWORD_MAXLENGTH, PASSWORD_MIN_SCORE } =
* @event authenticated
* @event unauthenticated
*/
@customElement("btrix-sign-up-form")
@localized()
@customElement("btrix-sign-up-form")
export class SignUpForm extends LiteElement {
/** Optonal read-only email, e.g. for invitations */
@property({ type: String })

View File

@ -23,8 +23,8 @@ export type TimeInputChangeEvent = CustomEvent<{
* @events
* time-change TimeInputChangeEvent
*/
@customElement("btrix-time-input")
@localized()
@customElement("btrix-time-input")
export class TimeInput extends LitElement {
static styles = css`
fieldset {

View File

@ -524,8 +524,8 @@ export class WorkflowListItem extends LitElement {
}
}
@customElement("btrix-workflow-list")
@localized()
@customElement("btrix-workflow-list")
export class WorkflowList extends LitElement {
static styles = [
srOnly,