edvoyui-component-library-test-flight 0.0.60 → 0.0.61
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/library-vue-ts.cjs.js +1 -1
- package/dist/library-vue-ts.css +1 -1
- package/dist/library-vue-ts.es.js +3 -3
- package/dist/library-vue-ts.umd.js +2 -2
- package/dist/searchexpand/EUISearchExpand.vue.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/searchexpand/EUISearchExpand.vue +2 -2
- package/src/components/table/UCheckbox.vue +10 -14
- package/src/components/table/UTable.vue +25 -25
- package/src/data/table.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/searchexpand/EUISearchExpand.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "/Volumes/work/repos/edvoy-ui-v2/src/components/searchexpand/EUISearchExpand.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "/Volumes/work/repos/edvoy-ui-v2/src/components/searchexpand/EUISearchExpand.vue?vue&type=style&index=0&scoped=3af29ac1&lang.css";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=EUISearchExpand.vue.d.ts.map
|
package/package.json
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
<div class="relative max-w-80 z-[calc(infinity)]">
|
|
11
11
|
<div
|
|
12
12
|
:class="[
|
|
13
|
-
'relative flex items-center duration-300 ease-linear bg-gray-100
|
|
13
|
+
'relative flex items-center duration-300 ease-linear bg-gray-100 rounded-full pe-1 group-focus-within:ring-2 ring-purple-200 group-focus-within:border-gray-200 group-focus-within:border transition-all delay-75',
|
|
14
14
|
isExpanded
|
|
15
15
|
? 'group-focus-within:w-80 text-gray-300 h-10'
|
|
16
16
|
: 'size-10 text-gray-500',
|
|
17
17
|
]"
|
|
18
18
|
>
|
|
19
19
|
<SearchBigZoomIn
|
|
20
|
-
class="absolute text-current
|
|
20
|
+
class="absolute text-current size-6 top-2 left-2"
|
|
21
21
|
/>
|
|
22
22
|
<input
|
|
23
23
|
v-if="isExpanded"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<label :class="classes">
|
|
3
|
-
<span class="text-[0.5rem] absolute z-20 top-0 text-gray-400">{{ selected }}</span>
|
|
4
3
|
<input
|
|
5
4
|
v-model="selected"
|
|
6
5
|
data-test="checkbox-toggle"
|
|
@@ -100,31 +99,28 @@ export default {
|
|
|
100
99
|
|
|
101
100
|
<style lang="scss">
|
|
102
101
|
.ui-checkbox {
|
|
103
|
-
@apply inline-flex items-center
|
|
102
|
+
@apply inline-flex items-center cursor-pointer;
|
|
104
103
|
&__input {
|
|
105
|
-
@apply w-5 h-5 flex-shrink-0 border border-solid border-gray-
|
|
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;
|
|
106
105
|
&::after {
|
|
107
|
-
@apply absolute hidden border-solid inset-x-0 top-0 m-auto;
|
|
106
|
+
@apply absolute hidden border-solid inset-x-0 top-0 m-auto w-1.5 h-2.5 bottom-0.5;
|
|
108
107
|
content: "";
|
|
109
|
-
width: 6px;
|
|
110
|
-
height: 10px;
|
|
111
|
-
bottom: 2px;
|
|
112
108
|
border-width: 0 3px 3px 0;
|
|
113
109
|
-webkit-transform: rotate(45deg);
|
|
114
110
|
-ms-transform: rotate(45deg);
|
|
115
111
|
transform: rotate(45deg);
|
|
116
112
|
}
|
|
117
113
|
&:hover {
|
|
118
|
-
@apply bg-
|
|
114
|
+
@apply bg-purple-100 border-purple-200;
|
|
119
115
|
}
|
|
120
116
|
&:checked {
|
|
121
|
-
@apply bg-white border-
|
|
117
|
+
@apply bg-white border-purple-600;
|
|
122
118
|
&::after {
|
|
123
|
-
@apply block border-
|
|
119
|
+
@apply block border-purple-700;
|
|
124
120
|
}
|
|
125
121
|
}
|
|
126
122
|
&:focus {
|
|
127
|
-
@apply outline-none border-2 border-
|
|
123
|
+
@apply outline-none border-2 border-purple-700 bg-purple-100;
|
|
128
124
|
}
|
|
129
125
|
&:disabled {
|
|
130
126
|
@apply bg-gray-300 border-gray-100 cursor-not-allowed;
|
|
@@ -134,7 +130,7 @@ export default {
|
|
|
134
130
|
&:checked {
|
|
135
131
|
@apply bg-white border-white;
|
|
136
132
|
&::after {
|
|
137
|
-
@apply block border-gray-
|
|
133
|
+
@apply block border-gray-100;
|
|
138
134
|
}
|
|
139
135
|
}
|
|
140
136
|
}
|
|
@@ -155,9 +151,9 @@ export default {
|
|
|
155
151
|
}
|
|
156
152
|
&--indeterminate & {
|
|
157
153
|
&__input {
|
|
158
|
-
@apply border-
|
|
154
|
+
@apply border-purple-700;
|
|
159
155
|
&::after {
|
|
160
|
-
@apply block bg-
|
|
156
|
+
@apply block bg-purple-700 border-0 bottom-0 transform-none;
|
|
161
157
|
width: 10px;
|
|
162
158
|
height: 2px;
|
|
163
159
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="max-w-screen-xl mx-auto
|
|
2
|
+
<div class="max-w-screen-xl mx-auto h-[calc(100dvh-20rem)] overflow-hidden">
|
|
3
3
|
<div :class="tableClasses">
|
|
4
4
|
<table class="table">
|
|
5
5
|
<thead>
|
|
6
6
|
<tr>
|
|
7
7
|
<th
|
|
8
8
|
v-if="checkable"
|
|
9
|
-
style="width: 45px; flex: 45 0 auto; max-width: 45px"
|
|
9
|
+
style="width: 45px; flex: 45 0 auto; max-width: 45px; background-color: rgb(243 244 246);"
|
|
10
10
|
>
|
|
11
11
|
<UCheckbox
|
|
12
12
|
:checked="isAllChecked"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
</tr>
|
|
40
40
|
</thead>
|
|
41
41
|
<tbody>
|
|
42
|
-
<tr v-for="(row, rowIndex) in computedItems" :key="rowIndex">
|
|
42
|
+
<tr v-for="(row, rowIndex) in computedItems" :key="rowIndex" class="group">
|
|
43
43
|
<td v-if="checkable" style="width: 45px; flex: 45 0 auto; max-width: 45px">
|
|
44
44
|
<UCheckbox
|
|
45
45
|
:disabled="!isRowCheckable(row)"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
<td
|
|
52
52
|
v-for="(header, headerIndex) in headers"
|
|
53
53
|
:key="headerIndex"
|
|
54
|
-
:style="
|
|
54
|
+
:style="bodyStyle(header)"
|
|
55
55
|
>
|
|
56
56
|
<span class="ui-table__truncate">
|
|
57
57
|
<slot :name="`item.${header.value}`" :row="row" :rowIndex="rowIndex">
|
|
@@ -160,9 +160,16 @@ export default {
|
|
|
160
160
|
width: `${header.width || 300}px`,
|
|
161
161
|
flex: `${header.width || 300} 0 auto`,
|
|
162
162
|
maxWidth: `${header.width || 300}px`,
|
|
163
|
-
backgroundColor: header.color || 'rgb(
|
|
163
|
+
backgroundColor: header.color || 'rgb(243 244 246)'
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
+
const bodyStyle = header => ({
|
|
167
|
+
width: `${header.width || 300}px`,
|
|
168
|
+
flex: `${header.width || 300} 0 auto`,
|
|
169
|
+
maxWidth: `${header.width || 300}px`,
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
|
|
166
173
|
const pageChanged = page => {
|
|
167
174
|
newCurrentPage.value = page;
|
|
168
175
|
emit('update:currentPage', page);
|
|
@@ -257,6 +264,7 @@ export default {
|
|
|
257
264
|
tableClasses,
|
|
258
265
|
computedItems,
|
|
259
266
|
headerStyle,
|
|
267
|
+
bodyStyle,
|
|
260
268
|
pageChanged,
|
|
261
269
|
checkRow,
|
|
262
270
|
checkAll,
|
|
@@ -274,7 +282,7 @@ export default {
|
|
|
274
282
|
|
|
275
283
|
<style lang="scss" scoped>
|
|
276
284
|
.ui-table {
|
|
277
|
-
@apply overflow-auto bg-white bg-no-repeat
|
|
285
|
+
@apply overflow-auto bg-white bg-no-repeat;
|
|
278
286
|
background-image: linear-gradient(to right, white, white),
|
|
279
287
|
linear-gradient(to right, white, white),
|
|
280
288
|
linear-gradient(to right, rgba(223, 231, 242, 1), rgba(255, 255, 255, 0)),
|
|
@@ -288,31 +296,22 @@ export default {
|
|
|
288
296
|
background-attachment: local, local, scroll, scroll, local, scroll;
|
|
289
297
|
|
|
290
298
|
.table {
|
|
291
|
-
@apply border-separate w-full;
|
|
299
|
+
@apply border-separate w-full border-0 border-spacing-0 border-gray-50 box-border;
|
|
292
300
|
border-spacing: 0;
|
|
293
301
|
thead {
|
|
294
302
|
tr {
|
|
295
303
|
@apply flex flex-grow;
|
|
296
304
|
th {
|
|
297
|
-
@apply bg-gray-50 px-3 py-4 text-sm text-gray-600 text-left font-semibold uppercase border
|
|
305
|
+
@apply bg-gray-50 px-3 py-4 text-sm text-gray-600 text-left font-semibold uppercase border border-l-0 border-solid border-neutral-200 cursor-auto whitespace-nowrap flex items-center last-of-type:rounded-tr-lg first-of-type:rounded-tl-lg first:border-l last:border-r;
|
|
298
306
|
height: 45px;
|
|
299
307
|
transition: all 0.15s ease-out;
|
|
300
|
-
&:hover {
|
|
301
|
-
@apply bg-blue-50;
|
|
302
|
-
}
|
|
303
|
-
&:first-child {
|
|
304
|
-
border-left-width: 0;
|
|
305
|
-
}
|
|
306
|
-
&:last-child {
|
|
307
|
-
border-right-width: 0;
|
|
308
|
-
}
|
|
309
308
|
&:last-of-type {
|
|
310
309
|
max-width: unset !important;
|
|
311
310
|
}
|
|
312
311
|
&__sortable {
|
|
313
312
|
@apply cursor-pointer pr-12;
|
|
314
313
|
&--active {
|
|
315
|
-
@apply bg-
|
|
314
|
+
@apply bg-purple-50;
|
|
316
315
|
}
|
|
317
316
|
&::before,
|
|
318
317
|
&::after {
|
|
@@ -332,12 +331,12 @@ export default {
|
|
|
332
331
|
}
|
|
333
332
|
&--asc {
|
|
334
333
|
&::before {
|
|
335
|
-
border-bottom: 6px solid theme("colors.
|
|
334
|
+
border-bottom: 6px solid theme("colors.purple.300");
|
|
336
335
|
}
|
|
337
336
|
}
|
|
338
337
|
&--dsc {
|
|
339
338
|
&::after {
|
|
340
|
-
border-top: 6px solid theme("colors.
|
|
339
|
+
border-top: 6px solid theme("colors.purple.300");
|
|
341
340
|
}
|
|
342
341
|
}
|
|
343
342
|
}
|
|
@@ -346,15 +345,16 @@ export default {
|
|
|
346
345
|
}
|
|
347
346
|
tbody {
|
|
348
347
|
tr {
|
|
349
|
-
@apply flex flex-grow;
|
|
348
|
+
@apply flex flex-grow transition-all duration-100 ease-in-out;
|
|
350
349
|
&:hover {
|
|
351
|
-
background-color: rgba(238, 243, 250, 0.8);
|
|
352
350
|
transition: all 0.15s ease-out;
|
|
351
|
+
@apply bg-gray-50;
|
|
352
|
+
td {
|
|
353
|
+
@apply border-purple-500 border-t first:rounded-l last:rounded-r border-r-gray-200 last:border-r-purple-500;
|
|
354
|
+
}
|
|
353
355
|
}
|
|
354
356
|
td {
|
|
355
|
-
@apply relative text-sm text-gray-900 border-b border-solid border-gray-
|
|
356
|
-
padding: 7px 12px;
|
|
357
|
-
height: 47px;
|
|
357
|
+
@apply relative text-sm text-gray-900 border-b border-solid break-words flex items-center border-0 first:border-l border-r border-gray-200 py-1.5 px-3 h-12;
|
|
358
358
|
&:last-of-type {
|
|
359
359
|
max-width: unset !important;
|
|
360
360
|
}
|
package/src/data/table.ts
CHANGED
|
@@ -582,13 +582,13 @@ export const studentHeader = [
|
|
|
582
582
|
{
|
|
583
583
|
value: "lifecycleStage",
|
|
584
584
|
name: "Lifecycle",
|
|
585
|
-
width:
|
|
585
|
+
width: 120,
|
|
586
586
|
sortable: true,
|
|
587
587
|
},
|
|
588
588
|
{
|
|
589
589
|
value: "acquisition",
|
|
590
590
|
name: "Acquisition",
|
|
591
|
-
width:
|
|
591
|
+
width: 140,
|
|
592
592
|
sortable: false,
|
|
593
593
|
},
|
|
594
594
|
{
|