@coreui/vue-pro 4.8.0-next.0 → 4.8.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/README.md +1 -1
- package/dist/components/form/CFormCheck.d.ts +13 -0
- package/dist/components/form/CFormSwitch.d.ts +13 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/multi-select/CMultiSelect.d.ts +35 -44
- package/dist/components/multi-select/CMultiSelectNativeSelect.d.ts +1 -1
- package/dist/components/multi-select/CMultiSelectOptions.d.ts +13 -11
- package/dist/components/multi-select/CMultiSelectSelection.d.ts +1 -1
- package/dist/components/multi-select/types.d.ts +14 -0
- package/dist/components/multi-select/utils.d.ts +6 -0
- package/dist/components/smart-table/CSmartTable.d.ts +1 -1
- package/dist/components/smart-table/CSmartTableHead.d.ts +1 -1
- package/dist/components/virtual-scroller/CVirtualScroller.d.ts +23 -0
- package/dist/components/virtual-scroller/index.d.ts +6 -0
- package/dist/index.es.js +249 -135
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +249 -133
- package/dist/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -3
- package/package.json +1 -1
- package/src/components/carousel/CCarousel.ts +36 -34
- package/src/components/form/CFormCheck.ts +7 -0
- package/src/components/form/CFormSwitch.ts +7 -0
- package/src/components/index.ts +1 -0
- package/src/components/multi-select/CMultiSelect.ts +33 -89
- package/src/components/multi-select/CMultiSelectNativeSelect.ts +2 -1
- package/src/components/multi-select/CMultiSelectOptions.ts +31 -17
- package/src/components/multi-select/CMultiSelectSelection.ts +2 -1
- package/src/components/multi-select/types.ts +15 -0
- package/src/components/multi-select/utils.ts +92 -0
- package/src/components/virtual-scroller/CVirtualScroller.ts +109 -0
- package/src/components/virtual-scroller/index.ts +10 -0
- package/src/utils/index.ts +1 -3
- package/dist/components/accordion/CAccordionCollapse.d.ts +0 -22
- package/dist/components/multi-select/CMultiSelect copy.d.ts +0 -305
- package/dist/components/pagination/CSmartPagination.d.ts +0 -257
- package/dist/utils/calendar.d.ts +0 -23
- package/dist/utils/getNextSibling.d.ts +0 -2
- package/dist/utils/getPreviousSibling.d.ts +0 -2
- package/dist/utils/isObjectInArray.d.ts +0 -2
- package/dist/utils/isVisible.d.ts +0 -2
- package/dist/utils/time.d.ts +0 -21
- package/src/utils/getNextSibling.ts +0 -18
- package/src/utils/getPreviousSibling.ts +0 -18
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
declare const CSmartPagination: import("vue").DefineComponent<{
|
|
2
|
-
/**
|
|
3
|
-
* Horizontall align
|
|
4
|
-
*
|
|
5
|
-
* @default 'start'
|
|
6
|
-
*/
|
|
7
|
-
align: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
require: boolean;
|
|
11
|
-
validator: (value: string) => boolean;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Current page number
|
|
15
|
-
*
|
|
16
|
-
* @default 1
|
|
17
|
-
*/
|
|
18
|
-
activePage: {
|
|
19
|
-
type: NumberConstructor;
|
|
20
|
-
default: number;
|
|
21
|
-
require: boolean;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Show/hide arrows
|
|
25
|
-
*
|
|
26
|
-
* @default true
|
|
27
|
-
*/
|
|
28
|
-
arrows: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
require: boolean;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Show/hide dots
|
|
35
|
-
*
|
|
36
|
-
* @default true
|
|
37
|
-
*/
|
|
38
|
-
dots: {
|
|
39
|
-
type: BooleanConstructor;
|
|
40
|
-
default: boolean;
|
|
41
|
-
require: boolean;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Show double arrows buttons
|
|
45
|
-
*
|
|
46
|
-
* @default true
|
|
47
|
-
*/
|
|
48
|
-
doubleArrows: {
|
|
49
|
-
type: BooleanConstructor;
|
|
50
|
-
default: boolean;
|
|
51
|
-
require: boolean;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* The content of 'firstButton' button
|
|
55
|
-
*
|
|
56
|
-
* @default '«'
|
|
57
|
-
*/
|
|
58
|
-
firstButton: {
|
|
59
|
-
type: StringConstructor;
|
|
60
|
-
default: string;
|
|
61
|
-
require: boolean;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* The content of 'lastButton' button
|
|
65
|
-
*
|
|
66
|
-
* @default '»'
|
|
67
|
-
*/
|
|
68
|
-
lastButton: {
|
|
69
|
-
type: StringConstructor;
|
|
70
|
-
default: string;
|
|
71
|
-
require: boolean;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Maximum items number
|
|
75
|
-
*
|
|
76
|
-
* @default 5
|
|
77
|
-
*/
|
|
78
|
-
limit: {
|
|
79
|
-
type: NumberConstructor;
|
|
80
|
-
default: number;
|
|
81
|
-
require: boolean;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* The content of 'nextButton' button
|
|
85
|
-
*
|
|
86
|
-
* @default '›'
|
|
87
|
-
*/
|
|
88
|
-
nextButton: {
|
|
89
|
-
type: StringConstructor;
|
|
90
|
-
default: string;
|
|
91
|
-
require: boolean;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Number of pages
|
|
95
|
-
*/
|
|
96
|
-
pages: {
|
|
97
|
-
type: NumberConstructor;
|
|
98
|
-
default: number;
|
|
99
|
-
require: boolean;
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* The content of 'previousButton' button
|
|
103
|
-
*
|
|
104
|
-
* @default '‹'
|
|
105
|
-
*/
|
|
106
|
-
previousButton: {
|
|
107
|
-
type: StringConstructor;
|
|
108
|
-
default: string;
|
|
109
|
-
require: boolean;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Size of pagination, valid values: 'sm', 'lg'
|
|
113
|
-
*/
|
|
114
|
-
size: {
|
|
115
|
-
type: StringConstructor;
|
|
116
|
-
default: undefined;
|
|
117
|
-
required: false;
|
|
118
|
-
validator: (value: string) => boolean;
|
|
119
|
-
};
|
|
120
|
-
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
121
|
-
[key: string]: any;
|
|
122
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "activePageChange"[], "activePageChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
123
|
-
/**
|
|
124
|
-
* Horizontall align
|
|
125
|
-
*
|
|
126
|
-
* @default 'start'
|
|
127
|
-
*/
|
|
128
|
-
align: {
|
|
129
|
-
type: StringConstructor;
|
|
130
|
-
default: string;
|
|
131
|
-
require: boolean;
|
|
132
|
-
validator: (value: string) => boolean;
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* Current page number
|
|
136
|
-
*
|
|
137
|
-
* @default 1
|
|
138
|
-
*/
|
|
139
|
-
activePage: {
|
|
140
|
-
type: NumberConstructor;
|
|
141
|
-
default: number;
|
|
142
|
-
require: boolean;
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* Show/hide arrows
|
|
146
|
-
*
|
|
147
|
-
* @default true
|
|
148
|
-
*/
|
|
149
|
-
arrows: {
|
|
150
|
-
type: BooleanConstructor;
|
|
151
|
-
default: boolean;
|
|
152
|
-
require: boolean;
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* Show/hide dots
|
|
156
|
-
*
|
|
157
|
-
* @default true
|
|
158
|
-
*/
|
|
159
|
-
dots: {
|
|
160
|
-
type: BooleanConstructor;
|
|
161
|
-
default: boolean;
|
|
162
|
-
require: boolean;
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* Show double arrows buttons
|
|
166
|
-
*
|
|
167
|
-
* @default true
|
|
168
|
-
*/
|
|
169
|
-
doubleArrows: {
|
|
170
|
-
type: BooleanConstructor;
|
|
171
|
-
default: boolean;
|
|
172
|
-
require: boolean;
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* The content of 'firstButton' button
|
|
176
|
-
*
|
|
177
|
-
* @default '«'
|
|
178
|
-
*/
|
|
179
|
-
firstButton: {
|
|
180
|
-
type: StringConstructor;
|
|
181
|
-
default: string;
|
|
182
|
-
require: boolean;
|
|
183
|
-
};
|
|
184
|
-
/**
|
|
185
|
-
* The content of 'lastButton' button
|
|
186
|
-
*
|
|
187
|
-
* @default '»'
|
|
188
|
-
*/
|
|
189
|
-
lastButton: {
|
|
190
|
-
type: StringConstructor;
|
|
191
|
-
default: string;
|
|
192
|
-
require: boolean;
|
|
193
|
-
};
|
|
194
|
-
/**
|
|
195
|
-
* Maximum items number
|
|
196
|
-
*
|
|
197
|
-
* @default 5
|
|
198
|
-
*/
|
|
199
|
-
limit: {
|
|
200
|
-
type: NumberConstructor;
|
|
201
|
-
default: number;
|
|
202
|
-
require: boolean;
|
|
203
|
-
};
|
|
204
|
-
/**
|
|
205
|
-
* The content of 'nextButton' button
|
|
206
|
-
*
|
|
207
|
-
* @default '›'
|
|
208
|
-
*/
|
|
209
|
-
nextButton: {
|
|
210
|
-
type: StringConstructor;
|
|
211
|
-
default: string;
|
|
212
|
-
require: boolean;
|
|
213
|
-
};
|
|
214
|
-
/**
|
|
215
|
-
* Number of pages
|
|
216
|
-
*/
|
|
217
|
-
pages: {
|
|
218
|
-
type: NumberConstructor;
|
|
219
|
-
default: number;
|
|
220
|
-
require: boolean;
|
|
221
|
-
};
|
|
222
|
-
/**
|
|
223
|
-
* The content of 'previousButton' button
|
|
224
|
-
*
|
|
225
|
-
* @default '‹'
|
|
226
|
-
*/
|
|
227
|
-
previousButton: {
|
|
228
|
-
type: StringConstructor;
|
|
229
|
-
default: string;
|
|
230
|
-
require: boolean;
|
|
231
|
-
};
|
|
232
|
-
/**
|
|
233
|
-
* Size of pagination, valid values: 'sm', 'lg'
|
|
234
|
-
*/
|
|
235
|
-
size: {
|
|
236
|
-
type: StringConstructor;
|
|
237
|
-
default: undefined;
|
|
238
|
-
required: false;
|
|
239
|
-
validator: (value: string) => boolean;
|
|
240
|
-
};
|
|
241
|
-
}>> & {
|
|
242
|
-
onActivePageChange?: ((...args: any[]) => any) | undefined;
|
|
243
|
-
}, {
|
|
244
|
-
size: string;
|
|
245
|
-
align: string;
|
|
246
|
-
activePage: number;
|
|
247
|
-
arrows: boolean;
|
|
248
|
-
dots: boolean;
|
|
249
|
-
doubleArrows: boolean;
|
|
250
|
-
firstButton: string;
|
|
251
|
-
lastButton: string;
|
|
252
|
-
limit: number;
|
|
253
|
-
nextButton: string;
|
|
254
|
-
pages: number;
|
|
255
|
-
previousButton: string;
|
|
256
|
-
}>;
|
|
257
|
-
export { CSmartPagination };
|
package/dist/utils/calendar.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const convertToLocalDate: (d: Date, locale: string, options?: {}) => string;
|
|
2
|
-
export declare const convertToLocalTime: (d: Date, locale: string, options?: {}) => string;
|
|
3
|
-
export declare const createGroupsInArray: (arr: any[], numberOfGroups: number) => any[][];
|
|
4
|
-
export declare const getCurrentYear: () => number;
|
|
5
|
-
export declare const getCurrentMonth: () => number;
|
|
6
|
-
export declare const getLocalDateFromString: (string: string, locale: string, time?: boolean) => Date | undefined;
|
|
7
|
-
export declare const getMonthName: (month: number, locale: string) => string;
|
|
8
|
-
export declare const getMonthsNames: (locale: string) => string[];
|
|
9
|
-
export declare const getYears: (year: number) => number[];
|
|
10
|
-
export declare const getMonthDetails: (year: number, month: number, firstDayOfWeek: number) => {
|
|
11
|
-
date: Date;
|
|
12
|
-
month: string;
|
|
13
|
-
}[][];
|
|
14
|
-
export declare const isDisableDateInRange: (startDate?: Date | null, endDate?: Date | null, dates?: Date[] | Date[][] | (Date | Date[])[]) => boolean;
|
|
15
|
-
export declare const isDateDisabled: (date: Date, min?: Date | null, max?: Date | null, dates?: Date[] | Date[][] | (Date | Date[])[]) => boolean | undefined;
|
|
16
|
-
export declare const isDateInRange: (date: Date, start: Date | null, end: Date | null) => boolean | null;
|
|
17
|
-
export declare const isDateSelected: (date: Date, start: Date | null, end: Date | null) => boolean | null;
|
|
18
|
-
export declare const isEndDate: (date: Date, start: Date | null, end: Date | null) => boolean | null;
|
|
19
|
-
export declare const isLastDayOfMonth: (date: Date) => boolean;
|
|
20
|
-
export declare const isSameDateAs: (date: Date | null, date2: Date | null) => boolean;
|
|
21
|
-
export declare const isStartDate: (date: Date, start: Date | null, end: Date | null) => boolean | null;
|
|
22
|
-
export declare const isToday: (date: Date) => boolean;
|
|
23
|
-
export declare const isValidDate: (date: string) => number | false;
|
package/dist/utils/time.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const convert12hTo24h: (abbr: 'am' | 'pm', hour: number) => number;
|
|
2
|
-
export declare const convert24hTo12h: (hour: number) => number;
|
|
3
|
-
export declare const convertTimeToDate: (time: Date | string | null | undefined) => Date | null;
|
|
4
|
-
export declare const getAmPm: (date: Date, locale: string) => "am" | "pm";
|
|
5
|
-
export declare const getListOfHours: (locale: string, ampm?: 'auto' | boolean) => {
|
|
6
|
-
value: number;
|
|
7
|
-
label: string;
|
|
8
|
-
}[];
|
|
9
|
-
export declare const getListOfMinutes: (locale: string, valueAsString?: boolean) => {
|
|
10
|
-
value: string | number;
|
|
11
|
-
label: string;
|
|
12
|
-
}[];
|
|
13
|
-
export declare const getListOfSeconds: (locale: string, valueAsString?: boolean) => {
|
|
14
|
-
value: string | number;
|
|
15
|
-
label: string;
|
|
16
|
-
}[];
|
|
17
|
-
export declare const getSelectedHour: (date: Date | null, locale: string, ampm?: 'auto' | boolean) => number | "";
|
|
18
|
-
export declare const getSelectedMinutes: (date: Date | null) => number | "";
|
|
19
|
-
export declare const getSelectedSeconds: (date: Date | null) => number | "";
|
|
20
|
-
export declare const isAmPm: (locale: string) => boolean;
|
|
21
|
-
export declare const isValidTime: (time: string) => number | false;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const getNextSibling = (elem: HTMLElement, selector?: string) => {
|
|
2
|
-
// Get the next sibling element
|
|
3
|
-
let sibling = elem.nextElementSibling
|
|
4
|
-
|
|
5
|
-
// If there's no selector, return the first sibling
|
|
6
|
-
if (!selector) return sibling
|
|
7
|
-
|
|
8
|
-
// If the sibling matches our selector, use it
|
|
9
|
-
// If not, jump to the next sibling and continue the loop
|
|
10
|
-
while (sibling) {
|
|
11
|
-
if (sibling.matches(selector)) return sibling
|
|
12
|
-
sibling = sibling.nextElementSibling
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default getNextSibling
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const getPreviousSibling = (elem: HTMLElement, selector?: string) => {
|
|
2
|
-
// Get the next sibling element
|
|
3
|
-
let sibling = elem.previousElementSibling
|
|
4
|
-
|
|
5
|
-
// If there's no selector, return the first sibling
|
|
6
|
-
if (!selector) return sibling
|
|
7
|
-
|
|
8
|
-
// If the sibling matches our selector, use it
|
|
9
|
-
// If not, jump to the next sibling and continue the loop
|
|
10
|
-
while (sibling) {
|
|
11
|
-
if (sibling.matches(selector)) return sibling
|
|
12
|
-
sibling = sibling.previousElementSibling
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default getPreviousSibling
|