edvoyui-component-library-test-flight 0.0.208 → 0.0.209
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/components/table/EUIDashboardTable.d.ts +10 -2
- package/dist/components/table/EUIDashboardTable.vue +27 -17
- package/dist/components/table/EUITable.vue +7 -7
- package/dist/components/table/UTable.vue +7 -7
- package/dist/edvoy-ui.cjs.js +6 -6
- package/dist/edvoy-ui.css +1 -1
- package/dist/edvoy-ui.es.js +2029 -2023
- package/dist/edvoy-ui.umd.js +8 -8
- package/package.json +1 -1
|
@@ -26,8 +26,16 @@ declare function __VLS_template(): {
|
|
|
26
26
|
rowIndex: number;
|
|
27
27
|
}): any;
|
|
28
28
|
'no-records'?(_: {}): any;
|
|
29
|
-
tableCount?(_: {
|
|
30
|
-
|
|
29
|
+
tableCount?(_: {
|
|
30
|
+
currentPage: number;
|
|
31
|
+
from: number;
|
|
32
|
+
to: number;
|
|
33
|
+
}): any;
|
|
34
|
+
tablepagination?(_: {
|
|
35
|
+
activePage: number;
|
|
36
|
+
pageLimint: number;
|
|
37
|
+
totalCount: number;
|
|
38
|
+
}): any;
|
|
31
39
|
};
|
|
32
40
|
refs: {
|
|
33
41
|
tableContainer: HTMLDivElement;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<Transition name="fade"
|
|
4
|
-
<
|
|
2
|
+
<div class="relative">
|
|
3
|
+
<Transition name="fade">
|
|
4
|
+
<div v-if="loading" class="absolute inset-0 z-50 pointer-events-none">
|
|
5
5
|
<slot name="loader" :loading="loading" :height="tableHeight">
|
|
6
6
|
<div
|
|
7
7
|
:class="[
|
|
8
|
-
'overflow-hidden relative
|
|
8
|
+
'overflow-hidden relative isolate bg-white/60 backdrop-blur transition-colors duration-150 ease-in-out rounded-xl',
|
|
9
9
|
tableHeight
|
|
10
10
|
? tableHeight
|
|
11
11
|
: 'h-[calc(100svh-9rem)] max-h-[calc(100svh-9rem)]',
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
20
|
</slot>
|
|
21
|
-
</
|
|
21
|
+
</div>
|
|
22
|
+
</Transition>
|
|
22
23
|
|
|
23
|
-
<div
|
|
24
|
+
<div class="relative w-full mx-auto overflow-hidden">
|
|
24
25
|
<div
|
|
25
26
|
id="dashboard-table"
|
|
26
27
|
:class="[
|
|
@@ -154,7 +155,12 @@
|
|
|
154
155
|
<div
|
|
155
156
|
class="sticky bottom-0 left-0 z-50 flex items-center justify-between px-2 py-2 bg-gray-100"
|
|
156
157
|
>
|
|
157
|
-
<slot
|
|
158
|
+
<slot
|
|
159
|
+
name="tableCount"
|
|
160
|
+
:currentPage="newCurrentPage"
|
|
161
|
+
:from="newCurrentPage * limit + 1"
|
|
162
|
+
:to="(newCurrentPage + 1) * limit"
|
|
163
|
+
>
|
|
158
164
|
<div class="inline-flex items-center gap-x-10">
|
|
159
165
|
<div class="text-sm font-normal text-gray-900">
|
|
160
166
|
{{ newCurrentPage * limit + 1 }} -
|
|
@@ -173,7 +179,12 @@
|
|
|
173
179
|
</div>
|
|
174
180
|
</slot>
|
|
175
181
|
<template v-if="paginated">
|
|
176
|
-
<slot
|
|
182
|
+
<slot
|
|
183
|
+
name="tablepagination"
|
|
184
|
+
:activePage="newCurrentPage"
|
|
185
|
+
:pageLimint="limit"
|
|
186
|
+
:totalCount="total"
|
|
187
|
+
>
|
|
177
188
|
<EUIPagination
|
|
178
189
|
:activePage="newCurrentPage"
|
|
179
190
|
:pageLimit="limit"
|
|
@@ -184,7 +195,6 @@
|
|
|
184
195
|
</template>
|
|
185
196
|
</div>
|
|
186
197
|
</div>
|
|
187
|
-
</Transition>
|
|
188
198
|
</div>
|
|
189
199
|
</template>
|
|
190
200
|
|
|
@@ -280,9 +290,9 @@ const filteredItems = computed(() => {
|
|
|
280
290
|
props.some((prop) =>
|
|
281
291
|
defaultFilter(
|
|
282
292
|
getValueByPath(item, prop),
|
|
283
|
-
search.value.toString().toLowerCase()
|
|
284
|
-
)
|
|
285
|
-
)
|
|
293
|
+
search.value.toString().toLowerCase(),
|
|
294
|
+
),
|
|
295
|
+
),
|
|
286
296
|
);
|
|
287
297
|
}
|
|
288
298
|
return filteredItems;
|
|
@@ -314,7 +324,7 @@ const sortClass = computed(() => (header: any) => {
|
|
|
314
324
|
|
|
315
325
|
const isIndeterminate = computed(() => {
|
|
316
326
|
const validVisibleData = computedItems.value.filter((row) =>
|
|
317
|
-
isRowCheckable.value(row)
|
|
327
|
+
isRowCheckable.value(row),
|
|
318
328
|
);
|
|
319
329
|
return (
|
|
320
330
|
newCheckedRows.value.length > 0 &&
|
|
@@ -331,7 +341,7 @@ const isAllChecked = computed(() => {
|
|
|
331
341
|
|
|
332
342
|
const isAllUncheckable = computed(() => {
|
|
333
343
|
const validVisibleData = computedItems.value?.filter((row) =>
|
|
334
|
-
isRowCheckable.value!(row)
|
|
344
|
+
isRowCheckable.value!(row),
|
|
335
345
|
);
|
|
336
346
|
return validVisibleData.length === 0;
|
|
337
347
|
});
|
|
@@ -389,7 +399,7 @@ const checkAll = () => {
|
|
|
389
399
|
} else {
|
|
390
400
|
// Check all rows
|
|
391
401
|
const rowsToCheck = computedItems.value.filter(
|
|
392
|
-
(row) => !newCheckedRows.value.includes(row)
|
|
402
|
+
(row) => !newCheckedRows.value.includes(row),
|
|
393
403
|
);
|
|
394
404
|
newCheckedRows.value.push(...rowsToCheck);
|
|
395
405
|
}
|
|
@@ -417,7 +427,7 @@ watch(
|
|
|
417
427
|
(newVal) => {
|
|
418
428
|
newCurrentPage.value = newVal;
|
|
419
429
|
},
|
|
420
|
-
{ immediate: true }
|
|
430
|
+
{ immediate: true },
|
|
421
431
|
);
|
|
422
432
|
|
|
423
433
|
watch(
|
|
@@ -427,7 +437,7 @@ watch(
|
|
|
427
437
|
},
|
|
428
438
|
{
|
|
429
439
|
immediate: true,
|
|
430
|
-
}
|
|
440
|
+
},
|
|
431
441
|
);
|
|
432
442
|
|
|
433
443
|
// table scroll to add class
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<Transition name="fade"
|
|
4
|
-
<
|
|
2
|
+
<div class="relative">
|
|
3
|
+
<Transition name="fade">
|
|
4
|
+
<div v-if="loading" class="absolute inset-0 z-50 pointer-events-none">
|
|
5
5
|
<slot name="loader" :loading="loading" :height="tableHeight">
|
|
6
6
|
<div
|
|
7
7
|
:class="[
|
|
8
|
-
'overflow-hidden relative
|
|
8
|
+
'overflow-hidden relative isolate bg-white/60 backdrop-blur transition-colors duration-150 ease-in-out rounded-xl',
|
|
9
9
|
tableHeight
|
|
10
10
|
? tableHeight
|
|
11
11
|
: 'h-[calc(100svh-9rem)] max-h-[calc(100svh-9rem)]',
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
20
|
</slot>
|
|
21
|
-
</
|
|
21
|
+
</div>
|
|
22
|
+
</Transition>
|
|
22
23
|
|
|
23
|
-
<div
|
|
24
|
+
<div class="relative w-full mx-auto overflow-hidden">
|
|
24
25
|
<div
|
|
25
26
|
id="student-table"
|
|
26
27
|
:class="[
|
|
@@ -231,7 +232,6 @@
|
|
|
231
232
|
</template>
|
|
232
233
|
</div>
|
|
233
234
|
</div>
|
|
234
|
-
</Transition>
|
|
235
235
|
</div>
|
|
236
236
|
</template>
|
|
237
237
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<Transition name="fade"
|
|
4
|
-
<
|
|
2
|
+
<div class="relative">
|
|
3
|
+
<Transition name="fade">
|
|
4
|
+
<div v-if="loading" class="absolute inset-0 z-50 pointer-events-none">
|
|
5
5
|
<slot name="loader" :loading="loading" :height="tableHeight">
|
|
6
6
|
<div
|
|
7
7
|
:class="[
|
|
8
|
-
'overflow-hidden relative
|
|
8
|
+
'overflow-hidden relative isolate bg-white/60 backdrop-blur transition-colors duration-150 ease-in-out rounded-xl',
|
|
9
9
|
tableHeight
|
|
10
10
|
? tableHeight
|
|
11
11
|
: 'h-[calc(100svh-9rem)] max-h-[calc(100svh-9rem)]',
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
20
|
</slot>
|
|
21
|
-
</
|
|
22
|
-
|
|
21
|
+
</div>
|
|
22
|
+
</Transition>
|
|
23
|
+
<div class="relative max-w-full mx-auto overflow-hidden">
|
|
23
24
|
<div
|
|
24
25
|
:class="[
|
|
25
26
|
'ui-table scrollbar--auto',
|
|
@@ -304,7 +305,6 @@
|
|
|
304
305
|
</template>
|
|
305
306
|
</div>
|
|
306
307
|
</div>
|
|
307
|
-
</Transition>
|
|
308
308
|
</div>
|
|
309
309
|
</template>
|
|
310
310
|
|