vueless 0.0.501 → 0.0.503

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.501",
3
+ "version": "0.0.503",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -232,7 +232,7 @@ defineExpose({
232
232
  <Transition v-bind="config.calendarTransition">
233
233
  <UCalendar
234
234
  v-show="isShownCalendar"
235
- ref="calendarRef"
235
+ ref="calendar"
236
236
  v-model="localValue"
237
237
  v-model:view="customView"
238
238
  :tabindex="-1"
@@ -411,15 +411,15 @@ function shiftRangeNext(to: Date, from: Date, daysDifference: number) {
411
411
  if (isPeriod.value.ownRange) {
412
412
  const nextDate = {
413
413
  title: "",
414
- startRange: addDays(to, daysDifference),
415
- endRange: addDays(from, daysDifference),
414
+ startRange: addDays(from, daysDifference),
415
+ endRange: addDays(to, daysDifference),
416
416
  };
417
417
 
418
418
  if (isDatePeriodOutOfRange(nextDate)) return;
419
419
 
420
420
  localValue.value = {
421
421
  from: nextDate.startRange,
422
- to: nextDate.startRange,
422
+ to: nextDate.endRange,
423
423
  };
424
424
 
425
425
  return;
@@ -451,8 +451,8 @@ function shiftRangePrev(to: Date, from: Date, daysDifference: number) {
451
451
  if (isPeriod.value.ownRange) {
452
452
  const previousDate = {
453
453
  title: "",
454
- startRange: addDays(to, daysDifference * -1),
455
- endRange: addDays(from, daysDifference * -1),
454
+ startRange: addDays(from, daysDifference * -1),
455
+ endRange: addDays(to, daysDifference * -1),
456
456
  };
457
457
 
458
458
  if (isDatePeriodOutOfRange(previousDate)) return;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.501",
4
+ "version": "0.0.503",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",