@coreui/vue-pro 4.10.4 → 5.0.0-alpha.1
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/README.md +1 -1
- package/dist/components/calendar/CCalendar.d.ts +58 -32
- package/dist/components/calendar/utils.d.ts +11 -4
- package/dist/components/close-button/CCloseButton.d.ts +9 -0
- package/dist/components/date-picker/CDatePicker.d.ts +89 -0
- package/dist/components/date-range-picker/CDateRangePicker.d.ts +89 -0
- package/dist/components/dropdown/CDropdown.d.ts +13 -28
- package/dist/components/dropdown/CDropdownToggle.d.ts +19 -9
- package/dist/components/dropdown/types.d.ts +15 -0
- package/dist/components/dropdown/utils.d.ts +6 -0
- package/dist/components/form/CFormInput.d.ts +6 -18
- package/dist/components/modal/CModal.d.ts +19 -0
- package/dist/components/multi-select/CMultiSelect.d.ts +1 -1
- package/dist/components/multi-select/CMultiSelectSelection.d.ts +1 -1
- package/dist/components/multi-select/types.d.ts +2 -2
- package/dist/components/multi-select/utils.d.ts +2 -2
- package/dist/components/offcanvas/COffcanvas.d.ts +9 -0
- package/dist/components/progress/CProgress.d.ts +102 -3
- package/dist/components/progress/CProgressStacked.d.ts +10 -0
- package/dist/components/progress/index.d.ts +2 -1
- package/dist/components/smart-table/CSmartTable.d.ts +0 -4
- package/dist/components/smart-table/CSmartTableBody.d.ts +12 -1
- package/dist/components/smart-table/types.d.ts +2 -2
- package/dist/components/smart-table/utils.d.ts +4 -2
- package/dist/composables/index.d.ts +3 -1
- package/dist/composables/useDebouncedCallback.d.ts +1 -0
- package/dist/index.es.js +1142 -2823
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1143 -2821
- package/dist/index.js.map +1 -1
- package/package.json +14 -14
- package/src/components/breadcrumb/CBreadcrumb.ts +1 -0
- package/src/components/button/CButton.ts +5 -5
- package/src/components/calendar/CCalendar.ts +444 -179
- package/src/components/calendar/utils.ts +93 -55
- package/src/components/carousel/CCarousel.ts +2 -5
- package/src/components/close-button/CCloseButton.ts +5 -0
- package/src/components/date-picker/CDatePicker.ts +43 -0
- package/src/components/date-range-picker/CDateRangePicker.ts +140 -126
- package/src/components/date-range-picker/utils.ts +2 -2
- package/src/components/dropdown/CDropdown.ts +23 -43
- package/src/components/dropdown/CDropdownMenu.ts +4 -19
- package/src/components/dropdown/CDropdownToggle.ts +44 -38
- package/src/components/dropdown/types.ts +11 -0
- package/src/components/dropdown/utils.ts +71 -0
- package/src/components/form/CFormCheck.ts +1 -1
- package/src/components/modal/CModal.ts +15 -1
- package/src/components/multi-select/CMultiSelect.ts +68 -62
- package/src/components/multi-select/CMultiSelectOptions.ts +1 -1
- package/src/components/multi-select/CMultiSelectSelection.ts +14 -13
- package/src/components/multi-select/types.ts +2 -2
- package/src/components/multi-select/utils.ts +5 -5
- package/src/components/navbar/CNavbar.ts +1 -1
- package/src/components/offcanvas/COffcanvas.ts +6 -0
- package/src/components/picker/CPicker.ts +7 -22
- package/src/components/progress/CProgress.ts +67 -9
- package/src/components/progress/CProgressBar.ts +4 -6
- package/src/components/progress/CProgressStacked.ts +19 -0
- package/src/components/progress/index.ts +3 -1
- package/src/components/sidebar/CSidebar.ts +1 -1
- package/src/components/smart-table/CSmartTable.ts +17 -12
- package/src/components/smart-table/CSmartTableBody.ts +30 -31
- package/src/components/smart-table/CSmartTableHead.ts +34 -11
- package/src/components/smart-table/types.ts +2 -2
- package/src/components/smart-table/utils.ts +41 -5
- package/src/components/time-picker/CTimePicker.ts +34 -63
- package/src/components/tooltip/CTooltip.ts +1 -1
- package/src/components/widgets/CWidgetStatsA.ts +1 -3
- package/src/components/widgets/CWidgetStatsB.ts +2 -4
- package/src/components/widgets/CWidgetStatsC.ts +2 -2
- package/src/components/widgets/CWidgetStatsD.ts +1 -1
- package/src/components/widgets/CWidgetStatsE.ts +1 -1
- package/src/components/widgets/CWidgetStatsF.ts +1 -1
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsE.spec.ts.snap +1 -1
- package/src/composables/index.ts +3 -1
- package/src/composables/useColorModes.ts +63 -0
- package/src/composables/useDebouncedCallback.ts +16 -0
- package/src/utils/getRTLPlacement.ts +1 -1
- package/src/utils/isObjectInArray.ts +1 -1
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import type { Triggers } from '../../types';
|
|
3
3
|
declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
4
|
-
/**
|
|
5
|
-
* Toggle the active state for the component.
|
|
6
|
-
*/
|
|
7
|
-
active: BooleanConstructor;
|
|
8
4
|
/**
|
|
9
5
|
* Sets the color context of the component to one of CoreUI’s themed colors.
|
|
10
6
|
*
|
|
@@ -36,6 +32,15 @@ declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
|
36
32
|
* Toggle the disabled state for the component.
|
|
37
33
|
*/
|
|
38
34
|
disabled: BooleanConstructor;
|
|
35
|
+
/**
|
|
36
|
+
* If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button.
|
|
37
|
+
*
|
|
38
|
+
* @since v5.0.0-alpha.1
|
|
39
|
+
*/
|
|
40
|
+
navLink: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
39
44
|
/**
|
|
40
45
|
* @values 'rounded', 'rounded-top', 'rounded-end', 'rounded-bottom', 'rounded-start', 'rounded-circle', 'rounded-pill', 'rounded-0', 'rounded-1', 'rounded-2', 'rounded-3'
|
|
41
46
|
*/
|
|
@@ -79,10 +84,6 @@ declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
|
79
84
|
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
80
85
|
[key: string]: any;
|
|
81
86
|
}>[] | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
82
|
-
/**
|
|
83
|
-
* Toggle the active state for the component.
|
|
84
|
-
*/
|
|
85
|
-
active: BooleanConstructor;
|
|
86
87
|
/**
|
|
87
88
|
* Sets the color context of the component to one of CoreUI’s themed colors.
|
|
88
89
|
*
|
|
@@ -114,6 +115,15 @@ declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
|
114
115
|
* Toggle the disabled state for the component.
|
|
115
116
|
*/
|
|
116
117
|
disabled: BooleanConstructor;
|
|
118
|
+
/**
|
|
119
|
+
* If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button.
|
|
120
|
+
*
|
|
121
|
+
* @since v5.0.0-alpha.1
|
|
122
|
+
*/
|
|
123
|
+
navLink: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
117
127
|
/**
|
|
118
128
|
* @values 'rounded', 'rounded-top', 'rounded-end', 'rounded-bottom', 'rounded-start', 'rounded-circle', 'rounded-pill', 'rounded-0', 'rounded-1', 'rounded-2', 'rounded-3'
|
|
119
129
|
*/
|
|
@@ -156,9 +166,9 @@ declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
|
156
166
|
split: boolean;
|
|
157
167
|
disabled: boolean;
|
|
158
168
|
component: string;
|
|
159
|
-
active: boolean;
|
|
160
169
|
trigger: Triggers;
|
|
161
170
|
caret: boolean;
|
|
162
171
|
custom: boolean;
|
|
172
|
+
navLink: boolean;
|
|
163
173
|
}, {}>;
|
|
164
174
|
export { CDropdownToggle };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Directions = 'start' | 'end';
|
|
2
|
+
export type Breakpoints = {
|
|
3
|
+
xs: Directions;
|
|
4
|
+
} | {
|
|
5
|
+
sm: Directions;
|
|
6
|
+
} | {
|
|
7
|
+
md: Directions;
|
|
8
|
+
} | {
|
|
9
|
+
lg: Directions;
|
|
10
|
+
} | {
|
|
11
|
+
xl: Directions;
|
|
12
|
+
} | {
|
|
13
|
+
xxl: Directions;
|
|
14
|
+
};
|
|
15
|
+
export type Alignments = Directions | Breakpoints;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Placement } from '@popperjs/core';
|
|
2
|
+
import type { Placements } from '../../types';
|
|
3
|
+
import type { Alignments } from './types';
|
|
4
|
+
export declare const getAlignmentClassNames: (alignment: object | string) => string[];
|
|
5
|
+
export declare const getNextActiveElement: (list: HTMLElement[], activeElement: HTMLElement, shouldGetNext: boolean, isCycleAllowed: boolean) => HTMLElement;
|
|
6
|
+
export declare const getPlacement: (placement: Placement, direction: string | undefined, alignment: Alignments | string | undefined, isRTL: boolean) => Placements;
|
|
@@ -47,12 +47,8 @@ export declare const File: {
|
|
|
47
47
|
};
|
|
48
48
|
fromEntries<T_13 = any>(entries: Iterable<readonly [PropertyKey, T_13]>): {
|
|
49
49
|
[k: string]: T_13;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
*/
|
|
53
|
-
fromEntries(entries: Iterable<readonly any[]>): any; /**
|
|
54
|
-
* Set component validation state to invalid.
|
|
55
|
-
*/
|
|
50
|
+
};
|
|
51
|
+
fromEntries(entries: Iterable<readonly any[]>): any;
|
|
56
52
|
} | {
|
|
57
53
|
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
|
|
58
54
|
prototype: File;
|
|
@@ -152,12 +148,8 @@ declare const CFormInput: import("vue").DefineComponent<{
|
|
|
152
148
|
};
|
|
153
149
|
fromEntries<T_13 = any>(entries: Iterable<readonly [PropertyKey, T_13]>): {
|
|
154
150
|
[k: string]: T_13;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
*/
|
|
158
|
-
fromEntries(entries: Iterable<readonly any[]>): any; /**
|
|
159
|
-
* Set component validation state to invalid.
|
|
160
|
-
*/
|
|
151
|
+
};
|
|
152
|
+
fromEntries(entries: Iterable<readonly any[]>): any;
|
|
161
153
|
} | {
|
|
162
154
|
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
|
|
163
155
|
prototype: File;
|
|
@@ -301,12 +293,8 @@ declare const CFormInput: import("vue").DefineComponent<{
|
|
|
301
293
|
};
|
|
302
294
|
fromEntries<T_13 = any>(entries: Iterable<readonly [PropertyKey, T_13]>): {
|
|
303
295
|
[k: string]: T_13;
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
*/
|
|
307
|
-
fromEntries(entries: Iterable<readonly any[]>): any; /**
|
|
308
|
-
* Set component validation state to invalid.
|
|
309
|
-
*/
|
|
296
|
+
};
|
|
297
|
+
fromEntries(entries: Iterable<readonly any[]>): any;
|
|
310
298
|
} | {
|
|
311
299
|
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
|
|
312
300
|
prototype: File;
|
|
@@ -23,6 +23,15 @@ declare const CModal: import("vue").DefineComponent<{
|
|
|
23
23
|
* A string of all className you want applied to the modal content component.
|
|
24
24
|
*/
|
|
25
25
|
contentClassName: StringConstructor;
|
|
26
|
+
/**
|
|
27
|
+
* Puts the focus on the modal when shown.
|
|
28
|
+
*
|
|
29
|
+
* @since v5.0.0-alpha.1
|
|
30
|
+
*/
|
|
31
|
+
focus: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
26
35
|
/**
|
|
27
36
|
* Set modal to covers the entire user viewport
|
|
28
37
|
*
|
|
@@ -96,6 +105,15 @@ declare const CModal: import("vue").DefineComponent<{
|
|
|
96
105
|
* A string of all className you want applied to the modal content component.
|
|
97
106
|
*/
|
|
98
107
|
contentClassName: StringConstructor;
|
|
108
|
+
/**
|
|
109
|
+
* Puts the focus on the modal when shown.
|
|
110
|
+
*
|
|
111
|
+
* @since v5.0.0-alpha.1
|
|
112
|
+
*/
|
|
113
|
+
focus: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
99
117
|
/**
|
|
100
118
|
* Set modal to covers the entire user viewport
|
|
101
119
|
*
|
|
@@ -149,6 +167,7 @@ declare const CModal: import("vue").DefineComponent<{
|
|
|
149
167
|
"onClose-prevented"?: ((...args: any[]) => any) | undefined;
|
|
150
168
|
}, {
|
|
151
169
|
transition: boolean;
|
|
170
|
+
focus: boolean;
|
|
152
171
|
visible: boolean;
|
|
153
172
|
alignment: string;
|
|
154
173
|
backdrop: string | boolean;
|
|
@@ -446,6 +446,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
446
446
|
visible: boolean;
|
|
447
447
|
search: string | boolean;
|
|
448
448
|
disabled: boolean;
|
|
449
|
+
selectionType: string;
|
|
449
450
|
required: boolean;
|
|
450
451
|
valid: boolean;
|
|
451
452
|
tooltipFeedback: boolean;
|
|
@@ -459,7 +460,6 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
459
460
|
optionsStyle: string;
|
|
460
461
|
searchNoResultsLabel: string;
|
|
461
462
|
virtualScroller: boolean;
|
|
462
|
-
selectionType: string;
|
|
463
463
|
selectionTypeCounterText: string;
|
|
464
464
|
allowCreateOptions: boolean;
|
|
465
465
|
clearSearchOnSelect: boolean;
|
|
@@ -45,9 +45,9 @@ declare const CMultiSelectSelection: import("vue").DefineComponent<{
|
|
|
45
45
|
}>> & {
|
|
46
46
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
47
47
|
}, {
|
|
48
|
+
selectionType: string;
|
|
48
49
|
selected: Option[];
|
|
49
50
|
multiple: boolean;
|
|
50
|
-
selectionType: string;
|
|
51
51
|
selectionTypeCounterText: string;
|
|
52
52
|
}, {}>;
|
|
53
53
|
export { CMultiSelectSelection };
|
|
@@ -2,7 +2,7 @@ export type Option = {
|
|
|
2
2
|
custom?: boolean;
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
selected?: boolean;
|
|
5
|
-
|
|
5
|
+
label: string;
|
|
6
6
|
value: number | string;
|
|
7
7
|
[key: string]: number | string | any;
|
|
8
8
|
};
|
|
@@ -13,7 +13,7 @@ export type OptionsGroup = {
|
|
|
13
13
|
};
|
|
14
14
|
export type SelectedOption = {
|
|
15
15
|
disabled?: boolean;
|
|
16
|
-
|
|
16
|
+
label: string;
|
|
17
17
|
value: number | string;
|
|
18
18
|
[key: string]: number | string | any;
|
|
19
19
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Option, OptionsGroup, SelectedOption } from './types';
|
|
2
|
-
export declare const createOption: (
|
|
2
|
+
export declare const createOption: (label: string, options: (Option | OptionsGroup)[]) => {
|
|
3
3
|
value: string;
|
|
4
|
-
|
|
4
|
+
label: string;
|
|
5
5
|
custom: boolean;
|
|
6
6
|
}[];
|
|
7
7
|
export declare const filterOptionsList: (search: string, _options: (Option | OptionsGroup)[]) => any[];
|
|
@@ -10,6 +10,10 @@ declare const COffcanvas: import("vue").DefineComponent<{
|
|
|
10
10
|
default: boolean;
|
|
11
11
|
validator: (value: boolean | string) => boolean;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Sets a darker color scheme.
|
|
15
|
+
*/
|
|
16
|
+
dark: BooleanConstructor;
|
|
13
17
|
/**
|
|
14
18
|
* Closes the offcanvas when escape key is pressed.
|
|
15
19
|
*/
|
|
@@ -65,6 +69,10 @@ declare const COffcanvas: import("vue").DefineComponent<{
|
|
|
65
69
|
default: boolean;
|
|
66
70
|
validator: (value: boolean | string) => boolean;
|
|
67
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* Sets a darker color scheme.
|
|
74
|
+
*/
|
|
75
|
+
dark: BooleanConstructor;
|
|
68
76
|
/**
|
|
69
77
|
* Closes the offcanvas when escape key is pressed.
|
|
70
78
|
*/
|
|
@@ -113,6 +121,7 @@ declare const COffcanvas: import("vue").DefineComponent<{
|
|
|
113
121
|
}, {
|
|
114
122
|
scroll: boolean;
|
|
115
123
|
visible: boolean;
|
|
124
|
+
dark: boolean;
|
|
116
125
|
backdrop: string | boolean;
|
|
117
126
|
keyboard: boolean;
|
|
118
127
|
responsive: string | boolean;
|
|
@@ -1,6 +1,105 @@
|
|
|
1
|
-
declare const CProgress: import("vue").DefineComponent<
|
|
1
|
+
declare const CProgress: import("vue").DefineComponent<{
|
|
2
|
+
/**
|
|
3
|
+
* Use to animate the stripes right to left via CSS3 animations.
|
|
4
|
+
*/
|
|
5
|
+
animated: BooleanConstructor;
|
|
6
|
+
/**
|
|
7
|
+
* Sets the color context of the component to one of CoreUI’s themed colors.
|
|
8
|
+
*
|
|
9
|
+
* @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
|
|
10
|
+
*/
|
|
11
|
+
color: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
validator: (value: string) => boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Sets the height of the component. If you set that value the inner `<CProgressBar>` will automatically resize accordingly.
|
|
17
|
+
*/
|
|
18
|
+
height: NumberConstructor;
|
|
19
|
+
/**
|
|
20
|
+
* A string of all className you want applied to the <CProgressBar/> component.
|
|
21
|
+
*
|
|
22
|
+
* @since 5.0.0-alpha.1
|
|
23
|
+
*/
|
|
24
|
+
progressBarClassName: StringConstructor;
|
|
25
|
+
/**
|
|
26
|
+
* Makes progress bar thinner.
|
|
27
|
+
*/
|
|
28
|
+
thin: BooleanConstructor;
|
|
29
|
+
/**
|
|
30
|
+
* The percent to progress the ProgressBar.
|
|
31
|
+
*/
|
|
32
|
+
value: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Set the progress bar variant to optional striped.
|
|
38
|
+
*
|
|
39
|
+
* @values 'striped'
|
|
40
|
+
*/
|
|
41
|
+
variant: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
validator: (value: string) => boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Change the default color to white.
|
|
47
|
+
*/
|
|
48
|
+
white: BooleanConstructor;
|
|
49
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
50
|
[key: string]: any;
|
|
3
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<
|
|
4
|
-
|
|
51
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
/**
|
|
53
|
+
* Use to animate the stripes right to left via CSS3 animations.
|
|
54
|
+
*/
|
|
55
|
+
animated: BooleanConstructor;
|
|
56
|
+
/**
|
|
57
|
+
* Sets the color context of the component to one of CoreUI’s themed colors.
|
|
58
|
+
*
|
|
59
|
+
* @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
|
|
60
|
+
*/
|
|
61
|
+
color: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
validator: (value: string) => boolean;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Sets the height of the component. If you set that value the inner `<CProgressBar>` will automatically resize accordingly.
|
|
67
|
+
*/
|
|
68
|
+
height: NumberConstructor;
|
|
69
|
+
/**
|
|
70
|
+
* A string of all className you want applied to the <CProgressBar/> component.
|
|
71
|
+
*
|
|
72
|
+
* @since 5.0.0-alpha.1
|
|
73
|
+
*/
|
|
74
|
+
progressBarClassName: StringConstructor;
|
|
75
|
+
/**
|
|
76
|
+
* Makes progress bar thinner.
|
|
77
|
+
*/
|
|
78
|
+
thin: BooleanConstructor;
|
|
79
|
+
/**
|
|
80
|
+
* The percent to progress the ProgressBar.
|
|
81
|
+
*/
|
|
82
|
+
value: {
|
|
83
|
+
type: NumberConstructor;
|
|
84
|
+
default: number;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Set the progress bar variant to optional striped.
|
|
88
|
+
*
|
|
89
|
+
* @values 'striped'
|
|
90
|
+
*/
|
|
91
|
+
variant: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
validator: (value: string) => boolean;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Change the default color to white.
|
|
97
|
+
*/
|
|
98
|
+
white: BooleanConstructor;
|
|
99
|
+
}>>, {
|
|
100
|
+
value: number;
|
|
101
|
+
white: boolean;
|
|
102
|
+
animated: boolean;
|
|
103
|
+
thin: boolean;
|
|
5
104
|
}, {}>;
|
|
6
105
|
export { CProgress };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const CProgressStacked: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
2
|
+
[x: string]: unknown;
|
|
3
|
+
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
|
6
|
+
[x: string]: unknown;
|
|
7
|
+
}>>>>, {
|
|
8
|
+
[x: number]: string;
|
|
9
|
+
} | {}, {}>;
|
|
10
|
+
export { CProgressStacked };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { CProgress } from './CProgress';
|
|
3
3
|
import { CProgressBar } from './CProgressBar';
|
|
4
|
+
import { CProgressStacked } from './CProgressStacked';
|
|
4
5
|
declare const CProgressPlugin: {
|
|
5
6
|
install: (app: App) => void;
|
|
6
7
|
};
|
|
7
|
-
export { CProgressPlugin, CProgress, CProgressBar };
|
|
8
|
+
export { CProgressPlugin, CProgress, CProgressBar, CProgressStacked };
|
|
@@ -119,8 +119,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
119
119
|
};
|
|
120
120
|
/**
|
|
121
121
|
* Adds select element over table, which is used for control items per page in pagination. If you want to customize this element, pass object with optional values:
|
|
122
|
-
* - label (String) - replaces default label text
|
|
123
|
-
* - values (Array) - custom array of pagination values
|
|
124
122
|
* - external (Boolean) - disables automatic 'itemsPerPage' change (use to change pages externaly by 'pagination-change' event).
|
|
125
123
|
*/
|
|
126
124
|
itemsPerPageSelect: {
|
|
@@ -347,8 +345,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
347
345
|
};
|
|
348
346
|
/**
|
|
349
347
|
* Adds select element over table, which is used for control items per page in pagination. If you want to customize this element, pass object with optional values:
|
|
350
|
-
* - label (String) - replaces default label text
|
|
351
|
-
* - values (Array) - custom array of pagination values
|
|
352
348
|
* - external (Boolean) - disables automatic 'itemsPerPage' change (use to change pages externaly by 'pagination-change' event).
|
|
353
349
|
*/
|
|
354
350
|
itemsPerPageSelect: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import type { Item } from './types';
|
|
2
|
+
import type { Column, Item } from './types';
|
|
3
3
|
declare const CSmartTableBody: import("vue").DefineComponent<{
|
|
4
4
|
clickableRows: BooleanConstructor;
|
|
5
5
|
columnNames: {
|
|
@@ -7,6 +7,11 @@ declare const CSmartTableBody: import("vue").DefineComponent<{
|
|
|
7
7
|
default: () => never[];
|
|
8
8
|
require: boolean;
|
|
9
9
|
};
|
|
10
|
+
columns: {
|
|
11
|
+
type: PropType<(string | Column)[]>;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
require: boolean;
|
|
14
|
+
};
|
|
10
15
|
currentItems: {
|
|
11
16
|
type: PropType<Item[]>;
|
|
12
17
|
default: () => never[];
|
|
@@ -29,6 +34,11 @@ declare const CSmartTableBody: import("vue").DefineComponent<{
|
|
|
29
34
|
default: () => never[];
|
|
30
35
|
require: boolean;
|
|
31
36
|
};
|
|
37
|
+
columns: {
|
|
38
|
+
type: PropType<(string | Column)[]>;
|
|
39
|
+
default: () => never[];
|
|
40
|
+
require: boolean;
|
|
41
|
+
};
|
|
32
42
|
currentItems: {
|
|
33
43
|
type: PropType<Item[]>;
|
|
34
44
|
default: () => never[];
|
|
@@ -46,6 +56,7 @@ declare const CSmartTableBody: import("vue").DefineComponent<{
|
|
|
46
56
|
onRowChecked?: ((...args: any[]) => any) | undefined;
|
|
47
57
|
onRowClick?: ((...args: any[]) => any) | undefined;
|
|
48
58
|
}, {
|
|
59
|
+
columns: (string | Column)[];
|
|
49
60
|
clickableRows: boolean;
|
|
50
61
|
columnNames: string[];
|
|
51
62
|
currentItems: Item[];
|
|
@@ -8,6 +8,8 @@ export type Column = {
|
|
|
8
8
|
sorter?: boolean;
|
|
9
9
|
_style?: any;
|
|
10
10
|
_props?: any;
|
|
11
|
+
_colStyle?: any;
|
|
12
|
+
_colProps?: any;
|
|
11
13
|
};
|
|
12
14
|
export type ColumnFilter = {
|
|
13
15
|
lazy?: boolean;
|
|
@@ -38,8 +40,6 @@ export type Item = {
|
|
|
38
40
|
};
|
|
39
41
|
export type ItemsPerPageSelect = {
|
|
40
42
|
external?: boolean;
|
|
41
|
-
label?: string;
|
|
42
|
-
values?: Array<number>;
|
|
43
43
|
};
|
|
44
44
|
export type Pagination = {
|
|
45
45
|
external?: boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { Column, ColumnFilter, ColumnFilterValue, Group, Item, Sorter, SorterValue, TableFilter } from './types';
|
|
2
2
|
export declare const filterColumns: (items: Item[], columnFilter: boolean | ColumnFilter | undefined, columnFilterState: ColumnFilterValue, itemsDataColumns: string[]) => Item[];
|
|
3
3
|
export declare const filterTable: (items: Item[], tableFilter: boolean | TableFilter | undefined, tableFilterState: string, itemsDataColumns: string[]) => Item[];
|
|
4
|
-
export declare const getClickedColumnName: (target: HTMLTextAreaElement, columnNames: string[]) => string;
|
|
4
|
+
export declare const getClickedColumnName: (target: HTMLTextAreaElement, columnNames: string[], selectable: boolean | undefined) => string;
|
|
5
5
|
export declare const getColumnKey: (column: Column | string) => string;
|
|
6
6
|
export declare const getColumnLabel: (column: Column | string) => string;
|
|
7
|
+
export declare const getColumnName: (column: string | Column) => string;
|
|
7
8
|
export declare const getColumnNames: (columns: (string | Column)[] | undefined, items: Item[]) => string[];
|
|
8
9
|
export declare const getColumns: (_columns: (Column | Group | string)[]) => (Column | string)[];
|
|
9
10
|
export declare const countColumns: (columns: Column[], counter?: number) => number;
|
|
@@ -19,7 +20,8 @@ export declare const getColumnGroups: (columns: (string | Column)[] | undefined)
|
|
|
19
20
|
export declare const getColumnNamesFromItems: (items: Item[]) => string[];
|
|
20
21
|
export declare const getColumnSorterState: (key: string, sorterState: SorterValue | undefined) => string | number;
|
|
21
22
|
export declare const getColumnValues: (items: Item[], key: string) => any[];
|
|
22
|
-
export declare const getTableDataCellProps: (item: Item, colName: string) =>
|
|
23
|
+
export declare const getTableDataCellProps: (column: Column | string, item: Item, colName: string) => {};
|
|
24
|
+
export declare const getTableDataCellStyles: (column: Column | string, item: Item, colName: string) => {};
|
|
23
25
|
export declare const getTableHeaderCellProps: (column: Column | string) => any;
|
|
24
26
|
export declare const getTableHeaderCellStyles: (column: Column | string, columnSorter: boolean | Sorter | undefined) => any;
|
|
25
27
|
export declare const isSortable: (i: number, columns: (string | Column)[] | undefined, columnSorter: Sorter | boolean | undefined, itemsDataColumns: string[], columnNames: string[]) => boolean | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDebouncedCallback: <F extends Function>(callback: F, delay: number) => void;
|