edvoyui-component-library-test-flight 0.0.208 → 0.0.210
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/searchTagSelect/EUISearchTagSelect.d.ts +4 -0
- package/dist/components/searchTagSelect/EUISearchTagSelect.vue +4 -0
- 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 +2032 -2026
- package/dist/edvoy-ui.umd.js +8 -8
- package/package.json +1 -1
|
@@ -157,17 +157,21 @@ declare function __VLS_template(): {
|
|
|
157
157
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
158
158
|
declare const __VLS_component: import('../../../node_modules/vue').DefineComponent<Props, {}, {}, {}, {}, import('../../../node_modules/vue').ComponentOptionsMixin, import('../../../node_modules/vue').ComponentOptionsMixin, {
|
|
159
159
|
blur: () => any;
|
|
160
|
+
close: () => any;
|
|
160
161
|
toggle: (value?: any) => any;
|
|
161
162
|
search: (value: string) => any;
|
|
162
163
|
"update:modelValue": (value: any) => any;
|
|
164
|
+
open: () => any;
|
|
163
165
|
"on-change": (value: any) => any;
|
|
164
166
|
create: (value: string) => any;
|
|
165
167
|
"on-deselect": (value: any) => any;
|
|
166
168
|
}, string, import('../../../node_modules/vue').PublicProps, Readonly<Props> & Readonly<{
|
|
167
169
|
onBlur?: (() => any) | undefined;
|
|
170
|
+
onClose?: (() => any) | undefined;
|
|
168
171
|
onToggle?: ((value?: any) => any) | undefined;
|
|
169
172
|
onSearch?: ((value: string) => any) | undefined;
|
|
170
173
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
174
|
+
onOpen?: (() => any) | undefined;
|
|
171
175
|
"onOn-change"?: ((value: any) => any) | undefined;
|
|
172
176
|
onCreate?: ((value: string) => any) | undefined;
|
|
173
177
|
"onOn-deselect"?: ((value: any) => any) | undefined;
|
|
@@ -326,6 +326,8 @@ const emit = defineEmits<{
|
|
|
326
326
|
"on-change": [value: any];
|
|
327
327
|
"on-deselect": [value: any];
|
|
328
328
|
toggle: [value?: any];
|
|
329
|
+
open: [];
|
|
330
|
+
close: [];
|
|
329
331
|
}>();
|
|
330
332
|
|
|
331
333
|
// Refs
|
|
@@ -542,6 +544,7 @@ const handleOpen = () => {
|
|
|
542
544
|
internalSearch.value = "";
|
|
543
545
|
}
|
|
544
546
|
showDropDown.value = true;
|
|
547
|
+
emit("open");
|
|
545
548
|
|
|
546
549
|
nextTick(() => {
|
|
547
550
|
setTimeout(() => {
|
|
@@ -562,6 +565,7 @@ const handleOpen = () => {
|
|
|
562
565
|
const handleClose = () => {
|
|
563
566
|
if (showDropDown.value) {
|
|
564
567
|
emit("blur");
|
|
568
|
+
emit("close");
|
|
565
569
|
}
|
|
566
570
|
showDropDown.value = false;
|
|
567
571
|
|
|
@@ -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
|
|