Bundled output for commit a4b97053f4

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

[skip ci]
This commit is contained in:
flarum-bot 2021-11-23 13:06:36 +00:00
parent a4b97053f4
commit 9dbe86a22c
16 changed files with 24 additions and 22 deletions

View File

@ -2,7 +2,7 @@
* The `EditGroupModal` component shows a modal dialog which allows the user
* to create or edit a group.
*/
export default class EditGroupModal extends Modal<any> {
export default class EditGroupModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
constructor();
group: any;
nameSingular: Stream<any> | undefined;

View File

@ -1,4 +1,4 @@
export default class ReadmeModal extends Modal<any> {
export default class ReadmeModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
constructor();
name: any;
extName: any;

View File

@ -1,4 +1,4 @@
export default class SettingsModal extends Modal<any> {
export default class SettingsModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
constructor();
settings: {} | undefined;
form(): string;

View File

@ -1,7 +1,7 @@
/**
* The `EditUserModal` component displays a modal dialog with a login form.
*/
export default class EditUserModal extends Modal<any> {
export default class EditUserModal extends Modal<import("./Modal").IInternalModalAttrs> {
constructor();
username: Stream<any> | undefined;
email: Stream<any> | undefined;

View File

@ -4,7 +4,7 @@ import type Mithril from 'mithril';
import type ModalManagerState from '../states/ModalManagerState';
import type RequestError from '../utils/RequestError';
import type ModalManager from './ModalManager';
interface IInternalModalAttrs {
export interface IInternalModalAttrs {
state: ModalManagerState;
animateShow: ModalManager['animateShow'];
animateHide: ModalManager['animateHide'];
@ -13,7 +13,7 @@ interface IInternalModalAttrs {
* The `Modal` component displays a modal dialog, wrapped in a form. Subclasses
* should implement the `className`, `title`, and `content` methods.
*/
export default abstract class Modal<ModalAttrs = {}> extends Component<ModalAttrs & IInternalModalAttrs> {
export default abstract class Modal<ModalAttrs extends IInternalModalAttrs = IInternalModalAttrs> extends Component<ModalAttrs> {
/**
* Determine whether or not the modal should be dismissible via an 'x' button.
*/
@ -23,9 +23,12 @@ export default abstract class Modal<ModalAttrs = {}> extends Component<ModalAttr
* Attributes for an alert component to show below the header.
*/
alertAttrs: AlertAttrs;
oninit(vnode: Mithril.VnodeDOM<ModalAttrs & IInternalModalAttrs, this>): void;
oncreate(vnode: Mithril.VnodeDOM<ModalAttrs & IInternalModalAttrs, this>): void;
onbeforeremove(vnode: Mithril.VnodeDOM<ModalAttrs & IInternalModalAttrs, this>): Promise<void> | void;
oninit(vnode: Mithril.VnodeDOM<ModalAttrs, this>): void;
oncreate(vnode: Mithril.VnodeDOM<ModalAttrs, this>): void;
onbeforeremove(vnode: Mithril.VnodeDOM<ModalAttrs, this>): Promise<void> | void;
/**
* @todo split into FormModal and Modal in 2.0
*/
view(): JSX.Element;
/**
* Get the class name to apply to the modal.
@ -42,7 +45,7 @@ export default abstract class Modal<ModalAttrs = {}> extends Component<ModalAttr
/**
* Handle the modal form's submit event.
*/
abstract onsubmit(e: Event): void;
onsubmit(e: SubmitEvent): void;
/**
* Callback executed when the modal is shown and ready to be interacted with.
*
@ -63,4 +66,3 @@ export default abstract class Modal<ModalAttrs = {}> extends Component<ModalAttr
*/
onerror(error: RequestError): void;
}
export {};

View File

@ -1,4 +1,4 @@
export default class RequestErrorModal extends Modal<any> {
export default class RequestErrorModal extends Modal<import("./Modal").IInternalModalAttrs> {
constructor();
}
import Modal from "./Modal";

View File

@ -2,7 +2,7 @@
* The `ChangeEmailModal` component shows a modal dialog which allows the user
* to change their email address.
*/
export default class ChangeEmailModal extends Modal<any> {
export default class ChangeEmailModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
constructor();
/**
* Whether or not the email has been changed successfully.

View File

@ -2,7 +2,7 @@
* The `ChangePasswordModal` component shows a modal dialog which allows the
* user to send themself a password reset email.
*/
export default class ChangePasswordModal extends Modal<any> {
export default class ChangePasswordModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
constructor();
}
import Modal from "../../common/components/Modal";

View File

@ -6,7 +6,7 @@
*
* - `email`
*/
export default class ForgotPasswordModal extends Modal<any> {
export default class ForgotPasswordModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
constructor();
/**
* The value of the email input.

View File

@ -6,7 +6,7 @@
* - `identification`
* - `password`
*/
export default class LogInModal extends Modal<any> {
export default class LogInModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
constructor();
/**
* The value of the identification input.

View File

@ -1,7 +1,7 @@
/**
* The 'RenameDiscussionModal' displays a modal dialog with an input to rename a discussion
*/
export default class RenameDiscussionModal extends Modal<any> {
export default class RenameDiscussionModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
constructor();
discussion: any;
currentTitle: any;

View File

@ -8,7 +8,7 @@
* - `password`
* - `token` An email token to sign up with.
*/
export default class SignUpModal extends Modal<any> {
export default class SignUpModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
constructor();
/**
* The value of the username input.

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