@mui/x-date-pickers 8.27.2 → 9.0.0-alpha.1
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/AdapterDayjs/AdapterDayjs.d.ts +1 -1
- package/AdapterDayjsBuddhist/AdapterDayjsBuddhist.d.ts +33 -0
- package/AdapterDayjsBuddhist/AdapterDayjsBuddhist.js +94 -0
- package/AdapterDayjsBuddhist/index.d.ts +1 -0
- package/AdapterDayjsBuddhist/index.js +12 -0
- package/CHANGELOG.md +279 -34
- package/DateField/index.d.ts +1 -1
- package/DateTimeField/index.d.ts +1 -1
- package/TimeField/index.d.ts +1 -1
- package/esm/AdapterDayjs/AdapterDayjs.d.ts +1 -1
- package/esm/AdapterDayjsBuddhist/AdapterDayjsBuddhist.d.ts +33 -0
- package/esm/AdapterDayjsBuddhist/AdapterDayjsBuddhist.js +83 -0
- package/esm/AdapterDayjsBuddhist/index.d.ts +1 -0
- package/esm/AdapterDayjsBuddhist/index.js +1 -0
- package/esm/DateField/index.d.ts +1 -1
- package/esm/DateTimeField/index.d.ts +1 -1
- package/esm/TimeField/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/locales/thTH.d.ts +83 -0
- package/esm/locales/thTH.js +76 -0
- package/index.js +1 -1
- package/locales/thTH.d.ts +83 -0
- package/locales/thTH.js +82 -0
- package/package.json +15 -7
|
@@ -63,7 +63,7 @@ export declare class AdapterDayjs implements MuiPickersAdapter<string> {
|
|
|
63
63
|
* We have to parse again the value to make sure the `fixOffset` method is applied.
|
|
64
64
|
* See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
protected adjustOffset: (value: Dayjs) => dayjs.Dayjs;
|
|
67
67
|
date: <T extends string | null | undefined>(value?: T, timezone?: PickersTimezone) => DateBuilderReturnType<T>;
|
|
68
68
|
getInvalidDate: () => dayjs.Dayjs;
|
|
69
69
|
getTimezone: (value: Dayjs) => string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import dayjs, { Dayjs } from 'dayjs';
|
|
2
|
+
import { AdapterDayjs } from "../AdapterDayjs/index.js";
|
|
3
|
+
import { AdapterOptions } from "../models/index.js";
|
|
4
|
+
declare module '@mui/x-date-pickers/models' {
|
|
5
|
+
interface PickerValidDateLookup {
|
|
6
|
+
'dayjs-buddhist': Dayjs;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Adapter for dayjs with Buddhist Era calendar support.
|
|
11
|
+
* Buddhist Era is used in Thailand and other Southeast Asian countries.
|
|
12
|
+
* It uses the same months and days as the Gregorian calendar but with a year offset of 543.
|
|
13
|
+
*/
|
|
14
|
+
export declare class AdapterDayjsBuddhist extends AdapterDayjs {
|
|
15
|
+
constructor({
|
|
16
|
+
locale,
|
|
17
|
+
formats
|
|
18
|
+
}?: AdapterOptions<string, never>);
|
|
19
|
+
/**
|
|
20
|
+
* Returns the Buddhist year (Gregorian year + 543)
|
|
21
|
+
*/
|
|
22
|
+
getYear: (value: Dayjs) => number;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the Buddhist year (converts to Gregorian year internally)
|
|
25
|
+
*/
|
|
26
|
+
setYear: (value: Dayjs, year: number) => dayjs.Dayjs;
|
|
27
|
+
/**
|
|
28
|
+
* Parses a date string with Buddhist year support.
|
|
29
|
+
* The buddhistEra plugin only supports formatting, not parsing,
|
|
30
|
+
* so we convert BBBB/BB to YYYY/YY and adjust the year after parsing.
|
|
31
|
+
*/
|
|
32
|
+
parse: (value: string, format: string) => dayjs.Dayjs | null;
|
|
33
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.AdapterDayjsBuddhist = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
10
|
+
var _buddhistEra = _interopRequireDefault(require("dayjs/plugin/buddhistEra.js"));
|
|
11
|
+
var _AdapterDayjs = require("../AdapterDayjs");
|
|
12
|
+
/* v8 ignore start */
|
|
13
|
+
|
|
14
|
+
// dayjs has no exports field defined
|
|
15
|
+
// See https://github.com/iamkun/dayjs/issues/2562
|
|
16
|
+
/* eslint-disable import/extensions */
|
|
17
|
+
|
|
18
|
+
/* v8 ignore stop */
|
|
19
|
+
/* eslint-enable import/extensions */
|
|
20
|
+
|
|
21
|
+
_dayjs.default.extend(_buddhistEra.default);
|
|
22
|
+
const BUDDHIST_YEAR_OFFSET = 543;
|
|
23
|
+
const buddhistTokens = {
|
|
24
|
+
BB: 'year',
|
|
25
|
+
BBBB: {
|
|
26
|
+
sectionType: 'year',
|
|
27
|
+
contentType: 'digit',
|
|
28
|
+
maxLength: 4
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const buddhistFormats = {
|
|
32
|
+
year: 'BBBB',
|
|
33
|
+
fullDate: 'D MMM BBBB',
|
|
34
|
+
keyboardDate: 'DD/MM/BBBB',
|
|
35
|
+
keyboardDateTime12h: 'DD/MM/BBBB hh:mm A',
|
|
36
|
+
keyboardDateTime24h: 'DD/MM/BBBB HH:mm'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Adapter for dayjs with Buddhist Era calendar support.
|
|
40
|
+
* Buddhist Era is used in Thailand and other Southeast Asian countries.
|
|
41
|
+
* It uses the same months and days as the Gregorian calendar but with a year offset of 543.
|
|
42
|
+
*/
|
|
43
|
+
class AdapterDayjsBuddhist extends _AdapterDayjs.AdapterDayjs {
|
|
44
|
+
constructor({
|
|
45
|
+
locale,
|
|
46
|
+
formats
|
|
47
|
+
} = {}) {
|
|
48
|
+
super({
|
|
49
|
+
locale,
|
|
50
|
+
formats: (0, _extends2.default)({}, buddhistFormats, formats)
|
|
51
|
+
});
|
|
52
|
+
this.lib = 'dayjs-buddhist';
|
|
53
|
+
this.formatTokenMap = (0, _extends2.default)({}, this.formatTokenMap, buddhistTokens);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Returns the Buddhist year (Gregorian year + 543)
|
|
58
|
+
*/
|
|
59
|
+
getYear = value => {
|
|
60
|
+
return value.year() + BUDDHIST_YEAR_OFFSET;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Sets the Buddhist year (converts to Gregorian year internally)
|
|
65
|
+
*/
|
|
66
|
+
setYear = (value, year) => {
|
|
67
|
+
return this.adjustOffset(value.set('year', year - BUDDHIST_YEAR_OFFSET));
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Parses a date string with Buddhist year support.
|
|
72
|
+
* The buddhistEra plugin only supports formatting, not parsing,
|
|
73
|
+
* so we convert BBBB/BB to YYYY/YY and adjust the year after parsing.
|
|
74
|
+
*/
|
|
75
|
+
parse = (value, format) => {
|
|
76
|
+
if (value === '') {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Check if format contains Buddhist year tokens
|
|
81
|
+
const hasBuddhistYear = /BBBB|BB/.test(format);
|
|
82
|
+
|
|
83
|
+
// dayjs can't parse BBBB/BB tokens, replace with YYYY/YY
|
|
84
|
+
const parseFormat = hasBuddhistYear ? format.replace(/BBBB/g, 'YYYY').replace(/BB/g, 'YY') : format;
|
|
85
|
+
const parsed = (0, _dayjs.default)(value, parseFormat, this.locale, true);
|
|
86
|
+
if (!parsed.isValid() || !hasBuddhistYear) {
|
|
87
|
+
return parsed;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Convert Buddhist year input to Gregorian
|
|
91
|
+
return parsed.subtract(BUDDHIST_YEAR_OFFSET, 'year');
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
exports.AdapterDayjsBuddhist = AdapterDayjsBuddhist;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AdapterDayjsBuddhist } from "./AdapterDayjsBuddhist.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AdapterDayjsBuddhist", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _AdapterDayjsBuddhist.AdapterDayjsBuddhist;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _AdapterDayjsBuddhist = require("./AdapterDayjsBuddhist");
|
package/CHANGELOG.md
CHANGED
|
@@ -1,85 +1,330 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## 9.0.0-alpha.1
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
_Feb 26, 2026_
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
We'd like to extend a big thank you to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
- ⚡️ Improved dynamic data support and cache invalidation in lazy loading for Data Grid Pro
|
|
10
|
+
- ⌨️ Keyboard support for selecting day, month, and year in Date Pickers
|
|
11
|
+
- 📊 Axis tooltip sorting and control improvements in Charts
|
|
12
|
+
- 🐞 Bugfixes and internal improvements
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
15
|
+
@EllGree, @lion1963
|
|
13
16
|
|
|
14
|
-
|
|
17
|
+
The following team members contributed to this release:
|
|
18
|
+
@alexfauquette, @arminmeh, @brijeshb42, @cherniavskii, @dav-is, @flaviendelangle, @Janpot, @JCQuintas, @mapache-salvaje, @MBilalShafi, @michelengelen, @noraleonte, @rita-codes, @sai6855, @siriwatknp, @ZeeshanTamboli
|
|
15
19
|
|
|
16
20
|
### Data Grid
|
|
17
21
|
|
|
18
|
-
#### `@mui/x-data-grid@
|
|
22
|
+
#### `@mui/x-data-grid@9.0.0-alpha.1`
|
|
19
23
|
|
|
20
|
-
|
|
24
|
+
- [DataGrid] Forward rest props in `GridFilterInputMultipleValue` (#21407) @siriwatknp
|
|
25
|
+
- [DataGrid] Preserve key input during row edit when using `rowModesModel` (#20759) @michelengelen
|
|
26
|
+
- [DataGrid] Remove double rtl inversion logic for columns pinning (#21371) @siriwatknp
|
|
21
27
|
|
|
22
|
-
#### `@mui/x-data-grid-pro@
|
|
28
|
+
#### `@mui/x-data-grid-pro@9.0.0-alpha.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
23
29
|
|
|
24
|
-
Same changes as in `@mui/x-data-grid@
|
|
30
|
+
Same changes as in `@mui/x-data-grid@9.0.0-alpha.1`, plus:
|
|
25
31
|
|
|
26
|
-
- [DataGridPro] Fix number input visibility in header filters (#
|
|
32
|
+
- [DataGridPro] Fix number input visibility in header filters (#21328) @michelengelen
|
|
33
|
+
- [DataGridPro] Improve dynamic data support and cache invalidation in lazy loading (#21282) @MBilalShafi
|
|
27
34
|
|
|
28
|
-
#### `@mui/x-data-grid-premium@
|
|
35
|
+
#### `@mui/x-data-grid-premium@9.0.0-alpha.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
29
36
|
|
|
30
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
37
|
+
Same changes as in `@mui/x-data-grid-pro@9.0.0-alpha.1`.
|
|
31
38
|
|
|
32
39
|
### Date and Time Pickers
|
|
33
40
|
|
|
34
|
-
#### `@mui/x-date-pickers@
|
|
41
|
+
#### `@mui/x-date-pickers@9.0.0-alpha.1`
|
|
35
42
|
|
|
36
|
-
- [DatePicker] Add keyboard support for selecting day, month, and year (#
|
|
43
|
+
- [DatePicker] Add keyboard support for selecting day, month, and year (#20859) @michelengelen
|
|
37
44
|
|
|
38
|
-
#### `@mui/x-date-pickers-pro@
|
|
45
|
+
#### `@mui/x-date-pickers-pro@9.0.0-alpha.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
39
46
|
|
|
40
|
-
Same changes as in `@mui/x-date-pickers@
|
|
47
|
+
Same changes as in `@mui/x-date-pickers@9.0.0-alpha.1`, plus:
|
|
41
48
|
|
|
42
|
-
- [DateRangePicker] Fix timezone update issue leading to `invalidRange` error (#
|
|
49
|
+
- [DateRangePicker] Fix timezone update issue leading to `invalidRange` error (#20863) @michelengelen
|
|
43
50
|
|
|
44
51
|
### Charts
|
|
45
52
|
|
|
46
|
-
#### `@mui/x-charts@
|
|
53
|
+
#### `@mui/x-charts@9.0.0-alpha.1`
|
|
54
|
+
|
|
55
|
+
- [charts] Add `sort` props to the axis tooltip (#21293) @alexfauquette
|
|
56
|
+
- [charts] Controll axis tooltip (#21351) @alexfauquette
|
|
57
|
+
- [charts] De duplicate keyboard focus handler function (#21267) @sai6855
|
|
58
|
+
- [charts] Make `type` optional in identifiers (#21311) @alexfauquette
|
|
59
|
+
- [charts] Move ref to the root component (#21396) @alexfauquette
|
|
60
|
+
- [charts] Refactor loading and no data overlays to use a shared OverlayText component (#21414) @sai6855
|
|
61
|
+
- [charts] Require series ids to be unique (#21330) @alexfauquette
|
|
62
|
+
- [charts] Set `showMark` as `false` by default (#21373) @alexfauquette
|
|
63
|
+
- [charts] Use `createGetNextIndexFocusedItem()` util in Funnel and RangeBar charts (#21390) @sai6855
|
|
64
|
+
- [charts] Remove unnecessary string concatenation (#21418) @sai6855
|
|
65
|
+
|
|
66
|
+
#### `@mui/x-charts-pro@9.0.0-alpha.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
67
|
+
|
|
68
|
+
Same changes as in `@mui/x-charts@9.0.0-alpha.1`.
|
|
69
|
+
|
|
70
|
+
#### `@mui/x-charts-premium@9.0.0-alpha.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
71
|
+
|
|
72
|
+
Same changes as in `@mui/x-charts-pro@9.0.0-alpha.1`.
|
|
73
|
+
|
|
74
|
+
### Tree View
|
|
75
|
+
|
|
76
|
+
#### `@mui/x-tree-view@9.0.0-alpha.1`
|
|
77
|
+
|
|
78
|
+
- [tree view] Focus item sibling on unmount instead of the 1st item (#21254) @flaviendelangle
|
|
79
|
+
|
|
80
|
+
#### `@mui/x-tree-view-pro@9.0.0-alpha.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
81
|
+
|
|
82
|
+
Same changes as in `@mui/x-tree-view@9.0.0-alpha.1`.
|
|
83
|
+
|
|
84
|
+
### Codemod
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-codemod@9.0.0-alpha.1`
|
|
47
87
|
|
|
48
88
|
Internal changes.
|
|
49
89
|
|
|
50
|
-
|
|
90
|
+
### Docs
|
|
91
|
+
|
|
92
|
+
- [docs] Fix external 301s (#21377) @Janpot
|
|
93
|
+
- [docs] Show premium in the overview (#21343) @alexfauquette
|
|
94
|
+
- [docs][charts] Revise the useLegend hook doc (#21352) @mapache-salvaje
|
|
95
|
+
- [docs][charts] Revise the axis hooks doc (#21317) @mapache-salvaje
|
|
96
|
+
- [docs][charts] Revise the scale hooks doc (#21316) @mapache-salvaje
|
|
97
|
+
- [docs][charts] Revise the series hooks doc (#21353) @mapache-salvaje
|
|
98
|
+
- [docs][charts] Revise the useDataset doc (#21336) @mapache-salvaje
|
|
99
|
+
- [docs][charts] Revise the useDrawingArea doc (#21333) @mapache-salvaje
|
|
100
|
+
|
|
101
|
+
### Core
|
|
102
|
+
|
|
103
|
+
- [core] Update docs deploy script to the `docs-next` branch (#21341) @siriwatknp
|
|
104
|
+
- [code-infra] Cleanup unused babel plugins (#21453) @brijeshb42
|
|
105
|
+
- [code-infra] Do not append `x` to the last version for the compare API (#21408) @arminmeh
|
|
106
|
+
- [code-infra] Upgrade react-docgen to v8 X (#21155) @JCQuintas
|
|
107
|
+
- [code-infra] Modernize codemod (#21096) @JCQuintas
|
|
108
|
+
- [docs-infra] Fix current version detection logic (#21417) @cherniavskii
|
|
109
|
+
- [docs-infra] Reapply Cookie Banner (#21281) @dav-is
|
|
110
|
+
- [internal] Headless filtering plugin (#21302) @arminmeh
|
|
111
|
+
- [internal] Headless pagination plugin (#21183) @arminmeh
|
|
112
|
+
- [internal] Headless virtualization followups (#21327) @cherniavskii
|
|
113
|
+
- [internal] Keep cached data for disabled pipe processors (#21348) @arminmeh
|
|
114
|
+
- [internal] Remove autoprefixer package (#21440) @ZeeshanTamboli
|
|
115
|
+
|
|
116
|
+
### Miscellaneous
|
|
117
|
+
|
|
118
|
+
- [l10n] Fix Czech (csCZ) locale: sort/filter labels are swapped (#21400) @EllGree
|
|
119
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#21366) @lion1963
|
|
120
|
+
|
|
121
|
+
## 9.0.0-alpha.0
|
|
122
|
+
|
|
123
|
+
_Feb 16, 2026_
|
|
124
|
+
|
|
125
|
+
We'd like to extend a big thank you to the 21 contributors who made this release possible. Here are some highlights ✨:
|
|
126
|
+
|
|
127
|
+
- Add support for virtualized items on `<RichTreeViewPro />`:
|
|
128
|
+
|
|
129
|
+
```tsx
|
|
130
|
+
<RichTreeViewPro items={ITEMS} virtualization itemHeight={48} />
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
- Add Thai (`thTH`) locale on the Data Grid and the Date and Time Pickers (#21116) @siriwatknp
|
|
134
|
+
- Add a new `AdapterDayjsBuddhist` adapter for Date and Time Pickers (#20984) @siriwatknp
|
|
135
|
+
- Add support for virtualization in the rich tree view (#20780) @flaviendelangle
|
|
136
|
+
- Add WebGL renderer to Heatmap (#20756) @bernardobelchior
|
|
137
|
+
|
|
138
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
139
|
+
@jhe-iqbis
|
|
140
|
+
|
|
141
|
+
The following team members contributed to this release:
|
|
142
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @brijeshb42, @cherniavskii, @dav-is, @flaviendelangle, @Janpot, @JCQuintas, @mapache-salvaje, @MBilalShafi, @michelengelen, @mj12albert, @noraleonte, @oliviertassinari, @rita-codes, @romgrk, @sai6855, @siriwatknp
|
|
143
|
+
|
|
144
|
+
### Data Grid
|
|
145
|
+
|
|
146
|
+
#### `@mui/x-data-grid@9.0.0-alpha.0`
|
|
147
|
+
|
|
148
|
+
- [DataGrid] Update default `logicOperator` behavior in filtering docs (#21098) @michelengelen
|
|
149
|
+
- [DataGrid] Add `thTH` locale (#21116) @siriwatknp
|
|
150
|
+
- [DataGrid] Fix initial filter value state in CustomMultiValueOperator demo (#21217) @sai6855
|
|
151
|
+
|
|
152
|
+
#### `@mui/x-data-grid-pro@9.0.0-alpha.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
153
|
+
|
|
154
|
+
Same changes as in `@mui/x-data-grid@9.0.0-alpha.0`, plus:
|
|
51
155
|
|
|
52
|
-
|
|
156
|
+
- [DataGridPro] Cleanup outdated rows on `dataSource` reference update (#21138) @MBilalShafi
|
|
53
157
|
|
|
54
|
-
- [
|
|
158
|
+
#### `@mui/x-data-grid-premium@9.0.0-alpha.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
55
159
|
|
|
56
|
-
|
|
160
|
+
Same changes as in `@mui/x-data-grid-pro@9.0.0-alpha.0`.
|
|
57
161
|
|
|
58
|
-
|
|
162
|
+
### Date and Time Pickers
|
|
163
|
+
|
|
164
|
+
#### `@mui/x-date-pickers@9.0.0-alpha.0`
|
|
165
|
+
|
|
166
|
+
- [pickers] Add `AdapterDayjsBuddhist` adapter (#20984) @siriwatknp
|
|
167
|
+
- [pickers] Add `thTH` locale (#21116) @siriwatknp
|
|
168
|
+
|
|
169
|
+
#### `@mui/x-date-pickers-pro@9.0.0-alpha.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
170
|
+
|
|
171
|
+
Same changes as in `@mui/x-date-pickers@9.0.0-alpha.0`.
|
|
172
|
+
|
|
173
|
+
### Charts
|
|
174
|
+
|
|
175
|
+
#### `@mui/x-charts@9.0.0-alpha.0`
|
|
176
|
+
|
|
177
|
+
- [charts] Add Legend actions (#20404) @JCQuintas
|
|
178
|
+
- [charts] Add `Chart` suffix to MUI Classes (#21042) @JCQuintas
|
|
179
|
+
- [charts] Add `axesGap` props to put space between axes (#20904) @alexfauquette
|
|
180
|
+
- [charts] Add `cleanIdentifier` function to charts series instance (#20832) @JCQuintas
|
|
181
|
+
- [charts] Add `initialHiddenItems` prop to set initial state (#20894) @JCQuintas
|
|
182
|
+
- [charts] Add `useXAxisCoordinates` and `useYAxisCoordinates` hooks (#20972) @bernardobelchior
|
|
183
|
+
- [charts] Add axis slots and expose axis ticks hooks (#20935) @bernardobelchior
|
|
184
|
+
- [charts] Change `line` legend marker to be a line (#21059) @JCQuintas
|
|
185
|
+
- [charts] Codemod test pattern with function (#21111) @JCQuintas
|
|
186
|
+
- [charts] Control the item tooltip (#20617) @alexfauquette
|
|
187
|
+
- [charts] Enable keyboard navigation in radar chart (#20765) @alexfauquette
|
|
188
|
+
- [charts] Export `CartesianChartSeriesType` and `StackableChartSeriesType` (#21012) @bernardobelchior
|
|
189
|
+
- [charts] Export plugins from premium (#20866) @JCQuintas
|
|
190
|
+
- [charts] Filter hidden series from axis tooltip (#21273) @Copilot
|
|
191
|
+
- [charts] Filter hidden series from axis tooltip (#21273) @Copilot
|
|
192
|
+
- [charts] Fix rename `getSVGPoint` to `getChartPoint` (#21335) @bernardobelchior
|
|
193
|
+
- [charts] Fix cleanup function in useChartInteractionListener to correctly remove event listeners with options (#21218) @sai6855
|
|
194
|
+
- [charts] Fix import rename in codemod (#21112) @JCQuintas
|
|
195
|
+
- [charts] Fix multiple exports of `HighlightScope` (#21270) @bernardobelchior
|
|
196
|
+
- [charts] Fix test inconsistency in charts (#20907) @JCQuintas
|
|
197
|
+
- [charts] Fix tooltip position for stacked line series (#20901) @alexfauquette
|
|
198
|
+
- [charts] Make Highlight scope a generic (#21189) @alexfauquette
|
|
199
|
+
- [charts] Make `LegendItemParams.type` required (#21003) @alexfauquette
|
|
200
|
+
- [charts] Make `seriesId` a string only (#20997) @alexfauquette
|
|
201
|
+
- [charts] Make the `useChartRootRef` support typing parameter (#21023) @alexfauquette
|
|
202
|
+
- [charts] Memoize HeatmapItem to avoid re-render when fading/highlighting (#20865) @bernardobelchior
|
|
203
|
+
- [charts] Move axis id to `data-axis-id` attribute instead of class (#21037) @JCQuintas
|
|
204
|
+
- [charts] Move `cleanIdentifier` and `serializeIdentifier` instance methods to `useChartSeriesConfig` plugin (#21025) @JCQuintas
|
|
205
|
+
- [charts] Move `seriesConfig` to `useChartSeriesConfig` plugin (#21004) @JCQuintas
|
|
206
|
+
- [charts] Move element refs to `useChartElementRef` plugin (#21099) @JCQuintas
|
|
207
|
+
- [charts] Move types related to `seriesConfig` into the `useChartSeriesConfig` plugin folder (#21026) @JCQuintas
|
|
208
|
+
- [charts] Remove `data-has-focused-item` from `ChartsSurface` (#21255) @bernardobelchior
|
|
209
|
+
- [charts] Remove default generic of item identifiers (#21182) @alexfauquette
|
|
210
|
+
- [charts] Remove deprecated `id` from `LegendItemParams` (#21055) @alexfauquette
|
|
211
|
+
- [charts] Remove deprecated `ChartApi` export from `ChartContainer` (#20975) @JCQuintas
|
|
212
|
+
- [charts] Remove deprecated `useAxisTooltip` in favor of `useAxesTooltip` (#20962) @Copilot
|
|
213
|
+
- [charts] Remove deprecated series type helpers and functions (#20998) @alexfauquette
|
|
214
|
+
- [charts] Rename `ChartContainer` to `ChartsContainer` (#21173) @JCQuintas
|
|
215
|
+
- [charts] Rename `getSVGPoint` to `getChartPoint` (#21322) @bernardobelchior
|
|
216
|
+
- [charts] Rename `TickItemType` to `TickItem` (#21008) @bernardobelchior
|
|
217
|
+
- [charts] Replace props `id` by `seriesId` when necessary (#21057) @alexfauquette
|
|
218
|
+
- [charts] Revert `touch-action: pan-y` removal when zoom is disabled (#20852) @bernardobelchior
|
|
219
|
+
- [charts] The `useXxxSeries([])` return empty array (#21001) @alexfauquette
|
|
220
|
+
- [charts] Use `NumberValue` in domain limit function (#21054) @JCQuintas
|
|
221
|
+
|
|
222
|
+
#### `@mui/x-charts-pro@9.0.0-alpha.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
223
|
+
|
|
224
|
+
Same changes as in `@mui/x-charts@9.0.0-alpha.0`, plus:
|
|
225
|
+
|
|
226
|
+
- [charts-pro] Add border radius to heatmap (#20931) @bernardobelchior
|
|
227
|
+
- [charts-pro] Add keyboard navigation to funnel (#20766) @alexfauquette
|
|
228
|
+
- [charts-pro] Add keyboard navigation to heatmap (#20786) @alexfauquette
|
|
229
|
+
- [charts-pro] Add keyboard navigation to sankey (#20777) @alexfauquette
|
|
230
|
+
- [charts-pro] Fix Heatmap's `onItemClick` not triggering (#21016) @bernardobelchior
|
|
231
|
+
- [charts-pro] Fix crash when two same-direction axes have a zoom preview (#20916) @bernardobelchior
|
|
232
|
+
- [charts-pro] Handle edge case in export image (#21190) @bernardobelchior
|
|
233
|
+
- [charts-pro] Prefer global pointer interaction tracker in Heatmap (#20697) @bernardobelchior
|
|
234
|
+
- [charts-pro] Support composition for Sankey (#20604) @alexfauquette
|
|
235
|
+
- [charts-pro] Update Heatmap identifier (#21124) @alexfauquette
|
|
236
|
+
- [charts-pro] Update default value of `hideLegend` prop in `Heatmap` (#20961) @Copilot
|
|
237
|
+
|
|
238
|
+
#### `@mui/x-charts-premium@9.0.0-alpha.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
239
|
+
|
|
240
|
+
Same changes as in `@mui/x-charts-pro@9.0.0-alpha.0`, plus:
|
|
241
|
+
|
|
242
|
+
- [charts-premium] Add WebGL renderer to Heatmap (#20756) @bernardobelchior
|
|
243
|
+
- [charts-premium] Add `ChartContainerPremium` (#20910) @bernardobelchior
|
|
244
|
+
- [charts-premium] Add `HeatmapPremium` (#20930) @bernardobelchior
|
|
245
|
+
- [charts-premium] Add keyboard navigation to range-bar (#21272) @alexfauquette
|
|
246
|
+
- [charts-premium] Extract `HeatmapSVGPlot` from `HeatmapPlot` component (#21015) @bernardobelchior
|
|
247
|
+
- [charts-premium] Fix `ChartDataProviderPremium` tests (#20868) @bernardobelchior
|
|
248
|
+
- [charts-premium] Fix links in comments for chart containers and data providers (#21105) @bernardobelchior
|
|
59
249
|
|
|
60
250
|
### Tree View
|
|
61
251
|
|
|
62
|
-
#### `@mui/x-tree-view@
|
|
252
|
+
#### `@mui/x-tree-view@9.0.0-alpha.0`
|
|
253
|
+
|
|
254
|
+
_No changes._
|
|
63
255
|
|
|
64
|
-
- [
|
|
256
|
+
#### `@mui/x-tree-view-pro@9.0.0-alpha.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
65
257
|
|
|
66
|
-
|
|
258
|
+
Same changes as in `@mui/x-tree-view@9.0.0-alpha.0`, plus:
|
|
67
259
|
|
|
68
|
-
|
|
260
|
+
- [RichTreeViewPro] Add support for virtualization (#20780) @flaviendelangle
|
|
69
261
|
|
|
70
262
|
### Codemod
|
|
71
263
|
|
|
72
|
-
#### `@mui/x-codemod@
|
|
264
|
+
#### `@mui/x-codemod@9.0.0-alpha.0`
|
|
73
265
|
|
|
74
|
-
|
|
266
|
+
- [codemod] Document and Clean the codemod utils (#21014) @alexfauquette
|
|
267
|
+
|
|
268
|
+
### Docs
|
|
269
|
+
|
|
270
|
+
- [docs] Add focus highlight in composition snipets (#20614) @alexfauquette
|
|
271
|
+
- [docs] Add simple candlestick chart demo (#20912) @bernardobelchior
|
|
272
|
+
- [docs] Fix Waterfall Chart documentation badge from Pro to Premium (#20888) @Copilot
|
|
273
|
+
- [docs] Fix broken links on Data Grid Editing sub-pages (#20911) @arminmeh
|
|
274
|
+
- [docs] Fix docs API for HeatmapPremium (#21137) @alexfauquette
|
|
275
|
+
- [docs] Fix horizontal overflow in heatmap docs (#20968) @bernardobelchior
|
|
276
|
+
- [docs] Move Range Bar Chart to existing charts (#21120) @bernardobelchior
|
|
277
|
+
- [docs] Prepare the scheduler doc for the alpha (#21268) @flaviendelangle
|
|
278
|
+
- [docs] Rewording of the heatmap item click (#20987) @alexfauquette
|
|
279
|
+
- [scheduler][docs] Create the Quickstart page (#20913) @flaviendelangle
|
|
280
|
+
- [charts][docs] Revise the Charts CSP doc (#20906) @mapache-salvaje
|
|
281
|
+
- [charts][docs] Revise the Charts Composition doc (#20032) @mapache-salvaje
|
|
282
|
+
- [charts][docs] Revise the Charts Hooks Overview doc (#20921) @mapache-salvaje
|
|
283
|
+
- [charts][docs] Revise the Charts Legend doc (#20821) @mapache-salvaje
|
|
284
|
+
- [charts][docs] Revise the Charts Localization doc (#20800) @mapache-salvaje
|
|
285
|
+
- [charts][docs] Revise the Charts Plugins doc (#20933) @mapache-salvaje
|
|
286
|
+
- [charts][docs] Revise the Charts Stacking doc (#20830) @mapache-salvaje
|
|
287
|
+
- [charts][docs] Revise the Charts Styling doc (#20835) @mapache-salvaje
|
|
288
|
+
- [charts][docs] Revise the Charts Toolbar doc (#20867) @mapache-salvaje
|
|
289
|
+
- [charts][docs] Revise the Charts Tooltip doc (#20869) @mapache-salvaje
|
|
290
|
+
- [charts][docs] Revise the Charts Zoom and Pan doc (#20893) @mapache-salvaje
|
|
291
|
+
- [DataGrid][docs] Add a recipe for handling long text cell (#20754) @siriwatknp
|
|
292
|
+
- [DataGrid][docs] Add high-level competitor comparison to Overview doc (DX-117) (#20870) @mapache-salvaje
|
|
293
|
+
- [DataGrid][docs] Remove Bundling section from quickstart (#21177) @MBilalShafi
|
|
75
294
|
|
|
76
295
|
### Core
|
|
77
296
|
|
|
78
|
-
- [code-infra]
|
|
297
|
+
- [code-infra] Add `MUI_TEST_ENV` global (#21187) @Janpot
|
|
298
|
+
- [code-infra] Fix `material-ui/disallow-react-api-in-server-components` (#20909) @JCQuintas
|
|
299
|
+
- [code-infra] Fix `renameImports` codemod not preserving comments (#20977) @JCQuintas
|
|
300
|
+
- [code-infra] Fix the label comparison to use lower case (#20934) @brijeshb42
|
|
301
|
+
- [code-infra] Github action to sync title and label (#20922) @brijeshb42
|
|
302
|
+
- [code-infra] Ignore scheduler demo with random data (#20982) @JCQuintas
|
|
303
|
+
- [code-infra] Improve `codemod` testing setup (#20981) @JCQuintas
|
|
304
|
+
- [code-infra] Only ignore renovate[bot] in changelog generation script (#21185) @bernardobelchior
|
|
305
|
+
- [code-infra] Prepare for v9 (#20860) @JCQuintas
|
|
306
|
+
- [code-infra] Set `rasterizehtml` version in pnpm catalog (#21175) @bernardobelchior
|
|
307
|
+
- [code-infra] Update codeowners (#20886) @JCQuintas
|
|
308
|
+
- [code-infra] V9 preparation (#20928) @JCQuintas
|
|
309
|
+
- [code-infra] eslint rule rename (#21172) @Janpot
|
|
310
|
+
- [code-infra][docs] V9 charts migration doc kickoff (#20973) @JCQuintas
|
|
311
|
+
- [docs-infra] Add Cookie Banner and Analytics Provider (#21228) @dav-is
|
|
312
|
+
- [docs-infra] Fix missing slots section on API page (#20915) @Janpot
|
|
313
|
+
- [docs-infra] Fix two broken links (#20914) @Janpot
|
|
314
|
+
- [docs-infra] Port demo changes (#20971) @Janpot
|
|
315
|
+
- [internal] Add information about codemods to AGENTS.md (#21011) @bernardobelchior
|
|
316
|
+
- [internal] Fix codemod versioning instructions in `AGENTS.md` (#21024) @bernardobelchior
|
|
317
|
+
- [internal] Fix missing generated props in master (#21142) @bernardobelchior
|
|
318
|
+
- [internal] Headless sorting plugin (#21089) @arminmeh
|
|
319
|
+
- [internal] Remove duplicate code (#20896) @oliviertassinari
|
|
79
320
|
|
|
80
|
-
|
|
321
|
+
### Miscellaneous
|
|
81
322
|
|
|
82
|
-
|
|
323
|
+
- Bump next to ^15.5.11 (#21171) @Copilot
|
|
324
|
+
- [core] Fix CI (#21223) @flaviendelangle
|
|
325
|
+
- [PoC] Headless data grid (#20645) @cherniavskii
|
|
326
|
+
|
|
327
|
+
## v8.27.1
|
|
83
328
|
|
|
84
329
|
_Feb 13, 2026_
|
|
85
330
|
|
package/DateField/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { DateField } from "./DateField.js";
|
|
2
2
|
export { useDateField as unstable_useDateField } from "./useDateField.js";
|
|
3
|
-
export type { UseDateFieldProps, DateFieldProps } from "./DateField.types.js";
|
|
3
|
+
export type { UseDateFieldProps, DateFieldProps, DateFieldSlots, DateFieldSlotProps } from "./DateField.types.js";
|
package/DateTimeField/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { DateTimeField } from "./DateTimeField.js";
|
|
2
2
|
export { useDateTimeField as unstable_useDateTimeField } from "./useDateTimeField.js";
|
|
3
|
-
export type { UseDateTimeFieldProps, DateTimeFieldProps } from "./DateTimeField.types.js";
|
|
3
|
+
export type { UseDateTimeFieldProps, DateTimeFieldProps, DateTimeFieldSlots, DateTimeFieldSlotProps } from "./DateTimeField.types.js";
|
package/TimeField/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { TimeField } from "./TimeField.js";
|
|
2
2
|
export { useTimeField as unstable_useTimeField } from "./useTimeField.js";
|
|
3
|
-
export type { UseTimeFieldProps, TimeFieldProps } from "./TimeField.types.js";
|
|
3
|
+
export type { UseTimeFieldProps, TimeFieldProps, TimeFieldSlots, TimeFieldSlotProps } from "./TimeField.types.js";
|
|
@@ -63,7 +63,7 @@ export declare class AdapterDayjs implements MuiPickersAdapter<string> {
|
|
|
63
63
|
* We have to parse again the value to make sure the `fixOffset` method is applied.
|
|
64
64
|
* See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
protected adjustOffset: (value: Dayjs) => dayjs.Dayjs;
|
|
67
67
|
date: <T extends string | null | undefined>(value?: T, timezone?: PickersTimezone) => DateBuilderReturnType<T>;
|
|
68
68
|
getInvalidDate: () => dayjs.Dayjs;
|
|
69
69
|
getTimezone: (value: Dayjs) => string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import dayjs, { Dayjs } from 'dayjs';
|
|
2
|
+
import { AdapterDayjs } from "../AdapterDayjs/index.js";
|
|
3
|
+
import { AdapterOptions } from "../models/index.js";
|
|
4
|
+
declare module '@mui/x-date-pickers/models' {
|
|
5
|
+
interface PickerValidDateLookup {
|
|
6
|
+
'dayjs-buddhist': Dayjs;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Adapter for dayjs with Buddhist Era calendar support.
|
|
11
|
+
* Buddhist Era is used in Thailand and other Southeast Asian countries.
|
|
12
|
+
* It uses the same months and days as the Gregorian calendar but with a year offset of 543.
|
|
13
|
+
*/
|
|
14
|
+
export declare class AdapterDayjsBuddhist extends AdapterDayjs {
|
|
15
|
+
constructor({
|
|
16
|
+
locale,
|
|
17
|
+
formats
|
|
18
|
+
}?: AdapterOptions<string, never>);
|
|
19
|
+
/**
|
|
20
|
+
* Returns the Buddhist year (Gregorian year + 543)
|
|
21
|
+
*/
|
|
22
|
+
getYear: (value: Dayjs) => number;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the Buddhist year (converts to Gregorian year internally)
|
|
25
|
+
*/
|
|
26
|
+
setYear: (value: Dayjs, year: number) => dayjs.Dayjs;
|
|
27
|
+
/**
|
|
28
|
+
* Parses a date string with Buddhist year support.
|
|
29
|
+
* The buddhistEra plugin only supports formatting, not parsing,
|
|
30
|
+
* so we convert BBBB/BB to YYYY/YY and adjust the year after parsing.
|
|
31
|
+
*/
|
|
32
|
+
parse: (value: string, format: string) => dayjs.Dayjs | null;
|
|
33
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
/* v8 ignore start */
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
|
+
// dayjs has no exports field defined
|
|
5
|
+
// See https://github.com/iamkun/dayjs/issues/2562
|
|
6
|
+
/* eslint-disable import/extensions */
|
|
7
|
+
import buddhistEraPlugin from 'dayjs/plugin/buddhistEra.js';
|
|
8
|
+
/* v8 ignore stop */
|
|
9
|
+
/* eslint-enable import/extensions */
|
|
10
|
+
import { AdapterDayjs } from "../AdapterDayjs/index.js";
|
|
11
|
+
dayjs.extend(buddhistEraPlugin);
|
|
12
|
+
const BUDDHIST_YEAR_OFFSET = 543;
|
|
13
|
+
const buddhistTokens = {
|
|
14
|
+
BB: 'year',
|
|
15
|
+
BBBB: {
|
|
16
|
+
sectionType: 'year',
|
|
17
|
+
contentType: 'digit',
|
|
18
|
+
maxLength: 4
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const buddhistFormats = {
|
|
22
|
+
year: 'BBBB',
|
|
23
|
+
fullDate: 'D MMM BBBB',
|
|
24
|
+
keyboardDate: 'DD/MM/BBBB',
|
|
25
|
+
keyboardDateTime12h: 'DD/MM/BBBB hh:mm A',
|
|
26
|
+
keyboardDateTime24h: 'DD/MM/BBBB HH:mm'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Adapter for dayjs with Buddhist Era calendar support.
|
|
30
|
+
* Buddhist Era is used in Thailand and other Southeast Asian countries.
|
|
31
|
+
* It uses the same months and days as the Gregorian calendar but with a year offset of 543.
|
|
32
|
+
*/
|
|
33
|
+
export class AdapterDayjsBuddhist extends AdapterDayjs {
|
|
34
|
+
constructor({
|
|
35
|
+
locale,
|
|
36
|
+
formats
|
|
37
|
+
} = {}) {
|
|
38
|
+
super({
|
|
39
|
+
locale,
|
|
40
|
+
formats: _extends({}, buddhistFormats, formats)
|
|
41
|
+
});
|
|
42
|
+
this.lib = 'dayjs-buddhist';
|
|
43
|
+
this.formatTokenMap = _extends({}, this.formatTokenMap, buddhistTokens);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Returns the Buddhist year (Gregorian year + 543)
|
|
48
|
+
*/
|
|
49
|
+
getYear = value => {
|
|
50
|
+
return value.year() + BUDDHIST_YEAR_OFFSET;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Sets the Buddhist year (converts to Gregorian year internally)
|
|
55
|
+
*/
|
|
56
|
+
setYear = (value, year) => {
|
|
57
|
+
return this.adjustOffset(value.set('year', year - BUDDHIST_YEAR_OFFSET));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Parses a date string with Buddhist year support.
|
|
62
|
+
* The buddhistEra plugin only supports formatting, not parsing,
|
|
63
|
+
* so we convert BBBB/BB to YYYY/YY and adjust the year after parsing.
|
|
64
|
+
*/
|
|
65
|
+
parse = (value, format) => {
|
|
66
|
+
if (value === '') {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Check if format contains Buddhist year tokens
|
|
71
|
+
const hasBuddhistYear = /BBBB|BB/.test(format);
|
|
72
|
+
|
|
73
|
+
// dayjs can't parse BBBB/BB tokens, replace with YYYY/YY
|
|
74
|
+
const parseFormat = hasBuddhistYear ? format.replace(/BBBB/g, 'YYYY').replace(/BB/g, 'YY') : format;
|
|
75
|
+
const parsed = dayjs(value, parseFormat, this.locale, true);
|
|
76
|
+
if (!parsed.isValid() || !hasBuddhistYear) {
|
|
77
|
+
return parsed;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Convert Buddhist year input to Gregorian
|
|
81
|
+
return parsed.subtract(BUDDHIST_YEAR_OFFSET, 'year');
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AdapterDayjsBuddhist } from "./AdapterDayjsBuddhist.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AdapterDayjsBuddhist } from "./AdapterDayjsBuddhist.js";
|
package/esm/DateField/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { DateField } from "./DateField.js";
|
|
2
2
|
export { useDateField as unstable_useDateField } from "./useDateField.js";
|
|
3
|
-
export type { UseDateFieldProps, DateFieldProps } from "./DateField.types.js";
|
|
3
|
+
export type { UseDateFieldProps, DateFieldProps, DateFieldSlots, DateFieldSlotProps } from "./DateField.types.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { DateTimeField } from "./DateTimeField.js";
|
|
2
2
|
export { useDateTimeField as unstable_useDateTimeField } from "./useDateTimeField.js";
|
|
3
|
-
export type { UseDateTimeFieldProps, DateTimeFieldProps } from "./DateTimeField.types.js";
|
|
3
|
+
export type { UseDateTimeFieldProps, DateTimeFieldProps, DateTimeFieldSlots, DateTimeFieldSlotProps } from "./DateTimeField.types.js";
|
package/esm/TimeField/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { TimeField } from "./TimeField.js";
|
|
2
2
|
export { useTimeField as unstable_useTimeField } from "./useTimeField.js";
|
|
3
|
-
export type { UseTimeFieldProps, TimeFieldProps } from "./TimeField.types.js";
|
|
3
|
+
export type { UseTimeFieldProps, TimeFieldProps, TimeFieldSlots, TimeFieldSlotProps } from "./TimeField.types.js";
|
package/esm/index.js
CHANGED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { TimeViewWithMeridiem } from "../internals/models/index.js";
|
|
2
|
+
export declare const thTH: {
|
|
3
|
+
components: {
|
|
4
|
+
MuiLocalizationProvider: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
localeText: {
|
|
7
|
+
previousMonth?: string | undefined;
|
|
8
|
+
nextMonth?: string | undefined;
|
|
9
|
+
calendarWeekNumberHeaderLabel?: string | undefined;
|
|
10
|
+
calendarWeekNumberHeaderText?: string | undefined;
|
|
11
|
+
calendarWeekNumberAriaLabelText?: ((weekNumber: number) => string) | undefined;
|
|
12
|
+
calendarWeekNumberText?: ((weekNumber: number) => string) | undefined;
|
|
13
|
+
openPreviousView?: string | undefined;
|
|
14
|
+
openNextView?: string | undefined;
|
|
15
|
+
calendarViewSwitchingButtonAriaLabel?: ((currentView: import("@mui/x-date-pickers/models").DateView) => string) | undefined;
|
|
16
|
+
start?: string | undefined;
|
|
17
|
+
end?: string | undefined;
|
|
18
|
+
startDate?: string | undefined;
|
|
19
|
+
startTime?: string | undefined;
|
|
20
|
+
endDate?: string | undefined;
|
|
21
|
+
endTime?: string | undefined;
|
|
22
|
+
cancelButtonLabel?: string | undefined;
|
|
23
|
+
clearButtonLabel?: string | undefined;
|
|
24
|
+
okButtonLabel?: string | undefined;
|
|
25
|
+
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
27
|
+
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
28
|
+
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
29
|
+
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
|
30
|
+
secondsClockNumberText?: ((seconds: string) => string) | undefined;
|
|
31
|
+
selectViewText?: ((view: TimeViewWithMeridiem) => string) | undefined;
|
|
32
|
+
openDatePickerDialogue?: ((formattedDate: string | null) => string) | undefined;
|
|
33
|
+
openTimePickerDialogue?: ((formattedTime: string | null) => string) | undefined;
|
|
34
|
+
openRangePickerDialogue?: ((formattedRange: string | null) => string) | undefined;
|
|
35
|
+
fieldClearLabel?: string | undefined;
|
|
36
|
+
timeTableLabel?: string | undefined;
|
|
37
|
+
dateTableLabel?: string | undefined;
|
|
38
|
+
fieldYearPlaceholder?: ((params: {
|
|
39
|
+
digitAmount: number;
|
|
40
|
+
format: string;
|
|
41
|
+
}) => string) | undefined;
|
|
42
|
+
fieldMonthPlaceholder?: ((params: {
|
|
43
|
+
contentType: import("@mui/x-date-pickers/models").FieldSectionContentType;
|
|
44
|
+
format: string;
|
|
45
|
+
}) => string) | undefined;
|
|
46
|
+
fieldDayPlaceholder?: ((params: {
|
|
47
|
+
format: string;
|
|
48
|
+
}) => string) | undefined;
|
|
49
|
+
fieldWeekDayPlaceholder?: ((params: {
|
|
50
|
+
contentType: import("@mui/x-date-pickers/models").FieldSectionContentType;
|
|
51
|
+
format: string;
|
|
52
|
+
}) => string) | undefined;
|
|
53
|
+
fieldHoursPlaceholder?: ((params: {
|
|
54
|
+
format: string;
|
|
55
|
+
}) => string) | undefined;
|
|
56
|
+
fieldMinutesPlaceholder?: ((params: {
|
|
57
|
+
format: string;
|
|
58
|
+
}) => string) | undefined;
|
|
59
|
+
fieldSecondsPlaceholder?: ((params: {
|
|
60
|
+
format: string;
|
|
61
|
+
}) => string) | undefined;
|
|
62
|
+
fieldMeridiemPlaceholder?: ((params: {
|
|
63
|
+
format: string;
|
|
64
|
+
}) => string) | undefined;
|
|
65
|
+
year?: string | undefined;
|
|
66
|
+
month?: string | undefined;
|
|
67
|
+
day?: string | undefined;
|
|
68
|
+
weekDay?: string | undefined;
|
|
69
|
+
hours?: string | undefined;
|
|
70
|
+
minutes?: string | undefined;
|
|
71
|
+
seconds?: string | undefined;
|
|
72
|
+
meridiem?: string | undefined;
|
|
73
|
+
empty?: string | undefined;
|
|
74
|
+
datePickerToolbarTitle?: string | undefined;
|
|
75
|
+
timePickerToolbarTitle?: string | undefined;
|
|
76
|
+
dateTimePickerToolbarTitle?: string | undefined;
|
|
77
|
+
dateRangePickerToolbarTitle?: string | undefined;
|
|
78
|
+
timeRangePickerToolbarTitle?: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { getPickersLocalization } from "./utils/getPickersLocalization.js";
|
|
2
|
+
const views = {
|
|
3
|
+
hours: 'ชั่วโมง',
|
|
4
|
+
minutes: 'นาที',
|
|
5
|
+
seconds: 'วินาที',
|
|
6
|
+
meridiem: 'ช่วงเวลา'
|
|
7
|
+
};
|
|
8
|
+
const thTHPickers = {
|
|
9
|
+
// Calendar navigation
|
|
10
|
+
previousMonth: 'เดือนก่อนหน้า',
|
|
11
|
+
nextMonth: 'เดือนถัดไป',
|
|
12
|
+
// View navigation
|
|
13
|
+
openPreviousView: 'เปิดมุมมองก่อนหน้า',
|
|
14
|
+
openNextView: 'เปิดมุมมองถัดไป',
|
|
15
|
+
calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? 'มุมมองปีเปิดอยู่ สลับไปมุมมองปฏิทิน' : 'มุมมองปฏิทินเปิดอยู่ สลับไปมุมมองปี',
|
|
16
|
+
// DateRange labels
|
|
17
|
+
start: 'เริ่มต้น',
|
|
18
|
+
end: 'สิ้นสุด',
|
|
19
|
+
startDate: 'วันที่เริ่มต้น',
|
|
20
|
+
startTime: 'เวลาเริ่มต้น',
|
|
21
|
+
endDate: 'วันที่สิ้นสุด',
|
|
22
|
+
endTime: 'เวลาสิ้นสุด',
|
|
23
|
+
// Action bar
|
|
24
|
+
cancelButtonLabel: 'ยกเลิก',
|
|
25
|
+
clearButtonLabel: 'ล้าง',
|
|
26
|
+
okButtonLabel: 'ตกลง',
|
|
27
|
+
todayButtonLabel: 'วันนี้',
|
|
28
|
+
nextStepButtonLabel: 'ถัดไป',
|
|
29
|
+
// Toolbar titles
|
|
30
|
+
datePickerToolbarTitle: 'เลือกวันที่',
|
|
31
|
+
dateTimePickerToolbarTitle: 'เลือกวันที่และเวลา',
|
|
32
|
+
timePickerToolbarTitle: 'เลือกเวลา',
|
|
33
|
+
dateRangePickerToolbarTitle: 'เลือกช่วงวันที่',
|
|
34
|
+
timeRangePickerToolbarTitle: 'เลือกช่วงเวลา',
|
|
35
|
+
// Clock labels
|
|
36
|
+
clockLabelText: (view, formattedTime) => `เลือก${views[view]} ${!formattedTime ? 'ยังไม่ได้เลือกเวลา' : `เวลาที่เลือกคือ ${formattedTime}`}`,
|
|
37
|
+
hoursClockNumberText: hours => `${hours} ชั่วโมง`,
|
|
38
|
+
minutesClockNumberText: minutes => `${minutes} นาที`,
|
|
39
|
+
secondsClockNumberText: seconds => `${seconds} วินาที`,
|
|
40
|
+
// Digital clock labels
|
|
41
|
+
selectViewText: view => `เลือก${views[view]}`,
|
|
42
|
+
// Calendar labels
|
|
43
|
+
calendarWeekNumberHeaderLabel: 'หมายเลขสัปดาห์',
|
|
44
|
+
calendarWeekNumberHeaderText: '#',
|
|
45
|
+
calendarWeekNumberAriaLabelText: weekNumber => `สัปดาห์ที่ ${weekNumber}`,
|
|
46
|
+
calendarWeekNumberText: weekNumber => `${weekNumber}`,
|
|
47
|
+
// Open Picker labels
|
|
48
|
+
openDatePickerDialogue: formattedDate => formattedDate ? `เลือกวันที่ วันที่ที่เลือกคือ ${formattedDate}` : 'เลือกวันที่',
|
|
49
|
+
openTimePickerDialogue: formattedTime => formattedTime ? `เลือกเวลา เวลาที่เลือกคือ ${formattedTime}` : 'เลือกเวลา',
|
|
50
|
+
openRangePickerDialogue: formattedRange => formattedRange ? `เลือกช่วง ช่วงที่เลือกคือ ${formattedRange}` : 'เลือกช่วง',
|
|
51
|
+
fieldClearLabel: 'ล้าง',
|
|
52
|
+
// Table labels
|
|
53
|
+
timeTableLabel: 'เลือกเวลา',
|
|
54
|
+
dateTableLabel: 'เลือกวันที่',
|
|
55
|
+
// Field section placeholders
|
|
56
|
+
fieldYearPlaceholder: params => 'ป'.repeat(params.digitAmount),
|
|
57
|
+
fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'ดดดด' : 'ดด',
|
|
58
|
+
fieldDayPlaceholder: () => 'วว',
|
|
59
|
+
fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'วววว' : 'วว',
|
|
60
|
+
fieldHoursPlaceholder: () => 'ชช',
|
|
61
|
+
fieldMinutesPlaceholder: () => 'นน',
|
|
62
|
+
fieldSecondsPlaceholder: () => 'วว',
|
|
63
|
+
fieldMeridiemPlaceholder: () => 'ทท',
|
|
64
|
+
// View names
|
|
65
|
+
year: 'ปี',
|
|
66
|
+
month: 'เดือน',
|
|
67
|
+
day: 'วัน',
|
|
68
|
+
weekDay: 'วันในสัปดาห์',
|
|
69
|
+
hours: 'ชั่วโมง',
|
|
70
|
+
minutes: 'นาที',
|
|
71
|
+
seconds: 'วินาที',
|
|
72
|
+
meridiem: 'ช่วงเวลา',
|
|
73
|
+
// Common
|
|
74
|
+
empty: 'ว่างเปล่า'
|
|
75
|
+
};
|
|
76
|
+
export const thTH = getPickersLocalization(thTHPickers);
|
package/index.js
CHANGED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { TimeViewWithMeridiem } from "../internals/models/index.js";
|
|
2
|
+
export declare const thTH: {
|
|
3
|
+
components: {
|
|
4
|
+
MuiLocalizationProvider: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
localeText: {
|
|
7
|
+
previousMonth?: string | undefined;
|
|
8
|
+
nextMonth?: string | undefined;
|
|
9
|
+
calendarWeekNumberHeaderLabel?: string | undefined;
|
|
10
|
+
calendarWeekNumberHeaderText?: string | undefined;
|
|
11
|
+
calendarWeekNumberAriaLabelText?: ((weekNumber: number) => string) | undefined;
|
|
12
|
+
calendarWeekNumberText?: ((weekNumber: number) => string) | undefined;
|
|
13
|
+
openPreviousView?: string | undefined;
|
|
14
|
+
openNextView?: string | undefined;
|
|
15
|
+
calendarViewSwitchingButtonAriaLabel?: ((currentView: import("@mui/x-date-pickers/models").DateView) => string) | undefined;
|
|
16
|
+
start?: string | undefined;
|
|
17
|
+
end?: string | undefined;
|
|
18
|
+
startDate?: string | undefined;
|
|
19
|
+
startTime?: string | undefined;
|
|
20
|
+
endDate?: string | undefined;
|
|
21
|
+
endTime?: string | undefined;
|
|
22
|
+
cancelButtonLabel?: string | undefined;
|
|
23
|
+
clearButtonLabel?: string | undefined;
|
|
24
|
+
okButtonLabel?: string | undefined;
|
|
25
|
+
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
27
|
+
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
28
|
+
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
29
|
+
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
|
30
|
+
secondsClockNumberText?: ((seconds: string) => string) | undefined;
|
|
31
|
+
selectViewText?: ((view: TimeViewWithMeridiem) => string) | undefined;
|
|
32
|
+
openDatePickerDialogue?: ((formattedDate: string | null) => string) | undefined;
|
|
33
|
+
openTimePickerDialogue?: ((formattedTime: string | null) => string) | undefined;
|
|
34
|
+
openRangePickerDialogue?: ((formattedRange: string | null) => string) | undefined;
|
|
35
|
+
fieldClearLabel?: string | undefined;
|
|
36
|
+
timeTableLabel?: string | undefined;
|
|
37
|
+
dateTableLabel?: string | undefined;
|
|
38
|
+
fieldYearPlaceholder?: ((params: {
|
|
39
|
+
digitAmount: number;
|
|
40
|
+
format: string;
|
|
41
|
+
}) => string) | undefined;
|
|
42
|
+
fieldMonthPlaceholder?: ((params: {
|
|
43
|
+
contentType: import("@mui/x-date-pickers/models").FieldSectionContentType;
|
|
44
|
+
format: string;
|
|
45
|
+
}) => string) | undefined;
|
|
46
|
+
fieldDayPlaceholder?: ((params: {
|
|
47
|
+
format: string;
|
|
48
|
+
}) => string) | undefined;
|
|
49
|
+
fieldWeekDayPlaceholder?: ((params: {
|
|
50
|
+
contentType: import("@mui/x-date-pickers/models").FieldSectionContentType;
|
|
51
|
+
format: string;
|
|
52
|
+
}) => string) | undefined;
|
|
53
|
+
fieldHoursPlaceholder?: ((params: {
|
|
54
|
+
format: string;
|
|
55
|
+
}) => string) | undefined;
|
|
56
|
+
fieldMinutesPlaceholder?: ((params: {
|
|
57
|
+
format: string;
|
|
58
|
+
}) => string) | undefined;
|
|
59
|
+
fieldSecondsPlaceholder?: ((params: {
|
|
60
|
+
format: string;
|
|
61
|
+
}) => string) | undefined;
|
|
62
|
+
fieldMeridiemPlaceholder?: ((params: {
|
|
63
|
+
format: string;
|
|
64
|
+
}) => string) | undefined;
|
|
65
|
+
year?: string | undefined;
|
|
66
|
+
month?: string | undefined;
|
|
67
|
+
day?: string | undefined;
|
|
68
|
+
weekDay?: string | undefined;
|
|
69
|
+
hours?: string | undefined;
|
|
70
|
+
minutes?: string | undefined;
|
|
71
|
+
seconds?: string | undefined;
|
|
72
|
+
meridiem?: string | undefined;
|
|
73
|
+
empty?: string | undefined;
|
|
74
|
+
datePickerToolbarTitle?: string | undefined;
|
|
75
|
+
timePickerToolbarTitle?: string | undefined;
|
|
76
|
+
dateTimePickerToolbarTitle?: string | undefined;
|
|
77
|
+
dateRangePickerToolbarTitle?: string | undefined;
|
|
78
|
+
timeRangePickerToolbarTitle?: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
package/locales/thTH.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.thTH = void 0;
|
|
7
|
+
var _getPickersLocalization = require("./utils/getPickersLocalization");
|
|
8
|
+
const views = {
|
|
9
|
+
hours: 'ชั่วโมง',
|
|
10
|
+
minutes: 'นาที',
|
|
11
|
+
seconds: 'วินาที',
|
|
12
|
+
meridiem: 'ช่วงเวลา'
|
|
13
|
+
};
|
|
14
|
+
const thTHPickers = {
|
|
15
|
+
// Calendar navigation
|
|
16
|
+
previousMonth: 'เดือนก่อนหน้า',
|
|
17
|
+
nextMonth: 'เดือนถัดไป',
|
|
18
|
+
// View navigation
|
|
19
|
+
openPreviousView: 'เปิดมุมมองก่อนหน้า',
|
|
20
|
+
openNextView: 'เปิดมุมมองถัดไป',
|
|
21
|
+
calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? 'มุมมองปีเปิดอยู่ สลับไปมุมมองปฏิทิน' : 'มุมมองปฏิทินเปิดอยู่ สลับไปมุมมองปี',
|
|
22
|
+
// DateRange labels
|
|
23
|
+
start: 'เริ่มต้น',
|
|
24
|
+
end: 'สิ้นสุด',
|
|
25
|
+
startDate: 'วันที่เริ่มต้น',
|
|
26
|
+
startTime: 'เวลาเริ่มต้น',
|
|
27
|
+
endDate: 'วันที่สิ้นสุด',
|
|
28
|
+
endTime: 'เวลาสิ้นสุด',
|
|
29
|
+
// Action bar
|
|
30
|
+
cancelButtonLabel: 'ยกเลิก',
|
|
31
|
+
clearButtonLabel: 'ล้าง',
|
|
32
|
+
okButtonLabel: 'ตกลง',
|
|
33
|
+
todayButtonLabel: 'วันนี้',
|
|
34
|
+
nextStepButtonLabel: 'ถัดไป',
|
|
35
|
+
// Toolbar titles
|
|
36
|
+
datePickerToolbarTitle: 'เลือกวันที่',
|
|
37
|
+
dateTimePickerToolbarTitle: 'เลือกวันที่และเวลา',
|
|
38
|
+
timePickerToolbarTitle: 'เลือกเวลา',
|
|
39
|
+
dateRangePickerToolbarTitle: 'เลือกช่วงวันที่',
|
|
40
|
+
timeRangePickerToolbarTitle: 'เลือกช่วงเวลา',
|
|
41
|
+
// Clock labels
|
|
42
|
+
clockLabelText: (view, formattedTime) => `เลือก${views[view]} ${!formattedTime ? 'ยังไม่ได้เลือกเวลา' : `เวลาที่เลือกคือ ${formattedTime}`}`,
|
|
43
|
+
hoursClockNumberText: hours => `${hours} ชั่วโมง`,
|
|
44
|
+
minutesClockNumberText: minutes => `${minutes} นาที`,
|
|
45
|
+
secondsClockNumberText: seconds => `${seconds} วินาที`,
|
|
46
|
+
// Digital clock labels
|
|
47
|
+
selectViewText: view => `เลือก${views[view]}`,
|
|
48
|
+
// Calendar labels
|
|
49
|
+
calendarWeekNumberHeaderLabel: 'หมายเลขสัปดาห์',
|
|
50
|
+
calendarWeekNumberHeaderText: '#',
|
|
51
|
+
calendarWeekNumberAriaLabelText: weekNumber => `สัปดาห์ที่ ${weekNumber}`,
|
|
52
|
+
calendarWeekNumberText: weekNumber => `${weekNumber}`,
|
|
53
|
+
// Open Picker labels
|
|
54
|
+
openDatePickerDialogue: formattedDate => formattedDate ? `เลือกวันที่ วันที่ที่เลือกคือ ${formattedDate}` : 'เลือกวันที่',
|
|
55
|
+
openTimePickerDialogue: formattedTime => formattedTime ? `เลือกเวลา เวลาที่เลือกคือ ${formattedTime}` : 'เลือกเวลา',
|
|
56
|
+
openRangePickerDialogue: formattedRange => formattedRange ? `เลือกช่วง ช่วงที่เลือกคือ ${formattedRange}` : 'เลือกช่วง',
|
|
57
|
+
fieldClearLabel: 'ล้าง',
|
|
58
|
+
// Table labels
|
|
59
|
+
timeTableLabel: 'เลือกเวลา',
|
|
60
|
+
dateTableLabel: 'เลือกวันที่',
|
|
61
|
+
// Field section placeholders
|
|
62
|
+
fieldYearPlaceholder: params => 'ป'.repeat(params.digitAmount),
|
|
63
|
+
fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'ดดดด' : 'ดด',
|
|
64
|
+
fieldDayPlaceholder: () => 'วว',
|
|
65
|
+
fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'วววว' : 'วว',
|
|
66
|
+
fieldHoursPlaceholder: () => 'ชช',
|
|
67
|
+
fieldMinutesPlaceholder: () => 'นน',
|
|
68
|
+
fieldSecondsPlaceholder: () => 'วว',
|
|
69
|
+
fieldMeridiemPlaceholder: () => 'ทท',
|
|
70
|
+
// View names
|
|
71
|
+
year: 'ปี',
|
|
72
|
+
month: 'เดือน',
|
|
73
|
+
day: 'วัน',
|
|
74
|
+
weekDay: 'วันในสัปดาห์',
|
|
75
|
+
hours: 'ชั่วโมง',
|
|
76
|
+
minutes: 'นาที',
|
|
77
|
+
seconds: 'วินาที',
|
|
78
|
+
meridiem: 'ช่วงเวลา',
|
|
79
|
+
// Common
|
|
80
|
+
empty: 'ว่างเปล่า'
|
|
81
|
+
};
|
|
82
|
+
const thTH = exports.thTH = (0, _getPickersLocalization.getPickersLocalization)(thTHPickers);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-alpha.1",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The community edition of the MUI X Date and Time Picker components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"directory": "packages/x-date-pickers"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@babel/runtime": "^7.28.
|
|
37
|
-
"@mui/utils": "^7.3.
|
|
36
|
+
"@babel/runtime": "^7.28.6",
|
|
37
|
+
"@mui/utils": "^7.3.7",
|
|
38
38
|
"@types/react-transition-group": "^4.4.12",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
41
|
"react-transition-group": "^4.4.5",
|
|
42
|
-
"@mui/x-internals": "
|
|
42
|
+
"@mui/x-internals": "9.0.0-alpha.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@emotion/react": "^11.9.0",
|
|
@@ -89,11 +89,13 @@
|
|
|
89
89
|
"node": ">=14.0.0"
|
|
90
90
|
},
|
|
91
91
|
"type": "commonjs",
|
|
92
|
-
"main": "./index.js",
|
|
93
|
-
"types": "./index.d.ts",
|
|
94
92
|
"exports": {
|
|
95
93
|
"./package.json": "./package.json",
|
|
96
94
|
".": {
|
|
95
|
+
"import": {
|
|
96
|
+
"types": "./esm/index.d.ts",
|
|
97
|
+
"default": "./esm/index.js"
|
|
98
|
+
},
|
|
97
99
|
"require": {
|
|
98
100
|
"types": "./index.d.ts",
|
|
99
101
|
"default": "./index.js"
|
|
@@ -104,6 +106,10 @@
|
|
|
104
106
|
}
|
|
105
107
|
},
|
|
106
108
|
"./*": {
|
|
109
|
+
"import": {
|
|
110
|
+
"types": "./esm/*/index.d.ts",
|
|
111
|
+
"default": "./esm/*/index.js"
|
|
112
|
+
},
|
|
107
113
|
"require": {
|
|
108
114
|
"types": "./*/index.d.ts",
|
|
109
115
|
"default": "./*/index.js"
|
|
@@ -114,5 +120,7 @@
|
|
|
114
120
|
}
|
|
115
121
|
},
|
|
116
122
|
"./esm": null
|
|
117
|
-
}
|
|
123
|
+
},
|
|
124
|
+
"main": "./index.js",
|
|
125
|
+
"types": "./index.d.ts"
|
|
118
126
|
}
|