consistent decorator order
This commit is contained in:
parent
35ddc4de27
commit
812af7b615
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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[] = [];
|
||||
|
@ -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 })
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user