edvoyui-component-library-test-flight 0.0.157 → 0.0.158
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 +2130 -2128
- package/dist/library-vue-ts.umd.js +17 -17
- package/package.json +1 -1
- package/src/components/datepicker/EUIDatepicker.vue +4 -1
- package/src/components/searchTagSelect/EUISearchTagSelect.vue +10 -6
package/package.json
CHANGED
|
@@ -78,7 +78,9 @@
|
|
|
78
78
|
@update:model-value="handleDate"
|
|
79
79
|
/>
|
|
80
80
|
</div>
|
|
81
|
-
<
|
|
81
|
+
<template v-if="errors && errors.length">
|
|
82
|
+
<EUIErrorMessage :errors="errors" :name="name" class="mt-2" />
|
|
83
|
+
</template>
|
|
82
84
|
</div>
|
|
83
85
|
</template>
|
|
84
86
|
|
|
@@ -87,6 +89,7 @@ import { computed, ref, toRefs, watch } from 'vue'
|
|
|
87
89
|
import type { PropType } from 'vue'
|
|
88
90
|
import VueDatePicker from '@vuepic/vue-datepicker'
|
|
89
91
|
import '@vuepic/vue-datepicker/dist/main.css'
|
|
92
|
+
import EUIErrorMessage from '../errorMessage/EUIErrorMessage.vue';
|
|
90
93
|
|
|
91
94
|
const props = defineProps({
|
|
92
95
|
modelValue: {
|
|
@@ -190,9 +190,10 @@
|
|
|
190
190
|
</div>
|
|
191
191
|
</template>
|
|
192
192
|
</Popper>
|
|
193
|
-
<
|
|
194
|
-
|
|
195
|
-
</
|
|
193
|
+
<template v-if="errors && errors.length && !showDropDown">
|
|
194
|
+
<EUIErrorMessage :errors="errors" :name="name" class="mt-2" />
|
|
195
|
+
</template>
|
|
196
|
+
|
|
196
197
|
<slot v-if="$slots.labelhint" name="labelhint"></slot>
|
|
197
198
|
<div
|
|
198
199
|
v-if="selectType === 'multiple' && selectedValues.length > 0 && showTags"
|
|
@@ -234,7 +235,7 @@
|
|
|
234
235
|
<script setup lang="ts">
|
|
235
236
|
import { computed, ref, watch, nextTick, onMounted, onUnmounted } from "vue";
|
|
236
237
|
import { startCase } from "lodash";
|
|
237
|
-
import { ErrorObject } from "../../utils/types";
|
|
238
|
+
import { ErrorObject, ValidationErrors } from "../../utils/types";
|
|
238
239
|
import SearchInput from "./SearchInput.vue";
|
|
239
240
|
import SearchBigZoomIn from "../../assets/svg/SearchBigZoomIn.vue";
|
|
240
241
|
import ChevronDownStroke from "../../assets/svg/ChevronDownStroke.vue";
|
|
@@ -243,12 +244,14 @@ import EUITag from "../tag/EUITag.vue";
|
|
|
243
244
|
import Popper from "vue3-popper";
|
|
244
245
|
import CheckTick from "../../assets/svg/CheckTick.vue";
|
|
245
246
|
import { XMarkIcon } from "@heroicons/vue/20/solid";
|
|
247
|
+
import EUIErrorMessage from "../errorMessage/EUIErrorMessage.vue";
|
|
246
248
|
|
|
247
249
|
// Props
|
|
248
250
|
interface Props {
|
|
249
251
|
modelValue?: any;
|
|
250
252
|
items?: any[];
|
|
251
253
|
label?: string;
|
|
254
|
+
name?: string;
|
|
252
255
|
placement?:
|
|
253
256
|
| "auto"
|
|
254
257
|
| "auto-start"
|
|
@@ -269,7 +272,7 @@ interface Props {
|
|
|
269
272
|
placeholder?: string;
|
|
270
273
|
offsetSkid?: string;
|
|
271
274
|
offsetDistance?: string;
|
|
272
|
-
errors?:
|
|
275
|
+
errors?: ValidationErrors | ErrorObject[];
|
|
273
276
|
selectType?: "single" | "multiple";
|
|
274
277
|
filterFunction?: Function;
|
|
275
278
|
searchable?: boolean;
|
|
@@ -287,11 +290,11 @@ interface Props {
|
|
|
287
290
|
popperClasses?: string;
|
|
288
291
|
showCount?: boolean;
|
|
289
292
|
}
|
|
290
|
-
|
|
291
293
|
const props = withDefaults(defineProps<Props>(), {
|
|
292
294
|
items: () => [],
|
|
293
295
|
itemText: "name",
|
|
294
296
|
placeholder: "Please Select",
|
|
297
|
+
name: "",
|
|
295
298
|
offsetDistance: "4",
|
|
296
299
|
offsetSkid: "0",
|
|
297
300
|
filterFunction: () => {},
|
|
@@ -313,6 +316,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
313
316
|
showCount: false,
|
|
314
317
|
});
|
|
315
318
|
|
|
319
|
+
|
|
316
320
|
// Emits
|
|
317
321
|
const emit = defineEmits<{
|
|
318
322
|
"update:modelValue": [value: any];
|