@eui/tools 6.20.21 → 6.20.22
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/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.20.
|
|
1
|
+
6.20.22
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.20.22 (2024-09-03)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* align moment short and long date formats - MWP-11162 [MWP-11162](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11162) ([d7a8211a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d7a8211a4fceae5172ea93879eb729e657d19a59))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.20.21 (2024-08-12)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -79,19 +79,43 @@ registerLocaleData(localeFR_LU, localeFRExtra_LU);
|
|
|
79
79
|
registerLocaleData(localeFR_CH, localeFRExtra_CH);
|
|
80
80
|
registerLocaleData(localeFR_BE, localeFRExtra_BE);
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Within the MyWP environment, the 'L' and 'l' date formats have been modified to align with each other
|
|
84
|
+
* and to adhere to the CLDR-based date formats utilized by Angular.
|
|
85
|
+
* For instance, the 'shortDate' format now corresponds to 'DD/MM/YY' instead of the default
|
|
86
|
+
* Moment.js format of 'DD/MM/YYYY'.
|
|
87
|
+
*/
|
|
82
88
|
const longDateFormat = {
|
|
83
89
|
/** LTS: Specifies the format for displaying time with seconds. */
|
|
84
90
|
LT: 'HH:mm',
|
|
85
91
|
/** LT: Specifies the format for displaying time without seconds. */
|
|
86
92
|
LTS: 'HH:mm:ss',
|
|
93
|
+
/**
|
|
94
|
+
* This format typically produces a localized short date format that is more complete,
|
|
95
|
+
* often including the full month name and day of the month without any abbreviations.
|
|
96
|
+
* e.g. moment().format('L'); // Output: 09/03/2024
|
|
97
|
+
*/
|
|
87
98
|
/** L: Specifies the format for displaying the date in short format. */
|
|
88
|
-
L: 'DD/MM/
|
|
99
|
+
L: 'DD/MM/YY',
|
|
89
100
|
/** LL: Specifies the format for displaying the date in long format. */
|
|
90
101
|
LL: 'D MMMM YYYY',
|
|
91
102
|
/** LLL: Specifies the format for displaying the date and time. */
|
|
92
103
|
LLL: 'D MMMM YYYY HH:mm',
|
|
93
104
|
/** LLLL: Specifies the format for displaying the full date and time with the day of the week. */
|
|
94
105
|
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
|
106
|
+
/**
|
|
107
|
+
* This format usually renders a localized short date format that is even shorter,
|
|
108
|
+
* potentially using abbreviations for the month and/or day of the month.
|
|
109
|
+
* e.g. moment().format('l'); // Output: 9/3/2024
|
|
110
|
+
*/
|
|
111
|
+
/** l: Specifies the format for displaying the date in short format. */
|
|
112
|
+
l: 'DD/MM/YY',
|
|
113
|
+
/** ll: Specifies the format for displaying the date in long format. */
|
|
114
|
+
ll: 'D MMMM YYYY',
|
|
115
|
+
/** lll: Specifies the format for displaying the date and time. */
|
|
116
|
+
lll: 'D MMMM YYYY HH:mm',
|
|
117
|
+
/** llll: Specifies the format for displaying the full date and time with the day of the week. */
|
|
118
|
+
llll: 'dddd, D MMMM YYYY HH:mm',
|
|
95
119
|
}
|
|
96
120
|
|
|
97
121
|
moment.defineLocale('en-at', { parentLocale: 'en', longDateFormat });
|
|
@@ -122,6 +146,14 @@ moment.defineLocale('en-se', {
|
|
|
122
146
|
LLL: 'D MMMM YYYY HH:mm',
|
|
123
147
|
/** LLLL: Specifies the format for displaying the full date and time with the day of the week. */
|
|
124
148
|
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
|
149
|
+
/** l: Specifies the format for displaying the date in short format. */
|
|
150
|
+
l: 'Y-MM-DD',
|
|
151
|
+
/** ll: Specifies the format for displaying the date in long format. */
|
|
152
|
+
ll: 'D MMMM YYYY',
|
|
153
|
+
/** lll: Specifies the format for displaying the date and time. */
|
|
154
|
+
lll: 'D MMMM YYYY HH:mm',
|
|
155
|
+
/** llll: Specifies the format for displaying the full date and time with the day of the week. */
|
|
156
|
+
llll: 'dddd, D MMMM YYYY HH:mm',
|
|
125
157
|
}
|
|
126
158
|
});
|
|
127
159
|
moment.defineLocale('en-si', { parentLocale: 'en', longDateFormat });
|
|
@@ -79,19 +79,43 @@ registerLocaleData(localeFR_LU, localeFRExtra_LU);
|
|
|
79
79
|
registerLocaleData(localeFR_CH, localeFRExtra_CH);
|
|
80
80
|
registerLocaleData(localeFR_BE, localeFRExtra_BE);
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Within the MyWP environment, the 'L' and 'l' date formats have been modified to align with each other
|
|
84
|
+
* and to adhere to the CLDR-based date formats utilized by Angular.
|
|
85
|
+
* For instance, the 'shortDate' format now corresponds to 'DD/MM/YY' instead of the default
|
|
86
|
+
* Moment.js format of 'DD/MM/YYYY'.
|
|
87
|
+
*/
|
|
82
88
|
const longDateFormat = {
|
|
83
89
|
/** LTS: Specifies the format for displaying time with seconds. */
|
|
84
90
|
LT: 'HH:mm',
|
|
85
91
|
/** LT: Specifies the format for displaying time without seconds. */
|
|
86
92
|
LTS: 'HH:mm:ss',
|
|
93
|
+
/**
|
|
94
|
+
* This format typically produces a localized short date format that is more complete,
|
|
95
|
+
* often including the full month name and day of the month without any abbreviations.
|
|
96
|
+
* e.g. moment().format('L'); // Output: 09/03/2024
|
|
97
|
+
*/
|
|
87
98
|
/** L: Specifies the format for displaying the date in short format. */
|
|
88
|
-
L: 'DD/MM/
|
|
99
|
+
L: 'DD/MM/YY',
|
|
89
100
|
/** LL: Specifies the format for displaying the date in long format. */
|
|
90
101
|
LL: 'D MMMM YYYY',
|
|
91
102
|
/** LLL: Specifies the format for displaying the date and time. */
|
|
92
103
|
LLL: 'D MMMM YYYY HH:mm',
|
|
93
104
|
/** LLLL: Specifies the format for displaying the full date and time with the day of the week. */
|
|
94
105
|
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
|
106
|
+
/**
|
|
107
|
+
* This format usually renders a localized short date format that is even shorter,
|
|
108
|
+
* potentially using abbreviations for the month and/or day of the month.
|
|
109
|
+
* e.g. moment().format('l'); // Output: 9/3/2024
|
|
110
|
+
*/
|
|
111
|
+
/** l: Specifies the format for displaying the date in short format. */
|
|
112
|
+
l: 'DD/MM/YY',
|
|
113
|
+
/** ll: Specifies the format for displaying the date in long format. */
|
|
114
|
+
ll: 'D MMMM YYYY',
|
|
115
|
+
/** lll: Specifies the format for displaying the date and time. */
|
|
116
|
+
lll: 'D MMMM YYYY HH:mm',
|
|
117
|
+
/** llll: Specifies the format for displaying the full date and time with the day of the week. */
|
|
118
|
+
llll: 'dddd, D MMMM YYYY HH:mm',
|
|
95
119
|
}
|
|
96
120
|
|
|
97
121
|
moment.defineLocale('en-at', { parentLocale: 'en', longDateFormat });
|
|
@@ -122,6 +146,14 @@ moment.defineLocale('en-se', {
|
|
|
122
146
|
LLL: 'D MMMM YYYY HH:mm',
|
|
123
147
|
/** LLLL: Specifies the format for displaying the full date and time with the day of the week. */
|
|
124
148
|
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
|
149
|
+
/** l: Specifies the format for displaying the date in short format. */
|
|
150
|
+
l: 'Y-MM-DD',
|
|
151
|
+
/** ll: Specifies the format for displaying the date in long format. */
|
|
152
|
+
ll: 'D MMMM YYYY',
|
|
153
|
+
/** lll: Specifies the format for displaying the date and time. */
|
|
154
|
+
lll: 'D MMMM YYYY HH:mm',
|
|
155
|
+
/** llll: Specifies the format for displaying the full date and time with the day of the week. */
|
|
156
|
+
llll: 'dddd, D MMMM YYYY HH:mm',
|
|
125
157
|
}
|
|
126
158
|
});
|
|
127
159
|
moment.defineLocale('en-si', { parentLocale: 'en', longDateFormat });
|