mirror of
https://github.com/flarum/framework.git
synced 2025-02-17 00:12:45 +08:00
Bundled output for commit 661f68f32a
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
parent
661f68f32a
commit
c718d4d4d6
|
@ -1,16 +1,27 @@
|
||||||
import type Mithril from 'mithril';
|
import type Mithril from 'mithril';
|
||||||
import Component, { ComponentAttrs } from '../Component';
|
import { ComponentAttrs } from '../Component';
|
||||||
export interface ModdedVnodeAttrs {
|
declare type ModdedVnodeAttrs = {
|
||||||
itemClassName?: string;
|
itemClassName?: string;
|
||||||
key?: string;
|
key?: string;
|
||||||
}
|
};
|
||||||
export declare type ModdedVnode<Attrs> = Mithril.Vnode<ModdedVnodeAttrs, Component<Attrs> | {}> & {
|
declare type ModdedTag = Mithril.Vnode['tag'] & {
|
||||||
|
isListItem?: boolean;
|
||||||
|
isActive?: (attrs: ComponentAttrs) => boolean;
|
||||||
|
};
|
||||||
|
declare type ModdedVnode = Mithril.Vnode<ModdedVnodeAttrs> & {
|
||||||
itemName?: string;
|
itemName?: string;
|
||||||
itemClassName?: string;
|
itemClassName?: string;
|
||||||
tag: Mithril.Vnode['tag'] & {
|
tag: ModdedTag;
|
||||||
isListItem?: boolean;
|
};
|
||||||
isActive?: (attrs: ComponentAttrs) => boolean;
|
declare type ModdedChild = ModdedVnode | string | number | boolean | null | undefined;
|
||||||
};
|
declare type ModdedChildArray = ModdedChildren[];
|
||||||
|
declare type ModdedChildren = ModdedChild | ModdedChildArray;
|
||||||
|
/**
|
||||||
|
* This type represents an element of a list returned by `ItemList.toArray()`,
|
||||||
|
* coupled with some static properties used on various components.
|
||||||
|
*/
|
||||||
|
export declare type ModdedChildrenWithItemName = ModdedChildren & {
|
||||||
|
itemName?: string;
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* The `listItems` helper wraps an array of components in the provided tag,
|
* The `listItems` helper wraps an array of components in the provided tag,
|
||||||
|
@ -19,4 +30,5 @@ export declare type ModdedVnode<Attrs> = Mithril.Vnode<ModdedVnodeAttrs, Compone
|
||||||
* By default, this tag is an `<li>` tag, but this is customisable through the
|
* By default, this tag is an `<li>` tag, but this is customisable through the
|
||||||
* second function parameter, `customTag`.
|
* second function parameter, `customTag`.
|
||||||
*/
|
*/
|
||||||
export default function listItems<Attrs extends Record<string, unknown>>(rawItems: ModdedVnode<Attrs> | ModdedVnode<Attrs>[], customTag?: string | Component<Attrs>, attributes?: Attrs): Mithril.Vnode[];
|
export default function listItems<Attrs extends ComponentAttrs>(rawItems: ModdedChildrenWithItemName[], customTag?: VnodeElementTag<Attrs>, attributes?: Attrs): Mithril.Vnode[];
|
||||||
|
export {};
|
||||||
|
|
2
framework/core/js/dist/admin.js
generated
vendored
2
framework/core/js/dist/admin.js
generated
vendored
File diff suppressed because one or more lines are too long
2
framework/core/js/dist/admin.js.map
generated
vendored
2
framework/core/js/dist/admin.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
framework/core/js/dist/forum.js
generated
vendored
2
framework/core/js/dist/forum.js
generated
vendored
File diff suppressed because one or more lines are too long
2
framework/core/js/dist/forum.js.map
generated
vendored
2
framework/core/js/dist/forum.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user