pangea-lib 4.0.458 → 4.0.460

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,6 +2,7 @@ import { Id, Item, StrOrFn, InputError } from '../../../types';
2
2
 
3
3
  type OptionId = string | number | Id | null;
4
4
  type Option = string | number | Item;
5
+ declare function focus(): void;
5
6
  declare const _default: import('vue').DefineComponent<{
6
7
  modelValue: {
7
8
  required: true;
@@ -57,7 +58,9 @@ declare const _default: import('vue').DefineComponent<{
57
58
  clearValue: {
58
59
  type: import('vue').PropType<OptionId>;
59
60
  };
60
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
61
+ }, {
62
+ focus: typeof focus;
63
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
61
64
  change: (newValue: OptionId) => void;
62
65
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
63
66
  modelValue: {
@@ -1,5 +1,6 @@
1
1
  import { Item, StrOrFn, InputError } from '../../../types';
2
2
 
3
+ declare function focus(): void;
3
4
  declare const _default: import('vue').DefineComponent<{
4
5
  modelValue: {
5
6
  required: true;
@@ -46,7 +47,9 @@ declare const _default: import('vue').DefineComponent<{
46
47
  grow: {
47
48
  type: import('vue').PropType<number>;
48
49
  };
49
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
50
+ }, {
51
+ focus: typeof focus;
52
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
50
53
  change: (newValue: number) => void;
51
54
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
52
55
  modelValue: {
@@ -1,13 +1,13 @@
1
- import { Route, NavSection } from '../../types';
1
+ import { Route } from '../../types';
2
2
 
3
3
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
4
  hideChangeThemeBtn?: boolean;
5
5
  routes?: Route[];
6
- navSections?: NavSection[];
6
+ navSections?: string[];
7
7
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
8
  hideChangeThemeBtn?: boolean;
9
9
  routes?: Route[];
10
- navSections?: NavSection[];
10
+ navSections?: string[];
11
11
  }>>>, {}, {}>, {
12
12
  banner?(_: {}): any;
13
13
  userMenu?(_: {}): any;
@@ -1,8 +1,8 @@
1
1
  import { RouteLocation } from 'vue-router';
2
- import { RouteType, RouteName, Route, NavSectionName, NavSection } from '../types';
2
+ import { RouteType, RouteName, Route, 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 getRoutesByNavSection(routes: Route[], navSectionName: NavSectionName): Route<true>[];
8
- export declare function getNavSectionsToDisplay(navSections: NavSection[], routesToDisplay: Route[]): NavSection[];
7
+ export declare function getRoutesByNavSection(routes: Route[], navSection: NavSection): Route<true>[];
8
+ export declare function getNavSectionsToDisplay(navSections: NavSection[], routesToDisplay: Route[]): string[];
@@ -1,10 +1,7 @@
1
1
  import { Component } from 'vue';
2
2
  import { StrOrFn, BoolOrFn, Icon } from '.';
3
3
 
4
- export type NavSectionName = string;
5
- export type NavSection = {
6
- name: NavSectionName;
7
- };
4
+ export type NavSection = string;
8
5
  export type RouteAccess = string;
9
6
  export type RouteMetaGeneral = {
10
7
  access: RouteAccess;
@@ -16,7 +13,7 @@ export type RouteMetaGeneral = {
16
13
  };
17
14
  export type RouteMetaNavigable = RouteMetaGeneral & {
18
15
  includeInSideBar: true;
19
- navSectionName: NavSectionName;
16
+ navSection: NavSection;
20
17
  icon: Icon;
21
18
  info?: StrOrFn;
22
19
  includeInBottomBar?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "4.0.458",
4
+ "version": "4.0.460",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea-lib#readme",