jplan-pack 0.4.0 → 0.4.2

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.
Files changed (36) hide show
  1. package/dist/jplan-pack.cjs.js +25 -0
  2. package/dist/jplan-pack.css +1 -0
  3. package/dist/jplan-pack.es.js +173194 -0
  4. package/dist/types/components/ConfirmDialog.d.ts +29 -0
  5. package/dist/types/components/CopyButton.d.ts +10 -0
  6. package/dist/types/components/DotsMenu.d.ts +18 -0
  7. package/dist/types/components/FormMetadata.d.ts +15 -0
  8. package/dist/types/components/JBtn.d.ts +32 -0
  9. package/dist/types/components/JDialog.d.ts +38 -0
  10. package/dist/types/components/JForm.d.ts +34 -0
  11. package/dist/types/components/JIconBtn.d.ts +29 -0
  12. package/dist/types/components/JSelect.d.ts +29 -0
  13. package/dist/types/components/JTextArea.d.ts +20 -0
  14. package/dist/types/components/JTextField.d.ts +25 -0
  15. package/dist/types/components/ParentCard.d.ts +26 -0
  16. package/dist/types/components/ReadOnlyField.d.ts +6 -0
  17. package/dist/types/components/SearchBar.d.ts +13 -0
  18. package/dist/types/components/icon/IconSet.d.ts +22 -0
  19. package/dist/types/components/icon/tabler.d.ts +2 -0
  20. package/dist/types/components/index.d.ts +38 -0
  21. package/dist/types/components/table/ColumnSettingsDialog.d.ts +7 -0
  22. package/dist/types/components/table/UiTable.d.ts +42 -0
  23. package/dist/types/composables/index.d.ts +3 -0
  24. package/dist/types/composables/useCustomizer.d.ts +19 -0
  25. package/dist/types/composables/useDialog.d.ts +9 -0
  26. package/dist/types/constants/index.d.ts +1 -0
  27. package/dist/types/index.d.ts +10 -0
  28. package/dist/types/plugins/pinia/pinia.d.ts +1 -0
  29. package/dist/types/types/Icon.d.ts +2 -0
  30. package/dist/types/types/Metadata.d.ts +11 -0
  31. package/dist/types/types/UiTableHeader.d.ts +10 -0
  32. package/dist/types/types/index.d.ts +4 -0
  33. package/dist/types/types/sidebarItem.d.ts +15 -0
  34. package/dist/types/utils/HttpCore.d.ts +9 -0
  35. package/dist/types/utils/index.d.ts +2 -0
  36. package/package.json +1 -1
