@veritree/ui 0.76.1-4 → 0.76.1-6

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": "@veritree/ui",
3
- "version": "0.76.1-4",
3
+ "version": "0.76.1-6",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -18,7 +18,8 @@
18
18
  "@floating-ui/dom": "^1.6.5",
19
19
  "@linusborg/vue-simple-portal": "^0.1.5",
20
20
  "@sum.cumo/vue-datepicker": "^4.0.0",
21
- "@veritree/icons": "^0.62.0"
21
+ "@veritree/icons": "^0.62.0",
22
+ "dayjs": "^1.11.11"
22
23
  },
23
24
  "devDependencies": {
24
25
  "@babel/eslint-parser": "^7.23.10",
@@ -45,7 +45,7 @@ import VTPopoverTrigger from './../Popover/VTPopoverTrigger.vue';
45
45
  import VTPopoverContent from './../Popover/VTPopoverContent.vue';
46
46
  import Datepicker from '@sum.cumo/vue-datepicker';
47
47
  import { IconChevronLeft, IconChevronRight } from '@veritree/icons';
48
- import { format } from 'date-fns';
48
+ import dayjs from 'dayjs';
49
49
 
50
50
  export default {
51
51
  name: 'VTInputDate',
@@ -107,16 +107,8 @@ export default {
107
107
  },
108
108
  },
109
109
 
110
- // The date-fns library uses 'yyyy' for year and 'dd' for day, instead of 'YYYY' and 'DD' respectively,
111
- // following the Unicode Technical Standard #35 for date format patterns.
112
- // This is different from the format patterns used in the JavaScript Date object, which uses 'YYYY' and 'DD'.
113
- // For more information, refer to the date-fns documentation: https://date-fns.org/v3.6.0/docs/Unicode-Tokens
114
- // It's important to note the difference when using date formatting in different contexts.
115
110
  valueModelFormatted() {
116
- return format(
117
- this.value,
118
- this.format.replace('YYYY', 'yyyy').replace('DD', 'dd'), // replace to match date-fns format
119
- );
111
+ return dayjs(this.value).format(this.format);
120
112
  },
121
113
 
122
114
  disabledDates() {