@veritree/ui 0.76.1-4 → 0.76.1-5

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-5",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -111,12 +111,12 @@ export default {
111
111
  // following the Unicode Technical Standard #35 for date format patterns.
112
112
  // This is different from the format patterns used in the JavaScript Date object, which uses 'YYYY' and 'DD'.
113
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.
114
+ // Using useAdditionalDayOfYearTokens and useAdditionalWeekYearTokens allows the date-fns library to use 'YYYY' and 'DD'.
115
115
  valueModelFormatted() {
116
- return format(
117
- this.value,
118
- this.format.replace('YYYY', 'yyyy').replace('DD', 'dd'), // replace to match date-fns format
119
- );
116
+ return format(this.value, this.format, {
117
+ useAdditionalDayOfYearTokens: true,
118
+ useAdditionalWeekYearTokens: true,
119
+ });
120
120
  },
121
121
 
122
122
  disabledDates() {