@mui/x-date-pickers 7.12.1 → 7.14.0
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/CHANGELOG.md +162 -1
- package/TimeClock/Clock.js +5 -0
- package/index.js +1 -1
- package/internals/utils/date-utils.js +1 -0
- package/locales/heIL.js +1 -2
- package/locales/viVN.js +15 -19
- package/locales/zhHK.js +1 -2
- package/modern/TimeClock/Clock.js +5 -0
- package/modern/index.js +1 -1
- package/modern/internals/utils/date-utils.js +1 -0
- package/modern/locales/heIL.js +1 -2
- package/modern/locales/viVN.js +15 -19
- package/modern/locales/zhHK.js +1 -2
- package/node/TimeClock/Clock.js +5 -0
- package/node/index.js +1 -1
- package/node/internals/utils/date-utils.js +1 -0
- package/node/locales/heIL.js +1 -2
- package/node/locales/viVN.js +15 -19
- package/node/locales/zhHK.js +1 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,167 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 7.14.0
|
|
7
|
+
|
|
8
|
+
_Aug 23, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 💫 Allow [filtering the axis on zoom](https://mui.com/x/react-charts/zoom-and-pan/#zoom-filtering), making the axis adapt by removing values outside the view.
|
|
13
|
+
|
|
14
|
+
<img width="600" src="https://github.com/user-attachments/assets/e65bbd00-d2a8-4136-81cd-3598f1373c16" alt="filtering the axis on zoom" />
|
|
15
|
+
|
|
16
|
+
- 📊 Improve bar chart performances
|
|
17
|
+
- 🌍 Improve Czech (cs-CZ) and Hebrew (he-IL) locales on the Data Grid
|
|
18
|
+
- 🌍 Improve Chinese (zh-HK), Hebrew (he-IL), and Vietnamese (vi-VN) locales on the Date and Time Pickers
|
|
19
|
+
- 🐞 Bugfixes
|
|
20
|
+
|
|
21
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
22
|
+
|
|
23
|
+
### Data Grid
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid@7.14.0`
|
|
26
|
+
|
|
27
|
+
- [DataGrid] Use readonly array result for `getTreeDataPath` (#11743) @pcorpet
|
|
28
|
+
- [DataGrid] Use `event.key` for `Tab` and `Escape` keys (#14170) @k-rajat19
|
|
29
|
+
- [DataGrid] Introduce selectors with arguments (#14236) @MBilalShafi
|
|
30
|
+
- [DataGrid] include `api` in `gridCellParams` interface (#14201) @k-rajat19
|
|
31
|
+
- [l10n] Improve Czech (cs-CZ) locale (#14135) @chirimiri22
|
|
32
|
+
- [l10n] Improve Hebrew (he-IL) locale (#14287) @rotembarsela
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-pro@7.14.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid@7.14.0`.
|
|
37
|
+
|
|
38
|
+
#### `@mui/x-data-grid-premium@7.14.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
39
|
+
|
|
40
|
+
Same changes as in `@mui/x-data-grid-pro@7.14.0`, plus:
|
|
41
|
+
|
|
42
|
+
- [DataGridPremium] Fix clipboard paste not working for a single cell on non-first page (#14261) @arminmeh
|
|
43
|
+
- [DataGridPremium] Fix `onCellSelectionModelChange` not triggered when additional cell range is selected (#14199) @arminmeh
|
|
44
|
+
|
|
45
|
+
### Date and Time Pickers
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-date-pickers@7.14.0`
|
|
48
|
+
|
|
49
|
+
- [l10n] Improve Chinese (zh-HK) locale (#13289) @yeeharn
|
|
50
|
+
- [l10n] Improve Hebrew (he-IL) locale (#14287) @rotembarsela
|
|
51
|
+
- [l10n] Improve Vietnamese (vi-VN) locale (#14238) @locnbk2002
|
|
52
|
+
- [TimePicker] Handle `Space` and `Enter` on the `TimeClock` component @arthurbalduini
|
|
53
|
+
|
|
54
|
+
#### `@mui/x-date-pickers-pro@7.14.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
55
|
+
|
|
56
|
+
Same changes as in `@mui/x-date-pickers@7.14.0`.
|
|
57
|
+
|
|
58
|
+
### Charts
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-charts@7.14.0`
|
|
61
|
+
|
|
62
|
+
- [charts] Fix grid overflow with zooming (#14280) @alexfauquette
|
|
63
|
+
- [charts] Improve bar chart performances (#14278) @alexfauquette
|
|
64
|
+
- [charts] Test pointer events (#14042) @alexfauquette
|
|
65
|
+
- [charts] Use `isPointInside` function for both graphs and axis (#14222) @JCQuintas
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-charts-pro@7.0.0-alpha.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-charts@7.14.0`, plus:
|
|
70
|
+
|
|
71
|
+
- [charts-pro] Zoom axis filtering (#14121) @JCQuintas
|
|
72
|
+
|
|
73
|
+
### Docs
|
|
74
|
+
|
|
75
|
+
- [docs] Consistent use of UTC and timezones (#14250) @oliviertassinari
|
|
76
|
+
- [docs] Fix missing leading slashes in URLs (#14249) @oliviertassinari
|
|
77
|
+
- [docs] Dash usage revision on pickers pages (#14260) @arthurbalduini
|
|
78
|
+
|
|
79
|
+
### Core
|
|
80
|
+
|
|
81
|
+
- [core] Follow JSDocs convention @oliviertassinari
|
|
82
|
+
- [core] Prepare for material v6 (#14143) @LukasTy
|
|
83
|
+
- [code-infra] Set up `eslint-plugin-testing-library` (#14232) @LukasTy
|
|
84
|
+
- [infra] Updated mui-x roadmap links with new project URL (#14271) @michelengelen
|
|
85
|
+
|
|
86
|
+
## 7.13.0
|
|
87
|
+
|
|
88
|
+
_Aug 16, 2024_
|
|
89
|
+
|
|
90
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
91
|
+
|
|
92
|
+
- 💫 Allow to [edit the label](https://mui.com/x/react-tree-view/rich-tree-view/editing/) of Tree View's items.
|
|
93
|
+
|
|
94
|
+
<img width="344" src="https://github.com/user-attachments/assets/1a6cf765-2dc8-4906-bd93-139086eed148" alt="Item label editing" />
|
|
95
|
+
|
|
96
|
+
- 🔧 Improve rows accessibility on the Data Grid features "Tree Data" and "Row Grouping". Certain "Row Grouping" accessibility updates will only be applied if experimental feature flag is enabled. See the [documentation](https://mui.com/x/react-data-grid/row-grouping/#accessibility-changes-in-v8) for more information.
|
|
97
|
+
- 🌍 Improve Vietnamese (vi-VN) locale on the Data Grid
|
|
98
|
+
- 🐞 Bugfixes
|
|
99
|
+
|
|
100
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
101
|
+
|
|
102
|
+
### Data Grid
|
|
103
|
+
|
|
104
|
+
#### `@mui/x-data-grid@7.13.0`
|
|
105
|
+
|
|
106
|
+
- [DataGrid] Fix CSV export for `null` and `undefined` values (#14166) @k-rajat19
|
|
107
|
+
- [DataGrid] Fix error logged during skeleton loading with nested data grid (#14186) @KenanYusuf
|
|
108
|
+
- [DataGrid] Remove needless check in `useGridStateInitialization` (#14181) @k-rajat19
|
|
109
|
+
- [DataGrid] Add recipe for persisting filters in local storage (#14208) @cherniavskii
|
|
110
|
+
- [l10n] Improve Vietnamese (vi-VN) locale (#14216) @hungnd-casso
|
|
111
|
+
|
|
112
|
+
#### `@mui/x-data-grid-pro@7.13.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
113
|
+
|
|
114
|
+
Same changes as in `@mui/x-data-grid@7.13.0`, plus:
|
|
115
|
+
|
|
116
|
+
- [DataGridPro] Fix Tree Data and Row Grouping rows accessibility (#13623) @arminmeh
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-data-grid-premium@7.13.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
119
|
+
|
|
120
|
+
Same changes as in `@mui/x-data-grid-pro@7.13.0`.
|
|
121
|
+
|
|
122
|
+
### Date and Time Pickers
|
|
123
|
+
|
|
124
|
+
#### `@mui/x-date-pickers@7.13.0`
|
|
125
|
+
|
|
126
|
+
- [pickers] Fix date and time merging to retain milliseconds (#14173) @LukasTy
|
|
127
|
+
|
|
128
|
+
#### `@mui/x-date-pickers-pro@7.13.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
129
|
+
|
|
130
|
+
Same changes as in `@mui/x-date-pickers@7.13.0`.
|
|
131
|
+
|
|
132
|
+
### Charts
|
|
133
|
+
|
|
134
|
+
#### `@mui/x-charts@7.13.0`
|
|
135
|
+
|
|
136
|
+
- [charts] Add `baseline` property to the `LineChart` `series` (#14153) @JCQuintas
|
|
137
|
+
- [charts] Fix issue where tooltip would disappear on mouse click (#14187) @alexfauquette
|
|
138
|
+
- [charts] Rename `CartesianContextProvider` to `CartesianProvider` (#14102) @JCQuintas
|
|
139
|
+
- [charts] Support axis with the same value for all data points (#14191) @alexfauquette
|
|
140
|
+
|
|
141
|
+
#### `@mui/x-charts-pro@7.0.0-alpha.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
142
|
+
|
|
143
|
+
Same changes as in `@mui/x-charts@7.13.0`.
|
|
144
|
+
|
|
145
|
+
### Tree View
|
|
146
|
+
|
|
147
|
+
#### `@mui/x-tree-view@7.13.0`
|
|
148
|
+
|
|
149
|
+
- [TreeView] Add label editing feature (#13388) @noraleonte
|
|
150
|
+
- [TreeView] Fix the parameters passed for the `canMoveItemToNewPosition` prop (#14176) @flaviendelangle
|
|
151
|
+
|
|
152
|
+
### Docs
|
|
153
|
+
|
|
154
|
+
- [docs] Extract dataset in the Line chart docs (#14034) @alexfauquette
|
|
155
|
+
- [docs] Remove redundant encoding in the mock data source server (#14185) @MBilalShafi
|
|
156
|
+
- [docs] Use Netflix financial results to document bar charts (#13991) @alexfauquette
|
|
157
|
+
- [docs] Remove relience of abbreviations (#14226) @oliviertassinari
|
|
158
|
+
|
|
159
|
+
### Core
|
|
160
|
+
|
|
161
|
+
- [core] Bump monorepo (#14141) @Janpot
|
|
162
|
+
- [core] Fix ESLint issue (#14207) @LukasTy
|
|
163
|
+
- [core] Fix Netlify build cache issue (#14182) @cherniavskii
|
|
164
|
+
- [code-infra] Refactor Netlify `cache-docs` plugin setup (#14105) @LukasTy
|
|
165
|
+
- [internals] Move utils needed for tree view virtualization to shared package (#14202) @flaviendelangle
|
|
166
|
+
|
|
6
167
|
## 7.12.1
|
|
7
168
|
|
|
8
169
|
_Aug 8, 2024_
|
|
@@ -51,7 +212,7 @@ Same changes as in `@mui/x-date-pickers@7.12.1`.
|
|
|
51
212
|
- [charts] Fix charts vendor publish config (#14073) @JCQuintas
|
|
52
213
|
- [charts] Move `plugins` to `PluginProvider` (#14056) @JCQuintas
|
|
53
214
|
|
|
54
|
-
#### `@mui/x-
|
|
215
|
+
#### `@mui/x-charts-pro@7.0.0-alpha.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
55
216
|
|
|
56
217
|
Same changes as in `@mui/x-charts@7.12.1`, plus:
|
|
57
218
|
|
package/TimeClock/Clock.js
CHANGED
|
@@ -274,6 +274,11 @@ export function Clock(inProps) {
|
|
|
274
274
|
handleValueChange(viewValue - keyboardControlStep, 'partial');
|
|
275
275
|
event.preventDefault();
|
|
276
276
|
break;
|
|
277
|
+
case 'Enter':
|
|
278
|
+
case ' ':
|
|
279
|
+
handleValueChange(viewValue, 'finish');
|
|
280
|
+
event.preventDefault();
|
|
281
|
+
break;
|
|
277
282
|
default:
|
|
278
283
|
// do nothing
|
|
279
284
|
}
|
package/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export const mergeDateAndTime = (utils, dateParam, timeParam) => {
|
|
|
4
4
|
mergedDate = utils.setHours(mergedDate, utils.getHours(timeParam));
|
|
5
5
|
mergedDate = utils.setMinutes(mergedDate, utils.getMinutes(timeParam));
|
|
6
6
|
mergedDate = utils.setSeconds(mergedDate, utils.getSeconds(timeParam));
|
|
7
|
+
mergedDate = utils.setMilliseconds(mergedDate, utils.getMilliseconds(timeParam));
|
|
7
8
|
return mergedDate;
|
|
8
9
|
};
|
|
9
10
|
export const findClosestEnabledDate = ({
|
package/locales/heIL.js
CHANGED
package/locales/viVN.js
CHANGED
|
@@ -16,11 +16,10 @@ const viVNPickers = {
|
|
|
16
16
|
// DateRange labels
|
|
17
17
|
start: 'Bắt đầu',
|
|
18
18
|
end: 'Kết thúc',
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
startDate: 'Ngày bắt đầu',
|
|
20
|
+
startTime: 'Thời gian bắt đầu',
|
|
21
|
+
endDate: 'Ngày kết thúc',
|
|
22
|
+
endTime: 'Thời gian kết thúc',
|
|
24
23
|
// Action bar
|
|
25
24
|
cancelButtonLabel: 'Hủy',
|
|
26
25
|
clearButtonLabel: 'Xóa',
|
|
@@ -46,8 +45,7 @@ const viVNPickers = {
|
|
|
46
45
|
// Open picker labels
|
|
47
46
|
openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Chọn ngày, ngày đã chọn là ${utils.format(value, 'fullDate')}` : 'Chọn ngày',
|
|
48
47
|
openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Chọn giờ, giờ đã chọn là ${utils.format(value, 'fullTime')}` : 'Chọn giờ',
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
fieldClearLabel: 'Xóa giá trị',
|
|
51
49
|
// Table labels
|
|
52
50
|
timeTableLabel: 'chọn giờ',
|
|
53
51
|
dateTableLabel: 'chọn ngày',
|
|
@@ -59,19 +57,17 @@ const viVNPickers = {
|
|
|
59
57
|
fieldHoursPlaceholder: () => 'hh',
|
|
60
58
|
fieldMinutesPlaceholder: () => 'mm',
|
|
61
59
|
fieldSecondsPlaceholder: () => 'ss',
|
|
62
|
-
fieldMeridiemPlaceholder: () => 'aa'
|
|
63
|
-
|
|
60
|
+
fieldMeridiemPlaceholder: () => 'aa',
|
|
64
61
|
// View names
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
62
|
+
year: 'Năm',
|
|
63
|
+
month: 'Tháng',
|
|
64
|
+
day: 'Ngày',
|
|
65
|
+
weekDay: 'Thứ',
|
|
66
|
+
hours: 'Giờ',
|
|
67
|
+
minutes: 'Phút',
|
|
68
|
+
seconds: 'Giây',
|
|
69
|
+
meridiem: 'Buổi',
|
|
74
70
|
// Common
|
|
75
|
-
|
|
71
|
+
empty: 'Trống'
|
|
76
72
|
};
|
|
77
73
|
export const viVN = getPickersLocalization(viVNPickers);
|
package/locales/zhHK.js
CHANGED
|
@@ -45,8 +45,7 @@ const zhHKPickers = {
|
|
|
45
45
|
// Open picker labels
|
|
46
46
|
openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `選擇日期,已選擇${utils.format(value, 'fullDate')}` : '選擇日期',
|
|
47
47
|
openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `選擇時間,已選擇${utils.format(value, 'fullTime')}` : '選擇時間',
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
fieldClearLabel: '清除',
|
|
50
49
|
// Table labels
|
|
51
50
|
timeTableLabel: '選擇時間',
|
|
52
51
|
dateTableLabel: '選擇日期',
|
|
@@ -274,6 +274,11 @@ export function Clock(inProps) {
|
|
|
274
274
|
handleValueChange(viewValue - keyboardControlStep, 'partial');
|
|
275
275
|
event.preventDefault();
|
|
276
276
|
break;
|
|
277
|
+
case 'Enter':
|
|
278
|
+
case ' ':
|
|
279
|
+
handleValueChange(viewValue, 'finish');
|
|
280
|
+
event.preventDefault();
|
|
281
|
+
break;
|
|
277
282
|
default:
|
|
278
283
|
// do nothing
|
|
279
284
|
}
|
package/modern/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export const mergeDateAndTime = (utils, dateParam, timeParam) => {
|
|
|
4
4
|
mergedDate = utils.setHours(mergedDate, utils.getHours(timeParam));
|
|
5
5
|
mergedDate = utils.setMinutes(mergedDate, utils.getMinutes(timeParam));
|
|
6
6
|
mergedDate = utils.setSeconds(mergedDate, utils.getSeconds(timeParam));
|
|
7
|
+
mergedDate = utils.setMilliseconds(mergedDate, utils.getMilliseconds(timeParam));
|
|
7
8
|
return mergedDate;
|
|
8
9
|
};
|
|
9
10
|
export const findClosestEnabledDate = ({
|
package/modern/locales/heIL.js
CHANGED
package/modern/locales/viVN.js
CHANGED
|
@@ -16,11 +16,10 @@ const viVNPickers = {
|
|
|
16
16
|
// DateRange labels
|
|
17
17
|
start: 'Bắt đầu',
|
|
18
18
|
end: 'Kết thúc',
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
startDate: 'Ngày bắt đầu',
|
|
20
|
+
startTime: 'Thời gian bắt đầu',
|
|
21
|
+
endDate: 'Ngày kết thúc',
|
|
22
|
+
endTime: 'Thời gian kết thúc',
|
|
24
23
|
// Action bar
|
|
25
24
|
cancelButtonLabel: 'Hủy',
|
|
26
25
|
clearButtonLabel: 'Xóa',
|
|
@@ -46,8 +45,7 @@ const viVNPickers = {
|
|
|
46
45
|
// Open picker labels
|
|
47
46
|
openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Chọn ngày, ngày đã chọn là ${utils.format(value, 'fullDate')}` : 'Chọn ngày',
|
|
48
47
|
openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Chọn giờ, giờ đã chọn là ${utils.format(value, 'fullTime')}` : 'Chọn giờ',
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
fieldClearLabel: 'Xóa giá trị',
|
|
51
49
|
// Table labels
|
|
52
50
|
timeTableLabel: 'chọn giờ',
|
|
53
51
|
dateTableLabel: 'chọn ngày',
|
|
@@ -59,19 +57,17 @@ const viVNPickers = {
|
|
|
59
57
|
fieldHoursPlaceholder: () => 'hh',
|
|
60
58
|
fieldMinutesPlaceholder: () => 'mm',
|
|
61
59
|
fieldSecondsPlaceholder: () => 'ss',
|
|
62
|
-
fieldMeridiemPlaceholder: () => 'aa'
|
|
63
|
-
|
|
60
|
+
fieldMeridiemPlaceholder: () => 'aa',
|
|
64
61
|
// View names
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
62
|
+
year: 'Năm',
|
|
63
|
+
month: 'Tháng',
|
|
64
|
+
day: 'Ngày',
|
|
65
|
+
weekDay: 'Thứ',
|
|
66
|
+
hours: 'Giờ',
|
|
67
|
+
minutes: 'Phút',
|
|
68
|
+
seconds: 'Giây',
|
|
69
|
+
meridiem: 'Buổi',
|
|
74
70
|
// Common
|
|
75
|
-
|
|
71
|
+
empty: 'Trống'
|
|
76
72
|
};
|
|
77
73
|
export const viVN = getPickersLocalization(viVNPickers);
|
package/modern/locales/zhHK.js
CHANGED
|
@@ -45,8 +45,7 @@ const zhHKPickers = {
|
|
|
45
45
|
// Open picker labels
|
|
46
46
|
openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `選擇日期,已選擇${utils.format(value, 'fullDate')}` : '選擇日期',
|
|
47
47
|
openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `選擇時間,已選擇${utils.format(value, 'fullTime')}` : '選擇時間',
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
fieldClearLabel: '清除',
|
|
50
49
|
// Table labels
|
|
51
50
|
timeTableLabel: '選擇時間',
|
|
52
51
|
dateTableLabel: '選擇日期',
|
package/node/TimeClock/Clock.js
CHANGED
|
@@ -283,6 +283,11 @@ function Clock(inProps) {
|
|
|
283
283
|
handleValueChange(viewValue - keyboardControlStep, 'partial');
|
|
284
284
|
event.preventDefault();
|
|
285
285
|
break;
|
|
286
|
+
case 'Enter':
|
|
287
|
+
case ' ':
|
|
288
|
+
handleValueChange(viewValue, 'finish');
|
|
289
|
+
event.preventDefault();
|
|
290
|
+
break;
|
|
286
291
|
default:
|
|
287
292
|
// do nothing
|
|
288
293
|
}
|
package/node/index.js
CHANGED
|
@@ -10,6 +10,7 @@ const mergeDateAndTime = (utils, dateParam, timeParam) => {
|
|
|
10
10
|
mergedDate = utils.setHours(mergedDate, utils.getHours(timeParam));
|
|
11
11
|
mergedDate = utils.setMinutes(mergedDate, utils.getMinutes(timeParam));
|
|
12
12
|
mergedDate = utils.setSeconds(mergedDate, utils.getSeconds(timeParam));
|
|
13
|
+
mergedDate = utils.setMilliseconds(mergedDate, utils.getMilliseconds(timeParam));
|
|
13
14
|
return mergedDate;
|
|
14
15
|
};
|
|
15
16
|
exports.mergeDateAndTime = mergeDateAndTime;
|
package/node/locales/heIL.js
CHANGED
package/node/locales/viVN.js
CHANGED
|
@@ -22,11 +22,10 @@ const viVNPickers = {
|
|
|
22
22
|
// DateRange labels
|
|
23
23
|
start: 'Bắt đầu',
|
|
24
24
|
end: 'Kết thúc',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
startDate: 'Ngày bắt đầu',
|
|
26
|
+
startTime: 'Thời gian bắt đầu',
|
|
27
|
+
endDate: 'Ngày kết thúc',
|
|
28
|
+
endTime: 'Thời gian kết thúc',
|
|
30
29
|
// Action bar
|
|
31
30
|
cancelButtonLabel: 'Hủy',
|
|
32
31
|
clearButtonLabel: 'Xóa',
|
|
@@ -52,8 +51,7 @@ const viVNPickers = {
|
|
|
52
51
|
// Open picker labels
|
|
53
52
|
openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Chọn ngày, ngày đã chọn là ${utils.format(value, 'fullDate')}` : 'Chọn ngày',
|
|
54
53
|
openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Chọn giờ, giờ đã chọn là ${utils.format(value, 'fullTime')}` : 'Chọn giờ',
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
fieldClearLabel: 'Xóa giá trị',
|
|
57
55
|
// Table labels
|
|
58
56
|
timeTableLabel: 'chọn giờ',
|
|
59
57
|
dateTableLabel: 'chọn ngày',
|
|
@@ -65,19 +63,17 @@ const viVNPickers = {
|
|
|
65
63
|
fieldHoursPlaceholder: () => 'hh',
|
|
66
64
|
fieldMinutesPlaceholder: () => 'mm',
|
|
67
65
|
fieldSecondsPlaceholder: () => 'ss',
|
|
68
|
-
fieldMeridiemPlaceholder: () => 'aa'
|
|
69
|
-
|
|
66
|
+
fieldMeridiemPlaceholder: () => 'aa',
|
|
70
67
|
// View names
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
68
|
+
year: 'Năm',
|
|
69
|
+
month: 'Tháng',
|
|
70
|
+
day: 'Ngày',
|
|
71
|
+
weekDay: 'Thứ',
|
|
72
|
+
hours: 'Giờ',
|
|
73
|
+
minutes: 'Phút',
|
|
74
|
+
seconds: 'Giây',
|
|
75
|
+
meridiem: 'Buổi',
|
|
80
76
|
// Common
|
|
81
|
-
|
|
77
|
+
empty: 'Trống'
|
|
82
78
|
};
|
|
83
79
|
const viVN = exports.viVN = (0, _getPickersLocalization.getPickersLocalization)(viVNPickers);
|
package/node/locales/zhHK.js
CHANGED
|
@@ -51,8 +51,7 @@ const zhHKPickers = {
|
|
|
51
51
|
// Open picker labels
|
|
52
52
|
openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `選擇日期,已選擇${utils.format(value, 'fullDate')}` : '選擇日期',
|
|
53
53
|
openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `選擇時間,已選擇${utils.format(value, 'fullTime')}` : '選擇時間',
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
fieldClearLabel: '清除',
|
|
56
55
|
// Table labels
|
|
57
56
|
timeTableLabel: '選擇時間',
|
|
58
57
|
dateTableLabel: '選擇日期',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.14.0",
|
|
4
4
|
"description": "The community edition of the Date and Time Picker components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@babel/runtime": "^7.25.0",
|
|
39
|
-
"@mui/system": "^5.16.
|
|
40
|
-
"@mui/utils": "^5.16.
|
|
41
|
-
"@types/react-transition-group": "^4.4.
|
|
39
|
+
"@mui/system": "^5.16.7",
|
|
40
|
+
"@mui/utils": "^5.16.6",
|
|
41
|
+
"@types/react-transition-group": "^4.4.11",
|
|
42
42
|
"clsx": "^2.1.1",
|
|
43
43
|
"prop-types": "^15.8.1",
|
|
44
44
|
"react-transition-group": "^4.4.5"
|