vueless 0.0.414 → 0.0.415
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/package.json +1 -1
- package/ui.form-calendar/UCalendarMonthView.vue +3 -1
- package/ui.form-calendar/UCalendarYearView.vue +3 -1
- package/ui.form-date-picker/config.js +1 -1
- package/ui.form-date-picker-range/UDatePickerRange.vue +2 -1
- package/ui.form-date-picker-range/config.js +10 -6
- package/web-types.json +1 -1
package/package.json
CHANGED
|
@@ -281,7 +281,9 @@ function getMonthState(month, index) {
|
|
|
281
281
|
return isSameMonth(month, props.selectedDateTo);
|
|
282
282
|
});
|
|
283
283
|
|
|
284
|
-
const isMonthInRange =
|
|
284
|
+
const isMonthInRange =
|
|
285
|
+
(index >= startRangeIndex && index <= endRangeIndex) ||
|
|
286
|
+
(index >= startRangeIndex && endRangeIndex === -1);
|
|
285
287
|
const isSelectedMonth =
|
|
286
288
|
isSameMonth(month, localSelectedDate.value) && props.selectedDate !== null;
|
|
287
289
|
const isPresentMonth = isCurrentMonth(month);
|
|
@@ -281,7 +281,9 @@ function getYearState(year, index) {
|
|
|
281
281
|
return year.getFullYear() === props.selectedDateTo?.getFullYear();
|
|
282
282
|
});
|
|
283
283
|
|
|
284
|
-
const isYearInRange =
|
|
284
|
+
const isYearInRange =
|
|
285
|
+
(index >= startRangeIndex && index <= endRangeIndex) ||
|
|
286
|
+
(index >= startRangeIndex && endRangeIndex === -1);
|
|
285
287
|
const isSelectedYear = isSameMonth(year, localSelectedDate.value) && props.selectedDate !== null;
|
|
286
288
|
const isPresentYear = isCurrentYear(year);
|
|
287
289
|
const isMoreThanOneYearRange =
|
|
@@ -3,7 +3,7 @@ export default /*tw*/ {
|
|
|
3
3
|
input: "{UInput}",
|
|
4
4
|
activeInput: {
|
|
5
5
|
component: "{UInput}",
|
|
6
|
-
|
|
6
|
+
wrapper: "ring-dynamic rounded-dynamic ring-offset-dynamic ring-brand-700/15 border-brand-500 hover:border-brand-500",
|
|
7
7
|
},
|
|
8
8
|
calendar: {
|
|
9
9
|
component: "{UCalendar}",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
readonly
|
|
15
15
|
:left-icon="leftIcon"
|
|
16
16
|
:right-icon="rightIcon"
|
|
17
|
-
v-bind="inputAttrs"
|
|
17
|
+
v-bind="isShownMenu ? activeInputAttrs : inputAttrs"
|
|
18
18
|
@focus="activate"
|
|
19
19
|
>
|
|
20
20
|
<template #left>
|
|
@@ -413,6 +413,7 @@ const {
|
|
|
413
413
|
shiftRangeButtonAttrs,
|
|
414
414
|
rangeInputWrapperAttrs,
|
|
415
415
|
rangeInputErrorAttrs,
|
|
416
|
+
activeInputAttrs,
|
|
416
417
|
} = useAttrs(props, { isShownMenu, isTop, isRight, isPeriod });
|
|
417
418
|
|
|
418
419
|
const calendarValue = ref(props.modelValue);
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
wrapper: "relative",
|
|
3
3
|
input: "{UInput}",
|
|
4
|
+
activeInput: {
|
|
5
|
+
component: "{UInput}",
|
|
6
|
+
wrapper: "ring-dynamic rounded-dynamic ring-offset-dynamic ring-brand-700/15 border-brand-500 hover:border-brand-500",
|
|
7
|
+
},
|
|
4
8
|
buttonWrapper: `
|
|
5
9
|
flex rounded-dynamic max-md:justify-between
|
|
6
10
|
focus-within:ring-dynamic focus-within:ring-offset-dynamic focus-within:ring-brand-700/15
|
|
@@ -67,28 +71,28 @@ export default /*tw*/ {
|
|
|
67
71
|
rangeInputWrapper: "flex mt-4 -space-x-px group/range-input-wrapper",
|
|
68
72
|
rangeInputFirst: {
|
|
69
73
|
component: "{UInput}",
|
|
70
|
-
|
|
74
|
+
inputLabel: {
|
|
71
75
|
component: "{ULabel}",
|
|
72
|
-
wrapper: "w-full hover:z-10 focus:z-10",
|
|
76
|
+
wrapper: "w-full hover:z-10 focus:z-10 !rounded-none",
|
|
73
77
|
description: "hidden",
|
|
74
78
|
},
|
|
75
|
-
|
|
79
|
+
wrapper: "focus-within:z-10 focus-within:ring-0 rounded-r-none",
|
|
76
80
|
input: "rounded-r-none",
|
|
77
81
|
},
|
|
78
82
|
rangeInputLast: {
|
|
79
83
|
component: "{UInput}",
|
|
80
|
-
|
|
84
|
+
inputLabel: {
|
|
81
85
|
component: "{ULabel}",
|
|
82
86
|
wrapper: "w-full hover:z-10 focus:z-10",
|
|
83
87
|
description: "hidden",
|
|
84
88
|
},
|
|
85
|
-
|
|
89
|
+
wrapper: "focus-within:z-10 focus-within:ring-0 rounded-l-none",
|
|
86
90
|
input: "rounded-l-none",
|
|
87
91
|
},
|
|
88
92
|
rangeInputError: "text-xs font-normal leading-none mt-2 text-center text-red-500",
|
|
89
93
|
calendar: {
|
|
90
94
|
component: "{UCalendar}",
|
|
91
|
-
wrapper: "p-0 w-full border-none shadow-none",
|
|
95
|
+
wrapper: "p-0 w-full border-none shadow-none rounded-none",
|
|
92
96
|
navigation: "mb-0 border-none",
|
|
93
97
|
viewSwitchButton: {
|
|
94
98
|
base: "rounded-dynamic px-4",
|