1
0
mirror of https://github.com/flarum/core.git synced 2025-05-13 02:45:22 +02:00

Bundled output for commit 94c4f266e3f0e043f2998abb596868bd62850dc0

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

[skip ci]
This commit is contained in:
flarum-bot 2021-11-23 21:43:22 +00:00
parent 94c4f266e3
commit 1832fb090d
10 changed files with 24 additions and 5 deletions

View File

@ -21,6 +21,8 @@ declare type KeysOfType<Type extends object, Match> = {
*/ */
declare type KeyOfType<Type extends object, Match> = KeysOfType<Type, Match>[keyof Type]; declare type KeyOfType<Type extends object, Match> = KeysOfType<Type, Match>[keyof Type];
declare type VnodeElementTag<Attrs = Record<string, unknown>, State = Record<string, unknown>> = string | ComponentTypes<Attrs, State>;
/** /**
* @deprecated Please import `app` from a namespace instead of using it as a global variable. * @deprecated Please import `app` from a namespace instead of using it as a global variable.
* *

View File

@ -67,6 +67,7 @@ declare var _default: {
'components/Link': typeof import("../common/components/Link").default; 'components/Link': typeof import("../common/components/Link").default;
'components/LinkButton': typeof import("../common/components/LinkButton").default; 'components/LinkButton': typeof import("../common/components/LinkButton").default;
'components/Checkbox': typeof import("../common/components/Checkbox").default; 'components/Checkbox': typeof import("../common/components/Checkbox").default;
'components/ColorPreviewInput': typeof import("../common/components/ColorPreviewInput").default;
'components/SelectDropdown': typeof import("../common/components/SelectDropdown").default; 'components/SelectDropdown': typeof import("../common/components/SelectDropdown").default;
'components/ModalManager': typeof import("../common/components/ModalManager").default; 'components/ModalManager': typeof import("../common/components/ModalManager").default;
'components/Button': typeof import("../common/components/Button").default; 'components/Button': typeof import("../common/components/Button").default;

View File

@ -40,6 +40,7 @@ export interface HTMLInputSettingsComponentOptions extends CommonSettingsItemOpt
declare const BooleanSettingTypes: readonly ["bool", "checkbox", "switch", "boolean"]; declare const BooleanSettingTypes: readonly ["bool", "checkbox", "switch", "boolean"];
declare const SelectSettingTypes: readonly ["select", "dropdown", "selectdropdown"]; declare const SelectSettingTypes: readonly ["select", "dropdown", "selectdropdown"];
declare const TextareaSettingTypes: readonly ["textarea"]; declare const TextareaSettingTypes: readonly ["textarea"];
declare const ColorPreviewSettingType = "color-preview";
/** /**
* Valid options for the setting component builder to generate a Switch. * Valid options for the setting component builder to generate a Switch.
*/ */
@ -65,10 +66,16 @@ export interface SelectSettingComponentOptions extends CommonSettingsItemOptions
export interface TextareaSettingComponentOptions extends CommonSettingsItemOptions { export interface TextareaSettingComponentOptions extends CommonSettingsItemOptions {
type: typeof TextareaSettingTypes[number]; type: typeof TextareaSettingTypes[number];
} }
/**
* Valid options for the setting component builder to generate a ColorPreviewInput.
*/
export interface ColorPreviewSettingComponentOptions extends CommonSettingsItemOptions {
type: typeof ColorPreviewSettingType;
}
/** /**
* All valid options for the setting component builder. * All valid options for the setting component builder.
*/ */
export declare type SettingsComponentOptions = HTMLInputSettingsComponentOptions | SwitchSettingComponentOptions | SelectSettingComponentOptions | TextareaSettingComponentOptions; export declare type SettingsComponentOptions = HTMLInputSettingsComponentOptions | SwitchSettingComponentOptions | SelectSettingComponentOptions | TextareaSettingComponentOptions | ColorPreviewSettingComponentOptions;
/** /**
* Valid attrs that can be returned by the `headerInfo` function * Valid attrs that can be returned by the `headerInfo` function
*/ */

View File

@ -67,6 +67,7 @@ declare var _default: {
'components/Link': typeof Link; 'components/Link': typeof Link;
'components/LinkButton': typeof LinkButton; 'components/LinkButton': typeof LinkButton;
'components/Checkbox': typeof Checkbox; 'components/Checkbox': typeof Checkbox;
'components/ColorPreviewInput': typeof ColorPreviewInput;
'components/SelectDropdown': typeof SelectDropdown; 'components/SelectDropdown': typeof SelectDropdown;
'components/ModalManager': typeof ModalManager; 'components/ModalManager': typeof ModalManager;
'components/Button': typeof Button; 'components/Button': typeof Button;
@ -148,6 +149,7 @@ import Alert from "./components/Alert";
import Link from "./components/Link"; import Link from "./components/Link";
import LinkButton from "./components/LinkButton"; import LinkButton from "./components/LinkButton";
import Checkbox from "./components/Checkbox"; import Checkbox from "./components/Checkbox";
import ColorPreviewInput from "./components/ColorPreviewInput";
import SelectDropdown from "./components/SelectDropdown"; import SelectDropdown from "./components/SelectDropdown";
import ModalManager from "./components/ModalManager"; import ModalManager from "./components/ModalManager";
import Button from "./components/Button"; import Button from "./components/Button";

View File

@ -0,0 +1,6 @@
import type Mithril from 'mithril';
import Component, { ComponentAttrs } from '../Component';
export default class ColorPreviewInput extends Component {
value?: string;
view(vnode: Mithril.Vnode<ComponentAttrs, this>): JSX.Element;
}

View File

@ -67,6 +67,7 @@ declare var _default: {
'components/Link': typeof import("../common/components/Link").default; 'components/Link': typeof import("../common/components/Link").default;
'components/LinkButton': typeof import("../common/components/LinkButton").default; 'components/LinkButton': typeof import("../common/components/LinkButton").default;
'components/Checkbox': typeof import("../common/components/Checkbox").default; 'components/Checkbox': typeof import("../common/components/Checkbox").default;
'components/ColorPreviewInput': typeof import("../common/components/ColorPreviewInput").default;
'components/SelectDropdown': typeof import("../common/components/SelectDropdown").default; 'components/SelectDropdown': typeof import("../common/components/SelectDropdown").default;
'components/ModalManager': typeof import("../common/components/ModalManager").default; 'components/ModalManager': typeof import("../common/components/ModalManager").default;
'components/Button': typeof import("../common/components/Button").default; 'components/Button': typeof import("../common/components/Button").default;

2
js/dist/admin.js generated vendored

File diff suppressed because one or more lines are too long

2
js/dist/admin.js.map generated vendored

File diff suppressed because one or more lines are too long

2
js/dist/forum.js generated vendored

File diff suppressed because one or more lines are too long

2
js/dist/forum.js.map generated vendored

File diff suppressed because one or more lines are too long