pangea-lib 4.0.240 → 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.
@@ -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
- preventCenter?: boolean;
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
- preventCenter?: boolean;
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
- preventUnderline?: boolean;
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
- preventUnderline?: boolean;
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
- preventDisplayIcon?: boolean;
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
- preventDisplayIcon?: boolean;
11
+ noDisplayIcon?: boolean;
12
12
  isLoading?: boolean;
13
13
  }>>>, {}, {}>;
14
14
  export default _default;
@@ -1,11 +1,11 @@
1
- import { Route, NavigationSection } from '../../types';
1
+ import { Route, NavSection } from '../../types';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
4
  routes: Route[];
5
- navigationSections: NavigationSection[];
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
- navigationSections: NavigationSection[];
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, NavigationSection } from '../../types';
1
+ import { Route, NavSection } from '../../types';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
4
  routes: Route[];
5
- navigationSections: NavigationSection[];
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
- navigationSections: NavigationSection[];
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
- preventScrollToTop: {
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
- preventScrollToTop: {
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
- preventDisplayNoItemsIcon: {
65
+ noDisplayNoItemsIcon: {
66
66
  type: import('vue').PropType<boolean>;
67
67
  };
68
- preventSearch: {
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
- preventDisplayNoItemsIcon: {
151
+ noDisplayNoItemsIcon: {
152
152
  type: import('vue').PropType<boolean>;
153
153
  };
154
- preventSearch: {
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
- isLoadingRef: Ref<boolean>;
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
- preventConvertToKebab?: boolean;
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, NavigationSectionName, NavigationSection } from '../types';
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 getRoutesByNavigationSection(routes: Route[], navigationSectionName: NavigationSectionName): Route<true>[];
8
- export declare function getNavigationSectionsToDisplay(navigationSections: NavigationSection[], routesToDisplay: Route[]): NavigationSection[];
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
- preventDisplayNavigationBars: import('vue').ComputedRef<boolean>;
10
+ noDisplayNavBars: import('vue').ComputedRef<boolean>;
11
11
  isDisplayingSideBar: import('vue').ComputedRef<boolean>;
12
12
  useFullPage: import('vue').ComputedRef<boolean>;
13
- paddingX: import('vue').ComputedRef<boolean>;
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
- preventDisplayNavigationBars: import('vue').ComputedRef<boolean>;
23
+ noDisplayNavBars: import('vue').ComputedRef<boolean>;
24
24
  isDisplayingSideBar: import('vue').ComputedRef<boolean>;
25
25
  useFullPage: import('vue').ComputedRef<boolean>;
26
- paddingX: import('vue').ComputedRef<boolean>;
27
- }, "preventDisplayNavigationBars" | "useFullPage" | "paddingX" | "routeType" | "routeTitle" | "routeMeta" | "routeAccess" | "routeDescription" | "isDisplayingSideBar">, Pick<{
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
- preventDisplayNavigationBars: import('vue').ComputedRef<boolean>;
36
+ noDisplayNavBars: import('vue').ComputedRef<boolean>;
37
37
  isDisplayingSideBar: import('vue').ComputedRef<boolean>;
38
38
  useFullPage: import('vue').ComputedRef<boolean>;
39
- paddingX: import('vue').ComputedRef<boolean>;
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
- preventDisplayError?: boolean;
15
- preventThrowError?: boolean;
16
- isLoadingRef?: Ref<boolean>;
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
- layoutPaddingTop: string;
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
- preventRemove: boolean;
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 NavigationSectionName = string;
5
- export type NavigationSection = {
6
- name: NavigationSectionName;
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
- preventDisplayNavigationBars?: BoolOrFn;
12
+ noDisplayNavBars?: BoolOrFn;
13
13
  useFullPage?: BoolOrFn;
14
- paddingX?: StrOrFn;
14
+ noPaddingX?: BoolOrFn;
15
15
  };
16
16
  export type RouteMetaNavigable = RouteMetaGeneral & {
17
- isVisibleInTheSideBar: true;
18
- navigationSectionName: NavigationSectionName;
17
+ includeInSideBar: true;
18
+ navSectionName: NavSectionName;
19
19
  icon: Icon;
20
20
  info?: StrOrFn;
21
- preventDisplayInTheBottomBar?: boolean;
21
+ noDisplayInBottomBar?: boolean;
22
22
  };
23
23
  export type RouteMetaNotNavigable = RouteMetaGeneral & {
24
- isVisibleInTheSideBar?: false;
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "4.0.240",
4
+ "version": "4.0.241",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea-lib#readme",