@@ -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
+ };
@@ -0,0 +1,10 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ contentToCopy: string;
3
+ size?: "small" | "medium" | "large" | number;
4
+ color?: string;
5
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
6
+ contentToCopy: string;
7
+ size?: "small" | "medium" | "large" | number;
8
+ color?: string;
9
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ color: string;
3
+ orientation: "x" | "y";
4
+ options: {
5
+ name: string;
6
+ action: () => void;
7
+ }[];
8
+ size: number;
9
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
10
+ color: string;
11
+ orientation: "x" | "y";
12
+ options: {
13
+ name: string;
14
+ action: () => void;
15
+ }[];
16
+ size: number;
17
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { Metadata } from '../types';
2
+ declare const _default: import('vue').DefineComponent<{
3
+ meta: Metadata;
4
+ id?: {
5
+ title: string;
6
+ key: keyof Metadata;
7
+ };
8
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
9
+ meta: Metadata;
10
+ id?: {
11
+ title: string;
12
+ key: keyof Metadata;
13
+ };
14
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import { VBtn } from 'vuetify/components';
2
+ import { TablerIconComponent } from 'vue-tabler-icons';
3
+ export interface BtnProps {
4
+ variant?: VBtn['variant'];
5
+ text?: string;
6
+ icon?: string | TablerIconComponent;
7
+ color: string;
8
+ tooltip?: string;
9
+ }
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, {
19
+ click: (...args: any[]) => void;
20
+ }, string, import('vue').PublicProps, Readonly<BtnProps> & Readonly<{
21
+ onClick?: ((...args: any[]) => any) | undefined;
22
+ }>, {
23
+ color: string;
24
+ variant: VBtn["variant"];
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -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,34 @@
1
+ import { Metadata } from '../types';
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {}): any;
5
+ actions?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ attrs: Partial<{}>;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<{
12
+ title: string;
13
+ metadata?: Metadata & any;
14
+ id?: {
15
+ title: string;
16
+ key: keyof Metadata;
17
+ };
18
+ callback?: () => any | Promise<any[]>;
19
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
20
+ title: string;
21
+ metadata?: Metadata & any;
22
+ id?: {
23
+ title: string;
24
+ key: keyof Metadata;
25
+ };
26
+ callback?: () => any | Promise<any[]>;
27
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -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,13 @@
1
+ import { VTextField } from 'vuetify/components';
2
+ declare const _default: import('vue').DefineComponent<{
3
+ variant?: VTextField["variant"];
4
+ closesearch?: () => void;
5
+ onSearch?: (query: string) => void;
6
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
7
+ variant?: VTextField["variant"];
8
+ closesearch?: () => void;
9
+ onSearch?: (query: string) => void;
10
+ }> & Readonly<{}>, {
11
+ variant: VTextField["variant"];
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ 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;
@@ -0,0 +1,2 @@
1
+ import * as TablerIcons from 'vue-tabler-icons';
2
+ export { TablerIcons };
@@ -0,0 +1,38 @@
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 UiTable } from './table/UiTable';
6
+ import { default as ColumnSettingsDialog } from './table/ColumnSettingsDialog';
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';
13
+ import { default as JForm } from './JForm';
14
+ import { TablerIcons } from './icon/tabler';
15
+ export { UiTable, ConfirmDialog, CopyButton, DotsMenu, FormMetadata, JBtn, JDialog, JIconBtn, JSelect, JTextArea, JTextField, JForm, TablerIcons, ParentCard, ColumnSettingsDialog, };
16
+ declare const _default: {
17
+ IconSet: import('vue').DefineComponent<{
18
+ item: import('..').IconType | string;
19
+ level?: number;
20
+ size?: number;
21
+ stroke?: number | string;
22
+ color?: string;
23
+ svg?: string | null;
24
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
25
+ item: import('..').IconType | string;
26
+ level?: number;
27
+ size?: number;
28
+ stroke?: number | string;
29
+ color?: string;
30
+ svg?: string | null;
31
+ }> & Readonly<{}>, {
32
+ size: number;
33
+ svg: string | null;
34
+ level: number;
35
+ stroke: number | string;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
+ };
38
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { UiTableHeader } from '../../types';
2
+ declare const _default: import('vue').DefineComponent<{
3
+ columns: UiTableHeader[];
4
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
5
+ columns: UiTableHeader[];
6
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -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
+ };
@@ -0,0 +1,3 @@
1
+ import { useCustomizer } from './useCustomizer';
2
+ import { useDialog } from './useDialog';
3
+ export { useCustomizer, useDialog };
@@ -0,0 +1,19 @@
1
+ type ConfigProps = {
2
+ Sidebar_drawer: boolean;
3
+ Customizer_drawer: boolean;
4
+ mini_sidebar: boolean;
5
+ setHorizontalLayout: boolean;
6
+ actTheme: string;
7
+ fontTheme: string;
8
+ inputBg: boolean;
9
+ boxed: boolean;
10
+ };
11
+ export declare const useCustomizer: import('pinia').StoreDefinition<"customizer", ConfigProps, {}, {
12
+ SET_SIDEBAR_DRAWER(): void;
13
+ SET_MINI_SIDEBAR(payload: boolean): void;
14
+ SET_CUSTOMIZER_DRAWER(payload: boolean): void;
15
+ SET_LAYOUT(payload: boolean): void;
16
+ SET_THEME(payload: string): void;
17
+ SET_FONT(payload: string): void;
18
+ }>;
19
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ComputedRef } from 'vue';
2
+ interface UseDialogReturn {
3
+ isDialogActive: ComputedRef<boolean>;
4
+ openDialog: () => void;
5
+ closeDialog: () => void;
6
+ }
7
+ type useDialogState = (id?: string) => UseDialogReturn;
8
+ export declare const useDialog: useDialogState;
9
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ declare const _default: {
3
+ install: (app: App) => void;
4
+ };
5
+ export default _default;
6
+ export * from './components';
7
+ export * from './composables';
8
+ export * from './constants';
9
+ export * from './utils';
10
+ export * from './types';
@@ -0,0 +1 @@
1
+ export declare const pinia: import('pinia').Pinia;
@@ -0,0 +1,2 @@
1
+ import { TablerIconComponent } from 'vue-tabler-icons';
2
+ export type IconType = string | TablerIconComponent | object;
@@ -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
+ };
@@ -0,0 +1,10 @@
1
+ export interface UiTableHeader {
2
+ title: string;
3
+ key: string;
4
+ sortable?: boolean;
5
+ align?: 'start' | 'center' | 'end';
6
+ width?: number | string;
7
+ checked: boolean;
8
+ type?: 'string' | 'number';
9
+ icon?: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ export * from './UiTableHeader';
2
+ export * from './sidebarItem';
3
+ export * from './Metadata';
4
+ export * from './Icon';
@@ -0,0 +1,15 @@
1
+ export type sidebarItem = {
2
+ title?: string;
3
+ icon?: any;
4
+ to?: string;
5
+ disabled?: boolean;
6
+ header?: boolean;
7
+ divider?: boolean;
8
+ children?: sidebarItem[];
9
+ chip?: string;
10
+ chipColor?: string;
11
+ chipVariant?: string;
12
+ chipIcon?: string;
13
+ type?: string;
14
+ subCaption?: string;
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[]>;
@@ -0,0 +1,2 @@
1
+ import { HttpCore } from './HttpCore';
2
+ export { HttpCore };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jplan-pack",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "main": "./dist/jplan-pack.cjs.js",
5
5
  "module": "./dist/jplan-pack.es.js",
6
6
  "types": "dist/types/index.d.ts",