edvoyui-component-library-test-flight 0.0.102 → 0.0.104
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/EUISelectSearch.vue.d.ts +4 -0
- package/dist/EUISelectSearch.vue.d.ts.map +1 -0
- package/dist/accordion/EUIAccordion.vue.d.ts +2 -2
- package/dist/accordion/EUIAccordion.vue.d.ts.map +1 -1
- package/dist/avatar/EUIAvatar.vue.d.ts +2 -2
- package/dist/avatar/EUIAvatar.vue.d.ts.map +1 -1
- package/dist/button/EUIButton.vue.d.ts +5 -0
- package/dist/button/EUIButton.vue.d.ts.map +1 -0
- package/dist/checkbox/EUICheckbox.vue.d.ts +3 -3
- package/dist/checkbox/EUICheckbox.vue.d.ts.map +1 -1
- package/dist/datepicker/EUIDatepicker.vue.d.ts +3 -3
- package/dist/datepicker/EUIDatepicker.vue.d.ts.map +1 -1
- package/dist/dropdown/EUIMultiDropdown.vue.d.ts +2 -2
- package/dist/dropdown/EUIMultiDropdown.vue.d.ts.map +1 -1
- package/dist/errorMessage/EUIErrorMessage.vue.d.ts +2 -2
- package/dist/errorMessage/EUIErrorMessage.vue.d.ts.map +1 -1
- package/dist/input/EUIInput.vue.d.ts +2 -2
- package/dist/input/EUIInput.vue.d.ts.map +1 -1
- package/dist/library-vue-ts.cjs.js +24 -70
- package/dist/library-vue-ts.css +1 -1
- package/dist/library-vue-ts.es.js +10257 -13856
- package/dist/library-vue-ts.umd.js +23 -69
- package/dist/loader/EUICircleLoader.vue.d.ts +1 -1
- package/dist/loader/EUICircleLoader.vue.d.ts.map +1 -1
- package/dist/loader/EUICubeLoader.vue.d.ts +1 -1
- package/dist/loader/EUICubeLoader.vue.d.ts.map +1 -1
- package/dist/loader/EUILoader.vue.d.ts +2 -2
- package/dist/loader/EUILoader.vue.d.ts.map +1 -1
- package/dist/loader/EUISquareLoader.vue.d.ts +1 -1
- package/dist/loader/EUISquareLoader.vue.d.ts.map +1 -1
- package/dist/modal/EUIModal.vue.d.ts +2 -2
- package/dist/modal/EUIModal.vue.d.ts.map +1 -1
- package/dist/pillSelect/EUIPillSelect.vue.d.ts +2 -2
- package/dist/pillSelect/EUIPillSelect.vue.d.ts.map +1 -1
- package/dist/popover/EUIPopover.vue.d.ts +2 -2
- package/dist/popover/EUIPopover.vue.d.ts.map +1 -1
- package/dist/radio/EUIRadio.vue.d.ts +2 -2
- package/dist/radio/EUIRadio.vue.d.ts.map +1 -1
- package/dist/searchInput/EUISearch.vue.d.ts +2 -2
- package/dist/searchInput/EUISearch.vue.d.ts.map +1 -1
- package/dist/searchexpand/EUISearchExpand.vue.d.ts +2 -2
- package/dist/searchexpand/EUISearchExpand.vue.d.ts.map +1 -1
- package/dist/searchexpand/EUISearchToggle.vue.d.ts +2 -2
- package/dist/searchexpand/EUISearchToggle.vue.d.ts.map +1 -1
- package/dist/select/EUISelect.vue.d.ts +3 -3
- package/dist/select/EUISelect.vue.d.ts.map +1 -1
- package/dist/slideover/EUISlideover.vue.d.ts +2 -2
- package/dist/slideover/EUISlideover.vue.d.ts.map +1 -1
- package/dist/stepperTimeline/EUIStepperHorizontal.vue.d.ts +2 -2
- package/dist/stepperTimeline/EUIStepperHorizontal.vue.d.ts.map +1 -1
- package/dist/stepperTimeline/EUIStepperTimeline.vue.d.ts +2 -2
- package/dist/stepperTimeline/EUIStepperTimeline.vue.d.ts.map +1 -1
- package/dist/stepperTimeline/EUIStepperVertical.vue.d.ts +2 -2
- package/dist/stepperTimeline/EUIStepperVertical.vue.d.ts.map +1 -1
- package/dist/table/EUIDashboardTable.vue.d.ts +2 -2
- package/dist/table/EUIDashboardTable.vue.d.ts.map +1 -1
- package/dist/table/EUIPageLimit.vue.d.ts +2 -2
- package/dist/table/EUIPageLimit.vue.d.ts.map +1 -1
- package/dist/table/EUIPagination.vue.d.ts +2 -2
- package/dist/table/EUIPagination.vue.d.ts.map +1 -1
- package/dist/table/EUIStudentPagination.vue.d.ts +2 -2
- package/dist/table/EUIStudentPagination.vue.d.ts.map +1 -1
- package/dist/table/EUITable.vue.d.ts +2 -2
- package/dist/table/EUITable.vue.d.ts.map +1 -1
- package/dist/table/EUITableCheckbox.vue.d.ts +3 -3
- package/dist/table/EUITableCheckbox.vue.d.ts.map +1 -1
- package/dist/table/GrowthTable.vue.d.ts +2 -2
- package/dist/table/GrowthTable.vue.d.ts.map +1 -1
- package/dist/table/UCheckbox.vue.d.ts +2 -2
- package/dist/table/UCheckbox.vue.d.ts.map +1 -1
- package/dist/table/UTable.vue.d.ts +2 -2
- package/dist/table/UTable.vue.d.ts.map +1 -1
- package/dist/tabs/EUITabs.vue.d.ts +2 -2
- package/dist/tabs/EUITabs.vue.d.ts.map +1 -1
- package/dist/tag/EUITag.vue.d.ts +2 -2
- package/dist/tag/EUITag.vue.d.ts.map +1 -1
- package/dist/telephone/EUITelephone.vue.d.ts +3 -3
- package/dist/telephone/EUITelephone.vue.d.ts.map +1 -1
- package/dist/textArea/EUITextArea.vue.d.ts +2 -2
- package/dist/textArea/EUITextArea.vue.d.ts.map +1 -1
- package/dist/timeLine/EUITimeLine.vue.d.ts +2 -2
- package/dist/timeLine/EUITimeLine.vue.d.ts.map +1 -1
- package/dist/timeLine/EUITimeLineItem.vue.d.ts +2 -2
- package/dist/timeLine/EUITimeLineItem.vue.d.ts.map +1 -1
- package/dist/toggle/EUIToggle.vue.d.ts +2 -2
- package/dist/toggle/EUIToggle.vue.d.ts.map +1 -1
- package/dist/tooltip/EUITooltip.vue.d.ts +2 -2
- package/dist/tooltip/EUITooltip.vue.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/HelloWorld.vue +0 -16
- package/src/components/searchexpand/EUISearchExpand.vue +8 -47
- package/src/components/select/EUISelect.vue +19 -54
- package/src/components/table/EUITable.stories.ts +109 -4
- package/src/components/table/EUITable.vue +3 -3
- package/src/components/table/UCheckbox.vue +14 -8
- package/src/components/table/UTable.vue +1 -1
- package/src/style.scss +1 -1
- package/dist/EUIButton.vue.d.ts +0 -5
- package/dist/EUIButton.vue.d.ts.map +0 -1
- package/dist/selectSearch/EUISelectSearch.vue.d.ts +0 -4
- package/dist/selectSearch/EUISelectSearch.vue.d.ts.map +0 -1
- /package/src/components/checkbox/{EUIcheckbox.stories.ts → EUICheckbox.stories.ts} +0 -0
- /package/src/components/modal/{EUImodal.stories.ts → EUIModal.stories.ts} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
|
|
2
3
|
<div class="relative rounded-full size-10">
|
|
3
4
|
<div class="absolute top-0 right-0">
|
|
4
5
|
<div
|
|
@@ -18,37 +19,11 @@
|
|
|
18
19
|
<SearchBigZoomIn
|
|
19
20
|
class="absolute text-current size-6 top-2 left-2"
|
|
20
21
|
/>
|
|
21
|
-
|
|
22
|
-
<button
|
|
23
|
-
v-if="isExpanded"
|
|
24
|
-
:class="
|
|
25
|
-
inputValue ? ' absolute inset-y-0 right-3 ' : ' hidden '
|
|
26
|
-
"
|
|
27
|
-
@click="(searchQuery=''), emit('update:modelValue', '')"
|
|
28
|
-
>
|
|
29
|
-
<svg
|
|
30
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
31
|
-
fill="none"
|
|
32
|
-
viewBox="0 0 24 24"
|
|
33
|
-
stroke-width="1.5"
|
|
34
|
-
stroke="currentColor"
|
|
35
|
-
class="size-5"
|
|
36
|
-
>
|
|
37
|
-
<!-- <path stroke-linecap="round" stroke-linejoin="round" d="m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
|
|
38
|
-
-->
|
|
39
|
-
<path
|
|
40
|
-
stroke-linecap="round"
|
|
41
|
-
stroke-linejoin="round"
|
|
42
|
-
d="M6 18 18 6M6 6l12 12"
|
|
43
|
-
/>
|
|
44
|
-
</svg>
|
|
45
|
-
</button>
|
|
46
|
-
|
|
47
22
|
<input
|
|
48
23
|
v-if="isExpanded"
|
|
49
24
|
v-model="searchQuery"
|
|
50
25
|
ref="input"
|
|
51
|
-
|
|
26
|
+
type="search"
|
|
52
27
|
placeholder="Search here..."
|
|
53
28
|
class="h-10 text-sm font-medium text-gray-900 bg-transparent w-80 ps-10 pe-2 focus:outline-none"
|
|
54
29
|
autocomplete="off"
|
|
@@ -63,7 +38,7 @@
|
|
|
63
38
|
</template>
|
|
64
39
|
|
|
65
40
|
<script lang="ts" setup>
|
|
66
|
-
import {
|
|
41
|
+
import { onBeforeUnmount, onMounted, ref, toRefs, watch } from "vue";
|
|
67
42
|
import SearchBigZoomIn from "../../assets/svg/SearchBigZoomIn.vue";
|
|
68
43
|
|
|
69
44
|
const props = defineProps({
|
|
@@ -75,12 +50,6 @@ const props = defineProps({
|
|
|
75
50
|
type: Boolean,
|
|
76
51
|
default: false,
|
|
77
52
|
},
|
|
78
|
-
type: {
|
|
79
|
-
type: String as PropType<
|
|
80
|
-
"text" | "number" | "email" | "password" | "search"
|
|
81
|
-
>,
|
|
82
|
-
default: "text",
|
|
83
|
-
},
|
|
84
53
|
});
|
|
85
54
|
const { searchSync } = toRefs(props);
|
|
86
55
|
const emit = defineEmits(["update:modelValue"]);
|
|
@@ -95,10 +64,6 @@ function expandInput() {
|
|
|
95
64
|
input?.value?.focus();
|
|
96
65
|
}
|
|
97
66
|
|
|
98
|
-
const inputValue = computed(() => {
|
|
99
|
-
return props.modelValue === 0 ? true : !!props.modelValue;
|
|
100
|
-
});
|
|
101
|
-
|
|
102
67
|
function closeInput() {
|
|
103
68
|
if (!searchQuery.value) {
|
|
104
69
|
isExpanded.value = false;
|
|
@@ -114,15 +79,11 @@ function handleOutsideClick(event: MouseEvent) {
|
|
|
114
79
|
}
|
|
115
80
|
}
|
|
116
81
|
|
|
117
|
-
watch(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{ immediate: true, deep: true }
|
|
125
|
-
);
|
|
82
|
+
watch(searchSync, (newVal) => {
|
|
83
|
+
if (!newVal) {
|
|
84
|
+
closeInput();
|
|
85
|
+
}
|
|
86
|
+
}, {immediate: true, deep:true});
|
|
126
87
|
|
|
127
88
|
onMounted(() => {
|
|
128
89
|
document.addEventListener("click", handleOutsideClick);
|
|
@@ -45,11 +45,7 @@
|
|
|
45
45
|
@open="open"
|
|
46
46
|
>
|
|
47
47
|
<!-- :clearable="isUseCustomSelect ? clearable : undefined" -->
|
|
48
|
-
|
|
49
|
-
<template v-if="$slots.header" #header>
|
|
50
|
-
<slot name="header"></slot>
|
|
51
|
-
</template>
|
|
52
|
-
<template v-if="inputFilled && !$slots.header" #header>
|
|
48
|
+
<template v-if="inputFilled" #header>
|
|
53
49
|
<div
|
|
54
50
|
:class="[
|
|
55
51
|
inputValue
|
|
@@ -63,14 +59,7 @@
|
|
|
63
59
|
{{ startCaseText(label) || "Select" }}
|
|
64
60
|
</div>
|
|
65
61
|
</template>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
<!-- Allow parent to override selected-option slot -->
|
|
69
|
-
<template v-if="$slots['selected-option']" #selected-option="slotProps">
|
|
70
|
-
<slot name="selected-option" v-bind="slotProps as Record<string, any>"></slot>
|
|
71
|
-
</template>
|
|
72
|
-
|
|
73
|
-
<template v-if="!$slots['selected-option']" #selected-option="item">
|
|
62
|
+
<template #selected-option="item">
|
|
74
63
|
<div
|
|
75
64
|
:class="
|
|
76
65
|
isUseCustomSelect
|
|
@@ -88,17 +77,10 @@
|
|
|
88
77
|
"
|
|
89
78
|
:alt="item[fieldName]"
|
|
90
79
|
/>
|
|
91
|
-
{{
|
|
92
|
-
isStartCaseText ? startCaseText(item[fieldName]) : item[fieldName]
|
|
93
|
-
}}
|
|
80
|
+
{{ isStartCaseText ? startCaseText(item[fieldName]) : item[fieldName] }}
|
|
94
81
|
</div>
|
|
95
82
|
</template>
|
|
96
|
-
|
|
97
|
-
<!-- Allow parent to override option slot -->
|
|
98
|
-
<template v-if="$slots.option" #option="option">
|
|
99
|
-
<slot name="option" v-bind="option as Record<string, any>"></slot> <!-- Passing the 'option' data -->
|
|
100
|
-
</template>
|
|
101
|
-
<template v-else #option="item">
|
|
83
|
+
<template #option="item">
|
|
102
84
|
<div class="flex items-center">
|
|
103
85
|
<img
|
|
104
86
|
v-if="(item as any).iconlink"
|
|
@@ -107,30 +89,17 @@
|
|
|
107
89
|
:alt="item[fieldName]"
|
|
108
90
|
/>
|
|
109
91
|
|
|
110
|
-
{{
|
|
111
|
-
isStartCaseText ? startCaseText(item[fieldName]) : item[fieldName]
|
|
112
|
-
}}
|
|
92
|
+
{{ isStartCaseText ? startCaseText(item[fieldName]) : item[fieldName] }}
|
|
113
93
|
</div>
|
|
114
94
|
</template>
|
|
115
|
-
|
|
116
|
-
<!-- Allow parent to override spinner slot -->
|
|
117
|
-
<template v-if="$slots.spinner" #spinner="{ loading: _loading }">
|
|
118
|
-
<slot name="spinner" :loading="_loading || loading"></slot>
|
|
119
|
-
</template>
|
|
120
|
-
<template v-else #spinner="{ loading: _loading }">
|
|
95
|
+
<template #spinner="{ loading: _loading }">
|
|
121
96
|
<div
|
|
122
97
|
v-if="loading || _loading"
|
|
123
98
|
style="border-left-color: rgba(107, 30, 190, 0.71)"
|
|
124
99
|
class="vs__spinner"
|
|
125
100
|
/>
|
|
126
101
|
</template>
|
|
127
|
-
|
|
128
|
-
<!-- Allow parent to override list-header slot -->
|
|
129
|
-
<template v-if="$slots['list-header']" #list-header>
|
|
130
|
-
<slot name="list-header"></slot>
|
|
131
|
-
</template>
|
|
132
|
-
|
|
133
|
-
<template v-else-if="isSelectAll" #list-header>
|
|
102
|
+
<template v-if="isSelectAll" #list-header>
|
|
134
103
|
<div v-if="items.length !== selected?.length">
|
|
135
104
|
<button
|
|
136
105
|
class="w-full px-6 py-2 text-sm font-medium text-gray-600 transition duration-75 hover:font-bold hover:text-gray-900 text-start"
|
|
@@ -140,13 +109,7 @@
|
|
|
140
109
|
</button>
|
|
141
110
|
</div>
|
|
142
111
|
</template>
|
|
143
|
-
|
|
144
|
-
<!-- Allow parent to override open-indicator slot -->
|
|
145
|
-
<template v-if="$slots['open-indicator']" #open-indicator="attributes">
|
|
146
|
-
<slot name="open-indicator" v-bind="attributes as Record<string, any>"></slot>
|
|
147
|
-
</template>
|
|
148
|
-
|
|
149
|
-
<template v-else #open-indicator="{ attributes }">
|
|
112
|
+
<template #open-indicator="{ attributes }">
|
|
150
113
|
<span v-bind="attributes as Record<string, any>"
|
|
151
114
|
><ChevronBigDown class="text-current size-6"
|
|
152
115
|
/></span>
|
|
@@ -317,10 +280,10 @@ const props = defineProps({
|
|
|
317
280
|
type: Boolean,
|
|
318
281
|
default: false,
|
|
319
282
|
},
|
|
320
|
-
fieldName:
|
|
283
|
+
fieldName:{
|
|
321
284
|
type: String,
|
|
322
|
-
default:
|
|
323
|
-
}
|
|
285
|
+
default: 'name',
|
|
286
|
+
}
|
|
324
287
|
});
|
|
325
288
|
|
|
326
289
|
const {
|
|
@@ -335,7 +298,7 @@ const {
|
|
|
335
298
|
isStartCaseText,
|
|
336
299
|
isSelectAll,
|
|
337
300
|
required,
|
|
338
|
-
fieldName
|
|
301
|
+
fieldName
|
|
339
302
|
} = toRefs(props);
|
|
340
303
|
const emit = defineEmits([
|
|
341
304
|
"update:modelValue",
|
|
@@ -344,8 +307,7 @@ const emit = defineEmits([
|
|
|
344
307
|
"deselected",
|
|
345
308
|
"search",
|
|
346
309
|
"tag",
|
|
347
|
-
"selectedOption",
|
|
348
|
-
"open",
|
|
310
|
+
"selectedOption",'open'
|
|
349
311
|
]);
|
|
350
312
|
|
|
351
313
|
const selectAll = (e: Event) => {
|
|
@@ -548,9 +510,12 @@ const selectedLimit = () => {
|
|
|
548
510
|
}
|
|
549
511
|
};
|
|
550
512
|
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
513
|
+
|
|
514
|
+
const open=()=>{
|
|
515
|
+
emit('open')
|
|
516
|
+
|
|
517
|
+
}
|
|
518
|
+
|
|
554
519
|
</script>
|
|
555
520
|
<style lang="scss">
|
|
556
521
|
.scrollbar {
|
|
@@ -6,8 +6,13 @@ import {
|
|
|
6
6
|
EUIStudentPagination,
|
|
7
7
|
EUIDashboardTable,
|
|
8
8
|
EUIPagination,
|
|
9
|
+
UTable,
|
|
10
|
+
UCheckbox,
|
|
11
|
+
GrowthTable,
|
|
9
12
|
} from "..";
|
|
10
13
|
import {
|
|
14
|
+
growthTableData,
|
|
15
|
+
growthTableHeaders,
|
|
11
16
|
studentData,
|
|
12
17
|
studentHeader,
|
|
13
18
|
tableData,
|
|
@@ -128,15 +133,15 @@ export const StudentTable: Story = {
|
|
|
128
133
|
},
|
|
129
134
|
render: (args) => ({
|
|
130
135
|
components: {
|
|
131
|
-
|
|
132
|
-
|
|
136
|
+
UTable,
|
|
137
|
+
UCheckbox,
|
|
133
138
|
EUIPageLimit,
|
|
134
139
|
EUIStudentPagination,
|
|
135
140
|
},
|
|
136
141
|
setup() {
|
|
137
142
|
return { args };
|
|
138
143
|
},
|
|
139
|
-
template: `<
|
|
144
|
+
template: `<UTable v-bind="args">
|
|
140
145
|
<template #item.firstName="{ row, rowIndex }">
|
|
141
146
|
<div class="space-y-0.5">
|
|
142
147
|
<div class="block text-sm font-medium leading-snug">
|
|
@@ -151,7 +156,7 @@ export const StudentTable: Story = {
|
|
|
151
156
|
{{ row?.activeUser?.user?.firstName }}
|
|
152
157
|
{{ row?.activeUser?.user?.lastName }}
|
|
153
158
|
</template>
|
|
154
|
-
</
|
|
159
|
+
</UTable>`,
|
|
155
160
|
}),
|
|
156
161
|
};
|
|
157
162
|
|
|
@@ -192,4 +197,104 @@ export const DashboardTable: Story = {
|
|
|
192
197
|
</template>
|
|
193
198
|
</EUIDashboardTable>`,
|
|
194
199
|
}),
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
export const NormalTable: Story = {
|
|
203
|
+
args: {
|
|
204
|
+
headers: studentHeader,
|
|
205
|
+
items: studentData,
|
|
206
|
+
checkable: true,
|
|
207
|
+
paginated: true,
|
|
208
|
+
perPage: 10,
|
|
209
|
+
total: studentData.length,
|
|
210
|
+
currentPage: 1,
|
|
211
|
+
},
|
|
212
|
+
render: (args) => ({
|
|
213
|
+
components: {
|
|
214
|
+
EUITable,
|
|
215
|
+
EUITableCheckbox,
|
|
216
|
+
EUIPageLimit,
|
|
217
|
+
EUIStudentPagination,
|
|
218
|
+
},
|
|
219
|
+
setup() {
|
|
220
|
+
return { args };
|
|
221
|
+
},
|
|
222
|
+
template: `<EUITable v-bind="args">
|
|
223
|
+
<template #item.firstName="{ row, rowIndex }">
|
|
224
|
+
<div class="space-y-0.5">
|
|
225
|
+
<div class="block text-sm font-medium leading-snug">
|
|
226
|
+
{{row?.firstName + " " + row?.lastName }}
|
|
227
|
+
</div>
|
|
228
|
+
<div class="text-xs font-medium text-gray-900 leading-[normal]">
|
|
229
|
+
{{ row?.referenceId }}
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
</template>
|
|
233
|
+
<template #item.activeUser="{ row, rowIndex }">
|
|
234
|
+
{{ row?.activeUser?.user?.firstName }}
|
|
235
|
+
{{ row?.activeUser?.user?.lastName }}
|
|
236
|
+
</template>
|
|
237
|
+
</EUITable>`,
|
|
238
|
+
}),
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export const DashboardGrowthTable: Story = {
|
|
242
|
+
args: {
|
|
243
|
+
checkable: true,
|
|
244
|
+
paginated: true,
|
|
245
|
+
perPage: 10,
|
|
246
|
+
total: studentData.length,
|
|
247
|
+
currentPage: 1,
|
|
248
|
+
headers: growthTableHeaders,
|
|
249
|
+
items: growthTableData,
|
|
250
|
+
},
|
|
251
|
+
render: (args) => ({
|
|
252
|
+
components: {
|
|
253
|
+
GrowthTable,
|
|
254
|
+
EUITableCheckbox,
|
|
255
|
+
EUIPageLimit,
|
|
256
|
+
EUIPagination,
|
|
257
|
+
},
|
|
258
|
+
setup() {
|
|
259
|
+
return { args };
|
|
260
|
+
},
|
|
261
|
+
template: `<GrowthTable v-bind="args">
|
|
262
|
+
<template #item.firstName="{ row, rowIndex }">
|
|
263
|
+
<div class="space-y-0.5">
|
|
264
|
+
<div class="block text-sm font-medium leading-snug">
|
|
265
|
+
{{row?.firstName + " " + row?.lastName }}
|
|
266
|
+
</div>
|
|
267
|
+
<div class="text-xs font-medium text-gray-900 leading-[normal]">
|
|
268
|
+
{{ row?.referenceId }}
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
</template>
|
|
272
|
+
|
|
273
|
+
<template #item.active_allagents="{ row, rowIndex }">
|
|
274
|
+
<div class="flex flex-row items-center gap-4 justify-between bg-violet-50 pl-2 pr-10 rounded-[0.625rem] py-2 h-full">
|
|
275
|
+
<span v-for="(data, idx) in row?.active_allagents" >{{ data.value || '-' }}</span>
|
|
276
|
+
</div>
|
|
277
|
+
</template>
|
|
278
|
+
<template #item.active_active_allagents="{ row, rowIndex }">
|
|
279
|
+
<div class="flex flex-row items-center gap-4 justify-between bg-violet-50 pl-2 pr-10 rounded-[0.625rem] py-2 h-full">
|
|
280
|
+
<span v-for="(data, idx) in row?.active_active_allagents">{{ data.value || '-' }}</span>
|
|
281
|
+
</div>
|
|
282
|
+
</template>
|
|
283
|
+
<template #item.active_dormant="{ row, rowIndex }">
|
|
284
|
+
<div class="flex flex-row items-center gap-4 justify-between bg-violet-50 pl-2 pr-10 rounded-[0.625rem] py-2 h-full">
|
|
285
|
+
<span v-for="(data, idx) in row?.active_dormant" >{{ data.value || '-' }}</span>
|
|
286
|
+
</div>
|
|
287
|
+
</template>
|
|
288
|
+
<template #item.totalDepositCount="{ row, rowIndex }">
|
|
289
|
+
<div class="flex flex-row items-center gap-4 justify-between bg-violet-50 pl-2 pr-10 rounded-[0.625rem] py-2 h-full">
|
|
290
|
+
<span v-for="(data, idx) in row?.totalDepositCount" >{{ data.value || '-' }}</span>
|
|
291
|
+
</div>
|
|
292
|
+
</template>
|
|
293
|
+
<template #item.totalStudentCount="{ row, rowIndex }">
|
|
294
|
+
<div class="flex flex-row items-center gap-4 justify-between bg-violet-50 pl-2 pr-10 rounded-[0.625rem] py-2 h-full">
|
|
295
|
+
<span v-for="(data, idx) in row?.totalStudentCount">{{ data.value || '-' }}</span>
|
|
296
|
+
</div>
|
|
297
|
+
</template>
|
|
298
|
+
</GrowthTable>`,
|
|
299
|
+
}),
|
|
195
300
|
};
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<thead
|
|
34
34
|
class="sticky top-0 left-0 z-20 bg-gray-100 before:-bottom-px before:left-0 before:absolute before:h-px before:w-full before:bg-gray-300"
|
|
35
35
|
>
|
|
36
|
-
<tr
|
|
36
|
+
<tr>
|
|
37
37
|
<template v-if="checkable">
|
|
38
38
|
<th class="checkable">
|
|
39
39
|
<EUITableCheckbox
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
isScrolled && headerIndex === 0 ? stickyClass.body : '',
|
|
149
149
|
activeRowIndex==rowIndex?'!bg-purple-50 !ring-1 !ring-purple-100 !ring-inset':''
|
|
150
150
|
]"
|
|
151
|
-
|
|
151
|
+
|
|
152
152
|
>
|
|
153
153
|
<slot
|
|
154
154
|
:name="`item.${header?.value}`"
|
|
@@ -263,7 +263,7 @@ const props = defineProps({
|
|
|
263
263
|
defaultSortDirection: { type: String, default: "asc" },
|
|
264
264
|
search: { type: String, default: "" },
|
|
265
265
|
perPage: { type: Number, default: 5 },
|
|
266
|
-
|
|
266
|
+
|
|
267
267
|
activeRowIndex: { type: Number, default: null },
|
|
268
268
|
currentPage: { type: Number, default: 0 },
|
|
269
269
|
total: { type: Number, default: 0 },
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
<label :class="classes">
|
|
3
3
|
<input
|
|
4
4
|
v-model="selected"
|
|
5
|
-
data-test="checkbox-toggle"
|
|
6
5
|
type="checkbox"
|
|
7
6
|
:value="value"
|
|
8
7
|
v-bind="attrs"
|
|
@@ -101,26 +100,33 @@ export default {
|
|
|
101
100
|
.ui-checkbox {
|
|
102
101
|
@apply inline-flex items-center cursor-pointer;
|
|
103
102
|
&__input {
|
|
104
|
-
@apply w-5 h-5 flex-shrink-0 border border-solid border-gray-200 bg-white appearance-none inline-block select-none cursor-pointer align-middle rounded relative;
|
|
103
|
+
@apply w-5 h-5 flex-shrink-0 border border-solid border-gray-200 bg-white appearance-none inline-block select-none cursor-pointer align-middle rounded relative before:content-[''] before:transform before:translate-x-1/2 before:-translate-y-1/2 before:z-[-1] before:absolute before:top-1/2 before:right-1/2 before:block before:size-9 before:rounded-full before:bg-violet-100 before:opacity-0 before:transition-opacity hover:before:opacity-75;
|
|
105
104
|
&::after {
|
|
106
|
-
@apply absolute hidden border-solid inset-x-0 top-0 m-auto w-1.5 h-2.5 bottom-0.5;
|
|
105
|
+
@apply absolute hidden border-solid inset-x-0 top-0 m-auto w-1.5 h-2.5 bottom-0.5 scale-100;
|
|
107
106
|
content: "";
|
|
108
|
-
border-width: 0
|
|
107
|
+
border-width: 0 2px 2px 0;
|
|
109
108
|
-webkit-transform: rotate(45deg);
|
|
110
109
|
-ms-transform: rotate(45deg);
|
|
111
110
|
transform: rotate(45deg);
|
|
111
|
+
transform: translate3d(0, 1, 0);
|
|
112
|
+
transition: all 0.2s ease;
|
|
112
113
|
}
|
|
113
114
|
&:hover {
|
|
114
|
-
@apply bg-purple-100 border-purple-
|
|
115
|
+
@apply bg-purple-100 border-purple-500;
|
|
115
116
|
}
|
|
116
117
|
&:checked {
|
|
117
|
-
|
|
118
|
+
transition: all 0.3s ease;
|
|
119
|
+
transform: translate3d(0, 1, 0);
|
|
120
|
+
@apply bg-purple-700 border-purple-700;
|
|
118
121
|
&::after {
|
|
119
|
-
@apply block border-
|
|
122
|
+
@apply block border-white;
|
|
123
|
+
}
|
|
124
|
+
&:focus {
|
|
125
|
+
@apply bg-purple-700;
|
|
120
126
|
}
|
|
121
127
|
}
|
|
122
128
|
&:focus {
|
|
123
|
-
@apply outline-none border-2 border-purple-700 bg-purple-
|
|
129
|
+
@apply outline-none border-2 border-purple-700 bg-purple-200;
|
|
124
130
|
}
|
|
125
131
|
&:disabled {
|
|
126
132
|
@apply bg-gray-300 border-gray-100 cursor-not-allowed;
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
v-for="(header, headerIndex) in headers"
|
|
154
154
|
:key="headerIndex"
|
|
155
155
|
:style="bodyStyle(header)"
|
|
156
|
-
:class="[isScrolled && headerIndex === 0 ? stickyClass.body : null]"
|
|
156
|
+
:class="[isScrolled && headerIndex === 0 ? stickyClass.body : null,{'!bg-purple-100': activeRowIndex==rowIndex}]"
|
|
157
157
|
>
|
|
158
158
|
<slot
|
|
159
159
|
:name="`item.${header?.value}`"
|
package/src/style.scss
CHANGED
package/dist/EUIButton.vue.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "/Users/rajmohan/Documents/Workspace/edvoy-ui-v2/src/components/button/EUIButton.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
export * from "/Users/rajmohan/Documents/Workspace/edvoy-ui-v2/src/components/button/EUIButton.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
-
import "/Users/rajmohan/Documents/Workspace/edvoy-ui-v2/src/components/button/EUIButton.vue?vue&type=style&index=0&lang.scss";
|
|
4
|
-
export default _sfc_main;
|
|
5
|
-
//# sourceMappingURL=EUIButton.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EUIButton.vue.d.ts","sourceRoot":"","sources":["../src/components/button/EUIButton.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,wHAAwH,CAAC;AAC/I,cAAc,wHAAwH,CAAC;AACvI,OAAO,sHAAsH,CAAC;AAC9H,eAAe,SAAS,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "/Users/rajmohan/Documents/Workspace/edvoy-ui-v2/src/components/selectSearch/EUISelectSearch.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
export * from "/Users/rajmohan/Documents/Workspace/edvoy-ui-v2/src/components/selectSearch/EUISelectSearch.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
-
export default _sfc_main;
|
|
4
|
-
//# sourceMappingURL=EUISelectSearch.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EUISelectSearch.vue.d.ts","sourceRoot":"","sources":["../../src/components/selectSearch/EUISelectSearch.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oIAAoI,CAAC;AAC3J,cAAc,oIAAoI,CAAC;AACnJ,eAAe,SAAS,CAAC"}
|
|
File without changes
|
|
File without changes
|