pangea-lib 2.11.470 → 2.11.472

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.
@@ -0,0 +1,42 @@
1
+ import { DropdownOption, Align } from '../types';
2
+
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ align?: Align;
5
+ item?: import('../types').Item;
6
+ options?: DropdownOption[];
7
+ }>, {
8
+ align: string;
9
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
+ align?: Align;
11
+ item?: import('../types').Item;
12
+ options?: DropdownOption[];
13
+ }>, {
14
+ align: string;
15
+ }>>>, {
16
+ align: Align;
17
+ }, {}>, {
18
+ default?(_: {}): any;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToRuntimeProps<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
30
+ type __VLS_WithDefaults<P, D> = {
31
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
32
+ default: D[K];
33
+ }> : P[K];
34
+ };
35
+ type __VLS_Prettify<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -3,19 +3,19 @@ import { AppColorNameProp } from '../colors';
3
3
 
4
4
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
5
  size?: Size;
6
- color?: AppColorNameProp;
6
+ color?: 'first' | AppColorNameProp;
7
7
  }>, {
8
8
  size: string;
9
9
  color: string;
10
10
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
11
  size?: Size;
12
- color?: AppColorNameProp;
12
+ color?: 'first' | AppColorNameProp;
13
13
  }>, {
14
14
  size: string;
15
15
  color: string;
16
16
  }>>>, {
17
17
  size: Size;
18
- color: AppColorNameProp;
18
+ color: 'first' | AppColorNameProp;
19
19
  }, {}>;
20
20
  export default _default;
21
21
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ es: {
3
+ text: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ es: {
3
+ text: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -1,7 +1,6 @@
1
1
  declare const _default: {
2
2
  es: {
3
- columnTitleEdit: string;
4
- columnTitleDelete: string;
3
+ columnTitleActions: string;
5
4
  selectAllBtn: string;
6
5
  withTheSelectedItemsText: string;
7
6
  };
@@ -1,4 +1,4 @@
1
- import { Icon, TextProp, ButtonType } from '../../types';
1
+ import { Align, Icon, TextProp, ButtonType } from '../../types';
2
2
  import { AppColorNameProp } from '../../colors';
3
3
 
4
4
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -7,32 +7,44 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
7
7
  text?: TextProp;
8
8
  buttonType?: ButtonType;
9
9
  size?: "s" | "l" | "m" | "xs" | "xl";
10
- color?: AppColorNameProp;
10
+ align?: Align;
11
+ borderRadius?: string;
12
+ color?: AppColorNameProp | "first";
13
+ width?: string;
11
14
  disabled?: boolean;
12
15
  isLoading?: boolean;
13
16
  numberToDisplay?: number;
14
17
  }>, {
15
18
  type: string;
16
19
  size: string;
20
+ align: string;
17
21
  color: string;
22
+ width: string;
18
23
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
24
  type?: "button" | "submit" | "reset";
20
25
  icon?: import('@fortawesome/fontawesome-common-types').IconName | Icon;
21
26
  text?: TextProp;
22
27
  buttonType?: ButtonType;
23
28
  size?: "s" | "l" | "m" | "xs" | "xl";
24
- color?: AppColorNameProp;
29
+ align?: Align;
30
+ borderRadius?: string;
31
+ color?: AppColorNameProp | "first";
32
+ width?: string;
25
33
  disabled?: boolean;
26
34
  isLoading?: boolean;
27
35
  numberToDisplay?: number;
28
36
  }>, {
29
37
  type: string;
30
38
  size: string;
39
+ align: string;
31
40
  color: string;
41
+ width: string;
32
42
  }>>>, {
33
43
  size: "s" | "l" | "m" | "xs" | "xl";
34
- color: AppColorNameProp;
44
+ color: AppColorNameProp | "first";
35
45
  type: "button" | "submit" | "reset";
46
+ align: Align;
47
+ width: string;
36
48
  }, {}>, {
37
49
  default?(_: {}): any;
38
50
  }>;
@@ -1,10 +1,12 @@
1
1
  import { TextProp } from '../../types';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ withoutText?: boolean;
4
5
  confirmDeleteText: TextProp;
5
6
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
7
  deleteConfirmed: () => void;
7
8
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ withoutText?: boolean;
8
10
  confirmDeleteText: TextProp;
9
11
  }>>> & {
10
12
  onDeleteConfirmed?: () => any;
@@ -1,2 +1,15 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ withoutText?: boolean;
3
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ withoutText?: boolean;
5
+ }>>>, {}, {}>;
2
6
  export default _default;
7
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
+ type __VLS_TypePropsToRuntimeProps<T> = {
9
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
10
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
11
+ } : {
12
+ type: import('vue').PropType<T[K]>;
13
+ required: true;
14
+ };
15
+ };
@@ -1,4 +1,5 @@
1
1
  export { default as PgaBadge } from './PgaBadge.vue';
