pangea-lib 2.11.317 → 2.11.319

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.
@@ -1,15 +1,31 @@
1
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
- isItemSelected: boolean;
3
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
- isItemSelected: boolean;
5
- }>>>, {}, {}>;
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]>;
1
+ import { Item } from '../types';
2
+
3
+ declare function toggleItemSelected(): void;
4
+ declare const _default: import('vue').DefineComponent<{
5
+ modelValue: {
6
+ required: true;
7
+ type: import('vue').PropType<Item[]>;
8
+ };
9
+ items: {
10
+ type: import('vue').PropType<Item[]>;
11
+ required: true;
12
+ };
13
+ item: {
14
+ type: import('vue').PropType<Item>;
15
+ };
16
+ }, {
17
+ toggleItemSelected: typeof toggleItemSelected;
18
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ modelValue: {
20
+ required: true;
21
+ type: import('vue').PropType<Item[]>;
22
+ };
23
+ items: {
24
+ type: import('vue').PropType<Item[]>;
13
25
  required: true;
14
26
  };
15
- };
27
+ item: {
28
+ type: import('vue').PropType<Item>;
29
+ };
30
+ }>>, {}, {}>;
31
+ export default _default;
@@ -2,6 +2,8 @@ declare const _default: {
2
2
  es: {
3
3
  columnTitleEdit: string;
4
4
  columnTitleDelete: string;
5
+ selectAllBtn: string;
6
+ withTheSelectedItemsText: string;
5
7
  };
6
8
  };
7
9
  export default _default;
@@ -1,10 +1,11 @@
1
- import { TableItem, Columns, SearchParams, Indentation } from '../../types';
1
+ import { Item, Columns, SearchParams, Indentation } from '../../types';
2
2
 
3
3
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
4
- modelValue: {
4
+ searchParams: {
5
5
  required: true;
6
6
  type: import('vue').PropType<SearchParams>;
7
7
  };
8
+ selectedItems: import('vue').PropType<Item[]>;
8
9
  columns: {
9
10
  type: import('vue').PropType<Columns>;
10
11
  required: true;
@@ -12,17 +13,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
12
13
  createItemBtnText: {
13
14
  type: import('vue').PropType<string>;
14
15
  };
15
- withSelectColumn: {
16
- type: import('vue').PropType<boolean>;
17
- };
18
16
  withEditColumn: {
19
17
  type: import('vue').PropType<boolean>;
20
18
  };
21
19
  confirmDeleteText: {
22
- type: import('vue').PropType<(item: TableItem) => string>;
20
+ type: import('vue').PropType<(item: Item) => string>;
23
21
  };
24
22
  items: {
25
- type: import('vue').PropType<TableItem[]>;
23
+ type: import('vue').PropType<Item[]>;
26
24
  required: true;
27
25
  };
28
26
  totalCount: {
@@ -40,14 +38,15 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
40
38
  };
41
39
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
42
40
  createItem: () => void;
43
- editItem: (item: TableItem) => void;
44
- deleteItem: (item: TableItem) => void;
41
+ editItem: (item: Item) => void;
42
+ deleteItem: (item: Item) => void;
45
43
  refreshList: () => void;
46
44
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
47
- modelValue: {
45
+ searchParams: {
48
46
  required: true;
49
47
  type: import('vue').PropType<SearchParams>;
50
48
  };
49
+ selectedItems: import('vue').PropType<Item[]>;
51
50
  columns: {
52
51
  type: import('vue').PropType<Columns>;
53
52
  required: true;
@@ -55,17 +54,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
55
54
  createItemBtnText: {
56
55
  type: import('vue').PropType<string>;
57
56
  };
58
- withSelectColumn: {
59
- type: import('vue').PropType<boolean>;
60
- };
61
57
  withEditColumn: {
62
58
  type: import('vue').PropType<boolean>;
63
59
  };
64
60
  confirmDeleteText: {
65
- type: import('vue').PropType<(item: TableItem) => string>;
61
+ type: import('vue').PropType<(item: Item) => string>;
66
62
  };
67
63
  items: {
68
- type: import('vue').PropType<TableItem[]>;
64
+ type: import('vue').PropType<Item[]>;
69
65
  required: true;
70
66
  };
71
67
  totalCount: {
@@ -83,13 +79,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
83
79
  };
84
80
  }>> & {
85
81
  onCreateItem?: () => any;
86
- onEditItem?: (item: TableItem) => any;
87
- onDeleteItem?: (item: TableItem) => any;
82
+ onEditItem?: (item: Item) => any;
83
+ onDeleteItem?: (item: Item) => any;
88
84
  onRefreshList?: () => any;
89
85
  }, {}, {}>, Partial<Record<string, (_: {
90
86
  item: any;
91
87
  }) => any>> & {
92
88
  header?(_: {}): any;
89
+ itemsSelected?(_: {}): any;
93
90
  }>;
94
91
  export default _default;
95
92
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -5,16 +5,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
5
5
  fitContent?: boolean;
6
6
  }>, {
7
7
  align: string;
8
- fitContent: boolean;
9
8
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
9
  align?: ColumnAlign;
11
10
  fitContent?: boolean;
12
11
  }>, {
13
12
  align: string;
14
- fitContent: boolean;
15
13
  }>>>, {
16
14
  align: ColumnAlign;
17
- fitContent: boolean;
18
15
  }, {}>, {
19
16
  default?(_: {}): any;
20
17
  }>;
@@ -47,6 +47,8 @@ declare const _default: {
47
47
  es: {
48
48
  columnTitleEdit: string;
49
49
  columnTitleDelete: string;
50
+ selectAllBtn: string;
51
+ withTheSelectedItemsText: string;
50
52
  };
51
53
  };
52
54
  pgaModal: {
@@ -47,6 +47,8 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
47
47
  es: {
48
48
  columnTitleEdit: string;
49
49
  columnTitleDelete: string;
50
+ selectAllBtn: string;
51
+ withTheSelectedItemsText: string;
50
52
  };
51
53
  };
52
54
  pgaModal: {
@@ -109,6 +111,8 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
109
111
  es: {
110
112
  columnTitleEdit: string;
111
113
  columnTitleDelete: string;
114
+ selectAllBtn: string;
115
+ withTheSelectedItemsText: string;
112
116
  };
113
117
  };
114
118
  pgaModal: {
@@ -171,6 +175,8 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
171
175
  es: {
172
176
  columnTitleEdit: string;
173
177
  columnTitleDelete: string;
178
+ selectAllBtn: string;
179
+ withTheSelectedItemsText: string;
174
180
  };
175
181
  };
176
182
  pgaModal: {
@@ -9,4 +9,8 @@ export * from './populate';
9
9
  export * from './size';
10
10
  export * from './table';
11
11
  export type Id = string;
12
+ export type Item = {
13
+ id: Id;
14
+ [key: string]: any;
15
+ };
12
16
  export type TextProp = string | (() => string);
@@ -1,9 +1,5 @@
1
- import { Id, TextProp } from '.';
1
+ import { TextProp } from '.';
2
2
 
3
- export type TableItem = {
4
- id: Id;
5
- [key: string]: any;
6
- };
7
3
  export type ColumnName = string;
8
4
  export type ColumnAlign = 'left' | 'center' | 'right';
9
5
  export type Column = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.11.317",
4
+ "version": "2.11.319",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea#readme",