tsv2-library 0.0.26 → 0.0.27
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.d.ts +0 -2
- package/dist/src/components/v2/BadgeGroup/BadgeGroup.vue.d.ts +13 -0
- package/dist/src/components/v2/ButtonBulkAction/ButtonBulkAction.vue.d.ts +63 -6
- package/dist/src/components/v2/MultiSelect/MultiSelect.vue.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/tsv2-library.cjs.js +74 -74
- package/dist/tsv2-library.cjs.js.map +1 -1
- package/dist/tsv2-library.es.js +9143 -9057
- package/dist/tsv2-library.es.js.map +1 -1
- package/dist/tsv2-library.umd.js +73 -73
- package/dist/tsv2-library.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/v2/BadgeGroup/BadgeGroup.vue.d.ts +13 -0
- package/src/components/v2/ButtonBulkAction/ButtonBulkAction.vue.d.ts +63 -6
- package/src/components/v2/MultiSelect/MultiSelect.vue.d.ts +4 -0
- package/src/presets/button/index.js +7 -7
- package/dist/src/build-entry.d.ts +0 -9
- package/dist/src/components/v2/index.d.ts +0 -29
- package/dist/src/types/fieldValidation.type.d.ts +0 -9
- package/dist/src/types/generalSettings.type.d.ts +0 -27
- package/dist/src/types/options.d.ts +0 -21
- package/dist/src/utils/date.util.d.ts +0 -9
- package/dist/src/utils/exportToExcel.util.d.ts +0 -7
- package/dist/src/utils/index.d.ts +0 -9
- package/dist/src/utils/textFormater.util.d.ts +0 -3
package/dist/main.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import type { BadgeProps } from '../Badge/Badge.vue.d';
|
|
3
|
+
|
|
4
|
+
export interface BadgeGroupProps
|
|
5
|
+
extends Omit<BadgeProps, 'label' | 'disabled' | 'removable'> {
|
|
6
|
+
labels: string[];
|
|
7
|
+
limit?: number;
|
|
8
|
+
headerLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const BadgeGroup: DefineComponent<BadgeGroupProps>;
|
|
12
|
+
|
|
13
|
+
export default BadgeGroup;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
import { DefineComponent } from 'vue';
|
|
3
|
-
import { MenuItem } from '../Menu/MenuItem.d';
|
|
4
3
|
import { TSVueIcons } from '../Icon/Icon.vue.d';
|
|
5
4
|
|
|
6
|
-
export type MenuOption =
|
|
5
|
+
export type MenuOption = {
|
|
6
|
+
/**
|
|
7
|
+
* The option label.
|
|
8
|
+
*/
|
|
7
9
|
label?: string;
|
|
8
10
|
/**
|
|
9
11
|
* Specify the severity of action to danger (red).
|
|
10
12
|
*/
|
|
11
13
|
danger?: boolean;
|
|
12
14
|
/**
|
|
13
|
-
* Define the command to be executed when Apply button is clicked.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
15
|
+
* Define the command to be executed when option selected or Apply button is clicked.
|
|
16
|
+
*
|
|
17
|
+
* If the option use additional slot, the command will be executed on apply button clicked.
|
|
18
|
+
* Otherwise on option clicked.
|
|
16
19
|
*
|
|
17
|
-
* Changing bulk action label is already handled by the component it self.
|
|
18
20
|
* @returns void
|
|
19
21
|
*/
|
|
20
22
|
command?: () => void;
|
|
@@ -22,6 +24,50 @@ export type MenuOption = Omit<MenuItem, 'label', 'command', 'icon'> & {
|
|
|
22
24
|
* The action icon.
|
|
23
25
|
*/
|
|
24
26
|
icon?: TSVueIcons;
|
|
27
|
+
/**
|
|
28
|
+
* Need to specify wether the option has additional slot or not.
|
|
29
|
+
* It will also determine wether Apply button should visible or not.
|
|
30
|
+
*/
|
|
31
|
+
useAdditionSlot?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* External link to navigate when item is clicked.
|
|
34
|
+
*/
|
|
35
|
+
url?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* An array of children menuitems.
|
|
38
|
+
*/
|
|
39
|
+
items?: MenuItem[] | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* A boolean or a function to return a boolean to specify if the item is disabled.
|
|
42
|
+
* @defaultValue false
|
|
43
|
+
*/
|
|
44
|
+
disabled?: boolean | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* A boolean or a function to return a boolean to specify if the item is visible.
|
|
47
|
+
* @defaultValue true
|
|
48
|
+
*/
|
|
49
|
+
visible?: boolean | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Specifies where to open the linked document.
|
|
52
|
+
*/
|
|
53
|
+
target?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Defines the item as a separator.
|
|
56
|
+
* @defaultValue false
|
|
57
|
+
*/
|
|
58
|
+
separator?: boolean | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Inline style of the menuitem.
|
|
61
|
+
*/
|
|
62
|
+
style?: any;
|
|
63
|
+
/**
|
|
64
|
+
* Style class of the menuitem.
|
|
65
|
+
*/
|
|
66
|
+
class?: any;
|
|
67
|
+
/**
|
|
68
|
+
* Unique identifier of an item.
|
|
69
|
+
*/
|
|
70
|
+
key?: string | undefined;
|
|
25
71
|
};
|
|
26
72
|
|
|
27
73
|
export interface ButtonBulkActionProps {
|
|
@@ -38,6 +84,16 @@ export interface ButtonBulkActionProps {
|
|
|
38
84
|
naming?: string;
|
|
39
85
|
}
|
|
40
86
|
|
|
87
|
+
export interface ButtonBulkActionSlots {
|
|
88
|
+
/**
|
|
89
|
+
* Use additional slot like input field.
|
|
90
|
+
* The button Apply will shown if the selected option use additional slot.
|
|
91
|
+
*
|
|
92
|
+
* @slotprops selectedOption the current selected option/action. you can do conditional based on this slotprops.
|
|
93
|
+
*/
|
|
94
|
+
addition(selectedOption: MenuOption): () => any;
|
|
95
|
+
}
|
|
96
|
+
|
|
41
97
|
export type ButtonBulkActionEmits = {
|
|
42
98
|
/**
|
|
43
99
|
* Emits when Apply button is clicked.
|
|
@@ -64,6 +120,7 @@ export type ButtonBulkActionEmits = {
|
|
|
64
120
|
*/
|
|
65
121
|
declare const ButtonBulkAction: DefineComponent<
|
|
66
122
|
ButtonBulkActionProps,
|
|
123
|
+
ButtonBulkActionSlots,
|
|
67
124
|
ButtonBulkActionEmits
|
|
68
125
|
>;
|
|
69
126
|
|