its_ui_vite 1.0.11 → 1.0.13

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": "its_ui_vite",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "main": "./src/libIndex.js",
5
5
  "module": "./src/libIndex.js",
6
6
  "files": [
@@ -532,7 +532,7 @@ function isDisableDay(ISO: string): boolean {
532
532
  const isMoreMax = maxDate.ts < currentDate.ts;
533
533
  const isLessMin = minDate.ts > currentDate.ts;
534
534
 
535
- return isMoreMax || isLessMin;
535
+ return (isMoreMax && maxDate.isValid) || (isLessMin && minDate.isValid);
536
536
  }
537
537
 
538
538
  function setTime(name: 'hour' | 'minute', value: string) {
@@ -556,7 +556,7 @@ function setTime(name: 'hour' | 'minute', value: string) {
556
556
 
557
557
  const currentDate = activeDate.value.toISO();
558
558
 
559
- activeDate.value = DateTime.fromISO(currentDate).set({ hour: +modelHour.value, minute: +modelMinute.value });
559
+ activeDate.value = DateTime.fromISO(currentDate).set({ [name]: validValue });
560
560
 
561
561
  dispatchEmit()
562
562
  }
@@ -624,7 +624,7 @@ function setSelect(dateName: 'month' | 'year', value: number) {
624
624
  }
625
625
  }
626
626
 
627
- activeDate.value = DateTime.fromISO(currentISO).set({ month: activeMonth.value, year: activeYear.value })
627
+ activeDate.value = DateTime.fromISO(currentISO).set({ month: activeMonth.value, year: activeYear.value });
628
628
  const currentDate = activeDate.value.toISO();
629
629
 
630
630
  monthDays.value = [];
@@ -566,7 +566,7 @@ defineExpose({
566
566
  .c-select__inp {
567
567
  &.open {
568
568
  .c-input__custom-icon .c-select__inp_icon svg {
569
- transform: rotate(0deg);
569
+ transform: rotate(180deg);
570
570
  }
571
571
  }
572
572
 
@@ -574,7 +574,7 @@ defineExpose({
574
574
  pointer-events: all;
575
575
 
576
576
  .c-select__inp_icon svg {
577
- transform: rotate(180deg);
577
+ transform: rotate(0deg);
578
578
  }
579
579
  }
580
580
  }