jplan-pack 0.3.6 → 0.3.9
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-pack.cjs.js +16 -0
- package/dist/{jplan-lib.es.js.mjs → jplan-pack.es.js} +15509 -14506
- package/dist/types/components/ConfirmDialog.d.ts +29 -0
- package/dist/types/components/{CopyButton.vue.d.ts → CopyButton.d.ts} +4 -4
- package/dist/types/components/{JBtn.vue.d.ts → JBtn.d.ts} +12 -5
- package/dist/types/components/JDialog.d.ts +38 -0
- package/dist/types/components/JIconBtn.d.ts +29 -0
- package/dist/types/components/JSelect.d.ts +29 -0
- package/dist/types/components/JTextArea.d.ts +20 -0
- package/dist/types/components/JTextField.d.ts +25 -0
- package/dist/types/components/ParentCard.d.ts +26 -0
- package/dist/types/components/ReadOnlyField.d.ts +6 -0
- package/dist/types/components/icon/IconSet.d.ts +22 -0
- package/dist/types/components/index.d.ts +13 -12
- package/dist/types/components/table/UiTable.d.ts +42 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/Icon.d.ts +2 -0
- package/dist/types/types/Metadata.d.ts +11 -0
- package/dist/types/types/index.d.ts +4 -3
- package/dist/types/types/sidebarItem.d.ts +7 -0
- package/dist/types/utils/HttpCore.d.ts +9 -0
- package/dist/types/utils/index.d.ts +2 -1
- package/package.json +15 -12
- package/dist/style.css +0 -1
- package/dist/types/components/ConfirmDialog.vue.d.ts +0 -69
- package/dist/types/components/GlobalDialog.vue.d.ts +0 -26
- package/dist/types/components/JIconBtn.vue.d.ts +0 -64
- package/dist/types/components/JTextField.vue.d.ts +0 -18
- package/dist/types/components/ParentCard.vue.d.ts +0 -17
- package/dist/types/components/icon/IconSet.vue.d.ts +0 -23
- package/dist/types/components/layout/header/EnvironmentDialog.vue.d.ts +0 -2
- package/dist/types/components/layout/header/MegaMenuDD.vue.d.ts +0 -2
- package/dist/types/components/layout/header/NotificationDD.vue.d.ts +0 -2
- package/dist/types/components/layout/header/ProfileDD.vue.d.ts +0 -2
- package/dist/types/components/layout/header/UiHeader.vue.d.ts +0 -2
- package/dist/types/components/layout/header/data.d.ts +0 -20
- package/dist/types/components/layout/sidebar/_type.d.ts +0 -11
- package/dist/types/components/table/UiTable.vue.d.ts +0 -35
- package/dist/types/utils/MyUtil.d.ts +0 -5
- /package/dist/types/components/{DotsMenu.vue.d.ts → DotsMenu.d.ts} +0 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
export interface DialogProps {
|
2
|
+
title: string;
|
3
|
+
text?: string;
|
4
|
+
callback?: () => Promise<void> | void;
|
5
|
+
cancelCallback?: () => void;
|
6
|
+
width?: string;
|
7
|
+
loading?: boolean;
|
8
|
+
}
|
9
|
+
declare function __VLS_template(): {
|
10
|
+
slots: {
|
11
|
+
button?(_: {
|
12
|
+
isActive: any;
|
13
|
+
props: any;
|
14
|
+
}): any;
|
15
|
+
};
|
16
|
+
refs: {};
|
17
|
+
attrs: Partial<{}>;
|
18
|
+
};
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<DialogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DialogProps> & Readonly<{}>, {
|
21
|
+
width: string;
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
24
|
+
export default _default;
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
26
|
+
new (): {
|
27
|
+
$slots: S;
|
28
|
+
};
|
29
|
+
};
|
@@ -1,10 +1,10 @@
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
2
2
|
contentToCopy: string;
|
3
|
-
size?:
|
4
|
-
color?: string
|
3
|
+
size?: "small" | "medium" | "large" | number;
|
4
|
+
color?: string;
|
5
5
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
6
6
|
contentToCopy: string;
|
7
|
-
size?:
|
8
|
-
color?: string
|
7
|
+
size?: "small" | "medium" | "large" | number;
|
8
|
+
color?: string;
|
9
9
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
10
10
|
export default _default;
|
@@ -7,16 +7,23 @@ export interface BtnProps {
|
|
7
7
|
color: string;
|
8
8
|
tooltip?: string;
|
9
9
|
}
|
10
|
-
declare
|
10
|
+
declare function __VLS_template(): {
|
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, {
|
11
19
|
click: (...args: any[]) => void;
|
12
20
|
}, string, import('vue').PublicProps, Readonly<BtnProps> & Readonly<{
|
13
21
|
onClick?: ((...args: any[]) => any) | undefined;
|
14
22
|
}>, {
|
15
23
|
color: string;
|
16
|
-
variant: "
|
17
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
18
|
-
|
19
|
-
}>;
|
24
|
+
variant: VBtn["variant"];
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
20
27
|
export default _default;
|
21
28
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
22
29
|
new (): {
|
@@ -0,0 +1,38 @@
|
|
1
|
+
export type JDialogType = {
|
2
|
+
dialogId?: string;
|
3
|
+
variant?: 'global' | 'confirm' | 'empty';
|
4
|
+
title?: string;
|
5
|
+
text?: string;
|
6
|
+
onSave?: (...params: any) => any;
|
7
|
+
onCancel?: () => any;
|
8
|
+
width?: string;
|
9
|
+
reference?: boolean;
|
10
|
+
buttons?: boolean;
|
11
|
+
scrim?: string;
|
12
|
+
};
|
13
|
+
declare function __VLS_template(): {
|
14
|
+
slots: {
|
15
|
+
title?(_: {}): any;
|
16
|
+
"heading-actions"?(_: {}): any;
|
17
|
+
default?(_: {}): any;
|
18
|
+
default?(_: {}): any;
|
19
|
+
footer?(_: {}): any;
|
20
|
+
metadata?(_: {}): any;
|
21
|
+
};
|
22
|
+
refs: {};
|
23
|
+
attrs: Partial<{}>;
|
24
|
+
};
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<JDialogType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<JDialogType> & Readonly<{}>, {
|
27
|
+
variant: "global" | "confirm" | "empty";
|
28
|
+
width: string;
|
29
|
+
scrim: string;
|
30
|
+
buttons: boolean;
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
33
|
+
export default _default;
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
35
|
+
new (): {
|
36
|
+
$slots: S;
|
37
|
+
};
|
38
|
+
};
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { VBtn } from 'vuetify/components';
|
2
|
+
import { TablerIconComponent } from 'vue-tabler-icons';
|
3
|
+
export interface Props<T> {
|
4
|
+
variant?: VBtn['variant'];
|
5
|
+
icon?: string | TablerIconComponent | SVGElement;
|
6
|
+
color?: string;
|
7
|
+
tooltip?: string;
|
8
|
+
size?: number;
|
9
|
+
}
|
10
|
+
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<{
|
11
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
12
|
+
readonly onClick?: ((...args: any[]) => any) | undefined;
|
13
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClick"> & Props<T>> & import('vue').PublicProps;
|
14
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
15
|
+
attrs: any;
|
16
|
+
slots: {
|
17
|
+
default?(_: {}): any;
|
18
|
+
default?(_: {}): any;
|
19
|
+
};
|
20
|
+
emit: (event: "click", ...args: any[]) => void;
|
21
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
22
|
+
[key: string]: any;
|
23
|
+
}> & {
|
24
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
25
|
+
};
|
26
|
+
export default _default;
|
27
|
+
type __VLS_PrettifyLocal<T> = {
|
28
|
+
[K in keyof T]: T[K];
|
29
|
+
} & {};
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { VSelect } from 'vuetify/components';
|
2
|
+
declare const _default: import('vue').DefineComponent<{
|
3
|
+
modelValue: any;
|
4
|
+
name?: string;
|
5
|
+
label?: string;
|
6
|
+
placeholder?: string;
|
7
|
+
readonly?: boolean;
|
8
|
+
items: any[];
|
9
|
+
itemTitle?: string;
|
10
|
+
itemValue?: string;
|
11
|
+
density?: VSelect["density"];
|
12
|
+
loading?: boolean;
|
13
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
14
|
+
"update:modelValue": (...args: any[]) => void;
|
15
|
+
}, string, import('vue').PublicProps, Readonly<{
|
16
|
+
modelValue: any;
|
17
|
+
name?: string;
|
18
|
+
label?: string;
|
19
|
+
placeholder?: string;
|
20
|
+
readonly?: boolean;
|
21
|
+
items: any[];
|
22
|
+
itemTitle?: string;
|
23
|
+
itemValue?: string;
|
24
|
+
density?: VSelect["density"];
|
25
|
+
loading?: boolean;
|
26
|
+
}> & Readonly<{
|
27
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
28
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
29
|
+
export default _default;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
2
|
+
modelValue: any;
|
3
|
+
name?: string;
|
4
|
+
label?: string;
|
5
|
+
readonly?: boolean;
|
6
|
+
rows: number | string;
|
7
|
+
hideDetails?: boolean;
|
8
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
9
|
+
"update:modelValue": (...args: any[]) => void;
|
10
|
+
}, string, import('vue').PublicProps, Readonly<{
|
11
|
+
modelValue: any;
|
12
|
+
name?: string;
|
13
|
+
label?: string;
|
14
|
+
readonly?: boolean;
|
15
|
+
rows: number | string;
|
16
|
+
hideDetails?: boolean;
|
17
|
+
}> & Readonly<{
|
18
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
20
|
+
export default _default;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { VTextField } from 'vuetify/components';
|
2
|
+
declare const _default: import('vue').DefineComponent<{
|
3
|
+
modelValue: string | null | number | Date | undefined;
|
4
|
+
name?: string;
|
5
|
+
label?: string;
|
6
|
+
type?: "text" | "number" | "password" | "email" | "date";
|
7
|
+
readonly?: boolean;
|
8
|
+
density?: VTextField["density"];
|
9
|
+
rules?: VTextField["rules"];
|
10
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
12
|
+
}, string, import('vue').PublicProps, Readonly<{
|
13
|
+
modelValue: string | null | number | Date | undefined;
|
14
|
+
name?: string;
|
15
|
+
label?: string;
|
16
|
+
type?: "text" | "number" | "password" | "email" | "date";
|
17
|
+
readonly?: boolean;
|
18
|
+
density?: VTextField["density"];
|
19
|
+
rules?: VTextField["rules"];
|
20
|
+
}> & Readonly<{
|
21
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
22
|
+
}>, {
|
23
|
+
type: "text" | "number" | "password" | "email" | "date";
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
25
|
+
export default _default;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
declare function __VLS_template(): {
|
2
|
+
slots: {
|
3
|
+
default?(_: {}): any;
|
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;
|
12
|
+
loading?: boolean;
|
13
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
14
|
+
title?: string;
|
15
|
+
height?: string;
|
16
|
+
loading?: boolean;
|
17
|
+
}> & Readonly<{}>, {
|
18
|
+
height: string;
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
21
|
+
export default _default;
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
23
|
+
new (): {
|
24
|
+
$slots: S;
|
25
|
+
};
|
26
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
2
|
+
value: any;
|
3
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
4
|
+
value: any;
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
6
|
+
export default _default;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { IconType } from '../../types/Icon';
|
2
|
+
declare const _default: import('vue').DefineComponent<{
|
3
|
+
item: IconType | string;
|
4
|
+
level?: number;
|
5
|
+
size?: number;
|
6
|
+
stroke?: number | string;
|
7
|
+
color?: string;
|
8
|
+
svg?: string | null;
|
9
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
10
|
+
item: IconType | string;
|
11
|
+
level?: number;
|
12
|
+
size?: number;
|
13
|
+
stroke?: number | string;
|
14
|
+
color?: string;
|
15
|
+
svg?: string | null;
|
16
|
+
}> & Readonly<{}>, {
|
17
|
+
size: number;
|
18
|
+
svg: string | null;
|
19
|
+
level: number;
|
20
|
+
stroke: number | string;
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
22
|
+
export default _default;
|
@@ -1,13 +1,14 @@
|
|
1
|
-
import { default as CopyButton } from './CopyButton
|
2
|
-
import { default as JIconBtn } from './JIconBtn
|
3
|
-
import { default as JBtn } from './JBtn
|
4
|
-
import { default as DotsMenu } from './DotsMenu
|
5
|
-
import { default as IconSet } from './icon/IconSet
|
6
|
-
import { default as UiTable } from './table/UiTable
|
7
|
-
import { default as ParentCard } from './ParentCard
|
8
|
-
import { default as
|
9
|
-
import { default as ConfirmDialog } from './ConfirmDialog
|
10
|
-
import { default as
|
11
|
-
import { default as
|
1
|
+
import { default as CopyButton } from './CopyButton';
|
2
|
+
import { default as JIconBtn } from './JIconBtn';
|
3
|
+
import { default as JBtn } from './JBtn';
|
4
|
+
import { default as DotsMenu } from './DotsMenu';
|
5
|
+
import { default as IconSet } from './icon/IconSet';
|
6
|
+
import { default as UiTable } from './table/UiTable';
|
7
|
+
import { default as ParentCard } from './ParentCard';
|
8
|
+
import { default as JDialog } from './JDialog';
|
9
|
+
import { default as ConfirmDialog } from './ConfirmDialog';
|
10
|
+
import { default as JTextField } from './JTextField';
|
11
|
+
import { default as JSelect } from './JSelect';
|
12
|
+
import { default as JTextArea } from './JTextArea';
|
12
13
|
import { TablerIcons } from './icon/tabler';
|
13
|
-
export {
|
14
|
+
export { IconSet, UiTable, ConfirmDialog, CopyButton, DotsMenu, FormMetadata, JBtn, JDialog, JIconBtn, JSelect, JTextArea, JTextField, TablerIcons, ParentCard, };
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { UiTableHeader } from '../../types';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
slots: {
|
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[];
|
14
|
+
items: any[];
|
15
|
+
actions?: any;
|
16
|
+
loading?: boolean;
|
17
|
+
columns?: UiTableHeader[];
|
18
|
+
sortBy?: {
|
19
|
+
key: string;
|
20
|
+
order: "asc" | "desc";
|
21
|
+
}[];
|
22
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
23
|
+
headers?: UiTableHeader[];
|
24
|
+
items: any[];
|
25
|
+
actions?: any;
|
26
|
+
loading?: boolean;
|
27
|
+
columns?: UiTableHeader[];
|
28
|
+
sortBy?: {
|
29
|
+
key: string;
|
30
|
+
order: "asc" | "desc";
|
31
|
+
}[];
|
32
|
+
}> & Readonly<{}>, {
|
33
|
+
items: any[];
|
34
|
+
columns: UiTableHeader[];
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
37
|
+
export default _default;
|
38
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
39
|
+
new (): {
|
40
|
+
$slots: S;
|
41
|
+
};
|
42
|
+
};
|
package/dist/types/index.d.ts
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ComputedRef } from 'vue';
|
2
|
+
export type Metadata = {
|
3
|
+
created_by: ComputedRef<string> | string;
|
4
|
+
created_at: ComputedRef<string> | string;
|
5
|
+
delegated_at: ComputedRef<string> | string;
|
6
|
+
delegated_by: ComputedRef<string> | string;
|
7
|
+
updated_at: ComputedRef<string> | string;
|
8
|
+
updated_by: ComputedRef<string> | string;
|
9
|
+
modified_at?: ComputedRef<string> | string;
|
10
|
+
modified_by?: ComputedRef<string> | string;
|
11
|
+
};
|
@@ -1,3 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export
|
1
|
+
export * from './UiTableHeader';
|
2
|
+
export * from './sidebarItem';
|
3
|
+
export * from './Metadata';
|
4
|
+
export * from './Icon';
|
@@ -2,7 +2,14 @@ export type sidebarItem = {
|
|
2
2
|
title?: string;
|
3
3
|
icon?: any;
|
4
4
|
to?: string;
|
5
|
+
disabled?: boolean;
|
5
6
|
header?: boolean;
|
6
7
|
divider?: boolean;
|
7
8
|
children?: sidebarItem[];
|
9
|
+
chip?: string;
|
10
|
+
chipColor?: string;
|
11
|
+
chipVariant?: string;
|
12
|
+
chipIcon?: string;
|
13
|
+
type?: string;
|
14
|
+
subCaption?: string;
|
8
15
|
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Method } from 'axios';
|
2
|
+
export type HTTP_RequestConfig<T> = {
|
3
|
+
url: string;
|
4
|
+
method: Method;
|
5
|
+
header?: Record<string, string>;
|
6
|
+
body?: T | T[];
|
7
|
+
bearerToken?: string;
|
8
|
+
};
|
9
|
+
export declare function HttpCore<T>({ url, method, header, body, bearerToken, }: HTTP_RequestConfig<T>): Promise<T | T[]>;
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
import { HttpCore } from './HttpCore';
|
2
|
+
export { HttpCore };
|
package/package.json
CHANGED
@@ -1,16 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "jplan-pack",
|
3
|
-
"version": "0.3.
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"types": "
|
3
|
+
"version": "0.3.9",
|
4
|
+
"main": "./dist/jplan-pack.cjs.js",
|
5
|
+
"module": "./dist/jplan-pack.es.js",
|
6
|
+
"types": "dist/types/index.d.ts",
|
7
7
|
"exports": {
|
8
8
|
".": {
|
9
|
-
"
|
10
|
-
"
|
11
|
-
|
12
|
-
|
9
|
+
"import": "./dist/jplan-pack.es.js",
|
10
|
+
"require": "./dist/jplan-pack.cjs.js",
|
11
|
+
"types": "./dist/types/index.d.ts"
|
12
|
+
}
|
13
13
|
},
|
14
|
+
"files": [
|
15
|
+
"dist/**/*"
|
16
|
+
],
|
14
17
|
"scripts": {
|
15
18
|
"build": "rimraf dist && vue-tsc && vite build",
|
16
19
|
"docs:dev": "vitepress dev docs",
|
@@ -22,15 +25,16 @@
|
|
22
25
|
"@vitejs/plugin-vue": "^5.1.5",
|
23
26
|
"@vue/compiler-core": "^3.3.4",
|
24
27
|
"@vueuse/core": "^11.2.0",
|
28
|
+
"axios": "^1.7.7",
|
25
29
|
"lodash": "^4.17.21",
|
26
30
|
"pinia": "^2.2.6",
|
27
31
|
"vue-tabler-icons": "^2.21.0"
|
28
32
|
},
|
29
33
|
"peerDependencies": {
|
30
|
-
"@mdi/font": "^
|
34
|
+
"@mdi/font": "^7.4.47",
|
31
35
|
"@vueuse/core": "^11.2.0",
|
32
|
-
"
|
33
|
-
"
|
36
|
+
"vue": "^3.3.4",
|
37
|
+
"vuetify": "^3.7.4"
|
34
38
|
},
|
35
39
|
"devDependencies": {
|
36
40
|
"@types/node": "^20.3.3",
|
@@ -44,7 +48,6 @@
|
|
44
48
|
"vue-cli-plugin-vuetify": "2.5.8",
|
45
49
|
"vue-tsc": "^2.1.10"
|
46
50
|
},
|
47
|
-
"module": "./dist/jplan-lib.es.js",
|
48
51
|
"repository": {
|
49
52
|
"type": "git",
|
50
53
|
"url": "git+https://github.com/wuruoyun/vue-component-lib-starter.git"
|
package/dist/style.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
.height[data-v-79fc3f82]{height:100px;transition:height .3s ease}.col-1-w[data-v-79fc3f82]{width:40px}.circle-wrapper[data-v-79fc3f82]{display:inline-flex;align-items:center;justify-content:center;padding:5px;width:50px;height:50px;border-radius:50%;background-color:#353636}.border-left[data-v-79fc3f82]{border-left:3px rgb(var(--v-theme-secondary)) solid}
|
@@ -1,69 +0,0 @@
|
|
1
|
-
export interface DialogProps<T> {
|
2
|
-
title: string;
|
3
|
-
text?: string;
|
4
|
-
callback?: () => Promise<void> | void;
|
5
|
-
cancelCallback?: () => void;
|
6
|
-
width?: string;
|
7
|
-
loading?: boolean;
|
8
|
-
}
|
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;
|
34
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
35
|
-
attrs: any;
|
36
|
-
slots: {
|
37
|
-
button?(_: {
|
38
|
-
isActive: any;
|
39
|
-
props: any;
|
40
|
-
}): any;
|
41
|
-
};
|
42
|
-
emit: {};
|
43
|
-
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
44
|
-
[key: string]: any;
|
45
|
-
}> & {
|
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;
|
65
|
-
};
|
66
|
-
export default _default;
|
67
|
-
type __VLS_PrettifyLocal<T> = {
|
68
|
-
[K in keyof T]: T[K];
|
69
|
-
} & {};
|
@@ -1,26 +0,0 @@
|
|
1
|
-
export type JDialogType = {
|
2
|
-
dialogId?: string;
|
3
|
-
title?: string;
|
4
|
-
text?: string;
|
5
|
-
callback?: (...params: any) => any;
|
6
|
-
cancelCallback?: () => void;
|
7
|
-
width?: string;
|
8
|
-
reference?: boolean;
|
9
|
-
buttons?: boolean;
|
10
|
-
};
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<JDialogType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<JDialogType> & Readonly<{}>, {
|
12
|
-
width: string;
|
13
|
-
buttons: boolean;
|
14
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
15
|
-
title?(_: {}): any;
|
16
|
-
"heading-actions"?(_: {}): any;
|
17
|
-
default?(_: {}): any;
|
18
|
-
footer?(_: {}): any;
|
19
|
-
metadata?(_: {}): any;
|
20
|
-
}>;
|
21
|
-
export default _default;
|
22
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
23
|
-
new (): {
|
24
|
-
$slots: S;
|
25
|
-
};
|
26
|
-
};
|
@@ -1,64 +0,0 @@
|
|
1
|
-
import { VBtn } from 'vuetify/components';
|
2
|
-
import { TablerIconComponent } from 'vue-tabler-icons';
|
3
|
-
export interface Props<T> {
|
4
|
-
variant?: VBtn['variant'];
|
5
|
-
icon?: string | TablerIconComponent | SVGElement;
|
6
|
-
color?: string;
|
7
|
-
tooltip?: string;
|
8
|
-
size?: number;
|
9
|
-
}
|
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: {
|
26
|
-
readonly onClick?: ((...args: any[]) => any) | undefined;
|
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;
|
33
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
34
|
-
attrs: any;
|
35
|
-
slots: {
|
36
|
-
default?(_: {}): any;
|
37
|
-
default?(_: {}): any;
|
38
|
-
};
|
39
|
-
emit: (event: "click", ...args: any[]) => void;
|
40
|
-
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
41
|
-
[key: string]: any;
|
42
|
-
}> & {
|
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;
|
60
|
-
};
|
61
|
-
export default _default;
|
62
|
-
type __VLS_PrettifyLocal<T> = {
|
63
|
-
[K in keyof T]: T[K];
|
64
|
-
} & {};
|