jplan-pack 0.1.22 → 0.3.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/jplan-lib.es.js.mjs +9 -9
- package/dist/style.css +1 -1
- package/dist/types/components/ConfirmDialog.vue.d.ts +44 -3
- package/dist/types/components/CopyButton.vue.d.ts +4 -4
- package/dist/types/components/GlobalDialog.vue.d.ts +8 -15
- package/dist/types/components/JBtn.vue.d.ts +5 -12
- package/dist/types/components/JIconBtn.vue.d.ts +39 -4
- package/dist/types/components/JTextField.vue.d.ts +4 -4
- package/dist/types/components/ParentCard.vue.d.ts +8 -15
- package/dist/types/components/icon/IconSet.vue.d.ts +10 -10
- package/dist/types/components/table/UiTable.vue.d.ts +16 -23
- package/dist/types/index.d.ts +1 -1
- package/package.json +7 -6
@@ -6,8 +6,31 @@ export interface DialogProps<T> {
|
|
6
6
|
width?: string;
|
7
7
|
loading?: boolean;
|
8
8
|
}
|
9
|
-
declare const _default: <T>(__VLS_props:
|
10
|
-
|
9
|
+
declare const _default: <T>(__VLS_props: {
|
10
|
+
title: string;
|
11
|
+
text?: string | undefined;
|
12
|
+
callback?: (() => void | Promise<void>) | undefined;
|
13
|
+
cancelCallback?: (() => void) | undefined;
|
14
|
+
width?: string | undefined;
|
15
|
+
loading?: boolean | undefined;
|
16
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
|
17
|
+
attrs: any;
|
18
|
+
slots: {
|
19
|
+
button?(_: {
|
20
|
+
isActive: any;
|
21
|
+
props: any;
|
22
|
+
}): any;
|
23
|
+
};
|
24
|
+
emit: {};
|
25
|
+
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
26
|
+
props: {
|
27
|
+
title: string;
|
28
|
+
text?: string | undefined;
|
29
|
+
callback?: (() => void | Promise<void>) | undefined;
|
30
|
+
cancelCallback?: (() => void) | undefined;
|
31
|
+
width?: string | undefined;
|
32
|
+
loading?: boolean | undefined;
|
33
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
11
34
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
12
35
|
attrs: any;
|
13
36
|
slots: {
|
@@ -20,7 +43,25 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
20
43
|
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
21
44
|
[key: string]: any;
|
22
45
|
}> & {
|
23
|
-
__ctx?:
|
46
|
+
__ctx?: {
|
47
|
+
props: {
|
48
|
+
title: string;
|
49
|
+
text?: string | undefined;
|
50
|
+
callback?: (() => void | Promise<void>) | undefined;
|
51
|
+
cancelCallback?: (() => void) | undefined;
|
52
|
+
width?: string | undefined;
|
53
|
+
loading?: boolean | undefined;
|
54
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
55
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
56
|
+
attrs: any;
|
57
|
+
slots: {
|
58
|
+
button?(_: {
|
59
|
+
isActive: any;
|
60
|
+
props: any;
|
61
|
+
}): any;
|
62
|
+
};
|
63
|
+
emit: {};
|
64
|
+
} | undefined;
|
24
65
|
};
|
25
66
|
export default _default;
|
26
67
|
type __VLS_PrettifyLocal<T> = {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
2
2
|
contentToCopy: string;
|
3
|
-
size?: "small" | "medium" | "large" |
|
4
|
-
color?: string;
|
3
|
+
size?: number | "small" | "medium" | "large" | undefined;
|
4
|
+
color?: string | undefined;
|
5
5
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
6
6
|
contentToCopy: string;
|
7
|
-
size?: "small" | "medium" | "large" |
|
8
|
-
color?: string;
|
7
|
+
size?: number | "small" | "medium" | "large" | undefined;
|
8
|
+
color?: string | undefined;
|
9
9
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
10
10
|
export default _default;
|
@@ -8,23 +8,16 @@ export type JDialogType = {
|
|
8
8
|
reference?: boolean;
|
9
9
|
buttons?: boolean;
|
10
10
|
};
|
11
|
-
declare
|
12
|
-
slots: {
|
13
|
-
title?(_: {}): any;
|
14
|
-
"heading-actions"?(_: {}): any;
|
15
|
-
default?(_: {}): any;
|
16
|
-
footer?(_: {}): any;
|
17
|
-
metadata?(_: {}): any;
|
18
|
-
};
|
19
|
-
refs: {};
|
20
|
-
attrs: Partial<{}>;
|
21
|
-
};
|
22
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
23
|
-
declare const __VLS_component: import('vue').DefineComponent<JDialogType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<JDialogType> & Readonly<{}>, {
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<JDialogType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<JDialogType> & Readonly<{}>, {
|
24
12
|
width: string;
|
25
13
|
buttons: boolean;
|
26
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
27
|
-
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
15
|
+
title?(_: {}): any;
|
16
|
+
"heading-actions"?(_: {}): any;
|
17
|
+
default?(_: {}): any;
|
18
|
+
footer?(_: {}): any;
|
19
|
+
metadata?(_: {}): any;
|
20
|
+
}>;
|
28
21
|
export default _default;
|
29
22
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
30
23
|
new (): {
|
@@ -7,23 +7,16 @@ export interface BtnProps {
|
|
7
7
|
color: string;
|
8
8
|
tooltip?: string;
|
9
9
|
}
|
10
|
-
declare
|
11
|
-
slots: {
|
12
|
-
default?(_: {}): any;
|
13
|
-
};
|
14
|
-
refs: {};
|
15
|
-
attrs: Partial<{}>;
|
16
|
-
};
|
17
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
18
|
-
declare const __VLS_component: import('vue').DefineComponent<BtnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BtnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
19
11
|
click: (...args: any[]) => void;
|
20
12
|
}, string, import('vue').PublicProps, Readonly<BtnProps> & Readonly<{
|
21
13
|
onClick?: ((...args: any[]) => any) | undefined;
|
22
14
|
}>, {
|
23
15
|
color: string;
|
24
|
-
variant:
|
25
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
26
|
-
|
16
|
+
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
18
|
+
default?(_: {}): any;
|
19
|
+
}>;
|
27
20
|
export default _default;
|
28
21
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
29
22
|
new (): {
|
@@ -7,10 +7,29 @@ export interface Props<T> {
|
|
7
7
|
tooltip?: string;
|
8
8
|
size?: number;
|
9
9
|
}
|
10
|
-
declare const _default: <T>(__VLS_props:
|
11
|
-
|
10
|
+
declare const _default: <T>(__VLS_props: {
|
11
|
+
readonly onClick?: ((...args: any[]) => any) | undefined;
|
12
|
+
variant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | undefined;
|
13
|
+
icon?: string | TablerIconComponent | SVGElement | undefined;
|
14
|
+
color?: string | undefined;
|
15
|
+
tooltip?: string | undefined;
|
16
|
+
size?: number | undefined;
|
17
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
|
18
|
+
attrs: any;
|
19
|
+
slots: {
|
20
|
+
default?(_: {}): any;
|
21
|
+
default?(_: {}): any;
|
22
|
+
};
|
23
|
+
emit: (event: "click", ...args: any[]) => void;
|
24
|
+
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
25
|
+
props: {
|
12
26
|
readonly onClick?: ((...args: any[]) => any) | undefined;
|
13
|
-
|
27
|
+
variant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | undefined;
|
28
|
+
icon?: string | TablerIconComponent | SVGElement | undefined;
|
29
|
+
color?: string | undefined;
|
30
|
+
tooltip?: string | undefined;
|
31
|
+
size?: number | undefined;
|
32
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
14
33
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
15
34
|
attrs: any;
|
16
35
|
slots: {
|
@@ -21,7 +40,23 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
21
40
|
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
22
41
|
[key: string]: any;
|
23
42
|
}> & {
|
24
|
-
__ctx?:
|
43
|
+
__ctx?: {
|
44
|
+
props: {
|
45
|
+
readonly onClick?: ((...args: any[]) => any) | undefined;
|
46
|
+
variant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | undefined;
|
47
|
+
icon?: string | TablerIconComponent | SVGElement | undefined;
|
48
|
+
color?: string | undefined;
|
49
|
+
tooltip?: string | undefined;
|
50
|
+
size?: number | undefined;
|
51
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
52
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
53
|
+
attrs: any;
|
54
|
+
slots: {
|
55
|
+
default?(_: {}): any;
|
56
|
+
default?(_: {}): any;
|
57
|
+
};
|
58
|
+
emit: (event: "click", ...args: any[]) => void;
|
59
|
+
} | undefined;
|
25
60
|
};
|
26
61
|
export default _default;
|
27
62
|
type __VLS_PrettifyLocal<T> = {
|
@@ -1,14 +1,14 @@
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
2
2
|
modelValue: string;
|
3
|
-
name?: string;
|
4
|
-
label?: string;
|
3
|
+
name?: string | undefined;
|
4
|
+
label?: string | undefined;
|
5
5
|
type: "text" | "password" | "email" | "date";
|
6
6
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
7
7
|
"update:modelValue": (...args: any[]) => void;
|
8
8
|
}, string, import('vue').PublicProps, Readonly<{
|
9
9
|
modelValue: string;
|
10
|
-
name?: string;
|
11
|
-
label?: string;
|
10
|
+
name?: string | undefined;
|
11
|
+
label?: string | undefined;
|
12
12
|
type: "text" | "password" | "email" | "date";
|
13
13
|
}> & Readonly<{
|
14
14
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
@@ -1,21 +1,14 @@
|
|
1
|
-
declare
|
2
|
-
|
3
|
-
|
4
|
-
};
|
5
|
-
refs: {};
|
6
|
-
attrs: Partial<{}>;
|
7
|
-
};
|
8
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
10
|
-
title?: string;
|
11
|
-
height?: string;
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
2
|
+
title?: string | undefined;
|
3
|
+
height?: string | undefined;
|
12
4
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
13
|
-
title?: string;
|
14
|
-
height?: string;
|
5
|
+
title?: string | undefined;
|
6
|
+
height?: string | undefined;
|
15
7
|
}> & Readonly<{}>, {
|
16
8
|
height: string;
|
17
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
18
|
-
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
10
|
+
default?(_: {}): any;
|
11
|
+
}>;
|
19
12
|
export default _default;
|
20
13
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
21
14
|
new (): {
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import { TablerIconComponent } from 'vue-tabler-icons';
|
2
2
|
declare const _default: import('vue').DefineComponent<{
|
3
3
|
item: string | TablerIconComponent | SVGElement;
|
4
|
-
level?: number;
|
5
|
-
size?: number;
|
6
|
-
stroke?: number;
|
7
|
-
color?: string;
|
8
|
-
svg?: SVGElement | null;
|
4
|
+
level?: number | undefined;
|
5
|
+
size?: number | undefined;
|
6
|
+
stroke?: number | undefined;
|
7
|
+
color?: string | undefined;
|
8
|
+
svg?: SVGElement | null | undefined;
|
9
9
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
10
10
|
item: string | TablerIconComponent | SVGElement;
|
11
|
-
level?: number;
|
12
|
-
size?: number;
|
13
|
-
stroke?: number;
|
14
|
-
color?: string;
|
15
|
-
svg?: SVGElement | null;
|
11
|
+
level?: number | undefined;
|
12
|
+
size?: number | undefined;
|
13
|
+
stroke?: number | undefined;
|
14
|
+
color?: string | undefined;
|
15
|
+
svg?: SVGElement | null | undefined;
|
16
16
|
}> & Readonly<{}>, {
|
17
17
|
size: number;
|
18
18
|
color: string;
|
@@ -1,39 +1,32 @@
|
|
1
1
|
import { UiTableHeader } from '../../types/UiTableHeader';
|
2
|
-
declare
|
3
|
-
|
4
|
-
actions?(_: {
|
5
|
-
item: any;
|
6
|
-
}): any;
|
7
|
-
};
|
8
|
-
refs: {};
|
9
|
-
attrs: Partial<{}>;
|
10
|
-
};
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
13
|
-
headers?: UiTableHeader[];
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
3
|
+
headers?: UiTableHeader[] | undefined;
|
14
4
|
items: any[];
|
15
5
|
actions?: any;
|
16
|
-
loading?: boolean;
|
17
|
-
columns?: UiTableHeader[];
|
6
|
+
loading?: boolean | undefined;
|
7
|
+
columns?: UiTableHeader[] | undefined;
|
18
8
|
sortBy?: {
|
19
9
|
key: string;
|
20
|
-
order: "
|
21
|
-
}[];
|
10
|
+
order: "desc" | "asc";
|
11
|
+
}[] | undefined;
|
22
12
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
23
|
-
headers?: UiTableHeader[];
|
13
|
+
headers?: UiTableHeader[] | undefined;
|
24
14
|
items: any[];
|
25
15
|
actions?: any;
|
26
|
-
loading?: boolean;
|
27
|
-
columns?: UiTableHeader[];
|
16
|
+
loading?: boolean | undefined;
|
17
|
+
columns?: UiTableHeader[] | undefined;
|
28
18
|
sortBy?: {
|
29
19
|
key: string;
|
30
|
-
order: "
|
31
|
-
}[];
|
20
|
+
order: "desc" | "asc";
|
21
|
+
}[] | undefined;
|
32
22
|
}> & Readonly<{}>, {
|
33
23
|
items: any[];
|
34
24
|
columns: UiTableHeader[];
|
35
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
36
|
-
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
26
|
+
actions?(_: {
|
27
|
+
item: any;
|
28
|
+
}): any;
|
29
|
+
}>;
|
37
30
|
export default _default;
|
38
31
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
39
32
|
new (): {
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "jplan-pack",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.3.4",
|
4
4
|
"files": ["dist"],
|
5
5
|
"main": "./dist/jplan-lib.es.js",
|
6
6
|
"types": "./dist/types/index.d.ts",
|
@@ -21,15 +21,16 @@
|
|
21
21
|
"@tabler/icons-vue": "^3.21.0",
|
22
22
|
"@vitejs/plugin-vue": "^5.1.5",
|
23
23
|
"@vue/compiler-core": "^3.3.4",
|
24
|
+
"@vueuse/core": "^11.2.0",
|
24
25
|
"lodash": "^4.17.21",
|
25
|
-
"pinia": "^2.2.6"
|
26
|
+
"pinia": "^2.2.6",
|
27
|
+
"vue-tabler-icons": "^2.21.0"
|
26
28
|
},
|
27
29
|
"peerDependencies": {
|
28
|
-
"@mdi/font": "^
|
30
|
+
"@mdi/font": "^6.0.0",
|
29
31
|
"@vueuse/core": "^11.2.0",
|
30
|
-
"vue-tabler-icons": "^2.21.0",
|
31
32
|
"vuetify": "^3.7.4",
|
32
|
-
"vue": "^3.
|
33
|
+
"vue": "^3.3.4"
|
33
34
|
},
|
34
35
|
"devDependencies": {
|
35
36
|
"@types/node": "^20.3.3",
|
@@ -43,7 +44,7 @@
|
|
43
44
|
"vue-cli-plugin-vuetify": "2.5.8",
|
44
45
|
"vue-tsc": "^2.1.10"
|
45
46
|
},
|
46
|
-
"module": "./dist/jplan-
|
47
|
+
"module": "./dist/jplan-lib.es.js",
|
47
48
|
"repository": {
|
48
49
|
"type": "git",
|
49
50
|
"url": "git+https://github.com/wuruoyun/vue-component-lib-starter.git"
|