2
+ export { default as PgaDropdown } from './PgaDropdown.vue';
2
3
  export { default as PgaIcon } from './PgaIcon.vue';
3
4
  export { default as PgaInfoCardFullPage } from './PgaInfoCardFullPage.vue';
4
5
  export { default as PgaItemSelected } from './PgaItemSelected.vue';
@@ -1,4 +1,4 @@
1
- import { Item, Columns, SearchParams, Indentation } from '../../types';
1
+ import { Item, Columns, SearchParams, Indentation, DropdownOption } from '../../types';
2
2
 
3
3
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
4
4
  searchParams: import('vue').PropType<SearchParams>;
@@ -10,12 +10,18 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
10
10
  createItemBtnText: {
11
11
  type: import('vue').PropType<string>;
12
12
  };
13
- withEditColumn: {
13
+ withEditButton: {
14
14
  type: import('vue').PropType<boolean>;
15
15
  };
16
16
  confirmDeleteText: {
17
17
  type: import('vue').PropType<(item: Item) => string>;
18
18
  };
19
+ actionsOptions: {
20
+ type: import('vue').PropType<DropdownOption[]>;
21
+ };
22
+ useDropdown: {
23
+ type: import('vue').PropType<boolean>;
24
+ };
19
25
  items: {
20
26
  type: import('vue').PropType<Item[]>;
21
27
  required: true;
@@ -47,12 +53,18 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
47
53
  createItemBtnText: {
48
54
  type: import('vue').PropType<string>;
49
55
  };
50
- withEditColumn: {
56
+ withEditButton: {
51
57
  type: import('vue').PropType<boolean>;
52
58
  };
53
59
  confirmDeleteText: {
54
60
  type: import('vue').PropType<(item: Item) => string>;
55
61
  };
62
+ actionsOptions: {
63
+ type: import('vue').PropType<DropdownOption[]>;
64
+ };
65
+ useDropdown: {
66
+ type: import('vue').PropType<boolean>;
67
+ };
56
68
  items: {
57
69
  type: import('vue').PropType<Item[]>;
58
70
  required: true;
@@ -78,6 +90,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
78
90
  item: any;
79
91
  }) => any>> & {
80
92
  header?(_: {}): any;
93
+ smallDevicesItem?(_: {
94
+ item: any;
95
+ }): any;
81
96
  itemsSelected?(_: {}): any;
82
97
  }>;
83
98
  export default _default;
@@ -6,6 +6,16 @@ declare const _default: {
6
6
  acceptBtn: string;
7
7
  };
8
8
  };
9
+ pgaDeleteButton: {
10
+ es: {
11
+ text: string;
12
+ };
13
+ };
14
+ pgaEditButton: {
15
+ es: {
16
+ text: string;
17
+ };
18
+ };
9
19
  pgaLogoutButton: {
10
20
  es: {
11
21
  logoutBtn: string;
@@ -50,8 +60,7 @@ declare const _default: {
50
60
  };
51
61
  pgaTable: {
52
62
  es: {
53
- columnTitleEdit: string;
54
- columnTitleDelete: string;
63
+ columnTitleActions: string;
55
64
  selectAllBtn: string;
56
65
  withTheSelectedItemsText: string;
57
66
  };
@@ -1,4 +1,4 @@
1
- export declare const getLanguage: () => "es", setLanguage: (language: "es") => void, useI18n: <FN extends "notifications" | "alert" | "pgaLogoutButton" | "pgaDisplayNoItems" | "pgaDatePicker" | "pgaInputFile" | "pgaInputGroup" | "pgaInputSelect" | "pgaLoginForm" | "pgaTable" | "pgaModal", MP extends void | import('pangea-helpers').ExtractPrefixes<{
1
+ export declare const getLanguage: () => "es", setLanguage: (language: "es") => void, useI18n: <FN extends "notifications" | "alert" | "pgaDeleteButton" | "pgaEditButton" | "pgaLogoutButton" | "pgaDisplayNoItems" | "pgaDatePicker" | "pgaInputFile" | "pgaInputGroup" | "pgaInputSelect" | "pgaLoginForm" | "pgaTable" | "pgaModal", MP extends void | import('pangea-helpers').ExtractPrefixes<{
2
2
  alert: {
3
3
  es: {
4
4
  alertTitle: string;
@@ -6,6 +6,16 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
6
6
  acceptBtn: string;
7
7
  };
8
8
  };
9
+ pgaDeleteButton: {
10
+ es: {
11
+ text: string;
12
+ };
13
+ };
14
+ pgaEditButton: {
15
+ es: {
16
+ text: string;
17
+ };
18
+ };
9
19
  pgaLogoutButton: {
10
20
  es: {
11
21
  logoutBtn: string;
@@ -50,8 +60,7 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
50
60
  };
51
61
  pgaTable: {
52
62
  es: {
53
- columnTitleEdit: string;
54
- columnTitleDelete: string;
63
+ columnTitleActions: string;
55
64
  selectAllBtn: string;
56
65
  withTheSelectedItemsText: string;
57
66
  };
@@ -75,6 +84,16 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
75
84
  acceptBtn: string;
76
85
  };
77
86
  };
87
+ pgaDeleteButton: {
88
+ es: {
89
+ text: string;
90
+ };
91
+ };
92
+ pgaEditButton: {
93
+ es: {
94
+ text: string;
95
+ };
96
+ };
78
97
  pgaLogoutButton: {
79
98
  es: {
80
99
  logoutBtn: string;
@@ -119,8 +138,7 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
119
138
  };
120
139
  pgaTable: {
121
140
  es: {
122
- columnTitleEdit: string;
123
- columnTitleDelete: string;
141
+ columnTitleActions: string;
124
142
  selectAllBtn: string;
125
143
  withTheSelectedItemsText: string;
126
144
  };
@@ -144,6 +162,16 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
144
162
  acceptBtn: string;
145
163
  };
146
164
  };
165
+ pgaDeleteButton: {
166
+ es: {
167
+ text: string;
168
+ };
169
+ };
170
+ pgaEditButton: {
171
+ es: {
172
+ text: string;
173
+ };
174
+ };
147
175
  pgaLogoutButton: {
148
176
  es: {
149
177
  logoutBtn: string;
@@ -188,8 +216,7 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
188
216
  };
189
217
  pgaTable: {
190
218
  es: {
191
- columnTitleEdit: string;
192
- columnTitleDelete: string;
219
+ columnTitleActions: string;
193
220
  selectAllBtn: string;
194
221
  withTheSelectedItemsText: string;
195
222
  };
@@ -0,0 +1,12 @@
1
+ import { Item } from '.';
2
+ import { Icon, IconName } from './icon';
3
+ import { AppColorNameProp } from '../colors';
4
+
5
+ export type DropdownItem = Item;
6
+ export type DropdownOption = {
7
+ icon: Icon | IconName;
8
+ text: string;
9
+ color?: AppColorNameProp;
10
+ ifFn?: (item: DropdownItem) => boolean;
11
+ clickFn: (item: DropdownItem) => any;
12
+ };
@@ -1,6 +1,7 @@
1
1
  export * from './button';
2
2
  export * from './chart';
3
3
  export * from './color';
4
+ export * from './dropdown';
4
5
  export * from './file';
5
6
  export * from './form';
6
7
  export * from './icon';
@@ -14,3 +15,4 @@ export type Item = {
14
15
  [key: string]: any;
15
16
  };
16
17
  export type TextProp = string | (() => string);
18
+ export type Align = 'center' | 'left' | 'right';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.11.470",
4
+ "version": "2.11.472",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea#readme",