pangea-lib 2.11.303 → 2.11.305
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 +41 -41
- package/dist/main.css +1 -1
- package/dist/main.es.js +12145 -12080
- package/dist/types/components/_i18n/table/pgaTable.i18n.d.ts +7 -0
- package/dist/types/components/form/input/PgaSwitchOptions.vue.d.ts +2 -2
- package/dist/types/components/table/PgaTable.vue.d.ts +35 -5
- package/dist/types/components/table/PgaTd.vue.d.ts +43 -0
- package/dist/types/components/table/PgaTh.vue.d.ts +36 -0
- package/dist/types/i18n/all-messages.d.ts +6 -0
- package/dist/types/i18n/i18n.d.ts +19 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/table.d.ts +8 -3
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ type SelectorItem = {
|
|
|
8
8
|
declare const _default: import('vue').DefineComponent<{
|
|
9
9
|
modelValue: {
|
|
10
10
|
required: true;
|
|
11
|
-
type: import('vue').PropType<
|
|
11
|
+
type: import('vue').PropType<string>;
|
|
12
12
|
};
|
|
13
13
|
items: {
|
|
14
14
|
type: import('vue').PropType<SelectorItem[]>;
|
|
@@ -32,7 +32,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
32
32
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
33
33
|
modelValue: {
|
|
34
34
|
required: true;
|
|
35
|
-
type: import('vue').PropType<
|
|
35
|
+
type: import('vue').PropType<string>;
|
|
36
36
|
};
|
|
37
37
|
items: {
|
|
38
38
|
type: import('vue').PropType<SelectorItem[]>;
|
|
@@ -1,16 +1,28 @@
|
|
|
1
|
-
import { Columns,
|
|
1
|
+
import { TableItem, Columns, SearchParams, Indentation } from '../../types';
|
|
2
2
|
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
4
4
|
modelValue: {
|
|
5
5
|
required: true;
|
|
6
|
-
type: import('vue').PropType<
|
|
6
|
+
type: import('vue').PropType<SearchParams>;
|
|
7
7
|
};
|
|
8
8
|
columns: {
|
|
9
9
|
type: import('vue').PropType<Columns>;
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
|
+
createItemBtnText: {
|
|
13
|
+
type: import('vue').PropType<string>;
|
|
14
|
+
};
|
|
15
|
+
withSelectColumn: {
|
|
16
|
+
type: import('vue').PropType<boolean>;
|
|
17
|
+
};
|
|
18
|
+
withEditColumn: {
|
|
19
|
+
type: import('vue').PropType<boolean>;
|
|
20
|
+
};
|
|
21
|
+
confirmDeleteText: {
|
|
22
|
+
type: import('vue').PropType<(item: TableItem) => string>;
|
|
23
|
+
};
|
|
12
24
|
items: {
|
|
13
|
-
type: import('vue').PropType<
|
|
25
|
+
type: import('vue').PropType<TableItem[]>;
|
|
14
26
|
required: true;
|
|
15
27
|
};
|
|
16
28
|
totalCount: {
|
|
@@ -27,18 +39,33 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
27
39
|
type: import('vue').PropType<boolean>;
|
|
28
40
|
};
|
|
29
41
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
+
createItem: () => void;
|
|
43
|
+
editItem: (item: TableItem) => void;
|
|
44
|
+
deleteItem: (item: TableItem) => void;
|
|
30
45
|
refreshList: () => void;
|
|
31
46
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
32
47
|
modelValue: {
|
|
33
48
|
required: true;
|
|
34
|
-
type: import('vue').PropType<
|
|
49
|
+
type: import('vue').PropType<SearchParams>;
|
|
35
50
|
};
|
|
36
51
|
columns: {
|
|
37
52
|
type: import('vue').PropType<Columns>;
|
|
38
53
|
required: true;
|
|
39
54
|
};
|
|
55
|
+
createItemBtnText: {
|
|
56
|
+
type: import('vue').PropType<string>;
|
|
57
|
+
};
|
|
58
|
+
withSelectColumn: {
|
|
59
|
+
type: import('vue').PropType<boolean>;
|
|
60
|
+
};
|
|
61
|
+
withEditColumn: {
|
|
62
|
+
type: import('vue').PropType<boolean>;
|
|
63
|
+
};
|
|
64
|
+
confirmDeleteText: {
|
|
65
|
+
type: import('vue').PropType<(item: TableItem) => string>;
|
|
66
|
+
};
|
|
40
67
|
items: {
|
|
41
|
-
type: import('vue').PropType<
|
|
68
|
+
type: import('vue').PropType<TableItem[]>;
|
|
42
69
|
required: true;
|
|
43
70
|
};
|
|
44
71
|
totalCount: {
|
|
@@ -55,6 +82,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
55
82
|
type: import('vue').PropType<boolean>;
|
|
56
83
|
};
|
|
57
84
|
}>> & {
|
|
85
|
+
onCreateItem?: () => any;
|
|
86
|
+
onEditItem?: (item: TableItem) => any;
|
|
87
|
+
onDeleteItem?: (item: TableItem) => any;
|
|
58
88
|
onRefreshList?: () => any;
|
|
59
89
|
}, {}, {}>, Partial<Record<string, (_: {
|
|
60
90
|
item: any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ColumnAlign } from '../../types';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
align?: ColumnAlign;
|
|
5
|
+
fitContent?: boolean;
|
|
6
|
+
}>, {
|
|
7
|
+
align: string;
|
|
8
|
+
fitContent: boolean;
|
|
9
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
align?: ColumnAlign;
|
|
11
|
+
fitContent?: boolean;
|
|
12
|
+
}>, {
|
|
13
|
+
align: string;
|
|
14
|
+
fitContent: boolean;
|
|
15
|
+
}>>>, {
|
|
16
|
+
align: ColumnAlign;
|
|
17
|
+
fitContent: boolean;
|
|
18
|
+
}, {}>, {
|
|
19
|
+
default?(_: {}): any;
|
|
20
|
+
}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
type __VLS_WithDefaults<P, D> = {
|
|
32
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
+
default: D[K];
|
|
34
|
+
}> : P[K];
|
|
35
|
+
};
|
|
36
|
+
type __VLS_Prettify<T> = {
|
|
37
|
+
[K in keyof T]: T[K];
|
|
38
|
+
} & {};
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TextProp, ColumnAlign } from '../../types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
title?: TextProp;
|
|
5
|
+
align?: ColumnAlign;
|
|
6
|
+
}>, {
|
|
7
|
+
title: string;
|
|
8
|
+
align: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
title?: TextProp;
|
|
11
|
+
align?: ColumnAlign;
|
|
12
|
+
}>, {
|
|
13
|
+
title: string;
|
|
14
|
+
align: string;
|
|
15
|
+
}>>>, {
|
|
16
|
+
title: TextProp;
|
|
17
|
+
align: ColumnAlign;
|
|
18
|
+
}, {}>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
22
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
+
} : {
|
|
25
|
+
type: import('vue').PropType<T[K]>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type __VLS_WithDefaults<P, D> = {
|
|
30
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
31
|
+
default: D[K];
|
|
32
|
+
}> : P[K];
|
|
33
|
+
};
|
|
34
|
+
type __VLS_Prettify<T> = {
|
|
35
|
+
[K in keyof T]: T[K];
|
|
36
|
+
} & {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const getLanguage: () => "es", setLanguage: (language: "es") => void, useI18n: <FN extends "notifications" | "alert" | "pgaLogoutButton" | "pgaDisplayNoItems" | "pgaDatePicker" | "pgaInputFile" | "pgaInputGroup" | "pgaLoginForm" | "pgaModal", MP extends void | import('pangea-helpers').ExtractPrefixes<{
|
|
1
|
+
export declare const getLanguage: () => "es", setLanguage: (language: "es") => void, useI18n: <FN extends "notifications" | "alert" | "pgaLogoutButton" | "pgaDisplayNoItems" | "pgaDatePicker" | "pgaInputFile" | "pgaInputGroup" | "pgaLoginForm" | "pgaTable" | "pgaModal", MP extends void | import('pangea-helpers').ExtractPrefixes<{
|
|
2
2
|
alert: {
|
|
3
3
|
es: {
|
|
4
4
|
alertTitle: string;
|
|
@@ -43,6 +43,12 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
|
|
|
43
43
|
loginBtn: string;
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
+
pgaTable: {
|
|
47
|
+
es: {
|
|
48
|
+
columnTitleEdit: string;
|
|
49
|
+
columnTitleDelete: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
46
52
|
pgaModal: {
|
|
47
53
|
es: {
|
|
48
54
|
cancelBtn: string;
|
|
@@ -99,6 +105,12 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
|
|
|
99
105
|
loginBtn: string;
|
|
100
106
|
};
|
|
101
107
|
};
|
|
108
|
+
pgaTable: {
|
|
109
|
+
es: {
|
|
110
|
+
columnTitleEdit: string;
|
|
111
|
+
columnTitleDelete: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
102
114
|
pgaModal: {
|
|
103
115
|
es: {
|
|
104
116
|
cancelBtn: string;
|
|
@@ -155,6 +167,12 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
|
|
|
155
167
|
loginBtn: string;
|
|
156
168
|
};
|
|
157
169
|
};
|
|
170
|
+
pgaTable: {
|
|
171
|
+
es: {
|
|
172
|
+
columnTitleEdit: string;
|
|
173
|
+
columnTitleDelete: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
158
176
|
pgaModal: {
|
|
159
177
|
es: {
|
|
160
178
|
cancelBtn: string;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { TextProp } from '.';
|
|
1
|
+
import { Id, TextProp } from '.';
|
|
2
2
|
|
|
3
|
+
export type TableItem = {
|
|
4
|
+
id: Id;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
3
7
|
export type ColumnName = string;
|
|
8
|
+
export type ColumnAlign = 'left' | 'center' | 'right';
|
|
4
9
|
export type Column = {
|
|
5
10
|
title: TextProp;
|
|
6
|
-
align?:
|
|
11
|
+
align?: ColumnAlign;
|
|
7
12
|
fitContent?: boolean;
|
|
8
13
|
};
|
|
9
14
|
export type Columns = Record<ColumnName, Column>;
|
|
10
|
-
export type
|
|
15
|
+
export type SearchParams = {
|
|
11
16
|
page: number;
|
|
12
17
|
pageSize: number;
|
|
13
18
|
search: string;
|