@delta-comic/ui 2.2.0 → 3.0.0-next.4
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/dist/core-NNJn692v.js +27 -0
- package/dist/core-NNJn692v.js.map +1 -0
- package/dist/dist-js-X_dgLCzM.js +12 -0
- package/dist/dist-js-X_dgLCzM.js.map +1 -0
- package/dist/index.css +2 -2
- package/dist/index.d.ts +1557 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7645 -6764
- package/dist/index.js.map +1 -1
- package/dist-vite/index.d.mts +7 -0
- package/dist-vite/index.mjs +19 -0
- package/dist-vite/index.mjs.map +1 -0
- package/package.json +40 -41
- package/README.md +0 -42
- package/dist/index2.js +0 -16
- package/dist/index2.js.map +0 -1
- package/dist/lib/components/DcAuthorIcon.vue.d.ts +0 -10
- package/dist/lib/components/DcAwait.vue.d.ts +0 -26
- package/dist/lib/components/DcContent.vue.d.ts +0 -47
- package/dist/lib/components/DcFloatPopup.vue.d.ts +0 -39
- package/dist/lib/components/DcImage.vue.d.ts +0 -1158
- package/dist/lib/components/DcImagedIcon.vue.d.ts +0 -10
- package/dist/lib/components/DcList.vue.d.ts +0 -61
- package/dist/lib/components/DcLoading.vue.d.ts +0 -18
- package/dist/lib/components/DcMarkdown/index.vue.d.ts +0 -14
- package/dist/lib/components/DcPopup.vue.d.ts +0 -39
- package/dist/lib/components/DcRouterTab.vue.d.ts +0 -33
- package/dist/lib/components/DcState.vue.d.ts +0 -27
- package/dist/lib/components/DcText.vue.d.ts +0 -8
- package/dist/lib/components/DcToggleIcon.vue.d.ts +0 -43
- package/dist/lib/components/DcVar.vue.d.ts +0 -23
- package/dist/lib/components/DcWaterfall.vue.d.ts +0 -61
- package/dist/lib/components/icons.d.ts +0 -6
- package/dist/lib/form/components/DcForm.vue.d.ts +0 -40
- package/dist/lib/form/components/DcFormCheckbox.vue.d.ts +0 -13
- package/dist/lib/form/components/DcFormDate.vue.d.ts +0 -13
- package/dist/lib/form/components/DcFormDateRange.vue.d.ts +0 -13
- package/dist/lib/form/components/DcFormItem.vue.d.ts +0 -21
- package/dist/lib/form/components/DcFormNumber.vue.d.ts +0 -13
- package/dist/lib/form/components/DcFormPairs.vue.d.ts +0 -19
- package/dist/lib/form/components/DcFormRadio.vue.d.ts +0 -13
- package/dist/lib/form/components/DcFormString.vue.d.ts +0 -13
- package/dist/lib/form/components/DcFormSwitch.vue.d.ts +0 -13
- package/dist/lib/form/functional.d.ts +0 -5
- package/dist/lib/form/row.d.ts +0 -73
- package/dist/lib/form/type.d.ts +0 -16
- package/dist/lib/index.d.ts +0 -45
- package/dist/lib/message/dialog.d.ts +0 -9
- package/dist/lib/message/download.d.ts +0 -13
- package/dist/lib/message/index.d.ts +0 -3
- package/dist/lib/message/loading.d.ts +0 -14
- package/dist/lib/utils/image.d.ts +0 -5
- package/dist/lib/utils/index.d.ts +0 -4
- package/dist/lib/utils/layout.d.ts +0 -18
- package/dist/lib/utils/type.d.ts +0 -6
- package/dist/pack.tgz +0 -0
- package/dist/vite/index.d.ts +0 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region package.json
|
|
2
|
+
var name = "@delta-comic/ui";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region vite/index.ts
|
|
5
|
+
function DeltaComicUiResolver() {
|
|
6
|
+
return {
|
|
7
|
+
type: "component",
|
|
8
|
+
resolve: (name$1) => {
|
|
9
|
+
if (name$1.match(/^(Dc[A-Z]|dc-[a-z])/)) return {
|
|
10
|
+
name: name$1,
|
|
11
|
+
from: name
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { DeltaComicUiResolver };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["name","pkgName"],"sources":["../package.json","../vite/index.ts"],"sourcesContent":["","import type { ComponentResolver } from 'unplugin-vue-components'\n\nimport { name as pkgName } from '../package.json'\n\nexport function DeltaComicUiResolver(): ComponentResolver {\n return {\n type: 'component',\n resolve: (name: string) => {\n if (name.match(/^(Dc[A-Z]|dc-[a-z])/)) return { name, from: pkgName }\n return\n },\n }\n}"],"mappings":";;;;ACIA,SAAgB,uBAA0C;CACxD,OAAO;EACL,MAAM;EACN,UAAU,WAAiB;GACzB,IAAIA,OAAK,MAAM,qBAAqB,GAAG,OAAO;IAAE,MAAA;IAAM,MAAMC;GAAQ;EAEtE;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delta-comic/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-next.4",
|
|
4
4
|
"description": "空阙虱楼",
|
|
5
5
|
"homepage": "https://github.com/delta-comic/delta-comic",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -13,20 +13,21 @@
|
|
|
13
13
|
"url": "https://github.com/delta-comic/delta-comic.git"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
|
-
"dist"
|
|
16
|
+
"dist",
|
|
17
|
+
"dist-vite"
|
|
17
18
|
],
|
|
18
19
|
"type": "module",
|
|
19
20
|
"main": "./dist/index.js",
|
|
20
21
|
"module": "./dist/index.js",
|
|
21
|
-
"types": "./dist/
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
22
23
|
"exports": {
|
|
23
24
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
25
26
|
"import": "./dist/index.js"
|
|
26
27
|
},
|
|
27
28
|
"./vite": {
|
|
28
|
-
"types": "./dist
|
|
29
|
-
"import": "./dist/
|
|
29
|
+
"types": "./dist-vite/index.d.mts",
|
|
30
|
+
"import": "./dist-vite/index.mjs"
|
|
30
31
|
},
|
|
31
32
|
"./style.css": "./dist/index.css"
|
|
32
33
|
},
|
|
@@ -35,52 +36,50 @@
|
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
38
|
"@lhlyu/vue-virtual-waterfall": "1.0.8",
|
|
38
|
-
"@
|
|
39
|
+
"@tauri-apps/api": "^2.11.0",
|
|
39
40
|
"@tauri-apps/plugin-shell": "^2.3.5",
|
|
40
|
-
"@
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"markdown-it": "^14.1.1",
|
|
41
|
+
"@vueuse/core": "^14.3.0",
|
|
42
|
+
"dayjs": "^1.11.21",
|
|
43
|
+
"es-toolkit": "^1.47.0",
|
|
44
|
+
"linkify-it": "^5.0.1",
|
|
45
|
+
"markdown-it": "^14.2.0",
|
|
46
46
|
"mitt": "^3.0.1",
|
|
47
|
-
"motion-v": "2.
|
|
48
|
-
"
|
|
47
|
+
"motion-v": "2.2.1",
|
|
48
|
+
"swiper": "^14.0.1",
|
|
49
|
+
"tailwind-merge": "^3.6.0",
|
|
49
50
|
"tailwindcss-safe-area-capacitor": "^0.5.1",
|
|
50
|
-
"tlds": "^1.261.0"
|
|
51
|
+
"tlds": "^1.261.0",
|
|
52
|
+
"@delta-comic/logger": "3.0.0-next.4"
|
|
51
53
|
},
|
|
52
54
|
"devDependencies": {
|
|
53
|
-
"@tailwindcss/vite": "^4.
|
|
55
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
54
56
|
"@types/linkify-it": "^5.0.0",
|
|
55
57
|
"@types/markdown-it": "^14.1.2",
|
|
56
|
-
"@
|
|
57
|
-
"@vitejs/plugin-vue
|
|
58
|
-
"
|
|
58
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
59
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
60
|
+
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
61
|
+
"browserslist": "^4.28.2",
|
|
59
62
|
"lightningcss": "^1.32.0",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"vite
|
|
64
|
-
"
|
|
63
|
+
"rolldown-plugin-dts": "^0.26.0",
|
|
64
|
+
"tailwindcss": "^4.3.0",
|
|
65
|
+
"unplugin-vue-components": "32.1.0",
|
|
66
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
|
67
|
+
"vite-plus": "^0.2.4",
|
|
68
|
+
"vue-component-type-helpers": "^3.3.3",
|
|
69
|
+
"vue-tsc": "^3.3.3"
|
|
65
70
|
},
|
|
66
71
|
"peerDependencies": {
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"vue": "^3.5",
|
|
71
|
-
"vue-router": "^5.0",
|
|
72
|
-
"@delta-comic/
|
|
73
|
-
"@delta-comic/
|
|
74
|
-
"@delta-comic/core": "2.2.0"
|
|
72
|
+
"@pinia/colada": "^1.3.1",
|
|
73
|
+
"naive-ui": "^2.44.1",
|
|
74
|
+
"pinia": "^3.0.4",
|
|
75
|
+
"vue": "^3.5.40",
|
|
76
|
+
"vue-router": "^5.1.0",
|
|
77
|
+
"@delta-comic/model": "3.0.0-next.4",
|
|
78
|
+
"@delta-comic/utils": "3.0.0-next.4"
|
|
75
79
|
},
|
|
76
|
-
"release": {
|
|
77
|
-
"tagFormat": "ui-${version}"
|
|
78
|
-
},
|
|
79
|
-
"dist": {
|
|
80
|
-
"tarball": "./dist/pack.tgz"
|
|
81
|
-
},
|
|
82
|
-
"readme": "./README.md",
|
|
83
80
|
"scripts": {
|
|
84
|
-
"build": "vp build &&
|
|
81
|
+
"build": "vp build && vp pack",
|
|
82
|
+
"dev": "vp dev",
|
|
83
|
+
"typecheck": "vue-tsc -p tsconfig.app.json --noEmit && tsgo -p tsconfig.node.json --noEmit"
|
|
85
84
|
}
|
|
86
85
|
}
|
package/README.md
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
```python
|
|
2
|
-
r"""
|
|
3
|
-
___________________________
|
|
4
|
-
/ ______\ | __ | | ____|
|
|
5
|
-
| | _____ | |__| | | |__
|
|
6
|
-
| | / _ \| __ \ | __|
|
|
7
|
-
| |___| |_| || | \ \| |____
|
|
8
|
-
\__________/|_| \________|
|
|
9
|
-
==============================
|
|
10
|
-
空阙虱楼 Copyright © Wenxig
|
|
11
|
-
"""
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
[](https://raw.githubusercontent.com/delta-comic/delta-comic-core/main/LICENSE)
|
|
15
|
-
[](https://www.npmjs.com/package/delta-comic-core)
|
|
16
|
-
|
|
17
|
-
- 工具库
|
|
18
|
-
|
|
19
|
-
## 功能
|
|
20
|
-
|
|
21
|
-
- 辅助编写插件
|
|
22
|
-
- 提供通用数据结构与默认样式
|
|
23
|
-
|
|
24
|
-
## 如何使用
|
|
25
|
-
|
|
26
|
-
```sh
|
|
27
|
-
pnpm add delta-comic-core
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## 为谁编写插件?
|
|
31
|
-
|
|
32
|
-
[](https://github.com/delta-comic/delta-comic)
|
|
33
|
-
|
|
34
|
-
## 辅助的插件
|
|
35
|
-
|
|
36
|
-
### Layout
|
|
37
|
-
|
|
38
|
-
[](https://github.com/delta-comic/delta-comic-plugin-bika)
|
|
39
|
-
|
|
40
|
-
## Star History
|
|
41
|
-
|
|
42
|
-
[](https://www.star-history.com/#delta-comic/delta-comic-core&Date)
|
package/dist/index2.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//#region vite/index.ts
|
|
2
|
-
function e() {
|
|
3
|
-
return {
|
|
4
|
-
type: "component",
|
|
5
|
-
resolve: (e) => {
|
|
6
|
-
if (e.match(/^(Dc[A-Z]|dc-[a-z])/)) return {
|
|
7
|
-
name: e,
|
|
8
|
-
from: "@delta-comic/ui"
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { e as DeltaComicUiResolver };
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=index2.js.map
|
package/dist/index2.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import type { ComponentResolver } from 'unplugin-vue-components'\n\nexport function DeltaComicUiResolver(): ComponentResolver {\n return {\n type: 'component',\n resolve: (name: string) => {\n if (name.match(/^(Dc[A-Z]|dc-[a-z])/)) return { name, from: '@delta-comic/ui' }\n }\n }\n}"],"mappings":";AAEA,SAAgB,IAA0C;AACxD,QAAO;EACL,MAAM;EACN,UAAU,MAAiB;AACzB,OAAI,EAAK,MAAM,sBAAsB,CAAE,QAAO;IAAE;IAAM,MAAM;IAAmB;;EAElF"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { uni } from '@delta-comic/model';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
author: {
|
|
4
|
-
$$plugin: string;
|
|
5
|
-
icon: string | uni.resource.RawResource | uni.image.RawImage;
|
|
6
|
-
};
|
|
7
|
-
sizeSpacing: number;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: <T extends PromiseLike<unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
|
3
|
-
promise: () => T;
|
|
4
|
-
autoLoad?: boolean;
|
|
5
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
6
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
7
|
-
attrs: any;
|
|
8
|
-
slots: Readonly<{
|
|
9
|
-
default(arg: {
|
|
10
|
-
result: Awaited<T> | undefined;
|
|
11
|
-
load: () => Promise<T>;
|
|
12
|
-
}): any;
|
|
13
|
-
}> & {
|
|
14
|
-
default(arg: {
|
|
15
|
-
result: Awaited<T> | undefined;
|
|
16
|
-
load: () => Promise<T>;
|
|
17
|
-
}): any;
|
|
18
|
-
};
|
|
19
|
-
emit: {};
|
|
20
|
-
}>) => import('vue').VNode & {
|
|
21
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_PrettifyLocal<T> = {
|
|
25
|
-
[K in keyof T]: T[K];
|
|
26
|
-
} & {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { UseInfiniteQueryReturn, UseQueryReturn } from '@pinia/colada';
|
|
2
|
-
import { StyleValue } from 'vue';
|
|
3
|
-
import { StyleProps } from '../utils';
|
|
4
|
-
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & ({
|
|
6
|
-
hideError?: boolean;
|
|
7
|
-
hideEmpty?: boolean;
|
|
8
|
-
hideLoading?: boolean;
|
|
9
|
-
source: {
|
|
10
|
-
type: "query";
|
|
11
|
-
query: UseQueryReturn<T, any, any>;
|
|
12
|
-
} | {
|
|
13
|
-
type: "infinite";
|
|
14
|
-
stream: UseInfiniteQueryReturn<T, any, any>;
|
|
15
|
-
} | {
|
|
16
|
-
type: "raw";
|
|
17
|
-
data: T;
|
|
18
|
-
isLoading: boolean;
|
|
19
|
-
error?: Error | null;
|
|
20
|
-
refetch?: () => any;
|
|
21
|
-
};
|
|
22
|
-
classError?: any;
|
|
23
|
-
classEmpty?: any;
|
|
24
|
-
styleError?: StyleValue;
|
|
25
|
-
styleEmpty?: StyleValue;
|
|
26
|
-
} & StyleProps) & Partial<{}>> & import('vue').PublicProps;
|
|
27
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
28
|
-
cont: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
29
|
-
}>): void;
|
|
30
|
-
attrs: any;
|
|
31
|
-
slots: Readonly<{
|
|
32
|
-
default(data: {
|
|
33
|
-
data?: T;
|
|
34
|
-
}): any;
|
|
35
|
-
}> & {
|
|
36
|
-
default(data: {
|
|
37
|
-
data?: T;
|
|
38
|
-
}): any;
|
|
39
|
-
};
|
|
40
|
-
emit: {};
|
|
41
|
-
}>) => import('vue').VNode & {
|
|
42
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
43
|
-
};
|
|
44
|
-
export default _default;
|
|
45
|
-
type __VLS_PrettifyLocal<T> = {
|
|
46
|
-
[K in keyof T]: T[K];
|
|
47
|
-
} & {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { StyleProps } from '../utils';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
anchors?: 'high' | 'low' | number[];
|
|
4
|
-
lockScroll?: boolean;
|
|
5
|
-
overlay?: boolean;
|
|
6
|
-
contentDraggable?: boolean;
|
|
7
|
-
} & StyleProps;
|
|
8
|
-
declare function __VLS_template(): {
|
|
9
|
-
attrs: Partial<{}>;
|
|
10
|
-
slots: Readonly<{
|
|
11
|
-
default(arg: {
|
|
12
|
-
height: number;
|
|
13
|
-
}): void;
|
|
14
|
-
}> & {
|
|
15
|
-
default(arg: {
|
|
16
|
-
height: number;
|
|
17
|
-
}): void;
|
|
18
|
-
};
|
|
19
|
-
refs: {};
|
|
20
|
-
rootEl: any;
|
|
21
|
-
};
|
|
22
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
24
|
-
show(node?: number): void;
|
|
25
|
-
close(): void;
|
|
26
|
-
isShowing: Readonly<import('vue').ShallowRef<boolean, boolean>>;
|
|
27
|
-
height: Readonly<import('vue').ShallowRef<number, number>>;
|
|
28
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
29
|
-
anchors: "high" | "low" | number[];
|
|
30
|
-
lockScroll: boolean;
|
|
31
|
-
contentDraggable: boolean;
|
|
32
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
|
-
export default _default;
|
|
35
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
-
new (): {
|
|
37
|
-
$slots: S;
|
|
38
|
-
};
|
|
39
|
-
};
|