@antscorp/antsomi-ui 1.3.14 → 1.3.15
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.
|
@@ -161,7 +161,7 @@ export const getFormatDisplay = (operatorKey, type, valueType, formatInputDispla
|
|
|
161
161
|
formatDisplay = 'MMMM, YYYY';
|
|
162
162
|
break;
|
|
163
163
|
case 'YEAR_WEEK':
|
|
164
|
-
formatDisplay = `${WEEK_PLACEHOLDER}
|
|
164
|
+
formatDisplay = `${WEEK_PLACEHOLDER}w, YYYY`;
|
|
165
165
|
break;
|
|
166
166
|
case 'YEAR_MONTH_DAY':
|
|
167
167
|
formatDisplay = 'MMMM DD, YYYY';
|
|
@@ -185,7 +185,7 @@ export const getFormatDisplay = (operatorKey, type, valueType, formatInputDispla
|
|
|
185
185
|
formatDisplay = 'MMMM';
|
|
186
186
|
break;
|
|
187
187
|
case 'WEEK':
|
|
188
|
-
formatDisplay = `${WEEK_PLACEHOLDER}
|
|
188
|
+
formatDisplay = `${WEEK_PLACEHOLDER}w`;
|
|
189
189
|
break;
|
|
190
190
|
case 'MONTH_DAY':
|
|
191
191
|
formatDisplay = 'MMMM DD';
|
|
@@ -30,7 +30,7 @@ export const DropdownLabel = React.memo(({ valueType, date, format, type, showTi
|
|
|
30
30
|
case 'YEAR_WEEK': {
|
|
31
31
|
const dayObj = dayjs(date || new Date(), format).locale('en');
|
|
32
32
|
// const dayObj = dayjs(date || new Date(), format).locale(locale || 'en');
|
|
33
|
-
formatLabel = `${WEEK_PLACEHOLDER}
|
|
33
|
+
formatLabel = `${WEEK_PLACEHOLDER}w, YYYY`;
|
|
34
34
|
subLabel = `${dayjs(dayObj).day(0).format('MMMM DD, YYYY')} - ${dayjs(dayObj)
|
|
35
35
|
.day(6)
|
|
36
36
|
.format('MMMM DD, YYYY')}`;
|
|
@@ -51,7 +51,7 @@ export const DropdownLabel = React.memo(({ valueType, date, format, type, showTi
|
|
|
51
51
|
formatLabel = 'MMMM';
|
|
52
52
|
break;
|
|
53
53
|
case 'WEEK':
|
|
54
|
-
formatLabel = `${WEEK_PLACEHOLDER}
|
|
54
|
+
formatLabel = `${WEEK_PLACEHOLDER}w`;
|
|
55
55
|
break;
|
|
56
56
|
case 'MONTH_DAY':
|
|
57
57
|
formatLabel = 'MMMM DD';
|