@frollo/frollo-web-ui 4.0.0 → 5.0.0
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/cjs/index.js +908 -497
- package/esm/{es.number.constructor-1249bd78.js → es.number.constructor-d6ff8874.js} +13 -4
- package/esm/{es.string.iterator-284b31d4.js → es.string.iterator-590198a8.js} +1 -2
- package/esm/fw-accordion.js +61 -28
- package/esm/fw-animations.js +3 -4
- package/esm/fw-bar-chart.js +4 -4
- package/esm/{fw-button-e8b1bd62.js → fw-button-beaf20f4.js} +1 -1
- package/esm/fw-button.js +3 -3
- package/esm/fw-checkbox.js +25 -9
- package/esm/fw-drawer.js +225 -0
- package/esm/fw-dropdown.js +1 -1
- package/esm/{fw-image-3fa960e1.js → fw-image-161b667a.js} +66 -60
- package/esm/fw-image.js +6 -7
- package/esm/fw-input.js +27 -9
- package/esm/{fw-loading-spinner-304e2f95.js → fw-loading-spinner-51deaa3d.js} +1 -1
- package/esm/fw-loading.js +17 -17
- package/esm/fw-modal.js +3 -3
- package/esm/fw-navigation-menu.js +3 -3
- package/esm/fw-progress-bar.js +1 -2
- package/esm/fw-sidebar-menu.js +13 -9
- package/esm/fw-table.js +63 -41
- package/esm/fw-tabs.js +1 -2
- package/esm/fw-tag.js +93 -18
- package/esm/fw-toast.js +2 -3
- package/esm/fw-transactions-card.js +6 -7
- package/esm/get-root-colours-e2a1cb28.js +21 -0
- package/esm/{index-1a41e7bf.js → index-2766bfe4.js} +14 -14
- package/esm/{index-c6458115.js → index-3624f1c9.js} +124 -96
- package/esm/index.js +42 -39
- package/frollo-web-ui.esm.js +971 -545
- package/icons/index.ts +5 -1
- package/icons/search.svg +3 -0
- package/icons/xmark.svg +3 -0
- package/index.d.ts +446 -139
- package/package.json +1 -1
- package/types/components/fw-accordion/fw-accordion.vue.d.ts +22 -4
- package/types/components/fw-accordion/index.types.d.ts +1 -0
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +35 -3
- package/types/components/fw-checkbox/index.types.d.ts +2 -0
- package/types/components/fw-drawer/fw-drawer.vue.d.ts +165 -0
- package/types/components/fw-drawer/index.d.ts +2 -0
- package/types/components/fw-drawer/index.types.d.ts +14 -0
- package/types/components/fw-input/fw-input.vue.d.ts +36 -2
- package/types/components/fw-input/index.types.d.ts +2 -0
- package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +4 -3
- package/types/components/fw-sidebar-menu/index.types.d.ts +2 -1
- package/types/components/fw-table/fw-table.vue.d.ts +14 -0
- package/types/components/fw-table/index.types.d.ts +3 -1
- package/types/components/fw-tag/fw-tag.vue.d.ts +30 -8
- package/types/components/fw-tag/index.types.d.ts +4 -2
- package/types/components/index.d.ts +1 -0
- package/types/components/index.types.d.ts +1 -0
- package/types/helpers/get-root-colours.d.ts +9 -0
- package/types/icons/index.d.ts +3 -1
- package/web-components/index.js +973 -547
- package/esm/to-string-12728fd2.js +0 -13
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __default__: import("vue").DefineComponent<{
|
|
2
2
|
/**
|
|
3
3
|
* The header title of the accordion
|
|
4
4
|
*/
|
|
@@ -18,10 +18,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
type: BooleanConstructor;
|
|
19
19
|
default: boolean;
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Whether the accordion open icon should be at the start or end
|
|
23
|
+
*/
|
|
24
|
+
iconPositionStart: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
21
28
|
}, {
|
|
22
29
|
isOpen: import("vue").Ref<boolean>;
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
beforeEnter: (el: Element) => void;
|
|
31
|
+
enter: (el: Element) => void;
|
|
32
|
+
beforeLeave: (el: Element) => void;
|
|
33
|
+
leave: (el: Element) => void;
|
|
34
|
+
bgHoverColor: string;
|
|
25
35
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
36
|
/**
|
|
27
37
|
* The header title of the accordion
|
|
@@ -42,7 +52,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
52
|
type: BooleanConstructor;
|
|
43
53
|
default: boolean;
|
|
44
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* Whether the accordion open icon should be at the start or end
|
|
57
|
+
*/
|
|
58
|
+
iconPositionStart: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
45
62
|
}>>, {
|
|
46
63
|
isOpened: boolean;
|
|
64
|
+
iconPositionStart: boolean;
|
|
47
65
|
}>;
|
|
48
|
-
export default
|
|
66
|
+
export default __default__;
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
/**
|
|
4
|
-
* The name of the input field.
|
|
4
|
+
* The name of the checkbox input field.
|
|
5
|
+
* Multiple checkboxes can use the same name with a unique value.
|
|
5
6
|
*/
|
|
6
7
|
name: {
|
|
7
8
|
type: StringConstructor;
|
|
8
9
|
required: true;
|
|
9
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* The value of the input field. Must be unique per name.
|
|
13
|
+
*/
|
|
14
|
+
value: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
10
18
|
/**
|
|
11
19
|
* Label for the input. Also renders to an aria-label attribute
|
|
12
20
|
*/
|
|
@@ -25,16 +33,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
33
|
hint: {
|
|
26
34
|
type: StringConstructor;
|
|
27
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* Enable or disable the error hidden element
|
|
38
|
+
*/
|
|
39
|
+
enableErrors: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
28
43
|
}, {
|
|
29
44
|
uuid: string;
|
|
30
45
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
46
|
/**
|
|
32
|
-
* The name of the input field.
|
|
47
|
+
* The name of the checkbox input field.
|
|
48
|
+
* Multiple checkboxes can use the same name with a unique value.
|
|
33
49
|
*/
|
|
34
50
|
name: {
|
|
35
51
|
type: StringConstructor;
|
|
36
52
|
required: true;
|
|
37
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* The value of the input field. Must be unique per name.
|
|
56
|
+
*/
|
|
57
|
+
value: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
required: false;
|
|
60
|
+
};
|
|
38
61
|
/**
|
|
39
62
|
* Label for the input. Also renders to an aria-label attribute
|
|
40
63
|
*/
|
|
@@ -53,5 +76,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
76
|
hint: {
|
|
54
77
|
type: StringConstructor;
|
|
55
78
|
};
|
|
56
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Enable or disable the error hidden element
|
|
81
|
+
*/
|
|
82
|
+
enableErrors: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
}>>, {
|
|
87
|
+
enableErrors: boolean;
|
|
88
|
+
}>;
|
|
57
89
|
export default _default;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ButtonVariantName } from '../fw-button/index.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
/**
|
|
5
|
+
* The drawer's v-model. Controls the visibility of the drawer.
|
|
6
|
+
*/
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The header title of the drawer
|
|
12
|
+
*/
|
|
13
|
+
header: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The body description of the drawer
|
|
18
|
+
*/
|
|
19
|
+
body: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The aria role of the drawer container. Defaults to `dialog`
|
|
24
|
+
*/
|
|
25
|
+
role: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Whether to show the cancel button
|
|
31
|
+
*/
|
|
32
|
+
showCancel: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Whether to show the confirm button
|
|
38
|
+
*/
|
|
39
|
+
showConfirm: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Custom text for the cancel button
|
|
45
|
+
*/
|
|
46
|
+
cancelButtonText: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Button variant for the cancel button
|
|
52
|
+
*/
|
|
53
|
+
cancelButtonType: {
|
|
54
|
+
type: PropType<ButtonVariantName>;
|
|
55
|
+
default: string;
|
|
56
|
+
validator: (value: string) => boolean;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Custom text for the confirm button
|
|
60
|
+
*/
|
|
61
|
+
confirmButtonText: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Button variant for the confirm button
|
|
67
|
+
*/
|
|
68
|
+
confirmButtonType: {
|
|
69
|
+
type: PropType<ButtonVariantName>;
|
|
70
|
+
default: string;
|
|
71
|
+
validator: (value: string) => boolean;
|
|
72
|
+
};
|
|
73
|
+
}, {
|
|
74
|
+
baseDrawerClass: string;
|
|
75
|
+
drawerFooterClass: string;
|
|
76
|
+
isOpen: import("vue").WritableComputedRef<boolean>;
|
|
77
|
+
uuid: string;
|
|
78
|
+
isMounted: import("vue").Ref<boolean>;
|
|
79
|
+
onConfirmed: () => void;
|
|
80
|
+
onCancelled: () => void;
|
|
81
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "confirm")[], "update:modelValue" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
82
|
+
/**
|
|
83
|
+
* The drawer's v-model. Controls the visibility of the drawer.
|
|
84
|
+
*/
|
|
85
|
+
modelValue: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* The header title of the drawer
|
|
90
|
+
*/
|
|
91
|
+
header: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* The body description of the drawer
|
|
96
|
+
*/
|
|
97
|
+
body: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* The aria role of the drawer container. Defaults to `dialog`
|
|
102
|
+
*/
|
|
103
|
+
role: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Whether to show the cancel button
|
|
109
|
+
*/
|
|
110
|
+
showCancel: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Whether to show the confirm button
|
|
116
|
+
*/
|
|
117
|
+
showConfirm: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Custom text for the cancel button
|
|
123
|
+
*/
|
|
124
|
+
cancelButtonText: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Button variant for the cancel button
|
|
130
|
+
*/
|
|
131
|
+
cancelButtonType: {
|
|
132
|
+
type: PropType<ButtonVariantName>;
|
|
133
|
+
default: string;
|
|
134
|
+
validator: (value: string) => boolean;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Custom text for the confirm button
|
|
138
|
+
*/
|
|
139
|
+
confirmButtonText: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Button variant for the confirm button
|
|
145
|
+
*/
|
|
146
|
+
confirmButtonType: {
|
|
147
|
+
type: PropType<ButtonVariantName>;
|
|
148
|
+
default: string;
|
|
149
|
+
validator: (value: string) => boolean;
|
|
150
|
+
};
|
|
151
|
+
}>> & {
|
|
152
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
153
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
154
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
155
|
+
}, {
|
|
156
|
+
modelValue: boolean;
|
|
157
|
+
role: string;
|
|
158
|
+
showCancel: boolean;
|
|
159
|
+
showConfirm: boolean;
|
|
160
|
+
cancelButtonText: string;
|
|
161
|
+
cancelButtonType: ButtonVariantName;
|
|
162
|
+
confirmButtonText: string;
|
|
163
|
+
confirmButtonType: ButtonVariantName;
|
|
164
|
+
}>;
|
|
165
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ButtonVariantName } from '../fw-button/index.types';
|
|
2
|
+
export declare interface FwDrawerProps {
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
header?: string;
|
|
5
|
+
element?: string;
|
|
6
|
+
body?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
showCancel?: boolean;
|
|
9
|
+
showConfirm?: boolean;
|
|
10
|
+
cancelButtonText?: string;
|
|
11
|
+
cancelButtonType?: ButtonVariantName;
|
|
12
|
+
confirmButtonText?: string;
|
|
13
|
+
confirmButtonType?: ButtonVariantName;
|
|
14
|
+
}
|
|
@@ -63,12 +63,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
63
|
};
|
|
64
64
|
/**
|
|
65
65
|
* The logical tab order of the input.
|
|
66
|
-
* Defaults to
|
|
66
|
+
* Defaults to 0
|
|
67
67
|
*/
|
|
68
68
|
tabindex: {
|
|
69
69
|
type: StringConstructor;
|
|
70
70
|
default: string;
|
|
71
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* Whether the input is rounded.
|
|
74
|
+
* Defaults to false
|
|
75
|
+
*/
|
|
76
|
+
rounded: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Enable the error section UI.
|
|
82
|
+
* Defaults to true
|
|
83
|
+
*/
|
|
84
|
+
enableErrors: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
72
88
|
}, {
|
|
73
89
|
uuid: string;
|
|
74
90
|
inputBaseClass: import("vue").Ref<string>;
|
|
@@ -136,12 +152,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
136
152
|
};
|
|
137
153
|
/**
|
|
138
154
|
* The logical tab order of the input.
|
|
139
|
-
* Defaults to
|
|
155
|
+
* Defaults to 0
|
|
140
156
|
*/
|
|
141
157
|
tabindex: {
|
|
142
158
|
type: StringConstructor;
|
|
143
159
|
default: string;
|
|
144
160
|
};
|
|
161
|
+
/**
|
|
162
|
+
* Whether the input is rounded.
|
|
163
|
+
* Defaults to false
|
|
164
|
+
*/
|
|
165
|
+
rounded: {
|
|
166
|
+
type: BooleanConstructor;
|
|
167
|
+
default: boolean;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Enable the error section UI.
|
|
171
|
+
* Defaults to true
|
|
172
|
+
*/
|
|
173
|
+
enableErrors: {
|
|
174
|
+
type: BooleanConstructor;
|
|
175
|
+
default: boolean;
|
|
176
|
+
};
|
|
145
177
|
}>> & {
|
|
146
178
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
147
179
|
}, {
|
|
@@ -150,5 +182,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
182
|
placeholder: string;
|
|
151
183
|
readonly: boolean;
|
|
152
184
|
tabindex: string;
|
|
185
|
+
rounded: boolean;
|
|
186
|
+
enableErrors: boolean;
|
|
153
187
|
}>;
|
|
154
188
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { FwSidebarMenuItem } from './index.types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
/**
|
|
5
5
|
* An array of menu items
|
|
6
6
|
* `{ to?: string | object; href?: string; label: string; }`
|
|
7
7
|
*/
|
|
8
8
|
menuItems: {
|
|
9
|
-
type: PropType<
|
|
9
|
+
type: PropType<FwSidebarMenuItem[]>;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* The class for the open/close toggle button
|
|
@@ -30,6 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
32
|
}, {
|
|
33
|
+
baseClass: string;
|
|
33
34
|
isMenuOpen: import("vue").Ref<boolean>;
|
|
34
35
|
toggleMenu: () => void;
|
|
35
36
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggled"[], "toggled", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -38,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
39
|
* `{ to?: string | object; href?: string; label: string; }`
|
|
39
40
|
*/
|
|
40
41
|
menuItems: {
|
|
41
|
-
type: PropType<
|
|
42
|
+
type: PropType<FwSidebarMenuItem[]>;
|
|
42
43
|
};
|
|
43
44
|
/**
|
|
44
45
|
* The class for the open/close toggle button
|
|
@@ -13,10 +13,17 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
13
13
|
type: BooleanConstructor;
|
|
14
14
|
default: boolean;
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Enable click events on rows.
|
|
18
|
+
* Emits row data when clicked
|
|
19
|
+
*/
|
|
16
20
|
clickableRows: {
|
|
17
21
|
type: BooleanConstructor;
|
|
18
22
|
default: boolean;
|
|
19
23
|
};
|
|
24
|
+
autoSortColumn: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
};
|
|
20
27
|
}, {
|
|
21
28
|
columns: import("vue").ComputedRef<string[]>;
|
|
22
29
|
sortBy: import("vue").Ref<string>;
|
|
@@ -43,10 +50,17 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
43
50
|
type: BooleanConstructor;
|
|
44
51
|
default: boolean;
|
|
45
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* Enable click events on rows.
|
|
55
|
+
* Emits row data when clicked
|
|
56
|
+
*/
|
|
46
57
|
clickableRows: {
|
|
47
58
|
type: BooleanConstructor;
|
|
48
59
|
default: boolean;
|
|
49
60
|
};
|
|
61
|
+
autoSortColumn: {
|
|
62
|
+
type: NumberConstructor;
|
|
63
|
+
};
|
|
50
64
|
}>> & {
|
|
51
65
|
onRowClicked?: ((...args: any[]) => any) | undefined;
|
|
52
66
|
}, {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
export declare type FwTableItem = Record<string, string | number>;
|
|
2
2
|
export declare type FwTableFormatFunction = (value: string | number | object) => string;
|
|
3
|
+
export declare type FwTableSort = 'asc' | 'desc';
|
|
3
4
|
export declare type FwTableItemOptions = Record<string, {
|
|
4
5
|
formatter?: FwTableFormatFunction;
|
|
5
6
|
isSortable?: boolean;
|
|
6
7
|
disabled?: boolean;
|
|
8
|
+
initSortOrder?: FwTableSort;
|
|
7
9
|
}>;
|
|
8
|
-
export declare type FwTableSort = 'asc' | 'desc';
|
|
9
10
|
export declare interface FwTableProps {
|
|
10
11
|
items: FwTableItem[];
|
|
11
12
|
options?: FwTableItemOptions;
|
|
12
13
|
loading?: boolean;
|
|
13
14
|
clickableRows?: boolean;
|
|
15
|
+
autoSortColumn?: number;
|
|
14
16
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TagSize, TagVariantName } from './index.types';
|
|
3
|
-
declare const
|
|
3
|
+
declare const __default__: import("vue").DefineComponent<{
|
|
4
4
|
/**
|
|
5
|
-
* The size of the tag. Accepts: 'xs' & '
|
|
5
|
+
* The size of the tag. Accepts: 'xs', 'sm' & 'md'
|
|
6
6
|
*/
|
|
7
7
|
size: {
|
|
8
8
|
type: PropType<TagSize>;
|
|
@@ -11,21 +11,32 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* The colour variant of the tag.
|
|
14
|
-
* Accepts 'primary', 'alert', 'error', 'success'
|
|
14
|
+
* Accepts 'primary', 'secondary', 'alert', 'error', 'success'
|
|
15
15
|
*/
|
|
16
16
|
variant: {
|
|
17
17
|
type: PropType<TagVariantName>;
|
|
18
18
|
default: string;
|
|
19
19
|
validator: (value: string) => boolean;
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Whether the tag can be dismissed or closed.
|
|
23
|
+
* Emits the @dismissed event
|
|
24
|
+
*/
|
|
25
|
+
dismissable: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
21
29
|
}, {
|
|
22
30
|
baseClass: import("vue").Ref<string>;
|
|
23
31
|
textColorClass: import("vue").ComputedRef<string>;
|
|
24
32
|
bgColorClass: import("vue").ComputedRef<string>;
|
|
25
33
|
sizeClass: import("vue").ComputedRef<string>;
|
|
26
|
-
|
|
34
|
+
iconSizeClass: import("vue").ComputedRef<string>;
|
|
35
|
+
iconButtonType: import("vue").ComputedRef<import("../index.types").ButtonVariantName | undefined>;
|
|
36
|
+
primaryFade5: string;
|
|
37
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "dismissed"[], "dismissed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
38
|
/**
|
|
28
|
-
* The size of the tag. Accepts: 'xs' & '
|
|
39
|
+
* The size of the tag. Accepts: 'xs', 'sm' & 'md'
|
|
29
40
|
*/
|
|
30
41
|
size: {
|
|
31
42
|
type: PropType<TagSize>;
|
|
@@ -34,15 +45,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
45
|
};
|
|
35
46
|
/**
|
|
36
47
|
* The colour variant of the tag.
|
|
37
|
-
* Accepts 'primary', 'alert', 'error', 'success'
|
|
48
|
+
* Accepts 'primary', 'secondary', 'alert', 'error', 'success'
|
|
38
49
|
*/
|
|
39
50
|
variant: {
|
|
40
51
|
type: PropType<TagVariantName>;
|
|
41
52
|
default: string;
|
|
42
53
|
validator: (value: string) => boolean;
|
|
43
54
|
};
|
|
44
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Whether the tag can be dismissed or closed.
|
|
57
|
+
* Emits the @dismissed event
|
|
58
|
+
*/
|
|
59
|
+
dismissable: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
}>> & {
|
|
64
|
+
onDismissed?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}, {
|
|
45
66
|
size: TagSize;
|
|
46
67
|
variant: TagVariantName;
|
|
68
|
+
dismissable: boolean;
|
|
47
69
|
}>;
|
|
48
|
-
export default
|
|
70
|
+
export default __default__;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { FwButtonProps } from '../fw-button/index.types';
|
|
2
|
+
export declare type TagVariantName = 'primary' | 'secondary' | 'alert' | 'error' | 'success';
|
|
2
3
|
export declare interface TagDefinition {
|
|
3
4
|
text: string;
|
|
4
5
|
background: string;
|
|
6
|
+
iconType: FwButtonProps['variant'];
|
|
5
7
|
}
|
|
6
8
|
export declare type TagDefinitionList = {
|
|
7
9
|
[key in TagVariantName]: TagDefinition;
|
|
8
10
|
};
|
|
9
|
-
export declare type TagSize = 'xs' | 'sm';
|
|
11
|
+
export declare type TagSize = 'xs' | 'sm' | 'md';
|
|
10
12
|
export declare type TagSizes = {
|
|
11
13
|
[key in TagSize]: string;
|
|
12
14
|
};
|
|
@@ -14,3 +14,4 @@ export * from '../components/fw-toast/index.types';
|
|
|
14
14
|
export * from '../components/fw-transactions-card/index.types';
|
|
15
15
|
export * from '../components/fw-bar-chart/index.types';
|
|
16
16
|
export * from '../components/fw-sidebar-menu/index.types';
|
|
17
|
+
export * from '../components/fw-drawer/index.types';
|
package/types/icons/index.d.ts
CHANGED
|
@@ -32,4 +32,6 @@ import SolidCheckSvg from './solid-check.svg';
|
|
|
32
32
|
import SolidXMarkSvg from './solid-xmark.svg';
|
|
33
33
|
import ArrowSortSvg from './arrow-sort.svg';
|
|
34
34
|
import ArrowDownSvg from './arrow-down.svg';
|
|
35
|
-
|
|
35
|
+
import SearchSvg from './search.svg';
|
|
36
|
+
import XMarkSvg from './xmark.svg';
|
|
37
|
+
export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ChevronRightSvg, ChevronLeftSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg, BullseyeSvg, SolidCheckSvg, SolidXMarkSvg, ArrowSortSvg, ArrowDownSvg, SearchSvg, XMarkSvg };
|