neko-ui 2.8.4 → 2.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -4
- package/types/@moneko/coverage/index.d.ts +35 -0
- package/types/@moneko/info/index.d.ts +51 -0
- package/types/@moneko/locales/index.d.ts +11 -0
- package/types/@moneko/routes/index.d.ts +27 -0
- package/lib/avatar/group.d.ts +0 -20
- package/lib/avatar/index.d.ts +0 -22
- package/lib/avatar/style.d.ts +0 -1
- package/lib/back-top/index.d.ts +0 -20
- package/lib/back-top/style.d.ts +0 -1
- package/lib/basic-config/index.d.ts +0 -79
- package/lib/button/index.d.ts +0 -42
- package/lib/button/style.d.ts +0 -1
- package/lib/capture-screen/index.d.ts +0 -53
- package/lib/capture-screen/style.d.ts +0 -1
- package/lib/carousel/index.d.ts +0 -24
- package/lib/carousel/style.d.ts +0 -1
- package/lib/checkbox/index.d.ts +0 -60
- package/lib/checkbox/style.d.ts +0 -1
- package/lib/code/index.d.ts +0 -23
- package/lib/code/style.d.ts +0 -1
- package/lib/code/worker.d.ts +0 -1
- package/lib/color-palette/index.d.ts +0 -29
- package/lib/color-palette/style.d.ts +0 -2
- package/lib/color-picker/index.d.ts +0 -22
- package/lib/color-picker/style.d.ts +0 -1
- package/lib/cron/begin-interval.d.ts +0 -15
- package/lib/cron/day.d.ts +0 -3
- package/lib/cron/hour.d.ts +0 -3
- package/lib/cron/index.d.ts +0 -64
- package/lib/cron/item.d.ts +0 -10
- package/lib/cron/minute.d.ts +0 -3
- package/lib/cron/month.d.ts +0 -3
- package/lib/cron/period.d.ts +0 -14
- package/lib/cron/second.d.ts +0 -3
- package/lib/cron/some.d.ts +0 -12
- package/lib/cron/style.d.ts +0 -3
- package/lib/cron/week.d.ts +0 -3
- package/lib/cron/year.d.ts +0 -3
- package/lib/date-picker/date.d.ts +0 -7
- package/lib/date-picker/dayjs.d.ts +0 -3
- package/lib/date-picker/index.d.ts +0 -78
- package/lib/date-picker/month.d.ts +0 -8
- package/lib/date-picker/panel.d.ts +0 -17
- package/lib/date-picker/style.d.ts +0 -1
- package/lib/date-picker/time.d.ts +0 -19
- package/lib/date-picker/year.d.ts +0 -8
- package/lib/dropdown/index.d.ts +0 -42
- package/lib/empty/index.d.ts +0 -14
- package/lib/from-schema/index.d.ts +0 -28
- package/lib/get-options/index.d.ts +0 -3
- package/lib/highlight-text/index.d.ts +0 -34
- package/lib/img/index.d.ts +0 -40
- package/lib/img/style.d.ts +0 -2
- package/lib/index.d.ts +0 -153
- package/lib/input/index.d.ts +0 -75
- package/lib/input/style.d.ts +0 -1
- package/lib/input-number/index.d.ts +0 -33
- package/lib/katex/index.d.ts +0 -50
- package/lib/md/index.d.ts +0 -41
- package/lib/md/worker.d.ts +0 -1
- package/lib/md-style/index.d.ts +0 -2
- package/lib/menu/index.d.ts +0 -60
- package/lib/menu/style.d.ts +0 -1
- package/lib/modal/hooks.d.ts +0 -5
- package/lib/modal/index.d.ts +0 -47
- package/lib/modal/store.d.ts +0 -5
- package/lib/modal/style.d.ts +0 -1
- package/lib/notification/index.d.ts +0 -59
- package/lib/notification/notification.d.ts +0 -3
- package/lib/notification/queque.d.ts +0 -46
- package/lib/notification/styles.d.ts +0 -1
- package/lib/pagination/index.d.ts +0 -38
- package/lib/pagination/styles.d.ts +0 -1
- package/lib/popover/index.d.ts +0 -86
- package/lib/popover/style.d.ts +0 -2
- package/lib/prism/css.d.ts +0 -2
- package/lib/prism/index.d.ts +0 -27
- package/lib/provider/index.d.ts +0 -15
- package/lib/radio/index.d.ts +0 -32
- package/lib/radio/style.d.ts +0 -1
- package/lib/segmented/index.d.ts +0 -25
- package/lib/segmented/style.d.ts +0 -1
- package/lib/select/index.d.ts +0 -32
- package/lib/select/style.d.ts +0 -1
- package/lib/skeleton/index.d.ts +0 -26
- package/lib/spin/index.d.ts +0 -14
- package/lib/switch/index.d.ts +0 -22
- package/lib/switch/style.d.ts +0 -1
- package/lib/table/index.d.ts +0 -99
- package/lib/table/styles.d.ts +0 -1
- package/lib/tabs/index.d.ts +0 -49
- package/lib/tabs/style.d.ts +0 -3
- package/lib/tag/index.d.ts +0 -27
- package/lib/tag/style.d.ts +0 -1
- package/lib/theme/index.d.ts +0 -67
- package/lib/tree/index.d.ts +0 -5
- package/lib/tree/register.d.ts +0 -1
- package/lib/tree/style.d.ts +0 -1
- package/lib/tree/type.d.ts +0 -108
- package/lib/typography/index.d.ts +0 -26
- /package/{es → types}/avatar/group.d.ts +0 -0
- /package/{es → types}/avatar/index.d.ts +0 -0
- /package/{es → types}/avatar/style.d.ts +0 -0
- /package/{es → types}/back-top/index.d.ts +0 -0
- /package/{es → types}/back-top/style.d.ts +0 -0
- /package/{es → types}/basic-config/index.d.ts +0 -0
- /package/{es → types}/button/index.d.ts +0 -0
- /package/{es → types}/button/style.d.ts +0 -0
- /package/{es → types}/capture-screen/index.d.ts +0 -0
- /package/{es → types}/capture-screen/style.d.ts +0 -0
- /package/{es → types}/carousel/index.d.ts +0 -0
- /package/{es → types}/carousel/style.d.ts +0 -0
- /package/{es → types}/checkbox/index.d.ts +0 -0
- /package/{es → types}/checkbox/style.d.ts +0 -0
- /package/{es → types}/code/index.d.ts +0 -0
- /package/{es → types}/code/style.d.ts +0 -0
- /package/{es → types}/code/worker.d.ts +0 -0
- /package/{es → types}/color-palette/index.d.ts +0 -0
- /package/{es → types}/color-palette/style.d.ts +0 -0
- /package/{es → types}/color-picker/index.d.ts +0 -0
- /package/{es → types}/color-picker/style.d.ts +0 -0
- /package/{es → types}/cron/begin-interval.d.ts +0 -0
- /package/{es → types}/cron/day.d.ts +0 -0
- /package/{es → types}/cron/hour.d.ts +0 -0
- /package/{es → types}/cron/index.d.ts +0 -0
- /package/{es → types}/cron/item.d.ts +0 -0
- /package/{es → types}/cron/minute.d.ts +0 -0
- /package/{es → types}/cron/month.d.ts +0 -0
- /package/{es → types}/cron/period.d.ts +0 -0
- /package/{es → types}/cron/second.d.ts +0 -0
- /package/{es → types}/cron/some.d.ts +0 -0
- /package/{es → types}/cron/style.d.ts +0 -0
- /package/{es → types}/cron/week.d.ts +0 -0
- /package/{es → types}/cron/year.d.ts +0 -0
- /package/{es → types}/date-picker/date.d.ts +0 -0
- /package/{es → types}/date-picker/dayjs.d.ts +0 -0
- /package/{es → types}/date-picker/index.d.ts +0 -0
- /package/{es → types}/date-picker/month.d.ts +0 -0
- /package/{es → types}/date-picker/panel.d.ts +0 -0
- /package/{es → types}/date-picker/style.d.ts +0 -0
- /package/{es → types}/date-picker/time.d.ts +0 -0
- /package/{es → types}/date-picker/year.d.ts +0 -0
- /package/{es → types}/dropdown/index.d.ts +0 -0
- /package/{es → types}/empty/index.d.ts +0 -0
- /package/{es → types}/from-schema/index.d.ts +0 -0
- /package/{es → types}/get-options/index.d.ts +0 -0
- /package/{es → types}/highlight-text/index.d.ts +0 -0
- /package/{es → types}/img/index.d.ts +0 -0
- /package/{es → types}/img/style.d.ts +0 -0
- /package/{es → types}/index.d.ts +0 -0
- /package/{es → types}/input/index.d.ts +0 -0
- /package/{es → types}/input/style.d.ts +0 -0
- /package/{es → types}/input-number/index.d.ts +0 -0
- /package/{es → types}/katex/index.d.ts +0 -0
- /package/{es → types}/md/index.d.ts +0 -0
- /package/{es → types}/md/worker.d.ts +0 -0
- /package/{es → types}/md-style/index.d.ts +0 -0
- /package/{es → types}/menu/index.d.ts +0 -0
- /package/{es → types}/menu/style.d.ts +0 -0
- /package/{es → types}/modal/hooks.d.ts +0 -0
- /package/{es → types}/modal/index.d.ts +0 -0
- /package/{es → types}/modal/store.d.ts +0 -0
- /package/{es → types}/modal/style.d.ts +0 -0
- /package/{es → types}/notification/index.d.ts +0 -0
- /package/{es → types}/notification/notification.d.ts +0 -0
- /package/{es → types}/notification/queque.d.ts +0 -0
- /package/{es → types}/notification/styles.d.ts +0 -0
- /package/{es → types}/pagination/index.d.ts +0 -0
- /package/{es → types}/pagination/styles.d.ts +0 -0
- /package/{es → types}/popover/index.d.ts +0 -0
- /package/{es → types}/popover/style.d.ts +0 -0
- /package/{es → types}/prism/css.d.ts +0 -0
- /package/{es → types}/prism/index.d.ts +0 -0
- /package/{es → types}/provider/index.d.ts +0 -0
- /package/{es → types}/radio/index.d.ts +0 -0
- /package/{es → types}/radio/style.d.ts +0 -0
- /package/{es → types}/segmented/index.d.ts +0 -0
- /package/{es → types}/segmented/style.d.ts +0 -0
- /package/{es → types}/select/index.d.ts +0 -0
- /package/{es → types}/select/style.d.ts +0 -0
- /package/{es → types}/skeleton/index.d.ts +0 -0
- /package/{es → types}/spin/index.d.ts +0 -0
- /package/{es → types}/switch/index.d.ts +0 -0
- /package/{es → types}/switch/style.d.ts +0 -0
- /package/{es → types}/table/index.d.ts +0 -0
- /package/{es → types}/table/styles.d.ts +0 -0
- /package/{es → types}/tabs/index.d.ts +0 -0
- /package/{es → types}/tabs/style.d.ts +0 -0
- /package/{es → types}/tag/index.d.ts +0 -0
- /package/{es → types}/tag/style.d.ts +0 -0
- /package/{es → types}/theme/index.d.ts +0 -0
- /package/{es → types}/tree/index.d.ts +0 -0
- /package/{es → types}/tree/register.d.ts +0 -0
- /package/{es → types}/tree/style.d.ts +0 -0
- /package/{es → types}/tree/type.d.ts +0 -0
- /package/{es → types}/typography/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neko-ui",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.5",
|
|
4
4
|
"description": "WebComponents UI Libraries",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"module": "es/index.js",
|
|
7
|
+
"types": "types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"require": "./lib/index.js",
|
|
11
|
+
"import": "./es/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./*": ["./*"]
|
|
14
|
+
},
|
|
6
15
|
"scripts": {
|
|
7
16
|
"build": "mo build library solid",
|
|
8
17
|
"changelog": "mo changelog CHANGELOG.md && git add CHANGELOG.md",
|
|
@@ -43,8 +52,8 @@
|
|
|
43
52
|
"devDependencies": {
|
|
44
53
|
"@commitlint/cli": "19.3.0",
|
|
45
54
|
"@commitlint/config-conventional": "19.2.2",
|
|
46
|
-
"@moneko/cli": "2.
|
|
47
|
-
"@moneko/core": "3.
|
|
55
|
+
"@moneko/cli": "2.13.0",
|
|
56
|
+
"@moneko/core": "3.17.5",
|
|
48
57
|
"@moneko/solid": "1.8.0",
|
|
49
58
|
"@solidjs/testing-library": "0.8.8",
|
|
50
59
|
"@swc/jest": "0.2.36",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** 文件级覆盖率
|
|
2
|
+
* @ignore optional
|
|
3
|
+
*/
|
|
4
|
+
export interface CoverageType {
|
|
5
|
+
/** 语句(statement coverage) */
|
|
6
|
+
statements: string;
|
|
7
|
+
/** 语句覆盖: 是不是每个语句都执行了 */
|
|
8
|
+
coveredstatements: string;
|
|
9
|
+
/** 条件(branch coverage) */
|
|
10
|
+
conditionals: string;
|
|
11
|
+
/** 条件覆盖: 是不是每个条件代码块都执行了 */
|
|
12
|
+
coveredconditionals: string;
|
|
13
|
+
/** 函数(function coverage) */
|
|
14
|
+
methods: string;
|
|
15
|
+
/** 函数覆盖: 是不是每个函数都调用了 */
|
|
16
|
+
coveredmethods: string;
|
|
17
|
+
}
|
|
18
|
+
/** 项目级覆盖率
|
|
19
|
+
* @ignore optional
|
|
20
|
+
*/
|
|
21
|
+
export interface ProjectCoverageType {
|
|
22
|
+
/** 元素 */
|
|
23
|
+
elements: string;
|
|
24
|
+
/** 覆盖元素 */
|
|
25
|
+
coveredelements: string;
|
|
26
|
+
complexity: string;
|
|
27
|
+
loc: string;
|
|
28
|
+
ncloc: string;
|
|
29
|
+
/** 经过测试的组件 */
|
|
30
|
+
packages: string;
|
|
31
|
+
/** 经过测试的文件 */
|
|
32
|
+
files: string;
|
|
33
|
+
/** 经过测试的类 */
|
|
34
|
+
classes: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** 虚拟模块 @app/info
|
|
2
|
+
* @description 应用信息
|
|
3
|
+
* @ignore optional
|
|
4
|
+
*/
|
|
5
|
+
export interface Api {
|
|
6
|
+
/** 应用名称 */
|
|
7
|
+
name: string;
|
|
8
|
+
/** 应用名称(大写) */
|
|
9
|
+
projectName: string;
|
|
10
|
+
/** 应用描述 */
|
|
11
|
+
description: string;
|
|
12
|
+
/** 应用版本 */
|
|
13
|
+
version: string;
|
|
14
|
+
/** 应用类型 */
|
|
15
|
+
type: 'mobile' | 'site' | 'backstage' | 'micro' | 'library';
|
|
16
|
+
/** 开发者 */
|
|
17
|
+
author: Author;
|
|
18
|
+
/** 存储库 */
|
|
19
|
+
repository: Repository;
|
|
20
|
+
/** 路由模式 */
|
|
21
|
+
routerMode: 'hash' | 'browser';
|
|
22
|
+
/** 根路由 */
|
|
23
|
+
base: string;
|
|
24
|
+
/** 类名前缀 */
|
|
25
|
+
prefixCls?: string;
|
|
26
|
+
/** 主题风格 */
|
|
27
|
+
theme?: string;
|
|
28
|
+
}
|
|
29
|
+
/** 开发者
|
|
30
|
+
* @ignore optional
|
|
31
|
+
*/
|
|
32
|
+
interface Author {
|
|
33
|
+
/** 名称 */
|
|
34
|
+
name: string;
|
|
35
|
+
/** 主页 */
|
|
36
|
+
url?: string;
|
|
37
|
+
/** 邮箱 */
|
|
38
|
+
email?: string;
|
|
39
|
+
}
|
|
40
|
+
/** 存储库
|
|
41
|
+
* @ignore optional
|
|
42
|
+
*/
|
|
43
|
+
interface Repository {
|
|
44
|
+
/** 类型 */
|
|
45
|
+
type?: string;
|
|
46
|
+
/** 存储库地址 */
|
|
47
|
+
url?: string;
|
|
48
|
+
/** 存储库目录 */
|
|
49
|
+
directory?: string;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { RouteDefinition } from '@moneko/solid';
|
|
2
|
+
interface IRouteDefinition extends Omit<RouteDefinition, 'children'> {
|
|
3
|
+
children?: RouteConfig[];
|
|
4
|
+
}
|
|
5
|
+
export interface RouteConfig extends IRouteDefinition {
|
|
6
|
+
/** 菜单id */
|
|
7
|
+
key?: string;
|
|
8
|
+
/** 地址 */
|
|
9
|
+
path: string;
|
|
10
|
+
/** 图标 */
|
|
11
|
+
icon?: string;
|
|
12
|
+
/** 名称 */
|
|
13
|
+
label?: string | null;
|
|
14
|
+
/** 隐藏菜单 */
|
|
15
|
+
hideMenu?: boolean;
|
|
16
|
+
/** 隐藏标签页 */
|
|
17
|
+
hideTab?: boolean;
|
|
18
|
+
/** 菜单父id */
|
|
19
|
+
parentId?: string;
|
|
20
|
+
/** 可否关闭标签 */
|
|
21
|
+
closable?: boolean;
|
|
22
|
+
/** 子菜单 */
|
|
23
|
+
props?: Record<string, Any>;
|
|
24
|
+
/** 元数据 */
|
|
25
|
+
metadata?: Record<string, string | number | boolean>;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
package/lib/avatar/group.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import '../avatar';
|
|
2
|
-
import '../popover';
|
|
3
|
-
import type { AvatarProps, BasicConfig, CustomElement } from '..';
|
|
4
|
-
export interface AvatarGroupProps {
|
|
5
|
-
/** 头像数据 */
|
|
6
|
-
data?: Omit<AvatarProps, 'size'>[];
|
|
7
|
-
/** 头像尺寸
|
|
8
|
-
* @default 'normal'
|
|
9
|
-
*/
|
|
10
|
-
size?: BasicConfig['size'];
|
|
11
|
-
/** 最多显示个数 */
|
|
12
|
-
maxCount?: number;
|
|
13
|
-
/** 自定义类名 */
|
|
14
|
-
class?: string;
|
|
15
|
-
/** 自定义样式表 */
|
|
16
|
-
css?: string;
|
|
17
|
-
}
|
|
18
|
-
export type AvatarGroupElement = CustomElement<AvatarGroupProps>;
|
|
19
|
-
declare function AvatarGroup(_props: AvatarGroupProps): import("solid-js").JSX.Element;
|
|
20
|
-
export default AvatarGroup;
|
package/lib/avatar/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { BasicConfig, CustomElement } from '../index';
|
|
2
|
-
export interface AvatarProps {
|
|
3
|
-
/** 头像 */
|
|
4
|
-
src?: string;
|
|
5
|
-
/** 替代文本 */
|
|
6
|
-
alt?: string;
|
|
7
|
-
/** 尺寸
|
|
8
|
-
* @default 'normal'
|
|
9
|
-
*/
|
|
10
|
-
size?: number | BasicConfig['size'];
|
|
11
|
-
/** 用户名 */
|
|
12
|
-
username?: string;
|
|
13
|
-
/** 背景颜色 */
|
|
14
|
-
color?: string;
|
|
15
|
-
/** 自定义类名 */
|
|
16
|
-
class?: string;
|
|
17
|
-
/** 自定义样式表 */
|
|
18
|
-
css?: string;
|
|
19
|
-
}
|
|
20
|
-
export type AvatarElement = CustomElement<AvatarProps>;
|
|
21
|
-
declare function Avatar(_: AvatarProps): import("solid-js").JSX.Element;
|
|
22
|
-
export default Avatar;
|
package/lib/avatar/style.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const style: string;
|
package/lib/back-top/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { CustomElement } from '..';
|
|
2
|
-
export interface BackTopProps {
|
|
3
|
-
/** 设置需要监听其滚动事件的元素
|
|
4
|
-
* @default window
|
|
5
|
-
*/
|
|
6
|
-
target?: HTMLElement | (() => HTMLElement);
|
|
7
|
-
/** 挂载到指定的元素
|
|
8
|
-
* @default body
|
|
9
|
-
*/
|
|
10
|
-
mount?: HTMLElement;
|
|
11
|
-
/** 滚动高度达到此参数值才出现 BackTop */
|
|
12
|
-
visibilityHeight?: number;
|
|
13
|
-
/** 自定义类名 */
|
|
14
|
-
class?: string;
|
|
15
|
-
/** 自定义样式表 */
|
|
16
|
-
css?: string;
|
|
17
|
-
}
|
|
18
|
-
declare function BackTop(_: BackTopProps): import("solid-js").JSX.Element;
|
|
19
|
-
export type BackTopElement = CustomElement<BackTopProps>;
|
|
20
|
-
export default BackTop;
|
package/lib/back-top/style.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const style: string;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
export interface BasicConfig {
|
|
2
|
-
/** 组件状态
|
|
3
|
-
* @default 'normal'
|
|
4
|
-
*/
|
|
5
|
-
status: keyof typeof Status;
|
|
6
|
-
/** 组件尺寸
|
|
7
|
-
* @default 'normal'
|
|
8
|
-
*/
|
|
9
|
-
size: keyof typeof Size;
|
|
10
|
-
/** 自定义 'label'、'value'、'options' 等映射的key */
|
|
11
|
-
fieldName: Partial<{
|
|
12
|
-
[key in keyof typeof FieldName]: string;
|
|
13
|
-
}>;
|
|
14
|
-
}
|
|
15
|
-
export declare enum Size {
|
|
16
|
-
/** 小 */
|
|
17
|
-
small = "small",
|
|
18
|
-
/** 默认: 中 */
|
|
19
|
-
normal = "normal",
|
|
20
|
-
/** 大 */
|
|
21
|
-
large = "large"
|
|
22
|
-
}
|
|
23
|
-
export declare enum Status {
|
|
24
|
-
/** 默认 */
|
|
25
|
-
normal = "normal",
|
|
26
|
-
/** 成功 */
|
|
27
|
-
success = "success",
|
|
28
|
-
/** 警告 */
|
|
29
|
-
warning = "warning",
|
|
30
|
-
/** 错误 */
|
|
31
|
-
error = "error",
|
|
32
|
-
/** 详细 */
|
|
33
|
-
info = "info",
|
|
34
|
-
/** 主要 */
|
|
35
|
-
primary = "primary"
|
|
36
|
-
}
|
|
37
|
-
export interface BaseOption {
|
|
38
|
-
/** 图标 */
|
|
39
|
-
icon?: JSX.Element;
|
|
40
|
-
/** 值 */
|
|
41
|
-
value?: string | number;
|
|
42
|
-
/** 标题 */
|
|
43
|
-
label?: JSX.Element;
|
|
44
|
-
/** 不可用状态 */
|
|
45
|
-
disabled?: boolean;
|
|
46
|
-
/** 自定义类名 */
|
|
47
|
-
class?: string;
|
|
48
|
-
/** 自定义样式 */
|
|
49
|
-
style?: Record<string, unknown>;
|
|
50
|
-
/** 选项状态
|
|
51
|
-
* @default 'normal'
|
|
52
|
-
*/
|
|
53
|
-
status?: Status;
|
|
54
|
-
/** 分组子选项 */
|
|
55
|
-
options?: (BaseOption | string)[];
|
|
56
|
-
[key: string]: Any;
|
|
57
|
-
}
|
|
58
|
-
export declare enum FieldName {
|
|
59
|
-
/** 标题 */
|
|
60
|
-
label = "label",
|
|
61
|
-
/** 值 */
|
|
62
|
-
value = "value",
|
|
63
|
-
/** 分组子选项 */
|
|
64
|
-
options = "options",
|
|
65
|
-
/** 子选项 */
|
|
66
|
-
children = "children",
|
|
67
|
-
/** 图标 */
|
|
68
|
-
icon = "icon",
|
|
69
|
-
/** 后缀图标 */
|
|
70
|
-
suffix = "suffix",
|
|
71
|
-
/** 标题 */
|
|
72
|
-
title = "title",
|
|
73
|
-
/** 副标题 */
|
|
74
|
-
subTitle = "subTitle",
|
|
75
|
-
/** 键 */
|
|
76
|
-
key = "key",
|
|
77
|
-
/** 名称 */
|
|
78
|
-
name = "name"
|
|
79
|
-
}
|
package/lib/button/index.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { BasicConfig, CustomElement } from '..';
|
|
2
|
-
export interface ButtonProps {
|
|
3
|
-
/** 自定义类名 */
|
|
4
|
-
class?: string;
|
|
5
|
-
/** 自定义样式表 */
|
|
6
|
-
css?: string;
|
|
7
|
-
/** 按钮类型 */
|
|
8
|
-
type?: 'success' | 'error' | 'primary' | 'warning' | 'default';
|
|
9
|
-
/** 透明背景 */
|
|
10
|
-
ghost?: boolean;
|
|
11
|
-
/** 实色背景 */
|
|
12
|
-
fill?: boolean;
|
|
13
|
-
/** 圆形按钮 */
|
|
14
|
-
circle?: boolean;
|
|
15
|
-
/** 虚线按钮 */
|
|
16
|
-
dashed?: boolean;
|
|
17
|
-
/** 扁平按钮 */
|
|
18
|
-
flat?: boolean;
|
|
19
|
-
/** 禁用按钮 */
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/** 块按钮 */
|
|
22
|
-
block?: boolean;
|
|
23
|
-
/** 链接按钮 */
|
|
24
|
-
link?: boolean;
|
|
25
|
-
/** 危险按钮 */
|
|
26
|
-
danger?: boolean;
|
|
27
|
-
/** 自定义 tag
|
|
28
|
-
* @since 2.1.0
|
|
29
|
-
*/
|
|
30
|
-
tag?: string;
|
|
31
|
-
/** 按钮尺寸
|
|
32
|
-
* @default 'normal'
|
|
33
|
-
*/
|
|
34
|
-
size?: BasicConfig['size'];
|
|
35
|
-
/** 按钮前面添加一个图标 */
|
|
36
|
-
icon?: (() => JSX.Element) | JSX.Element;
|
|
37
|
-
children?: JSX.Element;
|
|
38
|
-
onClick?(e: Event): void;
|
|
39
|
-
}
|
|
40
|
-
export type ButtonElement = CustomElement<ButtonProps>;
|
|
41
|
-
declare function Button(_: ButtonProps): import("solid-js").JSX.Element;
|
|
42
|
-
export default Button;
|
package/lib/button/style.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const style: string;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import '../button';
|
|
2
|
-
import type { CustomElement } from '..';
|
|
3
|
-
declare interface MediaRecorderDataAvailableEvent extends Event {
|
|
4
|
-
/** MediaRecorderDataAvailableEvent */
|
|
5
|
-
data: Any;
|
|
6
|
-
}
|
|
7
|
-
export interface CaptureScreenProps {
|
|
8
|
-
/** 自定义类名 */
|
|
9
|
-
class?: string;
|
|
10
|
-
/** 自定义样式表 */
|
|
11
|
-
css?: string;
|
|
12
|
-
/** MediaStreamConstraints */
|
|
13
|
-
options?: MediaStreamConstraints;
|
|
14
|
-
/** 是否预览 */
|
|
15
|
-
preview?: boolean;
|
|
16
|
-
/** 预览时是否显示控制器 */
|
|
17
|
-
controls?: boolean;
|
|
18
|
-
/** 录制时配置项 */
|
|
19
|
-
recorder?: boolean;
|
|
20
|
-
/** 录制文件名称 */
|
|
21
|
-
filename?: string;
|
|
22
|
-
/** 捕获屏幕按钮文字 */
|
|
23
|
-
captureScreenText?: string;
|
|
24
|
-
/** 停止捕获按钮文字 */
|
|
25
|
-
stopCaptureText?: string;
|
|
26
|
-
/** 开始录制按钮文字 */
|
|
27
|
-
startRecorderText?: string;
|
|
28
|
-
/** 停止录制按钮文字 */
|
|
29
|
-
stopRecorderText?: string;
|
|
30
|
-
/** 暂停录制按钮文字 */
|
|
31
|
-
pausedRecorderText?: string;
|
|
32
|
-
/** 录制中按钮文字 */
|
|
33
|
-
recorderingText?: string;
|
|
34
|
-
/** 录制错误回调方法 */
|
|
35
|
-
onErrorRecorder?: (e: Event) => void;
|
|
36
|
-
/** 停止录制回调方法 */
|
|
37
|
-
onStopRecorder?: () => void;
|
|
38
|
-
/** 开始录制回调方法 */
|
|
39
|
-
onStartRecorder?: (state: MediaRecorder['state']) => void;
|
|
40
|
-
/** 记录媒体时触发 */
|
|
41
|
-
onRecorderDataAvailable?: (e: MediaRecorderDataAvailableEvent) => void;
|
|
42
|
-
/** 捕获屏幕错误回调方法 */
|
|
43
|
-
onErrorCapture?: (err: unknown) => void;
|
|
44
|
-
/** 停止捕获屏幕回调方法 */
|
|
45
|
-
onStopCapture?: () => void;
|
|
46
|
-
/** 开始捕获屏幕回调方法 */
|
|
47
|
-
onStartCapture?: (stream?: MediaStream) => void;
|
|
48
|
-
/** 自定义保存录制文件方法 */
|
|
49
|
-
onSaveRecorder?: (blob: Blob, fileName: string) => void;
|
|
50
|
-
}
|
|
51
|
-
export type CaptureScreenElement = CustomElement<CaptureScreenProps, 'onErrorRecorder' | 'onStopRecorder' | 'onStartRecorder' | 'onRecorderDataAvailable' | 'onErrorCapture' | 'onStopCapture' | 'onStartCapture' | 'onSaveRecorder'>;
|
|
52
|
-
declare function CaptureScreen(_: CaptureScreenProps): import("solid-js").JSX.Element;
|
|
53
|
-
export default CaptureScreen;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const style: string;
|
package/lib/carousel/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { CustomElement } from '..';
|
|
2
|
-
export interface CarouselProps {
|
|
3
|
-
/** 自定义类名 */
|
|
4
|
-
class?: string;
|
|
5
|
-
/** 自定义样式表 */
|
|
6
|
-
css?: string;
|
|
7
|
-
/** 轮播的内容 */
|
|
8
|
-
children?: JSX.Element[];
|
|
9
|
-
/** 当前内容的位置
|
|
10
|
-
* @default 0
|
|
11
|
-
*/
|
|
12
|
-
offset?: number;
|
|
13
|
-
/** 开启指示器 */
|
|
14
|
-
dots?: boolean;
|
|
15
|
-
/** 设置自动播放时长, 不设置时不自动播放 */
|
|
16
|
-
autoplay?: number;
|
|
17
|
-
/** 自定义头部 */
|
|
18
|
-
header?: (current: number) => JSX.Element | ((current: number) => JSX.Element);
|
|
19
|
-
/** 切换显示的位置时的回调方法 */
|
|
20
|
-
onChange?: (e: number) => void;
|
|
21
|
-
}
|
|
22
|
-
export type CarouselElement = CustomElement<CarouselProps>;
|
|
23
|
-
declare function Carousel(_props: CarouselProps): import("solid-js").JSX.Element;
|
|
24
|
-
export default Carousel;
|
package/lib/carousel/style.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const style: string;
|
package/lib/checkbox/index.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { BaseOption, BasicConfig, CustomElement } from '..';
|
|
2
|
-
/** 通用API
|
|
3
|
-
* @since 1.0.0
|
|
4
|
-
*/
|
|
5
|
-
export interface CheckboxBaseProps {
|
|
6
|
-
/** 自定义类名 */
|
|
7
|
-
class?: string;
|
|
8
|
-
/** 自定义样式表 */
|
|
9
|
-
css?: string;
|
|
10
|
-
/** input[type="checkbox"] 的 name 属性 */
|
|
11
|
-
name?: string;
|
|
12
|
-
/** 只读 */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/** 选项排列方式
|
|
15
|
-
* @default 'horizontal'
|
|
16
|
-
*/
|
|
17
|
-
layout?: 'vertical' | 'horizontal';
|
|
18
|
-
/** 自定义节点 'label'、'value'、'options' 的字段 */
|
|
19
|
-
fieldNames?: BasicConfig['fieldName'];
|
|
20
|
-
}
|
|
21
|
-
/** 复选框API */
|
|
22
|
-
export interface CheckboxBoolProps extends CheckboxBaseProps {
|
|
23
|
-
/** 一个 bool 值; */
|
|
24
|
-
value?: boolean;
|
|
25
|
-
/** 默认值 */
|
|
26
|
-
defaultValue?: boolean;
|
|
27
|
-
/** 值修改时的回调方法 */
|
|
28
|
-
onChange?: (val: boolean) => void;
|
|
29
|
-
checkAll?: never;
|
|
30
|
-
options?: never;
|
|
31
|
-
}
|
|
32
|
-
/** 通过数据渲染一组复选框按钮的API */
|
|
33
|
-
export interface CheckboxGroupProps extends CheckboxBaseProps {
|
|
34
|
-
/** 全选 */
|
|
35
|
-
checkAll?: boolean;
|
|
36
|
-
/** 值;
|
|
37
|
-
* 当设置了value时, 将是受控模式;
|
|
38
|
-
* 受控模式可通过 onChange 事件更新 value
|
|
39
|
-
**/
|
|
40
|
-
value?: (string | number)[];
|
|
41
|
-
/** 默认值 */
|
|
42
|
-
defaultValue?: (string | number)[];
|
|
43
|
-
/** 渲染选项所使用的数据,
|
|
44
|
-
* 当没有设置该值时, 将渲染一个切换 bool 值的按钮
|
|
45
|
-
* */
|
|
46
|
-
options?: (CheckboxOption | string)[];
|
|
47
|
-
/** 值修改时的回调方法 */
|
|
48
|
-
onChange?: (val: (string | number)[]) => void;
|
|
49
|
-
}
|
|
50
|
-
/** 复选框选项
|
|
51
|
-
* @since 1.0.0
|
|
52
|
-
*/
|
|
53
|
-
export interface CheckboxOption extends BaseOption {
|
|
54
|
-
/** 不确定状态 */
|
|
55
|
-
indeterminate?: boolean;
|
|
56
|
-
}
|
|
57
|
-
declare function Checkbox(props: CheckboxBoolProps | CheckboxGroupProps): import("solid-js").JSX.Element;
|
|
58
|
-
export type CheckboxGroupElement = CustomElement<CheckboxGroupProps>;
|
|
59
|
-
export type CheckboxBoolElement = CustomElement<CheckboxBoolProps>;
|
|
60
|
-
export default Checkbox;
|
package/lib/checkbox/style.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const style: string;
|
package/lib/code/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { CustomElement } from '..';
|
|
2
|
-
export interface CodeProps {
|
|
3
|
-
/** 自定义类名 */
|
|
4
|
-
class?: string;
|
|
5
|
-
/** 自定义样式表 */
|
|
6
|
-
css?: string;
|
|
7
|
-
/** 内容 */
|
|
8
|
-
code?: string;
|
|
9
|
-
/** 语言 */
|
|
10
|
-
lang?: string;
|
|
11
|
-
/** 显示代码行号 */
|
|
12
|
-
lineNumber?: boolean;
|
|
13
|
-
/** 支持编辑 */
|
|
14
|
-
edit?: boolean;
|
|
15
|
-
/** 开启代码块工具条 */
|
|
16
|
-
toolbar?: boolean;
|
|
17
|
-
/** 编辑修改时的回调 */
|
|
18
|
-
onChange?: (code: string) => void;
|
|
19
|
-
children?: JSX.Element;
|
|
20
|
-
}
|
|
21
|
-
export type CodeElement = CustomElement<CodeProps>;
|
|
22
|
-
declare function Code(props: CodeProps): import("solid-js").JSX.Element;
|
|
23
|
-
export default Code;
|
package/lib/code/style.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const style: string;
|
package/lib/code/worker.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import '../dropdown';
|
|
2
|
-
import '../input';
|
|
3
|
-
import '../input-number';
|
|
4
|
-
import type { CustomElement } from '..';
|
|
5
|
-
export interface ColorPaletteProps {
|
|
6
|
-
/** 自定义类名 */
|
|
7
|
-
class?: string;
|
|
8
|
-
/** 自定义样式表 */
|
|
9
|
-
css?: string;
|
|
10
|
-
/** 颜色值 */
|
|
11
|
-
value?: string;
|
|
12
|
-
/** 默认值
|
|
13
|
-
* @default '#5794ff'
|
|
14
|
-
*/
|
|
15
|
-
defaultValue?: string;
|
|
16
|
-
/** 变更时触发的方法 */
|
|
17
|
-
onChange?: (color: string) => void;
|
|
18
|
-
}
|
|
19
|
-
export type ColorPaletteElement = CustomElement<ColorPaletteProps>;
|
|
20
|
-
declare function ColorPalette(_: ColorPaletteProps): import("solid-js").JSX.Element;
|
|
21
|
-
export declare const defaultColorPaletteProps: {
|
|
22
|
-
class: undefined;
|
|
23
|
-
style: undefined;
|
|
24
|
-
css: undefined;
|
|
25
|
-
value: undefined;
|
|
26
|
-
defaultValue: undefined;
|
|
27
|
-
onChange: undefined;
|
|
28
|
-
};
|
|
29
|
-
export default ColorPalette;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import '../color-palette';
|
|
2
|
-
import type { BasicConfig, ColorPaletteProps, CustomElement, PopoverProps } from '..';
|
|
3
|
-
/** 颜色选择器
|
|
4
|
-
* @since 2.0.0
|
|
5
|
-
*/
|
|
6
|
-
export interface ColorPickerProps extends ColorPaletteProps, Omit<PopoverProps, 'children' | 'content'> {
|
|
7
|
-
/** 自定义类名 */
|
|
8
|
-
class?: string;
|
|
9
|
-
/** 自定义样式表 */
|
|
10
|
-
css?: string;
|
|
11
|
-
/** 关闭后是否销毁 */
|
|
12
|
-
destroyInactive?: boolean;
|
|
13
|
-
/** 尺寸
|
|
14
|
-
* @default 'normal'
|
|
15
|
-
*/
|
|
16
|
-
size?: BasicConfig['size'];
|
|
17
|
-
/** 默认值 */
|
|
18
|
-
defaultValue?: string;
|
|
19
|
-
}
|
|
20
|
-
export type ColorPickerElement = CustomElement<ColorPickerProps>;
|
|
21
|
-
declare function ColorPicker(props: ColorPickerProps): import("solid-js").JSX.Element;
|
|
22
|
-
export default ColorPicker;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const style: string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="typings/typings" />
|
|
2
|
-
import type { CronData } from '.';
|
|
3
|
-
import type { BaseOption } from 'neko-ui';
|
|
4
|
-
type BeginIntervalProps = {
|
|
5
|
-
begin: CronData['begin'];
|
|
6
|
-
beginEvery: CronData['beginEvery'];
|
|
7
|
-
label: [JSX.Element, JSX.Element, JSX.Element];
|
|
8
|
-
beginOption: (string | number | BaseOption)[];
|
|
9
|
-
beginEveryOption: (string | number | BaseOption)[];
|
|
10
|
-
onChange(type: 'begin' | 'beginEvery', value: number): void;
|
|
11
|
-
validate(type: 'begin' | 'beginEvery', value: number): boolean;
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
};
|
|
14
|
-
declare function BeginInterval(props: BeginIntervalProps): import("solid-js").JSX.Element;
|
|
15
|
-
export default BeginInterval;
|
package/lib/cron/day.d.ts
DELETED
package/lib/cron/hour.d.ts
DELETED