edvoyui-component-library-test-flight 0.0.28 → 0.0.30
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 +12 -12
- package/dist/library-vue-ts.es.js +3961 -3943
- package/dist/library-vue-ts.umd.js +14 -14
- package/dist/table/EUIDashboardTable.vue.d.ts +1 -1
- package/dist/table/EUITable.vue.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/datepicker/EUIDatepicker.stories.ts +9 -0
- package/src/components/datepicker/EUIDatepicker.vue +21 -5
- package/src/components/delete.vue +14 -0
- package/src/components/table/EUITable.stories.ts +6 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUIDashboardTable.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUIDashboardTable.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUIDashboardTable.vue?vue&type=style&index=0&scoped=853762cf&lang.scss";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=EUIDashboardTable.vue.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUITable.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUITable.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUITable.vue?vue&type=style&index=0&scoped=c13405e0&lang.scss";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=EUITable.vue.d.ts.map
|
package/package.json
CHANGED
|
@@ -39,6 +39,15 @@ const meta = {
|
|
|
39
39
|
"Enables date range selection, allowing users to pick a start and end date.",
|
|
40
40
|
defaultValue: false,
|
|
41
41
|
},
|
|
42
|
+
multiCalendars: {
|
|
43
|
+
control: "boolean",
|
|
44
|
+
description: "Enables date range selection across multiple calendars.",
|
|
45
|
+
defaultValue: false,
|
|
46
|
+
table: {
|
|
47
|
+
type: { summary: "boolean" }, // Specifies the type in the docs table
|
|
48
|
+
defaultValue: { summary: "false" }, // Default value displayed in the table
|
|
49
|
+
},
|
|
50
|
+
},
|
|
42
51
|
timePicker: {
|
|
43
52
|
control: "boolean",
|
|
44
53
|
description: "Allows time selection in addition to the date if true.",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
auto-apply
|
|
65
65
|
:hide-input-icon="true"
|
|
66
66
|
position="left"
|
|
67
|
+
:multi-calendars="multiCalendars"
|
|
67
68
|
/>
|
|
68
69
|
</div>
|
|
69
70
|
<EUIErrorMessage :errors="errors" :name="name" />
|
|
@@ -119,6 +120,7 @@ const props = defineProps({
|
|
|
119
120
|
disabled:Boolean,
|
|
120
121
|
required: Boolean,
|
|
121
122
|
range:Boolean,
|
|
123
|
+
multiCalendars:Boolean,
|
|
122
124
|
inputFilled: {
|
|
123
125
|
type:Boolean,
|
|
124
126
|
default: false
|
|
@@ -138,6 +140,18 @@ const { modelValue, isUtc, clearIcon } = toRefs(props);
|
|
|
138
140
|
|
|
139
141
|
const datepicker = ref(props.modelValue)
|
|
140
142
|
|
|
143
|
+
//Date clear
|
|
144
|
+
watch(
|
|
145
|
+
() => props.modelValue,
|
|
146
|
+
(newValue) => {
|
|
147
|
+
if (!newValue || newValue.length === 0) {
|
|
148
|
+
datepicker.value = [];
|
|
149
|
+
} else {
|
|
150
|
+
datepicker.value = newValue;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
|
|
141
155
|
watch(
|
|
142
156
|
datepicker,
|
|
143
157
|
(newDate) => {
|
|
@@ -170,7 +184,7 @@ const clearIconRight = computed(() => (props.iconType === 'endIcon' ? '40px' : '
|
|
|
170
184
|
<style lang="scss">
|
|
171
185
|
.dp__theme_light {
|
|
172
186
|
--dp-primary-color: rgba(139, 92, 246, 1);
|
|
173
|
-
}
|
|
187
|
+
}
|
|
174
188
|
|
|
175
189
|
.eui-datepicker {
|
|
176
190
|
@apply min-w-56;
|
|
@@ -187,7 +201,6 @@ const clearIconRight = computed(() => (props.iconType === 'endIcon' ? '40px' : '
|
|
|
187
201
|
right: v-bind(clearIconRight);
|
|
188
202
|
}
|
|
189
203
|
}
|
|
190
|
-
|
|
191
204
|
&.normal {
|
|
192
205
|
.dp__main {
|
|
193
206
|
.dp__input {
|
|
@@ -198,21 +211,24 @@ const clearIconRight = computed(() => (props.iconType === 'endIcon' ? '40px' : '
|
|
|
198
211
|
}
|
|
199
212
|
}
|
|
200
213
|
}
|
|
201
|
-
|
|
202
214
|
.dp__range_end,
|
|
203
215
|
.dp__range_start,
|
|
204
216
|
.dp__active_date {
|
|
205
217
|
background-color: var(--dp-primary-color);
|
|
206
218
|
color: #fff;
|
|
207
219
|
}
|
|
208
|
-
|
|
209
220
|
.dp__today {
|
|
210
221
|
border-color: var(--dp-primary-color);
|
|
211
222
|
}
|
|
212
|
-
|
|
213
223
|
.dp__action_select:hover {
|
|
214
224
|
background-color: var(--dp-primary-color);
|
|
215
225
|
color: #fff;
|
|
216
226
|
}
|
|
217
227
|
}
|
|
228
|
+
.dp__calendar_header {
|
|
229
|
+
@apply text-sm font-medium;
|
|
230
|
+
}
|
|
231
|
+
.dp__cell_inner {
|
|
232
|
+
@apply text-sm font-normal;
|
|
233
|
+
}
|
|
218
234
|
</style>
|
|
@@ -21,6 +21,20 @@
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
<div class="grid max-w-3xl gap-4 mx-auto mb-6 sm:grid-cols-3">
|
|
24
|
+
|
|
25
|
+
<div>
|
|
26
|
+
<EUIDatepicker
|
|
27
|
+
v-model:modelValue="datepickerRange"
|
|
28
|
+
label="Datepicker Range multi"
|
|
29
|
+
placeholder="Select Date here..."
|
|
30
|
+
:range="true"
|
|
31
|
+
:multi-calendars="true"
|
|
32
|
+
required
|
|
33
|
+
:icon="CalendarIcon"
|
|
34
|
+
iconType="startIcon"
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
24
38
|
<div>
|
|
25
39
|
<EUIDatepicker
|
|
26
40
|
v-model:modelValue="datepickerRange"
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
|
|
17
17
|
// Meta configuration for the EUItabs stories
|
|
18
18
|
const meta = {
|
|
19
|
-
title: "
|
|
19
|
+
title: "Components/Table",
|
|
20
20
|
component: EUITable,
|
|
21
21
|
tags: ["autodocs"],
|
|
22
22
|
argTypes: {
|
|
@@ -73,6 +73,11 @@ const meta = {
|
|
|
73
73
|
description:
|
|
74
74
|
"CSS height of the table (e.g., 'h-[calc(100svh-20rem)] max-h-[calc(100svh-20rem)]')",
|
|
75
75
|
},
|
|
76
|
+
tableLoading: {
|
|
77
|
+
control: "boolean",
|
|
78
|
+
description:
|
|
79
|
+
"Controls the visibility of the table loader. Set to `true` to show the loading state.",
|
|
80
|
+
},
|
|
76
81
|
},
|
|
77
82
|
} satisfies Meta<typeof EUITable>;
|
|
78
83
|
|