pangea-lib 4.0.239 → 4.0.241
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/main.cjs.js +117 -117
- package/dist/main.css +2 -2
- package/dist/main.es.js +584 -587
- package/dist/types/components/PgaSpinner.vue.d.ts +2 -2
- package/dist/types/components/button/PgaButtonLink.vue.d.ts +2 -2
- package/dist/types/components/display/PgaDisplayNoItems.vue.d.ts +2 -2
- package/dist/types/components/layout/PgaBottomBar.vue.d.ts +3 -3
- package/dist/types/components/layout/PgaSideBar.vue.d.ts +3 -3
- package/dist/types/components/table/PgaPagination.vue.d.ts +2 -2
- package/dist/types/components/table/PgaTable.vue.d.ts +4 -4
- package/dist/types/helpers/auth.helpers.d.ts +1 -1
- package/dist/types/helpers/css.helpers.d.ts +1 -1
- package/dist/types/helpers/router.helpers.d.ts +3 -3
- package/dist/types/stores/route.store.d.ts +7 -7
- package/dist/types/types/api-connections.types.d.ts +3 -3
- package/dist/types/types/app-options.types.d.ts +2 -4
- package/dist/types/types/router.types.d.ts +9 -9
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
2
2
|
size?: 's' | 'm' | 'l';
|
|
3
3
|
color?: string;
|
|
4
4
|
colorContrast?: boolean;
|
|
5
|
-
|
|
5
|
+
noCenter?: boolean;
|
|
6
6
|
}>, {
|
|
7
7
|
size: string;
|
|
8
8
|
color: string;
|
|
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
10
10
|
size?: 's' | 'm' | 'l';
|
|
11
11
|
color?: string;
|
|
12
12
|
colorContrast?: boolean;
|
|
13
|
-
|
|
13
|
+
noCenter?: boolean;
|
|
14
14
|
}>, {
|
|
15
15
|
size: string;
|
|
16
16
|
color: string;
|
|
@@ -5,7 +5,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
5
5
|
icon?: Icon;
|
|
6
6
|
size?: Size;
|
|
7
7
|
color?: string;
|
|
8
|
-
|
|
8
|
+
noUnderline?: boolean;
|
|
9
9
|
}>, {
|
|
10
10
|
size: string;
|
|
11
11
|
color: string;
|
|
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
14
14
|
icon?: Icon;
|
|
15
15
|
size?: Size;
|
|
16
16
|
color?: string;
|
|
17
|
-
|
|
17
|
+
noUnderline?: boolean;
|
|
18
18
|
}>, {
|
|
19
19
|
size: string;
|
|
20
20
|
color: string;
|
|
@@ -3,12 +3,12 @@ import { StrOrFn } from '../../types';
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
items?: any[];
|
|
5
5
|
label?: StrOrFn;
|
|
6
|
-
|
|
6
|
+
noDisplayIcon?: boolean;
|
|
7
7
|
isLoading?: boolean;
|
|
8
8
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
9
|
items?: any[];
|
|
10
10
|
label?: StrOrFn;
|
|
11
|
-
|
|
11
|
+
noDisplayIcon?: boolean;
|
|
12
12
|
isLoading?: boolean;
|
|
13
13
|
}>>>, {}, {}>;
|
|
14
14
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Route,
|
|
1
|
+
import { Route, NavSection } from '../../types';
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
routes: Route[];
|
|
5
|
-
|
|
5
|
+
navSections: NavSection[];
|
|
6
6
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
7
|
routes: Route[];
|
|
8
|
-
|
|
8
|
+
navSections: NavSection[];
|
|
9
9
|
}>>>, {}, {}>;
|
|
10
10
|
export default _default;
|
|
11
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Route,
|
|
1
|
+
import { Route, NavSection } from '../../types';
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
routes: Route[];
|
|
5
|
-
|
|
5
|
+
navSections: NavSection[];
|
|
6
6
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
7
|
routes: Route[];
|
|
8
|
-
|
|
8
|
+
navSections: NavSection[];
|
|
9
9
|
}>>>, {}, {}>;
|
|
10
10
|
export default _default;
|
|
11
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -11,7 +11,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
11
11
|
type: import('vue').PropType<number>;
|
|
12
12
|
required: true;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
noScrollToTop: {
|
|
15
15
|
type: import('vue').PropType<boolean>;
|
|
16
16
|
};
|
|
17
17
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -29,7 +29,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
29
29
|
type: import('vue').PropType<number>;
|
|
30
30
|
required: true;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
noScrollToTop: {
|
|
33
33
|
type: import('vue').PropType<boolean>;
|
|
34
34
|
};
|
|
35
35
|
}>> & {
|
|
@@ -62,10 +62,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
62
62
|
noItemsLabel: {
|
|
63
63
|
type: import('vue').PropType<StrOrFn>;
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
noDisplayNoItemsIcon: {
|
|
66
66
|
type: import('vue').PropType<boolean>;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
noSearch: {
|
|
69
69
|
type: import('vue').PropType<boolean>;
|
|
70
70
|
};
|
|
71
71
|
searchInputPlaceholder: {
|
|
@@ -148,10 +148,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
148
148
|
noItemsLabel: {
|
|
149
149
|
type: import('vue').PropType<StrOrFn>;
|
|
150
150
|
};
|
|
151
|
-
|
|
151
|
+
noDisplayNoItemsIcon: {
|
|
152
152
|
type: import('vue').PropType<boolean>;
|
|
153
153
|
};
|
|
154
|
-
|
|
154
|
+
noSearch: {
|
|
155
155
|
type: import('vue').PropType<boolean>;
|
|
156
156
|
};
|
|
157
157
|
searchInputPlaceholder: {
|
|
@@ -7,7 +7,7 @@ type LoginParams = {
|
|
|
7
7
|
password: string;
|
|
8
8
|
};
|
|
9
9
|
type LoginConfig = {
|
|
10
|
-
|
|
10
|
+
isLoading: Ref<boolean>;
|
|
11
11
|
redirectToName: RouteName;
|
|
12
12
|
};
|
|
13
13
|
export declare function login(type: RouteType, params: LoginParams, config?: LoginConfig): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type SetRootPropertyConfig = {
|
|
2
|
-
|
|
2
|
+
noConvertToKebab?: boolean;
|
|
3
3
|
};
|
|
4
4
|
export declare function setRootProperty(name: string, value: string, config?: SetRootPropertyConfig): void;
|
|
5
5
|
export declare function setBodyOverflow(visible: boolean): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RouteLocation } from 'vue-router';
|
|
2
|
-
import { RouteType, RouteName, Route,
|
|
2
|
+
import { RouteType, RouteName, Route, NavSectionName, NavSection } from '../types';
|
|
3
3
|
|
|
4
4
|
export declare function getRouteType(route: RouteLocation): string;
|
|
5
5
|
export declare function getRouteTitle(routeType: RouteType, routeName: RouteName): string;
|
|
6
6
|
export declare function getRoutesToDisplay(routes: Route[], routesForTheBottomBar?: boolean): Route[];
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
7
|
+
export declare function getRoutesByNavSection(routes: Route[], navSectionName: NavSectionName): Route<true>[];
|
|
8
|
+
export declare function getNavSectionsToDisplay(navSections: NavSection[], routesToDisplay: Route[]): NavSection[];
|
|
@@ -7,10 +7,10 @@ export declare const useRouteStore: import('pinia').StoreDefinition<"pga-route",
|
|
|
7
7
|
routeMeta: import('vue').ComputedRef<import('../types').RouteMetaNavigable | import('../types').RouteMetaNotNavigable>;
|
|
8
8
|
routeAccess: import('vue').ComputedRef<string>;
|
|
9
9
|
routeDescription: import('vue').ComputedRef<string>;
|
|
10
|
-
|
|
10
|
+
noDisplayNavBars: import('vue').ComputedRef<boolean>;
|
|
11
11
|
isDisplayingSideBar: import('vue').ComputedRef<boolean>;
|
|
12
12
|
useFullPage: import('vue').ComputedRef<boolean>;
|
|
13
|
-
|
|
13
|
+
noPaddingX: import('vue').ComputedRef<boolean>;
|
|
14
14
|
}, "currentRoute" | "isSideBarOpen" | "isDisplayingBanner">>, Pick<{
|
|
15
15
|
currentRoute: import('vue').Ref<import('vue-router').RouteLocationGeneric>;
|
|
16
16
|
isSideBarOpen: import('vue').Ref<boolean>;
|
|
@@ -20,11 +20,11 @@ export declare const useRouteStore: import('pinia').StoreDefinition<"pga-route",
|
|
|
20
20
|
routeMeta: import('vue').ComputedRef<import('../types').RouteMetaNavigable | import('../types').RouteMetaNotNavigable>;
|
|
21
21
|
routeAccess: import('vue').ComputedRef<string>;
|
|
22
22
|
routeDescription: import('vue').ComputedRef<string>;
|
|
23
|
-
|
|
23
|
+
noDisplayNavBars: import('vue').ComputedRef<boolean>;
|
|
24
24
|
isDisplayingSideBar: import('vue').ComputedRef<boolean>;
|
|
25
25
|
useFullPage: import('vue').ComputedRef<boolean>;
|
|
26
|
-
|
|
27
|
-
}, "
|
|
26
|
+
noPaddingX: import('vue').ComputedRef<boolean>;
|
|
27
|
+
}, "noDisplayNavBars" | "useFullPage" | "noPaddingX" | "routeType" | "routeTitle" | "routeMeta" | "routeAccess" | "routeDescription" | "isDisplayingSideBar">, Pick<{
|
|
28
28
|
currentRoute: import('vue').Ref<import('vue-router').RouteLocationGeneric>;
|
|
29
29
|
isSideBarOpen: import('vue').Ref<boolean>;
|
|
30
30
|
isDisplayingBanner: import('vue').Ref<boolean>;
|
|
@@ -33,8 +33,8 @@ export declare const useRouteStore: import('pinia').StoreDefinition<"pga-route",
|
|
|
33
33
|
routeMeta: import('vue').ComputedRef<import('../types').RouteMetaNavigable | import('../types').RouteMetaNotNavigable>;
|
|
34
34
|
routeAccess: import('vue').ComputedRef<string>;
|
|
35
35
|
routeDescription: import('vue').ComputedRef<string>;
|
|
36
|
-
|
|
36
|
+
noDisplayNavBars: import('vue').ComputedRef<boolean>;
|
|
37
37
|
isDisplayingSideBar: import('vue').ComputedRef<boolean>;
|
|
38
38
|
useFullPage: import('vue').ComputedRef<boolean>;
|
|
39
|
-
|
|
39
|
+
noPaddingX: import('vue').ComputedRef<boolean>;
|
|
40
40
|
}, never>>;
|
|
@@ -11,9 +11,9 @@ export type ApiConnectionMethod = 'getOne' | 'getMany' | 'postOne' | 'postMany'
|
|
|
11
11
|
export type ApiConfig<SuccessRes, TCount = undefined> = {
|
|
12
12
|
success?: (data: SuccessRes, totalCount?: TCount) => void;
|
|
13
13
|
error?: (err: AxiosError) => void;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
noDisplayError?: boolean;
|
|
15
|
+
noThrowError?: boolean;
|
|
16
|
+
isLoading?: Ref<boolean>;
|
|
17
17
|
basicAuth?: AxiosBasicCredentials;
|
|
18
18
|
};
|
|
19
19
|
export type Headers = Record<string, string>;
|
|
@@ -8,10 +8,8 @@ export type AppOptions = {
|
|
|
8
8
|
headerAndBannerHeight: string;
|
|
9
9
|
sideBarWidth: string;
|
|
10
10
|
bottomBarHeight: string;
|
|
11
|
-
|
|
12
|
-
layoutPaddingBottom: string;
|
|
11
|
+
layoutPaddingY: string;
|
|
13
12
|
layoutPaddingX: string;
|
|
14
|
-
layoutPaddingXSmallDevices: string;
|
|
15
13
|
};
|
|
16
14
|
colors: PangeaOptionsColors;
|
|
17
15
|
button: {
|
|
@@ -41,7 +39,7 @@ export type AppOptions = {
|
|
|
41
39
|
};
|
|
42
40
|
notifications: {
|
|
43
41
|
timeoutTime: NotificationTimeoutTime;
|
|
44
|
-
|
|
42
|
+
noRemove: boolean;
|
|
45
43
|
};
|
|
46
44
|
};
|
|
47
45
|
export type AppOptionsStore = {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
2
|
import { StrOrFn, BoolOrFn, Icon } from '.';
|
|
3
3
|
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
name:
|
|
4
|
+
export type NavSectionName = string;
|
|
5
|
+
export type NavSection = {
|
|
6
|
+
name: NavSectionName;
|
|
7
7
|
};
|
|
8
8
|
export type RouteAccess = string;
|
|
9
9
|
export type RouteMetaGeneral = {
|
|
10
10
|
access: RouteAccess;
|
|
11
11
|
description?: StrOrFn;
|
|
12
|
-
|
|
12
|
+
noDisplayNavBars?: BoolOrFn;
|
|
13
13
|
useFullPage?: BoolOrFn;
|
|
14
|
-
|
|
14
|
+
noPaddingX?: BoolOrFn;
|
|
15
15
|
};
|
|
16
16
|
export type RouteMetaNavigable = RouteMetaGeneral & {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
includeInSideBar: true;
|
|
18
|
+
navSectionName: NavSectionName;
|
|
19
19
|
icon: Icon;
|
|
20
20
|
info?: StrOrFn;
|
|
21
|
-
|
|
21
|
+
noDisplayInBottomBar?: boolean;
|
|
22
22
|
};
|
|
23
23
|
export type RouteMetaNotNavigable = RouteMetaGeneral & {
|
|
24
|
-
|
|
24
|
+
includeInSideBar?: false;
|
|
25
25
|
};
|
|
26
26
|
export type RouteMeta<Nav extends boolean | undefined = undefined> = Nav extends undefined ? RouteMetaNavigable | RouteMetaNotNavigable : Nav extends true ? RouteMetaNavigable : RouteMetaNotNavigable;
|
|
27
27
|
export type RouteName = string;
|