edvoyui-component-library-test-flight 0.0.134 → 0.0.135
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 +14 -14
- package/dist/library-vue-ts.css +1 -1
- package/dist/library-vue-ts.es.js +860 -853
- package/dist/library-vue-ts.umd.js +15 -15
- package/dist/popover/EUIPopover.vue.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/HelloWorld.vue +29 -60
- package/src/components/popover/EUIPopover.vue +14 -4
- package/src/components/tabs/EUITabOutline.vue +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/popover/EUIPopover.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "/Volumes/work/repos/edvoy-ui-v2/src/components/popover/EUIPopover.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "/Volumes/work/repos/edvoy-ui-v2/src/components/popover/EUIPopover.vue?vue&type=style&index=0&scoped=29b158d9&lang.scss";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=EUIPopover.vue.d.ts.map
|
package/package.json
CHANGED
|
@@ -6,7 +6,22 @@
|
|
|
6
6
|
Edvoy User Interface
|
|
7
7
|
</h1>
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
<!-- TODO: Add scroll to tab section in Student details page same -->
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
<script setup lang="ts">
|
|
14
|
+
|
|
15
|
+
</script>
|
|
16
|
+
<style lang="scss"></style>
|
|
17
|
+
|
|
18
|
+
<!-- Development code here -->
|
|
19
|
+
|
|
20
|
+
<!-- <template>
|
|
21
|
+
<div class="h-[clac(100svh-64px)] w-full px-10 py-8 max-w-screen-xl mx-auto">
|
|
22
|
+
<h1 class="mb-2 font-semibold text-gray-900 tetx-lg">Edvoy UI Componnet</h1>
|
|
23
|
+
|
|
24
|
+
<div class="mb-10">
|
|
10
25
|
<EUITabOutline
|
|
11
26
|
activeColor="purple"
|
|
12
27
|
size="sm"
|
|
@@ -31,8 +46,10 @@
|
|
|
31
46
|
</EUITabOutline>
|
|
32
47
|
</div>
|
|
33
48
|
|
|
34
|
-
|
|
35
|
-
<
|
|
49
|
+
<div class="p-8 space-x-6 space-y-4">
|
|
50
|
+
<pre class="text-right">{{ activeDays }}--</pre>
|
|
51
|
+
<div class="inline-flex flex-col items-end w-full">
|
|
52
|
+
<EUIButtonGroup
|
|
36
53
|
activeColor="purple"
|
|
37
54
|
size="sm"
|
|
38
55
|
:rounded="false"
|
|
@@ -44,66 +61,13 @@
|
|
|
44
61
|
<div
|
|
45
62
|
class="px-2 text-sm font-normal leading-tight tracking-wide text-black me-4 font-inter"
|
|
46
63
|
>
|
|
47
|
-
Renewals due in
|
|
64
|
+
Renewals due in
|
|
48
65
|
</div>
|
|
49
66
|
</template>
|
|
50
67
|
<template #default="{ data, activeName}">
|
|
51
68
|
{{ data.name }} <small :class="activeName === data.name ? 'opacity-100': 'opacity-75'">({{ data.count }})</small>
|
|
52
69
|
</template>
|
|
53
70
|
</EUIButtonGroup>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</template>
|
|
57
|
-
<script setup lang="ts">
|
|
58
|
-
import { ref } from "vue";
|
|
59
|
-
import EUITabOutline from "./tabs/EUITabOutline.vue";
|
|
60
|
-
import EUIButtonGroup from "./button/EUIButtonGroup.vue";
|
|
61
|
-
|
|
62
|
-
const allDays = ref([
|
|
63
|
-
{ name: "7 days", count: 5 },
|
|
64
|
-
{ name: "15 days", count: 10 },
|
|
65
|
-
{ name: "16-30 days", count: 20 },
|
|
66
|
-
{ name: "31-60 days", count: 121 },
|
|
67
|
-
{ name: "61-90 days", count: 40 },
|
|
68
|
-
]);
|
|
69
|
-
|
|
70
|
-
const activeDays = ref(allDays.value[0].name);
|
|
71
|
-
const activeTab = ref(allDays.value[3].name)
|
|
72
|
-
|
|
73
|
-
const onchangeActiveTab = (val: any) => {
|
|
74
|
-
activeTab.value = val.name;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
const onchangeDays = (val:any) => {
|
|
78
|
-
activeDays.value = val.name
|
|
79
|
-
}
|
|
80
|
-
</script>
|
|
81
|
-
<style lang="scss"></style>
|
|
82
|
-
|
|
83
|
-
<!-- Development code here -->
|
|
84
|
-
<!--<template>
|
|
85
|
-
<div class="h-[clac(100svh-64px)] w-full px-10 py-8 max-w-screen-xl mx-auto">
|
|
86
|
-
<h1 class="mb-2 font-semibold text-gray-900 tetx-lg">Edvoy UI Componnet</h1>
|
|
87
|
-
|
|
88
|
-
<div class="p-8 space-x-6 space-y-12">
|
|
89
|
-
<pre class="text-right">{{ activeDays }}--</pre>
|
|
90
|
-
<div class="inline-flex flex-col items-end w-full">
|
|
91
|
-
<EUIButtonGroup
|
|
92
|
-
activeColor="purple"
|
|
93
|
-
size="sm"
|
|
94
|
-
:rounded="false"
|
|
95
|
-
:items="allDays"
|
|
96
|
-
:defaultActive="activeDays"
|
|
97
|
-
@update:clicked-button="onchangeActiveTab"
|
|
98
|
-
>
|
|
99
|
-
<template #before>
|
|
100
|
-
<div
|
|
101
|
-
class="px-2 text-sm font-normal leading-tight tracking-wide text-black me-4 font-inter"
|
|
102
|
-
>
|
|
103
|
-
Renewals due in
|
|
104
|
-
</div>
|
|
105
|
-
</template>
|
|
106
|
-
</EUIButtonGroup>
|
|
107
71
|
</div>
|
|
108
72
|
|
|
109
73
|
<div class="inline-flex items-center justify-end w-full">
|
|
@@ -1207,6 +1171,7 @@ import UTableview from "./table/UTableview.vue";
|
|
|
1207
1171
|
import EUIAlerts from "./alerts/EUIAlerts.vue";
|
|
1208
1172
|
import EUIButtonGroup from "./button/EUIButtonGroup.vue";
|
|
1209
1173
|
import EUISearchExpand from "./searchexpand/EUISearchExpand.vue";
|
|
1174
|
+
import EUITabOutline from "./tabs/EUITabOutline.vue";
|
|
1210
1175
|
|
|
1211
1176
|
const allDays = ref([
|
|
1212
1177
|
{ name: "7 days", count: 5 },
|
|
@@ -1216,12 +1181,17 @@ const allDays = ref([
|
|
|
1216
1181
|
{ name: "61-90 days", count: 40 },
|
|
1217
1182
|
]);
|
|
1218
1183
|
|
|
1219
|
-
const activeDays = ref(allDays.value[
|
|
1184
|
+
const activeDays = ref(allDays.value[0].name);
|
|
1185
|
+
const activeTab = ref(allDays.value[3].name)
|
|
1220
1186
|
|
|
1221
1187
|
const onchangeActiveTab = (val: any) => {
|
|
1222
|
-
|
|
1188
|
+
activeTab.value = val.name;
|
|
1223
1189
|
};
|
|
1224
1190
|
|
|
1191
|
+
const onchangeDays = (val:any) => {
|
|
1192
|
+
activeDays.value = val.name
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1225
1195
|
const searchInput = ref("");
|
|
1226
1196
|
const showSearch = ref(false);
|
|
1227
1197
|
|
|
@@ -1229,7 +1199,6 @@ const seachStudent = (e) => {
|
|
|
1229
1199
|
console.log("seachStudent", e);
|
|
1230
1200
|
};
|
|
1231
1201
|
|
|
1232
|
-
|
|
1233
1202
|
const mobileNumber = ref("+91 8667444951");
|
|
1234
1203
|
const datepicker = ref(new Date());
|
|
1235
1204
|
const loading = ref(false);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
2
|
+
<div ref="popperWrapper" class="isolate w-max">
|
|
3
3
|
<div
|
|
4
4
|
ref="popperButton"
|
|
5
|
-
:class="['inline-flex items-center text-sm font-semibold gap-x-2', customButton]"
|
|
5
|
+
:class="['inline-flex items-center text-sm font-semibold gap-x-2 cursor-pointer', customButton]"
|
|
6
6
|
>
|
|
7
7
|
<slot name="referenceButton" :open="isOpen"/>
|
|
8
8
|
</div>
|
|
@@ -52,6 +52,7 @@ const props = defineProps({
|
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
+
const popperWrapper = ref<HTMLElement | null>(null);
|
|
55
56
|
const popperInstance = ref<Instance | null>(null);
|
|
56
57
|
const popperButton = ref<HTMLElement | null>(null);
|
|
57
58
|
const tooltip = ref<HTMLElement | null>(null);
|
|
@@ -60,9 +61,10 @@ const isOpen = ref(false);
|
|
|
60
61
|
const emit = defineEmits(['showPopover', 'hidePopover']);
|
|
61
62
|
|
|
62
63
|
onMounted(() => {
|
|
64
|
+
onClickOutside(popperWrapper.value, hide);
|
|
65
|
+
|
|
63
66
|
if (props.trigger === "click") {
|
|
64
|
-
useEventListener(popperButton.value, "click",
|
|
65
|
-
onClickOutside(popperButton.value, hide);
|
|
67
|
+
useEventListener(popperButton.value, "click", toggle);
|
|
66
68
|
} else if (props.trigger === "hover") {
|
|
67
69
|
const showEvents = ["mouseenter", "focus"];
|
|
68
70
|
const hideEvents = ["mouseleave", "blur"];
|
|
@@ -91,6 +93,14 @@ onMounted(() => {
|
|
|
91
93
|
}
|
|
92
94
|
});
|
|
93
95
|
|
|
96
|
+
function toggle() {
|
|
97
|
+
if (isOpen.value) {
|
|
98
|
+
hide();
|
|
99
|
+
} else {
|
|
100
|
+
show();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
94
104
|
function show() {
|
|
95
105
|
tooltip.value?.setAttribute("data-show", "");
|
|
96
106
|
isOpen.value = true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="bg-white" v-bind="$attrs">
|
|
2
|
+
<div class="bg-white rounded-t-xl" v-bind="$attrs">
|
|
3
3
|
<div
|
|
4
4
|
class="relative z-10 inline-flex items-center w-full gap-2 pt-3 overflow-hidden transition-all duration-200 ease-in border border-b-0 border-solid rounded-t-xl isolate before:h-4 before:w-px before:bg-gray-200 before:-bottom-3 before:-left-px before:absolute after:h-4 after:w-px after:bg-gray-200 after:-bottom-3 after:-right-px after:absolute bg-gradient-to-b from-gray-100"
|
|
5
5
|
>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
v-bind="buttonAttrs"
|
|
21
21
|
:data-tab="data.name"
|
|
22
22
|
:class="[
|
|
23
|
-
'capitalize box-border border-none inline-flex flex-row gap-x-2 items-center',
|
|
23
|
+
'capitalize box-border border-none inline-flex flex-row gap-x-2 items-center will-change-contents',
|
|
24
24
|
getBtnClass(data.name || ''),
|
|
25
25
|
activeBtnName === data.name ? 'font-semibold' : 'font-normal',
|
|
26
26
|
]"
|