@stephenchenorg/astro 10.0.1 → 11.0.0
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/README.md
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
npm install @stephenchenorg/astro
|
|
12
12
|
# yarn
|
|
13
13
|
yarn add @stephenchenorg/astro
|
|
14
|
+
# pnpm
|
|
15
|
+
pnpm add @stephenchenorg/astro
|
|
14
16
|
```
|
|
15
17
|
|
|
16
18
|
## 文件
|
|
@@ -20,15 +22,8 @@ https://stephenchenorg-astro.netlify.app
|
|
|
20
22
|
## 開發
|
|
21
23
|
|
|
22
24
|
```bash
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## 發布套件
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npm login
|
|
31
|
-
npm run release
|
|
25
|
+
pnpm install
|
|
26
|
+
pnpm build
|
|
32
27
|
```
|
|
33
28
|
|
|
34
29
|
## License
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue9 from "vue";
|
|
2
2
|
import { PropType, SlotsType } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/form-validator/types.d.ts
|
|
@@ -10,7 +10,7 @@ interface FormRule<T = any> {
|
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/form-validator/components/FormField.d.ts
|
|
13
|
-
declare const FormField:
|
|
13
|
+
declare const FormField: vue9.DefineComponent<vue9.ExtractPropTypes<{
|
|
14
14
|
id: {
|
|
15
15
|
type: StringConstructor;
|
|
16
16
|
required: true;
|
|
@@ -19,9 +19,9 @@ declare const FormField: vue25.DefineComponent<vue25.ExtractPropTypes<{
|
|
|
19
19
|
type: PropType<FormRule[]>;
|
|
20
20
|
default: () => never[];
|
|
21
21
|
};
|
|
22
|
-
}>, () =>
|
|
22
|
+
}>, () => vue9.VNode<vue9.RendererNode, vue9.RendererElement, {
|
|
23
23
|
[key: string]: any;
|
|
24
|
-
}>[], {}, {}, {},
|
|
24
|
+
}>[], {}, {}, {}, vue9.ComponentOptionsMixin, vue9.ComponentOptionsMixin, {}, string, vue9.PublicProps, Readonly<vue9.ExtractPropTypes<{
|
|
25
25
|
id: {
|
|
26
26
|
type: StringConstructor;
|
|
27
27
|
required: true;
|
|
@@ -36,7 +36,7 @@ declare const FormField: vue25.DefineComponent<vue25.ExtractPropTypes<{
|
|
|
36
36
|
default: {
|
|
37
37
|
error: string | null;
|
|
38
38
|
};
|
|
39
|
-
}>, {}, {}, string,
|
|
39
|
+
}>, {}, {}, string, vue9.ComponentProvideOptions, true, {}, any>;
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/form-validator/FormValidator.d.ts
|
|
42
42
|
declare class FormValidator {
|
|
@@ -53,7 +53,7 @@ declare class FormValidator {
|
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/form-validator/components/FormValidatorProvider.d.ts
|
|
56
|
-
declare const FormValidatorProvider:
|
|
56
|
+
declare const FormValidatorProvider: vue9.DefineComponent<vue9.ExtractPropTypes<{
|
|
57
57
|
formValidator: {
|
|
58
58
|
type: PropType<FormValidator>;
|
|
59
59
|
required: true;
|
|
@@ -62,9 +62,9 @@ declare const FormValidatorProvider: vue25.DefineComponent<vue25.ExtractPropType
|
|
|
62
62
|
type: PropType<FormErrors>;
|
|
63
63
|
default: () => {};
|
|
64
64
|
};
|
|
65
|
-
}>, () =>
|
|
65
|
+
}>, () => vue9.VNode<vue9.RendererNode, vue9.RendererElement, {
|
|
66
66
|
[key: string]: any;
|
|
67
|
-
}>[], {}, {}, {},
|
|
67
|
+
}>[], {}, {}, {}, vue9.ComponentOptionsMixin, vue9.ComponentOptionsMixin, {}, string, vue9.PublicProps, Readonly<vue9.ExtractPropTypes<{
|
|
68
68
|
formValidator: {
|
|
69
69
|
type: PropType<FormValidator>;
|
|
70
70
|
required: true;
|
|
@@ -80,7 +80,7 @@ declare const FormValidatorProvider: vue25.DefineComponent<vue25.ExtractPropType
|
|
|
80
80
|
errors: FormErrors;
|
|
81
81
|
hasErrors: boolean;
|
|
82
82
|
};
|
|
83
|
-
}>, {}, {}, string,
|
|
83
|
+
}>, {}, {}, string, vue9.ComponentProvideOptions, true, {}, any>;
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src/form-validator/createFormValidator.d.ts
|
|
86
86
|
declare function createFormValidator(): FormValidator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue29 from "vue";
|
|
2
2
|
import { MaybeRefOrGetter } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/pagination-vue-client-side/types.d.ts
|
|
@@ -16,12 +16,12 @@ declare function usePagination(options: {
|
|
|
16
16
|
visiblePages?: MaybeRefOrGetter<number | undefined>;
|
|
17
17
|
onChange?: (page: number) => void;
|
|
18
18
|
}): {
|
|
19
|
-
items:
|
|
20
|
-
showPagination:
|
|
21
|
-
canFirst:
|
|
22
|
-
canPrev:
|
|
23
|
-
canNext:
|
|
24
|
-
canLast:
|
|
19
|
+
items: vue29.ComputedRef<number[]>;
|
|
20
|
+
showPagination: vue29.ComputedRef<boolean>;
|
|
21
|
+
canFirst: vue29.ComputedRef<boolean>;
|
|
22
|
+
canPrev: vue29.ComputedRef<boolean>;
|
|
23
|
+
canNext: vue29.ComputedRef<boolean>;
|
|
24
|
+
canLast: vue29.ComputedRef<boolean>;
|
|
25
25
|
gotoFirst: () => void;
|
|
26
26
|
gotoPrev: () => void;
|
|
27
27
|
gotoNext: () => void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stephenchenorg/astro",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "11.0.0",
|
|
5
5
|
"description": "Stephenchenorg Astro 前端通用套件",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://stephenchenorg-astro.netlify.app",
|
|
@@ -67,12 +67,6 @@
|
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": ">=22"
|
|
69
69
|
},
|
|
70
|
-
"scripts": {
|
|
71
|
-
"build": "tsdown",
|
|
72
|
-
"test": "vitest",
|
|
73
|
-
"code-check": "astro check && npm run test -- --run",
|
|
74
|
-
"prepack": "npm run build"
|
|
75
|
-
},
|
|
76
70
|
"peerDependencies": {
|
|
77
71
|
"astro": "^5.0.0",
|
|
78
72
|
"vue": "^3.5.0"
|
|
@@ -94,5 +88,10 @@
|
|
|
94
88
|
"typescript": "^5.9.3",
|
|
95
89
|
"vitest": "^4.0.17",
|
|
96
90
|
"vue": "^3.5.27"
|
|
91
|
+
},
|
|
92
|
+
"scripts": {
|
|
93
|
+
"build": "tsdown",
|
|
94
|
+
"test": "vitest",
|
|
95
|
+
"code-check": "astro check && pnpm test --run"
|
|
97
96
|
}
|
|
98
|
-
}
|
|
97
|
+
}
|