Bundled output for commit 36c296d787

Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
This commit is contained in:
flarum-bot 2022-06-20 03:17:23 +00:00
parent 36c296d787
commit 4923253fbf
7 changed files with 19 additions and 13 deletions

View File

@ -32,13 +32,13 @@ export default abstract class Component<Attrs extends ComponentAttrs = Component
/**
* The root DOM element for the component.
*/
protected element: Element;
element: Element;
/**
* The attributes passed into the component.
*
* @see https://mithril.js.org/components.html#passing-data-to-components
*/
protected attrs: Attrs;
attrs: Attrs;
/**
* Class component state that is persisted between redraws.
*
@ -50,7 +50,7 @@ export default abstract class Component<Attrs extends ComponentAttrs = Component
*
* This is `undefined` by default.
*/
protected state: State;
state: State;
/**
* @inheritdoc
*/
@ -92,7 +92,7 @@ export default abstract class Component<Attrs extends ComponentAttrs = Component
* @returns the jQuery object for the DOM node
* @final
*/
protected $(selector?: string): JQuery;
$(selector?: string): JQuery;
/**
* Convenience method to attach a component without JSX.
* Has the same effect as calling `m(THIS_CLASS, attrs, children)`.
@ -110,5 +110,5 @@ export default abstract class Component<Attrs extends ComponentAttrs = Component
*
* This can be used to assign default values for missing, optional attrs.
*/
protected static initAttrs<T>(attrs: T): void;
static initAttrs<T>(attrs: T): void;
}

View File

@ -12,7 +12,14 @@ export default class Translator {
* The underlying ICU MessageFormatter util.
*/
protected formatter: RichMessageFormatter;
/**
* Sets the formatter's locale to the provided value.
*/
setLocale(locale: string): void;
/**
* Returns the formatter's current locale.
*/
getLocale(): string | null;
addTranslations(translations: Translations): void;
/**
* An extensible entrypoint for extenders to register type handlers for translations.

View File

@ -1,4 +1,3 @@
/// <reference types="node" />
import Component, { ComponentAttrs } from '../../common/Component';
import ItemList from '../../common/utils/ItemList';
import KeyboardNavigatable from '../utils/KeyboardNavigatable';
@ -56,8 +55,8 @@ export default class Search<T extends SearchAttrs = SearchAttrs> extends Compone
*
* @deprecated Replace with`this.searchState` instead.
*/
protected get state(): SearchState;
protected set state(state: SearchState);
get state(): SearchState;
set state(state: SearchState);
/**
* Whether or not the search input has focus.
*/
@ -78,7 +77,7 @@ export default class Search<T extends SearchAttrs = SearchAttrs> extends Compone
*/
protected index: number;
protected navigator: KeyboardNavigatable;
protected searchTimeout?: NodeJS.Timeout;
protected searchTimeout?: number;
private updateMaxHeightHandler?;
oninit(vnode: Mithril.Vnode<T, this>): void;
view(): JSX.Element;

2
framework/core/js/dist/admin.js generated vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
framework/core/js/dist/forum.js generated vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long