edvoyui-component-library-test-flight 0.0.235 → 0.0.236
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/components/datepicker/EUIDatepicker.vue +5 -1
- package/dist/components/select/EUISelect.d.ts +11 -0
- package/dist/components/select/EUISelect.vue +16 -5
- package/dist/edvoy-ui.cjs.js +1 -1
- package/dist/edvoy-ui.css +1 -1
- package/dist/edvoy-ui.es.js +753 -747
- package/dist/edvoy-ui.umd.js +2 -2
- package/package.json +1 -1
|
@@ -276,10 +276,11 @@ const clearIconRight = computed(() =>
|
|
|
276
276
|
--dp-primary-color: rgba(139, 92, 246, 1);
|
|
277
277
|
--dp-row-margin: 2px 0;
|
|
278
278
|
--dp-cell-size: 36px;
|
|
279
|
+
--dp-disabled-color: theme("colors.gray.100");
|
|
279
280
|
}
|
|
280
281
|
|
|
281
282
|
.eui-datepicker {
|
|
282
|
-
@apply min-w-
|
|
283
|
+
@apply min-w-44;
|
|
283
284
|
.dp__main {
|
|
284
285
|
.dp__input {
|
|
285
286
|
@apply pb-2 pt-6 border-0 transition-colors duration-100 ease-in-out text-sm font-medium leading-6 placeholder:text-gray-400 placeholder:font-normal;
|
|
@@ -337,4 +338,7 @@ const clearIconRight = computed(() =>
|
|
|
337
338
|
.dp__calendar_row {
|
|
338
339
|
margin: var(--dp-row-margin);
|
|
339
340
|
}
|
|
341
|
+
.dp__disabled {
|
|
342
|
+
background: var(--dp-disabled-color)
|
|
343
|
+
}
|
|
340
344
|
</style>
|
|
@@ -107,6 +107,11 @@ declare const __VLS_component: import('../../../node_modules/vue').DefineCompone
|
|
|
107
107
|
required: false;
|
|
108
108
|
default: boolean;
|
|
109
109
|
};
|
|
110
|
+
readonly: {
|
|
111
|
+
type: PropType<boolean>;
|
|
112
|
+
required: false;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
110
115
|
isStartCaseText: {
|
|
111
116
|
type: PropType<boolean>;
|
|
112
117
|
required: false;
|
|
@@ -268,6 +273,11 @@ declare const __VLS_component: import('../../../node_modules/vue').DefineCompone
|
|
|
268
273
|
required: false;
|
|
269
274
|
default: boolean;
|
|
270
275
|
};
|
|
276
|
+
readonly: {
|
|
277
|
+
type: PropType<boolean>;
|
|
278
|
+
required: false;
|
|
279
|
+
default: boolean;
|
|
280
|
+
};
|
|
271
281
|
isStartCaseText: {
|
|
272
282
|
type: PropType<boolean>;
|
|
273
283
|
required: false;
|
|
@@ -354,6 +364,7 @@ declare const __VLS_component: import('../../../node_modules/vue').DefineCompone
|
|
|
354
364
|
required: boolean;
|
|
355
365
|
modelValue: string | unknown[] | Record<string, any>;
|
|
356
366
|
placeholder: string;
|
|
367
|
+
readonly: boolean;
|
|
357
368
|
inputFilled: boolean;
|
|
358
369
|
className: string[];
|
|
359
370
|
value: string | unknown[] | Record<string, any>;
|
|
@@ -23,10 +23,11 @@
|
|
|
23
23
|
:push-tags="pushtags"
|
|
24
24
|
:deselect-from-dropdown="true"
|
|
25
25
|
append-to-body
|
|
26
|
-
:searchable="searchable"
|
|
26
|
+
:searchable="readonly ? false : searchable"
|
|
27
27
|
:calculate-position="withPopper"
|
|
28
28
|
:loading="loading"
|
|
29
29
|
:disabled="disabled"
|
|
30
|
+
:aria-readonly="readonly"
|
|
30
31
|
:selectable="selectedLimit"
|
|
31
32
|
class="eui-style"
|
|
32
33
|
:class="[
|
|
@@ -34,11 +35,11 @@
|
|
|
34
35
|
? 'customselect'
|
|
35
36
|
: 'border border-gray-200 focus-within:border-purple-600 focus-within:ring-inset focus-within:ring-1 focus-within:ring-purple-600 z-10 focus-within:rounded',
|
|
36
37
|
inputFilled ? 'rounded-xl min-h-14' : 'rounded-md min-h-10',
|
|
37
|
-
'group relative w-full
|
|
38
|
-
|
|
38
|
+
'group relative w-full cursor-pointer overflow-hidden',
|
|
39
|
+
disabled ? 'bg-gray-100 cursor-not-allowed' : 'bg-white',
|
|
39
40
|
className,
|
|
40
41
|
]"
|
|
41
|
-
:clearable="clearable"
|
|
42
|
+
:clearable="readonly ? false : clearable"
|
|
42
43
|
:no-drop="nodropDown"
|
|
43
44
|
:components="customComponents"
|
|
44
45
|
@search="search($event)"
|
|
@@ -396,6 +397,11 @@ const props = defineProps({
|
|
|
396
397
|
required: false,
|
|
397
398
|
default: false,
|
|
398
399
|
},
|
|
400
|
+
readonly: {
|
|
401
|
+
type: Boolean as PropType<boolean>,
|
|
402
|
+
required: false,
|
|
403
|
+
default: false,
|
|
404
|
+
},
|
|
399
405
|
isStartCaseText: {
|
|
400
406
|
type: Boolean as PropType<boolean>,
|
|
401
407
|
required: false,
|
|
@@ -495,6 +501,10 @@ const isCheckedAll = (e: Event) => {
|
|
|
495
501
|
const isShowDropdown = ref(false);
|
|
496
502
|
|
|
497
503
|
const dropdownShouldOpen = (VueSelect: any) => {
|
|
504
|
+
if (props.readonly) {
|
|
505
|
+
isShowDropdown.value = false;
|
|
506
|
+
return false;
|
|
507
|
+
}
|
|
498
508
|
isShowDropdown.value = VueSelect.open;
|
|
499
509
|
return VueSelect.open;
|
|
500
510
|
};
|
|
@@ -716,6 +726,7 @@ const slectedChipHeight = computed(() =>
|
|
|
716
726
|
const dropDownIcon = computed(() => (props.clearable ? "flex" : "none"));
|
|
717
727
|
|
|
718
728
|
const selectBG = computed(() => {
|
|
729
|
+
if (props.disabled) return "var(--vs-disabled-bg)";
|
|
719
730
|
if (selected.value?.length === 0 || !!_.isEmpty(selected.value)) {
|
|
720
731
|
return "#ffffff";
|
|
721
732
|
}
|
|
@@ -831,7 +842,7 @@ const open = () => {
|
|
|
831
842
|
:root {
|
|
832
843
|
--vs-dropdown-color: theme("colors.gray.600");
|
|
833
844
|
--vs-dropdown-option--active-color: theme("colors.white");
|
|
834
|
-
--vs-disabled-bg: theme("colors.
|
|
845
|
+
--vs-disabled-bg: theme("colors.gray.100");
|
|
835
846
|
}
|
|
836
847
|
.scrollbar {
|
|
837
848
|
&--hide {
|